@ng-atomic/common 1.5.0 → 2.0.0

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 (118) hide show
  1. package/bundles/ng-atomic-common-directives-ios-safari-scroll-buggyfill.umd.js +15 -22
  2. package/bundles/ng-atomic-common-directives-ios-safari-scroll-buggyfill.umd.js.map +1 -1
  3. package/bundles/ng-atomic-common-directives.umd.js +15 -22
  4. package/bundles/ng-atomic-common-directives.umd.js.map +1 -1
  5. package/bundles/ng-atomic-common-models.umd.js +2 -2
  6. package/bundles/ng-atomic-common-models.umd.js.map +1 -1
  7. package/bundles/ng-atomic-common-pipes.umd.js +64 -96
  8. package/bundles/ng-atomic-common-pipes.umd.js.map +1 -1
  9. package/bundles/ng-atomic-common-services.umd.js +44 -47
  10. package/bundles/ng-atomic-common-services.umd.js.map +1 -1
  11. package/bundles/ng-atomic-common-store.umd.js +5 -5
  12. package/bundles/ng-atomic-common-store.umd.js.map +1 -1
  13. package/bundles/ng-atomic-common-utils.umd.js +83 -53
  14. package/bundles/ng-atomic-common-utils.umd.js.map +1 -1
  15. package/bundles/ng-atomic-common.umd.js +2 -2
  16. package/bundles/ng-atomic-common.umd.js.map +1 -1
  17. package/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.d.ts +2 -2
  18. package/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.d.ts +3 -3
  19. package/esm2015/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.js +11 -11
  20. package/esm2015/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.js.map +1 -1
  21. package/esm2015/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.js +17 -18
  22. package/esm2015/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.js.map +1 -1
  23. package/esm2015/pipes/domain/domain.module.js +17 -18
  24. package/esm2015/pipes/domain/domain.module.js.map +1 -1
  25. package/esm2015/pipes/domain/domain.pipe.js +14 -14
  26. package/esm2015/pipes/domain/domain.pipe.js.map +1 -1
  27. package/esm2015/pipes/smart-clamp/smart-clamp.module.js +17 -18
  28. package/esm2015/pipes/smart-clamp/smart-clamp.module.js.map +1 -1
  29. package/esm2015/pipes/smart-clamp/smart-clamp.pipe.js +14 -14
  30. package/esm2015/pipes/smart-clamp/smart-clamp.pipe.js.map +1 -1
  31. package/esm2015/pipes/smart-exp/smart-exp.module.js +10 -11
  32. package/esm2015/pipes/smart-exp/smart-exp.module.js.map +1 -1
  33. package/esm2015/pipes/smart-exp/smart-exp.pipe.js +14 -14
  34. package/esm2015/pipes/smart-exp/smart-exp.pipe.js.map +1 -1
  35. package/esm2015/pipes/smart-field/smart-field.module.js +17 -18
  36. package/esm2015/pipes/smart-field/smart-field.module.js.map +1 -1
  37. package/esm2015/pipes/smart-field/smart-field.pipe.js +14 -14
  38. package/esm2015/pipes/smart-field/smart-field.pipe.js.map +1 -1
  39. package/esm2015/pipes/smart-sort-by/smart-sort-by.module.js +17 -18
  40. package/esm2015/pipes/smart-sort-by/smart-sort-by.module.js.map +1 -1
  41. package/esm2015/pipes/smart-sort-by/smart-sort-by.pipe.js +14 -14
  42. package/esm2015/pipes/smart-sort-by/smart-sort-by.pipe.js.map +1 -1
  43. package/esm2015/pipes/yen/yen.module.js +17 -18
  44. package/esm2015/pipes/yen/yen.module.js.map +1 -1
  45. package/esm2015/pipes/yen/yen.pipe.js +8 -8
  46. package/esm2015/pipes/yen/yen.pipe.js.map +1 -1
  47. package/esm2015/services/form/form.service.js +8 -6
  48. package/esm2015/services/form/form.service.js.map +1 -1
  49. package/esm2015/services/loading/loading.service.js +8 -8
  50. package/esm2015/services/loading/loading.service.js.map +1 -1
  51. package/esm2015/services/query-resolver/query-resolver.service.js +18 -15
  52. package/esm2015/services/query-resolver/query-resolver.service.js.map +1 -1
  53. package/esm2015/services/snack-bar/snack-bar.module.js +14 -15
  54. package/esm2015/services/snack-bar/snack-bar.module.js.map +1 -1
  55. package/esm2015/services/snack-bar/snack-bar.service.js +8 -8
  56. package/esm2015/services/snack-bar/snack-bar.service.js.map +1 -1
  57. package/esm2015/utils/date-utils/date-utils.js +1 -1
  58. package/esm2015/utils/date-utils/date-utils.js.map +1 -1
  59. package/esm2015/utils/mat-dayjs-date/dayjs-date.adapter.js +9 -7
  60. package/esm2015/utils/mat-dayjs-date/dayjs-date.adapter.js.map +1 -1
  61. package/esm2015/utils/mat-dayjs-date/dayjs-date.module.js +25 -26
  62. package/esm2015/utils/mat-dayjs-date/dayjs-date.module.js.map +1 -1
  63. package/esm2015/utils/mat-dayjs-date/dayjs-jp-providers.js +1 -1
  64. package/esm2015/utils/mat-dayjs-date/dayjs-jp-providers.js.map +1 -1
  65. package/esm2015/utils/query/query.resolver.js +37 -4
  66. package/esm2015/utils/query/query.resolver.js.map +1 -1
  67. package/esm2015/utils/smart-exp-transformer/smart-exp-transformer.js +1 -1
  68. package/esm2015/utils/smart-exp-transformer/smart-exp-transformer.js.map +1 -1
  69. package/fesm2015/ng-atomic-common-directives-ios-safari-scroll-buggyfill.js +29 -30
  70. package/fesm2015/ng-atomic-common-directives-ios-safari-scroll-buggyfill.js.map +1 -1
  71. package/fesm2015/ng-atomic-common-directives.js +29 -30
  72. package/fesm2015/ng-atomic-common-directives.js.map +1 -1
  73. package/fesm2015/ng-atomic-common-models.js.map +1 -1
  74. package/fesm2015/ng-atomic-common-pipes.js +174 -180
  75. package/fesm2015/ng-atomic-common-pipes.js.map +1 -1
  76. package/fesm2015/ng-atomic-common-services.js +63 -57
  77. package/fesm2015/ng-atomic-common-services.js.map +1 -1
  78. package/fesm2015/ng-atomic-common-store.js.map +1 -1
  79. package/fesm2015/ng-atomic-common-utils.js +79 -46
  80. package/fesm2015/ng-atomic-common-utils.js.map +1 -1
  81. package/fesm2015/ng-atomic-common.js.map +1 -1
  82. package/package.json +3 -6
  83. package/pipes/domain/domain.module.d.ts +3 -3
  84. package/pipes/domain/domain.pipe.d.ts +3 -3
  85. package/pipes/smart-clamp/smart-clamp.module.d.ts +3 -3
  86. package/pipes/smart-clamp/smart-clamp.pipe.d.ts +2 -2
  87. package/pipes/smart-exp/smart-exp.module.d.ts +3 -3
  88. package/pipes/smart-exp/smart-exp.pipe.d.ts +3 -3
  89. package/pipes/smart-field/smart-field.module.d.ts +3 -3
  90. package/pipes/smart-field/smart-field.pipe.d.ts +3 -3
  91. package/pipes/smart-sort-by/smart-sort-by.module.d.ts +3 -3
  92. package/pipes/smart-sort-by/smart-sort-by.pipe.d.ts +2 -2
  93. package/pipes/yen/yen.module.d.ts +3 -3
  94. package/pipes/yen/yen.pipe.d.ts +2 -2
  95. package/services/loading/loading.service.d.ts +3 -3
  96. package/services/query-resolver/query-resolver.service.d.ts +2 -2
  97. package/services/snack-bar/snack-bar.module.d.ts +3 -3
  98. package/services/snack-bar/snack-bar.service.d.ts +2 -2
  99. package/store/entity.page.store.d.ts +1 -1
  100. package/utils/date-utils/date-utils.d.ts +1 -1
  101. package/utils/mat-dayjs-date/dayjs-date.module.d.ts +6 -6
  102. package/utils/smart-exp-transformer/smart-exp-transformer.d.ts +1 -1
  103. package/bundles/ng-atomic-common-directives-ios-safari-scroll-buggyfill.umd.min.js +0 -2
  104. package/bundles/ng-atomic-common-directives-ios-safari-scroll-buggyfill.umd.min.js.map +0 -1
  105. package/bundles/ng-atomic-common-directives.umd.min.js +0 -2
  106. package/bundles/ng-atomic-common-directives.umd.min.js.map +0 -1
  107. package/bundles/ng-atomic-common-models.umd.min.js +0 -2
  108. package/bundles/ng-atomic-common-models.umd.min.js.map +0 -1
  109. package/bundles/ng-atomic-common-pipes.umd.min.js +0 -2
  110. package/bundles/ng-atomic-common-pipes.umd.min.js.map +0 -1
  111. package/bundles/ng-atomic-common-services.umd.min.js +0 -16
  112. package/bundles/ng-atomic-common-services.umd.min.js.map +0 -1
  113. package/bundles/ng-atomic-common-store.umd.min.js +0 -16
  114. package/bundles/ng-atomic-common-store.umd.min.js.map +0 -1
  115. package/bundles/ng-atomic-common-utils.umd.min.js +0 -17
  116. package/bundles/ng-atomic-common-utils.umd.min.js.map +0 -1
  117. package/bundles/ng-atomic-common.umd.min.js +0 -2
  118. package/bundles/ng-atomic-common.umd.min.js.map +0 -1
@@ -28,18 +28,18 @@ export class SmartClampPipe {
28
28
  return this._output = items;
29
29
  }
30
30
  }
31
- SmartClampPipe.ɵfac = function SmartClampPipe_Factory(t) { return new (t || SmartClampPipe)(i0.ɵɵdirectiveInject(SMART_SORT_BY_TRANSFORMER, 8)); };
32
- SmartClampPipe.ɵpipe = i0.ɵɵngDeclarePipe({ version: "11.2.14", ngImport: i0, type: SmartClampPipe, name: "smartClamp", pure: false });
33
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartClampPipe, [{
34
- type: Pipe,
35
- args: [{
36
- name: 'smartClamp',
37
- pure: false,
38
- }]
39
- }], function () { return [{ type: undefined, decorators: [{
40
- type: Optional
41
- }, {
42
- type: Inject,
43
- args: [SMART_SORT_BY_TRANSFORMER]
44
- }] }]; }, null); })();
31
+ SmartClampPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SmartClampPipe, deps: [{ token: SMART_SORT_BY_TRANSFORMER, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });
32
+ SmartClampPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SmartClampPipe, name: "smartClamp", pure: false });
33
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SmartClampPipe, decorators: [{
34
+ type: Pipe,
35
+ args: [{
36
+ name: 'smartClamp',
37
+ pure: false,
38
+ }]
39
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
40
+ type: Optional
41
+ }, {
42
+ type: Inject,
43
+ args: [SMART_SORT_BY_TRANSFORMER]
44
+ }] }]; } });
45
45
  //# sourceMappingURL=smart-clamp.pipe.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"smart-clamp.pipe.js","sourceRoot":"","sources":["../../../../../../libs/common/pipes/smart-clamp/smart-clamp.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AAEtE,OAAO,EAAE,sBAAsB,EAA0B,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;;AAM7G,MAAM,OAAO,cAAc;IAKzB,YAGU,WAAoC;;QAApC,gBAAW,GAAX,WAAW,CAAyB;QAPtC,cAAS,GAAG,IAAI,SAAS,EAAE,CAAC;QAC5B,WAAM,GAAG,IAAI,CAAC;QACd,YAAO,GAAG,EAAE,CAAC;QAOnB,MAAA,IAAI,CAAC,WAAW,oCAAhB,IAAI,CAAC,WAAW,GAAK,sBAAsB,EAAC;IAC9C,CAAC;IAED,SAAS,CAAI,KAAU,EAAE,KAAkC;QACzD,MAAM,KAAK,GAAG;YACZ,KAAK;YACL,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK;YACvB,GAAG,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG;SACpB,CAAC;QAEF,IAAI,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,MAAM,CAAC,EAAE;YACzD,OAAO,IAAI,CAAC,OAAO,CAAC;SACrB;QAED,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACpB,KAAK,GAAG,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,OAAO,EAAE,KAAK,aAAL,KAAK,uBAAL,KAAK,CAAE,SAA2B,CAAC,CAAC;QACpF,KAAK,GAAG,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC1E,OAAO,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;IAC9B,CAAC;;4EA9BU,cAAc,uBAOf,yBAAyB;oFAPxB,cAAc;uFAAd,cAAc;cAJ1B,IAAI;eAAC;gBACJ,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,KAAK;aACZ;;sBAOI,QAAQ;;sBACR,MAAM;uBAAC,yBAAyB","sourcesContent":["import { SlicePipe } from '@angular/common';\nimport { Inject, Optional, Pipe, PipeTransform } from '@angular/core';\nimport { EntitiesPageStore } from '@ng-atomic/common/store';\nimport { smartSortByTransformer, SmartSortByTransformer, SMART_SORT_BY_TRANSFORMER } from '../smart-sort-by';\n\n@Pipe({\n name: 'smartClamp',\n pure: false,\n})\nexport class SmartClampPipe implements PipeTransform {\n private slicePipe = new SlicePipe();\n private _input = null;\n private _output = [];\n\n constructor(\n @Optional()\n @Inject(SMART_SORT_BY_TRANSFORMER)\n private transformer?: SmartSortByTransformer,\n ) {\n this.transformer ??= smartSortByTransformer;\n }\n\n transform<T>(items: T[], store: EntitiesPageStore<any, any>): T[] {\n const input = {\n items, \n sortKey: store.sortKey, \n sortOrder: store.sortOrder, \n start: store.page.start,\n end: store.page.end,\n };\n \n if (JSON.stringify(input) === JSON.stringify(this._input)) {\n return this._output;\n }\n\n this._input = input;\n items = this.transformer(items, store?.sortKey, store?.sortOrder as 'asc' | 'desc');\n items = this.slicePipe.transform(items, store.page.start, store.page.end);\n return this._output = items;\n }\n}\n"]}
1
+ {"version":3,"file":"smart-clamp.pipe.js","sourceRoot":"","sources":["../../../../../../libs/common/pipes/smart-clamp/smart-clamp.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAC;AAC5C,OAAO,EAAE,M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f,yBAAyB;0GAPxB,cAAc;4FAAd,cAAc;kBAJ1B,IAAI;mBAAC;oBACJ,IAAI,EAAE,YAAY;oBAClB,IAAI,EAAE,KAAK;iBACZ;;0BAOI,QAAQ;;0BACR,MAAM;2BAAC,yBAAyB","sourcesContent":["import { SlicePipe } from '@angular/common';\nimport { Inject, Optional, Pipe, PipeTransform } from '@angular/core';\nimport { EntitiesPageStore } from '@ng-atomic/common/store';\nimport { smartSortByTransformer, SmartSortByTransformer, SMART_SORT_BY_TRANSFORMER } from '../smart-sort-by';\n\n@Pipe({\n name: 'smartClamp',\n pure: false,\n})\nexport class SmartClampPipe implements PipeTransform {\n private slicePipe = new SlicePipe();\n private _input = null;\n private _output = [];\n\n constructor(\n @Optional()\n @Inject(SMART_SORT_BY_TRANSFORMER)\n private transformer?: SmartSortByTransformer,\n ) {\n this.transformer ??= smartSortByTransformer;\n }\n\n transform<T>(items: T[], store: EntitiesPageStore<any, any>): T[] {\n const input = {\n items, \n sortKey: store.sortKey, \n sortOrder: store.sortOrder, \n start: store.page.start,\n end: store.page.end,\n };\n \n if (JSON.stringify(input) === JSON.stringify(this._input)) {\n return this._output;\n }\n\n this._input = input;\n items = this.transformer(items, store?.sortKey, store?.sortOrder as 'asc' | 'desc');\n items = this.slicePipe.transform(items, store.page.start, store.page.end);\n return this._output = items;\n }\n}\n"]}
@@ -3,15 +3,14 @@ import { SmartExpPipe } from "./smart-exp.pipe";
3
3
  import * as i0 from "@angular/core";
4
4
  export class SmartExpModule {
5
5
  }
6
- SmartExpModule.ɵfac = function SmartExpModule_Factory(t) { return new (t || SmartExpModule)(); };
7
- SmartExpModule.ɵmod = i0.ɵɵdefineNgModule({ type: SmartExpModule });
8
- SmartExpModule.ɵinj = i0.ɵɵdefineInjector({});
9
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SmartExpModule, { declarations: [SmartExpPipe], exports: [SmartExpPipe] }); })();
10
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartExpModule, [{
11
- type: NgModule,
12
- args: [{
13
- declarations: [SmartExpPipe],
14
- exports: [SmartExpPipe]
15
- }]
16
- }], null, null); })();
6
+ SmartExpModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SmartExpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
7
+ SmartExpModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SmartExpModule, declarations: [SmartExpPipe], exports: [SmartExpPipe] });
8
+ SmartExpModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SmartExpModule });
9
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SmartExpModule, decorators: [{
10
+ type: NgModule,
11
+ args: [{
12
+ declarations: [SmartExpPipe],
13
+ exports: [SmartExpPipe]
14
+ }]
15
+ }] });
17
16
  //# sourceMappingURL=smart-exp.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"smart-exp.module.js","sourceRoot":"","sources":["../../../../../../libs/common/pipes/smart-exp/smart-exp.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;;AAMhD,MAAM,OAAO,cAAc;;4EAAd,cAAc;kDAAd,cAAc;;wFAAd,cAAc,mBAHV,YAAY,aACjB,YAAY;uFAEX,cAAc;cAJ1B,QAAQ;eAAC;gBACR,YAAY,EAAE,CAAC,YAAY,CAAC;gBAC5B,OAAO,EAAE,CAAC,YAAY,CAAC;aACxB","sourcesContent":["import { NgModule } from \"@angular/core\";\nimport { SmartExpPipe } from \"./smart-exp.pipe\";\n\n@NgModule({\n declarations: [SmartExpPipe],\n exports: [SmartExpPipe]\n})\nexport class SmartExpModule { }"]}
1
+ {"version":3,"file":"smart-exp.module.js","sourceRoot":"","sources":["../../../../../../libs/common/pipes/smart-exp/smart-exp.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;;AAMhD,MAAM,OAAO,cAAc;;4GAAd,cAAc;6GAAd,cAAc,iBAHV,YAAY,aACjB,YAAY;6GAEX,cAAc;4FAAd,cAAc;kBAJ1B,QAAQ;mBAAC;oBACR,YAAY,EAAE,CAAC,YAAY,CAAC;oBAC5B,OAAO,EAAE,CAAC,YAAY,CAAC;iBACxB","sourcesContent":["import { NgModule } from \"@angular/core\";\nimport { SmartExpPipe } from \"./smart-exp.pipe\";\n\n@NgModule({\n declarations: [SmartExpPipe],\n exports: [SmartExpPipe]\n})\nexport class SmartExpModule { }"]}
@@ -11,18 +11,18 @@ export class SmartExpPipe {
11
11
  return this.transformer(input, key);
12
12
  }
13
13
  }
14
- SmartExpPipe.ɵfac = function SmartExpPipe_Factory(t) { return new (t || SmartExpPipe)(i0.ɵɵdirectiveInject(SMART_EXP_TRANSFORMER, 8)); };
15
- SmartExpPipe.ɵpipe = i0.ɵɵngDeclarePipe({ version: "11.2.14", ngImport: i0, type: SmartExpPipe, name: "smartExp" });
16
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartExpPipe, [{
17
- type: Pipe,
18
- args: [{
19
- name: 'smartExp',
20
- pure: true,
21
- }]
22
- }], function () { return [{ type: undefined, decorators: [{
23
- type: Optional
24
- }, {
25
- type: Inject,
26
- args: [SMART_EXP_TRANSFORMER]
27
- }] }]; }, null); })();
14
+ SmartExpPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SmartExpPipe, deps: [{ token: SMART_EXP_TRANSFORMER, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });
15
+ SmartExpPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SmartExpPipe, name: "smartExp" });
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SmartExpPipe, decorators: [{
17
+ type: Pipe,
18
+ args: [{
19
+ name: 'smartExp',
20
+ pure: true,
21
+ }]
22
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
23
+ type: Optional
24
+ }, {
25
+ type: Inject,
26
+ args: [SMART_EXP_TRANSFORMER]
27
+ }] }]; } });
28
28
  //# sourceMappingURL=smart-exp.pipe.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"smart-exp.pipe.js","sourceRoot":"","sources":["../../../../../../libs/common/pipes/smart-exp/smart-exp.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEvD,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAuB,MAAM,yBAAyB,CAAC;;AAM1G,MAAM,OAAO,YAAY;IACvB,YACqD,WAAgC;;QAAhC,gBAAW,GAAX,WAAW,CAAqB;QAEnF,MAAA,IAAI,CAAC,WAAW,oCAAhB,IAAI,CAAC,WAAW,GAAK,mBAAmB,EAAC;IAC3C,CAAC;IAED,SAAS,CAAC,KAA0C,EAAE,GAAY;QAChE,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACtC,CAAC;;wEATU,YAAY,uBAED,qBAAqB;kFAFhC,YAAY;uFAAZ,YAAY;cAJxB,IAAI;eAAC;gBACJ,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,IAAI;aACX;;sBAGI,QAAQ;;sBAAI,MAAM;uBAAC,qBAAqB","sourcesContent":["import { Inject, Optional, Pipe } from '@angular/core';\nimport * as dayjs from 'dayjs';\nimport { SMART_EXP_TRANSFORMER, smartExpTransformer, SmartExpTransformer } from '@ng-atomic/common/utils';\n\n@Pipe({\n name: 'smartExp',\n pure: true,\n})\nexport class SmartExpPipe {\n constructor(\n @Optional() @Inject(SMART_EXP_TRANSFORMER) private transformer: SmartExpTransformer\n ) {\n this.transformer ??= smartExpTransformer;\n }\n\n transform(input: string | number | dayjs.Dayjs | any, key?: string): string {\n return this.transformer(input, key);\n }\n}"]}
1
+ {"version":3,"file":"smart-exp.pipe.js","sourceRoot":"","sources":["../../../../../../libs/common/pipes/smart-exp/smart-exp.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEvD,OAAO,EAAE,qBAAqB,EAAE,mBAAmB,EAAuB,MAAM,yBAAyB,CAAC;;AAM1G,MAAM,OAAO,YAAY;IACvB,YACqD,WAAgC;;QAAhC,gBAAW,GAAX,WAAW,CAAqB;QAEnF,MAAA,IAAI,CAAC,WAAW,oCAAhB,IAAI,CAAC,WAAW,GAAK,mBAAmB,EAAC;IAC3C,CAAC;IAED,SAAS,CAAC,KAA0C,EAAE,GAAY;QAChE,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;IACtC,CAAC;;0GATU,YAAY,kBAED,qBAAqB;wGAFhC,YAAY;4FAAZ,YAAY;kBAJxB,IAAI;mBAAC;oBACJ,IAAI,EAAE,UAAU;oBAChB,IAAI,EAAE,IAAI;iBACX;;0BAGI,QAAQ;;0BAAI,MAAM;2BAAC,qBAAqB","sourcesContent":["import { Inject, Optional, Pipe } from '@angular/core';\nimport dayjs from 'dayjs';\nimport { SMART_EXP_TRANSFORMER, smartExpTransformer, SmartExpTransformer } from '@ng-atomic/common/utils';\n\n@Pipe({\n name: 'smartExp',\n pure: true,\n})\nexport class SmartExpPipe {\n constructor(\n @Optional() @Inject(SMART_EXP_TRANSFORMER) private transformer: SmartExpTransformer\n ) {\n this.transformer ??= smartExpTransformer;\n }\n\n transform(input: string | number | dayjs.Dayjs | any, key?: string): string {\n return this.transformer(input, key);\n }\n}"]}
@@ -4,24 +4,23 @@ import { SmartFieldPipe } from './smart-field.pipe';
4
4
  import * as i0 from "@angular/core";
5
5
  export class SmartFieldModule {
6
6
  }
7
- SmartFieldModule.ɵfac = function SmartFieldModule_Factory(t) { return new (t || SmartFieldModule)(); };
8
- SmartFieldModule.ɵmod = i0.ɵɵdefineNgModule({ type: SmartFieldModule });
9
- SmartFieldModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[
7
+ SmartFieldModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SmartFieldModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
8
+ SmartFieldModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SmartFieldModule, declarations: [SmartFieldPipe], imports: [CommonModule], exports: [SmartFieldPipe] });
9
+ SmartFieldModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SmartFieldModule, imports: [[
10
10
  CommonModule
11
11
  ]] });
12
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SmartFieldModule, { declarations: [SmartFieldPipe], imports: [CommonModule], exports: [SmartFieldPipe] }); })();
13
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartFieldModule, [{
14
- type: NgModule,
15
- args: [{
16
- declarations: [
17
- SmartFieldPipe
18
- ],
19
- imports: [
20
- CommonModule
21
- ],
22
- exports: [
23
- SmartFieldPipe
24
- ]
25
- }]
26
- }], null, null); })();
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SmartFieldModule, decorators: [{
13
+ type: NgModule,
14
+ args: [{
15
+ declarations: [
16
+ SmartFieldPipe
17
+ ],
18
+ imports: [
19
+ CommonModule
20
+ ],
21
+ exports: [
22
+ SmartFieldPipe
23
+ ]
24
+ }]
25
+ }] });
27
26
  //# sourceMappingURL=smart-field.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"smart-field.module.js","sourceRoot":"","sources":["../../../../../../libs/common/pipes/smart-field/smart-field.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;;AAepD,MAAM,OAAO,gBAAgB;;gFAAhB,gBAAgB;oDAAhB,gBAAgB;wDAPlB;YACP,YAAY;SACb;wFAKU,gBAAgB,mBATzB,cAAc,aAGd,YAAY,aAGZ,cAAc;uFAGL,gBAAgB;cAX5B,QAAQ;eAAC;gBACR,YAAY,EAAE;oBACZ,cAAc;iBACf;gBACD,OAAO,EAAE;oBACP,YAAY;iBACb;gBACD,OAAO,EAAE;oBACP,cAAc;iBACf;aACF","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SmartFieldPipe } from './smart-field.pipe';\n\n\n\n@NgModule({\n declarations: [\n SmartFieldPipe\n ],\n imports: [\n CommonModule\n ],\n exports: [\n SmartFieldPipe\n ]\n})\nexport class SmartFieldModule { }\n"]}
1
+ {"version":3,"file":"smart-field.module.js","sourceRoot":"","sources":["../../../../../../libs/common/pipes/smart-field/smart-field.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAC;;AAepD,MAAM,OAAO,gBAAgB;;8GAAhB,gBAAgB;+GAAhB,gBAAgB,iBATzB,cAAc,aAGd,YAAY,aAGZ,cAAc;+GAGL,gBAAgB,YAPlB;YACP,YAAY;SACb;4FAKU,gBAAgB;kBAX5B,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,cAAc;qBACf;oBACD,OAAO,EAAE;wBACP,YAAY;qBACb;oBACD,OAAO,EAAE;wBACP,cAAc;qBACf;iBACF","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SmartFieldPipe } from './smart-field.pipe';\n\n\n\n@NgModule({\n declarations: [\n SmartFieldPipe\n ],\n imports: [\n CommonModule\n ],\n exports: [\n SmartFieldPipe\n ]\n})\nexport class SmartFieldModule { }\n"]}
@@ -16,18 +16,18 @@ export class SmartFieldPipe {
16
16
  return (_a = this.map[key]) !== null && _a !== void 0 ? _a : { type: 'input' };
17
17
  }
18
18
  }
19
- SmartFieldPipe.ɵfac = function SmartFieldPipe_Factory(t) { return new (t || SmartFieldPipe)(i0.ɵɵdirectiveInject(FORM_FIELD_MAP, 8)); };
20
- SmartFieldPipe.ɵpipe = i0.ɵɵngDeclarePipe({ version: "11.2.14", ngImport: i0, type: SmartFieldPipe, name: "smartField" });
21
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartFieldPipe, [{
22
- type: Pipe,
23
- args: [{
24
- name: 'smartField',
25
- pure: true,
26
- }]
27
- }], function () { return [{ type: undefined, decorators: [{
28
- type: Optional
29
- }, {
30
- type: Inject,
31
- args: [FORM_FIELD_MAP]
32
- }] }]; }, null); })();
19
+ SmartFieldPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SmartFieldPipe, deps: [{ token: FORM_FIELD_MAP, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });
20
+ SmartFieldPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SmartFieldPipe, name: "smartField" });
21
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SmartFieldPipe, decorators: [{
22
+ type: Pipe,
23
+ args: [{
24
+ name: 'smartField',
25
+ pure: true,
26
+ }]
27
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
28
+ type: Optional
29
+ }, {
30
+ type: Inject,
31
+ args: [FORM_FIELD_MAP]
32
+ }] }]; } });
33
33
  //# sourceMappingURL=smart-field.pipe.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"smart-field.pipe.js","sourceRoot":"","sources":["../../../../../../libs/common/pipes/smart-field/smart-field.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;;AAgCtF,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,cAAc,CAAe,+BAA+B,CAAC,CAAC;AAMhG,MAAM,OAAO,cAAc;IAEzB,YAC8C,GAAmC;;QAAnC,QAAG,GAAH,GAAG,CAAgC;QAE/E,MAAA,IAAI,CAAC,GAAG,oCAAR,IAAI,CAAC,GAAG,GAAK;YACX,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YAC3B,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YAC3B,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;SAC5B,EAAC;IACJ,CAAC;IAED,SAAS,CAAC,GAAW;;QACnB,aAAO,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,mCAAI,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;IAC1C,CAAC;;4EAdU,cAAc,uBAGH,cAAc;oFAHzB,cAAc;uFAAd,cAAc;cAJ1B,IAAI;eAAC;gBACJ,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,IAAI;aACX;;sBAII,QAAQ;;sBAAI,MAAM;uBAAC,cAAc","sourcesContent":["import { Inject, InjectionToken, Optional, Pipe, PipeTransform } from '@angular/core';\n\ninterface Option<T> {\n name: string;\n value: T;\n}\n\ninterface InputField {\n type: 'input';\n}\n\ninterface DateInputField {\n type: 'date';\n}\n\ninterface SelectField<T> {\n type: 'select';\n options: Option<T>[];\n}\n\ninterface MultiSelectField<T> {\n type: 'multi-select';\n options: Option<T>[];\n}\n\ntype FormField<V> = InputField\n | DateInputField\n | SelectField<V>\n | MultiSelectField<V>;\n\nexport type FormFieldMap = Record<string, FormField<any>>;\n\nexport const FORM_FIELD_MAP = new InjectionToken<FormFieldMap>('[@ng-atomic] Smart Form Field');\n\n@Pipe({\n name: 'smartField',\n pure: true,\n})\nexport class SmartFieldPipe implements PipeTransform {\n\n constructor(\n @Optional() @Inject(FORM_FIELD_MAP) private map: Record<string, FormField<any>>\n ) {\n this.map ??= {\n createdAt: { type: 'date' },\n updatedAt: { type: 'date' },\n deletedAt: { type: 'date' },\n };\n }\n\n transform(key: string): FormField<any> {\n return this.map[key] ?? {type: 'input'};\n }\n\n}\n"]}
1
+ {"version":3,"file":"smart-field.pipe.js","sourceRoot":"","sources":["../../../../../../libs/common/pipes/smart-field/smart-field.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;;AAgCtF,MAAM,CAAC,MAAM,cAAc,GAAG,IAAI,cAAc,CAAe,+BAA+B,CAAC,CAAC;AAMhG,MAAM,OAAO,cAAc;IAEzB,YAC8C,GAAmC;;QAAnC,QAAG,GAAH,GAAG,CAAgC;QAE/E,MAAA,IAAI,CAAC,GAAG,oCAAR,IAAI,CAAC,GAAG,GAAK;YACX,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YAC3B,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;YAC3B,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;SAC5B,EAAC;IACJ,CAAC;IAED,SAAS,CAAC,GAAW;;QACnB,OAAO,MAAA,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,mCAAI,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;IAC1C,CAAC;;4GAdU,cAAc,kBAGH,cAAc;0GAHzB,cAAc;4FAAd,cAAc;kBAJ1B,IAAI;mBAAC;oBACJ,IAAI,EAAE,YAAY;oBAClB,IAAI,EAAE,IAAI;iBACX;;0BAII,QAAQ;;0BAAI,MAAM;2BAAC,cAAc","sourcesContent":["import { Inject, InjectionToken, Optional, Pipe, PipeTransform } from '@angular/core';\n\ninterface Option<T> {\n name: string;\n value: T;\n}\n\ninterface InputField {\n type: 'input';\n}\n\ninterface DateInputField {\n type: 'date';\n}\n\ninterface SelectField<T> {\n type: 'select';\n options: Option<T>[];\n}\n\ninterface MultiSelectField<T> {\n type: 'multi-select';\n options: Option<T>[];\n}\n\ntype FormField<V> = InputField\n | DateInputField\n | SelectField<V>\n | MultiSelectField<V>;\n\nexport type FormFieldMap = Record<string, FormField<any>>;\n\nexport const FORM_FIELD_MAP = new InjectionToken<FormFieldMap>('[@ng-atomic] Smart Form Field');\n\n@Pipe({\n name: 'smartField',\n pure: true,\n})\nexport class SmartFieldPipe implements PipeTransform {\n\n constructor(\n @Optional() @Inject(FORM_FIELD_MAP) private map: Record<string, FormField<any>>\n ) {\n this.map ??= {\n createdAt: { type: 'date' },\n updatedAt: { type: 'date' },\n deletedAt: { type: 'date' },\n };\n }\n\n transform(key: string): FormField<any> {\n return this.map[key] ?? {type: 'input'};\n }\n\n}\n"]}
@@ -4,24 +4,23 @@ import { SmartSortByPipe } from './smart-sort-by.pipe';
4
4
  import * as i0 from "@angular/core";
5
5
  export class SmartSortByModule {
6
6
  }
7
- SmartSortByModule.ɵfac = function SmartSortByModule_Factory(t) { return new (t || SmartSortByModule)(); };
8
- SmartSortByModule.ɵmod = i0.ɵɵdefineNgModule({ type: SmartSortByModule });
9
- SmartSortByModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[
7
+ SmartSortByModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SmartSortByModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
8
+ SmartSortByModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SmartSortByModule, declarations: [SmartSortByPipe], imports: [CommonModule], exports: [SmartSortByPipe] });
9
+ SmartSortByModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SmartSortByModule, imports: [[
10
10
  CommonModule
11
11
  ]] });
12
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(SmartSortByModule, { declarations: [SmartSortByPipe], imports: [CommonModule], exports: [SmartSortByPipe] }); })();
13
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartSortByModule, [{
14
- type: NgModule,
15
- args: [{
16
- declarations: [
17
- SmartSortByPipe
18
- ],
19
- imports: [
20
- CommonModule
21
- ],
22
- exports: [
23
- SmartSortByPipe
24
- ]
25
- }]
26
- }], null, null); })();
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SmartSortByModule, decorators: [{
13
+ type: NgModule,
14
+ args: [{
15
+ declarations: [
16
+ SmartSortByPipe
17
+ ],
18
+ imports: [
19
+ CommonModule
20
+ ],
21
+ exports: [
22
+ SmartSortByPipe
23
+ ]
24
+ }]
25
+ }] });
27
26
  //# sourceMappingURL=smart-sort-by.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"smart-sort-by.module.js","sourceRoot":"","sources":["../../../../../../libs/common/pipes/smart-sort-by/smart-sort-by.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;;AAevD,MAAM,OAAO,iBAAiB;;kFAAjB,iBAAiB;qDAAjB,iBAAiB;yDAPnB;YACP,YAAY;SACb;wFAKU,iBAAiB,mBAT1B,eAAe,aAGf,YAAY,aAGZ,eAAe;uFAGN,iBAAiB;cAX7B,QAAQ;eAAC;gBACR,YAAY,EAAE;oBACZ,eAAe;iBAChB;gBACD,OAAO,EAAE;oBACP,YAAY;iBACb;gBACD,OAAO,EAAE;oBACP,eAAe;iBAChB;aACF","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SmartSortByPipe } from './smart-sort-by.pipe';\n\n\n\n@NgModule({\n declarations: [\n SmartSortByPipe\n ],\n imports: [\n CommonModule\n ],\n exports: [\n SmartSortByPipe\n ]\n})\nexport class SmartSortByModule { }\n"]}
1
+ {"version":3,"file":"smart-sort-by.module.js","sourceRoot":"","sources":["../../../../../../libs/common/pipes/smart-sort-by/smart-sort-by.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;;AAevD,MAAM,OAAO,iBAAiB;;+GAAjB,iBAAiB;gHAAjB,iBAAiB,iBAT1B,eAAe,aAGf,YAAY,aAGZ,eAAe;gHAGN,iBAAiB,YAPnB;YACP,YAAY;SACb;4FAKU,iBAAiB;kBAX7B,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,eAAe;qBAChB;oBACD,OAAO,EAAE;wBACP,YAAY;qBACb;oBACD,OAAO,EAAE;wBACP,eAAe;qBAChB;iBACF","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SmartSortByPipe } from './smart-sort-by.pipe';\n\n\n\n@NgModule({\n declarations: [\n SmartSortByPipe\n ],\n imports: [\n CommonModule\n ],\n exports: [\n SmartSortByPipe\n ]\n})\nexport class SmartSortByModule { }\n"]}
@@ -15,18 +15,18 @@ export class SmartSortByPipe {
15
15
  return this.transformer(items, key, order);
16
16
  }
17
17
  }
18
- SmartSortByPipe.ɵfac = function SmartSortByPipe_Factory(t) { return new (t || SmartSortByPipe)(i0.ɵɵdirectiveInject(SMART_SORT_BY_TRANSFORMER, 8)); };
19
- SmartSortByPipe.ɵpipe = i0.ɵɵngDeclarePipe({ version: "11.2.14", ngImport: i0, type: SmartSortByPipe, name: "smartSortBy" });
20
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SmartSortByPipe, [{
21
- type: Pipe,
22
- args: [{
23
- name: 'smartSortBy',
24
- pure: true,
25
- }]
26
- }], function () { return [{ type: undefined, decorators: [{
27
- type: Optional
28
- }, {
29
- type: Inject,
30
- args: [SMART_SORT_BY_TRANSFORMER]
31
- }] }]; }, null); })();
18
+ SmartSortByPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SmartSortByPipe, deps: [{ token: SMART_SORT_BY_TRANSFORMER, optional: true }], target: i0.ɵɵFactoryTarget.Pipe });
19
+ SmartSortByPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SmartSortByPipe, name: "smartSortBy" });
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: SmartSortByPipe, decorators: [{
21
+ type: Pipe,
22
+ args: [{
23
+ name: 'smartSortBy',
24
+ pure: true,
25
+ }]
26
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
27
+ type: Optional
28
+ }, {
29
+ type: Inject,
30
+ args: [SMART_SORT_BY_TRANSFORMER]
31
+ }] }]; } });
32
32
  //# sourceMappingURL=smart-sort-by.pipe.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"smart-sort-by.pipe.js","sourceRoot":"","sources":["../../../../../../libs/common/pipes/smart-sort-by/smart-sort-by.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AACtF,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;AAEhC,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,cAAc,CAAC,+CAA+C,CAAC,CAAC;AAE7G,MAAM,CAAC,MAAM,sBAAsB,GAA2B,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE;IAClF,OAAO,KAAK,KAAK,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC;AAC7E,CAAC,CAAA;AAMD,MAAM,OAAO,eAAe;IAE1B,YAGU,WAAoC;;QAApC,gBAAW,GAAX,WAAW,CAAyB;QAE5C,MAAA,IAAI,CAAC,WAAW,oCAAhB,IAAI,CAAC,WAAW,GAAK,sBAAsB,EAAC;IAC9C,CAAC;IAED,SAAS,CAAI,KAAU,EAAE,GAAW,EAAE,QAAwB,KAAK;QACjE,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IAC7C,CAAC;;8EAZU,eAAe,uBAIhB,yBAAyB;qFAJxB,eAAe;uFAAf,eAAe;cAJ3B,IAAI;eAAC;gBACJ,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,IAAI;aACX;;sBAII,QAAQ;;sBACR,MAAM;uBAAC,yBAAyB","sourcesContent":["import { Inject, InjectionToken, Optional, Pipe, PipeTransform } from '@angular/core';\nimport { sortBy } from 'lodash';\n\nexport const SMART_SORT_BY_TRANSFORMER = new InjectionToken('[@ng-atomic/common] Smart Sort By Transformer');\nexport type SmartSortByTransformer = <T>(items: T[], key: string, order: 'asc' | 'desc') => T[];\nexport const smartSortByTransformer: SmartSortByTransformer = (items, key, order) => {\n return order === 'asc' ? sortBy(items, key) : sortBy(items, key).reverse();\n}\n\n@Pipe({\n name: 'smartSortBy',\n pure: true,\n})\nexport class SmartSortByPipe implements PipeTransform {\n\n constructor(\n @Optional()\n @Inject(SMART_SORT_BY_TRANSFORMER)\n private transformer?: SmartSortByTransformer,\n ) {\n this.transformer ??= smartSortByTransformer;\n }\n\n transform<T>(items: T[], key: string, order: 'asc' | 'desc' = 'asc'): T[] {\n return this.transformer(items, key, order);\n }\n\n}\n"]}
1
+ {"version":3,"file":"smart-sort-by.pipe.js","sourceRoot":"","sources":["../../../../../../libs/common/pipes/smart-sort-by/smart-sort-by.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,QAAQ,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AACtF,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;;AAEhC,MAAM,CAAC,MAAM,yBAAyB,GAAG,IAAI,cAAc,CAAC,+CAA+C,CAAC,CAAC;AAE7G,MAAM,CAAC,MAAM,sBAAsB,GAA2B,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,EAAE,EAAE;IAClF,OAAO,KAAK,KAAK,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC;AAC7E,CAAC,CAAA;AAMD,MAAM,OAAO,eAAe;IAE1B,YAGU,WAAoC;;QAApC,gBAAW,GAAX,WAAW,CAAyB;QAE5C,MAAA,IAAI,CAAC,WAAW,oCAAhB,IAAI,CAAC,WAAW,GAAK,sBAAsB,EAAC;IAC9C,CAAC;IAED,SAAS,CAAI,KAAU,EAAE,GAAW,EAAE,QAAwB,KAAK;QACjE,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IAC7C,CAAC;;6GAZU,eAAe,kBAIhB,yBAAyB;2GAJxB,eAAe;4FAAf,eAAe;kBAJ3B,IAAI;mBAAC;oBACJ,IAAI,EAAE,aAAa;oBACnB,IAAI,EAAE,IAAI;iBACX;;0BAII,QAAQ;;0BACR,MAAM;2BAAC,yBAAyB","sourcesContent":["import { Inject, InjectionToken, Optional, Pipe, PipeTransform } from '@angular/core';\nimport { sortBy } from 'lodash';\n\nexport const SMART_SORT_BY_TRANSFORMER = new InjectionToken('[@ng-atomic/common] Smart Sort By Transformer');\nexport type SmartSortByTransformer = <T>(items: T[], key: string, order: 'asc' | 'desc') => T[];\nexport const smartSortByTransformer: SmartSortByTransformer = (items, key, order) => {\n return order === 'asc' ? sortBy(items, key) : sortBy(items, key).reverse();\n}\n\n@Pipe({\n name: 'smartSortBy',\n pure: true,\n})\nexport class SmartSortByPipe implements PipeTransform {\n\n constructor(\n @Optional()\n @Inject(SMART_SORT_BY_TRANSFORMER)\n private transformer?: SmartSortByTransformer,\n ) {\n this.transformer ??= smartSortByTransformer;\n }\n\n transform<T>(items: T[], key: string, order: 'asc' | 'desc' = 'asc'): T[] {\n return this.transformer(items, key, order);\n }\n\n}\n"]}
@@ -4,24 +4,23 @@ import { YenPipe } from './yen.pipe';
4
4
  import * as i0 from "@angular/core";
5
5
  export class YenModule {
6
6
  }
7
- YenModule.ɵfac = function YenModule_Factory(t) { return new (t || YenModule)(); };
8
- YenModule.ɵmod = i0.ɵɵdefineNgModule({ type: YenModule });
9
- YenModule.ɵinj = i0.ɵɵdefineInjector({ imports: [[
7
+ YenModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: YenModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
8
+ YenModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: YenModule, declarations: [YenPipe], imports: [CommonModule], exports: [YenPipe] });
9
+ YenModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: YenModule, imports: [[
10
10
  CommonModule
11
11
  ]] });
12
- (function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(YenModule, { declarations: [YenPipe], imports: [CommonModule], exports: [YenPipe] }); })();
13
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(YenModule, [{
14
- type: NgModule,
15
- args: [{
16
- declarations: [
17
- YenPipe
18
- ],
19
- imports: [
20
- CommonModule
21
- ],
22
- exports: [
23
- YenPipe
24
- ]
25
- }]
26
- }], null, null); })();
12
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: YenModule, decorators: [{
13
+ type: NgModule,
14
+ args: [{
15
+ declarations: [
16
+ YenPipe
17
+ ],
18
+ imports: [
19
+ CommonModule
20
+ ],
21
+ exports: [
22
+ YenPipe
23
+ ]
24
+ }]
25
+ }] });
27
26
  //# sourceMappingURL=yen.module.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"yen.module.js","sourceRoot":"","sources":["../../../../../../libs/common/pipes/yen/yen.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;;AAerC,MAAM,OAAO,SAAS;;kEAAT,SAAS;6CAAT,SAAS;iDAPX;YACP,YAAY;SACb;wFAKU,SAAS,mBATlB,OAAO,aAGP,YAAY,aAGZ,OAAO;uFAGE,SAAS;cAXrB,QAAQ;eAAC;gBACR,YAAY,EAAE;oBACZ,OAAO;iBACR;gBACD,OAAO,EAAE;oBACP,YAAY;iBACb;gBACD,OAAO,EAAE;oBACP,OAAO;iBACR;aACF","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { YenPipe } from './yen.pipe';\n\n\n\n@NgModule({\n declarations: [\n YenPipe\n ],\n imports: [\n CommonModule\n ],\n exports: [\n YenPipe\n ]\n})\nexport class YenModule { }\n"]}
1
+ {"version":3,"file":"yen.module.js","sourceRoot":"","sources":["../../../../../../libs/common/pipes/yen/yen.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;;AAerC,MAAM,OAAO,SAAS;;uGAAT,SAAS;wGAAT,SAAS,iBATlB,OAAO,aAGP,YAAY,aAGZ,OAAO;wGAGE,SAAS,YAPX;YACP,YAAY;SACb;4FAKU,SAAS;kBAXrB,QAAQ;mBAAC;oBACR,YAAY,EAAE;wBACZ,OAAO;qBACR;oBACD,OAAO,EAAE;wBACP,YAAY;qBACb;oBACD,OAAO,EAAE;wBACP,OAAO;qBACR;iBACF","sourcesContent":["import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { YenPipe } from './yen.pipe';\n\n\n\n@NgModule({\n declarations: [\n YenPipe\n ],\n imports: [\n CommonModule\n ],\n exports: [\n YenPipe\n ]\n})\nexport class YenModule { }\n"]}
@@ -6,12 +6,12 @@ export class YenPipe {
6
6
  return yenTransform(value, _unit);
7
7
  }
8
8
  }
9
- YenPipe.ɵfac = function YenPipe_Factory(t) { return new (t || YenPipe)(); };
10
- YenPipe.ɵpipe = i0.ɵɵngDeclarePipe({ version: "11.2.14", ngImport: i0, type: YenPipe, name: "yen" });
11
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(YenPipe, [{
12
- type: Pipe,
13
- args: [{
14
- name: 'yen'
15
- }]
16
- }], null, null); })();
9
+ YenPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: YenPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
10
+ YenPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: YenPipe, name: "yen" });
11
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: YenPipe, decorators: [{
12
+ type: Pipe,
13
+ args: [{
14
+ name: 'yen'
15
+ }]
16
+ }] });
17
17
  //# sourceMappingURL=yen.pipe.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"yen.pipe.js","sourceRoot":"","sources":["../../../../../../libs/common/pipes/yen/yen.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;;AAKvD,MAAM,OAAO,OAAO;IAElB,SAAS,CAAC,KAAa,EAAE,KAAc;QACrC,OAAO,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC;;8DAJU,OAAO;6EAAP,OAAO;uFAAP,OAAO;cAHnB,IAAI;eAAC;gBACJ,IAAI,EAAE,KAAK;aACZ","sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\nimport { yenTransform } from '@ng-atomic/common/utils';\n\n@Pipe({\n name: 'yen'\n})\nexport class YenPipe implements PipeTransform {\n\n transform(value: number, _unit?: string): string {\n return yenTransform(value, _unit);\n }\n\n}\n"]}
1
+ {"version":3,"file":"yen.pipe.js","sourceRoot":"","sources":["../../../../../../libs/common/pipes/yen/yen.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAiB,MAAM,eAAe,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;;AAKvD,MAAM,OAAO,OAAO;IAElB,SAAS,CAAC,KAAa,EAAE,KAAc;QACrC,OAAO,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;IACpC,CAAC;;qGAJU,OAAO;mGAAP,OAAO;4FAAP,OAAO;kBAHnB,IAAI;mBAAC;oBACJ,IAAI,EAAE,KAAK;iBACZ","sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\nimport { yenTransform } from '@ng-atomic/common/utils';\n\n@Pipe({\n name: 'yen'\n})\nexport class YenPipe implements PipeTransform {\n\n transform(value: number, _unit?: string): string {\n return yenTransform(value, _unit);\n }\n\n}\n"]}
@@ -1,19 +1,21 @@
1
1
  import { toObject, isIsoString } from '@ng-atomic/common/utils';
2
- import * as dayjs from 'dayjs';
2
+ import dayjs from 'dayjs';
3
3
  import { unflatten, flatten } from 'flat';
4
4
  import { omit, pick } from 'lodash';
5
5
  const isNumeric = (v) => !isNaN(Number(v));
6
- const parseQuery = (v, k) => k.match(/id$/i)
6
+ const parseQueryString = (v, key) => key.match(/id$/i)
7
7
  ? v
8
8
  : typeof v === 'string' && isIsoString(v)
9
9
  ? dayjs(v)
10
- : isNumeric(v)
11
- ? Number(v)
12
- : v;
10
+ : v === ''
11
+ ? v
12
+ : isNumeric(v)
13
+ ? Number(v)
14
+ : v;
13
15
  export class BaseFormService {
14
16
  static fromQueryParams(obj) {
15
17
  var _a, _b;
16
- return Object.entries((_b = (_a = unflatten(obj)) === null || _a === void 0 ? void 0 : _a.form) !== null && _b !== void 0 ? _b : {}).reduce((m, [k, v]) => (Object.assign(Object.assign({}, m), { [k]: parseQuery(v, k) })), {});
18
+ return Object.entries((_b = (_a = unflatten(obj)) === null || _a === void 0 ? void 0 : _a.form) !== null && _b !== void 0 ? _b : {}).reduce((m, [k, v]) => (Object.assign(Object.assign({}, m), { [k]: parseQueryString(v, k) })), {});
17
19
  }
18
20
  static toQueryParams(obj) {
19
21
  return flatten({ form: Object.entries(obj).reduce((m, [k, v]) => (Object.assign(Object.assign({}, m), { [k]: dayjs.isDayjs(v) ? v.isValid() ? v.toISOString() : null : v })), {}) });
@@ -1 +1 @@
1
- {"version":3,"file":"form.service.js","sourceRoot":"","sources":["../../../../../../libs/common/services/form/form.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AA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,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IACtE,EAAE,EAAE,CAAC,EAAC,CAAC,CAAC;IACZ,CAAC;IAED,MAAM,CAAC,SAAS,CAAC,MAAc;QAC7B,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;IACrF,CAAC;IAED,MAAM,CAAC,OAAO,CAAC,MAAc;QAC3B,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACpC,uCAAW,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC,GAAK,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,EAAE;IACrF,CAAC;IAED,MAAM,CAAC,SAAS,CAAC,KAAa;QAC5B,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACnC,uCAAW,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,GAAK,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE;IACjE,CAAC;CACF","sourcesContent":["import { toObject, isIsoString } from '@ng-atomic/common/utils';\nimport * as dayjs from 'dayjs';\nimport { unflatten, flatten } from 'flat';\nimport { omit, pick } from 'lodash';\n\nconst isNumeric = (v: string): boolean => !isNaN(Number(v)) \n\nconst parseQuery = (v: string, k: string): any => k.match(/id$/i) \n ? v\n : typeof v === 'string' && isIsoString(v) \n ? dayjs(v) \n : isNumeric(v)\n ? Number(v)\n : v;\n\nexport class BaseFormService {\n static fromQueryParams<T>(obj: T): object {\n return Object.entries((unflatten(obj) as any)?.form ?? {}).reduce((m, [k, v]: [string, string]) => ({\n ...m, [k]: parseQuery(v, k),\n }), {});\n }\n\n static toQueryParams<T>(obj: object): T { \n return flatten({form: Object.entries(obj).reduce((m, [k, v]) => ({\n ...m, [k]: dayjs.isDayjs(v) ? v.isValid() ? v.toISOString() : null : v,\n }), {})});\n }\n\n static dayjsKeys(object: object): string[] {\n return Object.entries(object).filter(([_, v]) => dayjs.isDayjs(v)).map(([k]) => k);\n }\n\n static toValue(object: object): object {\n const keys = this.dayjsKeys(object);\n return {...flatten(omit(toObject(object), keys)), ...pick(toObject(object), keys)};\n }\n\n static fromValue(value: object): object {\n const keys = this.dayjsKeys(value);\n return {...unflatten(omit(value, keys)), ...pick(value, keys)};\n }\n}"]}
1
+ {"version":3,"file":"form.service.js","sourceRoot":"","sources":["../../../../../../libs/common/services/form/form.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAChE,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAEpC,MAAM,SAAS,GAAG,CAAC,CAAS,EAAW,EAAE,CAAC,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAA;AAE3D,MAAM,gBAAgB,GAAG,CAAC,CAAS,EAAE,GAAW,EAAO,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC;IACzE,CAAC,CAAC,CAAC;IACH,CAAC,CAAC,OAAO,CAAC,KAAK,QAAQ,IAAI,WAAW,CAAC,CAAC,CAAC;QACzC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC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AAC,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;IACrF,CAAC;IAED,MAAM,CAAC,OAAO,CAAC,MAAc;QAC3B,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACpC,uCAAW,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC,GAAK,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,EAAE;IACrF,CAAC;IAED,MAAM,CAAC,SAAS,CAAC,KAAa;QAC5B,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACnC,uCAAW,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,GAAK,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,EAAE;IACjE,CAAC;CACF","sourcesContent":["import { toObject, isIsoString } from '@ng-atomic/common/utils';\nimport dayjs from 'dayjs';\nimport { unflatten, flatten } from 'flat';\nimport { omit, pick } from 'lodash';\n\nconst isNumeric = (v: string): boolean => !isNaN(Number(v)) \n\nconst parseQueryString = (v: string, key: string): any => key.match(/id$/i) \n ? v\n : typeof v === 'string' && isIsoString(v) \n ? dayjs(v) \n : v === ''\n ? v\n : isNumeric(v)\n ? Number(v)\n : v;\n\nexport class BaseFormService {\n static fromQueryParams<T>(obj: T): object {\n return Object.entries((unflatten(obj) as any)?.form ?? {}).reduce((m, [k, v]: [string, string]) => ({\n ...m, [k]: parseQueryString(v, k),\n }), {});\n }\n\n static toQueryParams<T>(obj: object): T { \n return flatten({form: Object.entries(obj).reduce((m, [k, v]) => ({\n ...m, [k]: dayjs.isDayjs(v) ? v.isValid() ? v.toISOString() : null : v,\n }), {})});\n }\n\n static dayjsKeys(object: object): string[] {\n return Object.entries(object).filter(([_, v]) => dayjs.isDayjs(v)).map(([k]) => k);\n }\n\n static toValue(object: object): object {\n const keys = this.dayjsKeys(object);\n return {...flatten(omit(toObject(object), keys)), ...pick(toObject(object), keys)};\n }\n\n static fromValue(value: object): object {\n const keys = this.dayjsKeys(value);\n return {...unflatten(omit(value, keys)), ...pick(value, keys)};\n }\n}"]}
@@ -21,12 +21,12 @@ export class LoadingService {
21
21
  this.loadingEntries$.next([key, false]);
22
22
  }
23
23
  }
24
- LoadingService.ɵfac = function LoadingService_Factory(t) { return new (t || LoadingService)(); };
25
- LoadingService.ɵprov = i0.ɵɵdefineInjectable({ token: LoadingService, factory: LoadingService.ɵfac, providedIn: 'root' });
26
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LoadingService, [{
27
- type: Injectable,
28
- args: [{
29
- providedIn: 'root',
30
- }]
31
- }], function () { return []; }, null); })();
24
+ LoadingService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LoadingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
25
+ LoadingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LoadingService, providedIn: 'root' });
26
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: LoadingService, decorators: [{
27
+ type: Injectable,
28
+ args: [{
29
+ providedIn: 'root',
30
+ }]
31
+ }], ctorParameters: function () { return []; } });
32
32
  //# sourceMappingURL=loading.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"loading.service.js","sourceRoot":"","sources":["../../../../../../libs/common/services/loading/loading.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,oBAAoB,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;;AAOxE,MAAM,OAAO,cAAc;IAiBzB;QAhBQ,oBA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AAC;IAED,SAAS,CAAC,GAAW;QACnB,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;IAC1C,CAAC;;4EA7BU,cAAc;sDAAd,cAAc,WAAd,cAAc,mBAFb,MAAM;uFAEP,cAAc;cAH1B,UAAU;eAAC;gBACV,UAAU,EAAE,MAAM;aACnB","sourcesContent":["import { Injectable } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { scan, map, distinctUntilChanged, delay } from 'rxjs/operators';\n\ntype LoadingMap = Record<string, boolean>;\n\n@Injectable({\n providedIn: 'root',\n})\nexport class LoadingService {\n private loadingEntries$ = new Subject<[string, boolean]>();\n\n loadingMap: LoadingMap = {};\n loadingMap$ = this.loadingEntries$.pipe(\n scan((pre, [key, value]) => ({ ...pre, [key]: value }), {} as LoadingMap),\n map((m: LoadingMap) => Object.entries(m)\n .filter(([k, v]: [string, boolean]) => v)\n .reduce((p, [k, v]) => ({ ...p, [k]: v }), {} as LoadingMap)),\n distinctUntilChanged((pre, cur) => JSON.stringify(pre) === JSON.stringify(cur)),\n );\n\n isLoading$ = this.loadingMap$.pipe(\n map((m) => !!Object.keys(m).length),\n delay(0),\n );\n\n constructor() {\n this.loadingMap$.subscribe((m) => {\n this.loadingMap = m;\n });\n }\n\n setKey(key: string): void {\n this.loadingEntries$.next([key, true]);\n }\n\n removeKey(key: string): void {\n this.loadingEntries$.next([key, false]);\n }\n}\n"]}
1
+ {"version":3,"file":"loading.service.js","sourceRoot":"","sources":["../../../../../../libs/common/services/loading/loading.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC3C,OAAO,EAAE,OAAO,EAAE,MAAM,MAAM,CAAC;AAC/B,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,oBAAoB,EAAE,KAAK,EAAE,MAAM,gBAAgB,CAAC;;AAOxE,MAAM,OAAO,cAAc;IAiBzB;QAhBQ,oBAAe,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;IAED,SAAS,CAAC,GAAW;QACnB,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;IAC1C,CAAC;;4GA7BU,cAAc;gHAAd,cAAc,cAFb,MAAM;4FAEP,cAAc;kBAH1B,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB","sourcesContent":["import { Injectable } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { scan, map, distinctUntilChanged, delay } from 'rxjs/operators';\n\ntype LoadingMap = Record<string, boolean>;\n\n@Injectable({\n providedIn: 'root',\n})\nexport class LoadingService {\n private loadingEntries$ = new Subject<[string, boolean]>();\n\n loadingMap: LoadingMap = {};\n loadingMap$ = this.loadingEntries$.pipe(\n scan((pre, [key, value]) => ({ ...pre, [key]: value }), {} as LoadingMap),\n map((m: LoadingMap) => Object.entries(m)\n .filter(([k, v]: [string, boolean]) => v)\n .reduce((p, [k, v]) => ({ ...p, [k]: v }), {} as LoadingMap)),\n distinctUntilChanged((pre, cur) => JSON.stringify(pre) === JSON.stringify(cur)),\n );\n\n isLoading$ = this.loadingMap$.pipe(\n map((m) => !!Object.keys(m).length),\n delay(0),\n );\n\n constructor() {\n this.loadingMap$.subscribe((m) => {\n this.loadingMap = m;\n });\n }\n\n setKey(key: string): void {\n this.loadingEntries$.next([key, true]);\n }\n\n removeKey(key: string): void {\n this.loadingEntries$.next([key, false]);\n }\n}\n"]}
@@ -1,5 +1,4 @@
1
1
  import { Inject, Injectable, Optional } from "@angular/core";
2
- import { filterByQuery } from "@ng-atomic/common/utils";
3
2
  import { smartExpTransformer, SMART_EXP_TRANSFORMER } from '@ng-atomic/common/utils';
4
3
  import * as i0 from "@angular/core";
5
4
  export class QueryResolverService {
@@ -9,20 +8,24 @@ export class QueryResolverService {
9
8
  (_a = this.transformer) !== null && _a !== void 0 ? _a : (this.transformer = smartExpTransformer);
10
9
  }
11
10
  resolve(items, queryString, dlm = {}) {
12
- return filterByQuery(items, queryString, dlm, this.transformer);
11
+ // console.debug('queryString:', queryString);
12
+ // const resolved = filterByQuery(items, queryString, dlm, this.transformer);
13
+ // console.debug('resolved:', resolved);
14
+ // return resolved;
15
+ return items;
13
16
  }
14
17
  }
15
- QueryResolverService.ɵfac = function QueryResolverService_Factory(t) { return new (t || QueryResolverService)(i0.ɵɵinject(SMART_EXP_TRANSFORMER, 8)); };
16
- QueryResolverService.ɵprov = i0.ɵɵdefineInjectable({ token: QueryResolverService, factory: QueryResolverService.ɵfac, providedIn: 'root' });
17
- (function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(QueryResolverService, [{
18
- type: Injectable,
19
- args: [{
20
- providedIn: 'root'
21
- }]
22
- }], function () { return [{ type: undefined, decorators: [{
23
- type: Optional
24
- }, {
25
- type: Inject,
26
- args: [SMART_EXP_TRANSFORMER]
27
- }] }]; }, null); })();
18
+ QueryResolverService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: QueryResolverService, deps: [{ token: SMART_EXP_TRANSFORMER, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
19
+ QueryResolverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: QueryResolverService, providedIn: 'root' });
20
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0, type: QueryResolverService, decorators: [{
21
+ type: Injectable,
22
+ args: [{
23
+ providedIn: 'root'
24
+ }]
25
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
26
+ type: Optional
27
+ }, {
28
+ type: Inject,
29
+ args: [SMART_EXP_TRANSFORMER]
30
+ }] }]; } });
28
31
  //# sourceMappingURL=query-resolver.service.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"query-resolver.service.js","sourceRoot":"","sources":["../../../../../../libs/common/services/query-resolver/query-resolver.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAC;AACxD,OAAO,EAAuB,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;;AAM1G,MAAM,OAAO,oBAAoB;IAC/B,YACqD,WAAiC;;QAAjC,gBAAW,GAAX,WAAW,CAAsB;QAEpF,MAAA,IAAI,CAAC,WAAW,oCAAhB,IAAI,CAAC,WAAW,GAAK,mBAAmB,EAAC;IAC3C,CAAC;IAED,OAAO,CAAI,KAAU,EAAE,WAAmB,EAAE,MAA8B,EAAE;QAC1E,OAAO,aAAa,CAAC,KAAK,EAAE,WAAW,EAAE,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAClE,CAAC;;wFATU,oBAAoB,cAET,qBAAqB;4DAFhC,oBAAoB,WAApB,oBAAoB,mBAFnB,MAAM;uFAEP,oBAAoB;cAHhC,UAAU;eAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;sBAGI,QAAQ;;sBAAI,MAAM;uBAAC,qBAAqB","sourcesContent":["import { Inject, Injectable, Optional } from \"@angular/core\";\nimport { filterByQuery } from \"@ng-atomic/common/utils\";\nimport { SmartExpTransformer, smartExpTransformer, SMART_EXP_TRANSFORMER } from '@ng-atomic/common/utils';\n\n\n@Injectable({\n providedIn: 'root'\n})\nexport class QueryResolverService {\n constructor(\n @Optional() @Inject(SMART_EXP_TRANSFORMER) private transformer?: SmartExpTransformer,\n ) {\n this.transformer ??= smartExpTransformer;\n }\n\n resolve<T>(items: T[], queryString: string, dlm: Record<string, string> = {}): T[] {\n return filterByQuery(items, queryString, dlm, this.transformer);\n }\n}"]}
1
+ {"version":3,"file":"query-resolver.service.js","sourceRoot":"","sources":["../../../../../../libs/common/services/query-resolver/query-resolver.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE7D,OAAO,EAAuB,mBAAmB,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;;AAM1G,MAAM,OAAO,oBAAoB;IAC/B,YACqD,WAAiC;;QAAjC,gBAAW,GAAX,WAAW,CAAsB;QAEpF,MAAA,IAAI,CAAC,WAAW,oCAAhB,IAAI,CAAC,WAAW,GAAK,mBAAmB,EAAC;IAC3C,CAAC;IAED,OAAO,CAAI,KAAU,EAAE,WAAmB,EAAE,MAA8B,EAAE;QAC1E,8CAA8C;QAC9C,6EAA6E;QAC7E,wCAAwC;QACxC,mBAAmB;QACnB,OAAO,KAAK,CAAC;IACf,CAAC;;kHAbU,oBAAoB,kBAET,qBAAqB;sHAFhC,oBAAoB,cAFnB,MAAM;4FAEP,oBAAoB;kBAHhC,UAAU;mBAAC;oBACV,UAAU,EAAE,MAAM;iBACnB;;0BAGI,QAAQ;;0BAAI,MAAM;2BAAC,qBAAqB","sourcesContent":["import { Inject, Injectable, Optional } from \"@angular/core\";\nimport { filterByQuery } from \"@ng-atomic/common/utils\";\nimport { SmartExpTransformer, smartExpTransformer, SMART_EXP_TRANSFORMER } from '@ng-atomic/common/utils';\n\n\n@Injectable({\n providedIn: 'root'\n})\nexport class QueryResolverService {\n constructor(\n @Optional() @Inject(SMART_EXP_TRANSFORMER) private transformer?: SmartExpTransformer,\n ) {\n this.transformer ??= smartExpTransformer;\n }\n\n resolve<T>(items: T[], queryString: string, dlm: Record<string, string> = {}): T[] {\n // console.debug('queryString:', queryString);\n // const resolved = filterByQuery(items, queryString, dlm, this.transformer);\n // console.debug('resolved:', resolved);\n // return resolved;\n return items;\n }\n}"]}