@sankhyalabs/ezui 5.22.0-dev.21 → 5.22.0-dev.23
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.cjs.entry.js +1 -1
- package/dist/cjs/ez-card-item_3.cjs.entry.js +13 -4
- package/dist/cjs/ez-check.cjs.entry.js +1 -1
- package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
- package/dist/cjs/ez-grid.cjs.entry.js +3 -2
- package/dist/cjs/ez-list.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/ez-modal.cjs.entry.js +1 -1
- package/dist/cjs/ez-scroller_2.cjs.entry.js +3 -3
- package/dist/cjs/ez-search.cjs.entry.js +6 -5
- package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
- package/dist/cjs/ez-split-button.cjs.entry.js +2 -2
- package/dist/cjs/ez-split-item.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 +2 -2
- package/dist/collection/components/ez-card-item/ez-card-item.css +60 -10
- package/dist/collection/components/ez-card-item/ez-card-item.js +30 -3
- package/dist/collection/components/ez-check/ez-check.css +1 -6
- package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -2
- package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/Search.tpl.js +2 -1
- package/dist/collection/components/ez-grid/ez-grid.js +1 -1
- package/dist/collection/components/ez-list/ez-list.css +2 -1
- package/dist/collection/components/ez-modal/ez-modal.css +1 -1
- package/dist/collection/components/ez-modal-container/ez-modal-container.js +1 -1
- package/dist/collection/components/ez-scroller/ez-scroller.css +1 -0
- package/dist/collection/components/ez-search/ez-search.css +19 -8
- package/dist/collection/components/ez-search/ez-search.js +26 -7
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.css +3 -0
- package/dist/collection/components/ez-sidebar-button/ez-sidebar-button.js +1 -1
- package/dist/collection/components/ez-sidebar-navigator/ez-sidebar-navigator.css +3 -1
- package/dist/collection/components/ez-split-button/ez-split-button.css +1 -1
- package/dist/collection/components/ez-split-button/ez-split-button.js +3 -3
- package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +1 -0
- package/dist/custom-elements/index.js +37 -26
- package/dist/esm/ez-button.entry.js +1 -1
- package/dist/esm/ez-card-item_3.entry.js +13 -4
- package/dist/esm/ez-check.entry.js +1 -1
- package/dist/esm/ez-collapsible-box.entry.js +1 -1
- package/dist/esm/ez-grid.entry.js +3 -2
- package/dist/esm/ez-list.entry.js +1 -1
- package/dist/esm/ez-modal-container.entry.js +1 -1
- package/dist/esm/ez-modal.entry.js +1 -1
- package/dist/esm/ez-scroller_2.entry.js +3 -3
- package/dist/esm/ez-search.entry.js +6 -5
- package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
- package/dist/esm/ez-split-button.entry.js +2 -2
- package/dist/esm/ez-split-item.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-0410eb71.entry.js +1 -0
- package/dist/ezui/p-37219d42.entry.js +1 -0
- package/dist/ezui/{p-3b4eeeb6.entry.js → p-6abede3c.entry.js} +1 -1
- package/dist/ezui/p-6d79930d.entry.js +1 -0
- package/dist/ezui/{p-bf79aaa1.entry.js → p-7fdd479f.entry.js} +1 -1
- package/dist/ezui/{p-922ac38b.entry.js → p-90bcd2ba.entry.js} +1 -1
- package/dist/ezui/{p-a9156fef.entry.js → p-9273ce98.entry.js} +1 -1
- package/dist/ezui/p-955778d9.entry.js +1 -0
- package/dist/ezui/p-990b4318.entry.js +1 -0
- package/dist/ezui/p-c3045972.entry.js +1 -0
- package/dist/ezui/{p-42533ea4.entry.js → p-c54bb9c3.entry.js} +1 -1
- package/dist/ezui/p-d018387a.entry.js +1 -0
- package/dist/ezui/{p-84e439b9.entry.js → p-e347df9c.entry.js} +1 -1
- package/dist/types/components/ez-card-item/ez-card-item.d.ts +5 -0
- package/dist/types/components/ez-search/ez-search.d.ts +6 -2
- package/dist/types/components/ez-split-button/ez-split-button.d.ts +1 -1
- package/dist/types/components.d.ts +26 -10
- package/package.json +1 -1
- package/dist/ezui/p-08061683.entry.js +0 -1
- package/dist/ezui/p-13d2fe2d.entry.js +0 -1
- package/dist/ezui/p-34b6916c.entry.js +0 -1
- package/dist/ezui/p-3faa2b46.entry.js +0 -1
- package/dist/ezui/p-7af81663.entry.js +0 -1
- package/dist/ezui/p-a31b9c90.entry.js +0 -1
- package/dist/ezui/p-ecc2c1ec.entry.js +0 -1
|
@@ -35,7 +35,8 @@ export class EzSearch {
|
|
|
35
35
|
this.ignoreLimitCharsToSearch = false;
|
|
36
36
|
this.options = undefined;
|
|
37
37
|
this.suppressSearch = false;
|
|
38
|
-
this.
|
|
38
|
+
this.ensureClearButtonVisible = false;
|
|
39
|
+
this.suppressPreLoad = false;
|
|
39
40
|
}
|
|
40
41
|
observeErrorMessage() {
|
|
41
42
|
var _a;
|
|
@@ -68,7 +69,7 @@ export class EzSearch {
|
|
|
68
69
|
}
|
|
69
70
|
}
|
|
70
71
|
observeOptions(newOptions, oldOptions) {
|
|
71
|
-
if (!newOptions.length && this.
|
|
72
|
+
if (!newOptions.length && this.suppressPreLoad)
|
|
72
73
|
return;
|
|
73
74
|
if ((newOptions === null || newOptions === void 0 ? void 0 : newOptions.join('')) === (oldOptions === null || oldOptions === void 0 ? void 0 : oldOptions.join('')))
|
|
74
75
|
return;
|
|
@@ -270,7 +271,7 @@ export class EzSearch {
|
|
|
270
271
|
title: opt.label,
|
|
271
272
|
details: opt.details
|
|
272
273
|
};
|
|
273
|
-
return h("div", { style: { "height": "100%" }, class: index === this._preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.createOption(card), onMouseOver: () => this._preSelection = index }, h("ez-card-item", { item: card }));
|
|
274
|
+
return h("div", { style: { "height": "100%" }, class: index === this._preSelection ? "item preselected" : "item", id: `item_${opt.value}`, onMouseDown: () => this.createOption(card), onMouseOver: () => this._preSelection = index }, h("ez-card-item", { item: card, compacted: true }));
|
|
274
275
|
}
|
|
275
276
|
showOptions() {
|
|
276
277
|
if (!this.enabled)
|
|
@@ -662,7 +663,7 @@ export class EzSearch {
|
|
|
662
663
|
render() {
|
|
663
664
|
var _a;
|
|
664
665
|
ElementIDUtils.addIDInfoIfNotExists(this.el, 'input');
|
|
665
|
-
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, h("button", { class: "btn", slot: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "search" })), (((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value) || this.
|
|
666
|
+
return (h(Host, null, h("ez-text-input", { "data-element-id": ElementIDUtils.getInternalIDInfo("textInput"), class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._textInput = elem, "data-slave-mode": "true", enabled: this.enabled && !this.suppressSearch, onInput: event => this.onTextInputChangeHandler(event), onFocusout: () => this.onTextInputFocusOutHandler(), onKeyDown: event => this.keyDownHandler(event), label: this.label, canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, h("button", { class: "btn", slot: "leftIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() }, h("ez-icon", { iconName: "search" })), (((_a = this._textInput) === null || _a === void 0 ? void 0 : _a.value) && (this._criteria || this.value) || this.ensureClearButtonVisible)
|
|
666
667
|
? h("button", { class: "btn btn__close", slot: "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.clearSearch() }, h("ez-icon", { iconName: "close" }))
|
|
667
668
|
: undefined), h("section", { class: "list-container", ref: elem => this._listContainer = elem }, h("div", { class: "list-wrapper", ref: elem => this._listWrapper = elem }, h("ul", { class: "list-options", ref: elem => this._optionsList = elem }, !this._showLoading
|
|
668
669
|
&& this._visibleOptions.length === 0
|
|
@@ -988,7 +989,7 @@ export class EzSearch {
|
|
|
988
989
|
"reflect": false,
|
|
989
990
|
"defaultValue": "false"
|
|
990
991
|
},
|
|
991
|
-
"
|
|
992
|
+
"ensureClearButtonVisible": {
|
|
992
993
|
"type": "boolean",
|
|
993
994
|
"mutable": false,
|
|
994
995
|
"complexType": {
|
|
@@ -1000,9 +1001,27 @@ export class EzSearch {
|
|
|
1000
1001
|
"optional": false,
|
|
1001
1002
|
"docs": {
|
|
1002
1003
|
"tags": [],
|
|
1003
|
-
"text": "
|
|
1004
|
+
"text": "Garante que o bot\u00E3o de limpar pesquisa est\u00E1 sempre vis\u00EDvel"
|
|
1004
1005
|
},
|
|
1005
|
-
"attribute": "
|
|
1006
|
+
"attribute": "ensure-clear-button-visible",
|
|
1007
|
+
"reflect": false,
|
|
1008
|
+
"defaultValue": "false"
|
|
1009
|
+
},
|
|
1010
|
+
"suppressPreLoad": {
|
|
1011
|
+
"type": "boolean",
|
|
1012
|
+
"mutable": false,
|
|
1013
|
+
"complexType": {
|
|
1014
|
+
"original": "boolean",
|
|
1015
|
+
"resolved": "boolean",
|
|
1016
|
+
"references": {}
|
|
1017
|
+
},
|
|
1018
|
+
"required": false,
|
|
1019
|
+
"optional": false,
|
|
1020
|
+
"docs": {
|
|
1021
|
+
"tags": [],
|
|
1022
|
+
"text": "Se true, desabilita pr\u00E9-load das op\u00E7\u00F5es ao carregar componente"
|
|
1023
|
+
},
|
|
1024
|
+
"attribute": "suppress-pre-load",
|
|
1006
1025
|
"reflect": false,
|
|
1007
1026
|
"defaultValue": "false"
|
|
1008
1027
|
}
|
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
--ez-sidebar-button--hover--width: 12px;
|
|
9
9
|
/*@doc Define a altura do span do botão.*/
|
|
10
10
|
--ez-sidebar-button--height: 96px;
|
|
11
|
+
/*@doc Define a camada em que o componente será exibido.*/
|
|
12
|
+
--ez-sidebar-navigator-button--z-index: var(--elevation--20, 20);
|
|
11
13
|
|
|
12
14
|
/* cor */
|
|
13
15
|
/*@doc Define a cor de fundo do botão.*/
|
|
@@ -35,6 +37,7 @@
|
|
|
35
37
|
}
|
|
36
38
|
|
|
37
39
|
button {
|
|
40
|
+
z-index: var(--ez-sidebar-navigator-button--z-index);
|
|
38
41
|
position: absolute;
|
|
39
42
|
display: flex;
|
|
40
43
|
background: var(--ez-sidebar-button--background-color--xlight);
|
|
@@ -11,7 +11,7 @@ export class EzSidebarButton {
|
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
render() {
|
|
14
|
-
return (h("button", { type: "button", onClick: () => { this.ezClick.emit(); }, ref: (el) => this._button = el }, h("span", null), h("ez-icon", { iconName: "chevron-right" })));
|
|
14
|
+
return (h("button", { type: "button", onClick: () => { this.ezClick.emit(); }, ref: (el) => this._button = el }, h("span", null), h("ez-icon", { iconName: "chevron-right", size: "small" })));
|
|
15
15
|
}
|
|
16
16
|
static get is() { return "ez-sidebar-button"; }
|
|
17
17
|
static get encapsulation() { return "shadow"; }
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
--ez-sidebar-navigator--border-radius: 0px var(--border--radius-medium) var(--border--radius-medium) 0px;
|
|
15
15
|
/*@doc Força uma altura especifica para o sidebar, o padrão é 100% da tela*/
|
|
16
16
|
--ez-sidebar-navigator--height: calc(100vh - var(--space--lg, 24px));
|
|
17
|
+
/*@doc Define a camada em que o componente será exibido.*/
|
|
18
|
+
--ez-sidebar-navigator--z-index: var(--elevation--20, 20);
|
|
17
19
|
|
|
18
20
|
/*Labels Header */
|
|
19
21
|
/*@doc Define o espaçamento entre os componente do cabeçalho*/
|
|
@@ -124,7 +126,7 @@
|
|
|
124
126
|
|
|
125
127
|
.dynamic {
|
|
126
128
|
position: absolute;
|
|
127
|
-
z-index: var(--
|
|
129
|
+
z-index: var(--ez-sidebar-navigator--z-index);
|
|
128
130
|
}
|
|
129
131
|
|
|
130
132
|
.fixed {
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
/*@doc Define a cor do label.*/
|
|
24
24
|
--ez-split-button--color: var(--title--primary, #FFF);
|
|
25
25
|
/*@doc Define o tamanho do label.*/
|
|
26
|
-
--ez-split-button--font-size: var(--text--
|
|
26
|
+
--ez-split-button--font-size: var(--text--small, 12px);
|
|
27
27
|
/*@doc Define a família da fonte do label.*/
|
|
28
28
|
--ez-split-button--font-family: var(--font-pattern, Arial);
|
|
29
29
|
/*@doc Define o peso da fonte do label.*/
|
|
@@ -42,7 +42,7 @@ export class EzSplitButton {
|
|
|
42
42
|
}
|
|
43
43
|
getIconSize(sizeParam = 'medium') {
|
|
44
44
|
var _a;
|
|
45
|
-
const sizeList = ['medium', 'large'];
|
|
45
|
+
const sizeList = ['small', 'medium', 'large'];
|
|
46
46
|
const sizeLowerCase = (_a = this.size) === null || _a === void 0 ? void 0 : _a.toLowerCase();
|
|
47
47
|
return sizeList.includes(sizeLowerCase) ? sizeLowerCase : sizeParam;
|
|
48
48
|
}
|
|
@@ -311,8 +311,8 @@ export class EzSplitButton {
|
|
|
311
311
|
"type": "string",
|
|
312
312
|
"mutable": false,
|
|
313
313
|
"complexType": {
|
|
314
|
-
"original": "'medium' | 'large'",
|
|
315
|
-
"resolved": "\"large\" | \"medium\"",
|
|
314
|
+
"original": "'small' | 'medium' | 'large'",
|
|
315
|
+
"resolved": "\"large\" | \"medium\" | \"small\"",
|
|
316
316
|
"references": {}
|
|
317
317
|
},
|
|
318
318
|
"required": false,
|