@sankhyalabs/ezui 5.20.0-dev.10 → 5.20.0-dev.12
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/ez-combo-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-date-input.cjs.entry.js +3 -0
- package/dist/cjs/ez-date-time-input.cjs.entry.js +3 -0
- package/dist/cjs/ez-grid.cjs.entry.js +7 -0
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +2 -10
- package/dist/cjs/ez-number-input.cjs.entry.js +3 -0
- package/dist/cjs/ez-popup.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +147 -0
- package/dist/cjs/ez-split-item.cjs.entry.js +3 -2
- package/dist/cjs/ez-split-panel.cjs.entry.js +6 -5
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/index-a7b0c73d.js +8 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +1 -1
- package/dist/collection/components/ez-date-input/ez-date-input.js +3 -0
- package/dist/collection/components/ez-date-time-input/ez-date-time-input.js +3 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +4 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +3 -0
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +2 -10
- package/dist/collection/components/ez-number-input/ez-number-input.js +3 -0
- package/dist/collection/components/ez-popup/ez-popup.css +2 -4
- package/dist/collection/components/ez-split-button/ez-split-button.css +229 -0
- package/dist/collection/components/ez-split-button/ez-split-button.js +436 -0
- package/dist/collection/components/ez-split-button/test/dropdownItems.js +42 -0
- package/dist/collection/components/ez-split-panel/ez-split-panel.css +0 -1
- package/dist/collection/components/ez-split-panel/ez-split-panel.js +5 -4
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +7 -3
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +23 -2
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +174 -21
- package/dist/esm/ez-combo-box.entry.js +1 -1
- package/dist/esm/ez-date-input.entry.js +3 -0
- package/dist/esm/ez-date-time-input.entry.js +3 -0
- package/dist/esm/ez-grid.entry.js +7 -0
- package/dist/esm/ez-multi-selection-list.entry.js +2 -10
- package/dist/esm/ez-number-input.entry.js +3 -0
- package/dist/esm/ez-popup.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +143 -0
- package/dist/esm/ez-split-item.entry.js +4 -3
- package/dist/esm/ez-split-panel.entry.js +6 -5
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/index-baa5e267.js +8 -4
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/{p-300bf244.entry.js → p-07cbffce.entry.js} +1 -1
- package/dist/ezui/{p-c0f1715f.entry.js → p-18e7870d.entry.js} +1 -1
- package/dist/ezui/p-25ed09c6.entry.js +1 -0
- package/dist/ezui/p-50186acb.entry.js +1 -0
- package/dist/ezui/{p-ab629244.entry.js → p-661f6820.entry.js} +1 -1
- package/dist/ezui/p-672dd122.entry.js +1 -0
- package/dist/ezui/{p-40f72de4.entry.js → p-784fe207.entry.js} +1 -1
- package/dist/ezui/{p-02c8831a.entry.js → p-abc23d6f.entry.js} +1 -1
- package/dist/ezui/p-b9fbf4e7.entry.js +1 -0
- package/dist/ezui/p-e562d05e.entry.js +1 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +1 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +1 -0
- package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +0 -1
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +89 -0
- package/dist/types/components/ez-split-button/test/dropdownItems.d.ts +2 -0
- package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +5 -0
- package/dist/types/components.d.ts +123 -0
- package/package.json +2 -1
- package/react/components.d.ts +1 -0
- package/react/components.js +1 -0
- package/react/components.js.map +1 -1
- package/dist/ezui/p-133fae4a.entry.js +0 -1
- package/dist/ezui/p-24d3fede.entry.js +0 -1
- package/dist/ezui/p-596634e9.entry.js +0 -1
- package/dist/ezui/p-cd0499a2.entry.js +0 -1
|
@@ -31,6 +31,9 @@ export default class DataSource {
|
|
|
31
31
|
break;
|
|
32
32
|
case Action.LOADING_DATA:
|
|
33
33
|
this._waitingForLoad = true;
|
|
34
|
+
if (EZ_GRID_LOADING_SOURCE !== action.payload.source) {
|
|
35
|
+
this._controller.clearFilter();
|
|
36
|
+
}
|
|
34
37
|
this._controller.refresh();
|
|
35
38
|
break;
|
|
36
39
|
case Action.DATA_LOADED:
|
|
@@ -137,16 +137,8 @@ export class EzMuiltiSelectionList {
|
|
|
137
137
|
}
|
|
138
138
|
handleChangeSelectedItem(event) {
|
|
139
139
|
const { detail: itemCheckSelected } = event;
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
return Object.assign(Object.assign({}, item), { check: itemCheckSelected.check });
|
|
143
|
-
}
|
|
144
|
-
return item;
|
|
145
|
-
});
|
|
146
|
-
this.clearInputs();
|
|
147
|
-
}
|
|
148
|
-
clearInputs() {
|
|
149
|
-
this.filterInput ? (this.filterInput.value = '') : (this.searchInput.value = '');
|
|
140
|
+
const itemSelected = this.filteredOptions.find(item => item.label === itemCheckSelected.label);
|
|
141
|
+
itemSelected.check = itemCheckSelected.check;
|
|
150
142
|
}
|
|
151
143
|
buildViewList(hasDelete) {
|
|
152
144
|
return (h(Fragment, null, this.displayOptionToCheckAllItems && (h("ez-check", { ref: (element) => (this.checkInput = element), label: "Selecionar todos", class: "multi-selection__select-all", onEzChange: this.handleChangeSelectAllItems.bind(this) })), h("ez-list", { class: "multi-selection__list", dataSource: this.displayOptions, listMode: "check", hoverFeedback: true, onEzCheckChange: this.handleChangeSelectedItem.bind(this), itemSlotBuilder: hasDelete ? this.buildDeleteIconSlot.bind(this) : null })));
|
|
@@ -107,6 +107,9 @@ export class EzNumberInput {
|
|
|
107
107
|
this.ezCancelWaitingChange.emit();
|
|
108
108
|
}
|
|
109
109
|
handleBlur() {
|
|
110
|
+
if (!this._changePending) {
|
|
111
|
+
return;
|
|
112
|
+
}
|
|
110
113
|
try {
|
|
111
114
|
const parsedNumber = this.getParsedNumber();
|
|
112
115
|
if (parsedNumber !== undefined && isNaN(parsedNumber)) {
|
|
@@ -77,16 +77,14 @@
|
|
|
77
77
|
|
|
78
78
|
.popup__content {
|
|
79
79
|
box-sizing: border-box;
|
|
80
|
-
|
|
80
|
+
height: 100%;
|
|
81
81
|
width: 100%;
|
|
82
|
-
display: grid;
|
|
83
|
-
grid-template-rows: auto 1fr;
|
|
84
82
|
}
|
|
85
83
|
|
|
86
84
|
.popup__expandable-content {
|
|
87
85
|
box-sizing: border-box;
|
|
88
86
|
width: 100%;
|
|
89
|
-
height: 100
|
|
87
|
+
height: calc(100% - 44px);
|
|
90
88
|
}
|
|
91
89
|
|
|
92
90
|
.popup__header {
|
|
@@ -0,0 +1,229 @@
|
|
|
1
|
+
:host {
|
|
2
|
+
|
|
3
|
+
/* dimensions */
|
|
4
|
+
/*@doc Define a largura mínima do componente.*/
|
|
5
|
+
--ez-split-button--min-width: 24;
|
|
6
|
+
/*@doc Define a largura do componente.*/
|
|
7
|
+
--ez-split-button--width: 'auto';
|
|
8
|
+
/*@doc Define a altura do componente.*/
|
|
9
|
+
--ez-split-button__medium--height: 32px;
|
|
10
|
+
--ez-split-button__large--height: 42px;
|
|
11
|
+
/*@doc Define a largura do slot que contém o ícone.*/
|
|
12
|
+
--ez-split-button__medium-icon--width: 40px;
|
|
13
|
+
--ez-split-button__large-icon--width: 44px;
|
|
14
|
+
/*@doc Define o espaçamento entre o ícone e o label.*/
|
|
15
|
+
--ez-split-button__inline__icon--gap: 6px;
|
|
16
|
+
/*@doc Define o espaçamento superior ao label.*/
|
|
17
|
+
--ez-split-button__label--padding-top: 0px;
|
|
18
|
+
/*@doc Define o espaçamento inferior ao label.*/
|
|
19
|
+
--ez-split-button__label--padding-bottom: 0px;
|
|
20
|
+
/*@doc Define o espaçamento esquerdo ao ícone.*/
|
|
21
|
+
--ez-split-button__right-button--padding-left: 8px;
|
|
22
|
+
/* general */
|
|
23
|
+
/*@doc Define a cor do label.*/
|
|
24
|
+
--ez-split-button--color: var(--title--primary, #FFF);
|
|
25
|
+
/*@doc Define o tamanho do label.*/
|
|
26
|
+
--ez-split-button--font-size: var(--text--medium, 14px);
|
|
27
|
+
/*@doc Define a família da fonte do label.*/
|
|
28
|
+
--ez-split-button--font-family: var(--font-pattern, Arial);
|
|
29
|
+
/*@doc Define o peso da fonte do label.*/
|
|
30
|
+
--ez-split-button--font-weight: var(--text-weight--large);
|
|
31
|
+
/*@doc Define a cor de fundo do botão.*/
|
|
32
|
+
--ez-split-button--background-color: var(--background--medium, #008561);
|
|
33
|
+
/*@doc Define o raio da borda do botão.*/
|
|
34
|
+
--ez-split-button--border-radius: var(--border--radius-large, 12px);
|
|
35
|
+
/*@doc Define o estilo da borda do botão.*/
|
|
36
|
+
--ez-split-button--border: none;
|
|
37
|
+
/*@doc Define o alinhamento horizontal do conteúdo do botão.*/
|
|
38
|
+
--ez-split-button--justify-content: center;
|
|
39
|
+
/*@doc Define a cor do texto e do ícone quando o cursor está sobre o botão.*/
|
|
40
|
+
--ez-split-button--hover-color: var(--color--primary-600);
|
|
41
|
+
/*@doc Define a cor de fundo quando o cursor está sobre o botão.*/
|
|
42
|
+
--ez-split-button--hover--background-color: var(--background--medium, var(--ez-split-button--background-color));
|
|
43
|
+
/*@doc Define a cor do texto quando o botão está desabilitado.*/
|
|
44
|
+
--ez-split-button--disabled-color: var(--text--disable);
|
|
45
|
+
/*@doc Define a cor de fundo quando o botão está desabilitado.*/
|
|
46
|
+
--ez-split-button--disabled--background-color: var(--color--disable-secondary);
|
|
47
|
+
/*@doc Define o estido da borda quando o botão está selecionado.*/
|
|
48
|
+
--ez-split-button--focus--border: var(--border--medium, 2px) var(--color--primary-300);
|
|
49
|
+
/*@doc Define a sombra do botão quando selecionado.*/
|
|
50
|
+
--ez-split-button--focus--box-shadow: none;
|
|
51
|
+
/*@doc Define a cor do texto e do ícone ao ativar o botão.*/
|
|
52
|
+
--ez-split-button--active-color: var(--color--primary-700);
|
|
53
|
+
/*@doc Define a cor do fundo ao ativar o botão.*/
|
|
54
|
+
--ez-split-button--active--background-color: var(--background--strong);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
ez-icon {
|
|
58
|
+
--ez-icon--color: inherit;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
button {
|
|
62
|
+
/*private*/
|
|
63
|
+
position: relative;
|
|
64
|
+
display: flex;
|
|
65
|
+
align-items: center;
|
|
66
|
+
margin: 0;
|
|
67
|
+
cursor: pointer;
|
|
68
|
+
transition: background-color 0.2s linear;
|
|
69
|
+
white-space: nowrap;
|
|
70
|
+
|
|
71
|
+
/*public*/
|
|
72
|
+
min-width: var(--ez-split-button--min-width);
|
|
73
|
+
width: var(--ez-split-button--width);
|
|
74
|
+
height: var(--ez-split-button__medium--height);
|
|
75
|
+
font-family: var(--ez-split-button--font-family);
|
|
76
|
+
font-size: var(--ez-split-button--font-size);
|
|
77
|
+
font-weight: var(--ez-split-button--font-weight);
|
|
78
|
+
padding: var(--ez-split-button__label--padding-top) 0 var(--ez-split-button__label--padding-bottom) 0;
|
|
79
|
+
border-top-left-radius: var(--ez-split-button--border-radius);
|
|
80
|
+
border-bottom-left-radius: var(--ez-split-button--border-radius);
|
|
81
|
+
background-color: var(--ez-split-button--background-color);
|
|
82
|
+
color: var(--ez-split-button--color);
|
|
83
|
+
fill: var(--ez-split-button--color);
|
|
84
|
+
border: var(--ez-split-button--border);
|
|
85
|
+
justify-content: var(--ez-split-button--justify-content);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
label {
|
|
89
|
+
cursor: pointer;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
button:active {
|
|
93
|
+
outline: none;
|
|
94
|
+
box-shadow: none;
|
|
95
|
+
background-color: var(--ez-split-button--active--background-color);
|
|
96
|
+
color: var(--ez-split-button--active-color);
|
|
97
|
+
fill: var(--ez-split-button--active-color);
|
|
98
|
+
--ez-icon--color: var(--ez-split-button--active-color);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.ez-split-button__left-button:focus,
|
|
102
|
+
.ez-split-button__right-button:focus {
|
|
103
|
+
outline: var(--ez-split-button--focus--border);
|
|
104
|
+
box-shadow: var(--ez-split-button--focus--box-shadow);
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.ez-split-button__left-button:hover,
|
|
108
|
+
.ez-split-button__right-button:hover {
|
|
109
|
+
outline: none;
|
|
110
|
+
background-color: var(--ez-split-button--hover--background-color);
|
|
111
|
+
color: var(--ez-split-button--hover-color);
|
|
112
|
+
fill: var(--ez-split-button--hover-color);
|
|
113
|
+
--ez-icon--color: var(--ez-split-button--hover-color);
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
.ez-split-button__left-button:disabled,
|
|
117
|
+
.ez-split-button__left-button:disabled label,
|
|
118
|
+
.ez-split-button__right-button:disabled{
|
|
119
|
+
background-color: var(--ez-split-button--disabled--background-color);
|
|
120
|
+
color: var(--ez-split-button--disabled-color);
|
|
121
|
+
fill: var(--ez-split-button--disabled-color);
|
|
122
|
+
border: none;
|
|
123
|
+
--ez-icon--color: var(--ez-split-button--disabled-color);
|
|
124
|
+
cursor: not-allowed;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
button.large {
|
|
128
|
+
height: var(--ez-split-button__large--height);
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
button.medium {
|
|
132
|
+
height: var(--ez-split-button__medium--height);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
/*default*/
|
|
136
|
+
.default label {
|
|
137
|
+
padding: var(--ez-split-button__label--padding-top) 12px var(--ez-split-button__label--padding-bottom) 20px;
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
/*icon-left*/
|
|
141
|
+
.icon-left {
|
|
142
|
+
gap: var(--ez-split-button__inline__icon--gap);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.icon-left label {
|
|
146
|
+
padding-right: 12px;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.icon-left ez-icon {
|
|
150
|
+
padding-left: 20px;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/*icon-only*/
|
|
154
|
+
.icon-only {
|
|
155
|
+
padding-left: 12px;
|
|
156
|
+
padding-right: 12px;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
.ez-split-button__right-button {
|
|
160
|
+
border-top-right-radius: var(--ez-split-button--border-radius);
|
|
161
|
+
border-bottom-right-radius: var(--ez-split-button--border-radius);
|
|
162
|
+
border-top-left-radius: 0;
|
|
163
|
+
border-bottom-left-radius:0;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.ez-split-button__right-button--medium {
|
|
167
|
+
min-width: var(--ez-split-button__medium-icon--width);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.ez-split-button__right-button--large {
|
|
171
|
+
min-width: var(--ez-split-button__large-icon--width);
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.ez-split-button__right-button--divider {
|
|
175
|
+
top: 10%;
|
|
176
|
+
bottom: 10%;
|
|
177
|
+
}
|
|
178
|
+
.ez-split-button__right-button--divider:before {
|
|
179
|
+
content: "";
|
|
180
|
+
position: absolute;
|
|
181
|
+
left: 0;
|
|
182
|
+
border-left: 1px solid rgba(0, 0, 0, 20%);
|
|
183
|
+
border-radius: 2px;
|
|
184
|
+
height: 75%;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
.btn-icon--medium {
|
|
188
|
+
min-width: --ez-split-button__medium-icon--width;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
.btn-icon--large {
|
|
192
|
+
min-width: --ez-split-button__large-icon--width;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
.ez-split-button__right-button-container {
|
|
196
|
+
position: absolute;
|
|
197
|
+
left: 0;
|
|
198
|
+
padding-left: var(--ez-split-button__right-button--padding-left);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
.label-icon {
|
|
202
|
+
display: flex;
|
|
203
|
+
flex-direction: row;
|
|
204
|
+
align-items: center;
|
|
205
|
+
color: var(--ez-split-button--color);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
.label-icon:active {
|
|
209
|
+
color: var(--ez-split-button--active-color);
|
|
210
|
+
fill: var(--ez-split-button--active-color);
|
|
211
|
+
--ez-icon--color: var(--ez-split-button--active-color);
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
.dropdown {
|
|
215
|
+
display: flex;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
.dropdown-content {
|
|
219
|
+
display: block;
|
|
220
|
+
position: absolute;
|
|
221
|
+
background-color: #f1f1f1;
|
|
222
|
+
min-width: 160px;
|
|
223
|
+
z-index: --ez-elevation--8;
|
|
224
|
+
border-radius: var(--ez-split-button--border-radius);
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
.dropdown-content > ez-dropdown {
|
|
228
|
+
position: relative;
|
|
229
|
+
}
|