@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
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IChartRenderingStrategy } from "../interfaces";
|
|
2
|
+
import { BaseHighChartsRender } from "../types/BaseHighChartsRender";
|
|
3
|
+
import { ChartOptions } from '../interfaces/ChartOptions';
|
|
4
|
+
export declare class LineChartStrategy extends BaseHighChartsRender implements IChartRenderingStrategy {
|
|
5
|
+
private chart;
|
|
6
|
+
private buildOptions;
|
|
7
|
+
render(container: any, series: any, xAxis: any, yAxis: any, options: ChartOptions): void;
|
|
8
|
+
destroy(): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { IChartRenderingStrategy } from "../interfaces";
|
|
2
|
+
import { BaseHighChartsRender } from "../types/BaseHighChartsRender";
|
|
3
|
+
import { ChartOptions } from '../interfaces/ChartOptions';
|
|
4
|
+
export declare class PieChartStrategy extends BaseHighChartsRender implements IChartRenderingStrategy {
|
|
5
|
+
private chart;
|
|
6
|
+
private buildOptions;
|
|
7
|
+
render(container: any, series: any, _xAxis: any, _yAxis: any, options: ChartOptions): void;
|
|
8
|
+
destroy(): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { ChartAxis, ChartType } from './interfaces';
|
|
3
|
+
import { ChartSerie, SerieClickEvent } from './interfaces/ChartSerie';
|
|
4
|
+
export declare class EzChart {
|
|
5
|
+
private _container;
|
|
6
|
+
/**
|
|
7
|
+
* Define o tipo de gráfico apresentado pelo componente
|
|
8
|
+
*/
|
|
9
|
+
type: ChartType;
|
|
10
|
+
/**
|
|
11
|
+
* Definições do eixo X do gráfico
|
|
12
|
+
*/
|
|
13
|
+
xAxis: ChartAxis | Array<ChartAxis>;
|
|
14
|
+
/**
|
|
15
|
+
* Definições do eixo Y do gráfico
|
|
16
|
+
*/
|
|
17
|
+
yAxis: ChartAxis | Array<ChartAxis>;
|
|
18
|
+
/**
|
|
19
|
+
* Define o titulo a ser apresentado no gráfico
|
|
20
|
+
*/
|
|
21
|
+
chartTitle: string;
|
|
22
|
+
/**
|
|
23
|
+
* Define o sub titulo a ser apresentado no gráfico
|
|
24
|
+
*/
|
|
25
|
+
chartSubTitle: string;
|
|
26
|
+
/**
|
|
27
|
+
* Define se a legenda do gráfico deve ser apresentada ou não.
|
|
28
|
+
*/
|
|
29
|
+
legendEnabled: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Define as series a serem apresentadas no gráfico
|
|
32
|
+
*/
|
|
33
|
+
series: ChartSerie | Array<ChartSerie>;
|
|
34
|
+
/**
|
|
35
|
+
* Define uma largura do gráfico
|
|
36
|
+
*/
|
|
37
|
+
width: number;
|
|
38
|
+
/**
|
|
39
|
+
* Define a altura do gráfico
|
|
40
|
+
*/
|
|
41
|
+
height: number;
|
|
42
|
+
/**
|
|
43
|
+
* Evento emitido quando ocorre um click em uma serie do gráfico
|
|
44
|
+
*/
|
|
45
|
+
ezSerieClick: EventEmitter<SerieClickEvent>;
|
|
46
|
+
private chartContext;
|
|
47
|
+
private readonly STRATEGY_BY_CHART_TYPE;
|
|
48
|
+
constructor();
|
|
49
|
+
private initializeStrategies;
|
|
50
|
+
private renderChart;
|
|
51
|
+
componentWillLoad(): void;
|
|
52
|
+
componentWillUpdate(): void;
|
|
53
|
+
componentDidLoad(): void;
|
|
54
|
+
disconnectedCallback(): void;
|
|
55
|
+
handleTypeChange(): void;
|
|
56
|
+
private setChartStrategy;
|
|
57
|
+
render(): any;
|
|
58
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { ChartAxis } from "./ChartAxis";
|
|
2
|
+
import { ChartOptions } from "./ChartOptions";
|
|
3
|
+
import { ChartSerie } from "./ChartSerie";
|
|
4
|
+
import { IChartRenderingStrategy } from "./ChartStrategies";
|
|
5
|
+
export declare class ChartContext {
|
|
6
|
+
private strategy;
|
|
7
|
+
constructor(strategy: IChartRenderingStrategy);
|
|
8
|
+
setStrategy(strategy: IChartRenderingStrategy): void;
|
|
9
|
+
render(container: HTMLElement, series: ChartSerie | Array<ChartSerie>, xAxis?: ChartAxis | Array<ChartAxis>, yAxis?: ChartAxis | Array<ChartAxis>, options?: ChartOptions): void;
|
|
10
|
+
destroy(): void;
|
|
11
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
import { SerieClickEvent } from "./ChartSerie";
|
|
3
|
+
export type ChartOptions = {
|
|
4
|
+
title?: string;
|
|
5
|
+
subTitle?: string;
|
|
6
|
+
legendEnabled?: boolean;
|
|
7
|
+
onClickSerie?: EventEmitter<SerieClickEvent>;
|
|
8
|
+
height?: number;
|
|
9
|
+
width?: number;
|
|
10
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export type ChartSerie = {
|
|
2
|
+
data: Array<number | ChartSerieData>;
|
|
3
|
+
name?: string;
|
|
4
|
+
color?: string;
|
|
5
|
+
type?: 'column' | 'line' | 'bar';
|
|
6
|
+
yAxis?: number;
|
|
7
|
+
toolTipFormatter?: (serieName: string, xAxis: string | number, yAxis: number, dataName: string, percentage: number) => string;
|
|
8
|
+
showDataLabel?: boolean;
|
|
9
|
+
};
|
|
10
|
+
export type ChartSerieData = {
|
|
11
|
+
name: string;
|
|
12
|
+
y: number;
|
|
13
|
+
color?: string;
|
|
14
|
+
};
|
|
15
|
+
export type SerieClickEvent = {
|
|
16
|
+
name: string;
|
|
17
|
+
data: Array<number>;
|
|
18
|
+
type: string;
|
|
19
|
+
yAxis: number;
|
|
20
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ChartAxis } from "./ChartAxis";
|
|
2
|
+
import { ChartOptions } from "./ChartOptions";
|
|
3
|
+
import { ChartSerie } from "./ChartSerie";
|
|
4
|
+
export interface IChartRenderingStrategy {
|
|
5
|
+
render(container: HTMLElement, series: ChartSerie | Array<ChartSerie>, xAxis?: ChartAxis | Array<ChartAxis>, yAxis?: ChartAxis | Array<ChartAxis>, options?: ChartOptions): void;
|
|
6
|
+
destroy(): void;
|
|
7
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
import { Options, PointClickCallbackFunction, ResponsiveOptions, SeriesOptionsType, SubtitleOptions, TitleOptions, TooltipOptions, XAxisOptions, YAxisOptions } from "highcharts";
|
|
3
|
+
import { ChartAxis, ChartSerie } from "../interfaces";
|
|
4
|
+
export declare class BaseHighChartsRender {
|
|
5
|
+
parseSerie(series: ChartSerie | Array<ChartSerie>): Array<SeriesOptionsType>;
|
|
6
|
+
parseAxis(axis: ChartAxis | Array<ChartAxis>): YAxisOptions | XAxisOptions | Array<YAxisOptions | XAxisOptions>;
|
|
7
|
+
parseTitle(title: string): TitleOptions;
|
|
8
|
+
parseSubTitle(subTtile: string): SubtitleOptions;
|
|
9
|
+
buildFormatterTooltip(series: ChartSerie | Array<ChartSerie>): TooltipOptions;
|
|
10
|
+
buildOnClickCallBack(evt: EventEmitter): PointClickCallbackFunction;
|
|
11
|
+
buildResposiveConfig(): ResponsiveOptions;
|
|
12
|
+
buildDefaultChartOptions(): Options;
|
|
13
|
+
private chartSerieToSeriesOptions;
|
|
14
|
+
private chartAxisToAxisOptions;
|
|
15
|
+
}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { DataUnit } from "@sankhyalabs/core";
|
|
2
2
|
import { EventEmitter } from "../../stencil-public-runtime";
|
|
3
|
-
import {
|
|
3
|
+
import { ICustomEditor } from "../../utils/customEditor/interfaces/ICustomEditor";
|
|
4
4
|
import { IFieldConfig, IFormConfig, IRecordValidator } from '../../utils/form/interfaces';
|
|
5
5
|
import { FormItems } from "../ez-form-view/structure";
|
|
6
|
+
import { Tab } from "../ez-tabselector/ez-tabselector";
|
|
6
7
|
export declare class EzForm {
|
|
7
8
|
private _element;
|
|
9
|
+
private _formView;
|
|
8
10
|
private _store;
|
|
9
11
|
private _staticFields;
|
|
10
12
|
private _dataBinder;
|
|
13
|
+
private _customEditors;
|
|
14
|
+
private _fieldsProps;
|
|
11
15
|
/**
|
|
12
16
|
* Unidade de dados. Responsável pelo controle de edição de registros e
|
|
13
17
|
* informações pertinentes aos campos.
|
|
@@ -25,6 +29,10 @@ export declare class EzForm {
|
|
|
25
29
|
* Determina o campo que deve ficar em evidência.
|
|
26
30
|
*/
|
|
27
31
|
fieldToFocus: string;
|
|
32
|
+
/**
|
|
33
|
+
* 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.
|
|
34
|
+
*/
|
|
35
|
+
onlyStaticFields: boolean;
|
|
28
36
|
/**
|
|
29
37
|
* Emitido quando o campo recebe foco
|
|
30
38
|
*/
|
|
@@ -45,15 +53,26 @@ export declare class EzForm {
|
|
|
45
53
|
* Realiza validação no conteúdo de todos os campos.
|
|
46
54
|
*/
|
|
47
55
|
validate(): Promise<void>;
|
|
56
|
+
/**
|
|
57
|
+
* Registra um editor customizado para campos da grade e formulário.
|
|
58
|
+
*/
|
|
59
|
+
addCustomEditor(fieldName: string, customEditor: ICustomEditor, detailContext?: string): Promise<void>;
|
|
48
60
|
observeConfig(): void;
|
|
61
|
+
/**
|
|
62
|
+
* Altera/adiciona uma propriedade nos metadados do campo.
|
|
63
|
+
*/
|
|
64
|
+
setFieldProp(fieldName: string, propName: string, value: any): Promise<void>;
|
|
49
65
|
private getDynamicContent;
|
|
50
66
|
private buildFormContent;
|
|
51
67
|
private processMetadata;
|
|
52
68
|
private isStatic;
|
|
69
|
+
private bindFields;
|
|
53
70
|
componentWillLoad(): void;
|
|
54
71
|
onDataUnitAction: (action: any) => void;
|
|
55
72
|
componentDidRender(): void;
|
|
73
|
+
private setCustomEditors;
|
|
56
74
|
private handleFieldToFocus;
|
|
75
|
+
private setFieldsProps;
|
|
57
76
|
disconnectedCallback(): void;
|
|
58
77
|
buildIdTabSelector(tabs: Array<Tab>): Array<Tab>;
|
|
59
78
|
render(): any;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { ICustomEditor } from '../../../utils/customEditor/interfaces/ICustomEditor';
|
|
2
|
+
import { IFormViewField } from '../interfaces';
|
|
3
|
+
export declare class EzCustomFormInput {
|
|
4
|
+
gui: HTMLElement;
|
|
5
|
+
/**
|
|
6
|
+
* Instância do editor customizado.
|
|
7
|
+
*/
|
|
8
|
+
customEditor: ICustomEditor;
|
|
9
|
+
/**
|
|
10
|
+
* Campo que o elemento customizado representa.
|
|
11
|
+
*/
|
|
12
|
+
formViewField: IFormViewField;
|
|
13
|
+
/**
|
|
14
|
+
* Valores dos campos do formulário.
|
|
15
|
+
*/
|
|
16
|
+
value: any;
|
|
17
|
+
/**
|
|
18
|
+
* Define de qual contexto o editor está sendo acionado.
|
|
19
|
+
*/
|
|
20
|
+
detailContext: string;
|
|
21
|
+
/**
|
|
22
|
+
* Builder original do FormView que será chamado caso o custom não retorne nenhum valor.
|
|
23
|
+
*/
|
|
24
|
+
builderFallback: (field: IFormViewField) => HTMLElement;
|
|
25
|
+
/**
|
|
26
|
+
* Aplica foco no campo.
|
|
27
|
+
*/
|
|
28
|
+
setFocus(): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* Remove o foco do campo.
|
|
31
|
+
*/
|
|
32
|
+
setBlur(): Promise<void>;
|
|
33
|
+
/**
|
|
34
|
+
* Retorna se o conteúdo é inválido.
|
|
35
|
+
*/
|
|
36
|
+
isInvalid(): Promise<boolean>;
|
|
37
|
+
private getContent;
|
|
38
|
+
private setValue;
|
|
39
|
+
private getValue;
|
|
40
|
+
private handleValue;
|
|
41
|
+
componentWillRender(): void;
|
|
42
|
+
render(): any;
|
|
43
|
+
}
|
|
@@ -2,7 +2,10 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
2
2
|
import { IFormViewField } from './interfaces/IFormViewField';
|
|
3
3
|
import { UserInterface } from '@sankhyalabs/core';
|
|
4
4
|
import { FormItems } from './structure';
|
|
5
|
+
import { ICustomEditor } from '../../utils/customEditor/interfaces/ICustomEditor';
|
|
5
6
|
export declare class EzFormView {
|
|
7
|
+
private _formElements;
|
|
8
|
+
private _customEditors;
|
|
6
9
|
_element: HTMLEzFormViewElement;
|
|
7
10
|
/**
|
|
8
11
|
* Evento emitido quando o componente foi totalmente carregado na DOM.
|
|
@@ -17,6 +20,14 @@ export declare class EzFormView {
|
|
|
17
20
|
*/
|
|
18
21
|
fields: Array<IFormViewField>;
|
|
19
22
|
showUp(): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* Registra um editor customizado para campos da grade e formulário.
|
|
25
|
+
*/
|
|
26
|
+
addCustomEditor(fieldName: string, customEditor: ICustomEditor, detailContext?: string): Promise<void>;
|
|
27
|
+
/**
|
|
28
|
+
* Altera/adiciona uma propriedade nos metados do campo.
|
|
29
|
+
*/
|
|
30
|
+
setFieldProp(fieldName: string, propName: string, value: any): Promise<void>;
|
|
20
31
|
private groupFields;
|
|
21
32
|
componentDidRender(): void;
|
|
22
33
|
isItemFullWidth(userInterface: UserInterface): boolean;
|
|
@@ -2,6 +2,9 @@ import { DataUnit, Filter } from '@sankhyalabs/core';
|
|
|
2
2
|
import { Components } from '../../../components';
|
|
3
3
|
import FilterCollumn = Components.FilterColumn;
|
|
4
4
|
import { IRecordValidator } from '../../../utils/form/interfaces';
|
|
5
|
+
import { ICustomEditorInfo } from '../../../utils/customEditor/interfaces/ICustomEditorInfo';
|
|
6
|
+
import { ICustomRenderInfo } from '../../../utils/customRender/interfaces/ICustomRenderInfo';
|
|
7
|
+
import { ICustomFormatter } from '../interfaces';
|
|
5
8
|
/**
|
|
6
9
|
* O intuito desta abstração, é isolar o componente EzGrid de uma implementação
|
|
7
10
|
* específica, permitindo que usemos componentes de terceiros sem um acoplamento
|
|
@@ -87,6 +90,10 @@ export default interface EzGridController {
|
|
|
87
90
|
* Método responsável por atualizar as linhas da grade
|
|
88
91
|
*/
|
|
89
92
|
refresh(): void;
|
|
93
|
+
/**
|
|
94
|
+
* Método responsável por atualizar as linhas selecionadas da grade
|
|
95
|
+
*/
|
|
96
|
+
refreshSelectedRows(): void;
|
|
90
97
|
/**
|
|
91
98
|
* Adiciona um filtro rápido na grid e faz o refresh.
|
|
92
99
|
*/
|
|
@@ -110,6 +117,17 @@ export default interface EzGridController {
|
|
|
110
117
|
configFilterColumn(filterColumn: FilterCollumn): any;
|
|
111
118
|
getFilter(): Array<Filter> | undefined;
|
|
112
119
|
clearFilter(): void;
|
|
120
|
+
/**
|
|
121
|
+
* Registra editores customizados no controller da grid.
|
|
122
|
+
*/
|
|
123
|
+
setCellEditors(customEditors: Map<string, ICustomEditorInfo>): void;
|
|
124
|
+
/**
|
|
125
|
+
* Registra renders customizados no controller da grid.
|
|
126
|
+
*/
|
|
127
|
+
setCellRenders(customRenders: Map<string, ICustomRenderInfo>): void;
|
|
128
|
+
clearFilter(): void;
|
|
129
|
+
setCustomFormatters(customFormatters: Map<string, ICustomFormatter>): void;
|
|
130
|
+
setFocus(): void;
|
|
113
131
|
}
|
|
114
132
|
/**
|
|
115
133
|
* Carrega as informações necessárias para contextualizar corretamente a instância.
|
|
@@ -164,6 +182,18 @@ export interface EzGridOptions {
|
|
|
164
182
|
* Desabilita edição na grade independente da configuração de coluna.
|
|
165
183
|
*/
|
|
166
184
|
editionIsDisabled?: () => boolean;
|
|
185
|
+
/**
|
|
186
|
+
* Registra editores customizados no controller da grid
|
|
187
|
+
*/
|
|
188
|
+
customEditors?: Map<string, ICustomEditorInfo>;
|
|
189
|
+
/**
|
|
190
|
+
* Registra renders customizados no controller da grid
|
|
191
|
+
*/
|
|
192
|
+
customRenders?: Map<string, ICustomRenderInfo>;
|
|
193
|
+
/**
|
|
194
|
+
* Mapa de formatadores customizados por coluna.
|
|
195
|
+
*/
|
|
196
|
+
customFormatters: Map<string, ICustomFormatter>;
|
|
167
197
|
}
|
|
168
198
|
/**
|
|
169
199
|
* Representa cada coluna da grade.
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { Sort, SortingProvider } from '@sankhyalabs/core';
|
|
2
2
|
import { Filter, FilterProvider } from '@sankhyalabs/core/dist/dataunit/metadata/UnitMetadata';
|
|
3
3
|
import EzGridController, { EzGridColumn, EzGridColumnConfig, EzGridColumnMenuItemDef, EzGridOptions } from '../EzGridController';
|
|
4
|
+
import { ICustomEditorInfo } from '../../../../utils/customEditor/interfaces/ICustomEditorInfo';
|
|
5
|
+
import { ICustomRenderInfo } from '../../../../utils/customRender/interfaces/ICustomRenderInfo';
|
|
6
|
+
import { ICustomFormatter } from '../../interfaces';
|
|
4
7
|
export default class AgGridController implements EzGridController, SortingProvider, FilterProvider {
|
|
5
8
|
private readonly DEFAULT_ROW_HEIGHT;
|
|
6
9
|
private readonly DEFAULT_HEADER_ROW_HEIGHT;
|
|
@@ -30,6 +33,10 @@ export default class AgGridController implements EzGridController, SortingProvid
|
|
|
30
33
|
private _filterColumn;
|
|
31
34
|
private _filterColumnleftPosition;
|
|
32
35
|
private _editionManager;
|
|
36
|
+
private _customEditors;
|
|
37
|
+
private _customRenders;
|
|
38
|
+
private _customFormatters;
|
|
39
|
+
private _container;
|
|
33
40
|
configFilterColumn(filterColumn: HTMLFilterColumnElement): void;
|
|
34
41
|
private handleFilteredColumnsChanged;
|
|
35
42
|
clearFilter(): void;
|
|
@@ -64,6 +71,8 @@ export default class AgGridController implements EzGridController, SortingProvid
|
|
|
64
71
|
removeRows(): void;
|
|
65
72
|
changeValues(changes: any, rowIds?: Array<string>): void;
|
|
66
73
|
refresh(): void;
|
|
74
|
+
private focusOnGridContainer;
|
|
75
|
+
setFocus(): void;
|
|
67
76
|
setFocusFirstRow(): void;
|
|
68
77
|
setFocusLastRow(): void;
|
|
69
78
|
private setFocusOnRow;
|
|
@@ -77,6 +86,8 @@ export default class AgGridController implements EzGridController, SortingProvid
|
|
|
77
86
|
setSelectedIndex(index: number): void;
|
|
78
87
|
hasFilterColumn(columnName: string): boolean;
|
|
79
88
|
private buildColDef;
|
|
89
|
+
setCustomFormatters(customFormatters: Map<string, ICustomFormatter>): void;
|
|
90
|
+
refreshSelectedRows(): void;
|
|
80
91
|
private getInitCellStyle;
|
|
81
92
|
private getStyleByColumn;
|
|
82
93
|
private getFormatterByColumn;
|
|
@@ -88,4 +99,6 @@ export default class AgGridController implements EzGridController, SortingProvid
|
|
|
88
99
|
private onRowDoubleClick;
|
|
89
100
|
private conditionalSet;
|
|
90
101
|
private getColumnWidth;
|
|
102
|
+
setCellEditors(customEditors: Map<string, ICustomEditorInfo>): void;
|
|
103
|
+
setCellRenders(customRenders: Map<string, ICustomRenderInfo>): void;
|
|
91
104
|
}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { DataUnit } from "@sankhyalabs/core";
|
|
2
2
|
import { CellPosition, ColDef, GridApi, GridOptions } from "ag-grid-community";
|
|
3
3
|
import { IRecordValidator } from "../../../../utils/form/interfaces";
|
|
4
|
+
import { ICustomEditorInfo } from "../../../../utils/customEditor/interfaces/ICustomEditorInfo";
|
|
5
|
+
import { ICustomRenderInfo } from "../../../../utils/customRender/interfaces/ICustomRenderInfo";
|
|
4
6
|
export default class GridEditionManager {
|
|
5
7
|
private _dataUnit;
|
|
6
8
|
private _lastCellClicked;
|
|
@@ -11,7 +13,9 @@ export default class GridEditionManager {
|
|
|
11
13
|
private _useEnterLikeTab;
|
|
12
14
|
private _editionIsDisabled;
|
|
13
15
|
private _isGridEdition;
|
|
14
|
-
|
|
16
|
+
private _customEditors;
|
|
17
|
+
private _customRenders;
|
|
18
|
+
constructor(dataUnit: DataUnit, useEnterLikeTab: boolean, recordsValidator: IRecordValidator, editionIsDisabled: () => boolean, customEditors?: Map<string, ICustomEditorInfo>, customRenders?: Map<string, ICustomRenderInfo>);
|
|
15
19
|
configureGrid(options: GridOptions): GridOptions;
|
|
16
20
|
proceedAutoSave(): void;
|
|
17
21
|
navigateByEnterKey(keyboardEvent: KeyboardEvent): void;
|
|
@@ -35,4 +39,6 @@ export default class GridEditionManager {
|
|
|
35
39
|
private isColEditable;
|
|
36
40
|
private isSecondClick;
|
|
37
41
|
private onCellEditRequest;
|
|
42
|
+
setCellEditors(customEditors: Map<string, ICustomEditorInfo>): void;
|
|
43
|
+
setCellRenders(customRenders: Map<string, ICustomRenderInfo>): void;
|
|
38
44
|
}
|
package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ICellEditorParams } from "ag-grid-community";
|
|
2
|
+
import { ICustomEditorInfo } from "../../../../../utils/customEditor/interfaces/ICustomEditorInfo";
|
|
3
|
+
import EzCellEditor from "../editor/EzCellEditor";
|
|
4
|
+
interface CustomParamsEditor {
|
|
5
|
+
customEditorsInfo: ICustomEditorInfo;
|
|
6
|
+
}
|
|
7
|
+
export default class EzGridCustomCellEditor extends EzCellEditor {
|
|
8
|
+
private _fieldName;
|
|
9
|
+
private _customEditorInstance;
|
|
10
|
+
private _params;
|
|
11
|
+
private _defaultGui;
|
|
12
|
+
private _value;
|
|
13
|
+
init(params: ICellEditorParams & CustomParamsEditor): void;
|
|
14
|
+
private getDefaultGui;
|
|
15
|
+
getGui(): HTMLElement;
|
|
16
|
+
private setValue;
|
|
17
|
+
getValue(): any;
|
|
18
|
+
}
|
|
19
|
+
export {};
|
package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ICellRendererParams } from "ag-grid-community";
|
|
2
|
+
import EzCellRender from "../editor/EzCellRender";
|
|
3
|
+
import { ICustomRenderInfo } from "../../../../../utils/customRender/interfaces/ICustomRenderInfo";
|
|
4
|
+
interface CustomParamsRender {
|
|
5
|
+
customRendersInfo: ICustomRenderInfo;
|
|
6
|
+
}
|
|
7
|
+
export default class EzGridCustomCellRender extends EzCellRender {
|
|
8
|
+
private _fieldName;
|
|
9
|
+
private _customRenderInstance;
|
|
10
|
+
private _params;
|
|
11
|
+
init(params: ICellRendererParams & CustomParamsRender): void;
|
|
12
|
+
getGui(): HTMLElement;
|
|
13
|
+
}
|
|
14
|
+
export {};
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { ICellEditorComp, ICellEditorParams } from "ag-grid-community";
|
|
2
|
+
import { IEditorMetadata } from "./IEditorMetadata";
|
|
2
3
|
export default class EzCellEditor implements ICellEditorComp {
|
|
3
4
|
private _gui;
|
|
5
|
+
private _fieldMetadata;
|
|
4
6
|
init(params: ICellEditorParams): void;
|
|
5
7
|
getGui(): HTMLElement;
|
|
6
8
|
afterGuiAttached(): void;
|
|
7
9
|
focusIn(): void;
|
|
8
10
|
getValue(): any;
|
|
9
11
|
isPopup(): boolean;
|
|
12
|
+
getFieldMetadata(): IEditorMetadata;
|
|
10
13
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ICellRendererComp, ICellRendererParams } from "ag-grid-community";
|
|
2
|
+
import { IEditorMetadata } from "./IEditorMetadata";
|
|
3
|
+
export default class EzCellRender implements ICellRendererComp {
|
|
4
|
+
private _gui;
|
|
5
|
+
private _fieldMetadata;
|
|
6
|
+
private _currentParams;
|
|
7
|
+
init(params: ICellRendererParams): void;
|
|
8
|
+
refresh(): boolean;
|
|
9
|
+
getGui(): HTMLElement;
|
|
10
|
+
afterGuiAttached(): void;
|
|
11
|
+
focusIn(): void;
|
|
12
|
+
getValue(): any;
|
|
13
|
+
isPopup(): boolean;
|
|
14
|
+
getFieldMetadata(): IEditorMetadata;
|
|
15
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export interface IUICellRender extends HTMLElement {
|
|
2
|
+
setFocus: (options: IFocusOptions) => void;
|
|
3
|
+
value: any;
|
|
4
|
+
valueSetter?: (value: any) => void;
|
|
5
|
+
valueGetter?: () => any;
|
|
6
|
+
isPopUp?: boolean;
|
|
7
|
+
}
|
|
8
|
+
export interface IFocusOptions {
|
|
9
|
+
selectText: boolean;
|
|
10
|
+
}
|
|
@@ -3,7 +3,9 @@ import { EventEmitter } from '../../stencil-public-runtime';
|
|
|
3
3
|
import { IRecordValidator } from '../../utils/form/interfaces';
|
|
4
4
|
import { IMultiSelectionListDataSource } from '../ez-multi-selection-list/interfaces/IMultiSelectionListDataSource';
|
|
5
5
|
import { EzGridColumStateEvent, EzGridColumn, EzGridColumnConfig, IGridConfig, IStatusResolver, StatusResolverFunction } from './controller/EzGridController';
|
|
6
|
-
import { ISelection, ISelectionToastConfig } from './interfaces';
|
|
6
|
+
import { ICustomFormatter, ISelection, ISelectionToastConfig } from './interfaces';
|
|
7
|
+
import { ICustomEditor } from '../../utils/customEditor/interfaces/ICustomEditor';
|
|
8
|
+
import { ICustomRender } from '../../utils/customRender/interfaces/ICustomRender';
|
|
7
9
|
export declare class EzGrid {
|
|
8
10
|
private _container;
|
|
9
11
|
private _refPaginationControl;
|
|
@@ -16,6 +18,8 @@ export declare class EzGrid {
|
|
|
16
18
|
private _refPaginationLabel;
|
|
17
19
|
private _refPaginationLabelTooltip;
|
|
18
20
|
private _headerOverflowWatcher;
|
|
21
|
+
private _customEditor;
|
|
22
|
+
private _customRenders;
|
|
19
23
|
_element: HTMLElement;
|
|
20
24
|
private _paginationInfo;
|
|
21
25
|
private _paginationChangedByKeyboard;
|
|
@@ -24,6 +28,7 @@ export declare class EzGrid {
|
|
|
24
28
|
private _currentPageSelected;
|
|
25
29
|
private _selectionCount;
|
|
26
30
|
private _hasLeftButtons;
|
|
31
|
+
private _customFormatters;
|
|
27
32
|
/**
|
|
28
33
|
* Emitido quando acontece a alteração de estado das colunas do grid: Ordenação, largura, etc.
|
|
29
34
|
*/
|
|
@@ -125,6 +130,34 @@ export declare class EzGrid {
|
|
|
125
130
|
* Usa um argumento para filtrar as colunas po label
|
|
126
131
|
*/
|
|
127
132
|
filterColumns(search: string): Promise<Array<EzGridColumn>>;
|
|
133
|
+
/**
|
|
134
|
+
* Registra um editor customizado para campos da grade e formulário.
|
|
135
|
+
*/
|
|
136
|
+
addCustomEditor(fieldName: string, customEditor: ICustomEditor, detailContext?: string): Promise<void>;
|
|
137
|
+
/**
|
|
138
|
+
* Registra um render customizado para colunas da grid.
|
|
139
|
+
*/
|
|
140
|
+
addGridCustomRender(fieldName: string, customRender: ICustomRender, detailContext?: string): Promise<void>;
|
|
141
|
+
/**
|
|
142
|
+
* Registra um formatador de valores para uma coluna da grid.
|
|
143
|
+
*/
|
|
144
|
+
addCustomValueFormatter(columnName: string, customFormatter: ICustomFormatter): Promise<void>;
|
|
145
|
+
/**
|
|
146
|
+
* Remove o formatador de valores de uma coluna da grid.
|
|
147
|
+
*/
|
|
148
|
+
removeCustomValueFormatter(columnName: string): Promise<void>;
|
|
149
|
+
/**
|
|
150
|
+
* Atualiza linhas da grade.
|
|
151
|
+
*/
|
|
152
|
+
refreshSelectedRows(): Promise<void>;
|
|
153
|
+
/**
|
|
154
|
+
* Retorna o formatador customizado da coluna caso exista.
|
|
155
|
+
*/
|
|
156
|
+
getCustomValueFormatter(columnName: string): Promise<ICustomFormatter | undefined>;
|
|
157
|
+
/**
|
|
158
|
+
* Atribui o foco para a grade.
|
|
159
|
+
*/
|
|
160
|
+
setFocus(): Promise<void>;
|
|
128
161
|
observeConfig(config: IGridConfig): void;
|
|
129
162
|
updatePaginationTooltip(): void;
|
|
130
163
|
onSelectionChange(evt: CustomEvent): void;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function enableSelectAll(total: any): boolean;
|
|
2
|
+
export declare function buildSelectAllLabel(allRecordSelected: any, count: any, total: any): string;
|
|
3
|
+
export declare function buildSelectAllTitle(total: any): string;
|
|
4
|
+
export declare function getText(selectionCount: number, allSelectedRecords: boolean): string;
|
|
@@ -35,6 +35,7 @@ export declare class EzModal {
|
|
|
35
35
|
* Define o tipo de scrim a ser aplicado no overlay do modal
|
|
36
36
|
*/
|
|
37
37
|
scrim: "medium" | "light";
|
|
38
|
+
private _element;
|
|
38
39
|
/**
|
|
39
40
|
* Emitido quando o modal é fechado.
|
|
40
41
|
*/
|
|
@@ -43,8 +44,15 @@ export declare class EzModal {
|
|
|
43
44
|
* Emitido quando o modal é aberto.
|
|
44
45
|
*/
|
|
45
46
|
ezOpenModal: EventEmitter;
|
|
47
|
+
/**
|
|
48
|
+
* Representa a interação com o usuário.
|
|
49
|
+
* OK - Quando o botão é acionado
|
|
50
|
+
* CANCEL - Quando o botão de cancelar é acionado
|
|
51
|
+
* CLOSE - Quando o botão de fechar é acionado.
|
|
52
|
+
* LOAD - Quando o modal é carregado (eventualmente pode ser usado para dar foco a um elemento específico)
|
|
53
|
+
*/
|
|
54
|
+
ezModalAction: EventEmitter<string>;
|
|
46
55
|
observeOpened(): void;
|
|
47
|
-
handleKeyboardEvent: (ev: any) => void;
|
|
48
56
|
closeModal(): void;
|
|
49
57
|
componentDidLoad(): void;
|
|
50
58
|
componentDidRender(): void;
|