@sankhyalabs/ezui 5.21.0-dev.2 → 5.21.0-dev.20

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 (190) hide show
  1. package/README.md +1 -1
  2. package/dist/cjs/ICustomRender-6fafffce.js +13 -0
  3. package/dist/cjs/ez-actions-button.cjs.entry.js +1 -0
  4. package/dist/cjs/ez-alert-list.cjs.entry.js +6 -4
  5. package/dist/cjs/ez-button.cjs.entry.js +2 -2
  6. package/dist/cjs/ez-chart.cjs.entry.js +433 -0
  7. package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -0
  8. package/dist/cjs/ez-combo-box.cjs.entry.js +1 -0
  9. package/dist/cjs/{ez-text-edit.cjs.entry.js → ez-custom-form-input_2.cjs.entry.js} +94 -0
  10. package/dist/cjs/ez-form-view.cjs.entry.js +33 -3
  11. package/dist/cjs/ez-form.cjs.entry.js +77 -2
  12. package/dist/cjs/ez-grid.cjs.entry.js +332 -32
  13. package/dist/cjs/ez-list.cjs.entry.js +1 -1
  14. package/dist/cjs/ez-modal-container.cjs.entry.js +15 -4
  15. package/dist/cjs/ez-modal.cjs.entry.js +7 -8
  16. package/dist/cjs/ez-number-input.cjs.entry.js +34 -28
  17. package/dist/cjs/ez-popup.cjs.entry.js +14 -8
  18. package/dist/cjs/ez-search.cjs.entry.js +6 -2
  19. package/dist/cjs/ez-split-item.cjs.entry.js +1 -0
  20. package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
  21. package/dist/cjs/ezui.cjs.js +1 -1
  22. package/dist/cjs/index-a7b0c73d.js +8 -4
  23. package/dist/cjs/loader.cjs.js +1 -1
  24. package/dist/collection/collection-manifest.json +2 -0
  25. package/dist/collection/components/ez-alert-list/ez-alert-list.js +6 -4
  26. package/dist/collection/components/ez-button/ez-button.css +7 -0
  27. package/dist/collection/components/ez-button/ez-button.js +1 -1
  28. package/dist/collection/components/ez-chart/components/BarChart.js +27 -0
  29. package/dist/collection/components/ez-chart/components/ColumnChart.js +27 -0
  30. package/dist/collection/components/ez-chart/components/DonutChart.js +42 -0
  31. package/dist/collection/components/ez-chart/components/LineChart.js +27 -0
  32. package/dist/collection/components/ez-chart/components/PieChart.js +45 -0
  33. package/dist/collection/components/ez-chart/components/index.js +5 -0
  34. package/dist/collection/components/ez-chart/ez-chart.css +5 -0
  35. package/dist/collection/components/ez-chart/ez-chart.js +284 -0
  36. package/dist/collection/components/ez-chart/interfaces/ChartAxis.js +1 -0
  37. package/dist/collection/components/ez-chart/interfaces/ChartContext.js +14 -0
  38. package/dist/collection/components/ez-chart/interfaces/ChartOptions.js +1 -0
  39. package/dist/collection/components/ez-chart/interfaces/ChartSerie.js +1 -0
  40. package/dist/collection/components/ez-chart/interfaces/ChartStrategies.js +1 -0
  41. package/dist/collection/components/ez-chart/interfaces/ChartType.js +8 -0
  42. package/dist/collection/components/ez-chart/interfaces/index.js +5 -0
  43. package/dist/collection/components/ez-chart/test/mock-chart.js +137 -0
  44. package/dist/collection/components/ez-chart/types/BaseHighChartsRender.js +146 -0
  45. package/dist/collection/components/ez-form/ez-form.js +130 -4
  46. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +253 -0
  47. package/dist/collection/components/ez-form-view/ez-form-view.js +89 -1
  48. package/dist/collection/components/ez-form-view/fieldbuilder/templates/NumberInput.tpl.js +3 -2
  49. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +56 -5
  50. package/dist/collection/components/ez-grid/controller/ag-grid/DataSource.js +1 -0
  51. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +35 -1
  52. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +58 -0
  53. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.js +40 -0
  54. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.js +11 -0
  55. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.js +11 -0
  56. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +6 -3
  57. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellRender.js +40 -0
  58. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellRender.js +1 -0
  59. package/dist/collection/components/ez-grid/controller/ag-grid/editor/templates/NumberInput.tpl.js +3 -2
  60. package/dist/collection/components/ez-grid/ez-grid.css +1 -0
  61. package/dist/collection/components/ez-grid/ez-grid.js +233 -11
  62. package/dist/collection/components/ez-grid/interfaces/ICustomFormatter.js +1 -0
  63. package/dist/collection/components/ez-grid/interfaces/index.js +1 -0
  64. package/dist/collection/components/ez-grid/subcomponents/selection-counter.js +3 -11
  65. package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js +22 -0
  66. package/dist/collection/components/ez-grid/test/resources/gridDataUnit.js +19 -0
  67. package/dist/collection/components/ez-list/ez-list.css +6 -2
  68. package/dist/collection/components/ez-modal/ez-modal.js +22 -9
  69. package/dist/collection/components/ez-modal-container/ez-modal-container.css +4 -0
  70. package/dist/collection/components/ez-modal-container/ez-modal-container.js +23 -3
  71. package/dist/collection/components/ez-number-input/ez-number-input.js +42 -27
  72. package/dist/collection/components/ez-popup/ez-popup.js +14 -8
  73. package/dist/collection/components/ez-search/ez-search.js +5 -2
  74. package/dist/collection/components/ez-split-panel/ez-split-panel.css +1 -0
  75. package/dist/collection/utils/customEditor/interfaces/ICustomEditor.js +5 -0
  76. package/dist/collection/utils/customEditor/interfaces/ICustomEditorInfo.js +1 -0
  77. package/dist/collection/utils/customRender/interfaces/ICustomRender.js +5 -0
  78. package/dist/collection/utils/customRender/interfaces/ICustomRenderInfo.js +1 -0
  79. package/dist/collection/utils/form/DataBinder.js +26 -0
  80. package/dist/collection/utils/form/test/DataBinder.test.js +41 -4
  81. package/dist/collection/utils/form/test/resources/metadataTest.js +15 -0
  82. package/dist/collection/utils/index.js +2 -0
  83. package/dist/custom-elements/index.d.ts +12 -0
  84. package/dist/custom-elements/index.js +1070 -102
  85. package/dist/esm/ICustomRender-875b5a40.js +13 -0
  86. package/dist/esm/ez-actions-button.entry.js +1 -0
  87. package/dist/esm/ez-alert-list.entry.js +6 -4
  88. package/dist/esm/ez-button.entry.js +2 -2
  89. package/dist/esm/ez-chart.entry.js +429 -0
  90. package/dist/esm/ez-collapsible-box.entry.js +1 -0
  91. package/dist/esm/ez-combo-box.entry.js +1 -0
  92. package/dist/esm/{ez-text-edit.entry.js → ez-custom-form-input_2.entry.js} +96 -3
  93. package/dist/esm/ez-form-view.entry.js +33 -3
  94. package/dist/esm/ez-form.entry.js +78 -3
  95. package/dist/esm/ez-grid.entry.js +332 -32
  96. package/dist/esm/ez-list.entry.js +1 -1
  97. package/dist/esm/ez-modal-container.entry.js +16 -5
  98. package/dist/esm/ez-modal.entry.js +9 -10
  99. package/dist/esm/ez-number-input.entry.js +34 -28
  100. package/dist/esm/ez-popup.entry.js +15 -9
  101. package/dist/esm/ez-search.entry.js +6 -2
  102. package/dist/esm/ez-split-item.entry.js +1 -0
  103. package/dist/esm/ez-split-panel.entry.js +1 -1
  104. package/dist/esm/ezui.js +1 -1
  105. package/dist/esm/index-baa5e267.js +8 -4
  106. package/dist/esm/loader.js +1 -1
  107. package/dist/ezui/ezui.esm.js +1 -1
  108. package/dist/ezui/{p-b44741b0.entry.js → p-065e735d.entry.js} +2 -2
  109. package/dist/ezui/p-09de35a2.entry.js +1 -0
  110. package/dist/ezui/{p-af2ecb1b.entry.js → p-1285c902.entry.js} +1 -1
  111. package/dist/ezui/p-13d2fe2d.entry.js +1 -0
  112. package/dist/ezui/p-1a35324b.entry.js +1 -0
  113. package/dist/ezui/p-1ee2479b.entry.js +1 -0
  114. package/dist/ezui/p-30775e7f.entry.js +1 -0
  115. package/dist/ezui/p-3b56d2ef.entry.js +1 -0
  116. package/dist/ezui/p-4607fb89.js +1 -0
  117. package/dist/ezui/{p-8defa6d3.entry.js → p-786559c5.entry.js} +1 -1
  118. package/dist/ezui/p-7922142b.entry.js +1 -0
  119. package/dist/ezui/p-84e439b9.entry.js +1 -0
  120. package/dist/ezui/p-922ac38b.entry.js +1 -0
  121. package/dist/ezui/p-93a19a8c.entry.js +1 -0
  122. package/dist/ezui/p-bcb53f27.entry.js +1 -0
  123. package/dist/ezui/p-c942e4a7.entry.js +1 -0
  124. package/dist/ezui/p-d9401ea0.entry.js +1 -0
  125. package/dist/ezui/p-f3c526cc.entry.js +1 -0
  126. package/dist/ezui/p-ffef392d.entry.js +1 -0
  127. package/dist/types/components/ez-alert-list/ez-alert-list.d.ts +2 -2
  128. package/dist/types/components/ez-chart/components/BarChart.d.ts +9 -0
  129. package/dist/types/components/ez-chart/components/ColumnChart.d.ts +9 -0
  130. package/dist/types/components/ez-chart/components/DonutChart.d.ts +9 -0
  131. package/dist/types/components/ez-chart/components/LineChart.d.ts +9 -0
  132. package/dist/types/components/ez-chart/components/PieChart.d.ts +9 -0
  133. package/dist/types/components/ez-chart/components/index.d.ts +5 -0
  134. package/dist/types/components/ez-chart/ez-chart.d.ts +58 -0
  135. package/dist/types/components/ez-chart/interfaces/ChartAxis.d.ts +7 -0
  136. package/dist/types/components/ez-chart/interfaces/ChartContext.d.ts +11 -0
  137. package/dist/types/components/ez-chart/interfaces/ChartOptions.d.ts +10 -0
  138. package/dist/types/components/ez-chart/interfaces/ChartSerie.d.ts +20 -0
  139. package/dist/types/components/ez-chart/interfaces/ChartStrategies.d.ts +7 -0
  140. package/dist/types/components/ez-chart/interfaces/ChartType.d.ts +7 -0
  141. package/dist/types/components/ez-chart/interfaces/index.d.ts +5 -0
  142. package/dist/types/components/ez-chart/types/BaseHighChartsRender.d.ts +15 -0
  143. package/dist/types/components/ez-form/ez-form.d.ts +20 -1
  144. package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +43 -0
  145. package/dist/types/components/ez-form-view/ez-form-view.d.ts +11 -0
  146. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +30 -0
  147. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +13 -0
  148. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +7 -1
  149. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +19 -0
  150. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +14 -0
  151. package/dist/types/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.d.ts +11 -0
  152. package/dist/types/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.d.ts +11 -0
  153. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +3 -0
  154. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +15 -0
  155. package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellRender.d.ts +10 -0
  156. package/dist/types/components/ez-grid/ez-grid.d.ts +34 -1
  157. package/dist/types/components/ez-grid/interfaces/ICustomFormatter.d.ts +5 -0
  158. package/dist/types/components/ez-grid/interfaces/index.d.ts +1 -0
  159. package/dist/types/components/ez-grid/subcomponents/utils/selectionCounterUtils.d.ts +4 -0
  160. package/dist/types/components/ez-grid/test/resources/gridDataUnit.d.ts +2 -0
  161. package/dist/types/components/ez-modal/ez-modal.d.ts +9 -1
  162. package/dist/types/components/ez-modal-container/ez-modal-container.d.ts +3 -0
  163. package/dist/types/components/ez-number-input/ez-number-input.d.ts +3 -0
  164. package/dist/types/components/ez-popup/ez-popup.d.ts +3 -3
  165. package/dist/types/components.d.ts +223 -4
  166. package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +29 -0
  167. package/dist/types/utils/customEditor/interfaces/ICustomEditorInfo.d.ts +5 -0
  168. package/dist/types/utils/customRender/interfaces/ICustomRender.d.ts +29 -0
  169. package/dist/types/utils/customRender/interfaces/ICustomRenderInfo.d.ts +5 -0
  170. package/dist/types/utils/form/DataBinder.d.ts +3 -0
  171. package/dist/types/utils/form/test/resources/metadataTest.d.ts +2 -0
  172. package/dist/types/utils/index.d.ts +2 -0
  173. package/package.json +2 -1
  174. package/react/components.d.ts +2 -0
  175. package/react/components.js +2 -0
  176. package/react/components.js.map +1 -1
  177. package/dist/ezui/p-0447d17c.entry.js +0 -1
  178. package/dist/ezui/p-20ec22c0.entry.js +0 -1
  179. package/dist/ezui/p-2a1a0e04.entry.js +0 -1
  180. package/dist/ezui/p-5e1d036e.entry.js +0 -1
  181. package/dist/ezui/p-5ef056ce.entry.js +0 -1
  182. package/dist/ezui/p-637f69f2.entry.js +0 -1
  183. package/dist/ezui/p-701231f0.entry.js +0 -1
  184. package/dist/ezui/p-99ead599.entry.js +0 -1
  185. package/dist/ezui/p-9aefaa52.entry.js +0 -1
  186. package/dist/ezui/p-a1ec32ef.entry.js +0 -1
  187. package/dist/ezui/p-b041333c.entry.js +0 -1
  188. package/dist/ezui/p-b567fa8c.entry.js +0 -1
  189. package/dist/ezui/p-bae3d0aa.entry.js +0 -1
  190. package/dist/ezui/p-db77a984.entry.js +0 -1
package/README.md CHANGED
@@ -74,4 +74,4 @@ o build do ezui, link do react-output e ezui, build do react-output e a disponib
74
74
  - [Diretrizes de documentação](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/wikis/Diretrizes-de-documenta%C3%A7%C3%A3o)
75
75
  - [Link ente projetos](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/wikis/Link-ente-projetos)
76
76
  - [Definindo bons data-element-id de testabilidade no design system](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/wikis/Definindo-bons-data-element-id-de-testabilidade-no-design-system)
77
- - [Criando exemplos de componentes](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/wikis/Criando-exemplos-de-componentes)
77
+ - [Criando exemplos de componentes](https://gitlab.sankhya.com.br/dti/design-system/ez-ui/-/wikis/Criando-exemplos-de-componentes)
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ exports.CustomEditorSource = void 0;
4
+ (function (CustomEditorSource) {
5
+ CustomEditorSource["GRID"] = "GRID";
6
+ CustomEditorSource["FORM"] = "FORM";
7
+ })(exports.CustomEditorSource || (exports.CustomEditorSource = {}));
8
+
9
+ exports.CustomRenderSource = void 0;
10
+ (function (CustomRenderSource) {
11
+ CustomRenderSource["GRID"] = "GRID";
12
+ CustomRenderSource["FORM"] = "FORM";
13
+ })(exports.CustomRenderSource || (exports.CustomRenderSource = {}));
@@ -8,6 +8,7 @@ require('./ApplicationUtils-c9d1205c.js');
8
8
  const CSSVarsUtils = require('./CSSVarsUtils-10c9d5b4.js');
9
9
  require('./DialogType-2114c337.js');
10
10
  require('./CheckMode-ecb90b87.js');
11
+ require('./ICustomRender-6fafffce.js');
11
12
 
12
13
  const ezActionsButtonCss = ":host{--ez-actions-button__actions-list--border-radius:var(--border--radius-medium, 12px);--ez-actions-button__actions-list--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-actions-button__actions-list--background-color:var(--background--xlight, #fff);--ez-actions-button__actions-list--padding:var(--space--small, 6px);--ez-actions-button__actions-list--top-margin:var(--space-small, 6px);--ez-actions-button__actions-list--z-index:var(--ez-elevation--8, 8);--ez-actions-button__actions-max-height:415px;--ez-actions-button__btn-action--min-width:'auto';--ez-actions-button__btn-action--background-color:var(--background--xlight, #fff);display:flex;flex-direction:column;height:fit-content;user-select:none}.ez-actions-button__actions-list{display:flex;flex-direction:column;position:fixed;width:fit-content;height:fit-content;overflow-y:auto;scrollbar-width:thin;z-index:var(--ez-actions-button__actions-list--z-index);padding:var(--ez-actions-button__actions-list--padding);margin-top:var(--ez-actions-button__actions-list--top-margin);background-color:var(--ez-actions-button__actions-list--background-color);border-radius:var(--ez-actions-button__actions-list--border-radius);box-shadow:var(--ez-actions-button__actions-list--box-shadow)}.ez-actions-button__actions-list--max-height{max-height:var(--ez-actions-button__actions-max-height)}.ez-actions-button__actions-list--lowered{margin-top:calc(var(--ez-actions-button__actions-list--top-margin) + 6px)}.ez-actions-button__btn-action{--ez-button--justify-content:flex-start;--ez-button--width:100%;--ez-button--min-width:var(--ez-actions-button__btn-action--min-width);--ez-button--background-color:var(--ez-actions-button__btn-action--background-color);--ez-button--font-weight:var(--text-weight--medium, 400);--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px)}.ez-actions-button__btn-action--spaced{--ez-button--padding-left:calc(var(--space--medium, 12px) + 24px)}.ez-actions-button__icon-right{margin-left:var(--space--small, 6px)}.ez-actions-button__icon-check,.ez-actions-button__icon-item{position:absolute;left:var(--space--medium, 12px)}.ez-actions-button__icon-check{color:var(--ez-button--hover-color)}.ez-actions-button__arrow{position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;width:0;height:0;z-index:calc(var(--ez-actions-button__actions-list--z-index) + 1);border-bottom:15px solid var(--ez-actions-button__btn-action--background-color)}.ez-actions-button__arrow--upped{margin-top:calc((var(--ez-actions-button__actions-list--top-margin) + 2px) * -1)}.ez-actions-button__arrow--small{margin-left:6px}.ez-actions-button__arrow--medium{margin-left:11px}.ez-actions-button__arrow--large{margin-left:13px}.ez-actions-button__arrow:only-child{display:none}.ez-actions-button__btn-transparent{--ez-button--background-color:transparent;--ez-button--hover--background-color:transparent;--ez-button--active--background-color:transparent;--ez-button--focus--border:none}.ez-actions-button__btn-label{--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px)}.ez-actions-button__list-container{position:relative}.ez-actions-button--bottom-padding{padding-bottom:var(--space--small, 6px)}";
13
14
 
@@ -40,10 +40,12 @@ const EzAlertList = class {
40
40
  /**
41
41
  * Retorna o link para o titulo do alerta a partir do id.
42
42
  */
43
- getLinkTitle(item) {
43
+ getLinkActionClick(item) {
44
44
  var _a;
45
- const link = (_a = this.alerts.find((alert, index) => this.alertId(alert.title, index) === item.id)) === null || _a === void 0 ? void 0 : _a.link;
46
- return link !== null && link !== void 0 ? link : "#";
45
+ const action = (_a = this.alerts.find((alert, index) => this.alertId(alert.title, index) === item.id)) === null || _a === void 0 ? void 0 : _a.onClickLink;
46
+ if (action)
47
+ return action;
48
+ return () => { };
47
49
  }
48
50
  /**
49
51
  * Retorna o texto do título do alerta.
@@ -135,7 +137,7 @@ const EzAlertList = class {
135
137
  (index.h("div", { ref: elem => (this._overlayRef = elem) }, index.h("div", { class: `alert-list__container ${this.expanded ? 'expanded' : ''}`, ref: elem => (this._container = elem) }, index.h("div", { class: "alert-list__content" }, index.h("div", { class: "alert-list__header" }, index.h("div", { class: "alert-list__title" }, `Avisos (${this.alerts.length})`), index.h("div", { class: "alert-list__header__buttons" }, this.enableExpand && (index.h("ez-button", { mode: "icon", size: "small", iconName: "expand", onClick: () => this.toggleExpandContainer(), "data-element-id": core.ElementIDUtils.getInternalIDInfo('expandButton'), title: this.expanded ? 'Resumir' : 'Expandir' })), index.h("ez-button", { mode: "icon", size: "small", iconName: "close", "data-element-id": core.ElementIDUtils.getInternalIDInfo('closeButton'), onClick: () => {
136
138
  this.opened = false;
137
139
  }, title: 'Fechar' }))), index.h("div", { class: "alert-list__expandable-content" }, index.h("ez-list", { itemSlotBuilder: this.itemRightSlotBuilder, hoverFeedback: true, itemLeftSlotBuilder: item => {
138
- return (index.h("a", { href: this.getLinkTitle(item), style: {
140
+ return (index.h("a", { onClick: this.getLinkActionClick(item), style: {
139
141
  fontFamily: "var(--font-pattern, 'Roboto')",
140
142
  fontSize: 'var(--text--medium, 14px)',
141
143
  fontWeight: 'var(--text-weight--medium, 400)',
@@ -5,7 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
5
5
  const index = require('./index-a7b0c73d.js');
6
6
  const core = require('@sankhyalabs/core');
7
7
 
8
- const ezButtonCss = ":host{--ez-button--min-width:100px;--ez-button--width:'auto';--ez-button--height:42px;--ez-button__icon--width:18px;--ez-button__inline__icon--padding:12px;--ez-button--padding-top:0px;--ez-button--padding-bottom:0px;--ez-button--padding-right:var(--space--large, 24px);--ez-button--padding-left:var(--space--large, 24px);--ez-button--color:var(--title--primary, #FFF);--ez-button--font-size:var(--text--medium, 14px);--ez-button--font-family:var(--font-pattern, Arial);--ez-button--font-weight:var(--text-weight--large);--ez-button--background-color:var(--background--medium, #c0c0c0);--ez-button--border-radius:var(--border--radius-large, 12px);--ez-button--border:none;--ez-button--justify-content:center;--ez-button--hover-color:var(--color--primary-600);--ez-button--hover--background-color:var(--background--medium, var(--ez-button--background-color));--ez-button--disabled-color:var(--text--disable);--ez-button--disabled--background-color:var(--color--disable-secondary);--ez-button--focus--border:var(--border--xlarge, 4px solid) var(--color--primary-300);--ez-button--focus--box-shadow:none;--ez-button--active-color:var(--color--primary-700);--ez-button--active--background-color:var(--background--strong);--ez-button--link-color:var(--color--primary, '#008561');--ez-button--link--hover-color:var(--color--primary-700, '#1C1D22');--ez-button--link--small--font-size:var(--text--small, 12px);--ez-button--link--medium--font-size:var(--text--medium, 14px);--ez-button--link--large--font-size:var(--text--large, 16px)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-button--min-width);width:var(--ez-button--width);height:var(--ez-button--height);font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);padding:var(--ez-button--padding-top) var(--ez-button--padding-right) var(--ez-button--padding-bottom) var(--ez-button--padding-left);border-radius:var(--ez-button--border-radius);background-color:var(--ez-button--background-color);color:var(--ez-button--color);fill:var(--ez-button--color);border:var(--ez-button--border);justify-content:var(--ez-button--justify-content)}button:focus{outline:var(--ez-button--focus--border);box-shadow:var(--ez-button--focus--box-shadow)}button:hover{outline:none;background-color:var(--ez-button--hover--background-color);color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}button:active{outline:none;box-shadow:none;background-color:var(--ez-button--active--background-color);color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}button:disabled{background-color:var(--ez-button--disabled--background-color);color:var(--ez-button--disabled-color);fill:var(--ez-button--disabled-color);border:none;--ez-icon--color:var(--ez-button--disabled-color);cursor:no-drop}.small{height:32px;--ez-button--font-size:var(--text--small, 12px)}.medium{height:42px}.large{height:46px}.btn-icon{padding:0px}.btn-icon--medium{width:42px;min-width:42px;height:42px}.btn-icon--small{width:32px;min-width:32px;height:32px}.btn-icon--large{width:46px;min-width:46px;height:46px}.label-icon{display:flex;flex-direction:column;align-items:center;color:var(--ez-button--color)}.label-icon:hover{color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}.label-icon:active{color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}.label-icon label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);user-select:none}button:disabled+label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);color:var(--ez-button--disabled-color);cursor:no-drop}div.label-icon{cursor:pointer}div.label-icon,button:disabled{cursor:no-drop}a{font-family:var(--ez-button--font-family);font-weight:var(--ez-button--font-weight);color:var(--ez-button--link-color);cursor:pointer;display:flex;align-items:center;justify-content:center;}a:hover{color:var(--ez-button--link--hover-color)}a.small{font-size:var(--ez-button--link--small--font-size);line-height:var(--ez-button--link--small--font-size)}a.medium{font-size:var(--ez-button--link--medium--font-size);line-height:var(--ez-button--link--medium--font-size)}a.large{font-size:var(--ez-button--link--large--font-size);line-height:var(--ez-button--link--large--font-size)}";
8
+ const ezButtonCss = ":host{--ez-button--min-width:100px;--ez-button--width:'auto';--ez-button--height:42px;--ez-button__icon--width:18px;--ez-button__inline__icon--padding:12px;--ez-button--padding-top:0px;--ez-button--padding-bottom:0px;--ez-button--padding-right:var(--space--large, 24px);--ez-button--padding-left:var(--space--large, 24px);--ez-button--color:var(--title--primary, #FFF);--ez-button--font-size:var(--text--medium, 14px);--ez-button--font-family:var(--font-pattern, Arial);--ez-button--font-weight:var(--text-weight--large);--ez-button--background-color:var(--background--medium, #c0c0c0);--ez-button--border-radius:var(--border--radius-large, 12px);--ez-button--border:none;--ez-button--justify-content:center;--ez-button--hover-color:var(--color--primary-600);--ez-button--hover--background-color:var(--background--medium, var(--ez-button--background-color));--ez-button--disabled-color:var(--text--disable);--ez-button--disabled--background-color:var(--color--disable-secondary);--ez-button--focus--border:var(--border--xlarge, 4px solid) var(--color--primary-300);--ez-button--focus--box-shadow:none;--ez-button--active-color:var(--color--primary-700);--ez-button--active--background-color:var(--background--strong);--ez-button--link-color:var(--color--primary, '#008561');--ez-button--link--hover-color:var(--color--primary-700, '#1C1D22');--ez-button--link-disabled-color:var(--color--disable-primary, '#e5eaf0');--ez-button--link--small--font-size:var(--text--small, 12px);--ez-button--link--medium--font-size:var(--text--medium, 14px);--ez-button--link--large--font-size:var(--text--large, 16px)}ez-icon{--ez-icon--color:inherit}button{position:relative;display:flex;align-items:center;margin:0;cursor:pointer;transition:background-color 0.2s linear;white-space:nowrap;min-width:var(--ez-button--min-width);width:var(--ez-button--width);height:var(--ez-button--height);font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);padding:var(--ez-button--padding-top) var(--ez-button--padding-right) var(--ez-button--padding-bottom) var(--ez-button--padding-left);border-radius:var(--ez-button--border-radius);background-color:var(--ez-button--background-color);color:var(--ez-button--color);fill:var(--ez-button--color);border:var(--ez-button--border);justify-content:var(--ez-button--justify-content)}button:focus{outline:var(--ez-button--focus--border);box-shadow:var(--ez-button--focus--box-shadow)}button:hover{outline:none;background-color:var(--ez-button--hover--background-color);color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}button:active{outline:none;box-shadow:none;background-color:var(--ez-button--active--background-color);color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}button:disabled{background-color:var(--ez-button--disabled--background-color);color:var(--ez-button--disabled-color);fill:var(--ez-button--disabled-color);border:none;--ez-icon--color:var(--ez-button--disabled-color);cursor:no-drop}.small{height:32px;--ez-button--font-size:var(--text--small, 12px)}.medium{height:42px}.large{height:46px}.btn-icon{padding:0px}.btn-icon--medium{width:42px;min-width:42px;height:42px}.btn-icon--small{width:32px;min-width:32px;height:32px}.btn-icon--large{width:46px;min-width:46px;height:46px}.label-icon{display:flex;flex-direction:column;align-items:center;color:var(--ez-button--color)}.label-icon:hover{color:var(--ez-button--hover-color);fill:var(--ez-button--hover-color);--ez-icon--color:var(--ez-button--hover-color)}.label-icon:active{color:var(--ez-button--active-color);fill:var(--ez-button--active-color);--ez-icon--color:var(--ez-button--active-color)}.label-icon label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);user-select:none}button:disabled+label{max-width:150px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;cursor:pointer;font-family:var(--ez-button--font-family);font-size:var(--ez-button--font-size);font-weight:var(--ez-button--font-weight);color:var(--ez-button--disabled-color);cursor:no-drop}div.label-icon{cursor:pointer}div.label-icon,button:disabled{cursor:no-drop}a{font-family:var(--ez-button--font-family);font-weight:var(--ez-button--font-weight);color:var(--ez-button--link-color);cursor:pointer;display:flex;align-items:center;justify-content:center;}a:hover{color:var(--ez-button--link--hover-color)}a.small{font-size:var(--ez-button--link--small--font-size);line-height:var(--ez-button--link--small--font-size)}a.medium{font-size:var(--ez-button--link--medium--font-size);line-height:var(--ez-button--link--medium--font-size)}a.large{font-size:var(--ez-button--link--large--font-size);line-height:var(--ez-button--link--large--font-size)}a.disabled{color:var(--ez-button--link-disabled-color);cursor:not-allowed}";
9
9
 
10
10
  const EzButton = class {
11
11
  constructor(hostRef) {
@@ -74,7 +74,7 @@ const EzButton = class {
74
74
  return (index.h("div", { class: "label-icon" }, index.h("button", { class: "btn-icon " + ((this.getIconSize()) ? `btn-icon--${this.getIconSize()}` : ""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, index.h("ez-icon", { class: "icon", href: this.image, iconName: this.iconName, size: this.getIconSize() })), index.h("label", { title: this.label }, this.label)));
75
75
  }
76
76
  else if (this.mode == "link") {
77
- return (index.h("a", { class: this.getIconSize(), ref: (el) => this._button = el }, index.h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, index.h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
77
+ return (index.h("a", { class: `${this.getIconSize()} ${!this.enabled ? "disabled" : ""}`, ref: (el) => this._button = el }, index.h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, index.h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));
78
78
  }
79
79
  else {
80
80
  return (index.h("button", { class: this.getIconSize(""), type: "button", disabled: !this.enabled, ref: (el) => this._button = el }, index.h("slot", { name: "leftIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } }), this.label, index.h("slot", { name: "rightIcon", onSlotchange: (ev) => { this.handleSlotChange(ev); } })));