@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
|
@@ -8,6 +8,10 @@
|
|
|
8
8
|
--ez-text-input__icon--width: 48px;
|
|
9
9
|
/*@doc Define a altura do componente em modo "slim".*/
|
|
10
10
|
--ez-text-input--height--slim: 32px;
|
|
11
|
+
/*@doc Define a largura maxima do componente.*/
|
|
12
|
+
--ez-text-input__min-width: 0px;
|
|
13
|
+
/*@doc Define a largura minima do componente.*/
|
|
14
|
+
--ez-text-input__max-width: 100%;
|
|
11
15
|
|
|
12
16
|
/* general */
|
|
13
17
|
/*@doc Define o raio da borda do input do componente.*/
|
|
@@ -20,35 +24,41 @@
|
|
|
20
24
|
--ez-text-input--font-weight: var(--text-weight--medium, 400);
|
|
21
25
|
/*@doc Define a cor da fonte do input e label do componente.*/
|
|
22
26
|
--ez-text-input--color: var(--title--primary, #2B3A54);
|
|
27
|
+
/*@doc Define a margem abaixo do componente.*/
|
|
28
|
+
--ez-text-input__margin-bottom: var(--space--small);
|
|
23
29
|
|
|
24
30
|
/* input */
|
|
25
31
|
/*@doc Define a cor de fundo do input.*/
|
|
26
|
-
--ez-text-input__input--background-color: var(--background--
|
|
32
|
+
--ez-text-input__input--background-color: var(--background--light, #ffffff);
|
|
27
33
|
/*@doc Define o estilo da borda do input.*/
|
|
28
|
-
--ez-text-input__input--border: var(--border--
|
|
34
|
+
--ez-text-input__input--border: var(--border--small, 1px solid);
|
|
29
35
|
/*@doc Define a cor da borda do input.*/
|
|
30
|
-
--ez-text-input__input--border-color: var(--
|
|
31
|
-
/*no modo normal usamos a borda com a mesma cor do bg*/
|
|
36
|
+
--ez-text-input__input--border-color: var(--color--strokes,#DCE0E8);
|
|
32
37
|
/*@doc Define a cor da borda do input quando focado.*/
|
|
33
38
|
--ez-text-input__input--focus--border-color: var(--color--primary, #008561);
|
|
39
|
+
|
|
40
|
+
/* input disabled */
|
|
34
41
|
/*@doc Define a cor de fundo do input quando desabilitado.*/
|
|
35
|
-
--ez-text-input__input--disabled--background-color: var(--
|
|
42
|
+
--ez-text-input__input--disabled--background-color: var(--background--medium, #F0F3F7);
|
|
36
43
|
/*@doc Define a cor do texto do input.*/
|
|
37
|
-
--ez-text-input__input--disabled--color: var(--text--
|
|
44
|
+
--ez-text-input__input--disabled--color: var(--text--primary, #626E82);
|
|
45
|
+
|
|
46
|
+
/* input error */
|
|
38
47
|
/*@doc Define a cor da borda do input quando com erro.*/
|
|
39
|
-
--ez-text-input__input--error--border-color:
|
|
48
|
+
--ez-text-input__input--error--border-color: var(--color-alert--error-800,#BD0025);
|
|
49
|
+
|
|
50
|
+
|
|
40
51
|
/*@doc Define a cor do input quando não possuir borda*/
|
|
41
52
|
--ez-text-input__input--noborder-color: white;
|
|
42
53
|
/*@doc Define o padding do input*/
|
|
43
54
|
--ez-text-input__input--padding: var(--space--medium, 6px);
|
|
55
|
+
/*@doc Define a cor do placeholder do input.*/
|
|
56
|
+
--ez-text-input__placeholder--color: var(--text--secondary, #a2abb9);
|
|
44
57
|
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
--ez-text-input__message_box--font-size: var(--text--small, 12px);
|
|
48
|
-
/*@doc Define a cor da fonte da mensagem quando info.*/
|
|
49
|
-
--ez-text-input__message_box--info--color: var(--color--success, #22085d);
|
|
58
|
+
|
|
59
|
+
/* tooltip icon */
|
|
50
60
|
/*@doc Define a cor da fonte da mensagem quando erro.*/
|
|
51
|
-
--ez-text-
|
|
61
|
+
--ez-text-input__tooltip_icon--error--color: var(--color-alert--error-800,#BD0025);
|
|
52
62
|
|
|
53
63
|
/* label */
|
|
54
64
|
/*@doc Define o posicionamento do label.*/
|
|
@@ -61,7 +71,20 @@
|
|
|
61
71
|
--ez-text-input__label--padding-right: 12px;
|
|
62
72
|
|
|
63
73
|
/*@doc Define a cor do ícone do slot.*/
|
|
64
|
-
--ez-text-input__input--focus--icon-color: var(--
|
|
74
|
+
--ez-text-input__input--focus--icon-color: var(--title--primary, #2B3A54);
|
|
75
|
+
/*@doc Define a cor do ícone do slot quando disabled.*/
|
|
76
|
+
--ez-text-input__input--disabled--focus--icon-color: var(--text--primary, #626E82);
|
|
77
|
+
|
|
78
|
+
/*Error icon*/
|
|
79
|
+
/*@doc Define o espaçamento lateral do icone de erro.*/
|
|
80
|
+
--ez-text-input__tooltip-icon--spacing: var(--space--large);
|
|
81
|
+
/*@doc Define a largura do icone de erro.*/
|
|
82
|
+
--ez-text-input__tooltip-icon---width: var(--space--large);
|
|
83
|
+
/*@doc Define a margem horizontal do icone de erro.*/
|
|
84
|
+
--ez-text-input__tooltip-icon---horizontal-margin: var(--space--medium, 12px);
|
|
85
|
+
/*@doc Define a margem vertical do icone de erro.*/
|
|
86
|
+
--ez-text-input__tooltip-icon---vertical-margin: 10px;
|
|
87
|
+
|
|
65
88
|
|
|
66
89
|
|
|
67
90
|
/***************
|
|
@@ -73,6 +96,8 @@
|
|
|
73
96
|
position: relative;
|
|
74
97
|
/*public*/
|
|
75
98
|
width: var(--ez-text-input--width);
|
|
99
|
+
min-width: var(--ez-text-input__min-width);
|
|
100
|
+
max-width: var(--ez-text-input__max-width);
|
|
76
101
|
}
|
|
77
102
|
|
|
78
103
|
:host(.grid_editor){
|
|
@@ -95,12 +120,18 @@ input {
|
|
|
95
120
|
color: var(--ez-text-input--color);
|
|
96
121
|
font-weight: var(--ez-text-input--font-weight);
|
|
97
122
|
padding: var(--ez-text-input__input--padding);
|
|
123
|
+
margin-bottom: var(--ez-text-input__margin-bottom);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
input.no--margin {
|
|
127
|
+
--ez-text-input__margin-bottom: 0;
|
|
98
128
|
}
|
|
99
129
|
|
|
100
130
|
input:disabled {
|
|
101
131
|
/*public*/
|
|
102
132
|
background-color: var(--ez-text-input__input--disabled--background-color);
|
|
103
133
|
color: var(--ez-text-input__input--disabled--color);
|
|
134
|
+
cursor: not-allowed;
|
|
104
135
|
}
|
|
105
136
|
|
|
106
137
|
input:focus {
|
|
@@ -113,14 +144,21 @@ input:focus {
|
|
|
113
144
|
input.icon--left {
|
|
114
145
|
padding-left: var(--ez-text-input__icon--width);
|
|
115
146
|
}
|
|
147
|
+
input.icon--left.hasError {
|
|
148
|
+
padding-right: var(--ez-text-input__icon--width);
|
|
149
|
+
}
|
|
116
150
|
|
|
117
151
|
input.icon--right {
|
|
118
152
|
padding-right: var(--ez-text-input__icon--width);
|
|
119
153
|
}
|
|
154
|
+
input.icon--right.hasError {
|
|
155
|
+
padding-right: calc(var(--ez-text-input__icon--width) + var(--ez-text-input__tooltip-icon--spacing));
|
|
156
|
+
}
|
|
120
157
|
|
|
121
158
|
input.hasError {
|
|
122
159
|
color: var(--ez-text-input--color);
|
|
123
160
|
border-color: var(--ez-text-input__input--error--border-color);
|
|
161
|
+
padding-right: calc(var(--ez-text-input__tooltip-icon---width) + (2*var(--ez-text-input__tooltip-icon---horizontal-margin)));
|
|
124
162
|
}
|
|
125
163
|
|
|
126
164
|
input:disabled.hasError {
|
|
@@ -131,29 +169,14 @@ input.text--right {
|
|
|
131
169
|
text-align: right;
|
|
132
170
|
}
|
|
133
171
|
|
|
172
|
+
input:disabled,
|
|
134
173
|
input:read-only {
|
|
135
|
-
cursor:
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
.message-box {
|
|
139
|
-
/*private*/
|
|
140
|
-
min-height: 16px;
|
|
141
|
-
min-width: 100%;
|
|
142
|
-
margin-top: 3px;
|
|
143
|
-
line-height: 12px;
|
|
144
|
-
overflow: hidden;
|
|
145
|
-
text-overflow: ellipsis;
|
|
146
|
-
white-space: nowrap;
|
|
147
|
-
|
|
148
|
-
/*public*/
|
|
149
|
-
font-family: var(--ez-text-input--font-family);
|
|
150
|
-
font-size: var(--ez-text-input__message_box--font-size);
|
|
151
|
-
color: var(--ez-text-input__message_box--info--color);
|
|
174
|
+
cursor: not-allowed;
|
|
152
175
|
}
|
|
153
176
|
|
|
154
177
|
.hasError {
|
|
155
178
|
/*public*/
|
|
156
|
-
color: var(--ez-text-
|
|
179
|
+
color: var(--ez-text-input__tooltip_icon--error--color);
|
|
157
180
|
}
|
|
158
181
|
|
|
159
182
|
.input__label {
|
|
@@ -178,7 +201,9 @@ input:read-only {
|
|
|
178
201
|
left: var(--ez-text-input__label--padding-left);
|
|
179
202
|
padding-right: var(--ez-text-input__label--padding-right);
|
|
180
203
|
}
|
|
181
|
-
|
|
204
|
+
.input__label.hasError {
|
|
205
|
+
width: calc(100% - 2*(var(--ez-text-input__tooltip-icon--spacing)));
|
|
206
|
+
}
|
|
182
207
|
.input__label--floated {
|
|
183
208
|
font-family: var(--ez-text-input--font-family);
|
|
184
209
|
font-size: var(--text--extra-small);
|
|
@@ -188,6 +213,7 @@ input:read-only {
|
|
|
188
213
|
|
|
189
214
|
.input__label--disabled {
|
|
190
215
|
color: var(--ez-text-input__input--disabled--color);
|
|
216
|
+
cursor: not-allowed;
|
|
191
217
|
}
|
|
192
218
|
|
|
193
219
|
.input__label--left {
|
|
@@ -198,17 +224,25 @@ input:read-only {
|
|
|
198
224
|
width: calc(100% - var(--ez-text-input__icon--width));
|
|
199
225
|
}
|
|
200
226
|
|
|
227
|
+
.input__label--left.hasError {
|
|
228
|
+
width: calc(100% - var(--ez-text-input__icon--width) - var(--ez-text-input__tooltip-icon--spacing));
|
|
229
|
+
}
|
|
230
|
+
|
|
201
231
|
.input__label--right {
|
|
202
232
|
/*public*/
|
|
203
233
|
right: var(--ez-text-input__icon--width);
|
|
204
234
|
width: calc(100% - var(--ez-text-input__icon--width));
|
|
205
235
|
}
|
|
236
|
+
.input__label--right.hasError {
|
|
237
|
+
width: calc(100% - var(--ez-text-input__icon--width) - var(--ez-text-input__tooltip-icon--spacing));
|
|
238
|
+
}
|
|
206
239
|
|
|
207
240
|
/* ISSO TA ERRADO CRIAR INPUT__LABEL--BOTH */
|
|
208
241
|
.input__label--left.input__label--right {
|
|
209
242
|
left: calc(var(--ez-text-input__icon--width) + 2px);
|
|
210
243
|
/*borda*/
|
|
211
244
|
width: calc(100% - var(--ez-text-input__icon--width) * 2);
|
|
245
|
+
|
|
212
246
|
}
|
|
213
247
|
|
|
214
248
|
.input--with--label {
|
|
@@ -228,66 +262,23 @@ input:read-only {
|
|
|
228
262
|
font-weight: bold;
|
|
229
263
|
}
|
|
230
264
|
|
|
231
|
-
.input--slim::-webkit-input-placeholder
|
|
232
|
-
/*
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
265
|
+
.input--slim::-webkit-input-placeholder, /* Edge */
|
|
266
|
+
.input--slim:-moz-placeholder, /* Firefox 4-18 */
|
|
267
|
+
.input--slim::-moz-placeholder, /* Firefox 19+ */
|
|
268
|
+
.input--slim:-ms-input-placeholder, /* IE 10-11 */
|
|
269
|
+
.input--slim::placeholder { /* Modern browsers */
|
|
270
|
+
/*public*/
|
|
271
|
+
font-family: var(--ez-text-input--font-family);
|
|
272
|
+
font-size: var(--ez-text-input--font-size);
|
|
273
|
+
font-weight: var(--ez-text-input--font-weight);
|
|
274
|
+
color: var(--ez-text-input__placeholder--color);
|
|
275
|
+
}
|
|
238
276
|
|
|
239
|
-
.input--slim:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
|
|
240
|
-
/*public*/
|
|
241
|
-
font-family: var(--ez-text-input--font-family);
|
|
242
|
-
font-size: var(--ez-text-input--font-size);
|
|
243
|
-
font-weight: var(--ez-text-input--font-weight);
|
|
244
|
-
color: var(--ez-text-input--color);
|
|
245
|
-
}
|
|
246
|
-
|
|
247
|
-
.input--slim::-moz-placeholder { /* Mozilla Firefox 19+ */
|
|
248
|
-
/*public*/
|
|
249
|
-
font-family: var(--ez-text-input--font-family);
|
|
250
|
-
font-size: var(--ez-text-input--font-size);
|
|
251
|
-
font-weight: var(--ez-text-input--font-weight);
|
|
252
|
-
color: var(--ez-text-input--color);
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
.input--slim:-ms-input-placeholder { /* Internet Explorer 10-11 */
|
|
256
|
-
/*public*/
|
|
257
|
-
font-family: var(--ez-text-input--font-family);
|
|
258
|
-
font-size: var(--ez-text-input--font-size);
|
|
259
|
-
font-weight: var(--ez-text-input--font-weight);
|
|
260
|
-
color: var(--ez-text-input--color);
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
.input--slim::placeholder {
|
|
264
|
-
/*public*/
|
|
265
|
-
font-family: var(--ez-text-input--font-family);
|
|
266
|
-
font-size: var(--ez-text-input--font-size);
|
|
267
|
-
font-weight: var(--ez-text-input--font-weight);
|
|
268
|
-
color: var(--ez-text-input--color);
|
|
269
|
-
}
|
|
270
|
-
|
|
271
|
-
.input--slim:disabled::-webkit-input-placeholder { /* WebKit browsers */
|
|
272
|
-
/*public*/
|
|
273
|
-
color: var(--ez-text-input__input--disabled--color);
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
.input--slim:disabled:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
|
|
277
|
-
/*public*/
|
|
278
|
-
color: var(--ez-text-input__input--disabled--color);
|
|
279
|
-
}
|
|
280
|
-
|
|
281
|
-
.input--slim:disabled::-moz-placeholder { /* Mozilla Firefox 19+ */
|
|
282
|
-
/*public*/
|
|
283
|
-
color: var(--ez-text-input__input--disabled--color);
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
.input--slim:disabled:-ms-input-placeholder { /* Internet Explorer 10+ */
|
|
287
|
-
/*public*/
|
|
288
|
-
color: var(--ez-text-input__input--disabled--color);
|
|
289
|
-
}
|
|
290
277
|
|
|
278
|
+
.input--slim:disabled::-webkit-input-placeholder, /* WebKit browsers */
|
|
279
|
+
.input--slim:disabled:-moz-placeholder, /* Mozilla Firefox 4 to 18 */
|
|
280
|
+
.input--slim:disabled::-moz-placeholder, /* Mozilla Firefox 19+ */
|
|
281
|
+
.input--slim:disabled:-ms-input-placeholder, /* Internet Explorer 10+ */
|
|
291
282
|
.input--slim:disabled::placeholder {
|
|
292
283
|
/*public*/
|
|
293
284
|
color: var(--ez-text-input__input--disabled--color);
|
|
@@ -298,4 +289,28 @@ input.input__slim--noborder {
|
|
|
298
289
|
border: 0 none;
|
|
299
290
|
outline: 0;
|
|
300
291
|
background: var(--ez-text-input__input--noborder-color);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
ez-icon.tooltip-icon {
|
|
295
|
+
position: absolute;
|
|
296
|
+
display: flex;
|
|
297
|
+
align-items: center;
|
|
298
|
+
justify-content: center;
|
|
299
|
+
overflow: hidden;
|
|
300
|
+
width: var(--ez-text-input__tooltip-icon---width);
|
|
301
|
+
height: 22px;
|
|
302
|
+
margin: var(--ez-text-input__tooltip-icon---vertical-margin) var(--ez-text-input__tooltip-icon---horizontal-margin);
|
|
303
|
+
top: 0;
|
|
304
|
+
right: 0;
|
|
305
|
+
z-index: var(--elevation--4);
|
|
306
|
+
border-radius: var(--ez-text-input--border-radius);
|
|
307
|
+
|
|
308
|
+
|
|
309
|
+
}
|
|
310
|
+
ez-icon.tooltip-icon.rightIconSlot{
|
|
311
|
+
right: var(--ez-text-input__tooltip-icon--spacing);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
ez-icon.tooltip-icon.hasError{
|
|
315
|
+
--ez-icon--color: var(--ez-text-input__tooltip_icon--error--color);
|
|
301
316
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { h, Host } from "@stencil/core";
|
|
2
2
|
import { ElementIDUtils, MaskFormatter } from "@sankhyalabs/core";
|
|
3
|
+
import { applyEllipsisToInput } from "../../utils/ResponsiveInputUtils";
|
|
3
4
|
export class EzTextInput {
|
|
4
5
|
constructor() {
|
|
5
6
|
this.label = undefined;
|
|
@@ -7,23 +8,27 @@ export class EzTextInput {
|
|
|
7
8
|
this.enabled = true;
|
|
8
9
|
this.errorMessage = undefined;
|
|
9
10
|
this.mask = undefined;
|
|
11
|
+
this.cleanValueMask = false;
|
|
10
12
|
this.canShowError = true;
|
|
11
13
|
this.restrict = undefined;
|
|
12
14
|
this.mode = "regular";
|
|
13
15
|
this.noBorder = false;
|
|
14
16
|
this.password = false;
|
|
17
|
+
this.autoFocus = false;
|
|
18
|
+
this.noMargin = false;
|
|
19
|
+
this.hasRightSlotContent = false;
|
|
15
20
|
}
|
|
16
21
|
observeErrorMessage() {
|
|
17
22
|
if (this._inputElem) {
|
|
18
23
|
this.isInvalid().then((hasError) => {
|
|
19
|
-
var _a
|
|
24
|
+
var _a;
|
|
20
25
|
if (hasError) {
|
|
21
26
|
this._inputElem.classList.add("hasError");
|
|
22
|
-
(_a = this.
|
|
27
|
+
(_a = this._tooltipPositioningObserver) === null || _a === void 0 ? void 0 : _a.observe(this._inputElem);
|
|
23
28
|
}
|
|
24
29
|
else {
|
|
25
30
|
this._inputElem.classList.remove("hasError");
|
|
26
|
-
|
|
31
|
+
this.removeGlobalTooltip();
|
|
27
32
|
}
|
|
28
33
|
});
|
|
29
34
|
}
|
|
@@ -121,7 +126,12 @@ export class EzTextInput {
|
|
|
121
126
|
const value = this._inputElem.value;
|
|
122
127
|
if (value && this._maskFormatter) {
|
|
123
128
|
try {
|
|
124
|
-
|
|
129
|
+
if (this.cleanValueMask) {
|
|
130
|
+
this.applyMask(value);
|
|
131
|
+
}
|
|
132
|
+
else {
|
|
133
|
+
this._inputElem.value = this._maskFormatter.format(value);
|
|
134
|
+
}
|
|
125
135
|
}
|
|
126
136
|
catch (e) {
|
|
127
137
|
this.errorMessage = e.message;
|
|
@@ -139,8 +149,34 @@ export class EzTextInput {
|
|
|
139
149
|
}
|
|
140
150
|
controlChangeValue() {
|
|
141
151
|
if (this._inputElem && (this.value || '') !== this._inputElem.value) {
|
|
142
|
-
this.
|
|
152
|
+
if (this.cleanValueMask) {
|
|
153
|
+
this.value = this._maskFormatter.removeMask(this._inputElem.value);
|
|
154
|
+
}
|
|
155
|
+
else {
|
|
156
|
+
this.value = this._inputElem.value;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
applyMask(value) {
|
|
161
|
+
if (!value || value === "")
|
|
162
|
+
return value;
|
|
163
|
+
if (this._maskFormatter) {
|
|
164
|
+
try {
|
|
165
|
+
const formattedValue = this._maskFormatter.applyMask(this._maskFormatter.removeMask(value));
|
|
166
|
+
if (this._inputElem) {
|
|
167
|
+
this._inputElem.value = formattedValue;
|
|
168
|
+
return this._inputElem.value;
|
|
169
|
+
}
|
|
170
|
+
else {
|
|
171
|
+
this.value = formattedValue;
|
|
172
|
+
return this.value;
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
catch (e) {
|
|
176
|
+
this.errorMessage = e.message;
|
|
177
|
+
}
|
|
143
178
|
}
|
|
179
|
+
return value;
|
|
144
180
|
}
|
|
145
181
|
handleChange() {
|
|
146
182
|
if (!this._inputElem) {
|
|
@@ -156,8 +192,10 @@ export class EzTextInput {
|
|
|
156
192
|
this.controlChangeValue();
|
|
157
193
|
}
|
|
158
194
|
handleSlotChange(ev) {
|
|
195
|
+
var _a;
|
|
159
196
|
const slot = ev.target;
|
|
160
197
|
const content = slot.assignedElements()[0];
|
|
198
|
+
this.hasRightSlotContent = false;
|
|
161
199
|
if (content) {
|
|
162
200
|
content.style.position = "absolute";
|
|
163
201
|
content.style.display = "flex";
|
|
@@ -183,6 +221,10 @@ export class EzTextInput {
|
|
|
183
221
|
if (this._labelElem) {
|
|
184
222
|
this._labelElem.classList.add("input__label--right");
|
|
185
223
|
}
|
|
224
|
+
if (this._tooltipIconElem) {
|
|
225
|
+
this._tooltipIconElem.classList.add("rightIconSlot");
|
|
226
|
+
}
|
|
227
|
+
this.hasRightSlotContent = ((_a = content.children) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
186
228
|
}
|
|
187
229
|
slot.name && ElementIDUtils.addIDInfo(content, slot.name);
|
|
188
230
|
}
|
|
@@ -194,21 +236,50 @@ export class EzTextInput {
|
|
|
194
236
|
}
|
|
195
237
|
this.adjustColorContentSlot("var(--ez-text-input__input--focus--icon-color)");
|
|
196
238
|
}
|
|
239
|
+
renderGlobalTooltip() {
|
|
240
|
+
const tooltip = document.createElement('ez-tooltip');
|
|
241
|
+
tooltip.errorMessage = this.errorMessage;
|
|
242
|
+
tooltip.anchoringElement = this._tooltipIconElem;
|
|
243
|
+
document.body.appendChild(tooltip);
|
|
244
|
+
this._tooltipElem = tooltip;
|
|
245
|
+
}
|
|
246
|
+
removeGlobalTooltip() {
|
|
247
|
+
var _a;
|
|
248
|
+
if (!this._tooltipElem)
|
|
249
|
+
return;
|
|
250
|
+
this._tooltipElem.remove();
|
|
251
|
+
this._tooltipElem = undefined;
|
|
252
|
+
(_a = this._tooltipPositioningObserver) === null || _a === void 0 ? void 0 : _a.unobserve(this._inputElem);
|
|
253
|
+
}
|
|
254
|
+
createTooltipPositioningObserver() {
|
|
255
|
+
const observer = new ResizeObserver(() => {
|
|
256
|
+
if (!this._tooltipElem)
|
|
257
|
+
return;
|
|
258
|
+
if (!this._tooltipIconElem)
|
|
259
|
+
return;
|
|
260
|
+
clearTimeout(this._observerDebounceTimeout);
|
|
261
|
+
this._observerDebounceTimeout = setTimeout(async () => {
|
|
262
|
+
if (this._tooltipElem) {
|
|
263
|
+
await this._tooltipElem.positionTooltip();
|
|
264
|
+
}
|
|
265
|
+
}, 200);
|
|
266
|
+
});
|
|
267
|
+
this._tooltipPositioningObserver = observer;
|
|
268
|
+
}
|
|
197
269
|
//---------------------------------------------
|
|
198
270
|
// Lifecycle web component
|
|
199
271
|
//---------------------------------------------
|
|
200
|
-
componentDidLoad() {
|
|
201
|
-
this.observeErrorMessage();
|
|
202
|
-
this.observeMask();
|
|
203
|
-
this.adjustFloatingLabel();
|
|
204
|
-
this.adjustBorderInput();
|
|
205
|
-
}
|
|
206
272
|
componentWillLoad() {
|
|
207
273
|
this.observeMask();
|
|
208
274
|
if (this.value) {
|
|
209
275
|
if (this._maskFormatter) {
|
|
210
276
|
try {
|
|
211
|
-
|
|
277
|
+
if (this.cleanValueMask) {
|
|
278
|
+
this.applyMask(this.value);
|
|
279
|
+
}
|
|
280
|
+
else {
|
|
281
|
+
this.value = this._maskFormatter.format(this.value);
|
|
282
|
+
}
|
|
212
283
|
}
|
|
213
284
|
catch (e) {
|
|
214
285
|
this.errorMessage = e.message;
|
|
@@ -220,12 +291,52 @@ export class EzTextInput {
|
|
|
220
291
|
}
|
|
221
292
|
}
|
|
222
293
|
}
|
|
294
|
+
componentDidLoad() {
|
|
295
|
+
var _a, _b;
|
|
296
|
+
this.observeErrorMessage();
|
|
297
|
+
this.observeMask();
|
|
298
|
+
this.adjustFloatingLabel();
|
|
299
|
+
this.adjustBorderInput();
|
|
300
|
+
if (this.autoFocus) {
|
|
301
|
+
requestAnimationFrame(() => {
|
|
302
|
+
this.setFocus({ selectText: true });
|
|
303
|
+
});
|
|
304
|
+
}
|
|
305
|
+
(_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.addEventListener('focus', () => {
|
|
306
|
+
var _a;
|
|
307
|
+
this._inputElem.setSelectionRange(0, (_a = this._inputElem) === null || _a === void 0 ? void 0 : _a.value.length);
|
|
308
|
+
});
|
|
309
|
+
this.createTooltipPositioningObserver();
|
|
310
|
+
if (this._inputElem) {
|
|
311
|
+
(_b = this._tooltipPositioningObserver) === null || _b === void 0 ? void 0 : _b.observe(this._inputElem);
|
|
312
|
+
applyEllipsisToInput(this._inputElem);
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
componentDidRender() {
|
|
316
|
+
if (this._tooltipIconElem && !this._tooltipElem) {
|
|
317
|
+
this.renderGlobalTooltip();
|
|
318
|
+
}
|
|
319
|
+
}
|
|
320
|
+
componentDidUpdate() {
|
|
321
|
+
if (this._tooltipIconElem && this._tooltipElem) {
|
|
322
|
+
this._tooltipElem.positionTooltip();
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
disconnectedCallback() {
|
|
326
|
+
if (this._tooltipPositioningObserver) {
|
|
327
|
+
this._tooltipPositioningObserver.disconnect();
|
|
328
|
+
}
|
|
329
|
+
if (this._observerDebounceTimeout) {
|
|
330
|
+
clearTimeout(this._observerDebounceTimeout);
|
|
331
|
+
}
|
|
332
|
+
this.removeGlobalTooltip();
|
|
333
|
+
}
|
|
223
334
|
render() {
|
|
224
335
|
ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'input');
|
|
225
336
|
return (h(Host, { style: this._hostElement.classList.contains("grid_editor") ? { "height": "100%" } : null }, h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label && this.mode != "slim" ?
|
|
226
|
-
h("label", { ref: (el) => this._labelElem = el, class: this.enabled ? "input__label" : "input__label input__label--disabled"
|
|
227
|
-
: null, h("input", { "data-element-id": ElementIDUtils.getInternalIDInfo("input"), onFocus: () => this.doFocus(), ref: (el) => this._inputElem = el, type: this.password ? "password" : "text", class: this.mode === "slim" ? "input--slim" : ""
|
|
228
|
-
h("
|
|
337
|
+
h("label", { ref: (el) => this._labelElem = el, class: `${this.enabled ? "input__label" : "input__label input__label--disabled"} ${this.errorMessage ? "hasError" : ""}`, onClick: () => this._inputElem.focus(), title: this.label }, this.label)
|
|
338
|
+
: null, h("input", { "data-element-id": ElementIDUtils.getInternalIDInfo("input"), onFocus: () => this.doFocus(), ref: (el) => this._inputElem = el, type: this.password ? "password" : "text", class: `${this.mode === "slim" ? "input--slim" : ""} ${this.noMargin ? "no--margin" : ""}`, placeholder: this.mode === "slim" && this.label ? this.label : "", value: this.mask && this.cleanValueMask ? this.applyMask(this.value) : this.value, disabled: !this.enabled, onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); } }), this.canShowError && this.mode != "slim" && this.errorMessage &&
|
|
339
|
+
h("ez-icon", { class: `tooltip-icon ${this.errorMessage ? "hasError" : ""} ${this.hasRightSlotContent ? "rightIconSlot" : ""}`, "data-element-id": ElementIDUtils.getInternalIDInfo("tooltip-icon"), ref: (el) => this._tooltipIconElem = el, iconName: "alert-circle" }), h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }, " ")));
|
|
229
340
|
}
|
|
230
341
|
static get is() { return "ez-text-input"; }
|
|
231
342
|
static get encapsulation() { return "shadow"; }
|
|
@@ -327,6 +438,24 @@ export class EzTextInput {
|
|
|
327
438
|
"attribute": "mask",
|
|
328
439
|
"reflect": false
|
|
329
440
|
},
|
|
441
|
+
"cleanValueMask": {
|
|
442
|
+
"type": "boolean",
|
|
443
|
+
"mutable": false,
|
|
444
|
+
"complexType": {
|
|
445
|
+
"original": "boolean",
|
|
446
|
+
"resolved": "boolean",
|
|
447
|
+
"references": {}
|
|
448
|
+
},
|
|
449
|
+
"required": false,
|
|
450
|
+
"optional": false,
|
|
451
|
+
"docs": {
|
|
452
|
+
"tags": [],
|
|
453
|
+
"text": "Para remover a m\u00E1scara quando fizer um apply no formul\u00E1rio."
|
|
454
|
+
},
|
|
455
|
+
"attribute": "clean-value-mask",
|
|
456
|
+
"reflect": false,
|
|
457
|
+
"defaultValue": "false"
|
|
458
|
+
},
|
|
330
459
|
"canShowError": {
|
|
331
460
|
"type": "boolean",
|
|
332
461
|
"mutable": false,
|
|
@@ -415,9 +544,50 @@ export class EzTextInput {
|
|
|
415
544
|
"attribute": "password",
|
|
416
545
|
"reflect": false,
|
|
417
546
|
"defaultValue": "false"
|
|
547
|
+
},
|
|
548
|
+
"autoFocus": {
|
|
549
|
+
"type": "boolean",
|
|
550
|
+
"mutable": false,
|
|
551
|
+
"complexType": {
|
|
552
|
+
"original": "boolean",
|
|
553
|
+
"resolved": "boolean",
|
|
554
|
+
"references": {}
|
|
555
|
+
},
|
|
556
|
+
"required": false,
|
|
557
|
+
"optional": false,
|
|
558
|
+
"docs": {
|
|
559
|
+
"tags": [],
|
|
560
|
+
"text": "Se true o campo receber\u00E1 o foco ao ser renderizado."
|
|
561
|
+
},
|
|
562
|
+
"attribute": "auto-focus",
|
|
563
|
+
"reflect": false,
|
|
564
|
+
"defaultValue": "false"
|
|
565
|
+
},
|
|
566
|
+
"noMargin": {
|
|
567
|
+
"type": "boolean",
|
|
568
|
+
"mutable": false,
|
|
569
|
+
"complexType": {
|
|
570
|
+
"original": "boolean",
|
|
571
|
+
"resolved": "boolean",
|
|
572
|
+
"references": {}
|
|
573
|
+
},
|
|
574
|
+
"required": false,
|
|
575
|
+
"optional": false,
|
|
576
|
+
"docs": {
|
|
577
|
+
"tags": [],
|
|
578
|
+
"text": "Quando verdadeiro, o campo n\u00E3o ter\u00E1 espa\u00E7amento externo."
|
|
579
|
+
},
|
|
580
|
+
"attribute": "no-margin",
|
|
581
|
+
"reflect": false,
|
|
582
|
+
"defaultValue": "false"
|
|
418
583
|
}
|
|
419
584
|
};
|
|
420
585
|
}
|
|
586
|
+
static get states() {
|
|
587
|
+
return {
|
|
588
|
+
"hasRightSlotContent": {}
|
|
589
|
+
};
|
|
590
|
+
}
|
|
421
591
|
static get events() {
|
|
422
592
|
return [{
|
|
423
593
|
"method": "ezChange",
|
|
@@ -10,6 +10,8 @@ export class EzTimeInput {
|
|
|
10
10
|
this.showSeconds = false;
|
|
11
11
|
this.mode = "regular";
|
|
12
12
|
this.canShowError = true;
|
|
13
|
+
this.autoFocus = false;
|
|
14
|
+
this.noMargin = false;
|
|
13
15
|
}
|
|
14
16
|
observeErrorMessage() {
|
|
15
17
|
var _a;
|
|
@@ -130,6 +132,11 @@ export class EzTimeInput {
|
|
|
130
132
|
//---------------------------------------------
|
|
131
133
|
componentDidLoad() {
|
|
132
134
|
CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
|
|
135
|
+
if (this.autoFocus) {
|
|
136
|
+
requestAnimationFrame(() => {
|
|
137
|
+
this.setFocus({ selectText: true });
|
|
138
|
+
});
|
|
139
|
+
}
|
|
133
140
|
}
|
|
134
141
|
componentWillLoad() {
|
|
135
142
|
this.observeShowSeconds();
|
|
@@ -142,7 +149,7 @@ export class EzTimeInput {
|
|
|
142
149
|
}
|
|
143
150
|
render() {
|
|
144
151
|
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
145
|
-
return (h(Host, null, h("ez-text-input", { class: "time__input", "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: (el) => this._textInput = el, "data-slave-mode": "true", value: this._viewValue, enabled: this.enabled, label: this.label, restrict: "0123456789:", onBlur: () => this.handleBlur(), onInput: () => this.handleInput(), errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError }, h("ez-icon", { slot: "leftIcon", iconName: "timer-outline" }))));
|
|
152
|
+
return (h(Host, null, h("ez-text-input", { class: "time__input", "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: (el) => this._textInput = el, "data-slave-mode": "true", value: this._viewValue, enabled: this.enabled, label: this.label, restrict: "0123456789:", onBlur: () => this.handleBlur(), onInput: () => this.handleInput(), errorMessage: this.errorMessage, mode: this.mode, canShowError: this.canShowError, noMargin: this.noMargin }, h("ez-icon", { slot: "leftIcon", iconName: "timer-outline" }))));
|
|
146
153
|
}
|
|
147
154
|
static get is() { return "ez-time-input"; }
|
|
148
155
|
static get encapsulation() { return "shadow"; }
|
|
@@ -281,6 +288,42 @@ export class EzTimeInput {
|
|
|
281
288
|
"attribute": "can-show-error",
|
|
282
289
|
"reflect": true,
|
|
283
290
|
"defaultValue": "true"
|
|
291
|
+
},
|
|
292
|
+
"autoFocus": {
|
|
293
|
+
"type": "boolean",
|
|
294
|
+
"mutable": false,
|
|
295
|
+
"complexType": {
|
|
296
|
+
"original": "boolean",
|
|
297
|
+
"resolved": "boolean",
|
|
298
|
+
"references": {}
|
|
299
|
+
},
|
|
300
|
+
"required": false,
|
|
301
|
+
"optional": false,
|
|
302
|
+
"docs": {
|
|
303
|
+
"tags": [],
|
|
304
|
+
"text": "Se true o campo de texto receber\u00E1 o foco ao ser renderizado."
|
|
305
|
+
},
|
|
306
|
+
"attribute": "auto-focus",
|
|
307
|
+
"reflect": false,
|
|
308
|
+
"defaultValue": "false"
|
|
309
|
+
},
|
|
310
|
+
"noMargin": {
|
|
311
|
+
"type": "boolean",
|
|
312
|
+
"mutable": false,
|
|
313
|
+
"complexType": {
|
|
314
|
+
"original": "boolean",
|
|
315
|
+
"resolved": "boolean",
|
|
316
|
+
"references": {}
|
|
317
|
+
},
|
|
318
|
+
"required": false,
|
|
319
|
+
"optional": false,
|
|
320
|
+
"docs": {
|
|
321
|
+
"tags": [],
|
|
322
|
+
"text": "Quando verdadeiro, o campo n\u00E3o ter\u00E1 espa\u00E7amento."
|
|
323
|
+
},
|
|
324
|
+
"attribute": "no-margin",
|
|
325
|
+
"reflect": false,
|
|
326
|
+
"defaultValue": "false"
|
|
284
327
|
}
|
|
285
328
|
};
|
|
286
329
|
}
|