@sankhyalabs/ezui 5.22.0-dev.14 → 5.22.0-dev.140
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/{CSSVarsUtils-10c9d5b4.js → CSSVarsUtils-f20973d1.js} +1 -0
- package/dist/cjs/FocusResolver-885f2173.js +35 -0
- package/dist/cjs/FormLayout-18853e70.js +27 -0
- package/dist/cjs/{constants-2714478b.js → constants-569271bc.js} +4 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js +6 -5
- package/dist/cjs/ez-avatar.cjs.entry.js +50 -0
- package/dist/cjs/ez-badge.cjs.entry.js +14 -2
- package/dist/cjs/ez-button.cjs.entry.js +11 -5
- package/dist/cjs/ez-card-item_2.cjs.entry.js +267 -0
- package/dist/cjs/ez-chart.cjs.entry.js +3 -3
- package/dist/cjs/ez-check.cjs.entry.js +18 -10
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -2
- package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +387 -0
- package/dist/cjs/ez-combo-box.cjs.entry.js +80 -158
- package/dist/cjs/ez-date-input.cjs.entry.js +16 -19
- package/dist/cjs/ez-date-time-input.cjs.entry.js +15 -20
- package/dist/cjs/ez-dialog.cjs.entry.js +18 -8
- package/dist/cjs/ez-double-list.cjs.entry.js +287 -0
- package/dist/cjs/ez-dropdown.cjs.entry.js +14 -8
- package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
- package/dist/cjs/ez-form-view.cjs.entry.js +41 -27
- package/dist/cjs/ez-form.cjs.entry.js +89 -327
- package/dist/cjs/ez-grid.cjs.entry.js +15312 -69830
- package/dist/cjs/ez-icon.cjs.entry.js +12 -6
- package/dist/cjs/ez-list.cjs.entry.js +258 -211
- package/dist/cjs/ez-modal-container.cjs.entry.js +7 -3
- package/dist/cjs/ez-modal.cjs.entry.js +17 -4
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-number-input.cjs.entry.js +16 -3
- package/dist/cjs/ez-popover-plus_3.cjs.entry.js +238 -0
- package/dist/cjs/ez-popup.cjs.entry.js +29 -3
- package/dist/cjs/ez-scroller_2.cjs.entry.js +3 -3
- package/dist/cjs/ez-search-plus.cjs.entry.js +397 -0
- package/dist/cjs/ez-search-result-list.cjs.entry.js +97 -0
- package/dist/cjs/ez-search.cjs.entry.js +134 -191
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-skeleton.cjs.entry.js +118 -36
- package/dist/cjs/ez-split-button.cjs.entry.js +16 -7
- package/dist/cjs/ez-split-item.cjs.entry.js +7 -4
- package/dist/cjs/ez-split-panel.cjs.entry.js +68 -6
- package/dist/cjs/ez-text-area.cjs.entry.js +91 -8
- package/dist/cjs/ez-text-input.cjs.entry.js +150 -31
- package/dist/cjs/ez-time-input.cjs.entry.js +9 -2
- package/dist/cjs/ez-tooltip.cjs.entry.js +135 -0
- package/dist/cjs/ez-tree.cjs.entry.js +5 -4
- package/dist/cjs/ezListHelper-0d3970b4.js +90 -0
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/filter-column.cjs.entry.js +24 -52
- package/dist/cjs/floating-ui.dom.esm-017acce4.js +1404 -0
- package/dist/cjs/index-a7b0c73d.js +36 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/search-column-27d1f72f.js +505 -0
- package/dist/cjs/searchFormatters-b7e1ed1e.js +23 -0
- package/dist/collection/collection-manifest.json +21 -2
- package/dist/collection/components/ez-actions-button/ez-actions-button.css +2 -0
- package/dist/collection/components/ez-actions-button/ez-actions-button.js +3 -2
- package/dist/collection/components/ez-avatar/ez-avatar.css +139 -0
- package/dist/collection/components/ez-avatar/ez-avatar.js +143 -0
- package/dist/collection/components/ez-badge/ez-badge.css +12 -1
- package/dist/collection/components/ez-badge/ez-badge.js +31 -1
- package/dist/collection/components/ez-button/ez-button.css +24 -14
- package/dist/collection/components/ez-button/ez-button.js +12 -6
- package/dist/collection/components/ez-card-item/ez-card-item.css +58 -10
- package/dist/collection/components/ez-card-item/ez-card-item.js +30 -3
- package/dist/collection/components/ez-chart/ez-chart.js +2 -2
- package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js +1 -0
- package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js +3 -3
- package/dist/collection/components/ez-check/ez-check.css +10 -6
- package/dist/collection/components/ez-check/ez-check.js +34 -9
- package/dist/collection/components/ez-chip/ez-chip.css +5 -1
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +1 -1
- package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css +205 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js +426 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.css +8 -246
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +141 -167
- package/dist/collection/components/ez-date-input/ez-date-input.css +1 -1
- package/dist/collection/components/ez-date-input/ez-date-input.js +58 -19
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +1 -1
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +57 -20
- package/dist/collection/components/ez-dialog/ez-dialog.css +27 -24
- package/dist/collection/components/ez-dialog/ez-dialog.js +18 -17
- package/dist/collection/components/ez-double-list/doubleListHelper.js +82 -0
- package/dist/collection/components/ez-double-list/ez-double-list.css +62 -0
- package/dist/collection/components/ez-double-list/ez-double-list.js +440 -0
- package/dist/collection/components/ez-dropdown/ez-dropdown.js +33 -8
- package/dist/collection/components/ez-filter-input/ez-filter-input.css +1 -1
- package/dist/collection/components/ez-filter-input/ez-filter-input.js +35 -4
- package/dist/collection/components/ez-form/ez-form.js +125 -4
- package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +49 -6
- package/dist/collection/components/ez-form-view/ez-form-view.css +13 -2
- package/dist/collection/components/ez-form-view/ez-form-view.js +21 -2
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +5 -2
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +8 -4
- 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 +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +6 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +2 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +443 -76
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +172 -33
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +248 -43
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +16 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +10 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +2 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +1 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +1 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +8 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js +15 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +4 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +2 -0
- package/dist/collection/components/ez-grid/ez-grid.css +107 -10
- package/dist/collection/components/ez-grid/ez-grid.js +478 -22
- package/dist/collection/components/ez-grid/subcomponents/filter-column.css +4 -0
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +23 -51
- package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js +7 -54
- package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js +20 -4
- package/dist/collection/components/ez-icon/ez-icon.css +156 -149
- package/dist/collection/components/ez-icon/ez-icon.js +28 -5
- package/dist/collection/components/ez-list/ez-list.css +6 -4
- package/dist/collection/components/ez-list/ez-list.js +301 -212
- package/dist/collection/components/ez-list/ezListHelper.js +85 -0
- package/dist/collection/components/ez-modal/ez-modal.css +7 -2
- package/dist/collection/components/ez-modal/ez-modal.js +18 -5
- package/dist/collection/components/ez-modal-container/ez-modal-container.css +3 -1
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +6 -2
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +3 -3
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
- package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js +1 -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 +67 -1
- package/dist/collection/components/ez-popover-plus/ez-popover-plus.css +3 -0
- package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +434 -0
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +67 -0
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +524 -0
- package/dist/collection/components/ez-popup/ez-popup.css +8 -3
- package/dist/collection/components/ez-popup/ez-popup.js +48 -4
- package/dist/collection/components/ez-scroller/ez-scroller.css +4 -0
- package/dist/collection/components/ez-search/ez-search.css +2 -210
- package/dist/collection/components/ez-search/ez-search.js +234 -204
- package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css +227 -0
- package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js +318 -0
- package/dist/collection/components/ez-search/utils/searchFormatters.js +18 -0
- package/dist/collection/components/ez-search-plus/ez-search-plus.css +373 -0
- package/dist/collection/components/ez-search-plus/ez-search-plus.js +960 -0
- package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css +221 -0
- package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js +278 -0
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +3 -0
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
- package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +4 -1
- package/dist/collection/components/ez-skeleton/ez-skeleton.constants.js +25 -1
- package/dist/collection/components/ez-skeleton/ez-skeleton.css +140 -78
- package/dist/collection/components/ez-skeleton/ez-skeleton.js +210 -46
- package/dist/collection/components/ez-split-button/ez-split-button.css +53 -15
- package/dist/collection/components/ez-split-button/ez-split-button.js +90 -13
- package/dist/collection/components/ez-split-panel/ez-split-panel.css +15 -0
- package/dist/collection/components/ez-split-panel/ez-split-panel.js +106 -5
- package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js +1 -0
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +14 -2
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +22 -1
- package/dist/collection/components/ez-text-area/ez-text-area.css +78 -29
- package/dist/collection/components/ez-text-area/ez-text-area.js +151 -6
- package/dist/collection/components/ez-text-input/ez-text-input.css +133 -93
- package/dist/collection/components/ez-text-input/ez-text-input.js +231 -29
- package/dist/collection/components/ez-time-input/ez-time-input.js +43 -1
- package/dist/collection/components/ez-tooltip/ez-tooltip.css +62 -0
- package/dist/collection/components/ez-tooltip/ez-tooltip.js +310 -0
- package/dist/collection/components/ez-tree/ez-tree.js +21 -1
- package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +3 -3
- package/dist/collection/sw.js +46 -0
- package/dist/collection/utils/CSSVarsUtils.js +1 -0
- package/dist/collection/utils/FocusResolver.js +31 -0
- package/dist/collection/utils/constants.js +2 -0
- package/dist/collection/utils/form/DataBinder.js +65 -21
- package/dist/collection/utils/form/FormMetadata.js +2 -1
- package/dist/collection/utils/form/interfaces/FormLayout.js +5 -0
- package/dist/collection/utils/form/interfaces/index.js +1 -1
- package/dist/collection/utils/form/test/DataBinder.test.js +14 -0
- package/dist/collection/utils/index.js +3 -0
- package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
- package/dist/collection/utils/search/types.js +7 -0
- package/dist/collection/utils/searchColumn/search-column.js +35 -0
- package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js +1 -0
- package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +7 -1
- package/dist/custom-elements/index.d.ts +54 -0
- package/dist/custom-elements/index.js +20058 -70949
- package/dist/esm/{CSSVarsUtils-71ce76be.js → CSSVarsUtils-acba92d7.js} +1 -0
- package/dist/esm/FocusResolver-1ccbf850.js +33 -0
- package/dist/esm/FormLayout-071d324c.js +27 -0
- package/dist/esm/constants-b036528f.js +7 -0
- package/dist/esm/ez-actions-button.entry.js +6 -5
- package/dist/esm/ez-avatar.entry.js +46 -0
- package/dist/esm/ez-badge.entry.js +14 -2
- package/dist/esm/ez-button.entry.js +11 -5
- package/dist/esm/ez-card-item_2.entry.js +262 -0
- package/dist/esm/ez-chart.entry.js +3 -3
- package/dist/esm/ez-check.entry.js +18 -10
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +2 -2
- package/dist/esm/ez-combo-box-list_3.entry.js +381 -0
- package/dist/esm/ez-combo-box.entry.js +81 -159
- package/dist/esm/ez-date-input.entry.js +16 -19
- package/dist/esm/ez-date-time-input.entry.js +15 -20
- package/dist/esm/ez-dialog.entry.js +19 -9
- package/dist/esm/ez-double-list.entry.js +283 -0
- package/dist/esm/ez-dropdown.entry.js +14 -8
- package/dist/esm/ez-filter-input.entry.js +125 -0
- package/dist/esm/ez-form-view.entry.js +42 -28
- package/dist/esm/ez-form.entry.js +88 -326
- package/dist/esm/ez-grid.entry.js +15275 -69793
- package/dist/esm/ez-icon.entry.js +12 -6
- package/dist/esm/ez-list.entry.js +258 -211
- package/dist/esm/ez-modal-container.entry.js +7 -3
- package/dist/esm/ez-modal.entry.js +17 -4
- package/dist/esm/ez-multi-selection-list.entry.js +2 -2
- package/dist/esm/ez-number-input.entry.js +16 -3
- package/dist/esm/ez-popover-plus_3.entry.js +232 -0
- package/dist/esm/ez-popup.entry.js +29 -3
- package/dist/esm/ez-scroller_2.entry.js +3 -3
- package/dist/esm/ez-search-plus.entry.js +393 -0
- package/dist/esm/ez-search-result-list.entry.js +93 -0
- package/dist/esm/ez-search.entry.js +135 -192
- package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
- package/dist/esm/ez-skeleton.entry.js +118 -36
- package/dist/esm/ez-split-button.entry.js +16 -7
- package/dist/esm/ez-split-item.entry.js +7 -4
- package/dist/esm/ez-split-panel.entry.js +69 -7
- package/dist/esm/ez-text-area.entry.js +91 -8
- package/dist/esm/ez-text-input.entry.js +150 -31
- package/dist/esm/ez-time-input.entry.js +9 -2
- package/dist/esm/ez-tooltip.entry.js +131 -0
- package/dist/esm/ez-tree.entry.js +5 -4
- package/dist/esm/ezListHelper-00fb9b8d.js +87 -0
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/filter-column.entry.js +24 -52
- package/dist/esm/floating-ui.dom.esm-5d3da819.js +1398 -0
- package/dist/esm/index-baa5e267.js +36 -8
- package/dist/esm/loader.js +1 -1
- package/dist/esm/search-column-e609d513.js +495 -0
- package/dist/esm/searchFormatters-8229207e.js +20 -0
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-07894c4a.entry.js +1 -0
- package/dist/ezui/p-0d9856a4.entry.js +1 -0
- package/dist/ezui/p-1bcfd88c.entry.js +1 -0
- package/dist/ezui/p-1eb34cad.entry.js +1 -0
- package/dist/ezui/p-20c024f7.entry.js +1 -0
- package/dist/ezui/p-26685c50.entry.js +1 -0
- package/dist/ezui/p-288631d1.entry.js +1 -0
- package/dist/ezui/p-2b42abbb.entry.js +1 -0
- package/dist/ezui/p-2b4df33d.entry.js +1 -0
- package/dist/ezui/p-30ffb9ed.js +1 -0
- package/dist/ezui/p-33326ac5.entry.js +1 -0
- package/dist/ezui/p-341da682.entry.js +1 -0
- package/dist/ezui/p-35115d5d.entry.js +1 -0
- package/dist/ezui/p-3ba9565c.entry.js +1 -0
- package/dist/ezui/p-40a60148.js +1 -0
- package/dist/ezui/p-496f7832.entry.js +1 -0
- package/dist/ezui/p-4b67138e.entry.js +1 -0
- package/dist/ezui/p-4bd6dd6a.entry.js +1 -0
- package/dist/ezui/p-4d30b703.entry.js +1 -0
- package/dist/ezui/p-57363cfd.entry.js +1 -0
- package/dist/ezui/p-58f69d24.entry.js +1 -0
- package/dist/ezui/{p-84e439b9.entry.js → p-5dde9df3.entry.js} +1 -1
- package/dist/ezui/p-5eea9886.js +1 -0
- package/dist/ezui/p-69937816.entry.js +1 -0
- package/dist/ezui/p-7019f782.entry.js +1 -0
- package/dist/ezui/p-79044c3e.entry.js +1 -0
- package/dist/ezui/p-7e677b7b.entry.js +1 -0
- package/dist/ezui/p-7eae6986.entry.js +1 -0
- package/dist/ezui/p-80dfc50b.js +1 -0
- package/dist/ezui/p-9478b13b.entry.js +1 -0
- package/dist/ezui/p-9567b31a.entry.js +1 -0
- package/dist/ezui/p-97c7cf51.entry.js +1 -0
- package/dist/ezui/p-998afb6a.entry.js +1 -0
- package/dist/ezui/p-9c5cd3b2.entry.js +1 -0
- package/dist/ezui/p-a148e994.entry.js +1 -0
- package/dist/ezui/p-a3bf8cf1.entry.js +1 -0
- package/dist/ezui/p-b81881ac.entry.js +1 -0
- package/dist/ezui/p-bac0f920.entry.js +1 -0
- package/dist/ezui/p-bff24a7b.js +1 -0
- package/dist/ezui/p-cb75eb46.entry.js +1 -0
- package/dist/ezui/{p-5b205c80.entry.js → p-d47dabdf.entry.js} +1 -1
- package/dist/ezui/p-da1b4a38.entry.js +1 -0
- package/dist/ezui/p-dc628ed3.js +1 -0
- package/dist/ezui/p-dc73e1fe.entry.js +1 -0
- package/dist/ezui/{p-17be134a.entry.js → p-e06a9886.entry.js} +1 -1
- package/dist/ezui/p-e07e4671.js +1 -0
- package/dist/ezui/p-e09514b6.entry.js +309 -0
- package/dist/ezui/p-e6a9041d.entry.js +1 -0
- package/dist/ezui/p-e75c7a23.entry.js +1 -0
- package/dist/ezui/p-ec7db713.js +1 -0
- package/dist/ezui/p-fa6732f2.entry.js +1 -0
- package/dist/types/components/ez-avatar/ez-avatar.d.ts +24 -0
- package/dist/types/components/ez-badge/ez-badge.d.ts +5 -0
- package/dist/types/components/ez-button/ez-button.d.ts +2 -1
- package/dist/types/components/ez-calendar/ez-calendar.d.ts +3 -3
- package/dist/types/components/ez-card-item/ez-card-item.d.ts +5 -0
- package/dist/types/components/ez-chart/interfaces/ChartAxis.d.ts +2 -0
- package/dist/types/components/ez-chart/interfaces/ChartTypeValue.d.ts +1 -0
- package/dist/types/components/ez-check/ez-check.d.ts +7 -2
- package/dist/types/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.d.ts +104 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +19 -15
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +12 -3
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +12 -3
- package/dist/types/components/ez-dialog/ez-dialog.d.ts +3 -1
- package/dist/types/components/ez-double-list/doubleListHelper.d.ts +10 -0
- package/dist/types/components/ez-double-list/ez-double-list.d.ts +87 -0
- package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +4 -0
- package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +4 -4
- package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +6 -1
- package/dist/types/components/ez-form/ez-form.d.ts +23 -1
- package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +7 -1
- package/dist/types/components/ez-form-view/ez-form-view.d.ts +4 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +84 -5
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +47 -7
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +26 -2
- package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +34 -7
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +4 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +2 -1
- package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.d.ts +3 -0
- package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
- package/dist/types/components/ez-grid/ez-grid.d.ts +74 -1
- package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +1 -11
- package/dist/types/components/ez-grid/utils/ColumnFilterManager.d.ts +1 -1
- package/dist/types/components/ez-grid/utils/InMemoryFilterColumnDataSource.d.ts +3 -0
- package/dist/types/components/ez-icon/ez-icon.d.ts +5 -0
- package/dist/types/components/ez-list/ez-list.d.ts +23 -2
- package/dist/types/components/ez-list/ezListHelper.d.ts +20 -0
- package/dist/types/components/ez-modal/ez-modal.d.ts +4 -1
- package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +2 -0
- package/dist/types/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.d.ts +2 -1
- package/dist/types/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.d.ts +3 -0
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +12 -0
- package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +74 -0
- package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +89 -0
- package/dist/types/components/ez-popup/ez-popup.d.ts +10 -1
- package/dist/types/components/ez-search/ez-search.d.ts +37 -18
- package/dist/types/components/ez-search/subcomponent/search-list/search-list.d.ts +29 -0
- package/dist/types/components/ez-search/utils/searchFormatters.d.ts +2 -0
- package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +186 -0
- package/dist/types/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.d.ts +26 -0
- package/dist/types/components/ez-skeleton/ez-skeleton.constants.d.ts +55 -1
- package/dist/types/components/ez-skeleton/ez-skeleton.d.ts +50 -22
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +15 -3
- package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +11 -0
- package/dist/types/components/ez-split-panel/interfaces/IPanelSizeInfo.d.ts +9 -0
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +5 -0
- package/dist/types/components/ez-text-area/ez-text-area.d.ts +25 -0
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +37 -3
- package/dist/types/components/ez-time-input/ez-time-input.d.ts +8 -0
- package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +57 -0
- package/dist/types/components/ez-tree/ez-tree.d.ts +4 -0
- package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +1 -0
- package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +1 -0
- package/dist/types/components.d.ts +1386 -58
- package/dist/types/utils/FocusResolver.d.ts +5 -0
- package/dist/types/utils/constants.d.ts +2 -0
- package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +2 -0
- package/dist/types/utils/form/DataBinder.d.ts +7 -2
- package/dist/types/utils/form/interfaces/FormLayout.d.ts +4 -0
- package/dist/types/utils/form/interfaces/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts +3 -0
- package/dist/types/utils/search/types.d.ts +12 -0
- package/dist/types/utils/searchColumn/search-column.d.ts +9 -0
- package/dist/types/utils/validators/recordvalidator/IInvalidCells.d.ts +5 -0
- package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
- package/package.json +16 -7
- package/react/components.d.ts +63 -54
- package/react/components.js +9 -0
- package/react/components.js.map +1 -1
- package/react/react-component-lib/createComponent.d.ts +1 -1
- package/react/react-component-lib/createComponent.js.map +1 -1
- package/react/react-component-lib/createOverlayComponent.js.map +1 -1
- package/react/react-component-lib/interfaces.js +1 -0
- package/react/react-component-lib/utils/attachProps.d.ts +1 -1
- package/react/react-component-lib/utils/attachProps.js.map +1 -1
- package/react/react-component-lib/utils/dev.js.map +1 -1
- package/react/react-component-lib/utils/index.d.ts +2 -2
- package/react/react-component-lib/utils/index.js.map +1 -1
- package/dist/cjs/ICustomRender-6fafffce.js +0 -13
- package/dist/cjs/RecordValidationProcessor-4c893e04.js +0 -102
- package/dist/cjs/ez-card-item_3.cjs.entry.js +0 -183
- package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +0 -206
- package/dist/esm/ICustomRender-875b5a40.js +0 -13
- package/dist/esm/RecordValidationProcessor-b00b8b77.js +0 -99
- package/dist/esm/constants-4e0d35b7.js +0 -5
- package/dist/esm/ez-card-item_3.entry.js +0 -177
- package/dist/esm/ez-custom-form-input_2.entry.js +0 -201
- package/dist/ezui/p-04f24913.js +0 -1
- package/dist/ezui/p-05e1f4e7.js +0 -1
- package/dist/ezui/p-072e6347.entry.js +0 -1
- package/dist/ezui/p-1285c902.entry.js +0 -1
- package/dist/ezui/p-13d2fe2d.entry.js +0 -1
- package/dist/ezui/p-2097d0cf.entry.js +0 -1
- package/dist/ezui/p-32e553e5.entry.js +0 -304
- package/dist/ezui/p-34b6916c.entry.js +0 -1
- package/dist/ezui/p-3b4eeeb6.entry.js +0 -1
- package/dist/ezui/p-3faa2b46.entry.js +0 -1
- package/dist/ezui/p-42533ea4.entry.js +0 -1
- package/dist/ezui/p-4607fb89.js +0 -1
- package/dist/ezui/p-49456b34.entry.js +0 -1
- package/dist/ezui/p-4d5235f1.entry.js +0 -1
- package/dist/ezui/p-5bd5e68f.entry.js +0 -1
- package/dist/ezui/p-650e4b6d.entry.js +0 -1
- package/dist/ezui/p-784fe207.entry.js +0 -1
- package/dist/ezui/p-7922142b.entry.js +0 -1
- package/dist/ezui/p-7af81663.entry.js +0 -1
- package/dist/ezui/p-7bc07c31.entry.js +0 -1
- package/dist/ezui/p-85c8baae.entry.js +0 -1
- package/dist/ezui/p-8888d9ed.entry.js +0 -1
- package/dist/ezui/p-9050d2cd.entry.js +0 -1
- package/dist/ezui/p-922ac38b.entry.js +0 -1
- package/dist/ezui/p-9e11fc7b.js +0 -1
- package/dist/ezui/p-a31b9c90.entry.js +0 -1
- package/dist/ezui/p-aba3da00.entry.js +0 -1
- package/dist/ezui/p-af95cd16.entry.js +0 -1
- package/dist/ezui/p-bae4e180.entry.js +0 -1
- package/dist/ezui/p-baf80b13.entry.js +0 -1
- package/dist/ezui/p-bcb53f27.entry.js +0 -1
- package/dist/ezui/p-bf79aaa1.entry.js +0 -1
- package/dist/ezui/p-cdc472cc.entry.js +0 -1
- package/dist/ezui/p-d9401ea0.entry.js +0 -1
- package/dist/ezui/p-e85c48d7.entry.js +0 -1
- package/dist/ezui/p-ecc2c1ec.entry.js +0 -1
- package/dist/ezui/p-fcf0acce.entry.js +0 -1
|
@@ -0,0 +1,960 @@
|
|
|
1
|
+
import { h, Host, } from "@stencil/core";
|
|
2
|
+
import { ElementIDUtils, KeyboardManager, StringUtils, } from "@sankhyalabs/core";
|
|
3
|
+
import { CSSVarsUtils, SearchMode } from "../../utils";
|
|
4
|
+
export class EzSearchPlus {
|
|
5
|
+
constructor() {
|
|
6
|
+
this.SEARCH_DESCRIPTION_TIMEOUT = 300;
|
|
7
|
+
this.INTERVAL_TO_RETRY_ASYNC_VALUE = 100;
|
|
8
|
+
this.value = undefined;
|
|
9
|
+
this.enabled = true;
|
|
10
|
+
this.disableCodeInput = false;
|
|
11
|
+
this.disableDescriptionInput = false;
|
|
12
|
+
this.label = undefined;
|
|
13
|
+
this.codLabel = undefined;
|
|
14
|
+
this.hideDescriptionInput = false;
|
|
15
|
+
this.canShowError = true;
|
|
16
|
+
this.errorMessage = undefined;
|
|
17
|
+
this.mode = "regular";
|
|
18
|
+
this.contextProperties = undefined;
|
|
19
|
+
this.optionLoader = undefined;
|
|
20
|
+
this.showOptionValue = true;
|
|
21
|
+
this.stopPropagateEnterKeyEvent = false;
|
|
22
|
+
this.autoFocus = false;
|
|
23
|
+
this.showSelectedValue = true;
|
|
24
|
+
this.suppressEmptyOption = false;
|
|
25
|
+
this.hideErrorOnFocusOut = true;
|
|
26
|
+
this.listOptionsPosition = undefined;
|
|
27
|
+
this.isTextSearch = false;
|
|
28
|
+
this.ignoreLimitCharsToSearch = false;
|
|
29
|
+
this.suppressSearch = false;
|
|
30
|
+
this.suppressPreLoad = true;
|
|
31
|
+
this.ensureClearButtonVisible = false;
|
|
32
|
+
this.descriptionValue = "";
|
|
33
|
+
this.codeValue = "";
|
|
34
|
+
this.isLoadingDescription = false;
|
|
35
|
+
this.searchDescriptionIsOpen = false;
|
|
36
|
+
this.visibleOptions = undefined;
|
|
37
|
+
this.showLoading = true;
|
|
38
|
+
}
|
|
39
|
+
async observeValue(newValue, oldValue) {
|
|
40
|
+
const newNormalizedValue = this.normalizeValueToCodeValue(newValue);
|
|
41
|
+
const oldNormalizedValue = this.normalizeValueToCodeValue(oldValue);
|
|
42
|
+
if (newNormalizedValue === oldNormalizedValue) {
|
|
43
|
+
return;
|
|
44
|
+
}
|
|
45
|
+
if (newNormalizedValue === undefined) {
|
|
46
|
+
this.codeValue = undefined;
|
|
47
|
+
this.descriptionValue = undefined;
|
|
48
|
+
this.ezChange.emit(undefined);
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
this.codeValue = newNormalizedValue;
|
|
52
|
+
try {
|
|
53
|
+
this.descriptionValue = await this.normalizeCodeToDescriptionValue(newValue);
|
|
54
|
+
if (this.descriptionValue === null || this.descriptionValue === undefined) {
|
|
55
|
+
throw new Error("Valor não encontrado!");
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
catch (err) {
|
|
59
|
+
this.value = undefined;
|
|
60
|
+
console.warn("[EzSearchPlus] Erro ao obter descrição do registro.", err);
|
|
61
|
+
throw err;
|
|
62
|
+
}
|
|
63
|
+
this.value = this.buildCurrentValue();
|
|
64
|
+
this.ezChange.emit(this.value);
|
|
65
|
+
}
|
|
66
|
+
canShowLoadSpinDescription() {
|
|
67
|
+
return this.isLoadingDescription;
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Aplica o foco no campo.
|
|
71
|
+
*/
|
|
72
|
+
async setFocus(options) {
|
|
73
|
+
var _a;
|
|
74
|
+
if (this.disableCodeInput) {
|
|
75
|
+
(_a = this._textInputDescriptionValue) === null || _a === void 0 ? void 0 : _a.setFocus(options);
|
|
76
|
+
return;
|
|
77
|
+
}
|
|
78
|
+
if (this._latestFocusedInputElement) {
|
|
79
|
+
this._latestFocusedInputElement.setFocus(options);
|
|
80
|
+
return;
|
|
81
|
+
}
|
|
82
|
+
this._textInputCodeValue.setFocus(options);
|
|
83
|
+
}
|
|
84
|
+
/**
|
|
85
|
+
* Obtém o valor do componente só após a compo de apresentação
|
|
86
|
+
* ter sido resolvido pelo option loader quando necessário
|
|
87
|
+
*/
|
|
88
|
+
async getValueAsync() {
|
|
89
|
+
if (!this.isLoadingDescription) {
|
|
90
|
+
const currentOpt = this.buildCurrentValue();
|
|
91
|
+
return new Promise(resolve => resolve(currentOpt));
|
|
92
|
+
}
|
|
93
|
+
return new Promise(resolve => {
|
|
94
|
+
let id = setInterval(() => {
|
|
95
|
+
if (!this.isLoadingDescription) {
|
|
96
|
+
clearInterval(id);
|
|
97
|
+
const currentOpt = this.buildCurrentValue();
|
|
98
|
+
resolve(currentOpt);
|
|
99
|
+
}
|
|
100
|
+
}, this.INTERVAL_TO_RETRY_ASYNC_VALUE);
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Limpa o valor do campo de pesquisa
|
|
105
|
+
*/
|
|
106
|
+
async clearValue() {
|
|
107
|
+
this.clearSearch();
|
|
108
|
+
}
|
|
109
|
+
/**
|
|
110
|
+
* Remove o foco do campo.
|
|
111
|
+
*/
|
|
112
|
+
async setBlur() {
|
|
113
|
+
var _a, _b;
|
|
114
|
+
(_a = this._textInputCodeValue) === null || _a === void 0 ? void 0 : _a.setBlur();
|
|
115
|
+
(_b = this._textInputDescriptionValue) === null || _b === void 0 ? void 0 : _b.setBlur();
|
|
116
|
+
}
|
|
117
|
+
/**
|
|
118
|
+
* Retorna se o conteúdo é inválido.
|
|
119
|
+
*/
|
|
120
|
+
async isInvalid() {
|
|
121
|
+
return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
|
|
122
|
+
}
|
|
123
|
+
componentWillLoad() {
|
|
124
|
+
if (this.value && StringUtils.isEmpty(this.codeValue)) {
|
|
125
|
+
this.observeValue(this.value, undefined);
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
componentDidLoad() {
|
|
129
|
+
CSSVarsUtils.applyVarsTextInput(this.el, this._textInputCodeValue);
|
|
130
|
+
CSSVarsUtils.applyVarsTextInput(this.el, this._textInputDescriptionValue);
|
|
131
|
+
this.initKeyboardManager();
|
|
132
|
+
if (this.autoFocus) {
|
|
133
|
+
requestAnimationFrame(() => {
|
|
134
|
+
this.setFocus({ selectText: true });
|
|
135
|
+
});
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
clearSearch() {
|
|
139
|
+
this.value = null;
|
|
140
|
+
}
|
|
141
|
+
getCodLabel() {
|
|
142
|
+
var _a;
|
|
143
|
+
if (this.hideDescriptionInput) {
|
|
144
|
+
return this.label;
|
|
145
|
+
}
|
|
146
|
+
return (_a = this.codLabel) !== null && _a !== void 0 ? _a : "Cód.";
|
|
147
|
+
}
|
|
148
|
+
async normalizeCodeToDescriptionValue(valueToNormalize) {
|
|
149
|
+
if (!valueToNormalize) {
|
|
150
|
+
return "";
|
|
151
|
+
}
|
|
152
|
+
if (typeof valueToNormalize == 'string') {
|
|
153
|
+
try {
|
|
154
|
+
valueToNormalize = JSON.parse(valueToNormalize);
|
|
155
|
+
if ((valueToNormalize === null || valueToNormalize === void 0 ? void 0 : valueToNormalize.value) && !(valueToNormalize === null || valueToNormalize === void 0 ? void 0 : valueToNormalize.label)) {
|
|
156
|
+
return await this.loadDescriptionValueByCode(valueToNormalize === null || valueToNormalize === void 0 ? void 0 : valueToNormalize.value);
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
catch (e) {
|
|
160
|
+
return await this.loadDescriptionValueByCode(valueToNormalize);
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
//Se é diferente de objeto, temos que resolver a descrição
|
|
164
|
+
if (typeof valueToNormalize != 'object') {
|
|
165
|
+
return await this.loadDescriptionValueByCode(valueToNormalize);
|
|
166
|
+
}
|
|
167
|
+
return valueToNormalize === null || valueToNormalize === void 0 ? void 0 : valueToNormalize.label;
|
|
168
|
+
}
|
|
169
|
+
normalizeValueToCodeValue(valueToNormalize) {
|
|
170
|
+
if (!valueToNormalize) {
|
|
171
|
+
return undefined;
|
|
172
|
+
}
|
|
173
|
+
if (typeof valueToNormalize == 'string') {
|
|
174
|
+
try {
|
|
175
|
+
valueToNormalize = JSON.parse(valueToNormalize);
|
|
176
|
+
}
|
|
177
|
+
catch (e) {
|
|
178
|
+
return valueToNormalize;
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
if (typeof valueToNormalize != 'object') {
|
|
182
|
+
return valueToNormalize;
|
|
183
|
+
}
|
|
184
|
+
return valueToNormalize === null || valueToNormalize === void 0 ? void 0 : valueToNormalize.value;
|
|
185
|
+
}
|
|
186
|
+
async loadDescriptionValueByCode(codeValue) {
|
|
187
|
+
if (!this.optionLoader) {
|
|
188
|
+
console.warn("optionLoader não definido");
|
|
189
|
+
return "";
|
|
190
|
+
}
|
|
191
|
+
try {
|
|
192
|
+
this.isLoadingDescription = true;
|
|
193
|
+
const searchArgument = { mode: SearchMode.LOAD_DESCRIPTION, argument: codeValue };
|
|
194
|
+
const loadedOption = await this.optionLoader(searchArgument);
|
|
195
|
+
if (!loadedOption) {
|
|
196
|
+
return "";
|
|
197
|
+
}
|
|
198
|
+
if (Array.isArray(loadedOption)) {
|
|
199
|
+
return loadedOption[0].label;
|
|
200
|
+
}
|
|
201
|
+
return loadedOption.label;
|
|
202
|
+
}
|
|
203
|
+
finally {
|
|
204
|
+
this.isLoadingDescription = false;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
handleCodeInputFocusOut() {
|
|
208
|
+
this.cancelSelection();
|
|
209
|
+
if (this.codeValue == this._textInputCodeValue.value)
|
|
210
|
+
return;
|
|
211
|
+
this.value = this._textInputCodeValue.value;
|
|
212
|
+
}
|
|
213
|
+
handleSearchClick() {
|
|
214
|
+
this.loadAdvancedSearch();
|
|
215
|
+
}
|
|
216
|
+
async loadAdvancedSearch() {
|
|
217
|
+
if (!this.optionLoader) {
|
|
218
|
+
console.warn("optionLoader não definido");
|
|
219
|
+
return;
|
|
220
|
+
}
|
|
221
|
+
const searchArgument = { mode: SearchMode.ADVANCED, argument: "" };
|
|
222
|
+
let selectedItem = undefined;
|
|
223
|
+
try {
|
|
224
|
+
selectedItem = await this.optionLoader(searchArgument, this.contextProperties);
|
|
225
|
+
}
|
|
226
|
+
catch (ignore) { }
|
|
227
|
+
if (!selectedItem)
|
|
228
|
+
return;
|
|
229
|
+
this.value = selectedItem;
|
|
230
|
+
}
|
|
231
|
+
buildCurrentValue() {
|
|
232
|
+
if (StringUtils.isEmpty(this.codeValue)) {
|
|
233
|
+
return undefined;
|
|
234
|
+
}
|
|
235
|
+
return {
|
|
236
|
+
value: this.codeValue,
|
|
237
|
+
label: this.descriptionValue
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
async handleTextInputChangeHandler(event) {
|
|
241
|
+
if (!this.searchDescriptionIsOpen) {
|
|
242
|
+
this._popover.showUnder(this.el);
|
|
243
|
+
}
|
|
244
|
+
const argument = event.target.value;
|
|
245
|
+
await this.debounceLoaderOptions(argument);
|
|
246
|
+
}
|
|
247
|
+
async debounceLoaderOptions(argument) {
|
|
248
|
+
if (this._debounceSearch)
|
|
249
|
+
clearTimeout(this._debounceSearch);
|
|
250
|
+
return new Promise((resolve) => {
|
|
251
|
+
this._debounceSearch = setTimeout(async () => {
|
|
252
|
+
await this.processOptionsLoader(argument);
|
|
253
|
+
resolve();
|
|
254
|
+
}, this.SEARCH_DESCRIPTION_TIMEOUT);
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
updateKeyOption(option) {
|
|
258
|
+
return (Object.assign(Object.assign({}, option), { presentationValue: option.value, presentationLabel: option.label }));
|
|
259
|
+
}
|
|
260
|
+
parseSearchOptions(options = []) {
|
|
261
|
+
if (Array.isArray(options)) {
|
|
262
|
+
const firstOption = options[0];
|
|
263
|
+
if (!firstOption) {
|
|
264
|
+
return [];
|
|
265
|
+
}
|
|
266
|
+
if ("label" in firstOption || "value" in firstOption) {
|
|
267
|
+
return options.map((option) => this.updateKeyOption(option));
|
|
268
|
+
}
|
|
269
|
+
return options;
|
|
270
|
+
}
|
|
271
|
+
if ("label" in options || "value" in options) {
|
|
272
|
+
[this.updateKeyOption(options)];
|
|
273
|
+
}
|
|
274
|
+
return [options];
|
|
275
|
+
}
|
|
276
|
+
async processOptionsLoader(argument) {
|
|
277
|
+
try {
|
|
278
|
+
this.showLoading = true;
|
|
279
|
+
const searchArgument = { mode: SearchMode.PREDICTIVE, argument };
|
|
280
|
+
const options = await this.optionLoader(searchArgument);
|
|
281
|
+
this.visibleOptions = this.parseSearchOptions(options);
|
|
282
|
+
}
|
|
283
|
+
finally {
|
|
284
|
+
this.showLoading = false;
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
handleSelectItem(evt) {
|
|
288
|
+
const currentOpt = evt.detail;
|
|
289
|
+
this.value = currentOpt;
|
|
290
|
+
this._popover.hide();
|
|
291
|
+
window.requestAnimationFrame(() => {
|
|
292
|
+
var _a;
|
|
293
|
+
(_a = this._textInputDescriptionValue) === null || _a === void 0 ? void 0 : _a.setFocus({ selectText: true });
|
|
294
|
+
});
|
|
295
|
+
}
|
|
296
|
+
async handleArrowUp() {
|
|
297
|
+
if (!this.isOptionsVisible()) {
|
|
298
|
+
return;
|
|
299
|
+
}
|
|
300
|
+
await this._searchList.previousOption();
|
|
301
|
+
}
|
|
302
|
+
async handleArrowDown() {
|
|
303
|
+
if (!this.isOptionsVisible()) {
|
|
304
|
+
return;
|
|
305
|
+
}
|
|
306
|
+
await this._searchList.nextOption();
|
|
307
|
+
}
|
|
308
|
+
async selectCurrentItem() {
|
|
309
|
+
var _a;
|
|
310
|
+
await ((_a = this._searchList) === null || _a === void 0 ? void 0 : _a.selectCurrentItem());
|
|
311
|
+
}
|
|
312
|
+
async cancelSelection() {
|
|
313
|
+
var _a, _b, _c;
|
|
314
|
+
const description = typeof this.value === 'object' ? (_a = this.value) === null || _a === void 0 ? void 0 : _a.label : "";
|
|
315
|
+
if (this._textInputDescriptionValue && description && this._textInputDescriptionValue.value != description) {
|
|
316
|
+
this._textInputDescriptionValue.value = description;
|
|
317
|
+
}
|
|
318
|
+
await ((_b = this._searchList) === null || _b === void 0 ? void 0 : _b.cancelSelection());
|
|
319
|
+
(_c = this._popover) === null || _c === void 0 ? void 0 : _c.hide();
|
|
320
|
+
}
|
|
321
|
+
async handleInputTab() {
|
|
322
|
+
await this.cancelSelection();
|
|
323
|
+
}
|
|
324
|
+
async handleInputEsc() {
|
|
325
|
+
var _a;
|
|
326
|
+
await this.cancelSelection();
|
|
327
|
+
await ((_a = this._latestFocusedInputElement) === null || _a === void 0 ? void 0 : _a.setFocus({ selectText: true }));
|
|
328
|
+
}
|
|
329
|
+
async initKeyboardManager() {
|
|
330
|
+
this._keyboardManager = new KeyboardManager();
|
|
331
|
+
const defaultOpts = { element: this.el, propagate: true };
|
|
332
|
+
this._keyboardManager
|
|
333
|
+
.bind("ArrowUp", () => this.handleArrowUp(), Object.assign(Object.assign({}, defaultOpts), { propagate: false }))
|
|
334
|
+
.bind("ArrowDown", () => this.handleArrowDown(), Object.assign(Object.assign({}, defaultOpts), { propagate: false }))
|
|
335
|
+
.bind("Enter", () => this.selectCurrentItem(), defaultOpts)
|
|
336
|
+
.bind("Tab", () => this.handleInputTab(), defaultOpts)
|
|
337
|
+
.bind("Escape", () => this.handleInputEsc(), defaultOpts);
|
|
338
|
+
}
|
|
339
|
+
disconnectedCallback() {
|
|
340
|
+
this._keyboardManager
|
|
341
|
+
.unbind("ArrowUp")
|
|
342
|
+
.unbind("ArrowDown")
|
|
343
|
+
.unbind("Enter")
|
|
344
|
+
.unbind("Tab")
|
|
345
|
+
.unbind("Escape");
|
|
346
|
+
}
|
|
347
|
+
isOptionsVisible() {
|
|
348
|
+
return this._popover.opened;
|
|
349
|
+
}
|
|
350
|
+
setLatestFocusedInputElement(el) {
|
|
351
|
+
this._latestFocusedInputElement = el;
|
|
352
|
+
}
|
|
353
|
+
handleCodeInputFocus() {
|
|
354
|
+
this.setLatestFocusedInputElement(this._textInputCodeValue);
|
|
355
|
+
}
|
|
356
|
+
handleDescriptionInputFocus() {
|
|
357
|
+
this.setLatestFocusedInputElement(this._textInputDescriptionValue);
|
|
358
|
+
}
|
|
359
|
+
getRightIconElement() {
|
|
360
|
+
var _a, _b;
|
|
361
|
+
if (!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))) {
|
|
362
|
+
return null;
|
|
363
|
+
}
|
|
364
|
+
return h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }));
|
|
365
|
+
}
|
|
366
|
+
getLeftIconElement() {
|
|
367
|
+
return h("button", { class: "btn", slot: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handleSearchClick() }, this.canShowLoadSpinDescription() ? h("div", { class: "message__loading" }) : h("ez-icon", { iconName: "search" }));
|
|
368
|
+
}
|
|
369
|
+
render() {
|
|
370
|
+
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
371
|
+
return (h(Host, null, h("div", { class: "ez-search-plus__container" }, h("ez-text-input", { ref: elem => this._textInputCodeValue = elem, class: {
|
|
372
|
+
"ez-search-plus__code-input": !this.hideDescriptionInput,
|
|
373
|
+
"ez-search-plus__code-input-no-border": !this.hideDescriptionInput,
|
|
374
|
+
"ez-search-plus__code-input-full": this.hideDescriptionInput
|
|
375
|
+
}, "data-element-id": ElementIDUtils.getInternalIDInfo("codeInput"), "data-slave-mode": "true", enabled: !this.disableCodeInput && this.enabled, mode: this.mode, label: this.getCodLabel(), canShowError: this.canShowError, hasInvalid: !StringUtils.isEmpty(this.errorMessage), errorMessage: this.hideDescriptionInput ? this.errorMessage : "", value: this.codeValue, onFocusout: () => this.handleCodeInputFocusOut(), onFocus: () => this.handleCodeInputFocus() }, this.getLeftIconElement()), !this.hideDescriptionInput && (h("div", { class: "description-input-container" }, h("ez-text-input", { ref: elem => this._textInputDescriptionValue = elem, tabIndex: -1, class: "ez-search-plus__text-input", "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), "data-slave-mode": "true", enabled: !this.disableDescriptionInput && this.enabled, label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode, value: this.descriptionValue, onInput: event => this.handleTextInputChangeHandler(event), onFocus: () => this.handleDescriptionInputFocus() }, this.getRightIconElement()), h("ez-popover-plus", { ref: elem => this._popover = elem, anchorElement: this.el, autoClose: true, boxWidth: 'fit-content', overlayType: 'none', useAnchorSize: true, onEzVisibilityChange: (event) => this.searchDescriptionIsOpen = event.detail }, h("ez-search-result-list", { ref: (ref) => this._searchList = ref, showLoading: this.showLoading, visibleOptions: this.visibleOptions, value: this.value, showOptionValue: this.showOptionValue, onChangeValue: (evt) => this.handleSelectItem(evt) })))))));
|
|
376
|
+
}
|
|
377
|
+
static get is() { return "ez-search-plus"; }
|
|
378
|
+
static get encapsulation() { return "shadow"; }
|
|
379
|
+
static get originalStyleUrls() {
|
|
380
|
+
return {
|
|
381
|
+
"$": ["ez-search-plus.css"]
|
|
382
|
+
};
|
|
383
|
+
}
|
|
384
|
+
static get styleUrls() {
|
|
385
|
+
return {
|
|
386
|
+
"$": ["ez-search-plus.css"]
|
|
387
|
+
};
|
|
388
|
+
}
|
|
389
|
+
static get properties() {
|
|
390
|
+
return {
|
|
391
|
+
"value": {
|
|
392
|
+
"type": "string",
|
|
393
|
+
"mutable": true,
|
|
394
|
+
"complexType": {
|
|
395
|
+
"original": "IOption | string",
|
|
396
|
+
"resolved": "IOption | string",
|
|
397
|
+
"references": {
|
|
398
|
+
"IOption": {
|
|
399
|
+
"location": "local"
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
},
|
|
403
|
+
"required": false,
|
|
404
|
+
"optional": false,
|
|
405
|
+
"docs": {
|
|
406
|
+
"tags": [],
|
|
407
|
+
"text": "Define o valor do campo."
|
|
408
|
+
},
|
|
409
|
+
"attribute": "value",
|
|
410
|
+
"reflect": true
|
|
411
|
+
},
|
|
412
|
+
"enabled": {
|
|
413
|
+
"type": "boolean",
|
|
414
|
+
"mutable": true,
|
|
415
|
+
"complexType": {
|
|
416
|
+
"original": "boolean",
|
|
417
|
+
"resolved": "boolean",
|
|
418
|
+
"references": {}
|
|
419
|
+
},
|
|
420
|
+
"required": false,
|
|
421
|
+
"optional": false,
|
|
422
|
+
"docs": {
|
|
423
|
+
"tags": [],
|
|
424
|
+
"text": "Se false o usu\u00E1rio n\u00E3o pode interagir com o campo."
|
|
425
|
+
},
|
|
426
|
+
"attribute": "enabled",
|
|
427
|
+
"reflect": true,
|
|
428
|
+
"defaultValue": "true"
|
|
429
|
+
},
|
|
430
|
+
"disableCodeInput": {
|
|
431
|
+
"type": "boolean",
|
|
432
|
+
"mutable": true,
|
|
433
|
+
"complexType": {
|
|
434
|
+
"original": "boolean",
|
|
435
|
+
"resolved": "boolean",
|
|
436
|
+
"references": {}
|
|
437
|
+
},
|
|
438
|
+
"required": false,
|
|
439
|
+
"optional": false,
|
|
440
|
+
"docs": {
|
|
441
|
+
"tags": [],
|
|
442
|
+
"text": "Se true o campo de c\u00F3digo ficara desabilitado."
|
|
443
|
+
},
|
|
444
|
+
"attribute": "disable-code-input",
|
|
445
|
+
"reflect": true,
|
|
446
|
+
"defaultValue": "false"
|
|
447
|
+
},
|
|
448
|
+
"disableDescriptionInput": {
|
|
449
|
+
"type": "boolean",
|
|
450
|
+
"mutable": true,
|
|
451
|
+
"complexType": {
|
|
452
|
+
"original": "boolean",
|
|
453
|
+
"resolved": "boolean",
|
|
454
|
+
"references": {}
|
|
455
|
+
},
|
|
456
|
+
"required": false,
|
|
457
|
+
"optional": false,
|
|
458
|
+
"docs": {
|
|
459
|
+
"tags": [],
|
|
460
|
+
"text": "Se true o campo de de apresenta\u00E7\u00E3o ficara desabilitado."
|
|
461
|
+
},
|
|
462
|
+
"attribute": "disable-description-input",
|
|
463
|
+
"reflect": true,
|
|
464
|
+
"defaultValue": "false"
|
|
465
|
+
},
|
|
466
|
+
"label": {
|
|
467
|
+
"type": "string",
|
|
468
|
+
"mutable": true,
|
|
469
|
+
"complexType": {
|
|
470
|
+
"original": "string",
|
|
471
|
+
"resolved": "string",
|
|
472
|
+
"references": {}
|
|
473
|
+
},
|
|
474
|
+
"required": false,
|
|
475
|
+
"optional": false,
|
|
476
|
+
"docs": {
|
|
477
|
+
"tags": [],
|
|
478
|
+
"text": "Texto a ser apresentado como t\u00EDtulo do campo."
|
|
479
|
+
},
|
|
480
|
+
"attribute": "label",
|
|
481
|
+
"reflect": true
|
|
482
|
+
},
|
|
483
|
+
"codLabel": {
|
|
484
|
+
"type": "string",
|
|
485
|
+
"mutable": true,
|
|
486
|
+
"complexType": {
|
|
487
|
+
"original": "string",
|
|
488
|
+
"resolved": "string",
|
|
489
|
+
"references": {}
|
|
490
|
+
},
|
|
491
|
+
"required": false,
|
|
492
|
+
"optional": false,
|
|
493
|
+
"docs": {
|
|
494
|
+
"tags": [],
|
|
495
|
+
"text": "Texto a ser apresentado no input de c\u00F3digo."
|
|
496
|
+
},
|
|
497
|
+
"attribute": "cod-label",
|
|
498
|
+
"reflect": true
|
|
499
|
+
},
|
|
500
|
+
"hideDescriptionInput": {
|
|
501
|
+
"type": "boolean",
|
|
502
|
+
"mutable": true,
|
|
503
|
+
"complexType": {
|
|
504
|
+
"original": "boolean",
|
|
505
|
+
"resolved": "boolean",
|
|
506
|
+
"references": {}
|
|
507
|
+
},
|
|
508
|
+
"required": false,
|
|
509
|
+
"optional": false,
|
|
510
|
+
"docs": {
|
|
511
|
+
"tags": [],
|
|
512
|
+
"text": "Se true o campo de de apresenta\u00E7\u00E3o n\u00E3o ser\u00E1 exibido."
|
|
513
|
+
},
|
|
514
|
+
"attribute": "hide-description-input",
|
|
515
|
+
"reflect": true,
|
|
516
|
+
"defaultValue": "false"
|
|
517
|
+
},
|
|
518
|
+
"canShowError": {
|
|
519
|
+
"type": "boolean",
|
|
520
|
+
"mutable": false,
|
|
521
|
+
"complexType": {
|
|
522
|
+
"original": "boolean",
|
|
523
|
+
"resolved": "boolean",
|
|
524
|
+
"references": {}
|
|
525
|
+
},
|
|
526
|
+
"required": false,
|
|
527
|
+
"optional": false,
|
|
528
|
+
"docs": {
|
|
529
|
+
"tags": [],
|
|
530
|
+
"text": "Se false deixa de exibir a mensagem de erro dentro do campo."
|
|
531
|
+
},
|
|
532
|
+
"attribute": "can-show-error",
|
|
533
|
+
"reflect": true,
|
|
534
|
+
"defaultValue": "true"
|
|
535
|
+
},
|
|
536
|
+
"errorMessage": {
|
|
537
|
+
"type": "string",
|
|
538
|
+
"mutable": true,
|
|
539
|
+
"complexType": {
|
|
540
|
+
"original": "string",
|
|
541
|
+
"resolved": "string",
|
|
542
|
+
"references": {}
|
|
543
|
+
},
|
|
544
|
+
"required": false,
|
|
545
|
+
"optional": false,
|
|
546
|
+
"docs": {
|
|
547
|
+
"tags": [],
|
|
548
|
+
"text": "Define uma mensagem de orienta\u00E7\u00E3o ao usu\u00E1rio, colocando o campo em modo inv\u00E1lido."
|
|
549
|
+
},
|
|
550
|
+
"attribute": "error-message",
|
|
551
|
+
"reflect": true
|
|
552
|
+
},
|
|
553
|
+
"mode": {
|
|
554
|
+
"type": "string",
|
|
555
|
+
"mutable": false,
|
|
556
|
+
"complexType": {
|
|
557
|
+
"original": "\"slim\" | \"regular\"",
|
|
558
|
+
"resolved": "\"regular\" | \"slim\"",
|
|
559
|
+
"references": {}
|
|
560
|
+
},
|
|
561
|
+
"required": false,
|
|
562
|
+
"optional": false,
|
|
563
|
+
"docs": {
|
|
564
|
+
"tags": [],
|
|
565
|
+
"text": "Define o tamanho do campo."
|
|
566
|
+
},
|
|
567
|
+
"attribute": "mode",
|
|
568
|
+
"reflect": true,
|
|
569
|
+
"defaultValue": "\"regular\""
|
|
570
|
+
},
|
|
571
|
+
"contextProperties": {
|
|
572
|
+
"type": "any",
|
|
573
|
+
"mutable": false,
|
|
574
|
+
"complexType": {
|
|
575
|
+
"original": "any",
|
|
576
|
+
"resolved": "any",
|
|
577
|
+
"references": {}
|
|
578
|
+
},
|
|
579
|
+
"required": false,
|
|
580
|
+
"optional": true,
|
|
581
|
+
"docs": {
|
|
582
|
+
"tags": [],
|
|
583
|
+
"text": "Propriedades de contexto da aplica\u00E7\u00E3o."
|
|
584
|
+
},
|
|
585
|
+
"attribute": "context-properties",
|
|
586
|
+
"reflect": false
|
|
587
|
+
},
|
|
588
|
+
"optionLoader": {
|
|
589
|
+
"type": "unknown",
|
|
590
|
+
"mutable": false,
|
|
591
|
+
"complexType": {
|
|
592
|
+
"original": "OptionLoaderFunction",
|
|
593
|
+
"resolved": "(argument: ISearchArgument, ctxProperties?: any) => ISearchOption | IOption | (ISearchOption | IOption)[] | Promise<ISearchOption | IOption | (ISearchOption | IOption)[]>",
|
|
594
|
+
"references": {
|
|
595
|
+
"OptionLoaderFunction": {
|
|
596
|
+
"location": "local"
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
},
|
|
600
|
+
"required": false,
|
|
601
|
+
"optional": false,
|
|
602
|
+
"docs": {
|
|
603
|
+
"tags": [],
|
|
604
|
+
"text": "Carrega as op\u00E7\u00F5es dinamicamente."
|
|
605
|
+
}
|
|
606
|
+
},
|
|
607
|
+
"showOptionValue": {
|
|
608
|
+
"type": "boolean",
|
|
609
|
+
"mutable": false,
|
|
610
|
+
"complexType": {
|
|
611
|
+
"original": "boolean",
|
|
612
|
+
"resolved": "boolean",
|
|
613
|
+
"references": {}
|
|
614
|
+
},
|
|
615
|
+
"required": false,
|
|
616
|
+
"optional": false,
|
|
617
|
+
"docs": {
|
|
618
|
+
"tags": [],
|
|
619
|
+
"text": "Se false cada op\u00E7\u00E3o na lista deve exibir somente o `label`."
|
|
620
|
+
},
|
|
621
|
+
"attribute": "show-option-value",
|
|
622
|
+
"reflect": false,
|
|
623
|
+
"defaultValue": "true"
|
|
624
|
+
},
|
|
625
|
+
"stopPropagateEnterKeyEvent": {
|
|
626
|
+
"type": "boolean",
|
|
627
|
+
"mutable": false,
|
|
628
|
+
"complexType": {
|
|
629
|
+
"original": "boolean",
|
|
630
|
+
"resolved": "boolean",
|
|
631
|
+
"references": {}
|
|
632
|
+
},
|
|
633
|
+
"required": false,
|
|
634
|
+
"optional": false,
|
|
635
|
+
"docs": {
|
|
636
|
+
"tags": [],
|
|
637
|
+
"text": "Se true, interrompe a propaga\u00E7\u00E3o do evento de KeyDown da tecla enter"
|
|
638
|
+
},
|
|
639
|
+
"attribute": "stop-propagate-enter-key-event",
|
|
640
|
+
"reflect": false,
|
|
641
|
+
"defaultValue": "false"
|
|
642
|
+
},
|
|
643
|
+
"autoFocus": {
|
|
644
|
+
"type": "boolean",
|
|
645
|
+
"mutable": false,
|
|
646
|
+
"complexType": {
|
|
647
|
+
"original": "boolean",
|
|
648
|
+
"resolved": "boolean",
|
|
649
|
+
"references": {}
|
|
650
|
+
},
|
|
651
|
+
"required": false,
|
|
652
|
+
"optional": false,
|
|
653
|
+
"docs": {
|
|
654
|
+
"tags": [],
|
|
655
|
+
"text": "Se true o campo de texto receber\u00E1 o foco ao ser renderizado."
|
|
656
|
+
},
|
|
657
|
+
"attribute": "auto-focus",
|
|
658
|
+
"reflect": false,
|
|
659
|
+
"defaultValue": "false"
|
|
660
|
+
},
|
|
661
|
+
"showSelectedValue": {
|
|
662
|
+
"type": "boolean",
|
|
663
|
+
"mutable": false,
|
|
664
|
+
"complexType": {
|
|
665
|
+
"original": "boolean",
|
|
666
|
+
"resolved": "boolean",
|
|
667
|
+
"references": {}
|
|
668
|
+
},
|
|
669
|
+
"required": false,
|
|
670
|
+
"optional": false,
|
|
671
|
+
"docs": {
|
|
672
|
+
"tags": [],
|
|
673
|
+
"text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
|
|
674
|
+
},
|
|
675
|
+
"attribute": "show-selected-value",
|
|
676
|
+
"reflect": false,
|
|
677
|
+
"defaultValue": "true"
|
|
678
|
+
},
|
|
679
|
+
"suppressEmptyOption": {
|
|
680
|
+
"type": "boolean",
|
|
681
|
+
"mutable": false,
|
|
682
|
+
"complexType": {
|
|
683
|
+
"original": "boolean",
|
|
684
|
+
"resolved": "boolean",
|
|
685
|
+
"references": {}
|
|
686
|
+
},
|
|
687
|
+
"required": false,
|
|
688
|
+
"optional": false,
|
|
689
|
+
"docs": {
|
|
690
|
+
"tags": [],
|
|
691
|
+
"text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
|
|
692
|
+
},
|
|
693
|
+
"attribute": "suppress-empty-option",
|
|
694
|
+
"reflect": false,
|
|
695
|
+
"defaultValue": "false"
|
|
696
|
+
},
|
|
697
|
+
"hideErrorOnFocusOut": {
|
|
698
|
+
"type": "boolean",
|
|
699
|
+
"mutable": false,
|
|
700
|
+
"complexType": {
|
|
701
|
+
"original": "boolean",
|
|
702
|
+
"resolved": "boolean",
|
|
703
|
+
"references": {}
|
|
704
|
+
},
|
|
705
|
+
"required": false,
|
|
706
|
+
"optional": false,
|
|
707
|
+
"docs": {
|
|
708
|
+
"tags": [],
|
|
709
|
+
"text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
|
|
710
|
+
},
|
|
711
|
+
"attribute": "hide-error-on-focus-out",
|
|
712
|
+
"reflect": false,
|
|
713
|
+
"defaultValue": "true"
|
|
714
|
+
},
|
|
715
|
+
"listOptionsPosition": {
|
|
716
|
+
"type": "unknown",
|
|
717
|
+
"mutable": false,
|
|
718
|
+
"complexType": {
|
|
719
|
+
"original": "IEzCheckBoxListPosition",
|
|
720
|
+
"resolved": "IEzCheckBoxListPosition",
|
|
721
|
+
"references": {
|
|
722
|
+
"IEzCheckBoxListPosition": {
|
|
723
|
+
"location": "import",
|
|
724
|
+
"path": "../ez-combo-box/ez-combo-box"
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
},
|
|
728
|
+
"required": false,
|
|
729
|
+
"optional": false,
|
|
730
|
+
"docs": {
|
|
731
|
+
"tags": [],
|
|
732
|
+
"text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
|
|
733
|
+
}
|
|
734
|
+
},
|
|
735
|
+
"isTextSearch": {
|
|
736
|
+
"type": "boolean",
|
|
737
|
+
"mutable": false,
|
|
738
|
+
"complexType": {
|
|
739
|
+
"original": "boolean",
|
|
740
|
+
"resolved": "boolean",
|
|
741
|
+
"references": {}
|
|
742
|
+
},
|
|
743
|
+
"required": false,
|
|
744
|
+
"optional": false,
|
|
745
|
+
"docs": {
|
|
746
|
+
"tags": [],
|
|
747
|
+
"text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
|
|
748
|
+
},
|
|
749
|
+
"attribute": "is-text-search",
|
|
750
|
+
"reflect": false,
|
|
751
|
+
"defaultValue": "false"
|
|
752
|
+
},
|
|
753
|
+
"ignoreLimitCharsToSearch": {
|
|
754
|
+
"type": "boolean",
|
|
755
|
+
"mutable": false,
|
|
756
|
+
"complexType": {
|
|
757
|
+
"original": "boolean",
|
|
758
|
+
"resolved": "boolean",
|
|
759
|
+
"references": {}
|
|
760
|
+
},
|
|
761
|
+
"required": false,
|
|
762
|
+
"optional": false,
|
|
763
|
+
"docs": {
|
|
764
|
+
"tags": [],
|
|
765
|
+
"text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
|
|
766
|
+
},
|
|
767
|
+
"attribute": "ignore-limit-chars-to-search",
|
|
768
|
+
"reflect": false,
|
|
769
|
+
"defaultValue": "false"
|
|
770
|
+
},
|
|
771
|
+
"suppressSearch": {
|
|
772
|
+
"type": "boolean",
|
|
773
|
+
"mutable": false,
|
|
774
|
+
"complexType": {
|
|
775
|
+
"original": "boolean",
|
|
776
|
+
"resolved": "boolean",
|
|
777
|
+
"references": {}
|
|
778
|
+
},
|
|
779
|
+
"required": false,
|
|
780
|
+
"optional": false,
|
|
781
|
+
"docs": {
|
|
782
|
+
"tags": [],
|
|
783
|
+
"text": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
|
|
784
|
+
},
|
|
785
|
+
"attribute": "suppress-search",
|
|
786
|
+
"reflect": false,
|
|
787
|
+
"defaultValue": "false"
|
|
788
|
+
},
|
|
789
|
+
"suppressPreLoad": {
|
|
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": "Propriedade depreciada na nova vers\u00E3o do componente de pesquisa."
|
|
802
|
+
},
|
|
803
|
+
"attribute": "suppress-pre-load",
|
|
804
|
+
"reflect": false,
|
|
805
|
+
"defaultValue": "true"
|
|
806
|
+
},
|
|
807
|
+
"ensureClearButtonVisible": {
|
|
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": "Garante que o bot\u00E3o de limpar pesquisa est\u00E1 sempre vis\u00EDvel"
|
|
820
|
+
},
|
|
821
|
+
"attribute": "ensure-clear-button-visible",
|
|
822
|
+
"reflect": false,
|
|
823
|
+
"defaultValue": "false"
|
|
824
|
+
}
|
|
825
|
+
};
|
|
826
|
+
}
|
|
827
|
+
static get states() {
|
|
828
|
+
return {
|
|
829
|
+
"descriptionValue": {},
|
|
830
|
+
"codeValue": {},
|
|
831
|
+
"isLoadingDescription": {},
|
|
832
|
+
"searchDescriptionIsOpen": {},
|
|
833
|
+
"visibleOptions": {},
|
|
834
|
+
"showLoading": {}
|
|
835
|
+
};
|
|
836
|
+
}
|
|
837
|
+
static get events() {
|
|
838
|
+
return [{
|
|
839
|
+
"method": "ezChange",
|
|
840
|
+
"name": "ezChange",
|
|
841
|
+
"bubbles": true,
|
|
842
|
+
"cancelable": true,
|
|
843
|
+
"composed": true,
|
|
844
|
+
"docs": {
|
|
845
|
+
"tags": [],
|
|
846
|
+
"text": "Emitido quando acontece a altera\u00E7\u00E3o de valor do campo."
|
|
847
|
+
},
|
|
848
|
+
"complexType": {
|
|
849
|
+
"original": "IOption",
|
|
850
|
+
"resolved": "IOption",
|
|
851
|
+
"references": {
|
|
852
|
+
"IOption": {
|
|
853
|
+
"location": "local"
|
|
854
|
+
}
|
|
855
|
+
}
|
|
856
|
+
}
|
|
857
|
+
}];
|
|
858
|
+
}
|
|
859
|
+
static get methods() {
|
|
860
|
+
return {
|
|
861
|
+
"setFocus": {
|
|
862
|
+
"complexType": {
|
|
863
|
+
"signature": "(options?: TFocusOptions) => Promise<void>",
|
|
864
|
+
"parameters": [{
|
|
865
|
+
"tags": [],
|
|
866
|
+
"text": ""
|
|
867
|
+
}],
|
|
868
|
+
"references": {
|
|
869
|
+
"Promise": {
|
|
870
|
+
"location": "global"
|
|
871
|
+
},
|
|
872
|
+
"TFocusOptions": {
|
|
873
|
+
"location": "import",
|
|
874
|
+
"path": "../ez-text-input/ez-text-input"
|
|
875
|
+
}
|
|
876
|
+
},
|
|
877
|
+
"return": "Promise<void>"
|
|
878
|
+
},
|
|
879
|
+
"docs": {
|
|
880
|
+
"text": "Aplica o foco no campo.",
|
|
881
|
+
"tags": []
|
|
882
|
+
}
|
|
883
|
+
},
|
|
884
|
+
"getValueAsync": {
|
|
885
|
+
"complexType": {
|
|
886
|
+
"signature": "() => Promise<IOption>",
|
|
887
|
+
"parameters": [],
|
|
888
|
+
"references": {
|
|
889
|
+
"Promise": {
|
|
890
|
+
"location": "global"
|
|
891
|
+
},
|
|
892
|
+
"IOption": {
|
|
893
|
+
"location": "local"
|
|
894
|
+
}
|
|
895
|
+
},
|
|
896
|
+
"return": "Promise<IOption>"
|
|
897
|
+
},
|
|
898
|
+
"docs": {
|
|
899
|
+
"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",
|
|
900
|
+
"tags": []
|
|
901
|
+
}
|
|
902
|
+
},
|
|
903
|
+
"clearValue": {
|
|
904
|
+
"complexType": {
|
|
905
|
+
"signature": "() => Promise<void>",
|
|
906
|
+
"parameters": [],
|
|
907
|
+
"references": {
|
|
908
|
+
"Promise": {
|
|
909
|
+
"location": "global"
|
|
910
|
+
}
|
|
911
|
+
},
|
|
912
|
+
"return": "Promise<void>"
|
|
913
|
+
},
|
|
914
|
+
"docs": {
|
|
915
|
+
"text": "Limpa o valor do campo de pesquisa",
|
|
916
|
+
"tags": []
|
|
917
|
+
}
|
|
918
|
+
},
|
|
919
|
+
"setBlur": {
|
|
920
|
+
"complexType": {
|
|
921
|
+
"signature": "() => Promise<void>",
|
|
922
|
+
"parameters": [],
|
|
923
|
+
"references": {
|
|
924
|
+
"Promise": {
|
|
925
|
+
"location": "global"
|
|
926
|
+
}
|
|
927
|
+
},
|
|
928
|
+
"return": "Promise<void>"
|
|
929
|
+
},
|
|
930
|
+
"docs": {
|
|
931
|
+
"text": "Remove o foco do campo.",
|
|
932
|
+
"tags": []
|
|
933
|
+
}
|
|
934
|
+
},
|
|
935
|
+
"isInvalid": {
|
|
936
|
+
"complexType": {
|
|
937
|
+
"signature": "() => Promise<boolean>",
|
|
938
|
+
"parameters": [],
|
|
939
|
+
"references": {
|
|
940
|
+
"Promise": {
|
|
941
|
+
"location": "global"
|
|
942
|
+
}
|
|
943
|
+
},
|
|
944
|
+
"return": "Promise<boolean>"
|
|
945
|
+
},
|
|
946
|
+
"docs": {
|
|
947
|
+
"text": "Retorna se o conte\u00FAdo \u00E9 inv\u00E1lido.",
|
|
948
|
+
"tags": []
|
|
949
|
+
}
|
|
950
|
+
}
|
|
951
|
+
};
|
|
952
|
+
}
|
|
953
|
+
static get elementRef() { return "el"; }
|
|
954
|
+
static get watchers() {
|
|
955
|
+
return [{
|
|
956
|
+
"propName": "value",
|
|
957
|
+
"methodName": "observeValue"
|
|
958
|
+
}];
|
|
959
|
+
}
|
|
960
|
+
}
|