@abp/ng.theme.shared 7.2.2 → 7.3.0-rc.2
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/README.md +129 -2
- package/{esm2020 → esm2022}/abp-ng.theme.shared.mjs +4 -4
- package/{esm2020 → esm2022}/extensions/abp-ng.theme.shared-extensions.mjs +4 -4
- package/esm2022/extensions/lib/adapters/date-time.adapter.mjs +45 -0
- package/esm2022/extensions/lib/adapters/date.adapter.mjs +42 -0
- package/esm2022/extensions/lib/adapters/time.adapter.mjs +37 -0
- package/esm2022/extensions/lib/components/abstract-actions/abstract-actions.component.mjs +26 -0
- package/esm2022/extensions/lib/components/date-time-picker/date-time-picker.component.mjs +110 -0
- package/esm2022/extensions/lib/components/extensible-form/extensible-form-prop.component.mjs +199 -0
- package/esm2022/extensions/lib/components/extensible-form/extensible-form.component.mjs +74 -0
- package/esm2022/extensions/lib/components/extensible-table/extensible-table.component.mjs +137 -0
- package/esm2022/extensions/lib/components/grid-actions/grid-actions.component.mjs +40 -0
- package/esm2022/extensions/lib/components/page-toolbar/page-toolbar.component.mjs +39 -0
- package/{esm2020 → esm2022}/extensions/lib/constants/extra-properties.mjs +1 -1
- package/esm2022/extensions/lib/directives/disabled.directive.mjs +30 -0
- package/esm2022/extensions/lib/directives/prop-data.directive.mjs +42 -0
- package/{esm2020 → esm2022}/extensions/lib/enums/components.mjs +1 -1
- package/{esm2020 → esm2022}/extensions/lib/enums/props.enum.mjs +1 -1
- package/{esm2020 → esm2022}/extensions/lib/models/actions.mjs +46 -46
- package/{esm2020 → esm2022}/extensions/lib/models/entity-actions.mjs +28 -28
- package/esm2022/extensions/lib/models/entity-props.mjs +44 -0
- package/esm2022/extensions/lib/models/form-props.mjs +76 -0
- package/{esm2020 → esm2022}/extensions/lib/models/internal/object-extensions.mjs +2 -2
- package/{esm2020 → esm2022}/extensions/lib/models/object-extensions.mjs +2 -2
- package/esm2022/extensions/lib/models/props.mjs +54 -0
- package/{esm2020 → esm2022}/extensions/lib/models/toolbar-actions.mjs +43 -43
- package/esm2022/extensions/lib/pipes/create-injector.pipe.mjs +37 -0
- package/esm2022/extensions/lib/services/extensions.service.mjs +25 -0
- package/{esm2020 → esm2022}/extensions/lib/tokens/extensible-form-view-provider.token.mjs +2 -2
- package/{esm2020 → esm2022}/extensions/lib/tokens/extensions.token.mjs +11 -11
- package/esm2022/extensions/lib/ui-extensions.module.mjs +100 -0
- package/{esm2020 → esm2022}/extensions/lib/utils/actions.util.mjs +8 -8
- package/{esm2020 → esm2022}/extensions/lib/utils/enum.util.mjs +41 -41
- package/{esm2020 → esm2022}/extensions/lib/utils/factory.util.mjs +3 -3
- package/esm2022/extensions/lib/utils/form-props.util.mjs +51 -0
- package/{esm2020 → esm2022}/extensions/lib/utils/localization.util.mjs +12 -12
- package/{esm2020 → esm2022}/extensions/lib/utils/props.util.mjs +13 -13
- package/esm2022/extensions/lib/utils/state.util.mjs +126 -0
- package/{esm2020 → esm2022}/extensions/lib/utils/typeahead.util.mjs +51 -51
- package/{esm2020 → esm2022}/extensions/lib/utils/validation.util.mjs +10 -10
- package/{esm2020 → esm2022}/extensions/public-api.mjs +30 -30
- package/{esm2020 → esm2022}/lib/animations/bounce.animations.mjs +16 -16
- package/{esm2020 → esm2022}/lib/animations/collapse.animations.mjs +49 -49
- package/{esm2020 → esm2022}/lib/animations/fade.animations.mjs +37 -37
- package/{esm2020 → esm2022}/lib/animations/index.mjs +6 -6
- package/{esm2020 → esm2022}/lib/animations/modal.animations.mjs +10 -10
- package/{esm2020 → esm2022}/lib/animations/slide.animations.mjs +7 -7
- package/{esm2020 → esm2022}/lib/animations/toast.animations.mjs +12 -12
- package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +44 -0
- package/esm2022/lib/components/breadcrumb-items/breadcrumb-items.component.mjs +20 -0
- package/esm2022/lib/components/button/button.component.mjs +103 -0
- package/{esm2020 → esm2022}/lib/components/card/card-body.component.mjs +27 -26
- package/esm2022/lib/components/card/card-footer.component.mjs +31 -0
- package/esm2022/lib/components/card/card-header.component.mjs +31 -0
- package/esm2022/lib/components/card/card-header.directive.mjs +20 -0
- package/esm2022/lib/components/card/card-img-top.directive.mjs +20 -0
- package/esm2022/lib/components/card/card-subtitle.directive.mjs +20 -0
- package/esm2022/lib/components/card/card-title.directive.mjs +20 -0
- package/esm2022/lib/components/card/card.component.mjs +24 -0
- package/esm2022/lib/components/card/card.module.mjs +50 -0
- package/{esm2020 → esm2022}/lib/components/card/index.mjs +9 -9
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +89 -0
- package/esm2022/lib/components/confirmation/confirmation.component.mjs +46 -0
- package/esm2022/lib/components/form-input/form-input.component.mjs +95 -0
- package/esm2022/lib/components/http-error-wrapper/http-error-wrapper.component.mjs +60 -0
- package/{esm2020 → esm2022}/lib/components/index.mjs +16 -16
- package/esm2022/lib/components/loader-bar/loader-bar.component.mjs +122 -0
- package/esm2022/lib/components/loading/loading.component.mjs +20 -0
- package/esm2022/lib/components/modal/modal-close.directive.mjs +28 -0
- package/esm2022/lib/components/modal/modal-ref.service.mjs +27 -0
- package/esm2022/lib/components/modal/modal.component.mjs +190 -0
- package/esm2022/lib/components/password/password.component.mjs +39 -0
- package/esm2022/lib/components/toast/toast.component.mjs +56 -0
- package/esm2022/lib/components/toast-container/toast-container.component.mjs +59 -0
- package/{esm2020 → esm2022}/lib/constants/styles.mjs +1 -1
- package/{esm2020 → esm2022}/lib/constants/validation.mjs +19 -19
- package/esm2022/lib/directives/ellipsis.directive.mjs +65 -0
- package/{esm2020 → esm2022}/lib/directives/index.mjs +5 -5
- package/esm2022/lib/directives/loading.directive.mjs +90 -0
- package/esm2022/lib/directives/ngx-datatable-default.directive.mjs +76 -0
- package/esm2022/lib/directives/ngx-datatable-list.directive.mjs +95 -0
- package/esm2022/lib/directives/visible.directive.mjs +63 -0
- package/{esm2020 → esm2022}/lib/enums/form.mjs +5 -5
- package/{esm2020 → esm2022}/lib/enums/index.mjs +2 -2
- package/{esm2020 → esm2022}/lib/enums/route-names.mjs +1 -1
- package/esm2022/lib/handlers/document-dir.handler.mjs +32 -0
- package/esm2022/lib/handlers/error.handler.mjs +294 -0
- package/{esm2020 → esm2022}/lib/handlers/index.mjs +2 -2
- package/{esm2020 → esm2022}/lib/models/common.mjs +1 -1
- package/{esm2020 → esm2022}/lib/models/confirmation.mjs +9 -9
- package/{esm2020 → esm2022}/lib/models/index.mjs +7 -7
- package/{esm2020 → esm2022}/lib/models/nav-item.mjs +5 -5
- package/{esm2020 → esm2022}/lib/models/statistics.mjs +1 -1
- package/{esm2020 → esm2022}/lib/models/toaster.mjs +1 -1
- package/{esm2020 → esm2022}/lib/models/user-menu.mjs +3 -3
- package/{esm2020 → esm2022}/lib/models/validation.mjs +1 -1
- package/{esm2020 → esm2022}/lib/providers/index.mjs +2 -2
- package/{esm2020 → esm2022}/lib/providers/ng-bootstrap-config.provider.mjs +16 -16
- package/{esm2020 → esm2022}/lib/providers/route.provider.mjs +17 -17
- package/{esm2020 → esm2022}/lib/services/abstract-menu.service.mjs +49 -49
- package/esm2022/lib/services/confirmation.service.mjs +69 -0
- package/{esm2020 → esm2022}/lib/services/index.mjs +5 -5
- package/esm2022/lib/services/nav-items.service.mjs +18 -0
- package/esm2022/lib/services/page-alert.service.mjs +29 -0
- package/esm2022/lib/services/toaster.service.mjs +104 -0
- package/esm2022/lib/services/user-menu.service.mjs +18 -0
- package/esm2022/lib/theme-shared.module.mjs +202 -0
- package/{esm2020 → esm2022}/lib/tokens/append-content.token.mjs +10 -10
- package/{esm2020 → esm2022}/lib/tokens/confirmation-icons.token.mjs +10 -10
- package/{esm2020 → esm2022}/lib/tokens/http-error.token.mjs +13 -13
- package/{esm2020 → esm2022}/lib/tokens/index.mjs +4 -4
- package/{esm2020 → esm2022}/lib/tokens/ngx-datatable-messages.token.mjs +7 -7
- package/{esm2020 → esm2022}/lib/tokens/suppress-unsaved-changes-warning.token.mjs +2 -2
- package/esm2022/lib/utils/date-parser-formatter.mjs +59 -0
- package/{esm2020 → esm2022}/lib/utils/index.mjs +2 -2
- package/{esm2020 → esm2022}/lib/utils/validation-utils.mjs +61 -61
- package/{esm2020 → esm2022}/public-api.mjs +15 -15
- package/{esm2020 → esm2022}/testing/abp-ng.theme.shared-testing.mjs +4 -4
- package/{esm2020 → esm2022}/testing/lib/models/config.mjs +1 -1
- package/{esm2020 → esm2022}/testing/lib/models/index.mjs +1 -1
- package/esm2022/testing/lib/theme-shared-testing.module.mjs +47 -0
- package/{esm2020 → esm2022}/testing/public-api.mjs +3 -3
- package/extensions/index.d.ts +5 -5
- package/extensions/lib/adapters/date-time.adapter.d.ts +11 -11
- package/extensions/lib/adapters/date.adapter.d.ts +9 -9
- package/extensions/lib/adapters/time.adapter.d.ts +8 -8
- package/extensions/lib/components/abstract-actions/abstract-actions.component.d.ts +12 -12
- package/extensions/lib/components/date-time-picker/date-time-picker.component.d.ts +16 -16
- package/extensions/lib/components/extensible-form/extensible-form-prop.component.d.ts +43 -43
- package/extensions/lib/components/extensible-form/extensible-form.component.d.ts +25 -25
- package/extensions/lib/components/extensible-table/extensible-table.component.d.ts +38 -38
- package/extensions/lib/components/grid-actions/grid-actions.component.d.ts +13 -13
- package/extensions/lib/components/page-toolbar/page-toolbar.component.d.ts +20 -20
- package/extensions/lib/constants/extra-properties.d.ts +1 -1
- package/extensions/lib/directives/disabled.directive.d.ts +11 -11
- package/extensions/lib/directives/prop-data.directive.d.ts +19 -19
- package/extensions/lib/enums/components.d.ts +3 -3
- package/extensions/lib/enums/props.enum.d.ts +16 -16
- package/extensions/lib/models/actions.d.ts +36 -36
- package/extensions/lib/models/entity-actions.d.ts +22 -22
- package/extensions/lib/models/entity-props.d.ts +30 -29
- package/extensions/lib/models/form-props.d.ts +59 -58
- package/extensions/lib/models/internal/object-extensions.d.ts +86 -85
- package/extensions/lib/models/object-extensions.d.ts +2 -2
- package/extensions/lib/models/props.d.ts +45 -44
- package/extensions/lib/models/toolbar-actions.d.ts +38 -38
- package/extensions/lib/pipes/create-injector.pipe.d.ts +8 -8
- package/extensions/lib/services/extensions.service.d.ts +14 -14
- package/extensions/lib/tokens/extensible-form-view-provider.token.d.ts +5 -5
- package/extensions/lib/tokens/extensions.token.d.ts +20 -24
- package/extensions/lib/ui-extensions.module.d.ts +24 -24
- package/extensions/lib/utils/actions.util.d.ts +7 -7
- package/extensions/lib/utils/enum.util.d.ts +7 -7
- package/extensions/lib/utils/factory.util.d.ts +1 -1
- package/extensions/lib/utils/form-props.util.d.ts +3 -3
- package/extensions/lib/utils/localization.util.d.ts +3 -3
- package/extensions/lib/utils/props.util.d.ts +9 -9
- package/extensions/lib/utils/state.util.d.ts +5 -5
- package/extensions/lib/utils/typeahead.util.d.ts +11 -11
- package/extensions/lib/utils/validation.util.d.ts +3 -3
- package/extensions/public-api.d.ts +30 -30
- package/{fesm2020 → fesm2022}/abp-ng.theme.shared-extensions.mjs +1340 -1331
- package/fesm2022/abp-ng.theme.shared-extensions.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/abp-ng.theme.shared-testing.mjs +40 -40
- package/{fesm2015 → fesm2022}/abp-ng.theme.shared-testing.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/abp-ng.theme.shared.mjs +2292 -2290
- package/fesm2022/abp-ng.theme.shared.mjs.map +1 -0
- package/index.d.ts +5 -5
- package/lib/animations/bounce.animations.d.ts +1 -1
- package/lib/animations/collapse.animations.d.ts +9 -9
- package/lib/animations/fade.animations.d.ts +10 -10
- package/lib/animations/index.d.ts +6 -6
- package/lib/animations/modal.animations.d.ts +2 -2
- package/lib/animations/slide.animations.d.ts +1 -1
- package/lib/animations/toast.animations.d.ts +1 -1
- package/lib/components/breadcrumb/breadcrumb.component.d.ts +16 -16
- package/lib/components/breadcrumb-items/breadcrumb-items.component.d.ts +7 -7
- package/lib/components/button/button.component.d.ts +26 -26
- package/lib/components/card/card-body.component.d.ts +8 -8
- package/lib/components/card/card-footer.component.d.ts +8 -8
- package/lib/components/card/card-header.component.d.ts +8 -8
- package/lib/components/card/card-header.directive.d.ts +6 -6
- package/lib/components/card/card-img-top.directive.d.ts +6 -6
- package/lib/components/card/card-subtitle.directive.d.ts +6 -6
- package/lib/components/card/card-title.directive.d.ts +6 -6
- package/lib/components/card/card.component.d.ts +7 -7
- package/lib/components/card/card.module.d.ts +15 -15
- package/lib/components/card/index.d.ts +9 -9
- package/lib/components/checkbox/checkbox.component.d.ts +18 -18
- package/lib/components/confirmation/confirmation.component.d.ts +19 -19
- package/lib/components/form-input/form-input.component.d.ts +19 -19
- package/lib/components/http-error-wrapper/http-error-wrapper.component.d.ts +27 -27
- package/lib/components/index.d.ts +16 -16
- package/lib/components/loader-bar/loader-bar.component.d.ts +33 -33
- package/lib/components/loading/loading.component.d.ts +5 -5
- package/lib/components/modal/modal-close.directive.d.ts +9 -9
- package/lib/components/modal/modal-ref.service.d.ts +13 -13
- package/lib/components/modal/modal.component.d.ts +50 -50
- package/lib/components/password/password.component.d.ts +12 -12
- package/lib/components/toast/toast.component.d.ts +14 -14
- package/lib/components/toast-container/toast-container.component.d.ts +22 -22
- package/lib/constants/styles.d.ts +2 -2
- package/lib/constants/validation.d.ts +19 -19
- package/lib/directives/ellipsis.directive.d.ts +21 -21
- package/lib/directives/index.d.ts +5 -5
- package/lib/directives/loading.directive.d.ts +25 -25
- package/lib/directives/ngx-datatable-default.directive.d.ts +30 -30
- package/lib/directives/ngx-datatable-list.directive.d.ts +24 -24
- package/lib/directives/visible.directive.d.ts +18 -18
- package/lib/enums/form.d.ts +4 -4
- package/lib/enums/index.d.ts +2 -2
- package/lib/enums/route-names.d.ts +3 -3
- package/lib/handlers/document-dir.handler.d.ts +13 -13
- package/lib/handlers/error.handler.d.ts +83 -83
- package/lib/handlers/index.d.ts +2 -2
- package/lib/models/common.d.ts +21 -21
- package/lib/models/confirmation.d.ts +27 -27
- package/lib/models/index.d.ts +7 -7
- package/lib/models/nav-item.d.ts +13 -13
- package/lib/models/statistics.d.ts +12 -12
- package/lib/models/toaster.d.ts +30 -30
- package/lib/models/user-menu.d.ts +8 -8
- package/lib/models/validation.d.ts +1 -1
- package/lib/providers/index.d.ts +2 -2
- package/lib/providers/ng-bootstrap-config.provider.d.ts +8 -8
- package/lib/providers/route.provider.d.ts +8 -8
- package/lib/services/abstract-menu.service.d.ts +13 -13
- package/lib/services/confirmation.service.d.ts +21 -21
- package/lib/services/index.d.ts +5 -5
- package/lib/services/nav-items.service.d.ts +8 -8
- package/lib/services/page-alert.service.d.ts +18 -18
- package/lib/services/toaster.service.d.ts +60 -60
- package/lib/services/user-menu.service.d.ts +8 -8
- package/lib/theme-shared.module.d.ts +38 -38
- package/lib/tokens/append-content.token.d.ts +2 -2
- package/lib/tokens/confirmation-icons.token.d.ts +11 -11
- package/lib/tokens/http-error.token.d.ts +5 -5
- package/lib/tokens/index.d.ts +4 -4
- package/lib/tokens/ngx-datatable-messages.token.d.ts +12 -12
- package/lib/tokens/suppress-unsaved-changes-warning.token.d.ts +2 -2
- package/lib/utils/date-parser-formatter.d.ts +12 -12
- package/lib/utils/index.d.ts +2 -2
- package/lib/utils/validation-utils.d.ts +5 -5
- package/package.json +28 -24
- package/public-api.d.ts +12 -12
- package/testing/index.d.ts +5 -5
- package/testing/lib/models/config.d.ts +4 -4
- package/testing/lib/models/index.d.ts +1 -1
- package/testing/lib/theme-shared-testing.module.d.ts +14 -14
- package/testing/public-api.d.ts +3 -3
- package/esm2020/extensions/lib/adapters/date-time.adapter.mjs +0 -44
- package/esm2020/extensions/lib/adapters/date.adapter.mjs +0 -41
- package/esm2020/extensions/lib/adapters/time.adapter.mjs +0 -36
- package/esm2020/extensions/lib/components/abstract-actions/abstract-actions.component.mjs +0 -25
- package/esm2020/extensions/lib/components/date-time-picker/date-time-picker.component.mjs +0 -109
- package/esm2020/extensions/lib/components/extensible-form/extensible-form-prop.component.mjs +0 -198
- package/esm2020/extensions/lib/components/extensible-form/extensible-form.component.mjs +0 -73
- package/esm2020/extensions/lib/components/extensible-table/extensible-table.component.mjs +0 -135
- package/esm2020/extensions/lib/components/grid-actions/grid-actions.component.mjs +0 -39
- package/esm2020/extensions/lib/components/page-toolbar/page-toolbar.component.mjs +0 -38
- package/esm2020/extensions/lib/directives/disabled.directive.mjs +0 -29
- package/esm2020/extensions/lib/directives/prop-data.directive.mjs +0 -41
- package/esm2020/extensions/lib/models/entity-props.mjs +0 -43
- package/esm2020/extensions/lib/models/form-props.mjs +0 -75
- package/esm2020/extensions/lib/models/props.mjs +0 -53
- package/esm2020/extensions/lib/pipes/create-injector.pipe.mjs +0 -36
- package/esm2020/extensions/lib/services/extensions.service.mjs +0 -24
- package/esm2020/extensions/lib/ui-extensions.module.mjs +0 -95
- package/esm2020/extensions/lib/utils/form-props.util.mjs +0 -51
- package/esm2020/extensions/lib/utils/state.util.mjs +0 -123
- package/esm2020/lib/components/breadcrumb/breadcrumb.component.mjs +0 -43
- package/esm2020/lib/components/breadcrumb-items/breadcrumb-items.component.mjs +0 -19
- package/esm2020/lib/components/button/button.component.mjs +0 -102
- package/esm2020/lib/components/card/card-footer.component.mjs +0 -30
- package/esm2020/lib/components/card/card-header.component.mjs +0 -30
- package/esm2020/lib/components/card/card-header.directive.mjs +0 -19
- package/esm2020/lib/components/card/card-img-top.directive.mjs +0 -19
- package/esm2020/lib/components/card/card-subtitle.directive.mjs +0 -19
- package/esm2020/lib/components/card/card-title.directive.mjs +0 -19
- package/esm2020/lib/components/card/card.component.mjs +0 -23
- package/esm2020/lib/components/card/card.module.mjs +0 -49
- package/esm2020/lib/components/checkbox/checkbox.component.mjs +0 -88
- package/esm2020/lib/components/confirmation/confirmation.component.mjs +0 -45
- package/esm2020/lib/components/form-input/form-input.component.mjs +0 -94
- package/esm2020/lib/components/http-error-wrapper/http-error-wrapper.component.mjs +0 -59
- package/esm2020/lib/components/loader-bar/loader-bar.component.mjs +0 -121
- package/esm2020/lib/components/loading/loading.component.mjs +0 -19
- package/esm2020/lib/components/modal/modal-close.directive.mjs +0 -27
- package/esm2020/lib/components/modal/modal-ref.service.mjs +0 -26
- package/esm2020/lib/components/modal/modal.component.mjs +0 -189
- package/esm2020/lib/components/password/password.component.mjs +0 -38
- package/esm2020/lib/components/toast/toast.component.mjs +0 -55
- package/esm2020/lib/components/toast-container/toast-container.component.mjs +0 -58
- package/esm2020/lib/directives/ellipsis.directive.mjs +0 -63
- package/esm2020/lib/directives/loading.directive.mjs +0 -89
- package/esm2020/lib/directives/ngx-datatable-default.directive.mjs +0 -75
- package/esm2020/lib/directives/ngx-datatable-list.directive.mjs +0 -94
- package/esm2020/lib/directives/visible.directive.mjs +0 -62
- package/esm2020/lib/handlers/document-dir.handler.mjs +0 -31
- package/esm2020/lib/handlers/error.handler.mjs +0 -291
- package/esm2020/lib/services/confirmation.service.mjs +0 -68
- package/esm2020/lib/services/nav-items.service.mjs +0 -17
- package/esm2020/lib/services/page-alert.service.mjs +0 -28
- package/esm2020/lib/services/toaster.service.mjs +0 -103
- package/esm2020/lib/services/user-menu.service.mjs +0 -17
- package/esm2020/lib/theme-shared.module.mjs +0 -200
- package/esm2020/lib/utils/date-parser-formatter.mjs +0 -58
- package/esm2020/testing/lib/theme-shared-testing.module.mjs +0 -46
- package/fesm2015/abp-ng.theme.shared-extensions.mjs +0 -1460
- package/fesm2015/abp-ng.theme.shared-extensions.mjs.map +0 -1
- package/fesm2015/abp-ng.theme.shared-testing.mjs +0 -54
- package/fesm2015/abp-ng.theme.shared.mjs +0 -2767
- package/fesm2015/abp-ng.theme.shared.mjs.map +0 -1
- package/fesm2020/abp-ng.theme.shared-extensions.mjs.map +0 -1
- package/fesm2020/abp-ng.theme.shared-testing.mjs.map +0 -1
- package/fesm2020/abp-ng.theme.shared.mjs.map +0 -1
|
@@ -1,83 +1,83 @@
|
|
|
1
|
-
import { HttpErrorReporterService, LocalizationParam, RouterEvents } from '@abp/ng.core';
|
|
2
|
-
import { HttpErrorResponse } from '@angular/common/http';
|
|
3
|
-
import { ComponentFactoryResolver, ComponentRef, Injector, RendererFactory2 } from '@angular/core';
|
|
4
|
-
import { NavigationError } from '@angular/router';
|
|
5
|
-
import { Observable } from 'rxjs';
|
|
6
|
-
import { HttpErrorWrapperComponent } from '../components/http-error-wrapper/http-error-wrapper.component';
|
|
7
|
-
import { ErrorScreenErrorCodes, HttpErrorConfig } from '../models/common';
|
|
8
|
-
import { Confirmation } from '../models/confirmation';
|
|
9
|
-
import { ConfirmationService } from '../services/confirmation.service';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
export declare const DEFAULT_ERROR_MESSAGES: {
|
|
12
|
-
defaultError: {
|
|
13
|
-
title: string;
|
|
14
|
-
details: string;
|
|
15
|
-
};
|
|
16
|
-
defaultError401: {
|
|
17
|
-
title: string;
|
|
18
|
-
details: string;
|
|
19
|
-
};
|
|
20
|
-
defaultError403: {
|
|
21
|
-
title: string;
|
|
22
|
-
details: string;
|
|
23
|
-
};
|
|
24
|
-
defaultError404: {
|
|
25
|
-
title: string;
|
|
26
|
-
details: string;
|
|
27
|
-
};
|
|
28
|
-
defaultError500: {
|
|
29
|
-
title: string;
|
|
30
|
-
details: string;
|
|
31
|
-
};
|
|
32
|
-
};
|
|
33
|
-
export declare const DEFAULT_ERROR_LOCALIZATIONS: {
|
|
34
|
-
defaultError: {
|
|
35
|
-
title: string;
|
|
36
|
-
details: string;
|
|
37
|
-
};
|
|
38
|
-
defaultError401: {
|
|
39
|
-
title: string;
|
|
40
|
-
details: string;
|
|
41
|
-
};
|
|
42
|
-
defaultError403: {
|
|
43
|
-
title: string;
|
|
44
|
-
details: string;
|
|
45
|
-
};
|
|
46
|
-
defaultError404: {
|
|
47
|
-
title: string;
|
|
48
|
-
details: string;
|
|
49
|
-
};
|
|
50
|
-
defaultError500: {
|
|
51
|
-
title: string;
|
|
52
|
-
details: string;
|
|
53
|
-
};
|
|
54
|
-
};
|
|
55
|
-
export declare class ErrorHandler {
|
|
56
|
-
protected injector: Injector;
|
|
57
|
-
componentRef: ComponentRef<HttpErrorWrapperComponent> | null;
|
|
58
|
-
protected httpErrorHandler: import("../models/common").HttpErrorHandler;
|
|
59
|
-
protected httpErrorReporter: HttpErrorReporterService;
|
|
60
|
-
protected routerEvents: RouterEvents;
|
|
61
|
-
protected confirmationService: ConfirmationService;
|
|
62
|
-
protected cfRes: ComponentFactoryResolver;
|
|
63
|
-
protected rendererFactory: RendererFactory2;
|
|
64
|
-
protected httpErrorConfig: HttpErrorConfig;
|
|
65
|
-
private authService;
|
|
66
|
-
constructor(injector: Injector);
|
|
67
|
-
protected listenToRouterError(): void;
|
|
68
|
-
protected listenToRouterDataResolved(): void;
|
|
69
|
-
protected listenToRestError(): void;
|
|
70
|
-
private executeErrorHandler;
|
|
71
|
-
private handleError;
|
|
72
|
-
protected show401Page(): void;
|
|
73
|
-
protected show404Page(): void;
|
|
74
|
-
protected showErrorWithRequestBody(body: any): Observable<Confirmation.Status>;
|
|
75
|
-
protected showError(message: LocalizationParam, title: LocalizationParam): Observable<Confirmation.Status>;
|
|
76
|
-
private navigateToLogin;
|
|
77
|
-
createErrorComponent(instance: Partial<HttpErrorWrapperComponent>): void;
|
|
78
|
-
canCreateCustomError(status: ErrorScreenErrorCodes): boolean;
|
|
79
|
-
protected filterRestErrors: ({ status }: HttpErrorResponse) => boolean;
|
|
80
|
-
protected filterRouteErrors: (navigationError: NavigationError) => boolean;
|
|
81
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorHandler, never>;
|
|
82
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ErrorHandler>;
|
|
83
|
-
}
|
|
1
|
+
import { HttpErrorReporterService, LocalizationParam, RouterEvents } from '@abp/ng.core';
|
|
2
|
+
import { HttpErrorResponse } from '@angular/common/http';
|
|
3
|
+
import { ComponentFactoryResolver, ComponentRef, Injector, RendererFactory2 } from '@angular/core';
|
|
4
|
+
import { NavigationError } from '@angular/router';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
import { HttpErrorWrapperComponent } from '../components/http-error-wrapper/http-error-wrapper.component';
|
|
7
|
+
import { ErrorScreenErrorCodes, HttpErrorConfig } from '../models/common';
|
|
8
|
+
import { Confirmation } from '../models/confirmation';
|
|
9
|
+
import { ConfirmationService } from '../services/confirmation.service';
|
|
10
|
+
import * as i0 from "@angular/core";
|
|
11
|
+
export declare const DEFAULT_ERROR_MESSAGES: {
|
|
12
|
+
defaultError: {
|
|
13
|
+
title: string;
|
|
14
|
+
details: string;
|
|
15
|
+
};
|
|
16
|
+
defaultError401: {
|
|
17
|
+
title: string;
|
|
18
|
+
details: string;
|
|
19
|
+
};
|
|
20
|
+
defaultError403: {
|
|
21
|
+
title: string;
|
|
22
|
+
details: string;
|
|
23
|
+
};
|
|
24
|
+
defaultError404: {
|
|
25
|
+
title: string;
|
|
26
|
+
details: string;
|
|
27
|
+
};
|
|
28
|
+
defaultError500: {
|
|
29
|
+
title: string;
|
|
30
|
+
details: string;
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
export declare const DEFAULT_ERROR_LOCALIZATIONS: {
|
|
34
|
+
defaultError: {
|
|
35
|
+
title: string;
|
|
36
|
+
details: string;
|
|
37
|
+
};
|
|
38
|
+
defaultError401: {
|
|
39
|
+
title: string;
|
|
40
|
+
details: string;
|
|
41
|
+
};
|
|
42
|
+
defaultError403: {
|
|
43
|
+
title: string;
|
|
44
|
+
details: string;
|
|
45
|
+
};
|
|
46
|
+
defaultError404: {
|
|
47
|
+
title: string;
|
|
48
|
+
details: string;
|
|
49
|
+
};
|
|
50
|
+
defaultError500: {
|
|
51
|
+
title: string;
|
|
52
|
+
details: string;
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
export declare class ErrorHandler {
|
|
56
|
+
protected injector: Injector;
|
|
57
|
+
componentRef: ComponentRef<HttpErrorWrapperComponent> | null;
|
|
58
|
+
protected httpErrorHandler: import("../models/common").HttpErrorHandler;
|
|
59
|
+
protected httpErrorReporter: HttpErrorReporterService;
|
|
60
|
+
protected routerEvents: RouterEvents;
|
|
61
|
+
protected confirmationService: ConfirmationService;
|
|
62
|
+
protected cfRes: ComponentFactoryResolver;
|
|
63
|
+
protected rendererFactory: RendererFactory2;
|
|
64
|
+
protected httpErrorConfig: HttpErrorConfig;
|
|
65
|
+
private authService;
|
|
66
|
+
constructor(injector: Injector);
|
|
67
|
+
protected listenToRouterError(): void;
|
|
68
|
+
protected listenToRouterDataResolved(): void;
|
|
69
|
+
protected listenToRestError(): void;
|
|
70
|
+
private executeErrorHandler;
|
|
71
|
+
private handleError;
|
|
72
|
+
protected show401Page(): void;
|
|
73
|
+
protected show404Page(): void;
|
|
74
|
+
protected showErrorWithRequestBody(body: any): Observable<Confirmation.Status>;
|
|
75
|
+
protected showError(message: LocalizationParam, title: LocalizationParam): Observable<Confirmation.Status>;
|
|
76
|
+
private navigateToLogin;
|
|
77
|
+
createErrorComponent(instance: Partial<HttpErrorWrapperComponent>): void;
|
|
78
|
+
canCreateCustomError(status: ErrorScreenErrorCodes): boolean;
|
|
79
|
+
protected filterRestErrors: ({ status }: HttpErrorResponse) => boolean;
|
|
80
|
+
protected filterRouteErrors: (navigationError: NavigationError) => boolean;
|
|
81
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorHandler, never>;
|
|
82
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ErrorHandler>;
|
|
83
|
+
}
|
package/lib/handlers/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './document-dir.handler';
|
|
2
|
-
export * from './error.handler';
|
|
1
|
+
export * from './document-dir.handler';
|
|
2
|
+
export * from './error.handler';
|
package/lib/models/common.d.ts
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { HttpErrorResponse } from '@angular/common/http';
|
|
2
|
-
import { Injector, Type } from '@angular/core';
|
|
3
|
-
import { Validation } from '@ngx-validate/core';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { ConfirmationIcons } from '../tokens/confirmation-icons.token';
|
|
6
|
-
export interface RootParams {
|
|
7
|
-
httpErrorConfig?: HttpErrorConfig;
|
|
8
|
-
validation?: Partial<Validation.Config>;
|
|
9
|
-
confirmationIcons?: Partial<ConfirmationIcons>;
|
|
10
|
-
}
|
|
11
|
-
export
|
|
12
|
-
export interface HttpErrorConfig {
|
|
13
|
-
skipHandledErrorCodes?: ErrorScreenErrorCodes[] | number[];
|
|
14
|
-
errorScreen?: {
|
|
15
|
-
component: Type<any>;
|
|
16
|
-
forWhichErrors?: ErrorScreenErrorCodes[];
|
|
17
|
-
hideCloseIcon?: boolean;
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
export
|
|
21
|
-
export
|
|
1
|
+
import { HttpErrorResponse } from '@angular/common/http';
|
|
2
|
+
import { Injector, Type } from '@angular/core';
|
|
3
|
+
import { Validation } from '@ngx-validate/core';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { ConfirmationIcons } from '../tokens/confirmation-icons.token';
|
|
6
|
+
export interface RootParams {
|
|
7
|
+
httpErrorConfig?: HttpErrorConfig;
|
|
8
|
+
validation?: Partial<Validation.Config>;
|
|
9
|
+
confirmationIcons?: Partial<ConfirmationIcons>;
|
|
10
|
+
}
|
|
11
|
+
export type ErrorScreenErrorCodes = 401 | 403 | 404 | 500;
|
|
12
|
+
export interface HttpErrorConfig {
|
|
13
|
+
skipHandledErrorCodes?: ErrorScreenErrorCodes[] | number[];
|
|
14
|
+
errorScreen?: {
|
|
15
|
+
component: Type<any>;
|
|
16
|
+
forWhichErrors?: ErrorScreenErrorCodes[];
|
|
17
|
+
hideCloseIcon?: boolean;
|
|
18
|
+
};
|
|
19
|
+
}
|
|
20
|
+
export type HttpErrorHandler = (injector: Injector, httpError: HttpErrorResponse) => Observable<any>;
|
|
21
|
+
export type LocaleDirection = 'ltr' | 'rtl';
|
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
import { LocalizationParam } from '@abp/ng.core';
|
|
2
|
-
export declare namespace Confirmation {
|
|
3
|
-
interface Options {
|
|
4
|
-
id?: any;
|
|
5
|
-
dismissible?: boolean;
|
|
6
|
-
messageLocalizationParams?: string[];
|
|
7
|
-
titleLocalizationParams?: string[];
|
|
8
|
-
hideCancelBtn?: boolean;
|
|
9
|
-
hideYesBtn?: boolean;
|
|
10
|
-
cancelText?: LocalizationParam;
|
|
11
|
-
yesText?: LocalizationParam;
|
|
12
|
-
icon?: string;
|
|
13
|
-
iconTemplate?: string;
|
|
14
|
-
}
|
|
15
|
-
interface DialogData {
|
|
16
|
-
message: LocalizationParam;
|
|
17
|
-
title?: LocalizationParam;
|
|
18
|
-
severity?: Severity;
|
|
19
|
-
options?: Partial<Options>;
|
|
20
|
-
}
|
|
21
|
-
type Severity = 'neutral' | 'success' | 'info' | 'warning' | 'error';
|
|
22
|
-
enum Status {
|
|
23
|
-
confirm = "confirm",
|
|
24
|
-
reject = "reject",
|
|
25
|
-
dismiss = "dismiss"
|
|
26
|
-
}
|
|
27
|
-
}
|
|
1
|
+
import { LocalizationParam } from '@abp/ng.core';
|
|
2
|
+
export declare namespace Confirmation {
|
|
3
|
+
interface Options {
|
|
4
|
+
id?: any;
|
|
5
|
+
dismissible?: boolean;
|
|
6
|
+
messageLocalizationParams?: string[];
|
|
7
|
+
titleLocalizationParams?: string[];
|
|
8
|
+
hideCancelBtn?: boolean;
|
|
9
|
+
hideYesBtn?: boolean;
|
|
10
|
+
cancelText?: LocalizationParam;
|
|
11
|
+
yesText?: LocalizationParam;
|
|
12
|
+
icon?: string;
|
|
13
|
+
iconTemplate?: string;
|
|
14
|
+
}
|
|
15
|
+
interface DialogData {
|
|
16
|
+
message: LocalizationParam;
|
|
17
|
+
title?: LocalizationParam;
|
|
18
|
+
severity?: Severity;
|
|
19
|
+
options?: Partial<Options>;
|
|
20
|
+
}
|
|
21
|
+
type Severity = 'neutral' | 'success' | 'info' | 'warning' | 'error';
|
|
22
|
+
enum Status {
|
|
23
|
+
confirm = "confirm",
|
|
24
|
+
reject = "reject",
|
|
25
|
+
dismiss = "dismiss"
|
|
26
|
+
}
|
|
27
|
+
}
|
package/lib/models/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export * from './common';
|
|
2
|
-
export * from './confirmation';
|
|
3
|
-
export * from './nav-item';
|
|
4
|
-
export * from './statistics';
|
|
5
|
-
export * from './toaster';
|
|
6
|
-
export * from './user-menu';
|
|
7
|
-
export * from './validation';
|
|
1
|
+
export * from './common';
|
|
2
|
+
export * from './confirmation';
|
|
3
|
+
export * from './nav-item';
|
|
4
|
+
export * from './statistics';
|
|
5
|
+
export * from './toaster';
|
|
6
|
+
export * from './user-menu';
|
|
7
|
+
export * from './validation';
|
package/lib/models/nav-item.d.ts
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { Injector, Type } from '@angular/core';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
export declare class NavItem {
|
|
4
|
-
id?: string | number;
|
|
5
|
-
component?: Type<any>;
|
|
6
|
-
html?: string;
|
|
7
|
-
action?: () => void;
|
|
8
|
-
order?: number;
|
|
9
|
-
requiredPolicy?: string;
|
|
10
|
-
visible?: NavBarPropPredicate<NavItem>;
|
|
11
|
-
constructor(props: Partial<NavItem>);
|
|
12
|
-
}
|
|
13
|
-
export
|
|
1
|
+
import { Injector, Type } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
export declare class NavItem {
|
|
4
|
+
id?: string | number;
|
|
5
|
+
component?: Type<any>;
|
|
6
|
+
html?: string;
|
|
7
|
+
action?: () => void;
|
|
8
|
+
order?: number;
|
|
9
|
+
requiredPolicy?: string;
|
|
10
|
+
visible?: NavBarPropPredicate<NavItem>;
|
|
11
|
+
constructor(props: Partial<NavItem>);
|
|
12
|
+
}
|
|
13
|
+
export type NavBarPropPredicate<T> = (prop?: T, injector?: Injector) => boolean | Promise<boolean> | Observable<boolean>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
export declare namespace Statistics {
|
|
2
|
-
interface Response {
|
|
3
|
-
data: Data;
|
|
4
|
-
}
|
|
5
|
-
interface Data {
|
|
6
|
-
[key: string]: number;
|
|
7
|
-
}
|
|
8
|
-
interface Filter {
|
|
9
|
-
startDate: string | Date;
|
|
10
|
-
endDate: string | Date;
|
|
11
|
-
}
|
|
12
|
-
}
|
|
1
|
+
export declare namespace Statistics {
|
|
2
|
+
interface Response {
|
|
3
|
+
data: Data;
|
|
4
|
+
}
|
|
5
|
+
interface Data {
|
|
6
|
+
[key: string]: number;
|
|
7
|
+
}
|
|
8
|
+
interface Filter {
|
|
9
|
+
startDate: string | Date;
|
|
10
|
+
endDate: string | Date;
|
|
11
|
+
}
|
|
12
|
+
}
|
package/lib/models/toaster.d.ts
CHANGED
|
@@ -1,30 +1,30 @@
|
|
|
1
|
-
import { LocalizationParam } from '@abp/ng.core';
|
|
2
|
-
export declare namespace Toaster {
|
|
3
|
-
interface ToastOptions {
|
|
4
|
-
life?: number;
|
|
5
|
-
sticky?: boolean;
|
|
6
|
-
closable?: boolean;
|
|
7
|
-
tapToDismiss?: boolean;
|
|
8
|
-
messageLocalizationParams?: string[];
|
|
9
|
-
titleLocalizationParams?: string[];
|
|
10
|
-
id: any;
|
|
11
|
-
containerKey?: string;
|
|
12
|
-
}
|
|
13
|
-
interface Toast {
|
|
14
|
-
message: LocalizationParam;
|
|
15
|
-
title?: LocalizationParam;
|
|
16
|
-
severity?: string;
|
|
17
|
-
options?: ToastOptions;
|
|
18
|
-
}
|
|
19
|
-
type Severity = 'neutral' | 'success' | 'info' | 'warning' | 'error';
|
|
20
|
-
type ToasterId = string | number;
|
|
21
|
-
interface Service {
|
|
22
|
-
show: (message: LocalizationParam, title: LocalizationParam, severity: Toaster.Severity, options: Partial<Toaster.ToastOptions>) => ToasterId;
|
|
23
|
-
remove: (id: number) => void;
|
|
24
|
-
clear: (containerKey?: string) => void;
|
|
25
|
-
info: (message: LocalizationParam, title?: LocalizationParam, options?: Partial<Toaster.ToastOptions>) => ToasterId;
|
|
26
|
-
success: (message: LocalizationParam, title?: LocalizationParam, options?: Partial<Toaster.ToastOptions>) => ToasterId;
|
|
27
|
-
warn: (message: LocalizationParam, title?: LocalizationParam, options?: Partial<Toaster.ToastOptions>) => ToasterId;
|
|
28
|
-
error: (message: LocalizationParam, title?: LocalizationParam, options?: Partial<Toaster.ToastOptions>) => ToasterId;
|
|
29
|
-
}
|
|
30
|
-
}
|
|
1
|
+
import { LocalizationParam } from '@abp/ng.core';
|
|
2
|
+
export declare namespace Toaster {
|
|
3
|
+
interface ToastOptions {
|
|
4
|
+
life?: number;
|
|
5
|
+
sticky?: boolean;
|
|
6
|
+
closable?: boolean;
|
|
7
|
+
tapToDismiss?: boolean;
|
|
8
|
+
messageLocalizationParams?: string[];
|
|
9
|
+
titleLocalizationParams?: string[];
|
|
10
|
+
id: any;
|
|
11
|
+
containerKey?: string;
|
|
12
|
+
}
|
|
13
|
+
interface Toast {
|
|
14
|
+
message: LocalizationParam;
|
|
15
|
+
title?: LocalizationParam;
|
|
16
|
+
severity?: string;
|
|
17
|
+
options?: ToastOptions;
|
|
18
|
+
}
|
|
19
|
+
type Severity = 'neutral' | 'success' | 'info' | 'warning' | 'error';
|
|
20
|
+
type ToasterId = string | number;
|
|
21
|
+
interface Service {
|
|
22
|
+
show: (message: LocalizationParam, title: LocalizationParam, severity: Toaster.Severity, options: Partial<Toaster.ToastOptions>) => ToasterId;
|
|
23
|
+
remove: (id: number) => void;
|
|
24
|
+
clear: (containerKey?: string) => void;
|
|
25
|
+
info: (message: LocalizationParam, title?: LocalizationParam, options?: Partial<Toaster.ToastOptions>) => ToasterId;
|
|
26
|
+
success: (message: LocalizationParam, title?: LocalizationParam, options?: Partial<Toaster.ToastOptions>) => ToasterId;
|
|
27
|
+
warn: (message: LocalizationParam, title?: LocalizationParam, options?: Partial<Toaster.ToastOptions>) => ToasterId;
|
|
28
|
+
error: (message: LocalizationParam, title?: LocalizationParam, options?: Partial<Toaster.ToastOptions>) => ToasterId;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { NavItem } from './nav-item';
|
|
2
|
-
export declare class UserMenu extends NavItem {
|
|
3
|
-
textTemplate?: UserMenuTextTemplate;
|
|
4
|
-
}
|
|
5
|
-
export interface UserMenuTextTemplate {
|
|
6
|
-
text: string;
|
|
7
|
-
icon?: string;
|
|
8
|
-
}
|
|
1
|
+
import { NavItem } from './nav-item';
|
|
2
|
+
export declare class UserMenu extends NavItem {
|
|
3
|
+
textTemplate?: UserMenuTextTemplate;
|
|
4
|
+
}
|
|
5
|
+
export interface UserMenuTextTemplate {
|
|
6
|
+
text: string;
|
|
7
|
+
icon?: string;
|
|
8
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type PasswordRule = 'small' | 'capital' | 'number' | 'special';
|
package/lib/providers/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export * from './ng-bootstrap-config.provider';
|
|
2
|
-
export * from './route.provider';
|
|
1
|
+
export * from './ng-bootstrap-config.provider';
|
|
2
|
+
export * from './route.provider';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { NgbInputDatepickerConfig, NgbTypeaheadConfig } from '@ng-bootstrap/ng-bootstrap';
|
|
2
|
-
export declare const NG_BOOTSTRAP_CONFIG_PROVIDERS: {
|
|
3
|
-
provide: import("@angular/core").InjectionToken<readonly (() => void | import("rxjs").Observable<unknown> | Promise<unknown>)[]>;
|
|
4
|
-
useFactory: typeof configureNgBootstrap;
|
|
5
|
-
deps: (typeof NgbInputDatepickerConfig | typeof NgbTypeaheadConfig)[];
|
|
6
|
-
multi: boolean;
|
|
7
|
-
}[];
|
|
8
|
-
export declare function configureNgBootstrap(datepicker: NgbInputDatepickerConfig, typeahead: NgbTypeaheadConfig): () => void;
|
|
1
|
+
import { NgbInputDatepickerConfig, NgbTypeaheadConfig } from '@ng-bootstrap/ng-bootstrap';
|
|
2
|
+
export declare const NG_BOOTSTRAP_CONFIG_PROVIDERS: {
|
|
3
|
+
provide: import("@angular/core").InjectionToken<readonly (() => void | import("rxjs").Observable<unknown> | Promise<unknown>)[]>;
|
|
4
|
+
useFactory: typeof configureNgBootstrap;
|
|
5
|
+
deps: (typeof NgbInputDatepickerConfig | typeof NgbTypeaheadConfig)[];
|
|
6
|
+
multi: boolean;
|
|
7
|
+
}[];
|
|
8
|
+
export declare function configureNgBootstrap(datepicker: NgbInputDatepickerConfig, typeahead: NgbTypeaheadConfig): () => void;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { RoutesService } from '@abp/ng.core';
|
|
2
|
-
export declare const THEME_SHARED_ROUTE_PROVIDERS: {
|
|
3
|
-
provide: import("@angular/core").InjectionToken<readonly (() => void | import("rxjs").Observable<unknown> | Promise<unknown>)[]>;
|
|
4
|
-
useFactory: typeof configureRoutes;
|
|
5
|
-
deps: (typeof RoutesService)[];
|
|
6
|
-
multi: boolean;
|
|
7
|
-
}[];
|
|
8
|
-
export declare function configureRoutes(routesService: RoutesService): () => void;
|
|
1
|
+
import { RoutesService } from '@abp/ng.core';
|
|
2
|
+
export declare const THEME_SHARED_ROUTE_PROVIDERS: {
|
|
3
|
+
provide: import("@angular/core").InjectionToken<readonly (() => void | import("rxjs").Observable<unknown> | Promise<unknown>)[]>;
|
|
4
|
+
useFactory: typeof configureRoutes;
|
|
5
|
+
deps: (typeof RoutesService)[];
|
|
6
|
+
multi: boolean;
|
|
7
|
+
}[];
|
|
8
|
+
export declare function configureRoutes(routesService: RoutesService): () => void;
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
|
-
import { NavItem } from '../models/nav-item';
|
|
3
|
-
import { Type } from '@angular/core';
|
|
4
|
-
export declare abstract class AbstractMenuService<T extends NavItem> {
|
|
5
|
-
protected abstract baseClass: Type<any>;
|
|
6
|
-
protected _items$: BehaviorSubject<T[]>;
|
|
7
|
-
get items(): T[];
|
|
8
|
-
get items$(): Observable<T[]>;
|
|
9
|
-
addItems(newItems: T[]): void;
|
|
10
|
-
removeItem(id: string | number): void;
|
|
11
|
-
patchItem(id: string | number, item: Partial<Omit<T, 'id'>>): void;
|
|
12
|
-
private sortItems;
|
|
13
|
-
}
|
|
1
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
|
+
import { NavItem } from '../models/nav-item';
|
|
3
|
+
import { Type } from '@angular/core';
|
|
4
|
+
export declare abstract class AbstractMenuService<T extends NavItem> {
|
|
5
|
+
protected abstract baseClass: Type<any>;
|
|
6
|
+
protected _items$: BehaviorSubject<T[]>;
|
|
7
|
+
get items(): T[];
|
|
8
|
+
get items$(): Observable<T[]>;
|
|
9
|
+
addItems(newItems: T[]): void;
|
|
10
|
+
removeItem(id: string | number): void;
|
|
11
|
+
patchItem(id: string | number, item: Partial<Omit<T, 'id'>>): void;
|
|
12
|
+
private sortItems;
|
|
13
|
+
}
|
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
import { ContentProjectionService, LocalizationParam } from '@abp/ng.core';
|
|
2
|
-
import { Observable, ReplaySubject, Subject } from 'rxjs';
|
|
3
|
-
import { Confirmation } from '../models/confirmation';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class ConfirmationService {
|
|
6
|
-
private contentProjectionService;
|
|
7
|
-
status$: Subject<Confirmation.Status>;
|
|
8
|
-
confirmation$: ReplaySubject<Confirmation.DialogData>;
|
|
9
|
-
private containerComponentRef;
|
|
10
|
-
clear: (status?: Confirmation.Status) => void;
|
|
11
|
-
constructor(contentProjectionService: ContentProjectionService);
|
|
12
|
-
private setContainer;
|
|
13
|
-
info(message: LocalizationParam, title: LocalizationParam, options?: Partial<Confirmation.Options>): Observable<Confirmation.Status>;
|
|
14
|
-
success(message: LocalizationParam, title: LocalizationParam, options?: Partial<Confirmation.Options>): Observable<Confirmation.Status>;
|
|
15
|
-
warn(message: LocalizationParam, title: LocalizationParam, options?: Partial<Confirmation.Options>): Observable<Confirmation.Status>;
|
|
16
|
-
error(message: LocalizationParam, title: LocalizationParam, options?: Partial<Confirmation.Options>): Observable<Confirmation.Status>;
|
|
17
|
-
show(message: LocalizationParam, title: LocalizationParam, severity?: Confirmation.Severity, options?: Partial<Confirmation.Options>): Observable<Confirmation.Status>;
|
|
18
|
-
private listenToEscape;
|
|
19
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationService, never>;
|
|
20
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationService>;
|
|
21
|
-
}
|
|
1
|
+
import { ContentProjectionService, LocalizationParam } from '@abp/ng.core';
|
|
2
|
+
import { Observable, ReplaySubject, Subject } from 'rxjs';
|
|
3
|
+
import { Confirmation } from '../models/confirmation';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ConfirmationService {
|
|
6
|
+
private contentProjectionService;
|
|
7
|
+
status$: Subject<Confirmation.Status>;
|
|
8
|
+
confirmation$: ReplaySubject<Confirmation.DialogData>;
|
|
9
|
+
private containerComponentRef;
|
|
10
|
+
clear: (status?: Confirmation.Status) => void;
|
|
11
|
+
constructor(contentProjectionService: ContentProjectionService);
|
|
12
|
+
private setContainer;
|
|
13
|
+
info(message: LocalizationParam, title: LocalizationParam, options?: Partial<Confirmation.Options>): Observable<Confirmation.Status>;
|
|
14
|
+
success(message: LocalizationParam, title: LocalizationParam, options?: Partial<Confirmation.Options>): Observable<Confirmation.Status>;
|
|
15
|
+
warn(message: LocalizationParam, title: LocalizationParam, options?: Partial<Confirmation.Options>): Observable<Confirmation.Status>;
|
|
16
|
+
error(message: LocalizationParam, title: LocalizationParam, options?: Partial<Confirmation.Options>): Observable<Confirmation.Status>;
|
|
17
|
+
show(message: LocalizationParam, title: LocalizationParam, severity?: Confirmation.Severity, options?: Partial<Confirmation.Options>): Observable<Confirmation.Status>;
|
|
18
|
+
private listenToEscape;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmationService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ConfirmationService>;
|
|
21
|
+
}
|
package/lib/services/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export * from './confirmation.service';
|
|
2
|
-
export * from './nav-items.service';
|
|
3
|
-
export * from './page-alert.service';
|
|
4
|
-
export * from './toaster.service';
|
|
5
|
-
export * from './user-menu.service';
|
|
1
|
+
export * from './confirmation.service';
|
|
2
|
+
export * from './nav-items.service';
|
|
3
|
+
export * from './page-alert.service';
|
|
4
|
+
export * from './toaster.service';
|
|
5
|
+
export * from './user-menu.service';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { NavItem } from '../models/nav-item';
|
|
2
|
-
import { AbstractMenuService } from './abstract-menu.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class NavItemsService extends AbstractMenuService<NavItem> {
|
|
5
|
-
protected baseClass: typeof NavItem;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NavItemsService, never>;
|
|
7
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<NavItemsService>;
|
|
8
|
-
}
|
|
1
|
+
import { NavItem } from '../models/nav-item';
|
|
2
|
+
import { AbstractMenuService } from './abstract-menu.service';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NavItemsService extends AbstractMenuService<NavItem> {
|
|
5
|
+
protected baseClass: typeof NavItem;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NavItemsService, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NavItemsService>;
|
|
8
|
+
}
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export interface PageAlert {
|
|
3
|
-
type: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
|
|
4
|
-
message: string;
|
|
5
|
-
dismissible?: boolean;
|
|
6
|
-
title?: string;
|
|
7
|
-
messageLocalizationParams?: string[];
|
|
8
|
-
titleLocalizationParams?: string[];
|
|
9
|
-
}
|
|
10
|
-
export declare class PageAlertService {
|
|
11
|
-
private alerts;
|
|
12
|
-
alerts$: import("rxjs").Observable<PageAlert[]>;
|
|
13
|
-
constructor();
|
|
14
|
-
show(alert: PageAlert): void;
|
|
15
|
-
remove(index: number): void;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PageAlertService, never>;
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PageAlertService>;
|
|
18
|
-
}
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export interface PageAlert {
|
|
3
|
+
type: 'primary' | 'secondary' | 'success' | 'danger' | 'warning' | 'info' | 'light' | 'dark';
|
|
4
|
+
message: string;
|
|
5
|
+
dismissible?: boolean;
|
|
6
|
+
title?: string;
|
|
7
|
+
messageLocalizationParams?: string[];
|
|
8
|
+
titleLocalizationParams?: string[];
|
|
9
|
+
}
|
|
10
|
+
export declare class PageAlertService {
|
|
11
|
+
private alerts;
|
|
12
|
+
alerts$: import("rxjs").Observable<PageAlert[]>;
|
|
13
|
+
constructor();
|
|
14
|
+
show(alert: PageAlert): void;
|
|
15
|
+
remove(index: number): void;
|
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageAlertService, never>;
|
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PageAlertService>;
|
|
18
|
+
}
|