@sankhyalabs/ezui 5.22.0-dev.11 → 5.22.0-dev.110
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/DataBinder-c2060474.js +446 -0
- package/dist/cjs/FocusResolver-885f2173.js +35 -0
- package/dist/cjs/FormLayout-c2451c7f.js +7 -0
- package/dist/cjs/{constants-2714478b.js → constants-569271bc.js} +4 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js +6 -4
- 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 +270 -0
- package/dist/cjs/ez-check.cjs.entry.js +1 -1
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +3 -2
- package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +388 -0
- package/dist/cjs/ez-combo-box.cjs.entry.js +78 -156
- package/dist/cjs/ez-date-input.cjs.entry.js +15 -19
- package/dist/cjs/ez-date-time-input.cjs.entry.js +14 -20
- package/dist/cjs/ez-dialog.cjs.entry.js +14 -7
- package/dist/cjs/ez-double-list.cjs.entry.js +287 -0
- package/dist/cjs/{ez-dropdown.cjs.entry.js → ez-dropdown_2.cjs.entry.js} +75 -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 +34 -327
- package/dist/cjs/ez-grid.cjs.entry.js +15147 -69779
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +258 -211
- package/dist/cjs/ez-modal-container.cjs.entry.js +2 -2
- package/dist/cjs/ez-modal.cjs.entry.js +13 -4
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-number-input.cjs.entry.js +15 -3
- package/dist/cjs/ez-popover-plus_3.cjs.entry.js +209 -0
- package/dist/cjs/ez-popup.cjs.entry.js +25 -3
- package/dist/cjs/ez-scroller_2.cjs.entry.js +3 -3
- package/dist/cjs/ez-search-plus.cjs.entry.js +369 -0
- package/dist/cjs/ez-search-result-list.cjs.entry.js +98 -0
- package/dist/cjs/ez-search.cjs.entry.js +123 -191
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-split-item.cjs.entry.js +8 -4
- package/dist/cjs/ez-split-panel.cjs.entry.js +68 -6
- package/dist/cjs/ez-text-area.cjs.entry.js +68 -6
- package/dist/cjs/ez-text-input.cjs.entry.js +85 -16
- package/dist/cjs/ez-time-input.cjs.entry.js +7 -1
- package/dist/cjs/ez-tooltip.cjs.entry.js +130 -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 +10 -47
- package/dist/cjs/floating-ui.dom.esm-017acce4.js +1404 -0
- package/dist/cjs/index-a7b0c73d.js +30 -10
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/searchFormatters-b7e1ed1e.js +23 -0
- package/dist/cjs/{ICustomRender-6fafffce.js → types-6a5df0c7.js} +8 -0
- package/dist/collection/collection-manifest.json +20 -2
- package/dist/collection/components/ez-actions-button/ez-actions-button.js +3 -2
- 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-check/ez-check.css +1 -6
- package/dist/collection/components/ez-chip/ez-chip.css +5 -1
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -2
- 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 -247
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +121 -165
- package/dist/collection/components/ez-date-input/ez-date-input.css +1 -1
- package/dist/collection/components/ez-date-input/ez-date-input.js +40 -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 +39 -20
- package/dist/collection/components/ez-dialog/ez-dialog.css +3 -3
- package/dist/collection/components/ez-dialog/ez-dialog.js +14 -16
- 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 +32 -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 +387 -73
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +170 -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 +244 -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 +95 -10
- package/dist/collection/components/ez-grid/ez-grid.js +375 -12
- package/dist/collection/components/ez-grid/subcomponents/filter-column.css +4 -0
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +9 -46
- 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-list/ez-list.css +5 -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 +14 -5
- package/dist/collection/components/ez-modal-container/ez-modal-container.css +1 -0
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +1 -1
- 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-number-input/ez-number-input.css +8 -0
- package/dist/collection/components/ez-number-input/ez-number-input.js +49 -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 +527 -0
- package/dist/collection/components/ez-popup/ez-popup.css +8 -3
- package/dist/collection/components/ez-popup/ez-popup.js +44 -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 +205 -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 +289 -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 +952 -0
- package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css +227 -0
- package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js +279 -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.css +54 -34
- package/dist/collection/components/ez-split-button/ez-split-button.css +52 -14
- package/dist/collection/components/ez-split-button/ez-split-button.js +3 -3
- 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 +104 -4
- package/dist/collection/components/ez-text-input/ez-text-input.css +124 -93
- package/dist/collection/components/ez-text-input/ez-text-input.js +145 -15
- package/dist/collection/components/ez-time-input/ez-time-input.js +24 -0
- package/dist/collection/components/ez-tooltip/ez-tooltip.css +60 -0
- package/dist/collection/components/ez-tooltip/ez-tooltip.js +287 -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 +25 -9
- 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/index.js +2 -0
- package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
- package/dist/collection/utils/search/types.js +7 -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 +48 -0
- package/dist/custom-elements/index.js +21426 -72860
- package/dist/esm/{CSSVarsUtils-71ce76be.js → CSSVarsUtils-acba92d7.js} +1 -0
- package/dist/esm/DataBinder-89946126.js +442 -0
- package/dist/esm/FocusResolver-1ccbf850.js +33 -0
- package/dist/esm/FormLayout-54092963.js +7 -0
- package/dist/esm/constants-b036528f.js +7 -0
- package/dist/esm/ez-actions-button.entry.js +6 -4
- 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 +265 -0
- package/dist/esm/ez-check.entry.js +1 -1
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +3 -2
- package/dist/esm/ez-combo-box-list_3.entry.js +382 -0
- package/dist/esm/ez-combo-box.entry.js +79 -157
- package/dist/esm/ez-date-input.entry.js +15 -19
- package/dist/esm/ez-date-time-input.entry.js +14 -20
- package/dist/esm/ez-dialog.entry.js +15 -8
- package/dist/esm/ez-double-list.entry.js +283 -0
- package/dist/esm/{ez-dropdown.entry.js → ez-dropdown_2.entry.js} +75 -9
- 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 +33 -326
- package/dist/esm/ez-grid.entry.js +15146 -69778
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +258 -211
- package/dist/esm/ez-modal-container.entry.js +2 -2
- package/dist/esm/ez-modal.entry.js +13 -4
- package/dist/esm/ez-multi-selection-list.entry.js +2 -2
- package/dist/esm/ez-number-input.entry.js +15 -3
- package/dist/esm/ez-popover-plus_3.entry.js +203 -0
- package/dist/esm/ez-popup.entry.js +25 -3
- package/dist/esm/ez-scroller_2.entry.js +3 -3
- package/dist/esm/ez-search-plus.entry.js +365 -0
- package/dist/esm/ez-search-result-list.entry.js +94 -0
- package/dist/esm/ez-search.entry.js +124 -192
- package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +2 -2
- package/dist/esm/ez-split-item.entry.js +8 -4
- package/dist/esm/ez-split-panel.entry.js +69 -7
- package/dist/esm/ez-text-area.entry.js +68 -6
- package/dist/esm/ez-text-input.entry.js +85 -16
- package/dist/esm/ez-time-input.entry.js +7 -1
- package/dist/esm/ez-tooltip.entry.js +126 -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 +10 -47
- package/dist/esm/floating-ui.dom.esm-5d3da819.js +1398 -0
- package/dist/esm/index-baa5e267.js +30 -10
- package/dist/esm/loader.js +1 -1
- package/dist/esm/searchFormatters-8229207e.js +20 -0
- package/dist/esm/{ICustomRender-875b5a40.js → types-6f6b2650.js} +9 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-0bffeffc.entry.js +1 -0
- package/dist/ezui/p-0fa52b0f.entry.js +1 -0
- package/dist/ezui/p-173f68ea.js +1 -0
- package/dist/ezui/p-17de16e5.entry.js +1 -0
- package/dist/ezui/p-1a060042.entry.js +1 -0
- package/dist/ezui/p-1ec8bdd2.entry.js +309 -0
- package/dist/ezui/p-20c024f7.entry.js +1 -0
- package/dist/ezui/p-248d4f54.entry.js +1 -0
- package/dist/ezui/p-2872fd16.entry.js +1 -0
- package/dist/ezui/p-288631d1.entry.js +1 -0
- package/dist/ezui/p-2f45506d.entry.js +1 -0
- package/dist/ezui/p-3176a6ef.entry.js +1 -0
- package/dist/ezui/p-31b71e50.entry.js +1 -0
- package/dist/ezui/p-40a60148.js +1 -0
- package/dist/ezui/p-4e0628a7.entry.js +1 -0
- package/dist/ezui/p-56fe5341.entry.js +1 -0
- package/dist/ezui/p-5895e687.js +1 -0
- package/dist/ezui/p-5a14f506.entry.js +1 -0
- package/dist/ezui/p-5ec0ae79.entry.js +1 -0
- package/dist/ezui/p-5eea9886.js +1 -0
- package/dist/ezui/p-7e677b7b.entry.js +1 -0
- package/dist/ezui/{p-bf79aaa1.entry.js → p-7fdd479f.entry.js} +1 -1
- package/dist/ezui/p-80dfc50b.js +1 -0
- package/dist/ezui/p-81145609.entry.js +1 -0
- package/dist/ezui/p-84b1c99e.entry.js +1 -0
- package/dist/ezui/p-8ac8093c.entry.js +1 -0
- package/dist/ezui/p-9142b27a.entry.js +1 -0
- package/dist/ezui/p-9567b31a.entry.js +1 -0
- package/dist/ezui/p-9f22e1dc.entry.js +1 -0
- package/dist/ezui/p-a4cee65d.entry.js +1 -0
- package/dist/ezui/p-a64cfcfc.js +1 -0
- package/dist/ezui/p-bf9dec89.entry.js +1 -0
- package/dist/ezui/p-c1527804.entry.js +1 -0
- package/dist/ezui/p-c5df78be.entry.js +1 -0
- package/dist/ezui/p-cd07f8be.entry.js +1 -0
- 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-e3544d23.entry.js +1 -0
- package/dist/ezui/p-e6a9041d.entry.js +1 -0
- package/dist/ezui/p-e75c7a23.entry.js +1 -0
- package/dist/ezui/p-ea54d056.entry.js +1 -0
- package/dist/ezui/p-ec7db713.js +1 -0
- package/dist/ezui/p-ecaac11f.entry.js +1 -0
- package/dist/ezui/p-f4861c6a.entry.js +1 -0
- package/dist/ezui/p-f5a30e35.entry.js +1 -0
- package/dist/ezui/p-fa6732f2.entry.js +1 -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-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 +15 -15
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +8 -3
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +8 -3
- package/dist/types/components/ez-dialog/ez-dialog.d.ts +2 -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 +1 -1
- package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +6 -1
- package/dist/types/components/ez-form/ez-form.d.ts +5 -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 +75 -4
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +42 -6
- 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 +59 -1
- package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +0 -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-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 +2 -1
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +8 -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 +91 -0
- package/dist/types/components/ez-popup/ez-popup.d.ts +8 -1
- package/dist/types/components/ez-search/ez-search.d.ts +32 -18
- package/dist/types/components/ez-search/subcomponent/search-list/search-list.d.ts +23 -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 +184 -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-split-button/ez-split-button.d.ts +1 -1
- 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 +17 -0
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +21 -2
- package/dist/types/components/ez-time-input/ez-time-input.d.ts +4 -0
- package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +53 -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 +1162 -72
- 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 +3 -0
- 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 +2 -0
- package/dist/types/utils/search/types.d.ts +12 -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 +11 -3
- package/react/components.d.ts +62 -54
- package/react/components.js +8 -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/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/cjs/ez-skeleton.cjs.entry.js +0 -67
- 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/esm/ez-skeleton.entry.js +0 -63
- 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-33286e5f.entry.js +0 -1
- 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-7af81663.entry.js +0 -1
- package/dist/ezui/p-7bc07c31.entry.js +0 -1
- package/dist/ezui/p-84e439b9.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-8d4d90ec.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-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-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
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-baa5e267.js';
|
|
2
|
-
import { C as CSSVarsUtils } from './CSSVarsUtils-
|
|
3
|
-
import { ObjectUtils, StringUtils,
|
|
2
|
+
import { C as CSSVarsUtils } from './CSSVarsUtils-acba92d7.js';
|
|
3
|
+
import { ObjectUtils, StringUtils, ElementIDUtils } from '@sankhyalabs/core';
|
|
4
4
|
import { A as ApplicationUtils } from './ApplicationUtils-eaf91331.js';
|
|
5
5
|
import './DialogType-54a62731.js';
|
|
6
6
|
import './CheckMode-bdb2ec19.js';
|
|
7
|
-
import './
|
|
8
|
-
import
|
|
7
|
+
import './types-6f6b2650.js';
|
|
8
|
+
import './FormLayout-54092963.js';
|
|
9
|
+
import { R as REQUIRED_INFO } from './constants-b036528f.js';
|
|
10
|
+
import { r as replaceQuotes, a as replaceHighlight } from './searchFormatters-8229207e.js';
|
|
9
11
|
|
|
10
|
-
const ezSearchCss = ":host{--ez-search--height:42px;--ez-search--width:100%;--ez-search__icon--width:48px;--ez-search--border-radius:var(--border--radius-medium, 12px);--ez-search--border-radius-small:var(--border--radius-small, 6px);--ez-search--font-size:var(--text--medium, 14px);--ez-search--font-family:var(--font-pattern, Arial);--ez-search--font-weight--large:var(--text-weight--large, 500);--ez-search--font-weight--medium:var(--text-weight--medium, 400);--ez-search--background-color--xlight:var(--background--xlight, #fff);--ez-search--background-medium:var(--background--medium, #f0f3f7);--ez-search--line-height:calc(var(--text--medium, 14px) + 4px);--ez-search__input--background-color:var(--background--medium, #e0e0e0);--ez-search__input--border:var(--border--medium, 2px solid);--ez-search__input--border-color:var(--ez-search__input--background-color);--ez-search__input--focus--border-color:var(--color--primary, #008561);--ez-search__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-search__input--disabled--color:var(--text--disable, #AFB6C0);--ez-search__input--error--border-color:#CC2936;--ez-search__btn--color:var(--title--primary, #2B3A54);--ez-search__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-search__btn-hover--color:var(--color--primary, #4e4e4e);--ez-search__label--color:var(--title--primary, #2B3A54);--ez-
|
|
12
|
+
const ezSearchCss = ":host{--ez-search--height:42px;--ez-search--width:100%;--ez-search__icon--width:48px;--ez-search--border-radius:var(--border--radius-medium, 12px);--ez-search--border-radius-small:var(--border--radius-small, 6px);--ez-search--font-size:var(--text--medium, 14px);--ez-search--font-family:var(--font-pattern, Arial);--ez-search--font-weight--large:var(--text-weight--large, 500);--ez-search--font-weight--medium:var(--text-weight--medium, 400);--ez-search--background-color--xlight:var(--background--xlight, #fff);--ez-search--background-medium:var(--background--medium, #f0f3f7);--ez-search--line-height:calc(var(--text--medium, 14px) + 4px);--ez-search__input--background-color:var(--background--medium, #e0e0e0);--ez-search__input--border:var(--border--medium, 2px solid);--ez-search__input--border-color:var(--ez-search__input--background-color);--ez-search__input--focus--border-color:var(--color--primary, #008561);--ez-search__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-search__input--disabled--color:var(--text--disable, #AFB6C0);--ez-search__input--error--border-color:#CC2936;--ez-search__btn--color:var(--title--primary, #2B3A54);--ez-search__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-search__btn-hover--color:var(--color--primary, #4e4e4e);--ez-search__label--color:var(--title--primary, #2B3A54);--ez-search--space--medium:var(--space--medium, 12px);--ez-search--space--small:var(--space--small, 6px);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-search--width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.btn{outline:none;border:none;background:none;cursor:pointer;color:var(--ez-search__btn--color)}.btn:disabled{cursor:not-allowed;color:var(--ez-search__btn-disabled--color)}.btn:disabled:hover{cursor:not-allowed;color:var(--ez-search__btn-disabled--color)}.btn:hover{color:var(--ez-search__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}";
|
|
11
13
|
|
|
12
14
|
const EzSearch = class {
|
|
13
15
|
constructor(hostRef) {
|
|
@@ -26,15 +28,18 @@ const EzSearch = class {
|
|
|
26
28
|
this._visibleOptions = undefined;
|
|
27
29
|
this._startLoading = false;
|
|
28
30
|
this._showLoading = true;
|
|
31
|
+
this._showLoadingDescription = false;
|
|
29
32
|
this._criteria = undefined;
|
|
30
33
|
this.value = undefined;
|
|
31
34
|
this.label = undefined;
|
|
32
35
|
this.enabled = true;
|
|
33
36
|
this.errorMessage = undefined;
|
|
34
37
|
this.optionLoader = undefined;
|
|
38
|
+
this.contextProperties = undefined;
|
|
35
39
|
this.showSelectedValue = true;
|
|
36
40
|
this.showOptionValue = true;
|
|
37
41
|
this.suppressEmptyOption = false;
|
|
42
|
+
this.stopPropagateEnterKeyEvent = false;
|
|
38
43
|
this.mode = "regular";
|
|
39
44
|
this.canShowError = true;
|
|
40
45
|
this.hideErrorOnFocusOut = true;
|
|
@@ -43,7 +48,9 @@ const EzSearch = class {
|
|
|
43
48
|
this.ignoreLimitCharsToSearch = false;
|
|
44
49
|
this.options = undefined;
|
|
45
50
|
this.suppressSearch = false;
|
|
46
|
-
this.
|
|
51
|
+
this.ensureClearButtonVisible = false;
|
|
52
|
+
this.suppressPreLoad = true;
|
|
53
|
+
this.autoFocus = false;
|
|
47
54
|
}
|
|
48
55
|
observeErrorMessage() {
|
|
49
56
|
var _a;
|
|
@@ -54,12 +61,21 @@ const EzSearch = class {
|
|
|
54
61
|
}
|
|
55
62
|
}
|
|
56
63
|
}
|
|
64
|
+
getValue(val) {
|
|
65
|
+
return typeof val === 'object' ? val === null || val === void 0 ? void 0 : val.value : val;
|
|
66
|
+
}
|
|
57
67
|
validateNewValue(newValue, oldValue) {
|
|
58
|
-
const
|
|
59
|
-
|
|
68
|
+
const parsedNewValue = this.getValue(newValue);
|
|
69
|
+
const parsedOldValue = this.getValue(oldValue);
|
|
70
|
+
const newValueIsValid = parsedNewValue !== "[object Object]";
|
|
71
|
+
const valuesIsDifferent = parsedNewValue !== parsedOldValue;
|
|
72
|
+
if (newValueIsValid && valuesIsDifferent) {
|
|
73
|
+
return true;
|
|
74
|
+
}
|
|
75
|
+
return false;
|
|
60
76
|
}
|
|
61
77
|
async observeValue(newValue, oldValue) {
|
|
62
|
-
if (this._textInput &&
|
|
78
|
+
if (this._textInput && this.validateNewValue(newValue, oldValue)) {
|
|
63
79
|
if (typeof newValue === "string") {
|
|
64
80
|
await this.handleValueAsString(newValue);
|
|
65
81
|
return;
|
|
@@ -76,7 +92,7 @@ const EzSearch = class {
|
|
|
76
92
|
}
|
|
77
93
|
}
|
|
78
94
|
observeOptions(newOptions, oldOptions) {
|
|
79
|
-
if (!newOptions.length && this.
|
|
95
|
+
if (!newOptions.length && this.suppressPreLoad)
|
|
80
96
|
return;
|
|
81
97
|
if ((newOptions === null || newOptions === void 0 ? void 0 : newOptions.join('')) === (oldOptions === null || oldOptions === void 0 ? void 0 : oldOptions.join('')))
|
|
82
98
|
return;
|
|
@@ -102,9 +118,9 @@ const EzSearch = class {
|
|
|
102
118
|
/**
|
|
103
119
|
* Aplica o foco no campo.
|
|
104
120
|
*/
|
|
105
|
-
async setFocus() {
|
|
121
|
+
async setFocus(options) {
|
|
106
122
|
if (this._textInput) {
|
|
107
|
-
this._textInput.setFocus();
|
|
123
|
+
this._textInput.setFocus(options);
|
|
108
124
|
}
|
|
109
125
|
}
|
|
110
126
|
/**
|
|
@@ -127,73 +143,19 @@ const EzSearch = class {
|
|
|
127
143
|
async clearValue() {
|
|
128
144
|
this.clearSearch();
|
|
129
145
|
}
|
|
130
|
-
scrollListener() {
|
|
131
|
-
var _a;
|
|
132
|
-
if (this._floatingID == undefined) {
|
|
133
|
-
return;
|
|
134
|
-
}
|
|
135
|
-
if ((_a = this.listOptionsPosition) === null || _a === void 0 ? void 0 : _a.hardPosition) {
|
|
136
|
-
this.hideOptions();
|
|
137
|
-
}
|
|
138
|
-
else {
|
|
139
|
-
window.requestAnimationFrame(() => {
|
|
140
|
-
this.updateListPosition();
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
}
|
|
144
146
|
async handleValueAsString(value) {
|
|
145
147
|
if (this.getSelectedOption(value)) {
|
|
146
148
|
this.setInputValue();
|
|
147
149
|
return;
|
|
148
150
|
}
|
|
149
151
|
await this.loadDescriptionValue(value);
|
|
152
|
+
if (!this._currentValue) {
|
|
153
|
+
return;
|
|
154
|
+
}
|
|
150
155
|
this.setInputValue();
|
|
151
156
|
this.ezChange.emit(this.value);
|
|
152
157
|
this._currentValue = this.value;
|
|
153
158
|
}
|
|
154
|
-
updateListPosition() {
|
|
155
|
-
let { verticalPosition, horizontalPosition, fromBottom, fromRight, bottomLimit, hardPosition } = this.getListPosition();
|
|
156
|
-
const elementRect = this._listWrapper.getBoundingClientRect();
|
|
157
|
-
const containerRect = this._listContainer.getBoundingClientRect();
|
|
158
|
-
const textInputRect = this._textInput.getBoundingClientRect();
|
|
159
|
-
const limitHeight = bottomLimit || window.innerHeight;
|
|
160
|
-
const neededHeight = containerRect.bottom + elementRect.height;
|
|
161
|
-
if (!fromBottom && (elementRect.top < 0 || neededHeight > limitHeight)) {
|
|
162
|
-
fromBottom = true;
|
|
163
|
-
}
|
|
164
|
-
if (!hardPosition) {
|
|
165
|
-
verticalPosition = verticalPosition || 0;
|
|
166
|
-
horizontalPosition = horizontalPosition || 0;
|
|
167
|
-
if (fromBottom) {
|
|
168
|
-
verticalPosition = window.innerHeight - textInputRect.top + verticalPosition;
|
|
169
|
-
}
|
|
170
|
-
else {
|
|
171
|
-
verticalPosition += containerRect.top;
|
|
172
|
-
}
|
|
173
|
-
if (fromRight) {
|
|
174
|
-
horizontalPosition = window.innerWidth - textInputRect.right + horizontalPosition;
|
|
175
|
-
}
|
|
176
|
-
else {
|
|
177
|
-
horizontalPosition += containerRect.left;
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
if (verticalPosition != undefined) {
|
|
181
|
-
this._listWrapper.style[fromBottom ? "bottom" : "top"] = `${verticalPosition}px`;
|
|
182
|
-
this._listWrapper.style[fromBottom ? "top" : "bottom"] = "";
|
|
183
|
-
}
|
|
184
|
-
if (horizontalPosition != undefined) {
|
|
185
|
-
this._listWrapper.style[fromRight ? "right" : "left"] = `${horizontalPosition}px`;
|
|
186
|
-
this._listWrapper.style[fromRight ? "left" : "right"] = "";
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
getListPosition() {
|
|
190
|
-
if (this.listOptionsPosition) {
|
|
191
|
-
return this.listOptionsPosition;
|
|
192
|
-
}
|
|
193
|
-
return {
|
|
194
|
-
verticalPosition: (this.errorMessage || !this.canShowError || this.mode === "slim") ? 6 : -13
|
|
195
|
-
};
|
|
196
|
-
}
|
|
197
159
|
isDifferentValues(firstValue, secondValue) {
|
|
198
160
|
return ObjectUtils.objectToString(firstValue || {}) !== ObjectUtils.objectToString(secondValue || {});
|
|
199
161
|
}
|
|
@@ -201,28 +163,21 @@ const EzSearch = class {
|
|
|
201
163
|
if (currentValue == undefined) {
|
|
202
164
|
return;
|
|
203
165
|
}
|
|
204
|
-
let text = (!this.showSelectedValue || currentValue.value == undefined) ? currentValue.label : `${currentValue.value} - ${currentValue.label}
|
|
205
|
-
text = text.replace(new RegExp(this._startHighlightTag, 'g'), '').replace(new RegExp(this._endHighlightTag, 'g'), '');
|
|
166
|
+
let text = (!this.showSelectedValue || currentValue.value == undefined) ? currentValue.label : currentValue.label ? `${currentValue.value} - ${currentValue.label}` : currentValue.value;
|
|
167
|
+
text = text === null || text === void 0 ? void 0 : text.replace(new RegExp(this._startHighlightTag, 'g'), '').replace(new RegExp(this._endHighlightTag, 'g'), '');
|
|
206
168
|
return text;
|
|
207
169
|
}
|
|
208
170
|
getText() {
|
|
209
171
|
const currentValue = this.getSelectedOption(this._currentValue);
|
|
210
172
|
const text = this.getFormattedText(currentValue);
|
|
211
|
-
|
|
212
|
-
return;
|
|
213
|
-
}
|
|
214
|
-
return String(text)
|
|
215
|
-
.replace(/&/g, '&')
|
|
216
|
-
.replace(/</g, '<')
|
|
217
|
-
.replace(/>/g, '>')
|
|
218
|
-
.replace(/"/g, '"');
|
|
173
|
+
return replaceQuotes(text);
|
|
219
174
|
}
|
|
220
175
|
getSelectedOption(value) {
|
|
221
176
|
if (typeof value === "string" || value instanceof String) {
|
|
222
177
|
return this._visibleOptions.find(o => o.value === value);
|
|
223
178
|
}
|
|
224
179
|
if (value) {
|
|
225
|
-
return Object.assign(Object.assign({}, value), { value:
|
|
180
|
+
return Object.assign(Object.assign({}, value), { value: replaceHighlight(value === null || value === void 0 ? void 0 : value.value), label: replaceHighlight(value === null || value === void 0 ? void 0 : value.label) });
|
|
226
181
|
}
|
|
227
182
|
return value;
|
|
228
183
|
}
|
|
@@ -260,75 +215,19 @@ const EzSearch = class {
|
|
|
260
215
|
}
|
|
261
216
|
return 0;
|
|
262
217
|
}
|
|
263
|
-
createOption(detail) {
|
|
264
|
-
let { key, title } = detail;
|
|
265
|
-
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
266
|
-
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
267
|
-
title = StringUtils.decodeHtmlEntities(title);
|
|
268
|
-
const option = {
|
|
269
|
-
value: key === null || key === void 0 ? void 0 : key.replace(startHighlight, '').replace(endHighlight, ''),
|
|
270
|
-
label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
|
|
271
|
-
};
|
|
272
|
-
this.selectOption(option);
|
|
273
|
-
}
|
|
274
|
-
buildItem(opt, index) {
|
|
275
|
-
opt.label = opt.label || opt.value;
|
|
276
|
-
const card = {
|
|
277
|
-
key: opt.value,
|
|
278
|
-
title: opt.label,
|
|
279
|
-
details: opt.details
|
|
280
|
-
};
|
|
281
|
-
return h("div", { style: { "height": "100%" }, class: index === this._preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.createOption(card), onMouseOver: () => this._preSelection = index }, h("ez-card-item", { item: card }));
|
|
282
|
-
}
|
|
283
218
|
showOptions() {
|
|
284
219
|
if (!this.enabled)
|
|
285
220
|
return;
|
|
286
221
|
if (this.isOptionsVisible()) {
|
|
287
222
|
return;
|
|
288
223
|
}
|
|
289
|
-
|
|
290
|
-
this._resizeObserver.observe(this._textInput);
|
|
291
|
-
this._floatingID = FloatingManager.float(this._listWrapper, this._listContainer, { autoClose: false, isFixed: true, backClickListener: () => this.hideOptions() });
|
|
292
|
-
this.setFocus();
|
|
293
|
-
window.requestAnimationFrame(() => {
|
|
294
|
-
this.updateListPosition();
|
|
295
|
-
if (!this.listOptionsPosition) {
|
|
296
|
-
this._listWrapper.scrollIntoView({ behavior: "smooth", block: "nearest", inline: "nearest" });
|
|
297
|
-
}
|
|
298
|
-
});
|
|
224
|
+
this._ezPopOverPlusElement.showUnder(this._textInput);
|
|
299
225
|
}
|
|
300
226
|
hideOptions() {
|
|
301
|
-
|
|
302
|
-
FloatingManager.close(this._floatingID);
|
|
303
|
-
}
|
|
304
|
-
this._floatingID = undefined;
|
|
305
|
-
if (!!this._resizeObserver)
|
|
306
|
-
this._resizeObserver.unobserve(this._textInput);
|
|
227
|
+
this._ezPopOverPlusElement.hide();
|
|
307
228
|
}
|
|
308
229
|
isOptionsVisible() {
|
|
309
|
-
return this.
|
|
310
|
-
}
|
|
311
|
-
nextOption() {
|
|
312
|
-
if (!this.isOptionsVisible()) {
|
|
313
|
-
return;
|
|
314
|
-
}
|
|
315
|
-
this.showOptions();
|
|
316
|
-
this._preSelection = this._preSelection === undefined ? 0 : Math.min(this._preSelection + 1, this._visibleOptions.length - 1);
|
|
317
|
-
this.scrollToOption(this._visibleOptions[this._preSelection]);
|
|
318
|
-
}
|
|
319
|
-
previousOption() {
|
|
320
|
-
this._preSelection = this._preSelection === undefined ? 0 : Math.max(this._preSelection - 1, 0);
|
|
321
|
-
this.scrollToOption(this._visibleOptions[this._preSelection]);
|
|
322
|
-
}
|
|
323
|
-
scrollToOption(opt) {
|
|
324
|
-
window.requestAnimationFrame(() => {
|
|
325
|
-
const liElem = (opt === null || opt === void 0 ? void 0 : opt.value)
|
|
326
|
-
? this._optionsList.querySelector(`div#item_${opt.value.replace(/([ #;&,.+*~':"!^$[\]()=<>|/\\])/g, '\\$1')}`)
|
|
327
|
-
: undefined;
|
|
328
|
-
if (liElem) {
|
|
329
|
-
liElem.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
330
|
-
}
|
|
331
|
-
});
|
|
230
|
+
return this._ezPopOverPlusElement.opened;
|
|
332
231
|
}
|
|
333
232
|
selectCurrentOption() {
|
|
334
233
|
if (this._preSelection !== undefined) {
|
|
@@ -343,10 +242,13 @@ const EzSearch = class {
|
|
|
343
242
|
this._startLoading = false;
|
|
344
243
|
if (source instanceof Promise) {
|
|
345
244
|
this._showLoading = true;
|
|
245
|
+
this._showLoadingDescription = true;
|
|
346
246
|
source.then(result => {
|
|
347
|
-
this._showLoading = false;
|
|
348
247
|
this.updateSource(result);
|
|
349
|
-
}).
|
|
248
|
+
}).finally(() => {
|
|
249
|
+
this._showLoading = false;
|
|
250
|
+
this._showLoadingDescription = false;
|
|
251
|
+
});
|
|
350
252
|
this.updateVisibleOptions();
|
|
351
253
|
}
|
|
352
254
|
else {
|
|
@@ -356,7 +258,7 @@ const EzSearch = class {
|
|
|
356
258
|
this.updateVisibleOptions();
|
|
357
259
|
if (this._tabPressed) {
|
|
358
260
|
this._tabPressed = false;
|
|
359
|
-
this.controlEmptySearch();
|
|
261
|
+
this.controlEmptySearch(false);
|
|
360
262
|
}
|
|
361
263
|
}
|
|
362
264
|
else {
|
|
@@ -368,18 +270,14 @@ const EzSearch = class {
|
|
|
368
270
|
this._source = [];
|
|
369
271
|
this.updateVisibleOptions();
|
|
370
272
|
}
|
|
371
|
-
|
|
372
|
-
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
373
|
-
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
374
|
-
return (value !== null && value !== void 0 ? value : "").replace(startHighlight, '').replace(endHighlight, '');
|
|
375
|
-
}
|
|
376
|
-
selectOption(newOption) {
|
|
273
|
+
selectOption(newOption, focusOnInput = true) {
|
|
377
274
|
var _a, _b;
|
|
378
275
|
const currentValue = this.getSelectedOption(this.value);
|
|
379
|
-
const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value:
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
276
|
+
const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value: replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.value), label: replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.label) });
|
|
277
|
+
const newOptionsFormatted = Object.assign(Object.assign({}, newOptionsReplaced), { value: replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value), label: replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.label) });
|
|
278
|
+
if ((((_a = currentValue === null || currentValue === void 0 ? void 0 : currentValue.value) === null || _a === void 0 ? void 0 : _a.toString()) !== ((_b = newOptionsFormatted === null || newOptionsFormatted === void 0 ? void 0 : newOptionsFormatted.value) === null || _b === void 0 ? void 0 : _b.toString()))
|
|
279
|
+
|| (currentValue == undefined && newOptionsFormatted != undefined && "value" in newOptionsFormatted)) {
|
|
280
|
+
const adjustedOpt = !(newOptionsFormatted === null || newOptionsFormatted === void 0 ? void 0 : newOptionsFormatted.value) ? undefined : newOptionsFormatted;
|
|
383
281
|
this.value = adjustedOpt;
|
|
384
282
|
this._currentValue = adjustedOpt;
|
|
385
283
|
}
|
|
@@ -389,20 +287,25 @@ const EzSearch = class {
|
|
|
389
287
|
}
|
|
390
288
|
this._visibleOptions = [];
|
|
391
289
|
this.clearSource();
|
|
290
|
+
if (focusOnInput) {
|
|
291
|
+
setTimeout(() => {
|
|
292
|
+
this.setFocus();
|
|
293
|
+
}, 0);
|
|
294
|
+
}
|
|
392
295
|
}
|
|
393
296
|
loadOptions(mode, argument = "") {
|
|
394
297
|
this._criteria = argument;
|
|
395
298
|
this._startLoading = true;
|
|
396
299
|
if (this.optionLoader) {
|
|
397
300
|
const searchArgument = { mode, argument };
|
|
398
|
-
this.updateSource(this.optionLoader(searchArgument));
|
|
301
|
+
this.updateSource(this.optionLoader(searchArgument, this.contextProperties));
|
|
399
302
|
}
|
|
400
303
|
else {
|
|
401
304
|
this.updateSource(this.options);
|
|
402
305
|
}
|
|
403
306
|
}
|
|
404
307
|
cancelPreselection() {
|
|
405
|
-
if (!this._textInput.value && this._currentValue) {
|
|
308
|
+
if (!this._textInput.value && this._currentValue && this._source.length > 0) {
|
|
406
309
|
this.selectOption(undefined);
|
|
407
310
|
}
|
|
408
311
|
else {
|
|
@@ -425,7 +328,7 @@ const EzSearch = class {
|
|
|
425
328
|
this.value = null;
|
|
426
329
|
this._currentValue = null;
|
|
427
330
|
}
|
|
428
|
-
controlListWithOnlyOne() {
|
|
331
|
+
controlListWithOnlyOne(focusOnInput = true) {
|
|
429
332
|
var _a, _b;
|
|
430
333
|
const source = (_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.filter((opt) => opt.label !== "" && opt.value != undefined);
|
|
431
334
|
if ((source === null || source === void 0 ? void 0 : source.length) > 0) {
|
|
@@ -436,32 +339,19 @@ const EzSearch = class {
|
|
|
436
339
|
value: (_b = source[0].value) === null || _b === void 0 ? void 0 : _b.replace(startHighlight, '').replace(endHighlight, ''),
|
|
437
340
|
label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
|
|
438
341
|
};
|
|
439
|
-
this.selectOption(option);
|
|
342
|
+
this.selectOption(option, focusOnInput);
|
|
440
343
|
}
|
|
441
344
|
}
|
|
442
|
-
controlEmptySearch() {
|
|
345
|
+
controlEmptySearch(focusOnInput = true) {
|
|
443
346
|
var _a;
|
|
444
347
|
if (!((_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
445
348
|
this.clearSearch();
|
|
446
349
|
ApplicationUtils.info(this._textEmptyList);
|
|
447
350
|
}
|
|
448
351
|
else {
|
|
449
|
-
this.controlListWithOnlyOne();
|
|
352
|
+
this.controlListWithOnlyOne(focusOnInput);
|
|
450
353
|
}
|
|
451
354
|
}
|
|
452
|
-
validateDescriptionValue() {
|
|
453
|
-
if (StringUtils.isEmpty(this.value)) {
|
|
454
|
-
return;
|
|
455
|
-
}
|
|
456
|
-
if (!this.validateNewValue(this.value, this._currentValue)) {
|
|
457
|
-
return;
|
|
458
|
-
}
|
|
459
|
-
let value = this.value;
|
|
460
|
-
if (typeof value === "object") {
|
|
461
|
-
return;
|
|
462
|
-
}
|
|
463
|
-
this.loadDescriptionValue(value);
|
|
464
|
-
}
|
|
465
355
|
async loadDescriptionValue(argument) {
|
|
466
356
|
var _a, _b;
|
|
467
357
|
if (argument == undefined) {
|
|
@@ -475,7 +365,7 @@ const EzSearch = class {
|
|
|
475
365
|
mode: SearchMode.PREDICTIVE,
|
|
476
366
|
argument
|
|
477
367
|
};
|
|
478
|
-
const source = await ((_b = this.optionLoader) === null || _b === void 0 ? void 0 : _b.call(this, searchArgument));
|
|
368
|
+
const source = await ((_b = this.optionLoader) === null || _b === void 0 ? void 0 : _b.call(this, searchArgument, this.contextProperties));
|
|
479
369
|
if (source == undefined) {
|
|
480
370
|
return;
|
|
481
371
|
}
|
|
@@ -494,8 +384,17 @@ const EzSearch = class {
|
|
|
494
384
|
this.showNoResultMessage();
|
|
495
385
|
return;
|
|
496
386
|
}
|
|
497
|
-
this._currentValue = value ? Object.assign(Object.assign({}, value), { value:
|
|
387
|
+
this._currentValue = value ? Object.assign(Object.assign({}, value), { value: replaceHighlight(value.value), label: replaceHighlight(value.label) }) : value;
|
|
498
388
|
this.value = this._currentValue;
|
|
389
|
+
this.setTextInputValue();
|
|
390
|
+
}
|
|
391
|
+
setTextInputValue() {
|
|
392
|
+
if (this._textInput && (this._textInput.value === null || this._textInput.value === undefined)) {
|
|
393
|
+
if (this.value === undefined || this.value === null)
|
|
394
|
+
return;
|
|
395
|
+
const textValue = (typeof this.value === 'string') ? this.value : this.getFormattedText(this.value);
|
|
396
|
+
this._textInput.value = replaceQuotes(textValue);
|
|
397
|
+
}
|
|
499
398
|
}
|
|
500
399
|
loadOptionValue(argument) {
|
|
501
400
|
var _a;
|
|
@@ -521,6 +420,19 @@ const EzSearch = class {
|
|
|
521
420
|
this._preSelection = undefined;
|
|
522
421
|
this.updateVisibleOptions();
|
|
523
422
|
}
|
|
423
|
+
async handleInitialValue() {
|
|
424
|
+
const valueIsValid = !!this.getValue(this.value);
|
|
425
|
+
if (!valueIsValid) {
|
|
426
|
+
return;
|
|
427
|
+
}
|
|
428
|
+
if (typeof this.value === "string") {
|
|
429
|
+
await this.handleValueAsString(this.value);
|
|
430
|
+
return;
|
|
431
|
+
}
|
|
432
|
+
let text = this.getFormattedText(this.value);
|
|
433
|
+
text = replaceQuotes(text);
|
|
434
|
+
this._textInput.value = text;
|
|
435
|
+
}
|
|
524
436
|
//---------------------------------------------
|
|
525
437
|
// Lifecycle web component
|
|
526
438
|
//---------------------------------------------
|
|
@@ -545,28 +457,29 @@ const EzSearch = class {
|
|
|
545
457
|
}
|
|
546
458
|
componentDidRender() {
|
|
547
459
|
var _a;
|
|
548
|
-
if (this._floatingID === undefined) {
|
|
549
|
-
this._listWrapper.remove();
|
|
550
|
-
}
|
|
551
460
|
(_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
|
|
552
461
|
ElementIDUtils.addIDInfoIfNotExists(elem, "itemSearch");
|
|
553
462
|
});
|
|
554
|
-
this.validateDescriptionValue();
|
|
555
463
|
}
|
|
556
|
-
componentDidLoad() {
|
|
464
|
+
async componentDidLoad() {
|
|
557
465
|
this._currentValue = this.value;
|
|
558
466
|
CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
|
|
559
|
-
this.setInputValue(false);
|
|
560
467
|
this._resizeObserver = new ResizeObserver((entries) => {
|
|
561
468
|
window.requestAnimationFrame(() => {
|
|
562
469
|
if (!Array.isArray(entries) || !entries.length)
|
|
563
470
|
return;
|
|
564
|
-
const { clientWidth } = this._listContainer;
|
|
565
|
-
if (clientWidth > 0 && !!this._listWrapper) {
|
|
566
|
-
this._listWrapper.style.width = `${clientWidth < 610 ? 610 : clientWidth}px`;
|
|
567
|
-
}
|
|
568
471
|
});
|
|
569
472
|
});
|
|
473
|
+
await this.handleInitialValue();
|
|
474
|
+
if (this.autoFocus) {
|
|
475
|
+
requestAnimationFrame(() => {
|
|
476
|
+
this.setFocus({ selectText: true });
|
|
477
|
+
});
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
disconnectedCallback() {
|
|
481
|
+
var _a;
|
|
482
|
+
(_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
570
483
|
}
|
|
571
484
|
//---------------------------------------------
|
|
572
485
|
// Event handlers
|
|
@@ -621,7 +534,7 @@ const EzSearch = class {
|
|
|
621
534
|
this._changeDeboucingTimeout = null;
|
|
622
535
|
}
|
|
623
536
|
}
|
|
624
|
-
keyDownHandler(event) {
|
|
537
|
+
async keyDownHandler(event) {
|
|
625
538
|
this._tabPressed = false;
|
|
626
539
|
if (event.ctrlKey) {
|
|
627
540
|
if (event.key === "f" || event.key === "F") {
|
|
@@ -636,14 +549,24 @@ const EzSearch = class {
|
|
|
636
549
|
}
|
|
637
550
|
switch (event.key) {
|
|
638
551
|
case "ArrowDown":
|
|
639
|
-
this.nextOption();
|
|
640
552
|
event.stopPropagation();
|
|
553
|
+
if (this.canShowListOptions()) {
|
|
554
|
+
event.preventDefault();
|
|
555
|
+
}
|
|
556
|
+
if (!this.isOptionsVisible()) {
|
|
557
|
+
this.showOptions();
|
|
558
|
+
}
|
|
559
|
+
await this._searchList.nextOption();
|
|
641
560
|
break;
|
|
642
561
|
case "ArrowUp":
|
|
643
|
-
this.previousOption();
|
|
644
562
|
event.stopPropagation();
|
|
563
|
+
if (this.canShowListOptions()) {
|
|
564
|
+
event.preventDefault();
|
|
565
|
+
}
|
|
566
|
+
await this._searchList.previousOption();
|
|
645
567
|
break;
|
|
646
568
|
case "Enter":
|
|
569
|
+
this.handleEventPropagation(event);
|
|
647
570
|
this.selectCurrentOption();
|
|
648
571
|
break;
|
|
649
572
|
case "Escape":
|
|
@@ -651,7 +574,7 @@ const EzSearch = class {
|
|
|
651
574
|
break;
|
|
652
575
|
case "Tab":
|
|
653
576
|
this._tabPressed = true;
|
|
654
|
-
this.controlListWithOnlyOne();
|
|
577
|
+
this.controlListWithOnlyOne(false);
|
|
655
578
|
break;
|
|
656
579
|
}
|
|
657
580
|
//ATENÇÃO: Existe a necessidade de propagar o evento de teclado.
|
|
@@ -660,6 +583,12 @@ const EzSearch = class {
|
|
|
660
583
|
//e o contexto pode reagir (fechar um popup por exemplo).
|
|
661
584
|
//event.stopPropagation();
|
|
662
585
|
}
|
|
586
|
+
//O evento deve ter sua propagação interrompida, apenas se a lista de opções estiver sendo exibida.
|
|
587
|
+
handleEventPropagation(event) {
|
|
588
|
+
if (this._ezPopOverPlusElement.opened && this.stopPropagateEnterKeyEvent) {
|
|
589
|
+
event.stopPropagation();
|
|
590
|
+
}
|
|
591
|
+
}
|
|
663
592
|
onTextInputFocusOutHandler() {
|
|
664
593
|
if (this.hideErrorOnFocusOut)
|
|
665
594
|
this.cancelPreselection();
|
|
@@ -667,15 +596,18 @@ const EzSearch = class {
|
|
|
667
596
|
canShowListOptions() {
|
|
668
597
|
return !this._showLoading && this._visibleOptions.length > 0;
|
|
669
598
|
}
|
|
599
|
+
canShowLoadSpinDescription() {
|
|
600
|
+
return this._showLoadingDescription && !this._ezPopOverPlusElement.opened;
|
|
601
|
+
}
|
|
602
|
+
onChangePreSelection(value) {
|
|
603
|
+
this._preSelection = value;
|
|
604
|
+
}
|
|
670
605
|
render() {
|
|
671
606
|
var _a;
|
|
672
607
|
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
673
|
-
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), 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: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "search" })), (((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value) || this.
|
|
608
|
+
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), 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: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, this.canShowLoadSpinDescription() ? h("div", { class: "message__loading" }) : h("ez-icon", { iconName: "search" })), (((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value) || this.ensureClearButtonVisible)
|
|
674
609
|
? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
|
675
|
-
: undefined), h("
|
|
676
|
-
&& this._visibleOptions.length === 0
|
|
677
|
-
&& h("div", { class: "message" }, h("span", { class: "message__no-result" }, this._textEmptyList)), this._showLoading
|
|
678
|
-
&& h("div", { class: "message" }, h("div", { class: "message__loading" })), h("span", { class: "item__value item__value--hidden", ref: elem => this._itemValueBasis = elem }), this.canShowListOptions() && this._visibleOptions.map((opt, index) => this.buildItem(opt, index)))))));
|
|
610
|
+
: undefined), h("ez-popover-plus", { ref: elem => this._ezPopOverPlusElement = elem, autoClose: false, overlayType: "none", useAnchorSize: true, anchorElement: [this._textInput, this.el] }, h("search-list", { ref: (ref) => this._searchList = ref, showLoading: this._showLoading, visibleOptions: this._visibleOptions, textEmptyList: this._textEmptyList, canShowListOptions: this.canShowListOptions(), value: this.value, showOptionValue: this.showOptionValue, preSelection: this._preSelection, onChangeValue: ({ detail }) => this.selectOption(detail), onChangePreSelection: ({ detail }) => this.onChangePreSelection(detail) }))));
|
|
679
611
|
}
|
|
680
612
|
get el() { return getElement(this); }
|
|
681
613
|
static get watchers() { return {
|
|
@@ -28,7 +28,7 @@ const MESSAGES = {
|
|
|
28
28
|
PUSH_PIN_MENU: 'Fixar menu',
|
|
29
29
|
};
|
|
30
30
|
|
|
31
|
-
const ezSidebarNavigatorCss = ":host{--ez-sidebar-navigator--padding-left:var(--space--xs, 12px);--ez-sidebar-navigator--padding-right:var(--space--xs, 12px);--ez-sidebar-navigator--gap:var(--space--xs, 12px);--ez-sidebar-navigator--box-shadow:var(--shadow, 0px 0px 24px 0px #000);--ez-sidebar-navigator--background-color:var(--color--inverted);--ez-sidebar-navigator--border-radius:0px var(--border--radius-medium) var(--border--radius-medium) 0px;--ez-sidebar-navigator--height:calc(100vh - var(--space--lg, 24px));--ez-sidebar-navigator--header-gap:var(--space--xs, 12px);--ez-sidebar-navigator--footer-gap:var(--space--xs, 12px);--ez-ez-sidebar-navigator__title--font-family:var(--font-pattern, \"Roboto\");--ez-ez-sidebar-navigator__title--font-size:var(--title--medium, 16px);--ez-ez-sidebar-navigator__title--color:var(--title--primary, #2b3a54);--ez-ez-sidebar-navigator__title--font-weight:var(--text-weight--extra-large, 700)}.inverted{transform:rotate(180deg)}.ez-sidebar-navigator{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:var(--ez-sidebar-navigator--height);padding-top:var(--space--xs, 12px);padding-bottom:var(--space--xs, 12px);gap:var(--ez-sidebar-navigator--gap);padding-left:var(--ez-sidebar-navigator--padding-left);padding-right:var(--ez-sidebar-navigator--padding-right);background-color:var(--ez-sidebar-navigator--background-color);-webkit-box-shadow:var(--ez-sidebar-navigator--box-shadow);box-shadow:var(--ez-sidebar-navigator--box-shadow);border-radius:var(--ez-sidebar-navigator--border-radius)}.ez-sidebar-navigator__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;justify-content:space-between;gap:var(--ez-sidebar-navigator--header-gap)}.ez-sidebar-navigator__content{height:100%}.ez-sidebar-navigator__footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--ez-sidebar-navigator--footer-gap)}.ez-sidebar-navigator__title{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-family:var(--ez-ez-sidebar-navigator__title--font-family);font-size:var(--ez-ez-sidebar-navigator__title--font-size);font-weight:var(--ez-ez-sidebar-navigator__title--font-weight);color:var(--ez-ez-sidebar-navigator__title--color)}.ez-sidebar-navigator__end{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-left:auto;gap:var(--ez-sidebar-navigator--gap)}.dynamic{position:absolute;z-index:var(--
|
|
31
|
+
const ezSidebarNavigatorCss = ":host{--ez-sidebar-navigator--padding-left:var(--space--xs, 12px);--ez-sidebar-navigator--padding-right:var(--space--xs, 12px);--ez-sidebar-navigator--gap:var(--space--xs, 12px);--ez-sidebar-navigator--box-shadow:var(--shadow, 0px 0px 24px 0px #000);--ez-sidebar-navigator--background-color:var(--color--inverted);--ez-sidebar-navigator--border-radius:0px var(--border--radius-medium) var(--border--radius-medium) 0px;--ez-sidebar-navigator--height:calc(100vh - var(--space--lg, 24px));--ez-sidebar-navigator--z-index:var(--elevation--20, 20);--ez-sidebar-navigator--header-gap:var(--space--xs, 12px);--ez-sidebar-navigator--footer-gap:var(--space--xs, 12px);--ez-ez-sidebar-navigator__title--font-family:var(--font-pattern, \"Roboto\");--ez-ez-sidebar-navigator__title--font-size:var(--title--medium, 16px);--ez-ez-sidebar-navigator__title--color:var(--title--primary, #2b3a54);--ez-ez-sidebar-navigator__title--font-weight:var(--text-weight--extra-large, 700)}.inverted{transform:rotate(180deg)}.ez-sidebar-navigator{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;height:var(--ez-sidebar-navigator--height);padding-top:var(--space--xs, 12px);padding-bottom:var(--space--xs, 12px);outline:none;gap:var(--ez-sidebar-navigator--gap);padding-left:var(--ez-sidebar-navigator--padding-left);padding-right:var(--ez-sidebar-navigator--padding-right);background-color:var(--ez-sidebar-navigator--background-color);-webkit-box-shadow:var(--ez-sidebar-navigator--box-shadow);box-shadow:var(--ez-sidebar-navigator--box-shadow);border-radius:var(--ez-sidebar-navigator--border-radius)}.ez-sidebar-navigator__header{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;justify-content:space-between;gap:var(--ez-sidebar-navigator--header-gap)}.ez-sidebar-navigator__content{height:100%}.ez-sidebar-navigator__footer{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;gap:var(--ez-sidebar-navigator--footer-gap)}.ez-sidebar-navigator__title{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;font-family:var(--ez-ez-sidebar-navigator__title--font-family);font-size:var(--ez-ez-sidebar-navigator__title--font-size);font-weight:var(--ez-ez-sidebar-navigator__title--font-weight);color:var(--ez-ez-sidebar-navigator__title--color)}.ez-sidebar-navigator__end{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-left:auto;gap:var(--ez-sidebar-navigator--gap)}.dynamic{position:absolute;z-index:var(--ez-sidebar-navigator--z-index)}.fixed{position:relative}.hidden{display:none}.show{animation:fadeIn .1s ease-in-out 1}@keyframes fadeIn{from{transform:translate(-100%)}}.sm{width:240px}.md{width:280px}.lg{width:320px}@media screen and (max-width: 991px){.responsive{width:240px}}@media screen and (min-width: 992px){.responsive{width:280px}}@media screen and (min-width: 1200px){.responsive{width:320px}}";
|
|
32
32
|
|
|
33
33
|
const EzSidebarNavigator = class {
|
|
34
34
|
constructor(hostRef) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { r as registerInstance, c as createEvent, h, g as getElement } from './index-baa5e267.js';
|
|
2
2
|
import { ElementIDUtils } from '@sankhyalabs/core';
|
|
3
3
|
|
|
4
|
-
const ezSplitButtonCss = ":host{--ez-split-button--min-width:24;--ez-split-button--width:'auto';--ez-split-button__medium--height:32px;--ez-split-button__large--height:42px;--ez-split-button__medium-icon--width:40px;--ez-split-button__large-icon--width:44px;--ez-split-button__inline__icon--gap:6px;--ez-split-button__label--padding-top:0px;--ez-split-button__label--padding-bottom:0px;--ez-split-button__right-button--padding-left:8px;--ez-split-button--color:var(--title--primary, #
|
|
4
|
+
const ezSplitButtonCss = ":host{--ez-split-button--min-width:24;--ez-split-button--width:'auto';--ez-split-button__medium--height:32px;--ez-split-button__large--height:42px;--ez-split-button__medium-icon--width:40px;--ez-split-button__large-icon--width:44px;--ez-split-button__inline__icon--gap:6px;--ez-split-button__label--padding-top:0px;--ez-split-button__label--padding-bottom:0px;--ez-split-button__right-button--padding-left:8px;--ez-split-button--color:var(--title--primary, #2B3A54);--ez-split-button--font-size:var(--text--small, 12px);--ez-split-button--font-family:var(--font-pattern, Arial);--ez-split-button--font-weight:var(--text-weight--large);--ez-split-button--background-color:var(--background--light, #ffffff);--ez-split-button--border-radius:var(--border--radius-large, 24px);--ez-split-button--border:1px solid var(--color--strokes);--ez-split-button--justify-content:center;--ez-split-button--hover-color:var(--color--primary-600, #007a5a);--ez-split-button--hover--background-color:var(--background--light, #ffffff);--ez-split-button--disabled-color:var(--text--primary);--ez-split-button--disabled--background-color:var(--background--medium);--ez-split-button--focus--border:var(--border--medium, 2px) var(--color--primary-300);--ez-split-button--focus--box-shadow:none;--ez-split-button--active-color:var(--color--primary-700);--ez-split-button--active--background-color:var(--background--strong)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-split-button--min-width);width:var(--ez-split-button--width);height:var(--ez-split-button__medium--height);font-family:var(--ez-split-button--font-family);font-size:var(--ez-split-button--font-size);font-weight:var(--ez-split-button--font-weight);padding:var(--ez-split-button__label--padding-top) 0 var(--ez-split-button__label--padding-bottom) 0;border-top-left-radius:var(--ez-split-button--border-radius);border-bottom-left-radius:var(--ez-split-button--border-radius);background-color:var(--ez-split-button--background-color);color:var(--ez-split-button--color);fill:var(--ez-split-button--color);border:none;justify-content:var(--ez-split-button--justify-content)}label{cursor:pointer}button:active{outline:none;box-shadow:none;background-color:var(--ez-split-button--active--background-color);color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.ez-split-button__left-button{border:var(--ez-split-button--border);border-right:none;outline:none}.ez-split-button__right-button{border:var(--ez-split-button--border);border-left:none;outline:none}.ez-split-button__left-button:focus{box-shadow:0 0 0 2px var(--color--primary-300), \n 0 2px 0 0 var(--color--primary-300), \n 0 -2px 0 0 var(--color--primary-300);}.ez-split-button__right-button:focus{box-shadow:2px 0 0 0 var(--color--primary-300), \n 0 2px 0 0 var(--color--primary-300), \n 0 -2px 0 0 var(--color--primary-300);}.ez-split-button__left-button:hover,.ez-split-button__right-button:hover{outline:none;background-color:var(--ez-split-button--hover--background-color);color:var(--ez-split-button--hover-color);fill:var(--ez-split-button--hover-color);--ez-icon--color:var(--ez-split-button--hover-color)}.ez-split-button__left-button:active,.ez-split-button__right-button:active{outline:none;box-shadow:none;background-color:var(--ez-split-button--active--background-color);color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.ez-split-button__left-button:disabled,.ez-split-button__left-button:disabled label,.ez-split-button__right-button:disabled{background-color:var(--ez-split-button--disabled--background-color);color:var(--ez-split-button--disabled-color);fill:var(--ez-split-button--disabled-color);border:none;--ez-icon--color:var(--ez-split-button--disabled-color);cursor:not-allowed}.ez-split-button__left-button:disabled{border:var(--ez-split-button--disabled-border);border-right:none}.ez-split-button__right-button:disabled{border:var(--ez-split-button--disabled-border);border-left:none}button.large{height:var(--ez-split-button__large--height)}button.medium{height:var(--ez-split-button__medium--height)}.default label{padding:var(--ez-split-button__label--padding-top) 12px var(--ez-split-button__label--padding-bottom) 20px}.icon-left{gap:var(--ez-split-button__inline__icon--gap)}.icon-left label{padding-right:12px}.icon-left ez-icon{padding-left:20px}.icon-only{padding-left:12px;padding-right:12px}.ez-split-button__right-button{border-top-right-radius:var(--ez-split-button--border-radius);border-bottom-right-radius:var(--ez-split-button--border-radius);border-top-left-radius:0;border-bottom-left-radius:0;border-right:var(--ez-split-button--border)}.ez-split-button__right-button--medium{min-width:var(--ez-split-button__medium-icon--width)}.ez-split-button__right-button--large{min-width:var(--ez-split-button__large-icon--width)}.ez-split-button__right-button--divider{top:10%;bottom:10%}.ez-split-button__right-button--divider:before{content:\"\";position:absolute;left:0;border-left:1px solid rgba(0, 0, 0, 20%);border-radius:2px;height:75%}.btn-icon--medium{min-width:--ez-split-button__medium-icon--width}.btn-icon--large{min-width:--ez-split-button__large-icon--width}.ez-split-button__right-button-container{position:absolute;left:0;padding-left:var(--ez-split-button__right-button--padding-left)}.label-icon{display:flex;flex-direction:row;align-items:center;color:var(--ez-split-button--color)}.label-icon:active{color:var(--ez-split-button--active-color);fill:var(--ez-split-button--active-color);--ez-icon--color:var(--ez-split-button--active-color)}.dropdown{display:flex}.dropdown-content{display:block;position:absolute;background-color:#f1f1f1;min-width:160px;z-index:--ez-elevation--8;border-radius:var(--ez-split-button--border-radius)}.dropdown-content>ez-dropdown{position:relative}";
|
|
5
5
|
|
|
6
6
|
const EzSplitButton = class {
|
|
7
7
|
constructor(hostRef) {
|
|
@@ -49,7 +49,7 @@ const EzSplitButton = class {
|
|
|
49
49
|
}
|
|
50
50
|
getIconSize(sizeParam = 'medium') {
|
|
51
51
|
var _a;
|
|
52
|
-
const sizeList = ['medium', 'large'];
|
|
52
|
+
const sizeList = ['small', 'medium', 'large'];
|
|
53
53
|
const sizeLowerCase = (_a = this.size) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
54
54
|
return sizeList.includes(sizeLowerCase) ? sizeLowerCase : sizeParam;
|
|
55
55
|
}
|