@ng-atomic/common 18.10.0 → 18.12.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 (193) hide show
  1. package/directives/molecules/column/column.molecule.d.ts +66 -0
  2. package/directives/molecules/column/index.d.ts +1 -0
  3. package/directives/resize-column/index.d.ts +1 -0
  4. package/directives/resize-column/resize-column.directive.d.ts +21 -0
  5. package/directives/resize-column/resize-handle.component.d.ts +5 -0
  6. package/esm2022/directives/molecules/column/column.molecule.mjs +112 -0
  7. package/esm2022/directives/molecules/column/index.mjs +2 -0
  8. package/esm2022/directives/molecules/column/ng-atomic-common-directives-molecules-column.mjs +5 -0
  9. package/esm2022/directives/resize-column/index.mjs +2 -0
  10. package/esm2022/directives/resize-column/ng-atomic-common-directives-resize-column.mjs +5 -0
  11. package/esm2022/directives/resize-column/resize-column.directive.mjs +62 -0
  12. package/esm2022/directives/resize-column/resize-handle.component.mjs +13 -0
  13. package/esm2022/models/index.mjs +1 -1
  14. package/esm2022/pipes/actions/actions.pipe.mjs +1 -1
  15. package/esm2022/pipes/columns/columns.pipe.mjs +3 -2
  16. package/esm2022/pipes/data-accessor/data-accessor.pipe.mjs +16 -3
  17. package/esm2022/pipes/domain/domain.pipe.mjs +22 -26
  18. package/esm2022/pipes/error/error.pipe.mjs +1 -2
  19. package/esm2022/pipes/expression/expression.pipe.mjs +18 -0
  20. package/esm2022/pipes/expression/index.mjs +2 -0
  21. package/esm2022/pipes/expression/ng-atomic-common-pipes-expression.mjs +5 -0
  22. package/esm2022/pipes/smart-field/smart-field.pipe.mjs +15 -4
  23. package/esm2022/pipes/style/index.mjs +2 -0
  24. package/esm2022/pipes/style/ng-atomic-common-pipes-style.mjs +5 -0
  25. package/esm2022/pipes/style/style.pipe.mjs +41 -0
  26. package/esm2022/services/form/columns/columns.service.mjs +28 -21
  27. package/esm2022/services/form/json-schema/json-schema.service.mjs +77 -58
  28. package/esm2022/services/form/pagination/pagination.service.mjs +4 -4
  29. package/esm2022/services/language/index.mjs +2 -0
  30. package/esm2022/services/language/language.service.mjs +39 -0
  31. package/esm2022/services/language/ng-atomic-common-services-language.mjs +5 -0
  32. package/esm2022/services/loading/loading.service.mjs +2 -2
  33. package/esm2022/services/query-resolver/query-resolver.service.mjs +4 -5
  34. package/esm2022/services/snack-bar/snack-bar.service.mjs +29 -11
  35. package/esm2022/services/spreadsheet/directives/grid-cell.directive.mjs +124 -0
  36. package/esm2022/services/spreadsheet/directives/index.mjs +2 -0
  37. package/esm2022/services/spreadsheet/features/clipboard.service.mjs +71 -0
  38. package/esm2022/services/spreadsheet/features/data.service.mjs +63 -0
  39. package/esm2022/services/spreadsheet/features/editor.service.mjs +65 -0
  40. package/esm2022/services/spreadsheet/features/grid.service.mjs +54 -0
  41. package/esm2022/services/spreadsheet/features/index.mjs +8 -0
  42. package/esm2022/services/spreadsheet/features/navigation.service.mjs +71 -0
  43. package/esm2022/services/spreadsheet/features/protection.service.mjs +25 -0
  44. package/esm2022/services/spreadsheet/features/selection.service.mjs +129 -0
  45. package/esm2022/services/spreadsheet/index.mjs +5 -0
  46. package/esm2022/services/spreadsheet/models/cell.model.mjs +2 -0
  47. package/esm2022/services/spreadsheet/models/index.mjs +2 -0
  48. package/esm2022/services/spreadsheet/ng-atomic-common-services-spreadsheet.mjs +5 -0
  49. package/esm2022/services/spreadsheet/spreadsheet.service.mjs +183 -0
  50. package/esm2022/services/ui/ui.helpers.mjs +15 -8
  51. package/esm2022/stores/query/query.store.mjs +2 -2
  52. package/esm2022/utils/expression/expression.transformer.mjs +38 -0
  53. package/esm2022/utils/expression/index.mjs +2 -0
  54. package/esm2022/utils/get/get.mjs +2 -2
  55. package/esm2022/utils/index.mjs +2 -2
  56. package/esm2022/utils/inject/inject.mjs +1 -1
  57. package/fesm2022/ng-atomic-common-directives-fallback-src.mjs.map +1 -1
  58. package/fesm2022/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs.map +1 -1
  59. package/fesm2022/ng-atomic-common-directives-molecules-column.mjs +119 -0
  60. package/fesm2022/ng-atomic-common-directives-molecules-column.mjs.map +1 -0
  61. package/fesm2022/ng-atomic-common-directives-resize-column.mjs +79 -0
  62. package/fesm2022/ng-atomic-common-directives-resize-column.mjs.map +1 -0
  63. package/fesm2022/ng-atomic-common-interceptors-authorization.mjs.map +1 -1
  64. package/fesm2022/ng-atomic-common-interceptors-throttle.mjs.map +1 -1
  65. package/fesm2022/ng-atomic-common-interceptors-token.mjs.map +1 -1
  66. package/fesm2022/ng-atomic-common-interceptors.mjs.map +1 -1
  67. package/fesm2022/ng-atomic-common-pipes-actions.mjs.map +1 -1
  68. package/fesm2022/ng-atomic-common-pipes-auto-columns.mjs.map +1 -1
  69. package/fesm2022/ng-atomic-common-pipes-columns.mjs +2 -1
  70. package/fesm2022/ng-atomic-common-pipes-columns.mjs.map +1 -1
  71. package/fesm2022/ng-atomic-common-pipes-data-accessor.mjs +15 -2
  72. package/fesm2022/ng-atomic-common-pipes-data-accessor.mjs.map +1 -1
  73. package/fesm2022/ng-atomic-common-pipes-domain.mjs +22 -26
  74. package/fesm2022/ng-atomic-common-pipes-domain.mjs.map +1 -1
  75. package/fesm2022/ng-atomic-common-pipes-error.mjs +0 -1
  76. package/fesm2022/ng-atomic-common-pipes-error.mjs.map +1 -1
  77. package/fesm2022/ng-atomic-common-pipes-expression.mjs +25 -0
  78. package/fesm2022/ng-atomic-common-pipes-expression.mjs.map +1 -0
  79. package/fesm2022/ng-atomic-common-pipes-grouped-by.mjs.map +1 -1
  80. package/fesm2022/ng-atomic-common-pipes-index-length.mjs.map +1 -1
  81. package/fesm2022/ng-atomic-common-pipes-index.mjs.map +1 -1
  82. package/fesm2022/ng-atomic-common-pipes-keys.mjs.map +1 -1
  83. package/fesm2022/ng-atomic-common-pipes-map.mjs.map +1 -1
  84. package/fesm2022/ng-atomic-common-pipes-page.mjs.map +1 -1
  85. package/fesm2022/ng-atomic-common-pipes-pagination.mjs.map +1 -1
  86. package/fesm2022/ng-atomic-common-pipes-query.mjs.map +1 -1
  87. package/fesm2022/ng-atomic-common-pipes-resolve-columns.mjs.map +1 -1
  88. package/fesm2022/ng-atomic-common-pipes-secret.mjs.map +1 -1
  89. package/fesm2022/ng-atomic-common-pipes-select-id.mjs.map +1 -1
  90. package/fesm2022/ng-atomic-common-pipes-signal.mjs.map +1 -1
  91. package/fesm2022/ng-atomic-common-pipes-smart-field.mjs +15 -4
  92. package/fesm2022/ng-atomic-common-pipes-smart-field.mjs.map +1 -1
  93. package/fesm2022/ng-atomic-common-pipes-sort-by.mjs.map +1 -1
  94. package/fesm2022/ng-atomic-common-pipes-sort.mjs.map +1 -1
  95. package/fesm2022/ng-atomic-common-pipes-style.mjs +48 -0
  96. package/fesm2022/ng-atomic-common-pipes-style.mjs.map +1 -0
  97. package/fesm2022/ng-atomic-common-pipes-yen.mjs.map +1 -1
  98. package/fesm2022/ng-atomic-common-services-app.mjs.map +1 -1
  99. package/fesm2022/ng-atomic-common-services-auth.mjs.map +1 -1
  100. package/fesm2022/ng-atomic-common-services-breakpoint.mjs.map +1 -1
  101. package/fesm2022/ng-atomic-common-services-chips-manager.mjs.map +1 -1
  102. package/fesm2022/ng-atomic-common-services-csv.mjs.map +1 -1
  103. package/fesm2022/ng-atomic-common-services-fab.mjs.map +1 -1
  104. package/fesm2022/ng-atomic-common-services-form-_index.mjs.map +1 -1
  105. package/fesm2022/ng-atomic-common-services-form-columns.mjs +27 -20
  106. package/fesm2022/ng-atomic-common-services-form-columns.mjs.map +1 -1
  107. package/fesm2022/ng-atomic-common-services-form-json-schema.mjs +76 -57
  108. package/fesm2022/ng-atomic-common-services-form-json-schema.mjs.map +1 -1
  109. package/fesm2022/ng-atomic-common-services-form-pagination.mjs +3 -3
  110. package/fesm2022/ng-atomic-common-services-form-pagination.mjs.map +1 -1
  111. package/fesm2022/ng-atomic-common-services-form-sort.mjs.map +1 -1
  112. package/fesm2022/ng-atomic-common-services-form.mjs.map +1 -1
  113. package/fesm2022/ng-atomic-common-services-initializer.mjs.map +1 -1
  114. package/fesm2022/ng-atomic-common-services-language.mjs +46 -0
  115. package/fesm2022/ng-atomic-common-services-language.mjs.map +1 -0
  116. package/fesm2022/ng-atomic-common-services-loading.mjs +1 -1
  117. package/fesm2022/ng-atomic-common-services-loading.mjs.map +1 -1
  118. package/fesm2022/ng-atomic-common-services-navigation-history.mjs.map +1 -1
  119. package/fesm2022/ng-atomic-common-services-query-resolver.mjs +3 -3
  120. package/fesm2022/ng-atomic-common-services-query-resolver.mjs.map +1 -1
  121. package/fesm2022/ng-atomic-common-services-root-property.mjs.map +1 -1
  122. package/fesm2022/ng-atomic-common-services-router.mjs.map +1 -1
  123. package/fesm2022/ng-atomic-common-services-secret.mjs.map +1 -1
  124. package/fesm2022/ng-atomic-common-services-sheets-actions.mjs.map +1 -1
  125. package/fesm2022/ng-atomic-common-services-sheets.mjs.map +1 -1
  126. package/fesm2022/ng-atomic-common-services-side-app.mjs.map +1 -1
  127. package/fesm2022/ng-atomic-common-services-side-nav-mode.mjs.map +1 -1
  128. package/fesm2022/ng-atomic-common-services-snack-bar.mjs +29 -11
  129. package/fesm2022/ng-atomic-common-services-snack-bar.mjs.map +1 -1
  130. package/fesm2022/ng-atomic-common-services-spreadsheet.mjs +758 -0
  131. package/fesm2022/ng-atomic-common-services-spreadsheet.mjs.map +1 -0
  132. package/fesm2022/ng-atomic-common-services-ui.mjs +14 -7
  133. package/fesm2022/ng-atomic-common-services-ui.mjs.map +1 -1
  134. package/fesm2022/ng-atomic-common-stores-entities.mjs.map +1 -1
  135. package/fesm2022/ng-atomic-common-stores-entity.mjs.map +1 -1
  136. package/fesm2022/ng-atomic-common-stores-pagination.mjs.map +1 -1
  137. package/fesm2022/ng-atomic-common-stores-query.mjs +1 -1
  138. package/fesm2022/ng-atomic-common-stores-query.mjs.map +1 -1
  139. package/fesm2022/ng-atomic-common-stores-selection.mjs.map +1 -1
  140. package/fesm2022/ng-atomic-common-stores-sort.mjs.map +1 -1
  141. package/fesm2022/ng-atomic-common-utils.mjs +34 -15
  142. package/fesm2022/ng-atomic-common-utils.mjs.map +1 -1
  143. package/fesm2022/ng-atomic-common.mjs.map +1 -1
  144. package/models/index.d.ts +2 -1
  145. package/package.json +73 -44
  146. package/pipes/actions/actions.pipe.d.ts +2 -1
  147. package/pipes/columns/columns.pipe.d.ts +1 -0
  148. package/pipes/data-accessor/data-accessor.pipe.d.ts +4 -2
  149. package/pipes/domain/domain.pipe.d.ts +7 -6
  150. package/pipes/expression/expression.pipe.d.ts +9 -0
  151. package/pipes/expression/index.d.ts +1 -0
  152. package/pipes/smart-field/smart-field.pipe.d.ts +2 -2
  153. package/pipes/style/index.d.ts +1 -0
  154. package/pipes/style/style.pipe.d.ts +18 -0
  155. package/services/form/_index/index.service.d.ts +4 -4
  156. package/services/form/columns/columns.service.d.ts +5 -2
  157. package/services/form/json-schema/json-schema.service.d.ts +9 -1
  158. package/services/form/pagination/pagination.service.d.ts +5 -5
  159. package/services/language/index.d.ts +1 -0
  160. package/services/language/language.service.d.ts +12 -0
  161. package/services/query-resolver/query-resolver.service.d.ts +2 -2
  162. package/services/snack-bar/snack-bar.service.d.ts +5 -3
  163. package/services/spreadsheet/directives/grid-cell.directive.d.ts +41 -0
  164. package/services/spreadsheet/directives/index.d.ts +1 -0
  165. package/services/spreadsheet/features/clipboard.service.d.ts +15 -0
  166. package/services/spreadsheet/features/data.service.d.ts +16 -0
  167. package/services/spreadsheet/features/editor.service.d.ts +22 -0
  168. package/services/spreadsheet/features/grid.service.d.ts +17 -0
  169. package/services/spreadsheet/features/index.d.ts +7 -0
  170. package/services/spreadsheet/features/navigation.service.d.ts +17 -0
  171. package/services/spreadsheet/features/protection.service.d.ts +24 -0
  172. package/services/spreadsheet/features/selection.service.d.ts +40 -0
  173. package/services/spreadsheet/index.d.ts +4 -0
  174. package/services/spreadsheet/models/cell.model.d.ts +17 -0
  175. package/services/spreadsheet/models/index.d.ts +1 -0
  176. package/services/spreadsheet/spreadsheet.service.d.ts +29 -0
  177. package/utils/expression/expression.transformer.d.ts +12 -0
  178. package/utils/expression/index.d.ts +1 -0
  179. package/utils/index.d.ts +1 -1
  180. package/utils/inject/inject.d.ts +2 -2
  181. package/esm2022/pipes/smart-exp/index.mjs +0 -3
  182. package/esm2022/pipes/smart-exp/ng-atomic-common-pipes-smart-exp.mjs +0 -5
  183. package/esm2022/pipes/smart-exp/smart-exp.module.mjs +0 -16
  184. package/esm2022/pipes/smart-exp/smart-exp.pipe.mjs +0 -27
  185. package/esm2022/utils/smart-exp-transformer/index.mjs +0 -2
  186. package/esm2022/utils/smart-exp-transformer/smart-exp-transformer.mjs +0 -18
  187. package/fesm2022/ng-atomic-common-pipes-smart-exp.mjs +0 -47
  188. package/fesm2022/ng-atomic-common-pipes-smart-exp.mjs.map +0 -1
  189. package/pipes/smart-exp/index.d.ts +0 -2
  190. package/pipes/smart-exp/smart-exp.module.d.ts +0 -7
  191. package/pipes/smart-exp/smart-exp.pipe.d.ts +0 -11
  192. package/utils/smart-exp-transformer/index.d.ts +0 -1
  193. package/utils/smart-exp-transformer/smart-exp-transformer.d.ts +0 -6
@@ -1,27 +0,0 @@
1
- import { Inject, Optional, Pipe } from '@angular/core';
2
- import { SMART_EXP_TRANSFORMER, smartExpTransformer } from '@ng-atomic/common/utils';
3
- import * as i0 from "@angular/core";
4
- export class SmartExpPipe {
5
- constructor(transformer) {
6
- this.transformer = transformer;
7
- this.transformer ??= smartExpTransformer;
8
- }
9
- transform(input, key) {
10
- return this.transformer(input, key);
11
- }
12
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SmartExpPipe, deps: [{ token: SMART_EXP_TRANSFORMER, optional: true }], target: i0.ɵɵFactoryTarget.Pipe }); }
13
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.1.2", ngImport: i0, type: SmartExpPipe, name: "smartExp" }); }
14
- }
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SmartExpPipe, decorators: [{
16
- type: Pipe,
17
- args: [{
18
- name: 'smartExp',
19
- pure: true,
20
- }]
21
- }], ctorParameters: () => [{ type: undefined, decorators: [{
22
- type: Optional
23
- }, {
24
- type: Inject,
25
- args: [SMART_EXP_TRANSFORMER]
26
- }] }] });
27
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnQtZXhwLnBpcGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9AbmctYXRvbWljL2NvbW1vbi9zcmMvbGliL3BpcGVzL3NtYXJ0LWV4cC9zbWFydC1leHAucGlwZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsTUFBTSxFQUFFLFFBQVEsRUFBRSxJQUFJLEVBQWlCLE1BQU0sZUFBZSxDQUFDO0FBQ3RFLE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxtQkFBbUIsRUFBdUIsTUFBTSx5QkFBeUIsQ0FBQzs7QUFRMUcsTUFBTSxPQUFPLFlBQVk7SUFDdkIsWUFDcUQsV0FBZ0M7UUFBaEMsZ0JBQVcsR0FBWCxXQUFXLENBQXFCO1FBRW5GLElBQUksQ0FBQyxXQUFXLEtBQUssbUJBQW1CLENBQUM7SUFDM0MsQ0FBQztJQUVELFNBQVMsQ0FBQyxLQUEwQyxFQUFFLEdBQVk7UUFDaEUsT0FBTyxJQUFJLENBQUMsV0FBVyxDQUFDLEtBQUssRUFBRSxHQUFHLENBQUMsQ0FBQztJQUN0QyxDQUFDOzhHQVRVLFlBQVksa0JBRUQscUJBQXFCOzRHQUZoQyxZQUFZOzsyRkFBWixZQUFZO2tCQUp4QixJQUFJO21CQUFDO29CQUNKLElBQUksRUFBRSxVQUFVO29CQUNoQixJQUFJLEVBQUUsSUFBSTtpQkFDWD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dlcy9AbmctYXRvbWljL2NvbW1vbi9zcmMvbGliL3V0aWxzL3NtYXJ0LWV4cC10cmFuc2Zvcm1lci9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHlCQUF5QixDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSAnLi9zbWFydC1leHAtdHJhbnNmb3JtZXInOyJdfQ==
@@ -1,18 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import dayjs from 'dayjs';
3
- import { comma } from '../comma';
4
- export const SMART_EXP_TRANSFORMER = new InjectionToken('[@ng-atomic/common] Smart Transformer');
5
- // export const yenTransform = (value: number, _unit?: string): string => {
6
- // return value < 1 ? `${comma(value * 100)}%` : `${comma(value)}円`;
7
- // }
8
- export const yenTransform = (value, _unit = '') => {
9
- return `${comma(value)} ${_unit}`;
10
- };
11
- export const smartExpTransformer = input => dayjs.isDayjs(input)
12
- ? input.format('YY/MM/DD')
13
- : Array.isArray(input)
14
- ? `${input.length}個のアイテム`
15
- : typeof input === 'number'
16
- ? yenTransform(input)
17
- : input;
18
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic21hcnQtZXhwLXRyYW5zZm9ybWVyLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvQG5nLWF0b21pYy9jb21tb24vc3JjL2xpYi91dGlscy9zbWFydC1leHAtdHJhbnNmb3JtZXIvc21hcnQtZXhwLXRyYW5zZm9ybWVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxjQUFjLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDL0MsT0FBTyxLQUFLLE1BQU0sT0FBTyxDQUFDO0FBQzFCLE9BQU8sRUFBRSxLQUFLLEVBQUUsTUFBTSxVQUFVLENBQUM7QUFFakMsT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Zvcm1lcicpO1xuXG5leHBvcnQgdHlwZSBTbWFydEV4cFRyYW5zZm9ybWVyID0gKGlucHV0OiBzdHJpbmcgfCBudW1iZXIgfCBkYXlqcy5EYXlqcyB8IGFueSwga2V5Pzogc3RyaW5nKSA9PiBzdHJpbmc7XG5cbi8vIGV4cG9ydCBjb25zdCB5ZW5UcmFuc2Zvcm0gPSAodmFsdWU6IG51bWJlciwgX3VuaXQ/OiBzdHJpbmcpOiBzdHJpbmcgPT4ge1xuLy8gICByZXR1cm4gdmFsdWUgPCAxID8gYCR7Y29tbWEodmFsdWUgKiAxMDApfSVgIDogYCR7Y29tbWEodmFsdWUpfeWGhmA7XG4vLyB9XG5cbmV4cG9ydCBjb25zdCB5ZW5UcmFuc2Zvcm0gPSAodmFsdWU6IG51bWJlciwgX3VuaXQgPSAnJyk6IHN0cmluZyA9PiB7XG4gIHJldHVybiBgJHtjb21tYSh2YWx1ZSl9ICR7X3VuaXR9YDtcbn1cblxuZXhwb3J0IGNvbnN0IHNtYXJ0RXhwVHJhbnNmb3JtZXI6IFNtYXJ0RXhwVHJhbnNmb3JtZXIgPSBpbnB1dCA9PiBkYXlqcy5pc0RheWpzKGlucHV0KVxuICA/IGlucHV0LmZvcm1hdCgnWVkvTU0vREQnKVxuICA6IEFycmF5LmlzQXJyYXkoaW5wdXQpIFxuICA/IGAke2lucHV0Lmxlbmd0aH3lgIvjga7jgqLjgqTjg4bjg6BgXG4gIDogdHlwZW9mIGlucHV0ID09PSAnbnVtYmVyJ1xuICA/IHllblRyYW5zZm9ybShpbnB1dClcbiAgOiBpbnB1dDsiXX0=
@@ -1,47 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Pipe, Optional, Inject, NgModule } from '@angular/core';
3
- import { smartExpTransformer, SMART_EXP_TRANSFORMER } from '@ng-atomic/common/utils';
4
-
5
- class SmartExpPipe {
6
- constructor(transformer) {
7
- this.transformer = transformer;
8
- this.transformer ??= smartExpTransformer;
9
- }
10
- transform(input, key) {
11
- return this.transformer(input, key);
12
- }
13
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SmartExpPipe, deps: [{ token: SMART_EXP_TRANSFORMER, optional: true }], target: i0.ɵɵFactoryTarget.Pipe }); }
14
- static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "18.1.2", ngImport: i0, type: SmartExpPipe, name: "smartExp" }); }
15
- }
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SmartExpPipe, decorators: [{
17
- type: Pipe,
18
- args: [{
19
- name: 'smartExp',
20
- pure: true,
21
- }]
22
- }], ctorParameters: () => [{ type: undefined, decorators: [{
23
- type: Optional
24
- }, {
25
- type: Inject,
26
- args: [SMART_EXP_TRANSFORMER]
27
- }] }] });
28
-
29
- class SmartExpModule {
30
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SmartExpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
31
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.1.2", ngImport: i0, type: SmartExpModule, declarations: [SmartExpPipe], exports: [SmartExpPipe] }); }
32
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SmartExpModule }); }
33
- }
34
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.2", ngImport: i0, type: SmartExpModule, decorators: [{
35
- type: NgModule,
36
- args: [{
37
- declarations: [SmartExpPipe],
38
- exports: [SmartExpPipe]
39
- }]
40
- }] });
41
-
42
- /**
43
- * Generated bundle index. Do not edit.
44
- */
45
-
46
- export { SmartExpModule, SmartExpPipe };
47
- //# sourceMappingURL=ng-atomic-common-pipes-smart-exp.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"ng-atomic-common-pipes-smart-exp.mjs","sources":["../../../../../packages/@ng-atomic/common/src/lib/pipes/smart-exp/smart-exp.pipe.ts","../../../../../packages/@ng-atomic/common/src/lib/pipes/smart-exp/smart-exp.module.ts","../../../../../packages/@ng-atomic/common/src/lib/pipes/smart-exp/ng-atomic-common-pipes-smart-exp.ts"],"sourcesContent":["import { Inject, Optional, Pipe, PipeTransform } from '@angular/core';\nimport { SMART_EXP_TRANSFORMER, smartExpTransformer, SmartExpTransformer } from '@ng-atomic/common/utils';\nimport dayjs from 'dayjs';\n\n\n@Pipe({\n name: 'smartExp',\n pure: true,\n})\nexport class SmartExpPipe implements PipeTransform {\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}","import { NgModule } from \"@angular/core\";\nimport { SmartExpPipe } from \"./smart-exp.pipe\";\n\n@NgModule({\n declarations: [SmartExpPipe],\n exports: [SmartExpPipe]\n})\nexport class SmartExpModule { }","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MASa,YAAY,CAAA;AACvB,IAAA,WAAA,CACqD,WAAgC,EAAA;QAAhC,IAAW,CAAA,WAAA,GAAX,WAAW,CAAqB;AAEnF,QAAA,IAAI,CAAC,WAAW,KAAK,mBAAmB,CAAC;KAC1C;IAED,SAAS,CAAC,KAA0C,EAAE,GAAY,EAAA;QAChE,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC;KACrC;AATU,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,kBAED,qBAAqB,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;4GAFhC,YAAY,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,CAAA,EAAA;;2FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBAJxB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,UAAU;AAChB,oBAAA,IAAI,EAAE,IAAI;AACX,iBAAA,CAAA;;0BAGI,QAAQ;;0BAAI,MAAM;2BAAC,qBAAqB,CAAA;;;MCJhC,cAAc,CAAA;8GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;+GAAd,cAAc,EAAA,YAAA,EAAA,CAHV,YAAY,CAAA,EAAA,OAAA,EAAA,CACjB,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;+GAEX,cAAc,EAAA,CAAA,CAAA,EAAA;;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAJ1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,YAAY,CAAC;oBAC5B,OAAO,EAAE,CAAC,YAAY,CAAC;AACxB,iBAAA,CAAA;;;ACND;;AAEG;;;;"}
@@ -1,2 +0,0 @@
1
- export * from './smart-exp.pipe';
2
- export { SmartExpModule } from './smart-exp.module';
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./smart-exp.pipe";
3
- export declare class SmartExpModule {
4
- static ɵfac: i0.ɵɵFactoryDeclaration<SmartExpModule, never>;
5
- static ɵmod: i0.ɵɵNgModuleDeclaration<SmartExpModule, [typeof i1.SmartExpPipe], never, [typeof i1.SmartExpPipe]>;
6
- static ɵinj: i0.ɵɵInjectorDeclaration<SmartExpModule>;
7
- }
@@ -1,11 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { SmartExpTransformer } from '@ng-atomic/common/utils';
3
- import dayjs from 'dayjs';
4
- import * as i0 from "@angular/core";
5
- export declare class SmartExpPipe implements PipeTransform {
6
- private transformer;
7
- constructor(transformer: SmartExpTransformer);
8
- transform(input: string | number | dayjs.Dayjs | any, key?: string): string;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<SmartExpPipe, [{ optional: true; }]>;
10
- static ɵpipe: i0.ɵɵPipeDeclaration<SmartExpPipe, "smartExp", false>;
11
- }
@@ -1 +0,0 @@
1
- export * from './smart-exp-transformer';
@@ -1,6 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import dayjs from 'dayjs';
3
- export declare const SMART_EXP_TRANSFORMER: InjectionToken<SmartExpTransformer>;
4
- export type SmartExpTransformer = (input: string | number | dayjs.Dayjs | any, key?: string) => string;
5
- export declare const yenTransform: (value: number, _unit?: string) => string;
6
- export declare const smartExpTransformer: SmartExpTransformer;