@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,988 @@
|
|
|
1
|
+
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import { ElementIDUtils, KeyboardManager, StringUtils, } from "@sankhyalabs/core";
|
|
3
|
+
import { CSSVarsUtils, SearchMode } from "../../utils";
|
|
4
|
+
import initI18n from '../../utils/i18n';
|
|
5
|
+
export class EzClassicSearchPlus {
|
|
6
|
+
constructor() {
|
|
7
|
+
this.SEARCH_DESCRIPTION_TIMEOUT = 2000;
|
|
8
|
+
this.INTERVAL_TO_RETRY_ASYNC_VALUE = 100;
|
|
9
|
+
this._ignoreNextValue = false;
|
|
10
|
+
this.value = undefined;
|
|
11
|
+
this.enabled = true;
|
|
12
|
+
this.disableCodeInput = false;
|
|
13
|
+
this.disableDescriptionInput = false;
|
|
14
|
+
this.label = undefined;
|
|
15
|
+
this.hideDescriptionInput = false;
|
|
16
|
+
this.canShowError = true;
|
|
17
|
+
this.errorMessage = undefined;
|
|
18
|
+
this.mode = "regular";
|
|
19
|
+
this.size = "default";
|
|
20
|
+
this.required = false;
|
|
21
|
+
this.contextProperties = undefined;
|
|
22
|
+
this.optionLoader = undefined;
|
|
23
|
+
this.showOptionValue = true;
|
|
24
|
+
this.stopPropagateEnterKeyEvent = false;
|
|
25
|
+
this.autoFocus = false;
|
|
26
|
+
this.showSelectedValue = true;
|
|
27
|
+
this.suppressEmptyOption = false;
|
|
28
|
+
this.hideErrorOnFocusOut = true;
|
|
29
|
+
this.listOptionsPosition = undefined;
|
|
30
|
+
this.isTextSearch = false;
|
|
31
|
+
this.ignoreLimitCharsToSearch = false;
|
|
32
|
+
this.suppressSearch = false;
|
|
33
|
+
this.suppressPreLoad = true;
|
|
34
|
+
this.ensureClearButtonVisible = false;
|
|
35
|
+
this.descriptionValue = "";
|
|
36
|
+
this.codeValue = "";
|
|
37
|
+
this.isLoadingDescription = false;
|
|
38
|
+
this.searchDescriptionIsOpen = false;
|
|
39
|
+
this.visibleOptions = undefined;
|
|
40
|
+
this.showLoading = true;
|
|
41
|
+
}
|
|
42
|
+
async observeValue(newValue, oldValue) {
|
|
43
|
+
var _a;
|
|
44
|
+
if (this._ignoreNextValue) {
|
|
45
|
+
this._ignoreNextValue = false;
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const newNormalizedValue = this.normalizeValueToCodeValue(newValue);
|
|
49
|
+
const oldNormalizedValue = this.normalizeValueToCodeValue(oldValue);
|
|
50
|
+
if (newNormalizedValue === oldNormalizedValue) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
if (newNormalizedValue === undefined) {
|
|
54
|
+
this.codeValue = undefined;
|
|
55
|
+
this.descriptionValue = undefined;
|
|
56
|
+
this.ezChange.emit(undefined);
|
|
57
|
+
return;
|
|
58
|
+
}
|
|
59
|
+
this.codeValue = newNormalizedValue;
|
|
60
|
+
try {
|
|
61
|
+
this.descriptionValue = await this.normalizeCodeToDescriptionValue(newValue);
|
|
62
|
+
if (this.descriptionValue === null || this.descriptionValue === undefined) {
|
|
63
|
+
throw new Error("Valor não encontrado!");
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
catch (err) {
|
|
67
|
+
this._ignoreNextValue = true;
|
|
68
|
+
this.clearSearch();
|
|
69
|
+
console.warn("[EzSearchPlus] Erro ao obter descrição do registro.", err);
|
|
70
|
+
if (((_a = err === null || err === void 0 ? void 0 : err.constructor) === null || _a === void 0 ? void 0 : _a.name) === "WarningException") {
|
|
71
|
+
this.errorMessage = err.message;
|
|
72
|
+
}
|
|
73
|
+
throw err;
|
|
74
|
+
}
|
|
75
|
+
this.value = this.buildCurrentValue();
|
|
76
|
+
this.ezChange.emit(this.value);
|
|
77
|
+
this.errorMessage = null;
|
|
78
|
+
}
|
|
79
|
+
/**
|
|
80
|
+
* Aplica o foco no campo.
|
|
81
|
+
*/
|
|
82
|
+
async setFocus(options) {
|
|
83
|
+
var _a;
|
|
84
|
+
if (this.disableCodeInput) {
|
|
85
|
+
(_a = this._textInputDescriptionValue) === null || _a === void 0 ? void 0 : _a.setFocus(options);
|
|
86
|
+
return;
|
|
87
|
+
}
|
|
88
|
+
if (this._latestFocusedInputElement) {
|
|
89
|
+
this._latestFocusedInputElement.setFocus(options);
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
this._textInputCodeValue.setFocus(options);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* Obtém o valor do componente só após a compo de apresentação
|
|
96
|
+
* ter sido resolvido pelo option loader quando necessário
|
|
97
|
+
*/
|
|
98
|
+
async getValueAsync() {
|
|
99
|
+
if (!this.isLoadingDescription) {
|
|
100
|
+
const currentOpt = this.buildCurrentValue();
|
|
101
|
+
return new Promise(resolve => resolve(currentOpt));
|
|
102
|
+
}
|
|
103
|
+
return new Promise(resolve => {
|
|
104
|
+
let id = setInterval(() => {
|
|
105
|
+
if (!this.isLoadingDescription) {
|
|
106
|
+
clearInterval(id);
|
|
107
|
+
const currentOpt = this.buildCurrentValue();
|
|
108
|
+
resolve(currentOpt);
|
|
109
|
+
}
|
|
110
|
+
}, this.INTERVAL_TO_RETRY_ASYNC_VALUE);
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Limpa o valor do campo de pesquisa
|
|
115
|
+
*/
|
|
116
|
+
async clearValue() {
|
|
117
|
+
this.clearSearch();
|
|
118
|
+
}
|
|
119
|
+
/**
|
|
120
|
+
* Remove o foco do campo.
|
|
121
|
+
*/
|
|
122
|
+
async setBlur() {
|
|
123
|
+
var _a, _b;
|
|
124
|
+
(_a = this._textInputCodeValue) === null || _a === void 0 ? void 0 : _a.setBlur();
|
|
125
|
+
(_b = this._textInputDescriptionValue) === null || _b === void 0 ? void 0 : _b.setBlur();
|
|
126
|
+
}
|
|
127
|
+
/**
|
|
128
|
+
* Retorna se o conteúdo é inválido.
|
|
129
|
+
*/
|
|
130
|
+
async isInvalid() {
|
|
131
|
+
return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
|
|
132
|
+
}
|
|
133
|
+
async componentWillLoad() {
|
|
134
|
+
this.i18n = await initI18n();
|
|
135
|
+
if (this.value && StringUtils.isEmpty(this.codeValue)) {
|
|
136
|
+
await this.observeValue(this.value, undefined);
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
componentDidLoad() {
|
|
140
|
+
CSSVarsUtils.applyVarsTextInput(this.el, this._textInputCodeValue);
|
|
141
|
+
CSSVarsUtils.applyVarsTextInput(this.el, this._textInputDescriptionValue);
|
|
142
|
+
}
|
|
143
|
+
connectedCallback() {
|
|
144
|
+
this.initKeyboardManager();
|
|
145
|
+
if (this.autoFocus) {
|
|
146
|
+
requestAnimationFrame(() => {
|
|
147
|
+
this.setFocus({ selectText: true });
|
|
148
|
+
});
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
clearSearch() {
|
|
152
|
+
this.value = null;
|
|
153
|
+
this.codeValue = null;
|
|
154
|
+
this.descriptionValue = null;
|
|
155
|
+
if (!this.hideDescriptionInput) {
|
|
156
|
+
this._textInputDescriptionValue.value = null;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
async normalizeCodeToDescriptionValue(valueToNormalize) {
|
|
160
|
+
if (!valueToNormalize) {
|
|
161
|
+
return "";
|
|
162
|
+
}
|
|
163
|
+
if (typeof valueToNormalize == 'string') {
|
|
164
|
+
try {
|
|
165
|
+
valueToNormalize = JSON.parse(valueToNormalize);
|
|
166
|
+
if ((valueToNormalize === null || valueToNormalize === void 0 ? void 0 : valueToNormalize.value) && !(valueToNormalize === null || valueToNormalize === void 0 ? void 0 : valueToNormalize.label)) {
|
|
167
|
+
return await this.loadDescriptionValueByCode(valueToNormalize === null || valueToNormalize === void 0 ? void 0 : valueToNormalize.value);
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
catch (e) {
|
|
171
|
+
return await this.loadDescriptionValueByCode(valueToNormalize);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
//Se é diferente de objeto, temos que resolver a descrição
|
|
175
|
+
if (typeof valueToNormalize != 'object') {
|
|
176
|
+
return await this.loadDescriptionValueByCode(valueToNormalize);
|
|
177
|
+
}
|
|
178
|
+
return valueToNormalize === null || valueToNormalize === void 0 ? void 0 : valueToNormalize.label;
|
|
179
|
+
}
|
|
180
|
+
normalizeValueToCodeValue(valueToNormalize) {
|
|
181
|
+
if (!valueToNormalize) {
|
|
182
|
+
return undefined;
|
|
183
|
+
}
|
|
184
|
+
if (typeof valueToNormalize == 'string') {
|
|
185
|
+
try {
|
|
186
|
+
valueToNormalize = JSON.parse(valueToNormalize);
|
|
187
|
+
}
|
|
188
|
+
catch (e) {
|
|
189
|
+
return valueToNormalize;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
if (typeof valueToNormalize != 'object') {
|
|
193
|
+
return typeof valueToNormalize === 'number'
|
|
194
|
+
? String(valueToNormalize)
|
|
195
|
+
: valueToNormalize;
|
|
196
|
+
}
|
|
197
|
+
return valueToNormalize === null || valueToNormalize === void 0 ? void 0 : valueToNormalize.value;
|
|
198
|
+
}
|
|
199
|
+
async loadDescriptionValueByCode(codeValue) {
|
|
200
|
+
if (!this.optionLoader) {
|
|
201
|
+
console.warn(this.i18n("ez-search-plus.optionLoaderNotDefined"));
|
|
202
|
+
return "";
|
|
203
|
+
}
|
|
204
|
+
try {
|
|
205
|
+
this.isLoadingDescription = true;
|
|
206
|
+
const searchArgument = { mode: SearchMode.LOAD_DESCRIPTION, argument: codeValue };
|
|
207
|
+
const loadedOption = await this.optionLoader(searchArgument);
|
|
208
|
+
if (!loadedOption) {
|
|
209
|
+
return "";
|
|
210
|
+
}
|
|
211
|
+
if (Array.isArray(loadedOption)) {
|
|
212
|
+
return loadedOption[0].label;
|
|
213
|
+
}
|
|
214
|
+
return loadedOption.label;
|
|
215
|
+
}
|
|
216
|
+
finally {
|
|
217
|
+
this.isLoadingDescription = false;
|
|
218
|
+
}
|
|
219
|
+
}
|
|
220
|
+
handleCodeInputFocusOut() {
|
|
221
|
+
this.cancelSelection();
|
|
222
|
+
if (this.codeValue == this._textInputCodeValue.value)
|
|
223
|
+
return;
|
|
224
|
+
this.value = this._textInputCodeValue.value;
|
|
225
|
+
}
|
|
226
|
+
handleSearchClick() {
|
|
227
|
+
this.loadAdvancedSearch();
|
|
228
|
+
}
|
|
229
|
+
async loadAdvancedSearch() {
|
|
230
|
+
if (!this.optionLoader) {
|
|
231
|
+
console.warn(this.i18n("ez-search-plus.optionLoaderNotDefined"));
|
|
232
|
+
return;
|
|
233
|
+
}
|
|
234
|
+
const searchArgument = { mode: SearchMode.ADVANCED, argument: "" };
|
|
235
|
+
let selectedItem = undefined;
|
|
236
|
+
try {
|
|
237
|
+
selectedItem = await this.optionLoader(searchArgument, this.contextProperties);
|
|
238
|
+
}
|
|
239
|
+
catch (ignore) { }
|
|
240
|
+
if (!selectedItem)
|
|
241
|
+
return;
|
|
242
|
+
this.value = selectedItem;
|
|
243
|
+
}
|
|
244
|
+
buildCurrentValue() {
|
|
245
|
+
if (StringUtils.isEmpty(this.codeValue)) {
|
|
246
|
+
return undefined;
|
|
247
|
+
}
|
|
248
|
+
return {
|
|
249
|
+
value: this.codeValue,
|
|
250
|
+
label: this.descriptionValue
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
async handleTextInputChangeHandler(event) {
|
|
254
|
+
if (!this.searchDescriptionIsOpen) {
|
|
255
|
+
this._popover.showUnder(this.el);
|
|
256
|
+
}
|
|
257
|
+
const argument = event.target.value;
|
|
258
|
+
await this.debounceLoaderOptions(argument);
|
|
259
|
+
}
|
|
260
|
+
async debounceLoaderOptions(argument) {
|
|
261
|
+
if (this._debounceSearch)
|
|
262
|
+
clearTimeout(this._debounceSearch);
|
|
263
|
+
return new Promise((resolve) => {
|
|
264
|
+
this._debounceSearch = setTimeout(async () => {
|
|
265
|
+
await this.processOptionsLoader(argument);
|
|
266
|
+
resolve();
|
|
267
|
+
}, this.SEARCH_DESCRIPTION_TIMEOUT);
|
|
268
|
+
});
|
|
269
|
+
}
|
|
270
|
+
updateKeyOption(option) {
|
|
271
|
+
return (Object.assign(Object.assign({}, option), { presentationValue: option.value, presentationLabel: option.label }));
|
|
272
|
+
}
|
|
273
|
+
parseSearchOptions(options = []) {
|
|
274
|
+
if (Array.isArray(options)) {
|
|
275
|
+
const firstOption = options[0];
|
|
276
|
+
if (!firstOption) {
|
|
277
|
+
return [];
|
|
278
|
+
}
|
|
279
|
+
if ("label" in firstOption || "value" in firstOption) {
|
|
280
|
+
return options.map((option) => this.updateKeyOption(option));
|
|
281
|
+
}
|
|
282
|
+
return options;
|
|
283
|
+
}
|
|
284
|
+
if ("label" in options || "value" in options) {
|
|
285
|
+
[this.updateKeyOption(options)];
|
|
286
|
+
}
|
|
287
|
+
return [options];
|
|
288
|
+
}
|
|
289
|
+
async processOptionsLoader(argument) {
|
|
290
|
+
try {
|
|
291
|
+
this.showLoading = true;
|
|
292
|
+
const searchArgument = { mode: SearchMode.PREDICTIVE, argument };
|
|
293
|
+
const options = await this.optionLoader(searchArgument);
|
|
294
|
+
this.visibleOptions = this.parseSearchOptions(options);
|
|
295
|
+
}
|
|
296
|
+
finally {
|
|
297
|
+
this.showLoading = false;
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
handleSelectItem(evt) {
|
|
301
|
+
const currentOpt = evt.detail;
|
|
302
|
+
this.value = currentOpt;
|
|
303
|
+
this._popover.hide();
|
|
304
|
+
window.requestAnimationFrame(() => {
|
|
305
|
+
var _a;
|
|
306
|
+
(_a = this._textInputDescriptionValue) === null || _a === void 0 ? void 0 : _a.setFocus({ selectText: true });
|
|
307
|
+
});
|
|
308
|
+
}
|
|
309
|
+
async handleArrowUp() {
|
|
310
|
+
if (!this.isOptionsVisible()) {
|
|
311
|
+
return;
|
|
312
|
+
}
|
|
313
|
+
await this._classicSearchList.previousOption();
|
|
314
|
+
}
|
|
315
|
+
async handleArrowDown() {
|
|
316
|
+
if (!this.isOptionsVisible()) {
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
await this._classicSearchList.nextOption();
|
|
320
|
+
}
|
|
321
|
+
async selectCurrentItem() {
|
|
322
|
+
var _a;
|
|
323
|
+
await ((_a = this._classicSearchList) === null || _a === void 0 ? void 0 : _a.selectCurrentItem());
|
|
324
|
+
}
|
|
325
|
+
async cancelSelection() {
|
|
326
|
+
var _a, _b, _c;
|
|
327
|
+
const description = typeof this.value === 'object' ? (_a = this.value) === null || _a === void 0 ? void 0 : _a.label : "";
|
|
328
|
+
if (this._textInputDescriptionValue && description && this._textInputDescriptionValue.value != description) {
|
|
329
|
+
this._textInputDescriptionValue.value = description;
|
|
330
|
+
}
|
|
331
|
+
await ((_b = this._classicSearchList) === null || _b === void 0 ? void 0 : _b.cancelSelection());
|
|
332
|
+
(_c = this._popover) === null || _c === void 0 ? void 0 : _c.hide();
|
|
333
|
+
}
|
|
334
|
+
async handleInputTab() {
|
|
335
|
+
await this.cancelSelection();
|
|
336
|
+
}
|
|
337
|
+
async handleInputEsc() {
|
|
338
|
+
var _a;
|
|
339
|
+
await this.cancelSelection();
|
|
340
|
+
await ((_a = this._latestFocusedInputElement) === null || _a === void 0 ? void 0 : _a.setFocus({ selectText: true }));
|
|
341
|
+
}
|
|
342
|
+
async initKeyboardManager() {
|
|
343
|
+
this._keyboardManager = new KeyboardManager();
|
|
344
|
+
const defaultOpts = { element: this.el, propagate: true };
|
|
345
|
+
this._keyboardManager
|
|
346
|
+
.bind("ArrowUp", () => this.handleArrowUp(), Object.assign(Object.assign({}, defaultOpts), { propagate: false }))
|
|
347
|
+
.bind("ArrowDown", () => this.handleArrowDown(), Object.assign(Object.assign({}, defaultOpts), { propagate: false }))
|
|
348
|
+
.bind("Enter", () => this.selectCurrentItem(), Object.assign(Object.assign({}, defaultOpts), { propagate: !this.stopPropagateEnterKeyEvent }))
|
|
349
|
+
.bind("Tab", () => this.handleInputTab(), defaultOpts)
|
|
350
|
+
.bind("Escape", () => this.handleInputEsc(), defaultOpts);
|
|
351
|
+
}
|
|
352
|
+
disconnectedCallback() {
|
|
353
|
+
this._keyboardManager
|
|
354
|
+
.unbind("ArrowUp")
|
|
355
|
+
.unbind("ArrowDown")
|
|
356
|
+
.unbind("Enter")
|
|
357
|
+
.unbind("Tab")
|
|
358
|
+
.unbind("Escape");
|
|
359
|
+
}
|
|
360
|
+
isOptionsVisible() {
|
|
361
|
+
return this._popover.opened;
|
|
362
|
+
}
|
|
363
|
+
setLatestFocusedInputElement(el) {
|
|
364
|
+
this._latestFocusedInputElement = el;
|
|
365
|
+
}
|
|
366
|
+
handleCodeInputFocus() {
|
|
367
|
+
this.setLatestFocusedInputElement(this._textInputCodeValue);
|
|
368
|
+
}
|
|
369
|
+
handleDescriptionInputFocus() {
|
|
370
|
+
this.setLatestFocusedInputElement(this._textInputDescriptionValue);
|
|
371
|
+
}
|
|
372
|
+
handleOnEzVisibilityChange(event) {
|
|
373
|
+
event.stopPropagation();
|
|
374
|
+
this.searchDescriptionIsOpen = event.detail;
|
|
375
|
+
}
|
|
376
|
+
render() {
|
|
377
|
+
var _a, _b;
|
|
378
|
+
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
379
|
+
const canShowClearButton = !this.ensureClearButtonVisible && (!this.value && !((_a = this._textInputCodeValue) === null || _a === void 0 ? void 0 : _a.value) && !((_b = this._textInputDescriptionValue) === null || _b === void 0 ? void 0 : _b.value));
|
|
380
|
+
return (h(Host, null, h("div", { class: "ez-classic-search-plus__wrapper" }, h("div", { class: "ez-classic-search-plus__label-container" }, h("label", { title: this.label }, this.label), this.required && h("span", { class: "required-indicator" }, "*")), h("div", { class: "ez-classic-search-plus__container" }, h("ez-classic-input", { ref: (elem) => this._textInputCodeValue = elem, class: {
|
|
381
|
+
"ez-classic-search-plus__code-input": !this.hideDescriptionInput,
|
|
382
|
+
"ez-classic-search-plus__code-input-no-border": !this.hideDescriptionInput,
|
|
383
|
+
"ez-classic-search-plus__code-input-full": this.hideDescriptionInput
|
|
384
|
+
}, "data-element-id": ElementIDUtils.getInternalIDInfo("codeInput"), "data-slave-mode": "true", enabled: !this.disableCodeInput && this.enabled, size: this.size, label: null, errorMessage: this.hideDescriptionInput ? this.errorMessage : "", value: this.codeValue, onFocusout: () => this.handleCodeInputFocusOut(), onFocus: () => this.handleCodeInputFocus(), leftIconName: "search", leftIconClickable: this.enabled, onIconClick: () => this.handleSearchClick(), onEzChange: (event) => event.stopPropagation() }), !this.hideDescriptionInput && (h("div", { class: "description-input-container" }, h("ez-classic-input", { ref: (elem) => this._textInputDescriptionValue = elem, tabIndex: -1, class: { "ez-classic-search-plus__text-input": true }, "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), "data-slave-mode": "true", enabled: !this.disableDescriptionInput && this.enabled, label: null, errorMessage: this.errorMessage, size: this.size, value: this.descriptionValue, onInput: (event) => this.handleTextInputChangeHandler(event), onFocus: () => this.handleDescriptionInputFocus(), rightIconName: canShowClearButton ? "close" : null, rightIconClickable: this.enabled, onIconClick: () => this.clearSearch(), onEzChange: (event) => event.stopPropagation() }), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this.el, autoClose: true, boxWidth: 'fit-content', overlayType: 'none', useAnchorSize: true, onEzVisibilityChange: (event) => this.handleOnEzVisibilityChange(event), "data-element-id": this.el.getAttribute("data-element-id") }, h("ez-classic-search-result-list", { ref: (ref) => this._classicSearchList = ref, showLoading: this.showLoading, visibleOptions: this.visibleOptions, value: this.value, showOptionValue: this.showOptionValue, onChangeValue: (evt) => this.handleSelectItem(evt) }))))))));
|
|
385
|
+
}
|
|
386
|
+
static get is() { return "ez-classic-search-plus"; }
|
|
387
|
+
static get encapsulation() { return "shadow"; }
|
|
388
|
+
static get originalStyleUrls() {
|
|
389
|
+
return {
|
|
390
|
+
"$": ["ez-classic-search-plus.css"]
|
|
391
|
+
};
|
|
392
|
+
}
|
|
393
|
+
static get styleUrls() {
|
|
394
|
+
return {
|
|
395
|
+
"$": ["ez-classic-search-plus.css"]
|
|
396
|
+
};
|
|
397
|
+
}
|
|
398
|
+
static get properties() {
|
|
399
|
+
return {
|
|
400
|
+
"value": {
|
|
401
|
+
"type": "string",
|
|
402
|
+
"mutable": true,
|
|
403
|
+
"complexType": {
|
|
404
|
+
"original": "IOption | string",
|
|
405
|
+
"resolved": "IOption | string",
|
|
406
|
+
"references": {
|
|
407
|
+
"IOption": {
|
|
408
|
+
"location": "local"
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
"required": false,
|
|
413
|
+
"optional": false,
|
|
414
|
+
"docs": {
|
|
415
|
+
"tags": [],
|
|
416
|
+
"text": "Define o valor do campo."
|
|
417
|
+
},
|
|
418
|
+
"attribute": "value",
|
|
419
|
+
"reflect": true
|
|
420
|
+
},
|
|
421
|
+
"enabled": {
|
|
422
|
+
"type": "boolean",
|
|
423
|
+
"mutable": true,
|
|
424
|
+
"complexType": {
|
|
425
|
+
"original": "boolean",
|
|
426
|
+
"resolved": "boolean",
|
|
427
|
+
"references": {}
|
|
428
|
+
},
|
|
429
|
+
"required": false,
|
|
430
|
+
"optional": false,
|
|
431
|
+
"docs": {
|
|
432
|
+
"tags": [],
|
|
433
|
+
"text": "Se false o usu\u00E1rio n\u00E3o pode interagir com o campo."
|
|
434
|
+
},
|
|
435
|
+
"attribute": "enabled",
|
|
436
|
+
"reflect": true,
|
|
437
|
+
"defaultValue": "true"
|
|
438
|
+
},
|
|
439
|
+
"disableCodeInput": {
|
|
440
|
+
"type": "boolean",
|
|
441
|
+
"mutable": true,
|
|
442
|
+
"complexType": {
|
|
443
|
+
"original": "boolean",
|
|
444
|
+
"resolved": "boolean",
|
|
445
|
+
"references": {}
|
|
446
|
+
},
|
|
447
|
+
"required": false,
|
|
448
|
+
"optional": false,
|
|
449
|
+
"docs": {
|
|
450
|
+
"tags": [],
|
|
451
|
+
"text": "Se true o campo de c\u00F3digo ficara desabilitado."
|
|
452
|
+
},
|
|
453
|
+
"attribute": "disable-code-input",
|
|
454
|
+
"reflect": true,
|
|
455
|
+
"defaultValue": "false"
|
|
456
|
+
},
|
|
457
|
+
"disableDescriptionInput": {
|
|
458
|
+
"type": "boolean",
|
|
459
|
+
"mutable": true,
|
|
460
|
+
"complexType": {
|
|
461
|
+
"original": "boolean",
|
|
462
|
+
"resolved": "boolean",
|
|
463
|
+
"references": {}
|
|
464
|
+
},
|
|
465
|
+
"required": false,
|
|
466
|
+
"optional": false,
|
|
467
|
+
"docs": {
|
|
468
|
+
"tags": [],
|
|
469
|
+
"text": "Se true o campo de de apresenta\u00E7\u00E3o ficara desabilitado."
|
|
470
|
+
},
|
|
471
|
+
"attribute": "disable-description-input",
|
|
472
|
+
"reflect": true,
|
|
473
|
+
"defaultValue": "false"
|
|
474
|
+
},
|
|
475
|
+
"label": {
|
|
476
|
+
"type": "string",
|
|
477
|
+
"mutable": true,
|
|
478
|
+
"complexType": {
|
|
479
|
+
"original": "string",
|
|
480
|
+
"resolved": "string",
|
|
481
|
+
"references": {}
|
|
482
|
+
},
|
|
483
|
+
"required": false,
|
|
484
|
+
"optional": false,
|
|
485
|
+
"docs": {
|
|
486
|
+
"tags": [],
|
|
487
|
+
"text": "Texto a ser apresentado como t\u00EDtulo do campo."
|
|
488
|
+
},
|
|
489
|
+
"attribute": "label",
|
|
490
|
+
"reflect": true
|
|
491
|
+
},
|
|
492
|
+
"hideDescriptionInput": {
|
|
493
|
+
"type": "boolean",
|
|
494
|
+
"mutable": true,
|
|
495
|
+
"complexType": {
|
|
496
|
+
"original": "boolean",
|
|
497
|
+
"resolved": "boolean",
|
|
498
|
+
"references": {}
|
|
499
|
+
},
|
|
500
|
+
"required": false,
|
|
501
|
+
"optional": false,
|
|
502
|
+
"docs": {
|
|
503
|
+
"tags": [],
|
|
504
|
+
"text": "Se true o campo de de apresenta\u00E7\u00E3o n\u00E3o ser\u00E1 exibido."
|
|
505
|
+
},
|
|
506
|
+
"attribute": "hide-description-input",
|
|
507
|
+
"reflect": true,
|
|
508
|
+
"defaultValue": "false"
|
|
509
|
+
},
|
|
510
|
+
"canShowError": {
|
|
511
|
+
"type": "boolean",
|
|
512
|
+
"mutable": false,
|
|
513
|
+
"complexType": {
|
|
514
|
+
"original": "boolean",
|
|
515
|
+
"resolved": "boolean",
|
|
516
|
+
"references": {}
|
|
517
|
+
},
|
|
518
|
+
"required": false,
|
|
519
|
+
"optional": false,
|
|
520
|
+
"docs": {
|
|
521
|
+
"tags": [],
|
|
522
|
+
"text": "Se false deixa de exibir a mensagem de erro dentro do campo."
|
|
523
|
+
},
|
|
524
|
+
"attribute": "can-show-error",
|
|
525
|
+
"reflect": true,
|
|
526
|
+
"defaultValue": "true"
|
|
527
|
+
},
|
|
528
|
+
"errorMessage": {
|
|
529
|
+
"type": "string",
|
|
530
|
+
"mutable": true,
|
|
531
|
+
"complexType": {
|
|
532
|
+
"original": "string",
|
|
533
|
+
"resolved": "string",
|
|
534
|
+
"references": {}
|
|
535
|
+
},
|
|
536
|
+
"required": false,
|
|
537
|
+
"optional": false,
|
|
538
|
+
"docs": {
|
|
539
|
+
"tags": [],
|
|
540
|
+
"text": "Define uma mensagem de orienta\u00E7\u00E3o ao usu\u00E1rio, colocando o campo em modo inv\u00E1lido."
|
|
541
|
+
},
|
|
542
|
+
"attribute": "error-message",
|
|
543
|
+
"reflect": true
|
|
544
|
+
},
|
|
545
|
+
"mode": {
|
|
546
|
+
"type": "string",
|
|
547
|
+
"mutable": false,
|
|
548
|
+
"complexType": {
|
|
549
|
+
"original": "\"slim\" | \"regular\"",
|
|
550
|
+
"resolved": "\"regular\" | \"slim\"",
|
|
551
|
+
"references": {}
|
|
552
|
+
},
|
|
553
|
+
"required": false,
|
|
554
|
+
"optional": false,
|
|
555
|
+
"docs": {
|
|
556
|
+
"tags": [],
|
|
557
|
+
"text": "Define o tamanho do campo."
|
|
558
|
+
},
|
|
559
|
+
"attribute": "mode",
|
|
560
|
+
"reflect": true,
|
|
561
|
+
"defaultValue": "\"regular\""
|
|
562
|
+
},
|
|
563
|
+
"size": {
|
|
564
|
+
"type": "string",
|
|
565
|
+
"mutable": false,
|
|
566
|
+
"complexType": {
|
|
567
|
+
"original": "\"default\" | \"small\" | \"xsmall\"",
|
|
568
|
+
"resolved": "\"default\" | \"small\" | \"xsmall\"",
|
|
569
|
+
"references": {}
|
|
570
|
+
},
|
|
571
|
+
"required": false,
|
|
572
|
+
"optional": true,
|
|
573
|
+
"docs": {
|
|
574
|
+
"tags": [],
|
|
575
|
+
"text": "Tamanho do input"
|
|
576
|
+
},
|
|
577
|
+
"attribute": "size",
|
|
578
|
+
"reflect": false,
|
|
579
|
+
"defaultValue": "\"default\""
|
|
580
|
+
},
|
|
581
|
+
"required": {
|
|
582
|
+
"type": "boolean",
|
|
583
|
+
"mutable": false,
|
|
584
|
+
"complexType": {
|
|
585
|
+
"original": "boolean",
|
|
586
|
+
"resolved": "boolean",
|
|
587
|
+
"references": {}
|
|
588
|
+
},
|
|
589
|
+
"required": false,
|
|
590
|
+
"optional": true,
|
|
591
|
+
"docs": {
|
|
592
|
+
"tags": [],
|
|
593
|
+
"text": "Define se o campo \u00E9 obrigat\u00F3rio"
|
|
594
|
+
},
|
|
595
|
+
"attribute": "required",
|
|
596
|
+
"reflect": false,
|
|
597
|
+
"defaultValue": "false"
|
|
598
|
+
},
|
|
599
|
+
"contextProperties": {
|
|
600
|
+
"type": "any",
|
|
601
|
+
"mutable": false,
|
|
602
|
+
"complexType": {
|
|
603
|
+
"original": "any",
|
|
604
|
+
"resolved": "any",
|
|
605
|
+
"references": {}
|
|
606
|
+
},
|
|
607
|
+
"required": false,
|
|
608
|
+
"optional": true,
|
|
609
|
+
"docs": {
|
|
610
|
+
"tags": [],
|
|
611
|
+
"text": "Propriedades de contexto da aplica\u00E7\u00E3o."
|
|
612
|
+
},
|
|
613
|
+
"attribute": "context-properties",
|
|
614
|
+
"reflect": false
|
|
615
|
+
},
|
|
616
|
+
"optionLoader": {
|
|
617
|
+
"type": "unknown",
|
|
618
|
+
"mutable": false,
|
|
619
|
+
"complexType": {
|
|
620
|
+
"original": "OptionLoaderFunction",
|
|
621
|
+
"resolved": "(argument: ISearchArgument, ctxProperties?: any) => ISearchOption | IOption | (ISearchOption | IOption)[] | Promise<ISearchOption | IOption | (ISearchOption | IOption)[]>",
|
|
622
|
+
"references": {
|
|
623
|
+
"OptionLoaderFunction": {
|
|
624
|
+
"location": "local"
|
|
625
|
+
}
|
|
626
|
+
}
|
|
627
|
+
},
|
|
628
|
+
"required": false,
|
|
629
|
+
"optional": false,
|
|
630
|
+
"docs": {
|
|
631
|
+
"tags": [],
|
|
632
|
+
"text": "Carrega as op\u00E7\u00F5es dinamicamente."
|
|
633
|
+
}
|
|
634
|
+
},
|
|
635
|
+
"showOptionValue": {
|
|
636
|
+
"type": "boolean",
|
|
637
|
+
"mutable": false,
|
|
638
|
+
"complexType": {
|
|
639
|
+
"original": "boolean",
|
|
640
|
+
"resolved": "boolean",
|
|
641
|
+
"references": {}
|
|
642
|
+
},
|
|
643
|
+
"required": false,
|
|
644
|
+
"optional": false,
|
|
645
|
+
"docs": {
|
|
646
|
+
"tags": [],
|
|
647
|
+
"text": "Se false cada op\u00E7\u00E3o na lista deve exibir somente o `label`."
|
|
648
|
+
},
|
|
649
|
+
"attribute": "show-option-value",
|
|
650
|
+
"reflect": false,
|
|
651
|
+
"defaultValue": "true"
|
|
652
|
+
},
|
|
653
|
+
"stopPropagateEnterKeyEvent": {
|
|
654
|
+
"type": "boolean",
|
|
655
|
+
"mutable": false,
|
|
656
|
+
"complexType": {
|
|
657
|
+
"original": "boolean",
|
|
658
|
+
"resolved": "boolean",
|
|
659
|
+
"references": {}
|
|
660
|
+
},
|
|
661
|
+
"required": false,
|
|
662
|
+
"optional": false,
|
|
663
|
+
"docs": {
|
|
664
|
+
"tags": [],
|
|
665
|
+
"text": "Se true, interrompe a propaga\u00E7\u00E3o do evento de KeyDown da tecla enter"
|
|
666
|
+
},
|
|
667
|
+
"attribute": "stop-propagate-enter-key-event",
|
|
668
|
+
"reflect": false,
|
|
669
|
+
"defaultValue": "false"
|
|
670
|
+
},
|
|
671
|
+
"autoFocus": {
|
|
672
|
+
"type": "boolean",
|
|
673
|
+
"mutable": false,
|
|
674
|
+
"complexType": {
|
|
675
|
+
"original": "boolean",
|
|
676
|
+
"resolved": "boolean",
|
|
677
|
+
"references": {}
|
|
678
|
+
},
|
|
679
|
+
"required": false,
|
|
680
|
+
"optional": false,
|
|
681
|
+
"docs": {
|
|
682
|
+
"tags": [],
|
|
683
|
+
"text": "Se true o campo de texto receber\u00E1 o foco ao ser renderizado."
|
|
684
|
+
},
|
|
685
|
+
"attribute": "auto-focus",
|
|
686
|
+
"reflect": false,
|
|
687
|
+
"defaultValue": "false"
|
|
688
|
+
},
|
|
689
|
+
"showSelectedValue": {
|
|
690
|
+
"type": "boolean",
|
|
691
|
+
"mutable": false,
|
|
692
|
+
"complexType": {
|
|
693
|
+
"original": "boolean",
|
|
694
|
+
"resolved": "boolean",
|
|
695
|
+
"references": {}
|
|
696
|
+
},
|
|
697
|
+
"required": false,
|
|
698
|
+
"optional": false,
|
|
699
|
+
"docs": {
|
|
700
|
+
"tags": [],
|
|
701
|
+
"text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
|
|
702
|
+
},
|
|
703
|
+
"attribute": "show-selected-value",
|
|
704
|
+
"reflect": false,
|
|
705
|
+
"defaultValue": "true"
|
|
706
|
+
},
|
|
707
|
+
"suppressEmptyOption": {
|
|
708
|
+
"type": "boolean",
|
|
709
|
+
"mutable": false,
|
|
710
|
+
"complexType": {
|
|
711
|
+
"original": "boolean",
|
|
712
|
+
"resolved": "boolean",
|
|
713
|
+
"references": {}
|
|
714
|
+
},
|
|
715
|
+
"required": false,
|
|
716
|
+
"optional": false,
|
|
717
|
+
"docs": {
|
|
718
|
+
"tags": [],
|
|
719
|
+
"text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
|
|
720
|
+
},
|
|
721
|
+
"attribute": "suppress-empty-option",
|
|
722
|
+
"reflect": false,
|
|
723
|
+
"defaultValue": "false"
|
|
724
|
+
},
|
|
725
|
+
"hideErrorOnFocusOut": {
|
|
726
|
+
"type": "boolean",
|
|
727
|
+
"mutable": false,
|
|
728
|
+
"complexType": {
|
|
729
|
+
"original": "boolean",
|
|
730
|
+
"resolved": "boolean",
|
|
731
|
+
"references": {}
|
|
732
|
+
},
|
|
733
|
+
"required": false,
|
|
734
|
+
"optional": false,
|
|
735
|
+
"docs": {
|
|
736
|
+
"tags": [],
|
|
737
|
+
"text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
|
|
738
|
+
},
|
|
739
|
+
"attribute": "hide-error-on-focus-out",
|
|
740
|
+
"reflect": false,
|
|
741
|
+
"defaultValue": "true"
|
|
742
|
+
},
|
|
743
|
+
"listOptionsPosition": {
|
|
744
|
+
"type": "unknown",
|
|
745
|
+
"mutable": false,
|
|
746
|
+
"complexType": {
|
|
747
|
+
"original": "IEzCheckBoxListPosition",
|
|
748
|
+
"resolved": "IEzCheckBoxListPosition",
|
|
749
|
+
"references": {
|
|
750
|
+
"IEzCheckBoxListPosition": {
|
|
751
|
+
"location": "import",
|
|
752
|
+
"path": "../ez-combo-box/ez-combo-box"
|
|
753
|
+
}
|
|
754
|
+
}
|
|
755
|
+
},
|
|
756
|
+
"required": false,
|
|
757
|
+
"optional": false,
|
|
758
|
+
"docs": {
|
|
759
|
+
"tags": [],
|
|
760
|
+
"text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
|
|
761
|
+
}
|
|
762
|
+
},
|
|
763
|
+
"isTextSearch": {
|
|
764
|
+
"type": "boolean",
|
|
765
|
+
"mutable": false,
|
|
766
|
+
"complexType": {
|
|
767
|
+
"original": "boolean",
|
|
768
|
+
"resolved": "boolean",
|
|
769
|
+
"references": {}
|
|
770
|
+
},
|
|
771
|
+
"required": false,
|
|
772
|
+
"optional": false,
|
|
773
|
+
"docs": {
|
|
774
|
+
"tags": [],
|
|
775
|
+
"text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
|
|
776
|
+
},
|
|
777
|
+
"attribute": "is-text-search",
|
|
778
|
+
"reflect": false,
|
|
779
|
+
"defaultValue": "false"
|
|
780
|
+
},
|
|
781
|
+
"ignoreLimitCharsToSearch": {
|
|
782
|
+
"type": "boolean",
|
|
783
|
+
"mutable": false,
|
|
784
|
+
"complexType": {
|
|
785
|
+
"original": "boolean",
|
|
786
|
+
"resolved": "boolean",
|
|
787
|
+
"references": {}
|
|
788
|
+
},
|
|
789
|
+
"required": false,
|
|
790
|
+
"optional": false,
|
|
791
|
+
"docs": {
|
|
792
|
+
"tags": [],
|
|
793
|
+
"text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
|
|
794
|
+
},
|
|
795
|
+
"attribute": "ignore-limit-chars-to-search",
|
|
796
|
+
"reflect": false,
|
|
797
|
+
"defaultValue": "false"
|
|
798
|
+
},
|
|
799
|
+
"suppressSearch": {
|
|
800
|
+
"type": "boolean",
|
|
801
|
+
"mutable": false,
|
|
802
|
+
"complexType": {
|
|
803
|
+
"original": "boolean",
|
|
804
|
+
"resolved": "boolean",
|
|
805
|
+
"references": {}
|
|
806
|
+
},
|
|
807
|
+
"required": false,
|
|
808
|
+
"optional": false,
|
|
809
|
+
"docs": {
|
|
810
|
+
"tags": [],
|
|
811
|
+
"text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
|
|
812
|
+
},
|
|
813
|
+
"attribute": "suppress-search",
|
|
814
|
+
"reflect": false,
|
|
815
|
+
"defaultValue": "false"
|
|
816
|
+
},
|
|
817
|
+
"suppressPreLoad": {
|
|
818
|
+
"type": "boolean",
|
|
819
|
+
"mutable": false,
|
|
820
|
+
"complexType": {
|
|
821
|
+
"original": "boolean",
|
|
822
|
+
"resolved": "boolean",
|
|
823
|
+
"references": {}
|
|
824
|
+
},
|
|
825
|
+
"required": false,
|
|
826
|
+
"optional": false,
|
|
827
|
+
"docs": {
|
|
828
|
+
"tags": [],
|
|
829
|
+
"text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
|
|
830
|
+
},
|
|
831
|
+
"attribute": "suppress-pre-load",
|
|
832
|
+
"reflect": false,
|
|
833
|
+
"defaultValue": "true"
|
|
834
|
+
},
|
|
835
|
+
"ensureClearButtonVisible": {
|
|
836
|
+
"type": "boolean",
|
|
837
|
+
"mutable": false,
|
|
838
|
+
"complexType": {
|
|
839
|
+
"original": "boolean",
|
|
840
|
+
"resolved": "boolean",
|
|
841
|
+
"references": {}
|
|
842
|
+
},
|
|
843
|
+
"required": false,
|
|
844
|
+
"optional": false,
|
|
845
|
+
"docs": {
|
|
846
|
+
"tags": [],
|
|
847
|
+
"text": "Garante que o bot\u00E3o de limpar pesquisa est\u00E1 sempre vis\u00EDvel"
|
|
848
|
+
},
|
|
849
|
+
"attribute": "ensure-clear-button-visible",
|
|
850
|
+
"reflect": false,
|
|
851
|
+
"defaultValue": "false"
|
|
852
|
+
}
|
|
853
|
+
};
|
|
854
|
+
}
|
|
855
|
+
static get states() {
|
|
856
|
+
return {
|
|
857
|
+
"descriptionValue": {},
|
|
858
|
+
"codeValue": {},
|
|
859
|
+
"isLoadingDescription": {},
|
|
860
|
+
"searchDescriptionIsOpen": {},
|
|
861
|
+
"visibleOptions": {},
|
|
862
|
+
"showLoading": {}
|
|
863
|
+
};
|
|
864
|
+
}
|
|
865
|
+
static get events() {
|
|
866
|
+
return [{
|
|
867
|
+
"method": "ezChange",
|
|
868
|
+
"name": "ezChange",
|
|
869
|
+
"bubbles": true,
|
|
870
|
+
"cancelable": true,
|
|
871
|
+
"composed": true,
|
|
872
|
+
"docs": {
|
|
873
|
+
"tags": [],
|
|
874
|
+
"text": "Emitido quando acontece a altera\u00E7\u00E3o de valor do campo."
|
|
875
|
+
},
|
|
876
|
+
"complexType": {
|
|
877
|
+
"original": "IOption",
|
|
878
|
+
"resolved": "IOption",
|
|
879
|
+
"references": {
|
|
880
|
+
"IOption": {
|
|
881
|
+
"location": "local"
|
|
882
|
+
}
|
|
883
|
+
}
|
|
884
|
+
}
|
|
885
|
+
}];
|
|
886
|
+
}
|
|
887
|
+
static get methods() {
|
|
888
|
+
return {
|
|
889
|
+
"setFocus": {
|
|
890
|
+
"complexType": {
|
|
891
|
+
"signature": "(options?: OptionsSetFocus) => Promise<void>",
|
|
892
|
+
"parameters": [{
|
|
893
|
+
"tags": [],
|
|
894
|
+
"text": ""
|
|
895
|
+
}],
|
|
896
|
+
"references": {
|
|
897
|
+
"Promise": {
|
|
898
|
+
"location": "global"
|
|
899
|
+
},
|
|
900
|
+
"OptionsSetFocus": {
|
|
901
|
+
"location": "import",
|
|
902
|
+
"path": "../ez-classic-input/interfaces/optionsSetFocus"
|
|
903
|
+
}
|
|
904
|
+
},
|
|
905
|
+
"return": "Promise<void>"
|
|
906
|
+
},
|
|
907
|
+
"docs": {
|
|
908
|
+
"text": "Aplica o foco no campo.",
|
|
909
|
+
"tags": []
|
|
910
|
+
}
|
|
911
|
+
},
|
|
912
|
+
"getValueAsync": {
|
|
913
|
+
"complexType": {
|
|
914
|
+
"signature": "() => Promise<IOption>",
|
|
915
|
+
"parameters": [],
|
|
916
|
+
"references": {
|
|
917
|
+
"Promise": {
|
|
918
|
+
"location": "global"
|
|
919
|
+
},
|
|
920
|
+
"IOption": {
|
|
921
|
+
"location": "local"
|
|
922
|
+
}
|
|
923
|
+
},
|
|
924
|
+
"return": "Promise<IOption>"
|
|
925
|
+
},
|
|
926
|
+
"docs": {
|
|
927
|
+
"text": "Obt\u00E9m o valor do componente s\u00F3 ap\u00F3s a compo de apresenta\u00E7\u00E3o \nter sido resolvido pelo option loader quando necess\u00E1rio",
|
|
928
|
+
"tags": []
|
|
929
|
+
}
|
|
930
|
+
},
|
|
931
|
+
"clearValue": {
|
|
932
|
+
"complexType": {
|
|
933
|
+
"signature": "() => Promise<void>",
|
|
934
|
+
"parameters": [],
|
|
935
|
+
"references": {
|
|
936
|
+
"Promise": {
|
|
937
|
+
"location": "global"
|
|
938
|
+
}
|
|
939
|
+
},
|
|
940
|
+
"return": "Promise<void>"
|
|
941
|
+
},
|
|
942
|
+
"docs": {
|
|
943
|
+
"text": "Limpa o valor do campo de pesquisa",
|
|
944
|
+
"tags": []
|
|
945
|
+
}
|
|
946
|
+
},
|
|
947
|
+
"setBlur": {
|
|
948
|
+
"complexType": {
|
|
949
|
+
"signature": "() => Promise<void>",
|
|
950
|
+
"parameters": [],
|
|
951
|
+
"references": {
|
|
952
|
+
"Promise": {
|
|
953
|
+
"location": "global"
|
|
954
|
+
}
|
|
955
|
+
},
|
|
956
|
+
"return": "Promise<void>"
|
|
957
|
+
},
|
|
958
|
+
"docs": {
|
|
959
|
+
"text": "Remove o foco do campo.",
|
|
960
|
+
"tags": []
|
|
961
|
+
}
|
|
962
|
+
},
|
|
963
|
+
"isInvalid": {
|
|
964
|
+
"complexType": {
|
|
965
|
+
"signature": "() => Promise<boolean>",
|
|
966
|
+
"parameters": [],
|
|
967
|
+
"references": {
|
|
968
|
+
"Promise": {
|
|
969
|
+
"location": "global"
|
|
970
|
+
}
|
|
971
|
+
},
|
|
972
|
+
"return": "Promise<boolean>"
|
|
973
|
+
},
|
|
974
|
+
"docs": {
|
|
975
|
+
"text": "Retorna se o conte\u00FAdo \u00E9 inv\u00E1lido.",
|
|
976
|
+
"tags": []
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
};
|
|
980
|
+
}
|
|
981
|
+
static get elementRef() { return "el"; }
|
|
982
|
+
static get watchers() {
|
|
983
|
+
return [{
|
|
984
|
+
"propName": "value",
|
|
985
|
+
"methodName": "observeValue"
|
|
986
|
+
}];
|
|
987
|
+
}
|
|
988
|
+
}
|