@limetech/lime-elements 38.3.1 → 38.3.3

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.
Files changed (67) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/limel-dialog.cjs.entry.js.map +1 -1
  3. package/dist/cjs/limel-info-tile.cjs.entry.js +1 -1
  4. package/dist/cjs/limel-info-tile.cjs.entry.js.map +1 -1
  5. package/dist/cjs/limel-table.cjs.entry.js +11 -4
  6. package/dist/cjs/limel-table.cjs.entry.js.map +1 -1
  7. package/dist/collection/components/action-bar/action-bar-item/action-bar-item.css +16 -0
  8. package/dist/collection/components/badge/badge.css +16 -0
  9. package/dist/collection/components/breadcrumbs/breadcrumbs.css +16 -0
  10. package/dist/collection/components/button/button.css +16 -0
  11. package/dist/collection/components/button-group/button-group.css +16 -0
  12. package/dist/collection/components/card/card.css +16 -0
  13. package/dist/collection/components/chart/chart.css +32 -0
  14. package/dist/collection/components/checkbox/checkbox.css +16 -0
  15. package/dist/collection/components/chip/chip.css +16 -0
  16. package/dist/collection/components/chip-set/chip-set.css +32 -0
  17. package/dist/collection/components/circular-progress/circular-progress.css +16 -0
  18. package/dist/collection/components/code-editor/code-editor.css +16 -0
  19. package/dist/collection/components/collapsible-section/collapsible-section.css +16 -0
  20. package/dist/collection/components/color-picker/color-picker-palette.css +32 -0
  21. package/dist/collection/components/color-picker/color-picker.css +16 -0
  22. package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.css +16 -0
  23. package/dist/collection/components/dialog/dialog.css +16 -0
  24. package/dist/collection/components/dock/dock-button/dock-button.css +16 -0
  25. package/dist/collection/components/dock/dock.css +16 -0
  26. package/dist/collection/components/file/file.css +16 -0
  27. package/dist/collection/components/file-viewer/file-viewer.css +16 -0
  28. package/dist/collection/components/form/form.css +16 -0
  29. package/dist/collection/components/header/header.css +16 -0
  30. package/dist/collection/components/help/help.css +16 -0
  31. package/dist/collection/components/help/limel-help-content.css +16 -0
  32. package/dist/collection/components/icon-button/icon-button.css +16 -0
  33. package/dist/collection/components/info-tile/info-tile.css +16 -0
  34. package/dist/collection/components/input-field/input-field.css +16 -0
  35. package/dist/collection/components/list/list.css +80 -0
  36. package/dist/collection/components/markdown/markdown.css +32 -0
  37. package/dist/collection/components/menu-list/menu-list.css +80 -0
  38. package/dist/collection/components/popover-surface/popover-surface.css +16 -0
  39. package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.css +16 -0
  40. package/dist/collection/components/select/select.css +32 -0
  41. package/dist/collection/components/shortcut/shortcut.css +16 -0
  42. package/dist/collection/components/slider/slider.css +16 -0
  43. package/dist/collection/components/split-button/split-button.css +16 -0
  44. package/dist/collection/components/switch/switch.css +16 -0
  45. package/dist/collection/components/table/table.css +64 -0
  46. package/dist/collection/components/table/table.js +11 -4
  47. package/dist/collection/components/table/table.js.map +1 -1
  48. package/dist/collection/components/text-editor/prosemirror-adapter/prosemirror-adapter.css +48 -0
  49. package/dist/collection/components/text-editor/text-editor.css +16 -0
  50. package/dist/collection/style/mixins.scss +60 -0
  51. package/dist/esm/limel-dialog.entry.js.map +1 -1
  52. package/dist/esm/limel-info-tile.entry.js +1 -1
  53. package/dist/esm/limel-info-tile.entry.js.map +1 -1
  54. package/dist/esm/limel-table.entry.js +11 -4
  55. package/dist/esm/limel-table.entry.js.map +1 -1
  56. package/dist/lime-elements/lime-elements.esm.js +1 -1
  57. package/dist/lime-elements/p-89eaca66.entry.js.map +1 -1
  58. package/dist/lime-elements/{p-f077bfca.entry.js → p-c923b97d.entry.js} +2 -2
  59. package/dist/lime-elements/p-c923b97d.entry.js.map +1 -0
  60. package/dist/lime-elements/p-ece3a0f5.entry.js +2 -0
  61. package/dist/lime-elements/{p-2963426c.entry.js.map → p-ece3a0f5.entry.js.map} +1 -1
  62. package/dist/lime-elements/style/mixins.scss +60 -0
  63. package/dist/scss/mixins.scss +60 -0
  64. package/dist/types/components/table/table.d.ts +2 -0
  65. package/package.json +2 -2
  66. package/dist/lime-elements/p-2963426c.entry.js +0 -2
  67. package/dist/lime-elements/p-f077bfca.entry.js.map +0 -1
@@ -24308,6 +24308,7 @@ const Table = class {
24308
24308
  this.changeColumns = createEvent(this, "changeColumns", 7);
24309
24309
  this.select = createEvent(this, "select", 7);
24310
24310
  this.selectAll = createEvent(this, "selectAll", 7);
24311
+ this.shouldSort = false;
24311
24312
  this.getActiveRows = () => {
24312
24313
  if (!this.tabulator) {
24313
24314
  return [];
@@ -24365,6 +24366,7 @@ const Table = class {
24365
24366
  this.selection = undefined;
24366
24367
  this.handleDataSorting = this.handleDataSorting.bind(this);
24367
24368
  this.handlePageLoaded = this.handlePageLoaded.bind(this);
24369
+ this.handleRenderComplete = this.handleRenderComplete.bind(this);
24368
24370
  this.handleAjaxRequesting = this.handleAjaxRequesting.bind(this);
24369
24371
  this.requestData = this.requestData.bind(this);
24370
24372
  this.onClickRow = this.onClickRow.bind(this);
@@ -24437,9 +24439,8 @@ const Table = class {
24437
24439
  if (this.areSameColumns(newColumns, oldColumnsInTable)) {
24438
24440
  return;
24439
24441
  }
24440
- // Updating columns requires a reinitialization otherwise sorting will not work
24441
- // afterwards
24442
- this.init();
24442
+ this.tabulator.setColumns(this.getColumnDefinitions());
24443
+ this.shouldSort = true;
24443
24444
  }
24444
24445
  updateAggregates(newAggregates, oldAggregates) {
24445
24446
  if (!this.tabulator) {
@@ -24556,7 +24557,7 @@ const Table = class {
24556
24557
  const ajaxOptions = this.getAjaxOptions();
24557
24558
  const paginationOptions = this.getPaginationOptions();
24558
24559
  const columnOptions = this.getColumnOptions();
24559
- return Object.assign(Object.assign(Object.assign(Object.assign({ data: this.data, layout: mapLayout(this.layout), columns: this.getColumnDefinitions(), dataSorting: this.handleDataSorting, pageLoaded: this.handlePageLoaded }, ajaxOptions), paginationOptions), { rowClick: this.onClickRow, rowFormatter: this.formatRow, initialSort: this.getInitialSorting(), nestedFieldSeparator: false }), columnOptions);
24560
+ return Object.assign(Object.assign(Object.assign(Object.assign({ data: this.data, layout: mapLayout(this.layout), columns: this.getColumnDefinitions(), dataSorting: this.handleDataSorting, pageLoaded: this.handlePageLoaded, renderComplete: this.handleRenderComplete }, ajaxOptions), paginationOptions), { rowClick: this.onClickRow, rowFormatter: this.formatRow, initialSort: this.getInitialSorting(), nestedFieldSeparator: false }), columnOptions);
24560
24561
  }
24561
24562
  getInitialSorting() {
24562
24563
  if (this.currentSorting && this.currentSorting.length) {
@@ -24702,6 +24703,12 @@ const Table = class {
24702
24703
  }
24703
24704
  this.changePage.emit(page);
24704
24705
  }
24706
+ handleRenderComplete() {
24707
+ if (this.tabulator && this.shouldSort) {
24708
+ this.shouldSort = false;
24709
+ this.tabulator.setSort(this.getColumnSorter(this.sorting));
24710
+ }
24711
+ }
24705
24712
  onClickRow(_ev, row) {
24706
24713
  if (typeof row.getPosition === 'undefined') {
24707
24714
  // Not a data row, probably a CalcComponent