@wavemaker/app-ng-runtime 12.0.0-next.45501 → 12.0.0-next.45752
Sign up to get free protection for your applications and to get access to all the features.
- app-ng-runtime/components/base/bundles/index.umd.js +7 -1
- app-ng-runtime/components/base/esm2022/utils/live-utils.mjs +8 -2
- app-ng-runtime/components/base/fesm2022/index.mjs +7 -1
- app-ng-runtime/components/base/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/bundles/index.umd.js +4 -0
- app-ng-runtime/components/data/form/esm2022/form-field/form-field.directive.mjs +5 -1
- app-ng-runtime/components/data/form/fesm2022/index.mjs +4 -0
- app-ng-runtime/components/data/form/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/form/form-field/form-field.directive.d.ts +1 -0
- app-ng-runtime/components/data/table/bundles/index.umd.js +2 -2
- app-ng-runtime/components/data/table/esm2022/table.component.mjs +3 -3
- app-ng-runtime/components/data/table/fesm2022/index.mjs +2 -2
- app-ng-runtime/components/data/table/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/components/data/table/table.component.d.ts +1 -1
- app-ng-runtime/components/input/default/bundles/index.umd.js +15 -13
- app-ng-runtime/components/input/default/esm2022/select/select.component.mjs +17 -15
- app-ng-runtime/components/input/default/fesm2022/index.mjs +16 -14
- app-ng-runtime/components/input/default/fesm2022/index.mjs.map +1 -1
- app-ng-runtime/package.json +1 -1
- app-ng-runtime/scripts/datatable/datatable.js +1 -1
@@ -4256,7 +4256,13 @@
|
|
4256
4256
|
lodashEs.forEach(headerConfig, cols => {
|
4257
4257
|
if (lodashEs.get(cols, 'isGroup')) {
|
4258
4258
|
if (cols.field === field) {
|
4259
|
-
cols.columns
|
4259
|
+
const id = cols.columns?.findIndex((col) => col?.field === config.field);
|
4260
|
+
if (id == -1) {
|
4261
|
+
cols.columns[index] = config;
|
4262
|
+
}
|
4263
|
+
else {
|
4264
|
+
cols.columns[id] = config;
|
4265
|
+
}
|
4260
4266
|
}
|
4261
4267
|
else {
|
4262
4268
|
setHeaderConfig(cols.columns, config, field, index);
|
@@ -15,7 +15,13 @@ export const setHeaderConfig = (headerConfig, config, field, index) => {
|
|
15
15
|
forEach(headerConfig, cols => {
|
16
16
|
if (get(cols, 'isGroup')) {
|
17
17
|
if (cols.field === field) {
|
18
|
-
cols.columns
|
18
|
+
const id = cols.columns?.findIndex((col) => col?.field === config.field);
|
19
|
+
if (id == -1) {
|
20
|
+
cols.columns[index] = config;
|
21
|
+
}
|
22
|
+
else {
|
23
|
+
cols.columns[id] = config;
|
24
|
+
}
|
19
25
|
}
|
20
26
|
else {
|
21
27
|
setHeaderConfig(cols.columns, config, field, index);
|
@@ -208,4 +214,4 @@ export const getDefaultValue = (value, type, widget) => {
|
|
208
214
|
}
|
209
215
|
return value;
|
210
216
|
};
|
211
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGl2ZS11dGlscy5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvbXBvbmVudHMvYmFzZS9zcmMvdXRpbHMvbGl2ZS11dGlscy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsWUFBWSxFQUFFLGNBQWMsRUFBRSxRQUFRLEVBQUUsV0FBVyxFQUFFLFNBQVMsRUFBRSxNQUFNLFVBQVUsQ0FBQztBQUMxRixPQUFPLEVBQUMsT0FBTyxFQUFFLEdBQUcsRUFBRSxRQUFRLEVBQUUsS0FBSyxFQUFDLE1BQU0sV0FBVyxDQUFDO0FBRXhELE1BQU8saUJBQWlCLEdBQUc7SUFDdkIsT0FBTyxFQUFHLFNBQVM7SUFDbkIsS0FBSyxFQUFHLE9BQU87Q0FDbEIsQ0FBQztBQUVGLE1BQU0sQ0FBQyxNQUFNLFNBQVMsR0FBRztJQUNyQixVQUFVLEVBQUcsV0FBVztJQUN4QixNQUFNLEVBQUcsUUFBUTtJQUNqQixJQUFJLEVBQUcsTUFBTTt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Y29sdW1ucz8uZmluZEluZGV4KChjb2wpID0+IGNvbD8uZmllbGQgPT09IGNvbmZpZy5maWVsZCk7XG4gICAgICAgICAgICAgICAgaWYgKGlkID09IC0xKSB7XG4gICAgICAgICAgICAgICAgICAgIGNvbHMuY29sdW1uc1tpbmRleF0gPSBjb25maWc7XG4gICAgICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgICAgICAgY29scy5jb2x1bW5zW2lkXSA9IGNvbmZpZztcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICAgIHNldEhlYWRlckNvbmZpZyhjb2xzLmNvbHVtbnMsIGNvbmZpZywgZmllbGQsIGluZGV4KTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH0pO1xufTtcblxuZXhwb3J0IGNvbnN0IHNldEhlYWRlckNvbmZpZ0ZvclRhYmxlID0gKGhlYWRlckNvbmZpZzogYW55LCBjb25maWc6IGFueSwgZmllbGROYW1lOiBzdHJpbmcsIGluZGV4PzogbnVtYmVyKTogdm9pZCA9PiB7XG4gICAgaWYgKGZpZWxkTmFtZSkge1xuICAgICAgICBzZXRIZWFkZXJDb25maWcoaGVhZGVyQ29uZmlnLCBjb25maWcsIGZpZWxkTmFtZSwgaW5kZXgpO1xuICAgIH0gZWxzZSB7XG4gICAgICAgIGhlYWRlckNvbmZpZ1tpbmRleF0gPSBjb25maWc7XG4gICAgfVxufTtcblxuZXhwb3J0IGNvbnN0IGdldFJvd09wZXJhdGlvbnNDb2x1bW4gPSAoKTogYW55ID0+IHtcbiAgICByZXR1cm4ge1xuICAgICAgICAnZmllbGQnICAgICAgICAgOiAncm93T3BlcmF0aW9ucycsXG4gICAgICAgICd0eXBlJyAgICAgICAgICA6ICdjdXN0b20nLFxuICAgICAgICAnZGlzcGxheU5hbWUnICAgOiAnQWN0aW9ucycsXG4gICAgICAgICd3aWR0aCcgICAgICAgICA6ICcxMjBweCcsXG4gICAgICAgICdyZWFkb25seScgICAgICA6IHRydWUsXG4gICAgICAgICdzb3J0YWJsZScgICAgICA6IGZhbHNlLFxuICAgICAgICAnc2VhcmNoYWJsZScgICAgOiBmYWxzZSxcbiAgICAgICAgJ3Jlc2l6YWJsZScgICAgIDogZmFsc2UsXG4gICAgICAgICdzZWxlY3RhYmxlJyAgICA6IGZhbHNlLFxuICAgICAgICAnc2hvdycgICAgICAgICAgOiB0cnVlLFxuICAgICAgICAnb3BlcmF0aW9ucycgICAgOiBbXSxcbiAgICAgICAgJ29wQ29uZmlnJyAgICAgIDoge30sXG4gICAgICAgICdwY0Rpc3BsYXknICAgICA6IHRydWUsXG4gICAgICAgICdtb2JpbGVEaXNwbGF5JyA6IHRydWUsXG4gICAgICAgICd0YWJsZXREaXNwbGF5JyA6IHRydWUsXG4gICAgICAgICdpbmNsdWRlJyAgICAgICA6IHRydWUsXG4gICAgICAgICdpc1Jvd09wZXJhdGlvbic6IHRydWVcbiAgICB9O1xufTtcblxuLyoqXG4gKiBSZXR1cm5zIGNhcHRpb24gYW5kIHdpZGdldCBib290c3RyYXAgY2xhc3NlcyBmb3IgdGhlIGZpZWxkXG4gKi9cbmV4cG9ydCBjb25zdCBnZXRGaWVsZExheW91dENvbmZpZyA9IChjYXB0aW9uV2lkdGgsIGNhcHRpb25Qb3NpdGlvbiwgb3MpOiBhbnkgPT4ge1xuICAgIGxldCBjYXB0aW9uQ2xzID0gJycsXG4gICAgICAgIHdpZGdldENscyA9ICcnO1xuXG4gICAgY2FwdGlvblBvc2l0aW9uID0gY2FwdGlvblBvc2l0aW9uIHx8ICd0b3AnO1xuXG4gICAgaWYgKGNhcHRpb25Qb3NpdGlvbiA9PT0gJ3RvcCcgfHwgY2FwdGlvblBvc2l0aW9uID09PSAnZmxvYXRpbmcnKSB7XG4gICAgICAgIGlmICgob3MgJiYgb3MgPT09ICdhbmRyb2lkJykgfHwgIWlzTW9iaWxlQXBwKCkgfHwgaXNBbmRyb2lkKCkpIHsgLy8gSXMgYW5kcm9pZCBvciBub3QgYSBtb2JpbGUgYXBwbGljYXRpb25cbiAgICAgICAgICAgIGNhcHRpb25DbHMgPSB3aWRnZXRDbHMgPSAnY29sLXhzLTEyJztcbiAgICAgICAgfSBlbHNlIGlmIChpc01vYmlsZUFwcCgpKSB7IC8vIElzIGEgbW9iaWxlIGFwcGxpY2F0aW9uIGFuZCBub3QgYW5kcm9pZFxuICAgICAgICAgICAgY2FwdGlvbkNscyA9ICdjb2wteHMtNCc7XG4gICAgICAgICAgICB3aWRnZXRDbHMgPSAnY29sLXhzLTgnO1xuICAgICAgICB9XG4gICAgfSBlbHNlIGlmIChjYXB0aW9uV2lkdGgpIHtcbiAgICAgICAgLy8gaGFuZGxpbmcgaXRlbXNwZXJyb3cgY29udGFpbmluZyBzdHJpbmcgb2YgY2xhc3Nlc1xuICAgICAgICBmb3JFYWNoKHNwbGl0KGNhcHRpb25XaWR0aCwgJyAnKSwgZnVuY3Rpb24gKGNscykge1xuICAgICAgICAgICAgY29uc3Qga2V5cyA9IHNwbGl0KGNscywgJy0nKSxcbiAgICAgICAgICAgICAgICB0aWVyID0ga2V5c1swXTtcbiAgICAgICAgICAgIGxldCBfY2FwdGlvbldpZHRoLFxuICAgICAgICAgICAgICAgIHdpZGdldFdpZHRoO1xuICAgICAgICAgICAgX2NhcHRpb25XaWR0aCA9IHBhcnNlSW50KGtleXNbMV0sIDEwKTtcbiAgICAgICAgICAgIHdpZGdldFdpZHRoICA9IDEyIC0gX2NhcHRpb25XaWR0aDtcbiAgICAgICAgICAgIHdpZGdldFdpZHRoICA9IHdpZGdldFdpZHRoIDw9IDAgPyAxMiA6IHdpZGdldFdpZHRoO1xuICAgICAgICAgICAgY2FwdGlvbkNscyArPSAnICcgKyAnY29sLScgKyB0aWVyICsgJy0nICsgX2NhcHRpb25XaWR0aDtcbiAgICAgICAgICAgIHdpZGdldENscyAgKz0gJyAnICsgJ2NvbC0nICsgdGllciArICctJyArIHdpZGdldFdpZHRoO1xuICAgIC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VSIHx8IHdpZGdldCA9PT0gRm9ybVdpZGdldFR5cGUuQ1VSUkVOQ1kpIHtcbiAgICAgICAgICAgIHJldHVybiBpc05hTihOdW1iZXIodmFsdWUpKSA/IG51bGwgOiBOdW1iZXIodmFsdWUpO1xuICAgICAgICB9XG4gICAgICAgIGlmICh3aWRnZXQgPT09IEZvcm1XaWRnZXRUeXBlLkNIRUNLQk9YIHx8IHdpZGdldCA9PT0gRm9ybVdpZGdldFR5cGUuVE9HR0xFKSB7XG4gICAgICAgICAgICByZXR1cm4gcGFyc2VCb29sZWFuVmFsdWUodmFsdWUpO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiB2YWx1ZTtcbiAgICB9XG4gICAgaWYgKGlzTnVtYmVyVHlwZSh0eXBlKSkge1xuICAgICAgICByZXR1cm4gaXNOYU4oTnVtYmVyKHZhbHVlKSkgPyBudWxsIDogTnVtYmVyKHZhbHVlKTtcbiAgICB9XG4gICAgaWYgKHR5cGUgPT09IERhdGFUeXBlLkJPT0xFQU4pIHtcbiAgICAgICAgcmV0dXJuIHBhcnNlQm9vbGVhblZhbHVlKHZhbHVlKTtcbiAgICB9XG4gICAgcmV0dXJuIHZhbHVlO1xufTtcbiJdfQ==
|
@@ -4252,7 +4252,13 @@ const setHeaderConfig = (headerConfig, config, field, index) => {
|
|
4252
4252
|
forEach(headerConfig, cols => {
|
4253
4253
|
if (get(cols, 'isGroup')) {
|
4254
4254
|
if (cols.field === field) {
|
4255
|
-
cols.columns
|
4255
|
+
const id = cols.columns?.findIndex((col) => col?.field === config.field);
|
4256
|
+
if (id == -1) {
|
4257
|
+
cols.columns[index] = config;
|
4258
|
+
}
|
4259
|
+
else {
|
4260
|
+
cols.columns[id] = config;
|
4261
|
+
}
|
4256
4262
|
}
|
4257
4263
|
else {
|
4258
4264
|
setHeaderConfig(cols.columns, config, field, index);
|