@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.
- package/CHANGELOG.md +16 -0
- package/dist/cjs/limel-dialog.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-info-tile.cjs.entry.js +1 -1
- package/dist/cjs/limel-info-tile.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-table.cjs.entry.js +11 -4
- package/dist/cjs/limel-table.cjs.entry.js.map +1 -1
- package/dist/collection/components/action-bar/action-bar-item/action-bar-item.css +16 -0
- package/dist/collection/components/badge/badge.css +16 -0
- package/dist/collection/components/breadcrumbs/breadcrumbs.css +16 -0
- package/dist/collection/components/button/button.css +16 -0
- package/dist/collection/components/button-group/button-group.css +16 -0
- package/dist/collection/components/card/card.css +16 -0
- package/dist/collection/components/chart/chart.css +32 -0
- package/dist/collection/components/checkbox/checkbox.css +16 -0
- package/dist/collection/components/chip/chip.css +16 -0
- package/dist/collection/components/chip-set/chip-set.css +32 -0
- package/dist/collection/components/circular-progress/circular-progress.css +16 -0
- package/dist/collection/components/code-editor/code-editor.css +16 -0
- package/dist/collection/components/collapsible-section/collapsible-section.css +16 -0
- package/dist/collection/components/color-picker/color-picker-palette.css +32 -0
- package/dist/collection/components/color-picker/color-picker.css +16 -0
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.css +16 -0
- package/dist/collection/components/dialog/dialog.css +16 -0
- package/dist/collection/components/dock/dock-button/dock-button.css +16 -0
- package/dist/collection/components/dock/dock.css +16 -0
- package/dist/collection/components/file/file.css +16 -0
- package/dist/collection/components/file-viewer/file-viewer.css +16 -0
- package/dist/collection/components/form/form.css +16 -0
- package/dist/collection/components/header/header.css +16 -0
- package/dist/collection/components/help/help.css +16 -0
- package/dist/collection/components/help/limel-help-content.css +16 -0
- package/dist/collection/components/icon-button/icon-button.css +16 -0
- package/dist/collection/components/info-tile/info-tile.css +16 -0
- package/dist/collection/components/input-field/input-field.css +16 -0
- package/dist/collection/components/list/list.css +80 -0
- package/dist/collection/components/markdown/markdown.css +32 -0
- package/dist/collection/components/menu-list/menu-list.css +80 -0
- package/dist/collection/components/popover-surface/popover-surface.css +16 -0
- package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.css +16 -0
- package/dist/collection/components/select/select.css +32 -0
- package/dist/collection/components/shortcut/shortcut.css +16 -0
- package/dist/collection/components/slider/slider.css +16 -0
- package/dist/collection/components/split-button/split-button.css +16 -0
- package/dist/collection/components/switch/switch.css +16 -0
- package/dist/collection/components/table/table.css +64 -0
- package/dist/collection/components/table/table.js +11 -4
- package/dist/collection/components/table/table.js.map +1 -1
- package/dist/collection/components/text-editor/prosemirror-adapter/prosemirror-adapter.css +48 -0
- package/dist/collection/components/text-editor/text-editor.css +16 -0
- package/dist/collection/style/mixins.scss +60 -0
- package/dist/esm/limel-dialog.entry.js.map +1 -1
- package/dist/esm/limel-info-tile.entry.js +1 -1
- package/dist/esm/limel-info-tile.entry.js.map +1 -1
- package/dist/esm/limel-table.entry.js +11 -4
- package/dist/esm/limel-table.entry.js.map +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/p-89eaca66.entry.js.map +1 -1
- package/dist/lime-elements/{p-f077bfca.entry.js → p-c923b97d.entry.js} +2 -2
- package/dist/lime-elements/p-c923b97d.entry.js.map +1 -0
- package/dist/lime-elements/p-ece3a0f5.entry.js +2 -0
- package/dist/lime-elements/{p-2963426c.entry.js.map → p-ece3a0f5.entry.js.map} +1 -1
- package/dist/lime-elements/style/mixins.scss +60 -0
- package/dist/scss/mixins.scss +60 -0
- package/dist/types/components/table/table.d.ts +2 -0
- package/package.json +2 -2
- package/dist/lime-elements/p-2963426c.entry.js +0 -2
- 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
|
-
|
|
24441
|
-
|
|
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
|