@wavemaker/app-ng-runtime 12.0.0-next.141134 → 12.0.0-next.141138

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 (202) hide show
  1. app-ng-runtime/build-task/bundles/index.umd.js +407 -460
  2. app-ng-runtime/build-task/esm2022/containers/accordion/accordion-pane/accordion-pane.build.mjs +2 -2
  3. app-ng-runtime/build-task/esm2022/containers/accordion/accordion.build.mjs +3 -3
  4. app-ng-runtime/build-task/esm2022/containers/wizard/wizard.build.mjs +2 -2
  5. app-ng-runtime/build-task/esm2022/data/form/form-field/form-field.build.mjs +2 -10
  6. app-ng-runtime/build-task/esm2022/input/chips/chips.build.mjs +2 -2
  7. app-ng-runtime/build-task/esm2022/input/file-upload/file-upload.build.mjs +2 -2
  8. app-ng-runtime/build-task/esm2022/public_api.mjs +1 -3
  9. app-ng-runtime/build-task/fesm2022/index.mjs +408 -463
  10. app-ng-runtime/build-task/fesm2022/index.mjs.map +1 -1
  11. app-ng-runtime/build-task/public_api.d.ts +0 -2
  12. app-ng-runtime/components/base/bundles/index.umd.js +16 -79
  13. app-ng-runtime/components/base/components.module.d.ts +11 -12
  14. app-ng-runtime/components/base/esm2022/components.module.mjs +1 -5
  15. app-ng-runtime/components/base/esm2022/public_api.mjs +1 -2
  16. app-ng-runtime/components/base/esm2022/widgets/common/base/base.component.mjs +17 -42
  17. app-ng-runtime/components/base/esm2022/widgets/framework/property-change-handler.mjs +2 -2
  18. app-ng-runtime/components/base/fesm2022/index.mjs +18 -80
  19. app-ng-runtime/components/base/fesm2022/index.mjs.map +1 -1
  20. app-ng-runtime/components/base/public_api.d.ts +0 -1
  21. app-ng-runtime/components/base/widgets/common/base/base-field-validations.d.ts +1 -1
  22. app-ng-runtime/components/base/widgets/common/base/base.component.d.ts +5 -11
  23. app-ng-runtime/components/basic/default/audio/audio.component.d.ts +2 -0
  24. app-ng-runtime/components/basic/default/bundles/index.umd.js +18 -7
  25. app-ng-runtime/components/basic/default/esm2022/audio/audio.component.mjs +13 -5
  26. app-ng-runtime/components/basic/default/esm2022/video/video.component.mjs +7 -4
  27. app-ng-runtime/components/basic/default/fesm2022/index.mjs +18 -7
  28. app-ng-runtime/components/basic/default/fesm2022/index.mjs.map +1 -1
  29. app-ng-runtime/components/basic/default/video/video.component.d.ts +1 -0
  30. app-ng-runtime/components/basic/progress/bundles/index.umd.js +7 -3
  31. app-ng-runtime/components/basic/progress/esm2022/progress-bar/progress-bar.component.mjs +8 -4
  32. app-ng-runtime/components/basic/progress/fesm2022/index.mjs +7 -3
  33. app-ng-runtime/components/basic/progress/fesm2022/index.mjs.map +1 -1
  34. app-ng-runtime/components/basic/progress/progress-bar/progress-bar.component.d.ts +1 -0
  35. app-ng-runtime/components/basic/search/bundles/index.umd.js +31 -38
  36. app-ng-runtime/components/basic/search/esm2022/search.component.mjs +31 -35
  37. app-ng-runtime/components/basic/search/esm2022/search.props.mjs +2 -5
  38. app-ng-runtime/components/basic/search/fesm2022/index.mjs +31 -38
  39. app-ng-runtime/components/basic/search/fesm2022/index.mjs.map +1 -1
  40. app-ng-runtime/components/basic/search/search.component.d.ts +3 -5
  41. app-ng-runtime/components/containers/accordion/accordion-pane/accordion-pane.component.d.ts +1 -0
  42. app-ng-runtime/components/containers/accordion/bundles/index.umd.js +15 -9
  43. app-ng-runtime/components/containers/accordion/esm2022/accordion-pane/accordion-pane.component.mjs +13 -10
  44. app-ng-runtime/components/containers/accordion/esm2022/accordion.directive.mjs +4 -1
  45. app-ng-runtime/components/containers/accordion/fesm2022/index.mjs +15 -9
  46. app-ng-runtime/components/containers/accordion/fesm2022/index.mjs.map +1 -1
  47. app-ng-runtime/components/containers/tabs/bundles/index.umd.js +6 -14
  48. app-ng-runtime/components/containers/tabs/esm2022/tabs.component.mjs +7 -14
  49. app-ng-runtime/components/containers/tabs/esm2022/tabs.props.mjs +2 -3
  50. app-ng-runtime/components/containers/tabs/fesm2022/index.mjs +6 -14
  51. app-ng-runtime/components/containers/tabs/fesm2022/index.mjs.map +1 -1
  52. app-ng-runtime/components/containers/tabs/tabs.component.d.ts +0 -1
  53. app-ng-runtime/components/containers/wizard/bundles/index.umd.js +6 -6
  54. app-ng-runtime/components/containers/wizard/esm2022/wizard.component.mjs +7 -7
  55. app-ng-runtime/components/containers/wizard/fesm2022/index.mjs +6 -6
  56. app-ng-runtime/components/containers/wizard/fesm2022/index.mjs.map +1 -1
  57. app-ng-runtime/components/data/form/bundles/index.umd.js +11 -23
  58. app-ng-runtime/components/data/form/esm2022/form-field/form-field.directive.mjs +12 -24
  59. app-ng-runtime/components/data/form/fesm2022/index.mjs +11 -23
  60. app-ng-runtime/components/data/form/fesm2022/index.mjs.map +1 -1
  61. app-ng-runtime/components/data/form/form-field/form-field.directive.d.ts +0 -1
  62. app-ng-runtime/components/data/list/bundles/index.umd.js +12 -12
  63. app-ng-runtime/components/data/list/esm2022/list.component.mjs +13 -13
  64. app-ng-runtime/components/data/list/fesm2022/index.mjs +12 -12
  65. app-ng-runtime/components/data/list/fesm2022/index.mjs.map +1 -1
  66. app-ng-runtime/components/data/table/bundles/index.umd.js +1 -1
  67. app-ng-runtime/components/data/table/esm2022/table-row/table-row.props.mjs +2 -2
  68. app-ng-runtime/components/data/table/fesm2022/index.mjs +1 -1
  69. app-ng-runtime/components/data/table/fesm2022/index.mjs.map +1 -1
  70. app-ng-runtime/components/dialogs/default/base-dialog.d.ts +0 -2
  71. app-ng-runtime/components/dialogs/default/bundles/index.umd.js +6 -17
  72. app-ng-runtime/components/dialogs/default/esm2022/base-dialog.mjs +1 -1
  73. app-ng-runtime/components/dialogs/default/esm2022/dialog-body/dialog-body.directive.mjs +2 -14
  74. app-ng-runtime/components/dialogs/default/esm2022/dialog-header/dialog-header.component.mjs +7 -6
  75. app-ng-runtime/components/dialogs/default/fesm2022/index.mjs +7 -18
  76. app-ng-runtime/components/dialogs/default/fesm2022/index.mjs.map +1 -1
  77. app-ng-runtime/components/dialogs/design-dialog/bundles/index.umd.js +3 -21
  78. app-ng-runtime/components/dialogs/design-dialog/dialog.component.d.ts +2 -3
  79. app-ng-runtime/components/dialogs/design-dialog/esm2022/dialog.component.mjs +4 -22
  80. app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs +3 -21
  81. app-ng-runtime/components/dialogs/design-dialog/fesm2022/index.mjs.map +1 -1
  82. app-ng-runtime/components/input/chips/bundles/index.umd.js +6 -3
  83. app-ng-runtime/components/input/chips/esm2022/chips.component.mjs +7 -4
  84. app-ng-runtime/components/input/chips/fesm2022/index.mjs +6 -3
  85. app-ng-runtime/components/input/chips/fesm2022/index.mjs.map +1 -1
  86. app-ng-runtime/components/input/default/base-form-custom.component.d.ts +1 -2
  87. app-ng-runtime/components/input/default/bundles/index.umd.js +62 -107
  88. app-ng-runtime/components/input/default/checkboxset/checkboxset.component.d.ts +0 -1
  89. app-ng-runtime/components/input/default/dataset-aware-form.component.d.ts +2 -2
  90. app-ng-runtime/components/input/default/esm2022/base-form-custom.component.mjs +1 -6
  91. app-ng-runtime/components/input/default/esm2022/checkboxset/checkboxset.component.mjs +5 -10
  92. app-ng-runtime/components/input/default/esm2022/dataset-aware-form.component.mjs +5 -5
  93. app-ng-runtime/components/input/default/esm2022/radioset/radioset.component.mjs +5 -10
  94. app-ng-runtime/components/input/default/esm2022/switch/switch.component.mjs +38 -64
  95. app-ng-runtime/components/input/default/esm2022/switch/switch.props.mjs +1 -2
  96. app-ng-runtime/components/input/default/esm2022/text/base/base-input.mjs +1 -4
  97. app-ng-runtime/components/input/default/fesm2022/index.mjs +62 -107
  98. app-ng-runtime/components/input/default/fesm2022/index.mjs.map +1 -1
  99. app-ng-runtime/components/input/default/radioset/radioset.component.d.ts +0 -1
  100. app-ng-runtime/components/input/default/switch/switch.component.d.ts +0 -2
  101. app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +2 -1
  102. app-ng-runtime/components/input/epoch/bundles/index.umd.js +18 -14
  103. app-ng-runtime/components/input/epoch/esm2022/base-date-time.component.mjs +10 -6
  104. app-ng-runtime/components/input/epoch/esm2022/date/date.component.mjs +4 -4
  105. app-ng-runtime/components/input/epoch/esm2022/date-time/date-time.component.mjs +4 -4
  106. app-ng-runtime/components/input/epoch/fesm2022/index.mjs +15 -11
  107. app-ng-runtime/components/input/epoch/fesm2022/index.mjs.map +1 -1
  108. app-ng-runtime/components/input/file-upload/bundles/index.umd.js +80 -64
  109. app-ng-runtime/components/input/file-upload/esm2022/file-upload.component.mjs +80 -65
  110. app-ng-runtime/components/input/file-upload/esm2022/file-upload.props.mjs +3 -2
  111. app-ng-runtime/components/input/file-upload/fesm2022/index.mjs +81 -65
  112. app-ng-runtime/components/input/file-upload/fesm2022/index.mjs.map +1 -1
  113. app-ng-runtime/components/input/file-upload/file-upload.component.d.ts +7 -2
  114. app-ng-runtime/components/input/rating/bundles/index.umd.js +35 -26
  115. app-ng-runtime/components/input/rating/esm2022/rating.component.mjs +37 -26
  116. app-ng-runtime/components/input/rating/esm2022/rating.props.mjs +1 -3
  117. app-ng-runtime/components/input/rating/fesm2022/index.mjs +36 -27
  118. app-ng-runtime/components/input/rating/fesm2022/index.mjs.map +1 -1
  119. app-ng-runtime/components/input/rating/rating.component.d.ts +1 -3
  120. app-ng-runtime/components/navigation/breadcrumb/bundles/index.umd.js +6 -6
  121. app-ng-runtime/components/navigation/breadcrumb/esm2022/breadcrumb.component.mjs +7 -7
  122. app-ng-runtime/components/navigation/breadcrumb/fesm2022/index.mjs +6 -6
  123. app-ng-runtime/components/navigation/breadcrumb/fesm2022/index.mjs.map +1 -1
  124. app-ng-runtime/components/page/left-panel/bundles/index.umd.js +2 -6
  125. app-ng-runtime/components/page/left-panel/esm2022/left-panel.directive.mjs +5 -9
  126. app-ng-runtime/components/page/left-panel/fesm2022/index.mjs +4 -8
  127. app-ng-runtime/components/page/left-panel/fesm2022/index.mjs.map +1 -1
  128. app-ng-runtime/components/page/left-panel/left-panel.directive.d.ts +2 -2
  129. app-ng-runtime/components/page/right-panel/bundles/index.umd.js +2 -6
  130. app-ng-runtime/components/page/right-panel/esm2022/right-panel.directive.mjs +5 -9
  131. app-ng-runtime/components/page/right-panel/fesm2022/index.mjs +4 -8
  132. app-ng-runtime/components/page/right-panel/fesm2022/index.mjs.map +1 -1
  133. app-ng-runtime/components/page/right-panel/right-panel.directive.d.ts +2 -2
  134. app-ng-runtime/core/bundles/index.umd.js +0 -23
  135. app-ng-runtime/core/enums/enums.d.ts +0 -1
  136. app-ng-runtime/core/esm2022/enums/enums.mjs +1 -2
  137. app-ng-runtime/core/esm2022/public_api.mjs +2 -2
  138. app-ng-runtime/core/esm2022/types/types.mjs +1 -4
  139. app-ng-runtime/core/esm2022/utils/build-utils.mjs +1 -6
  140. app-ng-runtime/core/esm2022/utils/utils.mjs +1 -10
  141. app-ng-runtime/core/fesm2022/index.mjs +1 -21
  142. app-ng-runtime/core/fesm2022/index.mjs.map +1 -1
  143. app-ng-runtime/core/public_api.d.ts +1 -1
  144. app-ng-runtime/core/types/types.d.ts +1 -5
  145. app-ng-runtime/core/utils/utils.d.ts +0 -2
  146. app-ng-runtime/locales/moment-timezone/moment-timezone-with-data.js +37 -37
  147. app-ng-runtime/package.json +1 -1
  148. app-ng-runtime/runtime/base/bundles/index.umd.js +4 -304
  149. app-ng-runtime/runtime/base/esm2022/public_api.mjs +1 -2
  150. app-ng-runtime/runtime/base/esm2022/runtime-base.module.mjs +1 -6
  151. app-ng-runtime/runtime/base/esm2022/types/types.mjs +1 -4
  152. app-ng-runtime/runtime/base/fesm2022/index.mjs +3 -302
  153. app-ng-runtime/runtime/base/fesm2022/index.mjs.map +1 -1
  154. app-ng-runtime/runtime/base/public_api.d.ts +0 -1
  155. app-ng-runtime/runtime/base/runtime-base.module.d.ts +8 -9
  156. app-ng-runtime/runtime/base/services/i18n.service.d.ts +1 -1
  157. app-ng-runtime/runtime/base/types/types.d.ts +1 -5
  158. app-ng-runtime/runtime/dynamic/bundles/index.umd.js +13 -49
  159. app-ng-runtime/runtime/dynamic/esm2022/app/app.module.mjs +3 -8
  160. app-ng-runtime/runtime/dynamic/esm2022/app/services/component-ref-provider.service.mjs +7 -23
  161. app-ng-runtime/runtime/dynamic/fesm2022/index.mjs +11 -50
  162. app-ng-runtime/runtime/dynamic/fesm2022/index.mjs.map +1 -1
  163. app-ng-runtime/scripts/datatable/datatable.js +23 -30
  164. app-ng-runtime/transpiler/bundles/index.umd.js +0 -5
  165. app-ng-runtime/transpiler/esm2022/build.mjs +1 -4
  166. app-ng-runtime/transpiler/esm2022/imports.mjs +1 -3
  167. app-ng-runtime/transpiler/fesm2022/index.mjs +0 -5
  168. app-ng-runtime/transpiler/fesm2022/index.mjs.map +1 -1
  169. app-ng-runtime/variables/bundles/index.umd.js +34 -16
  170. app-ng-runtime/variables/esm2022/manager/variable/web-socket-variable.manager.mjs +35 -17
  171. app-ng-runtime/variables/fesm2022/index.mjs +34 -16
  172. app-ng-runtime/variables/fesm2022/index.mjs.map +1 -1
  173. app-ng-runtime/variables/manager/variable/web-socket-variable.manager.d.ts +0 -4
  174. app-ng-runtime/build-task/advanced/custom-widget-container/custom-widget-container.build.d.ts +0 -2
  175. app-ng-runtime/build-task/advanced/custom-widget-wrapper/custom-widget-wrapper.build.d.ts +0 -2
  176. app-ng-runtime/build-task/esm2022/advanced/custom-widget-container/custom-widget-container.build.mjs +0 -15
  177. app-ng-runtime/build-task/esm2022/advanced/custom-widget-wrapper/custom-widget-wrapper.build.mjs +0 -26
  178. app-ng-runtime/components/advanced/custom/.npmignore +0 -2
  179. app-ng-runtime/components/advanced/custom/bundles/index.umd.js +0 -272
  180. app-ng-runtime/components/advanced/custom/custom-widget-container/custom-widget-container.directive.d.ts +0 -26
  181. app-ng-runtime/components/advanced/custom/custom-widget-container/custom-widget.props.d.ts +0 -2
  182. app-ng-runtime/components/advanced/custom/custom-widget-prop.d.ts +0 -1
  183. app-ng-runtime/components/advanced/custom/custom-widget.directive.d.ts +0 -19
  184. app-ng-runtime/components/advanced/custom/custom-widget.module.d.ts +0 -10
  185. app-ng-runtime/components/advanced/custom/esm2022/custom-widget-container/custom-widget-container.directive.mjs +0 -145
  186. app-ng-runtime/components/advanced/custom/esm2022/custom-widget-container/custom-widget.props.mjs +0 -12
  187. app-ng-runtime/components/advanced/custom/esm2022/custom-widget-prop.mjs +0 -8
  188. app-ng-runtime/components/advanced/custom/esm2022/custom-widget.directive.mjs +0 -68
  189. app-ng-runtime/components/advanced/custom/esm2022/custom-widget.module.mjs +0 -32
  190. app-ng-runtime/components/advanced/custom/esm2022/index.mjs +0 -5
  191. app-ng-runtime/components/advanced/custom/esm2022/public_api.mjs +0 -4
  192. app-ng-runtime/components/advanced/custom/fesm2022/index.mjs +0 -258
  193. app-ng-runtime/components/advanced/custom/fesm2022/index.mjs.map +0 -1
  194. app-ng-runtime/components/advanced/custom/index.d.ts +0 -5
  195. app-ng-runtime/components/advanced/custom/package.json +0 -23
  196. app-ng-runtime/components/advanced/custom/public_api.d.ts +0 -3
  197. app-ng-runtime/components/base/esm2022/widgets/common/base/custom-widget-container.directive.mjs +0 -39
  198. app-ng-runtime/components/base/widgets/common/base/custom-widget-container.directive.d.ts +0 -14
  199. app-ng-runtime/runtime/base/components/base-custom-widget.component.d.ts +0 -75
  200. app-ng-runtime/runtime/base/esm2022/components/base-custom-widget.component.mjs +0 -303
  201. app-ng-runtime/runtime/dynamic/app/services/customwidget-config-provider.service.d.ts +0 -8
  202. app-ng-runtime/runtime/dynamic/esm2022/app/services/customwidget-config-provider.service.mjs +0 -22
@@ -6,7 +6,7 @@ import * as i1 from '@wm/core';
6
6
  import { FormWidgetType, checkIsCustomPipeExpression, $parseExpr, isValidWebURL, encodeUrl, stringStartsWith, prettifyLabel, deHyphenate, initCaps, getClonedObject, setCSS, isDefined, IDGenerator, toBoolean, isChangeFromWatch, $unwatch, resetChangeFromWatch, isObject as isObject$1, toDimension, $appDigest, removeClass, addClass, setCSSFromObj, App, findParent, setAttr, isMobileApp, switchClass, removeAttr, $parseEvent, $invokeWatchers, $watch, transformFileURI, ComponentType, noop as noop$1, isLargeTabletLandscape, isLargeTabletPortrait, isKitkatDevice, debounce as debounce$1, hasOffsetStr, AbstractI18nService, CURRENCY_INFO, isMobile, AbstractDialogService, DataSource, processFilterExpBindNode, MatchMode, isEqualWithFields, getFormattedDate, isAndroid, isNumberType, DataType, findValueOf, validateAccessRoles, VALIDATOR, isIos } from '@wm/core';
7
7
  import { SecurityModule, SecurityService } from '@wm/security';
8
8
  import { createFocusTrap } from '@wavemaker/focus-trap';
9
- import { isNull, get, forEach, join, union, isArray, isObject, includes, split, isString, assignWith, startsWith, isFunction, last, extend, camelCase, map, pickBy, assign, debounce, isDate, isUndefined, filter as filter$1, isEmpty, keys, head, replace, each, intersection, cloneDeep, orderBy, trim, isEqual, uniqWith, uniqBy, sortBy, groupBy, toLower, values, first, omitBy, toUpper, find, concat } from 'lodash-es';
9
+ import { isNull, get, forEach, join, union, isArray, isObject, includes, split, isString, assignWith, startsWith, isFunction, extend, camelCase, map, pickBy, assign, debounce, isDate, isUndefined, filter as filter$1, isEmpty, keys, head, replace, each, intersection, cloneDeep, orderBy, trim, isEqual, uniqWith, uniqBy, sortBy, groupBy, toLower, values, first, omitBy, toUpper, find, concat } from 'lodash-es';
10
10
  import * as i1$2 from '@angular/platform-browser';
11
11
  import { EventManager } from '@angular/platform-browser';
12
12
  import { ReplaySubject, Subject } from 'rxjs';
@@ -782,7 +782,7 @@ const globalPropertyChangeHandler = (component, key, nv) => {
782
782
  }
783
783
  resetChangeFromWatch();
784
784
  const widgetProps = getWidgetPropsByType(component.getWidgetSubType());
785
- const propInfo = widgetProps ? widgetProps.get(key) : undefined;
785
+ const propInfo = widgetProps.get(key);
786
786
  if (propInfo) {
787
787
  const type = propInfo.type;
788
788
  if (type) {
@@ -1016,14 +1016,9 @@ class BaseComponent {
1016
1016
  }
1017
1017
  else {
1018
1018
  this.delayedInit = true;
1019
- initPromise.then((resolveFn) => {
1020
- let formFieldCW = this.widgetSubType === 'wm-form-field-custom-widget', cw = this.widgetSubType.startsWith('wm-custom-');
1021
- if (formFieldCW || cw) {
1022
- this.customWidgetSubType = formFieldCW ? 'wm-form-field-' + last(this["formWidget"].config.widgetType.split('-')) : this["config"].widgetType;
1023
- }
1019
+ initPromise.then(() => {
1024
1020
  this.initWidget();
1025
1021
  this.setInitProps();
1026
- resolveFn && resolveFn();
1027
1022
  });
1028
1023
  }
1029
1024
  if (explicitContext) {
@@ -1160,11 +1155,6 @@ class BaseComponent {
1160
1155
  }
1161
1156
  else if (key === 'class') {
1162
1157
  switchClass(this.nativeElement, nv, ov);
1163
- let result = nv.match(/(\W|^)(h([0-6]))(?=\s|$)/);
1164
- if (result) {
1165
- setAttr(this.nativeElement, 'role', 'heading');
1166
- setAttr(this.nativeElement, 'aria-level', result[3]);
1167
- }
1168
1158
  }
1169
1159
  else if (key === 'name' || key === 'tabindex') {
1170
1160
  setAttr(this.nativeElement, key, nv);
@@ -1233,12 +1223,11 @@ class BaseComponent {
1233
1223
  * @param {string} eventName
1234
1224
  * @param {string} expr
1235
1225
  */
1236
- processEventAttr(eventName, expr, meta, child) {
1226
+ processEventAttr(eventName, expr, meta) {
1237
1227
  const fn = $parseEvent(expr);
1238
1228
  const locals = this.context;
1239
- locals.widget = child ? child.widget : this.widget;
1240
- const boundFn = fn.bind(undefined, child ? this.viewParent.viewParent : this.viewParent, locals);
1241
- let widget = child ? child.widget : this, nativeElement = child ? child.nativeElement : this.nativeElement;
1229
+ locals.widget = this.widget;
1230
+ const boundFn = fn.bind(undefined, this.viewParent, locals);
1242
1231
  const eventCallback = () => {
1243
1232
  let boundFnVal;
1244
1233
  $invokeWatchers(true);
@@ -1258,32 +1247,24 @@ class BaseComponent {
1258
1247
  console.error(e);
1259
1248
  }
1260
1249
  };
1261
- if (child && !child.widget.eventHandlers)
1262
- child.widget.eventHandlers = new Map();
1263
- widget.eventHandlers.set(this.getMappedEventName(eventName), { callback: eventCallback, locals });
1250
+ this.eventHandlers.set(this.getMappedEventName(eventName), { callback: eventCallback, locals });
1264
1251
  // prepend eventName with on and convert it to camelcase.
1265
1252
  // eg, "click" ---> onClick
1266
1253
  const onEventName = camelCase(`on-${eventName}`);
1267
1254
  // save the eventCallback in widgetScope.
1268
- widget[onEventName] = eventCallback;
1255
+ this[onEventName] = eventCallback;
1269
1256
  // events needs to be setup after viewInit
1270
1257
  this.toBeSetupEventsQueue.push(() => {
1271
- this.handleEvent(nativeElement, this.getMappedEventName(eventName), eventCallback, locals, meta);
1258
+ this.handleEvent(this.nativeElement, this.getMappedEventName(eventName), eventCallback, locals, meta);
1272
1259
  });
1273
1260
  }
1274
1261
  /**
1275
1262
  * Process the bound property
1276
1263
  * Register a watch on the bound expression
1277
1264
  */
1278
- processBindAttr(propName, expr, child) {
1279
- if (!child)
1280
- this.initState.delete(propName);
1281
- let viewParent = child ? child.widget.viewParent.viewParent : this.viewParent, context = child ? child.widget.context : this.context, widget = child ? child.widget : this.widget, isMuted = child ? child.widget.isMuted : this.isMuted, widgetProps = child ? child.widget.widgetProps : this.widgetProps, widgetId = child ? child.widget.widgetId : this.widgetId;
1282
- this.registerDestroyListener($watch(expr, viewParent, context, nv => {
1283
- if (propName.startsWith('base-') && widget.updateData)
1284
- widget.updateData(propName, nv);
1285
- widget[propName] = nv;
1286
- }, getWatchIdentifier(widgetId, propName), propName === 'datasource', widgetProps.get(propName), () => isMuted));
1265
+ processBindAttr(propName, expr) {
1266
+ this.initState.delete(propName);
1267
+ this.registerDestroyListener($watch(expr, this.viewParent, this.context, nv => this.widget[propName] = nv, getWatchIdentifier(this.widgetId, propName), propName === 'datasource', this.widgetProps.get(propName), () => this.isMuted));
1287
1268
  }
1288
1269
  /**
1289
1270
  * Remove watch on the bound property
@@ -1312,18 +1293,18 @@ class BaseComponent {
1312
1293
  * and keep in eventHandlers
1313
1294
  * If the attribute is a bound expression, register a watch on the expression
1314
1295
  */
1315
- processAttr(attrName, attrValue, child) {
1296
+ processAttr(attrName, attrValue) {
1316
1297
  // console.log("====attrName=====", attrName, "=====typeof attrname=====", typeof attrName, "-----attrValue----", attrValue);
1317
1298
  const { 0: propName, 1: type, 2: meta, length } = attrName.split('.');
1318
1299
  if (type === 'bind') {
1319
1300
  // if the show property is bound, set the initial value to false
1320
- if (propName === 'show' && !this.widgetSubType.startsWith('wm-custom-')) {
1301
+ if (propName === 'show') {
1321
1302
  this.nativeElement.hidden = true;
1322
1303
  }
1323
- this.processBindAttr(propName, attrValue, child);
1304
+ this.processBindAttr(propName, attrValue);
1324
1305
  }
1325
- else if (type === 'event' && !this.nativeElement.hasAttribute('wmwidgetcontainer')) {
1326
- this.processEventAttr(propName, attrValue, meta, child);
1306
+ else if (type === 'event') {
1307
+ this.processEventAttr(propName, attrValue, meta);
1327
1308
  }
1328
1309
  else if (length === 1) {
1329
1310
  // remove class and name attributes. Component will set them on the proper node
@@ -1391,12 +1372,6 @@ class BaseComponent {
1391
1372
  this.initState = new Map();
1392
1373
  // get the widget properties
1393
1374
  const widgetProps = getWidgetPropsByType(this.widgetSubType);
1394
- if (this.customWidgetSubType) {
1395
- const customWidgetProps = getWidgetPropsByType(this.customWidgetSubType);
1396
- customWidgetProps.forEach((v, k) => {
1397
- widgetProps.set(k, v);
1398
- });
1399
- }
1400
1375
  widgetProps.forEach((v, k) => {
1401
1376
  if (isDefined(v.value)) {
1402
1377
  this.initState.set(k, v.value);
@@ -2110,40 +2085,6 @@ class PartialContainerDirective {
2110
2085
  args: ['content']
2111
2086
  }] }, { type: i0.ComponentFactoryResolver }, { type: i1.PartialRefProvider }], null); })();
2112
2087
 
2113
- class CustomWidgetContainerDirective {
2114
- constructor(componentInstance, vcRef, elRef, inj, app, widgetname, customWidgetRefProvider) {
2115
- this.componentInstance = componentInstance;
2116
- this.vcRef = vcRef;
2117
- this.elRef = elRef;
2118
- this.inj = inj;
2119
- this.app = app;
2120
- this.customWidgetRefProvider = customWidgetRefProvider;
2121
- const widgetnames = this.componentInstance.widgetname;
2122
- this.customWidgetRefProvider.getComponentFactoryRef(widgetname, ComponentType.WIDGET).then((componentFactory) => {
2123
- if (componentFactory) {
2124
- const instanceRef = this.vcRef.createComponent(componentFactory, 0, this.inj);
2125
- this.elRef.nativeElement.appendChild(instanceRef.location.nativeElement);
2126
- }
2127
- });
2128
- }
2129
- static { this.ɵfac = function CustomWidgetContainerDirective_Factory(t) { return new (t || CustomWidgetContainerDirective)(i0.ɵɵdirectiveInject(WidgetRef, 2), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i1.App), i0.ɵɵinjectAttribute('widgetname'), i0.ɵɵdirectiveInject(i1.CustomWidgetRefProvider)); }; }
2130
- static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: CustomWidgetContainerDirective, selectors: [["", "customWidgetContainer", "", "widgetname", ""]] }); }
2131
- }
2132
- (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CustomWidgetContainerDirective, [{
2133
- type: Directive,
2134
- args: [{
2135
- selector: '[customWidgetContainer][widgetname]'
2136
- }]
2137
- }], () => [{ type: undefined, decorators: [{
2138
- type: Self
2139
- }, {
2140
- type: Inject,
2141
- args: [WidgetRef]
2142
- }] }, { type: i0.ViewContainerRef }, { type: i0.ElementRef }, { type: i0.Injector }, { type: i1.App }, { type: undefined, decorators: [{
2143
- type: Attribute,
2144
- args: ['widgetname']
2145
- }] }, { type: i1.CustomWidgetRefProvider }], null); })();
2146
-
2147
2088
  class ShowInDeviceDirective {
2148
2089
  constructor(viewContainerRef, inj, templateRef, explicitContext) {
2149
2090
  this.viewContainerRef = viewContainerRef;
@@ -3150,7 +3091,6 @@ const wmComponents = [
3150
3091
  PartialParamHandlerDirective,
3151
3092
  PartialParamDirective,
3152
3093
  PartialContainerDirective,
3153
- CustomWidgetContainerDirective,
3154
3094
  RedrawableDirective,
3155
3095
  ShowInDeviceDirective,
3156
3096
  SmoothScrollDirective,
@@ -3218,7 +3158,6 @@ class WmComponentsModule {
3218
3158
  PartialParamHandlerDirective,
3219
3159
  PartialParamDirective,
3220
3160
  PartialContainerDirective,
3221
- CustomWidgetContainerDirective,
3222
3161
  RedrawableDirective,
3223
3162
  ShowInDeviceDirective,
3224
3163
  SmoothScrollDirective,
@@ -3249,7 +3188,6 @@ class WmComponentsModule {
3249
3188
  PartialParamHandlerDirective,
3250
3189
  PartialParamDirective,
3251
3190
  PartialContainerDirective,
3252
- CustomWidgetContainerDirective,
3253
3191
  RedrawableDirective,
3254
3192
  ShowInDeviceDirective,
3255
3193
  SmoothScrollDirective,
@@ -5309,5 +5247,5 @@ const updateDeviceView = (element, isTablet = false) => {
5309
5247
  * Generated bundle index. Do not edit.
5310
5248
  */
5311
5249
 
5312
- export { ALLFIELDS, APPLY_STYLES_TYPE, AUTOCLOSE_TYPE, BaseComponent, BaseContainerComponent, BaseFieldValidations, ContainerDirective, Context, CustomPipe, CustomWidgetContainerDirective, DEBOUNCE_TIMES, DISPLAY_TYPE, DataSetItem, DatasetAwareNavComponent, DialogRef, DialogServiceImpl, EDIT_MODE, EVENTS_MAP, FileExtensionFromMimePipe, FileIconClassPipe, FileSizePipe, FilterPipe, INPUTMODE, ImagePipe, ItemTemplateDirective, LIVE_CONSTANTS, LazyLoadDirective, Live_Operations, MessageComponent, NAVIGATION_TYPE, NumberToStringPipe, PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, PROP_TYPE, PartialContainerDirective, PartialDirective, PartialParamDirective, PartialParamHandlerDirective, PrefixPipe, PullToRefresh, RedrawableDirective, RepeatTemplateDirective, SanitizePipe, ShowInDeviceDirective, SmoothScrollDirective, StateClassPipe, StringToNumberPipe, StylableComponent, SuffixPipe, TextContentDirective, TimeFromNowPipe, ToCurrencyPipe, ToDatePipe, ToNumberPipe, TrailingZeroDecimalPipe, TrustAsPipe, WidgetConfig, WidgetRef, WmComponentsModule, applyFilterOnField, configureDnD, convertDataToObject, createArrayFrom, extractDataAsArray, extractDataSourceName, fetchDistinctValues, fetchRelatedFieldData, filterDate, getBackGroundImageUrl, getConditionalClasses, getContainerTargetClass, getDataTableFilterWidget, getDefaultValue, getDefaultViewModeWidget, getDistinctFieldProperties, getDistinctValues, getDistinctValuesForField, getEditModeWidget, getEmptyMatchMode, getEnableEmptyFilter, getEvaluatedData, getFieldLayoutConfig, getFieldTypeWidgetTypesMap, getImageUrl, getKeyboardFocusableElements, getMatchModeMsgs, getMatchModeTypesMap, getObjValueByKey, getOrderByExpr, getOrderedDataset, getRangeFieldValue, getRangeMatchMode, getRowOperationsColumn, getUniqObjsByDataField, getWatchIdentifier, getWidgetPropsByType, groupData, handleHeaderClick, hasLinkToCurrentPage, interpolateBindExpressions, isActiveNavItem, isBooleanAttr, isDataSetWidget, isDimensionProp, isStyle, parseValueByType, performDataOperation, prepareFieldDefs, propNameCSSKeyMap, provideAs, provideAsDialogRef, provideAsWidgetRef, refreshDataSource, register$1 as register, registerFormWidget, setFocusTrap, setHeaderConfig, setHeaderConfigForTable, setItemByCompare, styler, toggleAllHeaders, transformData, transformDataWithKeys, transformFormData, unsupportedStatePersistenceTypes, updateDeviceView, widgetIdGenerator };
5250
+ export { ALLFIELDS, APPLY_STYLES_TYPE, AUTOCLOSE_TYPE, BaseComponent, BaseContainerComponent, BaseFieldValidations, ContainerDirective, Context, CustomPipe, DEBOUNCE_TIMES, DISPLAY_TYPE, DataSetItem, DatasetAwareNavComponent, DialogRef, DialogServiceImpl, EDIT_MODE, EVENTS_MAP, FileExtensionFromMimePipe, FileIconClassPipe, FileSizePipe, FilterPipe, INPUTMODE, ImagePipe, ItemTemplateDirective, LIVE_CONSTANTS, LazyLoadDirective, Live_Operations, MessageComponent, NAVIGATION_TYPE, NumberToStringPipe, PROP_ANY, PROP_BOOLEAN, PROP_NUMBER, PROP_STRING, PROP_TYPE, PartialContainerDirective, PartialDirective, PartialParamDirective, PartialParamHandlerDirective, PrefixPipe, PullToRefresh, RedrawableDirective, RepeatTemplateDirective, SanitizePipe, ShowInDeviceDirective, SmoothScrollDirective, StateClassPipe, StringToNumberPipe, StylableComponent, SuffixPipe, TextContentDirective, TimeFromNowPipe, ToCurrencyPipe, ToDatePipe, ToNumberPipe, TrailingZeroDecimalPipe, TrustAsPipe, WidgetConfig, WidgetRef, WmComponentsModule, applyFilterOnField, configureDnD, convertDataToObject, createArrayFrom, extractDataAsArray, extractDataSourceName, fetchDistinctValues, fetchRelatedFieldData, filterDate, getBackGroundImageUrl, getConditionalClasses, getContainerTargetClass, getDataTableFilterWidget, getDefaultValue, getDefaultViewModeWidget, getDistinctFieldProperties, getDistinctValues, getDistinctValuesForField, getEditModeWidget, getEmptyMatchMode, getEnableEmptyFilter, getEvaluatedData, getFieldLayoutConfig, getFieldTypeWidgetTypesMap, getImageUrl, getKeyboardFocusableElements, getMatchModeMsgs, getMatchModeTypesMap, getObjValueByKey, getOrderByExpr, getOrderedDataset, getRangeFieldValue, getRangeMatchMode, getRowOperationsColumn, getUniqObjsByDataField, getWatchIdentifier, getWidgetPropsByType, groupData, handleHeaderClick, hasLinkToCurrentPage, interpolateBindExpressions, isActiveNavItem, isBooleanAttr, isDataSetWidget, isDimensionProp, isStyle, parseValueByType, performDataOperation, prepareFieldDefs, propNameCSSKeyMap, provideAs, provideAsDialogRef, provideAsWidgetRef, refreshDataSource, register$1 as register, registerFormWidget, setFocusTrap, setHeaderConfig, setHeaderConfigForTable, setItemByCompare, styler, toggleAllHeaders, transformData, transformDataWithKeys, transformFormData, unsupportedStatePersistenceTypes, updateDeviceView, widgetIdGenerator };
5313
5251
  //# sourceMappingURL=index.mjs.map