@sankhyalabs/ezui 0.0.0-bugfix-dev-KB-43388.0 → 0.0.0-bugfix-dev-KB-9999.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 (111) hide show
  1. package/dist/cjs/{CSSVarsUtils-10c9d5b4.js → CSSVarsUtils-b136a156.js} +0 -13
  2. package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
  3. package/dist/cjs/ez-card-item_3.cjs.entry.js +5 -6
  4. package/dist/cjs/ez-combo-box.cjs.entry.js +6 -7
  5. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-form-view.cjs.entry.js +13 -30
  8. package/dist/cjs/ez-grid.cjs.entry.js +10 -72
  9. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  10. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +10 -2
  11. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-popup.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-search.cjs.entry.js +5 -4
  14. package/dist/cjs/ez-split-item.cjs.entry.js +2 -11
  15. package/dist/cjs/ez-split-panel.cjs.entry.js +5 -6
  16. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  17. package/dist/cjs/ezui.cjs.js +1 -1
  18. package/dist/cjs/index-a7b0c73d.js +4 -8
  19. package/dist/cjs/loader.cjs.js +1 -1
  20. package/dist/collection/collection-manifest.json +0 -1
  21. package/dist/collection/components/ez-card-item/ez-card-item.css +5 -19
  22. package/dist/collection/components/ez-card-item/ez-card-item.js +3 -22
  23. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +0 -1
  24. package/dist/collection/components/ez-combo-box/ez-combo-box.js +5 -6
  25. package/dist/collection/components/ez-form-view/ez-form-view.css +1 -17
  26. package/dist/collection/components/ez-form-view/ez-form-view.js +5 -22
  27. package/dist/collection/components/ez-form-view/fieldbuilder/templates/CheckBox.tpl.js +1 -1
  28. package/dist/collection/components/ez-form-view/fieldbuilder/templates/ComboBox.tpl.js +1 -1
  29. package/dist/collection/components/ez-form-view/fieldbuilder/templates/DateInput.tpl.js +3 -3
  30. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +1 -1
  31. package/dist/collection/components/ez-form-view/fieldbuilder/templates/SearchInput.tpl.js +1 -1
  32. package/dist/collection/components/ez-form-view/fieldbuilder/templates/TextInput.tpl.js +1 -1
  33. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +1 -5
  34. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +0 -3
  35. package/dist/collection/components/ez-grid/ez-grid.css +2 -25
  36. package/dist/collection/components/ez-grid/ez-grid.js +8 -65
  37. package/dist/collection/components/ez-icon/ez-icon.css +116 -118
  38. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +10 -2
  39. package/dist/collection/components/ez-popup/ez-popup.css +4 -2
  40. package/dist/collection/components/ez-search/ez-search.js +4 -3
  41. package/dist/collection/components/ez-split-panel/ez-split-panel.css +1 -0
  42. package/dist/collection/components/ez-split-panel/ez-split-panel.js +4 -5
  43. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.css +4 -15
  44. package/dist/collection/components/ez-split-panel/structure/item/ez-split-item.js +2 -27
  45. package/dist/collection/utils/CSSVarsUtils.js +0 -13
  46. package/dist/custom-elements/index.d.ts +0 -6
  47. package/dist/custom-elements/index.js +57 -290
  48. package/dist/esm/{CSSVarsUtils-71ce76be.js → CSSVarsUtils-a97cfa29.js} +0 -13
  49. package/dist/esm/ez-actions-button.entry.js +1 -1
  50. package/dist/esm/ez-card-item_3.entry.js +5 -6
  51. package/dist/esm/ez-combo-box.entry.js +6 -7
  52. package/dist/esm/ez-date-input.entry.js +1 -1
  53. package/dist/esm/ez-date-time-input.entry.js +1 -1
  54. package/dist/esm/ez-form-view.entry.js +14 -31
  55. package/dist/esm/ez-grid.entry.js +11 -73
  56. package/dist/esm/ez-icon.entry.js +1 -1
  57. package/dist/esm/ez-multi-selection-list.entry.js +10 -2
  58. package/dist/esm/ez-number-input.entry.js +1 -1
  59. package/dist/esm/ez-popup.entry.js +1 -1
  60. package/dist/esm/ez-search.entry.js +5 -4
  61. package/dist/esm/ez-split-item.entry.js +3 -12
  62. package/dist/esm/ez-split-panel.entry.js +5 -6
  63. package/dist/esm/ez-time-input.entry.js +1 -1
  64. package/dist/esm/ezui.js +1 -1
  65. package/dist/esm/index-baa5e267.js +4 -8
  66. package/dist/esm/loader.js +1 -1
  67. package/dist/ezui/ezui.esm.js +1 -1
  68. package/dist/ezui/{p-abc23d6f.entry.js → p-02c8831a.entry.js} +1 -1
  69. package/dist/ezui/p-13dbad96.entry.js +1 -0
  70. package/dist/ezui/{p-b567fa8c.entry.js → p-18e7870d.entry.js} +1 -1
  71. package/dist/ezui/{p-07cbffce.entry.js → p-300bf244.entry.js} +1 -1
  72. package/dist/ezui/{p-784fe207.entry.js → p-40f72de4.entry.js} +1 -1
  73. package/dist/ezui/p-428a05fe.entry.js +1 -0
  74. package/dist/ezui/{p-af95cd16.entry.js → p-50186acb.entry.js} +1 -1
  75. package/dist/ezui/p-60848ef6.entry.js +1 -0
  76. package/dist/ezui/{p-9f1e89c9.entry.js → p-672dd122.entry.js} +1 -1
  77. package/dist/ezui/{p-9e11fc7b.js → p-7eb3e1a5.js} +1 -1
  78. package/dist/ezui/{p-e85c48d7.entry.js → p-9cad9b6e.entry.js} +1 -1
  79. package/dist/ezui/{p-22a04c1d.entry.js → p-ab629244.entry.js} +2 -2
  80. package/dist/ezui/p-cd0499a2.entry.js +1 -0
  81. package/dist/ezui/p-e52cbcc7.entry.js +1 -0
  82. package/dist/ezui/p-e562d05e.entry.js +1 -0
  83. package/dist/ezui/{p-99ead599.entry.js → p-eb36f072.entry.js} +1 -1
  84. package/dist/types/components/ez-card-item/ez-card-item.d.ts +0 -4
  85. package/dist/types/components/ez-combo-box/ez-combo-box.d.ts +0 -1
  86. package/dist/types/components/ez-form-view/ez-form-view.d.ts +0 -3
  87. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +0 -1
  88. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +0 -1
  89. package/dist/types/components/ez-grid/ez-grid.d.ts +2 -15
  90. package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +1 -0
  91. package/dist/types/components/ez-split-panel/structure/item/ez-split-item.d.ts +0 -10
  92. package/dist/types/components.d.ts +0 -131
  93. package/dist/types/utils/CSSVarsUtils.d.ts +0 -1
  94. package/package.json +2 -3
  95. package/react/components.d.ts +0 -1
  96. package/react/components.js +0 -1
  97. package/react/components.js.map +1 -1
  98. package/dist/cjs/ez-split-button.cjs.entry.js +0 -147
  99. package/dist/collection/components/ez-split-button/ez-split-button.css +0 -229
  100. package/dist/collection/components/ez-split-button/ez-split-button.js +0 -436
  101. package/dist/collection/components/ez-split-button/test/dropdownItems.js +0 -42
  102. package/dist/esm/ez-split-button.entry.js +0 -143
  103. package/dist/ezui/p-2eb8f73b.entry.js +0 -1
  104. package/dist/ezui/p-7af81663.entry.js +0 -1
  105. package/dist/ezui/p-7bc07c31.entry.js +0 -1
  106. package/dist/ezui/p-801fd0f8.entry.js +0 -1
  107. package/dist/ezui/p-807560f0.entry.js +0 -1
  108. package/dist/ezui/p-b9fbf4e7.entry.js +0 -1
  109. package/dist/ezui/p-db77a984.entry.js +0 -1
  110. package/dist/types/components/ez-split-button/ez-split-button.d.ts +0 -89
  111. package/dist/types/components/ez-split-button/test/dropdownItems.d.ts +0 -2
@@ -1,9 +1,9 @@
1
- import { ElementIDUtils, JSUtils, OverflowWatcher, OVERFLOWED_CLASS_NAME, StringUtils, } from '@sankhyalabs/core';
1
+ import { ElementIDUtils, JSUtils, StringUtils, } from '@sankhyalabs/core';
2
2
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
3
- import { Host, h } from '@stencil/core';
4
- import { ApplicationUtils } from '../../utils';
3
+ import { h, Host } from '@stencil/core';
5
4
  import AgGridController from './controller/ag-grid/AgGridController';
6
5
  import { SelectionCounter } from './subcomponents/selection-counter';
6
+ import { ApplicationUtils } from '../../utils';
7
7
  import InMemoryFilterColumnDataSource from './utils/InMemoryFilterColumnDataSource';
8
8
  const windowInstace = window;
9
9
  const matches = (text, filter) => {
@@ -96,14 +96,6 @@ export class EzGrid {
96
96
  observeConfig(config) {
97
97
  this._gridController.setColumnsState(config.columns);
98
98
  }
99
- updatePaginationTooltip() {
100
- if (this._refPaginationLabelTooltip) {
101
- const tooltip = this._getPaginationTooltip();
102
- if (tooltip) {
103
- this._refPaginationLabelTooltip.setAttribute('data-tooltip', tooltip);
104
- }
105
- }
106
- }
107
99
  onSelectionChange(evt) {
108
100
  this._currentPageSelected = evt.detail.selectionHeaderStatus === true;
109
101
  if (this.dataUnit) {
@@ -259,10 +251,11 @@ export class EzGrid {
259
251
  }
260
252
  getPaginationControl() {
261
253
  if (this._paginationInfo) {
262
- const { currentPage, hasMore } = this._paginationInfo;
254
+ const { firstRecord, lastRecord, total, count, currentPage, hasMore } = this._paginationInfo;
263
255
  return [
264
- 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" }, h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, this._getActualPageLabel()), this._getRemainingPageLabel())),
265
- h("div", { id: "grid-pagination-tooltip", ref: (element) => (this._refPaginationLabelTooltip = element), class: "ez-flex ez-margin-right--medium" }, 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" })),
256
+ h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium" }, h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, `${firstRecord}-${lastRecord}`), total == undefined ? ` de ${count + 1} ou mais` : ` de ${total}`),
257
+ h("ez-button", { size: "small", iconName: "chevron-left", class: "ez-margin-right--medium", mode: "icon", enabled: currentPage > 0, onClick: () => this.previousPage(), label: "P\u00E1gina anterior" }),
258
+ h("ez-button", { size: "small", iconName: "chevron-right", class: "ez-margin-right--medium", mode: "icon", enabled: hasMore, onClick: () => this.nextPage(), label: "Pr\u00F3xima P\u00E1gina" }),
266
259
  ];
267
260
  }
268
261
  return null;
@@ -306,53 +299,6 @@ export class EzGrid {
306
299
  this.setEvents();
307
300
  this.componentReady.emit();
308
301
  this._gridController.configFilterColumn(this._filterColumn);
309
- this._initHeaderOverflowWatcher();
310
- }
311
- _getActualPageLabel() {
312
- const { firstRecord, lastRecord } = this._paginationInfo;
313
- return `${firstRecord}-${lastRecord}`;
314
- }
315
- _getRemainingPageLabel() {
316
- const { total, count } = this._paginationInfo;
317
- return `${total == undefined ? ` de ${count + 1} ou mais` : ` de ${total}`}`;
318
- }
319
- _getPaginationTooltip() {
320
- return this._getActualPageLabel() + this._getRemainingPageLabel();
321
- }
322
- _initHeaderOverflowWatcher() {
323
- this._headerOverflowWatcher = new OverflowWatcher(this.buildOverFlowWatcherParams());
324
- }
325
- buildOverFlowWatcherParams() {
326
- return {
327
- element: this._refPaginationControl,
328
- callback: this.handleOverFlow.bind(this),
329
- notOverFlow: ["grid-pagination-tooltip"]
330
- };
331
- }
332
- handleOverFlow(elementsOverflow) {
333
- if (!this._refPaginationLabel)
334
- return;
335
- if (elementsOverflow.length > 0) {
336
- this._hidePaginationDescription();
337
- }
338
- else {
339
- this._showPaginationDescription();
340
- }
341
- }
342
- _hidePaginationDescription() {
343
- this._refPaginationLabel.classList.add(OVERFLOWED_CLASS_NAME);
344
- this._refPaginationLabelTooltip.setAttribute('data-flow', 'bottom');
345
- this._refPaginationLabelTooltip.setAttribute('data-tooltip', this._getPaginationTooltip());
346
- }
347
- ;
348
- _showPaginationDescription() {
349
- this._refPaginationLabel.classList.remove(OVERFLOWED_CLASS_NAME);
350
- this._refPaginationLabelTooltip.removeAttribute('data-flow');
351
- this._refPaginationLabelTooltip.removeAttribute('data-tooltip');
352
- }
353
- disconnectedCallback() {
354
- var _a;
355
- (_a = this._headerOverflowWatcher) === null || _a === void 0 ? void 0 : _a.destroy();
356
302
  }
357
303
  componentWillRender() {
358
304
  this.configSelectionCounter();
@@ -376,7 +322,7 @@ export class EzGrid {
376
322
  }
377
323
  render() {
378
324
  var _a;
379
- return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: "grid__container ez-grid", ref: elem => (this._container = elem) }), h("div", { class: "ez-box ez-box--shadow ez-padding--medium 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" }, h("slot", { name: "leftButtons" })), h("div", { class: "grid-header__container grid-header__pagination", ref: ref => (this._refPaginationControl = ref) }, this.getPaginationControl()))), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
325
+ return (h(Host, { "no-header": this.hideHeader() }, h("div", { class: "grid__container ez-grid", ref: elem => (this._container = elem) }), h("div", { class: "ez-box ez-box--shadow ez-padding--medium 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" }, h("slot", { name: "leftButtons" })), h("div", { class: "grid-header__container", ref: ref => (this._refPaginationControl = ref) }, this.getPaginationControl()))), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter ez-elevation--4
380
326
  ${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
381
327
  ` }, 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" }))));
382
328
  }
@@ -941,9 +887,6 @@ export class EzGrid {
941
887
  return [{
942
888
  "propName": "config",
943
889
  "methodName": "observeConfig"
944
- }, {
945
- "propName": "_paginationInfo",
946
- "methodName": "updatePaginationTooltip"
947
890
  }];
948
891
  }
949
892
  static get listeners() {
@@ -54,7 +54,6 @@ svg {
54
54
  -moz-osx-font-smoothing: grayscale;
55
55
  }
56
56
 
57
-
58
57
  .ez-icon-2chevron-down:before { content: "\ea01"; }
59
58
  .ez-icon-2chevron-up:before { content: "\ea02"; }
60
59
  .ez-icon-acao:before { content: "\ea03"; }
@@ -92,123 +91,122 @@ svg {
92
91
  .ez-icon-circle:before { content: "\ea23"; }
93
92
  .ez-icon-cleaning:before { content: "\ea24"; }
94
93
  .ez-icon-clipboard:before { content: "\ea25"; }
95
- .ez-icon-clock-rotate-left:before { content: "\ea26"; }
96
- .ez-icon-close:before { content: "\ea27"; }
97
- .ez-icon-cobrar:before { content: "\ea28"; }
98
- .ez-icon-code:before { content: "\ea29"; }
99
- .ez-icon-configuration:before { content: "\ea2a"; }
100
- .ez-icon-content-cut:before { content: "\ea2b"; }
101
- .ez-icon-copy:before { content: "\ea2c"; }
102
- .ez-icon-credit_card:before { content: "\ea2d"; }
103
- .ez-icon-crop:before { content: "\ea2e"; }
104
- .ez-icon-custom:before { content: "\ea2f"; }
105
- .ez-icon-delete-file:before { content: "\ea30"; }
106
- .ez-icon-delete:before { content: "\ea31"; }
107
- .ez-icon-description:before { content: "\ea32"; }
108
- .ez-icon-dividir:before { content: "\ea33"; }
109
- .ez-icon-docx:before { content: "\ea34"; }
110
- .ez-icon-dot-notification:before { content: "\ea35"; }
111
- .ez-icon-dots-horizontal:before { content: "\ea36"; }
112
- .ez-icon-dots-vertical:before { content: "\ea37"; }
113
- .ez-icon-drag-indicator:before { content: "\ea38"; }
114
- .ez-icon-dual-chevron-down:before { content: "\ea39"; }
115
- .ez-icon-dual-chevron-left:before { content: "\ea3a"; }
116
- .ez-icon-dual-chevron-right:before { content: "\ea3b"; }
117
- .ez-icon-dual-chevron-up:before { content: "\ea3c"; }
118
- .ez-icon-edit-file:before { content: "\ea3d"; }
119
- .ez-icon-edit-table:before { content: "\ea3e"; }
120
- .ez-icon-edit-time:before { content: "\ea3f"; }
121
- .ez-icon-edit-value:before { content: "\ea40"; }
122
- .ez-icon-edit:before { content: "\ea41"; }
123
- .ez-icon-email:before { content: "\ea42"; }
124
- .ez-icon-estorno:before { content: "\ea43"; }
125
- .ez-icon-exe:before { content: "\ea44"; }
126
- .ez-icon-expand:before { content: "\ea45"; }
127
- .ez-icon-expandir_card:before { content: "\ea46"; }
128
- .ez-icon-extrato:before { content: "\ea47"; }
129
- .ez-icon-eye-off:before { content: "\ea48"; }
130
- .ez-icon-eye:before { content: "\ea49"; }
131
- .ez-icon-favorite:before { content: "\ea4a"; }
132
- .ez-icon-figma:before { content: "\ea4b"; }
133
- .ez-icon-file-download:before { content: "\ea4c"; }
134
- .ez-icon-file-upload:before { content: "\ea4d"; }
135
- .ez-icon-filter:before { content: "\ea4e"; }
136
- .ez-icon-find-file:before { content: "\ea4f"; }
137
- .ez-icon-find-page:before { content: "\ea50"; }
138
- .ez-icon-format-color-fill:before { content: "\ea51"; }
139
- .ez-icon-generic:before { content: "\ea52"; }
140
- .ez-icon-gif:before { content: "\ea53"; }
141
- .ez-icon-graph_bar:before { content: "\ea54"; }
142
- .ez-icon-handshake:before { content: "\ea55"; }
143
- .ez-icon-help-inverted:before { content: "\ea56"; }
144
- .ez-icon-help:before { content: "\ea57"; }
145
- .ez-icon-hide_menu:before { content: "\ea58"; }
146
- .ez-icon-home:before { content: "\ea59"; }
147
- .ez-icon-icons104:before { content: "\ea5a"; }
148
- .ez-icon-language:before { content: "\ea5b"; }
149
- .ez-icon-launch:before { content: "\ea5c"; }
150
- .ez-icon-lightbulb:before { content: "\ea5d"; }
151
- .ez-icon-list:before { content: "\ea5e"; }
152
- .ez-icon-location:before { content: "\ea5f"; }
153
- .ez-icon-lock-outline:before { content: "\ea60"; }
154
- .ez-icon-lock:before { content: "\ea61"; }
155
- .ez-icon-menu:before { content: "\ea62"; }
156
- .ez-icon-mid:before { content: "\ea63"; }
157
- .ez-icon-minus:before { content: "\ea64"; }
158
- .ez-icon-money-off:before { content: "\ea65"; }
159
- .ez-icon-money:before { content: "\ea66"; }
160
- .ez-icon-more:before { content: "\ea67"; }
161
- .ez-icon-mp3:before { content: "\ea68"; }
162
- .ez-icon-mp4:before { content: "\ea69"; }
163
- .ez-icon-multiple-files:before { content: "\ea6a"; }
164
- .ez-icon-north-west:before { content: "\ea6b"; }
165
- .ez-icon-number:before { content: "\ea6c"; }
166
- .ez-icon-ordem-ascendente:before { content: "\ea6d"; }
167
- .ez-icon-ordem-descendente:before { content: "\ea6e"; }
168
- .ez-icon-parcelar:before { content: "\ea6f"; }
169
- .ez-icon-pause:before { content: "\ea70"; }
170
- .ez-icon-payments:before { content: "\ea71"; }
171
- .ez-icon-pdf:before { content: "\ea72"; }
172
- .ez-icon-play:before { content: "\ea73"; }
173
- .ez-icon-plus:before { content: "\ea74"; }
174
- .ez-icon-png:before { content: "\ea75"; }
175
- .ez-icon-power:before { content: "\ea76"; }
176
- .ez-icon-pptx:before { content: "\ea77"; }
177
- .ez-icon-preview:before { content: "\ea78"; }
178
- .ez-icon-print:before { content: "\ea79"; }
179
- .ez-icon-push-pin:before { content: "\ea7a"; }
180
- .ez-icon-rateio:before { content: "\ea7b"; }
181
- .ez-icon-receipt:before { content: "\ea7c"; }
182
- .ez-icon-recolher_card:before { content: "\ea7d"; }
183
- .ez-icon-restore:before { content: "\ea7e"; }
184
- .ez-icon-return:before { content: "\ea7f"; }
185
- .ez-icon-sankhya-place:before { content: "\ea80"; }
186
- .ez-icon-save:before { content: "\ea81"; }
187
- .ez-icon-search:before { content: "\ea82"; }
188
- .ez-icon-settings-inverted:before { content: "\ea83"; }
189
- .ez-icon-settings:before { content: "\ea84"; }
190
- .ez-icon-share:before { content: "\ea85"; }
191
- .ez-icon-shield:before { content: "\ea86"; }
192
- .ez-icon-show_menu:before { content: "\ea87"; }
193
- .ez-icon-south-east:before { content: "\ea88"; }
194
- .ez-icon-sync:before { content: "\ea89"; }
195
- .ez-icon-table:before { content: "\ea8a"; }
196
- .ez-icon-tag_code:before { content: "\ea8b"; }
197
- .ez-icon-text:before { content: "\ea8c"; }
198
- .ez-icon-timeline:before { content: "\ea8d"; }
199
- .ez-icon-timer-outline:before { content: "\ea8e"; }
200
- .ez-icon-trending-up:before { content: "\ea8f"; }
201
- .ez-icon-tune:before { content: "\ea90"; }
202
- .ez-icon-txt:before { content: "\ea91"; }
203
- .ez-icon-un-pin:before { content: "\ea92"; }
204
- .ez-icon-unfold_less:before { content: "\ea93"; }
205
- .ez-icon-unfold_more:before { content: "\ea94"; }
206
- .ez-icon-user-circle:before { content: "\ea95"; }
207
- .ez-icon-warning-outline:before { content: "\ea96"; }
208
- .ez-icon-warning_triangle:before { content: "\ea97"; }
209
- .ez-icon-whatshot:before { content: "\ea98"; }
210
- .ez-icon-xlsx:before { content: "\ea99"; }
211
- .ez-icon-zip:before { content: "\ea9a"; }
94
+ .ez-icon-close:before { content: "\ea26"; }
95
+ .ez-icon-cobrar:before { content: "\ea27"; }
96
+ .ez-icon-code:before { content: "\ea28"; }
97
+ .ez-icon-configuration:before { content: "\ea29"; }
98
+ .ez-icon-content-cut:before { content: "\ea2a"; }
99
+ .ez-icon-copy:before { content: "\ea2b"; }
100
+ .ez-icon-credit_card:before { content: "\ea2c"; }
101
+ .ez-icon-crop:before { content: "\ea2d"; }
102
+ .ez-icon-custom:before { content: "\ea2e"; }
103
+ .ez-icon-delete-file:before { content: "\ea2f"; }
104
+ .ez-icon-delete:before { content: "\ea30"; }
105
+ .ez-icon-description:before { content: "\ea31"; }
106
+ .ez-icon-dividir:before { content: "\ea32"; }
107
+ .ez-icon-docx:before { content: "\ea33"; }
108
+ .ez-icon-dot-notification:before { content: "\ea34"; }
109
+ .ez-icon-dots-horizontal:before { content: "\ea35"; }
110
+ .ez-icon-dots-vertical:before { content: "\ea36"; }
111
+ .ez-icon-drag-indicator:before { content: "\ea37"; }
112
+ .ez-icon-dual-chevron-down:before { content: "\ea38"; }
113
+ .ez-icon-dual-chevron-left:before { content: "\ea39"; }
114
+ .ez-icon-dual-chevron-right:before { content: "\ea3a"; }
115
+ .ez-icon-dual-chevron-up:before { content: "\ea3b"; }
116
+ .ez-icon-edit-file:before { content: "\ea3c"; }
117
+ .ez-icon-edit-table:before { content: "\ea3d"; }
118
+ .ez-icon-edit-time:before { content: "\ea3e"; }
119
+ .ez-icon-edit-value:before { content: "\ea3f"; }
120
+ .ez-icon-edit:before { content: "\ea40"; }
121
+ .ez-icon-email:before { content: "\ea41"; }
122
+ .ez-icon-estorno:before { content: "\ea42"; }
123
+ .ez-icon-exe:before { content: "\ea43"; }
124
+ .ez-icon-expand:before { content: "\ea44"; }
125
+ .ez-icon-expandir_card:before { content: "\ea45"; }
126
+ .ez-icon-extrato:before { content: "\ea46"; }
127
+ .ez-icon-eye-off:before { content: "\ea47"; }
128
+ .ez-icon-eye:before { content: "\ea48"; }
129
+ .ez-icon-favorite:before { content: "\ea49"; }
130
+ .ez-icon-figma:before { content: "\ea4a"; }
131
+ .ez-icon-file-download:before { content: "\ea4b"; }
132
+ .ez-icon-file-upload:before { content: "\ea4c"; }
133
+ .ez-icon-filter:before { content: "\ea4d"; }
134
+ .ez-icon-find-file:before { content: "\ea4e"; }
135
+ .ez-icon-find-page:before { content: "\ea4f"; }
136
+ .ez-icon-format-color-fill:before { content: "\ea50"; }
137
+ .ez-icon-generic:before { content: "\ea51"; }
138
+ .ez-icon-gif:before { content: "\ea52"; }
139
+ .ez-icon-graph_bar:before { content: "\ea53"; }
140
+ .ez-icon-handshake:before { content: "\ea54"; }
141
+ .ez-icon-help-inverted:before { content: "\ea55"; }
142
+ .ez-icon-help:before { content: "\ea56"; }
143
+ .ez-icon-hide_menu:before { content: "\ea57"; }
144
+ .ez-icon-home:before { content: "\ea58"; }
145
+ .ez-icon-icons104:before { content: "\ea59"; }
146
+ .ez-icon-language:before { content: "\ea5a"; }
147
+ .ez-icon-launch:before { content: "\ea5b"; }
148
+ .ez-icon-lightbulb:before { content: "\ea5c"; }
149
+ .ez-icon-list:before { content: "\ea5d"; }
150
+ .ez-icon-location:before { content: "\ea5e"; }
151
+ .ez-icon-lock-outline:before { content: "\ea5f"; }
152
+ .ez-icon-lock:before { content: "\ea60"; }
153
+ .ez-icon-menu:before { content: "\ea61"; }
154
+ .ez-icon-mid:before { content: "\ea62"; }
155
+ .ez-icon-minus:before { content: "\ea63"; }
156
+ .ez-icon-money-off:before { content: "\ea64"; }
157
+ .ez-icon-money:before { content: "\ea65"; }
158
+ .ez-icon-more:before { content: "\ea66"; }
159
+ .ez-icon-mp3:before { content: "\ea67"; }
160
+ .ez-icon-mp4:before { content: "\ea68"; }
161
+ .ez-icon-multiple-files:before { content: "\ea69"; }
162
+ .ez-icon-north-west:before { content: "\ea6a"; }
163
+ .ez-icon-number:before { content: "\ea6b"; }
164
+ .ez-icon-ordem-ascendente:before { content: "\ea6c"; }
165
+ .ez-icon-ordem-descendente:before { content: "\ea6d"; }
166
+ .ez-icon-parcelar:before { content: "\ea6e"; }
167
+ .ez-icon-pause:before { content: "\ea6f"; }
168
+ .ez-icon-payments:before { content: "\ea70"; }
169
+ .ez-icon-pdf:before { content: "\ea71"; }
170
+ .ez-icon-play:before { content: "\ea72"; }
171
+ .ez-icon-plus:before { content: "\ea73"; }
172
+ .ez-icon-png:before { content: "\ea74"; }
173
+ .ez-icon-power:before { content: "\ea75"; }
174
+ .ez-icon-pptx:before { content: "\ea76"; }
175
+ .ez-icon-preview:before { content: "\ea77"; }
176
+ .ez-icon-print:before { content: "\ea78"; }
177
+ .ez-icon-push-pin:before { content: "\ea79"; }
178
+ .ez-icon-rateio:before { content: "\ea7a"; }
179
+ .ez-icon-receipt:before { content: "\ea7b"; }
180
+ .ez-icon-recolher_card:before { content: "\ea7c"; }
181
+ .ez-icon-restore:before { content: "\ea7d"; }
182
+ .ez-icon-return:before { content: "\ea7e"; }
183
+ .ez-icon-sankhya-place:before { content: "\ea7f"; }
184
+ .ez-icon-save:before { content: "\ea80"; }
185
+ .ez-icon-search:before { content: "\ea81"; }
186
+ .ez-icon-settings-inverted:before { content: "\ea82"; }
187
+ .ez-icon-settings:before { content: "\ea83"; }
188
+ .ez-icon-share:before { content: "\ea84"; }
189
+ .ez-icon-shield:before { content: "\ea85"; }
190
+ .ez-icon-show_menu:before { content: "\ea86"; }
191
+ .ez-icon-south-east:before { content: "\ea87"; }
192
+ .ez-icon-sync:before { content: "\ea88"; }
193
+ .ez-icon-table:before { content: "\ea89"; }
194
+ .ez-icon-tag_code:before { content: "\ea8a"; }
195
+ .ez-icon-text:before { content: "\ea8b"; }
196
+ .ez-icon-timeline:before { content: "\ea8c"; }
197
+ .ez-icon-timer-outline:before { content: "\ea8d"; }
198
+ .ez-icon-trending-up:before { content: "\ea8e"; }
199
+ .ez-icon-tune:before { content: "\ea8f"; }
200
+ .ez-icon-txt:before { content: "\ea90"; }
201
+ .ez-icon-un-pin:before { content: "\ea91"; }
202
+ .ez-icon-unfold_less:before { content: "\ea92"; }
203
+ .ez-icon-unfold_more:before { content: "\ea93"; }
204
+ .ez-icon-user-circle:before { content: "\ea94"; }
205
+ .ez-icon-warning-outline:before { content: "\ea95"; }
206
+ .ez-icon-warning_triangle:before { content: "\ea96"; }
207
+ .ez-icon-whatshot:before { content: "\ea97"; }
208
+ .ez-icon-xlsx:before { content: "\ea98"; }
209
+ .ez-icon-zip:before { content: "\ea99"; }
212
210
  /*
213
211
  END CSS GENERATED BY EZ-DESIGN ICONS
214
212
  */
@@ -137,8 +137,16 @@ export class EzMuiltiSelectionList {
137
137
  }
138
138
  handleChangeSelectedItem(event) {
139
139
  const { detail: itemCheckSelected } = event;
140
- const itemSelected = this.filteredOptions.find(item => item.label === itemCheckSelected.label);
141
- itemSelected.check = itemCheckSelected.check;
140
+ this.filteredOptions = this.filteredOptions.map(item => {
141
+ if (item.label === itemCheckSelected.label) {
142
+ return Object.assign(Object.assign({}, item), { check: itemCheckSelected.check });
143
+ }
144
+ return item;
145
+ });
146
+ this.clearInputs();
147
+ }
148
+ clearInputs() {
149
+ this.filterInput ? (this.filterInput.value = '') : (this.searchInput.value = '');
142
150
  }
143
151
  buildViewList(hasDelete) {
144
152
  return (h(Fragment, null, this.displayOptionToCheckAllItems && (h("ez-check", { ref: (element) => (this.checkInput = element), label: "Selecionar todos", class: "multi-selection__select-all", onEzChange: this.handleChangeSelectAllItems.bind(this) })), h("ez-list", { class: "multi-selection__list", dataSource: this.displayOptions, listMode: "check", hoverFeedback: true, onEzCheckChange: this.handleChangeSelectedItem.bind(this), itemSlotBuilder: hasDelete ? this.buildDeleteIconSlot.bind(this) : null })));
@@ -77,14 +77,16 @@
77
77
 
78
78
  .popup__content {
79
79
  box-sizing: border-box;
80
- height: 100%;
80
+ max-height: 100%;
81
81
  width: 100%;
82
+ display: grid;
83
+ grid-template-rows: auto 1fr;
82
84
  }
83
85
 
84
86
  .popup__expandable-content {
85
87
  box-sizing: border-box;
86
88
  width: 100%;
87
- height: calc(100% - 44px);
89
+ height: 100%;
88
90
  }
89
91
 
90
92
  .popup__header {
@@ -187,9 +187,10 @@ export class EzSearch {
187
187
  if (currentValue == undefined) {
188
188
  return;
189
189
  }
190
- let text = (!this.showSelectedValue || currentValue.value == undefined) ? currentValue.label : `${currentValue.value} - ${currentValue.label}`;
191
- text = text.replace(new RegExp(this._startHighlightTag, 'g'), '').replace(new RegExp(this._endHighlightTag, 'g'), '');
192
- return text;
190
+ if (!this.showSelectedValue || currentValue.value == undefined) {
191
+ return currentValue.label;
192
+ }
193
+ return currentValue.label ? `${currentValue.value} - ${currentValue.label}` : currentValue.value;
193
194
  }
194
195
  getText() {
195
196
  const currentValue = this.getSelectedOption(this.value);
@@ -1,4 +1,5 @@
1
1
  :host {
2
+ height: 100%;
2
3
  }
3
4
 
4
5
  .ez-split-gutter {
@@ -71,17 +71,16 @@ export class SplitPanel {
71
71
  }
72
72
  getGridTemplate() {
73
73
  let template = '';
74
- this._items.forEach((col, index) => {
75
- const size = col.size || '1fr';
74
+ this._items.forEach((_col, index) => {
76
75
  if (index === this._items.length - 1) {
77
- template += ` ${size}`;
76
+ template += ` 1fr`;
78
77
  return;
79
78
  }
80
79
  if (index === 0) {
81
- template += `${size} 5px`;
80
+ template += `1fr 5px`;
82
81
  return;
83
82
  }
84
- template += ` ${size} 5px`;
83
+ template += ` 1fr 5px`;
85
84
  });
86
85
  return template;
87
86
  }
@@ -1,23 +1,12 @@
1
- ez-split-item {
2
- /*@doc Define altura mínima da snk-grid */
3
- --snk-grid-min-height: 0;
4
- /*@doc Define altura mínima da grid */
5
- --ez-grid--min-height: 0;
6
- }
7
-
8
1
  .box_split-item {
9
2
  background-color: var(--background--xlight);
3
+ padding: var(--space--nano);
10
4
  width: 100%;
11
5
  height: 100%;
12
6
  border-radius: var(--border--radius-medium);
13
7
  box-shadow: var(--shadow);
14
- flex-direction: column;
15
- overflow: hidden;
16
8
  display: flex;
17
- padding: var(--space--nano);
18
- }
19
-
20
- .box_split-item > .ez-split-item--content {
9
+ flex-direction: column;
21
10
  overflow: auto;
22
11
  }
23
12
 
@@ -43,5 +32,5 @@ ez-split-item {
43
32
 
44
33
  .ez-split-item--content {
45
34
  display: block;
46
- height: 100%;
47
- }
35
+ height: -webkit-fill-available;
36
+ }
@@ -1,11 +1,9 @@
1
- import { Host, h } from '@stencil/core';
2
- import { CSSVarsUtils } from '../../../../utils';
1
+ import { h } from '@stencil/core';
3
2
  export class SplitItem {
4
3
  constructor() {
5
4
  this.label = undefined;
6
5
  this.enableExpand = true;
7
6
  this._expanded = false;
8
- this.size = undefined;
9
7
  }
10
8
  /**
11
9
  * Alterna a visibilidade do painel.
@@ -13,11 +11,8 @@ export class SplitItem {
13
11
  toggleExpandItem() {
14
12
  this._expanded = !this._expanded;
15
13
  }
16
- componentDidLoad() {
17
- CSSVarsUtils.applyVarsGrid(this._element, this._slot.children[0]);
18
- }
19
14
  render() {
20
- return (h(Host, { class: `box_split-item ${this._expanded ? 'expanded__item' : ''}`, ref: el => (this._element = el) }, h("div", { class: "ez-split-item--header" }, h("div", null, this.label && (h("div", { class: "ez-margin--small" }, h("h3", { class: " ez-title ez-title--small" }, this.label)))), h("div", { class: "ez-split-item--header-buttons" }, this.enableExpand && (h("ez-button", { size: "medium", mode: "icon", iconName: "expand", class: 'ez-button--tertiary', onClick: () => this.toggleExpandItem(), title: this._expanded ? 'Resumir' : 'Expandir' })), h("slot", { name: "rightButtons" }))), h("div", { class: "ez-split-item--content", ref: el => (this._slot = el) }, h("slot", null))));
15
+ return (h("div", { class: `box_split-item ${this._expanded ? 'expanded__item' : ''}`, ref: el => (this._element = el) }, h("div", { class: "ez-split-item--header" }, h("div", null, this.label && (h("div", { class: "ez-margin--small" }, h("h3", { class: " ez-title ez-title--small" }, this.label)))), h("div", { class: "ez-split-item--header-buttons" }, this.enableExpand && (h("ez-button", { size: "medium", mode: "icon", iconName: "expand", class: 'ez-button--tertiary', onClick: () => this.toggleExpandItem(), title: this._expanded ? 'Resumir' : 'Expandir' })), h("slot", { name: "rightButtons" }))), h("div", { class: "ez-split-item--content" }, h("slot", null))));
21
16
  }
22
17
  static get is() { return "ez-split-item"; }
23
18
  static get originalStyleUrls() {
@@ -66,26 +61,6 @@ export class SplitItem {
66
61
  "attribute": "enable-expand",
67
62
  "reflect": true,
68
63
  "defaultValue": "true"
69
- },
70
- "size": {
71
- "type": "string",
72
- "mutable": false,
73
- "complexType": {
74
- "original": "string",
75
- "resolved": "string",
76
- "references": {}
77
- },
78
- "required": false,
79
- "optional": true,
80
- "docs": {
81
- "tags": [{
82
- "name": "values",
83
- "text": "'%', 'fr'"
84
- }],
85
- "text": "Define o tamanho inicial do painel."
86
- },
87
- "attribute": "size",
88
- "reflect": false
89
64
  }
90
65
  };
91
66
  }
@@ -64,19 +64,6 @@ export default class CSSVarsUtils {
64
64
  });
65
65
  }
66
66
  }
67
- static applyVarsGrid(host, child) {
68
- if (child) {
69
- [
70
- "--ez-grid--min-height",
71
- "--snk-grid-min-height",
72
- ].forEach(prop => {
73
- const propValue = getComputedStyle(host).getPropertyValue(prop);
74
- if (propValue !== null && propValue !== undefined) {
75
- child.style.setProperty(prop, propValue);
76
- }
77
- });
78
- }
79
- }
80
67
  static applyIfExists(host, element, varName) {
81
68
  const prop = getComputedStyle(host).getPropertyValue(varName);
82
69
  if (prop) {
@@ -224,12 +224,6 @@ export const EzSkeleton: {
224
224
  new (): EzSkeleton;
225
225
  };
226
226
 
227
- interface EzSplitButton extends Components.EzSplitButton, HTMLElement {}
228
- export const EzSplitButton: {
229
- prototype: EzSplitButton;
230
- new (): EzSplitButton;
231
- };
232
-
233
227
  interface EzSplitItem extends Components.EzSplitItem, HTMLElement {}
234
228
  export const EzSplitItem: {
235
229
  prototype: EzSplitItem;