@sankhyalabs/ezui 1.1.92 → 1.1.95
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 +2625 -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} +32 -1439
- 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-a92e6d04.js → index-6164b259.js} +18 -18
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ez-check/ez-check.css +3 -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 +10 -7
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +19 -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.css +23 -2
- package/dist/collection/components/ez-list/ez-list.js +138 -68
- 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/collection/utils/index.js +2 -0
- package/dist/custom-elements/index.js +217 -120
- 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 +2608 -0
- package/dist/esm/ez-dialog.entry.js +3 -3
- package/dist/esm/{ez-button_11.entry.js → ez-grid.entry.js} +24 -1421
- 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-4fb1605f.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-0a8018c2.entry.js +1 -0
- package/dist/ezui/{p-552a0b2e.entry.js → p-2617733e.entry.js} +1 -1
- package/dist/ezui/p-2f84ba72.js +1 -0
- package/dist/ezui/{p-d4386e30.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-f0137439.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-7e0281cd.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/controller/ag-grid/AgGridController.d.ts +4 -1
- package/dist/types/components/ez-grid/subcomponents/select-box/select-box.d.ts +6 -4
- package/dist/types/components/ez-list/ez-list.d.ts +11 -6
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +4 -0
- package/dist/types/components.d.ts +28 -4
- package/dist/types/utils/index.d.ts +2 -0
- 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-0094463f.entry.js +0 -1
- package/dist/ezui/p-020f1285.entry.js +0 -1
- package/dist/ezui/p-038fd0cb.entry.js +0 -1
- package/dist/ezui/p-60469339.entry.js +0 -1
- package/dist/ezui/p-7107d7ef.js +0 -1
- package/dist/ezui/p-8b099482.js +0 -1
- package/dist/ezui/p-d22db59d.entry.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) solid var(--text--secondary);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(--border--small) solid var(--color--primary);background-color:var(--ez-switch--checked--background-color)}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)`;
|
|
@@ -8825,10 +8842,11 @@ const buildFromConfig = (fields, dataUnit) => {
|
|
|
8825
8842
|
var _a;
|
|
8826
8843
|
if (config.visible !== false) {
|
|
8827
8844
|
const tab = config.tab || "Geral";
|
|
8845
|
+
const tabConfig = (typeof tab === "string" ? { label: tab, visible: true } : tab);
|
|
8828
8846
|
const descriptor = dataUnit.getField(config.name);
|
|
8829
|
-
if (descriptor) {
|
|
8830
|
-
if (!sheets.has(
|
|
8831
|
-
sheets.set(
|
|
8847
|
+
if (descriptor && tabConfig.visible) {
|
|
8848
|
+
if (!sheets.has(tabConfig)) {
|
|
8849
|
+
sheets.set(tabConfig, new Map());
|
|
8832
8850
|
}
|
|
8833
8851
|
const isRequired = config.required === undefined ? descriptor.required : config.required;
|
|
8834
8852
|
if (isRequired) {
|
|
@@ -8838,7 +8856,7 @@ const buildFromConfig = (fields, dataUnit) => {
|
|
|
8838
8856
|
if (clearOnCopy) {
|
|
8839
8857
|
cleanOnCopyFields.push(config.name);
|
|
8840
8858
|
}
|
|
8841
|
-
const tabItens = sheets.get(
|
|
8859
|
+
const tabItens = sheets.get(tabConfig);
|
|
8842
8860
|
const fieldMD = { config, descriptor };
|
|
8843
8861
|
const group = config.group;
|
|
8844
8862
|
if (group) {
|
|
@@ -8857,10 +8875,12 @@ const buildFromConfig = (fields, dataUnit) => {
|
|
|
8857
8875
|
}
|
|
8858
8876
|
});
|
|
8859
8877
|
const metadata = new FormMetadata();
|
|
8860
|
-
sheets.
|
|
8878
|
+
Array.from(sheets.entries())
|
|
8879
|
+
.sort((a, b) => (a[0].order || 10000) - (b[0].order || 10000))
|
|
8880
|
+
.forEach(([key, value]) => {
|
|
8861
8881
|
metadata.addSheet({
|
|
8862
|
-
label: key,
|
|
8863
|
-
name: key,
|
|
8882
|
+
label: key.label,
|
|
8883
|
+
name: key.label,
|
|
8864
8884
|
items: Array.from(value.values()),
|
|
8865
8885
|
requiredFields,
|
|
8866
8886
|
cleanOnCopyFields
|
|
@@ -119472,6 +119492,19 @@ class AgGridController {
|
|
|
119472
119492
|
this._menuItems = [];
|
|
119473
119493
|
this._enterprise = enterprise;
|
|
119474
119494
|
}
|
|
119495
|
+
getSort() {
|
|
119496
|
+
const sortedColumns = [];
|
|
119497
|
+
this._gridOptions.api.getSortModel().forEach(({ colId, sort }) => {
|
|
119498
|
+
if (sort) {
|
|
119499
|
+
const field = this._dataUnit.getField(colId);
|
|
119500
|
+
const mode = sort === "asc" ? SortMode.ASC : SortMode.DESC;
|
|
119501
|
+
const sortField = field ? { field: field.name, dataType: field.dataType, mode } : { field: colId, dataType: DataType.TEXT, mode };
|
|
119502
|
+
sortedColumns.push(sortField);
|
|
119503
|
+
}
|
|
119504
|
+
});
|
|
119505
|
+
return sortedColumns;
|
|
119506
|
+
}
|
|
119507
|
+
;
|
|
119475
119508
|
initDatagrid(container, options) {
|
|
119476
119509
|
if (this._grid === undefined) {
|
|
119477
119510
|
this._columnStateChangeCallback = options.onColumnStateChange;
|
|
@@ -119482,6 +119515,7 @@ class AgGridController {
|
|
|
119482
119515
|
this._pageSize = options.pageSize;
|
|
119483
119516
|
this._serverURL = options.serverURL;
|
|
119484
119517
|
this._dataUnit = options.dataUnit;
|
|
119518
|
+
this._dataUnit.sortingProvider = this;
|
|
119485
119519
|
this._gridOptions = {
|
|
119486
119520
|
localeText: gridTerms,
|
|
119487
119521
|
rowModelType: "serverSide",
|
|
@@ -119545,8 +119579,9 @@ class AgGridController {
|
|
|
119545
119579
|
headerName: "",
|
|
119546
119580
|
checkboxSelection: true,
|
|
119547
119581
|
headerCheckboxSelection: false,
|
|
119548
|
-
width:
|
|
119549
|
-
suppressMovable: true
|
|
119582
|
+
width: 24,
|
|
119583
|
+
suppressMovable: true,
|
|
119584
|
+
suppressMenu: true
|
|
119550
119585
|
});
|
|
119551
119586
|
}
|
|
119552
119587
|
cols.forEach(c => {
|
|
@@ -119740,7 +119775,7 @@ class DataUnitBridge {
|
|
|
119740
119775
|
}
|
|
119741
119776
|
}
|
|
119742
119777
|
|
|
119743
|
-
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}";
|
|
119778
|
+
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}";
|
|
119744
119779
|
|
|
119745
119780
|
let EzGrid$1 = class extends HTMLElement$1 {
|
|
119746
119781
|
constructor() {
|
|
@@ -119835,8 +119870,8 @@ let EzGrid$1 = class extends HTMLElement$1 {
|
|
|
119835
119870
|
}
|
|
119836
119871
|
return [
|
|
119837
119872
|
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}`),
|
|
119838
|
-
h("ez-button", { size: "small", iconName: "chevron-left", class: "
|
|
119839
|
-
h("ez-button", { size: "small", iconName: "chevron-right", class: "
|
|
119873
|
+
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" }),
|
|
119874
|
+
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" })
|
|
119840
119875
|
];
|
|
119841
119876
|
}
|
|
119842
119877
|
applyConfig(cols) {
|
|
@@ -119852,7 +119887,7 @@ let EzGrid$1 = class extends HTMLElement$1 {
|
|
|
119852
119887
|
this._popUpVisible = true;
|
|
119853
119888
|
}
|
|
119854
119889
|
render() {
|
|
119855
|
-
return (h(Host, null, h("div", { class: "box box--shadow padding--medium grid-header
|
|
119890
|
+
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() }))));
|
|
119856
119891
|
}
|
|
119857
119892
|
static get assetsDirs() { return ["../assets"]; }
|
|
119858
119893
|
static get style() { return ezGridCss; }
|
|
@@ -119992,7 +120027,7 @@ let EzLabelChip$1 = class extends HTMLElement$1 {
|
|
|
119992
120027
|
static get style() { return ezLabelChipCss; }
|
|
119993
120028
|
};
|
|
119994
120029
|
|
|
119995
|
-
const ezListCss = ":host{--ez-list__host--z-index:var(--visible, 1);--ez-list__host--border-radius:var(--border--radius-medium, 12px);--ez-list__host--padding:var(--space--medium, 12px);--ez-list__icon__padding:var(--space--small, 6px);--ez-list__icon--color:#AFB6C0;--ez-list__item__margin:0 var(--space--small, 6px);--ez-list__item--color:var(--title--primary, #2b3a54);--ez-list__item--border-bottom:var(--border--small, 1px solid);--ez-list__item--border-color:var(--title--primary, #2b3a54);--ez-list__item--font-family:var(--font-pattern, \"Sora\");--ez-list__item--font-size:var(--text--medium, 14px);--ez-list__selectable--padding-right:var(--space--small, 6px);--ez-list__selectable--padding-left:var(--space--small, 6px);--ez-list__selected-item__border-radius:var(--border--radius-small, 6px);--ez-list__selected-item__background:var(--color--primary-300, #E2F4EF);--ez-list__group--font-family:var(--font-pattern, \"Sora\");--ez-list__group--font-size:var(--text--medium, 14px);--ez-list__group--font-weight:var(--text-weight--large, 600);--ez-list__group--padding-bottom:var(--space-small, 6px);--ez-list__group__overlay--font-family:var(--font-pattern, \"Sora\");--ez-list__group__overlay--font-size:var(--text--medium, 14px);--ez-list__group-container__scrollbar--border-radius:var(--border--radius-large, 24px);--ez-list__group-container__scrollbar--width:var(--space--medium, 12px);--ez-list__group-container__scrollbar--background-color:var(--text--primary, #626e82);--ez-list__over--border--color:var(--color--primary, #008561);--ez-list__draggable__scrollbar--border-radius:var(--border--radius-large, 24px);--ez-list__draggable__scrollbar--width:var(--space--medium, 12px);--ez-list__draggable__scrollbar--background-color:var(--text--primary, #626e82);--ez-list__draggable__icon--image:url('data:image/svg+xml;utf8,<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m 6.75,2.25 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z\"/></svg>');max-height:100%;width:100%;background-color:#fff;display:flex;z-index:var(--ez-list__host--z-index)}.draggable{display:flex;align-items:center;justify-content:space-between;background-color:#fff;font-family:var(--ez-list__item--font-family);font-size:var(--ez-list__item--font-size);flex:1}.dragging{background:#FFFFFF;border:1px solid #008561;box-sizing:border-box;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);border-radius:6px}.selectable{cursor:pointer;padding-right:var(--ez-list__selectable--padding-right);padding-left:var(--ez-list__selectable--padding-left)}.selectable-container{margin:0px !important}.item-content{display:flex;justify-content:center;align-items:center}.draggable-list{color:var(--text-color);padding:0;margin:0;width:100%;max-height:100
|
|
120030
|
+
const ezListCss = ":host{--ez-list__host--z-index:var(--visible, 1);--ez-list__host--border-radius:var(--border--radius-medium, 12px);--ez-list__host--padding:var(--space--medium, 12px);--ez-list__icon__padding:var(--space--small, 6px);--ez-list__icon--color:#AFB6C0;--ez-list__item__margin:0 var(--space--small, 6px);--ez-list__item--color:var(--title--primary, #2b3a54);--ez-list__item--border-bottom:var(--border--small, 1px solid);--ez-list__item--border-color:var(--title--primary, #2b3a54);--ez-list__item--font-family:var(--font-pattern, \"Sora\");--ez-list__item--font-size:var(--text--medium, 14px);--ez-list__selectable--padding-right:var(--space--small, 6px);--ez-list__selectable--padding-left:var(--space--small, 6px);--ez-list__selected-item__border-radius:var(--border--radius-small, 6px);--ez-list__selected-item__background:var(--color--primary-300, #E2F4EF);--ez-list__group--font-family:var(--font-pattern, \"Sora\");--ez-list__group--font-size:var(--text--medium, 14px);--ez-list__group--font-weight:var(--text-weight--large, 600);--ez-list__group--padding-bottom:var(--space-small, 6px);--ez-list__group__overlay--font-family:var(--font-pattern, \"Sora\");--ez-list__group__overlay--font-size:var(--text--medium, 14px);--ez-list__group-container__scrollbar--border-radius:var(--border--radius-large, 24px);--ez-list__group-container__scrollbar--width:var(--space--medium, 12px);--ez-list__group-container__scrollbar--background-color:var(--text--primary, #626e82);--ez-list__over--border--color:var(--color--primary, #008561);--ez-list__draggable__list--padding-bottom:var(--space--small, 6px);--ez-list__last-droppable-space--height:var(--space--small, 6px);--ez-list__draggable__scrollbar--border-radius:var(--border--radius-large, 24px);--ez-list__draggable__scrollbar--width:var(--space--medium, 12px);--ez-list__draggable__scrollbar--background-color:var(--text--primary, #626e82);--ez-list__draggable__icon--image:url('data:image/svg+xml;utf8,<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m 6.75,2.25 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z\"/></svg>');max-height:100%;width:100%;background-color:#fff;display:flex;z-index:var(--ez-list__host--z-index)}p{margin:0}.draggable{display:flex;align-items:center;border-top:1px dashed #fff;justify-content:space-between;background-color:#fff;font-family:var(--ez-list__item--font-family);font-size:var(--ez-list__item--font-size);flex:1}.dragging{background:#FFFFFF;border:1px solid #008561;box-sizing:border-box;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);border-radius:6px}.selectable{cursor:pointer;padding-right:var(--ez-list__selectable--padding-right);padding-left:var(--ez-list__selectable--padding-left)}.selectable-container{margin:0px !important}.item-content{display:flex;justify-content:center;align-items:center}.draggable-list{color:var(--text-color);padding:0;margin:0;width:100%;max-height:100%}.draggable-list li{background-color:#fff;display:flex;margin:var(--ez-list__item__margin);font-family:var(--ez-list__item--font-family);font-size:var(--ez-list__item--font-size);color:var(--ez-list__item--color);height:32px}.over{border-top:1px dashed var(--ez-list__over--border--color)}.last-droppable-space{height:var(--ez-list__last-droppable-space--height)}.draggable-selected{background-color:var(--background--strong) !important}.draggable-selected div:hover{background-color:var(--background--strong) !important}.draggable-list::-webkit-scrollbar-track{background-color:#f0f2f5}.draggable-list::-webkit-scrollbar-thumb{background-color:var(--ez-list__draggable__scrollbar--background-color);border-radius:var(--ez-list__draggable__scrollbar--border-radius)}.draggable-list::-webkit-scrollbar{background-color:#f0f2f5;width:var(--ez-list__draggable__scrollbar--width);max-width:var(--ez-list__draggable__scrollbar--width);min-width:var(--ez-list__draggable__scrollbar--width)}.draggable-icon{align-items:flex-start;display:flex;outline:none;border:none;background-color:unset}.draggable-icon::after{content:'';display:flex;background-color:var(--ez-list__icon--color);width:18px;height:18px;-webkit-mask-image:var(--ez-list__draggable__icon--image);mask-image:var(--ez-list__draggable__icon--image)}*{box-sizing:border-box}.checkbox{width:fit-content}.text--ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.group-container{display:flex;flex-direction:column;max-height:100%;overflow-y:auto;outline:none;width:100%}.group-name{font-family:var(--ez-list__group--font-family);font-size:var(--ez-list__group--font-size);font-weight:var(--ez-list__group--font-weight);padding-bottom:var(--ez-list__group--padding-bottom);-webkit-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none}.group{display:flex;flex-direction:column}.group-container::-webkit-scrollbar-track{background-color:#f0f2f5}.group-container::-webkit-scrollbar-thumb{background-color:var(--ez-list__group-container__scrollbar--background-color);border-radius:var(--ez-list__group-container__scrollbar--border-radius)}.group-container::-webkit-scrollbar{background-color:#f0f2f5;width:var(--ez-list__group-container__scrollbar--width);max-width:var(--ez-list__group-container__scrollbar--width);min-width:var(--ez-list__group-container__scrollbar--width)}.section-container{display:flex;position:relative;height:100%}.items-container{width:100%;max-height:100%;overflow-y:auto;outline:none}.group-items-container{width:100%;max-height:100%;height:100%;outline:none}.items-container::-webkit-scrollbar-track{background-color:#f0f2f5}.items-container::-webkit-scrollbar-thumb{background-color:var(--ez-list__draggable__scrollbar--background-color);border-radius:var(--ez-list__draggable__scrollbar--border-radius)}.items-container::-webkit-scrollbar{background-color:#f0f2f5;width:var(--ez-list__draggable__scrollbar--width);max-width:var(--ez-list__draggable__scrollbar--width);min-width:var(--ez-list__draggable__scrollbar--width)}.group-overlay{font-family:var(--ez-list__group__overlay--font-family);font-size:var(--ez-list__group__overlay--font-size);background:rgba(226, 244, 239, 0.8);border:1px solid #008561;border-radius:8px;position:absolute;display:none;place-items:center;top:0;bottom:0;left:0;right:0;z-index:2;margin:0;cursor:pointer}.presetedHeight{min-height:100px}.overlay-text{position:absolute;top:50%;left:50%;font-size:50px;color:white;transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%)}.selected-item{background:var(--ez-list__selected-item__background);border-radius:var(--ez-list__selected-item__border-radius)}.slot-item{align-items:flex-end}.overGroup{background:rgba(226, 244, 239, 0.8);border:1px solid #008561;box-sizing:border-box;border-radius:8px;padding-top:6px}";
|
|
119996
120031
|
|
|
119997
120032
|
let EzList$1 = class extends HTMLElement$1 {
|
|
119998
120033
|
constructor() {
|
|
@@ -120052,7 +120087,7 @@ let EzList$1 = class extends HTMLElement$1 {
|
|
|
120052
120087
|
newList.forEach(groupItem => {
|
|
120053
120088
|
groupItem.items.forEach(item => {
|
|
120054
120089
|
if (item.label == selectedItem.label) {
|
|
120055
|
-
item.selected =
|
|
120090
|
+
item.selected = true;
|
|
120056
120091
|
}
|
|
120057
120092
|
else {
|
|
120058
120093
|
item.selected = false;
|
|
@@ -120065,7 +120100,7 @@ let EzList$1 = class extends HTMLElement$1 {
|
|
|
120065
120100
|
let newList = [...this._listItems];
|
|
120066
120101
|
newList.forEach(item => {
|
|
120067
120102
|
if (item.label === selectedItem.label) {
|
|
120068
|
-
item.selected =
|
|
120103
|
+
item.selected = true;
|
|
120069
120104
|
}
|
|
120070
120105
|
else {
|
|
120071
120106
|
item.selected = false;
|
|
@@ -120140,7 +120175,7 @@ let EzList$1 = class extends HTMLElement$1 {
|
|
|
120140
120175
|
this.createList();
|
|
120141
120176
|
}
|
|
120142
120177
|
onDrop(ev, dragEndItem) {
|
|
120143
|
-
this.removeOverClass(
|
|
120178
|
+
this.removeOverClass();
|
|
120144
120179
|
this.setSelection(undefined);
|
|
120145
120180
|
if (this._dragStartItem) {
|
|
120146
120181
|
if (this.useGroups) {
|
|
@@ -120176,6 +120211,39 @@ let EzList$1 = class extends HTMLElement$1 {
|
|
|
120176
120211
|
}
|
|
120177
120212
|
ev.stopPropagation();
|
|
120178
120213
|
}
|
|
120214
|
+
onDropLastIndex(ev, groupDropped) {
|
|
120215
|
+
this.removeOverClass();
|
|
120216
|
+
this.setSelection(undefined);
|
|
120217
|
+
if (this._dragStartItem) {
|
|
120218
|
+
if (this.useGroups) {
|
|
120219
|
+
let newList = [...this._listGroupItems];
|
|
120220
|
+
let groupEnd = this._listGroupItems.find(group => groupDropped.group == group.group);
|
|
120221
|
+
//Remove item arrastado
|
|
120222
|
+
newList.find(group => group.group == this._dragStartItem.groupName).items.splice(this._dragStartItem.index, 1);
|
|
120223
|
+
//Adiciona item arrastado
|
|
120224
|
+
newList.find(group => group.group == groupDropped.group).items.push(this._dragStartItem.item);
|
|
120225
|
+
if (groupEnd.sort) {
|
|
120226
|
+
newList.find(group => group.group == groupDropped.group).items.sort(function (a, b) {
|
|
120227
|
+
return a.label < b.label ? -1 : a.label > b.label ? 1 : 0;
|
|
120228
|
+
});
|
|
120229
|
+
if (groupEnd.sort === "DSC") {
|
|
120230
|
+
newList.find(group => group.group == groupDropped.group).items.reverse();
|
|
120231
|
+
}
|
|
120232
|
+
}
|
|
120233
|
+
this._listGroupItems = newList;
|
|
120234
|
+
this.ezChange.emit(this._listGroupItems);
|
|
120235
|
+
}
|
|
120236
|
+
else {
|
|
120237
|
+
let newList = [...this._listItems];
|
|
120238
|
+
newList.splice(this._dragStartItem.index, 1);
|
|
120239
|
+
newList.push(this._dragStartItem.item);
|
|
120240
|
+
this._listItems = newList;
|
|
120241
|
+
this._listItemsHistory = newList;
|
|
120242
|
+
this.ezChange.emit(this._listItems);
|
|
120243
|
+
}
|
|
120244
|
+
}
|
|
120245
|
+
ev.stopPropagation();
|
|
120246
|
+
}
|
|
120179
120247
|
onDropGroup(groupSelected) {
|
|
120180
120248
|
var _a;
|
|
120181
120249
|
let newList = [...this._listGroupItems];
|
|
@@ -120209,6 +120277,9 @@ let EzList$1 = class extends HTMLElement$1 {
|
|
|
120209
120277
|
}
|
|
120210
120278
|
onDragEnd() {
|
|
120211
120279
|
this._dragStartItem = undefined;
|
|
120280
|
+
if (this.useGroups) {
|
|
120281
|
+
this.hideOverlays();
|
|
120282
|
+
}
|
|
120212
120283
|
if (this._draggingElement) {
|
|
120213
120284
|
try {
|
|
120214
120285
|
this._element.shadowRoot.removeChild(this._draggingElement);
|
|
@@ -120217,65 +120288,74 @@ let EzList$1 = class extends HTMLElement$1 {
|
|
|
120217
120288
|
this._draggingElement = undefined;
|
|
120218
120289
|
}
|
|
120219
120290
|
}
|
|
120220
|
-
addOverClass(
|
|
120221
|
-
if (
|
|
120222
|
-
|
|
120291
|
+
addOverClass(element) {
|
|
120292
|
+
if ((element === null || element === void 0 ? void 0 : element.__proto__) == HTMLDivElement.prototype && element.classList.contains("draggable")) {
|
|
120293
|
+
element.classList.add('over');
|
|
120294
|
+
}
|
|
120295
|
+
else if ((element === null || element === void 0 ? void 0 : element.parentElement) && !element.parentElement.classList.contains("draggable-list")) {
|
|
120296
|
+
this.addOverClass(element.parentElement);
|
|
120223
120297
|
}
|
|
120224
120298
|
}
|
|
120225
120299
|
addOverGroupClass(ev, group) {
|
|
120226
120300
|
if (ev.target) {
|
|
120227
120301
|
let groupContainer = this._groupContainer.querySelector("div#" + this.getDivGroupId(group.group));
|
|
120302
|
+
let groupOverlay = groupContainer.getElementsByClassName("group-overlay")[0];
|
|
120228
120303
|
if (group.items.length > 0) {
|
|
120229
|
-
let groupOverlay = groupContainer.getElementsByClassName("group-overlay")[0];
|
|
120230
120304
|
groupOverlay.setAttribute("style", "display:grid");
|
|
120231
120305
|
}
|
|
120232
120306
|
else {
|
|
120233
|
-
|
|
120307
|
+
groupOverlay.classList.add("presetedHeight");
|
|
120308
|
+
groupOverlay.setAttribute("style", "display:grid");
|
|
120309
|
+
groupOverlay.scrollIntoView(false);
|
|
120234
120310
|
}
|
|
120235
120311
|
}
|
|
120236
120312
|
}
|
|
120237
|
-
removeOverClass(
|
|
120238
|
-
|
|
120313
|
+
removeOverClass() {
|
|
120314
|
+
var _a, _b;
|
|
120315
|
+
let overCollection;
|
|
120316
|
+
let overLastDroppableCollection;
|
|
120317
|
+
if (this.useGroups) {
|
|
120318
|
+
overCollection = (_a = this._groupContainer) === null || _a === void 0 ? void 0 : _a.getElementsByClassName('over');
|
|
120319
|
+
overLastDroppableCollection = this._groupContainer.getElementsByClassName('last-droppable-space');
|
|
120320
|
+
}
|
|
120321
|
+
else {
|
|
120322
|
+
overCollection = (_b = this._itemContainer) === null || _b === void 0 ? void 0 : _b.getElementsByClassName('over');
|
|
120323
|
+
overLastDroppableCollection = this._itemContainer.getElementsByClassName('last-droppable-space');
|
|
120324
|
+
}
|
|
120325
|
+
if (overCollection) {
|
|
120326
|
+
Array.from(overCollection).forEach(function (element) {
|
|
120327
|
+
element.classList.remove('over');
|
|
120328
|
+
});
|
|
120329
|
+
}
|
|
120330
|
+
if (overLastDroppableCollection) {
|
|
120331
|
+
Array.from(overLastDroppableCollection).forEach(function (element) {
|
|
120332
|
+
element.classList.remove('over');
|
|
120333
|
+
});
|
|
120334
|
+
}
|
|
120239
120335
|
}
|
|
120240
120336
|
removeOverGroupClass(ev, group) {
|
|
120241
120337
|
if (ev.target) {
|
|
120242
120338
|
let groupContainer = this._groupContainer.querySelector("div#" + this.getDivGroupId(group.group));
|
|
120243
|
-
|
|
120244
|
-
|
|
120339
|
+
let groupOverlay = groupContainer.getElementsByClassName("group-overlay")[0];
|
|
120340
|
+
if (groupOverlay) {
|
|
120341
|
+
groupOverlay.classList.remove("presetedHeight");
|
|
120245
120342
|
groupOverlay.setAttribute("style", "display:none");
|
|
120246
120343
|
}
|
|
120247
|
-
else {
|
|
120248
|
-
groupContainer === null || groupContainer === void 0 ? void 0 : groupContainer.classList.remove('overGroup');
|
|
120249
|
-
}
|
|
120250
120344
|
}
|
|
120251
120345
|
}
|
|
120252
|
-
onDragStart(
|
|
120346
|
+
onDragStart(item, group, index) {
|
|
120347
|
+
if (this._changeDeboucingTimeout) {
|
|
120348
|
+
window.clearTimeout(this._changeDeboucingTimeout);
|
|
120349
|
+
}
|
|
120253
120350
|
if (this.useGroups) {
|
|
120254
120351
|
this._dragStartItem = { groupName: group.group, item: item, index: index };
|
|
120352
|
+
this._changeDeboucingTimeout = window.setTimeout(() => {
|
|
120353
|
+
this.showOverlays(group);
|
|
120354
|
+
}, 10);
|
|
120255
120355
|
}
|
|
120256
120356
|
else {
|
|
120257
120357
|
this._dragStartItem = { item: item.item, index: item.index };
|
|
120258
120358
|
}
|
|
120259
|
-
let sourceElement = event.srcElement.cloneNode(true);
|
|
120260
|
-
this._draggingElement = event.srcElement.cloneNode(true);
|
|
120261
|
-
this._draggingElement.style.position = "absolute";
|
|
120262
|
-
this._draggingElement.style.top = (event.clientY + 5) + 'px';
|
|
120263
|
-
this._draggingElement.style.left = (event.clientX + 5) + 'px';
|
|
120264
|
-
this._draggingElement.style.height = event.srcElement.clientHeight + 'px';
|
|
120265
|
-
this._draggingElement.style.width = event.srcElement.clientWidth + 'px';
|
|
120266
|
-
this._draggingElement.style.background = "#FFFFFF";
|
|
120267
|
-
this._draggingElement.style.border = "1px solid #008561";
|
|
120268
|
-
this._draggingElement.style["box-sizing"] = "border-box";
|
|
120269
|
-
this._draggingElement.style["box-shadow"] = "0px 0px 16px rgba(0, 38, 111, 0.122)";
|
|
120270
|
-
this._draggingElement.style["border-radius"] = "6px";
|
|
120271
|
-
this._element.shadowRoot.appendChild(this._draggingElement);
|
|
120272
|
-
event.dataTransfer.setDragImage(sourceElement, -10000, -10000);
|
|
120273
|
-
}
|
|
120274
|
-
onDrag(event) {
|
|
120275
|
-
if (this._draggingElement) {
|
|
120276
|
-
this._draggingElement.style.top = (event.clientY + 5) + 'px';
|
|
120277
|
-
this._draggingElement.style.left = (event.clientX + 5) + 'px';
|
|
120278
|
-
}
|
|
120279
120359
|
}
|
|
120280
120360
|
selectFirstItem() {
|
|
120281
120361
|
if (this.useGroups) {
|
|
@@ -120378,43 +120458,67 @@ let EzList$1 = class extends HTMLElement$1 {
|
|
|
120378
120458
|
}
|
|
120379
120459
|
return undefined;
|
|
120380
120460
|
}
|
|
120461
|
+
getGroupOverlayId(groupName) {
|
|
120462
|
+
if (groupName) {
|
|
120463
|
+
return "group-overlay-" + groupName.replace(/[^a-z0-9_]/gi, "_");
|
|
120464
|
+
}
|
|
120465
|
+
return undefined;
|
|
120466
|
+
}
|
|
120381
120467
|
onDragOverGroup(event, group) {
|
|
120382
|
-
if (this._dragStartItem && this._dragStartItem.groupName !== group.group) {
|
|
120468
|
+
if (this._dragStartItem && this._dragStartItem.groupName !== group.group && group.sort) {
|
|
120383
120469
|
event.preventDefault();
|
|
120384
120470
|
this.addOverGroupClass(event, group);
|
|
120385
120471
|
}
|
|
120386
120472
|
}
|
|
120387
|
-
onDragOverItem(event
|
|
120473
|
+
onDragOverItem(event) {
|
|
120388
120474
|
if (this._dragStartItem) {
|
|
120389
120475
|
event.preventDefault();
|
|
120390
|
-
|
|
120391
|
-
group.sort ?
|
|
120392
|
-
() => {
|
|
120393
|
-
this.addOverGroupClass(event, group);
|
|
120394
|
-
}
|
|
120395
|
-
: this.addOverClass(event);
|
|
120396
|
-
}
|
|
120397
|
-
else {
|
|
120398
|
-
this.addOverClass(event);
|
|
120399
|
-
}
|
|
120476
|
+
this.addOverClass(event.target);
|
|
120400
120477
|
event.stopPropagation();
|
|
120401
120478
|
}
|
|
120402
120479
|
}
|
|
120480
|
+
onDragOverLastIndex(ev) {
|
|
120481
|
+
ev.preventDefault();
|
|
120482
|
+
if (this._dragStartItem) {
|
|
120483
|
+
ev.target.classList.add('over');
|
|
120484
|
+
ev.stopPropagation();
|
|
120485
|
+
}
|
|
120486
|
+
}
|
|
120487
|
+
showOverlays(groupDragStart) {
|
|
120488
|
+
let groupOverlayCollection = this._groupContainer.getElementsByClassName("group-overlay");
|
|
120489
|
+
Array.from(groupOverlayCollection).forEach(groupOverlay => {
|
|
120490
|
+
let groupOverlayID = this.getGroupOverlayId(groupDragStart.group);
|
|
120491
|
+
if (groupOverlayID && groupOverlay.getAttribute("id") && groupOverlayID != groupOverlay.getAttribute("id")) {
|
|
120492
|
+
groupOverlay.classList.add("presetedHeight");
|
|
120493
|
+
groupOverlay.setAttribute("style", "display:grid");
|
|
120494
|
+
}
|
|
120495
|
+
});
|
|
120496
|
+
}
|
|
120497
|
+
hideOverlays() {
|
|
120498
|
+
var _a;
|
|
120499
|
+
let groupOverlayCollection = (_a = this._groupContainer) === null || _a === void 0 ? void 0 : _a.getElementsByClassName("group-overlay");
|
|
120500
|
+
Array.from(groupOverlayCollection).forEach(groupOverlay => {
|
|
120501
|
+
groupOverlay.classList.remove("presetedHeight");
|
|
120502
|
+
groupOverlay.setAttribute("style", "display:none");
|
|
120503
|
+
});
|
|
120504
|
+
}
|
|
120403
120505
|
render() {
|
|
120404
120506
|
return (h(Host, { ref: (el) => this._element = el }, this.useGroups ?
|
|
120405
120507
|
h("div", { class: "group-container", ref: (el) => this._groupContainer = el, tabIndex: 0, onKeyDown: (event) => { this.keyDownHandler(event); } }, this._listGroupItems.map(group => {
|
|
120406
|
-
return h("div", { id: this.getDivGroupId(group.group), class: "group", key: group.group + group.items.length,
|
|
120407
|
-
return h("li", { id: 'item_' + this.getItemId(item.label), class: this.ezSelectable ? "selectable-container" : "", key: 'item_' + this.getItemId(item.label) }, h("div", { class: "draggable" + (item.selected == true ? " selected-item " : "") + (this.ezSelectable == true ? " selectable " : ""), onClick: () => { this.setSelection(item); }, onDragLeave: (
|
|
120508
|
+
return h("div", { id: this.getDivGroupId(group.group), class: "group", key: group.group + group.items.length, onDrop: () => this.onDropGroup(group) }, h("label", { draggable: false, class: "group-name" }, group.group), h("section", { class: "section-container", onDragOver: (ev) => ev.preventDefault() }, h("div", { class: "group-items-container" }, h("div", { class: "draggable-list" }, group.items.map((item, index) => {
|
|
120509
|
+
return h("li", { id: 'item_' + this.getItemId(item.label), class: this.ezSelectable ? "selectable-container" : "", key: 'item_' + this.getItemId(item.label) }, h("div", { class: "draggable" + (item.selected == true ? " selected-item " : "") + (this.ezSelectable == true ? " selectable " : ""), onClick: () => { this.setSelection(item); }, onDragLeave: () => { group.sort ? undefined : this.removeOverClass(); }, onDragEnd: () => this.onDragEnd(), onDragStart: () => this.onDragStart(item, group, index), onDragOver: (event) => { group.sort ? undefined : this.onDragOverItem(event); }, onDrop: (event) => this.onDrop(event, { groupName: group.group, item: item, index: index }), draggable: this.ezDraggable }, h("div", { class: "item-content" }, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label)), this.itemSlotBuilder ?
|
|
120408
120510
|
h("div", { class: "slot-item" }, this.itemSlotBuilder(item, group))
|
|
120409
120511
|
: undefined));
|
|
120410
|
-
}))
|
|
120512
|
+
})), h("div", { class: "last-droppable-space", onDragLeave: () => this.removeOverClass(), onDragOver: (event) => { this.onDragOverLastIndex(event); }, onDragEnd: () => this.onDragEnd(), onDrop: (event) => this.onDropLastIndex(event, group) })), group.sort ?
|
|
120513
|
+
h("div", { id: this.getGroupOverlayId(group.group), class: "group-overlay" }, "Mover para ", group.group)
|
|
120514
|
+
: undefined));
|
|
120411
120515
|
}))
|
|
120412
120516
|
:
|
|
120413
120517
|
h("div", { class: "items-container", ref: (el) => this._itemContainer = el, tabIndex: 0, onKeyDown: (event) => { this.keyDownHandler(event); } }, h("div", { class: "draggable-list" }, this._listItems.map((item, index) => {
|
|
120414
|
-
return h("li", { id: 'item_' + this.getItemId(item.label), class: this.ezSelectable ? "selectable-container" : "", key: 'item_' + this.getItemId(item.label) }, h("div", { class: "draggable" + (item.selected == true ? " selected-item " : "") + (this.ezSelectable == true ? " selectable " : ""), onDragStart: (
|
|
120518
|
+
return h("li", { id: 'item_' + this.getItemId(item.label), class: this.ezSelectable ? "selectable-container" : "", key: 'item_' + this.getItemId(item.label) }, h("div", { class: "draggable" + (item.selected == true ? " selected-item " : "") + (this.ezSelectable == true ? " selectable " : ""), onDragStart: () => this.onDragStart({ item: item, index: index }), onClick: () => { this.setSelection(item); }, onDragLeave: () => this.removeOverClass(), onDragOver: (event) => this.onDragOverItem(event), onDragEnd: () => this.onDragEnd(), onDrop: (event) => this.onDrop(event, { item: item, index: index }), draggable: this.ezDraggable }, h("div", { class: "item-content" }, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label)), this.itemSlotBuilder ?
|
|
120415
120519
|
h("div", null, this.itemSlotBuilder(item))
|
|
120416
120520
|
: undefined));
|
|
120417
|
-
})))));
|
|
120521
|
+
}), h("div", { class: "last-droppable-space", onDragLeave: () => this.removeOverClass(), onDragOver: (event) => { this.onDragOverLastIndex(event); }, onDragEnd: () => this.onDragEnd(), onDrop: (event) => this.onDropLastIndex(event) })))));
|
|
120418
120522
|
}
|
|
120419
120523
|
static get style() { return ezListCss; }
|
|
120420
120524
|
};
|
|
@@ -121051,7 +121155,7 @@ let EzTextArea$1 = class extends HTMLElement$1 {
|
|
|
121051
121155
|
static get style() { return ezTextAreaCss; }
|
|
121052
121156
|
};
|
|
121053
121157
|
|
|
121054
|
-
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--
|
|
121158
|
+
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}";
|
|
121055
121159
|
|
|
121056
121160
|
let EzTextInput$1 = class extends HTMLElement$1 {
|
|
121057
121161
|
constructor() {
|
|
@@ -121063,6 +121167,10 @@ let EzTextInput$1 = class extends HTMLElement$1 {
|
|
|
121063
121167
|
* Deixa o campo disponível ou não para digitação.
|
|
121064
121168
|
*/
|
|
121065
121169
|
this.enabled = true;
|
|
121170
|
+
/**
|
|
121171
|
+
* Permite exibir a mensagem de erro.
|
|
121172
|
+
*/
|
|
121173
|
+
this.canShowError = true;
|
|
121066
121174
|
}
|
|
121067
121175
|
showError() {
|
|
121068
121176
|
const hasError = typeof this.errorMessage === "string" && this.errorMessage !== "";
|
|
@@ -121230,7 +121338,8 @@ let EzTextInput$1 = class extends HTMLElement$1 {
|
|
|
121230
121338
|
render() {
|
|
121231
121339
|
return (h(Host, null, h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label ?
|
|
121232
121340
|
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)
|
|
121233
|
-
: 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); } }),
|
|
121341
|
+
: 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 &&
|
|
121342
|
+
h("span", { class: "message-box", ref: (el) => this._messageBoxElem = el, title: this.errorMessage }, this.errorMessage)));
|
|
121234
121343
|
}
|
|
121235
121344
|
get _hostElement() { return this; }
|
|
121236
121345
|
static get watchers() { return {
|
|
@@ -121743,7 +121852,7 @@ let EzUpload$1 = class extends HTMLElement$1 {
|
|
|
121743
121852
|
static get style() { return ezUploadCss; }
|
|
121744
121853
|
};
|
|
121745
121854
|
|
|
121746
|
-
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,
|
|
121855
|
+
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)}";
|
|
121747
121856
|
|
|
121748
121857
|
let GridConfig$1 = class extends HTMLElement$1 {
|
|
121749
121858
|
constructor() {
|
|
@@ -121811,7 +121920,7 @@ let GridConfig$1 = class extends HTMLElement$1 {
|
|
|
121811
121920
|
let newList = [...this.columns];
|
|
121812
121921
|
let newItem = newList.find(item => item.label === updatedItem.label);
|
|
121813
121922
|
if (newItem) {
|
|
121814
|
-
newItem.sort = sortOrder;
|
|
121923
|
+
newItem.sort = sortOrder.value;
|
|
121815
121924
|
}
|
|
121816
121925
|
this.columns = newList;
|
|
121817
121926
|
}
|
|
@@ -121868,7 +121977,7 @@ let GridConfig$1 = class extends HTMLElement$1 {
|
|
|
121868
121977
|
searchingText = (_a = evt.currentTarget) === null || _a === void 0 ? void 0 : _a.value;
|
|
121869
121978
|
}
|
|
121870
121979
|
let newSelected = -1;
|
|
121871
|
-
if (this.selectedTab === "Ordenação") {
|
|
121980
|
+
if (this.selectedTab === "Ordenação das linhas") {
|
|
121872
121981
|
if (searchingText) {
|
|
121873
121982
|
const matchedIndexes = [];
|
|
121874
121983
|
let orderListDatasource;
|
|
@@ -121956,7 +122065,7 @@ let GridConfig$1 = class extends HTMLElement$1 {
|
|
|
121956
122065
|
handleTabChange(ev) {
|
|
121957
122066
|
var _a;
|
|
121958
122067
|
if ((_a = ev === null || ev === void 0 ? void 0 : ev.target) === null || _a === void 0 ? void 0 : _a.selectedTab) {
|
|
121959
|
-
if (ev.target.selectedTab === "Ordenação") {
|
|
122068
|
+
if (ev.target.selectedTab === "Ordenação das linhas") {
|
|
121960
122069
|
this._columnListHistory = this._columnList.dataSource;
|
|
121961
122070
|
this.createOrderList();
|
|
121962
122071
|
}
|
|
@@ -121986,13 +122095,13 @@ let GridConfig$1 = class extends HTMLElement$1 {
|
|
|
121986
122095
|
}
|
|
121987
122096
|
}
|
|
121988
122097
|
render() {
|
|
121989
|
-
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() }))));
|
|
122098
|
+
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() }))));
|
|
121990
122099
|
}
|
|
121991
122100
|
static get assetsDirs() { return ["../assets"]; }
|
|
121992
122101
|
static get style() { return gridConfigCss; }
|
|
121993
122102
|
};
|
|
121994
122103
|
|
|
121995
|
-
const selectBoxCss = "
|
|
122104
|
+
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}";
|
|
121996
122105
|
|
|
121997
122106
|
let SelectBox$1 = class extends HTMLElement$1 {
|
|
121998
122107
|
constructor() {
|
|
@@ -122000,22 +122109,10 @@ let SelectBox$1 = class extends HTMLElement$1 {
|
|
|
122000
122109
|
this.__registerHost();
|
|
122001
122110
|
this.__attachShadow();
|
|
122002
122111
|
this.ezChange = createEvent(this, "ezChange", 7);
|
|
122003
|
-
|
|
122004
|
-
changeSelection() {
|
|
122005
|
-
this.ezChange.emit(this._selectElem.value);
|
|
122006
|
-
}
|
|
122007
|
-
componentDidRender() {
|
|
122008
|
-
if (this._selectElem) {
|
|
122009
|
-
if (this.selectedOption) {
|
|
122010
|
-
this._selectElem.value = this.selectedOption;
|
|
122011
|
-
}
|
|
122012
|
-
else {
|
|
122013
|
-
this._selectElem.value = "na";
|
|
122014
|
-
}
|
|
122015
|
-
}
|
|
122112
|
+
this.selectedOption = { value: "na", label: "N/A" };
|
|
122016
122113
|
}
|
|
122017
122114
|
render() {
|
|
122018
|
-
return (h("
|
|
122115
|
+
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")));
|
|
122019
122116
|
}
|
|
122020
122117
|
static get assetsDirs() { return ["../assets"]; }
|
|
122021
122118
|
static get style() { return selectBoxCss; }
|
|
@@ -122078,7 +122175,7 @@ let TestDu$1 = class extends HTMLElement$1 {
|
|
|
122078
122175
|
]));
|
|
122079
122176
|
}
|
|
122080
122177
|
render() {
|
|
122081
|
-
return (h("ez-
|
|
122178
|
+
return (h("ez-form", { dataUnit: this.dataUnit }));
|
|
122082
122179
|
}
|
|
122083
122180
|
static get style() { return testDuCss; }
|
|
122084
122181
|
};
|
|
@@ -122089,7 +122186,7 @@ const EzButton = /*@__PURE__*/proxyCustomElement(EzButton$1, [1,"ez-button",{"la
|
|
|
122089
122186
|
const EzCalendar = /*@__PURE__*/proxyCustomElement(EzCalendar$1, [1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"]}]);
|
|
122090
122187
|
const EzCheck = /*@__PURE__*/proxyCustomElement(EzCheck$1, [1,"ez-check",{"label":[513],"value":[1540],"enabled":[516],"mode":[513]}]);
|
|
122091
122188
|
const EzCollapsibleBox = /*@__PURE__*/proxyCustomElement(EzCollapsibleBox$1, [1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"]}]);
|
|
122092
|
-
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]}]);
|
|
122189
|
+
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]}]);
|
|
122093
122190
|
const EzDateInput = /*@__PURE__*/proxyCustomElement(EzDateInput$1, [1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"]}]);
|
|
122094
122191
|
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"]}]);
|
|
122095
122192
|
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"]}]);
|
|
@@ -122105,7 +122202,7 @@ const EzPopup = /*@__PURE__*/proxyCustomElement(EzPopup$1, [1,"ez-popup",{"size"
|
|
|
122105
122202
|
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"]}]);
|
|
122106
122203
|
const EzTabselector = /*@__PURE__*/proxyCustomElement(EzTabselector$1, [1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}]);
|
|
122107
122204
|
const EzTextArea = /*@__PURE__*/proxyCustomElement(EzTextArea$1, [1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"rows":[1538]}]);
|
|
122108
|
-
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]}]);
|
|
122205
|
+
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]}]);
|
|
122109
122206
|
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"]}]);
|
|
122110
122207
|
const EzToast = /*@__PURE__*/proxyCustomElement(EzToast$1, [1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"]}]);
|
|
122111
122208
|
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]}]);
|