@ng-atomic/common 1.7.0 → 3.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.
- package/directives/ios-safari-scroll-buggyfill/package.json +5 -5
- package/directives/package.json +5 -5
- package/esm2020/directives/index.mjs +2 -0
- package/esm2020/directives/ios-safari-scroll-buggyfill/index.mjs +3 -0
- package/esm2020/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.mjs +24 -0
- package/esm2020/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.mjs +26 -0
- package/esm2020/directives/ios-safari-scroll-buggyfill/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs +5 -0
- package/esm2020/directives/ng-atomic-common-directives.mjs +5 -0
- package/esm2020/index.mjs +2 -0
- package/esm2020/models/action-item.mjs +2 -0
- package/esm2020/models/index.mjs +2 -0
- package/esm2020/models/menu-item.mjs +2 -0
- package/esm2020/models/ng-atomic-common-models.mjs +5 -0
- package/esm2020/models/public_api.mjs +3 -0
- package/esm2020/ng-atomic-common.mjs +5 -0
- package/esm2020/pipes/domain/domain.module.mjs +26 -0
- package/esm2020/pipes/domain/domain.pipe.mjs +27 -0
- package/esm2020/pipes/domain/index.mjs +3 -0
- package/esm2020/pipes/index.mjs +7 -0
- package/esm2020/pipes/ng-atomic-common-pipes.mjs +5 -0
- package/esm2020/pipes/smart-clamp/index.mjs +3 -0
- package/esm2020/pipes/smart-clamp/smart-clamp.module.mjs +26 -0
- package/esm2020/pipes/smart-clamp/smart-clamp.pipe.mjs +44 -0
- package/esm2020/pipes/smart-exp/index.mjs +3 -0
- package/esm2020/pipes/smart-exp/smart-exp.module.mjs +16 -0
- package/esm2020/pipes/smart-exp/smart-exp.pipe.mjs +27 -0
- package/esm2020/pipes/smart-field/index.mjs +3 -0
- package/esm2020/pipes/smart-field/smart-field.module.mjs +26 -0
- package/esm2020/pipes/smart-field/smart-field.pipe.mjs +31 -0
- package/esm2020/pipes/smart-sort-by/index.mjs +3 -0
- package/esm2020/pipes/smart-sort-by/smart-sort-by.module.mjs +26 -0
- package/esm2020/pipes/smart-sort-by/smart-sort-by.pipe.mjs +31 -0
- package/esm2020/pipes/yen/index.mjs +3 -0
- package/esm2020/pipes/yen/yen.module.mjs +26 -0
- package/esm2020/pipes/yen/yen.pipe.mjs +17 -0
- package/esm2020/services/form/form.service.mjs +38 -0
- package/esm2020/services/form/index.mjs +2 -0
- package/esm2020/services/index.mjs +5 -0
- package/esm2020/services/loading/index.mjs +2 -0
- package/esm2020/services/loading/loading.service.mjs +32 -0
- package/esm2020/services/ng-atomic-common-services.mjs +5 -0
- package/esm2020/services/query-resolver/index.mjs +2 -0
- package/esm2020/services/query-resolver/query-resolver.service.mjs +27 -0
- package/esm2020/services/snack-bar/index.mjs +3 -0
- package/esm2020/services/snack-bar/snack-bar.module.mjs +24 -0
- package/esm2020/services/snack-bar/snack-bar.service.mjs +23 -0
- package/esm2020/store/entities.page.store.mjs +44 -0
- package/esm2020/store/entity.page.store.mjs +40 -0
- package/esm2020/store/index.mjs +3 -0
- package/esm2020/store/ng-atomic-common-store.mjs +5 -0
- package/esm2020/utils/comma/comma.mjs +4 -0
- package/esm2020/utils/comma/index.mjs +2 -0
- package/esm2020/utils/compare-by-id/compare-by-id.mjs +2 -0
- package/esm2020/utils/compare-by-id/index.mjs +2 -0
- package/esm2020/utils/date-utils/date-utils.mjs +13 -0
- package/esm2020/utils/date-utils/index.mjs +2 -0
- package/esm2020/utils/index.mjs +9 -0
- package/esm2020/utils/mat-dayjs-date/dayjs-date.adapter.mjs +191 -0
- package/esm2020/utils/mat-dayjs-date/dayjs-date.formats.mjs +15 -0
- package/esm2020/utils/mat-dayjs-date/dayjs-date.module.mjs +41 -0
- package/esm2020/utils/mat-dayjs-date/dayjs-jp-providers.mjs +20 -0
- package/esm2020/utils/mat-dayjs-date/index.mjs +5 -0
- package/esm2020/utils/ng-atomic-common-utils.mjs +5 -0
- package/esm2020/utils/query/index.mjs +2 -0
- package/esm2020/utils/query/query.resolver.mjs +97 -0
- package/esm2020/utils/smart-exp-transformer/index.mjs +2 -0
- package/esm2020/utils/smart-exp-transformer/smart-exp-transformer.mjs +18 -0
- package/esm2020/utils/to-object/index.mjs +2 -0
- package/esm2020/utils/to-object/to-object.mjs +10 -0
- package/fesm2015/{ng-atomic-common-directives-ios-safari-scroll-buggyfill.js → ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs} +8 -8
- package/fesm2015/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs.map +1 -0
- package/fesm2015/{ng-atomic-common-directives.js → ng-atomic-common-directives.mjs} +8 -8
- package/fesm2015/ng-atomic-common-directives.mjs.map +1 -0
- package/fesm2015/ng-atomic-common-models.mjs +4 -0
- package/fesm2015/ng-atomic-common-models.mjs.map +1 -0
- package/fesm2015/ng-atomic-common-pipes.mjs +312 -0
- package/fesm2015/ng-atomic-common-pipes.mjs.map +1 -0
- package/fesm2015/{ng-atomic-common-services.js → ng-atomic-common-services.mjs} +24 -26
- package/fesm2015/ng-atomic-common-services.mjs.map +1 -0
- package/fesm2015/{ng-atomic-common-store.js → ng-atomic-common-store.mjs} +1 -1
- package/fesm2015/ng-atomic-common-store.mjs.map +1 -0
- package/fesm2015/{ng-atomic-common-utils.js → ng-atomic-common-utils.mjs} +9 -9
- package/fesm2015/ng-atomic-common-utils.mjs.map +1 -0
- package/fesm2015/{ng-atomic-common.js → ng-atomic-common.mjs} +1 -1
- package/fesm2015/ng-atomic-common.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs +54 -0
- package/fesm2020/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-directives.mjs +54 -0
- package/fesm2020/ng-atomic-common-directives.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-models.mjs +4 -0
- package/fesm2020/ng-atomic-common-models.mjs.map +1 -0
- package/{fesm2015/ng-atomic-common-pipes.js → fesm2020/ng-atomic-common-pipes.mjs} +51 -58
- package/fesm2020/ng-atomic-common-pipes.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-services.mjs +142 -0
- package/fesm2020/ng-atomic-common-services.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-store.mjs +89 -0
- package/fesm2020/ng-atomic-common-store.mjs.map +1 -0
- package/fesm2020/ng-atomic-common-utils.mjs +406 -0
- package/fesm2020/ng-atomic-common-utils.mjs.map +1 -0
- package/fesm2020/ng-atomic-common.mjs +4 -0
- package/fesm2020/ng-atomic-common.mjs.map +1 -0
- package/models/package.json +5 -5
- package/package.json +77 -8
- package/pipes/package.json +5 -5
- package/services/package.json +5 -5
- package/store/package.json +5 -5
- package/utils/mat-dayjs-date/dayjs-jp-providers.d.ts +1 -1
- package/utils/package.json +5 -5
- package/bundles/ng-atomic-common-directives-ios-safari-scroll-buggyfill.umd.js +0 -87
- package/bundles/ng-atomic-common-directives-ios-safari-scroll-buggyfill.umd.js.map +0 -1
- package/bundles/ng-atomic-common-directives.umd.js +0 -87
- package/bundles/ng-atomic-common-directives.umd.js.map +0 -1
- package/bundles/ng-atomic-common-models.umd.js +0 -11
- package/bundles/ng-atomic-common-models.umd.js.map +0 -1
- package/bundles/ng-atomic-common-pipes.umd.js +0 -378
- package/bundles/ng-atomic-common-pipes.umd.js.map +0 -1
- package/bundles/ng-atomic-common-services.umd.js +0 -526
- package/bundles/ng-atomic-common-services.umd.js.map +0 -1
- package/bundles/ng-atomic-common-store.umd.js +0 -460
- package/bundles/ng-atomic-common-store.umd.js.map +0 -1
- package/bundles/ng-atomic-common-utils.umd.js +0 -806
- package/bundles/ng-atomic-common-utils.umd.js.map +0 -1
- package/bundles/ng-atomic-common.umd.js +0 -11
- package/bundles/ng-atomic-common.umd.js.map +0 -1
- package/esm2015/directives/index.js +0 -2
- package/esm2015/directives/index.js.map +0 -1
- package/esm2015/directives/ios-safari-scroll-buggyfill/index.js +0 -3
- package/esm2015/directives/ios-safari-scroll-buggyfill/index.js.map +0 -1
- package/esm2015/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.js +0 -24
- package/esm2015/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.js.map +0 -1
- package/esm2015/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.js +0 -26
- package/esm2015/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.js.map +0 -1
- package/esm2015/directives/ios-safari-scroll-buggyfill/ng-atomic-common-directives-ios-safari-scroll-buggyfill.js +0 -5
- package/esm2015/directives/ios-safari-scroll-buggyfill/ng-atomic-common-directives-ios-safari-scroll-buggyfill.js.map +0 -1
- package/esm2015/directives/ng-atomic-common-directives.js +0 -5
- package/esm2015/directives/ng-atomic-common-directives.js.map +0 -1
- package/esm2015/index.js +0 -2
- package/esm2015/index.js.map +0 -1
- package/esm2015/models/action-item.js +0 -2
- package/esm2015/models/action-item.js.map +0 -1
- package/esm2015/models/index.js +0 -2
- package/esm2015/models/index.js.map +0 -1
- package/esm2015/models/menu-item.js +0 -2
- package/esm2015/models/menu-item.js.map +0 -1
- package/esm2015/models/ng-atomic-common-models.js +0 -5
- package/esm2015/models/ng-atomic-common-models.js.map +0 -1
- package/esm2015/models/public_api.js +0 -3
- package/esm2015/models/public_api.js.map +0 -1
- package/esm2015/ng-atomic-common.js +0 -5
- package/esm2015/ng-atomic-common.js.map +0 -1
- package/esm2015/pipes/domain/domain.module.js +0 -26
- package/esm2015/pipes/domain/domain.module.js.map +0 -1
- package/esm2015/pipes/domain/domain.pipe.js +0 -29
- package/esm2015/pipes/domain/domain.pipe.js.map +0 -1
- package/esm2015/pipes/domain/index.js +0 -3
- package/esm2015/pipes/domain/index.js.map +0 -1
- package/esm2015/pipes/index.js +0 -7
- package/esm2015/pipes/index.js.map +0 -1
- package/esm2015/pipes/ng-atomic-common-pipes.js +0 -5
- package/esm2015/pipes/ng-atomic-common-pipes.js.map +0 -1
- package/esm2015/pipes/smart-clamp/index.js +0 -3
- package/esm2015/pipes/smart-clamp/index.js.map +0 -1
- package/esm2015/pipes/smart-clamp/smart-clamp.module.js +0 -26
- package/esm2015/pipes/smart-clamp/smart-clamp.module.js.map +0 -1
- package/esm2015/pipes/smart-clamp/smart-clamp.pipe.js +0 -45
- package/esm2015/pipes/smart-clamp/smart-clamp.pipe.js.map +0 -1
- package/esm2015/pipes/smart-exp/index.js +0 -3
- package/esm2015/pipes/smart-exp/index.js.map +0 -1
- package/esm2015/pipes/smart-exp/smart-exp.module.js +0 -16
- package/esm2015/pipes/smart-exp/smart-exp.module.js.map +0 -1
- package/esm2015/pipes/smart-exp/smart-exp.pipe.js +0 -28
- package/esm2015/pipes/smart-exp/smart-exp.pipe.js.map +0 -1
- package/esm2015/pipes/smart-field/index.js +0 -3
- package/esm2015/pipes/smart-field/index.js.map +0 -1
- package/esm2015/pipes/smart-field/smart-field.module.js +0 -26
- package/esm2015/pipes/smart-field/smart-field.module.js.map +0 -1
- package/esm2015/pipes/smart-field/smart-field.pipe.js +0 -33
- package/esm2015/pipes/smart-field/smart-field.pipe.js.map +0 -1
- package/esm2015/pipes/smart-sort-by/index.js +0 -3
- package/esm2015/pipes/smart-sort-by/index.js.map +0 -1
- package/esm2015/pipes/smart-sort-by/smart-sort-by.module.js +0 -26
- package/esm2015/pipes/smart-sort-by/smart-sort-by.module.js.map +0 -1
- package/esm2015/pipes/smart-sort-by/smart-sort-by.pipe.js +0 -32
- package/esm2015/pipes/smart-sort-by/smart-sort-by.pipe.js.map +0 -1
- package/esm2015/pipes/yen/index.js +0 -3
- package/esm2015/pipes/yen/index.js.map +0 -1
- package/esm2015/pipes/yen/yen.module.js +0 -26
- package/esm2015/pipes/yen/yen.module.js.map +0 -1
- package/esm2015/pipes/yen/yen.pipe.js +0 -17
- package/esm2015/pipes/yen/yen.pipe.js.map +0 -1
- package/esm2015/services/form/form.service.js +0 -35
- package/esm2015/services/form/form.service.js.map +0 -1
- package/esm2015/services/form/index.js +0 -2
- package/esm2015/services/form/index.js.map +0 -1
- package/esm2015/services/index.js +0 -5
- package/esm2015/services/index.js.map +0 -1
- package/esm2015/services/loading/index.js +0 -2
- package/esm2015/services/loading/index.js.map +0 -1
- package/esm2015/services/loading/loading.service.js +0 -32
- package/esm2015/services/loading/loading.service.js.map +0 -1
- package/esm2015/services/ng-atomic-common-services.js +0 -5
- package/esm2015/services/ng-atomic-common-services.js.map +0 -1
- package/esm2015/services/query-resolver/index.js +0 -2
- package/esm2015/services/query-resolver/index.js.map +0 -1
- package/esm2015/services/query-resolver/query-resolver.service.js +0 -31
- package/esm2015/services/query-resolver/query-resolver.service.js.map +0 -1
- package/esm2015/services/snack-bar/index.js +0 -3
- package/esm2015/services/snack-bar/index.js.map +0 -1
- package/esm2015/services/snack-bar/snack-bar.module.js +0 -24
- package/esm2015/services/snack-bar/snack-bar.module.js.map +0 -1
- package/esm2015/services/snack-bar/snack-bar.service.js +0 -23
- package/esm2015/services/snack-bar/snack-bar.service.js.map +0 -1
- package/esm2015/store/entities.page.store.js +0 -44
- package/esm2015/store/entities.page.store.js.map +0 -1
- package/esm2015/store/entity.page.store.js +0 -41
- package/esm2015/store/entity.page.store.js.map +0 -1
- package/esm2015/store/index.js +0 -3
- package/esm2015/store/index.js.map +0 -1
- package/esm2015/store/ng-atomic-common-store.js +0 -5
- package/esm2015/store/ng-atomic-common-store.js.map +0 -1
- package/esm2015/utils/comma/comma.js +0 -4
- package/esm2015/utils/comma/comma.js.map +0 -1
- package/esm2015/utils/comma/index.js +0 -2
- package/esm2015/utils/comma/index.js.map +0 -1
- package/esm2015/utils/compare-by-id/compare-by-id.js +0 -2
- package/esm2015/utils/compare-by-id/compare-by-id.js.map +0 -1
- package/esm2015/utils/compare-by-id/index.js +0 -2
- package/esm2015/utils/compare-by-id/index.js.map +0 -1
- package/esm2015/utils/date-utils/date-utils.js +0 -13
- package/esm2015/utils/date-utils/date-utils.js.map +0 -1
- package/esm2015/utils/date-utils/index.js +0 -2
- package/esm2015/utils/date-utils/index.js.map +0 -1
- package/esm2015/utils/index.js +0 -9
- package/esm2015/utils/index.js.map +0 -1
- package/esm2015/utils/mat-dayjs-date/dayjs-date.adapter.js +0 -191
- package/esm2015/utils/mat-dayjs-date/dayjs-date.adapter.js.map +0 -1
- package/esm2015/utils/mat-dayjs-date/dayjs-date.formats.js +0 -15
- package/esm2015/utils/mat-dayjs-date/dayjs-date.formats.js.map +0 -1
- package/esm2015/utils/mat-dayjs-date/dayjs-date.module.js +0 -41
- package/esm2015/utils/mat-dayjs-date/dayjs-date.module.js.map +0 -1
- package/esm2015/utils/mat-dayjs-date/dayjs-jp-providers.js +0 -20
- package/esm2015/utils/mat-dayjs-date/dayjs-jp-providers.js.map +0 -1
- package/esm2015/utils/mat-dayjs-date/index.js +0 -5
- package/esm2015/utils/mat-dayjs-date/index.js.map +0 -1
- package/esm2015/utils/ng-atomic-common-utils.js +0 -5
- package/esm2015/utils/ng-atomic-common-utils.js.map +0 -1
- package/esm2015/utils/query/index.js +0 -2
- package/esm2015/utils/query/index.js.map +0 -1
- package/esm2015/utils/query/query.resolver.js +0 -100
- package/esm2015/utils/query/query.resolver.js.map +0 -1
- package/esm2015/utils/smart-exp-transformer/index.js +0 -2
- package/esm2015/utils/smart-exp-transformer/index.js.map +0 -1
- package/esm2015/utils/smart-exp-transformer/smart-exp-transformer.js +0 -18
- package/esm2015/utils/smart-exp-transformer/smart-exp-transformer.js.map +0 -1
- package/esm2015/utils/to-object/index.js +0 -2
- package/esm2015/utils/to-object/index.js.map +0 -1
- package/esm2015/utils/to-object/to-object.js +0 -10
- package/esm2015/utils/to-object/to-object.js.map +0 -1
- package/fesm2015/ng-atomic-common-directives-ios-safari-scroll-buggyfill.js.map +0 -1
- package/fesm2015/ng-atomic-common-directives.js.map +0 -1
- package/fesm2015/ng-atomic-common-models.js +0 -4
- package/fesm2015/ng-atomic-common-models.js.map +0 -1
- package/fesm2015/ng-atomic-common-pipes.js.map +0 -1
- package/fesm2015/ng-atomic-common-services.js.map +0 -1
- package/fesm2015/ng-atomic-common-store.js.map +0 -1
- package/fesm2015/ng-atomic-common-utils.js.map +0 -1
- package/fesm2015/ng-atomic-common.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ng-atomic-common-pipes.umd.js","sources":["../../../../libs/common/pipes/domain/domain.pipe.ts","../../../../libs/common/pipes/domain/domain.module.ts","../../../../libs/common/pipes/smart-sort-by/smart-sort-by.pipe.ts","../../../../libs/common/pipes/smart-sort-by/smart-sort-by.module.ts","../../../../libs/common/pipes/smart-clamp/smart-clamp.pipe.ts","../../../../libs/common/pipes/smart-clamp/smart-clamp.module.ts","../../../../libs/common/pipes/smart-exp/smart-exp.pipe.ts","../../../../libs/common/pipes/smart-exp/smart-exp.module.ts","../../../../libs/common/pipes/smart-field/smart-field.pipe.ts","../../../../libs/common/pipes/smart-field/smart-field.module.ts","../../../../libs/common/pipes/yen/yen.pipe.ts","../../../../libs/common/pipes/yen/yen.module.ts","../../../../libs/common/pipes/ng-atomic-common-pipes.ts"],"sourcesContent":["import { Inject, InjectionToken, Optional, Pipe } from '@angular/core';\n\nexport type DomainLangMap = Record<string, string>;\nexport const DOMAIN_LANG_MAP = new InjectionToken<DomainLangMap>('domain lang map');\n\n@Pipe({\n name: 'D',\n pure: true,\n})\nexport class DomainPipe {\n constructor(@Optional() @Inject(DOMAIN_LANG_MAP) private map: DomainLangMap) {\n this.map ??= {};\n }\n\n transform(input: string) {\n return this.map?.[input] ?? input;\n }\n}\n\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { DomainPipe } from './domain.pipe';\n\n\n\n@NgModule({\n declarations: [\n DomainPipe\n ],\n imports: [\n CommonModule\n ],\n exports: [\n DomainPipe\n ]\n})\nexport class DomainModule { }\n","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","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","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","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { SmartClampPipe } from './smart-clamp.pipe';\n\n\n\n@NgModule({\n declarations: [\n SmartClampPipe\n ],\n imports: [\n CommonModule,\n ],\n exports: [\n SmartClampPipe\n ]\n})\nexport class SmartClampModule { }\n","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}","import { NgModule } from \"@angular/core\";\nimport { SmartExpPipe } from \"./smart-exp.pipe\";\n\n@NgModule({\n declarations: [SmartExpPipe],\n exports: [SmartExpPipe]\n})\nexport class SmartExpModule { }","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","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","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","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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["InjectionToken","i0","Pipe","Optional","Inject","CommonModule","NgModule","sortBy","SlicePipe","smartExpTransformer","SMART_EXP_TRANSFORMER","yenTransform"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;QAGa,eAAe,GAAG,IAAIA,iBAAc,CAAgB,iBAAiB,EAAE;AAMpF,QAAA,UAAA,kBAAA,YAAA;IACE,IAAA,SAAA,UAAA,CAAyD,GAAkB,EAAA;;IAAlB,QAAA,IAAG,CAAA,GAAA,GAAH,GAAG,CAAe;YACzE,CAAA,EAAA,GAAA,IAAI,CAAC,GAAG,MAAA,IAAA,IAAA,EAAA,KAAA,KAAA,CAAA,GAAA,EAAA,IAAR,IAAI,CAAC,GAAG,GAAK,EAAE,CAAC,CAAA;SACjB;QAED,UAAS,CAAA,SAAA,CAAA,SAAA,GAAT,UAAU,KAAa,EAAA;;YACrB,OAAO,CAAA,EAAA,GAAA,CAAA,EAAA,GAAA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IAAA,GAAAA,aAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,IAAA,EAAA,SAAS,EATlB,YAAA,EAAA,CAAA,OAAO,CAGP,EAAA,OAAA,EAAA,CAAAI,mBAAY,aAGZ,OAAO,CAAA,EAAA,CAAA,CAAA;IAGE,SAAA,CAAA,IAAA,GAAAJ,aAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAAA,aAAA,EAAA,IAAA,EAAA,SAAS,EAPX,OAAA,EAAA,CAAA;gBACPI,mBAAY;aACb,CAAA,EAAA,CAAA,CAAA;sHAKU,SAAS,EAAA,UAAA,EAAA,CAAA;sBAXrBC,WAAQ;IAAC,YAAA,IAAA,EAAA,CAAA;IACR,oBAAA,YAAY,EAAE;4BACZ,OAAO;IACR,qBAAA;IACD,oBAAA,OAAO,EAAE;4BACPD,mBAAY;IACb,qBAAA;IACD,oBAAA,OAAO,EAAE;4BACP,OAAO;IACR,qBAAA;qBACF,CAAA;;;IChBD;;IAEG;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,526 +0,0 @@
|
|
|
1
|
-
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@ng-atomic/common/utils'), require('dayjs'), require('flat'), require('lodash'), require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('@angular/material/snack-bar'), require('@angular/common')) :
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@ng-atomic/common/services', ['exports', '@ng-atomic/common/utils', 'dayjs', 'flat', 'lodash', '@angular/core', 'rxjs', 'rxjs/operators', '@angular/material/snack-bar', '@angular/common'], factory) :
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global["ng-atomic"] = global["ng-atomic"] || {}, global["ng-atomic"].common = global["ng-atomic"].common || {}, global["ng-atomic"].common.services = {}), global["ng-atomic"].common.utils, global.dayjs, global.flat, global.lodash, global.ng.core, global.rxjs, global.rxjs.operators, global.ng.material.snackBar, global.ng.common));
|
|
5
|
-
})(this, (function (exports, utils, dayjs, flat, lodash, i0, rxjs, operators, i1, common) { 'use strict';
|
|
6
|
-
|
|
7
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
|
-
|
|
9
|
-
function _interopNamespace(e) {
|
|
10
|
-
if (e && e.__esModule) return e;
|
|
11
|
-
var n = Object.create(null);
|
|
12
|
-
if (e) {
|
|
13
|
-
Object.keys(e).forEach(function (k) {
|
|
14
|
-
if (k !== 'default') {
|
|
15
|
-
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
16
|
-
Object.defineProperty(n, k, d.get ? d : {
|
|
17
|
-
enumerable: true,
|
|
18
|
-
get: function () { return e[k]; }
|
|
19
|
-
});
|
|
20
|
-
}
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
n["default"] = e;
|
|
24
|
-
return Object.freeze(n);
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
|
|
28
|
-
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
29
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
30
|
-
|
|
31
|
-
/*! *****************************************************************************
|
|
32
|
-
Copyright (c) Microsoft Corporation.
|
|
33
|
-
|
|
34
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
35
|
-
purpose with or without fee is hereby granted.
|
|
36
|
-
|
|
37
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
38
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
39
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
40
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
41
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
42
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
43
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
44
|
-
***************************************************************************** */
|
|
45
|
-
/* global Reflect, Promise */
|
|
46
|
-
var extendStatics = function (d, b) {
|
|
47
|
-
extendStatics = Object.setPrototypeOf ||
|
|
48
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
49
|
-
function (d, b) { for (var p in b)
|
|
50
|
-
if (Object.prototype.hasOwnProperty.call(b, p))
|
|
51
|
-
d[p] = b[p]; };
|
|
52
|
-
return extendStatics(d, b);
|
|
53
|
-
};
|
|
54
|
-
function __extends(d, b) {
|
|
55
|
-
if (typeof b !== "function" && b !== null)
|
|
56
|
-
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
57
|
-
extendStatics(d, b);
|
|
58
|
-
function __() { this.constructor = d; }
|
|
59
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
60
|
-
}
|
|
61
|
-
var __assign = function () {
|
|
62
|
-
__assign = Object.assign || function __assign(t) {
|
|
63
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
64
|
-
s = arguments[i];
|
|
65
|
-
for (var p in s)
|
|
66
|
-
if (Object.prototype.hasOwnProperty.call(s, p))
|
|
67
|
-
t[p] = s[p];
|
|
68
|
-
}
|
|
69
|
-
return t;
|
|
70
|
-
};
|
|
71
|
-
return __assign.apply(this, arguments);
|
|
72
|
-
};
|
|
73
|
-
function __rest(s, e) {
|
|
74
|
-
var t = {};
|
|
75
|
-
for (var p in s)
|
|
76
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
77
|
-
t[p] = s[p];
|
|
78
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
79
|
-
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
80
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
81
|
-
t[p[i]] = s[p[i]];
|
|
82
|
-
}
|
|
83
|
-
return t;
|
|
84
|
-
}
|
|
85
|
-
function __decorate(decorators, target, key, desc) {
|
|
86
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
87
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
|
|
88
|
-
r = Reflect.decorate(decorators, target, key, desc);
|
|
89
|
-
else
|
|
90
|
-
for (var i = decorators.length - 1; i >= 0; i--)
|
|
91
|
-
if (d = decorators[i])
|
|
92
|
-
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
93
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
94
|
-
}
|
|
95
|
-
function __param(paramIndex, decorator) {
|
|
96
|
-
return function (target, key) { decorator(target, key, paramIndex); };
|
|
97
|
-
}
|
|
98
|
-
function __metadata(metadataKey, metadataValue) {
|
|
99
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
|
|
100
|
-
return Reflect.metadata(metadataKey, metadataValue);
|
|
101
|
-
}
|
|
102
|
-
function __awaiter(thisArg, _arguments, P, generator) {
|
|
103
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
104
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
105
|
-
function fulfilled(value) { try {
|
|
106
|
-
step(generator.next(value));
|
|
107
|
-
}
|
|
108
|
-
catch (e) {
|
|
109
|
-
reject(e);
|
|
110
|
-
} }
|
|
111
|
-
function rejected(value) { try {
|
|
112
|
-
step(generator["throw"](value));
|
|
113
|
-
}
|
|
114
|
-
catch (e) {
|
|
115
|
-
reject(e);
|
|
116
|
-
} }
|
|
117
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
118
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
119
|
-
});
|
|
120
|
-
}
|
|
121
|
-
function __generator(thisArg, body) {
|
|
122
|
-
var _ = { label: 0, sent: function () { if (t[0] & 1)
|
|
123
|
-
throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
124
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
|
|
125
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
126
|
-
function step(op) {
|
|
127
|
-
if (f)
|
|
128
|
-
throw new TypeError("Generator is already executing.");
|
|
129
|
-
while (_)
|
|
130
|
-
try {
|
|
131
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
|
|
132
|
-
return t;
|
|
133
|
-
if (y = 0, t)
|
|
134
|
-
op = [op[0] & 2, t.value];
|
|
135
|
-
switch (op[0]) {
|
|
136
|
-
case 0:
|
|
137
|
-
case 1:
|
|
138
|
-
t = op;
|
|
139
|
-
break;
|
|
140
|
-
case 4:
|
|
141
|
-
_.label++;
|
|
142
|
-
return { value: op[1], done: false };
|
|
143
|
-
case 5:
|
|
144
|
-
_.label++;
|
|
145
|
-
y = op[1];
|
|
146
|
-
op = [0];
|
|
147
|
-
continue;
|
|
148
|
-
case 7:
|
|
149
|
-
op = _.ops.pop();
|
|
150
|
-
_.trys.pop();
|
|
151
|
-
continue;
|
|
152
|
-
default:
|
|
153
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
154
|
-
_ = 0;
|
|
155
|
-
continue;
|
|
156
|
-
}
|
|
157
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
|
|
158
|
-
_.label = op[1];
|
|
159
|
-
break;
|
|
160
|
-
}
|
|
161
|
-
if (op[0] === 6 && _.label < t[1]) {
|
|
162
|
-
_.label = t[1];
|
|
163
|
-
t = op;
|
|
164
|
-
break;
|
|
165
|
-
}
|
|
166
|
-
if (t && _.label < t[2]) {
|
|
167
|
-
_.label = t[2];
|
|
168
|
-
_.ops.push(op);
|
|
169
|
-
break;
|
|
170
|
-
}
|
|
171
|
-
if (t[2])
|
|
172
|
-
_.ops.pop();
|
|
173
|
-
_.trys.pop();
|
|
174
|
-
continue;
|
|
175
|
-
}
|
|
176
|
-
op = body.call(thisArg, _);
|
|
177
|
-
}
|
|
178
|
-
catch (e) {
|
|
179
|
-
op = [6, e];
|
|
180
|
-
y = 0;
|
|
181
|
-
}
|
|
182
|
-
finally {
|
|
183
|
-
f = t = 0;
|
|
184
|
-
}
|
|
185
|
-
if (op[0] & 5)
|
|
186
|
-
throw op[1];
|
|
187
|
-
return { value: op[0] ? op[1] : void 0, done: true };
|
|
188
|
-
}
|
|
189
|
-
}
|
|
190
|
-
var __createBinding = Object.create ? (function (o, m, k, k2) {
|
|
191
|
-
if (k2 === undefined)
|
|
192
|
-
k2 = k;
|
|
193
|
-
Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
|
|
194
|
-
}) : (function (o, m, k, k2) {
|
|
195
|
-
if (k2 === undefined)
|
|
196
|
-
k2 = k;
|
|
197
|
-
o[k2] = m[k];
|
|
198
|
-
});
|
|
199
|
-
function __exportStar(m, o) {
|
|
200
|
-
for (var p in m)
|
|
201
|
-
if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
|
|
202
|
-
__createBinding(o, m, p);
|
|
203
|
-
}
|
|
204
|
-
function __values(o) {
|
|
205
|
-
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
206
|
-
if (m)
|
|
207
|
-
return m.call(o);
|
|
208
|
-
if (o && typeof o.length === "number")
|
|
209
|
-
return {
|
|
210
|
-
next: function () {
|
|
211
|
-
if (o && i >= o.length)
|
|
212
|
-
o = void 0;
|
|
213
|
-
return { value: o && o[i++], done: !o };
|
|
214
|
-
}
|
|
215
|
-
};
|
|
216
|
-
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
217
|
-
}
|
|
218
|
-
function __read(o, n) {
|
|
219
|
-
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
220
|
-
if (!m)
|
|
221
|
-
return o;
|
|
222
|
-
var i = m.call(o), r, ar = [], e;
|
|
223
|
-
try {
|
|
224
|
-
while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
|
|
225
|
-
ar.push(r.value);
|
|
226
|
-
}
|
|
227
|
-
catch (error) {
|
|
228
|
-
e = { error: error };
|
|
229
|
-
}
|
|
230
|
-
finally {
|
|
231
|
-
try {
|
|
232
|
-
if (r && !r.done && (m = i["return"]))
|
|
233
|
-
m.call(i);
|
|
234
|
-
}
|
|
235
|
-
finally {
|
|
236
|
-
if (e)
|
|
237
|
-
throw e.error;
|
|
238
|
-
}
|
|
239
|
-
}
|
|
240
|
-
return ar;
|
|
241
|
-
}
|
|
242
|
-
/** @deprecated */
|
|
243
|
-
function __spread() {
|
|
244
|
-
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
245
|
-
ar = ar.concat(__read(arguments[i]));
|
|
246
|
-
return ar;
|
|
247
|
-
}
|
|
248
|
-
/** @deprecated */
|
|
249
|
-
function __spreadArrays() {
|
|
250
|
-
for (var s = 0, i = 0, il = arguments.length; i < il; i++)
|
|
251
|
-
s += arguments[i].length;
|
|
252
|
-
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
253
|
-
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
254
|
-
r[k] = a[j];
|
|
255
|
-
return r;
|
|
256
|
-
}
|
|
257
|
-
function __spreadArray(to, from, pack) {
|
|
258
|
-
if (pack || arguments.length === 2)
|
|
259
|
-
for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
260
|
-
if (ar || !(i in from)) {
|
|
261
|
-
if (!ar)
|
|
262
|
-
ar = Array.prototype.slice.call(from, 0, i);
|
|
263
|
-
ar[i] = from[i];
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
return to.concat(ar || Array.prototype.slice.call(from));
|
|
267
|
-
}
|
|
268
|
-
function __await(v) {
|
|
269
|
-
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
270
|
-
}
|
|
271
|
-
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
272
|
-
if (!Symbol.asyncIterator)
|
|
273
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
274
|
-
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
275
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
276
|
-
function verb(n) { if (g[n])
|
|
277
|
-
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
278
|
-
function resume(n, v) { try {
|
|
279
|
-
step(g[n](v));
|
|
280
|
-
}
|
|
281
|
-
catch (e) {
|
|
282
|
-
settle(q[0][3], e);
|
|
283
|
-
} }
|
|
284
|
-
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
285
|
-
function fulfill(value) { resume("next", value); }
|
|
286
|
-
function reject(value) { resume("throw", value); }
|
|
287
|
-
function settle(f, v) { if (f(v), q.shift(), q.length)
|
|
288
|
-
resume(q[0][0], q[0][1]); }
|
|
289
|
-
}
|
|
290
|
-
function __asyncDelegator(o) {
|
|
291
|
-
var i, p;
|
|
292
|
-
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
293
|
-
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
294
|
-
}
|
|
295
|
-
function __asyncValues(o) {
|
|
296
|
-
if (!Symbol.asyncIterator)
|
|
297
|
-
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
298
|
-
var m = o[Symbol.asyncIterator], i;
|
|
299
|
-
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
300
|
-
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
301
|
-
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
|
|
302
|
-
}
|
|
303
|
-
function __makeTemplateObject(cooked, raw) {
|
|
304
|
-
if (Object.defineProperty) {
|
|
305
|
-
Object.defineProperty(cooked, "raw", { value: raw });
|
|
306
|
-
}
|
|
307
|
-
else {
|
|
308
|
-
cooked.raw = raw;
|
|
309
|
-
}
|
|
310
|
-
return cooked;
|
|
311
|
-
}
|
|
312
|
-
;
|
|
313
|
-
var __setModuleDefault = Object.create ? (function (o, v) {
|
|
314
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
315
|
-
}) : function (o, v) {
|
|
316
|
-
o["default"] = v;
|
|
317
|
-
};
|
|
318
|
-
function __importStar(mod) {
|
|
319
|
-
if (mod && mod.__esModule)
|
|
320
|
-
return mod;
|
|
321
|
-
var result = {};
|
|
322
|
-
if (mod != null)
|
|
323
|
-
for (var k in mod)
|
|
324
|
-
if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
|
|
325
|
-
__createBinding(result, mod, k);
|
|
326
|
-
__setModuleDefault(result, mod);
|
|
327
|
-
return result;
|
|
328
|
-
}
|
|
329
|
-
function __importDefault(mod) {
|
|
330
|
-
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
331
|
-
}
|
|
332
|
-
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
333
|
-
if (kind === "a" && !f)
|
|
334
|
-
throw new TypeError("Private accessor was defined without a getter");
|
|
335
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
336
|
-
throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
337
|
-
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
338
|
-
}
|
|
339
|
-
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
340
|
-
if (kind === "m")
|
|
341
|
-
throw new TypeError("Private method is not writable");
|
|
342
|
-
if (kind === "a" && !f)
|
|
343
|
-
throw new TypeError("Private accessor was defined without a setter");
|
|
344
|
-
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
|
|
345
|
-
throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
346
|
-
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
347
|
-
}
|
|
348
|
-
|
|
349
|
-
var isNumeric = function (v) { return !isNaN(Number(v)); };
|
|
350
|
-
var parseQueryString = function (v, key) { return key.match(/id$/i)
|
|
351
|
-
? v
|
|
352
|
-
: typeof v === 'string' && utils.isIsoString(v)
|
|
353
|
-
? dayjs__default["default"](v)
|
|
354
|
-
: v === ''
|
|
355
|
-
? v
|
|
356
|
-
: isNumeric(v)
|
|
357
|
-
? Number(v)
|
|
358
|
-
: v; };
|
|
359
|
-
var BaseFormService = /** @class */ (function () {
|
|
360
|
-
function BaseFormService() {
|
|
361
|
-
}
|
|
362
|
-
BaseFormService.fromQueryParams = function (obj) {
|
|
363
|
-
var _a, _b;
|
|
364
|
-
return Object.entries((_b = (_a = flat.unflatten(obj)) === null || _a === void 0 ? void 0 : _a.form) !== null && _b !== void 0 ? _b : {}).reduce(function (m, _c) {
|
|
365
|
-
var _d;
|
|
366
|
-
var _e = __read(_c, 2), k = _e[0], v = _e[1];
|
|
367
|
-
return (Object.assign(Object.assign({}, m), (_d = {}, _d[k] = parseQueryString(v, k), _d)));
|
|
368
|
-
}, {});
|
|
369
|
-
};
|
|
370
|
-
BaseFormService.toQueryParams = function (obj) {
|
|
371
|
-
return flat.flatten({ form: Object.entries(obj).reduce(function (m, _c) {
|
|
372
|
-
var _d;
|
|
373
|
-
var _e = __read(_c, 2), k = _e[0], v = _e[1];
|
|
374
|
-
return (Object.assign(Object.assign({}, m), (_d = {}, _d[k] = dayjs__default["default"].isDayjs(v) ? v.isValid() ? v.toISOString() : null : v, _d)));
|
|
375
|
-
}, {}) });
|
|
376
|
-
};
|
|
377
|
-
BaseFormService.dayjsKeys = function (object) {
|
|
378
|
-
return Object.entries(object).filter(function (_c) {
|
|
379
|
-
var _d = __read(_c, 2), _ = _d[0], v = _d[1];
|
|
380
|
-
return dayjs__default["default"].isDayjs(v);
|
|
381
|
-
}).map(function (_c) {
|
|
382
|
-
var _d = __read(_c, 1), k = _d[0];
|
|
383
|
-
return k;
|
|
384
|
-
});
|
|
385
|
-
};
|
|
386
|
-
BaseFormService.toValue = function (object) {
|
|
387
|
-
var keys = this.dayjsKeys(object);
|
|
388
|
-
return Object.assign(Object.assign({}, flat.flatten(lodash.omit(utils.toObject(object), keys))), lodash.pick(utils.toObject(object), keys));
|
|
389
|
-
};
|
|
390
|
-
BaseFormService.fromValue = function (value) {
|
|
391
|
-
var keys = this.dayjsKeys(value);
|
|
392
|
-
return Object.assign(Object.assign({}, flat.unflatten(lodash.omit(value, keys))), lodash.pick(value, keys));
|
|
393
|
-
};
|
|
394
|
-
return BaseFormService;
|
|
395
|
-
}());
|
|
396
|
-
|
|
397
|
-
var LoadingService = /** @class */ (function () {
|
|
398
|
-
function LoadingService() {
|
|
399
|
-
var _this = this;
|
|
400
|
-
this.loadingEntries$ = new rxjs.Subject();
|
|
401
|
-
this.loadingMap = {};
|
|
402
|
-
this.loadingMap$ = this.loadingEntries$.pipe(operators.scan(function (pre, _a) {
|
|
403
|
-
var _b;
|
|
404
|
-
var _c = __read(_a, 2), key = _c[0], value = _c[1];
|
|
405
|
-
return (Object.assign(Object.assign({}, pre), (_b = {}, _b[key] = value, _b)));
|
|
406
|
-
}, {}), operators.map(function (m) { return Object.entries(m)
|
|
407
|
-
.filter(function (_a) {
|
|
408
|
-
var _b = __read(_a, 2), k = _b[0], v = _b[1];
|
|
409
|
-
return v;
|
|
410
|
-
})
|
|
411
|
-
.reduce(function (p, _a) {
|
|
412
|
-
var _b;
|
|
413
|
-
var _c = __read(_a, 2), k = _c[0], v = _c[1];
|
|
414
|
-
return (Object.assign(Object.assign({}, p), (_b = {}, _b[k] = v, _b)));
|
|
415
|
-
}, {}); }), operators.distinctUntilChanged(function (pre, cur) { return JSON.stringify(pre) === JSON.stringify(cur); }));
|
|
416
|
-
this.isLoading$ = this.loadingMap$.pipe(operators.map(function (m) { return !!Object.keys(m).length; }), operators.delay(0));
|
|
417
|
-
this.loadingMap$.subscribe(function (m) {
|
|
418
|
-
_this.loadingMap = m;
|
|
419
|
-
});
|
|
420
|
-
}
|
|
421
|
-
LoadingService.prototype.setKey = function (key) {
|
|
422
|
-
this.loadingEntries$.next([key, true]);
|
|
423
|
-
};
|
|
424
|
-
LoadingService.prototype.removeKey = function (key) {
|
|
425
|
-
this.loadingEntries$.next([key, false]);
|
|
426
|
-
};
|
|
427
|
-
return LoadingService;
|
|
428
|
-
}());
|
|
429
|
-
LoadingService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoadingService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
430
|
-
LoadingService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoadingService, providedIn: 'root' });
|
|
431
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: LoadingService, decorators: [{
|
|
432
|
-
type: i0.Injectable,
|
|
433
|
-
args: [{
|
|
434
|
-
providedIn: 'root',
|
|
435
|
-
}]
|
|
436
|
-
}], ctorParameters: function () { return []; } });
|
|
437
|
-
|
|
438
|
-
var QueryResolverService = /** @class */ (function () {
|
|
439
|
-
function QueryResolverService(transformer) {
|
|
440
|
-
var _a;
|
|
441
|
-
this.transformer = transformer;
|
|
442
|
-
(_a = this.transformer) !== null && _a !== void 0 ? _a : (this.transformer = utils.smartExpTransformer);
|
|
443
|
-
}
|
|
444
|
-
QueryResolverService.prototype.resolve = function (items, queryString, dlm) {
|
|
445
|
-
if (dlm === void 0) { dlm = {}; }
|
|
446
|
-
// console.debug('queryString:', queryString);
|
|
447
|
-
// const resolved = filterByQuery(items, queryString, dlm, this.transformer);
|
|
448
|
-
// console.debug('resolved:', resolved);
|
|
449
|
-
// return resolved;
|
|
450
|
-
return items;
|
|
451
|
-
};
|
|
452
|
-
return QueryResolverService;
|
|
453
|
-
}());
|
|
454
|
-
QueryResolverService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: QueryResolverService, deps: [{ token: utils.SMART_EXP_TRANSFORMER, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
455
|
-
QueryResolverService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: QueryResolverService, providedIn: 'root' });
|
|
456
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: QueryResolverService, decorators: [{
|
|
457
|
-
type: i0.Injectable,
|
|
458
|
-
args: [{
|
|
459
|
-
providedIn: 'root'
|
|
460
|
-
}]
|
|
461
|
-
}], ctorParameters: function () {
|
|
462
|
-
return [{ type: undefined, decorators: [{
|
|
463
|
-
type: i0.Optional
|
|
464
|
-
}, {
|
|
465
|
-
type: i0.Inject,
|
|
466
|
-
args: [utils.SMART_EXP_TRANSFORMER]
|
|
467
|
-
}] }];
|
|
468
|
-
} });
|
|
469
|
-
|
|
470
|
-
var SnackBarService = /** @class */ (function () {
|
|
471
|
-
function SnackBarService(snackBar) {
|
|
472
|
-
this.snackBar = snackBar;
|
|
473
|
-
}
|
|
474
|
-
SnackBarService.prototype.openSnackBar = function (message, action) {
|
|
475
|
-
this.snackBar.open(message, action, {
|
|
476
|
-
duration: 2000,
|
|
477
|
-
});
|
|
478
|
-
};
|
|
479
|
-
return SnackBarService;
|
|
480
|
-
}());
|
|
481
|
-
SnackBarService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SnackBarService, deps: [{ token: i1__namespace.MatSnackBar }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
482
|
-
SnackBarService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SnackBarService, providedIn: 'root' });
|
|
483
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SnackBarService, decorators: [{
|
|
484
|
-
type: i0.Injectable,
|
|
485
|
-
args: [{
|
|
486
|
-
providedIn: 'root'
|
|
487
|
-
}]
|
|
488
|
-
}], ctorParameters: function () { return [{ type: i1__namespace.MatSnackBar }]; } });
|
|
489
|
-
|
|
490
|
-
var SnackBarModule = /** @class */ (function () {
|
|
491
|
-
function SnackBarModule() {
|
|
492
|
-
}
|
|
493
|
-
return SnackBarModule;
|
|
494
|
-
}());
|
|
495
|
-
SnackBarModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SnackBarModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
496
|
-
SnackBarModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SnackBarModule, imports: [common.CommonModule,
|
|
497
|
-
i1.MatSnackBarModule] });
|
|
498
|
-
SnackBarModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SnackBarModule, imports: [[
|
|
499
|
-
common.CommonModule,
|
|
500
|
-
i1.MatSnackBarModule
|
|
501
|
-
]] });
|
|
502
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.16", ngImport: i0__namespace, type: SnackBarModule, decorators: [{
|
|
503
|
-
type: i0.NgModule,
|
|
504
|
-
args: [{
|
|
505
|
-
declarations: [],
|
|
506
|
-
imports: [
|
|
507
|
-
common.CommonModule,
|
|
508
|
-
i1.MatSnackBarModule
|
|
509
|
-
]
|
|
510
|
-
}]
|
|
511
|
-
}] });
|
|
512
|
-
|
|
513
|
-
/**
|
|
514
|
-
* Generated bundle index. Do not edit.
|
|
515
|
-
*/
|
|
516
|
-
|
|
517
|
-
exports.BaseFormService = BaseFormService;
|
|
518
|
-
exports.LoadingService = LoadingService;
|
|
519
|
-
exports.QueryResolverService = QueryResolverService;
|
|
520
|
-
exports.SnackBarModule = SnackBarModule;
|
|
521
|
-
exports.SnackBarService = SnackBarService;
|
|
522
|
-
|
|
523
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
524
|
-
|
|
525
|
-
}));
|
|
526
|
-
//# sourceMappingURL=ng-atomic-common-services.umd.js.map
|