@sankhyalabs/ezui 5.21.4 → 5.22.0-dev.10
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/ICustomRender-6fafffce.js +13 -0
- package/dist/cjs/ez-actions-button.cjs.entry.js +1 -0
- package/dist/cjs/ez-chart.cjs.entry.js +435 -0
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -0
- package/dist/cjs/ez-combo-box.cjs.entry.js +1 -0
- package/dist/cjs/{ez-text-edit.cjs.entry.js → ez-custom-form-input_2.cjs.entry.js} +99 -0
- package/dist/cjs/ez-form-view.cjs.entry.js +37 -5
- package/dist/cjs/ez-form.cjs.entry.js +81 -2
- package/dist/cjs/ez-grid.cjs.entry.js +312 -40
- package/dist/cjs/ez-list.cjs.entry.js +10 -2
- package/dist/cjs/ez-modal-container.cjs.entry.js +2 -1
- package/dist/cjs/ez-modal.cjs.entry.js +7 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +37 -31
- package/dist/cjs/ez-scroller_2.cjs.entry.js +222 -0
- package/dist/cjs/ez-search.cjs.entry.js +40 -33
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +92 -0
- package/dist/cjs/ez-split-item.cjs.entry.js +1 -0
- package/dist/cjs/ez-tabselector.cjs.entry.js +8 -2
- package/dist/cjs/{ez-scroller_3.cjs.entry.js → ez-tree.cjs.entry.js} +0 -215
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/index-a7b0c73d.js +16 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +3 -0
- 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 +286 -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 +278 -0
- package/dist/collection/components/ez-form-view/ez-form-view.js +110 -1
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +3 -2
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +3 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +51 -22
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +6 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +36 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +59 -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 +10 -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/controller/ag-grid/test/constants/GridEditionMock.js +40 -0
- package/dist/collection/components/ez-grid/ez-grid.js +235 -12
- 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/test/resources/gridDataUnit.js +19 -0
- package/dist/collection/components/ez-list/ez-list.js +28 -2
- package/dist/collection/components/ez-modal/ez-modal.js +25 -1
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +20 -1
- package/dist/collection/components/ez-number-input/ez-number-input.js +46 -31
- package/dist/collection/components/ez-search/ez-search.js +39 -33
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +6 -2
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
- package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +180 -0
- package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.js +293 -0
- package/dist/collection/components/ez-sidebar-navigator/interfaces/ModeMenuEnum.js +5 -0
- package/dist/collection/components/ez-sidebar-navigator/interfaces/SizeMenuEnum.js +6 -0
- package/dist/collection/components/ez-sidebar-navigator/interfaces/TypeMenuEnum.js +6 -0
- package/dist/collection/components/ez-sidebar-navigator/interfaces/index.js +3 -0
- package/dist/collection/components/ez-sidebar-navigator/messages/constants.js +5 -0
- package/dist/collection/components/ez-tabselector/ez-tabselector.js +34 -2
- 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 +31 -1
- 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 +18 -0
- package/dist/custom-elements/index.js +1173 -127
- package/dist/esm/ICustomRender-875b5a40.js +13 -0
- package/dist/esm/ez-actions-button.entry.js +1 -0
- package/dist/esm/ez-chart.entry.js +431 -0
- package/dist/esm/ez-collapsible-box.entry.js +1 -0
- package/dist/esm/ez-combo-box.entry.js +1 -0
- package/dist/esm/{ez-text-edit.entry.js → ez-custom-form-input_2.entry.js} +101 -3
- package/dist/esm/ez-form-view.entry.js +37 -5
- package/dist/esm/ez-form.entry.js +82 -3
- package/dist/esm/ez-grid.entry.js +312 -40
- package/dist/esm/ez-list.entry.js +10 -2
- package/dist/esm/ez-modal-container.entry.js +2 -1
- package/dist/esm/ez-modal.entry.js +7 -1
- package/dist/esm/ez-number-input.entry.js +38 -32
- package/dist/esm/ez-scroller_2.entry.js +217 -0
- package/dist/esm/ez-search.entry.js +40 -33
- package/dist/esm/ez-sidebar-navigator.entry.js +88 -0
- package/dist/esm/ez-split-item.entry.js +1 -0
- package/dist/esm/ez-tabselector.entry.js +8 -2
- package/dist/esm/{ez-scroller_3.entry.js → ez-tree.entry.js} +3 -216
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/index-baa5e267.js +16 -4
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-2097d0cf.entry.js +1 -0
- package/dist/ezui/{p-9fbb0f01.entry.js → p-32e553e5.entry.js} +2 -2
- package/dist/ezui/p-34b6916c.entry.js +1 -0
- package/dist/ezui/p-3b4eeeb6.entry.js +1 -0
- package/dist/ezui/p-42533ea4.entry.js +1 -0
- package/dist/ezui/p-4607fb89.js +1 -0
- package/dist/ezui/p-4d5235f1.entry.js +1 -0
- package/dist/ezui/p-5b205c80.entry.js +1 -0
- package/dist/ezui/p-7922142b.entry.js +1 -0
- package/dist/ezui/p-84e439b9.entry.js +1 -0
- package/dist/ezui/p-8888d9ed.entry.js +1 -0
- package/dist/ezui/p-922ac38b.entry.js +1 -0
- package/dist/ezui/p-a31b9c90.entry.js +1 -0
- package/dist/ezui/p-aba3da00.entry.js +1 -0
- package/dist/ezui/p-bcb53f27.entry.js +1 -0
- package/dist/ezui/p-c0d9c4f8.entry.js +1 -0
- package/dist/ezui/p-cdc472cc.entry.js +1 -0
- package/dist/ezui/p-ecc2c1ec.entry.js +1 -0
- package/dist/ezui/p-fcf0acce.entry.js +1 -0
- 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 +48 -0
- package/dist/types/components/ez-form-view/ez-form-view.d.ts +16 -1
- package/dist/types/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +37 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +13 -4
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +1 -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 +6 -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/controller/ag-grid/test/constants/GridEditionMock.d.ts +6 -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/test/resources/gridDataUnit.d.ts +2 -0
- package/dist/types/components/ez-list/ez-list.d.ts +5 -0
- package/dist/types/components/ez-modal/ez-modal.d.ts +5 -0
- package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +4 -0
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +3 -0
- package/dist/types/components/ez-search/ez-search.d.ts +4 -2
- package/dist/types/components/ez-sidebar-navigator/ez-sidebar-navigator.d.ts +57 -0
- package/dist/types/components/ez-sidebar-navigator/interfaces/ModeMenuEnum.d.ts +4 -0
- package/dist/types/components/ez-sidebar-navigator/interfaces/SizeMenuEnum.d.ts +5 -0
- package/dist/types/components/ez-sidebar-navigator/interfaces/TypeMenuEnum.d.ts +5 -0
- package/dist/types/components/ez-sidebar-navigator/interfaces/index.d.ts +3 -0
- package/dist/types/components/ez-sidebar-navigator/messages/constants.d.ts +5 -0
- package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +2 -1
- package/dist/types/components.d.ts +351 -5
- package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +31 -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 +5 -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 +3 -0
- package/react/components.js +3 -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-2dcb50d4.entry.js +0 -1
- package/dist/ezui/p-30775e7f.entry.js +0 -1
- package/dist/ezui/p-41ac6cd9.entry.js +0 -1
- package/dist/ezui/p-637f69f2.entry.js +0 -1
- package/dist/ezui/p-786559c5.entry.js +0 -1
- package/dist/ezui/p-91f626d3.entry.js +0 -1
- package/dist/ezui/p-99ead599.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-db77a984.entry.js +0 -1
- package/dist/ezui/p-f3c526cc.entry.js +0 -1
|
@@ -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";
|
|
16
|
-
import {
|
|
18
|
+
import { ICustomEditor } from "./utils/customEditor/interfaces/ICustomEditor";
|
|
19
|
+
import { IFormViewField } from "./components/ez-form-view/interfaces";
|
|
20
|
+
import { DataUnit, Record, 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";
|
|
@@ -32,6 +37,7 @@ import { Radio } from "./components/ez-radio-button/ez-radio-button";
|
|
|
32
37
|
import { EzScrollDirection } from "./components/ez-scroller/EzScrollDirection";
|
|
33
38
|
import { IOption as IOption1, ISearchArgument as ISearchArgument1 } from "./components/ez-search/ez-search";
|
|
34
39
|
import { IEzCheckBoxListPosition as IEzCheckBoxListPosition1 } from "./components/ez-combo-box/ez-combo-box";
|
|
40
|
+
import { ModeMenuEnum, SizeMenuEnum, TypeMenuEnum } from "./components/ez-sidebar-navigator/interfaces";
|
|
35
41
|
import { Tab } from "./components/ez-tabselector/ez-tabselector";
|
|
36
42
|
import { IStyled } from "./components/ez-text-edit/ez-text-edit";
|
|
37
43
|
import { TFocusOptions as TFocusOptions1 } from "./components/ez-text-input/ez-text-input";
|
|
@@ -242,6 +248,44 @@ export namespace Components {
|
|
|
242
248
|
*/
|
|
243
249
|
"item": CardItem;
|
|
244
250
|
}
|
|
251
|
+
interface EzChart {
|
|
252
|
+
/**
|
|
253
|
+
* Define o sub titulo a ser apresentado no gráfico
|
|
254
|
+
*/
|
|
255
|
+
"chartSubTitle": string;
|
|
256
|
+
/**
|
|
257
|
+
* Define o titulo a ser apresentado no gráfico
|
|
258
|
+
*/
|
|
259
|
+
"chartTitle": string;
|
|
260
|
+
/**
|
|
261
|
+
* Define a altura do gráfico
|
|
262
|
+
*/
|
|
263
|
+
"height": number;
|
|
264
|
+
/**
|
|
265
|
+
* Define se a legenda do gráfico deve ser apresentada ou não.
|
|
266
|
+
*/
|
|
267
|
+
"legendEnabled": boolean;
|
|
268
|
+
/**
|
|
269
|
+
* Define as series a serem apresentadas no gráfico
|
|
270
|
+
*/
|
|
271
|
+
"series": ChartSerie | Array<ChartSerie>;
|
|
272
|
+
/**
|
|
273
|
+
* Define o tipo de gráfico apresentado pelo componente
|
|
274
|
+
*/
|
|
275
|
+
"type": ChartType;
|
|
276
|
+
/**
|
|
277
|
+
* Define uma largura do gráfico
|
|
278
|
+
*/
|
|
279
|
+
"width": number;
|
|
280
|
+
/**
|
|
281
|
+
* Definições do eixo X do gráfico
|
|
282
|
+
*/
|
|
283
|
+
"xAxis": ChartAxis | Array<ChartAxis>;
|
|
284
|
+
/**
|
|
285
|
+
* Definições do eixo Y do gráfico
|
|
286
|
+
*/
|
|
287
|
+
"yAxis": ChartAxis | Array<ChartAxis>;
|
|
288
|
+
}
|
|
245
289
|
interface EzCheck {
|
|
246
290
|
/**
|
|
247
291
|
* Define o modo compacto com espaçamento menor entre label e o input
|
|
@@ -447,6 +491,44 @@ export namespace Components {
|
|
|
447
491
|
*/
|
|
448
492
|
"value": IOption | string;
|
|
449
493
|
}
|
|
494
|
+
interface EzCustomFormInput {
|
|
495
|
+
/**
|
|
496
|
+
* Builder original do FormView que será chamado caso o custom não retorne nenhum valor.
|
|
497
|
+
*/
|
|
498
|
+
"builderFallback": (field: IFormViewField) => HTMLElement;
|
|
499
|
+
/**
|
|
500
|
+
* Instância do editor customizado.
|
|
501
|
+
*/
|
|
502
|
+
"customEditor": ICustomEditor;
|
|
503
|
+
/**
|
|
504
|
+
* Define de qual contexto o editor está sendo acionado.
|
|
505
|
+
*/
|
|
506
|
+
"detailContext": string;
|
|
507
|
+
/**
|
|
508
|
+
* Campo que o elemento customizado representa.
|
|
509
|
+
*/
|
|
510
|
+
"formViewField": IFormViewField;
|
|
511
|
+
/**
|
|
512
|
+
* Retorna se o conteúdo é inválido.
|
|
513
|
+
*/
|
|
514
|
+
"isInvalid": () => Promise<boolean>;
|
|
515
|
+
/**
|
|
516
|
+
* Define os registros da linha selecionada.
|
|
517
|
+
*/
|
|
518
|
+
"selectedRecord": Record;
|
|
519
|
+
/**
|
|
520
|
+
* Remove o foco do campo.
|
|
521
|
+
*/
|
|
522
|
+
"setBlur": () => Promise<void>;
|
|
523
|
+
/**
|
|
524
|
+
* Aplica foco no campo.
|
|
525
|
+
*/
|
|
526
|
+
"setFocus": () => Promise<void>;
|
|
527
|
+
/**
|
|
528
|
+
* Valores dos campos do formulário.
|
|
529
|
+
*/
|
|
530
|
+
"value": any;
|
|
531
|
+
}
|
|
450
532
|
interface EzDateInput {
|
|
451
533
|
/**
|
|
452
534
|
* Se false deixa de exibir a mensagem de erro dentro do campo.
|
|
@@ -654,6 +736,10 @@ export namespace Components {
|
|
|
654
736
|
"value": string;
|
|
655
737
|
}
|
|
656
738
|
interface EzForm {
|
|
739
|
+
/**
|
|
740
|
+
* Registra um editor customizado para campos da grade e formulário.
|
|
741
|
+
*/
|
|
742
|
+
"addCustomEditor": (fieldName: string, customEditor: ICustomEditor, detailContext?: string) => Promise<void>;
|
|
657
743
|
/**
|
|
658
744
|
* Configuração do formulário.
|
|
659
745
|
*/
|
|
@@ -666,20 +752,40 @@ export namespace Components {
|
|
|
666
752
|
* Determina o campo que deve ficar em evidência.
|
|
667
753
|
*/
|
|
668
754
|
"fieldToFocus": string;
|
|
755
|
+
/**
|
|
756
|
+
* 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.
|
|
757
|
+
*/
|
|
758
|
+
"onlyStaticFields": boolean;
|
|
669
759
|
/**
|
|
670
760
|
* Define um validador responsável pela integridade dos registros.
|
|
671
761
|
*/
|
|
672
762
|
"recordsValidator": IRecordValidator;
|
|
763
|
+
/**
|
|
764
|
+
* Altera/adiciona uma propriedade nos metadados do campo.
|
|
765
|
+
*/
|
|
766
|
+
"setFieldProp": (fieldName: string, propName: string, value: any) => Promise<void>;
|
|
673
767
|
/**
|
|
674
768
|
* Realiza validação no conteúdo de todos os campos.
|
|
675
769
|
*/
|
|
676
770
|
"validate": () => Promise<void>;
|
|
677
771
|
}
|
|
678
772
|
interface EzFormView {
|
|
773
|
+
/**
|
|
774
|
+
* Registra um editor customizado para campos da grade e formulário.
|
|
775
|
+
*/
|
|
776
|
+
"addCustomEditor": (fieldName: string, customEditor: ICustomEditor, detailContext?: string) => Promise<void>;
|
|
679
777
|
/**
|
|
680
778
|
* Define a lista de metadados usada para criar os campos de user interface.
|
|
681
779
|
*/
|
|
682
|
-
"fields": Array<
|
|
780
|
+
"fields": Array<IFormViewField1>;
|
|
781
|
+
/**
|
|
782
|
+
* Define os registros da linha selecionada.
|
|
783
|
+
*/
|
|
784
|
+
"selectedRecord": Record;
|
|
785
|
+
/**
|
|
786
|
+
* Altera/adiciona uma propriedade nos metados do campo.
|
|
787
|
+
*/
|
|
788
|
+
"setFieldProp": (fieldName: string, propName: string, value: any) => Promise<void>;
|
|
683
789
|
"showUp": () => Promise<void>;
|
|
684
790
|
}
|
|
685
791
|
interface EzGrid {
|
|
@@ -687,6 +793,22 @@ export namespace Components {
|
|
|
687
793
|
* Adiciona item de menu nas colunas.
|
|
688
794
|
*/
|
|
689
795
|
"addColumnMenuItem": (label: string, name: string, action: Function, icon: HTMLElement | string) => Promise<void>;
|
|
796
|
+
/**
|
|
797
|
+
* Registra um editor customizado para campos da grade e formulário.
|
|
798
|
+
*/
|
|
799
|
+
"addCustomEditor": (fieldName: string, customEditor: ICustomEditor, detailContext?: string) => Promise<void>;
|
|
800
|
+
/**
|
|
801
|
+
* Registra um formatador de valores para uma coluna da grid.
|
|
802
|
+
*/
|
|
803
|
+
"addCustomValueFormatter": (columnName: string, customFormatter: ICustomFormatter) => Promise<void>;
|
|
804
|
+
/**
|
|
805
|
+
* Registra um render customizado para colunas da grid.
|
|
806
|
+
*/
|
|
807
|
+
"addGridCustomRender": (fieldName: string, customRender: ICustomRender, detailContext?: string) => Promise<void>;
|
|
808
|
+
/**
|
|
809
|
+
* Define se a grid será focada ao ser carregada.
|
|
810
|
+
*/
|
|
811
|
+
"autoFocus"?: boolean;
|
|
690
812
|
/**
|
|
691
813
|
* Define se a edição está habilitada na grid.
|
|
692
814
|
*/
|
|
@@ -715,6 +837,10 @@ export namespace Components {
|
|
|
715
837
|
* Obtém o estado atual das colunas.
|
|
716
838
|
*/
|
|
717
839
|
"getColumnsState": () => Promise<Array<EzGridColumn>>;
|
|
840
|
+
/**
|
|
841
|
+
* Retorna o formatador customizado da coluna caso exista.
|
|
842
|
+
*/
|
|
843
|
+
"getCustomValueFormatter": (columnName: string) => Promise<ICustomFormatter | undefined>;
|
|
718
844
|
/**
|
|
719
845
|
* Obtém as linhas selecionadas.
|
|
720
846
|
*/
|
|
@@ -735,6 +861,14 @@ export namespace Components {
|
|
|
735
861
|
* Define um validador responsável pela integridade dos registros.
|
|
736
862
|
*/
|
|
737
863
|
"recordsValidator": IRecordValidator;
|
|
864
|
+
/**
|
|
865
|
+
* Atualiza linhas da grade.
|
|
866
|
+
*/
|
|
867
|
+
"refreshSelectedRows": () => Promise<void>;
|
|
868
|
+
/**
|
|
869
|
+
* Remove o formatador de valores de uma coluna da grid.
|
|
870
|
+
*/
|
|
871
|
+
"removeCustomValueFormatter": (columnName: string) => Promise<void>;
|
|
738
872
|
/**
|
|
739
873
|
* Configuração da seleção de grade no toast.
|
|
740
874
|
*/
|
|
@@ -915,6 +1049,10 @@ export namespace Components {
|
|
|
915
1049
|
* Define se o modal será fechado ao clicar fora do conteúdo.
|
|
916
1050
|
*/
|
|
917
1051
|
"closeOutsideClick": boolean;
|
|
1052
|
+
/**
|
|
1053
|
+
* Define se o modal será fechado se o mouse sair para fora do conteúdo.
|
|
1054
|
+
*/
|
|
1055
|
+
"closeOutsideLeave"?: boolean;
|
|
918
1056
|
/**
|
|
919
1057
|
* Ativa o modo Full, permitindo que o Modal expanda-se verticalmente e ocupe todo o espaço disponível.
|
|
920
1058
|
*/
|
|
@@ -957,6 +1095,10 @@ export namespace Components {
|
|
|
957
1095
|
* Define o estado do botão de confirmação.
|
|
958
1096
|
*/
|
|
959
1097
|
"okButtonStatus": "HIDDEN"|"ENABLED"|"DISABLED";
|
|
1098
|
+
/**
|
|
1099
|
+
* Define a visibilidade do botão de fechar.
|
|
1100
|
+
*/
|
|
1101
|
+
"showCloseButton"?: boolean;
|
|
960
1102
|
/**
|
|
961
1103
|
* Define se o cabeçalho será mostrado.
|
|
962
1104
|
*/
|
|
@@ -1217,6 +1359,48 @@ export namespace Components {
|
|
|
1217
1359
|
}
|
|
1218
1360
|
interface EzSidebarButton {
|
|
1219
1361
|
}
|
|
1362
|
+
interface EzSidebarNavigator {
|
|
1363
|
+
/**
|
|
1364
|
+
* Método para fixar/desafixar o menu, emitindo o evento ezChangeMode.
|
|
1365
|
+
*/
|
|
1366
|
+
"changeModeMenu": () => Promise<void>;
|
|
1367
|
+
/**
|
|
1368
|
+
* Método para fechar o menu automaticamente após uma ação, fluxo, etc.
|
|
1369
|
+
*/
|
|
1370
|
+
"closeSidebar": () => Promise<void>;
|
|
1371
|
+
/**
|
|
1372
|
+
* Define se terá responsividade, Controle deverá ser pelo CSS.
|
|
1373
|
+
*/
|
|
1374
|
+
"isResponsive": boolean;
|
|
1375
|
+
/**
|
|
1376
|
+
* Define se o menu será do tipo FIXED ou FLOAT.
|
|
1377
|
+
*/
|
|
1378
|
+
"mode": ModeMenuEnum;
|
|
1379
|
+
/**
|
|
1380
|
+
* Método para abrir o menu automaticamente após uma ação, fluxo, etc.
|
|
1381
|
+
*/
|
|
1382
|
+
"openSidebar": () => Promise<void>;
|
|
1383
|
+
/**
|
|
1384
|
+
* Define se o botão de "Recolher Menu" será exibido
|
|
1385
|
+
*/
|
|
1386
|
+
"showCollapseMenu": boolean;
|
|
1387
|
+
/**
|
|
1388
|
+
* Define se o botão de "Fixar Menu" será exibido
|
|
1389
|
+
*/
|
|
1390
|
+
"showFixedButton": boolean;
|
|
1391
|
+
/**
|
|
1392
|
+
* Define o tamanho do menu (small, medium, large).
|
|
1393
|
+
*/
|
|
1394
|
+
"size": SizeMenuEnum;
|
|
1395
|
+
/**
|
|
1396
|
+
* Define o título do Sidebar Navigator
|
|
1397
|
+
*/
|
|
1398
|
+
"titleMenu": string;
|
|
1399
|
+
/**
|
|
1400
|
+
* Define o tipo do menu (float, fixed ou dynamic (livre)).
|
|
1401
|
+
*/
|
|
1402
|
+
"type": TypeMenuEnum;
|
|
1403
|
+
}
|
|
1220
1404
|
interface EzSkeleton {
|
|
1221
1405
|
/**
|
|
1222
1406
|
* Animation type
|
|
@@ -1328,6 +1512,7 @@ export namespace Components {
|
|
|
1328
1512
|
"rebuildLayout": () => Promise<void>;
|
|
1329
1513
|
}
|
|
1330
1514
|
interface EzTabselector {
|
|
1515
|
+
"goToTab": (tabIndex: number, silent?: boolean) => Promise<void>;
|
|
1331
1516
|
/**
|
|
1332
1517
|
* Define o index da aba selecionada.
|
|
1333
1518
|
*/
|
|
@@ -1687,6 +1872,10 @@ export interface EzCardItemCustomEvent<T> extends CustomEvent<T> {
|
|
|
1687
1872
|
detail: T;
|
|
1688
1873
|
target: HTMLEzCardItemElement;
|
|
1689
1874
|
}
|
|
1875
|
+
export interface EzChartCustomEvent<T> extends CustomEvent<T> {
|
|
1876
|
+
detail: T;
|
|
1877
|
+
target: HTMLEzChartElement;
|
|
1878
|
+
}
|
|
1690
1879
|
export interface EzCheckCustomEvent<T> extends CustomEvent<T> {
|
|
1691
1880
|
detail: T;
|
|
1692
1881
|
target: HTMLEzCheckElement;
|
|
@@ -1783,6 +1972,10 @@ export interface EzSidebarButtonCustomEvent<T> extends CustomEvent<T> {
|
|
|
1783
1972
|
detail: T;
|
|
1784
1973
|
target: HTMLEzSidebarButtonElement;
|
|
1785
1974
|
}
|
|
1975
|
+
export interface EzSidebarNavigatorCustomEvent<T> extends CustomEvent<T> {
|
|
1976
|
+
detail: T;
|
|
1977
|
+
target: HTMLEzSidebarNavigatorElement;
|
|
1978
|
+
}
|
|
1786
1979
|
export interface EzSplitButtonCustomEvent<T> extends CustomEvent<T> {
|
|
1787
1980
|
detail: T;
|
|
1788
1981
|
target: HTMLEzSplitButtonElement;
|
|
@@ -1874,6 +2067,12 @@ declare global {
|
|
|
1874
2067
|
prototype: HTMLEzCardItemElement;
|
|
1875
2068
|
new (): HTMLEzCardItemElement;
|
|
1876
2069
|
};
|
|
2070
|
+
interface HTMLEzChartElement extends Components.EzChart, HTMLStencilElement {
|
|
2071
|
+
}
|
|
2072
|
+
var HTMLEzChartElement: {
|
|
2073
|
+
prototype: HTMLEzChartElement;
|
|
2074
|
+
new (): HTMLEzChartElement;
|
|
2075
|
+
};
|
|
1877
2076
|
interface HTMLEzCheckElement extends Components.EzCheck, HTMLStencilElement {
|
|
1878
2077
|
}
|
|
1879
2078
|
var HTMLEzCheckElement: {
|
|
@@ -1898,6 +2097,12 @@ declare global {
|
|
|
1898
2097
|
prototype: HTMLEzComboBoxElement;
|
|
1899
2098
|
new (): HTMLEzComboBoxElement;
|
|
1900
2099
|
};
|
|
2100
|
+
interface HTMLEzCustomFormInputElement extends Components.EzCustomFormInput, HTMLStencilElement {
|
|
2101
|
+
}
|
|
2102
|
+
var HTMLEzCustomFormInputElement: {
|
|
2103
|
+
prototype: HTMLEzCustomFormInputElement;
|
|
2104
|
+
new (): HTMLEzCustomFormInputElement;
|
|
2105
|
+
};
|
|
1901
2106
|
interface HTMLEzDateInputElement extends Components.EzDateInput, HTMLStencilElement {
|
|
1902
2107
|
}
|
|
1903
2108
|
var HTMLEzDateInputElement: {
|
|
@@ -2036,6 +2241,12 @@ declare global {
|
|
|
2036
2241
|
prototype: HTMLEzSidebarButtonElement;
|
|
2037
2242
|
new (): HTMLEzSidebarButtonElement;
|
|
2038
2243
|
};
|
|
2244
|
+
interface HTMLEzSidebarNavigatorElement extends Components.EzSidebarNavigator, HTMLStencilElement {
|
|
2245
|
+
}
|
|
2246
|
+
var HTMLEzSidebarNavigatorElement: {
|
|
2247
|
+
prototype: HTMLEzSidebarNavigatorElement;
|
|
2248
|
+
new (): HTMLEzSidebarNavigatorElement;
|
|
2249
|
+
};
|
|
2039
2250
|
interface HTMLEzSkeletonElement extends Components.EzSkeleton, HTMLStencilElement {
|
|
2040
2251
|
}
|
|
2041
2252
|
var HTMLEzSkeletonElement: {
|
|
@@ -2136,10 +2347,12 @@ declare global {
|
|
|
2136
2347
|
"ez-button": HTMLEzButtonElement;
|
|
2137
2348
|
"ez-calendar": HTMLEzCalendarElement;
|
|
2138
2349
|
"ez-card-item": HTMLEzCardItemElement;
|
|
2350
|
+
"ez-chart": HTMLEzChartElement;
|
|
2139
2351
|
"ez-check": HTMLEzCheckElement;
|
|
2140
2352
|
"ez-chip": HTMLEzChipElement;
|
|
2141
2353
|
"ez-collapsible-box": HTMLEzCollapsibleBoxElement;
|
|
2142
2354
|
"ez-combo-box": HTMLEzComboBoxElement;
|
|
2355
|
+
"ez-custom-form-input": HTMLEzCustomFormInputElement;
|
|
2143
2356
|
"ez-date-input": HTMLEzDateInputElement;
|
|
2144
2357
|
"ez-date-time-input": HTMLEzDateTimeInputElement;
|
|
2145
2358
|
"ez-dialog": HTMLEzDialogElement;
|
|
@@ -2163,6 +2376,7 @@ declare global {
|
|
|
2163
2376
|
"ez-scroller": HTMLEzScrollerElement;
|
|
2164
2377
|
"ez-search": HTMLEzSearchElement;
|
|
2165
2378
|
"ez-sidebar-button": HTMLEzSidebarButtonElement;
|
|
2379
|
+
"ez-sidebar-navigator": HTMLEzSidebarNavigatorElement;
|
|
2166
2380
|
"ez-skeleton": HTMLEzSkeletonElement;
|
|
2167
2381
|
"ez-split-button": HTMLEzSplitButtonElement;
|
|
2168
2382
|
"ez-split-item": HTMLEzSplitItemElement;
|
|
@@ -2375,6 +2589,48 @@ declare namespace LocalJSX {
|
|
|
2375
2589
|
*/
|
|
2376
2590
|
"onEzClick"?: (event: EzCardItemCustomEvent<CardItem>) => void;
|
|
2377
2591
|
}
|
|
2592
|
+
interface EzChart {
|
|
2593
|
+
/**
|
|
2594
|
+
* Define o sub titulo a ser apresentado no gráfico
|
|
2595
|
+
*/
|
|
2596
|
+
"chartSubTitle"?: string;
|
|
2597
|
+
/**
|
|
2598
|
+
* Define o titulo a ser apresentado no gráfico
|
|
2599
|
+
*/
|
|
2600
|
+
"chartTitle"?: string;
|
|
2601
|
+
/**
|
|
2602
|
+
* Define a altura do gráfico
|
|
2603
|
+
*/
|
|
2604
|
+
"height"?: number;
|
|
2605
|
+
/**
|
|
2606
|
+
* Define se a legenda do gráfico deve ser apresentada ou não.
|
|
2607
|
+
*/
|
|
2608
|
+
"legendEnabled"?: boolean;
|
|
2609
|
+
/**
|
|
2610
|
+
* Evento emitido quando ocorre um click em uma serie do gráfico
|
|
2611
|
+
*/
|
|
2612
|
+
"onEzSerieClick"?: (event: EzChartCustomEvent<SerieClickEvent>) => void;
|
|
2613
|
+
/**
|
|
2614
|
+
* Define as series a serem apresentadas no gráfico
|
|
2615
|
+
*/
|
|
2616
|
+
"series"?: ChartSerie | Array<ChartSerie>;
|
|
2617
|
+
/**
|
|
2618
|
+
* Define o tipo de gráfico apresentado pelo componente
|
|
2619
|
+
*/
|
|
2620
|
+
"type"?: ChartType;
|
|
2621
|
+
/**
|
|
2622
|
+
* Define uma largura do gráfico
|
|
2623
|
+
*/
|
|
2624
|
+
"width"?: number;
|
|
2625
|
+
/**
|
|
2626
|
+
* Definições do eixo X do gráfico
|
|
2627
|
+
*/
|
|
2628
|
+
"xAxis"?: ChartAxis | Array<ChartAxis>;
|
|
2629
|
+
/**
|
|
2630
|
+
* Definições do eixo Y do gráfico
|
|
2631
|
+
*/
|
|
2632
|
+
"yAxis"?: ChartAxis | Array<ChartAxis>;
|
|
2633
|
+
}
|
|
2378
2634
|
interface EzCheck {
|
|
2379
2635
|
/**
|
|
2380
2636
|
* Define o modo compacto com espaçamento menor entre label e o input
|
|
@@ -2571,6 +2827,32 @@ declare namespace LocalJSX {
|
|
|
2571
2827
|
*/
|
|
2572
2828
|
"value"?: IOption | string;
|
|
2573
2829
|
}
|
|
2830
|
+
interface EzCustomFormInput {
|
|
2831
|
+
/**
|
|
2832
|
+
* Builder original do FormView que será chamado caso o custom não retorne nenhum valor.
|
|
2833
|
+
*/
|
|
2834
|
+
"builderFallback"?: (field: IFormViewField) => HTMLElement;
|
|
2835
|
+
/**
|
|
2836
|
+
* Instância do editor customizado.
|
|
2837
|
+
*/
|
|
2838
|
+
"customEditor"?: ICustomEditor;
|
|
2839
|
+
/**
|
|
2840
|
+
* Define de qual contexto o editor está sendo acionado.
|
|
2841
|
+
*/
|
|
2842
|
+
"detailContext"?: string;
|
|
2843
|
+
/**
|
|
2844
|
+
* Campo que o elemento customizado representa.
|
|
2845
|
+
*/
|
|
2846
|
+
"formViewField"?: IFormViewField;
|
|
2847
|
+
/**
|
|
2848
|
+
* Define os registros da linha selecionada.
|
|
2849
|
+
*/
|
|
2850
|
+
"selectedRecord"?: Record;
|
|
2851
|
+
/**
|
|
2852
|
+
* Valores dos campos do formulário.
|
|
2853
|
+
*/
|
|
2854
|
+
"value"?: any;
|
|
2855
|
+
}
|
|
2574
2856
|
interface EzDateInput {
|
|
2575
2857
|
/**
|
|
2576
2858
|
* Se false deixa de exibir a mensagem de erro dentro do campo.
|
|
@@ -2820,6 +3102,10 @@ declare namespace LocalJSX {
|
|
|
2820
3102
|
* Responsável por notificar quando ocorrer a renderização de itens do formulário.
|
|
2821
3103
|
*/
|
|
2822
3104
|
"onFormItemsReady"?: (event: EzFormCustomEvent<FormItems>) => void;
|
|
3105
|
+
/**
|
|
3106
|
+
* 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.
|
|
3107
|
+
*/
|
|
3108
|
+
"onlyStaticFields"?: boolean;
|
|
2823
3109
|
/**
|
|
2824
3110
|
* Define um validador responsável pela integridade dos registros.
|
|
2825
3111
|
*/
|
|
@@ -2829,7 +3115,7 @@ declare namespace LocalJSX {
|
|
|
2829
3115
|
/**
|
|
2830
3116
|
* Define a lista de metadados usada para criar os campos de user interface.
|
|
2831
3117
|
*/
|
|
2832
|
-
"fields"?: Array<
|
|
3118
|
+
"fields"?: Array<IFormViewField1>;
|
|
2833
3119
|
/**
|
|
2834
3120
|
* Evento emitido quando o componente foi totalmente carregado na DOM.
|
|
2835
3121
|
*/
|
|
@@ -2838,8 +3124,16 @@ declare namespace LocalJSX {
|
|
|
2838
3124
|
* Responsável por notificar quando ocorrer a renderização de itens do formulário.
|
|
2839
3125
|
*/
|
|
2840
3126
|
"onFormItemsReady"?: (event: EzFormViewCustomEvent<FormItems>) => void;
|
|
3127
|
+
/**
|
|
3128
|
+
* Define os registros da linha selecionada.
|
|
3129
|
+
*/
|
|
3130
|
+
"selectedRecord"?: Record;
|
|
2841
3131
|
}
|
|
2842
3132
|
interface EzGrid {
|
|
3133
|
+
/**
|
|
3134
|
+
* Define se a grid será focada ao ser carregada.
|
|
3135
|
+
*/
|
|
3136
|
+
"autoFocus"?: boolean;
|
|
2843
3137
|
/**
|
|
2844
3138
|
* Define se a edição está habilitada na grid.
|
|
2845
3139
|
*/
|
|
@@ -2974,6 +3268,10 @@ declare namespace LocalJSX {
|
|
|
2974
3268
|
* Emitido quando acontece a alteração de um item do checkbox.
|
|
2975
3269
|
*/
|
|
2976
3270
|
"onEzCheckChange"?: (event: EzListCustomEvent<ListItem>) => void;
|
|
3271
|
+
/**
|
|
3272
|
+
* Emitido quando ocorre um duplo clique em um item da lista.
|
|
3273
|
+
*/
|
|
3274
|
+
"onEzDoubleClick"?: (event: EzListCustomEvent<ListItem>) => void;
|
|
2977
3275
|
/**
|
|
2978
3276
|
* Emitido sempre que um item da lista for selecionado.
|
|
2979
3277
|
*/
|
|
@@ -2998,6 +3296,10 @@ declare namespace LocalJSX {
|
|
|
2998
3296
|
* Define se o modal será fechado ao clicar fora do conteúdo.
|
|
2999
3297
|
*/
|
|
3000
3298
|
"closeOutsideClick"?: boolean;
|
|
3299
|
+
/**
|
|
3300
|
+
* Define se o modal será fechado se o mouse sair para fora do conteúdo.
|
|
3301
|
+
*/
|
|
3302
|
+
"closeOutsideLeave"?: boolean;
|
|
3001
3303
|
/**
|
|
3002
3304
|
* Ativa o modo Full, permitindo que o Modal expanda-se verticalmente e ocupe todo o espaço disponível.
|
|
3003
3305
|
*/
|
|
@@ -3056,6 +3358,10 @@ declare namespace LocalJSX {
|
|
|
3056
3358
|
* 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)
|
|
3057
3359
|
*/
|
|
3058
3360
|
"onEzModalAction"?: (event: EzModalContainerCustomEvent<string>) => void;
|
|
3361
|
+
/**
|
|
3362
|
+
* Define a visibilidade do botão de fechar.
|
|
3363
|
+
*/
|
|
3364
|
+
"showCloseButton"?: boolean;
|
|
3059
3365
|
/**
|
|
3060
3366
|
* Define se o cabeçalho será mostrado.
|
|
3061
3367
|
*/
|
|
@@ -3309,6 +3615,40 @@ declare namespace LocalJSX {
|
|
|
3309
3615
|
*/
|
|
3310
3616
|
"onEzClick"?: (event: EzSidebarButtonCustomEvent<void>) => void;
|
|
3311
3617
|
}
|
|
3618
|
+
interface EzSidebarNavigator {
|
|
3619
|
+
/**
|
|
3620
|
+
* Define se terá responsividade, Controle deverá ser pelo CSS.
|
|
3621
|
+
*/
|
|
3622
|
+
"isResponsive"?: boolean;
|
|
3623
|
+
/**
|
|
3624
|
+
* Define se o menu será do tipo FIXED ou FLOAT.
|
|
3625
|
+
*/
|
|
3626
|
+
"mode"?: ModeMenuEnum;
|
|
3627
|
+
/**
|
|
3628
|
+
* Evento emitido sempre que o modo (FLOAT ou FIXED) do menu for alterado..
|
|
3629
|
+
*/
|
|
3630
|
+
"onEzChangeMode"?: (event: EzSidebarNavigatorCustomEvent<ModeMenuEnum>) => void;
|
|
3631
|
+
/**
|
|
3632
|
+
* Define se o botão de "Recolher Menu" será exibido
|
|
3633
|
+
*/
|
|
3634
|
+
"showCollapseMenu"?: boolean;
|
|
3635
|
+
/**
|
|
3636
|
+
* Define se o botão de "Fixar Menu" será exibido
|
|
3637
|
+
*/
|
|
3638
|
+
"showFixedButton"?: boolean;
|
|
3639
|
+
/**
|
|
3640
|
+
* Define o tamanho do menu (small, medium, large).
|
|
3641
|
+
*/
|
|
3642
|
+
"size"?: SizeMenuEnum;
|
|
3643
|
+
/**
|
|
3644
|
+
* Define o título do Sidebar Navigator
|
|
3645
|
+
*/
|
|
3646
|
+
"titleMenu"?: string;
|
|
3647
|
+
/**
|
|
3648
|
+
* Define o tipo do menu (float, fixed ou dynamic (livre)).
|
|
3649
|
+
*/
|
|
3650
|
+
"type"?: TypeMenuEnum;
|
|
3651
|
+
}
|
|
3312
3652
|
interface EzSkeleton {
|
|
3313
3653
|
/**
|
|
3314
3654
|
* Animation type
|
|
@@ -3704,10 +4044,12 @@ declare namespace LocalJSX {
|
|
|
3704
4044
|
"ez-button": EzButton;
|
|
3705
4045
|
"ez-calendar": EzCalendar;
|
|
3706
4046
|
"ez-card-item": EzCardItem;
|
|
4047
|
+
"ez-chart": EzChart;
|
|
3707
4048
|
"ez-check": EzCheck;
|
|
3708
4049
|
"ez-chip": EzChip;
|
|
3709
4050
|
"ez-collapsible-box": EzCollapsibleBox;
|
|
3710
4051
|
"ez-combo-box": EzComboBox;
|
|
4052
|
+
"ez-custom-form-input": EzCustomFormInput;
|
|
3711
4053
|
"ez-date-input": EzDateInput;
|
|
3712
4054
|
"ez-date-time-input": EzDateTimeInput;
|
|
3713
4055
|
"ez-dialog": EzDialog;
|
|
@@ -3731,6 +4073,7 @@ declare namespace LocalJSX {
|
|
|
3731
4073
|
"ez-scroller": EzScroller;
|
|
3732
4074
|
"ez-search": EzSearch;
|
|
3733
4075
|
"ez-sidebar-button": EzSidebarButton;
|
|
4076
|
+
"ez-sidebar-navigator": EzSidebarNavigator;
|
|
3734
4077
|
"ez-skeleton": EzSkeleton;
|
|
3735
4078
|
"ez-split-button": EzSplitButton;
|
|
3736
4079
|
"ez-split-item": EzSplitItem;
|
|
@@ -3761,10 +4104,12 @@ declare module "@stencil/core" {
|
|
|
3761
4104
|
"ez-button": LocalJSX.EzButton & JSXBase.HTMLAttributes<HTMLEzButtonElement>;
|
|
3762
4105
|
"ez-calendar": LocalJSX.EzCalendar & JSXBase.HTMLAttributes<HTMLEzCalendarElement>;
|
|
3763
4106
|
"ez-card-item": LocalJSX.EzCardItem & JSXBase.HTMLAttributes<HTMLEzCardItemElement>;
|
|
4107
|
+
"ez-chart": LocalJSX.EzChart & JSXBase.HTMLAttributes<HTMLEzChartElement>;
|
|
3764
4108
|
"ez-check": LocalJSX.EzCheck & JSXBase.HTMLAttributes<HTMLEzCheckElement>;
|
|
3765
4109
|
"ez-chip": LocalJSX.EzChip & JSXBase.HTMLAttributes<HTMLEzChipElement>;
|
|
3766
4110
|
"ez-collapsible-box": LocalJSX.EzCollapsibleBox & JSXBase.HTMLAttributes<HTMLEzCollapsibleBoxElement>;
|
|
3767
4111
|
"ez-combo-box": LocalJSX.EzComboBox & JSXBase.HTMLAttributes<HTMLEzComboBoxElement>;
|
|
4112
|
+
"ez-custom-form-input": LocalJSX.EzCustomFormInput & JSXBase.HTMLAttributes<HTMLEzCustomFormInputElement>;
|
|
3768
4113
|
"ez-date-input": LocalJSX.EzDateInput & JSXBase.HTMLAttributes<HTMLEzDateInputElement>;
|
|
3769
4114
|
"ez-date-time-input": LocalJSX.EzDateTimeInput & JSXBase.HTMLAttributes<HTMLEzDateTimeInputElement>;
|
|
3770
4115
|
"ez-dialog": LocalJSX.EzDialog & JSXBase.HTMLAttributes<HTMLEzDialogElement>;
|
|
@@ -3788,6 +4133,7 @@ declare module "@stencil/core" {
|
|
|
3788
4133
|
"ez-scroller": LocalJSX.EzScroller & JSXBase.HTMLAttributes<HTMLEzScrollerElement>;
|
|
3789
4134
|
"ez-search": LocalJSX.EzSearch & JSXBase.HTMLAttributes<HTMLEzSearchElement>;
|
|
3790
4135
|
"ez-sidebar-button": LocalJSX.EzSidebarButton & JSXBase.HTMLAttributes<HTMLEzSidebarButtonElement>;
|
|
4136
|
+
"ez-sidebar-navigator": LocalJSX.EzSidebarNavigator & JSXBase.HTMLAttributes<HTMLEzSidebarNavigatorElement>;
|
|
3791
4137
|
"ez-skeleton": LocalJSX.EzSkeleton & JSXBase.HTMLAttributes<HTMLEzSkeletonElement>;
|
|
3792
4138
|
"ez-split-button": LocalJSX.EzSplitButton & JSXBase.HTMLAttributes<HTMLEzSplitButtonElement>;
|
|
3793
4139
|
"ez-split-item": LocalJSX.EzSplitItem & JSXBase.HTMLAttributes<HTMLEzSplitItemElement>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { Record } from "@sankhyalabs/core";
|
|
2
|
+
import { IOption, ISearchArgument } from "../../../components/ez-combo-box/ez-combo-box";
|
|
3
|
+
export interface EditorMetadata {
|
|
4
|
+
label: string;
|
|
5
|
+
hidden: boolean;
|
|
6
|
+
userInterface: string;
|
|
7
|
+
options: {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
}[];
|
|
10
|
+
props?: Map<string, any>;
|
|
11
|
+
optionLoader?: (argument: ISearchArgument) => Promise<Array<IOption>> | Array<IOption> | IOption;
|
|
12
|
+
}
|
|
13
|
+
export declare enum CustomEditorSource {
|
|
14
|
+
GRID = "GRID",
|
|
15
|
+
FORM = "FORM"
|
|
16
|
+
}
|
|
17
|
+
export interface ICustomEditorParams {
|
|
18
|
+
value: any;
|
|
19
|
+
name: string;
|
|
20
|
+
currentEditor: HTMLElement;
|
|
21
|
+
editorMetadata: EditorMetadata;
|
|
22
|
+
record: Record;
|
|
23
|
+
source: CustomEditorSource;
|
|
24
|
+
setValue?: (value: any) => void;
|
|
25
|
+
getValue?: () => any;
|
|
26
|
+
charPress?: string | null;
|
|
27
|
+
detailContext?: string;
|
|
28
|
+
}
|
|
29
|
+
export interface ICustomEditor {
|
|
30
|
+
getEditorElement(params: ICustomEditorParams): HTMLElement | string | undefined;
|
|
31
|
+
}
|
|
@@ -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
|
+
}
|