@sankhyalabs/ezui 5.22.0-dev.7 → 5.22.0-dev.71
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/DataBinder-b4ef826a.js +445 -0
- package/dist/cjs/FocusResolver-885f2173.js +35 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js +4 -3
- package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-alert.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +1 -1
- package/dist/cjs/ez-badge.cjs.entry.js +1 -1
- package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ez-button.cjs.entry.js +12 -6
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ez-card-item_2.cjs.entry.js +76 -0
- package/dist/cjs/ez-chart.cjs.entry.js +1 -1
- package/dist/cjs/ez-check.cjs.entry.js +2 -2
- 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.cjs.entry.js +68 -14
- package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +37 -7
- package/dist/cjs/ez-date-input.cjs.entry.js +15 -5
- package/dist/cjs/ez-date-time-input.cjs.entry.js +12 -5
- package/dist/cjs/ez-dialog.cjs.entry.js +11 -3
- 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} +76 -9
- package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-filter-input.cjs.entry.js +130 -0
- package/dist/cjs/ez-form-view.cjs.entry.js +30 -23
- package/dist/cjs/ez-form.cjs.entry.js +7 -326
- package/dist/cjs/ez-grid.cjs.entry.js +14946 -69807
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-icon.cjs.entry.js +2 -2
- package/dist/cjs/ez-list.cjs.entry.js +259 -212
- package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +3 -2
- package/dist/cjs/ez-modal.cjs.entry.js +20 -5
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +3 -3
- package/dist/cjs/ez-number-input.cjs.entry.js +16 -3
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +25 -3
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-scroller_2.cjs.entry.js +4 -4
- package/dist/cjs/ez-search.cjs.entry.js +106 -46
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +2 -2
- package/dist/cjs/ez-split-button.cjs.entry.js +3 -3
- package/dist/cjs/ez-split-item.cjs.entry.js +4 -3
- package/dist/cjs/ez-split-panel.cjs.entry.js +69 -7
- package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-area.cjs.entry.js +68 -6
- package/dist/cjs/ez-text-input.cjs.entry.js +154 -17
- package/dist/cjs/ez-time-input.cjs.entry.js +9 -2
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ez-tooltip.cjs.entry.js +55 -0
- package/dist/cjs/ez-tree.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +1 -1
- package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
- package/dist/cjs/ezListHelper-0d3970b4.js +90 -0
- package/dist/cjs/ezui.cjs.js +2 -2
- package/dist/cjs/filter-column.cjs.entry.js +3 -3
- package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +16 -11
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +3 -1
- package/dist/collection/components/ez-actions-button/ez-actions-button.js +3 -2
- package/dist/collection/components/ez-button/ez-button.css +23 -13
- package/dist/collection/components/ez-button/ez-button.js +12 -6
- package/dist/collection/components/ez-card-item/ez-card-item.css +60 -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-collapsible-box/ez-collapsible-box.css +2 -2
- package/dist/collection/components/ez-combo-box/ez-combo-box.css +13 -1
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +130 -15
- 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 -5
- 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 +55 -5
- package/dist/collection/components/ez-dialog/ez-dialog.css +3 -3
- package/dist/collection/components/ez-dialog/ez-dialog.js +9 -1
- 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.js +55 -5
- package/dist/collection/components/ez-form/ez-form.js +1 -0
- 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 +5 -2
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +2 -1
- 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 +3 -2
- 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 +282 -57
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +107 -5
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +219 -42
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +16 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +8 -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/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 +47 -8
- package/dist/collection/components/ez-grid/ez-grid.js +220 -7
- package/dist/collection/components/ez-grid/subcomponents/filter-column.css +4 -0
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +1 -1
- package/dist/collection/components/ez-icon/ez-icon.css +153 -149
- package/dist/collection/components/ez-list/ez-list.css +2 -1
- 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 +5 -1
- package/dist/collection/components/ez-modal/ez-modal.js +38 -5
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +20 -1
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +2 -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 +68 -1
- package/dist/collection/components/ez-popup/ez-popup.css +8 -3
- package/dist/collection/components/ez-popup/ez-popup.js +43 -3
- package/dist/collection/components/ez-scroller/ez-scroller.css +1 -0
- package/dist/collection/components/ez-search/ez-search.css +21 -10
- package/dist/collection/components/ez-search/ez-search.js +189 -49
- 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 +3 -1
- package/dist/collection/components/ez-split-button/ez-split-button.css +50 -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 +20 -1
- package/dist/collection/components/ez-text-area/ez-text-area.css +73 -28
- package/dist/collection/components/ez-text-area/ez-text-area.js +103 -3
- package/dist/collection/components/ez-text-input/ez-text-input.css +106 -91
- package/dist/collection/components/ez-text-input/ez-text-input.js +185 -15
- package/dist/collection/components/ez-time-input/ez-time-input.js +44 -1
- package/dist/collection/components/ez-tooltip/ez-tooltip.css +20 -0
- package/dist/collection/components/ez-tooltip/ez-tooltip.js +116 -0
- package/dist/collection/sw.js +46 -0
- package/dist/collection/utils/FocusResolver.js +31 -0
- package/dist/collection/utils/ResponsiveInputUtils.js +26 -0
- package/dist/collection/utils/form/DataBinder.js +20 -5
- package/dist/collection/utils/form/FormMetadata.js +2 -1
- package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
- 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 +12 -0
- package/dist/custom-elements/index.js +16564 -70385
- package/dist/esm/DataBinder-d2ecbb0f.js +441 -0
- package/dist/esm/FocusResolver-1ccbf850.js +33 -0
- package/dist/esm/ez-actions-button.entry.js +4 -3
- package/dist/esm/ez-alert-list.entry.js +1 -1
- package/dist/esm/ez-alert.entry.js +1 -1
- package/dist/esm/ez-application.entry.js +1 -1
- package/dist/esm/ez-badge.entry.js +1 -1
- package/dist/esm/ez-breadcrumb.entry.js +1 -1
- package/dist/esm/ez-button.entry.js +12 -6
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/ez-card-item_2.entry.js +71 -0
- package/dist/esm/ez-chart.entry.js +1 -1
- package/dist/esm/ez-check.entry.js +2 -2
- 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.entry.js +69 -15
- package/dist/esm/ez-custom-form-input_2.entry.js +38 -8
- package/dist/esm/ez-date-input.entry.js +15 -5
- package/dist/esm/ez-date-time-input.entry.js +12 -5
- package/dist/esm/ez-dialog.entry.js +11 -3
- package/dist/esm/ez-double-list.entry.js +283 -0
- package/dist/esm/{ez-dropdown.entry.js → ez-dropdown_2.entry.js} +76 -10
- package/dist/esm/ez-file-item.entry.js +1 -1
- package/dist/esm/ez-filter-input.entry.js +126 -0
- package/dist/esm/ez-form-view.entry.js +30 -23
- package/dist/esm/ez-form.entry.js +6 -325
- package/dist/esm/ez-grid.entry.js +14945 -69806
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-icon.entry.js +2 -2
- package/dist/esm/ez-list.entry.js +259 -212
- package/dist/esm/ez-loading-bar.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +3 -2
- package/dist/esm/ez-modal.entry.js +20 -5
- package/dist/esm/ez-multi-selection-list.entry.js +3 -3
- package/dist/esm/ez-number-input.entry.js +16 -3
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +25 -3
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-scroller_2.entry.js +4 -4
- package/dist/esm/ez-search.entry.js +106 -46
- package/dist/esm/ez-sidebar-navigator.entry.js +2 -2
- package/dist/esm/ez-split-button.entry.js +3 -3
- package/dist/esm/ez-split-item.entry.js +4 -3
- package/dist/esm/ez-split-panel.entry.js +69 -7
- package/dist/esm/ez-tabselector.entry.js +1 -1
- package/dist/esm/ez-text-area.entry.js +68 -6
- package/dist/esm/ez-text-input.entry.js +154 -17
- package/dist/esm/ez-time-input.entry.js +9 -2
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ez-tooltip.entry.js +51 -0
- package/dist/esm/ez-tree.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +1 -1
- package/dist/esm/ez-view-stack.entry.js +1 -1
- package/dist/esm/ezListHelper-00fb9b8d.js +87 -0
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/filter-column.entry.js +3 -3
- package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +17 -11
- package/dist/esm/loader.js +3 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-e6b38ade.entry.js → p-0306dff7.entry.js} +1 -1
- package/dist/ezui/{p-91ccae0c.entry.js → p-09de35a2.entry.js} +1 -1
- package/dist/ezui/p-14b769d7.entry.js +1 -0
- package/dist/ezui/p-16e612fc.entry.js +1 -0
- package/dist/ezui/{p-b2f6bc0a.entry.js → p-17be134a.entry.js} +1 -1
- package/dist/ezui/p-17eabf46.entry.js +1 -0
- package/dist/ezui/p-181b5ae8.entry.js +1 -0
- package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
- package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
- package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
- package/dist/ezui/p-2475fd6e.entry.js +1 -0
- package/dist/ezui/p-2bb2a0c4.entry.js +1 -0
- package/dist/ezui/p-3175fe8c.entry.js +1 -0
- package/dist/ezui/{p-30951bd7.entry.js → p-35d467a8.entry.js} +1 -1
- package/dist/ezui/p-3f2dd525.entry.js +1 -0
- package/dist/ezui/{p-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
- package/dist/ezui/p-50d83a46.entry.js +1 -0
- package/dist/ezui/{p-7567ccdd.entry.js → p-555c9018.entry.js} +1 -1
- package/dist/ezui/{p-044d46d5.entry.js → p-5b205c80.entry.js} +1 -1
- package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
- package/dist/ezui/{p-f1c2c19e.entry.js → p-650e4b6d.entry.js} +1 -1
- package/dist/ezui/p-654b3f99.entry.js +1 -0
- package/dist/ezui/p-65f471bc.entry.js +1 -0
- package/dist/ezui/p-66924de6.entry.js +1 -0
- package/dist/ezui/p-6cdd3e0a.entry.js +1 -0
- package/dist/ezui/p-6d79930d.entry.js +1 -0
- package/dist/ezui/{p-fc194825.entry.js → p-6e429cff.entry.js} +1 -1
- package/dist/ezui/p-6f22a385.entry.js +1 -0
- package/dist/ezui/p-7409eeaa.entry.js +1 -0
- package/dist/ezui/{p-11bfeca3.entry.js → p-77a4bd35.entry.js} +1 -1
- package/dist/ezui/p-7e677b7b.entry.js +1 -0
- package/dist/ezui/p-7ed30844.entry.js +1 -0
- package/dist/ezui/p-7fdd479f.entry.js +1 -0
- package/dist/ezui/p-80dfc50b.js +1 -0
- package/dist/ezui/{p-1b08bf3c.entry.js → p-8888d9ed.entry.js} +1 -1
- package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
- package/dist/ezui/p-990b4318.entry.js +1 -0
- package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
- package/dist/ezui/p-a6fe527a.entry.js +1 -0
- package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
- package/dist/ezui/p-b6a4e6de.entry.js +1 -0
- package/dist/ezui/p-bc2f844e.entry.js +1 -0
- package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
- package/dist/ezui/p-c3045972.entry.js +1 -0
- package/dist/ezui/{p-82ac8b06.entry.js → p-c4320a39.entry.js} +1 -1
- package/dist/ezui/p-ca6340a9.entry.js +1 -0
- package/dist/ezui/p-ceadecd9.js +1 -0
- package/dist/ezui/p-d0ca26fe.entry.js +1 -0
- package/dist/ezui/p-d520839d.entry.js +1 -0
- package/dist/ezui/p-dc628ed3.js +1 -0
- package/dist/ezui/p-dc8b36c3.entry.js +1 -0
- package/dist/ezui/p-dd48941c.entry.js +309 -0
- package/dist/ezui/{p-9aa27e69.entry.js → p-e347df9c.entry.js} +1 -1
- package/dist/ezui/p-e3e3fd7a.entry.js +1 -0
- package/dist/ezui/p-fa6732f2.entry.js +1 -0
- package/dist/ezui/p-fec696ab.entry.js +1 -0
- package/dist/types/components/ez-button/ez-button.d.ts +2 -1
- package/dist/types/components/ez-card-item/ez-card-item.d.ts +5 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +16 -1
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +10 -1
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +10 -1
- package/dist/types/components/ez-dialog/ez-dialog.d.ts +2 -0
- 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 +10 -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/fieldbuilder/templates/DateInput.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +1 -1
- 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 +60 -4
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +36 -4
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +23 -1
- package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +33 -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/mock/Server.d.ts +1 -1
- package/dist/types/components/ez-grid/ez-grid.d.ts +37 -1
- 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 +7 -1
- package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +4 -0
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +12 -0
- package/dist/types/components/ez-popup/ez-popup.d.ts +8 -1
- package/dist/types/components/ez-search/ez-search.d.ts +29 -5
- 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 +4 -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 +28 -2
- package/dist/types/components/ez-time-input/ez-time-input.d.ts +8 -0
- package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +21 -0
- package/dist/types/components.d.ts +448 -25
- package/dist/types/utils/FocusResolver.d.ts +5 -0
- package/dist/types/utils/ResponsiveInputUtils.d.ts +6 -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/validators/recordvalidator/IInvalidCells.d.ts +5 -0
- package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
- package/package.json +12 -4
- package/react/components.d.ts +2 -0
- package/react/components.js +2 -0
- package/react/components.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-skeleton.cjs.entry.js +0 -67
- package/dist/esm/RecordValidationProcessor-b00b8b77.js +0 -99
- package/dist/esm/ez-card-item_3.entry.js +0 -177
- package/dist/esm/ez-skeleton.entry.js +0 -63
- package/dist/ezui/p-04f24913.js +0 -1
- package/dist/ezui/p-11b09aa1.entry.js +0 -1
- package/dist/ezui/p-24ca32a3.entry.js +0 -1
- package/dist/ezui/p-2af4e2de.entry.js +0 -1
- package/dist/ezui/p-31674f8e.entry.js +0 -1
- package/dist/ezui/p-33792b2b.entry.js +0 -1
- package/dist/ezui/p-33b08253.entry.js +0 -304
- package/dist/ezui/p-36180f4d.entry.js +0 -1
- package/dist/ezui/p-3f8c33e0.entry.js +0 -1
- package/dist/ezui/p-5fefcdc9.entry.js +0 -1
- package/dist/ezui/p-6ec40dec.entry.js +0 -1
- package/dist/ezui/p-752c4069.entry.js +0 -1
- package/dist/ezui/p-81cffa53.entry.js +0 -1
- package/dist/ezui/p-81f99ace.entry.js +0 -1
- package/dist/ezui/p-868b56f7.entry.js +0 -1
- package/dist/ezui/p-8eef0f70.entry.js +0 -1
- package/dist/ezui/p-9634631d.entry.js +0 -1
- package/dist/ezui/p-9a11e223.entry.js +0 -1
- package/dist/ezui/p-9a23d513.entry.js +0 -1
- package/dist/ezui/p-9c2e2d68.entry.js +0 -1
- package/dist/ezui/p-a35b41e6.entry.js +0 -1
- package/dist/ezui/p-acbf0e76.entry.js +0 -1
- package/dist/ezui/p-b0e71d23.entry.js +0 -1
- package/dist/ezui/p-c3b7a23e.entry.js +0 -1
- package/dist/ezui/p-cd1a2e6b.entry.js +0 -1
- package/dist/ezui/p-dbeee5aa.entry.js +0 -1
- package/dist/ezui/p-de870657.entry.js +0 -1
- package/dist/ezui/p-e151e795.entry.js +0 -1
- package/dist/ezui/p-ee9315ff.entry.js +0 -1
- package/dist/ezui/p-f1c3f85d.entry.js +0 -1
- package/dist/ezui/p-f291db18.entry.js +0 -1
|
@@ -18,6 +18,7 @@ export class EzSearch {
|
|
|
18
18
|
this._visibleOptions = undefined;
|
|
19
19
|
this._startLoading = false;
|
|
20
20
|
this._showLoading = true;
|
|
21
|
+
this._showLoadingDescription = false;
|
|
21
22
|
this._criteria = undefined;
|
|
22
23
|
this.value = undefined;
|
|
23
24
|
this.label = undefined;
|
|
@@ -27,15 +28,19 @@ export class EzSearch {
|
|
|
27
28
|
this.showSelectedValue = true;
|
|
28
29
|
this.showOptionValue = true;
|
|
29
30
|
this.suppressEmptyOption = false;
|
|
31
|
+
this.stopPropagateEnterKeyEvent = false;
|
|
30
32
|
this.mode = "regular";
|
|
31
33
|
this.canShowError = true;
|
|
32
34
|
this.hideErrorOnFocusOut = true;
|
|
33
35
|
this.listOptionsPosition = undefined;
|
|
34
36
|
this.isTextSearch = false;
|
|
35
37
|
this.ignoreLimitCharsToSearch = false;
|
|
38
|
+
this.noMargin = false;
|
|
36
39
|
this.options = undefined;
|
|
37
40
|
this.suppressSearch = false;
|
|
38
|
-
this.
|
|
41
|
+
this.ensureClearButtonVisible = false;
|
|
42
|
+
this.suppressPreLoad = true;
|
|
43
|
+
this.autoFocus = false;
|
|
39
44
|
}
|
|
40
45
|
observeErrorMessage() {
|
|
41
46
|
var _a;
|
|
@@ -46,12 +51,21 @@ export class EzSearch {
|
|
|
46
51
|
}
|
|
47
52
|
}
|
|
48
53
|
}
|
|
54
|
+
getValue(val) {
|
|
55
|
+
return typeof val === 'object' ? val === null || val === void 0 ? void 0 : val.value : val;
|
|
56
|
+
}
|
|
49
57
|
validateNewValue(newValue, oldValue) {
|
|
50
|
-
const
|
|
51
|
-
|
|
58
|
+
const parsedNewValue = this.getValue(newValue);
|
|
59
|
+
const parsedOldValue = this.getValue(oldValue);
|
|
60
|
+
const newValueIsValid = parsedNewValue !== "[object Object]";
|
|
61
|
+
const valuesIsDifferent = parsedNewValue !== parsedOldValue;
|
|
62
|
+
if (newValueIsValid && valuesIsDifferent) {
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
return false;
|
|
52
66
|
}
|
|
53
67
|
async observeValue(newValue, oldValue) {
|
|
54
|
-
if (this._textInput &&
|
|
68
|
+
if (this._textInput && this.validateNewValue(newValue, oldValue)) {
|
|
55
69
|
if (typeof newValue === "string") {
|
|
56
70
|
await this.handleValueAsString(newValue);
|
|
57
71
|
return;
|
|
@@ -68,7 +82,7 @@ export class EzSearch {
|
|
|
68
82
|
}
|
|
69
83
|
}
|
|
70
84
|
observeOptions(newOptions, oldOptions) {
|
|
71
|
-
if (!newOptions.length && this.
|
|
85
|
+
if (!newOptions.length && this.suppressPreLoad)
|
|
72
86
|
return;
|
|
73
87
|
if ((newOptions === null || newOptions === void 0 ? void 0 : newOptions.join('')) === (oldOptions === null || oldOptions === void 0 ? void 0 : oldOptions.join('')))
|
|
74
88
|
return;
|
|
@@ -94,9 +108,9 @@ export class EzSearch {
|
|
|
94
108
|
/**
|
|
95
109
|
* Aplica o foco no campo.
|
|
96
110
|
*/
|
|
97
|
-
async setFocus() {
|
|
111
|
+
async setFocus(options) {
|
|
98
112
|
if (this._textInput) {
|
|
99
|
-
this._textInput.setFocus();
|
|
113
|
+
this._textInput.setFocus(options);
|
|
100
114
|
}
|
|
101
115
|
}
|
|
102
116
|
/**
|
|
@@ -139,6 +153,9 @@ export class EzSearch {
|
|
|
139
153
|
return;
|
|
140
154
|
}
|
|
141
155
|
await this.loadDescriptionValue(value);
|
|
156
|
+
if (!this._currentValue) {
|
|
157
|
+
return;
|
|
158
|
+
}
|
|
142
159
|
this.setInputValue();
|
|
143
160
|
this.ezChange.emit(this.value);
|
|
144
161
|
this._currentValue = this.value;
|
|
@@ -183,7 +200,7 @@ export class EzSearch {
|
|
|
183
200
|
return this.listOptionsPosition;
|
|
184
201
|
}
|
|
185
202
|
return {
|
|
186
|
-
verticalPosition:
|
|
203
|
+
verticalPosition: 6
|
|
187
204
|
};
|
|
188
205
|
}
|
|
189
206
|
isDifferentValues(firstValue, secondValue) {
|
|
@@ -193,13 +210,16 @@ export class EzSearch {
|
|
|
193
210
|
if (currentValue == undefined) {
|
|
194
211
|
return;
|
|
195
212
|
}
|
|
196
|
-
let text = (!this.showSelectedValue || currentValue.value == undefined) ? currentValue.label : `${currentValue.value} - ${currentValue.label}
|
|
197
|
-
text = text.replace(new RegExp(this._startHighlightTag, 'g'), '').replace(new RegExp(this._endHighlightTag, 'g'), '');
|
|
213
|
+
let text = (!this.showSelectedValue || currentValue.value == undefined) ? currentValue.label : currentValue.label ? `${currentValue.value} - ${currentValue.label}` : currentValue.value;
|
|
214
|
+
text = text === null || text === void 0 ? void 0 : text.replace(new RegExp(this._startHighlightTag, 'g'), '').replace(new RegExp(this._endHighlightTag, 'g'), '');
|
|
198
215
|
return text;
|
|
199
216
|
}
|
|
200
217
|
getText() {
|
|
201
218
|
const currentValue = this.getSelectedOption(this._currentValue);
|
|
202
219
|
const text = this.getFormattedText(currentValue);
|
|
220
|
+
return this.replaceQuotes(text);
|
|
221
|
+
}
|
|
222
|
+
replaceQuotes(text) {
|
|
203
223
|
if (text == undefined) {
|
|
204
224
|
return;
|
|
205
225
|
}
|
|
@@ -270,7 +290,7 @@ export class EzSearch {
|
|
|
270
290
|
title: opt.label,
|
|
271
291
|
details: opt.details
|
|
272
292
|
};
|
|
273
|
-
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 }));
|
|
293
|
+
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, compacted: true, enableKey: this.showOptionValue }));
|
|
274
294
|
}
|
|
275
295
|
showOptions() {
|
|
276
296
|
if (!this.enabled)
|
|
@@ -335,10 +355,13 @@ export class EzSearch {
|
|
|
335
355
|
this._startLoading = false;
|
|
336
356
|
if (source instanceof Promise) {
|
|
337
357
|
this._showLoading = true;
|
|
358
|
+
this._showLoadingDescription = true;
|
|
338
359
|
source.then(result => {
|
|
339
|
-
this._showLoading = false;
|
|
340
360
|
this.updateSource(result);
|
|
341
|
-
}).
|
|
361
|
+
}).finally(() => {
|
|
362
|
+
this._showLoading = false;
|
|
363
|
+
this._showLoadingDescription = false;
|
|
364
|
+
});
|
|
342
365
|
this.updateVisibleOptions();
|
|
343
366
|
}
|
|
344
367
|
else {
|
|
@@ -348,7 +371,7 @@ export class EzSearch {
|
|
|
348
371
|
this.updateVisibleOptions();
|
|
349
372
|
if (this._tabPressed) {
|
|
350
373
|
this._tabPressed = false;
|
|
351
|
-
this.controlEmptySearch();
|
|
374
|
+
this.controlEmptySearch(false);
|
|
352
375
|
}
|
|
353
376
|
}
|
|
354
377
|
else {
|
|
@@ -363,15 +386,16 @@ export class EzSearch {
|
|
|
363
386
|
replaceHighlight(value) {
|
|
364
387
|
const startHighlight = new RegExp(this._startHighlightTag, 'g');
|
|
365
388
|
const endHighlight = new RegExp(this._endHighlightTag, 'g');
|
|
366
|
-
return (value !== null && value !== void 0 ? value : "").replace(startHighlight, '').replace(endHighlight, '');
|
|
389
|
+
return String(value !== null && value !== void 0 ? value : "").replace(startHighlight, '').replace(endHighlight, '');
|
|
367
390
|
}
|
|
368
|
-
selectOption(newOption) {
|
|
391
|
+
selectOption(newOption, focusOnInput = true) {
|
|
369
392
|
var _a, _b;
|
|
370
393
|
const currentValue = this.getSelectedOption(this.value);
|
|
371
394
|
const newOptionsReplaced = Object.assign(Object.assign({}, newOption), { value: this.replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.value), label: this.replaceHighlight(newOption === null || newOption === void 0 ? void 0 : newOption.label) });
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
395
|
+
const newOptionsFormatted = Object.assign(Object.assign({}, newOptionsReplaced), { value: this.replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.value), label: this.replaceQuotes(newOptionsReplaced === null || newOptionsReplaced === void 0 ? void 0 : newOptionsReplaced.label) });
|
|
396
|
+
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()))
|
|
397
|
+
|| (currentValue == undefined && newOptionsFormatted != undefined && "value" in newOptionsFormatted)) {
|
|
398
|
+
const adjustedOpt = !(newOptionsFormatted === null || newOptionsFormatted === void 0 ? void 0 : newOptionsFormatted.value) ? undefined : newOptionsFormatted;
|
|
375
399
|
this.value = adjustedOpt;
|
|
376
400
|
this._currentValue = adjustedOpt;
|
|
377
401
|
}
|
|
@@ -381,6 +405,11 @@ export class EzSearch {
|
|
|
381
405
|
}
|
|
382
406
|
this._visibleOptions = [];
|
|
383
407
|
this.clearSource();
|
|
408
|
+
if (focusOnInput) {
|
|
409
|
+
setTimeout(() => {
|
|
410
|
+
this.setFocus();
|
|
411
|
+
}, 0);
|
|
412
|
+
}
|
|
384
413
|
}
|
|
385
414
|
loadOptions(mode, argument = "") {
|
|
386
415
|
this._criteria = argument;
|
|
@@ -417,7 +446,7 @@ export class EzSearch {
|
|
|
417
446
|
this.value = null;
|
|
418
447
|
this._currentValue = null;
|
|
419
448
|
}
|
|
420
|
-
controlListWithOnlyOne() {
|
|
449
|
+
controlListWithOnlyOne(focusOnInput = true) {
|
|
421
450
|
var _a, _b;
|
|
422
451
|
const source = (_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.filter((opt) => opt.label !== "" && opt.value != undefined);
|
|
423
452
|
if ((source === null || source === void 0 ? void 0 : source.length) > 0) {
|
|
@@ -428,32 +457,19 @@ export class EzSearch {
|
|
|
428
457
|
value: (_b = source[0].value) === null || _b === void 0 ? void 0 : _b.replace(startHighlight, '').replace(endHighlight, ''),
|
|
429
458
|
label: title === null || title === void 0 ? void 0 : title.replace(startHighlight, '').replace(endHighlight, '')
|
|
430
459
|
};
|
|
431
|
-
this.selectOption(option);
|
|
460
|
+
this.selectOption(option, focusOnInput);
|
|
432
461
|
}
|
|
433
462
|
}
|
|
434
|
-
controlEmptySearch() {
|
|
463
|
+
controlEmptySearch(focusOnInput = true) {
|
|
435
464
|
var _a;
|
|
436
465
|
if (!((_a = this._visibleOptions) === null || _a === void 0 ? void 0 : _a.length)) {
|
|
437
466
|
this.clearSearch();
|
|
438
467
|
ApplicationUtils.info(this._textEmptyList);
|
|
439
468
|
}
|
|
440
469
|
else {
|
|
441
|
-
this.controlListWithOnlyOne();
|
|
470
|
+
this.controlListWithOnlyOne(focusOnInput);
|
|
442
471
|
}
|
|
443
472
|
}
|
|
444
|
-
validateDescriptionValue() {
|
|
445
|
-
if (StringUtils.isEmpty(this.value)) {
|
|
446
|
-
return;
|
|
447
|
-
}
|
|
448
|
-
if (!this.validateNewValue(this.value, this._currentValue)) {
|
|
449
|
-
return;
|
|
450
|
-
}
|
|
451
|
-
let value = this.value;
|
|
452
|
-
if (typeof value === "object") {
|
|
453
|
-
return;
|
|
454
|
-
}
|
|
455
|
-
this.loadDescriptionValue(value);
|
|
456
|
-
}
|
|
457
473
|
async loadDescriptionValue(argument) {
|
|
458
474
|
var _a, _b;
|
|
459
475
|
if (argument == undefined) {
|
|
@@ -488,6 +504,15 @@ export class EzSearch {
|
|
|
488
504
|
}
|
|
489
505
|
this._currentValue = value ? Object.assign(Object.assign({}, value), { value: this.replaceHighlight(value.value), label: this.replaceHighlight(value.label) }) : value;
|
|
490
506
|
this.value = this._currentValue;
|
|
507
|
+
this.setTextInputValue();
|
|
508
|
+
}
|
|
509
|
+
setTextInputValue() {
|
|
510
|
+
if (this._textInput && (this._textInput.value === null || this._textInput.value === undefined)) {
|
|
511
|
+
if (this.value === undefined || this.value === null)
|
|
512
|
+
return;
|
|
513
|
+
const textValue = (typeof this.value === 'string') ? this.value : this.getFormattedText(this.value);
|
|
514
|
+
this._textInput.value = this.replaceQuotes(textValue);
|
|
515
|
+
}
|
|
491
516
|
}
|
|
492
517
|
loadOptionValue(argument) {
|
|
493
518
|
var _a;
|
|
@@ -513,6 +538,19 @@ export class EzSearch {
|
|
|
513
538
|
this._preSelection = undefined;
|
|
514
539
|
this.updateVisibleOptions();
|
|
515
540
|
}
|
|
541
|
+
async handleInitialValue() {
|
|
542
|
+
const valueIsValid = !!this.getValue(this.value);
|
|
543
|
+
if (!valueIsValid) {
|
|
544
|
+
return;
|
|
545
|
+
}
|
|
546
|
+
if (typeof this.value === "string") {
|
|
547
|
+
await this.handleValueAsString(this.value);
|
|
548
|
+
return;
|
|
549
|
+
}
|
|
550
|
+
let text = this.getFormattedText(this.value);
|
|
551
|
+
text = this.replaceQuotes(text);
|
|
552
|
+
this._textInput.value = text;
|
|
553
|
+
}
|
|
516
554
|
//---------------------------------------------
|
|
517
555
|
// Lifecycle web component
|
|
518
556
|
//---------------------------------------------
|
|
@@ -543,12 +581,10 @@ export class EzSearch {
|
|
|
543
581
|
(_a = this._optionsList) === null || _a === void 0 ? void 0 : _a.querySelectorAll(".item").forEach((elem) => {
|
|
544
582
|
ElementIDUtils.addIDInfoIfNotExists(elem, "itemSearch");
|
|
545
583
|
});
|
|
546
|
-
this.validateDescriptionValue();
|
|
547
584
|
}
|
|
548
|
-
componentDidLoad() {
|
|
585
|
+
async componentDidLoad() {
|
|
549
586
|
this._currentValue = this.value;
|
|
550
587
|
CSSVarsUtils.applyVarsTextInput(this.el, this._textInput);
|
|
551
|
-
this.setInputValue(false);
|
|
552
588
|
this._resizeObserver = new ResizeObserver((entries) => {
|
|
553
589
|
window.requestAnimationFrame(() => {
|
|
554
590
|
if (!Array.isArray(entries) || !entries.length)
|
|
@@ -559,6 +595,16 @@ export class EzSearch {
|
|
|
559
595
|
}
|
|
560
596
|
});
|
|
561
597
|
});
|
|
598
|
+
await this.handleInitialValue();
|
|
599
|
+
if (this.autoFocus) {
|
|
600
|
+
requestAnimationFrame(() => {
|
|
601
|
+
this.setFocus({ selectText: true });
|
|
602
|
+
});
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
disconnectedCallback() {
|
|
606
|
+
var _a;
|
|
607
|
+
(_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
562
608
|
}
|
|
563
609
|
//---------------------------------------------
|
|
564
610
|
// Event handlers
|
|
@@ -590,7 +636,7 @@ export class EzSearch {
|
|
|
590
636
|
if (argument) {
|
|
591
637
|
this._showLoading = false;
|
|
592
638
|
this.clearSource();
|
|
593
|
-
if (!isNaN(argumentNumber) || argument.length >= this._limitCharsToSearch) {
|
|
639
|
+
if (this.ignoreLimitCharsToSearch || !isNaN(argumentNumber) || argument.length >= this._limitCharsToSearch) {
|
|
594
640
|
this._showLoading = true;
|
|
595
641
|
this._changeDeboucingTimeout = window.setTimeout(() => {
|
|
596
642
|
this.loadOptions(SearchMode.PREDICTIVE, isNaN(argumentNumber) ? argument : argumentNumber.toString());
|
|
@@ -628,14 +674,19 @@ export class EzSearch {
|
|
|
628
674
|
}
|
|
629
675
|
switch (event.key) {
|
|
630
676
|
case "ArrowDown":
|
|
631
|
-
this.nextOption();
|
|
632
677
|
event.stopPropagation();
|
|
678
|
+
if (this.canShowListOptions())
|
|
679
|
+
event.preventDefault();
|
|
680
|
+
this.nextOption();
|
|
633
681
|
break;
|
|
634
682
|
case "ArrowUp":
|
|
635
|
-
this.previousOption();
|
|
636
683
|
event.stopPropagation();
|
|
684
|
+
if (this.canShowListOptions())
|
|
685
|
+
event.preventDefault();
|
|
686
|
+
this.previousOption();
|
|
637
687
|
break;
|
|
638
688
|
case "Enter":
|
|
689
|
+
this.handleEventPropagation(event);
|
|
639
690
|
this.selectCurrentOption();
|
|
640
691
|
break;
|
|
641
692
|
case "Escape":
|
|
@@ -643,7 +694,7 @@ export class EzSearch {
|
|
|
643
694
|
break;
|
|
644
695
|
case "Tab":
|
|
645
696
|
this._tabPressed = true;
|
|
646
|
-
this.controlListWithOnlyOne();
|
|
697
|
+
this.controlListWithOnlyOne(false);
|
|
647
698
|
break;
|
|
648
699
|
}
|
|
649
700
|
//ATENÇÃO: Existe a necessidade de propagar o evento de teclado.
|
|
@@ -652,6 +703,12 @@ export class EzSearch {
|
|
|
652
703
|
//e o contexto pode reagir (fechar um popup por exemplo).
|
|
653
704
|
//event.stopPropagation();
|
|
654
705
|
}
|
|
706
|
+
//O evento deve ter sua propagação interrompida, apenas se a lista de opções estiver sendo exibida.
|
|
707
|
+
handleEventPropagation(event) {
|
|
708
|
+
if (this._listContainer.hasChildNodes() && this.stopPropagateEnterKeyEvent) {
|
|
709
|
+
event.stopPropagation();
|
|
710
|
+
}
|
|
711
|
+
}
|
|
655
712
|
onTextInputFocusOutHandler() {
|
|
656
713
|
if (this.hideErrorOnFocusOut)
|
|
657
714
|
this.cancelPreselection();
|
|
@@ -659,10 +716,13 @@ export class EzSearch {
|
|
|
659
716
|
canShowListOptions() {
|
|
660
717
|
return !this._showLoading && this._visibleOptions.length > 0;
|
|
661
718
|
}
|
|
719
|
+
canShowLoadSpinDescription() {
|
|
720
|
+
return this._showLoadingDescription && this._floatingID == undefined;
|
|
721
|
+
}
|
|
662
722
|
render() {
|
|
663
723
|
var _a;
|
|
664
724
|
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
665
|
-
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.
|
|
725
|
+
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, noMargin: this.noMargin }, 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)
|
|
666
726
|
? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
|
667
727
|
: undefined), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
|
|
668
728
|
&& this._visibleOptions.length === 0
|
|
@@ -838,6 +898,24 @@ export class EzSearch {
|
|
|
838
898
|
"reflect": false,
|
|
839
899
|
"defaultValue": "false"
|
|
840
900
|
},
|
|
901
|
+
"stopPropagateEnterKeyEvent": {
|
|
902
|
+
"type": "boolean",
|
|
903
|
+
"mutable": false,
|
|
904
|
+
"complexType": {
|
|
905
|
+
"original": "boolean",
|
|
906
|
+
"resolved": "boolean",
|
|
907
|
+
"references": {}
|
|
908
|
+
},
|
|
909
|
+
"required": false,
|
|
910
|
+
"optional": false,
|
|
911
|
+
"docs": {
|
|
912
|
+
"tags": [],
|
|
913
|
+
"text": "Se true, ineterrompe a propaga\u00E7\u00E3o do evento de KeyDown da tecla enter"
|
|
914
|
+
},
|
|
915
|
+
"attribute": "stop-propagate-enter-key-event",
|
|
916
|
+
"reflect": false,
|
|
917
|
+
"defaultValue": "false"
|
|
918
|
+
},
|
|
841
919
|
"mode": {
|
|
842
920
|
"type": "string",
|
|
843
921
|
"mutable": false,
|
|
@@ -948,6 +1026,24 @@ export class EzSearch {
|
|
|
948
1026
|
"reflect": false,
|
|
949
1027
|
"defaultValue": "false"
|
|
950
1028
|
},
|
|
1029
|
+
"noMargin": {
|
|
1030
|
+
"type": "boolean",
|
|
1031
|
+
"mutable": false,
|
|
1032
|
+
"complexType": {
|
|
1033
|
+
"original": "boolean",
|
|
1034
|
+
"resolved": "boolean",
|
|
1035
|
+
"references": {}
|
|
1036
|
+
},
|
|
1037
|
+
"required": false,
|
|
1038
|
+
"optional": false,
|
|
1039
|
+
"docs": {
|
|
1040
|
+
"tags": [],
|
|
1041
|
+
"text": "Quando verdadeiro, o campo n\u00E3o ter\u00E1 espa\u00E7amento externo."
|
|
1042
|
+
},
|
|
1043
|
+
"attribute": "no-margin",
|
|
1044
|
+
"reflect": false,
|
|
1045
|
+
"defaultValue": "false"
|
|
1046
|
+
},
|
|
951
1047
|
"options": {
|
|
952
1048
|
"type": "unknown",
|
|
953
1049
|
"mutable": true,
|
|
@@ -988,7 +1084,25 @@ export class EzSearch {
|
|
|
988
1084
|
"reflect": false,
|
|
989
1085
|
"defaultValue": "false"
|
|
990
1086
|
},
|
|
991
|
-
"
|
|
1087
|
+
"ensureClearButtonVisible": {
|
|
1088
|
+
"type": "boolean",
|
|
1089
|
+
"mutable": false,
|
|
1090
|
+
"complexType": {
|
|
1091
|
+
"original": "boolean",
|
|
1092
|
+
"resolved": "boolean",
|
|
1093
|
+
"references": {}
|
|
1094
|
+
},
|
|
1095
|
+
"required": false,
|
|
1096
|
+
"optional": false,
|
|
1097
|
+
"docs": {
|
|
1098
|
+
"tags": [],
|
|
1099
|
+
"text": "Garante que o bot\u00E3o de limpar pesquisa est\u00E1 sempre vis\u00EDvel"
|
|
1100
|
+
},
|
|
1101
|
+
"attribute": "ensure-clear-button-visible",
|
|
1102
|
+
"reflect": false,
|
|
1103
|
+
"defaultValue": "false"
|
|
1104
|
+
},
|
|
1105
|
+
"suppressPreLoad": {
|
|
992
1106
|
"type": "boolean",
|
|
993
1107
|
"mutable": false,
|
|
994
1108
|
"complexType": {
|
|
@@ -1000,9 +1114,27 @@ export class EzSearch {
|
|
|
1000
1114
|
"optional": false,
|
|
1001
1115
|
"docs": {
|
|
1002
1116
|
"tags": [],
|
|
1003
|
-
"text": "
|
|
1117
|
+
"text": "Se true, desabilita pr\u00E9-load das op\u00E7\u00F5es ao carregar componente"
|
|
1004
1118
|
},
|
|
1005
|
-
"attribute": "
|
|
1119
|
+
"attribute": "suppress-pre-load",
|
|
1120
|
+
"reflect": false,
|
|
1121
|
+
"defaultValue": "true"
|
|
1122
|
+
},
|
|
1123
|
+
"autoFocus": {
|
|
1124
|
+
"type": "boolean",
|
|
1125
|
+
"mutable": false,
|
|
1126
|
+
"complexType": {
|
|
1127
|
+
"original": "boolean",
|
|
1128
|
+
"resolved": "boolean",
|
|
1129
|
+
"references": {}
|
|
1130
|
+
},
|
|
1131
|
+
"required": false,
|
|
1132
|
+
"optional": false,
|
|
1133
|
+
"docs": {
|
|
1134
|
+
"tags": [],
|
|
1135
|
+
"text": "Se true o campo de texto receber\u00E1 o foco ao ser renderizado."
|
|
1136
|
+
},
|
|
1137
|
+
"attribute": "auto-focus",
|
|
1006
1138
|
"reflect": false,
|
|
1007
1139
|
"defaultValue": "false"
|
|
1008
1140
|
}
|
|
@@ -1014,6 +1146,7 @@ export class EzSearch {
|
|
|
1014
1146
|
"_visibleOptions": {},
|
|
1015
1147
|
"_startLoading": {},
|
|
1016
1148
|
"_showLoading": {},
|
|
1149
|
+
"_showLoadingDescription": {},
|
|
1017
1150
|
"_criteria": {}
|
|
1018
1151
|
};
|
|
1019
1152
|
}
|
|
@@ -1059,11 +1192,18 @@ export class EzSearch {
|
|
|
1059
1192
|
},
|
|
1060
1193
|
"setFocus": {
|
|
1061
1194
|
"complexType": {
|
|
1062
|
-
"signature": "() => Promise<void>",
|
|
1063
|
-
"parameters": [
|
|
1195
|
+
"signature": "(options?: TFocusOptions) => Promise<void>",
|
|
1196
|
+
"parameters": [{
|
|
1197
|
+
"tags": [],
|
|
1198
|
+
"text": ""
|
|
1199
|
+
}],
|
|
1064
1200
|
"references": {
|
|
1065
1201
|
"Promise": {
|
|
1066
1202
|
"location": "global"
|
|
1203
|
+
},
|
|
1204
|
+
"TFocusOptions": {
|
|
1205
|
+
"location": "import",
|
|
1206
|
+
"path": "../ez-text-input/ez-text-input"
|
|
1067
1207
|
}
|
|
1068
1208
|
},
|
|
1069
1209
|
"return": "Promise<void>"
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
--ez-sidebar-button--hover--width: 12px;
|
|
9
9
|
/*@doc Define a altura do span do botão.*/
|
|
10
10
|
--ez-sidebar-button--height: 96px;
|
|
11
|
+
/*@doc Define a camada em que o componente será exibido.*/
|
|
12
|
+
--ez-sidebar-navigator-button--z-index: var(--elevation--20, 20);
|
|
11
13
|
|
|
12
14
|
/* cor */
|
|
13
15
|
/*@doc Define a cor de fundo do botão.*/
|
|
@@ -35,6 +37,7 @@
|
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
button {
|
|
40
|
+
z-index: var(--ez-sidebar-navigator-button--z-index);
|
|
38
41
|
position: absolute;
|
|
39
42
|
display: flex;
|
|
40
43
|
background: var(--ez-sidebar-button--background-color--xlight);
|
|
@@ -11,7 +11,7 @@ export class EzSidebarButton {
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h("button", { type: "button", onClick: () => { this.ezClick.emit(); }, ref: (el) => this._button = el }, h("span", null), h("ez-icon", { iconName: "chevron-right" })));
|
|
14
|
+
return (h("button", { type: "button", onClick: () => { this.ezClick.emit(); }, ref: (el) => this._button = el }, h("span", null), h("ez-icon", { iconName: "chevron-right", size: "small" })));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "ez-sidebar-button"; }
|
|
17
17
|
static get encapsulation() { return "shadow"; }
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
--ez-sidebar-navigator--border-radius: 0px var(--border--radius-medium) var(--border--radius-medium) 0px;
|
|
15
15
|
/*@doc Força uma altura especifica para o sidebar, o padrão é 100% da tela*/
|
|
16
16
|
--ez-sidebar-navigator--height: calc(100vh - var(--space--lg, 24px));
|
|
17
|
+
/*@doc Define a camada em que o componente será exibido.*/
|
|
18
|
+
--ez-sidebar-navigator--z-index: var(--elevation--20, 20);
|
|
17
19
|
|
|
18
20
|
/*Labels Header */
|
|
19
21
|
/*@doc Define o espaçamento entre os componente do cabeçalho*/
|
|
@@ -124,7 +126,7 @@
|
|
|
124
126
|
|
|
125
127
|
.dynamic {
|
|
126
128
|
position: absolute;
|
|
127
|
-
z-index: var(--
|
|
129
|
+
z-index: var(--ez-sidebar-navigator--z-index);
|
|
128
130
|
}
|
|
129
131
|
|
|
130
132
|
.fixed {
|
|
@@ -21,29 +21,29 @@
|
|
|
21
21
|
--ez-split-button__right-button--padding-left: 8px;
|
|
22
22
|
/* general */
|
|
23
23
|
/*@doc Define a cor do label.*/
|
|
24
|
-
--ez-split-button--color: var(--title--primary, #
|
|
24
|
+
--ez-split-button--color: var(--title--primary, #2B3A54);
|
|
25
25
|
/*@doc Define o tamanho do label.*/
|
|
26
|
-
--ez-split-button--font-size: var(--text--
|
|
26
|
+
--ez-split-button--font-size: var(--text--small, 12px);
|
|
27
27
|
/*@doc Define a família da fonte do label.*/
|
|
28
28
|
--ez-split-button--font-family: var(--font-pattern, Arial);
|
|
29
29
|
/*@doc Define o peso da fonte do label.*/
|
|
30
30
|
--ez-split-button--font-weight: var(--text-weight--large);
|
|
31
31
|
/*@doc Define a cor de fundo do botão.*/
|
|
32
|
-
--ez-split-button--background-color: var(--background--
|
|
32
|
+
--ez-split-button--background-color: var(--background--light, #ffffff);
|
|
33
33
|
/*@doc Define o raio da borda do botão.*/
|
|
34
|
-
--ez-split-button--border-radius: var(--border--radius-large,
|
|
34
|
+
--ez-split-button--border-radius: var(--border--radius-large, 24px);
|
|
35
35
|
/*@doc Define o estilo da borda do botão.*/
|
|
36
|
-
--ez-split-button--border:
|
|
36
|
+
--ez-split-button--border: 1px solid var(--color--strokes);
|
|
37
37
|
/*@doc Define o alinhamento horizontal do conteúdo do botão.*/
|
|
38
38
|
--ez-split-button--justify-content: center;
|
|
39
39
|
/*@doc Define a cor do texto e do ícone quando o cursor está sobre o botão.*/
|
|
40
|
-
--ez-split-button--hover-color: var(--color--primary-600);
|
|
40
|
+
--ez-split-button--hover-color: var(--color--primary-600, #007a5a);
|
|
41
41
|
/*@doc Define a cor de fundo quando o cursor está sobre o botão.*/
|
|
42
|
-
--ez-split-button--hover--background-color: var(--background--
|
|
42
|
+
--ez-split-button--hover--background-color: var(--background--light, #ffffff);
|
|
43
43
|
/*@doc Define a cor do texto quando o botão está desabilitado.*/
|
|
44
|
-
--ez-split-button--disabled-color: var(--text--
|
|
44
|
+
--ez-split-button--disabled-color: var(--text--primary);
|
|
45
45
|
/*@doc Define a cor de fundo quando o botão está desabilitado.*/
|
|
46
|
-
--ez-split-button--disabled--background-color: var(--
|
|
46
|
+
--ez-split-button--disabled--background-color: var(--background--medium);
|
|
47
47
|
/*@doc Define o estido da borda quando o botão está selecionado.*/
|
|
48
48
|
--ez-split-button--focus--border: var(--border--medium, 2px) var(--color--primary-300);
|
|
49
49
|
/*@doc Define a sombra do botão quando selecionado.*/
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
background-color: var(--ez-split-button--background-color);
|
|
82
82
|
color: var(--ez-split-button--color);
|
|
83
83
|
fill: var(--ez-split-button--color);
|
|
84
|
-
border:
|
|
84
|
+
border: none;
|
|
85
85
|
justify-content: var(--ez-split-button--justify-content);
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -97,11 +97,28 @@
|
|
|
97
97
|
fill: var(--ez-split-button--active-color);
|
|
98
98
|
--ez-icon--color: var(--ez-split-button--active-color);
|
|
99
99
|
}
|
|
100
|
+
.ez-split-button__left-button{
|
|
101
|
+
border: var(--ez-split-button--border);
|
|
102
|
+
border-right: none;
|
|
103
|
+
}
|
|
104
|
+
.ez-split-button__right-button{
|
|
105
|
+
border: var(--ez-split-button--border);
|
|
106
|
+
border-left: none;
|
|
107
|
+
}
|
|
100
108
|
|
|
101
|
-
.ez-split-button__left-button:focus
|
|
109
|
+
.ez-split-button__left-button:focus{
|
|
110
|
+
box-shadow:
|
|
111
|
+
0 0 0 2px var(--color--primary-300), /* right */
|
|
112
|
+
0 2px 0 0 var(--color--primary-300), /* bottom */
|
|
113
|
+
0 -2px 0 0 var(--color--primary-300); /* top */
|
|
114
|
+
|
|
115
|
+
}
|
|
102
116
|
.ez-split-button__right-button:focus {
|
|
103
|
-
|
|
104
|
-
|
|
117
|
+
box-shadow:
|
|
118
|
+
2px 0 0 0 var(--color--primary-300), /* right */
|
|
119
|
+
0 2px 0 0 var(--color--primary-300), /* bottom */
|
|
120
|
+
0 -2px 0 0 var(--color--primary-300); /* top */
|
|
121
|
+
|
|
105
122
|
}
|
|
106
123
|
|
|
107
124
|
.ez-split-button__left-button:hover,
|
|
@@ -113,6 +130,16 @@
|
|
|
113
130
|
--ez-icon--color: var(--ez-split-button--hover-color);
|
|
114
131
|
}
|
|
115
132
|
|
|
133
|
+
.ez-split-button__left-button:active,
|
|
134
|
+
.ez-split-button__right-button:active {
|
|
135
|
+
outline: none;
|
|
136
|
+
box-shadow: none;
|
|
137
|
+
background-color: var(--ez-split-button--active--background-color);
|
|
138
|
+
color: var(--ez-split-button--active-color);
|
|
139
|
+
fill: var(--ez-split-button--active-color);
|
|
140
|
+
--ez-icon--color: var(--ez-split-button--active-color);
|
|
141
|
+
}
|
|
142
|
+
|
|
116
143
|
.ez-split-button__left-button:disabled,
|
|
117
144
|
.ez-split-button__left-button:disabled label,
|
|
118
145
|
.ez-split-button__right-button:disabled{
|
|
@@ -123,7 +150,15 @@
|
|
|
123
150
|
--ez-icon--color: var(--ez-split-button--disabled-color);
|
|
124
151
|
cursor: not-allowed;
|
|
125
152
|
}
|
|
126
|
-
|
|
153
|
+
.ez-split-button__left-button:disabled{
|
|
154
|
+
border: var(--ez-split-button--disabled-border);
|
|
155
|
+
border-right: none;
|
|
156
|
+
}
|
|
157
|
+
.ez-split-button__right-button:disabled{
|
|
158
|
+
border: var(--ez-split-button--disabled-border);
|
|
159
|
+
border-left: none;
|
|
160
|
+
}
|
|
161
|
+
|
|
127
162
|
button.large {
|
|
128
163
|
height: var(--ez-split-button__large--height);
|
|
129
164
|
}
|
|
@@ -161,6 +196,7 @@
|
|
|
161
196
|
border-bottom-right-radius: var(--ez-split-button--border-radius);
|
|
162
197
|
border-top-left-radius: 0;
|
|
163
198
|
border-bottom-left-radius:0;
|
|
199
|
+
border-right: var(--ez-split-button--border);
|
|
164
200
|
}
|
|
165
201
|
|
|
166
202
|
.ez-split-button__right-button--medium {
|
|
@@ -42,7 +42,7 @@ export class EzSplitButton {
|
|
|
42
42
|
}
|
|
43
43
|
getIconSize(sizeParam = 'medium') {
|
|
44
44
|
var _a;
|
|
45
|
-
const sizeList = ['medium', 'large'];
|
|
45
|
+
const sizeList = ['small', 'medium', 'large'];
|
|
46
46
|
const sizeLowerCase = (_a = this.size) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
47
47
|
return sizeList.includes(sizeLowerCase) ? sizeLowerCase : sizeParam;
|
|
48
48
|
}
|
|
@@ -311,8 +311,8 @@ export class EzSplitButton {
|
|
|
311
311
|
"type": "string",
|
|
312
312
|
"mutable": false,
|
|
313
313
|
"complexType": {
|
|
314
|
-
"original": "'medium' | 'large'",
|
|
315
|
-
"resolved": "\"large\" | \"medium\"",
|
|
314
|
+
"original": "'small' | 'medium' | 'large'",
|
|
315
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
316
316
|
"references": {}
|
|
317
317
|
},
|
|
318
318
|
"required": false,
|