@sankhyalabs/ezui 4.18.1 → 4.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (96) hide show
  1. package/dist/cjs/constants-3a1d64fb.js +7 -0
  2. package/dist/cjs/ez-check.cjs.entry.js +1 -1
  3. package/dist/cjs/ez-combo-box.cjs.entry.js +2 -2
  4. package/dist/cjs/ez-dialog.cjs.entry.js +6 -4
  5. package/dist/cjs/ez-filter-input_2.cjs.entry.js +137 -0
  6. package/dist/cjs/ez-form-view.cjs.entry.js +1 -1
  7. package/dist/cjs/ez-grid.cjs.entry.js +373 -282
  8. package/dist/cjs/ez-list.cjs.entry.js +85 -72
  9. package/dist/cjs/ez-multi-selection-list.cjs.entry.js +181 -0
  10. package/dist/cjs/ez-popover.cjs.entry.js +1 -10
  11. package/dist/cjs/ez-popup.cjs.entry.js +6 -4
  12. package/dist/cjs/{ez-filter-input_4.cjs.entry.js → ez-scroller_3.cjs.entry.js} +0 -116
  13. package/dist/cjs/ezui.cjs.js +1 -1
  14. package/dist/cjs/filter-column.cjs.entry.js +108 -0
  15. package/dist/cjs/loader.cjs.js +1 -1
  16. package/dist/collection/collection-manifest.json +3 -0
  17. package/dist/collection/components/ez-check/ez-check.css +1 -0
  18. package/dist/collection/components/ez-combo-box/ez-combo-box.js +1 -1
  19. package/dist/collection/components/ez-dialog/ez-dialog.js +6 -4
  20. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +186 -119
  21. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridUtils.js +8 -0
  22. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.js +8 -1
  23. package/dist/collection/components/ez-grid/ez-grid.css +14 -4
  24. package/dist/collection/components/ez-grid/ez-grid.js +49 -20
  25. package/dist/collection/components/ez-grid/subcomponents/filter-column.css +34 -0
  26. package/dist/collection/components/ez-grid/subcomponents/filter-column.js +297 -0
  27. package/dist/collection/components/ez-list/ez-list.css +0 -1
  28. package/dist/collection/components/ez-list/ez-list.js +88 -77
  29. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.css +36 -0
  30. package/dist/collection/components/ez-multi-selection-list/ez-multi-selection-list.js +318 -0
  31. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.js +1 -0
  32. package/dist/collection/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.js +1 -0
  33. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.css +18 -0
  34. package/dist/collection/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.js +41 -0
  35. package/dist/collection/components/ez-popover/ez-popover.js +0 -12
  36. package/dist/collection/components/ez-popup/ez-popup.js +6 -4
  37. package/dist/collection/utils/constants.js +1 -0
  38. package/dist/custom-elements/index.d.ts +18 -0
  39. package/dist/custom-elements/index.js +774 -380
  40. package/dist/esm/constants-6dab64f7.js +4 -0
  41. package/dist/esm/ez-check.entry.js +1 -1
  42. package/dist/esm/ez-combo-box.entry.js +2 -2
  43. package/dist/esm/ez-dialog.entry.js +6 -4
  44. package/dist/esm/ez-filter-input_2.entry.js +132 -0
  45. package/dist/esm/ez-form-view.entry.js +1 -1
  46. package/dist/esm/ez-grid.entry.js +373 -282
  47. package/dist/esm/ez-list.entry.js +85 -72
  48. package/dist/esm/ez-multi-selection-list.entry.js +177 -0
  49. package/dist/esm/ez-popover.entry.js +1 -10
  50. package/dist/esm/ez-popup.entry.js +6 -4
  51. package/dist/esm/{ez-filter-input_4.entry.js → ez-scroller_3.entry.js} +3 -118
  52. package/dist/esm/ezui.js +1 -1
  53. package/dist/esm/filter-column.entry.js +104 -0
  54. package/dist/esm/loader.js +1 -1
  55. package/dist/ezui/ezui.esm.js +1 -1
  56. package/dist/ezui/p-06b3c6cd.entry.js +1 -0
  57. package/dist/ezui/{p-967758ac.entry.js → p-0dc118f3.entry.js} +1 -1
  58. package/dist/ezui/p-27a01a26.js +1 -0
  59. package/dist/ezui/p-353be5eb.entry.js +1 -0
  60. package/dist/ezui/p-36fd946e.entry.js +1 -0
  61. package/dist/ezui/p-3e25ecbc.entry.js +1 -0
  62. package/dist/ezui/{p-b945133d.entry.js → p-4186ca4f.entry.js} +1 -1
  63. package/dist/ezui/{p-b2056805.entry.js → p-5c0ac5ba.entry.js} +1 -1
  64. package/dist/ezui/p-6f309d83.entry.js +1 -0
  65. package/dist/ezui/{p-9334e296.entry.js → p-b7dd1382.entry.js} +2 -2
  66. package/dist/ezui/p-c72a799e.entry.js +1 -0
  67. package/dist/ezui/p-e04e9dbd.entry.js +1 -0
  68. package/dist/ezui/p-e8a29680.entry.js +1 -0
  69. package/dist/types/components/ez-dialog/ez-dialog.d.ts +1 -2
  70. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +5 -1
  71. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +14 -5
  72. package/dist/types/components/ez-grid/controller/ag-grid/AgGridUtils.d.ts +1 -0
  73. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomHeader.d.ts +9 -7
  74. package/dist/types/components/ez-grid/ez-grid.d.ts +14 -4
  75. package/dist/types/components/ez-grid/subcomponents/filter-column.d.ts +45 -0
  76. package/dist/types/components/ez-list/ez-list.d.ts +5 -5
  77. package/dist/types/components/ez-multi-selection-list/ez-multi-selection-list.d.ts +64 -0
  78. package/dist/types/components/ez-multi-selection-list/interfaces/IMultiSelectionListDataSource.d.ts +4 -0
  79. package/dist/types/components/ez-multi-selection-list/interfaces/IMultiSelectionOption.d.ts +4 -0
  80. package/dist/types/components/ez-multi-selection-list/subcomponents/multi-selection-box-message.d.ts +4 -0
  81. package/dist/types/components/ez-popover/ez-popover.d.ts +0 -3
  82. package/dist/types/components/ez-popup/ez-popup.d.ts +1 -2
  83. package/dist/types/components.d.ts +117 -1
  84. package/dist/types/utils/constants.d.ts +1 -0
  85. package/package.json +1 -1
  86. package/react/components.d.ts +3 -0
  87. package/react/components.js +3 -0
  88. package/react/components.js.map +1 -1
  89. package/dist/cjs/constants-5a75e2f3.js +0 -5
  90. package/dist/esm/constants-ca136201.js +0 -3
  91. package/dist/ezui/p-04a52868.entry.js +0 -1
  92. package/dist/ezui/p-3f4ae3a3.js +0 -1
  93. package/dist/ezui/p-4ebb1d15.entry.js +0 -1
  94. package/dist/ezui/p-6ede8b63.entry.js +0 -1
  95. package/dist/ezui/p-816a3218.entry.js +0 -1
  96. package/dist/ezui/p-afea6e50.entry.js +0 -1
@@ -1,6 +1,6 @@
1
1
  import { HTMLElement as HTMLElement$1, createEvent, h, Host, forceUpdate, Fragment, proxyCustomElement } from '@stencil/core/internal/client';
2
2
  export { setAssetPath, setPlatformOptions } from '@stencil/core/internal/client';
3
- import { UserInterface, DateUtils as DateUtils$1, Action, WaitingChangeException, ApplicationContext, DataUnitAction, FloatingManager, ElementIDUtils, ObjectUtils as ObjectUtils$1, JSUtils, StringUtils as StringUtils$1, TimeFormatter, DataUnit, NumberUtils as NumberUtils$1, DataType, SortMode, MaskFormatter } from '@sankhyalabs/core';
3
+ import { UserInterface, DateUtils as DateUtils$1, Action, WaitingChangeException, ApplicationContext, DataUnitAction, FloatingManager, ElementIDUtils, ObjectUtils as ObjectUtils$1, JSUtils, StringUtils as StringUtils$1, TimeFormatter, DataUnit, NumberUtils as NumberUtils$1, DataType, SortMode, ArrayUtils as ArrayUtils$1, MaskFormatter } from '@sankhyalabs/core';
4
4
  import { SelectionMode } from '@sankhyalabs/core/dist/dataunit/DataUnit';
5
5
 
6
6
  // Unique ID creation requires a high quality random # generator. In the browser we therefore
@@ -1742,7 +1742,7 @@ const EzCardItem$1 = class extends HTMLElement$1 {
1742
1742
  static get style() { return ezCardItemCss; }
1743
1743
  };
1744
1744
 
1745
- const ezCheckCss = ":host{--ez-check--box--width:20px;--ez-check--box--height:20px;--ez-check--width:calc(var(--ez-check--box--width) + var(--ez-check--outter-gap, 14px));--ez-check--height:calc(var(--ez-check--box--width) + var(--ez-check--outter-gap, 14px));--ez-check--border-radius:var(--border--radius-small);--ez-check--checked--background-color:var(--color--primary-200);--ez-check--focus--background-color:var(--color--strokes, #FFFFFF);--ez-check--hover--background-color:var(--background--medium);--ez-check--checked--disabled--background-color:var(--color--disable-secondary);--ez-check--border:var(--border--medium) var(--title--primary);--ez-check--disabled--border:var(--border--medium) var(--color--strokes);--ez-check--checked--border:var(--border--medium) var(--color--primary);--ez-check--checked--hover--background-color:var(--color--primary-200);--ez-check--checked--focus--background-color:var(--color--primary-300, #FFFFFF);--ez-check--check--image:url('data:image/svg+xml;utf8,<svg width=\"8\" height=\"7\" viewBox=\"0 0 8 7\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7.70002 0.398999L7.48502 0.207997C7.31524 0.0598858 7.09376 -0.0150438 6.86894 -0.000430025C6.64411 0.0141838 6.43419 0.117153 6.28502 0.285997L2.70002 4.332L1.61802 3.384C1.44837 3.23576 1.22697 3.16067 1.00214 3.17509C0.77732 3.18952 0.567332 3.2923 0.418019 3.461L0.229019 3.674C0.0752361 3.84797 -0.00437434 4.07521 0.00721192 4.30713C0.0187982 4.53904 0.120661 4.75722 0.291019 4.915L2.27402 6.762C2.35832 6.8432 2.45842 6.90618 2.56811 6.94702C2.67779 6.98787 2.79471 7.00571 2.91159 6.99942C3.02846 6.99314 3.14279 6.96287 3.24747 6.91049C3.35214 6.85812 3.44492 6.78477 3.52002 6.695L7.79102 1.638C7.94063 1.46048 8.01486 1.23149 7.99786 0.999963C7.98085 0.768436 7.87396 0.552749 7.70002 0.398999Z\"/></svg>');--ez-check--indeterminate--image:url('data:image/svg+xml;utf8,<svg width=\"10\" height=\"2\" viewBox=\"0 0 10 2\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m 1,0 h 8 c 0.554,0 1,0.446 1,1 0,0.554 -0.446,1 -1,1 H 1 C 0.446,2 0,1.554 0,1 0,0.446 0.446,0 1,0 Z\" /></svg>');--ez-check--check--background-color:var(--color--primary);--ez-check--check--disabled--background-color:var(--color--strokes);--ez-switch--slider--width:34px;--ez-switch--slider--height:14px;--ez-switch--pin--width:19px;--ez-switch--pin--height:19px;--ez-switch--focus--width:32px;--ez-switch--focus--height:32px;--ez-switch--background-color:var(--color--strokes);--ez-switch--disabled--background-color:var(--color--disable-secondary);--ez-switch--disabled--checked--background-color:var(--color--primary-300);--ez-switch--checked--background-color:var(--color--primary);--ez-switch--pin--background-color:var(--background--xlight);--ez-switch--pin--disabled--background-color:var(--color--disable-primary);--ez-switch--pin--checked--background-color:var(--background--xlight);--ez-switch--pin--checked--disabled--background-color:#E8F7F4;--ez-switch--pin--focus--background-color:var(--text--disable);--ez-switch--pin--checked--focus--background-color:var(--color--primary);--ez-switch--pin--border-color:var(--text--primary);--ez-switch--pin--disabled--border-color:var(--text--secondary);--ez-check--label--font-size:var(--text--medium, 14px);--ez-check--label--font-family:var(--font-pattern, Arial);--ez-check--label--color:var(--title--primary, #000);--ez-check--label--disabled--color:var(--text--disable, #AFB6C0);display:flex;width:100%;align-items:center;margin:0}input.regular-mode{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;box-sizing:border-box;-webkit-appearance:none;appearance:none;cursor:pointer;border-radius:50%;position:relative;width:var(--ez-check--width);height:var(--ez-check--height)}input.compact{margin-right:0px}input.regular-mode:enabled:hover{background-color:var(--ez-check--hover--background-color)}input.regular-mode:enabled:focus{outline:none;background-color:var(--ez-check--focus--background-color)}input.regular-mode:disabled{cursor:auto;background:none}input.regular-mode::before{box-sizing:border-box;content:\"\";display:block;width:var(--ez-check--box--width);height:var(--ez-check--box--height);border-radius:var(--ez-check--border-radius);border:var(--ez-check--border)}input.regular-mode:disabled::before{border:var(--ez-check--disabled--border)}input.regular-mode:checked:enabled:hover,input.regular-mode:indeterminate:enabled:hover{background-color:var(--ez-check--checked--hover--background-color)}input.regular-mode:checked:enabled:focus,input.regular-mode:indeterminate:enabled:focus{background-color:var(--ez-check--checked--focus--background-color)}input.regular-mode:checked::before,input.regular-mode:indeterminate::before{border:var(--ez-check--checked--border);background-color:var(--ez-check--checked--background-color)}input.regular-mode:disabled:before{border:var(--ez-check--disabled--border);background-color:var(--ez-check--checked--disabled--background-color)}input.regular-mode:checked::after,input.regular-mode:indeterminate:after{display:flex;position:absolute;content:\"\";background-color:var(--ez-check--check--background-color);width:8px;height:7px;-webkit-mask-image:var(--ez-check--check--image);mask-image:var(--ez-check--check--image)}input.regular-mode:indeterminate:after{display:flex;position:absolute;content:\"\";background-color:var(--ez-check--check--background-color);width:10px;height:2px;-webkit-mask-image:var(--ez-check--indeterminate--image);mask-image:var(--ez-check--indeterminate--image)}input.regular-mode:checked:disabled::after,input.regular-mode:indeterminate:disabled::after{background-color:var(--ez-check--check--disabled--background-color)}input.switch-mode{flex-shrink:0;-webkit-appearance:none;appearance:none;position:relative;outline:none;cursor:pointer;border-radius:20px;border:var(--border--small, 1px solid) var(--ez-switch--pin--border-color, #626e82);transition:background-color var(--transition);width:var(--ez-switch--slider--width);height:var(--ez-switch--slider--height);background-color:var(--ez-switch--background-color)}input.switch-mode:disabled{background-color:var(--ez-switch--disabled--background-color);border:var(--border--small, 1px solid) var(--ez-switch--pin--disabled--border-color, #a2abb9)}input.switch-mode:checked:disabled{background-color:var(--ez-switch--disabled--checked--background-color)}input.switch-mode::after{content:\"\";display:block;position:absolute;box-shadow:var(--shadow);transition:transform var(--transition);transition:background-color var(--transition);transition:border-color var(--transition);transform:translateX(-2px) translateY(-4px);border-radius:50%;border:var(--border--small, 1px solid) var(--ez-switch--pin--border-color, #626e82);width:var(--ez-switch--pin--width);height:var(--ez-switch--pin--height);background-color:var(--ez-switch--pin--background-color)}input.switch-mode:disabled::after{background-color:var(--ez-switch--pin--disabled--background-color);border:var(--border--small, 1px solid) var(--ez-switch--pin--disabled--border-color, #a2abb9)}input.switch-mode:checked{transition:background-color var(--transition), border var(--transition);background-color:var(--ez-switch--checked--background-color);border:var(--border--small, 1px solid) var(--color--primary, #008561)}input.switch-mode::before{display:block;content:\"\";display:block;position:absolute;border-radius:50%;opacity:0;width:var(--ez-switch--focus--width);height:var(--ez-switch--focus--height);top:calc((var(--ez-switch--slider--height) - var(--ez-switch--focus--height)) / 2);left:calc((var(--ez-switch--pin--width) - var(--ez-switch--focus--width) - 2px) / 2);background-color:var(--ez-switch--pin--focus--background-color)}input.switch-mode:focus::before{opacity:0.24;transition:opacity var(--transition)}input.switch-mode:checked:focus::before{background-color:var(--ez-switch--pin--checked--focus--background-color);transform:translateX(calc(var(--ez-switch--slider--width) - var(--ez-switch--pin--width) + 2px))}input.switch-mode:checked::after{transition:transform var(--transition);transition:background-color var(--transition);transition:border-color var(--transition);transform:translateX(calc(var(--ez-switch--slider--width) - var(--ez-switch--pin--width))) translateY(-4px);box-shadow:var(--shadow);background-color:var(--ez-switch--pin--checked--background-color);border:var(--border--small, 1px solid) var(--color--primary, #008561)}input.switch-mode:checked:disabled::after{background-color:var(--ez-switch--pin--checked--disabled--background-color)}.label{flex-shrink:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-check--label--color);font-size:var(--ez-check--label--font-size);font-family:var(--ez-check--label--font-family);cursor:default}.label--disabled{color:var(--ez-check--label--disabled--color)}.label--padding{padding-left:var(--space--small)}";
1745
+ const ezCheckCss = ":host{--ez-check--box--width:20px;--ez-check--box--height:20px;--ez-check--width:calc(var(--ez-check--box--width) + var(--ez-check--outter-gap, 14px));--ez-check--height:calc(var(--ez-check--box--width) + var(--ez-check--outter-gap, 14px));--ez-check--border-radius:var(--border--radius-small);--ez-check--checked--background-color:var(--color--primary-200);--ez-check--focus--background-color:var(--color--strokes, #FFFFFF);--ez-check--hover--background-color:var(--background--medium);--ez-check--checked--disabled--background-color:var(--color--disable-secondary);--ez-check--border:var(--border--medium) var(--title--primary);--ez-check--disabled--border:var(--border--medium) var(--color--strokes);--ez-check--checked--border:var(--border--medium) var(--color--primary);--ez-check--checked--hover--background-color:var(--color--primary-200);--ez-check--checked--focus--background-color:var(--color--primary-300, #FFFFFF);--ez-check--check--image:url('data:image/svg+xml;utf8,<svg width=\"8\" height=\"7\" viewBox=\"0 0 8 7\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"M7.70002 0.398999L7.48502 0.207997C7.31524 0.0598858 7.09376 -0.0150438 6.86894 -0.000430025C6.64411 0.0141838 6.43419 0.117153 6.28502 0.285997L2.70002 4.332L1.61802 3.384C1.44837 3.23576 1.22697 3.16067 1.00214 3.17509C0.77732 3.18952 0.567332 3.2923 0.418019 3.461L0.229019 3.674C0.0752361 3.84797 -0.00437434 4.07521 0.00721192 4.30713C0.0187982 4.53904 0.120661 4.75722 0.291019 4.915L2.27402 6.762C2.35832 6.8432 2.45842 6.90618 2.56811 6.94702C2.67779 6.98787 2.79471 7.00571 2.91159 6.99942C3.02846 6.99314 3.14279 6.96287 3.24747 6.91049C3.35214 6.85812 3.44492 6.78477 3.52002 6.695L7.79102 1.638C7.94063 1.46048 8.01486 1.23149 7.99786 0.999963C7.98085 0.768436 7.87396 0.552749 7.70002 0.398999Z\"/></svg>');--ez-check--indeterminate--image:url('data:image/svg+xml;utf8,<svg width=\"10\" height=\"2\" viewBox=\"0 0 10 2\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\"><path d=\"m 1,0 h 8 c 0.554,0 1,0.446 1,1 0,0.554 -0.446,1 -1,1 H 1 C 0.446,2 0,1.554 0,1 0,0.446 0.446,0 1,0 Z\" /></svg>');--ez-check--check--background-color:var(--color--primary);--ez-check--check--disabled--background-color:var(--color--strokes);--ez-switch--slider--width:34px;--ez-switch--slider--height:14px;--ez-switch--pin--width:19px;--ez-switch--pin--height:19px;--ez-switch--focus--width:32px;--ez-switch--focus--height:32px;--ez-switch--background-color:var(--color--strokes);--ez-switch--disabled--background-color:var(--color--disable-secondary);--ez-switch--disabled--checked--background-color:var(--color--primary-300);--ez-switch--checked--background-color:var(--color--primary);--ez-switch--pin--background-color:var(--background--xlight);--ez-switch--pin--disabled--background-color:var(--color--disable-primary);--ez-switch--pin--checked--background-color:var(--background--xlight);--ez-switch--pin--checked--disabled--background-color:#E8F7F4;--ez-switch--pin--focus--background-color:var(--text--disable);--ez-switch--pin--checked--focus--background-color:var(--color--primary);--ez-switch--pin--border-color:var(--text--primary);--ez-switch--pin--disabled--border-color:var(--text--secondary);--ez-check--label--font-size:var(--text--medium, 14px);--ez-check--label--font-family:var(--font-pattern, Arial);--ez-check--label--color:var(--title--primary, #000);--ez-check--label--disabled--color:var(--text--disable, #AFB6C0);display:flex;width:100%;align-items:center;margin:0}input.regular-mode{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;box-sizing:border-box;-webkit-appearance:none;appearance:none;cursor:pointer;border-radius:50%;position:relative;width:var(--ez-check--width);height:var(--ez-check--height)}input.compact{margin-right:0px}input.regular-mode:enabled:hover{background-color:var(--ez-check--hover--background-color)}input.regular-mode:enabled:focus{outline:none;background-color:var(--ez-check--focus--background-color)}input.regular-mode:disabled{cursor:auto;background:none}input.regular-mode::before{box-sizing:border-box;content:\"\";display:block;width:var(--ez-check--box--width);height:var(--ez-check--box--height);border-radius:var(--ez-check--border-radius);border:var(--ez-check--border)}input.regular-mode:disabled::before{border:var(--ez-check--disabled--border)}input.regular-mode:checked:enabled:hover,input.regular-mode:indeterminate:enabled:hover{background-color:var(--ez-check--checked--hover--background-color)}input.regular-mode:checked:enabled:focus,input.regular-mode:indeterminate:enabled:focus{background-color:var(--ez-check--checked--focus--background-color)}input.regular-mode:checked::before,input.regular-mode:indeterminate::before{border:var(--ez-check--checked--border);background-color:var(--ez-check--checked--background-color)}input.regular-mode:disabled:before{border:var(--ez-check--disabled--border);background-color:var(--ez-check--checked--disabled--background-color)}input.regular-mode:checked::after,input.regular-mode:indeterminate:after{display:flex;position:absolute;content:\"\";background-color:var(--ez-check--check--background-color);width:8px;height:7px;-webkit-mask-image:var(--ez-check--check--image);mask-image:var(--ez-check--check--image)}input.regular-mode:indeterminate:after{display:flex;position:absolute;content:\"\";background-color:var(--ez-check--check--background-color);width:10px;height:2px;-webkit-mask-image:var(--ez-check--indeterminate--image);mask-image:var(--ez-check--indeterminate--image)}input.regular-mode:checked:disabled::after,input.regular-mode:indeterminate:disabled::after{background-color:var(--ez-check--check--disabled--background-color)}input.switch-mode{flex-shrink:0;-webkit-appearance:none;appearance:none;position:relative;outline:none;cursor:pointer;border-radius:20px;border:var(--border--small, 1px solid) var(--ez-switch--pin--border-color, #626e82);transition:background-color var(--transition);width:var(--ez-switch--slider--width);height:var(--ez-switch--slider--height);background-color:var(--ez-switch--background-color)}input.switch-mode:disabled{background-color:var(--ez-switch--disabled--background-color);border:var(--border--small, 1px solid) var(--ez-switch--pin--disabled--border-color, #a2abb9)}input.switch-mode:checked:disabled{background-color:var(--ez-switch--disabled--checked--background-color)}input.switch-mode::after{content:\"\";display:block;position:absolute;box-shadow:var(--shadow);transition:transform var(--transition);transition:background-color var(--transition);transition:border-color var(--transition);transform:translateX(-2px) translateY(-4px);border-radius:50%;border:var(--border--small, 1px solid) var(--ez-switch--pin--border-color, #626e82);width:var(--ez-switch--pin--width);height:var(--ez-switch--pin--height);background-color:var(--ez-switch--pin--background-color)}input.switch-mode:disabled::after{background-color:var(--ez-switch--pin--disabled--background-color);border:var(--border--small, 1px solid) var(--ez-switch--pin--disabled--border-color, #a2abb9)}input.switch-mode:checked{transition:background-color var(--transition), border var(--transition);background-color:var(--ez-switch--checked--background-color);border:var(--border--small, 1px solid) var(--color--primary, #008561)}input.switch-mode::before{display:block;content:\"\";display:block;position:absolute;border-radius:50%;opacity:0;width:var(--ez-switch--focus--width);height:var(--ez-switch--focus--height);top:calc((var(--ez-switch--slider--height) - var(--ez-switch--focus--height)) / 2);left:calc((var(--ez-switch--pin--width) - var(--ez-switch--focus--width) - 2px) / 2);background-color:var(--ez-switch--pin--focus--background-color)}input.switch-mode:focus::before{opacity:0.24;transition:opacity var(--transition)}input.switch-mode:checked:focus::before{background-color:var(--ez-switch--pin--checked--focus--background-color);transform:translateX(calc(var(--ez-switch--slider--width) - var(--ez-switch--pin--width) + 2px))}input.switch-mode:checked::after{transition:transform var(--transition);transition:background-color var(--transition);transition:border-color var(--transition);transform:translateX(calc(var(--ez-switch--slider--width) - var(--ez-switch--pin--width))) translateY(-4px);box-shadow:var(--shadow);background-color:var(--ez-switch--pin--checked--background-color);border:var(--border--small, 1px solid) var(--color--primary, #008561)}input.switch-mode:checked:disabled::after{background-color:var(--ez-switch--pin--checked--disabled--background-color)}.label{flex-shrink:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-check--label--color);font-size:var(--ez-check--label--font-size);font-family:var(--ez-check--label--font-family);cursor:default;width:inherit}.label--disabled{color:var(--ez-check--label--disabled--color)}.label--padding{padding-left:var(--space--small)}";
1746
1746
 
1747
1747
  const EzCheck$1 = class extends HTMLElement$1 {
1748
1748
  constructor() {
@@ -2063,6 +2063,7 @@ const EzCollapsibleBox$1 = class extends HTMLElement$1 {
2063
2063
  };
2064
2064
 
2065
2065
  const REQUIRED_INFO = " (obrigatório) *";
2066
+ const DISTINCT_FILTER_NAME_PREFIX = 'FILTRO_COLUNA_';
2066
2067
 
2067
2068
  const ezComboBoxCss = ":host{--ez-combo-box--height:42px;--ez-combo-box--width:100%;--ez-combo-box__icon--width:48px;--ez-combo-box--border-radius:var(--border--radius-medium, 12px);--ez-combo-box--border-radius-small:var(--border--radius-small, 6px);--ez-combo-box--font-size:var(--text--medium, 14px);--ez-combo-box--font-family:var(--font-pattern, Arial);--ez-combo-box--font-weight--large:var(--text-weight--large, 500);--ez-combo-box--font-weight--medium:var(--text-weight--medium, 400);--ez-combo-box--background-color--xlight:var(--background--xlight, #fff);--ez-combo-box--background-medium:var(--background--medium, #f0f3f7);--ez-combo-box--line-height:calc(var(--text--medium, 14px) + 4px);--ez-combo-box__input--background-color:var(--background--medium, #e0e0e0);--ez-combo-box__input--border:var(--border--medium, 2px solid);--ez-combo-box__input--border-color:var(--ez-combo-box__input--background-color);--ez-combo-box__input--focus--border-color:var(--color--primary, #008561);--ez-combo-box__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-combo-box__input--disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__input--error--border-color:#CC2936;--ez-combo-box__btn--color:var(--title--primary, #2B3A54);--ez-combo-box__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-combo-box__btn-hover--color:var(--color--primary, #4e4e4e);--ez-combo-box__label--color:var(--title--primary, #2B3A54);--ez-combo-box__list-title--primary:var(--title--primary, #2B3A54);--ez-combo-box__list-text--primary:var(--text--primary, #626e82);--ez-combo-box__list-height:calc(var(--ez-combo-box--font-size) + var(--ez-combo-box--space--medium) + 4px);--ez-combo-box--space--medium:var(--space--medium, 12px);--ez-combo-box--space--small:var(--space--small, 6px);--ez-combo-box__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-combo-box__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-combo-box__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-combo-box__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-combo-box__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-combo-box__scrollbar--width:var(--space--medium, 12px);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-combo-box--width)}ez-icon{--ez-icon--color:inherit;font-weight:var(--text-weight--large, 600)}.suppressed-search-input{--ez-text-input__input--border-color:var(--color--strokes, #dce0e8);--ez-text-input__input--disabled--background-color:var(--background--xlight, #fff);--ez-text-input__input--disabled--color:var(--title--primary, #2B3A54)}.list-container{position:relative;width:100%}.list-wrapper{display:flex;flex-direction:column;box-sizing:border-box;width:100%;z-index:var(--more-visible, 2);max-height:calc(4*var(--ez-combo-box__list-height) + 2*var(--ez-combo-box--space--small) + 9px);background-color:var(--ez-combo-box--background-color--xlight);border-radius:var(--ez-combo-box--border-radius);box-shadow:var(--shadow, 0px 0px 16px 0px #000);padding:var(--ez-combo-box--space--small)}.list-options{box-sizing:border-box;width:100%;height:100%;display:flex;flex-direction:column;scroll-behavior:smooth;overflow:auto;scrollbar-width:thin;gap:3px;scrollbar-color:var(--ez-combo-box__scrollbar--color-clicked) var(--ez-combo-box__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--ez-combo-box__scrollbar--color-background);width:var(--ez-combo-box__scrollbar--width);max-width:var(--ez-combo-box__scrollbar--width);min-width:var(--ez-combo-box__scrollbar--width)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-combo-box__scrollbar--color-background);border-radius:var(--ez-combo-box__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-combo-box__scrollbar--color-default);border-radius:var(--ez-combo-box__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-combo-box__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-combo-box__scrollbar--color-clicked)}.item{display:flex;align-items:center;width:100%;box-sizing:border-box;list-style-type:none;cursor:pointer;border-radius:var(--ez-combo-box--border-radius-small);padding:var(--ez-combo-box--space--small);min-height:var(--ez-combo-box__list-height);gap:var(--space--small, 6px)}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-combo-box__list-title--primary);font-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--font-size);line-height:var(--ez-combo-box--line-height)}.item__label{font-weight:var(--ez-combo-box--font-weight--medium)}.item__label--bold{font-weight:var(--ez-combo-box--font-weight--large)}.item__value{text-align:center;color:var(--ez-combo-box__list-text--primary);font-weight:var(--ez-combo-box--font-weight--large)}.item__value--hidden{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}.item__label{text-align:left}.message{text-align:center;display:flex;justify-content:center;align-items:center;list-style-type:none;min-height:var(--ez-combo-box__list-height)}.message__no-result{color:var(--ez-combo-box__list-title--primary);font-family:var(--ez-combo-box--font-family);font-size:var(--ez-combo-box--font-size)}.message__loading{border-radius:50%;width:14px;height:14px;-webkit-animation:spin 1s linear infinite;animation:spin 1s linear infinite;border:3px solid var(--ez-combo-box__list-title--primary);border-top:3px solid transparent}li:hover{background-color:var(--ez-combo-box--background-medium)}.preselected{background-color:var(--background--medium)}.btn{outline:none;border:none;background:none;cursor:pointer;color:var(--ez-combo-box__btn--color)}.btn:disabled{cursor:unset;color:var(--ez-combo-box__btn-disabled--color)}.btn:disabled:hover{cursor:unset;color:var(--ez-combo-box__btn-disabled--color)}.btn:hover{color:var(--ez-combo-box__btn-hover--color)}.btn__close{visibility:hidden}ez-text-input:hover .btn__close,ez-text-input:focus .btn__close{visibility:visible}@-webkit-keyframes spin{0%{-webkit-transform:rotate(0deg)}100%{-webkit-transform:rotate(360deg)}}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}";
2068
2069
 
@@ -2279,7 +2280,7 @@ const EzComboBox$1 = class extends HTMLElement$1 {
2279
2280
  }
2280
2281
  scrollToOption(opt, down) {
2281
2282
  window.requestAnimationFrame(() => {
2282
- const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`li#item_${opt.value.replace(/[<>\[\]#=]/g, '\\$&')}`) : undefined;
2283
+ const liElem = (opt === null || opt === void 0 ? void 0 : opt.value) ? this._optionsList.querySelector(`li#item_${opt.value.replace(/[<>\[\]#=]/g, '\\$&').replace(/:/g, '\\:')}`) : undefined;
2283
2284
  if (liElem) {
2284
2285
  const parent = liElem.parentElement;
2285
2286
  const parentRect = parent.getBoundingClientRect();
@@ -3024,7 +3025,6 @@ const EzDialog$1 = class extends HTMLElement$1 {
3024
3025
  this.labelCancel = 'Não';
3025
3026
  this.btnConfirmDanger = false;
3026
3027
  this._messageQueue = [];
3027
- this._bodyOverflow = '';
3028
3028
  this.confirm = false;
3029
3029
  this.dialogType = undefined;
3030
3030
  this.message = undefined;
@@ -3037,9 +3037,12 @@ const EzDialog$1 = class extends HTMLElement$1 {
3037
3037
  this.manageOverflow();
3038
3038
  }
3039
3039
  manageOverflow() {
3040
- if (this.opened)
3041
- this._bodyOverflow = window.document.body.style.overflow;
3042
- window.document.body.style.overflow = this.opened ? 'hidden' : this._bodyOverflow;
3040
+ if (this.opened) {
3041
+ window.document.body.style.overflow = "hidden";
3042
+ }
3043
+ else {
3044
+ window.document.body.style.overflow = "";
3045
+ }
3043
3046
  }
3044
3047
  manageOverlay() {
3045
3048
  if (this.opened) {
@@ -123294,81 +123297,6 @@ var AllEnterpriseModules = [
123294
123297
 
123295
123298
  ModuleRegistry.registerModules(AllEnterpriseModules);
123296
123299
 
123297
- const gridTerms = {
123298
- // for filter panel
123299
- page: "Página",
123300
- more: "mais",
123301
- to: "para",
123302
- of: "de",
123303
- next: "Próximo",
123304
- last: "Último",
123305
- first: "Primeiro",
123306
- previous: "Anterior",
123307
- loadingOoo: "Carregar",
123308
- // for set filter
123309
- selectAll: "Selecionar tudo",
123310
- searchOoo: "Procurar",
123311
- blanks: "Vazio",
123312
- // for number filter and text filter
123313
- filterOoo: "Filtrar",
123314
- applyFilter: "Aplicar filtro",
123315
- // for number filter
123316
- equals: "Igual",
123317
- lessThan: "Menor que",
123318
- greaterThan: "Maior que",
123319
- // for text filter
123320
- contains: "Contém",
123321
- startsWith: "Começa com",
123322
- endsWith: "Termina com",
123323
- // the header of the default group column
123324
- group: "Grupo",
123325
- // tool panel
123326
- columns: "Colunas",
123327
- rowGroupColumns: "Colunas do grupo de linhas",
123328
- rowGroupColumnsEmptyMessage: "Colunas do grupo de linhas vazias",
123329
- valueColumns: "Valores das colunas",
123330
- pivotMode: "Modo pivô",
123331
- groups: "Grupos",
123332
- values: "Valores",
123333
- pivots: "Pivôs",
123334
- valueColumnsEmptyMessage: "Valores de colunas vazias",
123335
- pivotColumnsEmptyMessage: "Pivôs de colunas vazias",
123336
- toolPanelButton: "Botão de painel de ferramentas",
123337
- // other
123338
- noRowsToShow: "Não há registros para mostrar.",
123339
- // enterprise menu
123340
- pinColumn: "Fixar coluna",
123341
- valueAggregation: "Agregar valor",
123342
- autosizeThiscolumn: "Redimensionar esta coluna",
123343
- autosizeAllColumns: "Redimensionar todas colunas",
123344
- groupBy: "Agrupar por",
123345
- ungroupBy: "Desagrupar por",
123346
- resetColumns: "Resetar colunas",
123347
- expandAll: "Expandir tudo",
123348
- collapseAll: "Contrair tudo",
123349
- toolPanel: "Painel de ferramentas",
123350
- export: "Exportar",
123351
- csvExport: "Exportar para CSV",
123352
- excelExport: "Exportar para Excel",
123353
- // enterprise menu pinning
123354
- pinLeft: "Fixar coluna",
123355
- pinRight: "Fixar a direita",
123356
- noPin: "Desfixar coluna",
123357
- // enterprise menu aggregation and status panel
123358
- sum: "Soma",
123359
- min: "Mínimo",
123360
- max: "Máximo",
123361
- none: "Nenhum",
123362
- count: "Contagem",
123363
- average: "Média",
123364
- // standard menu
123365
- copy: "Copiar",
123366
- copyWithHeaders: "Copiar com cabeçalho",
123367
- ctrlC: "Ctrl+C",
123368
- paste: "Colar",
123369
- ctrlV: "Ctrl+V"
123370
- };
123371
-
123372
123300
  class DataSource {
123373
123301
  constructor(dataUnit, controller, options) {
123374
123302
  this.RECORD_ARCHIVE = "__RECORD_ARCHIVE__";
@@ -123469,6 +123397,103 @@ class DataSource {
123469
123397
  }
123470
123398
  }
123471
123399
 
123400
+ function calcFilterColumnLeftPosition(leftReference) {
123401
+ const FIX_MARGIN = 60;
123402
+ const FILTER_COLUMN_WIDTH = 330;
123403
+ const screenWidth = window.innerWidth;
123404
+ const maxLeft = screenWidth - (FILTER_COLUMN_WIDTH + FIX_MARGIN);
123405
+ const leftInt = leftReference - FIX_MARGIN;
123406
+ return leftInt > maxLeft ? maxLeft : leftInt;
123407
+ }
123408
+
123409
+ class EzGridCustomHeader {
123410
+ init(agParams) {
123411
+ var _a;
123412
+ this.params = agParams;
123413
+ this.element = document.createElement('div');
123414
+ this.element.classList.add('ag-cell-label-container');
123415
+ this.element.setAttribute('title', (_a = this.params.tooltip) !== null && _a !== void 0 ? _a : '');
123416
+ this.element.innerHTML = `
123417
+ <div class='ez-flex ez-flex--justify-between'>
123418
+ <i id='ez-grid-filter-icon' class='ez-icon-filter' style='color:#008561'></i>
123419
+ <i id='ez-grid-menu-icon' class='ez-icon-dots-vertical'></i>
123420
+ </div>
123421
+ <div id='ez-header-container' class='ez-flex ez-flex--justify-between ag-header-cell-text'>
123422
+ <span class='ag-header-cell-text'>${this.params.displayName}</span>
123423
+ <i id='ez-grid-sort-icon-down' class='ez-icon-arrow_downward' style='display: none;margin-left: 4px;font-size: var(--text--medium, 14px);align-self: center;'></i>
123424
+ <i id='ez-grid-sort-icon-up' class='ez-icon-arrow_downward' style='display: none; transform: rotate(180deg);margin-left: 4px;font-size: var(--text--medium, 14px);align-self: center;'></i>
123425
+ </div>
123426
+ `;
123427
+ this.configMenuClick();
123428
+ this.configSortClick();
123429
+ this.configSortListener();
123430
+ this.configFilterButton();
123431
+ }
123432
+ refresh(agParams) {
123433
+ this.params = agParams;
123434
+ this.configFilterButton();
123435
+ this.configSortIcon();
123436
+ }
123437
+ configFilterButton() {
123438
+ this.filterButton = this.element.querySelector('#ez-grid-filter-icon');
123439
+ this.filterButton.style.display = this.params.hasFilter() ? 'flex' : 'none';
123440
+ this.onFilterButtonClickListener = this.onClickFilter.bind(this);
123441
+ this.filterButton.addEventListener('click', this.onFilterButtonClickListener);
123442
+ }
123443
+ onClickFilter() {
123444
+ var _a;
123445
+ const iconLeft = (_a = this.filterButton) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect().left;
123446
+ this.params.showColumnFilter(`${calcFilterColumnLeftPosition(iconLeft)}px`);
123447
+ }
123448
+ configSortIcon() {
123449
+ this.sortDownIcon.style.display = this.params.column.isSortDescending() ? 'flex' : 'none';
123450
+ this.sortUpIcon.style.display = this.params.column.isSortAscending() ? 'flex' : 'none';
123451
+ }
123452
+ configSortListener() {
123453
+ if (this.params.enableSorting) {
123454
+ this.sortUpIcon = this.element.querySelector('#ez-grid-sort-icon-up');
123455
+ this.sortDownIcon = this.element.querySelector('#ez-grid-sort-icon-down');
123456
+ this.onSortChangedListener = this.configSortIcon.bind(this);
123457
+ this.params.column.addEventListener('sortChanged', this.onSortChangedListener);
123458
+ this.configSortIcon();
123459
+ }
123460
+ }
123461
+ onSortClick(event) {
123462
+ this.params.progressSort(event.shiftKey);
123463
+ }
123464
+ configSortClick() {
123465
+ if (this.params.column.getColDef().sortable) {
123466
+ this.headerContainer = this.element.querySelector('#ez-header-container');
123467
+ this.onSortClickListener = this.onSortClick.bind(this);
123468
+ this.headerContainer.addEventListener('click', this.onSortClickListener);
123469
+ }
123470
+ }
123471
+ onMenuClick() {
123472
+ this.params.showColumnMenu(this.menuButton);
123473
+ }
123474
+ configMenuClick() {
123475
+ this.menuButton = this.element.querySelector('#ez-grid-menu-icon');
123476
+ this.onMenuClickListener = this.onMenuClick.bind(this);
123477
+ this.menuButton.addEventListener('click', this.onMenuClickListener);
123478
+ }
123479
+ getGui() {
123480
+ return this.element;
123481
+ }
123482
+ destroy() {
123483
+ if (this.onMenuClickListener) {
123484
+ this.menuButton.removeEventListener('click', this.onMenuClickListener);
123485
+ }
123486
+ if (this.onSortClickListener) {
123487
+ this.headerContainer.removeEventListener('click', this.onSortClickListener);
123488
+ }
123489
+ if (this.onFilterButtonClickListener) {
123490
+ this.filterButton.removeEventListener('click', this.onFilterButtonClickListener);
123491
+ }
123492
+ this.params.column.removeEventListener('sortChanged', this.onSortChangedListener);
123493
+ this.params.column.removeEventListener('applyFilterColumnOptions', this.onFilterAppliedListener);
123494
+ }
123495
+ }
123496
+
123472
123497
  class CellRendererStatus {
123473
123498
  constructor() {
123474
123499
  this.DEFAULT_COLOR = 'transparent';
@@ -123554,102 +123579,111 @@ class SelectionHeader {
123554
123579
  }
123555
123580
  }
123556
123581
 
123557
- class EzGridCustomHeader {
123558
- init(agParams) {
123559
- var _a;
123560
- this.params = agParams;
123561
- this.element = document.createElement('div');
123562
- this.element.classList.add('ag-cell-label-container');
123563
- this.element.setAttribute('title', (_a = this.params.tooltip) !== null && _a !== void 0 ? _a : '');
123564
- this.element.innerHTML = `
123565
- <div class='ez-flex ez-flex--justify-between'>
123566
- <i id='ez-grid-filter-icon' class='ez-icon-filter' style='color:#008561'></i>
123567
- <i id='ez-grid-menu-icon' class='ez-icon-dots-vertical'></i>
123568
- </div>
123569
- <div id='ez-header-container' class='ez-flex ez-flex--justify-between ag-header-cell-text'>
123570
- <span class='ag-header-cell-text'>${this.params.displayName}</span>
123571
- <i id='ez-grid-sort-icon-down' class='ez-icon-arrow_downward' style='display: none;margin-left: 4px;font-size: var(--text--medium, 14px);align-self: center;'></i>
123572
- <i id='ez-grid-sort-icon-up' class='ez-icon-arrow_downward' style='display: none; transform: rotate(180deg);margin-left: 4px;font-size: var(--text--medium, 14px);align-self: center;'></i>
123573
- </div>
123574
- `;
123575
- this.configMenuClick();
123576
- this.configSortClick();
123577
- this.configSortListener();
123578
- this.configFilterButton();
123579
- }
123580
- refresh(agParams) {
123581
- this.params = agParams;
123582
- this.configFilterButton();
123583
- this.configSortIcon();
123584
- }
123585
- configFilterButton() {
123586
- this.filterButton = this.element.querySelector('#ez-grid-filter-icon');
123587
- this.filterButton.style.display = this.params.hasFilter() ? 'flex' : 'none';
123588
- this.onFilterButtonClickListener = this.params.showColumnFilter.bind(this);
123589
- this.filterButton.addEventListener('click', this.onFilterButtonClickListener);
123590
- }
123591
- configSortIcon() {
123592
- this.sortDownIcon.style.display = this.params.column.isSortDescending() ? 'flex' : 'none';
123593
- this.sortUpIcon.style.display = this.params.column.isSortAscending() ? 'flex' : 'none';
123594
- }
123595
- configSortListener() {
123596
- if (this.params.enableSorting) {
123597
- this.sortUpIcon = this.element.querySelector('#ez-grid-sort-icon-up');
123598
- this.sortDownIcon = this.element.querySelector('#ez-grid-sort-icon-down');
123599
- this.onSortChangedListener = this.configSortIcon.bind(this);
123600
- this.params.column.addEventListener('sortChanged', this.onSortChangedListener);
123601
- this.configSortIcon();
123602
- }
123603
- }
123604
- onSortClick(event) {
123605
- this.params.progressSort(event.shiftKey);
123606
- }
123607
- configSortClick() {
123608
- if (this.params.column.getColDef().sortable) {
123609
- this.headerContainer = this.element.querySelector('#ez-header-container');
123610
- this.onSortClickListener = this.onSortClick.bind(this);
123611
- this.headerContainer.addEventListener('click', this.onSortClickListener);
123612
- }
123613
- }
123614
- onMenuClick() {
123615
- this.params.showColumnMenu(this.menuButton);
123616
- }
123617
- configMenuClick() {
123618
- this.menuButton = this.element.querySelector('#ez-grid-menu-icon');
123619
- this.onMenuClickListener = this.onMenuClick.bind(this);
123620
- this.menuButton.addEventListener('click', this.onMenuClickListener);
123582
+ const gridTerms = {
123583
+ // for filter panel
123584
+ page: "Página",
123585
+ more: "mais",
123586
+ to: "para",
123587
+ of: "de",
123588
+ next: "Próximo",
123589
+ last: "Último",
123590
+ first: "Primeiro",
123591
+ previous: "Anterior",
123592
+ loadingOoo: "Carregar",
123593
+ // for set filter
123594
+ selectAll: "Selecionar tudo",
123595
+ searchOoo: "Procurar",
123596
+ blanks: "Vazio",
123597
+ // for number filter and text filter
123598
+ filterOoo: "Filtrar",
123599
+ applyFilter: "Aplicar filtro",
123600
+ // for number filter
123601
+ equals: "Igual",
123602
+ lessThan: "Menor que",
123603
+ greaterThan: "Maior que",
123604
+ // for text filter
123605
+ contains: "Contém",
123606
+ startsWith: "Começa com",
123607
+ endsWith: "Termina com",
123608
+ // the header of the default group column
123609
+ group: "Grupo",
123610
+ // tool panel
123611
+ columns: "Colunas",
123612
+ rowGroupColumns: "Colunas do grupo de linhas",
123613
+ rowGroupColumnsEmptyMessage: "Colunas do grupo de linhas vazias",
123614
+ valueColumns: "Valores das colunas",
123615
+ pivotMode: "Modo pivô",
123616
+ groups: "Grupos",
123617
+ values: "Valores",
123618
+ pivots: "Pivôs",
123619
+ valueColumnsEmptyMessage: "Valores de colunas vazias",
123620
+ pivotColumnsEmptyMessage: "Pivôs de colunas vazias",
123621
+ toolPanelButton: "Botão de painel de ferramentas",
123622
+ // other
123623
+ noRowsToShow: "Não há registros para mostrar.",
123624
+ // enterprise menu
123625
+ pinColumn: "Fixar coluna",
123626
+ valueAggregation: "Agregar valor",
123627
+ autosizeThiscolumn: "Redimensionar esta coluna",
123628
+ autosizeAllColumns: "Redimensionar todas colunas",
123629
+ groupBy: "Agrupar por",
123630
+ ungroupBy: "Desagrupar por",
123631
+ resetColumns: "Resetar colunas",
123632
+ expandAll: "Expandir tudo",
123633
+ collapseAll: "Contrair tudo",
123634
+ toolPanel: "Painel de ferramentas",
123635
+ export: "Exportar",
123636
+ csvExport: "Exportar para CSV",
123637
+ excelExport: "Exportar para Excel",
123638
+ // enterprise menu pinning
123639
+ pinLeft: "Fixar coluna",
123640
+ pinRight: "Fixar a direita",
123641
+ noPin: "Desfixar coluna",
123642
+ // enterprise menu aggregation and status panel
123643
+ sum: "Soma",
123644
+ min: "Mínimo",
123645
+ max: "Máximo",
123646
+ none: "Nenhum",
123647
+ count: "Contagem",
123648
+ average: "Média",
123649
+ // standard menu
123650
+ copy: "Copiar",
123651
+ copyWithHeaders: "Copiar com cabeçalho",
123652
+ ctrlC: "Ctrl+C",
123653
+ paste: "Colar",
123654
+ ctrlV: "Ctrl+V"
123655
+ };
123656
+
123657
+ class AgGridController {
123658
+ configFilterColumn(filterColumn) {
123659
+ this._filterColumn = filterColumn;
123660
+ this._filterColumn.addEventListener('applyFilterColumnOptions', this.handleFilteredColumnsChanged.bind(this));
123621
123661
  }
123622
- getGui() {
123623
- return this.element;
123662
+ handleFilteredColumnsChanged(event) {
123663
+ const applied = event.detail;
123664
+ this._filteredColumns.set(applied.field, applied.values);
123665
+ this._gridOptions.api.refreshHeader();
123666
+ this._dataUnit.loadData();
123624
123667
  }
123625
- destroy() {
123626
- if (this.onMenuClickListener) {
123627
- this.menuButton.removeEventListener('click', this.onMenuClickListener);
123628
- }
123629
- if (this.onSortClickListener) {
123630
- this.headerContainer.removeEventListener('click', this.onSortClickListener);
123631
- }
123632
- if (this.onFilterButtonClickListener) {
123633
- this.filterButton.removeEventListener('click', this.onFilterButtonClickListener);
123634
- }
123635
- this.params.column.removeEventListener('sortChanged', this.onSortChangedListener);
123668
+ showFilterColumn(configs) {
123669
+ var _a;
123670
+ (_a = this._filterColumn) === null || _a === void 0 ? void 0 : _a.show(configs);
123636
123671
  }
123637
- }
123638
-
123639
- class AgGridController {
123640
123672
  constructor(enterprise) {
123641
123673
  this.DEFAULT_ROW_HEIGHT = 30;
123642
123674
  this.DEFAULT_HEADER_ROW_HEIGHT = 32;
123643
- this.CHECK_BOX_COL_ID = "checkBoxColumn";
123644
- this.STATUS_COL_ID = "statusColumn";
123645
- this.RECORD_ARCHIVE_COL_ID = "__RECORD_ARCHIVE__";
123675
+ this.CHECK_BOX_COL_ID = 'checkBoxColumn';
123676
+ this.STATUS_COL_ID = 'statusColumn';
123677
+ this.RECORD_ARCHIVE_COL_ID = '__RECORD_ARCHIVE__';
123646
123678
  this.BLOCK_LOAD_DEBOUNCE = 400;
123647
123679
  this.DEFAULT_FONT_SIZE = 14;
123648
123680
  this.DEFAULT_ICON_SIZE = 12;
123649
123681
  this.DEFAULT_MAX_SIZE = 200;
123650
123682
  this._menuItems = [];
123651
- this._idAttribName = "__record__id__";
123683
+ this._idAttribName = '__record__id__';
123652
123684
  this._gridConfig = [];
123685
+ this._filteredColumns = new Map();
123686
+ this._filterColumnleftPosition = '0px';
123653
123687
  this._enterprise = enterprise;
123654
123688
  }
123655
123689
  getGridConfig() {
@@ -123657,23 +123691,59 @@ class AgGridController {
123657
123691
  }
123658
123692
  getSort() {
123659
123693
  const sortedColumns = [];
123660
- this._gridOptions.columnApi.getColumnState()
123694
+ this._gridOptions.columnApi
123695
+ .getColumnState()
123661
123696
  .sort((colA, colB) => colA.sortIndex - colB.sortIndex)
123662
123697
  .forEach(({ colId, sort }) => {
123663
123698
  if (sort) {
123664
123699
  const field = this._dataUnit.getField(colId);
123665
- const mode = sort === "asc" ? SortMode.ASC : SortMode.DESC;
123700
+ const mode = sort === 'asc' ? SortMode.ASC : SortMode.DESC;
123666
123701
  const sortField = field ? { field: field.name, dataType: field.dataType, mode } : { field: colId, dataType: DataType.TEXT, mode };
123667
123702
  sortedColumns.push(sortField);
123668
123703
  }
123669
123704
  });
123670
123705
  return sortedColumns;
123671
123706
  }
123672
- ;
123707
+ getFilter() {
123708
+ if (!this._filteredColumns || this._filteredColumns.size === 0) {
123709
+ return;
123710
+ }
123711
+ return Array.from(this._filteredColumns.entries())
123712
+ .map(([column, items]) => {
123713
+ var _a;
123714
+ const checkedOptions = items.filter(option => option.check);
123715
+ if (checkedOptions.length > 0) {
123716
+ const fieldDescriptor = this._dataUnit.getField(column);
123717
+ const dataType = (_a = fieldDescriptor === null || fieldDescriptor === void 0 ? void 0 : fieldDescriptor.dataType) !== null && _a !== void 0 ? _a : DataType.TEXT;
123718
+ let placeholders = '';
123719
+ const params = [];
123720
+ checkedOptions.forEach(option => {
123721
+ if (placeholders.length > 0) {
123722
+ placeholders = placeholders + ',';
123723
+ }
123724
+ const paramName = `PARAM_${column}_${params.length + 1}`;
123725
+ placeholders = `${placeholders}:${paramName}`; //FIXME: trocar por ? quando o backend estiver funcionando
123726
+ params.push({
123727
+ dataType: dataType === DataType.OBJECT ? DataType.TEXT : dataType,
123728
+ name: paramName,
123729
+ value: option.value,
123730
+ });
123731
+ });
123732
+ const columnExpression = dataType === DataType.DATE ? `onlydate(this.${column})` : `this.${column}`;
123733
+ return {
123734
+ name: `${DISTINCT_FILTER_NAME_PREFIX}${column}`,
123735
+ expression: `${columnExpression} in (${placeholders})`,
123736
+ params,
123737
+ };
123738
+ }
123739
+ return undefined;
123740
+ })
123741
+ .filter(item => item != undefined);
123742
+ }
123673
123743
  initDatagrid(container, options) {
123674
123744
  var _a;
123675
123745
  if (this._grid === undefined) {
123676
- LicenseManager.setLicenseKey(ApplicationContext.getContextValue("__EZUI__GRID_LICENSE__"));
123746
+ LicenseManager.setLicenseKey(ApplicationContext.getContextValue('__EZUI__GRID_LICENSE__'));
123677
123747
  this._columnStateChangeCallback = options.onColumnStateChange;
123678
123748
  this._selectionChangeCallback = options.onSelectionChange;
123679
123749
  this._doubleClickCallBack = options.onDoubleClick;
@@ -123682,28 +123752,30 @@ class AgGridController {
123682
123752
  this._statusResolver = options.statusResolver;
123683
123753
  if (this._dataUnit) {
123684
123754
  this._dataUnit.sortingProvider = this;
123755
+ this._dataUnit.addFilterProvider(this);
123685
123756
  }
123686
123757
  this._gridOptions = {
123687
123758
  localeText: gridTerms,
123688
- rowSelection: this._multipleSelection ? "multiple" : "single",
123759
+ rowSelection: this._multipleSelection ? 'multiple' : 'single',
123689
123760
  sortingOrder: ['desc', 'asc', null],
123690
123761
  blockLoadDebounceMillis: this.BLOCK_LOAD_DEBOUNCE,
123691
123762
  navigateToNextCell: this.navigateToNextCell.bind(this),
123692
- getRowNodeId: this._dataUnit ? (params) => typeof params === "string" ? params : params[this._idAttribName] : undefined,
123763
+ getRowNodeId: this._dataUnit ? params => (typeof params === 'string' ? params : params[this._idAttribName]) : undefined,
123693
123764
  getMainMenuItems: (params) => this.buildMenuItemOptions(params),
123765
+ postProcessPopup: (params) => this.setFilterColumnLeftPosition(params),
123694
123766
  getRowHeight: this.getRowHeight.bind(this),
123695
123767
  defaultColDef: {
123696
- headerClass: "ez-grid__cell-header",
123697
- cellClass: "ez-grid__cell-body"
123768
+ headerClass: 'ez-grid__cell-header',
123769
+ cellClass: 'ez-grid__cell-body',
123698
123770
  },
123699
123771
  components: {
123700
- 'ezGridHeaderComponent': SelectionHeader,
123701
- 'ezGridCustomHeader': EzGridCustomHeader,
123772
+ ezGridHeaderComponent: SelectionHeader,
123773
+ ezGridCustomHeader: EzGridCustomHeader,
123702
123774
  },
123703
123775
  context: {
123704
123776
  headerCheckStatusGetter: () => this.getSelectionHeaderStatus(),
123705
- headerCheckStatusSetter: (selectAll) => this.updateSelectionForAll(selectAll)
123706
- }
123777
+ headerCheckStatusSetter: (selectAll) => this.updateSelectionForAll(selectAll),
123778
+ },
123707
123779
  };
123708
123780
  this.defineRowModelType(this._gridOptions, options);
123709
123781
  this.setOptionsEvents(this._gridOptions);
@@ -123724,17 +123796,22 @@ class AgGridController {
123724
123796
  this._gridOptions.api.setHeaderHeight(this.getHeaderRowHeight());
123725
123797
  }
123726
123798
  }
123799
+ setFilterColumnLeftPosition(params) {
123800
+ if (params.type === 'columnMenu') {
123801
+ const ePopup = params.ePopup;
123802
+ const leftString = ePopup.style.left.replace('px', '');
123803
+ this._filterColumnleftPosition = `${calcFilterColumnLeftPosition(parseInt(leftString))}px`;
123804
+ return;
123805
+ }
123806
+ }
123727
123807
  buildMenuItemOptions(params) {
123728
123808
  const col = params.column;
123729
123809
  const items = [];
123730
123810
  if (col.getColDef().sortable) {
123731
123811
  items.push(this.buildMenuItemOptionSort(params, 'asc'));
123732
123812
  items.push(this.buildMenuItemOptionSort(params, 'desc'));
123813
+ items.push(this.buildMenuItemFilterColumn(params));
123733
123814
  }
123734
- /*
123735
- TODO: Adicionar quando filtro de colunar estiver finalizado.
123736
- items.push(this.buildMenuItemFilterColumn(params));
123737
- */
123738
123815
  this._menuItems.forEach(m => items.push({
123739
123816
  icon: m.icon,
123740
123817
  name: m.label,
@@ -123745,31 +123822,31 @@ class AgGridController {
123745
123822
  }
123746
123823
  buildMenuItemOptionSort(params, sortOrder) {
123747
123824
  return {
123748
- icon: `<div style="${sortOrder === "asc" ? 'transform: rotate(180deg); position: relative; top: -4px;' : ''}"><i class='ez-icon-arrow_downward'></i></div>`,
123749
- name: sortOrder === "asc" ? "Ordenar Ascendente" : "Ordenar Descendente",
123750
- action: () => this.sortDataByColumn(params, sortOrder)
123751
- };
123752
- }
123753
- /*
123754
- TODO: Voltar função quando for implementado o filtro de coluna
123755
- private buildMenuItemFilterColumn( _params: GetMainMenuItemsParams): MenuItemDef{
123756
- return {
123757
- icon: `<i class='ez-icon-filter'></i>`,
123758
- name: "Filtrar",
123759
- action: () => window.alert("Abrir popover de filtro")
123760
- }
123761
- }*/
123825
+ icon: `<i class='ez-icon-arrow_downward'></i>`,
123826
+ name: sortOrder === 'asc' ? 'Ordenar Ascendente' : 'Ordenar Descendente',
123827
+ action: () => this.sortDataByColumn(params, sortOrder),
123828
+ };
123829
+ }
123830
+ buildMenuItemFilterColumn(params) {
123831
+ const columnName = params.column.getId();
123832
+ const columnLabel = params.column.getColDef().headerName;
123833
+ return {
123834
+ icon: `<i class='ez-icon-filter'></i>`,
123835
+ name: 'Filtrar',
123836
+ action: () => this.showFilterColumn({ columnName, columnLabel, leftPosition: this._filterColumnleftPosition, filteredOptions: this._filteredColumns.get(columnName) }),
123837
+ };
123838
+ }
123762
123839
  buildMenuItemOptionPin(params) {
123763
123840
  const { column, columnApi } = params;
123764
123841
  const isPinned = params.column.isPinned();
123765
123842
  return {
123766
123843
  icon: `<i class='ez-icon-${isPinned ? 'un-pin' : 'push-pin'}'></i>`,
123767
- name: isPinned ? "Desafixar coluna" : "Fixar coluna",
123844
+ name: isPinned ? 'Desafixar coluna' : 'Fixar coluna',
123768
123845
  action: () => {
123769
123846
  columnApi.applyColumnState({
123770
123847
  state: [{ colId: column.getColId(), pinned: column.isPinned() ? null : 'left' }],
123771
123848
  });
123772
- }
123849
+ },
123773
123850
  };
123774
123851
  }
123775
123852
  sortDataByColumn(params, order) {
@@ -123821,9 +123898,9 @@ class AgGridController {
123821
123898
  (_h = this._dataUnit) === null || _h === void 0 ? void 0 : _h.nextRecord();
123822
123899
  }
123823
123900
  return params.nextCellPosition;
123824
- case "ArrowLeft":
123825
- case "ArrowRight":
123826
- if (((_j = params.nextCellPosition) === null || _j === void 0 ? void 0 : _j.column.colDef.headerName) !== "") {
123901
+ case 'ArrowLeft':
123902
+ case 'ArrowRight':
123903
+ if (((_j = params.nextCellPosition) === null || _j === void 0 ? void 0 : _j.column.colDef.headerName) !== '') {
123827
123904
  return params.nextCellPosition;
123828
123905
  }
123829
123906
  else {
@@ -123834,21 +123911,21 @@ class AgGridController {
123834
123911
  }
123835
123912
  defineRowModelType(opt, sourceOptions) {
123836
123913
  if (this._dataUnit != undefined) {
123837
- opt.rowModelType = "serverSide";
123914
+ opt.rowModelType = 'serverSide';
123838
123915
  opt.serverSideDatasource = new DataSource(this._dataUnit, this, sourceOptions);
123839
123916
  opt.serverSideSortOnServer = true;
123840
123917
  opt.columnDefs = this._colDefs;
123841
123918
  }
123842
123919
  }
123843
123920
  setOptionsEvents(opt) {
123844
- opt.onSortChanged = e => this.onCallStateChange("sort", e);
123845
- opt.onColumnResized = e => this.onCallStateChange("columnResize", e);
123846
- opt.onColumnPinned = e => this.onCallStateChange("columnPinned", e);
123847
- opt.onColumnMoved = e => this.onCallStateChange("columnMoved", e);
123848
- opt.onColumnVisible = e => this.onCallStateChange("visibleChange", e);
123921
+ opt.onSortChanged = e => this.onCallStateChange('sort', e);
123922
+ opt.onColumnResized = e => this.onCallStateChange('columnResize', e);
123923
+ opt.onColumnPinned = e => this.onCallStateChange('columnPinned', e);
123924
+ opt.onColumnMoved = e => this.onCallStateChange('columnMoved', e);
123925
+ opt.onColumnVisible = e => this.onCallStateChange('visibleChange', e);
123849
123926
  opt.onSelectionChanged = e => this.onSelectionChange(e);
123850
123927
  opt.onRowDoubleClicked = evt => this.onRowDoubleClick(evt);
123851
- opt.onDragStopped = evt => this.onCallStateChange("columnMovedEnd", evt);
123928
+ opt.onDragStopped = evt => this.onCallStateChange('columnMovedEnd', evt);
123852
123929
  }
123853
123930
  setOptionsSupress(opt) {
123854
123931
  opt.suppressDragLeaveHidesColumns = true;
@@ -123882,18 +123959,18 @@ class AgGridController {
123882
123959
  }
123883
123960
  setData(data) {
123884
123961
  if (this._grid === undefined) {
123885
- throw new Error("Erro interno: Grid ainda não inicializado.");
123962
+ throw new Error('Erro interno: Grid ainda não inicializado.');
123886
123963
  }
123887
123964
  this._gridOptions.api.setRowData(data);
123888
123965
  }
123889
123966
  addRows() {
123890
123967
  if (this._grid === undefined) {
123891
- throw new Error("Erro interno: Grid ainda não inicializado.");
123968
+ throw new Error('Erro interno: Grid ainda não inicializado.');
123892
123969
  }
123893
123970
  }
123894
123971
  updateRows() {
123895
123972
  if (this._grid === undefined) {
123896
- throw new Error("Erro interno: Grid ainda não inicializado.");
123973
+ throw new Error('Erro interno: Grid ainda não inicializado.');
123897
123974
  }
123898
123975
  }
123899
123976
  selectAll(quietly = false) {
@@ -123916,7 +123993,7 @@ class AgGridController {
123916
123993
  try {
123917
123994
  this._gridOptions.context.selectionChangeQuietly = quietly;
123918
123995
  if (this._grid === undefined) {
123919
- throw new Error("Erro interno: Grid ainda não inicializado.");
123996
+ throw new Error('Erro interno: Grid ainda não inicializado.');
123920
123997
  }
123921
123998
  let lastSelected;
123922
123999
  this._gridOptions.api.forEachNode(node => {
@@ -123948,13 +124025,13 @@ class AgGridController {
123948
124025
  }
123949
124026
  removeRows() {
123950
124027
  if (this._grid === undefined) {
123951
- throw new Error("Erro interno: Grid ainda não inicializado.");
124028
+ throw new Error('Erro interno: Grid ainda não inicializado.');
123952
124029
  }
123953
124030
  this._gridOptions.api.refreshServerSide({ purge: true });
123954
124031
  }
123955
124032
  changeValues(changes, rowIds) {
123956
124033
  if (this._grid === undefined) {
123957
- throw new Error("Erro interno: Grid ainda não inicializado.");
124034
+ throw new Error('Erro interno: Grid ainda não inicializado.');
123958
124035
  }
123959
124036
  if (changes) {
123960
124037
  let rowNodes;
@@ -123981,7 +124058,7 @@ class AgGridController {
123981
124058
  }
123982
124059
  refresh() {
123983
124060
  if (this._grid === undefined) {
123984
- throw new Error("Erro interno: Grid ainda não inicializado.");
124061
+ throw new Error('Erro interno: Grid ainda não inicializado.');
123985
124062
  }
123986
124063
  this._gridOptions.api.refreshServerSide({ purge: false });
123987
124064
  }
@@ -123999,17 +124076,19 @@ class AgGridController {
123999
124076
  }
124000
124077
  setFocusOnRow(rowIndex) {
124001
124078
  let displayedColumns = this._gridOptions.columnApi.getAllDisplayedColumns();
124002
- let firstCell = displayedColumns.find((column) => column.getColDef().headerName !== "");
124079
+ let firstCell = displayedColumns.find(column => column.getColDef().headerName !== '');
124003
124080
  this._gridOptions.api.ensureColumnVisible(firstCell);
124004
124081
  this._gridOptions.api.ensureIndexVisible(rowIndex);
124005
124082
  this._gridOptions.api.setFocusedCell(rowIndex, firstCell);
124006
124083
  }
124007
124084
  setColumnsDef(cols) {
124008
- const newColDefs = [Object.assign({ colId: this.CHECK_BOX_COL_ID, headerName: "", checkboxSelection: true, width: 29, suppressMovable: true, suppressAutoSize: true, suppressMenu: true, lockPosition: true, pinned: true }, this._multipleSelection && { headerComponent: "ezGridHeaderComponent", headerClass: "ag-column-select-header" })];
124085
+ const newColDefs = [
124086
+ Object.assign({ colId: this.CHECK_BOX_COL_ID, headerName: '', checkboxSelection: true, width: 29, suppressMovable: true, suppressAutoSize: true, suppressMenu: true, lockPosition: true, pinned: true }, (this._multipleSelection && { headerComponent: 'ezGridHeaderComponent', headerClass: 'ag-column-select-header' })),
124087
+ ];
124009
124088
  if (this._statusResolver != undefined) {
124010
124089
  newColDefs.push({
124011
124090
  colId: this.STATUS_COL_ID,
124012
- headerName: "",
124091
+ headerName: '',
124013
124092
  checkboxSelection: false,
124014
124093
  headerCheckboxSelection: false,
124015
124094
  width: 29,
@@ -124020,11 +124099,11 @@ class AgGridController {
124020
124099
  pinned: true,
124021
124100
  cellRenderer: CellRendererStatus,
124022
124101
  cellRendererParams: {
124023
- statusResolver: this._statusResolver
124102
+ statusResolver: this._statusResolver,
124024
124103
  },
124025
124104
  cellStyle: {
124026
- "text-align": "center"
124027
- }
124105
+ 'text-align': 'center',
124106
+ },
124028
124107
  });
124029
124108
  }
124030
124109
  cols.forEach(c => {
@@ -124037,25 +124116,27 @@ class AgGridController {
124037
124116
  }
124038
124117
  getColumnsDef() {
124039
124118
  if (this._grid === undefined) {
124040
- throw new Error("Erro interno: Grid ainda não inicializado.");
124119
+ throw new Error('Erro interno: Grid ainda não inicializado.');
124041
124120
  }
124042
124121
  const colDef = this._gridOptions.columnApi.getColumns();
124043
- return colDef.filter(c => ![this.CHECK_BOX_COL_ID, this.STATUS_COL_ID].includes(c.getColId())).map(c => {
124122
+ return colDef
124123
+ .filter(c => ![this.CHECK_BOX_COL_ID, this.STATUS_COL_ID].includes(c.getColId()))
124124
+ .map(c => {
124044
124125
  const def = c.getColDef();
124045
124126
  const colDef = { name: def.field, label: def.headerName };
124046
- this.conditionalSet(colDef, "sortable", def.sortable);
124047
- this.conditionalSet(colDef, "resizable", def.resizable);
124048
- this.conditionalSet(colDef, "sort", def.sort);
124049
- this.conditionalSet(colDef, "sortIndex", def.sortIndex);
124050
- this.conditionalSet(colDef, "width", def.width);
124051
- this.conditionalSet(colDef, "pinned", def.pinned !== null);
124052
- this.conditionalSet(colDef, "hidden", def.hide);
124127
+ this.conditionalSet(colDef, 'sortable', def.sortable);
124128
+ this.conditionalSet(colDef, 'resizable', def.resizable);
124129
+ this.conditionalSet(colDef, 'sort', def.sort);
124130
+ this.conditionalSet(colDef, 'sortIndex', def.sortIndex);
124131
+ this.conditionalSet(colDef, 'width', def.width);
124132
+ this.conditionalSet(colDef, 'pinned', def.pinned !== null);
124133
+ this.conditionalSet(colDef, 'hidden', def.hide);
124053
124134
  return colDef;
124054
124135
  });
124055
124136
  }
124056
124137
  setColumnsState(state) {
124057
124138
  if (this._grid === undefined) {
124058
- throw new Error("Erro interno: Grid ainda não inicializado.");
124139
+ throw new Error('Erro interno: Grid ainda não inicializado.');
124059
124140
  }
124060
124141
  const colDef = this._gridOptions.columnApi.getColumns();
124061
124142
  let columns = this.getColumnsDef();
@@ -124084,24 +124165,26 @@ class AgGridController {
124084
124165
  }
124085
124166
  getColumnsState() {
124086
124167
  if (this._grid === undefined) {
124087
- throw new Error("Erro interno: Grid ainda não inicializado.");
124168
+ throw new Error('Erro interno: Grid ainda não inicializado.');
124088
124169
  }
124089
124170
  const colState = this._gridOptions.columnApi.getColumnState();
124090
- return colState.map(s => {
124171
+ return colState
124172
+ .map(s => {
124091
124173
  const def = this._gridOptions.columnApi.getColumn(s.colId).getColDef();
124092
124174
  const label = def.headerName;
124093
- const name = def.checkboxSelection ? "__SELECTION__" : s.colId;
124175
+ const name = def.checkboxSelection ? '__SELECTION__' : s.colId;
124094
124176
  const colState = { label, name };
124095
- this.conditionalSet(colState, "sort", s.sort);
124096
- this.conditionalSet(colState, "sortIndex", s.sortIndex);
124097
- this.conditionalSet(colState, "width", s.width);
124098
- this.conditionalSet(colState, "pinned", s.pinned !== null);
124099
- this.conditionalSet(colState, "hidden", s.hide);
124177
+ this.conditionalSet(colState, 'sort', s.sort);
124178
+ this.conditionalSet(colState, 'sortIndex', s.sortIndex);
124179
+ this.conditionalSet(colState, 'width', s.width);
124180
+ this.conditionalSet(colState, 'pinned', s.pinned !== null);
124181
+ this.conditionalSet(colState, 'hidden', s.hide);
124100
124182
  const props = new Map();
124101
124183
  props.set('sortable', def.sortable);
124102
- this.conditionalSet(colState, "props", props);
124184
+ this.conditionalSet(colState, 'props', props);
124103
124185
  return colState;
124104
- }).filter(c => c.name !== "__SELECTION__" && c.name !== this.STATUS_COL_ID);
124186
+ })
124187
+ .filter(c => c.name !== '__SELECTION__' && c.name !== this.STATUS_COL_ID);
124105
124188
  }
124106
124189
  getSelection() {
124107
124190
  return this._gridOptions.api.getSelectedRows();
@@ -124119,7 +124202,7 @@ class AgGridController {
124119
124202
  fields: this._gridOptions.columnApi
124120
124203
  .getColumns()
124121
124204
  .filter(col => col.isVisible() && ![this.CHECK_BOX_COL_ID, this.STATUS_COL_ID, this.RECORD_ARCHIVE_COL_ID].includes(col.getColId()))
124122
- .map(col => col.getColId())
124205
+ .map(col => col.getColId()),
124123
124206
  };
124124
124207
  this._dataSource.quickFilter = quickFilter;
124125
124208
  }
@@ -124131,23 +124214,20 @@ class AgGridController {
124131
124214
  var _a;
124132
124215
  (_a = this._gridOptions.api.getDisplayedRowAtIndex(index)) === null || _a === void 0 ? void 0 : _a.setSelected(true);
124133
124216
  }
124134
- hasFilterColumn(_columnName) {
124135
- return false; //TODO: substituir pelo state dos filtros de colunas
124136
- }
124137
- showColumnFilter() {
124138
- /*
124139
- TODO: Implementar chamada para apresentar filtro de coluna na grid
124140
- */
124217
+ hasFilterColumn(columnName) {
124218
+ var _a;
124219
+ const filterOptions = (_a = this._filteredColumns.get(columnName)) !== null && _a !== void 0 ? _a : [];
124220
+ return filterOptions.map(item => item.check).includes(true);
124141
124221
  }
124142
124222
  buildColDef(source) {
124143
124223
  var _a, _b, _c;
124144
124224
  let tooltip = undefined;
124145
- const propSortable = StringUtils$1.getBooleanValue((_a = source.props) === null || _a === void 0 ? void 0 : _a.get("gridSortable"), true);
124146
- if ((_b = source.props) === null || _b === void 0 ? void 0 : _b.get("gridHeaderTooltip")) {
124147
- tooltip = (_c = source.props) === null || _c === void 0 ? void 0 : _c.get("gridHeaderTooltip");
124225
+ const propSortable = StringUtils$1.getBooleanValue((_a = source.props) === null || _a === void 0 ? void 0 : _a.get('gridSortable'), true);
124226
+ if ((_b = source.props) === null || _b === void 0 ? void 0 : _b.get('gridHeaderTooltip')) {
124227
+ tooltip = (_c = source.props) === null || _c === void 0 ? void 0 : _c.get('gridHeaderTooltip');
124148
124228
  }
124149
124229
  else if (propSortable === false) {
124150
- tooltip = "Coluna não pode ser ordenada";
124230
+ tooltip = 'Coluna não pode ser ordenada';
124151
124231
  }
124152
124232
  return {
124153
124233
  headerName: source.label,
@@ -124157,18 +124237,19 @@ class AgGridController {
124157
124237
  headerComponent: 'ezGridCustomHeader',
124158
124238
  headerComponentParams: {
124159
124239
  tooltip: tooltip,
124240
+ isSortable: propSortable,
124160
124241
  hasFilter: () => this.hasFilterColumn(source.name),
124161
- showColumnFilter: () => this.showColumnFilter()
124242
+ showColumnFilter: (leftPosition) => this.showFilterColumn({ columnName: source.name, columnLabel: source.label, leftPosition, filteredOptions: this._filteredColumns.get(source.name) }),
124162
124243
  },
124163
124244
  valueFormatter: params => {
124164
124245
  return this.getFormatterByColumn(params, source);
124165
124246
  },
124166
- cellStyle: this.getStyleByColumn(source)
124247
+ cellStyle: this.getStyleByColumn(source),
124167
124248
  };
124168
124249
  }
124169
124250
  getInitCellStyle() {
124170
124251
  return {
124171
- "line-height": (this.getRowHeight() - 1) + "px"
124252
+ 'line-height': this.getRowHeight() - 1 + 'px',
124172
124253
  };
124173
124254
  }
124174
124255
  getStyleByColumn(source) {
@@ -124176,32 +124257,34 @@ class AgGridController {
124176
124257
  switch (source === null || source === void 0 ? void 0 : source.userInterface) {
124177
124258
  case UserInterface.DECIMALNUMBER:
124178
124259
  case UserInterface.INTEGERNUMBER:
124179
- cellStyle["text-align"] = "right";
124260
+ cellStyle['text-align'] = 'right';
124180
124261
  break;
124181
124262
  case UserInterface.DATE:
124182
124263
  case UserInterface.DATETIME:
124183
124264
  case UserInterface.TIME:
124184
- cellStyle["text-align"] = "center";
124265
+ cellStyle['text-align'] = 'center';
124185
124266
  break;
124186
124267
  default:
124187
- cellStyle["text-align"] = "left";
124268
+ cellStyle['text-align'] = 'left';
124188
124269
  }
124189
124270
  return cellStyle;
124190
124271
  }
124191
124272
  getFormatterByColumn(params, source) {
124192
124273
  var _a;
124193
- if ((source === null || source === void 0 ? void 0 : source.userInterface) === "OPTIONSELECTOR" && source.options) {
124274
+ if ((source === null || source === void 0 ? void 0 : source.userInterface) === 'OPTIONSELECTOR' && source.options) {
124194
124275
  const prop = source === null || source === void 0 ? void 0 : source.options;
124195
124276
  let options;
124196
- if (typeof prop === "string") {
124277
+ if (typeof prop === 'string') {
124197
124278
  const parsed = JSON.parse(prop);
124198
- options = Object.keys(parsed).map(key => { return { value: key, label: parsed[key] }; });
124279
+ options = Object.keys(parsed).map(key => {
124280
+ return { value: key, label: parsed[key] };
124281
+ });
124199
124282
  }
124200
124283
  else {
124201
124284
  options = prop;
124202
124285
  }
124203
124286
  let optionSelected;
124204
- options.forEach((option) => {
124287
+ options.forEach(option => {
124205
124288
  if (option.value == params.value) {
124206
124289
  optionSelected = option;
124207
124290
  }
@@ -124209,16 +124292,16 @@ class AgGridController {
124209
124292
  return optionSelected === null || optionSelected === void 0 ? void 0 : optionSelected.label;
124210
124293
  }
124211
124294
  if ((source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.SWITCH) {
124212
- if ((params === null || params === void 0 ? void 0 : params.value) === "S" || (params === null || params === void 0 ? void 0 : params.value) === true || (params === null || params === void 0 ? void 0 : params.value) === "true") {
124213
- return "Sim";
124295
+ if ((params === null || params === void 0 ? void 0 : params.value) === 'S' || (params === null || params === void 0 ? void 0 : params.value) === true || (params === null || params === void 0 ? void 0 : params.value) === 'true') {
124296
+ return 'Sim';
124214
124297
  }
124215
- else if ((params === null || params === void 0 ? void 0 : params.value) === "N" || (params === null || params === void 0 ? void 0 : params.value) === false || (params === null || params === void 0 ? void 0 : params.value) === "false") {
124216
- return "Não";
124298
+ else if ((params === null || params === void 0 ? void 0 : params.value) === 'N' || (params === null || params === void 0 ? void 0 : params.value) === false || (params === null || params === void 0 ? void 0 : params.value) === 'false') {
124299
+ return 'Não';
124217
124300
  }
124218
124301
  }
124219
124302
  if ((source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.SEARCH) {
124220
124303
  if (((_a = params === null || params === void 0 ? void 0 : params.value) === null || _a === void 0 ? void 0 : _a.value) != undefined) {
124221
- return params.value.value + " - " + params.value.label;
124304
+ return params.value.value + ' - ' + params.value.label;
124222
124305
  }
124223
124306
  else {
124224
124307
  return params === null || params === void 0 ? void 0 : params.value;
@@ -124226,7 +124309,7 @@ class AgGridController {
124226
124309
  }
124227
124310
  if ((source === null || source === void 0 ? void 0 : source.userInterface) === UserInterface.DECIMALNUMBER) {
124228
124311
  if (params.value != undefined) {
124229
- const precision = Number(source.props.get("precision")) || 2;
124312
+ const precision = Number(source.props.get('precision')) || 2;
124230
124313
  return NumberUtils$1.format(params.value.toString(), precision, precision);
124231
124314
  }
124232
124315
  }
@@ -124237,7 +124320,7 @@ class AgGridController {
124237
124320
  }
124238
124321
  }
124239
124322
  onCallStateChange(type, e) {
124240
- const finished = !("finished" in e) || e["finished"];
124323
+ const finished = !('finished' in e) || e['finished'];
124241
124324
  if (finished && this._columnStateChangeCallback) {
124242
124325
  let info = {};
124243
124326
  let isUserChange = this.isUIEvent(e['source'], e['type']);
@@ -124250,10 +124333,10 @@ class AgGridController {
124250
124333
  }
124251
124334
  }
124252
124335
  isElementResize(e) {
124253
- return e["target"] && e["target"].getAttribute("ref") === "eResize";
124336
+ return e['target'] && e['target'].getAttribute('ref') === 'eResize';
124254
124337
  }
124255
124338
  isUIEvent(source, type) {
124256
- let optionsArr = ["uiColumnMoved", "uiColumnResized", "uiColumnDragged", "uiColumnExpanded", "uiColumnSorted"];
124339
+ let optionsArr = ['uiColumnMoved', 'uiColumnResized', 'uiColumnDragged', 'uiColumnExpanded', 'uiColumnSorted'];
124257
124340
  if (type === 'dragStopped') {
124258
124341
  return true;
124259
124342
  }
@@ -124271,14 +124354,14 @@ class AgGridController {
124271
124354
  const selectionInfo = this._dataUnit;
124272
124355
  this._selectionChangeCallback({
124273
124356
  selection: selectionInfo.records,
124274
- selectionHeaderStatus: this.getSelectionHeaderStatus()
124357
+ selectionHeaderStatus: this.getSelectionHeaderStatus(),
124275
124358
  });
124276
124359
  }
124277
124360
  else {
124278
124361
  this._dataUnit.updatePageSelection(this._gridOptions.api.getSelectedRows().map((r) => r.__record__id__)).then(selectionInfo => {
124279
124362
  this._selectionChangeCallback({
124280
124363
  selection: selectionInfo.records,
124281
- selectionHeaderStatus: this.getSelectionHeaderStatus()
124364
+ selectionHeaderStatus: this.getSelectionHeaderStatus(),
124282
124365
  });
124283
124366
  });
124284
124367
  }
@@ -124286,7 +124369,7 @@ class AgGridController {
124286
124369
  else {
124287
124370
  this._selectionChangeCallback({
124288
124371
  selection: this._gridOptions.api.getSelectedRows(),
124289
- selectionHeaderStatus: this.getSelectionHeaderStatus()
124372
+ selectionHeaderStatus: this.getSelectionHeaderStatus(),
124290
124373
  });
124291
124374
  }
124292
124375
  }, 0);
@@ -124314,7 +124397,7 @@ class AgGridController {
124314
124397
  if ((field === null || field === void 0 ? void 0 : field.userInterface) === UserInterface.SEARCH) {
124315
124398
  return this.DEFAULT_MAX_SIZE;
124316
124399
  }
124317
- const labelSize = ((((_b = field === null || field === void 0 ? void 0 : field.label) === null || _b === void 0 ? void 0 : _b.length) || 0) * this.DEFAULT_FONT_SIZE) + this.DEFAULT_ICON_SIZE;
124400
+ const labelSize = (((_b = field === null || field === void 0 ? void 0 : field.label) === null || _b === void 0 ? void 0 : _b.length) || 0) * this.DEFAULT_FONT_SIZE + this.DEFAULT_ICON_SIZE;
124318
124401
  return labelSize > this.DEFAULT_MAX_SIZE ? this.DEFAULT_MAX_SIZE : labelSize;
124319
124402
  }
124320
124403
  }
@@ -124347,8 +124430,9 @@ function getElementID(sufix) {
124347
124430
  };
124348
124431
  }
124349
124432
 
124350
- const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100%;--ez-grid__header--background-color:var(--background--xlight, #FFF);--ez-grid__selection-counter--z-index:var(--more-visible, 2);--ez-grid__container--shadow:0 0 16px 0 rgb(0 38 111 / 12%)}[no-header].sc-ez-grid-h{grid-template-rows:1fr auto}.grid-header.sc-ez-grid{display:flex;justify-content:space-between;align-items:center;background-color:var(--ez-grid__header--background-color, #FFF);z-index:var(--visible)}.grid__container.sc-ez-grid{padding-top:15px;margin-top:-12px;box-shadow:var(--ez-grid__container--shadow);background-color:var(--ez-grid__header--background-color)}.grid-header__container.sc-ez-grid{display:flex;align-items:center}.grid__selection-counter.sc-ez-grid{position:fixed;white-space:nowrap;transform:translate(-50%, 0px);left:50%;opacity:0;bottom:-100%;transition:opacity 0.1s, bottom 0.5s;z-index:var(--ez-grid__selection-counter--z-index)}.grid__selection-counter--opened.sc-ez-grid{opacity:1;bottom:0px}.grid__btn-close.sc-ez-grid{display:flex;align-items:center;justify-content:center;padding:0;outline:none;width:20px;height:20px;border:none;background-color:unset;cursor:pointer}.grid__btn-clear.sc-ez-grid{--ez-button--link-color:var(--color--alert-warning-900, #8C6B00);--ez-button--link--hover-color:var(--color--alert-warning-900, #8C6B00)}[no-header].sc-ez-grid-h .grid-header.sc-ez-grid{display:none}";
124433
+ const ezGridCss = ".sc-ez-grid-h{display:grid;grid-template-rows:auto 1fr auto;height:100%;width:100%;--ez-grid__header--background-color:var(--background--xlight, #FFF);--ez-grid__selection-counter--z-index:var(--more-visible, 2);--ez-grid__container--shadow:0 0 16px 0 rgb(0 38 111 / 12%)}[no-header].sc-ez-grid-h{grid-template-rows:1fr auto}.grid-header.sc-ez-grid{display:grid;justify-content:space-between;align-items:center;grid-template-columns:1fr;background-color:var(--ez-grid__header--background-color, #FFF);z-index:var(--visible)}.grid__container.sc-ez-grid{padding-top:15px;margin-top:-12px;box-shadow:var(--ez-grid__container--shadow);background-color:var(--ez-grid__header--background-color)}.grid-header__popover.sc-ez-grid{position:relative;top:var(--space--sm, 16px)}.grid-header__container.sc-ez-grid{display:flex;align-items:center}.grid-header__position.sc-ez-grid{display:flex;align-items:center;justify-content:space-between}.grid__selection-counter.sc-ez-grid{position:fixed;white-space:nowrap;transform:translate(-50%, 0px);left:50%;opacity:0;bottom:-100%;transition:opacity 0.1s, bottom 0.5s;z-index:var(--ez-grid__selection-counter--z-index)}.grid__selection-counter--opened.sc-ez-grid{opacity:1;bottom:0px}.grid__btn-close.sc-ez-grid{display:flex;align-items:center;justify-content:center;padding:0;outline:none;width:20px;height:20px;border:none;background-color:unset;cursor:pointer}.grid__btn-clear.sc-ez-grid{--ez-button--link-color:var(--color--alert-warning-900, #8C6B00);--ez-button--link--hover-color:var(--color--alert-warning-900, #8C6B00)}[no-header].sc-ez-grid-h .grid-header.sc-ez-grid{display:none}";
124351
124434
 
124435
+ const windowInstace$1 = window;
124352
124436
  const EzGrid$1 = class extends HTMLElement$1 {
124353
124437
  constructor() {
124354
124438
  super();
@@ -124359,6 +124443,8 @@ const EzGrid$1 = class extends HTMLElement$1 {
124359
124443
  this.configChange = createEvent(this, "configChange", 7);
124360
124444
  this.componentReady = createEvent(this, "componentReady", 7);
124361
124445
  this._gridController = new AgGridController(false);
124446
+ this.timeFadeOutInMs = 3000;
124447
+ this.toastMessageToUpdateFilterColumn = 'Filtro de coluna aplicado com sucesso!';
124362
124448
  this._paginationInfo = undefined;
124363
124449
  this._paginationChangedByKeyboard = true;
124364
124450
  this._showSelectionCounter = false;
@@ -124370,6 +124456,7 @@ const EzGrid$1 = class extends HTMLElement$1 {
124370
124456
  this.serverUrl = undefined;
124371
124457
  this.dataUnit = undefined;
124372
124458
  this.statusResolver = undefined;
124459
+ this.columnfilterDataSource = undefined;
124373
124460
  }
124374
124461
  /**
124375
124462
  * Aplica a definição de colunas.
@@ -124456,7 +124543,7 @@ const EzGrid$1 = class extends HTMLElement$1 {
124456
124543
  newConfigColumn['width'] = columnState.width;
124457
124544
  }
124458
124545
  if (columnState.sort) {
124459
- newConfigColumn['ascending'] = (columnState.sort.toUpperCase() === 'ASC');
124546
+ newConfigColumn['ascending'] = columnState.sort.toUpperCase() === 'ASC';
124460
124547
  newConfigColumn['orderIndex'] = columnState.sortIndex;
124461
124548
  }
124462
124549
  else {
@@ -124480,23 +124567,23 @@ const EzGrid$1 = class extends HTMLElement$1 {
124480
124567
  return;
124481
124568
  }
124482
124569
  const limitBottom = boundingContainer.bottom - 30;
124483
- this._gridSelectionCounter.style.bottom = (document.body.clientHeight - limitBottom) + 'px';
124570
+ this._gridSelectionCounter.style.bottom = document.body.clientHeight - limitBottom + 'px';
124484
124571
  }
124485
124572
  else {
124486
- this._gridSelectionCounter.style.bottom = "";
124573
+ this._gridSelectionCounter.style.bottom = '';
124487
124574
  }
124488
124575
  }
124489
124576
  setEvents() {
124490
- window.removeEventListener("scroll", this.positionSelectionCounter.bind(this));
124491
- window.addEventListener("scroll", this.positionSelectionCounter.bind(this));
124577
+ window.removeEventListener('scroll', this.positionSelectionCounter.bind(this));
124578
+ window.addEventListener('scroll', this.positionSelectionCounter.bind(this));
124492
124579
  }
124493
124580
  resizeSelectionCounter() {
124494
124581
  if (this._gridSelectionCounter == undefined) {
124495
124582
  return;
124496
124583
  }
124497
- this._gridSelectionCounter.style.width = "";
124584
+ this._gridSelectionCounter.style.width = '';
124498
124585
  if (this._gridSelectionCounter.clientHeight > 42) {
124499
- this._gridSelectionCounter.style.width = "min-content";
124586
+ this._gridSelectionCounter.style.width = 'min-content';
124500
124587
  }
124501
124588
  this.positionSelectionCounter();
124502
124589
  }
@@ -124555,8 +124642,8 @@ const EzGrid$1 = class extends HTMLElement$1 {
124555
124642
  buildDataElementId() {
124556
124643
  const dataInfo = { dataUnit: this.dataUnit };
124557
124644
  ElementIDUtils.addIDInfo(this._element, null, dataInfo);
124558
- const dtInfo = { id: "ezGrid" };
124559
- ElementIDUtils.addIDInfo(this._refPaginationControl, "pagination", dtInfo);
124645
+ const dtInfo = { id: 'ezGrid' };
124646
+ ElementIDUtils.addIDInfo(this._refPaginationControl, 'pagination', dtInfo);
124560
124647
  }
124561
124648
  previousPage() {
124562
124649
  if (this.dataUnit) {
@@ -124576,7 +124663,7 @@ const EzGrid$1 = class extends HTMLElement$1 {
124576
124663
  return [
124577
124664
  h("div", { class: "ez-text ez-text--primary ez-text--medium ez-margin-right--medium" }, h("strong", { class: "ez-text ez-text--primary ez-text--medium" }, `${firstRecord}-${lastRecord}`), ` de ${total}`),
124578
124665
  h("ez-button", { size: "small", iconName: "chevron-left", class: "ez-margin-right--medium", mode: "icon", enabled: currentPage > 0, onClick: () => this.previousPage(), label: "P\u00E1gina anterior" }),
124579
- h("ez-button", { size: "small", iconName: "chevron-right", class: "ez-margin-right--medium", mode: "icon", enabled: hasMore, onClick: () => this.nextPage(), label: "Pr\u00F3xima P\u00E1gina" })
124666
+ h("ez-button", { size: "small", iconName: "chevron-right", class: "ez-margin-right--medium", mode: "icon", enabled: hasMore, onClick: () => this.nextPage(), label: "Pr\u00F3xima P\u00E1gina" }),
124580
124667
  ];
124581
124668
  }
124582
124669
  return null;
@@ -124602,7 +124689,7 @@ const EzGrid$1 = class extends HTMLElement$1 {
124602
124689
  allowMultipleSelection: this.multipleSelection,
124603
124690
  serverURL: this.serverUrl,
124604
124691
  dataUnit: this.dataUnit,
124605
- statusResolver: this.statusResolver
124692
+ statusResolver: this.statusResolver,
124606
124693
  });
124607
124694
  if (this.config) {
124608
124695
  this.observeConfig(this.config);
@@ -124610,15 +124697,21 @@ const EzGrid$1 = class extends HTMLElement$1 {
124610
124697
  this.buildDataElementId();
124611
124698
  this.setEvents();
124612
124699
  this.componentReady.emit();
124700
+ this._gridController.configFilterColumn(this._filterColumn);
124613
124701
  }
124614
124702
  componentWillRender() {
124615
124703
  this.configSelectionCounter();
124616
124704
  }
124705
+ componentDidRender() {
124706
+ windowInstace$1.addEventListener('onSubmitFilter', () => {
124707
+ this.toastElementRef.show(this.toastMessageToUpdateFilterColumn, this.timeFadeOutInMs, true, true);
124708
+ });
124709
+ }
124617
124710
  render() {
124618
124711
  var _a;
124619
- return (h(Host, null, h("div", { class: "ez-box ez-box--shadow ez-padding--medium grid-header" }, h("div", { class: "grid-header__container" }, h("slot", { name: "leftButtons" })), h("div", { class: "grid-header__container", ref: ref => this._refPaginationControl = ref }, this.getPaginationControl())), h("div", { ref: (ref) => this._gridSelectionCounter = ref, class: `grid__selection-counter
124620
- ${this._showSelectionCounter ? "grid__selection-counter--opened" : ""}
124621
- ` }, h(SelectionCounter, { selectionCount: this._selectionCount, currentPageSelected: this._currentPageSelected, hasPagination: !!this._paginationInfo, total: (_a = this._paginationInfo) === null || _a === void 0 ? void 0 : _a.total, allRecordSelected: this._isAllSelection, onSelectAll: () => this.onSelectAllRecords(), onSelectPage: () => this.onSelectPageRecords(), onClearAll: () => this.onClearSelectedRecords(), onClose: () => this._showSelectionCounter = false })), h("div", { class: "grid__container ez-grid", ref: elem => this._container = elem }), h("div", { class: "grid__footer" }, h("slot", { name: "footer" }))));
124712
+ return (h(Host, null, h("div", { class: "ez-box ez-box--shadow ez-padding--medium grid-header" }, h("filter-column", { class: "grid-header__popover", dataSource: this.columnfilterDataSource, dataUnit: this.dataUnit, ref: (element) => (this._filterColumn = element) }), h("div", { class: "grid-header__position" }, h("div", { class: "grid-header__container" }, h("slot", { name: "leftButtons" })), h("div", { class: "grid-header__container", ref: ref => (this._refPaginationControl = ref) }, this.getPaginationControl()))), h("div", { ref: (ref) => (this._gridSelectionCounter = ref), class: `grid__selection-counter
124713
+ ${this._showSelectionCounter ? 'grid__selection-counter--opened' : ''}
124714
+ ` }, h(SelectionCounter, { selectionCount: this._selectionCount, currentPageSelected: this._currentPageSelected, hasPagination: !!this._paginationInfo, total: (_a = this._paginationInfo) === null || _a === void 0 ? void 0 : _a.total, allRecordSelected: this._isAllSelection, onSelectAll: () => this.onSelectAllRecords(), onSelectPage: () => this.onSelectPageRecords(), onClearAll: () => this.onClearSelectedRecords(), onClose: () => (this._showSelectionCounter = false) })), h("div", { class: "grid__container ez-grid", ref: elem => (this._container = elem) }), h("div", { class: "grid__footer" }, h("slot", { name: "footer" })), h("ez-toast", { ref: (element) => (this.toastElementRef = element) }, h("ez-icon", { slot: "icon", iconName: "check" }))));
124622
124715
  }
124623
124716
  static get assetsDirs() { return ["../assets"]; }
124624
124717
  get _element() { return this; }
@@ -124762,7 +124855,7 @@ const EzIcon$1 = class extends HTMLElement$1 {
124762
124855
  static get style() { return ezIconCss; }
124763
124856
  };
124764
124857
 
124765
- 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, \"Roboto\");--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-color:var(--color--primary-300, #E2F4EF);--ez-list__group--font-family:var(--font-pattern, \"Roboto\");--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, \"Roboto\");--ez-list__group-overlay--font-size:var(--text--medium, 14px);--ez-list__over--border--color:var(--color--primary, #008561);--ez-list__last-droppable-space--height:var(--space--small, 6px);--ez-list__draggable-list--padding-bottom:var(--space--small, 6px);--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>');--ez-list__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-list__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-list__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-list__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-list__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-list__scrollbar--width:var(--space--medium, 12px);max-height:100%;width:100%;background-color:#fff;display:flex;z-index:var(--ez-list__host--z-index)}p{margin:0}.draggable{width:100%;display:grid;grid-template-columns:minmax(0px, auto) minmax(0px, auto);place-items:center;border-top:1px dashed #fff;justify-content:space-between;font-family:var(--ez-list__item--font-family);font-size:var(--ez-list__item--font-size)}.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}.hover-feedback:hover{background-color:var(--background--medium);border-radius:var(--border--radius-regular)}.item-content{display:flex;overflow:hidden;justify-content:flex-start;align-items:center;width:100%}.draggable-list{padding:0;margin:0;width:100%;max-height:100%;scrollbar-width:thin;color:var(--text-color);scrollbar-color:var(--ez-list__scrollbar--color-clicked) var(--ez-list__scrollbar--color-background)}.draggable-list li{display:flex;height:32px;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)}.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{background-color:var(--ez-list__scrollbar--color-background);width:var(--ez-list__scrollbar--width);max-width:var(--ez-list__scrollbar--width);min-width:var(--ez-list__scrollbar--width)}.draggable-list::-webkit-scrollbar-track{background-color:var(--ez-list__scrollbar--color-background);border-radius:var(--ez-list__scrollbar--border-radius)}.draggable-list::-webkit-scrollbar-thumb{background-color:var(--ez-list__scrollbar--color-default);border-radius:var(--ez-list__scrollbar--border-radius)}.draggable-list::-webkit-scrollbar-thumb:vertical:hover,.draggable-list::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-list__scrollbar--color-hover)}.draggable-list::-webkit-scrollbar-thumb:vertical:active,.draggable-list::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-list__scrollbar--color-clicked)}.draggable-icon{align-items:flex-start;display:flex;outline:none;border:none;background-color:unset}.draggable-icon::after{content:'';display:flex;width:18px;height:18px;background-color:var(--ez-list__icon--color);-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%;scrollbar-width:thin;scrollbar-color:var(--ez-list__scrollbar--color-clicked) var(--ez-list__scrollbar--color-background)}.group-name{-webkit-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--title--primary);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{background-color:var(--ez-list__scrollbar--color-background);width:var(--ez-list__scrollbar--width);max-width:var(--ez-list__scrollbar--width);min-width:var(--ez-list__scrollbar--width)}.group-container::-webkit-scrollbar-track{background-color:var(--ez-list__scrollbar--color-background);border-radius:var(--ez-list__scrollbar--border-radius)}.group-container::-webkit-scrollbar-thumb{background-color:var(--ez-list__scrollbar--color-default);border-radius:var(--ez-list__scrollbar--border-radius)}.group-container::-webkit-scrollbar-thumb:vertical:hover,.group-container::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-list__scrollbar--color-hover)}.group-container::-webkit-scrollbar-thumb:vertical:active,.group-container::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-list__scrollbar--color-clicked)}.section-container{display:flex;position:relative;height:100%}.items-container{width:100%;max-height:100%;overflow-y:auto;outline:none;scrollbar-width:thin;scrollbar-color:var(--ez-list__scrollbar--color-clicked) var(--ez-list__scrollbar--color-background)}.group-items-container{width:100%;max-height:100%;height:100%;outline:none}.items-container::-webkit-scrollbar{background-color:var(--ez-list__scrollbar--color-background);width:var(--ez-list__scrollbar--width);max-width:var(--ez-list__scrollbar--width);min-width:var(--ez-list__scrollbar--width)}.items-container::-webkit-scrollbar-track{background-color:var(--ez-list__scrollbar--color-background);border-radius:var(--ez-list__scrollbar--border-radius)}.items-container::-webkit-scrollbar-thumb{background-color:var(--ez-list__scrollbar--color-default);border-radius:var(--ez-list__scrollbar--border-radius)}.items-container::-webkit-scrollbar-thumb:vertical:hover,.items-container::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-list__scrollbar--color-hover)}.items-container::-webkit-scrollbar-thumb:vertical:active,.items-container::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-list__scrollbar--color-clicked)}.group-overlay{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;font-family:var(--ez-list__group-overlay--font-family);font-size:var(--ez-list__group-overlay--font-size)}.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-color);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}";
124858
+ 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, \"Roboto\");--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-color:var(--color--primary-300, #E2F4EF);--ez-list__group--font-family:var(--font-pattern, \"Roboto\");--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, \"Roboto\");--ez-list__group-overlay--font-size:var(--text--medium, 14px);--ez-list__over--border--color:var(--color--primary, #008561);--ez-list__last-droppable-space--height:var(--space--small, 6px);--ez-list__draggable-list--padding-bottom:var(--space--small, 6px);--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>');--ez-list__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-list__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-list__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-list__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-list__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-list__scrollbar--width:var(--space--medium, 12px);max-height:100%;width:100%;background-color:#fff;display:flex;z-index:var(--ez-list__host--z-index)}p{margin:0}.draggable{width:100%;display:grid;grid-template-columns:minmax(0px, auto) minmax(0px, auto);place-items:center;border-top:1px dashed #fff;justify-content:space-between;font-family:var(--ez-list__item--font-family);font-size:var(--ez-list__item--font-size)}.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}.hover-feedback:hover{background-color:var(--background--medium);border-radius:var(--border--radius-regular)}.item-content{display:flex;overflow:hidden;justify-content:flex-start;align-items:center;width:100%}.draggable-list{padding:0;margin:0;width:100%;max-height:100%;scrollbar-width:thin;color:var(--text-color);scrollbar-color:var(--ez-list__scrollbar--color-clicked) var(--ez-list__scrollbar--color-background)}.draggable-list li{display:flex;height:32px;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)}.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{background-color:var(--ez-list__scrollbar--color-background);width:var(--ez-list__scrollbar--width);max-width:var(--ez-list__scrollbar--width);min-width:var(--ez-list__scrollbar--width)}.draggable-list::-webkit-scrollbar-track{background-color:var(--ez-list__scrollbar--color-background);border-radius:var(--ez-list__scrollbar--border-radius)}.draggable-list::-webkit-scrollbar-thumb{background-color:var(--ez-list__scrollbar--color-default);border-radius:var(--ez-list__scrollbar--border-radius)}.draggable-list::-webkit-scrollbar-thumb:vertical:hover,.draggable-list::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-list__scrollbar--color-hover)}.draggable-list::-webkit-scrollbar-thumb:vertical:active,.draggable-list::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-list__scrollbar--color-clicked)}.draggable-icon{align-items:flex-start;display:flex;outline:none;border:none;background-color:unset}.draggable-icon::after{content:'';display:flex;width:18px;height:18px;background-color:var(--ez-list__icon--color);-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%;scrollbar-width:thin;scrollbar-color:var(--ez-list__scrollbar--color-clicked) var(--ez-list__scrollbar--color-background)}.group-name{-webkit-user-select:none;-moz-user-select:-moz-none;-ms-user-select:none;user-select:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--title--primary);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{background-color:var(--ez-list__scrollbar--color-background);width:var(--ez-list__scrollbar--width);max-width:var(--ez-list__scrollbar--width);min-width:var(--ez-list__scrollbar--width)}.group-container::-webkit-scrollbar-track{background-color:var(--ez-list__scrollbar--color-background);border-radius:var(--ez-list__scrollbar--border-radius)}.group-container::-webkit-scrollbar-thumb{background-color:var(--ez-list__scrollbar--color-default);border-radius:var(--ez-list__scrollbar--border-radius)}.group-container::-webkit-scrollbar-thumb:vertical:hover,.group-container::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-list__scrollbar--color-hover)}.group-container::-webkit-scrollbar-thumb:vertical:active,.group-container::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-list__scrollbar--color-clicked)}.section-container{display:flex;position:relative;height:100%}.items-container{width:100%;max-height:100%;outline:none;scrollbar-width:thin;scrollbar-color:var(--ez-list__scrollbar--color-clicked) var(--ez-list__scrollbar--color-background)}.group-items-container{width:100%;max-height:100%;height:100%;outline:none}.items-container::-webkit-scrollbar{background-color:var(--ez-list__scrollbar--color-background);width:var(--ez-list__scrollbar--width);max-width:var(--ez-list__scrollbar--width);min-width:var(--ez-list__scrollbar--width)}.items-container::-webkit-scrollbar-track{background-color:var(--ez-list__scrollbar--color-background);border-radius:var(--ez-list__scrollbar--border-radius)}.items-container::-webkit-scrollbar-thumb{background-color:var(--ez-list__scrollbar--color-default);border-radius:var(--ez-list__scrollbar--border-radius)}.items-container::-webkit-scrollbar-thumb:vertical:hover,.items-container::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-list__scrollbar--color-hover)}.items-container::-webkit-scrollbar-thumb:vertical:active,.items-container::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-list__scrollbar--color-clicked)}.group-overlay{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;font-family:var(--ez-list__group-overlay--font-family);font-size:var(--ez-list__group-overlay--font-size)}.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-color);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}";
124766
124859
 
124767
124860
  const EzList$1 = class extends HTMLElement$1 {
124768
124861
  constructor() {
@@ -124776,7 +124869,7 @@ const EzList$1 = class extends HTMLElement$1 {
124776
124869
  this._listItems = [];
124777
124870
  this._listGroupItems = [];
124778
124871
  this.dataSource = [];
124779
- this.listMode = "regular";
124872
+ this.listMode = 'regular';
124780
124873
  this.useGroups = false;
124781
124874
  this.ezDraggable = false;
124782
124875
  this.ezSelectable = false;
@@ -124794,10 +124887,10 @@ const EzList$1 = class extends HTMLElement$1 {
124794
124887
  */
124795
124888
  async scrollToTop() {
124796
124889
  if (this.useGroups) {
124797
- this._element.shadowRoot.querySelector(".group-container").scrollTop = 0;
124890
+ this._element.shadowRoot.querySelector('.group-container').scrollTop = 0;
124798
124891
  }
124799
124892
  else {
124800
- this._element.shadowRoot.querySelector(".items-container").scrollTop = 0;
124893
+ this._element.shadowRoot.querySelector('.items-container').scrollTop = 0;
124801
124894
  }
124802
124895
  }
124803
124896
  /**
@@ -124833,9 +124926,9 @@ const EzList$1 = class extends HTMLElement$1 {
124833
124926
  this._listItems = newList;
124834
124927
  }
124835
124928
  if (scrollToOption) {
124836
- let liElem = this.useGroups ?
124837
- this._groupContainer.querySelector("li#item_" + this.getItemId(selectedItem.label))
124838
- : this._itemContainer.querySelector("li#item_" + this.getItemId(selectedItem.label));
124929
+ let liElem = this.useGroups
124930
+ ? this._groupContainer.querySelector('li#item_' + this.getItemId(selectedItem.label))
124931
+ : this._itemContainer.querySelector('li#item_' + this.getItemId(selectedItem.label));
124839
124932
  if (liElem) {
124840
124933
  liElem.scrollIntoView();
124841
124934
  }
@@ -124852,7 +124945,7 @@ const EzList$1 = class extends HTMLElement$1 {
124852
124945
  let selectedItem;
124853
124946
  if (this.useGroups) {
124854
124947
  this._listGroupItems.every(group => {
124855
- let item = group.items.find((item) => item.selected == true);
124948
+ let item = group.items.find(item => item.selected == true);
124856
124949
  if (item) {
124857
124950
  selectedItem = item;
124858
124951
  return false;
@@ -124861,7 +124954,7 @@ const EzList$1 = class extends HTMLElement$1 {
124861
124954
  });
124862
124955
  }
124863
124956
  else {
124864
- selectedItem = this._listItems.find((item) => item.selected == true);
124957
+ selectedItem = this._listItems.find(item => item.selected == true);
124865
124958
  }
124866
124959
  return selectedItem;
124867
124960
  }
@@ -124891,7 +124984,7 @@ const EzList$1 = class extends HTMLElement$1 {
124891
124984
  itemGroup.items.sort(function (a, b) {
124892
124985
  return a.label < b.label ? -1 : a.label > b.label ? 1 : 0;
124893
124986
  });
124894
- if (itemGroup.sort === "DSC") {
124987
+ if (itemGroup.sort === 'DSC') {
124895
124988
  itemGroup.items.reverse();
124896
124989
  }
124897
124990
  }
@@ -124916,19 +125009,19 @@ const EzList$1 = class extends HTMLElement$1 {
124916
125009
  }
124917
125010
  buildIdDraggableListAndSelectable() {
124918
125011
  const shadow = this._element.shadowRoot;
124919
- const draggableList = shadow.querySelectorAll(".draggable-list");
125012
+ const draggableList = shadow.querySelectorAll('.draggable-list');
124920
125013
  draggableList === null || draggableList === void 0 ? void 0 : draggableList.forEach((draggable, index) => {
124921
125014
  var _a, _b;
124922
- let suffix = "draggableList";
125015
+ let suffix = 'draggableList';
124923
125016
  const group = (_b = (_a = this._listGroupItems) === null || _a === void 0 ? void 0 : _a[index]) === null || _b === void 0 ? void 0 : _b.group;
124924
125017
  if (this.useGroups && group) {
124925
125018
  suffix = suffix.concat('_', group);
124926
125019
  }
124927
125020
  ElementIDUtils.addIDInfoIfNotExists(draggable, suffix);
124928
125021
  });
124929
- const selectable = shadow.querySelectorAll(".selectable-container");
125022
+ const selectable = shadow.querySelectorAll('.selectable-container');
124930
125023
  selectable === null || selectable === void 0 ? void 0 : selectable.forEach((item) => {
124931
- ElementIDUtils.addIDInfoIfNotExists(item, "selectable");
125024
+ ElementIDUtils.addIDInfoIfNotExists(item, 'selectable');
124932
125025
  });
124933
125026
  }
124934
125027
  componentWillLoad() {
@@ -124955,15 +125048,17 @@ const EzList$1 = class extends HTMLElement$1 {
124955
125048
  //Adiciona item arrastado
124956
125049
  if (groupEnd.sort) {
124957
125050
  newList.find(group => group.group == dragEndItem.groupName).items.push(this._dragStartItem.item);
124958
- newList.find(group => group.group == dragEndItem.groupName).items.sort(function (a, b) {
125051
+ newList
125052
+ .find(group => group.group == dragEndItem.groupName)
125053
+ .items.sort(function (a, b) {
124959
125054
  return a.label < b.label ? -1 : a.label > b.label ? 1 : 0;
124960
125055
  });
124961
- if (groupEnd.sort === "DSC") {
125056
+ if (groupEnd.sort === 'DSC') {
124962
125057
  newList.find(group => group.group == dragEndItem.groupName).items.reverse();
124963
125058
  }
124964
125059
  }
124965
125060
  else {
124966
- let indexForAdd = (dragEndItem.index > this._dragStartItem.index) ? dragEndItem.index - 1 : dragEndItem.index;
125061
+ let indexForAdd = dragEndItem.index > this._dragStartItem.index ? dragEndItem.index - 1 : dragEndItem.index;
124967
125062
  newList.find(group => group.group == dragEndItem.groupName).items.splice(indexForAdd, 0, this._dragStartItem.item);
124968
125063
  }
124969
125064
  this._listGroupItems = newList;
@@ -124992,10 +125087,12 @@ const EzList$1 = class extends HTMLElement$1 {
124992
125087
  //Adiciona item arrastado
124993
125088
  newList.find(group => group.group == groupDropped.group).items.push(this._dragStartItem.item);
124994
125089
  if (groupEnd.sort) {
124995
- newList.find(group => group.group == groupDropped.group).items.sort(function (a, b) {
125090
+ newList
125091
+ .find(group => group.group == groupDropped.group)
125092
+ .items.sort(function (a, b) {
124996
125093
  return a.label < b.label ? -1 : a.label > b.label ? 1 : 0;
124997
125094
  });
124998
- if (groupEnd.sort === "DSC") {
125095
+ if (groupEnd.sort === 'DSC') {
124999
125096
  newList.find(group => group.group == groupDropped.group).items.reverse();
125000
125097
  }
125001
125098
  }
@@ -125058,23 +125155,23 @@ const EzList$1 = class extends HTMLElement$1 {
125058
125155
  }
125059
125156
  }
125060
125157
  addOverClass(element) {
125061
- if ((element === null || element === void 0 ? void 0 : element.__proto__) == HTMLDivElement.prototype && element.classList.contains("draggable")) {
125062
- element.classList.add("over");
125158
+ if ((element === null || element === void 0 ? void 0 : element.__proto__) == HTMLDivElement.prototype && element.classList.contains('draggable')) {
125159
+ element.classList.add('over');
125063
125160
  }
125064
- else if ((element === null || element === void 0 ? void 0 : element.parentElement) && !element.parentElement.classList.contains("draggable-list")) {
125161
+ else if ((element === null || element === void 0 ? void 0 : element.parentElement) && !element.parentElement.classList.contains('draggable-list')) {
125065
125162
  this.addOverClass(element.parentElement);
125066
125163
  }
125067
125164
  }
125068
125165
  addOverGroupClass(ev, group) {
125069
125166
  if (ev.target) {
125070
- let groupContainer = this._groupContainer.querySelector("div#" + this.getDivGroupId(group.group));
125071
- let groupOverlay = groupContainer.getElementsByClassName("group-overlay")[0];
125167
+ let groupContainer = this._groupContainer.querySelector('div#' + this.getDivGroupId(group.group));
125168
+ let groupOverlay = groupContainer.getElementsByClassName('group-overlay')[0];
125072
125169
  if (group.items.length > 0) {
125073
- groupOverlay.setAttribute("style", "display:grid");
125170
+ groupOverlay.setAttribute('style', 'display:grid');
125074
125171
  }
125075
125172
  else {
125076
- groupOverlay.classList.add("presetedHeight");
125077
- groupOverlay.setAttribute("style", "display:grid");
125173
+ groupOverlay.classList.add('presetedHeight');
125174
+ groupOverlay.setAttribute('style', 'display:grid');
125078
125175
  groupOverlay.scrollIntoView(false);
125079
125176
  }
125080
125177
  }
@@ -125084,31 +125181,31 @@ const EzList$1 = class extends HTMLElement$1 {
125084
125181
  let overCollection;
125085
125182
  let overLastDroppableCollection;
125086
125183
  if (this.useGroups) {
125087
- overCollection = (_a = this._groupContainer) === null || _a === void 0 ? void 0 : _a.getElementsByClassName("over");
125088
- overLastDroppableCollection = this._groupContainer.getElementsByClassName("last-droppable-space");
125184
+ overCollection = (_a = this._groupContainer) === null || _a === void 0 ? void 0 : _a.getElementsByClassName('over');
125185
+ overLastDroppableCollection = this._groupContainer.getElementsByClassName('last-droppable-space');
125089
125186
  }
125090
125187
  else {
125091
- overCollection = (_b = this._itemContainer) === null || _b === void 0 ? void 0 : _b.getElementsByClassName("over");
125092
- overLastDroppableCollection = this._itemContainer.getElementsByClassName("last-droppable-space");
125188
+ overCollection = (_b = this._itemContainer) === null || _b === void 0 ? void 0 : _b.getElementsByClassName('over');
125189
+ overLastDroppableCollection = this._itemContainer.getElementsByClassName('last-droppable-space');
125093
125190
  }
125094
125191
  if (overCollection) {
125095
125192
  Array.from(overCollection).forEach(function (element) {
125096
- element.classList.remove("over");
125193
+ element.classList.remove('over');
125097
125194
  });
125098
125195
  }
125099
125196
  if (overLastDroppableCollection) {
125100
125197
  Array.from(overLastDroppableCollection).forEach(function (element) {
125101
- element.classList.remove("over");
125198
+ element.classList.remove('over');
125102
125199
  });
125103
125200
  }
125104
125201
  }
125105
125202
  removeOverGroupClass(ev, group) {
125106
125203
  if (ev.target) {
125107
- let groupContainer = this._groupContainer.querySelector("div#" + this.getDivGroupId(group.group));
125108
- let groupOverlay = groupContainer.getElementsByClassName("group-overlay")[0];
125204
+ let groupContainer = this._groupContainer.querySelector('div#' + this.getDivGroupId(group.group));
125205
+ let groupOverlay = groupContainer.getElementsByClassName('group-overlay')[0];
125109
125206
  if (groupOverlay) {
125110
- groupOverlay.classList.remove("presetedHeight");
125111
- groupOverlay.setAttribute("style", "display:none");
125207
+ groupOverlay.classList.remove('presetedHeight');
125208
+ groupOverlay.setAttribute('style', 'display:none');
125112
125209
  }
125113
125210
  }
125114
125211
  }
@@ -125173,7 +125270,7 @@ const EzList$1 = class extends HTMLElement$1 {
125173
125270
  let itemIndex = group.items.findIndex(item => item.label == selectedItem.label);
125174
125271
  if (itemIndex != undefined && itemIndex != -1) {
125175
125272
  if (itemIndex === 0) {
125176
- if ((groupIndex - 1 >= 0)) {
125273
+ if (groupIndex - 1 >= 0) {
125177
125274
  item = { label: listGroupItems[groupIndex - 1].items[listGroupItems[groupIndex - 1].items.length - 1].label };
125178
125275
  }
125179
125276
  }
@@ -125201,10 +125298,10 @@ const EzList$1 = class extends HTMLElement$1 {
125201
125298
  this.getSelection().then(selectedItem => {
125202
125299
  if (selectedItem) {
125203
125300
  switch (event.key) {
125204
- case "ArrowDown":
125301
+ case 'ArrowDown':
125205
125302
  this.nextOption(selectedItem);
125206
125303
  break;
125207
- case "ArrowUp":
125304
+ case 'ArrowUp':
125208
125305
  this.previousOption(selectedItem);
125209
125306
  break;
125210
125307
  }
@@ -125217,19 +125314,19 @@ const EzList$1 = class extends HTMLElement$1 {
125217
125314
  }
125218
125315
  getItemId(itemLabel) {
125219
125316
  if (itemLabel) {
125220
- return itemLabel.replace(/[^a-z0-9_]/gi, "_");
125317
+ return itemLabel.replace(/[^a-z0-9_]/gi, '_');
125221
125318
  }
125222
125319
  return undefined;
125223
125320
  }
125224
125321
  getDivGroupId(groupName) {
125225
125322
  if (groupName) {
125226
- return "group-" + groupName.replace(/[^a-z0-9_]/gi, "_");
125323
+ return 'group-' + groupName.replace(/[^a-z0-9_]/gi, '_');
125227
125324
  }
125228
125325
  return undefined;
125229
125326
  }
125230
125327
  getGroupOverlayId(groupName) {
125231
125328
  if (groupName) {
125232
- return "group-overlay-" + groupName.replace(/[^a-z0-9_]/gi, "_");
125329
+ return 'group-overlay-' + groupName.replace(/[^a-z0-9_]/gi, '_');
125233
125330
  }
125234
125331
  return undefined;
125235
125332
  }
@@ -125249,26 +125346,26 @@ const EzList$1 = class extends HTMLElement$1 {
125249
125346
  onDragOverLastIndex(ev) {
125250
125347
  ev.preventDefault();
125251
125348
  if (this._dragStartItem) {
125252
- ev.target.classList.add("over");
125349
+ ev.target.classList.add('over');
125253
125350
  ev.stopPropagation();
125254
125351
  }
125255
125352
  }
125256
125353
  showOverlays(groupDragStart) {
125257
- let groupOverlayCollection = this._groupContainer.getElementsByClassName("group-overlay");
125354
+ let groupOverlayCollection = this._groupContainer.getElementsByClassName('group-overlay');
125258
125355
  Array.from(groupOverlayCollection).forEach(groupOverlay => {
125259
125356
  let groupOverlayID = this.getGroupOverlayId(groupDragStart.group);
125260
- if (groupOverlayID && groupOverlay.getAttribute("id") && groupOverlayID != groupOverlay.getAttribute("id")) {
125261
- groupOverlay.classList.add("presetedHeight");
125262
- groupOverlay.setAttribute("style", "display:grid");
125357
+ if (groupOverlayID && groupOverlay.getAttribute('id') && groupOverlayID != groupOverlay.getAttribute('id')) {
125358
+ groupOverlay.classList.add('presetedHeight');
125359
+ groupOverlay.setAttribute('style', 'display:grid');
125263
125360
  }
125264
125361
  });
125265
125362
  }
125266
125363
  hideOverlays() {
125267
125364
  var _a;
125268
- let groupOverlayCollection = (_a = this._groupContainer) === null || _a === void 0 ? void 0 : _a.getElementsByClassName("group-overlay");
125365
+ let groupOverlayCollection = (_a = this._groupContainer) === null || _a === void 0 ? void 0 : _a.getElementsByClassName('group-overlay');
125269
125366
  Array.from(groupOverlayCollection).forEach(groupOverlay => {
125270
- groupOverlay.classList.remove("presetedHeight");
125271
- groupOverlay.setAttribute("style", "display:none");
125367
+ groupOverlay.classList.remove('presetedHeight');
125368
+ groupOverlay.setAttribute('style', 'display:none');
125272
125369
  });
125273
125370
  }
125274
125371
  getContainerItemBuilder(item, group, className) {
@@ -125279,30 +125376,39 @@ const EzList$1 = class extends HTMLElement$1 {
125279
125376
  if (customContent == undefined) {
125280
125377
  return;
125281
125378
  }
125282
- if (typeof customContent !== "string") {
125283
- return (h("div", { class: className }, customContent));
125379
+ if (typeof customContent !== 'string') {
125380
+ return h("div", { class: className }, customContent);
125284
125381
  }
125285
- return (h("div", { class: className, innerHTML: customContent }));
125382
+ return h("div", { class: className, innerHTML: customContent });
125286
125383
  }
125287
125384
  render() {
125288
- return (h(Host, { ref: (el) => this._element = el }, this.useGroups ?
125289
- h("div", { class: "group-container", ref: (el) => this._groupContainer = el, tabIndex: 0, onKeyDown: (event) => { this.keyDownHandler(event); } }, this._listGroupItems.map(group => {
125290
- 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", title: group.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) => (h("li", Object.assign({ id: "item_" + this.getItemId(item.label), class: {
125291
- "selectable-container": this.ezSelectable,
125292
- "hover-feedback": this.hoverFeedback
125293
- }, key: "item_" + this.getItemId(item.label) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: ElementIDUtils.getInternalIDInfo(`ezListItem__${StringUtils$1.replaceAccentuatedChars(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, this.listMode === "regular" ?
125294
- h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label) :
125295
- h("ez-check", { label: item.label, value: item.check, onEzChange: (evt) => this.ezCheckChange.emit({ id: item.id, label: item.label, check: evt.detail }) })), this.itemSlotBuilder ? this.getContainerItemBuilder(item, group, "slot-item") : undefined))))), 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 ?
125296
- h("div", { id: this.getGroupOverlayId(group.group), class: "group-overlay" }, "Mover para ", group.group)
125297
- : undefined));
125298
- }))
125299
- :
125300
- 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) => (h("li", Object.assign({ id: "item_" + this.getItemId(item.label), class: {
125301
- "selectable-container": this.ezSelectable,
125302
- "hover-feedback": this.hoverFeedback
125303
- }, key: "item_" + this.getItemId(item.label) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: ElementIDUtils.getInternalIDInfo(`ezListItem__${StringUtils$1.replaceAccentuatedChars(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.listMode === "regular" ?
125304
- h(Fragment, null, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label)) :
125305
- h(Fragment, null, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("ez-check", { label: item.label, value: item.check, onEzChange: (evt) => this.ezCheckChange.emit({ id: item.id, label: item.label, check: evt.detail }) }))), this.itemSlotBuilder ? this.getContainerItemBuilder(item) : undefined)))), h("div", { class: "last-droppable-space", onDragLeave: () => this.removeOverClass(), onDragOver: (event) => { this.onDragOverLastIndex(event); }, onDragEnd: () => this.onDragEnd(), onDrop: (event) => this.onDropLastIndex(event) })))));
125385
+ return (h(Host, { ref: el => (this._element = el) }, this.useGroups ? (h("div", { class: "group-container", ref: el => (this._groupContainer = el), tabIndex: 0, onKeyDown: event => {
125386
+ this.keyDownHandler(event);
125387
+ } }, this._listGroupItems.map(group => {
125388
+ 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", title: group.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) => (h("li", Object.assign({ id: 'item_' + this.getItemId(item.label), class: {
125389
+ 'selectable-container': this.ezSelectable,
125390
+ 'hover-feedback': this.hoverFeedback,
125391
+ }, key: 'item_' + this.getItemId(item.label) }, {
125392
+ [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: ElementIDUtils.getInternalIDInfo(`ezListItem__${StringUtils$1.replaceAccentuatedChars(item.label)}`),
125393
+ }), h("div", { class: 'draggable' + (item.selected == true ? ' selected-item ' : '') + (this.ezSelectable == true ? ' selectable ' : ''), onClick: () => {
125394
+ this.setSelection(item);
125395
+ }, onDragLeave: () => {
125396
+ group.sort ? undefined : this.removeOverClass();
125397
+ }, onDragEnd: () => this.onDragEnd(), onDragStart: () => this.onDragStart(item, group, index), onDragOver: event => {
125398
+ group.sort ? undefined : this.onDragOverItem(event);
125399
+ }, 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, this.listMode === 'regular' ? (h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label)) : (h("ez-check", { label: item.label, value: item.check, onEzChange: evt => this.ezCheckChange.emit({ id: item.id, label: item.label, check: evt.detail }) }))), this.itemSlotBuilder ? this.getContainerItemBuilder(item, group, 'slot-item') : undefined))))), h("div", { class: "last-droppable-space", onDragLeave: () => this.removeOverClass(), onDragOver: event => {
125400
+ this.onDragOverLastIndex(event);
125401
+ }, onDragEnd: () => this.onDragEnd(), onDrop: event => this.onDropLastIndex(event, group) })), group.sort ? (h("div", { id: this.getGroupOverlayId(group.group), class: "group-overlay" }, "Mover para ", group.group)) : undefined)));
125402
+ }))) : (h("div", { class: "items-container", ref: el => (this._itemContainer = el), tabIndex: 0, onKeyDown: event => {
125403
+ this.keyDownHandler(event);
125404
+ } }, h("div", { class: "draggable-list" }, this._listItems.map((item, index) => (h("li", Object.assign({ id: 'item_' + this.getItemId(item.label), class: {
125405
+ 'selectable-container': this.ezSelectable,
125406
+ 'hover-feedback': this.hoverFeedback,
125407
+ }, key: 'item_' + this.getItemId(item.label) }, { [ElementIDUtils.DATA_ELEMENT_ID_ATTRIBUTE_NAME]: ElementIDUtils.getInternalIDInfo(`ezListItem__${StringUtils$1.replaceAccentuatedChars(item.label)}`) }), h("div", { class: 'draggable' + (item.selected == true ? ' selected-item ' : '') + (this.ezSelectable == true ? ' selectable ' : ''), onDragStart: () => this.onDragStart({ item: item, index: index }), onClick: () => {
125408
+ this.setSelection(item);
125409
+ }, 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.listMode === 'regular' ? (h(Fragment, null, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("p", { title: item.label, class: "person-name text--ellipsis" }, item.label))) : (h(Fragment, null, this.ezDraggable ? h("span", { class: "draggable-icon" }) : undefined, h("ez-check", { label: item.label, value: item.check, onEzChange: evt => this.ezCheckChange.emit({ id: item.id, label: item.label, check: evt.detail }) })))), this.itemSlotBuilder ? this.getContainerItemBuilder(item) : undefined)))), h("div", { class: "last-droppable-space", onDragLeave: () => this.removeOverClass(), onDragOver: event => {
125410
+ this.onDragOverLastIndex(event);
125411
+ }, onDragEnd: () => this.onDragEnd(), onDrop: event => this.onDropLastIndex(event) }))))));
125306
125412
  }
125307
125413
  static get style() { return ezListCss; }
125308
125414
  };
@@ -125458,6 +125564,180 @@ const EzModalContainer$1 = class extends HTMLElement$1 {
125458
125564
  static get style() { return ezModalContainerCss; }
125459
125565
  };
125460
125566
 
125567
+ const ezMultiSelectionListCss = ".sc-ez-multi-selection-list-h{--ez-check--outter-gap:0px;display:block;width:304px;height:322px;max-height:calc(100vh - 350px)}.multi-selection__input.sc-ez-multi-selection-list{margin-bottom:var(--space--2xs, 8px)}.multi-selection__content-options.sc-ez-multi-selection-list{position:relative;top:-12px;left:-4px}.multi-selection__select-all.sc-ez-multi-selection-list{height:var(--space--xl);margin:0 var(--space--small, 6px)}.multi-selection__list.sc-ez-multi-selection-list{height:235px;max-height:calc(100vh - 435px);overflow-y:auto;overflow-x:clip}.multi-selection__list.sc-ez-multi-selection-list::-webkit-scrollbar{width:var(--space--small);min-width:var(--space--small);max-width:var(--space--small)}";
125568
+
125569
+ var ViewScenarios;
125570
+ (function (ViewScenarios) {
125571
+ ViewScenarios["DATASOURCE_RESULTS"] = "DATASOURCE_RESULTS";
125572
+ ViewScenarios["DATASOURCE_RESULTS_EMPTY"] = "DATASOURCE_RESULTS_EMPTY";
125573
+ ViewScenarios["DATASOURCE_INIT"] = "DATASOURCE_INIT";
125574
+ ViewScenarios["OPTIONS_EMPTY"] = "OPTIONS_EMPTY";
125575
+ ViewScenarios["OPTIONS"] = "OPTIONS";
125576
+ })(ViewScenarios || (ViewScenarios = {}));
125577
+ const EzMuiltiSelectionList = class extends HTMLElement$1 {
125578
+ constructor() {
125579
+ super();
125580
+ this.__registerHost();
125581
+ this.changeFilteredOptions = createEvent(this, "changeFilteredOptions", 7);
125582
+ this.columnName = undefined;
125583
+ this.dataSource = undefined;
125584
+ this.useOptions = false;
125585
+ this.options = undefined;
125586
+ this.filteredOptions = undefined;
125587
+ this.displayOptions = undefined;
125588
+ this.viewScenario = undefined;
125589
+ this.displayOptionToCheckAllItems = true;
125590
+ }
125591
+ async clearFilteredOptions() {
125592
+ this.setInitialScenario();
125593
+ this.filteredOptions = [];
125594
+ if (this.searchInput) {
125595
+ this.searchInput.value = '';
125596
+ }
125597
+ if (this.filterInput) {
125598
+ this.filterInput.value = '';
125599
+ }
125600
+ }
125601
+ onChangeUseOptions() {
125602
+ this.setInitialScenario();
125603
+ }
125604
+ onChangeOptions() {
125605
+ if (this.options) {
125606
+ this.filteredOptions = this.ordenationByCheckStateAndAlphabetically(this.options);
125607
+ }
125608
+ this.checkInput && this.changeCheckAllValeuFromFilteredOptions();
125609
+ this.setInitialScenario();
125610
+ }
125611
+ onChangeFilteredOptions(optionsListUpdated) {
125612
+ this.displayOptions = this.filteredOptions;
125613
+ this.displayOptionToCheckAllItems = this.filteredOptions.length > 1;
125614
+ this.checkInput && this.changeCheckAllValeuFromFilteredOptions();
125615
+ this.changeFilteredOptions.emit(optionsListUpdated);
125616
+ }
125617
+ componentDidRender() {
125618
+ this.changeCheckAllValeuFromFilteredOptions();
125619
+ }
125620
+ ordenationByCheckStateAndAlphabetically(filteredOptions) {
125621
+ const listWithSelectChecked = [];
125622
+ const listWithNotSelectChecked = [];
125623
+ filteredOptions.forEach(item => (item.check ? listWithSelectChecked.push(item) : listWithNotSelectChecked.push(item)));
125624
+ return [...ArrayUtils$1.sortAlphabetically(listWithSelectChecked), ...ArrayUtils$1.sortAlphabetically(listWithNotSelectChecked)];
125625
+ }
125626
+ changeCheckAllValeuFromFilteredOptions() {
125627
+ var _a, _b, _c, _d;
125628
+ const selectAll = (_a = this.filteredOptions) === null || _a === void 0 ? void 0 : _a.every(item => item.check === true);
125629
+ const notSelectAll = (_b = this.filteredOptions) === null || _b === void 0 ? void 0 : _b.every(item => item.check === false);
125630
+ const selectIndeterminated = ((_c = this.filteredOptions) === null || _c === void 0 ? void 0 : _c.some(item => item.check === false)) && ((_d = this.filteredOptions) === null || _d === void 0 ? void 0 : _d.some(item => item.check === true)) && (!selectAll || !notSelectAll);
125631
+ if (this.checkInput && selectAll) {
125632
+ this.checkInput.indeterminate = false;
125633
+ this.checkInput.value = true;
125634
+ return;
125635
+ }
125636
+ if (this.checkInput && selectIndeterminated) {
125637
+ this.checkInput.indeterminate = true;
125638
+ this.checkInput.value = false;
125639
+ return;
125640
+ }
125641
+ if (this.checkInput && notSelectAll) {
125642
+ this.checkInput.indeterminate = false;
125643
+ this.checkInput.value = false;
125644
+ return;
125645
+ }
125646
+ }
125647
+ setInitialScenario() {
125648
+ if (this.useOptions) {
125649
+ this.viewScenario = ViewScenarios.OPTIONS;
125650
+ this.changeCheckAllValeuFromFilteredOptions();
125651
+ return;
125652
+ }
125653
+ this.viewScenario = this.options && this.options.length > 0 ? ViewScenarios.DATASOURCE_RESULTS : ViewScenarios.DATASOURCE_INIT;
125654
+ }
125655
+ async searchWithDataSource(searchArgument, fieldName) {
125656
+ const { argument, mode } = searchArgument;
125657
+ if (mode !== 'PRELOAD') {
125658
+ return this.dataSource.fetchData(argument, fieldName);
125659
+ }
125660
+ }
125661
+ handleSearchOnDataSource(event) {
125662
+ var _a;
125663
+ const optionsToSort = (_a = this.filteredOptions) !== null && _a !== void 0 ? _a : [];
125664
+ if (event.detail && !optionsToSort.some(item => item.value == event.detail.value)) {
125665
+ this.filteredOptions = this.ordenationByCheckStateAndAlphabetically([...optionsToSort, event.detail]);
125666
+ }
125667
+ this.viewScenario = ViewScenarios.DATASOURCE_RESULTS;
125668
+ }
125669
+ handleRemoveItemFromOptions(item) {
125670
+ this.filteredOptions = this.ordenationByCheckStateAndAlphabetically(this.filteredOptions.filter(i => i.value !== item.value));
125671
+ if (this.filteredOptions.length === 0) {
125672
+ this.viewScenario = ViewScenarios.DATASOURCE_INIT;
125673
+ }
125674
+ if (this.searchInput) {
125675
+ this.searchInput.value = '';
125676
+ }
125677
+ }
125678
+ handleSearchOnOption(event) {
125679
+ if (event.detail) {
125680
+ this.displayOptions = ArrayUtils$1.applyStringFilter(event.detail, this.filteredOptions, true);
125681
+ this.viewScenario = this.displayOptions.length === 0 ? ViewScenarios.OPTIONS_EMPTY : ViewScenarios.OPTIONS;
125682
+ return;
125683
+ }
125684
+ this.displayOptions = this.filteredOptions;
125685
+ this.viewScenario = ViewScenarios.OPTIONS;
125686
+ }
125687
+ handleChangeSelectAllItems(event) {
125688
+ this.filteredOptions = this.ordenationByCheckStateAndAlphabetically([
125689
+ ...this.filteredOptions.map(item => {
125690
+ item.check = !!event.detail;
125691
+ return item;
125692
+ }),
125693
+ ]);
125694
+ }
125695
+ handleChangeSelectedItem(event) {
125696
+ const { detail: itemCheckSelected } = event;
125697
+ this.filteredOptions = this.filteredOptions.map(item => {
125698
+ if (item.label === itemCheckSelected.label) {
125699
+ return Object.assign(Object.assign({}, item), { check: itemCheckSelected.check });
125700
+ }
125701
+ return item;
125702
+ });
125703
+ this.clearInputs();
125704
+ }
125705
+ clearInputs() {
125706
+ this.filterInput ? (this.filterInput.value = '') : (this.searchInput.value = '');
125707
+ }
125708
+ buildViewList(hasDelete) {
125709
+ return (h(Fragment, null, this.displayOptionToCheckAllItems && (h("ez-check", { ref: (element) => (this.checkInput = element), label: "Selecionar todos", class: "multi-selection__select-all", onEzChange: this.handleChangeSelectAllItems.bind(this) })), h("ez-list", { class: "multi-selection__list", dataSource: this.displayOptions, listMode: "check", hoverFeedback: true, onEzCheckChange: this.handleChangeSelectedItem.bind(this), itemSlotBuilder: hasDelete ? this.buildDeleteIconSlot.bind(this) : null })));
125710
+ }
125711
+ buildDeleteIconSlot(item) {
125712
+ return h("ez-icon", { style: { cursor: 'pointer' }, iconName: "delete", onClick: () => this.handleRemoveItemFromOptions(item) });
125713
+ }
125714
+ buildInitViewWithDataSource() {
125715
+ return h("multi-selection-box-message", { message: "Selecione os valores a serem filtrados atrav\u00E9s do campo de busca." });
125716
+ }
125717
+ buildViewEmptyResults() {
125718
+ return h("multi-selection-box-message", { message: "Nenhum resultado encontrado." });
125719
+ }
125720
+ scenarioToDisplay(view) {
125721
+ const scenarios = {
125722
+ [ViewScenarios.DATASOURCE_INIT]: this.buildInitViewWithDataSource(),
125723
+ [ViewScenarios.DATASOURCE_RESULTS]: this.buildViewList(true),
125724
+ [ViewScenarios.DATASOURCE_RESULTS_EMPTY]: this.buildViewEmptyResults(),
125725
+ [ViewScenarios.OPTIONS_EMPTY]: this.buildViewEmptyResults(),
125726
+ [ViewScenarios.OPTIONS]: this.buildViewList(false),
125727
+ };
125728
+ return scenarios[view];
125729
+ }
125730
+ render() {
125731
+ return (h(Host, null, h("div", { class: "multi-selection" }, this.useOptions ? (h("ez-filter-input", { ref: (element) => (this.filterInput = element), label: `Buscar..`, onEzChange: this.handleSearchOnOption.bind(this) })) : (h("ez-search", { class: "multi-selection__input", label: `Buscar...`, ref: (element) => (this.searchInput = element), suppressEmptyOption: true, showOptionValue: false, showSelectedValue: false, optionLoader: (search) => this.searchWithDataSource(search, this.columnName), onEzChange: this.handleSearchOnDataSource.bind(this) })), h("ez-scroll", { class: "multi-selection__content-options" }, this.scenarioToDisplay(this.viewScenario)))));
125732
+ }
125733
+ static get watchers() { return {
125734
+ "useOptions": ["onChangeUseOptions"],
125735
+ "options": ["onChangeOptions"],
125736
+ "filteredOptions": ["onChangeFilteredOptions"]
125737
+ }; }
125738
+ static get style() { return ezMultiSelectionListCss; }
125739
+ };
125740
+
125461
125741
  const ezNumberInputCss = ":host{display:block;width:100%}";
125462
125742
 
125463
125743
  const EzNumberInput$1 = class extends HTMLElement$1 {
@@ -125614,7 +125894,6 @@ const EzPopover$1 = class extends HTMLElement$1 {
125614
125894
  this.__attachShadow();
125615
125895
  this.ezVisibilityChange = createEvent(this, "ezVisibilityChange", 7);
125616
125896
  this._firstRender = true;
125617
- this._bodyOverflow = '';
125618
125897
  this.innerClickTest = (_popOvercontainer, node, eventOrigin) => {
125619
125898
  const innerContainers = [_popOvercontainer];
125620
125899
  if (this.innerElement) {
@@ -125675,14 +125954,6 @@ const EzPopover$1 = class extends HTMLElement$1 {
125675
125954
  this.ezVisibilityChange.emit(newValue);
125676
125955
  }
125677
125956
  }
125678
- observeConfig() {
125679
- this.manageOverflow();
125680
- }
125681
- manageOverflow() {
125682
- if (this.opened)
125683
- this._bodyOverflow = window.document.body.style.overflow;
125684
- window.document.body.style.overflow = this.opened ? 'hidden' : this._bodyOverflow;
125685
- }
125686
125957
  /**
125687
125958
  * Atualiza a posição do popover.
125688
125959
  */
@@ -125741,7 +126012,7 @@ const EzPopover$1 = class extends HTMLElement$1 {
125741
126012
  }
125742
126013
  get _host() { return this; }
125743
126014
  static get watchers() { return {
125744
- "opened": ["observeOpened", "observeConfig"]
126015
+ "opened": ["observeOpened"]
125745
126016
  }; }
125746
126017
  static get style() { return ezPopoverCss; }
125747
126018
  };
@@ -125761,7 +126032,6 @@ const EzPopup$1 = class extends HTMLElement$1 {
125761
126032
  "large": "col--sd-9",
125762
126033
  "x-large": "col--sd-11"
125763
126034
  };
125764
- this._bodyOverflow = '';
125765
126035
  this.size = "medium";
125766
126036
  this.opened = false;
125767
126037
  this.useHeader = true;
@@ -125772,9 +126042,12 @@ const EzPopup$1 = class extends HTMLElement$1 {
125772
126042
  this.manageOverflow();
125773
126043
  }
125774
126044
  manageOverflow() {
125775
- if (this.opened)
125776
- this._bodyOverflow = window.document.body.style.overflow;
125777
- window.document.body.style.overflow = this.opened ? 'hidden' : this._bodyOverflow;
126045
+ if (this.opened) {
126046
+ window.document.body.style.overflow = "hidden";
126047
+ }
126048
+ else {
126049
+ window.document.body.style.overflow = "";
126050
+ }
125778
126051
  }
125779
126052
  manageOverlay() {
125780
126053
  if (this.opened) {
@@ -128196,6 +128469,121 @@ const EzViewStack$1 = class extends HTMLElement$1 {
128196
128469
  static get style() { return ezViewStackCss; }
128197
128470
  };
128198
128471
 
128472
+ const filterColumnCss = ".filter-column{padding:var(--space--2xs, 8px);position:relative}.filter-column__header{margin-bottom:var(--space--2xs, 8px);display:flex;flex-direction:row;align-items:center;justify-content:space-between;height:var(--space--xl, 32px)}.filter-column__footer{position:relative;display:flex;flex-direction:row;justify-content:flex-end;align-items:center;width:100%;bottom:0;left:0;padding-top:var(--space--2xs, 8px);border-top:var(--border--medium) var(--color--disable-secondary)}.filter-column__popover{position:absolute}.filter-column__header-title{margin-left:8px}";
128473
+
128474
+ const windowInstace = window;
128475
+ const onSubmitFilter = new CustomEvent('onSubmitFilter', {
128476
+ detail: {
128477
+ showToast: true,
128478
+ },
128479
+ });
128480
+ const FilterColumn$1 = class extends HTMLElement$1 {
128481
+ constructor() {
128482
+ super();
128483
+ this.__registerHost();
128484
+ this.applyFilterColumnOptions = createEvent(this, "applyFilterColumnOptions", 7);
128485
+ this.TOP_POSITION = '65px';
128486
+ this.opened = true;
128487
+ this.columnName = undefined;
128488
+ this.columnLabel = undefined;
128489
+ this.dataSource = undefined;
128490
+ this.dataUnit = undefined;
128491
+ this.options = undefined;
128492
+ this.selectedItems = undefined;
128493
+ this.fieldDescriptor = undefined;
128494
+ this.useOptions = false;
128495
+ }
128496
+ async hide() {
128497
+ await this.ezPopoverElement.hide();
128498
+ await this.clearConfigs();
128499
+ }
128500
+ /**
128501
+ * Abre o filtro de coluna.
128502
+ * @Params IFilterColumnConfigs informações para configurar o filtro
128503
+ */
128504
+ async show(configs) {
128505
+ if (this.canShow(configs)) {
128506
+ await this.hide();
128507
+ this.fieldDescriptor = this.dataUnit.getField(configs.columnName);
128508
+ this.setOptions(configs.filteredOptions);
128509
+ this.columnName = configs.columnName;
128510
+ this.columnLabel = configs.columnLabel;
128511
+ await this.ezPopoverElement.show(this.TOP_POSITION, configs.leftPosition);
128512
+ }
128513
+ }
128514
+ async clearConfigs() {
128515
+ var _a;
128516
+ await ((_a = this.ezMultiSelectionList) === null || _a === void 0 ? void 0 : _a.clearFilteredOptions());
128517
+ this.options = null;
128518
+ this.columnName = null;
128519
+ }
128520
+ canShow(configs) {
128521
+ return !this.ezPopoverElement.opened || configs.columnName !== this.columnName;
128522
+ }
128523
+ submit() {
128524
+ this.applyFilterColumnOptions.emit({ field: this.columnName, values: this.selectedItems });
128525
+ windowInstace.dispatchEvent(onSubmitFilter);
128526
+ this.hide();
128527
+ }
128528
+ changeSelectedItems(items) {
128529
+ this.selectedItems = items;
128530
+ }
128531
+ hasToUseOptions() {
128532
+ return this.fieldDescriptor.userInterface === UserInterface.OPTIONSELECTOR
128533
+ || this.fieldDescriptor.userInterface === UserInterface.SWITCH
128534
+ || this.fieldDescriptor.userInterface === UserInterface.CHECKBOX;
128535
+ }
128536
+ isCheckBoxOrSwitch() {
128537
+ return this.fieldDescriptor.userInterface === UserInterface.SWITCH
128538
+ || this.fieldDescriptor.userInterface === UserInterface.CHECKBOX;
128539
+ }
128540
+ setOptions(selectedItems) {
128541
+ const validateFieldUserInterfaceOptionSelector = this.hasToUseOptions();
128542
+ this.useOptions = validateFieldUserInterfaceOptionSelector;
128543
+ this.options = validateFieldUserInterfaceOptionSelector ? this.buildOptions(selectedItems) : (selectedItems !== null && selectedItems !== void 0 ? selectedItems : null);
128544
+ }
128545
+ buildOptions(selectedItems) {
128546
+ var _a, _b;
128547
+ if (selectedItems && selectedItems.length > 0) {
128548
+ return selectedItems;
128549
+ }
128550
+ if (this.isCheckBoxOrSwitch()) {
128551
+ return [
128552
+ { label: "Sim", value: "true", check: true },
128553
+ { label: "Não", value: "false", check: true }
128554
+ ];
128555
+ }
128556
+ const optionsObject = JSON.parse((_b = (_a = this.fieldDescriptor) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.options);
128557
+ const objectKeys = Object.keys(optionsObject);
128558
+ return objectKeys.map(key => {
128559
+ return { label: optionsObject[key], value: key, check: true };
128560
+ });
128561
+ }
128562
+ handleEzVisibilityChange(event) {
128563
+ if (event.detail === false) {
128564
+ this.clearConfigs();
128565
+ }
128566
+ }
128567
+ render() {
128568
+ return (h("ez-popover", { class: "filter-column__popover", "overlay-type": "none", ref: (element) => (this.ezPopoverElement = element), autoClose: true, onEzVisibilityChange: this.handleEzVisibilityChange.bind(this) }, h("section", { class: "filter-column" }, h("header", { class: "filter-column__header" }, h("span", { class: "ez-text ez-text--medium filter-column__header-title" }, "Filtro da coluna ", this.columnLabel), h("ez-button", { mode: "icon", "icon-name": "close", class: "ez-button--tertiary", onClick: () => this.hide() })), h("ez-multi-selection-list", { columnName: this.columnName, dataSource: this.dataSource, options: this.options, useOptions: this.useOptions, ref: (element) => (this.ezMultiSelectionList = element), onChangeFilteredOptions: (event) => this.changeSelectedItems(event.detail) }), h("footer", { class: "filter-column__footer" }, h("ez-button", { label: "Aplicar", class: "ez-button--primary", onClick: this.submit.bind(this) })))));
128569
+ }
128570
+ static get style() { return filterColumnCss; }
128571
+ };
128572
+
128573
+ const multiSelectionBoxMessageCss = ".multi-selection__message{display:flex;flex-direction:row;align-items:center;justify-content:center;width:100%;min-height:320px;text-align:center}.multi-selection__text-message{margin-top:-30px;font-family:var(--font-pattern);font-size:var(--text--meduim);padding:var(--space-xs);color:var(--text--primary)}";
128574
+
128575
+ const MultiSelectionBoxMessage$1 = class extends HTMLElement$1 {
128576
+ constructor() {
128577
+ super();
128578
+ this.__registerHost();
128579
+ this.message = undefined;
128580
+ }
128581
+ render() {
128582
+ return (h("div", { class: "multi-selection__message" }, h("span", { class: "multi-selection__text-message" }, this.message)));
128583
+ }
128584
+ static get style() { return multiSelectionBoxMessageCss; }
128585
+ };
128586
+
128199
128587
  const EzActionsButton = /*@__PURE__*/proxyCustomElement(EzActionsButton$1, [1,"ez-actions-button",{"enabled":[516],"actions":[1040],"size":[513],"showLabel":[516,"show-label"],"displayIcon":[513,"display-icon"],"checkOption":[516,"check-option"],"value":[513],"isTransparent":[516,"is-transparent"],"arrowActive":[516,"arrow-active"],"_selectedAction":[32]}]);
128200
128588
  const EzAlert = /*@__PURE__*/proxyCustomElement(EzAlert$1, [1,"ez-alert",{"alertType":[513,"alert-type"]}]);
128201
128589
  const EzApplication = /*@__PURE__*/proxyCustomElement(EzApplication$1, [0,"ez-application"]);
@@ -128216,13 +128604,14 @@ const EzFileItem = /*@__PURE__*/proxyCustomElement(EzFileItem$1, [1,"ez-file-ite
128216
128604
  const EzFilterInput = /*@__PURE__*/proxyCustomElement(EzFilterInput$1, [1,"ez-filter-input",{"label":[1],"value":[1537],"enabled":[4],"errorMessage":[1537,"error-message"],"restrict":[1],"mode":[513],"asyncSearch":[516,"async-search"],"canShowError":[516,"can-show-error"]}]);
128217
128605
  const EzForm = /*@__PURE__*/proxyCustomElement(EzForm$1, [2,"ez-form",{"dataUnit":[1040],"config":[16],"recordsValidator":[16]}]);
128218
128606
  const EzFormView = /*@__PURE__*/proxyCustomElement(EzFormView$1, [2,"ez-form-view",{"fields":[16]}]);
128219
- const EzGrid = /*@__PURE__*/proxyCustomElement(EzGrid$1, [6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"config":[1040],"serverUrl":[1,"server-url"],"dataUnit":[16],"statusResolver":[16],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"_showSelectionCounter":[32],"_isAllSelection":[32],"_currentPageSelected":[32],"_selectionCount":[32]},[[0,"ezSelectionChange","onSelectionChange"]]]);
128607
+ const EzGrid = /*@__PURE__*/proxyCustomElement(EzGrid$1, [6,"ez-grid",{"multipleSelection":[4,"multiple-selection"],"config":[1040],"serverUrl":[1,"server-url"],"dataUnit":[16],"statusResolver":[16],"columnfilterDataSource":[16],"_paginationInfo":[32],"_paginationChangedByKeyboard":[32],"_showSelectionCounter":[32],"_isAllSelection":[32],"_currentPageSelected":[32],"_selectionCount":[32]},[[0,"ezSelectionChange","onSelectionChange"]]]);
128220
128608
  const EzGuideNavigator = /*@__PURE__*/proxyCustomElement(EzGuideNavigator$1, [1,"ez-guide-navigator",{"open":[1540],"selectedId":[1537,"selected-id"],"items":[16],"tooltipResolver":[16],"filterText":[32]}]);
128221
128609
  const EzIcon = /*@__PURE__*/proxyCustomElement(EzIcon$1, [1,"ez-icon",{"size":[513],"href":[513],"iconName":[513,"icon-name"]}]);
128222
128610
  const EzList = /*@__PURE__*/proxyCustomElement(EzList$1, [1,"ez-list",{"dataSource":[1040],"listMode":[1,"list-mode"],"useGroups":[1540,"use-groups"],"ezDraggable":[1028,"ez-draggable"],"ezSelectable":[1028,"ez-selectable"],"itemSlotBuilder":[1040],"hoverFeedback":[1028,"hover-feedback"],"_listItems":[32],"_listGroupItems":[32]}]);
128223
128611
  const EzLoadingBar = /*@__PURE__*/proxyCustomElement(EzLoadingBar$1, [1,"ez-loading-bar",{"_showLoading":[32]}]);
128224
128612
  const EzModal = /*@__PURE__*/proxyCustomElement(EzModal$1, [1,"ez-modal",{"modalSize":[1,"modal-size"],"align":[1],"heightMode":[1,"height-mode"],"opened":[1028],"closeEsc":[4,"close-esc"],"closeOutsideClick":[4,"close-outside-click"],"scrim":[1]}]);
128225
128613
  const EzModalContainer = /*@__PURE__*/proxyCustomElement(EzModalContainer$1, [6,"ez-modal-container",{"modalTitle":[1,"modal-title"],"modalSubTitle":[1,"modal-sub-title"],"showTitleBar":[4,"show-title-bar"],"cancelButtonLabel":[1,"cancel-button-label"],"okButtonLabel":[1,"ok-button-label"],"cancelButtonStatus":[1,"cancel-button-status"],"okButtonStatus":[1,"ok-button-status"]}]);
128614
+ const EzMultiSelectionList = /*@__PURE__*/proxyCustomElement(EzMuiltiSelectionList, [2,"ez-multi-selection-list",{"columnName":[1,"column-name"],"dataSource":[16],"useOptions":[1028,"use-options"],"options":[16],"filteredOptions":[32],"displayOptions":[32],"viewScenario":[32],"displayOptionToCheckAllItems":[32]}]);
128226
128615
  const EzNumberInput = /*@__PURE__*/proxyCustomElement(EzNumberInput$1, [1,"ez-number-input",{"label":[1],"value":[1538],"enabled":[4],"canShowError":[516,"can-show-error"],"errorMessage":[1537,"error-message"],"precision":[2],"prettyPrecision":[2,"pretty-precision"],"mode":[513]}]);
128227
128616
  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],"innerElement":[1537,"inner-element"],"overlayType":[513,"overlay-type"]}]);
128228
128617
  const EzPopup = /*@__PURE__*/proxyCustomElement(EzPopup$1, [1,"ez-popup",{"size":[1],"opened":[1540],"useHeader":[516,"use-header"],"heightMode":[513,"height-mode"],"ezTitle":[1,"ez-title"]}]);
@@ -128240,6 +128629,8 @@ const EzToast = /*@__PURE__*/proxyCustomElement(EzToast$1, [1,"ez-toast",{"messa
128240
128629
  const EzTree = /*@__PURE__*/proxyCustomElement(EzTree$1, [1,"ez-tree",{"items":[1040],"value":[1040],"selectedId":[1537,"selected-id"],"iconResolver":[16],"tooltipResolver":[16],"_tree":[32],"_waintingForLoad":[32]},[[2,"keydown","onKeyDownListener"]]]);
128241
128630
  const EzUpload = /*@__PURE__*/proxyCustomElement(EzUpload$1, [1,"ez-upload",{"label":[1],"subtitle":[1],"enabled":[4],"maxFileSize":[2,"max-file-size"],"maxFiles":[2,"max-files"],"requestHeaders":[8,"request-headers"],"urlUpload":[1,"url-upload"],"urlDelete":[1,"url-delete"],"value":[1040]}]);
128242
128631
  const EzViewStack = /*@__PURE__*/proxyCustomElement(EzViewStack$1, [0,"ez-view-stack"]);
128632
+ const FilterColumn = /*@__PURE__*/proxyCustomElement(FilterColumn$1, [0,"filter-column",{"opened":[4],"columnName":[1,"column-name"],"columnLabel":[1,"column-label"],"dataSource":[16],"dataUnit":[16],"options":[1040],"selectedItems":[32],"fieldDescriptor":[32],"useOptions":[32]}]);
128633
+ const MultiSelectionBoxMessage = /*@__PURE__*/proxyCustomElement(MultiSelectionBoxMessage$1, [0,"multi-selection-box-message",{"message":[1]}]);
128243
128634
  const defineCustomElements = (opts) => {
128244
128635
  if (typeof customElements !== 'undefined') {
128245
128636
  [
@@ -128270,6 +128661,7 @@ const defineCustomElements = (opts) => {
128270
128661
  EzLoadingBar,
128271
128662
  EzModal,
128272
128663
  EzModalContainer,
128664
+ EzMultiSelectionList,
128273
128665
  EzNumberInput,
128274
128666
  EzPopover,
128275
128667
  EzPopup,
@@ -128286,7 +128678,9 @@ const defineCustomElements = (opts) => {
128286
128678
  EzToast,
128287
128679
  EzTree,
128288
128680
  EzUpload,
128289
- EzViewStack
128681
+ EzViewStack,
128682
+ FilterColumn,
128683
+ MultiSelectionBoxMessage
128290
128684
  ].forEach(cmp => {
128291
128685
  if (!customElements.get(cmp.is)) {
128292
128686
  customElements.define(cmp.is, cmp, opts);
@@ -128295,4 +128689,4 @@ const defineCustomElements = (opts) => {
128295
128689
  }
128296
128690
  };
128297
128691
 
128298
- export { EzActionsButton, EzAlert, EzApplication, EzBadge, EzBreadcrumb, EzButton, EzCalendar, EzCardItem, EzCheck, EzChip, EzCollapsibleBox, EzComboBox, EzDateInput, EzDateTimeInput, EzDialog, EzDropdown, EzFileItem, EzFilterInput, EzForm, EzFormView, EzGrid, EzGuideNavigator, EzIcon, EzList, EzLoadingBar, EzModal, EzModalContainer, EzNumberInput, EzPopover, EzPopup, EzRadioButton, EzScroller, EzSearch, EzSidebarButton, EzSkeleton, EzTabselector, EzTextArea, EzTextEdit, EzTextInput, EzTimeInput, EzToast, EzTree, EzUpload, EzViewStack, defineCustomElements };
128692
+ export { EzActionsButton, EzAlert, EzApplication, EzBadge, EzBreadcrumb, EzButton, EzCalendar, EzCardItem, EzCheck, EzChip, EzCollapsibleBox, EzComboBox, EzDateInput, EzDateTimeInput, EzDialog, EzDropdown, EzFileItem, EzFilterInput, EzForm, EzFormView, EzGrid, EzGuideNavigator, EzIcon, EzList, EzLoadingBar, EzModal, EzModalContainer, EzMultiSelectionList, EzNumberInput, EzPopover, EzPopup, EzRadioButton, EzScroller, EzSearch, EzSidebarButton, EzSkeleton, EzTabselector, EzTextArea, EzTextEdit, EzTextInput, EzTimeInput, EzToast, EzTree, EzUpload, EzViewStack, FilterColumn, MultiSelectionBoxMessage, defineCustomElements };