@sankhyalabs/ezui 1.1.76 → 1.1.77
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/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 +28 -0
- package/dist/cjs/ez-button_11.cjs.entry.js +111771 -0
- package/dist/cjs/ez-calendar.cjs.entry.js +212 -0
- package/dist/cjs/ez-collapsible-box_6.cjs.entry.js +630 -0
- package/dist/cjs/ez-combo-box.cjs.entry.js +250 -0
- package/dist/cjs/ez-date-time-input.cjs.entry.js +144 -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 +61 -190
- 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 +9 -27
- 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-262d703b.js +7442 -0
- package/dist/cjs/{index-9431aeeb.js → index-4e4bae01.js} +1 -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 +37 -0
- package/dist/collection/components/ez-button/ez-button.css +16 -1
- package/dist/collection/components/ez-button/ez-button.js +27 -2
- package/dist/collection/components/ez-calendar/ez-calendar.css +70 -3
- package/dist/collection/components/ez-calendar/ez-calendar.js +168 -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-combo-box/ez-combo-box.css +67 -51
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +1 -0
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.css +49 -0
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +254 -0
- package/dist/collection/components/ez-form/subcomponents/DataUnit.js +4 -4
- package/dist/collection/components/ez-form/subcomponents/structure/FormSheet.js +1 -1
- package/dist/collection/components/ez-form/subcomponents/structure/NavigationBar.js +2 -2
- 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 +7 -162
- package/dist/collection/components/ez-number-input/ez-number-input.js +90 -281
- 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-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.js +1 -0
- 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/custom-elements/index.d.ts +36 -6
- package/dist/custom-elements/index.js +120975 -3013
- package/dist/esm/ApplicationUtils-01280a9d.js +33 -0
- package/dist/esm/AssetsUtils-3803e935.js +22 -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 +24 -0
- package/dist/esm/ez-button_11.entry.js +111757 -0
- package/dist/esm/ez-calendar.entry.js +208 -0
- package/dist/esm/ez-collapsible-box_6.entry.js +621 -0
- package/dist/esm/ez-combo-box.entry.js +246 -0
- package/dist/esm/ez-date-time-input.entry.js +140 -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 +61 -190
- 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 +3 -21
- 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-fd3c8023.js → index-1dacecd3.js} +1 -5
- package/dist/esm/index-cfd5e193.js +7433 -0
- package/dist/esm/loader.js +3 -3
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-1ea8187e.entry.js +369 -0
- package/dist/ezui/p-37a611ea.js +1 -0
- package/dist/ezui/p-45689464.entry.js +1 -0
- package/dist/ezui/{p-a0b6eee2.entry.js → p-516d0e0f.entry.js} +1 -1
- package/dist/ezui/p-57291f97.entry.js +1 -0
- package/dist/ezui/{p-66954a04.entry.js → p-5a86e18a.entry.js} +1 -1
- package/dist/ezui/{p-823ff0a0.entry.js → p-5da66d3e.entry.js} +1 -1
- package/dist/ezui/p-69416bec.entry.js +1 -0
- package/dist/ezui/p-7107d7ef.js +1 -0
- package/dist/ezui/p-7ef97c5f.entry.js +1 -0
- package/dist/ezui/p-88f45a83.entry.js +1 -0
- package/dist/ezui/p-8c51a6aa.entry.js +1 -0
- package/dist/ezui/{p-e0ab3746.js → p-8f4851a6.js} +1 -1
- package/dist/ezui/p-9dfd537e.js +1 -0
- package/dist/ezui/{p-d443f020.entry.js → p-a18a2d7b.entry.js} +1 -1
- package/dist/ezui/p-a223eed8.entry.js +1 -0
- package/dist/ezui/p-b36308e7.js +1 -0
- package/dist/ezui/p-c0af195b.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-e7ee2836.entry.js +1 -0
- package/dist/ezui/p-f7b835cf.entry.js +1 -0
- package/dist/types/components/ez-application/ez-application.d.ts +12 -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-date-time-input/ez-date-time-input.d.ts +42 -0
- 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 +33 -50
- package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +1 -1
- package/dist/types/components/test-du/test-du.d.ts +6 -0
- package/dist/types/components.d.ts +283 -117
- package/dist/types/stencil-public-runtime.d.ts +6 -4
- package/dist/types/utils/{Application.d.ts → ApplicationUtils.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/RequestMetadata-2cd01e8a.js +0 -531
- package/dist/cjs/ez-button_16.cjs.entry.js +0 -4079
- 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/RequestMetadata-c265c9d5.js +0 -527
- package/dist/esm/ez-button_16.entry.js +0 -4060
- package/dist/esm/ez-list.entry.js +0 -170
- package/dist/esm/ez-modal.entry.js +0 -61
- package/dist/ezui/p-11ae4ae7.entry.js +0 -1
- package/dist/ezui/p-47fa3d6c.entry.js +0 -1
- package/dist/ezui/p-8ab6168f.entry.js +0 -1
- package/dist/ezui/p-9c1fb51c.entry.js +0 -1
- package/dist/ezui/p-9d85125b.entry.js +0 -1
- package/dist/ezui/p-9dfccb16.js +0 -1
- package/dist/ezui/p-a7b546b2.entry.js +0 -1
- package/dist/ezui/p-c833c94f.entry.js +0 -1
- package/dist/types/components/ez-numeric-input/ez-numeric-input.d.ts +0 -45
|
@@ -2,33 +2,33 @@
|
|
|
2
2
|
display: flex;
|
|
3
3
|
/* General */
|
|
4
4
|
/*@doc Define a camada em que o componente será exibido.*/
|
|
5
|
-
--popup-z-index: var(--most-visible, 3);
|
|
5
|
+
--ez-popup-z-index: var(--most-visible, 3);
|
|
6
6
|
|
|
7
7
|
/* Popup */
|
|
8
8
|
/*@doc Define a cor do texto do container do popup.*/
|
|
9
|
-
--popup__container--color: var(--title--primary, #2b3a54);
|
|
9
|
+
--ez-popup__container--color: var(--title--primary, #2b3a54);
|
|
10
10
|
/*@doc Define o espaçamento do container do popup.*/
|
|
11
|
-
--popup__container--padding: var(--space--large, 24px);
|
|
11
|
+
--ez-popup__container--padding: var(--space--large, 24px);
|
|
12
12
|
|
|
13
13
|
/* Popup Header */
|
|
14
14
|
/*@doc Define o espaçamento inferior do cabeçalho do popup.*/
|
|
15
|
-
--popup__header--padding-bottom: var(--space--medium, 12px);
|
|
15
|
+
--ez-popup__header--padding-bottom: var(--space--medium, 12px);
|
|
16
16
|
|
|
17
17
|
/* Title */
|
|
18
18
|
/*@doc Define a família da fonte do título do popup.*/
|
|
19
|
-
--popup__title--font-family: var(--font-pattern, "'Sora', 'Algerian'");
|
|
19
|
+
--ez-popup__title--font-family: var(--font-pattern, "'Sora', 'Algerian'");
|
|
20
20
|
/*@doc Define o tamanho da fonte do título do popup.*/
|
|
21
|
-
--popup__title--font-size: var(--title--extra-large, 24px);
|
|
21
|
+
--ez-popup__title--font-size: var(--title--extra-large, 24px);
|
|
22
22
|
/*@doc Define a cor da fonte do título do popup.*/
|
|
23
|
-
--popup__title--color: var(--title--primary, #2b3a54);
|
|
23
|
+
--ez-popup__title--color: var(--title--primary, #2b3a54);
|
|
24
24
|
/*@doc Define o peso da fonte do título do popup.*/
|
|
25
|
-
--popup__title--font-weight: var(--text-weight--large, 600);
|
|
25
|
+
--ez-popup__title--font-weight: var(--text-weight--large, 600);
|
|
26
26
|
|
|
27
27
|
/* Buttons */
|
|
28
28
|
/* @doc Define a cor do ícone do botão de fechamento. */
|
|
29
|
-
--popup__btn__close--icon-color: var(--title--primary, #2b3a54);
|
|
29
|
+
--ez-popup__btn__close--icon-color: var(--title--primary, #2b3a54);
|
|
30
30
|
/* @doc Contém o ícone do botão de fechamento. */
|
|
31
|
-
--popup__btn__close--icon: url('data:image/svg+xml;utf8,<svg width="14" height="14" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"><path d="M 8.2421753,6.9944578 13.743748,1.4930784 C 13.907781,1.3290628 14,1.1065946 14,0.87462511 14,0.64266712 13.907782,0.42019873 13.743748,0.25617155 13.579712,0.09215597 13.35727,6.48e-8 13.125266,6.48e-8 12.89338,6.48e-8 12.670821,0.09215634 12.506787,0.25617155 L 7.005215,5.7575508 1.5035972,0.25617155 C 1.3395631,0.09215597 1.1170968,6.48e-8 0.88511716,6.48e-8 0.65314917,6.48e-8 0.4306712,0.09215597 0.26663695,0.25617155 0.10260271,0.42019873 0.01045441,0.64266712 0.01045441,0.87462511 c 0,0.23196949 0.0921483,0.45443769 0.25618254,0.61845329 L 5.7682546,6.9944578 0.26663695,12.497027 c -0.0834745,0.08067 -0.15003245,0.1772 -0.19581514,0.283871 C 0.02505077,12.887561 9.831648e-4,13.002399 2.950369e-5,13.118395 -9.2415746e-4,13.234504 0.02125019,13.349689 0.06527245,13.457057 c 0.04401053,0.107479 0.10898307,0.205064 0.1911168,0.287137 0.0821454,0.08208 0.17979645,0.146888 0.28727561,0.190839 0.10747906,0.04395 0.22262954,0.06598 0.33872417,0.06493 0.116095,-10e-4 0.23082547,-0.0253 0.33747687,-0.07112 0.1066637,-0.04593 0.2031133,-0.112615 0.2837313,-0.196086 L 7.005215,8.2313646 12.506787,13.732768 c 0.164034,0.164027 0.386593,0.256125 0.618479,0.256125 0.232004,0 0.454446,-0.09209 0.618482,-0.256125 C 13.907781,13.568741 14,13.346308 14,13.114315 14,12.882323 13.90779,12.659888 13.743748,12.495861 Z"/></svg>');
|
|
31
|
+
--ez-popup__btn__close--icon: url('data:image/svg+xml;utf8,<svg width="14" height="14" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"><path d="M 8.2421753,6.9944578 13.743748,1.4930784 C 13.907781,1.3290628 14,1.1065946 14,0.87462511 14,0.64266712 13.907782,0.42019873 13.743748,0.25617155 13.579712,0.09215597 13.35727,6.48e-8 13.125266,6.48e-8 12.89338,6.48e-8 12.670821,0.09215634 12.506787,0.25617155 L 7.005215,5.7575508 1.5035972,0.25617155 C 1.3395631,0.09215597 1.1170968,6.48e-8 0.88511716,6.48e-8 0.65314917,6.48e-8 0.4306712,0.09215597 0.26663695,0.25617155 0.10260271,0.42019873 0.01045441,0.64266712 0.01045441,0.87462511 c 0,0.23196949 0.0921483,0.45443769 0.25618254,0.61845329 L 5.7682546,6.9944578 0.26663695,12.497027 c -0.0834745,0.08067 -0.15003245,0.1772 -0.19581514,0.283871 C 0.02505077,12.887561 9.831648e-4,13.002399 2.950369e-5,13.118395 -9.2415746e-4,13.234504 0.02125019,13.349689 0.06527245,13.457057 c 0.04401053,0.107479 0.10898307,0.205064 0.1911168,0.287137 0.0821454,0.08208 0.17979645,0.146888 0.28727561,0.190839 0.10747906,0.04395 0.22262954,0.06598 0.33872417,0.06493 0.116095,-10e-4 0.23082547,-0.0253 0.33747687,-0.07112 0.1066637,-0.04593 0.2031133,-0.112615 0.2837313,-0.196086 L 7.005215,8.2313646 12.506787,13.732768 c 0.164034,0.164027 0.386593,0.256125 0.618479,0.256125 0.232004,0 0.454446,-0.09209 0.618482,-0.256125 C 13.907781,13.568741 14,13.346308 14,13.114315 14,12.882323 13.90779,12.659888 13.743748,12.495861 Z"/></svg>');
|
|
32
32
|
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
position: fixed;
|
|
37
37
|
display: flex;
|
|
38
38
|
top: 0px;
|
|
39
|
-
z-index: var(--popup-z-index);
|
|
39
|
+
z-index: var(--ez-popup-z-index);
|
|
40
40
|
left: 0px;
|
|
41
41
|
width: 100%;
|
|
42
42
|
align-items: center;
|
|
@@ -58,37 +58,35 @@
|
|
|
58
58
|
.popup__container {
|
|
59
59
|
width: 100%;
|
|
60
60
|
max-height: 90%;
|
|
61
|
+
height: 100%;
|
|
61
62
|
display: flex;
|
|
62
63
|
flex-wrap: wrap;
|
|
63
64
|
overflow: hidden;
|
|
64
65
|
background: #FFFF;
|
|
65
|
-
color: var(--popup__container--color);
|
|
66
|
+
color: var(--ez-popup__container--color);
|
|
66
67
|
border-radius: 12px;
|
|
67
68
|
box-shadow: 0px 0px 16px rgba(0, 38, 111, 0.122);
|
|
68
69
|
box-sizing: border-box;
|
|
69
|
-
padding: var(--popup__container--padding)
|
|
70
|
+
padding: var(--ez-popup__container--padding)
|
|
70
71
|
}
|
|
71
72
|
|
|
72
73
|
.popup__content {
|
|
73
74
|
box-sizing: border-box;
|
|
74
75
|
max-height: 100%;
|
|
75
76
|
width: 100%;
|
|
76
|
-
display:
|
|
77
|
-
|
|
77
|
+
display: grid;
|
|
78
|
+
grid-template-rows: auto 1fr;
|
|
78
79
|
}
|
|
79
80
|
|
|
80
81
|
.popup__expandable-content {
|
|
81
82
|
box-sizing: border-box;
|
|
82
83
|
overflow-y: auto;
|
|
84
|
+
height: 100%;
|
|
83
85
|
width: 100%;
|
|
84
|
-
display: flex;
|
|
85
|
-
flex-wrap: wrap;
|
|
86
|
-
max-height: 80vh;
|
|
87
|
-
content-visibility: auto;
|
|
88
86
|
}
|
|
89
87
|
|
|
90
88
|
.popup__header {
|
|
91
|
-
padding-bottom: var(--popup__header--padding-bottom);
|
|
89
|
+
padding-bottom: var(--ez-popup__header--padding-bottom);
|
|
92
90
|
width: 100%;
|
|
93
91
|
display: flex;
|
|
94
92
|
}
|
|
@@ -97,10 +95,10 @@
|
|
|
97
95
|
display: flex;
|
|
98
96
|
margin: 0;
|
|
99
97
|
width: 100%;
|
|
100
|
-
font-family: var(--popup__title--font-family);
|
|
101
|
-
font-size: var(--popup__title--font-size);
|
|
102
|
-
font-weight: var(--popup__title--font-weight);
|
|
103
|
-
color: var(--popup__title--color);
|
|
98
|
+
font-family: var(--ez-popup__title--font-family);
|
|
99
|
+
font-size: var(--ez-popup__title--font-size);
|
|
100
|
+
font-weight: var(--ez-popup__title--font-weight);
|
|
101
|
+
color: var(--ez-popup__title--color);
|
|
104
102
|
line-height: 1.3;
|
|
105
103
|
}
|
|
106
104
|
|
|
@@ -118,11 +116,11 @@
|
|
|
118
116
|
.btn-close::after {
|
|
119
117
|
content: '';
|
|
120
118
|
display: flex;
|
|
121
|
-
background-color: var(--popup__btn__close--icon-color);
|
|
119
|
+
background-color: var(--ez-popup__btn__close--icon-color);
|
|
122
120
|
width: 14px;
|
|
123
121
|
height: 14px;
|
|
124
|
-
-webkit-mask-image: var(--popup__btn__close--icon);
|
|
125
|
-
mask-image: var(--popup__btn__close--icon);
|
|
122
|
+
-webkit-mask-image: var(--ez-popup__btn__close--icon);
|
|
123
|
+
mask-image: var(--ez-popup__btn__close--icon);
|
|
126
124
|
}
|
|
127
125
|
|
|
128
126
|
.btn-close--solo {
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
position: relative;
|
|
14
14
|
width: 100%;
|
|
15
15
|
overflow: hidden;
|
|
16
|
-
margin-bottom: var(--space--large, 24px);
|
|
17
16
|
/* @doc Define a sombra do box da aba. */
|
|
18
17
|
/* --tabselector__box--box-shadow: var(--shadow, 0px 0px 8px 0px #000); */
|
|
19
18
|
/*@doc Contém o ícone de voltar para a aba anterior.*/
|
|
@@ -45,7 +45,7 @@ export class EzTabselector {
|
|
|
45
45
|
}
|
|
46
46
|
this.setFocusedBtn(true, this.focusedIndex);
|
|
47
47
|
this.setFocusedTab(this.focusedIndex);
|
|
48
|
-
this.ezChange.emit();
|
|
48
|
+
this.ezChange.emit(this.selectedTab);
|
|
49
49
|
}
|
|
50
50
|
else if (ev.key === "Tab" || ev.key === "Escape") {
|
|
51
51
|
this.focusedIndex = undefined;
|
|
@@ -61,7 +61,7 @@ export class EzTabselector {
|
|
|
61
61
|
this.selectedIndex = index.toString();
|
|
62
62
|
this.focusedIndex = undefined;
|
|
63
63
|
this.selectedTab = tab;
|
|
64
|
-
this.ezChange.emit();
|
|
64
|
+
this.ezChange.emit(this.selectedTab);
|
|
65
65
|
this.setFocusedBtn(false, this.selectedIndex);
|
|
66
66
|
}
|
|
67
67
|
componentWillRender() {
|
|
@@ -261,7 +261,7 @@ export class EzTabselector {
|
|
|
261
261
|
"composed": true,
|
|
262
262
|
"docs": {
|
|
263
263
|
"tags": [],
|
|
264
|
-
"text": "Evento emitido ao clicar para abrir o popup (
|
|
264
|
+
"text": "Evento emitido ao clicar para abrir o popup (ezChange)."
|
|
265
265
|
},
|
|
266
266
|
"complexType": {
|
|
267
267
|
"original": "string",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Component, h, Prop, Element, Event, Method, Watch, forceUpdate } from "@stencil/core";
|
|
2
|
-
import
|
|
2
|
+
import ApplicationUtils from "../../utils/ApplicationUtils";
|
|
3
3
|
import RemoteFile from "./RemoteFile";
|
|
4
4
|
export class EzUpload {
|
|
5
5
|
constructor() {
|
|
@@ -61,7 +61,7 @@ export class EzUpload {
|
|
|
61
61
|
async addFile(file) {
|
|
62
62
|
const oldFile = this._filePointers.get(file.name);
|
|
63
63
|
if (oldFile) {
|
|
64
|
-
|
|
64
|
+
ApplicationUtils.confirm("Substituir arquivo", `Já existe um arquivo chamado "${file.name}". Deseja substituí-lo?`)
|
|
65
65
|
.then(ok => {
|
|
66
66
|
if (ok) {
|
|
67
67
|
if (this.isRemoteFile(oldFile)) {
|
|
@@ -133,7 +133,7 @@ export class EzUpload {
|
|
|
133
133
|
return true;
|
|
134
134
|
}
|
|
135
135
|
showError(message) {
|
|
136
|
-
|
|
136
|
+
ApplicationUtils.alert("Enviando arquivo", message);
|
|
137
137
|
}
|
|
138
138
|
formatBytes(bytes, decimals = 1) {
|
|
139
139
|
if (bytes === 0)
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { Component, h } from '@stencil/core';
|
|
2
|
+
import { DataUnit, DataType } from '@sankhyalabs/core';
|
|
3
|
+
export class TestDu {
|
|
4
|
+
constructor() {
|
|
5
|
+
this._dataUnit = new DataUnit("duteste");
|
|
6
|
+
}
|
|
7
|
+
componentDidLoad() {
|
|
8
|
+
this._dataUnit.dataLoader = (_dataUnit, _sort, _filters) => {
|
|
9
|
+
return Promise.resolve([
|
|
10
|
+
{ __record__id__: "registro1", CODPARC: 10, NOMEPARC: "Parceiro 10" },
|
|
11
|
+
{ __record__id__: "registro2", CODPARC: 20, NOMEPARC: "Parceiro 20" }
|
|
12
|
+
]);
|
|
13
|
+
};
|
|
14
|
+
this._dataUnit.metadata = {
|
|
15
|
+
name: "Parceiro",
|
|
16
|
+
label: "Parceiro",
|
|
17
|
+
fields: [
|
|
18
|
+
{
|
|
19
|
+
name: "CODPARC",
|
|
20
|
+
label: "Cód. Parceiro",
|
|
21
|
+
dataType: DataType.NUMBER
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
name: "NOMEPARC",
|
|
25
|
+
label: "Nome Parceiro",
|
|
26
|
+
dataType: DataType.TEXT
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
render() {
|
|
32
|
+
return (h("section", { class: "padding--large" },
|
|
33
|
+
h("div", { class: "row margin-bottom--large" },
|
|
34
|
+
h("h1", { class: "title title--primary" }, "Formul\u00E1rios")),
|
|
35
|
+
h("div", { class: "col col--sd-12", style: { height: "600px" } },
|
|
36
|
+
h("ez-grid", { dataUnit: this._dataUnit, "server-url": "https://www.ag-grid.com/example-assets/row-data.json", "multiple-selection": true, "page-size": "100" }))));
|
|
37
|
+
}
|
|
38
|
+
static get is() { return "test-du"; }
|
|
39
|
+
static get originalStyleUrls() { return {
|
|
40
|
+
"$": ["test-du.css"]
|
|
41
|
+
}; }
|
|
42
|
+
static get styleUrls() { return {
|
|
43
|
+
"$": ["test-du.css"]
|
|
44
|
+
}; }
|
|
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");
|
|
@@ -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:
|