@sankhyalabs/ezui 5.8.1 → 5.10.0
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-grid.cjs.entry.js +1 -0
- package/dist/cjs/ez-list.cjs.entry.js +52 -58
- package/dist/cjs/ez-popup.cjs.entry.js +4 -3
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +1 -0
- package/dist/collection/components/ez-list/ez-list.js +89 -66
- package/dist/collection/components/ez-popup/ez-popup.css +5 -0
- package/dist/collection/components/ez-popup/ez-popup.js +3 -2
- package/dist/custom-elements/index.js +58 -62
- package/dist/esm/ez-grid.entry.js +1 -0
- package/dist/esm/ez-list.entry.js +53 -59
- package/dist/esm/ez-popup.entry.js +4 -3
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-244dfe8a.entry.js +1 -0
- package/dist/ezui/{p-7c83718e.entry.js → p-b351b8bd.entry.js} +1 -1
- package/dist/ezui/p-e7fa0ad6.entry.js +1 -0
- package/dist/types/components/ez-list/ez-list.d.ts +13 -4
- package/dist/types/components.d.ts +15 -3
- package/package.json +1 -1
- package/dist/ezui/p-736f6fa5.entry.js +0 -1
- package/dist/ezui/p-d01dea06.entry.js +0 -1
|
@@ -11,6 +11,7 @@ export class EzList {
|
|
|
11
11
|
this.ezDraggable = false;
|
|
12
12
|
this.ezSelectable = false;
|
|
13
13
|
this.itemSlotBuilder = undefined;
|
|
14
|
+
this.itemLeftSlotBuilder = undefined;
|
|
14
15
|
this.hoverFeedback = false;
|
|
15
16
|
}
|
|
16
17
|
/**
|
|
@@ -40,12 +41,7 @@ export class EzList {
|
|
|
40
41
|
let newList = [...this._listGroupItems];
|
|
41
42
|
newList.forEach(groupItem => {
|
|
42
43
|
groupItem.items.forEach(item => {
|
|
43
|
-
|
|
44
|
-
item.selected = true;
|
|
45
|
-
}
|
|
46
|
-
else {
|
|
47
|
-
item.selected = false;
|
|
48
|
-
}
|
|
44
|
+
item.selected = item.id === selectedItem.id;
|
|
49
45
|
});
|
|
50
46
|
});
|
|
51
47
|
this._listGroupItems = newList;
|
|
@@ -53,26 +49,21 @@ export class EzList {
|
|
|
53
49
|
else {
|
|
54
50
|
let newList = [...this._listItems];
|
|
55
51
|
newList.forEach(item => {
|
|
56
|
-
|
|
57
|
-
item.selected = true;
|
|
58
|
-
}
|
|
59
|
-
else {
|
|
60
|
-
item.selected = false;
|
|
61
|
-
}
|
|
52
|
+
item.selected = item.id === selectedItem.id;
|
|
62
53
|
});
|
|
63
54
|
this._listItems = newList;
|
|
64
55
|
}
|
|
65
56
|
if (scrollToOption) {
|
|
66
57
|
let liElem = this.useGroups
|
|
67
|
-
? this._groupContainer.querySelector('li#item_' +
|
|
68
|
-
: this._itemContainer.querySelector('li#item_' +
|
|
58
|
+
? this._groupContainer.querySelector('li#item_' + selectedItem.id)
|
|
59
|
+
: this._itemContainer.querySelector('li#item_' + selectedItem.id);
|
|
69
60
|
if (liElem) {
|
|
70
61
|
liElem.scrollIntoView();
|
|
71
62
|
}
|
|
72
63
|
}
|
|
73
64
|
}
|
|
74
65
|
else {
|
|
75
|
-
this.removeSelection();
|
|
66
|
+
await this.removeSelection();
|
|
76
67
|
}
|
|
77
68
|
}
|
|
78
69
|
/**
|
|
@@ -104,16 +95,46 @@ export class EzList {
|
|
|
104
95
|
}
|
|
105
96
|
return this._listItems;
|
|
106
97
|
}
|
|
98
|
+
/**
|
|
99
|
+
* Limpa a seleção atual
|
|
100
|
+
*/
|
|
101
|
+
async removeSelection() {
|
|
102
|
+
if (this.useGroups) {
|
|
103
|
+
let newList = [...this._listGroupItems];
|
|
104
|
+
newList.forEach(groupItem => {
|
|
105
|
+
groupItem.items.forEach(item => {
|
|
106
|
+
item.selected = false;
|
|
107
|
+
});
|
|
108
|
+
});
|
|
109
|
+
this._listGroupItems = newList;
|
|
110
|
+
}
|
|
111
|
+
else {
|
|
112
|
+
let newList = [...this._listItems];
|
|
113
|
+
newList.forEach(item => {
|
|
114
|
+
item.selected = false;
|
|
115
|
+
});
|
|
116
|
+
this._listItems = newList;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
applyUUID(item) {
|
|
120
|
+
if (!item.id) {
|
|
121
|
+
item.id = StringUtils.generateUUID();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
107
124
|
createList() {
|
|
108
125
|
if (this.useGroups) {
|
|
109
126
|
let list = this.dataSource.map(item => item);
|
|
110
127
|
list.forEach(itemGroup => {
|
|
128
|
+
itemGroup.items.map(this.applyUUID);
|
|
111
129
|
this.sortGroup(itemGroup);
|
|
112
130
|
});
|
|
113
131
|
this._listGroupItems = list;
|
|
114
132
|
}
|
|
115
133
|
else {
|
|
116
|
-
this._listItems = this._listItemsHistory.length > 0 ? this._listItemsHistory : this.dataSource.map(item =>
|
|
134
|
+
this._listItems = this._listItemsHistory.length > 0 ? this._listItemsHistory : this.dataSource.map(item => {
|
|
135
|
+
this.applyUUID(item);
|
|
136
|
+
return item;
|
|
137
|
+
});
|
|
117
138
|
}
|
|
118
139
|
}
|
|
119
140
|
sortGroup(itemGroup) {
|
|
@@ -126,24 +147,6 @@ export class EzList {
|
|
|
126
147
|
}
|
|
127
148
|
}
|
|
128
149
|
}
|
|
129
|
-
removeSelection() {
|
|
130
|
-
if (this.useGroups) {
|
|
131
|
-
let newList = [...this._listGroupItems];
|
|
132
|
-
newList.forEach(groupItem => {
|
|
133
|
-
groupItem.items.forEach(item => {
|
|
134
|
-
item.selected = false;
|
|
135
|
-
});
|
|
136
|
-
});
|
|
137
|
-
this._listGroupItems = newList;
|
|
138
|
-
}
|
|
139
|
-
else {
|
|
140
|
-
let newList = [...this._listItems];
|
|
141
|
-
newList.forEach(item => {
|
|
142
|
-
item.selected = false;
|
|
143
|
-
});
|
|
144
|
-
this._listItems = newList;
|
|
145
|
-
}
|
|
146
|
-
}
|
|
147
150
|
buildIdDraggableListAndSelectable() {
|
|
148
151
|
const shadow = this._element.shadowRoot;
|
|
149
152
|
const draggableList = shadow.querySelectorAll('.draggable-list');
|
|
@@ -256,7 +259,7 @@ export class EzList {
|
|
|
256
259
|
if (((_a = newGroup.items) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
257
260
|
let newItem;
|
|
258
261
|
newGroup.items.forEach((item, index) => {
|
|
259
|
-
if (item.
|
|
262
|
+
if (item.id === this._dragStartItem.item.id) {
|
|
260
263
|
newItem = { item: item, index: index };
|
|
261
264
|
}
|
|
262
265
|
});
|
|
@@ -373,7 +376,7 @@ export class EzList {
|
|
|
373
376
|
if (this.useGroups) {
|
|
374
377
|
this._listGroupItems.every((group, groupIndex, listGroupItems) => {
|
|
375
378
|
let item = undefined;
|
|
376
|
-
let itemIndex = group.items.findIndex(item => item.
|
|
379
|
+
let itemIndex = group.items.findIndex(item => item.id == selectedItem.id);
|
|
377
380
|
if (itemIndex != undefined && itemIndex != -1) {
|
|
378
381
|
if (itemIndex === group.items.length - 1) {
|
|
379
382
|
if (groupIndex + 1 <= listGroupItems.length - 1) {
|
|
@@ -392,7 +395,7 @@ export class EzList {
|
|
|
392
395
|
});
|
|
393
396
|
}
|
|
394
397
|
else {
|
|
395
|
-
let itemIndex = this._listItems.findIndex(item => item.
|
|
398
|
+
let itemIndex = this._listItems.findIndex(item => item.id === selectedItem.id);
|
|
396
399
|
if (itemIndex >= 0 && itemIndex < this._listItems.length) {
|
|
397
400
|
nextItem = this._listItems[itemIndex + 1];
|
|
398
401
|
}
|
|
@@ -404,7 +407,7 @@ export class EzList {
|
|
|
404
407
|
if (this.useGroups) {
|
|
405
408
|
this._listGroupItems.every((group, groupIndex, listGroupItems) => {
|
|
406
409
|
let item = undefined;
|
|
407
|
-
let itemIndex = group.items.findIndex(item => item.
|
|
410
|
+
let itemIndex = group.items.findIndex(item => item.id === selectedItem.id);
|
|
408
411
|
if (itemIndex != undefined && itemIndex != -1) {
|
|
409
412
|
if (itemIndex === 0) {
|
|
410
413
|
if (groupIndex - 1 >= 0) {
|
|
@@ -423,7 +426,7 @@ export class EzList {
|
|
|
423
426
|
});
|
|
424
427
|
}
|
|
425
428
|
else {
|
|
426
|
-
let itemIndex = this._listItems.findIndex(item => item.
|
|
429
|
+
let itemIndex = this._listItems.findIndex(item => item.id === selectedItem.id);
|
|
427
430
|
if (itemIndex > 0 && itemIndex < this._listItems.length) {
|
|
428
431
|
previousItem = this._listItems[itemIndex - 1];
|
|
429
432
|
}
|
|
@@ -449,12 +452,6 @@ export class EzList {
|
|
|
449
452
|
});
|
|
450
453
|
event.stopPropagation();
|
|
451
454
|
}
|
|
452
|
-
getItemId(itemLabel) {
|
|
453
|
-
if (itemLabel) {
|
|
454
|
-
return itemLabel.replace(/[^a-z0-9_]/gi, '_');
|
|
455
|
-
}
|
|
456
|
-
return undefined;
|
|
457
|
-
}
|
|
458
455
|
getDivGroupId(groupName) {
|
|
459
456
|
if (groupName) {
|
|
460
457
|
return 'group-' + groupName.replace(/[^a-z0-9_]/gi, '_');
|
|
@@ -505,14 +502,11 @@ export class EzList {
|
|
|
505
502
|
groupOverlay.setAttribute('style', 'display:none');
|
|
506
503
|
});
|
|
507
504
|
}
|
|
508
|
-
getContainerItemBuilder(item, group, className) {
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
const customContent = this.itemSlotBuilder(item, group);
|
|
513
|
-
if (customContent == undefined) {
|
|
505
|
+
getContainerItemBuilder(slotPosition, item, group, className) {
|
|
506
|
+
var _a, _b;
|
|
507
|
+
const customContent = slotPosition === 'left' ? (_a = this.itemLeftSlotBuilder) === null || _a === void 0 ? void 0 : _a.call(this, item, group) : (_b = this.itemSlotBuilder) === null || _b === void 0 ? void 0 : _b.call(this, item, group);
|
|
508
|
+
if (customContent == undefined)
|
|
514
509
|
return;
|
|
515
|
-
}
|
|
516
510
|
if (typeof customContent !== 'string') {
|
|
517
511
|
return h("div", { class: className }, customContent);
|
|
518
512
|
}
|
|
@@ -522,10 +516,10 @@ export class EzList {
|
|
|
522
516
|
return (h(Host, { ref: el => (this._element = el) }, this.useGroups ? (h("div", { class: "group-container", ref: el => (this._groupContainer = el), tabIndex: 0, onKeyDown: event => {
|
|
523
517
|
this.keyDownHandler(event);
|
|
524
518
|
} }, this._listGroupItems.map(group => {
|
|
525
|
-
return (h("div", { id: this.getDivGroupId(group.group), class: "group", key: group.group + group.items.length, onDrop: () => this.onDropGroup(group) }, h("label", { draggable: false, class: "group-name", title: group.group }, group.group), h("section", { class: "section-container", onDragOver: ev => ev.preventDefault() }, h("div", { class: "group-items-container" }, h("div", { class: "draggable-list" }, group.items.map((item, index) => (h("li", Object.assign({ id: 'item_' +
|
|
519
|
+
return (h("div", { id: this.getDivGroupId(group.group), class: "group", key: group.group + group.items.length, onDrop: () => this.onDropGroup(group) }, h("label", { draggable: false, class: "group-name", title: group.group }, group.group), h("section", { class: "section-container", onDragOver: ev => ev.preventDefault() }, h("div", { class: "group-items-container" }, h("div", { class: "draggable-list" }, group.items.map((item, index) => (h("li", Object.assign({ id: 'item_' + item.id, class: {
|
|
526
520
|
'selectable-container': this.ezSelectable,
|
|
527
521
|
'hover-feedback': this.hoverFeedback,
|
|
528
|
-
}, key: 'item_' +
|
|
522
|
+
}, key: 'item_' + item.id }, {
|
|
529
523
|
[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: ElementIDUtils.getInternalIDInfo(`ezListItem__${StringUtils.replaceAccentuatedChars(item.label)}`),
|
|
530
524
|
}), h("div", { class: 'draggable' + (item.selected == true ? ' selected-item ' : '') + (this.ezSelectable == true ? ' selectable ' : ''), onClick: () => {
|
|
531
525
|
this.setSelection(item);
|
|
@@ -533,17 +527,17 @@ export class EzList {
|
|
|
533
527
|
group.sort ? undefined : this.removeOverClass();
|
|
534
528
|
}, onDragEnd: () => this.onDragEnd(), onDragStart: () => this.onDragStart(item, group, index), onDragOver: event => {
|
|
535
529
|
group.sort ? undefined : this.onDragOverItem(event);
|
|
536
|
-
}, onDrop: event => this.onDrop(event, { groupName: group.group, item: item, index: index }), draggable: this.ezDraggable }, h("div", { class: "item-content" }, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, this.listMode === 'regular' ? (h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label)) : (h("ez-check", { label: item.label, value: item.check, onEzChange: evt => this.ezCheckChange.emit({ id: item.id, label: item.label, check: evt.detail }) }))), this.itemSlotBuilder
|
|
530
|
+
}, onDrop: event => this.onDrop(event, { groupName: group.group, item: item, index: index }), draggable: this.ezDraggable }, h("div", { class: "item-content" }, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, this.listMode === 'regular' ? (h(Fragment, null, !!this.itemLeftSlotBuilder && this.getContainerItemBuilder('left', item, group), h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label))) : (h("ez-check", { label: item.label, value: item.check, onEzChange: evt => this.ezCheckChange.emit({ id: item.id, label: item.label, check: evt.detail }) }))), !!this.itemSlotBuilder && this.getContainerItemBuilder('right', item, group, 'slot-item')))))), h("div", { class: "last-droppable-space", onDragLeave: () => this.removeOverClass(), onDragOver: event => {
|
|
537
531
|
this.onDragOverLastIndex(event);
|
|
538
532
|
}, onDragEnd: () => this.onDragEnd(), onDrop: event => this.onDropLastIndex(event, group) })), group.sort ? (h("div", { id: this.getGroupOverlayId(group.group), class: "group-overlay" }, "Mover para ", group.group)) : undefined)));
|
|
539
533
|
}))) : (h("div", { class: "items-container", ref: el => (this._itemContainer = el), tabIndex: 0, onKeyDown: event => {
|
|
540
534
|
this.keyDownHandler(event);
|
|
541
|
-
} }, h("div", { class: "draggable-list" }, this._listItems.map((item, index) => (h("li", Object.assign({ id: 'item_' +
|
|
535
|
+
} }, h("div", { class: "draggable-list" }, this._listItems.map((item, index) => (h("li", Object.assign({ id: 'item_' + item.id, class: {
|
|
542
536
|
'selectable-container': this.ezSelectable,
|
|
543
537
|
'hover-feedback': this.hoverFeedback,
|
|
544
|
-
}, key: 'item_' +
|
|
538
|
+
}, key: 'item_' + item.id }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: ElementIDUtils.getInternalIDInfo(`ezListItem__${StringUtils.replaceAccentuatedChars(item.label)}`) }), h("div", { class: 'draggable' + (item.selected == true ? ' selected-item ' : '') + (this.ezSelectable == true ? ' selectable ' : ''), onDragStart: () => this.onDragStart({ item: item, index: index }), onClick: () => {
|
|
545
539
|
this.setSelection(item);
|
|
546
|
-
}, onDragLeave: () => this.removeOverClass(), onDragOver: event => this.onDragOverItem(event), onDragEnd: () => this.onDragEnd(), onDrop: event => this.onDrop(event, { item: item, index: index }), draggable: this.ezDraggable }, h("div", { class: "item-content" }, this.listMode === 'regular' ? (h(Fragment, null, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label))) : (h(Fragment, null, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("ez-check", { label: item.label, value: item.check, onEzChange: evt => this.ezCheckChange.emit({ id: item.id, label: item.label, check: evt.detail }) })))), this.itemSlotBuilder
|
|
540
|
+
}, onDragLeave: () => this.removeOverClass(), onDragOver: event => this.onDragOverItem(event), onDragEnd: () => this.onDragEnd(), onDrop: event => this.onDrop(event, { item: item, index: index }), draggable: this.ezDraggable }, h("div", { class: "item-content" }, this.listMode === 'regular' ? (h(Fragment, null, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, !!this.itemLeftSlotBuilder && this.getContainerItemBuilder('left', item), h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label))) : (h(Fragment, null, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("ez-check", { label: item.label, value: item.check, onEzChange: evt => this.ezCheckChange.emit({ id: item.id, label: item.label, check: evt.detail }) })))), !!this.itemSlotBuilder && this.getContainerItemBuilder('right', item))))), h("div", { class: "last-droppable-space", onDragLeave: () => this.removeOverClass(), onDragOver: event => {
|
|
547
541
|
this.onDragOverLastIndex(event);
|
|
548
542
|
}, onDragEnd: () => this.onDragEnd(), onDrop: event => this.onDropLastIndex(event) }))))));
|
|
549
543
|
}
|
|
@@ -667,17 +661,11 @@ export class EzList {
|
|
|
667
661
|
"type": "unknown",
|
|
668
662
|
"mutable": true,
|
|
669
663
|
"complexType": {
|
|
670
|
-
"original": "
|
|
664
|
+
"original": "SlotBuilder",
|
|
671
665
|
"resolved": "(item: ListItem, group?: ListGroup) => string | HTMLElement",
|
|
672
666
|
"references": {
|
|
673
|
-
"
|
|
674
|
-
"location": "local"
|
|
675
|
-
},
|
|
676
|
-
"ListGroup": {
|
|
667
|
+
"SlotBuilder": {
|
|
677
668
|
"location": "local"
|
|
678
|
-
},
|
|
679
|
-
"HTMLElement": {
|
|
680
|
-
"location": "global"
|
|
681
669
|
}
|
|
682
670
|
}
|
|
683
671
|
},
|
|
@@ -688,6 +676,25 @@ export class EzList {
|
|
|
688
676
|
"text": "Fun\u00E7\u00E3o builder que possibilita alterar como o item da lista vai ser apresentado.\nObserva\u00E7\u00E3o: No react ele se transforma em VNode e n\u00E3o como HTMLElement."
|
|
689
677
|
}
|
|
690
678
|
},
|
|
679
|
+
"itemLeftSlotBuilder": {
|
|
680
|
+
"type": "unknown",
|
|
681
|
+
"mutable": true,
|
|
682
|
+
"complexType": {
|
|
683
|
+
"original": "SlotBuilder",
|
|
684
|
+
"resolved": "(item: ListItem, group?: ListGroup) => string | HTMLElement",
|
|
685
|
+
"references": {
|
|
686
|
+
"SlotBuilder": {
|
|
687
|
+
"location": "local"
|
|
688
|
+
}
|
|
689
|
+
}
|
|
690
|
+
},
|
|
691
|
+
"required": false,
|
|
692
|
+
"optional": false,
|
|
693
|
+
"docs": {
|
|
694
|
+
"tags": [],
|
|
695
|
+
"text": "Fun\u00E7\u00E3o builder que possibilita gerar conte\u00FAdo din\u00E2mico \u00E0 esquerda do item da lista.\n* Observa\u00E7\u00E3o: No react ele se transforma em VNode e n\u00E3o como HTMLElement."
|
|
696
|
+
}
|
|
697
|
+
},
|
|
691
698
|
"hoverFeedback": {
|
|
692
699
|
"type": "boolean",
|
|
693
700
|
"mutable": true,
|
|
@@ -882,6 +889,22 @@ export class EzList {
|
|
|
882
889
|
"text": "Obt\u00E9m a lista de items ou grupos.",
|
|
883
890
|
"tags": []
|
|
884
891
|
}
|
|
892
|
+
},
|
|
893
|
+
"removeSelection": {
|
|
894
|
+
"complexType": {
|
|
895
|
+
"signature": "() => Promise<void>",
|
|
896
|
+
"parameters": [],
|
|
897
|
+
"references": {
|
|
898
|
+
"Promise": {
|
|
899
|
+
"location": "global"
|
|
900
|
+
}
|
|
901
|
+
},
|
|
902
|
+
"return": "Promise<void>"
|
|
903
|
+
},
|
|
904
|
+
"docs": {
|
|
905
|
+
"text": "Limpa a sele\u00E7\u00E3o atual",
|
|
906
|
+
"tags": []
|
|
907
|
+
}
|
|
885
908
|
}
|
|
886
909
|
};
|
|
887
910
|
}
|
|
@@ -3,11 +3,12 @@ import { FloatingManager } from '@sankhyalabs/core';
|
|
|
3
3
|
export class EzPopup {
|
|
4
4
|
constructor() {
|
|
5
5
|
this._sizeClasses = {
|
|
6
|
-
"x-small": "col--sd-3",
|
|
6
|
+
"x-small": "col--sd-3 ez-popup__size-limit--x-small",
|
|
7
7
|
"small": "col--sd-5",
|
|
8
8
|
"medium": "col--sd-6",
|
|
9
9
|
"large": "col--sd-9",
|
|
10
|
-
"x-large": "col--sd-11"
|
|
10
|
+
"x-large": "col--sd-11",
|
|
11
|
+
"default": "ez-popup__size-limit--x-small",
|
|
11
12
|
};
|
|
12
13
|
this.size = "medium";
|
|
13
14
|
this.opened = false;
|
|
@@ -123772,6 +123772,7 @@ class AgGridController {
|
|
|
123772
123772
|
}
|
|
123773
123773
|
this._gridOptions = {
|
|
123774
123774
|
localeText: gridTerms,
|
|
123775
|
+
enableRangeSelection: this._multipleSelection,
|
|
123775
123776
|
rowSelection: this._multipleSelection ? 'multiple' : 'single',
|
|
123776
123777
|
sortingOrder: ['desc', 'asc', null],
|
|
123777
123778
|
blockLoadDebounceMillis: this.BLOCK_LOAD_DEBOUNCE,
|
|
@@ -124927,6 +124928,7 @@ const EzList$1 = class extends HTMLElement$1 {
|
|
|
124927
124928
|
this.ezDraggable = false;
|
|
124928
124929
|
this.ezSelectable = false;
|
|
124929
124930
|
this.itemSlotBuilder = undefined;
|
|
124931
|
+
this.itemLeftSlotBuilder = undefined;
|
|
124930
124932
|
this.hoverFeedback = false;
|
|
124931
124933
|
}
|
|
124932
124934
|
/**
|
|
@@ -124956,12 +124958,7 @@ const EzList$1 = class extends HTMLElement$1 {
|
|
|
124956
124958
|
let newList = [...this._listGroupItems];
|
|
124957
124959
|
newList.forEach(groupItem => {
|
|
124958
124960
|
groupItem.items.forEach(item => {
|
|
124959
|
-
|
|
124960
|
-
item.selected = true;
|
|
124961
|
-
}
|
|
124962
|
-
else {
|
|
124963
|
-
item.selected = false;
|
|
124964
|
-
}
|
|
124961
|
+
item.selected = item.id === selectedItem.id;
|
|
124965
124962
|
});
|
|
124966
124963
|
});
|
|
124967
124964
|
this._listGroupItems = newList;
|
|
@@ -124969,26 +124966,21 @@ const EzList$1 = class extends HTMLElement$1 {
|
|
|
124969
124966
|
else {
|
|
124970
124967
|
let newList = [...this._listItems];
|
|
124971
124968
|
newList.forEach(item => {
|
|
124972
|
-
|
|
124973
|
-
item.selected = true;
|
|
124974
|
-
}
|
|
124975
|
-
else {
|
|
124976
|
-
item.selected = false;
|
|
124977
|
-
}
|
|
124969
|
+
item.selected = item.id === selectedItem.id;
|
|
124978
124970
|
});
|
|
124979
124971
|
this._listItems = newList;
|
|
124980
124972
|
}
|
|
124981
124973
|
if (scrollToOption) {
|
|
124982
124974
|
let liElem = this.useGroups
|
|
124983
|
-
? this._groupContainer.querySelector('li#item_' +
|
|
124984
|
-
: this._itemContainer.querySelector('li#item_' +
|
|
124975
|
+
? this._groupContainer.querySelector('li#item_' + selectedItem.id)
|
|
124976
|
+
: this._itemContainer.querySelector('li#item_' + selectedItem.id);
|
|
124985
124977
|
if (liElem) {
|
|
124986
124978
|
liElem.scrollIntoView();
|
|
124987
124979
|
}
|
|
124988
124980
|
}
|
|
124989
124981
|
}
|
|
124990
124982
|
else {
|
|
124991
|
-
this.removeSelection();
|
|
124983
|
+
await this.removeSelection();
|
|
124992
124984
|
}
|
|
124993
124985
|
}
|
|
124994
124986
|
/**
|
|
@@ -125020,16 +125012,46 @@ const EzList$1 = class extends HTMLElement$1 {
|
|
|
125020
125012
|
}
|
|
125021
125013
|
return this._listItems;
|
|
125022
125014
|
}
|
|
125015
|
+
/**
|
|
125016
|
+
* Limpa a seleção atual
|
|
125017
|
+
*/
|
|
125018
|
+
async removeSelection() {
|
|
125019
|
+
if (this.useGroups) {
|
|
125020
|
+
let newList = [...this._listGroupItems];
|
|
125021
|
+
newList.forEach(groupItem => {
|
|
125022
|
+
groupItem.items.forEach(item => {
|
|
125023
|
+
item.selected = false;
|
|
125024
|
+
});
|
|
125025
|
+
});
|
|
125026
|
+
this._listGroupItems = newList;
|
|
125027
|
+
}
|
|
125028
|
+
else {
|
|
125029
|
+
let newList = [...this._listItems];
|
|
125030
|
+
newList.forEach(item => {
|
|
125031
|
+
item.selected = false;
|
|
125032
|
+
});
|
|
125033
|
+
this._listItems = newList;
|
|
125034
|
+
}
|
|
125035
|
+
}
|
|
125036
|
+
applyUUID(item) {
|
|
125037
|
+
if (!item.id) {
|
|
125038
|
+
item.id = StringUtils$1.generateUUID();
|
|
125039
|
+
}
|
|
125040
|
+
}
|
|
125023
125041
|
createList() {
|
|
125024
125042
|
if (this.useGroups) {
|
|
125025
125043
|
let list = this.dataSource.map(item => item);
|
|
125026
125044
|
list.forEach(itemGroup => {
|
|
125045
|
+
itemGroup.items.map(this.applyUUID);
|
|
125027
125046
|
this.sortGroup(itemGroup);
|
|
125028
125047
|
});
|
|
125029
125048
|
this._listGroupItems = list;
|
|
125030
125049
|
}
|
|
125031
125050
|
else {
|
|
125032
|
-
this._listItems = this._listItemsHistory.length > 0 ? this._listItemsHistory : this.dataSource.map(item =>
|
|
125051
|
+
this._listItems = this._listItemsHistory.length > 0 ? this._listItemsHistory : this.dataSource.map(item => {
|
|
125052
|
+
this.applyUUID(item);
|
|
125053
|
+
return item;
|
|
125054
|
+
});
|
|
125033
125055
|
}
|
|
125034
125056
|
}
|
|
125035
125057
|
sortGroup(itemGroup) {
|
|
@@ -125042,24 +125064,6 @@ const EzList$1 = class extends HTMLElement$1 {
|
|
|
125042
125064
|
}
|
|
125043
125065
|
}
|
|
125044
125066
|
}
|
|
125045
|
-
removeSelection() {
|
|
125046
|
-
if (this.useGroups) {
|
|
125047
|
-
let newList = [...this._listGroupItems];
|
|
125048
|
-
newList.forEach(groupItem => {
|
|
125049
|
-
groupItem.items.forEach(item => {
|
|
125050
|
-
item.selected = false;
|
|
125051
|
-
});
|
|
125052
|
-
});
|
|
125053
|
-
this._listGroupItems = newList;
|
|
125054
|
-
}
|
|
125055
|
-
else {
|
|
125056
|
-
let newList = [...this._listItems];
|
|
125057
|
-
newList.forEach(item => {
|
|
125058
|
-
item.selected = false;
|
|
125059
|
-
});
|
|
125060
|
-
this._listItems = newList;
|
|
125061
|
-
}
|
|
125062
|
-
}
|
|
125063
125067
|
buildIdDraggableListAndSelectable() {
|
|
125064
125068
|
const shadow = this._element.shadowRoot;
|
|
125065
125069
|
const draggableList = shadow.querySelectorAll('.draggable-list');
|
|
@@ -125172,7 +125176,7 @@ const EzList$1 = class extends HTMLElement$1 {
|
|
|
125172
125176
|
if (((_a = newGroup.items) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
125173
125177
|
let newItem;
|
|
125174
125178
|
newGroup.items.forEach((item, index) => {
|
|
125175
|
-
if (item.
|
|
125179
|
+
if (item.id === this._dragStartItem.item.id) {
|
|
125176
125180
|
newItem = { item: item, index: index };
|
|
125177
125181
|
}
|
|
125178
125182
|
});
|
|
@@ -125289,7 +125293,7 @@ const EzList$1 = class extends HTMLElement$1 {
|
|
|
125289
125293
|
if (this.useGroups) {
|
|
125290
125294
|
this._listGroupItems.every((group, groupIndex, listGroupItems) => {
|
|
125291
125295
|
let item = undefined;
|
|
125292
|
-
let itemIndex = group.items.findIndex(item => item.
|
|
125296
|
+
let itemIndex = group.items.findIndex(item => item.id == selectedItem.id);
|
|
125293
125297
|
if (itemIndex != undefined && itemIndex != -1) {
|
|
125294
125298
|
if (itemIndex === group.items.length - 1) {
|
|
125295
125299
|
if (groupIndex + 1 <= listGroupItems.length - 1) {
|
|
@@ -125308,7 +125312,7 @@ const EzList$1 = class extends HTMLElement$1 {
|
|
|
125308
125312
|
});
|
|
125309
125313
|
}
|
|
125310
125314
|
else {
|
|
125311
|
-
let itemIndex = this._listItems.findIndex(item => item.
|
|
125315
|
+
let itemIndex = this._listItems.findIndex(item => item.id === selectedItem.id);
|
|
125312
125316
|
if (itemIndex >= 0 && itemIndex < this._listItems.length) {
|
|
125313
125317
|
nextItem = this._listItems[itemIndex + 1];
|
|
125314
125318
|
}
|
|
@@ -125320,7 +125324,7 @@ const EzList$1 = class extends HTMLElement$1 {
|
|
|
125320
125324
|
if (this.useGroups) {
|
|
125321
125325
|
this._listGroupItems.every((group, groupIndex, listGroupItems) => {
|
|
125322
125326
|
let item = undefined;
|
|
125323
|
-
let itemIndex = group.items.findIndex(item => item.
|
|
125327
|
+
let itemIndex = group.items.findIndex(item => item.id === selectedItem.id);
|
|
125324
125328
|
if (itemIndex != undefined && itemIndex != -1) {
|
|
125325
125329
|
if (itemIndex === 0) {
|
|
125326
125330
|
if (groupIndex - 1 >= 0) {
|
|
@@ -125339,7 +125343,7 @@ const EzList$1 = class extends HTMLElement$1 {
|
|
|
125339
125343
|
});
|
|
125340
125344
|
}
|
|
125341
125345
|
else {
|
|
125342
|
-
let itemIndex = this._listItems.findIndex(item => item.
|
|
125346
|
+
let itemIndex = this._listItems.findIndex(item => item.id === selectedItem.id);
|
|
125343
125347
|
if (itemIndex > 0 && itemIndex < this._listItems.length) {
|
|
125344
125348
|
previousItem = this._listItems[itemIndex - 1];
|
|
125345
125349
|
}
|
|
@@ -125365,12 +125369,6 @@ const EzList$1 = class extends HTMLElement$1 {
|
|
|
125365
125369
|
});
|
|
125366
125370
|
event.stopPropagation();
|
|
125367
125371
|
}
|
|
125368
|
-
getItemId(itemLabel) {
|
|
125369
|
-
if (itemLabel) {
|
|
125370
|
-
return itemLabel.replace(/[^a-z0-9_]/gi, '_');
|
|
125371
|
-
}
|
|
125372
|
-
return undefined;
|
|
125373
|
-
}
|
|
125374
125372
|
getDivGroupId(groupName) {
|
|
125375
125373
|
if (groupName) {
|
|
125376
125374
|
return 'group-' + groupName.replace(/[^a-z0-9_]/gi, '_');
|
|
@@ -125421,14 +125419,11 @@ const EzList$1 = class extends HTMLElement$1 {
|
|
|
125421
125419
|
groupOverlay.setAttribute('style', 'display:none');
|
|
125422
125420
|
});
|
|
125423
125421
|
}
|
|
125424
|
-
getContainerItemBuilder(item, group, className) {
|
|
125425
|
-
|
|
125426
|
-
|
|
125427
|
-
|
|
125428
|
-
const customContent = this.itemSlotBuilder(item, group);
|
|
125429
|
-
if (customContent == undefined) {
|
|
125422
|
+
getContainerItemBuilder(slotPosition, item, group, className) {
|
|
125423
|
+
var _a, _b;
|
|
125424
|
+
const customContent = slotPosition === 'left' ? (_a = this.itemLeftSlotBuilder) === null || _a === void 0 ? void 0 : _a.call(this, item, group) : (_b = this.itemSlotBuilder) === null || _b === void 0 ? void 0 : _b.call(this, item, group);
|
|
125425
|
+
if (customContent == undefined)
|
|
125430
125426
|
return;
|
|
125431
|
-
}
|
|
125432
125427
|
if (typeof customContent !== 'string') {
|
|
125433
125428
|
return h("div", { class: className }, customContent);
|
|
125434
125429
|
}
|
|
@@ -125438,10 +125433,10 @@ const EzList$1 = class extends HTMLElement$1 {
|
|
|
125438
125433
|
return (h(Host, { ref: el => (this._element = el) }, this.useGroups ? (h("div", { class: "group-container", ref: el => (this._groupContainer = el), tabIndex: 0, onKeyDown: event => {
|
|
125439
125434
|
this.keyDownHandler(event);
|
|
125440
125435
|
} }, this._listGroupItems.map(group => {
|
|
125441
|
-
return (h("div", { id: this.getDivGroupId(group.group), class: "group", key: group.group + group.items.length, onDrop: () => this.onDropGroup(group) }, h("label", { draggable: false, class: "group-name", title: group.group }, group.group), h("section", { class: "section-container", onDragOver: ev => ev.preventDefault() }, h("div", { class: "group-items-container" }, h("div", { class: "draggable-list" }, group.items.map((item, index) => (h("li", Object.assign({ id: 'item_' +
|
|
125436
|
+
return (h("div", { id: this.getDivGroupId(group.group), class: "group", key: group.group + group.items.length, onDrop: () => this.onDropGroup(group) }, h("label", { draggable: false, class: "group-name", title: group.group }, group.group), h("section", { class: "section-container", onDragOver: ev => ev.preventDefault() }, h("div", { class: "group-items-container" }, h("div", { class: "draggable-list" }, group.items.map((item, index) => (h("li", Object.assign({ id: 'item_' + item.id, class: {
|
|
125442
125437
|
'selectable-container': this.ezSelectable,
|
|
125443
125438
|
'hover-feedback': this.hoverFeedback,
|
|
125444
|
-
}, key: 'item_' +
|
|
125439
|
+
}, key: 'item_' + item.id }, {
|
|
125445
125440
|
[ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: ElementIDUtils.getInternalIDInfo(`ezListItem__${StringUtils$1.replaceAccentuatedChars(item.label)}`),
|
|
125446
125441
|
}), h("div", { class: 'draggable' + (item.selected == true ? ' selected-item ' : '') + (this.ezSelectable == true ? ' selectable ' : ''), onClick: () => {
|
|
125447
125442
|
this.setSelection(item);
|
|
@@ -125449,17 +125444,17 @@ const EzList$1 = class extends HTMLElement$1 {
|
|
|
125449
125444
|
group.sort ? undefined : this.removeOverClass();
|
|
125450
125445
|
}, onDragEnd: () => this.onDragEnd(), onDragStart: () => this.onDragStart(item, group, index), onDragOver: event => {
|
|
125451
125446
|
group.sort ? undefined : this.onDragOverItem(event);
|
|
125452
|
-
}, onDrop: event => this.onDrop(event, { groupName: group.group, item: item, index: index }), draggable: this.ezDraggable }, h("div", { class: "item-content" }, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, this.listMode === 'regular' ? (h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label)) : (h("ez-check", { label: item.label, value: item.check, onEzChange: evt => this.ezCheckChange.emit({ id: item.id, label: item.label, check: evt.detail }) }))), this.itemSlotBuilder
|
|
125447
|
+
}, onDrop: event => this.onDrop(event, { groupName: group.group, item: item, index: index }), draggable: this.ezDraggable }, h("div", { class: "item-content" }, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, this.listMode === 'regular' ? (h(Fragment, null, !!this.itemLeftSlotBuilder && this.getContainerItemBuilder('left', item, group), h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label))) : (h("ez-check", { label: item.label, value: item.check, onEzChange: evt => this.ezCheckChange.emit({ id: item.id, label: item.label, check: evt.detail }) }))), !!this.itemSlotBuilder && this.getContainerItemBuilder('right', item, group, 'slot-item')))))), h("div", { class: "last-droppable-space", onDragLeave: () => this.removeOverClass(), onDragOver: event => {
|
|
125453
125448
|
this.onDragOverLastIndex(event);
|
|
125454
125449
|
}, onDragEnd: () => this.onDragEnd(), onDrop: event => this.onDropLastIndex(event, group) })), group.sort ? (h("div", { id: this.getGroupOverlayId(group.group), class: "group-overlay" }, "Mover para ", group.group)) : undefined)));
|
|
125455
125450
|
}))) : (h("div", { class: "items-container", ref: el => (this._itemContainer = el), tabIndex: 0, onKeyDown: event => {
|
|
125456
125451
|
this.keyDownHandler(event);
|
|
125457
|
-
} }, h("div", { class: "draggable-list" }, this._listItems.map((item, index) => (h("li", Object.assign({ id: 'item_' +
|
|
125452
|
+
} }, h("div", { class: "draggable-list" }, this._listItems.map((item, index) => (h("li", Object.assign({ id: 'item_' + item.id, class: {
|
|
125458
125453
|
'selectable-container': this.ezSelectable,
|
|
125459
125454
|
'hover-feedback': this.hoverFeedback,
|
|
125460
|
-
}, key: 'item_' +
|
|
125455
|
+
}, key: 'item_' + item.id }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: ElementIDUtils.getInternalIDInfo(`ezListItem__${StringUtils$1.replaceAccentuatedChars(item.label)}`) }), h("div", { class: 'draggable' + (item.selected == true ? ' selected-item ' : '') + (this.ezSelectable == true ? ' selectable ' : ''), onDragStart: () => this.onDragStart({ item: item, index: index }), onClick: () => {
|
|
125461
125456
|
this.setSelection(item);
|
|
125462
|
-
}, onDragLeave: () => this.removeOverClass(), onDragOver: event => this.onDragOverItem(event), onDragEnd: () => this.onDragEnd(), onDrop: event => this.onDrop(event, { item: item, index: index }), draggable: this.ezDraggable }, h("div", { class: "item-content" }, this.listMode === 'regular' ? (h(Fragment, null, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label))) : (h(Fragment, null, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("ez-check", { label: item.label, value: item.check, onEzChange: evt => this.ezCheckChange.emit({ id: item.id, label: item.label, check: evt.detail }) })))), this.itemSlotBuilder
|
|
125457
|
+
}, onDragLeave: () => this.removeOverClass(), onDragOver: event => this.onDragOverItem(event), onDragEnd: () => this.onDragEnd(), onDrop: event => this.onDrop(event, { item: item, index: index }), draggable: this.ezDraggable }, h("div", { class: "item-content" }, this.listMode === 'regular' ? (h(Fragment, null, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, !!this.itemLeftSlotBuilder && this.getContainerItemBuilder('left', item), h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label))) : (h(Fragment, null, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("ez-check", { label: item.label, value: item.check, onEzChange: evt => this.ezCheckChange.emit({ id: item.id, label: item.label, check: evt.detail }) })))), !!this.itemSlotBuilder && this.getContainerItemBuilder('right', item))))), h("div", { class: "last-droppable-space", onDragLeave: () => this.removeOverClass(), onDragOver: event => {
|
|
125463
125458
|
this.onDragOverLastIndex(event);
|
|
125464
125459
|
}, onDragEnd: () => this.onDragEnd(), onDrop: event => this.onDropLastIndex(event) }))))));
|
|
125465
125460
|
}
|
|
@@ -126091,7 +126086,7 @@ const EzPopover$1 = class extends HTMLElement$1 {
|
|
|
126091
126086
|
static get style() { return ezPopoverCss; }
|
|
126092
126087
|
};
|
|
126093
126088
|
|
|
126094
|
-
const ezPopupCss = ":host{display:flex;--ez-popup-z-index:var(--most-visible, 3);--ez-popup__container--color:var(--title--primary, #2b3a54);--ez-popup__container--padding:var(--space--large, 24px);--ez-popup__header--padding-bottom:var(--space--medium, 12px);--ez-popup__title--font-family:var(--font-pattern, \"Roboto\");--ez-popup__title--font-size:var(--title--extra-large, 24px);--ez-popup__title--color:var(--title--primary, #2b3a54);--ez-popup__title--font-weight:var(--text-weight--large, 600);--ez-popup__btn__close--icon-color:var(--title--primary, #2b3a54);--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>')}.overlay{position:fixed;display:flex;top:0px;z-index:var(--ez-popup-z-index);left:0px;width:100%;align-items:center;justify-content:center;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.popup{display:flex;height:100%;align-items:center;justify-content:center;box-sizing:border-box}.popup__container{width:100%;max-height:90%;height:100%;display:flex;flex-wrap:wrap;overflow:hidden;outline:none;background:#FFFF;color:var(--ez-popup__container--color);border-radius:12px;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);box-sizing:border-box;padding:var(--ez-popup__container--padding)}.popup__container--auto{height:auto}.popup__content{box-sizing:border-box;max-height:100%;width:100%;display:grid;grid-template-rows:auto 1fr}.popup__expandable-content{box-sizing:border-box;width:100%;min-height:100%;height:100%}.popup__header{width:100%;display:flex}.popup__header--padding{padding-bottom:var(--ez-popup__header--padding-bottom)}.popup__title{display:flex;margin:0;width:100%;font-family:var(--ez-popup__title--font-family);font-size:var(--ez-popup__title--font-size);font-weight:var(--ez-popup__title--font-weight);color:var(--ez-popup__title--color);line-height:1.3}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:var(--ez-popup__btn__close--icon-color);width:14px;height:14px;-webkit-mask-image:var(--ez-popup__btn__close--icon);mask-image:var(--ez-popup__btn__close--icon)}.btn-close--solo{width:100%}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}";
|
|
126089
|
+
const ezPopupCss = ":host{display:flex;--ez-popup-z-index:var(--most-visible, 3);--ez-popup__container--color:var(--title--primary, #2b3a54);--ez-popup__container--padding:var(--space--large, 24px);--ez-popup__header--padding-bottom:var(--space--medium, 12px);--ez-popup__title--font-family:var(--font-pattern, \"Roboto\");--ez-popup__title--font-size:var(--title--extra-large, 24px);--ez-popup__title--color:var(--title--primary, #2b3a54);--ez-popup__title--font-weight:var(--text-weight--large, 600);--ez-popup__btn__close--icon-color:var(--title--primary, #2b3a54);--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>')}.overlay{position:fixed;display:flex;top:0px;z-index:var(--ez-popup-z-index);left:0px;width:100%;align-items:center;justify-content:center;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.popup{display:flex;height:100%;align-items:center;justify-content:center;box-sizing:border-box}.popup__container{width:100%;max-height:90%;height:100%;display:flex;flex-wrap:wrap;overflow:hidden;outline:none;background:#FFFF;color:var(--ez-popup__container--color);border-radius:12px;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);box-sizing:border-box;padding:var(--ez-popup__container--padding)}.popup__container--auto{height:auto}.popup__content{box-sizing:border-box;max-height:100%;width:100%;display:grid;grid-template-rows:auto 1fr}.popup__expandable-content{box-sizing:border-box;width:100%;min-height:100%;height:100%}.popup__header{width:100%;display:flex}.popup__header--padding{padding-bottom:var(--ez-popup__header--padding-bottom)}.popup__title{display:flex;margin:0;width:100%;font-family:var(--ez-popup__title--font-family);font-size:var(--ez-popup__title--font-size);font-weight:var(--ez-popup__title--font-weight);color:var(--ez-popup__title--color);line-height:1.3}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:var(--ez-popup__btn__close--icon-color);width:14px;height:14px;-webkit-mask-image:var(--ez-popup__btn__close--icon);mask-image:var(--ez-popup__btn__close--icon)}.btn-close--solo{width:100%}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}.ez-popup__size-limit--x-small{min-width:350px;max-width:560px}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}";
|
|
126095
126090
|
|
|
126096
126091
|
const EzPopup$1 = class extends HTMLElement$1 {
|
|
126097
126092
|
constructor() {
|
|
@@ -126100,11 +126095,12 @@ const EzPopup$1 = class extends HTMLElement$1 {
|
|
|
126100
126095
|
this.__attachShadow();
|
|
126101
126096
|
this.ezClosePopup = createEvent(this, "ezClosePopup", 7);
|
|
126102
126097
|
this._sizeClasses = {
|
|
126103
|
-
"x-small": "col--sd-3",
|
|
126098
|
+
"x-small": "col--sd-3 ez-popup__size-limit--x-small",
|
|
126104
126099
|
"small": "col--sd-5",
|
|
126105
126100
|
"medium": "col--sd-6",
|
|
126106
126101
|
"large": "col--sd-9",
|
|
126107
|
-
"x-large": "col--sd-11"
|
|
126102
|
+
"x-large": "col--sd-11",
|
|
126103
|
+
"default": "ez-popup__size-limit--x-small",
|
|
126108
126104
|
};
|
|
126109
126105
|
this.size = "medium";
|
|
126110
126106
|
this.opened = false;
|
|
@@ -128720,7 +128716,7 @@ const EzFormView = /*@__PURE__*/proxyCustomElement(EzFormView$1, [2,"ez-form-vie
|
|
|
128720
128716
|
const EzGrid = /*@__PURE__*/proxyCustomElement(EzGrid$1, [6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"config":[1040],"selectionToastConfig":[16],"serverUrl":[1,"server-url"],"dataUnit":[16],"statusResolver":[16],"columnfilterDataSource":[16],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"_showSelectionCounter":[32],"_isAllSelection":[32],"_currentPageSelected":[32],"_selectionCount":[32],"_originalRecords":[32]},[[0,"ezSelectionChange","onSelectionChange"]]]);
|
|
128721
128717
|
const EzGuideNavigator = /*@__PURE__*/proxyCustomElement(EzGuideNavigator$1, [1,"ez-guide-navigator",{"open":[1540],"selectedId":[1537,"selected-id"],"items":[16],"tooltipResolver":[16],"filterText":[32]}]);
|
|
128722
128718
|
const EzIcon = /*@__PURE__*/proxyCustomElement(EzIcon$1, [1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]);
|
|
128723
|
-
const EzList = /*@__PURE__*/proxyCustomElement(EzList$1, [1,"ez-list",{"dataSource":[1040],"listMode":[1,"list-mode"],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"hoverFeedback":[1028,"hover-feedback"],"_listItems":[32],"_listGroupItems":[32]}]);
|
|
128719
|
+
const EzList = /*@__PURE__*/proxyCustomElement(EzList$1, [1,"ez-list",{"dataSource":[1040],"listMode":[1,"list-mode"],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"itemLeftSlotBuilder":[1040],"hoverFeedback":[1028,"hover-feedback"],"_listItems":[32],"_listGroupItems":[32]}]);
|
|
128724
128720
|
const EzLoadingBar = /*@__PURE__*/proxyCustomElement(EzLoadingBar$1, [1,"ez-loading-bar",{"_showLoading":[32]}]);
|
|
128725
128721
|
const EzModal = /*@__PURE__*/proxyCustomElement(EzModal$1, [1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"heightMode":[1,"height-mode"],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"],"scrim":[1]}]);
|
|
128726
128722
|
const EzModalContainer = /*@__PURE__*/proxyCustomElement(EzModalContainer$1, [6,"ez-modal-container",{"modalTitle":[1,"modal-title"],"modalSubTitle":[1,"modal-sub-title"],"showTitleBar":[4,"show-title-bar"],"cancelButtonLabel":[1,"cancel-button-label"],"okButtonLabel":[1,"ok-button-label"],"cancelButtonStatus":[1,"cancel-button-status"],"okButtonStatus":[1,"ok-button-status"]}]);
|
|
@@ -119285,6 +119285,7 @@ class AgGridController {
|
|
|
119285
119285
|
}
|
|
119286
119286
|
this._gridOptions = {
|
|
119287
119287
|
localeText: gridTerms,
|
|
119288
|
+
enableRangeSelection: this._multipleSelection,
|
|
119288
119289
|
rowSelection: this._multipleSelection ? 'multiple' : 'single',
|
|
119289
119290
|
sortingOrder: ['desc', 'asc', null],
|
|
119290
119291
|
blockLoadDebounceMillis: this.BLOCK_LOAD_DEBOUNCE,
|