@sankhyalabs/ezui 5.22.0-dev.64 → 5.22.0-dev.66

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 (195) hide show
  1. package/dist/cjs/ez-actions-button.cjs.entry.js +1 -1
  2. package/dist/cjs/ez-alert-list.cjs.entry.js +1 -1
  3. package/dist/cjs/ez-alert.cjs.entry.js +1 -1
  4. package/dist/cjs/ez-application.cjs.entry.js +1 -1
  5. package/dist/cjs/ez-badge.cjs.entry.js +1 -1
  6. package/dist/cjs/ez-breadcrumb.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-button.cjs.entry.js +1 -1
  8. package/dist/cjs/ez-calendar.cjs.entry.js +1 -1
  9. package/dist/cjs/{ez-card-item_3.cjs.entry.js → ez-card-item_2.cjs.entry.js} +1 -124
  10. package/dist/cjs/ez-chart.cjs.entry.js +1 -1
  11. package/dist/cjs/ez-check.cjs.entry.js +1 -1
  12. package/dist/cjs/ez-chip.cjs.entry.js +1 -1
  13. package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -1
  14. package/dist/cjs/ez-combo-box.cjs.entry.js +1 -1
  15. package/dist/cjs/ez-custom-form-input_2.cjs.entry.js +2 -2
  16. package/dist/cjs/ez-date-input.cjs.entry.js +1 -1
  17. package/dist/cjs/ez-date-time-input.cjs.entry.js +1 -1
  18. package/dist/cjs/ez-dialog.cjs.entry.js +1 -1
  19. package/dist/cjs/ez-double-list.cjs.entry.js +285 -0
  20. package/dist/cjs/ez-dropdown_2.cjs.entry.js +1 -1
  21. package/dist/cjs/ez-file-item.cjs.entry.js +1 -1
  22. package/dist/cjs/ez-filter-input.cjs.entry.js +130 -0
  23. package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
  24. package/dist/cjs/ez-form.cjs.entry.js +1 -1
  25. package/dist/cjs/ez-grid.cjs.entry.js +4 -4
  26. package/dist/cjs/ez-guide-navigator.cjs.entry.js +1 -1
  27. package/dist/cjs/ez-icon.cjs.entry.js +1 -1
  28. package/dist/cjs/ez-list.cjs.entry.js +247 -206
  29. package/dist/cjs/ez-loading-bar.cjs.entry.js +1 -1
  30. package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
  31. package/dist/cjs/ez-modal.cjs.entry.js +1 -1
  32. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +1 -1
  33. package/dist/cjs/ez-number-input.cjs.entry.js +1 -1
  34. package/dist/cjs/ez-popover.cjs.entry.js +1 -1
  35. package/dist/cjs/ez-popup.cjs.entry.js +5 -2
  36. package/dist/cjs/ez-radio-button.cjs.entry.js +1 -1
  37. package/dist/cjs/ez-scroller_2.cjs.entry.js +1 -1
  38. package/dist/cjs/ez-search.cjs.entry.js +1 -1
  39. package/dist/cjs/ez-sidebar-navigator.cjs.entry.js +1 -1
  40. package/dist/cjs/ez-split-button.cjs.entry.js +1 -1
  41. package/dist/cjs/ez-split-item.cjs.entry.js +1 -1
  42. package/dist/cjs/ez-split-panel.cjs.entry.js +1 -1
  43. package/dist/cjs/ez-tabselector.cjs.entry.js +1 -1
  44. package/dist/cjs/ez-text-area.cjs.entry.js +1 -1
  45. package/dist/cjs/ez-text-input.cjs.entry.js +1 -1
  46. package/dist/cjs/ez-time-input.cjs.entry.js +1 -1
  47. package/dist/cjs/ez-toast.cjs.entry.js +1 -1
  48. package/dist/cjs/ez-tooltip.cjs.entry.js +1 -1
  49. package/dist/cjs/ez-tree.cjs.entry.js +1 -1
  50. package/dist/cjs/ez-upload.cjs.entry.js +1 -1
  51. package/dist/cjs/ez-view-stack.cjs.entry.js +1 -1
  52. package/dist/cjs/ezListHelper-0d3970b4.js +90 -0
  53. package/dist/cjs/ezui.cjs.js +2 -2
  54. package/dist/cjs/filter-column.cjs.entry.js +1 -1
  55. package/dist/cjs/{index-9e5554cb.js → index-a7b0c73d.js} +10 -5
  56. package/dist/cjs/loader.cjs.js +2 -2
  57. package/dist/collection/collection-manifest.json +1 -0
  58. package/dist/collection/components/ez-double-list/doubleListHelper.js +82 -0
  59. package/dist/collection/components/ez-double-list/ez-double-list.css +62 -0
  60. package/dist/collection/components/ez-double-list/ez-double-list.js +418 -0
  61. package/dist/collection/components/ez-grid/ez-grid.css +24 -6
  62. package/dist/collection/components/ez-grid/ez-grid.js +5 -5
  63. package/dist/collection/components/ez-list/ez-list.js +273 -208
  64. package/dist/collection/components/ez-list/ezListHelper.js +85 -0
  65. package/dist/collection/components/ez-popup/ez-popup.css +1 -0
  66. package/dist/collection/components/ez-popup/ez-popup.js +5 -2
  67. package/dist/custom-elements/index.d.ts +6 -0
  68. package/dist/custom-elements/index.js +627 -220
  69. package/dist/esm/ez-actions-button.entry.js +1 -1
  70. package/dist/esm/ez-alert-list.entry.js +1 -1
  71. package/dist/esm/ez-alert.entry.js +1 -1
  72. package/dist/esm/ez-application.entry.js +1 -1
  73. package/dist/esm/ez-badge.entry.js +1 -1
  74. package/dist/esm/ez-breadcrumb.entry.js +1 -1
  75. package/dist/esm/ez-button.entry.js +1 -1
  76. package/dist/esm/ez-calendar.entry.js +1 -1
  77. package/dist/esm/{ez-card-item_3.entry.js → ez-card-item_2.entry.js} +2 -124
  78. package/dist/esm/ez-chart.entry.js +1 -1
  79. package/dist/esm/ez-check.entry.js +1 -1
  80. package/dist/esm/ez-chip.entry.js +1 -1
  81. package/dist/esm/ez-collapsible-box.entry.js +1 -1
  82. package/dist/esm/ez-combo-box.entry.js +1 -1
  83. package/dist/esm/ez-custom-form-input_2.entry.js +2 -2
  84. package/dist/esm/ez-date-input.entry.js +1 -1
  85. package/dist/esm/ez-date-time-input.entry.js +1 -1
  86. package/dist/esm/ez-dialog.entry.js +1 -1
  87. package/dist/esm/ez-double-list.entry.js +281 -0
  88. package/dist/esm/ez-dropdown_2.entry.js +1 -1
  89. package/dist/esm/ez-file-item.entry.js +1 -1
  90. package/dist/esm/ez-filter-input.entry.js +126 -0
  91. package/dist/esm/ez-form-view.entry.js +1 -1
  92. package/dist/esm/ez-form.entry.js +1 -1
  93. package/dist/esm/ez-grid.entry.js +4 -4
  94. package/dist/esm/ez-guide-navigator.entry.js +1 -1
  95. package/dist/esm/ez-icon.entry.js +1 -1
  96. package/dist/esm/ez-list.entry.js +247 -206
  97. package/dist/esm/ez-loading-bar.entry.js +1 -1
  98. package/dist/esm/ez-modal-container.entry.js +1 -1
  99. package/dist/esm/ez-modal.entry.js +1 -1
  100. package/dist/esm/ez-multi-selection-list.entry.js +1 -1
  101. package/dist/esm/ez-number-input.entry.js +1 -1
  102. package/dist/esm/ez-popover.entry.js +1 -1
  103. package/dist/esm/ez-popup.entry.js +5 -2
  104. package/dist/esm/ez-radio-button.entry.js +1 -1
  105. package/dist/esm/ez-scroller_2.entry.js +1 -1
  106. package/dist/esm/ez-search.entry.js +1 -1
  107. package/dist/esm/ez-sidebar-navigator.entry.js +1 -1
  108. package/dist/esm/ez-split-button.entry.js +1 -1
  109. package/dist/esm/ez-split-item.entry.js +1 -1
  110. package/dist/esm/ez-split-panel.entry.js +1 -1
  111. package/dist/esm/ez-tabselector.entry.js +1 -1
  112. package/dist/esm/ez-text-area.entry.js +1 -1
  113. package/dist/esm/ez-text-input.entry.js +1 -1
  114. package/dist/esm/ez-time-input.entry.js +1 -1
  115. package/dist/esm/ez-toast.entry.js +1 -1
  116. package/dist/esm/ez-tooltip.entry.js +1 -1
  117. package/dist/esm/ez-tree.entry.js +1 -1
  118. package/dist/esm/ez-upload.entry.js +1 -1
  119. package/dist/esm/ez-view-stack.entry.js +1 -1
  120. package/dist/esm/ezListHelper-00fb9b8d.js +87 -0
  121. package/dist/esm/ezui.js +3 -3
  122. package/dist/esm/filter-column.entry.js +1 -1
  123. package/dist/esm/{index-5a720e56.js → index-baa5e267.js} +11 -5
  124. package/dist/esm/loader.js +3 -3
  125. package/dist/ezui/ezui.esm.js +1 -1
  126. package/dist/ezui/{p-e6b38ade.entry.js → p-0306dff7.entry.js} +1 -1
  127. package/dist/ezui/{p-91ccae0c.entry.js → p-09de35a2.entry.js} +1 -1
  128. package/dist/ezui/p-13165bb1.entry.js +1 -0
  129. package/dist/ezui/{p-c7d1333c.entry.js → p-14b769d7.entry.js} +1 -1
  130. package/dist/ezui/{p-b2f6bc0a.entry.js → p-17be134a.entry.js} +1 -1
  131. package/dist/ezui/p-17eabf46.entry.js +1 -0
  132. package/dist/ezui/{p-319d36b7.entry.js → p-181b5ae8.entry.js} +1 -1
  133. package/dist/ezui/{p-81461d2f.entry.js → p-1e7a8633.entry.js} +1 -1
  134. package/dist/ezui/{p-6b51c9cc.entry.js → p-1f50fa05.entry.js} +1 -1
  135. package/dist/ezui/{p-e4c7eb39.js → p-23a36bb6.js} +2 -2
  136. package/dist/ezui/p-2475fd6e.entry.js +1 -0
  137. package/dist/ezui/{p-469b2619.entry.js → p-29e7a674.entry.js} +2 -2
  138. package/dist/ezui/{p-3c10cd94.entry.js → p-2b46b37b.entry.js} +1 -1
  139. package/dist/ezui/{p-6d31c43c.entry.js → p-2bb2a0c4.entry.js} +1 -1
  140. package/dist/ezui/{p-efbe0b73.entry.js → p-3175fe8c.entry.js} +1 -1
  141. package/dist/ezui/p-31d1fab6.entry.js +1 -0
  142. package/dist/ezui/{p-fad4f1dd.entry.js → p-35d467a8.entry.js} +1 -1
  143. package/dist/ezui/{p-5d01d189.entry.js → p-3f2dd525.entry.js} +1 -1
  144. package/dist/ezui/{p-0378416a.entry.js → p-44caad9a.entry.js} +1 -1
  145. package/dist/ezui/{p-aa543378.entry.js → p-50d83a46.entry.js} +1 -1
  146. package/dist/ezui/{p-7567ccdd.entry.js → p-555c9018.entry.js} +1 -1
  147. package/dist/ezui/{p-044d46d5.entry.js → p-5b205c80.entry.js} +1 -1
  148. package/dist/ezui/{p-6fc26622.entry.js → p-5ed81457.entry.js} +1 -1
  149. package/dist/ezui/{p-f1c2c19e.entry.js → p-650e4b6d.entry.js} +1 -1
  150. package/dist/ezui/{p-aee8d615.entry.js → p-654b3f99.entry.js} +1 -1
  151. package/dist/ezui/p-65f471bc.entry.js +1 -0
  152. package/dist/ezui/{p-6d8b3298.entry.js → p-6cdd3e0a.entry.js} +1 -1
  153. package/dist/ezui/{p-554522db.entry.js → p-6d79930d.entry.js} +1 -1
  154. package/dist/ezui/{p-fc194825.entry.js → p-6e429cff.entry.js} +1 -1
  155. package/dist/ezui/{p-def75121.entry.js → p-6f22a385.entry.js} +1 -1
  156. package/dist/ezui/{p-2f53435e.entry.js → p-7409eeaa.entry.js} +1 -1
  157. package/dist/ezui/{p-11bfeca3.entry.js → p-77a4bd35.entry.js} +1 -1
  158. package/dist/ezui/{p-397e3026.entry.js → p-7ed30844.entry.js} +1 -1
  159. package/dist/ezui/{p-e18d9e6a.entry.js → p-7fdd479f.entry.js} +1 -1
  160. package/dist/ezui/p-80dfc50b.js +1 -0
  161. package/dist/ezui/{p-1b08bf3c.entry.js → p-8888d9ed.entry.js} +1 -1
  162. package/dist/ezui/{p-82fa4b09.entry.js → p-8df1ca33.entry.js} +1 -1
  163. package/dist/ezui/{p-e7395eae.entry.js → p-90bcd2ba.entry.js} +1 -1
  164. package/dist/ezui/{p-a921e3e7.entry.js → p-990b4318.entry.js} +1 -1
  165. package/dist/ezui/{p-c2b20f78.entry.js → p-9f5fa3f9.entry.js} +1 -1
  166. package/dist/ezui/{p-b6241ea3.entry.js → p-a6fe527a.entry.js} +1 -1
  167. package/dist/ezui/{p-dfca5946.entry.js → p-a80b1287.entry.js} +1 -1
  168. package/dist/ezui/{p-18a2a28a.entry.js → p-b6a4e6de.entry.js} +1 -1
  169. package/dist/ezui/p-bc2f844e.entry.js +1 -0
  170. package/dist/ezui/{p-92748142.entry.js → p-c0d9c4f8.entry.js} +1 -1
  171. package/dist/ezui/{p-b858fc6e.entry.js → p-c3045972.entry.js} +1 -1
  172. package/dist/ezui/{p-a563df31.entry.js → p-c4320a39.entry.js} +1 -1
  173. package/dist/ezui/{p-ec5f987d.entry.js → p-ca6340a9.entry.js} +1 -1
  174. package/dist/ezui/{p-16e21a40.entry.js → p-d0ca26fe.entry.js} +1 -1
  175. package/dist/ezui/{p-cce6c015.entry.js → p-d520839d.entry.js} +1 -1
  176. package/dist/ezui/p-dc8b36c3.entry.js +1 -0
  177. package/dist/ezui/{p-bef7daac.entry.js → p-e347df9c.entry.js} +1 -1
  178. package/dist/ezui/{p-35d0b2fb.entry.js → p-e3e3fd7a.entry.js} +1 -1
  179. package/dist/ezui/{p-6bda82d1.entry.js → p-fec696ab.entry.js} +1 -1
  180. package/dist/types/components/ez-double-list/doubleListHelper.d.ts +10 -0
  181. package/dist/types/components/ez-double-list/ez-double-list.d.ts +86 -0
  182. package/dist/types/components/ez-grid/ez-grid.d.ts +1 -1
  183. package/dist/types/components/ez-list/ez-list.d.ts +19 -3
  184. package/dist/types/components/ez-list/ezListHelper.d.ts +20 -0
  185. package/dist/types/components/ez-popup/ez-popup.d.ts +1 -1
  186. package/dist/types/components.d.ts +105 -14
  187. package/package.json +1 -1
  188. package/react/components.d.ts +1 -0
  189. package/react/components.js +1 -0
  190. package/react/components.js.map +1 -1
  191. package/dist/ezui/p-3af64edd.entry.js +0 -1
  192. package/dist/ezui/p-46a46507.entry.js +0 -1
  193. package/dist/ezui/p-6ec40dec.entry.js +0 -1
  194. package/dist/ezui/p-7f5afb1f.entry.js +0 -1
  195. package/dist/ezui/p-a1c0eadf.entry.js +0 -1
@@ -1 +1 @@
1
- import{r as l,c as e,h as i,g as o}from"./p-e4c7eb39.js";import{ElementIDUtils as t}from"@sankhyalabs/core";import{A as s}from"./p-2187f86c.js";import"./p-ab574d59.js";import"./p-b853763b.js";import"./p-4607fb89.js";const a=class{constructor(i){l(this,i),this.ezChange=e(this,"ezChange",7),this.ezRemove=e(this,"ezRemove",7),this.ezSaveEditLabel=e(this,"ezSaveEditLabel",7),this.ezEditLabelMode=e(this,"ezEditLabelMode",7),this._activeEditText=!1,this.value=!1,this.boxBordered=!1,this.label=void 0,this.subtitle=void 0,this.headerSize="small",this.iconPlacement="left",this.headerAlign="left",this.removable=!1,this.editable=!1,this.conditionalSave=void 0}async showHide(){this.value=!this.value}async applyFocusTextEdit(){var l;null===(l=this._refTextEdit)||void 0===l||l.applyFocusSelect()}async cancelEdition(){this._activeEditText=!1,this.ezEditLabelMode.emit(this._activeEditText)}observeCollapsedValue(){this.ezChange.emit(this.value)}getHeaderSize(){const l=this.headerSize&&this.headerSize.toLowerCase(),e=["xsmall","xlarge"].includes(l)?l.replace("x","x-"):l;return["x-small","small","medium","large","x-large"].includes(e)?e:"small"}removeElement(){this._hostElement&&this._hostElement.remove(),this.ezRemove.emit(this)}editLabel(l){l.preventDefault(),l.stopPropagation(),this._activeEditText=!0,this.ezEditLabelMode.emit(this._activeEditText)}confirmRemove(l){l.stopPropagation(),s.confirm("Aviso",`Deseja realmente remover o grupo <b>${this.label}</b>?`).then((l=>{l&&this.removeElement()}))}saveEditionText(l){const{value:e,newValue:i}=l.detail;if(e===i)return void this.cancelEdition();let o=!0;this.conditionalSave&&(o=this.conditionalSave(i)),this.label!==i&&o&&(this.label=i,this._activeEditText=!1,this.ezSaveEditLabel.emit(l.detail),this.ezEditLabelMode.emit(this._activeEditText))}getStyledLabel(){if(null!=this._refLabel)return{fontSize:window.getComputedStyle(this._refLabel).getPropertyValue("font-size"),fontWeight:window.getComputedStyle(this._refLabel).getPropertyValue("font-weight"),fontFamily:window.getComputedStyle(this._refLabel).getPropertyValue("font-family")}}componentDidLoad(){t.addIDInfo(this._hostElement)}render(){return i("div",{class:`collapsible-box ${this.boxBordered&&"collapsable-box--bordered"}`},i("div",{class:"collapsible-box__header"},i("button",Object.assign({},this._activeEditText?null:{onClick:()=>{this.showHide()}},{class:"collapsible-box__title collapsible-box__title--"+(this.headerAlign||"left")+("right"===this.iconPlacement?" collapsible-box__title--icon-right":"")+(this.value?" collapsible-box__title--no-margin":"")}),i("ez-icon",{slot:"icon","icon-name":"chevron-right",size:this.getHeaderSize(),class:"collapsible-box__icon collapsible-box__icon--"+this.getHeaderSize()+(this.value?" collapsible-box__icon--collapsed":""),id:"toggleCollapsible"}),this._activeEditText?i("ez-text-edit",{class:"collapsible-box__text-edit",ref:l=>this._refTextEdit=l,value:this.label,styled:this.getStyledLabel(),onSaveEdition:l=>this.saveEditionText(l),onCancelEdition:()=>this.cancelEdition()}):i("label",{class:"collapsible-box__label font--"+this.getHeaderSize(),title:this.label,ref:l=>this._refLabel=l},i("span",null,this.label),this.editable&&i("ez-icon",{slot:"icon","icon-name":"edit",onClick:l=>this.editLabel(l),title:"Editar"}),this.removable&&i("ez-icon",{slot:"icon","icon-name":"delete",onClick:l=>this.confirmRemove(l),title:"Remover"}))),i("slot",{name:"rightSlot"})),i("div",{class:"collapsible-box__content"+(this.value?"":" collapsible-box__content--show")},this.subtitle&&i("div",{class:"subtitle-box__content"},i("label",{class:"subtitle-box__label",title:this.subtitle},i("span",null,this.subtitle))),i("slot",null)))}get _hostElement(){return o(this)}static get watchers(){return{value:["observeCollapsedValue"]}}};a.style=":host{--ez-collapsible-box--font-size:var(--title--medium, 14px);--ez-collapsible-box--font-family:var(--font-pattern, Arial);--ez-collapsible-box--font-weight:var(--text-weight--large, 600);--ez-collapsible-box--color:var(--title--primary);--ez-collapsible-box--subtitle--font-size:var(--text--medium, 14px);--ez-collapsible-box--subtitle--font-family:var(--font-pattern, 'Roboto');--ez-collapsible-box--subtitle--font-weight:var(--text-weight--medium, 400);--ez-collapsible-box--subtitle--color:var(--text--primary);--ez-collapsible-box--subtitle--margin-bottom:var(--space--medium, 12px);--ez-collapsible-box--focus--color:var(--color--primary-600);--ez-collapsible-box__icon--color:var(--ez-collapsible-box--color);--ez-collapsible-box__header--padding-top:0px;--ez-collapsible-box__header--padding-bottom:0px;--ez-collapsible-box__header--padding-right:0px;--ez-collapsible-box__header--padding-left:0px;display:flex;flex-wrap:wrap;width:100%}ez-icon{--ez-icon--color:inherit}.collapsible-box{display:flex;flex-direction:column;width:100%}.collapsable-box--bordered{border:var(--border--small);border-color:var(--color--strokes);border-radius:var(--border--radius-medium);padding:var(--space--xs)}.collapsible-box__header{display:flex;box-sizing:border-box;padding-top:var(--ez-collapsible-box__header--padding-top);padding-bottom:var(--ez-collapsible-box__header--padding-bottom);padding-right:var(--ez-collapsible-box__header--padding-right);padding-left:var(--ez-collapsible-box__header--padding-left)}.collapsible-box__title{position:relative;width:100%;display:flex;box-sizing:border-box;align-items:center;outline:none;border:none;background-color:unset;cursor:pointer;padding:0px;text-align:left;color:var(--ez-collapsible-box--color);--ez-icon--color:var(--ez-collapsible-box__icon--color);margin-bottom:var(--space--medium, 12px)}.collapsible-box__title:focus{color:var(--ez-collapsible-box--focus--color);--ez-icon--color:var(--ez-collapsible-box--focus--color)}.collapsible-box__label{display:block;white-space:nowrap;overflow:hidden;cursor:pointer;text-overflow:ellipsis;box-sizing:border-box;margin-left:6px;gap:6px;font-family:var(--ez-collapsible-box--font-family);font-size:var(--ez-collapsible-box--font-size);font-weight:var(--ez-collapsible-box--font-weight)}.subtitle-box__label{display:flex;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;font-family:var(--ez-collapsible-box--subtitle--font-family);font-size:var(--ez-collapsible-box--subtitle--font-size);font-weight:var(--ez-collapsible-box--subtitle--font-weight);color:var(--ez-collapsible-box--subtitle--color);margin-bottom:var(--ez-collapsible-box--subtitle--margin-bottom)}.subtitle-box__content{width:100%}.collapsible-box__label ez-icon{visibility:hidden;transition:2s all ease-in-out}.collapsible-box__label:hover ez-icon{visibility:visible}.collapsible-box__text-edit{margin-left:6px}.collapsible-box__icon{transform:rotate(90deg) translate(0px, 14%);transition:transform var(--transition)}.collapsible-box__icon--collapsed{transform:rotate(0deg) translate(-14%, 0px)}.collapsible-box__title--icon-right{flex-direction:row-reverse}.collapsible-box__title--icon-right .collapsible-box__icon{transform:rotate(90deg) translate(0px, -14%)}.collapsible-box__title--icon-right .collapsible-box__icon--collapsed{transform:rotate(0deg) translate(14%, 0px)}.collapsible-box__title--icon-right .collapsible-box__label{margin-left:0px;margin-right:6px}.collapsible-box__title--left{margin-right:auto}.collapsible-box__title--right{margin-left:auto}.collapsible-box__title--center{margin-left:auto;margin-right:auto}.collapsible-box__title--stretch{justify-content:space-between;width:100%}.collapsible-box__title--no-margin{margin-bottom:0}.collapsible-box__content{display:flex;flex-wrap:wrap;width:100%;height:0px;max-height:0px;opacity:0;overflow:hidden;transition:all var(--transition, 0.5s)}.collapsible-box__content--show{height:100%;max-height:none;opacity:1;overflow:visible;transition:all var(--transition, 0.5s)}.font--x-small{font-size:10px}.font--small{font-size:12px}.font--medium{font-size:14px}.font--large{font-size:16px}.font--x-large{font-size:20px}";export{a as ez_collapsible_box}
1
+ import{r as l,c as i,h as o,g as e}from"./p-23a36bb6.js";import{ElementIDUtils as t}from"@sankhyalabs/core";import{A as s}from"./p-2187f86c.js";import"./p-ab574d59.js";import"./p-b853763b.js";import"./p-4607fb89.js";const a=class{constructor(o){l(this,o),this.ezChange=i(this,"ezChange",7),this.ezRemove=i(this,"ezRemove",7),this.ezSaveEditLabel=i(this,"ezSaveEditLabel",7),this.ezEditLabelMode=i(this,"ezEditLabelMode",7),this._activeEditText=!1,this.value=!1,this.boxBordered=!1,this.label=void 0,this.subtitle=void 0,this.headerSize="small",this.iconPlacement="left",this.headerAlign="left",this.removable=!1,this.editable=!1,this.conditionalSave=void 0}async showHide(){this.value=!this.value}async applyFocusTextEdit(){var l;null===(l=this._refTextEdit)||void 0===l||l.applyFocusSelect()}async cancelEdition(){this._activeEditText=!1,this.ezEditLabelMode.emit(this._activeEditText)}observeCollapsedValue(){this.ezChange.emit(this.value)}getHeaderSize(){const l=this.headerSize&&this.headerSize.toLowerCase(),i=["xsmall","xlarge"].includes(l)?l.replace("x","x-"):l;return["x-small","small","medium","large","x-large"].includes(i)?i:"small"}removeElement(){this._hostElement&&this._hostElement.remove(),this.ezRemove.emit(this)}editLabel(l){l.preventDefault(),l.stopPropagation(),this._activeEditText=!0,this.ezEditLabelMode.emit(this._activeEditText)}confirmRemove(l){l.stopPropagation(),s.confirm("Aviso",`Deseja realmente remover o grupo <b>${this.label}</b>?`).then((l=>{l&&this.removeElement()}))}saveEditionText(l){const{value:i,newValue:o}=l.detail;if(i===o)return void this.cancelEdition();let e=!0;this.conditionalSave&&(e=this.conditionalSave(o)),this.label!==o&&e&&(this.label=o,this._activeEditText=!1,this.ezSaveEditLabel.emit(l.detail),this.ezEditLabelMode.emit(this._activeEditText))}getStyledLabel(){if(null!=this._refLabel)return{fontSize:window.getComputedStyle(this._refLabel).getPropertyValue("font-size"),fontWeight:window.getComputedStyle(this._refLabel).getPropertyValue("font-weight"),fontFamily:window.getComputedStyle(this._refLabel).getPropertyValue("font-family")}}componentDidLoad(){t.addIDInfo(this._hostElement)}render(){return o("div",{class:`collapsible-box ${this.boxBordered&&"collapsable-box--bordered"}`},o("div",{class:"collapsible-box__header"},o("button",Object.assign({},this._activeEditText?null:{onClick:()=>{this.showHide()}},{class:"collapsible-box__title collapsible-box__title--"+(this.headerAlign||"left")+("right"===this.iconPlacement?" collapsible-box__title--icon-right":"")+(this.value?" collapsible-box__title--no-margin":"")}),o("ez-icon",{slot:"icon","icon-name":"chevron-right",size:this.getHeaderSize(),class:"collapsible-box__icon collapsible-box__icon--"+this.getHeaderSize()+(this.value?" collapsible-box__icon--collapsed":""),id:"toggleCollapsible"}),this._activeEditText?o("ez-text-edit",{class:"collapsible-box__text-edit",ref:l=>this._refTextEdit=l,value:this.label,styled:this.getStyledLabel(),onSaveEdition:l=>this.saveEditionText(l),onCancelEdition:()=>this.cancelEdition()}):o("label",{class:"collapsible-box__label font--"+this.getHeaderSize(),title:this.label,ref:l=>this._refLabel=l},o("span",null,this.label),this.editable&&o("ez-icon",{slot:"icon","icon-name":"edit",onClick:l=>this.editLabel(l),title:"Editar"}),this.removable&&o("ez-icon",{slot:"icon","icon-name":"delete",onClick:l=>this.confirmRemove(l),title:"Remover"}))),o("slot",{name:"rightSlot"})),o("div",{class:"collapsible-box__content"+(this.value?"":" collapsible-box__content--show")},this.subtitle&&o("div",{class:"subtitle-box__content"},o("label",{class:"subtitle-box__label",title:this.subtitle},o("span",null,this.subtitle))),o("slot",null)))}get _hostElement(){return e(this)}static get watchers(){return{value:["observeCollapsedValue"]}}};a.style=":host{--ez-collapsible-box--font-size:var(--title--medium, 14px);--ez-collapsible-box--font-family:var(--font-pattern, Arial);--ez-collapsible-box--font-weight:var(--text-weight--large, 600);--ez-collapsible-box--color:var(--title--primary);--ez-collapsible-box--subtitle--font-size:var(--text--medium, 14px);--ez-collapsible-box--subtitle--font-family:var(--font-pattern, 'Roboto');--ez-collapsible-box--subtitle--font-weight:var(--text-weight--medium, 400);--ez-collapsible-box--subtitle--color:var(--text--primary);--ez-collapsible-box--subtitle--margin-bottom:var(--space--medium, 12px);--ez-collapsible-box--focus--color:var(--color--primary-600);--ez-collapsible-box__icon--color:var(--ez-collapsible-box--color);--ez-collapsible-box__header--padding-top:0px;--ez-collapsible-box__header--padding-bottom:0px;--ez-collapsible-box__header--padding-right:0px;--ez-collapsible-box__header--padding-left:0px;display:flex;flex-wrap:wrap;width:100%}ez-icon{--ez-icon--color:inherit}.collapsible-box{display:flex;flex-direction:column;width:100%}.collapsable-box--bordered{border:var(--border--small);border-color:var(--color--strokes);border-radius:var(--border--radius-medium);padding:var(--space--xs)}.collapsible-box__header{display:flex;box-sizing:border-box;padding-top:var(--ez-collapsible-box__header--padding-top);padding-bottom:var(--ez-collapsible-box__header--padding-bottom);padding-right:var(--ez-collapsible-box__header--padding-right);padding-left:var(--ez-collapsible-box__header--padding-left)}.collapsible-box__title{position:relative;width:100%;display:flex;box-sizing:border-box;align-items:center;outline:none;border:none;background-color:unset;cursor:pointer;padding:0px;text-align:left;color:var(--ez-collapsible-box--color);--ez-icon--color:var(--ez-collapsible-box__icon--color);margin-bottom:var(--space--medium, 12px)}.collapsible-box__title:focus{color:var(--ez-collapsible-box--focus--color);--ez-icon--color:var(--ez-collapsible-box--focus--color)}.collapsible-box__label{display:block;white-space:nowrap;overflow:hidden;cursor:pointer;text-overflow:ellipsis;box-sizing:border-box;margin-left:6px;gap:6px;font-family:var(--ez-collapsible-box--font-family);font-size:var(--ez-collapsible-box--font-size);font-weight:var(--ez-collapsible-box--font-weight)}.subtitle-box__label{display:flex;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;font-family:var(--ez-collapsible-box--subtitle--font-family);font-size:var(--ez-collapsible-box--subtitle--font-size);font-weight:var(--ez-collapsible-box--subtitle--font-weight);color:var(--ez-collapsible-box--subtitle--color);margin-bottom:var(--ez-collapsible-box--subtitle--margin-bottom)}.subtitle-box__content{width:100%}.collapsible-box__label ez-icon{visibility:hidden;transition:2s all ease-in-out}.collapsible-box__label:hover ez-icon{visibility:visible}.collapsible-box__text-edit{margin-left:6px}.collapsible-box__icon{transform:rotate(90deg) translate(0px, 14%);transition:transform var(--transition)}.collapsible-box__icon--collapsed{transform:rotate(0deg) translate(-14%, 0px)}.collapsible-box__title--icon-right{flex-direction:row-reverse}.collapsible-box__title--icon-right .collapsible-box__icon{transform:rotate(90deg) translate(0px, -14%)}.collapsible-box__title--icon-right .collapsible-box__icon--collapsed{transform:rotate(0deg) translate(14%, 0px)}.collapsible-box__title--icon-right .collapsible-box__label{margin-left:0px;margin-right:6px}.collapsible-box__title--left{margin-right:auto}.collapsible-box__title--right{margin-left:auto}.collapsible-box__title--center{margin-left:auto;margin-right:auto}.collapsible-box__title--stretch{justify-content:space-between;width:100%}.collapsible-box__title--no-margin{margin-bottom:0}.collapsible-box__content{display:flex;flex-wrap:wrap;width:100%;height:0px;max-height:0px;opacity:0;overflow:hidden;transition:all var(--transition, 0.5s)}.collapsible-box__content--show{height:100%;max-height:none;opacity:1;overflow:visible;transition:all var(--transition, 0.5s)}.font--x-small{font-size:10px}.font--small{font-size:12px}.font--medium{font-size:14px}.font--large{font-size:16px}.font--x-large{font-size:20px}";export{a as ez_collapsible_box}
@@ -1 +1 @@
1
- import{h as e,r as a,c as t,g as r,H as n}from"./p-e4c7eb39.js";import{ObjectUtils as o,UserInterface as l,ElementIDUtils as i}from"@sankhyalabs/core";import{R as s}from"./p-05e1f4e7.js";import{C as d}from"./p-b853763b.js";function c(a,t,r,n,o){return e("div",{class:"ez-col ez-col--sd-12 ez-align--middle ez-padding-bottom--large"},e("ez-check",{enabled:!r,label:t,mode:o?d.SWITCH:d.REGULAR,"data-field-name":a,"data-context-name":n,key:a,noMargin:!0}))}function m(a,t,r,n,o,l,i){return e("div",{class:"ez-col ez-col--sd-12 "},e("ez-number-input",{enabled:!r,label:t,precision:n,prettyPrecision:o,"data-field-name":a,"data-context-name":l,key:a,canShowError:i,noMargin:!0}))}const h=({name:a,label:t,readOnly:r,contextName:n,canShowError:o,props:l})=>e("div",{class:"ez-col ez-col--sd-12"},e("ez-text-input",{label:t,"data-field-name":a,"data-context-name":n,key:a,enabled:!r,canShowError:o,mask:null==l?void 0:l.mask,"clean-value-mask":null==l?void 0:l.cleanValueMask,noMargin:!0})),u=new Map;u.set(l.CHECKBOX,(e=>c(e.name,e.label,e.readOnly,e.contextName,!1))),u.set(l.SWITCH,(e=>c(e.name,e.label,e.readOnly,e.contextName,!0))),u.set(l.OPTIONSELECTOR,(({name:a,label:t,readOnly:r,required:n,props:o,contextName:l,canShowError:i})=>{const s=null==o?void 0:o.options;let d;if("string"==typeof s){const e=JSON.parse(s);d=Object.keys(e).map((a=>({value:a,label:e[a]})))}else d=s;return e("div",{class:"ez-col ez-col--sd-12"},e("ez-combo-box",{enabled:!r,suppressEmptyOption:n,label:t,"data-field-name":a,"data-context-name":l,key:a,options:d,canShowError:i,noMargin:!0}))})),u.set(l.DATE,(({name:a,label:t,readOnly:r,canShowError:n})=>e("div",{class:"ez-col ez-col--sd-12"},e("ez-date-input",{enabled:!r,label:t,"data-field-name":a,key:a,canShowError:n,noMargin:!0})))),u.set(l.TIME,(({name:a,label:t,readOnly:r,canShowError:n,props:o})=>{var l;return e("div",{class:"ez-col ez-col--sd-12"},e("ez-time-input",{enabled:!r,label:t,"data-field-name":a,key:a,canShowError:n,noMargin:!0,"show-seconds":null!==(l=null==o?void 0:o.showSeconds)&&void 0!==l&&l}))})),u.set(l.ELAPSEDTIME,(({name:a,label:t,readOnly:r,canShowError:n})=>e("div",{class:"ez-col ez-col--sd-12"},e("ez-time-input",{enabled:!r,label:t,"data-field-name":a,key:a,canShowError:n,noMargin:!0,showSeconds:!0})))),u.set(l.DATETIME,(({name:a,label:t,readOnly:r,contextName:n,canShowError:o})=>e("div",{class:"ez-col ez-col--sd-12"},e("ez-date-time-input",{enabled:!r,label:t,"data-field-name":a,"data-context-name":n,key:a,canShowError:o,noMargin:!0})))),u.set(l.FILE,(({name:a,label:t,readOnly:r,contextName:n,props:l})=>{const i=o.removeEmptyValues({subTitle:l.subTitle,requestHeaders:Object.assign(Object.assign({},l.STORAGESTRATEGY&&{STORAGESTRATEGY:l.STORAGESTRATEGY}),l.INTERNAL_FILENAME&&{INTERNAL_FILENAME:l.INTERNAL_FILENAME})});return e("div",{class:"ez-col ez-col--sd-12"},e("ez-upload",Object.assign({enabled:!r,label:t,"data-field-name":a,"data-context-name":n,key:a},i)))})),u.set(l.DECIMALNUMBER,(({name:e,label:a,readOnly:t,props:r,contextName:n,canShowError:o})=>{var l,i;const s=Number(null!==(l=null==r?void 0:r.precision)&&void 0!==l?l:2);return m(e,a,t,s,Number(null!==(i=null==r?void 0:r.prettyPrecision)&&void 0!==i?i:s),n,o)})),u.set(l.INTEGERNUMBER,(({name:e,label:a,readOnly:t,contextName:r,canShowError:n})=>m(e,a,t,0,0,r,n))),u.set(l.SEARCH,(({name:a,label:t,readOnly:r,required:n,contextName:o,canShowError:l,optionLoader:i,props:s})=>{var d;return e("div",{class:"ez-col ez-col--sd-12"},e("ez-search",{enabled:!r,suppressEmptyOption:n,label:t,"data-field-name":a,"data-context-name":o,key:a,canShowError:l,optionLoader:i,ignoreLimitCharsToSearch:null!==(d=s.ignoreLimitCharsToSearch)&&void 0!==d&&d,noMargin:!0}))})),u.set(l.LONGTEXT,(({name:a,label:t,readOnly:r,contextName:n,rows:o,canShowError:l})=>e("div",{class:"ez-col ez-col--sd-12",key:a},e("ez-text-area",{enabled:!r,label:t,"data-field-name":a,"data-context-name":n,rows:o,canShowError:l}))));const p=e=>{const a=u.get(e.userInterface)||h,t=e.required?`${e.label}${s}`:e.label,r=a(Object.assign(Object.assign({},e),{label:t}));return r.t["data-form-item"]=e.name,r};class b{constructor(e){this.elem=e}addRightElement(e){this.removeRightElement(),e.classList.add("ez-padding-left--small"),e.setAttribute("data-custom-item","true"),this.elem.classList.add("ez-col--nowrap"),this.elem.appendChild(e)}removeRightElement(){Array.from(this.elem.querySelectorAll('[data-custom-item="true"]')).forEach((e=>e.remove()))}get fieldName(){return this.elem.getAttribute("data-form-item")}}class w{constructor(e,a){this.items=new Map,this.formId=a,e.forEach((e=>{const a=new b(e);this.items.set(a.fieldName,a)}))}getItem(e){return this.items.get(e)}get formName(){return this.formId}}const v=class{constructor(e){a(this,e),this.ezContentReady=t(this,"ezContentReady",7),this.formItemsReady=t(this,"formItemsReady",7),this._customEditors=new Map,this.fields=void 0,this.selectedRecord=void 0}async showUp(){this._element.scrollIntoView({behavior:"smooth",block:"start"})}async addCustomEditor(e,a,t){const r=new Map(this._customEditors);r.set(e,{customEditor:a,detailContext:t}),this._customEditors=r}async setFieldProp(e,a,t){const r=this.fields.map((r=>(r.name!==e||!t&&0!==t||(r.props=r.props||{},r.props[a]=t),r)));this.fields=[...r]}groupFields(e){const a=new Map;return e.forEach((e=>{const t=e.group;if(t){let r=a.get(t);null==r&&(r=[],a.set(t,r)),r.push(e)}else a.set(e.name,e)})),a}componentDidRender(){this._formElements=Array.from(this._element.querySelectorAll("[data-field-name]")),this.ezContentReady.emit(this._formElements);const e=new w(Array.from(this._element.querySelectorAll("[data-form-item]")));this.formItemsReady.emit(e)}isItemFullWidth(e){return[l.FILE,l.LONGTEXT].includes(e)}buildFormItemElement(a,t=""){var r;if(this.isItemFullWidth(a.userInterface)&&(t+=" input-full_width"),this._customEditors.has(a.name)){const n=null===(r=this._formElements.map((e=>({name:e.dataset.fieldName,value:e.value}))).find((e=>e.name===a.name)))||void 0===r?void 0:r.value,o=this._customEditors.get(a.name).customEditor;return e("div",{class:t},e("ez-custom-form-input",{"data-field-name":a.name,customEditor:o,formViewField:a,builderFallback:p,value:n,selectedRecord:this.selectedRecord}))}return e("div",{class:t},p(a))}render(){if(i.addIDInfoIfNotExists(this._element,"ezFormView"),null==this.fields)return;let a=[],t=Array.from(this.groupFields(this.fields).entries()).map((([t,r])=>{if(Array.isArray(r))return e("ez-collapsible-box",{id:`group-${t}`,label:t,"header-size":"large",key:t},e("div",{class:"form-view__content"},r.map((e=>this.buildFormItemElement(e)))));a.push(r)})),r=a.map((e=>this.buildFormItemElement(e))),o=e("div",{class:"form-view__content"},r);return e(n,null,o,t)}get _element(){return r(this)}};v.style=".sc-ez-form-view-h{display:flex;flex-wrap:wrap;width:100%;--ez-form-view__item--min-width:220px;--ez-form-view__item--width:var(--space--small);--ez-form-view__item--padding:var(--space--small)}.form-view__content.sc-ez-form-view{display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--ez-form-view__item--min-width), 1fr));gap:var(--ez-form-view__item--width);padding-inline:var(--ez-form-view__item--padding);width:100%}.input-full_width.sc-ez-form-view{grid-column:1 / -1;width:100%}";export{v as ez_form_view}
1
+ import{h as e,r as a,c as t,g as r,H as n}from"./p-23a36bb6.js";import{ObjectUtils as o,UserInterface as l,ElementIDUtils as i}from"@sankhyalabs/core";import{R as s}from"./p-05e1f4e7.js";import{C as d}from"./p-b853763b.js";function c(a,t,r,n,o){return e("div",{class:"ez-col ez-col--sd-12 ez-align--middle ez-padding-bottom--large"},e("ez-check",{enabled:!r,label:t,mode:o?d.SWITCH:d.REGULAR,"data-field-name":a,"data-context-name":n,key:a,noMargin:!0}))}function m(a,t,r,n,o,l,i){return e("div",{class:"ez-col ez-col--sd-12 "},e("ez-number-input",{enabled:!r,label:t,precision:n,prettyPrecision:o,"data-field-name":a,"data-context-name":l,key:a,canShowError:i,noMargin:!0}))}const h=({name:a,label:t,readOnly:r,contextName:n,canShowError:o,props:l})=>e("div",{class:"ez-col ez-col--sd-12"},e("ez-text-input",{label:t,"data-field-name":a,"data-context-name":n,key:a,enabled:!r,canShowError:o,mask:null==l?void 0:l.mask,"clean-value-mask":null==l?void 0:l.cleanValueMask,noMargin:!0})),u=new Map;u.set(l.CHECKBOX,(e=>c(e.name,e.label,e.readOnly,e.contextName,!1))),u.set(l.SWITCH,(e=>c(e.name,e.label,e.readOnly,e.contextName,!0))),u.set(l.OPTIONSELECTOR,(({name:a,label:t,readOnly:r,required:n,props:o,contextName:l,canShowError:i})=>{const s=null==o?void 0:o.options;let d;if("string"==typeof s){const e=JSON.parse(s);d=Object.keys(e).map((a=>({value:a,label:e[a]})))}else d=s;return e("div",{class:"ez-col ez-col--sd-12"},e("ez-combo-box",{enabled:!r,suppressEmptyOption:n,label:t,"data-field-name":a,"data-context-name":l,key:a,options:d,canShowError:i,noMargin:!0}))})),u.set(l.DATE,(({name:a,label:t,readOnly:r,canShowError:n})=>e("div",{class:"ez-col ez-col--sd-12"},e("ez-date-input",{enabled:!r,label:t,"data-field-name":a,key:a,canShowError:n,noMargin:!0})))),u.set(l.TIME,(({name:a,label:t,readOnly:r,canShowError:n,props:o})=>{var l;return e("div",{class:"ez-col ez-col--sd-12"},e("ez-time-input",{enabled:!r,label:t,"data-field-name":a,key:a,canShowError:n,noMargin:!0,"show-seconds":null!==(l=null==o?void 0:o.showSeconds)&&void 0!==l&&l}))})),u.set(l.ELAPSEDTIME,(({name:a,label:t,readOnly:r,canShowError:n})=>e("div",{class:"ez-col ez-col--sd-12"},e("ez-time-input",{enabled:!r,label:t,"data-field-name":a,key:a,canShowError:n,noMargin:!0,showSeconds:!0})))),u.set(l.DATETIME,(({name:a,label:t,readOnly:r,contextName:n,canShowError:o})=>e("div",{class:"ez-col ez-col--sd-12"},e("ez-date-time-input",{enabled:!r,label:t,"data-field-name":a,"data-context-name":n,key:a,canShowError:o,noMargin:!0})))),u.set(l.FILE,(({name:a,label:t,readOnly:r,contextName:n,props:l})=>{const i=o.removeEmptyValues({subTitle:l.subTitle,requestHeaders:Object.assign(Object.assign({},l.STORAGESTRATEGY&&{STORAGESTRATEGY:l.STORAGESTRATEGY}),l.INTERNAL_FILENAME&&{INTERNAL_FILENAME:l.INTERNAL_FILENAME})});return e("div",{class:"ez-col ez-col--sd-12"},e("ez-upload",Object.assign({enabled:!r,label:t,"data-field-name":a,"data-context-name":n,key:a},i)))})),u.set(l.DECIMALNUMBER,(({name:e,label:a,readOnly:t,props:r,contextName:n,canShowError:o})=>{var l,i;const s=Number(null!==(l=null==r?void 0:r.precision)&&void 0!==l?l:2);return m(e,a,t,s,Number(null!==(i=null==r?void 0:r.prettyPrecision)&&void 0!==i?i:s),n,o)})),u.set(l.INTEGERNUMBER,(({name:e,label:a,readOnly:t,contextName:r,canShowError:n})=>m(e,a,t,0,0,r,n))),u.set(l.SEARCH,(({name:a,label:t,readOnly:r,required:n,contextName:o,canShowError:l,optionLoader:i,props:s})=>{var d;return e("div",{class:"ez-col ez-col--sd-12"},e("ez-search",{enabled:!r,suppressEmptyOption:n,label:t,"data-field-name":a,"data-context-name":o,key:a,canShowError:l,optionLoader:i,ignoreLimitCharsToSearch:null!==(d=s.ignoreLimitCharsToSearch)&&void 0!==d&&d,noMargin:!0}))})),u.set(l.LONGTEXT,(({name:a,label:t,readOnly:r,contextName:n,rows:o,canShowError:l})=>e("div",{class:"ez-col ez-col--sd-12",key:a},e("ez-text-area",{enabled:!r,label:t,"data-field-name":a,"data-context-name":n,rows:o,canShowError:l}))));const p=e=>{const a=u.get(e.userInterface)||h,t=e.required?`${e.label}${s}`:e.label,r=a(Object.assign(Object.assign({},e),{label:t}));return r.t["data-form-item"]=e.name,r};class b{constructor(e){this.elem=e}addRightElement(e){this.removeRightElement(),e.classList.add("ez-padding-left--small"),e.setAttribute("data-custom-item","true"),this.elem.classList.add("ez-col--nowrap"),this.elem.appendChild(e)}removeRightElement(){Array.from(this.elem.querySelectorAll('[data-custom-item="true"]')).forEach((e=>e.remove()))}get fieldName(){return this.elem.getAttribute("data-form-item")}}class w{constructor(e,a){this.items=new Map,this.formId=a,e.forEach((e=>{const a=new b(e);this.items.set(a.fieldName,a)}))}getItem(e){return this.items.get(e)}get formName(){return this.formId}}const v=class{constructor(e){a(this,e),this.ezContentReady=t(this,"ezContentReady",7),this.formItemsReady=t(this,"formItemsReady",7),this._customEditors=new Map,this.fields=void 0,this.selectedRecord=void 0}async showUp(){this._element.scrollIntoView({behavior:"smooth",block:"start"})}async addCustomEditor(e,a,t){const r=new Map(this._customEditors);r.set(e,{customEditor:a,detailContext:t}),this._customEditors=r}async setFieldProp(e,a,t){const r=this.fields.map((r=>(r.name!==e||!t&&0!==t||(r.props=r.props||{},r.props[a]=t),r)));this.fields=[...r]}groupFields(e){const a=new Map;return e.forEach((e=>{const t=e.group;if(t){let r=a.get(t);null==r&&(r=[],a.set(t,r)),r.push(e)}else a.set(e.name,e)})),a}componentDidRender(){this._formElements=Array.from(this._element.querySelectorAll("[data-field-name]")),this.ezContentReady.emit(this._formElements);const e=new w(Array.from(this._element.querySelectorAll("[data-form-item]")));this.formItemsReady.emit(e)}isItemFullWidth(e){return[l.FILE,l.LONGTEXT].includes(e)}buildFormItemElement(a,t=""){var r;if(this.isItemFullWidth(a.userInterface)&&(t+=" input-full_width"),this._customEditors.has(a.name)){const n=null===(r=this._formElements.map((e=>({name:e.dataset.fieldName,value:e.value}))).find((e=>e.name===a.name)))||void 0===r?void 0:r.value,o=this._customEditors.get(a.name).customEditor;return e("div",{class:t},e("ez-custom-form-input",{"data-field-name":a.name,customEditor:o,formViewField:a,builderFallback:p,value:n,selectedRecord:this.selectedRecord}))}return e("div",{class:t},p(a))}render(){if(i.addIDInfoIfNotExists(this._element,"ezFormView"),null==this.fields)return;let a=[],t=Array.from(this.groupFields(this.fields).entries()).map((([t,r])=>{if(Array.isArray(r))return e("ez-collapsible-box",{id:`group-${t}`,label:t,"header-size":"large",key:t},e("div",{class:"form-view__content"},r.map((e=>this.buildFormItemElement(e)))));a.push(r)})),r=a.map((e=>this.buildFormItemElement(e))),o=e("div",{class:"form-view__content"},r);return e(n,null,o,t)}get _element(){return r(this)}};v.style=".sc-ez-form-view-h{display:flex;flex-wrap:wrap;width:100%;--ez-form-view__item--min-width:220px;--ez-form-view__item--width:var(--space--small);--ez-form-view__item--padding:var(--space--small)}.form-view__content.sc-ez-form-view{display:grid;grid-template-columns:repeat(auto-fill, minmax(var(--ez-form-view__item--min-width), 1fr));gap:var(--ez-form-view__item--width);padding-inline:var(--ez-form-view__item--padding);width:100%}.input-full_width.sc-ez-form-view{grid-column:1 / -1;width:100%}";export{v as ez_form_view}
@@ -1 +1 @@
1
- import{r as t,c as d,h as i,H as o,g as e}from"./p-e4c7eb39.js";import{FloatingManager as l,KeyboardManager as a}from"@sankhyalabs/core";const n=class{constructor(i){t(this,i),this.ezCloseModal=d(this,"ezCloseModal",7),this.ezOpenModal=d(this,"ezOpenModal",7),this.ezModalAction=d(this,"ezModalAction",7),this.modalSize=void 0,this.align=void 0,this.heightMode="regular",this.opened=!0,this.closeEsc=!1,this.closeOutsideClick=!1,this.closeOutsideLeave=!1,this.scrim="medium"}observeOpened(){this.opened?this._overlayId=l.subscribeOverlayControl(this._modalRef):l.unsubscribeOverlayControl(this._modalRef||this._overlayId)}closeModal(){this.opened=!1,this.ezCloseModal.emit(this.opened)}componentDidLoad(){this.observeOpened(),new a({propagate:!1,element:this._element}).bind("Enter",this.ezModalAction.emit.bind("OK")).bind("Escape",(()=>this.closeModal())).bind("Esc",(()=>this.closeModal()))}componentDidRender(){this.modalFocus()}modalFocus(){this.opened&&requestAnimationFrame((()=>{const t=this._element.shadowRoot.querySelector("ez-modal-container");this._modalRef&&null===t&&this._modalRef.focus()}))}onMouseDownHandler(t){this.closeOutsideClick&&t.target===this._overlay&&this.closeModal()}onMouseLeaveHandler(){this.closeOutsideLeave&&this.closeModal()}render(){const t="left"===this.align?"left":"right";return i(o,null,this.opened?i("div",{ref:t=>this._modalRef=t,class:`modal modal__screen-${this.scrim} ${"regular"===this.heightMode?"modal__vertical-padding":""}`,onMouseDown:t=>this.onMouseDownHandler(t),tabIndex:-1},i("div",{class:`modal__container modal__container--${t}`,ref:t=>this._overlay=t},i("div",{onMouseLeave:()=>this.onMouseLeaveHandler(),class:`modal__content ${"regular"===this.heightMode?`modal__content--${t}`:""} ${this.modalSize}`},i("slot",null)))):void 0)}get _element(){return e(this)}static get watchers(){return{opened:["observeOpened"]}}};n.style=":host{--ez-modal-z-index:var(--elevation--22, 22);--ez-modal-vertical-padding:var(--space--large, 24px);--ez-modal-content-padding:24px;display:block}.modal{position:fixed;display:flex;top:0px;z-index:var(--ez-modal-z-index);left:0px;width:100%;box-sizing:border-box;height:100vh}.modal__screen-light{background:rgba(0, 4, 12, 0.1)}.modal__screen-none{background:none}.modal__screen-medium{backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.modal__vertical-padding{padding:var(--ez-modal-vertical-padding) 0}@keyframes expand-modal--left{from{transform:translate(-100%)}}@keyframes expand-modal--right{from{transform:translate(100%)}}.modal__container{display:flex;flex-wrap:wrap;height:100%;box-sizing:border-box;width:100%;align-items:flex-start}.modal__container--right{animation:expand-modal--right .2s ease-in-out 1;justify-content:flex-end}.modal__container--left{animation:expand-modal--left .2s ease-in-out 1;justify-content:flex-start}.modal__content{display:flex;flex-wrap:wrap;box-sizing:border-box;max-height:100%;height:100%;overflow-y:auto;background-color:rgb(255, 255, 255);padding:var(--ez-modal-content-padding);box-shadow:rgb(0 38 111 / 12%) 0px 0px 16px 0px}.modal__content--right{border-radius:12px 0px 0px 12px}.modal__content--left{border-radius:0px 12px 12px 0px}.modal__box__container{display:flex;flex-wrap:wrap;background-color:#fff;width:100%;border-radius:12px}.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%}}";export{n as ez_modal}
1
+ import{r as t,c as d,h as i,H as o,g as l}from"./p-23a36bb6.js";import{FloatingManager as e,KeyboardManager as a}from"@sankhyalabs/core";const n=class{constructor(i){t(this,i),this.ezCloseModal=d(this,"ezCloseModal",7),this.ezOpenModal=d(this,"ezOpenModal",7),this.ezModalAction=d(this,"ezModalAction",7),this.modalSize=void 0,this.align=void 0,this.heightMode="regular",this.opened=!0,this.closeEsc=!1,this.closeOutsideClick=!1,this.closeOutsideLeave=!1,this.scrim="medium"}observeOpened(){this.opened?this._overlayId=e.subscribeOverlayControl(this._modalRef):e.unsubscribeOverlayControl(this._modalRef||this._overlayId)}closeModal(){this.opened=!1,this.ezCloseModal.emit(this.opened)}componentDidLoad(){this.observeOpened(),new a({propagate:!1,element:this._element}).bind("Enter",this.ezModalAction.emit.bind("OK")).bind("Escape",(()=>this.closeModal())).bind("Esc",(()=>this.closeModal()))}componentDidRender(){this.modalFocus()}modalFocus(){this.opened&&requestAnimationFrame((()=>{const t=this._element.shadowRoot.querySelector("ez-modal-container");this._modalRef&&null===t&&this._modalRef.focus()}))}onMouseDownHandler(t){this.closeOutsideClick&&t.target===this._overlay&&this.closeModal()}onMouseLeaveHandler(){this.closeOutsideLeave&&this.closeModal()}render(){const t="left"===this.align?"left":"right";return i(o,null,this.opened?i("div",{ref:t=>this._modalRef=t,class:`modal modal__screen-${this.scrim} ${"regular"===this.heightMode?"modal__vertical-padding":""}`,onMouseDown:t=>this.onMouseDownHandler(t),tabIndex:-1},i("div",{class:`modal__container modal__container--${t}`,ref:t=>this._overlay=t},i("div",{onMouseLeave:()=>this.onMouseLeaveHandler(),class:`modal__content ${"regular"===this.heightMode?`modal__content--${t}`:""} ${this.modalSize}`},i("slot",null)))):void 0)}get _element(){return l(this)}static get watchers(){return{opened:["observeOpened"]}}};n.style=":host{--ez-modal-z-index:var(--elevation--22, 22);--ez-modal-vertical-padding:var(--space--large, 24px);--ez-modal-content-padding:24px;display:block}.modal{position:fixed;display:flex;top:0px;z-index:var(--ez-modal-z-index);left:0px;width:100%;box-sizing:border-box;height:100vh}.modal__screen-light{background:rgba(0, 4, 12, 0.1)}.modal__screen-none{background:none}.modal__screen-medium{backdrop-filter:blur(4px);background:rgba(0, 4, 12, 0.4)}.modal__vertical-padding{padding:var(--ez-modal-vertical-padding) 0}@keyframes expand-modal--left{from{transform:translate(-100%)}}@keyframes expand-modal--right{from{transform:translate(100%)}}.modal__container{display:flex;flex-wrap:wrap;height:100%;box-sizing:border-box;width:100%;align-items:flex-start}.modal__container--right{animation:expand-modal--right .2s ease-in-out 1;justify-content:flex-end}.modal__container--left{animation:expand-modal--left .2s ease-in-out 1;justify-content:flex-start}.modal__content{display:flex;flex-wrap:wrap;box-sizing:border-box;max-height:100%;height:100%;overflow-y:auto;background-color:rgb(255, 255, 255);padding:var(--ez-modal-content-padding);box-shadow:rgb(0 38 111 / 12%) 0px 0px 16px 0px}.modal__content--right{border-radius:12px 0px 0px 12px}.modal__content--left{border-radius:0px 12px 12px 0px}.modal__box__container{display:flex;flex-wrap:wrap;background-color:#fff;width:100%;border-radius:12px}.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%}}";export{n as ez_modal}
@@ -0,0 +1,10 @@
1
+ import { ListItem } from '../ez-list/ez-list';
2
+ export declare function moveItems(selectedItemsList: string[], itemsList: ListItem[], foward: boolean): ListItem[];
3
+ export declare function transferAll({ from, to, selectedFrom, selectedTo }: TransferConfig): TransferConfig;
4
+ export declare function transferItems({ from, to, selectedFrom, selectedTo }: TransferConfig): TransferConfig;
5
+ export interface TransferConfig {
6
+ from: ListItem[];
7
+ to: ListItem[];
8
+ selectedFrom: string[];
9
+ selectedTo: string[];
10
+ }
@@ -0,0 +1,86 @@
1
+ import { EventEmitter } from '../../stencil-public-runtime';
2
+ import { ListItem } from '../ez-list/ez-list';
3
+ export declare class EzDoubleList {
4
+ readonly LEFT_LIST_ID = "LEFT-LIST-ID";
5
+ readonly RIGHT_LIST_ID = "RIGHT-LIST-ID";
6
+ readonly LEFT_FILTER_ID = "LEFT-FILTER-ID";
7
+ readonly RIGHT_FILTER_ID = "RIGHT-FILTER-ID";
8
+ /**
9
+ * Define a lista origem.
10
+ */
11
+ leftList: ListItem[];
12
+ /**
13
+ * Define o título da lista origem.
14
+ */
15
+ leftTitle: string;
16
+ /**
17
+ * Define a lista destino.
18
+ */
19
+ rightList: ListItem[];
20
+ /**
21
+ * Nome da entidade listada.
22
+ * Exemplo: "Campo", "Item", "Empresa".
23
+ */
24
+ entityLabel: string;
25
+ /**
26
+ * Variação plura do nome da entidade listada.
27
+ * Exemplo: "Campos", "Itens", "Empresas".
28
+ */
29
+ entityLabelPlural: string;
30
+ /**
31
+ * Rótulo da lista esquerda.
32
+ */
33
+ leftListLabel: string;
34
+ /**
35
+ * Rótulo da lista direita.
36
+ */
37
+ rightListLabel: string;
38
+ /**
39
+ * Define o título da lista destino.
40
+ */
41
+ rightTitle: string;
42
+ leftFilteredList: ListItem[];
43
+ rightFilteredList: ListItem[];
44
+ selectedLeftList: string[];
45
+ selectedRightList: string[];
46
+ isFilteringLeft: boolean;
47
+ isFilteringRight: boolean;
48
+ ezLeftListChanged: EventEmitter<Array<ListItem>>;
49
+ ezRightListChanged: EventEmitter<Array<ListItem>>;
50
+ observeLeftList(newValue: any, oldValue: any): void;
51
+ observeRightList(newValue: any, oldValue: any): void;
52
+ private leftEzListInstance;
53
+ private rightEzListInstance;
54
+ private leftEzFilterInput;
55
+ private rightEzFilterInput;
56
+ private handleFilterChangeLeft;
57
+ private handleFilterChangeRight;
58
+ private handleChangeLeft;
59
+ private handleChangeRight;
60
+ private enableTransferAllToRight;
61
+ private enableTransferAllToLeft;
62
+ private enableTransferToRight;
63
+ private enableTransferToLeft;
64
+ private enableMoveUp;
65
+ private enableMoveDown;
66
+ private getRightSelectedItemsIndex;
67
+ private transferToRight;
68
+ private transferToLeft;
69
+ private handleTransferAllToRight;
70
+ private handleTransferAllToLeft;
71
+ private buildTransferToRightConfig;
72
+ private buildTransferToLeftConfig;
73
+ private handleMoveUp;
74
+ private handleMoveDown;
75
+ private handleMoveToTop;
76
+ private handleMoveToBottom;
77
+ private handleSelectLeftItem;
78
+ private handleSelectRightItem;
79
+ private getItemsToKeepAndToMove;
80
+ private handleTransferToRight;
81
+ private handleTransferToLeft;
82
+ private buildTotalizer;
83
+ private renderLeftList;
84
+ private renderRightList;
85
+ render(): any;
86
+ }
@@ -115,7 +115,7 @@ export declare class EzGrid {
115
115
  * Quando true, aplica o padrão de sombras ao componente (Utilizar quando for o elemento principal do layout)
116
116
  * Quando false, aplica o padrão de outline ao componente (Utilizar quando estiver contido em outro elemento como um painel ou pop-up)
117
117
  */
118
- boxShadow?: boolean;
118
+ outlineMode?: boolean;
119
119
  /**
120
120
  * Aplica a definição de colunas.
121
121
  */
@@ -29,7 +29,6 @@ export declare class EzList {
29
29
  private _groupContainer;
30
30
  private _element;
31
31
  private _itemContainer;
32
- private _draggingElement;
33
32
  private _changeDeboucingTimeout;
34
33
  /**
35
34
  * Define a lista inicial do componente.
@@ -65,6 +64,10 @@ export declare class EzList {
65
64
  * Quando verdadeiro, ativa o feedback visual ao efetuar houver nos itens da lista.
66
65
  */
67
66
  hoverFeedback: boolean;
67
+ /**
68
+ * Habilita seleção de múltiplos items.
69
+ */
70
+ enableMultipleSelection: boolean;
68
71
  /**
69
72
  * Emitido quando acontece a alteração de estado da lista.
70
73
  */
@@ -72,7 +75,7 @@ export declare class EzList {
72
75
  /**
73
76
  * Emitido sempre que um item da lista for selecionado.
74
77
  */
75
- ezSelectItem: EventEmitter<ListItem>;
78
+ ezSelectItem: EventEmitter<ListItem | ListItem[]>;
76
79
  /**
77
80
  * Emitido quando acontece a alteração de um item do checkbox.
78
81
  */
@@ -92,7 +95,11 @@ export declare class EzList {
92
95
  /**
93
96
  * Aplica seleção nas linhas da lista.
94
97
  */
95
- setSelection(selectedItem: ListItem, scrollToOption?: boolean): Promise<void>;
98
+ setSelection(selectedItem: ListItem, scrollToOption?: boolean, shitkey?: boolean, ctrlKey?: boolean): Promise<void>;
99
+ private setSelectionRange;
100
+ private setSelectionMultiple;
101
+ private setSelectionSingleItem;
102
+ private setSelectionWithGroups;
96
103
  /**
97
104
  * Obtém o item selecionado.
98
105
  */
@@ -113,7 +120,10 @@ export declare class EzList {
113
120
  componentWillRender(): void;
114
121
  componentDidLoad(): void;
115
122
  onDrop(ev: any, dragEndItem: ListItemGroup): void;
123
+ private buildDragHandlerConfig;
124
+ private onDropWithGroups;
116
125
  onDropLastIndex(ev: any, groupDropped?: any): void;
126
+ private onDropLastItemWithGroups;
117
127
  onDropGroup(groupSelected: any): void;
118
128
  onDragEnd(): void;
119
129
  addOverClass(element: any): void;
@@ -121,9 +131,12 @@ export declare class EzList {
121
131
  removeOverClass(): void;
122
132
  removeOverGroupClass(ev: any, group: any): void;
123
133
  onDragStart(item: any, group?: any, index?: any): void;
134
+ private onDragStartWithGroups;
124
135
  selectFirstItem(): void;
125
136
  nextOption(selectedItem: ListItem): void;
137
+ private nextOptionWithGroups;
126
138
  previousOption(selectedItem: ListItem): void;
139
+ private previousOptionWithGroups;
127
140
  private keyDownHandler;
128
141
  getDivGroupId(groupName: String): string;
129
142
  getGroupOverlayId(groupName: string): string;
@@ -134,5 +147,8 @@ export declare class EzList {
134
147
  hideOverlays(): void;
135
148
  getContainerItemBuilder(slotPosition: 'left' | 'right', item: ListItem, group?: ListGroup, className?: string): HTMLElement;
136
149
  doubleClickItem(item: ListItem): void;
150
+ private buildItem;
151
+ private renderListWithGroups;
152
+ private renderList;
137
153
  render(): any;
138
154
  }
@@ -0,0 +1,20 @@
1
+ import { ListItem, ListItemGroup } from './ez-list';
2
+ /**
3
+ * O dragElement é posicionado ANTERIORMENTE ao targetIndex.
4
+ * Ex: no array: ["A", "B", "C", "D", "E"]
5
+ * se o dragItem for "B" e o targetIndex 3 (referente à "D"),
6
+ * "B" será posicionado logo antes de "D".
7
+ * O resultado será: ["A", "C", "B", "D", "E"]
8
+ *
9
+ * @param configs
10
+ */
11
+ export declare function processListOnDrop(configs: DragHandlerConfig): ListItem[];
12
+ export declare function isContinuousSequence(numbers: number[]): boolean;
13
+ export interface DragHandlerConfig {
14
+ listItems: ListItem[];
15
+ dragItem: ListItemGroup;
16
+ enableMultipleSelection: boolean;
17
+ targetIndex: number;
18
+ moveToFinal: boolean;
19
+ clearSelection: Function;
20
+ }
@@ -7,7 +7,7 @@ export declare class EzPopup {
7
7
  /**
8
8
  * Define a largura do ez-popup.
9
9
  */
10
- size: "x-small" | "small" | "medium" | "large" | "x-large";
10
+ size: "x-small" | "small" | "medium" | "large" | "x-large" | "auto";
11
11
  /**
12
12
  * Define se o ez-popover está aberto.
13
13
  */
@@ -7,7 +7,7 @@
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { IAction } from "./utils";
9
9
  import { AlertItem } from "./components/ez-alert-list/ez-alert-list";
10
- import { SlotBuilder } from "./components/ez-list/ez-list";
10
+ import { ListItem, SlotBuilder } from "./components/ez-list/ez-list";
11
11
  import { IPosition } from "./components/ez-badge/interfaces/IPosition";
12
12
  import { IBreadcrumbItem } from "./components/ez-breadcrumb/ez-breadcrumb";
13
13
  import { CardItem } from "./components/ez-card-item/ez-card-item";
@@ -29,7 +29,7 @@ import { ICustomFormatter, ISelection, ISelectionToastConfig } from "./component
29
29
  import { IMultiSelectionListDataSource } from "./components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource";
30
30
  import { ICustomRender } from "./utils/customRender/interfaces/ICustomRender";
31
31
  import { IGuideItem } from "./components/ez-guide-navigator/interfaces";
32
- import { ListGroup, ListItem, SlotBuilder as SlotBuilder1, TListMode } from "./components/ez-list/ez-list";
32
+ import { ListGroup, ListItem as ListItem1, SlotBuilder as SlotBuilder1, TListMode } from "./components/ez-list/ez-list";
33
33
  import { THeightMode } from "./components/ez-modal/ez-modal";
34
34
  import { IMultiSelectionOption } from "./components/ez-multi-selection-list/interfaces/IMultiSelectionOption";
35
35
  import { IEzPopoverAnchorOptions } from "./components/ez-popover/ez-popover";
@@ -677,6 +677,40 @@ export namespace Components {
677
677
  */
678
678
  "show": (title: string, message: string, dialogType: DialogType, confirm: boolean, icon: string, labelCancel: string, labelConfirm: string, btnConfirmDanger: boolean, beforeClose: Function) => Promise<boolean>;
679
679
  }
680
+ interface EzDoubleList {
681
+ /**
682
+ * Nome da entidade listada. Exemplo: "Campo", "Item", "Empresa".
683
+ */
684
+ "entityLabel": string;
685
+ /**
686
+ * Variação plura do nome da entidade listada. Exemplo: "Campos", "Itens", "Empresas".
687
+ */
688
+ "entityLabelPlural": string;
689
+ /**
690
+ * Define a lista origem.
691
+ */
692
+ "leftList": ListItem[];
693
+ /**
694
+ * Rótulo da lista esquerda.
695
+ */
696
+ "leftListLabel": string;
697
+ /**
698
+ * Define o título da lista origem.
699
+ */
700
+ "leftTitle": string;
701
+ /**
702
+ * Define a lista destino.
703
+ */
704
+ "rightList": ListItem[];
705
+ /**
706
+ * Rótulo da lista direita.
707
+ */
708
+ "rightListLabel": string;
709
+ /**
710
+ * Define o título da lista destino.
711
+ */
712
+ "rightTitle": string;
713
+ }
680
714
  interface EzDropdown {
681
715
  /**
682
716
  * Função builder que possibilita alterar como o item da lista vai ser apresentado. Observação: No react ele se transforma em VNode e não como HTMLElement.
@@ -849,10 +883,6 @@ export namespace Components {
849
883
  * Define se a grid será focada ao ser carregada.
850
884
  */
851
885
  "autoFocus"?: boolean;
852
- /**
853
- * Altera visualmente as sombras e bordas do componente Quando true, aplica o padrão de sombras ao componente (Utilizar quando for o elemento principal do layout) Quando false, aplica o padrão de outline ao componente (Utilizar quando estiver contido em outro elemento como um painel ou pop-up)
854
- */
855
- "boxShadow"?: boolean;
856
886
  /**
857
887
  * Define se a edição está habilitada na grid.
858
888
  */
@@ -910,6 +940,10 @@ export namespace Components {
910
940
  * Habilita a seleção de várias linhas.
911
941
  */
912
942
  "multipleSelection": boolean;
943
+ /**
944
+ * Altera visualmente as sombras e bordas do componente Quando true, aplica o padrão de sombras ao componente (Utilizar quando for o elemento principal do layout) Quando false, aplica o padrão de outline ao componente (Utilizar quando estiver contido em outro elemento como um painel ou pop-up)
945
+ */
946
+ "outlineMode"?: boolean;
913
947
  /**
914
948
  * Define se a grid será focada ao ser carregada.
915
949
  */
@@ -1042,6 +1076,10 @@ export namespace Components {
1042
1076
  * Define a lista inicial do componente.
1043
1077
  */
1044
1078
  "dataSource": Array<ListGroup | ListItem>;
1079
+ /**
1080
+ * Habilita seleção de múltiplos items.
1081
+ */
1082
+ "enableMultipleSelection": boolean;
1045
1083
  /**
1046
1084
  * Se true habilita `drag and drop` para os itens.
1047
1085
  */
@@ -1085,7 +1123,7 @@ export namespace Components {
1085
1123
  /**
1086
1124
  * Aplica seleção nas linhas da lista.
1087
1125
  */
1088
- "setSelection": (selectedItem: ListItem, scrollToOption?: boolean) => Promise<void>;
1126
+ "setSelection": (selectedItem: ListItem, scrollToOption?: boolean, shitkey?: boolean, ctrlKey?: boolean) => Promise<void>;
1089
1127
  /**
1090
1128
  * Se true os grupos serão exibidos.
1091
1129
  */
@@ -1309,7 +1347,7 @@ export namespace Components {
1309
1347
  /**
1310
1348
  * Define a largura do ez-popup.
1311
1349
  */
1312
- "size": "x-small" | "small" | "medium" | "large" | "x-large";
1350
+ "size": "x-small" | "small" | "medium" | "large" | "x-large" | "auto";
1313
1351
  /**
1314
1352
  * Define se o componente utilizará cabeçalho.
1315
1353
  */
@@ -2043,6 +2081,10 @@ export interface EzDialogCustomEvent<T> extends CustomEvent<T> {
2043
2081
  detail: T;
2044
2082
  target: HTMLEzDialogElement;
2045
2083
  }
2084
+ export interface EzDoubleListCustomEvent<T> extends CustomEvent<T> {
2085
+ detail: T;
2086
+ target: HTMLEzDoubleListElement;
2087
+ }
2046
2088
  export interface EzDropdownCustomEvent<T> extends CustomEvent<T> {
2047
2089
  detail: T;
2048
2090
  target: HTMLEzDropdownElement;
@@ -2264,6 +2306,12 @@ declare global {
2264
2306
  prototype: HTMLEzDialogElement;
2265
2307
  new (): HTMLEzDialogElement;
2266
2308
  };
2309
+ interface HTMLEzDoubleListElement extends Components.EzDoubleList, HTMLStencilElement {
2310
+ }
2311
+ var HTMLEzDoubleListElement: {
2312
+ prototype: HTMLEzDoubleListElement;
2313
+ new (): HTMLEzDoubleListElement;
2314
+ };
2267
2315
  interface HTMLEzDropdownElement extends Components.EzDropdown, HTMLStencilElement {
2268
2316
  }
2269
2317
  var HTMLEzDropdownElement: {
@@ -2505,6 +2553,7 @@ declare global {
2505
2553
  "ez-date-input": HTMLEzDateInputElement;
2506
2554
  "ez-date-time-input": HTMLEzDateTimeInputElement;
2507
2555
  "ez-dialog": HTMLEzDialogElement;
2556
+ "ez-double-list": HTMLEzDoubleListElement;
2508
2557
  "ez-dropdown": HTMLEzDropdownElement;
2509
2558
  "ez-file-item": HTMLEzFileItemElement;
2510
2559
  "ez-filter-input": HTMLEzFilterInputElement;
@@ -3153,6 +3202,42 @@ declare namespace LocalJSX {
3153
3202
  */
3154
3203
  "personalizedIconPath"?: string;
3155
3204
  }
3205
+ interface EzDoubleList {
3206
+ /**
3207
+ * Nome da entidade listada. Exemplo: "Campo", "Item", "Empresa".
3208
+ */
3209
+ "entityLabel"?: string;
3210
+ /**
3211
+ * Variação plura do nome da entidade listada. Exemplo: "Campos", "Itens", "Empresas".
3212
+ */
3213
+ "entityLabelPlural"?: string;
3214
+ /**
3215
+ * Define a lista origem.
3216
+ */
3217
+ "leftList"?: ListItem[];
3218
+ /**
3219
+ * Rótulo da lista esquerda.
3220
+ */
3221
+ "leftListLabel"?: string;
3222
+ /**
3223
+ * Define o título da lista origem.
3224
+ */
3225
+ "leftTitle"?: string;
3226
+ "onEzLeftListChanged"?: (event: EzDoubleListCustomEvent<Array<ListItem>>) => void;
3227
+ "onEzRightListChanged"?: (event: EzDoubleListCustomEvent<Array<ListItem>>) => void;
3228
+ /**
3229
+ * Define a lista destino.
3230
+ */
3231
+ "rightList"?: ListItem[];
3232
+ /**
3233
+ * Rótulo da lista direita.
3234
+ */
3235
+ "rightListLabel"?: string;
3236
+ /**
3237
+ * Define o título da lista destino.
3238
+ */
3239
+ "rightTitle"?: string;
3240
+ }
3156
3241
  interface EzDropdown {
3157
3242
  /**
3158
3243
  * Função builder que possibilita alterar como o item da lista vai ser apresentado. Observação: No react ele se transforma em VNode e não como HTMLElement.
@@ -3328,10 +3413,6 @@ declare namespace LocalJSX {
3328
3413
  * Define se a grid será focada ao ser carregada.
3329
3414
  */
3330
3415
  "autoFocus"?: boolean;
3331
- /**
3332
- * Altera visualmente as sombras e bordas do componente Quando true, aplica o padrão de sombras ao componente (Utilizar quando for o elemento principal do layout) Quando false, aplica o padrão de outline ao componente (Utilizar quando estiver contido em outro elemento como um painel ou pop-up)
3333
- */
3334
- "boxShadow"?: boolean;
3335
3416
  /**
3336
3417
  * Define se a edição está habilitada na grid.
3337
3418
  */
@@ -3384,6 +3465,10 @@ declare namespace LocalJSX {
3384
3465
  * Emitido quando acontece a alteração de seleção de linhas.
3385
3466
  */
3386
3467
  "onEzSelectionChange"?: (event: EzGridCustomEvent<ISelection>) => void;
3468
+ /**
3469
+ * Altera visualmente as sombras e bordas do componente Quando true, aplica o padrão de sombras ao componente (Utilizar quando for o elemento principal do layout) Quando false, aplica o padrão de outline ao componente (Utilizar quando estiver contido em outro elemento como um painel ou pop-up)
3470
+ */
3471
+ "outlineMode"?: boolean;
3387
3472
  /**
3388
3473
  * Define se a grid será focada ao ser carregada.
3389
3474
  */
@@ -3450,6 +3535,10 @@ declare namespace LocalJSX {
3450
3535
  * Define a lista inicial do componente.
3451
3536
  */
3452
3537
  "dataSource"?: Array<ListGroup | ListItem>;
3538
+ /**
3539
+ * Habilita seleção de múltiplos items.
3540
+ */
3541
+ "enableMultipleSelection"?: boolean;
3453
3542
  /**
3454
3543
  * Se true habilita `drag and drop` para os itens.
3455
3544
  */
@@ -3489,7 +3578,7 @@ declare namespace LocalJSX {
3489
3578
  /**
3490
3579
  * Emitido sempre que um item da lista for selecionado.
3491
3580
  */
3492
- "onEzSelectItem"?: (event: EzListCustomEvent<ListItem>) => void;
3581
+ "onEzSelectItem"?: (event: EzListCustomEvent<ListItem | ListItem[]>) => void;
3493
3582
  /**
3494
3583
  * Se true os grupos serão exibidos.
3495
3584
  */
@@ -3719,7 +3808,7 @@ declare namespace LocalJSX {
3719
3808
  /**
3720
3809
  * Define a largura do ez-popup.
3721
3810
  */
3722
- "size"?: "x-small" | "small" | "medium" | "large" | "x-large";
3811
+ "size"?: "x-small" | "small" | "medium" | "large" | "x-large" | "auto";
3723
3812
  /**
3724
3813
  * Define se o componente utilizará cabeçalho.
3725
3814
  */
@@ -4338,6 +4427,7 @@ declare namespace LocalJSX {
4338
4427
  "ez-date-input": EzDateInput;
4339
4428
  "ez-date-time-input": EzDateTimeInput;
4340
4429
  "ez-dialog": EzDialog;
4430
+ "ez-double-list": EzDoubleList;
4341
4431
  "ez-dropdown": EzDropdown;
4342
4432
  "ez-file-item": EzFileItem;
4343
4433
  "ez-filter-input": EzFilterInput;
@@ -4399,6 +4489,7 @@ declare module "@stencil/core" {
4399
4489
  "ez-date-input": LocalJSX.EzDateInput & JSXBase.HTMLAttributes<HTMLEzDateInputElement>;
4400
4490
  "ez-date-time-input": LocalJSX.EzDateTimeInput & JSXBase.HTMLAttributes<HTMLEzDateTimeInputElement>;
4401
4491
  "ez-dialog": LocalJSX.EzDialog & JSXBase.HTMLAttributes<HTMLEzDialogElement>;
4492
+ "ez-double-list": LocalJSX.EzDoubleList & JSXBase.HTMLAttributes<HTMLEzDoubleListElement>;
4402
4493
  "ez-dropdown": LocalJSX.EzDropdown & JSXBase.HTMLAttributes<HTMLEzDropdownElement>;
4403
4494
  "ez-file-item": LocalJSX.EzFileItem & JSXBase.HTMLAttributes<HTMLEzFileItemElement>;
4404
4495
  "ez-filter-input": LocalJSX.EzFilterInput & JSXBase.HTMLAttributes<HTMLEzFilterInputElement>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sankhyalabs/ezui",
3
- "version": "5.22.0-dev.64",
3
+ "version": "5.22.0-dev.66",
4
4
  "description": "Biblioteca de componentes Sankhya.",
5
5
  "main": "dist/index.cjs.js",
6
6
  "module": "dist/custom-elements/index.js",