@sankhyalabs/ezui 1.1.75 → 1.1.78
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/ApplicationUtils-d1c1db56.js +35 -0
- package/dist/cjs/AssetsUtils-dd585fba.js +24 -0
- package/dist/cjs/CSSVarsUtils-66e86394.js +18 -0
- package/dist/cjs/DataUnit-fdd7c70e.js +474 -0
- package/dist/cjs/DateUtils-716769e0.js +46 -0
- package/dist/cjs/ez-action-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-application.cjs.entry.js +26 -0
- package/dist/cjs/ez-button_11.cjs.entry.js +111771 -0
- package/dist/cjs/ez-calendar.cjs.entry.js +217 -0
- package/dist/cjs/ez-collapsible-box_6.cjs.entry.js +634 -0
- package/dist/cjs/ez-combo-box.cjs.entry.js +254 -0
- package/dist/cjs/ez-date-time-input.cjs.entry.js +133 -0
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-form.cjs.entry.js +1838 -0
- package/dist/cjs/ez-label-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +36 -212
- package/dist/cjs/ez-popover.cjs.entry.js +3 -3
- package/dist/cjs/ez-popup.cjs.entry.js +2 -2
- package/dist/cjs/ez-time-input.cjs.entry.js +10 -9
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +3 -3
- package/dist/cjs/form-metadata.cjs.entry.js +129 -0
- package/dist/cjs/index-40ebb2be.js +7422 -0
- package/dist/cjs/{index-4d2896bb.js → index-4e4bae01.js} +3 -5
- package/dist/cjs/loader.cjs.js +3 -3
- package/dist/collection/collection-manifest.json +8 -3
- package/dist/collection/components/ez-application/ez-application.css +3 -0
- package/dist/collection/components/ez-application/ez-application.js +35 -0
- package/dist/collection/components/ez-button/ez-button.css +78 -44
- package/dist/collection/components/ez-button/ez-button.js +36 -4
- package/dist/collection/components/ez-calendar/ez-calendar.css +70 -3
- package/dist/collection/components/ez-calendar/ez-calendar.js +173 -24
- package/dist/collection/components/ez-check/ez-check.css +78 -78
- package/dist/collection/components/ez-check/ez-check.js +3 -3
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +34 -34
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +12 -12
- package/dist/collection/components/ez-combo-box/ez-combo-box.css +65 -54
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +5 -0
- package/dist/collection/components/ez-date-input/ez-date-input.css +17 -3
- package/dist/collection/components/ez-date-input/ez-date-input.js +3 -3
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +44 -0
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +243 -0
- package/dist/collection/components/ez-form/ez-form.js +37 -35
- package/dist/collection/components/ez-form/store/Form.actions.js +16 -16
- package/dist/collection/components/ez-form/store/Form.reducer.js +17 -17
- package/dist/collection/components/ez-form/subcomponents/DataUnit.js +11 -11
- package/dist/collection/components/ez-form/subcomponents/form-metadata.js +12 -12
- package/dist/collection/components/ez-form/subcomponents/place-holder.js +1 -1
- package/dist/collection/components/ez-form/subcomponents/structure/Field.js +21 -21
- package/dist/collection/components/ez-form/subcomponents/structure/FormSheet.js +1 -1
- package/dist/collection/components/ez-form/subcomponents/structure/NavigationBar.js +9 -9
- package/dist/collection/components/ez-grid/controller/DataUnitBridge.js +21 -0
- package/dist/collection/components/ez-grid/controller/EzGridController.js +1 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +203 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +41 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/i18n/pt-BR.js +75 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/mock/Server.js +69 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/template/HeaderColumnTemplate.js +12 -0
- package/dist/collection/components/ez-grid/ez-grid.css +15 -0
- package/dist/collection/components/ez-grid/ez-grid.js +414 -0
- package/dist/collection/components/ez-grid/subcomponents/gridconfig/grid-config.css +105 -0
- package/dist/collection/components/ez-grid/subcomponents/gridconfig/grid-config.js +354 -0
- package/dist/collection/components/ez-grid/subcomponents/select-box/select-box.css +7 -0
- package/dist/collection/components/ez-grid/subcomponents/select-box/select-box.js +66 -0
- package/dist/collection/components/ez-icon/ez-icon.css +1 -1
- package/dist/collection/components/ez-list/ez-list.css +227 -44
- package/dist/collection/components/ez-list/ez-list.js +529 -149
- package/dist/collection/components/ez-modal/ez-modal.css +4 -4
- package/dist/collection/components/ez-modal/ez-modal.js +1 -1
- package/dist/collection/components/ez-number-input/ez-number-input.css +1 -165
- package/dist/collection/components/ez-number-input/ez-number-input.js +53 -339
- package/dist/collection/components/ez-popover/ez-popover.css +10 -6
- package/dist/collection/components/ez-popup/ez-popup.css +25 -27
- package/dist/collection/components/ez-search/ez-search.js +6 -1
- package/dist/collection/components/ez-tabselector/ez-tabselector.css +0 -1
- package/dist/collection/components/ez-tabselector/ez-tabselector.js +3 -3
- package/dist/collection/components/ez-text-area/ez-text-area.js +1 -0
- package/dist/collection/components/ez-text-input/ez-text-input.css +60 -60
- package/dist/collection/components/ez-text-input/ez-text-input.js +17 -16
- package/dist/collection/components/ez-time-input/ez-time-input.js +3 -2
- package/dist/collection/components/ez-upload/ez-upload.js +3 -3
- package/dist/collection/components/test-du/test-du.css +3 -0
- package/dist/collection/components/test-du/test-du.js +45 -0
- package/dist/collection/servidor.js +94 -94
- package/dist/collection/utils/{Application.js → ApplicationUtils.js} +4 -4
- package/dist/collection/utils/AssetsUtils.js +19 -0
- package/dist/collection/utils/CSSVarsUtils.js +6 -6
- package/dist/custom-elements/index.d.ts +36 -6
- package/dist/custom-elements/index.js +120886 -2964
- package/dist/esm/ApplicationUtils-01280a9d.js +33 -0
- package/dist/esm/AssetsUtils-3803e935.js +22 -0
- package/dist/esm/CSSVarsUtils-aeee9825.js +16 -0
- package/dist/esm/DataUnit-1cd45202.js +464 -0
- package/dist/esm/DateUtils-0a1bbd7a.js +44 -0
- package/dist/esm/ez-action-chip.entry.js +1 -1
- package/dist/esm/ez-application.entry.js +22 -0
- package/dist/esm/ez-button_11.entry.js +111757 -0
- package/dist/esm/ez-calendar.entry.js +213 -0
- package/dist/esm/ez-collapsible-box_6.entry.js +625 -0
- package/dist/esm/ez-combo-box.entry.js +250 -0
- package/dist/esm/ez-date-time-input.entry.js +129 -0
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-form.entry.js +1834 -0
- package/dist/esm/ez-label-chip.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +36 -212
- package/dist/esm/ez-popover.entry.js +3 -3
- package/dist/esm/ez-popup.entry.js +2 -2
- package/dist/esm/ez-time-input.entry.js +5 -4
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ezui.js +3 -3
- package/dist/esm/form-metadata.entry.js +125 -0
- package/dist/esm/{index-33153059.js → index-1dacecd3.js} +3 -6
- package/dist/esm/index-ca8700cb.js +7414 -0
- package/dist/esm/loader.js +3 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-14bee38e.entry.js +1 -0
- package/dist/ezui/p-37a611ea.js +1 -0
- package/dist/ezui/p-3a09c678.entry.js +1 -0
- package/dist/ezui/p-43c15c94.entry.js +1 -0
- package/dist/ezui/{p-34d288d0.entry.js → p-516d0e0f.entry.js} +1 -1
- package/dist/ezui/{p-0d476efb.entry.js → p-5a86e18a.entry.js} +1 -1
- package/dist/ezui/{p-47406a6e.entry.js → p-5da66d3e.entry.js} +1 -1
- package/dist/ezui/p-7107d7ef.js +1 -0
- package/dist/ezui/p-72ff3c95.entry.js +1 -0
- package/dist/ezui/p-74f978db.entry.js +369 -0
- package/dist/ezui/p-88f45a83.entry.js +1 -0
- package/dist/ezui/p-8b099482.js +1 -0
- package/dist/ezui/p-8d6cdd3e.entry.js +1 -0
- package/dist/ezui/p-8f4851a6.js +1 -0
- package/dist/ezui/p-9dfd537e.js +1 -0
- package/dist/ezui/p-a0331955.entry.js +1 -0
- package/dist/ezui/p-a15093e3.entry.js +1 -0
- package/dist/ezui/{p-8818da66.entry.js → p-a18a2d7b.entry.js} +1 -1
- package/dist/ezui/p-a19f2af3.entry.js +1 -0
- package/dist/ezui/p-c6d469fc.entry.js +1 -0
- package/dist/ezui/p-c89629eb.js +1 -0
- package/dist/ezui/p-da929c01.js +1 -0
- package/dist/ezui/p-f3c5f27e.entry.js +1 -0
- package/dist/types/components/ez-application/ez-application.d.ts +10 -0
- package/dist/types/components/ez-button/ez-button.d.ts +5 -0
- package/dist/types/components/ez-calendar/ez-calendar.d.ts +21 -0
- package/dist/types/components/ez-check/ez-check.d.ts +1 -1
- package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +3 -3
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +1 -0
- package/dist/types/components/ez-date-time-input/ez-date-time-input.d.ts +42 -0
- package/dist/types/components/ez-form/ez-form.d.ts +9 -9
- package/dist/types/components/ez-form/subcomponents/DataUnit.d.ts +1 -1
- package/dist/types/components/ez-form/subcomponents/form-metadata.d.ts +1 -1
- package/dist/types/components/ez-grid/controller/DataUnitBridge.d.ts +8 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +195 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +34 -0
- package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +11 -0
- package/dist/types/components/ez-grid/controller/ag-grid/i18n/pt-BR.d.ts +2 -0
- package/dist/types/components/ez-grid/controller/ag-grid/mock/Server.d.ts +8 -0
- package/dist/types/components/ez-grid/ez-grid.d.ts +78 -0
- package/dist/types/components/ez-grid/subcomponents/gridconfig/grid-config.d.ts +30 -0
- package/dist/types/components/ez-grid/subcomponents/select-box/select-box.d.ts +9 -0
- package/dist/types/components/ez-list/ez-list.d.ts +70 -17
- package/dist/types/components/ez-number-input/ez-number-input.d.ts +29 -63
- package/dist/types/components/ez-search/ez-search.d.ts +2 -0
- package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +1 -1
- package/dist/types/components/ez-text-input/ez-text-input.d.ts +1 -1
- package/dist/types/components/test-du/test-du.d.ts +6 -0
- package/dist/types/components.d.ts +289 -139
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/dist/types/utils/{Application.d.ts → ApplicationUtils.d.ts} +1 -1
- package/dist/types/utils/AssetsUtils.d.ts +1 -0
- package/dist/types/utils/CSSVarsUtils.d.ts +1 -1
- package/package.json +10 -8
- package/react/components.d.ts +6 -1
- package/react/components.js +6 -1
- package/react/components.js.map +1 -1
- package/dist/cjs/CSSVarsUtils-f8827674.js +0 -18
- package/dist/cjs/RequestMetadata-2cd01e8a.js +0 -531
- package/dist/cjs/ez-button_16.cjs.entry.js +0 -4071
- package/dist/cjs/ez-list.cjs.entry.js +0 -174
- package/dist/cjs/ez-modal.cjs.entry.js +0 -65
- package/dist/collection/components/ez-numeric-input/ez-numeric-input.css +0 -13
- package/dist/collection/components/ez-numeric-input/ez-numeric-input.js +0 -185
- package/dist/esm/CSSVarsUtils-e0128b01.js +0 -16
- package/dist/esm/RequestMetadata-c265c9d5.js +0 -527
- package/dist/esm/ez-button_16.entry.js +0 -4052
- package/dist/esm/ez-list.entry.js +0 -170
- package/dist/esm/ez-modal.entry.js +0 -61
- package/dist/ezui/p-061d21ba.entry.js +0 -1
- package/dist/ezui/p-15743b09.entry.js +0 -1
- package/dist/ezui/p-46d07e59.entry.js +0 -1
- package/dist/ezui/p-4df6f855.js +0 -1
- package/dist/ezui/p-50464bdf.entry.js +0 -1
- package/dist/ezui/p-67410dfa.entry.js +0 -1
- package/dist/ezui/p-7be54779.entry.js +0 -1
- package/dist/ezui/p-7f3bc6d9.entry.js +0 -1
- package/dist/ezui/p-9dfccb16.js +0 -1
- package/dist/ezui/p-d1889704.js +0 -1
- package/dist/types/components/ez-numeric-input/ez-numeric-input.d.ts +0 -45
|
@@ -1,101 +1,101 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
{
|
|
21
|
-
"record__id": "SURJTlNUUFJOPTc3MTYwMiZJRElOU1RUQVI9MCZDT0RSRUdJU1RSTz0xOutro",
|
|
22
|
-
"EDITAL": null,
|
|
23
|
-
"RESUMO": "Um resumicho",
|
|
24
|
-
"DTHAB": new Date(1988, 5, 18),
|
|
25
|
-
"COMITE": null,
|
|
26
|
-
"DEMANDA": null,
|
|
27
|
-
"DUVIDAS": null
|
|
28
|
-
}
|
|
29
|
-
]
|
|
1
|
+
function carregarMetadados() {
|
|
2
|
+
return [
|
|
3
|
+
{
|
|
4
|
+
"name": "AD_TWFSOLLICJUR",
|
|
5
|
+
"label": "Análise de Licitações",
|
|
6
|
+
"items": [],
|
|
7
|
+
"dataUnit": {
|
|
8
|
+
"name": "AD_TWFSOLLICJUR",
|
|
9
|
+
"cardinality": "N",
|
|
10
|
+
"records": [
|
|
11
|
+
{
|
|
12
|
+
"record__id": "SURJTlNUUFJOPTc3MTYwMiZJRElOU1RUQVI9MCZDT0RSRUdJU1RSTz0x",
|
|
13
|
+
"EDITAL": null,
|
|
14
|
+
"RESUMO": "algo escrito Pela NOVA lista de Tarefassdf",
|
|
15
|
+
"DTHAB": new Date(1978, 5, 18),
|
|
16
|
+
"COMITE": null,
|
|
17
|
+
"DEMANDA": null,
|
|
18
|
+
"DUVIDAS": null
|
|
30
19
|
},
|
|
31
|
-
|
|
20
|
+
{
|
|
21
|
+
"record__id": "SURJTlNUUFJOPTc3MTYwMiZJRElOU1RUQVI9MCZDT0RSRUdJU1RSTz0xOutro",
|
|
22
|
+
"EDITAL": null,
|
|
23
|
+
"RESUMO": "Um resumicho",
|
|
24
|
+
"DTHAB": new Date(1988, 5, 18),
|
|
25
|
+
"COMITE": null,
|
|
26
|
+
"DEMANDA": null,
|
|
27
|
+
"DUVIDAS": null
|
|
28
|
+
}
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"subForms": [
|
|
32
|
+
{
|
|
33
|
+
"name": "AD_TWFSOLLICJUR#Geral",
|
|
34
|
+
"label": "Geral",
|
|
35
|
+
"items": [
|
|
32
36
|
{
|
|
33
|
-
"name": "
|
|
34
|
-
"label": "
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
"required": false,
|
|
77
|
-
"defaultValue": null,
|
|
78
|
-
"userInterface": "OPTIONSELECTOR",
|
|
79
|
-
"properties": [
|
|
80
|
-
{
|
|
81
|
-
"name": "options",
|
|
82
|
-
"value": "{\"SIM\":\"Sim\",\"NAO\":\"Não\"}"
|
|
83
|
-
}
|
|
84
|
-
]
|
|
85
|
-
},
|
|
37
|
+
"name": "EDITAL",
|
|
38
|
+
"label": "Por gentileza, anexe o edital de licitação completo e outros anexos caso houver no formato .zip.",
|
|
39
|
+
"readOnly": false,
|
|
40
|
+
"required": false,
|
|
41
|
+
"defaultValue": null,
|
|
42
|
+
"userInterface": "IMAGE",
|
|
43
|
+
"properties": []
|
|
44
|
+
},
|
|
45
|
+
{
|
|
46
|
+
"name": "RESUMO",
|
|
47
|
+
"label": "Resumo do edital:",
|
|
48
|
+
"readOnly": false,
|
|
49
|
+
"required": false,
|
|
50
|
+
"defaultValue": null,
|
|
51
|
+
"userInterface": "LONGTEXT",
|
|
52
|
+
"properties": []
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "DTHAB",
|
|
56
|
+
"label": "Informe a data de habilitação do processo licitatório:",
|
|
57
|
+
"readOnly": false,
|
|
58
|
+
"required": false,
|
|
59
|
+
"defaultValue": null,
|
|
60
|
+
"userInterface": "DATE",
|
|
61
|
+
"properties": []
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"name": "COMITE",
|
|
65
|
+
"label": "Necessário acionar comitê? Se sim, adicione os comentários relacionados ao comitê:",
|
|
66
|
+
"readOnly": false,
|
|
67
|
+
"required": false,
|
|
68
|
+
"defaultValue": null,
|
|
69
|
+
"userInterface": "LONGTEXT",
|
|
70
|
+
"properties": []
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
"name": "DEMANDA",
|
|
74
|
+
"label": "Duvidas se iremos conseguir atender as demandas?",
|
|
75
|
+
"readOnly": false,
|
|
76
|
+
"required": false,
|
|
77
|
+
"defaultValue": null,
|
|
78
|
+
"userInterface": "OPTIONSELECTOR",
|
|
79
|
+
"properties": [
|
|
86
80
|
{
|
|
87
|
-
"name": "
|
|
88
|
-
"
|
|
89
|
-
"readOnly": false,
|
|
90
|
-
"required": false,
|
|
91
|
-
"defaultValue": null,
|
|
92
|
-
"userInterface": "LONGTEXT",
|
|
93
|
-
"properties": []
|
|
81
|
+
"name": "options",
|
|
82
|
+
"value": "{\"SIM\":\"Sim\",\"NAO\":\"Não\"}"
|
|
94
83
|
}
|
|
95
|
-
]
|
|
96
|
-
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"name": "DUVIDAS",
|
|
88
|
+
"label": "Informe as dúvidas que o executivo comercial deverá verificar com as áreas correspondentes:",
|
|
89
|
+
"readOnly": false,
|
|
90
|
+
"required": false,
|
|
91
|
+
"defaultValue": null,
|
|
92
|
+
"userInterface": "LONGTEXT",
|
|
93
|
+
"properties": []
|
|
97
94
|
}
|
|
98
|
-
]
|
|
95
|
+
],
|
|
96
|
+
"dataUnit": null
|
|
99
97
|
}
|
|
100
98
|
]
|
|
101
|
-
|
|
99
|
+
}
|
|
100
|
+
]
|
|
101
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export default class
|
|
1
|
+
export default class ApplicationUtils {
|
|
2
2
|
static async showDialog(title, message, icon = null, confirm, critical = false) {
|
|
3
3
|
return new Promise(resolve => {
|
|
4
4
|
let dialog = document.querySelector("ez-dialog");
|
|
@@ -10,13 +10,13 @@ export default class Application {
|
|
|
10
10
|
});
|
|
11
11
|
}
|
|
12
12
|
static async alert(title, message, icon = null) {
|
|
13
|
-
return
|
|
13
|
+
return ApplicationUtils.showDialog(title, message, icon, false, false);
|
|
14
14
|
}
|
|
15
15
|
static async error(title, message, icon = null) {
|
|
16
|
-
return
|
|
16
|
+
return ApplicationUtils.showDialog(title, message, icon, false, true);
|
|
17
17
|
}
|
|
18
18
|
static async confirm(title, message, icon = null, critical = false) {
|
|
19
|
-
return
|
|
19
|
+
return ApplicationUtils.showDialog(title, message, icon, true, critical);
|
|
20
20
|
}
|
|
21
21
|
static async info(message) {
|
|
22
22
|
let toast = document.querySelector("ez-toast");
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { getAssetPath, setAssetPath } from "@stencil/core";
|
|
2
|
+
export const getSpritePath = (sprite) => `${getContextAssetsPath("../assets/actions-sprite.svg")}#${sprite}`;
|
|
3
|
+
let ctxLoaded = false;
|
|
4
|
+
function getContextAssetsPath(resource) {
|
|
5
|
+
if (!ctxLoaded) {
|
|
6
|
+
const scriptElem = document.querySelector("script[data-ezui-assets-url]");
|
|
7
|
+
if (scriptElem) {
|
|
8
|
+
let assetsPath = scriptElem.dataset.ezuiAssetsUrl;
|
|
9
|
+
if (assetsPath) {
|
|
10
|
+
if (assetsPath.startsWith('/')) {
|
|
11
|
+
assetsPath = window.location.origin + assetsPath;
|
|
12
|
+
}
|
|
13
|
+
setAssetPath(assetsPath);
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
ctxLoaded = true;
|
|
17
|
+
}
|
|
18
|
+
return getAssetPath(resource);
|
|
19
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export default class CSSVarsUtils {
|
|
2
|
-
static applyVarsTextInput(host,
|
|
3
|
-
if (
|
|
4
|
-
CSSVarsUtils.applyIfExists(host,
|
|
5
|
-
CSSVarsUtils.applyIfExists(host,
|
|
2
|
+
static applyVarsTextInput(host, child) {
|
|
3
|
+
if (child) {
|
|
4
|
+
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--background-color');
|
|
5
|
+
CSSVarsUtils.applyIfExists(host, child, '--ez-text-input__input--border-color');
|
|
6
6
|
}
|
|
7
7
|
}
|
|
8
|
-
static applyIfExists(host,
|
|
8
|
+
static applyIfExists(host, element, varName) {
|
|
9
9
|
const prop = getComputedStyle(host).getPropertyValue(varName);
|
|
10
10
|
if (prop) {
|
|
11
|
-
|
|
11
|
+
element.style.setProperty(varName, prop);
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
}
|
|
@@ -8,6 +8,12 @@ export const EzActionChip: {
|
|
|
8
8
|
new (): EzActionChip;
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
+
interface EzApplication extends Components.EzApplication, HTMLElement {}
|
|
12
|
+
export const EzApplication: {
|
|
13
|
+
prototype: EzApplication;
|
|
14
|
+
new (): EzApplication;
|
|
15
|
+
};
|
|
16
|
+
|
|
11
17
|
interface EzButton extends Components.EzButton, HTMLElement {}
|
|
12
18
|
export const EzButton: {
|
|
13
19
|
prototype: EzButton;
|
|
@@ -44,6 +50,12 @@ export const EzDateInput: {
|
|
|
44
50
|
new (): EzDateInput;
|
|
45
51
|
};
|
|
46
52
|
|
|
53
|
+
interface EzDateTimeInput extends Components.EzDateTimeInput, HTMLElement {}
|
|
54
|
+
export const EzDateTimeInput: {
|
|
55
|
+
prototype: EzDateTimeInput;
|
|
56
|
+
new (): EzDateTimeInput;
|
|
57
|
+
};
|
|
58
|
+
|
|
47
59
|
interface EzDialog extends Components.EzDialog, HTMLElement {}
|
|
48
60
|
export const EzDialog: {
|
|
49
61
|
prototype: EzDialog;
|
|
@@ -56,6 +68,12 @@ export const EzForm: {
|
|
|
56
68
|
new (): EzForm;
|
|
57
69
|
};
|
|
58
70
|
|
|
71
|
+
interface EzGrid extends Components.EzGrid, HTMLElement {}
|
|
72
|
+
export const EzGrid: {
|
|
73
|
+
prototype: EzGrid;
|
|
74
|
+
new (): EzGrid;
|
|
75
|
+
};
|
|
76
|
+
|
|
59
77
|
interface EzIcon extends Components.EzIcon, HTMLElement {}
|
|
60
78
|
export const EzIcon: {
|
|
61
79
|
prototype: EzIcon;
|
|
@@ -86,12 +104,6 @@ export const EzNumberInput: {
|
|
|
86
104
|
new (): EzNumberInput;
|
|
87
105
|
};
|
|
88
106
|
|
|
89
|
-
interface EzNumericInput extends Components.EzNumericInput, HTMLElement {}
|
|
90
|
-
export const EzNumericInput: {
|
|
91
|
-
prototype: EzNumericInput;
|
|
92
|
-
new (): EzNumericInput;
|
|
93
|
-
};
|
|
94
|
-
|
|
95
107
|
interface EzPopover extends Components.EzPopover, HTMLElement {}
|
|
96
108
|
export const EzPopover: {
|
|
97
109
|
prototype: EzPopover;
|
|
@@ -152,12 +164,30 @@ export const FormMetadata: {
|
|
|
152
164
|
new (): FormMetadata;
|
|
153
165
|
};
|
|
154
166
|
|
|
167
|
+
interface GridConfig extends Components.GridConfig, HTMLElement {}
|
|
168
|
+
export const GridConfig: {
|
|
169
|
+
prototype: GridConfig;
|
|
170
|
+
new (): GridConfig;
|
|
171
|
+
};
|
|
172
|
+
|
|
155
173
|
interface PlaceHolder extends Components.PlaceHolder, HTMLElement {}
|
|
156
174
|
export const PlaceHolder: {
|
|
157
175
|
prototype: PlaceHolder;
|
|
158
176
|
new (): PlaceHolder;
|
|
159
177
|
};
|
|
160
178
|
|
|
179
|
+
interface SelectBox extends Components.SelectBox, HTMLElement {}
|
|
180
|
+
export const SelectBox: {
|
|
181
|
+
prototype: SelectBox;
|
|
182
|
+
new (): SelectBox;
|
|
183
|
+
};
|
|
184
|
+
|
|
185
|
+
interface TestDu extends Components.TestDu, HTMLElement {}
|
|
186
|
+
export const TestDu: {
|
|
187
|
+
prototype: TestDu;
|
|
188
|
+
new (): TestDu;
|
|
189
|
+
};
|
|
190
|
+
|
|
161
191
|
/**
|
|
162
192
|
* Utility to define all custom elements within this package using the tag name provided in the component's source.
|
|
163
193
|
* When defining each custom element, it will also check it's safe to define by:
|