@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
@@ -2641,9 +2641,170 @@
2641
2641
  { type: ComponentRefProvider }
2642
2642
  ]; };
2643
2643
 
2644
+ var PipeProvider = /** @class */ (function () {
2645
+ function PipeProvider(compiler, injector, domSanitizer, i18service) {
2646
+ var _this = this;
2647
+ var _a;
2648
+ this.compiler = compiler;
2649
+ this.injector = injector;
2650
+ this.domSanitizer = domSanitizer;
2651
+ this.i18service = i18service;
2652
+ this._locale = i2.getSessionStorageItem('selectedLocale') || 'en';
2653
+ this.formatsByLocale = (_a = this.i18service) === null || _a === void 0 ? void 0 : _a.getwidgetLocale();
2654
+ this.preparePipeMeta = function (reference, name, pure, diDeps) {
2655
+ if (diDeps === void 0) { diDeps = []; }
2656
+ return ({
2657
+ type: { reference: reference, diDeps: diDeps },
2658
+ name: name,
2659
+ pure: pure
2660
+ });
2661
+ };
2662
+ this._pipeData = [
2663
+ // TODO | NEED TO BE TESTED
2664
+ this.preparePipeMeta(common.AsyncPipe, 'async', false, [i0.ChangeDetectorRef]),
2665
+ this.preparePipeMeta(common.SlicePipe, 'slice', false),
2666
+ this.preparePipeMeta(common.PercentPipe, 'percent', true, [this._locale]),
2667
+ this.preparePipeMeta(common.I18nPluralPipe, 'i18nPlural', true, [
2668
+ common.NgLocalization
2669
+ ]),
2670
+ this.preparePipeMeta(common.I18nSelectPipe, 'i18nSelect', true),
2671
+ this.preparePipeMeta(common.KeyValuePipe, 'keyvalue', false, [
2672
+ i0.KeyValueDiffers
2673
+ ]),
2674
+ this.preparePipeMeta(base.FileIconClassPipe, 'fileIconClass', true),
2675
+ this.preparePipeMeta(base.FileExtensionFromMimePipe, 'fileExtensionFromMime', true),
2676
+ this.preparePipeMeta(base.StateClassPipe, 'stateClass', true),
2677
+ this.preparePipeMeta(base.FileSizePipe, 'filesize', true),
2678
+ // TESTED
2679
+ this.preparePipeMeta(base.FilterPipe, 'filter', true),
2680
+ this.preparePipeMeta(common.UpperCasePipe, 'uppercase', true),
2681
+ this.preparePipeMeta(common.LowerCasePipe, 'lowercase', true),
2682
+ this.preparePipeMeta(common.JsonPipe, 'json', false),
2683
+ this.preparePipeMeta(common.DecimalPipe, 'number', true, [this._locale]),
2684
+ this.preparePipeMeta(common.TitleCasePipe, 'titlecase', true),
2685
+ this.preparePipeMeta(common.CurrencyPipe, 'currency', true, [this._locale]),
2686
+ this.preparePipeMeta(common.DatePipe, 'date', true, [this._locale]),
2687
+ this.preparePipeMeta(base.ToDatePipe, 'toDate', true, [
2688
+ new common.DatePipe(this._locale)
2689
+ ]),
2690
+ this.preparePipeMeta(base.ToNumberPipe, 'toNumber', true, [
2691
+ new common.DecimalPipe(this._locale),
2692
+ this.i18service
2693
+ ]),
2694
+ this.preparePipeMeta(base.ToCurrencyPipe, 'toCurrency', true, [
2695
+ new common.DecimalPipe(this._locale),
2696
+ this.i18service
2697
+ ]),
2698
+ this.preparePipeMeta(base.PrefixPipe, 'prefix', true),
2699
+ this.preparePipeMeta(base.SuffixPipe, 'suffix', true),
2700
+ this.preparePipeMeta(base.TimeFromNowPipe, 'timeFromNow', true),
2701
+ this.preparePipeMeta(base.NumberToStringPipe, 'numberToString', true, [
2702
+ new common.DecimalPipe(this._locale)
2703
+ ]),
2704
+ this.preparePipeMeta(base.StringToNumberPipe, 'stringToNumber', true),
2705
+ this.preparePipeMeta(base.CustomPipe, 'custom', true, [this.injector.get(i2.CustomPipeManager)]),
2706
+ this.preparePipeMeta(base.TrustAsPipe, 'trustAs', true, [this.domSanitizer]),
2707
+ this.preparePipeMeta(base.SanitizePipe, 'sanitize', true, [this.domSanitizer])
2708
+ ];
2709
+ this._pipeMeta = new Map();
2710
+ this._pipeData.forEach(function (v) {
2711
+ _this._pipeMeta.set(v.name, v);
2712
+ });
2713
+ }
2714
+ PipeProvider.prototype.unknownPipe = function (name) {
2715
+ throw Error("The pipe '" + name + "' could not be found");
2716
+ };
2717
+ PipeProvider.prototype.meta = function (name) {
2718
+ var meta = this._pipeMeta.get(name);
2719
+ if (!meta) {
2720
+ this.unknownPipe(name);
2721
+ }
2722
+ return meta;
2723
+ };
2724
+ PipeProvider.prototype.getPipeNameVsIsPureMap = function () {
2725
+ var _map = new Map();
2726
+ this._pipeMeta.forEach(function (v, k) {
2727
+ _map.set(k, v.pure);
2728
+ });
2729
+ return _map;
2730
+ };
2731
+ PipeProvider.prototype.resolveDep = function (dep) {
2732
+ return this.injector.get(dep.token.identifier.reference);
2733
+ };
2734
+ PipeProvider.prototype.getInstance = function (name) {
2735
+ var e_1, _b;
2736
+ var _c = this.meta(name).type, ref = _c.reference, deps = _c.diDeps;
2737
+ if (!ref) {
2738
+ this.unknownPipe(name);
2739
+ }
2740
+ if (!deps.length) {
2741
+ return new ref();
2742
+ }
2743
+ else {
2744
+ var args = [];
2745
+ try {
2746
+ for (var deps_1 = __values(deps), deps_1_1 = deps_1.next(); !deps_1_1.done; deps_1_1 = deps_1.next()) {
2747
+ var dep = deps_1_1.value;
2748
+ args.push(dep);
2749
+ }
2750
+ }
2751
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
2752
+ finally {
2753
+ try {
2754
+ if (deps_1_1 && !deps_1_1.done && (_b = deps_1.return)) _b.call(deps_1);
2755
+ }
2756
+ finally { if (e_1) throw e_1.error; }
2757
+ }
2758
+ return new (ref.bind.apply(ref, __spreadArray([void 0], __read(args))))();
2759
+ }
2760
+ };
2761
+ return PipeProvider;
2762
+ }());
2763
+ PipeProvider.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PipeProvider_Factory() { return new PipeProvider(i0__namespace.ɵɵinject(i0__namespace.Compiler), i0__namespace.ɵɵinject(i0__namespace.INJECTOR), i0__namespace.ɵɵinject(i1__namespace.DomSanitizer), i0__namespace.ɵɵinject(i2__namespace.AbstractI18nService)); }, token: PipeProvider, providedIn: "root" });
2764
+ PipeProvider.decorators = [
2765
+ { type: i0.Injectable, args: [{
2766
+ providedIn: 'root'
2767
+ },] }
2768
+ ];
2769
+ PipeProvider.ctorParameters = function () { return [
2770
+ { type: i0.Compiler },
2771
+ { type: i0.Injector },
2772
+ { type: i1.DomSanitizer },
2773
+ { type: i2.AbstractI18nService }
2774
+ ]; };
2775
+
2776
+ var PipeService = /** @class */ (function () {
2777
+ function PipeService(pipeProvider, $app) {
2778
+ this.pipeProvider = pipeProvider;
2779
+ this.$app = $app;
2780
+ this.supportedPipes = ["toDate", "toCurrency", "prefix", "suffix", "numberToString", "stringToNumber", "timeFromNow", "trustAs", "sanitize"];
2781
+ if (this.$app.isApplicationType) {
2782
+ this.supportedPipes.push('custom');
2783
+ }
2784
+ }
2785
+ PipeService.prototype.getPipe = function (name) {
2786
+ if (this.supportedPipes.includes(name)) {
2787
+ return this.pipeProvider.getInstance(name);
2788
+ }
2789
+ else {
2790
+ throw Error("The pipe '" + name + "' could not be found");
2791
+ }
2792
+ };
2793
+ return PipeService;
2794
+ }());
2795
+ PipeService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PipeService_Factory() { return new PipeService(i0__namespace.ɵɵinject(PipeProvider), i0__namespace.ɵɵinject(i2__namespace.App)); }, token: PipeService, providedIn: "root" });
2796
+ PipeService.decorators = [
2797
+ { type: i0.Injectable, args: [{ providedIn: 'root' },] }
2798
+ ];
2799
+ PipeService.ctorParameters = function () { return [
2800
+ { type: PipeProvider },
2801
+ { type: i2.App }
2802
+ ]; };
2803
+
2644
2804
  var injectorMap = {
2645
2805
  DialogService: i2.AbstractDialogService,
2646
2806
  i18nService: i2.AbstractI18nService,
2807
+ PipeService: PipeService,
2647
2808
  statePersistence: i2.StatePersistence,
2648
2809
  SpinnerService: i2.AbstractSpinnerService,
2649
2810
  StatePersistenceService: i2.StatePersistence,
@@ -3870,138 +4031,6 @@
3870
4031
  { type: i2.AbstractI18nService }
3871
4032
  ]; };
3872
4033
 
3873
- var PipeProvider = /** @class */ (function () {
3874
- function PipeProvider(compiler, injector, domSanitizer, i18service) {
3875
- var _this = this;
3876
- var _a;
3877
- this.compiler = compiler;
3878
- this.injector = injector;
3879
- this.domSanitizer = domSanitizer;
3880
- this.i18service = i18service;
3881
- this._locale = i2.getSessionStorageItem('selectedLocale') || 'en';
3882
- this.formatsByLocale = (_a = this.i18service) === null || _a === void 0 ? void 0 : _a.getwidgetLocale();
3883
- this.preparePipeMeta = function (reference, name, pure, diDeps) {
3884
- if (diDeps === void 0) { diDeps = []; }
3885
- return ({
3886
- type: { reference: reference, diDeps: diDeps },
3887
- name: name,
3888
- pure: pure
3889
- });
3890
- };
3891
- this._pipeData = [
3892
- // TODO | NEED TO BE TESTED
3893
- this.preparePipeMeta(common.AsyncPipe, 'async', false, [i0.ChangeDetectorRef]),
3894
- this.preparePipeMeta(common.SlicePipe, 'slice', false),
3895
- this.preparePipeMeta(common.PercentPipe, 'percent', true, [this._locale]),
3896
- this.preparePipeMeta(common.I18nPluralPipe, 'i18nPlural', true, [
3897
- common.NgLocalization
3898
- ]),
3899
- this.preparePipeMeta(common.I18nSelectPipe, 'i18nSelect', true),
3900
- this.preparePipeMeta(common.KeyValuePipe, 'keyvalue', false, [
3901
- i0.KeyValueDiffers
3902
- ]),
3903
- this.preparePipeMeta(base.FileIconClassPipe, 'fileIconClass', true),
3904
- this.preparePipeMeta(base.FileExtensionFromMimePipe, 'fileExtensionFromMime', true),
3905
- this.preparePipeMeta(base.StateClassPipe, 'stateClass', true),
3906
- this.preparePipeMeta(base.FileSizePipe, 'filesize', true),
3907
- // TESTED
3908
- this.preparePipeMeta(base.FilterPipe, 'filter', true),
3909
- this.preparePipeMeta(common.UpperCasePipe, 'uppercase', true),
3910
- this.preparePipeMeta(common.LowerCasePipe, 'lowercase', true),
3911
- this.preparePipeMeta(common.JsonPipe, 'json', false),
3912
- this.preparePipeMeta(common.DecimalPipe, 'number', true, [this._locale]),
3913
- this.preparePipeMeta(common.TitleCasePipe, 'titlecase', true),
3914
- this.preparePipeMeta(common.CurrencyPipe, 'currency', true, [this._locale]),
3915
- this.preparePipeMeta(common.DatePipe, 'date', true, [this._locale]),
3916
- this.preparePipeMeta(base.ToDatePipe, 'toDate', true, [
3917
- new common.DatePipe(this._locale)
3918
- ]),
3919
- this.preparePipeMeta(base.ToNumberPipe, 'toNumber', true, [
3920
- new common.DecimalPipe(this._locale),
3921
- this.i18service
3922
- ]),
3923
- this.preparePipeMeta(base.ToCurrencyPipe, 'toCurrency', true, [
3924
- new common.DecimalPipe(this._locale),
3925
- this.i18service
3926
- ]),
3927
- this.preparePipeMeta(base.PrefixPipe, 'prefix', true),
3928
- this.preparePipeMeta(base.SuffixPipe, 'suffix', true),
3929
- this.preparePipeMeta(base.TimeFromNowPipe, 'timeFromNow', true),
3930
- this.preparePipeMeta(base.NumberToStringPipe, 'numberToString', true, [
3931
- new common.DecimalPipe(this._locale)
3932
- ]),
3933
- this.preparePipeMeta(base.StringToNumberPipe, 'stringToNumber', true),
3934
- this.preparePipeMeta(base.CustomPipe, 'custom', true, [this.injector.get(i2.CustomPipeManager)]),
3935
- this.preparePipeMeta(base.TrustAsPipe, 'trustAs', true, [this.domSanitizer]),
3936
- this.preparePipeMeta(base.SanitizePipe, 'sanitize', true, [this.domSanitizer])
3937
- ];
3938
- this._pipeMeta = new Map();
3939
- this._pipeData.forEach(function (v) {
3940
- _this._pipeMeta.set(v.name, v);
3941
- });
3942
- }
3943
- PipeProvider.prototype.unknownPipe = function (name) {
3944
- throw Error("The pipe '" + name + "' could not be found");
3945
- };
3946
- PipeProvider.prototype.meta = function (name) {
3947
- var meta = this._pipeMeta.get(name);
3948
- if (!meta) {
3949
- this.unknownPipe(name);
3950
- }
3951
- return meta;
3952
- };
3953
- PipeProvider.prototype.getPipeNameVsIsPureMap = function () {
3954
- var _map = new Map();
3955
- this._pipeMeta.forEach(function (v, k) {
3956
- _map.set(k, v.pure);
3957
- });
3958
- return _map;
3959
- };
3960
- PipeProvider.prototype.resolveDep = function (dep) {
3961
- return this.injector.get(dep.token.identifier.reference);
3962
- };
3963
- PipeProvider.prototype.getInstance = function (name) {
3964
- var e_1, _b;
3965
- var _c = this.meta(name).type, ref = _c.reference, deps = _c.diDeps;
3966
- if (!ref) {
3967
- this.unknownPipe(name);
3968
- }
3969
- if (!deps.length) {
3970
- return new ref();
3971
- }
3972
- else {
3973
- var args = [];
3974
- try {
3975
- for (var deps_1 = __values(deps), deps_1_1 = deps_1.next(); !deps_1_1.done; deps_1_1 = deps_1.next()) {
3976
- var dep = deps_1_1.value;
3977
- args.push(dep);
3978
- }
3979
- }
3980
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
3981
- finally {
3982
- try {
3983
- if (deps_1_1 && !deps_1_1.done && (_b = deps_1.return)) _b.call(deps_1);
3984
- }
3985
- finally { if (e_1) throw e_1.error; }
3986
- }
3987
- return new (ref.bind.apply(ref, __spreadArray([void 0], __read(args))))();
3988
- }
3989
- };
3990
- return PipeProvider;
3991
- }());
3992
- PipeProvider.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function PipeProvider_Factory() { return new PipeProvider(i0__namespace.ɵɵinject(i0__namespace.Compiler), i0__namespace.ɵɵinject(i0__namespace.INJECTOR), i0__namespace.ɵɵinject(i1__namespace.DomSanitizer), i0__namespace.ɵɵinject(i2__namespace.AbstractI18nService)); }, token: PipeProvider, providedIn: "root" });
3993
- PipeProvider.decorators = [
3994
- { type: i0.Injectable, args: [{
3995
- providedIn: 'root'
3996
- },] }
3997
- ];
3998
- PipeProvider.ctorParameters = function () { return [
3999
- { type: i0.Compiler },
4000
- { type: i0.Injector },
4001
- { type: i1.DomSanitizer },
4002
- { type: i2.AbstractI18nService }
4003
- ]; };
4004
-
4005
4034
  var AppComponent = /** @class */ (function () {
4006
4035
  function AppComponent(_pipeProvider, _appRef, elRef, oAuthService, dialogService, spinnerService, ngZone, router$1, app, appManager) {
4007
4036
  var _this = this;
@@ -4143,7 +4172,7 @@
4143
4172
  AppComponent.decorators = [
4144
4173
  { type: i0.Component, args: [{
4145
4174
  selector: 'app-root',
4146
- 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",
4175
+ 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",
4147
4176
  encapsulation: i0.ViewEncapsulation.None
4148
4177
  },] }
4149
4178
  ];
@@ -5007,6 +5036,7 @@
5007
5036
  useClass: HttpCallInterceptor,
5008
5037
  multi: true
5009
5038
  },
5039
+ PipeService,
5010
5040
  common.DecimalPipe,
5011
5041
  common.DatePipe,
5012
5042
  AppManagerService,
@@ -5215,6 +5245,7 @@
5215
5245
  exports.NavigationServiceImpl = NavigationServiceImpl;
5216
5246
  exports.PageNotFoundGaurd = PageNotFoundGaurd;
5217
5247
  exports.PipeProvider = PipeProvider;
5248
+ exports.PipeService = PipeService;
5218
5249
  exports.PrefabConfigProvider = PrefabConfigProvider;
5219
5250
  exports.PrefabDirective = PrefabDirective;
5220
5251
  exports.PrefabManagerService = PrefabManagerService;