@sankhyalabs/ezui 5.21.0-dev.2 → 5.21.0-dev.21
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/README.md +1 -1
- package/dist/cjs/ICustomRender-6fafffce.js +13 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js +2 -1
- package/dist/cjs/ez-alert-list.cjs.entry.js +7 -5
- package/dist/cjs/ez-alert.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +1 -1
- package/dist/cjs/ez-badge.cjs.entry.js +1 -1
- package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
- package/dist/cjs/ez-button.cjs.entry.js +3 -3
- package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
- package/dist/cjs/ez-card-item_3.cjs.entry.js +1 -1
- package/dist/cjs/ez-chart.cjs.entry.js +433 -0
- package/dist/cjs/ez-check.cjs.entry.js +1 -1
- package/dist/cjs/ez-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +2 -1
- package/dist/cjs/ez-combo-box.cjs.entry.js +2 -1
- package/dist/cjs/{ez-text-edit.cjs.entry.js → ez-custom-form-input_2.cjs.entry.js} +95 -1
- package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-dropdown.cjs.entry.js +1 -1
- package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +34 -4
- package/dist/cjs/ez-form.cjs.entry.js +78 -3
- package/dist/cjs/ez-grid.cjs.entry.js +333 -33
- package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +2 -2
- package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +16 -5
- package/dist/cjs/ez-modal.cjs.entry.js +8 -9
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +35 -29
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +15 -9
- package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-scroller_3.cjs.entry.js +1 -1
- package/dist/cjs/ez-search.cjs.entry.js +18 -6
- package/dist/cjs/ez-skeleton.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-item.cjs.entry.js +2 -1
- package/dist/cjs/ez-split-panel.cjs.entry.js +2 -2
- package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
- package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ez-upload.cjs.entry.js +1 -1
- package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +2 -2
- package/dist/cjs/filter-column.cjs.entry.js +1 -1
- package/dist/cjs/{index-a7b0c73d.js → index-9e5554cb.js} +11 -4
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +2 -0
- package/dist/collection/components/ez-alert-list/ez-alert-list.js +6 -4
- package/dist/collection/components/ez-button/ez-button.css +7 -0
- package/dist/collection/components/ez-button/ez-button.js +1 -1
- package/dist/collection/components/ez-chart/components/BarChart.js +27 -0
- package/dist/collection/components/ez-chart/components/ColumnChart.js +27 -0
- package/dist/collection/components/ez-chart/components/DonutChart.js +42 -0
- package/dist/collection/components/ez-chart/components/LineChart.js +27 -0
- package/dist/collection/components/ez-chart/components/PieChart.js +45 -0
- package/dist/collection/components/ez-chart/components/index.js +5 -0
- package/dist/collection/components/ez-chart/ez-chart.css +5 -0
- package/dist/collection/components/ez-chart/ez-chart.js +284 -0
- package/dist/collection/components/ez-chart/interfaces/ChartAxis.js +1 -0
- package/dist/collection/components/ez-chart/interfaces/ChartContext.js +14 -0
- package/dist/collection/components/ez-chart/interfaces/ChartOptions.js +1 -0
- package/dist/collection/components/ez-chart/interfaces/ChartSerie.js +1 -0
- package/dist/collection/components/ez-chart/interfaces/ChartStrategies.js +1 -0
- package/dist/collection/components/ez-chart/interfaces/ChartType.js +8 -0
- package/dist/collection/components/ez-chart/interfaces/index.js +5 -0
- package/dist/collection/components/ez-chart/test/mock-chart.js +137 -0
- package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js +146 -0
- package/dist/collection/components/ez-form/ez-form.js +130 -4
- package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +253 -0
- package/dist/collection/components/ez-form-view/ez-form-view.js +89 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +3 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +56 -5
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +1 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +35 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +58 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.js +40 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.js +11 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.js +11 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +6 -3
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellRender.js +40 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellRender.js +1 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +3 -2
- package/dist/collection/components/ez-grid/ez-grid.css +1 -0
- package/dist/collection/components/ez-grid/ez-grid.js +233 -11
- package/dist/collection/components/ez-grid/interfaces/ICustomFormatter.js +1 -0
- package/dist/collection/components/ez-grid/interfaces/index.js +1 -0
- package/dist/collection/components/ez-grid/subcomponents/selection-counter.js +3 -11
- package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js +22 -0
- package/dist/collection/components/ez-grid/test/resources/gridDataUnit.js +19 -0
- package/dist/collection/components/ez-list/ez-list.css +6 -2
- package/dist/collection/components/ez-modal/ez-modal.js +22 -9
- package/dist/collection/components/ez-modal-container/ez-modal-container.css +4 -0
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +23 -3
- package/dist/collection/components/ez-number-input/ez-number-input.js +42 -27
- package/dist/collection/components/ez-popup/ez-popup.js +14 -8
- package/dist/collection/components/ez-search/ez-search.js +16 -5
- package/dist/collection/components/ez-split-panel/ez-split-panel.css +1 -0
- package/dist/collection/utils/customEditor/interfaces/ICustomEditor.js +5 -0
- package/dist/collection/utils/customEditor/interfaces/ICustomEditorInfo.js +1 -0
- package/dist/collection/utils/customRender/interfaces/ICustomRender.js +5 -0
- package/dist/collection/utils/customRender/interfaces/ICustomRenderInfo.js +1 -0
- package/dist/collection/utils/form/DataBinder.js +26 -0
- package/dist/collection/utils/form/test/DataBinder.test.js +41 -4
- package/dist/collection/utils/form/test/resources/metadataTest.js +15 -0
- package/dist/collection/utils/index.js +2 -0
- package/dist/custom-elements/index.d.ts +12 -0
- package/dist/custom-elements/index.js +1081 -105
- package/dist/esm/ICustomRender-875b5a40.js +13 -0
- package/dist/esm/ez-actions-button.entry.js +2 -1
- package/dist/esm/ez-alert-list.entry.js +7 -5
- package/dist/esm/ez-alert.entry.js +1 -1
- package/dist/esm/ez-application.entry.js +1 -1
- package/dist/esm/ez-badge.entry.js +1 -1
- package/dist/esm/ez-breadcrumb.entry.js +1 -1
- package/dist/esm/ez-button.entry.js +3 -3
- package/dist/esm/ez-calendar.entry.js +1 -1
- package/dist/esm/ez-card-item_3.entry.js +1 -1
- package/dist/esm/ez-chart.entry.js +429 -0
- package/dist/esm/ez-check.entry.js +1 -1
- package/dist/esm/ez-chip.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +2 -1
- package/dist/esm/ez-combo-box.entry.js +2 -1
- package/dist/esm/{ez-text-edit.entry.js → ez-custom-form-input_2.entry.js} +96 -3
- package/dist/esm/ez-date-input.entry.js +1 -1
- package/dist/esm/ez-date-time-input.entry.js +1 -1
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-dropdown.entry.js +1 -1
- package/dist/esm/ez-file-item.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +34 -4
- package/dist/esm/ez-form.entry.js +79 -4
- package/dist/esm/ez-grid.entry.js +333 -33
- package/dist/esm/ez-guide-navigator.entry.js +1 -1
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +2 -2
- package/dist/esm/ez-loading-bar.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +16 -5
- package/dist/esm/ez-modal.entry.js +9 -10
- package/dist/esm/ez-multi-selection-list.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +35 -29
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +15 -9
- package/dist/esm/ez-radio-button.entry.js +1 -1
- package/dist/esm/ez-scroller_3.entry.js +1 -1
- package/dist/esm/ez-search.entry.js +18 -6
- package/dist/esm/ez-skeleton.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +1 -1
- package/dist/esm/ez-split-item.entry.js +2 -1
- package/dist/esm/ez-split-panel.entry.js +2 -2
- package/dist/esm/ez-tabselector.entry.js +1 -1
- package/dist/esm/ez-text-area.entry.js +1 -1
- package/dist/esm/ez-text-input.entry.js +1 -1
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ez-upload.entry.js +1 -1
- package/dist/esm/ez-view-stack.entry.js +1 -1
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/filter-column.entry.js +1 -1
- package/dist/esm/{index-baa5e267.js → index-5a720e56.js} +11 -5
- package/dist/esm/loader.js +3 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-44caad9a.entry.js → p-0378416a.entry.js} +1 -1
- package/dist/ezui/p-085babb4.entry.js +1 -0
- package/dist/ezui/{p-91f626d3.entry.js → p-0e551dd4.entry.js} +1 -1
- package/dist/ezui/{p-af2ecb1b.entry.js → p-11b09aa1.entry.js} +1 -1
- package/dist/ezui/{p-77a4bd35.entry.js → p-11bfeca3.entry.js} +1 -1
- package/dist/ezui/p-23a796cc.entry.js +1 -0
- package/dist/ezui/{p-af95cd16.entry.js → p-24ca32a3.entry.js} +1 -1
- package/dist/ezui/{p-cc2dc4f4.entry.js → p-2a6e44a0.entry.js} +1 -1
- package/dist/ezui/p-2af4e2de.entry.js +1 -0
- package/dist/ezui/{p-baf80b13.entry.js → p-30951bd7.entry.js} +1 -1
- package/dist/ezui/p-31674f8e.entry.js +1 -0
- package/dist/ezui/{p-bf79aaa1.entry.js → p-33792b2b.entry.js} +1 -1
- package/dist/ezui/{p-b44741b0.entry.js → p-355c20f5.entry.js} +2 -2
- package/dist/ezui/{p-e85c48d7.entry.js → p-36180f4d.entry.js} +1 -1
- package/dist/ezui/{p-7bc07c31.entry.js → p-3f8c33e0.entry.js} +1 -1
- package/dist/ezui/p-4559c266.entry.js +1 -0
- package/dist/ezui/p-4607fb89.js +1 -0
- package/dist/ezui/p-507ec8ed.entry.js +1 -0
- package/dist/ezui/{p-8defa6d3.entry.js → p-51e4c040.entry.js} +1 -1
- package/dist/ezui/p-569a0b9a.entry.js +1 -0
- package/dist/ezui/{p-1f50fa05.entry.js → p-6b51c9cc.entry.js} +1 -1
- package/dist/ezui/p-6ec40dec.entry.js +1 -0
- package/dist/ezui/{p-5ed81457.entry.js → p-6fc26622.entry.js} +1 -1
- package/dist/ezui/{p-555c9018.entry.js → p-7567ccdd.entry.js} +1 -1
- package/dist/ezui/{p-1e7a8633.entry.js → p-81461d2f.entry.js} +1 -1
- package/dist/ezui/{p-072e6347.entry.js → p-82ac8b06.entry.js} +1 -1
- package/dist/ezui/{p-8df1ca33.entry.js → p-82fa4b09.entry.js} +1 -1
- package/dist/ezui/p-868b56f7.entry.js +1 -0
- package/dist/ezui/{p-85c8baae.entry.js → p-8eef0f70.entry.js} +1 -1
- package/dist/ezui/p-91ccae0c.entry.js +1 -0
- package/dist/ezui/{p-3faa2b46.entry.js → p-9634631d.entry.js} +1 -1
- package/dist/ezui/p-9a11e223.entry.js +1 -0
- package/dist/ezui/{p-7af81663.entry.js → p-9a23d513.entry.js} +1 -1
- package/dist/ezui/p-9aa27e69.entry.js +1 -0
- package/dist/ezui/{p-784fe207.entry.js → p-9c2e2d68.entry.js} +1 -1
- package/dist/ezui/{p-9050d2cd.entry.js → p-b0e71d23.entry.js} +1 -1
- package/dist/ezui/{p-17be134a.entry.js → p-b2f6bc0a.entry.js} +1 -1
- package/dist/ezui/{p-9f5fa3f9.entry.js → p-c2b20f78.entry.js} +1 -1
- package/dist/ezui/{p-5bd5e68f.entry.js → p-c3b7a23e.entry.js} +1 -1
- package/dist/ezui/p-cd1a2e6b.entry.js +1 -0
- package/dist/ezui/p-d62ff380.entry.js +1 -0
- package/dist/ezui/{p-bae4e180.entry.js → p-dbeee5aa.entry.js} +1 -1
- package/dist/ezui/{p-a80b1287.entry.js → p-dfca5946.entry.js} +1 -1
- package/dist/ezui/p-e151e795.entry.js +1 -0
- package/dist/ezui/{p-23a36bb6.js → p-e4c7eb39.js} +2 -2
- package/dist/ezui/{p-0306dff7.entry.js → p-e6b38ade.entry.js} +1 -1
- package/dist/ezui/{p-650e4b6d.entry.js → p-f1c2c19e.entry.js} +1 -1
- package/dist/ezui/p-f1c3f85d.entry.js +1 -0
- package/dist/ezui/{p-49456b34.entry.js → p-f291db18.entry.js} +1 -1
- package/dist/ezui/{p-6e429cff.entry.js → p-fc194825.entry.js} +1 -1
- package/dist/types/components/ez-alert-list/ez-alert-list.d.ts +2 -2
- package/dist/types/components/ez-chart/components/BarChart.d.ts +9 -0
- package/dist/types/components/ez-chart/components/ColumnChart.d.ts +9 -0
- package/dist/types/components/ez-chart/components/DonutChart.d.ts +9 -0
- package/dist/types/components/ez-chart/components/LineChart.d.ts +9 -0
- package/dist/types/components/ez-chart/components/PieChart.d.ts +9 -0
- package/dist/types/components/ez-chart/components/index.d.ts +5 -0
- package/dist/types/components/ez-chart/ez-chart.d.ts +58 -0
- package/dist/types/components/ez-chart/interfaces/ChartAxis.d.ts +7 -0
- package/dist/types/components/ez-chart/interfaces/ChartContext.d.ts +11 -0
- package/dist/types/components/ez-chart/interfaces/ChartOptions.d.ts +10 -0
- package/dist/types/components/ez-chart/interfaces/ChartSerie.d.ts +20 -0
- package/dist/types/components/ez-chart/interfaces/ChartStrategies.d.ts +7 -0
- package/dist/types/components/ez-chart/interfaces/ChartType.d.ts +7 -0
- package/dist/types/components/ez-chart/interfaces/index.d.ts +5 -0
- package/dist/types/components/ez-chart/types/BaseHighChartsRender.d.ts +15 -0
- package/dist/types/components/ez-form/ez-form.d.ts +20 -1
- package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +43 -0
- package/dist/types/components/ez-form-view/ez-form-view.d.ts +11 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +30 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +13 -0
- package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +7 -1
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +19 -0
- package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +14 -0
- package/dist/types/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.d.ts +11 -0
- package/dist/types/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.d.ts +11 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +3 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +15 -0
- package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellRender.d.ts +10 -0
- package/dist/types/components/ez-grid/ez-grid.d.ts +34 -1
- package/dist/types/components/ez-grid/interfaces/ICustomFormatter.d.ts +5 -0
- package/dist/types/components/ez-grid/interfaces/index.d.ts +1 -0
- package/dist/types/components/ez-grid/subcomponents/utils/selectionCounterUtils.d.ts +4 -0
- package/dist/types/components/ez-grid/test/resources/gridDataUnit.d.ts +2 -0
- package/dist/types/components/ez-modal/ez-modal.d.ts +9 -1
- package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +3 -0
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +3 -0
- package/dist/types/components/ez-popup/ez-popup.d.ts +3 -3
- package/dist/types/components/ez-search/ez-search.d.ts +2 -1
- package/dist/types/components.d.ts +223 -4
- package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +29 -0
- package/dist/types/utils/customEditor/interfaces/ICustomEditorInfo.d.ts +5 -0
- package/dist/types/utils/customRender/interfaces/ICustomRender.d.ts +29 -0
- package/dist/types/utils/customRender/interfaces/ICustomRenderInfo.d.ts +5 -0
- package/dist/types/utils/form/DataBinder.d.ts +3 -0
- package/dist/types/utils/form/test/resources/metadataTest.d.ts +2 -0
- package/dist/types/utils/index.d.ts +2 -0
- package/package.json +2 -1
- package/react/components.d.ts +2 -0
- package/react/components.js +2 -0
- package/react/components.js.map +1 -1
- package/dist/ezui/p-0447d17c.entry.js +0 -1
- package/dist/ezui/p-20ec22c0.entry.js +0 -1
- package/dist/ezui/p-2a1a0e04.entry.js +0 -1
- package/dist/ezui/p-5e1d036e.entry.js +0 -1
- package/dist/ezui/p-5ef056ce.entry.js +0 -1
- package/dist/ezui/p-637f69f2.entry.js +0 -1
- package/dist/ezui/p-701231f0.entry.js +0 -1
- package/dist/ezui/p-99ead599.entry.js +0 -1
- package/dist/ezui/p-9aefaa52.entry.js +0 -1
- package/dist/ezui/p-a1ec32ef.entry.js +0 -1
- package/dist/ezui/p-b041333c.entry.js +0 -1
- package/dist/ezui/p-b567fa8c.entry.js +0 -1
- package/dist/ezui/p-bae3d0aa.entry.js +0 -1
- package/dist/ezui/p-bc2f844e.entry.js +0 -1
- package/dist/ezui/p-db77a984.entry.js +0 -1
|
@@ -2,6 +2,7 @@ import { EventEmitter } from "../../stencil-public-runtime";
|
|
|
2
2
|
export declare class EzModalContainer {
|
|
3
3
|
_closeButton: HTMLElement;
|
|
4
4
|
_okButton: HTMLEzButtonElement;
|
|
5
|
+
private _modalRef;
|
|
5
6
|
private _element;
|
|
6
7
|
/**
|
|
7
8
|
* Texto a ser apresentado como título do modal.
|
|
@@ -39,9 +40,11 @@ export declare class EzModalContainer {
|
|
|
39
40
|
* LOAD - Quando o modal é carregado (eventualmente pode ser usado para dar foco a um elemento específico)
|
|
40
41
|
*/
|
|
41
42
|
ezModalAction: EventEmitter<string>;
|
|
43
|
+
handleEzModalAction(event: CustomEvent<string>): Promise<void>;
|
|
42
44
|
private cancelIsVisible;
|
|
43
45
|
private okIsVisible;
|
|
44
46
|
componentDidLoad(): void;
|
|
47
|
+
private closeModal;
|
|
45
48
|
focusLast(): void;
|
|
46
49
|
focusFirst(): void;
|
|
47
50
|
render(): any;
|
|
@@ -7,6 +7,7 @@ export declare class EzNumberInput {
|
|
|
7
7
|
private _changePending;
|
|
8
8
|
private _valuePromiseCallbacks;
|
|
9
9
|
private _elem;
|
|
10
|
+
private _value;
|
|
10
11
|
/**
|
|
11
12
|
* Emitido quando acontece a alteração de valor do campo.
|
|
12
13
|
*/
|
|
@@ -68,6 +69,8 @@ export declare class EzNumberInput {
|
|
|
68
69
|
observeLabel(): void;
|
|
69
70
|
observeErrorMessage(): void;
|
|
70
71
|
observeValue(newValue: number, oldValue: number): void;
|
|
72
|
+
observePrecision(): void;
|
|
73
|
+
private handleNewValue;
|
|
71
74
|
private validateValue;
|
|
72
75
|
private getTextValue;
|
|
73
76
|
private changeValue;
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
2
2
|
export declare class EzPopup {
|
|
3
|
-
private
|
|
4
|
-
private _modalRef;
|
|
3
|
+
private _popupRef;
|
|
5
4
|
private _overlayId;
|
|
6
|
-
private _element;
|
|
7
5
|
private _sizeClasses;
|
|
6
|
+
private _element;
|
|
8
7
|
/**
|
|
9
8
|
* Define a largura do ez-popup.
|
|
10
9
|
*/
|
|
@@ -35,6 +34,7 @@ export declare class EzPopup {
|
|
|
35
34
|
ezPopupAction: EventEmitter<string>;
|
|
36
35
|
observeConfig(): void;
|
|
37
36
|
componentDidLoad(): void;
|
|
37
|
+
private closePopup;
|
|
38
38
|
private manageOverflow;
|
|
39
39
|
private manageOverlay;
|
|
40
40
|
getGridSize(): string;
|
|
@@ -95,7 +95,7 @@ export declare class EzSearch {
|
|
|
95
95
|
*/
|
|
96
96
|
suppressSearch: boolean;
|
|
97
97
|
observeErrorMessage(): void;
|
|
98
|
-
observeValue(newValue: IOption | string, oldValue: IOption | string): void
|
|
98
|
+
observeValue(newValue: IOption | string, oldValue: IOption | string): Promise<void>;
|
|
99
99
|
observeOptions(newOptions: IOption[], oldOptions: IOption[]): void;
|
|
100
100
|
getValueAsync(): Promise<unknown>;
|
|
101
101
|
/**
|
|
@@ -115,6 +115,7 @@ export declare class EzSearch {
|
|
|
115
115
|
*/
|
|
116
116
|
clearValue(): Promise<void>;
|
|
117
117
|
scrollListener(): void;
|
|
118
|
+
private handleValueAsString;
|
|
118
119
|
private updateListPosition;
|
|
119
120
|
private getListPosition;
|
|
120
121
|
private isDifferentValues;
|
|
@@ -11,17 +11,22 @@ import { SlotBuilder } from "./components/ez-list/ez-list";
|
|
|
11
11
|
import { IPosition } from "./components/ez-badge/interfaces/IPosition";
|
|
12
12
|
import { IBreadcrumbItem } from "./components/ez-breadcrumb/ez-breadcrumb";
|
|
13
13
|
import { CardItem } from "./components/ez-card-item/ez-card-item";
|
|
14
|
+
import { ChartAxis, ChartType } from "./components/ez-chart/interfaces";
|
|
15
|
+
import { ChartSerie, SerieClickEvent } from "./components/ez-chart/interfaces/ChartSerie";
|
|
14
16
|
import { CheckMode } from "./components/ez-check/CheckMode";
|
|
15
17
|
import { IEzCheckBoxListPosition, IOption, ISearchArgument } from "./components/ez-combo-box/ez-combo-box";
|
|
18
|
+
import { ICustomEditor } from "./utils/customEditor/interfaces/ICustomEditor";
|
|
19
|
+
import { IFormViewField } from "./components/ez-form-view/interfaces";
|
|
16
20
|
import { DataUnit, WaitingChange } from "@sankhyalabs/core";
|
|
17
21
|
import { DialogType } from "./components/ez-dialog/DialogType";
|
|
18
22
|
import { IDropdownItem, IDropdownSubAction } from "./components/ez-dropdown/structure/DropdownItem";
|
|
19
23
|
import { IFieldConfig, IFormConfig, IRecordValidator } from "./utils/form/interfaces";
|
|
20
24
|
import { FormItems } from "./components/ez-form-view/structure";
|
|
21
|
-
import { IFormViewField } from "./components/ez-form-view/interfaces/IFormViewField";
|
|
25
|
+
import { IFormViewField as IFormViewField1 } from "./components/ez-form-view/interfaces/IFormViewField";
|
|
22
26
|
import { EzGridColumn, EzGridColumnConfig, EzGridColumStateEvent, IGridConfig, IStatusResolver, StatusResolverFunction } from "./components/ez-grid/controller/EzGridController";
|
|
23
|
-
import { ISelection, ISelectionToastConfig } from "./components/ez-grid/interfaces";
|
|
27
|
+
import { ICustomFormatter, ISelection, ISelectionToastConfig } from "./components/ez-grid/interfaces";
|
|
24
28
|
import { IMultiSelectionListDataSource } from "./components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource";
|
|
29
|
+
import { ICustomRender } from "./utils/customRender/interfaces/ICustomRender";
|
|
25
30
|
import { IGuideItem } from "./components/ez-guide-navigator/interfaces";
|
|
26
31
|
import { ListGroup, ListItem, SlotBuilder as SlotBuilder1, TListMode } from "./components/ez-list/ez-list";
|
|
27
32
|
import { THeightMode } from "./components/ez-modal/ez-modal";
|
|
@@ -242,6 +247,44 @@ export namespace Components {
|
|
|
242
247
|
*/
|
|
243
248
|
"item": CardItem;
|
|
244
249
|
}
|
|
250
|
+
interface EzChart {
|
|
251
|
+
/**
|
|
252
|
+
* Define o sub titulo a ser apresentado no gráfico
|
|
253
|
+
*/
|
|
254
|
+
"chartSubTitle": string;
|
|
255
|
+
/**
|
|
256
|
+
* Define o titulo a ser apresentado no gráfico
|
|
257
|
+
*/
|
|
258
|
+
"chartTitle": string;
|
|
259
|
+
/**
|
|
260
|
+
* Define a altura do gráfico
|
|
261
|
+
*/
|
|
262
|
+
"height": number;
|
|
263
|
+
/**
|
|
264
|
+
* Define se a legenda do gráfico deve ser apresentada ou não.
|
|
265
|
+
*/
|
|
266
|
+
"legendEnabled": boolean;
|
|
267
|
+
/**
|
|
268
|
+
* Define as series a serem apresentadas no gráfico
|
|
269
|
+
*/
|
|
270
|
+
"series": ChartSerie | Array<ChartSerie>;
|
|
271
|
+
/**
|
|
272
|
+
* Define o tipo de gráfico apresentado pelo componente
|
|
273
|
+
*/
|
|
274
|
+
"type": ChartType;
|
|
275
|
+
/**
|
|
276
|
+
* Define uma largura do gráfico
|
|
277
|
+
*/
|
|
278
|
+
"width": number;
|
|
279
|
+
/**
|
|
280
|
+
* Definições do eixo X do gráfico
|
|
281
|
+
*/
|
|
282
|
+
"xAxis": ChartAxis | Array<ChartAxis>;
|
|
283
|
+
/**
|
|
284
|
+
* Definições do eixo Y do gráfico
|
|
285
|
+
*/
|
|
286
|
+
"yAxis": ChartAxis | Array<ChartAxis>;
|
|
287
|
+
}
|
|
245
288
|
interface EzCheck {
|
|
246
289
|
/**
|
|
247
290
|
* Define o modo compacto com espaçamento menor entre label e o input
|
|
@@ -447,6 +490,40 @@ export namespace Components {
|
|
|
447
490
|
*/
|
|
448
491
|
"value": IOption | string;
|
|
449
492
|
}
|
|
493
|
+
interface EzCustomFormInput {
|
|
494
|
+
/**
|
|
495
|
+
* Builder original do FormView que será chamado caso o custom não retorne nenhum valor.
|
|
496
|
+
*/
|
|
497
|
+
"builderFallback": (field: IFormViewField) => HTMLElement;
|
|
498
|
+
/**
|
|
499
|
+
* Instância do editor customizado.
|
|
500
|
+
*/
|
|
501
|
+
"customEditor": ICustomEditor;
|
|
502
|
+
/**
|
|
503
|
+
* Define de qual contexto o editor está sendo acionado.
|
|
504
|
+
*/
|
|
505
|
+
"detailContext": string;
|
|
506
|
+
/**
|
|
507
|
+
* Campo que o elemento customizado representa.
|
|
508
|
+
*/
|
|
509
|
+
"formViewField": IFormViewField;
|
|
510
|
+
/**
|
|
511
|
+
* Retorna se o conteúdo é inválido.
|
|
512
|
+
*/
|
|
513
|
+
"isInvalid": () => Promise<boolean>;
|
|
514
|
+
/**
|
|
515
|
+
* Remove o foco do campo.
|
|
516
|
+
*/
|
|
517
|
+
"setBlur": () => Promise<void>;
|
|
518
|
+
/**
|
|
519
|
+
* Aplica foco no campo.
|
|
520
|
+
*/
|
|
521
|
+
"setFocus": () => Promise<void>;
|
|
522
|
+
/**
|
|
523
|
+
* Valores dos campos do formulário.
|
|
524
|
+
*/
|
|
525
|
+
"value": any;
|
|
526
|
+
}
|
|
450
527
|
interface EzDateInput {
|
|
451
528
|
/**
|
|
452
529
|
* Se false deixa de exibir a mensagem de erro dentro do campo.
|
|
@@ -654,6 +731,10 @@ export namespace Components {
|
|
|
654
731
|
"value": string;
|
|
655
732
|
}
|
|
656
733
|
interface EzForm {
|
|
734
|
+
/**
|
|
735
|
+
* Registra um editor customizado para campos da grade e formulário.
|
|
736
|
+
*/
|
|
737
|
+
"addCustomEditor": (fieldName: string, customEditor: ICustomEditor, detailContext?: string) => Promise<void>;
|
|
657
738
|
/**
|
|
658
739
|
* Configuração do formulário.
|
|
659
740
|
*/
|
|
@@ -666,20 +747,36 @@ export namespace Components {
|
|
|
666
747
|
* Determina o campo que deve ficar em evidência.
|
|
667
748
|
*/
|
|
668
749
|
"fieldToFocus": string;
|
|
750
|
+
/**
|
|
751
|
+
* Define se os campos que serão apresentados são todos estáticos. Quando verdadeira, ocorrerá no DataBinder o bind dos campos com o DataUnit.
|
|
752
|
+
*/
|
|
753
|
+
"onlyStaticFields": boolean;
|
|
669
754
|
/**
|
|
670
755
|
* Define um validador responsável pela integridade dos registros.
|
|
671
756
|
*/
|
|
672
757
|
"recordsValidator": IRecordValidator;
|
|
758
|
+
/**
|
|
759
|
+
* Altera/adiciona uma propriedade nos metadados do campo.
|
|
760
|
+
*/
|
|
761
|
+
"setFieldProp": (fieldName: string, propName: string, value: any) => Promise<void>;
|
|
673
762
|
/**
|
|
674
763
|
* Realiza validação no conteúdo de todos os campos.
|
|
675
764
|
*/
|
|
676
765
|
"validate": () => Promise<void>;
|
|
677
766
|
}
|
|
678
767
|
interface EzFormView {
|
|
768
|
+
/**
|
|
769
|
+
* Registra um editor customizado para campos da grade e formulário.
|
|
770
|
+
*/
|
|
771
|
+
"addCustomEditor": (fieldName: string, customEditor: ICustomEditor, detailContext?: string) => Promise<void>;
|
|
679
772
|
/**
|
|
680
773
|
* Define a lista de metadados usada para criar os campos de user interface.
|
|
681
774
|
*/
|
|
682
|
-
"fields": Array<
|
|
775
|
+
"fields": Array<IFormViewField1>;
|
|
776
|
+
/**
|
|
777
|
+
* Altera/adiciona uma propriedade nos metados do campo.
|
|
778
|
+
*/
|
|
779
|
+
"setFieldProp": (fieldName: string, propName: string, value: any) => Promise<void>;
|
|
683
780
|
"showUp": () => Promise<void>;
|
|
684
781
|
}
|
|
685
782
|
interface EzGrid {
|
|
@@ -687,6 +784,18 @@ export namespace Components {
|
|
|
687
784
|
* Adiciona item de menu nas colunas.
|
|
688
785
|
*/
|
|
689
786
|
"addColumnMenuItem": (label: string, name: string, action: Function, icon: HTMLElement | string) => Promise<void>;
|
|
787
|
+
/**
|
|
788
|
+
* Registra um editor customizado para campos da grade e formulário.
|
|
789
|
+
*/
|
|
790
|
+
"addCustomEditor": (fieldName: string, customEditor: ICustomEditor, detailContext?: string) => Promise<void>;
|
|
791
|
+
/**
|
|
792
|
+
* Registra um formatador de valores para uma coluna da grid.
|
|
793
|
+
*/
|
|
794
|
+
"addCustomValueFormatter": (columnName: string, customFormatter: ICustomFormatter) => Promise<void>;
|
|
795
|
+
/**
|
|
796
|
+
* Registra um render customizado para colunas da grid.
|
|
797
|
+
*/
|
|
798
|
+
"addGridCustomRender": (fieldName: string, customRender: ICustomRender, detailContext?: string) => Promise<void>;
|
|
690
799
|
/**
|
|
691
800
|
* Define se a edição está habilitada na grid.
|
|
692
801
|
*/
|
|
@@ -715,6 +824,10 @@ export namespace Components {
|
|
|
715
824
|
* Obtém o estado atual das colunas.
|
|
716
825
|
*/
|
|
717
826
|
"getColumnsState": () => Promise<Array<EzGridColumn>>;
|
|
827
|
+
/**
|
|
828
|
+
* Retorna o formatador customizado da coluna caso exista.
|
|
829
|
+
*/
|
|
830
|
+
"getCustomValueFormatter": (columnName: string) => Promise<ICustomFormatter | undefined>;
|
|
718
831
|
/**
|
|
719
832
|
* Obtém as linhas selecionadas.
|
|
720
833
|
*/
|
|
@@ -735,6 +848,14 @@ export namespace Components {
|
|
|
735
848
|
* Define um validador responsável pela integridade dos registros.
|
|
736
849
|
*/
|
|
737
850
|
"recordsValidator": IRecordValidator;
|
|
851
|
+
/**
|
|
852
|
+
* Atualiza linhas da grade.
|
|
853
|
+
*/
|
|
854
|
+
"refreshSelectedRows": () => Promise<void>;
|
|
855
|
+
/**
|
|
856
|
+
* Remove o formatador de valores de uma coluna da grid.
|
|
857
|
+
*/
|
|
858
|
+
"removeCustomValueFormatter": (columnName: string) => Promise<void>;
|
|
738
859
|
/**
|
|
739
860
|
* Configuração da seleção de grade no toast.
|
|
740
861
|
*/
|
|
@@ -755,6 +876,10 @@ export namespace Components {
|
|
|
755
876
|
* Insere os registros no ez-grid.
|
|
756
877
|
*/
|
|
757
878
|
"setData": (data: Array<any>) => Promise<void>;
|
|
879
|
+
/**
|
|
880
|
+
* Atribui o foco para a grade.
|
|
881
|
+
*/
|
|
882
|
+
"setFocus": () => Promise<void>;
|
|
758
883
|
/**
|
|
759
884
|
* Define um `IStatusResolver` responsável pelo estado da coluna de status.
|
|
760
885
|
*/
|
|
@@ -1679,6 +1804,10 @@ export interface EzCardItemCustomEvent<T> extends CustomEvent<T> {
|
|
|
1679
1804
|
detail: T;
|
|
1680
1805
|
target: HTMLEzCardItemElement;
|
|
1681
1806
|
}
|
|
1807
|
+
export interface EzChartCustomEvent<T> extends CustomEvent<T> {
|
|
1808
|
+
detail: T;
|
|
1809
|
+
target: HTMLEzChartElement;
|
|
1810
|
+
}
|
|
1682
1811
|
export interface EzCheckCustomEvent<T> extends CustomEvent<T> {
|
|
1683
1812
|
detail: T;
|
|
1684
1813
|
target: HTMLEzCheckElement;
|
|
@@ -1866,6 +1995,12 @@ declare global {
|
|
|
1866
1995
|
prototype: HTMLEzCardItemElement;
|
|
1867
1996
|
new (): HTMLEzCardItemElement;
|
|
1868
1997
|
};
|
|
1998
|
+
interface HTMLEzChartElement extends Components.EzChart, HTMLStencilElement {
|
|
1999
|
+
}
|
|
2000
|
+
var HTMLEzChartElement: {
|
|
2001
|
+
prototype: HTMLEzChartElement;
|
|
2002
|
+
new (): HTMLEzChartElement;
|
|
2003
|
+
};
|
|
1869
2004
|
interface HTMLEzCheckElement extends Components.EzCheck, HTMLStencilElement {
|
|
1870
2005
|
}
|
|
1871
2006
|
var HTMLEzCheckElement: {
|
|
@@ -1890,6 +2025,12 @@ declare global {
|
|
|
1890
2025
|
prototype: HTMLEzComboBoxElement;
|
|
1891
2026
|
new (): HTMLEzComboBoxElement;
|
|
1892
2027
|
};
|
|
2028
|
+
interface HTMLEzCustomFormInputElement extends Components.EzCustomFormInput, HTMLStencilElement {
|
|
2029
|
+
}
|
|
2030
|
+
var HTMLEzCustomFormInputElement: {
|
|
2031
|
+
prototype: HTMLEzCustomFormInputElement;
|
|
2032
|
+
new (): HTMLEzCustomFormInputElement;
|
|
2033
|
+
};
|
|
1893
2034
|
interface HTMLEzDateInputElement extends Components.EzDateInput, HTMLStencilElement {
|
|
1894
2035
|
}
|
|
1895
2036
|
var HTMLEzDateInputElement: {
|
|
@@ -2128,10 +2269,12 @@ declare global {
|
|
|
2128
2269
|
"ez-button": HTMLEzButtonElement;
|
|
2129
2270
|
"ez-calendar": HTMLEzCalendarElement;
|
|
2130
2271
|
"ez-card-item": HTMLEzCardItemElement;
|
|
2272
|
+
"ez-chart": HTMLEzChartElement;
|
|
2131
2273
|
"ez-check": HTMLEzCheckElement;
|
|
2132
2274
|
"ez-chip": HTMLEzChipElement;
|
|
2133
2275
|
"ez-collapsible-box": HTMLEzCollapsibleBoxElement;
|
|
2134
2276
|
"ez-combo-box": HTMLEzComboBoxElement;
|
|
2277
|
+
"ez-custom-form-input": HTMLEzCustomFormInputElement;
|
|
2135
2278
|
"ez-date-input": HTMLEzDateInputElement;
|
|
2136
2279
|
"ez-date-time-input": HTMLEzDateTimeInputElement;
|
|
2137
2280
|
"ez-dialog": HTMLEzDialogElement;
|
|
@@ -2367,6 +2510,48 @@ declare namespace LocalJSX {
|
|
|
2367
2510
|
*/
|
|
2368
2511
|
"onEzClick"?: (event: EzCardItemCustomEvent<CardItem>) => void;
|
|
2369
2512
|
}
|
|
2513
|
+
interface EzChart {
|
|
2514
|
+
/**
|
|
2515
|
+
* Define o sub titulo a ser apresentado no gráfico
|
|
2516
|
+
*/
|
|
2517
|
+
"chartSubTitle"?: string;
|
|
2518
|
+
/**
|
|
2519
|
+
* Define o titulo a ser apresentado no gráfico
|
|
2520
|
+
*/
|
|
2521
|
+
"chartTitle"?: string;
|
|
2522
|
+
/**
|
|
2523
|
+
* Define a altura do gráfico
|
|
2524
|
+
*/
|
|
2525
|
+
"height"?: number;
|
|
2526
|
+
/**
|
|
2527
|
+
* Define se a legenda do gráfico deve ser apresentada ou não.
|
|
2528
|
+
*/
|
|
2529
|
+
"legendEnabled"?: boolean;
|
|
2530
|
+
/**
|
|
2531
|
+
* Evento emitido quando ocorre um click em uma serie do gráfico
|
|
2532
|
+
*/
|
|
2533
|
+
"onEzSerieClick"?: (event: EzChartCustomEvent<SerieClickEvent>) => void;
|
|
2534
|
+
/**
|
|
2535
|
+
* Define as series a serem apresentadas no gráfico
|
|
2536
|
+
*/
|
|
2537
|
+
"series"?: ChartSerie | Array<ChartSerie>;
|
|
2538
|
+
/**
|
|
2539
|
+
* Define o tipo de gráfico apresentado pelo componente
|
|
2540
|
+
*/
|
|
2541
|
+
"type"?: ChartType;
|
|
2542
|
+
/**
|
|
2543
|
+
* Define uma largura do gráfico
|
|
2544
|
+
*/
|
|
2545
|
+
"width"?: number;
|
|
2546
|
+
/**
|
|
2547
|
+
* Definições do eixo X do gráfico
|
|
2548
|
+
*/
|
|
2549
|
+
"xAxis"?: ChartAxis | Array<ChartAxis>;
|
|
2550
|
+
/**
|
|
2551
|
+
* Definições do eixo Y do gráfico
|
|
2552
|
+
*/
|
|
2553
|
+
"yAxis"?: ChartAxis | Array<ChartAxis>;
|
|
2554
|
+
}
|
|
2370
2555
|
interface EzCheck {
|
|
2371
2556
|
/**
|
|
2372
2557
|
* Define o modo compacto com espaçamento menor entre label e o input
|
|
@@ -2563,6 +2748,28 @@ declare namespace LocalJSX {
|
|
|
2563
2748
|
*/
|
|
2564
2749
|
"value"?: IOption | string;
|
|
2565
2750
|
}
|
|
2751
|
+
interface EzCustomFormInput {
|
|
2752
|
+
/**
|
|
2753
|
+
* Builder original do FormView que será chamado caso o custom não retorne nenhum valor.
|
|
2754
|
+
*/
|
|
2755
|
+
"builderFallback"?: (field: IFormViewField) => HTMLElement;
|
|
2756
|
+
/**
|
|
2757
|
+
* Instância do editor customizado.
|
|
2758
|
+
*/
|
|
2759
|
+
"customEditor"?: ICustomEditor;
|
|
2760
|
+
/**
|
|
2761
|
+
* Define de qual contexto o editor está sendo acionado.
|
|
2762
|
+
*/
|
|
2763
|
+
"detailContext"?: string;
|
|
2764
|
+
/**
|
|
2765
|
+
* Campo que o elemento customizado representa.
|
|
2766
|
+
*/
|
|
2767
|
+
"formViewField"?: IFormViewField;
|
|
2768
|
+
/**
|
|
2769
|
+
* Valores dos campos do formulário.
|
|
2770
|
+
*/
|
|
2771
|
+
"value"?: any;
|
|
2772
|
+
}
|
|
2566
2773
|
interface EzDateInput {
|
|
2567
2774
|
/**
|
|
2568
2775
|
* Se false deixa de exibir a mensagem de erro dentro do campo.
|
|
@@ -2812,6 +3019,10 @@ declare namespace LocalJSX {
|
|
|
2812
3019
|
* Responsável por notificar quando ocorrer a renderização de itens do formulário.
|
|
2813
3020
|
*/
|
|
2814
3021
|
"onFormItemsReady"?: (event: EzFormCustomEvent<FormItems>) => void;
|
|
3022
|
+
/**
|
|
3023
|
+
* Define se os campos que serão apresentados são todos estáticos. Quando verdadeira, ocorrerá no DataBinder o bind dos campos com o DataUnit.
|
|
3024
|
+
*/
|
|
3025
|
+
"onlyStaticFields"?: boolean;
|
|
2815
3026
|
/**
|
|
2816
3027
|
* Define um validador responsável pela integridade dos registros.
|
|
2817
3028
|
*/
|
|
@@ -2821,7 +3032,7 @@ declare namespace LocalJSX {
|
|
|
2821
3032
|
/**
|
|
2822
3033
|
* Define a lista de metadados usada para criar os campos de user interface.
|
|
2823
3034
|
*/
|
|
2824
|
-
"fields"?: Array<
|
|
3035
|
+
"fields"?: Array<IFormViewField1>;
|
|
2825
3036
|
/**
|
|
2826
3037
|
* Evento emitido quando o componente foi totalmente carregado na DOM.
|
|
2827
3038
|
*/
|
|
@@ -3002,6 +3213,10 @@ declare namespace LocalJSX {
|
|
|
3002
3213
|
* Emitido quando o modal é fechado.
|
|
3003
3214
|
*/
|
|
3004
3215
|
"onEzCloseModal"?: (event: EzModalCustomEvent<boolean>) => void;
|
|
3216
|
+
/**
|
|
3217
|
+
* Representa a interação com o usuário. OK - Quando o botão é acionado CANCEL - Quando o botão de cancelar é acionado CLOSE - Quando o botão de fechar é acionado. LOAD - Quando o modal é carregado (eventualmente pode ser usado para dar foco a um elemento específico)
|
|
3218
|
+
*/
|
|
3219
|
+
"onEzModalAction"?: (event: EzModalCustomEvent<string>) => void;
|
|
3005
3220
|
/**
|
|
3006
3221
|
* Emitido quando o modal é aberto.
|
|
3007
3222
|
*/
|
|
@@ -3688,10 +3903,12 @@ declare namespace LocalJSX {
|
|
|
3688
3903
|
"ez-button": EzButton;
|
|
3689
3904
|
"ez-calendar": EzCalendar;
|
|
3690
3905
|
"ez-card-item": EzCardItem;
|
|
3906
|
+
"ez-chart": EzChart;
|
|
3691
3907
|
"ez-check": EzCheck;
|
|
3692
3908
|
"ez-chip": EzChip;
|
|
3693
3909
|
"ez-collapsible-box": EzCollapsibleBox;
|
|
3694
3910
|
"ez-combo-box": EzComboBox;
|
|
3911
|
+
"ez-custom-form-input": EzCustomFormInput;
|
|
3695
3912
|
"ez-date-input": EzDateInput;
|
|
3696
3913
|
"ez-date-time-input": EzDateTimeInput;
|
|
3697
3914
|
"ez-dialog": EzDialog;
|
|
@@ -3745,10 +3962,12 @@ declare module "@stencil/core" {
|
|
|
3745
3962
|
"ez-button": LocalJSX.EzButton & JSXBase.HTMLAttributes<HTMLEzButtonElement>;
|
|
3746
3963
|
"ez-calendar": LocalJSX.EzCalendar & JSXBase.HTMLAttributes<HTMLEzCalendarElement>;
|
|
3747
3964
|
"ez-card-item": LocalJSX.EzCardItem & JSXBase.HTMLAttributes<HTMLEzCardItemElement>;
|
|
3965
|
+
"ez-chart": LocalJSX.EzChart & JSXBase.HTMLAttributes<HTMLEzChartElement>;
|
|
3748
3966
|
"ez-check": LocalJSX.EzCheck & JSXBase.HTMLAttributes<HTMLEzCheckElement>;
|
|
3749
3967
|
"ez-chip": LocalJSX.EzChip & JSXBase.HTMLAttributes<HTMLEzChipElement>;
|
|
3750
3968
|
"ez-collapsible-box": LocalJSX.EzCollapsibleBox & JSXBase.HTMLAttributes<HTMLEzCollapsibleBoxElement>;
|
|
3751
3969
|
"ez-combo-box": LocalJSX.EzComboBox & JSXBase.HTMLAttributes<HTMLEzComboBoxElement>;
|
|
3970
|
+
"ez-custom-form-input": LocalJSX.EzCustomFormInput & JSXBase.HTMLAttributes<HTMLEzCustomFormInputElement>;
|
|
3752
3971
|
"ez-date-input": LocalJSX.EzDateInput & JSXBase.HTMLAttributes<HTMLEzDateInputElement>;
|
|
3753
3972
|
"ez-date-time-input": LocalJSX.EzDateTimeInput & JSXBase.HTMLAttributes<HTMLEzDateTimeInputElement>;
|
|
3754
3973
|
"ez-dialog": LocalJSX.EzDialog & JSXBase.HTMLAttributes<HTMLEzDialogElement>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IOption, ISearchArgument } from "../../../components/ez-combo-box/ez-combo-box";
|
|
2
|
+
export interface EditorMetadata {
|
|
3
|
+
label: string;
|
|
4
|
+
hidden: boolean;
|
|
5
|
+
userInterface: string;
|
|
6
|
+
options: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}[];
|
|
9
|
+
props?: Map<string, any>;
|
|
10
|
+
optionLoader?: (argument: ISearchArgument) => Promise<Array<IOption>> | Array<IOption> | IOption;
|
|
11
|
+
}
|
|
12
|
+
export declare enum CustomEditorSource {
|
|
13
|
+
GRID = "GRID",
|
|
14
|
+
FORM = "FORM"
|
|
15
|
+
}
|
|
16
|
+
export interface ICustomEditorParams {
|
|
17
|
+
value: any;
|
|
18
|
+
name: string;
|
|
19
|
+
currentEditor: HTMLElement;
|
|
20
|
+
editorMetadata: EditorMetadata;
|
|
21
|
+
source: CustomEditorSource;
|
|
22
|
+
setValue?: (value: any) => void;
|
|
23
|
+
getValue?: () => any;
|
|
24
|
+
charPress?: string | null;
|
|
25
|
+
detailContext?: string;
|
|
26
|
+
}
|
|
27
|
+
export interface ICustomEditor {
|
|
28
|
+
getEditorElement(params: ICustomEditorParams): HTMLElement | string | undefined;
|
|
29
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { IOption, ISearchArgument } from "../../../components/ez-combo-box/ez-combo-box";
|
|
2
|
+
export interface RenderMetadata {
|
|
3
|
+
label: string;
|
|
4
|
+
hidden: boolean;
|
|
5
|
+
userInterface: string;
|
|
6
|
+
options: {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}[];
|
|
9
|
+
props?: Map<string, any>;
|
|
10
|
+
optionLoader?: (argument: ISearchArgument) => Promise<Array<IOption>> | Array<IOption> | IOption;
|
|
11
|
+
}
|
|
12
|
+
export declare enum CustomRenderSource {
|
|
13
|
+
GRID = "GRID",
|
|
14
|
+
FORM = "FORM"
|
|
15
|
+
}
|
|
16
|
+
export interface ICustomRenderParams {
|
|
17
|
+
value: any;
|
|
18
|
+
name: string;
|
|
19
|
+
charPress: string | null;
|
|
20
|
+
currentRender: HTMLElement;
|
|
21
|
+
renderMetadata: RenderMetadata;
|
|
22
|
+
source: CustomRenderSource;
|
|
23
|
+
detailContext?: string;
|
|
24
|
+
setValue?: (value: any) => void;
|
|
25
|
+
getValue?: () => any;
|
|
26
|
+
}
|
|
27
|
+
export interface ICustomRender {
|
|
28
|
+
getRenderElement(params: ICustomRenderParams): HTMLElement | string | undefined;
|
|
29
|
+
}
|
|
@@ -8,8 +8,10 @@ export default class DataBinder implements DUActionInterceptor {
|
|
|
8
8
|
private _formMetadata;
|
|
9
9
|
private _recordValidatorProcessor;
|
|
10
10
|
constructor(dataUnit: DataUnit);
|
|
11
|
+
private setContextDataBinder;
|
|
11
12
|
private applyDefaultValues;
|
|
12
13
|
bind(fields: Array<HTMLElement>, currentContextName: string, formMetadata: FormMetadata, recordsValidator: IRecordValidator): void;
|
|
14
|
+
private disconnectDataUnit;
|
|
13
15
|
onDisconnectedCallback(): void;
|
|
14
16
|
private getCurrentRecordId;
|
|
15
17
|
markInvalid(field: IInvalidField): void;
|
|
@@ -17,6 +19,7 @@ export default class DataBinder implements DUActionInterceptor {
|
|
|
17
19
|
private clearInvalid;
|
|
18
20
|
private updateValue;
|
|
19
21
|
validate(): Promise<void>;
|
|
22
|
+
static validateByDataunit(dataUnit: DataUnit): Promise<boolean>;
|
|
20
23
|
private updateErrorMessage;
|
|
21
24
|
private getErrorMessage;
|
|
22
25
|
private updateBind;
|
|
@@ -5,3 +5,5 @@ export { CheckMode } from '../components/ez-check/CheckMode';
|
|
|
5
5
|
export { FormMetadata } from './form/FormMetadata';
|
|
6
6
|
export { default as DataBinder } from './form/DataBinder';
|
|
7
7
|
export { default as IAction } from './interfaces/IAction';
|
|
8
|
+
export { ICustomEditor, ICustomEditorParams, CustomEditorSource } from './customEditor/interfaces/ICustomEditor';
|
|
9
|
+
export { ICustomRender, ICustomRenderParams, CustomRenderSource } from './customRender/interfaces/ICustomRender';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sankhyalabs/ezui",
|
|
3
|
-
"version": "5.21.0-dev.
|
|
3
|
+
"version": "5.21.0-dev.21",
|
|
4
4
|
"description": "Biblioteca de componentes Sankhya.",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/custom-elements/index.js",
|
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
"gulp": "^4.0.2",
|
|
68
68
|
"gulp-run": "^1.7.1",
|
|
69
69
|
"gulp-watch": "^5.0.1",
|
|
70
|
+
"highcharts": "^11.4.7",
|
|
70
71
|
"http-server": "^0.12.3",
|
|
71
72
|
"husky": "^8.0.3",
|
|
72
73
|
"jest": "^26.6.3",
|