@sankhyalabs/ezui 1.2.0-beta.19 → 1.2.0-beta.20
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/FieldBuilder-cd3e45ed.js +119 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js +64 -12
- package/dist/cjs/ez-button.cjs.entry.js +12 -10
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +85 -6
- package/dist/cjs/ez-combo-box.cjs.entry.js +10 -6
- package/dist/cjs/ez-date-input.cjs.entry.js +8 -13
- package/dist/cjs/ez-date-time-input.cjs.entry.js +8 -13
- package/dist/cjs/ez-form.cjs.entry.js +41 -131
- package/dist/cjs/ez-grid-config.cjs.entry.js +2 -3
- package/dist/cjs/ez-grid.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-radio-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-tabselector.cjs.entry.js +7 -5
- package/dist/cjs/ez-text-area.cjs.entry.js +6 -6
- package/dist/cjs/ez-text-edit.cjs.entry.js +103 -0
- package/dist/cjs/ez-text-input.cjs.entry.js +11 -1
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +4 -3
- package/dist/collection/components/ez-actions-button/ez-actions-button.css +49 -20
- package/dist/collection/components/ez-actions-button/ez-actions-button.js +219 -23
- package/dist/collection/components/ez-button/ez-button.css +0 -6
- package/dist/collection/components/ez-button/ez-button.js +11 -9
- package/dist/collection/components/ez-calendar/ez-calendar.css +17 -20
- package/dist/collection/components/ez-chip/ez-chip.css +3 -2
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +16 -0
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +226 -7
- package/dist/collection/components/ez-combo-box/ez-combo-box.css +1 -22
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +17 -14
- package/dist/collection/components/ez-date-input/ez-date-input.js +8 -13
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +8 -13
- package/dist/collection/components/ez-form/ez-form.js +22 -13
- package/dist/collection/components/ez-form/fieldbuilder/FieldBuilder.js +1 -1
- package/dist/collection/components/ez-form/structure/FormSheetMetadata.js +24 -14
- package/dist/collection/components/ez-grid/ez-grid.js +17 -1
- package/dist/collection/components/ez-grid/subcomponents/ez-grid-config/ez-grid-config.css +36 -25
- package/dist/collection/components/ez-grid/subcomponents/ez-grid-config/ez-grid-config.js +1 -2
- package/dist/collection/components/ez-grid/subcomponents/ez-select-box/ez-select-box.js +5 -4
- package/dist/collection/components/ez-list/ez-list.css +9 -1
- package/dist/collection/components/ez-popover/ez-popover.css +1 -1
- package/dist/collection/components/ez-radio-button/ez-radio-button.css +16 -5
- package/dist/collection/components/ez-radio-button/ez-radio-button.js +1 -1
- package/dist/collection/components/ez-search/ez-search.js +6 -6
- package/dist/collection/components/ez-tabselector/ez-tabselector.css +9 -0
- package/dist/collection/components/ez-tabselector/ez-tabselector.js +7 -3
- package/dist/collection/components/ez-text-area/ez-text-area.css +6 -3
- package/dist/collection/components/ez-text-area/ez-text-area.js +5 -5
- package/dist/collection/components/ez-text-edit/ez-text-edit.css +19 -0
- package/dist/collection/components/ez-text-edit/ez-text-edit.js +188 -0
- package/dist/collection/components/ez-text-input/ez-text-input.css +18 -2
- package/dist/collection/components/ez-text-input/ez-text-input.js +28 -0
- package/dist/collection/utils/index.js +1 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +467 -217
- package/dist/esm/FieldBuilder-9e9545fc.js +117 -0
- package/dist/esm/ez-actions-button.entry.js +64 -12
- package/dist/esm/ez-button.entry.js +12 -10
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +86 -7
- package/dist/esm/ez-combo-box.entry.js +10 -6
- package/dist/esm/ez-date-input.entry.js +8 -13
- package/dist/esm/ez-date-time-input.entry.js +9 -14
- package/dist/esm/ez-form.entry.js +40 -130
- package/dist/esm/ez-grid-config.entry.js +2 -3
- package/dist/esm/ez-grid.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +1 -1
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-radio-button.entry.js +2 -2
- package/dist/esm/ez-tabselector.entry.js +7 -5
- package/dist/esm/ez-text-area.entry.js +6 -6
- package/dist/esm/ez-text-edit.entry.js +99 -0
- package/dist/esm/ez-text-input.entry.js +11 -1
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-2cc6dd66.entry.js +1 -0
- package/dist/ezui/p-2ccad880.entry.js +1 -0
- package/dist/ezui/p-333d79c4.entry.js +1 -0
- package/dist/ezui/{p-1d47487a.entry.js → p-3c87845d.entry.js} +1 -1
- package/dist/ezui/p-4ad647fc.entry.js +1 -0
- package/dist/ezui/p-54ecd19a.js +1 -0
- package/dist/ezui/{p-b2cf7db2.entry.js → p-63d567cc.entry.js} +1 -1
- package/dist/ezui/p-6befd7e4.entry.js +1 -0
- package/dist/ezui/p-712bd293.entry.js +1 -0
- package/dist/ezui/{p-ce824077.entry.js → p-72c75a43.entry.js} +1 -1
- package/dist/ezui/{p-81eb2738.entry.js → p-802d23d9.entry.js} +1 -1
- package/dist/ezui/p-bca406db.entry.js +1 -0
- package/dist/ezui/p-be06251d.entry.js +1 -0
- package/dist/ezui/{p-e7d03a0d.entry.js → p-bffae598.entry.js} +1 -1
- package/dist/ezui/p-d91527dc.entry.js +1 -0
- package/dist/ezui/p-dd257f17.entry.js +1 -0
- package/dist/ezui/p-e1f2b5da.entry.js +1 -0
- package/dist/ezui/p-e230bfd2.entry.js +1 -0
- package/dist/ezui/p-e697ffd5.entry.js +1 -0
- package/dist/types/components/ez-actions-button/ez-actions-button.d.ts +42 -9
- package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +46 -1
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +15 -5
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +0 -1
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +0 -1
- package/dist/types/components/ez-form/DataBinder.d.ts +2 -2
- package/dist/types/components/ez-form/ez-form.d.ts +21 -11
- package/dist/types/components/ez-form/fieldbuilder/tpl/CheckBox.tpl.d.ts +3 -3
- package/dist/types/components/ez-form/fieldbuilder/tpl/NumberInput.tpl.d.ts +2 -5
- package/dist/types/components/ez-form/structure/FormSheetMetadata.d.ts +3 -3
- package/dist/types/components/ez-grid/ez-grid.d.ts +1 -1
- package/dist/types/components/ez-grid/subcomponents/ez-select-box/ez-select-box.d.ts +2 -6
- package/dist/types/components/ez-search/ez-search.d.ts +3 -3
- package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +2 -0
- package/dist/types/components/ez-text-edit/ez-text-edit.d.ts +39 -0
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +5 -0
- package/dist/types/components.d.ts +177 -26
- package/dist/types/utils/index.d.ts +1 -0
- package/package.json +5 -3
- package/react/components.d.ts +1 -0
- package/react/components.js +1 -0
- package/react/components.js.map +1 -1
- package/dist/ezui/p-21c0531b.entry.js +0 -1
- package/dist/ezui/p-2f02347d.entry.js +0 -1
- package/dist/ezui/p-416bedbe.entry.js +0 -1
- package/dist/ezui/p-52085ae4.entry.js +0 -1
- package/dist/ezui/p-5fe7e960.entry.js +0 -1
- package/dist/ezui/p-62110996.entry.js +0 -1
- package/dist/ezui/p-a27dafa4.entry.js +0 -1
- package/dist/ezui/p-aba3fa6c.entry.js +0 -1
- package/dist/ezui/p-abc21959.entry.js +0 -1
- package/dist/ezui/p-c019e137.entry.js +0 -1
- package/dist/ezui/p-d0671e14.entry.js +0 -1
- package/dist/ezui/p-e0f06d73.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { HTMLElement as HTMLElement$1, createEvent,
|
|
1
|
+
import { h, HTMLElement as HTMLElement$1, createEvent, Host, forceUpdate, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
2
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
3
|
-
import { FloatingManager, DateUtils as DateUtils$1, TimeFormatter,
|
|
3
|
+
import { UserInterface, FloatingManager, DateUtils as DateUtils$1, TimeFormatter, Action, WaitingChangeException, ApplicationContext, DataUnitAction, DataUnit, ObjectUtils as ObjectUtils$1, StringUtils as StringUtils$1, NumberUtils as NumberUtils$1, DataType, SortMode, MaskFormatter } from '@sankhyalabs/core';
|
|
4
4
|
|
|
5
5
|
var DialogType;
|
|
6
6
|
(function (DialogType) {
|
|
@@ -139,7 +139,120 @@ class CSSVarsUtils {
|
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
141
|
|
|
142
|
-
const
|
|
142
|
+
const buildTextArea = ({ name, label, readOnly }) => {
|
|
143
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small", key: name },
|
|
144
|
+
h("ez-text-area", { enabled: !readOnly, label: label, "data-field-name": name })));
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
const buildTextInput = ({ name, label, readOnly }) => {
|
|
148
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
149
|
+
h("ez-text-input", { label: label, "data-field-name": name, key: name, enabled: !readOnly })));
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
const buildSwitch = (fieldConfig) => {
|
|
153
|
+
return buildField$1(fieldConfig.name, fieldConfig.label, fieldConfig.readOnly, true);
|
|
154
|
+
};
|
|
155
|
+
const buildCheckBox = (fieldConfig) => {
|
|
156
|
+
return buildField$1(fieldConfig.name, fieldConfig.label, fieldConfig.readOnly, false);
|
|
157
|
+
};
|
|
158
|
+
function buildField$1(fieldName, fieldLabel, readOnly, switchMode = false) {
|
|
159
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-align--middle ez-padding-horizontal--small ez-padding-bottom--large" },
|
|
160
|
+
h("ez-check", { enabled: !readOnly, label: fieldLabel, mode: switchMode ? "switch" : "regular", "data-field-name": fieldName, key: fieldName })));
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
const buildComboBox = ({ name, label, readOnly, required }, properties) => {
|
|
164
|
+
const prop = properties === null || properties === void 0 ? void 0 : properties.options;
|
|
165
|
+
let options;
|
|
166
|
+
if (typeof prop === "string") {
|
|
167
|
+
const parsed = JSON.parse(prop);
|
|
168
|
+
options = Object.keys(parsed).map(key => { return { value: key, label: parsed[key] }; });
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
options = prop;
|
|
172
|
+
}
|
|
173
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
174
|
+
h("ez-combo-box", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, key: name, options: options })));
|
|
175
|
+
};
|
|
176
|
+
|
|
177
|
+
const buildSearch = ({ name, label, readOnly, required }) => {
|
|
178
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
179
|
+
h("ez-search", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, key: name })));
|
|
180
|
+
};
|
|
181
|
+
|
|
182
|
+
const buildFile = ({ name, label, readOnly }) => {
|
|
183
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
|
|
184
|
+
h("ez-upload", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
|
|
185
|
+
};
|
|
186
|
+
|
|
187
|
+
const buildDate = ({ name, label, readOnly }) => {
|
|
188
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
189
|
+
h("ez-date-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
|
|
190
|
+
};
|
|
191
|
+
const buildTime = ({ name, label }) => {
|
|
192
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
193
|
+
h("ez-time-input", { label: label, "data-field-name": name, key: name })));
|
|
194
|
+
};
|
|
195
|
+
const buildTimeDate = ({ name, label }) => {
|
|
196
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
197
|
+
h("ez-date-time-input", { label: label, "data-field-name": name, key: name })));
|
|
198
|
+
};
|
|
199
|
+
|
|
200
|
+
const buildDecimal = ({ name, label, readOnly }, properties) => {
|
|
201
|
+
const precision = Number((properties === null || properties === void 0 ? void 0 : properties.precision) || 2);
|
|
202
|
+
const prettyPrecision = Number((properties === null || properties === void 0 ? void 0 : properties.prettyPrecision) || precision);
|
|
203
|
+
return buildNumeric(name, label, readOnly, precision, prettyPrecision);
|
|
204
|
+
};
|
|
205
|
+
const buildInteger = ({ name, label, readOnly }) => {
|
|
206
|
+
return buildNumeric(name, label, readOnly, 0, 0);
|
|
207
|
+
};
|
|
208
|
+
function buildNumeric(fieldName, fieldLabel, readOnly, precision, prettyPrecision) {
|
|
209
|
+
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
210
|
+
h("ez-number-input", { enabled: !readOnly, label: fieldLabel, precision: precision, prettyPrecision: prettyPrecision, "data-field-name": fieldName, key: fieldName })));
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
const uiBuilders = new Map();
|
|
214
|
+
uiBuilders.set(UserInterface.LONGTEXT, buildTextArea);
|
|
215
|
+
uiBuilders.set(UserInterface.CHECKBOX, buildCheckBox);
|
|
216
|
+
uiBuilders.set(UserInterface.SWITCH, buildSwitch);
|
|
217
|
+
uiBuilders.set(UserInterface.OPTIONSELECTOR, buildComboBox);
|
|
218
|
+
uiBuilders.set(UserInterface.SEARCH, buildSearch);
|
|
219
|
+
uiBuilders.set(UserInterface.FILE, buildFile);
|
|
220
|
+
uiBuilders.set(UserInterface.DATE, buildDate);
|
|
221
|
+
uiBuilders.set(UserInterface.TIME, buildTime);
|
|
222
|
+
uiBuilders.set(UserInterface.DATETIME, buildTimeDate);
|
|
223
|
+
uiBuilders.set(UserInterface.DECIMALNUMBER, buildDecimal);
|
|
224
|
+
uiBuilders.set(UserInterface.INTEGERNUMBER, buildInteger);
|
|
225
|
+
const buildField = (field) => {
|
|
226
|
+
const descriptor = field.descriptor;
|
|
227
|
+
const config = Object.assign({}, field.config);
|
|
228
|
+
let builder;
|
|
229
|
+
let props;
|
|
230
|
+
if (descriptor) {
|
|
231
|
+
if (!config.label) {
|
|
232
|
+
config.label = descriptor.label;
|
|
233
|
+
}
|
|
234
|
+
if (!config.name) {
|
|
235
|
+
config.name = descriptor.name;
|
|
236
|
+
}
|
|
237
|
+
if (config.required === undefined) {
|
|
238
|
+
config.required = descriptor.required;
|
|
239
|
+
}
|
|
240
|
+
if (config.readOnly === undefined) {
|
|
241
|
+
config.readOnly = descriptor.readOnly;
|
|
242
|
+
}
|
|
243
|
+
props = descriptor.properties;
|
|
244
|
+
builder = uiBuilders.get(descriptor.userInterface);
|
|
245
|
+
}
|
|
246
|
+
if (config.required) {
|
|
247
|
+
config.label = `${config.label} (obrigatório) *`;
|
|
248
|
+
}
|
|
249
|
+
if (!builder) {
|
|
250
|
+
builder = buildTextInput;
|
|
251
|
+
}
|
|
252
|
+
return builder(config, props);
|
|
253
|
+
};
|
|
254
|
+
|
|
255
|
+
const ezActionsButtonCss = ":host{--ez-actions-button__actions-list--border-radius:var(--border--radius-medium, 12px);--ez-actions-button__actions-list--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-actions-button__actions-list--background-color:var(--background--xlight, #fff);--ez-actions-button__actions-list--padding:var(--space-small, 6px);--ez-actions-button__actions-list--top-margin:var(--space-extra-small, 3px);--ez-actions-button__btn-action--min-width:400px;--ez-actions-button__btn-action--background-color:var(--background--xlight, #fff);display:flex;flex-direction:column;height:fit-content;user-select:none}.ez-actions-button__actions-list{display:flex;flex-direction:column;position:fixed;width:fit-content;height:fit-content;z-index:var(--more-visible, 2);padding:var(--ez-actions-button__actions-list--padding);margin-top:var(--ez-actions-button__actions-list--top-margin);background-color:var(--ez-actions-button__actions-list--background-color);border-radius:var(--ez-actions-button__actions-list--border-radius);box-shadow:var(--ez-actions-button__actions-list--box-shadow)}.ez-actions-button__btn-action{--ez-button--min-width:var(--ez-actions-button__btn-action--min-width);--ez-button--background-color:var(--ez-actions-button__btn-action--background-color)}.ez-actions-button__icon-left{margin-left:var(--space-small, 6px)}.ez-actions-button__icon-right{margin-right:var(--space-small, 6px)}.ez-actions-button__btn-transparent{--ez-button--background-color:transparent;--ez-button--hover--background-color:transparent;--ez-button--active--background-color:transparent;--ez-button--focus--border:none}.ez-actions-button__arrow{position:absolute;top:-13px;left:10px;border-left:10px solid transparent;border-right:10px solid transparent;border-bottom:15px solid var(--ez-actions-button__btn-action--background-color);width:0;height:0}";
|
|
143
256
|
|
|
144
257
|
let EzActionsButton$1 = class extends HTMLElement$1 {
|
|
145
258
|
constructor() {
|
|
@@ -151,14 +264,31 @@ let EzActionsButton$1 = class extends HTMLElement$1 {
|
|
|
151
264
|
* Deixa o campo disponível ou não para interação com usuário.
|
|
152
265
|
*/
|
|
153
266
|
this.enabled = true;
|
|
267
|
+
/**
|
|
268
|
+
* Define se o label será apresentado no display do componente.
|
|
269
|
+
*/
|
|
270
|
+
this.showLabel = false;
|
|
271
|
+
/**
|
|
272
|
+
* Define se na opção selecionada apresentará um ícone de check.
|
|
273
|
+
*/
|
|
274
|
+
this.checkOption = false;
|
|
275
|
+
/**
|
|
276
|
+
* Define se o background do botão será transparent.
|
|
277
|
+
*/
|
|
278
|
+
this.isTransparent = false;
|
|
279
|
+
/**
|
|
280
|
+
* Define se o elemento contará com a seta de orientação
|
|
281
|
+
*/
|
|
282
|
+
this.arrowActive = false;
|
|
154
283
|
this.innerClickCheck = (floatingContainer, node) => {
|
|
284
|
+
var _a;
|
|
155
285
|
if (node && floatingContainer) {
|
|
156
286
|
if (node === floatingContainer) {
|
|
157
287
|
return true;
|
|
158
288
|
}
|
|
159
289
|
const children = floatingContainer.children;
|
|
160
290
|
for (let i = 0; i < children.length; i++) {
|
|
161
|
-
if (children[i].shadowRoot.contains(node)) {
|
|
291
|
+
if ((_a = children[i].shadowRoot) === null || _a === void 0 ? void 0 : _a.contains(node)) {
|
|
162
292
|
return true;
|
|
163
293
|
}
|
|
164
294
|
}
|
|
@@ -166,25 +296,44 @@ let EzActionsButton$1 = class extends HTMLElement$1 {
|
|
|
166
296
|
return false;
|
|
167
297
|
};
|
|
168
298
|
}
|
|
299
|
+
/**
|
|
300
|
+
* Oculta a lista de ações
|
|
301
|
+
*/
|
|
302
|
+
async hideActions() {
|
|
303
|
+
if (this._floatingID != undefined) {
|
|
304
|
+
FloatingManager.close(this._floatingID);
|
|
305
|
+
}
|
|
306
|
+
this._floatingID = undefined;
|
|
307
|
+
}
|
|
308
|
+
/**
|
|
309
|
+
* Verifica se a lista de ações está oculta
|
|
310
|
+
*/
|
|
311
|
+
async isOpened() {
|
|
312
|
+
return this._floatingID != undefined;
|
|
313
|
+
}
|
|
169
314
|
showActions() {
|
|
315
|
+
var _a, _b;
|
|
170
316
|
if (!this.enabled) {
|
|
171
317
|
return;
|
|
172
318
|
}
|
|
173
|
-
|
|
319
|
+
const boundingHost = (_a = this._element) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect();
|
|
320
|
+
let posLeft = boundingHost ? (boundingHost.x - (this.arrowActive ? 5 : 0)) + "px" : null;
|
|
321
|
+
let options = { autoClose: true, innerClickTest: this.innerClickCheck, isFixed: true, left: posLeft };
|
|
322
|
+
this._floatingID = FloatingManager.float(this._actionsList, this._listContainer, options);
|
|
174
323
|
const docWidth = document.body.clientWidth;
|
|
175
|
-
const
|
|
176
|
-
if (
|
|
177
|
-
|
|
324
|
+
const boundingList = (_b = this._actionsList) === null || _b === void 0 ? void 0 : _b.getBoundingClientRect();
|
|
325
|
+
if ((boundingList === null || boundingList === void 0 ? void 0 : boundingList.right) > docWidth) {
|
|
326
|
+
posLeft = (docWidth - boundingList.width) + "px";
|
|
327
|
+
options = { autoClose: true, innerClickTest: this.innerClickCheck, left: posLeft };
|
|
328
|
+
FloatingManager.updateFloatPosition(this._actionsList, this._listContainer, options);
|
|
178
329
|
}
|
|
179
330
|
window.requestAnimationFrame(() => {
|
|
180
331
|
this._actionsList.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
181
332
|
});
|
|
182
333
|
}
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
}
|
|
187
|
-
this._floatingID = undefined;
|
|
334
|
+
hasLabelOrCheckOption() {
|
|
335
|
+
var _a;
|
|
336
|
+
return (this.showLabel || this.checkOption) && ((_a = this.actions) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
188
337
|
}
|
|
189
338
|
//---------------------------------------------
|
|
190
339
|
// Event handlers
|
|
@@ -193,6 +342,7 @@ let EzActionsButton$1 = class extends HTMLElement$1 {
|
|
|
193
342
|
this.showActions();
|
|
194
343
|
}
|
|
195
344
|
actionClick(action) {
|
|
345
|
+
this._selectedAction = action;
|
|
196
346
|
this.hideActions();
|
|
197
347
|
this.ezAction.emit(action);
|
|
198
348
|
}
|
|
@@ -223,9 +373,23 @@ let EzActionsButton$1 = class extends HTMLElement$1 {
|
|
|
223
373
|
if (this._floatingID == undefined) {
|
|
224
374
|
this._actionsList.remove();
|
|
225
375
|
}
|
|
376
|
+
if (this.hasLabelOrCheckOption()) {
|
|
377
|
+
if (!!this.value) {
|
|
378
|
+
this._selectedAction = this.actions.find((action) => action.value === this.value);
|
|
379
|
+
}
|
|
380
|
+
else if (!!!this._selectedAction) {
|
|
381
|
+
this._selectedAction = this.actions[0];
|
|
382
|
+
}
|
|
383
|
+
}
|
|
226
384
|
}
|
|
227
385
|
render() {
|
|
228
|
-
|
|
386
|
+
var _a;
|
|
387
|
+
return (h(Host, null, h("ez-button", { ref: elem => this._button = elem, class: this.isTransparent ? "ez-actions-button__btn-transparent" : "", label: this.showLabel && ((_a = this._selectedAction) === null || _a === void 0 ? void 0 : _a.label), enabled: this.enabled, mode: this.showLabel ? "" : "icon", iconName: this.showLabel ? "" : this.iconName || "dots-vertical", size: this.size, onClick: () => this.handlerButtonClick() }, this.showLabel &&
|
|
388
|
+
h("ez-icon", { class: "ez-actions-button__icon-left", slot: "rightIcon", iconName: this.iconName || "dots-vertical" })), h("section", { class: "ez-actions-button__list-container", ref: elem => this._listContainer = elem }, h("div", { class: "ez-actions-button__actions-list", ref: elem => this._actionsList = elem }, this.arrowActive && h("div", { class: "ez-actions-button__arrow" }), this.actions.map(action => {
|
|
389
|
+
var _a;
|
|
390
|
+
return h("ez-button", { class: "ez-actions-button__btn-action", size: "small", label: action.label, onClick: () => this.actionClick(action) }, this.checkOption && ((_a = this._selectedAction) === null || _a === void 0 ? void 0 : _a.value) === action.value &&
|
|
391
|
+
h("ez-icon", { class: "ez-actions-button__icon-right", slot: "leftIcon", iconName: "check" }));
|
|
392
|
+
})))));
|
|
229
393
|
}
|
|
230
394
|
get _element() { return this; }
|
|
231
395
|
static get style() { return ezActionsButtonCss; }
|
|
@@ -251,7 +415,7 @@ let EzApplication$1 = class extends HTMLElement$1 {
|
|
|
251
415
|
static get style() { return ezApplicationCss; }
|
|
252
416
|
};
|
|
253
417
|
|
|
254
|
-
const ezButtonCss = ":host{--ez-button--min-width:100px;--ez-button--height:42px;--ez-button__icon--width:18px;--ez-button__inline__icon--padding:12px;--ez-button--padding-top:0px;--ez-button--padding-bottom:0px;--ez-button--padding-right:var(--space--large, 24px);--ez-button--padding-left:var(--space--large, 24px);--ez-button--color:var(--title--primary, #FFF);--ez-button--font-size:var(--text--medium, 14px);--ez-button--font-family:var(--font-pattern, Arial);--ez-button--font-weight:var(--text-weight--large);--ez-button--background-color:var(--background--medium, #c0c0c0);--ez-button--border-radius:var(--border--radius-large, 12px);--ez-button--border:none;--ez-button--hover-color:var(--color--primary-600);--ez-button--hover--background-color:var(--background--medium, var(--ez-button--background-color));--ez-button--disabled-color:var(--text--disable);--ez-button--disabled--background-color:var(--color--disable-secondary);--ez-button--focus--border:var(--border--xlarge, 4px solid) var(--color--primary-300);--ez-button--focus--box-shadow:none;--ez-button--active-color:var(--color--primary-700);--ez-button--active--background-color:var(--background--strong);--ez-button--link-color:var(--color--primary, '#008561');--ez-button--link--hover-color:var(--color--primary-700, '#1C1D22');--ez-button--link--small--font-size:var(--text--small, 12px);--ez-button--link--medium--font-size:var(--text--medium, 14px);--ez-button--link--large--font-size:var(--text--large, 16px)}ez-icon{--ez-icon--color:inherit}button{display:flex;align-items:center;justify-content:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-button--min-width);height:var(--ez-button--height);font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);padding:var(--ez-button--padding-top) var(--ez-button--padding-right) var(--ez-button--padding-bottom) var(--ez-button--padding-left);border-radius:var(--ez-button--border-radius);background-color:var(--ez-button--background-color);color:var(--ez-button--color);fill:var(--ez-button--color);border:var(--ez-button--border)}button:focus{outline:var(--ez-button--focus--border);box-shadow:var(--ez-button--focus--box-shadow)}button:hover{outline:none;background-color:var(--ez-button--hover--background-color);color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}button:
|
|
418
|
+
const ezButtonCss = ":host{--ez-button--min-width:100px;--ez-button--height:42px;--ez-button__icon--width:18px;--ez-button__inline__icon--padding:12px;--ez-button--padding-top:0px;--ez-button--padding-bottom:0px;--ez-button--padding-right:var(--space--large, 24px);--ez-button--padding-left:var(--space--large, 24px);--ez-button--color:var(--title--primary, #FFF);--ez-button--font-size:var(--text--medium, 14px);--ez-button--font-family:var(--font-pattern, Arial);--ez-button--font-weight:var(--text-weight--large);--ez-button--background-color:var(--background--medium, #c0c0c0);--ez-button--border-radius:var(--border--radius-large, 12px);--ez-button--border:none;--ez-button--hover-color:var(--color--primary-600);--ez-button--hover--background-color:var(--background--medium, var(--ez-button--background-color));--ez-button--disabled-color:var(--text--disable);--ez-button--disabled--background-color:var(--color--disable-secondary);--ez-button--focus--border:var(--border--xlarge, 4px solid) var(--color--primary-300);--ez-button--focus--box-shadow:none;--ez-button--active-color:var(--color--primary-700);--ez-button--active--background-color:var(--background--strong);--ez-button--link-color:var(--color--primary, '#008561');--ez-button--link--hover-color:var(--color--primary-700, '#1C1D22');--ez-button--link--small--font-size:var(--text--small, 12px);--ez-button--link--medium--font-size:var(--text--medium, 14px);--ez-button--link--large--font-size:var(--text--large, 16px)}ez-icon{--ez-icon--color:inherit}button{display:flex;align-items:center;justify-content:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-button--min-width);height:var(--ez-button--height);font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);padding:var(--ez-button--padding-top) var(--ez-button--padding-right) var(--ez-button--padding-bottom) var(--ez-button--padding-left);border-radius:var(--ez-button--border-radius);background-color:var(--ez-button--background-color);color:var(--ez-button--color);fill:var(--ez-button--color);border:var(--ez-button--border)}button:focus{outline:var(--ez-button--focus--border);box-shadow:var(--ez-button--focus--box-shadow)}button:hover{outline:none;background-color:var(--ez-button--hover--background-color);color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}button:active{outline:none;box-shadow:none;background-color:var(--ez-button--active--background-color);color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}button:disabled{background-color:var(--ez-button--disabled--background-color);color:var(--ez-button--disabled-color);fill:var(--ez-button--disabled-color);border:none;--ez-icon--color:var(--ez-button--disabled-color);cursor:no-drop}.small{height:32px;--ez-button--font-size:var(--text--small, 12px)}.medium{height:42px}.large{height:46px}.btn-icon{padding:0px}.btn-icon--medium{width:42px;min-width:42px;height:42px}.btn-icon--small{width:32px;min-width:32px;height:32px}.btn-icon--large{width:46px;min-width:46px;height:46px}.label-icon{display:flex;flex-direction:column;align-items:center;color:var(--ez-button--color)}.label-icon:hover{color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}.label-icon:active{color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}.label-icon label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);user-select:none}button:disabled+label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);color:var(--ez-button--disabled-color);cursor:no-drop}div.label-icon{cursor:pointer}div.label-icon,button:disabled{cursor:no-drop}a{font-family:var(--ez-button--font-family);font-weight:var(--ez-button--font-weight);color:var(--ez-button--link-color);cursor:pointer;display:flex;align-items:center;justify-content:center;}a:hover{color:var(--ez-button--link--hover-color)}a.small{font-size:var(--ez-button--link--small--font-size);line-height:var(--ez-button--link--small--font-size)}a.medium{font-size:var(--ez-button--link--medium--font-size);line-height:var(--ez-button--link--medium--font-size)}a.large{font-size:var(--ez-button--link--large--font-size);line-height:var(--ez-button--link--large--font-size)}";
|
|
255
419
|
|
|
256
420
|
let EzButton$1 = class extends HTMLElement$1 {
|
|
257
421
|
constructor() {
|
|
@@ -287,18 +451,20 @@ let EzButton$1 = class extends HTMLElement$1 {
|
|
|
287
451
|
handleSlotChange(ev) {
|
|
288
452
|
const slot = ev.target;
|
|
289
453
|
const content = slot.assignedElements()[0];
|
|
290
|
-
if (
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
454
|
+
if (!!content) {
|
|
455
|
+
if (this.mode == "link") {
|
|
456
|
+
content.style.display = "inline";
|
|
457
|
+
if (slot.name == "leftIcon") {
|
|
458
|
+
content.style.paddingRight = "var(--ez-button__inline__icon--padding)";
|
|
459
|
+
}
|
|
460
|
+
else if (slot.name == "rightIcon") {
|
|
461
|
+
content.style.paddingLeft = "var(--ez-button__inline__icon--padding)";
|
|
462
|
+
}
|
|
294
463
|
}
|
|
295
|
-
else
|
|
296
|
-
content.style.
|
|
464
|
+
else {
|
|
465
|
+
content.style.setProperty("--ez-icon--color", "var(--ez-icon--color)");
|
|
297
466
|
}
|
|
298
467
|
}
|
|
299
|
-
else {
|
|
300
|
-
content.style.setProperty("--ez-icon--color", "var(--ez-icon--color)");
|
|
301
|
-
}
|
|
302
468
|
}
|
|
303
469
|
render() {
|
|
304
470
|
if (this.mode == "icon") {
|
|
@@ -323,7 +489,7 @@ let EzButton$1 = class extends HTMLElement$1 {
|
|
|
323
489
|
static get style() { return ezButtonCss; }
|
|
324
490
|
};
|
|
325
491
|
|
|
326
|
-
const ezCalendarCss = ":host{--ez-calendar--font-family:var(--font-pattern, Arial);--ez-calendar--color:var(--title--primary, #626e82);--ez-calendar--text-shadow:var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);--ez-calendar__body--background-color:var(--background--xlight, #FFF);--ez-calendar__time--background-color:var(--background--xlight, #FAFAFA);--ez-calendar__body--padding:var(--space--medium, 12px) var(--space--small, 6px);--ez-calendar__body--border-radius:var(--border--radius-medium, 12px);--ez-calendar__body--shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-container--z-index:var(--more-visible, 2);--ez-calendar__header-line--stroke:1px;--ez-calendar__header-line--color:var(--color--strokes, #C0C0C0);--ez-calendar__nav-btn--fill:var(--text--primary, #008561);--ez-calendar__nav-btn--hover--fill:var(--color--primary, #350404);--ez-calendar__nav-btn--width:10px;--ez-calendar__nav-btn--height:16px;--ez-calendar__nav-btn--previous-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z\"/></svg>');--ez-calendar__nav-btn--next-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z\"/></svg>');--ez-calendar__cell--margin:0px 1.5px;--ez-calendar__cell--width:var(--space--large, 24px);--ez-calendar__cell--padding:1.5px 0px;--ez-calendar__cell--border-radius:var(--border--radius-small, 6px);--ez-calendar__cell--over--background-color:var(--color--primary, #E2F4EF);--ez-calendar__cell--over--color:var(--color--primary-300, #008561);--ez-calendar__cell--outset--color:var(--color--disable-primary, #E5EAF0);--ez-calendar__cell--selected--background-color:var(--color--primary, #008561);--ez-calendar__cell--selected--color:var(--color--inverted, #FFF);--ez-calendar__btn-today--color:var(--color--primary);--ez-calendar__btn-today--hover--background-color:var(--color--primary-300, #E2F4EF);--ez-calendar__btn-today--border-radius:var(--border--radius-small, 6px);position:relative;display:flex;user-select:none}.calendar__container{display:flex;z-index:var(--more-visible, 2)}.calendar{z-index:var(--more-visible, 2);
|
|
492
|
+
const ezCalendarCss = ":host{--ez-calendar--font-family:var(--font-pattern, Arial);--ez-calendar--color:var(--title--primary, #626e82);--ez-calendar--text-shadow:var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);--ez-calendar__body--background-color:var(--background--xlight, #FFF);--ez-calendar__time--background-color:var(--background--xlight, #FAFAFA);--ez-calendar__body--padding:var(--space--medium, 12px) var(--space--small, 6px);--ez-calendar__body--border-radius:var(--border--radius-medium, 12px);--ez-calendar__body--shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-container--z-index:var(--more-visible, 2);--ez-calendar__header-line--stroke:1px;--ez-calendar__header-line--color:var(--color--strokes, #C0C0C0);--ez-calendar__nav-btn--fill:var(--text--primary, #008561);--ez-calendar__nav-btn--hover--fill:var(--color--primary, #350404);--ez-calendar__nav-btn--width:10px;--ez-calendar__nav-btn--height:16px;--ez-calendar__nav-btn--previous-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z\"/></svg>');--ez-calendar__nav-btn--next-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z\"/></svg>');--ez-calendar__cell--margin:0px 1.5px;--ez-calendar__cell--width:var(--space--large, 24px);--ez-calendar__cell--padding:1.5px 0px;--ez-calendar__cell--border-radius:var(--border--radius-small, 6px);--ez-calendar__cell--over--background-color:var(--color--primary, #E2F4EF);--ez-calendar__cell--over--color:var(--color--primary-300, #008561);--ez-calendar__cell--outset--color:var(--color--disable-primary, #E5EAF0);--ez-calendar__cell--selected--background-color:var(--color--primary, #008561);--ez-calendar__cell--selected--color:var(--color--inverted, #FFF);--ez-calendar__btn-today--color:var(--color--primary);--ez-calendar__btn-today--hover--background-color:var(--color--primary-300, #E2F4EF);--ez-calendar__btn-today--border-radius:var(--border--radius-small, 6px);position:relative;display:flex;user-select:none}.calendar__container{display:flex;z-index:var(--more-visible, 2)}.calendar{display:flex;flex-direction:column;z-index:var(--more-visible, 2);background-color:var(--ez-calendar__body--background-color);padding:var(--ez-calendar__body--padding);border-radius:var(--ez-calendar__body--border-radius);box-shadow:var(--ez-calendar__body--shadow)}.calendar__header{display:flex;justify-content:space-between;padding-bottom:var(--space--small, 6px);margin:0px var(--space--, 12px) var(--space--small, 6px) var(--space--, 12px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);border-bottom:solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color)}.calendar__btn-next,.calendar__btn-previous{outline:none;border:none;background-color:unset;cursor:pointer;padding:0px}.calendar__btn-next::after,.calendar__btn-previous::after{content:'';display:flex;background-color:var(--ez-calendar__nav-btn--fill);width:var(--ez-calendar__nav-btn--width);height:var(--ez-calendar__nav-btn--height)}.calendar__btn-previous::after{-webkit-mask-image:var(--ez-calendar__nav-btn--previous-image);mask-image:var(--ez-calendar__nav-btn--previous-image)}.calendar__btn-next::after{-webkit-mask-image:var(--ez-calendar__nav-btn--next-image);mask-image:var(--ez-calendar__nav-btn--next-image)}.calendar__btn-next:hover::after,.calendar__btn-previous:hover::after{background-color:var(--ez-calendar__nav-btn--hover--fill)}.calendar__lbl-month{font-weight:var(--text-weight--extra-large, 700);font-size:var(--title--small, 14px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.calendar__line{display:flex;padding:0px;margin:0px}.calendar__cell{display:flex;justify-content:center;align-content:center;cursor:pointer;font-size:var(--text--extra-small, 10px);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow);padding:var(--ez-calendar__cell--padding);margin:var(--ez-calendar__cell--margin);min-width:var(--ez-calendar__cell--width);border-radius:var(--ez-calendar__cell--border-radius)}.calendar__cell:hover{background-color:var(--ez-calendar__cell--over--background-color);color:var(--ez-calendar__cell--over--color)}.calendar__cell--secondary{color:var(--ez-calendar__cell--outset--color)}.calendar__cell--unselectable:hover{background-color:unset;border-radius:unset;cursor:unset;color:var(--ez-calendar--color)}.calendar__cell--unselectable{font-weight:var(--text-weight--large, 600);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.calendar__cell--selected,.calendar__cell--selected:hover{background-color:var(--ez-calendar__cell--selected--background-color);color:var(--ez-calendar__cell--selected--color)}.calendar__footer{display:flex;flex-direction:column}.calendar__btn-today{border:none;background-color:unset;cursor:pointer;padding:0px;font-weight:var(--text-weight--large, 600);font-size:var(--title--extra-small, 12px);font-family:var(--ez-calendar--font-family);text-shadow:var(--ez-calendar--text-shadow);color:var(--ez-calendar__btn-today--color);border-radius:var(--ez-calendar__btn-today--border-radius)}.calendar__btn-today:hover{background-color:var(--ez-calendar__btn-today--hover--background-color)}section{display:flex}.calendar-time{margin-left:-10px;display:flex;flex-direction:column;padding:12px 0px 0px 10px;background-color:var(--ez-calendar__time--background-color);border-top-right-radius:var(--ez-calendar__body--border-radius);border-bottom-right-radius:var(--ez-calendar__body--border-radius);box-shadow:var(--ez-calendar__body--shadow)}.calendar__column{height:136px;padding:0px;margin:0px;overflow:auto}.calendar__column::-webkit-scrollbar{width:0px;max-width:0px;min-width:0px}.calendar-time__header{display:flex;justify-content:space-between;padding-left:var(--space--small, 6px);padding-right:var(--space--small, 6px);padding-bottom:var(--space--small, 6px);margin:0px var(--space--, 12px) var(--space--small, 6px) var(--space--, 12px);font-weight:var(--text-weight--extra-large, 700);font-size:var(--title--small, 14px);text-shadow:var(--ez-calendar--text-shadow);border-bottom:solid var(--ez-calendar__header-line--stroke) var(--ez-calendar__header-line--color);font-family:var(--ez-calendar--font-family);color:var(--ez-calendar--color);text-shadow:var(--ez-calendar--text-shadow)}.separatorTime{color:#A2ABB9;padding:0px 1px;line-height:16px;font-size:17px;font-weight:normal}.endHidden{-webkit-mask-image:linear-gradient(180deg, #000 calc(100% - 48px), transparent 100%)}.calendar__column .calendar__cell{margin:0px;padding:1.5px 1.5px}";
|
|
327
493
|
|
|
328
494
|
let EzCalendar$1 = class extends HTMLElement$1 {
|
|
329
495
|
constructor() {
|
|
@@ -650,7 +816,7 @@ let EzCheck$1 = class extends HTMLElement$1 {
|
|
|
650
816
|
static get style() { return ezCheckCss; }
|
|
651
817
|
};
|
|
652
818
|
|
|
653
|
-
const ezChipCss = ":host{--ez-label-chip--height:30px;--ez-label-chip__label--font-size:var(--text--medium, 14px);--ez-label-chip__label--font-family:var(--font-pattern, Arial);--ez-label-chip__label--font-weight:var(--text-weight--medium, 400);--ez-label-chip__label--space--medium:var(--space--medium, 12px);--ez-label-chip__label--title--primary:var(--title--primary, #2B3A54);--ez-label-chip__label--text--primary:var(--text--primary, #626e82);--ez-label-chip__label__container--border-radius:var(--border--radius-large, 24px);--ez-label-chip__label__container--border:1px solid;--ez-label-chip__label__container--border-color-strokes:var(--color--strokes, #DCE0E8);--ez-label-chip__label__container--color-primary:var(--color--primary, #008561);--ez-label-chip__label__container-color--disable-secondary:var(--color--disable-secondary, #F2F5F8);--ez-label-chip__label__container--background-color:var(--color--primary-300);--ez-label-chip__label__container--border-color:#0085610F;--ez-label-chip__label__container--default--border-color--active:var(--color--primary, #007a5a);--ez-label-chip__label__container--default--background-color--hover:var(--color--primary-300, #f2faf8);--ez-label-chip__label__container--default--color--hover:var(--color--primary, #f2faf8);--ez-label-chip__label__container--text--disabled:var(--text--disable, #AFB6C0);--ez-label-chip__label__container--default--border-color--active:var(--color--primary)}.lbl{display:flex;white-space:nowrap;align-items:center;
|
|
819
|
+
const ezChipCss = ":host{--ez-label-chip--height:30px;--ez-label-chip__label--font-size:var(--text--medium, 14px);--ez-label-chip__label--font-family:var(--font-pattern, Arial);--ez-label-chip__label--font-weight:var(--text-weight--medium, 400);--ez-label-chip__label--space--medium:var(--space--medium, 12px);--ez-label-chip__label--title--primary:var(--title--primary, #2B3A54);--ez-label-chip__label--text--primary:var(--text--primary, #626e82);--ez-label-chip__label__container--border-radius:var(--border--radius-large, 24px);--ez-label-chip__label__container--border:1px solid;--ez-label-chip__label__container--border-color-strokes:var(--color--strokes, #DCE0E8);--ez-label-chip__label__container--color-primary:var(--color--primary, #008561);--ez-label-chip__label__container-color--disable-secondary:var(--color--disable-secondary, #F2F5F8);--ez-label-chip__label__container--background-color:var(--color--primary-300);--ez-label-chip__label__container--border-color:#0085610F;--ez-label-chip__label__container--default--border-color--active:var(--color--primary, #007a5a);--ez-label-chip__label__container--default--background-color--hover:var(--color--primary-300, #f2faf8);--ez-label-chip__label__container--default--color--hover:var(--color--primary, #f2faf8);--ez-label-chip__label__container--text--disabled:var(--text--disable, #AFB6C0);--ez-label-chip__label__container--default--border-color--active:var(--color--primary)}.lbl{display:flex;white-space:nowrap;align-items:center;cursor:pointer;user-select:none;color:var(--ez-label-chip__label--title--primary);height:var(--ez-label-chip--height);font-family:var(--ez-label-chip__label--font-family);font-size:var(--ez-label-chip__label--font-size);font-weight:var(--ez-label-chip__label--font-weight)}.lbl--active{color:var(--ez-label-chip__label__container--default--color--hover)}.lbl--disabled{color:var(--ez-label-chip__label__container--text--disabled)}.label__container{cursor:pointer;width:max-content;display:flex;flex-wrap:wrap;align-items:center;background-color:#FFFFFF;color:var(--ez-label-chip__label--text--primary);fill:var(--ez-label-chip__label--text--primary);--ez-icon--color:var(--ez-label-chip__label--text--primary);border:var(--ez-label-chip__label__container--border);border-radius:var(--ez-label-chip__label__container--border-radius);border-color:var(--ez-label-chip__label__container--border-color-strokes);padding-right:var(--ez-label-chip__label--space--medium);padding-left:var(--ez-label-chip__label--space--medium);outline-color:var(--ez-label-chip__label__container--default--border-color--active)}.label__content{display:flex;align-items:center;flex-wrap:wrap;--ez-icon--color:var(--ez-label-chip__label--text--primary)}.label__container--disabled{cursor:default;border-color:var(--ez-label-chip__label__container-color--disable-secondary);background-color:var(--ez-label-chip__label__container-color--disable-secondary);fill:var(--ez-label-chip__label__container--text--disabled);color:var(--ez-label-chip__label__container--text--disabled);--ez-icon--color:var(--ez-label-chip__label__container--text--disabled)}.label__container--active{border-color:var(--ez-label-chip__label__container--default--background-color--hover);background-color:var(--ez-label-chip__label__container--default--background-color--hover);color:var(--ez-label-chip__label__container--default--color--hover);fill:var(--ez-label-chip__label__container--default--color--hover);--ez-icon--color:var(--ez-label-chip__label__container--default--color--hover)}.label__container:hover{border-color:var(--ez-label-chip__label__container--default--border-color--active)}.label__container--disabled:hover{cursor:default;border:var(--ez-label-chip__label__container--border);border-color:var(--ez-label-chip__label__container-color--disable-secondary);background-color:var(--ez-label-chip__label__container-color--disable-secondary);fill:var(--ez-label-chip__label__container--text--disabled);color:var(--ez-label-chip__label__container--text--disabled);--ez-icon--color:var(--ez-label-chip__label__container--text--disabled)}.label__content__icon{display:flex;cursor:pointer;color:var(--ez-label-chip__label--text--primary);fill:var(--ez-label-chip__label--text--primary);--ez-icon--color:var(--ez-label-chip__label--text--primary)}.label__container--row-reverse{flex-direction:row-reverse}.label__container .btn-close{padding:0px 0px 0px 8px}.label__container--row-reverse .btn-close{padding:0px 8px 0px 0px}.cursor-disable{cursor:default}ez-icon{--ez-icon--color:inherit}";
|
|
654
820
|
|
|
655
821
|
let EzChip$1 = class extends HTMLElement$1 {
|
|
656
822
|
constructor() {
|
|
@@ -746,7 +912,7 @@ let EzChip$1 = class extends HTMLElement$1 {
|
|
|
746
912
|
static get style() { return ezChipCss; }
|
|
747
913
|
};
|
|
748
914
|
|
|
749
|
-
const ezCollapsibleBoxCss = ":host{--ez-collapsible-box--font-size:var(--title--medium, 14px);--ez-collapsible-box--font-family:var(--font-pattern, Arial);--ez-collapsible-box--font-weight:var(--text-weight--large, 600);--ez-collapsible-box--color:var(--title--primary);--ez-collapsible-box--focus--color:var(--color--primary-600);--ez-collapsible-box__icon--color:var(--ez-collapsible-box--color);--ez-collapsible-box__header--padding-top:0px;--ez-collapsible-box__header--padding-bottom:0px;--ez-collapsible-box__header--padding-right:0px;--ez-collapsible-box__header--padding-left:0px;display:flex;flex-wrap:wrap;width:100%}ez-icon{--ez-icon--color:inherit}.collapsible-box{display:flex;flex-direction:column;width:100%}.collapsible-box__header{display:flex;box-sizing:border-box;padding-top:var(--ez-collapsible-box__header--padding-top);padding-bottom:var(--ez-collapsible-box__header--padding-bottom);padding-right:var(--ez-collapsible-box__header--padding-right);padding-left:var(--ez-collapsible-box__header--padding-left)}.collapsible-box__title{position:relative;width:auto;display:flex;box-sizing:border-box;align-items:center;outline:none;border:none;background-color:unset;cursor:pointer;padding:0px;text-align:left;color:var(--ez-collapsible-box--color);--ez-icon--color:var(--ez-collapsible-box__icon--color);margin-bottom:var(--space--medium, 12px)}.collapsible-box__title:focus{color:var(--ez-collapsible-box--focus--color);--ez-icon--color:var(--ez-collapsible-box--focus--color)}.collapsible-box__label{white-space:nowrap;overflow:hidden;cursor:pointer;text-overflow:ellipsis;box-sizing:border-box;margin-left:6px;font-family:var(--ez-collapsible-box--font-family);font-size:var(--ez-collapsible-box--font-size);font-weight:var(--ez-collapsible-box--font-weight)}.collapsible-box__icon{transform:rotate(90deg) translate(0px, 14%);transition:transform var(--transition)}.collapsible-box__icon--collapsed{transform:rotate(0deg) translate(-14%, 0px)}.collapsible-box__title--icon-right{flex-direction:row-reverse}.collapsible-box__title--icon-right .collapsible-box__icon{transform:rotate(90deg) translate(0px, -14%)}.collapsible-box__title--icon-right .collapsible-box__icon--collapsed{transform:rotate(0deg) translate(14%, 0px)}.collapsible-box__title--icon-right .collapsible-box__label{margin-left:0px;margin-right:6px}.collapsible-box__title--stretched{width:100%;justify-content:space-between}.collapsible-box__title--no-margin{margin-bottom:0}.collapsible-box__content{display:flex;flex-wrap:wrap;width:100%;height:0px;max-height:0px;opacity:0;overflow:hidden;transition:all var(--transition, 0.5s)}.collapsible-box__content--show{height:100%;max-height:none;opacity:1;overflow:visible;transition:all var(--transition, 0.5s)}.font--x-small{font-size:10px}.font--small{font-size:12px}.font--medium{font-size:14px}.font--large{font-size:16px}.font--x-large{font-size:20px}";
|
|
915
|
+
const ezCollapsibleBoxCss = ":host{--ez-collapsible-box--font-size:var(--title--medium, 14px);--ez-collapsible-box--font-family:var(--font-pattern, Arial);--ez-collapsible-box--font-weight:var(--text-weight--large, 600);--ez-collapsible-box--color:var(--title--primary);--ez-collapsible-box--focus--color:var(--color--primary-600);--ez-collapsible-box__icon--color:var(--ez-collapsible-box--color);--ez-collapsible-box__header--padding-top:0px;--ez-collapsible-box__header--padding-bottom:0px;--ez-collapsible-box__header--padding-right:0px;--ez-collapsible-box__header--padding-left:0px;display:flex;flex-wrap:wrap;width:100%}ez-icon{--ez-icon--color:inherit}.collapsible-box{display:flex;flex-direction:column;width:100%}.collapsible-box__header{display:flex;box-sizing:border-box;padding-top:var(--ez-collapsible-box__header--padding-top);padding-bottom:var(--ez-collapsible-box__header--padding-bottom);padding-right:var(--ez-collapsible-box__header--padding-right);padding-left:var(--ez-collapsible-box__header--padding-left)}.collapsible-box__title{position:relative;width:auto;display:flex;box-sizing:border-box;align-items:center;outline:none;border:none;background-color:unset;cursor:pointer;padding:0px;text-align:left;color:var(--ez-collapsible-box--color);--ez-icon--color:var(--ez-collapsible-box__icon--color);margin-bottom:var(--space--medium, 12px)}.collapsible-box__title:focus{color:var(--ez-collapsible-box--focus--color);--ez-icon--color:var(--ez-collapsible-box--focus--color)}.collapsible-box__label{display:flex;white-space:nowrap;overflow:hidden;cursor:pointer;text-overflow:ellipsis;box-sizing:border-box;margin-left:6px;gap:6px;font-family:var(--ez-collapsible-box--font-family);font-size:var(--ez-collapsible-box--font-size);font-weight:var(--ez-collapsible-box--font-weight)}.collapsible-box__label ez-icon{visibility:hidden;transition:0.25s linear}.collapsible-box__label:hover ez-icon{visibility:visible}.collapsible-box__text-edit{margin-left:6px}.collapsible-box__icon{transform:rotate(90deg) translate(0px, 14%);transition:transform var(--transition)}.collapsible-box__icon--collapsed{transform:rotate(0deg) translate(-14%, 0px)}.collapsible-box__title--icon-right{flex-direction:row-reverse}.collapsible-box__title--icon-right .collapsible-box__icon{transform:rotate(90deg) translate(0px, -14%)}.collapsible-box__title--icon-right .collapsible-box__icon--collapsed{transform:rotate(0deg) translate(14%, 0px)}.collapsible-box__title--icon-right .collapsible-box__label{margin-left:0px;margin-right:6px}.collapsible-box__title--stretched{width:100%;justify-content:space-between}.collapsible-box__title--no-margin{margin-bottom:0}.collapsible-box__content{display:flex;flex-wrap:wrap;width:100%;height:0px;max-height:0px;opacity:0;overflow:hidden;transition:all var(--transition, 0.5s)}.collapsible-box__content--show{height:100%;max-height:none;opacity:1;overflow:visible;transition:all var(--transition, 0.5s)}.font--x-small{font-size:10px}.font--small{font-size:12px}.font--medium{font-size:14px}.font--large{font-size:16px}.font--x-large{font-size:20px}";
|
|
750
916
|
|
|
751
917
|
let EzCollapsibleBox$1 = class extends HTMLElement$1 {
|
|
752
918
|
constructor() {
|
|
@@ -754,6 +920,10 @@ let EzCollapsibleBox$1 = class extends HTMLElement$1 {
|
|
|
754
920
|
this.__registerHost();
|
|
755
921
|
this.__attachShadow();
|
|
756
922
|
this.ezChange = createEvent(this, "ezChange", 7);
|
|
923
|
+
this.ezRemove = createEvent(this, "ezRemove", 7);
|
|
924
|
+
this.ezSaveEditLabel = createEvent(this, "ezSaveEditLabel", 7);
|
|
925
|
+
this.ezEditLabelMode = createEvent(this, "ezEditLabelMode", 7);
|
|
926
|
+
this._activeEditText = false;
|
|
757
927
|
/**
|
|
758
928
|
* Valor externalizado que garante a exibição ou não do componente.
|
|
759
929
|
*/
|
|
@@ -770,9 +940,14 @@ let EzCollapsibleBox$1 = class extends HTMLElement$1 {
|
|
|
770
940
|
* Define se o titulo irá ocupar toda a largura do componente.
|
|
771
941
|
*/
|
|
772
942
|
this.stretchTitle = false;
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
943
|
+
/**
|
|
944
|
+
* Ativa o ícone para remoção do componente.
|
|
945
|
+
*/
|
|
946
|
+
this.removable = false;
|
|
947
|
+
/**
|
|
948
|
+
* Ativa o ícone para edição do componente.
|
|
949
|
+
*/
|
|
950
|
+
this.editable = false;
|
|
776
951
|
}
|
|
777
952
|
/**
|
|
778
953
|
* Esconde ou revela o conteúdo do componente.
|
|
@@ -780,6 +955,23 @@ let EzCollapsibleBox$1 = class extends HTMLElement$1 {
|
|
|
780
955
|
async showHide() {
|
|
781
956
|
this.value = !this.value;
|
|
782
957
|
}
|
|
958
|
+
/**
|
|
959
|
+
* Aplica focus no campo de edição de título.
|
|
960
|
+
*/
|
|
961
|
+
async applyFocusTextEdit() {
|
|
962
|
+
var _a;
|
|
963
|
+
(_a = this._refTextEdit) === null || _a === void 0 ? void 0 : _a.applyFocusSelect();
|
|
964
|
+
}
|
|
965
|
+
/**
|
|
966
|
+
* Fecha a edição de título.
|
|
967
|
+
*/
|
|
968
|
+
async cancelEdition() {
|
|
969
|
+
this._activeEditText = false;
|
|
970
|
+
this.ezEditLabelMode.emit(this._activeEditText);
|
|
971
|
+
}
|
|
972
|
+
observeCollapsedValue() {
|
|
973
|
+
this.ezChange.emit(this.value);
|
|
974
|
+
}
|
|
783
975
|
/**
|
|
784
976
|
* Retorna o tamanho configurado do texto e do ícone.
|
|
785
977
|
*/
|
|
@@ -790,19 +982,68 @@ let EzCollapsibleBox$1 = class extends HTMLElement$1 {
|
|
|
790
982
|
const sizeCustom = sizeAlias.includes(sizeLowerCase) ? sizeLowerCase.replace('x', 'x-') : sizeLowerCase;
|
|
791
983
|
return sizeList.includes(sizeCustom) ? sizeCustom : "small";
|
|
792
984
|
}
|
|
985
|
+
removeElement() {
|
|
986
|
+
this._hostElement && this._hostElement.remove();
|
|
987
|
+
this.ezRemove.emit(this);
|
|
988
|
+
}
|
|
989
|
+
editLabel(evt) {
|
|
990
|
+
evt.preventDefault();
|
|
991
|
+
evt.stopPropagation();
|
|
992
|
+
this._activeEditText = true;
|
|
993
|
+
this.ezEditLabelMode.emit(this._activeEditText);
|
|
994
|
+
}
|
|
995
|
+
confirmRemove(evt) {
|
|
996
|
+
evt.preventDefault();
|
|
997
|
+
evt.stopPropagation();
|
|
998
|
+
ApplicationUtils.confirm("Aviso", `Deseja realmente remover o grupo <b>${this.label}</b>?`)
|
|
999
|
+
.then((canRemove) => {
|
|
1000
|
+
if (canRemove) {
|
|
1001
|
+
this.removeElement();
|
|
1002
|
+
}
|
|
1003
|
+
});
|
|
1004
|
+
}
|
|
1005
|
+
saveEditionText(editDetails) {
|
|
1006
|
+
const { newValue } = editDetails.detail;
|
|
1007
|
+
let canSave = true;
|
|
1008
|
+
if (this.conditionalSave) {
|
|
1009
|
+
canSave = this.conditionalSave(newValue);
|
|
1010
|
+
}
|
|
1011
|
+
if (this.label !== newValue && canSave) {
|
|
1012
|
+
this.label = newValue;
|
|
1013
|
+
this._activeEditText = false;
|
|
1014
|
+
this.ezSaveEditLabel.emit(editDetails.detail);
|
|
1015
|
+
this.ezEditLabelMode.emit(this._activeEditText);
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
getStyledLabel() {
|
|
1019
|
+
if (this._refLabel == undefined) {
|
|
1020
|
+
return;
|
|
1021
|
+
}
|
|
1022
|
+
let styledLabel = {
|
|
1023
|
+
fontSize: window.getComputedStyle(this._refLabel).getPropertyValue('font-size'),
|
|
1024
|
+
fontWeight: window.getComputedStyle(this._refLabel).getPropertyValue('font-weight'),
|
|
1025
|
+
fontFamily: window.getComputedStyle(this._refLabel).getPropertyValue('font-family')
|
|
1026
|
+
};
|
|
1027
|
+
return styledLabel;
|
|
1028
|
+
}
|
|
793
1029
|
render() {
|
|
794
|
-
return (h("div", { class: "collapsible-box" }, h("div", { class: "collapsible-box__header" }, h("button", { onClick: () => this.showHide(), class: "collapsible-box__title" +
|
|
1030
|
+
return (h("div", { class: "collapsible-box" }, h("div", { class: "collapsible-box__header" }, h("button", Object.assign({}, (!this._activeEditText ? { onClick: () => { this.showHide(); } } : null), { class: "collapsible-box__title" +
|
|
795
1031
|
(this.iconPlacement === "right" ? " collapsible-box__title--icon-right" : "") +
|
|
796
1032
|
(this.stretchTitle ? " collapsible-box__title--stretched" : "") +
|
|
797
|
-
(this.value ? " collapsible-box__title--no-margin" : "") }, h("ez-icon", { slot: "icon", "icon-name": "chevron-right", size: this.getHeaderSize(), class: "collapsible-box__icon collapsible-box__icon--" + this.getHeaderSize() + (this.value ? " collapsible-box__icon--collapsed" : "") }),
|
|
1033
|
+
(this.value ? " collapsible-box__title--no-margin" : "") }), h("ez-icon", { slot: "icon", "icon-name": "chevron-right", size: this.getHeaderSize(), class: "collapsible-box__icon collapsible-box__icon--" + this.getHeaderSize() + (this.value ? " collapsible-box__icon--collapsed" : "") }), !this._activeEditText ?
|
|
1034
|
+
h("label", { class: "collapsible-box__label font--" + this.getHeaderSize(), title: this.label, ref: elem => this._refLabel = elem }, h("span", null, this.label), this.editable &&
|
|
1035
|
+
h("ez-icon", { slot: "icon", "icon-name": "edit", onClick: (evt) => this.editLabel(evt), title: "Editar" }), this.removable &&
|
|
1036
|
+
h("ez-icon", { slot: "icon", "icon-name": "delete", onClick: (evt) => this.confirmRemove(evt), title: "Remover" })) :
|
|
1037
|
+
h("ez-text-edit", { class: "collapsible-box__text-edit", ref: ref => this._refTextEdit = ref, value: this.label, styled: this.getStyledLabel(), onSaveEdition: (ev) => this.saveEditionText(ev), onCancelEdition: () => this.cancelEdition() }))), h("div", { class: "collapsible-box__content" + (this.value ? "" : " collapsible-box__content--show") }, h("slot", null))));
|
|
798
1038
|
}
|
|
1039
|
+
get _hostElement() { return this; }
|
|
799
1040
|
static get watchers() { return {
|
|
800
1041
|
"value": ["observeCollapsedValue"]
|
|
801
1042
|
}; }
|
|
802
1043
|
static get style() { return ezCollapsibleBoxCss; }
|
|
803
1044
|
};
|
|
804
1045
|
|
|
805
|
-
const ezComboBoxCss = ":host{--ez-combo-box--height:42px;--ez-combo-box--width:100%;--ez-combo-box__icon--width:48px;--ez-combo-box--border-radius:var(--border--radius-medium, 12px);--ez-combo-box--border-radius-small:var(--border--radius-small, 6px);--ez-combo-box--font-size:var(--text--medium, 14px);--ez-combo-box--font-family:var(--font-pattern, Arial);--ez-combo-box--font-weight--large:var(--text-weight--large, 500);--ez-combo-box--font-weight--medium:var(--text-weight--medium, 400);--ez-combo-box--background-color--xlight:var(--background--xlight, #fff);--ez-combo-box--background-medium:var(--background--medium, #f0f3f7);--ez-combo-box__input--background-color:var(--background--medium, #e0e0e0);--ez-combo-box__input--border:var(--border--medium, 2px solid);--ez-combo-box__input--border-color:var(--ez-combo-box__input--background-color);--ez-combo-box__input--focus--border-color:var(--color--primary, #008561);--ez-combo-box__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-combo-box__input--disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__input--error--border-color:#CC2936;--ez-combo-box__btn--color:var(--title--primary, #2B3A54);--ez-combo-box__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__btn-hover--color:var(--color--primary, #4e4e4e);--ez-combo-box__label--color:var(--title--primary, #2B3A54);--ez-combo-box__list-title--primary:var(--title--primary, #2B3A54);--ez-combo-box__list-text--primary:var(--text--primary, #626e82);--ez-combo-box__list-height:calc(var(--ez-combo-box--font-size) + var(--ez-combo-box--space--medium));--ez-combo-box--space--medium:var(--space--medium, 12px);--ez-combo-box--space--small:var(--space--small, 6px);--ez-combo-box__list-scrollbar--background-color-primary:var(--scrollbar--primary, #2B3A54);--ez-combo-box__list-scrollbar--background-color-secondary:var(--scrollbar--secondary, #E5EAF0);--ez-combo-box__list-scrollbar--border-radius:var(--border--radius-small, 6px);--ez-combo-box__list-scrollbar--width:var(--space--medium, 12px);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-combo-box--width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.list-container{position:relative;width:100%}.list-wrapper{display:flex;flex-direction:column;box-sizing:border-box;width:100%;z-index:var(--more-visible, 2);max-height:calc(4*var(--ez-combo-box__list-height) + 2*var(--ez-combo-box--space--small));background-color:var(--ez-combo-box--background-color--xlight);border-radius:var(--ez-combo-box--border-radius);box-shadow:var(--shadow, 0px 0px 16px 0px #000);padding:var(--ez-combo-box--space--small)}.list-options{box-sizing:border-box;width:100%;height:100%;display:flex;flex-direction:column;scroll-behavior:smooth;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--ez-combo-box__list-scrollbar--background-color-primary) var(--ez-combo-box__list-scrollbar--background-color-secondary)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-combo-box__list-scrollbar--background-color-secondary);border-radius:var(--ez-combo-box__list-scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-combo-box__list-scrollbar--background-color-primary);border-radius:var(--ez-combo-box__list-scrollbar--border-radius)}.list-options::-webkit-scrollbar{background-color:var(--ez-combo-box__list-scrollbar--background-color-secondary);width:var(--ez-combo-box__list-scrollbar--width);max-width:var(--ez-combo-box__list-scrollbar--width);min-width:var(--ez-combo-box__list-scrollbar--width)}.
|
|
1046
|
+
const ezComboBoxCss = ":host{--ez-combo-box--height:42px;--ez-combo-box--width:100%;--ez-combo-box__icon--width:48px;--ez-combo-box--border-radius:var(--border--radius-medium, 12px);--ez-combo-box--border-radius-small:var(--border--radius-small, 6px);--ez-combo-box--font-size:var(--text--medium, 14px);--ez-combo-box--font-family:var(--font-pattern, Arial);--ez-combo-box--font-weight--large:var(--text-weight--large, 500);--ez-combo-box--font-weight--medium:var(--text-weight--medium, 400);--ez-combo-box--background-color--xlight:var(--background--xlight, #fff);--ez-combo-box--background-medium:var(--background--medium, #f0f3f7);--ez-combo-box__input--background-color:var(--background--medium, #e0e0e0);--ez-combo-box__input--border:var(--border--medium, 2px solid);--ez-combo-box__input--border-color:var(--ez-combo-box__input--background-color);--ez-combo-box__input--focus--border-color:var(--color--primary, #008561);--ez-combo-box__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-combo-box__input--disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__input--error--border-color:#CC2936;--ez-combo-box__btn--color:var(--title--primary, #2B3A54);--ez-combo-box__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__btn-hover--color:var(--color--primary, #4e4e4e);--ez-combo-box__label--color:var(--title--primary, #2B3A54);--ez-combo-box__list-title--primary:var(--title--primary, #2B3A54);--ez-combo-box__list-text--primary:var(--text--primary, #626e82);--ez-combo-box__list-height:calc(var(--ez-combo-box--font-size) + var(--ez-combo-box--space--medium));--ez-combo-box--space--medium:var(--space--medium, 12px);--ez-combo-box--space--small:var(--space--small, 6px);--ez-combo-box__list-scrollbar--background-color-primary:var(--scrollbar--primary, #2B3A54);--ez-combo-box__list-scrollbar--background-color-secondary:var(--scrollbar--secondary, #E5EAF0);--ez-combo-box__list-scrollbar--border-radius:var(--border--radius-small, 6px);--ez-combo-box__list-scrollbar--width:var(--space--medium, 12px);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-combo-box--width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.list-container{position:relative;width:100%}.list-wrapper{display:flex;flex-direction:column;box-sizing:border-box;width:100%;z-index:var(--more-visible, 2);max-height:calc(4*var(--ez-combo-box__list-height) + 2*var(--ez-combo-box--space--small));background-color:var(--ez-combo-box--background-color--xlight);border-radius:var(--ez-combo-box--border-radius);box-shadow:var(--shadow, 0px 0px 16px 0px #000);padding:var(--ez-combo-box--space--small)}.list-options{box-sizing:border-box;width:100%;height:100%;display:flex;flex-direction:column;scroll-behavior:smooth;overflow:auto;scrollbar-width:thin;scrollbar-color:var(--ez-combo-box__list-scrollbar--background-color-primary) var(--ez-combo-box__list-scrollbar--background-color-secondary)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-combo-box__list-scrollbar--background-color-secondary);border-radius:var(--ez-combo-box__list-scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-combo-box__list-scrollbar--background-color-primary);border-radius:var(--ez-combo-box__list-scrollbar--border-radius)}.list-options::-webkit-scrollbar{background-color:var(--ez-combo-box__list-scrollbar--background-color-secondary);width:var(--ez-combo-box__list-scrollbar--width);max-width:var(--ez-combo-box__list-scrollbar--width);min-width:var(--ez-combo-box__list-scrollbar--width)}.item{display:flex;align-items:center;width:100%;box-sizing:border-box;list-style-type:none;cursor:pointer;border-radius:var(--ez-combo-box--border-radius-small);padding:0 var(--ez-combo-box--space--small);min-height:var(--ez-combo-box__list-height);gap:var(--space--small, 6px)}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-combo-box__list-title--primary);font-weight:var(--ez-combo-box--font-weight--large);font-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--font-size)}.item__value{text-align:center;color:var(--ez-combo-box__list-text--primary)}.item__value--hidden{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}.item__label{text-align:left}.message{text-align:center;display:flex;justify-content:center;align-items:center;list-style-type:none;min-height:calc(var(--ez-combo-box__list-height) * 1.5)}.message__no-result{color:var(--ez-combo-box__list-title--primary);font-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--font-size)}.message__loading{border-radius:50%;width:16px;height:16px;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;border:3px solid var(--ez-combo-box__list-title--primary);border-top:3px solid transparent}li:hover{background-color:var(--ez-combo-box--background-medium)}.preselected{background-color:var(--background--medium)}.btn{outline:none;border:none;background:none;cursor:pointer;color:var(--ez-combo-box__btn--color)}.btn:disabled{cursor:unset;color:var(--ez-combo-box__btn-disabled--color)}.btn:disabled:hover{cursor:unset;color:var(--ez-combo-box__btn-disabled--color)}.btn:hover{color:var(--ez-combo-box__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
|
|
806
1047
|
|
|
807
1048
|
let EzComboBox$1 = class extends HTMLElement$1 {
|
|
808
1049
|
constructor() {
|
|
@@ -937,11 +1178,11 @@ let EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
937
1178
|
return 0;
|
|
938
1179
|
}
|
|
939
1180
|
getWidthValue(value) {
|
|
940
|
-
if (this._itemValueBasis) {
|
|
1181
|
+
if (this._itemValueBasis != undefined) {
|
|
941
1182
|
const span = this._itemValueBasis;
|
|
942
|
-
if (value) {
|
|
1183
|
+
if (value != undefined) {
|
|
943
1184
|
span.innerHTML = value;
|
|
944
|
-
return span.clientWidth > 0 ? (span.clientWidth +
|
|
1185
|
+
return span.clientWidth > 0 ? (span.clientWidth + 2) : 0;
|
|
945
1186
|
}
|
|
946
1187
|
else {
|
|
947
1188
|
span.innerHTML = "";
|
|
@@ -950,8 +1191,9 @@ let EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
950
1191
|
return 0;
|
|
951
1192
|
}
|
|
952
1193
|
buildItem(opt, index) {
|
|
1194
|
+
const widthValue = this.showOptionValue && this._maxWidthValue > 0 ? `${this._maxWidthValue}px` : '';
|
|
953
1195
|
return h("li", { class: index === this._preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.selectOption(opt), onMouseOver: () => this._preSelection = undefined }, this.showOptionValue
|
|
954
|
-
? h("span", { class: "item__value", title: opt.value, style: { width:
|
|
1196
|
+
? h("span", { class: "item__value", title: opt.value, style: { width: widthValue, minWidth: widthValue, maxWidth: widthValue } }, opt.value)
|
|
955
1197
|
: undefined, h("span", { class: "item__label", title: opt.label }, opt.label));
|
|
956
1198
|
}
|
|
957
1199
|
showOptions() {
|
|
@@ -1051,6 +1293,7 @@ let EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
1051
1293
|
}
|
|
1052
1294
|
else {
|
|
1053
1295
|
this.setInputValue();
|
|
1296
|
+
this.hideOptions();
|
|
1054
1297
|
}
|
|
1055
1298
|
if (this.searchMode) {
|
|
1056
1299
|
this._visibleOptions = [];
|
|
@@ -1063,7 +1306,8 @@ let EzComboBox$1 = class extends HTMLElement$1 {
|
|
|
1063
1306
|
this._criteria = argument;
|
|
1064
1307
|
this._startLoading = true;
|
|
1065
1308
|
if (this.optionLoader) {
|
|
1066
|
-
|
|
1309
|
+
const searchArgument = { mode, argument };
|
|
1310
|
+
this.updateSource(this.optionLoader(searchArgument));
|
|
1067
1311
|
}
|
|
1068
1312
|
else {
|
|
1069
1313
|
this.updateSource(this.options);
|
|
@@ -1292,8 +1536,8 @@ let EzDateInput$1 = class extends HTMLElement$1 {
|
|
|
1292
1536
|
}
|
|
1293
1537
|
observeValue(newValue, oldValue) {
|
|
1294
1538
|
if (this._textInput && newValue != oldValue) {
|
|
1295
|
-
const newValueValidated =
|
|
1296
|
-
const oldValueValidated =
|
|
1539
|
+
const newValueValidated = DateUtils$1.validateDate(newValue);
|
|
1540
|
+
const oldValueValidated = DateUtils$1.validateDate(oldValue);
|
|
1297
1541
|
if ((newValueValidated === null || newValueValidated === void 0 ? void 0 : newValueValidated.getTime()) !== (oldValueValidated === null || oldValueValidated === void 0 ? void 0 : oldValueValidated.getTime())) {
|
|
1298
1542
|
const textValue = this.getTextValue(newValueValidated) || '';
|
|
1299
1543
|
const parsedDate = DateUtils$1.strToDate(textValue);
|
|
@@ -1326,8 +1570,8 @@ let EzDateInput$1 = class extends HTMLElement$1 {
|
|
|
1326
1570
|
return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
|
|
1327
1571
|
}
|
|
1328
1572
|
changeValue(newValue) {
|
|
1329
|
-
const currentValue =
|
|
1330
|
-
const newValueValidated =
|
|
1573
|
+
const currentValue = DateUtils$1.validateDate(this.value);
|
|
1574
|
+
const newValueValidated = DateUtils$1.validateDate(newValue);
|
|
1331
1575
|
if ((currentValue === null || currentValue === void 0 ? void 0 : currentValue.getTime()) !== (newValueValidated === null || newValueValidated === void 0 ? void 0 : newValueValidated.getTime())) {
|
|
1332
1576
|
this.value = newValueValidated;
|
|
1333
1577
|
}
|
|
@@ -1350,8 +1594,8 @@ let EzDateInput$1 = class extends HTMLElement$1 {
|
|
|
1350
1594
|
const newValue = DateUtils$1.strToDate(strValue);
|
|
1351
1595
|
if (newValue || !strValue) {
|
|
1352
1596
|
this.errorMessage = "";
|
|
1353
|
-
const currentValue =
|
|
1354
|
-
const newValueValidated =
|
|
1597
|
+
const currentValue = DateUtils$1.validateDate(this.value);
|
|
1598
|
+
const newValueValidated = DateUtils$1.validateDate(newValue);
|
|
1355
1599
|
if ((currentValue === null || currentValue === void 0 ? void 0 : currentValue.getTime()) === (newValueValidated === null || newValueValidated === void 0 ? void 0 : newValueValidated.getTime())) {
|
|
1356
1600
|
if (newValueValidated) {
|
|
1357
1601
|
this._textInput.value = this.getTextValue(newValueValidated) || '';
|
|
@@ -1375,8 +1619,8 @@ let EzDateInput$1 = class extends HTMLElement$1 {
|
|
|
1375
1619
|
handleInput(event) {
|
|
1376
1620
|
const strValue = this._textInput.value;
|
|
1377
1621
|
const newValue = DateUtils$1.strToDate(strValue);
|
|
1378
|
-
const currentValue =
|
|
1379
|
-
const newValueValidated =
|
|
1622
|
+
const currentValue = DateUtils$1.validateDate(this.value);
|
|
1623
|
+
const newValueValidated = DateUtils$1.validateDate(newValue);
|
|
1380
1624
|
if ((currentValue === null || currentValue === void 0 ? void 0 : currentValue.getTime()) !== (newValueValidated === null || newValueValidated === void 0 ? void 0 : newValueValidated.getTime())) {
|
|
1381
1625
|
this._focused = true;
|
|
1382
1626
|
this.ezStartChange.emit({ waitmessage: "", blocking: false });
|
|
@@ -1385,11 +1629,6 @@ let EzDateInput$1 = class extends HTMLElement$1 {
|
|
|
1385
1629
|
this.changeValue(new Date());
|
|
1386
1630
|
}
|
|
1387
1631
|
}
|
|
1388
|
-
validateValue(value) {
|
|
1389
|
-
return value instanceof Date && !isNaN(value.valueOf())
|
|
1390
|
-
? DateUtils$1.clearTime(value)
|
|
1391
|
-
: undefined;
|
|
1392
|
-
}
|
|
1393
1632
|
setInputValue() {
|
|
1394
1633
|
const textValue = this.getTextValue(this.value) || '';
|
|
1395
1634
|
if ((this._textInput.value || '') !== textValue) {
|
|
@@ -1452,8 +1691,8 @@ let EzDateTimeInput$1 = class extends HTMLElement$1 {
|
|
|
1452
1691
|
}
|
|
1453
1692
|
observeValue(newValue, oldValue) {
|
|
1454
1693
|
if (this._textInput && newValue != oldValue) {
|
|
1455
|
-
const newValueValidated =
|
|
1456
|
-
const oldValueValidated =
|
|
1694
|
+
const newValueValidated = DateUtils$1.validateDate(newValue, true);
|
|
1695
|
+
const oldValueValidated = DateUtils$1.validateDate(oldValue, true);
|
|
1457
1696
|
if ((newValueValidated === null || newValueValidated === void 0 ? void 0 : newValueValidated.getTime()) !== (oldValueValidated === null || oldValueValidated === void 0 ? void 0 : oldValueValidated.getTime())) {
|
|
1458
1697
|
const textValue = this.getTextValue(newValueValidated) || '';
|
|
1459
1698
|
const parsedDate = this.getParsedDateTime(textValue);
|
|
@@ -1522,8 +1761,8 @@ let EzDateTimeInput$1 = class extends HTMLElement$1 {
|
|
|
1522
1761
|
input.setSelectionRange(selectIni, selectFin);
|
|
1523
1762
|
}
|
|
1524
1763
|
changeValue(newValue) {
|
|
1525
|
-
const currentValue =
|
|
1526
|
-
const newValueValidated =
|
|
1764
|
+
const currentValue = DateUtils$1.validateDate(this.value, true);
|
|
1765
|
+
const newValueValidated = DateUtils$1.validateDate(newValue, true);
|
|
1527
1766
|
if ((currentValue === null || currentValue === void 0 ? void 0 : currentValue.getTime()) !== (newValueValidated === null || newValueValidated === void 0 ? void 0 : newValueValidated.getTime())) {
|
|
1528
1767
|
this.value = newValueValidated;
|
|
1529
1768
|
}
|
|
@@ -1554,8 +1793,8 @@ let EzDateTimeInput$1 = class extends HTMLElement$1 {
|
|
|
1554
1793
|
const newValue = this.getParsedDateTime();
|
|
1555
1794
|
if (newValue || !strValue) {
|
|
1556
1795
|
this.errorMessage = "";
|
|
1557
|
-
const currentValue =
|
|
1558
|
-
const newValueValidated =
|
|
1796
|
+
const currentValue = DateUtils$1.validateDate(this.value, true);
|
|
1797
|
+
const newValueValidated = DateUtils$1.validateDate(newValue, true);
|
|
1559
1798
|
if ((currentValue === null || currentValue === void 0 ? void 0 : currentValue.getTime()) === (newValueValidated === null || newValueValidated === void 0 ? void 0 : newValueValidated.getTime())) {
|
|
1560
1799
|
if (newValueValidated) {
|
|
1561
1800
|
this._textInput.value = this.getTextValue(newValueValidated) || '';
|
|
@@ -1584,15 +1823,10 @@ let EzDateTimeInput$1 = class extends HTMLElement$1 {
|
|
|
1584
1823
|
};
|
|
1585
1824
|
return d ? (new Intl.DateTimeFormat('pt-BR', this.showSeconds ? optionsSecond : options).format(d)) : undefined;
|
|
1586
1825
|
}
|
|
1587
|
-
validateValue(value) {
|
|
1588
|
-
return value instanceof Date && !isNaN(value.valueOf())
|
|
1589
|
-
? value
|
|
1590
|
-
: undefined;
|
|
1591
|
-
}
|
|
1592
1826
|
handleInput(event) {
|
|
1593
1827
|
const newValue = this.getParsedDateTime();
|
|
1594
|
-
const currentValue =
|
|
1595
|
-
const newValueValidated =
|
|
1828
|
+
const currentValue = DateUtils$1.validateDate(this.value, true);
|
|
1829
|
+
const newValueValidated = DateUtils$1.validateDate(newValue, true);
|
|
1596
1830
|
if ((currentValue === null || currentValue === void 0 ? void 0 : currentValue.getTime()) !== (newValueValidated === null || newValueValidated === void 0 ? void 0 : newValueValidated.getTime())) {
|
|
1597
1831
|
this._focused = true;
|
|
1598
1832
|
this.ezStartChange.emit({ waitmessage: "", blocking: false });
|
|
@@ -1837,119 +2071,6 @@ let EzFilterInput$1 = class extends HTMLElement$1 {
|
|
|
1837
2071
|
static get style() { return ezFilterInputCss; }
|
|
1838
2072
|
};
|
|
1839
2073
|
|
|
1840
|
-
const buildTextArea = ({ name, label, readOnly }) => {
|
|
1841
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small", key: name },
|
|
1842
|
-
h("ez-text-area", { enabled: !readOnly, label: label, "data-field-name": name })));
|
|
1843
|
-
};
|
|
1844
|
-
|
|
1845
|
-
const buildTextInput = ({ name, label, readOnly }) => {
|
|
1846
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
1847
|
-
h("ez-text-input", { label: label, "data-field-name": name, key: name, enabled: !readOnly })));
|
|
1848
|
-
};
|
|
1849
|
-
|
|
1850
|
-
const buildSwitch = (fieldConfig) => {
|
|
1851
|
-
return buildField$1(fieldConfig.name, fieldConfig.label, fieldConfig.readOnly, true);
|
|
1852
|
-
};
|
|
1853
|
-
const buildCheckBox = (fieldConfig) => {
|
|
1854
|
-
return buildField$1(fieldConfig.name, fieldConfig.label, fieldConfig.readOnly, false);
|
|
1855
|
-
};
|
|
1856
|
-
function buildField$1(fieldName, fieldLabel, readOnly, switchMode = false) {
|
|
1857
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-align--middle ez-padding-horizontal--small ez-padding-bottom--large" },
|
|
1858
|
-
h("ez-check", { enabled: !readOnly, label: fieldLabel, mode: switchMode ? "switch" : "regular", "data-field-name": fieldName, key: fieldName })));
|
|
1859
|
-
}
|
|
1860
|
-
|
|
1861
|
-
const buildComboBox = ({ name, label, readOnly, required }, properties) => {
|
|
1862
|
-
const prop = properties === null || properties === void 0 ? void 0 : properties.options;
|
|
1863
|
-
let options;
|
|
1864
|
-
if (typeof prop === "string") {
|
|
1865
|
-
const parsed = JSON.parse(prop);
|
|
1866
|
-
options = Object.keys(parsed).map(key => { return { value: key, label: parsed[key] }; });
|
|
1867
|
-
}
|
|
1868
|
-
else {
|
|
1869
|
-
options = prop;
|
|
1870
|
-
}
|
|
1871
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
1872
|
-
h("ez-combo-box", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, key: name, options: options })));
|
|
1873
|
-
};
|
|
1874
|
-
|
|
1875
|
-
const buildSearch = ({ name, label, readOnly, required }) => {
|
|
1876
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
1877
|
-
h("ez-search", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, key: name })));
|
|
1878
|
-
};
|
|
1879
|
-
|
|
1880
|
-
const buildFile = ({ name, label, readOnly }) => {
|
|
1881
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
|
|
1882
|
-
h("ez-upload", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
|
|
1883
|
-
};
|
|
1884
|
-
|
|
1885
|
-
const buildDate = ({ name, label, readOnly }) => {
|
|
1886
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
1887
|
-
h("ez-date-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
|
|
1888
|
-
};
|
|
1889
|
-
const buildTime = ({ name, label }) => {
|
|
1890
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
1891
|
-
h("ez-time-input", { label: label, "data-field-name": name, key: name })));
|
|
1892
|
-
};
|
|
1893
|
-
const buildTimeDate = ({ name, label }) => {
|
|
1894
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
1895
|
-
h("ez-date-time-input", { label: label, "data-field-name": name, key: name })));
|
|
1896
|
-
};
|
|
1897
|
-
|
|
1898
|
-
const buildDecimal = ({ name, label, readOnly }, properties) => {
|
|
1899
|
-
const precision = Number((properties === null || properties === void 0 ? void 0 : properties.precision) || 2);
|
|
1900
|
-
const prettyPrecision = Number((properties === null || properties === void 0 ? void 0 : properties.prettyPrecision) || precision);
|
|
1901
|
-
return buildNumeric(name, label, readOnly, precision, prettyPrecision);
|
|
1902
|
-
};
|
|
1903
|
-
const buildInteger = ({ name, label, readOnly }) => {
|
|
1904
|
-
return buildNumeric(name, label, readOnly, 0, 0);
|
|
1905
|
-
};
|
|
1906
|
-
function buildNumeric(fieldName, fieldLabel, readOnly, precision, prettyPrecision) {
|
|
1907
|
-
return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
|
|
1908
|
-
h("ez-number-input", { enabled: !readOnly, label: fieldLabel, precision: precision, prettyPrecision: prettyPrecision, "data-field-name": fieldName, key: fieldName })));
|
|
1909
|
-
}
|
|
1910
|
-
|
|
1911
|
-
const uiBuilders = new Map();
|
|
1912
|
-
uiBuilders.set(UserInterface.LONGTEXT, buildTextArea);
|
|
1913
|
-
uiBuilders.set(UserInterface.CHECKBOX, buildCheckBox);
|
|
1914
|
-
uiBuilders.set(UserInterface.SWITCH, buildSwitch);
|
|
1915
|
-
uiBuilders.set(UserInterface.OPTIONSELECTOR, buildComboBox);
|
|
1916
|
-
uiBuilders.set(UserInterface.SEARCH, buildSearch);
|
|
1917
|
-
uiBuilders.set(UserInterface.FILE, buildFile);
|
|
1918
|
-
uiBuilders.set(UserInterface.DATE, buildDate);
|
|
1919
|
-
uiBuilders.set(UserInterface.TIME, buildTime);
|
|
1920
|
-
uiBuilders.set(UserInterface.DATETIME, buildTimeDate);
|
|
1921
|
-
uiBuilders.set(UserInterface.DECIMALNUMBER, buildDecimal);
|
|
1922
|
-
uiBuilders.set(UserInterface.INTEGERNUMBER, buildInteger);
|
|
1923
|
-
const buildField = (field) => {
|
|
1924
|
-
const descriptor = field.descriptor;
|
|
1925
|
-
const config = Object.assign({}, field.config);
|
|
1926
|
-
let builder;
|
|
1927
|
-
let props;
|
|
1928
|
-
if (descriptor) {
|
|
1929
|
-
if (!config.label) {
|
|
1930
|
-
config.label = descriptor.label;
|
|
1931
|
-
}
|
|
1932
|
-
if (!config.name) {
|
|
1933
|
-
config.name = descriptor.name;
|
|
1934
|
-
}
|
|
1935
|
-
if (config.required === undefined) {
|
|
1936
|
-
config.required = descriptor.required;
|
|
1937
|
-
}
|
|
1938
|
-
if (config.readOnly === undefined) {
|
|
1939
|
-
config.readOnly = descriptor.readOnly;
|
|
1940
|
-
}
|
|
1941
|
-
props = descriptor.properties;
|
|
1942
|
-
builder = uiBuilders.get(descriptor.userInterface);
|
|
1943
|
-
}
|
|
1944
|
-
if (config.required) {
|
|
1945
|
-
config.label = `* ${config.label} (obrigatório)`;
|
|
1946
|
-
}
|
|
1947
|
-
if (!builder) {
|
|
1948
|
-
builder = buildTextInput;
|
|
1949
|
-
}
|
|
1950
|
-
return builder(config, props);
|
|
1951
|
-
};
|
|
1952
|
-
|
|
1953
2074
|
const FormItem = ({ source }) => {
|
|
1954
2075
|
if ("items" in source) {
|
|
1955
2076
|
const fieldSet = source;
|
|
@@ -2026,35 +2147,45 @@ function getTabConfig(tab, sheets) {
|
|
|
2026
2147
|
function sortTabs(a, b) {
|
|
2027
2148
|
return a[0].label == '__main' ? -1 : (a[0].order || 10000) - (b[0].order || 10000);
|
|
2028
2149
|
}
|
|
2029
|
-
const buildFromConfig = (
|
|
2150
|
+
const buildFromConfig = (config, dataUnit) => {
|
|
2151
|
+
var _a, _b;
|
|
2030
2152
|
const sheets = new Map();
|
|
2153
|
+
const hiddenTabs = new Map();
|
|
2031
2154
|
const requiredFields = [];
|
|
2032
2155
|
const cleanOnCopyFields = [];
|
|
2033
2156
|
const defaultValues = {};
|
|
2034
|
-
|
|
2157
|
+
(_a = config === null || config === void 0 ? void 0 : config.tabs) === null || _a === void 0 ? void 0 : _a.forEach((tab) => {
|
|
2158
|
+
if (!hiddenTabs.has(tab.label) && tab.visible === false) {
|
|
2159
|
+
hiddenTabs.set(tab.label, tab);
|
|
2160
|
+
}
|
|
2161
|
+
});
|
|
2162
|
+
(_b = config === null || config === void 0 ? void 0 : config.fields) === null || _b === void 0 ? void 0 : _b.forEach((field) => {
|
|
2035
2163
|
var _a, _b, _c;
|
|
2036
|
-
if (
|
|
2037
|
-
const tabConfig = getTabConfig(
|
|
2038
|
-
|
|
2164
|
+
if (field.visible !== false) {
|
|
2165
|
+
const tabConfig = getTabConfig(field.tab || "__main", sheets);
|
|
2166
|
+
if (hiddenTabs.has(tabConfig.label)) {
|
|
2167
|
+
return;
|
|
2168
|
+
}
|
|
2169
|
+
const descriptor = dataUnit.getField(field.name);
|
|
2039
2170
|
if (descriptor && tabConfig.visible) {
|
|
2040
2171
|
if (!sheets.has(tabConfig)) {
|
|
2041
2172
|
sheets.set(tabConfig, new Map());
|
|
2042
2173
|
}
|
|
2043
2174
|
const tabItens = sheets.get(tabConfig);
|
|
2044
|
-
const isRequired =
|
|
2175
|
+
const isRequired = field.required == undefined ? descriptor.required : field.required;
|
|
2045
2176
|
if (isRequired) {
|
|
2046
|
-
requiredFields.push(
|
|
2177
|
+
requiredFields.push(field.name);
|
|
2047
2178
|
}
|
|
2048
|
-
const clearOnCopy =
|
|
2179
|
+
const clearOnCopy = field.cleanOnCopy == undefined ? (((_a = descriptor.properties) === null || _a === void 0 ? void 0 : _a.cleanOnCopy) || ((_b = descriptor.properties) === null || _b === void 0 ? void 0 : _b.autoNum)) : field.cleanOnCopy;
|
|
2049
2180
|
if (clearOnCopy) {
|
|
2050
|
-
cleanOnCopyFields.push(
|
|
2181
|
+
cleanOnCopyFields.push(field.name);
|
|
2051
2182
|
}
|
|
2052
|
-
const defaultValue =
|
|
2183
|
+
const defaultValue = field.defaultValue == undefined ? (_c = descriptor.properties) === null || _c === void 0 ? void 0 : _c.defaultValue : field.defaultValue;
|
|
2053
2184
|
if (defaultValue) {
|
|
2054
|
-
defaultValues[
|
|
2185
|
+
defaultValues[field.name] = field.defaultValue;
|
|
2055
2186
|
}
|
|
2056
|
-
const fieldMD = { config, descriptor };
|
|
2057
|
-
const group =
|
|
2187
|
+
const fieldMD = { config: field, descriptor };
|
|
2188
|
+
const group = field.group;
|
|
2058
2189
|
if (group) {
|
|
2059
2190
|
const key = `group::${group}`;
|
|
2060
2191
|
if (!tabItens.has(key)) {
|
|
@@ -2065,7 +2196,7 @@ const buildFromConfig = (fields, dataUnit) => {
|
|
|
2065
2196
|
}
|
|
2066
2197
|
}
|
|
2067
2198
|
else {
|
|
2068
|
-
tabItens.set(
|
|
2199
|
+
tabItens.set(field.name, fieldMD);
|
|
2069
2200
|
}
|
|
2070
2201
|
}
|
|
2071
2202
|
}
|
|
@@ -2742,7 +2873,7 @@ let EzForm$1 = class extends HTMLElement$1 {
|
|
|
2742
2873
|
}
|
|
2743
2874
|
processMetadata() {
|
|
2744
2875
|
if (!this.isStatic() && this.dataUnit) {
|
|
2745
|
-
const metadata = this.config
|
|
2876
|
+
const metadata = this.config != undefined ? buildFromConfig(this.config, this.dataUnit) : buildFromDataUnit(this.dataUnit);
|
|
2746
2877
|
this._store.dispatch(loadMetadata(metadata));
|
|
2747
2878
|
}
|
|
2748
2879
|
}
|
|
@@ -2750,6 +2881,16 @@ let EzForm$1 = class extends HTMLElement$1 {
|
|
|
2750
2881
|
var _a;
|
|
2751
2882
|
return ((_a = this._staticFields) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
2752
2883
|
}
|
|
2884
|
+
getValidatedValue(value) {
|
|
2885
|
+
switch (value) {
|
|
2886
|
+
case "${data}":
|
|
2887
|
+
return DateUtils$1.getToday();
|
|
2888
|
+
case "${datahora}":
|
|
2889
|
+
return DateUtils$1.getToday(true);
|
|
2890
|
+
default:
|
|
2891
|
+
return value;
|
|
2892
|
+
}
|
|
2893
|
+
}
|
|
2753
2894
|
interceptAction(action) {
|
|
2754
2895
|
if (action.type === Action.RECORDS_COPIED) {
|
|
2755
2896
|
const metadata = selectFormMetadata(this._store.getState());
|
|
@@ -2778,7 +2919,9 @@ let EzForm$1 = class extends HTMLElement$1 {
|
|
|
2778
2919
|
return new DataUnitAction(Action.RECORDS_ADDED, records.map(record => {
|
|
2779
2920
|
const newRecord = Object.assign({}, record);
|
|
2780
2921
|
for (const field in defaultValues) {
|
|
2781
|
-
|
|
2922
|
+
const defaultValue = defaultValues[field].value;
|
|
2923
|
+
const fieldValue = defaultValue != undefined ? defaultValue : defaultValues[field];
|
|
2924
|
+
newRecord[field] = this.dataUnit.valueFromString(field, this.getValidatedValue(fieldValue));
|
|
2782
2925
|
}
|
|
2783
2926
|
return newRecord;
|
|
2784
2927
|
}));
|
|
@@ -118120,7 +118263,7 @@ let EzGrid$1 = class extends HTMLElement$1 {
|
|
|
118120
118263
|
this._gridController.setColumnsState(config.columns);
|
|
118121
118264
|
this.closeGridConfig();
|
|
118122
118265
|
}
|
|
118123
|
-
closeGridConfig() {
|
|
118266
|
+
async closeGridConfig() {
|
|
118124
118267
|
this._popUpGridConfig = false;
|
|
118125
118268
|
}
|
|
118126
118269
|
async openGridConfig() {
|
|
@@ -118138,7 +118281,7 @@ let EzGrid$1 = class extends HTMLElement$1 {
|
|
|
118138
118281
|
static get style() { return ezGridCss; }
|
|
118139
118282
|
};
|
|
118140
118283
|
|
|
118141
|
-
const ezGridConfigCss = ".sc-ez-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-
|
|
118284
|
+
const ezGridConfigCss = ".sc-ez-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);--snk-grid-config__title--color:var(--title--primary, #2B3A54);--ez-grid-config__title--font-family:var(--font-pattern, \"Sora\");--ez-grid-config__title--font-size:var(--title--large, 20px);--ez-grid-config__title--font-weight:var(--text-weight--extra-large, 700);--ez-grid-config__subtitle--font-family:var(--font-pattern, \"Sora\");--ez-grid-config__subtitle--font-size:var(--text--medium, 14px);--ez-grid-config__scrollbar--width:var(--space--medium, 12px);--ez-grid-config__scrollbar--background-color-primary:var(--scrollbar--primary, #2B3A54);--ez-grid-config__scrollbar--background-color-secondary:var(--scrollbar--secondary, #E5EAF0);--ez-grid-config__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-grid-config__group--font-family:var(--font-pattern, \"Sora\");--ez-grid-config__group--font-size:var(--text--medium, 14px);--ez-grid-config__group--font-weight:var(--text-weight--large, 600);--ez-grid-config__group--padding-bottom:var(--space-small, 6px);display:grid;grid-template-rows:auto 1fr auto;max-height:100%;width:100%}@media screen and (min-width: 480px){.sc-ez-grid-config-h{width:359px;max-width:359px}}.padding-right--medium.sc-ez-grid-config{padding-right:var(--space--medium)}ez-list.sc-ez-grid-config{height:100%}.height-calc.sc-ez-grid-config{max-height:calc(100% - 24px)}.grid-config__footer.sc-ez-grid-config{display:flex;justify-content:flex-end;width:100%;padding-top:var(--ez-grid-config__footer--padding-top)}.hidden.sc-ez-grid-config{display:none}.tabselector-container.sc-ez-grid-config{padding:var(--ez-grid-config__tabselector-container--padding) 0}.button-close.sc-ez-grid-config{padding-left:var(--ez-grid-config__button-close--padding-left)}.title-container.sc-ez-grid-config{display:flex;justify-content:space-between;align-items:center;width:100%}.title.sc-ez-grid-config{display:flex;margin:0;line-height:normal;letter-spacing:0em;text-align:left;color:var(--snk-grid-config__title--color);font-size:var(--ez-grid-config__title--font-size);font-family:var(--ez-grid-config__title--font-family);font-weight:var(--ez-grid-config__title--font-weight)}.subtitle.sc-ez-grid-config{color:var(--text--primary);font-size:var(--ez-grid-config__subtitle--font-size);font-family:var(--ez-grid-config__subtitle--font-family)}.grid-config__main.sc-ez-grid-config{overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--ez-grid-config__scrollbar--background-color-primary) var(--ez-grid-config__scrollbar--background-color-secondary);padding-right:var(--ez-grid-config__main--padding-right)}.grid-config__main.sc-ez-grid-config::-webkit-scrollbar-track{background-color:var(--ez-grid-config__scrollbar--background-color-secondary)}.grid-config__main.sc-ez-grid-config::-webkit-scrollbar-thumb{background-color:var(--ez-grid-config__scrollbar--background-color-primary);border-radius:var(--ez-grid-config__scrollbar--border-radius)}.grid-config__main.sc-ez-grid-config::-webkit-scrollbar{width:var(--ez-grid-config__scrollbar--width);max-width:var(--ez-grid-config__scrollbar--width);min-width:var(--ez-grid-config__scrollbar--width);background-color:var(--ez-grid-config__scrollbar--background-color-secondary)}.group-name.sc-ez-grid-config{font-family:var(--ez-grid-config__group--font-family);font-size:var(--ez-grid-config__group--font-size);font-weight:var(--ez-grid-config__group--font-weight);padding-bottom:var(--ez-grid-config__group--padding-bottom)}";
|
|
118142
118285
|
|
|
118143
118286
|
let EzGridConfig$1 = class extends HTMLElement$1 {
|
|
118144
118287
|
constructor() {
|
|
@@ -118216,7 +118359,7 @@ let EzGridConfig$1 = class extends HTMLElement$1 {
|
|
|
118216
118359
|
this._columListItems = [visibleGroup, hiddenGroup];
|
|
118217
118360
|
}
|
|
118218
118361
|
buildColumnListSlot(item, group) {
|
|
118219
|
-
return (h("div", null, h("ez-check", { mode: 'switch', id: 'switch' + item + group, value: group.group === "Visíveis", onEzChange: (ev) => { this.switchColumnGroup(ev, item); } })));
|
|
118362
|
+
return (h("div", null, h("ez-check", { mode: 'switch', id: 'switch' + ((item === null || item === void 0 ? void 0 : item.label) || '') + ((group === null || group === void 0 ? void 0 : group.group) || ''), value: group.group === "Visíveis", onEzChange: (ev) => { this.switchColumnGroup(ev, item); } })));
|
|
118220
118363
|
}
|
|
118221
118364
|
buildOrderListSlot(item) {
|
|
118222
118365
|
let selectedOption = "na";
|
|
@@ -118298,7 +118441,6 @@ let EzGridConfig$1 = class extends HTMLElement$1 {
|
|
|
118298
118441
|
this.columns = newColumnList;
|
|
118299
118442
|
this._dataChanged = false;
|
|
118300
118443
|
this.closeConfig();
|
|
118301
|
-
ApplicationUtils.info("As configurações foram salvas com sucesso!");
|
|
118302
118444
|
this.save();
|
|
118303
118445
|
}
|
|
118304
118446
|
save() {
|
|
@@ -118601,7 +118743,7 @@ let EzIcon$1 = class extends HTMLElement$1 {
|
|
|
118601
118743
|
static get style() { return ezIconCss; }
|
|
118602
118744
|
};
|
|
118603
118745
|
|
|
118604
|
-
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-color: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-small, 6px);--ez-list__group-container-scrollbar--width:var(--space--medium, 12px);--ez-list__group-container-scrollbar--background-color-primary:var(--scrollbar--primary, #2B3A54);--ez-list__group-container-scrollbar--background-color-secondary:var(--scrollbar--secondary, #E5EAF0);--ez-list__over--border--color:var(--color--primary, #008561);--ez-list__last-droppable-space--height:var(--space--small, 6px);--ez-list__draggable-scrollbar--border-radius:var(--border--radius-small, 6px);--ez-list__draggable-scrollbar--width:var(--space--medium, 12px);--ez-list__draggable-scrollbar--background-color-primary:var(--scrollbar--primary, #2B3A54);--ez-list__draggable-scrollbar--background-color-secondary:var(--scrollbar--secondary, #E5EAF0);--ez-list__draggable-list--padding-bottom:var(--space--small, 6px);--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;width:100%}.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:flex-start;align-items:center;width:calc(100% - 41px)}.draggable-list{color:var(--text-color);padding:0;margin:0;width:100%;max-height:100%;scrollbar-width:thin;scrollbar-color:var(--ez-list__draggable-scrollbar--background-color-primary) var(--ez-list__draggable-scrollbar--background-color-secondary)}.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:var(--ez-list__draggable-scrollbar--background-color-secondary)}.draggable-list::-webkit-scrollbar-thumb{background-color:var(--ez-list__draggable-scrollbar--background-color-primary);border-radius:var(--ez-list__draggable-scrollbar--border-radius)}.draggable-list::-webkit-scrollbar{background-color:var(--ez-list__draggable-scrollbar--background-color-secondary);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%;scrollbar-width:thin;scrollbar-color:var(--ez-list__group-container-scrollbar--background-color-primary) var(--ez-list__group-container-scrollbar--background-color-secondary)}.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:var(--ez-list__group-container-scrollbar--background-color-secondary)}.group-container::-webkit-scrollbar-thumb{background-color:var(--ez-list__group-container-scrollbar--background-color-primary);border-radius:var(--ez-list__group-container-scrollbar--border-radius)}.group-container::-webkit-scrollbar{background-color:var(--ez-list__group-container-scrollbar--background-color-secondary);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;scrollbar-width:thin;scrollbar-color:var(--ez-list__draggable-scrollbar--background-color-primary) var(--ez-list__draggable-scrollbar--background-color-secondary)}.group-items-container{width:100%;max-height:100%;height:100%;outline:none}.items-container::-webkit-scrollbar-track{background-color:var(--ez-list__draggable-scrollbar--background-color-secondary)}.items-container::-webkit-scrollbar-thumb{background-color:var(--ez-list__draggable-scrollbar--background-color-primary);border-radius:var(--ez-list__draggable-scrollbar--border-radius)}.items-container::-webkit-scrollbar{background-color:var(--ez-list__draggable-scrollbar--background-color-secondary);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-color);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}";
|
|
118746
|
+
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-color: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-small, 6px);--ez-list__group-container-scrollbar--width:var(--space--medium, 12px);--ez-list__group-container-scrollbar--background-color-primary:var(--scrollbar--primary, #2B3A54);--ez-list__group-container-scrollbar--background-color-secondary:var(--scrollbar--secondary, #E5EAF0);--ez-list__over--border--color:var(--color--primary, #008561);--ez-list__last-droppable-space--height:var(--space--small, 6px);--ez-list__draggable-scrollbar--border-radius:var(--border--radius-small, 6px);--ez-list__draggable-scrollbar--width:var(--space--medium, 12px);--ez-list__draggable-scrollbar--background-color-primary:var(--scrollbar--primary, #2B3A54);--ez-list__draggable-scrollbar--background-color-secondary:var(--scrollbar--secondary, #E5EAF0);--ez-list__draggable-list--padding-bottom:var(--space--small, 6px);--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;width:100%}.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:flex-start;align-items:center;width:100%}.group-container .item-content{max-width:calc(100% - 41px)}.items-container .item-content{max-width:calc(100% - 100px)}.draggable-list{color:var(--text-color);padding:0;margin:0;width:100%;max-height:100%;scrollbar-width:thin;scrollbar-color:var(--ez-list__draggable-scrollbar--background-color-primary) var(--ez-list__draggable-scrollbar--background-color-secondary)}.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:var(--ez-list__draggable-scrollbar--background-color-secondary)}.draggable-list::-webkit-scrollbar-thumb{background-color:var(--ez-list__draggable-scrollbar--background-color-primary);border-radius:var(--ez-list__draggable-scrollbar--border-radius)}.draggable-list::-webkit-scrollbar{background-color:var(--ez-list__draggable-scrollbar--background-color-secondary);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%;scrollbar-width:thin;scrollbar-color:var(--ez-list__group-container-scrollbar--background-color-primary) var(--ez-list__group-container-scrollbar--background-color-secondary)}.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:var(--ez-list__group-container-scrollbar--background-color-secondary)}.group-container::-webkit-scrollbar-thumb{background-color:var(--ez-list__group-container-scrollbar--background-color-primary);border-radius:var(--ez-list__group-container-scrollbar--border-radius)}.group-container::-webkit-scrollbar{background-color:var(--ez-list__group-container-scrollbar--background-color-secondary);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;scrollbar-width:thin;scrollbar-color:var(--ez-list__draggable-scrollbar--background-color-primary) var(--ez-list__draggable-scrollbar--background-color-secondary)}.group-items-container{width:100%;max-height:100%;height:100%;outline:none}.items-container::-webkit-scrollbar-track{background-color:var(--ez-list__draggable-scrollbar--background-color-secondary)}.items-container::-webkit-scrollbar-thumb{background-color:var(--ez-list__draggable-scrollbar--background-color-primary);border-radius:var(--ez-list__draggable-scrollbar--border-radius)}.items-container::-webkit-scrollbar{background-color:var(--ez-list__draggable-scrollbar--background-color-secondary);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-color);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}";
|
|
118605
118747
|
|
|
118606
118748
|
let EzList$1 = class extends HTMLElement$1 {
|
|
118607
118749
|
constructor() {
|
|
@@ -119396,7 +119538,7 @@ let EzNumberInput$1 = class extends HTMLElement$1 {
|
|
|
119396
119538
|
static get style() { return ezNumberInputCss; }
|
|
119397
119539
|
};
|
|
119398
119540
|
|
|
119399
|
-
const ezPopoverCss = ":host{--ez-popover__box--border-radius:var(--border--radius-medium, 12px);--ez-popover__box--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-popover__box--background-color:var(--background--xlight, #fff);--ez-popover__box--z-index:var(--more-visible,
|
|
119541
|
+
const ezPopoverCss = ":host{--ez-popover__box--border-radius:var(--border--radius-medium, 12px);--ez-popover__box--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-popover__box--background-color:var(--background--xlight, #fff);--ez-popover__box--z-index:var(--more-visible, 2);position:relative;display:flex;user-select:none}.popover__box{z-index:var(--ez-popover__box--z-index);display:flex;flex-direction:column;height:fit-content;background-color:var(--ez-popover__box--background-color);border-radius:var(--ez-popover__box--border-radius);box-shadow:var(--ez-popover__box--box-shadow)}.popover__box--fit-content{width:fit-content}.popover__box--full-width{width:100%}";
|
|
119400
119542
|
|
|
119401
119543
|
let EzPopover$1 = class extends HTMLElement$1 {
|
|
119402
119544
|
constructor() {
|
|
@@ -119587,7 +119729,7 @@ let EzPopup$1 = class extends HTMLElement$1 {
|
|
|
119587
119729
|
static get style() { return ezPopupCss; }
|
|
119588
119730
|
};
|
|
119589
119731
|
|
|
119590
|
-
const ezRadioButtonCss = ":host{--ez-radio-button--font-family:var(--font-pattern, Arial);--ez-radio-button--font-size:var(--text--
|
|
119732
|
+
const ezRadioButtonCss = ":host{--ez-radio-button--font-family:var(--font-pattern, Arial);--ez-radio-button--font-size:var(--text--medium, 14px);--ez-radio-button--font-weight:var(--text-weight--large);--ez-radio-button--font-color:var(--title--primary, #2B3A54);--ez-radio-button--padding-vertical:var(--space--medium, 12px);--ez-radio-button--padding-horizontal:var(--space--small, 6px);--ez-radio-button__form-label--font-family:var(--font-pattern, Arial);--ez-radio-button__form-label--font-weight:var(--text-weight--medium, 400);--ez-radio-button__form-label--title-primary:var(--title--primary, #2B3A54);--ez-radio-button__form-label--font-size:var(--text--medium, 14px);--ez-radio-button__form-label--padding-horizontal:var(--space--medium, 12px);--ez-radio-button__form-radio--border-color:var(--title--primary, #2B3A54);--ez-radio-button__form-radio--checked--color:var(--color--primary, #008561);--ez-radio-button__form-radio--disabled--border-color:var(--color--strokes, #dce0e8);--ez-radio-button__form-radio--disabled--background-color:var(--background--medium, #f0f3f7);--ez-radio-button__form-radio--disabled--color:var(--color--strokes, #dce0e8);--ez-radio-button__form-radio--disabled--before--background-color:var(--color--strokes, #dce0e8);--ez-radio-button__form-radio--focus--background-color:var(--color--inverted, #fff);--ez-radio-button__form-radio--checked--box-shadow-color:var(--background--strong, #e4eaf1);--ez-radio-button__form-radio--checked--focus--background-color:var(--color--inverted, #fff);--ez-radio-button__form-radio--checked--focus--box-shadow-color:var(--color--primary-300, #e2f4ef);--ez-radio-button__form-radio--checked--hover--background-color:var(--color--inverted, #fff);--ez-radio-button__form-radio--checked--hover--box-shadow-color:#daece7;--ez-radio-button__form-radio--hover--box-shadow-color:var(--color--strokes, #dce0e8);--ez-radio-button__form-radio--checked--disabled--hover--background-color:var(--background--medium, #f0f3f7);display:flex;width:100%;flex-direction:column;align-items:flex-start;box-sizing:border-box}.form{padding:var(--ez-radio-button--padding-vertical) var(--ez-radio-button--padding-horizontal);gap:var(--ez-radio-button__form-label--padding-horizontal)}.form--vertical{display:flex;flex-direction:column}.form--horizontal{display:flex;flex-direction:row}.form__group{display:flex;align-items:center}.label{font-family:var(--ez-radio-button--font-family);font-size:var(--ez-radio-button--font-size);font-weight:var(--ez-radio-button--font-weight);color:var(--ez-radio-button--font-color)}.form__label{cursor:pointer;font-weight:var(--ez-radio-button__form-label--font-weight);color:var(--ez-radio-button__form-label--title-primary);font-family:var(--ez-radio-button__form-label--font-family);font-size:var(--ez-radio-button__form-label--font-size);padding-left:var(--ez-radio-button__form-label--padding-horizontal);padding-right:var(--ez-radio-button__form-label--padding-horizontal)}.form__radio{cursor:pointer;appearance:none;outline:none;position:relative;display:flex;align-items:center;justify-content:center;margin:0;padding:0;width:18px;height:18px;border-radius:50%;border:2px solid var(--ez-radio-button__form-radio--border-color)}.form__radio::before{content:'';display:block;position:absolute;opacity:0;transition:all 300ms ease-in-out;height:calc(18px/2);width:calc(18px/2);border-radius:50%;background:var(--ez-radio-button__form-radio--checked--color)}.form__radio:checked:before{opacity:1}.form__radio:checked{border:2px solid var(--ez-radio-button__form-radio--checked--color)}.form__radio:disabled{cursor:default;border:2px solid var(--ez-radio-button__form-radio--disabled--border-color);background-color:var(--ez-radio-button__form-radio--disabled--background-color)}.form__radio:disabled:hover{box-shadow:inherit}input[type=radio]:disabled~label{cursor:default;color:var(--ez-radio-button__form-radio--disabled--color)}.form__radio:disabled:before{background:var(--ez-radio-button__form-radio--disabled--before--background-color)}.form__radio:focus{transition:0.25s linear;background-color:var(--ez-radio-button__form-radio--focus--background-color);box-shadow:0px 0px 0px 6px var(--ez-radio-button__form-radio--checked--box-shadow-color)}.form__radio:checked:focus{transition:0.25s linear;background-color:var(--ez-radio-button__form-radio--checked--focus--background-color);box-shadow:0px 0px 0px 6px var(--ez-radio-button__form-radio--checked--focus--box-shadow-color)}.form__radio:checked:hover{transition:0.25s linear;background-color:var(--ez-radio-button__form-radio--checked--hover--background-color);box-shadow:0px 0px 0px 6px var(--ez-radio-button__form-radio--checked--hover--box-shadow-color)}.form__radio:hover{transition:0.25s linear;box-shadow:0px 0px 0px 6px var(--ez-radio-button__form-radio--hover--box-shadow-color)}.form__radio:checked:disabled:hover{box-shadow:none;background-color:var(--ez-radio-button__form-radio--checked--disabled--hover--background-color)}";
|
|
119591
119733
|
|
|
119592
119734
|
let EzRadioButton$1 = class extends HTMLElement$1 {
|
|
119593
119735
|
constructor() {
|
|
@@ -119625,7 +119767,7 @@ let EzRadioButton$1 = class extends HTMLElement$1 {
|
|
|
119625
119767
|
this.ezChange.emit(this.value);
|
|
119626
119768
|
}
|
|
119627
119769
|
render() {
|
|
119628
|
-
return (h(Host, null, this.label && h("label", { class: "label" }, this.label), h("div", { class: "form--" + this.direction }, this._options.map((option, key) => h("div", { class: "form__group" }, h("input", { id: "rad" + key, class: "form__radio", name: "theradio", type: "radio", value: option.value, onChange: (ev) => { this.handleInputChange(ev); }, disabled: !this.enabled, checked: option.value === this.value }), h("label", { htmlFor: "rad" + key, class: "form__label" }, option.label))))));
|
|
119770
|
+
return (h(Host, null, this.label && h("label", { class: "label" }, this.label), h("div", { class: "form form--" + this.direction }, this._options.map((option, key) => h("div", { class: "form__group" }, h("input", { id: "rad" + key, class: "form__radio", name: "theradio", type: "radio", value: option.value, onChange: (ev) => { this.handleInputChange(ev); }, disabled: !this.enabled, checked: option.value === this.value }), h("label", { htmlFor: "rad" + key, class: "form__label" }, option.label))))));
|
|
119629
119771
|
}
|
|
119630
119772
|
get hostElement() { return this; }
|
|
119631
119773
|
static get style() { return ezRadioButtonCss; }
|
|
@@ -119829,7 +119971,7 @@ let SelectBox = class extends HTMLElement$1 {
|
|
|
119829
119971
|
static get style() { return ezSelectBoxCss; }
|
|
119830
119972
|
};
|
|
119831
119973
|
|
|
119832
|
-
const ezTabselectorCss = "@keyframes activate{0%{clip-path:inset(calc(100% - 3px) 50% 0px 50%)}100%{clip-path:inset(calc(100% - 3px) 0px 0px 0px)}}:host{display:flex;position:relative;width:100%;overflow:hidden;--tabselector--backward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z\"/></svg>');--tabselector--forward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z\"/></svg>')}.scroll{display:flex;width:100%;scroll-behavior:smooth;overflow-x:auto;scrollbar-width:none}.scroll.startHidden{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px)}.scroll.middle{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px, #000 calc(100% - 48px), transparent calc(100% - 20px))}.scroll.endHidden{-webkit-mask-image:linear-gradient(90deg, #000 calc(100% - 48px), transparent calc(100% - 20px))}.tab{display:flex;border:none;min-width:100px;background-color:unset;cursor:pointer;padding:6px 12px;align-items:center;justify-content:center;color:var(--text--primary, #626e82);font-family:var(--font-pattern, \"Sora, Algerian\");font-size:var(--title--small, 14px)}.tab:focus,.forward-button,.backward-button{outline:none}.is-active{position:relative;color:var(--color--primary, #008561)}.is-active::after{content:\"\";position:absolute;width:100%;height:100%;background-color:var(--color--primary, #008561);clip-path:inset(calc(100% - 3px) 0px 0px 0px);animation:activate 0.25s ease-in-out}.is-focused{border:1px dashed var(--color--primary, #000000c5)}.tab-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-shadow:var(--text-shadow);margin-bottom:var(--space--extra-small, 3px)}.forward-button,.backward-button{position:absolute;z-index:1;display:flex;box-sizing:border-box;padding:0px;top:0px;right:0px;width:16px;height:100%;border:none;background-color:unset;cursor:pointer;justify-content:center;align-items:center}.backward-button{left:0px}.forward-button::after,.backward-button::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:10px;height:16px}.forward-button::after{-webkit-mask-image:var(--tabselector--forward-icon);mask-image:var(--tabselector--forward-icon)}.backward-button::after{-webkit-mask-image:var(--tabselector--backward-icon);mask-image:var(--tabselector--backward-icon)}.forward-button:hover::after,.backward-button:hover::after{background-color:var(--color--primary, #4e4e4e)}.hidden{display:none}.scroll::-webkit-scrollbar{display:none}";
|
|
119974
|
+
const ezTabselectorCss = "@keyframes activate{0%{clip-path:inset(calc(100% - 3px) 50% 0px 50%)}100%{clip-path:inset(calc(100% - 3px) 0px 0px 0px)}}:host{display:flex;position:relative;width:100%;overflow:hidden;--tabselector--backward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z\"/></svg>');--tabselector--forward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z\"/></svg>')}.scroll{display:flex;width:100%;scroll-behavior:smooth;overflow-x:auto;scrollbar-width:none}.scroll.startHidden{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px)}.scroll.middle{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px, #000 calc(100% - 48px), transparent calc(100% - 20px))}.scroll.endHidden{-webkit-mask-image:linear-gradient(90deg, #000 calc(100% - 48px), transparent calc(100% - 20px))}.tab{display:flex;border:none;min-width:100px;background-color:unset;cursor:pointer;padding:6px 12px;align-items:center;justify-content:center;color:var(--text--primary, #626e82);font-family:var(--font-pattern, \"Sora, Algerian\");font-size:var(--title--small, 14px)}.tab:focus,.forward-button,.backward-button{outline:none}.is-active{position:relative;color:var(--color--primary, #008561)}.is-active::after{content:\"\";position:absolute;width:100%;height:100%;background-color:var(--color--primary, #008561);clip-path:inset(calc(100% - 3px) 0px 0px 0px);animation:activate 0.25s ease-in-out}.is-focused{border:1px dashed var(--color--primary, #000000c5)}.tab-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-shadow:var(--text-shadow);margin-bottom:var(--space--extra-small, 3px)}.forward-button,.backward-button{position:absolute;z-index:1;display:flex;box-sizing:border-box;padding:0px;top:0px;right:0px;width:16px;height:100%;border:none;background-color:unset;cursor:pointer;justify-content:center;align-items:center}.backward-button{left:0px}.forward-button::after,.backward-button::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:10px;height:16px}.forward-button::after{-webkit-mask-image:var(--tabselector--forward-icon);mask-image:var(--tabselector--forward-icon)}.backward-button::after{-webkit-mask-image:var(--tabselector--backward-icon);mask-image:var(--tabselector--backward-icon)}.forward-button:hover::after,.backward-button:hover::after{background-color:var(--color--primary, #4e4e4e)}.hidden{display:none}.scroll::-webkit-scrollbar{display:none}.left-icon{padding-right:var(--space--small)}.right-icon{padding-left:var(--space--small)}";
|
|
119833
119975
|
|
|
119834
119976
|
let EzTabselector$1 = class extends HTMLElement$1 {
|
|
119835
119977
|
constructor() {
|
|
@@ -119908,13 +120050,15 @@ let EzTabselector$1 = class extends HTMLElement$1 {
|
|
|
119908
120050
|
this._hostElem.querySelectorAll("ez-tab").forEach((elem) => {
|
|
119909
120051
|
const tabKey = elem.getAttribute("tabKey");
|
|
119910
120052
|
const label = elem.getAttribute("label");
|
|
119911
|
-
const
|
|
120053
|
+
const leftIcon = elem.getAttribute("leftIcon");
|
|
120054
|
+
const rightIcon = elem.getAttribute("rightIcon");
|
|
120055
|
+
const tab = { label, tabKey, leftIcon, rightIcon, index: this._processedTabs.length };
|
|
119912
120056
|
const content = elem.firstChild;
|
|
119913
120057
|
if (content) {
|
|
119914
|
-
content.setAttribute("slot", "tab" +
|
|
120058
|
+
content.setAttribute("slot", "tab" + tab.index);
|
|
119915
120059
|
this._hostElem.appendChild(content);
|
|
119916
120060
|
}
|
|
119917
|
-
this._processedTabs.push(
|
|
120061
|
+
this._processedTabs.push(tab);
|
|
119918
120062
|
});
|
|
119919
120063
|
}
|
|
119920
120064
|
}
|
|
@@ -120015,14 +120159,14 @@ let EzTabselector$1 = class extends HTMLElement$1 {
|
|
|
120015
120159
|
this.selectedTab = tab.tabKey;
|
|
120016
120160
|
this.selectedIndex = index;
|
|
120017
120161
|
}
|
|
120018
|
-
return h("button", { id: tabId, class: `tab${isSelected ? " is-active" : ""}`, onClick: () => this.handleTabClick(tab), style: labelStyle }, h("span", { class: "tab-label", title: tab.label }, tab.label), h("slot", { name: tabId, onSlotchange: (ev) => { this.handleSlotChange(ev); } }));
|
|
120162
|
+
return h("button", { id: tabId, class: `tab${isSelected ? " is-active" : ""}`, onClick: () => this.handleTabClick(tab), style: labelStyle }, tab.leftIcon && h("ez-icon", { iconName: tab.leftIcon, class: "left-icon" }), h("span", { class: "tab-label", title: tab.label }, tab.label), tab.rightIcon && h("ez-icon", { iconName: tab.rightIcon, class: "right-icon" }), h("slot", { name: tabId, onSlotchange: (ev) => { this.handleSlotChange(ev); } }));
|
|
120019
120163
|
})), h("button", { class: "forward-button", ref: (el) => this._forwardButton = el, onClick: () => this.scrollFoward() })));
|
|
120020
120164
|
}
|
|
120021
120165
|
get _hostElem() { return this; }
|
|
120022
120166
|
static get style() { return ezTabselectorCss; }
|
|
120023
120167
|
};
|
|
120024
120168
|
|
|
120025
|
-
const ezTextAreaCss = ":host{--text-area--width:100%;--text-area--border-radius:var(--border--radius-medium, 12px);--text-area--font-size:var(--text--medium, 14px);--text-area--font-family:var(--font-pattern, Arial);--text-area--font-weight:var(--text-weight--medium, 400);--text-area--color:var(--title--primary, #000);--text-area__input--background-color:var(--background--medium, #e0e0e0);--text-area__input--border:var(--border--medium, 2px solid);--text-area__input--border-color:var(--text-area__input--background-color);--text-area__input--focus--border-color:var(--color--primary, #008561);--text-area__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--text-area__input--disabled--color:var(--text--disable, #AFB6C0);--text-area__input--error--border-color:#CC2936;--text-area__message_box--font-size:var(--text--small, 12px);--text-area__message_box--info--color:var(--color--success, #22085d);--text-area__message_box--error--color:var(--color--error, #FF0000);--text-area__label--floating--top:6px;--text-area__label--padding-top:12px;--text-area__label--padding-left:14px;--text-area__label--padding-right:12px;display:flex;flex-wrap:wrap;position:relative;width:var(--text-area--width)}textarea{box-sizing:border-box;border:none;resize:none;
|
|
120169
|
+
const ezTextAreaCss = ":host{--text-area--width:100%;--text-area--border-radius:var(--border--radius-medium, 12px);--text-area--font-size:var(--text--medium, 14px);--text-area--font-family:var(--font-pattern, Arial);--text-area--font-weight:var(--text-weight--medium, 400);--text-area--color:var(--title--primary, #000);--text-area__input--background-color:var(--background--medium, #e0e0e0);--text-area__input--border:var(--border--medium, 2px solid);--text-area__input--border-color:var(--text-area__input--background-color);--text-area__input--focus--border-color:var(--color--primary, #008561);--text-area__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--text-area__input--disabled--color:var(--text--disable, #AFB6C0);--text-area__input--error--border-color:#CC2936;--text-area__message_box--font-size:var(--text--small, 12px);--text-area__message_box--info--color:var(--color--success, #22085d);--text-area__message_box--error--color:var(--color--error, #FF0000);--text-area__label--floating--top:6px;--text-area__label--padding-top:12px;--text-area__label--padding-left:14px;--text-area__label--padding-right:12px;display:flex;flex-wrap:wrap;position:relative;width:var(--text-area--width)}textarea{box-sizing:border-box;border:none;resize:none;width:100%;padding:0;background:none;font-weight:var(--text-area--font-weight);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);color:var(--text-area--color);margin-top:calc(var(--space--medium, 12px) + 4px)}textarea:focus{outline:none}textarea:disabled{background-color:transparent;color:var(--text-area__input--disabled--color)}.textarea{width:100%;box-sizing:border-box;padding-left:var(--space--medium);padding-right:var(--space--extra-small);border-radius:var(--text-area--border-radius);border:var(--text-area__input--border);border-color:var(--text-area__input--border-color);background-color:var(--text-area__input--background-color)}.textarea--focus{border-color:var(--text-area__input--focus--border-color)}.textarea.hasError{color:var(--text-area--color);border-color:var(--text-area__input--error--border-color)}.message-box{min-height:16px;min-width:100%;margin-top:3px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--text-area--font-family);font-size:var(--text-area__message_box--font-size);color:var(--text-area__message_box--info--color)}.hasError{color:var(--text-area__message_box--error--color)}.textarea__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(--text-area__label--padding-right));left:var(--text-area--space--medium);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color);top:var(--text-area__label--padding-top);left:var(--text-area__label--padding-left);padding-right:var(--text-area__label--padding-right)}.textarea__label--floated{font-family:var(--text-area--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--text-area__label--floating--top)}.textarea__label--disabled{color:var(--text-area__input--disabled--color)}.textarea--slim{margin-top:var(--space--small, 6px)}.textarea--slim::-webkit-input-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:-moz-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim::-moz-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:-ms-input-placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim::placeholder{font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color)}.textarea--slim:disabled::-webkit-input-placeholder{color:var(--text-area__input--disabled--color)}.textarea--slim:disabled:-moz-placeholder{color:var(--text-area__input--disabled--color)}.textarea--slim:disabled::-moz-placeholder{color:var(--text-area__input--disabled--color)}.textarea--slim:disabled:-ms-input-placeholder{color:var(--text-area__input--disabled--color)}.textarea--slim:disabled::placeholder{color:var(--text-area__input--disabled--color)}";
|
|
120026
120170
|
|
|
120027
120171
|
let EzTextArea$1 = class extends HTMLElement$1 {
|
|
120028
120172
|
constructor() {
|
|
@@ -120048,15 +120192,15 @@ let EzTextArea$1 = class extends HTMLElement$1 {
|
|
|
120048
120192
|
this.mode = "regular";
|
|
120049
120193
|
}
|
|
120050
120194
|
observeErrorMessage() {
|
|
120051
|
-
var _a, _b;
|
|
120195
|
+
var _a, _b, _c, _d;
|
|
120052
120196
|
const hasError = typeof this.errorMessage === 'string' && this.errorMessage !== '';
|
|
120053
120197
|
if (hasError) {
|
|
120054
|
-
this._container.classList.add('hasError');
|
|
120055
|
-
(
|
|
120198
|
+
(_a = this._container) === null || _a === void 0 ? void 0 : _a.classList.add('hasError');
|
|
120199
|
+
(_b = this._messageBoxElem) === null || _b === void 0 ? void 0 : _b.classList.add('hasError');
|
|
120056
120200
|
}
|
|
120057
120201
|
else {
|
|
120058
|
-
this._container.classList.remove('hasError');
|
|
120059
|
-
(
|
|
120202
|
+
(_c = this._container) === null || _c === void 0 ? void 0 : _c.classList.remove('hasError');
|
|
120203
|
+
(_d = this._messageBoxElem) === null || _d === void 0 ? void 0 : _d.classList.remove('hasError');
|
|
120060
120204
|
}
|
|
120061
120205
|
}
|
|
120062
120206
|
observeValue(newValue, oldValue) {
|
|
@@ -120179,7 +120323,101 @@ let EzTextArea$1 = class extends HTMLElement$1 {
|
|
|
120179
120323
|
static get style() { return ezTextAreaCss; }
|
|
120180
120324
|
};
|
|
120181
120325
|
|
|
120182
|
-
const
|
|
120326
|
+
const ezTextEditCss = ":host{display:flex;align-items:center;gap:5px}.text-edit__form-input{width:auto;--ez-text-input__input--padding:0px}.text-edit__hidden-value{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}";
|
|
120327
|
+
|
|
120328
|
+
let EzTextEdit$1 = class extends HTMLElement$1 {
|
|
120329
|
+
constructor() {
|
|
120330
|
+
super();
|
|
120331
|
+
this.__registerHost();
|
|
120332
|
+
this.__attachShadow();
|
|
120333
|
+
this.saveEdition = createEvent(this, "saveEdition", 7);
|
|
120334
|
+
this.cancelEdition = createEvent(this, "cancelEdition", 7);
|
|
120335
|
+
}
|
|
120336
|
+
/**
|
|
120337
|
+
* Aplica focus no campo.
|
|
120338
|
+
*/
|
|
120339
|
+
async applyFocusSelect() {
|
|
120340
|
+
this.calcSizeInput(this.value, true);
|
|
120341
|
+
}
|
|
120342
|
+
calcSizeInput(value, setSelect = false) {
|
|
120343
|
+
var _a, _b;
|
|
120344
|
+
const textInput = (_b = (_a = this._inputElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('input');
|
|
120345
|
+
if (textInput != undefined) {
|
|
120346
|
+
const sizeText = this.getWidthValue(value);
|
|
120347
|
+
textInput.style.width = sizeText + 'px';
|
|
120348
|
+
if (setSelect) {
|
|
120349
|
+
setTimeout(() => textInput.select(), 100);
|
|
120350
|
+
}
|
|
120351
|
+
}
|
|
120352
|
+
}
|
|
120353
|
+
getWidthValue(value) {
|
|
120354
|
+
if (this._valueBasis != undefined) {
|
|
120355
|
+
const span = this._valueBasis;
|
|
120356
|
+
if (value != undefined) {
|
|
120357
|
+
const cursorSpace = 2;
|
|
120358
|
+
span.innerHTML = value;
|
|
120359
|
+
return span.clientWidth > 0 ? (span.clientWidth + cursorSpace) : cursorSpace;
|
|
120360
|
+
}
|
|
120361
|
+
else {
|
|
120362
|
+
span.innerHTML = "";
|
|
120363
|
+
}
|
|
120364
|
+
}
|
|
120365
|
+
return 0;
|
|
120366
|
+
}
|
|
120367
|
+
setStyledInput() {
|
|
120368
|
+
var _a, _b;
|
|
120369
|
+
let fontSize = "";
|
|
120370
|
+
let fontWeight = "";
|
|
120371
|
+
let fontFamily = "";
|
|
120372
|
+
if (this.styled != undefined) {
|
|
120373
|
+
fontSize = this.styled.fontSize;
|
|
120374
|
+
fontWeight = this.styled.fontWeight;
|
|
120375
|
+
fontFamily = this.styled.fontFamily;
|
|
120376
|
+
}
|
|
120377
|
+
const textInput = (_b = (_a = this._inputElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('input');
|
|
120378
|
+
if (textInput != undefined) {
|
|
120379
|
+
textInput.style.fontSize = fontSize;
|
|
120380
|
+
textInput.style.fontWeight = fontWeight;
|
|
120381
|
+
textInput.style.fontFamily = fontFamily;
|
|
120382
|
+
}
|
|
120383
|
+
const span = this._valueBasis;
|
|
120384
|
+
if (span != undefined) {
|
|
120385
|
+
span.style.fontSize = fontSize;
|
|
120386
|
+
span.style.fontWeight = fontWeight;
|
|
120387
|
+
span.style.fontFamily = fontFamily;
|
|
120388
|
+
}
|
|
120389
|
+
}
|
|
120390
|
+
handleSaveEdition() {
|
|
120391
|
+
if (this._newValue !== this.value && !StringUtils$1.isEmpty(this._newValue)) {
|
|
120392
|
+
this.saveEdition.emit({ value: this.value, newValue: this._newValue });
|
|
120393
|
+
}
|
|
120394
|
+
else if (!this._newValue) {
|
|
120395
|
+
ApplicationUtils.alert("Aviso", "Não é possível salvar um campo em branco.").then(() => {
|
|
120396
|
+
this.setNewValue(this.value, true);
|
|
120397
|
+
});
|
|
120398
|
+
}
|
|
120399
|
+
else {
|
|
120400
|
+
this.cancelEdition.emit();
|
|
120401
|
+
}
|
|
120402
|
+
}
|
|
120403
|
+
setNewValue(value, setSelect = false) {
|
|
120404
|
+
this._newValue = value;
|
|
120405
|
+
this.calcSizeInput(this._newValue, setSelect);
|
|
120406
|
+
}
|
|
120407
|
+
componentDidLoad() {
|
|
120408
|
+
this.applyFocusSelect();
|
|
120409
|
+
this.setNewValue(this.value);
|
|
120410
|
+
}
|
|
120411
|
+
componentDidRender() {
|
|
120412
|
+
this.setStyledInput();
|
|
120413
|
+
}
|
|
120414
|
+
render() {
|
|
120415
|
+
return (h(Host, null, h("span", { class: "text-edit__hidden-value", ref: elem => this._valueBasis = elem }), h("ez-text-input", { onInput: () => { this.calcSizeInput(this._newValue); }, class: "text-edit__form-input", value: this._newValue, ref: (elem) => this._inputElement = elem, mode: "slim", onEzChange: (evt) => this.setNewValue(evt === null || evt === void 0 ? void 0 : evt.detail), noBorder: true }), h("ez-button", { class: "text-edit__icon-check", mode: "icon", iconName: "check", size: "small", onClick: () => { this.handleSaveEdition(); } }), h("ez-button", { class: "text-edit__icon-close", mode: "icon", iconName: "close", size: "small", onClick: () => { this.cancelEdition.emit(); } })));
|
|
120416
|
+
}
|
|
120417
|
+
static get style() { return ezTextEditCss; }
|
|
120418
|
+
};
|
|
120419
|
+
|
|
120420
|
+
const ezTextInputCss = ":host{--ez-text-input--height:42px;--ez-text-input--width:100%;--ez-text-input__icon--width:48px;--ez-text-input--height--slim:32px;--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, #2B3A54);--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__input--noborder-color:white;--ez-text-input__input--padding:var(--space--medium, 6px);--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;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);font-weight:var(--ez-text-input--font-weight);padding:var(--ez-text-input__input--padding)}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:disabled.hasError{color:var(--ez-text-input__input--disabled--color)}input.text--right{text-align:right}input:read-only{cursor:default}.message-box{min-height:16px;min-width:100%;margin-top:3px;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}.input--slim{padding-top:var(--space--small, 3px);padding-bottom:var(--space--small, 3px);height:var(--ez-text-input--height--slim)}.input__slim--title{font-size:16px;font-weight:bold}.input--slim::-webkit-input-placeholder{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)}.input--slim:-moz-placeholder{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)}.input--slim::-moz-placeholder{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)}.input--slim:-ms-input-placeholder{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)}.input--slim::placeholder{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)}.input--slim:disabled::-webkit-input-placeholder{color:var(--ez-text-input__input--disabled--color)}.input--slim:disabled:-moz-placeholder{color:var(--ez-text-input__input--disabled--color)}.input--slim:disabled::-moz-placeholder{color:var(--ez-text-input__input--disabled--color)}.input--slim:disabled:-ms-input-placeholder{color:var(--ez-text-input__input--disabled--color)}.input--slim:disabled::placeholder{color:var(--ez-text-input__input--disabled--color)}input.input__slim--noborder{box-shadow:0 0 0 0;border:0 none;outline:0;background:var(--ez-text-input__input--noborder-color)}";
|
|
120183
120421
|
|
|
120184
120422
|
let EzTextInput$1 = class extends HTMLElement$1 {
|
|
120185
120423
|
constructor() {
|
|
@@ -120199,6 +120437,10 @@ let EzTextInput$1 = class extends HTMLElement$1 {
|
|
|
120199
120437
|
* Define o modo do tamanho do campo; opções: slim e regular.
|
|
120200
120438
|
*/
|
|
120201
120439
|
this.mode = "regular";
|
|
120440
|
+
/**
|
|
120441
|
+
* Define se o campo contará com bordas ou não
|
|
120442
|
+
*/
|
|
120443
|
+
this.noBorder = false;
|
|
120202
120444
|
}
|
|
120203
120445
|
observeErrorMessage() {
|
|
120204
120446
|
if (this._inputElem) {
|
|
@@ -120272,6 +120514,11 @@ let EzTextInput$1 = class extends HTMLElement$1 {
|
|
|
120272
120514
|
this._contentLeftSlot.style.color = color;
|
|
120273
120515
|
}
|
|
120274
120516
|
}
|
|
120517
|
+
adjustBorderInput() {
|
|
120518
|
+
if (this.noBorder) {
|
|
120519
|
+
this._inputElem.classList.add("input__slim--noborder");
|
|
120520
|
+
}
|
|
120521
|
+
}
|
|
120275
120522
|
//---------------------------------------------
|
|
120276
120523
|
// Public methods
|
|
120277
120524
|
//---------------------------------------------
|
|
@@ -120379,6 +120626,7 @@ let EzTextInput$1 = class extends HTMLElement$1 {
|
|
|
120379
120626
|
this.observeErrorMessage();
|
|
120380
120627
|
this.observeMask();
|
|
120381
120628
|
this.adjustFloatingLabel();
|
|
120629
|
+
this.adjustBorderInput();
|
|
120382
120630
|
}
|
|
120383
120631
|
componentWillLoad() {
|
|
120384
120632
|
this.observeMask();
|
|
@@ -121107,14 +121355,14 @@ let EzViewStack$1 = class extends HTMLElement$1 {
|
|
|
121107
121355
|
static get style() { return ezViewStackCss; }
|
|
121108
121356
|
};
|
|
121109
121357
|
|
|
121110
|
-
const EzActionsButton = /*@__PURE__*/proxyCustomElement(EzActionsButton$1, [1,"ez-actions-button",{"enabled":[516],"actions":[1040],"size":[513]}]);
|
|
121358
|
+
const EzActionsButton = /*@__PURE__*/proxyCustomElement(EzActionsButton$1, [1,"ez-actions-button",{"enabled":[516],"actions":[1040],"size":[513],"showLabel":[516,"show-label"],"iconName":[513,"icon-name"],"checkOption":[516,"check-option"],"value":[513],"isTransparent":[516,"is-transparent"],"arrowActive":[516,"arrow-active"],"_selectedAction":[32]}]);
|
|
121111
121359
|
const EzApplication = /*@__PURE__*/proxyCustomElement(EzApplication$1, [0,"ez-application"]);
|
|
121112
121360
|
const EzButton = /*@__PURE__*/proxyCustomElement(EzButton$1, [1,"ez-button",{"label":[513],"enabled":[516],"mode":[513],"image":[513],"iconName":[513,"icon-name"],"size":[513]}]);
|
|
121113
121361
|
const EzCalendar = /*@__PURE__*/proxyCustomElement(EzCalendar$1, [1,"ez-calendar",{"value":[1040],"floating":[516],"time":[516],"showSeconds":[516,"show-seconds"]}]);
|
|
121114
121362
|
const EzCardItem = /*@__PURE__*/proxyCustomElement(EzCardItem$1, [1,"ez-card-item",{"item":[16]}]);
|
|
121115
121363
|
const EzCheck = /*@__PURE__*/proxyCustomElement(EzCheck$1, [1,"ez-check",{"label":[513],"value":[1540],"enabled":[1540],"mode":[513]}]);
|
|
121116
121364
|
const EzChip = /*@__PURE__*/proxyCustomElement(EzChip$1, [1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540]}]);
|
|
121117
|
-
const EzCollapsibleBox = /*@__PURE__*/proxyCustomElement(EzCollapsibleBox$1, [1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"stretchTitle":[516,"stretch-title"]}]);
|
|
121365
|
+
const EzCollapsibleBox = /*@__PURE__*/proxyCustomElement(EzCollapsibleBox$1, [1,"ez-collapsible-box",{"value":[1540],"label":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"stretchTitle":[516,"stretch-title"],"removable":[516],"editable":[516],"conditionalSave":[16],"_activeEditText":[32]}]);
|
|
121118
121366
|
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"],"suppressSearch":[4,"suppress-search"],"optionLoader":[16],"suppressEmptyOption":[4,"suppress-empty-option"],"canShowError":[516,"can-show-error"],"mode":[513],"_preSelection":[32],"_visibleOptions":[32],"_startLoading":[32],"_showLoading":[32],"_criteria":[32]}]);
|
|
121119
121367
|
const EzDateInput = /*@__PURE__*/proxyCustomElement(EzDateInput$1, [1,"ez-date-input",{"label":[513],"value":[1040],"enabled":[516],"errorMessage":[1537,"error-message"],"mode":[513]}]);
|
|
121120
121368
|
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"],"mode":[513]}]);
|
|
@@ -121137,7 +121385,8 @@ const EzSearch = /*@__PURE__*/proxyCustomElement(EzSearch$1, [1,"ez-search",{"va
|
|
|
121137
121385
|
const EzSelectBox = /*@__PURE__*/proxyCustomElement(SelectBox, [1,"ez-select-box",{"selectedOption":[1,"selected-option"]}]);
|
|
121138
121386
|
const EzTabselector = /*@__PURE__*/proxyCustomElement(EzTabselector$1, [1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}]);
|
|
121139
121387
|
const EzTextArea = /*@__PURE__*/proxyCustomElement(EzTextArea$1, [1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"rows":[1538],"canShowError":[516,"can-show-error"],"mode":[513]}]);
|
|
121140
|
-
const
|
|
121388
|
+
const EzTextEdit = /*@__PURE__*/proxyCustomElement(EzTextEdit$1, [1,"ez-text-edit",{"value":[1],"styled":[16],"_newValue":[32]}]);
|
|
121389
|
+
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],"mode":[513],"noBorder":[516,"no-border"]}]);
|
|
121141
121390
|
const EzTimeInput = /*@__PURE__*/proxyCustomElement(EzTimeInput$1, [1,"ez-time-input",{"label":[513],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"],"mode":[513]}]);
|
|
121142
121391
|
const EzToast = /*@__PURE__*/proxyCustomElement(EzToast$1, [1,"ez-toast",{"message":[1025],"fadeTime":[1026,"fade-time"],"useIcon":[1028,"use-icon"],"canClose":[1028,"can-close"]}]);
|
|
121143
121392
|
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]}]);
|
|
@@ -121175,6 +121424,7 @@ const defineCustomElements = (opts) => {
|
|
|
121175
121424
|
EzSelectBox,
|
|
121176
121425
|
EzTabselector,
|
|
121177
121426
|
EzTextArea,
|
|
121427
|
+
EzTextEdit,
|
|
121178
121428
|
EzTextInput,
|
|
121179
121429
|
EzTimeInput,
|
|
121180
121430
|
EzToast,
|
|
@@ -121188,4 +121438,4 @@ const defineCustomElements = (opts) => {
|
|
|
121188
121438
|
}
|
|
121189
121439
|
};
|
|
121190
121440
|
|
|
121191
|
-
export { EzActionsButton, EzApplication, EzButton, EzCalendar, EzCardItem, EzCheck, EzChip, EzCollapsibleBox, EzComboBox, EzDateInput, EzDateTimeInput, EzDialog, EzFilterInput, EzForm, EzGrid, EzGridConfig, EzIcon, EzList, EzLoadingBar, EzModal, EzModalContainer, EzNumberInput, EzPopover, EzPopup, EzRadioButton, EzScroller, EzSearch, EzSelectBox, EzTabselector, EzTextArea, EzTextInput, EzTimeInput, EzToast, EzUpload, EzViewStack, defineCustomElements };
|
|
121441
|
+
export { EzActionsButton, EzApplication, EzButton, EzCalendar, EzCardItem, EzCheck, EzChip, EzCollapsibleBox, EzComboBox, EzDateInput, EzDateTimeInput, EzDialog, EzFilterInput, EzForm, EzGrid, EzGridConfig, EzIcon, EzList, EzLoadingBar, EzModal, EzModalContainer, EzNumberInput, EzPopover, EzPopup, EzRadioButton, EzScroller, EzSearch, EzSelectBox, EzTabselector, EzTextArea, EzTextEdit, EzTextInput, EzTimeInput, EzToast, EzUpload, EzViewStack, defineCustomElements };
|