@sankhyalabs/ezui 4.6.0 → 4.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. package/dist/cjs/{constants-5d588e38.js → constants-5a75e2f3.js} +0 -2
  2. package/dist/cjs/ez-combo-box.cjs.entry.js +1 -1
  3. package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
  4. package/dist/cjs/ez-form.cjs.entry.js +0 -1
  5. package/dist/cjs/ez-grid.cjs.entry.js +112 -213
  6. package/dist/cjs/ez-modal.cjs.entry.js +5 -2
  7. package/dist/cjs/ez-upload.cjs.entry.js +4 -2
  8. package/dist/cjs/ezui.cjs.js +1 -1
  9. package/dist/cjs/loader.cjs.js +1 -1
  10. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +86 -84
  11. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +5 -16
  12. package/dist/collection/components/ez-grid/ez-grid.js +21 -110
  13. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js +3 -5
  14. package/dist/collection/components/ez-modal/ez-modal.css +4 -2
  15. package/dist/collection/components/ez-modal/ez-modal.js +26 -1
  16. package/dist/collection/components/ez-upload/ez-upload.css +14 -1
  17. package/dist/collection/components/ez-upload/ez-upload.js +20 -1
  18. package/dist/collection/utils/form/DataBinder.js +0 -1
  19. package/dist/custom-elements/index.js +124 -221
  20. package/dist/esm/constants-ca136201.js +3 -0
  21. package/dist/esm/ez-combo-box.entry.js +1 -1
  22. package/dist/esm/ez-form-view.entry.js +1 -1
  23. package/dist/esm/ez-form.entry.js +0 -1
  24. package/dist/esm/ez-grid.entry.js +112 -213
  25. package/dist/esm/ez-modal.entry.js +5 -2
  26. package/dist/esm/ez-upload.entry.js +4 -2
  27. package/dist/esm/ezui.js +1 -1
  28. package/dist/esm/loader.js +1 -1
  29. package/dist/ezui/ezui.esm.js +1 -1
  30. package/dist/ezui/p-03164b9f.entry.js +1 -0
  31. package/dist/ezui/p-22f4210d.entry.js +1 -0
  32. package/dist/ezui/p-3f4ae3a3.js +1 -0
  33. package/dist/ezui/{p-878646a0.entry.js → p-50883460.entry.js} +1 -1
  34. package/dist/ezui/{p-ef705232.entry.js → p-8654802d.entry.js} +2 -2
  35. package/dist/ezui/{p-b7ea9791.entry.js → p-e748b5d3.entry.js} +1 -1
  36. package/dist/ezui/p-f1dc3514.entry.js +1 -0
  37. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +6 -10
  38. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +3 -5
  39. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +0 -1
  40. package/dist/types/components/ez-grid/ez-grid.d.ts +2 -9
  41. package/dist/types/components/ez-grid/subcomponents/selection-counter.d.ts +2 -2
  42. package/dist/types/components/ez-modal/ez-modal.d.ts +9 -0
  43. package/dist/types/components/ez-upload/ez-upload.d.ts +4 -0
  44. package/dist/types/components.d.ts +16 -0
  45. package/package.json +1 -1
  46. package/dist/collection/components/ez-grid/controller/DataUnitBridge.js +0 -73
  47. package/dist/esm/constants-76d2e931.js +0 -4
  48. package/dist/ezui/p-1f841f3c.entry.js +0 -1
  49. package/dist/ezui/p-622c2d53.entry.js +0 -1
  50. package/dist/ezui/p-b01e3085.js +0 -1
  51. package/dist/ezui/p-eceb9382.entry.js +0 -1
  52. package/dist/types/components/ez-grid/controller/DataUnitBridge.d.ts +0 -11
@@ -8,7 +8,6 @@
8
8
 
9
9
  .modal {
10
10
  position: fixed;
11
- padding: var(--ez-modal-vertical-padding) 0;
12
11
  display: flex;
13
12
  top: 0px;
14
13
  z-index: var(--ez-modal-z-index);
@@ -20,6 +19,10 @@
20
19
  background: rgba(0, 4, 12, 0.4);
21
20
  }
22
21
 
22
+ .modal__vertical-padding{
23
+ padding: var(--ez-modal-vertical-padding) 0;
24
+ }
25
+
23
26
  @keyframes expand-modal--left {
24
27
  from {
25
28
  transform: translate(-100%)
@@ -60,7 +63,6 @@
60
63
  overflow-y: auto;
61
64
  background-color: rgb(255, 255, 255);
62
65
  padding: 24px;
63
- border-radius: 12px 0px 0px 12px;
64
66
  box-shadow: rgb(0 38 111 / 12%) 0px 0px 16px 0px;
65
67
  }
66
68
 
@@ -8,6 +8,7 @@ export class EzModal {
8
8
  };
9
9
  this.modalSize = undefined;
10
10
  this.align = undefined;
11
+ this.heightMode = "regular";
11
12
  this.opened = true;
12
13
  this.closeEsc = false;
13
14
  this.closeOutsideClick = false;
@@ -39,9 +40,11 @@ export class EzModal {
39
40
  }
40
41
  render() {
41
42
  const positionSufix = this.align === "left" ? "left" : "right";
43
+ const regularVerticalPaddingClass = this.heightMode === "regular" ? 'modal__vertical-padding' : '';
44
+ const modalContentHeightMode = this.heightMode === "regular" ? `modal__content--${positionSufix}` : '';
42
45
  return (h(Host, null, this.opened
43
46
  ?
44
- h("div", { class: "modal", onMouseDown: evt => this.onMouseDownHandler(evt) }, h("div", { class: `modal__container modal__container--${positionSufix}`, ref: ref => this._overlay = ref }, h("div", { class: `modal__content modal__content--${positionSufix} ${this.modalSize}` }, h("slot", null))))
47
+ h("div", { class: `modal ${regularVerticalPaddingClass}`, onMouseDown: evt => this.onMouseDownHandler(evt) }, h("div", { class: `modal__container modal__container--${positionSufix}`, ref: ref => this._overlay = ref }, h("div", { class: `modal__content ${modalContentHeightMode} ${this.modalSize}` }, h("slot", null))))
45
48
  :
46
49
  undefined));
47
50
  }
@@ -93,6 +96,28 @@ export class EzModal {
93
96
  "attribute": "align",
94
97
  "reflect": false
95
98
  },
99
+ "heightMode": {
100
+ "type": "string",
101
+ "mutable": false,
102
+ "complexType": {
103
+ "original": "keyof THeightMode",
104
+ "resolved": "\"full\" | \"regular\"",
105
+ "references": {
106
+ "THeightMode": {
107
+ "location": "global"
108
+ }
109
+ }
110
+ },
111
+ "required": false,
112
+ "optional": true,
113
+ "docs": {
114
+ "tags": [],
115
+ "text": "Ativa o modo Full, permitindo que o Modal expanda-se verticalmente e ocupe todo o espa\u00E7o dispon\u00EDvel."
116
+ },
117
+ "attribute": "height-mode",
118
+ "reflect": false,
119
+ "defaultValue": "\"regular\""
120
+ },
96
121
  "opened": {
97
122
  "type": "boolean",
98
123
  "mutable": true,
@@ -35,6 +35,7 @@
35
35
  --ez-upload--text-shadow: var(--text-shadow, 0 0 0 #353535, 0 0 1px transparent);
36
36
  /*@doc Define a cor dos textos do componente.*/
37
37
  --ez-upload--text--primary: var(--text-primary, #626e82);
38
+ --ez-upload--text--secondary: var(--text-secondary, #a2abb9);
38
39
  /*@doc Define o tamanho dos textos do componente.*/
39
40
  --ez-upload--font-size: var(--text--medium, 14px);
40
41
  /*@doc Define a família dos textos do componente.*/
@@ -178,6 +179,14 @@ progress[value]::-webkit-progress-value {
178
179
  align-items: center;
179
180
  }
180
181
 
182
+ .padding-large {
183
+ padding: var(--ez-upload--padding--large) 0px;
184
+ }
185
+
186
+ .padding-extra-small {
187
+ padding: var(--ez-upload--padding--extra-small) 0px;
188
+ }
189
+
181
190
  .text {
182
191
  font-family: var(--font-pattern, "Roboto");
183
192
  text-shadow: 0 0 0 #353535, 0 0 1px transparent;
@@ -188,6 +197,11 @@ progress[value]::-webkit-progress-value {
188
197
  text-shadow: var(--ez-upload--text-shadow);
189
198
  }
190
199
 
200
+ .text--secondary{
201
+ color: var(--ez-upload--text--secondary);
202
+ text-shadow: var(--ez-upload--text-shadow);
203
+ }
204
+
191
205
  .text--ellipsis {
192
206
  white-space: nowrap;
193
207
  overflow: hidden;
@@ -269,7 +283,6 @@ progress[value]::-webkit-progress-value {
269
283
  justify-content: center;
270
284
  display: flex;
271
285
  cursor: pointer;
272
- padding: var(--ez-upload--padding--large) 0px;
273
286
  box-sizing: border-box;
274
287
  }
275
288
 
@@ -6,6 +6,7 @@ export class EzUpload {
6
6
  constructor() {
7
7
  this._filePointers = new Map();
8
8
  this.label = undefined;
9
+ this.subtitle = undefined;
9
10
  this.enabled = true;
10
11
  this.maxFileSize = undefined;
11
12
  this.maxFiles = undefined;
@@ -246,7 +247,8 @@ export class EzUpload {
246
247
  }
247
248
  }
248
249
  render() {
249
- return (h("div", { ref: (el) => this._dropZone = el, class: this.evalDisabledClass("iu", "background--disabled") }, h("div", { class: "iu__container", onClick: () => this.openFilesDialog() }, h("div", { class: "iu_header" }, this.label ? h("label", { class: this.evalDisabledClass("iu__label", "text--disabled"), title: this.label }, this.label) : null, h("div", { class: this.evalDisabledClass("iu__icon-label", "mouse-pointer--disabled") }, h("button", { class: "iu__file-icon", disabled: !this.enabled }), h("div", { class: this.evalDisabledClass("text text--center text--medium text--primary", "text--disabled") }, this.enabled ? "Arraste e solte ou clique para adicionar arquivos" : "Somente leitura"))), this.buildFooter()), h("input", { ref: (el) => this._fileInput = el, onChange: (ev) => this.onFileInputChange(ev), type: "file", multiple: true, class: "appearanceNone" })));
250
+ return (h("div", { ref: (el) => this._dropZone = el, class: this.evalDisabledClass("iu", "background--disabled") }, h("div", { class: "iu__container", onClick: () => this.openFilesDialog() }, h("div", { class: "iu_header" }, this.label ? h("label", { class: this.evalDisabledClass("iu__label", "text--disabled"), title: this.label }, this.label) : null, h("div", { class: "padding-large" }, h("div", { class: this.evalDisabledClass("iu__icon-label", "mouse-pointer--disabled") }, h("button", { class: "iu__file-icon", disabled: !this.enabled }), h("div", { class: this.evalDisabledClass("text text--center text--medium text--primary", "text--disabled") }, this.enabled ? "Arraste e solte ou clique para adicionar arquivos" : "Somente leitura")), this.subtitle &&
251
+ h("div", { class: this.evalDisabledClass("padding-extra-small text text--center text--small text--secondary", "text--disabled") }, this.subtitle))), this.buildFooter()), h("input", { ref: (el) => this._fileInput = el, onChange: (ev) => this.onFileInputChange(ev), type: "file", multiple: true, class: "appearanceNone" })));
250
252
  }
251
253
  buildFooter() {
252
254
  if (this._filePointers.size === 0) {
@@ -305,6 +307,23 @@ export class EzUpload {
305
307
  "attribute": "label",
306
308
  "reflect": false
307
309
  },
310
+ "subtitle": {
311
+ "type": "string",
312
+ "mutable": false,
313
+ "complexType": {
314
+ "original": "string",
315
+ "resolved": "string",
316
+ "references": {}
317
+ },
318
+ "required": false,
319
+ "optional": false,
320
+ "docs": {
321
+ "tags": [],
322
+ "text": "Define o subt\u00EDtulo utilizado no campo de upload"
323
+ },
324
+ "attribute": "subtitle",
325
+ "reflect": false
326
+ },
308
327
  "enabled": {
309
328
  "type": "boolean",
310
329
  "mutable": false,
@@ -12,7 +12,6 @@ export default class DataBinder {
12
12
  case Action.RECORDS_COPIED:
13
13
  case Action.EDITION_CANCELED:
14
14
  case Action.SELECTION_CHANGED:
15
- case Action.SELECTION_REMOVED:
16
15
  case Action.NEXT_SELECTED:
17
16
  case Action.PREVIOUS_SELECTED:
18
17
  this.clearInvalid();