mmhglobal-dynamicform 2.40.0 → 3.0.0-beta

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 (234) hide show
  1. package/README.md +0 -11
  2. package/fesm2022/mmhglobal-dynamicform.mjs +15336 -0
  3. package/fesm2022/mmhglobal-dynamicform.mjs.map +1 -0
  4. package/{mmhglobal-dynamicform.d.ts → index.d.ts} +5 -5
  5. package/lib/animations/component-animations.d.ts +3 -3
  6. package/lib/components/{buttonfieldbase.component.d.ts → base/buttonfieldbase.component.d.ts} +18 -26
  7. package/lib/components/{containerfieldbase.component.d.ts → base/containerfieldbase.component.d.ts} +20 -25
  8. package/lib/components/{datalistingfieldbase.component.d.ts → base/datalistingfieldbase.component.d.ts} +45 -51
  9. package/lib/components/{fieldbase.component.d.ts → base/fieldbase.component.d.ts} +49 -49
  10. package/lib/components/{inputfieldbase.component.d.ts → base/inputfieldbase.component.d.ts} +23 -27
  11. package/lib/{dropdown_buttons → components/button/dropdown_buttons}/dropdown_buttons.component.d.ts +15 -21
  12. package/lib/components/button/zbuttons/zbuttons.component.d.ts +19 -0
  13. package/lib/{zchip → components/button/zchip}/zchip.component.d.ts +22 -26
  14. package/lib/{zmfb → components/button/zmfb}/zmfb.component.d.ts +38 -43
  15. package/lib/components/button/zworkflowbuttons/zworkflowbuttons.component.d.ts +29 -0
  16. package/lib/{zchart → components/chart/zchart}/zchart.component.d.ts +73 -71
  17. package/lib/{zganttchart → components/chart/zganttchart}/zganttchart.component.d.ts +40 -40
  18. package/lib/{zgauge → components/chart/zgauge}/zgauge.component.d.ts +67 -63
  19. package/lib/{zprogressbar → components/chart/zprogressbar}/zprogressbar.component.d.ts +29 -30
  20. package/lib/{zreport → components/chart/zreport}/zreport.component.d.ts +47 -53
  21. package/lib/{zscheduler → components/chart/zscheduler}/zscheduler.component.d.ts +53 -52
  22. package/lib/{zscheduler → components/chart/zscheduler}/zscheduler.toolbar.component.d.ts +20 -20
  23. package/lib/{ztrendcard → components/chart/ztrendcard}/ztrendcard.component.d.ts +40 -36
  24. package/lib/components/container/kcard/kcard.component.d.ts +21 -0
  25. package/lib/{kscrollview → components/container/kscrollview}/kscrollview.component.d.ts +19 -20
  26. package/lib/{ksplitter → components/container/ksplitter}/ksplitter.component.d.ts +18 -19
  27. package/lib/{zcard → components/container/zcard}/zcard.component.d.ts +12 -17
  28. package/lib/components/container/zdiv/zdiv.component.d.ts +12 -0
  29. package/lib/{zdiv → components/container/zdiv}/zdiv.pipe.d.ts +7 -7
  30. package/lib/{zloop → components/container/zloop}/zloop.component.d.ts +21 -24
  31. package/lib/{ztab → components/container/ztab}/ztab.component.d.ts +34 -38
  32. package/lib/{ztab → components/container/ztab}/ztab.pipe.d.ts +7 -7
  33. package/lib/{zudf → components/container/zudf}/zudf.component.d.ts +208 -212
  34. package/lib/{virtual-scroll → components/data-listing/virtual-scroll}/virtual-scroll.component.d.ts +40 -45
  35. package/lib/{zgrid → components/data-listing/zgrid}/container/zgrid-container.component.d.ts +27 -31
  36. package/lib/{zgrid → components/data-listing/zgrid}/date-range-cell-filter.component.d.ts +20 -19
  37. package/lib/{zgrid → components/data-listing/zgrid}/zgrid.binding.directive.d.ts +174 -168
  38. package/lib/{zgrid → components/data-listing/zgrid}/zgrid.component.d.ts +187 -186
  39. package/lib/{zgrid → components/data-listing/zgrid}/zgrid.popup.anchor-target.directive.d.ts +8 -8
  40. package/lib/{zgrid → components/data-listing/zgrid}/zgrid.service.d.ts +27 -27
  41. package/lib/{ztree → components/data-listing/ztree}/ztree.component.d.ts +77 -78
  42. package/lib/{ztreelist → components/data-listing/ztreelist}/ztreelist.component.d.ts +100 -107
  43. package/lib/{sfdatetimepicker → components/input/sfdatetimepicker}/sfdatetimepicker.component.d.ts +26 -31
  44. package/lib/{sfquerybuilder → components/input/sfquerybuilder}/sfquerybuilder.component.d.ts +71 -73
  45. package/lib/{zcheckbox → components/input/zcheckbox}/zcheckbox.component.d.ts +18 -20
  46. package/lib/components/input/zcodeeditor/zcodeeditor.component.d.ts +43 -0
  47. package/lib/components/input/zcodeeditor/zcodeeditor.service.d.ts +32 -0
  48. package/lib/{zcolorpicker → components/input/zcolorpicker}/zcolorpicker.component.d.ts +19 -25
  49. package/lib/{zdatetime → components/input/zdatetime}/dateIonicFormatParser.pipe.d.ts +10 -10
  50. package/lib/{zdatetime → components/input/zdatetime}/dateIonicMinMaxDate.pipe.d.ts +7 -7
  51. package/lib/{zdatetime → components/input/zdatetime}/dateKendoFormatParser.pipe.d.ts +10 -10
  52. package/lib/{zdatetime → components/input/zdatetime}/dateParser.pipe.d.ts +11 -11
  53. package/lib/{zdatetime → components/input/zdatetime}/zdatetime.component.d.ts +32 -32
  54. package/lib/{zimg → components/input/zimg}/zimg.component.d.ts +16 -20
  55. package/lib/{zinput-container → components/input/zinput-container}/zinput-container.component.d.ts +31 -38
  56. package/lib/{zinput-container → components/input/zinput-container}/zinput-container.pipe.d.ts +25 -25
  57. package/lib/{zlabel → components/input/zlabel}/zlabel.component.d.ts +20 -26
  58. package/lib/{znumeric → components/input/znumeric}/znumeric.component.d.ts +29 -31
  59. package/lib/{znumeric → components/input/znumeric}/znumeric.component.pipe.d.ts +10 -10
  60. package/lib/{zpostselectinput → components/input/zpostselectinput}/zpostselectinput.component.d.ts +48 -65
  61. package/lib/{zselectmultiple → components/input/zselectmultiple}/zselectmultiple.component.d.ts +105 -123
  62. package/lib/{zselectmultiple → components/input/zselectmultiple}/zselectmultiple.directive.d.ts +12 -12
  63. package/lib/{zselectmultiple → components/input/zselectmultiple}/zselectmultiple.pipe.d.ts +11 -11
  64. package/lib/{ztext → components/input/ztext}/ztext.component.d.ts +33 -33
  65. package/lib/{ztextarea → components/input/ztextarea}/ztextarea.component.d.ts +21 -25
  66. package/lib/{ztexteditor → components/input/ztexteditor}/ztexteditor.component.d.ts +44 -42
  67. package/lib/{zupload → components/input/zupload}/zupload.component.d.ts +45 -50
  68. package/lib/{embed-components → components/menu}/context-menu/context-menu.component.d.ts +24 -28
  69. package/lib/{kmenu → components/menu/kmenu}/kmenu.component.d.ts +13 -14
  70. package/lib/components/others/zform/zform.component.d.ts +30 -0
  71. package/lib/components/others/zformcontrol/zformcontrol.component.d.ts +21 -0
  72. package/lib/components/others/zformcontrol/zformcontrol.service.d.ts +12 -0
  73. package/lib/components/others/zmodal/zmodal-component-helper.service.d.ts +15 -0
  74. package/lib/components/others/zmodal/zmodal.component.d.ts +24 -0
  75. package/lib/components/others/zmodal/zmodal.service.d.ts +25 -0
  76. package/lib/components/others/zunknown/zunknown.component.d.ts +10 -0
  77. package/lib/components/utility/e1-root/e1-root.component.d.ts +20 -0
  78. package/lib/components/utility/input-error-message/input-error-message.component.d.ts +14 -0
  79. package/lib/{embed-components → components/utility}/input-field-addons/input-field-addons.component.d.ts +18 -23
  80. package/lib/{embed-components → components/utility}/page-loader/page-loader.component.d.ts +8 -8
  81. package/lib/{embed-components → components/utility}/processing-record-loader/processing-record-loader.component.d.ts +8 -8
  82. package/lib/{embed-components → components/utility}/spinner/spinner.component.d.ts +12 -14
  83. package/lib/components/utility/uiappmenucontent/uiappmenucontent.component.d.ts +17 -0
  84. package/lib/{uibulletin → components/utility/uibulletin}/uibulletin.component.d.ts +31 -36
  85. package/lib/{uicontainer → components/utility/uicontainer}/uicontainer.component.d.ts +16 -19
  86. package/lib/components/utility/uicontent/uicontent.component.d.ts +21 -0
  87. package/lib/components/utility/uiheader/uiheader.component.d.ts +40 -0
  88. package/lib/{uipage → components/utility/uipage}/uipage.component.d.ts +18 -23
  89. package/lib/constants/constant.d.ts +3 -3
  90. package/lib/directives/elementcontainer.directive.d.ts +8 -8
  91. package/lib/interfaces/modal.interface.d.ts +4 -0
  92. package/lib/pipe/htmlSanitize.pipe.d.ts +10 -10
  93. package/lib/pipe/panel-area.pipe.d.ts +7 -7
  94. package/lib/services/main.service.d.ts +136 -142
  95. package/lib/services/zcomponent.debug.service.d.ts +289 -68
  96. package/lib/services/zcomponent.service.d.ts +31 -44
  97. package/package.json +6 -13
  98. package/public-api.d.ts +93 -100
  99. package/styles/all.scss +643 -0
  100. package/styles/component.scss +0 -0
  101. package/styles/notificationkit.scss +53 -0
  102. package/esm2020/lib/animations/component-animations.mjs +0 -39
  103. package/esm2020/lib/components/buttonfieldbase.component.mjs +0 -80
  104. package/esm2020/lib/components/containerfieldbase.component.mjs +0 -50
  105. package/esm2020/lib/components/datalistingfieldbase.component.mjs +0 -277
  106. package/esm2020/lib/components/fieldbase.component.mjs +0 -178
  107. package/esm2020/lib/components/inputfieldbase.component.mjs +0 -202
  108. package/esm2020/lib/constants/constant.mjs +0 -4
  109. package/esm2020/lib/directives/elementcontainer.directive.mjs +0 -16
  110. package/esm2020/lib/directives/fieldelement.directive.mjs +0 -16
  111. package/esm2020/lib/directives/scrollbar.theme.directive.mjs +0 -45
  112. package/esm2020/lib/dropdown_buttons/dropdown_buttons.component.mjs +0 -109
  113. package/esm2020/lib/embed-components/context-menu/context-menu.component.mjs +0 -113
  114. package/esm2020/lib/embed-components/input-field-addons/input-field-addons.component.mjs +0 -93
  115. package/esm2020/lib/embed-components/page-loader/page-loader.component.mjs +0 -14
  116. package/esm2020/lib/embed-components/processing-record-loader/processing-record-loader.component.mjs +0 -14
  117. package/esm2020/lib/embed-components/spinner/spinner.component.mjs +0 -27
  118. package/esm2020/lib/ficon/ficon.component.mjs +0 -53
  119. package/esm2020/lib/input-error-message/input-error-message.component.mjs +0 -53
  120. package/esm2020/lib/kcard/kcard.component.mjs +0 -90
  121. package/esm2020/lib/kmenu/kmenu.component.mjs +0 -46
  122. package/esm2020/lib/kscrollview/kscrollview.component.mjs +0 -77
  123. package/esm2020/lib/ksplitter/ksplitter.component.mjs +0 -67
  124. package/esm2020/lib/mmhglobal-dynamicform.module.mjs +0 -657
  125. package/esm2020/lib/pipe/htmlSanitize.pipe.mjs +0 -18
  126. package/esm2020/lib/pipe/panel-area.pipe.mjs +0 -28
  127. package/esm2020/lib/services/main.service.mjs +0 -1307
  128. package/esm2020/lib/services/zcomponent.debug.service.mjs +0 -742
  129. package/esm2020/lib/services/zcomponent.service.mjs +0 -300
  130. package/esm2020/lib/sfdatetimepicker/sfdatetimepicker.component.mjs +0 -108
  131. package/esm2020/lib/sfquerybuilder/sfquerybuilder.component.mjs +0 -501
  132. package/esm2020/lib/uiactionbutton/uiactionbutton.component.mjs +0 -229
  133. package/esm2020/lib/uiappmenucontent/uiappmenucontent.component.mjs +0 -55
  134. package/esm2020/lib/uibulletin/uibulletin.component.mjs +0 -96
  135. package/esm2020/lib/uicontainer/uicontainer.component.mjs +0 -41
  136. package/esm2020/lib/uicontent/uicontent.component.mjs +0 -63
  137. package/esm2020/lib/uiheader/uiheader.component.mjs +0 -116
  138. package/esm2020/lib/uiheader/uiheader.service.mjs +0 -27
  139. package/esm2020/lib/uimenubutton/uimenubutton.component.mjs +0 -36
  140. package/esm2020/lib/uimenucontent/uimenucontent.component.mjs +0 -38
  141. package/esm2020/lib/uipage/uipage.component.mjs +0 -160
  142. package/esm2020/lib/uivalidationmessage/uivalidationmessage.component.mjs +0 -40
  143. package/esm2020/lib/virtual-scroll/virtual-scroll.component.mjs +0 -249
  144. package/esm2020/lib/zbullet/zbullet.component.mjs +0 -77
  145. package/esm2020/lib/zbuttons/zbuttons.component.mjs +0 -151
  146. package/esm2020/lib/zcard/zcard.component.mjs +0 -36
  147. package/esm2020/lib/zchart/zchart.component.mjs +0 -222
  148. package/esm2020/lib/zcheckbox/zcheckbox.component.mjs +0 -42
  149. package/esm2020/lib/zchip/zchip.component.mjs +0 -119
  150. package/esm2020/lib/zcodeeditor/zcodeeditor.component.mjs +0 -169
  151. package/esm2020/lib/zcodeeditor/zcodeeditor.pipe.mjs +0 -60
  152. package/esm2020/lib/zcolorpicker/zcolorpicker.component.mjs +0 -47
  153. package/esm2020/lib/zdaterange/zdaterange.component.mjs +0 -72
  154. package/esm2020/lib/zdatetime/dateIonicFormatParser.pipe.mjs +0 -40
  155. package/esm2020/lib/zdatetime/dateIonicMinMaxDate.pipe.mjs +0 -22
  156. package/esm2020/lib/zdatetime/dateKendoFormatParser.pipe.mjs +0 -41
  157. package/esm2020/lib/zdatetime/dateParser.pipe.mjs +0 -36
  158. package/esm2020/lib/zdatetime/zdatetime.component.mjs +0 -134
  159. package/esm2020/lib/zdiv/zdiv.component.mjs +0 -79
  160. package/esm2020/lib/zdiv/zdiv.pipe.mjs +0 -31
  161. package/esm2020/lib/zform/zform.component.mjs +0 -188
  162. package/esm2020/lib/zformcontrol/zformcontrol.component.mjs +0 -51
  163. package/esm2020/lib/zganttchart/zganttchart.component.mjs +0 -160
  164. package/esm2020/lib/zgauge/zgauge.component.mjs +0 -122
  165. package/esm2020/lib/zgrid/container/zgrid-container.component.mjs +0 -107
  166. package/esm2020/lib/zgrid/date-range-cell-filter.component.mjs +0 -146
  167. package/esm2020/lib/zgrid/zgrid.binding.directive.mjs +0 -881
  168. package/esm2020/lib/zgrid/zgrid.component.mjs +0 -1131
  169. package/esm2020/lib/zgrid/zgrid.popup.anchor-target.directive.mjs +0 -17
  170. package/esm2020/lib/zgrid/zgrid.service.mjs +0 -113
  171. package/esm2020/lib/zimg/zimg.component.mjs +0 -61
  172. package/esm2020/lib/zinput-container/zinput-container.component.mjs +0 -91
  173. package/esm2020/lib/zinput-container/zinput-container.pipe.mjs +0 -132
  174. package/esm2020/lib/zlabel/zlabel.component.mjs +0 -52
  175. package/esm2020/lib/zloop/zloop.component.mjs +0 -123
  176. package/esm2020/lib/zmfb/zmfb.component.mjs +0 -217
  177. package/esm2020/lib/zmodal/zmodal-mobile.component.mjs +0 -124
  178. package/esm2020/lib/zmodal/zmodal.component.mjs +0 -129
  179. package/esm2020/lib/znumeric/znumeric.component.mjs +0 -110
  180. package/esm2020/lib/znumeric/znumeric.component.pipe.mjs +0 -19
  181. package/esm2020/lib/zpostselectinput/zpostselectinput.component.mjs +0 -315
  182. package/esm2020/lib/zprogressbar/zprogressbar.component.mjs +0 -61
  183. package/esm2020/lib/zradiobutton/zradiobutton.component.mjs +0 -106
  184. package/esm2020/lib/zreport/zreport.component.mjs +0 -184
  185. package/esm2020/lib/zscheduler/zscheduler.component.mjs +0 -271
  186. package/esm2020/lib/zscheduler/zscheduler.toolbar.component.mjs +0 -150
  187. package/esm2020/lib/zselectmultiple/zselectmultiple.component.mjs +0 -689
  188. package/esm2020/lib/zselectmultiple/zselectmultiple.directive.mjs +0 -35
  189. package/esm2020/lib/zselectmultiple/zselectmultiple.pipe.mjs +0 -29
  190. package/esm2020/lib/ztab/ztab.component.mjs +0 -211
  191. package/esm2020/lib/ztab/ztab.pipe.mjs +0 -28
  192. package/esm2020/lib/ztext/ztext.component.mjs +0 -167
  193. package/esm2020/lib/ztextarea/ztextarea.component.mjs +0 -66
  194. package/esm2020/lib/ztexteditor/ztexteditor.component.mjs +0 -135
  195. package/esm2020/lib/ztree/ztree.component.mjs +0 -539
  196. package/esm2020/lib/ztreelist/ztreelist.component.mjs +0 -546
  197. package/esm2020/lib/ztrendcard/ztrendcard.component.mjs +0 -106
  198. package/esm2020/lib/zudf/zudf.component.mjs +0 -1016
  199. package/esm2020/lib/zunknown/zunknown.component.mjs +0 -20
  200. package/esm2020/lib/zupload/zupload.component.mjs +0 -403
  201. package/esm2020/lib/zworkflowbuttons/zworkflowbuttons.component.mjs +0 -244
  202. package/esm2020/mmhglobal-dynamicform.mjs +0 -5
  203. package/esm2020/public-api.mjs +0 -107
  204. package/fesm2015/mmhglobal-dynamicform.mjs +0 -16119
  205. package/fesm2015/mmhglobal-dynamicform.mjs.map +0 -1
  206. package/fesm2020/mmhglobal-dynamicform.mjs +0 -16079
  207. package/fesm2020/mmhglobal-dynamicform.mjs.map +0 -1
  208. package/lib/directives/fieldelement.directive.d.ts +0 -8
  209. package/lib/directives/scrollbar.theme.directive.d.ts +0 -10
  210. package/lib/ficon/ficon.component.d.ts +0 -34
  211. package/lib/input-error-message/input-error-message.component.d.ts +0 -19
  212. package/lib/kcard/kcard.component.d.ts +0 -25
  213. package/lib/mmhglobal-dynamicform.module.d.ts +0 -133
  214. package/lib/uiactionbutton/uiactionbutton.component.d.ts +0 -39
  215. package/lib/uiappmenucontent/uiappmenucontent.component.d.ts +0 -27
  216. package/lib/uicontent/uicontent.component.d.ts +0 -29
  217. package/lib/uiheader/uiheader.component.d.ts +0 -39
  218. package/lib/uiheader/uiheader.service.d.ts +0 -11
  219. package/lib/uimenubutton/uimenubutton.component.d.ts +0 -20
  220. package/lib/uimenucontent/uimenucontent.component.d.ts +0 -24
  221. package/lib/uivalidationmessage/uivalidationmessage.component.d.ts +0 -21
  222. package/lib/zbullet/zbullet.component.d.ts +0 -27
  223. package/lib/zbuttons/zbuttons.component.d.ts +0 -25
  224. package/lib/zcodeeditor/zcodeeditor.component.d.ts +0 -43
  225. package/lib/zcodeeditor/zcodeeditor.pipe.d.ts +0 -12
  226. package/lib/zdaterange/zdaterange.component.d.ts +0 -29
  227. package/lib/zdiv/zdiv.component.d.ts +0 -22
  228. package/lib/zform/zform.component.d.ts +0 -38
  229. package/lib/zformcontrol/zformcontrol.component.d.ts +0 -25
  230. package/lib/zmodal/zmodal-mobile.component.d.ts +0 -38
  231. package/lib/zmodal/zmodal.component.d.ts +0 -44
  232. package/lib/zradiobutton/zradiobutton.component.d.ts +0 -34
  233. package/lib/zunknown/zunknown.component.d.ts +0 -17
  234. package/lib/zworkflowbuttons/zworkflowbuttons.component.d.ts +0 -32
@@ -1,168 +1,174 @@
1
- /********** Angular **********/
2
- import { OnInit, OnDestroy } from "@angular/core";
3
- /********** Ionic **********/
4
- /********** Plugin **********/
5
- import { Subject } from "rxjs";
6
- import { DataBindingDirective, DataStateChangeEvent, PageChangeEvent } from "@progress/kendo-angular-grid";
7
- import { SortDescriptor } from "@progress/kendo-data-query";
8
- /********** Component & Service **********/
9
- import { ZGridService } from "./zgrid.service";
10
- import { ZField, ZGridPostApiParams, WebApiService, ZGroup, ToastService, SignalrService, ZGridSettings, LoggingService, StateSettingService } from "mmhglobal-zcore";
11
- import { ZComponentService } from "../services/zcomponent.service";
12
- import * as i0 from "@angular/core";
13
- export declare class ZGridBindingDirective extends DataBindingDirective implements OnInit, OnDestroy {
14
- private webapiService;
15
- private toastService;
16
- private signalrService;
17
- private gridService;
18
- private loggingService;
19
- private stateSettingService;
20
- private componentService;
21
- private changeEvent;
22
- zgridbinding: {
23
- data: ZField;
24
- group: ZGroup;
25
- params: ZGridPostApiParams;
26
- gridSubject: Subject<any>;
27
- gridSetting: ZGridSettings;
28
- };
29
- resourceURL: any;
30
- paginationApiPostUrl: any;
31
- dataSource: any;
32
- get gridSetting(): ZGridSettings;
33
- set gridSetting(value: ZGridSettings);
34
- get field(): ZField;
35
- get grp(): ZGroup;
36
- get gridSubject(): Subject<any>;
37
- get params(): ZGridPostApiParams;
38
- get getData(): any[] | import("@progress/kendo-angular-grid").GridDataResult;
39
- constructor(grid: any, // Injecting GridComponent provides access to the scope and context of the GridComponent.
40
- webapiService: WebApiService, toastService: ToastService, signalrService: SignalrService, gridService: ZGridService, loggingService: LoggingService, stateSettingService: StateSettingService, componentService: ZComponentService);
41
- ngOnInit(): void;
42
- ngAfterViewInit(): void;
43
- ngOnDestroy(): void;
44
- private retrieveGridStateCache;
45
- setResourceUrl(resourceUrl: string): void;
46
- private setFilterParamsByParentRefId;
47
- private getFieldReferenceId;
48
- generateGridColumns(): void;
49
- setSkipLoadResourceURLData(settingValue: boolean): void;
50
- /**
51
- * Update the title of a column in the grid setting based on its value.
52
- *
53
- * @param {string} colValue - The value of the column to update.
54
- * @param {string} colName - The new title for the column.
55
- * @returns {void}
56
- */
57
- setColumnName(colValue: string, colName: string): void;
58
- /**
59
- * Set the visibility of a column in the grid based on its value.
60
- *
61
- * @param {string} colValue - The value of the column to set visibility for.
62
- * @param {boolean} isVisible - Whether the column should be visible (true) or hidden (false).
63
- * @returns {void}
64
- */
65
- setColumnVisible(colValue: string, isVisible: boolean): void;
66
- /**
67
- * Generate filter parameters for columns and set them in the 'params' object.
68
- *
69
- * @returns {void}
70
- */
71
- private getFilterParamsColumns;
72
- /**
73
- * Update the 'params.filters' property based on the 'field.Filters' property.
74
- *
75
- * @returns {void}
76
- */
77
- private getFilter;
78
- /**
79
- * Set the filter parameters in the 'params.filterParams' property based on 'field['FilterParams']'. filterParams === used for the input in the column filter at the UI.
80
- *
81
- * @returns {void}
82
- */
83
- private getFilterParams;
84
- /**
85
- * Set the sorting order in the 'params.sortOrder' property based on 'field.SortOrder'.
86
- *
87
- * @returns {void}
88
- */
89
- private getSorting;
90
- /**
91
- * Set the grant type in the 'params.grantType' property based on 'field.GrantType'.
92
- *
93
- * @returns {void}
94
- */
95
- private getGrantType;
96
- /**
97
- * Set the 'hidden' property for columns in 'gridSetting' based on 'columnConfigs'.
98
- *
99
- * @param {ZGridColumnConfigs[]} columnConfigs - The column configuration settings.
100
- * @returns {void}
101
- */
102
- private setHiddenColumn;
103
- /**
104
- * Retrieve data for data binding.
105
- *
106
- * @param {boolean} skipUseCache - Whether to skip using cache for data retrieval.
107
- * @returns {Promise<void>}
108
- */
109
- getDataBinding(skipUseCache?: boolean): void;
110
- /**
111
- * Retrieve grid data.
112
- *
113
- * @returns {void}
114
- */
115
- private getGridData;
116
- private handleGetDataBindingComplete;
117
- private resetChangeEventFlag;
118
- private cacheGridData;
119
- private afterDataBinded;
120
- clearData(): void;
121
- /**
122
- * Handle column aggregation for the given data.
123
- *
124
- * @param {any[]} data - The data to aggregate.
125
- * @returns {void}
126
- */
127
- private aggregateHandling;
128
- private handleDateTimeIgnoringTimeZone;
129
- /**
130
- * Reset aggregate values for columns with aggregate types.
131
- *
132
- * @returns {void}
133
- */
134
- private aggregateResetValue;
135
- /**
136
- * Handle page change event.
137
- *
138
- * @param {PageChangeEvent} event - The page change event.
139
- * @returns {void}
140
- */
141
- pageChange(event: PageChangeEvent): void;
142
- /**
143
- * Handle sort change event.
144
- *
145
- * @param {SortDescriptor[]} sort - The sort descriptor array.
146
- * @returns {void}
147
- */
148
- sortChange(sort: SortDescriptor[]): void;
149
- /**
150
- * Handle filter change event.
151
- *
152
- * @param {any} event - The filter change event.
153
- * @returns {void}
154
- */
155
- filterChange(event: any): void;
156
- dataStateChange(state: DataStateChangeEvent): void;
157
- /**
158
- * Map filter operator to its corresponding value.
159
- *
160
- * @param {string} operator - The filter operator.
161
- * @returns {string} - The mapped filter operator value.
162
- */
163
- private mapFilterOperator;
164
- private getPageNo;
165
- setColumns(columns: any[]): void;
166
- static ɵfac: i0.ɵɵFactoryDeclaration<ZGridBindingDirective, never>;
167
- static ɵdir: i0.ɵɵDirectiveDeclaration<ZGridBindingDirective, "[zgridbinding]", never, { "zgridbinding": "zgridbinding"; }, {}, never>;
168
- }
1
+ /********** Angular **********/
2
+ import { OnInit, OnDestroy } from '@angular/core';
3
+ /********** Ionic **********/
4
+ /********** Plugin **********/
5
+ import { Subject } from 'rxjs';
6
+ import { DataBindingDirective, DataStateChangeEvent, PageChangeEvent } from '@progress/kendo-angular-grid';
7
+ import { SortDescriptor } from '@progress/kendo-data-query';
8
+ /********** Component & Service **********/
9
+ import { ZGridService } from './zgrid.service';
10
+ import { ZField, ZGridPostApiParams, WebApiService, ZGroup, ZGridSettings, LoggingService, StateSettingService, ToastService, StorageSessionService } from 'mmhglobal-zcore';
11
+ import { ZComponentService } from '../../../services/zcomponent.service';
12
+ import * as i0 from "@angular/core";
13
+ export declare class ZGridBindingDirective extends DataBindingDirective implements OnInit, OnDestroy {
14
+ private readonly webapiService;
15
+ private readonly toastService;
16
+ private readonly gridService;
17
+ private readonly loggingService;
18
+ private readonly stateSettingService;
19
+ private readonly componentService;
20
+ private readonly storageService;
21
+ private changeEvent;
22
+ zgridbinding: {
23
+ data: ZField;
24
+ group: ZGroup;
25
+ params: ZGridPostApiParams;
26
+ gridSubject: Subject<any>;
27
+ gridSetting: ZGridSettings;
28
+ };
29
+ resourceURL: any;
30
+ paginationApiPostUrl: any;
31
+ dataSource: any;
32
+ get gridSetting(): ZGridSettings;
33
+ set gridSetting(value: ZGridSettings);
34
+ get field(): ZField;
35
+ get grp(): ZGroup;
36
+ get gridSubject(): Subject<any>;
37
+ get params(): ZGridPostApiParams;
38
+ get getData(): any[] | import("@progress/kendo-angular-grid").GridDataResult;
39
+ constructor(grid: any, // Injecting GridComponent provides access to the scope and context of the GridComponent.
40
+ webapiService: WebApiService, toastService: ToastService, gridService: ZGridService, loggingService: LoggingService, stateSettingService: StateSettingService, componentService: ZComponentService, storageService: StorageSessionService);
41
+ ngOnInit(): void;
42
+ ngOnDestroy(): void;
43
+ private retrieveGridStateCache;
44
+ setResourceUrl(resourceUrl: string): void;
45
+ private setFilterParamsByParentRefId;
46
+ private getFieldReferenceId;
47
+ generateGridColumns(): void;
48
+ setSkipLoadResourceURLData(settingValue: boolean): void;
49
+ /**
50
+ * Update the title of a column in the grid setting based on its value.
51
+ *
52
+ * @param {string} colValue - The value of the column to update.
53
+ * @param {string} colName - The new title for the column.
54
+ * @returns {void}
55
+ */
56
+ setColumnName(colValue: string, colName: string): void;
57
+ /**
58
+ * Set the visibility of a column in the grid based on its value.
59
+ *
60
+ * @param {string} colValue - The value of the column to set visibility for.
61
+ * @param {boolean} isVisible - Whether the column should be visible (true) or hidden (false).
62
+ * @returns {void}
63
+ */
64
+ setColumnVisible(colValue: string, isVisible: boolean): void;
65
+ /**
66
+ * Generate filter parameters for columns and set them in the 'params' object.
67
+ *
68
+ * @returns {void}
69
+ */
70
+ private getFilterParamsColumns;
71
+ /**
72
+ * Update the 'params.filters' property based on the 'field.Filters' property.
73
+ *
74
+ * @returns {void}
75
+ */
76
+ private getFilter;
77
+ /**
78
+ * Set the filter parameters in the 'params.filterParams' property based on 'field['FilterParams']'. filterParams === used for the input in the column filter at the UI.
79
+ *
80
+ * @returns {void}
81
+ */
82
+ private getFilterParams;
83
+ /**
84
+ * Set the sorting order in the 'params.sortOrder' property based on 'field.SortOrder'.
85
+ *
86
+ * @returns {void}
87
+ */
88
+ private getSorting;
89
+ /**
90
+ * Set the grant type in the 'params.grantType' property based on 'field.GrantType'.
91
+ *
92
+ * @returns {void}
93
+ */
94
+ private getGrantType;
95
+ /**
96
+ * Set the 'hidden' property for columns in 'gridSetting' based on 'columnConfigs'.
97
+ *
98
+ * @param {ZGridColumnConfigs[]} columnConfigs - The column configuration settings.
99
+ * @returns {void}
100
+ */
101
+ private setHiddenColumn;
102
+ /**
103
+ * Retrieve data for data binding.
104
+ *
105
+ * @param {boolean} skipUseCache - Whether to skip using cache for data retrieval.
106
+ * @returns {Promise<void>}
107
+ */
108
+ getDataBinding(skipUseCache?: boolean): void;
109
+ /**
110
+ * Retrieve grid data.
111
+ *
112
+ * @returns {void}
113
+ */
114
+ private getGridData;
115
+ private handleGetDataBindingComplete;
116
+ private resetChangeEventFlag;
117
+ private cacheGridData;
118
+ private afterDataBinded;
119
+ clearData(): void;
120
+ /**
121
+ * Handle column aggregation for the given data.
122
+ *
123
+ * @param {any[]} data - The data to aggregate.
124
+ * @returns {void}
125
+ */
126
+ private aggregateHandling;
127
+ private handleDateTimeIgnoringTimeZone;
128
+ /**
129
+ * Reset aggregate values for columns with aggregate types.
130
+ *
131
+ * @returns {void}
132
+ */
133
+ private aggregateResetValue;
134
+ /**
135
+ * Handle page change event.
136
+ *
137
+ * @param {PageChangeEvent} event - The page change event.
138
+ * @returns {void}
139
+ */
140
+ pageChange(event: PageChangeEvent): void;
141
+ /**
142
+ * Handle sort change event.
143
+ *
144
+ * @param {SortDescriptor[]} sort - The sort descriptor array.
145
+ * @returns {void}
146
+ */
147
+ sortChange(sort: SortDescriptor[]): void;
148
+ /**
149
+ * Handle filter change event.
150
+ *
151
+ * @param {any} event - The filter change event.
152
+ * @returns {void}
153
+ */
154
+ filterChange(event: any): void;
155
+ dataStateChange(state: DataStateChangeEvent): void;
156
+ /**
157
+ * Map filter operator to its corresponding value.
158
+ *
159
+ * @param {string} operator - The filter operator.
160
+ * @returns {string} - The mapped filter operator value.
161
+ */
162
+ private mapFilterOperator;
163
+ private getPageNo;
164
+ setColumns(columns: any[]): void;
165
+ private collapseAllDetailGrid;
166
+ private tryGetDataFromSession;
167
+ private isValidSessionKey;
168
+ private getAndValidateSessionData;
169
+ private isSessionDataFresh;
170
+ private getTimeDifferenceInMinutes;
171
+ private setDetailDataIntoSession;
172
+ static ɵfac: i0.ɵɵFactoryDeclaration<ZGridBindingDirective, never>;
173
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ZGridBindingDirective, "[zgridbinding]", never, { "zgridbinding": { "alias": "zgridbinding"; "required": false; }; }, {}, never, never, true, never>;
174
+ }