@sankhyalabs/ezui 2.4.1 → 2.5.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.
@@ -4,6 +4,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8646c40d.js');
6
6
  const DialogType = require('./DialogType-aa435c52.js');
7
+ const core = require('@sankhyalabs/core');
7
8
 
8
9
  const ezDialogCss = ":host{--dialog__container-padding:var(--space--large, 24px);--dialog__btn__close--background-color:var(--title--primary, #2b3a54);--dialog__btn__no--padding-right:var(--space--large, 24px);--dialog__btn__close__image:url('data:image/svg+xml;utf8,<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg%22%3E<path d=\"M 7.0060773,5.995511 11.461972,1.5397722 c 0.132856,-0.1328413 0.207547,-0.3130253 0.207547,-0.5009046 0,-0.18786999 -0.07469,-0.3680541 -0.207547,-0.5009048 -0.132857,-0.13284126 -0.31302,-0.20748126 -0.500927,-0.20748126 -0.187812,0 -0.36807,0.07464 -0.500926,0.20748126 L 6.0042244,4.9937015 1.5482921,0.5379628 C 1.4154357,0.40512154 1.2352533,0.33048154 1.0473657,0.33048154 c -0.18787813,0 -0.36807,0.07464 -0.50092647,0.20748126 -0.13285646,0.1328507 -0.20749026,0.31303481 -0.20749026,0.5009048 0,0.1878793 0.0746338,0.3680633 0.20749026,0.5009046 L 5.0023715,5.995511 0.54643923,10.452213 c -0.0676086,0.06534 -0.12151598,0.14352 -0.15859681,0.229916 -0.0370714,0.08639 -0.0565645,0.1794 -0.0573369,0.27335 -7.724e-4,0.09404 0.0171873,0.187331 0.0528423,0.274293 0.0356455,0.08705 0.0882688,0.166087 0.15479148,0.23256 0.0665321,0.06648 0.14562277,0.11897 0.2326735,0.154567 0.0870507,0.0356 0.18031463,0.05344 0.2743433,0.05259 0.094029,-8.5e-4 0.1869528,-0.02049 0.2733331,-0.0576 0.08639,-0.0372 0.1645078,-0.09121 0.2298029,-0.158817 L 6.0042244,6.9973204 10.460119,11.453078 c 0.132856,0.132851 0.313114,0.207444 0.500926,0.207444 0.187907,0 0.36807,-0.07459 0.500927,-0.207444 0.132856,-0.13285 0.207547,-0.313006 0.207547,-0.500904 0,-0.187898 -0.07469,-0.368054 -0.207547,-0.500905 z\"/></svg>');--dialog__title--font-pattern:var(--font-pattern, \"Roboto\");--dialog__title--padding-left:var(--space--small, 6px);--dialog__title__container--padding-bottom:var(--space--medium, 12px);--dialog__title--weight--large:var(--text-weight--large, 600);--dialog__body--font-pattern:var(--font-pattern, \"Roboto\");--dialog__body--text-shadow:var(--text-shadow, \"0 0 0 #353535, 0 0 1px transparent\");--dialog__body--text-weight--medium:var(--text-weight--medium, 400);--dialog__body--padding-bottom:var(--space--large, 24px);--dialog__body--font-size:var(--text--medium, 14px);--dialog__body--color:var(--text--primary, #626e82);--dialog__icon--color:var(--text--inverted, #fff);--dialog__critical--background-color:var(--color--alert-error-800, #BD0025);--dialog__warning--background-color:var(--color--alert-warning-500, #EFB103);--dialog__success--background-color:var(--color--alert-success-500, #00523c);--dialog-z-index:var(--most-visible, 3);--dialog--warning__image:url('data: image/svg+xml;utf8,<svg width=\"15\" height=\"15\" viewBox=\"0 0 15 15\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 7.5,0 0,13 h 15 z m 0,2.73684 5.1341,8.89476 H 2.36591 Z M 6.81818,5.47368 V 8.21053 H 8.18182 V 5.47368 Z m 0,4.10527 V 10.9474 H 8.18182 V 9.57895\"/></svg>');--dialog--critical__image:url('data: image/svg+xml;utf8,<svg width=\"13\" height=\"13\" viewBox=\"0 0 13 13\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 7.6534493,6.4948538 12.762051,1.3864299 C 12.914368,1.2341297 13,1.027552 13,0.81215179 13,0.59676225 12.914369,0.39018443 12.762051,0.23787352 12.609733,0.08557341 12.40318,0 12.187747,0 11.972425,0 11.765762,0.08557341 11.613445,0.23787352 L 6.5048431,5.3462975 1.3961977,0.23787352 C 1.2438802,0.08557341 1.0373043,0 0.82189458,0 0.60649572,0 0.39990901,0.08557341 0.24759147,0.23787352 0.09527396,0.39018443 0.00970766,0.59676225 0.00970766,0.81215179 c 0,0.21540021 0.0855663,0.42197791 0.23788381,0.57427811 L 5.3562369,6.4948538 0.24759147,11.604381 c -0.0775121,0.07492 -0.13931586,0.164543 -0.18182835,0.263595 -0.04250169,0.09905 -0.064850182,0.205678 -0.0657357237,0.313391 -8.8554258e-4,0.107813 0.0197049337,0.214771 0.0605827337,0.314472 0.04086693,0.0998 0.10119858,0.190415 0.17746563,0.266625 0.0762779,0.07622 0.16695386,0.136398 0.26675594,0.177208 0.099802,0.04082 0.20672745,0.06127 0.31452961,0.06029 0.1078025,-9.53e-4 0.21433799,-0.0235 0.31337139,-0.06604 0.099045,-0.04265 0.1886052,-0.104571 0.263465,-0.182081 L 6.5048431,7.6434102 11.613445,12.751855 c 0.152317,0.152312 0.35898,0.237831 0.574302,0.237831 0.215433,0 0.421986,-0.08552 0.574304,-0.237831 C 12.914368,12.599545 13,12.393 13,12.177578 13,11.962157 12.91437,11.75561 12.762051,11.603299 Z\"/></svg>')}h2{margin-block-start:0;margin-block-end:0;margin-inline-start:0px;margin-inline-end:0px}.overlay{position:fixed;display:flex;top:0px;z-index:var(--dialog-z-index);left:0px;width:100%;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.dialog{display:flex;width:80%;position:absolute;top:50%;left:50%;margin-right:-50%;box-sizing:border-box;transform:translate(-50%, -50%);box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122)}@media screen and (min-width: 768px){.dialog{width:50%}}@media screen and (min-width: 992px){.dialog{width:33.33333%}}.dialog__container{width:100%;background:#FFFF;border-radius:0px 6px 6px 0px;box-sizing:border-box;padding:var(--dialog__container-padding)}.dialog__container--default{border-radius:6px 6px 6px 6px}.dialog__critical--indicator{box-sizing:border-box;width:12px;border-radius:6px 0px 0px 6px;background-color:var(--dialog__critical--background-color)}.dialog__warning--indicator{width:12px;border-radius:6px 0px 0px 6px;box-sizing:border-box;background-color:var(--dialog__warning--background-color)}.dialog__success--indicator{width:12px;border-radius:6px 0px 0px 6px;box-sizing:border-box;background-color:var(--dialog__success--background-color)}.message{font-size:var(--dialog__body--font-size);font-weight:var(--dialog__body--text-weight--medium);font-family:var(--dialog__body--font-pattern);text-shadow:var(--dialog__body--text-shadow);padding-bottom:var(--dialog__body--padding-bottom);color:var(--dialog__body--color);max-height:30vh;content-visibility:auto;margin-bottom:24px;overflow-y:auto}.changeable__icon{background:var(--dialog__warning--background-color);--ez-icon--color:var(--dialog__icon--color);display:grid;place-items:center;width:26px;height:26px;border-radius:50%}.changeable__icon.critical{background:var(--dialog__critical--background-color)}.title{display:flex;font-family:var(--dialog__title--font-pattern);margin:0;font-weight:var(--dialog__title--weight--large);line-height:0}.title__container{display:flex;padding-bottom:var(--dialog__title__container--padding-bottom)}.title__box{display:flex;width:100%;align-items:center;align-self:center}.title__label{padding-left:var(--dialog__title--padding-left)}.title__label--no-icon{padding-left:0}.title-icon--critical{background-color:var(--dialog__critical--background-color)}.title-icon--success{background-color:var(--dialog__success--background-color)}.title-icon--warn{background-color:var(--dialog__warning--background-color)}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;width:10%;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:var(--dialog__btn__close--background-color);width:12px;height:12px;-webkit-mask-image:var(--dialog__btn__close__image);mask-image:var(--dialog__btn__close__image)}.title-icon::after{content:'';display:flex;background-color:#FFFF;width:15px;height:15px;-webkit-mask-image:var(--dialog--warning__image);mask-image:var(--dialog--warning__image)}.button-yes-no__container{display:flex;box-sizing:border-box;align-self:center;align-items:center;justify-content:flex-end}.button__cancel{padding-right:var(--dialog__btn__no--padding-right)}.button__confirm{--ez-button--background-color:var(--color--primary);--ez-button--color:var(--color--inverted);--ez-button--hover--background-color:var(--color--primary-600);--ez-button--hover-color:var(--color--inverted)}.button__confirm--danger{--ez-button--background-color:var(--color--alert-error-800, #BD0025);--ez-button--color:var(--color--inverted);--ez-button--hover--background-color:var(--color-alert--error-900, #a10020);--ez-button--hover-color:var(--color--inverted)}.button__confirm--container{display:flex;justify-content:flex-end}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}";
9
10
 
@@ -128,14 +129,18 @@ let EzDialog = class {
128
129
  }
129
130
  }
130
131
  }
132
+ componentDidLoad() {
133
+ core.ElementIDUtils.addIDInfo(this._element);
134
+ }
131
135
  render() {
132
136
  if (this.opened && this._currentMessage) {
133
- return (index.h("div", { class: "overlay" }, index.h("div", { class: "dialog" }, this.getTypeIndicatorElement(this._currentMessage), index.h("div", { class: this.getClassContainer(this._currentMessage) }, index.h("div", { class: "title__container" }, index.h("div", { class: "title__box" }, this.getIconElement(this._currentMessage), index.h("div", { class: this.getClassTitleLabel(this._currentMessage), innerHTML: this._currentMessage.title })), index.h("button", { class: "btn-close", onClick: () => this.handleButtonClick(false) })), index.h("div", { class: "message", innerHTML: this._currentMessage.message }), this._currentMessage.confirm &&
134
- index.h("div", { class: "button-yes-no__container" }, index.h("ez-button", { class: "button__cancel", label: this._currentMessage.labelCancel, onClick: () => this.handleButtonClick(false) }), index.h("ez-button", { class: !this._currentMessage.btnConfirmDanger ? "button__confirm" : "button__confirm--danger", label: this._currentMessage.labelConfirm, onClick: () => this.handleButtonClick(true) })), !this._currentMessage.confirm &&
135
- index.h("div", { class: "button__confirm--container" }, index.h("ez-button", { label: 'Ok', class: "button__confirm", onClick: () => this.handleButtonClick(true) }))))));
137
+ return (index.h("div", { class: "overlay" }, index.h("div", { class: "dialog" }, this.getTypeIndicatorElement(this._currentMessage), index.h("div", { class: this.getClassContainer(this._currentMessage) }, index.h("div", { class: "title__container" }, index.h("div", { class: "title__box" }, this.getIconElement(this._currentMessage), index.h("div", { class: this.getClassTitleLabel(this._currentMessage), innerHTML: this._currentMessage.title, "data-element-id": core.ElementIDUtils.getInternalIDInfo("title") })), index.h("button", { class: "btn-close", onClick: () => this.handleButtonClick(false), "data-element-id": core.ElementIDUtils.getInternalIDInfo("buttonClose") })), index.h("div", { class: "message", innerHTML: this._currentMessage.message, "data-element-id": core.ElementIDUtils.getInternalIDInfo("message") }), this._currentMessage.confirm &&
138
+ index.h("div", { class: "button-yes-no__container" }, index.h("ez-button", { class: "button__cancel", "data-element-id": core.ElementIDUtils.getInternalIDInfo("cancel"), label: this._currentMessage.labelCancel, onClick: () => this.handleButtonClick(false) }), index.h("ez-button", { class: !this._currentMessage.btnConfirmDanger ? "button__confirm" : "button__confirm--danger", "data-element-id": core.ElementIDUtils.getInternalIDInfo("confirm"), label: this._currentMessage.labelConfirm, onClick: () => this.handleButtonClick(true) })), !this._currentMessage.confirm &&
139
+ index.h("div", { class: "button__confirm--container" }, index.h("ez-button", { label: 'Ok', "data-element-id": core.ElementIDUtils.getInternalIDInfo("ok"), class: "button__confirm", onClick: () => this.handleButtonClick(true) }))))));
136
140
  }
137
141
  return null;
138
142
  }
143
+ get _element() { return index.getElement(this); }
139
144
  };
140
145
  EzDialog.style = ezDialogCss;
141
146
 
@@ -114787,15 +114787,10 @@ class AgGridController {
114787
114787
  if (this._dataUnit) {
114788
114788
  this._dataUnit.sortingProvider = this;
114789
114789
  }
114790
- this._dataSource = new DataSource(this._dataUnit, this, options);
114791
114790
  this._gridOptions = {
114792
114791
  localeText: gridTerms,
114793
- rowModelType: "serverSide",
114794
- serverSideSortOnServer: true,
114795
114792
  rowSelection: this._multipleSelection ? "multiple" : "single",
114796
- serverSideDatasource: this._dataSource,
114797
114793
  sortingOrder: ['desc', 'asc', null],
114798
- columnDefs: this._colDefs,
114799
114794
  blockLoadDebounceMillis: this.BLOCK_LOAD_DEBOUNCE,
114800
114795
  navigateToNextCell: this.navigateToNextCell.bind(this),
114801
114796
  getRowNodeId: this._dataUnit ? (params) => typeof params === "string" ? params : params[this._idAttribName] : undefined,
@@ -114821,6 +114816,7 @@ class AgGridController {
114821
114816
  headerCheckStatusSetter: (selectAll) => this.updateSelectionForAll(selectAll)
114822
114817
  }
114823
114818
  };
114819
+ this.defineRowModelType(this._gridOptions, options);
114824
114820
  this.setOptionsEvents(this._gridOptions);
114825
114821
  this.setOptionsSupress(this._gridOptions);
114826
114822
  if (this._enterprise) {
@@ -114879,6 +114875,14 @@ class AgGridController {
114879
114875
  }
114880
114876
  return null;
114881
114877
  }
114878
+ defineRowModelType(opt, sourceOptions) {
114879
+ if (this._dataUnit != undefined) {
114880
+ opt.rowModelType = "serverSide";
114881
+ opt.serverSideDatasource = new DataSource(this._dataUnit, this, sourceOptions);
114882
+ opt.serverSideSortOnServer = true;
114883
+ opt.columnDefs = this._colDefs;
114884
+ }
114885
+ }
114882
114886
  setOptionsEvents(opt) {
114883
114887
  opt.onSortChanged = e => this.onCallStateChange("sort", e);
114884
114888
  opt.onColumnResized = e => this.onCallStateChange("columnResize", e);
@@ -115034,7 +115038,7 @@ class AgGridController {
115034
115038
  newColDefs.push(this.buildColDef(c));
115035
115039
  });
115036
115040
  this._colDefs = newColDefs;
115037
- if (this._gridOptions) {
115041
+ if (this._gridOptions && this._gridOptions.api) {
115038
115042
  this._gridOptions.api.setColumnDefs(this._colDefs);
115039
115043
  }
115040
115044
  }
@@ -115126,10 +115130,11 @@ class AgGridController {
115126
115130
  (_a = this._gridOptions.api.getDisplayedRowAtIndex(index)) === null || _a === void 0 ? void 0 : _a.setSelected(true);
115127
115131
  }
115128
115132
  buildColDef(source) {
115133
+ var _a, _b, _c;
115129
115134
  let tooltip = undefined;
115130
- const propSortable = core.StringUtils.getBooleanValue(source.props.get("gridSortable"), true);
115131
- if (source.props.get("gridHeaderTooltip")) {
115132
- tooltip = source.props.get("gridHeaderTooltip");
115135
+ const propSortable = core.StringUtils.getBooleanValue((_a = source.props) === null || _a === void 0 ? void 0 : _a.get("gridSortable"), true);
115136
+ if ((_b = source.props) === null || _b === void 0 ? void 0 : _b.get("gridHeaderTooltip")) {
115137
+ tooltip = (_c = source.props) === null || _c === void 0 ? void 0 : _c.get("gridHeaderTooltip");
115133
115138
  }
115134
115139
  else if (propSortable === false) {
115135
115140
  tooltip = "Coluna não pode ser ordenada";
@@ -161,11 +161,31 @@ let EzList = class {
161
161
  this._listItems = newList;
162
162
  }
163
163
  }
164
+ buildIdDraggableListAndSelectable() {
165
+ const shadow = this._element.shadowRoot;
166
+ const draggableList = shadow.querySelectorAll(".draggable-list");
167
+ draggableList === null || draggableList === void 0 ? void 0 : draggableList.forEach((draggable, index) => {
168
+ var _a, _b;
169
+ let suffix = "draggableList";
170
+ const group = (_b = (_a = this._listGroupItems) === null || _a === void 0 ? void 0 : _a[index]) === null || _b === void 0 ? void 0 : _b.group;
171
+ if (this.useGroups && group) {
172
+ suffix = suffix.concat('_', group);
173
+ }
174
+ core.ElementIDUtils.addIDInfoIfNotExists(draggable, suffix);
175
+ });
176
+ const selectable = shadow.querySelectorAll(".selectable-container");
177
+ selectable === null || selectable === void 0 ? void 0 : selectable.forEach((item) => {
178
+ core.ElementIDUtils.addIDInfoIfNotExists(item, "selectable");
179
+ });
180
+ }
164
181
  componentWillLoad() {
165
182
  this._listItemsHistory = [];
166
183
  }
167
184
  componentWillRender() {
168
185
  this.createList();
186
+ if (this._element) {
187
+ this.buildIdDraggableListAndSelectable();
188
+ }
169
189
  }
170
190
  componentDidLoad() {
171
191
  core.ElementIDUtils.addIDInfo(this._element);
@@ -3,6 +3,7 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-8646c40d.js');
6
+ const core = require('@sankhyalabs/core');
6
7
 
7
8
  const ezToastCss = ":host{--ez-toast__btn__close__image:url('data:image/svg+xml;utf8,<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg%22%3E<path d=\"M 7.0060773,5.995511 11.461972,1.5397722 c 0.132856,-0.1328413 0.207547,-0.3130253 0.207547,-0.5009046 0,-0.18786999 -0.07469,-0.3680541 -0.207547,-0.5009048 -0.132857,-0.13284126 -0.31302,-0.20748126 -0.500927,-0.20748126 -0.187812,0 -0.36807,0.07464 -0.500926,0.20748126 L 6.0042244,4.9937015 1.5482921,0.5379628 C 1.4154357,0.40512154 1.2352533,0.33048154 1.0473657,0.33048154 c -0.18787813,0 -0.36807,0.07464 -0.50092647,0.20748126 -0.13285646,0.1328507 -0.20749026,0.31303481 -0.20749026,0.5009048 0,0.1878793 0.0746338,0.3680633 0.20749026,0.5009046 L 5.0023715,5.995511 0.54643923,10.452213 c -0.0676086,0.06534 -0.12151598,0.14352 -0.15859681,0.229916 -0.0370714,0.08639 -0.0565645,0.1794 -0.0573369,0.27335 -7.724e-4,0.09404 0.0171873,0.187331 0.0528423,0.274293 0.0356455,0.08705 0.0882688,0.166087 0.15479148,0.23256 0.0665321,0.06648 0.14562277,0.11897 0.2326735,0.154567 0.0870507,0.0356 0.18031463,0.05344 0.2743433,0.05259 0.094029,-8.5e-4 0.1869528,-0.02049 0.2733331,-0.0576 0.08639,-0.0372 0.1645078,-0.09121 0.2298029,-0.158817 L 6.0042244,6.9973204 10.460119,11.453078 c 0.132856,0.132851 0.313114,0.207444 0.500926,0.207444 0.187907,0 0.36807,-0.07459 0.500927,-0.207444 0.132856,-0.13285 0.207547,-0.313006 0.207547,-0.500904 0,-0.187898 -0.07469,-0.368054 -0.207547,-0.500905 z\"/></svg>');--ez-toast__container-z-index:var(--more-visible, 2);--ez-toast__container--background-color:var(--color--secondary, #383c45);--ez-toast__icon--padding-left:var(--space--small, 6px)}.toast__container{position:fixed;display:flex;bottom:100px;z-index:var(--ez-toast__container-z-index);left:100px;width:280px;box-sizing:border-box;background-color:var(--ez-toast__container--background-color);border-radius:6px;align-items:center;padding:12px;visibility:hidden}.message__container{font-family:var(--font-pattern, \"Roboto\");text-shadow:0 0 0 #353535, 0 0 1px transparent;color:#FFFFFF;font-size:14px;width:90%;overflow:hidden;hyphens:auto;height:auto;-webkit-box-orient:vertical;-webkit-line-clamp:4;display:-webkit-box;text-overflow:ellipsis}.message__conteiner--icon{padding-left:var(--ez-toast__icon--padding-left);width:80%}.btn-close{margin-top:3px;display:flex;justify-content:flex-end;align-self:flex-start;padding:0;outline:none;width:10%;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:#FFFFFF;width:12px;height:12px;-webkit-mask-image:var(--ez-toast__btn__close__image);mask-image:var(--ez-toast__btn__close__image)}.toast__container--opened{animation:fadein 0.5s, fadeout 0.5s 3s;visibility:visible}@-webkit-keyframes fadein{from{left:-100px;opacity:0}to{left:100px;opacity:1}}@keyframes fadein{from{left:-100px;opacity:0}to{left:100px;opacity:1}}@-webkit-keyframes fadeout{from{left:100px;opacity:1}to{bottom:0;opacity:0}}@keyframes fadeout{from{left:100px;opacity:1}to{bottom:0;opacity:0}}";
8
9
 
@@ -77,11 +78,22 @@ let EzToast = class {
77
78
  this.container.classList.add(this._toastOpenedClass);
78
79
  this.container.style.animation = `fadein 0.5s, fadeout 0.5s ${this.fadeTime / 1000}s`;
79
80
  }
81
+ buildDataElementId() {
82
+ var _a, _b;
83
+ const dataElementId = core.ElementIDUtils.addIDInfo(this._element);
84
+ const attribute = core.ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME;
85
+ (_a = this._elemBtnClose) === null || _a === void 0 ? void 0 : _a.setAttribute(attribute, `${dataElementId}_buttonClose`);
86
+ (_b = this._elemText) === null || _b === void 0 ? void 0 : _b.setAttribute(attribute, `${dataElementId}_title`);
87
+ }
88
+ componentDidLoad() {
89
+ this.buildDataElementId();
90
+ }
80
91
  render() {
81
92
  return (index.h(index.Host, null, index.h("div", { ref: (el) => this.container = el, class: "toast__container" }, this._currentMessageInfo.useIcon &&
82
- index.h("slot", { name: "icon" }), index.h("div", { lang: this._lang, class: this._currentMessageInfo.useIcon ? "message__container message__conteiner--icon" : "message__container", title: this._currentMessageInfo.message, innerHTML: this._currentMessageInfo.message }), this._currentMessageInfo.canClose &&
83
- index.h("button", { class: "btn-close", onClick: () => { this.hideToast(); } }))));
93
+ index.h("slot", { name: "icon" }), index.h("div", { lang: this._lang, ref: (el) => this._elemText = el, class: this._currentMessageInfo.useIcon ? "message__container message__conteiner--icon" : "message__container", title: this._currentMessageInfo.message, innerHTML: this._currentMessageInfo.message }), this._currentMessageInfo.canClose &&
94
+ index.h("button", { class: "btn-close", onClick: () => { this.hideToast(); }, ref: (el) => this._elemBtnClose = el }))));
84
95
  }
96
+ get _element() { return index.getElement(this); }
85
97
  };
86
98
  EzToast.style = ezToastCss;
87
99
 
@@ -1,5 +1,6 @@
1
- import { Component, h, Prop, Method, Event, forceUpdate } from "@stencil/core";
1
+ import { Component, h, Prop, Method, Event, forceUpdate, Element } from "@stencil/core";
2
2
  import { DialogType } from "./DialogType";
3
+ import { ElementIDUtils } from "@sankhyalabs/core";
3
4
  class Message {
4
5
  constructor(title, message, dialogType, confirm, icon, labelCancel, labelConfirm, btnConfirmDanger, callBack) {
5
6
  this.title = title;
@@ -118,6 +119,9 @@ export class EzDialog {
118
119
  }
119
120
  }
120
121
  }
122
+ componentDidLoad() {
123
+ ElementIDUtils.addIDInfo(this._element);
124
+ }
121
125
  render() {
122
126
  if (this.opened && this._currentMessage) {
123
127
  return (h("div", { class: "overlay" },
@@ -127,16 +131,16 @@ export class EzDialog {
127
131
  h("div", { class: "title__container" },
128
132
  h("div", { class: "title__box" },
129
133
  this.getIconElement(this._currentMessage),
130
- h("div", { class: this.getClassTitleLabel(this._currentMessage), innerHTML: this._currentMessage.title })),
131
- h("button", { class: "btn-close", onClick: () => this.handleButtonClick(false) })),
132
- h("div", { class: "message", innerHTML: this._currentMessage.message }),
134
+ h("div", { class: this.getClassTitleLabel(this._currentMessage), innerHTML: this._currentMessage.title, "data-element-id": ElementIDUtils.getInternalIDInfo("title") })),
135
+ h("button", { class: "btn-close", onClick: () => this.handleButtonClick(false), "data-element-id": ElementIDUtils.getInternalIDInfo("buttonClose") })),
136
+ h("div", { class: "message", innerHTML: this._currentMessage.message, "data-element-id": ElementIDUtils.getInternalIDInfo("message") }),
133
137
  this._currentMessage.confirm &&
134
138
  h("div", { class: "button-yes-no__container" },
135
- h("ez-button", { class: "button__cancel", label: this._currentMessage.labelCancel, onClick: () => this.handleButtonClick(false) }),
136
- h("ez-button", { class: !this._currentMessage.btnConfirmDanger ? "button__confirm" : "button__confirm--danger", label: this._currentMessage.labelConfirm, onClick: () => this.handleButtonClick(true) })),
139
+ h("ez-button", { class: "button__cancel", "data-element-id": ElementIDUtils.getInternalIDInfo("cancel"), label: this._currentMessage.labelCancel, onClick: () => this.handleButtonClick(false) }),
140
+ h("ez-button", { class: !this._currentMessage.btnConfirmDanger ? "button__confirm" : "button__confirm--danger", "data-element-id": ElementIDUtils.getInternalIDInfo("confirm"), label: this._currentMessage.labelConfirm, onClick: () => this.handleButtonClick(true) })),
137
141
  !this._currentMessage.confirm &&
138
142
  h("div", { class: "button__confirm--container" },
139
- h("ez-button", { label: 'Ok', class: "button__confirm", onClick: () => this.handleButtonClick(true) }))))));
143
+ h("ez-button", { label: 'Ok', "data-element-id": ElementIDUtils.getInternalIDInfo("ok"), class: "button__confirm", onClick: () => this.handleButtonClick(true) }))))));
140
144
  }
141
145
  return null;
142
146
  }
@@ -336,4 +340,5 @@ export class EzDialog {
336
340
  }
337
341
  }
338
342
  }; }
343
+ static get elementRef() { return "_element"; }
339
344
  }
@@ -45,15 +45,10 @@ export default class AgGridController {
45
45
  if (this._dataUnit) {
46
46
  this._dataUnit.sortingProvider = this;
47
47
  }
48
- this._dataSource = new DataSource(this._dataUnit, this, options);
49
48
  this._gridOptions = {
50
49
  localeText: gridTerms,
51
- rowModelType: "serverSide",
52
- serverSideSortOnServer: true,
53
50
  rowSelection: this._multipleSelection ? "multiple" : "single",
54
- serverSideDatasource: this._dataSource,
55
51
  sortingOrder: ['desc', 'asc', null],
56
- columnDefs: this._colDefs,
57
52
  blockLoadDebounceMillis: this.BLOCK_LOAD_DEBOUNCE,
58
53
  navigateToNextCell: this.navigateToNextCell.bind(this),
59
54
  getRowNodeId: this._dataUnit ? (params) => typeof params === "string" ? params : params[this._idAttribName] : undefined,
@@ -79,6 +74,7 @@ export default class AgGridController {
79
74
  headerCheckStatusSetter: (selectAll) => this.updateSelectionForAll(selectAll)
80
75
  }
81
76
  };
77
+ this.defineRowModelType(this._gridOptions, options);
82
78
  this.setOptionsEvents(this._gridOptions);
83
79
  this.setOptionsSupress(this._gridOptions);
84
80
  if (this._enterprise) {
@@ -137,6 +133,14 @@ export default class AgGridController {
137
133
  }
138
134
  return null;
139
135
  }
136
+ defineRowModelType(opt, sourceOptions) {
137
+ if (this._dataUnit != undefined) {
138
+ opt.rowModelType = "serverSide";
139
+ opt.serverSideDatasource = new DataSource(this._dataUnit, this, sourceOptions);
140
+ opt.serverSideSortOnServer = true;
141
+ opt.columnDefs = this._colDefs;
142
+ }
143
+ }
140
144
  setOptionsEvents(opt) {
141
145
  opt.onSortChanged = e => this.onCallStateChange("sort", e);
142
146
  opt.onColumnResized = e => this.onCallStateChange("columnResize", e);
@@ -292,7 +296,7 @@ export default class AgGridController {
292
296
  newColDefs.push(this.buildColDef(c));
293
297
  });
294
298
  this._colDefs = newColDefs;
295
- if (this._gridOptions) {
299
+ if (this._gridOptions && this._gridOptions.api) {
296
300
  this._gridOptions.api.setColumnDefs(this._colDefs);
297
301
  }
298
302
  }
@@ -384,10 +388,11 @@ export default class AgGridController {
384
388
  (_a = this._gridOptions.api.getDisplayedRowAtIndex(index)) === null || _a === void 0 ? void 0 : _a.setSelected(true);
385
389
  }
386
390
  buildColDef(source) {
391
+ var _a, _b, _c;
387
392
  let tooltip = undefined;
388
- const propSortable = StringUtils.getBooleanValue(source.props.get("gridSortable"), true);
389
- if (source.props.get("gridHeaderTooltip")) {
390
- tooltip = source.props.get("gridHeaderTooltip");
393
+ const propSortable = StringUtils.getBooleanValue((_a = source.props) === null || _a === void 0 ? void 0 : _a.get("gridSortable"), true);
394
+ if ((_b = source.props) === null || _b === void 0 ? void 0 : _b.get("gridHeaderTooltip")) {
395
+ tooltip = (_c = source.props) === null || _c === void 0 ? void 0 : _c.get("gridHeaderTooltip");
391
396
  }
392
397
  else if (propSortable === false) {
393
398
  tooltip = "Coluna não pode ser ordenada";
@@ -154,11 +154,31 @@ export class EzList {
154
154
  this._listItems = newList;
155
155
  }
156
156
  }
157
+ buildIdDraggableListAndSelectable() {
158
+ const shadow = this._element.shadowRoot;
159
+ const draggableList = shadow.querySelectorAll(".draggable-list");
160
+ draggableList === null || draggableList === void 0 ? void 0 : draggableList.forEach((draggable, index) => {
161
+ var _a, _b;
162
+ let suffix = "draggableList";
163
+ const group = (_b = (_a = this._listGroupItems) === null || _a === void 0 ? void 0 : _a[index]) === null || _b === void 0 ? void 0 : _b.group;
164
+ if (this.useGroups && group) {
165
+ suffix = suffix.concat('_', group);
166
+ }
167
+ ElementIDUtils.addIDInfoIfNotExists(draggable, suffix);
168
+ });
169
+ const selectable = shadow.querySelectorAll(".selectable-container");
170
+ selectable === null || selectable === void 0 ? void 0 : selectable.forEach((item) => {
171
+ ElementIDUtils.addIDInfoIfNotExists(item, "selectable");
172
+ });
173
+ }
157
174
  componentWillLoad() {
158
175
  this._listItemsHistory = [];
159
176
  }
160
177
  componentWillRender() {
161
178
  this.createList();
179
+ if (this._element) {
180
+ this.buildIdDraggableListAndSelectable();
181
+ }
162
182
  }
163
183
  componentDidLoad() {
164
184
  ElementIDUtils.addIDInfo(this._element);
@@ -1,4 +1,5 @@
1
- import { Component, h, Method, Prop, Host, forceUpdate } from '@stencil/core';
1
+ import { Component, h, Method, Prop, Host, forceUpdate, Element } from '@stencil/core';
2
+ import { ElementIDUtils } from "@sankhyalabs/core";
2
3
  export class EzToast {
3
4
  constructor() {
4
5
  this._nextMessages = [];
@@ -69,14 +70,24 @@ export class EzToast {
69
70
  this.container.classList.add(this._toastOpenedClass);
70
71
  this.container.style.animation = `fadein 0.5s, fadeout 0.5s ${this.fadeTime / 1000}s`;
71
72
  }
73
+ buildDataElementId() {
74
+ var _a, _b;
75
+ const dataElementId = ElementIDUtils.addIDInfo(this._element);
76
+ const attribute = ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME;
77
+ (_a = this._elemBtnClose) === null || _a === void 0 ? void 0 : _a.setAttribute(attribute, `${dataElementId}_buttonClose`);
78
+ (_b = this._elemText) === null || _b === void 0 ? void 0 : _b.setAttribute(attribute, `${dataElementId}_title`);
79
+ }
80
+ componentDidLoad() {
81
+ this.buildDataElementId();
82
+ }
72
83
  render() {
73
84
  return (h(Host, null,
74
85
  h("div", { ref: (el) => this.container = el, class: "toast__container" },
75
86
  this._currentMessageInfo.useIcon &&
76
87
  h("slot", { name: "icon" }),
77
- h("div", { lang: this._lang, class: this._currentMessageInfo.useIcon ? "message__container message__conteiner--icon" : "message__container", title: this._currentMessageInfo.message, innerHTML: this._currentMessageInfo.message }),
88
+ h("div", { lang: this._lang, ref: (el) => this._elemText = el, class: this._currentMessageInfo.useIcon ? "message__container message__conteiner--icon" : "message__container", title: this._currentMessageInfo.message, innerHTML: this._currentMessageInfo.message }),
78
89
  this._currentMessageInfo.canClose &&
79
- h("button", { class: "btn-close", onClick: () => { this.hideToast(); } }))));
90
+ h("button", { class: "btn-close", onClick: () => { this.hideToast(); }, ref: (el) => this._elemBtnClose = el }))));
80
91
  }
81
92
  static get is() { return "ez-toast"; }
82
93
  static get encapsulation() { return "shadow"; }
@@ -189,4 +200,5 @@ export class EzToast {
189
200
  }
190
201
  }
191
202
  }; }
203
+ static get elementRef() { return "_element"; }
192
204
  }
@@ -1979,14 +1979,18 @@ let EzDialog$1 = class extends HTMLElement$1 {
1979
1979
  }
1980
1980
  }
1981
1981
  }
1982
+ componentDidLoad() {
1983
+ ElementIDUtils.addIDInfo(this._element);
1984
+ }
1982
1985
  render() {
1983
1986
  if (this.opened && this._currentMessage) {
1984
- return (h("div", { class: "overlay" }, h("div", { class: "dialog" }, this.getTypeIndicatorElement(this._currentMessage), h("div", { class: this.getClassContainer(this._currentMessage) }, h("div", { class: "title__container" }, h("div", { class: "title__box" }, this.getIconElement(this._currentMessage), h("div", { class: this.getClassTitleLabel(this._currentMessage), innerHTML: this._currentMessage.title })), h("button", { class: "btn-close", onClick: () => this.handleButtonClick(false) })), h("div", { class: "message", innerHTML: this._currentMessage.message }), this._currentMessage.confirm &&
1985
- h("div", { class: "button-yes-no__container" }, h("ez-button", { class: "button__cancel", label: this._currentMessage.labelCancel, onClick: () => this.handleButtonClick(false) }), h("ez-button", { class: !this._currentMessage.btnConfirmDanger ? "button__confirm" : "button__confirm--danger", label: this._currentMessage.labelConfirm, onClick: () => this.handleButtonClick(true) })), !this._currentMessage.confirm &&
1986
- h("div", { class: "button__confirm--container" }, h("ez-button", { label: 'Ok', class: "button__confirm", onClick: () => this.handleButtonClick(true) }))))));
1987
+ return (h("div", { class: "overlay" }, h("div", { class: "dialog" }, this.getTypeIndicatorElement(this._currentMessage), h("div", { class: this.getClassContainer(this._currentMessage) }, h("div", { class: "title__container" }, h("div", { class: "title__box" }, this.getIconElement(this._currentMessage), h("div", { class: this.getClassTitleLabel(this._currentMessage), innerHTML: this._currentMessage.title, "data-element-id": ElementIDUtils.getInternalIDInfo("title") })), h("button", { class: "btn-close", onClick: () => this.handleButtonClick(false), "data-element-id": ElementIDUtils.getInternalIDInfo("buttonClose") })), h("div", { class: "message", innerHTML: this._currentMessage.message, "data-element-id": ElementIDUtils.getInternalIDInfo("message") }), this._currentMessage.confirm &&
1988
+ h("div", { class: "button-yes-no__container" }, h("ez-button", { class: "button__cancel", "data-element-id": ElementIDUtils.getInternalIDInfo("cancel"), label: this._currentMessage.labelCancel, onClick: () => this.handleButtonClick(false) }), h("ez-button", { class: !this._currentMessage.btnConfirmDanger ? "button__confirm" : "button__confirm--danger", "data-element-id": ElementIDUtils.getInternalIDInfo("confirm"), label: this._currentMessage.labelConfirm, onClick: () => this.handleButtonClick(true) })), !this._currentMessage.confirm &&
1989
+ h("div", { class: "button__confirm--container" }, h("ez-button", { label: 'Ok', "data-element-id": ElementIDUtils.getInternalIDInfo("ok"), class: "button__confirm", onClick: () => this.handleButtonClick(true) }))))));
1987
1990
  }
1988
1991
  return null;
1989
1992
  }
1993
+ get _element() { return this; }
1990
1994
  static get style() { return ezDialogCss; }
1991
1995
  };
1992
1996
 
@@ -117886,15 +117890,10 @@ class AgGridController {
117886
117890
  if (this._dataUnit) {
117887
117891
  this._dataUnit.sortingProvider = this;
117888
117892
  }
117889
- this._dataSource = new DataSource(this._dataUnit, this, options);
117890
117893
  this._gridOptions = {
117891
117894
  localeText: gridTerms,
117892
- rowModelType: "serverSide",
117893
- serverSideSortOnServer: true,
117894
117895
  rowSelection: this._multipleSelection ? "multiple" : "single",
117895
- serverSideDatasource: this._dataSource,
117896
117896
  sortingOrder: ['desc', 'asc', null],
117897
- columnDefs: this._colDefs,
117898
117897
  blockLoadDebounceMillis: this.BLOCK_LOAD_DEBOUNCE,
117899
117898
  navigateToNextCell: this.navigateToNextCell.bind(this),
117900
117899
  getRowNodeId: this._dataUnit ? (params) => typeof params === "string" ? params : params[this._idAttribName] : undefined,
@@ -117920,6 +117919,7 @@ class AgGridController {
117920
117919
  headerCheckStatusSetter: (selectAll) => this.updateSelectionForAll(selectAll)
117921
117920
  }
117922
117921
  };
117922
+ this.defineRowModelType(this._gridOptions, options);
117923
117923
  this.setOptionsEvents(this._gridOptions);
117924
117924
  this.setOptionsSupress(this._gridOptions);
117925
117925
  if (this._enterprise) {
@@ -117978,6 +117978,14 @@ class AgGridController {
117978
117978
  }
117979
117979
  return null;
117980
117980
  }
117981
+ defineRowModelType(opt, sourceOptions) {
117982
+ if (this._dataUnit != undefined) {
117983
+ opt.rowModelType = "serverSide";
117984
+ opt.serverSideDatasource = new DataSource(this._dataUnit, this, sourceOptions);
117985
+ opt.serverSideSortOnServer = true;
117986
+ opt.columnDefs = this._colDefs;
117987
+ }
117988
+ }
117981
117989
  setOptionsEvents(opt) {
117982
117990
  opt.onSortChanged = e => this.onCallStateChange("sort", e);
117983
117991
  opt.onColumnResized = e => this.onCallStateChange("columnResize", e);
@@ -118133,7 +118141,7 @@ class AgGridController {
118133
118141
  newColDefs.push(this.buildColDef(c));
118134
118142
  });
118135
118143
  this._colDefs = newColDefs;
118136
- if (this._gridOptions) {
118144
+ if (this._gridOptions && this._gridOptions.api) {
118137
118145
  this._gridOptions.api.setColumnDefs(this._colDefs);
118138
118146
  }
118139
118147
  }
@@ -118225,10 +118233,11 @@ class AgGridController {
118225
118233
  (_a = this._gridOptions.api.getDisplayedRowAtIndex(index)) === null || _a === void 0 ? void 0 : _a.setSelected(true);
118226
118234
  }
118227
118235
  buildColDef(source) {
118236
+ var _a, _b, _c;
118228
118237
  let tooltip = undefined;
118229
- const propSortable = StringUtils$1.getBooleanValue(source.props.get("gridSortable"), true);
118230
- if (source.props.get("gridHeaderTooltip")) {
118231
- tooltip = source.props.get("gridHeaderTooltip");
118238
+ const propSortable = StringUtils$1.getBooleanValue((_a = source.props) === null || _a === void 0 ? void 0 : _a.get("gridSortable"), true);
118239
+ if ((_b = source.props) === null || _b === void 0 ? void 0 : _b.get("gridHeaderTooltip")) {
118240
+ tooltip = (_c = source.props) === null || _c === void 0 ? void 0 : _c.get("gridHeaderTooltip");
118232
118241
  }
118233
118242
  else if (propSortable === false) {
118234
118243
  tooltip = "Coluna não pode ser ordenada";
@@ -118761,11 +118770,31 @@ let EzList$1 = class extends HTMLElement$1 {
118761
118770
  this._listItems = newList;
118762
118771
  }
118763
118772
  }
118773
+ buildIdDraggableListAndSelectable() {
118774
+ const shadow = this._element.shadowRoot;
118775
+ const draggableList = shadow.querySelectorAll(".draggable-list");
118776
+ draggableList === null || draggableList === void 0 ? void 0 : draggableList.forEach((draggable, index) => {
118777
+ var _a, _b;
118778
+ let suffix = "draggableList";
118779
+ const group = (_b = (_a = this._listGroupItems) === null || _a === void 0 ? void 0 : _a[index]) === null || _b === void 0 ? void 0 : _b.group;
118780
+ if (this.useGroups && group) {
118781
+ suffix = suffix.concat('_', group);
118782
+ }
118783
+ ElementIDUtils.addIDInfoIfNotExists(draggable, suffix);
118784
+ });
118785
+ const selectable = shadow.querySelectorAll(".selectable-container");
118786
+ selectable === null || selectable === void 0 ? void 0 : selectable.forEach((item) => {
118787
+ ElementIDUtils.addIDInfoIfNotExists(item, "selectable");
118788
+ });
118789
+ }
118764
118790
  componentWillLoad() {
118765
118791
  this._listItemsHistory = [];
118766
118792
  }
118767
118793
  componentWillRender() {
118768
118794
  this.createList();
118795
+ if (this._element) {
118796
+ this.buildIdDraggableListAndSelectable();
118797
+ }
118769
118798
  }
118770
118799
  componentDidLoad() {
118771
118800
  ElementIDUtils.addIDInfo(this._element);
@@ -120880,11 +120909,22 @@ let EzToast$1 = class extends HTMLElement$1 {
120880
120909
  this.container.classList.add(this._toastOpenedClass);
120881
120910
  this.container.style.animation = `fadein 0.5s, fadeout 0.5s ${this.fadeTime / 1000}s`;
120882
120911
  }
120912
+ buildDataElementId() {
120913
+ var _a, _b;
120914
+ const dataElementId = ElementIDUtils.addIDInfo(this._element);
120915
+ const attribute = ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME;
120916
+ (_a = this._elemBtnClose) === null || _a === void 0 ? void 0 : _a.setAttribute(attribute, `${dataElementId}_buttonClose`);
120917
+ (_b = this._elemText) === null || _b === void 0 ? void 0 : _b.setAttribute(attribute, `${dataElementId}_title`);
120918
+ }
120919
+ componentDidLoad() {
120920
+ this.buildDataElementId();
120921
+ }
120883
120922
  render() {
120884
120923
  return (h(Host, null, h("div", { ref: (el) => this.container = el, class: "toast__container" }, this._currentMessageInfo.useIcon &&
120885
- h("slot", { name: "icon" }), h("div", { lang: this._lang, class: this._currentMessageInfo.useIcon ? "message__container message__conteiner--icon" : "message__container", title: this._currentMessageInfo.message, innerHTML: this._currentMessageInfo.message }), this._currentMessageInfo.canClose &&
120886
- h("button", { class: "btn-close", onClick: () => { this.hideToast(); } }))));
120924
+ h("slot", { name: "icon" }), h("div", { lang: this._lang, ref: (el) => this._elemText = el, class: this._currentMessageInfo.useIcon ? "message__container message__conteiner--icon" : "message__container", title: this._currentMessageInfo.message, innerHTML: this._currentMessageInfo.message }), this._currentMessageInfo.canClose &&
120925
+ h("button", { class: "btn-close", onClick: () => { this.hideToast(); }, ref: (el) => this._elemBtnClose = el }))));
120887
120926
  }
120927
+ get _element() { return this; }
120888
120928
  static get style() { return ezToastCss; }
120889
120929
  };
120890
120930
 
@@ -1,5 +1,6 @@
1
- import { r as registerInstance, c as createEvent, f as forceUpdate, h } from './index-7bc778b3.js';
1
+ import { r as registerInstance, c as createEvent, f as forceUpdate, h, g as getElement } from './index-7bc778b3.js';
2
2
  import { D as DialogType } from './DialogType-4059dc4d.js';
3
+ import { ElementIDUtils } from '@sankhyalabs/core';
3
4
 
4
5
  const ezDialogCss = ":host{--dialog__container-padding:var(--space--large, 24px);--dialog__btn__close--background-color:var(--title--primary, #2b3a54);--dialog__btn__no--padding-right:var(--space--large, 24px);--dialog__btn__close__image:url('data:image/svg+xml;utf8,<svg width=\"12\" height=\"12\" viewBox=\"0 0 12 12\" xmlns=\"http://www.w3.org/2000/svg%22%3E<path d=\"M 7.0060773,5.995511 11.461972,1.5397722 c 0.132856,-0.1328413 0.207547,-0.3130253 0.207547,-0.5009046 0,-0.18786999 -0.07469,-0.3680541 -0.207547,-0.5009048 -0.132857,-0.13284126 -0.31302,-0.20748126 -0.500927,-0.20748126 -0.187812,0 -0.36807,0.07464 -0.500926,0.20748126 L 6.0042244,4.9937015 1.5482921,0.5379628 C 1.4154357,0.40512154 1.2352533,0.33048154 1.0473657,0.33048154 c -0.18787813,0 -0.36807,0.07464 -0.50092647,0.20748126 -0.13285646,0.1328507 -0.20749026,0.31303481 -0.20749026,0.5009048 0,0.1878793 0.0746338,0.3680633 0.20749026,0.5009046 L 5.0023715,5.995511 0.54643923,10.452213 c -0.0676086,0.06534 -0.12151598,0.14352 -0.15859681,0.229916 -0.0370714,0.08639 -0.0565645,0.1794 -0.0573369,0.27335 -7.724e-4,0.09404 0.0171873,0.187331 0.0528423,0.274293 0.0356455,0.08705 0.0882688,0.166087 0.15479148,0.23256 0.0665321,0.06648 0.14562277,0.11897 0.2326735,0.154567 0.0870507,0.0356 0.18031463,0.05344 0.2743433,0.05259 0.094029,-8.5e-4 0.1869528,-0.02049 0.2733331,-0.0576 0.08639,-0.0372 0.1645078,-0.09121 0.2298029,-0.158817 L 6.0042244,6.9973204 10.460119,11.453078 c 0.132856,0.132851 0.313114,0.207444 0.500926,0.207444 0.187907,0 0.36807,-0.07459 0.500927,-0.207444 0.132856,-0.13285 0.207547,-0.313006 0.207547,-0.500904 0,-0.187898 -0.07469,-0.368054 -0.207547,-0.500905 z\"/></svg>');--dialog__title--font-pattern:var(--font-pattern, \"Roboto\");--dialog__title--padding-left:var(--space--small, 6px);--dialog__title__container--padding-bottom:var(--space--medium, 12px);--dialog__title--weight--large:var(--text-weight--large, 600);--dialog__body--font-pattern:var(--font-pattern, \"Roboto\");--dialog__body--text-shadow:var(--text-shadow, \"0 0 0 #353535, 0 0 1px transparent\");--dialog__body--text-weight--medium:var(--text-weight--medium, 400);--dialog__body--padding-bottom:var(--space--large, 24px);--dialog__body--font-size:var(--text--medium, 14px);--dialog__body--color:var(--text--primary, #626e82);--dialog__icon--color:var(--text--inverted, #fff);--dialog__critical--background-color:var(--color--alert-error-800, #BD0025);--dialog__warning--background-color:var(--color--alert-warning-500, #EFB103);--dialog__success--background-color:var(--color--alert-success-500, #00523c);--dialog-z-index:var(--most-visible, 3);--dialog--warning__image:url('data: image/svg+xml;utf8,<svg width=\"15\" height=\"15\" viewBox=\"0 0 15 15\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 7.5,0 0,13 h 15 z m 0,2.73684 5.1341,8.89476 H 2.36591 Z M 6.81818,5.47368 V 8.21053 H 8.18182 V 5.47368 Z m 0,4.10527 V 10.9474 H 8.18182 V 9.57895\"/></svg>');--dialog--critical__image:url('data: image/svg+xml;utf8,<svg width=\"13\" height=\"13\" viewBox=\"0 0 13 13\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M 7.6534493,6.4948538 12.762051,1.3864299 C 12.914368,1.2341297 13,1.027552 13,0.81215179 13,0.59676225 12.914369,0.39018443 12.762051,0.23787352 12.609733,0.08557341 12.40318,0 12.187747,0 11.972425,0 11.765762,0.08557341 11.613445,0.23787352 L 6.5048431,5.3462975 1.3961977,0.23787352 C 1.2438802,0.08557341 1.0373043,0 0.82189458,0 0.60649572,0 0.39990901,0.08557341 0.24759147,0.23787352 0.09527396,0.39018443 0.00970766,0.59676225 0.00970766,0.81215179 c 0,0.21540021 0.0855663,0.42197791 0.23788381,0.57427811 L 5.3562369,6.4948538 0.24759147,11.604381 c -0.0775121,0.07492 -0.13931586,0.164543 -0.18182835,0.263595 -0.04250169,0.09905 -0.064850182,0.205678 -0.0657357237,0.313391 -8.8554258e-4,0.107813 0.0197049337,0.214771 0.0605827337,0.314472 0.04086693,0.0998 0.10119858,0.190415 0.17746563,0.266625 0.0762779,0.07622 0.16695386,0.136398 0.26675594,0.177208 0.099802,0.04082 0.20672745,0.06127 0.31452961,0.06029 0.1078025,-9.53e-4 0.21433799,-0.0235 0.31337139,-0.06604 0.099045,-0.04265 0.1886052,-0.104571 0.263465,-0.182081 L 6.5048431,7.6434102 11.613445,12.751855 c 0.152317,0.152312 0.35898,0.237831 0.574302,0.237831 0.215433,0 0.421986,-0.08552 0.574304,-0.237831 C 12.914368,12.599545 13,12.393 13,12.177578 13,11.962157 12.91437,11.75561 12.762051,11.603299 Z\"/></svg>')}h2{margin-block-start:0;margin-block-end:0;margin-inline-start:0px;margin-inline-end:0px}.overlay{position:fixed;display:flex;top:0px;z-index:var(--dialog-z-index);left:0px;width:100%;box-sizing:border-box;height:100vh;backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.dialog{display:flex;width:80%;position:absolute;top:50%;left:50%;margin-right:-50%;box-sizing:border-box;transform:translate(-50%, -50%);box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122)}@media screen and (min-width: 768px){.dialog{width:50%}}@media screen and (min-width: 992px){.dialog{width:33.33333%}}.dialog__container{width:100%;background:#FFFF;border-radius:0px 6px 6px 0px;box-sizing:border-box;padding:var(--dialog__container-padding)}.dialog__container--default{border-radius:6px 6px 6px 6px}.dialog__critical--indicator{box-sizing:border-box;width:12px;border-radius:6px 0px 0px 6px;background-color:var(--dialog__critical--background-color)}.dialog__warning--indicator{width:12px;border-radius:6px 0px 0px 6px;box-sizing:border-box;background-color:var(--dialog__warning--background-color)}.dialog__success--indicator{width:12px;border-radius:6px 0px 0px 6px;box-sizing:border-box;background-color:var(--dialog__success--background-color)}.message{font-size:var(--dialog__body--font-size);font-weight:var(--dialog__body--text-weight--medium);font-family:var(--dialog__body--font-pattern);text-shadow:var(--dialog__body--text-shadow);padding-bottom:var(--dialog__body--padding-bottom);color:var(--dialog__body--color);max-height:30vh;content-visibility:auto;margin-bottom:24px;overflow-y:auto}.changeable__icon{background:var(--dialog__warning--background-color);--ez-icon--color:var(--dialog__icon--color);display:grid;place-items:center;width:26px;height:26px;border-radius:50%}.changeable__icon.critical{background:var(--dialog__critical--background-color)}.title{display:flex;font-family:var(--dialog__title--font-pattern);margin:0;font-weight:var(--dialog__title--weight--large);line-height:0}.title__container{display:flex;padding-bottom:var(--dialog__title__container--padding-bottom)}.title__box{display:flex;width:100%;align-items:center;align-self:center}.title__label{padding-left:var(--dialog__title--padding-left)}.title__label--no-icon{padding-left:0}.title-icon--critical{background-color:var(--dialog__critical--background-color)}.title-icon--success{background-color:var(--dialog__success--background-color)}.title-icon--warn{background-color:var(--dialog__warning--background-color)}.btn-close{justify-content:flex-end;align-self:flex-start;align-items:flex-start;display:flex;outline:none;width:10%;border:none;background-color:unset;cursor:pointer}.btn-close::after{content:'';display:flex;background-color:var(--dialog__btn__close--background-color);width:12px;height:12px;-webkit-mask-image:var(--dialog__btn__close__image);mask-image:var(--dialog__btn__close__image)}.title-icon::after{content:'';display:flex;background-color:#FFFF;width:15px;height:15px;-webkit-mask-image:var(--dialog--warning__image);mask-image:var(--dialog--warning__image)}.button-yes-no__container{display:flex;box-sizing:border-box;align-self:center;align-items:center;justify-content:flex-end}.button__cancel{padding-right:var(--dialog__btn__no--padding-right)}.button__confirm{--ez-button--background-color:var(--color--primary);--ez-button--color:var(--color--inverted);--ez-button--hover--background-color:var(--color--primary-600);--ez-button--hover-color:var(--color--inverted)}.button__confirm--danger{--ez-button--background-color:var(--color--alert-error-800, #BD0025);--ez-button--color:var(--color--inverted);--ez-button--hover--background-color:var(--color-alert--error-900, #a10020);--ez-button--hover-color:var(--color--inverted)}.button__confirm--container{display:flex;justify-content:flex-end}.row{width:100%;display:flex;flex-wrap:wrap}.col{display:flex;flex-wrap:wrap;align-self:flex-start;box-sizing:border-box}.col--stretch{align-self:stretch}.col--undefined{width:unset}.col--nowrap{flex-wrap:nowrap}@media screen and (min-width: 320px){.col--sd-1{width:8.33333%}.col--sd-2{width:16.66667%}.col--sd-3{width:25%}.col--sd-4{width:33.33333%}.col--sd-5{width:41.66667%}.col--sd-6{width:50%}.col--sd-7{width:58.33333%}.col--sd-8{width:66.66667%}.col--sd-9{width:75%}.col--sd-10{width:83.33333%}.col--sd-11{width:91.66667%}.col--sd-12{width:100%}}@media screen and (min-width: 480px){.col--pn-1{width:8.33333%}.col--pn-2{width:16.66667%}.col--pn-3{width:25%}.col--pn-4{width:33.33333%}.col--pn-5{width:41.66667%}.col--pn-6{width:50%}.col--pn-7{width:58.33333%}.col--pn-8{width:66.66667%}.col--pn-9{width:75%}.col--pn-10{width:83.33333%}.col--pn-11{width:91.66667%}.col--pn-12{width:100%}}@media screen and (min-width: 768px){.col--tb-1{width:8.33333%}.col--tb-2{width:16.66667%}.col--tb-3{width:25%}.col--tb-4{width:33.33333%}.col--tb-5{width:41.66667%}.col--tb-6{width:50%}.col--tb-7{width:58.33333%}.col--tb-8{width:66.66667%}.col--tb-9{width:75%}.col--tb-10{width:83.33333%}.col--tb-11{width:91.66667%}.col--tb-12{width:100%}}@media screen and (min-width: 992px){.col--md-1{width:8.33333%}.col--md-2{width:16.66667%}.col--md-3{width:25%}.col--md-4{width:33.33333%}.col--md-5{width:41.66667%}.col--md-6{width:50%}.col--md-7{width:58.33333%}.col--md-8{width:66.66667%}.col--md-9{width:75%}.col--md-10{width:83.33333%}.col--md-11{width:91.66667%}.col--md-12{width:100%}}@media screen and (min-width: 1200px){.col--ld-1{width:8.33333%}.col--ld-2{width:16.66667%}.col--ld-3{width:25%}.col--ld-4{width:33.33333%}.col--ld-5{width:41.66667%}.col--ld-6{width:50%}.col--ld-7{width:58.33333%}.col--ld-8{width:66.66667%}.col--ld-9{width:75%}.col--ld-10{width:83.33333%}.col--ld-11{width:91.66667%}.col--ld-12{width:100%}}";
5
6
 
@@ -124,14 +125,18 @@ let EzDialog = class {
124
125
  }
125
126
  }
126
127
  }
128
+ componentDidLoad() {
129
+ ElementIDUtils.addIDInfo(this._element);
130
+ }
127
131
  render() {
128
132
  if (this.opened && this._currentMessage) {
129
- return (h("div", { class: "overlay" }, h("div", { class: "dialog" }, this.getTypeIndicatorElement(this._currentMessage), h("div", { class: this.getClassContainer(this._currentMessage) }, h("div", { class: "title__container" }, h("div", { class: "title__box" }, this.getIconElement(this._currentMessage), h("div", { class: this.getClassTitleLabel(this._currentMessage), innerHTML: this._currentMessage.title })), h("button", { class: "btn-close", onClick: () => this.handleButtonClick(false) })), h("div", { class: "message", innerHTML: this._currentMessage.message }), this._currentMessage.confirm &&
130
- h("div", { class: "button-yes-no__container" }, h("ez-button", { class: "button__cancel", label: this._currentMessage.labelCancel, onClick: () => this.handleButtonClick(false) }), h("ez-button", { class: !this._currentMessage.btnConfirmDanger ? "button__confirm" : "button__confirm--danger", label: this._currentMessage.labelConfirm, onClick: () => this.handleButtonClick(true) })), !this._currentMessage.confirm &&
131
- h("div", { class: "button__confirm--container" }, h("ez-button", { label: 'Ok', class: "button__confirm", onClick: () => this.handleButtonClick(true) }))))));
133
+ return (h("div", { class: "overlay" }, h("div", { class: "dialog" }, this.getTypeIndicatorElement(this._currentMessage), h("div", { class: this.getClassContainer(this._currentMessage) }, h("div", { class: "title__container" }, h("div", { class: "title__box" }, this.getIconElement(this._currentMessage), h("div", { class: this.getClassTitleLabel(this._currentMessage), innerHTML: this._currentMessage.title, "data-element-id": ElementIDUtils.getInternalIDInfo("title") })), h("button", { class: "btn-close", onClick: () => this.handleButtonClick(false), "data-element-id": ElementIDUtils.getInternalIDInfo("buttonClose") })), h("div", { class: "message", innerHTML: this._currentMessage.message, "data-element-id": ElementIDUtils.getInternalIDInfo("message") }), this._currentMessage.confirm &&
134
+ h("div", { class: "button-yes-no__container" }, h("ez-button", { class: "button__cancel", "data-element-id": ElementIDUtils.getInternalIDInfo("cancel"), label: this._currentMessage.labelCancel, onClick: () => this.handleButtonClick(false) }), h("ez-button", { class: !this._currentMessage.btnConfirmDanger ? "button__confirm" : "button__confirm--danger", "data-element-id": ElementIDUtils.getInternalIDInfo("confirm"), label: this._currentMessage.labelConfirm, onClick: () => this.handleButtonClick(true) })), !this._currentMessage.confirm &&
135
+ h("div", { class: "button__confirm--container" }, h("ez-button", { label: 'Ok', "data-element-id": ElementIDUtils.getInternalIDInfo("ok"), class: "button__confirm", onClick: () => this.handleButtonClick(true) }))))));
132
136
  }
133
137
  return null;
134
138
  }
139
+ get _element() { return getElement(this); }
135
140
  };
136
141
  EzDialog.style = ezDialogCss;
137
142
 
@@ -114783,15 +114783,10 @@ class AgGridController {
114783
114783
  if (this._dataUnit) {
114784
114784
  this._dataUnit.sortingProvider = this;
114785
114785
  }
114786
- this._dataSource = new DataSource(this._dataUnit, this, options);
114787
114786
  this._gridOptions = {
114788
114787
  localeText: gridTerms,
114789
- rowModelType: "serverSide",
114790
- serverSideSortOnServer: true,
114791
114788
  rowSelection: this._multipleSelection ? "multiple" : "single",
114792
- serverSideDatasource: this._dataSource,
114793
114789
  sortingOrder: ['desc', 'asc', null],
114794
- columnDefs: this._colDefs,
114795
114790
  blockLoadDebounceMillis: this.BLOCK_LOAD_DEBOUNCE,
114796
114791
  navigateToNextCell: this.navigateToNextCell.bind(this),
114797
114792
  getRowNodeId: this._dataUnit ? (params) => typeof params === "string" ? params : params[this._idAttribName] : undefined,
@@ -114817,6 +114812,7 @@ class AgGridController {
114817
114812
  headerCheckStatusSetter: (selectAll) => this.updateSelectionForAll(selectAll)
114818
114813
  }
114819
114814
  };
114815
+ this.defineRowModelType(this._gridOptions, options);
114820
114816
  this.setOptionsEvents(this._gridOptions);
114821
114817
  this.setOptionsSupress(this._gridOptions);
114822
114818
  if (this._enterprise) {
@@ -114875,6 +114871,14 @@ class AgGridController {
114875
114871
  }
114876
114872
  return null;
114877
114873
  }
114874
+ defineRowModelType(opt, sourceOptions) {
114875
+ if (this._dataUnit != undefined) {
114876
+ opt.rowModelType = "serverSide";
114877
+ opt.serverSideDatasource = new DataSource(this._dataUnit, this, sourceOptions);
114878
+ opt.serverSideSortOnServer = true;
114879
+ opt.columnDefs = this._colDefs;
114880
+ }
114881
+ }
114878
114882
  setOptionsEvents(opt) {
114879
114883
  opt.onSortChanged = e => this.onCallStateChange("sort", e);
114880
114884
  opt.onColumnResized = e => this.onCallStateChange("columnResize", e);
@@ -115030,7 +115034,7 @@ class AgGridController {
115030
115034
  newColDefs.push(this.buildColDef(c));
115031
115035
  });
115032
115036
  this._colDefs = newColDefs;
115033
- if (this._gridOptions) {
115037
+ if (this._gridOptions && this._gridOptions.api) {
115034
115038
  this._gridOptions.api.setColumnDefs(this._colDefs);
115035
115039
  }
115036
115040
  }
@@ -115122,10 +115126,11 @@ class AgGridController {
115122
115126
  (_a = this._gridOptions.api.getDisplayedRowAtIndex(index)) === null || _a === void 0 ? void 0 : _a.setSelected(true);
115123
115127
  }
115124
115128
  buildColDef(source) {
115129
+ var _a, _b, _c;
115125
115130
  let tooltip = undefined;
115126
- const propSortable = StringUtils$1.getBooleanValue(source.props.get("gridSortable"), true);
115127
- if (source.props.get("gridHeaderTooltip")) {
115128
- tooltip = source.props.get("gridHeaderTooltip");
115131
+ const propSortable = StringUtils$1.getBooleanValue((_a = source.props) === null || _a === void 0 ? void 0 : _a.get("gridSortable"), true);
115132
+ if ((_b = source.props) === null || _b === void 0 ? void 0 : _b.get("gridHeaderTooltip")) {
115133
+ tooltip = (_c = source.props) === null || _c === void 0 ? void 0 : _c.get("gridHeaderTooltip");
115129
115134
  }
115130
115135
  else if (propSortable === false) {
115131
115136
  tooltip = "Coluna não pode ser ordenada";