{"version":3,"sources":["webpack:///./src/components/Table.vue?c12d","webpack:///./src/components/TableInfo.vue?a0f4","webpack:///./src/components/TableInfo.vue","webpack:///./src/components/TableInfo.vue?8627","webpack:///./src/components/Pagination.vue?79d4","webpack:///./src/components/Pagination.vue?6a7c","webpack:///./src/components/Pagination.vue?2044","webpack:///./src/components/Table.vue?6e70","webpack:///./src/components/Table.vue?2326","webpack:///./src/components/Form/Select.vue?4447","webpack:///./node_modules/core-js/modules/es.object.get-own-property-names.js","webpack:///./src/components/Pagination.vue?5f6a","webpack:///./src/components/Form/Select.vue?8f13","webpack:///./src/components/Form/Select.vue?0d1e","webpack:///./src/components/Form/Select.vue?4e3e","webpack:///./src/components/Table.vue?3787"],"names":["_hoisted_1","class","_hoisted_2","key","_hoisted_3","_hoisted_4","_hoisted_5","style","_hoisted_6","_hoisted_7","_hoisted_8","_hoisted_9","_hoisted_10","_hoisted_11","_hoisted_12","_hoisted_13","_hoisted_14","_hoisted_15","_hoisted_16","render","_ctx","_cache","$props","$setup","$data","$options","_component_Pagination","_component_Select","_component_TableInfo","_component_LuSpinner","_component_font_awesome_icon","showPagination","rowsHaveLoaded","pagingData","shouldFocus","onPageNumberChanged","onPageNumberChange","pageHeading","isLoading","$slots","actions","undefined","allowChangeRowPerPage","options","pageSizeOptions","value","pageSize","$event","onChange","onPageSizeChange","showNumRows","useSpinner","showSpinner","noDataText","$t","cols","length","stickyHead","rowActionStart","col","colIndex","scope","onClick","unsortableColumns","includes","sortTable","cursor","allowSort","width","lastColWidth","colWidth","stickyFirstColumn","sortColumn","capitalize","ascending","icon","rowActionEnd","getRows","row","rowIndex","onRowClick","onCellClick","val","start","end","total","totalCount","props","type","Object","required","computed","rowsCurrentPage","rowsLeft","this","currentPage","__exports__","ref","tabindex","onKeydown","handleKeydown","hasPrevious","changePageNumber","pageNumbers","pageNum","index","page","hasNext","totalPages","maxVisiblePages","Number","default","Boolean","methods","pageNumber","$emit","event","ctrl","ctrlKey","maxVisiblePageLinks","startPageNumber","startPage","Array","Math","min","i","push","mounted","$nextTick","$refs","keydownElement","focus","components","Pagination","TableInfo","Select","LuSpinner","rows","String","hiddenColumns","overrideColWidthCalculation","data","colWidthForAll","getOwnPropertyNames","forEach","round","getColWidthString","delaySpinnerDisplay","sleep","then","milliseconds","Promise","resolve","setTimeout","str","charAt","toUpperCase","slice","columnName","rowData","cellName","watch","$","fails","f","FAILS_ON_PRIMITIVES","target","stat","forced","label","disabled","updateValue","onInvalid","validityMessage","setValidityMessage","placeholder","selected","option","helpText","isNumber","parseInt","message","input","setCustomValidity"],"mappings":"sJAGMA,EAAa,CAAEC,MAAO,6EACtBC,EAAa,CACjBC,IAAK,EACLF,MAAO,0EAEHG,EAAa,CAAC,cACdC,EAAa,CACjBF,IAAK,EACLF,MAAO,6EAEHK,EAAa,CACjBH,IAAK,EACLI,MAAO,CAAC,aAAa,WAEjBC,EAAa,CACjBL,IAAK,EACLF,MAAO,uBAEHQ,EAAa,CAAEN,IAAK,GACpBO,EAAa,CAAC,WACdC,EAAa,CACjBJ,MAAO,CAAC,cAAc,UACtBN,MAAO,eAEHW,EAAc,CAAET,IAAK,GACrBU,EAAc,CAAEZ,MAAO,IACvBa,EAAc,CAAC,WACfC,EAAc,CAAEZ,IAAK,GACrBa,EAAc,CAAC,WACfC,EAAc,CAAEd,IAAK,GACrBe,EAAc,CAClBf,IAAK,EACLF,MAAO,oBAGH,SAAUkB,EAAOC,EAAUC,EAAYC,EAAYC,EAAYC,EAAWC,GAC9E,IAAMC,EAAwB,eAAkB,cAC1CC,EAAoB,eAAkB,UACtCC,EAAuB,eAAkB,aACzCC,EAAuB,eAAkB,aACzCC,EAA+B,eAAkB,qBAEvD,OAAQ,iBAAc,eAAoB,MAAO,KAAM,CACrD,eAAoB,MAAO9B,EAAY,CACpCoB,EAAKW,gBAAkBX,EAAKY,gBACxB,iBAAc,eAAaN,EAAuB,CACjDvB,IAAK,EACLF,MAAO,UACPgC,WAAYb,EAAKa,WACjBC,aAAa,EACbC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AAMC,kBAAkBF,QAIpB,W,iCCtFrB,MAAMrF,EAA2B,IAAgB,EAAQ,CAAC,CAAC,SAAS7E,GAAQ,CAAC,YAAY,qBAE1E,U,gFCTf","file":"assets/js/chunk-57f2c62c.a512bd59.js","sourcesContent":["import { resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, createElementBlock as _createElementBlock, renderSlot as _renderSlot, normalizeClass as _normalizeClass, renderList as _renderList, Fragment as _Fragment, createTextVNode as _createTextVNode, normalizeStyle as _normalizeStyle, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-297f8a7c\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"d-flex flex-nowrap justify-content-between align-items-center flex-grow-0\" }\nconst _hoisted_2 = {\n key: 1,\n class: \"d-flex flex-wrap justify-content-center align-items-center flex-grow-1\"\n}\nconst _hoisted_3 = [\"aria-label\"]\nconst _hoisted_4 = {\n key: 3,\n class: \"d-flex flex-nowrap justify-content-between align-items-center flex-grow-0\"\n}\nconst _hoisted_5 = {\n key: 1,\n style: {\"text-align\":\"center\"}\n}\nconst _hoisted_6 = {\n key: 2,\n class: \"table table-striped\"\n}\nconst _hoisted_7 = { key: 0 }\nconst _hoisted_8 = [\"onClick\"]\nconst _hoisted_9 = {\n style: {\"margin-left\":\"0.5rem\"},\n class: \"sort-column\"\n}\nconst _hoisted_10 = { key: 1 }\nconst _hoisted_11 = { class: \"\" }\nconst _hoisted_12 = [\"onClick\"]\nconst _hoisted_13 = { key: 0 }\nconst _hoisted_14 = [\"onClick\"]\nconst _hoisted_15 = { key: 1 }\nconst _hoisted_16 = {\n key: 3,\n class: \"d-flex flex-wrap\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_Pagination = _resolveComponent(\"Pagination\")!\n const _component_Select = _resolveComponent(\"Select\")!\n const _component_TableInfo = _resolveComponent(\"TableInfo\")!\n const _component_LuSpinner = _resolveComponent(\"LuSpinner\")!\n const _component_font_awesome_icon = _resolveComponent(\"font-awesome-icon\")!\n\n return (_openBlock(), _createElementBlock(\"div\", null, [\n _createElementVNode(\"div\", _hoisted_1, [\n (_ctx.showPagination && _ctx.rowsHaveLoaded)\n ? (_openBlock(), _createBlock(_component_Pagination, {\n key: 0,\n class: \"mr-auto\",\n pagingData: _ctx.pagingData,\n shouldFocus: true,\n onPageNumberChanged: _ctx.onPageNumberChange\n }, null, 8, [\"pagingData\", \"onPageNumberChanged\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.pageHeading)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_2, [\n _createElementVNode(\"h1\", {\n class: \"page-heading\",\n \"aria-label\": _ctx.pageHeading\n }, _toDisplayString(_ctx.pageHeading), 9, _hoisted_3)\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.isLoading === false)\n ? (_openBlock(), _createElementBlock(\"div\", {\n key: 2,\n class: _normalizeClass({ 'mr-3 mb-1': _ctx.$slots.actions })\n }, [\n _renderSlot(_ctx.$slots, \"actions\", { class: \"pr-3\" }, undefined, true)\n ], 2))\n : _createCommentVNode(\"\", true),\n (_ctx.rowsHaveLoaded)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_4, [\n (_ctx.allowChangeRowPerPage)\n ? (_openBlock(), _createBlock(_component_Select, {\n key: 0,\n options: _ctx.pageSizeOptions,\n value: _ctx.pagingData.pageSize,\n \"onUpdate:value\": _cache[0] || (_cache[0] = ($event: any) => ((_ctx.pagingData.pageSize) = $event)),\n onChange: _ctx.onPageSizeChange\n }, null, 8, [\"options\", \"value\", \"onChange\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.showNumRows)\n ? (_openBlock(), _createBlock(_component_TableInfo, {\n key: 1,\n class: \"ml-2\",\n pagingData: _ctx.pagingData\n }, null, 8, [\"pagingData\"]))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n ]),\n (_ctx.useSpinner && _ctx.isLoading && _ctx.showSpinner)\n ? (_openBlock(), _createBlock(_component_LuSpinner, { key: 0 }))\n : _createCommentVNode(\"\", true),\n (_ctx.rowsHaveLoaded === false && _ctx.isLoading === false)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_5, _toDisplayString(_ctx.noDataText || _ctx.$t(\"table.noData\")), 1))\n : _createCommentVNode(\"\", true),\n (_ctx.cols.length > 0)\n ? (_openBlock(), _createElementBlock(\"table\", _hoisted_6, [\n _createElementVNode(\"thead\", {\n class: _normalizeClass([\"thead-dark\", { 'sticky-head': _ctx.stickyHead }])\n }, [\n _createElementVNode(\"tr\", null, [\n (_ctx.$slots.rowActionStart)\n ? (_openBlock(), _createElementBlock(\"th\", _hoisted_7))\n : _createCommentVNode(\"\", true),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.cols, (col, colIndex) => {\n return (_openBlock(), _createElementBlock(\"th\", {\n scope: \"col\",\n key: col,\n onClick: ($event: any) => (!_ctx.unsortableColumns.includes(col) && _ctx.sortTable(col)),\n style: _normalizeStyle({\r\n cursor:\r\n _ctx.allowSort && !_ctx.unsortableColumns.includes(col)\r\n ? 'pointer'\r\n : 'auto',\r\n width: colIndex === _ctx.cols.length - 1 ? _ctx.lastColWidth : _ctx.colWidth,\r\n }),\n class: _normalizeClass({\r\n 'sticky-col': _ctx.stickyFirstColumn && colIndex === 0,\r\n 'sort-column': _ctx.sortColumn === col,\r\n })\n }, [\n _renderSlot(_ctx.$slots, \"td\", { col: col }, () => [\n _createTextVNode(_toDisplayString(_ctx.capitalize(col)), 1)\n ], true),\n _createElementVNode(\"span\", _hoisted_9, [\n (_ctx.sortColumn === col && _ctx.ascending)\n ? (_openBlock(), _createBlock(_component_font_awesome_icon, {\n key: 0,\n icon: \"caret-up\"\n }))\n : _createCommentVNode(\"\", true),\n (_ctx.sortColumn === col && !_ctx.ascending)\n ? (_openBlock(), _createBlock(_component_font_awesome_icon, {\n key: 1,\n icon: \"caret-down\"\n }))\n : _createCommentVNode(\"\", true)\n ])\n ], 14, _hoisted_8))\n }), 128)),\n (_ctx.$slots.rowActionEnd)\n ? (_openBlock(), _createElementBlock(\"th\", _hoisted_10))\n : _createCommentVNode(\"\", true)\n ])\n ], 2),\n _createElementVNode(\"tbody\", _hoisted_11, [\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.getRows(), (row, rowIndex) => {\n return (_openBlock(), _createElementBlock(\"tr\", {\n key: row,\n onClick: ($event: any) => (_ctx.onRowClick(rowIndex, row))\n }, [\n (_ctx.$slots.rowActionStart)\n ? (_openBlock(), _createElementBlock(\"td\", _hoisted_13, [\n _renderSlot(_ctx.$slots, \"rowActionStart\", { row: row }, undefined, true)\n ]))\n : _createCommentVNode(\"\", true),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.cols, (col, colIndex) => {\n return (_openBlock(), _createElementBlock(\"td\", {\n key: col,\n class: _normalizeClass({\r\n 'sticky-col': _ctx.stickyFirstColumn && colIndex === 0,\r\n }),\n onClick: ($event: any) => (_ctx.onCellClick(rowIndex, row, col))\n }, [\n _renderSlot(_ctx.$slots, \"default\", {\n row: row,\n col: col,\n val: row[col]\n }, () => [\n _createTextVNode(_toDisplayString(row[col]), 1)\n ], true)\n ], 10, _hoisted_14))\n }), 128)),\n (_ctx.$slots.rowActionEnd)\n ? (_openBlock(), _createElementBlock(\"td\", _hoisted_15, [\n _renderSlot(_ctx.$slots, \"rowActionEnd\", { row: row }, undefined, true)\n ]))\n : _createCommentVNode(\"\", true)\n ], 8, _hoisted_12))\n }), 128))\n ])\n ]))\n : _createCommentVNode(\"\", true),\n (_ctx.rowsHaveLoaded)\n ? (_openBlock(), _createElementBlock(\"div\", _hoisted_16, [\n (_ctx.showPagination)\n ? (_openBlock(), _createBlock(_component_Pagination, {\n key: 0,\n class: \"mr-auto\",\n pagingData: _ctx.pagingData,\n onPageNumberChanged: _ctx.onPageNumberChange\n }, null, 8, [\"pagingData\", \"onPageNumberChanged\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.allowChangeRowPerPage)\n ? (_openBlock(), _createBlock(_component_Select, {\n key: 1,\n options: _ctx.pageSizeOptions,\n value: _ctx.pagingData.pageSize,\n \"onUpdate:value\": _cache[1] || (_cache[1] = ($event: any) => ((_ctx.pagingData.pageSize) = $event)),\n onChange: _ctx.onPageSizeChange\n }, null, 8, [\"options\", \"value\", \"onChange\"]))\n : _createCommentVNode(\"\", true),\n (_ctx.showNumRows)\n ? (_openBlock(), _createBlock(_component_TableInfo, {\n key: 2,\n class: \"ml-2\",\n pagingData: _ctx.pagingData\n }, null, 8, [\"pagingData\"]))\n : _createCommentVNode(\"\", true)\n ]))\n : _createCommentVNode(\"\", true)\n ]))\n}","import { toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"span\", null, _toDisplayString(_ctx.$t(\"table.showingRowsOf\", { start: _ctx.start, end: _ctx.end, total: _ctx.pagingData.totalCount })), 1))\n}","\r\nimport { IPagingData } from \"@/interfaces/IPagingData\";\r\nimport { PropType } from \"@vue/runtime-core\";\r\nimport { Options, Vue } from \"vue-class-component\";\r\n\r\n@Options({\r\n props: {\r\n /**\r\n * Paging data such as the current page in the table, total number of pages, number of rows per page\r\n */\r\n pagingData: {\r\n type: Object as PropType,\r\n required: true,\r\n },\r\n },\r\n computed: {\r\n /**\r\n * Number of rows on the current page\r\n */\r\n rowsCurrentPage() {\r\n let rowsLeft = this.pagingData.totalCount - this.start + 1;\r\n return rowsLeft > this.pagingData.pageSize\r\n ? this.pagingData.pageSize\r\n : rowsLeft;\r\n },\r\n /**\r\n * The row number of the first row in the current page\r\n */\r\n start(): number {\r\n const start =\r\n this.pagingData.currentPage * this.pagingData.pageSize -\r\n this.pagingData.pageSize +\r\n 1;\r\n return start < 0 ? 0 : start;\r\n },\r\n /**\r\n * The row number of the last row in the current page\r\n */\r\n end(): number {\r\n return this.start + this.rowsCurrentPage - 1;\r\n },\r\n },\r\n})\r\nexport default class TableInfo extends Vue {}\r\n","import { render } from \"./TableInfo.vue?vue&type=template&id=bf07c94a&ts=true\"\nimport script from \"./TableInfo.vue?vue&type=script&lang=ts\"\nexport * from \"./TableInfo.vue?vue&type=script&lang=ts\"\n\nimport exportComponent from \"C:\\\\Users\\\\fr5673mo\\\\Documents\\\\git.lu.se\\\\.net\\\\student-portal\\\\student-portal-web\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render]])\n\nexport default __exports__","import { resolveComponent as _resolveComponent, createVNode as _createVNode, createElementVNode as _createElementVNode, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-42bf6f98\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = {\n \"aria-label\": \"Pagination\",\n class: \"m-0\"\n}\nconst _hoisted_2 = { class: \"pagination pagination-sm\" }\nconst _hoisted_3 = [\"aria-label\"]\nconst _hoisted_4 = { class: \"page-icon\" }\nconst _hoisted_5 = { class: \"page-label\" }\nconst _hoisted_6 = [\"aria-label\"]\nconst _hoisted_7 = [\"onClick\"]\nconst _hoisted_8 = [\"aria-label\"]\nconst _hoisted_9 = { class: \"page-label\" }\nconst _hoisted_10 = { class: \"page-icon\" }\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n const _component_font_awesome_icon = _resolveComponent(\"font-awesome-icon\")!\n\n return (_openBlock(), _createElementBlock(\"div\", {\n ref: \"keydownElement\",\n tabindex: \"0\",\n onKeydown: _cache[2] || (_cache[2] = ($event: any) => (_ctx.handleKeydown($event))),\n class: \"pagination-container\"\n }, [\n _createElementVNode(\"nav\", _hoisted_1, [\n _createElementVNode(\"ul\", _hoisted_2, [\n _createElementVNode(\"li\", {\n class: _normalizeClass([\"page-item\", !_ctx.pagingData.hasPrevious ? 'disabled' : ''])\n }, [\n _createElementVNode(\"a\", {\n class: \"page-link\",\n onClick: _cache[0] || (_cache[0] = ($event: any) => (\r\n _ctx.pagingData.currentPage > 1\r\n ? _ctx.changePageNumber(_ctx.pagingData.currentPage - 1)\r\n : null\r\n )),\n \"aria-label\": _ctx.$t('pagination.goto-previous')\n }, [\n _createElementVNode(\"span\", _hoisted_4, [\n _createVNode(_component_font_awesome_icon, { icon: \"chevron-left\" })\n ]),\n _createElementVNode(\"span\", _hoisted_5, _toDisplayString(_ctx.$t(\"pagination.previous\")), 1)\n ], 8, _hoisted_3)\n ], 2),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.pageNumbers, (pageNum, index) => {\n return (_openBlock(), _createElementBlock(\"li\", {\n class: _normalizeClass([\"page-item\", pageNum === _ctx.pagingData.currentPage ? 'active' : '']),\n key: index,\n \"aria-label\": \r\n pageNum === _ctx.pagingData.currentPage\r\n ? _ctx.$t('pagination.current')\r\n : _ctx.$t('pagination.goto', { page: pageNum })\r\n \n }, [\n _createElementVNode(\"a\", {\n class: _normalizeClass(pageNum ? 'page-link' : 'page-text'),\n onClick: ($event: any) => (pageNum ? _ctx.changePageNumber(pageNum) : null)\n }, [\n _createElementVNode(\"span\", null, _toDisplayString(pageNum), 1),\n (!pageNum)\n ? (_openBlock(), _createBlock(_component_font_awesome_icon, {\n key: 0,\n icon: \"ellipsis-h\"\n }))\n : _createCommentVNode(\"\", true)\n ], 10, _hoisted_7)\n ], 10, _hoisted_6))\n }), 128)),\n _createElementVNode(\"li\", {\n class: _normalizeClass([\"page-item\", !_ctx.pagingData.hasNext ? 'disabled' : ''])\n }, [\n _createElementVNode(\"a\", {\n class: \"page-link\",\n onClick: _cache[1] || (_cache[1] = ($event: any) => (\r\n _ctx.pagingData.currentPage < _ctx.pagingData.totalPages\r\n ? _ctx.changePageNumber(_ctx.pagingData.currentPage + 1)\r\n : null\r\n )),\n \"aria-label\": _ctx.$t('pagination.goto-next')\n }, [\n _createElementVNode(\"span\", _hoisted_9, _toDisplayString(_ctx.$t(\"pagination.next\")), 1),\n _createElementVNode(\"span\", _hoisted_10, [\n _createVNode(_component_font_awesome_icon, { icon: \"chevron-right\" })\n ])\n ], 8, _hoisted_8)\n ], 2)\n ])\n ])\n ], 544))\n}","\r\nimport { PropType } from \"vue\";\r\nimport { Options, Vue } from \"vue-class-component\";\r\nimport { IPagingData } from \"@/interfaces/IPagingData\";\r\n\r\n@Options({\r\n props: {\r\n /**\r\n * Maximum number of visible page links\r\n */\r\n maxVisiblePages: {\r\n type: Number as PropType,\r\n required: false,\r\n default: 5,\r\n },\r\n /**\r\n * Paging data such as the current page in the table, total number of pages, number of rows per page\r\n */\r\n pagingData: {\r\n type: Object as PropType,\r\n required: true,\r\n },\r\n shouldFocus: {\r\n type: Boolean,\r\n default: false,\r\n },\r\n },\r\n methods: {\r\n /**\r\n * Gets called when the user changes page number\r\n */\r\n changePageNumber(pageNumber: number) {\r\n this.$emit(\"pageNumberChanged\", pageNumber);\r\n },\r\n handleKeydown(event: KeyboardEvent) {\r\n const key = event.key;\r\n const ctrl = event.ctrlKey;\r\n const pagingData = this.pagingData;\r\n\r\n if (ctrl) {\r\n switch (key) {\r\n case \"ArrowLeft\":\r\n // Go to previous page\r\n if (pagingData.currentPage > 1) {\r\n this.changePageNumber(pagingData.currentPage - 1);\r\n }\r\n break;\r\n case \"ArrowRight\":\r\n // Go to next page\r\n if (pagingData.currentPage < pagingData.totalPages) {\r\n this.changePageNumber(pagingData.currentPage + 1);\r\n }\r\n break;\r\n case \"ArrowUp\":\r\n // Go to last page\r\n if (pagingData.currentPage !== pagingData.totalPages) {\r\n this.changePageNumber(pagingData.totalPages);\r\n }\r\n break;\r\n case \"ArrowDown\":\r\n // Go to first page\r\n if (pagingData.currentPage > 1) {\r\n this.changePageNumber(1);\r\n }\r\n break;\r\n default:\r\n break;\r\n }\r\n }\r\n },\r\n },\r\n computed: {\r\n /**\r\n * Maximum number of visible page links in relation to total number of pages\r\n */\r\n maxVisiblePageLinks() {\r\n return this.pagingData.totalPages < this.maxVisiblePages\r\n ? this.pagingData.totalPages\r\n : this.maxVisiblePages;\r\n },\r\n /**\r\n * Start page number in relation to Maximum number of visible page links\r\n */\r\n startPageNumber() {\r\n if (\r\n this.pagingData.currentPage === 1 ||\r\n this.pagingData.totalPages === this.maxVisiblePageLinks\r\n ) {\r\n return 1;\r\n }\r\n\r\n let startPage;\r\n\r\n if (this.pagingData.currentPage === this.pagingData.totalPages) {\r\n startPage = this.pagingData.totalPages - this.maxVisiblePageLinks;\r\n }\r\n\r\n startPage = this.pagingData.currentPage - 1;\r\n\r\n return startPage < 1 ? 1 : startPage;\r\n },\r\n /**\r\n * Page numbers to display\r\n */\r\n pageNumbers(): Array {\r\n const pageNumbers = new Array();\r\n\r\n const totalPages = Math.min(\r\n this.startPageNumber + this.maxVisiblePageLinks - 1,\r\n this.pagingData.totalPages\r\n );\r\n\r\n for (let i = this.startPageNumber; i <= totalPages; i++) {\r\n pageNumbers.push(i);\r\n }\r\n\r\n return pageNumbers;\r\n },\r\n },\r\n mounted() {\r\n this.$nextTick(() => {\r\n if (this.shouldFocus) {\r\n this.$refs.keydownElement.focus();\r\n }\r\n });\r\n },\r\n})\r\nexport default class Pagination extends Vue {\r\n currentPage!: number;\r\n totalPages!: number;\r\n maxVisiblePages!: number;\r\n}\r\n","import { render } from \"./Pagination.vue?vue&type=template&id=42bf6f98&scoped=true&ts=true\"\nimport script from \"./Pagination.vue?vue&type=script&lang=ts\"\nexport * from \"./Pagination.vue?vue&type=script&lang=ts\"\n\nimport \"./Pagination.vue?vue&type=style&index=0&id=42bf6f98&scoped=true&lang=css\"\n\nimport exportComponent from \"C:\\\\Users\\\\fr5673mo\\\\Documents\\\\git.lu.se\\\\.net\\\\student-portal\\\\student-portal-web\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-42bf6f98\"]])\n\nexport default __exports__","\r\nimport { PropType } from \"@vue/runtime-core\";\r\nimport { Options, Vue } from \"vue-class-component\";\r\nimport LuSpinner from \"@/components/Lu/LuSpinner.vue\";\r\nimport TableInfo from \"@/components/TableInfo.vue\";\r\nimport Pagination from \"@/components/Pagination.vue\";\r\nimport Select from \"@/components/Form/Select.vue\";\r\nimport { IPagingData } from \"@/interfaces/IPagingData\";\r\n\r\n@Options({\r\n components: {\r\n Pagination,\r\n TableInfo,\r\n Select,\r\n LuSpinner,\r\n },\r\n props: {\r\n /**\r\n * Gets data of the rows\r\n */\r\n rows: {\r\n type: Array as PropType,\r\n required: true,\r\n },\r\n /**\r\n * If allow sort\r\n */\r\n allowSort: {\r\n type: Boolean as PropType,\r\n required: false,\r\n default: true,\r\n },\r\n /**\r\n * The current sort column\r\n */\r\n sortColumn: {\r\n type: String as PropType,\r\n required: false,\r\n },\r\n /**\r\n * If the sort order is ascending\r\n */\r\n ascending: {\r\n type: Boolean as PropType,\r\n required: false,\r\n default: true,\r\n },\r\n /**\r\n * If the first column always should be visible\r\n */\r\n stickyFirstColumn: {\r\n type: Boolean as PropType,\r\n required: false,\r\n default: false,\r\n },\r\n /**\r\n * If the head always should be visible\r\n */\r\n stickyHead: {\r\n type: Boolean as PropType,\r\n required: false,\r\n default: false,\r\n },\r\n /**\r\n * A list of column names that should not be visible\r\n */\r\n hiddenColumns: {\r\n type: Array as PropType,\r\n required: false,\r\n default: [\"id\"],\r\n },\r\n /**\r\n * If the table should include a pagination\r\n */\r\n showPagination: {\r\n type: Boolean as PropType,\r\n required: false,\r\n default: false,\r\n },\r\n /**\r\n * If the student should be able to change number of rows per page\r\n */\r\n allowChangeRowPerPage: {\r\n type: Boolean as PropType,\r\n required: false,\r\n default: false,\r\n },\r\n /**\r\n * If the table should tell how many rows is showing and the total number of rows\r\n */\r\n showNumRows: {\r\n type: Boolean as PropType,\r\n required: false,\r\n default: false,\r\n },\r\n /**\r\n * Columns that should not be sortable\r\n */\r\n unsortableColumns: {\r\n type: Array as PropType,\r\n required: false,\r\n default: [],\r\n },\r\n /**\r\n * Paging data such as the current page in the table, total number of pages, number of rows per page\r\n */\r\n pagingData: {\r\n type: Object as PropType,\r\n required: false,\r\n },\r\n /**\r\n * A page heading to be displayed above the table\r\n */\r\n pageHeading: {\r\n type: String as PropType,\r\n required: false,\r\n },\r\n /**\r\n * Text to show when no data is populated\r\n */\r\n noDataText: {\r\n type: String as PropType,\r\n required: false,\r\n },\r\n /**\r\n * Whether or not to show a spinner when data is loading\r\n */ useSpinner: {\r\n type: Boolean as PropType,\r\n required: false,\r\n default: false,\r\n },\r\n /**\r\n * Steers when to show the loading spinner\r\n */ isLoading: {\r\n type: Boolean as PropType,\r\n required: false,\r\n default: true,\r\n },\r\n /**\r\n * Whether or not to override the default column width calculation\r\n * If this is set to true, the column width will be set to auto\r\n */\r\n overrideColWidthCalculation: {\r\n type: Boolean as PropType,\r\n required: false,\r\n default: false,\r\n },\r\n },\r\n data: () => ({\r\n /**\r\n * The rows per page options\r\n */\r\n pageSizeOptions: [5, 10, 25, 50],\r\n /**\r\n * Used to delay the display of the spinner if being used\r\n */\r\n showSpinner: false,\r\n /**\r\n * The width of all columns except the last\r\n */\r\n colWidthForAll: 0,\r\n }),\r\n computed: {\r\n /**\r\n * Visible column names\r\n */\r\n cols(): string[] {\r\n if (!this.rows || this.rows.length < 1) {\r\n return [];\r\n }\r\n let cols: string[] = [];\r\n Object.getOwnPropertyNames(this.rows[0]).forEach((key) => {\r\n if (!this.hiddenColumns.includes(key)) {\r\n cols.push(key);\r\n }\r\n });\r\n return cols;\r\n },\r\n /**\r\n * The width in percentage of all columns except the last,\r\n * but will return auto if overrideColWidthCalculation is set to true\r\n */\r\n colWidth(): string {\r\n this.colWidthForAll = Math.round(100 / this.cols.length);\r\n return this.getColWidthString(this.colWidthForAll);\r\n },\r\n /**\r\n * The width in percentage of the last column,\r\n * but will return auto if overrideColWidthCalculation is set to true.\r\n * Because colWidth is rounded, lastColWidth takes up any slack so that the total width of all columns is 100\r\n */\r\n lastColWidth(): string {\r\n const colWidth =\r\n this.colWidthForAll + (100 - this.colWidthForAll * this.cols.length);\r\n return this.getColWidthString(colWidth);\r\n },\r\n /**\r\n * Whether rows of data have loaded\r\n */\r\n rowsHaveLoaded(): boolean {\r\n return this.rows.length > 0;\r\n },\r\n },\r\n methods: {\r\n /**\r\n * Delays display of the loading spinner for 500 milliseconds so as not to cause\r\n * jumps in the table display when sort column or direction, filter, etc changes.\r\n * It is called from the watch block\r\n */\r\n delaySpinnerDisplay(): void {\r\n if (this.useSpinner) {\r\n this.showSpinner = false;\r\n this.sleep(500).then(() => {\r\n this.showSpinner = true;\r\n });\r\n }\r\n },\r\n /**\r\n * Uses setTimeout to return a promise that can be used in the calling code to delay execution of the code\r\n *\r\n * @param {number} milliseconds The number of milliseconds to sleep for\r\n */\r\n sleep(milliseconds: number): Promise {\r\n return new Promise((resolve) => setTimeout(resolve, milliseconds));\r\n },\r\n /**\r\n * Capitalizes a string\r\n *\r\n * @param {string} str The string that should be capitalized\r\n * @returns {string} The capitalized string\r\n */\r\n capitalize(str: string): string {\r\n return str.charAt(0).toUpperCase() + str.slice(1);\r\n },\r\n /**\r\n * Sorts the table based on the given column name and ascending properties\r\n *\r\n * @param {string} columnName The column the sort should be based on\r\n */\r\n sortTable(columnName: string): void {\r\n if (this.allowSort) {\r\n let ascending = this.sortColumn === columnName ? !this.ascending : true;\r\n this.$emit(\"sortChanged\", columnName, ascending);\r\n }\r\n },\r\n /**\r\n * Gets the rows that should be shown on the current page\r\n */\r\n getRows(): Record[] {\r\n return this.rows;\r\n },\r\n /**\r\n * Gets called when the user clicks on a row\r\n * Emits a rowClick event with information about the row\r\n *\r\n * @param {number} rowIndex The index of the clicked row\r\n * @param {unknown} rowData The data of the clicked row\r\n */\r\n onRowClick(rowIndex: number, rowData: Array): void {\r\n this.$emit(\"rowClick\", { rowIndex, rowData });\r\n },\r\n /**\r\n * Gets called when the user clicks on a cell\r\n * Emits a cellClick event with information about the row and cell\r\n *\r\n * @param {number} rowIndex The row index of the clicked cell\r\n * @param {unknown} rowData The row data of the clicked cell\r\n * @param {string} cellName The name of the clicked cell\r\n */\r\n onCellClick(\r\n rowIndex: number,\r\n rowData: Array,\r\n cellName: string\r\n ): void {\r\n this.$emit(\"cellClick\", { rowIndex, rowData, cellName });\r\n },\r\n onPageNumberChange(pageNumber: number): void {\r\n this.$emit(\"pageNumberChanged\", pageNumber);\r\n },\r\n /**\r\n * Gets called when the user changes page size\r\n */\r\n onPageSizeChange(): void {\r\n this.$emit(\"pageSizeChanged\", this.pagingData.pageSize);\r\n },\r\n /**\r\n * Gets the width of a column based on the given column width and the overrideColWidthCalculation property\r\n */\r\n getColWidthString(colWidth: number): string {\r\n return this.overrideColWidthCalculation ? \"auto\" : `${colWidth}%`;\r\n },\r\n },\r\n watch: {\r\n /**\r\n * Gets called when page changes\r\n *\r\n * @param {number} page The new page number\r\n */\r\n currentPage(page: number): void {\r\n this.$emit(\"pageChange\", page);\r\n },\r\n /**\r\n * Gets called when filters or sort column name or ascending changes\r\n */\r\n rows() {\r\n this.delaySpinnerDisplay();\r\n },\r\n sortColumn() {\r\n this.delaySpinnerDisplay();\r\n },\r\n ascending() {\r\n this.delaySpinnerDisplay();\r\n },\r\n },\r\n mounted() {\r\n this.delaySpinnerDisplay();\r\n },\r\n})\r\nexport default class Table extends Vue {}\r\n","import { render } from \"./Table.vue?vue&type=template&id=297f8a7c&scoped=true&ts=true\"\nimport script from \"./Table.vue?vue&type=script&lang=ts\"\nexport * from \"./Table.vue?vue&type=script&lang=ts\"\n\nimport \"./Table.vue?vue&type=style&index=0&id=297f8a7c&scoped=true&lang=css\"\n\nimport exportComponent from \"C:\\\\Users\\\\fr5673mo\\\\Documents\\\\git.lu.se\\\\.net\\\\student-portal\\\\student-portal-web\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-297f8a7c\"]])\n\nexport default __exports__","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./Select.vue?vue&type=style&index=0&id=993c70b2&scoped=true&lang=css\"","var $ = require('../internals/export');\nvar fails = require('../internals/fails');\nvar getOwnPropertyNames = require('../internals/object-get-own-property-names-external').f;\n\n// eslint-disable-next-line es/no-object-getownpropertynames -- required for testing\nvar FAILS_ON_PRIMITIVES = fails(function () { return !Object.getOwnPropertyNames(1); });\n\n// `Object.getOwnPropertyNames` method\n// https://tc39.es/ecma262/#sec-object.getownpropertynames\n$({ target: 'Object', stat: true, forced: FAILS_ON_PRIMITIVES }, {\n getOwnPropertyNames: getOwnPropertyNames\n});\n","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./Pagination.vue?vue&type=style&index=0&id=42bf6f98&scoped=true&lang=css\"","import { toDisplayString as _toDisplayString, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderList as _renderList, Fragment as _Fragment, renderSlot as _renderSlot, createTextVNode as _createTextVNode, createElementVNode as _createElementVNode, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from \"vue\"\n\nconst _withScopeId = n => (_pushScopeId(\"data-v-993c70b2\"),n=n(),_popScopeId(),n)\nconst _hoisted_1 = { class: \"form-group\" }\nconst _hoisted_2 = { class: \"w-100\" }\nconst _hoisted_3 = { key: 0 }\nconst _hoisted_4 = [\"disabled\", \"required\", \"value\", \"aria-label\"]\nconst _hoisted_5 = [\"selected\"]\nconst _hoisted_6 = [\"value\", \"selected\"]\nconst _hoisted_7 = {\n key: 0,\n class: \"form-text text-muted\"\n}\n\nexport function render(_ctx: any,_cache: any,$props: any,$setup: any,$data: any,$options: any) {\n return (_openBlock(), _createElementBlock(\"div\", _hoisted_1, [\n _createElementVNode(\"label\", _hoisted_2, [\n (_ctx.label)\n ? (_openBlock(), _createElementBlock(\"span\", _hoisted_3, _toDisplayString(_ctx.label), 1))\n : _createCommentVNode(\"\", true),\n _createElementVNode(\"select\", {\n class: \"form-control custom-select\",\n disabled: _ctx.disabled,\n required: _ctx.required,\n value: _ctx.value,\n onChange: _cache[0] || (_cache[0] = ($event: any) => (_ctx.updateValue($event.target.value))),\n \"aria-label\": _ctx.label ? _ctx.label : '',\n ref: \"input\",\n onInvalid: _cache[1] || (_cache[1] = ($event: any) => (_ctx.validityMessage ? _ctx.setValidityMessage(_ctx.validityMessage) : null))\n }, [\n (_ctx.placeholder)\n ? (_openBlock(), _createElementBlock(\"option\", {\n key: 0,\n value: \"\",\n disabled: \"\",\n selected: !_ctx.options.includes(_ctx.value)\n }, _toDisplayString(_ctx.placeholder), 9, _hoisted_5))\n : _createCommentVNode(\"\", true),\n (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.options, (option) => {\n return (_openBlock(), _createElementBlock(\"option\", {\n key: option,\n value: option,\n selected: option === _ctx.value\n }, [\n _renderSlot(_ctx.$slots, \"default\", { value: option }, () => [\n _createTextVNode(_toDisplayString(option), 1)\n ], true)\n ], 8, _hoisted_6))\n }), 128))\n ], 40, _hoisted_4)\n ]),\n (_ctx.helpText)\n ? (_openBlock(), _createElementBlock(\"small\", _hoisted_7, _toDisplayString(_ctx.helpText), 1))\n : _createCommentVNode(\"\", true)\n ]))\n}","\r\nimport { PropType } from \"@vue/runtime-core\";\r\nimport { Options, Vue } from \"vue-class-component\";\r\n\r\n@Options({\r\n props: {\r\n /**\r\n * The select options\r\n */\r\n options: {\r\n type: Array as PropType,\r\n required: true,\r\n },\r\n /**\r\n * The current value\r\n */\r\n value: {\r\n type: [String, Number] as PropType,\r\n required: false,\r\n },\r\n /**\r\n * The label for the select input\r\n */\r\n label: {\r\n type: String as PropType,\r\n required: false,\r\n },\r\n /**\r\n * The placeholder for the select input\r\n */\r\n placeholder: {\r\n type: String as PropType,\r\n required: false,\r\n },\r\n /**\r\n * The help text for the select input\r\n */\r\n helpText: {\r\n type: String as PropType,\r\n required: false,\r\n },\r\n /**\r\n * If the select input is disabled\r\n */\r\n disabled: {\r\n type: Boolean as PropType,\r\n required: false,\r\n default: false,\r\n },\r\n /**\r\n * If the value should be returned as a number\r\n */\r\n isNumber: {\r\n type: Boolean as PropType,\r\n required: false,\r\n default: false,\r\n },\r\n /**\r\n * If the input is required\r\n */\r\n required: {\r\n type: Boolean as PropType,\r\n required: false,\r\n default: false,\r\n },\r\n /**\r\n * Custom validity message\r\n */\r\n validityMessage: {\r\n type: String as PropType,\r\n required: false,\r\n },\r\n },\r\n methods: {\r\n /**\r\n * Gets called when the user selects a option\r\n *\r\n * @param {string} value The selected value\r\n */\r\n updateValue(value: string): void {\r\n this.setValidityMessage(\"\");\r\n this.$emit(\"update:value\", this.isNumber ? parseInt(value) : value);\r\n },\r\n /**\r\n * Sets a custom validity message\r\n *\r\n * @param {string} message The message\r\n */\r\n setValidityMessage(message: string): void {\r\n this.$refs.input.setCustomValidity(message);\r\n },\r\n },\r\n})\r\nexport default class Select extends Vue {}\r\n","import { render } from \"./Select.vue?vue&type=template&id=993c70b2&scoped=true&ts=true\"\nimport script from \"./Select.vue?vue&type=script&lang=ts\"\nexport * from \"./Select.vue?vue&type=script&lang=ts\"\n\nimport \"./Select.vue?vue&type=style&index=0&id=993c70b2&scoped=true&lang=css\"\n\nimport exportComponent from \"C:\\\\Users\\\\fr5673mo\\\\Documents\\\\git.lu.se\\\\.net\\\\student-portal\\\\student-portal-web\\\\node_modules\\\\vue-loader-v16\\\\dist\\\\exportHelper.js\"\nconst __exports__ = /*#__PURE__*/exportComponent(script, [['render',render],['__scopeId',\"data-v-993c70b2\"]])\n\nexport default __exports__","export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader-v16/dist/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader-v16/dist/index.js??ref--1-1!./Table.vue?vue&type=style&index=0&id=297f8a7c&scoped=true&lang=css\""],"sourceRoot":""}