@sankhyalabs/ezui 7.1.0-dev.1 → 7.1.0-dev.10
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/ez-combo-box-list_4.cjs.entry.js +1 -1
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-form.cjs.entry.js +110 -38
- package/dist/cjs/ez-grid.cjs.entry.js +3 -3
- package/dist/cjs/ez-modal-container.cjs.entry.js +2 -11
- package/dist/cjs/ez-popup.cjs.entry.js +9 -6
- package/dist/cjs/ez-tree.cjs.entry.js +154 -7
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{purify-47a2f27b.js → purify-453a8028.js} +35 -12
- package/dist/cjs/{search-column-9aa090ec.js → search-column-8bfee733.js} +1 -1
- package/dist/collection/components/ez-dialog/ez-dialog.css +6 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +1 -1
- package/dist/collection/components/ez-modal-container/ez-modal-container.css +3 -9
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +1 -10
- package/dist/collection/components/ez-popup/ez-popup.css +3 -2
- package/dist/collection/components/ez-popup/ez-popup.js +9 -6
- package/dist/collection/components/ez-tree/ez-tree.css +4 -0
- package/dist/collection/components/ez-tree/ez-tree.js +185 -6
- package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +4 -1
- package/dist/collection/components/ez-tree/types/Node.js +7 -0
- package/dist/collection/components/ez-tree/types/Tree.js +19 -0
- package/dist/collection/components/ez-tree/types/UpdateItemConfig.js +1 -0
- package/dist/collection/utils/form/DataBinder.js +1 -1
- package/dist/collection/utils/form/FormMetadata.js +109 -37
- package/dist/custom-elements/index.js +313 -77
- package/dist/esm/ez-combo-box-list_4.entry.js +1 -1
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-form.entry.js +110 -38
- package/dist/esm/ez-grid.entry.js +3 -3
- package/dist/esm/ez-modal-container.entry.js +2 -11
- package/dist/esm/ez-popup.entry.js +9 -6
- package/dist/esm/ez-tree.entry.js +154 -7
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{purify-dc6814bf.js → purify-003c47e2.js} +35 -12
- package/dist/esm/{search-column-83562552.js → search-column-c00119ae.js} +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-294f54fe.entry.js +1 -0
- package/dist/ezui/p-4f0632b4.js +1 -0
- package/dist/ezui/{p-d66bf34e.entry.js → p-8c57ffa4.entry.js} +2 -2
- package/dist/ezui/p-ae5f64cd.entry.js +1 -0
- package/dist/ezui/p-bb409cba.js +3 -0
- package/dist/ezui/p-c82acfc6.entry.js +1 -0
- package/dist/ezui/{p-c943f7c4.entry.js → p-e03b2f19.entry.js} +1 -1
- package/dist/ezui/p-e77610ef.entry.js +1 -0
- package/dist/ezui/p-ff4bde07.entry.js +1 -0
- package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +0 -2
- package/dist/types/components/ez-popup/ez-popup.d.ts +1 -0
- package/dist/types/components/ez-tree/ez-tree.d.ts +20 -1
- package/dist/types/components/ez-tree/types/Node.d.ts +1 -0
- package/dist/types/components/ez-tree/types/Tree.d.ts +1 -0
- package/dist/types/components/ez-tree/types/UpdateItemConfig.d.ts +4 -0
- package/dist/types/components.d.ts +18 -1
- package/dist/types/utils/form/FormMetadata.d.ts +2 -1
- package/dist/types/utils/form/interfaces/IFormSheetMetadata.d.ts +3 -0
- package/dist/types/utils/form/interfaces/ITabConfig.d.ts +3 -0
- package/package.json +1 -1
- package/dist/ezui/p-02f6e3b0.entry.js +0 -1
- package/dist/ezui/p-191cfbc8.entry.js +0 -1
- package/dist/ezui/p-228a4d2f.js +0 -3
- package/dist/ezui/p-2df50161.entry.js +0 -1
- package/dist/ezui/p-4c4f0850.entry.js +0 -1
- package/dist/ezui/p-623161e2.js +0 -1
- package/dist/ezui/p-bd6146c5.entry.js +0 -1
|
@@ -4149,28 +4149,59 @@ const buildFormConfigFromDataUnit = (dataUnit) => {
|
|
|
4149
4149
|
.filter(descriptor => descriptor.visible !== false)
|
|
4150
4150
|
.map(descriptor => { return { name: descriptor.name, defaultValue: descriptor.defaultValue }; });
|
|
4151
4151
|
}
|
|
4152
|
-
|
|
4153
|
-
return config;
|
|
4152
|
+
return { emptyConfig: false, fields };
|
|
4154
4153
|
};
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
if (
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4154
|
+
function handleDetailTabs(dataUnit, config, sheets) {
|
|
4155
|
+
const unitMD = dataUnit.metadata;
|
|
4156
|
+
if (unitMD === undefined || unitMD.children === undefined)
|
|
4157
|
+
return;
|
|
4158
|
+
unitMD.children.forEach((child) => {
|
|
4159
|
+
const tabConfig = getTabFromConfig(child.label, config);
|
|
4160
|
+
if (tabConfig) {
|
|
4161
|
+
sheets.set(Object.assign(tabConfig, { name: buildChildName(child), isDetail: true }), []);
|
|
4162
|
+
return;
|
|
4163
|
+
}
|
|
4164
|
+
const { label, name, fields } = buildDetailSheet(child);
|
|
4165
|
+
sheets.set({ name, label, isDetail: true }, fields);
|
|
4166
|
+
});
|
|
4167
|
+
}
|
|
4168
|
+
function handleCustomTabs(customGuides, config, sheets) {
|
|
4169
|
+
customGuides.forEach((guide) => {
|
|
4170
|
+
const tabConfig = getTabFromConfig(guide.label, config);
|
|
4171
|
+
const ctxProps = {};
|
|
4172
|
+
Object.entries(guide).forEach(([key, value]) => {
|
|
4173
|
+
if (!isReservedKey(key)) {
|
|
4174
|
+
ctxProps[key] = value;
|
|
4175
|
+
}
|
|
4176
|
+
});
|
|
4177
|
+
if (tabConfig) {
|
|
4178
|
+
sheets.set(Object.assign(tabConfig, { name: guide.id, isCustom: true, ctxProps }), []);
|
|
4179
|
+
return;
|
|
4168
4180
|
}
|
|
4181
|
+
const sheet = { label: guide.label, name: guide.id, isCustom: true, visible: true, ctxProps };
|
|
4182
|
+
sheets.set(sheet, []);
|
|
4169
4183
|
});
|
|
4170
|
-
|
|
4184
|
+
}
|
|
4185
|
+
function isReservedKey(key) {
|
|
4186
|
+
return ['id', 'label'].includes(key);
|
|
4187
|
+
}
|
|
4188
|
+
function parseTabToFormSheet(key, fields) {
|
|
4189
|
+
const i18n = getI18n();
|
|
4190
|
+
return {
|
|
4191
|
+
label: (key.label === "__main") ? i18n("ez-form.mainTab") : key.label,
|
|
4192
|
+
name: key.name || key.label,
|
|
4193
|
+
isCustom: key.isCustom,
|
|
4194
|
+
isDetail: key.isDetail,
|
|
4195
|
+
ctxProps: key.ctxProps,
|
|
4196
|
+
fields
|
|
4197
|
+
};
|
|
4198
|
+
}
|
|
4199
|
+
function handleFields(config, sheets, hiddenTabs, dataUnit, requiredFields, cleanOnCopyFields, defaultValues) {
|
|
4200
|
+
var _a;
|
|
4201
|
+
(_a = config === null || config === void 0 ? void 0 : config.fields) === null || _a === void 0 ? void 0 : _a.forEach((field) => {
|
|
4171
4202
|
var _a, _b, _c;
|
|
4172
4203
|
if (field.visible !== false) {
|
|
4173
|
-
const tabConfig = getTabConfig(field.tab || "__main", sheets);
|
|
4204
|
+
const tabConfig = getTabConfig(field.tab || "__main", sheets, config);
|
|
4174
4205
|
if (hiddenTabs.has(tabConfig.label)) {
|
|
4175
4206
|
return;
|
|
4176
4207
|
}
|
|
@@ -4206,7 +4237,8 @@ const buildFormMetadata = (config, dataUnit, includeDetails = false) => {
|
|
|
4206
4237
|
defaultValue = value;
|
|
4207
4238
|
}
|
|
4208
4239
|
}
|
|
4209
|
-
catch (_d) {
|
|
4240
|
+
catch (_d) {
|
|
4241
|
+
}
|
|
4210
4242
|
}
|
|
4211
4243
|
}
|
|
4212
4244
|
defaultValues[field.name] = defaultValue;
|
|
@@ -4214,42 +4246,82 @@ const buildFormMetadata = (config, dataUnit, includeDetails = false) => {
|
|
|
4214
4246
|
}
|
|
4215
4247
|
}
|
|
4216
4248
|
});
|
|
4249
|
+
}
|
|
4250
|
+
const buildFormMetadata = (config, dataUnit, includeDetails = false, customGuides) => {
|
|
4251
|
+
var _a;
|
|
4252
|
+
if (config == undefined || (config === null || config === void 0 ? void 0 : config.emptyConfig) === true) {
|
|
4253
|
+
config = buildFormConfigFromDataUnit(dataUnit);
|
|
4254
|
+
}
|
|
4255
|
+
const sheets = new Map();
|
|
4256
|
+
const hiddenTabs = new Map();
|
|
4257
|
+
const requiredFields = [];
|
|
4258
|
+
const cleanOnCopyFields = [];
|
|
4259
|
+
const defaultValues = {};
|
|
4260
|
+
const tabs = (_a = config === null || config === void 0 ? void 0 : config.tabs) !== null && _a !== void 0 ? _a : [];
|
|
4261
|
+
tabs.forEach((tab) => {
|
|
4262
|
+
if (!hiddenTabs.has(tab.label) && tab.visible === false) {
|
|
4263
|
+
hiddenTabs.set(tab.label, tab);
|
|
4264
|
+
}
|
|
4265
|
+
});
|
|
4266
|
+
handleFields(config, sheets, hiddenTabs, dataUnit, requiredFields, cleanOnCopyFields, defaultValues);
|
|
4217
4267
|
const metadata = new FormMetadata();
|
|
4218
4268
|
metadata.setDefaultVars(config.defaultVars);
|
|
4219
4269
|
if (includeDetails) {
|
|
4220
|
-
|
|
4221
|
-
|
|
4222
|
-
|
|
4223
|
-
|
|
4224
|
-
sheets.set({ name, label }, fields);
|
|
4225
|
-
});
|
|
4226
|
-
}
|
|
4270
|
+
handleDetailTabs(dataUnit, config, sheets);
|
|
4271
|
+
}
|
|
4272
|
+
if (customGuides) {
|
|
4273
|
+
handleCustomTabs(customGuides, config, sheets);
|
|
4227
4274
|
}
|
|
4228
|
-
const i18n = getI18n();
|
|
4229
4275
|
Array.from(sheets.entries())
|
|
4230
4276
|
.sort(sortTabs)
|
|
4231
|
-
.forEach(([
|
|
4232
|
-
|
|
4233
|
-
|
|
4234
|
-
|
|
4235
|
-
fields
|
|
4236
|
-
});
|
|
4277
|
+
.forEach(([tab, fields]) => {
|
|
4278
|
+
if (!hiddenTabs.has(tab.label)) {
|
|
4279
|
+
metadata.addSheet(parseTabToFormSheet(tab, fields));
|
|
4280
|
+
}
|
|
4237
4281
|
});
|
|
4238
4282
|
metadata.addRequiredFields(requiredFields);
|
|
4239
4283
|
metadata.addCleanOnCopyFields(cleanOnCopyFields);
|
|
4240
4284
|
metadata.addDefaultValues(defaultValues);
|
|
4241
4285
|
return metadata;
|
|
4242
4286
|
};
|
|
4243
|
-
const
|
|
4244
|
-
|
|
4287
|
+
const getTabFromConfig = (tab, config) => {
|
|
4288
|
+
var _a;
|
|
4289
|
+
if (!config) {
|
|
4290
|
+
return;
|
|
4291
|
+
}
|
|
4292
|
+
return (_a = config.tabs) === null || _a === void 0 ? void 0 : _a.find(t => t.label === tab);
|
|
4293
|
+
};
|
|
4294
|
+
const getTabConfig = (tab, sheets, config) => {
|
|
4295
|
+
if (typeof tab !== "string") {
|
|
4296
|
+
return tab;
|
|
4297
|
+
}
|
|
4298
|
+
if (config) {
|
|
4299
|
+
const tabConfig = getTabFromConfig(tab, config);
|
|
4300
|
+
if (tabConfig) {
|
|
4301
|
+
return tabConfig;
|
|
4302
|
+
}
|
|
4303
|
+
}
|
|
4304
|
+
const tabConfig = Array.from(sheets.keys()).find(t => t.label === tab);
|
|
4245
4305
|
return tabConfig || { label: tab, visible: true };
|
|
4246
4306
|
};
|
|
4247
|
-
|
|
4248
|
-
|
|
4307
|
+
function sortTabs(a, b) {
|
|
4308
|
+
var _a, _b;
|
|
4309
|
+
if (a[0].label === '__main' && b[0].label !== '__main') {
|
|
4310
|
+
return -1;
|
|
4311
|
+
}
|
|
4312
|
+
if (a[0].label !== '__main' && b[0].label === '__main') {
|
|
4313
|
+
return 1;
|
|
4314
|
+
}
|
|
4315
|
+
const aOrder = (_a = a[0].order) !== null && _a !== void 0 ? _a : Number.MAX_VALUE;
|
|
4316
|
+
const bOrder = (_b = b[0].order) !== null && _b !== void 0 ? _b : Number.MAX_VALUE;
|
|
4317
|
+
return aOrder - bOrder;
|
|
4318
|
+
}
|
|
4319
|
+
const buildChildName = (child) => {
|
|
4320
|
+
return `child[${child.name}]`;
|
|
4249
4321
|
};
|
|
4250
4322
|
const buildDetailSheet = (child) => {
|
|
4251
4323
|
return {
|
|
4252
|
-
name:
|
|
4324
|
+
name: buildChildName(child),
|
|
4253
4325
|
label: child.label,
|
|
4254
4326
|
fields: []
|
|
4255
4327
|
};
|
|
@@ -4460,7 +4532,7 @@ class DataBinder {
|
|
|
4460
4532
|
clearFieldError(fieldName) {
|
|
4461
4533
|
var _a;
|
|
4462
4534
|
const field = (_a = this._fields.get(fieldName)) === null || _a === void 0 ? void 0 : _a.field;
|
|
4463
|
-
if (field["errorMessage"]) {
|
|
4535
|
+
if (field && field["errorMessage"]) {
|
|
4464
4536
|
field["errorMessage"] = "";
|
|
4465
4537
|
this._dataUnit.clearInvalid(this.getCurrentRecordId(), fieldName);
|
|
4466
4538
|
}
|
|
@@ -8817,7 +8889,7 @@ class FocusResolver {
|
|
|
8817
8889
|
}
|
|
8818
8890
|
}
|
|
8819
8891
|
|
|
8820
|
-
const ezDialogCss = ":host{--dialog__container-padding:var(--space--md, 20px);--dialog__btn__close--background-color:var(--title--primary, #2b3a54);--dialog__btn__no--padding-right:var(--space--large, 24px);--dialog__btn__close__image:url('data:image/svg+xml;utf8,<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg%22%3E<path d=\"M 7.0060773,5.995511 11.461972,1.5397722 c 0.132856,-0.1328413 0.207547,-0.3130253 0.207547,-0.5009046 0,-0.18786999 -0.07469,-0.3680541 -0.207547,-0.5009048 -0.132857,-0.13284126 -0.31302,-0.20748126 -0.500927,-0.20748126 -0.187812,0 -0.36807,0.07464 -0.500926,0.20748126 L 6.0042244,4.9937015 1.5482921,0.5379628 C 1.4154357,0.40512154 1.2352533,0.33048154 1.0473657,0.33048154 c -0.18787813,0 -0.36807,0.07464 -0.50092647,0.20748126 -0.13285646,0.1328507 -0.20749026,0.31303481 -0.20749026,0.5009048 0,0.1878793 0.0746338,0.3680633 0.20749026,0.5009046 L 5.0023715,5.995511 0.54643923,10.452213 c -0.0676086,0.06534 -0.12151598,0.14352 -0.15859681,0.229916 -0.0370714,0.08639 -0.0565645,0.1794 -0.0573369,0.27335 -7.724e-4,0.09404 0.0171873,0.187331 0.0528423,0.274293 0.0356455,0.08705 0.0882688,0.166087 0.15479148,0.23256 0.0665321,0.06648 0.14562277,0.11897 0.2326735,0.154567 0.0870507,0.0356 0.18031463,0.05344 0.2743433,0.05259 0.094029,-8.5e-4 0.1869528,-0.02049 0.2733331,-0.0576 0.08639,-0.0372 0.1645078,-0.09121 0.2298029,-0.158817 L 6.0042244,6.9973204 10.460119,11.453078 c 0.132856,0.132851 0.313114,0.207444 0.500926,0.207444 0.187907,0 0.36807,-0.07459 0.500927,-0.207444 0.132856,-0.13285 0.207547,-0.313006 0.207547,-0.500904 0,-0.187898 -0.07469,-0.368054 -0.207547,-0.500905 z\"/></svg>');--dialog__title--font-pattern:var(--font-pattern, \"Roboto\");--dialog__title--padding-left:var(--space--small, 6px);--dialog__title__container--padding-bottom:var(--space--medium, 12px);--dialog__title--weight--large:var(--text-weight--large, 600);--dialog__body--font-pattern:var(--font-pattern, \"Roboto\");--dialog__body--text-shadow:var(--text-shadow, \"0 0 0 #353535, 0 0 1px transparent\");--dialog__body--text-weight--medium:var(--text-weight--medium, 400);--dialog__body--padding-bottom:var(--space--medium, 12px);--dialog__body--font-size:var(--text--medium, 14px);--dialog__body--color:var(--text--primary, #626e82);--dialog__icon--color:var(--text--inverted, #fff);--dialog__critical--background-color:var(--color--alert-error-800, #BD0025);--dialog__warning--background-color:var(--color--alert-warning-500, #EFB103);--dialog__success--background-color:var(--color--alert-success-500, #00523c);--dialog-z-index:var(--elevation--100, 100);--dialog--warning__image:url('data: image/svg+xml;utf8,<svg width=\"15\" height=\"15\" viewBox=\"0 0 15 15\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 7.5,0 0,13 h 15 z m 0,2.73684 5.1341,8.89476 H 2.36591 Z M 6.81818,5.47368 V 8.21053 H 8.18182 V 5.47368 Z m 0,4.10527 V 10.9474 H 8.18182 V 9.57895\"/></svg>');--dialog--critical__image:url('data: image/svg+xml;utf8,<svg width=\"13\" height=\"13\" viewBox=\"0 0 13 13\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 7.6534493,6.4948538 12.762051,1.3864299 C 12.914368,1.2341297 13,1.027552 13,0.81215179 13,0.59676225 12.914369,0.39018443 12.762051,0.23787352 12.609733,0.08557341 12.40318,0 12.187747,0 11.972425,0 11.765762,0.08557341 11.613445,0.23787352 L 6.5048431,5.3462975 1.3961977,0.23787352 C 1.2438802,0.08557341 1.0373043,0 0.82189458,0 0.60649572,0 0.39990901,0.08557341 0.24759147,0.23787352 0.09527396,0.39018443 0.00970766,0.59676225 0.00970766,0.81215179 c 0,0.21540021 0.0855663,0.42197791 0.23788381,0.57427811 L 5.3562369,6.4948538 0.24759147,11.604381 c -0.0775121,0.07492 -0.13931586,0.164543 -0.18182835,0.263595 -0.04250169,0.09905 -0.064850182,0.205678 -0.0657357237,0.313391 -8.8554258e-4,0.107813 0.0197049337,0.214771 0.0605827337,0.314472 0.04086693,0.0998 0.10119858,0.190415 0.17746563,0.266625 0.0762779,0.07622 0.16695386,0.136398 0.26675594,0.177208 0.099802,0.04082 0.20672745,0.06127 0.31452961,0.06029 0.1078025,-9.53e-4 0.21433799,-0.0235 0.31337139,-0.06604 0.099045,-0.04265 0.1886052,-0.104571 0.263465,-0.182081 L 6.5048431,7.6434102 11.613445,12.751855 c 0.152317,0.152312 0.35898,0.237831 0.574302,0.237831 0.215433,0 0.421986,-0.08552 0.574304,-0.237831 C 12.914368,12.599545 13,12.393 13,12.177578 13,11.962157 12.91437,11.75561 12.762051,11.603299 Z\"/></svg>')}h2{margin-block-start:0;margin-block-end:0;margin-inline-start:0px;margin-inline-end:0px}.overlay{position:fixed;display:flex;top:0px;z-index:var(--dialog-z-index);left:0px;width:100%;box-sizing:border-box;height:100vh;background-color:rgba(var(--rgb-background--overlay), var(--opacity--soft));backdrop-filter:blur(var(--background-blur--medium))}.dialog{display:flex;width:80%;position:absolute;top:50%;left:50%;margin-right:-50%;box-sizing:border-box;transform:translate(-50%, -50%);box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122)}@media screen and (min-width: 768px){.dialog{width:50%}}@media screen and (min-width: 992px){.dialog{width:33.33333%}}.dialog__container{width:100%;background:#FFFF;border-radius:0px 6px 6px 0px;box-sizing:border-box;padding:var(--dialog__container-padding)}.dialog__container--default{border-radius:6px 6px 6px 6px}.dialog__critical--indicator{box-sizing:border-box;width:12px;border-radius:6px 0px 0px 6px;background-color:var(--dialog__critical--background-color)}.dialog__warning--indicator{width:12px;border-radius:6px 0px 0px 6px;box-sizing:border-box;background-color:var(--dialog__warning--background-color)}.dialog__success--indicator{width:12px;border-radius:6px 0px 0px 6px;box-sizing:border-box;background-color:var(--dialog__success--background-color)}.message{font-size:var(--dialog__body--font-size);font-weight:var(--dialog__body--text-weight--medium);font-family:var(--dialog__body--font-pattern);text-shadow:var(--dialog__body--text-shadow);padding-bottom:var(--dialog__body--padding-bottom);color:var(--dialog__body--color);max-height:30vh;content-visibility:auto;margin-bottom:var(--space--medium);overflow-y:auto}.changeable__icon__container{background:var(--dialog__warning--background-color);display:flex;justify-content:center;align-items:center;min-width:26px;min-height:26px;border-radius:50%}.changeable__icon{--ez-icon--color:var(--dialog__icon--color)}.changeable__icon__container.title-icon--critical{background-color:var(--dialog__critical--background-color)}.changeable__icon__container.title-icon--success{background-color:var(--dialog__success--background-color)}.changeable__icon__container.title-icon--warn{background-color:var(--dialog__warning--background-color)}.changeable__icon__container.title-icon--warn ez-icon{transform:translateY(-1px)}.title{display:flex;font-family:var(--dialog__title--font-pattern);margin:0;font-weight:var(--dialog__title--weight--large);color:var(--title--primary)}.title__container{display:flex;padding-bottom:var(--dialog__title__container--padding-bottom)}.title__box{display:flex;width:100%;align-items:center;align-self:center}.title__label{padding-left:var(--dialog__title--padding-left)}.title__label--no-icon{padding-left:0}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;width:10%;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:var(--dialog__btn__close--background-color);width:12px;height:12px;-webkit-mask-image:var(--dialog__btn__close__image);mask-image:var(--dialog__btn__close__image)}.title-icon::after{content:'';display:flex;background-color:#FFFF;width:15px;height:15px;-webkit-mask-image:var(--dialog--warning__image);mask-image:var(--dialog--warning__image)}.button-yes-no__container{display:flex;box-sizing:border-box;align-self:center;align-items:center;justify-content:flex-end}.button__cancel{padding-right:var(--dialog__btn__no--padding-right)}.button__confirm{--ez-button--background-color:var(--color--primary);--ez-button--color:var(--color--inverted);--ez-button--hover--background-color:var(--color--primary-600);--ez-button--hover-color:var(--color--inverted)}.button__confirm--danger{--ez-button--background-color:var(--color--alert-error-800, #BD0025);--ez-button--color:var(--color--inverted);--ez-button--hover--background-color:var(--color-alert--error-900, #a10020);--ez-button--hover-color:var(--color--inverted)}.button__confirm--container{display:flex;justify-content:flex-end}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}";
|
|
8892
|
+
const ezDialogCss = ":host{--dialog__container-padding:var(--space--md, 20px);--dialog__btn__close--background-color:var(--title--primary, #2b3a54);--dialog__btn__no--padding-right:var(--space--8, 8px);--dialog__btn__close__image:url('data:image/svg+xml;utf8,<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg%22%3E<path d=\"M 7.0060773,5.995511 11.461972,1.5397722 c 0.132856,-0.1328413 0.207547,-0.3130253 0.207547,-0.5009046 0,-0.18786999 -0.07469,-0.3680541 -0.207547,-0.5009048 -0.132857,-0.13284126 -0.31302,-0.20748126 -0.500927,-0.20748126 -0.187812,0 -0.36807,0.07464 -0.500926,0.20748126 L 6.0042244,4.9937015 1.5482921,0.5379628 C 1.4154357,0.40512154 1.2352533,0.33048154 1.0473657,0.33048154 c -0.18787813,0 -0.36807,0.07464 -0.50092647,0.20748126 -0.13285646,0.1328507 -0.20749026,0.31303481 -0.20749026,0.5009048 0,0.1878793 0.0746338,0.3680633 0.20749026,0.5009046 L 5.0023715,5.995511 0.54643923,10.452213 c -0.0676086,0.06534 -0.12151598,0.14352 -0.15859681,0.229916 -0.0370714,0.08639 -0.0565645,0.1794 -0.0573369,0.27335 -7.724e-4,0.09404 0.0171873,0.187331 0.0528423,0.274293 0.0356455,0.08705 0.0882688,0.166087 0.15479148,0.23256 0.0665321,0.06648 0.14562277,0.11897 0.2326735,0.154567 0.0870507,0.0356 0.18031463,0.05344 0.2743433,0.05259 0.094029,-8.5e-4 0.1869528,-0.02049 0.2733331,-0.0576 0.08639,-0.0372 0.1645078,-0.09121 0.2298029,-0.158817 L 6.0042244,6.9973204 10.460119,11.453078 c 0.132856,0.132851 0.313114,0.207444 0.500926,0.207444 0.187907,0 0.36807,-0.07459 0.500927,-0.207444 0.132856,-0.13285 0.207547,-0.313006 0.207547,-0.500904 0,-0.187898 -0.07469,-0.368054 -0.207547,-0.500905 z\"/></svg>');--dialog__btn__min-width:80px;--dialog__title--font-pattern:var(--font-pattern, \"Roboto\");--dialog__title--padding-left:var(--space--small, 6px);--dialog__title__container--padding-bottom:var(--space--medium, 12px);--dialog__title--weight--large:var(--text-weight--large, 600);--dialog__body--font-pattern:var(--font-pattern, \"Roboto\");--dialog__body--text-shadow:var(--text-shadow, \"0 0 0 #353535, 0 0 1px transparent\");--dialog__body--text-weight--medium:var(--text-weight--medium, 400);--dialog__body--padding-bottom:var(--space--medium, 12px);--dialog__body--font-size:var(--text--medium, 14px);--dialog__body--color:var(--text--primary, #626e82);--dialog__icon--color:var(--text--inverted, #fff);--dialog__critical--background-color:var(--color--alert-error-800, #BD0025);--dialog__warning--background-color:var(--color--alert-warning-500, #EFB103);--dialog__success--background-color:var(--color--alert-success-500, #00523c);--dialog-z-index:var(--elevation--100, 100);--dialog--warning__image:url('data: image/svg+xml;utf8,<svg width=\"15\" height=\"15\" viewBox=\"0 0 15 15\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 7.5,0 0,13 h 15 z m 0,2.73684 5.1341,8.89476 H 2.36591 Z M 6.81818,5.47368 V 8.21053 H 8.18182 V 5.47368 Z m 0,4.10527 V 10.9474 H 8.18182 V 9.57895\"/></svg>');--dialog--critical__image:url('data: image/svg+xml;utf8,<svg width=\"13\" height=\"13\" viewBox=\"0 0 13 13\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 7.6534493,6.4948538 12.762051,1.3864299 C 12.914368,1.2341297 13,1.027552 13,0.81215179 13,0.59676225 12.914369,0.39018443 12.762051,0.23787352 12.609733,0.08557341 12.40318,0 12.187747,0 11.972425,0 11.765762,0.08557341 11.613445,0.23787352 L 6.5048431,5.3462975 1.3961977,0.23787352 C 1.2438802,0.08557341 1.0373043,0 0.82189458,0 0.60649572,0 0.39990901,0.08557341 0.24759147,0.23787352 0.09527396,0.39018443 0.00970766,0.59676225 0.00970766,0.81215179 c 0,0.21540021 0.0855663,0.42197791 0.23788381,0.57427811 L 5.3562369,6.4948538 0.24759147,11.604381 c -0.0775121,0.07492 -0.13931586,0.164543 -0.18182835,0.263595 -0.04250169,0.09905 -0.064850182,0.205678 -0.0657357237,0.313391 -8.8554258e-4,0.107813 0.0197049337,0.214771 0.0605827337,0.314472 0.04086693,0.0998 0.10119858,0.190415 0.17746563,0.266625 0.0762779,0.07622 0.16695386,0.136398 0.26675594,0.177208 0.099802,0.04082 0.20672745,0.06127 0.31452961,0.06029 0.1078025,-9.53e-4 0.21433799,-0.0235 0.31337139,-0.06604 0.099045,-0.04265 0.1886052,-0.104571 0.263465,-0.182081 L 6.5048431,7.6434102 11.613445,12.751855 c 0.152317,0.152312 0.35898,0.237831 0.574302,0.237831 0.215433,0 0.421986,-0.08552 0.574304,-0.237831 C 12.914368,12.599545 13,12.393 13,12.177578 13,11.962157 12.91437,11.75561 12.762051,11.603299 Z\"/></svg>')}h2{margin-block-start:0;margin-block-end:0;margin-inline-start:0px;margin-inline-end:0px}.overlay{position:fixed;display:flex;top:0px;z-index:var(--dialog-z-index);left:0px;width:100%;box-sizing:border-box;height:100vh;background-color:rgba(var(--rgb-background--overlay), var(--opacity--soft));backdrop-filter:blur(var(--background-blur--medium))}.dialog{display:flex;width:80%;position:absolute;top:50%;left:50%;margin-right:-50%;box-sizing:border-box;transform:translate(-50%, -50%);box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122)}@media screen and (min-width: 768px){.dialog{width:50%}}@media screen and (min-width: 992px){.dialog{width:33.33333%}}.dialog__container{width:100%;background:#FFFF;border-radius:0px 6px 6px 0px;box-sizing:border-box;padding:var(--dialog__container-padding)}.dialog__container--default{border-radius:6px 6px 6px 6px}.dialog__critical--indicator{box-sizing:border-box;width:12px;border-radius:6px 0px 0px 6px;background-color:var(--dialog__critical--background-color)}.dialog__warning--indicator{width:12px;border-radius:6px 0px 0px 6px;box-sizing:border-box;background-color:var(--dialog__warning--background-color)}.dialog__success--indicator{width:12px;border-radius:6px 0px 0px 6px;box-sizing:border-box;background-color:var(--dialog__success--background-color)}.message{font-size:var(--dialog__body--font-size);font-weight:var(--dialog__body--text-weight--medium);font-family:var(--dialog__body--font-pattern);text-shadow:var(--dialog__body--text-shadow);padding-bottom:var(--dialog__body--padding-bottom);color:var(--dialog__body--color);max-height:30vh;content-visibility:auto;margin-bottom:var(--space--medium);overflow-y:auto}.changeable__icon__container{background:var(--dialog__warning--background-color);display:flex;justify-content:center;align-items:center;min-width:26px;min-height:26px;border-radius:50%}.changeable__icon{--ez-icon--color:var(--dialog__icon--color)}.changeable__icon__container.title-icon--critical{background-color:var(--dialog__critical--background-color)}.changeable__icon__container.title-icon--success{background-color:var(--dialog__success--background-color)}.changeable__icon__container.title-icon--warn{background-color:var(--dialog__warning--background-color)}.changeable__icon__container.title-icon--warn ez-icon{transform:translateY(-1px)}.title{display:flex;font-family:var(--dialog__title--font-pattern);margin:0;font-weight:var(--dialog__title--weight--large);color:var(--title--primary)}.title__container{display:flex;padding-bottom:var(--dialog__title__container--padding-bottom)}.title__box{display:flex;width:100%;align-items:center;align-self:center}.title__label{padding-left:var(--dialog__title--padding-left)}.title__label--no-icon{padding-left:0}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;width:10%;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:var(--dialog__btn__close--background-color);width:12px;height:12px;-webkit-mask-image:var(--dialog__btn__close__image);mask-image:var(--dialog__btn__close__image)}.title-icon::after{content:'';display:flex;background-color:#FFFF;width:15px;height:15px;-webkit-mask-image:var(--dialog--warning__image);mask-image:var(--dialog--warning__image)}.button-yes-no__container{display:flex;box-sizing:border-box;align-self:center;align-items:center;justify-content:flex-end}.button__cancel{padding-right:var(--dialog__btn__no--padding-right);--ez-button--min-width:var(--dialog__btn__min-width)}.button__confirm{--ez-button--background-color:var(--color--primary);--ez-button--color:var(--color--inverted);--ez-button--hover--background-color:var(--color--primary-600);--ez-button--hover-color:var(--color--inverted);--ez-button--min-width:var(--dialog__btn__min-width)}.button__confirm--danger{--ez-button--background-color:var(--color--alert-error-800, #BD0025);--ez-button--color:var(--color--inverted);--ez-button--hover--background-color:var(--color-alert--error-900, #a10020);--ez-button--hover-color:var(--color--inverted);--ez-button--min-width:var(--dialog__btn__min-width)}.button__confirm--container{display:flex;justify-content:flex-end}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}";
|
|
8821
8893
|
|
|
8822
8894
|
class Message {
|
|
8823
8895
|
constructor(title, message, dialogType, confirm, icon, labelCancel, labelConfirm, btnConfirmDanger, callBack, beforeClose) {
|
|
@@ -75810,7 +75882,7 @@ var MenuModule = {
|
|
|
75810
75882
|
};
|
|
75811
75883
|
|
|
75812
75884
|
var purify = createCommonjsModule(function (module, exports) {
|
|
75813
|
-
/*! @license DOMPurify 3.
|
|
75885
|
+
/*! @license DOMPurify 3.3.0 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.3.0/LICENSE */
|
|
75814
75886
|
|
|
75815
75887
|
(function (global, factory) {
|
|
75816
75888
|
module.exports = factory() ;
|
|
@@ -75999,7 +76071,7 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
75999
76071
|
}
|
|
76000
76072
|
|
|
76001
76073
|
const html$1 = freeze(['a', 'abbr', 'acronym', 'address', 'area', 'article', 'aside', 'audio', 'b', 'bdi', 'bdo', 'big', 'blink', 'blockquote', 'body', 'br', 'button', 'canvas', 'caption', 'center', 'cite', 'code', 'col', 'colgroup', 'content', 'data', 'datalist', 'dd', 'decorator', 'del', 'details', 'dfn', 'dialog', 'dir', 'div', 'dl', 'dt', 'element', 'em', 'fieldset', 'figcaption', 'figure', 'font', 'footer', 'form', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'head', 'header', 'hgroup', 'hr', 'html', 'i', 'img', 'input', 'ins', 'kbd', 'label', 'legend', 'li', 'main', 'map', 'mark', 'marquee', 'menu', 'menuitem', 'meter', 'nav', 'nobr', 'ol', 'optgroup', 'option', 'output', 'p', 'picture', 'pre', 'progress', 'q', 'rp', 'rt', 'ruby', 's', 'samp', 'search', 'section', 'select', 'shadow', 'slot', 'small', 'source', 'spacer', 'span', 'strike', 'strong', 'style', 'sub', 'summary', 'sup', 'table', 'tbody', 'td', 'template', 'textarea', 'tfoot', 'th', 'thead', 'time', 'tr', 'track', 'tt', 'u', 'ul', 'var', 'video', 'wbr']);
|
|
76002
|
-
const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'enterkeyhint', 'exportparts', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'inputmode', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'part', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', '
|
|
76074
|
+
const svg$1 = freeze(['svg', 'a', 'altglyph', 'altglyphdef', 'altglyphitem', 'animatecolor', 'animatemotion', 'animatetransform', 'circle', 'clippath', 'defs', 'desc', 'ellipse', 'enterkeyhint', 'exportparts', 'filter', 'font', 'g', 'glyph', 'glyphref', 'hkern', 'image', 'inputmode', 'line', 'lineargradient', 'marker', 'mask', 'metadata', 'mpath', 'part', 'path', 'pattern', 'polygon', 'polyline', 'radialgradient', 'rect', 'stop', 'style', 'switch', 'symbol', 'text', 'textpath', 'title', 'tref', 'tspan', 'view', 'vkern']);
|
|
76003
76075
|
const svgFilters = freeze(['feBlend', 'feColorMatrix', 'feComponentTransfer', 'feComposite', 'feConvolveMatrix', 'feDiffuseLighting', 'feDisplacementMap', 'feDistantLight', 'feDropShadow', 'feFlood', 'feFuncA', 'feFuncB', 'feFuncG', 'feFuncR', 'feGaussianBlur', 'feImage', 'feMerge', 'feMergeNode', 'feMorphology', 'feOffset', 'fePointLight', 'feSpecularLighting', 'feSpotLight', 'feTile', 'feTurbulence']);
|
|
76004
76076
|
// List of SVG elements that are disallowed by default.
|
|
76005
76077
|
// We still need to know them so that we can do namespace
|
|
@@ -76013,7 +76085,7 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76013
76085
|
const text = freeze(['#text']);
|
|
76014
76086
|
|
|
76015
76087
|
const html = freeze(['accept', 'action', 'align', 'alt', 'autocapitalize', 'autocomplete', 'autopictureinpicture', 'autoplay', 'background', 'bgcolor', 'border', 'capture', 'cellpadding', 'cellspacing', 'checked', 'cite', 'class', 'clear', 'color', 'cols', 'colspan', 'controls', 'controlslist', 'coords', 'crossorigin', 'datetime', 'decoding', 'default', 'dir', 'disabled', 'disablepictureinpicture', 'disableremoteplayback', 'download', 'draggable', 'enctype', 'enterkeyhint', 'exportparts', 'face', 'for', 'headers', 'height', 'hidden', 'high', 'href', 'hreflang', 'id', 'inert', 'inputmode', 'integrity', 'ismap', 'kind', 'label', 'lang', 'list', 'loading', 'loop', 'low', 'max', 'maxlength', 'media', 'method', 'min', 'minlength', 'multiple', 'muted', 'name', 'nonce', 'noshade', 'novalidate', 'nowrap', 'open', 'optimum', 'part', 'pattern', 'placeholder', 'playsinline', 'popover', 'popovertarget', 'popovertargetaction', 'poster', 'preload', 'pubdate', 'radiogroup', 'readonly', 'rel', 'required', 'rev', 'reversed', 'role', 'rows', 'rowspan', 'spellcheck', 'scope', 'selected', 'shape', 'size', 'sizes', 'slot', 'span', 'srclang', 'start', 'src', 'srcset', 'step', 'style', 'summary', 'tabindex', 'title', 'translate', 'type', 'usemap', 'valign', 'value', 'width', 'wrap', 'xmlns', 'slot']);
|
|
76016
|
-
const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'amplitude', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'exponent', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'intercept', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'slope', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'tablevalues', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);
|
|
76088
|
+
const svg = freeze(['accent-height', 'accumulate', 'additive', 'alignment-baseline', 'amplitude', 'ascent', 'attributename', 'attributetype', 'azimuth', 'basefrequency', 'baseline-shift', 'begin', 'bias', 'by', 'class', 'clip', 'clippathunits', 'clip-path', 'clip-rule', 'color', 'color-interpolation', 'color-interpolation-filters', 'color-profile', 'color-rendering', 'cx', 'cy', 'd', 'dx', 'dy', 'diffuseconstant', 'direction', 'display', 'divisor', 'dur', 'edgemode', 'elevation', 'end', 'exponent', 'fill', 'fill-opacity', 'fill-rule', 'filter', 'filterunits', 'flood-color', 'flood-opacity', 'font-family', 'font-size', 'font-size-adjust', 'font-stretch', 'font-style', 'font-variant', 'font-weight', 'fx', 'fy', 'g1', 'g2', 'glyph-name', 'glyphref', 'gradientunits', 'gradienttransform', 'height', 'href', 'id', 'image-rendering', 'in', 'in2', 'intercept', 'k', 'k1', 'k2', 'k3', 'k4', 'kerning', 'keypoints', 'keysplines', 'keytimes', 'lang', 'lengthadjust', 'letter-spacing', 'kernelmatrix', 'kernelunitlength', 'lighting-color', 'local', 'marker-end', 'marker-mid', 'marker-start', 'markerheight', 'markerunits', 'markerwidth', 'maskcontentunits', 'maskunits', 'max', 'mask', 'mask-type', 'media', 'method', 'mode', 'min', 'name', 'numoctaves', 'offset', 'operator', 'opacity', 'order', 'orient', 'orientation', 'origin', 'overflow', 'paint-order', 'path', 'pathlength', 'patterncontentunits', 'patterntransform', 'patternunits', 'points', 'preservealpha', 'preserveaspectratio', 'primitiveunits', 'r', 'rx', 'ry', 'radius', 'refx', 'refy', 'repeatcount', 'repeatdur', 'restart', 'result', 'rotate', 'scale', 'seed', 'shape-rendering', 'slope', 'specularconstant', 'specularexponent', 'spreadmethod', 'startoffset', 'stddeviation', 'stitchtiles', 'stop-color', 'stop-opacity', 'stroke-dasharray', 'stroke-dashoffset', 'stroke-linecap', 'stroke-linejoin', 'stroke-miterlimit', 'stroke-opacity', 'stroke', 'stroke-width', 'style', 'surfacescale', 'systemlanguage', 'tabindex', 'tablevalues', 'targetx', 'targety', 'transform', 'transform-origin', 'text-anchor', 'text-decoration', 'text-rendering', 'textlength', 'type', 'u1', 'u2', 'unicode', 'values', 'viewbox', 'visibility', 'version', 'vert-adv-y', 'vert-origin-x', 'vert-origin-y', 'width', 'word-spacing', 'wrap', 'writing-mode', 'xchannelselector', 'ychannelselector', 'x', 'x1', 'x2', 'xmlns', 'y', 'y1', 'y2', 'z', 'zoomandpan']);
|
|
76017
76089
|
const mathMl = freeze(['accent', 'accentunder', 'align', 'bevelled', 'close', 'columnsalign', 'columnlines', 'columnspan', 'denomalign', 'depth', 'dir', 'display', 'displaystyle', 'encoding', 'fence', 'frame', 'height', 'href', 'id', 'largeop', 'length', 'linethickness', 'lspace', 'lquote', 'mathbackground', 'mathcolor', 'mathsize', 'mathvariant', 'maxsize', 'minsize', 'movablelimits', 'notation', 'numalign', 'open', 'rowalign', 'rowlines', 'rowspacing', 'rowspan', 'rspace', 'rquote', 'scriptlevel', 'scriptminsize', 'scriptsizemultiplier', 'selection', 'separator', 'separators', 'stretchy', 'subscriptshift', 'supscriptshift', 'symmetric', 'voffset', 'width', 'xmlns']);
|
|
76018
76090
|
const xml = freeze(['xlink:href', 'xml:id', 'xlink:title', 'xml:space', 'xmlns:xlink']);
|
|
76019
76091
|
|
|
@@ -76120,7 +76192,7 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76120
76192
|
function createDOMPurify() {
|
|
76121
76193
|
let window = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : getGlobal();
|
|
76122
76194
|
const DOMPurify = root => createDOMPurify(root);
|
|
76123
|
-
DOMPurify.version = '3.
|
|
76195
|
+
DOMPurify.version = '3.3.0';
|
|
76124
76196
|
DOMPurify.removed = [];
|
|
76125
76197
|
if (!window || !window.document || window.document.nodeType !== NODE_TYPE.document || !window.Element) {
|
|
76126
76198
|
// Not running in a browser, provide a factory function
|
|
@@ -76231,6 +76303,21 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76231
76303
|
let FORBID_TAGS = null;
|
|
76232
76304
|
/* Explicitly forbidden attributes (overrides ALLOWED_ATTR/ADD_ATTR) */
|
|
76233
76305
|
let FORBID_ATTR = null;
|
|
76306
|
+
/* Config object to store ADD_TAGS/ADD_ATTR functions (when used as functions) */
|
|
76307
|
+
const EXTRA_ELEMENT_HANDLING = Object.seal(create(null, {
|
|
76308
|
+
tagCheck: {
|
|
76309
|
+
writable: true,
|
|
76310
|
+
configurable: false,
|
|
76311
|
+
enumerable: true,
|
|
76312
|
+
value: null
|
|
76313
|
+
},
|
|
76314
|
+
attributeCheck: {
|
|
76315
|
+
writable: true,
|
|
76316
|
+
configurable: false,
|
|
76317
|
+
enumerable: true,
|
|
76318
|
+
value: null
|
|
76319
|
+
}
|
|
76320
|
+
}));
|
|
76234
76321
|
/* Decide if ARIA attributes are okay */
|
|
76235
76322
|
let ALLOW_ARIA_ATTR = true;
|
|
76236
76323
|
/* Decide if custom data attributes are okay */
|
|
@@ -76423,16 +76510,24 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76423
76510
|
}
|
|
76424
76511
|
/* Merge configuration parameters */
|
|
76425
76512
|
if (cfg.ADD_TAGS) {
|
|
76426
|
-
if (
|
|
76427
|
-
|
|
76513
|
+
if (typeof cfg.ADD_TAGS === 'function') {
|
|
76514
|
+
EXTRA_ELEMENT_HANDLING.tagCheck = cfg.ADD_TAGS;
|
|
76515
|
+
} else {
|
|
76516
|
+
if (ALLOWED_TAGS === DEFAULT_ALLOWED_TAGS) {
|
|
76517
|
+
ALLOWED_TAGS = clone(ALLOWED_TAGS);
|
|
76518
|
+
}
|
|
76519
|
+
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
76428
76520
|
}
|
|
76429
|
-
addToSet(ALLOWED_TAGS, cfg.ADD_TAGS, transformCaseFunc);
|
|
76430
76521
|
}
|
|
76431
76522
|
if (cfg.ADD_ATTR) {
|
|
76432
|
-
if (
|
|
76433
|
-
|
|
76523
|
+
if (typeof cfg.ADD_ATTR === 'function') {
|
|
76524
|
+
EXTRA_ELEMENT_HANDLING.attributeCheck = cfg.ADD_ATTR;
|
|
76525
|
+
} else {
|
|
76526
|
+
if (ALLOWED_ATTR === DEFAULT_ALLOWED_ATTR) {
|
|
76527
|
+
ALLOWED_ATTR = clone(ALLOWED_ATTR);
|
|
76528
|
+
}
|
|
76529
|
+
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
76434
76530
|
}
|
|
76435
|
-
addToSet(ALLOWED_ATTR, cfg.ADD_ATTR, transformCaseFunc);
|
|
76436
76531
|
}
|
|
76437
76532
|
if (cfg.ADD_URI_SAFE_ATTR) {
|
|
76438
76533
|
addToSet(URI_SAFE_ATTRIBUTES, cfg.ADD_URI_SAFE_ATTR, transformCaseFunc);
|
|
@@ -76740,7 +76835,7 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76740
76835
|
return true;
|
|
76741
76836
|
}
|
|
76742
76837
|
/* Remove element if anything forbids its presence */
|
|
76743
|
-
if (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName]) {
|
|
76838
|
+
if (!(EXTRA_ELEMENT_HANDLING.tagCheck instanceof Function && EXTRA_ELEMENT_HANDLING.tagCheck(tagName)) && (!ALLOWED_TAGS[tagName] || FORBID_TAGS[tagName])) {
|
|
76744
76839
|
/* Check if we have a custom element to handle */
|
|
76745
76840
|
if (!FORBID_TAGS[tagName] && _isBasicCustomElement(tagName)) {
|
|
76746
76841
|
if (CUSTOM_ELEMENT_HANDLING.tagNameCheck instanceof RegExp && regExpTest(CUSTOM_ELEMENT_HANDLING.tagNameCheck, tagName)) {
|
|
@@ -76812,7 +76907,7 @@ var purify = createCommonjsModule(function (module, exports) {
|
|
|
76812
76907
|
(https://html.spec.whatwg.org/multipage/dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes)
|
|
76813
76908
|
XML-compatible (https://html.spec.whatwg.org/multipage/infrastructure.html#xml-compatible and http://www.w3.org/TR/xml/#d0e804)
|
|
76814
76909
|
We don't need to check the value; it's always URI safe. */
|
|
76815
|
-
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
|
|
76910
|
+
if (ALLOW_DATA_ATTR && !FORBID_ATTR[lcName] && regExpTest(DATA_ATTR, lcName)) ; else if (ALLOW_ARIA_ATTR && regExpTest(ARIA_ATTR, lcName)) ; else if (EXTRA_ELEMENT_HANDLING.attributeCheck instanceof Function && EXTRA_ELEMENT_HANDLING.attributeCheck(lcName, lcTag)) ; else if (!ALLOWED_ATTR[lcName] || FORBID_ATTR[lcName]) {
|
|
76816
76911
|
if (
|
|
76817
76912
|
// First condition does a very basic check if a) it's basically a valid custom element tagname AND
|
|
76818
76913
|
// b) if the tagName passes whatever the user has configured for CUSTOM_ELEMENT_HANDLING.tagNameCheck
|
|
@@ -78008,7 +78103,7 @@ class AgGridController {
|
|
|
78008
78103
|
const colDefsWithConfigs = this.getColsDefWithConfigApplied(colDefs, this._lastColsConfig);
|
|
78009
78104
|
this._gridOptions.api.setColumnDefs(colDefsWithConfigs);
|
|
78010
78105
|
}
|
|
78011
|
-
getColsDefWithConfigApplied(colDefs, colsConfig) {
|
|
78106
|
+
getColsDefWithConfigApplied(colDefs, colsConfig = []) {
|
|
78012
78107
|
//Cria map de colunas existentes na config e seu índice
|
|
78013
78108
|
const orderMap = colsConfig.reduce((map, col, index) => {
|
|
78014
78109
|
map[col.name] = index;
|
|
@@ -80611,7 +80706,7 @@ var ModalButtonStatus;
|
|
|
80611
80706
|
})(ModalButtonStatus || (ModalButtonStatus = {}));
|
|
80612
80707
|
const ModalButtonStatus$1 = ModalButtonStatus;
|
|
80613
80708
|
|
|
80614
|
-
const ezModalContainerCss = ".sc-ez-modal-container-h{--ez-modal-container-overflow-y:auto;--ez-modal-container-overflow-x:hidden;display:
|
|
80709
|
+
const ezModalContainerCss = ".sc-ez-modal-container-h{--ez-modal-container-overflow-y:auto;--ez-modal-container-overflow-x:hidden;display:flex;flex-direction:column;width:100%;height:100%}.ez-modal-container__header-container.sc-ez-modal-container{outline:none}.ez-modal-container__header.sc-ez-modal-container{display:flex;flex-wrap:nowrap;flex-direction:row;justify-content:space-between;align-items:start}.ez-modal-container__content.sc-ez-modal-container{overflow-y:var(--ez-modal-container-overflow-y);overflow-x:var(--ez-modal-container-overflow-x);outline:none}.ez-modal-container__content.sc-ez-modal-container::-webkit-scrollbar{width:var(--space--small);min-width:var(--space--small);max-width:var(--space--small)}.ez-modal-container__footer.sc-ez-modal-container{display:flex;flex-direction:row;justify-content:flex-end;gap:var(--space--8, 8px);width:100%;padding-top:var(--space--small, 6px)}.ez-modal-container__title.sc-ez-modal-container{display:grid}.ez-modal-container__close-button.sc-ez-modal-container{cursor:pointer;background-color:transparent;border:none;outline:none;padding:var(--space--6, 6px) 0px}.ez-modal-container__close-icon.sc-ez-modal-container{--icon--color:var(--title--primary, #2B3A54)}";
|
|
80615
80710
|
|
|
80616
80711
|
const EzModalContainer$1 = class extends HTMLElement$1 {
|
|
80617
80712
|
constructor() {
|
|
@@ -80659,17 +80754,8 @@ const EzModalContainer$1 = class extends HTMLElement$1 {
|
|
|
80659
80754
|
closeModal() {
|
|
80660
80755
|
this.ezModalAction.emit("CLOSE");
|
|
80661
80756
|
}
|
|
80662
|
-
focusLast() {
|
|
80663
|
-
if (this._okButton == undefined) {
|
|
80664
|
-
return;
|
|
80665
|
-
}
|
|
80666
|
-
this._okButton.setFocus();
|
|
80667
|
-
}
|
|
80668
|
-
focusFirst() {
|
|
80669
|
-
this._closeButton.focus();
|
|
80670
|
-
}
|
|
80671
80757
|
render() {
|
|
80672
|
-
return (h(Host, null, h("
|
|
80758
|
+
return (h(Host, null, h("header", { ref: ref => this._modalRef = ref, tabIndex: -1, class: "ez-modal-container__header-container" }, this.showTitleBar && (h("div", { class: "ez-modal-container__header ez-margin-bottom--medium" }, h("div", { class: "ez-col ez-align--middle ez-modal-container__title" }, h("h2", { class: "ez-text ez-title--large ez-title--primary ez-text--bold ez-margin-vertical--extra-small" }, this.modalTitle), this.modalSubTitle && (h("div", { class: "ez-text ez-text--medium ez-text--primary ez-margin-vertical--extra-small" }, this.modalSubTitle))), (this.showCloseButton && h("button", { ref: ref => this._closeButton = ref, class: "ez-modal-container__close-button", onClick: () => this.ezModalAction.emit(ModalAction$1.CLOSE), "aria-label": this.i18n("app.close") }, h("ez-icon", { class: "ez-modal-container__close-icon", size: "medium", iconName: "close" })))))), h("main", { tabIndex: -1, class: "ez-modal-container__content" }, h("slot", null)), h("footer", { tabIndex: -1, class: "ez-modal-container__footer" }, this.cancelIsVisible() && (h("ez-button", { label: this.cancelButtonLabel || this.i18n("app.cancel"), isDisabled: this.cancelButtonStatus === ModalButtonStatus$1.DISABLED, onClick: () => this.ezModalAction.emit(ModalAction$1.CANCEL) })), this.okIsVisible() && (h("ez-button", { ref: ref => this._okButton = ref, class: "ez-button--primary", label: this.okButtonLabel || this.i18n("app.ok"), isDisabled: this.okButtonStatus === ModalButtonStatus$1.DISABLED, onClick: () => this.ezModalAction.emit(ModalAction$1.OK) })))));
|
|
80673
80759
|
}
|
|
80674
80760
|
get _element() { return this; }
|
|
80675
80761
|
static get style() { return ezModalContainerCss; }
|
|
@@ -83214,7 +83300,7 @@ const EzPopoverPlus$1 = class extends HTMLElement$1 {
|
|
|
83214
83300
|
static get style() { return ezPopoverPlusCss; }
|
|
83215
83301
|
};
|
|
83216
83302
|
|
|
83217
|
-
const ezPopupCss = ":host{display:flex;width:auto;--ez-popup-z-index:var(--elevation--24, 24);--ez-popup__container--color:var(--title--primary, #2b3a54);--ez-popup__container--padding:var(--space--24, 24px);--ez-popup__title--font-family:var(--font--pattern, \"Roboto\");--ez-popup__title--font-size:var(--font-size--xxlarge, 22px);--ez-popup__title--color:var(--title--primary, #00281D);--ez-popup__title--font-weight:var(--font-weight--regular, 400)}.overlay{position:fixed;display:flex;top:0px;z-index:var(--ez-popup-z-index, 24);left:0px;width:100%;align-items:center;justify-content:center;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.popup__container{width:100%;max-height:90%;height:100%;display:flex;flex-direction:column;overflow:hidden;outline:none;background:#FFFF;color:var(--ez-popup__container--color);border-radius:12px;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);box-sizing:border-box;padding:var(--ez-popup__container--padding);margin:0;border:none;position:unset;gap:var(--space--16, 16px)}.popup__container--auto{height:auto}.popup__overflow-y--auto{overflow-y:auto}.popup__content{box-sizing:border-box;height:100%;width:100%}.popup__expandable-content{box-sizing:border-box;width:100%;
|
|
83303
|
+
const ezPopupCss = ":host{display:flex;width:auto;--ez-popup-z-index:var(--elevation--24, 24);--ez-popup__container--color:var(--title--primary, #2b3a54);--ez-popup__container--padding:var(--space--24, 24px);--ez-popup__title--font-family:var(--font--pattern, \"Roboto\");--ez-popup__title--font-size:var(--font-size--xxlarge, 22px);--ez-popup__title--color:var(--title--primary, #00281D);--ez-popup__title--font-weight:var(--font-weight--regular, 400)}.overlay{position:fixed;display:flex;top:0px;z-index:var(--ez-popup-z-index, 24);left:0px;width:100%;align-items:center;justify-content:center;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.popup__container{width:100%;max-height:90%;height:100%;display:flex;flex-direction:column;overflow:hidden;outline:none;background:#FFFF;color:var(--ez-popup__container--color);border-radius:12px;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);box-sizing:border-box;padding:var(--ez-popup__container--padding);margin:0;border:none;position:unset;gap:var(--space--16, 16px)}.popup__container--auto{height:auto}.popup__overflow-y--auto{overflow-y:auto}.popup__content{box-sizing:border-box;height:100%;width:100%}.popup__expandable-content{flex-grow:1;box-sizing:border-box;width:100%;font-family:var(--font--pattern, \"Roboto\");font-size:var(--font-size--default, 14px);color:var(--title--primary, #00281D);font-weight:var(--font-weight--regular, 400)}.popup__header{flex-shrink:0;width:100%;display:flex;align-items:center}.popup__title{display:flex;margin:0;width:100%;font-family:var(--ez-popup__title--font-family);font-size:var(--ez-popup__title--font-size);font-weight:var(--ez-popup__title--font-weight);color:var(--ez-popup__title--color);line-height:var(--line-height--32, 32px)}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;border:none;background-color:unset;cursor:pointer}.btn-close--solo{width:100%}.popup__footer{flex-shrink:0;display:flex;width:100%;flex-direction:row-reverse;gap:var(--space--8, 8px)}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}.ez-popup__size-limit--x-small{min-width:350px;max-width:560px}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}";
|
|
83218
83304
|
|
|
83219
83305
|
const EzPopup$1 = class extends HTMLElement$1 {
|
|
83220
83306
|
constructor() {
|
|
@@ -83228,7 +83314,7 @@ const EzPopup$1 = class extends HTMLElement$1 {
|
|
|
83228
83314
|
this.useHeader = true;
|
|
83229
83315
|
this.heightMode = "full";
|
|
83230
83316
|
this.ezTitle = undefined;
|
|
83231
|
-
this.enabledScroll =
|
|
83317
|
+
this.enabledScroll = true;
|
|
83232
83318
|
this.autoClose = true;
|
|
83233
83319
|
this.footerButtons = [];
|
|
83234
83320
|
}
|
|
@@ -83298,9 +83384,6 @@ const EzPopup$1 = class extends HTMLElement$1 {
|
|
|
83298
83384
|
if (this.heightMode === 'auto') {
|
|
83299
83385
|
className += ' popup__container--auto';
|
|
83300
83386
|
}
|
|
83301
|
-
if (this.enabledScroll) {
|
|
83302
|
-
className += ' popup__overflow-y--auto';
|
|
83303
|
-
}
|
|
83304
83387
|
className += ` ${this.getGridSize()}`;
|
|
83305
83388
|
return className;
|
|
83306
83389
|
}
|
|
@@ -83361,9 +83444,15 @@ const EzPopup$1 = class extends HTMLElement$1 {
|
|
|
83361
83444
|
};
|
|
83362
83445
|
}
|
|
83363
83446
|
}
|
|
83447
|
+
renderFooterButtons() {
|
|
83448
|
+
return this.footerButtons.slice(0, 3).map((buttonProps, index) => (h("ez-button", Object.assign({ key: index }, this.handleDefaultPropsButtonsByIndex(index), buttonProps))));
|
|
83449
|
+
}
|
|
83364
83450
|
render() {
|
|
83365
83451
|
return (h(Host, null, this.opened && (h("div", { class: "overlay", tabIndex: -1, onClick: this.handleAutoClose.bind(this) }, h("dialog", { ref: ref => this._popupRef = ref, class: this.getDialogClass() }, this.useHeader &&
|
|
83366
|
-
h("header", { class: "popup__header" }, !!this.ezTitle && h("h1", { class: "popup__title" }, this.ezTitle), h("ez-button", { class: this.ezTitle ? "btn-close" : "btn-close btn-close--solo", variant: "tertiary", mode: "icon", iconName: "close", size: "small", onClick: this.closePopup.bind(this) })), h("main", { class:
|
|
83452
|
+
h("header", { class: "popup__header" }, !!this.ezTitle && h("h1", { class: "popup__title" }, this.ezTitle), h("ez-button", { class: this.ezTitle ? "btn-close" : "btn-close btn-close--solo", variant: "tertiary", mode: "icon", iconName: "close", size: "small", onClick: this.closePopup.bind(this) })), h("main", { class: {
|
|
83453
|
+
"popup__expandable-content": true,
|
|
83454
|
+
"popup__overflow-y--auto": this.enabledScroll
|
|
83455
|
+
} }, h("slot", null)), h("footer", { class: "popup__footer" }, this.footerButtons.length > 0 && (this.renderFooterButtons()), h("slot", { name: 'footer' })))))));
|
|
83367
83456
|
}
|
|
83368
83457
|
get _element() { return this; }
|
|
83369
83458
|
static get watchers() { return {
|
|
@@ -92212,6 +92301,9 @@ const TreeItem = (props) => {
|
|
|
92212
92301
|
iconClick(treeItem);
|
|
92213
92302
|
}
|
|
92214
92303
|
}
|
|
92304
|
+
function handleIconDoubleClick(event) {
|
|
92305
|
+
event.stopPropagation();
|
|
92306
|
+
}
|
|
92215
92307
|
return (h("ul", { class: level === 1 ? "first-level" : undefined },
|
|
92216
92308
|
h("li", Object.assign({ title: tooltipResolver(treeItem, !disabled, level), class: `tree-item ${treeItem.id !== selectedId ? "tree-item-error" : ""}`, onClick: () => available && itemClick(treeItem), onDblClick: () => available && itemDoubleClick(treeItem) }, {
|
|
92217
92309
|
disabled,
|
|
@@ -92220,7 +92312,7 @@ const TreeItem = (props) => {
|
|
|
92220
92312
|
}),
|
|
92221
92313
|
h("div", { class: "item-label-container" },
|
|
92222
92314
|
h("div", { class: "item-icon-box" }, expandable &&
|
|
92223
|
-
h("ez-icon", { id: treeItem.id, class: "item-icon", size: "small", iconName: iconResolver(treeItem, expanded, level), onClick: (event) => handleIconClick(event) })),
|
|
92315
|
+
h("ez-icon", { id: treeItem.id, class: "item-icon", size: "small", iconName: iconResolver(treeItem, expanded, level), onClick: (event) => handleIconClick(event), onDblClick: (event) => handleIconDoubleClick(event) })),
|
|
92224
92316
|
h("label", { class: `item-label ${treeItem.bold ? "item-label--bold" : ""}` }, treeItem.label)),
|
|
92225
92317
|
getBadgeElement(treeItem.id, treeItem.badge, treeItem.id === selectedId)),
|
|
92226
92318
|
expanded
|
|
@@ -92312,6 +92404,13 @@ class Node$1 {
|
|
|
92312
92404
|
this.children.set(item.id, new Node$1(tree, item, this));
|
|
92313
92405
|
}
|
|
92314
92406
|
}
|
|
92407
|
+
removeChild(id) {
|
|
92408
|
+
if (this.children.has(id)) {
|
|
92409
|
+
this.children.delete(id);
|
|
92410
|
+
return true;
|
|
92411
|
+
}
|
|
92412
|
+
return false;
|
|
92413
|
+
}
|
|
92315
92414
|
addPlaceHolder() {
|
|
92316
92415
|
this.children.clear();
|
|
92317
92416
|
const id = this.item.id;
|
|
@@ -92361,6 +92460,8 @@ class Tree extends Node$1 {
|
|
|
92361
92460
|
async addChildAt(parentId, item) {
|
|
92362
92461
|
const parent = this.getNode(parentId);
|
|
92363
92462
|
if (parent == undefined) {
|
|
92463
|
+
this.addChild(this, item);
|
|
92464
|
+
this._changeCallback();
|
|
92364
92465
|
return;
|
|
92365
92466
|
}
|
|
92366
92467
|
parent.addChild(this, item);
|
|
@@ -92424,6 +92525,23 @@ class Tree extends Node$1 {
|
|
|
92424
92525
|
}
|
|
92425
92526
|
this._changeCallback();
|
|
92426
92527
|
}
|
|
92528
|
+
removeItem(id) {
|
|
92529
|
+
if (!id) {
|
|
92530
|
+
return;
|
|
92531
|
+
}
|
|
92532
|
+
const node = this.getNode(id);
|
|
92533
|
+
if (!node) {
|
|
92534
|
+
return;
|
|
92535
|
+
}
|
|
92536
|
+
if (node.parent) {
|
|
92537
|
+
node.parent.removeChild(id);
|
|
92538
|
+
}
|
|
92539
|
+
else {
|
|
92540
|
+
this.children.delete(id);
|
|
92541
|
+
}
|
|
92542
|
+
this._disabledValues.delete(id);
|
|
92543
|
+
this._changeCallback();
|
|
92544
|
+
}
|
|
92427
92545
|
async open(path) {
|
|
92428
92546
|
return new Promise(async (resolve) => {
|
|
92429
92547
|
await this.walkPath(this, path, node => node.item.expanded = true);
|
|
@@ -92547,7 +92665,7 @@ class Tree extends Node$1 {
|
|
|
92547
92665
|
}
|
|
92548
92666
|
}
|
|
92549
92667
|
|
|
92550
|
-
const ezTreeCss = ":host{--ez-tree--border-radius:var(--border--radius-small, 8px);--ez-tree--padding-inline-start:20px;--ez-tree--margin:var(--space--extra-small, 3px);--ez-tree--margin-right:0px;--ez-tree--font-family:var(--font-pattern, Arial);--ez-tree--font-size:var(--text--medium, 14px);--ez-tree--selected--font-weight:var(--text-weight--large, 600);--ez-tree--font-weight:var(--text-weight--small, 400);--ez-tree--color:var(--title--primary, #2B3A54);--ez-tree--selected--color:var(--color--primary, #008561);--ez-tree--disabled--color:var(--text--disable, #AFB6C0);--ez-tree--font-weight--bold:var(--text-weight--large, 600);--ez-tree__tree-item--height:var(--size-medium, 18px);--ez-tree__tree-item--padding:var(--space--small, 6px);--ez-tree__tree-item--background-color:var(--background--xlight, #FFFFFF);--ez-tree__tree-item--selected--background-color:var(--color--primary-300, #E2F4EF);--ez-tree__tree-item--hover--background-color:var(--background--medium, #F0F3F7);--ez-tree__tree-item--disabled--background-color:var(--ez-tree__tree-Item--background-color);--ez-tree__item-icon-box--height:var(--ez-tree__tree-item--height);--ez-tree__item-icon-box--width:var(--size-medium, 18px);--ez-tree__item-icon-box--padding:var(--ez-tree__tree-item--padding);--ez-tree__badge--icon-color--default:var(--title--primary, #2B3A54);--ez-tree__badge--icon-color--error:var(--color--error, #da4453);--ez-tree__badge--icon-color--success:var(--color-alert--success-800, #157a00);--ez-tree__badge--icon-color--warning:var(--color--warning, #f2d410);--ez-tree__badge--icon-color--disabled:var(--text--disable, #AFB6C0);display:flex;flex-direction:column;margin:0 var(--ez-tree--margin) var(--ez-tree--margin) var(--ez-tree--margin);outline:none}ul{list-style-type:none;margin:0;cursor:default;padding-inline-start:var(--ez-tree--padding-inline-start)}ul.first-level{padding-inline-start:0}.tree-item-badge{width:16px;height:16px;background:transparent;border-radius:50%;transition:all 300ms ease-in-out;display:flex;align-items:center;justify-content:center}.tree-item-badge-error-icon{--ez-icon--color:white}.tree-item-badge-text{font-family:var(--ez-tree--font-family);font-size:var(--ez-tree--font-size);font-weight:var(--ez-tree--font-weight);color:var(--ez-tree--color)}.tree-item-badge.error{background:var(--color--error)}.tree-item-badge.warning{background:var(--color--warning)}.tree-item-badge.success{background:var(--color--success)}.item-label-container{display:flex;align-items:center;overflow:hidden}.tree-item{display:flex;align-items:center;cursor:pointer;margin-top:var(--ez-tree--margin);margin-right:var(--ez-tree--margin-right);border-radius:var(--ez-tree--border-radius);height:var(--ez-tree__tree-item--height);padding:var(--ez-tree__tree-item--padding);justify-content:space-between}.tree-item[selected]{background-color:var(--ez-tree__tree-item--selected--background-color)}.tree-item:hover{background-color:var(--ez-tree__tree-item--hover--background-color)}.tree-item[disabled],.tree-item[disabled]:hover{background-color:var(--ez-tree__tree-item--disabled--background-color)}.item-icon-box{display:flex;align-items:center;justify-content:center;width:var(--ez-tree__item-icon-box--width);height:var(--ez-tree__item-icon-box--height);padding:var(--ez-tree__item-icon-box--padding) var(--ez-tree__item-icon-box--padding) var(--ez-tree__item-icon-box--padding) 0}.item-icon{--ez-icon--color:var(--ez-tree--color)}.item-icon:hover{cursor:pointer}.tree-item[selected] .item-icon{--ez-icon--color:var(--ez-tree--selected--color)}.tree-item[disabled] .item-icon{cursor:unset;--ez-icon--color:var(--ez-tree--disabled--color)}.item-label{cursor:inherit;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-family:var(--ez-tree--font-family);font-size:var(--ez-tree--font-size);font-weight:var(--ez-tree--font-weight);color:var(--ez-tree--color)}.item-label--bold{font-weight:var(--ez-tree--font-weight--bold)}.tree-item[selected] .item-label{color:var(--ez-tree--selected--color);font-weight:var(--ez-tree--selected--font-weight)}.tree-item[disabled] .item-label{color:var(--ez-tree--disabled--color)}";
|
|
92668
|
+
const ezTreeCss = ":host{--ez-tree--border-radius:var(--border--radius-small, 8px);--ez-tree--padding-inline-start:20px;--ez-tree--margin:var(--space--extra-small, 3px);--ez-tree--margin-right:0px;--ez-tree--user-select:auto;--ez-tree--font-family:var(--font-pattern, Arial);--ez-tree--font-size:var(--text--medium, 14px);--ez-tree--selected--font-weight:var(--text-weight--large, 600);--ez-tree--font-weight:var(--text-weight--small, 400);--ez-tree--color:var(--title--primary, #2B3A54);--ez-tree--selected--color:var(--color--primary, #008561);--ez-tree--disabled--color:var(--text--disable, #AFB6C0);--ez-tree--font-weight--bold:var(--text-weight--large, 600);--ez-tree__tree-item--height:var(--size-medium, 18px);--ez-tree__tree-item--padding:var(--space--small, 6px);--ez-tree__tree-item--background-color:var(--background--xlight, #FFFFFF);--ez-tree__tree-item--selected--background-color:var(--color--primary-300, #E2F4EF);--ez-tree__tree-item--hover--background-color:var(--background--medium, #F0F3F7);--ez-tree__tree-item--disabled--background-color:var(--ez-tree__tree-Item--background-color);--ez-tree__item-icon-box--height:var(--ez-tree__tree-item--height);--ez-tree__item-icon-box--width:var(--size-medium, 18px);--ez-tree__item-icon-box--padding:var(--ez-tree__tree-item--padding);--ez-tree__badge--icon-color--default:var(--title--primary, #2B3A54);--ez-tree__badge--icon-color--error:var(--color--error, #da4453);--ez-tree__badge--icon-color--success:var(--color-alert--success-800, #157a00);--ez-tree__badge--icon-color--warning:var(--color--warning, #f2d410);--ez-tree__badge--icon-color--disabled:var(--text--disable, #AFB6C0);display:flex;flex-direction:column;margin:0 var(--ez-tree--margin) var(--ez-tree--margin) var(--ez-tree--margin);outline:none}ul{list-style-type:none;margin:0;cursor:default;padding-inline-start:var(--ez-tree--padding-inline-start)}ul.first-level{padding-inline-start:0}.tree-item-badge{width:16px;height:16px;background:transparent;border-radius:50%;transition:all 300ms ease-in-out;display:flex;align-items:center;justify-content:center}.tree-item-badge-error-icon{--ez-icon--color:white}.tree-item-badge-text{font-family:var(--ez-tree--font-family);font-size:var(--ez-tree--font-size);font-weight:var(--ez-tree--font-weight);color:var(--ez-tree--color)}.tree-item-badge.error{background:var(--color--error)}.tree-item-badge.warning{background:var(--color--warning)}.tree-item-badge.success{background:var(--color--success)}.item-label-container{display:flex;align-items:center;overflow:hidden}.tree-item{display:flex;align-items:center;cursor:pointer;margin-top:var(--ez-tree--margin);margin-right:var(--ez-tree--margin-right);border-radius:var(--ez-tree--border-radius);height:var(--ez-tree__tree-item--height);padding:var(--ez-tree__tree-item--padding);justify-content:space-between}.tree-item[selected]{background-color:var(--ez-tree__tree-item--selected--background-color)}.tree-item:hover{background-color:var(--ez-tree__tree-item--hover--background-color)}.tree-item[disabled],.tree-item[disabled]:hover{background-color:var(--ez-tree__tree-item--disabled--background-color)}.item-icon-box{display:flex;align-items:center;justify-content:center;width:var(--ez-tree__item-icon-box--width);height:var(--ez-tree__item-icon-box--height);padding:var(--ez-tree__item-icon-box--padding) var(--ez-tree__item-icon-box--padding) var(--ez-tree__item-icon-box--padding) 0}.item-icon{--ez-icon--color:var(--ez-tree--color)}.item-icon:hover{cursor:pointer}.tree-item[selected] .item-icon{--ez-icon--color:var(--ez-tree--selected--color)}.tree-item[disabled] .item-icon{cursor:unset;--ez-icon--color:var(--ez-tree--disabled--color)}.item-label{cursor:inherit;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;user-select:var(--ez-tree--user-select);font-family:var(--ez-tree--font-family);font-size:var(--ez-tree--font-size);font-weight:var(--ez-tree--font-weight);color:var(--ez-tree--color)}.item-label--bold{font-weight:var(--ez-tree--font-weight--bold)}.tree-item[selected] .item-label{color:var(--ez-tree--selected--color);font-weight:var(--ez-tree--selected--font-weight)}.tree-item[disabled] .item-label{color:var(--ez-tree--disabled--color)}";
|
|
92551
92669
|
|
|
92552
92670
|
const EzTree$1 = class extends HTMLElement$1 {
|
|
92553
92671
|
constructor() {
|
|
@@ -92557,12 +92675,20 @@ const EzTree$1 = class extends HTMLElement$1 {
|
|
|
92557
92675
|
this.ezChange = createEvent(this, "ezChange", 7);
|
|
92558
92676
|
this.ezOpenItem = createEvent(this, "ezOpenItem", 7);
|
|
92559
92677
|
this.ezDbClickItem = createEvent(this, "ezDbClickItem", 7);
|
|
92678
|
+
this.ezRemoveItem = createEvent(this, "ezRemoveItem", 7);
|
|
92560
92679
|
this._onItemClick = (item) => {
|
|
92561
|
-
this.
|
|
92680
|
+
if (!this.selectable) {
|
|
92681
|
+
this.openClose(item);
|
|
92682
|
+
return;
|
|
92683
|
+
}
|
|
92684
|
+
if (this.value && this.value.id === item.id) {
|
|
92685
|
+
this.value = undefined;
|
|
92686
|
+
return;
|
|
92687
|
+
}
|
|
92688
|
+
this.value = item;
|
|
92562
92689
|
};
|
|
92563
92690
|
this._onIconClick = (item) => {
|
|
92564
92691
|
this.openClose(item);
|
|
92565
|
-
this.value = item;
|
|
92566
92692
|
};
|
|
92567
92693
|
this._tree = new Tree(() => forceUpdate(this));
|
|
92568
92694
|
this._waintingForLoad = undefined;
|
|
@@ -92572,6 +92698,7 @@ const EzTree$1 = class extends HTMLElement$1 {
|
|
|
92572
92698
|
this.iconResolver = defaultIconResolver;
|
|
92573
92699
|
this.tooltipResolver = undefined;
|
|
92574
92700
|
this.enableHierarchicalFilter = true;
|
|
92701
|
+
this.selectable = true;
|
|
92575
92702
|
}
|
|
92576
92703
|
/**
|
|
92577
92704
|
* Efetua a seleção de um item.
|
|
@@ -92622,10 +92749,14 @@ const EzTree$1 = class extends HTMLElement$1 {
|
|
|
92622
92749
|
parentId = (_a = this.value) === null || _a === void 0 ? void 0 : _a.id;
|
|
92623
92750
|
}
|
|
92624
92751
|
this._tree.addChildAt(parentId, item);
|
|
92752
|
+
this.addItemInIndexedList(parentId, item);
|
|
92625
92753
|
const node = this._tree.getNode(parentId);
|
|
92626
92754
|
if (node) {
|
|
92627
92755
|
node.item.expanded = true;
|
|
92628
92756
|
}
|
|
92757
|
+
else {
|
|
92758
|
+
this.collapseAll();
|
|
92759
|
+
}
|
|
92629
92760
|
}
|
|
92630
92761
|
/**
|
|
92631
92762
|
* Efetua a seleção de um item.
|
|
@@ -92648,12 +92779,48 @@ const EzTree$1 = class extends HTMLElement$1 {
|
|
|
92648
92779
|
/**
|
|
92649
92780
|
* Atualiza um item
|
|
92650
92781
|
*/
|
|
92651
|
-
async updateItem(item) {
|
|
92652
|
-
var _a;
|
|
92653
|
-
|
|
92782
|
+
async updateItem(item, config) {
|
|
92783
|
+
var _a, _b, _c;
|
|
92784
|
+
if (Array.isArray(item)) {
|
|
92785
|
+
item.forEach(i => this.updateItem(i, config));
|
|
92786
|
+
return;
|
|
92787
|
+
}
|
|
92788
|
+
if (config === null || config === void 0 ? void 0 : config.updatedBySelectedId) {
|
|
92789
|
+
Object.assign(item, { id: this.selectedId });
|
|
92790
|
+
}
|
|
92791
|
+
this._tree.updateItem((config === null || config === void 0 ? void 0 : config.forceDefaultValues) ? this.applyDefaultValues(item) : item);
|
|
92792
|
+
this.updateItemInIndexedList(item, config === null || config === void 0 ? void 0 : config.forceDefaultValues);
|
|
92654
92793
|
const node = (_a = this._tree) === null || _a === void 0 ? void 0 : _a.getNode(this.selectedId);
|
|
92655
92794
|
if (node == undefined) {
|
|
92656
92795
|
this.value = this._visibleItems ? this._visibleItems[0] : undefined;
|
|
92796
|
+
this._tree.collapseAll();
|
|
92797
|
+
}
|
|
92798
|
+
if (((_b = this.value) === null || _b === void 0 ? void 0 : _b.id) === item.id) {
|
|
92799
|
+
this.value = item;
|
|
92800
|
+
this.ezChange.emit(this.value);
|
|
92801
|
+
return;
|
|
92802
|
+
}
|
|
92803
|
+
const childSelected = this.getItemById((_c = this.value) === null || _c === void 0 ? void 0 : _c.id, [item]);
|
|
92804
|
+
if (childSelected) {
|
|
92805
|
+
this.value = childSelected;
|
|
92806
|
+
this.ezChange.emit(this.value);
|
|
92807
|
+
}
|
|
92808
|
+
}
|
|
92809
|
+
/**
|
|
92810
|
+
* Remove um item da árvore pelo seu ID.
|
|
92811
|
+
* Se o item removido estiver selecionado, a seleção será limpa.
|
|
92812
|
+
*/
|
|
92813
|
+
async removeItem(id) {
|
|
92814
|
+
var _a;
|
|
92815
|
+
id = id !== null && id !== void 0 ? id : this.selectedId;
|
|
92816
|
+
if (!id) {
|
|
92817
|
+
return;
|
|
92818
|
+
}
|
|
92819
|
+
this._tree.removeItem(id);
|
|
92820
|
+
this.removeItemFromIndexedList(id);
|
|
92821
|
+
this.ezRemoveItem.emit(id);
|
|
92822
|
+
if (((_a = this.value) === null || _a === void 0 ? void 0 : _a.id) === id) {
|
|
92823
|
+
this.value = undefined;
|
|
92657
92824
|
}
|
|
92658
92825
|
}
|
|
92659
92826
|
/**
|
|
@@ -92741,6 +92908,75 @@ const EzTree$1 = class extends HTMLElement$1 {
|
|
|
92741
92908
|
event.preventDefault();
|
|
92742
92909
|
}
|
|
92743
92910
|
}
|
|
92911
|
+
getItemById(id, items) {
|
|
92912
|
+
for (const treeItem of items) {
|
|
92913
|
+
if (treeItem.id === id) {
|
|
92914
|
+
return treeItem;
|
|
92915
|
+
}
|
|
92916
|
+
else if (treeItem.children && Array.isArray(treeItem.children)) {
|
|
92917
|
+
const itemFound = this.getItemById(id, treeItem.children);
|
|
92918
|
+
if (itemFound) {
|
|
92919
|
+
return itemFound;
|
|
92920
|
+
}
|
|
92921
|
+
}
|
|
92922
|
+
}
|
|
92923
|
+
return undefined;
|
|
92924
|
+
}
|
|
92925
|
+
addItemInIndexedList(parentId, item, items) {
|
|
92926
|
+
var _a, _b;
|
|
92927
|
+
items = (_a = items !== null && items !== void 0 ? items : this.items) !== null && _a !== void 0 ? _a : [];
|
|
92928
|
+
if (!parentId) {
|
|
92929
|
+
items.push(item);
|
|
92930
|
+
}
|
|
92931
|
+
const itemFound = this.getItemById(parentId, items);
|
|
92932
|
+
itemFound.children = ((_b = itemFound.children) !== null && _b !== void 0 ? _b : []);
|
|
92933
|
+
itemFound.children.push(item);
|
|
92934
|
+
itemFound.childrenCount = itemFound.children.length;
|
|
92935
|
+
}
|
|
92936
|
+
applyDefaultValues(item) {
|
|
92937
|
+
if (item.disabled === undefined) {
|
|
92938
|
+
item.disabled = false;
|
|
92939
|
+
}
|
|
92940
|
+
if (item.expanded === undefined) {
|
|
92941
|
+
item.expanded = false;
|
|
92942
|
+
}
|
|
92943
|
+
return item;
|
|
92944
|
+
}
|
|
92945
|
+
updateItemInIndexedList(item, forceDefaultValues = false) {
|
|
92946
|
+
if (!item || !this.items) {
|
|
92947
|
+
return;
|
|
92948
|
+
}
|
|
92949
|
+
const itemFound = this.getItemById(item.id, this.items);
|
|
92950
|
+
if (itemFound) {
|
|
92951
|
+
Object.assign(itemFound, forceDefaultValues ? this.applyDefaultValues(item) : item);
|
|
92952
|
+
}
|
|
92953
|
+
}
|
|
92954
|
+
removeItemFromIndexedList(id, items) {
|
|
92955
|
+
var _a;
|
|
92956
|
+
items = (_a = items !== null && items !== void 0 ? items : this.items) !== null && _a !== void 0 ? _a : [];
|
|
92957
|
+
if (!id) {
|
|
92958
|
+
return false;
|
|
92959
|
+
}
|
|
92960
|
+
const rootIndex = items.findIndex(item => item.id === id);
|
|
92961
|
+
if (rootIndex !== -1) {
|
|
92962
|
+
items.splice(rootIndex, 1);
|
|
92963
|
+
return true;
|
|
92964
|
+
}
|
|
92965
|
+
for (const treeItem of items) {
|
|
92966
|
+
if (treeItem.children && Array.isArray(treeItem.children)) {
|
|
92967
|
+
const childIndex = treeItem.children.findIndex(child => child.id === id);
|
|
92968
|
+
if (childIndex !== -1) {
|
|
92969
|
+
treeItem.children.splice(childIndex, 1);
|
|
92970
|
+
treeItem.childrenCount = treeItem.children.length;
|
|
92971
|
+
return true;
|
|
92972
|
+
}
|
|
92973
|
+
if (this.removeItemFromIndexedList(id, treeItem.children)) {
|
|
92974
|
+
return true;
|
|
92975
|
+
}
|
|
92976
|
+
}
|
|
92977
|
+
}
|
|
92978
|
+
return false;
|
|
92979
|
+
}
|
|
92744
92980
|
getItemPathAttrs({ id, label }) {
|
|
92745
92981
|
return { id, label };
|
|
92746
92982
|
}
|
|
@@ -93693,7 +93929,7 @@ const EzTileMedium = /*@__PURE__*/proxyCustomElement(EzTileMedium$1, [1,"ez-tile
|
|
|
93693
93929
|
const EzTimeInput = /*@__PURE__*/proxyCustomElement(EzTimeInput$1, [1,"ez-time-input",{"label":[513],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513],"canShowError":[516,"can-show-error"],"autoFocus":[4,"auto-focus"],"alternativePlaceholder":[1,"alternative-placeholder"]}]);
|
|
93694
93930
|
const EzToast = /*@__PURE__*/proxyCustomElement(EzToast$1, [1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"]}]);
|
|
93695
93931
|
const EzTooltip = /*@__PURE__*/proxyCustomElement(EzTooltip$1, [1,"ez-tooltip",{"message":[1],"anchoringElement":[1040],"placement":[1],"gapOptions":[16],"type":[1],"debouncingTime":[2,"debouncing-time"],"active":[4],"maxWidth":[2,"max-width"],"useAnchorSize":[4,"use-anchor-size"],"strategy":[1]}]);
|
|
93696
|
-
const EzTree = /*@__PURE__*/proxyCustomElement(EzTree$1, [1,"ez-tree",{"items":[1040],"value":[1040],"selectedId":[1537,"selected-id"],"iconResolver":[16],"tooltipResolver":[16],"enableHierarchicalFilter":[4,"enable-hierarchical-filter"],"_tree":[32],"_waintingForLoad":[32]},[[2,"keydown","onKeyDownListener"]]]);
|
|
93932
|
+
const EzTree = /*@__PURE__*/proxyCustomElement(EzTree$1, [1,"ez-tree",{"items":[1040],"value":[1040],"selectedId":[1537,"selected-id"],"iconResolver":[16],"tooltipResolver":[16],"enableHierarchicalFilter":[4,"enable-hierarchical-filter"],"selectable":[4],"_tree":[32],"_waintingForLoad":[32]},[[2,"keydown","onKeyDownListener"]]]);
|
|
93697
93933
|
const EzUnderface = /*@__PURE__*/proxyCustomElement(EzUnderface$1, [1,"ez-underface",{"color":[513],"customColor":[513,"custom-color"],"height":[514],"width":[514]}]);
|
|
93698
93934
|
const EzUpload = /*@__PURE__*/proxyCustomElement(EzUpload$1, [1,"ez-upload",{"label":[1],"subtitle":[1],"enabled":[4],"maxFileSize":[2,"max-file-size"],"maxFiles":[2,"max-files"],"requestHeaders":[8,"request-headers"],"urlUpload":[1,"url-upload"],"urlDelete":[1,"url-delete"],"value":[1040]}]);
|
|
93699
93935
|
const EzViewStack = /*@__PURE__*/proxyCustomElement(EzViewStack$1, [0,"ez-view-stack"]);
|