@sankhyalabs/ezui 6.4.0-dev.2 → 6.4.0-dev.3
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/{ApplicationUtils-6a76ac09.js → ApplicationUtils-e920876b.js} +1 -1
- package/dist/cjs/{app-globals-0a67e214.js → app-globals-cc9fa51a.js} +1 -1
- package/dist/cjs/ez-actions-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-avatar.cjs.entry.js +1 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/{ez-card-item_2.cjs.entry.js → ez-card-item.cjs.entry.js} +0 -205
- package/dist/cjs/ez-classic-combo-box.cjs.entry.js +324 -0
- package/dist/cjs/ez-classic-input.cjs.entry.js +26 -9
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
- package/dist/cjs/ez-combo-box-list_4.cjs.entry.js +2 -2
- package/dist/cjs/ez-combo-box.cjs.entry.js +2 -2
- package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-double-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
- package/dist/cjs/ez-form.cjs.entry.js +3 -3
- package/dist/cjs/ez-grid.cjs.entry.js +3 -3
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-link-builder_6.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal.cjs.entry.js +1 -1
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-popover-core.cjs.entry.js +211 -0
- package/dist/cjs/ez-search-plus.cjs.entry.js +2 -2
- package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +2 -2
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ez-sortable-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-item.cjs.entry.js +2 -2
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-tree.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +2 -2
- package/dist/cjs/ezui.cjs.js +3 -3
- package/dist/cjs/filter-column.cjs.entry.js +1 -1
- package/dist/cjs/index-a7b0c73d.js +12 -4
- package/dist/cjs/{index-425b1f67.js → index-a8b00749.js} +12 -0
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{search-column-78dd20d5.js → search-column-ac3e37a1.js} +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css +99 -0
- package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js +798 -0
- package/dist/collection/components/ez-classic-combo-box/interfaces/IOption.js +1 -0
- package/dist/collection/components/ez-classic-input/ez-classic-input.css +29 -0
- package/dist/collection/components/ez-classic-input/ez-classic-input.js +42 -8
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
- package/dist/collection/utils/i18n/locales/en-us.js +4 -0
- package/dist/collection/utils/i18n/locales/es-es.js +4 -0
- package/dist/collection/utils/i18n/locales/pt-br.js +4 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +360 -12
- package/dist/esm/{ApplicationUtils-1fd662ab.js → ApplicationUtils-70608555.js} +1 -1
- package/dist/esm/{app-globals-8a94d86c.js → app-globals-ba0c56ec.js} +1 -1
- package/dist/esm/ez-actions-button.entry.js +2 -2
- package/dist/esm/ez-alert-list.entry.js +1 -1
- package/dist/esm/ez-avatar.entry.js +1 -1
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/{ez-card-item_2.entry.js → ez-card-item.entry.js} +1 -205
- package/dist/esm/ez-classic-combo-box.entry.js +320 -0
- package/dist/esm/ez-classic-input.entry.js +26 -9
- package/dist/esm/ez-collapsible-box.entry.js +2 -2
- package/dist/esm/ez-combo-box-list_4.entry.js +2 -2
- package/dist/esm/ez-combo-box.entry.js +2 -2
- package/dist/esm/ez-date-input.entry.js +1 -1
- package/dist/esm/ez-date-time-input.entry.js +1 -1
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-double-list.entry.js +1 -1
- package/dist/esm/ez-file-item.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +1 -1
- package/dist/esm/ez-form.entry.js +3 -3
- package/dist/esm/ez-grid.entry.js +3 -3
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-link-builder_6.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +1 -1
- package/dist/esm/ez-modal.entry.js +1 -1
- package/dist/esm/ez-multi-selection-list.entry.js +2 -2
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/ez-popover-core.entry.js +207 -0
- package/dist/esm/ez-search-plus.entry.js +2 -2
- package/dist/esm/ez-search-result-list.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +2 -2
- package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
- package/dist/esm/ez-skeleton.entry.js +1 -1
- package/dist/esm/ez-sortable-list.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +1 -1
- package/dist/esm/ez-split-item.entry.js +2 -2
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ez-tree.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +2 -2
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/filter-column.entry.js +1 -1
- package/dist/esm/{index-498e0126.js → index-5004bd27.js} +12 -0
- package/dist/esm/index-baa5e267.js +12 -4
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{search-column-729f3655.js → search-column-eadd8a51.js} +2 -2
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-9dc31fc6.js → p-0e539c0f.js} +1 -1
- package/dist/ezui/{p-7e5c7b4c.js → p-0e6cbfc8.js} +1 -1
- package/dist/ezui/{p-e5e623d9.entry.js → p-0ff1bee4.entry.js} +1 -1
- package/dist/ezui/{p-31450a28.entry.js → p-25e71e8c.entry.js} +1 -1
- package/dist/ezui/{p-0c1a288c.entry.js → p-26e898c9.entry.js} +1 -1
- package/dist/ezui/{p-da4419a6.entry.js → p-2a265ae2.entry.js} +1 -1
- package/dist/ezui/{p-86b065e6.entry.js → p-314e3bfe.entry.js} +1 -1
- package/dist/ezui/{p-52d9b604.entry.js → p-35ca0988.entry.js} +1 -1
- package/dist/ezui/{p-2879c45f.entry.js → p-3b296bad.entry.js} +1 -1
- package/dist/ezui/p-3bf7f94b.entry.js +1 -0
- package/dist/ezui/{p-d512cb84.entry.js → p-4476b0ac.entry.js} +1 -1
- package/dist/ezui/{p-5dd12c80.entry.js → p-4638d099.entry.js} +1 -1
- package/dist/ezui/{p-1e21d31b.entry.js → p-47962426.entry.js} +1 -1
- package/dist/ezui/{p-24732fea.entry.js → p-47c7b561.entry.js} +1 -1
- package/dist/ezui/p-4c619e2d.js +1 -0
- package/dist/ezui/{p-5172793a.entry.js → p-50a2fa06.entry.js} +1 -1
- package/dist/ezui/{p-82fa431b.entry.js → p-59700a63.entry.js} +1 -1
- package/dist/ezui/{p-94630d41.entry.js → p-5ac4e99a.entry.js} +1 -1
- package/dist/ezui/{p-d845fa56.entry.js → p-5bdaa387.entry.js} +1 -1
- package/dist/ezui/{p-762a1033.entry.js → p-5bf5da85.entry.js} +1 -1
- package/dist/ezui/{p-39b16566.entry.js → p-69c1f7db.entry.js} +1 -1
- package/dist/ezui/{p-ec04285e.entry.js → p-6d3fa2dd.entry.js} +1 -1
- package/dist/ezui/{p-5ac7c4b3.entry.js → p-740b4ff5.entry.js} +1 -1
- package/dist/ezui/{p-66b00dec.entry.js → p-777b23fa.entry.js} +1 -1
- package/dist/ezui/{p-559b915a.entry.js → p-7999daa0.entry.js} +1 -1
- package/dist/ezui/{p-af47458b.js → p-8031e29e.js} +1 -1
- package/dist/ezui/{p-7aed8d32.entry.js → p-875d0bd2.entry.js} +1 -1
- package/dist/ezui/{p-3cecb4cb.entry.js → p-9adcab8a.entry.js} +1 -1
- package/dist/ezui/{p-bc22f56d.entry.js → p-9ae1f716.entry.js} +1 -1
- package/dist/ezui/p-9b2e6438.entry.js +1 -0
- package/dist/ezui/{p-4e6e0740.entry.js → p-9e35c475.entry.js} +1 -1
- package/dist/ezui/{p-57b40333.entry.js → p-a429a86c.entry.js} +1 -1
- package/dist/ezui/{p-5b9060ad.entry.js → p-ab52e931.entry.js} +1 -1
- package/dist/ezui/{p-60f5483c.entry.js → p-b1c4bbf2.entry.js} +1 -1
- package/dist/ezui/{p-e20ad35d.entry.js → p-b297d3f8.entry.js} +1 -1
- package/dist/ezui/{p-451a17ad.entry.js → p-b881cb64.entry.js} +1 -1
- package/dist/ezui/{p-3751da14.entry.js → p-b9158a92.entry.js} +1 -1
- package/dist/ezui/p-baf90704.entry.js +1 -0
- package/dist/ezui/p-d6f50207.entry.js +1 -0
- package/dist/ezui/{p-c2d38fbf.entry.js → p-db324ab1.entry.js} +1 -1
- package/dist/ezui/{p-4c5cb0da.entry.js → p-e1ee0b5a.entry.js} +1 -1
- package/dist/ezui/{p-02e1efa8.entry.js → p-f5ed1a75.entry.js} +1 -1
- package/dist/types/components/ez-classic-combo-box/ez-classic-combo-box.d.ts +115 -0
- package/dist/types/components/ez-classic-combo-box/interfaces/IOption.d.ts +4 -0
- package/dist/types/components/ez-classic-input/ez-classic-input.d.ts +7 -0
- package/dist/types/components.d.ts +199 -20
- package/dist/types/utils/i18n/locales/en-us.d.ts +4 -0
- package/dist/types/utils/i18n/locales/es-es.d.ts +4 -0
- package/dist/types/utils/i18n/locales/pt-br.d.ts +4 -0
- package/dist/types/utils/i18n/translations.d.ts +12 -0
- package/package.json +1 -1
- package/react/components.d.ts +1 -0
- package/react/components.js +1 -0
- package/react/components.js.map +1 -1
- package/dist/ezui/p-07819d50.js +0 -1
- package/dist/ezui/p-5e495d47.entry.js +0 -1
- package/dist/ezui/p-e78e87f5.entry.js +0 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { h, HTMLElement as HTMLElement$1, createEvent, Host, forceUpdate, Fragment, proxyCustomElement } from '@stencil/core/internal/client';
|
|
2
2
|
export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
|
|
3
|
-
import { LangUtils, ApplicationContext, UserInterface, DateUtils as DateUtils$1, Action, StringUtils as StringUtils$1, ObjectUtils as ObjectUtils$1, WaitingChangeException, DataUnitAction, FloatingManager, ElementIDUtils, JSUtils, HTMLBuilder, TimeFormatter,
|
|
3
|
+
import { LangUtils, ApplicationContext, UserInterface, DateUtils as DateUtils$1, Action, StringUtils as StringUtils$1, ObjectUtils as ObjectUtils$1, WaitingChangeException, DataUnitAction, FloatingManager, ElementIDUtils, JSUtils, KeyboardManager, HTMLBuilder, TimeFormatter, DataUnit, LockManager, LockManagerOperation, DataType, NumberUtils as NumberUtils$1, MaskFormatter as MaskFormatter$1, SortMode, ColumnFilterManager as ColumnFilterManager$1, ArrayUtils as ArrayUtils$1, FieldComparator, OverflowWatcher, OVERFLOWED_CLASS_NAME } from '@sankhyalabs/core';
|
|
4
4
|
import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
|
|
5
5
|
|
|
6
6
|
const isString = obj => typeof obj === 'string';
|
|
@@ -2852,6 +2852,10 @@ const ptBrTranslations = {
|
|
|
2852
2852
|
placeholder: "Selecione um item",
|
|
2853
2853
|
noResults: "Nenhum resultado encontrado",
|
|
2854
2854
|
},
|
|
2855
|
+
"ez-classic-combo-box": {
|
|
2856
|
+
emptyOption: "Selecione um item",
|
|
2857
|
+
noResults: "Nenhum resultado encontrado",
|
|
2858
|
+
},
|
|
2855
2859
|
"ez-date-time-input": {
|
|
2856
2860
|
invalidDate: "O valor digitado não é uma data e hora válida"
|
|
2857
2861
|
},
|
|
@@ -3133,6 +3137,10 @@ const enUsTranslations = {
|
|
|
3133
3137
|
placeholder: "Select an item",
|
|
3134
3138
|
noResults: "No results found",
|
|
3135
3139
|
},
|
|
3140
|
+
"ez-classic-combo-box": {
|
|
3141
|
+
emptyOption: "Select an item",
|
|
3142
|
+
noResults: "No results found",
|
|
3143
|
+
},
|
|
3136
3144
|
"ez-date-time-input": {
|
|
3137
3145
|
invalidDate: "The entered value is not a valid date and time"
|
|
3138
3146
|
},
|
|
@@ -3414,6 +3422,10 @@ const esEsTranslations = {
|
|
|
3414
3422
|
placeholder: "Seleccione un elemento",
|
|
3415
3423
|
noResults: "No se encontraron resultados",
|
|
3416
3424
|
},
|
|
3425
|
+
"ez-classic-combo-box": {
|
|
3426
|
+
emptyOption: "Seleccione un elemento",
|
|
3427
|
+
noResults: "No se encontraron resultados",
|
|
3428
|
+
},
|
|
3417
3429
|
"ez-date-time-input": {
|
|
3418
3430
|
invalidDate: "El valor ingresado no es una fecha y hora válida"
|
|
3419
3431
|
},
|
|
@@ -6688,6 +6700,323 @@ const EzChip$1 = class extends HTMLElement$1 {
|
|
|
6688
6700
|
static get style() { return ezChipCss; }
|
|
6689
6701
|
};
|
|
6690
6702
|
|
|
6703
|
+
const ezClassicComboBoxCss = ":host{display:block;box-sizing:border-box;font-family:var(--font--pattern, 'Roboto', Arial, sans-serif);font-size:var(--font-size--default, 14px);color:var(--color--gray-500, #494A4E);--ez-classic-combo-box-highlighted-bg-color:var(--color--gray-90, #EAEAEA);--ez-classic-combo-box-max-height:180px;--ez-classic-combo-box-list-bg-color:var(--color--gray-70, #FFFFFF);--ez-classic-combo-box-item-hover-bg-color:var(--color--gray-100, #DEDEDE);--ez-classic-combo-box-selected-bg-color:var(--color--ocean-green-90, #E6F3EF);--ez-classic-combo-box-selected-text-color:var(--color--ocean-green-600, #008561);--ez-classic-combo-box-selected-font-weight:var(--font-weight--medium, 500);--ez-classic-combo-box-item-padding:var(--space--8, 8px) var(--space--4, 4px);--ez-classic-combo-box-item-border-radius:var(--border--radius-8, 8px);--ez-classic-combo-box-list-margin:var(--space--6, 6px);--ez-classic-combo-box-transition-duration:150ms;--ez-classic-combo-box-scrollbar-color:var(--color--gray-300, #C4C4C4);--ez-classic-combo-box-no-results-margin:var(--space--52, 52px) 0;--ez-classic-combo-box-item-text-color:inherit;--ez-classic-combo-box-item-min-height:auto}ul{list-style:none;padding:0;margin:var(--ez-classic-combo-box-list-margin);display:flex;flex-direction:column;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--ez-classic-combo-box-scrollbar-color) transparent;max-height:var(--ez-classic-combo-box-max-height);scroll-behavior:smooth;background-color:var(--ez-classic-combo-box-list-bg-color)}li{cursor:pointer;border-radius:var(--ez-classic-combo-box-item-border-radius);padding:var(--ez-classic-combo-box-item-padding);transition:var(--ez-classic-combo-box-transition-duration) background-color linear;color:var(--ez-classic-combo-box-item-text-color);min-height:var(--ez-classic-combo-box-item-min-height)}li:hover{background-color:var(--ez-classic-combo-box-item-hover-bg-color)}li.highlighted{background-color:var(--ez-classic-combo-box-highlighted-bg-color)}li.selected{background-color:var(--ez-classic-combo-box-selected-bg-color);color:var(--ez-classic-combo-box-selected-text-color);font-weight:var(--ez-classic-combo-box-selected-font-weight)}span.no-results{margin:var(--ez-classic-combo-box-no-results-margin);cursor:default;text-align:center;display:flex;align-items:center;justify-content:center}";
|
|
6704
|
+
|
|
6705
|
+
const EzClassicComboBox$1 = class extends HTMLElement$1 {
|
|
6706
|
+
constructor() {
|
|
6707
|
+
super();
|
|
6708
|
+
this.__registerHost();
|
|
6709
|
+
this.__attachShadow();
|
|
6710
|
+
this.ezChange = createEvent(this, "ezChange", 7);
|
|
6711
|
+
this.ezBlur = createEvent(this, "ezBlur", 7);
|
|
6712
|
+
this.iconClick = createEvent(this, "iconClick", 7);
|
|
6713
|
+
this.ezVisibilityChange = createEvent(this, "ezVisibilityChange", 7);
|
|
6714
|
+
this.ezType = createEvent(this, "ezType", 7);
|
|
6715
|
+
this._keyboardManager = undefined;
|
|
6716
|
+
this._boundHandleDocumentClick = this.handleDocumentClick.bind(this);
|
|
6717
|
+
this.popoverVisible = false;
|
|
6718
|
+
this.hasSlotContent = false;
|
|
6719
|
+
this.highlightedIndex = 0;
|
|
6720
|
+
this.filteredOptions = [];
|
|
6721
|
+
this.inputValue = '';
|
|
6722
|
+
this.value = null;
|
|
6723
|
+
this.label = undefined;
|
|
6724
|
+
this.placeholder = undefined;
|
|
6725
|
+
this.enabled = true;
|
|
6726
|
+
this.readonly = false;
|
|
6727
|
+
this.name = undefined;
|
|
6728
|
+
this.state = "default";
|
|
6729
|
+
this.helpText = undefined;
|
|
6730
|
+
this.iconName = undefined;
|
|
6731
|
+
this.titleIcon = undefined;
|
|
6732
|
+
this.iconClickable = false;
|
|
6733
|
+
this.suppressSearch = false;
|
|
6734
|
+
this.options = undefined;
|
|
6735
|
+
this.textEmptyOption = undefined;
|
|
6736
|
+
this.suppressEmptyOption = false;
|
|
6737
|
+
}
|
|
6738
|
+
/**
|
|
6739
|
+
* Aplica o foco no campo.
|
|
6740
|
+
*/
|
|
6741
|
+
async setFocus(option) {
|
|
6742
|
+
var _a;
|
|
6743
|
+
await ((_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.setFocus(option));
|
|
6744
|
+
}
|
|
6745
|
+
/**
|
|
6746
|
+
* Remove o foco do campo.
|
|
6747
|
+
*/
|
|
6748
|
+
async setBlur() {
|
|
6749
|
+
var _a;
|
|
6750
|
+
await ((_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.setBlur());
|
|
6751
|
+
await this.hidePopover();
|
|
6752
|
+
}
|
|
6753
|
+
/**
|
|
6754
|
+
* Exibe o popover abaixo do input.
|
|
6755
|
+
*/
|
|
6756
|
+
async showPopover() {
|
|
6757
|
+
var _a, _b, _c;
|
|
6758
|
+
if (!this._popoverElem || !this._inputElem || this.popoverVisible) {
|
|
6759
|
+
return;
|
|
6760
|
+
}
|
|
6761
|
+
this.popoverVisible = true;
|
|
6762
|
+
const inputContainer = (_b = (_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('.input-container');
|
|
6763
|
+
await ((_c = this._popoverElem) === null || _c === void 0 ? void 0 : _c.showUnder(inputContainer !== null && inputContainer !== void 0 ? inputContainer : this._inputElem));
|
|
6764
|
+
}
|
|
6765
|
+
/**
|
|
6766
|
+
* Oculta o popover.
|
|
6767
|
+
*/
|
|
6768
|
+
async hidePopover() {
|
|
6769
|
+
var _a;
|
|
6770
|
+
this.popoverVisible = false;
|
|
6771
|
+
await ((_a = this._popoverElem) === null || _a === void 0 ? void 0 : _a.hide());
|
|
6772
|
+
}
|
|
6773
|
+
compareOptionValues(option1, option2) {
|
|
6774
|
+
var _a, _b;
|
|
6775
|
+
return JSON.stringify((_a = option1 === null || option1 === void 0 ? void 0 : option1.value) !== null && _a !== void 0 ? _a : null) === JSON.stringify((_b = option2 === null || option2 === void 0 ? void 0 : option2.value) !== null && _b !== void 0 ? _b : null);
|
|
6776
|
+
}
|
|
6777
|
+
setEmptyValue() {
|
|
6778
|
+
this.value = null;
|
|
6779
|
+
this.inputValue = '';
|
|
6780
|
+
}
|
|
6781
|
+
async setValue(option) {
|
|
6782
|
+
if (!option || !this.options) {
|
|
6783
|
+
this.setEmptyValue();
|
|
6784
|
+
await this.hidePopover();
|
|
6785
|
+
return;
|
|
6786
|
+
}
|
|
6787
|
+
if (this.compareOptionValues(this.value, option)) {
|
|
6788
|
+
await this.hidePopover();
|
|
6789
|
+
return;
|
|
6790
|
+
}
|
|
6791
|
+
if (!option.value) {
|
|
6792
|
+
this.setEmptyValue();
|
|
6793
|
+
}
|
|
6794
|
+
else {
|
|
6795
|
+
this.value = option;
|
|
6796
|
+
this.inputValue = option.label;
|
|
6797
|
+
}
|
|
6798
|
+
this.ezChange.emit(this.value);
|
|
6799
|
+
await this.hidePopover();
|
|
6800
|
+
}
|
|
6801
|
+
async optionsChanged() {
|
|
6802
|
+
this.filterOptions('');
|
|
6803
|
+
}
|
|
6804
|
+
async valueChanged(newValue) {
|
|
6805
|
+
if (newValue) {
|
|
6806
|
+
this.inputValue = newValue.label;
|
|
6807
|
+
this.setHighlightedIndexToValue();
|
|
6808
|
+
}
|
|
6809
|
+
else {
|
|
6810
|
+
this.inputValue = '';
|
|
6811
|
+
this.highlightedIndex = 0;
|
|
6812
|
+
}
|
|
6813
|
+
}
|
|
6814
|
+
async handleIconClick(event) {
|
|
6815
|
+
event.stopPropagation();
|
|
6816
|
+
event.preventDefault();
|
|
6817
|
+
if (event.detail.icon === 'right') {
|
|
6818
|
+
if (!this.popoverVisible) {
|
|
6819
|
+
await this.showPopover();
|
|
6820
|
+
}
|
|
6821
|
+
else {
|
|
6822
|
+
await this.hidePopover();
|
|
6823
|
+
}
|
|
6824
|
+
}
|
|
6825
|
+
else {
|
|
6826
|
+
this.iconClick.emit();
|
|
6827
|
+
}
|
|
6828
|
+
}
|
|
6829
|
+
async handleEzChange(event) {
|
|
6830
|
+
event.stopPropagation();
|
|
6831
|
+
this.inputValue = event.detail;
|
|
6832
|
+
if (!this.popoverVisible && this.inputValue.length > 0) {
|
|
6833
|
+
await this.showPopover();
|
|
6834
|
+
}
|
|
6835
|
+
this.ezType.emit(this.inputValue);
|
|
6836
|
+
this.highlightedIndex = 0;
|
|
6837
|
+
this.filterOptions(this.inputValue);
|
|
6838
|
+
}
|
|
6839
|
+
async handleEzBlur(event) {
|
|
6840
|
+
var _a, _b;
|
|
6841
|
+
event.stopPropagation();
|
|
6842
|
+
if (((_a = this.value) === null || _a === void 0 ? void 0 : _a.label) !== this.inputValue) {
|
|
6843
|
+
this.inputValue = ((_b = this.value) === null || _b === void 0 ? void 0 : _b.label) || '';
|
|
6844
|
+
}
|
|
6845
|
+
this.ezBlur.emit(this.value);
|
|
6846
|
+
}
|
|
6847
|
+
filterOptions(searchTerm) {
|
|
6848
|
+
if (!this.options) {
|
|
6849
|
+
this.filteredOptions = [];
|
|
6850
|
+
return;
|
|
6851
|
+
}
|
|
6852
|
+
let currentOptions = [];
|
|
6853
|
+
if (!searchTerm || searchTerm.trim() === '') {
|
|
6854
|
+
currentOptions = currentOptions.concat([...this.options]);
|
|
6855
|
+
}
|
|
6856
|
+
else {
|
|
6857
|
+
const term = searchTerm.toLowerCase().trim();
|
|
6858
|
+
currentOptions = currentOptions.concat(this.options.filter(option => option.label.toLowerCase().includes(term) ||
|
|
6859
|
+
option.value.toLowerCase().includes(term)));
|
|
6860
|
+
}
|
|
6861
|
+
if (!this.suppressEmptyOption && currentOptions.length > 0) {
|
|
6862
|
+
currentOptions = [
|
|
6863
|
+
{
|
|
6864
|
+
value: null,
|
|
6865
|
+
label: this.textEmptyOption || this.i18n('ez-classic-combo-box.emptyOption')
|
|
6866
|
+
},
|
|
6867
|
+
...currentOptions
|
|
6868
|
+
];
|
|
6869
|
+
}
|
|
6870
|
+
this.filteredOptions = currentOptions;
|
|
6871
|
+
this.setHighlightedIndexToValue();
|
|
6872
|
+
this.scrollToHighlightedOption();
|
|
6873
|
+
}
|
|
6874
|
+
scrollToHighlightedOption() {
|
|
6875
|
+
if (this.highlightedIndex < 0 || !this._listElem) {
|
|
6876
|
+
return;
|
|
6877
|
+
}
|
|
6878
|
+
const highlightedOption = this._listElem.children[this.highlightedIndex];
|
|
6879
|
+
if (highlightedOption) {
|
|
6880
|
+
highlightedOption.scrollIntoView({
|
|
6881
|
+
behavior: 'smooth',
|
|
6882
|
+
block: 'nearest',
|
|
6883
|
+
inline: 'start'
|
|
6884
|
+
});
|
|
6885
|
+
}
|
|
6886
|
+
}
|
|
6887
|
+
async selectOption(option) {
|
|
6888
|
+
if (!option || this.readonly || !this.enabled) {
|
|
6889
|
+
return;
|
|
6890
|
+
}
|
|
6891
|
+
await this.setValue(option);
|
|
6892
|
+
}
|
|
6893
|
+
async handleArrowUp() {
|
|
6894
|
+
var _a;
|
|
6895
|
+
if (!this.popoverVisible) {
|
|
6896
|
+
await this.showPopover();
|
|
6897
|
+
return;
|
|
6898
|
+
}
|
|
6899
|
+
const optionsLength = ((_a = this.filteredOptions) === null || _a === void 0 ? void 0 : _a.length) || 0;
|
|
6900
|
+
if (optionsLength <= 0 || this.highlightedIndex <= 0) {
|
|
6901
|
+
return;
|
|
6902
|
+
}
|
|
6903
|
+
this.highlightedIndex = Math.max(0, this.highlightedIndex - 1);
|
|
6904
|
+
this.scrollToHighlightedOption();
|
|
6905
|
+
}
|
|
6906
|
+
handleArrowDown() {
|
|
6907
|
+
var _a;
|
|
6908
|
+
if (!this.popoverVisible) {
|
|
6909
|
+
this.showPopover();
|
|
6910
|
+
return;
|
|
6911
|
+
}
|
|
6912
|
+
const optionsLength = ((_a = this.filteredOptions) === null || _a === void 0 ? void 0 : _a.length) || 0;
|
|
6913
|
+
if (optionsLength <= 0) {
|
|
6914
|
+
return;
|
|
6915
|
+
}
|
|
6916
|
+
this.highlightedIndex = Math.min(optionsLength - 1, this.highlightedIndex + 1);
|
|
6917
|
+
this.scrollToHighlightedOption();
|
|
6918
|
+
}
|
|
6919
|
+
async selectCurrentItem() {
|
|
6920
|
+
if (!this.popoverVisible || this.highlightedIndex < 0) {
|
|
6921
|
+
return;
|
|
6922
|
+
}
|
|
6923
|
+
if (this.hasSlotContent || this.filteredOptions.length === 0 || this.readonly || !this.enabled) {
|
|
6924
|
+
await this.hidePopover();
|
|
6925
|
+
return;
|
|
6926
|
+
}
|
|
6927
|
+
if (this.filteredOptions && this.filteredOptions[this.highlightedIndex]) {
|
|
6928
|
+
this.selectOption(this.filteredOptions[this.highlightedIndex]);
|
|
6929
|
+
}
|
|
6930
|
+
}
|
|
6931
|
+
handleVisibilityChange(event) {
|
|
6932
|
+
this.popoverVisible = event.detail;
|
|
6933
|
+
this.ezVisibilityChange.emit(this.popoverVisible);
|
|
6934
|
+
}
|
|
6935
|
+
checkSlotContent() {
|
|
6936
|
+
const slot = this._element.querySelector('slot') || this._element;
|
|
6937
|
+
if (slot instanceof HTMLSlotElement) {
|
|
6938
|
+
this.hasSlotContent = slot.assignedNodes().length > 0;
|
|
6939
|
+
}
|
|
6940
|
+
else {
|
|
6941
|
+
this.hasSlotContent = slot.children.length > 0;
|
|
6942
|
+
}
|
|
6943
|
+
}
|
|
6944
|
+
setHighlightedIndexToValue() {
|
|
6945
|
+
if (this.value && this.filteredOptions) {
|
|
6946
|
+
const index = this.filteredOptions.findIndex(opt => opt.value === this.value.value);
|
|
6947
|
+
if (index >= 0) {
|
|
6948
|
+
this.highlightedIndex = index;
|
|
6949
|
+
return;
|
|
6950
|
+
}
|
|
6951
|
+
this.highlightedIndex = 0;
|
|
6952
|
+
}
|
|
6953
|
+
}
|
|
6954
|
+
async handleDocumentClick(event) {
|
|
6955
|
+
const target = event.target;
|
|
6956
|
+
if (!this._element.contains(target) && !this._popoverElem.contains(target)) {
|
|
6957
|
+
await this.hidePopover();
|
|
6958
|
+
}
|
|
6959
|
+
}
|
|
6960
|
+
addInfoId() {
|
|
6961
|
+
const dataInfo = { id: 'embedded' };
|
|
6962
|
+
if (this._element) {
|
|
6963
|
+
ElementIDUtils.addIDInfo(this._element);
|
|
6964
|
+
}
|
|
6965
|
+
if (this._inputElem) {
|
|
6966
|
+
ElementIDUtils.addIDInfo(this._inputElem, 'classic-combo-box-input', dataInfo);
|
|
6967
|
+
}
|
|
6968
|
+
if (this._popoverElem) {
|
|
6969
|
+
ElementIDUtils.addIDInfo(this._popoverElem, 'classic-combo-box-popover', dataInfo);
|
|
6970
|
+
}
|
|
6971
|
+
}
|
|
6972
|
+
async initKeyboardManager() {
|
|
6973
|
+
this._keyboardManager = new KeyboardManager({ element: this._element, propagate: true });
|
|
6974
|
+
this._keyboardManager
|
|
6975
|
+
.bind("ArrowUp", () => this.handleArrowUp(), { propagate: false })
|
|
6976
|
+
.bind("ArrowDown", () => this.handleArrowDown(), { propagate: false })
|
|
6977
|
+
.bind("Enter", () => this.selectCurrentItem(), { propagate: false })
|
|
6978
|
+
.bind("Tab", () => this.selectCurrentItem())
|
|
6979
|
+
.bind("shift+Tab", () => this.selectCurrentItem())
|
|
6980
|
+
.bind("Escape", () => this.hidePopover());
|
|
6981
|
+
}
|
|
6982
|
+
async connectedCallback() {
|
|
6983
|
+
this.i18n = await initI18n();
|
|
6984
|
+
await this.initKeyboardManager();
|
|
6985
|
+
document.addEventListener('mouseup', this._boundHandleDocumentClick);
|
|
6986
|
+
}
|
|
6987
|
+
disconnectedCallback() {
|
|
6988
|
+
this._keyboardManager.unbindAllShortcutKeys();
|
|
6989
|
+
document.removeEventListener('mouseup', this._boundHandleDocumentClick);
|
|
6990
|
+
}
|
|
6991
|
+
componentWillLoad() {
|
|
6992
|
+
this.filterOptions('');
|
|
6993
|
+
}
|
|
6994
|
+
componentDidLoad() {
|
|
6995
|
+
this.addInfoId();
|
|
6996
|
+
this.checkSlotContent();
|
|
6997
|
+
if (this.value) {
|
|
6998
|
+
this.inputValue = this.value.label;
|
|
6999
|
+
this.setHighlightedIndexToValue();
|
|
7000
|
+
}
|
|
7001
|
+
}
|
|
7002
|
+
render() {
|
|
7003
|
+
var _a;
|
|
7004
|
+
return (h(Host, null, h("ez-classic-input", { ref: ref => this._inputElem = ref, name: this.name, label: this.label, placeholder: this.placeholder, value: this.inputValue, state: this.state, enabled: this.enabled, readonly: this.readonly || this.suppressSearch, leftIconName: this.iconName, leftIconTooltip: this.titleIcon, leftIconClickable: this.iconClickable, rightIconClickable: true, helpText: this.helpText, rightIconName: this.popoverVisible ? 'angle-up' : 'angle-down', onIconClick: this.handleIconClick.bind(this), onEzChange: this.handleEzChange.bind(this), onEzFocus: this.showPopover.bind(this), onEzBlur: this.handleEzBlur.bind(this) }), h("ez-popover-core", { ref: ref => this._popoverElem = ref, useAnchorSize: true, onEzVisibilityChange: this.handleVisibilityChange.bind(this), overlayType: "none", options: { verticalGap: 2, horizontalGap: 0 }, autoClose: false }, h("slot", { onSlotchange: this.checkSlotContent.bind(this) }), !this.hasSlotContent && (((_a = this.filteredOptions) === null || _a === void 0 ? void 0 : _a.length) > 0 ? (h("ul", { ref: ref => this._listElem = ref, tabIndex: -1 }, this.filteredOptions.map((option, index) => {
|
|
7005
|
+
var _a, _b;
|
|
7006
|
+
return (h("li", { key: (_a = option.value) !== null && _a !== void 0 ? _a : '__empty__', value: option.value, class: {
|
|
7007
|
+
'highlighted': this.highlightedIndex === index,
|
|
7008
|
+
'selected': ((_b = this.value) === null || _b === void 0 ? void 0 : _b.value) === option.value
|
|
7009
|
+
}, onMouseDown: () => this.selectOption(option) }, option.label));
|
|
7010
|
+
}))) : (h("span", { class: "no-results" }, this.i18n('ez-classic-combo-box.noResults')))))));
|
|
7011
|
+
}
|
|
7012
|
+
get _element() { return this; }
|
|
7013
|
+
static get watchers() { return {
|
|
7014
|
+
"options": ["optionsChanged"],
|
|
7015
|
+
"value": ["valueChanged"]
|
|
7016
|
+
}; }
|
|
7017
|
+
static get style() { return ezClassicComboBoxCss; }
|
|
7018
|
+
};
|
|
7019
|
+
|
|
6691
7020
|
class MaskFormatter {
|
|
6692
7021
|
constructor(mask) {
|
|
6693
7022
|
this.mask = mask;
|
|
@@ -6883,7 +7212,7 @@ class MaskFormatter {
|
|
|
6883
7212
|
}
|
|
6884
7213
|
}
|
|
6885
7214
|
|
|
6886
|
-
const ezClassicInputCss = ":host{display:flex;flex-direction:column;align-items:flex-start;box-sizing:border-box;font-family:var(--font--pattern, Arial, sans-serif);font-size:var(--font-size--default, 14px);color:var(--color--ocean-green-1000, #00281D);border:none;padding:0;--ez-classic-input--label-color:var(--color--ocean-green-1000, #00281D);--ez-classic-input--border-color-default:var(--color--gray-200, #D2D2D3);--ez-classic-input--border-color-focus:var(--color--gray-300, #A4A5A7);--ez-classic-input--border-color-success:var(--color--green-600, #157A00);--ez-classic-input--border-color-error:var(--color--red-600, #BD0025);--ez-classic-input--border-color-warning:var(--color--yellow-600, #EFB103);--ez-classic-input--background-color:var(--color--gray-70, #FFFFFF);--ez-classic-input--background-color-disabled:var(--color--gray-90, #EAEAEA);--ez-classic-input--text-color:var(--color--ocean-green-1000, #00281D);--ez-classic-input--placeholder-color:#bdbdbd;--ez-classic-input--icon-color:var(--color--gray-400, #77777A);--ez-classic-input--helptext-color:var(--color--ocean-green-1000, #00281D);--ez-classic-input--height:56px}.input-container{display:flex;flex-direction:row;align-items:center;width:100%;border:none;border-radius:var(--border--radius-8, 8px);padding:var(--space--16, 16px);box-sizing:border-box;gap:var(--space--10, 10px);margin:var(--space--4, 4px) var(--space--2, 2px);transition:box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);height:var(--ez-classic-input--height);background-color:var(--ez-classic-input--background-color)}.input-container,.input-container[data-state=\"default\"]{box-shadow:0 0 0 1px var(--ez-classic-input--border-color-default)}.input-container[data-state=\"success\"]{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-classic-input--border-color-success)}.input-container[data-state=\"error\"]{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-classic-input--border-color-error)}.input-container[data-state=\"warning\"]{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-classic-input--border-color-warning)}.input-container:focus-within{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-classic-input--border-color-focus)}ez-icon{min-width:var(--space--24, 24px);color:var(--ez-classic-input--icon-color)}input{flex:1;border:none;outline:none;background:transparent;height:100%;width:100%;padding:0;font-family:var(--font--pattern, Arial, sans-serif);font-size:var(--font-size--default, 14px);color:var(--color--ocean-green-1000, #00281D);text-overflow:ellipsis;color:var(--ez-classic-input--text-color)}input::placeholder{color:var(--ez-classic-input--placeholder-color)}.input-container[data-disabled=\"true\"]{cursor:not-allowed;background:var(--ez-classic-input--background-color-disabled);border-color:var(--ez-classic-input--border-color-default)}.input-container[data-disabled=\"true\"]>*{cursor:not-allowed}@keyframes ez-helptext-fadein{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}span{font-size:var(--font-size--xsmall, 10px);line-height:var(--line-height--16, 16px);overflow:hidden;text-overflow:ellipsis;animation:ez-helptext-fadein 0.3s ease;color:var(--ez-classic-input--helptext-color)}label{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:var(--line-height--20, 20px);color:var(--ez-classic-input--label-color)}.icon-clickable{cursor:pointer}";
|
|
7215
|
+
const ezClassicInputCss = ":host{display:flex;flex-direction:column;align-items:flex-start;box-sizing:border-box;font-family:var(--font--pattern, Arial, sans-serif);font-size:var(--font-size--default, 14px);color:var(--color--ocean-green-1000, #00281D);border:none;padding:0;--ez-classic-input--label-color:var(--color--ocean-green-1000, #00281D);--ez-classic-input--border-color-default:var(--color--gray-200, #D2D2D3);--ez-classic-input--border-color-focus:var(--color--gray-300, #A4A5A7);--ez-classic-input--border-color-success:var(--color--green-600, #157A00);--ez-classic-input--border-color-error:var(--color--red-600, #BD0025);--ez-classic-input--border-color-warning:var(--color--yellow-600, #EFB103);--ez-classic-input--background-color:var(--color--gray-70, #FFFFFF);--ez-classic-input--background-color-disabled:var(--color--gray-90, #EAEAEA);--ez-classic-input--text-color:var(--color--ocean-green-1000, #00281D);--ez-classic-input--placeholder-color:#bdbdbd;--ez-classic-input--icon-color:var(--color--gray-400, #77777A);--ez-classic-input--helptext-color:var(--color--ocean-green-1000, #00281D);--ez-classic-input--height:56px}.input-container{display:flex;flex-direction:row;align-items:center;width:100%;border:none;border-radius:var(--border--radius-8, 8px);padding:var(--space--16, 16px);box-sizing:border-box;gap:var(--space--10, 10px);margin:var(--space--4, 4px) var(--space--2, 2px);transition:box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1);height:var(--ez-classic-input--height);background-color:var(--ez-classic-input--background-color)}.input-container,.input-container[data-state=\"default\"]{box-shadow:0 0 0 1px var(--ez-classic-input--border-color-default)}.input-container[data-state=\"success\"]{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-classic-input--border-color-success)}.input-container[data-state=\"error\"]{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-classic-input--border-color-error)}.input-container[data-state=\"warning\"]{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-classic-input--border-color-warning)}.input-container:focus-within{box-shadow:0 0 0 var(--space--2, 2px) var(--ez-classic-input--border-color-focus)}ez-icon{min-width:var(--space--24, 24px);color:var(--ez-classic-input--icon-color)}input{flex:1;border:none;outline:none;background:transparent;height:100%;width:100%;padding:0;font-family:var(--font--pattern, Arial, sans-serif);font-size:var(--font-size--default, 14px);color:var(--color--ocean-green-1000, #00281D);text-overflow:ellipsis;color:var(--ez-classic-input--text-color)}input::placeholder{color:var(--ez-classic-input--placeholder-color)}.input-container[data-disabled=\"true\"]{cursor:not-allowed;background:var(--ez-classic-input--background-color-disabled);border-color:var(--ez-classic-input--border-color-default)}.input-container[data-disabled=\"true\"]>*{cursor:not-allowed}.input-container input:read-only{cursor:default}@keyframes ez-helptext-fadein{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:translateY(0)}}span{font-size:var(--font-size--xsmall, 10px);line-height:var(--line-height--16, 16px);overflow:hidden;text-overflow:ellipsis;animation:ez-helptext-fadein 0.3s ease;color:var(--ez-classic-input--helptext-color)}label{display:block;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;line-height:var(--line-height--20, 20px);color:var(--ez-classic-input--label-color)}.icon-clickable{cursor:pointer}";
|
|
6887
7216
|
|
|
6888
7217
|
const EzClassicInput$1 = class extends HTMLElement$1 {
|
|
6889
7218
|
constructor() {
|
|
@@ -6892,7 +7221,9 @@ const EzClassicInput$1 = class extends HTMLElement$1 {
|
|
|
6892
7221
|
this.__attachShadow();
|
|
6893
7222
|
this.ezChange = createEvent(this, "ezChange", 7);
|
|
6894
7223
|
this.ezBlur = createEvent(this, "ezBlur", 7);
|
|
7224
|
+
this.ezFocus = createEvent(this, "ezFocus", 7);
|
|
6895
7225
|
this.iconClick = createEvent(this, "iconClick", 7);
|
|
7226
|
+
this._internalValueChange = false;
|
|
6896
7227
|
this.type = 'text';
|
|
6897
7228
|
this.value = undefined;
|
|
6898
7229
|
this.label = undefined;
|
|
@@ -6931,6 +7262,19 @@ const EzClassicInput$1 = class extends HTMLElement$1 {
|
|
|
6931
7262
|
async setBlur() {
|
|
6932
7263
|
this._inputElem.blur();
|
|
6933
7264
|
}
|
|
7265
|
+
async syncValue() {
|
|
7266
|
+
if (this._internalValueChange) {
|
|
7267
|
+
this._internalValueChange = false;
|
|
7268
|
+
return;
|
|
7269
|
+
}
|
|
7270
|
+
if (this.value && this._maskFormatter && this._inputElem) {
|
|
7271
|
+
const formattedValue = this._maskFormatter.format(this.value);
|
|
7272
|
+
this._inputElem.value = formattedValue;
|
|
7273
|
+
}
|
|
7274
|
+
else if (this._inputElem) {
|
|
7275
|
+
this._inputElem.value = this.value || '';
|
|
7276
|
+
}
|
|
7277
|
+
}
|
|
6934
7278
|
onInput(event) {
|
|
6935
7279
|
try {
|
|
6936
7280
|
const inputElement = event.target;
|
|
@@ -6939,11 +7283,13 @@ const EzClassicInput$1 = class extends HTMLElement$1 {
|
|
|
6939
7283
|
const formattedValue = this._maskFormatter.format(inputValue);
|
|
6940
7284
|
const cleanValue = this._maskFormatter.removeMask(formattedValue);
|
|
6941
7285
|
inputElement.value = formattedValue;
|
|
7286
|
+
this._internalValueChange = true;
|
|
6942
7287
|
this.value = cleanValue;
|
|
6943
7288
|
const emitValue = this.emitMaskedValue ? formattedValue : cleanValue;
|
|
6944
7289
|
this.ezChange.emit(emitValue);
|
|
6945
7290
|
}
|
|
6946
7291
|
else {
|
|
7292
|
+
this._internalValueChange = true;
|
|
6947
7293
|
this.value = inputValue;
|
|
6948
7294
|
this.ezChange.emit(inputValue);
|
|
6949
7295
|
}
|
|
@@ -6955,6 +7301,9 @@ const EzClassicInput$1 = class extends HTMLElement$1 {
|
|
|
6955
7301
|
onBlur() {
|
|
6956
7302
|
this.ezBlur.emit(this.value);
|
|
6957
7303
|
}
|
|
7304
|
+
onFocus() {
|
|
7305
|
+
this.ezFocus.emit(this.value);
|
|
7306
|
+
}
|
|
6958
7307
|
handleIconClick(event, icon) {
|
|
6959
7308
|
if (!this.enabled) {
|
|
6960
7309
|
return;
|
|
@@ -6984,19 +7333,16 @@ const EzClassicInput$1 = class extends HTMLElement$1 {
|
|
|
6984
7333
|
}
|
|
6985
7334
|
}
|
|
6986
7335
|
componentDidLoad() {
|
|
6987
|
-
|
|
6988
|
-
const formattedValue = this._maskFormatter.format(this.value);
|
|
6989
|
-
this._inputElem.value = formattedValue;
|
|
6990
|
-
}
|
|
6991
|
-
else {
|
|
6992
|
-
this._inputElem.value = this.value || '';
|
|
6993
|
-
}
|
|
7336
|
+
this.syncValue();
|
|
6994
7337
|
this.addInfoId();
|
|
6995
7338
|
}
|
|
6996
7339
|
render() {
|
|
6997
|
-
return (h(Host, null, h("label", { title: this.label, htmlFor: this.name }, this.label), h("div", { class: "input-container", "data-state": this.state, "data-disabled": (!this.enabled).toString(), onClick: () => this.setFocus({ preventScroll: true }) }, this.leftIconName && (h("ez-icon", { iconName: this.leftIconName, title: this.leftIconTooltip, onClick: (event) => this.handleIconClick(event, "left"), class: { 'icon-clickable': this.leftIconClickable } })), h("input", { ref: el => this._inputElem = el, id: this.name, type: this.type, title: this.value, placeholder: this.placeholder, disabled: !this.enabled, readonly: this.readonly, name: this.name, minlength: this.minlength, maxlength: this.maxlength, onInput: this.onInput.bind(this),
|
|
7340
|
+
return (h(Host, null, h("label", { title: this.label, htmlFor: this.name }, this.label), h("div", { class: "input-container", "data-state": this.state, "data-disabled": (!this.enabled).toString(), onClick: () => this.setFocus({ preventScroll: true }) }, this.leftIconName && (h("ez-icon", { iconName: this.leftIconName, title: this.leftIconTooltip, onClick: (event) => this.handleIconClick(event, "left"), class: { 'icon-clickable': this.leftIconClickable } })), h("input", { ref: el => this._inputElem = el, id: this.name, type: this.type, title: this.value, placeholder: this.placeholder, disabled: !this.enabled, readonly: this.readonly, name: this.name, minlength: this.minlength, maxlength: this.maxlength, onInput: (event) => this.onInput(event), onBlur: this.onBlur.bind(this), onFocus: this.onFocus.bind(this) }), this.rightIconName && (h("ez-icon", { iconName: this.rightIconName, title: this.rightIconTooltip, onClick: (event) => this.handleIconClick(event, "right"), class: { 'icon-clickable': this.rightIconClickable } }))), this.helpText && (h("span", { title: this.helpText }, this.helpText))));
|
|
6998
7341
|
}
|
|
6999
7342
|
get _element() { return this; }
|
|
7343
|
+
static get watchers() { return {
|
|
7344
|
+
"value": ["syncValue"]
|
|
7345
|
+
}; }
|
|
7000
7346
|
static get style() { return ezClassicInputCss; }
|
|
7001
7347
|
};
|
|
7002
7348
|
|
|
@@ -80191,7 +80537,7 @@ const EzMuiltiSelectionList = class extends HTMLElement$1 {
|
|
|
80191
80537
|
itemSelected.check = itemCheckSelected.check;
|
|
80192
80538
|
}
|
|
80193
80539
|
buildViewList(hasDelete) {
|
|
80194
|
-
return (h(Fragment, null, this.displayOptionToCheckAllItems && (h("ez-check", { ref: (element) => (this.checkInput = element), label: this.i18n("ez-multi-selection-list.selectAll"), class: "multi-selection__select-all", onEzChange: this.handleChangeSelectAllItems.bind(this) })), h("ez-list", { class: "multi-selection__list", dataSource: this.displayOptions, listMode: "check", hoverFeedback: true, onEzCheckChange: this.handleChangeSelectedItem.bind(this), itemSlotBuilder: hasDelete ? this.buildDeleteIconSlot.bind(this) : null })));
|
|
80540
|
+
return (h(Fragment, null, this.displayOptionToCheckAllItems && (h("ez-check", { ref: (element) => (this.checkInput = element), label: this.i18n("ez-multi-selection-list.selectAll"), class: "multi-selection__select-all", onEzChange: this.handleChangeSelectAllItems.bind(this) })), h("ez-list", { class: "multi-selection__list", dataSource: this.displayOptions.map(opt => (Object.assign(Object.assign({}, opt), { id: opt.value }))), listMode: "check", hoverFeedback: true, onEzCheckChange: this.handleChangeSelectedItem.bind(this), itemSlotBuilder: hasDelete ? this.buildDeleteIconSlot.bind(this) : null })));
|
|
80195
80541
|
}
|
|
80196
80542
|
buildDeleteIconSlot(item) {
|
|
80197
80543
|
return h("ez-icon", { style: { cursor: 'pointer' }, iconName: "delete", onClick: () => this.handleRemoveItemFromOptions(item) });
|
|
@@ -92124,6 +92470,7 @@ const EzCardItem = /*@__PURE__*/proxyCustomElement(EzCardItem$1, [1,"ez-card-ite
|
|
|
92124
92470
|
const EzChart = /*@__PURE__*/proxyCustomElement(EzChart$1, [1,"ez-chart",{"type":[1],"xAxis":[16],"yAxis":[16],"chartTitle":[1,"chart-title"],"chartSubTitle":[1,"chart-sub-title"],"legendEnabled":[4,"legend-enabled"],"series":[16],"width":[2],"height":[2]}]);
|
|
92125
92471
|
const EzCheck = /*@__PURE__*/proxyCustomElement(EzCheck$1, [1,"ez-check",{"label":[513],"alternativePlaceholder":[513,"alternative-placeholder"],"value":[1540],"enabled":[1540],"indeterminate":[1540],"mode":[513],"compact":[4]}]);
|
|
92126
92472
|
const EzChip = /*@__PURE__*/proxyCustomElement(EzChip$1, [1,"ez-chip",{"label":[513],"enabled":[516],"removePosition":[513,"remove-position"],"mode":[513],"value":[1540],"showNativeTooltip":[4,"show-native-tooltip"],"disableAutoUpdateValue":[4,"disable-auto-update-value"],"maxWidth":[1,"max-width"],"size":[1],"iconNameLeft":[1,"icon-name-left"],"iconNameRight":[1,"icon-name-right"],"type":[1],"_isOverflowing":[32]}]);
|
|
92473
|
+
const EzClassicComboBox = /*@__PURE__*/proxyCustomElement(EzClassicComboBox$1, [1,"ez-classic-combo-box",{"value":[1040],"label":[1],"placeholder":[1025],"enabled":[4],"readonly":[4],"name":[1],"state":[1],"helpText":[1,"help-text"],"iconName":[1,"icon-name"],"titleIcon":[1,"title-icon"],"iconClickable":[4,"icon-clickable"],"suppressSearch":[4,"suppress-search"],"options":[16],"textEmptyOption":[1,"text-empty-option"],"suppressEmptyOption":[4,"suppress-empty-option"],"popoverVisible":[32],"hasSlotContent":[32],"highlightedIndex":[32],"filteredOptions":[32],"inputValue":[32]}]);
|
|
92127
92474
|
const EzClassicInput = /*@__PURE__*/proxyCustomElement(EzClassicInput$1, [1,"ez-classic-input",{"type":[1],"value":[1025],"label":[1],"helpText":[1,"help-text"],"placeholder":[1025],"enabled":[4],"readonly":[4],"name":[1],"minlength":[2],"maxlength":[2],"leftIconName":[1,"left-icon-name"],"rightIconName":[1,"right-icon-name"],"rightIconTooltip":[1,"right-icon-tooltip"],"leftIconTooltip":[1,"left-icon-tooltip"],"state":[1],"leftIconClickable":[4,"left-icon-clickable"],"rightIconClickable":[4,"right-icon-clickable"],"mask":[1],"emitMaskedValue":[4,"emit-masked-value"]}]);
|
|
92128
92475
|
const EzClassicTextArea = /*@__PURE__*/proxyCustomElement(EzClassicTextArea$1, [1,"ez-classic-text-area",{"name":[1],"label":[1],"placeholder":[1],"value":[1],"helpText":[1,"help-text"],"state":[1],"enabled":[4],"readonly":[4],"maxlength":[2],"resize":[1],"leftIconName":[1,"left-icon-name"],"rightIconName":[1,"right-icon-name"],"rightIconTooltip":[1,"right-icon-tooltip"],"leftIconTooltip":[1,"left-icon-tooltip"],"leftIconClickable":[4,"left-icon-clickable"],"rightIconClickable":[4,"right-icon-clickable"],"rows":[2]}]);
|
|
92129
92476
|
const EzCollapsibleBox = /*@__PURE__*/proxyCustomElement(EzCollapsibleBox$1, [1,"ez-collapsible-box",{"value":[1540],"boxBordered":[4,"box-bordered"],"label":[513],"subtitle":[513],"headerSize":[513,"header-size"],"iconPlacement":[513,"icon-placement"],"headerAlign":[513,"header-align"],"removable":[516],"editable":[516],"conditionalSave":[16],"_activeEditText":[32]}]);
|
|
@@ -92207,6 +92554,7 @@ const defineCustomElements = (opts) => {
|
|
|
92207
92554
|
EzChart,
|
|
92208
92555
|
EzCheck,
|
|
92209
92556
|
EzChip,
|
|
92557
|
+
EzClassicComboBox,
|
|
92210
92558
|
EzClassicInput,
|
|
92211
92559
|
EzClassicTextArea,
|
|
92212
92560
|
EzCollapsibleBox,
|
|
@@ -92282,4 +92630,4 @@ const defineCustomElements = (opts) => {
|
|
|
92282
92630
|
}
|
|
92283
92631
|
};
|
|
92284
92632
|
|
|
92285
|
-
export { EzActionsButton, EzAlert, EzAlertList, EzApplication, EzAvatar, EzBadge, EzBreadcrumb, EzButton, EzCalendar, EzCardItem, EzChart, EzCheck, EzChip, EzClassicInput, EzClassicTextArea, EzCollapsibleBox, EzComboBox, EzComboBoxList, EzCustomFormInput, EzDateInput, EzDateTimeInput, EzDialog, EzDoubleList, EzDropdown, EzEmptyCard, EzFileItem, EzFilterInput, EzForm, EzFormView, EzGrid, EzGuideNavigator, EzIcon, EzLinkBuilder, EzList, EzListItem, EzLoadingBar, EzModal, EzModalContainer, EzMultiSelectionList, EzNumberInput, EzPopover, EzPopoverCore, EzPopoverPlus, EzPopup, EzRadioButton, EzRichText, EzRichToolbar, EzRichToolbarArrows, EzRichToolbarConfigs, EzRichToolbarItem, EzRichToolbarLetters, EzScroller, EzSearch, EzSearchPlus, EzSearchResultList, EzSidebarButton, EzSidebarNavigator, EzSimpleImageUploader, EzSkeleton, EzSortableList, EzSplitButton, EzSplitItem, EzSplitPanel, EzTabselector, EzTag, EzTextArea, EzTextEdit, EzTextInput, EzTile, EzTileMedium, EzTimeInput, EzToast, EzTooltip, EzTree, EzUnderface, EzUpload, EzViewStack, FilterColumn, MultiSelectionBoxMessage, SearchList, defineCustomElements };
|
|
92633
|
+
export { EzActionsButton, EzAlert, EzAlertList, EzApplication, EzAvatar, EzBadge, EzBreadcrumb, EzButton, EzCalendar, EzCardItem, EzChart, EzCheck, EzChip, EzClassicComboBox, EzClassicInput, EzClassicTextArea, EzCollapsibleBox, EzComboBox, EzComboBoxList, EzCustomFormInput, EzDateInput, EzDateTimeInput, EzDialog, EzDoubleList, EzDropdown, EzEmptyCard, EzFileItem, EzFilterInput, EzForm, EzFormView, EzGrid, EzGuideNavigator, EzIcon, EzLinkBuilder, EzList, EzListItem, EzLoadingBar, EzModal, EzModalContainer, EzMultiSelectionList, EzNumberInput, EzPopover, EzPopoverCore, EzPopoverPlus, EzPopup, EzRadioButton, EzRichText, EzRichToolbar, EzRichToolbarArrows, EzRichToolbarConfigs, EzRichToolbarItem, EzRichToolbarLetters, EzScroller, EzSearch, EzSearchPlus, EzSearchResultList, EzSidebarButton, EzSidebarNavigator, EzSimpleImageUploader, EzSkeleton, EzSortableList, EzSplitButton, EzSplitItem, EzSplitPanel, EzTabselector, EzTag, EzTextArea, EzTextEdit, EzTextInput, EzTile, EzTileMedium, EzTimeInput, EzToast, EzTooltip, EzTree, EzUnderface, EzUpload, EzViewStack, FilterColumn, MultiSelectionBoxMessage, SearchList, defineCustomElements };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { D as DialogType } from './DialogType-54a62731.js';
|
|
2
|
-
import { i as initI18n } from './index-
|
|
2
|
+
import { i as initI18n } from './index-5004bd27.js';
|
|
3
3
|
|
|
4
4
|
// Unique ID creation requires a high quality random # generator. In the browser we therefore
|
|
5
5
|
// require the crypto API and do not support built-in fallback to lower quality random number
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { FloatingManager, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
|
-
import './ApplicationUtils-
|
|
3
|
+
import './ApplicationUtils-70608555.js';
|
|
4
4
|
import { C as CSSVarsUtils } from './CSSVarsUtils-acba92d7.js';
|
|
5
5
|
import './DialogType-54a62731.js';
|
|
6
6
|
import './CheckMode-bdb2ec19.js';
|
|
7
|
-
import './index-
|
|
7
|
+
import './index-5004bd27.js';
|
|
8
8
|
import './FormLayout-071d324c.js';
|
|
9
9
|
|
|
10
10
|
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-small, 6px);--ez-actions-button__actions-list--z-index:var(--ez-elevation--8, 8);--ez-actions-button__actions-max-height:415px;--ez-actions-button__btn-action--min-width:'auto';--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;overflow-y:auto;scrollbar-width:thin;z-index:var(--ez-actions-button__actions-list--z-index);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__actions-list--max-height{max-height:var(--ez-actions-button__actions-max-height)}.ez-actions-button__actions-list--lowered{margin-top:calc(var(--ez-actions-button__actions-list--top-margin) + 6px)}.ez-actions-button__btn-action{--ez-button--justify-content:flex-start;--ez-button--width:100%;--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-button--font-weight:var(--text-weight--medium, 400);--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px);--ez-button--border:none}.ez-actions-button__btn-action--spaced{--ez-button--padding-left:calc(var(--space--medium, 12px) + 24px)}.ez-actions-button__icon-right{margin-left:var(--space--small, 6px)}.ez-actions-button__icon-check,.ez-actions-button__icon-item{position:absolute;left:var(--space--medium, 12px)}.ez-actions-button__icon-check{color:var(--ez-button--hover-color)}.ez-actions-button__arrow{position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;width:0;height:0;z-index:calc(var(--ez-actions-button__actions-list--z-index) + 1);border-bottom:15px solid var(--ez-actions-button__btn-action--background-color)}.ez-actions-button__arrow--upped{margin-top:calc((var(--ez-actions-button__actions-list--top-margin) + 2px) * -1)}.ez-actions-button__arrow--small{margin-left:6px}.ez-actions-button__arrow--medium{margin-left:11px}.ez-actions-button__arrow--large{margin-left:13px}.ez-actions-button__arrow:only-child{display:none}.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-button--border:none}.ez-actions-button__btn-label{--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px)}.ez-actions-button__list-container{position:relative}.ez-actions-button--bottom-padding{padding-bottom:var(--space--small, 6px)}";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { FloatingManager, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
|
-
import { i as initI18n } from './index-
|
|
3
|
+
import { i as initI18n } from './index-5004bd27.js';
|
|
4
4
|
|
|
5
5
|
const ezAlertListCss = ":host {\n display: flex;\n\n /* Alert List */\n \n /*@doc Define a largura da lista minimizado */\n --ez-alert-list__container--width: 680px;\n /*@doc Define a altura da lista minimizado */\n --ez-alert-list__container--height: 220px;\n \n /*@doc Define a largura da lista maximizada */\n --ez-alert-list__container--width--expanded: 920px;\n /*@doc Define a altura da lista maximizada */\n --ez-alert-list__container--height--expanded: 540px;\n\n /* Title */\n /*@doc Define a fonte do título do componente */\n --ez-alert-list__title--font-family: var(--font-pattern, \"Roboto\");\n /*@doc Define o tamanho da fonte do título do popup.*/\n --ez-alert-list__title--font-size: var(--title--large, 20px);\n /*@doc Define a cor da fonte do título do popup.*/\n --ez-alert-list__title--color: var(--title--primary, #2b3a54);\n /*@doc Define o peso da fonte do título do popup.*/\n --ez-alert-list__title--font-weight: var(--text-weight--extra-large, 700);\n\n /* @doc Define a borda inferior do item da lista. */\n --ez-list__item--border-bottom: var(--border--small, 1px solid);\n\n /* @doc Define a cor da borda inferior do item da lista. */\n --ez-list__item--border-bottom-color: var(--color--strokes, #DCE0E8);\n\n /* @doc Define o tipo da quebra de linha do item da lista. */\n --ez-list__item--white-space: break-space;\n}\n\n.alert-list__content {\n display: flex;\n flex-direction: column;\n \n gap: var(--space--xs);\n margin: var(--space--large, 24px);\n width: 100%;\n}\n\n.alert-list__container {\n z-index: var(--ez-elevation--8, 8);\n display: flex;\n height: var(--ez-alert-list__container--height);\n width: var(--ez-alert-list__container--width);\n border-radius: var(--border--radius-medium);\n background-color: var(--background--xlight);\n box-shadow: var(--shadow--medium);\n\n &.expanded {\n height: var(--ez-alert-list__container--height--expanded);\n width: var(--ez-alert-list__container--width--expanded);\n }\n\n @media (max-height: 640px) {\n max-height: calc(100vh - var(--space--3xl));\n } \n}\n\n.alert-list__header {\n width: 100%;\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.alert-list__title {\n font-family: var(--ez-alert-list__title--font-family);\n font-size: var(--ez-alert-list__title--font-size);\n font-weight: var(--ez-alert-list__title--font-weight);\n color: var(--ez-alert-list__title--color);\n}\n\n.alert-list__header__buttons {\n display: flex;\n gap: var(--space--xs);\n}\n\n.alert-list__expandable-content {\n overflow-y: auto;\n scrollbar-width: thin;\n}\n\n";
|
|
6
6
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { r as registerInstance, h } from './index-baa5e267.js';
|
|
2
|
-
import { i as initI18n } from './index-
|
|
2
|
+
import { i as initI18n } from './index-5004bd27.js';
|
|
3
3
|
import '@sankhyalabs/core';
|
|
4
4
|
|
|
5
5
|
const ezAvatarCss = ":host{--ez-avatar--background-color:var(--color--ocean-green-600, #008561);--ez-avatar--color:var(--color--gray-70, #fff);--ez-avatar--border-radius-circle:50%;--ez-avatar--border-radius-square:25%;--ez-avatar--background-color-hover:var(--color--ocean-green-700, #00684C)}button,figure{display:flex;align-items:center;justify-content:center;border:var(--ez-avatar--border);background-color:var(--ez-avatar--background-color);color:var(--ez-avatar--color);font-weight:var(--font-weight--medium, 500);font-family:var(--font-pattern, 'Roboto');transition:background-color 0.2s linear, color 0.2s linear;margin:0;padding:0}button:hover{cursor:pointer;background-color:var(--ez-avatar--background-color-hover)}.avatar--320{--avatar-size:320px;width:20rem;height:20rem}.avatar--300{--avatar-size:300px;width:18.75rem;height:18.75rem}.avatar--280{--avatar-size:280px;width:17.5rem;height:17.5rem}.avatar--260{--avatar-size:260px;width:16.25rem;height:16.25rem}.avatar--240{--avatar-size:240px;width:15rem;height:15rem}.avatar--220{--avatar-size:220px;width:13.75rem;height:13.75rem}.avatar--200{--avatar-size:200px;width:12.5rem;height:12.5rem}.avatar--180{--avatar-size:180px;width:11.25rem;height:11.25rem}.avatar--160{--avatar-size:160px;width:10rem;height:10rem}.avatar--140{--avatar-size:140px;width:8.75rem;height:8.75rem}.avatar--120{--avatar-size:120px;width:7.5rem;height:7.5rem}.avatar--100{--avatar-size:100px;width:6.25rem;height:6.25rem}.avatar--80{--avatar-size:80px;width:5rem;height:5rem}.avatar--60{--avatar-size:60px;width:3.75rem;height:3.75rem}.avatar-initial{font-size:calc(0.375 * var(--avatar-size));}.avatar--circle{border-radius:var(--ez-avatar--border-radius-circle)}.avatar--square{border-radius:var(--ez-avatar--border-radius-square)}.avatar-image{width:100%;height:100%;object-fit:cover;border-radius:inherit}.avatar--has-image{background-color:transparent}ez-icon{--ez-icon--color:var(--color--gray-70, #fff);font-weight:var(--font-weight--medium, 500)}";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, f as forceUpdate, h, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { FloatingManager } from '@sankhyalabs/core';
|
|
3
|
-
import { i as initI18n } from './index-
|
|
3
|
+
import { i as initI18n } from './index-5004bd27.js';
|
|
4
4
|
|
|
5
5
|
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;scrollbar-width:none}.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}";
|
|
6
6
|
|