@sankhyalabs/ezui 5.22.0-dev.12 → 5.22.0-dev.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{CSSVarsUtils-10c9d5b4.js → CSSVarsUtils-f20973d1.js} +1 -0
- package/dist/cjs/DataBinder-b9973a19.js +474 -0
- package/dist/cjs/FocusResolver-885f2173.js +35 -0
- package/dist/cjs/FormLayout-c2451c7f.js +7 -0
- package/dist/cjs/{constants-2714478b.js → constants-569271bc.js} +4 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js +7 -5
- 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 +15 -3
- 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 +270 -0
- package/dist/cjs/ez-chart.cjs.entry.js +4 -4
- package/dist/cjs/ez-check.cjs.entry.js +19 -11
- package/dist/cjs/ez-chip.cjs.entry.js +2 -2
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +4 -3
- package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +388 -0
- package/dist/cjs/ez-combo-box.cjs.entry.js +80 -157
- package/dist/cjs/ez-date-input.cjs.entry.js +17 -20
- package/dist/cjs/ez-date-time-input.cjs.entry.js +16 -21
- package/dist/cjs/ez-dialog.cjs.entry.js +19 -9
- package/dist/cjs/ez-double-list.cjs.entry.js +287 -0
- package/dist/cjs/ez-dropdown.cjs.entry.js +15 -9
- package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
- package/dist/cjs/ez-form-view.cjs.entry.js +42 -28
- package/dist/cjs/ez-form.cjs.entry.js +35 -328
- package/dist/cjs/ez-grid.cjs.entry.js +15221 -69822
- 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 +8 -4
- package/dist/cjs/ez-modal.cjs.entry.js +18 -5
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +3 -3
- package/dist/cjs/ez-number-input.cjs.entry.js +17 -4
- package/dist/cjs/ez-popover-plus_3.cjs.entry.js +209 -0
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +30 -4
- 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-plus.cjs.entry.js +398 -0
- package/dist/cjs/ez-search-result-list.cjs.entry.js +97 -0
- package/dist/cjs/ez-search.cjs.entry.js +125 -192
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +2 -2
- package/dist/cjs/ez-skeleton.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 +9 -5
- 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 +92 -9
- package/dist/cjs/ez-text-input.cjs.entry.js +136 -31
- package/dist/cjs/ez-time-input.cjs.entry.js +10 -3
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ez-tooltip.cjs.entry.js +135 -0
- package/dist/cjs/ez-tree.cjs.entry.js +6 -5
- 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 +25 -52
- package/dist/cjs/floating-ui.dom.esm-017acce4.js +1404 -0
- package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +32 -11
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/searchFormatters-b7e1ed1e.js +23 -0
- package/dist/cjs/{ICustomRender-6fafffce.js → types-6a5df0c7.js} +8 -0
- package/dist/collection/collection-manifest.json +20 -2
- package/dist/collection/components/ez-actions-button/ez-actions-button.js +3 -2
- package/dist/collection/components/ez-badge/ez-badge.css +12 -1
- package/dist/collection/components/ez-badge/ez-badge.js +31 -1
- package/dist/collection/components/ez-button/ez-button.css +24 -14
- package/dist/collection/components/ez-button/ez-button.js +12 -6
- package/dist/collection/components/ez-card-item/ez-card-item.css +58 -10
- package/dist/collection/components/ez-card-item/ez-card-item.js +30 -3
- package/dist/collection/components/ez-chart/ez-chart.js +2 -2
- package/dist/collection/components/ez-chart/interfaces/ChartTypeValue.js +1 -0
- package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js +3 -3
- package/dist/collection/components/ez-check/ez-check.css +10 -6
- package/dist/collection/components/ez-check/ez-check.js +34 -9
- package/dist/collection/components/ez-chip/ez-chip.css +5 -1
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -2
- package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.css +205 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.js +426 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.css +8 -246
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +139 -165
- package/dist/collection/components/ez-date-input/ez-date-input.css +1 -1
- package/dist/collection/components/ez-date-input/ez-date-input.js +58 -19
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +1 -1
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +57 -20
- package/dist/collection/components/ez-dialog/ez-dialog.css +27 -24
- package/dist/collection/components/ez-dialog/ez-dialog.js +18 -17
- package/dist/collection/components/ez-double-list/doubleListHelper.js +82 -0
- package/dist/collection/components/ez-double-list/ez-double-list.css +62 -0
- package/dist/collection/components/ez-double-list/ez-double-list.js +440 -0
- package/dist/collection/components/ez-dropdown/ez-dropdown.js +33 -8
- package/dist/collection/components/ez-filter-input/ez-filter-input.css +1 -1
- package/dist/collection/components/ez-filter-input/ez-filter-input.js +35 -4
- package/dist/collection/components/ez-form/ez-form.js +32 -4
- package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +49 -6
- package/dist/collection/components/ez-form-view/ez-form-view.css +13 -2
- package/dist/collection/components/ez-form-view/ez-form-view.js +21 -2
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +5 -2
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +8 -4
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/FileInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.js +6 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextArea.tpl.js +1 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +2 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +419 -75
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +172 -33
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +248 -43
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +16 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +1 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +10 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/ComboBox.tpl.js +2 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/DateInput.tpl.js +1 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +1 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +8 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.js +15 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/TextInput.tpl.js +4 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/test/constants/GridEditionMock.js +2 -0
- package/dist/collection/components/ez-grid/ez-grid.css +95 -10
- package/dist/collection/components/ez-grid/ez-grid.js +370 -12
- package/dist/collection/components/ez-grid/subcomponents/filter-column.css +4 -0
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +23 -50
- package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js +7 -54
- package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js +20 -4
- package/dist/collection/components/ez-icon/ez-icon.css +156 -149
- package/dist/collection/components/ez-list/ez-list.css +5 -4
- package/dist/collection/components/ez-list/ez-list.js +301 -212
- package/dist/collection/components/ez-list/ezListHelper.js +85 -0
- package/dist/collection/components/ez-modal/ez-modal.css +7 -2
- package/dist/collection/components/ez-modal/ez-modal.js +18 -5
- package/dist/collection/components/ez-modal-container/ez-modal-container.css +1 -0
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +6 -2
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +3 -3
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +1 -1
- package/dist/collection/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.js +1 -0
- package/dist/collection/components/ez-number-input/ez-number-input.css +8 -0
- package/dist/collection/components/ez-number-input/ez-number-input.js +67 -1
- package/dist/collection/components/ez-popover-plus/ez-popover-plus.css +3 -0
- package/dist/collection/components/ez-popover-plus/ez-popover-plus.js +434 -0
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.css +67 -0
- package/dist/collection/components/ez-popover-plus/subcomponent/ez-popover-core.js +527 -0
- package/dist/collection/components/ez-popup/ez-popup.css +8 -3
- package/dist/collection/components/ez-popup/ez-popup.js +48 -4
- package/dist/collection/components/ez-scroller/ez-scroller.css +4 -0
- package/dist/collection/components/ez-search/ez-search.css +2 -210
- package/dist/collection/components/ez-search/ez-search.js +223 -204
- package/dist/collection/components/ez-search/subcomponent/search-list/search-list.css +227 -0
- package/dist/collection/components/ez-search/subcomponent/search-list/search-list.js +289 -0
- package/dist/collection/components/ez-search/utils/searchFormatters.js +18 -0
- package/dist/collection/components/ez-search-plus/ez-search-plus.css +373 -0
- package/dist/collection/components/ez-search-plus/ez-search-plus.js +984 -0
- package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.css +221 -0
- package/dist/collection/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.js +278 -0
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +3 -0
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
- package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +4 -1
- package/dist/collection/components/ez-skeleton/ez-skeleton.css +54 -34
- package/dist/collection/components/ez-split-button/ez-split-button.css +52 -14
- package/dist/collection/components/ez-split-button/ez-split-button.js +3 -3
- package/dist/collection/components/ez-split-panel/ez-split-panel.css +15 -0
- package/dist/collection/components/ez-split-panel/ez-split-panel.js +106 -5
- package/dist/collection/components/ez-split-panel/interfaces/IPanelSizeInfo.js +1 -0
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +14 -2
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +22 -1
- package/dist/collection/components/ez-text-area/ez-text-area.css +78 -29
- package/dist/collection/components/ez-text-area/ez-text-area.js +151 -6
- package/dist/collection/components/ez-text-input/ez-text-input.css +126 -93
- package/dist/collection/components/ez-text-input/ez-text-input.js +216 -28
- package/dist/collection/components/ez-time-input/ez-time-input.js +43 -1
- package/dist/collection/components/ez-tooltip/ez-tooltip.css +61 -0
- package/dist/collection/components/ez-tooltip/ez-tooltip.js +310 -0
- package/dist/collection/components/ez-tree/ez-tree.js +21 -1
- package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +3 -3
- package/dist/collection/sw.js +46 -0
- package/dist/collection/utils/CSSVarsUtils.js +1 -0
- package/dist/collection/utils/FocusResolver.js +31 -0
- package/dist/collection/utils/constants.js +2 -0
- package/dist/collection/utils/form/DataBinder.js +65 -21
- package/dist/collection/utils/form/FormMetadata.js +2 -1
- package/dist/collection/utils/form/interfaces/FormLayout.js +5 -0
- package/dist/collection/utils/form/interfaces/index.js +1 -1
- package/dist/collection/utils/form/test/DataBinder.test.js +14 -0
- package/dist/collection/utils/index.js +2 -0
- package/dist/collection/utils/interfaces/AbstractFieldMetadata.js +1 -1
- package/dist/collection/utils/search/types.js +7 -0
- package/dist/collection/utils/validators/recordvalidator/IInvalidCells.js +1 -0
- package/dist/collection/utils/validators/recordvalidator/RecordValidationProcessor.js +7 -1
- package/dist/custom-elements/index.d.ts +48 -0
- package/dist/custom-elements/index.js +21838 -73085
- package/dist/esm/{CSSVarsUtils-71ce76be.js → CSSVarsUtils-acba92d7.js} +1 -0
- package/dist/esm/DataBinder-1035e36f.js +470 -0
- package/dist/esm/FocusResolver-1ccbf850.js +33 -0
- package/dist/esm/FormLayout-54092963.js +7 -0
- package/dist/esm/constants-b036528f.js +7 -0
- package/dist/esm/ez-actions-button.entry.js +7 -5
- 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 +15 -3
- 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 +265 -0
- package/dist/esm/ez-chart.entry.js +4 -4
- package/dist/esm/ez-check.entry.js +19 -11
- package/dist/esm/ez-chip.entry.js +2 -2
- package/dist/esm/ez-collapsible-box.entry.js +4 -3
- package/dist/esm/ez-combo-box-list_3.entry.js +382 -0
- package/dist/esm/ez-combo-box.entry.js +81 -158
- package/dist/esm/ez-date-input.entry.js +17 -20
- package/dist/esm/ez-date-time-input.entry.js +16 -21
- package/dist/esm/ez-dialog.entry.js +20 -10
- package/dist/esm/ez-double-list.entry.js +283 -0
- package/dist/esm/ez-dropdown.entry.js +15 -9
- package/dist/esm/ez-file-item.entry.js +1 -1
- package/dist/esm/ez-filter-input.entry.js +125 -0
- package/dist/esm/ez-form-view.entry.js +43 -29
- package/dist/esm/ez-form.entry.js +34 -327
- package/dist/esm/ez-grid.entry.js +15219 -69820
- 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 +8 -4
- package/dist/esm/ez-modal.entry.js +18 -5
- package/dist/esm/ez-multi-selection-list.entry.js +3 -3
- package/dist/esm/ez-number-input.entry.js +17 -4
- package/dist/esm/ez-popover-plus_3.entry.js +203 -0
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +30 -4
- 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-plus.entry.js +394 -0
- package/dist/esm/ez-search-result-list.entry.js +93 -0
- package/dist/esm/ez-search.entry.js +126 -193
- package/dist/esm/ez-sidebar-navigator.entry.js +2 -2
- package/dist/esm/ez-skeleton.entry.js +2 -2
- package/dist/esm/ez-split-button.entry.js +3 -3
- package/dist/esm/ez-split-item.entry.js +9 -5
- 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 +92 -9
- package/dist/esm/ez-text-input.entry.js +136 -31
- package/dist/esm/ez-time-input.entry.js +10 -3
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ez-tooltip.entry.js +131 -0
- package/dist/esm/ez-tree.entry.js +6 -5
- 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 +25 -52
- package/dist/esm/floating-ui.dom.esm-5d3da819.js +1398 -0
- package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +33 -11
- package/dist/esm/loader.js +3 -3
- package/dist/esm/searchFormatters-8229207e.js +20 -0
- package/dist/esm/{ICustomRender-875b5a40.js → types-6f6b2650.js} +9 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-e6b38ade.entry.js → p-0306dff7.entry.js} +1 -1
- package/dist/ezui/p-03c106f6.entry.js +1 -0
- package/dist/ezui/{p-91ccae0c.entry.js → p-09de35a2.entry.js} +1 -1
- package/dist/ezui/p-0bffeffc.entry.js +1 -0
- package/dist/ezui/p-15ea0c98.js +1 -0
- package/dist/ezui/p-173f68ea.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-20c024f7.entry.js +1 -0
- package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
- package/dist/ezui/p-2872fd16.entry.js +1 -0
- package/dist/ezui/p-288631d1.entry.js +1 -0
- package/dist/ezui/p-2b4df33d.entry.js +1 -0
- package/dist/ezui/p-3ba9565c.entry.js +1 -0
- package/dist/ezui/p-40a60148.js +1 -0
- package/dist/ezui/{p-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
- package/dist/ezui/p-496f7832.entry.js +1 -0
- package/dist/ezui/p-4bd6dd6a.entry.js +1 -0
- package/dist/ezui/{p-82ac8b06.entry.js → p-4cf0aaeb.entry.js} +1 -1
- package/dist/ezui/{p-7567ccdd.entry.js → p-555c9018.entry.js} +1 -1
- package/dist/ezui/p-56fe5341.entry.js +1 -0
- package/dist/ezui/p-5895e687.js +1 -0
- package/dist/ezui/p-5a14f506.entry.js +1 -0
- package/dist/ezui/p-5ec0ae79.entry.js +1 -0
- package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
- package/dist/ezui/p-5eea9886.js +1 -0
- package/dist/ezui/p-629d15ed.entry.js +1 -0
- package/dist/ezui/p-6754489a.entry.js +1 -0
- package/dist/ezui/p-6825bdc7.entry.js +1 -0
- package/dist/ezui/p-6b39b79a.entry.js +309 -0
- package/dist/ezui/{p-fc194825.entry.js → p-6e429cff.entry.js} +1 -1
- package/dist/ezui/p-6f4681f8.entry.js +1 -0
- package/dist/ezui/p-7019f782.entry.js +1 -0
- package/dist/ezui/p-7742802c.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-80dfc50b.js +1 -0
- package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
- package/dist/ezui/p-9478b13b.entry.js +1 -0
- package/dist/ezui/p-9567b31a.entry.js +1 -0
- package/dist/ezui/p-9c5cd3b2.entry.js +1 -0
- package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
- package/dist/ezui/p-a4cee65d.entry.js +1 -0
- package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
- package/dist/ezui/p-b81881ac.entry.js +1 -0
- package/dist/ezui/p-bac0f920.entry.js +1 -0
- package/dist/ezui/p-bc2f844e.entry.js +1 -0
- package/dist/ezui/p-bf9dec89.entry.js +1 -0
- package/dist/ezui/p-c00df4be.entry.js +1 -0
- package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
- package/dist/ezui/p-cb75eb46.entry.js +1 -0
- package/dist/ezui/{p-044d46d5.entry.js → p-d47dabdf.entry.js} +1 -1
- package/dist/ezui/p-da1b4a38.entry.js +1 -0
- package/dist/ezui/p-dc628ed3.js +1 -0
- package/dist/ezui/p-dc73e1fe.entry.js +1 -0
- package/dist/ezui/{p-b2f6bc0a.entry.js → p-e06a9886.entry.js} +1 -1
- package/dist/ezui/p-e07e4671.js +1 -0
- package/dist/ezui/p-e6a9041d.entry.js +1 -0
- package/dist/ezui/p-e75c7a23.entry.js +1 -0
- package/dist/ezui/p-ebd23857.entry.js +1 -0
- package/dist/ezui/p-ec7db713.js +1 -0
- package/dist/ezui/p-ecaac11f.entry.js +1 -0
- package/dist/ezui/p-f4861c6a.entry.js +1 -0
- package/dist/ezui/p-f5a30e35.entry.js +1 -0
- package/dist/ezui/p-f6316720.entry.js +1 -0
- package/dist/ezui/p-fa6732f2.entry.js +1 -0
- package/dist/types/components/ez-badge/ez-badge.d.ts +5 -0
- package/dist/types/components/ez-button/ez-button.d.ts +2 -1
- package/dist/types/components/ez-calendar/ez-calendar.d.ts +3 -3
- package/dist/types/components/ez-card-item/ez-card-item.d.ts +5 -0
- package/dist/types/components/ez-chart/interfaces/ChartAxis.d.ts +2 -0
- package/dist/types/components/ez-chart/interfaces/ChartTypeValue.d.ts +1 -0
- package/dist/types/components/ez-check/ez-check.d.ts +7 -2
- package/dist/types/components/ez-combo-box/ez-combo-box-list/ez-combo-box-list.d.ts +104 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +19 -15
- package/dist/types/components/ez-date-input/ez-date-input.d.ts +12 -3
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +12 -3
- package/dist/types/components/ez-dialog/ez-dialog.d.ts +3 -1
- package/dist/types/components/ez-double-list/doubleListHelper.d.ts +10 -0
- package/dist/types/components/ez-double-list/ez-double-list.d.ts +87 -0
- package/dist/types/components/ez-dropdown/ez-dropdown.d.ts +4 -0
- package/dist/types/components/ez-dropdown/structure/DropdownItem.d.ts +1 -1
- package/dist/types/components/ez-filter-input/ez-filter-input.d.ts +6 -1
- package/dist/types/components/ez-form/ez-form.d.ts +5 -1
- package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +7 -1
- package/dist/types/components/ez-form-view/ez-form-view.d.ts +4 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.d.ts +2 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInputPlus.tpl.d.ts +2 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +75 -4
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +44 -6
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +26 -2
- package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +34 -7
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +4 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +2 -1
- package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.d.ts +3 -0
- package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
- package/dist/types/components/ez-grid/ez-grid.d.ts +59 -1
- package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +1 -11
- package/dist/types/components/ez-grid/utils/ColumnFilterManager.d.ts +1 -1
- package/dist/types/components/ez-grid/utils/InMemoryFilterColumnDataSource.d.ts +3 -0
- package/dist/types/components/ez-list/ez-list.d.ts +23 -2
- package/dist/types/components/ez-list/ezListHelper.d.ts +20 -0
- package/dist/types/components/ez-modal/ez-modal.d.ts +4 -1
- package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +2 -0
- package/dist/types/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.d.ts +2 -1
- package/dist/types/components/ez-multi-selection-list/interfaces/IStaticOptionsFetchConfig.d.ts +3 -0
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +12 -0
- package/dist/types/components/ez-popover-plus/ez-popover-plus.d.ts +74 -0
- package/dist/types/components/ez-popover-plus/subcomponent/ez-popover-core.d.ts +91 -0
- package/dist/types/components/ez-popup/ez-popup.d.ts +10 -1
- package/dist/types/components/ez-search/ez-search.d.ts +36 -18
- package/dist/types/components/ez-search/subcomponent/search-list/search-list.d.ts +23 -0
- package/dist/types/components/ez-search/utils/searchFormatters.d.ts +2 -0
- package/dist/types/components/ez-search-plus/ez-search-plus.d.ts +186 -0
- package/dist/types/components/ez-search-plus/subcomponent/ez-search-result-list/ez-search-result-list.d.ts +26 -0
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -1
- package/dist/types/components/ez-split-panel/ez-split-panel.d.ts +11 -0
- package/dist/types/components/ez-split-panel/interfaces/IPanelSizeInfo.d.ts +9 -0
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +5 -0
- package/dist/types/components/ez-text-area/ez-text-area.d.ts +25 -0
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +35 -3
- package/dist/types/components/ez-time-input/ez-time-input.d.ts +8 -0
- package/dist/types/components/ez-tooltip/ez-tooltip.d.ts +57 -0
- package/dist/types/components/ez-tree/ez-tree.d.ts +4 -0
- package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +1 -0
- package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +1 -0
- package/dist/types/components.d.ts +1233 -63
- package/dist/types/utils/FocusResolver.d.ts +5 -0
- package/dist/types/utils/constants.d.ts +2 -0
- package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +2 -0
- package/dist/types/utils/form/DataBinder.d.ts +7 -2
- package/dist/types/utils/form/interfaces/FormLayout.d.ts +4 -0
- package/dist/types/utils/form/interfaces/index.d.ts +1 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/dist/types/utils/search/types.d.ts +12 -0
- package/dist/types/utils/validators/recordvalidator/IInvalidCells.d.ts +5 -0
- package/dist/types/utils/validators/recordvalidator/RecordValidationProcessor.d.ts +1 -1
- package/package.json +12 -4
- package/react/components.d.ts +62 -54
- package/react/components.js +8 -0
- package/react/components.js.map +1 -1
- package/react/react-component-lib/createComponent.d.ts +1 -1
- package/react/react-component-lib/createComponent.js.map +1 -1
- package/react/react-component-lib/createOverlayComponent.js.map +1 -1
- package/react/react-component-lib/interfaces.js +1 -0
- package/react/react-component-lib/utils/attachProps.d.ts +1 -1
- package/react/react-component-lib/utils/attachProps.js.map +1 -1
- package/react/react-component-lib/utils/dev.js.map +1 -1
- package/react/react-component-lib/utils/index.d.ts +2 -2
- package/react/react-component-lib/utils/index.js.map +1 -1
- package/dist/cjs/RecordValidationProcessor-4c893e04.js +0 -102
- package/dist/cjs/ez-card-item_3.cjs.entry.js +0 -183
- package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +0 -206
- package/dist/esm/RecordValidationProcessor-b00b8b77.js +0 -99
- package/dist/esm/constants-4e0d35b7.js +0 -5
- package/dist/esm/ez-card-item_3.entry.js +0 -177
- package/dist/esm/ez-custom-form-input_2.entry.js +0 -201
- package/dist/ezui/p-04f24913.js +0 -1
- package/dist/ezui/p-05e1f4e7.js +0 -1
- package/dist/ezui/p-0ee0ac03.entry.js +0 -1
- package/dist/ezui/p-11b09aa1.entry.js +0 -1
- package/dist/ezui/p-1b08bf3c.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-30951bd7.entry.js +0 -1
- package/dist/ezui/p-3141ee18.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-36180f4d.entry.js +0 -1
- package/dist/ezui/p-3f8c33e0.entry.js +0 -1
- package/dist/ezui/p-4607fb89.js +0 -1
- package/dist/ezui/p-52100a6e.entry.js +0 -1
- package/dist/ezui/p-5517995b.entry.js +0 -1
- package/dist/ezui/p-5fefcdc9.entry.js +0 -1
- package/dist/ezui/p-615def37.entry.js +0 -304
- 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-9a23d513.entry.js +0 -1
- package/dist/ezui/p-9aa27e69.entry.js +0 -1
- package/dist/ezui/p-9c2e2d68.entry.js +0 -1
- package/dist/ezui/p-9e11fc7b.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-ee9315ff.entry.js +0 -1
- package/dist/ezui/p-f1c2c19e.entry.js +0 -1
- package/dist/ezui/p-f1c3f85d.entry.js +0 -1
- package/dist/ezui/p-f291db18.entry.js +0 -1
|
@@ -2,6 +2,8 @@ import { ElementIDUtils } from '@sankhyalabs/core';
|
|
|
2
2
|
import { h, Host } from '@stencil/core';
|
|
3
3
|
export class EzTextArea {
|
|
4
4
|
constructor() {
|
|
5
|
+
this.LINE_HEIGHT = 24;
|
|
6
|
+
this.HEIGHT_RATIO = 1.4;
|
|
5
7
|
this.label = undefined;
|
|
6
8
|
this.value = undefined;
|
|
7
9
|
this.enabled = true;
|
|
@@ -9,7 +11,11 @@ export class EzTextArea {
|
|
|
9
11
|
this.rows = 4;
|
|
10
12
|
this.canShowError = true;
|
|
11
13
|
this.mode = "regular";
|
|
12
|
-
this.enableResize =
|
|
14
|
+
this.enableResize = true;
|
|
15
|
+
this.autoRows = false;
|
|
16
|
+
this.autoFocus = false;
|
|
17
|
+
this.alternativePlaceholder = undefined;
|
|
18
|
+
this.forceLabelFloat = false;
|
|
13
19
|
}
|
|
14
20
|
observeErrorMessage() {
|
|
15
21
|
var _a, _b, _c, _d;
|
|
@@ -47,10 +53,22 @@ export class EzTextArea {
|
|
|
47
53
|
observeRows() {
|
|
48
54
|
const rows = this.rows > 0 ? this.rows : this.mode != "slim" ? 4 : 2;
|
|
49
55
|
if (rows !== this.rows) {
|
|
50
|
-
this.rows
|
|
51
|
-
|
|
56
|
+
this.updateRows(rows);
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
observeAutoRows() {
|
|
60
|
+
var _a, _b;
|
|
61
|
+
if (this.autoRows) {
|
|
62
|
+
(_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
63
|
+
this.initializeResizeObserver();
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
(_b = this._resizeObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
52
67
|
}
|
|
53
68
|
}
|
|
69
|
+
observeAlternativePlaceholder(newValue) {
|
|
70
|
+
this.forceLabelFloat = !!newValue;
|
|
71
|
+
}
|
|
54
72
|
//---------------------------------------------
|
|
55
73
|
// Public methods
|
|
56
74
|
//---------------------------------------------
|
|
@@ -99,6 +117,8 @@ export class EzTextArea {
|
|
|
99
117
|
return this._inputElem && (this.value || "") !== this._inputElem.value;
|
|
100
118
|
}
|
|
101
119
|
adjustFloatingLabel() {
|
|
120
|
+
if (this.forceLabelFloat)
|
|
121
|
+
return;
|
|
102
122
|
if (this.label && this._labelElem) {
|
|
103
123
|
const hasValue = this.value && this.value.toString().length > 0;
|
|
104
124
|
const containsFloatedClass = this._labelElem.classList.contains("textarea__label--floated");
|
|
@@ -117,6 +137,42 @@ export class EzTextArea {
|
|
|
117
137
|
isFocused() {
|
|
118
138
|
return this._hostElement.shadowRoot.activeElement !== null;
|
|
119
139
|
}
|
|
140
|
+
updateRows(newRows) {
|
|
141
|
+
this.rows = newRows;
|
|
142
|
+
this._initialRows = newRows;
|
|
143
|
+
}
|
|
144
|
+
calculateMaxRows() {
|
|
145
|
+
const parentElement = this._hostElement.parentElement;
|
|
146
|
+
if (!parentElement) {
|
|
147
|
+
return;
|
|
148
|
+
}
|
|
149
|
+
const height = Math.max((parentElement === null || parentElement === void 0 ? void 0 : parentElement.clientHeight) || 0, this.LINE_HEIGHT);
|
|
150
|
+
if (height > 0) {
|
|
151
|
+
const maxRows = Math.floor(height / this.LINE_HEIGHT * this.HEIGHT_RATIO);
|
|
152
|
+
if (maxRows !== this.rows) {
|
|
153
|
+
this.updateRows(maxRows);
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
initializeResizeObserver() {
|
|
158
|
+
if (!this.autoRows) {
|
|
159
|
+
return;
|
|
160
|
+
}
|
|
161
|
+
const parentElement = this._hostElement.parentElement;
|
|
162
|
+
if (parentElement) {
|
|
163
|
+
try {
|
|
164
|
+
if (this._resizeObserver != undefined) {
|
|
165
|
+
this._resizeObserver.unobserve(parentElement);
|
|
166
|
+
}
|
|
167
|
+
this._resizeObserver = new ResizeObserver(this.calculateMaxRows.bind(this));
|
|
168
|
+
this._resizeObserver.observe(parentElement);
|
|
169
|
+
}
|
|
170
|
+
catch (e) {
|
|
171
|
+
console.warn(e);
|
|
172
|
+
}
|
|
173
|
+
this.calculateMaxRows();
|
|
174
|
+
}
|
|
175
|
+
}
|
|
120
176
|
//---------------------------------------------
|
|
121
177
|
// Event handlers
|
|
122
178
|
//---------------------------------------------
|
|
@@ -139,6 +195,26 @@ export class EzTextArea {
|
|
|
139
195
|
this._container.classList.add("textarea--focus");
|
|
140
196
|
}
|
|
141
197
|
}
|
|
198
|
+
connectedCallback() {
|
|
199
|
+
this.initializeResizeObserver();
|
|
200
|
+
}
|
|
201
|
+
disconnectedCallback() {
|
|
202
|
+
var _a;
|
|
203
|
+
(_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
204
|
+
}
|
|
205
|
+
buildPlaceholder() {
|
|
206
|
+
if (this.alternativePlaceholder)
|
|
207
|
+
return this.alternativePlaceholder;
|
|
208
|
+
return (this.mode === "slim" && this.label) ? this.label : '';
|
|
209
|
+
}
|
|
210
|
+
buildLabelClass() {
|
|
211
|
+
let classList = this.enabled ? 'textarea__label' : 'textarea__label textarea__label--disabled';
|
|
212
|
+
if (this.errorMessage)
|
|
213
|
+
classList = classList + ' hasError';
|
|
214
|
+
if (this.forceLabelFloat)
|
|
215
|
+
classList = classList + ' textarea__label--floated';
|
|
216
|
+
return classList;
|
|
217
|
+
}
|
|
142
218
|
//---------------------------------------------
|
|
143
219
|
// Lifecycle web component
|
|
144
220
|
//---------------------------------------------
|
|
@@ -146,15 +222,20 @@ export class EzTextArea {
|
|
|
146
222
|
this.observeErrorMessage();
|
|
147
223
|
this.adjustFloatingLabel();
|
|
148
224
|
this.observeMode();
|
|
225
|
+
if (this.autoFocus) {
|
|
226
|
+
requestAnimationFrame(() => {
|
|
227
|
+
this.setFocus();
|
|
228
|
+
});
|
|
229
|
+
}
|
|
149
230
|
}
|
|
150
231
|
render() {
|
|
151
232
|
ElementIDUtils.addIDInfoIfNotExists(this._hostElement, 'input');
|
|
152
|
-
return (h(Host, null, h("div", { class: "textarea"
|
|
153
|
-
h("label", { ref: (el) => this._labelElem = el, class: this.
|
|
233
|
+
return (h(Host, null, h("div", { class: `textarea ${this.enabled ? "" : "textarea--disabled"}`, ref: (el) => this._container = el }, this.label && this.mode != "slim" ?
|
|
234
|
+
h("label", { ref: (el) => this._labelElem = el, class: this.buildLabelClass(), onClick: () => this._inputElem.focus(), title: this.label }, this.label)
|
|
154
235
|
: null, h("textarea", { onFocus: () => this.handleFocus(), "data-element-id": ElementIDUtils.getInternalIDInfo("input"), ref: (el) => this._inputElem = el, value: this.value, disabled: !this.enabled, class: {
|
|
155
236
|
"textarea--slim": this.mode === "slim",
|
|
156
237
|
"textarea--resizable": this.enableResize
|
|
157
|
-
}, placeholder: this.
|
|
238
|
+
}, placeholder: this.buildPlaceholder(), onInput: () => { this.handleChange(); }, onFocusout: () => { this.handleFocusout(); }, rows: this.rows })), this.canShowError && this.mode != "slim" &&
|
|
158
239
|
h("span", { class: "message-box", ref: (el) => this._messageBoxElem = el, title: this.errorMessage }, this.errorMessage)));
|
|
159
240
|
}
|
|
160
241
|
static get is() { return "ez-text-area"; }
|
|
@@ -310,10 +391,68 @@ export class EzTextArea {
|
|
|
310
391
|
},
|
|
311
392
|
"attribute": "enable-resize",
|
|
312
393
|
"reflect": true,
|
|
394
|
+
"defaultValue": "true"
|
|
395
|
+
},
|
|
396
|
+
"autoRows": {
|
|
397
|
+
"type": "boolean",
|
|
398
|
+
"mutable": false,
|
|
399
|
+
"complexType": {
|
|
400
|
+
"original": "boolean",
|
|
401
|
+
"resolved": "boolean",
|
|
402
|
+
"references": {}
|
|
403
|
+
},
|
|
404
|
+
"required": false,
|
|
405
|
+
"optional": false,
|
|
406
|
+
"docs": {
|
|
407
|
+
"tags": [],
|
|
408
|
+
"text": "Ativa a op\u00E7\u00E3o de fazer as linhas do componente serem baseados na altura m\u00E1xima."
|
|
409
|
+
},
|
|
410
|
+
"attribute": "auto-rows",
|
|
411
|
+
"reflect": true,
|
|
412
|
+
"defaultValue": "false"
|
|
413
|
+
},
|
|
414
|
+
"autoFocus": {
|
|
415
|
+
"type": "boolean",
|
|
416
|
+
"mutable": false,
|
|
417
|
+
"complexType": {
|
|
418
|
+
"original": "boolean",
|
|
419
|
+
"resolved": "boolean",
|
|
420
|
+
"references": {}
|
|
421
|
+
},
|
|
422
|
+
"required": false,
|
|
423
|
+
"optional": false,
|
|
424
|
+
"docs": {
|
|
425
|
+
"tags": [],
|
|
426
|
+
"text": "Se true o campo de texto receber\u00E1 o foco ao ser renderizado."
|
|
427
|
+
},
|
|
428
|
+
"attribute": "auto-focus",
|
|
429
|
+
"reflect": false,
|
|
313
430
|
"defaultValue": "false"
|
|
431
|
+
},
|
|
432
|
+
"alternativePlaceholder": {
|
|
433
|
+
"type": "string",
|
|
434
|
+
"mutable": false,
|
|
435
|
+
"complexType": {
|
|
436
|
+
"original": "string",
|
|
437
|
+
"resolved": "string",
|
|
438
|
+
"references": {}
|
|
439
|
+
},
|
|
440
|
+
"required": false,
|
|
441
|
+
"optional": false,
|
|
442
|
+
"docs": {
|
|
443
|
+
"tags": [],
|
|
444
|
+
"text": "Texto alternativo a ser apresentado como t\u00EDtulo do campo."
|
|
445
|
+
},
|
|
446
|
+
"attribute": "alternative-placeholder",
|
|
447
|
+
"reflect": true
|
|
314
448
|
}
|
|
315
449
|
};
|
|
316
450
|
}
|
|
451
|
+
static get states() {
|
|
452
|
+
return {
|
|
453
|
+
"forceLabelFloat": {}
|
|
454
|
+
};
|
|
455
|
+
}
|
|
317
456
|
static get events() {
|
|
318
457
|
return [{
|
|
319
458
|
"method": "ezChange",
|
|
@@ -423,6 +562,12 @@ export class EzTextArea {
|
|
|
423
562
|
}, {
|
|
424
563
|
"propName": "rows",
|
|
425
564
|
"methodName": "observeRows"
|
|
565
|
+
}, {
|
|
566
|
+
"propName": "autoRows",
|
|
567
|
+
"methodName": "observeAutoRows"
|
|
568
|
+
}, {
|
|
569
|
+
"propName": "alternativePlaceholder",
|
|
570
|
+
"methodName": "observeAlternativePlaceholder"
|
|
426
571
|
}];
|
|
427
572
|
}
|
|
428
573
|
}
|
|
@@ -5,13 +5,27 @@
|
|
|
5
5
|
/*@doc Define a largura do componente.*/
|
|
6
6
|
--ez-text-input--width: 100%;
|
|
7
7
|
/*@doc Define a largura do slot que contém o ícone.*/
|
|
8
|
-
--ez-text-input__icon--width:
|
|
8
|
+
--ez-text-input__icon--width: 30px;
|
|
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.*/
|
|
14
18
|
--ez-text-input--border-radius: var(--border--radius-medium, 12px);
|
|
19
|
+
|
|
20
|
+
/*@doc Define o raio da borda no top esquerdo do componente.*/
|
|
21
|
+
--ez-text-input--border-top-left-radius: var(--ez-text-input--border-radius);
|
|
22
|
+
/*@doc Define o raio da borda inferior esquerda do componente.*/
|
|
23
|
+
--ez-text-input--border-bottom-left-radius: var(--ez-text-input--border-radius);
|
|
24
|
+
/*@doc Define o raio da borda no top direito do componente.*/
|
|
25
|
+
--ez-text-input--border-top-right-radius: var(--ez-text-input--border-radius);
|
|
26
|
+
/*@doc Define o raio da borda inferior direita do componente.*/
|
|
27
|
+
--ez-text-input--border-bottom-right-radius: var(--ez-text-input--border-radius);
|
|
28
|
+
|
|
15
29
|
/*@doc Define o tamanho da fonte do input e label do componente.*/
|
|
16
30
|
--ez-text-input--font-size: var(--text--medium, 14px);
|
|
17
31
|
/*@doc Define a família da fonte do input, label e caixa de mensagem do componente.*/
|
|
@@ -20,35 +34,41 @@
|
|
|
20
34
|
--ez-text-input--font-weight: var(--text-weight--medium, 400);
|
|
21
35
|
/*@doc Define a cor da fonte do input e label do componente.*/
|
|
22
36
|
--ez-text-input--color: var(--title--primary, #2B3A54);
|
|
37
|
+
/*@doc Define a margem abaixo do componente.*/
|
|
38
|
+
--ez-text-input__margin-bottom: var(--space--small);
|
|
23
39
|
|
|
24
40
|
/* input */
|
|
25
41
|
/*@doc Define a cor de fundo do input.*/
|
|
26
|
-
--ez-text-input__input--background-color: var(--background--
|
|
42
|
+
--ez-text-input__input--background-color: var(--background--light, #ffffff);
|
|
27
43
|
/*@doc Define o estilo da borda do input.*/
|
|
28
|
-
--ez-text-input__input--border: var(--border--
|
|
44
|
+
--ez-text-input__input--border: var(--border--small, 1px solid);
|
|
29
45
|
/*@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*/
|
|
46
|
+
--ez-text-input__input--border-color: var(--color--strokes,#DCE0E8);
|
|
32
47
|
/*@doc Define a cor da borda do input quando focado.*/
|
|
33
48
|
--ez-text-input__input--focus--border-color: var(--color--primary, #008561);
|
|
49
|
+
|
|
50
|
+
/* input disabled */
|
|
34
51
|
/*@doc Define a cor de fundo do input quando desabilitado.*/
|
|
35
|
-
--ez-text-input__input--disabled--background-color: var(--
|
|
52
|
+
--ez-text-input__input--disabled--background-color: var(--background--medium, #F0F3F7);
|
|
36
53
|
/*@doc Define a cor do texto do input.*/
|
|
37
|
-
--ez-text-input__input--disabled--color: var(--text--
|
|
54
|
+
--ez-text-input__input--disabled--color: var(--text--primary, #626E82);
|
|
55
|
+
|
|
56
|
+
/* input error */
|
|
38
57
|
/*@doc Define a cor da borda do input quando com erro.*/
|
|
39
|
-
--ez-text-input__input--error--border-color:
|
|
58
|
+
--ez-text-input__input--error--border-color: var(--color-alert--error-800,#BD0025);
|
|
59
|
+
|
|
60
|
+
|
|
40
61
|
/*@doc Define a cor do input quando não possuir borda*/
|
|
41
62
|
--ez-text-input__input--noborder-color: white;
|
|
42
63
|
/*@doc Define o padding do input*/
|
|
43
64
|
--ez-text-input__input--padding: var(--space--medium, 6px);
|
|
65
|
+
/*@doc Define a cor do placeholder do input.*/
|
|
66
|
+
--ez-text-input__placeholder--color: var(--text--secondary, #a2abb9);
|
|
67
|
+
|
|
44
68
|
|
|
45
|
-
/*
|
|
46
|
-
/*@doc Define o tamanho da fonte da mensagem abaixo do input.*/
|
|
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);
|
|
69
|
+
/* tooltip icon */
|
|
50
70
|
/*@doc Define a cor da fonte da mensagem quando erro.*/
|
|
51
|
-
--ez-text-
|
|
71
|
+
--ez-text-input__tooltip_icon--error--color: var(--color-alert--error-800,#BD0025);
|
|
52
72
|
|
|
53
73
|
/* label */
|
|
54
74
|
/*@doc Define o posicionamento do label.*/
|
|
@@ -61,7 +81,20 @@
|
|
|
61
81
|
--ez-text-input__label--padding-right: 12px;
|
|
62
82
|
|
|
63
83
|
/*@doc Define a cor do ícone do slot.*/
|
|
64
|
-
--ez-text-input__input--focus--icon-color: var(--
|
|
84
|
+
--ez-text-input__input--focus--icon-color: var(--title--primary, #2B3A54);
|
|
85
|
+
/*@doc Define a cor do ícone do slot quando disabled.*/
|
|
86
|
+
--ez-text-input__input--disabled--focus--icon-color: var(--text--primary, #626E82);
|
|
87
|
+
|
|
88
|
+
/*Error icon*/
|
|
89
|
+
/*@doc Define o espaçamento lateral do icone de erro.*/
|
|
90
|
+
--ez-text-input__tooltip-icon--spacing: var(--space--large);
|
|
91
|
+
/*@doc Define a largura do icone de erro.*/
|
|
92
|
+
--ez-text-input__tooltip-icon---width: var(--space--large);
|
|
93
|
+
/*@doc Define a margem horizontal do icone de erro.*/
|
|
94
|
+
--ez-text-input__tooltip-icon---horizontal-margin: var(--space--medium, 12px);
|
|
95
|
+
/*@doc Define a margem vertical do icone de erro.*/
|
|
96
|
+
--ez-text-input__tooltip-icon---vertical-margin: 10px;
|
|
97
|
+
|
|
65
98
|
|
|
66
99
|
|
|
67
100
|
/***************
|
|
@@ -73,6 +106,8 @@
|
|
|
73
106
|
position: relative;
|
|
74
107
|
/*public*/
|
|
75
108
|
width: var(--ez-text-input--width);
|
|
109
|
+
min-width: var(--ez-text-input__min-width);
|
|
110
|
+
max-width: var(--ez-text-input__max-width);
|
|
76
111
|
}
|
|
77
112
|
|
|
78
113
|
:host(.grid_editor){
|
|
@@ -83,10 +118,16 @@ input {
|
|
|
83
118
|
/*private*/
|
|
84
119
|
width: 100%;
|
|
85
120
|
box-sizing: border-box;
|
|
121
|
+
text-overflow: ellipsis;
|
|
122
|
+
overflow: hidden;
|
|
123
|
+
white-space: nowrap;
|
|
86
124
|
|
|
87
125
|
/*public*/
|
|
88
126
|
height: var(--ez-text-input--height);
|
|
89
|
-
border-radius: var(--ez-text-input--border-radius);
|
|
127
|
+
border-top-left-radius: var(--ez-text-input--border-top-left-radius);
|
|
128
|
+
border-bottom-left-radius: var(--ez-text-input--border-bottom-left-radius);
|
|
129
|
+
border-top-right-radius: var(--ez-text-input--border-top-right-radius);
|
|
130
|
+
border-bottom-right-radius: var(--ez-text-input--border-bottom-right-radius);
|
|
90
131
|
font-family: var(--ez-text-input--font-family);
|
|
91
132
|
font-size: var(--ez-text-input--font-size);
|
|
92
133
|
border: var(--ez-text-input__input--border);
|
|
@@ -95,17 +136,24 @@ input {
|
|
|
95
136
|
color: var(--ez-text-input--color);
|
|
96
137
|
font-weight: var(--ez-text-input--font-weight);
|
|
97
138
|
padding: var(--ez-text-input__input--padding);
|
|
139
|
+
margin-bottom: var(--ez-text-input__margin-bottom);
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
input.no--margin {
|
|
143
|
+
--ez-text-input__margin-bottom: 0;
|
|
98
144
|
}
|
|
99
145
|
|
|
100
146
|
input:disabled {
|
|
101
147
|
/*public*/
|
|
102
148
|
background-color: var(--ez-text-input__input--disabled--background-color);
|
|
103
149
|
color: var(--ez-text-input__input--disabled--color);
|
|
150
|
+
cursor: not-allowed;
|
|
104
151
|
}
|
|
105
152
|
|
|
106
153
|
input:focus {
|
|
107
154
|
/*private*/
|
|
108
155
|
outline: none;
|
|
156
|
+
border: var(--border--medium, 2px solid);
|
|
109
157
|
/*public*/
|
|
110
158
|
border-color: var(--ez-text-input__input--focus--border-color);
|
|
111
159
|
}
|
|
@@ -113,14 +161,22 @@ input:focus {
|
|
|
113
161
|
input.icon--left {
|
|
114
162
|
padding-left: var(--ez-text-input__icon--width);
|
|
115
163
|
}
|
|
164
|
+
input.icon--left.hasError {
|
|
165
|
+
padding-right: var(--ez-text-input__icon--width);
|
|
166
|
+
}
|
|
116
167
|
|
|
117
168
|
input.icon--right {
|
|
118
169
|
padding-right: var(--ez-text-input__icon--width);
|
|
119
170
|
}
|
|
171
|
+
input.icon--right.hasError {
|
|
172
|
+
padding-right: calc(var(--ez-text-input__icon--width) + var(--ez-text-input__tooltip-icon--spacing));
|
|
173
|
+
}
|
|
120
174
|
|
|
121
175
|
input.hasError {
|
|
122
176
|
color: var(--ez-text-input--color);
|
|
177
|
+
border: var(--border--medium, 2px solid);
|
|
123
178
|
border-color: var(--ez-text-input__input--error--border-color);
|
|
179
|
+
padding-right: calc(var(--ez-text-input__tooltip-icon---width) + (2*var(--ez-text-input__tooltip-icon---horizontal-margin)));
|
|
124
180
|
}
|
|
125
181
|
|
|
126
182
|
input:disabled.hasError {
|
|
@@ -131,29 +187,14 @@ input.text--right {
|
|
|
131
187
|
text-align: right;
|
|
132
188
|
}
|
|
133
189
|
|
|
190
|
+
input:disabled,
|
|
134
191
|
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);
|
|
192
|
+
cursor: not-allowed;
|
|
152
193
|
}
|
|
153
194
|
|
|
154
195
|
.hasError {
|
|
155
196
|
/*public*/
|
|
156
|
-
color: var(--ez-text-
|
|
197
|
+
color: var(--ez-text-input__tooltip_icon--error--color);
|
|
157
198
|
}
|
|
158
199
|
|
|
159
200
|
.input__label {
|
|
@@ -178,7 +219,9 @@ input:read-only {
|
|
|
178
219
|
left: var(--ez-text-input__label--padding-left);
|
|
179
220
|
padding-right: var(--ez-text-input__label--padding-right);
|
|
180
221
|
}
|
|
181
|
-
|
|
222
|
+
.input__label.hasError {
|
|
223
|
+
width: calc(100% - 2*(var(--ez-text-input__tooltip-icon--spacing)));
|
|
224
|
+
}
|
|
182
225
|
.input__label--floated {
|
|
183
226
|
font-family: var(--ez-text-input--font-family);
|
|
184
227
|
font-size: var(--text--extra-small);
|
|
@@ -188,6 +231,7 @@ input:read-only {
|
|
|
188
231
|
|
|
189
232
|
.input__label--disabled {
|
|
190
233
|
color: var(--ez-text-input__input--disabled--color);
|
|
234
|
+
cursor: not-allowed;
|
|
191
235
|
}
|
|
192
236
|
|
|
193
237
|
.input__label--left {
|
|
@@ -198,17 +242,25 @@ input:read-only {
|
|
|
198
242
|
width: calc(100% - var(--ez-text-input__icon--width));
|
|
199
243
|
}
|
|
200
244
|
|
|
245
|
+
.input__label--left.hasError {
|
|
246
|
+
width: calc(100% - var(--ez-text-input__icon--width) - var(--ez-text-input__tooltip-icon--spacing));
|
|
247
|
+
}
|
|
248
|
+
|
|
201
249
|
.input__label--right {
|
|
202
250
|
/*public*/
|
|
203
251
|
right: var(--ez-text-input__icon--width);
|
|
204
252
|
width: calc(100% - var(--ez-text-input__icon--width));
|
|
205
253
|
}
|
|
254
|
+
.input__label--right.hasError {
|
|
255
|
+
width: calc(100% - var(--ez-text-input__icon--width) - var(--ez-text-input__tooltip-icon--spacing));
|
|
256
|
+
}
|
|
206
257
|
|
|
207
258
|
/* ISSO TA ERRADO CRIAR INPUT__LABEL--BOTH */
|
|
208
259
|
.input__label--left.input__label--right {
|
|
209
260
|
left: calc(var(--ez-text-input__icon--width) + 2px);
|
|
210
261
|
/*borda*/
|
|
211
262
|
width: calc(100% - var(--ez-text-input__icon--width) * 2);
|
|
263
|
+
|
|
212
264
|
}
|
|
213
265
|
|
|
214
266
|
.input--with--label {
|
|
@@ -228,66 +280,23 @@ input:read-only {
|
|
|
228
280
|
font-weight: bold;
|
|
229
281
|
}
|
|
230
282
|
|
|
231
|
-
.input--slim::-webkit-input-placeholder
|
|
232
|
-
/*
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
283
|
+
.input--slim::-webkit-input-placeholder, /* Edge */
|
|
284
|
+
.input--slim:-moz-placeholder, /* Firefox 4-18 */
|
|
285
|
+
.input--slim::-moz-placeholder, /* Firefox 19+ */
|
|
286
|
+
.input--slim:-ms-input-placeholder, /* IE 10-11 */
|
|
287
|
+
.input--slim::placeholder { /* Modern browsers */
|
|
288
|
+
/*public*/
|
|
289
|
+
font-family: var(--ez-text-input--font-family);
|
|
290
|
+
font-size: var(--ez-text-input--font-size);
|
|
291
|
+
font-weight: var(--ez-text-input--font-weight);
|
|
292
|
+
color: var(--ez-text-input__placeholder--color);
|
|
293
|
+
}
|
|
238
294
|
|
|
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
295
|
|
|
296
|
+
.input--slim:disabled::-webkit-input-placeholder, /* WebKit browsers */
|
|
297
|
+
.input--slim:disabled:-moz-placeholder, /* Mozilla Firefox 4 to 18 */
|
|
298
|
+
.input--slim:disabled::-moz-placeholder, /* Mozilla Firefox 19+ */
|
|
299
|
+
.input--slim:disabled:-ms-input-placeholder, /* Internet Explorer 10+ */
|
|
291
300
|
.input--slim:disabled::placeholder {
|
|
292
301
|
/*public*/
|
|
293
302
|
color: var(--ez-text-input__input--disabled--color);
|
|
@@ -298,4 +307,28 @@ input.input__slim--noborder {
|
|
|
298
307
|
border: 0 none;
|
|
299
308
|
outline: 0;
|
|
300
309
|
background: var(--ez-text-input__input--noborder-color);
|
|
310
|
+
}
|
|
311
|
+
|
|
312
|
+
ez-icon.tooltip-icon {
|
|
313
|
+
position: absolute;
|
|
314
|
+
display: flex;
|
|
315
|
+
align-items: center;
|
|
316
|
+
justify-content: center;
|
|
317
|
+
overflow: hidden;
|
|
318
|
+
width: var(--ez-text-input__tooltip-icon---width);
|
|
319
|
+
height: 22px;
|
|
320
|
+
margin: var(--ez-text-input__tooltip-icon---vertical-margin) var(--ez-text-input__tooltip-icon---horizontal-margin);
|
|
321
|
+
top: 0;
|
|
322
|
+
right: 0;
|
|
323
|
+
z-index: var(--elevation--4);
|
|
324
|
+
border-radius: var(--ez-text-input--border-radius);
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
}
|
|
328
|
+
ez-icon.tooltip-icon.rightIconSlot{
|
|
329
|
+
right: var(--ez-text-input__tooltip-icon--spacing);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
ez-icon.tooltip-icon.hasError{
|
|
333
|
+
--ez-icon--color: var(--ez-text-input__tooltip_icon--error--color);
|
|
301
334
|
}
|