@sankhyalabs/ezui 1.1.93 → 1.1.96
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/{CSSVarsUtils-66e86394.js → CSSVarsUtils-8fbdf2e0.js} +1 -0
- package/dist/cjs/StringUtils-0ba09df4.js +57 -0
- package/dist/cjs/ez-button_3.cjs.entry.js +578 -0
- package/dist/cjs/ez-calendar_14.cjs.entry.js +2628 -0
- package/dist/cjs/ez-dialog.cjs.entry.js +3 -3
- package/dist/cjs/{ez-button_11.cjs.entry.js → ez-grid.cjs.entry.js} +20 -1510
- package/dist/cjs/ez-icon.cjs.entry.js +42 -0
- package/dist/cjs/ez-modal_2.cjs.entry.js +317 -0
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +2 -2
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/{index-5c8eb919.js → index-6164b259.js} +16 -16
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ez-check/ez-check.css +4 -3
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +52 -3
- package/dist/collection/components/ez-dialog/ez-dialog.css +14 -2
- package/dist/collection/components/ez-dialog/ez-dialog.js +3 -5
- package/dist/collection/components/ez-form/fieldbuilder/FieldBuilder.js +4 -1
- package/dist/collection/components/ez-form/fieldbuilder/tpl/CheckBox.tpl.js +4 -4
- package/dist/collection/components/ez-form/fieldbuilder/tpl/ComboBox.tpl.js +2 -2
- package/dist/collection/components/ez-form/fieldbuilder/tpl/DateInput.tpl.js +2 -2
- package/dist/collection/components/ez-form/fieldbuilder/tpl/FileInput.tpl.js +2 -2
- package/dist/collection/components/ez-form/fieldbuilder/tpl/NumberInput.tpl.js +6 -6
- package/dist/collection/components/ez-form/fieldbuilder/tpl/SearchInput.tpl.js +2 -2
- package/dist/collection/components/ez-form/fieldbuilder/tpl/TextArea.tpl.js +2 -2
- package/dist/collection/components/ez-form/structure/FormSheetMetadata.js +14 -8
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +3 -2
- package/dist/collection/components/ez-grid/ez-grid.css +8 -0
- package/dist/collection/components/ez-grid/ez-grid.js +3 -3
- package/dist/collection/components/ez-grid/subcomponents/gridconfig/grid-config.css +28 -4
- package/dist/collection/components/ez-grid/subcomponents/gridconfig/grid-config.js +6 -5
- package/dist/collection/components/ez-grid/subcomponents/select-box/select-box.css +10 -7
- package/dist/collection/components/ez-grid/subcomponents/select-box/select-box.js +12 -17
- package/dist/collection/components/ez-list/ez-list.js +2 -2
- package/dist/collection/components/ez-text-input/ez-text-input.css +2 -2
- package/dist/collection/components/ez-text-input/ez-text-input.js +24 -1
- package/dist/collection/components/test-du/test-du.js +1 -1
- package/dist/collection/utils/CSSVarsUtils.js +1 -0
- package/dist/custom-elements/index.js +86 -69
- package/dist/esm/{CSSVarsUtils-aeee9825.js → CSSVarsUtils-667e0016.js} +1 -0
- package/dist/esm/StringUtils-cbf10229.js +55 -0
- package/dist/esm/ez-button_3.entry.js +572 -0
- package/dist/esm/ez-calendar_14.entry.js +2611 -0
- package/dist/esm/ez-dialog.entry.js +3 -3
- package/dist/esm/{ez-button_11.entry.js → ez-grid.entry.js} +10 -1490
- package/dist/esm/ez-icon.entry.js +38 -0
- package/dist/esm/ez-modal_2.entry.js +312 -0
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-time-input.entry.js +2 -2
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/{index-4688c617.js → index-74a9c220.js} +17 -17
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-4b5c4408.entry.js → p-2617733e.entry.js} +1 -1
- package/dist/ezui/p-2f84ba72.js +1 -0
- package/dist/ezui/p-38589c64.entry.js +1 -0
- package/dist/ezui/{p-ca42d682.entry.js → p-6714a1b2.entry.js} +46 -46
- package/dist/ezui/p-90f6d8a0.entry.js +1 -0
- package/dist/ezui/p-a943d501.entry.js +1 -0
- package/dist/ezui/p-b139372f.entry.js +1 -0
- package/dist/ezui/{p-7ff8b7f7.js → p-c6762896.js} +1 -1
- package/dist/ezui/p-d54c157f.js +1 -0
- package/dist/ezui/p-e06e47f1.entry.js +1 -0
- package/dist/ezui/{p-7e1d9c29.entry.js → p-ef393d36.entry.js} +1 -1
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +8 -0
- package/dist/types/components/ez-form/ez-form.d.ts +6 -1
- package/dist/types/components/ez-form/fieldbuilder/tpl/ComboBox.tpl.d.ts +2 -1
- package/dist/types/components/ez-form/fieldbuilder/tpl/DateInput.tpl.d.ts +2 -1
- package/dist/types/components/ez-form/fieldbuilder/tpl/FileInput.tpl.d.ts +2 -1
- package/dist/types/components/ez-form/fieldbuilder/tpl/NumberInput.tpl.d.ts +4 -2
- package/dist/types/components/ez-form/fieldbuilder/tpl/SearchInput.tpl.d.ts +2 -1
- package/dist/types/components/ez-form/fieldbuilder/tpl/TextArea.tpl.d.ts +2 -1
- package/dist/types/components/ez-grid/subcomponents/select-box/select-box.d.ts +6 -4
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +4 -0
- package/dist/types/components.d.ts +26 -2
- package/package.json +1 -1
- package/dist/cjs/ApplicationUtils-d1c1db56.js +0 -35
- package/dist/cjs/ez-calendar.cjs.entry.js +0 -224
- package/dist/cjs/ez-collapsible-box_7.cjs.entry.js +0 -853
- package/dist/cjs/ez-combo-box.cjs.entry.js +0 -254
- package/dist/cjs/ez-form.cjs.entry.js +0 -753
- package/dist/esm/ApplicationUtils-01280a9d.js +0 -33
- package/dist/esm/ez-calendar.entry.js +0 -220
- package/dist/esm/ez-collapsible-box_7.entry.js +0 -843
- package/dist/esm/ez-combo-box.entry.js +0 -250
- package/dist/esm/ez-form.entry.js +0 -749
- package/dist/ezui/p-020f1285.entry.js +0 -1
- package/dist/ezui/p-278ce681.entry.js +0 -1
- package/dist/ezui/p-33d1247f.entry.js +0 -1
- package/dist/ezui/p-5793a2e1.entry.js +0 -1
- package/dist/ezui/p-68f6b75e.entry.js +0 -1
- package/dist/ezui/p-7107d7ef.js +0 -1
- package/dist/ezui/p-8b099482.js +0 -1
|
@@ -7993,7 +7993,7 @@ let EzCalendar$1 = class extends HTMLElement$1 {
|
|
|
7993
7993
|
static get style() { return ezCalendarCss; }
|
|
7994
7994
|
};
|
|
7995
7995
|
|
|
7996
|
-
const ezCheckCss = ":host{--ez-check--box--width:18px;--ez-check--box--height:18px;--ez-check--width:calc(var(--ez-check--box--width) + 14px);--ez-check--height:calc(var(--ez-check--box--width) + 14px);--ez-check--border-radius:var(--border--radius-small);--ez-check--checked--background-color:var(--color--primary-200);--ez-check--focus--background-color:var(--color--strokes, #FFFFFF);--ez-check--hover--background-color:var(--background--medium);--ez-check--checked--disabled--background-color:var(--color--disable-secondary);--ez-check--border:var(--border--medium) var(--title--primary);--ez-check--disabled--border:var(--border--medium) var(--color--strokes);--ez-check--checked--border:var(--border--medium) var(--color--primary);--ez-check--checked--hover--background-color:var(--color--primary-200);--ez-check--checked--focus--background-color:var(--color--primary-300, #FFFFFF);--ez-check--check--image:url('data:image/svg+xml;utf8,<svg width=\"8\" height=\"7\" viewBox=\"0 0 8 7\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7.70002 0.398999L7.48502 0.207997C7.31524 0.0598858 7.09376 -0.0150438 6.86894 -0.000430025C6.64411 0.0141838 6.43419 0.117153 6.28502 0.285997L2.70002 4.332L1.61802 3.384C1.44837 3.23576 1.22697 3.16067 1.00214 3.17509C0.77732 3.18952 0.567332 3.2923 0.418019 3.461L0.229019 3.674C0.0752361 3.84797 -0.00437434 4.07521 0.00721192 4.30713C0.0187982 4.53904 0.120661 4.75722 0.291019 4.915L2.27402 6.762C2.35832 6.8432 2.45842 6.90618 2.56811 6.94702C2.67779 6.98787 2.79471 7.00571 2.91159 6.99942C3.02846 6.99314 3.14279 6.96287 3.24747 6.91049C3.35214 6.85812 3.44492 6.78477 3.52002 6.695L7.79102 1.638C7.94063 1.46048 8.01486 1.23149 7.99786 0.999963C7.98085 0.768436 7.87396 0.552749 7.70002 0.398999Z\"/></svg>');--ez-check--check--background-color:var(--color--primary);--ez-check--check--disabled--background-color:var(--color--strokes);--ez-switch--slider--width:34px;--ez-switch--slider--height:14px;--ez-switch--pin--width:20px;--ez-switch--pin--height:20px;--ez-switch--focus--width:32px;--ez-switch--focus--height:32px;--ez-switch--background-color:var(--color--strokes);--ez-switch--disabled--background-color:var(--color--disable-secondary);--ez-switch--checked--background-color:var(--color--primary-300);--ez-switch--pin--background-color:var(--background--xlight);--ez-switch--pin--disabled--background-color:var(--color--disable-secondary);--ez-switch--pin--checked--background-color:var(--color--primary);--ez-switch--pin--checked--disabled--background-color:#E8F7F4;--ez-switch--pin--focus--background-color:var(--text--disable);--ez-switch--pin--checked--focus--background-color:var(--color--primary);--ez-check--label--font-size:var(--text--medium, 14px);--ez-check--label--font-family:var(--font-pattern, Arial);--ez-check--label--color:var(--title--primary, #000);--ez-check--label--disabled--color:var(--text--disable, #AFB6C0);display:flex;width:100%;align-items:center;margin:0}input.regularMode{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;box-sizing:border-box;-webkit-appearance:none;appearance:none;cursor:pointer;border-radius:50%;position:relative;width:var(--ez-check--width);height:var(--ez-check--height)}input.regularMode:enabled:hover{background-color:var(--ez-check--hover--background-color)}input.regularMode:enabled:focus{outline:none;background-color:var(--ez-check--focus--background-color)}input.regularMode:disabled{cursor:auto;background:none}input.regularMode::before{box-sizing:border-box;content:\"\";display:block;width:var(--ez-check--box--width);height:var(--ez-check--box--height);border-radius:var(--ez-check--border-radius);border:var(--ez-check--border)}input.regularMode:disabled::before{border:var(--ez-check--disabled--border)}input.regularMode:checked:enabled:hover{background-color:var(--ez-check--checked--hover--background-color)}input.regularMode:checked:enabled:focus{background-color:var(--ez-check--checked--focus--background-color)}input.regularMode:checked::before{border:var(--ez-check--checked--border);background-color:var(--ez-check--checked--background-color)}input.regularMode:checked:disabled:before{border:var(--ez-check--disabled--border);background-color:var(--ez-check--checked--disabled--background-color)}input.regularMode:checked::after{display:flex;position:absolute;content:\"\";background-color:var(--ez-check--check--background-color);width:8px;height:7px;-webkit-mask-image:var(--ez-check--check--image);mask-image:var(--ez-check--check--image)}input.regularMode:checked:disabled::after{background-color:var(--ez-check--check--disabled--background-color)}input.switchMode{flex-shrink:0;-webkit-appearance:none;appearance:none;position:relative;outline:none;cursor:pointer;border-radius:20px;border:
|
|
7996
|
+
const ezCheckCss = ":host{--ez-check--box--width:18px;--ez-check--box--height:18px;--ez-check--width:calc(var(--ez-check--box--width) + 14px);--ez-check--height:calc(var(--ez-check--box--width) + 14px);--ez-check--border-radius:var(--border--radius-small);--ez-check--checked--background-color:var(--color--primary-200);--ez-check--focus--background-color:var(--color--strokes, #FFFFFF);--ez-check--hover--background-color:var(--background--medium);--ez-check--checked--disabled--background-color:var(--color--disable-secondary);--ez-check--border:var(--border--medium) var(--title--primary);--ez-check--disabled--border:var(--border--medium) var(--color--strokes);--ez-check--checked--border:var(--border--medium) var(--color--primary);--ez-check--checked--hover--background-color:var(--color--primary-200);--ez-check--checked--focus--background-color:var(--color--primary-300, #FFFFFF);--ez-check--check--image:url('data:image/svg+xml;utf8,<svg width=\"8\" height=\"7\" viewBox=\"0 0 8 7\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7.70002 0.398999L7.48502 0.207997C7.31524 0.0598858 7.09376 -0.0150438 6.86894 -0.000430025C6.64411 0.0141838 6.43419 0.117153 6.28502 0.285997L2.70002 4.332L1.61802 3.384C1.44837 3.23576 1.22697 3.16067 1.00214 3.17509C0.77732 3.18952 0.567332 3.2923 0.418019 3.461L0.229019 3.674C0.0752361 3.84797 -0.00437434 4.07521 0.00721192 4.30713C0.0187982 4.53904 0.120661 4.75722 0.291019 4.915L2.27402 6.762C2.35832 6.8432 2.45842 6.90618 2.56811 6.94702C2.67779 6.98787 2.79471 7.00571 2.91159 6.99942C3.02846 6.99314 3.14279 6.96287 3.24747 6.91049C3.35214 6.85812 3.44492 6.78477 3.52002 6.695L7.79102 1.638C7.94063 1.46048 8.01486 1.23149 7.99786 0.999963C7.98085 0.768436 7.87396 0.552749 7.70002 0.398999Z\"/></svg>');--ez-check--check--background-color:var(--color--primary);--ez-check--check--disabled--background-color:var(--color--strokes);--ez-switch--slider--width:34px;--ez-switch--slider--height:14px;--ez-switch--pin--width:20px;--ez-switch--pin--height:20px;--ez-switch--focus--width:32px;--ez-switch--focus--height:32px;--ez-switch--background-color:var(--color--strokes);--ez-switch--disabled--background-color:var(--color--disable-secondary);--ez-switch--checked--background-color:var(--color--primary-300);--ez-switch--pin--background-color:var(--background--xlight);--ez-switch--pin--disabled--background-color:var(--color--disable-secondary);--ez-switch--pin--checked--background-color:var(--color--primary);--ez-switch--pin--checked--disabled--background-color:#E8F7F4;--ez-switch--pin--focus--background-color:var(--text--disable);--ez-switch--pin--checked--focus--background-color:var(--color--primary);--ez-check--label--font-size:var(--text--medium, 14px);--ez-check--label--font-family:var(--font-pattern, Arial);--ez-check--label--color:var(--title--primary, #000);--ez-check--label--disabled--color:var(--text--disable, #AFB6C0);display:flex;width:100%;align-items:center;margin:0}input.regularMode{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;box-sizing:border-box;-webkit-appearance:none;appearance:none;cursor:pointer;border-radius:50%;position:relative;width:var(--ez-check--width);height:var(--ez-check--height)}input.regularMode:enabled:hover{background-color:var(--ez-check--hover--background-color)}input.regularMode:enabled:focus{outline:none;background-color:var(--ez-check--focus--background-color)}input.regularMode:disabled{cursor:auto;background:none}input.regularMode::before{box-sizing:border-box;content:\"\";display:block;width:var(--ez-check--box--width);height:var(--ez-check--box--height);border-radius:var(--ez-check--border-radius);border:var(--ez-check--border)}input.regularMode:disabled::before{border:var(--ez-check--disabled--border)}input.regularMode:checked:enabled:hover{background-color:var(--ez-check--checked--hover--background-color)}input.regularMode:checked:enabled:focus{background-color:var(--ez-check--checked--focus--background-color)}input.regularMode:checked::before{border:var(--ez-check--checked--border);background-color:var(--ez-check--checked--background-color)}input.regularMode:checked:disabled:before{border:var(--ez-check--disabled--border);background-color:var(--ez-check--checked--disabled--background-color)}input.regularMode:checked::after{display:flex;position:absolute;content:\"\";background-color:var(--ez-check--check--background-color);width:8px;height:7px;-webkit-mask-image:var(--ez-check--check--image);mask-image:var(--ez-check--check--image)}input.regularMode:checked:disabled::after{background-color:var(--ez-check--check--disabled--background-color)}input.switchMode{flex-shrink:0;-webkit-appearance:none;appearance:none;position:relative;outline:none;cursor:pointer;border-radius:20px;border:var(--border--small, 1px solid) var(--text--secondary, #a2abb9);transition:background-color var(--transition);width:var(--ez-switch--slider--width);height:var(--ez-switch--slider--height);background-color:var(--ez-switch--background-color)}input.switchMode:disabled{background-color:var(--ez-switch--disabled--background-color)}input.switchMode::after{content:\"\";display:block;position:absolute;box-shadow:var(--shadow);transition:transform var(--transition);transition:background-color var(--transition);transform:translateX(-2px) translateY(-3px);border-radius:50%;width:var(--ez-switch--pin--width);height:var(--ez-switch--pin--height);background-color:var(--ez-switch--pin--background-color)}input.switchMode:disabled::after{background-color:var(--ez-switch--pin--disabled--background-color)}input.switchMode:checked{transition:background-color var(--transition), border var(--transition);background-color:var(--ez-switch--checked--background-color);border:var(--border--small, 1px solid) var(--color--primary, #008561)}input.switchMode::before{display:block;content:\"\";display:block;position:absolute;border-radius:50%;opacity:0;width:var(--ez-switch--focus--width);height:var(--ez-switch--focus--height);top:calc((var(--ez-switch--slider--height) - var(--ez-switch--focus--height)) / 2);left:calc((var(--ez-switch--pin--width) - var(--ez-switch--focus--width))/2);background-color:var(--ez-switch--pin--focus--background-color)}input.switchMode:focus::before{opacity:0.24;transition:opacity var(--transition)}input.switchMode:checked:focus::before{background-color:var(--ez-switch--pin--checked--focus--background-color);transform:translateX(calc(var(--ez-switch--slider--width) - var(--ez-switch--pin--width)))}input.switchMode:checked::after{transition:transform var(--transition);transition:background-color var(--transition);transform:translateX(calc(var(--ez-switch--slider--width) - var(--ez-switch--pin--width))) translateY(-3px);box-shadow:var(--shadow);background-color:var(--ez-switch--pin--checked--background-color)}input.switchMode:checked:disabled::after{background-color:var(--ez-switch--pin--checked--disabled--background-color)}.label{flex-shrink:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-check--label--color);text-shadow:var(--text-shadow);font-size:var(--ez-check--label--font-size);font-family:var(--ez-check--label--font-family);cursor:default;padding-left:var(--space--small)}.label--disabled{color:var(--ez-check--label--disabled--color)}";
|
|
7997
7997
|
|
|
7998
7998
|
let EzCheck$1 = class extends HTMLElement$1 {
|
|
7999
7999
|
constructor() {
|
|
@@ -8108,6 +8108,7 @@ class CSSVarsUtils {
|
|
|
8108
8108
|
if (child) {
|
|
8109
8109
|
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--background-color');
|
|
8110
8110
|
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--border-color');
|
|
8111
|
+
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input--height');
|
|
8111
8112
|
}
|
|
8112
8113
|
}
|
|
8113
8114
|
static applyIfExists(host, element, varName) {
|
|
@@ -8138,6 +8139,14 @@ let EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
8138
8139
|
* Ajusta a opção de mostrar o "value" para cada opção. Por padrão não mostra
|
|
8139
8140
|
*/
|
|
8140
8141
|
this.showOptionValue = false;
|
|
8142
|
+
/**
|
|
8143
|
+
* Remove a opção vazia da lista de opções
|
|
8144
|
+
*/
|
|
8145
|
+
this.suppressEmptyOption = false;
|
|
8146
|
+
/**
|
|
8147
|
+
* Permite exibir a mensagem de erro.
|
|
8148
|
+
*/
|
|
8149
|
+
this.canShowError = true;
|
|
8141
8150
|
}
|
|
8142
8151
|
internalUpdate() {
|
|
8143
8152
|
if (this._inputElement) {
|
|
@@ -8168,7 +8177,12 @@ let EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
8168
8177
|
const upperCriteria = this._criteria.toUpperCase();
|
|
8169
8178
|
opts = opts.filter(opt => opt.label.toLocaleUpperCase().indexOf(upperCriteria) > -1);
|
|
8170
8179
|
}
|
|
8171
|
-
this.
|
|
8180
|
+
if (this.suppressEmptyOption) {
|
|
8181
|
+
this._visibleOptions = opts;
|
|
8182
|
+
}
|
|
8183
|
+
else {
|
|
8184
|
+
this._visibleOptions = [{ value: undefined, label: "" }].concat(opts);
|
|
8185
|
+
}
|
|
8172
8186
|
}
|
|
8173
8187
|
buildItem(opt, index) {
|
|
8174
8188
|
return h("li", { class: index === this._preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.selectOption(opt), onMouseOver: () => this._preSelection = undefined }, h("span", { class: "item--label", title: opt.label }, opt.label), this.showOptionValue ? h("span", { class: "item--value", title: opt.value }, opt.value) : undefined);
|
|
@@ -8180,7 +8194,7 @@ let EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
8180
8194
|
//FIXME: Provavelmente isso fará com que o popup abra em uma
|
|
8181
8195
|
//posição errada no futuro. Preferi fazer simples no começo,
|
|
8182
8196
|
//porque não quis onerar o text input com essa funcionalidade...
|
|
8183
|
-
const top = this.errorMessage ? "0px" : "-17px";
|
|
8197
|
+
const top = (this.errorMessage || !this.canShowError) ? "0px" : "-17px";
|
|
8184
8198
|
this._floatingID = FloatingManager.float(this._optionsList, this._listContainer, { autoClose: true, top });
|
|
8185
8199
|
window.requestAnimationFrame(() => {
|
|
8186
8200
|
this._optionsList.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
@@ -8352,7 +8366,7 @@ let EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
8352
8366
|
this.cancelPreselection();
|
|
8353
8367
|
}
|
|
8354
8368
|
render() {
|
|
8355
|
-
return (h(Host, null, h("ez-text-input", { ref: elem => this._inputElement = elem, enabled: this.enabled, onInput: evt => this.onTextInputChangeHandler(evt), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onEzChange: event => event.stopPropagation(), onKeyDown: event => this.keyDownHandler(event), label: this.label, value: this.getText(), errorMessage: this.errorMessage }, this.searchMode ?
|
|
8369
|
+
return (h(Host, null, h("ez-text-input", { ref: elem => this._inputElement = elem, enabled: this.enabled, onInput: evt => this.onTextInputChangeHandler(evt), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onEzChange: event => event.stopPropagation(), onKeyDown: event => this.keyDownHandler(event), label: this.label, value: this.getText(), canShowError: this.canShowError, errorMessage: this.errorMessage }, this.searchMode ?
|
|
8356
8370
|
h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-search", onClick: () => { this.loadOptions("ADVANCED"); }, slot: "leftIcon" })
|
|
8357
8371
|
:
|
|
8358
8372
|
h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-options", slot: "rightIcon", onClick: () => this.showOptions() })), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "options-list", ref: elem => this._optionsList = elem }, this._visibleOptions.map((opt, index) => this.buildItem(opt, index))))));
|
|
@@ -8570,7 +8584,7 @@ let EzDateTimeInput$1 = class extends HTMLElement$1 {
|
|
|
8570
8584
|
static get style() { return ezDateTimeInputCss; }
|
|
8571
8585
|
};
|
|
8572
8586
|
|
|
8573
|
-
const ezDialogCss = ":host{--dialog__container-padding:var(--space--large, 24px);--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, \"'Sora', 'Algerian'\");--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, \"'Sora', 'Algerian'\");--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--large, 24px);--dialog__body--font-size:var(--text--medium, 14px);--dialog__body--color:var(--text--primary, #626e82);--dialog__critical--background-color:var(--color--alert-error-800, #BD0025);--dialog__warning--background-color:var(--color--alert-warning-500, #EFB103);--dialog-z-index:var(--most-visible, 3);--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;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.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__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)}.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:24px;overflow-y:auto}.changeable__icon{width:
|
|
8587
|
+
const ezDialogCss = ":host{--dialog__container-padding:var(--space--large, 24px);--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, \"'Sora', 'Algerian'\");--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, \"'Sora', 'Algerian'\");--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--large, 24px);--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-z-index:var(--most-visible, 3);--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;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.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__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)}.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:24px;overflow-y:auto}.changeable__icon{background:var(--dialog__warning--background-color);color:var(--dialog__icon--color);display:grid;place-items:center;width:26px;height:26px;border-radius:50%}.changeable__icon.critical{background:var(--dialog__critical--background-color)}.title{display:flex;font-family:var(--dialog__title--font-pattern);margin:0;font-weight:var(--dialog__title--weight--large);line-height:1.3}.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-icon{outline:none;border:none;background-color:var(--dialog__warning--background-color);width:26px;height:26px;border-radius:100%;padding:0;display:flex;justify-content:center;align-items:center}.title-icon--critical{background-color:var(--dialog__critical--background-color)}.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)}.title-icon--critical::after{content:'';display:flex;background-color:#FFFF;width:13px;height:13px;-webkit-mask-image:var(--dialog--critical__image);mask-image:var(--dialog--critical__image)}.button-yes-no__container{display:flex;box-sizing:border-box;align-self:center;align-items:center;justify-content:flex-end}.button__no{padding-right:var(--dialog__btn__no--padding-right)}.button__ok--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%}}";
|
|
8574
8588
|
|
|
8575
8589
|
class Message {
|
|
8576
8590
|
constructor(title, message, critical, confirm, icon, callBack) {
|
|
@@ -8641,9 +8655,9 @@ let EzDialog$1 = class extends HTMLElement$1 {
|
|
|
8641
8655
|
render() {
|
|
8642
8656
|
if (this.opened && this._currentMessage) {
|
|
8643
8657
|
return (h("div", { class: "overlay" }, h("div", { class: "dialog" }, h("div", { class: this._currentMessage.critical === true ? "dialog__critical--indicator" : "dialog__warning--indicator" }), h("div", { class: "dialog__container" }, h("div", { class: "title__container" }, h("div", { class: "title__box" }, this._currentMessage.icon ?
|
|
8644
|
-
h("
|
|
8658
|
+
h("ez-icon", { class: this._currentMessage.critical ? "changeable__icon critical" : "changeable__icon", size: "small", iconName: this._currentMessage.icon })
|
|
8645
8659
|
:
|
|
8646
|
-
h("div", { class: this._currentMessage.critical ? "title-icon title-icon--critical" : "title-icon" }), h("div", { class: "title title--label"
|
|
8660
|
+
h("div", { class: this._currentMessage.critical ? "title-icon title-icon--critical" : "title-icon" }), h("div", { class: "title title--label", innerHTML: this._currentMessage.title })), h("button", { class: "btn-close", onClick: () => this.handleButtonClick(false) })), h("div", { class: "message", innerHTML: this._currentMessage.message }), this._currentMessage.confirm ?
|
|
8647
8661
|
h("div", { class: "button-yes-no__container" }, h("ez-button", { class: "button__no", mode: "link", label: "N\u00E3o", onClick: () => this.handleButtonClick(false) }), h("ez-button", { label: "Ok", onClick: () => this.handleButtonClick(true) }))
|
|
8648
8662
|
: undefined, !this._currentMessage.confirm ?
|
|
8649
8663
|
h("div", { class: "button__ok--container" }, h("ez-button", { label: "Ok", onClick: () => this.handleButtonClick(true) }))
|
|
@@ -8654,9 +8668,9 @@ let EzDialog$1 = class extends HTMLElement$1 {
|
|
|
8654
8668
|
static get style() { return ezDialogCss; }
|
|
8655
8669
|
};
|
|
8656
8670
|
|
|
8657
|
-
const buildTextArea = ({ name, label }) => {
|
|
8671
|
+
const buildTextArea = ({ name, label, readOnly }) => {
|
|
8658
8672
|
return (h("div", { class: "col col--sd-12 padding--small", key: name },
|
|
8659
|
-
h("ez-text-area", { label: label, "data-field-name": name })));
|
|
8673
|
+
h("ez-text-area", { enabled: !readOnly, label: label, "data-field-name": name })));
|
|
8660
8674
|
};
|
|
8661
8675
|
|
|
8662
8676
|
const buildTextInput = ({ name, label }) => {
|
|
@@ -8665,17 +8679,17 @@ const buildTextInput = ({ name, label }) => {
|
|
|
8665
8679
|
};
|
|
8666
8680
|
|
|
8667
8681
|
const buildSwitch = (fieldConfig) => {
|
|
8668
|
-
return buildField$1(fieldConfig.name, fieldConfig.label, true);
|
|
8682
|
+
return buildField$1(fieldConfig.name, fieldConfig.label, fieldConfig.readOnly, true);
|
|
8669
8683
|
};
|
|
8670
8684
|
const buildCheckBox = (fieldConfig) => {
|
|
8671
|
-
return buildField$1(fieldConfig.name, fieldConfig.label, false);
|
|
8685
|
+
return buildField$1(fieldConfig.name, fieldConfig.label, fieldConfig.readOnly, false);
|
|
8672
8686
|
};
|
|
8673
|
-
function buildField$1(fieldName, fieldLabel, switchMode = false) {
|
|
8687
|
+
function buildField$1(fieldName, fieldLabel, readOnly, switchMode = false) {
|
|
8674
8688
|
return (h("div", { class: "col col--sd-12 col--tb-3 padding--small align--middle padding-bottom--large" },
|
|
8675
|
-
h("ez-check", { label: fieldLabel, mode: switchMode ? "switch" : "regular", "data-field-name": fieldName, key: fieldName })));
|
|
8689
|
+
h("ez-check", { enabled: !readOnly, label: fieldLabel, mode: switchMode ? "switch" : "regular", "data-field-name": fieldName, key: fieldName })));
|
|
8676
8690
|
}
|
|
8677
8691
|
|
|
8678
|
-
const buildComboBox = ({ name, label }, properties) => {
|
|
8692
|
+
const buildComboBox = ({ name, label, readOnly }, properties) => {
|
|
8679
8693
|
const prop = properties === null || properties === void 0 ? void 0 : properties.options;
|
|
8680
8694
|
let options;
|
|
8681
8695
|
if (typeof prop === "string") {
|
|
@@ -8686,39 +8700,39 @@ const buildComboBox = ({ name, label }, properties) => {
|
|
|
8686
8700
|
options = prop;
|
|
8687
8701
|
}
|
|
8688
8702
|
return (h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
|
|
8689
|
-
h("ez-combo-box", { label: label, "data-field-name": name, key: name, options: options })));
|
|
8703
|
+
h("ez-combo-box", { enabled: !readOnly, label: label, "data-field-name": name, key: name, options: options })));
|
|
8690
8704
|
};
|
|
8691
8705
|
|
|
8692
|
-
const buildSearch = ({ name, label }) => {
|
|
8706
|
+
const buildSearch = ({ name, label, readOnly }) => {
|
|
8693
8707
|
return (h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
|
|
8694
|
-
h("ez-search", { label: label, optionLoader: (_argument) => { }, "data-field-name": name, key: name })));
|
|
8708
|
+
h("ez-search", { enabled: !readOnly, label: label, optionLoader: (_argument) => { }, "data-field-name": name, key: name })));
|
|
8695
8709
|
};
|
|
8696
8710
|
|
|
8697
|
-
const buildFile = ({ name, label }) => {
|
|
8711
|
+
const buildFile = ({ name, label, readOnly }) => {
|
|
8698
8712
|
return (h("div", { class: "col col--sd-12 padding--small" },
|
|
8699
|
-
h("ez-upload", { label: label, urlUpload: "", requestHeaders: "", maxFiles: 10, "data-field-name": name, key: name })));
|
|
8713
|
+
h("ez-upload", { enabled: !readOnly, label: label, urlUpload: "", requestHeaders: "", maxFiles: 10, "data-field-name": name, key: name })));
|
|
8700
8714
|
};
|
|
8701
8715
|
|
|
8702
|
-
const buildDate = ({ name, label }) => {
|
|
8716
|
+
const buildDate = ({ name, label, readOnly }) => {
|
|
8703
8717
|
return (h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
|
|
8704
|
-
h("ez-date-input", { label: label, "data-field-name": name, key: name })));
|
|
8718
|
+
h("ez-date-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
|
|
8705
8719
|
};
|
|
8706
8720
|
const buildTimeDate = ({ name, label }) => {
|
|
8707
8721
|
return (h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
|
|
8708
8722
|
h("ez-date-time-input", { label: label, "data-field-name": name, key: name })));
|
|
8709
8723
|
};
|
|
8710
8724
|
|
|
8711
|
-
const buildDecimal = ({ name, label }, properties) => {
|
|
8725
|
+
const buildDecimal = ({ name, label, readOnly }, properties) => {
|
|
8712
8726
|
const precision = Number((properties === null || properties === void 0 ? void 0 : properties.precision) || 2);
|
|
8713
8727
|
const prettyPrecision = Number((properties === null || properties === void 0 ? void 0 : properties.prettyPrecision) || precision);
|
|
8714
|
-
return buildNumeric(name, label, precision, prettyPrecision);
|
|
8728
|
+
return buildNumeric(name, label, readOnly, precision, prettyPrecision);
|
|
8715
8729
|
};
|
|
8716
|
-
const buildInteger = ({ name, label }) => {
|
|
8717
|
-
return buildNumeric(name, label, 0, 0);
|
|
8730
|
+
const buildInteger = ({ name, label, readOnly }) => {
|
|
8731
|
+
return buildNumeric(name, label, readOnly, 0, 0);
|
|
8718
8732
|
};
|
|
8719
|
-
function buildNumeric(fieldName, fieldLabel, precision, prettyPrecision) {
|
|
8733
|
+
function buildNumeric(fieldName, fieldLabel, readOnly, precision, prettyPrecision) {
|
|
8720
8734
|
return (h("div", { class: "col col--sd-12 col--tb-3 padding--small" },
|
|
8721
|
-
h("ez-number-input", { label: fieldLabel, precision: precision, prettyPrecision: prettyPrecision, "data-field-name": fieldName, key: fieldName })));
|
|
8735
|
+
h("ez-number-input", { enabled: !readOnly, label: fieldLabel, precision: precision, prettyPrecision: prettyPrecision, "data-field-name": fieldName, key: fieldName })));
|
|
8722
8736
|
}
|
|
8723
8737
|
|
|
8724
8738
|
const uiBuilders = new Map();
|
|
@@ -8738,7 +8752,6 @@ const buildField = (field) => {
|
|
|
8738
8752
|
let builder;
|
|
8739
8753
|
let props;
|
|
8740
8754
|
if (descriptor) {
|
|
8741
|
-
builder = uiBuilders.get(descriptor.userInterface);
|
|
8742
8755
|
if (!config.label) {
|
|
8743
8756
|
config.label = descriptor.label;
|
|
8744
8757
|
}
|
|
@@ -8748,7 +8761,11 @@ const buildField = (field) => {
|
|
|
8748
8761
|
if (config.required === undefined) {
|
|
8749
8762
|
config.required = descriptor.required;
|
|
8750
8763
|
}
|
|
8764
|
+
if (config.readOnly === undefined) {
|
|
8765
|
+
config.readOnly = descriptor.readOnly;
|
|
8766
|
+
}
|
|
8751
8767
|
props = descriptor.properties;
|
|
8768
|
+
builder = uiBuilders.get(descriptor.userInterface);
|
|
8752
8769
|
}
|
|
8753
8770
|
if (config.required) {
|
|
8754
8771
|
config.label = `* ${config.label} (obrigatório)`;
|
|
@@ -8817,6 +8834,10 @@ const buildFromDataUnit = (dataUnit) => {
|
|
|
8817
8834
|
}
|
|
8818
8835
|
return metadata;
|
|
8819
8836
|
};
|
|
8837
|
+
function getTabConfig(tab, sheets) {
|
|
8838
|
+
const tabConfig = (typeof tab === "string" ? Array.from(sheets.keys()).find(t => t.label === tab) : tab);
|
|
8839
|
+
return tabConfig || { label: tab, visible: true };
|
|
8840
|
+
}
|
|
8820
8841
|
const buildFromConfig = (fields, dataUnit) => {
|
|
8821
8842
|
const sheets = new Map();
|
|
8822
8843
|
const requiredFields = [];
|
|
@@ -8824,12 +8845,13 @@ const buildFromConfig = (fields, dataUnit) => {
|
|
|
8824
8845
|
fields.forEach(config => {
|
|
8825
8846
|
var _a;
|
|
8826
8847
|
if (config.visible !== false) {
|
|
8827
|
-
const
|
|
8848
|
+
const tabConfig = getTabConfig(config.tab || "Geral", sheets);
|
|
8828
8849
|
const descriptor = dataUnit.getField(config.name);
|
|
8829
|
-
if (descriptor) {
|
|
8830
|
-
if (!sheets.has(
|
|
8831
|
-
sheets.set(
|
|
8850
|
+
if (descriptor && tabConfig.visible) {
|
|
8851
|
+
if (!sheets.has(tabConfig)) {
|
|
8852
|
+
sheets.set(tabConfig, new Map());
|
|
8832
8853
|
}
|
|
8854
|
+
const tabItens = sheets.get(tabConfig);
|
|
8833
8855
|
const isRequired = config.required === undefined ? descriptor.required : config.required;
|
|
8834
8856
|
if (isRequired) {
|
|
8835
8857
|
requiredFields.push(config.name);
|
|
@@ -8838,7 +8860,6 @@ const buildFromConfig = (fields, dataUnit) => {
|
|
|
8838
8860
|
if (clearOnCopy) {
|
|
8839
8861
|
cleanOnCopyFields.push(config.name);
|
|
8840
8862
|
}
|
|
8841
|
-
const tabItens = sheets.get(tab);
|
|
8842
8863
|
const fieldMD = { config, descriptor };
|
|
8843
8864
|
const group = config.group;
|
|
8844
8865
|
if (group) {
|
|
@@ -8857,10 +8878,12 @@ const buildFromConfig = (fields, dataUnit) => {
|
|
|
8857
8878
|
}
|
|
8858
8879
|
});
|
|
8859
8880
|
const metadata = new FormMetadata();
|
|
8860
|
-
sheets.
|
|
8881
|
+
Array.from(sheets.entries())
|
|
8882
|
+
.sort((a, b) => (a[0].order || 10000) - (b[0].order || 10000))
|
|
8883
|
+
.forEach(([key, value]) => {
|
|
8861
8884
|
metadata.addSheet({
|
|
8862
|
-
label: key,
|
|
8863
|
-
name: key,
|
|
8885
|
+
label: key.label,
|
|
8886
|
+
name: key.label,
|
|
8864
8887
|
items: Array.from(value.values()),
|
|
8865
8888
|
requiredFields,
|
|
8866
8889
|
cleanOnCopyFields
|
|
@@ -119559,8 +119582,9 @@ class AgGridController {
|
|
|
119559
119582
|
headerName: "",
|
|
119560
119583
|
checkboxSelection: true,
|
|
119561
119584
|
headerCheckboxSelection: false,
|
|
119562
|
-
width:
|
|
119563
|
-
suppressMovable: true
|
|
119585
|
+
width: 24,
|
|
119586
|
+
suppressMovable: true,
|
|
119587
|
+
suppressMenu: true
|
|
119564
119588
|
});
|
|
119565
119589
|
}
|
|
119566
119590
|
cols.forEach(c => {
|
|
@@ -119754,7 +119778,7 @@ class DataUnitBridge {
|
|
|
119754
119778
|
}
|
|
119755
119779
|
}
|
|
119756
119780
|
|
|
119757
|
-
const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100%;--ezgrid__header--background-color:var(--background--xlight, #FFF)}.grid-header.sc-ez-grid{display:flex;justify-content:space-between;align-items:center;background-color:var(--ezgrid__header--background-color)}.grid-header__container.sc-ez-grid{display:flex;align-items:center}";
|
|
119781
|
+
const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100%;--ezgrid__header--background-color:var(--background--xlight, #FFF)}.grid-header.sc-ez-grid{display:flex;justify-content:space-between;align-items:center;background-color:var(--ezgrid__header--background-color, #FFF);z-index:var(--visible)}.grid__container.sc-ez-grid{box-shadow:0 0 16px 0 rgb(0 38 111 / 12%);padding-top:15px;margin-top:-12px;background-color:var(--ezgrid__header--background-color)}.grid-header__container.sc-ez-grid{display:flex;align-items:center}";
|
|
119758
119782
|
|
|
119759
119783
|
let EzGrid$1 = class extends HTMLElement$1 {
|
|
119760
119784
|
constructor() {
|
|
@@ -119849,8 +119873,8 @@ let EzGrid$1 = class extends HTMLElement$1 {
|
|
|
119849
119873
|
}
|
|
119850
119874
|
return [
|
|
119851
119875
|
h("div", { class: "text text--primary text--medium margin-right--medium" }, h("strong", { class: "text text--primary text--medium" }, `${this._navigationFirstRow}-${this._navigationLastRow}`), ` de ${this._navigationTotalRows}`),
|
|
119852
|
-
h("ez-button", { size: "small", iconName: "chevron-left", class: "
|
|
119853
|
-
h("ez-button", { size: "small", iconName: "chevron-right", class: "
|
|
119876
|
+
h("ez-button", { size: "small", iconName: "chevron-left", class: "margin-right--medium", mode: "icon", enabled: this._navigationHasPrevious, onClick: () => this._gridController.previousPage(), label: "P\u00E1gina anterior" }),
|
|
119877
|
+
h("ez-button", { size: "small", iconName: "chevron-right", class: "margin-right--medium", mode: "icon", enabled: this._navigationHasNext, onClick: () => this._gridController.nextPage(), label: "Pr\u00F3xima P\u00E1gina" })
|
|
119854
119878
|
];
|
|
119855
119879
|
}
|
|
119856
119880
|
applyConfig(cols) {
|
|
@@ -119866,7 +119890,7 @@ let EzGrid$1 = class extends HTMLElement$1 {
|
|
|
119866
119890
|
this._popUpVisible = true;
|
|
119867
119891
|
}
|
|
119868
119892
|
render() {
|
|
119869
|
-
return (h(Host, null, h("div", { class: "box box--shadow padding--medium grid-header
|
|
119893
|
+
return (h(Host, null, h("div", { class: "box box--shadow padding--medium grid-header" }, h("div", { class: "grid-header__container" }, h("slot", { name: "leftButtons" })), h("div", { class: "grid-header__container" }, this.getPaginationControl(), h("ez-button", { size: "small", iconName: "settings", class: "button--secondary", mode: "icon", onClick: () => { this.openConfig(); } }))), h("div", { class: "grid__container ag-sankhya-theme", ref: elem => this._container = elem }), h("div", { class: "grid__footer" }), h("ez-modal", { modalSize: "small", closeEsc: true, closeOutsideClick: true, opened: this._popUpVisible, onEzCloseModal: () => this._popUpVisible = false }, h("grid-config", { ref: ref => this._gridConfig = ref, selectedTab: "Colunas", onConfigFinish: evt => this.applyConfig(evt.detail), onConfigCancel: _evt => this.closeConfig() }))));
|
|
119870
119894
|
}
|
|
119871
119895
|
static get assetsDirs() { return ["../assets"]; }
|
|
119872
119896
|
static get style() { return ezGridCss; }
|
|
@@ -120066,7 +120090,7 @@ let EzList$1 = class extends HTMLElement$1 {
|
|
|
120066
120090
|
newList.forEach(groupItem => {
|
|
120067
120091
|
groupItem.items.forEach(item => {
|
|
120068
120092
|
if (item.label == selectedItem.label) {
|
|
120069
|
-
item.selected =
|
|
120093
|
+
item.selected = true;
|
|
120070
120094
|
}
|
|
120071
120095
|
else {
|
|
120072
120096
|
item.selected = false;
|
|
@@ -120079,7 +120103,7 @@ let EzList$1 = class extends HTMLElement$1 {
|
|
|
120079
120103
|
let newList = [...this._listItems];
|
|
120080
120104
|
newList.forEach(item => {
|
|
120081
120105
|
if (item.label === selectedItem.label) {
|
|
120082
|
-
item.selected =
|
|
120106
|
+
item.selected = true;
|
|
120083
120107
|
}
|
|
120084
120108
|
else {
|
|
120085
120109
|
item.selected = false;
|
|
@@ -121134,7 +121158,7 @@ let EzTextArea$1 = class extends HTMLElement$1 {
|
|
|
121134
121158
|
static get style() { return ezTextAreaCss; }
|
|
121135
121159
|
};
|
|
121136
121160
|
|
|
121137
|
-
const ezTextInputCss = ":host{--ez-text-input--height:42px;--ez-text-input--width:100%;--ez-text-input__icon--width:48px;--ez-text-input--border-radius:var(--border--radius-medium, 12px);--ez-text-input--font-size:var(--text--medium, 14px);--ez-text-input--font-family:var(--font-pattern, Arial);--ez-text-input--font-weight:var(--text-weight--
|
|
121161
|
+
const ezTextInputCss = ":host{--ez-text-input--height:42px;--ez-text-input--width:100%;--ez-text-input__icon--width:48px;--ez-text-input--border-radius:var(--border--radius-medium, 12px);--ez-text-input--font-size:var(--text--medium, 14px);--ez-text-input--font-family:var(--font-pattern, Arial);--ez-text-input--font-weight:var(--text-weight--medium, 400);--ez-text-input--color:var(--title--primary, #000);--ez-text-input__input--background-color:var(--background--medium, #e0e0e0);--ez-text-input__input--border:var(--border--medium, 2px solid);--ez-text-input__input--border-color:var(--ez-text-input__input--background-color);--ez-text-input__input--focus--border-color:var(--color--primary, #008561);--ez-text-input__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-text-input__input--disabled--color:var(--text--disable, #AFB6C0);--ez-text-input__input--error--border-color:#CC2936;--ez-text-input__message_box--font-size:var(--text--small, 12px);--ez-text-input__message_box--info--color:var(--color--success, #22085d);--ez-text-input__message_box--error--color:var(--color--error, #FF0000);--ez-text-input__label--floating--top:6px;--ez-text-input__label--padding-top:12px;--ez-text-input__label--padding-left:14px;--ez-text-input__label--padding-right:12px;display:flex;flex-wrap:wrap;position:relative;width:var(--ez-text-input--width)}input{width:100%;box-sizing:border-box;padding:var(--space--medium, 6px);font-weight:var(--text-weight--large, 600);height:var(--ez-text-input--height);border-radius:var(--ez-text-input--border-radius);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);border:var(--ez-text-input__input--border);border-color:var(--ez-text-input__input--border-color);background-color:var(--ez-text-input__input--background-color);color:var(--ez-text-input--color)}input:disabled{background-color:var(--ez-text-input__input--disabled--background-color);color:var(--ez-text-input__input--disabled--color)}input:focus{outline:none;border-color:var(--ez-text-input__input--focus--border-color)}input.icon--left{padding-left:var(--ez-text-input__icon--width)}input.icon--right{padding-right:var(--ez-text-input__icon--width)}input.hasError{color:var(--ez-text-input--color);border-color:var(--ez-text-input__input--error--border-color)}input.text--right{text-align:right}.message-box{display:flex;min-height:16px;min-width:100%;margin-top:2px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input__message_box--font-size);color:var(--ez-text-input__message_box--info--color)}.hasError{color:var(--ez-text-input__message_box--error--color)}.input__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--ez-text-input__label--padding-right));left:var(--ez-text-input--space--medium);font-family:var(--ez-text-input--font-family);font-size:var(--ez-text-input--font-size);font-weight:var(--ez-text-input--font-weight);color:var(--ez-text-input--color);top:var(--ez-text-input__label--padding-top);left:var(--ez-text-input__label--padding-left);padding-right:var(--ez-text-input__label--padding-right)}.input__label--floated{font-family:var(--ez-text-input--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--ez-text-input__label--floating--top)}.input__label--disabled{color:var(--ez-text-input__input--disabled--color)}.input__label--left{text-align:left;left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--right{right:var(--ez-text-input__icon--width);width:calc(100% - var(--ez-text-input__icon--width))}.input__label--left.input__label--right{left:calc(var(--ez-text-input__icon--width) + 2px);width:calc(100% - var(--ez-text-input__icon--width) * 2)}.input--with--label{padding-bottom:0}";
|
|
121138
121162
|
|
|
121139
121163
|
let EzTextInput$1 = class extends HTMLElement$1 {
|
|
121140
121164
|
constructor() {
|
|
@@ -121146,6 +121170,10 @@ let EzTextInput$1 = class extends HTMLElement$1 {
|
|
|
121146
121170
|
* Deixa o campo disponível ou não para digitação.
|
|
121147
121171
|
*/
|
|
121148
121172
|
this.enabled = true;
|
|
121173
|
+
/**
|
|
121174
|
+
* Permite exibir a mensagem de erro.
|
|
121175
|
+
*/
|
|
121176
|
+
this.canShowError = true;
|
|
121149
121177
|
}
|
|
121150
121178
|
showError() {
|
|
121151
121179
|
const hasError = typeof this.errorMessage === "string" && this.errorMessage !== "";
|
|
@@ -121313,7 +121341,8 @@ let EzTextInput$1 = class extends HTMLElement$1 {
|
|
|
121313
121341
|
render() {
|
|
121314
121342
|
return (h(Host, null, h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label ?
|
|
121315
121343
|
h("label", { ref: (el) => this._labelElem = el, class: this.enabled ? "input__label" : "input__label input__label--disabled", onClick: () => this._inputElem.focus(), title: this.label }, this.label)
|
|
121316
|
-
: null, h("input", { onFocus: () => this.doFocus(), ref: (el) => this._inputElem = el, type: "text", value: this.value, disabled: !this.enabled, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); } }), h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }),
|
|
121344
|
+
: null, h("input", { onFocus: () => this.doFocus(), ref: (el) => this._inputElem = el, type: "text", value: this.value, disabled: !this.enabled, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); } }), h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.canShowError &&
|
|
121345
|
+
h("span", { class: "message-box", ref: (el) => this._messageBoxElem = el, title: this.errorMessage }, this.errorMessage)));
|
|
121317
121346
|
}
|
|
121318
121347
|
get _hostElement() { return this; }
|
|
121319
121348
|
static get watchers() { return {
|
|
@@ -121826,7 +121855,7 @@ let EzUpload$1 = class extends HTMLElement$1 {
|
|
|
121826
121855
|
static get style() { return ezUploadCss; }
|
|
121827
121856
|
};
|
|
121828
121857
|
|
|
121829
|
-
const gridConfigCss = ".sc-grid-config-h{--ez-grid-config__footer--padding-top:var(--space--medium, 12px);--ez-grid-config__main--padding-right:var(--space--medium, 12px);--ez-grid-config__tabselector-container--padding:var(--space--medium, 12px);--ez-grid-config__button-close--padding-left:var(--space--medium, 12px);--ez-grid-config__subtitle--font-family:var(--font-pattern, \"Sora\");--ez-grid-config__title--font-family:var(--font-pattern, \"Sora\");--ez-grid-config__title--font-weight:var(--text-weight--large,
|
|
121858
|
+
const gridConfigCss = ".sc-grid-config-h{--ez-grid-config__footer--padding-top:var(--space--medium, 12px);--ez-grid-config__main--padding-right:var(--space--medium, 12px);--ez-grid-config__tabselector-container--padding:var(--space--medium, 12px);--ez-grid-config__button-close--padding-left:var(--space--medium, 12px);--ez-grid-config__subtitle--font-family:var(--font-pattern, \"Sora\");--ez-grid-config__title--font-family:var(--font-pattern, \"Sora\");--ez-grid-config__title--font-weight:var(--text-weight--large, 700);--ez-grid-config__subtitle--font-size:var(--text--medium, 14px);--ez-grid-config__scrollbar--width:var(--space--medium, 12px);--ez-grid-config__main__scrollbar--background-color:var(--text--primary, #626e82);--ez-grid-config__main__scrollbar--border-radius:var(--border--radius-medium, 12px);--ez-grid__group--font-family:var(--font-pattern, \"Sora\");--ez-grid__group--font-size:var(--text--medium, 14px);--ez-grid__group--font-weight:var(--text-weight--large, 600);--ez-grid__group--padding-bottom:var(--space-small, 6px);display:grid;grid-template-rows:auto 1fr auto;max-height:100%;width:100%}.padding-right--medium.sc-grid-config{padding-right:var(--space--medium)}ez-list.sc-grid-config{height:100%}.heigth-calc.sc-grid-config{max-height:calc(100% - 24px)}.grid-config__footer.sc-grid-config{padding-top:var(--ez-grid-config__footer--padding-top);display:flex;justify-content:flex-end;width:100%}.hidden.sc-grid-config{display:none}.grid-config__main.sc-grid-config{padding-right:var(--ez-grid-config__main--padding-right);overflow-y:auto}.tabselector-container.sc-grid-config{padding:var(--ez-grid-config__tabselector-container--padding) 0}.button-close.sc-grid-config{padding-left:var(--ez-grid-config__button-close--padding-left)}.title-container.sc-grid-config{display:flex;justify-content:space-between;align-items:center;width:359px}.subtitle.sc-grid-config{font-family:var(--ez-grid-config__subtitle--font-family);font-size:var(--ez-grid-config__subtitle--font-size);color:var(--text--primary)}.title.sc-grid-config{display:flex;margin:0;font-family:var(--ez-grid-config__title--font-family);font-size:var(--title--large);font-weight:var(--ez-grid-config__title--font-weight);line-height:normal;letter-spacing:0em;text-align:left;color:var(--title--primary)}.grid-config__main.sc-grid-config::-webkit-scrollbar-track{background-color:#f0f2f5}.grid-config__main.sc-grid-config::-webkit-scrollbar-thumb{background-color:var(--ez-grid-config__main__scrollbar--background-color);border-radius:var(--ez-grid-config__main__scrollbar--border-radius)}.grid-config__main.sc-grid-config::-webkit-scrollbar{background-color:#f0f2f5;width:var(--ez-grid-config__scrollbar--width);max-width:var(--ez-grid-config__scrollbar--width);min-width:var(--ez-grid-config__scrollbar--width)}.group-name.sc-grid-config{font-family:var(--ez-grid__group--font-family);font-size:var(--ez-grid__group--font-size);font-weight:var(--ez-grid__group--font-weight);padding-bottom:var(--ez-grid__group--padding-bottom)}";
|
|
121830
121859
|
|
|
121831
121860
|
let GridConfig$1 = class extends HTMLElement$1 {
|
|
121832
121861
|
constructor() {
|
|
@@ -121894,7 +121923,7 @@ let GridConfig$1 = class extends HTMLElement$1 {
|
|
|
121894
121923
|
let newList = [...this.columns];
|
|
121895
121924
|
let newItem = newList.find(item => item.label === updatedItem.label);
|
|
121896
121925
|
if (newItem) {
|
|
121897
|
-
newItem.sort = sortOrder;
|
|
121926
|
+
newItem.sort = sortOrder.value;
|
|
121898
121927
|
}
|
|
121899
121928
|
this.columns = newList;
|
|
121900
121929
|
}
|
|
@@ -121951,7 +121980,7 @@ let GridConfig$1 = class extends HTMLElement$1 {
|
|
|
121951
121980
|
searchingText = (_a = evt.currentTarget) === null || _a === void 0 ? void 0 : _a.value;
|
|
121952
121981
|
}
|
|
121953
121982
|
let newSelected = -1;
|
|
121954
|
-
if (this.selectedTab === "Ordenação") {
|
|
121983
|
+
if (this.selectedTab === "Ordenação das linhas") {
|
|
121955
121984
|
if (searchingText) {
|
|
121956
121985
|
const matchedIndexes = [];
|
|
121957
121986
|
let orderListDatasource;
|
|
@@ -122039,7 +122068,7 @@ let GridConfig$1 = class extends HTMLElement$1 {
|
|
|
122039
122068
|
handleTabChange(ev) {
|
|
122040
122069
|
var _a;
|
|
122041
122070
|
if ((_a = ev === null || ev === void 0 ? void 0 : ev.target) === null || _a === void 0 ? void 0 : _a.selectedTab) {
|
|
122042
|
-
if (ev.target.selectedTab === "Ordenação") {
|
|
122071
|
+
if (ev.target.selectedTab === "Ordenação das linhas") {
|
|
122043
122072
|
this._columnListHistory = this._columnList.dataSource;
|
|
122044
122073
|
this.createOrderList();
|
|
122045
122074
|
}
|
|
@@ -122069,13 +122098,13 @@ let GridConfig$1 = class extends HTMLElement$1 {
|
|
|
122069
122098
|
}
|
|
122070
122099
|
}
|
|
122071
122100
|
render() {
|
|
122072
|
-
return (h(Host, null, h("div", { class: "grid-config__header" }, h("div", { class: "title-container" }, h("div", { class: "" }, h("label", { class: "title" }, "Configura\u00E7\u00E3o da Grade"), h("label", { class: "subtitle" }, "Defina visibilidade e ordem das colunas.")), h("div", { class: "button-close" }, h("ez-button", { mode: 'icon', image: getSpritePath("close"), size: 'medium', onClick: () => this.closeConfig() }))), h("div", { class: "tabselector-container" }, h("ez-tabselector", { selectedTab: this.selectedTab, selectedIndex: 0, onEzChange: (ev) => { this.handleTabChange(ev); }, tabs: 'Colunas, Ordena\u00E7\u00E3o' })), h("div", null, h("ez-text-input", { ref: (el) => this._searchElement = el, label: "Localizar coluna", onKeyUp: evt => this.locateColumn(evt) }, h("ez-icon", { slot: "leftIcon", size: "medium", href: getSpritePath("search") })))), h("div", { class: "grid-config__main" }, h("ez-list", { ref: (el) => this._columnList = el, class: this.selectedTab === "Colunas" ? "" : "hidden", dataSource: this._columListItems, onEzChange: ev => this.handleColumnListChange(ev), ezDraggable: true, ezSelectable: true, itemSlotBuilder: (item, group) => this.buildColumnListSlot(item, group), useGroups: true }), h("ez-list", { ref: (el) => this._orderList = el, class: this.selectedTab === "Ordenação" ? "" : "hidden", dataSource: this._orderListItems, ezSelectable: true, itemSlotBuilder: (item) => this.buildOrderListSlot(item) })), h("div", { class: "grid-config__footer" }, h("ez-button", { class: "padding-right--medium", label: "Cancelar", onClick: () => this.closeConfig() }), h("ez-button", { label: "Concluir", class: "button--primary", onClick: () => this.finish() }))));
|
|
122101
|
+
return (h(Host, null, h("div", { class: "grid-config__header" }, h("div", { class: "title-container" }, h("div", { class: "" }, h("label", { class: "title" }, "Configura\u00E7\u00E3o da Grade"), h("label", { class: "subtitle" }, "Defina visibilidade e ordem das colunas.")), h("div", { class: "button-close" }, h("ez-button", { mode: 'icon', image: getSpritePath("close"), size: 'medium', onClick: () => this.closeConfig() }))), h("div", { class: "tabselector-container" }, h("ez-tabselector", { selectedTab: this.selectedTab, selectedIndex: 0, onEzChange: (ev) => { this.handleTabChange(ev); }, tabs: 'Colunas, Ordena\u00E7\u00E3o das linhas' })), h("div", null, h("ez-text-input", { ref: (el) => this._searchElement = el, label: "Localizar coluna", onKeyUp: evt => this.locateColumn(evt) }, h("ez-icon", { slot: "leftIcon", size: "medium", href: getSpritePath("search") })))), h("div", { class: "grid-config__main" }, h("ez-list", { ref: (el) => this._columnList = el, class: this.selectedTab === "Colunas" ? "" : "hidden", dataSource: this._columListItems, onEzChange: ev => this.handleColumnListChange(ev), ezDraggable: true, ezSelectable: true, itemSlotBuilder: (item, group) => this.buildColumnListSlot(item, group), useGroups: true }), h("div", { class: this.selectedTab === "Ordenação das linhas" ? "group-name" : "hidden" }, "Sequ\u00EAncia da ordena\u00E7\u00E3o"), h("ez-list", { ref: (el) => this._orderList = el, class: this.selectedTab === "Ordenação das linhas" ? "heigth-calc" : "hidden", dataSource: this._orderListItems, ezSelectable: true, ezDraggable: true, itemSlotBuilder: (item) => this.buildOrderListSlot(item) })), h("div", { class: "grid-config__footer" }, h("ez-button", { class: "padding-right--medium", label: "Cancelar", onClick: () => this.closeConfig() }), h("ez-button", { label: "Concluir", class: "button--primary", onClick: () => this.finish() }))));
|
|
122073
122102
|
}
|
|
122074
122103
|
static get assetsDirs() { return ["../assets"]; }
|
|
122075
122104
|
static get style() { return gridConfigCss; }
|
|
122076
122105
|
};
|
|
122077
122106
|
|
|
122078
|
-
const selectBoxCss = "
|
|
122107
|
+
const selectBoxCss = "ez-combo-box{width:100px}.grid-config-combo{--ez-text-input--height:28px;--ez-text-input__input--background-color:#fff;--ez-text-input__input--border-color:#dce0e8}";
|
|
122079
122108
|
|
|
122080
122109
|
let SelectBox$1 = class extends HTMLElement$1 {
|
|
122081
122110
|
constructor() {
|
|
@@ -122083,22 +122112,10 @@ let SelectBox$1 = class extends HTMLElement$1 {
|
|
|
122083
122112
|
this.__registerHost();
|
|
122084
122113
|
this.__attachShadow();
|
|
122085
122114
|
this.ezChange = createEvent(this, "ezChange", 7);
|
|
122086
|
-
|
|
122087
|
-
changeSelection() {
|
|
122088
|
-
this.ezChange.emit(this._selectElem.value);
|
|
122089
|
-
}
|
|
122090
|
-
componentDidRender() {
|
|
122091
|
-
if (this._selectElem) {
|
|
122092
|
-
if (this.selectedOption) {
|
|
122093
|
-
this._selectElem.value = this.selectedOption;
|
|
122094
|
-
}
|
|
122095
|
-
else {
|
|
122096
|
-
this._selectElem.value = "na";
|
|
122097
|
-
}
|
|
122098
|
-
}
|
|
122115
|
+
this.selectedOption = { value: "na", label: "N/A" };
|
|
122099
122116
|
}
|
|
122100
122117
|
render() {
|
|
122101
|
-
return (h("
|
|
122118
|
+
return (h("ez-combo-box", { class: "grid-config-combo inverted", label: "", value: this.selectedOption, enabled: true, canShowError: false, suppressEmptyOption: true }, h("option", { value: "na" }, "N/A"), h("option", { value: "asc" }, "A-Z"), h("option", { value: "desc" }, "Z-A")));
|
|
122102
122119
|
}
|
|
122103
122120
|
static get assetsDirs() { return ["../assets"]; }
|
|
122104
122121
|
static get style() { return selectBoxCss; }
|
|
@@ -122161,7 +122178,7 @@ let TestDu$1 = class extends HTMLElement$1 {
|
|
|
122161
122178
|
]));
|
|
122162
122179
|
}
|
|
122163
122180
|
render() {
|
|
122164
|
-
return (h("ez-
|
|
122181
|
+
return (h("ez-form", { dataUnit: this.dataUnit }));
|
|
122165
122182
|
}
|
|
122166
122183
|
static get style() { return testDuCss; }
|
|
122167
122184
|
};
|
|
@@ -122172,7 +122189,7 @@ const EzButton = /*@__PURE__*/proxyCustomElement(EzButton$1, [1,"ez-button",{"la
|
|
|
122172
122189
|
const EzCalendar = /*@__PURE__*/proxyCustomElement(EzCalendar$1, [1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"]}]);
|
|
122173
122190
|
const EzCheck = /*@__PURE__*/proxyCustomElement(EzCheck$1, [1,"ez-check",{"label":[513],"value":[1540],"enabled":[516],"mode":[513]}]);
|
|
122174
122191
|
const EzCollapsibleBox = /*@__PURE__*/proxyCustomElement(EzCollapsibleBox$1, [1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"]}]);
|
|
122175
|
-
const EzComboBox = /*@__PURE__*/proxyCustomElement(EzComboBox$1, [1,"ez-combo-box",{"value":[1537],"label":[513],"enabled":[516],"options":[1040],"errorMessage":[1537,"error-message"],"searchMode":[4,"search-mode"],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"optionLoader":[16],"_preSelection":[32],"_visibleOptions":[32]}]);
|
|
122192
|
+
const EzComboBox = /*@__PURE__*/proxyCustomElement(EzComboBox$1, [1,"ez-combo-box",{"value":[1537],"label":[513],"enabled":[516],"options":[1040],"errorMessage":[1537,"error-message"],"searchMode":[4,"search-mode"],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"],"optionLoader":[16],"suppressEmptyOption":[4,"suppress-empty-option"],"canShowError":[516,"can-show-error"],"_preSelection":[32],"_visibleOptions":[32]}]);
|
|
122176
122193
|
const EzDateInput = /*@__PURE__*/proxyCustomElement(EzDateInput$1, [1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"]}]);
|
|
122177
122194
|
const EzDateTimeInput = /*@__PURE__*/proxyCustomElement(EzDateTimeInput$1, [1,"ez-date-time-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"]}]);
|
|
122178
122195
|
const EzDialog = /*@__PURE__*/proxyCustomElement(EzDialog$1, [1,"ez-dialog",{"confirm":[1028],"critical":[1028],"message":[1025],"opened":[1540],"personalizedIconPath":[1025,"personalized-icon-path"],"ezTitle":[1025,"ez-title"]}]);
|
|
@@ -122188,7 +122205,7 @@ const EzPopup = /*@__PURE__*/proxyCustomElement(EzPopup$1, [1,"ez-popup",{"size"
|
|
|
122188
122205
|
const EzSearch = /*@__PURE__*/proxyCustomElement(EzSearch$1, [1,"ez-search",{"value":[1537],"label":[1537],"enabled":[1540],"errorMessage":[1537,"error-message"],"optionLoader":[16],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"]}]);
|
|
122189
122206
|
const EzTabselector = /*@__PURE__*/proxyCustomElement(EzTabselector$1, [1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}]);
|
|
122190
122207
|
const EzTextArea = /*@__PURE__*/proxyCustomElement(EzTextArea$1, [1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"rows":[1538]}]);
|
|
122191
|
-
const EzTextInput = /*@__PURE__*/proxyCustomElement(EzTextInput$1, [1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"restrict":[1]}]);
|
|
122208
|
+
const EzTextInput = /*@__PURE__*/proxyCustomElement(EzTextInput$1, [1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"canShowError":[516,"can-show-error"],"restrict":[1]}]);
|
|
122192
122209
|
const EzTimeInput = /*@__PURE__*/proxyCustomElement(EzTimeInput$1, [1,"ez-time-input",{"label":[513],"viewValue":[1537,"view-value"],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"]}]);
|
|
122193
122210
|
const EzToast = /*@__PURE__*/proxyCustomElement(EzToast$1, [1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"]}]);
|
|
122194
122211
|
const EzUpload = /*@__PURE__*/proxyCustomElement(EzUpload$1, [1,"ez-upload",{"label":[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]}]);
|
|
@@ -3,6 +3,7 @@ class CSSVarsUtils {
|
|
|
3
3
|
if (child) {
|
|
4
4
|
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--background-color');
|
|
5
5
|
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--border-color');
|
|
6
|
+
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input--height');
|
|
6
7
|
}
|
|
7
8
|
}
|
|
8
9
|
static applyIfExists(host, element, varName) {
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Classe com utiliários comuns para Strings.
|
|
3
|
+
*/
|
|
4
|
+
class StringUtils {
|
|
5
|
+
/**
|
|
6
|
+
* Verifica se a string está vazia.
|
|
7
|
+
* Valores null e undefined são considerados como vazio.
|
|
8
|
+
*
|
|
9
|
+
* @param value String para ser validada.
|
|
10
|
+
*/
|
|
11
|
+
static isEmpty(value) {
|
|
12
|
+
if (value == undefined || value === null) {
|
|
13
|
+
return true;
|
|
14
|
+
}
|
|
15
|
+
value = value.toString();
|
|
16
|
+
value = value.trim();
|
|
17
|
+
if (value.length === 0) {
|
|
18
|
+
return true;
|
|
19
|
+
}
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Remove acentos de vogais, substitui Ç por c e retorna a string em caixa alta.
|
|
24
|
+
*
|
|
25
|
+
* @param value String para ser transformada.
|
|
26
|
+
*/
|
|
27
|
+
static replaceAccentuatedChars(text) {
|
|
28
|
+
text = text.toUpperCase();
|
|
29
|
+
text = text.replace(/[À]/, "A");
|
|
30
|
+
text = text.replace(/[Á]/, "A");
|
|
31
|
+
text = text.replace(/[Â]/, "A");
|
|
32
|
+
text = text.replace(/[Ã]/, "A");
|
|
33
|
+
text = text.replace(/[Ä]/, "A");
|
|
34
|
+
text = text.replace(/[È]/, "E");
|
|
35
|
+
text = text.replace(/[É]/, "E");
|
|
36
|
+
text = text.replace(/[Ê]/, "E");
|
|
37
|
+
text = text.replace(/[Ë]/, "E");
|
|
38
|
+
text = text.replace(/[Ì]/, "I");
|
|
39
|
+
text = text.replace(/[Í]/, "I");
|
|
40
|
+
text = text.replace(/[Î]/, "I");
|
|
41
|
+
text = text.replace(/[Ï]/, "I");
|
|
42
|
+
text = text.replace(/[Ò]/, "O");
|
|
43
|
+
text = text.replace(/[Ó]/, "O");
|
|
44
|
+
text = text.replace(/[Ô]/, "O");
|
|
45
|
+
text = text.replace(/[Ö]/, "O");
|
|
46
|
+
text = text.replace(/[Ù]/, "U");
|
|
47
|
+
text = text.replace(/[Ú]/, "U");
|
|
48
|
+
text = text.replace(/[Û]/, "U");
|
|
49
|
+
text = text.replace(/[Ü]/, "U");
|
|
50
|
+
text = text.replace(/[Ç]/, "C");
|
|
51
|
+
return text.replace(/[^a-z0-9]/gi, '');
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { StringUtils as S };
|