@abp/ng.theme.shared 4.4.1 → 5.0.0-beta.1-1
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/abp-ng.theme.shared.d.ts +1 -34
- package/bundles/abp-ng.theme.shared-extensions.umd.js +473 -361
- package/bundles/abp-ng.theme.shared-extensions.umd.js.map +1 -1
- package/bundles/abp-ng.theme.shared-testing.umd.js +33 -7
- package/bundles/abp-ng.theme.shared-testing.umd.js.map +1 -1
- package/bundles/abp-ng.theme.shared.umd.js +691 -1078
- package/bundles/abp-ng.theme.shared.umd.js.map +1 -1
- package/esm2015/abp-ng.theme.shared.js +1 -34
- package/esm2015/abp-ng.theme.shared.js.map +1 -0
- package/esm2015/extensions/abp-ng.theme.shared-extensions.js +1 -5
- package/esm2015/extensions/abp-ng.theme.shared-extensions.js.map +1 -0
- package/esm2015/extensions/lib/adapters/date-time.adapter.js +7 -4
- package/esm2015/extensions/lib/adapters/date-time.adapter.js.map +1 -0
- package/esm2015/extensions/lib/adapters/date.adapter.js +7 -4
- package/esm2015/extensions/lib/adapters/date.adapter.js.map +1 -0
- package/esm2015/extensions/lib/adapters/time.adapter.js +7 -4
- package/esm2015/extensions/lib/adapters/time.adapter.js.map +1 -0
- package/esm2015/extensions/lib/components/abstract-actions/abstract-actions.component.js +9 -12
- package/esm2015/extensions/lib/components/abstract-actions/abstract-actions.component.js.map +1 -0
- package/esm2015/extensions/lib/components/date-time-picker/date-time-picker.component.js +74 -35
- package/esm2015/extensions/lib/components/date-time-picker/date-time-picker.component.js.map +1 -0
- package/esm2015/extensions/lib/components/extensible-form/extensible-form-prop.component.js +49 -34
- package/esm2015/extensions/lib/components/extensible-form/extensible-form-prop.component.js.map +1 -0
- package/esm2015/extensions/lib/components/extensible-form/extensible-form.component.js +42 -30
- package/esm2015/extensions/lib/components/extensible-form/extensible-form.component.js.map +1 -0
- package/esm2015/extensions/lib/components/extensible-table/extensible-table.component.js +59 -28
- package/esm2015/extensions/lib/components/extensible-table/extensible-table.component.js.map +1 -0
- package/esm2015/extensions/lib/components/grid-actions/grid-actions.component.js +34 -23
- package/esm2015/extensions/lib/components/grid-actions/grid-actions.component.js.map +1 -0
- package/esm2015/extensions/lib/components/page-toolbar/page-toolbar.component.js +26 -18
- package/esm2015/extensions/lib/components/page-toolbar/page-toolbar.component.js.map +1 -0
- package/esm2015/extensions/lib/constants/extra-properties.js +1 -1
- package/esm2015/extensions/lib/constants/extra-properties.js.map +1 -0
- package/esm2015/extensions/lib/directives/disabled.directive.js +15 -12
- package/esm2015/extensions/lib/directives/disabled.directive.js.map +1 -0
- package/esm2015/extensions/lib/directives/prop-data.directive.js +21 -18
- package/esm2015/extensions/lib/directives/prop-data.directive.js.map +1 -0
- package/esm2015/extensions/lib/enums/props.enum.js +1 -1
- package/esm2015/extensions/lib/enums/props.enum.js.map +1 -0
- package/esm2015/extensions/lib/models/actions.js +1 -2
- package/esm2015/extensions/lib/models/actions.js.map +1 -0
- package/esm2015/extensions/lib/models/entity-actions.js +1 -1
- package/esm2015/extensions/lib/models/entity-actions.js.map +1 -0
- package/esm2015/extensions/lib/models/entity-props.js +3 -1
- package/esm2015/extensions/lib/models/entity-props.js.map +1 -0
- package/esm2015/extensions/lib/models/form-props.js +1 -2
- package/esm2015/extensions/lib/models/form-props.js.map +1 -0
- package/esm2015/extensions/lib/models/internal/object-extensions.js +1 -1
- package/esm2015/extensions/lib/models/internal/object-extensions.js.map +1 -0
- package/esm2015/extensions/lib/models/object-extensions.js +1 -1
- package/esm2015/extensions/lib/models/object-extensions.js.map +1 -0
- package/esm2015/extensions/lib/models/props.js +1 -2
- package/esm2015/extensions/lib/models/props.js.map +1 -0
- package/esm2015/extensions/lib/models/toolbar-actions.js +1 -1
- package/esm2015/extensions/lib/models/toolbar-actions.js.map +1 -0
- package/esm2015/extensions/lib/services/extensions.service.js +9 -7
- package/esm2015/extensions/lib/services/extensions.service.js.map +1 -0
- package/esm2015/extensions/lib/tokens/extensions.token.js +2 -1
- package/esm2015/extensions/lib/tokens/extensions.token.js.map +1 -0
- package/esm2015/extensions/lib/ui-extensions.module.js +75 -39
- package/esm2015/extensions/lib/ui-extensions.module.js.map +1 -0
- package/esm2015/extensions/lib/utils/actions.util.js +1 -1
- package/esm2015/extensions/lib/utils/actions.util.js.map +1 -0
- package/esm2015/extensions/lib/utils/enum.util.js +1 -1
- package/esm2015/extensions/lib/utils/enum.util.js.map +1 -0
- package/esm2015/extensions/lib/utils/factory.util.js +1 -1
- package/esm2015/extensions/lib/utils/factory.util.js.map +1 -0
- package/esm2015/extensions/lib/utils/form-props.util.js +1 -1
- package/esm2015/extensions/lib/utils/form-props.util.js.map +1 -0
- package/esm2015/extensions/lib/utils/localization.util.js +1 -1
- package/esm2015/extensions/lib/utils/localization.util.js.map +1 -0
- package/esm2015/extensions/lib/utils/props.util.js +1 -1
- package/esm2015/extensions/lib/utils/props.util.js.map +1 -0
- package/esm2015/extensions/lib/utils/state.util.js +1 -1
- package/esm2015/extensions/lib/utils/state.util.js.map +1 -0
- package/esm2015/extensions/lib/utils/typeahead.util.js +1 -1
- package/esm2015/extensions/lib/utils/typeahead.util.js.map +1 -0
- package/esm2015/extensions/lib/utils/validation.util.js +1 -1
- package/esm2015/extensions/lib/utils/validation.util.js.map +1 -0
- package/esm2015/extensions/public-api.js +1 -1
- package/esm2015/extensions/public-api.js.map +1 -0
- package/esm2015/lib/animations/bounce.animations.js +5 -5
- package/esm2015/lib/animations/bounce.animations.js.map +1 -0
- package/esm2015/lib/animations/collapse.animations.js +1 -1
- package/esm2015/lib/animations/collapse.animations.js.map +1 -0
- package/esm2015/lib/animations/fade.animations.js +1 -1
- package/esm2015/lib/animations/fade.animations.js.map +1 -0
- package/esm2015/lib/animations/index.js +1 -1
- package/esm2015/lib/animations/index.js.map +1 -0
- package/esm2015/lib/animations/modal.animations.js +1 -1
- package/esm2015/lib/animations/modal.animations.js.map +1 -0
- package/esm2015/lib/animations/slide.animations.js +1 -1
- package/esm2015/lib/animations/slide.animations.js.map +1 -0
- package/esm2015/lib/animations/toast.animations.js +1 -1
- package/esm2015/lib/animations/toast.animations.js.map +1 -0
- package/esm2015/lib/components/breadcrumb/breadcrumb.component.js +19 -21
- package/esm2015/lib/components/breadcrumb/breadcrumb.component.js.map +1 -0
- package/esm2015/lib/components/breadcrumb-items/breadcrumb-items.component.js +22 -0
- package/esm2015/lib/components/breadcrumb-items/breadcrumb-items.component.js.map +1 -0
- package/esm2015/lib/components/button/button.component.js +57 -30
- package/esm2015/lib/components/button/button.component.js.map +1 -0
- package/esm2015/lib/components/confirmation/confirmation.component.js +14 -8
- package/esm2015/lib/components/confirmation/confirmation.component.js.map +1 -0
- package/esm2015/lib/components/http-error-wrapper/http-error-wrapper.component.js +25 -20
- package/esm2015/lib/components/http-error-wrapper/http-error-wrapper.component.js.map +1 -0
- package/esm2015/lib/components/index.js +3 -6
- package/esm2015/lib/components/index.js.map +1 -0
- package/esm2015/lib/components/loader-bar/loader-bar.component.js +34 -21
- package/esm2015/lib/components/loader-bar/loader-bar.component.js.map +1 -0
- package/esm2015/lib/components/loading/loading.component.js +20 -13
- package/esm2015/lib/components/loading/loading.component.js.map +1 -0
- package/esm2015/lib/components/modal/modal-close.directive.js +14 -10
- package/esm2015/lib/components/modal/modal-close.directive.js.map +1 -0
- package/esm2015/lib/components/modal/modal-ref.service.js +7 -5
- package/esm2015/lib/components/modal/modal-ref.service.js.map +1 -0
- package/esm2015/lib/components/modal/modal.component.js +57 -65
- package/esm2015/lib/components/modal/modal.component.js.map +1 -0
- package/esm2015/lib/components/toast/toast.component.js +25 -22
- package/esm2015/lib/components/toast/toast.component.js.map +1 -0
- package/esm2015/lib/components/toast-container/toast-container.component.js +25 -16
- package/esm2015/lib/components/toast-container/toast-container.component.js.map +1 -0
- package/esm2015/lib/constants/styles.js +1 -1
- package/esm2015/lib/constants/styles.js.map +1 -0
- package/esm2015/lib/constants/validation.js +1 -1
- package/esm2015/lib/constants/validation.js.map +1 -0
- package/esm2015/lib/directives/ellipsis.directive.js +40 -24
- package/esm2015/lib/directives/ellipsis.directive.js.map +1 -0
- package/esm2015/lib/directives/index.js +2 -3
- package/esm2015/lib/directives/index.js.map +1 -0
- package/esm2015/lib/directives/loading.directive.js +20 -17
- package/esm2015/lib/directives/loading.directive.js.map +1 -0
- package/esm2015/lib/directives/ngx-datatable-default.directive.js +21 -16
- package/esm2015/lib/directives/ngx-datatable-default.directive.js.map +1 -0
- package/esm2015/lib/directives/ngx-datatable-list.directive.js +22 -18
- package/esm2015/lib/directives/ngx-datatable-list.directive.js.map +1 -0
- package/esm2015/lib/enums/index.js +1 -1
- package/esm2015/lib/enums/index.js.map +1 -0
- package/esm2015/lib/enums/route-names.js +1 -1
- package/esm2015/lib/enums/route-names.js.map +1 -0
- package/esm2015/lib/handlers/error.handler.js +28 -37
- package/esm2015/lib/handlers/error.handler.js.map +1 -0
- package/esm2015/lib/handlers/index.js +1 -1
- package/esm2015/lib/handlers/index.js.map +1 -0
- package/esm2015/lib/handlers/lazy-style.handler.js +9 -10
- package/esm2015/lib/handlers/lazy-style.handler.js.map +1 -0
- package/esm2015/lib/models/common.js +1 -1
- package/esm2015/lib/models/common.js.map +1 -0
- package/esm2015/lib/models/confirmation.js +1 -1
- package/esm2015/lib/models/confirmation.js.map +1 -0
- package/esm2015/lib/models/index.js +1 -1
- package/esm2015/lib/models/index.js.map +1 -0
- package/esm2015/lib/models/nav-item.js +1 -1
- package/esm2015/lib/models/nav-item.js.map +1 -0
- package/esm2015/lib/models/statistics.js +1 -1
- package/esm2015/lib/models/statistics.js.map +1 -0
- package/esm2015/lib/models/toaster.js +1 -1
- package/esm2015/lib/models/toaster.js.map +1 -0
- package/esm2015/lib/providers/index.js +1 -1
- package/esm2015/lib/providers/index.js.map +1 -0
- package/esm2015/lib/providers/ng-bootstrap-config.provider.js +1 -1
- package/esm2015/lib/providers/ng-bootstrap-config.provider.js.map +1 -0
- package/esm2015/lib/providers/route.provider.js +1 -1
- package/esm2015/lib/providers/route.provider.js.map +1 -0
- package/esm2015/lib/services/confirmation.service.js +7 -8
- package/esm2015/lib/services/confirmation.service.js.map +1 -0
- package/esm2015/lib/services/index.js +2 -3
- package/esm2015/lib/services/index.js.map +1 -0
- package/esm2015/lib/services/nav-items.service.js +7 -5
- package/esm2015/lib/services/nav-items.service.js.map +1 -0
- package/esm2015/lib/services/page-alert.service.js +7 -6
- package/esm2015/lib/services/page-alert.service.js.map +1 -0
- package/esm2015/lib/services/toaster.service.js +22 -21
- package/esm2015/lib/services/toaster.service.js.map +1 -0
- package/esm2015/lib/theme-shared.module.js +72 -39
- package/esm2015/lib/theme-shared.module.js.map +1 -0
- package/esm2015/lib/tokens/append-content.token.js +1 -3
- package/esm2015/lib/tokens/append-content.token.js.map +1 -0
- package/esm2015/lib/tokens/http-error.token.js +1 -1
- package/esm2015/lib/tokens/http-error.token.js.map +1 -0
- package/esm2015/lib/tokens/index.js +1 -1
- package/esm2015/lib/tokens/index.js.map +1 -0
- package/esm2015/lib/tokens/lazy-styles.token.js +1 -1
- package/esm2015/lib/tokens/lazy-styles.token.js.map +1 -0
- package/esm2015/lib/tokens/ngx-datatable-messages.token.js +1 -1
- package/esm2015/lib/tokens/ngx-datatable-messages.token.js.map +1 -0
- package/esm2015/lib/tokens/suppress-unsaved-changes-warning.token.js +1 -2
- package/esm2015/lib/tokens/suppress-unsaved-changes-warning.token.js.map +1 -0
- package/esm2015/lib/utils/date-parser-formatter.js +13 -10
- package/esm2015/lib/utils/date-parser-formatter.js.map +1 -0
- package/esm2015/lib/utils/index.js +1 -2
- package/esm2015/lib/utils/index.js.map +1 -0
- package/esm2015/lib/utils/validation-utils.js +1 -1
- package/esm2015/lib/utils/validation-utils.js.map +1 -0
- package/esm2015/public-api.js +1 -1
- package/esm2015/public-api.js.map +1 -0
- package/esm2015/testing/abp-ng.theme.shared-testing.js +1 -1
- package/esm2015/testing/abp-ng.theme.shared-testing.js.map +1 -0
- package/esm2015/testing/lib/models/config.js +1 -1
- package/esm2015/testing/lib/models/config.js.map +1 -0
- package/esm2015/testing/lib/models/index.js +1 -1
- package/esm2015/testing/lib/models/index.js.map +1 -0
- package/esm2015/testing/lib/theme-shared-testing.module.js +12 -7
- package/esm2015/testing/lib/theme-shared-testing.module.js.map +1 -0
- package/esm2015/testing/public-api.js +1 -1
- package/esm2015/testing/public-api.js.map +1 -0
- package/extensions/abp-ng.theme.shared-extensions.d.ts +1 -4
- package/extensions/lib/adapters/date-time.adapter.d.ts +3 -0
- package/extensions/lib/adapters/date.adapter.d.ts +3 -0
- package/extensions/lib/adapters/time.adapter.d.ts +3 -0
- package/extensions/lib/components/abstract-actions/abstract-actions.component.d.ts +3 -0
- package/extensions/lib/components/date-time-picker/date-time-picker.component.d.ts +3 -0
- package/extensions/lib/components/extensible-form/extensible-form-prop.component.d.ts +3 -0
- package/extensions/lib/components/extensible-form/extensible-form.component.d.ts +3 -0
- package/extensions/lib/components/extensible-table/extensible-table.component.d.ts +9 -4
- package/extensions/lib/components/grid-actions/grid-actions.component.d.ts +3 -0
- package/extensions/lib/components/page-toolbar/page-toolbar.component.d.ts +3 -0
- package/extensions/lib/directives/disabled.directive.d.ts +3 -0
- package/extensions/lib/directives/prop-data.directive.d.ts +3 -0
- package/extensions/lib/models/entity-props.d.ts +5 -2
- package/extensions/lib/services/extensions.service.d.ts +3 -0
- package/extensions/lib/tokens/extensions.token.d.ts +3 -1
- package/extensions/lib/ui-extensions.module.d.ts +19 -0
- package/extensions/lib/utils/state.util.d.ts +1 -1
- package/extensions/package.json +0 -1
- package/fesm2015/abp-ng.theme.shared-extensions.js +540 -409
- package/fesm2015/abp-ng.theme.shared-extensions.js.map +1 -1
- package/fesm2015/abp-ng.theme.shared-testing.js +11 -6
- package/fesm2015/abp-ng.theme.shared-testing.js.map +1 -1
- package/fesm2015/abp-ng.theme.shared.js +645 -917
- package/fesm2015/abp-ng.theme.shared.js.map +1 -1
- package/lib/components/breadcrumb/breadcrumb.component.d.ts +3 -0
- package/lib/components/breadcrumb-items/breadcrumb-items.component.d.ts +6 -0
- package/lib/components/button/button.component.d.ts +4 -1
- package/lib/components/confirmation/confirmation.component.d.ts +3 -0
- package/lib/components/http-error-wrapper/http-error-wrapper.component.d.ts +6 -3
- package/lib/components/index.d.ts +2 -5
- package/lib/components/loader-bar/loader-bar.component.d.ts +3 -0
- package/lib/components/loading/loading.component.d.ts +4 -4
- package/lib/components/modal/modal-close.directive.d.ts +3 -0
- package/lib/components/modal/modal-ref.service.d.ts +3 -0
- package/lib/components/modal/modal.component.d.ts +4 -18
- package/lib/components/toast/toast.component.d.ts +5 -4
- package/lib/components/toast-container/toast-container.component.d.ts +5 -1
- package/lib/directives/ellipsis.directive.d.ts +6 -0
- package/lib/directives/index.d.ts +1 -2
- package/lib/directives/loading.directive.d.ts +3 -0
- package/lib/directives/ngx-datatable-default.directive.d.ts +3 -0
- package/lib/directives/ngx-datatable-list.directive.d.ts +3 -0
- package/lib/handlers/error.handler.d.ts +9 -7
- package/lib/handlers/lazy-style.handler.d.ts +3 -0
- package/lib/models/confirmation.d.ts +3 -3
- package/lib/models/toaster.d.ts +5 -5
- package/lib/providers/ng-bootstrap-config.provider.d.ts +1 -1
- package/lib/providers/route.provider.d.ts +1 -1
- package/lib/services/confirmation.service.d.ts +3 -0
- package/lib/services/index.d.ts +1 -2
- package/lib/services/nav-items.service.d.ts +3 -0
- package/lib/services/page-alert.service.d.ts +3 -0
- package/lib/services/toaster.service.d.ts +4 -1
- package/lib/theme-shared.module.d.ts +26 -0
- package/lib/utils/date-parser-formatter.d.ts +3 -0
- package/lib/utils/index.d.ts +0 -1
- package/package.json +4 -6
- package/testing/abp-ng.theme.shared-testing.d.ts +1 -0
- package/testing/lib/theme-shared-testing.module.d.ts +6 -0
- package/testing/package.json +0 -1
- package/abp-ng.theme.shared.metadata.json +0 -1
- package/bundles/abp-ng.theme.shared-extensions-testing.umd.js +0 -28
- package/bundles/abp-ng.theme.shared-extensions-testing.umd.js.map +0 -1
- package/bundles/abp-ng.theme.shared-extensions-testing.umd.min.js +0 -2
- package/bundles/abp-ng.theme.shared-extensions-testing.umd.min.js.map +0 -1
- package/bundles/abp-ng.theme.shared-extensions.umd.min.js +0 -17
- package/bundles/abp-ng.theme.shared-extensions.umd.min.js.map +0 -1
- package/bundles/abp-ng.theme.shared-testing.umd.min.js +0 -2
- package/bundles/abp-ng.theme.shared-testing.umd.min.js.map +0 -1
- package/bundles/abp-ng.theme.shared.umd.min.js +0 -2
- package/bundles/abp-ng.theme.shared.umd.min.js.map +0 -1
- package/esm2015/extensions/testing/abp-ng.theme.shared-extensions-testing.js +0 -5
- package/esm2015/extensions/testing/lib/ui-extensions-testing.module.js +0 -11
- package/esm2015/extensions/testing/public-api.js +0 -2
- package/esm2015/lib/components/chart/chart.component.js +0 -120
- package/esm2015/lib/components/modal/modal-container.component.js +0 -16
- package/esm2015/lib/components/sort-order-icon/sort-order-icon.component.js +0 -62
- package/esm2015/lib/components/table/table.component.js +0 -71
- package/esm2015/lib/components/table-empty-message/table-empty-message.component.js +0 -29
- package/esm2015/lib/directives/table-sort.directive.js +0 -43
- package/esm2015/lib/services/modal.service.js +0 -46
- package/esm2015/lib/utils/widget-utils.js +0 -13
- package/extensions/abp-ng.theme.shared-extensions.metadata.json +0 -1
- package/extensions/testing/abp-ng.theme.shared-extensions-testing.d.ts +0 -4
- package/extensions/testing/abp-ng.theme.shared-extensions-testing.metadata.json +0 -1
- package/extensions/testing/lib/ui-extensions-testing.module.d.ts +0 -2
- package/extensions/testing/package.json +0 -11
- package/extensions/testing/public-api.d.ts +0 -1
- package/fesm2015/abp-ng.theme.shared-extensions-testing.js +0 -18
- package/fesm2015/abp-ng.theme.shared-extensions-testing.js.map +0 -1
- package/lib/components/chart/chart.component.d.ts +0 -30
- package/lib/components/modal/modal-container.component.d.ts +0 -7
- package/lib/components/sort-order-icon/sort-order-icon.component.d.ts +0 -18
- package/lib/components/table/table.component.d.ts +0 -30
- package/lib/components/table-empty-message/table-empty-message.component.d.ts +0 -7
- package/lib/directives/table-sort.directive.d.ts +0 -21
- package/lib/services/modal.service.d.ts +0 -16
- package/lib/utils/widget-utils.d.ts +0 -3
- package/testing/abp-ng.theme.shared-testing.metadata.json +0 -1
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { animation, style, animate, keyframes, trigger, state, transition, useAnimation, query } from '@angular/animations';
|
|
2
|
-
import { __rest } from 'tslib';
|
|
3
|
-
import * as i1 from '@abp/ng.core';
|
|
4
|
-
import { getRoutePath, SubscriptionService, RoutesService, RouterEvents, HttpWaitService, RouterWaitService, PROJECTION_STRATEGY, ContentProjectionService, uuid, LocalizationService, SortPipe, RestOccurError, AuthService, getLocaleDirection, LazyLoadService, LOADING_STRATEGY, InternalStore, DomInsertionService, CONTENT_STRATEGY, ConfigStateService, CoreModule, noop } from '@abp/ng.core';
|
|
5
2
|
import * as i0 from '@angular/core';
|
|
6
|
-
import { Component,
|
|
7
|
-
import
|
|
8
|
-
import { startWith, map, debounceTime, filter, takeUntil, distinctUntilChanged, take, catchError, switchMap } from 'rxjs/operators';
|
|
9
|
-
import { ReplaySubject, BehaviorSubject, fromEvent, Subscription, combineLatest, timer, Subject, throwError, Observable, of } from 'rxjs';
|
|
10
|
-
import snq from 'snq';
|
|
11
|
-
import { NgbModal, NgbInputDatepickerConfig, NgbTypeaheadConfig, NgbDateParserFormatter, NgbPaginationModule } from '@ng-bootstrap/ng-bootstrap';
|
|
3
|
+
import { Component, Input, ChangeDetectionStrategy, EventEmitter, Output, ViewChild, ViewEncapsulation, Injectable, InjectionToken, Optional, Inject, ContentChild, Directive, HostListener, HostBinding, NgModule, ComponentFactoryResolver, RendererFactory2, ApplicationRef, APP_INITIALIZER, inject, LOCALE_ID, Injector } from '@angular/core';
|
|
4
|
+
import * as i1 from '@angular/common';
|
|
12
5
|
import { DOCUMENT, formatDate, DatePipe } from '@angular/common';
|
|
13
|
-
import
|
|
14
|
-
import
|
|
6
|
+
import * as i1$1 from '@angular/router';
|
|
7
|
+
import { ResolveEnd } from '@angular/router';
|
|
8
|
+
import * as i2 from '@abp/ng.core';
|
|
9
|
+
import { getRoutePath, SubscriptionService, PROJECTION_STRATEGY, uuid, HttpErrorReporterService, RouterEvents, AuthService, LocalizationService, getLocaleDirection, LazyLoadService, LOADING_STRATEGY, RoutesService, InternalStore, DomInsertionService, CONTENT_STRATEGY, CoreModule, noop, ConfigStateService } from '@abp/ng.core';
|
|
10
|
+
import { __rest } from 'tslib';
|
|
11
|
+
import { startWith, map, debounceTime, filter, takeUntil, distinctUntilChanged, take, catchError, switchMap } from 'rxjs/operators';
|
|
12
|
+
import { fromEvent, Subscription, combineLatest, timer, ReplaySubject, Subject, throwError, Observable, of, BehaviorSubject } from 'rxjs';
|
|
13
|
+
import * as i3 from '@ng-bootstrap/ng-bootstrap';
|
|
14
|
+
import { NgbInputDatepickerConfig, NgbTypeaheadConfig, NgbDateParserFormatter, NgbPaginationModule } from '@ng-bootstrap/ng-bootstrap';
|
|
15
|
+
import * as i1$2 from '@swimlane/ngx-datatable';
|
|
16
|
+
import { ColumnMode, NgxDatatableModule } from '@swimlane/ngx-datatable';
|
|
15
17
|
import { HttpErrorResponse } from '@angular/common/http';
|
|
16
|
-
import * as i1$1 from '@ngxs/store';
|
|
17
|
-
import { ofActionSuccessful, Actions } from '@ngxs/store';
|
|
18
18
|
import { NgxValidateCoreModule, VALIDATION_BLUEPRINTS, VALIDATION_MAP_ERRORS_FN, defaultMapErrorsFn, VALIDATION_VALIDATE_ON_SUBMIT, validatePassword } from '@ngx-validate/core';
|
|
19
19
|
import { Validators } from '@angular/forms';
|
|
20
20
|
|
|
@@ -23,15 +23,15 @@ const bounceIn = animation([
|
|
|
23
23
|
animate('{{ time}} {{ easing }}', keyframes([
|
|
24
24
|
style({ opacity: '0', transform: '{{ transform }} scale(0.0)', offset: 0 }),
|
|
25
25
|
style({ opacity: '0', transform: '{{ transform }} scale(0.8)', offset: 0.5 }),
|
|
26
|
-
style({ opacity: '1', transform: '{{ transform }} scale(1.0)', offset: 1 })
|
|
27
|
-
]))
|
|
26
|
+
style({ opacity: '1', transform: '{{ transform }} scale(1.0)', offset: 1 }),
|
|
27
|
+
])),
|
|
28
28
|
], {
|
|
29
29
|
params: {
|
|
30
30
|
time: '350ms',
|
|
31
31
|
easing: 'cubic-bezier(.7,.31,.72,1.47)',
|
|
32
32
|
display: 'block',
|
|
33
|
-
transform: 'translate(-50%, -50%)'
|
|
34
|
-
}
|
|
33
|
+
transform: 'translate(-50%, -50%)',
|
|
34
|
+
},
|
|
35
35
|
});
|
|
36
36
|
|
|
37
37
|
const collapseY = animation([
|
|
@@ -148,6 +148,23 @@ const toastInOut = trigger('toastInOut', [
|
|
|
148
148
|
]),
|
|
149
149
|
]);
|
|
150
150
|
|
|
151
|
+
class BreadcrumbItemsComponent {
|
|
152
|
+
constructor() {
|
|
153
|
+
this.items = [];
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
BreadcrumbItemsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: BreadcrumbItemsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
157
|
+
BreadcrumbItemsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: BreadcrumbItemsComponent, selector: "abp-breadcrumb-items", inputs: { items: "items" }, ngImport: i0, template: "<ol class=\"breadcrumb\" *ngIf=\"items.length\">\n <li class=\"breadcrumb-item\">\n <a routerLink=\"/\"><i class=\"fa fa-home\"></i> </a>\n </li>\n <li\n *ngFor=\"let item of items; let last = last\"\n class=\"breadcrumb-item\"\n [class.active]=\"last\"\n aria-current=\"page\"\n >\n <ng-container\n *ngTemplateOutlet=\"item.path ? linkTemplate : textTemplate; context: { $implicit: item }\"\n ></ng-container>\n </li>\n</ol>\n\n<ng-template #linkTemplate let-item>\n <a [routerLink]=\"item.path\"> {{ item.name | abpLocalization }}</a>\n</ng-template>\n\n<ng-template #textTemplate let-item>\n {{ item.name | abpLocalization }}\n</ng-template>\n", directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "abpLocalization": i2.LocalizationPipe } });
|
|
158
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: BreadcrumbItemsComponent, decorators: [{
|
|
159
|
+
type: Component,
|
|
160
|
+
args: [{
|
|
161
|
+
selector: 'abp-breadcrumb-items',
|
|
162
|
+
templateUrl: './breadcrumb-items.component.html',
|
|
163
|
+
}]
|
|
164
|
+
}], propDecorators: { items: [{
|
|
165
|
+
type: Input
|
|
166
|
+
}] } });
|
|
167
|
+
|
|
151
168
|
class BreadcrumbComponent {
|
|
152
169
|
constructor(cdRef, router, routes, subscription, routerEvents) {
|
|
153
170
|
this.cdRef = cdRef;
|
|
@@ -158,15 +175,13 @@ class BreadcrumbComponent {
|
|
|
158
175
|
this.segments = [];
|
|
159
176
|
}
|
|
160
177
|
ngOnInit() {
|
|
161
|
-
this.subscription.addOne(this.routerEvents.getNavigationEvents('End').pipe(
|
|
162
|
-
// tslint:disable-next-line:deprecation
|
|
163
|
-
startWith(null), map(() => this.routes.search({ path: getRoutePath(this.router) }))), route => {
|
|
178
|
+
this.subscription.addOne(this.routerEvents.getNavigationEvents('End').pipe(startWith(null), map(() => this.routes.search({ path: getRoutePath(this.router) }))), route => {
|
|
164
179
|
this.segments = [];
|
|
165
180
|
if (route) {
|
|
166
181
|
let node = { parent: route };
|
|
167
182
|
while (node.parent) {
|
|
168
183
|
node = node.parent;
|
|
169
|
-
const { parent, children, isLeaf } = node, segment = __rest(node, ["parent", "children", "isLeaf"]);
|
|
184
|
+
const { parent, children, isLeaf, path } = node, segment = __rest(node, ["parent", "children", "isLeaf", "path"]);
|
|
170
185
|
if (!isAdministration(segment))
|
|
171
186
|
this.segments.unshift(segment);
|
|
172
187
|
}
|
|
@@ -175,21 +190,17 @@ class BreadcrumbComponent {
|
|
|
175
190
|
});
|
|
176
191
|
}
|
|
177
192
|
}
|
|
178
|
-
BreadcrumbComponent
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
{ type: RoutesService },
|
|
190
|
-
{ type: SubscriptionService },
|
|
191
|
-
{ type: RouterEvents }
|
|
192
|
-
];
|
|
193
|
+
BreadcrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: BreadcrumbComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i1$1.Router }, { token: i2.RoutesService }, { token: i2.SubscriptionService }, { token: i2.RouterEvents }], target: i0.ɵɵFactoryTarget.Component });
|
|
194
|
+
BreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: BreadcrumbComponent, selector: "abp-breadcrumb", providers: [SubscriptionService], ngImport: i0, template: "<abp-breadcrumb-items [items]=\"segments\"></abp-breadcrumb-items>\n", components: [{ type: BreadcrumbItemsComponent, selector: "abp-breadcrumb-items", inputs: ["items"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: BreadcrumbComponent, decorators: [{
|
|
196
|
+
type: Component,
|
|
197
|
+
args: [{
|
|
198
|
+
selector: 'abp-breadcrumb',
|
|
199
|
+
templateUrl: './breadcrumb.component.html',
|
|
200
|
+
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
201
|
+
providers: [SubscriptionService],
|
|
202
|
+
}]
|
|
203
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i1$1.Router }, { type: i2.RoutesService }, { type: i2.SubscriptionService }, { type: i2.RouterEvents }]; } });
|
|
193
204
|
function isAdministration(route) {
|
|
194
205
|
return route.name === "AbpUiNavigation::Menu:Administration" /* Administration */;
|
|
195
206
|
}
|
|
@@ -202,11 +213,9 @@ class ButtonComponent {
|
|
|
202
213
|
this.buttonType = 'button';
|
|
203
214
|
this.loading = false;
|
|
204
215
|
this.disabled = false;
|
|
205
|
-
// tslint:disable
|
|
206
216
|
this.click = new EventEmitter();
|
|
207
217
|
this.focus = new EventEmitter();
|
|
208
218
|
this.blur = new EventEmitter();
|
|
209
|
-
// tslint:enable
|
|
210
219
|
this.abpClick = new EventEmitter();
|
|
211
220
|
this.abpFocus = new EventEmitter();
|
|
212
221
|
this.abpBlur = new EventEmitter();
|
|
@@ -222,10 +231,8 @@ class ButtonComponent {
|
|
|
222
231
|
}
|
|
223
232
|
}
|
|
224
233
|
}
|
|
225
|
-
ButtonComponent
|
|
226
|
-
|
|
227
|
-
selector: 'abp-button',
|
|
228
|
-
template: `
|
|
234
|
+
ButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ButtonComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
235
|
+
ButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: ButtonComponent, selector: "abp-button", inputs: { buttonId: "buttonId", buttonClass: "buttonClass", buttonType: "buttonType", iconClass: "iconClass", loading: "loading", disabled: "disabled", attributes: "attributes" }, outputs: { click: "click", focus: "focus", blur: "blur", abpClick: "abpClick", abpFocus: "abpFocus", abpBlur: "abpBlur" }, viewQueries: [{ propertyName: "buttonRef", first: true, predicate: ["button"], descendants: true, static: true }], ngImport: i0, template: `
|
|
229
236
|
<button
|
|
230
237
|
#button
|
|
231
238
|
[id]="buttonId"
|
|
@@ -238,157 +245,56 @@ ButtonComponent.decorators = [
|
|
|
238
245
|
>
|
|
239
246
|
<i [ngClass]="icon" class="mr-1"></i><ng-content></ng-content>
|
|
240
247
|
</button>
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
}
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
this.onDataSelect.emit({
|
|
292
|
-
originalEvent: event,
|
|
293
|
-
element: element[0],
|
|
294
|
-
dataset,
|
|
295
|
-
});
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
};
|
|
299
|
-
this.initChart = () => {
|
|
300
|
-
const opts = this.options || {};
|
|
301
|
-
opts.responsive = this.responsive;
|
|
302
|
-
// allows chart to resize in responsive mode
|
|
303
|
-
if (opts.responsive && (this.height || this.width)) {
|
|
304
|
-
opts.maintainAspectRatio = false;
|
|
305
|
-
}
|
|
306
|
-
this.chart = new Chart(this.canvas, {
|
|
307
|
-
type: this.type,
|
|
308
|
-
data: this.data,
|
|
309
|
-
options: this.options,
|
|
310
|
-
plugins: this.plugins,
|
|
311
|
-
});
|
|
312
|
-
this.cdRef.detectChanges();
|
|
313
|
-
};
|
|
314
|
-
this.generateLegend = () => {
|
|
315
|
-
if (this.chart) {
|
|
316
|
-
return this.chart.generateLegend();
|
|
317
|
-
}
|
|
318
|
-
};
|
|
319
|
-
this.refresh = () => {
|
|
320
|
-
if (this.chart) {
|
|
321
|
-
this.chart.update();
|
|
322
|
-
this.cdRef.detectChanges();
|
|
323
|
-
}
|
|
324
|
-
};
|
|
325
|
-
this.reinit = () => {
|
|
326
|
-
if (this.chart) {
|
|
327
|
-
this.chart.destroy();
|
|
328
|
-
this.initChart();
|
|
329
|
-
}
|
|
330
|
-
};
|
|
331
|
-
}
|
|
332
|
-
get data() {
|
|
333
|
-
return this._data;
|
|
334
|
-
}
|
|
335
|
-
set data(val) {
|
|
336
|
-
this._data = val;
|
|
337
|
-
this.reinit();
|
|
338
|
-
}
|
|
339
|
-
get canvas() {
|
|
340
|
-
return this.el.nativeElement.children[0].children[0];
|
|
341
|
-
}
|
|
342
|
-
get base64Image() {
|
|
343
|
-
return this.chart.toBase64Image();
|
|
344
|
-
}
|
|
345
|
-
ngAfterViewInit() {
|
|
346
|
-
chartJsLoaded$.subscribe(() => {
|
|
347
|
-
this.testChartJs();
|
|
348
|
-
this.initChart();
|
|
349
|
-
this._initialized = true;
|
|
350
|
-
});
|
|
351
|
-
}
|
|
352
|
-
testChartJs() {
|
|
353
|
-
try {
|
|
354
|
-
// tslint:disable-next-line: no-unused-expression
|
|
355
|
-
Chart;
|
|
356
|
-
}
|
|
357
|
-
catch (error) {
|
|
358
|
-
throw new Error(`Chart is not found. Import the Chart from app.module like shown below:
|
|
359
|
-
import('chart.js');
|
|
360
|
-
`);
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
ngOnDestroy() {
|
|
364
|
-
if (this.chart) {
|
|
365
|
-
this.chart.destroy();
|
|
366
|
-
this._initialized = false;
|
|
367
|
-
this.chart = null;
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
}
|
|
371
|
-
ChartComponent.decorators = [
|
|
372
|
-
{ type: Component, args: [{
|
|
373
|
-
selector: 'abp-chart',
|
|
374
|
-
template: "<div\n style=\"position:relative\"\n [style.width]=\"responsive && !width ? null : width\"\n [style.height]=\"responsive && !height ? null : height\"\n>\n <canvas\n [attr.width]=\"responsive && !width ? null : width\"\n [attr.height]=\"responsive && !height ? null : height\"\n (click)=\"onCanvasClick($event)\"\n ></canvas>\n</div>\n"
|
|
375
|
-
},] }
|
|
376
|
-
];
|
|
377
|
-
ChartComponent.ctorParameters = () => [
|
|
378
|
-
{ type: ElementRef },
|
|
379
|
-
{ type: ChangeDetectorRef }
|
|
380
|
-
];
|
|
381
|
-
ChartComponent.propDecorators = {
|
|
382
|
-
type: [{ type: Input }],
|
|
383
|
-
options: [{ type: Input }],
|
|
384
|
-
plugins: [{ type: Input }],
|
|
385
|
-
width: [{ type: Input }],
|
|
386
|
-
height: [{ type: Input }],
|
|
387
|
-
responsive: [{ type: Input }],
|
|
388
|
-
onDataSelect: [{ type: Output }],
|
|
389
|
-
initialized: [{ type: Output }],
|
|
390
|
-
data: [{ type: Input }]
|
|
391
|
-
};
|
|
248
|
+
`, isInline: true, directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2.StopPropagationDirective, selector: "[click.stop]", outputs: ["click.stop"] }] });
|
|
249
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ButtonComponent, decorators: [{
|
|
250
|
+
type: Component,
|
|
251
|
+
args: [{
|
|
252
|
+
selector: 'abp-button',
|
|
253
|
+
template: `
|
|
254
|
+
<button
|
|
255
|
+
#button
|
|
256
|
+
[id]="buttonId"
|
|
257
|
+
[attr.type]="buttonType"
|
|
258
|
+
[ngClass]="buttonClass"
|
|
259
|
+
[disabled]="loading || disabled"
|
|
260
|
+
(click.stop)="click.next($event); abpClick.next($event)"
|
|
261
|
+
(focus)="focus.next($event); abpFocus.next($event)"
|
|
262
|
+
(blur)="blur.next($event); abpBlur.next($event)"
|
|
263
|
+
>
|
|
264
|
+
<i [ngClass]="icon" class="mr-1"></i><ng-content></ng-content>
|
|
265
|
+
</button>
|
|
266
|
+
`,
|
|
267
|
+
}]
|
|
268
|
+
}], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { buttonId: [{
|
|
269
|
+
type: Input
|
|
270
|
+
}], buttonClass: [{
|
|
271
|
+
type: Input
|
|
272
|
+
}], buttonType: [{
|
|
273
|
+
type: Input
|
|
274
|
+
}], iconClass: [{
|
|
275
|
+
type: Input
|
|
276
|
+
}], loading: [{
|
|
277
|
+
type: Input
|
|
278
|
+
}], disabled: [{
|
|
279
|
+
type: Input
|
|
280
|
+
}], attributes: [{
|
|
281
|
+
type: Input
|
|
282
|
+
}], click: [{
|
|
283
|
+
type: Output
|
|
284
|
+
}], focus: [{
|
|
285
|
+
type: Output
|
|
286
|
+
}], blur: [{
|
|
287
|
+
type: Output
|
|
288
|
+
}], abpClick: [{
|
|
289
|
+
type: Output
|
|
290
|
+
}], abpFocus: [{
|
|
291
|
+
type: Output
|
|
292
|
+
}], abpBlur: [{
|
|
293
|
+
type: Output
|
|
294
|
+
}], buttonRef: [{
|
|
295
|
+
type: ViewChild,
|
|
296
|
+
args: ['button', { static: true }]
|
|
297
|
+
}] } });
|
|
392
298
|
|
|
393
299
|
var Confirmation;
|
|
394
300
|
(function (Confirmation) {
|
|
@@ -424,13 +330,16 @@ class ConfirmationComponent {
|
|
|
424
330
|
}
|
|
425
331
|
}
|
|
426
332
|
}
|
|
427
|
-
ConfirmationComponent
|
|
428
|
-
{ type:
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
333
|
+
ConfirmationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ConfirmationComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
334
|
+
ConfirmationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: ConfirmationComponent, selector: "abp-confirmation", ngImport: i0, template: "<div class=\"confirmation\" *ngIf=\"confirmation$ | async as data\">\n <div\n class=\"confirmation-backdrop\"\n (click)=\"data.options?.dismissible ? close(dismiss) : null\"\n ></div>\n <div class=\"confirmation-dialog\">\n <div class=\"icon-container\" [ngClass]=\"data.severity\" *ngIf=\"data.severity\">\n <i class=\"fa icon\" [ngClass]=\"getIconClass(data)\"></i>\n </div>\n <div class=\"content\">\n <h1\n class=\"title\"\n *ngIf=\"data.title\"\n [innerHTML]=\"data.title | abpLocalization: data.options?.titleLocalizationParams\"\n ></h1>\n <p\n class=\"message\"\n *ngIf=\"data.message\"\n [innerHTML]=\"data.message | abpLocalization: data.options?.messageLocalizationParams\"\n ></p>\n </div>\n <div class=\"footer\">\n <button\n id=\"cancel\"\n class=\"confirmation-button confirmation-button--reject\"\n [innerHTML]=\"data.options?.cancelText || 'AbpUi::Cancel' | abpLocalization\"\n *ngIf=\"!data?.options?.hideCancelBtn\"\n (click)=\"close(reject)\"\n ></button>\n <button\n id=\"confirm\"\n class=\"confirmation-button confirmation-button--approve\"\n [innerHTML]=\"data.options?.yesText || 'AbpUi::Yes' | abpLocalization\"\n *ngIf=\"!data?.options?.hideYesBtn\"\n (click)=\"close(confirm)\"\n ></button>\n </div>\n </div>\n</div>\n", styles: [".confirmation{position:fixed;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center;z-index:1060}.confirmation .confirmation-backdrop{position:fixed;top:0;left:0;width:100vw;height:100vh;z-index:1061!important}.confirmation .confirmation-dialog{display:flex;flex-direction:column;margin:20px auto;padding:0;width:450px;min-height:300px;z-index:1062!important}@media screen and (max-width: 500px){.confirmation .confirmation-dialog{width:90vw}}.confirmation .confirmation-dialog .icon-container{display:flex;align-items:center;justify-content:center;margin:0 0 10px;padding:20px}.confirmation .confirmation-dialog .icon-container .icon{width:100px;height:100px;stroke-width:1;font-size:80px;text-align:center}.confirmation .confirmation-dialog .content{flex-grow:1;display:block}.confirmation .confirmation-dialog .content .title{display:block;margin:0;padding:0;font-size:27px;font-weight:600;text-align:center}.confirmation .confirmation-dialog .content .message{display:block;margin:10px auto;padding:20px;font-size:16px;font-weight:400;text-align:center}.confirmation .confirmation-dialog .footer{display:flex;align-items:center;justify-content:flex-end;margin:10px 0 0;padding:20px;width:100%}.confirmation .confirmation-dialog .footer .confirmation-button{display:inline-block;margin:0 5px;padding:10px 20px;border:none;border-radius:6px;font-size:14px;font-weight:600}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i1.AsyncPipe, "abpLocalization": i2.LocalizationPipe } });
|
|
335
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ConfirmationComponent, decorators: [{
|
|
336
|
+
type: Component,
|
|
337
|
+
args: [{
|
|
338
|
+
selector: 'abp-confirmation',
|
|
339
|
+
templateUrl: './confirmation.component.html',
|
|
340
|
+
styleUrls: ['./confirmation.component.scss'],
|
|
341
|
+
}]
|
|
342
|
+
}] });
|
|
434
343
|
|
|
435
344
|
class HttpErrorWrapperComponent {
|
|
436
345
|
constructor(subscription) {
|
|
@@ -446,9 +355,9 @@ class HttpErrorWrapperComponent {
|
|
|
446
355
|
return this.status ? `[${this.status}]` : '';
|
|
447
356
|
}
|
|
448
357
|
ngOnInit() {
|
|
358
|
+
var _a;
|
|
449
359
|
this.backgroundColor =
|
|
450
|
-
|
|
451
|
-
'#fff';
|
|
360
|
+
((_a = window.getComputedStyle(document.body)) === null || _a === void 0 ? void 0 : _a.getPropertyValue('background-color')) || '#fff';
|
|
452
361
|
}
|
|
453
362
|
ngAfterViewInit() {
|
|
454
363
|
if (this.customComponent) {
|
|
@@ -464,26 +373,28 @@ class HttpErrorWrapperComponent {
|
|
|
464
373
|
const keyup$ = fromEvent(document, 'keyup').pipe(debounceTime(150), filter((key) => key && key.key === 'Escape'));
|
|
465
374
|
this.subscription.addOne(keyup$, () => this.destroy());
|
|
466
375
|
}
|
|
467
|
-
ngOnDestroy() {
|
|
376
|
+
ngOnDestroy() {
|
|
377
|
+
this.destroy();
|
|
378
|
+
}
|
|
468
379
|
destroy() {
|
|
469
380
|
this.destroy$.next();
|
|
470
381
|
this.destroy$.complete();
|
|
471
382
|
}
|
|
472
383
|
}
|
|
473
|
-
HttpErrorWrapperComponent
|
|
474
|
-
{ type:
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
]
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
];
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
};
|
|
384
|
+
HttpErrorWrapperComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: HttpErrorWrapperComponent, deps: [{ token: i2.SubscriptionService }], target: i0.ɵɵFactoryTarget.Component });
|
|
385
|
+
HttpErrorWrapperComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: HttpErrorWrapperComponent, selector: "abp-http-error-wrapper", providers: [SubscriptionService], viewQueries: [{ propertyName: "containerRef", first: true, predicate: ["container"], descendants: true }], ngImport: i0, template: "<div\n #container\n id=\"abp-http-error-container\"\n class=\"error\"\n [style.backgroundColor]=\"backgroundColor\"\n>\n <button\n *ngIf=\"!hideCloseIcon\"\n id=\"abp-close-button\"\n type=\"button\"\n class=\"close mr-2\"\n (click)=\"destroy()\"\n >\n <span aria-hidden=\"true\">×</span>\n </button>\n\n <div *ngIf=\"!customComponent\" class=\"row centered\">\n <div class=\"col-md-12\">\n <div class=\"error-template\">\n <h1>{{ statusText }} {{ title | abpLocalization }}</h1>\n <div class=\"error-details\">\n {{ details | abpLocalization }}\n </div>\n <div class=\"error-actions\">\n <a\n *ngIf=\"isHomeShow\"\n (click)=\"destroy()\"\n routerLink=\"/\"\n class=\"btn btn-primary btn-md mt-2\"\n ><span class=\"glyphicon glyphicon-home\"></span>\n {{ { key: '::Menu:Home', defaultValue: 'Home' } | abpLocalization }}\n </a>\n </div>\n </div>\n </div>\n </div>\n</div>\n", styles: [".error{position:fixed;top:0;width:100vw;height:100vh;z-index:999999}.centered{position:fixed;top:50%;left:50%;transform:translate(-50%,-50%)}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }], pipes: { "abpLocalization": i2.LocalizationPipe } });
|
|
386
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: HttpErrorWrapperComponent, decorators: [{
|
|
387
|
+
type: Component,
|
|
388
|
+
args: [{
|
|
389
|
+
selector: 'abp-http-error-wrapper',
|
|
390
|
+
templateUrl: './http-error-wrapper.component.html',
|
|
391
|
+
styleUrls: ['http-error-wrapper.component.scss'],
|
|
392
|
+
providers: [SubscriptionService],
|
|
393
|
+
}]
|
|
394
|
+
}], ctorParameters: function () { return [{ type: i2.SubscriptionService }]; }, propDecorators: { containerRef: [{
|
|
395
|
+
type: ViewChild,
|
|
396
|
+
args: ['container', { static: false }]
|
|
397
|
+
}] } });
|
|
487
398
|
|
|
488
399
|
class LoaderBarComponent {
|
|
489
400
|
constructor(router, cdRef, subscription, httpWaitService, routerWaitService) {
|
|
@@ -561,10 +472,25 @@ class LoaderBarComponent {
|
|
|
561
472
|
this.timer = timer(this.stopDelay).subscribe(this.clearProgress);
|
|
562
473
|
}
|
|
563
474
|
}
|
|
564
|
-
LoaderBarComponent
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
475
|
+
LoaderBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LoaderBarComponent, deps: [{ token: i1$1.Router }, { token: i0.ChangeDetectorRef }, { token: i2.SubscriptionService }, { token: i2.HttpWaitService }, { token: i2.RouterWaitService }], target: i0.ɵɵFactoryTarget.Component });
|
|
476
|
+
LoaderBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: LoaderBarComponent, selector: "abp-loader-bar", inputs: { isLoading: "isLoading", containerClass: "containerClass", color: "color" }, providers: [SubscriptionService], ngImport: i0, template: `
|
|
477
|
+
<div id="abp-loader-bar" [ngClass]="containerClass" [class.is-loading]="isLoading">
|
|
478
|
+
<div
|
|
479
|
+
class="abp-progress"
|
|
480
|
+
[class.progressing]="progressLevel"
|
|
481
|
+
[style.width.vw]="progressLevel"
|
|
482
|
+
[ngStyle]="{
|
|
483
|
+
'background-color': color,
|
|
484
|
+
'box-shadow': boxShadow
|
|
485
|
+
}"
|
|
486
|
+
></div>
|
|
487
|
+
</div>
|
|
488
|
+
`, isInline: true, styles: [".abp-loader-bar{left:0;opacity:0;position:fixed;top:0;transition:opacity .4s linear .4s;z-index:99999}.abp-loader-bar.is-loading{opacity:1;transition:none}.abp-loader-bar .abp-progress{height:3px;left:0;position:fixed;top:0}.abp-loader-bar .abp-progress.progressing{transition:width .4s ease}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
489
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LoaderBarComponent, decorators: [{
|
|
490
|
+
type: Component,
|
|
491
|
+
args: [{
|
|
492
|
+
selector: 'abp-loader-bar',
|
|
493
|
+
template: `
|
|
568
494
|
<div id="abp-loader-bar" [ngClass]="containerClass" [class.is-loading]="isLoading">
|
|
569
495
|
<div
|
|
570
496
|
class="abp-progress"
|
|
@@ -577,37 +503,37 @@ LoaderBarComponent.decorators = [
|
|
|
577
503
|
></div>
|
|
578
504
|
</div>
|
|
579
505
|
`,
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
];
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
];
|
|
591
|
-
LoaderBarComponent.propDecorators = {
|
|
592
|
-
isLoading: [{ type: Input }],
|
|
593
|
-
containerClass: [{ type: Input }],
|
|
594
|
-
color: [{ type: Input }]
|
|
595
|
-
};
|
|
506
|
+
styleUrls: ['./loader-bar.component.scss'],
|
|
507
|
+
providers: [SubscriptionService],
|
|
508
|
+
}]
|
|
509
|
+
}], ctorParameters: function () { return [{ type: i1$1.Router }, { type: i0.ChangeDetectorRef }, { type: i2.SubscriptionService }, { type: i2.HttpWaitService }, { type: i2.RouterWaitService }]; }, propDecorators: { isLoading: [{
|
|
510
|
+
type: Input
|
|
511
|
+
}], containerClass: [{
|
|
512
|
+
type: Input
|
|
513
|
+
}], color: [{
|
|
514
|
+
type: Input
|
|
515
|
+
}] } });
|
|
596
516
|
|
|
597
517
|
class LoadingComponent {
|
|
598
|
-
constructor() { }
|
|
599
|
-
ngOnInit() { }
|
|
600
518
|
}
|
|
601
|
-
LoadingComponent
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
519
|
+
LoadingComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LoadingComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
520
|
+
LoadingComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: LoadingComponent, selector: "abp-loading", ngImport: i0, template: `
|
|
521
|
+
<div class="abp-loading">
|
|
522
|
+
<i class="fa fa-spinner fa-pulse abp-spinner"></i>
|
|
523
|
+
</div>
|
|
524
|
+
`, isInline: true, styles: ["\n .abp-loading {\n position: absolute;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n z-index: 1040;\n }\n\n .abp-loading .abp-spinner {\n position: absolute;\n top: 50%;\n left: 50%;\n font-size: 14px;\n -moz-transform: translateX(-50%) translateY(-50%);\n -o-transform: translateX(-50%) translateY(-50%);\n -ms-transform: translateX(-50%) translateY(-50%);\n -webkit-transform: translateX(-50%) translateY(-50%);\n transform: translateX(-50%) translateY(-50%);\n }\n "], encapsulation: i0.ViewEncapsulation.None });
|
|
525
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LoadingComponent, decorators: [{
|
|
526
|
+
type: Component,
|
|
527
|
+
args: [{
|
|
528
|
+
selector: 'abp-loading',
|
|
529
|
+
template: `
|
|
605
530
|
<div class="abp-loading">
|
|
606
531
|
<i class="fa fa-spinner fa-pulse abp-spinner"></i>
|
|
607
532
|
</div>
|
|
608
533
|
`,
|
|
609
|
-
|
|
610
|
-
|
|
534
|
+
encapsulation: ViewEncapsulation.None,
|
|
535
|
+
styles: [
|
|
536
|
+
`
|
|
611
537
|
.abp-loading {
|
|
612
538
|
position: absolute;
|
|
613
539
|
width: 100%;
|
|
@@ -628,10 +554,10 @@ LoadingComponent.decorators = [
|
|
|
628
554
|
-webkit-transform: translateX(-50%) translateY(-50%);
|
|
629
555
|
transform: translateX(-50%) translateY(-50%);
|
|
630
556
|
}
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
]
|
|
634
|
-
|
|
557
|
+
`,
|
|
558
|
+
],
|
|
559
|
+
}]
|
|
560
|
+
}] });
|
|
635
561
|
|
|
636
562
|
class ConfirmationService {
|
|
637
563
|
constructor(contentProjectionService) {
|
|
@@ -686,15 +612,13 @@ class ConfirmationService {
|
|
|
686
612
|
});
|
|
687
613
|
}
|
|
688
614
|
}
|
|
689
|
-
ConfirmationService.ɵ
|
|
690
|
-
ConfirmationService
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
];
|
|
615
|
+
ConfirmationService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ConfirmationService, deps: [{ token: i2.ContentProjectionService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
616
|
+
ConfirmationService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ConfirmationService, providedIn: 'root' });
|
|
617
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ConfirmationService, decorators: [{
|
|
618
|
+
type: Injectable,
|
|
619
|
+
args: [{ providedIn: 'root' }]
|
|
620
|
+
}], ctorParameters: function () { return [{ type: i2.ContentProjectionService }]; } });
|
|
696
621
|
|
|
697
|
-
// TODO: Should be documented
|
|
698
622
|
const SUPPRESS_UNSAVED_CHANGES_WARNING = new InjectionToken('SUPPRESS_UNSAVED_CHANGES_WARNING');
|
|
699
623
|
|
|
700
624
|
class ModalRefService {
|
|
@@ -714,10 +638,12 @@ class ModalRefService {
|
|
|
714
638
|
this.modalRefs.forEach(modal => modal.dismiss(mode));
|
|
715
639
|
}
|
|
716
640
|
}
|
|
717
|
-
ModalRefService.ɵ
|
|
718
|
-
ModalRefService
|
|
719
|
-
|
|
720
|
-
|
|
641
|
+
ModalRefService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ModalRefService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
642
|
+
ModalRefService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ModalRefService, providedIn: 'root' });
|
|
643
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ModalRefService, decorators: [{
|
|
644
|
+
type: Injectable,
|
|
645
|
+
args: [{ providedIn: 'root' }]
|
|
646
|
+
}] });
|
|
721
647
|
|
|
722
648
|
class ModalComponent {
|
|
723
649
|
constructor(confirmationService, subscription, suppressUnsavedChangesWarningToken, modal, modalRefService) {
|
|
@@ -726,18 +652,6 @@ class ModalComponent {
|
|
|
726
652
|
this.suppressUnsavedChangesWarningToken = suppressUnsavedChangesWarningToken;
|
|
727
653
|
this.modal = modal;
|
|
728
654
|
this.modalRefService = modalRefService;
|
|
729
|
-
/**
|
|
730
|
-
* @deprecated Use centered property of options input instead. To be deleted in v5.0.
|
|
731
|
-
*/
|
|
732
|
-
this.centered = false;
|
|
733
|
-
/**
|
|
734
|
-
* @deprecated Use windowClass property of options input instead. To be deleted in v5.0.
|
|
735
|
-
*/
|
|
736
|
-
this.modalClass = '';
|
|
737
|
-
/**
|
|
738
|
-
* @deprecated Use size property of options input instead. To be deleted in v5.0.
|
|
739
|
-
*/
|
|
740
|
-
this.size = 'lg';
|
|
741
655
|
this.options = {};
|
|
742
656
|
this.suppressUnsavedChangesWarning = this.suppressUnsavedChangesWarningToken;
|
|
743
657
|
this.visibleChange = new EventEmitter();
|
|
@@ -804,14 +718,12 @@ class ModalComponent {
|
|
|
804
718
|
return;
|
|
805
719
|
}
|
|
806
720
|
setTimeout(() => this.listen(), 0);
|
|
807
|
-
this.modalRef = this.modal.open(this.modalContent, Object.assign(Object.assign({
|
|
808
|
-
// TODO: set size to 'lg' when removed the size variable
|
|
809
|
-
size: this.size, centered: this.centered, keyboard: false, scrollable: true, beforeDismiss: () => {
|
|
721
|
+
this.modalRef = this.modal.open(this.modalContent, Object.assign(Object.assign({ size: 'md', centered: false, keyboard: false, scrollable: true, beforeDismiss: () => {
|
|
810
722
|
if (!this.visible)
|
|
811
723
|
return true;
|
|
812
724
|
this.close();
|
|
813
725
|
return !this.visible;
|
|
814
|
-
} }, this.options), { windowClass: `${this.
|
|
726
|
+
} }, this.options), { windowClass: `${this.options.windowClass || ''} ${this.modalIdentifier}` }));
|
|
815
727
|
this.appear.emit();
|
|
816
728
|
}
|
|
817
729
|
ngOnDestroy() {
|
|
@@ -854,56 +766,56 @@ class ModalComponent {
|
|
|
854
766
|
delete event.returnValue;
|
|
855
767
|
}
|
|
856
768
|
});
|
|
857
|
-
setTimeout(() => {
|
|
858
|
-
if (!this.abpClose)
|
|
859
|
-
return;
|
|
860
|
-
this.warnForDeprecatedClose();
|
|
861
|
-
fromEvent(this.abpClose.nativeElement, 'click')
|
|
862
|
-
.pipe(takeUntil(this.destroy$))
|
|
863
|
-
.subscribe(() => this.close());
|
|
864
|
-
}, 0);
|
|
865
769
|
this.init.emit();
|
|
866
770
|
}
|
|
867
|
-
warnForDeprecatedClose() {
|
|
868
|
-
if (isDevMode()) {
|
|
869
|
-
console.warn('Please use abpClose directive instead of #abpClose template variable. #abpClose will be removed in v5.0');
|
|
870
|
-
}
|
|
871
|
-
}
|
|
872
771
|
}
|
|
873
|
-
ModalComponent
|
|
874
|
-
{ type:
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
]
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
]
|
|
888
|
-
|
|
889
|
-
|
|
890
|
-
|
|
891
|
-
|
|
892
|
-
|
|
893
|
-
|
|
894
|
-
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
|
|
902
|
-
|
|
903
|
-
|
|
904
|
-
|
|
905
|
-
|
|
906
|
-
|
|
772
|
+
ModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ModalComponent, deps: [{ token: ConfirmationService }, { token: i2.SubscriptionService }, { token: SUPPRESS_UNSAVED_CHANGES_WARNING, optional: true }, { token: i3.NgbModal }, { token: ModalRefService }], target: i0.ɵɵFactoryTarget.Component });
|
|
773
|
+
ModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: ModalComponent, selector: "abp-modal", inputs: { visible: "visible", busy: "busy", options: "options", suppressUnsavedChangesWarning: "suppressUnsavedChangesWarning" }, outputs: { visibleChange: "visibleChange", init: "init", appear: "appear", disappear: "disappear" }, providers: [SubscriptionService], queries: [{ propertyName: "abpHeader", first: true, predicate: ["abpHeader"], descendants: true }, { propertyName: "abpBody", first: true, predicate: ["abpBody"], descendants: true }, { propertyName: "abpFooter", first: true, predicate: ["abpFooter"], descendants: true }, { propertyName: "abpSubmit", first: true, predicate: ButtonComponent, descendants: true, read: ButtonComponent }], viewQueries: [{ propertyName: "modalContent", first: true, predicate: ["modalContent"], descendants: true }], ngImport: i0, template: "<ng-content></ng-content>\n\n<ng-template #modalContent let-modal>\n <div id=\"abp-modal-header\" class=\"modal-header\">\n <ng-container *ngTemplateOutlet=\"abpHeader\"></ng-container>\n \u200B\n <button\n id=\"abp-modal-close-button\"\n type=\"button\"\n class=\"close\"\n aria-label=\"Close\"\n (click)=\"modal.dismiss()\"\n >\n <span aria-hidden=\"true\">×</span>\n </button>\n </div>\n <div id=\"abp-modal-body\" class=\"modal-body\">\n <ng-container *ngTemplateOutlet=\"abpBody\"></ng-container>\n </div>\n <div *ngIf=\"abpFooter\" id=\"abp-modal-footer\" class=\"modal-footer\">\n <ng-container *ngTemplateOutlet=\"abpFooter\"></ng-container>\n </div>\n</ng-template>\n", styles: [".modal.show{display:block!important}.modal-backdrop{opacity:.8}.modal::-webkit-scrollbar{width:7px}.modal::-webkit-scrollbar-track{background:#ddd}.modal::-webkit-scrollbar-thumb{background:#8a8686}.modal-dialog{z-index:1050}\n"], directives: [{ type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
774
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ModalComponent, decorators: [{
|
|
775
|
+
type: Component,
|
|
776
|
+
args: [{
|
|
777
|
+
selector: 'abp-modal',
|
|
778
|
+
templateUrl: './modal.component.html',
|
|
779
|
+
styleUrls: ['./modal.component.scss'],
|
|
780
|
+
providers: [SubscriptionService],
|
|
781
|
+
}]
|
|
782
|
+
}], ctorParameters: function () { return [{ type: ConfirmationService }, { type: i2.SubscriptionService }, { type: undefined, decorators: [{
|
|
783
|
+
type: Optional
|
|
784
|
+
}, {
|
|
785
|
+
type: Inject,
|
|
786
|
+
args: [SUPPRESS_UNSAVED_CHANGES_WARNING]
|
|
787
|
+
}] }, { type: i3.NgbModal }, { type: ModalRefService }]; }, propDecorators: { visible: [{
|
|
788
|
+
type: Input
|
|
789
|
+
}], busy: [{
|
|
790
|
+
type: Input
|
|
791
|
+
}], options: [{
|
|
792
|
+
type: Input
|
|
793
|
+
}], suppressUnsavedChangesWarning: [{
|
|
794
|
+
type: Input
|
|
795
|
+
}], modalContent: [{
|
|
796
|
+
type: ViewChild,
|
|
797
|
+
args: ['modalContent']
|
|
798
|
+
}], abpHeader: [{
|
|
799
|
+
type: ContentChild,
|
|
800
|
+
args: ['abpHeader', { static: false }]
|
|
801
|
+
}], abpBody: [{
|
|
802
|
+
type: ContentChild,
|
|
803
|
+
args: ['abpBody', { static: false }]
|
|
804
|
+
}], abpFooter: [{
|
|
805
|
+
type: ContentChild,
|
|
806
|
+
args: ['abpFooter', { static: false }]
|
|
807
|
+
}], abpSubmit: [{
|
|
808
|
+
type: ContentChild,
|
|
809
|
+
args: [ButtonComponent, { static: false, read: ButtonComponent }]
|
|
810
|
+
}], visibleChange: [{
|
|
811
|
+
type: Output
|
|
812
|
+
}], init: [{
|
|
813
|
+
type: Output
|
|
814
|
+
}], appear: [{
|
|
815
|
+
type: Output
|
|
816
|
+
}], disappear: [{
|
|
817
|
+
type: Output
|
|
818
|
+
}] } });
|
|
907
819
|
|
|
908
820
|
class ModalCloseDirective {
|
|
909
821
|
constructor(modal) {
|
|
@@ -917,310 +829,21 @@ class ModalCloseDirective {
|
|
|
917
829
|
(_a = this.modal) === null || _a === void 0 ? void 0 : _a.close();
|
|
918
830
|
}
|
|
919
831
|
}
|
|
920
|
-
ModalCloseDirective
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
]
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
* @deprecated To be deleted in v5.0. Use ngx-datatale instead.
|
|
932
|
-
*/
|
|
933
|
-
class SortOrderIconComponent {
|
|
934
|
-
constructor() {
|
|
935
|
-
this.orderChange = new EventEmitter();
|
|
936
|
-
this.selectedSortKeyChange = new EventEmitter();
|
|
937
|
-
}
|
|
938
|
-
set selectedSortKey(value) {
|
|
939
|
-
this._selectedSortKey = value;
|
|
940
|
-
this.selectedSortKeyChange.emit(value);
|
|
941
|
-
}
|
|
942
|
-
get selectedSortKey() {
|
|
943
|
-
return this._selectedSortKey;
|
|
944
|
-
}
|
|
945
|
-
set order(value) {
|
|
946
|
-
this._order = value;
|
|
947
|
-
this.orderChange.emit(value);
|
|
948
|
-
}
|
|
949
|
-
get order() {
|
|
950
|
-
return this._order;
|
|
951
|
-
}
|
|
952
|
-
get icon() {
|
|
953
|
-
if (this.selectedSortKey === this.sortKey)
|
|
954
|
-
return `sorting_${this.order}`;
|
|
955
|
-
else
|
|
956
|
-
return 'sorting';
|
|
957
|
-
}
|
|
958
|
-
sort(key) {
|
|
959
|
-
this.selectedSortKey = key;
|
|
960
|
-
switch (this.order) {
|
|
961
|
-
case '':
|
|
962
|
-
this.order = 'asc';
|
|
963
|
-
this.orderChange.emit('asc');
|
|
964
|
-
break;
|
|
965
|
-
case 'asc':
|
|
966
|
-
this.order = 'desc';
|
|
967
|
-
this.orderChange.emit('desc');
|
|
968
|
-
break;
|
|
969
|
-
case 'desc':
|
|
970
|
-
this.order = '';
|
|
971
|
-
this.orderChange.emit('');
|
|
972
|
-
break;
|
|
973
|
-
}
|
|
974
|
-
}
|
|
975
|
-
}
|
|
976
|
-
SortOrderIconComponent.decorators = [
|
|
977
|
-
{ type: Component, args: [{
|
|
978
|
-
selector: 'abp-sort-order-icon',
|
|
979
|
-
template: "<div class=\"float-right {{ iconClass }}\">\n <span class=\"{{ icon }}\"></span>\n</div>\n"
|
|
980
|
-
},] }
|
|
981
|
-
];
|
|
982
|
-
SortOrderIconComponent.propDecorators = {
|
|
983
|
-
sortKey: [{ type: Input }],
|
|
984
|
-
selectedSortKey: [{ type: Input }],
|
|
985
|
-
order: [{ type: Input }],
|
|
986
|
-
orderChange: [{ type: Output }],
|
|
987
|
-
selectedSortKeyChange: [{ type: Output }],
|
|
988
|
-
iconClass: [{ type: Input }]
|
|
989
|
-
};
|
|
990
|
-
|
|
991
|
-
class TableEmptyMessageComponent {
|
|
992
|
-
constructor() {
|
|
993
|
-
this.colspan = 2;
|
|
994
|
-
this.localizationResource = 'AbpAccount';
|
|
995
|
-
this.localizationProp = 'NoDataAvailableInDatatable';
|
|
996
|
-
}
|
|
997
|
-
get emptyMessage() {
|
|
998
|
-
return this.message || `${this.localizationResource}::${this.localizationProp}`;
|
|
999
|
-
}
|
|
1000
|
-
}
|
|
1001
|
-
TableEmptyMessageComponent.decorators = [
|
|
1002
|
-
{ type: Component, args: [{
|
|
1003
|
-
// tslint:disable-next-line: component-selector
|
|
1004
|
-
selector: '[abp-table-empty-message]',
|
|
1005
|
-
template: `
|
|
1006
|
-
<td class="text-center" [attr.colspan]="colspan">
|
|
1007
|
-
{{ emptyMessage | abpLocalization }}
|
|
1008
|
-
</td>
|
|
1009
|
-
`
|
|
1010
|
-
},] }
|
|
1011
|
-
];
|
|
1012
|
-
TableEmptyMessageComponent.propDecorators = {
|
|
1013
|
-
colspan: [{ type: Input }],
|
|
1014
|
-
message: [{ type: Input }],
|
|
1015
|
-
localizationResource: [{ type: Input }],
|
|
1016
|
-
localizationProp: [{ type: Input }]
|
|
1017
|
-
};
|
|
1018
|
-
|
|
1019
|
-
/**
|
|
1020
|
-
*
|
|
1021
|
-
* @deprecated To be deleted in v5.0. Use ngx-datatale instead.
|
|
1022
|
-
*/
|
|
1023
|
-
class TableComponent {
|
|
1024
|
-
constructor() {
|
|
1025
|
-
this.bodyScrollLeft = 0;
|
|
1026
|
-
this.page = 1;
|
|
1027
|
-
this.trackingProp = 'id';
|
|
1028
|
-
this.emptyMessage = 'AbpAccount::NoDataAvailableInDatatable';
|
|
1029
|
-
this.pageChange = new EventEmitter();
|
|
1030
|
-
this.trackByFn = (_, value) => {
|
|
1031
|
-
return typeof value === 'object' ? value[this.trackingProp] || value : value;
|
|
1032
|
-
};
|
|
1033
|
-
}
|
|
1034
|
-
get totalRecords() {
|
|
1035
|
-
return this._totalRecords || this.value.length;
|
|
1036
|
-
}
|
|
1037
|
-
set totalRecords(newValue) {
|
|
1038
|
-
if (newValue < 0)
|
|
1039
|
-
this._totalRecords = 0;
|
|
1040
|
-
this._totalRecords = newValue;
|
|
1041
|
-
}
|
|
1042
|
-
get totalPages() {
|
|
1043
|
-
if (!this.rows) {
|
|
1044
|
-
return;
|
|
1045
|
-
}
|
|
1046
|
-
return Math.ceil(this.totalRecords / this.rows);
|
|
1047
|
-
}
|
|
1048
|
-
get slicedValue() {
|
|
1049
|
-
if (!this.rows || this.rows >= this.value.length) {
|
|
1050
|
-
return this.value;
|
|
1051
|
-
}
|
|
1052
|
-
const start = (this.page - 1) * this.rows;
|
|
1053
|
-
return this.value.slice(start, start + this.rows);
|
|
1054
|
-
}
|
|
1055
|
-
ngOnInit() {
|
|
1056
|
-
this.marginCalculator = document.body.dir === 'rtl' ? rtlCalculator : ltrCalculator;
|
|
1057
|
-
}
|
|
1058
|
-
}
|
|
1059
|
-
TableComponent.decorators = [
|
|
1060
|
-
{ type: Component, args: [{
|
|
1061
|
-
selector: 'abp-table',
|
|
1062
|
-
template: "<div #wrapper class=\"ui-table ui-widget\">\n <div class=\"ui-table-wrapper\">\n <ng-container\n *ngTemplateOutlet=\"scrollable ? scrollableTemplate : defaultTemplate\"\n ></ng-container>\n <div class=\"pagination-wrapper\">\n <ngb-pagination\n [class.op-0]=\"!totalPages\"\n [collectionSize]=\"totalPages\"\n [pageSize]=\"1\"\n [page]=\"page\"\n (pageChange)=\"pageChange.emit($event)\"\n [maxSize]=\"3\"\n [rotate]=\"true\"\n ></ngb-pagination>\n </div>\n </div>\n</div>\n\n<ng-template #scrollableTemplate>\n <div class=\"ui-table-scrollable-wrapper\">\n <div class=\"ui-table-scrollable-view\"></div>\n <div class=\"ui-table-scrollable-header ui-widget-header\">\n <div #header class=\"ui-table-scrollable-header-box\">\n <table class=\"ui-table-scrollable-header-table\">\n <ng-container *ngTemplateOutlet=\"colGroup\"></ng-container>\n <ng-container *ngTemplateOutlet=\"head\"></ng-container>\n <tbody></tbody>\n </table>\n </div>\n </div>\n <div\n #scrollableBody\n (scroll)=\"header.style.margin = marginCalculator(scrollableBody)\"\n class=\"ui-table-scrollable-body\"\n [style.max-height]=\"scrollHeight\"\n >\n <table class=\"ui-table-scrollable-body-table\">\n <ng-container *ngTemplateOutlet=\"colGroup\"></ng-container>\n <ng-container *ngTemplateOutlet=\"body\"></ng-container>\n </table>\n </div>\n </div>\n</ng-template>\n\n<ng-template #defaultTemplate>\n <table>\n <ng-container *ngTemplateOutlet=\"colGroup\"></ng-container>\n <ng-container *ngTemplateOutlet=\"head\"></ng-container>\n <ng-container *ngTemplateOutlet=\"body\"></ng-container>\n </table>\n</ng-template>\n\n<ng-template #colGroup>\n <ng-container *ngTemplateOutlet=\"colgroupTemplate\"></ng-container>\n</ng-template>\n\n<ng-template #head>\n <thead class=\"ui-table-thead\">\n <ng-container *ngTemplateOutlet=\"headerTemplate\"></ng-container>\n </thead>\n</ng-template>\n\n<ng-template #body>\n <tbody class=\"ui-table-tbody\" *ngIf=\"value && value.length; else emptyTemplate\">\n <ng-template\n #bodyTemplateWrapper\n *ngFor=\"let val of slicedValue; let index = index; trackBy: trackByFn\"\n [ngTemplateOutlet]=\"bodyTemplate\"\n [ngTemplateOutletContext]=\"{ $implicit: val, rowIndex: index }\"\n ></ng-template>\n </tbody>\n</ng-template>\n\n<ng-template #emptyTemplate>\n <caption class=\"ui-table-empty\">\n {{\n emptyMessage | abpLocalization\n }}\n </caption>\n</ng-template>\n",
|
|
1063
|
-
encapsulation: ViewEncapsulation.None,
|
|
1064
|
-
styles: [".ui-table{position:relative}.ui-table .ui-table-tbody>tr:hover,.ui-table .ui-table-tbody>tr:nth-child(2n):hover{filter:brightness(90%)}.ui-table .ui-table-empty{padding:20px 0;text-align:center;border:1px solid #e0e0e0;border-top:0 solid #e0e0e0}.ui-table .ui-table-caption,.ui-table .ui-table-summary{background-color:#f4f4f4;color:#333;border:1px solid #c8c8c8;padding:.571em 1em}.ui-table .ui-table-caption,.ui-table .ui-table-summary{font-weight:700}.ui-table .ui-table-thead>tr>th{padding:.571em .857em;border:1px solid #c8c8c8;font-weight:700;color:#333;background-color:#f4f4f4}.ui-table .ui-table-tbody>tr>td{padding:.571em .857em}.ui-table .ui-table-tfoot>tr>td{padding:.571em .857em;border:1px solid #c8c8c8;font-weight:700;color:#333;background-color:#fff}.ui-table .ui-sortable-column{transition:box-shadow .2s}.ui-table .ui-sortable-column:focus{outline:0 none;outline-offset:0;box-shadow:inset 0 0 0 .2em #8dcdff}.ui-table .ui-sortable-column .ui-sortable-column-icon{color:#848484}.ui-table .ui-sortable-column:not(.ui-state-highlight):hover{background-color:#e0e0e0;color:#333}.ui-table .ui-sortable-column:not(.ui-state-highlight):hover .ui-sortable-column-icon{color:#333}.ui-table .ui-sortable-column.ui-state-highlight{background-color:#007ad9;color:#fff}.ui-table .ui-sortable-column.ui-state-highlight .ui-sortable-column-icon{color:#fff}.ui-table .ui-editable-column input{font-size:14px;font-family:Open Sans,Helvetica Neue,sans-serif}.ui-table .ui-editable-column input:focus{outline:1px solid #007ad9;outline-offset:2px}.ui-table .ui-table-tbody>tr{background-color:#fff;color:#333}.ui-table .ui-table-tbody>tr>td{background-color:inherit;border:1px solid #c8c8c8}.ui-table .ui-table-tbody>tr.ui-state-highlight{background-color:#007ad9;color:#fff}.ui-table .ui-table-tbody>tr.ui-state-highlight a{color:#fff}.ui-table .ui-table-tbody>tr.ui-contextmenu-selected{background-color:#007ad9;color:#fff}.ui-table .ui-table-tbody>tr.ui-table-dragpoint-top>td{box-shadow:inset 0 2px 0 0 #007ad9}.ui-table .ui-table-tbody>tr.ui-table-dragpoint-bottom>td{box-shadow:inset 0 -2px 0 0 #007ad9}.ui-table .ui-table-tbody>tr:nth-child(2n){background-color:#f9f9f9}.ui-table .ui-table-tbody>tr:nth-child(2n).ui-state-highlight{background-color:#007ad9;color:#fff}.ui-table .ui-table-tbody>tr:nth-child(2n).ui-state-highlight a{color:#fff}.ui-table .ui-table-tbody>tr:nth-child(2n).ui-contextmenu-selected{background-color:#007ad9;color:#fff}.ui-table.ui-table-hoverable-rows .ui-table-tbody>tr.ui-selectable-row:not(.ui-state-highlight):not(.ui-contextmenu-selected):hover{cursor:pointer;background-color:#eaeaea;color:#333}.ui-table .ui-column-resizer-helper{background-color:#007ad9}@media screen and (max-width:40em){.ui-table.ui-table-responsive .ui-table-tbody>tr>td{border:0}}.ui-table table{border-collapse:collapse;width:100%;table-layout:fixed}.ui-table .ui-table-tbody>tr>td,.ui-table .ui-table-tfoot>tr>td,.ui-table .ui-table-thead>tr>th{padding:.571em .857em}.ui-table .ui-sortable-column{cursor:pointer}.ui-table p-sorticon{vertical-align:middle}.ui-table .ui-table-auto-layout>.ui-table-wrapper{overflow-x:auto}.ui-table .ui-table-auto-layout>.ui-table-wrapper>table{table-layout:auto}.ui-table .ui-table-caption,.ui-table .ui-table-summary{padding:.25em .5em;text-align:center;font-weight:700}.ui-table .ui-table-caption{border-bottom:0}.ui-table .ui-table-summary{border-top:0}.ui-table .ui-table-scrollable-wrapper{position:relative}.ui-table .ui-table-scrollable-footer,.ui-table .ui-table-scrollable-header{overflow:hidden;border:0}.ui-table .ui-table-scrollable-body{overflow:auto;position:relative}.ui-table .ui-table-virtual-table{position:absolute}.ui-table .ui-table-loading-virtual-table{display:none}.ui-table .ui-table-frozen-view .ui-table-scrollable-body{overflow:hidden}.ui-table .ui-table-frozen-view>.ui-table-scrollable-body>table>.ui-table-tbody>tr>td:last-child{border-right:0}.ui-table .ui-table-unfrozen-view{position:absolute;top:0}.ui-table .ui-table-resizable>.ui-table-wrapper{overflow-x:auto}.ui-table .ui-table-resizable .ui-table-tbody>tr>td,.ui-table .ui-table-resizable .ui-table-tfoot>tr>td,.ui-table .ui-table-resizable .ui-table-thead>tr>th{overflow:hidden}.ui-table .ui-table-resizable .ui-resizable-column{background-clip:padding-box;position:relative}.ui-table .ui-table-resizable-fit .ui-resizable-column:last-child .ui-column-resizer{display:none}.ui-table .ui-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5em;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.ui-table .ui-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.ui-table .ui-table-tbody>tr>td.ui-editing-cell{padding:0}.ui-table .ui-table-tbody>tr>td.ui-editing-cell p-celleditor>*{width:100%}.ui-table .ui-table-reorder-indicator-down,.ui-table .ui-table-reorder-indicator-up{position:absolute;display:none}.ui-table .ui-table-responsive .ui-table-tbody>tr>td .ui-column-title{display:none}@media screen and (max-width:40em){.ui-table .ui-table-responsive .ui-table-tfoot>tr>td,.ui-table .ui-table-responsive .ui-table-thead>tr>th,.ui-table .ui-table-responsive colgroup{display:none!important}.ui-table .ui-table-responsive .ui-table-tbody>tr>td{text-align:left;display:block;border:0;width:100%!important;box-sizing:border-box;float:left;clear:left}.ui-table .ui-table-responsive .ui-table-tbody>tr>td .ui-column-title{padding:.4em;min-width:30%;display:inline-block;margin:-.4em 1em -.4em -.4em;font-weight:700}}.ui-table .ui-widget{font-family:Open Sans,Helvetica Neue,sans-serif;font-size:14px;text-decoration:none}.ui-table .page-item.disabled .page-link,.ui-table .page-link{background-color:transparent;border:none}.ui-table .page-item.disabled .page-link{box-shadow:none}.ui-table .pagination{margin-bottom:0}.ui-table .pagination-wrapper{display:flex;justify-content:center;border-top:0;padding:0}.ui-table .op-0{opacity:0}"]
|
|
1065
|
-
},] }
|
|
1066
|
-
];
|
|
1067
|
-
TableComponent.propDecorators = {
|
|
1068
|
-
value: [{ type: Input }],
|
|
1069
|
-
headerTemplate: [{ type: Input }],
|
|
1070
|
-
bodyTemplate: [{ type: Input }],
|
|
1071
|
-
colgroupTemplate: [{ type: Input }],
|
|
1072
|
-
scrollHeight: [{ type: Input }],
|
|
1073
|
-
scrollable: [{ type: Input }],
|
|
1074
|
-
rows: [{ type: Input }],
|
|
1075
|
-
page: [{ type: Input }],
|
|
1076
|
-
trackingProp: [{ type: Input }],
|
|
1077
|
-
emptyMessage: [{ type: Input }],
|
|
1078
|
-
pageChange: [{ type: Output }],
|
|
1079
|
-
wrapperRef: [{ type: ViewChild, args: ['wrapper', { read: ElementRef },] }],
|
|
1080
|
-
totalRecords: [{ type: Input }]
|
|
1081
|
-
};
|
|
1082
|
-
function ltrCalculator(div) {
|
|
1083
|
-
return `0 auto 0 -${div.scrollLeft}px`;
|
|
1084
|
-
}
|
|
1085
|
-
function rtlCalculator(div) {
|
|
1086
|
-
return `0 ${-(div.scrollWidth - div.clientWidth - div.scrollLeft)}px 0 auto`;
|
|
1087
|
-
}
|
|
1088
|
-
|
|
1089
|
-
class ToastContainerComponent {
|
|
1090
|
-
constructor() {
|
|
1091
|
-
this.toasts = [];
|
|
1092
|
-
this.right = '30px';
|
|
1093
|
-
this.bottom = '30px';
|
|
1094
|
-
}
|
|
1095
|
-
ngOnInit() {
|
|
1096
|
-
this.toasts$.subscribe(toasts => {
|
|
1097
|
-
this.toasts = this.toastKey
|
|
1098
|
-
? toasts.filter(t => {
|
|
1099
|
-
return t.options && t.options.containerKey !== this.toastKey;
|
|
1100
|
-
})
|
|
1101
|
-
: toasts;
|
|
1102
|
-
});
|
|
1103
|
-
}
|
|
1104
|
-
trackByFunc(index, toast) {
|
|
1105
|
-
if (!toast)
|
|
1106
|
-
return null;
|
|
1107
|
-
return toast.options.id;
|
|
1108
|
-
}
|
|
1109
|
-
}
|
|
1110
|
-
ToastContainerComponent.decorators = [
|
|
1111
|
-
{ type: Component, args: [{
|
|
1112
|
-
selector: 'abp-toast-container',
|
|
1113
|
-
template: "<div\n class=\"abp-toast-container\"\n [style.top]=\"top || 'auto'\"\n [style.right]=\"right || 'auto'\"\n [style.bottom]=\"bottom || 'auto'\"\n [style.left]=\"left || 'auto'\"\n [style.display]=\"toasts.length ? 'flex' : 'none'\"\n [@toastInOut]=\"toasts.length\"\n>\n <abp-toast [toast]=\"toast\" *ngFor=\"let toast of toasts; trackBy: trackByFunc\"></abp-toast>\n</div>\n",
|
|
1114
|
-
animations: [toastInOut],
|
|
1115
|
-
styles: [".abp-toast-container{position:fixed;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-width:350px;min-height:80px;z-index:1900}.abp-toast-container.new-on-top{flex-direction:column-reverse}"]
|
|
1116
|
-
},] }
|
|
1117
|
-
];
|
|
1118
|
-
ToastContainerComponent.propDecorators = {
|
|
1119
|
-
top: [{ type: Input }],
|
|
1120
|
-
right: [{ type: Input }],
|
|
1121
|
-
bottom: [{ type: Input }],
|
|
1122
|
-
left: [{ type: Input }],
|
|
1123
|
-
toastKey: [{ type: Input }]
|
|
1124
|
-
};
|
|
1125
|
-
|
|
1126
|
-
class ToasterService {
|
|
1127
|
-
constructor(contentProjectionService) {
|
|
1128
|
-
this.contentProjectionService = contentProjectionService;
|
|
1129
|
-
this.toasts$ = new ReplaySubject(1);
|
|
1130
|
-
this.lastId = -1;
|
|
1131
|
-
this.toasts = [];
|
|
1132
|
-
}
|
|
1133
|
-
setContainer() {
|
|
1134
|
-
this.containerComponentRef = this.contentProjectionService.projectContent(PROJECTION_STRATEGY.AppendComponentToBody(ToastContainerComponent, { toasts$: this.toasts$ }));
|
|
1135
|
-
this.containerComponentRef.changeDetectorRef.detectChanges();
|
|
1136
|
-
}
|
|
1137
|
-
/**
|
|
1138
|
-
* Creates an info toast with given parameters.
|
|
1139
|
-
* @param message Content of the toast
|
|
1140
|
-
* @param title Title of the toast
|
|
1141
|
-
* @param options Spesific style or structural options for individual toast
|
|
1142
|
-
*/
|
|
1143
|
-
info(message, title, options) {
|
|
1144
|
-
return this.show(message, title, 'info', options);
|
|
1145
|
-
}
|
|
1146
|
-
/**
|
|
1147
|
-
* Creates a success toast with given parameters.
|
|
1148
|
-
* @param message Content of the toast
|
|
1149
|
-
* @param title Title of the toast
|
|
1150
|
-
* @param options Spesific style or structural options for individual toast
|
|
1151
|
-
*/
|
|
1152
|
-
success(message, title, options) {
|
|
1153
|
-
return this.show(message, title, 'success', options);
|
|
1154
|
-
}
|
|
1155
|
-
/**
|
|
1156
|
-
* Creates a warning toast with given parameters.
|
|
1157
|
-
* @param message Content of the toast
|
|
1158
|
-
* @param title Title of the toast
|
|
1159
|
-
* @param options Spesific style or structural options for individual toast
|
|
1160
|
-
*/
|
|
1161
|
-
warn(message, title, options) {
|
|
1162
|
-
return this.show(message, title, 'warning', options);
|
|
1163
|
-
}
|
|
1164
|
-
/**
|
|
1165
|
-
* Creates an error toast with given parameters.
|
|
1166
|
-
* @param message Content of the toast
|
|
1167
|
-
* @param title Title of the toast
|
|
1168
|
-
* @param options Spesific style or structural options for individual toast
|
|
1169
|
-
*/
|
|
1170
|
-
error(message, title, options) {
|
|
1171
|
-
return this.show(message, title, 'error', options);
|
|
1172
|
-
}
|
|
1173
|
-
/**
|
|
1174
|
-
* Creates a toast with given parameters.
|
|
1175
|
-
* @param message Content of the toast
|
|
1176
|
-
* @param title Title of the toast
|
|
1177
|
-
* @param severity Sets color of the toast. "success", "warning" etc.
|
|
1178
|
-
* @param options Spesific style or structural options for individual toast
|
|
1179
|
-
*/
|
|
1180
|
-
show(message, title = null, severity = 'neutral', options = {}) {
|
|
1181
|
-
if (!this.containerComponentRef)
|
|
1182
|
-
this.setContainer();
|
|
1183
|
-
const id = ++this.lastId;
|
|
1184
|
-
this.toasts.push({
|
|
1185
|
-
message,
|
|
1186
|
-
title,
|
|
1187
|
-
severity,
|
|
1188
|
-
options: Object.assign({ closable: true, id }, options),
|
|
1189
|
-
});
|
|
1190
|
-
this.toasts$.next(this.toasts);
|
|
1191
|
-
return id;
|
|
1192
|
-
}
|
|
1193
|
-
/**
|
|
1194
|
-
* Removes the toast with given id.
|
|
1195
|
-
* @param id ID of the toast to be removed.
|
|
1196
|
-
*/
|
|
1197
|
-
remove(id) {
|
|
1198
|
-
this.toasts = this.toasts.filter(toast => snq(() => toast.options.id) !== id);
|
|
1199
|
-
this.toasts$.next(this.toasts);
|
|
1200
|
-
}
|
|
1201
|
-
/**
|
|
1202
|
-
* Removes all open toasts at once.
|
|
1203
|
-
*/
|
|
1204
|
-
clear(containerKey) {
|
|
1205
|
-
this.toasts = !containerKey
|
|
1206
|
-
? []
|
|
1207
|
-
: this.toasts.filter(toast => snq(() => toast.options.containerKey) !== containerKey);
|
|
1208
|
-
this.toasts$.next(this.toasts);
|
|
1209
|
-
}
|
|
1210
|
-
}
|
|
1211
|
-
ToasterService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ToasterService_Factory() { return new ToasterService(i0.ɵɵinject(i1.ContentProjectionService)); }, token: ToasterService, providedIn: "root" });
|
|
1212
|
-
ToasterService.decorators = [
|
|
1213
|
-
{ type: Injectable, args: [{
|
|
1214
|
-
providedIn: 'root',
|
|
1215
|
-
},] }
|
|
1216
|
-
];
|
|
1217
|
-
ToasterService.ctorParameters = () => [
|
|
1218
|
-
{ type: ContentProjectionService }
|
|
1219
|
-
];
|
|
832
|
+
ModalCloseDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ModalCloseDirective, deps: [{ token: ModalComponent, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
833
|
+
ModalCloseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: ModalCloseDirective, selector: "[abpClose]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
|
|
834
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ModalCloseDirective, decorators: [{
|
|
835
|
+
type: Directive,
|
|
836
|
+
args: [{ selector: '[abpClose]' }]
|
|
837
|
+
}], ctorParameters: function () { return [{ type: ModalComponent, decorators: [{
|
|
838
|
+
type: Optional
|
|
839
|
+
}] }]; }, propDecorators: { onClick: [{
|
|
840
|
+
type: HostListener,
|
|
841
|
+
args: ['click']
|
|
842
|
+
}] } });
|
|
1220
843
|
|
|
1221
844
|
class ToastComponent {
|
|
1222
|
-
constructor(
|
|
1223
|
-
this.
|
|
845
|
+
constructor() {
|
|
846
|
+
this.remove = new EventEmitter();
|
|
1224
847
|
}
|
|
1225
848
|
get severityClass() {
|
|
1226
849
|
if (!this.toast || !this.toast.severity)
|
|
@@ -1242,15 +865,16 @@ class ToastComponent {
|
|
|
1242
865
|
}
|
|
1243
866
|
}
|
|
1244
867
|
ngOnInit() {
|
|
1245
|
-
|
|
868
|
+
const { sticky, life } = this.toast.options || {};
|
|
869
|
+
if (sticky)
|
|
1246
870
|
return;
|
|
1247
|
-
const timeout =
|
|
871
|
+
const timeout = life || 5000;
|
|
1248
872
|
setTimeout(() => {
|
|
1249
873
|
this.close();
|
|
1250
874
|
}, timeout);
|
|
1251
875
|
}
|
|
1252
876
|
close() {
|
|
1253
|
-
this.
|
|
877
|
+
this.remove.emit(this.toast.options.id);
|
|
1254
878
|
}
|
|
1255
879
|
tap() {
|
|
1256
880
|
var _a;
|
|
@@ -1258,19 +882,63 @@ class ToastComponent {
|
|
|
1258
882
|
this.close();
|
|
1259
883
|
}
|
|
1260
884
|
}
|
|
1261
|
-
ToastComponent
|
|
1262
|
-
{ type:
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
]
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
885
|
+
ToastComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ToastComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
886
|
+
ToastComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: ToastComponent, selector: "abp-toast", inputs: { toast: "toast" }, outputs: { remove: "remove" }, ngImport: i0, template: "<div class=\"abp-toast\" [ngClass]=\"severityClass\" (click)=\"tap()\">\n <div class=\"abp-toast-icon\">\n <i class=\"fa icon\" [ngClass]=\"iconClass\"></i>\n </div>\n <div class=\"abp-toast-content\">\n <button class=\"abp-toast-close-button\" (click)=\"close()\" *ngIf=\"toast.options.closable\">\n <i class=\"fa fa-times\"></i>\n </button>\n <div class=\"abp-toast-title\">\n {{ toast.title | abpLocalization: toast.options?.titleLocalizationParams }}\n </div>\n <p\n class=\"abp-toast-message\"\n [innerHTML]=\"toast.message | abpLocalization: toast.options?.messageLocalizationParams\"\n ></p>\n </div>\n</div>\n", styles: [".abp-toast{display:grid;grid-template-columns:50px 1fr;grid-gap:10px;gap:10px;margin:5px 0;padding:10px;border-radius:0;width:350px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;z-index:9999;border:2px solid #f0f0f0;background-color:#f0f0f0;color:#000;box-shadow:0 0 10px -5px #0006;opacity:1}.abp-toast:hover{border:2px solid #e3e3e3;background-color:#e3e3e3;box-shadow:0 0 15px -5px #0006}.abp-toast.abp-toast-success{border:2px solid #51a351;background-color:#51a351;color:#fff;box-shadow:0 0 10px -5px #0006}.abp-toast.abp-toast-success:hover{border:2px solid #499249;background-color:#499249;box-shadow:0 0 15px -5px #0006}.abp-toast.abp-toast-info{border:2px solid #2f96b4;background-color:#2f96b4;color:#fff;box-shadow:0 0 10px -5px #0006}.abp-toast.abp-toast-info:hover{border:2px solid #2a85a0;background-color:#2a85a0;box-shadow:0 0 15px -5px #0006}.abp-toast.abp-toast-warning{border:2px solid #f89406;background-color:#f89406;color:#fff;box-shadow:0 0 10px -5px #0006}.abp-toast.abp-toast-warning:hover{border:2px solid #df8505;background-color:#df8505;box-shadow:0 0 15px -5px #0006}.abp-toast.abp-toast-error{border:2px solid #bd362f;background-color:#bd362f;color:#fff;box-shadow:0 0 10px -5px #0006}.abp-toast.abp-toast-error:hover{border:2px solid #a9302a;background-color:#a9302a;box-shadow:0 0 15px -5px #0006}.abp-toast .abp-toast-icon{display:flex;align-items:center;justify-content:center}.abp-toast .abp-toast-icon .icon{font-size:36px}.abp-toast .abp-toast-content{position:relative}.abp-toast .abp-toast-content .abp-toast-close-button{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;margin:0;padding:0 5px 0 0;width:25px;height:25px;border:none;border-radius:50%;background:transparent;color:inherit}.abp-toast .abp-toast-content .abp-toast-close-button:focus{outline:none}.abp-toast .abp-toast-content .abp-toast-title{margin:0;padding:0;font-size:1rem;font-weight:600}.abp-toast .abp-toast-content .abp-toast-message{margin:0;padding:0;max-width:240px}\n"], directives: [{ type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "abpLocalization": i2.LocalizationPipe } });
|
|
887
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ToastComponent, decorators: [{
|
|
888
|
+
type: Component,
|
|
889
|
+
args: [{
|
|
890
|
+
selector: 'abp-toast',
|
|
891
|
+
templateUrl: './toast.component.html',
|
|
892
|
+
styleUrls: ['./toast.component.scss'],
|
|
893
|
+
}]
|
|
894
|
+
}], propDecorators: { toast: [{
|
|
895
|
+
type: Input
|
|
896
|
+
}], remove: [{
|
|
897
|
+
type: Output
|
|
898
|
+
}] } });
|
|
899
|
+
|
|
900
|
+
class ToastContainerComponent {
|
|
901
|
+
constructor() {
|
|
902
|
+
this.toasts = [];
|
|
903
|
+
this.right = '30px';
|
|
904
|
+
this.bottom = '30px';
|
|
905
|
+
}
|
|
906
|
+
ngOnInit() {
|
|
907
|
+
this.toasts$.subscribe(toasts => {
|
|
908
|
+
this.toasts = this.toastKey
|
|
909
|
+
? toasts.filter(t => {
|
|
910
|
+
return t.options && t.options.containerKey !== this.toastKey;
|
|
911
|
+
})
|
|
912
|
+
: toasts;
|
|
913
|
+
});
|
|
914
|
+
}
|
|
915
|
+
trackByFunc(index, toast) {
|
|
916
|
+
if (!toast)
|
|
917
|
+
return null;
|
|
918
|
+
return toast.options.id;
|
|
919
|
+
}
|
|
920
|
+
}
|
|
921
|
+
ToastContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ToastContainerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
922
|
+
ToastContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: ToastContainerComponent, selector: "abp-toast-container", inputs: { top: "top", right: "right", bottom: "bottom", left: "left", toastKey: "toastKey" }, ngImport: i0, template: "<div\n class=\"abp-toast-container\"\n [style.top]=\"top || 'auto'\"\n [style.right]=\"right || 'auto'\"\n [style.bottom]=\"bottom || 'auto'\"\n [style.left]=\"left || 'auto'\"\n [style.display]=\"toasts.length ? 'flex' : 'none'\"\n [@toastInOut]=\"toasts.length\"\n>\n <abp-toast\n [toast]=\"toast\"\n *ngFor=\"let toast of toasts; trackBy: trackByFunc\"\n (remove)=\"remove($event)\"\n ></abp-toast>\n</div>\n", styles: [".abp-toast-container{position:fixed;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;min-width:350px;min-height:80px;z-index:1900}.abp-toast-container.new-on-top{flex-direction:column-reverse}\n"], components: [{ type: ToastComponent, selector: "abp-toast", inputs: ["toast"], outputs: ["remove"] }], directives: [{ type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], animations: [toastInOut] });
|
|
923
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ToastContainerComponent, decorators: [{
|
|
924
|
+
type: Component,
|
|
925
|
+
args: [{
|
|
926
|
+
selector: 'abp-toast-container',
|
|
927
|
+
templateUrl: './toast-container.component.html',
|
|
928
|
+
styleUrls: ['./toast-container.component.scss'],
|
|
929
|
+
animations: [toastInOut],
|
|
930
|
+
}]
|
|
931
|
+
}], propDecorators: { top: [{
|
|
932
|
+
type: Input
|
|
933
|
+
}], right: [{
|
|
934
|
+
type: Input
|
|
935
|
+
}], bottom: [{
|
|
936
|
+
type: Input
|
|
937
|
+
}], left: [{
|
|
938
|
+
type: Input
|
|
939
|
+
}], toastKey: [{
|
|
940
|
+
type: Input
|
|
941
|
+
}] } });
|
|
1274
942
|
|
|
1275
943
|
var styles = `
|
|
1276
944
|
.is-invalid .form-control {
|
|
@@ -1468,6 +1136,67 @@ const DEFAULT_VALIDATION_BLUEPRINTS = {
|
|
|
1468
1136
|
url: 'AbpValidation::ThisFieldIsNotAValidFullyQualifiedHttpHttpsOrFtpUrl',
|
|
1469
1137
|
};
|
|
1470
1138
|
|
|
1139
|
+
class EllipsisDirective {
|
|
1140
|
+
constructor(cdRef, elRef) {
|
|
1141
|
+
this.cdRef = cdRef;
|
|
1142
|
+
this.elRef = elRef;
|
|
1143
|
+
this.enabled = true;
|
|
1144
|
+
}
|
|
1145
|
+
get inlineClass() {
|
|
1146
|
+
return this.enabled && this.width;
|
|
1147
|
+
}
|
|
1148
|
+
get class() {
|
|
1149
|
+
return this.enabled && !this.width;
|
|
1150
|
+
}
|
|
1151
|
+
get maxWidth() {
|
|
1152
|
+
return this.enabled && this.width ? this.width || '170px' : undefined;
|
|
1153
|
+
}
|
|
1154
|
+
ngAfterViewInit() {
|
|
1155
|
+
this.title = this.title || this.elRef.nativeElement.innerText;
|
|
1156
|
+
this.cdRef.detectChanges();
|
|
1157
|
+
}
|
|
1158
|
+
}
|
|
1159
|
+
EllipsisDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: EllipsisDirective, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1160
|
+
EllipsisDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: EllipsisDirective, selector: "[abpEllipsis]", inputs: { width: ["abpEllipsis", "width"], title: "title", enabled: ["abpEllipsisEnabled", "enabled"] }, host: { properties: { "title": "this.title", "class.abp-ellipsis-inline": "this.inlineClass", "class.abp-ellipsis": "this.class", "style.max-width": "this.maxWidth" } }, ngImport: i0 });
|
|
1161
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: EllipsisDirective, decorators: [{
|
|
1162
|
+
type: Directive,
|
|
1163
|
+
args: [{
|
|
1164
|
+
selector: '[abpEllipsis]',
|
|
1165
|
+
}]
|
|
1166
|
+
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }]; }, propDecorators: { width: [{
|
|
1167
|
+
type: Input,
|
|
1168
|
+
args: ['abpEllipsis']
|
|
1169
|
+
}], title: [{
|
|
1170
|
+
type: HostBinding,
|
|
1171
|
+
args: ['title']
|
|
1172
|
+
}, {
|
|
1173
|
+
type: Input
|
|
1174
|
+
}], enabled: [{
|
|
1175
|
+
type: Input,
|
|
1176
|
+
args: ['abpEllipsisEnabled']
|
|
1177
|
+
}], inlineClass: [{
|
|
1178
|
+
type: HostBinding,
|
|
1179
|
+
args: ['class.abp-ellipsis-inline']
|
|
1180
|
+
}], class: [{
|
|
1181
|
+
type: HostBinding,
|
|
1182
|
+
args: ['class.abp-ellipsis']
|
|
1183
|
+
}], maxWidth: [{
|
|
1184
|
+
type: HostBinding,
|
|
1185
|
+
args: ['style.max-width']
|
|
1186
|
+
}] } });
|
|
1187
|
+
class EllipsisModule {
|
|
1188
|
+
}
|
|
1189
|
+
EllipsisModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: EllipsisModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1190
|
+
EllipsisModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: EllipsisModule, declarations: [EllipsisDirective], exports: [EllipsisDirective] });
|
|
1191
|
+
EllipsisModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: EllipsisModule });
|
|
1192
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: EllipsisModule, decorators: [{
|
|
1193
|
+
type: NgModule,
|
|
1194
|
+
args: [{
|
|
1195
|
+
exports: [EllipsisDirective],
|
|
1196
|
+
declarations: [EllipsisDirective],
|
|
1197
|
+
}]
|
|
1198
|
+
}] });
|
|
1199
|
+
|
|
1471
1200
|
class LoadingDirective {
|
|
1472
1201
|
constructor(elRef, vcRef, cdRes, injector, renderer) {
|
|
1473
1202
|
this.elRef = elRef;
|
|
@@ -1531,22 +1260,24 @@ class LoadingDirective {
|
|
|
1531
1260
|
}
|
|
1532
1261
|
}
|
|
1533
1262
|
}
|
|
1534
|
-
LoadingDirective
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1263
|
+
LoadingDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LoadingDirective, deps: [{ token: i0.ElementRef }, { token: i0.ViewContainerRef }, { token: i0.ComponentFactoryResolver }, { token: i0.Injector }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1264
|
+
LoadingDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: LoadingDirective, selector: "[abpLoading]", inputs: { loading: ["abpLoading", "loading"], targetElement: ["abpLoadingTargetElement", "targetElement"], delay: ["abpLoadingDelay", "delay"] }, host: { properties: { "style.position": "this.position" } }, ngImport: i0 });
|
|
1265
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LoadingDirective, decorators: [{
|
|
1266
|
+
type: Directive,
|
|
1267
|
+
args: [{ selector: '[abpLoading]' }]
|
|
1268
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ViewContainerRef }, { type: i0.ComponentFactoryResolver }, { type: i0.Injector }, { type: i0.Renderer2 }]; }, propDecorators: { position: [{
|
|
1269
|
+
type: HostBinding,
|
|
1270
|
+
args: ['style.position']
|
|
1271
|
+
}], loading: [{
|
|
1272
|
+
type: Input,
|
|
1273
|
+
args: ['abpLoading']
|
|
1274
|
+
}], targetElement: [{
|
|
1275
|
+
type: Input,
|
|
1276
|
+
args: ['abpLoadingTargetElement']
|
|
1277
|
+
}], delay: [{
|
|
1278
|
+
type: Input,
|
|
1279
|
+
args: ['abpLoadingDelay']
|
|
1280
|
+
}] } });
|
|
1550
1281
|
|
|
1551
1282
|
class NgxDatatableDefaultDirective {
|
|
1552
1283
|
constructor(table, document) {
|
|
@@ -1597,21 +1328,24 @@ class NgxDatatableDefaultDirective {
|
|
|
1597
1328
|
this.subscription.unsubscribe();
|
|
1598
1329
|
}
|
|
1599
1330
|
}
|
|
1600
|
-
NgxDatatableDefaultDirective
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
]
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1614
|
-
}
|
|
1331
|
+
NgxDatatableDefaultDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: NgxDatatableDefaultDirective, deps: [{ token: i1$2.DatatableComponent }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1332
|
+
NgxDatatableDefaultDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: NgxDatatableDefaultDirective, selector: "ngx-datatable[default]", inputs: { class: "class" }, host: { properties: { "class": "this.classes" } }, exportAs: ["ngxDatatableDefault"], ngImport: i0 });
|
|
1333
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: NgxDatatableDefaultDirective, decorators: [{
|
|
1334
|
+
type: Directive,
|
|
1335
|
+
args: [{
|
|
1336
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
1337
|
+
selector: 'ngx-datatable[default]',
|
|
1338
|
+
exportAs: 'ngxDatatableDefault',
|
|
1339
|
+
}]
|
|
1340
|
+
}], ctorParameters: function () { return [{ type: i1$2.DatatableComponent }, { type: undefined, decorators: [{
|
|
1341
|
+
type: Inject,
|
|
1342
|
+
args: [DOCUMENT]
|
|
1343
|
+
}] }]; }, propDecorators: { class: [{
|
|
1344
|
+
type: Input
|
|
1345
|
+
}], classes: [{
|
|
1346
|
+
type: HostBinding,
|
|
1347
|
+
args: ['class']
|
|
1348
|
+
}] } });
|
|
1615
1349
|
|
|
1616
1350
|
const defaultNgxDatatableMessages = {
|
|
1617
1351
|
emptyMessage: 'AbpUi::NoDataAvailableInDatatable',
|
|
@@ -1688,106 +1422,23 @@ class NgxDatatableListDirective {
|
|
|
1688
1422
|
this.subscribeToSort();
|
|
1689
1423
|
}
|
|
1690
1424
|
}
|
|
1691
|
-
NgxDatatableListDirective
|
|
1692
|
-
|
|
1693
|
-
|
|
1694
|
-
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
]
|
|
1698
|
-
|
|
1699
|
-
|
|
1700
|
-
|
|
1701
|
-
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
|
|
1707
|
-
|
|
1708
|
-
/**
|
|
1709
|
-
*
|
|
1710
|
-
* @deprecated To be deleted in v5.0
|
|
1711
|
-
*/
|
|
1712
|
-
class TableSortDirective {
|
|
1713
|
-
constructor(abpTable, sortPipe, cdRef) {
|
|
1714
|
-
this.abpTable = abpTable;
|
|
1715
|
-
this.sortPipe = sortPipe;
|
|
1716
|
-
this.cdRef = cdRef;
|
|
1717
|
-
this.value = [];
|
|
1718
|
-
}
|
|
1719
|
-
get table() {
|
|
1720
|
-
return (this.abpTable || snq(() => this.cdRef['_view'].component) || snq(() => this.cdRef['context']) // 'context' for ivy
|
|
1721
|
-
);
|
|
1722
|
-
}
|
|
1723
|
-
ngOnChanges({ value, abpTableSort }) {
|
|
1724
|
-
if (this.table && (value || abpTableSort)) {
|
|
1725
|
-
this.abpTableSort = this.abpTableSort || {};
|
|
1726
|
-
this.table.value = this.sortPipe.transform(clone(this.value), this.abpTableSort.order, this.abpTableSort.key);
|
|
1727
|
-
}
|
|
1728
|
-
}
|
|
1729
|
-
}
|
|
1730
|
-
TableSortDirective.decorators = [
|
|
1731
|
-
{ type: Directive, args: [{
|
|
1732
|
-
selector: '[abpTableSort]',
|
|
1733
|
-
providers: [SortPipe],
|
|
1734
|
-
},] }
|
|
1735
|
-
];
|
|
1736
|
-
TableSortDirective.ctorParameters = () => [
|
|
1737
|
-
{ type: TableComponent, decorators: [{ type: Host }, { type: Optional }, { type: Self }] },
|
|
1738
|
-
{ type: SortPipe },
|
|
1739
|
-
{ type: ChangeDetectorRef }
|
|
1740
|
-
];
|
|
1741
|
-
TableSortDirective.propDecorators = {
|
|
1742
|
-
abpTableSort: [{ type: Input }],
|
|
1743
|
-
value: [{ type: Input }]
|
|
1744
|
-
};
|
|
1745
|
-
|
|
1746
|
-
class EllipsisDirective {
|
|
1747
|
-
constructor(cdRef, elRef) {
|
|
1748
|
-
this.cdRef = cdRef;
|
|
1749
|
-
this.elRef = elRef;
|
|
1750
|
-
this.enabled = true;
|
|
1751
|
-
}
|
|
1752
|
-
get inlineClass() {
|
|
1753
|
-
return this.enabled && this.width;
|
|
1754
|
-
}
|
|
1755
|
-
get class() {
|
|
1756
|
-
return this.enabled && !this.width;
|
|
1757
|
-
}
|
|
1758
|
-
get maxWidth() {
|
|
1759
|
-
return this.enabled && this.width ? this.width || '170px' : undefined;
|
|
1760
|
-
}
|
|
1761
|
-
ngAfterViewInit() {
|
|
1762
|
-
this.title = this.title || this.elRef.nativeElement.innerText;
|
|
1763
|
-
this.cdRef.detectChanges();
|
|
1764
|
-
}
|
|
1765
|
-
}
|
|
1766
|
-
EllipsisDirective.decorators = [
|
|
1767
|
-
{ type: Directive, args: [{
|
|
1768
|
-
selector: '[abpEllipsis]',
|
|
1769
|
-
},] }
|
|
1770
|
-
];
|
|
1771
|
-
EllipsisDirective.ctorParameters = () => [
|
|
1772
|
-
{ type: ChangeDetectorRef },
|
|
1773
|
-
{ type: ElementRef }
|
|
1774
|
-
];
|
|
1775
|
-
EllipsisDirective.propDecorators = {
|
|
1776
|
-
width: [{ type: Input, args: ['abpEllipsis',] }],
|
|
1777
|
-
title: [{ type: HostBinding, args: ['title',] }, { type: Input }],
|
|
1778
|
-
enabled: [{ type: Input, args: ['abpEllipsisEnabled',] }],
|
|
1779
|
-
inlineClass: [{ type: HostBinding, args: ['class.abp-ellipsis-inline',] }],
|
|
1780
|
-
class: [{ type: HostBinding, args: ['class.abp-ellipsis',] }],
|
|
1781
|
-
maxWidth: [{ type: HostBinding, args: ['style.max-width',] }]
|
|
1782
|
-
};
|
|
1783
|
-
class EllipsisModule {
|
|
1784
|
-
}
|
|
1785
|
-
EllipsisModule.decorators = [
|
|
1786
|
-
{ type: NgModule, args: [{
|
|
1787
|
-
exports: [EllipsisDirective],
|
|
1788
|
-
declarations: [EllipsisDirective],
|
|
1789
|
-
},] }
|
|
1790
|
-
];
|
|
1425
|
+
NgxDatatableListDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: NgxDatatableListDirective, deps: [{ token: i1$2.DatatableComponent }, { token: i0.ChangeDetectorRef }, { token: i2.LocalizationService }, { token: NGX_DATATABLE_MESSAGES, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
|
|
1426
|
+
NgxDatatableListDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: NgxDatatableListDirective, selector: "ngx-datatable[list]", inputs: { list: "list" }, exportAs: ["ngxDatatableList"], usesOnChanges: true, ngImport: i0 });
|
|
1427
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: NgxDatatableListDirective, decorators: [{
|
|
1428
|
+
type: Directive,
|
|
1429
|
+
args: [{
|
|
1430
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
1431
|
+
selector: 'ngx-datatable[list]',
|
|
1432
|
+
exportAs: 'ngxDatatableList',
|
|
1433
|
+
}]
|
|
1434
|
+
}], ctorParameters: function () { return [{ type: i1$2.DatatableComponent }, { type: i0.ChangeDetectorRef }, { type: i2.LocalizationService }, { type: undefined, decorators: [{
|
|
1435
|
+
type: Optional
|
|
1436
|
+
}, {
|
|
1437
|
+
type: Inject,
|
|
1438
|
+
args: [NGX_DATATABLE_MESSAGES]
|
|
1439
|
+
}] }]; }, propDecorators: { list: [{
|
|
1440
|
+
type: Input
|
|
1441
|
+
}] } });
|
|
1791
1442
|
|
|
1792
1443
|
function httpErrorConfigFactory(config = {}) {
|
|
1793
1444
|
if (config.errorScreen && config.errorScreen.component && !config.errorScreen.forWhichErrors) {
|
|
@@ -1843,14 +1494,8 @@ const DEFAULT_ERROR_LOCALIZATIONS = {
|
|
|
1843
1494
|
},
|
|
1844
1495
|
};
|
|
1845
1496
|
class ErrorHandler {
|
|
1846
|
-
constructor(
|
|
1847
|
-
this.actions = actions;
|
|
1848
|
-
this.routerEvents = routerEvents;
|
|
1849
|
-
this.confirmationService = confirmationService;
|
|
1850
|
-
this.cfRes = cfRes;
|
|
1851
|
-
this.rendererFactory = rendererFactory;
|
|
1497
|
+
constructor(injector) {
|
|
1852
1498
|
this.injector = injector;
|
|
1853
|
-
this.httpErrorConfig = httpErrorConfig;
|
|
1854
1499
|
this.httpErrorHandler = this.injector.get(HTTP_ERROR_HANDLER, (_, err) => throwError(err));
|
|
1855
1500
|
this.executeErrorHandler = error => {
|
|
1856
1501
|
const returnValue = this.httpErrorHandler(this.injector, error);
|
|
@@ -1865,9 +1510,16 @@ class ErrorHandler {
|
|
|
1865
1510
|
return this.httpErrorConfig.skipHandledErrorCodes.findIndex(code => code === status) < 0;
|
|
1866
1511
|
};
|
|
1867
1512
|
this.filterRouteErrors = (navigationError) => {
|
|
1868
|
-
|
|
1513
|
+
var _a, _b;
|
|
1514
|
+
return (((_b = (_a = navigationError.error) === null || _a === void 0 ? void 0 : _a.message) === null || _b === void 0 ? void 0 : _b.indexOf('Cannot match')) > -1 &&
|
|
1869
1515
|
this.httpErrorConfig.skipHandledErrorCodes.findIndex(code => code === 404) < 0);
|
|
1870
1516
|
};
|
|
1517
|
+
this.httpErrorReporter = injector.get(HttpErrorReporterService);
|
|
1518
|
+
this.routerEvents = injector.get(RouterEvents);
|
|
1519
|
+
this.confirmationService = injector.get(ConfirmationService);
|
|
1520
|
+
this.cfRes = injector.get(ComponentFactoryResolver);
|
|
1521
|
+
this.rendererFactory = injector.get(RendererFactory2);
|
|
1522
|
+
this.httpErrorConfig = injector.get('HTTP_ERROR_CONFIG');
|
|
1871
1523
|
this.listenToRestError();
|
|
1872
1524
|
this.listenToRouterError();
|
|
1873
1525
|
this.listenToRouterDataResolved();
|
|
@@ -1888,15 +1540,16 @@ class ErrorHandler {
|
|
|
1888
1540
|
});
|
|
1889
1541
|
}
|
|
1890
1542
|
listenToRestError() {
|
|
1891
|
-
this.
|
|
1892
|
-
.pipe(
|
|
1543
|
+
this.httpErrorReporter.reporter$
|
|
1544
|
+
.pipe(filter(this.filterRestErrors), switchMap(this.executeErrorHandler))
|
|
1893
1545
|
.subscribe();
|
|
1894
1546
|
}
|
|
1895
1547
|
handleError(err) {
|
|
1896
|
-
|
|
1548
|
+
var _a;
|
|
1549
|
+
const body = ((_a = err === null || err === void 0 ? void 0 : err.error) === null || _a === void 0 ? void 0 : _a.error) || {
|
|
1897
1550
|
key: DEFAULT_ERROR_LOCALIZATIONS.defaultError.title,
|
|
1898
1551
|
defaultValue: DEFAULT_ERROR_MESSAGES.defaultError.title,
|
|
1899
|
-
}
|
|
1552
|
+
};
|
|
1900
1553
|
if (err instanceof HttpErrorResponse && err.headers.get('_AbpErrorFormat')) {
|
|
1901
1554
|
const confirmation$ = this.showError(null, null, body);
|
|
1902
1555
|
if (err.status === 401) {
|
|
@@ -2033,7 +1686,7 @@ class ErrorHandler {
|
|
|
2033
1686
|
.create(this.injector);
|
|
2034
1687
|
for (const key in instance) {
|
|
2035
1688
|
/* istanbul ignore else */
|
|
2036
|
-
if (this.componentRef.instance
|
|
1689
|
+
if (Object.prototype.hasOwnProperty.call(this.componentRef.instance, key)) {
|
|
2037
1690
|
this.componentRef.instance[key] = instance[key];
|
|
2038
1691
|
}
|
|
2039
1692
|
}
|
|
@@ -2055,23 +1708,17 @@ class ErrorHandler {
|
|
|
2055
1708
|
});
|
|
2056
1709
|
}
|
|
2057
1710
|
canCreateCustomError(status) {
|
|
2058
|
-
|
|
2059
|
-
|
|
1711
|
+
var _a, _b, _c, _d, _e;
|
|
1712
|
+
return (((_b = (_a = this.httpErrorConfig) === null || _a === void 0 ? void 0 : _a.errorScreen) === null || _b === void 0 ? void 0 : _b.component) &&
|
|
1713
|
+
((_e = (_d = (_c = this.httpErrorConfig) === null || _c === void 0 ? void 0 : _c.errorScreen) === null || _d === void 0 ? void 0 : _d.forWhichErrors) === null || _e === void 0 ? void 0 : _e.indexOf(status)) > -1);
|
|
2060
1714
|
}
|
|
2061
1715
|
}
|
|
2062
|
-
ErrorHandler.ɵ
|
|
2063
|
-
ErrorHandler
|
|
2064
|
-
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
{ type: RouterEvents },
|
|
2069
|
-
{ type: ConfirmationService },
|
|
2070
|
-
{ type: ComponentFactoryResolver },
|
|
2071
|
-
{ type: RendererFactory2 },
|
|
2072
|
-
{ type: Injector },
|
|
2073
|
-
{ type: undefined, decorators: [{ type: Inject, args: ['HTTP_ERROR_CONFIG',] }] }
|
|
2074
|
-
];
|
|
1716
|
+
ErrorHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ErrorHandler, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1717
|
+
ErrorHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ErrorHandler, providedIn: 'root' });
|
|
1718
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ErrorHandler, decorators: [{
|
|
1719
|
+
type: Injectable,
|
|
1720
|
+
args: [{ providedIn: 'root' }]
|
|
1721
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
2075
1722
|
|
|
2076
1723
|
const LAZY_STYLES = new InjectionToken('LAZY_STYLES');
|
|
2077
1724
|
|
|
@@ -2143,15 +1790,14 @@ class LazyStyleHandler {
|
|
|
2143
1790
|
});
|
|
2144
1791
|
}
|
|
2145
1792
|
}
|
|
2146
|
-
LazyStyleHandler.ɵ
|
|
2147
|
-
LazyStyleHandler
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
];
|
|
1793
|
+
LazyStyleHandler.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LazyStyleHandler, deps: [{ token: i0.Injector }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1794
|
+
LazyStyleHandler.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LazyStyleHandler, providedIn: 'root' });
|
|
1795
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: LazyStyleHandler, decorators: [{
|
|
1796
|
+
type: Injectable,
|
|
1797
|
+
args: [{
|
|
1798
|
+
providedIn: 'root',
|
|
1799
|
+
}]
|
|
1800
|
+
}], ctorParameters: function () { return [{ type: i0.Injector }]; } });
|
|
2155
1801
|
function createLazyStyleHref(style, dir) {
|
|
2156
1802
|
return style.replace(/{{\s*dir\s*}}/g, dir);
|
|
2157
1803
|
}
|
|
@@ -2197,62 +1843,6 @@ function configureRoutes(routesService) {
|
|
|
2197
1843
|
};
|
|
2198
1844
|
}
|
|
2199
1845
|
|
|
2200
|
-
/**
|
|
2201
|
-
* @deprecated To be removed in v5.0
|
|
2202
|
-
*/
|
|
2203
|
-
class ModalContainerComponent {
|
|
2204
|
-
}
|
|
2205
|
-
ModalContainerComponent.decorators = [
|
|
2206
|
-
{ type: Component, args: [{
|
|
2207
|
-
selector: 'abp-modal-container',
|
|
2208
|
-
template: '<ng-container #container></ng-container>'
|
|
2209
|
-
},] }
|
|
2210
|
-
];
|
|
2211
|
-
ModalContainerComponent.propDecorators = {
|
|
2212
|
-
container: [{ type: ViewChild, args: ['container', { static: true, read: ViewContainerRef },] }]
|
|
2213
|
-
};
|
|
2214
|
-
|
|
2215
|
-
/**
|
|
2216
|
-
* @deprecated Use ng-bootstrap modal. To be deleted in v5.0.
|
|
2217
|
-
*/
|
|
2218
|
-
class ModalService {
|
|
2219
|
-
constructor(contentProjectionService) {
|
|
2220
|
-
this.contentProjectionService = contentProjectionService;
|
|
2221
|
-
this.setContainer();
|
|
2222
|
-
}
|
|
2223
|
-
setContainer() {
|
|
2224
|
-
this.containerComponentRef = this.contentProjectionService.projectContent(PROJECTION_STRATEGY.AppendComponentToBody(ModalContainerComponent));
|
|
2225
|
-
this.containerComponentRef.changeDetectorRef.detectChanges();
|
|
2226
|
-
}
|
|
2227
|
-
clearModal() {
|
|
2228
|
-
this.getContainer().clear();
|
|
2229
|
-
this.detectChanges();
|
|
2230
|
-
}
|
|
2231
|
-
detectChanges() {
|
|
2232
|
-
this.containerComponentRef.changeDetectorRef.detectChanges();
|
|
2233
|
-
}
|
|
2234
|
-
getContainer() {
|
|
2235
|
-
return this.containerComponentRef.instance.container;
|
|
2236
|
-
}
|
|
2237
|
-
renderTemplate(template, context) {
|
|
2238
|
-
const containerRef = this.getContainer();
|
|
2239
|
-
const strategy = PROJECTION_STRATEGY.ProjectTemplateToContainer(template, containerRef, context);
|
|
2240
|
-
this.contentProjectionService.projectContent(strategy);
|
|
2241
|
-
}
|
|
2242
|
-
ngOnDestroy() {
|
|
2243
|
-
this.containerComponentRef.destroy();
|
|
2244
|
-
}
|
|
2245
|
-
}
|
|
2246
|
-
ModalService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ModalService_Factory() { return new ModalService(i0.ɵɵinject(i1.ContentProjectionService)); }, token: ModalService, providedIn: "root" });
|
|
2247
|
-
ModalService.decorators = [
|
|
2248
|
-
{ type: Injectable, args: [{
|
|
2249
|
-
providedIn: 'root',
|
|
2250
|
-
},] }
|
|
2251
|
-
];
|
|
2252
|
-
ModalService.ctorParameters = () => [
|
|
2253
|
-
{ type: ContentProjectionService }
|
|
2254
|
-
];
|
|
2255
|
-
|
|
2256
1846
|
class NavItemsService {
|
|
2257
1847
|
constructor() {
|
|
2258
1848
|
this._items$ = new BehaviorSubject([]);
|
|
@@ -2286,10 +1876,12 @@ class NavItemsService {
|
|
|
2286
1876
|
this._items$.next(items);
|
|
2287
1877
|
}
|
|
2288
1878
|
}
|
|
2289
|
-
NavItemsService.ɵ
|
|
2290
|
-
NavItemsService
|
|
2291
|
-
|
|
2292
|
-
|
|
1879
|
+
NavItemsService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: NavItemsService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1880
|
+
NavItemsService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: NavItemsService, providedIn: 'root' });
|
|
1881
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: NavItemsService, decorators: [{
|
|
1882
|
+
type: Injectable,
|
|
1883
|
+
args: [{ providedIn: 'root' }]
|
|
1884
|
+
}] });
|
|
2293
1885
|
function sortItems(a, b) {
|
|
2294
1886
|
if (!a.order)
|
|
2295
1887
|
return 1;
|
|
@@ -2314,18 +1906,115 @@ class PageAlertService {
|
|
|
2314
1906
|
this.alerts.set(alerts);
|
|
2315
1907
|
}
|
|
2316
1908
|
}
|
|
2317
|
-
PageAlertService.ɵ
|
|
2318
|
-
PageAlertService
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
1909
|
+
PageAlertService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: PageAlertService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1910
|
+
PageAlertService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: PageAlertService, providedIn: 'root' });
|
|
1911
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: PageAlertService, decorators: [{
|
|
1912
|
+
type: Injectable,
|
|
1913
|
+
args: [{ providedIn: 'root' }]
|
|
1914
|
+
}], ctorParameters: function () { return []; } });
|
|
1915
|
+
|
|
1916
|
+
class ToasterService {
|
|
1917
|
+
constructor(contentProjectionService) {
|
|
1918
|
+
this.contentProjectionService = contentProjectionService;
|
|
1919
|
+
this.toasts$ = new ReplaySubject(1);
|
|
1920
|
+
this.lastId = -1;
|
|
1921
|
+
this.toasts = [];
|
|
1922
|
+
/**
|
|
1923
|
+
* Removes the toast with given id.
|
|
1924
|
+
* @param id ID of the toast to be removed.
|
|
1925
|
+
*/
|
|
1926
|
+
this.remove = (id) => {
|
|
1927
|
+
this.toasts = this.toasts.filter(toast => { var _a; return ((_a = toast.options) === null || _a === void 0 ? void 0 : _a.id) !== id; });
|
|
1928
|
+
this.toasts$.next(this.toasts);
|
|
1929
|
+
};
|
|
1930
|
+
}
|
|
1931
|
+
setContainer() {
|
|
1932
|
+
this.containerComponentRef = this.contentProjectionService.projectContent(PROJECTION_STRATEGY.AppendComponentToBody(ToastContainerComponent, {
|
|
1933
|
+
toasts$: this.toasts$,
|
|
1934
|
+
remove: this.remove,
|
|
1935
|
+
}));
|
|
1936
|
+
this.containerComponentRef.changeDetectorRef.detectChanges();
|
|
1937
|
+
}
|
|
1938
|
+
/**
|
|
1939
|
+
* Creates an info toast with given parameters.
|
|
1940
|
+
* @param message Content of the toast
|
|
1941
|
+
* @param title Title of the toast
|
|
1942
|
+
* @param options Spesific style or structural options for individual toast
|
|
1943
|
+
*/
|
|
1944
|
+
info(message, title, options) {
|
|
1945
|
+
return this.show(message, title, 'info', options);
|
|
1946
|
+
}
|
|
1947
|
+
/**
|
|
1948
|
+
* Creates a success toast with given parameters.
|
|
1949
|
+
* @param message Content of the toast
|
|
1950
|
+
* @param title Title of the toast
|
|
1951
|
+
* @param options Spesific style or structural options for individual toast
|
|
1952
|
+
*/
|
|
1953
|
+
success(message, title, options) {
|
|
1954
|
+
return this.show(message, title, 'success', options);
|
|
1955
|
+
}
|
|
1956
|
+
/**
|
|
1957
|
+
* Creates a warning toast with given parameters.
|
|
1958
|
+
* @param message Content of the toast
|
|
1959
|
+
* @param title Title of the toast
|
|
1960
|
+
* @param options Spesific style or structural options for individual toast
|
|
1961
|
+
*/
|
|
1962
|
+
warn(message, title, options) {
|
|
1963
|
+
return this.show(message, title, 'warning', options);
|
|
1964
|
+
}
|
|
1965
|
+
/**
|
|
1966
|
+
* Creates an error toast with given parameters.
|
|
1967
|
+
* @param message Content of the toast
|
|
1968
|
+
* @param title Title of the toast
|
|
1969
|
+
* @param options Spesific style or structural options for individual toast
|
|
1970
|
+
*/
|
|
1971
|
+
error(message, title, options) {
|
|
1972
|
+
return this.show(message, title, 'error', options);
|
|
1973
|
+
}
|
|
1974
|
+
/**
|
|
1975
|
+
* Creates a toast with given parameters.
|
|
1976
|
+
* @param message Content of the toast
|
|
1977
|
+
* @param title Title of the toast
|
|
1978
|
+
* @param severity Sets color of the toast. "success", "warning" etc.
|
|
1979
|
+
* @param options Spesific style or structural options for individual toast
|
|
1980
|
+
*/
|
|
1981
|
+
show(message, title = null, severity = 'neutral', options = {}) {
|
|
1982
|
+
if (!this.containerComponentRef)
|
|
1983
|
+
this.setContainer();
|
|
1984
|
+
const id = ++this.lastId;
|
|
1985
|
+
this.toasts.push({
|
|
1986
|
+
message,
|
|
1987
|
+
title,
|
|
1988
|
+
severity,
|
|
1989
|
+
options: Object.assign({ closable: true, id }, options),
|
|
1990
|
+
});
|
|
1991
|
+
this.toasts$.next(this.toasts);
|
|
1992
|
+
return id;
|
|
1993
|
+
}
|
|
1994
|
+
/**
|
|
1995
|
+
* Removes all open toasts at once.
|
|
1996
|
+
*/
|
|
1997
|
+
clear(containerKey) {
|
|
1998
|
+
this.toasts = !containerKey
|
|
1999
|
+
? []
|
|
2000
|
+
: this.toasts.filter(toast => { var _a; return ((_a = toast.options) === null || _a === void 0 ? void 0 : _a.containerKey) !== containerKey; });
|
|
2001
|
+
this.toasts$.next(this.toasts);
|
|
2002
|
+
}
|
|
2003
|
+
}
|
|
2004
|
+
ToasterService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ToasterService, deps: [{ token: i2.ContentProjectionService }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2005
|
+
ToasterService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ToasterService, providedIn: 'root' });
|
|
2006
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ToasterService, decorators: [{
|
|
2007
|
+
type: Injectable,
|
|
2008
|
+
args: [{
|
|
2009
|
+
providedIn: 'root',
|
|
2010
|
+
}]
|
|
2011
|
+
}], ctorParameters: function () { return [{ type: i2.ContentProjectionService }]; } });
|
|
2322
2012
|
|
|
2323
2013
|
const THEME_SHARED_APPEND_CONTENT = new InjectionToken('THEME_SHARED_APPEND_CONTENT', {
|
|
2324
2014
|
providedIn: 'root',
|
|
2325
2015
|
factory: () => {
|
|
2326
2016
|
const domInsertion = inject(DomInsertionService);
|
|
2327
2017
|
domInsertion.insertContent(CONTENT_STRATEGY.AppendStyleToHead(styles));
|
|
2328
|
-
import('chart.js').then(() => chartJsLoaded$.next(true));
|
|
2329
2018
|
},
|
|
2330
2019
|
});
|
|
2331
2020
|
|
|
@@ -2364,63 +2053,98 @@ class DateParserFormatter extends NgbDateParserFormatter {
|
|
|
2364
2053
|
return null;
|
|
2365
2054
|
}
|
|
2366
2055
|
format(date) {
|
|
2056
|
+
var _a, _b;
|
|
2367
2057
|
if (!date)
|
|
2368
2058
|
return '';
|
|
2369
2059
|
const localization = this.configState.getOne('localization');
|
|
2370
|
-
const dateFormat =
|
|
2060
|
+
const dateFormat = ((_b = (_a = localization.currentCulture) === null || _a === void 0 ? void 0 : _a.dateTimeFormat) === null || _b === void 0 ? void 0 : _b.shortDatePattern) || 'yyyy-MM-dd';
|
|
2371
2061
|
return formatDate(new Date(date.year, date.month - 1, date.day), dateFormat, this.locale);
|
|
2372
2062
|
}
|
|
2373
2063
|
}
|
|
2374
|
-
DateParserFormatter
|
|
2375
|
-
|
|
2376
|
-
|
|
2377
|
-
|
|
2378
|
-
|
|
2379
|
-
|
|
2380
|
-
]
|
|
2064
|
+
DateParserFormatter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: DateParserFormatter, deps: [{ token: i2.ConfigStateService }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2065
|
+
DateParserFormatter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: DateParserFormatter });
|
|
2066
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: DateParserFormatter, decorators: [{
|
|
2067
|
+
type: Injectable
|
|
2068
|
+
}], ctorParameters: function () { return [{ type: i2.ConfigStateService }, { type: undefined, decorators: [{
|
|
2069
|
+
type: Inject,
|
|
2070
|
+
args: [LOCALE_ID]
|
|
2071
|
+
}] }]; } });
|
|
2381
2072
|
|
|
2382
2073
|
const declarationsWithExports = [
|
|
2383
2074
|
BreadcrumbComponent,
|
|
2075
|
+
BreadcrumbItemsComponent,
|
|
2384
2076
|
ButtonComponent,
|
|
2385
|
-
ChartComponent,
|
|
2386
2077
|
ConfirmationComponent,
|
|
2387
2078
|
LoaderBarComponent,
|
|
2388
2079
|
LoadingComponent,
|
|
2389
2080
|
ModalComponent,
|
|
2390
|
-
TableComponent,
|
|
2391
|
-
TableEmptyMessageComponent,
|
|
2392
2081
|
ToastComponent,
|
|
2393
2082
|
ToastContainerComponent,
|
|
2394
|
-
SortOrderIconComponent,
|
|
2395
2083
|
NgxDatatableDefaultDirective,
|
|
2396
2084
|
NgxDatatableListDirective,
|
|
2397
2085
|
LoadingDirective,
|
|
2398
|
-
TableSortDirective,
|
|
2399
2086
|
ModalCloseDirective,
|
|
2400
2087
|
];
|
|
2401
2088
|
class BaseThemeSharedModule {
|
|
2402
2089
|
}
|
|
2403
|
-
BaseThemeSharedModule
|
|
2404
|
-
|
|
2405
|
-
|
|
2406
|
-
|
|
2407
|
-
|
|
2408
|
-
|
|
2409
|
-
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
|
|
2413
|
-
|
|
2414
|
-
|
|
2415
|
-
|
|
2416
|
-
|
|
2417
|
-
|
|
2418
|
-
|
|
2419
|
-
|
|
2420
|
-
|
|
2421
|
-
|
|
2422
|
-
|
|
2423
|
-
|
|
2090
|
+
BaseThemeSharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: BaseThemeSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2091
|
+
BaseThemeSharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: BaseThemeSharedModule, declarations: [BreadcrumbComponent,
|
|
2092
|
+
BreadcrumbItemsComponent,
|
|
2093
|
+
ButtonComponent,
|
|
2094
|
+
ConfirmationComponent,
|
|
2095
|
+
LoaderBarComponent,
|
|
2096
|
+
LoadingComponent,
|
|
2097
|
+
ModalComponent,
|
|
2098
|
+
ToastComponent,
|
|
2099
|
+
ToastContainerComponent,
|
|
2100
|
+
NgxDatatableDefaultDirective,
|
|
2101
|
+
NgxDatatableListDirective,
|
|
2102
|
+
LoadingDirective,
|
|
2103
|
+
ModalCloseDirective, HttpErrorWrapperComponent], imports: [CoreModule,
|
|
2104
|
+
NgxDatatableModule,
|
|
2105
|
+
NgxValidateCoreModule,
|
|
2106
|
+
NgbPaginationModule,
|
|
2107
|
+
EllipsisModule], exports: [NgxDatatableModule, EllipsisModule, BreadcrumbComponent,
|
|
2108
|
+
BreadcrumbItemsComponent,
|
|
2109
|
+
ButtonComponent,
|
|
2110
|
+
ConfirmationComponent,
|
|
2111
|
+
LoaderBarComponent,
|
|
2112
|
+
LoadingComponent,
|
|
2113
|
+
ModalComponent,
|
|
2114
|
+
ToastComponent,
|
|
2115
|
+
ToastContainerComponent,
|
|
2116
|
+
NgxDatatableDefaultDirective,
|
|
2117
|
+
NgxDatatableListDirective,
|
|
2118
|
+
LoadingDirective,
|
|
2119
|
+
ModalCloseDirective] });
|
|
2120
|
+
BaseThemeSharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: BaseThemeSharedModule, providers: [DatePipe], imports: [[
|
|
2121
|
+
CoreModule,
|
|
2122
|
+
NgxDatatableModule,
|
|
2123
|
+
NgxValidateCoreModule,
|
|
2124
|
+
NgbPaginationModule,
|
|
2125
|
+
EllipsisModule,
|
|
2126
|
+
], NgxDatatableModule, EllipsisModule] });
|
|
2127
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: BaseThemeSharedModule, decorators: [{
|
|
2128
|
+
type: NgModule,
|
|
2129
|
+
args: [{
|
|
2130
|
+
imports: [
|
|
2131
|
+
CoreModule,
|
|
2132
|
+
NgxDatatableModule,
|
|
2133
|
+
NgxValidateCoreModule,
|
|
2134
|
+
NgbPaginationModule,
|
|
2135
|
+
EllipsisModule,
|
|
2136
|
+
],
|
|
2137
|
+
declarations: [...declarationsWithExports, HttpErrorWrapperComponent],
|
|
2138
|
+
exports: [NgxDatatableModule, EllipsisModule, ...declarationsWithExports],
|
|
2139
|
+
providers: [DatePipe],
|
|
2140
|
+
entryComponents: [
|
|
2141
|
+
HttpErrorWrapperComponent,
|
|
2142
|
+
LoadingComponent,
|
|
2143
|
+
ToastContainerComponent,
|
|
2144
|
+
ConfirmationComponent,
|
|
2145
|
+
],
|
|
2146
|
+
}]
|
|
2147
|
+
}] });
|
|
2424
2148
|
class ThemeSharedModule {
|
|
2425
2149
|
static forRoot({ httpErrorConfig, validation = {} } = {}) {
|
|
2426
2150
|
return {
|
|
@@ -2469,12 +2193,16 @@ class ThemeSharedModule {
|
|
|
2469
2193
|
};
|
|
2470
2194
|
}
|
|
2471
2195
|
}
|
|
2472
|
-
ThemeSharedModule
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2196
|
+
ThemeSharedModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ThemeSharedModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2197
|
+
ThemeSharedModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ThemeSharedModule, imports: [BaseThemeSharedModule], exports: [BaseThemeSharedModule] });
|
|
2198
|
+
ThemeSharedModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ThemeSharedModule, imports: [[BaseThemeSharedModule], BaseThemeSharedModule] });
|
|
2199
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ThemeSharedModule, decorators: [{
|
|
2200
|
+
type: NgModule,
|
|
2201
|
+
args: [{
|
|
2202
|
+
imports: [BaseThemeSharedModule],
|
|
2203
|
+
exports: [BaseThemeSharedModule],
|
|
2204
|
+
}]
|
|
2205
|
+
}] });
|
|
2478
2206
|
|
|
2479
2207
|
const { minLength, maxLength } = Validators;
|
|
2480
2208
|
function getPasswordValidators(injector) {
|
|
@@ -2514,5 +2242,5 @@ function getRuleFn(injector) {
|
|
|
2514
2242
|
* Generated bundle index. Do not edit.
|
|
2515
2243
|
*/
|
|
2516
2244
|
|
|
2517
|
-
export { BOOTSTRAP, BaseThemeSharedModule, BreadcrumbComponent,
|
|
2245
|
+
export { BOOTSTRAP, BaseThemeSharedModule, BreadcrumbComponent, BreadcrumbItemsComponent, ButtonComponent, Confirmation, ConfirmationComponent, ConfirmationService, DEFAULT_ERROR_LOCALIZATIONS, DEFAULT_ERROR_MESSAGES, DEFAULT_VALIDATION_BLUEPRINTS, DateParserFormatter, EllipsisDirective, EllipsisModule, ErrorHandler, HTTP_ERROR_CONFIG, HTTP_ERROR_HANDLER, HttpErrorWrapperComponent, LAZY_STYLES, LazyStyleHandler, LoaderBarComponent, LoadingComponent, LoadingDirective, ModalCloseDirective, ModalComponent, ModalRefService, NGX_DATATABLE_MESSAGES, NG_BOOTSTRAP_CONFIG_PROVIDERS, NavItem, NavItemsService, NgxDatatableDefaultDirective, NgxDatatableListDirective, PageAlertService, SUPPRESS_UNSAVED_CHANGES_WARNING, THEME_SHARED_APPEND_CONTENT, THEME_SHARED_ROUTE_PROVIDERS, ThemeSharedModule, ToastComponent, ToastContainerComponent, ToasterService, bounceIn, collapse, collapseLinearWithMargin, collapseWithMargin, collapseX, collapseY, collapseYWithMargin, configureNgBootstrap, configureRoutes, createLazyStyleHref, defaultNgxDatatableMessages, dialogAnimation, expandX, expandY, expandYWithMargin, fadeAnimation, fadeIn, fadeInDown, fadeInLeft, fadeInRight, fadeInUp, fadeOut, fadeOutDown, fadeOutLeft, fadeOutRight, fadeOutUp, getPasswordValidators, httpErrorConfigFactory, initLazyStyleHandler, slideFromBottom, toastInOut };
|
|
2518
2246
|
//# sourceMappingURL=abp-ng.theme.shared.js.map
|