@sankhyalabs/ezui 1.1.126 → 1.1.129

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.
Files changed (61) hide show
  1. package/dist/cjs/ez-calendar.cjs.entry.js +8 -8
  2. package/dist/cjs/ez-collapsible-box.cjs.entry.js +4 -4
  3. package/dist/cjs/ez-combo-box.cjs.entry.js +9 -9
  4. package/dist/cjs/ez-form.cjs.entry.js +16 -13
  5. package/dist/cjs/ez-grid.cjs.entry.js +4 -4
  6. package/dist/cjs/ez-tabselector.cjs.entry.js +2 -2
  7. package/dist/cjs/ezui.cjs.js +1 -1
  8. package/dist/cjs/grid-config.cjs.entry.js +1 -1
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/cjs/select-box.cjs.entry.js +1 -1
  11. package/dist/collection/components/ez-calendar/ez-calendar.css +2 -1
  12. package/dist/collection/components/ez-calendar/ez-calendar.js +7 -7
  13. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -1
  14. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +8 -8
  15. package/dist/collection/components/ez-combo-box/ez-combo-box.css +17 -64
  16. package/dist/collection/components/ez-combo-box/ez-combo-box.js +11 -9
  17. package/dist/collection/components/ez-form/fieldbuilder/tpl/CheckBox.tpl.js +1 -1
  18. package/dist/collection/components/ez-form/fieldbuilder/tpl/ComboBox.tpl.js +1 -1
  19. package/dist/collection/components/ez-form/fieldbuilder/tpl/DateInput.tpl.js +3 -3
  20. package/dist/collection/components/ez-form/fieldbuilder/tpl/FileInput.tpl.js +1 -1
  21. package/dist/collection/components/ez-form/fieldbuilder/tpl/NumberInput.tpl.js +1 -1
  22. package/dist/collection/components/ez-form/fieldbuilder/tpl/SearchInput.tpl.js +1 -1
  23. package/dist/collection/components/ez-form/fieldbuilder/tpl/TextArea.tpl.js +1 -1
  24. package/dist/collection/components/ez-form/fieldbuilder/tpl/TextInput.tpl.js +1 -1
  25. package/dist/collection/components/ez-form/structure/FormSheet.js +2 -2
  26. package/dist/collection/components/ez-form/structure/FormSheetMetadata.js +4 -1
  27. package/dist/collection/components/ez-grid/ez-grid.js +7 -7
  28. package/dist/collection/components/ez-grid/subcomponents/gridconfig/grid-config.js +1 -1
  29. package/dist/collection/components/ez-grid/subcomponents/select-box/select-box.js +1 -1
  30. package/dist/collection/components/ez-tabselector/ez-tabselector.css +1 -1
  31. package/dist/collection/components/ez-tabselector/ez-tabselector.js +1 -1
  32. package/dist/custom-elements/index.js +45 -42
  33. package/dist/esm/ez-calendar.entry.js +8 -8
  34. package/dist/esm/ez-collapsible-box.entry.js +4 -4
  35. package/dist/esm/ez-combo-box.entry.js +9 -9
  36. package/dist/esm/ez-form.entry.js +16 -13
  37. package/dist/esm/ez-grid.entry.js +4 -4
  38. package/dist/esm/ez-tabselector.entry.js +2 -2
  39. package/dist/esm/ezui.js +1 -1
  40. package/dist/esm/grid-config.entry.js +1 -1
  41. package/dist/esm/loader.js +1 -1
  42. package/dist/esm/select-box.entry.js +1 -1
  43. package/dist/ezui/ezui.esm.js +1 -1
  44. package/dist/ezui/{p-248d8511.entry.js → p-2d165ca8.entry.js} +1 -1
  45. package/dist/ezui/p-47fe4273.entry.js +1 -0
  46. package/dist/ezui/p-593a17e7.entry.js +1 -0
  47. package/dist/ezui/p-5b7405e8.entry.js +1 -0
  48. package/dist/ezui/p-66adbed5.entry.js +1 -0
  49. package/dist/ezui/{p-b59ab2d5.entry.js → p-6d39b7ea.entry.js} +1 -1
  50. package/dist/ezui/p-6e844308.entry.js +1 -0
  51. package/dist/ezui/p-ef17f443.entry.js +1 -0
  52. package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +2 -3
  53. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +2 -1
  54. package/dist/types/components.d.ts +8 -8
  55. package/package.json +1 -1
  56. package/dist/ezui/p-1c28d99b.entry.js +0 -1
  57. package/dist/ezui/p-35edc488.entry.js +0 -1
  58. package/dist/ezui/p-7df61f4a.entry.js +0 -1
  59. package/dist/ezui/p-7f87f762.entry.js +0 -1
  60. package/dist/ezui/p-91706181.entry.js +0 -1
  61. package/dist/ezui/p-cf8309fc.entry.js +0 -1
@@ -7,7 +7,6 @@ export class EzCollapsibleBox {
7
7
  this.value = false;
8
8
  /**
9
9
  * Define o tamanho do texto e do ícone do componente.
10
- * Tamanhos suportados: "x-small", "small", "medium", "large" e "x-large".
11
10
  */
12
11
  this.headerSize = "small";
13
12
  /**
@@ -34,8 +33,9 @@ export class EzCollapsibleBox {
34
33
  getHeaderSize() {
35
34
  const sizeAlias = ["xsmall", "xlarge"];
36
35
  const sizeList = ["x-small", "small", "medium", "large", "x-large"];
37
- const headerSize = sizeAlias.includes(this.headerSize) ? this.headerSize.replace('x', 'x-') : this.headerSize;
38
- return sizeList.includes(headerSize) ? headerSize : "small";
36
+ const sizeLowerCase = this.headerSize && this.headerSize.toLowerCase();
37
+ const sizeCustom = sizeAlias.includes(sizeLowerCase) ? sizeLowerCase.replace('x', 'x-') : sizeLowerCase;
38
+ return sizeList.includes(sizeCustom) ? sizeCustom : "small";
39
39
  }
40
40
  render() {
41
41
  return (h("div", { class: "collapsible-box" },
@@ -96,15 +96,15 @@ export class EzCollapsibleBox {
96
96
  "type": "string",
97
97
  "mutable": false,
98
98
  "complexType": {
99
- "original": "string",
100
- "resolved": "string",
99
+ "original": "\"x-small\" | \"small\" | \"medium\" | \"large\" | \"x-large\" | undefined",
100
+ "resolved": "\"large\" | \"medium\" | \"small\" | \"x-large\" | \"x-small\"",
101
101
  "references": {}
102
102
  },
103
103
  "required": false,
104
104
  "optional": false,
105
105
  "docs": {
106
106
  "tags": [],
107
- "text": "Define o tamanho do texto e do \u00EDcone do componente.\nTamanhos suportados: \"x-small\", \"small\", \"medium\", \"large\" e \"x-large\"."
107
+ "text": "Define o tamanho do texto e do \u00EDcone do componente."
108
108
  },
109
109
  "attribute": "header-size",
110
110
  "reflect": true,
@@ -114,8 +114,8 @@ export class EzCollapsibleBox {
114
114
  "type": "string",
115
115
  "mutable": false,
116
116
  "complexType": {
117
- "original": "string",
118
- "resolved": "string",
117
+ "original": "\"left\" | \"right\"",
118
+ "resolved": "\"left\" | \"right\"",
119
119
  "references": {}
120
120
  },
121
121
  "required": false,
@@ -45,17 +45,11 @@
45
45
 
46
46
  /* buttons */
47
47
  /*@doc Define a cor do botão de pesquisa do componente.*/
48
- --ez-combo-box__btn-search--background-color: var(--text--primary, #626e82);
48
+ --ez-combo-box__btn--color: var(--text--primary, #626e82);
49
49
  /*@doc Define a cor do botão de pesquisa do componente quando desabilitado.*/
50
- --ez-combo-box__btn-search-disabled--background-color: var(--text--disable, #AFB6C0);
50
+ --ez-combo-box__btn-disabled--color: var(--text--disable, #AFB6C0);
51
51
  /*@doc Define a cor do botão de pesquisa do componente quando o mouse está sobre ele.*/
52
- --ez-combo-box__btn-search-hover--background-color: var(--color--primary, #4e4e4e);
53
- /*@doc Define a cor do botão de opções do componente.*/
54
- --ez-combo-box__btn-options--background-color: var(--text--primary, #626e82);
55
- /*@doc Define a cor do botão de opções do componente quando desabilitado.*/
56
- --ez-combo-box__btn-options-disabled--background-color: var(--text--disable, #AFB6C0);
57
- /*@doc Define a cor do botão de opções do componente quando o mouse está sobre ele.*/
58
- --ez-combo-box__btn-options-hover--background-color: var(--color--primary, #4e4e4e);
52
+ --ez-combo-box__btn-hover--color: var(--color--primary, #4e4e4e);
59
53
 
60
54
  /* label */
61
55
  /*@doc Define a cor do label.*/
@@ -66,12 +60,7 @@
66
60
  --ez-combo-box__list-text--primary: var(--text--primary, #626e82);
67
61
  /*@doc Define a altura do box da lista de opções.*/
68
62
  --ez-combo-box__list-height: calc(var(--ez-combo-box--font-size) + var(--ez-combo-box--space--medium));
69
-
70
- /*@doc Contém a imagem do ícone que aciona a lista.*/
71
- --ez-combo-box__drop-down-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="16px" width="16px"><path d="M 1.8585859,3.0707069 7.9999998,9.2121212 14.141414,3.0707069 16,5.0101006 7.9999998,12.929293 0,4.9292932 Z"/></svg>');
72
- /*@doc Contém a imagem do ícone de pesquisa.*/
73
- --ez-combo-box__search-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" version="1.1" height="22px" width="22px"><path d="m 9.4,2.3 c 4.1,0 7.4,3.2 7.4,7.2 0,1.8 -0.7,3.4 -1.8,4.7 l 0.3,0.3 h 0.9 l 5.7,5.6 -1.7,1.7 -5.7,-5.6 V 15.3 L 14.3,15 C 13,16.1 11.3,16.7 9.5,16.7 5.3,16.7 2,13.5 2,9.5 2,5.5 5.3,2.3 9.4,2.3 m 0,2.2 c -2.9,0 -5.1,2.2 -5.1,5 0,2.8 2.3,5 5.1,5 2.8,0 5.1,-2.2 5.1,-5 0,-2.8 -2.2,-5 -5.1,-5 z"/></svg>');
74
-
63
+
75
64
  /* espaçamento */
76
65
  /*@doc Define um espaçamento mediano entre elementos do componente.*/
77
66
  --ez-combo-box--space--medium: var(--space--medium, 12px);
@@ -89,6 +78,10 @@
89
78
  width: var(--ez-combo-box--width);
90
79
  }
91
80
 
81
+ ez-icon {
82
+ --ez-icon--color: inherit;
83
+ }
84
+
92
85
  .suppressed-search-input{
93
86
  --ez-text-input__input--border-color: var(--color--strokes, #dce0e8);
94
87
  --ez-text-input__input--disabled--background-color: var(--background--xlight, #fff);
@@ -103,12 +96,10 @@
103
96
  .options-list {
104
97
  box-sizing: border-box;
105
98
  width: 100%;
106
-
107
99
  /*private*/
108
100
  z-index: var(--more-visible, 2);
109
101
  display: flex;
110
102
  flex-direction: column;
111
-
112
103
  /*public*/
113
104
  background-color: var(--ez-combo-box--background-color--xlight);
114
105
  padding: var(--ez-combo-box--space--small);
@@ -127,9 +118,7 @@
127
118
  border-radius: var(--ez-combo-box--border-radius-small);
128
119
  padding: 0 var(--ez-combo-box--space--small);
129
120
  list-style-type: none;
130
-
131
121
  min-height: var(--ez-combo-box__list-height);
132
- ;
133
122
  }
134
123
 
135
124
  .item--label {
@@ -164,60 +153,24 @@ li:hover {
164
153
  background-color: var(--background--medium);
165
154
  }
166
155
 
167
- .btn-open-options {
156
+ .btn {
168
157
  outline: none;
169
158
  border: none;
170
- background-color: unset;
159
+ background: none;
171
160
  cursor: pointer;
161
+ color: var(--ez-combo-box__btn--color);
172
162
  }
173
163
 
174
- .btn-open-options:disabled {
164
+ .btn:disabled {
165
+ color: var(--ez-combo-box__btn-disabled--color);
175
166
  cursor: unset;
176
167
  }
177
168
 
178
- .btn-open-options::after {
179
- content: '';
180
- display: flex;
181
- background-color: var(--ez-combo-box__btn-options--background-color);
182
- width: 16px;
183
- height: 16px;
184
- -webkit-mask-image: var(--ez-combo-box__drop-down-image);
185
- mask-image: var(--ez-combo-box__drop-down-image);
186
- }
187
-
188
- .btn-open-options:disabled:after {
189
- background-color: var(--ez-combo-box__btn-options-disabled--background-color);
190
- }
191
-
192
- .btn-open-options:enabled:hover::after {
193
- background-color: var(--ez-combo-box__btn-options-hover--background-color);
194
- }
195
-
196
- .btn-open-search {
197
- outline: none;
198
- border: none;
199
- background-color: unset;
200
- cursor: pointer;
201
- }
202
-
203
- .btn-open-search:disabled {
169
+ .btn:disabled:hover {
170
+ color: var(--ez-combo-box__btn-disabled--color);
204
171
  cursor: unset;
205
172
  }
206
173
 
207
- .btn-open-search::after {
208
- content: '';
209
- display: flex;
210
- background-color: var(--ez-combo-box__btn-search--background-color);
211
- width: 22px;
212
- height: 22px;
213
- -webkit-mask-image: var(--ez-combo-box__search-image);
214
- mask-image: var(--ez-combo-box__search-image);
215
- }
216
-
217
- .btn-open-search:disabled:after {
218
- background-color: var(--ez-combo-box__btn-search-disabled--background-color);
219
- }
220
-
221
- .btn-open-search:enabled:hover::after {
222
- background-color: var(--ez-combo-box__btn-search-hover--background-color);
174
+ .btn:hover {
175
+ color: var(--ez-combo-box__btn-hover--color);
223
176
  }
@@ -32,7 +32,7 @@ export class EzComboBox {
32
32
  */
33
33
  this.mode = "regular";
34
34
  }
35
- internalUpdate() {
35
+ observerValue() {
36
36
  if (this._inputElement) {
37
37
  this._inputElement.value = this.getText();
38
38
  }
@@ -150,7 +150,7 @@ export class EzComboBox {
150
150
  this.ezChange.emit(adjustedOpt);
151
151
  }
152
152
  else {
153
- this.internalUpdate();
153
+ this.observerValue();
154
154
  }
155
155
  }
156
156
  updateSource(source) {
@@ -182,7 +182,7 @@ export class EzComboBox {
182
182
  this.selectOption(undefined);
183
183
  }
184
184
  else {
185
- this.internalUpdate();
185
+ this.observerValue();
186
186
  }
187
187
  }
188
188
  //---------------------------------------------
@@ -222,6 +222,9 @@ export class EzComboBox {
222
222
  //---------------------------------------------
223
223
  // Event handlers
224
224
  //---------------------------------------------
225
+ handlerIconClick() {
226
+ this.searchMode ? this.loadOptions("ADVANCED") : this.showOptions();
227
+ }
225
228
  onTextInputChangeHandler(event) {
226
229
  if (!this._criteria) {
227
230
  this._inputElement.value = event.data;
@@ -270,10 +273,9 @@ export class EzComboBox {
270
273
  }
271
274
  render() {
272
275
  return (h(Host, null,
273
- h("ez-text-input", { class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._inputElement = elem, enabled: this.enabled && !this.suppressSearch, onInput: evt => this.onTextInputChangeHandler(evt), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onEzChange: event => event.stopPropagation(), onKeyDown: event => this.keyDownHandler(event), label: this.label, value: this.getText(), canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode }, this.searchMode ?
274
- h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-search", onClick: () => { this.loadOptions("ADVANCED"); }, slot: "leftIcon" })
275
- :
276
- h("button", { disabled: !this.enabled, tabindex: -1, class: "btn-open-options", slot: "rightIcon", onClick: () => this.showOptions() })),
276
+ h("ez-text-input", { class: this.suppressSearch ? "suppressed-search-input" : "", ref: elem => this._inputElement = elem, enabled: this.enabled && !this.suppressSearch, onInput: evt => this.onTextInputChangeHandler(evt), onClick: () => this.onTextInputClickHandler(), onFocusout: () => this.onTextInputFocusOutHandler(), onEzChange: event => event.stopPropagation(), onKeyDown: event => this.keyDownHandler(event), label: this.label, value: this.getText(), canShowError: this.canShowError, errorMessage: this.errorMessage, mode: this.mode },
277
+ h("button", { class: "btn", slot: this.searchMode ? "leftIcon" : "rightIcon", disabled: !this.enabled, tabindex: -1, onClick: () => this.handlerIconClick() },
278
+ h("ez-icon", { slot: "icon", "icon-name": this.searchMode ? "search" : "chevron-down" }))),
277
279
  h("section", { class: "list-container", ref: elem => this._listContainer = elem },
278
280
  h("div", { class: "options-list", ref: elem => this._optionsList = elem }, this._visibleOptions.map((opt, index) => this.buildItem(opt, index))))));
279
281
  }
@@ -290,7 +292,7 @@ export class EzComboBox {
290
292
  "type": "string",
291
293
  "mutable": true,
292
294
  "complexType": {
293
- "original": "Option|string",
295
+ "original": "Option | string",
294
296
  "resolved": "Option | string",
295
297
  "references": {
296
298
  "Option": {
@@ -587,7 +589,7 @@ export class EzComboBox {
587
589
  static get elementRef() { return "el"; }
588
590
  static get watchers() { return [{
589
591
  "propName": "value",
590
- "methodName": "internalUpdate"
592
+ "methodName": "observerValue"
591
593
  }]; }
592
594
  }
593
595
  ;
@@ -6,6 +6,6 @@ export const buildCheckBox = (fieldConfig) => {
6
6
  return buildField(fieldConfig.name, fieldConfig.label, fieldConfig.readOnly, false);
7
7
  };
8
8
  function buildField(fieldName, fieldLabel, readOnly, switchMode = false) {
9
- return (h("div", { class: "col col--sd-12 col--tb-3 align--middle padding-horizontal--small padding-bottom--large" },
9
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-align--middle ez-padding-horizontal--small ez-padding-bottom--large" },
10
10
  h("ez-check", { enabled: !readOnly, label: fieldLabel, mode: switchMode ? "switch" : "regular", "data-field-name": fieldName, key: fieldName })));
11
11
  }
@@ -9,6 +9,6 @@ export const buildComboBox = ({ name, label, readOnly, required }, properties) =
9
9
  else {
10
10
  options = prop;
11
11
  }
12
- return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
12
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
13
13
  h("ez-combo-box", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, key: name, options: options })));
14
14
  };
@@ -1,13 +1,13 @@
1
1
  import { h } from "@stencil/core";
2
2
  export const buildDate = ({ name, label, readOnly }) => {
3
- return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
3
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
4
4
  h("ez-date-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
5
5
  };
6
6
  export const buildTime = ({ name, label }) => {
7
- return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
7
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
8
8
  h("ez-time-input", { label: label, "data-field-name": name, key: name })));
9
9
  };
10
10
  export const buildTimeDate = ({ name, label }) => {
11
- return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
11
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
12
12
  h("ez-date-time-input", { label: label, "data-field-name": name, key: name })));
13
13
  };
@@ -1,5 +1,5 @@
1
1
  import { h } from "@stencil/core";
2
2
  export const buildFile = ({ name, label, readOnly }) => {
3
- return (h("div", { class: "col col--sd-12 padding-horizontal--small" },
3
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
4
4
  h("ez-upload", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
5
5
  };
@@ -8,6 +8,6 @@ export const buildInteger = ({ name, label, readOnly }) => {
8
8
  return buildNumeric(name, label, readOnly, 0, 0);
9
9
  };
10
10
  function buildNumeric(fieldName, fieldLabel, readOnly, precision, prettyPrecision) {
11
- return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
11
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
12
12
  h("ez-number-input", { enabled: !readOnly, label: fieldLabel, precision: precision, prettyPrecision: prettyPrecision, "data-field-name": fieldName, key: fieldName })));
13
13
  }
@@ -1,5 +1,5 @@
1
1
  import { h } from "@stencil/core";
2
2
  export const buildSearch = ({ name, label, readOnly, required }) => {
3
- return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
3
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
4
4
  h("ez-search", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, key: name })));
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { h } from "@stencil/core";
2
2
  export const buildTextArea = ({ name, label, readOnly }) => {
3
- return (h("div", { class: "col col--sd-12 padding-horizontal--small", key: name },
3
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small", key: name },
4
4
  h("ez-text-area", { enabled: !readOnly, label: label, "data-field-name": name })));
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { h } from "@stencil/core";
2
2
  export const buildTextInput = ({ name, label }) => {
3
- return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
3
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
4
4
  h("ez-text-input", { label: label, "data-field-name": name, key: name })));
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { FormItem } from "./FormItem";
3
3
  export const FormSheet = ({ store, source }) => {
4
- return (h("div", { class: "dynamic-content box__container" },
5
- h("div", { class: "row padding-vertical--small" }, source.items.map(item => h(FormItem, { store: store, source: item })))));
4
+ return (h("div", { class: "dynamic-content ez-box__container" },
5
+ h("div", { class: "ez-row ez-padding-vertical--small" }, source.items.map(item => h(FormItem, { store: store, source: item })))));
6
6
  };
@@ -46,6 +46,9 @@ function getTabConfig(tab, sheets) {
46
46
  const tabConfig = (typeof tab === "string" ? Array.from(sheets.keys()).find(t => t.label === tab) : tab);
47
47
  return tabConfig || { label: tab, visible: true };
48
48
  }
49
+ function sortTabs(a, b) {
50
+ return a[0].label == 'Geral' ? -1 : (a[0].order || 10000) - (b[0].order || 10000);
51
+ }
49
52
  export const buildFromConfig = (fields, dataUnit) => {
50
53
  const sheets = new Map();
51
54
  const requiredFields = [];
@@ -87,7 +90,7 @@ export const buildFromConfig = (fields, dataUnit) => {
87
90
  });
88
91
  const metadata = new FormMetadata();
89
92
  Array.from(sheets.entries())
90
- .sort((a, b) => (a[0].order || 10000) - (b[0].order || 10000))
93
+ .sort(sortTabs)
91
94
  .forEach(([key, value]) => {
92
95
  metadata.addSheet({
93
96
  label: key.label,
@@ -171,11 +171,11 @@ export class EzGrid {
171
171
  return null;
172
172
  }
173
173
  return [
174
- h("div", { class: "text text--primary text--medium margin-right--medium" },
175
- h("strong", { class: "text text--primary text--medium" }, `${this._navigationFirstRow}-${this._navigationLastRow}`),
174
+ h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium" },
175
+ h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, `${this._navigationFirstRow}-${this._navigationLastRow}`),
176
176
  ` de ${this._navigationTotalRows}`),
177
- h("ez-button", { size: "small", iconName: "chevron-left", class: "margin-right--medium", mode: "icon", enabled: this._navigationHasPrevious, onClick: () => this._gridController.previousPage(), label: "P\u00E1gina anterior" }),
178
- h("ez-button", { size: "small", iconName: "chevron-right", class: "margin-right--medium", mode: "icon", enabled: this._navigationHasNext, onClick: () => this._gridController.nextPage(), label: "Pr\u00F3xima P\u00E1gina" })
177
+ h("ez-button", { size: "small", iconName: "chevron-left", class: "ez-margin-right--medium", mode: "icon", enabled: this._navigationHasPrevious, onClick: () => this._gridController.previousPage(), label: "P\u00E1gina anterior" }),
178
+ h("ez-button", { size: "small", iconName: "chevron-right", class: "ez-margin-right--medium", mode: "icon", enabled: this._navigationHasNext, onClick: () => this._gridController.nextPage(), label: "Pr\u00F3xima P\u00E1gina" })
179
179
  ];
180
180
  }
181
181
  applyConfig(config) {
@@ -192,13 +192,13 @@ export class EzGrid {
192
192
  }
193
193
  render() {
194
194
  return (h(Host, null,
195
- h("div", { class: "box box--shadow padding--medium grid-header" },
195
+ h("div", { class: "ez-box ez-box--shadow ez-padding--medium grid-header" },
196
196
  h("div", { class: "grid-header__container" },
197
197
  h("slot", { name: "leftButtons" })),
198
198
  h("div", { class: "grid-header__container" },
199
199
  this.getPaginationControl(),
200
- h("ez-button", { size: "small", iconName: "settings", class: "button--secondary", mode: "icon", onClick: () => { this.openConfig(); } }))),
201
- h("div", { class: "grid__container ag-sankhya-theme", ref: elem => this._container = elem }),
200
+ h("ez-button", { size: "small", iconName: "settings", class: "ez-button--secondary", mode: "icon", onClick: () => { this.openConfig(); } }))),
201
+ h("div", { class: "grid__container ez-grid", ref: elem => this._container = elem }),
202
202
  h("div", { class: "grid__footer" }),
203
203
  h("ez-modal", { modalSize: "small", closeEsc: true, closeOutsideClick: true, opened: this._popUpVisible, onEzCloseModal: () => this._popUpVisible = false },
204
204
  h("grid-config", { ref: ref => this._gridConfig = ref, config: this.config, selectedTab: "Colunas", onConfigFinish: evt => { this.applyConfig(evt.detail); this.configChange.emit(evt.detail); }, onConfigCancel: _evt => this.closeConfig() }))));
@@ -395,7 +395,7 @@ export class GridConfig {
395
395
  h("ez-list", { ref: (el) => this._orderList = el, class: this.selectedTab === "Ordenação das linhas" ? "heigth-calc" : "hidden", dataSource: this._orderListItems, ezSelectable: true, onEzChange: ev => this.handleOrderListChange(ev), ezDraggable: true, itemSlotBuilder: (item) => this.buildOrderListSlot(item) })),
396
396
  h("div", { class: "grid-config__footer" },
397
397
  h("ez-button", { class: "padding-right--medium", label: "Cancelar", onClick: () => this.closeConfig() }),
398
- h("ez-button", { label: "Concluir", class: "button--primary", onClick: () => this.finish() }))));
398
+ h("ez-button", { label: "Concluir", class: "ez-button--primary", onClick: () => this.finish() }))));
399
399
  }
400
400
  static get is() { return "grid-config"; }
401
401
  static get encapsulation() { return "scoped"; }
@@ -4,7 +4,7 @@ export class SelectBox {
4
4
  this.selectedOption = { value: "na", label: "N/A" };
5
5
  }
6
6
  render() {
7
- return (h("ez-combo-box", { class: "grid-config-combo inverted", label: "", suppressSearch: true, value: this.selectedOption, enabled: true, canShowError: false, suppressEmptyOption: true },
7
+ return (h("ez-combo-box", { class: "grid-config-combo ez-input--inverted", label: "", suppressSearch: true, value: this.selectedOption, enabled: true, canShowError: false, suppressEmptyOption: true },
8
8
  h("option", { value: "na" }, "N/A"),
9
9
  h("option", { value: "asc" }, "A-Z"),
10
10
  h("option", { value: "desc" }, "Z-A")));
@@ -33,7 +33,7 @@
33
33
  -webkit-mask-image: linear-gradient(90deg, transparent 20px, #000 48px);
34
34
  }
35
35
 
36
- .scroll.midle {
36
+ .scroll.middle {
37
37
  -webkit-mask-image: linear-gradient(90deg, transparent 20px, #000 48px, #000 calc(100% - 48px), transparent calc(100% - 20px));
38
38
  }
39
39
 
@@ -129,7 +129,7 @@ export class EzTabselector {
129
129
  else {
130
130
  this._forwardButton.classList.add("hidden");
131
131
  }
132
- const classNames = ["", "startHidden", "endHidden", "midle"];
132
+ const classNames = ["", "startHidden", "endHidden", "middle"];
133
133
  const currentClass = classNames[Number(this._startHidden) | Number(this._endHidden) << 1];
134
134
  classNames.forEach((name) => {
135
135
  if (name !== currentClass && container.classList.contains(name)) {