@sankhyalabs/ezui 5.20.0-rc.9 → 5.20.1
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/README.md +5 -4
- package/dist/cjs/{CSSVarsUtils-10c9d5b4.js → CSSVarsUtils-b136a156.js} +0 -13
- package/dist/cjs/ez-actions-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-alert-list.cjs.entry.js +47 -108
- package/dist/cjs/ez-alert.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +1 -1
- package/dist/cjs/ez-badge.cjs.entry.js +1 -1
- package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ez-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ez-card-item.cjs.entry.js +52 -0
- package/dist/cjs/ez-check.cjs.entry.js +1 -1
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-combo-box.cjs.entry.js +163 -20
- package/dist/cjs/ez-date-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-date-time-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-dropdown.cjs.entry.js +4 -10
- package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-filter-input_2.cjs.entry.js +137 -0
- package/dist/cjs/ez-form-view.cjs.entry.js +16 -35
- package/dist/cjs/ez-form.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js +34 -95
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-icon.cjs.entry.js +2 -2
- package/dist/cjs/ez-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-loading-bar.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 +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +2 -2
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-scroller_3.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +33 -612
- package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-item.cjs.entry.js +3 -21
- package/dist/cjs/ez-split-panel.cjs.entry.js +13 -16
- package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-edit.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +2 -2
- package/dist/cjs/ez-toast.cjs.entry.js +2 -2
- package/dist/cjs/ez-upload.cjs.entry.js +1 -1
- package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +2 -2
- package/dist/cjs/filter-column.cjs.entry.js +6 -17
- package/dist/cjs/{index-a7b0c73d.js → index-1064511f.js} +10 -12
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +3 -4
- package/dist/collection/components/ez-alert-list/ez-alert-list.css +2 -16
- package/dist/collection/components/ez-alert-list/ez-alert-list.js +46 -109
- package/dist/collection/components/ez-card-item/ez-card-item.css +3 -52
- package/dist/collection/components/ez-card-item/ez-card-item.js +3 -22
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +0 -1
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +179 -19
- package/dist/collection/components/ez-dropdown/ez-dropdown.js +3 -32
- package/dist/collection/components/ez-form-view/ez-form-view.css +1 -17
- package/dist/collection/components/ez-form-view/ez-form-view.js +5 -22
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +3 -3
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +2 -4
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +1 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +11 -8
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridUtils.js +8 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +3 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +3 -1
- package/dist/collection/components/ez-grid/ez-grid.css +1 -25
- package/dist/collection/components/ez-grid/ez-grid.js +10 -67
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +5 -16
- package/dist/collection/components/ez-icon/ez-icon.css +117 -119
- package/dist/collection/components/ez-popup/ez-popup.css +5 -2
- package/dist/collection/components/ez-search/ez-search.css +0 -331
- package/dist/collection/components/ez-search/ez-search.js +55 -688
- package/dist/collection/components/ez-split-panel/ez-split-panel.css +7 -6
- package/dist/collection/components/ez-split-panel/ez-split-panel.js +14 -35
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +12 -62
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +2 -82
- package/dist/collection/components/ez-toast/ez-toast.css +1 -1
- package/dist/collection/utils/CSSVarsUtils.js +0 -13
- package/dist/custom-elements/index.d.ts +0 -6
- package/dist/custom-elements/index.js +327 -1091
- package/dist/esm/{CSSVarsUtils-71ce76be.js → CSSVarsUtils-a97cfa29.js} +0 -13
- package/dist/esm/ez-actions-button.entry.js +2 -2
- package/dist/esm/ez-alert-list.entry.js +47 -108
- package/dist/esm/ez-alert.entry.js +1 -1
- package/dist/esm/ez-application.entry.js +1 -1
- package/dist/esm/ez-badge.entry.js +1 -1
- package/dist/esm/ez-breadcrumb.entry.js +1 -1
- package/dist/esm/ez-button.entry.js +1 -1
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/ez-card-item.entry.js +48 -0
- package/dist/esm/ez-check.entry.js +1 -1
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +1 -1
- package/dist/esm/ez-combo-box.entry.js +164 -21
- package/dist/esm/ez-date-input.entry.js +2 -2
- package/dist/esm/ez-date-time-input.entry.js +2 -2
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-dropdown.entry.js +4 -10
- package/dist/esm/ez-file-item.entry.js +1 -1
- package/dist/esm/ez-filter-input_2.entry.js +132 -0
- package/dist/esm/ez-form-view.entry.js +16 -35
- package/dist/esm/ez-form.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js +35 -96
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-icon.entry.js +2 -2
- package/dist/esm/ez-list.entry.js +1 -1
- package/dist/esm/ez-loading-bar.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 +1 -1
- package/dist/esm/ez-number-input.entry.js +2 -2
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +2 -2
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-scroller_3.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +34 -613
- package/dist/esm/ez-skeleton.entry.js +1 -1
- package/dist/esm/ez-split-item.entry.js +3 -21
- package/dist/esm/ez-split-panel.entry.js +13 -16
- package/dist/esm/ez-tabselector.entry.js +1 -1
- package/dist/esm/ez-text-area.entry.js +1 -1
- package/dist/esm/ez-text-edit.entry.js +1 -1
- package/dist/esm/ez-text-input.entry.js +1 -1
- package/dist/esm/ez-time-input.entry.js +2 -2
- package/dist/esm/ez-toast.entry.js +2 -2
- package/dist/esm/ez-upload.entry.js +1 -1
- package/dist/esm/ez-view-stack.entry.js +1 -1
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/filter-column.entry.js +6 -17
- package/dist/esm/{index-baa5e267.js → index-296b8458.js} +10 -12
- package/dist/esm/loader.js +3 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-e85c48d7.entry.js → p-028f264f.entry.js} +1 -1
- package/dist/ezui/{p-9f1e89c9.entry.js → p-0843df02.entry.js} +1 -1
- package/dist/ezui/{p-77a4bd35.entry.js → p-0b902469.entry.js} +1 -1
- package/dist/ezui/{p-b567fa8c.entry.js → p-12526044.entry.js} +1 -1
- package/dist/ezui/{p-20ec22c0.entry.js → p-245a44ed.entry.js} +1 -1
- package/dist/ezui/{p-a80b1287.entry.js → p-2da09f70.entry.js} +1 -1
- package/dist/ezui/{p-b041333c.entry.js → p-32b4163f.entry.js} +1 -1
- package/dist/ezui/{p-9050d2cd.entry.js → p-391de0e4.entry.js} +1 -1
- package/dist/ezui/{p-99ead599.entry.js → p-3e7cc8a4.entry.js} +1 -1
- package/dist/ezui/p-47afb974.entry.js +1 -0
- package/dist/ezui/{p-5bd5e68f.entry.js → p-52dd8b4c.entry.js} +1 -1
- package/dist/ezui/p-59bcb27c.entry.js +1 -0
- package/dist/ezui/{p-0306dff7.entry.js → p-5cef0264.entry.js} +1 -1
- package/dist/ezui/{p-85c8baae.entry.js → p-5d6f2550.entry.js} +1 -1
- package/dist/ezui/{p-1f50fa05.entry.js → p-60ba28ea.entry.js} +1 -1
- package/dist/ezui/{p-5e1d036e.entry.js → p-62304715.entry.js} +1 -1
- package/dist/ezui/{p-09cf28a5.entry.js → p-62903ab9.entry.js} +2 -2
- package/dist/ezui/{p-49456b34.entry.js → p-7319c253.entry.js} +1 -1
- package/dist/ezui/p-74049254.entry.js +1 -0
- package/dist/ezui/{p-5ed81457.entry.js → p-7525e604.entry.js} +1 -1
- package/dist/ezui/p-76d16a24.entry.js +1 -0
- package/dist/ezui/{p-9e11fc7b.js → p-7eb3e1a5.js} +1 -1
- package/dist/ezui/p-7fd54841.entry.js +1 -0
- package/dist/ezui/{p-784fe207.entry.js → p-81cd05c8.entry.js} +1 -1
- package/dist/ezui/{p-2a1a0e04.entry.js → p-8252d9b5.entry.js} +1 -1
- package/dist/ezui/{p-cc2dc4f4.entry.js → p-83885b21.entry.js} +1 -1
- package/dist/ezui/{p-0447d17c.entry.js → p-871c1a07.entry.js} +1 -1
- package/dist/ezui/p-87e85160.entry.js +1 -0
- package/dist/ezui/{p-5d86cca9.entry.js → p-95426f93.entry.js} +1 -1
- package/dist/ezui/{p-abc23d6f.entry.js → p-99692afa.entry.js} +1 -1
- package/dist/ezui/{p-44caad9a.entry.js → p-9b347f04.entry.js} +1 -1
- package/dist/ezui/{p-5d692ed1.entry.js → p-a01068e1.entry.js} +1 -1
- package/dist/ezui/p-a42fe2ce.entry.js +1 -0
- package/dist/ezui/p-af285e68.entry.js +1 -0
- package/dist/ezui/{p-9f5fa3f9.entry.js → p-b11f035c.entry.js} +1 -1
- package/dist/ezui/p-b6867f19.entry.js +1 -0
- package/dist/ezui/{p-650e4b6d.entry.js → p-c49dbf23.entry.js} +1 -1
- package/dist/ezui/{p-555c9018.entry.js → p-ccb4ccd9.entry.js} +1 -1
- package/dist/ezui/{p-1e7a8633.entry.js → p-cd19a6f8.entry.js} +1 -1
- package/dist/ezui/{p-07cbffce.entry.js → p-d20ed286.entry.js} +1 -1
- package/dist/ezui/{p-8defa6d3.entry.js → p-d3b5228e.entry.js} +1 -1
- package/dist/ezui/p-d51aa09b.entry.js +1 -0
- package/dist/ezui/{p-a08b309b.entry.js → p-d81917fd.entry.js} +1 -1
- package/dist/ezui/{p-23a36bb6.js → p-e318d280.js} +1 -1
- package/dist/ezui/{p-af95cd16.entry.js → p-e8f88361.entry.js} +1 -1
- package/dist/ezui/{p-17be134a.entry.js → p-f4208819.entry.js} +1 -1
- package/dist/ezui/{p-6e429cff.entry.js → p-f55d75e7.entry.js} +1 -1
- package/dist/ezui/p-f8653522.entry.js +1 -0
- package/dist/ezui/{p-8df1ca33.entry.js → p-fa571a4e.entry.js} +1 -1
- package/dist/types/components/ez-alert-list/ez-alert-list.d.ts +4 -33
- package/dist/types/components/ez-card-item/ez-card-item.d.ts +0 -4
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +15 -1
- package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +0 -5
- package/dist/types/components/ez-form-view/ez-form-view.d.ts +0 -3
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridUtils.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
- package/dist/types/components/ez-grid/ez-grid.d.ts +2 -15
- package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +1 -4
- package/dist/types/components/ez-search/ez-search.d.ts +10 -100
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +0 -27
- package/dist/types/components.d.ts +14 -182
- package/dist/types/utils/CSSVarsUtils.d.ts +0 -1
- package/dist/types/utils/interfaces/AbstractFieldMetadata.d.ts +1 -2
- package/dist/types/utils/interfaces/IAction.d.ts +1 -1
- package/package.json +5 -13
- package/react/components.d.ts +0 -1
- package/react/components.js +0 -1
- package/react/components.js.map +1 -1
- package/dist/cjs/ez-card-item_3.cjs.entry.js +0 -183
- package/dist/cjs/ez-split-button.cjs.entry.js +0 -147
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +0 -21
- package/dist/collection/components/ez-split-button/ez-split-button.css +0 -229
- package/dist/collection/components/ez-split-button/ez-split-button.js +0 -436
- package/dist/collection/components/ez-split-button/test/dropdownItems.js +0 -42
- package/dist/collection/utils/form/test/DataBinder.test.js +0 -9
- package/dist/esm/ez-card-item_3.entry.js +0 -177
- package/dist/esm/ez-split-button.entry.js +0 -143
- package/dist/ezui/p-072e6347.entry.js +0 -1
- package/dist/ezui/p-2eb8f73b.entry.js +0 -1
- package/dist/ezui/p-3376ad44.entry.js +0 -1
- package/dist/ezui/p-7af81663.entry.js +0 -1
- package/dist/ezui/p-7bc07c31.entry.js +0 -1
- package/dist/ezui/p-8e7031a0.entry.js +0 -1
- package/dist/ezui/p-b9fbf4e7.entry.js +0 -1
- package/dist/ezui/p-bae3d0aa.entry.js +0 -1
- package/dist/ezui/p-baf80b13.entry.js +0 -1
- package/dist/ezui/p-bc2f844e.entry.js +0 -1
- package/dist/ezui/p-db77a984.entry.js +0 -1
- package/dist/types/components/ez-grid/controller/ag-grid/DataSourceInterceptor.d.ts +0 -8
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +0 -89
- package/dist/types/components/ez-split-button/test/dropdownItems.d.ts +0 -2
- package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +0 -23
- package/dist/types/utils/form/test/DataBinder.test.d.ts +0 -1
|
@@ -2,12 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1064511f.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
require('./ApplicationUtils-c9d1205c.js');
|
|
8
|
-
const CSSVarsUtils = require('./CSSVarsUtils-
|
|
7
|
+
const ApplicationUtils = require('./ApplicationUtils-c9d1205c.js');
|
|
8
|
+
const CSSVarsUtils = require('./CSSVarsUtils-b136a156.js');
|
|
9
9
|
require('./DialogType-2114c337.js');
|
|
10
10
|
require('./CheckMode-ecb90b87.js');
|
|
11
|
+
const constants = require('./constants-2714478b.js');
|
|
11
12
|
|
|
12
13
|
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--line-height:calc(var(--text--medium, 14px) + 4px);--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) + 4px);--ez-combo-box__list-min-width:64px;--ez-combo-box--space--medium:var(--space--medium, 12px);--ez-combo-box--space--small:var(--space--small, 6px);--ez-combo-box__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-combo-box__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-combo-box__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-combo-box__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-combo-box__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-combo-box__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{min-width:var(--ez-combo-box__list-min-width);position:relative;width:100%}.list-wrapper{display:flex;flex-direction:column;box-sizing:border-box;width:0;z-index:var(--more-visible, 2);max-height:calc(4*var(--ez-combo-box__list-height) + 2*var(--ez-combo-box--space--small) + 9px);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%;padding:0;display:flex;flex-direction:column;scroll-behavior:smooth;overflow:auto;scrollbar-width:thin;gap:3px;scrollbar-color:var(--ez-combo-box__scrollbar--color-clicked) var(--ez-combo-box__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--ez-combo-box__scrollbar--color-background);width:var(--ez-combo-box__scrollbar--width);max-width:var(--ez-combo-box__scrollbar--width);min-width:var(--ez-combo-box__scrollbar--width)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-combo-box__scrollbar--color-background);border-radius:var(--ez-combo-box__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-combo-box__scrollbar--color-default);border-radius:var(--ez-combo-box__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-combo-box__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-combo-box__scrollbar--color-clicked)}.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: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-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--font-size);line-height:var(--ez-combo-box--line-height)}.item__label{font-weight:var(--ez-combo-box--font-weight--medium)}.item__label--bold{font-weight:var(--ez-combo-box--font-weight--large)}.item__value{text-align:center;color:var(--ez-combo-box__list-text--primary);font-weight:var(--ez-combo-box--font-weight--large)}.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:var(--ez-combo-box__list-height)}.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:14px;height:14px;-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)}}";
|
|
13
14
|
|
|
@@ -20,6 +21,7 @@ const EzComboBox = class {
|
|
|
20
21
|
this._maxWidthValue = 0;
|
|
21
22
|
this._tabPressed = false;
|
|
22
23
|
this._textEmptyList = "Nenhum resultado encontrado";
|
|
24
|
+
this._textEmptySearch = "Nenhum resultado de {0} encontrado";
|
|
23
25
|
this._lookupMode = false;
|
|
24
26
|
this._preSelection = undefined;
|
|
25
27
|
this._visibleOptions = undefined;
|
|
@@ -32,6 +34,7 @@ const EzComboBox = class {
|
|
|
32
34
|
this.enabled = true;
|
|
33
35
|
this.options = undefined;
|
|
34
36
|
this.errorMessage = undefined;
|
|
37
|
+
this.searchMode = undefined;
|
|
35
38
|
this.showSelectedValue = false;
|
|
36
39
|
this.showOptionValue = false;
|
|
37
40
|
this.suppressSearch = false;
|
|
@@ -55,7 +58,7 @@ const EzComboBox = class {
|
|
|
55
58
|
observeValue(newValue, oldValue) {
|
|
56
59
|
if (this._textInput && newValue != oldValue) {
|
|
57
60
|
try {
|
|
58
|
-
if (typeof newValue === "string") {
|
|
61
|
+
if (this.searchMode && typeof newValue === "string") {
|
|
59
62
|
this.setInputValue();
|
|
60
63
|
return;
|
|
61
64
|
}
|
|
@@ -80,7 +83,7 @@ const EzComboBox = class {
|
|
|
80
83
|
}
|
|
81
84
|
}
|
|
82
85
|
observeOptions(newOptions, oldOptions) {
|
|
83
|
-
if (
|
|
86
|
+
if ((newOptions === null || newOptions === void 0 ? void 0 : newOptions.join('')) === (oldOptions === null || oldOptions === void 0 ? void 0 : oldOptions.join('')))
|
|
84
87
|
return;
|
|
85
88
|
this.loadOptions(SearchMode.PRELOAD);
|
|
86
89
|
}
|
|
@@ -218,19 +221,18 @@ const EzComboBox = class {
|
|
|
218
221
|
}
|
|
219
222
|
updateVisibleOptions() {
|
|
220
223
|
let opts = this._source || [];
|
|
221
|
-
if (this._criteria) {
|
|
224
|
+
if (!this.searchMode && this._criteria) {
|
|
222
225
|
const upperCriteria = this._criteria.toUpperCase();
|
|
223
226
|
opts = opts.filter(opt => opt.label.toLocaleUpperCase().indexOf(upperCriteria) > -1);
|
|
224
227
|
}
|
|
225
|
-
if (this.
|
|
226
|
-
|
|
228
|
+
if (this.suppressEmptyOption) {
|
|
229
|
+
this._visibleOptions = opts;
|
|
230
|
+
}
|
|
231
|
+
else {
|
|
232
|
+
this._visibleOptions = [{ value: undefined, label: "" }].concat(opts);
|
|
227
233
|
}
|
|
228
|
-
this._visibleOptions = opts;
|
|
229
234
|
this._maxWidthValue = this.getMaxWidthValue();
|
|
230
235
|
}
|
|
231
|
-
hasToAddEmptyoption(opts) {
|
|
232
|
-
return !this.suppressEmptyOption && !opts.filter(opt => !opt.value).length;
|
|
233
|
-
}
|
|
234
236
|
getMaxWidthValue() {
|
|
235
237
|
var _a;
|
|
236
238
|
if (this.showOptionValue) {
|
|
@@ -294,7 +296,7 @@ const EzComboBox = class {
|
|
|
294
296
|
return this._floatingID !== undefined && core.FloatingManager.isFloating(this._floatingID);
|
|
295
297
|
}
|
|
296
298
|
nextOption() {
|
|
297
|
-
if (!this.isOptionsVisible()) {
|
|
299
|
+
if (this.searchMode && !this.isOptionsVisible()) {
|
|
298
300
|
return;
|
|
299
301
|
}
|
|
300
302
|
this.showOptions();
|
|
@@ -317,6 +319,9 @@ const EzComboBox = class {
|
|
|
317
319
|
this.selectOption(this._visibleOptions[this._preSelection]);
|
|
318
320
|
this._preSelection = undefined;
|
|
319
321
|
}
|
|
322
|
+
else {
|
|
323
|
+
this.controlListWithOnlyOne();
|
|
324
|
+
}
|
|
320
325
|
}
|
|
321
326
|
updateSource(source) {
|
|
322
327
|
this._startLoading = false;
|
|
@@ -335,6 +340,7 @@ const EzComboBox = class {
|
|
|
335
340
|
this.updateVisibleOptions();
|
|
336
341
|
if (this._tabPressed) {
|
|
337
342
|
this._tabPressed = false;
|
|
343
|
+
this.controlEmptySearch();
|
|
338
344
|
}
|
|
339
345
|
}
|
|
340
346
|
else {
|
|
@@ -342,6 +348,10 @@ const EzComboBox = class {
|
|
|
342
348
|
}
|
|
343
349
|
}
|
|
344
350
|
}
|
|
351
|
+
clearSource() {
|
|
352
|
+
this._source = [];
|
|
353
|
+
this.updateVisibleOptions();
|
|
354
|
+
}
|
|
345
355
|
selectOption(newOption) {
|
|
346
356
|
var _a, _b;
|
|
347
357
|
const currentValue = this.getSelectedOption(this.value);
|
|
@@ -353,6 +363,10 @@ const EzComboBox = class {
|
|
|
353
363
|
else {
|
|
354
364
|
this.resetOptions();
|
|
355
365
|
}
|
|
366
|
+
if (this.searchMode) {
|
|
367
|
+
this._visibleOptions = [];
|
|
368
|
+
this.clearSource();
|
|
369
|
+
}
|
|
356
370
|
}
|
|
357
371
|
loadOptions(mode, argument = "") {
|
|
358
372
|
this._criteria = argument;
|
|
@@ -388,6 +402,93 @@ const EzComboBox = class {
|
|
|
388
402
|
clearSearch() {
|
|
389
403
|
this.value = null;
|
|
390
404
|
}
|
|
405
|
+
controlListWithOnlyOne() {
|
|
406
|
+
var _a;
|
|
407
|
+
if (this.searchMode) {
|
|
408
|
+
const source = (_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.filter((opt) => opt.label !== "" && opt.value != undefined);
|
|
409
|
+
if ((source === null || source === void 0 ? void 0 : source.length) === 1) {
|
|
410
|
+
this.selectOption(source[0]);
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
controlEmptySearch() {
|
|
415
|
+
var _a;
|
|
416
|
+
if (this.searchMode) {
|
|
417
|
+
if (!((_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
418
|
+
this.clearSearch();
|
|
419
|
+
ApplicationUtils.ApplicationUtils.info(this._textEmptyList);
|
|
420
|
+
}
|
|
421
|
+
else {
|
|
422
|
+
this.controlListWithOnlyOne();
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
validateDescriptionValue() {
|
|
427
|
+
if (!this.searchMode || core.StringUtils.isEmpty(this.value)) {
|
|
428
|
+
return;
|
|
429
|
+
}
|
|
430
|
+
let value = this.value;
|
|
431
|
+
if (typeof value === "object") {
|
|
432
|
+
return;
|
|
433
|
+
}
|
|
434
|
+
if (core.StringUtils.isEmpty(value)) {
|
|
435
|
+
return;
|
|
436
|
+
}
|
|
437
|
+
this.loadDescriptionValue(value);
|
|
438
|
+
}
|
|
439
|
+
async loadDescriptionValue(argument) {
|
|
440
|
+
var _a, _b;
|
|
441
|
+
if (argument == undefined) {
|
|
442
|
+
return;
|
|
443
|
+
}
|
|
444
|
+
if (((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
445
|
+
this.loadOptionValue(argument);
|
|
446
|
+
return;
|
|
447
|
+
}
|
|
448
|
+
const searchArgument = {
|
|
449
|
+
mode: SearchMode.PREDICTIVE,
|
|
450
|
+
argument
|
|
451
|
+
};
|
|
452
|
+
const source = await ((_b = this.optionLoader) === null || _b === void 0 ? void 0 : _b.call(this, searchArgument));
|
|
453
|
+
if (source == undefined) {
|
|
454
|
+
return;
|
|
455
|
+
}
|
|
456
|
+
if (source instanceof Promise) {
|
|
457
|
+
source.then((result) => {
|
|
458
|
+
this.setDescriptionValue(result);
|
|
459
|
+
});
|
|
460
|
+
}
|
|
461
|
+
else {
|
|
462
|
+
this.setDescriptionValue(source);
|
|
463
|
+
}
|
|
464
|
+
}
|
|
465
|
+
setDescriptionValue(source) {
|
|
466
|
+
const value = (source === null || source === void 0 ? void 0 : source[0]) || source;
|
|
467
|
+
if (value == undefined || !Object.keys(value).length) {
|
|
468
|
+
this.showNoResultMessage();
|
|
469
|
+
return;
|
|
470
|
+
}
|
|
471
|
+
this._lookupMode = true;
|
|
472
|
+
this.value = value;
|
|
473
|
+
}
|
|
474
|
+
loadOptionValue(argument) {
|
|
475
|
+
var _a;
|
|
476
|
+
const source = (_a = this.options) === null || _a === void 0 ? void 0 : _a.find((opt) => opt.value === argument);
|
|
477
|
+
if (source != undefined) {
|
|
478
|
+
this.selectOption(source);
|
|
479
|
+
}
|
|
480
|
+
else {
|
|
481
|
+
this.showNoResultMessage();
|
|
482
|
+
}
|
|
483
|
+
}
|
|
484
|
+
async showNoResultMessage() {
|
|
485
|
+
this.clearSearch();
|
|
486
|
+
ApplicationUtils.ApplicationUtils.info(this._textEmptySearch.replace("{0}", this.getFieldLabel()));
|
|
487
|
+
}
|
|
488
|
+
getFieldLabel() {
|
|
489
|
+
var _a;
|
|
490
|
+
return (_a = this.label) === null || _a === void 0 ? void 0 : _a.replace(constants.REQUIRED_INFO, "").toUpperCase();
|
|
491
|
+
}
|
|
391
492
|
resetOptions() {
|
|
392
493
|
this.hideOptions();
|
|
393
494
|
this._criteria = undefined;
|
|
@@ -413,7 +514,12 @@ const EzComboBox = class {
|
|
|
413
514
|
});
|
|
414
515
|
}
|
|
415
516
|
}
|
|
416
|
-
this.
|
|
517
|
+
if (this.searchMode) {
|
|
518
|
+
this.updateSource([]);
|
|
519
|
+
}
|
|
520
|
+
else {
|
|
521
|
+
this.loadOptions(SearchMode.PRELOAD);
|
|
522
|
+
}
|
|
417
523
|
}
|
|
418
524
|
componentDidRender() {
|
|
419
525
|
var _a;
|
|
@@ -423,6 +529,7 @@ const EzComboBox = class {
|
|
|
423
529
|
(_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
|
|
424
530
|
core.ElementIDUtils.addIDInfoIfNotExists(elem, "itemComboBox");
|
|
425
531
|
});
|
|
532
|
+
this.validateDescriptionValue();
|
|
426
533
|
}
|
|
427
534
|
componentDidLoad() {
|
|
428
535
|
CSSVarsUtils.CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
|
|
@@ -442,7 +549,13 @@ const EzComboBox = class {
|
|
|
442
549
|
// Event handlers
|
|
443
550
|
//---------------------------------------------
|
|
444
551
|
handlerIconClick() {
|
|
445
|
-
this.showOptions();
|
|
552
|
+
this.searchMode ? this.loadOptions(SearchMode.ADVANCED) : this.showOptions();
|
|
553
|
+
}
|
|
554
|
+
buildNumberArgument(argument) {
|
|
555
|
+
if (this.isTextSearch) {
|
|
556
|
+
return NaN;
|
|
557
|
+
}
|
|
558
|
+
return Number(argument || undefined);
|
|
446
559
|
}
|
|
447
560
|
onTextInputChangeHandler(event) {
|
|
448
561
|
var _a;
|
|
@@ -459,12 +572,36 @@ const EzComboBox = class {
|
|
|
459
572
|
}
|
|
460
573
|
this._criteria = argument;
|
|
461
574
|
if (argument) {
|
|
462
|
-
this.
|
|
463
|
-
|
|
575
|
+
if (this.searchMode) {
|
|
576
|
+
this._showLoading = false;
|
|
577
|
+
this.clearSource();
|
|
578
|
+
const enoughChars = argument.length >= this.limitCharsToSearch;
|
|
579
|
+
const argumentNumber = this.buildNumberArgument(argument);
|
|
580
|
+
if (enoughChars || !isNaN(argumentNumber)) {
|
|
581
|
+
this._showLoading = true;
|
|
582
|
+
this._changeDeboucingTimeout = window.setTimeout(() => {
|
|
583
|
+
this.loadOptions(SearchMode.PREDICTIVE, isNaN(argumentNumber) ? argument : argumentNumber.toString());
|
|
584
|
+
}, this._deboucingTime);
|
|
585
|
+
this.showOptions();
|
|
586
|
+
}
|
|
587
|
+
else {
|
|
588
|
+
this.hideOptions();
|
|
589
|
+
}
|
|
590
|
+
}
|
|
591
|
+
else {
|
|
592
|
+
this.updateVisibleOptions();
|
|
593
|
+
this.showOptions();
|
|
594
|
+
}
|
|
464
595
|
}
|
|
465
596
|
else {
|
|
466
597
|
this.hideOptions();
|
|
467
|
-
this.
|
|
598
|
+
if (this.searchMode) {
|
|
599
|
+
this._showLoading = false;
|
|
600
|
+
this.clearSource();
|
|
601
|
+
}
|
|
602
|
+
else {
|
|
603
|
+
this.updateVisibleOptions();
|
|
604
|
+
}
|
|
468
605
|
}
|
|
469
606
|
}
|
|
470
607
|
clearDeboucingTimeout() {
|
|
@@ -474,7 +611,9 @@ const EzComboBox = class {
|
|
|
474
611
|
}
|
|
475
612
|
}
|
|
476
613
|
onTextInputClickHandler() {
|
|
477
|
-
this.
|
|
614
|
+
if (!this.searchMode) {
|
|
615
|
+
this.showOptions();
|
|
616
|
+
}
|
|
478
617
|
}
|
|
479
618
|
keyDownHandler(event) {
|
|
480
619
|
this._tabPressed = false;
|
|
@@ -506,6 +645,7 @@ const EzComboBox = class {
|
|
|
506
645
|
break;
|
|
507
646
|
case "Tab":
|
|
508
647
|
this._tabPressed = true;
|
|
648
|
+
this.controlListWithOnlyOne();
|
|
509
649
|
break;
|
|
510
650
|
}
|
|
511
651
|
//ATENÇÃO: Existe a necessidade de propagar o evento de teclado.
|
|
@@ -522,8 +662,11 @@ const EzComboBox = class {
|
|
|
522
662
|
return !this._showLoading && this._visibleOptions.length > 0;
|
|
523
663
|
}
|
|
524
664
|
render() {
|
|
665
|
+
var _a;
|
|
525
666
|
core.ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
526
|
-
return (index.h(index.Host, null, index.h("ez-text-input", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, index.h("button", { class: "btn", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, index.h("ez-icon", { iconName:
|
|
667
|
+
return (index.h(index.Host, null, index.h("ez-text-input", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, index.h("button", { class: "btn", slot: this.searchMode ? "leftIcon" : "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, index.h("ez-icon", { iconName: this.searchMode ? "search" : "chevron-down" })), this.searchMode && ((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value)
|
|
668
|
+
? index.h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, index.h("ez-icon", { iconName: "close" }))
|
|
669
|
+
: undefined), index.h("section", { class: "list-container", ref: elem => this._listContainer = elem }, index.h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, index.h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
|
|
527
670
|
&& this._visibleOptions.length === 0
|
|
528
671
|
&& index.h("div", { class: "message" }, index.h("span", { class: "message__no-result" }, this._textEmptyList)), this._showLoading
|
|
529
672
|
&& index.h("div", { class: "message" }, index.h("div", { class: "message__loading" })), this.showOptionValue
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1064511f.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const CSSVarsUtils = require('./CSSVarsUtils-
|
|
7
|
+
const CSSVarsUtils = require('./CSSVarsUtils-b136a156.js');
|
|
8
8
|
|
|
9
9
|
const ezDateInputCss = ":host{display:block;width:100%;--ez-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-date-input__input--border-color:var(--ez-date-input__input--background-color);--ez-date-input__calendar-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"15px\"><path d=\"M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z\"/></svg>')}.btn-open-cal{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-cal:disabled{cursor:unset}.btn-open-cal::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:15px;height:16px;-webkit-mask-image:var(--ez-date-input__calendar-image);mask-image:var(--ez-date-input__calendar-image)}.btn-open-cal:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-cal:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}ez-text-input{--text-input__input--background-color:var(--ez-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-date-input__input--border-color, #DCE0E8)}";
|
|
10
10
|
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1064511f.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
|
-
const CSSVarsUtils = require('./CSSVarsUtils-
|
|
7
|
+
const CSSVarsUtils = require('./CSSVarsUtils-b136a156.js');
|
|
8
8
|
|
|
9
9
|
const ezDateTimeInputCss = ":host{display:block;width:100%;--ez-date-input__input--background-color:var(--background--medium, #e0e0e0);--ez-date-input__input--border-color:var(--ez-date-input__input--background-color);--ez-date-input__calendar-image:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"15px\"><path d=\"M 3.171875,5.25 C 2.6485088,5.25 2.21875,5.6797588 2.21875,6.203125 2.21875,6.7264912 2.6485088,7.15625 3.171875,7.15625 3.6952412,7.15625 4.125,6.7264912 4.125,6.203125 4.125,5.6797588 3.6952412,5.25 3.171875,5.25 Z m 2.875,0 C 5.5235088,5.25 5.09375,5.6797588 5.09375,6.203125 5.09375,6.7264912 5.5235088,7.15625 6.046875,7.15625 6.5702412,7.15625 7,6.7264912 7,6.203125 7,5.6797588 6.5702412,5.25 6.046875,5.25 Z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.9511719,-0.4297588 0.9511719,-0.953125 C 9.8730469,5.6797588 9.4452412,5.25 8.921875,5.25 Z m 2.873047,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.953125 0.953125,0.953125 0.523366,0 0.953125,-0.4297588 0.953125,-0.953125 C 12.748047,5.6797588 12.318288,5.25 11.794922,5.25 Z M 3.171875,8.1230469 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 0.5233662,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297588,0.9531251 0.953125,0.9531251 C 6.5702412,10.029297 7,9.5995381 7,9.0761719 7,8.5528057 6.5702412,8.1230469 6.046875,8.1230469 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.4297587,0.9531251 0.953125,0.9531251 0.5233661,0 0.9531249,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.4297588 -0.953125,0.953125 0,0.5233662 0.429759,0.9531251 0.953125,0.9531251 0.523367,0 0.953125,-0.4297589 0.953125,-0.9531251 0,-0.5233662 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.171875,10.998047 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 0.5233662,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.875,0 c -0.5233662,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297588,0.953125 0.953125,0.953125 C 6.5702412,12.904297 7,12.474538 7,11.951172 7,11.427806 6.5702412,10.998047 6.046875,10.998047 Z m 2.8554688,0 c -0.5233663,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.4297587,0.953125 0.953125,0.953125 0.5233661,0 0.9531249,-0.429759 0.953125,-0.953125 0,-0.523366 -0.4297588,-0.953125 -0.953125,-0.953125 z m 2.9003902,0 c -0.523366,0 -0.953125,0.429759 -0.953125,0.953125 0,0.523366 0.429759,0.953125 0.953125,0.953125 0.523367,0 0.953125,-0.429759 0.953125,-0.953125 0,-0.523366 -0.429758,-0.953125 -0.953125,-0.953125 z M 3.5,0 c -0.554,0 -1,0.446 -1,1 v 0.050781 C 1.0853217,1.2909766 0,2.5186658 0,4 v 9 c 0,1.652487 1.3475134,3 3,3 h 9 c 1.652487,0 3,-1.347513 3,-3 V 4 C 15,2.5186658 13.914678,1.2909766 12.5,1.0507812 V 1 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 c 0,-0.554 -0.446,-1 -1,-1 -0.554,0 -1,0.446 -1,1 h -2 C 4.5,0.446 4.054,0 3.5,0 Z m 1,2.0996094 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 v -0.640625 h 2 v 0.640625 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 V 2.1738281 C 13.311725,2.3905225 13.900391,3.11278 13.900391,4 v 9 c 0,1.062113 -0.838278,1.900391 -1.900391,1.900391 H 3 C 1.9378864,14.900391 1.0996094,14.062113 1.0996094,13 V 4 C 1.0996094,3.11278 1.6882747,2.3905225 2.5,2.1738281 v 0.5664063 c 0,0.554 0.446,1 1,1 0.554,0 1,-0.446 1,-1 z\"/></svg>')}.btn-open-cal{outline:none;border:none;background-color:unset;cursor:pointer}.btn-open-cal:disabled{cursor:unset}.btn-open-cal::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:15px;height:16px;-webkit-mask-image:var(--ez-date-input__calendar-image);mask-image:var(--ez-date-input__calendar-image)}.btn-open-cal:disabled:after{background-color:var(--text--disable, #AFB6C0)}.btn-open-cal:enabled:hover::after{background-color:var(--color--primary, #4e4e4e)}ez-text-input{--text-input__input--background-color:var(--ez-date-input__input--background-color, #FFFFFF);--text-input__input--border-color:var(--ez-date-input__input--border-color, #DCE0E8)}";
|
|
10
10
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1064511f.js');
|
|
6
6
|
const DialogType = require('./DialogType-2114c337.js');
|
|
7
7
|
const core = require('@sankhyalabs/core');
|
|
8
8
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1064511f.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
|
|
8
8
|
const DropdownItem = ({ item, hasIcon, hasChildren, isLockedLevels, onSubActionClick }) => {
|
|
@@ -286,7 +286,6 @@ const EzDropdown = class {
|
|
|
286
286
|
index.registerInstance(this, hostRef);
|
|
287
287
|
this.ezClick = index.createEvent(this, "ezClick", 7);
|
|
288
288
|
this.ezSubActionClick = index.createEvent(this, "ezSubActionClick", 7);
|
|
289
|
-
this.ezOutsideClick = index.createEvent(this, "ezOutsideClick", 7);
|
|
290
289
|
this._itemList = {};
|
|
291
290
|
this._submenuList = [];
|
|
292
291
|
this._openedMenuList = {};
|
|
@@ -299,11 +298,6 @@ const EzDropdown = class {
|
|
|
299
298
|
this.value = undefined;
|
|
300
299
|
this.itemBuilder = undefined;
|
|
301
300
|
}
|
|
302
|
-
handleClickOutside(event) {
|
|
303
|
-
if (!this._element.contains(event.target)) {
|
|
304
|
-
this.ezOutsideClick.emit();
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
301
|
//---------------------------------------------
|
|
308
302
|
// Private methods
|
|
309
303
|
//---------------------------------------------
|
|
@@ -382,13 +376,13 @@ const EzDropdown = class {
|
|
|
382
376
|
this._itemList[item.id] = {};
|
|
383
377
|
}
|
|
384
378
|
}
|
|
385
|
-
getContainerItemBuilder(item, level
|
|
379
|
+
getContainerItemBuilder(item, level) {
|
|
386
380
|
if (this.itemBuilder == undefined) {
|
|
387
381
|
return;
|
|
388
382
|
}
|
|
389
383
|
const customContent = this.itemBuilder(item, level);
|
|
390
384
|
if (customContent == undefined) {
|
|
391
|
-
return
|
|
385
|
+
return;
|
|
392
386
|
}
|
|
393
387
|
if (typeof customContent !== "string") {
|
|
394
388
|
return (index.h("div", { class: "ez-dropdown__item-builder" }, customContent));
|
|
@@ -409,7 +403,7 @@ const EzDropdown = class {
|
|
|
409
403
|
var _a;
|
|
410
404
|
return (item.type !== "divider"
|
|
411
405
|
? index.h("div", Object.assign({ ref: (ref) => this._itemList[item.id] = ref, class: "ez-dropdown__item", "data-level": level }, { [core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: core.ElementIDUtils.getInternalIDInfo(`${item.id}_ezDropdownItem`) }), index.h("div", { class: "ez-dropdown__item-content", onClick: (evt) => this.onItemClick(evt, item), onMouseOver: (evt) => this.onShowSubmenu(evt, item) }, this.itemBuilder
|
|
412
|
-
? this.getContainerItemBuilder(item, level
|
|
406
|
+
? this.getContainerItemBuilder(item, level)
|
|
413
407
|
: this.defaultItemBuilder(item, isLockedLevels, hasIcon, hasChildren)), ((_a = item.children) === null || _a === void 0 ? void 0 : _a.length) > 0 &&
|
|
414
408
|
!isLockedLevels &&
|
|
415
409
|
hasChildren &&
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
const index = require('./index-
|
|
5
|
+
const index = require('./index-1064511f.js');
|
|
6
6
|
const core = require('@sankhyalabs/core');
|
|
7
7
|
|
|
8
8
|
const ezFileItemCss = ":host{display:flex;width:100%;--ez-file-item--height:42px;--ez-file-item--padding:9px;--ez-file-item--border-radius:var(--border--radius-medium, 12px);--ez-file-item--border-color:var(--color--strokes, #DCE0E8);--ez-file-item--border-style:var(--border--small, 1px solid);--ez-file-item--font-family:var(--font-pattern, Arial);--ez-file-item--font-size:var(--text--medium, 14px);--ez-file-item--font-weight:var(--text-weight--medium, 400);--ez-file-item--color:var(--title--primary, #2B3A54);--ez-file-item__file-size--font-weight:var(--text-weight--large, 600);--ez-file-item__file-size--color:var(--color--primary, #008561);--ez-file-item__background-progress--color:var(--color--primary-300, E2F4EF);--ez-file-item--icon-color:var(--title--primary, #2B3A54)}.box{display:flex;box-sizing:border-box;position:relative;align-items:center;justify-content:space-between;width:100%;padding:var(--ez-file-item--padding);border:var(--ez-file-item--border-color) var(--ez-file-item--border-style);border-radius:var(--ez-file-item--border-radius);height:var(--ez-file-item--height)}.box::before{content:\"\";position:absolute;top:0;left:0;width:100%;height:100%;clip-path:inset(2px calc(var(--ez-file-item--upload-progress, 0%) + 2px) 2px 2px round calc(var(--ez-file-item--border-radius) - 4px));background-color:var(--ez-file-item__background-progress--color)}.content{display:flex;align-items:center;z-index:0;overflow:hidden}.file-name{text-overflow:ellipsis;overflow:hidden;white-space:nowrap;font-family:var(--ez-file-item--font-family);font-size:var(--ez-file-item--font-size);font-weight:var(--ez-file-item--font-weight);color:var(--ez-file-item--color)}.file-type-icon{flex-shrink:0;--ez-icon--color:var(--ez-file-item--icon-color);padding-right:var(--ez-file-item--padding)}.file-size{padding-left:2px;overflow:hidden;flex-shrink:0;white-space:nowrap;font-family:var(--ez-file-item--font-family);font-size:var(--ez-file-item--font-size);font-weight:var(--ez-file-item__file-size--font-weight);color:var(--ez-file-item__file-size--color)}.btn-remove{cursor:pointer;flex-shrink:0;--ez-icon--color:var(--ez-file-item--icon-color)}";
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
const index = require('./index-1064511f.js');
|
|
6
|
+
const core = require('@sankhyalabs/core');
|
|
7
|
+
const CSSVarsUtils = require('./CSSVarsUtils-b136a156.js');
|
|
8
|
+
|
|
9
|
+
const ezFilterInputCss = ":host{display:block;width:100%}";
|
|
10
|
+
|
|
11
|
+
const EzFilterInput = class {
|
|
12
|
+
constructor(hostRef) {
|
|
13
|
+
index.registerInstance(this, hostRef);
|
|
14
|
+
this.ezChange = index.createEvent(this, "ezChange", 7);
|
|
15
|
+
this.ezSearching = index.createEvent(this, "ezSearching", 7);
|
|
16
|
+
this.ezFocusIn = index.createEvent(this, "ezFocusIn", 7);
|
|
17
|
+
this._searchingText = "";
|
|
18
|
+
this.handleFocus = () => {
|
|
19
|
+
if (this._searchingText === "") {
|
|
20
|
+
this._textInput.value = "";
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
this._textInput.value = this._searchingText;
|
|
24
|
+
}
|
|
25
|
+
this.ezFocusIn.emit();
|
|
26
|
+
};
|
|
27
|
+
this.label = undefined;
|
|
28
|
+
this.value = undefined;
|
|
29
|
+
this.enabled = true;
|
|
30
|
+
this.errorMessage = undefined;
|
|
31
|
+
this.restrict = undefined;
|
|
32
|
+
this.mode = "regular";
|
|
33
|
+
this.asyncSearch = false;
|
|
34
|
+
this.canShowError = true;
|
|
35
|
+
}
|
|
36
|
+
observeLabel() {
|
|
37
|
+
if (this._textInput) {
|
|
38
|
+
this._textInput.label = this.label;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
observeErrorMessage() {
|
|
42
|
+
if (this._textInput) {
|
|
43
|
+
this._textInput.errorMessage = this.errorMessage;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
observeValue(newValue, oldValue) {
|
|
47
|
+
if (this._textInput && newValue != oldValue) {
|
|
48
|
+
this._textInput.value = newValue;
|
|
49
|
+
this.ezChange.emit(newValue);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Aplica o foco no campo.
|
|
54
|
+
*/
|
|
55
|
+
async setFocus() {
|
|
56
|
+
this._textInput.setFocus();
|
|
57
|
+
}
|
|
58
|
+
/**
|
|
59
|
+
* Remove o foco do campo.
|
|
60
|
+
*/
|
|
61
|
+
async setBlur() {
|
|
62
|
+
this._textInput.setBlur();
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Retorna se o conteúdo é inválido.
|
|
66
|
+
*/
|
|
67
|
+
async isInvalid() {
|
|
68
|
+
return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Método responsável por setar um novo valor ao campo.
|
|
72
|
+
*/
|
|
73
|
+
async setValue(newValue) {
|
|
74
|
+
if (!this.asyncSearch || this._textInput == undefined) {
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
if (newValue !== this.value) {
|
|
78
|
+
this.value = newValue;
|
|
79
|
+
this._searchingText = "";
|
|
80
|
+
}
|
|
81
|
+
else {
|
|
82
|
+
this._textInput.value = newValue;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Método responsável por resetar o valor do campo para o ultimo valor inputado.
|
|
87
|
+
*/
|
|
88
|
+
async endSearch() {
|
|
89
|
+
if (!this.asyncSearch || this._textInput == undefined) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
if (this._textInput.value !== this.value) {
|
|
93
|
+
this._textInput.value = this.value;
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
handleChange(evt) {
|
|
97
|
+
const newValue = evt.detail;
|
|
98
|
+
this.errorMessage = "";
|
|
99
|
+
if (this.asyncSearch) {
|
|
100
|
+
this._searchingText = newValue;
|
|
101
|
+
this.ezSearching.emit(newValue);
|
|
102
|
+
}
|
|
103
|
+
else if (newValue !== this.value) {
|
|
104
|
+
this.value = newValue;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
componentDidLoad() {
|
|
108
|
+
CSSVarsUtils.CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
|
|
109
|
+
}
|
|
110
|
+
render() {
|
|
111
|
+
core.ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
112
|
+
return (index.h("ez-text-input", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, label: this.label, onEzChange: evt => this.handleChange(evt), value: this.value, enabled: this.enabled, errorMessage: this.errorMessage, restrict: this.restrict, mode: this.mode, onFocusin: this.handleFocus, canShowError: this.canShowError }, index.h("ez-icon", { slot: "leftIcon", iconName: "search" })));
|
|
113
|
+
}
|
|
114
|
+
get _elem() { return index.getElement(this); }
|
|
115
|
+
static get watchers() { return {
|
|
116
|
+
"label": ["observeLabel"],
|
|
117
|
+
"errorMessage": ["observeErrorMessage"],
|
|
118
|
+
"value": ["observeValue"]
|
|
119
|
+
}; }
|
|
120
|
+
};
|
|
121
|
+
EzFilterInput.style = ezFilterInputCss;
|
|
122
|
+
|
|
123
|
+
const multiSelectionBoxMessageCss = ".multi-selection__message{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%;min-height:320px;text-align:center}.multi-selection__text-message{margin-top:-30px;font-family:var(--font-pattern);font-size:var(--text--meduim);padding:var(--space-xs);color:var(--text--primary)}";
|
|
124
|
+
|
|
125
|
+
const MultiSelectionBoxMessage = class {
|
|
126
|
+
constructor(hostRef) {
|
|
127
|
+
index.registerInstance(this, hostRef);
|
|
128
|
+
this.message = undefined;
|
|
129
|
+
}
|
|
130
|
+
render() {
|
|
131
|
+
return (index.h("div", { class: "multi-selection__message" }, index.h("span", { class: "multi-selection__text-message" }, this.message)));
|
|
132
|
+
}
|
|
133
|
+
};
|
|
134
|
+
MultiSelectionBoxMessage.style = multiSelectionBoxMessageCss;
|
|
135
|
+
|
|
136
|
+
exports.ez_filter_input = EzFilterInput;
|
|
137
|
+
exports.multi_selection_box_message = MultiSelectionBoxMessage;
|