@sankhyalabs/ezui 1.1.127 → 1.1.128

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 (43) hide show
  1. package/dist/cjs/ez-collapsible-box.cjs.entry.js +4 -4
  2. package/dist/cjs/ez-form.cjs.entry.js +12 -12
  3. package/dist/cjs/ez-grid.cjs.entry.js +4 -4
  4. package/dist/cjs/ez-tabselector.cjs.entry.js +2 -2
  5. package/dist/cjs/grid-config.cjs.entry.js +1 -1
  6. package/dist/cjs/select-box.cjs.entry.js +1 -1
  7. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.css +2 -1
  8. package/dist/collection/components/ez-collapsible-box/ez-collapsible-box.js +8 -8
  9. package/dist/collection/components/ez-form/fieldbuilder/tpl/CheckBox.tpl.js +1 -1
  10. package/dist/collection/components/ez-form/fieldbuilder/tpl/ComboBox.tpl.js +1 -1
  11. package/dist/collection/components/ez-form/fieldbuilder/tpl/DateInput.tpl.js +3 -3
  12. package/dist/collection/components/ez-form/fieldbuilder/tpl/FileInput.tpl.js +1 -1
  13. package/dist/collection/components/ez-form/fieldbuilder/tpl/NumberInput.tpl.js +1 -1
  14. package/dist/collection/components/ez-form/fieldbuilder/tpl/SearchInput.tpl.js +1 -1
  15. package/dist/collection/components/ez-form/fieldbuilder/tpl/TextArea.tpl.js +1 -1
  16. package/dist/collection/components/ez-form/fieldbuilder/tpl/TextInput.tpl.js +1 -1
  17. package/dist/collection/components/ez-form/structure/FormSheet.js +2 -2
  18. package/dist/collection/components/ez-grid/ez-grid.js +7 -7
  19. package/dist/collection/components/ez-grid/subcomponents/gridconfig/grid-config.js +1 -1
  20. package/dist/collection/components/ez-grid/subcomponents/select-box/select-box.js +1 -1
  21. package/dist/collection/components/ez-tabselector/ez-tabselector.css +1 -1
  22. package/dist/collection/components/ez-tabselector/ez-tabselector.js +1 -1
  23. package/dist/custom-elements/index.js +24 -24
  24. package/dist/esm/ez-collapsible-box.entry.js +4 -4
  25. package/dist/esm/ez-form.entry.js +12 -12
  26. package/dist/esm/ez-grid.entry.js +4 -4
  27. package/dist/esm/ez-tabselector.entry.js +2 -2
  28. package/dist/esm/grid-config.entry.js +1 -1
  29. package/dist/esm/select-box.entry.js +1 -1
  30. package/dist/ezui/ezui.esm.js +1 -1
  31. package/dist/ezui/{p-248d8511.entry.js → p-2d165ca8.entry.js} +1 -1
  32. package/dist/ezui/p-47fe4273.entry.js +1 -0
  33. package/dist/ezui/p-5b7405e8.entry.js +1 -0
  34. package/dist/ezui/p-66adbed5.entry.js +1 -0
  35. package/dist/ezui/{p-b59ab2d5.entry.js → p-6d39b7ea.entry.js} +1 -1
  36. package/dist/ezui/p-ef17f443.entry.js +1 -0
  37. package/dist/types/components/ez-collapsible-box/ez-collapsible-box.d.ts +2 -3
  38. package/dist/types/components.d.ts +6 -6
  39. package/package.json +1 -1
  40. package/dist/ezui/p-1c28d99b.entry.js +0 -1
  41. package/dist/ezui/p-35edc488.entry.js +0 -1
  42. package/dist/ezui/p-7d5657c7.entry.js +0 -1
  43. package/dist/ezui/p-7f87f762.entry.js +0 -1
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-0e284e03.js');
6
6
 
7
- const ezCollapsibleBoxCss = ":host{--ez-collapsible-box--font-size:var(--title--medium, 14px);--ez-collapsible-box--font-family:var(--font-pattern, Arial);--ez-collapsible-box--font-weight:var(--text-weight--large, 600);--ez-collapsible-box--color:var(--title--primary);--ez-collapsible-box__icon--color:var(--ez-collapsible-box--color);--ez-collapsible-box__header--padding-top:0px;--ez-collapsible-box__header--padding-bottom:0px;--ez-collapsible-box__header--padding-right:0px;--ez-collapsible-box__header--padding-left:0px;display:flex;flex-wrap:wrap;width:100%}.collapsible-box{display:flex;flex-direction:column;width:100%}.collapsible-box__header{display:flex;box-sizing:border-box;padding-top:var(--ez-collapsible-box__header--padding-top);padding-bottom:var(--ez-collapsible-box__header--padding-bottom);padding-right:var(--ez-collapsible-box__header--padding-right);padding-left:var(--ez-collapsible-box__header--padding-left)}.collapsible-box__title{position:relative;width:auto;display:flex;box-sizing:border-box;align-items:center;outline:none;border:none;background-color:unset;cursor:pointer;padding:0px;text-align:left;margin-bottom:var(--space--medium, 12px)}.collapsible-box__label{white-space:nowrap;overflow:hidden;cursor:pointer;text-overflow:ellipsis;box-sizing:border-box;margin-left:6px;font-family:var(--ez-collapsible-box--font-family);font-size:var(--ez-collapsible-box--font-size);font-weight:var(--ez-collapsible-box--font-weight);color:var(--ez-collapsible-box--color)}.collapsible-box__icon{transform:rotate(90deg) translate(0px, 14%);transition:transform var(--transition);--ez-icon--color:var(--ez-collapsible-box__icon--color, --ez-collapsible-box--color)}.collapsible-box__icon--collapsed{transform:rotate(0deg) translate(-14%, 0px)}.collapsible-box__title--icon-right{flex-direction:row-reverse}.collapsible-box__title--icon-right .collapsible-box__icon{transform:rotate(90deg) translate(0px, -14%)}.collapsible-box__title--icon-right .collapsible-box__icon--collapsed{transform:rotate(0deg) translate(14%, 0px)}.collapsible-box__title--icon-right .collapsible-box__label{margin-left:0px;margin-right:6px}.collapsible-box__title--stretched{width:100%;justify-content:space-between}.collapsible-box__content{display:flex;flex-wrap:wrap;overflow:hidden;width:100%;height:0px;max-height:0px;opacity:0;transition:all var(--transition, 0.5s)}.collapsible-box__content--show{height:100%;max-height:none;opacity:1;transition:all var(--transition, 0.5s)}.font--x-small{font-size:10px}.font--small{font-size:12px}.font--medium{font-size:14px}.font--large{font-size:16px}.font--x-large{font-size:20px}";
7
+ const ezCollapsibleBoxCss = ":host{--ez-collapsible-box--font-size:var(--title--medium, 14px);--ez-collapsible-box--font-family:var(--font-pattern, Arial);--ez-collapsible-box--font-weight:var(--text-weight--large, 600);--ez-collapsible-box--color:var(--title--primary);--ez-collapsible-box__icon--color:var(--ez-collapsible-box--color);--ez-collapsible-box__header--padding-top:0px;--ez-collapsible-box__header--padding-bottom:0px;--ez-collapsible-box__header--padding-right:0px;--ez-collapsible-box__header--padding-left:0px;display:flex;flex-wrap:wrap;width:100%}.collapsible-box{display:flex;flex-direction:column;width:100%}.collapsible-box__header{display:flex;box-sizing:border-box;padding-top:var(--ez-collapsible-box__header--padding-top);padding-bottom:var(--ez-collapsible-box__header--padding-bottom);padding-right:var(--ez-collapsible-box__header--padding-right);padding-left:var(--ez-collapsible-box__header--padding-left)}.collapsible-box__title{position:relative;width:auto;display:flex;box-sizing:border-box;align-items:center;outline:none;border:none;background-color:unset;cursor:pointer;padding:0px;text-align:left;margin-bottom:var(--space--medium, 12px)}.collapsible-box__label{white-space:nowrap;overflow:hidden;cursor:pointer;text-overflow:ellipsis;box-sizing:border-box;margin-left:6px;font-family:var(--ez-collapsible-box--font-family);font-size:var(--ez-collapsible-box--font-size);font-weight:var(--ez-collapsible-box--font-weight);color:var(--ez-collapsible-box--color)}.collapsible-box__icon{transform:rotate(90deg) translate(0px, 14%);transition:transform var(--transition);--ez-icon--color:var(--ez-collapsible-box__icon--color, --ez-collapsible-box--color)}.collapsible-box__icon--collapsed{transform:rotate(0deg) translate(-14%, 0px)}.collapsible-box__title--icon-right{flex-direction:row-reverse}.collapsible-box__title--icon-right .collapsible-box__icon{transform:rotate(90deg) translate(0px, -14%)}.collapsible-box__title--icon-right .collapsible-box__icon--collapsed{transform:rotate(0deg) translate(14%, 0px)}.collapsible-box__title--icon-right .collapsible-box__label{margin-left:0px;margin-right:6px}.collapsible-box__title--stretched{width:100%;justify-content:space-between}.collapsible-box__content{display:flex;flex-wrap:wrap;width:100%;height:0px;max-height:0px;opacity:0;overflow:hidden;transition:all var(--transition, 0.5s)}.collapsible-box__content--show{height:100%;max-height:none;opacity:1;overflow:visible;transition:all var(--transition, 0.5s)}.font--x-small{font-size:10px}.font--small{font-size:12px}.font--medium{font-size:14px}.font--large{font-size:16px}.font--x-large{font-size:20px}";
8
8
 
9
9
  let EzCollapsibleBox = class {
10
10
  constructor(hostRef) {
@@ -16,7 +16,6 @@ let EzCollapsibleBox = class {
16
16
  this.value = false;
17
17
  /**
18
18
  * Define o tamanho do texto e do ícone do componente.
19
- * Tamanhos suportados: "x-small", "small", "medium", "large" e "x-large".
20
19
  */
21
20
  this.headerSize = "small";
22
21
  /**
@@ -43,8 +42,9 @@ let EzCollapsibleBox = class {
43
42
  getHeaderSize() {
44
43
  const sizeAlias = ["xsmall", "xlarge"];
45
44
  const sizeList = ["x-small", "small", "medium", "large", "x-large"];
46
- const headerSize = sizeAlias.includes(this.headerSize) ? this.headerSize.replace('x', 'x-') : this.headerSize;
47
- return sizeList.includes(headerSize) ? headerSize : "small";
45
+ const sizeLowerCase = this.headerSize && this.headerSize.toLowerCase();
46
+ const sizeCustom = sizeAlias.includes(sizeLowerCase) ? sizeLowerCase.replace('x', 'x-') : sizeLowerCase;
47
+ return sizeList.includes(sizeCustom) ? sizeCustom : "small";
48
48
  }
49
49
  render() {
50
50
  return (index.h("div", { class: "collapsible-box" }, index.h("div", { class: "collapsible-box__header" }, index.h("button", { onClick: () => this.showHide(), class: "collapsible-box__title" +
@@ -7,12 +7,12 @@ const core = require('@sankhyalabs/core');
7
7
  const ApplicationUtils = require('./ApplicationUtils-4a223c7a.js');
8
8
 
9
9
  const buildTextArea = ({ name, label, readOnly }) => {
10
- return (index.h("div", { class: "col col--sd-12 padding-horizontal--small", key: name },
10
+ return (index.h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small", key: name },
11
11
  index.h("ez-text-area", { enabled: !readOnly, label: label, "data-field-name": name })));
12
12
  };
13
13
 
14
14
  const buildTextInput = ({ name, label }) => {
15
- return (index.h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
15
+ return (index.h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
16
16
  index.h("ez-text-input", { label: label, "data-field-name": name, key: name })));
17
17
  };
18
18
 
@@ -23,7 +23,7 @@ const buildCheckBox = (fieldConfig) => {
23
23
  return buildField$1(fieldConfig.name, fieldConfig.label, fieldConfig.readOnly, false);
24
24
  };
25
25
  function buildField$1(fieldName, fieldLabel, readOnly, switchMode = false) {
26
- return (index.h("div", { class: "col col--sd-12 col--tb-3 align--middle padding-horizontal--small padding-bottom--large" },
26
+ return (index.h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-align--middle ez-padding-horizontal--small ez-padding-bottom--large" },
27
27
  index.h("ez-check", { enabled: !readOnly, label: fieldLabel, mode: switchMode ? "switch" : "regular", "data-field-name": fieldName, key: fieldName })));
28
28
  }
29
29
 
@@ -37,30 +37,30 @@ const buildComboBox = ({ name, label, readOnly, required }, properties) => {
37
37
  else {
38
38
  options = prop;
39
39
  }
40
- return (index.h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
40
+ return (index.h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
41
41
  index.h("ez-combo-box", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, key: name, options: options })));
42
42
  };
43
43
 
44
44
  const buildSearch = ({ name, label, readOnly, required }) => {
45
- return (index.h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
45
+ return (index.h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
46
46
  index.h("ez-search", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, key: name })));
47
47
  };
48
48
 
49
49
  const buildFile = ({ name, label, readOnly }) => {
50
- return (index.h("div", { class: "col col--sd-12 padding-horizontal--small" },
50
+ return (index.h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
51
51
  index.h("ez-upload", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
52
52
  };
53
53
 
54
54
  const buildDate = ({ name, label, readOnly }) => {
55
- return (index.h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
55
+ return (index.h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
56
56
  index.h("ez-date-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
57
57
  };
58
58
  const buildTime = ({ name, label }) => {
59
- return (index.h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
59
+ return (index.h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
60
60
  index.h("ez-time-input", { label: label, "data-field-name": name, key: name })));
61
61
  };
62
62
  const buildTimeDate = ({ name, label }) => {
63
- return (index.h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
63
+ return (index.h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
64
64
  index.h("ez-date-time-input", { label: label, "data-field-name": name, key: name })));
65
65
  };
66
66
 
@@ -73,7 +73,7 @@ const buildInteger = ({ name, label, readOnly }) => {
73
73
  return buildNumeric(name, label, readOnly, 0, 0);
74
74
  };
75
75
  function buildNumeric(fieldName, fieldLabel, readOnly, precision, prettyPrecision) {
76
- return (index.h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
76
+ return (index.h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
77
77
  index.h("ez-number-input", { enabled: !readOnly, label: fieldLabel, precision: precision, prettyPrecision: prettyPrecision, "data-field-name": fieldName, key: fieldName })));
78
78
  }
79
79
 
@@ -130,8 +130,8 @@ const FormItem = ({ source }) => {
130
130
  };
131
131
 
132
132
  const FormSheet = ({ store, source }) => {
133
- return (index.h("div", { class: "dynamic-content box__container" },
134
- index.h("div", { class: "row padding-vertical--small" }, source.items.map(item => index.h(FormItem, { store: store, source: item })))));
133
+ return (index.h("div", { class: "dynamic-content ez-box__container" },
134
+ index.h("div", { class: "ez-row ez-padding-vertical--small" }, source.items.map(item => index.h(FormItem, { store: store, source: item })))));
135
135
  };
136
136
 
137
137
  class FormMetadata {
@@ -110663,9 +110663,9 @@ let EzGrid = class {
110663
110663
  return null;
110664
110664
  }
110665
110665
  return [
110666
- index.h("div", { class: "text text--primary text--medium margin-right--medium" }, index.h("strong", { class: "text text--primary text--medium" }, `${this._navigationFirstRow}-${this._navigationLastRow}`), ` de ${this._navigationTotalRows}`),
110667
- index.h("ez-button", { size: "small", iconName: "chevron-left", class: "margin-right--medium", mode: "icon", enabled: this._navigationHasPrevious, onClick: () => this._gridController.previousPage(), label: "P\u00E1gina anterior" }),
110668
- index.h("ez-button", { size: "small", iconName: "chevron-right", class: "margin-right--medium", mode: "icon", enabled: this._navigationHasNext, onClick: () => this._gridController.nextPage(), label: "Pr\u00F3xima P\u00E1gina" })
110666
+ index.h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium" }, index.h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, `${this._navigationFirstRow}-${this._navigationLastRow}`), ` de ${this._navigationTotalRows}`),
110667
+ index.h("ez-button", { size: "small", iconName: "chevron-left", class: "ez-margin-right--medium", mode: "icon", enabled: this._navigationHasPrevious, onClick: () => this._gridController.previousPage(), label: "P\u00E1gina anterior" }),
110668
+ index.h("ez-button", { size: "small", iconName: "chevron-right", class: "ez-margin-right--medium", mode: "icon", enabled: this._navigationHasNext, onClick: () => this._gridController.nextPage(), label: "Pr\u00F3xima P\u00E1gina" })
110669
110669
  ];
110670
110670
  }
110671
110671
  applyConfig(config) {
@@ -110681,7 +110681,7 @@ let EzGrid = class {
110681
110681
  this._popUpVisible = true;
110682
110682
  }
110683
110683
  render() {
110684
- return (index.h(index.Host, null, index.h("div", { class: "box box--shadow padding--medium grid-header" }, index.h("div", { class: "grid-header__container" }, index.h("slot", { name: "leftButtons" })), index.h("div", { class: "grid-header__container" }, this.getPaginationControl(), index.h("ez-button", { size: "small", iconName: "settings", class: "button--secondary", mode: "icon", onClick: () => { this.openConfig(); } }))), index.h("div", { class: "grid__container ag-sankhya-theme", ref: elem => this._container = elem }), index.h("div", { class: "grid__footer" }), index.h("ez-modal", { modalSize: "small", closeEsc: true, closeOutsideClick: true, opened: this._popUpVisible, onEzCloseModal: () => this._popUpVisible = false }, index.h("grid-config", { ref: ref => this._gridConfig = ref, config: this.config, selectedTab: "Colunas", onConfigFinish: evt => { this.applyConfig(evt.detail); this.configChange.emit(evt.detail); }, onConfigCancel: _evt => this.closeConfig() }))));
110684
+ return (index.h(index.Host, null, index.h("div", { class: "ez-box ez-box--shadow ez-padding--medium grid-header" }, index.h("div", { class: "grid-header__container" }, index.h("slot", { name: "leftButtons" })), index.h("div", { class: "grid-header__container" }, this.getPaginationControl(), index.h("ez-button", { size: "small", iconName: "settings", class: "ez-button--secondary", mode: "icon", onClick: () => { this.openConfig(); } }))), index.h("div", { class: "grid__container ez-grid", ref: elem => this._container = elem }), index.h("div", { class: "grid__footer" }), index.h("ez-modal", { modalSize: "small", closeEsc: true, closeOutsideClick: true, opened: this._popUpVisible, onEzCloseModal: () => this._popUpVisible = false }, index.h("grid-config", { ref: ref => this._gridConfig = ref, config: this.config, selectedTab: "Colunas", onConfigFinish: evt => { this.applyConfig(evt.detail); this.configChange.emit(evt.detail); }, onConfigCancel: _evt => this.closeConfig() }))));
110685
110685
  }
110686
110686
  static get assetsDirs() { return ["../assets"]; }
110687
110687
  static get watchers() { return {
@@ -4,7 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-0e284e03.js');
6
6
 
7
- const ezTabselectorCss = "@keyframes activate{0%{clip-path:inset(calc(100% - 3px) 50% 0px 50%)}100%{clip-path:inset(calc(100% - 3px) 0px 0px 0px)}}:host{display:flex;position:relative;width:100%;overflow:hidden;--tabselector--backward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z\"/></svg>');--tabselector--forward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z\"/></svg>')}.scroll{display:flex;width:100%;scroll-behavior:smooth;overflow-x:auto;scrollbar-width:none}.scroll.startHidden{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px)}.scroll.midle{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px, #000 calc(100% - 48px), transparent calc(100% - 20px))}.scroll.endHidden{-webkit-mask-image:linear-gradient(90deg, #000 calc(100% - 48px), transparent calc(100% - 20px))}.tab{display:flex;border:none;min-width:100px;background-color:unset;cursor:pointer;padding:6px 12px;align-items:center;justify-content:center;color:var(--text--primary, #626e82);font-family:var(--font-pattern, \"Sora, Algerian\");font-size:var(--title--small, 14px)}.tab:focus,.forward-button,.backward-button{outline:none}.is-active{position:relative;color:var(--color--primary, #008561)}.is-active::after{content:\"\";position:absolute;width:100%;height:100%;background-color:var(--color--primary, #008561);clip-path:inset(calc(100% - 3px) 0px 0px 0px);animation:activate 0.25s ease-in-out}.is-focused{border:1px dashed var(--color--primary, #000000c5)}.tab-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-shadow:var(--text-shadow);margin-bottom:var(--space--extra-small, 3px)}.forward-button,.backward-button{position:absolute;z-index:1;display:flex;box-sizing:border-box;padding:0px;top:0px;right:0px;width:16px;height:100%;border:none;background-color:unset;cursor:pointer;justify-content:center;align-items:center}.backward-button{left:0px}.forward-button::after,.backward-button::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:10px;height:16px}.forward-button::after{-webkit-mask-image:var(--tabselector--forward-icon);mask-image:var(--tabselector--forward-icon)}.backward-button::after{-webkit-mask-image:var(--tabselector--backward-icon);mask-image:var(--tabselector--backward-icon)}.forward-button:hover::after,.backward-button:hover::after{background-color:var(--color--primary, #4e4e4e)}.hidden{display:none}.scroll::-webkit-scrollbar{display:none}";
7
+ const ezTabselectorCss = "@keyframes activate{0%{clip-path:inset(calc(100% - 3px) 50% 0px 50%)}100%{clip-path:inset(calc(100% - 3px) 0px 0px 0px)}}:host{display:flex;position:relative;width:100%;overflow:hidden;--tabselector--backward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 9.7808475,13.860393 3.9204526,8.0000004 9.7808475,2.0624965 7.9301965,0.28895552 0.21915255,8.0000004 7.9301965,15.711044 Z\"/></svg>');--tabselector--forward-icon:url('data:image/svg+xml;utf8,<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\" height=\"16px\" width=\"10px\"><path d=\"M 0.21915251,13.860393 6.0795475,8.0000007 0.21915251,2.0624968 2.0698036,0.28895588 9.7808475,8.0000007 2.0698036,15.711044 Z\"/></svg>')}.scroll{display:flex;width:100%;scroll-behavior:smooth;overflow-x:auto;scrollbar-width:none}.scroll.startHidden{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px)}.scroll.middle{-webkit-mask-image:linear-gradient(90deg, transparent 20px, #000 48px, #000 calc(100% - 48px), transparent calc(100% - 20px))}.scroll.endHidden{-webkit-mask-image:linear-gradient(90deg, #000 calc(100% - 48px), transparent calc(100% - 20px))}.tab{display:flex;border:none;min-width:100px;background-color:unset;cursor:pointer;padding:6px 12px;align-items:center;justify-content:center;color:var(--text--primary, #626e82);font-family:var(--font-pattern, \"Sora, Algerian\");font-size:var(--title--small, 14px)}.tab:focus,.forward-button,.backward-button{outline:none}.is-active{position:relative;color:var(--color--primary, #008561)}.is-active::after{content:\"\";position:absolute;width:100%;height:100%;background-color:var(--color--primary, #008561);clip-path:inset(calc(100% - 3px) 0px 0px 0px);animation:activate 0.25s ease-in-out}.is-focused{border:1px dashed var(--color--primary, #000000c5)}.tab-label{overflow:hidden;white-space:nowrap;text-overflow:ellipsis;text-shadow:var(--text-shadow);margin-bottom:var(--space--extra-small, 3px)}.forward-button,.backward-button{position:absolute;z-index:1;display:flex;box-sizing:border-box;padding:0px;top:0px;right:0px;width:16px;height:100%;border:none;background-color:unset;cursor:pointer;justify-content:center;align-items:center}.backward-button{left:0px}.forward-button::after,.backward-button::after{content:'';display:flex;background-color:var(--text--primary, #008561);width:10px;height:16px}.forward-button::after{-webkit-mask-image:var(--tabselector--forward-icon);mask-image:var(--tabselector--forward-icon)}.backward-button::after{-webkit-mask-image:var(--tabselector--backward-icon);mask-image:var(--tabselector--backward-icon)}.forward-button:hover::after,.backward-button:hover::after{background-color:var(--color--primary, #4e4e4e)}.hidden{display:none}.scroll::-webkit-scrollbar{display:none}";
8
8
 
9
9
  let EzTabselector = class {
10
10
  constructor(hostRef) {
@@ -138,7 +138,7 @@ let EzTabselector = class {
138
138
  else {
139
139
  this._forwardButton.classList.add("hidden");
140
140
  }
141
- const classNames = ["", "startHidden", "endHidden", "midle"];
141
+ const classNames = ["", "startHidden", "endHidden", "middle"];
142
142
  const currentClass = classNames[Number(this._startHidden) | Number(this._endHidden) << 1];
143
143
  classNames.forEach((name) => {
144
144
  if (name !== currentClass && container.classList.contains(name)) {
@@ -384,7 +384,7 @@ let GridConfig = class {
384
384
  }
385
385
  }
386
386
  render() {
387
- return (index.h(index.Host, null, index.h("div", { class: "grid-config__header" }, index.h("div", { class: "title-container" }, index.h("div", { class: "" }, index.h("label", { class: "title" }, "Configura\u00E7\u00E3o da Grade"), index.h("label", { class: "subtitle" }, "Defina visibilidade e ordem das colunas.")), index.h("div", { class: "button-close" }, index.h("ez-button", { mode: 'icon', image: AssetsUtils.getSpritePath("close"), size: 'medium', onClick: () => this.closeConfig() }))), index.h("div", { class: "tabselector-container" }, index.h("ez-tabselector", { selectedTab: this.selectedTab, selectedIndex: 0, onEzChange: (ev) => { this.handleTabChange(ev); }, tabs: 'Colunas, Ordena\u00E7\u00E3o das linhas' })), index.h("div", null, index.h("ez-text-input", { ref: (el) => this._searchElement = el, label: "Localizar coluna", onKeyUp: evt => this.locateColumn(evt) }, index.h("ez-icon", { slot: "leftIcon", size: "medium", href: AssetsUtils.getSpritePath("search") })))), index.h("div", { class: "grid-config__main" }, index.h("ez-list", { ref: (el) => this._columnList = el, class: this.selectedTab === "Colunas" ? "" : "hidden", dataSource: this._columListItems, onEzChange: ev => this.handleColumnListChange(ev), ezDraggable: true, ezSelectable: true, itemSlotBuilder: (item, group) => this.buildColumnListSlot(item, group), useGroups: true }), index.h("div", { class: this.selectedTab === "Ordenação das linhas" ? "group-name" : "hidden" }, "Sequ\u00EAncia da ordena\u00E7\u00E3o"), index.h("ez-list", { ref: (el) => this._orderList = el, class: this.selectedTab === "Ordenação das linhas" ? "heigth-calc" : "hidden", dataSource: this._orderListItems, ezSelectable: true, onEzChange: ev => this.handleOrderListChange(ev), ezDraggable: true, itemSlotBuilder: (item) => this.buildOrderListSlot(item) })), index.h("div", { class: "grid-config__footer" }, index.h("ez-button", { class: "padding-right--medium", label: "Cancelar", onClick: () => this.closeConfig() }), index.h("ez-button", { label: "Concluir", class: "button--primary", onClick: () => this.finish() }))));
387
+ return (index.h(index.Host, null, index.h("div", { class: "grid-config__header" }, index.h("div", { class: "title-container" }, index.h("div", { class: "" }, index.h("label", { class: "title" }, "Configura\u00E7\u00E3o da Grade"), index.h("label", { class: "subtitle" }, "Defina visibilidade e ordem das colunas.")), index.h("div", { class: "button-close" }, index.h("ez-button", { mode: 'icon', image: AssetsUtils.getSpritePath("close"), size: 'medium', onClick: () => this.closeConfig() }))), index.h("div", { class: "tabselector-container" }, index.h("ez-tabselector", { selectedTab: this.selectedTab, selectedIndex: 0, onEzChange: (ev) => { this.handleTabChange(ev); }, tabs: 'Colunas, Ordena\u00E7\u00E3o das linhas' })), index.h("div", null, index.h("ez-text-input", { ref: (el) => this._searchElement = el, label: "Localizar coluna", onKeyUp: evt => this.locateColumn(evt) }, index.h("ez-icon", { slot: "leftIcon", size: "medium", href: AssetsUtils.getSpritePath("search") })))), index.h("div", { class: "grid-config__main" }, index.h("ez-list", { ref: (el) => this._columnList = el, class: this.selectedTab === "Colunas" ? "" : "hidden", dataSource: this._columListItems, onEzChange: ev => this.handleColumnListChange(ev), ezDraggable: true, ezSelectable: true, itemSlotBuilder: (item, group) => this.buildColumnListSlot(item, group), useGroups: true }), index.h("div", { class: this.selectedTab === "Ordenação das linhas" ? "group-name" : "hidden" }, "Sequ\u00EAncia da ordena\u00E7\u00E3o"), index.h("ez-list", { ref: (el) => this._orderList = el, class: this.selectedTab === "Ordenação das linhas" ? "heigth-calc" : "hidden", dataSource: this._orderListItems, ezSelectable: true, onEzChange: ev => this.handleOrderListChange(ev), ezDraggable: true, itemSlotBuilder: (item) => this.buildOrderListSlot(item) })), index.h("div", { class: "grid-config__footer" }, index.h("ez-button", { class: "padding-right--medium", label: "Cancelar", onClick: () => this.closeConfig() }), index.h("ez-button", { label: "Concluir", class: "ez-button--primary", onClick: () => this.finish() }))));
388
388
  }
389
389
  static get assetsDirs() { return ["../assets"]; }
390
390
  };
@@ -13,7 +13,7 @@ let SelectBox = class {
13
13
  this.selectedOption = { value: "na", label: "N/A" };
14
14
  }
15
15
  render() {
16
- return (index.h("ez-combo-box", { class: "grid-config-combo inverted", label: "", suppressSearch: true, value: this.selectedOption, enabled: true, canShowError: false, suppressEmptyOption: true }, index.h("option", { value: "na" }, "N/A"), index.h("option", { value: "asc" }, "A-Z"), index.h("option", { value: "desc" }, "Z-A")));
16
+ return (index.h("ez-combo-box", { class: "grid-config-combo ez-input--inverted", label: "", suppressSearch: true, value: this.selectedOption, enabled: true, canShowError: false, suppressEmptyOption: true }, index.h("option", { value: "na" }, "N/A"), index.h("option", { value: "asc" }, "A-Z"), index.h("option", { value: "desc" }, "Z-A")));
17
17
  }
18
18
  static get assetsDirs() { return ["../assets"]; }
19
19
  };
@@ -124,11 +124,11 @@
124
124
  /*private*/
125
125
  display: flex;
126
126
  flex-wrap: wrap;
127
- overflow: hidden;
128
127
  width: 100%;
129
128
  height: 0px;
130
129
  max-height: 0px;
131
130
  opacity: 0;
131
+ overflow: hidden;
132
132
 
133
133
  /*public*/
134
134
  transition: all var(--transition, 0.5s);
@@ -139,6 +139,7 @@
139
139
  height: 100%;
140
140
  max-height: none;
141
141
  opacity: 1;
142
+ overflow: visible;
142
143
 
143
144
  /*public*/
144
145
  transition: all var(--transition, 0.5s);
@@ -7,7 +7,6 @@ export class EzCollapsibleBox {
7
7
  this.value = false;
8
8
  /**
9
9
  * Define o tamanho do texto e do ícone do componente.
10
- * Tamanhos suportados: "x-small", "small", "medium", "large" e "x-large".
11
10
  */
12
11
  this.headerSize = "small";
13
12
  /**
@@ -34,8 +33,9 @@ export class EzCollapsibleBox {
34
33
  getHeaderSize() {
35
34
  const sizeAlias = ["xsmall", "xlarge"];
36
35
  const sizeList = ["x-small", "small", "medium", "large", "x-large"];
37
- const headerSize = sizeAlias.includes(this.headerSize) ? this.headerSize.replace('x', 'x-') : this.headerSize;
38
- return sizeList.includes(headerSize) ? headerSize : "small";
36
+ const sizeLowerCase = this.headerSize && this.headerSize.toLowerCase();
37
+ const sizeCustom = sizeAlias.includes(sizeLowerCase) ? sizeLowerCase.replace('x', 'x-') : sizeLowerCase;
38
+ return sizeList.includes(sizeCustom) ? sizeCustom : "small";
39
39
  }
40
40
  render() {
41
41
  return (h("div", { class: "collapsible-box" },
@@ -96,15 +96,15 @@ export class EzCollapsibleBox {
96
96
  "type": "string",
97
97
  "mutable": false,
98
98
  "complexType": {
99
- "original": "string",
100
- "resolved": "string",
99
+ "original": "\"x-small\" | \"small\" | \"medium\" | \"large\" | \"x-large\" | undefined",
100
+ "resolved": "\"large\" | \"medium\" | \"small\" | \"x-large\" | \"x-small\"",
101
101
  "references": {}
102
102
  },
103
103
  "required": false,
104
104
  "optional": false,
105
105
  "docs": {
106
106
  "tags": [],
107
- "text": "Define o tamanho do texto e do \u00EDcone do componente.\nTamanhos suportados: \"x-small\", \"small\", \"medium\", \"large\" e \"x-large\"."
107
+ "text": "Define o tamanho do texto e do \u00EDcone do componente."
108
108
  },
109
109
  "attribute": "header-size",
110
110
  "reflect": true,
@@ -114,8 +114,8 @@ export class EzCollapsibleBox {
114
114
  "type": "string",
115
115
  "mutable": false,
116
116
  "complexType": {
117
- "original": "string",
118
- "resolved": "string",
117
+ "original": "\"left\" | \"right\"",
118
+ "resolved": "\"left\" | \"right\"",
119
119
  "references": {}
120
120
  },
121
121
  "required": false,
@@ -6,6 +6,6 @@ export const buildCheckBox = (fieldConfig) => {
6
6
  return buildField(fieldConfig.name, fieldConfig.label, fieldConfig.readOnly, false);
7
7
  };
8
8
  function buildField(fieldName, fieldLabel, readOnly, switchMode = false) {
9
- return (h("div", { class: "col col--sd-12 col--tb-3 align--middle padding-horizontal--small padding-bottom--large" },
9
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-align--middle ez-padding-horizontal--small ez-padding-bottom--large" },
10
10
  h("ez-check", { enabled: !readOnly, label: fieldLabel, mode: switchMode ? "switch" : "regular", "data-field-name": fieldName, key: fieldName })));
11
11
  }
@@ -9,6 +9,6 @@ export const buildComboBox = ({ name, label, readOnly, required }, properties) =
9
9
  else {
10
10
  options = prop;
11
11
  }
12
- return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
12
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
13
13
  h("ez-combo-box", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, key: name, options: options })));
14
14
  };
@@ -1,13 +1,13 @@
1
1
  import { h } from "@stencil/core";
2
2
  export const buildDate = ({ name, label, readOnly }) => {
3
- return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
3
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
4
4
  h("ez-date-input", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
5
5
  };
6
6
  export const buildTime = ({ name, label }) => {
7
- return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
7
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
8
8
  h("ez-time-input", { label: label, "data-field-name": name, key: name })));
9
9
  };
10
10
  export const buildTimeDate = ({ name, label }) => {
11
- return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
11
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
12
12
  h("ez-date-time-input", { label: label, "data-field-name": name, key: name })));
13
13
  };
@@ -1,5 +1,5 @@
1
1
  import { h } from "@stencil/core";
2
2
  export const buildFile = ({ name, label, readOnly }) => {
3
- return (h("div", { class: "col col--sd-12 padding-horizontal--small" },
3
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small" },
4
4
  h("ez-upload", { enabled: !readOnly, label: label, "data-field-name": name, key: name })));
5
5
  };
@@ -8,6 +8,6 @@ export const buildInteger = ({ name, label, readOnly }) => {
8
8
  return buildNumeric(name, label, readOnly, 0, 0);
9
9
  };
10
10
  function buildNumeric(fieldName, fieldLabel, readOnly, precision, prettyPrecision) {
11
- return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
11
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
12
12
  h("ez-number-input", { enabled: !readOnly, label: fieldLabel, precision: precision, prettyPrecision: prettyPrecision, "data-field-name": fieldName, key: fieldName })));
13
13
  }
@@ -1,5 +1,5 @@
1
1
  import { h } from "@stencil/core";
2
2
  export const buildSearch = ({ name, label, readOnly, required }) => {
3
- return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
3
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
4
4
  h("ez-search", { enabled: !readOnly, suppressEmptyOption: required, label: label, "data-field-name": name, key: name })));
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { h } from "@stencil/core";
2
2
  export const buildTextArea = ({ name, label, readOnly }) => {
3
- return (h("div", { class: "col col--sd-12 padding-horizontal--small", key: name },
3
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-padding-horizontal--small", key: name },
4
4
  h("ez-text-area", { enabled: !readOnly, label: label, "data-field-name": name })));
5
5
  };
@@ -1,5 +1,5 @@
1
1
  import { h } from "@stencil/core";
2
2
  export const buildTextInput = ({ name, label }) => {
3
- return (h("div", { class: "col col--sd-12 col--tb-3 padding-horizontal--small" },
3
+ return (h("div", { class: "ez-col ez-col--sd-12 ez-col--tb-3 ez-padding-horizontal--small" },
4
4
  h("ez-text-input", { label: label, "data-field-name": name, key: name })));
5
5
  };
@@ -1,6 +1,6 @@
1
1
  import { h } from "@stencil/core";
2
2
  import { FormItem } from "./FormItem";
3
3
  export const FormSheet = ({ store, source }) => {
4
- return (h("div", { class: "dynamic-content box__container" },
5
- h("div", { class: "row padding-vertical--small" }, source.items.map(item => h(FormItem, { store: store, source: item })))));
4
+ return (h("div", { class: "dynamic-content ez-box__container" },
5
+ h("div", { class: "ez-row ez-padding-vertical--small" }, source.items.map(item => h(FormItem, { store: store, source: item })))));
6
6
  };
@@ -171,11 +171,11 @@ export class EzGrid {
171
171
  return null;
172
172
  }
173
173
  return [
174
- h("div", { class: "text text--primary text--medium margin-right--medium" },
175
- h("strong", { class: "text text--primary text--medium" }, `${this._navigationFirstRow}-${this._navigationLastRow}`),
174
+ h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium" },
175
+ h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, `${this._navigationFirstRow}-${this._navigationLastRow}`),
176
176
  ` de ${this._navigationTotalRows}`),
177
- h("ez-button", { size: "small", iconName: "chevron-left", class: "margin-right--medium", mode: "icon", enabled: this._navigationHasPrevious, onClick: () => this._gridController.previousPage(), label: "P\u00E1gina anterior" }),
178
- h("ez-button", { size: "small", iconName: "chevron-right", class: "margin-right--medium", mode: "icon", enabled: this._navigationHasNext, onClick: () => this._gridController.nextPage(), label: "Pr\u00F3xima P\u00E1gina" })
177
+ h("ez-button", { size: "small", iconName: "chevron-left", class: "ez-margin-right--medium", mode: "icon", enabled: this._navigationHasPrevious, onClick: () => this._gridController.previousPage(), label: "P\u00E1gina anterior" }),
178
+ h("ez-button", { size: "small", iconName: "chevron-right", class: "ez-margin-right--medium", mode: "icon", enabled: this._navigationHasNext, onClick: () => this._gridController.nextPage(), label: "Pr\u00F3xima P\u00E1gina" })
179
179
  ];
180
180
  }
181
181
  applyConfig(config) {
@@ -192,13 +192,13 @@ export class EzGrid {
192
192
  }
193
193
  render() {
194
194
  return (h(Host, null,
195
- h("div", { class: "box box--shadow padding--medium grid-header" },
195
+ h("div", { class: "ez-box ez-box--shadow ez-padding--medium grid-header" },
196
196
  h("div", { class: "grid-header__container" },
197
197
  h("slot", { name: "leftButtons" })),
198
198
  h("div", { class: "grid-header__container" },
199
199
  this.getPaginationControl(),
200
- h("ez-button", { size: "small", iconName: "settings", class: "button--secondary", mode: "icon", onClick: () => { this.openConfig(); } }))),
201
- h("div", { class: "grid__container ag-sankhya-theme", ref: elem => this._container = elem }),
200
+ h("ez-button", { size: "small", iconName: "settings", class: "ez-button--secondary", mode: "icon", onClick: () => { this.openConfig(); } }))),
201
+ h("div", { class: "grid__container ez-grid", ref: elem => this._container = elem }),
202
202
  h("div", { class: "grid__footer" }),
203
203
  h("ez-modal", { modalSize: "small", closeEsc: true, closeOutsideClick: true, opened: this._popUpVisible, onEzCloseModal: () => this._popUpVisible = false },
204
204
  h("grid-config", { ref: ref => this._gridConfig = ref, config: this.config, selectedTab: "Colunas", onConfigFinish: evt => { this.applyConfig(evt.detail); this.configChange.emit(evt.detail); }, onConfigCancel: _evt => this.closeConfig() }))));
@@ -395,7 +395,7 @@ export class GridConfig {
395
395
  h("ez-list", { ref: (el) => this._orderList = el, class: this.selectedTab === "Ordenação das linhas" ? "heigth-calc" : "hidden", dataSource: this._orderListItems, ezSelectable: true, onEzChange: ev => this.handleOrderListChange(ev), ezDraggable: true, itemSlotBuilder: (item) => this.buildOrderListSlot(item) })),
396
396
  h("div", { class: "grid-config__footer" },
397
397
  h("ez-button", { class: "padding-right--medium", label: "Cancelar", onClick: () => this.closeConfig() }),
398
- h("ez-button", { label: "Concluir", class: "button--primary", onClick: () => this.finish() }))));
398
+ h("ez-button", { label: "Concluir", class: "ez-button--primary", onClick: () => this.finish() }))));
399
399
  }
400
400
  static get is() { return "grid-config"; }
401
401
  static get encapsulation() { return "scoped"; }
@@ -4,7 +4,7 @@ export class SelectBox {
4
4
  this.selectedOption = { value: "na", label: "N/A" };
5
5
  }
6
6
  render() {
7
- return (h("ez-combo-box", { class: "grid-config-combo inverted", label: "", suppressSearch: true, value: this.selectedOption, enabled: true, canShowError: false, suppressEmptyOption: true },
7
+ return (h("ez-combo-box", { class: "grid-config-combo ez-input--inverted", label: "", suppressSearch: true, value: this.selectedOption, enabled: true, canShowError: false, suppressEmptyOption: true },
8
8
  h("option", { value: "na" }, "N/A"),
9
9
  h("option", { value: "asc" }, "A-Z"),
10
10
  h("option", { value: "desc" }, "Z-A")));
@@ -33,7 +33,7 @@
33
33
  -webkit-mask-image: linear-gradient(90deg, transparent 20px, #000 48px);
34
34
  }
35
35
 
36
- .scroll.midle {
36
+ .scroll.middle {
37
37
  -webkit-mask-image: linear-gradient(90deg, transparent 20px, #000 48px, #000 calc(100% - 48px), transparent calc(100% - 20px));
38
38
  }
39
39
 
@@ -129,7 +129,7 @@ export class EzTabselector {
129
129
  else {
130
130
  this._forwardButton.classList.add("hidden");
131
131
  }
132
- const classNames = ["", "startHidden", "endHidden", "midle"];
132
+ const classNames = ["", "startHidden", "endHidden", "middle"];
133
133
  const currentClass = classNames[Number(this._startHidden) | Number(this._endHidden) << 1];
134
134
  classNames.forEach((name) => {
135
135
  if (name !== currentClass && container.classList.contains(name)) {