@limetech/lime-elements 35.0.0-next.26 → 35.0.0-next.27
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/dist/cjs/limel-form.cjs.entry.js +243 -107
- package/dist/cjs/limel-table.cjs.entry.js +16 -5
- package/dist/collection/components/table/table.js +17 -4
- package/dist/esm/limel-form.entry.js +243 -107
- package/dist/esm/limel-table.entry.js +16 -5
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-0f6ca408.entry.js → p-6661adea.entry.js} +1 -1
- package/dist/lime-elements/{p-156da471.entry.js → p-8487c3c9.entry.js} +2 -2
- package/dist/types/components/table/table.d.ts +2 -0
- package/package.json +2 -2
|
@@ -24211,10 +24211,7 @@ let Table = class {
|
|
|
24211
24211
|
}
|
|
24212
24212
|
componentWillLoad() {
|
|
24213
24213
|
this.firstRequest = this.mode === 'remote';
|
|
24214
|
-
|
|
24215
|
-
this.tableSelection = new TableSelection(() => this.tabulator, this.pool, this.select);
|
|
24216
|
-
this.tableSelection.setSelection(this.selection);
|
|
24217
|
-
}
|
|
24214
|
+
this.initTableSelection();
|
|
24218
24215
|
}
|
|
24219
24216
|
componentDidLoad() {
|
|
24220
24217
|
this.init();
|
|
@@ -24294,6 +24291,13 @@ let Table = class {
|
|
|
24294
24291
|
}
|
|
24295
24292
|
this.tableSelection.setSelection(newSelection);
|
|
24296
24293
|
}
|
|
24294
|
+
updateSelectable() {
|
|
24295
|
+
if (this.tableSelection && !this.selectable) {
|
|
24296
|
+
this.tableSelection = null;
|
|
24297
|
+
}
|
|
24298
|
+
this.initTableSelection();
|
|
24299
|
+
this.init();
|
|
24300
|
+
}
|
|
24297
24301
|
areSameColumns(newColumns, oldColumns) {
|
|
24298
24302
|
return (newColumns.length === oldColumns.length &&
|
|
24299
24303
|
newColumns.every((column) => oldColumns.includes(column)));
|
|
@@ -24339,6 +24343,12 @@ let Table = class {
|
|
|
24339
24343
|
});
|
|
24340
24344
|
observer.observe(table);
|
|
24341
24345
|
}
|
|
24346
|
+
initTableSelection() {
|
|
24347
|
+
if (this.selectable) {
|
|
24348
|
+
this.tableSelection = new TableSelection(() => this.tabulator, this.pool, this.select);
|
|
24349
|
+
this.tableSelection.setSelection(this.selection);
|
|
24350
|
+
}
|
|
24351
|
+
}
|
|
24342
24352
|
setSelection() {
|
|
24343
24353
|
if (!(this.tabulator && this.tableSelection)) {
|
|
24344
24354
|
return;
|
|
@@ -24562,7 +24572,8 @@ let Table = class {
|
|
|
24562
24572
|
"data": ["updateData"],
|
|
24563
24573
|
"columns": ["updateColumns"],
|
|
24564
24574
|
"aggregates": ["updateAggregates"],
|
|
24565
|
-
"selection": ["updateSelection"]
|
|
24575
|
+
"selection": ["updateSelection"],
|
|
24576
|
+
"selectable": ["updateSelectable"]
|
|
24566
24577
|
}; }
|
|
24567
24578
|
};
|
|
24568
24579
|
Table.style = tableCss;
|
|
@@ -102,10 +102,7 @@ export class Table {
|
|
|
102
102
|
}
|
|
103
103
|
componentWillLoad() {
|
|
104
104
|
this.firstRequest = this.mode === 'remote';
|
|
105
|
-
|
|
106
|
-
this.tableSelection = new TableSelection(() => this.tabulator, this.pool, this.select);
|
|
107
|
-
this.tableSelection.setSelection(this.selection);
|
|
108
|
-
}
|
|
105
|
+
this.initTableSelection();
|
|
109
106
|
}
|
|
110
107
|
componentDidLoad() {
|
|
111
108
|
this.init();
|
|
@@ -185,6 +182,13 @@ export class Table {
|
|
|
185
182
|
}
|
|
186
183
|
this.tableSelection.setSelection(newSelection);
|
|
187
184
|
}
|
|
185
|
+
updateSelectable() {
|
|
186
|
+
if (this.tableSelection && !this.selectable) {
|
|
187
|
+
this.tableSelection = null;
|
|
188
|
+
}
|
|
189
|
+
this.initTableSelection();
|
|
190
|
+
this.init();
|
|
191
|
+
}
|
|
188
192
|
areSameColumns(newColumns, oldColumns) {
|
|
189
193
|
return (newColumns.length === oldColumns.length &&
|
|
190
194
|
newColumns.every((column) => oldColumns.includes(column)));
|
|
@@ -230,6 +234,12 @@ export class Table {
|
|
|
230
234
|
});
|
|
231
235
|
observer.observe(table);
|
|
232
236
|
}
|
|
237
|
+
initTableSelection() {
|
|
238
|
+
if (this.selectable) {
|
|
239
|
+
this.tableSelection = new TableSelection(() => this.tabulator, this.pool, this.select);
|
|
240
|
+
this.tableSelection.setSelection(this.selection);
|
|
241
|
+
}
|
|
242
|
+
}
|
|
233
243
|
setSelection() {
|
|
234
244
|
if (!(this.tabulator && this.tableSelection)) {
|
|
235
245
|
return;
|
|
@@ -854,5 +864,8 @@ export class Table {
|
|
|
854
864
|
}, {
|
|
855
865
|
"propName": "selection",
|
|
856
866
|
"methodName": "updateSelection"
|
|
867
|
+
}, {
|
|
868
|
+
"propName": "selectable",
|
|
869
|
+
"methodName": "updateSelectable"
|
|
857
870
|
}]; }
|
|
858
871
|
}
|