@messaia/cdk 22.0.1-rc.1 → 22.0.1-rc.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/fesm2022/messaia-cdk.mjs
CHANGED
|
@@ -13375,6 +13375,9 @@ function buildColumn(propertyKey, args, propertyType, target) {
|
|
|
13375
13375
|
break;
|
|
13376
13376
|
}
|
|
13377
13377
|
}
|
|
13378
|
+
if (tableColumn.maxWidth) {
|
|
13379
|
+
tableColumn.width ||= tableColumn.maxWidth;
|
|
13380
|
+
}
|
|
13378
13381
|
/* Set width to minWidth if width is not specified */
|
|
13379
13382
|
return tableColumn;
|
|
13380
13383
|
}
|
|
@@ -19205,6 +19208,7 @@ __decorate([
|
|
|
19205
19208
|
__decorate([
|
|
19206
19209
|
Column({
|
|
19207
19210
|
type: TableColumnType.TextInput,
|
|
19211
|
+
width: 80,
|
|
19208
19212
|
maxWidth: 80,
|
|
19209
19213
|
change: (_, __, ctx) => ctx?.updateColumns()
|
|
19210
19214
|
}),
|
|
@@ -19226,6 +19230,7 @@ __decorate([
|
|
|
19226
19230
|
type: TableColumnType.TextInput,
|
|
19227
19231
|
inputMin: () => 0,
|
|
19228
19232
|
inputMax: () => 2000,
|
|
19233
|
+
width: 80,
|
|
19229
19234
|
maxWidth: 80,
|
|
19230
19235
|
display: Grid.Md,
|
|
19231
19236
|
change: (_, __, ctx) => ctx?.updateColumns()
|
|
@@ -19238,6 +19243,7 @@ __decorate([
|
|
|
19238
19243
|
type: TableColumnType.TextInput,
|
|
19239
19244
|
inputMin: () => 0,
|
|
19240
19245
|
inputMax: () => 2000,
|
|
19246
|
+
width: 80,
|
|
19241
19247
|
maxWidth: 80,
|
|
19242
19248
|
display: Grid.Md
|
|
19243
19249
|
}),
|
|
@@ -19249,6 +19255,7 @@ __decorate([
|
|
|
19249
19255
|
type: TableColumnType.TextInput,
|
|
19250
19256
|
inputMin: () => 0,
|
|
19251
19257
|
inputMax: () => 2000,
|
|
19258
|
+
width: 80,
|
|
19252
19259
|
maxWidth: 80,
|
|
19253
19260
|
display: Grid.Md,
|
|
19254
19261
|
change: (x) => x ? (x.width ??= x.maxWidth) : null
|
|
@@ -19390,9 +19397,11 @@ class VdDynamicTableConfigDialogComponent extends BaseComponent {
|
|
|
19390
19397
|
this.configForm.controls["sticky"].valueChanges.subscribe(value => genericList.dynamicTable.sticky = value);
|
|
19391
19398
|
}
|
|
19392
19399
|
/* Filter columns that are configurable from the provided dynamic table configuration */
|
|
19400
|
+
const activeColumnSets = genericList?.dynamicTable?.columnSets || [];
|
|
19401
|
+
/* Filter columns that are configurable from the provided dynamic table configuration */
|
|
19393
19402
|
this.columns = genericList?.dynamicTable?.columns
|
|
19394
19403
|
?.filter((x) => x.configurable)
|
|
19395
|
-
?.filter((x) => x.columnSets?.some(cs =>
|
|
19404
|
+
?.filter((x) => !activeColumnSets?.length || x.columnSets?.some(cs => activeColumnSets.includes(cs)));
|
|
19396
19405
|
}
|
|
19397
19406
|
/**
|
|
19398
19407
|
* Saves the current column configuration and closes the dialog.
|