@wavemaker/app-ng-runtime 11.8.0-next.141688 → 11.8.0-next.141689

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 (99) hide show
  1. package/build-task/bundles/index.umd.js +4 -4
  2. package/build-task/esm2022/advanced/carousel/carousel-template/carousel-template.build.mjs +3 -3
  3. package/build-task/esm2022/containers/repeat-template.build.mjs +3 -3
  4. package/build-task/fesm2022/index.mjs +4 -4
  5. package/build-task/fesm2022/index.mjs.map +1 -1
  6. package/components/advanced/carousel/bundles/index.umd.js +3 -2
  7. package/components/advanced/carousel/carousel-template/carousel-template.directive.d.ts +1 -1
  8. package/components/advanced/carousel/esm2022/carousel-template/carousel-template.directive.mjs +4 -3
  9. package/components/advanced/carousel/fesm2022/index.mjs +3 -2
  10. package/components/advanced/carousel/fesm2022/index.mjs.map +1 -1
  11. package/components/base/bundles/index.umd.js +45 -32
  12. package/components/base/directives/show-in-device.directive.d.ts +3 -6
  13. package/components/base/esm2022/directives/show-in-device.directive.mjs +12 -14
  14. package/components/base/esm2022/public_api.mjs +2 -1
  15. package/components/base/esm2022/widgets/common/base/base-field-validations.mjs +5 -7
  16. package/components/base/esm2022/widgets/common/base/base.component.mjs +22 -15
  17. package/components/base/esm2022/widgets/common/lazy-load/lazy-load.directive.mjs +13 -6
  18. package/components/base/esm2022/widgets/common/repeat-template/repeat-template.directive.mjs +4 -3
  19. package/components/base/fesm2022/index.mjs +45 -33
  20. package/components/base/fesm2022/index.mjs.map +1 -1
  21. package/components/base/public_api.d.ts +1 -0
  22. package/components/base/widgets/common/base/base.component.d.ts +18 -1
  23. package/components/base/widgets/common/lazy-load/lazy-load.directive.d.ts +2 -2
  24. package/components/base/widgets/common/repeat-template/repeat-template.directive.d.ts +1 -1
  25. package/components/basic/search/bundles/index.umd.js +10 -9
  26. package/components/basic/search/esm2022/search.component.mjs +11 -10
  27. package/components/basic/search/fesm2022/index.mjs +10 -9
  28. package/components/basic/search/fesm2022/index.mjs.map +1 -1
  29. package/components/data/form/bundles/index.umd.js +1 -1
  30. package/components/data/form/esm2022/form.component.mjs +2 -2
  31. package/components/data/form/fesm2022/index.mjs +1 -1
  32. package/components/data/form/fesm2022/index.mjs.map +1 -1
  33. package/components/data/list/bundles/index.umd.js +10 -7
  34. package/components/data/list/esm2022/list-item.directive.mjs +6 -1
  35. package/components/data/list/esm2022/list.component.mjs +7 -8
  36. package/components/data/list/fesm2022/index.mjs +11 -8
  37. package/components/data/list/fesm2022/index.mjs.map +1 -1
  38. package/components/data/list/list-item.directive.d.ts +4 -0
  39. package/components/data/pagination/bundles/index.umd.js +10 -9
  40. package/components/data/pagination/esm2022/pagination.component.mjs +11 -10
  41. package/components/data/pagination/fesm2022/index.mjs +10 -9
  42. package/components/data/pagination/fesm2022/index.mjs.map +1 -1
  43. package/components/data/table/bundles/index.umd.js +3 -1
  44. package/components/data/table/esm2022/table.component.mjs +4 -2
  45. package/components/data/table/fesm2022/index.mjs +3 -1
  46. package/components/data/table/fesm2022/index.mjs.map +1 -1
  47. package/components/input/color-picker/bundles/index.umd.js +2 -2
  48. package/components/input/color-picker/esm2022/color-picker.component.mjs +3 -3
  49. package/components/input/color-picker/fesm2022/index.mjs +2 -2
  50. package/components/input/color-picker/fesm2022/index.mjs.map +1 -1
  51. package/components/input/default/bundles/index.umd.js +37 -32
  52. package/components/input/default/esm2022/checkbox/checkbox.component.mjs +6 -5
  53. package/components/input/default/esm2022/select/select.component.mjs +6 -5
  54. package/components/input/default/esm2022/text/base/base-input.mjs +3 -2
  55. package/components/input/default/esm2022/text/calendar/input-calendar.component.mjs +5 -4
  56. package/components/input/default/esm2022/text/color/input-color.component.mjs +5 -4
  57. package/components/input/default/fesm2022/index.mjs +37 -32
  58. package/components/input/default/fesm2022/index.mjs.map +1 -1
  59. package/components/input/default/text/base/base-input.d.ts +1 -0
  60. package/components/input/epoch/bundles/index.umd.js +13 -11
  61. package/components/input/epoch/esm2022/date/date.component.mjs +2 -2
  62. package/components/input/epoch/esm2022/date-time/date-time.component.mjs +6 -5
  63. package/components/input/epoch/esm2022/time/time.component.mjs +6 -5
  64. package/components/input/epoch/fesm2022/index.mjs +13 -11
  65. package/components/input/epoch/fesm2022/index.mjs.map +1 -1
  66. package/components/input/rating/bundles/index.umd.js +12 -10
  67. package/components/input/rating/esm2022/rating.component.mjs +13 -11
  68. package/components/input/rating/fesm2022/index.mjs +12 -10
  69. package/components/input/rating/fesm2022/index.mjs.map +1 -1
  70. package/components/input/slider/bundles/index.umd.js +4 -3
  71. package/components/input/slider/esm2022/slider.component.mjs +5 -4
  72. package/components/input/slider/fesm2022/index.mjs +4 -3
  73. package/components/input/slider/fesm2022/index.mjs.map +1 -1
  74. package/components/navigation/menu/bundles/index.umd.js +10 -12
  75. package/components/navigation/menu/esm2022/menu.module.mjs +3 -2
  76. package/components/navigation/menu/esm2022/nav/nav-item/nav-item.directive.mjs +3 -2
  77. package/components/navigation/menu/esm2022/nav/nav.component.mjs +8 -12
  78. package/components/navigation/menu/fesm2022/index.mjs +11 -13
  79. package/components/navigation/menu/fesm2022/index.mjs.map +1 -1
  80. package/components/navigation/menu/nav/nav-item/nav-item.directive.d.ts +1 -1
  81. package/components/navigation/menu/nav/nav.component.d.ts +1 -2
  82. package/core/bundles/index.umd.js +23 -0
  83. package/core/esm2022/public_api.mjs +2 -1
  84. package/core/esm2022/services/custom-icons-loader.service.mjs +26 -0
  85. package/core/fesm2022/index.mjs +25 -3
  86. package/core/fesm2022/index.mjs.map +1 -1
  87. package/core/public_api.d.ts +1 -0
  88. package/core/services/custom-icons-loader.service.d.ts +7 -0
  89. package/package-lock.json +2 -2
  90. package/package.json +1 -1
  91. package/runtime/base/bundles/index.umd.js +19 -8
  92. package/runtime/base/components/app-component/app.component.d.ts +3 -1
  93. package/runtime/base/directives/accessroles.directive.d.ts +4 -3
  94. package/runtime/base/esm2022/components/app-component/app.component.mjs +9 -5
  95. package/runtime/base/esm2022/directives/accessroles.directive.mjs +14 -7
  96. package/runtime/base/esm2022/services/i18n.service.mjs +2 -2
  97. package/runtime/base/fesm2022/index.mjs +20 -9
  98. package/runtime/base/fesm2022/index.mjs.map +1 -1
  99. package/scripts/datatable/datatable.js +1 -1
@@ -15,12 +15,13 @@ export class RepeatTemplateDirective extends StylableComponent {
15
15
  styler(this.nativeElement, this);
16
16
  }
17
17
  static { this.ɵfac = function RepeatTemplateDirective_Factory(t) { return new (t || RepeatTemplateDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
18
- static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: RepeatTemplateDirective, selectors: [["", "wmRepeatTemplate", ""]], features: [i0.ɵɵInheritDefinitionFeature] }); }
18
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: RepeatTemplateDirective, selectors: [["", "wmRepeatTemplate", ""]], exportAs: ["repeatItemRef"], features: [i0.ɵɵInheritDefinitionFeature] }); }
19
19
  }
20
20
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RepeatTemplateDirective, [{
21
21
  type: Directive,
22
22
  args: [{
23
- selector: '[wmRepeatTemplate]'
23
+ selector: '[wmRepeatTemplate]',
24
+ exportAs: 'repeatItemRef'
24
25
  }]
25
26
  }], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
26
27
  type: Inject,
@@ -28,4 +29,4 @@ export class RepeatTemplateDirective extends StylableComponent {
28
29
  }, {
29
30
  type: Optional
30
31
  }] }], null); })();
31
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVwZWF0LXRlbXBsYXRlLmRpcmVjdGl2ZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2NvbXBvbmVudHMvYmFzZS9zcmMvd2lkZ2V0cy9jb21tb24vcmVwZ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TtcblxuICAgIGNvbnN0cnVjdG9yKGluajogSW5qZWN0b3IsIEBJbmplY3QoJ0VYUExJQ0lUX0NPTlRFWFQnKSBAT3B0aW9uYWwoKSBleHBsaWNpdENvbnRleHQ6IGFueSkge1xuICAgICAgICBzdXBlcihpbmosIFdJREdFVF9DT05GSUcsIGV4cGxpY2l0Q29udGV4dCk7XG4gICAgICAgIHN0eWxlcih0aGlzLm5hdGl2ZUVsZW1lbnQsIHRoaXMpO1xuICAgIH1cbn1cbiJdfQ==
@@ -1005,6 +1005,7 @@ class BaseComponent {
1005
1005
  addClass(this.nativeElement, config.hostClass);
1006
1006
  }
1007
1007
  this.widgetId = this.generateWidgetId();
1008
+ this.trackId = this.generateWidgetId();
1008
1009
  setAttr(this.nativeElement, 'widget-id', this.widgetId, true);
1009
1010
  // register default property change handler and style change handler
1010
1011
  this.registerStyleChangeListener(this.onStyleChange, this);
@@ -1437,21 +1438,27 @@ class BaseComponent {
1437
1438
  unmute() {
1438
1439
  this.isMuted = false;
1439
1440
  }
1441
+ /**
1442
+ * After the Angular 17 upgrade, Angular is no longer sending ngTemplateContext to components in ng-template.
1443
+ * Wavemaker widgets inside ng-template require context to evaluate bind expressions.
1444
+ * So we're creating an injectionToken that returns the context as a value.
1445
+ * We are passing the injectionToken to the ngTemplateOutletInjector.
1446
+ * This injects the context into each widget in the ng-template.
1447
+ * In the widget component constructor we are getting the injectionToken using dependency injection.
1448
+ * If injectionToken is present, we extend the component context with the value of injectionToken.
1449
+ * @param contextKey
1450
+ * @param context
1451
+ * @returns injector
1452
+ */
1440
1453
  createCustomInjector(contextKey, context) {
1441
1454
  if (this.customInjectorMap[contextKey]) {
1442
- if (this.customInjectorMap[contextKey].context === context) {
1443
- return this.customInjectorMap[contextKey].injector;
1444
- }
1445
- delete this.customInjectorMap[contextKey];
1455
+ return this.customInjectorMap[contextKey].injector;
1446
1456
  }
1447
- const inj = Injector.create({
1448
- providers: [{ provide: 'EXPLICIT_CONTEXT', useValue: context }],
1457
+ const injector = Injector.create({
1458
+ providers: [{ provide: 'EXPLICIT_CONTEXT', useFactory: () => context }]
1449
1459
  });
1450
- this.customInjectorMap[contextKey] = {
1451
- context: context,
1452
- injector: inj
1453
- };
1454
- return inj;
1460
+ this.customInjectorMap[contextKey] = { context, injector };
1461
+ return injector;
1455
1462
  }
1456
1463
  /**
1457
1464
  * After the host page is attached from cache, this function is called.
@@ -1720,12 +1727,13 @@ class RepeatTemplateDirective extends StylableComponent {
1720
1727
  styler(this.nativeElement, this);
1721
1728
  }
1722
1729
  static { this.ɵfac = function RepeatTemplateDirective_Factory(t) { return new (t || RepeatTemplateDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
1723
- static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: RepeatTemplateDirective, selectors: [["", "wmRepeatTemplate", ""]], features: [i0.ɵɵInheritDefinitionFeature] }); }
1730
+ static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: RepeatTemplateDirective, selectors: [["", "wmRepeatTemplate", ""]], exportAs: ["repeatItemRef"], features: [i0.ɵɵInheritDefinitionFeature] }); }
1724
1731
  }
1725
1732
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RepeatTemplateDirective, [{
1726
1733
  type: Directive,
1727
1734
  args: [{
1728
- selector: '[wmRepeatTemplate]'
1735
+ selector: '[wmRepeatTemplate]',
1736
+ exportAs: 'repeatItemRef'
1729
1737
  }]
1730
1738
  }], () => [{ type: i0.Injector }, { type: undefined, decorators: [{
1731
1739
  type: Inject,
@@ -1735,14 +1743,15 @@ class RepeatTemplateDirective extends StylableComponent {
1735
1743
  }] }], null); })();
1736
1744
 
1737
1745
  class LazyLoadDirective {
1738
- constructor(inj, templateRef, viewContainer) {
1746
+ constructor(inj, templateRef, viewContainer, explicitContext = {}) {
1739
1747
  this.templateRef = templateRef;
1740
1748
  this.viewContainer = viewContainer;
1749
+ this.context = {};
1741
1750
  let viewParentApp = inj ? inj.get(App) : inject(App);
1742
1751
  let lView = inj._lView;
1743
1752
  this.viewParent = findParent(lView, viewParentApp);
1744
1753
  //this.context = (inj as any).view.context;
1745
- this.context = inj._lView[8];
1754
+ extend(this.context, inj._lView[8], explicitContext);
1746
1755
  }
1747
1756
  set lazyLoad(expr) {
1748
1757
  this.unSubscribeFn = $watch(expr, this.viewParent, this.context, (val) => {
@@ -1755,7 +1764,7 @@ class LazyLoadDirective {
1755
1764
  ngOnDestroy() {
1756
1765
  this.unSubscribeFn();
1757
1766
  }
1758
- static { this.ɵfac = function LazyLoadDirective_Factory(t) { return new (t || LazyLoadDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject(i0.ViewContainerRef)); }; }
1767
+ static { this.ɵfac = function LazyLoadDirective_Factory(t) { return new (t || LazyLoadDirective)(i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
1759
1768
  static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: LazyLoadDirective, selectors: [["", "lazyLoad", ""]], inputs: { lazyLoad: "lazyLoad" } }); }
1760
1769
  }
1761
1770
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LazyLoadDirective, [{
@@ -1763,7 +1772,12 @@ class LazyLoadDirective {
1763
1772
  args: [{
1764
1773
  selector: '[lazyLoad]'
1765
1774
  }]
1766
- }], () => [{ type: i0.Injector }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }], { lazyLoad: [{
1775
+ }], () => [{ type: i0.Injector }, { type: i0.TemplateRef }, { type: i0.ViewContainerRef }, { type: undefined, decorators: [{
1776
+ type: Inject,
1777
+ args: ['EXPLICIT_CONTEXT']
1778
+ }, {
1779
+ type: Optional
1780
+ }] }], { lazyLoad: [{
1767
1781
  type: Input
1768
1782
  }] }); })();
1769
1783
 
@@ -2077,13 +2091,11 @@ class PartialContainerDirective {
2077
2091
  }] }, { type: i0.ComponentFactoryResolver }, { type: i1.PartialRefProvider }], null); })();
2078
2092
 
2079
2093
  class ShowInDeviceDirective {
2080
- constructor(elRef, widget, viewContainerRef, inj, templateRef) {
2081
- this.elRef = elRef;
2082
- this.widget = widget;
2094
+ constructor(viewContainerRef, inj, templateRef, explicitContext) {
2083
2095
  this.viewContainerRef = viewContainerRef;
2084
2096
  this.templateRef = templateRef;
2085
- //this.context = (inj as any).view.context;
2086
- this.context = inj._lView[8];
2097
+ this.context = {};
2098
+ extend(this.context, inj._lView[8], explicitContext);
2087
2099
  window.addEventListener('resize', this.onResize.bind(this));
2088
2100
  }
2089
2101
  set wmShowInDevice(devices) {
@@ -2128,7 +2140,7 @@ class ShowInDeviceDirective {
2128
2140
  ngOnDestroy() {
2129
2141
  window.removeEventListener('resize', this.onResize);
2130
2142
  }
2131
- static { this.ɵfac = function ShowInDeviceDirective_Factory(t) { return new (t || ShowInDeviceDirective)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(WidgetRef), i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.TemplateRef)); }; }
2143
+ static { this.ɵfac = function ShowInDeviceDirective_Factory(t) { return new (t || ShowInDeviceDirective)(i0.ɵɵdirectiveInject(i0.ViewContainerRef), i0.ɵɵdirectiveInject(i0.Injector), i0.ɵɵdirectiveInject(i0.TemplateRef), i0.ɵɵdirectiveInject('EXPLICIT_CONTEXT', 8)); }; }
2132
2144
  static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: ShowInDeviceDirective, selectors: [["", "wmShowInDevice", ""]], inputs: { wmShowInDevice: "wmShowInDevice" } }); }
2133
2145
  }
2134
2146
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ShowInDeviceDirective, [{
@@ -2136,10 +2148,12 @@ class ShowInDeviceDirective {
2136
2148
  args: [{
2137
2149
  selector: '[wmShowInDevice]'
2138
2150
  }]
2139
- }], () => [{ type: i0.ElementRef }, { type: BaseComponent, decorators: [{
2151
+ }], () => [{ type: i0.ViewContainerRef }, { type: i0.Injector }, { type: i0.TemplateRef }, { type: undefined, decorators: [{
2140
2152
  type: Inject,
2141
- args: [WidgetRef]
2142
- }] }, { type: i0.ViewContainerRef }, { type: i0.Injector }, { type: i0.TemplateRef }], { wmShowInDevice: [{
2153
+ args: ['EXPLICIT_CONTEXT']
2154
+ }, {
2155
+ type: Optional
2156
+ }] }], { wmShowInDevice: [{
2143
2157
  type: Input
2144
2158
  }] }); })();
2145
2159
 
@@ -4703,9 +4717,8 @@ class BaseFieldValidations {
4703
4717
  this.instance.validationmessage = get(err, 'errorMessage');
4704
4718
  }
4705
4719
  else {
4706
- // @ts-ignore
4707
- const keys = keys(err);
4708
- this.instance.validationmessage = (err[keys[0]]).toString();
4720
+ const keys$1 = keys(err);
4721
+ this.instance.validationmessage = (err[keys$1[0]]).toString();
4709
4722
  }
4710
4723
  return err;
4711
4724
  }).then(response => {
@@ -4845,9 +4858,8 @@ class BaseFieldValidations {
4845
4858
  this.instance.validationmessage = get(fieldErrors, 'errorMessage');
4846
4859
  }
4847
4860
  else {
4848
- // @ts-ignore
4849
- const keys = keys(fieldErrors);
4850
- const key = keys[0];
4861
+ const keys$1 = keys(fieldErrors);
4862
+ const key = keys$1[0];
4851
4863
  const validationMsgKey = get(DEFAULT_VALIDATOR, key) || this.formwidget.validateType;
4852
4864
  if (validationMsgKey) {
4853
4865
  const msg = get(this.defaultValidatorMessages, validationMsgKey) || this.instance.validationmessage;
@@ -5234,5 +5246,5 @@ const updateDeviceView = (element, isTablet = false) => {
5234
5246
  * Generated bundle index. Do not edit.
5235
5247
  */
5236
5248
 
5237
- 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 };
5249
+ 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 };
5238
5250
  //# sourceMappingURL=index.mjs.map