@sankhyalabs/ezui 1.1.90 → 1.1.93

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 (45) hide show
  1. package/dist/cjs/ez-button_11.cjs.entry.js +220 -147
  2. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  3. package/dist/cjs/ez-collapsible-box_7.cjs.entry.js +1 -1
  4. package/dist/cjs/ez-combo-box.cjs.entry.js +1 -1
  5. package/dist/cjs/ez-form.cjs.entry.js +2 -2
  6. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  8. package/dist/cjs/ezui.cjs.js +1 -1
  9. package/dist/cjs/{index-a92e6d04.js → index-5c8eb919.js} +2 -2
  10. package/dist/cjs/loader.cjs.js +1 -1
  11. package/dist/collection/collection-manifest.json +1 -1
  12. package/dist/collection/components/ez-form/store/form.slice.js +1 -1
  13. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +16 -0
  14. package/dist/collection/components/ez-grid/subcomponents/gridconfig/grid-config.js +1 -1
  15. package/dist/collection/components/ez-list/ez-list.css +23 -2
  16. package/dist/collection/components/ez-list/ez-list.js +136 -66
  17. package/dist/collection/components/ez-tabselector/ez-tabselector.js +40 -46
  18. package/dist/collection/utils/index.js +2 -0
  19. package/dist/custom-elements/index.js +167 -94
  20. package/dist/esm/ez-button_11.entry.js +220 -147
  21. package/dist/esm/ez-calendar.entry.js +1 -1
  22. package/dist/esm/ez-collapsible-box_7.entry.js +1 -1
  23. package/dist/esm/ez-combo-box.entry.js +1 -1
  24. package/dist/esm/ez-form.entry.js +2 -2
  25. package/dist/esm/ez-popover.entry.js +1 -1
  26. package/dist/esm/ez-time-input.entry.js +1 -1
  27. package/dist/esm/ezui.js +1 -1
  28. package/dist/esm/{index-4fb1605f.js → index-4688c617.js} +1 -1
  29. package/dist/esm/loader.js +1 -1
  30. package/dist/ezui/ezui.esm.js +1 -1
  31. package/dist/ezui/{p-d22db59d.entry.js → p-278ce681.entry.js} +1 -1
  32. package/dist/ezui/{p-038fd0cb.entry.js → p-33d1247f.entry.js} +1 -1
  33. package/dist/ezui/{p-552a0b2e.entry.js → p-4b5c4408.entry.js} +1 -1
  34. package/dist/ezui/{p-4c20d96e.entry.js → p-5793a2e1.entry.js} +1 -1
  35. package/dist/ezui/{p-60469339.entry.js → p-68f6b75e.entry.js} +1 -1
  36. package/dist/ezui/{p-7e0281cd.entry.js → p-7e1d9c29.entry.js} +1 -1
  37. package/dist/ezui/{p-f0137439.js → p-7ff8b7f7.js} +1 -1
  38. package/dist/ezui/{p-f241de18.entry.js → p-ca42d682.entry.js} +24 -24
  39. package/dist/types/components/ez-form/store/form.slice.d.ts +2 -1
  40. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +4 -1
  41. package/dist/types/components/ez-list/ez-list.d.ts +11 -6
  42. package/dist/types/components/ez-tabselector/ez-tabselector.d.ts +13 -6
  43. package/dist/types/components.d.ts +7 -6
  44. package/dist/types/utils/index.d.ts +2 -0
  45. package/package.json +1 -1
@@ -9214,7 +9214,7 @@ function loadMetadata(formMetadata) {
9214
9214
  function changeTab(currentSheet) {
9215
9215
  return {
9216
9216
  type: FormActions.CHANGE_TAB,
9217
- payload: currentSheet
9217
+ payload: currentSheet.tabKey
9218
9218
  };
9219
9219
  }
9220
9220
  /////////////////////////////// SELECTORS ///////////////////////////////
@@ -119472,6 +119472,19 @@ class AgGridController {
119472
119472
  this._menuItems = [];
119473
119473
  this._enterprise = enterprise;
119474
119474
  }
119475
+ getSort() {
119476
+ const sortedColumns = [];
119477
+ this._gridOptions.api.getSortModel().forEach(({ colId, sort }) => {
119478
+ if (sort) {
119479
+ const field = this._dataUnit.getField(colId);
119480
+ const mode = sort === "asc" ? SortMode.ASC : SortMode.DESC;
119481
+ const sortField = field ? { field: field.name, dataType: field.dataType, mode } : { field: colId, dataType: DataType.TEXT, mode };
119482
+ sortedColumns.push(sortField);
119483
+ }
119484
+ });
119485
+ return sortedColumns;
119486
+ }
119487
+ ;
119475
119488
  initDatagrid(container, options) {
119476
119489
  if (this._grid === undefined) {
119477
119490
  this._columnStateChangeCallback = options.onColumnStateChange;
@@ -119482,6 +119495,7 @@ class AgGridController {
119482
119495
  this._pageSize = options.pageSize;
119483
119496
  this._serverURL = options.serverURL;
119484
119497
  this._dataUnit = options.dataUnit;
119498
+ this._dataUnit.sortingProvider = this;
119485
119499
  this._gridOptions = {
119486
119500
  localeText: gridTerms,
119487
119501
  rowModelType: "serverSide",
@@ -119992,7 +120006,7 @@ let EzLabelChip$1 = class extends HTMLElement$1 {
119992
120006
  static get style() { return ezLabelChipCss; }
119993
120007
  };
119994
120008
 
119995
- const ezListCss = ":host{--ez-list__host--z-index:var(--visible, 1);--ez-list__host--border-radius:var(--border--radius-medium, 12px);--ez-list__host--padding:var(--space--medium, 12px);--ez-list__icon__padding:var(--space--small, 6px);--ez-list__icon--color:#AFB6C0;--ez-list__item__margin:0 var(--space--small, 6px);--ez-list__item--color:var(--title--primary, #2b3a54);--ez-list__item--border-bottom:var(--border--small, 1px solid);--ez-list__item--border-color:var(--title--primary, #2b3a54);--ez-list__item--font-family:var(--font-pattern, \"Sora\");--ez-list__item--font-size:var(--text--medium, 14px);--ez-list__selectable--padding-right:var(--space--small, 6px);--ez-list__selectable--padding-left:var(--space--small, 6px);--ez-list__selected-item__border-radius:var(--border--radius-small, 6px);--ez-list__selected-item__background:var(--color--primary-300, #E2F4EF);--ez-list__group--font-family:var(--font-pattern, \"Sora\");--ez-list__group--font-size:var(--text--medium, 14px);--ez-list__group--font-weight:var(--text-weight--large, 600);--ez-list__group--padding-bottom:var(--space-small, 6px);--ez-list__group__overlay--font-family:var(--font-pattern, \"Sora\");--ez-list__group__overlay--font-size:var(--text--medium, 14px);--ez-list__group-container__scrollbar--border-radius:var(--border--radius-large, 24px);--ez-list__group-container__scrollbar--width:var(--space--medium, 12px);--ez-list__group-container__scrollbar--background-color:var(--text--primary, #626e82);--ez-list__over--border--color:var(--color--primary, #008561);--ez-list__draggable__scrollbar--border-radius:var(--border--radius-large, 24px);--ez-list__draggable__scrollbar--width:var(--space--medium, 12px);--ez-list__draggable__scrollbar--background-color:var(--text--primary, #626e82);--ez-list__draggable__icon--image:url('data:image/svg+xml;utf8,<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m 6.75,2.25 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z\"/></svg>');max-height:100%;width:100%;background-color:#fff;display:flex;z-index:var(--ez-list__host--z-index)}.draggable{display:flex;align-items:center;justify-content:space-between;background-color:#fff;font-family:var(--ez-list__item--font-family);font-size:var(--ez-list__item--font-size);flex:1}.dragging{background:#FFFFFF;border:1px solid #008561;box-sizing:border-box;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);border-radius:6px}.selectable{cursor:pointer;padding-right:var(--ez-list__selectable--padding-right);padding-left:var(--ez-list__selectable--padding-left)}.selectable-container{margin:0px !important}.item-content{display:flex;justify-content:center;align-items:center}.draggable-list{color:var(--text-color);padding:0;margin:0;width:100%;max-height:100%;padding-bottom:var(--space--small)}.draggable-list li{background-color:#fff;display:flex;margin:var(--ez-list__item__margin);font-family:var(--ez-list__item--font-family);font-size:var(--ez-list__item--font-size);color:var(--ez-list__item--color);height:32px}.over{border-top:1px dashed var(--ez-list__over--border--color)}.draggable-selected{background-color:var(--background--strong) !important}.draggable-selected div:hover{background-color:var(--background--strong) !important}.draggable-list::-webkit-scrollbar-track{background-color:#f0f2f5}.draggable-list::-webkit-scrollbar-thumb{background-color:var(--ez-list__draggable__scrollbar--background-color);border-radius:var(--ez-list__draggable__scrollbar--border-radius)}.draggable-list::-webkit-scrollbar{background-color:#f0f2f5;width:var(--ez-list__draggable__scrollbar--width);max-width:var(--ez-list__draggable__scrollbar--width);min-width:var(--ez-list__draggable__scrollbar--width)}.draggable-icon{align-items:flex-start;display:flex;outline:none;border:none;background-color:unset}.draggable-icon::after{content:'';display:flex;background-color:var(--ez-list__icon--color);width:18px;height:18px;-webkit-mask-image:var(--ez-list__draggable__icon--image);mask-image:var(--ez-list__draggable__icon--image)}*{box-sizing:border-box}.checkbox{width:fit-content}.text--ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.group-container{display:flex;flex-direction:column;max-height:100%;overflow-y:auto;outline:none;width:100%}.group-name{font-family:var(--ez-list__group--font-family);font-size:var(--ez-list__group--font-size);font-weight:var(--ez-list__group--font-weight);padding-bottom:var(--ez-list__group--padding-bottom)}.group{display:flex;flex-direction:column}.group-container::-webkit-scrollbar-track{background-color:#f0f2f5}.group-container::-webkit-scrollbar-thumb{background-color:var(--ez-list__group-container__scrollbar--background-color);border-radius:var(--ez-list__group-container__scrollbar--border-radius)}.group-container::-webkit-scrollbar{background-color:#f0f2f5;width:var(--ez-list__group-container__scrollbar--width);max-width:var(--ez-list__group-container__scrollbar--width);min-width:var(--ez-list__group-container__scrollbar--width)}.section-container{display:flex;position:relative;height:100%}.items-container{width:100%;max-height:100%;overflow-y:auto;outline:none}.group-items-container{width:100%;max-height:100%;height:100%;outline:none}.items-container::-webkit-scrollbar-track{background-color:#f0f2f5}.items-container::-webkit-scrollbar-thumb{background-color:var(--ez-list__draggable__scrollbar--background-color);border-radius:var(--ez-list__draggable__scrollbar--border-radius)}.items-container::-webkit-scrollbar{background-color:#f0f2f5;width:var(--ez-list__draggable__scrollbar--width);max-width:var(--ez-list__draggable__scrollbar--width);min-width:var(--ez-list__draggable__scrollbar--width)}.group-overlay{font-family:var(--ez-list__group__overlay--font-family);font-size:var(--ez-list__group__overlay--font-size);background:rgba(226, 244, 239, 0.8);border:1px solid #008561;border-radius:8px;position:absolute;display:none;place-items:center;top:0;bottom:0;left:0;right:0;z-index:2;margin:0;cursor:pointer}.overlay-text{position:absolute;top:50%;left:50%;font-size:50px;color:white;transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%)}.selected-item{background:var(--ez-list__selected-item__background);border-radius:var(--ez-list__selected-item__border-radius)}.slot-item{align-items:flex-end}.overGroup{background:rgba(226, 244, 239, 0.8);border:1px solid #008561;box-sizing:border-box;border-radius:8px;padding-top:6px}";
120009
+ const ezListCss = ":host{--ez-list__host--z-index:var(--visible, 1);--ez-list__host--border-radius:var(--border--radius-medium, 12px);--ez-list__host--padding:var(--space--medium, 12px);--ez-list__icon__padding:var(--space--small, 6px);--ez-list__icon--color:#AFB6C0;--ez-list__item__margin:0 var(--space--small, 6px);--ez-list__item--color:var(--title--primary, #2b3a54);--ez-list__item--border-bottom:var(--border--small, 1px solid);--ez-list__item--border-color:var(--title--primary, #2b3a54);--ez-list__item--font-family:var(--font-pattern, \"Sora\");--ez-list__item--font-size:var(--text--medium, 14px);--ez-list__selectable--padding-right:var(--space--small, 6px);--ez-list__selectable--padding-left:var(--space--small, 6px);--ez-list__selected-item__border-radius:var(--border--radius-small, 6px);--ez-list__selected-item__background:var(--color--primary-300, #E2F4EF);--ez-list__group--font-family:var(--font-pattern, \"Sora\");--ez-list__group--font-size:var(--text--medium, 14px);--ez-list__group--font-weight:var(--text-weight--large, 600);--ez-list__group--padding-bottom:var(--space-small, 6px);--ez-list__group__overlay--font-family:var(--font-pattern, \"Sora\");--ez-list__group__overlay--font-size:var(--text--medium, 14px);--ez-list__group-container__scrollbar--border-radius:var(--border--radius-large, 24px);--ez-list__group-container__scrollbar--width:var(--space--medium, 12px);--ez-list__group-container__scrollbar--background-color:var(--text--primary, #626e82);--ez-list__over--border--color:var(--color--primary, #008561);--ez-list__draggable__list--padding-bottom:var(--space--small, 6px);--ez-list__last-droppable-space--height:var(--space--small, 6px);--ez-list__draggable__scrollbar--border-radius:var(--border--radius-large, 24px);--ez-list__draggable__scrollbar--width:var(--space--medium, 12px);--ez-list__draggable__scrollbar--background-color:var(--text--primary, #626e82);--ez-list__draggable__icon--image:url('data:image/svg+xml;utf8,<svg width=\"18\" height=\"18\" viewBox=\"0 0 18 18\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m 6.75,2.25 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z m -3,3 h 1.5 v 1.5 h -1.5 z m 3,0 h 1.5 v 1.5 h -1.5 z\"/></svg>');max-height:100%;width:100%;background-color:#fff;display:flex;z-index:var(--ez-list__host--z-index)}p{margin:0}.draggable{display:flex;align-items:center;border-top:1px dashed #fff;justify-content:space-between;background-color:#fff;font-family:var(--ez-list__item--font-family);font-size:var(--ez-list__item--font-size);flex:1}.dragging{background:#FFFFFF;border:1px solid #008561;box-sizing:border-box;box-shadow:0px 0px 16px rgba(0, 38, 111, 0.122);border-radius:6px}.selectable{cursor:pointer;padding-right:var(--ez-list__selectable--padding-right);padding-left:var(--ez-list__selectable--padding-left)}.selectable-container{margin:0px !important}.item-content{display:flex;justify-content:center;align-items:center}.draggable-list{color:var(--text-color);padding:0;margin:0;width:100%;max-height:100%}.draggable-list li{background-color:#fff;display:flex;margin:var(--ez-list__item__margin);font-family:var(--ez-list__item--font-family);font-size:var(--ez-list__item--font-size);color:var(--ez-list__item--color);height:32px}.over{border-top:1px dashed var(--ez-list__over--border--color)}.last-droppable-space{height:var(--ez-list__last-droppable-space--height)}.draggable-selected{background-color:var(--background--strong) !important}.draggable-selected div:hover{background-color:var(--background--strong) !important}.draggable-list::-webkit-scrollbar-track{background-color:#f0f2f5}.draggable-list::-webkit-scrollbar-thumb{background-color:var(--ez-list__draggable__scrollbar--background-color);border-radius:var(--ez-list__draggable__scrollbar--border-radius)}.draggable-list::-webkit-scrollbar{background-color:#f0f2f5;width:var(--ez-list__draggable__scrollbar--width);max-width:var(--ez-list__draggable__scrollbar--width);min-width:var(--ez-list__draggable__scrollbar--width)}.draggable-icon{align-items:flex-start;display:flex;outline:none;border:none;background-color:unset}.draggable-icon::after{content:'';display:flex;background-color:var(--ez-list__icon--color);width:18px;height:18px;-webkit-mask-image:var(--ez-list__draggable__icon--image);mask-image:var(--ez-list__draggable__icon--image)}*{box-sizing:border-box}.checkbox{width:fit-content}.text--ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.group-container{display:flex;flex-direction:column;max-height:100%;overflow-y:auto;outline:none;width:100%}.group-name{font-family:var(--ez-list__group--font-family);font-size:var(--ez-list__group--font-size);font-weight:var(--ez-list__group--font-weight);padding-bottom:var(--ez-list__group--padding-bottom);-webkit-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none}.group{display:flex;flex-direction:column}.group-container::-webkit-scrollbar-track{background-color:#f0f2f5}.group-container::-webkit-scrollbar-thumb{background-color:var(--ez-list__group-container__scrollbar--background-color);border-radius:var(--ez-list__group-container__scrollbar--border-radius)}.group-container::-webkit-scrollbar{background-color:#f0f2f5;width:var(--ez-list__group-container__scrollbar--width);max-width:var(--ez-list__group-container__scrollbar--width);min-width:var(--ez-list__group-container__scrollbar--width)}.section-container{display:flex;position:relative;height:100%}.items-container{width:100%;max-height:100%;overflow-y:auto;outline:none}.group-items-container{width:100%;max-height:100%;height:100%;outline:none}.items-container::-webkit-scrollbar-track{background-color:#f0f2f5}.items-container::-webkit-scrollbar-thumb{background-color:var(--ez-list__draggable__scrollbar--background-color);border-radius:var(--ez-list__draggable__scrollbar--border-radius)}.items-container::-webkit-scrollbar{background-color:#f0f2f5;width:var(--ez-list__draggable__scrollbar--width);max-width:var(--ez-list__draggable__scrollbar--width);min-width:var(--ez-list__draggable__scrollbar--width)}.group-overlay{font-family:var(--ez-list__group__overlay--font-family);font-size:var(--ez-list__group__overlay--font-size);background:rgba(226, 244, 239, 0.8);border:1px solid #008561;border-radius:8px;position:absolute;display:none;place-items:center;top:0;bottom:0;left:0;right:0;z-index:2;margin:0;cursor:pointer}.presetedHeight{min-height:100px}.overlay-text{position:absolute;top:50%;left:50%;font-size:50px;color:white;transform:translate(-50%, -50%);-ms-transform:translate(-50%, -50%)}.selected-item{background:var(--ez-list__selected-item__background);border-radius:var(--ez-list__selected-item__border-radius)}.slot-item{align-items:flex-end}.overGroup{background:rgba(226, 244, 239, 0.8);border:1px solid #008561;box-sizing:border-box;border-radius:8px;padding-top:6px}";
119996
120010
 
119997
120011
  let EzList$1 = class extends HTMLElement$1 {
119998
120012
  constructor() {
@@ -120140,7 +120154,7 @@ let EzList$1 = class extends HTMLElement$1 {
120140
120154
  this.createList();
120141
120155
  }
120142
120156
  onDrop(ev, dragEndItem) {
120143
- this.removeOverClass(ev);
120157
+ this.removeOverClass();
120144
120158
  this.setSelection(undefined);
120145
120159
  if (this._dragStartItem) {
120146
120160
  if (this.useGroups) {
@@ -120176,6 +120190,39 @@ let EzList$1 = class extends HTMLElement$1 {
120176
120190
  }
120177
120191
  ev.stopPropagation();
120178
120192
  }
120193
+ onDropLastIndex(ev, groupDropped) {
120194
+ this.removeOverClass();
120195
+ this.setSelection(undefined);
120196
+ if (this._dragStartItem) {
120197
+ if (this.useGroups) {
120198
+ let newList = [...this._listGroupItems];
120199
+ let groupEnd = this._listGroupItems.find(group => groupDropped.group == group.group);
120200
+ //Remove item arrastado
120201
+ newList.find(group => group.group == this._dragStartItem.groupName).items.splice(this._dragStartItem.index, 1);
120202
+ //Adiciona item arrastado
120203
+ newList.find(group => group.group == groupDropped.group).items.push(this._dragStartItem.item);
120204
+ if (groupEnd.sort) {
120205
+ newList.find(group => group.group == groupDropped.group).items.sort(function (a, b) {
120206
+ return a.label < b.label ? -1 : a.label > b.label ? 1 : 0;
120207
+ });
120208
+ if (groupEnd.sort === "DSC") {
120209
+ newList.find(group => group.group == groupDropped.group).items.reverse();
120210
+ }
120211
+ }
120212
+ this._listGroupItems = newList;
120213
+ this.ezChange.emit(this._listGroupItems);
120214
+ }
120215
+ else {
120216
+ let newList = [...this._listItems];
120217
+ newList.splice(this._dragStartItem.index, 1);
120218
+ newList.push(this._dragStartItem.item);
120219
+ this._listItems = newList;
120220
+ this._listItemsHistory = newList;
120221
+ this.ezChange.emit(this._listItems);
120222
+ }
120223
+ }
120224
+ ev.stopPropagation();
120225
+ }
120179
120226
  onDropGroup(groupSelected) {
120180
120227
  var _a;
120181
120228
  let newList = [...this._listGroupItems];
@@ -120209,6 +120256,9 @@ let EzList$1 = class extends HTMLElement$1 {
120209
120256
  }
120210
120257
  onDragEnd() {
120211
120258
  this._dragStartItem = undefined;
120259
+ if (this.useGroups) {
120260
+ this.hideOverlays();
120261
+ }
120212
120262
  if (this._draggingElement) {
120213
120263
  try {
120214
120264
  this._element.shadowRoot.removeChild(this._draggingElement);
@@ -120217,65 +120267,74 @@ let EzList$1 = class extends HTMLElement$1 {
120217
120267
  this._draggingElement = undefined;
120218
120268
  }
120219
120269
  }
120220
- addOverClass(ev) {
120221
- if (ev.target.__proto__ == HTMLDivElement.prototype && ev.target.classList.contains("draggable")) {
120222
- ev.target.classList.add('over');
120270
+ addOverClass(element) {
120271
+ if ((element === null || element === void 0 ? void 0 : element.__proto__) == HTMLDivElement.prototype && element.classList.contains("draggable")) {
120272
+ element.classList.add('over');
120273
+ }
120274
+ else if ((element === null || element === void 0 ? void 0 : element.parentElement) && !element.parentElement.classList.contains("draggable-list")) {
120275
+ this.addOverClass(element.parentElement);
120223
120276
  }
120224
120277
  }
120225
120278
  addOverGroupClass(ev, group) {
120226
120279
  if (ev.target) {
120227
120280
  let groupContainer = this._groupContainer.querySelector("div#" + this.getDivGroupId(group.group));
120281
+ let groupOverlay = groupContainer.getElementsByClassName("group-overlay")[0];
120228
120282
  if (group.items.length > 0) {
120229
- let groupOverlay = groupContainer.getElementsByClassName("group-overlay")[0];
120230
120283
  groupOverlay.setAttribute("style", "display:grid");
120231
120284
  }
120232
120285
  else {
120233
- groupContainer === null || groupContainer === void 0 ? void 0 : groupContainer.classList.add('overGroup');
120286
+ groupOverlay.classList.add("presetedHeight");
120287
+ groupOverlay.setAttribute("style", "display:grid");
120288
+ groupOverlay.scrollIntoView(false);
120234
120289
  }
120235
120290
  }
120236
120291
  }
120237
- removeOverClass(ev) {
120238
- ev.target.classList.remove('over');
120292
+ removeOverClass() {
120293
+ var _a, _b;
120294
+ let overCollection;
120295
+ let overLastDroppableCollection;
120296
+ if (this.useGroups) {
120297
+ overCollection = (_a = this._groupContainer) === null || _a === void 0 ? void 0 : _a.getElementsByClassName('over');
120298
+ overLastDroppableCollection = this._groupContainer.getElementsByClassName('last-droppable-space');
120299
+ }
120300
+ else {
120301
+ overCollection = (_b = this._itemContainer) === null || _b === void 0 ? void 0 : _b.getElementsByClassName('over');
120302
+ overLastDroppableCollection = this._itemContainer.getElementsByClassName('last-droppable-space');
120303
+ }
120304
+ if (overCollection) {
120305
+ Array.from(overCollection).forEach(function (element) {
120306
+ element.classList.remove('over');
120307
+ });
120308
+ }
120309
+ if (overLastDroppableCollection) {
120310
+ Array.from(overLastDroppableCollection).forEach(function (element) {
120311
+ element.classList.remove('over');
120312
+ });
120313
+ }
120239
120314
  }
120240
120315
  removeOverGroupClass(ev, group) {
120241
120316
  if (ev.target) {
120242
120317
  let groupContainer = this._groupContainer.querySelector("div#" + this.getDivGroupId(group.group));
120243
- if (group.items.length > 0) {
120244
- let groupOverlay = groupContainer.getElementsByClassName("group-overlay")[0];
120318
+ let groupOverlay = groupContainer.getElementsByClassName("group-overlay")[0];
120319
+ if (groupOverlay) {
120320
+ groupOverlay.classList.remove("presetedHeight");
120245
120321
  groupOverlay.setAttribute("style", "display:none");
120246
120322
  }
120247
- else {
120248
- groupContainer === null || groupContainer === void 0 ? void 0 : groupContainer.classList.remove('overGroup');
120249
- }
120250
120323
  }
120251
120324
  }
120252
- onDragStart(event, item, group, index) {
120325
+ onDragStart(item, group, index) {
120326
+ if (this._changeDeboucingTimeout) {
120327
+ window.clearTimeout(this._changeDeboucingTimeout);
120328
+ }
120253
120329
  if (this.useGroups) {
120254
120330
  this._dragStartItem = { groupName: group.group, item: item, index: index };
120331
+ this._changeDeboucingTimeout = window.setTimeout(() => {
120332
+ this.showOverlays(group);
120333
+ }, 10);
120255
120334
  }
120256
120335
  else {
120257
120336
  this._dragStartItem = { item: item.item, index: item.index };
120258
120337
  }
120259
- let sourceElement = event.srcElement.cloneNode(true);
120260
- this._draggingElement = event.srcElement.cloneNode(true);
120261
- this._draggingElement.style.position = "absolute";
120262
- this._draggingElement.style.top = (event.clientY + 5) + 'px';
120263
- this._draggingElement.style.left = (event.clientX + 5) + 'px';
120264
- this._draggingElement.style.height = event.srcElement.clientHeight + 'px';
120265
- this._draggingElement.style.width = event.srcElement.clientWidth + 'px';
120266
- this._draggingElement.style.background = "#FFFFFF";
120267
- this._draggingElement.style.border = "1px solid #008561";
120268
- this._draggingElement.style["box-sizing"] = "border-box";
120269
- this._draggingElement.style["box-shadow"] = "0px 0px 16px rgba(0, 38, 111, 0.122)";
120270
- this._draggingElement.style["border-radius"] = "6px";
120271
- this._element.shadowRoot.appendChild(this._draggingElement);
120272
- event.dataTransfer.setDragImage(sourceElement, -10000, -10000);
120273
- }
120274
- onDrag(event) {
120275
- if (this._draggingElement) {
120276
- this._draggingElement.style.top = (event.clientY + 5) + 'px';
120277
- this._draggingElement.style.left = (event.clientX + 5) + 'px';
120278
- }
120279
120338
  }
120280
120339
  selectFirstItem() {
120281
120340
  if (this.useGroups) {
@@ -120378,43 +120437,67 @@ let EzList$1 = class extends HTMLElement$1 {
120378
120437
  }
120379
120438
  return undefined;
120380
120439
  }
120440
+ getGroupOverlayId(groupName) {
120441
+ if (groupName) {
120442
+ return "group-overlay-" + groupName.replace(/[^a-z0-9_]/gi, "_");
120443
+ }
120444
+ return undefined;
120445
+ }
120381
120446
  onDragOverGroup(event, group) {
120382
- if (this._dragStartItem && this._dragStartItem.groupName !== group.group) {
120447
+ if (this._dragStartItem && this._dragStartItem.groupName !== group.group && group.sort) {
120383
120448
  event.preventDefault();
120384
120449
  this.addOverGroupClass(event, group);
120385
120450
  }
120386
120451
  }
120387
- onDragOverItem(event, group) {
120452
+ onDragOverItem(event) {
120388
120453
  if (this._dragStartItem) {
120389
120454
  event.preventDefault();
120390
- if (group) {
120391
- group.sort ?
120392
- () => {
120393
- this.addOverGroupClass(event, group);
120394
- }
120395
- : this.addOverClass(event);
120396
- }
120397
- else {
120398
- this.addOverClass(event);
120399
- }
120455
+ this.addOverClass(event.target);
120400
120456
  event.stopPropagation();
120401
120457
  }
120402
120458
  }
120459
+ onDragOverLastIndex(ev) {
120460
+ ev.preventDefault();
120461
+ if (this._dragStartItem) {
120462
+ ev.target.classList.add('over');
120463
+ ev.stopPropagation();
120464
+ }
120465
+ }
120466
+ showOverlays(groupDragStart) {
120467
+ let groupOverlayCollection = this._groupContainer.getElementsByClassName("group-overlay");
120468
+ Array.from(groupOverlayCollection).forEach(groupOverlay => {
120469
+ let groupOverlayID = this.getGroupOverlayId(groupDragStart.group);
120470
+ if (groupOverlayID && groupOverlay.getAttribute("id") && groupOverlayID != groupOverlay.getAttribute("id")) {
120471
+ groupOverlay.classList.add("presetedHeight");
120472
+ groupOverlay.setAttribute("style", "display:grid");
120473
+ }
120474
+ });
120475
+ }
120476
+ hideOverlays() {
120477
+ var _a;
120478
+ let groupOverlayCollection = (_a = this._groupContainer) === null || _a === void 0 ? void 0 : _a.getElementsByClassName("group-overlay");
120479
+ Array.from(groupOverlayCollection).forEach(groupOverlay => {
120480
+ groupOverlay.classList.remove("presetedHeight");
120481
+ groupOverlay.setAttribute("style", "display:none");
120482
+ });
120483
+ }
120403
120484
  render() {
120404
120485
  return (h(Host, { ref: (el) => this._element = el }, this.useGroups ?
120405
120486
  h("div", { class: "group-container", ref: (el) => this._groupContainer = el, tabIndex: 0, onKeyDown: (event) => { this.keyDownHandler(event); } }, this._listGroupItems.map(group => {
120406
- return h("div", { id: this.getDivGroupId(group.group), class: "group", key: group.group + group.items.length, onDragLeave: (event) => { this.removeOverGroupClass(event, group); }, onDragEnd: (event) => { this.onDragEnd(); this.removeOverGroupClass(event, group); }, onDragOver: (event) => { this.onDragOverGroup(event, group); }, onDrop: () => this.onDropGroup(group) }, h("label", { class: "group-name", onDragLeave: (event) => { this.removeOverGroupClass(event, group); }, onDragOver: (event) => { this.onDragOverGroup(event, group); }, onDragEnd: (event) => { this.onDragEnd(); this.removeOverGroupClass(event, group); }, onDrop: () => this.onDropGroup(group) }, group.group), h("section", { class: "section-container", onDragOver: (ev) => ev.preventDefault() }, h("div", { class: "group-items-container" }, h("div", { class: "draggable-list" }, group.items.map((item, index) => {
120407
- return h("li", { id: 'item_' + this.getItemId(item.label), class: this.ezSelectable ? "selectable-container" : "", key: 'item_' + this.getItemId(item.label) }, h("div", { class: "draggable" + (item.selected == true ? " selected-item " : "") + (this.ezSelectable == true ? " selectable " : ""), onClick: () => { this.setSelection(item); }, onDragLeave: (event) => { group.sort ? undefined : this.removeOverClass(event); }, onDragEnd: () => this.onDragEnd(), onDragStart: (event) => this.onDragStart(event, item, group, index), onDragOver: (event) => this.onDragOverItem(event, group), onDrop: (event) => this.onDrop(event, { groupName: group.group, item: item, index: index }), onDrag: (event) => this.onDrag(event), draggable: this.ezDraggable }, h("div", { class: "item-content" }, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label)), this.itemSlotBuilder ?
120487
+ return h("div", { id: this.getDivGroupId(group.group), class: "group", key: group.group + group.items.length, onDrop: () => this.onDropGroup(group) }, h("label", { draggable: false, class: "group-name" }, group.group), h("section", { class: "section-container", onDragOver: (ev) => ev.preventDefault() }, h("div", { class: "group-items-container" }, h("div", { class: "draggable-list" }, group.items.map((item, index) => {
120488
+ return h("li", { id: 'item_' + this.getItemId(item.label), class: this.ezSelectable ? "selectable-container" : "", key: 'item_' + this.getItemId(item.label) }, h("div", { class: "draggable" + (item.selected == true ? " selected-item " : "") + (this.ezSelectable == true ? " selectable " : ""), onClick: () => { this.setSelection(item); }, onDragLeave: () => { group.sort ? undefined : this.removeOverClass(); }, onDragEnd: () => this.onDragEnd(), onDragStart: () => this.onDragStart(item, group, index), onDragOver: (event) => { group.sort ? undefined : this.onDragOverItem(event); }, onDrop: (event) => this.onDrop(event, { groupName: group.group, item: item, index: index }), draggable: this.ezDraggable }, h("div", { class: "item-content" }, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label)), this.itemSlotBuilder ?
120408
120489
  h("div", { class: "slot-item" }, this.itemSlotBuilder(item, group))
120409
120490
  : undefined));
120410
- }))), h("div", { class: "group-overlay" }, h("div", { id: "overlay-text" }, h("b", null, "Mover"), " para ", group.group))));
120491
+ })), h("div", { class: "last-droppable-space", onDragLeave: () => this.removeOverClass(), onDragOver: (event) => { this.onDragOverLastIndex(event); }, onDragEnd: () => this.onDragEnd(), onDrop: (event) => this.onDropLastIndex(event, group) })), group.sort ?
120492
+ h("div", { id: this.getGroupOverlayId(group.group), class: "group-overlay" }, "Mover para ", group.group)
120493
+ : undefined));
120411
120494
  }))
120412
120495
  :
120413
120496
  h("div", { class: "items-container", ref: (el) => this._itemContainer = el, tabIndex: 0, onKeyDown: (event) => { this.keyDownHandler(event); } }, h("div", { class: "draggable-list" }, this._listItems.map((item, index) => {
120414
- return h("li", { id: 'item_' + this.getItemId(item.label), class: this.ezSelectable ? "selectable-container" : "", key: 'item_' + this.getItemId(item.label) }, h("div", { class: "draggable" + (item.selected == true ? " selected-item " : "") + (this.ezSelectable == true ? " selectable " : ""), onDragStart: (event) => this.onDragStart(event, { item: item, index: index }), onClick: () => { this.setSelection(item); }, onDragLeave: event => this.removeOverClass(event), onDragOver: (event) => this.onDragOverItem(event), onDragEnd: () => this.onDragEnd(), onDrop: (event) => this.onDrop(event, { item: item, index: index }), onDrag: (event) => this.onDrag(event), draggable: this.ezDraggable }, h("div", { class: "item-content" }, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label)), this.itemSlotBuilder ?
120497
+ return h("li", { id: 'item_' + this.getItemId(item.label), class: this.ezSelectable ? "selectable-container" : "", key: 'item_' + this.getItemId(item.label) }, h("div", { class: "draggable" + (item.selected == true ? " selected-item " : "") + (this.ezSelectable == true ? " selectable " : ""), onDragStart: () => this.onDragStart({ item: item, index: index }), onClick: () => { this.setSelection(item); }, onDragLeave: () => this.removeOverClass(), onDragOver: (event) => this.onDragOverItem(event), onDragEnd: () => this.onDragEnd(), onDrop: (event) => this.onDrop(event, { item: item, index: index }), draggable: this.ezDraggable }, h("div", { class: "item-content" }, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label)), this.itemSlotBuilder ?
120415
120498
  h("div", null, this.itemSlotBuilder(item))
120416
120499
  : undefined));
120417
- })))));
120500
+ }), h("div", { class: "last-droppable-space", onDragLeave: () => this.removeOverClass(), onDragOver: (event) => { this.onDragOverLastIndex(event); }, onDragEnd: () => this.onDragEnd(), onDrop: (event) => this.onDropLastIndex(event) })))));
120418
120501
  }
120419
120502
  static get style() { return ezListCss; }
120420
120503
  };
@@ -120759,12 +120842,10 @@ let EzTabselector$1 = class extends HTMLElement$1 {
120759
120842
  this.ezChange = createEvent(this, "ezChange", 7);
120760
120843
  this.setFocusedParam = (ev) => {
120761
120844
  if (ev.key === "Enter") {
120762
- this.selectedIndex = this.focusedIndex;
120763
- this.focusedIndex = undefined;
120764
- this.selectedTab = this._processedTabs[this.selectedIndex]["tabKey"];
120765
- this.handleTabClick(this.selectedTab, parseInt(this.selectedIndex));
120845
+ const selectedTab = this._processedTabs[this._focusedIndex];
120846
+ this.handleTabClick(selectedTab);
120766
120847
  ev.preventDefault();
120767
- this.setFocusedTab(this.selectedIndex);
120848
+ this.setFocusedTab(selectedTab.index);
120768
120849
  }
120769
120850
  else if (ev.key === "ArrowLeft" || ev.key === "ArrowRight") {
120770
120851
  let operator = undefined;
@@ -120777,48 +120858,46 @@ let EzTabselector$1 = class extends HTMLElement$1 {
120777
120858
  else {
120778
120859
  return;
120779
120860
  }
120780
- if (this.focusedIndex === undefined) {
120861
+ if (this._focusedIndex === undefined) {
120781
120862
  if (operator === false) {
120782
- this.focusedIndex = this.selectedIndex !== undefined ? (parseInt(this.selectedIndex) - 1).toString() : undefined;
120863
+ this._focusedIndex = this.selectedIndex !== undefined ? this.selectedIndex - 1 : undefined;
120783
120864
  }
120784
120865
  else {
120785
- this.focusedIndex = this.selectedIndex !== undefined ? (parseInt(this.selectedIndex) + 1).toString() : undefined;
120866
+ this._focusedIndex = this.selectedIndex !== undefined ? this.selectedIndex + 1 : undefined;
120786
120867
  }
120787
120868
  }
120788
120869
  else {
120789
120870
  if (operator === false) {
120790
- this.focusedIndex = (parseInt(this.focusedIndex) - 1).toString();
120871
+ this._focusedIndex = this._focusedIndex - 1;
120791
120872
  }
120792
120873
  else {
120793
- this.focusedIndex = (parseInt(this.focusedIndex) + 1).toString();
120874
+ this._focusedIndex = this._focusedIndex + 1;
120794
120875
  }
120795
120876
  }
120796
- if (parseInt(this.focusedIndex) < 0) {
120797
- this.focusedIndex = "0";
120877
+ if (this._focusedIndex < 0) {
120878
+ this._focusedIndex = 0;
120798
120879
  }
120799
- else if (parseInt(this.focusedIndex) > this._processedTabs.length - 1) {
120800
- this.focusedIndex = (this._processedTabs.length - 1).toString();
120880
+ else if (this._focusedIndex > this._processedTabs.length - 1) {
120881
+ this._focusedIndex = this._processedTabs.length - 1;
120801
120882
  }
120802
- this.setFocusedBtn(true, this.focusedIndex);
120803
- this.setFocusedTab(this.focusedIndex);
120804
- this.ezChange.emit(this.selectedTab);
120883
+ this.setFocusedBtn(true, this._focusedIndex);
120884
+ this.setFocusedTab(this._focusedIndex);
120805
120885
  }
120806
120886
  else if (ev.key === "Tab" || ev.key === "Escape") {
120807
- this.focusedIndex = undefined;
120808
- this.selectedTab = this._processedTabs[this.selectedIndex]["tabKey"];
120809
- this.handleTabClick(this.selectedTab, parseInt(this.selectedIndex));
120887
+ const currentTab = this._processedTabs[this.selectedIndex];
120888
+ this._focusedIndex = undefined;
120889
+ this.handleTabClick(currentTab);
120810
120890
  ev.preventDefault();
120811
120891
  this.setFocusedTab(this.selectedIndex);
120812
120892
  }
120813
- // this.setFocusedTab();
120814
120893
  };
120815
120894
  }
120816
- handleTabClick(tab, index) {
120817
- this.selectedIndex = index.toString();
120818
- this.focusedIndex = undefined;
120819
- this.selectedTab = tab;
120820
- this.ezChange.emit(this.selectedTab);
120821
- this.setFocusedBtn(false, this.selectedIndex);
120895
+ handleTabClick(tab) {
120896
+ this.selectedIndex = tab.index;
120897
+ this._focusedIndex = undefined;
120898
+ this.selectedTab = tab.tabKey;
120899
+ this.ezChange.emit(tab);
120900
+ this.setFocusedBtn(false, tab.index);
120822
120901
  }
120823
120902
  componentWillRender() {
120824
120903
  if (!this._processedTabs) {
@@ -120826,16 +120905,16 @@ let EzTabselector$1 = class extends HTMLElement$1 {
120826
120905
  if (this.tabs) {
120827
120906
  this.tabs.split(",").forEach((label) => {
120828
120907
  label = label.trim();
120829
- this._processedTabs.push(new Tab(label, label));
120908
+ this._processedTabs.push({ label, tabKey: label, index: this._processedTabs.length });
120830
120909
  });
120831
120910
  }
120832
120911
  this._hostElem.querySelectorAll("ez-tab").forEach((elem) => {
120833
120912
  const tabKey = elem.getAttribute("tabKey");
120834
120913
  const label = elem.getAttribute("label");
120835
- const t = new Tab(label, tabKey);
120914
+ const t = { label, tabKey, index: this._processedTabs.length };
120836
120915
  const content = elem.firstChild;
120837
120916
  if (content) {
120838
- content.setAttribute("slot", "tab" + this._processedTabs.length);
120917
+ content.setAttribute("slot", "tab" + t.index);
120839
120918
  this._hostElem.appendChild(content);
120840
120919
  }
120841
120920
  this._processedTabs.push(t);
@@ -120934,23 +121013,17 @@ let EzTabselector$1 = class extends HTMLElement$1 {
120934
121013
  return (h(Host, null, h("button", { class: "backward-button", ref: (el) => this._backwardButton = el, onClick: () => this.scrollBackward() }), h("div", { class: "scroll", ref: (el) => this._scrollContainer = el, onScroll: () => this.domScrollHandler(), onKeyDown: (ev) => this.setFocusedParam(ev) }, this._processedTabs.map((tab, index) => {
120935
121014
  const labelStyle = { "min-width": this.getTextWidth(tab.label) };
120936
121015
  const tabId = "tab" + index;
120937
- const isSelected = index === parseInt(this.selectedIndex) || (this.selectedTab && tab.tabKey === this.selectedTab);
121016
+ const isSelected = index === this.selectedIndex || (this.selectedTab && tab.tabKey === this.selectedTab);
120938
121017
  if (isSelected) {
120939
121018
  this.selectedTab = tab.tabKey;
120940
- this.selectedIndex = index.toString();
121019
+ this.selectedIndex = index;
120941
121020
  }
120942
- return h("button", { id: tabId, class: `tab${isSelected ? " is-active" : ""}`, onClick: () => this.handleTabClick(tab.tabKey, index), style: labelStyle }, h("span", { class: "tab-label", title: tab.label }, tab.label), h("slot", { name: tabId, onSlotchange: (ev) => { this.handleSlotChange(ev); } }));
121021
+ return h("button", { id: tabId, class: `tab${isSelected ? " is-active" : ""}`, onClick: () => this.handleTabClick(tab), style: labelStyle }, h("span", { class: "tab-label", title: tab.label }, tab.label), h("slot", { name: tabId, onSlotchange: (ev) => { this.handleSlotChange(ev); } }));
120943
121022
  })), h("button", { class: "forward-button", ref: (el) => this._forwardButton = el, onClick: () => this.scrollFoward() })));
120944
121023
  }
120945
121024
  get _hostElem() { return this; }
120946
121025
  static get style() { return ezTabselectorCss; }
120947
121026
  };
120948
- class Tab {
120949
- constructor(label, tabKey) {
120950
- this.label = label;
120951
- this.tabKey = tabKey;
120952
- }
120953
- }
120954
121027
 
120955
121028
  const ezTextAreaCss = ":host{--text-area--width:100%;--text-area--border-radius:var(--border--radius-medium, 12px);--text-area--font-size:var(--text--medium, 14px);--text-area--font-family:var(--font-pattern, Arial);--text-area--font-weight:var(--text-weight--large, 500);--text-area--color:var(--title--primary, #000);--text-area__input--background-color:var(--background--medium, #e0e0e0);--text-area__input--border:var(--border--medium, 2px solid);--text-area__input--border-color:var(--text-area__input--background-color);--text-area__input--focus--border-color:var(--color--primary, #008561);--text-area__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--text-area__input--disabled--color:var(--text--disable, #AFB6C0);--text-area__input--error--border-color:#CC2936;--text-area__message_box--font-size:var(--text--small, 12px);--text-area__message_box--info--color:var(--color--success, #22085d);--text-area__message_box--error--color:var(--color--error, #FF0000);--text-area__label--floating--top:6px;--text-area__label--padding-top:12px;--text-area__label--padding-left:14px;--text-area__label--padding-right:12px;display:flex;flex-wrap:wrap;position:relative;width:var(--text-area--width)}textarea{box-sizing:border-box;border:none;resize:none;margin-top:calc(var(--space--medium, 12px) + 4px);width:100%;font-weight:var(--text-weight--large, 600);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);color:var(--text-area--color);padding:0;background:none}textarea:focus{outline:none}textarea:disabled{background-color:transparent;color:var(--text-area__input--disabled--color)}.textarea{width:100%;box-sizing:border-box;padding-left:var(--space--medium);padding-right:var(--space--extra-small);border-radius:var(--text-area--border-radius);border:var(--text-area__input--border);border-color:var(--text-area__input--border-color);background-color:var(--text-area__input--background-color)}.textarea--focus{border-color:var(--text-area__input--focus--border-color)}.textarea.hasError{color:var(--text-area--color);border-color:var(--text-area__input--error--border-color)}.message-box{min-height:16px;min-width:100%;margin-top:2px;line-height:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--text-area--font-family);font-size:var(--text-area__message_box--font-size);color:var(--text-area__message_box--info--color)}.hasError{color:var(--text-area__message_box--error--color)}.textarea__label{box-sizing:border-box;position:absolute;z-index:var(--visible);overflow:hidden;text-overflow:ellipsis;white-space:nowrap;-webkit-transition:font-size .05s, top .05s;transition:font-size .05s, top .05s;width:calc(100% - var(--text-area__label--padding-right));left:var(--text-area--space--medium);font-family:var(--text-area--font-family);font-size:var(--text-area--font-size);font-weight:var(--text-area--font-weight);color:var(--text-area--color);top:var(--text-area__label--padding-top);left:var(--text-area__label--padding-left);padding-right:var(--text-area__label--padding-right)}.textarea__label--floated{font-family:var(--text-area--font-family);font-size:var(--text--extra-small);color:var(--text--primary);top:var(--text-area__label--floating--top)}.textarea__label--disabled{color:var(--text-area__input--disabled--color)}";
120956
121029
 
@@ -121996,7 +122069,7 @@ let GridConfig$1 = class extends HTMLElement$1 {
121996
122069
  }
121997
122070
  }
121998
122071
  render() {
121999
- return (h(Host, null, h("div", { class: "grid-config__header" }, h("div", { class: "title-container" }, h("div", { class: "" }, h("label", { class: "title" }, "Configura\u00E7\u00E3o da Grade"), h("label", { class: "subtitle" }, "Defina visibilidade e ordem das colunas.")), h("div", { class: "button-close" }, h("ez-button", { mode: 'icon', image: getSpritePath("close"), size: 'medium', onClick: () => this.closeConfig() }))), h("div", { class: "tabselector-container" }, h("ez-tabselector", { selectedTab: this.selectedTab, selectedIndex: '0', onEzChange: (ev) => { this.handleTabChange(ev); }, tabs: 'Colunas, Ordena\u00E7\u00E3o' })), h("div", null, h("ez-text-input", { ref: (el) => this._searchElement = el, label: "Localizar coluna", onKeyUp: evt => this.locateColumn(evt) }, h("ez-icon", { slot: "leftIcon", size: "medium", href: getSpritePath("search") })))), h("div", { class: "grid-config__main" }, 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 }), h("ez-list", { ref: (el) => this._orderList = el, class: this.selectedTab === "Ordenação" ? "" : "hidden", dataSource: this._orderListItems, ezSelectable: true, itemSlotBuilder: (item) => this.buildOrderListSlot(item) })), h("div", { class: "grid-config__footer" }, h("ez-button", { class: "padding-right--medium", label: "Cancelar", onClick: () => this.closeConfig() }), h("ez-button", { label: "Concluir", class: "button--primary", onClick: () => this.finish() }))));
122072
+ return (h(Host, null, h("div", { class: "grid-config__header" }, h("div", { class: "title-container" }, h("div", { class: "" }, h("label", { class: "title" }, "Configura\u00E7\u00E3o da Grade"), h("label", { class: "subtitle" }, "Defina visibilidade e ordem das colunas.")), h("div", { class: "button-close" }, h("ez-button", { mode: 'icon', image: getSpritePath("close"), size: 'medium', onClick: () => this.closeConfig() }))), h("div", { class: "tabselector-container" }, h("ez-tabselector", { selectedTab: this.selectedTab, selectedIndex: 0, onEzChange: (ev) => { this.handleTabChange(ev); }, tabs: 'Colunas, Ordena\u00E7\u00E3o' })), h("div", null, h("ez-text-input", { ref: (el) => this._searchElement = el, label: "Localizar coluna", onKeyUp: evt => this.locateColumn(evt) }, h("ez-icon", { slot: "leftIcon", size: "medium", href: getSpritePath("search") })))), h("div", { class: "grid-config__main" }, 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 }), h("ez-list", { ref: (el) => this._orderList = el, class: this.selectedTab === "Ordenação" ? "" : "hidden", dataSource: this._orderListItems, ezSelectable: true, itemSlotBuilder: (item) => this.buildOrderListSlot(item) })), h("div", { class: "grid-config__footer" }, h("ez-button", { class: "padding-right--medium", label: "Cancelar", onClick: () => this.closeConfig() }), h("ez-button", { label: "Concluir", class: "button--primary", onClick: () => this.finish() }))));
122000
122073
  }
122001
122074
  static get assetsDirs() { return ["../assets"]; }
122002
122075
  static get style() { return gridConfigCss; }
@@ -122113,7 +122186,7 @@ const EzNumberInput = /*@__PURE__*/proxyCustomElement(EzNumberInput$1, [1,"ez-nu
122113
122186
  const EzPopover = /*@__PURE__*/proxyCustomElement(EzPopover$1, [1,"ez-popover",{"autoClose":[516,"auto-close"],"top":[1537],"left":[1537],"bottom":[1537],"right":[1537],"boxWidth":[513,"box-width"],"opened":[1540]}]);
122114
122187
  const EzPopup = /*@__PURE__*/proxyCustomElement(EzPopup$1, [1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[1540,"use-header"],"ezTitle":[1,"ez-title"]}]);
122115
122188
  const EzSearch = /*@__PURE__*/proxyCustomElement(EzSearch$1, [1,"ez-search",{"value":[1537],"label":[1537],"enabled":[1540],"errorMessage":[1537,"error-message"],"optionLoader":[16],"showSelectedValue":[4,"show-selected-value"],"showOptionValue":[4,"show-option-value"]}]);
122116
- const EzTabselector = /*@__PURE__*/proxyCustomElement(EzTabselector$1, [1,"ez-tabselector",{"selectedIndex":[1537,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}]);
122189
+ const EzTabselector = /*@__PURE__*/proxyCustomElement(EzTabselector$1, [1,"ez-tabselector",{"selectedIndex":[1538,"selected-index"],"selectedTab":[1537,"selected-tab"],"tabs":[1]}]);
122117
122190
  const EzTextArea = /*@__PURE__*/proxyCustomElement(EzTextArea$1, [1,"ez-text-area",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"rows":[1538]}]);
122118
122191
  const EzTextInput = /*@__PURE__*/proxyCustomElement(EzTextInput$1, [1,"ez-text-input",{"label":[513],"value":[1537],"enabled":[516],"loading":[516],"errorMessage":[1537,"error-message"],"mask":[1],"restrict":[1]}]);
122119
122192
  const EzTimeInput = /*@__PURE__*/proxyCustomElement(EzTimeInput$1, [1,"ez-time-input",{"label":[513],"viewValue":[1537,"view-value"],"value":[1026],"enabled":[516],"errorMessage":[1537,"error-message"],"showSeconds":[516,"show-seconds"]}]);