@sankhyalabs/ezui 5.13.0-dev.2 → 5.13.0-dev.4
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/{constants-3a1d64fb.js → constants-2714478b.js} +2 -0
- package/dist/cjs/ez-combo-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js +24 -18
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-multi-selection-list.cjs.entry.js +7 -6
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/filter-column.cjs.entry.js +16 -4
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +10 -9
- package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +7 -1
- package/dist/collection/components/ez-grid/ez-grid.js +2 -8
- package/dist/collection/components/ez-grid/subcomponents/filter-column.js +16 -4
- package/dist/collection/components/ez-grid/utils/InMemoryFilterColumnDataSource.js +6 -0
- package/dist/collection/components/ez-icon/ez-icon.css +150 -137
- package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +8 -7
- package/dist/collection/utils/constants.js +1 -0
- package/dist/custom-elements/index.js +49 -29
- package/dist/esm/constants-4e0d35b7.js +5 -0
- package/dist/esm/ez-combo-box.entry.js +1 -1
- package/dist/esm/ez-form-view.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js +24 -18
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-multi-selection-list.entry.js +7 -6
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/filter-column.entry.js +16 -4
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-05e1f4e7.js +1 -0
- package/dist/ezui/{p-5e55a42b.entry.js → p-0c62cfda.entry.js} +1 -1
- package/dist/ezui/{p-b977d29c.entry.js → p-16b5126b.entry.js} +1 -1
- package/dist/ezui/{p-a0d8a94f.entry.js → p-214e748b.entry.js} +2 -2
- package/dist/ezui/{p-3078d25c.entry.js → p-7fd54841.entry.js} +1 -1
- package/dist/ezui/p-a42fe2ce.entry.js +1 -0
- package/dist/ezui/p-ee212571.entry.js +1 -0
- package/dist/types/components/ez-grid/controller/EzGridController.d.ts +0 -5
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +1 -3
- package/dist/types/components/ez-grid/utils/InMemoryFilterColumnDataSource.d.ts +1 -0
- package/dist/types/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.d.ts +1 -0
- package/dist/types/utils/constants.d.ts +1 -0
- package/package.json +1 -1
- package/dist/esm/constants-6dab64f7.js +0 -4
- package/dist/ezui/p-061f4d73.entry.js +0 -1
- package/dist/ezui/p-1e7c4986.entry.js +0 -1
- package/dist/ezui/p-27a01a26.js +0 -1
|
@@ -39,9 +39,9 @@ export class FilterColumn {
|
|
|
39
39
|
await this.hide();
|
|
40
40
|
this.fieldDescriptor = this.dataUnit.getField(configs.columnName);
|
|
41
41
|
this.buildIsTextSearch();
|
|
42
|
-
this.setOptions(configs.filteredOptions);
|
|
43
42
|
this.columnName = configs.columnName;
|
|
44
43
|
this.columnLabel = configs.columnLabel;
|
|
44
|
+
await this.setOptions(configs.filteredOptions);
|
|
45
45
|
await this.ezPopoverElement.show(this.calcTopPosition(), this.calculateLeftPosition(configs));
|
|
46
46
|
}
|
|
47
47
|
}
|
|
@@ -106,10 +106,22 @@ export class FilterColumn {
|
|
|
106
106
|
return this.fieldDescriptor.userInterface === UserInterface.SWITCH
|
|
107
107
|
|| this.fieldDescriptor.userInterface === UserInterface.CHECKBOX;
|
|
108
108
|
}
|
|
109
|
-
setOptions(selectedItems) {
|
|
109
|
+
async setOptions(selectedItems) {
|
|
110
110
|
const validateFieldUserInterfaceOptionSelector = this.hasToUseOptions();
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
if (validateFieldUserInterfaceOptionSelector) {
|
|
112
|
+
this.useOptions = validateFieldUserInterfaceOptionSelector;
|
|
113
|
+
this.options = validateFieldUserInterfaceOptionSelector ? this.buildOptions(selectedItems) : (selectedItems !== null && selectedItems !== void 0 ? selectedItems : null);
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
const options = await this.dataSource.getStaticOptions(this.columnName);
|
|
117
|
+
if (options != undefined) {
|
|
118
|
+
const selected = new Set((selectedItems || []).filter(item => item.check).map(item => item.label));
|
|
119
|
+
this.useOptions = true;
|
|
120
|
+
this.options = selected.size === 0 ? options : options.map(option => (Object.assign(Object.assign({}, option), { check: selected.has(option.label) })));
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
this.useOptions = false;
|
|
124
|
+
this.options = null;
|
|
113
125
|
}
|
|
114
126
|
buildOptions(selectedItems) {
|
|
115
127
|
var _a, _b;
|
|
@@ -11,6 +11,12 @@ export default class InMemoryFilterColumnDataSource {
|
|
|
11
11
|
this.originalRecords = (_a = this.dataUnit.records) !== null && _a !== void 0 ? _a : [];
|
|
12
12
|
this.dataUnit.subscribe(this.onDataUnitAction);
|
|
13
13
|
}
|
|
14
|
+
getStaticOptions(fieldName) {
|
|
15
|
+
return new Promise(resolve => {
|
|
16
|
+
const options = this.originalRecords.map(item => this.buildFieldOption(item, fieldName));
|
|
17
|
+
resolve(this.removeDuplicatedOptions(options));
|
|
18
|
+
});
|
|
19
|
+
}
|
|
14
20
|
fetchData(filterTerm, fieldName) {
|
|
15
21
|
return new Promise(resolve => {
|
|
16
22
|
const filteredRecords = this.originalRecords.filter(record => this.includesSearchTerm(record, fieldName, filterTerm));
|
|
@@ -54,149 +54,162 @@ svg {
|
|
|
54
54
|
-moz-osx-font-smoothing: grayscale;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
|
+
|
|
57
58
|
.ez-icon-2chevron-down:before { content: "\ea01"; }
|
|
58
59
|
.ez-icon-2chevron-up:before { content: "\ea02"; }
|
|
59
60
|
.ez-icon-acao:before { content: "\ea03"; }
|
|
60
61
|
.ez-icon-account-outline:before { content: "\ea04"; }
|
|
61
62
|
.ez-icon-account:before { content: "\ea05"; }
|
|
62
63
|
.ez-icon-actions-sprite-v1:before { content: "\ea06"; }
|
|
63
|
-
.ez-icon-
|
|
64
|
-
.ez-icon-alert-circle:before { content: "\ea08"; }
|
|
65
|
-
.ez-icon-alert-
|
|
66
|
-
.ez-icon-alert-
|
|
67
|
-
.ez-icon-
|
|
68
|
-
.ez-icon-
|
|
69
|
-
.ez-icon-
|
|
70
|
-
.ez-icon-
|
|
71
|
-
.ez-icon-
|
|
72
|
-
.ez-icon-
|
|
73
|
-
.ez-icon-
|
|
74
|
-
.ez-icon-
|
|
75
|
-
.ez-icon-
|
|
76
|
-
.ez-icon-
|
|
77
|
-
.ez-icon-
|
|
78
|
-
.ez-icon-
|
|
79
|
-
.ez-icon-
|
|
80
|
-
.ez-icon-
|
|
81
|
-
.ez-icon-
|
|
82
|
-
.ez-icon-
|
|
83
|
-
.ez-icon-
|
|
84
|
-
.ez-icon-
|
|
85
|
-
.ez-icon-
|
|
86
|
-
.ez-icon-
|
|
87
|
-
.ez-icon-
|
|
88
|
-
.ez-icon-chevron-
|
|
89
|
-
.ez-icon-
|
|
90
|
-
.ez-icon-
|
|
91
|
-
.ez-icon-
|
|
92
|
-
.ez-icon-
|
|
93
|
-
.ez-icon-
|
|
94
|
-
.ez-icon-
|
|
95
|
-
.ez-icon-
|
|
96
|
-
.ez-icon-
|
|
97
|
-
.ez-icon-
|
|
98
|
-
.ez-icon-
|
|
99
|
-
.ez-icon-
|
|
100
|
-
.ez-icon-
|
|
101
|
-
.ez-icon-
|
|
102
|
-
.ez-icon-
|
|
103
|
-
.ez-icon-
|
|
104
|
-
.ez-icon-
|
|
105
|
-
.ez-icon-
|
|
106
|
-
.ez-icon-
|
|
107
|
-
.ez-icon-
|
|
108
|
-
.ez-icon-
|
|
109
|
-
.ez-icon-
|
|
110
|
-
.ez-icon-
|
|
111
|
-
.ez-icon-
|
|
112
|
-
.ez-icon-
|
|
113
|
-
.ez-icon-
|
|
114
|
-
.ez-icon-
|
|
115
|
-
.ez-icon-
|
|
116
|
-
.ez-icon-
|
|
117
|
-
.ez-icon-
|
|
118
|
-
.ez-icon-
|
|
119
|
-
.ez-icon-
|
|
120
|
-
.ez-icon-
|
|
121
|
-
.ez-icon-
|
|
122
|
-
.ez-icon-
|
|
123
|
-
.ez-icon-
|
|
124
|
-
.ez-icon-
|
|
125
|
-
.ez-icon-
|
|
126
|
-
.ez-icon-
|
|
127
|
-
.ez-icon-
|
|
128
|
-
.ez-icon-
|
|
129
|
-
.ez-icon-
|
|
130
|
-
.ez-icon-
|
|
131
|
-
.ez-icon-
|
|
132
|
-
.ez-icon-
|
|
133
|
-
.ez-icon-
|
|
134
|
-
.ez-icon-
|
|
135
|
-
.ez-icon-
|
|
136
|
-
.ez-icon-
|
|
137
|
-
.ez-icon-
|
|
138
|
-
.ez-icon-
|
|
139
|
-
.ez-icon-
|
|
140
|
-
.ez-icon-
|
|
141
|
-
.ez-icon-
|
|
142
|
-
.ez-icon-
|
|
143
|
-
.ez-icon-
|
|
144
|
-
.ez-icon-
|
|
145
|
-
.ez-icon-
|
|
146
|
-
.ez-icon-
|
|
147
|
-
.ez-icon-
|
|
148
|
-
.ez-icon-
|
|
149
|
-
.ez-icon-
|
|
150
|
-
.ez-icon-
|
|
151
|
-
.ez-icon-
|
|
152
|
-
.ez-icon-
|
|
153
|
-
.ez-icon-
|
|
154
|
-
.ez-icon-
|
|
155
|
-
.ez-icon-
|
|
156
|
-
.ez-icon-
|
|
157
|
-
.ez-icon-
|
|
158
|
-
.ez-icon-
|
|
159
|
-
.ez-icon-
|
|
160
|
-
.ez-icon-
|
|
161
|
-
.ez-icon-
|
|
162
|
-
.ez-icon-
|
|
163
|
-
.ez-icon-
|
|
164
|
-
.ez-icon-
|
|
165
|
-
.ez-icon-
|
|
166
|
-
.ez-icon-
|
|
167
|
-
.ez-icon-
|
|
168
|
-
.ez-icon-
|
|
169
|
-
.ez-icon-
|
|
170
|
-
.ez-icon-
|
|
171
|
-
.ez-icon-
|
|
172
|
-
.ez-icon-
|
|
173
|
-
.ez-icon-
|
|
174
|
-
.ez-icon-
|
|
175
|
-
.ez-icon-
|
|
176
|
-
.ez-icon-
|
|
177
|
-
.ez-icon-
|
|
178
|
-
.ez-icon-
|
|
179
|
-
.ez-icon-
|
|
180
|
-
.ez-icon-
|
|
181
|
-
.ez-icon-
|
|
182
|
-
.ez-icon-
|
|
183
|
-
.ez-icon-
|
|
184
|
-
.ez-icon-
|
|
185
|
-
.ez-icon-
|
|
186
|
-
.ez-icon-
|
|
187
|
-
.ez-icon-
|
|
188
|
-
.ez-icon-
|
|
189
|
-
.ez-icon-
|
|
190
|
-
.ez-icon-
|
|
191
|
-
.ez-icon-
|
|
192
|
-
.ez-icon-
|
|
193
|
-
.ez-icon-
|
|
194
|
-
.ez-icon-
|
|
195
|
-
.ez-icon-
|
|
196
|
-
.ez-icon-
|
|
197
|
-
.ez-icon-
|
|
198
|
-
.ez-icon-
|
|
199
|
-
.ez-icon-
|
|
64
|
+
.ez-icon-actions-sprite-v2:before { content: "\ea07"; }
|
|
65
|
+
.ez-icon-alert-circle-inverted:before { content: "\ea08"; }
|
|
66
|
+
.ez-icon-alert-circle:before { content: "\ea09"; }
|
|
67
|
+
.ez-icon-alert-mail:before { content: "\ea0a"; }
|
|
68
|
+
.ez-icon-alert-popup:before { content: "\ea0b"; }
|
|
69
|
+
.ez-icon-anexo:before { content: "\ea0c"; }
|
|
70
|
+
.ez-icon-antecipacao:before { content: "\ea0d"; }
|
|
71
|
+
.ez-icon-apps:before { content: "\ea0e"; }
|
|
72
|
+
.ez-icon-arrow-forward:before { content: "\ea0f"; }
|
|
73
|
+
.ez-icon-arrow-upward:before { content: "\ea10"; }
|
|
74
|
+
.ez-icon-arrow_back:before { content: "\ea11"; }
|
|
75
|
+
.ez-icon-arrow_downward:before { content: "\ea12"; }
|
|
76
|
+
.ez-icon-baixa:before { content: "\ea13"; }
|
|
77
|
+
.ez-icon-balance:before { content: "\ea14"; }
|
|
78
|
+
.ez-icon-bell-inverted:before { content: "\ea15"; }
|
|
79
|
+
.ez-icon-bell:before { content: "\ea16"; }
|
|
80
|
+
.ez-icon-boleto:before { content: "\ea17"; }
|
|
81
|
+
.ez-icon-boolean:before { content: "\ea18"; }
|
|
82
|
+
.ez-icon-business-center:before { content: "\ea19"; }
|
|
83
|
+
.ez-icon-calendar-clock:before { content: "\ea1a"; }
|
|
84
|
+
.ez-icon-calendar:before { content: "\ea1b"; }
|
|
85
|
+
.ez-icon-cash-remove:before { content: "\ea1c"; }
|
|
86
|
+
.ez-icon-check-circle-inverted:before { content: "\ea1d"; }
|
|
87
|
+
.ez-icon-check-circle:before { content: "\ea1e"; }
|
|
88
|
+
.ez-icon-check:before { content: "\ea1f"; }
|
|
89
|
+
.ez-icon-chevron-down:before { content: "\ea20"; }
|
|
90
|
+
.ez-icon-chevron-left:before { content: "\ea21"; }
|
|
91
|
+
.ez-icon-chevron-right:before { content: "\ea22"; }
|
|
92
|
+
.ez-icon-chevron-up:before { content: "\ea23"; }
|
|
93
|
+
.ez-icon-circle--medium:before { content: "\ea24"; }
|
|
94
|
+
.ez-icon-circle:before { content: "\ea25"; }
|
|
95
|
+
.ez-icon-cleaning:before { content: "\ea26"; }
|
|
96
|
+
.ez-icon-clipboard:before { content: "\ea27"; }
|
|
97
|
+
.ez-icon-close:before { content: "\ea28"; }
|
|
98
|
+
.ez-icon-cobrar:before { content: "\ea29"; }
|
|
99
|
+
.ez-icon-code:before { content: "\ea2a"; }
|
|
100
|
+
.ez-icon-configuration:before { content: "\ea2b"; }
|
|
101
|
+
.ez-icon-content-cut:before { content: "\ea2c"; }
|
|
102
|
+
.ez-icon-copy:before { content: "\ea2d"; }
|
|
103
|
+
.ez-icon-credit_card:before { content: "\ea2e"; }
|
|
104
|
+
.ez-icon-crop:before { content: "\ea2f"; }
|
|
105
|
+
.ez-icon-custom:before { content: "\ea30"; }
|
|
106
|
+
.ez-icon-delete-file:before { content: "\ea31"; }
|
|
107
|
+
.ez-icon-delete:before { content: "\ea32"; }
|
|
108
|
+
.ez-icon-description:before { content: "\ea33"; }
|
|
109
|
+
.ez-icon-dividir:before { content: "\ea34"; }
|
|
110
|
+
.ez-icon-docx:before { content: "\ea35"; }
|
|
111
|
+
.ez-icon-dot-notification:before { content: "\ea36"; }
|
|
112
|
+
.ez-icon-dots-horizontal:before { content: "\ea37"; }
|
|
113
|
+
.ez-icon-dots-vertical:before { content: "\ea38"; }
|
|
114
|
+
.ez-icon-drag-indicator:before { content: "\ea39"; }
|
|
115
|
+
.ez-icon-dual-chevron-down:before { content: "\ea3a"; }
|
|
116
|
+
.ez-icon-dual-chevron-left:before { content: "\ea3b"; }
|
|
117
|
+
.ez-icon-dual-chevron-right:before { content: "\ea3c"; }
|
|
118
|
+
.ez-icon-dual-chevron-up:before { content: "\ea3d"; }
|
|
119
|
+
.ez-icon-edit-file:before { content: "\ea3e"; }
|
|
120
|
+
.ez-icon-edit-table:before { content: "\ea3f"; }
|
|
121
|
+
.ez-icon-edit-time:before { content: "\ea40"; }
|
|
122
|
+
.ez-icon-edit-value:before { content: "\ea41"; }
|
|
123
|
+
.ez-icon-edit:before { content: "\ea42"; }
|
|
124
|
+
.ez-icon-email:before { content: "\ea43"; }
|
|
125
|
+
.ez-icon-estorno:before { content: "\ea44"; }
|
|
126
|
+
.ez-icon-exe:before { content: "\ea45"; }
|
|
127
|
+
.ez-icon-expand:before { content: "\ea46"; }
|
|
128
|
+
.ez-icon-expandir_card:before { content: "\ea47"; }
|
|
129
|
+
.ez-icon-extrato:before { content: "\ea48"; }
|
|
130
|
+
.ez-icon-eye-off:before { content: "\ea49"; }
|
|
131
|
+
.ez-icon-eye:before { content: "\ea4a"; }
|
|
132
|
+
.ez-icon-favorite:before { content: "\ea4b"; }
|
|
133
|
+
.ez-icon-figma:before { content: "\ea4c"; }
|
|
134
|
+
.ez-icon-file-download:before { content: "\ea4d"; }
|
|
135
|
+
.ez-icon-file-upload:before { content: "\ea4e"; }
|
|
136
|
+
.ez-icon-filter:before { content: "\ea4f"; }
|
|
137
|
+
.ez-icon-find-file:before { content: "\ea50"; }
|
|
138
|
+
.ez-icon-find-page:before { content: "\ea51"; }
|
|
139
|
+
.ez-icon-format-color-fill:before { content: "\ea52"; }
|
|
140
|
+
.ez-icon-generic:before { content: "\ea53"; }
|
|
141
|
+
.ez-icon-gif:before { content: "\ea54"; }
|
|
142
|
+
.ez-icon-graph_bar:before { content: "\ea55"; }
|
|
143
|
+
.ez-icon-handshake:before { content: "\ea56"; }
|
|
144
|
+
.ez-icon-help-inverted:before { content: "\ea57"; }
|
|
145
|
+
.ez-icon-help:before { content: "\ea58"; }
|
|
146
|
+
.ez-icon-hide_menu:before { content: "\ea59"; }
|
|
147
|
+
.ez-icon-home:before { content: "\ea5a"; }
|
|
148
|
+
.ez-icon-icons104:before { content: "\ea5b"; }
|
|
149
|
+
.ez-icon-language:before { content: "\ea5c"; }
|
|
150
|
+
.ez-icon-launch:before { content: "\ea5d"; }
|
|
151
|
+
.ez-icon-lightbulb:before { content: "\ea5e"; }
|
|
152
|
+
.ez-icon-list:before { content: "\ea5f"; }
|
|
153
|
+
.ez-icon-location:before { content: "\ea60"; }
|
|
154
|
+
.ez-icon-lock-outline:before { content: "\ea61"; }
|
|
155
|
+
.ez-icon-lock:before { content: "\ea62"; }
|
|
156
|
+
.ez-icon-menu:before { content: "\ea63"; }
|
|
157
|
+
.ez-icon-mid:before { content: "\ea64"; }
|
|
158
|
+
.ez-icon-minus:before { content: "\ea65"; }
|
|
159
|
+
.ez-icon-money-off:before { content: "\ea66"; }
|
|
160
|
+
.ez-icon-money:before { content: "\ea67"; }
|
|
161
|
+
.ez-icon-more:before { content: "\ea68"; }
|
|
162
|
+
.ez-icon-mp3:before { content: "\ea69"; }
|
|
163
|
+
.ez-icon-mp4:before { content: "\ea6a"; }
|
|
164
|
+
.ez-icon-multiple-files:before { content: "\ea6b"; }
|
|
165
|
+
.ez-icon-north-west:before { content: "\ea6c"; }
|
|
166
|
+
.ez-icon-number:before { content: "\ea6d"; }
|
|
167
|
+
.ez-icon-ordem-ascendente:before { content: "\ea6e"; }
|
|
168
|
+
.ez-icon-ordem-descendente:before { content: "\ea6f"; }
|
|
169
|
+
.ez-icon-parcelar:before { content: "\ea70"; }
|
|
170
|
+
.ez-icon-pause:before { content: "\ea71"; }
|
|
171
|
+
.ez-icon-payments:before { content: "\ea72"; }
|
|
172
|
+
.ez-icon-pdf:before { content: "\ea73"; }
|
|
173
|
+
.ez-icon-play:before { content: "\ea74"; }
|
|
174
|
+
.ez-icon-plus:before { content: "\ea75"; }
|
|
175
|
+
.ez-icon-png:before { content: "\ea76"; }
|
|
176
|
+
.ez-icon-power:before { content: "\ea77"; }
|
|
177
|
+
.ez-icon-pptx:before { content: "\ea78"; }
|
|
178
|
+
.ez-icon-preview:before { content: "\ea79"; }
|
|
179
|
+
.ez-icon-print:before { content: "\ea7a"; }
|
|
180
|
+
.ez-icon-push-pin:before { content: "\ea7b"; }
|
|
181
|
+
.ez-icon-rateio:before { content: "\ea7c"; }
|
|
182
|
+
.ez-icon-receipt:before { content: "\ea7d"; }
|
|
183
|
+
.ez-icon-recolher_card:before { content: "\ea7e"; }
|
|
184
|
+
.ez-icon-restore:before { content: "\ea7f"; }
|
|
185
|
+
.ez-icon-return:before { content: "\ea80"; }
|
|
186
|
+
.ez-icon-sankhya-place:before { content: "\ea81"; }
|
|
187
|
+
.ez-icon-save:before { content: "\ea82"; }
|
|
188
|
+
.ez-icon-search:before { content: "\ea83"; }
|
|
189
|
+
.ez-icon-settings-inverted:before { content: "\ea84"; }
|
|
190
|
+
.ez-icon-settings:before { content: "\ea85"; }
|
|
191
|
+
.ez-icon-share:before { content: "\ea86"; }
|
|
192
|
+
.ez-icon-shield:before { content: "\ea87"; }
|
|
193
|
+
.ez-icon-show_menu:before { content: "\ea88"; }
|
|
194
|
+
.ez-icon-south-east:before { content: "\ea89"; }
|
|
195
|
+
.ez-icon-sync:before { content: "\ea8a"; }
|
|
196
|
+
.ez-icon-table:before { content: "\ea8b"; }
|
|
197
|
+
.ez-icon-tag_code:before { content: "\ea8c"; }
|
|
198
|
+
.ez-icon-text:before { content: "\ea8d"; }
|
|
199
|
+
.ez-icon-timeline:before { content: "\ea8e"; }
|
|
200
|
+
.ez-icon-timer-outline:before { content: "\ea8f"; }
|
|
201
|
+
.ez-icon-trending-up:before { content: "\ea90"; }
|
|
202
|
+
.ez-icon-tune:before { content: "\ea91"; }
|
|
203
|
+
.ez-icon-txt:before { content: "\ea92"; }
|
|
204
|
+
.ez-icon-un-pin:before { content: "\ea93"; }
|
|
205
|
+
.ez-icon-unfold_less:before { content: "\ea94"; }
|
|
206
|
+
.ez-icon-unfold_more:before { content: "\ea95"; }
|
|
207
|
+
.ez-icon-user-circle:before { content: "\ea96"; }
|
|
208
|
+
.ez-icon-warning-outline:before { content: "\ea97"; }
|
|
209
|
+
.ez-icon-warning_triangle:before { content: "\ea98"; }
|
|
210
|
+
.ez-icon-whatshot:before { content: "\ea99"; }
|
|
211
|
+
.ez-icon-xlsx:before { content: "\ea9a"; }
|
|
212
|
+
.ez-icon-zip:before { content: "\ea9b"; }
|
|
200
213
|
|
|
201
214
|
/*
|
|
202
215
|
END CSS GENERATED BY EZ-DESIGN ICONS
|
|
@@ -152,13 +152,14 @@ export class EzMuiltiSelectionList {
|
|
|
152
152
|
}
|
|
153
153
|
scenarioToDisplay(view) {
|
|
154
154
|
const scenarios = {
|
|
155
|
-
[ViewScenarios.DATASOURCE_INIT]: this.buildInitViewWithDataSource(),
|
|
156
|
-
[ViewScenarios.DATASOURCE_RESULTS]: this.buildViewList(true),
|
|
157
|
-
[ViewScenarios.DATASOURCE_RESULTS_EMPTY]: this.buildViewEmptyResults(),
|
|
158
|
-
[ViewScenarios.OPTIONS_EMPTY]: this.buildViewEmptyResults(),
|
|
159
|
-
[ViewScenarios.OPTIONS]: this.buildViewList(false),
|
|
155
|
+
[ViewScenarios.DATASOURCE_INIT]: () => this.buildInitViewWithDataSource(),
|
|
156
|
+
[ViewScenarios.DATASOURCE_RESULTS]: () => this.buildViewList(true),
|
|
157
|
+
[ViewScenarios.DATASOURCE_RESULTS_EMPTY]: () => this.buildViewEmptyResults(),
|
|
158
|
+
[ViewScenarios.OPTIONS_EMPTY]: () => this.buildViewEmptyResults(),
|
|
159
|
+
[ViewScenarios.OPTIONS]: () => this.buildViewList(false),
|
|
160
160
|
};
|
|
161
|
-
|
|
161
|
+
const scenarioBuilder = scenarios[view];
|
|
162
|
+
return scenarioBuilder ? scenarioBuilder() : undefined;
|
|
162
163
|
}
|
|
163
164
|
render() {
|
|
164
165
|
return (h(Host, null, h("div", { class: "multi-selection" }, this.useOptions ? (h("ez-filter-input", { ref: (element) => (this.filterInput = element), label: `Buscar..`, onEzChange: this.handleSearchOnOption.bind(this) })) : (h("ez-search", { class: "multi-selection__input", label: `Buscar...`, ref: (element) => (this.searchInput = element), suppressEmptyOption: true, showOptionValue: false, showSelectedValue: false, optionLoader: (search) => this.searchWithDataSource(search, this.columnName), onEzChange: this.handleSearchOnDataSource.bind(this), isTextSearch: this.isTextSearch })), h("ez-scroll", { class: "multi-selection__content-options" }, this.scenarioToDisplay(this.viewScenario)))));
|
|
@@ -234,7 +235,7 @@ export class EzMuiltiSelectionList {
|
|
|
234
235
|
},
|
|
235
236
|
"options": {
|
|
236
237
|
"type": "unknown",
|
|
237
|
-
"mutable":
|
|
238
|
+
"mutable": true,
|
|
238
239
|
"complexType": {
|
|
239
240
|
"original": "IMultiSelectionOption[]",
|
|
240
241
|
"resolved": "IMultiSelectionOption[]",
|