@wavemaker/app-ng-runtime 11.4.0-next.28152 → 11.4.0-rc.121

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 (153) hide show
  1. app-ng-runtime/build-task/basic/tree/tree.build.d.ts +1 -2
  2. app-ng-runtime/build-task/bundles/index.umd.js +8 -10
  3. app-ng-runtime/build-task/bundles/index.umd.js.map +1 -1
  4. app-ng-runtime/build-task/esm2015/basic/tree/tree.build.js +3 -4
  5. app-ng-runtime/build-task/esm2015/data/form/form-field/form-field.build.js +2 -2
  6. app-ng-runtime/build-task/esm2015/navigation/popover/popover.build.js +3 -3
  7. app-ng-runtime/build-task/fesm2015/index.js +8 -10
  8. app-ng-runtime/build-task/fesm2015/index.js.map +1 -1
  9. app-ng-runtime/components/base/bundles/index.umd.js +44 -8
  10. app-ng-runtime/components/base/bundles/index.umd.js.map +1 -1
  11. app-ng-runtime/components/base/esm2015/directives/show-in-device.directive.js +16 -5
  12. app-ng-runtime/components/base/esm2015/public_api.js +2 -2
  13. app-ng-runtime/components/base/esm2015/utils/widget-utils.js +22 -4
  14. app-ng-runtime/components/base/esm2015/widgets/common/base/base-field-validations.js +3 -2
  15. app-ng-runtime/components/base/esm2015/widgets/common/dialog/dialog.service.js +7 -1
  16. app-ng-runtime/components/base/fesm2015/index.js +45 -10
  17. app-ng-runtime/components/base/fesm2015/index.js.map +1 -1
  18. app-ng-runtime/components/base/index.metadata.json +1 -1
  19. app-ng-runtime/components/base/public_api.d.ts +1 -1
  20. app-ng-runtime/components/base/utils/widget-utils.d.ts +8 -1
  21. app-ng-runtime/components/basic/tree/bundles/index.umd.js +369 -245
  22. app-ng-runtime/components/basic/tree/bundles/index.umd.js.map +1 -1
  23. app-ng-runtime/components/basic/tree/esm2015/public_api.js +2 -2
  24. app-ng-runtime/components/basic/tree/esm2015/tree.component.js +403 -0
  25. app-ng-runtime/components/basic/tree/esm2015/tree.module.js +3 -3
  26. app-ng-runtime/components/basic/tree/fesm2015/index.js +333 -240
  27. app-ng-runtime/components/basic/tree/fesm2015/index.js.map +1 -1
  28. app-ng-runtime/components/basic/tree/index.metadata.json +1 -1
  29. app-ng-runtime/components/basic/tree/public_api.d.ts +1 -1
  30. app-ng-runtime/components/basic/tree/tree.component.d.ts +43 -0
  31. app-ng-runtime/components/chart/bundles/index.umd.js +1 -1
  32. app-ng-runtime/components/chart/bundles/index.umd.js.map +1 -1
  33. app-ng-runtime/components/chart/esm2015/chart.component.js +2 -2
  34. app-ng-runtime/components/chart/fesm2015/index.js +1 -1
  35. app-ng-runtime/components/chart/fesm2015/index.js.map +1 -1
  36. app-ng-runtime/components/containers/tabs/bundles/index.umd.js +39 -23
  37. app-ng-runtime/components/containers/tabs/bundles/index.umd.js.map +1 -1
  38. app-ng-runtime/components/containers/tabs/esm2015/tab-pane/tab-pane.component.js +8 -1
  39. app-ng-runtime/components/containers/tabs/esm2015/tabs.animator.js +33 -13
  40. app-ng-runtime/components/containers/tabs/fesm2015/index.js +40 -13
  41. app-ng-runtime/components/containers/tabs/fesm2015/index.js.map +1 -1
  42. app-ng-runtime/components/containers/tabs/tabs.animator.d.ts +5 -1
  43. app-ng-runtime/components/containers/wizard/bundles/index.umd.js +43 -2
  44. app-ng-runtime/components/containers/wizard/bundles/index.umd.js.map +1 -1
  45. app-ng-runtime/components/containers/wizard/esm2015/wizard-step/wizard-step.props.js +3 -2
  46. app-ng-runtime/components/containers/wizard/esm2015/wizard.component.js +42 -2
  47. app-ng-runtime/components/containers/wizard/fesm2015/index.js +43 -2
  48. app-ng-runtime/components/containers/wizard/fesm2015/index.js.map +1 -1
  49. app-ng-runtime/components/containers/wizard/index.metadata.json +1 -1
  50. app-ng-runtime/components/containers/wizard/wizard.component.d.ts +2 -0
  51. app-ng-runtime/components/data/form/bundles/index.umd.js +37 -13
  52. app-ng-runtime/components/data/form/bundles/index.umd.js.map +1 -1
  53. app-ng-runtime/components/data/form/esm2015/form-field/form-field.directive.js +26 -7
  54. app-ng-runtime/components/data/form/esm2015/form.component.js +10 -5
  55. app-ng-runtime/components/data/form/fesm2015/index.js +34 -10
  56. app-ng-runtime/components/data/form/fesm2015/index.js.map +1 -1
  57. app-ng-runtime/components/data/form/index.metadata.json +1 -1
  58. app-ng-runtime/components/data/list/bundles/index.umd.js +52 -43
  59. app-ng-runtime/components/data/list/bundles/index.umd.js.map +1 -1
  60. app-ng-runtime/components/data/list/esm2015/list.component.js +52 -43
  61. app-ng-runtime/components/data/list/fesm2015/index.js +51 -42
  62. app-ng-runtime/components/data/list/fesm2015/index.js.map +1 -1
  63. app-ng-runtime/components/data/list/index.metadata.json +1 -1
  64. app-ng-runtime/components/data/list/list.component.d.ts +1 -1
  65. app-ng-runtime/components/data/pagination/bundles/index.umd.js +22 -5
  66. app-ng-runtime/components/data/pagination/bundles/index.umd.js.map +1 -1
  67. app-ng-runtime/components/data/pagination/esm2015/pagination.component.js +23 -6
  68. app-ng-runtime/components/data/pagination/fesm2015/index.js +22 -5
  69. app-ng-runtime/components/data/pagination/fesm2015/index.js.map +1 -1
  70. app-ng-runtime/components/data/pagination/index.metadata.json +1 -1
  71. app-ng-runtime/components/data/pagination/pagination.component.d.ts +1 -0
  72. app-ng-runtime/components/data/table/bundles/index.umd.js +64 -12
  73. app-ng-runtime/components/data/table/bundles/index.umd.js.map +1 -1
  74. app-ng-runtime/components/data/table/esm2015/table.component.js +63 -13
  75. app-ng-runtime/components/data/table/esm2015/table.props.js +3 -1
  76. app-ng-runtime/components/data/table/fesm2015/index.js +64 -12
  77. app-ng-runtime/components/data/table/fesm2015/index.js.map +1 -1
  78. app-ng-runtime/components/data/table/index.metadata.json +1 -1
  79. app-ng-runtime/components/data/table/table.component.d.ts +9 -0
  80. app-ng-runtime/components/dialogs/default/base-dialog.d.ts +1 -0
  81. app-ng-runtime/components/dialogs/default/bundles/index.umd.js +17 -3
  82. app-ng-runtime/components/dialogs/default/bundles/index.umd.js.map +1 -1
  83. app-ng-runtime/components/dialogs/default/esm2015/base-dialog.js +18 -5
  84. app-ng-runtime/components/dialogs/default/fesm2015/index.js +17 -4
  85. app-ng-runtime/components/dialogs/default/fesm2015/index.js.map +1 -1
  86. app-ng-runtime/components/dialogs/default/index.metadata.json +1 -1
  87. app-ng-runtime/components/input/epoch/base-date-time.component.d.ts +1 -0
  88. app-ng-runtime/components/input/epoch/bundles/index.umd.js +78 -35
  89. app-ng-runtime/components/input/epoch/bundles/index.umd.js.map +1 -1
  90. app-ng-runtime/components/input/epoch/date-time/date-time-picker.component.d.ts +1 -0
  91. app-ng-runtime/components/input/epoch/esm2015/base-date-time.component.js +55 -31
  92. app-ng-runtime/components/input/epoch/esm2015/date/date.component.js +3 -3
  93. app-ng-runtime/components/input/epoch/esm2015/date-time/date-time-picker.component.js +31 -11
  94. app-ng-runtime/components/input/epoch/esm2015/date-time/date-time.component.js +2 -2
  95. app-ng-runtime/components/input/epoch/fesm2015/index.js +87 -43
  96. app-ng-runtime/components/input/epoch/fesm2015/index.js.map +1 -1
  97. app-ng-runtime/components/input/epoch/index.metadata.json +1 -1
  98. app-ng-runtime/components/navigation/menu/bundles/index.umd.js +25 -19
  99. app-ng-runtime/components/navigation/menu/bundles/index.umd.js.map +1 -1
  100. app-ng-runtime/components/navigation/menu/esm2015/menu-dropdown-item/menu-dropdown-item.component.js +15 -5
  101. app-ng-runtime/components/navigation/menu/esm2015/menu.component.js +14 -19
  102. app-ng-runtime/components/navigation/menu/fesm2015/index.js +25 -20
  103. app-ng-runtime/components/navigation/menu/fesm2015/index.js.map +1 -1
  104. app-ng-runtime/components/navigation/menu/index.metadata.json +1 -1
  105. app-ng-runtime/components/navigation/menu/menu-dropdown-item/menu-dropdown-item.component.d.ts +7 -4
  106. app-ng-runtime/components/navigation/menu/menu.component.d.ts +3 -7
  107. app-ng-runtime/components/navigation/popover/bundles/index.umd.js +3 -1
  108. app-ng-runtime/components/navigation/popover/bundles/index.umd.js.map +1 -1
  109. app-ng-runtime/components/navigation/popover/esm2015/popover.component.js +5 -3
  110. app-ng-runtime/components/navigation/popover/fesm2015/index.js +4 -2
  111. app-ng-runtime/components/navigation/popover/fesm2015/index.js.map +1 -1
  112. app-ng-runtime/core/bundles/index.umd.js +19 -3
  113. app-ng-runtime/core/bundles/index.umd.js.map +1 -1
  114. app-ng-runtime/core/esm2015/services/pagination.service.js +8 -2
  115. app-ng-runtime/core/esm2015/services/viewport.service.js +6 -4
  116. app-ng-runtime/core/esm2015/utils/utils.js +11 -3
  117. app-ng-runtime/core/fesm2015/index.js +22 -6
  118. app-ng-runtime/core/fesm2015/index.js.map +1 -1
  119. app-ng-runtime/core/index.metadata.json +1 -1
  120. app-ng-runtime/core/utils/utils.d.ts +2 -2
  121. app-ng-runtime/mobile/components/page/default/bundles/index.umd.js +24 -6
  122. app-ng-runtime/mobile/components/page/default/bundles/index.umd.js.map +1 -1
  123. app-ng-runtime/mobile/components/page/default/esm2015/page.directive.js +20 -3
  124. app-ng-runtime/mobile/components/page/default/fesm2015/index.js +19 -2
  125. app-ng-runtime/mobile/components/page/default/fesm2015/index.js.map +1 -1
  126. app-ng-runtime/mobile/components/page/default/index.metadata.json +1 -1
  127. app-ng-runtime/mobile/components/page/default/page.directive.d.ts +4 -1
  128. app-ng-runtime/package.json +1 -1
  129. app-ng-runtime/runtime/base/bundles/index.umd.js +164 -133
  130. app-ng-runtime/runtime/base/bundles/index.umd.js.map +1 -1
  131. app-ng-runtime/runtime/base/esm2015/components/app-component/app.component.js +2 -2
  132. app-ng-runtime/runtime/base/esm2015/public_api.js +2 -1
  133. app-ng-runtime/runtime/base/esm2015/runtime-base.module.js +3 -1
  134. app-ng-runtime/runtime/base/esm2015/services/app.service.js +3 -1
  135. app-ng-runtime/runtime/base/esm2015/services/pipe.service.js +33 -0
  136. app-ng-runtime/runtime/base/fesm2015/index.js +149 -120
  137. app-ng-runtime/runtime/base/fesm2015/index.js.map +1 -1
  138. app-ng-runtime/runtime/base/index.metadata.json +1 -1
  139. app-ng-runtime/runtime/base/public_api.d.ts +1 -0
  140. app-ng-runtime/runtime/base/services/pipe.service.d.ts +9 -0
  141. app-ng-runtime/scripts/datatable/datatable.js +86 -36
  142. app-ng-runtime/scripts/tree-keyboard-navigation/keyboard-navigation.js +251 -0
  143. app-ng-runtime/variables/bundles/index.umd.js +37 -22
  144. app-ng-runtime/variables/bundles/index.umd.js.map +1 -1
  145. app-ng-runtime/variables/esm2015/manager/action/notification-action.manager.js +29 -24
  146. app-ng-runtime/variables/esm2015/service/variables.service.js +8 -1
  147. app-ng-runtime/variables/fesm2015/index.js +35 -24
  148. app-ng-runtime/variables/fesm2015/index.js.map +1 -1
  149. app-ng-runtime/variables/index.metadata.json +1 -1
  150. app-ng-runtime/variables/manager/action/notification-action.manager.d.ts +1 -0
  151. app-ng-runtime/variables/service/variables.service.d.ts +4 -0
  152. app-ng-runtime/components/basic/tree/esm2015/tree.directive.js +0 -310
  153. app-ng-runtime/components/basic/tree/tree.directive.d.ts +0 -35
@@ -1,9 +1,9 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Injectable, Directive, ViewChild, Inject, HostListener, TemplateRef, ViewContainerRef, Injector, Input, Component, Self, ElementRef, ComponentFactoryResolver, NgZone, ChangeDetectorRef, KeyValueDiffers, Compiler, ViewEncapsulation, ApplicationRef, NgModule, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA, APP_ID, RendererStyleFlags2, APP_INITIALIZER, LOCALE_ID } from '@angular/core';
2
+ import { Injectable, Directive, ViewChild, Inject, HostListener, TemplateRef, ViewContainerRef, Injector, Input, Component, Self, ElementRef, ComponentFactoryResolver, ChangeDetectorRef, KeyValueDiffers, Compiler, NgZone, ViewEncapsulation, ApplicationRef, NgModule, CUSTOM_ELEMENTS_SCHEMA, NO_ERRORS_SCHEMA, APP_ID, RendererStyleFlags2, APP_INITIALIZER, LOCALE_ID } from '@angular/core';
3
3
  import { Router, ActivatedRoute, RouterOutlet, RouteReuseStrategy, NavigationStart, NavigationEnd, NavigationCancel, NavigationError, RouterModule } from '@angular/router';
4
4
  import { DatePipe, AsyncPipe, SlicePipe, PercentPipe, I18nPluralPipe, NgLocalization, I18nSelectPipe, KeyValuePipe, UpperCasePipe, LowerCasePipe, JsonPipe, DecimalPipe, TitleCasePipe, CurrencyPipe, DOCUMENT, ɵgetDOM, CommonModule } from '@angular/common';
5
5
  import * as i2 from '@wm/core';
6
- import { $appDigest, isDefined, triggerFn, fetchContent, AbstractHttpService, AbstractDialogService, App, AbstractSpinnerService, AbstractI18nService, stringStartsWith, loadStyleSheets, loadScripts, noop as noop$1, ScriptLoaderService, Viewport, UtilsService, $invokeWatchers, registerFnByExpr, LRUCache, muteWatchers, AbstractNavigationService, isMobileApp, isIos, isAndroid, unMuteWatchers, $watch, isIE, getWmProjectProperties, StatePersistence, AbstractToasterService, ConstantService, FieldTypeService, FieldWidgetService, DynamicComponentRefProvider, EventNotifier, isString, setCSS, _WM_APP_PROJECT, isMobile, setSessionStorageItem, getSessionStorageItem, replace, AppDefaults, CustomPipeManager, setPipeProvider, setNgZone, setAppRef, addClass, removeClass, hasCordova, extendProto, $parseExpr, isObject, isIphone, isIpod, isIpad, CoreModule } from '@wm/core';
6
+ import { $appDigest, isDefined, triggerFn, fetchContent, AbstractHttpService, AbstractDialogService, App, AbstractSpinnerService, AbstractI18nService, stringStartsWith, loadStyleSheets, loadScripts, noop as noop$1, ScriptLoaderService, Viewport, UtilsService, $invokeWatchers, registerFnByExpr, LRUCache, muteWatchers, AbstractNavigationService, isMobileApp, isIos, isAndroid, unMuteWatchers, $watch, isIE, getWmProjectProperties, getSessionStorageItem, CustomPipeManager, StatePersistence, AbstractToasterService, ConstantService, FieldTypeService, FieldWidgetService, DynamicComponentRefProvider, EventNotifier, isString, setCSS, _WM_APP_PROJECT, isMobile, setSessionStorageItem, replace, AppDefaults, setPipeProvider, setNgZone, setAppRef, addClass, removeClass, hasCordova, extendProto, $parseExpr, isObject, isIphone, isIpod, isIpad, CoreModule } from '@wm/core';
7
7
  import { SecurityService, SecurityModule } from '@wm/security';
8
8
  import { CONSTANTS, routerService, $rootScope, VariablesService, MetadataService, appManager, httpService, VariablesModule } from '@wm/variables';
9
9
  import { SpaPageDirective, PageDirective, LayoutDirective } from '@wm/components/page';
@@ -2180,9 +2180,153 @@ PrefabDirective.ctorParameters = () => [
2180
2180
  { type: ComponentRefProvider }
2181
2181
  ];
2182
2182
 
2183
+ class PipeProvider {
2184
+ constructor(compiler, injector, domSanitizer, i18service) {
2185
+ var _a;
2186
+ this.compiler = compiler;
2187
+ this.injector = injector;
2188
+ this.domSanitizer = domSanitizer;
2189
+ this.i18service = i18service;
2190
+ this._locale = getSessionStorageItem('selectedLocale') || 'en';
2191
+ this.formatsByLocale = (_a = this.i18service) === null || _a === void 0 ? void 0 : _a.getwidgetLocale();
2192
+ this.preparePipeMeta = (reference, name, pure, diDeps = []) => ({
2193
+ type: { reference, diDeps },
2194
+ name,
2195
+ pure
2196
+ });
2197
+ this._pipeData = [
2198
+ // TODO | NEED TO BE TESTED
2199
+ this.preparePipeMeta(AsyncPipe, 'async', false, [ChangeDetectorRef]),
2200
+ this.preparePipeMeta(SlicePipe, 'slice', false),
2201
+ this.preparePipeMeta(PercentPipe, 'percent', true, [this._locale]),
2202
+ this.preparePipeMeta(I18nPluralPipe, 'i18nPlural', true, [
2203
+ NgLocalization
2204
+ ]),
2205
+ this.preparePipeMeta(I18nSelectPipe, 'i18nSelect', true),
2206
+ this.preparePipeMeta(KeyValuePipe, 'keyvalue', false, [
2207
+ KeyValueDiffers
2208
+ ]),
2209
+ this.preparePipeMeta(FileIconClassPipe, 'fileIconClass', true),
2210
+ this.preparePipeMeta(FileExtensionFromMimePipe, 'fileExtensionFromMime', true),
2211
+ this.preparePipeMeta(StateClassPipe, 'stateClass', true),
2212
+ this.preparePipeMeta(FileSizePipe, 'filesize', true),
2213
+ // TESTED
2214
+ this.preparePipeMeta(FilterPipe, 'filter', true),
2215
+ this.preparePipeMeta(UpperCasePipe, 'uppercase', true),
2216
+ this.preparePipeMeta(LowerCasePipe, 'lowercase', true),
2217
+ this.preparePipeMeta(JsonPipe, 'json', false),
2218
+ this.preparePipeMeta(DecimalPipe, 'number', true, [this._locale]),
2219
+ this.preparePipeMeta(TitleCasePipe, 'titlecase', true),
2220
+ this.preparePipeMeta(CurrencyPipe, 'currency', true, [this._locale]),
2221
+ this.preparePipeMeta(DatePipe, 'date', true, [this._locale]),
2222
+ this.preparePipeMeta(ToDatePipe, 'toDate', true, [
2223
+ new DatePipe(this._locale)
2224
+ ]),
2225
+ this.preparePipeMeta(ToNumberPipe, 'toNumber', true, [
2226
+ new DecimalPipe(this._locale),
2227
+ this.i18service
2228
+ ]),
2229
+ this.preparePipeMeta(ToCurrencyPipe, 'toCurrency', true, [
2230
+ new DecimalPipe(this._locale),
2231
+ this.i18service
2232
+ ]),
2233
+ this.preparePipeMeta(PrefixPipe, 'prefix', true),
2234
+ this.preparePipeMeta(SuffixPipe, 'suffix', true),
2235
+ this.preparePipeMeta(TimeFromNowPipe, 'timeFromNow', true),
2236
+ this.preparePipeMeta(NumberToStringPipe, 'numberToString', true, [
2237
+ new DecimalPipe(this._locale)
2238
+ ]),
2239
+ this.preparePipeMeta(StringToNumberPipe, 'stringToNumber', true),
2240
+ this.preparePipeMeta(CustomPipe, 'custom', true, [this.injector.get(CustomPipeManager)]),
2241
+ this.preparePipeMeta(TrustAsPipe, 'trustAs', true, [this.domSanitizer]),
2242
+ this.preparePipeMeta(SanitizePipe, 'sanitize', true, [this.domSanitizer])
2243
+ ];
2244
+ this._pipeMeta = new Map();
2245
+ this._pipeData.forEach(v => {
2246
+ this._pipeMeta.set(v.name, v);
2247
+ });
2248
+ }
2249
+ unknownPipe(name) {
2250
+ throw Error(`The pipe '${name}' could not be found`);
2251
+ }
2252
+ meta(name) {
2253
+ const meta = this._pipeMeta.get(name);
2254
+ if (!meta) {
2255
+ this.unknownPipe(name);
2256
+ }
2257
+ return meta;
2258
+ }
2259
+ getPipeNameVsIsPureMap() {
2260
+ const _map = new Map();
2261
+ this._pipeMeta.forEach((v, k) => {
2262
+ _map.set(k, v.pure);
2263
+ });
2264
+ return _map;
2265
+ }
2266
+ resolveDep(dep) {
2267
+ return this.injector.get(dep.token.identifier.reference);
2268
+ }
2269
+ getInstance(name) {
2270
+ const { type: { reference: ref, diDeps: deps } } = this.meta(name);
2271
+ if (!ref) {
2272
+ this.unknownPipe(name);
2273
+ }
2274
+ if (!deps.length) {
2275
+ return new ref();
2276
+ }
2277
+ else {
2278
+ const args = [];
2279
+ for (const dep of deps) {
2280
+ args.push(dep);
2281
+ }
2282
+ return new ref(...args);
2283
+ }
2284
+ }
2285
+ }
2286
+ PipeProvider.ɵprov = i0.ɵɵdefineInjectable({ factory: function PipeProvider_Factory() { return new PipeProvider(i0.ɵɵinject(i0.Compiler), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i1.DomSanitizer), i0.ɵɵinject(i2.AbstractI18nService)); }, token: PipeProvider, providedIn: "root" });
2287
+ PipeProvider.decorators = [
2288
+ { type: Injectable, args: [{
2289
+ providedIn: 'root'
2290
+ },] }
2291
+ ];
2292
+ PipeProvider.ctorParameters = () => [
2293
+ { type: Compiler },
2294
+ { type: Injector },
2295
+ { type: DomSanitizer },
2296
+ { type: AbstractI18nService }
2297
+ ];
2298
+
2299
+ class PipeService {
2300
+ constructor(pipeProvider, $app) {
2301
+ this.pipeProvider = pipeProvider;
2302
+ this.$app = $app;
2303
+ this.supportedPipes = ["toDate", "toCurrency", "prefix", "suffix", "numberToString", "stringToNumber", "timeFromNow", "trustAs", "sanitize"];
2304
+ if (this.$app.isApplicationType) {
2305
+ this.supportedPipes.push('custom');
2306
+ }
2307
+ }
2308
+ getPipe(name) {
2309
+ if (this.supportedPipes.includes(name)) {
2310
+ return this.pipeProvider.getInstance(name);
2311
+ }
2312
+ else {
2313
+ throw Error(`The pipe '${name}' could not be found`);
2314
+ }
2315
+ }
2316
+ }
2317
+ PipeService.ɵprov = i0.ɵɵdefineInjectable({ factory: function PipeService_Factory() { return new PipeService(i0.ɵɵinject(PipeProvider), i0.ɵɵinject(i2.App)); }, token: PipeService, providedIn: "root" });
2318
+ PipeService.decorators = [
2319
+ { type: Injectable, args: [{ providedIn: 'root' },] }
2320
+ ];
2321
+ PipeService.ctorParameters = () => [
2322
+ { type: PipeProvider },
2323
+ { type: App }
2324
+ ];
2325
+
2183
2326
  const injectorMap = {
2184
2327
  DialogService: AbstractDialogService,
2185
2328
  i18nService: AbstractI18nService,
2329
+ PipeService: PipeService,
2186
2330
  statePersistence: StatePersistence,
2187
2331
  SpinnerService: AbstractSpinnerService,
2188
2332
  StatePersistenceService: StatePersistence,
@@ -3354,122 +3498,6 @@ I18nResolve.ctorParameters = () => [
3354
3498
  { type: AbstractI18nService }
3355
3499
  ];
3356
3500
 
3357
- class PipeProvider {
3358
- constructor(compiler, injector, domSanitizer, i18service) {
3359
- var _a;
3360
- this.compiler = compiler;
3361
- this.injector = injector;
3362
- this.domSanitizer = domSanitizer;
3363
- this.i18service = i18service;
3364
- this._locale = getSessionStorageItem('selectedLocale') || 'en';
3365
- this.formatsByLocale = (_a = this.i18service) === null || _a === void 0 ? void 0 : _a.getwidgetLocale();
3366
- this.preparePipeMeta = (reference, name, pure, diDeps = []) => ({
3367
- type: { reference, diDeps },
3368
- name,
3369
- pure
3370
- });
3371
- this._pipeData = [
3372
- // TODO | NEED TO BE TESTED
3373
- this.preparePipeMeta(AsyncPipe, 'async', false, [ChangeDetectorRef]),
3374
- this.preparePipeMeta(SlicePipe, 'slice', false),
3375
- this.preparePipeMeta(PercentPipe, 'percent', true, [this._locale]),
3376
- this.preparePipeMeta(I18nPluralPipe, 'i18nPlural', true, [
3377
- NgLocalization
3378
- ]),
3379
- this.preparePipeMeta(I18nSelectPipe, 'i18nSelect', true),
3380
- this.preparePipeMeta(KeyValuePipe, 'keyvalue', false, [
3381
- KeyValueDiffers
3382
- ]),
3383
- this.preparePipeMeta(FileIconClassPipe, 'fileIconClass', true),
3384
- this.preparePipeMeta(FileExtensionFromMimePipe, 'fileExtensionFromMime', true),
3385
- this.preparePipeMeta(StateClassPipe, 'stateClass', true),
3386
- this.preparePipeMeta(FileSizePipe, 'filesize', true),
3387
- // TESTED
3388
- this.preparePipeMeta(FilterPipe, 'filter', true),
3389
- this.preparePipeMeta(UpperCasePipe, 'uppercase', true),
3390
- this.preparePipeMeta(LowerCasePipe, 'lowercase', true),
3391
- this.preparePipeMeta(JsonPipe, 'json', false),
3392
- this.preparePipeMeta(DecimalPipe, 'number', true, [this._locale]),
3393
- this.preparePipeMeta(TitleCasePipe, 'titlecase', true),
3394
- this.preparePipeMeta(CurrencyPipe, 'currency', true, [this._locale]),
3395
- this.preparePipeMeta(DatePipe, 'date', true, [this._locale]),
3396
- this.preparePipeMeta(ToDatePipe, 'toDate', true, [
3397
- new DatePipe(this._locale)
3398
- ]),
3399
- this.preparePipeMeta(ToNumberPipe, 'toNumber', true, [
3400
- new DecimalPipe(this._locale),
3401
- this.i18service
3402
- ]),
3403
- this.preparePipeMeta(ToCurrencyPipe, 'toCurrency', true, [
3404
- new DecimalPipe(this._locale),
3405
- this.i18service
3406
- ]),
3407
- this.preparePipeMeta(PrefixPipe, 'prefix', true),
3408
- this.preparePipeMeta(SuffixPipe, 'suffix', true),
3409
- this.preparePipeMeta(TimeFromNowPipe, 'timeFromNow', true),
3410
- this.preparePipeMeta(NumberToStringPipe, 'numberToString', true, [
3411
- new DecimalPipe(this._locale)
3412
- ]),
3413
- this.preparePipeMeta(StringToNumberPipe, 'stringToNumber', true),
3414
- this.preparePipeMeta(CustomPipe, 'custom', true, [this.injector.get(CustomPipeManager)]),
3415
- this.preparePipeMeta(TrustAsPipe, 'trustAs', true, [this.domSanitizer]),
3416
- this.preparePipeMeta(SanitizePipe, 'sanitize', true, [this.domSanitizer])
3417
- ];
3418
- this._pipeMeta = new Map();
3419
- this._pipeData.forEach(v => {
3420
- this._pipeMeta.set(v.name, v);
3421
- });
3422
- }
3423
- unknownPipe(name) {
3424
- throw Error(`The pipe '${name}' could not be found`);
3425
- }
3426
- meta(name) {
3427
- const meta = this._pipeMeta.get(name);
3428
- if (!meta) {
3429
- this.unknownPipe(name);
3430
- }
3431
- return meta;
3432
- }
3433
- getPipeNameVsIsPureMap() {
3434
- const _map = new Map();
3435
- this._pipeMeta.forEach((v, k) => {
3436
- _map.set(k, v.pure);
3437
- });
3438
- return _map;
3439
- }
3440
- resolveDep(dep) {
3441
- return this.injector.get(dep.token.identifier.reference);
3442
- }
3443
- getInstance(name) {
3444
- const { type: { reference: ref, diDeps: deps } } = this.meta(name);
3445
- if (!ref) {
3446
- this.unknownPipe(name);
3447
- }
3448
- if (!deps.length) {
3449
- return new ref();
3450
- }
3451
- else {
3452
- const args = [];
3453
- for (const dep of deps) {
3454
- args.push(dep);
3455
- }
3456
- return new ref(...args);
3457
- }
3458
- }
3459
- }
3460
- PipeProvider.ɵprov = i0.ɵɵdefineInjectable({ factory: function PipeProvider_Factory() { return new PipeProvider(i0.ɵɵinject(i0.Compiler), i0.ɵɵinject(i0.INJECTOR), i0.ɵɵinject(i1.DomSanitizer), i0.ɵɵinject(i2.AbstractI18nService)); }, token: PipeProvider, providedIn: "root" });
3461
- PipeProvider.decorators = [
3462
- { type: Injectable, args: [{
3463
- providedIn: 'root'
3464
- },] }
3465
- ];
3466
- PipeProvider.ctorParameters = () => [
3467
- { type: Compiler },
3468
- { type: Injector },
3469
- { type: DomSanitizer },
3470
- { type: AbstractI18nService }
3471
- ];
3472
-
3473
3501
  class AppComponent {
3474
3502
  constructor(_pipeProvider, _appRef, elRef, oAuthService, dialogService, spinnerService, ngZone, router, app, appManager) {
3475
3503
  this.elRef = elRef;
@@ -3606,7 +3634,7 @@ class AppComponent {
3606
3634
  AppComponent.decorators = [
3607
3635
  { type: Component, args: [{
3608
3636
  selector: 'app-root',
3609
- template: "<ng-container *ngIf=\"startApp\">\n <router-outlet></router-outlet>\n <div wmContainer partialContainer content=\"Common\" hidden class=\"ng-hide\" *ngIf=\"isApplicationType\"></div>\n <app-spinner name=\"globalspinner\" classname=\"global-spinner\" role=\"alert\" aria-live=\"assertive\" [attr.aria-label]=\"spinner.arialabel || 'Loading'\" [show]=\"spinner.show\" [spinnermessages]=\"spinner.messages\"></app-spinner>\n <div wmDialog name=\"oAuthLoginDialog\" title=\"Application is requesting you to sign in with\"\n close.event=\"closeOAuthDialog()\">\n <ng-template #dialogBody>\n <ul class=\"list-items\">\n <li class=\"list-item\" *ngFor=\"let provider of providersConfig\">\n <button class=\"btn\" (click)=\"provider.invoke()\">{{provider.name}}</button>\n </li>\n </ul>\n </ng-template>\n </div>\n <div wmConfirmDialog name=\"_app-confirm-dialog\" title.bind=\"title\" message.bind=\"message\" oktext.bind=\"oktext\"\n canceltext.bind=\"canceltext\" closable=\"false\" iconclass.bind=\"iconclass\"\n escape.event=\"onEscape()\" ok.event=\"onOk()\" cancel.event=\"onCancel()\" close.event=\"onClose()\" opened.event=\"onOpen()\"></div>\n <div wmAppExt></div>\n <i id=\"wm-mobile-display\"></i>\n</ng-container>\n<!--Dummy container to create the component dynamically-->\n<ng-container #dynamicComponent></ng-container>\n",
3637
+ template: "<ng-container *ngIf=\"startApp\">\n <router-outlet></router-outlet>\n <div wmContainer partialContainer content=\"Common\" hidden class=\"ng-hide\" *ngIf=\"isApplicationType\"></div>\n <app-spinner name=\"globalspinner\" classname=\"global-spinner\" role=\"alert\" aria-live=\"assertive\" [attr.aria-label]=\"spinner.arialabel || 'Loading'\" [show]=\"spinner.show\" [spinnermessages]=\"spinner.messages\"></app-spinner>\n <div wmDialog name=\"oAuthLoginDialog\" title=\"Application is requesting you to sign in with\"\n close.event=\"closeOAuthDialog()\">\n <ng-template #dialogBody>\n <ul class=\"list-items\">\n <li class=\"list-item\" *ngFor=\"let provider of providersConfig\">\n <button class=\"btn\" (click)=\"provider.invoke()\">{{provider.name}}</button>\n </li>\n </ul>\n </ng-template>\n </div>\n <div wmConfirmDialog name=\"_app-confirm-dialog\" title.bind=\"title\" message.bind=\"message\" oktext.bind=\"oktext\"\n canceltext.bind=\"canceltext\" closable=\"false\" iconclass.bind=\"iconclass\"\n escape.event=\"onEscape()\" ok.event=\"onOk()\" cancel.event=\"onCancel()\" close.event=\"onClose()\" opened.event=\"onOpen()\"></div>\n <div *ngIf=\"!isApplicationType\" wmConfirmDialog name=\"PrefabConfirmDialog\" title.bind=\"title\" message.bind=\"text\" oktext.bind=\"okButtonText\"\n canceltext.bind=\"cancelButtonText\" closable=\"false\" iconclass.bind=\"iconclass\"\n escape.event=\"onEscape()\" ok.event=\"onOk()\" cancel.event=\"onCancel()\" close.event=\"onClose()\" opened.event=\"onOpen()\"></div>\n <div *ngIf=\"!isApplicationType\" wmAlertDialog name=\"PrefabAlertDialog\" title.bind=\"title\" message.bind=\"text\" oktext.bind=\"okButtonText\"\n canceltext.bind=\"cancelButtonText\" closable=\"false\" iconclass.bind=\"iconclass\"\n escape.event=\"onEscape()\" ok.event=\"onOk()\" cancel.event=\"onCancel()\" close.event=\"onClose()\" opened.event=\"onOpen()\"></div>\n <div wmAppExt></div>\n <i id=\"wm-mobile-display\"></i>\n</ng-container>\n<!--Dummy container to create the component dynamically-->\n<ng-container #dynamicComponent></ng-container>\n",
3610
3638
  encapsulation: ViewEncapsulation.None
3611
3639
  },] }
3612
3640
  ];
@@ -4421,6 +4449,7 @@ class RuntimeBaseModule {
4421
4449
  useClass: HttpCallInterceptor,
4422
4450
  multi: true
4423
4451
  },
4452
+ PipeService,
4424
4453
  DecimalPipe,
4425
4454
  DatePipe,
4426
4455
  AppManagerService,
@@ -4587,5 +4616,5 @@ SecurityConfigResolve.ctorParameters = () => [
4587
4616
  * Generated bundle index. Do not edit.
4588
4617
  */
4589
4618
 
4590
- export { AccessrolesDirective, AppComponent, AppDefaultsService, AppExtensionJSResolve, AppExtensionProvider, AppJSProvider, AppJSResolve, AppManagerService, AppRef, AppSpinnerComponent, AppVariablesProvider, AppVariablesResolve, AuthGuard, BaseLayoutComponent, BasePageComponent, BasePartialComponent, BasePrefabComponent, BaseSpaPageComponent, CACHE_PAGE, CanDeactivateNgPageGuard, CanDeactivatePageGuard, ComponentRefProvider, ComponentType, CustomToasterComponent, DynamicComponentRefProviderService, EmptyPageComponent, FragmentMonitor, HttpCallInterceptor, I18nResolve, I18nServiceImpl, InitializeApp, MAX_CACHE_AGE, MAX_CACHE_SIZE, MetadataResolve, NavigationServiceImpl, PageNotFoundGaurd, PipeProvider, PrefabConfigProvider, PrefabDirective, PrefabManagerService, PrefabPreviewComponent, REQUIRED_MODULES_FOR_DYNAMIC_COMPONENTS, RoleGuard, RuntimeBaseModule, SecurityConfigResolve, SpinnerServiceImpl, ToasterServiceImpl, WM_MODULES_FOR_ROOT, WmDefaultRouteReuseStrategy, WmNgRouteReuseStrategy, WmRouteReuseStrategy, commonPartialWidgets, getPrefabBaseUrl, getPrefabConfigUrl, getPrefabMinJsonUrl, getPrefabPartialJsonUrl, isPrefabInPreview, setAngularLocale, ɵ0$4 as ɵ0, getSettingProvider as ɵa, SharedStylesHost as ɵb, WMDomSharedStylesHost as ɵc, WMDomRendererFactory2 as ɵd };
4619
+ export { AccessrolesDirective, AppComponent, AppDefaultsService, AppExtensionJSResolve, AppExtensionProvider, AppJSProvider, AppJSResolve, AppManagerService, AppRef, AppSpinnerComponent, AppVariablesProvider, AppVariablesResolve, AuthGuard, BaseLayoutComponent, BasePageComponent, BasePartialComponent, BasePrefabComponent, BaseSpaPageComponent, CACHE_PAGE, CanDeactivateNgPageGuard, CanDeactivatePageGuard, ComponentRefProvider, ComponentType, CustomToasterComponent, DynamicComponentRefProviderService, EmptyPageComponent, FragmentMonitor, HttpCallInterceptor, I18nResolve, I18nServiceImpl, InitializeApp, MAX_CACHE_AGE, MAX_CACHE_SIZE, MetadataResolve, NavigationServiceImpl, PageNotFoundGaurd, PipeProvider, PipeService, PrefabConfigProvider, PrefabDirective, PrefabManagerService, PrefabPreviewComponent, REQUIRED_MODULES_FOR_DYNAMIC_COMPONENTS, RoleGuard, RuntimeBaseModule, SecurityConfigResolve, SpinnerServiceImpl, ToasterServiceImpl, WM_MODULES_FOR_ROOT, WmDefaultRouteReuseStrategy, WmNgRouteReuseStrategy, WmRouteReuseStrategy, commonPartialWidgets, getPrefabBaseUrl, getPrefabConfigUrl, getPrefabMinJsonUrl, getPrefabPartialJsonUrl, isPrefabInPreview, setAngularLocale, ɵ0$4 as ɵ0, getSettingProvider as ɵa, SharedStylesHost as ɵb, WMDomSharedStylesHost as ɵc, WMDomRendererFactory2 as ɵd };
4591
4620
  //# sourceMappingURL=index.js.map