@ng-atomic/common 5.15.0 → 6.0.4
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/core/component-store.d.ts +48 -0
- package/core/index.d.ts +2 -0
- package/core/injectable-component.d.ts +31 -0
- package/esm2022/core/component-store.mjs +86 -0
- package/esm2022/core/index.mjs +3 -0
- package/esm2022/core/injectable-component.mjs +82 -0
- package/esm2022/core/ng-atomic-common-core.mjs +5 -0
- package/esm2022/directives/ios-safari-scroll-buggyfill/index.mjs +3 -0
- package/esm2022/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.mjs +24 -0
- package/esm2022/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.mjs +24 -0
- package/esm2022/directives/ios-safari-scroll-buggyfill/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs +5 -0
- package/esm2022/index.mjs +2 -0
- package/esm2022/models/action.mjs +7 -0
- package/{esm2020 → esm2022}/models/index.mjs +1 -1
- package/{esm2020 → esm2022}/models/menu-item.mjs +1 -1
- package/esm2022/models/ng-atomic-common-models.mjs +5 -0
- package/{esm2020 → esm2022}/models/public_api.mjs +1 -1
- package/{esm2020 → esm2022}/ng-atomic-common.mjs +1 -1
- package/esm2022/pipes/actions/actions.pipe.mjs +19 -0
- package/{esm2020 → esm2022}/pipes/actions/index.mjs +1 -1
- package/esm2022/pipes/actions/ng-atomic-common-pipes-actions.mjs +5 -0
- package/esm2022/pipes/data-accessor/data-accessor.pipe.mjs +30 -0
- package/{esm2020 → esm2022}/pipes/data-accessor/index.mjs +1 -1
- package/esm2022/pipes/data-accessor/ng-atomic-common-pipes-data-accessor.mjs +5 -0
- package/esm2022/pipes/domain/domain.pipe.mjs +28 -0
- package/esm2022/pipes/domain/index.mjs +2 -0
- package/esm2022/pipes/domain/ng-atomic-common-pipes-domain.mjs +5 -0
- package/esm2022/pipes/error/error.pipe.mjs +44 -0
- package/esm2022/pipes/error/index.mjs +2 -0
- package/esm2022/pipes/error/ng-atomic-common-pipes-error.mjs +5 -0
- package/esm2022/pipes/grouped-by/grouped-by.pipe.mjs +27 -0
- package/esm2022/pipes/grouped-by/index.mjs +2 -0
- package/esm2022/pipes/grouped-by/ng-atomic-common-pipes-grouped-by.mjs +5 -0
- package/esm2022/pipes/keys/index.mjs +2 -0
- package/esm2022/pipes/keys/keys.pipe.mjs +18 -0
- package/esm2022/pipes/keys/ng-atomic-common-pipes-keys.mjs +5 -0
- package/esm2022/pipes/pagination/index.mjs +2 -0
- package/esm2022/pipes/pagination/ng-atomic-common-pipes-pagination.mjs +5 -0
- package/esm2022/pipes/pagination/pagination.pipe.mjs +32 -0
- package/esm2022/pipes/query/index.mjs +2 -0
- package/esm2022/pipes/query/ng-atomic-common-pipes-query.mjs +5 -0
- package/esm2022/pipes/query/query.pipe.mjs +26 -0
- package/{esm2020 → esm2022}/pipes/select-id/index.mjs +1 -1
- package/esm2022/pipes/select-id/ng-atomic-common-pipes-select-id.mjs +5 -0
- package/esm2022/pipes/select-id/select-id.pipe.mjs +29 -0
- package/esm2022/pipes/signal/index.mjs +2 -0
- package/esm2022/pipes/signal/ng-atomic-common-pipes-signal.mjs +5 -0
- package/esm2022/pipes/signal/signal.pipe.mjs +21 -0
- package/esm2022/pipes/smart-exp/index.mjs +3 -0
- package/esm2022/pipes/smart-exp/ng-atomic-common-pipes-smart-exp.mjs +5 -0
- package/esm2022/pipes/smart-exp/smart-exp.module.mjs +16 -0
- package/esm2022/pipes/smart-exp/smart-exp.pipe.mjs +27 -0
- package/esm2022/pipes/smart-field/index.mjs +2 -0
- package/esm2022/pipes/smart-field/ng-atomic-common-pipes-smart-field.mjs +5 -0
- package/esm2022/pipes/smart-field/smart-field.pipe.mjs +33 -0
- package/esm2022/pipes/smart-sort-by/index.mjs +4 -0
- package/esm2022/pipes/smart-sort-by/ng-atomic-common-pipes-smart-sort-by.mjs +5 -0
- package/esm2022/pipes/smart-sort-by/smart-sort-by.module.mjs +24 -0
- package/esm2022/pipes/smart-sort-by/smart-sort-by.pipe.mjs +28 -0
- package/esm2022/pipes/smart-sort-by/smart-sort-by.transformer.mjs +5 -0
- package/esm2022/pipes/yen/index.mjs +2 -0
- package/esm2022/pipes/yen/ng-atomic-common-pipes-yen.mjs +5 -0
- package/esm2022/pipes/yen/yen.pipe.mjs +20 -0
- package/esm2022/services/auth/auth.service.mjs +36 -0
- package/esm2022/services/auth/index.mjs +2 -0
- package/esm2022/services/auth/ng-atomic-common-services-auth.mjs +5 -0
- package/esm2022/services/chips-manager/chips.manager.mjs +29 -0
- package/{esm2020 → esm2022}/services/chips-manager/index.mjs +1 -1
- package/esm2022/services/chips-manager/ng-atomic-common-services-chips-manager.mjs +5 -0
- package/esm2022/services/csv/csv.service.mjs +25 -0
- package/{esm2020 → esm2022}/services/csv/index.mjs +1 -1
- package/esm2022/services/csv/ng-atomic-common-services-csv.mjs +5 -0
- package/esm2022/services/form/form.service.mjs +38 -0
- package/{esm2020 → esm2022}/services/form/index.mjs +1 -1
- package/esm2022/services/form/ng-atomic-common-services-form.mjs +5 -0
- package/{esm2020 → esm2022}/services/form/pagination/index.mjs +1 -1
- package/esm2022/services/form/pagination/ng-atomic-common-services-form-pagination.mjs +5 -0
- package/esm2022/services/form/pagination/pagination.service.mjs +24 -0
- package/{esm2020 → esm2022}/services/form/sort/index.mjs +1 -1
- package/esm2022/services/form/sort/ng-atomic-common-services-form-sort.mjs +5 -0
- package/esm2022/services/form/sort/sort.service.mjs +33 -0
- package/{esm2020 → esm2022}/services/loading/index.mjs +1 -1
- package/esm2022/services/loading/loading.service.mjs +44 -0
- package/esm2022/services/loading/ng-atomic-common-services-loading.mjs +5 -0
- package/{esm2020 → esm2022}/services/query-resolver/index.mjs +1 -1
- package/esm2022/services/query-resolver/ng-atomic-common-services-query-resolver.mjs +5 -0
- package/esm2022/services/query-resolver/query-resolver.service.mjs +33 -0
- package/esm2022/services/snack-bar/index.mjs +3 -0
- package/esm2022/services/snack-bar/ng-atomic-common-services-snack-bar.mjs +5 -0
- package/esm2022/services/snack-bar/snack-bar.module.mjs +22 -0
- package/esm2022/services/snack-bar/snack-bar.service.mjs +23 -0
- package/esm2022/services/ui/index.mjs +2 -0
- package/esm2022/services/ui/ng-atomic-common-services-ui.mjs +5 -0
- package/esm2022/services/ui/ui.service.mjs +199 -0
- package/esm2022/stores/component-store/component-store.mjs +2 -0
- package/{esm2020 → esm2022}/stores/component-store/index.mjs +1 -1
- package/esm2022/stores/component-store/ng-atomic-common-stores-component-store.mjs +5 -0
- package/esm2022/stores/entities/entities.store.mjs +32 -0
- package/esm2022/stores/entities/index.mjs +2 -0
- package/esm2022/stores/entities/ng-atomic-common-stores-entities.mjs +5 -0
- package/esm2022/stores/entity/entity.store.mjs +34 -0
- package/{esm2020 → esm2022}/stores/entity/index.mjs +1 -1
- package/esm2022/stores/entity/ng-atomic-common-stores-entity.mjs +5 -0
- package/{esm2020 → esm2022}/stores/pagination/index.mjs +1 -1
- package/esm2022/stores/pagination/ng-atomic-common-stores-pagination.mjs +5 -0
- package/esm2022/stores/pagination/pagination.store.mjs +23 -0
- package/{esm2020 → esm2022}/stores/query/index.mjs +1 -1
- package/esm2022/stores/query/ng-atomic-common-stores-query.mjs +5 -0
- package/esm2022/stores/query/query.store.mjs +31 -0
- package/{esm2020 → esm2022}/stores/selection/index.mjs +1 -1
- package/esm2022/stores/selection/ng-atomic-common-stores-selection.mjs +5 -0
- package/esm2022/stores/selection/selection.store.mjs +29 -0
- package/{esm2020 → esm2022}/stores/sort/index.mjs +1 -1
- package/esm2022/stores/sort/ng-atomic-common-stores-sort.mjs +5 -0
- package/esm2022/stores/sort/sort.store.mjs +27 -0
- package/esm2022/utils/comma/comma.mjs +4 -0
- package/{esm2020 → esm2022}/utils/comma/index.mjs +1 -1
- package/esm2022/utils/compare-by-id/compare-by-id.mjs +5 -0
- package/{esm2020 → esm2022}/utils/compare-by-id/index.mjs +1 -1
- package/esm2022/utils/date-utils/date-utils.mjs +13 -0
- package/{esm2020 → esm2022}/utils/date-utils/index.mjs +1 -1
- package/esm2022/utils/diff/diff.mjs +7 -0
- package/{esm2020 → esm2022}/utils/diff/index.mjs +1 -1
- package/esm2022/utils/get/get.mjs +6 -0
- package/esm2022/utils/get/index.mjs +2 -0
- package/esm2022/utils/index.mjs +11 -0
- package/esm2022/utils/mat-dayjs-date/dayjs-date.adapter.mjs +190 -0
- package/esm2022/utils/mat-dayjs-date/dayjs-date.formats.mjs +15 -0
- package/esm2022/utils/mat-dayjs-date/dayjs-date.module.mjs +41 -0
- package/esm2022/utils/mat-dayjs-date/dayjs-jp-providers.mjs +20 -0
- package/esm2022/utils/mat-dayjs-date/index.mjs +5 -0
- package/esm2022/utils/ng-atomic-common-utils.mjs +5 -0
- package/{esm2020 → esm2022}/utils/page/index.mjs +1 -1
- package/esm2022/utils/page/ng-atomic-common-utils-page.mjs +5 -0
- package/esm2022/utils/page/page.mjs +20 -0
- package/{esm2020/stores/entities → esm2022/utils/query}/index.mjs +2 -2
- package/esm2022/utils/query/query.resolver.mjs +100 -0
- package/{esm2020 → esm2022}/utils/smart-exp-transformer/index.mjs +1 -1
- package/esm2022/utils/smart-exp-transformer/smart-exp-transformer.mjs +18 -0
- package/{esm2020 → esm2022}/utils/to-object/index.mjs +1 -1
- package/esm2022/utils/to-object/to-object.mjs +10 -0
- package/fesm2022/ng-atomic-common-core.mjs +171 -0
- package/fesm2022/ng-atomic-common-core.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs +7 -7
- package/fesm2022/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs.map +1 -0
- package/fesm2022/ng-atomic-common-models.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ng-atomic-common-pipes-actions.mjs +3 -3
- package/fesm2022/ng-atomic-common-pipes-actions.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ng-atomic-common-pipes-data-accessor.mjs +5 -5
- package/fesm2022/ng-atomic-common-pipes-data-accessor.mjs.map +1 -0
- package/fesm2022/ng-atomic-common-pipes-domain.mjs +35 -0
- package/fesm2022/ng-atomic-common-pipes-domain.mjs.map +1 -0
- package/fesm2022/ng-atomic-common-pipes-error.mjs +51 -0
- package/fesm2022/ng-atomic-common-pipes-error.mjs.map +1 -0
- package/fesm2022/ng-atomic-common-pipes-grouped-by.mjs +34 -0
- package/fesm2022/ng-atomic-common-pipes-grouped-by.mjs.map +1 -0
- package/fesm2022/ng-atomic-common-pipes-keys.mjs +25 -0
- package/fesm2022/ng-atomic-common-pipes-keys.mjs.map +1 -0
- package/fesm2022/ng-atomic-common-pipes-pagination.mjs +39 -0
- package/fesm2022/ng-atomic-common-pipes-pagination.mjs.map +1 -0
- package/fesm2022/ng-atomic-common-pipes-query.mjs +33 -0
- package/fesm2022/ng-atomic-common-pipes-query.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ng-atomic-common-pipes-select-id.mjs +4 -4
- package/fesm2022/ng-atomic-common-pipes-select-id.mjs.map +1 -0
- package/fesm2022/ng-atomic-common-pipes-signal.mjs +28 -0
- package/fesm2022/ng-atomic-common-pipes-signal.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ng-atomic-common-pipes-smart-exp.mjs +8 -8
- package/fesm2022/ng-atomic-common-pipes-smart-exp.mjs.map +1 -0
- package/fesm2022/ng-atomic-common-pipes-smart-field.mjs +40 -0
- package/fesm2022/ng-atomic-common-pipes-smart-field.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ng-atomic-common-pipes-smart-sort-by.mjs +9 -9
- package/fesm2022/ng-atomic-common-pipes-smart-sort-by.mjs.map +1 -0
- package/fesm2022/ng-atomic-common-pipes-yen.mjs +27 -0
- package/fesm2022/ng-atomic-common-pipes-yen.mjs.map +1 -0
- package/fesm2022/ng-atomic-common-services-auth.mjs +43 -0
- package/fesm2022/ng-atomic-common-services-auth.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/ng-atomic-common-services-chips-manager.mjs +3 -3
- package/fesm2022/ng-atomic-common-services-chips-manager.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ng-atomic-common-services-csv.mjs +3 -3
- package/fesm2022/ng-atomic-common-services-csv.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ng-atomic-common-services-form-pagination.mjs +3 -3
- package/fesm2022/ng-atomic-common-services-form-pagination.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ng-atomic-common-services-form-sort.mjs +3 -3
- package/fesm2022/ng-atomic-common-services-form-sort.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ng-atomic-common-services-form.mjs +1 -1
- package/fesm2022/ng-atomic-common-services-form.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ng-atomic-common-services-loading.mjs +3 -3
- package/fesm2022/ng-atomic-common-services-loading.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ng-atomic-common-services-query-resolver.mjs +8 -9
- package/fesm2022/ng-atomic-common-services-query-resolver.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/ng-atomic-common-services-snack-bar.mjs +9 -9
- package/fesm2022/ng-atomic-common-services-snack-bar.mjs.map +1 -0
- package/fesm2022/ng-atomic-common-services-ui.mjs +206 -0
- package/fesm2022/ng-atomic-common-services-ui.mjs.map +1 -0
- package/fesm2022/ng-atomic-common-stores-component-store.mjs +6 -0
- package/fesm2022/ng-atomic-common-stores-component-store.mjs.map +1 -0
- package/{fesm2015 → fesm2022}/ng-atomic-common-stores-entities.mjs +6 -1
- package/fesm2022/ng-atomic-common-stores-entities.mjs.map +1 -0
- package/fesm2022/ng-atomic-common-stores-entity.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ng-atomic-common-stores-pagination.mjs +3 -3
- package/fesm2022/ng-atomic-common-stores-pagination.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ng-atomic-common-stores-query.mjs +4 -4
- package/fesm2022/ng-atomic-common-stores-query.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ng-atomic-common-stores-selection.mjs +3 -3
- package/fesm2022/ng-atomic-common-stores-selection.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ng-atomic-common-stores-sort.mjs +4 -5
- package/fesm2022/ng-atomic-common-stores-sort.mjs.map +1 -0
- package/fesm2022/ng-atomic-common-utils-page.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/ng-atomic-common-utils.mjs +33 -24
- package/fesm2022/ng-atomic-common-utils.mjs.map +1 -0
- package/fesm2022/ng-atomic-common.mjs.map +1 -0
- package/package.json +172 -181
- package/pipes/domain/domain.pipe.d.ts +1 -1
- package/pipes/domain/index.d.ts +1 -2
- package/pipes/error/error.pipe.d.ts +16 -0
- package/pipes/error/index.d.ts +1 -0
- package/pipes/grouped-by/grouped-by.pipe.d.ts +9 -0
- package/pipes/grouped-by/index.d.ts +1 -0
- package/pipes/keys/index.d.ts +1 -0
- package/pipes/keys/keys.pipe.d.ts +8 -0
- package/pipes/pagination/index.d.ts +0 -1
- package/pipes/pagination/pagination.pipe.d.ts +1 -0
- package/pipes/query/index.d.ts +1 -0
- package/pipes/query/query.pipe.d.ts +10 -0
- package/pipes/signal/index.d.ts +1 -0
- package/pipes/signal/signal.pipe.d.ts +10 -0
- package/pipes/smart-field/index.d.ts +0 -1
- package/pipes/smart-field/smart-field.pipe.d.ts +30 -9
- package/pipes/yen/index.d.ts +0 -1
- package/pipes/yen/yen.pipe.d.ts +2 -2
- package/services/auth/auth.service.d.ts +34 -0
- package/services/auth/index.d.ts +1 -0
- package/services/ui/index.d.ts +1 -0
- package/services/ui/ui.service.d.ts +54 -0
- package/stores/component-store/component-store.d.ts +1 -15
- package/stores/entities/entities.store.d.ts +6 -5
- package/stores/sort/sort.store.d.ts +0 -1
- package/utils/get/get.d.ts +5 -0
- package/utils/get/index.d.ts +1 -0
- package/utils/index.d.ts +1 -0
- package/esm2020/directives/ios-safari-scroll-buggyfill/index.mjs +0 -3
- package/esm2020/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.directive.mjs +0 -24
- package/esm2020/directives/ios-safari-scroll-buggyfill/ios-safari-scroll-buggyfill.module.mjs +0 -24
- package/esm2020/directives/ios-safari-scroll-buggyfill/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs +0 -5
- package/esm2020/index.mjs +0 -2
- package/esm2020/models/action.mjs +0 -7
- package/esm2020/models/ng-atomic-common-models.mjs +0 -5
- package/esm2020/pipes/actions/actions.pipe.mjs +0 -19
- package/esm2020/pipes/actions/ng-atomic-common-pipes-actions.mjs +0 -5
- package/esm2020/pipes/data-accessor/data-accessor.pipe.mjs +0 -30
- package/esm2020/pipes/data-accessor/ng-atomic-common-pipes-data-accessor.mjs +0 -5
- package/esm2020/pipes/domain/domain.module.mjs +0 -24
- package/esm2020/pipes/domain/domain.pipe.mjs +0 -27
- package/esm2020/pipes/domain/index.mjs +0 -3
- package/esm2020/pipes/domain/ng-atomic-common-pipes-domain.mjs +0 -5
- package/esm2020/pipes/pagination/index.mjs +0 -3
- package/esm2020/pipes/pagination/ng-atomic-common-pipes-pagination.mjs +0 -5
- package/esm2020/pipes/pagination/pagination.module.mjs +0 -20
- package/esm2020/pipes/pagination/pagination.pipe.mjs +0 -32
- package/esm2020/pipes/select-id/ng-atomic-common-pipes-select-id.mjs +0 -5
- package/esm2020/pipes/select-id/select-id.pipe.mjs +0 -29
- package/esm2020/pipes/smart-exp/index.mjs +0 -3
- package/esm2020/pipes/smart-exp/ng-atomic-common-pipes-smart-exp.mjs +0 -5
- package/esm2020/pipes/smart-exp/smart-exp.module.mjs +0 -16
- package/esm2020/pipes/smart-exp/smart-exp.pipe.mjs +0 -27
- package/esm2020/pipes/smart-field/index.mjs +0 -3
- package/esm2020/pipes/smart-field/ng-atomic-common-pipes-smart-field.mjs +0 -5
- package/esm2020/pipes/smart-field/smart-field.module.mjs +0 -24
- package/esm2020/pipes/smart-field/smart-field.pipe.mjs +0 -31
- package/esm2020/pipes/smart-sort-by/index.mjs +0 -4
- package/esm2020/pipes/smart-sort-by/ng-atomic-common-pipes-smart-sort-by.mjs +0 -5
- package/esm2020/pipes/smart-sort-by/smart-sort-by.module.mjs +0 -24
- package/esm2020/pipes/smart-sort-by/smart-sort-by.pipe.mjs +0 -28
- package/esm2020/pipes/smart-sort-by/smart-sort-by.transformer.mjs +0 -5
- package/esm2020/pipes/yen/index.mjs +0 -3
- package/esm2020/pipes/yen/ng-atomic-common-pipes-yen.mjs +0 -5
- package/esm2020/pipes/yen/yen.module.mjs +0 -24
- package/esm2020/pipes/yen/yen.pipe.mjs +0 -17
- package/esm2020/services/chips-manager/chips.manager.mjs +0 -29
- package/esm2020/services/chips-manager/ng-atomic-common-services-chips-manager.mjs +0 -5
- package/esm2020/services/csv/csv.service.mjs +0 -25
- package/esm2020/services/csv/ng-atomic-common-services-csv.mjs +0 -5
- package/esm2020/services/form/form.service.mjs +0 -38
- package/esm2020/services/form/ng-atomic-common-services-form.mjs +0 -5
- package/esm2020/services/form/pagination/ng-atomic-common-services-form-pagination.mjs +0 -5
- package/esm2020/services/form/pagination/pagination.service.mjs +0 -24
- package/esm2020/services/form/sort/ng-atomic-common-services-form-sort.mjs +0 -5
- package/esm2020/services/form/sort/sort.service.mjs +0 -33
- package/esm2020/services/loading/loading.service.mjs +0 -44
- package/esm2020/services/loading/ng-atomic-common-services-loading.mjs +0 -5
- package/esm2020/services/query-resolver/ng-atomic-common-services-query-resolver.mjs +0 -5
- package/esm2020/services/query-resolver/query-resolver.service.mjs +0 -34
- package/esm2020/services/snack-bar/index.mjs +0 -3
- package/esm2020/services/snack-bar/ng-atomic-common-services-snack-bar.mjs +0 -5
- package/esm2020/services/snack-bar/snack-bar.module.mjs +0 -22
- package/esm2020/services/snack-bar/snack-bar.service.mjs +0 -23
- package/esm2020/stores/component-store/component-store.mjs +0 -36
- package/esm2020/stores/component-store/ng-atomic-common-stores-component-store.mjs +0 -5
- package/esm2020/stores/entities/entities.store.mjs +0 -27
- package/esm2020/stores/entities/ng-atomic-common-stores-entities.mjs +0 -5
- package/esm2020/stores/entity/entity.store.mjs +0 -34
- package/esm2020/stores/entity/ng-atomic-common-stores-entity.mjs +0 -5
- package/esm2020/stores/pagination/ng-atomic-common-stores-pagination.mjs +0 -5
- package/esm2020/stores/pagination/pagination.store.mjs +0 -23
- package/esm2020/stores/query/ng-atomic-common-stores-query.mjs +0 -5
- package/esm2020/stores/query/query.store.mjs +0 -31
- package/esm2020/stores/selection/ng-atomic-common-stores-selection.mjs +0 -5
- package/esm2020/stores/selection/selection.store.mjs +0 -29
- package/esm2020/stores/sort/ng-atomic-common-stores-sort.mjs +0 -5
- package/esm2020/stores/sort/sort.store.mjs +0 -28
- package/esm2020/utils/comma/comma.mjs +0 -4
- package/esm2020/utils/compare-by-id/compare-by-id.mjs +0 -5
- package/esm2020/utils/date-utils/date-utils.mjs +0 -13
- package/esm2020/utils/diff/diff.mjs +0 -7
- package/esm2020/utils/index.mjs +0 -10
- package/esm2020/utils/mat-dayjs-date/dayjs-date.adapter.mjs +0 -191
- package/esm2020/utils/mat-dayjs-date/dayjs-date.formats.mjs +0 -15
- package/esm2020/utils/mat-dayjs-date/dayjs-date.module.mjs +0 -41
- package/esm2020/utils/mat-dayjs-date/dayjs-jp-providers.mjs +0 -20
- package/esm2020/utils/mat-dayjs-date/index.mjs +0 -5
- package/esm2020/utils/ng-atomic-common-utils.mjs +0 -5
- package/esm2020/utils/page/ng-atomic-common-utils-page.mjs +0 -5
- package/esm2020/utils/page/page.mjs +0 -20
- package/esm2020/utils/query/index.mjs +0 -2
- package/esm2020/utils/query/query.resolver.mjs +0 -97
- package/esm2020/utils/smart-exp-transformer/smart-exp-transformer.mjs +0 -18
- package/esm2020/utils/to-object/to-object.mjs +0 -10
- package/fesm2015/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-models.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-pipes-actions.mjs +0 -26
- package/fesm2015/ng-atomic-common-pipes-actions.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-pipes-data-accessor.mjs +0 -40
- package/fesm2015/ng-atomic-common-pipes-data-accessor.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-pipes-domain.mjs +0 -59
- package/fesm2015/ng-atomic-common-pipes-domain.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-pipes-pagination.mjs +0 -59
- package/fesm2015/ng-atomic-common-pipes-pagination.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-pipes-select-id.mjs +0 -39
- package/fesm2015/ng-atomic-common-pipes-select-id.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-pipes-smart-exp.mjs +0 -50
- package/fesm2015/ng-atomic-common-pipes-smart-exp.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-pipes-smart-field.mjs +0 -63
- package/fesm2015/ng-atomic-common-pipes-smart-field.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-pipes-smart-sort-by.mjs +0 -63
- package/fesm2015/ng-atomic-common-pipes-smart-sort-by.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-pipes-yen.mjs +0 -45
- package/fesm2015/ng-atomic-common-pipes-yen.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-services-chips-manager.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-services-csv.mjs +0 -32
- package/fesm2015/ng-atomic-common-services-csv.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-services-form-pagination.mjs +0 -31
- package/fesm2015/ng-atomic-common-services-form-pagination.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-services-form-sort.mjs +0 -39
- package/fesm2015/ng-atomic-common-services-form-sort.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-services-form.mjs +0 -42
- package/fesm2015/ng-atomic-common-services-form.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-services-loading.mjs +0 -54
- package/fesm2015/ng-atomic-common-services-loading.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-services-query-resolver.mjs +0 -44
- package/fesm2015/ng-atomic-common-services-query-resolver.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-services-snack-bar.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-stores-component-store.mjs +0 -44
- package/fesm2015/ng-atomic-common-stores-component-store.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-stores-entities.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-stores-entity.mjs +0 -42
- package/fesm2015/ng-atomic-common-stores-entity.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-stores-pagination.mjs +0 -30
- package/fesm2015/ng-atomic-common-stores-pagination.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-stores-query.mjs +0 -40
- package/fesm2015/ng-atomic-common-stores-query.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-stores-selection.mjs +0 -36
- package/fesm2015/ng-atomic-common-stores-selection.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-stores-sort.mjs +0 -35
- package/fesm2015/ng-atomic-common-stores-sort.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-utils-page.mjs +0 -21
- package/fesm2015/ng-atomic-common-utils-page.mjs.map +0 -1
- package/fesm2015/ng-atomic-common-utils.mjs +0 -419
- package/fesm2015/ng-atomic-common-utils.mjs.map +0 -1
- package/fesm2015/ng-atomic-common.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs +0 -52
- package/fesm2020/ng-atomic-common-directives-ios-safari-scroll-buggyfill.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-models.mjs +0 -13
- package/fesm2020/ng-atomic-common-models.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-pipes-actions.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-pipes-data-accessor.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-pipes-domain.mjs +0 -55
- package/fesm2020/ng-atomic-common-pipes-domain.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-pipes-pagination.mjs +0 -56
- package/fesm2020/ng-atomic-common-pipes-pagination.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-pipes-select-id.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-pipes-smart-exp.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-pipes-smart-field.mjs +0 -59
- package/fesm2020/ng-atomic-common-pipes-smart-field.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-pipes-smart-sort-by.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-pipes-yen.mjs +0 -45
- package/fesm2020/ng-atomic-common-pipes-yen.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-services-chips-manager.mjs +0 -36
- package/fesm2020/ng-atomic-common-services-chips-manager.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-services-csv.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-services-form-pagination.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-services-form-sort.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-services-form.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-services-loading.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-services-query-resolver.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-services-snack-bar.mjs +0 -49
- package/fesm2020/ng-atomic-common-services-snack-bar.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-stores-component-store.mjs +0 -43
- package/fesm2020/ng-atomic-common-stores-component-store.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-stores-entities.mjs +0 -34
- package/fesm2020/ng-atomic-common-stores-entities.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-stores-entity.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-stores-pagination.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-stores-query.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-stores-selection.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-stores-sort.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-utils-page.mjs.map +0 -1
- package/fesm2020/ng-atomic-common-utils.mjs.map +0 -1
- package/fesm2020/ng-atomic-common.mjs +0 -4
- package/fesm2020/ng-atomic-common.mjs.map +0 -1
- package/pipes/domain/domain.module.d.ts +0 -8
- package/pipes/pagination/pagination.module.d.ts +0 -7
- package/pipes/smart-field/smart-field.module.d.ts +0 -8
- package/pipes/yen/yen.module.d.ts +0 -8
- /package/{fesm2015 → fesm2022}/ng-atomic-common-models.mjs +0 -0
- /package/{fesm2020 → fesm2022}/ng-atomic-common-stores-entity.mjs +0 -0
- /package/{fesm2020 → fesm2022}/ng-atomic-common-utils-page.mjs +0 -0
- /package/{fesm2015 → fesm2022}/ng-atomic-common.mjs +0 -0
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { isSignal, signal, Pipe } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
function signalize(valueOrSignal) {
|
|
5
|
+
return isSignal(valueOrSignal) ? valueOrSignal : signal(valueOrSignal);
|
|
6
|
+
}
|
|
7
|
+
function resolveSignal(valueOrSignal) {
|
|
8
|
+
return isSignal(valueOrSignal) ? valueOrSignal() : valueOrSignal;
|
|
9
|
+
}
|
|
10
|
+
class SignalPipe {
|
|
11
|
+
transform(obj) {
|
|
12
|
+
return resolveSignal(obj);
|
|
13
|
+
}
|
|
14
|
+
;
|
|
15
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SignalPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
16
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SignalPipe, isStandalone: true, name: "signal", pure: false }); }
|
|
17
|
+
}
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SignalPipe, decorators: [{
|
|
19
|
+
type: Pipe,
|
|
20
|
+
args: [{ standalone: true, name: 'signal', pure: false }]
|
|
21
|
+
}] });
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Generated bundle index. Do not edit.
|
|
25
|
+
*/
|
|
26
|
+
|
|
27
|
+
export { SignalPipe, resolveSignal, signalize };
|
|
28
|
+
//# sourceMappingURL=ng-atomic-common-pipes-signal.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-atomic-common-pipes-signal.mjs","sources":["../../../../../packages/@ng-atomic/common/src/lib/pipes/signal/signal.pipe.ts","../../../../../packages/@ng-atomic/common/src/lib/pipes/signal/ng-atomic-common-pipes-signal.ts"],"sourcesContent":["import { Pipe, Signal, isSignal, signal } from '@angular/core';\n\nexport type SignalOrValue<T> = T | Signal<T>;\n\nexport function signalize<T = any>(valueOrSignal: T | Signal<T>): Signal<T> {\n return isSignal(valueOrSignal) ? valueOrSignal : signal(valueOrSignal);\n}\n\nexport function resolveSignal<T>(valueOrSignal: T | Signal<T>): T {\n return isSignal(valueOrSignal) ? valueOrSignal() : valueOrSignal;\n}\n\n@Pipe({standalone: true, name: 'signal', pure: false})\nexport class SignalPipe {\n transform<T>(obj: T | Signal<T>): T {\n return resolveSignal(obj);\n };\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;AAIM,SAAU,SAAS,CAAU,aAA4B,EAAA;AAC7D,IAAA,OAAO,QAAQ,CAAC,aAAa,CAAC,GAAG,aAAa,GAAG,MAAM,CAAC,aAAa,CAAC,CAAC;AACzE,CAAC;AAEK,SAAU,aAAa,CAAI,aAA4B,EAAA;AAC3D,IAAA,OAAO,QAAQ,CAAC,aAAa,CAAC,GAAG,aAAa,EAAE,GAAG,aAAa,CAAC;AACnE,CAAC;MAGY,UAAU,CAAA;AACrB,IAAA,SAAS,CAAI,GAAkB,EAAA;AAC7B,QAAA,OAAO,aAAa,CAAC,GAAG,CAAC,CAAC;KAC3B;;+GAHU,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;6GAAV,UAAU,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,CAAA,CAAA,EAAA;;4FAAV,UAAU,EAAA,UAAA,EAAA,CAAA;kBADtB,IAAI;mBAAC,EAAC,UAAU,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,KAAK,EAAC,CAAA;;;ACZrD;;AAEG;;;;"}
|
|
@@ -5,15 +5,15 @@ import { smartExpTransformer, SMART_EXP_TRANSFORMER } from '@ng-atomic/common/ut
|
|
|
5
5
|
class SmartExpPipe {
|
|
6
6
|
constructor(transformer) {
|
|
7
7
|
this.transformer = transformer;
|
|
8
|
-
this.transformer
|
|
8
|
+
this.transformer ??= smartExpTransformer;
|
|
9
9
|
}
|
|
10
10
|
transform(input, key) {
|
|
11
11
|
return this.transformer(input, key);
|
|
12
12
|
}
|
|
13
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", 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: "16.2.12", ngImport: i0, type: SmartExpPipe, name: "smartExp" }); }
|
|
13
15
|
}
|
|
14
|
-
|
|
15
|
-
SmartExpPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.3", ngImport: i0, type: SmartExpPipe, name: "smartExp" });
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SmartExpPipe, decorators: [{
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SmartExpPipe, decorators: [{
|
|
17
17
|
type: Pipe,
|
|
18
18
|
args: [{
|
|
19
19
|
name: 'smartExp',
|
|
@@ -27,11 +27,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
|
|
|
27
27
|
}] }]; } });
|
|
28
28
|
|
|
29
29
|
class SmartExpModule {
|
|
30
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SmartExpModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
31
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SmartExpModule, declarations: [SmartExpPipe], exports: [SmartExpPipe] }); }
|
|
32
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SmartExpModule }); }
|
|
30
33
|
}
|
|
31
|
-
|
|
32
|
-
SmartExpModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.3", ngImport: i0, type: SmartExpModule, declarations: [SmartExpPipe], exports: [SmartExpPipe] });
|
|
33
|
-
SmartExpModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SmartExpModule });
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SmartExpModule, decorators: [{
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SmartExpModule, decorators: [{
|
|
35
35
|
type: NgModule,
|
|
36
36
|
args: [{
|
|
37
37
|
declarations: [SmartExpPipe],
|
|
@@ -0,0 +1 @@
|
|
|
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 } 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 {\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,SAAA,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;6GAFhC,YAAY,EAAA,IAAA,EAAA,UAAA,EAAA,CAAA,CAAA,EAAA;;4FAAZ,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;+GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;gHAAd,cAAc,EAAA,YAAA,EAAA,CAHV,YAAY,CAAA,EAAA,OAAA,EAAA,CACjB,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;gHAEX,cAAc,EAAA,CAAA,CAAA,EAAA;;4FAAd,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;;;;"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, Pipe, Optional, Inject } from '@angular/core';
|
|
3
|
+
import get from 'lodash.get';
|
|
4
|
+
|
|
5
|
+
const FORM_FIELD_MAP = new InjectionToken('[@ng-atomic] Smart Form Field');
|
|
6
|
+
class SmartFieldPipe {
|
|
7
|
+
constructor(map) {
|
|
8
|
+
this.map = map;
|
|
9
|
+
this.map ??= {
|
|
10
|
+
createdAt: { type: 'date' },
|
|
11
|
+
updatedAt: { type: 'date' },
|
|
12
|
+
deletedAt: { type: 'date' },
|
|
13
|
+
};
|
|
14
|
+
}
|
|
15
|
+
transform(key) {
|
|
16
|
+
return get(this.map, key) ?? { type: 'input' };
|
|
17
|
+
}
|
|
18
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SmartFieldPipe, deps: [{ token: FORM_FIELD_MAP, optional: true }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
19
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SmartFieldPipe, isStandalone: true, name: "smartField" }); }
|
|
20
|
+
}
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SmartFieldPipe, decorators: [{
|
|
22
|
+
type: Pipe,
|
|
23
|
+
args: [{
|
|
24
|
+
name: 'smartField',
|
|
25
|
+
standalone: true,
|
|
26
|
+
pure: true,
|
|
27
|
+
}]
|
|
28
|
+
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
29
|
+
type: Optional
|
|
30
|
+
}, {
|
|
31
|
+
type: Inject,
|
|
32
|
+
args: [FORM_FIELD_MAP]
|
|
33
|
+
}] }]; } });
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Generated bundle index. Do not edit.
|
|
37
|
+
*/
|
|
38
|
+
|
|
39
|
+
export { FORM_FIELD_MAP, SmartFieldPipe };
|
|
40
|
+
//# sourceMappingURL=ng-atomic-common-pipes-smart-field.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-atomic-common-pipes-smart-field.mjs","sources":["../../../../../packages/@ng-atomic/common/src/lib/pipes/smart-field/smart-field.pipe.ts","../../../../../packages/@ng-atomic/common/src/lib/pipes/smart-field/ng-atomic-common-pipes-smart-field.ts"],"sourcesContent":["import { Inject, InjectionToken, Optional, Pipe, PipeTransform, Signal } from '@angular/core';\nimport { Action } from '@ng-atomic/common/models';\nimport { SignalOrValue } from '@ng-atomic/common/pipes/signal';\nimport get from 'lodash.get';\n\n\ninterface Option<T> {\n name: string;\n value: T;\n}\n\ninterface BaseField {\n placeholder?: string;\n hint?: string;\n}\n\ninterface InputField extends BaseField {\n type: 'input';\n autoComplete?: SignalOrValue<(string | number)[]>;\n}\n\ninterface TextareaField extends BaseField {\n type: 'textarea';\n rows?: number;\n}\n\ninterface DateInputField extends BaseField {\n type: 'date';\n}\n\ninterface SelectField<T> extends BaseField {\n type: 'select';\n options: Option<T>[];\n}\n\ninterface MultiSelectField<T> extends BaseField {\n type: 'multi-select';\n options: Option<T>[];\n}\n\ninterface FileField extends BaseField {\n type: 'file';\n progress?: Signal<number>;\n}\n\ninterface ActionField extends BaseField {\n type: 'action';\n actions: Action[] | Signal<Action[]>;\n disabled?: boolean;\n}\n\ninterface NoneField {\n type: 'none';\n}\n\ntype FormField<V> = InputField\n | TextareaField\n | DateInputField\n | SelectField<V>\n | MultiSelectField<V>\n | FileField\n | ActionField\n | NoneField;\n\nexport interface FormFieldMap {\n [key: string]: FormField<any> | FormFieldMap;\n}\n\nexport const FORM_FIELD_MAP = new InjectionToken<FormFieldMap>('[@ng-atomic] Smart Form Field');\n\n@Pipe({\n name: 'smartField',\n standalone: true,\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 get(this.map, key) ?? {type: 'input'};\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAoEa,cAAc,GAAG,IAAI,cAAc,CAAe,+BAA+B,EAAE;MAOnF,cAAc,CAAA;AAEzB,IAAA,WAAA,CAC8C,GAAmC,EAAA;QAAnC,IAAG,CAAA,GAAA,GAAH,GAAG,CAAgC;QAE/E,IAAI,CAAC,GAAG,KAAK;AACX,YAAA,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;AAC3B,YAAA,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;AAC3B,YAAA,SAAS,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE;SAC5B,CAAC;KACH;AAED,IAAA,SAAS,CAAC,GAAW,EAAA;AACnB,QAAA,OAAO,GAAG,CAAC,IAAI,CAAC,GAAG,EAAE,GAAG,CAAC,IAAI,EAAC,IAAI,EAAE,OAAO,EAAC,CAAC;KAC9C;AAdU,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,kBAGH,cAAc,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;6GAHzB,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,CAAA,EAAA;;4FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAL1B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,YAAY;AAClB,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,IAAI;AACX,iBAAA,CAAA;;0BAII,QAAQ;;0BAAI,MAAM;2BAAC,cAAc,CAAA;;;AC9EtC;;AAEG;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken, Pipe, Optional, Inject, NgModule } from '@angular/core';
|
|
3
3
|
import { CommonModule } from '@angular/common';
|
|
4
|
-
import { sortBy } from 'lodash';
|
|
4
|
+
import { sortBy } from 'lodash.sortby';
|
|
5
5
|
|
|
6
6
|
const smartSortByTransformer = (items, key, order) => {
|
|
7
7
|
return order === 'asc' ? sortBy(items, key) : sortBy(items, key).reverse();
|
|
@@ -11,15 +11,15 @@ const SMART_SORT_BY_TRANSFORMER = new InjectionToken('[@ng-atomic/common] Smart
|
|
|
11
11
|
class SmartSortByPipe {
|
|
12
12
|
constructor(transformer) {
|
|
13
13
|
this.transformer = transformer;
|
|
14
|
-
this.transformer
|
|
14
|
+
this.transformer ??= smartSortByTransformer;
|
|
15
15
|
}
|
|
16
16
|
transform(items, key, order = 'asc') {
|
|
17
17
|
return this.transformer(items, key, order);
|
|
18
18
|
}
|
|
19
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SmartSortByPipe, deps: [{ token: SMART_SORT_BY_TRANSFORMER, optional: true }], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
20
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SmartSortByPipe, name: "smartSortBy" }); }
|
|
19
21
|
}
|
|
20
|
-
|
|
21
|
-
SmartSortByPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.3", ngImport: i0, type: SmartSortByPipe, name: "smartSortBy" });
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SmartSortByPipe, decorators: [{
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SmartSortByPipe, decorators: [{
|
|
23
23
|
type: Pipe,
|
|
24
24
|
args: [{
|
|
25
25
|
name: 'smartSortBy',
|
|
@@ -33,11 +33,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
|
|
|
33
33
|
}] }]; } });
|
|
34
34
|
|
|
35
35
|
class SmartSortByModule {
|
|
36
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SmartSortByModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
37
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SmartSortByModule, declarations: [SmartSortByPipe], imports: [CommonModule], exports: [SmartSortByPipe] }); }
|
|
38
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SmartSortByModule, imports: [CommonModule] }); }
|
|
36
39
|
}
|
|
37
|
-
|
|
38
|
-
SmartSortByModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.3", ngImport: i0, type: SmartSortByModule, declarations: [SmartSortByPipe], imports: [CommonModule], exports: [SmartSortByPipe] });
|
|
39
|
-
SmartSortByModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SmartSortByModule, imports: [CommonModule] });
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SmartSortByModule, decorators: [{
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SmartSortByModule, decorators: [{
|
|
41
41
|
type: NgModule,
|
|
42
42
|
args: [{
|
|
43
43
|
declarations: [
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-atomic-common-pipes-smart-sort-by.mjs","sources":["../../../../../packages/@ng-atomic/common/src/lib/pipes/smart-sort-by/smart-sort-by.transformer.ts","../../../../../packages/@ng-atomic/common/src/lib/pipes/smart-sort-by/smart-sort-by.pipe.ts","../../../../../packages/@ng-atomic/common/src/lib/pipes/smart-sort-by/smart-sort-by.module.ts","../../../../../packages/@ng-atomic/common/src/lib/pipes/smart-sort-by/ng-atomic-common-pipes-smart-sort-by.ts"],"sourcesContent":["import { sortBy } from 'lodash.sortby';\n\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","import { Inject, InjectionToken, Optional, Pipe, PipeTransform } from '@angular/core';\nimport { smartSortByTransformer, SmartSortByTransformer } from './smart-sort-by.transformer';\n\nexport const SMART_SORT_BY_TRANSFORMER = new InjectionToken('[@ng-atomic/common] Smart Sort By Transformer');\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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAGa,MAAA,sBAAsB,GAA2B,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,KAAI;IAClF,OAAO,KAAK,KAAK,KAAK,GAAG,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,OAAO,EAAE,CAAC;AAC7E;;MCFa,yBAAyB,GAAG,IAAI,cAAc,CAAC,+CAA+C,EAAE;MAMhG,eAAe,CAAA;AAE1B,IAAA,WAAA,CAGU,WAAoC,EAAA;QAApC,IAAW,CAAA,WAAA,GAAX,WAAW,CAAyB;AAE5C,QAAA,IAAI,CAAC,WAAW,KAAK,sBAAsB,CAAC;KAC7C;AAED,IAAA,SAAS,CAAI,KAAU,EAAE,GAAW,EAAE,QAAwB,KAAK,EAAA;QACjE,OAAO,IAAI,CAAC,WAAW,CAAC,KAAK,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;KAC5C;AAZU,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,kBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,kBAIhB,yBAAyB,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;6GAJxB,eAAe,EAAA,IAAA,EAAA,aAAA,EAAA,CAAA,CAAA,EAAA;;4FAAf,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,IAAI,EAAE,aAAa;AACnB,oBAAA,IAAI,EAAE,IAAI;AACX,iBAAA,CAAA;;0BAII,QAAQ;;0BACR,MAAM;2BAAC,yBAAyB,CAAA;;;MCIxB,iBAAiB,CAAA;+GAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,EAT1B,YAAA,EAAA,CAAA,eAAe,CAGf,EAAA,OAAA,EAAA,CAAA,YAAY,aAGZ,eAAe,CAAA,EAAA,CAAA,CAAA,EAAA;AAGN,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,YAN1B,YAAY,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAMH,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAX7B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE;wBACZ,eAAe;AAChB,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,YAAY;AACb,qBAAA;AACD,oBAAA,OAAO,EAAE;wBACP,eAAe;AAChB,qBAAA;AACF,iBAAA,CAAA;;;AChBD;;AAEG;;;;"}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Pipe } from '@angular/core';
|
|
3
|
+
import { yenTransform } from '@ng-atomic/common/utils';
|
|
4
|
+
|
|
5
|
+
class YenPipe {
|
|
6
|
+
transform(value, _unit) {
|
|
7
|
+
if (value === null || typeof value === 'undefined')
|
|
8
|
+
return '';
|
|
9
|
+
return yenTransform(value, _unit);
|
|
10
|
+
}
|
|
11
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: YenPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe }); }
|
|
12
|
+
static { this.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: YenPipe, isStandalone: true, name: "yen" }); }
|
|
13
|
+
}
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: YenPipe, decorators: [{
|
|
15
|
+
type: Pipe,
|
|
16
|
+
args: [{
|
|
17
|
+
standalone: true,
|
|
18
|
+
name: 'yen'
|
|
19
|
+
}]
|
|
20
|
+
}] });
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Generated bundle index. Do not edit.
|
|
24
|
+
*/
|
|
25
|
+
|
|
26
|
+
export { YenPipe };
|
|
27
|
+
//# sourceMappingURL=ng-atomic-common-pipes-yen.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-atomic-common-pipes-yen.mjs","sources":["../../../../../packages/@ng-atomic/common/src/lib/pipes/yen/yen.pipe.ts","../../../../../packages/@ng-atomic/common/src/lib/pipes/yen/ng-atomic-common-pipes-yen.ts"],"sourcesContent":["import { Pipe, PipeTransform } from '@angular/core';\nimport { yenTransform } from '@ng-atomic/common/utils';\n\n@Pipe({\n standalone: true,\n name: 'yen'\n})\nexport class YenPipe implements PipeTransform {\n\n transform(value?: number | null, _unit?: string): string {\n if (value === null || typeof value === 'undefined') return '';\n return yenTransform(value, _unit);\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAOa,OAAO,CAAA;IAElB,SAAS,CAAC,KAAqB,EAAE,KAAc,EAAA;AAC7C,QAAA,IAAI,KAAK,KAAK,IAAI,IAAI,OAAO,KAAK,KAAK,WAAW;AAAE,YAAA,OAAO,EAAE,CAAC;AAC9D,QAAA,OAAO,YAAY,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;KACnC;+GALU,OAAO,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,IAAA,EAAA,CAAA,CAAA,EAAA;6GAAP,OAAO,EAAA,YAAA,EAAA,IAAA,EAAA,IAAA,EAAA,KAAA,EAAA,CAAA,CAAA,EAAA;;4FAAP,OAAO,EAAA,UAAA,EAAA,CAAA;kBAJnB,IAAI;AAAC,YAAA,IAAA,EAAA,CAAA;AACJ,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE,KAAK;AACZ,iBAAA,CAAA;;;ACND;;AAEG;;;;"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Injectable } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/fire/auth';
|
|
4
|
+
import { authState, signInWithPopup, signOut } from '@angular/fire/auth';
|
|
5
|
+
import { TwitterAuthProvider, GoogleAuthProvider } from 'firebase/auth';
|
|
6
|
+
|
|
7
|
+
class AuthService {
|
|
8
|
+
constructor(auth) {
|
|
9
|
+
this.auth = auth;
|
|
10
|
+
this.auth$ = authState(this.auth);
|
|
11
|
+
}
|
|
12
|
+
signInWithTwitter() {
|
|
13
|
+
const provider = new TwitterAuthProvider();
|
|
14
|
+
return signInWithPopup(this.auth, provider).then((credential) => {
|
|
15
|
+
const twitter = {
|
|
16
|
+
token: credential._tokenResponse.oauthAccessToken,
|
|
17
|
+
secret: credential._tokenResponse.oauthTokenSecret,
|
|
18
|
+
};
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
signInWithGoogle() {
|
|
22
|
+
const provider = new GoogleAuthProvider();
|
|
23
|
+
return signInWithPopup(this.auth, provider);
|
|
24
|
+
}
|
|
25
|
+
signOut() {
|
|
26
|
+
return signOut(this.auth);
|
|
27
|
+
}
|
|
28
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthService, deps: [{ token: i1.Auth }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
29
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthService, providedIn: 'root' }); }
|
|
30
|
+
}
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: AuthService, decorators: [{
|
|
32
|
+
type: Injectable,
|
|
33
|
+
args: [{
|
|
34
|
+
providedIn: 'root'
|
|
35
|
+
}]
|
|
36
|
+
}], ctorParameters: function () { return [{ type: i1.Auth }]; } });
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Generated bundle index. Do not edit.
|
|
40
|
+
*/
|
|
41
|
+
|
|
42
|
+
export { AuthService };
|
|
43
|
+
//# sourceMappingURL=ng-atomic-common-services-auth.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-atomic-common-services-auth.mjs","sources":["../../../../../packages/@ng-atomic/common/src/lib/services/auth/auth.service.ts","../../../../../packages/@ng-atomic/common/src/lib/services/auth/ng-atomic-common-services-auth.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { Auth, authState, signInWithPopup, signOut } from '@angular/fire/auth';\nimport { GoogleAuthProvider, TwitterAuthProvider, UserCredential } from 'firebase/auth';\n\nexport interface TwitterCredential {\n _tokenResponse: {\n context: string;\n displayName: string;\n email: string;\n emailVerified: boolean;\n expiresIn: string;\n federatedId: string;\n fullName: string;\n idToken: string;\n kind: 'identitytoolkit#VerifyAssertionResponse';\n localId: string;\n oauthAccessToken: string;\n oauthTokenSecret: string;\n photoUrl: string;\n providerId: 'twitter.com';\n rawUserInfo: string;\n refreshToken: string;\n screenName: string;\n }\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AuthService {\n\n auth$ = authState(this.auth);\n\n constructor(private auth: Auth) { }\n\n signInWithTwitter() {\n const provider = new TwitterAuthProvider();\n return signInWithPopup(this.auth, provider).then((credential: UserCredential & TwitterCredential) => {\n const twitter = {\n token: credential._tokenResponse.oauthAccessToken,\n secret: credential._tokenResponse.oauthTokenSecret,\n };\n });\n }\n\n signInWithGoogle() {\n const provider = new GoogleAuthProvider();\n return signInWithPopup(this.auth, provider);\n }\n\n signOut() {\n return signOut(this.auth);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MA6Ba,WAAW,CAAA;AAItB,IAAA,WAAA,CAAoB,IAAU,EAAA;QAAV,IAAI,CAAA,IAAA,GAAJ,IAAI,CAAM;AAF9B,QAAA,IAAA,CAAA,KAAK,GAAG,SAAS,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAEM;IAEnC,iBAAiB,GAAA;AACf,QAAA,MAAM,QAAQ,GAAG,IAAI,mBAAmB,EAAE,CAAC;AAC3C,QAAA,OAAO,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC,IAAI,CAAC,CAAC,UAA8C,KAAI;AAClG,YAAA,MAAM,OAAO,GAAG;AACd,gBAAA,KAAK,EAAE,UAAU,CAAC,cAAc,CAAC,gBAAgB;AACjD,gBAAA,MAAM,EAAE,UAAU,CAAC,cAAc,CAAC,gBAAgB;aACnD,CAAC;AACJ,SAAC,CAAC,CAAC;KACJ;IAED,gBAAgB,GAAA;AACd,QAAA,MAAM,QAAQ,GAAG,IAAI,kBAAkB,EAAE,CAAC;QAC1C,OAAO,eAAe,CAAC,IAAI,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;KAC7C;IAED,OAAO,GAAA;AACL,QAAA,OAAO,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;KAC3B;+GAvBU,WAAW,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAAX,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAW,cAFV,MAAM,EAAA,CAAA,CAAA,EAAA;;4FAEP,WAAW,EAAA,UAAA,EAAA,CAAA;kBAHvB,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
|
|
@@ -21,10 +21,10 @@ class ChipsManager {
|
|
|
21
21
|
get chips() {
|
|
22
22
|
return this._chips;
|
|
23
23
|
}
|
|
24
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipsManager, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
25
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipsManager }); }
|
|
24
26
|
}
|
|
25
|
-
|
|
26
|
-
ChipsManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ChipsManager });
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: ChipsManager, decorators: [{
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: ChipsManager, decorators: [{
|
|
28
28
|
type: Injectable
|
|
29
29
|
}] });
|
|
30
30
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-atomic-common-services-chips-manager.mjs","sources":["../../../../../packages/@ng-atomic/common/src/lib/services/chips-manager/chips.manager.ts","../../../../../packages/@ng-atomic/common/src/lib/services/chips-manager/ng-atomic-common-services-chips-manager.ts"],"sourcesContent":["import { Injectable } from \"@angular/core\";\n\n@Injectable()\nexport class ChipsManager {\n private _chips: string[] = [];\n\n setValue(value: string): void {\n this._chips = value.split(' ').filter(chip => !!chip);\n }\n\n getValue(): string {\n return this._chips.join(' ');\n }\n\n remove(value: string): void {\n this._chips = this.chips.filter(chip => chip !== value);\n }\n\n add(chip: string): void {\n const value = (chip || '').trim();\n this._chips = [...this.chips, value];\n }\n\n get chips(): string[] {\n return this._chips;\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;MAGa,YAAY,CAAA;AADzB,IAAA,WAAA,GAAA;QAEU,IAAM,CAAA,MAAA,GAAa,EAAE,CAAC;AAsB/B,KAAA;AApBC,IAAA,QAAQ,CAAC,KAAa,EAAA;QACpB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC;KACvD;IAED,QAAQ,GAAA;QACN,OAAO,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;KAC9B;AAED,IAAA,MAAM,CAAC,KAAa,EAAA;AAClB,QAAA,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,IAAI,IAAI,KAAK,KAAK,CAAC,CAAC;KACzD;AAED,IAAA,GAAG,CAAC,IAAY,EAAA;QACd,MAAM,KAAK,GAAG,CAAC,IAAI,IAAI,EAAE,EAAE,IAAI,EAAE,CAAC;QAClC,IAAI,CAAC,MAAM,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;KACtC;AAED,IAAA,IAAI,KAAK,GAAA;QACP,OAAO,IAAI,CAAC,MAAM,CAAC;KACpB;+GAtBU,YAAY,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;mHAAZ,YAAY,EAAA,CAAA,CAAA,EAAA;;4FAAZ,YAAY,EAAA,UAAA,EAAA,CAAA;kBADxB,UAAU;;;ACFX;;AAEG;;;;"}
|
|
@@ -14,10 +14,10 @@ class CsvService {
|
|
|
14
14
|
element.click();
|
|
15
15
|
document.body.removeChild(element);
|
|
16
16
|
}
|
|
17
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CsvService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
18
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CsvService, providedIn: 'root' }); }
|
|
17
19
|
}
|
|
18
|
-
|
|
19
|
-
CsvService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: CsvService, providedIn: 'root' });
|
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: CsvService, decorators: [{
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: CsvService, decorators: [{
|
|
21
21
|
type: Injectable,
|
|
22
22
|
args: [{
|
|
23
23
|
providedIn: 'root'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-atomic-common-services-csv.mjs","sources":["../../../../../packages/@ng-atomic/common/src/lib/services/csv/csv.service.ts","../../../../../packages/@ng-atomic/common/src/lib/services/csv/ng-atomic-common-services-csv.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { unparse } from 'papaparse';\nimport dayjs from 'dayjs';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class CsvService {\n downloadArrayAsCsv(array: Record<string, string>[], fileName: string = `${dayjs().format()}.csv`) {\n const UTF_8_BOM = '%EF%BB%BF';\n const data = 'data:text/csv;charset=utf-8,' + UTF_8_BOM + encodeURIComponent(unparse(array));\n const element = document.createElement('a');\n element.href = data;\n element.setAttribute('download', fileName);\n document.body.appendChild(element);\n element.click();\n document.body.removeChild(element);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAOa,UAAU,CAAA;IACrB,kBAAkB,CAAC,KAA+B,EAAE,QAAmB,GAAA,CAAA,EAAG,KAAK,EAAE,CAAC,MAAM,EAAE,CAAM,IAAA,CAAA,EAAA;QAC9F,MAAM,SAAS,GAAG,WAAW,CAAC;AAC9B,QAAA,MAAM,IAAI,GAAG,8BAA8B,GAAG,SAAS,GAAG,kBAAkB,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;QAC7F,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC;AAC5C,QAAA,OAAO,CAAC,IAAI,GAAG,IAAI,CAAC;AACpB,QAAA,OAAO,CAAC,YAAY,CAAC,UAAU,EAAE,QAAQ,CAAC,CAAC;AAC3C,QAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QACnC,OAAO,CAAC,KAAK,EAAE,CAAC;AAChB,QAAA,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;KACpC;+GAVU,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAAV,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAU,cAFT,MAAM,EAAA,CAAA,CAAA,EAAA;;4FAEP,UAAU,EAAA,UAAA,EAAA,CAAA;kBAHtB,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;ACND;;AAEG;;;;"}
|
|
@@ -13,10 +13,10 @@ class PaginationService {
|
|
|
13
13
|
length: [length],
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PaginationService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
17
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PaginationService, providedIn: 'root' }); }
|
|
16
18
|
}
|
|
17
|
-
|
|
18
|
-
PaginationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: PaginationService, providedIn: 'root' });
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: PaginationService, decorators: [{
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: PaginationService, decorators: [{
|
|
20
20
|
type: Injectable,
|
|
21
21
|
args: [{
|
|
22
22
|
providedIn: 'root'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-atomic-common-services-form-pagination.mjs","sources":["../../../../../packages/@ng-atomic/common/src/lib/services/form/pagination/pagination.service.ts","../../../../../packages/@ng-atomic/common/src/lib/services/form/pagination/ng-atomic-common-services-form-pagination.ts"],"sourcesContent":["import { Injectable, inject } from '@angular/core';\nimport { FormBuilder } from '@angular/forms';\n\nexport interface PaginationFormValue {\n pageSize: number,\n pageIndex: number,\n length: number,\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class PaginationService {\n private fb = inject(FormBuilder);\n\n build({\n pageSize = 50,\n pageIndex = 0,\n length = 0,\n }: Partial<PaginationFormValue> = {}) {\n return this.fb.group({\n pageSize: [pageSize],\n pageIndex: [pageIndex],\n length: [length],\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAYa,iBAAiB,CAAA;AAH9B,IAAA,WAAA,GAAA;AAIU,QAAA,IAAA,CAAA,EAAE,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;AAalC,KAAA;AAXC,IAAA,KAAK,CAAC,EACJ,QAAQ,GAAG,EAAE,EACb,SAAS,GAAG,CAAC,EACb,MAAM,GAAG,CAAC,MACsB,EAAE,EAAA;AAClC,QAAA,OAAO,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;YACnB,QAAQ,EAAE,CAAC,QAAQ,CAAC;YACpB,SAAS,EAAE,CAAC,SAAS,CAAC;YACtB,MAAM,EAAE,CAAC,MAAM,CAAC;AACjB,SAAA,CAAC,CAAC;KACJ;+GAbU,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAAjB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,iBAAiB,cAFhB,MAAM,EAAA,CAAA,CAAA,EAAA;;4FAEP,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAH7B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;ACXD;;AAEG;;;;"}
|
|
@@ -21,10 +21,10 @@ class SortService {
|
|
|
21
21
|
form.get('key').setValue(name);
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SortService, deps: [{ token: i1.FormBuilder }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
25
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SortService, providedIn: 'root' }); }
|
|
24
26
|
}
|
|
25
|
-
|
|
26
|
-
SortService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SortService, providedIn: 'root' });
|
|
27
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SortService, decorators: [{
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SortService, decorators: [{
|
|
28
28
|
type: Injectable,
|
|
29
29
|
args: [{
|
|
30
30
|
providedIn: 'root'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-atomic-common-services-form-sort.mjs","sources":["../../../../../packages/@ng-atomic/common/src/lib/services/form/sort/sort.service.ts","../../../../../packages/@ng-atomic/common/src/lib/services/form/sort/ng-atomic-common-services-form-sort.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { FormBuilder, FormControl, FormGroup, Validators } from '@angular/forms';\n\nexport interface SortFormValue {\n key?: string,\n order?: 'asc' | 'desc',\n}\n\n@Injectable({\n providedIn: 'root'\n})\nexport class SortService {\n\n constructor(private fb: FormBuilder) { }\n\n build({key= null, order = 'asc'}: Partial<SortFormValue> = {}) {\n return this.fb.group({\n key: [key],\n order: [order as 'asc' | 'desc'],\n });\n }\n\n toggle(form: ReturnType<typeof this.build>, name: string) {\n if (form.get('key').value === name) {\n form.get('order').setValue(form.get('order').value === 'asc' ? 'desc' : 'asc');\n } else {\n form.get('order').setValue('asc');\n form.get('key').setValue(name);\n }\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAWa,WAAW,CAAA;AAEtB,IAAA,WAAA,CAAoB,EAAe,EAAA;QAAf,IAAE,CAAA,EAAA,GAAF,EAAE,CAAa;KAAK;IAExC,KAAK,CAAC,EAAC,GAAG,GAAE,IAAI,EAAE,KAAK,GAAG,KAAK,EAAA,GAA4B,EAAE,EAAA;AAC3D,QAAA,OAAO,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC;YACnB,GAAG,EAAE,CAAC,GAAG,CAAC;YACV,KAAK,EAAE,CAAC,KAAuB,CAAC;AACjC,SAAA,CAAC,CAAC;KACJ;IAED,MAAM,CAAC,IAAmC,EAAE,IAAY,EAAA;QACtD,IAAI,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,KAAK,KAAK,IAAI,EAAE;YAClC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,KAAK,KAAK,KAAK,GAAG,MAAM,GAAG,KAAK,CAAC,CAAC;AAChF,SAAA;AAAM,aAAA;YACL,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;YAClC,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AAChC,SAAA;KACF;+GAlBU,WAAW,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,WAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAAX,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,WAAW,cAFV,MAAM,EAAA,CAAA,CAAA,EAAA;;4FAEP,WAAW,EAAA,UAAA,EAAA,CAAA;kBAHvB,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isIsoString, toObject } from '@ng-atomic/common/utils';
|
|
2
2
|
import dayjs from 'dayjs';
|
|
3
3
|
import { unflatten, flatten } from 'flat';
|
|
4
|
-
import { omit, pick } from 'lodash';
|
|
4
|
+
import { omit, pick } from 'lodash-es';
|
|
5
5
|
|
|
6
6
|
const isNumeric = (v) => !isNaN(Number(v));
|
|
7
7
|
const parseQueryString = (v, key) => key.match(/id$/i)
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-atomic-common-services-form.mjs","sources":["../../../../../packages/@ng-atomic/common/src/lib/services/form/form.service.ts","../../../../../packages/@ng-atomic/common/src/lib/services/form/ng-atomic-common-services-form.ts"],"sourcesContent":["import { toObject, isIsoString } from '@ng-atomic/common/utils';\nimport dayjs from 'dayjs';\nimport { unflatten, flatten } from 'flat';\nimport { omit, pick } from 'lodash-es';\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}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAKA,MAAM,SAAS,GAAG,CAAC,CAAS,KAAc,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;AAE5D,MAAM,gBAAgB,GAAG,CAAC,CAAS,EAAE,GAAW,KAAU,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC;AACzE,MAAE,CAAC;MACD,OAAO,CAAC,KAAK,QAAQ,IAAI,WAAW,CAAC,CAAC,CAAC;AACzC,UAAE,KAAK,CAAC,CAAC,CAAC;UACR,CAAC,KAAK,EAAE;AACV,cAAE,CAAC;AACH,cAAE,SAAS,CAAC,CAAC,CAAC;AACd,kBAAE,MAAM,CAAC,CAAC,CAAC;kBACT,CAAC,CAAC;MAEO,eAAe,CAAA;IAC1B,OAAO,eAAe,CAAI,GAAM,EAAA;QAC9B,OAAO,MAAM,CAAC,OAAO,CAAE,SAAS,CAAC,GAAG,CAAS,EAAE,IAAI,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAmB,MAAM;YAClG,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,gBAAgB,CAAC,CAAC,EAAE,CAAC,CAAC;SAClC,CAAC,EAAE,EAAE,CAAC,CAAC;KACT;IAED,OAAO,aAAa,CAAI,GAAW,EAAA;QACjC,OAAO,OAAO,CAAC,EAAC,IAAI,EAAE,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,MAAM;AAC/D,gBAAA,GAAG,CAAC,EAAE,CAAC,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,GAAG,CAAC;AACvE,aAAA,CAAC,EAAE,EAAE,CAAC,EAAC,CAAC,CAAC;KACX;IAED,OAAO,SAAS,CAAC,MAAc,EAAA;AAC7B,QAAA,OAAO,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;KACpF;IAED,OAAO,OAAO,CAAC,MAAc,EAAA;QAC3B,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;QACpC,OAAO,EAAC,GAAG,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,EAAC,CAAC;KACpF;IAED,OAAO,SAAS,CAAC,KAAa,EAAA;QAC5B,MAAM,IAAI,GAAG,IAAI,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC;QACnC,OAAO,EAAC,GAAG,SAAS,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CAAC,EAAE,GAAG,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,EAAC,CAAC;KAChE;AACF;;AC3CD;;AAEG;;;;"}
|
|
@@ -30,10 +30,10 @@ class LoadingService {
|
|
|
30
30
|
this.removeKey(key);
|
|
31
31
|
return res;
|
|
32
32
|
}
|
|
33
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoadingService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
34
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoadingService, providedIn: 'root' }); }
|
|
33
35
|
}
|
|
34
|
-
|
|
35
|
-
LoadingService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: LoadingService, providedIn: 'root' });
|
|
36
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: LoadingService, decorators: [{
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: LoadingService, decorators: [{
|
|
37
37
|
type: Injectable,
|
|
38
38
|
args: [{
|
|
39
39
|
providedIn: 'root',
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-atomic-common-services-loading.mjs","sources":["../../../../../packages/@ng-atomic/common/src/lib/services/loading/loading.service.ts","../../../../../packages/@ng-atomic/common/src/lib/services/loading/ng-atomic-common-services-loading.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { Subject } from 'rxjs';\nimport { scan, map, distinctUntilChanged, delay, tap, shareReplay } from 'rxjs/operators';\n\ntype LoadingMap = Map<string, boolean>;\n\n@Injectable({\n providedIn: 'root',\n})\nexport class LoadingService {\n private loadingEntries$ = new Subject<[string, boolean]>();\n\n loadingMap: LoadingMap = new Map();\n loadingMap$ = this.loadingEntries$.pipe(\n scan((map, [key, value]) => map.set(key, value), new Map()),\n map((map: LoadingMap) => new Map([...map.entries()].filter(([_, v]: [string, boolean]) => v))),\n tap(m => console.debug('m:', m)),\n distinctUntilChanged((pre, cur) => JSON.stringify([...pre.entries()]) === JSON.stringify([...cur.entries()])),\n shareReplay(1),\n );\n\n isLoading$ = this.loadingMap$.pipe(\n map((map) => !![...map.keys()].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 start(callback: (done: any) => void, key: string = randomStr(16)) {\n this.setKey(key);\n callback(() => this.removeKey(key));\n }\n\n async await<T = any>(callback: (...args: any[]) => Promise<T>): Promise<T> {\n const key = randomStr(16);\n this.setKey(key);\n const res = await callback();\n this.removeKey(key);\n return res;\n }\n}\n\nexport function randomStr(n: number = 16): string {\n return Math.random().toString(36).substr(2, n);\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MASa,cAAc,CAAA;AAiBzB,IAAA,WAAA,GAAA;AAhBQ,QAAA,IAAA,CAAA,eAAe,GAAG,IAAI,OAAO,EAAqB,CAAC;AAE3D,QAAA,IAAA,CAAA,UAAU,GAAe,IAAI,GAAG,EAAE,CAAC;AACnC,QAAA,IAAA,CAAA,WAAW,GAAG,IAAI,CAAC,eAAe,CAAC,IAAI,CACrC,IAAI,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,EAAE,KAAK,CAAC,KAAK,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,KAAK,CAAC,EAAE,IAAI,GAAG,EAAE,CAAC,EAC3D,GAAG,CAAC,CAAC,GAAe,KAAK,IAAI,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAoB,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9F,GAAG,CAAC,CAAC,IAAI,OAAO,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,EAChC,oBAAoB,CAAC,CAAC,GAAG,EAAE,GAAG,KAAK,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,KAAK,IAAI,CAAC,SAAS,CAAC,CAAC,GAAG,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC,EAC7G,WAAW,CAAC,CAAC,CAAC,CACf,CAAC;AAEF,QAAA,IAAA,CAAA,UAAU,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAChC,GAAG,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC,CAAC,MAAM,CAAC,EACtC,KAAK,CAAC,CAAC,CAAC,CACT,CAAC;QAGA,IAAI,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,KAAI;AAC/B,YAAA,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;AACtB,SAAC,CAAC,CAAC;KACJ;AAED,IAAA,MAAM,CAAC,GAAW,EAAA;QAChB,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC;KACxC;AAED,IAAA,SAAS,CAAC,GAAW,EAAA;QACnB,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;KACzC;AAED,IAAA,KAAK,CAAC,QAA6B,EAAE,MAAc,SAAS,CAAC,EAAE,CAAC,EAAA;AAC9D,QAAA,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;QACjB,QAAQ,CAAC,MAAM,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;KACrC;IAED,MAAM,KAAK,CAAU,QAAwC,EAAA;AAC3D,QAAA,MAAM,GAAG,GAAG,SAAS,CAAC,EAAE,CAAC,CAAC;AAC1B,QAAA,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AACjB,QAAA,MAAM,GAAG,GAAG,MAAM,QAAQ,EAAE,CAAC;AAC7B,QAAA,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;AACpB,QAAA,OAAO,GAAG,CAAC;KACZ;+GA1CU,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAAd,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,cAFb,MAAM,EAAA,CAAA,CAAA,EAAA;;4FAEP,cAAc,EAAA,UAAA,EAAA,CAAA;kBAH1B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;AA8Ce,SAAA,SAAS,CAAC,CAAA,GAAY,EAAE,EAAA;AACtC,IAAA,OAAO,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACjD;;ACxDA;;AAEG;;;;"}
|
|
@@ -7,20 +7,19 @@ class QueryResolverService {
|
|
|
7
7
|
constructor(transformer, map) {
|
|
8
8
|
this.transformer = transformer;
|
|
9
9
|
this.map = map;
|
|
10
|
-
this.transformer
|
|
11
|
-
this.map
|
|
10
|
+
this.transformer ??= smartExpTransformer;
|
|
11
|
+
this.map ??= {};
|
|
12
12
|
}
|
|
13
13
|
resolve(items, query, map = this.map) {
|
|
14
|
-
|
|
14
|
+
const filtered = filterByQuery(items, query, map, this.transformer);
|
|
15
|
+
return filtered;
|
|
15
16
|
}
|
|
17
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: QueryResolverService, deps: [{ token: SMART_EXP_TRANSFORMER, optional: true }, { token: DOMAIN_LANG_MAP, optional: true }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
18
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: QueryResolverService, providedIn: 'any' }); }
|
|
16
19
|
}
|
|
17
|
-
|
|
18
|
-
QueryResolverService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: QueryResolverService, providedIn: 'root' });
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: QueryResolverService, decorators: [{
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: QueryResolverService, decorators: [{
|
|
20
21
|
type: Injectable,
|
|
21
|
-
args: [{
|
|
22
|
-
providedIn: 'root'
|
|
23
|
-
}]
|
|
22
|
+
args: [{ providedIn: 'any' }]
|
|
24
23
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
25
24
|
type: Optional
|
|
26
25
|
}, {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-atomic-common-services-query-resolver.mjs","sources":["../../../../../packages/@ng-atomic/common/src/lib/services/query-resolver/query-resolver.service.ts","../../../../../packages/@ng-atomic/common/src/lib/services/query-resolver/ng-atomic-common-services-query-resolver.ts"],"sourcesContent":["import { Inject, Injectable, Optional } from \"@angular/core\";\nimport { DOMAIN_LANG_MAP } from \"@ng-atomic/common/pipes/domain\";\nimport { filterByQuery, SmartExpTransformer, smartExpTransformer, SMART_EXP_TRANSFORMER } from '@ng-atomic/common/utils';\n\n\n@Injectable({ providedIn: 'any' })\nexport class QueryResolverService {\n constructor(\n @Optional() @Inject(SMART_EXP_TRANSFORMER) private transformer?: SmartExpTransformer,\n @Optional() @Inject(DOMAIN_LANG_MAP) private map?: Record<string, string>,\n ) {\n this.transformer ??= smartExpTransformer;\n this.map ??= {};\n }\n\n resolve<T>(items: T[], query: string, map: Record<string, string> = this.map): T[] {\n const filtered = filterByQuery(items, query, map, this.transformer);\n return filtered;\n }\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAMa,oBAAoB,CAAA;IAC/B,WACqD,CAAA,WAAiC,EACvC,GAA4B,EAAA;QADtB,IAAW,CAAA,WAAA,GAAX,WAAW,CAAsB;QACvC,IAAG,CAAA,GAAA,GAAH,GAAG,CAAyB;AAEzE,QAAA,IAAI,CAAC,WAAW,KAAK,mBAAmB,CAAC;AACzC,QAAA,IAAI,CAAC,GAAG,KAAK,EAAE,CAAC;KACjB;IAED,OAAO,CAAI,KAAU,EAAE,KAAa,EAAE,GAA8B,GAAA,IAAI,CAAC,GAAG,EAAA;AAC1E,QAAA,MAAM,QAAQ,GAAG,aAAa,CAAC,KAAK,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;AACpE,QAAA,OAAO,QAAQ,CAAC;KACjB;+GAZU,oBAAoB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAET,qBAAqB,EAAA,QAAA,EAAA,IAAA,EAAA,EAAA,EAAA,KAAA,EACrB,eAAe,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAH1B,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,cADP,KAAK,EAAA,CAAA,CAAA,EAAA;;4FAClB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC,UAAU;mBAAC,EAAE,UAAU,EAAE,KAAK,EAAE,CAAA;;0BAG5B,QAAQ;;0BAAI,MAAM;2BAAC,qBAAqB,CAAA;;0BACxC,QAAQ;;0BAAI,MAAM;2BAAC,eAAe,CAAA;;;ACTvC;;AAEG;;;;"}
|
|
@@ -13,10 +13,10 @@ class SnackBarService {
|
|
|
13
13
|
duration: 2000,
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SnackBarService, deps: [{ token: i1.MatSnackBar }], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
17
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SnackBarService, providedIn: 'root' }); }
|
|
16
18
|
}
|
|
17
|
-
|
|
18
|
-
SnackBarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SnackBarService, providedIn: 'root' });
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SnackBarService, decorators: [{
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SnackBarService, decorators: [{
|
|
20
20
|
type: Injectable,
|
|
21
21
|
args: [{
|
|
22
22
|
providedIn: 'root'
|
|
@@ -24,13 +24,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImpor
|
|
|
24
24
|
}], ctorParameters: function () { return [{ type: i1.MatSnackBar }]; } });
|
|
25
25
|
|
|
26
26
|
class SnackBarModule {
|
|
27
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SnackBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
28
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.2.12", ngImport: i0, type: SnackBarModule, imports: [CommonModule,
|
|
29
|
+
MatSnackBarModule] }); }
|
|
30
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SnackBarModule, imports: [CommonModule,
|
|
31
|
+
MatSnackBarModule] }); }
|
|
27
32
|
}
|
|
28
|
-
|
|
29
|
-
SnackBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.3", ngImport: i0, type: SnackBarModule, imports: [CommonModule,
|
|
30
|
-
MatSnackBarModule] });
|
|
31
|
-
SnackBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SnackBarModule, imports: [CommonModule,
|
|
32
|
-
MatSnackBarModule] });
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SnackBarModule, decorators: [{
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.2.12", ngImport: i0, type: SnackBarModule, decorators: [{
|
|
34
34
|
type: NgModule,
|
|
35
35
|
args: [{
|
|
36
36
|
declarations: [],
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ng-atomic-common-services-snack-bar.mjs","sources":["../../../../../packages/@ng-atomic/common/src/lib/services/snack-bar/snack-bar.service.ts","../../../../../packages/@ng-atomic/common/src/lib/services/snack-bar/snack-bar.module.ts","../../../../../packages/@ng-atomic/common/src/lib/services/snack-bar/ng-atomic-common-services-snack-bar.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { MatSnackBar } from '@angular/material/snack-bar';\n\n\n@Injectable({\n providedIn: 'root'\n})\nexport class SnackBarService {\n\n constructor(private snackBar: MatSnackBar) {}\n\n openSnackBar(message: string, action?: string) {\n this.snackBar.open(message, action, {\n duration: 2000,\n });\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\n\nimport { MatSnackBarModule } from '@angular/material/snack-bar';\n\n@NgModule({\n declarations: [],\n imports: [\n CommonModule,\n MatSnackBarModule\n ]\n})\nexport class SnackBarModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;MAOa,eAAe,CAAA;AAE1B,IAAA,WAAA,CAAoB,QAAqB,EAAA;QAArB,IAAQ,CAAA,QAAA,GAAR,QAAQ,CAAa;KAAI;IAE7C,YAAY,CAAC,OAAe,EAAE,MAAe,EAAA;QAC3C,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,EAAE;AAClC,YAAA,QAAQ,EAAE,IAAI;AACf,SAAA,CAAC,CAAC;KACJ;+GARU,eAAe,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,WAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA,EAAA;AAAf,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,eAAe,cAFd,MAAM,EAAA,CAAA,CAAA,EAAA;;4FAEP,eAAe,EAAA,UAAA,EAAA,CAAA;kBAH3B,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE,MAAM;AACnB,iBAAA,CAAA;;;MCMY,cAAc,CAAA;+GAAd,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA,EAAA;AAAd,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAJvB,YAAY;YACZ,iBAAiB,CAAA,EAAA,CAAA,CAAA,EAAA;AAGR,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,cAAc,YAJvB,YAAY;YACZ,iBAAiB,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAGR,cAAc,EAAA,UAAA,EAAA,CAAA;kBAP1B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,EAAE;AAChB,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,iBAAiB;AAClB,qBAAA;AACF,iBAAA,CAAA;;;ACXD;;AAEG;;;;"}
|