@sankhyalabs/ezui 7.1.0-dev.21 → 7.1.0-dev.23
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-4fb87a9e.js → ApplicationUtils-006ca96f.js} +1 -1
- package/dist/cjs/FormLayout-fe8da83c.js +9 -0
- package/dist/cjs/{app-globals-cb31a206.js → app-globals-5cb12916.js} +1 -1
- package/dist/cjs/{ez-combo-box-list_5.cjs.entry.js → classic-search-list_7.cjs.entry.js} +212 -5
- package/dist/cjs/ez-actions-button.cjs.entry.js +4 -3
- 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-classic-combo-box.cjs.entry.js +36 -15
- package/dist/cjs/ez-classic-date-input.cjs.entry.js +201 -0
- package/dist/cjs/ez-classic-date-time-input.cjs.entry.js +246 -0
- package/dist/cjs/ez-classic-input.cjs.entry.js +99 -18
- package/dist/cjs/ez-classic-number-input.cjs.entry.js +205 -0
- package/dist/cjs/ez-classic-search-plus.cjs.entry.js +407 -0
- package/dist/cjs/ez-classic-search.cjs.entry.js +683 -0
- package/dist/cjs/ez-classic-text-area.cjs.entry.js +1 -1
- package/dist/cjs/ez-classic-time-input.cjs.entry.js +197 -0
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +4 -3
- package/dist/cjs/ez-combo-box.cjs.entry.js +4 -3
- 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 +121 -35
- package/dist/cjs/ez-form.cjs.entry.js +11 -7
- package/dist/cjs/ez-grid.cjs.entry.js +7 -6
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-icon.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 +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-pagination.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +1 -1
- package/dist/cjs/ez-search-plus.cjs.entry.js +7 -6
- package/dist/cjs/ez-search-result-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +10 -9
- 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-spinner.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +13 -14
- package/dist/cjs/ez-split-item.cjs.entry.js +4 -3
- package/dist/cjs/ez-text-input.cjs.entry.js +37 -0
- 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-e61642ff.js → index-350d0fa0.js} +30 -0
- package/dist/cjs/index-a7b0c73d.js +42 -18
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/cjs/{search-column-51e50b59.js → search-column-fbf680d7.js} +10 -5
- package/dist/cjs/searchFormatters-051f8677.js +23 -0
- package/dist/cjs/{FormLayout-18853e70.js → types-6a5df0c7.js} +0 -6
- package/dist/collection/collection-manifest.json +58 -5
- package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.css +5 -0
- package/dist/collection/components/ez-classic-combo-box/ez-classic-combo-box.js +77 -18
- package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.css +44 -0
- package/dist/collection/components/ez-classic-date-input/ez-classic-date-input.js +541 -0
- package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.css +44 -0
- package/dist/collection/components/ez-classic-date-time-input/ez-classic-date-time-input.js +586 -0
- package/dist/collection/components/ez-classic-input/ez-classic-input.css +33 -5
- package/dist/collection/components/ez-classic-input/ez-classic-input.js +155 -19
- package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.css +16 -0
- package/dist/collection/components/ez-classic-number-input/ez-classic-number-input.js +583 -0
- package/dist/collection/components/ez-classic-search/ez-classic-search.css +126 -0
- package/dist/collection/components/ez-classic-search/ez-classic-search.js +1330 -0
- package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.css +227 -0
- package/dist/collection/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.js +316 -0
- package/dist/collection/components/ez-classic-search/utils/searchFormatters.js +18 -0
- package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.css +406 -0
- package/dist/collection/components/ez-classic-search-plus/ez-classic-search-plus.js +988 -0
- package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.css +221 -0
- package/dist/collection/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.js +298 -0
- package/dist/collection/components/ez-classic-text-area/ez-classic-text-area.css +1 -0
- package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.css +14 -0
- package/dist/collection/components/ez-classic-time-input/ez-classic-time-input.js +511 -0
- package/dist/collection/components/ez-form/ez-form.js +9 -5
- package/dist/collection/components/ez-form-view/ez-form-view.css +8 -3
- package/dist/collection/components/ez-form-view/ez-form-view.js +40 -4
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +6 -3
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +9 -6
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +8 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +30 -6
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +12 -5
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +9 -3
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +8 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +7 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +8 -1
- package/dist/collection/components/ez-form-view/structure/index.js +1 -1
- package/dist/collection/components/ez-icon/ez-icon.css +1 -0
- package/dist/collection/components/ez-rich-text/ez-rich-text.js +2 -3
- package/dist/collection/components/ez-split-button/ez-split-button.js +18 -13
- package/dist/collection/components/ez-text-input/ez-text-input.js +38 -1
- package/dist/collection/utils/form/DataBinder.js +2 -2
- package/dist/collection/utils/form/interfaces/FormLayout.js +3 -1
- package/dist/collection/utils/i18n/locales/en-us.js +10 -0
- package/dist/collection/utils/i18n/locales/es-es.js +10 -0
- package/dist/collection/utils/i18n/locales/pt-br.js +10 -0
- package/dist/collection/utils/searchColumn/search-column.js +6 -1
- package/dist/custom-elements/index.d.ts +48 -0
- package/dist/custom-elements/index.js +2722 -337
- package/dist/esm/{ApplicationUtils-985c24ae.js → ApplicationUtils-0c5cb207.js} +1 -1
- package/dist/esm/FormLayout-bda67973.js +9 -0
- package/dist/esm/{app-globals-75f8a758.js → app-globals-1db10325.js} +1 -1
- package/dist/esm/{ez-combo-box-list_5.entry.js → classic-search-list_7.entry.js} +212 -7
- package/dist/esm/ez-actions-button.entry.js +4 -3
- 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-classic-combo-box.entry.js +36 -15
- package/dist/esm/ez-classic-date-input.entry.js +197 -0
- package/dist/esm/ez-classic-date-time-input.entry.js +242 -0
- package/dist/esm/ez-classic-input.entry.js +100 -19
- package/dist/esm/ez-classic-number-input.entry.js +201 -0
- package/dist/esm/ez-classic-search-plus.entry.js +403 -0
- package/dist/esm/ez-classic-search.entry.js +679 -0
- package/dist/esm/ez-classic-text-area.entry.js +1 -1
- package/dist/esm/ez-classic-time-input.entry.js +193 -0
- package/dist/esm/ez-collapsible-box.entry.js +4 -3
- package/dist/esm/ez-combo-box.entry.js +4 -3
- 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 +121 -35
- package/dist/esm/ez-form.entry.js +11 -7
- package/dist/esm/ez-grid.entry.js +5 -4
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-icon.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 +1 -1
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/ez-pagination.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +1 -1
- package/dist/esm/ez-search-plus.entry.js +4 -3
- package/dist/esm/ez-search-result-list.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +4 -3
- 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-spinner.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +13 -14
- package/dist/esm/ez-split-item.entry.js +4 -3
- package/dist/esm/ez-text-input.entry.js +37 -0
- 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-a3b24b5d.js → index-225aa0c3.js} +30 -0
- package/dist/esm/index-baa5e267.js +42 -18
- package/dist/esm/loader.js +3 -3
- package/dist/esm/{search-column-0c42248b.js → search-column-40a78cac.js} +10 -5
- package/dist/esm/searchFormatters-6d9b06e4.js +20 -0
- package/dist/esm/{FormLayout-071d324c.js → types-6f6b2650.js} +1 -7
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-1c3f43e8.entry.js → p-0248846f.entry.js} +1 -1
- package/dist/ezui/p-0625743b.entry.js +1 -0
- package/dist/ezui/p-07fb22c3.entry.js +1 -0
- package/dist/ezui/p-26cd4c2e.entry.js +1 -0
- package/dist/ezui/{p-2fd16ff2.entry.js → p-2da9faf1.entry.js} +1 -1
- package/dist/ezui/{p-1bf40959.entry.js → p-34d459e4.entry.js} +1 -1
- package/dist/ezui/p-44183c39.entry.js +1 -0
- package/dist/ezui/p-47e4a8ce.js +1 -0
- package/dist/ezui/p-4af745e1.entry.js +1 -0
- package/dist/ezui/{p-6c484770.entry.js → p-4c2a4435.entry.js} +1 -1
- package/dist/ezui/{p-782fe2e3.entry.js → p-4c76b365.entry.js} +1 -1
- package/dist/ezui/p-4e576bb9.entry.js +1 -0
- package/dist/ezui/{p-5e6de2c1.entry.js → p-4e869617.entry.js} +1 -1
- package/dist/ezui/{p-0e325699.entry.js → p-4f7ad3ee.entry.js} +1 -1
- package/dist/ezui/{p-582c3f90.entry.js → p-544605c4.entry.js} +1 -1
- package/dist/ezui/p-556bf329.entry.js +1 -0
- package/dist/ezui/{p-2676e2a3.entry.js → p-56565777.entry.js} +1 -1
- package/dist/ezui/p-57b68d43.entry.js +1 -0
- package/dist/ezui/p-5895e687.js +1 -0
- package/dist/ezui/{p-714452c7.entry.js → p-5abb220b.entry.js} +1 -1
- package/dist/ezui/p-619225ce.entry.js +1 -0
- package/dist/ezui/p-679a2942.entry.js +1 -0
- package/dist/ezui/{p-474076b3.js → p-6a794336.js} +1 -1
- package/dist/ezui/{p-4ea5c8a7.entry.js → p-6ac056d7.entry.js} +1 -1
- package/dist/ezui/p-7134726a.entry.js +1 -0
- package/dist/ezui/{p-67f9fadb.entry.js → p-729bd1be.entry.js} +1 -1
- package/dist/ezui/p-7953ecb9.entry.js +1 -0
- package/dist/ezui/{p-e2e0dd76.entry.js → p-7edc3ef7.entry.js} +1 -1
- package/dist/ezui/p-88a115b3.js +1 -0
- package/dist/ezui/{p-f45ddc1f.entry.js → p-8e5f1c74.entry.js} +1 -1
- package/dist/ezui/p-951b32a1.entry.js +1 -0
- package/dist/ezui/{p-9568a93d.entry.js → p-97312709.entry.js} +1 -1
- package/dist/ezui/{p-0ec5c128.js → p-9825c1d2.js} +1 -1
- package/dist/ezui/p-987185c4.entry.js +1 -0
- package/dist/ezui/p-a0f51b99.entry.js +1 -0
- package/dist/ezui/p-a3bad8f8.entry.js +1 -0
- package/dist/ezui/{p-6570ca10.entry.js → p-a4351519.entry.js} +1 -1
- package/dist/ezui/{p-7624767b.entry.js → p-a872c642.entry.js} +1 -1
- package/dist/ezui/p-b0a716ef.entry.js +1 -0
- package/dist/ezui/p-b36475f9.entry.js +1 -0
- package/dist/ezui/{p-2b23906a.entry.js → p-b705b342.entry.js} +1 -1
- package/dist/ezui/{p-9771ea3c.entry.js → p-b8078832.entry.js} +1 -1
- package/dist/ezui/p-c0ae79fa.entry.js +1 -0
- package/dist/ezui/{p-98218fbc.js → p-c178730b.js} +1 -1
- package/dist/ezui/{p-a1a63294.entry.js → p-c56ee8c0.entry.js} +1 -1
- package/dist/ezui/{p-3d71e8e1.entry.js → p-cd8be0c7.entry.js} +1 -1
- package/dist/ezui/{p-a13e65a4.entry.js → p-ce0a0036.entry.js} +1 -1
- package/dist/ezui/{p-0aafbc30.entry.js → p-df802548.entry.js} +1 -1
- package/dist/ezui/p-e2689b33.entry.js +1 -0
- package/dist/ezui/{p-dc192d01.entry.js → p-e2972977.entry.js} +1 -1
- package/dist/ezui/{p-47d9256e.entry.js → p-e3a42f47.entry.js} +1 -1
- package/dist/ezui/p-e3cd5080.entry.js +1 -0
- package/dist/ezui/{p-28af6826.entry.js → p-e493ad57.entry.js} +1 -1
- package/dist/ezui/{p-3fcf79c7.entry.js → p-f5552540.entry.js} +1 -1
- package/dist/ezui/p-ff4312d5.js +1 -0
- package/dist/types/components/ez-classic-combo-box/ez-classic-combo-box.d.ts +9 -3
- package/dist/types/components/ez-classic-date-input/ez-classic-date-input.d.ts +91 -0
- package/dist/types/components/ez-classic-date-time-input/ez-classic-date-time-input.d.ts +95 -0
- package/dist/types/components/ez-classic-input/ez-classic-input.d.ts +18 -1
- package/dist/types/components/ez-classic-number-input/ez-classic-number-input.d.ts +101 -0
- package/dist/types/components/ez-classic-search/ez-classic-search.d.ts +219 -0
- package/dist/types/components/ez-classic-search/subcomponent/classic-search-list/classic-search-list.d.ts +29 -0
- package/dist/types/components/ez-classic-search/utils/searchFormatters.d.ts +2 -0
- package/dist/types/components/ez-classic-search-plus/ez-classic-search-plus.d.ts +186 -0
- package/dist/types/components/ez-classic-search-plus/subcomponent/ez-search-result-list/ez-classic-search-result-list.d.ts +29 -0
- package/dist/types/components/ez-form/ez-form.d.ts +1 -0
- package/dist/types/components/ez-form-view/ez-form-view.d.ts +7 -0
- package/dist/types/components/ez-form-view/fieldbuilder/FieldBuilder.d.ts +7 -2
- package/dist/types/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.d.ts +3 -2
- package/dist/types/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +5 -4
- package/dist/types/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.d.ts +3 -2
- package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +2 -1
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -2
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +4 -0
- package/dist/types/components.d.ts +2967 -1814
- package/dist/types/utils/form/interfaces/FormLayout.d.ts +3 -1
- package/dist/types/utils/i18n/locales/en-us.d.ts +10 -0
- package/dist/types/utils/i18n/locales/es-es.d.ts +10 -0
- package/dist/types/utils/i18n/locales/pt-br.d.ts +10 -0
- package/dist/types/utils/i18n/translations.d.ts +30 -0
- package/package.json +1 -1
- package/react/components.d.ts +8 -0
- package/react/components.js +8 -0
- package/react/components.js.map +1 -1
- package/dist/ezui/p-2e5de2a7.entry.js +0 -1
- package/dist/ezui/p-30ffb9ed.js +0 -1
- package/dist/ezui/p-48effc69.entry.js +0 -1
- package/dist/ezui/p-6a982147.js +0 -1
- package/dist/ezui/p-6d7f2fdc.entry.js +0 -1
- package/dist/ezui/p-6f466aec.entry.js +0 -1
- package/dist/ezui/p-7fe97ef5.entry.js +0 -1
- package/dist/ezui/p-8709c4f6.entry.js +0 -1
- package/dist/ezui/p-8a8006e6.entry.js +0 -1
- package/dist/ezui/p-8d626d2b.entry.js +0 -1
- package/dist/ezui/p-9b2e6438.entry.js +0 -1
- package/dist/ezui/p-9d004e22.entry.js +0 -1
- package/dist/ezui/p-c711900a.entry.js +0 -1
- package/dist/ezui/p-dee18824.entry.js +0 -1
- package/dist/ezui/p-e4a579f2.entry.js +0 -1
- package/dist/ezui/p-e82a12c6.entry.js +0 -1
- package/dist/ezui/p-f1bbf23f.entry.js +0 -1
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
/* list */
|
|
3
|
+
/*@doc Define a cor do texto da lista de opções.*/
|
|
4
|
+
--ez-classic-search__list-title--primary: var(--title--primary, #2B3A54);
|
|
5
|
+
/*@doc Define a cor do texto do value da lista de opções.*/
|
|
6
|
+
--ez-classic-search__list-text--primary: var(--text--primary, #626e82);
|
|
7
|
+
/*@doc Define a altura do box da lista de opções.*/
|
|
8
|
+
--ez-classic-search__list-height: calc(var(--ez-classic-search--font-size) + var(--ez-classic-search--space--medium) + 4px);
|
|
9
|
+
/*@doc Define a largura mínima da lista de opções.*/
|
|
10
|
+
--ez-classic-search__list-min-width: 64px;
|
|
11
|
+
|
|
12
|
+
/* scrollbar */
|
|
13
|
+
/*@doc Define a cor da barra de rolagem do componente.*/
|
|
14
|
+
--ez-classic-search__scrollbar--color-default: var(--scrollbar--default, #626e82);
|
|
15
|
+
/*@doc Define a cor de fundo da barra de rolagem do componente.*/
|
|
16
|
+
--ez-classic-search__scrollbar--color-background: var(--scrollbar--background, #E5EAF0);
|
|
17
|
+
/*@doc Define a cor do hover na barra de rolagem do componente.*/
|
|
18
|
+
--ez-classic-search__scrollbar--color-hover: var(--scrollbar--hover, #2B3A54);
|
|
19
|
+
/*@doc Define a cor do active na barra de rolagem do componente.*/
|
|
20
|
+
--ez-classic-search__scrollbar--color-clicked: var(--scrollbar--clicked, #a2abb9);
|
|
21
|
+
/*@doc Define o raio da borda da barra de rolagem do componente.*/
|
|
22
|
+
--ez-classic-search__scrollbar--border-radius: var(--border--radius-small, 6px);
|
|
23
|
+
/*@doc Define a largura da barra de rolagem do componente.*/
|
|
24
|
+
--ez-classic-search__scrollbar--width: var(--space--small, 6px);
|
|
25
|
+
|
|
26
|
+
/* general */
|
|
27
|
+
/*@doc Define o raio da borda do input quando pequeno.*/
|
|
28
|
+
--ez-classic-search--border-radius-small: var(--border--radius-small, 6px);
|
|
29
|
+
/*@doc Define o tamanho da fonte dentro do input.*/
|
|
30
|
+
--ez-classic-search--font-size: var(--text--medium, 14px);
|
|
31
|
+
/*@doc Define a família da fonte dentro do input.*/
|
|
32
|
+
--ez-classic-search--font-family: var(--font-pattern, Arial);
|
|
33
|
+
/*@doc Define o peso da fonte dentro do input quando pesada.*/
|
|
34
|
+
--ez-classic-search--font-weight--large: var(--text-weight--large, 500);
|
|
35
|
+
/*@doc Define o peso da fonte dentro do input quando média.*/
|
|
36
|
+
--ez-classic-search--font-weight--medium: var(--text-weight--medium, 400);
|
|
37
|
+
/*@doc Define a cor de fundo dos itens da lista de opções.*/
|
|
38
|
+
--ez-classic-search--background-medium: var(--background--medium, #f0f3f7);
|
|
39
|
+
/*@doc Define a altura da linha do texto dentro do input.*/
|
|
40
|
+
--ez-classic-search--line-height: calc(var(--text--medium, 14px) + 4px);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
.list-options {
|
|
44
|
+
position: relative;
|
|
45
|
+
z-index: var(--more-visible, 2);
|
|
46
|
+
margin: var(--space--small) 0px;
|
|
47
|
+
padding: 0px;
|
|
48
|
+
padding-inline-start: 0px;
|
|
49
|
+
box-sizing: border-box;
|
|
50
|
+
width: 100%;
|
|
51
|
+
height: 100%;
|
|
52
|
+
max-height: 350px;
|
|
53
|
+
min-width: 150px;
|
|
54
|
+
display: flex;
|
|
55
|
+
flex-direction: column;
|
|
56
|
+
scroll-behavior: smooth;
|
|
57
|
+
overflow-y: auto;
|
|
58
|
+
overflow-x: hidden;
|
|
59
|
+
scrollbar-width: thin;
|
|
60
|
+
|
|
61
|
+
/*public*/
|
|
62
|
+
scrollbar-color: var(--ez-classic-search__scrollbar--color-clicked) var(--ez-classic-search__scrollbar--color-background);
|
|
63
|
+
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
.list-options::-webkit-scrollbar {
|
|
67
|
+
/*public*/
|
|
68
|
+
background-color: var(--scrollbar--background);
|
|
69
|
+
width: var(--space--small);
|
|
70
|
+
max-width: var(--space--small);
|
|
71
|
+
min-width: var(--space--small);
|
|
72
|
+
height: var(--space--small);
|
|
73
|
+
max-height: var(--space--small);
|
|
74
|
+
min-height: var(--space--small);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.list-options::-webkit-scrollbar-track {
|
|
78
|
+
/*public*/
|
|
79
|
+
background-color: var(--ez-classic-search__scrollbar--color-background);
|
|
80
|
+
border-radius: var(--ez-classic-search__scrollbar--border-radius);
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.list-options::-webkit-scrollbar-thumb {
|
|
84
|
+
/*public*/
|
|
85
|
+
background-color: var(--ez-classic-search__scrollbar--color-default);
|
|
86
|
+
border-radius: var(--ez-classic-search__scrollbar--border-radius);
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.list-options::-webkit-scrollbar-thumb:vertical:hover,
|
|
90
|
+
.list-options::-webkit-scrollbar-thumb:horizontal:hover {
|
|
91
|
+
/*public*/
|
|
92
|
+
background-color: var(--ez-classic-search__scrollbar--color-hover);
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
.list-options::-webkit-scrollbar-thumb:vertical:active,
|
|
96
|
+
.list-options::-webkit-scrollbar-thumb:horizontal:active {
|
|
97
|
+
/*public*/
|
|
98
|
+
background-color: var(--ez-classic-search__scrollbar--color-clicked);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.message {
|
|
102
|
+
text-align: center;
|
|
103
|
+
display: flex;
|
|
104
|
+
justify-content: center;
|
|
105
|
+
align-items: center;
|
|
106
|
+
list-style-type: none;
|
|
107
|
+
margin: var(--space--medium) 0px;
|
|
108
|
+
|
|
109
|
+
/*public*/
|
|
110
|
+
min-height: var(--ez-classic-search__list-height);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
.message__no-result {
|
|
114
|
+
/*public*/
|
|
115
|
+
color: var(--ez-classic-search__list-title--primary);
|
|
116
|
+
font-family: var(--ez-classic-search--font-family);
|
|
117
|
+
font-size: var(--ez-classic-search--font-size);
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.loading__container {
|
|
121
|
+
display: flex;
|
|
122
|
+
flex-direction: column;
|
|
123
|
+
margin: var(--space--small);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.item__value,
|
|
127
|
+
.item__label {
|
|
128
|
+
flex-basis: auto;
|
|
129
|
+
white-space: nowrap;
|
|
130
|
+
overflow: hidden;
|
|
131
|
+
text-overflow: ellipsis;
|
|
132
|
+
|
|
133
|
+
/*public*/
|
|
134
|
+
color: var(--ez-classic-search__list-title--primary);
|
|
135
|
+
font-family: var(--ez-classic-search--font-family);
|
|
136
|
+
font-size: var(--ez-classic-search--font-size);
|
|
137
|
+
line-height: var(--ez-classic-search--line-height);
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.item__label {
|
|
141
|
+
/*public*/
|
|
142
|
+
font-weight: var(--ez-classic-search--font-weight--medium);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.item__label--bold {
|
|
146
|
+
/*public*/
|
|
147
|
+
font-weight: var(--ez-classic-search--font-weight--large);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
.item__value {
|
|
151
|
+
text-align: center;
|
|
152
|
+
|
|
153
|
+
/*public*/
|
|
154
|
+
color: var(--ez-classic-search__list-text--primary);
|
|
155
|
+
font-weight: var(--ez-classic-search--font-weight--large);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.item__value--hidden {
|
|
159
|
+
visibility: hidden;
|
|
160
|
+
position: absolute;
|
|
161
|
+
white-space: nowrap;
|
|
162
|
+
z-index: -1;
|
|
163
|
+
top: 0;
|
|
164
|
+
left: 0;
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
.item__label {
|
|
168
|
+
text-align: left;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.item__list>li:hover {
|
|
172
|
+
/*public*/
|
|
173
|
+
background-color: var(--ez-classic-search--background-medium);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
.item {
|
|
177
|
+
display: flex;
|
|
178
|
+
align-items: center;
|
|
179
|
+
width: 100%;
|
|
180
|
+
box-sizing: border-box;
|
|
181
|
+
list-style-type: none;
|
|
182
|
+
cursor: pointer;
|
|
183
|
+
|
|
184
|
+
/*public*/
|
|
185
|
+
border-radius: var(--ez-classic-search--border-radius-small);
|
|
186
|
+
gap: var(--space--small, 6px);
|
|
187
|
+
}
|
|
188
|
+
|
|
189
|
+
.preselected {
|
|
190
|
+
/*public*/
|
|
191
|
+
background-color: var(--background--medium);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
@-webkit-keyframes spin {
|
|
195
|
+
0% {
|
|
196
|
+
-webkit-transform: rotate(0deg);
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
100% {
|
|
200
|
+
-webkit-transform: rotate(360deg);
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
@keyframes spin {
|
|
205
|
+
0% {
|
|
206
|
+
transform: rotate(0deg);
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
100% {
|
|
210
|
+
transform: rotate(360deg);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
@supports not (scrollbar-width: thin) {
|
|
215
|
+
|
|
216
|
+
/* Estilos para navegadores que NÃO suportam scrollbar-width */
|
|
217
|
+
.item {
|
|
218
|
+
/* Estilos alternativos, por exemplo, para navegadores que não suportam scrollbar-width */
|
|
219
|
+
padding-right: 8px;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
@@ -0,0 +1,298 @@
|
|
|
1
|
+
import { Host, h } from '@stencil/core';
|
|
2
|
+
import { StringUtils } from '@sankhyalabs/core';
|
|
3
|
+
import initI18n from '../../../../utils/i18n';
|
|
4
|
+
export class EzClassicSearchResultList {
|
|
5
|
+
constructor() {
|
|
6
|
+
this._startHighlightTag = "<span class='card-item__highlight'>";
|
|
7
|
+
this._endHighlightTag = "</span>";
|
|
8
|
+
this.showLoading = undefined;
|
|
9
|
+
this.visibleOptions = [];
|
|
10
|
+
this.value = undefined;
|
|
11
|
+
this.showOptionValue = true;
|
|
12
|
+
this._preSelection = undefined;
|
|
13
|
+
}
|
|
14
|
+
observerVisivleOptions(newValue) {
|
|
15
|
+
if (newValue.length) {
|
|
16
|
+
this.preSelectItemByIndex(0);
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
async nextOption() {
|
|
20
|
+
const newPreSelection = this._preSelection === undefined ? 0 : Math.min(this._preSelection + 1, this.visibleOptions.length - 1);
|
|
21
|
+
this.preSelectItemByIndex(newPreSelection);
|
|
22
|
+
}
|
|
23
|
+
async previousOption() {
|
|
24
|
+
const newPreSelection = this._preSelection === undefined ? 0 : Math.max(this._preSelection - 1, 0);
|
|
25
|
+
this.preSelectItemByIndex(newPreSelection);
|
|
26
|
+
}
|
|
27
|
+
preSelectItemByIndex(newIndex) {
|
|
28
|
+
this._preSelection = newIndex;
|
|
29
|
+
const option = this.visibleOptions[newIndex];
|
|
30
|
+
this.scrollToOption(option);
|
|
31
|
+
}
|
|
32
|
+
selectOption(newOption) {
|
|
33
|
+
const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value: newOption === null || newOption === void 0 ? void 0 : newOption.value, label: newOption === null || newOption === void 0 ? void 0 : newOption.label });
|
|
34
|
+
const newOptionsFormatted = Object.assign(Object.assign({}, newOptionsReplaced), { value: this.removeHighLight(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value), label: this.removeHighLight(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.label) });
|
|
35
|
+
this.changeValue.emit(newOptionsFormatted);
|
|
36
|
+
}
|
|
37
|
+
removeHighLight(text) {
|
|
38
|
+
if (!text || typeof text !== 'string') {
|
|
39
|
+
return text;
|
|
40
|
+
}
|
|
41
|
+
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
42
|
+
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
43
|
+
return text.replace(startHighlight, '').replace(endHighlight, '');
|
|
44
|
+
}
|
|
45
|
+
createAndSelectOption(detail) {
|
|
46
|
+
let { key, title } = detail;
|
|
47
|
+
key = String(key !== null && key !== void 0 ? key : "");
|
|
48
|
+
title = StringUtils.decodeHtmlEntities(title);
|
|
49
|
+
const option = {
|
|
50
|
+
value: this.removeHighLight(key),
|
|
51
|
+
label: this.removeHighLight(title)
|
|
52
|
+
};
|
|
53
|
+
this.selectOption(option);
|
|
54
|
+
}
|
|
55
|
+
scrollToOption(opt) {
|
|
56
|
+
if (!(opt === null || opt === void 0 ? void 0 : opt.value) || !this._optionsList)
|
|
57
|
+
return;
|
|
58
|
+
window.requestAnimationFrame(() => {
|
|
59
|
+
var _a;
|
|
60
|
+
const currentValue = String((_a = opt === null || opt === void 0 ? void 0 : opt.value) !== null && _a !== void 0 ? _a : "");
|
|
61
|
+
const liElem = currentValue
|
|
62
|
+
? this._optionsList.querySelector(`div#item_${currentValue.replace(/([ #;&,.+*~':"!^$[\]()=<>|/\\])/g, '\\$1')}`)
|
|
63
|
+
: undefined;
|
|
64
|
+
if (liElem) {
|
|
65
|
+
liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
buildItem(opt, index) {
|
|
70
|
+
var _a;
|
|
71
|
+
opt.label = opt.label || opt.value;
|
|
72
|
+
const card = {
|
|
73
|
+
key: String((_a = opt.presentationValue) !== null && _a !== void 0 ? _a : ""),
|
|
74
|
+
title: opt.presentationLabel,
|
|
75
|
+
details: opt.details
|
|
76
|
+
};
|
|
77
|
+
return h("div", { style: { "height": "100%" }, class: index === this._preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.createAndSelectOption(card), onMouseOver: () => { this._preSelection = index; } }, h("ez-card-item", { item: card, compacted: true, enableKey: this.showOptionValue }));
|
|
78
|
+
}
|
|
79
|
+
async selectCurrentItem() {
|
|
80
|
+
this.selectOption(this.visibleOptions[this._preSelection]);
|
|
81
|
+
}
|
|
82
|
+
async cancelSelection() {
|
|
83
|
+
this.cancelPreselection();
|
|
84
|
+
}
|
|
85
|
+
cancelPreselection() {
|
|
86
|
+
this._preSelection = undefined;
|
|
87
|
+
}
|
|
88
|
+
canShowListOptions() {
|
|
89
|
+
return !this.showLoading && this.visibleOptions.length > 0;
|
|
90
|
+
}
|
|
91
|
+
async componentWillLoad() {
|
|
92
|
+
this.i18n = await initI18n();
|
|
93
|
+
}
|
|
94
|
+
render() {
|
|
95
|
+
return (h(Host, null, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this.showLoading
|
|
96
|
+
&& this.visibleOptions.length === 0
|
|
97
|
+
&& h("div", { class: "message" }, h("span", { class: "message__no-result" }, this.i18n("ez-classic-search-plus.emptyList"))), this.showLoading && (h("div", { class: "loading__container" }, h("ez-skeleton", { count: 4, height: '20px' }))), this.canShowListOptions() && this.visibleOptions.map((opt, index) => this.buildItem(opt, index)))));
|
|
98
|
+
}
|
|
99
|
+
static get is() { return "ez-classic-search-result-list"; }
|
|
100
|
+
static get encapsulation() { return "shadow"; }
|
|
101
|
+
static get originalStyleUrls() {
|
|
102
|
+
return {
|
|
103
|
+
"$": ["ez-classic-search-result-list.css"]
|
|
104
|
+
};
|
|
105
|
+
}
|
|
106
|
+
static get styleUrls() {
|
|
107
|
+
return {
|
|
108
|
+
"$": ["ez-classic-search-result-list.css"]
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
static get properties() {
|
|
112
|
+
return {
|
|
113
|
+
"showLoading": {
|
|
114
|
+
"type": "boolean",
|
|
115
|
+
"mutable": false,
|
|
116
|
+
"complexType": {
|
|
117
|
+
"original": "boolean",
|
|
118
|
+
"resolved": "boolean",
|
|
119
|
+
"references": {}
|
|
120
|
+
},
|
|
121
|
+
"required": false,
|
|
122
|
+
"optional": false,
|
|
123
|
+
"docs": {
|
|
124
|
+
"tags": [],
|
|
125
|
+
"text": ""
|
|
126
|
+
},
|
|
127
|
+
"attribute": "show-loading",
|
|
128
|
+
"reflect": false
|
|
129
|
+
},
|
|
130
|
+
"visibleOptions": {
|
|
131
|
+
"type": "unknown",
|
|
132
|
+
"mutable": false,
|
|
133
|
+
"complexType": {
|
|
134
|
+
"original": "Array<IOption>",
|
|
135
|
+
"resolved": "IOption[]",
|
|
136
|
+
"references": {
|
|
137
|
+
"Array": {
|
|
138
|
+
"location": "global"
|
|
139
|
+
},
|
|
140
|
+
"IOption": {
|
|
141
|
+
"location": "import",
|
|
142
|
+
"path": "../../ez-classic-search-plus"
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"required": false,
|
|
147
|
+
"optional": false,
|
|
148
|
+
"docs": {
|
|
149
|
+
"tags": [],
|
|
150
|
+
"text": ""
|
|
151
|
+
},
|
|
152
|
+
"defaultValue": "[]"
|
|
153
|
+
},
|
|
154
|
+
"value": {
|
|
155
|
+
"type": "string",
|
|
156
|
+
"mutable": false,
|
|
157
|
+
"complexType": {
|
|
158
|
+
"original": "IOption | string",
|
|
159
|
+
"resolved": "IOption | string",
|
|
160
|
+
"references": {
|
|
161
|
+
"IOption": {
|
|
162
|
+
"location": "import",
|
|
163
|
+
"path": "../../ez-classic-search-plus"
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
},
|
|
167
|
+
"required": false,
|
|
168
|
+
"optional": false,
|
|
169
|
+
"docs": {
|
|
170
|
+
"tags": [],
|
|
171
|
+
"text": ""
|
|
172
|
+
},
|
|
173
|
+
"attribute": "value",
|
|
174
|
+
"reflect": false
|
|
175
|
+
},
|
|
176
|
+
"showOptionValue": {
|
|
177
|
+
"type": "boolean",
|
|
178
|
+
"mutable": false,
|
|
179
|
+
"complexType": {
|
|
180
|
+
"original": "boolean",
|
|
181
|
+
"resolved": "boolean",
|
|
182
|
+
"references": {}
|
|
183
|
+
},
|
|
184
|
+
"required": false,
|
|
185
|
+
"optional": false,
|
|
186
|
+
"docs": {
|
|
187
|
+
"tags": [],
|
|
188
|
+
"text": ""
|
|
189
|
+
},
|
|
190
|
+
"attribute": "show-option-value",
|
|
191
|
+
"reflect": false,
|
|
192
|
+
"defaultValue": "true"
|
|
193
|
+
}
|
|
194
|
+
};
|
|
195
|
+
}
|
|
196
|
+
static get states() {
|
|
197
|
+
return {
|
|
198
|
+
"_preSelection": {}
|
|
199
|
+
};
|
|
200
|
+
}
|
|
201
|
+
static get events() {
|
|
202
|
+
return [{
|
|
203
|
+
"method": "changeValue",
|
|
204
|
+
"name": "changeValue",
|
|
205
|
+
"bubbles": true,
|
|
206
|
+
"cancelable": true,
|
|
207
|
+
"composed": true,
|
|
208
|
+
"docs": {
|
|
209
|
+
"tags": [],
|
|
210
|
+
"text": ""
|
|
211
|
+
},
|
|
212
|
+
"complexType": {
|
|
213
|
+
"original": "IOption",
|
|
214
|
+
"resolved": "IOption",
|
|
215
|
+
"references": {
|
|
216
|
+
"IOption": {
|
|
217
|
+
"location": "import",
|
|
218
|
+
"path": "../../ez-classic-search-plus"
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}];
|
|
223
|
+
}
|
|
224
|
+
static get methods() {
|
|
225
|
+
return {
|
|
226
|
+
"nextOption": {
|
|
227
|
+
"complexType": {
|
|
228
|
+
"signature": "() => Promise<void>",
|
|
229
|
+
"parameters": [],
|
|
230
|
+
"references": {
|
|
231
|
+
"Promise": {
|
|
232
|
+
"location": "global"
|
|
233
|
+
}
|
|
234
|
+
},
|
|
235
|
+
"return": "Promise<void>"
|
|
236
|
+
},
|
|
237
|
+
"docs": {
|
|
238
|
+
"text": "",
|
|
239
|
+
"tags": []
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
"previousOption": {
|
|
243
|
+
"complexType": {
|
|
244
|
+
"signature": "() => Promise<void>",
|
|
245
|
+
"parameters": [],
|
|
246
|
+
"references": {
|
|
247
|
+
"Promise": {
|
|
248
|
+
"location": "global"
|
|
249
|
+
}
|
|
250
|
+
},
|
|
251
|
+
"return": "Promise<void>"
|
|
252
|
+
},
|
|
253
|
+
"docs": {
|
|
254
|
+
"text": "",
|
|
255
|
+
"tags": []
|
|
256
|
+
}
|
|
257
|
+
},
|
|
258
|
+
"selectCurrentItem": {
|
|
259
|
+
"complexType": {
|
|
260
|
+
"signature": "() => Promise<void>",
|
|
261
|
+
"parameters": [],
|
|
262
|
+
"references": {
|
|
263
|
+
"Promise": {
|
|
264
|
+
"location": "global"
|
|
265
|
+
}
|
|
266
|
+
},
|
|
267
|
+
"return": "Promise<void>"
|
|
268
|
+
},
|
|
269
|
+
"docs": {
|
|
270
|
+
"text": "",
|
|
271
|
+
"tags": []
|
|
272
|
+
}
|
|
273
|
+
},
|
|
274
|
+
"cancelSelection": {
|
|
275
|
+
"complexType": {
|
|
276
|
+
"signature": "() => Promise<void>",
|
|
277
|
+
"parameters": [],
|
|
278
|
+
"references": {
|
|
279
|
+
"Promise": {
|
|
280
|
+
"location": "global"
|
|
281
|
+
}
|
|
282
|
+
},
|
|
283
|
+
"return": "Promise<void>"
|
|
284
|
+
},
|
|
285
|
+
"docs": {
|
|
286
|
+
"text": "",
|
|
287
|
+
"tags": []
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
};
|
|
291
|
+
}
|
|
292
|
+
static get watchers() {
|
|
293
|
+
return [{
|
|
294
|
+
"propName": "visibleOptions",
|
|
295
|
+
"methodName": "observerVisivleOptions"
|
|
296
|
+
}];
|
|
297
|
+
}
|
|
298
|
+
}
|