@sankhyalabs/ezui 1.1.72 → 1.1.73
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-action-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-button_16.cjs.entry.js +1 -1
- package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
- package/dist/cjs/ez-label-chip.cjs.entry.js +1 -1
- package/dist/cjs/ez-list.cjs.entry.js +174 -0
- package/dist/cjs/ez-modal.cjs.entry.js +1 -1
- package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-popover.cjs.entry.js +1 -1
- package/dist/cjs/ez-popup.cjs.entry.js +1 -1
- package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
- package/dist/cjs/ez-toast.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +2 -2
- package/dist/cjs/{index-bb6cdd1a.js → index-4d2896bb.js} +5 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/collection/collection-manifest.json +1 -0
- package/dist/collection/components/ez-list/ez-list.css +131 -0
- package/dist/collection/components/ez-list/ez-list.js +252 -0
- package/dist/custom-elements/index.d.ts +6 -0
- package/dist/custom-elements/index.js +172 -1
- package/dist/esm/ez-action-chip.entry.js +1 -1
- package/dist/esm/ez-button_16.entry.js +1 -1
- package/dist/esm/ez-dialog.entry.js +1 -1
- package/dist/esm/ez-label-chip.entry.js +1 -1
- package/dist/esm/ez-list.entry.js +170 -0
- package/dist/esm/ez-modal.entry.js +1 -1
- package/dist/esm/ez-number-input.entry.js +1 -1
- package/dist/esm/ez-popover.entry.js +1 -1
- package/dist/esm/ez-popup.entry.js +1 -1
- package/dist/esm/ez-time-input.entry.js +1 -1
- package/dist/esm/ez-toast.entry.js +1 -1
- package/dist/esm/ezui.js +2 -2
- package/dist/esm/{index-989e6e7d.js → index-33153059.js} +5 -1
- package/dist/esm/loader.js +2 -2
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-061d21ba.entry.js +1 -0
- package/dist/ezui/{p-8b945611.entry.js → p-0db8d49b.entry.js} +1 -1
- package/dist/ezui/{p-f8f92f68.entry.js → p-129b53df.entry.js} +1 -1
- package/dist/ezui/{p-55003571.entry.js → p-15743b09.entry.js} +1 -1
- package/dist/ezui/{p-d01bcce1.entry.js → p-25953d44.entry.js} +1 -1
- package/dist/ezui/{p-384f89f7.js → p-4df6f855.js} +1 -1
- package/dist/ezui/{p-edcc9e6f.entry.js → p-50464bdf.entry.js} +1 -1
- package/dist/ezui/{p-65ea9879.entry.js → p-67410dfa.entry.js} +1 -1
- package/dist/ezui/{p-5c5ba099.entry.js → p-74809665.entry.js} +1 -1
- package/dist/ezui/{p-e2533df1.entry.js → p-7f3bc6d9.entry.js} +1 -1
- package/dist/ezui/{p-a6a87bc5.entry.js → p-8818da66.entry.js} +1 -1
- package/dist/ezui/{p-889030b3.entry.js → p-a99f8d42.entry.js} +1 -1
- package/dist/types/components/ez-list/ez-list.d.ts +34 -0
- package/dist/types/components.d.ts +42 -0
- package/package.json +1 -1
- package/react/components.d.ts +1 -0
- package/react/components.js +1 -0
- package/react/components.js.map +1 -1
|
@@ -0,0 +1,252 @@
|
|
|
1
|
+
import { Component, Host, h, Prop, Method } from '@stencil/core';
|
|
2
|
+
;
|
|
3
|
+
export class EzList {
|
|
4
|
+
constructor() {
|
|
5
|
+
this._listItems = [];
|
|
6
|
+
/**
|
|
7
|
+
* Define a lista inicial do componente.
|
|
8
|
+
*/
|
|
9
|
+
this.initialList = [];
|
|
10
|
+
/**
|
|
11
|
+
* Define se o componente terá o comportamento de arrasto de linhas.
|
|
12
|
+
*/
|
|
13
|
+
this.draggable = true;
|
|
14
|
+
/**
|
|
15
|
+
* Define se é possível selecionar mais de um registro.
|
|
16
|
+
*/
|
|
17
|
+
this.isMultipleSelection = true;
|
|
18
|
+
}
|
|
19
|
+
createList() {
|
|
20
|
+
[...this.initialList]
|
|
21
|
+
.forEach((item, index) => {
|
|
22
|
+
const listItem = document.createElement('li');
|
|
23
|
+
listItem.setAttribute('data-index', index.toString());
|
|
24
|
+
if (!this.isMultipleSelection)
|
|
25
|
+
listItem.onclick = this.selectLine.bind(this);
|
|
26
|
+
listItem.innerHTML = `
|
|
27
|
+
<div class="draggable" ${this.draggable ? "draggable=true" : ""}>
|
|
28
|
+
|
|
29
|
+
${this.draggable ? '<span class="draggable-icon"></span>' : ""}
|
|
30
|
+
|
|
31
|
+
${this.isMultipleSelection ? `<ez-check class='checkbox' value=${item.checked}></ez-check>` : ''}
|
|
32
|
+
<p title="${item.value}" class="person-name text--ellipsis">${item.value}</p>
|
|
33
|
+
|
|
34
|
+
</div>
|
|
35
|
+
`;
|
|
36
|
+
this._listItems.push(listItem);
|
|
37
|
+
this._draggableList.appendChild(listItem);
|
|
38
|
+
});
|
|
39
|
+
if (this.draggable) {
|
|
40
|
+
this.handleEventListeners(this._listItems, this._draggableList, this._hostElement, false);
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
selectLine(e) {
|
|
44
|
+
var _a, _b, _c;
|
|
45
|
+
this._listItems.forEach(item => { item.classList.remove('draggable-selected'); });
|
|
46
|
+
if (((_a = e.target) === null || _a === void 0 ? void 0 : _a.tagName) === 'SPAN') {
|
|
47
|
+
const span = e.target;
|
|
48
|
+
this._selectedItem = { value: span.parentElement.getElementsByTagName('p')[0].textContent };
|
|
49
|
+
span.parentElement.parentElement.classList.add('draggable-selected');
|
|
50
|
+
}
|
|
51
|
+
else if (((_b = e.target) === null || _b === void 0 ? void 0 : _b.tagName) === 'P') {
|
|
52
|
+
const paragraph = e.target;
|
|
53
|
+
this._selectedItem = { value: paragraph.textContent };
|
|
54
|
+
paragraph.parentElement.parentElement.classList.add('draggable-selected');
|
|
55
|
+
}
|
|
56
|
+
else if (((_c = e.target) === null || _c === void 0 ? void 0 : _c.tagName) === 'DIV') {
|
|
57
|
+
const draggable = e.target;
|
|
58
|
+
this._selectedItem = { value: draggable.getElementsByTagName('p')[0].textContent };
|
|
59
|
+
draggable.parentElement.classList.add('draggable-selected');
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
handleEventListeners(listItems, dragableList, hostElement, removeEvents) {
|
|
63
|
+
let _dragStartIndex;
|
|
64
|
+
let _isItemOut = false;
|
|
65
|
+
function dragStart(item) {
|
|
66
|
+
_dragStartIndex = item.parentElement.getAttribute('data-index');
|
|
67
|
+
}
|
|
68
|
+
function dragEnter(item) {
|
|
69
|
+
item.classList.add('over');
|
|
70
|
+
}
|
|
71
|
+
function dragLeave(item) {
|
|
72
|
+
item.classList.remove('over');
|
|
73
|
+
}
|
|
74
|
+
function dragOver(e) {
|
|
75
|
+
e.preventDefault();
|
|
76
|
+
}
|
|
77
|
+
function dragDrop(item) {
|
|
78
|
+
if (_isItemOut) {
|
|
79
|
+
let index = +item.getAttribute('data-index');
|
|
80
|
+
const itemRemoved = listItems[index].querySelector('.draggable');
|
|
81
|
+
listItems[index].removeChild(itemRemoved);
|
|
82
|
+
}
|
|
83
|
+
const dragEndIndex = +item.getAttribute('data-index');
|
|
84
|
+
swapItems(+_dragStartIndex, dragEndIndex);
|
|
85
|
+
item.classList.remove('over');
|
|
86
|
+
}
|
|
87
|
+
function swapItems(fromIndex, toIndex) {
|
|
88
|
+
const itemOne = listItems[fromIndex].querySelector('.draggable');
|
|
89
|
+
const itemTwo = listItems[toIndex].querySelector('.draggable');
|
|
90
|
+
listItems[fromIndex].appendChild(itemTwo);
|
|
91
|
+
listItems[toIndex].appendChild(itemOne);
|
|
92
|
+
return listItems;
|
|
93
|
+
}
|
|
94
|
+
if (!removeEvents) {
|
|
95
|
+
hostElement.addEventListener('dragenter', function () { _isItemOut = false; });
|
|
96
|
+
hostElement.addEventListener('dragleave', function () { _isItemOut = true; });
|
|
97
|
+
const draggables = dragableList.querySelectorAll("div.draggable");
|
|
98
|
+
draggables.forEach(draggable => {
|
|
99
|
+
draggable.addEventListener('dragstart', function () { dragStart(draggable); });
|
|
100
|
+
});
|
|
101
|
+
listItems.forEach(item => {
|
|
102
|
+
item.addEventListener('dragover', function (event) { dragOver(event); });
|
|
103
|
+
item.addEventListener('drop', function () { dragDrop(item); });
|
|
104
|
+
item.addEventListener('dragenter', function () { dragEnter(item); });
|
|
105
|
+
item.addEventListener('dragleave', function () { dragLeave(item); });
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
else {
|
|
109
|
+
hostElement.removeEventListener('dragenter', function () { _isItemOut = false; });
|
|
110
|
+
hostElement.removeEventListener('dragleave', function () { _isItemOut = true; });
|
|
111
|
+
const draggables = dragableList.querySelectorAll("div.draggable");
|
|
112
|
+
draggables.forEach(draggable => {
|
|
113
|
+
draggable.removeEventListener('dragstart', function () { dragStart(draggable); });
|
|
114
|
+
});
|
|
115
|
+
listItems.forEach(item => {
|
|
116
|
+
item.removeEventListener('dragover', function (event) { dragOver(event); });
|
|
117
|
+
item.removeEventListener('drop', function () { dragDrop(item); });
|
|
118
|
+
item.removeEventListener('dragenter', function () { dragEnter(item); });
|
|
119
|
+
item.removeEventListener('dragleave', function () { dragLeave(item); });
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
/**
|
|
124
|
+
* Retorna uma promessa com o estado da atual lista composta por objetos do tipo {value: string, checked: boolean}.
|
|
125
|
+
*/
|
|
126
|
+
async getState() {
|
|
127
|
+
let emitionList = [];
|
|
128
|
+
this._listItems.forEach(item => {
|
|
129
|
+
let emitionItem = {
|
|
130
|
+
value: this.getValueItem(item),
|
|
131
|
+
checked: this.getChecked(item)
|
|
132
|
+
};
|
|
133
|
+
emitionList.push(emitionItem);
|
|
134
|
+
});
|
|
135
|
+
return emitionList;
|
|
136
|
+
}
|
|
137
|
+
getChecked(item) {
|
|
138
|
+
if (this.isMultipleSelection) {
|
|
139
|
+
return item.children[0].children[1].value;
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
if (!this._selectedItem)
|
|
143
|
+
return false;
|
|
144
|
+
return (item.children[0].children[1].textContent === this._selectedItem.value);
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
getValueItem(item) {
|
|
148
|
+
if (this.isMultipleSelection) {
|
|
149
|
+
return item.children[0].children[2].textContent;
|
|
150
|
+
}
|
|
151
|
+
return item.children[0].children[1].textContent;
|
|
152
|
+
}
|
|
153
|
+
componentDidLoad() {
|
|
154
|
+
this.createList();
|
|
155
|
+
}
|
|
156
|
+
disconnectedCallback() {
|
|
157
|
+
if (this.draggable) {
|
|
158
|
+
this.handleEventListeners(this._listItems, this._draggableList, this._hostElement, true);
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
render() {
|
|
162
|
+
return (h(Host, { ref: (el) => this._hostElement = el },
|
|
163
|
+
h("ul", { ref: (el) => this._draggableList = el, class: "draggable-list", id: "draggable-list" })));
|
|
164
|
+
}
|
|
165
|
+
static get is() { return "ez-list"; }
|
|
166
|
+
static get encapsulation() { return "shadow"; }
|
|
167
|
+
static get originalStyleUrls() { return {
|
|
168
|
+
"$": ["ez-list.css"]
|
|
169
|
+
}; }
|
|
170
|
+
static get styleUrls() { return {
|
|
171
|
+
"$": ["ez-list.css"]
|
|
172
|
+
}; }
|
|
173
|
+
static get properties() { return {
|
|
174
|
+
"initialList": {
|
|
175
|
+
"type": "unknown",
|
|
176
|
+
"mutable": true,
|
|
177
|
+
"complexType": {
|
|
178
|
+
"original": "ListItem[]",
|
|
179
|
+
"resolved": "ListItem[]",
|
|
180
|
+
"references": {
|
|
181
|
+
"ListItem": {
|
|
182
|
+
"location": "local"
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
},
|
|
186
|
+
"required": false,
|
|
187
|
+
"optional": false,
|
|
188
|
+
"docs": {
|
|
189
|
+
"tags": [],
|
|
190
|
+
"text": "Define a lista inicial do componente."
|
|
191
|
+
},
|
|
192
|
+
"defaultValue": "[]"
|
|
193
|
+
},
|
|
194
|
+
"draggable": {
|
|
195
|
+
"type": "boolean",
|
|
196
|
+
"mutable": false,
|
|
197
|
+
"complexType": {
|
|
198
|
+
"original": "boolean",
|
|
199
|
+
"resolved": "boolean",
|
|
200
|
+
"references": {}
|
|
201
|
+
},
|
|
202
|
+
"required": false,
|
|
203
|
+
"optional": false,
|
|
204
|
+
"docs": {
|
|
205
|
+
"tags": [],
|
|
206
|
+
"text": "Define se o componente ter\u00E1 o comportamento de arrasto de linhas."
|
|
207
|
+
},
|
|
208
|
+
"attribute": "draggable",
|
|
209
|
+
"reflect": false,
|
|
210
|
+
"defaultValue": "true"
|
|
211
|
+
},
|
|
212
|
+
"isMultipleSelection": {
|
|
213
|
+
"type": "boolean",
|
|
214
|
+
"mutable": true,
|
|
215
|
+
"complexType": {
|
|
216
|
+
"original": "boolean",
|
|
217
|
+
"resolved": "boolean",
|
|
218
|
+
"references": {}
|
|
219
|
+
},
|
|
220
|
+
"required": false,
|
|
221
|
+
"optional": false,
|
|
222
|
+
"docs": {
|
|
223
|
+
"tags": [],
|
|
224
|
+
"text": "Define se \u00E9 poss\u00EDvel selecionar mais de um registro."
|
|
225
|
+
},
|
|
226
|
+
"attribute": "is-multiple-selection",
|
|
227
|
+
"reflect": true,
|
|
228
|
+
"defaultValue": "true"
|
|
229
|
+
}
|
|
230
|
+
}; }
|
|
231
|
+
static get methods() { return {
|
|
232
|
+
"getState": {
|
|
233
|
+
"complexType": {
|
|
234
|
+
"signature": "() => Promise<ListItem[]>",
|
|
235
|
+
"parameters": [],
|
|
236
|
+
"references": {
|
|
237
|
+
"Promise": {
|
|
238
|
+
"location": "global"
|
|
239
|
+
},
|
|
240
|
+
"ListItem": {
|
|
241
|
+
"location": "local"
|
|
242
|
+
}
|
|
243
|
+
},
|
|
244
|
+
"return": "Promise<ListItem[]>"
|
|
245
|
+
},
|
|
246
|
+
"docs": {
|
|
247
|
+
"text": "Retorna uma promessa com o estado da atual lista composta por objetos do tipo {value: string, checked: boolean}.",
|
|
248
|
+
"tags": []
|
|
249
|
+
}
|
|
250
|
+
}
|
|
251
|
+
}; }
|
|
252
|
+
}
|
|
@@ -68,6 +68,12 @@ export const EzLabelChip: {
|
|
|
68
68
|
new (): EzLabelChip;
|
|
69
69
|
};
|
|
70
70
|
|
|
71
|
+
interface EzList extends Components.EzList, HTMLElement {}
|
|
72
|
+
export const EzList: {
|
|
73
|
+
prototype: EzList;
|
|
74
|
+
new (): EzList;
|
|
75
|
+
};
|
|
76
|
+
|
|
71
77
|
interface EzModal extends Components.EzModal, HTMLElement {}
|
|
72
78
|
export const EzModal: {
|
|
73
79
|
prototype: EzModal;
|
|
@@ -3871,6 +3871,175 @@ let EzLabelChip$1 = class extends HTMLElement {
|
|
|
3871
3871
|
static get style() { return ezLabelChipCss; }
|
|
3872
3872
|
};
|
|
3873
3873
|
|
|
3874
|
+
const ezListCss = ":host{--list__host--border-radius:var(--border--radius-medium, 12px);--list__host--padding:var(--space--medium, 12px);--list__icon__padding:var(--space--small, 6px);--list__item__margin:0 var(--space--small, 6px);--list__item--color:var(--title--primary, #2b3a54);--list__item--border-bottom:var(--border--small, 1px solid);--list__item--border-color:var(--title--primary, #2b3a54);--list__item--font-family:var(--font-pattern, #2b3a54);--list__item--font-size:var(--text--medium, 14px);--list__draggable__icon--image:url('data:image/svg+xml;utf8,<svg width=\"24\" height=\"24\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m 12,16 a 2,2 0 0 1 2,2 2,2 0 0 1 -2,2 2,2 0 0 1 -2,-2 2,2 0 0 1 2,-2 m 0,-6 a 2,2 0 0 1 2,2 2,2 0 0 1 -2,2 2,2 0 0 1 -2,-2 2,2 0 0 1 2,-2 m 0,-6 a 2,2 0 0 1 2,2 2,2 0 0 1 -2,2 2,2 0 0 1 -2,-2 2,2 0 0 1 2,-2 z\"/></svg>');border-radius:var(--list__host--border-radius);padding:var(--list__host--padding);max-height:100%;width:100%;background-color:#fff;display:flex}.draggable{cursor:pointer;display:flex;align-items:center;justify-content:flex-start;flex:1}.draggable-list{color:var(--text-color);padding:0;margin:0;width:100%;max-height:100%;overflow-y:auto}.draggable-list li{background-color:#fff;display:flex;margin:var(--list__item__margin);font-family:var(--list__item--font-family);font-size:var(--list__item--font-size);color:var(--list__item--color)}.draggable-list li:not(:last-of-type){border-bottom:var(--list__item--border-bottom)}.draggable-list li.over .draggable{background-color:var(--background--strong)}.draggable:hover{background-color:var(--background--medium)}.draggable-selected{background-color:var(--background--strong) !important}.draggable-selected div:hover{background-color:var(--background--strong) !important}.draggable-list::-webkit-scrollbar-track{background-color:#f0f2f5}.draggable-list::-webkit-scrollbar-thumb{background-color:var(--title--primary);border-radius:var(--space--extra-small)}.draggable-list::-webkit-scrollbar{background-color:#f0f2f5;height:6px;max-height:6px;min-height:6px;width:6px;max-width:6px;min-width:6px}.draggable-icon{align-items:flex-start;display:flex;outline:none;border:none;background-color:unset}.draggable-icon::after{content:'';display:flex;background-color:var(--list__item--color);width:24px;height:24px;-webkit-mask-image:var(--list__draggable__icon--image);mask-image:var(--list__draggable__icon--image)}*{box-sizing:border-box}.checkbox{width:fit-content}.text--ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}";
|
|
3875
|
+
|
|
3876
|
+
let EzList$1 = class extends HTMLElement {
|
|
3877
|
+
constructor() {
|
|
3878
|
+
super();
|
|
3879
|
+
this.__registerHost();
|
|
3880
|
+
this.__attachShadow();
|
|
3881
|
+
this._listItems = [];
|
|
3882
|
+
/**
|
|
3883
|
+
* Define a lista inicial do componente.
|
|
3884
|
+
*/
|
|
3885
|
+
this.initialList = [];
|
|
3886
|
+
/**
|
|
3887
|
+
* Define se o componente terá o comportamento de arrasto de linhas.
|
|
3888
|
+
*/
|
|
3889
|
+
this.draggable = true;
|
|
3890
|
+
/**
|
|
3891
|
+
* Define se é possível selecionar mais de um registro.
|
|
3892
|
+
*/
|
|
3893
|
+
this.isMultipleSelection = true;
|
|
3894
|
+
}
|
|
3895
|
+
createList() {
|
|
3896
|
+
[...this.initialList]
|
|
3897
|
+
.forEach((item, index) => {
|
|
3898
|
+
const listItem = document.createElement('li');
|
|
3899
|
+
listItem.setAttribute('data-index', index.toString());
|
|
3900
|
+
if (!this.isMultipleSelection)
|
|
3901
|
+
listItem.onclick = this.selectLine.bind(this);
|
|
3902
|
+
listItem.innerHTML = `
|
|
3903
|
+
<div class="draggable" ${this.draggable ? "draggable=true" : ""}>
|
|
3904
|
+
|
|
3905
|
+
${this.draggable ? '<span class="draggable-icon"></span>' : ""}
|
|
3906
|
+
|
|
3907
|
+
${this.isMultipleSelection ? `<ez-check class='checkbox' value=${item.checked}></ez-check>` : ''}
|
|
3908
|
+
<p title="${item.value}" class="person-name text--ellipsis">${item.value}</p>
|
|
3909
|
+
|
|
3910
|
+
</div>
|
|
3911
|
+
`;
|
|
3912
|
+
this._listItems.push(listItem);
|
|
3913
|
+
this._draggableList.appendChild(listItem);
|
|
3914
|
+
});
|
|
3915
|
+
if (this.draggable) {
|
|
3916
|
+
this.handleEventListeners(this._listItems, this._draggableList, this._hostElement, false);
|
|
3917
|
+
}
|
|
3918
|
+
}
|
|
3919
|
+
selectLine(e) {
|
|
3920
|
+
var _a, _b, _c;
|
|
3921
|
+
this._listItems.forEach(item => { item.classList.remove('draggable-selected'); });
|
|
3922
|
+
if (((_a = e.target) === null || _a === void 0 ? void 0 : _a.tagName) === 'SPAN') {
|
|
3923
|
+
const span = e.target;
|
|
3924
|
+
this._selectedItem = { value: span.parentElement.getElementsByTagName('p')[0].textContent };
|
|
3925
|
+
span.parentElement.parentElement.classList.add('draggable-selected');
|
|
3926
|
+
}
|
|
3927
|
+
else if (((_b = e.target) === null || _b === void 0 ? void 0 : _b.tagName) === 'P') {
|
|
3928
|
+
const paragraph = e.target;
|
|
3929
|
+
this._selectedItem = { value: paragraph.textContent };
|
|
3930
|
+
paragraph.parentElement.parentElement.classList.add('draggable-selected');
|
|
3931
|
+
}
|
|
3932
|
+
else if (((_c = e.target) === null || _c === void 0 ? void 0 : _c.tagName) === 'DIV') {
|
|
3933
|
+
const draggable = e.target;
|
|
3934
|
+
this._selectedItem = { value: draggable.getElementsByTagName('p')[0].textContent };
|
|
3935
|
+
draggable.parentElement.classList.add('draggable-selected');
|
|
3936
|
+
}
|
|
3937
|
+
}
|
|
3938
|
+
handleEventListeners(listItems, dragableList, hostElement, removeEvents) {
|
|
3939
|
+
let _dragStartIndex;
|
|
3940
|
+
let _isItemOut = false;
|
|
3941
|
+
function dragStart(item) {
|
|
3942
|
+
_dragStartIndex = item.parentElement.getAttribute('data-index');
|
|
3943
|
+
}
|
|
3944
|
+
function dragEnter(item) {
|
|
3945
|
+
item.classList.add('over');
|
|
3946
|
+
}
|
|
3947
|
+
function dragLeave(item) {
|
|
3948
|
+
item.classList.remove('over');
|
|
3949
|
+
}
|
|
3950
|
+
function dragOver(e) {
|
|
3951
|
+
e.preventDefault();
|
|
3952
|
+
}
|
|
3953
|
+
function dragDrop(item) {
|
|
3954
|
+
if (_isItemOut) {
|
|
3955
|
+
let index = +item.getAttribute('data-index');
|
|
3956
|
+
const itemRemoved = listItems[index].querySelector('.draggable');
|
|
3957
|
+
listItems[index].removeChild(itemRemoved);
|
|
3958
|
+
}
|
|
3959
|
+
const dragEndIndex = +item.getAttribute('data-index');
|
|
3960
|
+
swapItems(+_dragStartIndex, dragEndIndex);
|
|
3961
|
+
item.classList.remove('over');
|
|
3962
|
+
}
|
|
3963
|
+
function swapItems(fromIndex, toIndex) {
|
|
3964
|
+
const itemOne = listItems[fromIndex].querySelector('.draggable');
|
|
3965
|
+
const itemTwo = listItems[toIndex].querySelector('.draggable');
|
|
3966
|
+
listItems[fromIndex].appendChild(itemTwo);
|
|
3967
|
+
listItems[toIndex].appendChild(itemOne);
|
|
3968
|
+
return listItems;
|
|
3969
|
+
}
|
|
3970
|
+
if (!removeEvents) {
|
|
3971
|
+
hostElement.addEventListener('dragenter', function () { _isItemOut = false; });
|
|
3972
|
+
hostElement.addEventListener('dragleave', function () { _isItemOut = true; });
|
|
3973
|
+
const draggables = dragableList.querySelectorAll("div.draggable");
|
|
3974
|
+
draggables.forEach(draggable => {
|
|
3975
|
+
draggable.addEventListener('dragstart', function () { dragStart(draggable); });
|
|
3976
|
+
});
|
|
3977
|
+
listItems.forEach(item => {
|
|
3978
|
+
item.addEventListener('dragover', function (event) { dragOver(event); });
|
|
3979
|
+
item.addEventListener('drop', function () { dragDrop(item); });
|
|
3980
|
+
item.addEventListener('dragenter', function () { dragEnter(item); });
|
|
3981
|
+
item.addEventListener('dragleave', function () { dragLeave(item); });
|
|
3982
|
+
});
|
|
3983
|
+
}
|
|
3984
|
+
else {
|
|
3985
|
+
hostElement.removeEventListener('dragenter', function () { _isItemOut = false; });
|
|
3986
|
+
hostElement.removeEventListener('dragleave', function () { _isItemOut = true; });
|
|
3987
|
+
const draggables = dragableList.querySelectorAll("div.draggable");
|
|
3988
|
+
draggables.forEach(draggable => {
|
|
3989
|
+
draggable.removeEventListener('dragstart', function () { dragStart(draggable); });
|
|
3990
|
+
});
|
|
3991
|
+
listItems.forEach(item => {
|
|
3992
|
+
item.removeEventListener('dragover', function (event) { dragOver(event); });
|
|
3993
|
+
item.removeEventListener('drop', function () { dragDrop(item); });
|
|
3994
|
+
item.removeEventListener('dragenter', function () { dragEnter(item); });
|
|
3995
|
+
item.removeEventListener('dragleave', function () { dragLeave(item); });
|
|
3996
|
+
});
|
|
3997
|
+
}
|
|
3998
|
+
}
|
|
3999
|
+
/**
|
|
4000
|
+
* Retorna uma promessa com o estado da atual lista composta por objetos do tipo {value: string, checked: boolean}.
|
|
4001
|
+
*/
|
|
4002
|
+
async getState() {
|
|
4003
|
+
let emitionList = [];
|
|
4004
|
+
this._listItems.forEach(item => {
|
|
4005
|
+
let emitionItem = {
|
|
4006
|
+
value: this.getValueItem(item),
|
|
4007
|
+
checked: this.getChecked(item)
|
|
4008
|
+
};
|
|
4009
|
+
emitionList.push(emitionItem);
|
|
4010
|
+
});
|
|
4011
|
+
return emitionList;
|
|
4012
|
+
}
|
|
4013
|
+
getChecked(item) {
|
|
4014
|
+
if (this.isMultipleSelection) {
|
|
4015
|
+
return item.children[0].children[1].value;
|
|
4016
|
+
}
|
|
4017
|
+
else {
|
|
4018
|
+
if (!this._selectedItem)
|
|
4019
|
+
return false;
|
|
4020
|
+
return (item.children[0].children[1].textContent === this._selectedItem.value);
|
|
4021
|
+
}
|
|
4022
|
+
}
|
|
4023
|
+
getValueItem(item) {
|
|
4024
|
+
if (this.isMultipleSelection) {
|
|
4025
|
+
return item.children[0].children[2].textContent;
|
|
4026
|
+
}
|
|
4027
|
+
return item.children[0].children[1].textContent;
|
|
4028
|
+
}
|
|
4029
|
+
componentDidLoad() {
|
|
4030
|
+
this.createList();
|
|
4031
|
+
}
|
|
4032
|
+
disconnectedCallback() {
|
|
4033
|
+
if (this.draggable) {
|
|
4034
|
+
this.handleEventListeners(this._listItems, this._draggableList, this._hostElement, true);
|
|
4035
|
+
}
|
|
4036
|
+
}
|
|
4037
|
+
render() {
|
|
4038
|
+
return (h(Host, { ref: (el) => this._hostElement = el }, h("ul", { ref: (el) => this._draggableList = el, class: "draggable-list", id: "draggable-list" })));
|
|
4039
|
+
}
|
|
4040
|
+
static get style() { return ezListCss; }
|
|
4041
|
+
};
|
|
4042
|
+
|
|
3874
4043
|
const ezModalCss = ":host{--modal-z-index:var(--most-visible, 3);--modal-vertical-padding:var(--space--large, 24px);display:block}.modal{position:fixed;padding:var(--modal-vertical-padding) 0;display:flex;top:0px;z-index:var(--modal-z-index);left:0px;width:100%;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}@keyframes expand-modal--left{from{transform:translate(-100%)}}@keyframes expand-modal--right{from{transform:translate(100%)}}.modal__container{display:flex;flex-wrap:wrap;height:100%;box-sizing:border-box;width:100%;align-items:flex-start}.modal__container--right{animation:expand-modal--right .2s ease-in-out 1;justify-content:flex-end}.modal__container--left{animation:expand-modal--left .2s ease-in-out 1;justify-content:flex-start}.modal__content{display:flex;flex-wrap:wrap;max-height:calc(100% - 48px);height:100%;overflow-y:auto;background-color:rgb(255, 255, 255);padding:24px;border-radius:12px 0px 0px 12px;box-shadow:rgb(0 38 111 / 12%) 0px 0px 16px 0px}.modal__content--right{border-radius:12px 0px 0px 12px}.modal__content--left{border-radius:0px 12px 12px 0px}.modal__box__container{display:flex;flex-wrap:wrap;background-color:#fff;width:100%;border-radius:12px}.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%}}";
|
|
3875
4044
|
|
|
3876
4045
|
let EzModal$1 = class extends HTMLElement {
|
|
@@ -5555,6 +5724,7 @@ const EzDialog = /*@__PURE__*/proxyCustomElement(EzDialog$1, [1,"ez-dialog",{"co
|
|
|
5555
5724
|
const EzForm = /*@__PURE__*/proxyCustomElement(EzForm$1, [0,"ez-form",{"metadataexecutor":[1],"loadexecutor":[1],"saveexecutor":[1],"removeexecutor":[1],"fieldsearchexecutor":[1],"ignoresavevalidation":[4],"metadata":[16],"slavemode":[4],"enabled":[4],"loading":[1540]}]);
|
|
5556
5725
|
const EzIcon = /*@__PURE__*/proxyCustomElement(EzIcon$1, [1,"ez-icon",{"size":[513],"href":[513]}]);
|
|
5557
5726
|
const EzLabelChip = /*@__PURE__*/proxyCustomElement(EzLabelChip$1, [1,"ez-label-chip",{"label":[513],"enabled":[516],"removable":[516],"value":[1540]}]);
|
|
5727
|
+
const EzList = /*@__PURE__*/proxyCustomElement(EzList$1, [1,"ez-list",{"initialList":[1040],"draggable":[4],"isMultipleSelection":[1540,"is-multiple-selection"]}]);
|
|
5558
5728
|
const EzModal = /*@__PURE__*/proxyCustomElement(EzModal$1, [1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"opened":[4],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"]}]);
|
|
5559
5729
|
const EzNumberInput = /*@__PURE__*/proxyCustomElement(NumberInput, [1,"ez-number-input",{"strvalue":[1025],"value":[1026],"label":[513],"enabled":[516],"errorMessage":[1537,"error-message"],"precision":[1538],"prettyprecision":[1538],"textleft":[516],"formatnumber":[513]}]);
|
|
5560
5730
|
const EzNumericInput = /*@__PURE__*/proxyCustomElement(EzNumericInput$1, [1,"ez-numeric-input",{"label":[513],"value":[1538],"enabled":[516],"errorMessage":[1537,"error-message"],"precision":[8],"prettyprecision":[8]}]);
|
|
@@ -5583,6 +5753,7 @@ const defineCustomElements = (opts) => {
|
|
|
5583
5753
|
EzForm,
|
|
5584
5754
|
EzIcon,
|
|
5585
5755
|
EzLabelChip,
|
|
5756
|
+
EzList,
|
|
5586
5757
|
EzModal,
|
|
5587
5758
|
EzNumberInput,
|
|
5588
5759
|
EzNumericInput,
|
|
@@ -5605,4 +5776,4 @@ const defineCustomElements = (opts) => {
|
|
|
5605
5776
|
}
|
|
5606
5777
|
};
|
|
5607
5778
|
|
|
5608
|
-
export { EzActionChip, EzButton, EzCalendar, EzCheck, EzCollapsibleBox, EzComboBox, EzDateInput, EzDialog, EzForm, EzIcon, EzLabelChip, EzModal, EzNumberInput, EzNumericInput, EzPopover, EzPopup, EzSearch, EzTabselector, EzTextArea, EzTextInput, EzTimeInput, EzToast, EzUpload, FormMetadata, PlaceHolder, defineCustomElements };
|
|
5779
|
+
export { EzActionChip, EzButton, EzCalendar, EzCheck, EzCollapsibleBox, EzComboBox, EzDateInput, EzDialog, EzForm, EzIcon, EzLabelChip, EzList, EzModal, EzNumberInput, EzNumericInput, EzPopover, EzPopup, EzSearch, EzTabselector, EzTextArea, EzTextInput, EzTimeInput, EzToast, EzUpload, FormMetadata, PlaceHolder, defineCustomElements };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-33153059.js';
|
|
2
2
|
|
|
3
3
|
const ezActionChipCss = ":host{--ac--height:36px;--ac--border-radius:var(--border--radius-large, 24px);--ac__border:1px solid;--ac__border-color-strokes:var(--color--strokes, #DCE0E8);--ac--font-size:var(--text--medium, 14px);--ac--font-family:var(--font-pattern, Arial);--ac--font-weight:var(--text-weight--large, 500);--ac__label--title--primary:var(--title--primary, #919191);--ac__label-color--disable-secondary:var(--color--disable-secondary, #F2F5F8);--ac__label__default--background-color--hover:var(--color--primary-200, #f2faf8);--ac__label__default--border-color--hover:var(--color--primary-600, #007a5a)}.label__container{width:fit-content;display:flex;flex-wrap:wrap;position:relative;background-color:#FFFFFF;align-items:center;align-self:center;cursor:pointer;color:var(--ac__label--title--primary);fill:var(--ac__label--title--primary);border:var(--ac__border);border-radius:var(--ac--border-radius);border-color:var(--ac__border-color-strokes);padding-right:var(--space--medium, 12px);padding-left:var(--space--medium, 12px)}.label__container:hover{border-color:var(--ac__label__default--border-color--hover);background-color:var(--ac__label__default--background-color--hover)}label{display:flex;align-items:center;font-weight:var(--text-weight--large, 600);cursor:pointer;height:var(--ac--height);font-family:var(--ac--font-family);font-size:var(--ac--font-size)}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, h, c as createEvent, f as forceUpdate, H as Host, g as getElement } from './index-
|
|
1
|
+
import { r as registerInstance, h, c as createEvent, f as forceUpdate, H as Host, g as getElement } from './index-33153059.js';
|
|
2
2
|
import { N as NumberUtils, M as MaskFormatter } from './RequestMetadata-c265c9d5.js';
|
|
3
3
|
import { F as FloatingManager } from './FloatingManager-bb90ef41.js';
|
|
4
4
|
import { C as CSSVarsUtils } from './CSSVarsUtils-e0128b01.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, f as forceUpdate, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, f as forceUpdate, h } from './index-33153059.js';
|
|
2
2
|
|
|
3
3
|
const ezDialogCss = ":host{--dialog__container-padding:var(--space--large, 24px);--dialog__btn__close--background-color:var(--title--primary, #2b3a54);--dialog__btn__no--padding-right:var(--space--large, 24px);--dialog__btn__close__image:url('data:image/svg+xml;utf8,<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg%22%3E<path d=\"M 7.0060773,5.995511 11.461972,1.5397722 c 0.132856,-0.1328413 0.207547,-0.3130253 0.207547,-0.5009046 0,-0.18786999 -0.07469,-0.3680541 -0.207547,-0.5009048 -0.132857,-0.13284126 -0.31302,-0.20748126 -0.500927,-0.20748126 -0.187812,0 -0.36807,0.07464 -0.500926,0.20748126 L 6.0042244,4.9937015 1.5482921,0.5379628 C 1.4154357,0.40512154 1.2352533,0.33048154 1.0473657,0.33048154 c -0.18787813,0 -0.36807,0.07464 -0.50092647,0.20748126 -0.13285646,0.1328507 -0.20749026,0.31303481 -0.20749026,0.5009048 0,0.1878793 0.0746338,0.3680633 0.20749026,0.5009046 L 5.0023715,5.995511 0.54643923,10.452213 c -0.0676086,0.06534 -0.12151598,0.14352 -0.15859681,0.229916 -0.0370714,0.08639 -0.0565645,0.1794 -0.0573369,0.27335 -7.724e-4,0.09404 0.0171873,0.187331 0.0528423,0.274293 0.0356455,0.08705 0.0882688,0.166087 0.15479148,0.23256 0.0665321,0.06648 0.14562277,0.11897 0.2326735,0.154567 0.0870507,0.0356 0.18031463,0.05344 0.2743433,0.05259 0.094029,-8.5e-4 0.1869528,-0.02049 0.2733331,-0.0576 0.08639,-0.0372 0.1645078,-0.09121 0.2298029,-0.158817 L 6.0042244,6.9973204 10.460119,11.453078 c 0.132856,0.132851 0.313114,0.207444 0.500926,0.207444 0.187907,0 0.36807,-0.07459 0.500927,-0.207444 0.132856,-0.13285 0.207547,-0.313006 0.207547,-0.500904 0,-0.187898 -0.07469,-0.368054 -0.207547,-0.500905 z\"/></svg>');--dialog__title--font-pattern:var(--font-pattern, \"'Sora', 'Algerian'\");--dialog__title--padding-left:var(--space--small, 6px);--dialog__title__container--padding-bottom:var(--space--medium, 12px);--dialog__title--weight--large:var(--text-weight--large, 600);--dialog__body--font-pattern:var(--font-pattern, \"'Sora', 'Algerian'\");--dialog__body--text-shadow:var(--text-shadow, \"0 0 0 #353535, 0 0 1px transparent\");--dialog__body--text-weight--medium:var(--text-weight--medium, 400);--dialog__body--padding-bottom:var(--space--large, 24px);--dialog__body--font-size:var(--text--medium, 14px);--dialog__body--color:var(--text--primary, #626e82);--dialog__critical--background-color:var(--color--alert-error-800, #BD0025);--dialog__warning--background-color:var(--color--alert-warning-500, #EFB103);--dialog-z-index:var(--most-visible, 3);--dialog--warning__image:url('data: image/svg+xml;utf8,<svg width=\"15\" height=\"15\" viewBox=\"0 0 15 15\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 7.5,0 0,13 h 15 z m 0,2.73684 5.1341,8.89476 H 2.36591 Z M 6.81818,5.47368 V 8.21053 H 8.18182 V 5.47368 Z m 0,4.10527 V 10.9474 H 8.18182 V 9.57895\"/></svg>');--dialog--critical__image:url('data: image/svg+xml;utf8,<svg width=\"13\" height=\"13\" viewBox=\"0 0 13 13\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 7.6534493,6.4948538 12.762051,1.3864299 C 12.914368,1.2341297 13,1.027552 13,0.81215179 13,0.59676225 12.914369,0.39018443 12.762051,0.23787352 12.609733,0.08557341 12.40318,0 12.187747,0 11.972425,0 11.765762,0.08557341 11.613445,0.23787352 L 6.5048431,5.3462975 1.3961977,0.23787352 C 1.2438802,0.08557341 1.0373043,0 0.82189458,0 0.60649572,0 0.39990901,0.08557341 0.24759147,0.23787352 0.09527396,0.39018443 0.00970766,0.59676225 0.00970766,0.81215179 c 0,0.21540021 0.0855663,0.42197791 0.23788381,0.57427811 L 5.3562369,6.4948538 0.24759147,11.604381 c -0.0775121,0.07492 -0.13931586,0.164543 -0.18182835,0.263595 -0.04250169,0.09905 -0.064850182,0.205678 -0.0657357237,0.313391 -8.8554258e-4,0.107813 0.0197049337,0.214771 0.0605827337,0.314472 0.04086693,0.0998 0.10119858,0.190415 0.17746563,0.266625 0.0762779,0.07622 0.16695386,0.136398 0.26675594,0.177208 0.099802,0.04082 0.20672745,0.06127 0.31452961,0.06029 0.1078025,-9.53e-4 0.21433799,-0.0235 0.31337139,-0.06604 0.099045,-0.04265 0.1886052,-0.104571 0.263465,-0.182081 L 6.5048431,7.6434102 11.613445,12.751855 c 0.152317,0.152312 0.35898,0.237831 0.574302,0.237831 0.215433,0 0.421986,-0.08552 0.574304,-0.237831 C 12.914368,12.599545 13,12.393 13,12.177578 13,11.962157 12.91437,11.75561 12.762051,11.603299 Z\"/></svg>')}h2{margin-block-start:0;margin-block-end:0;margin-inline-start:0px;margin-inline-end:0px}.overlay{position:fixed;display:flex;top:0px;z-index:var(--dialog-z-index);left:0px;width:100%;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.dialog{display:flex;width:80%;position:absolute;top:50%;left:50%;margin-right:-50%;box-sizing:border-box;transform:translate(-50%, -50%);box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122)}@media screen and (min-width: 768px){.dialog{width:50%}}@media screen and (min-width: 992px){.dialog{width:33.33333%}}.dialog__container{width:100%;background:#FFFF;border-radius:0px 6px 6px 0px;box-sizing:border-box;padding:var(--dialog__container-padding)}.dialog__critical--indicator{box-sizing:border-box;width:12px;border-radius:6px 0px 0px 6px;background-color:var(--dialog__critical--background-color)}.dialog__warning--indicator{width:12px;border-radius:6px 0px 0px 6px;box-sizing:border-box;background-color:var(--dialog__warning--background-color)}.message{font-size:var(--dialog__body--font-size);font-weight:var(--dialog__body--text-weight--medium);font-family:var(--dialog__body--font-pattern);text-shadow:var(--dialog__body--text-shadow);padding-bottom:var(--dialog__body--padding-bottom);color:var(--dialog__body--color);max-height:30vh;content-visibility:auto;margin-bottom:24px;overflow-y:auto}.changeable__icon{width:15px;height:15px}.title{display:flex;font-family:var(--dialog__title--font-pattern);margin:0;font-weight:var(--dialog__title--weight--large);line-height:1.3}.title__container{display:flex;padding-bottom:var(--dialog__title__container--padding-bottom)}.title__box{display:flex;width:100%;align-items:center;align-self:center}.title--label{padding-left:var(--dialog__title--padding-left)}.title-icon{outline:none;border:none;background-color:var(--dialog__warning--background-color);width:26px;height:26px;border-radius:100%;padding:0;display:flex;justify-content:center;align-items:center}.title-icon--critical{background-color:var(--dialog__critical--background-color)}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;width:10%;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:var(--dialog__btn__close--background-color);width:12px;height:12px;-webkit-mask-image:var(--dialog__btn__close__image);mask-image:var(--dialog__btn__close__image)}.title-icon::after{content:'';display:flex;background-color:#FFFF;width:15px;height:15px;-webkit-mask-image:var(--dialog--warning__image);mask-image:var(--dialog--warning__image)}.title-icon--critical::after{content:'';display:flex;background-color:#FFFF;width:13px;height:13px;-webkit-mask-image:var(--dialog--critical__image);mask-image:var(--dialog--critical__image)}.button-yes-no__container{display:flex;box-sizing:border-box;align-self:center;align-items:center;justify-content:flex-end}.button__no{padding-right:var(--dialog__btn__no--padding-right)}.button__ok--container{display:flex;justify-content:flex-end}.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%}}";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerInstance, c as createEvent, h } from './index-
|
|
1
|
+
import { r as registerInstance, c as createEvent, h } from './index-33153059.js';
|
|
2
2
|
|
|
3
3
|
const ezLabelChipCss = ":host{--lc--height:36px;--lc__label--font-size:var(--text--medium, 14px);--lc__label--font-family:var(--font-pattern, Arial);--lc__label--font-weight:var(--text-weight--large, 600);--lc__label--space--medium:var(--space--medium, 12px);--lc__label--title--primary:var(--title--primary, #919191);--lc__label__container--border-radius:var(--border--radius-large, 24px);--lc__label__container--border:1px solid;--lc__label__container--border-color-strokes:var(--color--strokes, #DCE0E8);--lc__label__container--color-primary:var(--color--primary, #008561);--lc__label__container-color--disable-secondary:var(--color--disable-secondary, #F2F5F8);--lc__label__container--background-color:#0085610F;--lc__label__container--border-color:#0085610F;--lc__label__container--default--border-color--hover:var(--color--primary-600, #007a5a);--lc__label__container--default--background-color--hover:var(--color--primary-200, #f2faf8);--lc__label__container--text--disabled:var(--text--disable, #AFB6C0);--lc__btn__close--image:url('data:image/svg+xml;utf8,<svg width=\"8\" height=\"8\" viewBox=\"0 0 8 8\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 4.7098145,3.9968334 7.8535703,0.85318776 C 7.9473034,0.75946455 8,0.63233985 8,0.49978585 8,0.36723841 7.947304,0.24011361 7.8535703,0.14638378 7.7598354,0.05266059 7.6327257,6.48e-8 7.500152,6.48e-8 7.3676457,6.48e-8 7.2404691,0.0526608 7.1467354,0.14638378 L 4.00298,3.2900293 0.8591984,0.14638378 C 0.76546463,0.05266059 0.63834103,6.48e-8 0.50578123,6.48e-8 0.3732281,6.48e-8 0.24609783,0.05266059 0.15236397,0.14638378 0.05863012,0.24011361 0.00597395,0.36723841 0.00597395,0.49978585 c 0,0.132554 0.05265617,0.2596787 0.14639002,0.35340191 L 3.2961455,3.9968334 0.15236397,7.1411589 C 0.10466427,7.1872561 0.06663114,7.2424161 0.04046961,7.303371 0.01431473,7.3643212 5.6180845e-4,7.429943 1.6859246e-5,7.4962264 -5.2808998e-4,7.5625744 0.01214297,7.6283944 0.03729854,7.6897476 c 0.02514888,0.061416 0.06227604,0.1171794 0.1092096,0.1640783 0.0469402,0.046903 0.10274083,0.083936 0.16415749,0.1090508 0.0614166,0.025114 0.12721688,0.037703 0.19355667,0.037103 0.06634,-5.714e-4 0.13190027,-0.014457 0.19284393,-0.04064 0.0609507,-0.026246 0.11606474,-0.064351 0.16213217,-0.1120492 L 4.00298,4.7036374 7.1467354,7.8472967 c 0.093734,0.09373 0.2209103,0.1463572 0.3534166,0.1463572 0.1325737,0 0.2596834,-0.052623 0.3534183,-0.1463572 C 7.9473034,7.753567 8,7.6264624 8,7.493895 8,7.3613281 7.9473086,7.2342224 7.8535703,7.1404927 Z\"/></svg>')}.btn-close{align-items:flex-start;display:flex;outline:none;border:none;padding:0px 0px 0px 6px;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:var(--lc__label__container--color-primary);width:8px;height:8px;-webkit-mask-image:var(--lc__btn__close--image);mask-image:var(--lc__btn__close--image)}.label__container{width:fit-content;display:flex;flex-wrap:wrap;position:relative;align-items:center;background-color:#FFFFFF;align-self:center;color:var(--lc__label--title--primary);fill:var(--lc__label--title--primary);border:var(--lc__label__container--border);border-radius:var(--lc__label__container--border-radius);border-color:var(--lc__label__container--border-color-strokes);padding-right:var(--lc__label--space--medium);padding-left:var(--lc__label--space--medium)}.label__container:hover{border-color:var(--lc__label__container--default--border-color--hover);background-color:var(--lc__label__container--default--background-color--hover)}.label__container--active{width:fit-content;display:flex;flex-wrap:wrap;position:relative;align-items:center;align-self:center;border:var(--lc__label__container--border);border-radius:var(--lc__label__container--border-radius);padding-right:var(--lc__label--space--medium);padding-left:var(--lc__label--space--medium);fill:var(--lc__label__container--color-primary);color:var(--lc__label__container--color-primary);border-color:var(--lc__label__container--border-color);background-color:var(--lc__label__container--background-color)}.label__container--disabled{width:fit-content;display:flex;flex-wrap:wrap;position:relative;align-items:center;align-self:center;border:var(--lc__label__container--border);border-color:var(--lc__label__container-color--disable-secondary);border-radius:var(--lc__label__container--border-radius);padding-right:var(--lc__label--space--medium);padding-left:var(--lc__label--space--medium);fill:var(--lc__label__container--text--disabled);color:var(--lc__label__container--text--disabled);background-color:var(--lc__label__container-color--disable-secondary)}label{display:flex;align-items:center;font-weight:var(--lc__label--font-weight);cursor:pointer;height:var(--lc--height);font-family:var(--lc__label--font-family);font-size:var(--lc__label--font-size)}.label__icon{display:flex;cursor:pointer}";
|
|
4
4
|
|