@sankhyalabs/ezui 5.22.0-dev.12 → 5.22.0-dev.120
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 +6 -4
- package/dist/cjs/ez-badge.cjs.entry.js +14 -2
- package/dist/cjs/ez-button.cjs.entry.js +11 -5
- package/dist/cjs/ez-card-item_2.cjs.entry.js +270 -0
- package/dist/cjs/ez-chart.cjs.entry.js +3 -3
- package/dist/cjs/ez-check.cjs.entry.js +18 -10
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +3 -2
- package/dist/cjs/ez-combo-box-list_3.cjs.entry.js +388 -0
- package/dist/cjs/ez-combo-box.cjs.entry.js +79 -156
- package/dist/cjs/ez-date-input.cjs.entry.js +16 -19
- package/dist/cjs/ez-date-time-input.cjs.entry.js +15 -20
- package/dist/cjs/ez-dialog.cjs.entry.js +18 -8
- package/dist/cjs/ez-double-list.cjs.entry.js +287 -0
- package/dist/cjs/ez-dropdown.cjs.entry.js +14 -8
- package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
- package/dist/cjs/ez-form-view.cjs.entry.js +41 -27
- package/dist/cjs/ez-form.cjs.entry.js +34 -327
- package/dist/cjs/ez-grid.cjs.entry.js +15146 -69779
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +258 -211
- package/dist/cjs/ez-modal-container.cjs.entry.js +7 -3
- package/dist/cjs/ez-modal.cjs.entry.js +17 -4
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-number-input.cjs.entry.js +16 -3
- package/dist/cjs/ez-popover-plus_3.cjs.entry.js +209 -0
- package/dist/cjs/ez-popup.cjs.entry.js +29 -3
- package/dist/cjs/ez-scroller_2.cjs.entry.js +3 -3
- package/dist/cjs/ez-search-plus.cjs.entry.js +398 -0
- package/dist/cjs/ez-search-result-list.cjs.entry.js +97 -0
- package/dist/cjs/ez-search.cjs.entry.js +124 -191
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-split-item.cjs.entry.js +8 -4
- package/dist/cjs/ez-split-panel.cjs.entry.js +68 -6
- package/dist/cjs/ez-text-area.cjs.entry.js +91 -8
- package/dist/cjs/ez-text-input.cjs.entry.js +135 -30
- package/dist/cjs/ez-time-input.cjs.entry.js +9 -2
- package/dist/cjs/ez-tooltip.cjs.entry.js +135 -0
- package/dist/cjs/ez-tree.cjs.entry.js +5 -4
- package/dist/cjs/ezListHelper-0d3970b4.js +90 -0
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/filter-column.cjs.entry.js +10 -47
- package/dist/cjs/floating-ui.dom.esm-017acce4.js +1404 -0
- package/dist/cjs/index-9e5554cb.js +32 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/searchFormatters-b7e1ed1e.js +23 -0
- package/dist/cjs/{ICustomRender-6fafffce.js → types-6a5df0c7.js} +8 -0
- package/dist/collection/collection-manifest.json +20 -2
- package/dist/collection/components/ez-actions-button/ez-actions-button.js +3 -2
- package/dist/collection/components/ez-badge/ez-badge.css +12 -1
- package/dist/collection/components/ez-badge/ez-badge.js +31 -1
- package/dist/collection/components/ez-button/ez-button.css +24 -14
- package/dist/collection/components/ez-button/ez-button.js +12 -6
- package/dist/collection/components/ez-card-item/ez-card-item.css +58 -10
- package/dist/collection/components/ez-card-item/ez-card-item.js +30 -3
- package/dist/collection/components/ez-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 +387 -73
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +170 -33
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +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 +9 -46
- package/dist/collection/components/ez-grid/utils/ColumnFilterManager.js +7 -54
- package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js +20 -4
- package/dist/collection/components/ez-icon/ez-icon.css +156 -149
- package/dist/collection/components/ez-list/ez-list.css +5 -4
- package/dist/collection/components/ez-list/ez-list.js +301 -212
- package/dist/collection/components/ez-list/ezListHelper.js +85 -0
- package/dist/collection/components/ez-modal/ez-modal.css +7 -2
- package/dist/collection/components/ez-modal/ez-modal.js +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-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 +21625 -72913
- 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 +6 -4
- package/dist/esm/ez-badge.entry.js +14 -2
- package/dist/esm/ez-button.entry.js +11 -5
- package/dist/esm/ez-card-item_2.entry.js +265 -0
- package/dist/esm/ez-chart.entry.js +3 -3
- package/dist/esm/ez-check.entry.js +18 -10
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +3 -2
- package/dist/esm/ez-combo-box-list_3.entry.js +382 -0
- package/dist/esm/ez-combo-box.entry.js +80 -157
- package/dist/esm/ez-date-input.entry.js +16 -19
- package/dist/esm/ez-date-time-input.entry.js +15 -20
- package/dist/esm/ez-dialog.entry.js +19 -9
- package/dist/esm/ez-double-list.entry.js +283 -0
- package/dist/esm/ez-dropdown.entry.js +14 -8
- package/dist/esm/ez-filter-input.entry.js +125 -0
- package/dist/esm/ez-form-view.entry.js +42 -28
- package/dist/esm/ez-form.entry.js +33 -326
- package/dist/esm/ez-grid.entry.js +15145 -69778
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +258 -211
- package/dist/esm/ez-modal-container.entry.js +7 -3
- package/dist/esm/ez-modal.entry.js +17 -4
- package/dist/esm/ez-multi-selection-list.entry.js +2 -2
- package/dist/esm/ez-number-input.entry.js +16 -3
- package/dist/esm/ez-popover-plus_3.entry.js +203 -0
- package/dist/esm/ez-popup.entry.js +29 -3
- package/dist/esm/ez-scroller_2.entry.js +3 -3
- package/dist/esm/ez-search-plus.entry.js +394 -0
- package/dist/esm/ez-search-result-list.entry.js +93 -0
- package/dist/esm/ez-search.entry.js +125 -192
- package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
- package/dist/esm/ez-skeleton.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +2 -2
- package/dist/esm/ez-split-item.entry.js +8 -4
- package/dist/esm/ez-split-panel.entry.js +69 -7
- package/dist/esm/ez-text-area.entry.js +91 -8
- package/dist/esm/ez-text-input.entry.js +135 -30
- package/dist/esm/ez-time-input.entry.js +9 -2
- package/dist/esm/ez-tooltip.entry.js +131 -0
- package/dist/esm/ez-tree.entry.js +5 -4
- package/dist/esm/ezListHelper-00fb9b8d.js +87 -0
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/filter-column.entry.js +10 -47
- package/dist/esm/floating-ui.dom.esm-5d3da819.js +1398 -0
- package/dist/esm/index-5a720e56.js +32 -8
- package/dist/esm/loader.js +1 -1
- package/dist/esm/searchFormatters-8229207e.js +20 -0
- package/dist/esm/{ICustomRender-875b5a40.js → types-6f6b2650.js} +9 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-000159dc.entry.js +1 -0
- package/dist/ezui/p-06f1b8e4.entry.js +1 -0
- package/dist/ezui/{p-044d46d5.entry.js → p-07594da0.entry.js} +1 -1
- package/dist/ezui/p-0cfbbe82.entry.js +1 -0
- package/dist/ezui/p-0f658cfd.entry.js +1 -0
- package/dist/ezui/p-15ea0c98.js +1 -0
- package/dist/ezui/p-173f68ea.js +1 -0
- package/dist/ezui/p-18e71523.entry.js +1 -0
- package/dist/ezui/p-19389207.entry.js +1 -0
- package/dist/ezui/p-1f7241cd.entry.js +1 -0
- package/dist/ezui/p-1fefb37a.entry.js +1 -0
- package/dist/ezui/p-2069c78a.entry.js +1 -0
- package/dist/ezui/{p-b2f6bc0a.entry.js → p-2f351332.entry.js} +1 -1
- package/dist/ezui/{p-82ac8b06.entry.js → p-2f77f563.entry.js} +1 -1
- package/dist/ezui/p-3eaa0f67.entry.js +1 -0
- package/dist/ezui/p-40a60148.js +1 -0
- package/dist/ezui/p-44b39e81.entry.js +1 -0
- package/dist/ezui/p-4d8afc8e.entry.js +1 -0
- package/dist/ezui/p-5895e687.js +1 -0
- package/dist/ezui/p-5b85d3de.entry.js +1 -0
- package/dist/ezui/p-5b8639c0.entry.js +1 -0
- package/dist/ezui/p-5eea9886.js +1 -0
- package/dist/ezui/p-6b3fddee.entry.js +1 -0
- package/dist/ezui/p-6ccfb01f.entry.js +1 -0
- package/dist/ezui/p-708b196e.entry.js +1 -0
- package/dist/ezui/p-72731b9b.entry.js +1 -0
- package/dist/ezui/p-80dfc50b.js +1 -0
- package/dist/ezui/p-81452714.entry.js +309 -0
- package/dist/ezui/p-88c615f0.entry.js +1 -0
- package/dist/ezui/p-8d9ab0b0.entry.js +1 -0
- package/dist/ezui/p-8f49705f.entry.js +1 -0
- package/dist/ezui/p-9066b0b0.entry.js +1 -0
- package/dist/ezui/p-90e91173.entry.js +1 -0
- package/dist/ezui/p-926a0bde.entry.js +1 -0
- package/dist/ezui/p-97d94ef3.entry.js +1 -0
- package/dist/ezui/p-9e95bfeb.entry.js +1 -0
- package/dist/ezui/p-a11827ca.entry.js +1 -0
- package/dist/ezui/p-b8344ae8.entry.js +1 -0
- package/dist/ezui/p-b9255e16.entry.js +1 -0
- package/dist/ezui/p-c2b1b592.entry.js +1 -0
- package/dist/ezui/p-c7035d65.entry.js +1 -0
- package/dist/ezui/p-cf33bc48.entry.js +1 -0
- package/dist/ezui/p-d2290004.entry.js +1 -0
- package/dist/ezui/p-dc628ed3.js +1 -0
- package/dist/ezui/p-ddb22a70.entry.js +1 -0
- package/dist/ezui/p-e07e4671.js +1 -0
- package/dist/ezui/p-e18c7afe.entry.js +1 -0
- package/dist/ezui/p-e5e911ef.entry.js +1 -0
- package/dist/ezui/p-ec7db713.js +1 -0
- package/dist/ezui/p-ed48a632.entry.js +1 -0
- package/dist/ezui/p-f6a88217.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 +42 -6
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +26 -2
- package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +34 -7
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +4 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/cellRendererStatus.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/selectionHeader.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +2 -1
- package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellEditor.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/templates/SearchPlus.tpl.d.ts +3 -0
- package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +1 -1
- package/dist/types/components/ez-grid/ez-grid.d.ts +59 -1
- package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +0 -11
- package/dist/types/components/ez-grid/utils/ColumnFilterManager.d.ts +1 -1
- package/dist/types/components/ez-grid/utils/InMemoryFilterColumnDataSource.d.ts +3 -0
- package/dist/types/components/ez-list/ez-list.d.ts +23 -2
- package/dist/types/components/ez-list/ezListHelper.d.ts +20 -0
- package/dist/types/components/ez-modal/ez-modal.d.ts +4 -1
- package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +2 -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-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
|
@@ -1,206 +0,0 @@
|
|
|
1
|
-
'use strict';
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
-
|
|
5
|
-
const index = require('./index-9e5554cb.js');
|
|
6
|
-
const ICustomRender = require('./ICustomRender-6fafffce.js');
|
|
7
|
-
const core = require('@sankhyalabs/core');
|
|
8
|
-
const ApplicationUtils = require('./ApplicationUtils-c9d1205c.js');
|
|
9
|
-
require('./DialogType-2114c337.js');
|
|
10
|
-
require('./CheckMode-ecb90b87.js');
|
|
11
|
-
|
|
12
|
-
const EzCustomFormInput = class {
|
|
13
|
-
constructor(hostRef) {
|
|
14
|
-
index.registerInstance(this, hostRef);
|
|
15
|
-
this.gui = undefined;
|
|
16
|
-
this.customEditor = undefined;
|
|
17
|
-
this.formViewField = undefined;
|
|
18
|
-
this.value = undefined;
|
|
19
|
-
this.detailContext = undefined;
|
|
20
|
-
this.builderFallback = undefined;
|
|
21
|
-
this.selectedRecord = undefined;
|
|
22
|
-
}
|
|
23
|
-
/**
|
|
24
|
-
* Aplica foco no campo.
|
|
25
|
-
*/
|
|
26
|
-
async setFocus() {
|
|
27
|
-
var _a, _b;
|
|
28
|
-
(_b = (_a = this.gui) === null || _a === void 0 ? void 0 : _a["setFocus"]) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Remove o foco do campo.
|
|
32
|
-
*/
|
|
33
|
-
async setBlur() {
|
|
34
|
-
var _a, _b;
|
|
35
|
-
(_b = (_a = this.gui) === null || _a === void 0 ? void 0 : _a["setBlur"]) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Retorna se o conteúdo é inválido.
|
|
39
|
-
*/
|
|
40
|
-
async isInvalid() {
|
|
41
|
-
var _a, _b;
|
|
42
|
-
return ((_b = (_a = this.gui) === null || _a === void 0 ? void 0 : _a["isInvalid"]) === null || _b === void 0 ? void 0 : _b.call(_a)) || false;
|
|
43
|
-
}
|
|
44
|
-
getContent() {
|
|
45
|
-
var _a, _b;
|
|
46
|
-
const fieldProps = new Map();
|
|
47
|
-
for (const prop in this.formViewField.props) {
|
|
48
|
-
fieldProps.set(prop, this.formViewField.props[prop]);
|
|
49
|
-
}
|
|
50
|
-
const params = {
|
|
51
|
-
value: this.value,
|
|
52
|
-
name: this.formViewField.name,
|
|
53
|
-
currentEditor: this.builderFallback(this.formViewField),
|
|
54
|
-
setValue: (value) => this.setValue(value),
|
|
55
|
-
getValue: this.getValue,
|
|
56
|
-
record: this.selectedRecord,
|
|
57
|
-
editorMetadata: {
|
|
58
|
-
label: this.formViewField.label,
|
|
59
|
-
hidden: ((_a = this.formViewField.props) === null || _a === void 0 ? void 0 : _a.visible) === false,
|
|
60
|
-
userInterface: this.formViewField.userInterface,
|
|
61
|
-
options: (_b = this.formViewField.props) === null || _b === void 0 ? void 0 : _b.options,
|
|
62
|
-
props: this.formViewField.props ? fieldProps : undefined,
|
|
63
|
-
optionLoader: this.formViewField.optionLoader
|
|
64
|
-
},
|
|
65
|
-
source: ICustomRender.CustomEditorSource.FORM,
|
|
66
|
-
detailContext: this.detailContext
|
|
67
|
-
};
|
|
68
|
-
let gui = this.customEditor.getEditorElement(params);
|
|
69
|
-
if (!gui) {
|
|
70
|
-
gui = this.builderFallback(this.formViewField);
|
|
71
|
-
this.handleValue(gui);
|
|
72
|
-
this.gui = gui;
|
|
73
|
-
return;
|
|
74
|
-
}
|
|
75
|
-
if (!(gui instanceof index.H) && typeof gui !== 'string') {
|
|
76
|
-
this.handleValue(gui);
|
|
77
|
-
this.gui = gui;
|
|
78
|
-
return;
|
|
79
|
-
}
|
|
80
|
-
if (typeof gui === 'string') {
|
|
81
|
-
gui = core.HTMLBuilder.parseElement(gui);
|
|
82
|
-
}
|
|
83
|
-
if (this.value) {
|
|
84
|
-
gui.setAttribute('value', typeof this.value === 'object' ? this.value.value : this.value);
|
|
85
|
-
}
|
|
86
|
-
this.gui = index.h("div", { key: core.StringUtils.generateUUID(), ref: el => el && el.appendChild(gui) });
|
|
87
|
-
}
|
|
88
|
-
setValue(value) {
|
|
89
|
-
this.value = value;
|
|
90
|
-
}
|
|
91
|
-
getValue() {
|
|
92
|
-
return this.value;
|
|
93
|
-
}
|
|
94
|
-
handleValue(gui) {
|
|
95
|
-
var _a;
|
|
96
|
-
//@ts-ignore
|
|
97
|
-
(_a = gui.$children$) === null || _a === void 0 ? void 0 : _a.forEach((child) => {
|
|
98
|
-
child.$attrs$.value = this.value;
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
componentWillRender() {
|
|
102
|
-
this.getContent();
|
|
103
|
-
}
|
|
104
|
-
render() {
|
|
105
|
-
return (index.h(index.Host, null, this.gui));
|
|
106
|
-
}
|
|
107
|
-
};
|
|
108
|
-
|
|
109
|
-
const ezTextEditCss = ":host{display:flex;align-items:center;gap:5px}.text-edit__form-input{width:auto;--ez-text-input__input--padding:0px}.text-edit__hidden-value{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}";
|
|
110
|
-
|
|
111
|
-
const EzTextEdit = class {
|
|
112
|
-
constructor(hostRef) {
|
|
113
|
-
index.registerInstance(this, hostRef);
|
|
114
|
-
this.saveEdition = index.createEvent(this, "saveEdition", 7);
|
|
115
|
-
this.cancelEdition = index.createEvent(this, "cancelEdition", 7);
|
|
116
|
-
this._newValue = undefined;
|
|
117
|
-
this.value = undefined;
|
|
118
|
-
this.styled = undefined;
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Aplica foco no campo.
|
|
122
|
-
*/
|
|
123
|
-
async applyFocusSelect() {
|
|
124
|
-
this.calcSizeInput(this.value, true);
|
|
125
|
-
}
|
|
126
|
-
calcSizeInput(value, setSelect = false) {
|
|
127
|
-
var _a, _b;
|
|
128
|
-
const textInput = (_b = (_a = this._inputElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('input');
|
|
129
|
-
if (textInput != undefined) {
|
|
130
|
-
const sizeText = this.getWidthValue(value);
|
|
131
|
-
textInput.style.width = sizeText + 'px';
|
|
132
|
-
if (setSelect) {
|
|
133
|
-
setTimeout(() => textInput.select(), 100);
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
getWidthValue(value) {
|
|
138
|
-
if (this._valueBasis != undefined) {
|
|
139
|
-
const span = this._valueBasis;
|
|
140
|
-
if (value != undefined) {
|
|
141
|
-
const cursorSpace = 2;
|
|
142
|
-
span.innerHTML = value;
|
|
143
|
-
return span.clientWidth > 0 ? (span.clientWidth + cursorSpace) : cursorSpace;
|
|
144
|
-
}
|
|
145
|
-
else {
|
|
146
|
-
span.innerHTML = "";
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
return 0;
|
|
150
|
-
}
|
|
151
|
-
setStyledInput() {
|
|
152
|
-
var _a, _b;
|
|
153
|
-
let fontSize = "";
|
|
154
|
-
let fontWeight = "";
|
|
155
|
-
let fontFamily = "";
|
|
156
|
-
if (this.styled != undefined) {
|
|
157
|
-
fontSize = this.styled.fontSize;
|
|
158
|
-
fontWeight = this.styled.fontWeight;
|
|
159
|
-
fontFamily = this.styled.fontFamily;
|
|
160
|
-
}
|
|
161
|
-
const textInput = (_b = (_a = this._inputElement) === null || _a === void 0 ? void 0 : _a.shadowRoot) === null || _b === void 0 ? void 0 : _b.querySelector('input');
|
|
162
|
-
if (textInput != undefined) {
|
|
163
|
-
textInput.style.fontSize = fontSize;
|
|
164
|
-
textInput.style.fontWeight = fontWeight;
|
|
165
|
-
textInput.style.fontFamily = fontFamily;
|
|
166
|
-
}
|
|
167
|
-
const span = this._valueBasis;
|
|
168
|
-
if (span != undefined) {
|
|
169
|
-
span.style.fontSize = fontSize;
|
|
170
|
-
span.style.fontWeight = fontWeight;
|
|
171
|
-
span.style.fontFamily = fontFamily;
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
handleSaveEdition() {
|
|
175
|
-
if (!this._newValue) {
|
|
176
|
-
ApplicationUtils.ApplicationUtils.alert("Aviso", "Não é possível salvar um campo em branco.").then(() => {
|
|
177
|
-
this.setNewValue(this.value, true);
|
|
178
|
-
});
|
|
179
|
-
return;
|
|
180
|
-
}
|
|
181
|
-
this.saveEdition.emit({ value: this.value, newValue: this._newValue });
|
|
182
|
-
}
|
|
183
|
-
handleCancelEdition() {
|
|
184
|
-
this.cancelEdition.emit();
|
|
185
|
-
}
|
|
186
|
-
setNewValue(value, setSelect = false) {
|
|
187
|
-
this._newValue = value;
|
|
188
|
-
this.calcSizeInput(this._newValue, setSelect);
|
|
189
|
-
}
|
|
190
|
-
componentDidLoad() {
|
|
191
|
-
this.applyFocusSelect();
|
|
192
|
-
this.setNewValue(this.value);
|
|
193
|
-
}
|
|
194
|
-
componentDidRender() {
|
|
195
|
-
this.setStyledInput();
|
|
196
|
-
}
|
|
197
|
-
render() {
|
|
198
|
-
core.ElementIDUtils.addIDInfoIfNotExists(this._element, 'input');
|
|
199
|
-
return (index.h(index.Host, null, index.h("span", { class: "text-edit__hidden-value", ref: elem => this._valueBasis = elem }), index.h("ez-text-input", { "data-element-id": core.ElementIDUtils.getInternalIDInfo("textInput"), onInput: () => { this.calcSizeInput(this._newValue); }, class: "text-edit__form-input", value: this._newValue, ref: (elem) => this._inputElement = elem, mode: "slim", onEzChange: (evt) => this.setNewValue(evt === null || evt === void 0 ? void 0 : evt.detail), noBorder: true }), index.h("ez-button", { class: "text-edit__icon-check", mode: "icon", iconName: "check", size: "small", onClick: () => { this.handleSaveEdition(); } }), index.h("ez-button", { class: "text-edit__icon-close", mode: "icon", iconName: "close", size: "small", onClick: () => { this.handleCancelEdition(); } })));
|
|
200
|
-
}
|
|
201
|
-
get _element() { return index.getElement(this); }
|
|
202
|
-
};
|
|
203
|
-
EzTextEdit.style = ezTextEditCss;
|
|
204
|
-
|
|
205
|
-
exports.ez_custom_form_input = EzCustomFormInput;
|
|
206
|
-
exports.ez_text_edit = EzTextEdit;
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { UserInterface } from '@sankhyalabs/core';
|
|
2
|
-
import { A as ApplicationUtils } from './ApplicationUtils-eaf91331.js';
|
|
3
|
-
|
|
4
|
-
const buildFieldMetadata = (descriptor, config) => {
|
|
5
|
-
let { name, label, group } = Object.assign({}, config);
|
|
6
|
-
let { readOnly, required } = Object.assign({}, config);
|
|
7
|
-
let props;
|
|
8
|
-
let userInterface;
|
|
9
|
-
if (descriptor) {
|
|
10
|
-
label = label || descriptor.label;
|
|
11
|
-
name = name || descriptor.name;
|
|
12
|
-
required = descriptor.required || (config === null || config === void 0 ? void 0 : config.required);
|
|
13
|
-
readOnly = descriptor.readOnly || (config === null || config === void 0 ? void 0 : config.readOnly);
|
|
14
|
-
props = descriptor.properties;
|
|
15
|
-
userInterface = descriptor.userInterface;
|
|
16
|
-
}
|
|
17
|
-
return {
|
|
18
|
-
name, label, group,
|
|
19
|
-
readOnly, required,
|
|
20
|
-
props,
|
|
21
|
-
userInterface: userInterface || UserInterface.SHORTTEXT
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
class RecordValidationProcessor {
|
|
26
|
-
constructor(dataUnit, validationSource, validator) {
|
|
27
|
-
this._dataUnit = dataUnit;
|
|
28
|
-
this._validationSource = validationSource;
|
|
29
|
-
this._validator = validator;
|
|
30
|
-
}
|
|
31
|
-
validate() {
|
|
32
|
-
return new Promise((accept, reject) => {
|
|
33
|
-
const records = this._dataUnit.getModifiedRecords();
|
|
34
|
-
for (let i = 0; i < records.length; i++) {
|
|
35
|
-
const record = records[i];
|
|
36
|
-
const invalidResults = [];
|
|
37
|
-
let validationResult = this.validateRequired(record);
|
|
38
|
-
if (validationResult && !validationResult.isValid) {
|
|
39
|
-
invalidResults.push(validationResult);
|
|
40
|
-
}
|
|
41
|
-
if (this._validator) {
|
|
42
|
-
validationResult = this._validator.validateRecord(record);
|
|
43
|
-
if (validationResult && !validationResult.isValid) {
|
|
44
|
-
invalidResults.push(validationResult);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
if (invalidResults.length > 0) {
|
|
48
|
-
this.processValidationResult(invalidResults, record.__record__id__);
|
|
49
|
-
reject();
|
|
50
|
-
break;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
return accept();
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
validateRequired(record) {
|
|
57
|
-
const requiredFields = this._validationSource.getRequiredFields();
|
|
58
|
-
const invalidFields = [];
|
|
59
|
-
new Set(requiredFields).forEach(field => {
|
|
60
|
-
const value = record[field];
|
|
61
|
-
if (value == undefined || value === "") {
|
|
62
|
-
const errorMessage = this._validationSource.getMessageForField(field, record.__record__id__);
|
|
63
|
-
if (errorMessage) {
|
|
64
|
-
invalidFields.push({ name: field, message: errorMessage });
|
|
65
|
-
}
|
|
66
|
-
else {
|
|
67
|
-
invalidFields.push({ name: field, message: "Essa informação é obrigatória" });
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
});
|
|
71
|
-
if (invalidFields.length > 0) {
|
|
72
|
-
return { isValid: false, invalidFields, infoMessage: "Há pelo menos um campo obrigatório não preenchido." };
|
|
73
|
-
}
|
|
74
|
-
return undefined;
|
|
75
|
-
}
|
|
76
|
-
processValidationResult(validationResult, recordId) {
|
|
77
|
-
validationResult.forEach(invalidResult => {
|
|
78
|
-
const invalidFields = invalidResult.invalidFields;
|
|
79
|
-
if (invalidFields) {
|
|
80
|
-
invalidFields.forEach(field => {
|
|
81
|
-
this.markAsInvalid(field, recordId);
|
|
82
|
-
});
|
|
83
|
-
}
|
|
84
|
-
if (invalidResult.infoMessage) {
|
|
85
|
-
ApplicationUtils.info(invalidResult.infoMessage);
|
|
86
|
-
}
|
|
87
|
-
if (invalidResult.errorMessage) {
|
|
88
|
-
const { errorTitle, errorMessage } = invalidResult;
|
|
89
|
-
ApplicationUtils.error(errorTitle, errorMessage);
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
markAsInvalid(field, recordId) {
|
|
94
|
-
this._dataUnit.setInvalidField(field.name, field.message, recordId);
|
|
95
|
-
this._validationSource.markAsInvalid(field, recordId);
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
export { RecordValidationProcessor as R, buildFieldMetadata as b };
|
|
@@ -1,177 +0,0 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h, H as Host, g as getElement } from './index-5a720e56.js';
|
|
2
|
-
import { StringUtils, ElementIDUtils } from '@sankhyalabs/core';
|
|
3
|
-
import { C as CSSVarsUtils } from './CSSVarsUtils-71ce76be.js';
|
|
4
|
-
|
|
5
|
-
const ezCardItemCss = ":host {\n /*@doc Define o tamanho da fonte do componente.*/\n --ez-card-item--font-size: var(--text--medium, 14px);\n\n /*@doc Define a família da fonte do componente.*/\n --ez-card-item--font-family: var(--font-pattern, Arial);\n\n /*@doc Define o peso da fonte do componente.*/\n --ez-card-item--font-weight: var(--text-weight--medium, 400);\n\n /*@doc Define o peso da fonte do title do componente.*/\n --ez-card-item--font-weight-large: var(--text-weight--large, 600);\n\n /*@doc Define a cor da fonte do componente.*/\n --ez-card-item--color: var(--title--primary, #2B3A54);\n\n /*@doc Define a cor da fonte da key do componente.*/\n --ez-card-item__key--color: var(--text--primary, #626e82);\n\n /*@doc Define a cor da fonte do label do detalhe do componente.*/\n --ez-card-item__detail-label--color: var(--text--secondary, #A2ABB9);\n\n /*@doc Define o espaçamento inferior dos detalhes do componente.*/\n --ez-card-item__detail--padding-bottom: var(--space--extra-small, 3px);\n\n /*@doc Define o espaçamento inferior do title do componente.*/\n --ez-card-item__title--padding-bottom: var(--space--extra-small, 3px);\n\n /*@doc Define a cor do highlight / marcação nos textos do componente.*/\n --ez-card-item__highlight--color: var(--color--primary-300, #E2F4EF);\n\n width: 100%;\n display: flex;\n cursor: pointer;\n}\n\n.card-item {\n display: flex;\n flex-direction: column;\n width: 100%;\n cursor: pointer;\n padding: 12px;\n z-index: 0;\n position: relative;\n container-type: inline-size;\n container-name: box;\n white-space: pre-line;\n}\n\n.card-item:hover {\n background: #F0F3F7;\n border-radius: 12px;\n}\n\n.card-item__title {\n display: flex;\n align-items: center;\n line-height: 18px;\n cursor: pointer;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight-large);\n color: var(--ez-card-item--color);\n padding-bottom: var(--ez-card-item__title--padding-bottom);\n gap: var(--space--small, 6px);\n}\n\n.card-item__key {\n /*public*/\n color: var(--ez-card-item__key--color);\n}\n\n.card-item__details {\n display: flex;\n flex-direction: column;\n cursor: pointer;\n justify-content: space-between;\n width: 100%;\n}\n\n.card-item__details-container__left {\n white-space: pre-line;\n cursor: pointer;\n width: 50%;\n}\n\n.card-item__details-container__right {\n white-space: pre-line;\n width: 50%;\n cursor: pointer;\n}\n\n.card-item__detail:not(:last-child) {\n cursor: pointer;\n white-space: pre-line;\n\n /*public*/\n padding-bottom: var(--ez-card-item__detail--padding-bottom);\n}\n\n.card-item__detail-label {\n cursor: pointer;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight);\n color: var(--ez-card-item__detail-label--color);\n}\n\n.card-item__detail-value {\n cursor: pointer;\n line-break: anywhere;\n\n /*public*/\n font-size: var(--ez-card-item--font-size);\n font-family: var(--ez-card-item--font-family);\n font-weight: var(--ez-card-item--font-weight);\n color: var(--ez-card-item--color);\n}\n\n.card-item__highlight {\n position: relative;\n border-radius: 8px;\n z-index: -1;\n\n /*public*/\n background-color: var(--ez-card-item__highlight--color);\n outline: 2px solid var(--ez-card-item__highlight--color);\n box-shadow: -4px 0px 0px 0px var(--ez-card-item__highlight--color), \n 4px 0px 0px 0px var(--ez-card-item__highlight--color);\n}\n\n.card-item__content{\n display: flex;\n align-items: center;\n}\n\n.card-item__details-container{\n display: flex;\n}\n\n.card-item__details-slot{\n margin-left: auto;\n}\n\n@container box (max-width: 550px) {\n .card-item__details {\n flex-direction: column;\n }\n\n .card-item__details-container__left {\n width: 100%;\n }\n \n .card-item__details-container__right {\n width: 100%;\n }\n}\n\n@container box (max-width: 200px) {\n .card-item__title {\n font-size: 10px;\n }\n\n .card-item__detail-label {\n font-size: 10px;\n }\n\n .card-item__detail-value {\n font-size: 10px;\n }\n\n}";
|
|
6
|
-
|
|
7
|
-
const EzCardItem = class {
|
|
8
|
-
constructor(hostRef) {
|
|
9
|
-
registerInstance(this, hostRef);
|
|
10
|
-
this.ezClick = createEvent(this, "ezClick", 7);
|
|
11
|
-
this.item = undefined;
|
|
12
|
-
this.enableKey = true;
|
|
13
|
-
}
|
|
14
|
-
componentWillRender() {
|
|
15
|
-
this.createDetailList();
|
|
16
|
-
}
|
|
17
|
-
componentDidLoad() {
|
|
18
|
-
var _a, _b;
|
|
19
|
-
const dataInfo = { id: StringUtils.toCamelCase(((_a = this.item) === null || _a === void 0 ? void 0 : _a.key) || ((_b = this.item) === null || _b === void 0 ? void 0 : _b.title) || "") };
|
|
20
|
-
ElementIDUtils.addIDInfo(this._element, null, dataInfo);
|
|
21
|
-
}
|
|
22
|
-
createDetailList() {
|
|
23
|
-
var _a, _b, _c;
|
|
24
|
-
this._details = { detailsLeft: [], detailsRight: [] };
|
|
25
|
-
let cont = 0;
|
|
26
|
-
if ((_a = this.item) === null || _a === void 0 ? void 0 : _a.details) {
|
|
27
|
-
for (const attribute in this.item.details) {
|
|
28
|
-
cont < 3 ?
|
|
29
|
-
this._details.detailsLeft.push({ label: attribute, value: (_b = this.item.details[attribute]) === null || _b === void 0 ? void 0 : _b.toString() }) :
|
|
30
|
-
this._details.detailsRight.push({ label: attribute, value: (_c = this.item.details[attribute]) === null || _c === void 0 ? void 0 : _c.toString() });
|
|
31
|
-
cont++;
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
buildDetailContent(detail) {
|
|
36
|
-
return h("div", { class: "card-item__detail" }, h("label", { class: "card-item__detail-label" }, detail.label), ": ", h("label", { class: "card-item__detail-value", innerHTML: detail.value }));
|
|
37
|
-
}
|
|
38
|
-
render() {
|
|
39
|
-
return (h(Host, null, this.item &&
|
|
40
|
-
h("div", { class: "card-item", onClick: () => { this.ezClick.emit(this.item); } }, h("div", { class: "ez-row card-item__content" }, h("div", { class: "ez-col ez-col--sd-11 card-item__details" }, h("label", { class: "card-item__title" }, this.enableKey && (h("span", { class: "card-item__key", innerHTML: this.item.key })), h("span", { innerHTML: this.item.title })), h("div", { class: "card-item__details-container" }, h("div", { class: "card-item__details-container__left" }, this._details.detailsLeft.map(detail => {
|
|
41
|
-
return this.buildDetailContent(detail);
|
|
42
|
-
})), h("div", { class: "card-item__details-container__right" }, this._details.detailsRight.map(detail => {
|
|
43
|
-
return this.buildDetailContent(detail);
|
|
44
|
-
})))), h("div", { class: "ez-col ez-col--sd-1 card-item__details-slot" }, h("slot", { name: "rightSlot" }))))));
|
|
45
|
-
}
|
|
46
|
-
get _element() { return getElement(this); }
|
|
47
|
-
};
|
|
48
|
-
EzCardItem.style = ezCardItemCss;
|
|
49
|
-
|
|
50
|
-
const ezFilterInputCss = ":host{display:block;width:100%}";
|
|
51
|
-
|
|
52
|
-
const EzFilterInput = class {
|
|
53
|
-
constructor(hostRef) {
|
|
54
|
-
registerInstance(this, hostRef);
|
|
55
|
-
this.ezChange = createEvent(this, "ezChange", 7);
|
|
56
|
-
this.ezSearching = createEvent(this, "ezSearching", 7);
|
|
57
|
-
this.ezFocusIn = createEvent(this, "ezFocusIn", 7);
|
|
58
|
-
this._searchingText = "";
|
|
59
|
-
this.handleFocus = () => {
|
|
60
|
-
if (this._searchingText === "") {
|
|
61
|
-
this._textInput.value = "";
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
this._textInput.value = this._searchingText;
|
|
65
|
-
}
|
|
66
|
-
this.ezFocusIn.emit();
|
|
67
|
-
};
|
|
68
|
-
this.label = undefined;
|
|
69
|
-
this.value = undefined;
|
|
70
|
-
this.enabled = true;
|
|
71
|
-
this.errorMessage = undefined;
|
|
72
|
-
this.restrict = undefined;
|
|
73
|
-
this.mode = "regular";
|
|
74
|
-
this.asyncSearch = false;
|
|
75
|
-
this.canShowError = true;
|
|
76
|
-
}
|
|
77
|
-
observeLabel() {
|
|
78
|
-
if (this._textInput) {
|
|
79
|
-
this._textInput.label = this.label;
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
observeErrorMessage() {
|
|
83
|
-
if (this._textInput) {
|
|
84
|
-
this._textInput.errorMessage = this.errorMessage;
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
observeValue(newValue, oldValue) {
|
|
88
|
-
if (this._textInput && newValue != oldValue) {
|
|
89
|
-
this._textInput.value = newValue;
|
|
90
|
-
this.ezChange.emit(newValue);
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Aplica o foco no campo.
|
|
95
|
-
*/
|
|
96
|
-
async setFocus() {
|
|
97
|
-
this._textInput.setFocus();
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Remove o foco do campo.
|
|
101
|
-
*/
|
|
102
|
-
async setBlur() {
|
|
103
|
-
this._textInput.setBlur();
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Retorna se o conteúdo é inválido.
|
|
107
|
-
*/
|
|
108
|
-
async isInvalid() {
|
|
109
|
-
return typeof this.errorMessage === "string" && this.errorMessage.trim() !== "";
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Método responsável por setar um novo valor ao campo.
|
|
113
|
-
*/
|
|
114
|
-
async setValue(newValue) {
|
|
115
|
-
if (!this.asyncSearch || this._textInput == undefined) {
|
|
116
|
-
return;
|
|
117
|
-
}
|
|
118
|
-
if (newValue !== this.value) {
|
|
119
|
-
this.value = newValue;
|
|
120
|
-
this._searchingText = "";
|
|
121
|
-
}
|
|
122
|
-
else {
|
|
123
|
-
this._textInput.value = newValue;
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
/**
|
|
127
|
-
* Método responsável por resetar o valor do campo para o ultimo valor inputado.
|
|
128
|
-
*/
|
|
129
|
-
async endSearch() {
|
|
130
|
-
if (!this.asyncSearch || this._textInput == undefined) {
|
|
131
|
-
return;
|
|
132
|
-
}
|
|
133
|
-
if (this._textInput.value !== this.value) {
|
|
134
|
-
this._textInput.value = this.value;
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
handleChange(evt) {
|
|
138
|
-
const newValue = evt.detail;
|
|
139
|
-
this.errorMessage = "";
|
|
140
|
-
if (this.asyncSearch) {
|
|
141
|
-
this._searchingText = newValue;
|
|
142
|
-
this.ezSearching.emit(newValue);
|
|
143
|
-
}
|
|
144
|
-
else if (newValue !== this.value) {
|
|
145
|
-
this.value = newValue;
|
|
146
|
-
}
|
|
147
|
-
}
|
|
148
|
-
componentDidLoad() {
|
|
149
|
-
CSSVarsUtils.applyVarsTextInput(this._elem, this._textInput);
|
|
150
|
-
}
|
|
151
|
-
render() {
|
|
152
|
-
ElementIDUtils.addIDInfoIfNotExists(this._elem, 'input');
|
|
153
|
-
return (h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), ref: elem => this._textInput = elem, label: this.label, onEzChange: evt => this.handleChange(evt), value: this.value, enabled: this.enabled, errorMessage: this.errorMessage, restrict: this.restrict, mode: this.mode, onFocusin: this.handleFocus, canShowError: this.canShowError }, h("ez-icon", { slot: "leftIcon", iconName: "search" })));
|
|
154
|
-
}
|
|
155
|
-
get _elem() { return getElement(this); }
|
|
156
|
-
static get watchers() { return {
|
|
157
|
-
"label": ["observeLabel"],
|
|
158
|
-
"errorMessage": ["observeErrorMessage"],
|
|
159
|
-
"value": ["observeValue"]
|
|
160
|
-
}; }
|
|
161
|
-
};
|
|
162
|
-
EzFilterInput.style = ezFilterInputCss;
|
|
163
|
-
|
|
164
|
-
const multiSelectionBoxMessageCss = ".multi-selection__message{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%;min-height:320px;text-align:center}.multi-selection__text-message{margin-top:-30px;font-family:var(--font-pattern);font-size:var(--text--meduim);padding:var(--space-xs);color:var(--text--primary)}";
|
|
165
|
-
|
|
166
|
-
const MultiSelectionBoxMessage = class {
|
|
167
|
-
constructor(hostRef) {
|
|
168
|
-
registerInstance(this, hostRef);
|
|
169
|
-
this.message = undefined;
|
|
170
|
-
}
|
|
171
|
-
render() {
|
|
172
|
-
return (h("div", { class: "multi-selection__message" }, h("span", { class: "multi-selection__text-message" }, this.message)));
|
|
173
|
-
}
|
|
174
|
-
};
|
|
175
|
-
MultiSelectionBoxMessage.style = multiSelectionBoxMessageCss;
|
|
176
|
-
|
|
177
|
-
export { EzCardItem as ez_card_item, EzFilterInput as ez_filter_input, MultiSelectionBoxMessage as multi_selection_box_message };
|