@sankhyalabs/ezui 5.21.0-dev.10 → 5.21.0-dev.12

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 (90) hide show
  1. package/dist/cjs/ICustomRender-6fafffce.js +13 -0
  2. package/dist/cjs/ez-actions-button.cjs.entry.js +1 -0
  3. package/dist/cjs/ez-collapsible-box.cjs.entry.js +1 -0
  4. package/dist/cjs/ez-combo-box.cjs.entry.js +1 -0
  5. package/dist/cjs/{ez-text-edit.cjs.entry.js → ez-custom-form-input_2.cjs.entry.js} +86 -0
  6. package/dist/cjs/ez-form-view.cjs.entry.js +18 -2
  7. package/dist/cjs/ez-form.cjs.entry.js +24 -1
  8. package/dist/cjs/ez-grid.cjs.entry.js +218 -9
  9. package/dist/cjs/ez-search.cjs.entry.js +1 -0
  10. package/dist/cjs/ez-split-item.cjs.entry.js +1 -0
  11. package/dist/cjs/ezui.cjs.js +1 -1
  12. package/dist/cjs/index-a7b0c73d.js +4 -4
  13. package/dist/cjs/loader.cjs.js +1 -1
  14. package/dist/collection/collection-manifest.json +1 -0
  15. package/dist/collection/components/ez-form/ez-form.js +55 -3
  16. package/dist/collection/components/ez-form-view/custom-input/ez-custom-form-input.js +245 -0
  17. package/dist/collection/components/ez-form-view/ez-form-view.js +52 -2
  18. package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +20 -2
  19. package/dist/collection/components/ez-grid/controller/ag-grid/GridEditionManager.js +35 -1
  20. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.js +58 -0
  21. package/dist/collection/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.js +40 -0
  22. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.js +11 -0
  23. package/dist/collection/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.js +11 -0
  24. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellEditor.js +6 -3
  25. package/dist/collection/components/ez-grid/controller/ag-grid/editor/EzCellRender.js +40 -0
  26. package/dist/collection/components/ez-grid/controller/ag-grid/editor/IUICellRender.js +1 -0
  27. package/dist/collection/components/ez-grid/ez-grid.js +81 -0
  28. package/dist/collection/components/ez-grid/subcomponents/utils/selectionCounterUtils.js +2 -4
  29. package/dist/collection/utils/customEditor/interfaces/ICustomEditor.js +5 -0
  30. package/dist/collection/utils/customEditor/interfaces/ICustomEditorInfo.js +1 -0
  31. package/dist/collection/utils/customRender/interfaces/ICustomRender.js +5 -0
  32. package/dist/collection/utils/customRender/interfaces/ICustomRenderInfo.js +1 -0
  33. package/dist/collection/utils/index.js +2 -0
  34. package/dist/custom-elements/index.d.ts +6 -0
  35. package/dist/custom-elements/index.js +361 -15
  36. package/dist/esm/ICustomRender-875b5a40.js +13 -0
  37. package/dist/esm/ez-actions-button.entry.js +1 -0
  38. package/dist/esm/ez-collapsible-box.entry.js +1 -0
  39. package/dist/esm/ez-combo-box.entry.js +1 -0
  40. package/dist/esm/{ez-text-edit.entry.js → ez-custom-form-input_2.entry.js} +88 -3
  41. package/dist/esm/ez-form-view.entry.js +18 -2
  42. package/dist/esm/ez-form.entry.js +24 -1
  43. package/dist/esm/ez-grid.entry.js +218 -9
  44. package/dist/esm/ez-search.entry.js +1 -0
  45. package/dist/esm/ez-split-item.entry.js +1 -0
  46. package/dist/esm/ezui.js +1 -1
  47. package/dist/esm/index-baa5e267.js +4 -4
  48. package/dist/esm/loader.js +1 -1
  49. package/dist/ezui/ezui.esm.js +1 -1
  50. package/dist/ezui/p-13727aec.entry.js +1 -0
  51. package/dist/ezui/{p-1db718ab.entry.js → p-1f96ba9a.entry.js} +2 -2
  52. package/dist/ezui/p-4607fb89.js +1 -0
  53. package/dist/ezui/{p-3a21618b.entry.js → p-77362d3a.entry.js} +1 -1
  54. package/dist/ezui/p-7922142b.entry.js +1 -0
  55. package/dist/ezui/p-84e439b9.entry.js +1 -0
  56. package/dist/ezui/p-922ac38b.entry.js +1 -0
  57. package/dist/ezui/p-bcb53f27.entry.js +1 -0
  58. package/dist/ezui/p-c942e4a7.entry.js +1 -0
  59. package/dist/ezui/p-e90dd4eb.entry.js +1 -0
  60. package/dist/types/components/ez-form/ez-form.d.ts +9 -2
  61. package/dist/types/components/ez-form-view/custom-input/ez-custom-form-input.d.ts +41 -0
  62. package/dist/types/components/ez-form-view/ez-form-view.d.ts +7 -0
  63. package/dist/types/components/ez-grid/controller/EzGridController.d.ts +19 -0
  64. package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +6 -0
  65. package/dist/types/components/ez-grid/controller/ag-grid/GridEditionManager.d.ts +7 -1
  66. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellEditor.d.ts +19 -0
  67. package/dist/types/components/ez-grid/controller/ag-grid/components/EzGridCustomCellRender.d.ts +14 -0
  68. package/dist/types/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellEditorConstants.d.ts +11 -0
  69. package/dist/types/components/ez-grid/controller/ag-grid/components/test/constants/EzGridCustomCellRenderConstants.d.ts +11 -0
  70. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellEditor.d.ts +3 -0
  71. package/dist/types/components/ez-grid/controller/ag-grid/editor/EzCellRender.d.ts +15 -0
  72. package/dist/types/components/ez-grid/controller/ag-grid/editor/IUICellRender.d.ts +10 -0
  73. package/dist/types/components/ez-grid/ez-grid.d.ts +12 -0
  74. package/dist/types/components.d.ts +87 -3
  75. package/dist/types/utils/customEditor/interfaces/ICustomEditor.d.ts +29 -0
  76. package/dist/types/utils/customEditor/interfaces/ICustomEditorInfo.d.ts +5 -0
  77. package/dist/types/utils/customRender/interfaces/ICustomRender.d.ts +29 -0
  78. package/dist/types/utils/customRender/interfaces/ICustomRenderInfo.d.ts +5 -0
  79. package/dist/types/utils/index.d.ts +2 -0
  80. package/package.json +1 -1
  81. package/react/components.d.ts +1 -0
  82. package/react/components.js +1 -0
  83. package/react/components.js.map +1 -1
  84. package/dist/ezui/p-0447d17c.entry.js +0 -1
  85. package/dist/ezui/p-20ec22c0.entry.js +0 -1
  86. package/dist/ezui/p-637f69f2.entry.js +0 -1
  87. package/dist/ezui/p-7c770f14.entry.js +0 -1
  88. package/dist/ezui/p-836cdfdf.entry.js +0 -1
  89. package/dist/ezui/p-99ead599.entry.js +0 -1
  90. package/dist/ezui/p-bae3d0aa.entry.js +0 -1
@@ -0,0 +1,13 @@
1
+ 'use strict';
2
+
3
+ exports.CustomEditorSource = void 0;
4
+ (function (CustomEditorSource) {
5
+ CustomEditorSource["GRID"] = "GRID";
6
+ CustomEditorSource["FORM"] = "FORM";
7
+ })(exports.CustomEditorSource || (exports.CustomEditorSource = {}));
8
+
9
+ exports.CustomRenderSource = void 0;
10
+ (function (CustomRenderSource) {
11
+ CustomRenderSource["GRID"] = "GRID";
12
+ CustomRenderSource["FORM"] = "FORM";
13
+ })(exports.CustomRenderSource || (exports.CustomRenderSource = {}));
@@ -8,6 +8,7 @@ require('./ApplicationUtils-c9d1205c.js');
8
8
  const CSSVarsUtils = require('./CSSVarsUtils-10c9d5b4.js');
9
9
  require('./DialogType-2114c337.js');
10
10
  require('./CheckMode-ecb90b87.js');
11
+ require('./ICustomRender-6fafffce.js');
11
12
 
12
13
  const ezActionsButtonCss = ":host{--ez-actions-button__actions-list--border-radius:var(--border--radius-medium, 12px);--ez-actions-button__actions-list--box-shadow:var(--shadow, 0px 0px 16px 0px #000);--ez-actions-button__actions-list--background-color:var(--background--xlight, #fff);--ez-actions-button__actions-list--padding:var(--space--small, 6px);--ez-actions-button__actions-list--top-margin:var(--space-small, 6px);--ez-actions-button__actions-list--z-index:var(--ez-elevation--8, 8);--ez-actions-button__actions-max-height:415px;--ez-actions-button__btn-action--min-width:'auto';--ez-actions-button__btn-action--background-color:var(--background--xlight, #fff);display:flex;flex-direction:column;height:fit-content;user-select:none}.ez-actions-button__actions-list{display:flex;flex-direction:column;position:fixed;width:fit-content;height:fit-content;overflow-y:auto;scrollbar-width:thin;z-index:var(--ez-actions-button__actions-list--z-index);padding:var(--ez-actions-button__actions-list--padding);margin-top:var(--ez-actions-button__actions-list--top-margin);background-color:var(--ez-actions-button__actions-list--background-color);border-radius:var(--ez-actions-button__actions-list--border-radius);box-shadow:var(--ez-actions-button__actions-list--box-shadow)}.ez-actions-button__actions-list--max-height{max-height:var(--ez-actions-button__actions-max-height)}.ez-actions-button__actions-list--lowered{margin-top:calc(var(--ez-actions-button__actions-list--top-margin) + 6px)}.ez-actions-button__btn-action{--ez-button--justify-content:flex-start;--ez-button--width:100%;--ez-button--min-width:var(--ez-actions-button__btn-action--min-width);--ez-button--background-color:var(--ez-actions-button__btn-action--background-color);--ez-button--font-weight:var(--text-weight--medium, 400);--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px)}.ez-actions-button__btn-action--spaced{--ez-button--padding-left:calc(var(--space--medium, 12px) + 24px)}.ez-actions-button__icon-right{margin-left:var(--space--small, 6px)}.ez-actions-button__icon-check,.ez-actions-button__icon-item{position:absolute;left:var(--space--medium, 12px)}.ez-actions-button__icon-check{color:var(--ez-button--hover-color)}.ez-actions-button__arrow{position:absolute;border-left:10px solid transparent;border-right:10px solid transparent;width:0;height:0;z-index:calc(var(--ez-actions-button__actions-list--z-index) + 1);border-bottom:15px solid var(--ez-actions-button__btn-action--background-color)}.ez-actions-button__arrow--upped{margin-top:calc((var(--ez-actions-button__actions-list--top-margin) + 2px) * -1)}.ez-actions-button__arrow--small{margin-left:6px}.ez-actions-button__arrow--medium{margin-left:11px}.ez-actions-button__arrow--large{margin-left:13px}.ez-actions-button__arrow:only-child{display:none}.ez-actions-button__btn-transparent{--ez-button--background-color:transparent;--ez-button--hover--background-color:transparent;--ez-button--active--background-color:transparent;--ez-button--focus--border:none}.ez-actions-button__btn-label{--ez-button--padding-left:var(--space--medium, 12px);--ez-button--padding-right:var(--space--medium, 12px)}.ez-actions-button__list-container{position:relative}.ez-actions-button--bottom-padding{padding-bottom:var(--space--small, 6px)}";
13
14
 
@@ -7,6 +7,7 @@ const core = require('@sankhyalabs/core');
7
7
  const ApplicationUtils = require('./ApplicationUtils-c9d1205c.js');
8
8
  require('./DialogType-2114c337.js');
9
9
  require('./CheckMode-ecb90b87.js');
10
+ require('./ICustomRender-6fafffce.js');
10
11
 
11
12
  const ezCollapsibleBoxCss = ":host{--ez-collapsible-box--font-size:var(--title--medium, 14px);--ez-collapsible-box--font-family:var(--font-pattern, Arial);--ez-collapsible-box--font-weight:var(--text-weight--large, 600);--ez-collapsible-box--color:var(--title--primary);--ez-collapsible-box--subtitle--font-size:var(--text--medium, 14px);--ez-collapsible-box--subtitle--font-family:var(--font-pattern, 'Roboto');--ez-collapsible-box--subtitle--font-weight:var(--text-weight--medium, 400);--ez-collapsible-box--subtitle--color:var(--text--primary);--ez-collapsible-box--subtitle--margin-bottom:var(--space--medium, 12px);--ez-collapsible-box--focus--color:var(--color--primary-600);--ez-collapsible-box__icon--color:var(--ez-collapsible-box--color);--ez-collapsible-box__header--padding-top:0px;--ez-collapsible-box__header--padding-bottom:0px;--ez-collapsible-box__header--padding-right:0px;--ez-collapsible-box__header--padding-left:0px;display:flex;flex-wrap:wrap;width:100%}ez-icon{--ez-icon--color:inherit}.collapsible-box{display:flex;flex-direction:column;width:100%}.collapsable-box--bordered{border:var(--border--small);border-color:var(--color--strokes);border-radius:var(--border--radius-medium);padding:var(--space--xs)}.collapsible-box__header{display:flex;box-sizing:border-box;padding-top:var(--ez-collapsible-box__header--padding-top);padding-bottom:var(--ez-collapsible-box__header--padding-bottom);padding-right:var(--ez-collapsible-box__header--padding-right);padding-left:var(--ez-collapsible-box__header--padding-left)}.collapsible-box__title{position:relative;width:auto;display:flex;box-sizing:border-box;align-items:center;outline:none;border:none;background-color:unset;cursor:pointer;padding:0px;text-align:left;color:var(--ez-collapsible-box--color);--ez-icon--color:var(--ez-collapsible-box__icon--color);margin-bottom:var(--space--medium, 12px)}.collapsible-box__title:focus{color:var(--ez-collapsible-box--focus--color);--ez-icon--color:var(--ez-collapsible-box--focus--color)}.collapsible-box__label{display:flex;white-space:nowrap;overflow:hidden;cursor:pointer;text-overflow:ellipsis;box-sizing:border-box;margin-left:6px;gap:6px;font-family:var(--ez-collapsible-box--font-family);font-size:var(--ez-collapsible-box--font-size);font-weight:var(--ez-collapsible-box--font-weight)}.subtitle-box__label{display:flex;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;font-family:var(--ez-collapsible-box--subtitle--font-family);font-size:var(--ez-collapsible-box--subtitle--font-size);font-weight:var(--ez-collapsible-box--subtitle--font-weight);color:var(--ez-collapsible-box--subtitle--color);margin-bottom:var(--ez-collapsible-box--subtitle--margin-bottom)}.subtitle-box__content{width:100%}.collapsible-box__label ez-icon{visibility:hidden;transition:2s all ease-in-out}.collapsible-box__label:hover ez-icon{visibility:visible}.collapsible-box__text-edit{margin-left:6px}.collapsible-box__icon{transform:rotate(90deg) translate(0px, 14%);transition:transform var(--transition)}.collapsible-box__icon--collapsed{transform:rotate(0deg) translate(-14%, 0px)}.collapsible-box__title--icon-right{flex-direction:row-reverse}.collapsible-box__title--icon-right .collapsible-box__icon{transform:rotate(90deg) translate(0px, -14%)}.collapsible-box__title--icon-right .collapsible-box__icon--collapsed{transform:rotate(0deg) translate(14%, 0px)}.collapsible-box__title--icon-right .collapsible-box__label{margin-left:0px;margin-right:6px}.collapsible-box__title--left{margin-right:auto}.collapsible-box__title--right{margin-left:auto}.collapsible-box__title--center{margin-left:auto;margin-right:auto}.collapsible-box__title--stretch{justify-content:space-between;width:100%}.collapsible-box__title--no-margin{margin-bottom:0}.collapsible-box__content{display:flex;flex-wrap:wrap;width:100%;height:0px;max-height:0px;opacity:0;overflow:hidden;transition:all var(--transition, 0.5s)}.collapsible-box__content--show{height:100%;max-height:none;opacity:1;overflow:visible;transition:all var(--transition, 0.5s)}.font--x-small{font-size:10px}.font--small{font-size:12px}.font--medium{font-size:14px}.font--large{font-size:16px}.font--x-large{font-size:20px}";
12
13
 
@@ -8,6 +8,7 @@ require('./ApplicationUtils-c9d1205c.js');
8
8
  const CSSVarsUtils = require('./CSSVarsUtils-10c9d5b4.js');
9
9
  require('./DialogType-2114c337.js');
10
10
  require('./CheckMode-ecb90b87.js');
11
+ require('./ICustomRender-6fafffce.js');
11
12
 
12
13
  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__list-min-width:64px;--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{min-width:var(--ez-combo-box__list-min-width);position:relative;width:100%}.list-wrapper{display:flex;flex-direction:column;box-sizing:border-box;width:0;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%;padding:0;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)}}";
13
14
 
@@ -3,11 +3,96 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const index = require('./index-a7b0c73d.js');
6
+ const ICustomRender = require('./ICustomRender-6fafffce.js');
6
7
  const core = require('@sankhyalabs/core');
7
8
  const ApplicationUtils = require('./ApplicationUtils-c9d1205c.js');
8
9
  require('./DialogType-2114c337.js');
9
10
  require('./CheckMode-ecb90b87.js');
10
11
 
12
+ const EzCustomFormInput = class {
13
+ constructor(hostRef) {
14
+ index.registerInstance(this, hostRef);
15
+ this.gui = undefined;
16
+ this.customEditor = undefined;
17
+ this.formViewField = undefined;
18
+ this.value = undefined;
19
+ this.detailContext = undefined;
20
+ this.builderFallback = undefined;
21
+ }
22
+ /**
23
+ * Aplica foco no campo.
24
+ */
25
+ async setFocus() {
26
+ var _a, _b;
27
+ (_b = (_a = this.gui) === null || _a === void 0 ? void 0 : _a["setFocus"]) === null || _b === void 0 ? void 0 : _b.call(_a);
28
+ }
29
+ /**
30
+ * Remove o foco do campo.
31
+ */
32
+ async setBlur() {
33
+ var _a, _b;
34
+ (_b = (_a = this.gui) === null || _a === void 0 ? void 0 : _a["setBlur"]) === null || _b === void 0 ? void 0 : _b.call(_a);
35
+ }
36
+ /**
37
+ * Retorna se o conteúdo é inválido.
38
+ */
39
+ async isInvalid() {
40
+ var _a, _b;
41
+ return ((_b = (_a = this.gui) === null || _a === void 0 ? void 0 : _a["isInvalid"]) === null || _b === void 0 ? void 0 : _b.call(_a)) || false;
42
+ }
43
+ getContent() {
44
+ var _a, _b;
45
+ const fieldProps = new Map();
46
+ for (const prop in this.formViewField.props) {
47
+ fieldProps.set(prop, this.formViewField.props[prop]);
48
+ }
49
+ const params = {
50
+ value: this.value,
51
+ name: this.formViewField.name,
52
+ currentEditor: this.builderFallback(this.formViewField),
53
+ editorMetadata: {
54
+ label: this.formViewField.label,
55
+ hidden: ((_a = this.formViewField.props) === null || _a === void 0 ? void 0 : _a.visible) === false,
56
+ userInterface: this.formViewField.userInterface,
57
+ options: (_b = this.formViewField.props) === null || _b === void 0 ? void 0 : _b.options,
58
+ props: this.formViewField.props ? fieldProps : undefined,
59
+ optionLoader: this.formViewField.optionLoader
60
+ },
61
+ source: ICustomRender.CustomEditorSource.FORM,
62
+ detailContext: this.detailContext
63
+ };
64
+ let gui = this.customEditor.getEditorElement(params);
65
+ if (!gui) {
66
+ gui = this.builderFallback(this.formViewField);
67
+ this.handleValue(gui);
68
+ this.gui = gui;
69
+ return;
70
+ }
71
+ if (!(gui instanceof HTMLElement) && typeof gui !== 'string') {
72
+ this.handleValue(gui);
73
+ this.gui = gui;
74
+ return;
75
+ }
76
+ if (typeof gui === 'string') {
77
+ gui = core.HTMLBuilder.parseElement(gui);
78
+ }
79
+ gui.setAttribute('value', this.value);
80
+ this.gui = index.h("div", { key: core.StringUtils.generateUUID(), ref: el => el && el.appendChild(gui) });
81
+ }
82
+ handleValue(gui) {
83
+ //@ts-ignore
84
+ gui.$children$.forEach((child) => {
85
+ child.$attrs$.value = this.value;
86
+ });
87
+ }
88
+ componentWillRender() {
89
+ this.getContent();
90
+ }
91
+ render() {
92
+ return (index.h(index.Host, null, this.gui));
93
+ }
94
+ };
95
+
11
96
  const ezTextEditCss = ":host{display:flex;align-items:center;gap:5px}.text-edit__form-input{width:auto;--ez-text-input__input--padding:0px}.text-edit__hidden-value{visibility:hidden;position:absolute;white-space:nowrap;z-index:-1;top:0;left:0}";
12
97
 
13
98
  const EzTextEdit = class {
@@ -104,4 +189,5 @@ const EzTextEdit = class {
104
189
  };
105
190
  EzTextEdit.style = ezTextEditCss;
106
191
 
192
+ exports.ez_custom_form_input = EzCustomFormInput;
107
193
  exports.ez_text_edit = EzTextEdit;
@@ -149,11 +149,20 @@ const EzFormView = class {
149
149
  index.registerInstance(this, hostRef);
150
150
  this.ezContentReady = index.createEvent(this, "ezContentReady", 7);
151
151
  this.formItemsReady = index.createEvent(this, "formItemsReady", 7);
152
+ this._customEditors = new Map();
152
153
  this.fields = undefined;
153
154
  }
154
155
  async showUp() {
155
156
  this._element.scrollIntoView({ behavior: "smooth", block: "start" });
156
157
  }
158
+ /**
159
+ * Registra um editor customizado para campos da grade e formulário.
160
+ */
161
+ async addCustomEditor(fieldName, customEditor, detailContext) {
162
+ const newCustomEditors = new Map(this._customEditors);
163
+ newCustomEditors.set(fieldName, { customEditor, detailContext });
164
+ this._customEditors = newCustomEditors;
165
+ }
157
166
  /**
158
167
  * Altera/adiciona uma propriedade nos metados do campo.
159
168
  */
@@ -186,8 +195,9 @@ const EzFormView = class {
186
195
  return result;
187
196
  }
188
197
  componentDidRender() {
189
- this.ezContentReady.emit(Array.from(this._element.querySelectorAll("[data-field-name]")));
190
- const formItems = new FormItems(Array.from(this._element.querySelectorAll("[data-form-item]")));
198
+ this._formElements = Array.from(this._element.querySelectorAll("[data-field-name]"));
199
+ this.ezContentReady.emit(this._formElements);
200
+ const formItems = new FormItems(this._formElements);
191
201
  this.formItemsReady.emit(formItems);
192
202
  }
193
203
  isItemFullWidth(userInterface) {
@@ -197,9 +207,15 @@ const EzFormView = class {
197
207
  ].includes(userInterface);
198
208
  }
199
209
  buildFormItemElement(item, classItem = "") {
210
+ var _a;
200
211
  if (this.isItemFullWidth(item.userInterface)) {
201
212
  classItem += " input-full_width";
202
213
  }
214
+ if (this._customEditors.has(item.name)) {
215
+ const value = (_a = this._formElements.map(el => ({ name: el.dataset.fieldName, value: el['value'] })).find(field => field.name === item.name)) === null || _a === void 0 ? void 0 : _a.value;
216
+ const customEditor = this._customEditors.get(item.name).customEditor;
217
+ return index.h("div", { class: classItem }, index.h("ez-custom-form-input", { "data-field-name": item.name, customEditor: customEditor, formViewField: item, builderFallback: fieldBuilder, value: value }));
218
+ }
203
219
  return index.h("div", { class: classItem }, fieldBuilder(item));
204
220
  }
205
221
  render() {
@@ -849,6 +849,7 @@ const EzForm = class {
849
849
  this.ezFormSetFields = index.createEvent(this, "ezFormSetFields", 7);
850
850
  this.ezReady = index.createEvent(this, "ezReady", 7);
851
851
  this.formItemsReady = index.createEvent(this, "formItemsReady", 7);
852
+ this._customEditors = new Map();
852
853
  this.onDataUnitAction = (action) => {
853
854
  if (action.type === core.Action.METADATA_LOADED) {
854
855
  this.processMetadata();
@@ -867,6 +868,18 @@ const EzForm = class {
867
868
  validate() {
868
869
  return this._dataBinder.validate();
869
870
  }
871
+ /**
872
+ * Registra um editor customizado para campos da grade e formulário.
873
+ */
874
+ async addCustomEditor(fieldName, customEditor, detailContext) {
875
+ if (this._formView) {
876
+ this._formView.addCustomEditor(fieldName, customEditor, detailContext);
877
+ return;
878
+ }
879
+ const newCustomEditors = new Map(this._customEditors);
880
+ newCustomEditors.set(fieldName, { customEditor, detailContext });
881
+ this._customEditors = newCustomEditors;
882
+ }
870
883
  observeConfig() {
871
884
  this.processMetadata();
872
885
  }
@@ -905,7 +918,7 @@ const EzForm = class {
905
918
  }
906
919
  this.ezFormSetFields.emit(fields);
907
920
  const idFormSheet = `${core.StringUtils.replaceAccentuatedChars(core.StringUtils.toCamelCase(currentSheet === null || currentSheet === void 0 ? void 0 : currentSheet.label), false)}_selectorContainer`;
908
- return (index.h("div", { class: "dynamic-content", "data-element-id": idFormSheet }, index.h("ez-form-view", { ref: ref => this._formView = ref, class: "ez-row ez-padding-vertical--small", fields: fields })));
921
+ return (index.h("div", { class: "dynamic-content", "data-element-id": idFormSheet }, index.h("ez-form-view", { ref: (element) => (this._formView = element), class: "ez-row ez-padding-vertical--small", fields: fields })));
909
922
  }
910
923
  processMetadata() {
911
924
  if (this.bindFields() && this.dataUnit && this._store) {
@@ -939,8 +952,18 @@ const EzForm = class {
939
952
  this._dataBinder.bind(Array.from(this._element.querySelectorAll("[data-field-name]")), this.dataUnit.dataUnitId, metadata, this.recordsValidator);
940
953
  this.ezReady.emit();
941
954
  this.handleFieldToFocus();
955
+ this.setCustomEditors();
942
956
  this.setFieldsProps();
943
957
  }
958
+ setCustomEditors() {
959
+ if (!this._formView) {
960
+ return;
961
+ }
962
+ for (const [fieldName, customEditorProps] of this._customEditors) {
963
+ this._formView.addCustomEditor(fieldName, customEditorProps.customEditor, customEditorProps.detailContext);
964
+ this._customEditors.delete(fieldName);
965
+ }
966
+ }
944
967
  handleFieldToFocus() {
945
968
  var _a;
946
969
  if (this.fieldToFocus == undefined) {
@@ -8,6 +8,7 @@ const DataUnit = require('@sankhyalabs/core/dist/dataunit/DataUnit');
8
8
  const ApplicationUtils = require('./ApplicationUtils-c9d1205c.js');
9
9
  require('./DialogType-2114c337.js');
10
10
  require('./CheckMode-ecb90b87.js');
11
+ const ICustomRender = require('./ICustomRender-6fafffce.js');
11
12
  const constants = require('./constants-2714478b.js');
12
13
  const RecordValidationProcessor = require('./RecordValidationProcessor-4c893e04.js');
13
14
 
@@ -119414,9 +119415,9 @@ class EzCellEditor {
119414
119415
  init(params) {
119415
119416
  const fieldName = params.column.getColId();
119416
119417
  const dataUnit = params.context.dataUnit;
119417
- const fieldMetadata = buildEditorMetadata(dataUnit.getField(fieldName), params.eGridCell, dataUnit, params.context.editionManager);
119418
- const builder = uiBuilders.get(fieldMetadata.userInterface) || buildTextInput;
119419
- this._gui = builder(fieldMetadata);
119418
+ this._fieldMetadata = buildEditorMetadata(dataUnit.getField(fieldName), params.eGridCell, dataUnit, params.context.editionManager);
119419
+ const builder = uiBuilders.get(this._fieldMetadata.userInterface) || buildTextInput;
119420
+ this._gui = builder(this._fieldMetadata);
119420
119421
  if (this._gui.valueSetter != undefined) {
119421
119422
  this._gui.valueSetter(params.value);
119422
119423
  }
@@ -119440,10 +119441,147 @@ class EzCellEditor {
119440
119441
  isPopup() {
119441
119442
  return this._gui.isPopUp;
119442
119443
  }
119444
+ getFieldMetadata() {
119445
+ return this._fieldMetadata;
119446
+ }
119447
+ }
119448
+
119449
+ class EzGridCustomCellEditor extends EzCellEditor {
119450
+ init(params) {
119451
+ var _a, _b;
119452
+ this._value = params.value;
119453
+ this._fieldName = params.column.getColId();
119454
+ this._customEditorInstance = params.customEditorsInfo.customEditor;
119455
+ super.init(params);
119456
+ this._defaultGui = this.getDefaultGui();
119457
+ const fieldMetadata = super.getFieldMetadata();
119458
+ this._params = {
119459
+ value: params.value,
119460
+ charPress: params.charPress,
119461
+ currentEditor: this._defaultGui,
119462
+ name: this._fieldName,
119463
+ source: ICustomRender.CustomEditorSource.GRID,
119464
+ detailContext: params.customEditorsInfo.detailContext,
119465
+ setValue: (value) => this.setValue(value),
119466
+ getValue: () => this.getValue(),
119467
+ editorMetadata: {
119468
+ hidden: ((_a = fieldMetadata.props) === null || _a === void 0 ? void 0 : _a.visible) === false,
119469
+ label: fieldMetadata.label,
119470
+ userInterface: fieldMetadata.userInterface,
119471
+ props: fieldMetadata.props,
119472
+ optionLoader: fieldMetadata.optionLoader,
119473
+ options: ((_b = fieldMetadata.props) === null || _b === void 0 ? void 0 : _b.options) || {},
119474
+ }
119475
+ };
119476
+ }
119477
+ getDefaultGui() {
119478
+ const gui = super.getGui();
119479
+ gui.value = this._value;
119480
+ gui.onkeyup = (event) => {
119481
+ const value = event.target.value;
119482
+ this.setValue(value);
119483
+ };
119484
+ return gui;
119485
+ }
119486
+ getGui() {
119487
+ const editorElement = this._customEditorInstance.getEditorElement(this._params);
119488
+ if (!editorElement) {
119489
+ return this._defaultGui;
119490
+ }
119491
+ if (typeof editorElement === 'string') {
119492
+ const element = core.HTMLBuilder.parseElement(editorElement);
119493
+ return element;
119494
+ }
119495
+ return editorElement;
119496
+ }
119497
+ setValue(value) {
119498
+ this._value = value;
119499
+ }
119500
+ getValue() {
119501
+ return this._value;
119502
+ }
119503
+ }
119504
+
119505
+ class EzCellRender {
119506
+ init(params) {
119507
+ const span = document.createElement('span');
119508
+ this._currentParams = params;
119509
+ span.textContent = params.value;
119510
+ const fieldName = params.column.getColId();
119511
+ const dataUnit = params.context.dataUnit;
119512
+ this._fieldMetadata = buildEditorMetadata(dataUnit.getField(fieldName), params.eGridCell, dataUnit, params.context.editionManager);
119513
+ this._gui = span;
119514
+ }
119515
+ refresh() {
119516
+ try {
119517
+ this._currentParams.refreshCell();
119518
+ return true;
119519
+ }
119520
+ catch (_a) {
119521
+ return false;
119522
+ }
119523
+ }
119524
+ getGui() {
119525
+ return this._gui;
119526
+ }
119527
+ afterGuiAttached() {
119528
+ this.focusIn();
119529
+ }
119530
+ focusIn() {
119531
+ this._gui.focus();
119532
+ this._gui.setFocus({ selectText: true });
119533
+ }
119534
+ getValue() {
119535
+ return this._currentParams.getValue();
119536
+ }
119537
+ isPopup() {
119538
+ return this._gui.isPopUp;
119539
+ }
119540
+ getFieldMetadata() {
119541
+ return this._fieldMetadata;
119542
+ }
119543
+ }
119544
+
119545
+ class EzGridCustomCellRender extends EzCellRender {
119546
+ init(params) {
119547
+ var _a, _b;
119548
+ this._fieldName = params.column.getColId();
119549
+ this._customRenderInstance = params.customRendersInfo.customRender;
119550
+ super.init(params);
119551
+ const fieldMetadata = super.getFieldMetadata();
119552
+ this._params = {
119553
+ value: params.value,
119554
+ charPress: '',
119555
+ currentRender: super.getGui(),
119556
+ name: this._fieldName,
119557
+ source: ICustomRender.CustomRenderSource.GRID,
119558
+ getValue: () => params.getValue(),
119559
+ detailContext: params.customRendersInfo.detailContext,
119560
+ renderMetadata: {
119561
+ hidden: ((_a = fieldMetadata.props) === null || _a === void 0 ? void 0 : _a.visible) === false,
119562
+ label: fieldMetadata.label,
119563
+ userInterface: fieldMetadata.userInterface,
119564
+ props: fieldMetadata.props,
119565
+ optionLoader: fieldMetadata.optionLoader,
119566
+ options: ((_b = fieldMetadata.props) === null || _b === void 0 ? void 0 : _b.options) || {},
119567
+ }
119568
+ };
119569
+ }
119570
+ getGui() {
119571
+ const editorElement = this._customRenderInstance.getRenderElement(this._params);
119572
+ if (!editorElement) {
119573
+ return super.getGui();
119574
+ }
119575
+ if (typeof editorElement === 'string') {
119576
+ const element = core.HTMLBuilder.parseElement(editorElement);
119577
+ return element;
119578
+ }
119579
+ return editorElement;
119580
+ }
119443
119581
  }
119444
119582
 
119445
119583
  class GridEditionManager {
119446
- constructor(dataUnit, useEnterLikeTab, recordsValidator, editionIsDisabled) {
119584
+ constructor(dataUnit, useEnterLikeTab, recordsValidator, editionIsDisabled, customEditors, customRenders) {
119447
119585
  this._dataUnit = dataUnit;
119448
119586
  this._recordValidationProcessor = new RecordValidationProcessor.RecordValidationProcessor(this._dataUnit, {
119449
119587
  getRequiredFields: () => this.getRequiredFields(),
@@ -119452,6 +119590,8 @@ class GridEditionManager {
119452
119590
  }, recordsValidator);
119453
119591
  this._useEnterLikeTab = useEnterLikeTab;
119454
119592
  this._editionIsDisabled = editionIsDisabled;
119593
+ this._customEditors = customEditors;
119594
+ this._customRenders = customRenders;
119455
119595
  }
119456
119596
  configureGrid(options) {
119457
119597
  this._gridOptions = options;
@@ -119518,6 +119658,30 @@ class GridEditionManager {
119518
119658
  col.suppressKeyboardEvent = (params) => {
119519
119659
  return params.event.key === KeyCode.ENTER;
119520
119660
  };
119661
+ col.cellEditorSelector = (params) => {
119662
+ var _a;
119663
+ if ((_a = this._customEditors) === null || _a === void 0 ? void 0 : _a.has(params.colDef.field)) {
119664
+ const customEditor = this._customEditors.get(params.colDef.field);
119665
+ return {
119666
+ component: EzGridCustomCellEditor,
119667
+ params: {
119668
+ customEditorsInfo: customEditor,
119669
+ }
119670
+ };
119671
+ }
119672
+ };
119673
+ col.cellRendererSelector = (params) => {
119674
+ var _a;
119675
+ if ((_a = this._customRenders) === null || _a === void 0 ? void 0 : _a.has(params.colDef.field)) {
119676
+ const customRender = this._customRenders.get(params.colDef.field);
119677
+ return {
119678
+ component: EzGridCustomCellRender,
119679
+ params: {
119680
+ customRendersInfo: customRender,
119681
+ }
119682
+ };
119683
+ }
119684
+ };
119521
119685
  return col;
119522
119686
  }
119523
119687
  getRequiredFields() {
@@ -119659,6 +119823,12 @@ class GridEditionManager {
119659
119823
  this._lastCellEdited = { rowIndex: event.rowIndex, column: event.column, rowPinned: undefined };
119660
119824
  }
119661
119825
  }
119826
+ setCellEditors(customEditors) {
119827
+ this._customEditors = customEditors;
119828
+ }
119829
+ setCellRenders(customRenders) {
119830
+ this._customRenders = customRenders;
119831
+ }
119662
119832
  }
119663
119833
  class TargetEdition {
119664
119834
  constructor(rowIndex, column, backwards) {
@@ -119787,7 +119957,7 @@ class AgGridController {
119787
119957
  this._doubleClickCallBack = options.onDoubleClick;
119788
119958
  this._multipleSelection = options.allowMultipleSelection;
119789
119959
  this._dataUnit = options.dataUnit;
119790
- this._editionManager = new GridEditionManager(this._dataUnit, options.useEnterLikeTab, options.recordsValidator, options.editionIsDisabled);
119960
+ this._editionManager = new GridEditionManager(this._dataUnit, options.useEnterLikeTab, options.recordsValidator, options.editionIsDisabled, options.customEditors || this._customEditors, options.customRenders || this._customRenders);
119791
119961
  this._statusResolver = options.statusResolver;
119792
119962
  if (this._dataUnit) {
119793
119963
  this._dataUnit.sortingProvider = this;
@@ -120517,6 +120687,24 @@ class AgGridController {
120517
120687
  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;
120518
120688
  return labelSize > this.DEFAULT_MAX_SIZE ? this.DEFAULT_MAX_SIZE : labelSize;
120519
120689
  }
120690
+ setCellEditors(customEditors) {
120691
+ var _a;
120692
+ if (!this._editionManager) {
120693
+ this._customEditors = customEditors;
120694
+ return;
120695
+ }
120696
+ this._editionManager.setCellEditors(customEditors);
120697
+ (_a = this._gridOptions) === null || _a === void 0 ? void 0 : _a.api.redrawRows();
120698
+ }
120699
+ setCellRenders(customRenders) {
120700
+ var _a;
120701
+ if (!this._editionManager) {
120702
+ this._customRenders = customRenders;
120703
+ return;
120704
+ }
120705
+ this._editionManager.setCellRenders(customRenders);
120706
+ (_a = this._gridOptions) === null || _a === void 0 ? void 0 : _a.api.redrawRows();
120707
+ }
120520
120708
  }
120521
120709
 
120522
120710
  function enableSelectAll(total) {
@@ -120538,10 +120726,8 @@ function getText(selectionCount, allSelectedRecords) {
120538
120726
  if (allSelectedRecords) {
120539
120727
  return `Todos os <strong>${selectionCount} registros</strong> da grade estão selecionados.`;
120540
120728
  }
120541
- if (selectionCount > 1) {
120542
- return `Os <strong>${selectionCount} registros</strong> dessa página estão selecionados.`;
120543
- }
120544
- return "O único registro dessa página está selecionado";
120729
+ const pluralCharacter = selectionCount > 1 ? "s" : "";
120730
+ return ` <strong>${selectionCount} registro${pluralCharacter}</strong> selecionado${pluralCharacter} na grade.`;
120545
120731
  }
120546
120732
 
120547
120733
  const SelectionCounter = (props) => {
@@ -120744,6 +120930,8 @@ const EzGrid = class {
120744
120930
  this.componentReady = index.createEvent(this, "componentReady", 7);
120745
120931
  this._gridController = new AgGridController(false);
120746
120932
  this._messageFilterAppliedSuccess = 'Filtro de coluna aplicado com sucesso!';
120933
+ this._customEditor = new Map();
120934
+ this._customRenders = new Map();
120747
120935
  this._paginationInfo = undefined;
120748
120936
  this._paginationChangedByKeyboard = true;
120749
120937
  this._showSelectionCounter = false;
@@ -120823,6 +121011,27 @@ const EzGrid = class {
120823
121011
  async filterColumns(search) {
120824
121012
  return Promise.resolve(this._gridController.getColumnsState().filter(col => matches(col.label, search)));
120825
121013
  }
121014
+ /**
121015
+ * Registra um editor customizado para campos da grade e formulário.
121016
+ */
121017
+ async addCustomEditor(fieldName, customEditor, detailContext) {
121018
+ const newCustomEditor = new Map(this._customEditor);
121019
+ newCustomEditor.set(fieldName, {
121020
+ customEditor,
121021
+ detailContext,
121022
+ });
121023
+ this._customEditor = newCustomEditor;
121024
+ this._gridController.setCellEditors(newCustomEditor);
121025
+ }
121026
+ /**
121027
+ * Registra um render customizado para colunas da grid.
121028
+ */
121029
+ async addGridCustomRender(fieldName, customRender, detailContext) {
121030
+ const newCustomRenders = new Map(this._customRenders);
121031
+ newCustomRenders.set(fieldName, { customRender, detailContext });
121032
+ this._customRenders = newCustomRenders;
121033
+ this._gridController.setCellRenders(newCustomRenders);
121034
+ }
120826
121035
  /**
120827
121036
  * Registra um formatador de valores para uma coluna da grid.
120828
121037
  */
@@ -8,6 +8,7 @@ const core = require('@sankhyalabs/core');
8
8
  const ApplicationUtils = require('./ApplicationUtils-c9d1205c.js');
9
9
  require('./DialogType-2114c337.js');
10
10
  require('./CheckMode-ecb90b87.js');
11
+ require('./ICustomRender-6fafffce.js');
11
12
  const constants = require('./constants-2714478b.js');
12
13
 
13
14
  const ezSearchCss = ":host{--ez-search--height:42px;--ez-search--width:100%;--ez-search__icon--width:48px;--ez-search--border-radius:var(--border--radius-medium, 12px);--ez-search--border-radius-small:var(--border--radius-small, 6px);--ez-search--font-size:var(--text--medium, 14px);--ez-search--font-family:var(--font-pattern, Arial);--ez-search--font-weight--large:var(--text-weight--large, 500);--ez-search--font-weight--medium:var(--text-weight--medium, 400);--ez-search--background-color--xlight:var(--background--xlight, #fff);--ez-search--background-medium:var(--background--medium, #f0f3f7);--ez-search--line-height:calc(var(--text--medium, 14px) + 4px);--ez-search__input--background-color:var(--background--medium, #e0e0e0);--ez-search__input--border:var(--border--medium, 2px solid);--ez-search__input--border-color:var(--ez-search__input--background-color);--ez-search__input--focus--border-color:var(--color--primary, #008561);--ez-search__input--disabled--background-color:var(--color--disable-secondary, #F2F5F8);--ez-search__input--disabled--color:var(--text--disable, #AFB6C0);--ez-search__input--error--border-color:#CC2936;--ez-search__btn--color:var(--title--primary, #2B3A54);--ez-search__btn-disabled--color:var(--text--disable, #AFB6C0);--ez-search__btn-hover--color:var(--color--primary, #4e4e4e);--ez-search__label--color:var(--title--primary, #2B3A54);--ez-search__list-title--primary:var(--title--primary, #2B3A54);--ez-search__list-text--primary:var(--text--primary, #626e82);--ez-search__list-height:calc(var(--ez-search--font-size) + var(--ez-search--space--medium) + 4px);--ez-search__list-min-width:64px;--ez-search--space--medium:var(--space--medium, 12px);--ez-search--space--small:var(--space--small, 6px);--ez-search__scrollbar--color-default:var(--scrollbar--default, #626e82);--ez-search__scrollbar--color-background:var(--scrollbar--background, #E5EAF0);--ez-search__scrollbar--color-hover:var(--scrollbar--hover, #2B3A54);--ez-search__scrollbar--color-clicked:var(--scrollbar--clicked, #a2abb9);--ez-search__scrollbar--border-radius:var(--border--radius-small, 6px);--ez-search__scrollbar--width:var(--space--medium, 12px);display:flex;flex-wrap:wrap;position:relative;width:var(--ez-search--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{min-width:var(--ez-search__list-min-width);overflow:auto;position:relative;width:100%}.list-wrapper{display:flex;flex-direction:column;box-sizing:border-box;width:0;z-index:var(--more-visible, 2);max-height:350px;min-width:150px;background-color:var(--ez-search--background-color--xlight);border-radius:var(--ez-search--border-radius);box-shadow:var(--shadow, 0px 0px 16px 0px #000);padding:var(--ez-search--space--small)}.list-options{box-sizing:border-box;width:100%;height:100%;padding:0;display:flex;flex-direction:column;scroll-behavior:smooth;overflow:auto;scrollbar-width:thin;gap:3px;scrollbar-color:var(--ez-search__scrollbar--color-clicked) var(--ez-search__scrollbar--color-background)}.list-options::-webkit-scrollbar{background-color:var(--ez-search__scrollbar--color-background);width:var(--ez-search__scrollbar--width);max-width:var(--ez-search__scrollbar--width);min-width:var(--ez-search__scrollbar--width)}.list-options::-webkit-scrollbar-track{background-color:var(--ez-search__scrollbar--color-background);border-radius:var(--ez-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb{background-color:var(--ez-search__scrollbar--color-default);border-radius:var(--ez-search__scrollbar--border-radius)}.list-options::-webkit-scrollbar-thumb:vertical:hover,.list-options::-webkit-scrollbar-thumb:horizontal:hover{background-color:var(--ez-search__scrollbar--color-hover)}.list-options::-webkit-scrollbar-thumb:vertical:active,.list-options::-webkit-scrollbar-thumb:horizontal:active{background-color:var(--ez-search__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-search--border-radius-small);padding:var(--ez-search--space--small);gap:var(--space--small, 6px)}.item__value,.item__label{flex-basis:auto;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--ez-search__list-title--primary);font-family:var(--ez-search--font-family);font-size:var(--ez-search--font-size);line-height:var(--ez-search--line-height)}.item__label{font-weight:var(--ez-search--font-weight--medium)}.item__label--bold{font-weight:var(--ez-search--font-weight--large)}.item__value{text-align:center;color:var(--ez-search__list-text--primary);font-weight:var(--ez-search--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-search__list-height)}.message__no-result{color:var(--ez-search__list-title--primary);font-family:var(--ez-search--font-family);font-size:var(--ez-search--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-search__list-title--primary);border-top:3px solid transparent}.item__list>li:hover{background-color:var(--ez-search--background-medium)}.preselected{background-color:var(--background--medium)}.btn{outline:none;border:none;background:none;cursor:pointer;color:var(--ez-search__btn--color)}.btn:disabled{cursor:unset;color:var(--ez-search__btn-disabled--color)}.btn:disabled:hover{cursor:unset;color:var(--ez-search__btn-disabled--color)}.btn:hover{color:var(--ez-search__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)}}";
@@ -8,6 +8,7 @@ const CSSVarsUtils = require('./CSSVarsUtils-10c9d5b4.js');
8
8
  require('./DialogType-2114c337.js');
9
9
  require('./CheckMode-ecb90b87.js');
10
10
  require('@sankhyalabs/core');
11
+ require('./ICustomRender-6fafffce.js');
11
12
 
12
13
  const ezSplitItemCss = ".box_split-item{background-color:var(--background--xlight);width:100%;height:100%;border-radius:var(--border--radius-medium);box-shadow:var(--shadow);flex-direction:column;overflow:hidden;display:flex;padding:var(--space--nano)}.box_split-item>.ez-split-item--content{overflow:auto}.expanded__item{position:absolute;z-index:var(--more-visible);top:0;left:0;width:100%;height:100%}.ez-split-item--header{display:flex;align-items:center;justify-content:space-between}.ez-split-item--header-title{flex:1;white-space:nowrap;overflow:hidden}.ez-split-item--header-title h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.ez-split-item--header-buttons{display:flex;align-items:center}.ez-split-item--content{display:block;height:100%}h3.ez-margin--small{margin-left:var(--space--small)}";
13
14