@nethserver/ns8-ui-lib 0.1.19 → 0.1.21

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -62,7 +62,6 @@ import Link20 from '@carbon/icons-vue/es/link/20';
62
62
  import Link32 from '@carbon/icons-vue/es/link/32';
63
63
  import WarningAlt32 from '@carbon/icons-vue/es/warning--alt/32';
64
64
  import WarningAlt20 from '@carbon/icons-vue/es/warning--alt/20';
65
- import WarningAlt16 from '@carbon/icons-vue/es/warning--alt/16';
66
65
  import Tools20 from '@carbon/icons-vue/es/tools/20';
67
66
  import Tools32 from '@carbon/icons-vue/es/tools/32';
68
67
  import Network_220 from '@carbon/icons-vue/es/network--2/20';
@@ -8734,12 +8733,8 @@ var IconService = {
8734
8733
  Link20,
8735
8734
  // URLs and external domain providers
8736
8735
  Link32,
8737
- WarningAlt16,
8738
8736
  WarningAlt20,
8739
8737
  WarningAlt32,
8740
- WarningAltFilled16: WarningAlt16,
8741
- WarningAltFilled20: WarningAlt20,
8742
- WarningAltFilled32: WarningAlt32,
8743
8738
  Tools20,
8744
8739
  Tools32,
8745
8740
  Network_220,
@@ -17396,6 +17391,12 @@ var script$8 = {
17396
17391
  type: String,
17397
17392
  default: "Try changing your search query"
17398
17393
  },
17394
+ filterRowsCallback: {
17395
+ type: Function
17396
+ },
17397
+ customSortTable: {
17398
+ type: Function
17399
+ },
17399
17400
  // default value of following props is defined in NsPagination
17400
17401
  itemsPerPageLabel: {
17401
17402
  type: String,
@@ -17420,9 +17421,6 @@ var script$8 = {
17420
17421
  pageNumberLabel: {
17421
17422
  type: String,
17422
17423
  default: undefined
17423
- },
17424
- filterRowsCallback: {
17425
- type: Function
17426
17424
  }
17427
17425
  },
17428
17426
 
@@ -17579,6 +17577,14 @@ var script$8 = {
17579
17577
  }
17580
17578
 
17581
17579
  const propertyToSort = this.rawColumns[ev.index];
17580
+
17581
+ if (this.customSortTable) {
17582
+ // call custom sort function
17583
+ this.filteredRows.sort(this.customSortTable(propertyToSort));
17584
+ } else {
17585
+ this.filteredRows.sort(this.sortByProperty(propertyToSort));
17586
+ }
17587
+
17582
17588
  this.filteredRows.sort(this.sortByProperty(propertyToSort));
17583
17589
 
17584
17590
  if (ev.order === "descending") {
@@ -24239,10 +24245,15 @@ var pageTitle = {
24239
24245
  name: "PageTitleService",
24240
24246
 
24241
24247
  created() {
24242
- const pageTitle = getPageTitle(this);
24248
+ let pageTitle = getPageTitle(this);
24243
24249
 
24244
24250
  if (pageTitle) {
24245
- // window.document would be ok for core, but with window.parent.document we support external apps too (window.parent == window, if it's the root window)
24251
+ if (pageTitle.includes(".title")) {
24252
+ // fallback title: i18n has not been loaded yet
24253
+ pageTitle = window.parent.CONFIG.PRODUCT_NAME;
24254
+ } // window.document would be ok for core, but with window.parent.document we support external apps too (window.parent == window, if it's the root window)
24255
+
24256
+
24246
24257
  window.parent.document.title = pageTitle;
24247
24258
  }
24248
24259
  }