@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-75210.0 → 0.0.0-bugfix-dev-KB-80932.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 (61) hide show
  1. package/dist/cjs/{DataBinder-b4ef826a.js → DataBinder-e92314c2.js} +2 -2
  2. package/dist/cjs/ez-dialog.cjs.entry.js +4 -5
  3. package/dist/cjs/ez-dropdown_2.cjs.entry.js +1 -1
  4. package/dist/cjs/ez-form.cjs.entry.js +1 -1
  5. package/dist/cjs/ez-grid.cjs.entry.js +92 -43
  6. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-search.cjs.entry.js +3 -2
  8. package/dist/cjs/ez-text-area.cjs.entry.js +2 -2
  9. package/dist/cjs/ez-tree.cjs.entry.js +5 -4
  10. package/dist/cjs/ezui.cjs.js +1 -1
  11. package/dist/cjs/loader.cjs.js +1 -1
  12. package/dist/collection/components/ez-dialog/ez-dialog.js +5 -15
  13. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +34 -13
  14. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +47 -26
  15. package/dist/collection/components/ez-grid/controller/ag-grid/DataSourceInterceptor.js +2 -1
  16. package/dist/collection/components/ez-grid/ez-grid.js +70 -9
  17. package/dist/collection/components/ez-icon/ez-icon.css +71 -68
  18. package/dist/collection/components/ez-search/ez-search.js +22 -4
  19. package/dist/collection/components/ez-skeleton/ez-skeleton.css +54 -34
  20. package/dist/collection/components/ez-text-area/ez-text-area.css +5 -1
  21. package/dist/collection/components/ez-text-area/ez-text-area.js +2 -2
  22. package/dist/collection/components/ez-tree/ez-tree.js +21 -1
  23. package/dist/collection/components/ez-tree/subcomponents/TreeItem.js +3 -3
  24. package/dist/collection/utils/form/DataBinder.js +2 -2
  25. package/dist/custom-elements/index.js +113 -63
  26. package/dist/esm/{DataBinder-d2ecbb0f.js → DataBinder-9c877244.js} +2 -2
  27. package/dist/esm/ez-dialog.entry.js +5 -6
  28. package/dist/esm/ez-dropdown_2.entry.js +1 -1
  29. package/dist/esm/ez-form.entry.js +1 -1
  30. package/dist/esm/ez-grid.entry.js +93 -44
  31. package/dist/esm/ez-icon.entry.js +1 -1
  32. package/dist/esm/ez-search.entry.js +3 -2
  33. package/dist/esm/ez-text-area.entry.js +2 -2
  34. package/dist/esm/ez-tree.entry.js +5 -4
  35. package/dist/esm/ezui.js +1 -1
  36. package/dist/esm/loader.js +1 -1
  37. package/dist/ezui/ezui.esm.js +1 -1
  38. package/dist/ezui/p-2f45506d.entry.js +1 -0
  39. package/dist/ezui/p-35464ae8.entry.js +1 -0
  40. package/dist/ezui/{p-d0ca26fe.entry.js → p-354abfe8.entry.js} +1 -1
  41. package/dist/ezui/{p-d520839d.entry.js → p-3e8b13fb.entry.js} +1 -1
  42. package/dist/ezui/{p-7ed30844.entry.js → p-56fe5341.entry.js} +1 -1
  43. package/dist/ezui/{p-ceadecd9.js → p-acddfb2e.js} +1 -1
  44. package/dist/ezui/{p-b46e9f59.entry.js → p-aee9c4ef.entry.js} +46 -46
  45. package/dist/ezui/p-da1b4a38.entry.js +1 -0
  46. package/dist/ezui/p-ea54d056.entry.js +1 -0
  47. package/dist/types/components/ez-dialog/ez-dialog.d.ts +0 -1
  48. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +12 -1
  49. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +4 -0
  50. package/dist/types/components/ez-grid/controller/ag-grid/DataSource.d.ts +2 -1
  51. package/dist/types/components/ez-grid/ez-grid.d.ts +18 -6
  52. package/dist/types/components/ez-search/ez-search.d.ts +5 -1
  53. package/dist/types/components/ez-tree/ez-tree.d.ts +4 -0
  54. package/dist/types/components/ez-tree/interfaces/ITreeItem.d.ts +1 -0
  55. package/dist/types/components/ez-tree/subcomponents/TreeItem.d.ts +1 -0
  56. package/dist/types/components.d.ts +44 -8
  57. package/package.json +1 -1
  58. package/dist/ezui/p-181b5ae8.entry.js +0 -1
  59. package/dist/ezui/p-3175fe8c.entry.js +0 -1
  60. package/dist/ezui/p-8888d9ed.entry.js +0 -1
  61. package/dist/ezui/p-c4320a39.entry.js +0 -1
@@ -1,4 +1,4 @@
1
- import { ElementIDUtils, JSUtils, OverflowWatcher, OVERFLOWED_CLASS_NAME, StringUtils, } from '@sankhyalabs/core';
1
+ import { ElementIDUtils, JSUtils, OverflowWatcher, OVERFLOWED_CLASS_NAME, StringUtils, ApplicationContext, } from '@sankhyalabs/core';
2
2
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
3
3
  import { Host, h } from '@stencil/core';
4
4
  import { ApplicationUtils } from '../../utils';
@@ -25,6 +25,8 @@ export class EzGrid {
25
25
  this._selectionCount = undefined;
26
26
  this._hasLeftButtons = false;
27
27
  this._customFormatters = new Map();
28
+ this.enableLockManagerLoadingComp = false;
29
+ this.enableLockManagerTaskbarClick = true;
28
30
  this.multipleSelection = undefined;
29
31
  this.config = undefined;
30
32
  this.selectionToastConfig = undefined;
@@ -39,9 +41,10 @@ export class EzGrid {
39
41
  this.paginationCounterMode = 'show';
40
42
  this.enableGridInsert = false;
41
43
  this.enableContinuousInsert = true;
42
- this.enableLockManger = true;
44
+ this.suppressCheckboxColumn = false;
43
45
  this.outlineMode = false;
44
46
  this.enableRowTableStriped = true;
47
+ this.compact = false;
45
48
  }
46
49
  /**
47
50
  * Aplica a definição de colunas.
@@ -375,6 +378,8 @@ export class EzGrid {
375
378
  return (h("div", { class: `grid-header__container grid-header__pagination ${this.resolvePaginationClassMode()}`, ref: ref => (this._refPaginationControl = ref) }, h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium", ref: (element) => (this._refPaginationLabel = element) }, h("span", { class: "grid-header__pagination-label" }, this.paginationCounterMode == 'show' && h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, this._getActualPageLabel()), this.paginationCounterMode == 'show' && this._getRemainingPageLabel())), h("div", { id: "grid-pagination-tooltip", ref: (element) => (this._refPaginationLabelTooltip = element), class: "ez-flex ez-margin-right--medium", title: `${this._getActualPageLabel()} ${this._getRemainingPageLabel()}` }, h("ez-button", { size: "small", class: "ez-margin-right--medium", iconName: "chevron-left", mode: "icon", enabled: currentPage > 0, onClick: () => this.previousPage(), label: "P\u00E1gina anterior" }), h("ez-button", { size: "small", iconName: "chevron-right", mode: "icon", enabled: hasMore, onClick: () => this.nextPage(), label: "Pr\u00F3xima P\u00E1gina" }))));
376
379
  }
377
380
  componentDidLoad() {
381
+ const _application = ApplicationContext.getContextValue("__SNK__APPLICATION__");
382
+ this.enableLockManagerLoadingComp = (!_application || (_application === null || _application === void 0 ? void 0 : _application.enableLockManagerLoadingApp)) ? this.enableLockManagerLoadingComp : false;
378
383
  this._gridController.initDatagrid(this._container, {
379
384
  onColumnStateChange: (type, state, info) => this.onColumnStateChange(type, state, info),
380
385
  onSelectionChange: (selection) => this.ezSelectionChange.emit(selection),
@@ -398,12 +403,14 @@ export class EzGrid {
398
403
  autoFocus: this.autoFocus,
399
404
  enableGridInsert: this.enableGridInsert,
400
405
  enableContinuousInsert: this.enableContinuousInsert,
406
+ suppressCheckBoxCol: this.suppressCheckboxColumn,
401
407
  onRefresh: () => {
402
408
  if (this.dataUnit) {
403
409
  this.setSelection(this.dataUnit.getSelectionInfo());
404
410
  }
405
411
  },
406
- enableLockManger: this.enableLockManger,
412
+ enableLockManagerTaskbarClick: this.enableLockManagerTaskbarClick,
413
+ enableLockManagerLoadingComp: this.enableLockManagerLoadingComp,
407
414
  enableRowTableStriped: this.enableRowTableStriped,
408
415
  });
409
416
  if (this.config) {
@@ -519,7 +526,7 @@ export class EzGrid {
519
526
  }
520
527
  render() {
521
528
  var _a;
522
- return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: `grid__container ${this.outlineMode ? 'outline-mode' : 'shadow-mode'} ez-grid`, ref: elem => (this._container = elem) }), h("div", { class: `ez-box ${this.outlineMode ? 'outline-mode' : 'shadow-mode'} ez-padding--small grid-header` }, h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: `grid-header__container grid-header__left-container ${this.resolveLeftHeaderClass()}` }, h("slot", { name: "leftButtons" })), this.getPaginationControl())), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
529
+ return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: `grid__container ez-grid ${this.outlineMode ? 'outline-mode' : 'shadow-mode'} ${this.compact ? 'no-padding' : ""}`, ref: elem => (this._container = elem) }), h("div", { class: `ez-box ${this.outlineMode ? 'outline-mode' : 'shadow-mode'} ez-padding--small grid-header` }, h("filter-column", { class: "grid-header__popover", noHeaderTaskBar: !this._hasLeftButtons, dataSource: this.getDataSource(), dataUnit: this.dataUnit, gridHeaderHidden: this.hideHeader(), ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: `grid-header__container grid-header__left-container ${this.resolveLeftHeaderClass()}` }, h("slot", { name: "leftButtons" })), this.getPaginationControl())), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
523
530
  ${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
524
531
  ` }, h(SelectionCounter, { selectionCount: this._selectionCount, currentPageSelected: this._currentPageSelected, paginationInfo: this._paginationInfo, canSelectAll: (_a = this.selectionToastConfig) === null || _a === void 0 ? void 0 : _a.canSelectAll, allRecordSelected: this._isAllSelection, onSelectAll: () => this.onSelectAllRecords(), onSelectPage: () => this.onSelectPageRecords(), onClearAll: () => this.onClearSelectedRecords(), onClose: () => (this._showSelectionCounter = false) })), h("div", { class: "grid__footer" }, h("slot", { name: "footer" }))));
525
532
  }
@@ -538,6 +545,42 @@ export class EzGrid {
538
545
  static get assetsDirs() { return ["../assets"]; }
539
546
  static get properties() {
540
547
  return {
548
+ "enableLockManagerLoadingComp": {
549
+ "type": "boolean",
550
+ "mutable": false,
551
+ "complexType": {
552
+ "original": "boolean",
553
+ "resolved": "boolean",
554
+ "references": {}
555
+ },
556
+ "required": false,
557
+ "optional": true,
558
+ "docs": {
559
+ "tags": [],
560
+ "text": "Define se o componente deve usar o LockManager para controle de carregamento da aplica\u00E7\u00E3o"
561
+ },
562
+ "attribute": "enable-lock-manager-loading-comp",
563
+ "reflect": false,
564
+ "defaultValue": "false"
565
+ },
566
+ "enableLockManagerTaskbarClick": {
567
+ "type": "boolean",
568
+ "mutable": false,
569
+ "complexType": {
570
+ "original": "boolean",
571
+ "resolved": "boolean",
572
+ "references": {}
573
+ },
574
+ "required": false,
575
+ "optional": true,
576
+ "docs": {
577
+ "tags": [],
578
+ "text": "Ativa inser\u00E7\u00E3o de registros no modo grade pela Taskbar."
579
+ },
580
+ "attribute": "enable-lock-manager-taskbar-click",
581
+ "reflect": false,
582
+ "defaultValue": "true"
583
+ },
541
584
  "multipleSelection": {
542
585
  "type": "boolean",
543
586
  "mutable": false,
@@ -804,7 +847,7 @@ export class EzGrid {
804
847
  "reflect": false,
805
848
  "defaultValue": "true"
806
849
  },
807
- "enableLockManger": {
850
+ "suppressCheckboxColumn": {
808
851
  "type": "boolean",
809
852
  "mutable": false,
810
853
  "complexType": {
@@ -816,11 +859,11 @@ export class EzGrid {
816
859
  "optional": true,
817
860
  "docs": {
818
861
  "tags": [],
819
- "text": "Ativa inser\u00E7\u00E3o de registros no modo grade."
862
+ "text": "Informa se a coluna de chechbox deve ser suprimida"
820
863
  },
821
- "attribute": "enable-lock-manger",
864
+ "attribute": "suppress-checkbox-column",
822
865
  "reflect": false,
823
- "defaultValue": "true"
866
+ "defaultValue": "false"
824
867
  },
825
868
  "outlineMode": {
826
869
  "type": "boolean",
@@ -834,7 +877,7 @@ export class EzGrid {
834
877
  "optional": true,
835
878
  "docs": {
836
879
  "tags": [],
837
- "text": "Altera visualmente as sombras e bordas do componente\nQuando true, aplica o padr\u00E3o de sombras ao componente (Utilizar quando for o elemento principal do layout)\nQuando false, aplica o padr\u00E3o de outline ao componente (Utilizar quando estiver contido em outro elemento como um painel ou pop-up)"
880
+ "text": "Altera visualmente as sombras e bordas do componente\nQuando false, aplica o padr\u00E3o de sombras ao componente (Utilizar quando for o elemento principal do layout)\nQuando true, aplica o padr\u00E3o de outline ao componente (Utilizar quando estiver contido em outro elemento como um painel ou pop-up)"
838
881
  },
839
882
  "attribute": "outline-mode",
840
883
  "reflect": false,
@@ -857,6 +900,24 @@ export class EzGrid {
857
900
  "attribute": "enable-row-table-striped",
858
901
  "reflect": false,
859
902
  "defaultValue": "true"
903
+ },
904
+ "compact": {
905
+ "type": "boolean",
906
+ "mutable": false,
907
+ "complexType": {
908
+ "original": "boolean",
909
+ "resolved": "boolean",
910
+ "references": {}
911
+ },
912
+ "required": false,
913
+ "optional": true,
914
+ "docs": {
915
+ "tags": [],
916
+ "text": "Define se a grade deve ser exibida em modo compacto"
917
+ },
918
+ "attribute": "compact",
919
+ "reflect": false,
920
+ "defaultValue": "false"
860
921
  }
861
922
  };
862
923
  }
@@ -145,74 +145,77 @@ svg {
145
145
  .ez-icon-handshake:before { content: "\ea58"; }
146
146
  .ez-icon-help-inverted:before { content: "\ea59"; }
147
147
  .ez-icon-help:before { content: "\ea5a"; }
148
- .ez-icon-hide_menu:before { content: "\ea5b"; }
149
- .ez-icon-home:before { content: "\ea5c"; }
150
- .ez-icon-icons104:before { content: "\ea5d"; }
151
- .ez-icon-language:before { content: "\ea5e"; }
152
- .ez-icon-launch:before { content: "\ea5f"; }
153
- .ez-icon-lightbulb:before { content: "\ea60"; }
154
- .ez-icon-list:before { content: "\ea61"; }
155
- .ez-icon-location:before { content: "\ea62"; }
156
- .ez-icon-lock-outline:before { content: "\ea63"; }
157
- .ez-icon-lock:before { content: "\ea64"; }
158
- .ez-icon-menu:before { content: "\ea65"; }
159
- .ez-icon-mid:before { content: "\ea66"; }
160
- .ez-icon-minus:before { content: "\ea67"; }
161
- .ez-icon-money-off:before { content: "\ea68"; }
162
- .ez-icon-money:before { content: "\ea69"; }
163
- .ez-icon-more:before { content: "\ea6a"; }
164
- .ez-icon-mp3:before { content: "\ea6b"; }
165
- .ez-icon-mp4:before { content: "\ea6c"; }
166
- .ez-icon-multiple-files:before { content: "\ea6d"; }
167
- .ez-icon-north-west:before { content: "\ea6e"; }
168
- .ez-icon-number:before { content: "\ea6f"; }
169
- .ez-icon-ordem-ascendente:before { content: "\ea70"; }
170
- .ez-icon-ordem-descendente:before { content: "\ea71"; }
171
- .ez-icon-parcelar:before { content: "\ea72"; }
172
- .ez-icon-pause:before { content: "\ea73"; }
173
- .ez-icon-payments:before { content: "\ea74"; }
174
- .ez-icon-pdf:before { content: "\ea75"; }
175
- .ez-icon-play:before { content: "\ea76"; }
176
- .ez-icon-plus:before { content: "\ea77"; }
177
- .ez-icon-png:before { content: "\ea78"; }
178
- .ez-icon-power:before { content: "\ea79"; }
179
- .ez-icon-pptx:before { content: "\ea7a"; }
180
- .ez-icon-preview:before { content: "\ea7b"; }
181
- .ez-icon-print:before { content: "\ea7c"; }
182
- .ez-icon-push-pin:before { content: "\ea7d"; }
183
- .ez-icon-rateio:before { content: "\ea7e"; }
184
- .ez-icon-receipt:before { content: "\ea7f"; }
185
- .ez-icon-recolher_card:before { content: "\ea80"; }
186
- .ez-icon-remove-from-cart:before { content: "\ea81"; }
187
- .ez-icon-restore:before { content: "\ea82"; }
188
- .ez-icon-return:before { content: "\ea83"; }
189
- .ez-icon-sankhya-place:before { content: "\ea84"; }
190
- .ez-icon-save:before { content: "\ea85"; }
191
- .ez-icon-search:before { content: "\ea86"; }
192
- .ez-icon-settings-inverted:before { content: "\ea87"; }
193
- .ez-icon-settings:before { content: "\ea88"; }
194
- .ez-icon-share:before { content: "\ea89"; }
195
- .ez-icon-shield:before { content: "\ea8a"; }
196
- .ez-icon-show_menu:before { content: "\ea8b"; }
197
- .ez-icon-south-east:before { content: "\ea8c"; }
198
- .ez-icon-sync:before { content: "\ea8d"; }
199
- .ez-icon-table:before { content: "\ea8e"; }
200
- .ez-icon-tag_code:before { content: "\ea8f"; }
201
- .ez-icon-text:before { content: "\ea90"; }
202
- .ez-icon-timeline:before { content: "\ea91"; }
203
- .ez-icon-timer-outline:before { content: "\ea92"; }
204
- .ez-icon-trending-up:before { content: "\ea93"; }
205
- .ez-icon-tune:before { content: "\ea94"; }
206
- .ez-icon-txt:before { content: "\ea95"; }
207
- .ez-icon-un-pin:before { content: "\ea96"; }
208
- .ez-icon-unfold_less:before { content: "\ea97"; }
209
- .ez-icon-unfold_more:before { content: "\ea98"; }
210
- .ez-icon-user-circle:before { content: "\ea99"; }
211
- .ez-icon-warning-outline:before { content: "\ea9a"; }
212
- .ez-icon-warning_triangle:before { content: "\ea9b"; }
213
- .ez-icon-whatshot:before { content: "\ea9c"; }
214
- .ez-icon-xlsx:before { content: "\ea9d"; }
215
- .ez-icon-zip:before { content: "\ea9e"; }
148
+ .ez-icon-hide-list:before { content: "\ea5b"; }
149
+ .ez-icon-hide_menu:before { content: "\ea5c"; }
150
+ .ez-icon-hierarchical-tree:before { content: "\ea5d"; }
151
+ .ez-icon-home:before { content: "\ea5e"; }
152
+ .ez-icon-icons104:before { content: "\ea5f"; }
153
+ .ez-icon-language:before { content: "\ea60"; }
154
+ .ez-icon-launch:before { content: "\ea61"; }
155
+ .ez-icon-lightbulb:before { content: "\ea62"; }
156
+ .ez-icon-list:before { content: "\ea63"; }
157
+ .ez-icon-location:before { content: "\ea64"; }
158
+ .ez-icon-lock-outline:before { content: "\ea65"; }
159
+ .ez-icon-lock:before { content: "\ea66"; }
160
+ .ez-icon-menu:before { content: "\ea67"; }
161
+ .ez-icon-mid:before { content: "\ea68"; }
162
+ .ez-icon-minus:before { content: "\ea69"; }
163
+ .ez-icon-money-off:before { content: "\ea6a"; }
164
+ .ez-icon-money:before { content: "\ea6b"; }
165
+ .ez-icon-more:before { content: "\ea6c"; }
166
+ .ez-icon-mp3:before { content: "\ea6d"; }
167
+ .ez-icon-mp4:before { content: "\ea6e"; }
168
+ .ez-icon-multiple-files:before { content: "\ea6f"; }
169
+ .ez-icon-north-west:before { content: "\ea70"; }
170
+ .ez-icon-number:before { content: "\ea71"; }
171
+ .ez-icon-ordem-ascendente:before { content: "\ea72"; }
172
+ .ez-icon-ordem-descendente:before { content: "\ea73"; }
173
+ .ez-icon-parcelar:before { content: "\ea74"; }
174
+ .ez-icon-pause:before { content: "\ea75"; }
175
+ .ez-icon-payments:before { content: "\ea76"; }
176
+ .ez-icon-pdf:before { content: "\ea77"; }
177
+ .ez-icon-play:before { content: "\ea78"; }
178
+ .ez-icon-plus:before { content: "\ea79"; }
179
+ .ez-icon-png:before { content: "\ea7a"; }
180
+ .ez-icon-power:before { content: "\ea7b"; }
181
+ .ez-icon-pptx:before { content: "\ea7c"; }
182
+ .ez-icon-preview:before { content: "\ea7d"; }
183
+ .ez-icon-print:before { content: "\ea7e"; }
184
+ .ez-icon-push-pin:before { content: "\ea7f"; }
185
+ .ez-icon-rateio:before { content: "\ea80"; }
186
+ .ez-icon-receipt:before { content: "\ea81"; }
187
+ .ez-icon-recolher_card:before { content: "\ea82"; }
188
+ .ez-icon-remove-from-cart:before { content: "\ea83"; }
189
+ .ez-icon-restore:before { content: "\ea84"; }
190
+ .ez-icon-return:before { content: "\ea85"; }
191
+ .ez-icon-sankhya-place:before { content: "\ea86"; }
192
+ .ez-icon-save:before { content: "\ea87"; }
193
+ .ez-icon-search:before { content: "\ea88"; }
194
+ .ez-icon-settings-inverted:before { content: "\ea89"; }
195
+ .ez-icon-settings:before { content: "\ea8a"; }
196
+ .ez-icon-share:before { content: "\ea8b"; }
197
+ .ez-icon-shield:before { content: "\ea8c"; }
198
+ .ez-icon-show-list:before { content: "\ea8d"; }
199
+ .ez-icon-show_menu:before { content: "\ea8e"; }
200
+ .ez-icon-south-east:before { content: "\ea8f"; }
201
+ .ez-icon-sync:before { content: "\ea90"; }
202
+ .ez-icon-table:before { content: "\ea91"; }
203
+ .ez-icon-tag_code:before { content: "\ea92"; }
204
+ .ez-icon-text:before { content: "\ea93"; }
205
+ .ez-icon-timeline:before { content: "\ea94"; }
206
+ .ez-icon-timer-outline:before { content: "\ea95"; }
207
+ .ez-icon-trending-up:before { content: "\ea96"; }
208
+ .ez-icon-tune:before { content: "\ea97"; }
209
+ .ez-icon-txt:before { content: "\ea98"; }
210
+ .ez-icon-un-pin:before { content: "\ea99"; }
211
+ .ez-icon-unfold_less:before { content: "\ea9a"; }
212
+ .ez-icon-unfold_more:before { content: "\ea9b"; }
213
+ .ez-icon-user-circle:before { content: "\ea9c"; }
214
+ .ez-icon-warning-outline:before { content: "\ea9d"; }
215
+ .ez-icon-warning_triangle:before { content: "\ea9e"; }
216
+ .ez-icon-whatshot:before { content: "\ea9f"; }
217
+ .ez-icon-xlsx:before { content: "\eaa0"; }
218
+ .ez-icon-zip:before { content: "\eaa1"; }
216
219
  /*
217
220
  END CSS GENERATED BY EZ-DESIGN ICONS
218
221
  */
@@ -25,6 +25,7 @@ export class EzSearch {
25
25
  this.enabled = true;
26
26
  this.errorMessage = undefined;
27
27
  this.optionLoader = undefined;
28
+ this.contextProperties = undefined;
28
29
  this.showSelectedValue = true;
29
30
  this.showOptionValue = true;
30
31
  this.suppressEmptyOption = false;
@@ -416,7 +417,7 @@ export class EzSearch {
416
417
  this._startLoading = true;
417
418
  if (this.optionLoader) {
418
419
  const searchArgument = { mode, argument };
419
- this.updateSource(this.optionLoader(searchArgument));
420
+ this.updateSource(this.optionLoader(searchArgument, this.contextProperties));
420
421
  }
421
422
  else {
422
423
  this.updateSource(this.options);
@@ -483,7 +484,7 @@ export class EzSearch {
483
484
  mode: SearchMode.PREDICTIVE,
484
485
  argument
485
486
  };
486
- const source = await ((_b = this.optionLoader) === null || _b === void 0 ? void 0 : _b.call(this, searchArgument));
487
+ const source = await ((_b = this.optionLoader) === null || _b === void 0 ? void 0 : _b.call(this, searchArgument, this.contextProperties));
487
488
  if (source == undefined) {
488
489
  return;
489
490
  }
@@ -820,8 +821,8 @@ export class EzSearch {
820
821
  "type": "unknown",
821
822
  "mutable": false,
822
823
  "complexType": {
823
- "original": "(argument: ISearchArgument) => Promise<Array<IOption>> | Array<IOption> | IOption",
824
- "resolved": "(argument: ISearchArgument) => IOption | IOption[] | Promise<IOption[]>",
824
+ "original": "(argument: ISearchArgument, ctxProperties?: any) => Promise<Array<IOption>> | Array<IOption> | IOption",
825
+ "resolved": "(argument: ISearchArgument, ctxProperties?: any) => IOption | IOption[] | Promise<IOption[]>",
825
826
  "references": {
826
827
  "ISearchArgument": {
827
828
  "location": "local"
@@ -844,6 +845,23 @@ export class EzSearch {
844
845
  "text": "Carrega as op\u00E7\u00F5es dinamicamente."
845
846
  }
846
847
  },
848
+ "contextProperties": {
849
+ "type": "any",
850
+ "mutable": false,
851
+ "complexType": {
852
+ "original": "any",
853
+ "resolved": "any",
854
+ "references": {}
855
+ },
856
+ "required": false,
857
+ "optional": true,
858
+ "docs": {
859
+ "tags": [],
860
+ "text": "Propriedades de contexto da aplica\u00E7\u00E3o."
861
+ },
862
+ "attribute": "context-properties",
863
+ "reflect": false
864
+ },
847
865
  "showSelectedValue": {
848
866
  "type": "boolean",
849
867
  "mutable": false,
@@ -1,16 +1,17 @@
1
1
  .skeleton {
2
- box-sizing: border-box;
3
- outline: none;
4
- overflow: hidden;
5
- position: relative;
6
-
7
- background:var(--skeleton-background, #eff1f6) no-repeat;
2
+ background: var(--skeleton-background, #eff1f6) no-repeat;
8
3
 
9
4
  border-radius: var(--skeleton-border-radius, 4px);
10
5
  width: var(--skeleton-width, 100%);
11
6
  height: var(--skeleton-height, 20px);
12
7
  display: inline-block;
13
- margin-bottom: var(--skeleton-margin-bottom, 0px);
8
+ margin-bottom: var(--skeleton-margin-bottom, 0px);
9
+ box-sizing: border-box;
10
+ outline: none;
11
+ overflow: hidden;
12
+ position: relative;
13
+ -webkit-will-change: transform;
14
+ -moz-will-change: transform;
14
15
  will-change: transform;
15
16
 
16
17
  &:after,
@@ -31,29 +32,31 @@
31
32
 
32
33
  &.progress,
33
34
  &.progress-dark {
35
+ -webkit-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
36
+ -moz-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
37
+ -ms-animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
34
38
  animation: progress 2s cubic-bezier(0.4, 0, 0.2, 1) infinite;
35
39
  background-size: 200px 100%;
36
40
  }
37
41
 
38
42
  &.progress {
39
- background-image: linear-gradient(
40
- 90deg,
41
- rgba(255, 255, 255, 0),
42
- rgba(255, 255, 255, 0.6),
43
- rgba(255, 255, 255, 0)
44
- );
43
+ background-image: -webkit-linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
44
+ background-image: -moz-linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
45
+ background-image: -ms-linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
46
+ background-image: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0));
45
47
  }
46
48
 
47
49
  &.progress-dark {
48
- background-image: linear-gradient(
49
- 90deg,
50
- transparent,
51
- rgba(0, 0, 0, 0.2),
52
- transparent
53
- );
50
+ background-image: -webkit-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
51
+ background-image: -moz-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
52
+ background-image: -ms-linear-gradient(90deg, transparent, rgba(0, 0, 0, 0.2), transparent);
53
+ background-image: linear-gradient(90deg,transparent,rgba(0, 0, 0, 0.2),transparent);
54
54
  }
55
55
 
56
56
  &.pulse {
57
+ -webkit-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
58
+ -moz-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
59
+ -ms-animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
57
60
  animation: pulse 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
58
61
  animation-delay: 0.5s;
59
62
  }
@@ -72,23 +75,40 @@
72
75
  }
73
76
  }
74
77
 
78
+ @-webkit-keyframes progress {
79
+ 0% { background-position: -200px 0; }
80
+ 100% { background-position: calc(200px + 100%) 0; }
81
+ }
82
+ @-moz-keyframes progress {
83
+ 0% { background-position: -200px 0; }
84
+ 100% { background-position: calc(200px + 100%) 0; }
85
+ }
86
+ @-ms-keyframes progress {
87
+ 0% { background-position: -200px 0; }
88
+ 100% { background-position: calc(200px + 100%) 0; }
89
+ }
75
90
  @keyframes progress {
76
- 0% {
77
- background-position: -200px 0;
78
- }
79
- 100% {
80
- background-position: calc(200px + 100%) 0;
81
- }
91
+ 0% { background-position: -200px 0; }
92
+ 100% { background-position: calc(200px + 100%) 0; }
82
93
  }
83
94
 
95
+ @-webkit-keyframes pulse {
96
+ 0% { opacity: 1; }
97
+ 50% { opacity: 0.4; }
98
+ 100% { opacity: 1; }
99
+ }
100
+ @-moz-keyframes pulse {
101
+ 0% { opacity: 1; }
102
+ 50% { opacity: 0.4; }
103
+ 100% { opacity: 1; }
104
+ }
105
+ @-ms-keyframes pulse {
106
+ 0% { opacity: 1; }
107
+ 50% { opacity: 0.4; }
108
+ 100% { opacity: 1; }
109
+ }
84
110
  @keyframes pulse {
85
- 0% {
86
- opacity: 1;
87
- }
88
- 50% {
89
- opacity: 0.4;
90
- }
91
- 100% {
92
- opacity: 1;
93
- }
111
+ 0% { opacity: 1; }
112
+ 50% { opacity: 0.4; }
113
+ 100% { opacity: 1; }
94
114
  }
@@ -84,6 +84,7 @@ textarea {
84
84
  width: 100%;
85
85
  padding: 0;
86
86
  background: none;
87
+ min-height: 42px;
87
88
 
88
89
  /*public*/
89
90
  font-weight: var(--text-area--font-weight);
@@ -144,6 +145,9 @@ textarea::-webkit-scrollbar-thumb:horizontal:active {
144
145
  .textarea {
145
146
  /*private*/
146
147
  width: 100%;
148
+ min-height: 42px;
149
+ max-width: 100%;
150
+
147
151
  box-sizing: border-box;
148
152
  padding-left: var(--space--medium);
149
153
  padding-right: var(--space--extra-small);
@@ -163,7 +167,7 @@ textarea::-webkit-scrollbar-thumb:horizontal:active {
163
167
  }
164
168
 
165
169
  .textarea--resizable {
166
- resize: both;
170
+ resize: vertical;
167
171
  }
168
172
 
169
173
  .textarea--focus {
@@ -11,7 +11,7 @@ export class EzTextArea {
11
11
  this.rows = 4;
12
12
  this.canShowError = true;
13
13
  this.mode = "regular";
14
- this.enableResize = false;
14
+ this.enableResize = true;
15
15
  this.autoRows = false;
16
16
  this.autoFocus = false;
17
17
  }
@@ -371,7 +371,7 @@ export class EzTextArea {
371
371
  },
372
372
  "attribute": "enable-resize",
373
373
  "reflect": true,
374
- "defaultValue": "false"
374
+ "defaultValue": "true"
375
375
  },
376
376
  "autoRows": {
377
377
  "type": "boolean",
@@ -274,7 +274,7 @@ export class EzTree {
274
274
  :
275
275
  this._tree.getChildren().map(node => {
276
276
  var _a;
277
- return h(TreeItem, { selectedId: (_a = this.value) === null || _a === void 0 ? void 0 : _a.id, node: node, itemClick: this._onItemClick, iconClick: this._onIconClick, iconResolver: this.iconResolver, tooltipResolver: this.tooltipResolver || defaultTooltipResolver, itemsList: this._visibleItems });
277
+ return h(TreeItem, { selectedId: (_a = this.value) === null || _a === void 0 ? void 0 : _a.id, node: node, itemClick: this._onItemClick, iconClick: this._onIconClick, iconResolver: this.iconResolver, tooltipResolver: this.tooltipResolver || defaultTooltipResolver, itemsList: this._visibleItems, itemDoubleClick: (item) => this.ezDbClickItem.emit(item) });
278
278
  })));
279
279
  }
280
280
  static get is() { return "ez-tree"; }
@@ -442,6 +442,26 @@ export class EzTree {
442
442
  }
443
443
  }
444
444
  }
445
+ }, {
446
+ "method": "ezDbClickItem",
447
+ "name": "ezDbClickItem",
448
+ "bubbles": true,
449
+ "cancelable": true,
450
+ "composed": true,
451
+ "docs": {
452
+ "tags": [],
453
+ "text": "Emitido ao dar clique duplo em um item da \u00E1rvore."
454
+ },
455
+ "complexType": {
456
+ "original": "ITreeItem",
457
+ "resolved": "ITreeItem",
458
+ "references": {
459
+ "ITreeItem": {
460
+ "location": "import",
461
+ "path": "./interfaces/ITreeItem"
462
+ }
463
+ }
464
+ }
445
465
  }];
446
466
  }
447
467
  static get methods() {
@@ -1,7 +1,7 @@
1
1
  import { ElementIDUtils } from "@sankhyalabs/core";
2
2
  import { h } from "@stencil/core";
3
3
  export const TreeItem = (props) => {
4
- const { node, selectedId, itemClick, iconClick, iconResolver, tooltipResolver, itemsList } = props;
4
+ const { node, selectedId, itemClick, iconClick, iconResolver, tooltipResolver, itemsList, itemDoubleClick } = props;
5
5
  if (!node.visible) {
6
6
  return;
7
7
  }
@@ -14,13 +14,13 @@ export const TreeItem = (props) => {
14
14
  if (available) {
15
15
  itemsList.push(treeItem);
16
16
  }
17
- return (h("ul", { class: level === 1 ? "first-level" : undefined }, h("li", Object.assign({ title: tooltipResolver(treeItem, !disabled, level), class: `tree-item ${treeItem.id !== selectedId ? "tree-item-error" : ""}`, onClick: () => available && itemClick(treeItem) }, {
17
+ return (h("ul", { class: level === 1 ? "first-level" : undefined }, h("li", Object.assign({ title: tooltipResolver(treeItem, !disabled, level), class: `tree-item ${treeItem.id !== selectedId ? "tree-item-error" : ""}`, onClick: () => available && itemClick(treeItem), onDblClick: () => available && itemDoubleClick(treeItem) }, {
18
18
  disabled,
19
19
  selected: treeItem.id === selectedId,
20
20
  [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: ElementIDUtils.getInternalIDInfo(`ezTreeItem_${treeItem.id}`)
21
21
  }), h("div", { class: "item-label-container" }, h("div", { class: "item-icon-box" }, expandable &&
22
22
  h("ez-icon", { id: treeItem.id, class: "item-icon", size: "small", iconName: iconResolver(treeItem, expanded, level), onClick: () => available && iconClick(treeItem) })), h("label", { class: `item-label ${treeItem.bold ? "item-label--bold" : ""}` }, treeItem.label)), getBadgeElement(treeItem.id, treeItem.badge, treeItem.id === selectedId)), expanded
23
- && node.getChildren().map(child => h(TreeItem, { selectedId: selectedId, node: child, itemClick: itemClick, iconClick: iconClick, level: level + 1, iconResolver: iconResolver, tooltipResolver: tooltipResolver, itemsList: itemsList }))));
23
+ && node.getChildren().map(child => h(TreeItem, { selectedId: selectedId, node: child, itemClick: itemClick, iconClick: iconClick, level: level + 1, iconResolver: iconResolver, tooltipResolver: tooltipResolver, itemsList: itemsList, itemDoubleClick: itemDoubleClick }))));
24
24
  };
25
25
  function getBadgeElement(itemId, badge, isSelectedItem) {
26
26
  if (badge == undefined) {
@@ -231,8 +231,8 @@ export default class DataBinder {
231
231
  if (field.nodeName === "EZ-SEARCH" && field["optionLoader"] == undefined) {
232
232
  const loader = ApplicationContext.getContextValue("__EZUI__SEARCH__OPTION__LOADER__");
233
233
  if (loader) {
234
- field["optionLoader"] = (arg) => {
235
- return loader(arg, fieldName, this._dataUnit);
234
+ field["optionLoader"] = (arg, ctxOptions) => {
235
+ return loader(arg, fieldName, this._dataUnit, ctxOptions);
236
236
  };
237
237
  }
238
238
  }