@sankhyalabs/ezui 1.1.69 → 1.1.70
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-button_16.cjs.entry.js +89 -92
- package/dist/cjs/ez-dialog.cjs.entry.js +4 -1
- package/dist/cjs/ez-modal.cjs.entry.js +15 -68
- package/dist/cjs/ez-popover.cjs.entry.js +13 -14
- package/dist/cjs/ez-popup.cjs.entry.js +1 -1
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ez-button/ez-button.css +5 -4
- package/dist/collection/components/ez-combo-box/ez-combo-box.css +46 -44
- package/dist/collection/components/ez-combo-box/ez-combo-box.js +34 -35
- package/dist/collection/components/ez-dialog/ez-dialog.css +43 -43
- package/dist/collection/components/ez-dialog/ez-dialog.js +5 -2
- package/dist/collection/components/ez-form/subcomponents/structure/FormSheet.js +1 -1
- package/dist/collection/components/ez-modal/ez-modal.js +27 -80
- package/dist/collection/components/ez-popover/ez-popover.css +4 -5
- package/dist/collection/components/ez-popover/ez-popover.js +25 -26
- package/dist/collection/components/ez-popup/ez-popup.css +5 -5
- package/dist/collection/components/ez-popup/ez-popup.js +1 -1
- package/dist/collection/components/ez-search/ez-search.js +1 -1
- package/dist/collection/components/ez-tabselector/ez-tabselector.css +7 -10
- package/dist/collection/components/ez-tabselector/ez-tabselector.js +67 -69
- package/dist/custom-elements/index.js +126 -180
- package/dist/esm/ez-button_16.entry.js +89 -92
- package/dist/esm/ez-dialog.entry.js +4 -1
- package/dist/esm/ez-modal.entry.js +15 -68
- package/dist/esm/ez-popover.entry.js +13 -14
- package/dist/esm/ez-popup.entry.js +1 -1
- 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-1bc9ddad.entry.js +1 -0
- package/dist/ezui/p-a7e23f65.entry.js +1 -0
- package/dist/ezui/p-a88ee12f.entry.js +1 -0
- package/dist/ezui/p-b692a0ab.entry.js +1 -0
- package/dist/ezui/p-b6e0fd3e.entry.js +1 -0
- package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +5 -5
- package/dist/types/components/ez-dialog/ez-dialog.d.ts +4 -1
- package/dist/types/components/ez-modal/ez-modal.d.ts +7 -7
- package/dist/types/components/ez-popover/ez-popover.d.ts +4 -5
- package/dist/types/components/ez-popup/ez-popup.d.ts +1 -1
- package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +19 -10
- package/dist/types/components.d.ts +56 -35
- package/package.json +1 -1
- package/dist/ezui/p-169d99a1.entry.js +0 -1
- package/dist/ezui/p-7c7dbfcb.entry.js +0 -1
- package/dist/ezui/p-8c8f1c00.entry.js +0 -1
- package/dist/ezui/p-d185d7e8.entry.js +0 -1
- package/dist/ezui/p-ee5058c1.entry.js +0 -1
|
@@ -1,104 +1,51 @@
|
|
|
1
|
-
import { Component, Host, h, Prop, Watch, Event } from
|
|
1
|
+
import { Component, Host, h, Prop, Watch, Event } from "@stencil/core";
|
|
2
2
|
export class EzModal {
|
|
3
3
|
constructor() {
|
|
4
4
|
/**
|
|
5
5
|
* Controle de exibição do Modal
|
|
6
6
|
*/
|
|
7
|
-
this.
|
|
7
|
+
this.opened = true;
|
|
8
8
|
/**
|
|
9
9
|
* Define se o modal será fechado ao clicar ESC
|
|
10
10
|
*/
|
|
11
|
-
this.
|
|
11
|
+
this.closeEsc = false;
|
|
12
12
|
/**
|
|
13
13
|
* Define se o modal será fechado ao clicar fora do conteúdo.
|
|
14
14
|
*/
|
|
15
|
-
this.
|
|
15
|
+
this.closeOutsideClick = false;
|
|
16
16
|
this.handleKeyboardEvent = (ev) => {
|
|
17
|
-
if ((ev === null || ev === void 0 ? void 0 : ev.key) ===
|
|
17
|
+
if ((ev === null || ev === void 0 ? void 0 : ev.key) === "Escape" && this.closeEsc) {
|
|
18
18
|
this.closeModal();
|
|
19
19
|
}
|
|
20
20
|
};
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
// this.oppened = false;
|
|
26
|
-
// this.ezChange.emit(this.oppened);
|
|
27
|
-
// }
|
|
28
|
-
// }
|
|
29
|
-
handleOppenedChange() {
|
|
30
|
-
if (this.oppened) {
|
|
31
|
-
document.addEventListener('keydown', this.handleKeyboardEvent);
|
|
22
|
+
handleopenedChange() {
|
|
23
|
+
if (this.opened) {
|
|
24
|
+
document.addEventListener("keydown", this.handleKeyboardEvent);
|
|
32
25
|
}
|
|
33
26
|
else {
|
|
34
|
-
document.removeEventListener(
|
|
27
|
+
document.removeEventListener("keydown", this.handleKeyboardEvent);
|
|
35
28
|
}
|
|
36
29
|
}
|
|
37
30
|
closeModal() {
|
|
38
|
-
this.
|
|
39
|
-
this.ezCloseModal.emit(this.
|
|
31
|
+
this.opened = false;
|
|
32
|
+
this.ezCloseModal.emit(this.opened);
|
|
40
33
|
}
|
|
41
|
-
///////
|
|
42
|
-
// trapTabKey(e) {
|
|
43
|
-
// // Check for TAB key press
|
|
44
|
-
// if (e.keyCode === 9) {
|
|
45
|
-
// // SHIFT + TAB
|
|
46
|
-
// if (e.shiftKey) {
|
|
47
|
-
// if (document.activeElement === this._firstTabStop) {
|
|
48
|
-
// e.preventDefault();
|
|
49
|
-
// this._lastTabStop.focus();
|
|
50
|
-
// }
|
|
51
|
-
// // TAB
|
|
52
|
-
// } else {
|
|
53
|
-
// if (document.activeElement === this._lastTabStop) {
|
|
54
|
-
// e.preventDefault();
|
|
55
|
-
// this._firstTabStop.focus();
|
|
56
|
-
// }
|
|
57
|
-
// }
|
|
58
|
-
// }
|
|
59
|
-
// if (e.keyCode === 27) {
|
|
60
|
-
// this.closeModal();
|
|
61
|
-
// }
|
|
62
|
-
// }
|
|
63
|
-
// closeModal() {
|
|
64
|
-
// this.oppened = false;
|
|
65
|
-
// this._focusedElementBeforeModal.focus();
|
|
66
|
-
// }
|
|
67
|
-
// componentDidLoad() {
|
|
68
|
-
// this._overlay.addEventListener('keydown', (ev) => { this.trapTabKey(ev) });
|
|
69
|
-
// // Save current focus
|
|
70
|
-
// this._focusedElementBeforeModal = document.activeElement;
|
|
71
|
-
// // Find all focusable children
|
|
72
|
-
// var focusableElementsString = 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]';
|
|
73
|
-
// var focusableElements = this._modalContainer.querySelectorAll(focusableElementsString);
|
|
74
|
-
// // Convert NodeList to Array
|
|
75
|
-
// focusableElements = Array.prototype.slice.call(focusableElements);
|
|
76
|
-
// this._firstTabStop = focusableElements[0];
|
|
77
|
-
// this._lastTabStop = focusableElements[focusableElements.length - 1];
|
|
78
|
-
// // Focus first child
|
|
79
|
-
// this._firstTabStop.focus();
|
|
80
|
-
// }
|
|
81
|
-
// componentDidUpdate() {
|
|
82
|
-
// var focusableElementsString = 'a[href], area[href], input:not([disabled]), select:not([disabled]), textarea:not([disabled]), button:not([disabled]), iframe, object, embed, [tabindex="0"], [contenteditable]';
|
|
83
|
-
// var focusableElements = this._modalContainer.querySelectorAll(focusableElementsString);
|
|
84
|
-
// }
|
|
85
|
-
/////
|
|
86
34
|
componentDidLoad() {
|
|
87
|
-
this.
|
|
35
|
+
this.handleopenedChange();
|
|
88
36
|
}
|
|
89
37
|
onMouseDownHandler(event) {
|
|
90
|
-
if (this.
|
|
38
|
+
if (this.closeOutsideClick && event.target === this._overlay) {
|
|
91
39
|
this.closeModal();
|
|
92
40
|
}
|
|
93
41
|
}
|
|
94
|
-
//Ainda teremos ajustes visuais
|
|
95
42
|
render() {
|
|
96
43
|
const positionSufix = this.align === "left" ? "left" : "right";
|
|
97
|
-
return (h(Host, null, this.
|
|
44
|
+
return (h(Host, null, this.opened
|
|
98
45
|
?
|
|
99
|
-
h("div", { class:
|
|
46
|
+
h("div", { class: "modal", onMouseDown: evt => this.onMouseDownHandler(evt) },
|
|
100
47
|
h("div", { class: `modal__container modal__container--${positionSufix}`, ref: ref => this._overlay = ref },
|
|
101
|
-
h("div", { class: `modal__content modal__content--${positionSufix} ${this.
|
|
48
|
+
h("div", { class: `modal__content modal__content--${positionSufix} ${this.modalSize}` },
|
|
102
49
|
h("slot", null))))
|
|
103
50
|
:
|
|
104
51
|
undefined));
|
|
@@ -112,7 +59,7 @@ export class EzModal {
|
|
|
112
59
|
"$": ["ez-modal.css"]
|
|
113
60
|
}; }
|
|
114
61
|
static get properties() { return {
|
|
115
|
-
"
|
|
62
|
+
"modalSize": {
|
|
116
63
|
"type": "string",
|
|
117
64
|
"mutable": false,
|
|
118
65
|
"complexType": {
|
|
@@ -126,7 +73,7 @@ export class EzModal {
|
|
|
126
73
|
"tags": [],
|
|
127
74
|
"text": "Define o tamanho do modal. Devem ser utilizados os tamanhos definidos de colunas como \"col-sd-3\""
|
|
128
75
|
},
|
|
129
|
-
"attribute": "
|
|
76
|
+
"attribute": "modal-size",
|
|
130
77
|
"reflect": false
|
|
131
78
|
},
|
|
132
79
|
"align": {
|
|
@@ -141,12 +88,12 @@ export class EzModal {
|
|
|
141
88
|
"optional": false,
|
|
142
89
|
"docs": {
|
|
143
90
|
"tags": [],
|
|
144
|
-
"text": "Define o alinhamento do modal. Seus valores podem ser
|
|
91
|
+
"text": "Define o alinhamento do modal. Seus valores podem ser \"right\" ou \"left\""
|
|
145
92
|
},
|
|
146
93
|
"attribute": "align",
|
|
147
94
|
"reflect": false
|
|
148
95
|
},
|
|
149
|
-
"
|
|
96
|
+
"opened": {
|
|
150
97
|
"type": "boolean",
|
|
151
98
|
"mutable": false,
|
|
152
99
|
"complexType": {
|
|
@@ -160,11 +107,11 @@ export class EzModal {
|
|
|
160
107
|
"tags": [],
|
|
161
108
|
"text": "Controle de exibi\u00E7\u00E3o do Modal"
|
|
162
109
|
},
|
|
163
|
-
"attribute": "
|
|
110
|
+
"attribute": "opened",
|
|
164
111
|
"reflect": false,
|
|
165
112
|
"defaultValue": "true"
|
|
166
113
|
},
|
|
167
|
-
"
|
|
114
|
+
"closeEsc": {
|
|
168
115
|
"type": "boolean",
|
|
169
116
|
"mutable": false,
|
|
170
117
|
"complexType": {
|
|
@@ -178,11 +125,11 @@ export class EzModal {
|
|
|
178
125
|
"tags": [],
|
|
179
126
|
"text": "Define se o modal ser\u00E1 fechado ao clicar ESC"
|
|
180
127
|
},
|
|
181
|
-
"attribute": "
|
|
128
|
+
"attribute": "close-esc",
|
|
182
129
|
"reflect": false,
|
|
183
130
|
"defaultValue": "false"
|
|
184
131
|
},
|
|
185
|
-
"
|
|
132
|
+
"closeOutsideClick": {
|
|
186
133
|
"type": "boolean",
|
|
187
134
|
"mutable": false,
|
|
188
135
|
"complexType": {
|
|
@@ -196,7 +143,7 @@ export class EzModal {
|
|
|
196
143
|
"tags": [],
|
|
197
144
|
"text": "Define se o modal ser\u00E1 fechado ao clicar fora do conte\u00FAdo."
|
|
198
145
|
},
|
|
199
|
-
"attribute": "
|
|
146
|
+
"attribute": "close-outside-click",
|
|
200
147
|
"reflect": false,
|
|
201
148
|
"defaultValue": "false"
|
|
202
149
|
}
|
|
@@ -218,7 +165,7 @@ export class EzModal {
|
|
|
218
165
|
}
|
|
219
166
|
}]; }
|
|
220
167
|
static get watchers() { return [{
|
|
221
|
-
"propName": "
|
|
222
|
-
"methodName": "
|
|
168
|
+
"propName": "opened",
|
|
169
|
+
"methodName": "handleopenedChange"
|
|
223
170
|
}]; }
|
|
224
171
|
}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
/* box */
|
|
4
4
|
/*@doc Define o raio da borda do popover.*/
|
|
5
|
-
--
|
|
5
|
+
--popover__box--border-radius: var(--border--radius-medium, 12px);
|
|
6
6
|
/*@doc Define a sombra do popover.*/
|
|
7
|
-
--
|
|
7
|
+
--popover__box--box-shadow: var(--shadow, 0px 0px 16px 0px #000);
|
|
8
8
|
|
|
9
9
|
/***************
|
|
10
10
|
host style
|
|
@@ -24,12 +24,11 @@
|
|
|
24
24
|
flex-direction: column;
|
|
25
25
|
|
|
26
26
|
height: fit-content;
|
|
27
|
-
/* width: fit-content; */
|
|
28
27
|
|
|
29
28
|
/*public*/
|
|
30
29
|
background-color: var(--background--xlight);
|
|
31
|
-
border-radius: var(--
|
|
32
|
-
box-shadow: var(--
|
|
30
|
+
border-radius: var(--popover__box--border-radius);
|
|
31
|
+
box-shadow: var(--popover__box--box-shadow);
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
.box--fit-content {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Component, h, Method, Element, Host, Prop, Event, Watch } from
|
|
2
|
-
import { FloatingManager } from
|
|
1
|
+
import { Component, h, Method, Element, Host, Prop, Event, Watch } from "@stencil/core";
|
|
2
|
+
import { FloatingManager } from "@sankhyalabs/core";
|
|
3
3
|
export class EzPopover {
|
|
4
4
|
constructor() {
|
|
5
5
|
this._firstRender = true;
|
|
@@ -7,28 +7,28 @@ export class EzPopover {
|
|
|
7
7
|
* No modo floating = false o popover só se tornará visível
|
|
8
8
|
* quando o método show() for acionado.
|
|
9
9
|
*/
|
|
10
|
-
this.
|
|
10
|
+
this.autoClose = true;
|
|
11
11
|
/**
|
|
12
12
|
* Offset top do popover em relação ao componente pai
|
|
13
13
|
*/
|
|
14
|
-
this.top =
|
|
14
|
+
this.top = "0px";
|
|
15
15
|
/**
|
|
16
16
|
* Offset left do popover em relação ao componente pai
|
|
17
17
|
*/
|
|
18
|
-
this.left =
|
|
18
|
+
this.left = "0px";
|
|
19
19
|
/**
|
|
20
20
|
* Offset bottom do popover em relação ao componente pai
|
|
21
21
|
*/
|
|
22
|
-
this.bottom =
|
|
22
|
+
this.bottom = "0px";
|
|
23
23
|
/**
|
|
24
24
|
* Offset right do popover em relação ao componente pai
|
|
25
25
|
*/
|
|
26
|
-
this.right =
|
|
26
|
+
this.right = "0px";
|
|
27
27
|
/**
|
|
28
28
|
* Ajusta o comportamento da largura do popover.
|
|
29
29
|
* Opções: "100% e "fit-content" (default)
|
|
30
30
|
*/
|
|
31
|
-
this.
|
|
31
|
+
this.boxWidth = "fit-content";
|
|
32
32
|
}
|
|
33
33
|
dispatchVisibilityChange(newValue, oldValue) {
|
|
34
34
|
if (newValue != oldValue) {
|
|
@@ -40,7 +40,7 @@ export class EzPopover {
|
|
|
40
40
|
*/
|
|
41
41
|
async updatePosition(top = this.top, left = this.left, bottom = this.bottom, right = this.right) {
|
|
42
42
|
const floatingOptions = {
|
|
43
|
-
autoClose: this.
|
|
43
|
+
autoClose: this.autoClose,
|
|
44
44
|
top,
|
|
45
45
|
left,
|
|
46
46
|
bottom,
|
|
@@ -60,11 +60,10 @@ export class EzPopover {
|
|
|
60
60
|
}
|
|
61
61
|
/**
|
|
62
62
|
* Faz com que o popover seja renderizado na DOM.
|
|
63
|
-
*
|
|
64
63
|
*/
|
|
65
64
|
async show(top = this.top, left = this.left, bottom = this.bottom, right = this.right) {
|
|
66
65
|
const floatingOptions = {
|
|
67
|
-
autoClose: this.
|
|
66
|
+
autoClose: this.autoClose,
|
|
68
67
|
top,
|
|
69
68
|
left,
|
|
70
69
|
bottom,
|
|
@@ -81,7 +80,7 @@ export class EzPopover {
|
|
|
81
80
|
}
|
|
82
81
|
};
|
|
83
82
|
this._floatingID = FloatingManager.float(this._box, this._container, floatingOptions);
|
|
84
|
-
this.
|
|
83
|
+
this.opened = true;
|
|
85
84
|
}
|
|
86
85
|
/**
|
|
87
86
|
* Usado no modo floating. Faz com que o componente seja ocultado.
|
|
@@ -90,7 +89,7 @@ export class EzPopover {
|
|
|
90
89
|
if (this._floatingID !== undefined) {
|
|
91
90
|
FloatingManager.close(this._floatingID);
|
|
92
91
|
this._floatingID = undefined;
|
|
93
|
-
this.
|
|
92
|
+
this.opened = false;
|
|
94
93
|
}
|
|
95
94
|
}
|
|
96
95
|
componentDidRender() {
|
|
@@ -102,7 +101,7 @@ export class EzPopover {
|
|
|
102
101
|
render() {
|
|
103
102
|
return (h(Host, null,
|
|
104
103
|
h("section", { ref: el => this._container = el },
|
|
105
|
-
h("div", { class: `box ${this.
|
|
104
|
+
h("div", { class: `box ${this.boxWidth === "fit-content" ? "box--fit-content" : "box--full-width"}`, ref: el => this._box = el },
|
|
106
105
|
h("slot", null)))));
|
|
107
106
|
}
|
|
108
107
|
static get is() { return "ez-popover"; }
|
|
@@ -114,7 +113,7 @@ export class EzPopover {
|
|
|
114
113
|
"$": ["ez-popover.css"]
|
|
115
114
|
}; }
|
|
116
115
|
static get properties() { return {
|
|
117
|
-
"
|
|
116
|
+
"autoClose": {
|
|
118
117
|
"type": "boolean",
|
|
119
118
|
"mutable": false,
|
|
120
119
|
"complexType": {
|
|
@@ -128,7 +127,7 @@ export class EzPopover {
|
|
|
128
127
|
"tags": [],
|
|
129
128
|
"text": "No modo floating = false o popover s\u00F3 se tornar\u00E1 vis\u00EDvel\nquando o m\u00E9todo show() for acionado."
|
|
130
129
|
},
|
|
131
|
-
"attribute": "
|
|
130
|
+
"attribute": "auto-close",
|
|
132
131
|
"reflect": true,
|
|
133
132
|
"defaultValue": "true"
|
|
134
133
|
},
|
|
@@ -148,7 +147,7 @@ export class EzPopover {
|
|
|
148
147
|
},
|
|
149
148
|
"attribute": "top",
|
|
150
149
|
"reflect": true,
|
|
151
|
-
"defaultValue": "
|
|
150
|
+
"defaultValue": "\"0px\""
|
|
152
151
|
},
|
|
153
152
|
"left": {
|
|
154
153
|
"type": "string",
|
|
@@ -166,7 +165,7 @@ export class EzPopover {
|
|
|
166
165
|
},
|
|
167
166
|
"attribute": "left",
|
|
168
167
|
"reflect": true,
|
|
169
|
-
"defaultValue": "
|
|
168
|
+
"defaultValue": "\"0px\""
|
|
170
169
|
},
|
|
171
170
|
"bottom": {
|
|
172
171
|
"type": "string",
|
|
@@ -184,7 +183,7 @@ export class EzPopover {
|
|
|
184
183
|
},
|
|
185
184
|
"attribute": "bottom",
|
|
186
185
|
"reflect": true,
|
|
187
|
-
"defaultValue": "
|
|
186
|
+
"defaultValue": "\"0px\""
|
|
188
187
|
},
|
|
189
188
|
"right": {
|
|
190
189
|
"type": "string",
|
|
@@ -202,9 +201,9 @@ export class EzPopover {
|
|
|
202
201
|
},
|
|
203
202
|
"attribute": "right",
|
|
204
203
|
"reflect": true,
|
|
205
|
-
"defaultValue": "
|
|
204
|
+
"defaultValue": "\"0px\""
|
|
206
205
|
},
|
|
207
|
-
"
|
|
206
|
+
"boxWidth": {
|
|
208
207
|
"type": "string",
|
|
209
208
|
"mutable": false,
|
|
210
209
|
"complexType": {
|
|
@@ -218,11 +217,11 @@ export class EzPopover {
|
|
|
218
217
|
"tags": [],
|
|
219
218
|
"text": "Ajusta o comportamento da largura do popover.\nOp\u00E7\u00F5es: \"100% e \"fit-content\" (default)"
|
|
220
219
|
},
|
|
221
|
-
"attribute": "
|
|
220
|
+
"attribute": "box-width",
|
|
222
221
|
"reflect": true,
|
|
223
|
-
"defaultValue": "
|
|
222
|
+
"defaultValue": "\"fit-content\""
|
|
224
223
|
},
|
|
225
|
-
"
|
|
224
|
+
"opened": {
|
|
226
225
|
"type": "boolean",
|
|
227
226
|
"mutable": true,
|
|
228
227
|
"complexType": {
|
|
@@ -236,7 +235,7 @@ export class EzPopover {
|
|
|
236
235
|
"tags": [],
|
|
237
236
|
"text": "Externaliza estado atual do componente."
|
|
238
237
|
},
|
|
239
|
-
"attribute": "
|
|
238
|
+
"attribute": "opened",
|
|
240
239
|
"reflect": true
|
|
241
240
|
}
|
|
242
241
|
}; }
|
|
@@ -338,7 +337,7 @@ export class EzPopover {
|
|
|
338
337
|
}; }
|
|
339
338
|
static get elementRef() { return "_host"; }
|
|
340
339
|
static get watchers() { return [{
|
|
341
|
-
"propName": "
|
|
340
|
+
"propName": "opened",
|
|
342
341
|
"methodName": "dispatchVisibilityChange"
|
|
343
342
|
}]; }
|
|
344
343
|
}
|
|
@@ -26,9 +26,9 @@
|
|
|
26
26
|
|
|
27
27
|
/* Buttons */
|
|
28
28
|
/* @doc Define a cor do ícone do botão de fechamento. */
|
|
29
|
-
--popup__btn__close--
|
|
29
|
+
--popup__btn__close--icon-color: var(--title--primary, #2b3a54);
|
|
30
30
|
/* @doc Contém o ícone do botão de fechamento. */
|
|
31
|
-
--popup__btn__close--
|
|
31
|
+
--popup__btn__close--icon: url('data:image/svg+xml;utf8,<svg width="14" height="14" viewBox="0 0 14 14" xmlns="http://www.w3.org/2000/svg"><path d="M 8.2421753,6.9944578 13.743748,1.4930784 C 13.907781,1.3290628 14,1.1065946 14,0.87462511 14,0.64266712 13.907782,0.42019873 13.743748,0.25617155 13.579712,0.09215597 13.35727,6.48e-8 13.125266,6.48e-8 12.89338,6.48e-8 12.670821,0.09215634 12.506787,0.25617155 L 7.005215,5.7575508 1.5035972,0.25617155 C 1.3395631,0.09215597 1.1170968,6.48e-8 0.88511716,6.48e-8 0.65314917,6.48e-8 0.4306712,0.09215597 0.26663695,0.25617155 0.10260271,0.42019873 0.01045441,0.64266712 0.01045441,0.87462511 c 0,0.23196949 0.0921483,0.45443769 0.25618254,0.61845329 L 5.7682546,6.9944578 0.26663695,12.497027 c -0.0834745,0.08067 -0.15003245,0.1772 -0.19581514,0.283871 C 0.02505077,12.887561 9.831648e-4,13.002399 2.950369e-5,13.118395 -9.2415746e-4,13.234504 0.02125019,13.349689 0.06527245,13.457057 c 0.04401053,0.107479 0.10898307,0.205064 0.1911168,0.287137 0.0821454,0.08208 0.17979645,0.146888 0.28727561,0.190839 0.10747906,0.04395 0.22262954,0.06598 0.33872417,0.06493 0.116095,-10e-4 0.23082547,-0.0253 0.33747687,-0.07112 0.1066637,-0.04593 0.2031133,-0.112615 0.2837313,-0.196086 L 7.005215,8.2313646 12.506787,13.732768 c 0.164034,0.164027 0.386593,0.256125 0.618479,0.256125 0.232004,0 0.454446,-0.09209 0.618482,-0.256125 C 13.907781,13.568741 14,13.346308 14,13.114315 14,12.882323 13.90779,12.659888 13.743748,12.495861 Z"/></svg>');
|
|
32
32
|
|
|
33
33
|
}
|
|
34
34
|
|
|
@@ -118,11 +118,11 @@
|
|
|
118
118
|
.btn-close::after {
|
|
119
119
|
content: '';
|
|
120
120
|
display: flex;
|
|
121
|
-
background-color: var(--popup__btn__close--
|
|
121
|
+
background-color: var(--popup__btn__close--icon-color);
|
|
122
122
|
width: 14px;
|
|
123
123
|
height: 14px;
|
|
124
|
-
-webkit-mask-image: var(--popup__btn__close--
|
|
125
|
-
mask-image: var(--popup__btn__close--
|
|
124
|
+
-webkit-mask-image: var(--popup__btn__close--icon);
|
|
125
|
+
mask-image: var(--popup__btn__close--icon);
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
.btn-close--solo {
|
|
@@ -25,7 +25,7 @@ export class EzSearch {
|
|
|
25
25
|
this.ezChange.emit(evt.detail);
|
|
26
26
|
}
|
|
27
27
|
render() {
|
|
28
|
-
return (h("ez-combo-box", { ref: elem => this._comboElement = elem, value: this.value, label: this.label, enabled: this.enabled, errorMessage: this.errorMessage,
|
|
28
|
+
return (h("ez-combo-box", { ref: elem => this._comboElement = elem, value: this.value, label: this.label, enabled: this.enabled, errorMessage: this.errorMessage, optionLoader: this.optionloader, searchMode: true, onEzChange: evt => this.onComboChange(evt), showSelectedValue: this.showselectedvalue, showOptionValue: this.showoptionvalue }));
|
|
29
29
|
}
|
|
30
30
|
;
|
|
31
31
|
static get is() { return "ez-search"; }
|
|
@@ -15,11 +15,11 @@
|
|
|
15
15
|
overflow: hidden;
|
|
16
16
|
margin-bottom: var(--space--large, 24px);
|
|
17
17
|
/* @doc Define a sombra do box da aba. */
|
|
18
|
-
/* --
|
|
18
|
+
/* --tabselector__box--box-shadow: var(--shadow, 0px 0px 8px 0px #000); */
|
|
19
19
|
/*@doc Contém o ícone de voltar para a aba anterior.*/
|
|
20
|
-
--
|
|
20
|
+
--tabselector--backward-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="16px" width="10px"><path d="M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z"/></svg>');
|
|
21
21
|
/*@doc Contém o ícone de avançar para a aba posterior.*/
|
|
22
|
-
--
|
|
22
|
+
--tabselector--forward-icon: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="16px" width="10px"><path d="M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z"/></svg>');
|
|
23
23
|
}
|
|
24
24
|
|
|
25
25
|
.scroll {
|
|
@@ -49,7 +49,6 @@
|
|
|
49
49
|
background-color: unset;
|
|
50
50
|
cursor: pointer;
|
|
51
51
|
padding: 6px 12px;
|
|
52
|
-
/*FIXME: Oza - precisamos usar tokens?*/
|
|
53
52
|
align-items: center;
|
|
54
53
|
justify-content: center;
|
|
55
54
|
color: var(--text--primary, #626e82);
|
|
@@ -78,8 +77,6 @@
|
|
|
78
77
|
|
|
79
78
|
.is-focused {
|
|
80
79
|
border: 1px dashed var(--color--primary, #000000c5);
|
|
81
|
-
/* border-radius: 5px 5px 0px 0px; */
|
|
82
|
-
/* box-shadow: var(--tab__box--box-shadow); */
|
|
83
80
|
}
|
|
84
81
|
|
|
85
82
|
.tab-label {
|
|
@@ -120,13 +117,13 @@
|
|
|
120
117
|
}
|
|
121
118
|
|
|
122
119
|
.forward-button::after {
|
|
123
|
-
-webkit-mask-image: var(--
|
|
124
|
-
mask-image: var(--
|
|
120
|
+
-webkit-mask-image: var(--tabselector--forward-icon);
|
|
121
|
+
mask-image: var(--tabselector--forward-icon);
|
|
125
122
|
}
|
|
126
123
|
|
|
127
124
|
.backward-button::after {
|
|
128
|
-
-webkit-mask-image: var(--
|
|
129
|
-
mask-image: var(--
|
|
125
|
+
-webkit-mask-image: var(--tabselector--backward-icon);
|
|
126
|
+
mask-image: var(--tabselector--backward-icon);
|
|
130
127
|
}
|
|
131
128
|
|
|
132
129
|
.forward-button:hover::after, .backward-button:hover::after {
|