@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-08202.0
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 +78 -0
- package/dist/assets/actions-sprite.svg +257 -0
- package/dist/cjs/ApplicationUtils-2e444734.js +162 -0
- package/dist/cjs/CSSVarsUtils-b136a156.js +77 -0
- package/dist/cjs/CheckMode-ecb90b87.js +7 -0
- package/dist/cjs/DialogType-2114c337.js +9 -0
- package/dist/cjs/EzScrollDirection-b2c99895.js +8 -0
- package/dist/cjs/RecordValidationProcessor-edd23705.js +102 -0
- package/dist/cjs/constants-3a1d64fb.js +7 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js +212 -0
- package/dist/cjs/ez-alert.cjs.entry.js +30 -0
- package/dist/cjs/ez-application.cjs.entry.js +26 -0
- package/dist/cjs/ez-badge.cjs.entry.js +120 -0
- package/dist/cjs/ez-breadcrumb.cjs.entry.js +285 -0
- package/dist/cjs/ez-button.cjs.entry.js +87 -0
- package/dist/cjs/ez-calendar.cjs.entry.js +238 -0
- package/dist/cjs/ez-card-item.cjs.entry.js +52 -0
- package/dist/cjs/ez-check.cjs.entry.js +95 -0
- package/dist/cjs/ez-chip.cjs.entry.js +116 -0
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +133 -0
- package/dist/cjs/ez-combo-box.cjs.entry.js +690 -0
- package/dist/cjs/ez-date-input.cjs.entry.js +188 -0
- package/dist/cjs/ez-date-time-input.cjs.entry.js +242 -0
- package/dist/cjs/ez-dialog.cjs.entry.js +180 -0
- package/dist/cjs/ez-dropdown.cjs.entry.js +515 -0
- package/dist/cjs/ez-file-item.cjs.entry.js +74 -0
- package/dist/cjs/ez-filter-input_2.cjs.entry.js +137 -0
- package/dist/cjs/ez-form-view.cjs.entry.js +191 -0
- package/dist/cjs/ez-form.cjs.entry.js +933 -0
- package/dist/cjs/ez-grid.cjs.entry.js +120838 -0
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +96 -0
- package/dist/cjs/ez-icon.cjs.entry.js +44 -0
- package/dist/cjs/ez-list.cjs.entry.js +558 -0
- package/dist/cjs/ez-loading-bar.cjs.entry.js +32 -0
- package/dist/cjs/ez-modal-container.cjs.entry.js +64 -0
- package/dist/cjs/ez-modal.cjs.entry.js +72 -0
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +183 -0
- package/dist/cjs/ez-number-input.cjs.entry.js +181 -0
- package/dist/cjs/ez-popover.cjs.entry.js +156 -0
- package/dist/cjs/ez-popup.cjs.entry.js +66 -0
- package/dist/cjs/ez-radio-button.cjs.entry.js +48 -0
- package/dist/cjs/ez-scroller_3.cjs.entry.js +792 -0
- package/dist/cjs/ez-search.cjs.entry.js +96 -0
- package/dist/cjs/ez-skeleton.cjs.entry.js +67 -0
- package/dist/cjs/ez-tabselector.cjs.entry.js +228 -0
- package/dist/cjs/ez-text-area.cjs.entry.js +179 -0
- package/dist/cjs/ez-text-edit.cjs.entry.js +107 -0
- package/dist/cjs/ez-text-input.cjs.entry.js +247 -0
- package/dist/cjs/ez-time-input.cjs.entry.js +168 -0
- package/dist/cjs/ez-toast.cjs.entry.js +101 -0
- package/dist/cjs/ez-upload.cjs.entry.js +395 -0
- package/dist/cjs/ez-view-stack.cjs.entry.js +86 -0
- package/dist/cjs/ezui.cjs.js +23 -0
- package/dist/cjs/filter-column.cjs.entry.js +151 -0
- package/dist/cjs/index-1064511f.js +2340 -0
- package/dist/cjs/index.cjs.js +2 -0
- package/dist/cjs/loader.cjs.js +22 -0
- package/dist/collection/collection-manifest.json +184 -0
- package/dist/collection/components/assets/actions-sprite.svg +257 -0
- package/dist/collection/components/ez-actions-button/ez-actions-button.css +139 -0
- package/dist/collection/components/ez-actions-button/ez-actions-button.js +440 -0
- package/dist/collection/components/ez-alert/ez-alert.css +76 -0
- package/dist/collection/components/ez-alert/ez-alert.js +53 -0
- package/dist/collection/components/ez-application/ez-application.css +3 -0
- package/dist/collection/components/ez-application/ez-application.js +41 -0
- package/dist/collection/components/ez-badge/enum/sizes.js +9 -0
- package/dist/collection/components/ez-badge/ez-badge.css +165 -0
- package/dist/collection/components/ez-badge/ez-badge.js +211 -0
- package/dist/collection/components/ez-badge/interfaces/IPosition.js +1 -0
- package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.css +66 -0
- package/dist/collection/components/ez-breadcrumb/ez-breadcrumb.js +373 -0
- package/dist/collection/components/ez-breadcrumb/subcomponents/breadcrumb-item.js +20 -0
- package/dist/collection/components/ez-button/ez-button.css +255 -0
- package/dist/collection/components/ez-button/ez-button.js +241 -0
- package/dist/collection/components/ez-calendar/ez-calendar.css +318 -0
- package/dist/collection/components/ez-calendar/ez-calendar.js +439 -0
- package/dist/collection/components/ez-card-item/ez-card-item.css +126 -0
- package/dist/collection/components/ez-card-item/ez-card-item.js +97 -0
- package/dist/collection/components/ez-check/CheckMode.js +5 -0
- package/dist/collection/components/ez-check/ez-check.css +366 -0
- package/dist/collection/components/ez-check/ez-check.js +272 -0
- package/dist/collection/components/ez-chip/ez-chip.css +163 -0
- package/dist/collection/components/ez-chip/ez-chip.js +312 -0
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +254 -0
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +442 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.css +334 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +1125 -0
- package/dist/collection/components/ez-date-input/ez-date-input.css +49 -0
- package/dist/collection/components/ez-date-input/ez-date-input.js +432 -0
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +44 -0
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +504 -0
- package/dist/collection/components/ez-dialog/DialogType.js +7 -0
- package/dist/collection/components/ez-dialog/ez-dialog.css +544 -0
- package/dist/collection/components/ez-dialog/ez-dialog.js +401 -0
- package/dist/collection/components/ez-dropdown/ez-dropdown.css +349 -0
- package/dist/collection/components/ez-dropdown/ez-dropdown.js +356 -0
- package/dist/collection/components/ez-dropdown/structure/DropdownItem.js +30 -0
- package/dist/collection/components/ez-dropdown/structure/SubmenuControl.js +241 -0
- package/dist/collection/components/ez-file-item/ez-file-item.css +125 -0
- package/dist/collection/components/ez-file-item/ez-file-item.js +200 -0
- package/dist/collection/components/ez-filter-input/ez-filter-input.css +4 -0
- package/dist/collection/components/ez-filter-input/ez-filter-input.js +407 -0
- package/dist/collection/components/ez-form/ez-form.css +10 -0
- package/dist/collection/components/ez-form/ez-form.js +237 -0
- package/dist/collection/components/ez-form/store/form.slice.js +42 -0
- package/dist/collection/components/ez-form-view/ez-form-view.css +6 -0
- package/dist/collection/components/ez-form-view/ez-form-view.js +154 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +30 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +11 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +13 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +10 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +11 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +12 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +4 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +4 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +4 -0
- package/dist/collection/components/ez-form-view/interfaces/IFormViewField.js +1 -0
- package/dist/collection/components/ez-form-view/interfaces/index.js +1 -0
- package/dist/collection/components/ez-form-view/structure/index.js +29 -0
- package/dist/collection/components/ez-grid/controller/EzGridController.js +1 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +791 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridUtils.js +8 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +101 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +230 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +88 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/cellRendererStatus.js +43 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/selectionHeader.js +40 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +49 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.js +10 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.js +4 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellEditor.js +1 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +38 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +40 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +20 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +15 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +41 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/i18n/pt-BR.js +75 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js +69 -0
- package/dist/collection/components/ez-grid/ez-grid.css +97 -0
- package/dist/collection/components/ez-grid/ez-grid.js +833 -0
- package/dist/collection/components/ez-grid/interfaces/ISelection.js +1 -0
- package/dist/collection/components/ez-grid/interfaces/ISelectionToastConfig.js +1 -0
- package/dist/collection/components/ez-grid/interfaces/index.js +2 -0
- package/dist/collection/components/ez-grid/subcomponents/filter-column.css +34 -0
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +377 -0
- package/dist/collection/components/ez-grid/subcomponents/selection-counter.js +29 -0
- package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js +78 -0
- package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.css +66 -0
- package/dist/collection/components/ez-guide-navigator/ez-guide-navigator.js +385 -0
- package/dist/collection/components/ez-guide-navigator/interfaces/IGuideItem.js +1 -0
- package/dist/collection/components/ez-guide-navigator/interfaces/index.js +1 -0
- package/dist/collection/components/ez-icon/ez-icon.css +223 -0
- package/dist/collection/components/ez-icon/ez-icon.js +101 -0
- package/dist/collection/components/ez-list/ez-list.css +434 -0
- package/dist/collection/components/ez-list/ez-list.js +911 -0
- package/dist/collection/components/ez-loading-bar/ez-loading-bar.css +85 -0
- package/dist/collection/components/ez-loading-bar/ez-loading-bar.js +74 -0
- package/dist/collection/components/ez-modal/ez-modal.css +369 -0
- package/dist/collection/components/ez-modal/ez-modal.js +239 -0
- package/dist/collection/components/ez-modal-container/ez-modal-container.css +55 -0
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +191 -0
- package/dist/collection/components/ez-modal-container/index.js +2 -0
- package/dist/collection/components/ez-modal-container/modal-action.js +8 -0
- package/dist/collection/components/ez-modal-container/modal-button-status.js +7 -0
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +36 -0
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +338 -0
- package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.js +1 -0
- package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.js +1 -0
- package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.css +18 -0
- package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.js +41 -0
- package/dist/collection/components/ez-number-input/ez-number-input.css +8 -0
- package/dist/collection/components/ez-number-input/ez-number-input.js +457 -0
- package/dist/collection/components/ez-popover/ez-popover.css +42 -0
- package/dist/collection/components/ez-popover/ez-popover.js +365 -0
- package/dist/collection/components/ez-popup/ez-popup.css +418 -0
- package/dist/collection/components/ez-popup/ez-popup.js +180 -0
- package/dist/collection/components/ez-radio-button/ez-radio-button.css +217 -0
- package/dist/collection/components/ez-radio-button/ez-radio-button.js +163 -0
- package/dist/collection/components/ez-scroller/EzScrollDirection.js +6 -0
- package/dist/collection/components/ez-scroller/ez-scroller.css +192 -0
- package/dist/collection/components/ez-scroller/ez-scroller.js +293 -0
- package/dist/collection/components/ez-search/ez-search.css +3 -0
- package/dist/collection/components/ez-search/ez-search.js +462 -0
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +63 -0
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +47 -0
- package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js +1 -0
- package/dist/collection/components/ez-skeleton/ez-skeleton.css +94 -0
- package/dist/collection/components/ez-skeleton/ez-skeleton.js +211 -0
- package/dist/collection/components/ez-tabselector/ez-tabselector.css +149 -0
- package/dist/collection/components/ez-tabselector/ez-tabselector.js +321 -0
- package/dist/collection/components/ez-text-area/ez-text-area.css +242 -0
- package/dist/collection/components/ez-text-area/ez-text-area.js +428 -0
- package/dist/collection/components/ez-text-edit/ez-text-edit.css +19 -0
- package/dist/collection/components/ez-text-edit/ez-text-edit.js +202 -0
- package/dist/collection/components/ez-text-input/ez-text-input.css +301 -0
- package/dist/collection/components/ez-text-input/ez-text-input.js +491 -0
- package/dist/collection/components/ez-time-input/ez-time-input.css +14 -0
- package/dist/collection/components/ez-time-input/ez-time-input.js +412 -0
- package/dist/collection/components/ez-toast/ez-toast.css +167 -0
- package/dist/collection/components/ez-toast/ez-toast.js +209 -0
- package/dist/collection/components/ez-tree/ez-tree.css +159 -0
- package/dist/collection/components/ez-tree/ez-tree.js +696 -0
- package/dist/collection/components/ez-tree/interfaces/ITree.js +1 -0
- package/dist/collection/components/ez-tree/interfaces/ITreeItem.js +1 -0
- package/dist/collection/components/ez-tree/subcomponents/DefaultIconResolver.js +8 -0
- package/dist/collection/components/ez-tree/subcomponents/DefaultTooltipResolver.js +3 -0
- package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +24 -0
- package/dist/collection/components/ez-tree/subcomponents/index.js +2 -0
- package/dist/collection/components/ez-tree/types/Node.js +110 -0
- package/dist/collection/components/ez-tree/types/Tree.js +132 -0
- package/dist/collection/components/ez-upload/RemoteFile.js +94 -0
- package/dist/collection/components/ez-upload/ez-upload.css +582 -0
- package/dist/collection/components/ez-upload/ez-upload.js +587 -0
- package/dist/collection/components/ez-view-stack/ez-view-stack.css +9 -0
- package/dist/collection/components/ez-view-stack/ez-view-stack.js +126 -0
- package/dist/collection/index.js +1 -0
- package/dist/collection/servidor.js +101 -0
- package/dist/collection/setupTests.js +1 -0
- package/dist/collection/utils/ApplicationUtils.js +94 -0
- package/dist/collection/utils/AssetsUtils.js +19 -0
- package/dist/collection/utils/CSSVarsUtils.js +73 -0
- package/dist/collection/utils/constants.js +3 -0
- package/dist/collection/utils/form/DataBinder.js +287 -0
- package/dist/collection/utils/form/FormMetadata.js +176 -0
- package/dist/collection/utils/form/index.js +2 -0
- package/dist/collection/utils/form/interfaces/IDefaultConfig.js +1 -0
- package/dist/collection/utils/form/interfaces/IFormCardConfig.js +1 -0
- package/dist/collection/utils/form/interfaces/IFormConfig.js +1 -0
- package/dist/collection/utils/form/interfaces/IFormSheetMetadata.js +1 -0
- package/dist/collection/utils/form/interfaces/ISummaryField.js +1 -0
- package/dist/collection/utils/form/interfaces/ITabConfig.js +1 -0
- package/dist/collection/utils/form/interfaces/index.js +1 -0
- package/dist/collection/utils/index.js +6 -0
- package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +21 -0
- package/dist/collection/utils/interfaces/IFieldConfig.js +1 -0
- package/dist/collection/utils/mock/ez-upload-mock.js +30 -0
- package/dist/collection/utils/utils.js +6 -0
- package/dist/collection/utils/validators/recordvalidator/IInvalidField.js +1 -0
- package/dist/collection/utils/validators/recordvalidator/IRecordValidator.js +1 -0
- package/dist/collection/utils/validators/recordvalidator/IValidationResult.js +1 -0
- package/dist/collection/utils/validators/recordvalidator/IValidationSource.js +1 -0
- package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +74 -0
- package/dist/custom-elements/index.d.ts +321 -0
- package/dist/custom-elements/index.js +129655 -0
- package/dist/esm/ApplicationUtils-d9a34a16.js +160 -0
- package/dist/esm/CSSVarsUtils-a97cfa29.js +75 -0
- package/dist/esm/CheckMode-bdb2ec19.js +7 -0
- package/dist/esm/DialogType-54a62731.js +9 -0
- package/dist/esm/EzScrollDirection-2df26c93.js +8 -0
- package/dist/esm/RecordValidationProcessor-abc814af.js +99 -0
- package/dist/esm/constants-6dab64f7.js +4 -0
- package/dist/esm/ez-actions-button.entry.js +208 -0
- package/dist/esm/ez-alert.entry.js +26 -0
- package/dist/esm/ez-application.entry.js +22 -0
- package/dist/esm/ez-badge.entry.js +116 -0
- package/dist/esm/ez-breadcrumb.entry.js +281 -0
- package/dist/esm/ez-button.entry.js +83 -0
- package/dist/esm/ez-calendar.entry.js +234 -0
- package/dist/esm/ez-card-item.entry.js +48 -0
- package/dist/esm/ez-check.entry.js +91 -0
- package/dist/esm/ez-chip.entry.js +112 -0
- package/dist/esm/ez-collapsible-box.entry.js +129 -0
- package/dist/esm/ez-combo-box.entry.js +686 -0
- package/dist/esm/ez-date-input.entry.js +184 -0
- package/dist/esm/ez-date-time-input.entry.js +238 -0
- package/dist/esm/ez-dialog.entry.js +176 -0
- package/dist/esm/ez-dropdown.entry.js +511 -0
- package/dist/esm/ez-file-item.entry.js +70 -0
- package/dist/esm/ez-filter-input_2.entry.js +132 -0
- package/dist/esm/ez-form-view.entry.js +187 -0
- package/dist/esm/ez-form.entry.js +929 -0
- package/dist/esm/ez-grid.entry.js +120834 -0
- package/dist/esm/ez-guide-navigator.entry.js +92 -0
- package/dist/esm/ez-icon.entry.js +40 -0
- package/dist/esm/ez-list.entry.js +554 -0
- package/dist/esm/ez-loading-bar.entry.js +28 -0
- package/dist/esm/ez-modal-container.entry.js +60 -0
- package/dist/esm/ez-modal.entry.js +68 -0
- package/dist/esm/ez-multi-selection-list.entry.js +179 -0
- package/dist/esm/ez-number-input.entry.js +177 -0
- package/dist/esm/ez-popover.entry.js +152 -0
- package/dist/esm/ez-popup.entry.js +62 -0
- package/dist/esm/ez-radio-button.entry.js +44 -0
- package/dist/esm/ez-scroller_3.entry.js +786 -0
- package/dist/esm/ez-search.entry.js +92 -0
- package/dist/esm/ez-skeleton.entry.js +63 -0
- package/dist/esm/ez-tabselector.entry.js +224 -0
- package/dist/esm/ez-text-area.entry.js +175 -0
- package/dist/esm/ez-text-edit.entry.js +103 -0
- package/dist/esm/ez-text-input.entry.js +243 -0
- package/dist/esm/ez-time-input.entry.js +164 -0
- package/dist/esm/ez-toast.entry.js +97 -0
- package/dist/esm/ez-upload.entry.js +391 -0
- package/dist/esm/ez-view-stack.entry.js +82 -0
- package/dist/esm/ezui.js +18 -0
- package/dist/esm/filter-column.entry.js +147 -0
- package/dist/esm/index-296b8458.js +2309 -0
- package/dist/esm/index.js +1 -0
- package/dist/esm/loader.js +18 -0
- package/dist/esm/polyfills/core-js.js +11 -0
- package/dist/esm/polyfills/css-shim.js +1 -0
- package/dist/esm/polyfills/dom.js +79 -0
- package/dist/esm/polyfills/es5-html-element.js +1 -0
- package/dist/esm/polyfills/index.js +34 -0
- package/dist/esm/polyfills/system.js +6 -0
- package/dist/ezui/ezui.esm.js +1 -0
- package/dist/ezui/index.esm.js +0 -0
- package/dist/ezui/p-028f264f.entry.js +1 -0
- package/dist/ezui/p-050247dc.entry.js +1 -0
- package/dist/ezui/p-061f4d73.entry.js +1 -0
- package/dist/ezui/p-1e7c4986.entry.js +1 -0
- package/dist/ezui/p-244dfe8a.entry.js +1 -0
- package/dist/ezui/p-25562cf8.entry.js +1 -0
- package/dist/ezui/p-27a01a26.js +1 -0
- package/dist/ezui/p-2da09f70.entry.js +1 -0
- package/dist/ezui/p-32b4163f.entry.js +1 -0
- package/dist/ezui/p-37673563.entry.js +1 -0
- package/dist/ezui/p-391de0e4.entry.js +1 -0
- package/dist/ezui/p-5ce6548c.entry.js +1 -0
- package/dist/ezui/p-5cef0264.entry.js +1 -0
- package/dist/ezui/p-5d6f2550.entry.js +1 -0
- package/dist/ezui/p-5e55a42b.entry.js +1 -0
- package/dist/ezui/p-60ba28ea.entry.js +1 -0
- package/dist/ezui/p-68352e41.entry.js +1 -0
- package/dist/ezui/p-6ab2f7c2.entry.js +1 -0
- package/dist/ezui/p-7525e604.entry.js +1 -0
- package/dist/ezui/p-7526f2b6.entry.js +1 -0
- package/dist/ezui/p-7eb3e1a5.js +1 -0
- package/dist/ezui/p-83885b21.entry.js +1 -0
- package/dist/ezui/p-86a2036d.js +1 -0
- package/dist/ezui/p-87e85160.entry.js +1 -0
- package/dist/ezui/p-8bd3903b.entry.js +1 -0
- package/dist/ezui/p-8fdff9cd.entry.js +1 -0
- package/dist/ezui/p-9285b53e.entry.js +1 -0
- package/dist/ezui/p-95426f93.entry.js +1 -0
- package/dist/ezui/p-964e5571.entry.js +304 -0
- package/dist/ezui/p-98bb8b16.js +1 -0
- package/dist/ezui/p-9b347f04.entry.js +1 -0
- package/dist/ezui/p-a01068e1.entry.js +1 -0
- package/dist/ezui/p-a510a4c5.entry.js +1 -0
- package/dist/ezui/p-a5e09759.entry.js +1 -0
- package/dist/ezui/p-ab574d59.js +1 -0
- package/dist/ezui/p-b11f035c.entry.js +1 -0
- package/dist/ezui/p-b853763b.js +1 -0
- package/dist/ezui/p-c49dbf23.entry.js +1 -0
- package/dist/ezui/p-ccb4ccd9.entry.js +1 -0
- package/dist/ezui/p-cd19a6f8.entry.js +1 -0
- package/dist/ezui/p-ce035beb.entry.js +1 -0
- package/dist/ezui/p-d43b22f3.entry.js +1 -0
- package/dist/ezui/p-d51aa09b.entry.js +1 -0
- package/dist/ezui/p-db528b31.entry.js +1 -0
- package/dist/ezui/p-e2dfd935.entry.js +1 -0
- package/dist/ezui/p-e318d280.js +2 -0
- package/dist/ezui/p-e67d0bd5.entry.js +1 -0
- package/dist/ezui/p-e7fa0ad6.entry.js +1 -0
- package/dist/ezui/p-f15ec3bb.js +1 -0
- package/dist/ezui/p-f4208819.entry.js +1 -0
- package/dist/ezui/p-fa571a4e.entry.js +1 -0
- package/dist/ezui/p-ff82b176.entry.js +1 -0
- package/dist/index.cjs.js +1 -0
- package/dist/index.js +1 -0
- package/dist/types/components/ez-actions-button/ez-actions-button.d.ts +82 -0
- package/dist/types/components/ez-alert/ez-alert.d.ts +10 -0
- package/dist/types/components/ez-application/ez-application.d.ts +10 -0
- package/dist/types/components/ez-badge/enum/sizes.d.ts +8 -0
- package/dist/types/components/ez-badge/ez-badge.d.ts +35 -0
- package/dist/types/components/ez-badge/interfaces/IPosition.d.ts +4 -0
- package/dist/types/components/ez-breadcrumb/ez-breadcrumb.d.ts +71 -0
- package/dist/types/components/ez-breadcrumb/subcomponents/breadcrumb-item.d.ts +13 -0
- package/dist/types/components/ez-button/ez-button.d.ts +41 -0
- package/dist/types/components/ez-calendar/ez-calendar.d.ts +74 -0
- package/dist/types/components/ez-card-item/ez-card-item.d.ts +32 -0
- package/dist/types/components/ez-check/CheckMode.d.ts +4 -0
- package/dist/types/components/ez-check/ez-check.d.ts +49 -0
- package/dist/types/components/ez-chip/ez-chip.d.ts +60 -0
- package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +91 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +182 -0
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +72 -0
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +80 -0
- package/dist/types/components/ez-dialog/DialogType.d.ts +6 -0
- package/dist/types/components/ez-dialog/ez-dialog.d.ts +82 -0
- package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +60 -0
- package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +28 -0
- package/dist/types/components/ez-dropdown/structure/SubmenuControl.d.ts +78 -0
- package/dist/types/components/ez-file-item/ez-file-item.d.ts +36 -0
- package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +77 -0
- package/dist/types/components/ez-form/ez-form.d.ts +47 -0
- package/dist/types/components/ez-form/store/form.slice.d.ts +27 -0
- package/dist/types/components/ez-form-view/ez-form-view.d.ts +22 -0
- package/dist/types/components/ez-form-view/fieldbuilder/FieldBuilder.d.ts +2 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.d.ts +3 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.d.ts +2 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +4 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.d.ts +2 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.d.ts +3 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +2 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.d.ts +2 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +2 -0
- package/dist/types/components/ez-form-view/interfaces/IFormViewField.d.ts +3 -0
- package/dist/types/components/ez-form-view/interfaces/index.d.ts +1 -0
- package/dist/types/components/ez-form-view/structure/index.d.ts +14 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +287 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +89 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridUtils.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +20 -0
- package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +38 -0
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +32 -0
- package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +11 -0
- package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +12 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +10 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/GridEditorUtils.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/IEditorMetadata.d.ts +9 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +10 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.d.ts +4 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.d.ts +5 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.d.ts +4 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.d.ts +3 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.d.ts +4 -0
- package/dist/types/components/ez-grid/controller/ag-grid/i18n/pt-BR.d.ts +2 -0
- package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +8 -0
- package/dist/types/components/ez-grid/ez-grid.d.ts +139 -0
- package/dist/types/components/ez-grid/interfaces/ISelection.d.ts +3 -0
- package/dist/types/components/ez-grid/interfaces/ISelectionToastConfig.d.ts +3 -0
- package/dist/types/components/ez-grid/interfaces/index.d.ts +2 -0
- package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +57 -0
- package/dist/types/components/ez-grid/subcomponents/selection-counter.d.ts +15 -0
- package/dist/types/components/ez-grid/utils/InMemoryFilterColumnDataSource.d.ts +16 -0
- package/dist/types/components/ez-guide-navigator/ez-guide-navigator.d.ts +64 -0
- package/dist/types/components/ez-guide-navigator/interfaces/IGuideItem.d.ts +4 -0
- package/dist/types/components/ez-guide-navigator/interfaces/index.d.ts +1 -0
- package/dist/types/components/ez-icon/ez-icon.d.ts +20 -0
- package/dist/types/components/ez-list/ez-list.d.ts +133 -0
- package/dist/types/components/ez-loading-bar/ez-loading-bar.d.ts +12 -0
- package/dist/types/components/ez-modal/ez-modal.d.ts +53 -0
- package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +47 -0
- package/dist/types/components/ez-modal-container/index.d.ts +2 -0
- package/dist/types/components/ez-modal-container/modal-action.d.ts +7 -0
- package/dist/types/components/ez-modal-container/modal-button-status.d.ts +6 -0
- package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +68 -0
- package/dist/types/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.d.ts +4 -0
- package/dist/types/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.d.ts +4 -0
- package/dist/types/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.d.ts +4 -0
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +81 -0
- package/dist/types/components/ez-popover/ez-popover.d.ts +60 -0
- package/dist/types/components/ez-popup/ez-popup.d.ts +37 -0
- package/dist/types/components/ez-radio-button/ez-radio-button.d.ts +37 -0
- package/dist/types/components/ez-scroller/EzScrollDirection.d.ts +5 -0
- package/dist/types/components/ez-scroller/ez-scroller.d.ts +38 -0
- package/dist/types/components/ez-search/ez-search.d.ts +84 -0
- package/dist/types/components/ez-sidebar-button/ez-sidebar-button.d.ts +11 -0
- package/dist/types/components/ez-skeleton/ez-skeleton.constants.d.ts +1 -0
- package/dist/types/components/ez-skeleton/ez-skeleton.d.ts +54 -0
- package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +52 -0
- package/dist/types/components/ez-text-area/ez-text-area.d.ts +78 -0
- package/dist/types/components/ez-text-edit/ez-text-edit.d.ts +41 -0
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +82 -0
- package/dist/types/components/ez-time-input/ez-time-input.d.ts +74 -0
- package/dist/types/components/ez-toast/ez-toast.d.ts +45 -0
- package/dist/types/components/ez-tree/ez-tree.d.ts +101 -0
- package/dist/types/components/ez-tree/interfaces/ITree.d.ts +5 -0
- package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +11 -0
- package/dist/types/components/ez-tree/subcomponents/DefaultIconResolver.d.ts +2 -0
- package/dist/types/components/ez-tree/subcomponents/DefaultTooltipResolver.d.ts +2 -0
- package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +15 -0
- package/dist/types/components/ez-tree/subcomponents/index.d.ts +2 -0
- package/dist/types/components/ez-tree/types/Node.d.ts +22 -0
- package/dist/types/components/ez-tree/types/Tree.d.ts +21 -0
- package/dist/types/components/ez-upload/RemoteFile.d.ts +14 -0
- package/dist/types/components/ez-upload/ez-upload.d.ts +101 -0
- package/dist/types/components/ez-view-stack/ez-view-stack.d.ts +25 -0
- package/dist/types/components.d.ts +3464 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/stencil-public-runtime.d.ts +1637 -0
- package/dist/types/utils/ApplicationUtils.d.ts +31 -0
- package/dist/types/utils/AssetsUtils.d.ts +1 -0
- package/dist/types/utils/CSSVarsUtils.d.ts +6 -0
- package/dist/types/utils/constants.d.ts +3 -0
- package/dist/types/utils/form/DataBinder.d.ts +30 -0
- package/dist/types/utils/form/FormMetadata.d.ts +23 -0
- package/dist/types/utils/form/index.d.ts +2 -0
- package/dist/types/utils/form/interfaces/IDefaultConfig.d.ts +5 -0
- package/dist/types/utils/form/interfaces/IFormCardConfig.d.ts +5 -0
- package/dist/types/utils/form/interfaces/IFormConfig.d.ts +13 -0
- package/dist/types/utils/form/interfaces/IFormSheetMetadata.d.ts +6 -0
- package/dist/types/utils/form/interfaces/ISummaryField.d.ts +4 -0
- package/dist/types/utils/form/interfaces/ITabConfig.d.ts +6 -0
- package/dist/types/utils/form/interfaces/index.d.ts +10 -0
- package/dist/types/utils/index.d.ts +6 -0
- package/dist/types/utils/interfaces/AbstractFieldMetadata.d.ts +17 -0
- package/dist/types/utils/interfaces/IFieldConfig.d.ts +13 -0
- package/dist/types/utils/utils.d.ts +2 -0
- package/dist/types/utils/validators/recordvalidator/IInvalidField.d.ts +4 -0
- package/dist/types/utils/validators/recordvalidator/IRecordValidator.d.ts +5 -0
- package/dist/types/utils/validators/recordvalidator/IValidationResult.d.ts +8 -0
- package/dist/types/utils/validators/recordvalidator/IValidationSource.d.ts +6 -0
- package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +13 -0
- package/loader/cdn.js +3 -0
- package/loader/index.cjs.js +3 -0
- package/loader/index.d.ts +21 -0
- package/loader/index.es2017.js +3 -0
- package/loader/index.js +4 -0
- package/loader/package.json +11 -0
- package/package.json +93 -0
- package/react/.keepfolder +0 -0
- package/react/components.d.ts +48 -0
- package/react/components.js +52 -0
- package/react/components.js.map +1 -0
- package/react/react-component-lib/createComponent.d.ts +10 -0
- package/react/react-component-lib/createComponent.js +59 -0
- package/react/react-component-lib/createComponent.js.map +1 -0
- package/react/react-component-lib/createOverlayComponent.d.ts +20 -0
- package/react/react-component-lib/createOverlayComponent.js +89 -0
- package/react/react-component-lib/createOverlayComponent.js.map +1 -0
- package/react/react-component-lib/index.d.ts +2 -0
- package/react/react-component-lib/index.js +3 -0
- package/react/react-component-lib/index.js.map +1 -0
- package/react/react-component-lib/interfaces.d.ts +29 -0
- package/react/react-component-lib/interfaces.js +1 -0
- package/react/react-component-lib/interfaces.js.map +1 -0
- package/react/react-component-lib/utils/attachProps.d.ts +12 -0
- package/react/react-component-lib/utils/attachProps.js +96 -0
- package/react/react-component-lib/utils/attachProps.js.map +1 -0
- package/react/react-component-lib/utils/case.d.ts +2 -0
- package/react/react-component-lib/utils/case.js +7 -0
- package/react/react-component-lib/utils/case.js.map +1 -0
- package/react/react-component-lib/utils/dev.d.ts +2 -0
- package/react/react-component-lib/utils/dev.js +13 -0
- package/react/react-component-lib/utils/dev.js.map +1 -0
- package/react/react-component-lib/utils/index.d.ts +7 -0
- package/react/react-component-lib/utils/index.js +21 -0
- package/react/react-component-lib/utils/index.js.map +1 -0
|
@@ -0,0 +1,1125 @@
|
|
|
1
|
+
import { ElementIDUtils, FloatingManager, ObjectUtils, StringUtils } from "@sankhyalabs/core";
|
|
2
|
+
import { h, Host } from "@stencil/core";
|
|
3
|
+
import { ApplicationUtils, CSSVarsUtils } from "../../utils";
|
|
4
|
+
import { REQUIRED_INFO } from "../../utils/constants";
|
|
5
|
+
export class EzComboBox {
|
|
6
|
+
constructor() {
|
|
7
|
+
this._changeDeboucingTimeout = null;
|
|
8
|
+
this._limitCharsToSearch = 3;
|
|
9
|
+
this._deboucingTime = 300;
|
|
10
|
+
this._maxWidthValue = 0;
|
|
11
|
+
this._tabPressed = false;
|
|
12
|
+
this._textEmptyList = "Nenhum resultado encontrado";
|
|
13
|
+
this._textEmptySearch = "Nenhum resultado de {0} encontrado";
|
|
14
|
+
this._lookupMode = false;
|
|
15
|
+
this._preSelection = undefined;
|
|
16
|
+
this._visibleOptions = undefined;
|
|
17
|
+
this._startLoading = false;
|
|
18
|
+
this._showLoading = true;
|
|
19
|
+
this._criteria = undefined;
|
|
20
|
+
this.value = undefined;
|
|
21
|
+
this.label = undefined;
|
|
22
|
+
this.enabled = true;
|
|
23
|
+
this.options = undefined;
|
|
24
|
+
this.errorMessage = undefined;
|
|
25
|
+
this.searchMode = undefined;
|
|
26
|
+
this.showSelectedValue = false;
|
|
27
|
+
this.showOptionValue = false;
|
|
28
|
+
this.suppressSearch = false;
|
|
29
|
+
this.optionLoader = undefined;
|
|
30
|
+
this.suppressEmptyOption = false;
|
|
31
|
+
this.canShowError = true;
|
|
32
|
+
this.mode = "regular";
|
|
33
|
+
this.hideErrorOnFocusOut = true;
|
|
34
|
+
this.listOptionsPosition = undefined;
|
|
35
|
+
this.isTextSearch = false;
|
|
36
|
+
}
|
|
37
|
+
observeErrorMessage() {
|
|
38
|
+
var _a;
|
|
39
|
+
if (this._textInput) {
|
|
40
|
+
this._textInput.errorMessage = this.errorMessage;
|
|
41
|
+
if (!((_a = this.errorMessage) === null || _a === void 0 ? void 0 : _a.trim())) {
|
|
42
|
+
this.setInputValue();
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
observeValue(newValue, oldValue) {
|
|
47
|
+
if (this._textInput && newValue != oldValue) {
|
|
48
|
+
try {
|
|
49
|
+
if (this.searchMode && typeof newValue === "string") {
|
|
50
|
+
this.setInputValue();
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const newValueSelected = this.getSelectedOption(newValue);
|
|
54
|
+
const oldValueSelected = this.getSelectedOption(oldValue);
|
|
55
|
+
const currentValue = this.getSelectedOption(this.value);
|
|
56
|
+
if (this.isDifferentValues(currentValue, newValueSelected)) {
|
|
57
|
+
this.value = newValueSelected;
|
|
58
|
+
}
|
|
59
|
+
if (this.isDifferentValues(newValueSelected, oldValueSelected)) {
|
|
60
|
+
this.setInputValue();
|
|
61
|
+
const valueEmitted = newValueSelected === null ? undefined : newValueSelected;
|
|
62
|
+
if (!this._lookupMode) {
|
|
63
|
+
this.ezChange.emit(valueEmitted);
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
this.resetOptions();
|
|
67
|
+
}
|
|
68
|
+
finally {
|
|
69
|
+
this._lookupMode = false;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
observeOptions(newOptions, oldOptions) {
|
|
74
|
+
if ((newOptions === null || newOptions === void 0 ? void 0 : newOptions.join('')) === (oldOptions === null || oldOptions === void 0 ? void 0 : oldOptions.join('')))
|
|
75
|
+
return;
|
|
76
|
+
this.loadOptions(SearchMode.PRELOAD);
|
|
77
|
+
}
|
|
78
|
+
/*
|
|
79
|
+
* Retorna uma promise com o valor da opção selecionada,
|
|
80
|
+
* que será resolvida quando o backend devolver este dado.
|
|
81
|
+
*/
|
|
82
|
+
async getValueAsync() {
|
|
83
|
+
if (!this._showLoading) {
|
|
84
|
+
return new Promise(resolve => resolve(this.value));
|
|
85
|
+
}
|
|
86
|
+
return new Promise(resolve => {
|
|
87
|
+
let id = setInterval(() => {
|
|
88
|
+
if (!this._showLoading) {
|
|
89
|
+
clearInterval(id);
|
|
90
|
+
resolve(this.value);
|
|
91
|
+
}
|
|
92
|
+
}, 100);
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
/**
|
|
96
|
+
* Aplica o foco no campo.
|
|
97
|
+
*/
|
|
98
|
+
async setFocus() {
|
|
99
|
+
if (this._textInput) {
|
|
100
|
+
this._textInput.setFocus();
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Remove o foco do campo.
|
|
105
|
+
*/
|
|
106
|
+
async setBlur() {
|
|
107
|
+
if (this._textInput) {
|
|
108
|
+
this._textInput.setBlur();
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Retorna se o conteúdo é inválido.
|
|
113
|
+
*/
|
|
114
|
+
async isInvalid() {
|
|
115
|
+
return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Limpa o valor do campo de pesquisa
|
|
119
|
+
*/
|
|
120
|
+
async clearValue() {
|
|
121
|
+
this.clearSearch();
|
|
122
|
+
}
|
|
123
|
+
scrollListener() {
|
|
124
|
+
var _a;
|
|
125
|
+
if (this._floatingID == undefined) {
|
|
126
|
+
return;
|
|
127
|
+
}
|
|
128
|
+
if ((_a = this.listOptionsPosition) === null || _a === void 0 ? void 0 : _a.hardPosition) {
|
|
129
|
+
this.hideOptions();
|
|
130
|
+
}
|
|
131
|
+
else {
|
|
132
|
+
window.requestAnimationFrame(() => {
|
|
133
|
+
this.updateListPosition();
|
|
134
|
+
});
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
updateListPosition() {
|
|
138
|
+
let { verticalPosition, horizontalPosition, fromBottom, fromRight, bottomLimit, hardPosition } = this.getListPosition();
|
|
139
|
+
const elementRect = this._listWrapper.getBoundingClientRect();
|
|
140
|
+
const containerRect = this._listContainer.getBoundingClientRect();
|
|
141
|
+
const textInputRect = this._textInput.getBoundingClientRect();
|
|
142
|
+
const limitHeight = bottomLimit || window.innerHeight;
|
|
143
|
+
const neededHeight = containerRect.bottom + elementRect.height;
|
|
144
|
+
if (!fromBottom && (elementRect.top < 0 || neededHeight > limitHeight)) {
|
|
145
|
+
fromBottom = true;
|
|
146
|
+
}
|
|
147
|
+
if (!hardPosition) {
|
|
148
|
+
verticalPosition = verticalPosition || 0;
|
|
149
|
+
horizontalPosition = horizontalPosition || 0;
|
|
150
|
+
if (fromBottom) {
|
|
151
|
+
verticalPosition = window.innerHeight - textInputRect.top + verticalPosition;
|
|
152
|
+
}
|
|
153
|
+
else {
|
|
154
|
+
verticalPosition += containerRect.top;
|
|
155
|
+
}
|
|
156
|
+
if (fromRight) {
|
|
157
|
+
horizontalPosition = window.innerWidth - textInputRect.right + horizontalPosition;
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
horizontalPosition += containerRect.left;
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
if (verticalPosition != undefined) {
|
|
164
|
+
this._listWrapper.style[fromBottom ? "bottom" : "top"] = `${verticalPosition}px`;
|
|
165
|
+
this._listWrapper.style[fromBottom ? "top" : "bottom"] = "";
|
|
166
|
+
}
|
|
167
|
+
if (horizontalPosition != undefined) {
|
|
168
|
+
this._listWrapper.style[fromRight ? "right" : "left"] = `${horizontalPosition}px`;
|
|
169
|
+
this._listWrapper.style[fromRight ? "left" : "right"] = "";
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
getListPosition() {
|
|
173
|
+
if (this.listOptionsPosition) {
|
|
174
|
+
return this.listOptionsPosition;
|
|
175
|
+
}
|
|
176
|
+
return {
|
|
177
|
+
verticalPosition: (this.errorMessage || !this.canShowError || this.mode === "slim") ? 6 : -13
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
isDifferentValues(firstValue, secondValue) {
|
|
181
|
+
return ObjectUtils.objectToString(firstValue || {}) !== ObjectUtils.objectToString(secondValue || {});
|
|
182
|
+
}
|
|
183
|
+
getFormattedText(currentValue) {
|
|
184
|
+
if (currentValue == undefined) {
|
|
185
|
+
return;
|
|
186
|
+
}
|
|
187
|
+
if (!this.showSelectedValue || currentValue.value == undefined) {
|
|
188
|
+
return currentValue.label;
|
|
189
|
+
}
|
|
190
|
+
return currentValue.label ? `${currentValue.value} - ${currentValue.label}` : currentValue.value;
|
|
191
|
+
}
|
|
192
|
+
getText() {
|
|
193
|
+
const currentValue = this.getSelectedOption(this.value);
|
|
194
|
+
const text = this.getFormattedText(currentValue);
|
|
195
|
+
if (text == undefined) {
|
|
196
|
+
return;
|
|
197
|
+
}
|
|
198
|
+
return String(text)
|
|
199
|
+
.replace(/&/g, '&')
|
|
200
|
+
.replace(/</g, '<')
|
|
201
|
+
.replace(/>/g, '>')
|
|
202
|
+
.replace(/"/g, '"');
|
|
203
|
+
}
|
|
204
|
+
getSelectedOption(value) {
|
|
205
|
+
if (typeof value === "string" || value instanceof String) {
|
|
206
|
+
return this._visibleOptions.find(o => o.value === value);
|
|
207
|
+
}
|
|
208
|
+
return value;
|
|
209
|
+
}
|
|
210
|
+
updateVisibleOptions() {
|
|
211
|
+
let opts = this._source || [];
|
|
212
|
+
if (!this.searchMode && this._criteria) {
|
|
213
|
+
const upperCriteria = this._criteria.toUpperCase();
|
|
214
|
+
opts = opts.filter(opt => opt.label.toLocaleUpperCase().indexOf(upperCriteria) > -1);
|
|
215
|
+
}
|
|
216
|
+
if (this.suppressEmptyOption) {
|
|
217
|
+
this._visibleOptions = opts;
|
|
218
|
+
}
|
|
219
|
+
else {
|
|
220
|
+
this._visibleOptions = [{ value: undefined, label: "" }].concat(opts);
|
|
221
|
+
}
|
|
222
|
+
this._maxWidthValue = this.getMaxWidthValue();
|
|
223
|
+
}
|
|
224
|
+
getMaxWidthValue() {
|
|
225
|
+
var _a;
|
|
226
|
+
if (this.showOptionValue) {
|
|
227
|
+
const arrValues = [];
|
|
228
|
+
(_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.forEach(opt => {
|
|
229
|
+
const widthValue = this.getWidthValue(opt.value);
|
|
230
|
+
if (!arrValues.includes(widthValue)) {
|
|
231
|
+
arrValues.push(widthValue);
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
return arrValues.length > 1 ? Math.max(...arrValues) : 0;
|
|
235
|
+
}
|
|
236
|
+
return 0;
|
|
237
|
+
}
|
|
238
|
+
getWidthValue(value) {
|
|
239
|
+
if (this._itemValueBasis != undefined) {
|
|
240
|
+
const span = this._itemValueBasis;
|
|
241
|
+
if (value != undefined) {
|
|
242
|
+
span.innerHTML = value;
|
|
243
|
+
return span.clientWidth > 0 ? (span.clientWidth + 2) : 0;
|
|
244
|
+
}
|
|
245
|
+
else {
|
|
246
|
+
span.innerHTML = "";
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
return 0;
|
|
250
|
+
}
|
|
251
|
+
buildItem(opt, index) {
|
|
252
|
+
const widthValue = this.showOptionValue && this._maxWidthValue > 0 ? `${this._maxWidthValue}px` : '';
|
|
253
|
+
opt.label = opt.label || opt.value;
|
|
254
|
+
return h("li", { class: index === this._preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.selectOption(opt), onMouseOver: () => this._preSelection = index }, this.showOptionValue
|
|
255
|
+
? h("span", { class: "item__value", title: opt.value, style: { width: widthValue, minWidth: widthValue, maxWidth: widthValue } }, opt.value)
|
|
256
|
+
: undefined, h("span", { class: "item__label " + (this.showOptionValue ? "item__label--bold" : ""), title: opt.label }, opt.label));
|
|
257
|
+
}
|
|
258
|
+
showOptions() {
|
|
259
|
+
if (!this.enabled)
|
|
260
|
+
return;
|
|
261
|
+
if (this.isOptionsVisible()) {
|
|
262
|
+
return;
|
|
263
|
+
}
|
|
264
|
+
if (!!this._resizeObserver)
|
|
265
|
+
this._resizeObserver.observe(this._textInput);
|
|
266
|
+
this._floatingID = FloatingManager.float(this._listWrapper, this._listContainer, { autoClose: true, isFixed: true, backClickListener: () => this.hideOptions() });
|
|
267
|
+
this.setFocus();
|
|
268
|
+
window.requestAnimationFrame(() => {
|
|
269
|
+
this.updateListPosition();
|
|
270
|
+
if (!this.listOptionsPosition) {
|
|
271
|
+
this._listWrapper.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
hideOptions() {
|
|
276
|
+
if (this._floatingID !== undefined) {
|
|
277
|
+
FloatingManager.close(this._floatingID);
|
|
278
|
+
}
|
|
279
|
+
this._floatingID = undefined;
|
|
280
|
+
if (!!this._resizeObserver)
|
|
281
|
+
this._resizeObserver.unobserve(this._textInput);
|
|
282
|
+
}
|
|
283
|
+
isOptionsVisible() {
|
|
284
|
+
return this._floatingID !== undefined && FloatingManager.isFloating(this._floatingID);
|
|
285
|
+
}
|
|
286
|
+
nextOption() {
|
|
287
|
+
if (this.searchMode && !this.isOptionsVisible()) {
|
|
288
|
+
return;
|
|
289
|
+
}
|
|
290
|
+
this.showOptions();
|
|
291
|
+
this._preSelection = this._preSelection === undefined ? 0 : Math.min(this._preSelection + 1, this._visibleOptions.length - 1);
|
|
292
|
+
this.scrollToOption(this._visibleOptions[this._preSelection]);
|
|
293
|
+
}
|
|
294
|
+
previousOption() {
|
|
295
|
+
this._preSelection = this._preSelection === undefined ? 0 : Math.max(this._preSelection - 1, 0);
|
|
296
|
+
this.scrollToOption(this._visibleOptions[this._preSelection]);
|
|
297
|
+
}
|
|
298
|
+
scrollToOption(opt) {
|
|
299
|
+
window.requestAnimationFrame(() => {
|
|
300
|
+
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`li#item_${opt.value.replace(/[<>\[\]#=]/g, '\\$&').replace(/:/g, '\\:')}`) : undefined;
|
|
301
|
+
if (liElem)
|
|
302
|
+
liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
selectCurrentOption() {
|
|
306
|
+
if (this._preSelection !== undefined) {
|
|
307
|
+
this.selectOption(this._visibleOptions[this._preSelection]);
|
|
308
|
+
this._preSelection = undefined;
|
|
309
|
+
}
|
|
310
|
+
else {
|
|
311
|
+
this.controlListWithOnlyOne();
|
|
312
|
+
}
|
|
313
|
+
}
|
|
314
|
+
updateSource(source) {
|
|
315
|
+
this._startLoading = false;
|
|
316
|
+
if (source instanceof Promise) {
|
|
317
|
+
this._showLoading = true;
|
|
318
|
+
source.then(result => {
|
|
319
|
+
this._showLoading = false;
|
|
320
|
+
this.updateSource(result);
|
|
321
|
+
}).catch(() => this._showLoading = false);
|
|
322
|
+
this.updateVisibleOptions();
|
|
323
|
+
}
|
|
324
|
+
else {
|
|
325
|
+
this._showLoading = false;
|
|
326
|
+
if (Array.isArray(source)) {
|
|
327
|
+
this._source = source;
|
|
328
|
+
this.updateVisibleOptions();
|
|
329
|
+
if (this._tabPressed) {
|
|
330
|
+
this._tabPressed = false;
|
|
331
|
+
this.controlEmptySearch();
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
else {
|
|
335
|
+
this.selectOption(source);
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
clearSource() {
|
|
340
|
+
this._source = [];
|
|
341
|
+
this.updateVisibleOptions();
|
|
342
|
+
}
|
|
343
|
+
selectOption(newOption) {
|
|
344
|
+
var _a, _b;
|
|
345
|
+
const currentValue = this.getSelectedOption(this.value);
|
|
346
|
+
if ((((_a = currentValue === null || currentValue === void 0 ? void 0 : currentValue.value) === null || _a === void 0 ? void 0 : _a.toString()) !== ((_b = newOption === null || newOption === void 0 ? void 0 : newOption.value) === null || _b === void 0 ? void 0 : _b.toString()))
|
|
347
|
+
|| (currentValue == undefined && newOption != undefined && "value" in newOption)) {
|
|
348
|
+
const adjustedOpt = !(newOption === null || newOption === void 0 ? void 0 : newOption.value) ? undefined : newOption;
|
|
349
|
+
this.value = adjustedOpt;
|
|
350
|
+
}
|
|
351
|
+
else {
|
|
352
|
+
this.resetOptions();
|
|
353
|
+
}
|
|
354
|
+
if (this.searchMode) {
|
|
355
|
+
this._visibleOptions = [];
|
|
356
|
+
this.clearSource();
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
loadOptions(mode, argument = "") {
|
|
360
|
+
this._criteria = argument;
|
|
361
|
+
this._startLoading = true;
|
|
362
|
+
if (this.optionLoader) {
|
|
363
|
+
const searchArgument = { mode, argument };
|
|
364
|
+
this.updateSource(this.optionLoader(searchArgument));
|
|
365
|
+
}
|
|
366
|
+
else {
|
|
367
|
+
this.updateSource(this.options);
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
cancelPreselection() {
|
|
371
|
+
if (!this._textInput.value && this.value) {
|
|
372
|
+
this.selectOption(undefined);
|
|
373
|
+
}
|
|
374
|
+
else {
|
|
375
|
+
window.setTimeout(() => {
|
|
376
|
+
this.setInputValue();
|
|
377
|
+
}, this._deboucingTime);
|
|
378
|
+
}
|
|
379
|
+
this.resetOptions();
|
|
380
|
+
}
|
|
381
|
+
setInputValue(clearError = true) {
|
|
382
|
+
const textValue = this.getText();
|
|
383
|
+
if ((this._textInput.value || '') !== textValue) {
|
|
384
|
+
this._textInput.value = textValue;
|
|
385
|
+
if (clearError) {
|
|
386
|
+
this.errorMessage = null;
|
|
387
|
+
}
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
clearSearch() {
|
|
391
|
+
this.value = null;
|
|
392
|
+
}
|
|
393
|
+
controlListWithOnlyOne() {
|
|
394
|
+
var _a;
|
|
395
|
+
if (this.searchMode) {
|
|
396
|
+
const source = (_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.filter((opt) => opt.label !== "" && opt.value != undefined);
|
|
397
|
+
if ((source === null || source === void 0 ? void 0 : source.length) === 1) {
|
|
398
|
+
this.selectOption(source[0]);
|
|
399
|
+
}
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
controlEmptySearch() {
|
|
403
|
+
var _a;
|
|
404
|
+
if (this.searchMode) {
|
|
405
|
+
if (!((_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
406
|
+
this.clearSearch();
|
|
407
|
+
ApplicationUtils.info(this._textEmptyList);
|
|
408
|
+
}
|
|
409
|
+
else {
|
|
410
|
+
this.controlListWithOnlyOne();
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
validateDescriptionValue() {
|
|
415
|
+
if (!this.searchMode || StringUtils.isEmpty(this.value)) {
|
|
416
|
+
return;
|
|
417
|
+
}
|
|
418
|
+
let value = this.value;
|
|
419
|
+
if (typeof value === "object") {
|
|
420
|
+
return;
|
|
421
|
+
}
|
|
422
|
+
if (StringUtils.isEmpty(value)) {
|
|
423
|
+
return;
|
|
424
|
+
}
|
|
425
|
+
this.loadDescriptionValue(value);
|
|
426
|
+
}
|
|
427
|
+
async loadDescriptionValue(argument) {
|
|
428
|
+
var _a, _b;
|
|
429
|
+
if (argument == undefined) {
|
|
430
|
+
return;
|
|
431
|
+
}
|
|
432
|
+
if (((_a = this.options) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
433
|
+
this.loadOptionValue(argument);
|
|
434
|
+
return;
|
|
435
|
+
}
|
|
436
|
+
const searchArgument = {
|
|
437
|
+
mode: SearchMode.PREDICTIVE,
|
|
438
|
+
argument
|
|
439
|
+
};
|
|
440
|
+
const source = await ((_b = this.optionLoader) === null || _b === void 0 ? void 0 : _b.call(this, searchArgument));
|
|
441
|
+
if (source == undefined) {
|
|
442
|
+
return;
|
|
443
|
+
}
|
|
444
|
+
if (source instanceof Promise) {
|
|
445
|
+
source.then((result) => {
|
|
446
|
+
this.setDescriptionValue(result);
|
|
447
|
+
});
|
|
448
|
+
}
|
|
449
|
+
else {
|
|
450
|
+
this.setDescriptionValue(source);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
setDescriptionValue(source) {
|
|
454
|
+
const value = (source === null || source === void 0 ? void 0 : source[0]) || source;
|
|
455
|
+
if (value == undefined || !Object.keys(value).length) {
|
|
456
|
+
this.showNoResultMessage();
|
|
457
|
+
return;
|
|
458
|
+
}
|
|
459
|
+
this._lookupMode = true;
|
|
460
|
+
this.value = value;
|
|
461
|
+
}
|
|
462
|
+
loadOptionValue(argument) {
|
|
463
|
+
var _a;
|
|
464
|
+
const source = (_a = this.options) === null || _a === void 0 ? void 0 : _a.find((opt) => opt.value === argument);
|
|
465
|
+
if (source != undefined) {
|
|
466
|
+
this.selectOption(source);
|
|
467
|
+
}
|
|
468
|
+
else {
|
|
469
|
+
this.showNoResultMessage();
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
async showNoResultMessage() {
|
|
473
|
+
this.clearSearch();
|
|
474
|
+
ApplicationUtils.info(this._textEmptySearch.replace("{0}", this.getFieldLabel()));
|
|
475
|
+
}
|
|
476
|
+
getFieldLabel() {
|
|
477
|
+
var _a;
|
|
478
|
+
return (_a = this.label) === null || _a === void 0 ? void 0 : _a.replace(REQUIRED_INFO, "").toUpperCase();
|
|
479
|
+
}
|
|
480
|
+
resetOptions() {
|
|
481
|
+
this.hideOptions();
|
|
482
|
+
this._criteria = undefined;
|
|
483
|
+
this._preSelection = undefined;
|
|
484
|
+
this.updateVisibleOptions();
|
|
485
|
+
}
|
|
486
|
+
//---------------------------------------------
|
|
487
|
+
// Lifecycle web component
|
|
488
|
+
//---------------------------------------------
|
|
489
|
+
componentWillLoad() {
|
|
490
|
+
if (this.options === undefined) {
|
|
491
|
+
this.options = [];
|
|
492
|
+
const optionsTags = this.el.querySelectorAll("option");
|
|
493
|
+
if (optionsTags) {
|
|
494
|
+
optionsTags.forEach(e => {
|
|
495
|
+
let label = e.innerText;
|
|
496
|
+
let value = e.getAttribute("value");
|
|
497
|
+
if (!value) {
|
|
498
|
+
value = label;
|
|
499
|
+
}
|
|
500
|
+
this.options.push({ label, value });
|
|
501
|
+
e.hidden = true;
|
|
502
|
+
});
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
if (this.searchMode) {
|
|
506
|
+
this.updateSource([]);
|
|
507
|
+
}
|
|
508
|
+
else {
|
|
509
|
+
this.loadOptions(SearchMode.PRELOAD);
|
|
510
|
+
}
|
|
511
|
+
}
|
|
512
|
+
componentDidRender() {
|
|
513
|
+
var _a;
|
|
514
|
+
if (this._floatingID === undefined) {
|
|
515
|
+
this._listWrapper.remove();
|
|
516
|
+
}
|
|
517
|
+
(_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
|
|
518
|
+
ElementIDUtils.addIDInfoIfNotExists(elem, "itemComboBox");
|
|
519
|
+
});
|
|
520
|
+
this.validateDescriptionValue();
|
|
521
|
+
}
|
|
522
|
+
componentDidLoad() {
|
|
523
|
+
CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
|
|
524
|
+
this.setInputValue(false);
|
|
525
|
+
this._resizeObserver = new ResizeObserver((entries) => {
|
|
526
|
+
window.requestAnimationFrame(() => {
|
|
527
|
+
if (!Array.isArray(entries) || !entries.length)
|
|
528
|
+
return;
|
|
529
|
+
const { clientWidth } = this._listContainer;
|
|
530
|
+
if (clientWidth > 0 && !!this._listWrapper) {
|
|
531
|
+
this._listWrapper.style.width = `${clientWidth}px`;
|
|
532
|
+
}
|
|
533
|
+
});
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
//---------------------------------------------
|
|
537
|
+
// Event handlers
|
|
538
|
+
//---------------------------------------------
|
|
539
|
+
handlerIconClick() {
|
|
540
|
+
this.searchMode ? this.loadOptions(SearchMode.ADVANCED) : this.showOptions();
|
|
541
|
+
}
|
|
542
|
+
buildNumberArgument(argument) {
|
|
543
|
+
if (this.isTextSearch) {
|
|
544
|
+
return NaN;
|
|
545
|
+
}
|
|
546
|
+
return Number(argument || undefined);
|
|
547
|
+
}
|
|
548
|
+
onTextInputChangeHandler(event) {
|
|
549
|
+
var _a;
|
|
550
|
+
this.clearDeboucingTimeout();
|
|
551
|
+
if (this._startLoading) {
|
|
552
|
+
this._changeDeboucingTimeout = window.setTimeout(() => {
|
|
553
|
+
this.onTextInputChangeHandler(event);
|
|
554
|
+
}, this._deboucingTime);
|
|
555
|
+
return;
|
|
556
|
+
}
|
|
557
|
+
const argument = (_a = event.target.value) === null || _a === void 0 ? void 0 : _a.trim();
|
|
558
|
+
const argumentNumber = this.buildNumberArgument(argument);
|
|
559
|
+
if (!this._criteria) {
|
|
560
|
+
this._textInput.value = event.data || argument;
|
|
561
|
+
}
|
|
562
|
+
this._criteria = argument;
|
|
563
|
+
if (argument) {
|
|
564
|
+
if (this.searchMode) {
|
|
565
|
+
this._showLoading = false;
|
|
566
|
+
this.clearSource();
|
|
567
|
+
if (!isNaN(argumentNumber) || argument.length >= this._limitCharsToSearch) {
|
|
568
|
+
this._showLoading = true;
|
|
569
|
+
this._changeDeboucingTimeout = window.setTimeout(() => {
|
|
570
|
+
this.loadOptions(SearchMode.PREDICTIVE, isNaN(argumentNumber) ? argument : argumentNumber.toString());
|
|
571
|
+
}, this._deboucingTime);
|
|
572
|
+
this.showOptions();
|
|
573
|
+
}
|
|
574
|
+
else {
|
|
575
|
+
this.hideOptions();
|
|
576
|
+
}
|
|
577
|
+
}
|
|
578
|
+
else {
|
|
579
|
+
this.updateVisibleOptions();
|
|
580
|
+
this.showOptions();
|
|
581
|
+
}
|
|
582
|
+
}
|
|
583
|
+
else {
|
|
584
|
+
this.hideOptions();
|
|
585
|
+
if (this.searchMode) {
|
|
586
|
+
this._showLoading = false;
|
|
587
|
+
this.clearSource();
|
|
588
|
+
}
|
|
589
|
+
else {
|
|
590
|
+
this.updateVisibleOptions();
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
}
|
|
594
|
+
clearDeboucingTimeout() {
|
|
595
|
+
if (this._changeDeboucingTimeout) {
|
|
596
|
+
window.clearTimeout(this._changeDeboucingTimeout);
|
|
597
|
+
this._changeDeboucingTimeout = null;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
onTextInputClickHandler() {
|
|
601
|
+
if (!this.searchMode) {
|
|
602
|
+
this.showOptions();
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
keyDownHandler(event) {
|
|
606
|
+
this._tabPressed = false;
|
|
607
|
+
if (event.ctrlKey) {
|
|
608
|
+
if (event.key === "f" || event.key === "F") {
|
|
609
|
+
this.loadOptions(SearchMode.ADVANCED);
|
|
610
|
+
//ATENÇÃO: Ctrl + F tem ação específica nos browsers
|
|
611
|
+
//nesse caso, como vamos abrir o popup de busca avançada,
|
|
612
|
+
//não é interessante deixar o evento propagar;
|
|
613
|
+
event.stopPropagation();
|
|
614
|
+
event.stopImmediatePropagation();
|
|
615
|
+
event.preventDefault();
|
|
616
|
+
}
|
|
617
|
+
}
|
|
618
|
+
switch (event.key) {
|
|
619
|
+
case "ArrowDown":
|
|
620
|
+
this.nextOption();
|
|
621
|
+
event.stopPropagation();
|
|
622
|
+
break;
|
|
623
|
+
case "ArrowUp":
|
|
624
|
+
this.previousOption();
|
|
625
|
+
event.stopPropagation();
|
|
626
|
+
break;
|
|
627
|
+
case "Enter":
|
|
628
|
+
this.selectCurrentOption();
|
|
629
|
+
break;
|
|
630
|
+
case "Escape":
|
|
631
|
+
this.cancelPreselection();
|
|
632
|
+
break;
|
|
633
|
+
case "Tab":
|
|
634
|
+
this._tabPressed = true;
|
|
635
|
+
this.controlListWithOnlyOne();
|
|
636
|
+
break;
|
|
637
|
+
}
|
|
638
|
+
//ATENÇÃO: Existe a necessidade de propagar o evento de teclado.
|
|
639
|
+
//Por exemplo, quando o usuário dá um Enter, além de selecionar
|
|
640
|
+
//um valor, também significa que a ateração finalizou,
|
|
641
|
+
//e o contexto pode reagir (fechar um popup por exemplo).
|
|
642
|
+
//event.stopPropagation();
|
|
643
|
+
}
|
|
644
|
+
onTextInputFocusOutHandler() {
|
|
645
|
+
if (this.hideErrorOnFocusOut)
|
|
646
|
+
this.cancelPreselection();
|
|
647
|
+
}
|
|
648
|
+
canShowListOptions() {
|
|
649
|
+
return !this._showLoading && this._visibleOptions.length > 0;
|
|
650
|
+
}
|
|
651
|
+
render() {
|
|
652
|
+
var _a;
|
|
653
|
+
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
654
|
+
return (h(Host, null, h("ez-text-input", { "data-element-id": 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 }, h("button", { class: "btn", slot: this.searchMode ? "leftIcon" : "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, 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)
|
|
655
|
+
? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
|
656
|
+
: undefined), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
|
|
657
|
+
&& this._visibleOptions.length === 0
|
|
658
|
+
&& h("div", { class: "message" }, h("span", { class: "message__no-result" }, this._textEmptyList)), this._showLoading
|
|
659
|
+
&& h("div", { class: "message" }, h("div", { class: "message__loading" })), this.showOptionValue
|
|
660
|
+
? h("span", { class: "item__value item__value--hidden", ref: elem => this._itemValueBasis = elem })
|
|
661
|
+
: undefined, this.canShowListOptions() && this._visibleOptions.map((opt, index) => this.buildItem(opt, index)))))));
|
|
662
|
+
}
|
|
663
|
+
static get is() { return "ez-combo-box"; }
|
|
664
|
+
static get encapsulation() { return "shadow"; }
|
|
665
|
+
static get originalStyleUrls() {
|
|
666
|
+
return {
|
|
667
|
+
"$": ["ez-combo-box.css"]
|
|
668
|
+
};
|
|
669
|
+
}
|
|
670
|
+
static get styleUrls() {
|
|
671
|
+
return {
|
|
672
|
+
"$": ["ez-combo-box.css"]
|
|
673
|
+
};
|
|
674
|
+
}
|
|
675
|
+
static get properties() {
|
|
676
|
+
return {
|
|
677
|
+
"value": {
|
|
678
|
+
"type": "string",
|
|
679
|
+
"mutable": true,
|
|
680
|
+
"complexType": {
|
|
681
|
+
"original": "IOption | string",
|
|
682
|
+
"resolved": "IOption | string",
|
|
683
|
+
"references": {
|
|
684
|
+
"IOption": {
|
|
685
|
+
"location": "local"
|
|
686
|
+
}
|
|
687
|
+
}
|
|
688
|
+
},
|
|
689
|
+
"required": false,
|
|
690
|
+
"optional": false,
|
|
691
|
+
"docs": {
|
|
692
|
+
"tags": [],
|
|
693
|
+
"text": "Define o valor do campo."
|
|
694
|
+
},
|
|
695
|
+
"attribute": "value",
|
|
696
|
+
"reflect": true
|
|
697
|
+
},
|
|
698
|
+
"label": {
|
|
699
|
+
"type": "string",
|
|
700
|
+
"mutable": false,
|
|
701
|
+
"complexType": {
|
|
702
|
+
"original": "string",
|
|
703
|
+
"resolved": "string",
|
|
704
|
+
"references": {}
|
|
705
|
+
},
|
|
706
|
+
"required": false,
|
|
707
|
+
"optional": false,
|
|
708
|
+
"docs": {
|
|
709
|
+
"tags": [],
|
|
710
|
+
"text": "Texto a ser apresentado como t\u00EDtulo do campo."
|
|
711
|
+
},
|
|
712
|
+
"attribute": "label",
|
|
713
|
+
"reflect": true
|
|
714
|
+
},
|
|
715
|
+
"enabled": {
|
|
716
|
+
"type": "boolean",
|
|
717
|
+
"mutable": false,
|
|
718
|
+
"complexType": {
|
|
719
|
+
"original": "boolean",
|
|
720
|
+
"resolved": "boolean",
|
|
721
|
+
"references": {}
|
|
722
|
+
},
|
|
723
|
+
"required": false,
|
|
724
|
+
"optional": false,
|
|
725
|
+
"docs": {
|
|
726
|
+
"tags": [],
|
|
727
|
+
"text": "Se false o usu\u00E1rio n\u00E3o pode interagir com o campo."
|
|
728
|
+
},
|
|
729
|
+
"attribute": "enabled",
|
|
730
|
+
"reflect": true,
|
|
731
|
+
"defaultValue": "true"
|
|
732
|
+
},
|
|
733
|
+
"options": {
|
|
734
|
+
"type": "unknown",
|
|
735
|
+
"mutable": true,
|
|
736
|
+
"complexType": {
|
|
737
|
+
"original": "Array<IOption>",
|
|
738
|
+
"resolved": "IOption[]",
|
|
739
|
+
"references": {
|
|
740
|
+
"Array": {
|
|
741
|
+
"location": "global"
|
|
742
|
+
},
|
|
743
|
+
"IOption": {
|
|
744
|
+
"location": "local"
|
|
745
|
+
}
|
|
746
|
+
}
|
|
747
|
+
},
|
|
748
|
+
"required": false,
|
|
749
|
+
"optional": false,
|
|
750
|
+
"docs": {
|
|
751
|
+
"tags": [],
|
|
752
|
+
"text": "Array com as op\u00E7\u00F5es do ez-combo-box. Os elementos devem obedecer\no formato: `{value: string, label: string}`."
|
|
753
|
+
}
|
|
754
|
+
},
|
|
755
|
+
"errorMessage": {
|
|
756
|
+
"type": "string",
|
|
757
|
+
"mutable": true,
|
|
758
|
+
"complexType": {
|
|
759
|
+
"original": "string",
|
|
760
|
+
"resolved": "string",
|
|
761
|
+
"references": {}
|
|
762
|
+
},
|
|
763
|
+
"required": false,
|
|
764
|
+
"optional": false,
|
|
765
|
+
"docs": {
|
|
766
|
+
"tags": [],
|
|
767
|
+
"text": "Define uma mensagem de orienta\u00E7\u00E3o ao usu\u00E1rio, colocando o campo em modo inv\u00E1lido."
|
|
768
|
+
},
|
|
769
|
+
"attribute": "error-message",
|
|
770
|
+
"reflect": true
|
|
771
|
+
},
|
|
772
|
+
"searchMode": {
|
|
773
|
+
"type": "boolean",
|
|
774
|
+
"mutable": false,
|
|
775
|
+
"complexType": {
|
|
776
|
+
"original": "boolean",
|
|
777
|
+
"resolved": "boolean",
|
|
778
|
+
"references": {}
|
|
779
|
+
},
|
|
780
|
+
"required": false,
|
|
781
|
+
"optional": false,
|
|
782
|
+
"docs": {
|
|
783
|
+
"tags": [],
|
|
784
|
+
"text": "Se true ativa o modo pesquisa do ez-combo-box."
|
|
785
|
+
},
|
|
786
|
+
"attribute": "search-mode",
|
|
787
|
+
"reflect": false
|
|
788
|
+
},
|
|
789
|
+
"showSelectedValue": {
|
|
790
|
+
"type": "boolean",
|
|
791
|
+
"mutable": false,
|
|
792
|
+
"complexType": {
|
|
793
|
+
"original": "boolean",
|
|
794
|
+
"resolved": "boolean",
|
|
795
|
+
"references": {}
|
|
796
|
+
},
|
|
797
|
+
"required": false,
|
|
798
|
+
"optional": false,
|
|
799
|
+
"docs": {
|
|
800
|
+
"tags": [],
|
|
801
|
+
"text": "Se true a op\u00E7\u00E3o selecionada exibe o `value` junto com `label`."
|
|
802
|
+
},
|
|
803
|
+
"attribute": "show-selected-value",
|
|
804
|
+
"reflect": false,
|
|
805
|
+
"defaultValue": "false"
|
|
806
|
+
},
|
|
807
|
+
"showOptionValue": {
|
|
808
|
+
"type": "boolean",
|
|
809
|
+
"mutable": false,
|
|
810
|
+
"complexType": {
|
|
811
|
+
"original": "boolean",
|
|
812
|
+
"resolved": "boolean",
|
|
813
|
+
"references": {}
|
|
814
|
+
},
|
|
815
|
+
"required": false,
|
|
816
|
+
"optional": false,
|
|
817
|
+
"docs": {
|
|
818
|
+
"tags": [],
|
|
819
|
+
"text": "Se true cada op\u00E7\u00E3o na lista exibe o `value` junto com `label`."
|
|
820
|
+
},
|
|
821
|
+
"attribute": "show-option-value",
|
|
822
|
+
"reflect": false,
|
|
823
|
+
"defaultValue": "false"
|
|
824
|
+
},
|
|
825
|
+
"suppressSearch": {
|
|
826
|
+
"type": "boolean",
|
|
827
|
+
"mutable": false,
|
|
828
|
+
"complexType": {
|
|
829
|
+
"original": "boolean",
|
|
830
|
+
"resolved": "boolean",
|
|
831
|
+
"references": {}
|
|
832
|
+
},
|
|
833
|
+
"required": false,
|
|
834
|
+
"optional": false,
|
|
835
|
+
"docs": {
|
|
836
|
+
"tags": [],
|
|
837
|
+
"text": "Se true desabilita a digita\u00E7\u00E3o dentro do componente."
|
|
838
|
+
},
|
|
839
|
+
"attribute": "suppress-search",
|
|
840
|
+
"reflect": false,
|
|
841
|
+
"defaultValue": "false"
|
|
842
|
+
},
|
|
843
|
+
"optionLoader": {
|
|
844
|
+
"type": "unknown",
|
|
845
|
+
"mutable": false,
|
|
846
|
+
"complexType": {
|
|
847
|
+
"original": "(argument: ISearchArgument) => Promise<Array<IOption>> | Array<IOption> | IOption",
|
|
848
|
+
"resolved": "(argument: ISearchArgument) => IOption | IOption[] | Promise<IOption[]>",
|
|
849
|
+
"references": {
|
|
850
|
+
"ISearchArgument": {
|
|
851
|
+
"location": "local"
|
|
852
|
+
},
|
|
853
|
+
"Promise": {
|
|
854
|
+
"location": "global"
|
|
855
|
+
},
|
|
856
|
+
"Array": {
|
|
857
|
+
"location": "global"
|
|
858
|
+
},
|
|
859
|
+
"IOption": {
|
|
860
|
+
"location": "local"
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
"required": false,
|
|
865
|
+
"optional": false,
|
|
866
|
+
"docs": {
|
|
867
|
+
"tags": [],
|
|
868
|
+
"text": "Carrega as op\u00E7\u00F5es dinamicamente."
|
|
869
|
+
}
|
|
870
|
+
},
|
|
871
|
+
"suppressEmptyOption": {
|
|
872
|
+
"type": "boolean",
|
|
873
|
+
"mutable": false,
|
|
874
|
+
"complexType": {
|
|
875
|
+
"original": "boolean",
|
|
876
|
+
"resolved": "boolean",
|
|
877
|
+
"references": {}
|
|
878
|
+
},
|
|
879
|
+
"required": false,
|
|
880
|
+
"optional": false,
|
|
881
|
+
"docs": {
|
|
882
|
+
"tags": [],
|
|
883
|
+
"text": "Se true remove a op\u00E7\u00E3o vazia da lista."
|
|
884
|
+
},
|
|
885
|
+
"attribute": "suppress-empty-option",
|
|
886
|
+
"reflect": false,
|
|
887
|
+
"defaultValue": "false"
|
|
888
|
+
},
|
|
889
|
+
"canShowError": {
|
|
890
|
+
"type": "boolean",
|
|
891
|
+
"mutable": false,
|
|
892
|
+
"complexType": {
|
|
893
|
+
"original": "boolean",
|
|
894
|
+
"resolved": "boolean",
|
|
895
|
+
"references": {}
|
|
896
|
+
},
|
|
897
|
+
"required": false,
|
|
898
|
+
"optional": false,
|
|
899
|
+
"docs": {
|
|
900
|
+
"tags": [],
|
|
901
|
+
"text": "Se false deixa de exibir a mensagem de erro dentro do campo."
|
|
902
|
+
},
|
|
903
|
+
"attribute": "can-show-error",
|
|
904
|
+
"reflect": true,
|
|
905
|
+
"defaultValue": "true"
|
|
906
|
+
},
|
|
907
|
+
"mode": {
|
|
908
|
+
"type": "string",
|
|
909
|
+
"mutable": false,
|
|
910
|
+
"complexType": {
|
|
911
|
+
"original": "\"slim\" | \"regular\"",
|
|
912
|
+
"resolved": "\"regular\" | \"slim\"",
|
|
913
|
+
"references": {}
|
|
914
|
+
},
|
|
915
|
+
"required": false,
|
|
916
|
+
"optional": false,
|
|
917
|
+
"docs": {
|
|
918
|
+
"tags": [],
|
|
919
|
+
"text": "Define o tamanho do campo."
|
|
920
|
+
},
|
|
921
|
+
"attribute": "mode",
|
|
922
|
+
"reflect": true,
|
|
923
|
+
"defaultValue": "\"regular\""
|
|
924
|
+
},
|
|
925
|
+
"hideErrorOnFocusOut": {
|
|
926
|
+
"type": "boolean",
|
|
927
|
+
"mutable": false,
|
|
928
|
+
"complexType": {
|
|
929
|
+
"original": "boolean",
|
|
930
|
+
"resolved": "boolean",
|
|
931
|
+
"references": {}
|
|
932
|
+
},
|
|
933
|
+
"required": false,
|
|
934
|
+
"optional": false,
|
|
935
|
+
"docs": {
|
|
936
|
+
"tags": [],
|
|
937
|
+
"text": "Quando verdadeiro deixa de exibir a mensagem de erro (se existente) quando focar em um elemento diferente."
|
|
938
|
+
},
|
|
939
|
+
"attribute": "hide-error-on-focus-out",
|
|
940
|
+
"reflect": false,
|
|
941
|
+
"defaultValue": "true"
|
|
942
|
+
},
|
|
943
|
+
"listOptionsPosition": {
|
|
944
|
+
"type": "unknown",
|
|
945
|
+
"mutable": false,
|
|
946
|
+
"complexType": {
|
|
947
|
+
"original": "IEzCheckBoxListPosition",
|
|
948
|
+
"resolved": "IEzCheckBoxListPosition",
|
|
949
|
+
"references": {
|
|
950
|
+
"IEzCheckBoxListPosition": {
|
|
951
|
+
"location": "local"
|
|
952
|
+
}
|
|
953
|
+
}
|
|
954
|
+
},
|
|
955
|
+
"required": false,
|
|
956
|
+
"optional": false,
|
|
957
|
+
"docs": {
|
|
958
|
+
"tags": [],
|
|
959
|
+
"text": "Define um posicionamento fixo para a lista de op\u00E7\u00F5es do CheckBox."
|
|
960
|
+
}
|
|
961
|
+
},
|
|
962
|
+
"isTextSearch": {
|
|
963
|
+
"type": "boolean",
|
|
964
|
+
"mutable": false,
|
|
965
|
+
"complexType": {
|
|
966
|
+
"original": "boolean",
|
|
967
|
+
"resolved": "boolean",
|
|
968
|
+
"references": {}
|
|
969
|
+
},
|
|
970
|
+
"required": false,
|
|
971
|
+
"optional": false,
|
|
972
|
+
"docs": {
|
|
973
|
+
"tags": [],
|
|
974
|
+
"text": "Informa se a pesquisa \u00E9 do tipo texto."
|
|
975
|
+
},
|
|
976
|
+
"attribute": "is-text-search",
|
|
977
|
+
"reflect": false,
|
|
978
|
+
"defaultValue": "false"
|
|
979
|
+
}
|
|
980
|
+
};
|
|
981
|
+
}
|
|
982
|
+
static get states() {
|
|
983
|
+
return {
|
|
984
|
+
"_preSelection": {},
|
|
985
|
+
"_visibleOptions": {},
|
|
986
|
+
"_startLoading": {},
|
|
987
|
+
"_showLoading": {},
|
|
988
|
+
"_criteria": {}
|
|
989
|
+
};
|
|
990
|
+
}
|
|
991
|
+
static get events() {
|
|
992
|
+
return [{
|
|
993
|
+
"method": "ezChange",
|
|
994
|
+
"name": "ezChange",
|
|
995
|
+
"bubbles": true,
|
|
996
|
+
"cancelable": true,
|
|
997
|
+
"composed": true,
|
|
998
|
+
"docs": {
|
|
999
|
+
"tags": [],
|
|
1000
|
+
"text": "Emitido quando acontece a altera\u00E7\u00E3o de valor do campo."
|
|
1001
|
+
},
|
|
1002
|
+
"complexType": {
|
|
1003
|
+
"original": "IOption",
|
|
1004
|
+
"resolved": "IOption",
|
|
1005
|
+
"references": {
|
|
1006
|
+
"IOption": {
|
|
1007
|
+
"location": "local"
|
|
1008
|
+
}
|
|
1009
|
+
}
|
|
1010
|
+
}
|
|
1011
|
+
}];
|
|
1012
|
+
}
|
|
1013
|
+
static get methods() {
|
|
1014
|
+
return {
|
|
1015
|
+
"getValueAsync": {
|
|
1016
|
+
"complexType": {
|
|
1017
|
+
"signature": "() => Promise<unknown>",
|
|
1018
|
+
"parameters": [],
|
|
1019
|
+
"references": {
|
|
1020
|
+
"Promise": {
|
|
1021
|
+
"location": "global"
|
|
1022
|
+
}
|
|
1023
|
+
},
|
|
1024
|
+
"return": "Promise<unknown>"
|
|
1025
|
+
},
|
|
1026
|
+
"docs": {
|
|
1027
|
+
"text": "",
|
|
1028
|
+
"tags": []
|
|
1029
|
+
}
|
|
1030
|
+
},
|
|
1031
|
+
"setFocus": {
|
|
1032
|
+
"complexType": {
|
|
1033
|
+
"signature": "() => Promise<void>",
|
|
1034
|
+
"parameters": [],
|
|
1035
|
+
"references": {
|
|
1036
|
+
"Promise": {
|
|
1037
|
+
"location": "global"
|
|
1038
|
+
}
|
|
1039
|
+
},
|
|
1040
|
+
"return": "Promise<void>"
|
|
1041
|
+
},
|
|
1042
|
+
"docs": {
|
|
1043
|
+
"text": "Aplica o foco no campo.",
|
|
1044
|
+
"tags": []
|
|
1045
|
+
}
|
|
1046
|
+
},
|
|
1047
|
+
"setBlur": {
|
|
1048
|
+
"complexType": {
|
|
1049
|
+
"signature": "() => Promise<void>",
|
|
1050
|
+
"parameters": [],
|
|
1051
|
+
"references": {
|
|
1052
|
+
"Promise": {
|
|
1053
|
+
"location": "global"
|
|
1054
|
+
}
|
|
1055
|
+
},
|
|
1056
|
+
"return": "Promise<void>"
|
|
1057
|
+
},
|
|
1058
|
+
"docs": {
|
|
1059
|
+
"text": "Remove o foco do campo.",
|
|
1060
|
+
"tags": []
|
|
1061
|
+
}
|
|
1062
|
+
},
|
|
1063
|
+
"isInvalid": {
|
|
1064
|
+
"complexType": {
|
|
1065
|
+
"signature": "() => Promise<boolean>",
|
|
1066
|
+
"parameters": [],
|
|
1067
|
+
"references": {
|
|
1068
|
+
"Promise": {
|
|
1069
|
+
"location": "global"
|
|
1070
|
+
}
|
|
1071
|
+
},
|
|
1072
|
+
"return": "Promise<boolean>"
|
|
1073
|
+
},
|
|
1074
|
+
"docs": {
|
|
1075
|
+
"text": "Retorna se o conte\u00FAdo \u00E9 inv\u00E1lido.",
|
|
1076
|
+
"tags": []
|
|
1077
|
+
}
|
|
1078
|
+
},
|
|
1079
|
+
"clearValue": {
|
|
1080
|
+
"complexType": {
|
|
1081
|
+
"signature": "() => Promise<void>",
|
|
1082
|
+
"parameters": [],
|
|
1083
|
+
"references": {
|
|
1084
|
+
"Promise": {
|
|
1085
|
+
"location": "global"
|
|
1086
|
+
}
|
|
1087
|
+
},
|
|
1088
|
+
"return": "Promise<void>"
|
|
1089
|
+
},
|
|
1090
|
+
"docs": {
|
|
1091
|
+
"text": "Limpa o valor do campo de pesquisa",
|
|
1092
|
+
"tags": []
|
|
1093
|
+
}
|
|
1094
|
+
}
|
|
1095
|
+
};
|
|
1096
|
+
}
|
|
1097
|
+
static get elementRef() { return "el"; }
|
|
1098
|
+
static get watchers() {
|
|
1099
|
+
return [{
|
|
1100
|
+
"propName": "errorMessage",
|
|
1101
|
+
"methodName": "observeErrorMessage"
|
|
1102
|
+
}, {
|
|
1103
|
+
"propName": "value",
|
|
1104
|
+
"methodName": "observeValue"
|
|
1105
|
+
}, {
|
|
1106
|
+
"propName": "options",
|
|
1107
|
+
"methodName": "observeOptions"
|
|
1108
|
+
}];
|
|
1109
|
+
}
|
|
1110
|
+
static get listeners() {
|
|
1111
|
+
return [{
|
|
1112
|
+
"name": "scroll",
|
|
1113
|
+
"method": "scrollListener",
|
|
1114
|
+
"target": "window",
|
|
1115
|
+
"capture": true,
|
|
1116
|
+
"passive": true
|
|
1117
|
+
}];
|
|
1118
|
+
}
|
|
1119
|
+
}
|
|
1120
|
+
var SearchMode;
|
|
1121
|
+
(function (SearchMode) {
|
|
1122
|
+
SearchMode["ADVANCED"] = "ADVANCED";
|
|
1123
|
+
SearchMode["PRELOAD"] = "PRELOAD";
|
|
1124
|
+
SearchMode["PREDICTIVE"] = "PREDICTIVE";
|
|
1125
|
+
})(SearchMode || (SearchMode = {}));
|