@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,10 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/animations'), require('@
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@abp/ng.theme.shared', ['exports', '@angular/animations', '@
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.abp = global.abp || {}, global.abp.ng = global.abp.ng || {}, global.abp.ng.theme = global.abp.ng.theme || {}, global.abp.ng.theme.shared = {}), global.ng.animations, global.
|
|
5
|
-
}(this, (function (exports, animations, i1,
|
|
6
|
-
|
|
7
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/animations'), require('@angular/core'), require('@angular/common'), require('@angular/router'), require('@abp/ng.core'), require('rxjs/operators'), require('rxjs'), require('@ng-bootstrap/ng-bootstrap'), require('@swimlane/ngx-datatable'), require('@angular/common/http'), require('@ngx-validate/core'), require('@angular/forms')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@abp/ng.theme.shared', ['exports', '@angular/animations', '@angular/core', '@angular/common', '@angular/router', '@abp/ng.core', 'rxjs/operators', 'rxjs', '@ng-bootstrap/ng-bootstrap', '@swimlane/ngx-datatable', '@angular/common/http', '@ngx-validate/core', '@angular/forms'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.abp = global.abp || {}, global.abp.ng = global.abp.ng || {}, global.abp.ng.theme = global.abp.ng.theme || {}, global.abp.ng.theme.shared = {}), global.ng.animations, global.ng.core, global.ng.common, global.ng.router, global.i2, global.rxjs.operators, global.rxjs, global.i3, global.i1$2, global.ng.common.http, global.core, global.ng.forms));
|
|
5
|
+
}(this, (function (exports, animations, i0, i1, i1$1, i2, operators, rxjs, i3, i1$2, http, core, forms) { 'use strict';
|
|
8
6
|
|
|
9
7
|
function _interopNamespace(e) {
|
|
10
8
|
if (e && e.__esModule) return e;
|
|
@@ -26,26 +24,27 @@
|
|
|
26
24
|
return Object.freeze(n);
|
|
27
25
|
}
|
|
28
26
|
|
|
29
|
-
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
30
27
|
var i0__namespace = /*#__PURE__*/_interopNamespace(i0);
|
|
31
|
-
var
|
|
32
|
-
var clone__default = /*#__PURE__*/_interopDefaultLegacy(clone);
|
|
28
|
+
var i1__namespace = /*#__PURE__*/_interopNamespace(i1);
|
|
33
29
|
var i1__namespace$1 = /*#__PURE__*/_interopNamespace(i1$1);
|
|
30
|
+
var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
|
|
31
|
+
var i3__namespace = /*#__PURE__*/_interopNamespace(i3);
|
|
32
|
+
var i1__namespace$2 = /*#__PURE__*/_interopNamespace(i1$2);
|
|
34
33
|
|
|
35
34
|
var bounceIn = animations.animation([
|
|
36
35
|
animations.style({ opacity: '0', display: '{{ display }}' }),
|
|
37
36
|
animations.animate('{{ time}} {{ easing }}', animations.keyframes([
|
|
38
37
|
animations.style({ opacity: '0', transform: '{{ transform }} scale(0.0)', offset: 0 }),
|
|
39
38
|
animations.style({ opacity: '0', transform: '{{ transform }} scale(0.8)', offset: 0.5 }),
|
|
40
|
-
animations.style({ opacity: '1', transform: '{{ transform }} scale(1.0)', offset: 1 })
|
|
41
|
-
]))
|
|
39
|
+
animations.style({ opacity: '1', transform: '{{ transform }} scale(1.0)', offset: 1 }),
|
|
40
|
+
])),
|
|
42
41
|
], {
|
|
43
42
|
params: {
|
|
44
43
|
time: '350ms',
|
|
45
44
|
easing: 'cubic-bezier(.7,.31,.72,1.47)',
|
|
46
45
|
display: 'block',
|
|
47
|
-
transform: 'translate(-50%, -50%)'
|
|
48
|
-
}
|
|
46
|
+
transform: 'translate(-50%, -50%)',
|
|
47
|
+
},
|
|
49
48
|
});
|
|
50
49
|
|
|
51
50
|
var collapseY = animations.animation([
|
|
@@ -162,6 +161,24 @@
|
|
|
162
161
|
]),
|
|
163
162
|
]);
|
|
164
163
|
|
|
164
|
+
var BreadcrumbItemsComponent = /** @class */ (function () {
|
|
165
|
+
function BreadcrumbItemsComponent() {
|
|
166
|
+
this.items = [];
|
|
167
|
+
}
|
|
168
|
+
return BreadcrumbItemsComponent;
|
|
169
|
+
}());
|
|
170
|
+
BreadcrumbItemsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: BreadcrumbItemsComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
171
|
+
BreadcrumbItemsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: BreadcrumbItemsComponent, selector: "abp-breadcrumb-items", inputs: { items: "items" }, ngImport: i0__namespace, 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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i1__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "abpLocalization": i2__namespace.LocalizationPipe } });
|
|
172
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: BreadcrumbItemsComponent, decorators: [{
|
|
173
|
+
type: i0.Component,
|
|
174
|
+
args: [{
|
|
175
|
+
selector: 'abp-breadcrumb-items',
|
|
176
|
+
templateUrl: './breadcrumb-items.component.html',
|
|
177
|
+
}]
|
|
178
|
+
}], propDecorators: { items: [{
|
|
179
|
+
type: i0.Input
|
|
180
|
+
}] } });
|
|
181
|
+
|
|
165
182
|
/*! *****************************************************************************
|
|
166
183
|
Copyright (c) Microsoft Corporation.
|
|
167
184
|
|
|
@@ -397,7 +414,7 @@
|
|
|
397
414
|
ar[i] = from[i];
|
|
398
415
|
}
|
|
399
416
|
}
|
|
400
|
-
return to.concat(ar || from);
|
|
417
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
401
418
|
}
|
|
402
419
|
function __await(v) {
|
|
403
420
|
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
@@ -491,15 +508,13 @@
|
|
|
491
508
|
}
|
|
492
509
|
BreadcrumbComponent.prototype.ngOnInit = function () {
|
|
493
510
|
var _this = this;
|
|
494
|
-
this.subscription.addOne(this.routerEvents.getNavigationEvents('End').pipe(
|
|
495
|
-
// tslint:disable-next-line:deprecation
|
|
496
|
-
operators.startWith(null), operators.map(function () { return _this.routes.search({ path: i1.getRoutePath(_this.router) }); })), function (route) {
|
|
511
|
+
this.subscription.addOne(this.routerEvents.getNavigationEvents('End').pipe(operators.startWith(null), operators.map(function () { return _this.routes.search({ path: i2.getRoutePath(_this.router) }); })), function (route) {
|
|
497
512
|
_this.segments = [];
|
|
498
513
|
if (route) {
|
|
499
514
|
var node = { parent: route };
|
|
500
515
|
while (node.parent) {
|
|
501
516
|
node = node.parent;
|
|
502
|
-
var parent = node.parent, children = node.children, isLeaf = node.isLeaf, segment = __rest(node, ["parent", "children", "isLeaf"]);
|
|
517
|
+
var parent = node.parent, children = node.children, isLeaf = node.isLeaf, path = node.path, segment = __rest(node, ["parent", "children", "isLeaf", "path"]);
|
|
503
518
|
if (!isAdministration(segment))
|
|
504
519
|
_this.segments.unshift(segment);
|
|
505
520
|
}
|
|
@@ -509,21 +524,17 @@
|
|
|
509
524
|
};
|
|
510
525
|
return BreadcrumbComponent;
|
|
511
526
|
}());
|
|
512
|
-
BreadcrumbComponent
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
{ type: i1.RoutesService },
|
|
524
|
-
{ type: i1.SubscriptionService },
|
|
525
|
-
{ type: i1.RouterEvents }
|
|
526
|
-
]; };
|
|
527
|
+
BreadcrumbComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: BreadcrumbComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i1__namespace$1.Router }, { token: i2__namespace.RoutesService }, { token: i2__namespace.SubscriptionService }, { token: i2__namespace.RouterEvents }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
528
|
+
BreadcrumbComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: BreadcrumbComponent, selector: "abp-breadcrumb", providers: [i2.SubscriptionService], ngImport: i0__namespace, template: "<abp-breadcrumb-items [items]=\"segments\"></abp-breadcrumb-items>\n", components: [{ type: BreadcrumbItemsComponent, selector: "abp-breadcrumb-items", inputs: ["items"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush });
|
|
529
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: BreadcrumbComponent, decorators: [{
|
|
530
|
+
type: i0.Component,
|
|
531
|
+
args: [{
|
|
532
|
+
selector: 'abp-breadcrumb',
|
|
533
|
+
templateUrl: './breadcrumb.component.html',
|
|
534
|
+
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
535
|
+
providers: [i2.SubscriptionService],
|
|
536
|
+
}]
|
|
537
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i1__namespace$1.Router }, { type: i2__namespace.RoutesService }, { type: i2__namespace.SubscriptionService }, { type: i2__namespace.RouterEvents }]; } });
|
|
527
538
|
function isAdministration(route) {
|
|
528
539
|
return route.name === "AbpUiNavigation::Menu:Administration" /* Administration */;
|
|
529
540
|
}
|
|
@@ -536,11 +547,9 @@
|
|
|
536
547
|
this.buttonType = 'button';
|
|
537
548
|
this.loading = false;
|
|
538
549
|
this.disabled = false;
|
|
539
|
-
// tslint:disable
|
|
540
550
|
this.click = new i0.EventEmitter();
|
|
541
551
|
this.focus = new i0.EventEmitter();
|
|
542
552
|
this.blur = new i0.EventEmitter();
|
|
543
|
-
// tslint:enable
|
|
544
553
|
this.abpClick = new i0.EventEmitter();
|
|
545
554
|
this.abpFocus = new i0.EventEmitter();
|
|
546
555
|
this.abpBlur = new i0.EventEmitter();
|
|
@@ -562,173 +571,44 @@
|
|
|
562
571
|
};
|
|
563
572
|
return ButtonComponent;
|
|
564
573
|
}());
|
|
565
|
-
ButtonComponent
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
var ChartComponent = /** @class */ (function () {
|
|
604
|
-
function ChartComponent(el, cdRef) {
|
|
605
|
-
var _this = this;
|
|
606
|
-
this.el = el;
|
|
607
|
-
this.cdRef = cdRef;
|
|
608
|
-
this.options = {};
|
|
609
|
-
this.plugins = [];
|
|
610
|
-
this.responsive = true;
|
|
611
|
-
// tslint:disable-next-line: no-output-on-prefix
|
|
612
|
-
this.onDataSelect = new i0.EventEmitter();
|
|
613
|
-
this.initialized = new rxjs.BehaviorSubject(this);
|
|
614
|
-
this.onCanvasClick = function (event) {
|
|
615
|
-
if (_this.chart) {
|
|
616
|
-
var element = _this.chart.getElementAtEvent(event);
|
|
617
|
-
var dataset = _this.chart.getDatasetAtEvent(event);
|
|
618
|
-
if (element && element.length && dataset) {
|
|
619
|
-
_this.onDataSelect.emit({
|
|
620
|
-
originalEvent: event,
|
|
621
|
-
element: element[0],
|
|
622
|
-
dataset: dataset,
|
|
623
|
-
});
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
};
|
|
627
|
-
this.initChart = function () {
|
|
628
|
-
var opts = _this.options || {};
|
|
629
|
-
opts.responsive = _this.responsive;
|
|
630
|
-
// allows chart to resize in responsive mode
|
|
631
|
-
if (opts.responsive && (_this.height || _this.width)) {
|
|
632
|
-
opts.maintainAspectRatio = false;
|
|
633
|
-
}
|
|
634
|
-
_this.chart = new Chart(_this.canvas, {
|
|
635
|
-
type: _this.type,
|
|
636
|
-
data: _this.data,
|
|
637
|
-
options: _this.options,
|
|
638
|
-
plugins: _this.plugins,
|
|
639
|
-
});
|
|
640
|
-
_this.cdRef.detectChanges();
|
|
641
|
-
};
|
|
642
|
-
this.generateLegend = function () {
|
|
643
|
-
if (_this.chart) {
|
|
644
|
-
return _this.chart.generateLegend();
|
|
645
|
-
}
|
|
646
|
-
};
|
|
647
|
-
this.refresh = function () {
|
|
648
|
-
if (_this.chart) {
|
|
649
|
-
_this.chart.update();
|
|
650
|
-
_this.cdRef.detectChanges();
|
|
651
|
-
}
|
|
652
|
-
};
|
|
653
|
-
this.reinit = function () {
|
|
654
|
-
if (_this.chart) {
|
|
655
|
-
_this.chart.destroy();
|
|
656
|
-
_this.initChart();
|
|
657
|
-
}
|
|
658
|
-
};
|
|
659
|
-
}
|
|
660
|
-
Object.defineProperty(ChartComponent.prototype, "data", {
|
|
661
|
-
get: function () {
|
|
662
|
-
return this._data;
|
|
663
|
-
},
|
|
664
|
-
set: function (val) {
|
|
665
|
-
this._data = val;
|
|
666
|
-
this.reinit();
|
|
667
|
-
},
|
|
668
|
-
enumerable: false,
|
|
669
|
-
configurable: true
|
|
670
|
-
});
|
|
671
|
-
Object.defineProperty(ChartComponent.prototype, "canvas", {
|
|
672
|
-
get: function () {
|
|
673
|
-
return this.el.nativeElement.children[0].children[0];
|
|
674
|
-
},
|
|
675
|
-
enumerable: false,
|
|
676
|
-
configurable: true
|
|
677
|
-
});
|
|
678
|
-
Object.defineProperty(ChartComponent.prototype, "base64Image", {
|
|
679
|
-
get: function () {
|
|
680
|
-
return this.chart.toBase64Image();
|
|
681
|
-
},
|
|
682
|
-
enumerable: false,
|
|
683
|
-
configurable: true
|
|
684
|
-
});
|
|
685
|
-
ChartComponent.prototype.ngAfterViewInit = function () {
|
|
686
|
-
var _this = this;
|
|
687
|
-
chartJsLoaded$.subscribe(function () {
|
|
688
|
-
_this.testChartJs();
|
|
689
|
-
_this.initChart();
|
|
690
|
-
_this._initialized = true;
|
|
691
|
-
});
|
|
692
|
-
};
|
|
693
|
-
ChartComponent.prototype.testChartJs = function () {
|
|
694
|
-
try {
|
|
695
|
-
// tslint:disable-next-line: no-unused-expression
|
|
696
|
-
Chart;
|
|
697
|
-
}
|
|
698
|
-
catch (error) {
|
|
699
|
-
throw new Error("Chart is not found. Import the Chart from app.module like shown below:\n import('chart.js');\n ");
|
|
700
|
-
}
|
|
701
|
-
};
|
|
702
|
-
ChartComponent.prototype.ngOnDestroy = function () {
|
|
703
|
-
if (this.chart) {
|
|
704
|
-
this.chart.destroy();
|
|
705
|
-
this._initialized = false;
|
|
706
|
-
this.chart = null;
|
|
707
|
-
}
|
|
708
|
-
};
|
|
709
|
-
return ChartComponent;
|
|
710
|
-
}());
|
|
711
|
-
ChartComponent.decorators = [
|
|
712
|
-
{ type: i0.Component, args: [{
|
|
713
|
-
selector: 'abp-chart',
|
|
714
|
-
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"
|
|
715
|
-
},] }
|
|
716
|
-
];
|
|
717
|
-
ChartComponent.ctorParameters = function () { return [
|
|
718
|
-
{ type: i0.ElementRef },
|
|
719
|
-
{ type: i0.ChangeDetectorRef }
|
|
720
|
-
]; };
|
|
721
|
-
ChartComponent.propDecorators = {
|
|
722
|
-
type: [{ type: i0.Input }],
|
|
723
|
-
options: [{ type: i0.Input }],
|
|
724
|
-
plugins: [{ type: i0.Input }],
|
|
725
|
-
width: [{ type: i0.Input }],
|
|
726
|
-
height: [{ type: i0.Input }],
|
|
727
|
-
responsive: [{ type: i0.Input }],
|
|
728
|
-
onDataSelect: [{ type: i0.Output }],
|
|
729
|
-
initialized: [{ type: i0.Output }],
|
|
730
|
-
data: [{ type: i0.Input }]
|
|
731
|
-
};
|
|
574
|
+
ButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ButtonComponent, deps: [{ token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
575
|
+
ButtonComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, template: "\n <button\n #button\n [id]=\"buttonId\"\n [attr.type]=\"buttonType\"\n [ngClass]=\"buttonClass\"\n [disabled]=\"loading || disabled\"\n (click.stop)=\"click.next($event); abpClick.next($event)\"\n (focus)=\"focus.next($event); abpFocus.next($event)\"\n (blur)=\"blur.next($event); abpBlur.next($event)\"\n >\n <i [ngClass]=\"icon\" class=\"mr-1\"></i><ng-content></ng-content>\n </button>\n ", isInline: true, directives: [{ type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i2__namespace.StopPropagationDirective, selector: "[click.stop]", outputs: ["click.stop"] }] });
|
|
576
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ButtonComponent, decorators: [{
|
|
577
|
+
type: i0.Component,
|
|
578
|
+
args: [{
|
|
579
|
+
selector: 'abp-button',
|
|
580
|
+
template: "\n <button\n #button\n [id]=\"buttonId\"\n [attr.type]=\"buttonType\"\n [ngClass]=\"buttonClass\"\n [disabled]=\"loading || disabled\"\n (click.stop)=\"click.next($event); abpClick.next($event)\"\n (focus)=\"focus.next($event); abpFocus.next($event)\"\n (blur)=\"blur.next($event); abpBlur.next($event)\"\n >\n <i [ngClass]=\"icon\" class=\"mr-1\"></i><ng-content></ng-content>\n </button>\n ",
|
|
581
|
+
}]
|
|
582
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.Renderer2 }]; }, propDecorators: { buttonId: [{
|
|
583
|
+
type: i0.Input
|
|
584
|
+
}], buttonClass: [{
|
|
585
|
+
type: i0.Input
|
|
586
|
+
}], buttonType: [{
|
|
587
|
+
type: i0.Input
|
|
588
|
+
}], iconClass: [{
|
|
589
|
+
type: i0.Input
|
|
590
|
+
}], loading: [{
|
|
591
|
+
type: i0.Input
|
|
592
|
+
}], disabled: [{
|
|
593
|
+
type: i0.Input
|
|
594
|
+
}], attributes: [{
|
|
595
|
+
type: i0.Input
|
|
596
|
+
}], click: [{
|
|
597
|
+
type: i0.Output
|
|
598
|
+
}], focus: [{
|
|
599
|
+
type: i0.Output
|
|
600
|
+
}], blur: [{
|
|
601
|
+
type: i0.Output
|
|
602
|
+
}], abpClick: [{
|
|
603
|
+
type: i0.Output
|
|
604
|
+
}], abpFocus: [{
|
|
605
|
+
type: i0.Output
|
|
606
|
+
}], abpBlur: [{
|
|
607
|
+
type: i0.Output
|
|
608
|
+
}], buttonRef: [{
|
|
609
|
+
type: i0.ViewChild,
|
|
610
|
+
args: ['button', { static: true }]
|
|
611
|
+
}] } });
|
|
732
612
|
|
|
733
613
|
exports.Confirmation = void 0;
|
|
734
614
|
(function (Confirmation) {
|
|
@@ -766,13 +646,16 @@
|
|
|
766
646
|
};
|
|
767
647
|
return ConfirmationComponent;
|
|
768
648
|
}());
|
|
769
|
-
ConfirmationComponent
|
|
770
|
-
{ type:
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
649
|
+
ConfirmationComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ConfirmationComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
650
|
+
ConfirmationComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: ConfirmationComponent, selector: "abp-confirmation", ngImport: i0__namespace, 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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }], pipes: { "async": i1__namespace.AsyncPipe, "abpLocalization": i2__namespace.LocalizationPipe } });
|
|
651
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ConfirmationComponent, decorators: [{
|
|
652
|
+
type: i0.Component,
|
|
653
|
+
args: [{
|
|
654
|
+
selector: 'abp-confirmation',
|
|
655
|
+
templateUrl: './confirmation.component.html',
|
|
656
|
+
styleUrls: ['./confirmation.component.scss'],
|
|
657
|
+
}]
|
|
658
|
+
}] });
|
|
776
659
|
|
|
777
660
|
var HttpErrorWrapperComponent = /** @class */ (function () {
|
|
778
661
|
function HttpErrorWrapperComponent(subscription) {
|
|
@@ -792,9 +675,9 @@
|
|
|
792
675
|
configurable: true
|
|
793
676
|
});
|
|
794
677
|
HttpErrorWrapperComponent.prototype.ngOnInit = function () {
|
|
678
|
+
var _a;
|
|
795
679
|
this.backgroundColor =
|
|
796
|
-
|
|
797
|
-
'#fff';
|
|
680
|
+
((_a = window.getComputedStyle(document.body)) === null || _a === void 0 ? void 0 : _a.getPropertyValue('background-color')) || '#fff';
|
|
798
681
|
};
|
|
799
682
|
HttpErrorWrapperComponent.prototype.ngAfterViewInit = function () {
|
|
800
683
|
var _this = this;
|
|
@@ -811,27 +694,29 @@
|
|
|
811
694
|
var keyup$ = rxjs.fromEvent(document, 'keyup').pipe(operators.debounceTime(150), operators.filter(function (key) { return key && key.key === 'Escape'; }));
|
|
812
695
|
this.subscription.addOne(keyup$, function () { return _this.destroy(); });
|
|
813
696
|
};
|
|
814
|
-
HttpErrorWrapperComponent.prototype.ngOnDestroy = function () {
|
|
697
|
+
HttpErrorWrapperComponent.prototype.ngOnDestroy = function () {
|
|
698
|
+
this.destroy();
|
|
699
|
+
};
|
|
815
700
|
HttpErrorWrapperComponent.prototype.destroy = function () {
|
|
816
701
|
this.destroy$.next();
|
|
817
702
|
this.destroy$.complete();
|
|
818
703
|
};
|
|
819
704
|
return HttpErrorWrapperComponent;
|
|
820
705
|
}());
|
|
821
|
-
HttpErrorWrapperComponent
|
|
822
|
-
{ type:
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
706
|
+
HttpErrorWrapperComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: HttpErrorWrapperComponent, deps: [{ token: i2__namespace.SubscriptionService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
707
|
+
HttpErrorWrapperComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: HttpErrorWrapperComponent, selector: "abp-http-error-wrapper", providers: [i2.SubscriptionService], viewQueries: [{ propertyName: "containerRef", first: true, predicate: ["container"], descendants: true }], ngImport: i0__namespace, 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__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }], pipes: { "abpLocalization": i2__namespace.LocalizationPipe } });
|
|
708
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: HttpErrorWrapperComponent, decorators: [{
|
|
709
|
+
type: i0.Component,
|
|
710
|
+
args: [{
|
|
711
|
+
selector: 'abp-http-error-wrapper',
|
|
712
|
+
templateUrl: './http-error-wrapper.component.html',
|
|
713
|
+
styleUrls: ['http-error-wrapper.component.scss'],
|
|
714
|
+
providers: [i2.SubscriptionService],
|
|
715
|
+
}]
|
|
716
|
+
}], ctorParameters: function () { return [{ type: i2__namespace.SubscriptionService }]; }, propDecorators: { containerRef: [{
|
|
717
|
+
type: i0.ViewChild,
|
|
718
|
+
args: ['container', { static: false }]
|
|
719
|
+
}] } });
|
|
835
720
|
|
|
836
721
|
var LoaderBarComponent = /** @class */ (function () {
|
|
837
722
|
function LoaderBarComponent(router, cdRef, subscription, httpWaitService, routerWaitService) {
|
|
@@ -921,42 +806,44 @@
|
|
|
921
806
|
};
|
|
922
807
|
return LoaderBarComponent;
|
|
923
808
|
}());
|
|
924
|
-
LoaderBarComponent
|
|
925
|
-
{ type:
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
941
|
-
containerClass: [{ type: i0.Input }],
|
|
942
|
-
color: [{ type: i0.Input }]
|
|
943
|
-
};
|
|
809
|
+
LoaderBarComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LoaderBarComponent, deps: [{ token: i1__namespace$1.Router }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace.SubscriptionService }, { token: i2__namespace.HttpWaitService }, { token: i2__namespace.RouterWaitService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
810
|
+
LoaderBarComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: LoaderBarComponent, selector: "abp-loader-bar", inputs: { isLoading: "isLoading", containerClass: "containerClass", color: "color" }, providers: [i2.SubscriptionService], ngImport: i0__namespace, template: "\n <div id=\"abp-loader-bar\" [ngClass]=\"containerClass\" [class.is-loading]=\"isLoading\">\n <div\n class=\"abp-progress\"\n [class.progressing]=\"progressLevel\"\n [style.width.vw]=\"progressLevel\"\n [ngStyle]=\"{\n 'background-color': color,\n 'box-shadow': boxShadow\n }\"\n ></div>\n </div>\n ", 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__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }] });
|
|
811
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LoaderBarComponent, decorators: [{
|
|
812
|
+
type: i0.Component,
|
|
813
|
+
args: [{
|
|
814
|
+
selector: 'abp-loader-bar',
|
|
815
|
+
template: "\n <div id=\"abp-loader-bar\" [ngClass]=\"containerClass\" [class.is-loading]=\"isLoading\">\n <div\n class=\"abp-progress\"\n [class.progressing]=\"progressLevel\"\n [style.width.vw]=\"progressLevel\"\n [ngStyle]=\"{\n 'background-color': color,\n 'box-shadow': boxShadow\n }\"\n ></div>\n </div>\n ",
|
|
816
|
+
styleUrls: ['./loader-bar.component.scss'],
|
|
817
|
+
providers: [i2.SubscriptionService],
|
|
818
|
+
}]
|
|
819
|
+
}], ctorParameters: function () { return [{ type: i1__namespace$1.Router }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.SubscriptionService }, { type: i2__namespace.HttpWaitService }, { type: i2__namespace.RouterWaitService }]; }, propDecorators: { isLoading: [{
|
|
820
|
+
type: i0.Input
|
|
821
|
+
}], containerClass: [{
|
|
822
|
+
type: i0.Input
|
|
823
|
+
}], color: [{
|
|
824
|
+
type: i0.Input
|
|
825
|
+
}] } });
|
|
944
826
|
|
|
945
827
|
var LoadingComponent = /** @class */ (function () {
|
|
946
828
|
function LoadingComponent() {
|
|
947
829
|
}
|
|
948
|
-
LoadingComponent.prototype.ngOnInit = function () { };
|
|
949
830
|
return LoadingComponent;
|
|
950
831
|
}());
|
|
951
|
-
LoadingComponent
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
832
|
+
LoadingComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LoadingComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
833
|
+
LoadingComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: LoadingComponent, selector: "abp-loading", ngImport: i0__namespace, template: "\n <div class=\"abp-loading\">\n <i class=\"fa fa-spinner fa-pulse abp-spinner\"></i>\n </div>\n ", 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__namespace.ViewEncapsulation.None });
|
|
834
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LoadingComponent, decorators: [{
|
|
835
|
+
type: i0.Component,
|
|
836
|
+
args: [{
|
|
837
|
+
selector: 'abp-loading',
|
|
838
|
+
template: "\n <div class=\"abp-loading\">\n <i class=\"fa fa-spinner fa-pulse abp-spinner\"></i>\n </div>\n ",
|
|
839
|
+
encapsulation: i0.ViewEncapsulation.None,
|
|
840
|
+
styles: [
|
|
841
|
+
"\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 ",
|
|
842
|
+
],
|
|
843
|
+
}]
|
|
844
|
+
}] });
|
|
845
|
+
|
|
846
|
+
var SUPPRESS_UNSAVED_CHANGES_WARNING = new i0.InjectionToken('SUPPRESS_UNSAVED_CHANGES_WARNING');
|
|
960
847
|
|
|
961
848
|
var ConfirmationService = /** @class */ (function () {
|
|
962
849
|
function ConfirmationService(contentProjectionService) {
|
|
@@ -971,7 +858,7 @@
|
|
|
971
858
|
}
|
|
972
859
|
ConfirmationService.prototype.setContainer = function () {
|
|
973
860
|
var _this = this;
|
|
974
|
-
this.containerComponentRef = this.contentProjectionService.projectContent(
|
|
861
|
+
this.containerComponentRef = this.contentProjectionService.projectContent(i2.PROJECTION_STRATEGY.AppendComponentToBody(ConfirmationComponent, {
|
|
975
862
|
confirmation$: this.confirmation$,
|
|
976
863
|
clear: this.clear,
|
|
977
864
|
}));
|
|
@@ -1017,16 +904,12 @@
|
|
|
1017
904
|
};
|
|
1018
905
|
return ConfirmationService;
|
|
1019
906
|
}());
|
|
1020
|
-
ConfirmationService.ɵ
|
|
1021
|
-
ConfirmationService
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
]; };
|
|
1027
|
-
|
|
1028
|
-
// TODO: Should be documented
|
|
1029
|
-
var SUPPRESS_UNSAVED_CHANGES_WARNING = new i0.InjectionToken('SUPPRESS_UNSAVED_CHANGES_WARNING');
|
|
907
|
+
ConfirmationService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ConfirmationService, deps: [{ token: i2__namespace.ContentProjectionService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
908
|
+
ConfirmationService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ConfirmationService, providedIn: 'root' });
|
|
909
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ConfirmationService, decorators: [{
|
|
910
|
+
type: i0.Injectable,
|
|
911
|
+
args: [{ providedIn: 'root' }]
|
|
912
|
+
}], ctorParameters: function () { return [{ type: i2__namespace.ContentProjectionService }]; } });
|
|
1030
913
|
|
|
1031
914
|
var ModalRefService = /** @class */ (function () {
|
|
1032
915
|
function ModalRefService() {
|
|
@@ -1046,10 +929,12 @@
|
|
|
1046
929
|
};
|
|
1047
930
|
return ModalRefService;
|
|
1048
931
|
}());
|
|
1049
|
-
ModalRefService.ɵ
|
|
1050
|
-
ModalRefService
|
|
1051
|
-
|
|
1052
|
-
|
|
932
|
+
ModalRefService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ModalRefService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
933
|
+
ModalRefService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ModalRefService, providedIn: 'root' });
|
|
934
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ModalRefService, decorators: [{
|
|
935
|
+
type: i0.Injectable,
|
|
936
|
+
args: [{ providedIn: 'root' }]
|
|
937
|
+
}] });
|
|
1053
938
|
|
|
1054
939
|
var ModalComponent = /** @class */ (function () {
|
|
1055
940
|
function ModalComponent(confirmationService, subscription, suppressUnsavedChangesWarningToken, modal, modalRefService) {
|
|
@@ -1058,18 +943,6 @@
|
|
|
1058
943
|
this.suppressUnsavedChangesWarningToken = suppressUnsavedChangesWarningToken;
|
|
1059
944
|
this.modal = modal;
|
|
1060
945
|
this.modalRefService = modalRefService;
|
|
1061
|
-
/**
|
|
1062
|
-
* @deprecated Use centered property of options input instead. To be deleted in v5.0.
|
|
1063
|
-
*/
|
|
1064
|
-
this.centered = false;
|
|
1065
|
-
/**
|
|
1066
|
-
* @deprecated Use windowClass property of options input instead. To be deleted in v5.0.
|
|
1067
|
-
*/
|
|
1068
|
-
this.modalClass = '';
|
|
1069
|
-
/**
|
|
1070
|
-
* @deprecated Use size property of options input instead. To be deleted in v5.0.
|
|
1071
|
-
*/
|
|
1072
|
-
this.size = 'lg';
|
|
1073
946
|
this.options = {};
|
|
1074
947
|
this.suppressUnsavedChangesWarning = this.suppressUnsavedChangesWarningToken;
|
|
1075
948
|
this.visibleChange = new i0.EventEmitter();
|
|
@@ -1080,7 +953,7 @@
|
|
|
1080
953
|
this._busy = false;
|
|
1081
954
|
this.isConfirmationOpen = false;
|
|
1082
955
|
this.destroy$ = new rxjs.Subject();
|
|
1083
|
-
this.modalIdentifier = "modal-" +
|
|
956
|
+
this.modalIdentifier = "modal-" + i2.uuid();
|
|
1084
957
|
this.toggle$ = new rxjs.Subject();
|
|
1085
958
|
this.initToggleStream();
|
|
1086
959
|
}
|
|
@@ -1154,16 +1027,12 @@
|
|
|
1154
1027
|
return;
|
|
1155
1028
|
}
|
|
1156
1029
|
setTimeout(function () { return _this.listen(); }, 0);
|
|
1157
|
-
this.modalRef = this.modal.open(this.modalContent, Object.assign(Object.assign({
|
|
1158
|
-
// TODO: set size to 'lg' when removed the size variable
|
|
1159
|
-
size: this.size, centered: this.centered, keyboard: false, scrollable: true,
|
|
1160
|
-
beforeDismiss: function () {
|
|
1030
|
+
this.modalRef = this.modal.open(this.modalContent, Object.assign(Object.assign({ size: 'md', centered: false, keyboard: false, scrollable: true, beforeDismiss: function () {
|
|
1161
1031
|
if (!_this.visible)
|
|
1162
1032
|
return true;
|
|
1163
1033
|
_this.close();
|
|
1164
1034
|
return !_this.visible;
|
|
1165
|
-
}
|
|
1166
|
-
}, this.options), { windowClass: this.modalClass + " " + (this.options.windowClass || '') + " " + this.modalIdentifier }));
|
|
1035
|
+
} }, this.options), { windowClass: (this.options.windowClass || '') + " " + this.modalIdentifier }));
|
|
1167
1036
|
this.appear.emit();
|
|
1168
1037
|
};
|
|
1169
1038
|
ModalComponent.prototype.ngOnDestroy = function () {
|
|
@@ -1208,57 +1077,59 @@
|
|
|
1208
1077
|
delete event.returnValue;
|
|
1209
1078
|
}
|
|
1210
1079
|
});
|
|
1211
|
-
setTimeout(function () {
|
|
1212
|
-
if (!_this.abpClose)
|
|
1213
|
-
return;
|
|
1214
|
-
_this.warnForDeprecatedClose();
|
|
1215
|
-
rxjs.fromEvent(_this.abpClose.nativeElement, 'click')
|
|
1216
|
-
.pipe(operators.takeUntil(_this.destroy$))
|
|
1217
|
-
.subscribe(function () { return _this.close(); });
|
|
1218
|
-
}, 0);
|
|
1219
1080
|
this.init.emit();
|
|
1220
1081
|
};
|
|
1221
|
-
ModalComponent.prototype.warnForDeprecatedClose = function () {
|
|
1222
|
-
if (i0.isDevMode()) {
|
|
1223
|
-
console.warn('Please use abpClose directive instead of #abpClose template variable. #abpClose will be removed in v5.0');
|
|
1224
|
-
}
|
|
1225
|
-
};
|
|
1226
1082
|
return ModalComponent;
|
|
1227
1083
|
}());
|
|
1228
|
-
ModalComponent
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1084
|
+
ModalComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ModalComponent, deps: [{ token: ConfirmationService }, { token: i2__namespace.SubscriptionService }, { token: SUPPRESS_UNSAVED_CHANGES_WARNING, optional: true }, { token: i3__namespace.NgbModal }, { token: ModalRefService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1085
|
+
ModalComponent.ɵcmp = i0__namespace.ɵɵ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: [i2.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__namespace, 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__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1086
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ModalComponent, decorators: [{
|
|
1087
|
+
type: i0.Component,
|
|
1088
|
+
args: [{
|
|
1089
|
+
selector: 'abp-modal',
|
|
1090
|
+
templateUrl: './modal.component.html',
|
|
1091
|
+
styleUrls: ['./modal.component.scss'],
|
|
1092
|
+
providers: [i2.SubscriptionService],
|
|
1093
|
+
}]
|
|
1094
|
+
}], ctorParameters: function () {
|
|
1095
|
+
return [{ type: ConfirmationService }, { type: i2__namespace.SubscriptionService }, { type: undefined, decorators: [{
|
|
1096
|
+
type: i0.Optional
|
|
1097
|
+
}, {
|
|
1098
|
+
type: i0.Inject,
|
|
1099
|
+
args: [SUPPRESS_UNSAVED_CHANGES_WARNING]
|
|
1100
|
+
}] }, { type: i3__namespace.NgbModal }, { type: ModalRefService }];
|
|
1101
|
+
}, propDecorators: { visible: [{
|
|
1102
|
+
type: i0.Input
|
|
1103
|
+
}], busy: [{
|
|
1104
|
+
type: i0.Input
|
|
1105
|
+
}], options: [{
|
|
1106
|
+
type: i0.Input
|
|
1107
|
+
}], suppressUnsavedChangesWarning: [{
|
|
1108
|
+
type: i0.Input
|
|
1109
|
+
}], modalContent: [{
|
|
1110
|
+
type: i0.ViewChild,
|
|
1111
|
+
args: ['modalContent']
|
|
1112
|
+
}], abpHeader: [{
|
|
1113
|
+
type: i0.ContentChild,
|
|
1114
|
+
args: ['abpHeader', { static: false }]
|
|
1115
|
+
}], abpBody: [{
|
|
1116
|
+
type: i0.ContentChild,
|
|
1117
|
+
args: ['abpBody', { static: false }]
|
|
1118
|
+
}], abpFooter: [{
|
|
1119
|
+
type: i0.ContentChild,
|
|
1120
|
+
args: ['abpFooter', { static: false }]
|
|
1121
|
+
}], abpSubmit: [{
|
|
1122
|
+
type: i0.ContentChild,
|
|
1123
|
+
args: [ButtonComponent, { static: false, read: ButtonComponent }]
|
|
1124
|
+
}], visibleChange: [{
|
|
1125
|
+
type: i0.Output
|
|
1126
|
+
}], init: [{
|
|
1127
|
+
type: i0.Output
|
|
1128
|
+
}], appear: [{
|
|
1129
|
+
type: i0.Output
|
|
1130
|
+
}], disappear: [{
|
|
1131
|
+
type: i0.Output
|
|
1132
|
+
}] } });
|
|
1262
1133
|
|
|
1263
1134
|
var ModalCloseDirective = /** @class */ (function () {
|
|
1264
1135
|
function ModalCloseDirective(modal) {
|
|
@@ -1273,202 +1144,85 @@
|
|
|
1273
1144
|
};
|
|
1274
1145
|
return ModalCloseDirective;
|
|
1275
1146
|
}());
|
|
1276
|
-
ModalCloseDirective
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
var SortOrderIconComponent = /** @class */ (function () {
|
|
1290
|
-
function SortOrderIconComponent() {
|
|
1291
|
-
this.orderChange = new i0.EventEmitter();
|
|
1292
|
-
this.selectedSortKeyChange = new i0.EventEmitter();
|
|
1293
|
-
}
|
|
1294
|
-
Object.defineProperty(SortOrderIconComponent.prototype, "selectedSortKey", {
|
|
1295
|
-
get: function () {
|
|
1296
|
-
return this._selectedSortKey;
|
|
1297
|
-
},
|
|
1298
|
-
set: function (value) {
|
|
1299
|
-
this._selectedSortKey = value;
|
|
1300
|
-
this.selectedSortKeyChange.emit(value);
|
|
1301
|
-
},
|
|
1302
|
-
enumerable: false,
|
|
1303
|
-
configurable: true
|
|
1304
|
-
});
|
|
1305
|
-
Object.defineProperty(SortOrderIconComponent.prototype, "order", {
|
|
1306
|
-
get: function () {
|
|
1307
|
-
return this._order;
|
|
1308
|
-
},
|
|
1309
|
-
set: function (value) {
|
|
1310
|
-
this._order = value;
|
|
1311
|
-
this.orderChange.emit(value);
|
|
1312
|
-
},
|
|
1313
|
-
enumerable: false,
|
|
1314
|
-
configurable: true
|
|
1315
|
-
});
|
|
1316
|
-
Object.defineProperty(SortOrderIconComponent.prototype, "icon", {
|
|
1317
|
-
get: function () {
|
|
1318
|
-
if (this.selectedSortKey === this.sortKey)
|
|
1319
|
-
return "sorting_" + this.order;
|
|
1320
|
-
else
|
|
1321
|
-
return 'sorting';
|
|
1322
|
-
},
|
|
1323
|
-
enumerable: false,
|
|
1324
|
-
configurable: true
|
|
1325
|
-
});
|
|
1326
|
-
SortOrderIconComponent.prototype.sort = function (key) {
|
|
1327
|
-
this.selectedSortKey = key;
|
|
1328
|
-
switch (this.order) {
|
|
1329
|
-
case '':
|
|
1330
|
-
this.order = 'asc';
|
|
1331
|
-
this.orderChange.emit('asc');
|
|
1332
|
-
break;
|
|
1333
|
-
case 'asc':
|
|
1334
|
-
this.order = 'desc';
|
|
1335
|
-
this.orderChange.emit('desc');
|
|
1336
|
-
break;
|
|
1337
|
-
case 'desc':
|
|
1338
|
-
this.order = '';
|
|
1339
|
-
this.orderChange.emit('');
|
|
1340
|
-
break;
|
|
1341
|
-
}
|
|
1342
|
-
};
|
|
1343
|
-
return SortOrderIconComponent;
|
|
1344
|
-
}());
|
|
1345
|
-
SortOrderIconComponent.decorators = [
|
|
1346
|
-
{ type: i0.Component, args: [{
|
|
1347
|
-
selector: 'abp-sort-order-icon',
|
|
1348
|
-
template: "<div class=\"float-right {{ iconClass }}\">\n <span class=\"{{ icon }}\"></span>\n</div>\n"
|
|
1349
|
-
},] }
|
|
1350
|
-
];
|
|
1351
|
-
SortOrderIconComponent.propDecorators = {
|
|
1352
|
-
sortKey: [{ type: i0.Input }],
|
|
1353
|
-
selectedSortKey: [{ type: i0.Input }],
|
|
1354
|
-
order: [{ type: i0.Input }],
|
|
1355
|
-
orderChange: [{ type: i0.Output }],
|
|
1356
|
-
selectedSortKeyChange: [{ type: i0.Output }],
|
|
1357
|
-
iconClass: [{ type: i0.Input }]
|
|
1358
|
-
};
|
|
1359
|
-
|
|
1360
|
-
var TableEmptyMessageComponent = /** @class */ (function () {
|
|
1361
|
-
function TableEmptyMessageComponent() {
|
|
1362
|
-
this.colspan = 2;
|
|
1363
|
-
this.localizationResource = 'AbpAccount';
|
|
1364
|
-
this.localizationProp = 'NoDataAvailableInDatatable';
|
|
1365
|
-
}
|
|
1366
|
-
Object.defineProperty(TableEmptyMessageComponent.prototype, "emptyMessage", {
|
|
1367
|
-
get: function () {
|
|
1368
|
-
return this.message || this.localizationResource + "::" + this.localizationProp;
|
|
1369
|
-
},
|
|
1370
|
-
enumerable: false,
|
|
1371
|
-
configurable: true
|
|
1372
|
-
});
|
|
1373
|
-
return TableEmptyMessageComponent;
|
|
1374
|
-
}());
|
|
1375
|
-
TableEmptyMessageComponent.decorators = [
|
|
1376
|
-
{ type: i0.Component, args: [{
|
|
1377
|
-
// tslint:disable-next-line: component-selector
|
|
1378
|
-
selector: '[abp-table-empty-message]',
|
|
1379
|
-
template: "\n <td class=\"text-center\" [attr.colspan]=\"colspan\">\n {{ emptyMessage | abpLocalization }}\n </td>\n "
|
|
1380
|
-
},] }
|
|
1381
|
-
];
|
|
1382
|
-
TableEmptyMessageComponent.propDecorators = {
|
|
1383
|
-
colspan: [{ type: i0.Input }],
|
|
1384
|
-
message: [{ type: i0.Input }],
|
|
1385
|
-
localizationResource: [{ type: i0.Input }],
|
|
1386
|
-
localizationProp: [{ type: i0.Input }]
|
|
1387
|
-
};
|
|
1147
|
+
ModalCloseDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ModalCloseDirective, deps: [{ token: ModalComponent, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1148
|
+
ModalCloseDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: ModalCloseDirective, selector: "[abpClose]", host: { listeners: { "click": "onClick()" } }, ngImport: i0__namespace });
|
|
1149
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ModalCloseDirective, decorators: [{
|
|
1150
|
+
type: i0.Directive,
|
|
1151
|
+
args: [{ selector: '[abpClose]' }]
|
|
1152
|
+
}], ctorParameters: function () {
|
|
1153
|
+
return [{ type: ModalComponent, decorators: [{
|
|
1154
|
+
type: i0.Optional
|
|
1155
|
+
}] }];
|
|
1156
|
+
}, propDecorators: { onClick: [{
|
|
1157
|
+
type: i0.HostListener,
|
|
1158
|
+
args: ['click']
|
|
1159
|
+
}] } });
|
|
1388
1160
|
|
|
1389
|
-
/**
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
*/
|
|
1393
|
-
var TableComponent = /** @class */ (function () {
|
|
1394
|
-
function TableComponent() {
|
|
1395
|
-
var _this = this;
|
|
1396
|
-
this.bodyScrollLeft = 0;
|
|
1397
|
-
this.page = 1;
|
|
1398
|
-
this.trackingProp = 'id';
|
|
1399
|
-
this.emptyMessage = 'AbpAccount::NoDataAvailableInDatatable';
|
|
1400
|
-
this.pageChange = new i0.EventEmitter();
|
|
1401
|
-
this.trackByFn = function (_, value) {
|
|
1402
|
-
return typeof value === 'object' ? value[_this.trackingProp] || value : value;
|
|
1403
|
-
};
|
|
1161
|
+
var ToastComponent = /** @class */ (function () {
|
|
1162
|
+
function ToastComponent() {
|
|
1163
|
+
this.remove = new i0.EventEmitter();
|
|
1404
1164
|
}
|
|
1405
|
-
Object.defineProperty(
|
|
1406
|
-
get: function () {
|
|
1407
|
-
return this._totalRecords || this.value.length;
|
|
1408
|
-
},
|
|
1409
|
-
set: function (newValue) {
|
|
1410
|
-
if (newValue < 0)
|
|
1411
|
-
this._totalRecords = 0;
|
|
1412
|
-
this._totalRecords = newValue;
|
|
1413
|
-
},
|
|
1414
|
-
enumerable: false,
|
|
1415
|
-
configurable: true
|
|
1416
|
-
});
|
|
1417
|
-
Object.defineProperty(TableComponent.prototype, "totalPages", {
|
|
1165
|
+
Object.defineProperty(ToastComponent.prototype, "severityClass", {
|
|
1418
1166
|
get: function () {
|
|
1419
|
-
if (!this.
|
|
1420
|
-
return;
|
|
1421
|
-
|
|
1422
|
-
return Math.ceil(this.totalRecords / this.rows);
|
|
1167
|
+
if (!this.toast || !this.toast.severity)
|
|
1168
|
+
return '';
|
|
1169
|
+
return "abp-toast-" + this.toast.severity;
|
|
1423
1170
|
},
|
|
1424
1171
|
enumerable: false,
|
|
1425
1172
|
configurable: true
|
|
1426
1173
|
});
|
|
1427
|
-
Object.defineProperty(
|
|
1174
|
+
Object.defineProperty(ToastComponent.prototype, "iconClass", {
|
|
1428
1175
|
get: function () {
|
|
1429
|
-
|
|
1430
|
-
|
|
1176
|
+
switch (this.toast.severity) {
|
|
1177
|
+
case 'success':
|
|
1178
|
+
return 'fa-check-circle';
|
|
1179
|
+
case 'info':
|
|
1180
|
+
return 'fa-info-circle';
|
|
1181
|
+
case 'warning':
|
|
1182
|
+
return 'fa-exclamation-triangle';
|
|
1183
|
+
case 'error':
|
|
1184
|
+
return 'fa-times-circle';
|
|
1185
|
+
default:
|
|
1186
|
+
return 'fa-exclamation-circle';
|
|
1431
1187
|
}
|
|
1432
|
-
var start = (this.page - 1) * this.rows;
|
|
1433
|
-
return this.value.slice(start, start + this.rows);
|
|
1434
1188
|
},
|
|
1435
1189
|
enumerable: false,
|
|
1436
1190
|
configurable: true
|
|
1437
1191
|
});
|
|
1438
|
-
|
|
1439
|
-
|
|
1192
|
+
ToastComponent.prototype.ngOnInit = function () {
|
|
1193
|
+
var _this = this;
|
|
1194
|
+
var _b = this.toast.options || {}, sticky = _b.sticky, life = _b.life;
|
|
1195
|
+
if (sticky)
|
|
1196
|
+
return;
|
|
1197
|
+
var timeout = life || 5000;
|
|
1198
|
+
setTimeout(function () {
|
|
1199
|
+
_this.close();
|
|
1200
|
+
}, timeout);
|
|
1201
|
+
};
|
|
1202
|
+
ToastComponent.prototype.close = function () {
|
|
1203
|
+
this.remove.emit(this.toast.options.id);
|
|
1204
|
+
};
|
|
1205
|
+
ToastComponent.prototype.tap = function () {
|
|
1206
|
+
var _a;
|
|
1207
|
+
if ((_a = this.toast.options) === null || _a === void 0 ? void 0 : _a.tapToDismiss)
|
|
1208
|
+
this.close();
|
|
1440
1209
|
};
|
|
1441
|
-
return
|
|
1210
|
+
return ToastComponent;
|
|
1442
1211
|
}());
|
|
1443
|
-
|
|
1444
|
-
|
|
1445
|
-
|
|
1446
|
-
|
|
1447
|
-
|
|
1448
|
-
|
|
1449
|
-
|
|
1450
|
-
|
|
1451
|
-
|
|
1452
|
-
|
|
1453
|
-
|
|
1454
|
-
|
|
1455
|
-
|
|
1456
|
-
|
|
1457
|
-
scrollable: [{ type: i0.Input }],
|
|
1458
|
-
rows: [{ type: i0.Input }],
|
|
1459
|
-
page: [{ type: i0.Input }],
|
|
1460
|
-
trackingProp: [{ type: i0.Input }],
|
|
1461
|
-
emptyMessage: [{ type: i0.Input }],
|
|
1462
|
-
pageChange: [{ type: i0.Output }],
|
|
1463
|
-
wrapperRef: [{ type: i0.ViewChild, args: ['wrapper', { read: i0.ElementRef },] }],
|
|
1464
|
-
totalRecords: [{ type: i0.Input }]
|
|
1465
|
-
};
|
|
1466
|
-
function ltrCalculator(div) {
|
|
1467
|
-
return "0 auto 0 -" + div.scrollLeft + "px";
|
|
1468
|
-
}
|
|
1469
|
-
function rtlCalculator(div) {
|
|
1470
|
-
return "0 " + -(div.scrollWidth - div.clientWidth - div.scrollLeft) + "px 0 auto";
|
|
1471
|
-
}
|
|
1212
|
+
ToastComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ToastComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1213
|
+
ToastComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.6", type: ToastComponent, selector: "abp-toast", inputs: { toast: "toast" }, outputs: { remove: "remove" }, ngImport: i0__namespace, 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__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i1__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "abpLocalization": i2__namespace.LocalizationPipe } });
|
|
1214
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ToastComponent, decorators: [{
|
|
1215
|
+
type: i0.Component,
|
|
1216
|
+
args: [{
|
|
1217
|
+
selector: 'abp-toast',
|
|
1218
|
+
templateUrl: './toast.component.html',
|
|
1219
|
+
styleUrls: ['./toast.component.scss'],
|
|
1220
|
+
}]
|
|
1221
|
+
}], propDecorators: { toast: [{
|
|
1222
|
+
type: i0.Input
|
|
1223
|
+
}], remove: [{
|
|
1224
|
+
type: i0.Output
|
|
1225
|
+
}] } });
|
|
1472
1226
|
|
|
1473
1227
|
var ToastContainerComponent = /** @class */ (function () {
|
|
1474
1228
|
function ToastContainerComponent() {
|
|
@@ -1493,202 +1247,122 @@
|
|
|
1493
1247
|
};
|
|
1494
1248
|
return ToastContainerComponent;
|
|
1495
1249
|
}());
|
|
1496
|
-
ToastContainerComponent
|
|
1497
|
-
|
|
1498
|
-
|
|
1499
|
-
|
|
1500
|
-
|
|
1501
|
-
|
|
1502
|
-
|
|
1503
|
-
|
|
1504
|
-
|
|
1505
|
-
|
|
1506
|
-
|
|
1507
|
-
|
|
1508
|
-
|
|
1509
|
-
|
|
1250
|
+
ToastContainerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ToastContainerComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1251
|
+
ToastContainerComponent.ɵcmp = i0__namespace.ɵɵ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__namespace, 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__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], animations: [toastInOut] });
|
|
1252
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ToastContainerComponent, decorators: [{
|
|
1253
|
+
type: i0.Component,
|
|
1254
|
+
args: [{
|
|
1255
|
+
selector: 'abp-toast-container',
|
|
1256
|
+
templateUrl: './toast-container.component.html',
|
|
1257
|
+
styleUrls: ['./toast-container.component.scss'],
|
|
1258
|
+
animations: [toastInOut],
|
|
1259
|
+
}]
|
|
1260
|
+
}], propDecorators: { top: [{
|
|
1261
|
+
type: i0.Input
|
|
1262
|
+
}], right: [{
|
|
1263
|
+
type: i0.Input
|
|
1264
|
+
}], bottom: [{
|
|
1265
|
+
type: i0.Input
|
|
1266
|
+
}], left: [{
|
|
1267
|
+
type: i0.Input
|
|
1268
|
+
}], toastKey: [{
|
|
1269
|
+
type: i0.Input
|
|
1270
|
+
}] } });
|
|
1271
|
+
|
|
1272
|
+
var styles = "\n.is-invalid .form-control {\n border-color: #dc3545;\n border-style: solid !important;\n padding-right: calc(1.5em + .75rem);\n background-image: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e);\n background-repeat: no-repeat;\n background-position: right calc(.375em + .1875rem) center;\n background-size: calc(.75em + .375rem) calc(.75em + .375rem);\n}\n\n.is-invalid .invalid-feedback,\n.is-invalid + * .invalid-feedback {\n display: block;\n}\n\n.data-tables-filter {\n text-align: right;\n}\n\n[dir=rtl] .data-tables-filter {\n text-align: left;\n}\n\n.pointer {\n cursor: pointer;\n}\n\n.navbar .dropdown-submenu a::after {\n transform: rotate(-90deg);\n position: absolute;\n right: 16px;\n top: 18px;\n}\n\n.navbar .dropdown-menu {\n min-width: 215px;\n}\n\n.datatable-scroll {\n margin-bottom: 5px !important;\n width: unset !important;\n}\n\n.ui-table-scrollable-body::-webkit-scrollbar {\n height: 5px !important;\n width: 5px !important;\n}\n\n.ui-table-scrollable-body::-webkit-scrollbar-track {\n background: #ddd;\n}\n\n.ui-table-scrollable-body::-webkit-scrollbar-thumb {\n background: #8a8686;\n}\n\n.abp-ellipsis-inline {\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.abp-ellipsis {\n overflow: hidden !important;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.ui-widget-overlay {\n z-index: 1000;\n}\n\n.color-white {\n color: #FFF !important;\n}\n\n.custom-checkbox > label {\n cursor: pointer;\n}\n\n/* <animations */\n\n.fade-in-top {\n animation: fadeInTop 0.2s ease-in-out;\n}\n\n.fade-out-top {\n animation: fadeOutTop 0.2s ease-in-out;\n}\n\n.abp-collapsed-height {\n -moz-transition: max-height linear 0.35s;\n -ms-transition: max-height linear 0.35s;\n -o-transition: max-height linear 0.35s;\n -webkit-transition: max-height linear 0.35s;\n overflow:hidden;\n transition:max-height 0.35s linear;\n height:auto;\n max-height: 0;\n}\n\n.abp-mh-25 {\n max-height: 25vh;\n}\n\n.abp-mh-50 {\n transition:max-height 0.65s linear;\n max-height: 50vh;\n}\n\n.abp-mh-75 {\n transition:max-height 0.85s linear;\n max-height: 75vh;\n}\n\n.abp-mh-100 {\n transition:max-height 1s linear;\n max-height: 100vh;\n}\n\n[class^=\"sorting\"] {\n opacity: .3;\n cursor: pointer;\n}\n[class^=\"sorting\"]:before {\n right: 0.5rem;\n content: \"\u2191\";\n}\n[class^=\"sorting\"]:after {\n right: 0.5rem;\n content: \"\u2193\";\n}\n\n.sorting_desc {\n opacity: 1;\n}\n.sorting_desc:before {\n opacity: .3;\n}\n\n.sorting_asc {\n opacity: 1;\n}\n.sorting_asc:after {\n opacity: .3;\n}\n.ngx-datatable.material {\n box-shadow: none;\n}\nngb-typeahead-window, ngb-typeahead-window.dropdown-menu {\n max-height: 25em;\n overflow-y: scroll !important;\n z-index: 1050;\n}\n\n@keyframes fadeInTop {\n from {\n transform: translateY(-5px);\n opacity: 0;\n }\n\n to {\n transform: translateY(0px);\n opacity: 1;\n }\n}\n\n@keyframes fadeOutTop {\n to {\n transform: translateY(-5px);\n opacity: 0;\n }\n}\n\n/* </animations */\n\n";
|
|
1273
|
+
var BOOTSTRAP = 'bootstrap-{{dir}}.min.css';
|
|
1274
|
+
|
|
1275
|
+
var DEFAULT_VALIDATION_BLUEPRINTS = {
|
|
1276
|
+
creditCard: 'AbpValidation::ThisFieldIsNotAValidCreditCardNumber.',
|
|
1277
|
+
email: 'AbpValidation::ThisFieldIsNotAValidEmailAddress.',
|
|
1278
|
+
invalid: 'AbpValidation::ThisFieldIsNotValid.',
|
|
1279
|
+
max: 'AbpValidation::ThisFieldMustBeBetween{0}And{1}[{{ min }},{{ max }}]',
|
|
1280
|
+
maxlength: 'AbpValidation::ThisFieldMustBeAStringOrArrayTypeWithAMaximumLengthOf{0}[{{ requiredLength }}]',
|
|
1281
|
+
min: 'AbpValidation::ThisFieldMustBeBetween{0}And{1}[{{ min }},{{ max }}]',
|
|
1282
|
+
minlength: 'AbpValidation::ThisFieldMustBeAStringOrArrayTypeWithAMinimumLengthOf{0}[{{ requiredLength }}]',
|
|
1283
|
+
ngbDate: 'AbpValidation::ThisFieldIsNotValid.',
|
|
1284
|
+
passwordMismatch: 'AbpIdentity::Volo.Abp.Identity:PasswordConfirmationFailed',
|
|
1285
|
+
range: 'AbpValidation::ThisFieldMustBeBetween{0}And{1}[{{ min }},{{ max }}]',
|
|
1286
|
+
required: 'AbpValidation::ThisFieldIsRequired.',
|
|
1287
|
+
url: 'AbpValidation::ThisFieldIsNotAValidFullyQualifiedHttpHttpsOrFtpUrl',
|
|
1510
1288
|
};
|
|
1511
1289
|
|
|
1512
|
-
var
|
|
1513
|
-
function
|
|
1514
|
-
this.
|
|
1515
|
-
this.
|
|
1516
|
-
this.
|
|
1517
|
-
this.toasts = [];
|
|
1290
|
+
var EllipsisDirective = /** @class */ (function () {
|
|
1291
|
+
function EllipsisDirective(cdRef, elRef) {
|
|
1292
|
+
this.cdRef = cdRef;
|
|
1293
|
+
this.elRef = elRef;
|
|
1294
|
+
this.enabled = true;
|
|
1518
1295
|
}
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
|
|
1538
|
-
|
|
1539
|
-
|
|
1296
|
+
Object.defineProperty(EllipsisDirective.prototype, "inlineClass", {
|
|
1297
|
+
get: function () {
|
|
1298
|
+
return this.enabled && this.width;
|
|
1299
|
+
},
|
|
1300
|
+
enumerable: false,
|
|
1301
|
+
configurable: true
|
|
1302
|
+
});
|
|
1303
|
+
Object.defineProperty(EllipsisDirective.prototype, "class", {
|
|
1304
|
+
get: function () {
|
|
1305
|
+
return this.enabled && !this.width;
|
|
1306
|
+
},
|
|
1307
|
+
enumerable: false,
|
|
1308
|
+
configurable: true
|
|
1309
|
+
});
|
|
1310
|
+
Object.defineProperty(EllipsisDirective.prototype, "maxWidth", {
|
|
1311
|
+
get: function () {
|
|
1312
|
+
return this.enabled && this.width ? this.width || '170px' : undefined;
|
|
1313
|
+
},
|
|
1314
|
+
enumerable: false,
|
|
1315
|
+
configurable: true
|
|
1316
|
+
});
|
|
1317
|
+
EllipsisDirective.prototype.ngAfterViewInit = function () {
|
|
1318
|
+
this.title = this.title || this.elRef.nativeElement.innerText;
|
|
1319
|
+
this.cdRef.detectChanges();
|
|
1540
1320
|
};
|
|
1541
|
-
|
|
1542
|
-
* Creates a warning toast with given parameters.
|
|
1543
|
-
* @param message Content of the toast
|
|
1544
|
-
* @param title Title of the toast
|
|
1545
|
-
* @param options Spesific style or structural options for individual toast
|
|
1546
|
-
*/
|
|
1547
|
-
ToasterService.prototype.warn = function (message, title, options) {
|
|
1548
|
-
return this.show(message, title, 'warning', options);
|
|
1549
|
-
};
|
|
1550
|
-
/**
|
|
1551
|
-
* Creates an error toast with given parameters.
|
|
1552
|
-
* @param message Content of the toast
|
|
1553
|
-
* @param title Title of the toast
|
|
1554
|
-
* @param options Spesific style or structural options for individual toast
|
|
1555
|
-
*/
|
|
1556
|
-
ToasterService.prototype.error = function (message, title, options) {
|
|
1557
|
-
return this.show(message, title, 'error', options);
|
|
1558
|
-
};
|
|
1559
|
-
/**
|
|
1560
|
-
* Creates a toast with given parameters.
|
|
1561
|
-
* @param message Content of the toast
|
|
1562
|
-
* @param title Title of the toast
|
|
1563
|
-
* @param severity Sets color of the toast. "success", "warning" etc.
|
|
1564
|
-
* @param options Spesific style or structural options for individual toast
|
|
1565
|
-
*/
|
|
1566
|
-
ToasterService.prototype.show = function (message, title, severity, options) {
|
|
1567
|
-
if (title === void 0) { title = null; }
|
|
1568
|
-
if (severity === void 0) { severity = 'neutral'; }
|
|
1569
|
-
if (options === void 0) { options = {}; }
|
|
1570
|
-
if (!this.containerComponentRef)
|
|
1571
|
-
this.setContainer();
|
|
1572
|
-
var id = ++this.lastId;
|
|
1573
|
-
this.toasts.push({
|
|
1574
|
-
message: message,
|
|
1575
|
-
title: title,
|
|
1576
|
-
severity: severity,
|
|
1577
|
-
options: Object.assign({ closable: true, id: id }, options),
|
|
1578
|
-
});
|
|
1579
|
-
this.toasts$.next(this.toasts);
|
|
1580
|
-
return id;
|
|
1581
|
-
};
|
|
1582
|
-
/**
|
|
1583
|
-
* Removes the toast with given id.
|
|
1584
|
-
* @param id ID of the toast to be removed.
|
|
1585
|
-
*/
|
|
1586
|
-
ToasterService.prototype.remove = function (id) {
|
|
1587
|
-
this.toasts = this.toasts.filter(function (toast) { return snq__default['default'](function () { return toast.options.id; }) !== id; });
|
|
1588
|
-
this.toasts$.next(this.toasts);
|
|
1589
|
-
};
|
|
1590
|
-
/**
|
|
1591
|
-
* Removes all open toasts at once.
|
|
1592
|
-
*/
|
|
1593
|
-
ToasterService.prototype.clear = function (containerKey) {
|
|
1594
|
-
this.toasts = !containerKey
|
|
1595
|
-
? []
|
|
1596
|
-
: this.toasts.filter(function (toast) { return snq__default['default'](function () { return toast.options.containerKey; }) !== containerKey; });
|
|
1597
|
-
this.toasts$.next(this.toasts);
|
|
1598
|
-
};
|
|
1599
|
-
return ToasterService;
|
|
1321
|
+
return EllipsisDirective;
|
|
1600
1322
|
}());
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
|
|
1323
|
+
EllipsisDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: EllipsisDirective, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.ElementRef }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1324
|
+
EllipsisDirective.ɵdir = i0__namespace.ɵɵ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__namespace });
|
|
1325
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: EllipsisDirective, decorators: [{
|
|
1326
|
+
type: i0.Directive,
|
|
1327
|
+
args: [{
|
|
1328
|
+
selector: '[abpEllipsis]',
|
|
1329
|
+
}]
|
|
1330
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.ElementRef }]; }, propDecorators: { width: [{
|
|
1331
|
+
type: i0.Input,
|
|
1332
|
+
args: ['abpEllipsis']
|
|
1333
|
+
}], title: [{
|
|
1334
|
+
type: i0.HostBinding,
|
|
1335
|
+
args: ['title']
|
|
1336
|
+
}, {
|
|
1337
|
+
type: i0.Input
|
|
1338
|
+
}], enabled: [{
|
|
1339
|
+
type: i0.Input,
|
|
1340
|
+
args: ['abpEllipsisEnabled']
|
|
1341
|
+
}], inlineClass: [{
|
|
1342
|
+
type: i0.HostBinding,
|
|
1343
|
+
args: ['class.abp-ellipsis-inline']
|
|
1344
|
+
}], class: [{
|
|
1345
|
+
type: i0.HostBinding,
|
|
1346
|
+
args: ['class.abp-ellipsis']
|
|
1347
|
+
}], maxWidth: [{
|
|
1348
|
+
type: i0.HostBinding,
|
|
1349
|
+
args: ['style.max-width']
|
|
1350
|
+
}] } });
|
|
1351
|
+
var EllipsisModule = /** @class */ (function () {
|
|
1352
|
+
function EllipsisModule() {
|
|
1614
1353
|
}
|
|
1615
|
-
|
|
1616
|
-
get: function () {
|
|
1617
|
-
if (!this.toast || !this.toast.severity)
|
|
1618
|
-
return '';
|
|
1619
|
-
return "abp-toast-" + this.toast.severity;
|
|
1620
|
-
},
|
|
1621
|
-
enumerable: false,
|
|
1622
|
-
configurable: true
|
|
1623
|
-
});
|
|
1624
|
-
Object.defineProperty(ToastComponent.prototype, "iconClass", {
|
|
1625
|
-
get: function () {
|
|
1626
|
-
switch (this.toast.severity) {
|
|
1627
|
-
case 'success':
|
|
1628
|
-
return 'fa-check-circle';
|
|
1629
|
-
case 'info':
|
|
1630
|
-
return 'fa-info-circle';
|
|
1631
|
-
case 'warning':
|
|
1632
|
-
return 'fa-exclamation-triangle';
|
|
1633
|
-
case 'error':
|
|
1634
|
-
return 'fa-times-circle';
|
|
1635
|
-
default:
|
|
1636
|
-
return 'fa-exclamation-circle';
|
|
1637
|
-
}
|
|
1638
|
-
},
|
|
1639
|
-
enumerable: false,
|
|
1640
|
-
configurable: true
|
|
1641
|
-
});
|
|
1642
|
-
ToastComponent.prototype.ngOnInit = function () {
|
|
1643
|
-
var _this = this;
|
|
1644
|
-
if (snq__default['default'](function () { return _this.toast.options.sticky; }))
|
|
1645
|
-
return;
|
|
1646
|
-
var timeout = snq__default['default'](function () { return _this.toast.options.life; }) || 5000;
|
|
1647
|
-
setTimeout(function () {
|
|
1648
|
-
_this.close();
|
|
1649
|
-
}, timeout);
|
|
1650
|
-
};
|
|
1651
|
-
ToastComponent.prototype.close = function () {
|
|
1652
|
-
this.toasterService.remove(this.toast.options.id);
|
|
1653
|
-
};
|
|
1654
|
-
ToastComponent.prototype.tap = function () {
|
|
1655
|
-
var _a;
|
|
1656
|
-
if ((_a = this.toast.options) === null || _a === void 0 ? void 0 : _a.tapToDismiss)
|
|
1657
|
-
this.close();
|
|
1658
|
-
};
|
|
1659
|
-
return ToastComponent;
|
|
1354
|
+
return EllipsisModule;
|
|
1660
1355
|
}());
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
ToastComponent.propDecorators = {
|
|
1672
|
-
toast: [{ type: i0.Input }]
|
|
1673
|
-
};
|
|
1674
|
-
|
|
1675
|
-
var styles = "\n.is-invalid .form-control {\n border-color: #dc3545;\n border-style: solid !important;\n padding-right: calc(1.5em + .75rem);\n background-image: url(data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='none' stroke='%23dc3545' viewBox='0 0 12 12'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e);\n background-repeat: no-repeat;\n background-position: right calc(.375em + .1875rem) center;\n background-size: calc(.75em + .375rem) calc(.75em + .375rem);\n}\n\n.is-invalid .invalid-feedback,\n.is-invalid + * .invalid-feedback {\n display: block;\n}\n\n.data-tables-filter {\n text-align: right;\n}\n\n[dir=rtl] .data-tables-filter {\n text-align: left;\n}\n\n.pointer {\n cursor: pointer;\n}\n\n.navbar .dropdown-submenu a::after {\n transform: rotate(-90deg);\n position: absolute;\n right: 16px;\n top: 18px;\n}\n\n.navbar .dropdown-menu {\n min-width: 215px;\n}\n\n.datatable-scroll {\n margin-bottom: 5px !important;\n width: unset !important;\n}\n\n.ui-table-scrollable-body::-webkit-scrollbar {\n height: 5px !important;\n width: 5px !important;\n}\n\n.ui-table-scrollable-body::-webkit-scrollbar-track {\n background: #ddd;\n}\n\n.ui-table-scrollable-body::-webkit-scrollbar-thumb {\n background: #8a8686;\n}\n\n.abp-ellipsis-inline {\n display: inline-block;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.abp-ellipsis {\n overflow: hidden !important;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.ui-widget-overlay {\n z-index: 1000;\n}\n\n.color-white {\n color: #FFF !important;\n}\n\n.custom-checkbox > label {\n cursor: pointer;\n}\n\n/* <animations */\n\n.fade-in-top {\n animation: fadeInTop 0.2s ease-in-out;\n}\n\n.fade-out-top {\n animation: fadeOutTop 0.2s ease-in-out;\n}\n\n.abp-collapsed-height {\n -moz-transition: max-height linear 0.35s;\n -ms-transition: max-height linear 0.35s;\n -o-transition: max-height linear 0.35s;\n -webkit-transition: max-height linear 0.35s;\n overflow:hidden;\n transition:max-height 0.35s linear;\n height:auto;\n max-height: 0;\n}\n\n.abp-mh-25 {\n max-height: 25vh;\n}\n\n.abp-mh-50 {\n transition:max-height 0.65s linear;\n max-height: 50vh;\n}\n\n.abp-mh-75 {\n transition:max-height 0.85s linear;\n max-height: 75vh;\n}\n\n.abp-mh-100 {\n transition:max-height 1s linear;\n max-height: 100vh;\n}\n\n[class^=\"sorting\"] {\n opacity: .3;\n cursor: pointer;\n}\n[class^=\"sorting\"]:before {\n right: 0.5rem;\n content: \"\u2191\";\n}\n[class^=\"sorting\"]:after {\n right: 0.5rem;\n content: \"\u2193\";\n}\n\n.sorting_desc {\n opacity: 1;\n}\n.sorting_desc:before {\n opacity: .3;\n}\n\n.sorting_asc {\n opacity: 1;\n}\n.sorting_asc:after {\n opacity: .3;\n}\n.ngx-datatable.material {\n box-shadow: none;\n}\nngb-typeahead-window, ngb-typeahead-window.dropdown-menu {\n max-height: 25em;\n overflow-y: scroll !important;\n z-index: 1050;\n}\n\n@keyframes fadeInTop {\n from {\n transform: translateY(-5px);\n opacity: 0;\n }\n\n to {\n transform: translateY(0px);\n opacity: 1;\n }\n}\n\n@keyframes fadeOutTop {\n to {\n transform: translateY(-5px);\n opacity: 0;\n }\n}\n\n/* </animations */\n\n";
|
|
1676
|
-
var BOOTSTRAP = 'bootstrap-{{dir}}.min.css';
|
|
1677
|
-
|
|
1678
|
-
var DEFAULT_VALIDATION_BLUEPRINTS = {
|
|
1679
|
-
creditCard: 'AbpValidation::ThisFieldIsNotAValidCreditCardNumber.',
|
|
1680
|
-
email: 'AbpValidation::ThisFieldIsNotAValidEmailAddress.',
|
|
1681
|
-
invalid: 'AbpValidation::ThisFieldIsNotValid.',
|
|
1682
|
-
max: 'AbpValidation::ThisFieldMustBeBetween{0}And{1}[{{ min }},{{ max }}]',
|
|
1683
|
-
maxlength: 'AbpValidation::ThisFieldMustBeAStringOrArrayTypeWithAMaximumLengthOf{0}[{{ requiredLength }}]',
|
|
1684
|
-
min: 'AbpValidation::ThisFieldMustBeBetween{0}And{1}[{{ min }},{{ max }}]',
|
|
1685
|
-
minlength: 'AbpValidation::ThisFieldMustBeAStringOrArrayTypeWithAMinimumLengthOf{0}[{{ requiredLength }}]',
|
|
1686
|
-
ngbDate: 'AbpValidation::ThisFieldIsNotValid.',
|
|
1687
|
-
passwordMismatch: 'AbpIdentity::Volo.Abp.Identity:PasswordConfirmationFailed',
|
|
1688
|
-
range: 'AbpValidation::ThisFieldMustBeBetween{0}And{1}[{{ min }},{{ max }}]',
|
|
1689
|
-
required: 'AbpValidation::ThisFieldIsRequired.',
|
|
1690
|
-
url: 'AbpValidation::ThisFieldIsNotAValidFullyQualifiedHttpHttpsOrFtpUrl',
|
|
1691
|
-
};
|
|
1356
|
+
EllipsisModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: EllipsisModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
1357
|
+
EllipsisModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: EllipsisModule, declarations: [EllipsisDirective], exports: [EllipsisDirective] });
|
|
1358
|
+
EllipsisModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: EllipsisModule });
|
|
1359
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: EllipsisModule, decorators: [{
|
|
1360
|
+
type: i0.NgModule,
|
|
1361
|
+
args: [{
|
|
1362
|
+
exports: [EllipsisDirective],
|
|
1363
|
+
declarations: [EllipsisDirective],
|
|
1364
|
+
}]
|
|
1365
|
+
}] });
|
|
1692
1366
|
|
|
1693
1367
|
var LoadingDirective = /** @class */ (function () {
|
|
1694
1368
|
function LoadingDirective(elRef, vcRef, cdRes, injector, renderer) {
|
|
@@ -1759,22 +1433,24 @@
|
|
|
1759
1433
|
};
|
|
1760
1434
|
return LoadingDirective;
|
|
1761
1435
|
}());
|
|
1762
|
-
LoadingDirective
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
|
|
1773
|
-
|
|
1774
|
-
|
|
1775
|
-
|
|
1776
|
-
|
|
1777
|
-
|
|
1436
|
+
LoadingDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LoadingDirective, deps: [{ token: i0__namespace.ElementRef }, { token: i0__namespace.ViewContainerRef }, { token: i0__namespace.ComponentFactoryResolver }, { token: i0__namespace.Injector }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1437
|
+
LoadingDirective.ɵdir = i0__namespace.ɵɵ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__namespace });
|
|
1438
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LoadingDirective, decorators: [{
|
|
1439
|
+
type: i0.Directive,
|
|
1440
|
+
args: [{ selector: '[abpLoading]' }]
|
|
1441
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ElementRef }, { type: i0__namespace.ViewContainerRef }, { type: i0__namespace.ComponentFactoryResolver }, { type: i0__namespace.Injector }, { type: i0__namespace.Renderer2 }]; }, propDecorators: { position: [{
|
|
1442
|
+
type: i0.HostBinding,
|
|
1443
|
+
args: ['style.position']
|
|
1444
|
+
}], loading: [{
|
|
1445
|
+
type: i0.Input,
|
|
1446
|
+
args: ['abpLoading']
|
|
1447
|
+
}], targetElement: [{
|
|
1448
|
+
type: i0.Input,
|
|
1449
|
+
args: ['abpLoadingTargetElement']
|
|
1450
|
+
}], delay: [{
|
|
1451
|
+
type: i0.Input,
|
|
1452
|
+
args: ['abpLoadingDelay']
|
|
1453
|
+
}] } });
|
|
1778
1454
|
|
|
1779
1455
|
var NgxDatatableDefaultDirective = /** @class */ (function () {
|
|
1780
1456
|
function NgxDatatableDefaultDirective(table, document) {
|
|
@@ -1783,7 +1459,7 @@
|
|
|
1783
1459
|
this.subscription = new rxjs.Subscription();
|
|
1784
1460
|
this.resizeDiff = 0;
|
|
1785
1461
|
this.class = 'material bordered';
|
|
1786
|
-
this.table.columnMode =
|
|
1462
|
+
this.table.columnMode = i1$2.ColumnMode.force;
|
|
1787
1463
|
this.table.footerHeight = 50;
|
|
1788
1464
|
this.table.headerHeight = 50;
|
|
1789
1465
|
this.table.rowHeight = 'auto';
|
|
@@ -1831,21 +1507,26 @@
|
|
|
1831
1507
|
};
|
|
1832
1508
|
return NgxDatatableDefaultDirective;
|
|
1833
1509
|
}());
|
|
1834
|
-
NgxDatatableDefaultDirective
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
|
|
1846
|
-
|
|
1847
|
-
|
|
1848
|
-
|
|
1510
|
+
NgxDatatableDefaultDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: NgxDatatableDefaultDirective, deps: [{ token: i1__namespace$2.DatatableComponent }, { token: i1.DOCUMENT }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1511
|
+
NgxDatatableDefaultDirective.ɵdir = i0__namespace.ɵɵ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__namespace });
|
|
1512
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: NgxDatatableDefaultDirective, decorators: [{
|
|
1513
|
+
type: i0.Directive,
|
|
1514
|
+
args: [{
|
|
1515
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
1516
|
+
selector: 'ngx-datatable[default]',
|
|
1517
|
+
exportAs: 'ngxDatatableDefault',
|
|
1518
|
+
}]
|
|
1519
|
+
}], ctorParameters: function () {
|
|
1520
|
+
return [{ type: i1__namespace$2.DatatableComponent }, { type: undefined, decorators: [{
|
|
1521
|
+
type: i0.Inject,
|
|
1522
|
+
args: [i1.DOCUMENT]
|
|
1523
|
+
}] }];
|
|
1524
|
+
}, propDecorators: { class: [{
|
|
1525
|
+
type: i0.Input
|
|
1526
|
+
}], classes: [{
|
|
1527
|
+
type: i0.HostBinding,
|
|
1528
|
+
args: ['class']
|
|
1529
|
+
}] } });
|
|
1849
1530
|
|
|
1850
1531
|
var defaultNgxDatatableMessages = {
|
|
1851
1532
|
emptyMessage: 'AbpUi::NoDataAvailableInDatatable',
|
|
@@ -1929,129 +1610,25 @@
|
|
|
1929
1610
|
};
|
|
1930
1611
|
return NgxDatatableListDirective;
|
|
1931
1612
|
}());
|
|
1932
|
-
NgxDatatableListDirective
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
|
|
1949
|
-
|
|
1950
|
-
|
|
1951
|
-
* @deprecated To be deleted in v5.0
|
|
1952
|
-
*/
|
|
1953
|
-
var TableSortDirective = /** @class */ (function () {
|
|
1954
|
-
function TableSortDirective(abpTable, sortPipe, cdRef) {
|
|
1955
|
-
this.abpTable = abpTable;
|
|
1956
|
-
this.sortPipe = sortPipe;
|
|
1957
|
-
this.cdRef = cdRef;
|
|
1958
|
-
this.value = [];
|
|
1959
|
-
}
|
|
1960
|
-
Object.defineProperty(TableSortDirective.prototype, "table", {
|
|
1961
|
-
get: function () {
|
|
1962
|
-
var _this = this;
|
|
1963
|
-
return (this.abpTable || snq__default['default'](function () { return _this.cdRef['_view'].component; }) || snq__default['default'](function () { return _this.cdRef['context']; }) // 'context' for ivy
|
|
1964
|
-
);
|
|
1965
|
-
},
|
|
1966
|
-
enumerable: false,
|
|
1967
|
-
configurable: true
|
|
1968
|
-
});
|
|
1969
|
-
TableSortDirective.prototype.ngOnChanges = function (_a) {
|
|
1970
|
-
var value = _a.value, abpTableSort = _a.abpTableSort;
|
|
1971
|
-
if (this.table && (value || abpTableSort)) {
|
|
1972
|
-
this.abpTableSort = this.abpTableSort || {};
|
|
1973
|
-
this.table.value = this.sortPipe.transform(clone__default['default'](this.value), this.abpTableSort.order, this.abpTableSort.key);
|
|
1974
|
-
}
|
|
1975
|
-
};
|
|
1976
|
-
return TableSortDirective;
|
|
1977
|
-
}());
|
|
1978
|
-
TableSortDirective.decorators = [
|
|
1979
|
-
{ type: i0.Directive, args: [{
|
|
1980
|
-
selector: '[abpTableSort]',
|
|
1981
|
-
providers: [i1.SortPipe],
|
|
1982
|
-
},] }
|
|
1983
|
-
];
|
|
1984
|
-
TableSortDirective.ctorParameters = function () { return [
|
|
1985
|
-
{ type: TableComponent, decorators: [{ type: i0.Host }, { type: i0.Optional }, { type: i0.Self }] },
|
|
1986
|
-
{ type: i1.SortPipe },
|
|
1987
|
-
{ type: i0.ChangeDetectorRef }
|
|
1988
|
-
]; };
|
|
1989
|
-
TableSortDirective.propDecorators = {
|
|
1990
|
-
abpTableSort: [{ type: i0.Input }],
|
|
1991
|
-
value: [{ type: i0.Input }]
|
|
1992
|
-
};
|
|
1993
|
-
|
|
1994
|
-
var EllipsisDirective = /** @class */ (function () {
|
|
1995
|
-
function EllipsisDirective(cdRef, elRef) {
|
|
1996
|
-
this.cdRef = cdRef;
|
|
1997
|
-
this.elRef = elRef;
|
|
1998
|
-
this.enabled = true;
|
|
1999
|
-
}
|
|
2000
|
-
Object.defineProperty(EllipsisDirective.prototype, "inlineClass", {
|
|
2001
|
-
get: function () {
|
|
2002
|
-
return this.enabled && this.width;
|
|
2003
|
-
},
|
|
2004
|
-
enumerable: false,
|
|
2005
|
-
configurable: true
|
|
2006
|
-
});
|
|
2007
|
-
Object.defineProperty(EllipsisDirective.prototype, "class", {
|
|
2008
|
-
get: function () {
|
|
2009
|
-
return this.enabled && !this.width;
|
|
2010
|
-
},
|
|
2011
|
-
enumerable: false,
|
|
2012
|
-
configurable: true
|
|
2013
|
-
});
|
|
2014
|
-
Object.defineProperty(EllipsisDirective.prototype, "maxWidth", {
|
|
2015
|
-
get: function () {
|
|
2016
|
-
return this.enabled && this.width ? this.width || '170px' : undefined;
|
|
2017
|
-
},
|
|
2018
|
-
enumerable: false,
|
|
2019
|
-
configurable: true
|
|
2020
|
-
});
|
|
2021
|
-
EllipsisDirective.prototype.ngAfterViewInit = function () {
|
|
2022
|
-
this.title = this.title || this.elRef.nativeElement.innerText;
|
|
2023
|
-
this.cdRef.detectChanges();
|
|
2024
|
-
};
|
|
2025
|
-
return EllipsisDirective;
|
|
2026
|
-
}());
|
|
2027
|
-
EllipsisDirective.decorators = [
|
|
2028
|
-
{ type: i0.Directive, args: [{
|
|
2029
|
-
selector: '[abpEllipsis]',
|
|
2030
|
-
},] }
|
|
2031
|
-
];
|
|
2032
|
-
EllipsisDirective.ctorParameters = function () { return [
|
|
2033
|
-
{ type: i0.ChangeDetectorRef },
|
|
2034
|
-
{ type: i0.ElementRef }
|
|
2035
|
-
]; };
|
|
2036
|
-
EllipsisDirective.propDecorators = {
|
|
2037
|
-
width: [{ type: i0.Input, args: ['abpEllipsis',] }],
|
|
2038
|
-
title: [{ type: i0.HostBinding, args: ['title',] }, { type: i0.Input }],
|
|
2039
|
-
enabled: [{ type: i0.Input, args: ['abpEllipsisEnabled',] }],
|
|
2040
|
-
inlineClass: [{ type: i0.HostBinding, args: ['class.abp-ellipsis-inline',] }],
|
|
2041
|
-
class: [{ type: i0.HostBinding, args: ['class.abp-ellipsis',] }],
|
|
2042
|
-
maxWidth: [{ type: i0.HostBinding, args: ['style.max-width',] }]
|
|
2043
|
-
};
|
|
2044
|
-
var EllipsisModule = /** @class */ (function () {
|
|
2045
|
-
function EllipsisModule() {
|
|
2046
|
-
}
|
|
2047
|
-
return EllipsisModule;
|
|
2048
|
-
}());
|
|
2049
|
-
EllipsisModule.decorators = [
|
|
2050
|
-
{ type: i0.NgModule, args: [{
|
|
2051
|
-
exports: [EllipsisDirective],
|
|
2052
|
-
declarations: [EllipsisDirective],
|
|
2053
|
-
},] }
|
|
2054
|
-
];
|
|
1613
|
+
NgxDatatableListDirective.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: NgxDatatableListDirective, deps: [{ token: i1__namespace$2.DatatableComponent }, { token: i0__namespace.ChangeDetectorRef }, { token: i2__namespace.LocalizationService }, { token: NGX_DATATABLE_MESSAGES, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Directive });
|
|
1614
|
+
NgxDatatableListDirective.ɵdir = i0__namespace.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "12.2.6", type: NgxDatatableListDirective, selector: "ngx-datatable[list]", inputs: { list: "list" }, exportAs: ["ngxDatatableList"], usesOnChanges: true, ngImport: i0__namespace });
|
|
1615
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: NgxDatatableListDirective, decorators: [{
|
|
1616
|
+
type: i0.Directive,
|
|
1617
|
+
args: [{
|
|
1618
|
+
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
1619
|
+
selector: 'ngx-datatable[list]',
|
|
1620
|
+
exportAs: 'ngxDatatableList',
|
|
1621
|
+
}]
|
|
1622
|
+
}], ctorParameters: function () {
|
|
1623
|
+
return [{ type: i1__namespace$2.DatatableComponent }, { type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.LocalizationService }, { type: undefined, decorators: [{
|
|
1624
|
+
type: i0.Optional
|
|
1625
|
+
}, {
|
|
1626
|
+
type: i0.Inject,
|
|
1627
|
+
args: [NGX_DATATABLE_MESSAGES]
|
|
1628
|
+
}] }];
|
|
1629
|
+
}, propDecorators: { list: [{
|
|
1630
|
+
type: i0.Input
|
|
1631
|
+
}] } });
|
|
2055
1632
|
|
|
2056
1633
|
function httpErrorConfigFactory(config) {
|
|
2057
1634
|
if (config === void 0) { config = {}; }
|
|
@@ -2108,15 +1685,9 @@
|
|
|
2108
1685
|
},
|
|
2109
1686
|
};
|
|
2110
1687
|
var ErrorHandler = /** @class */ (function () {
|
|
2111
|
-
function ErrorHandler(
|
|
1688
|
+
function ErrorHandler(injector) {
|
|
2112
1689
|
var _this = this;
|
|
2113
|
-
this.actions = actions;
|
|
2114
|
-
this.routerEvents = routerEvents;
|
|
2115
|
-
this.confirmationService = confirmationService;
|
|
2116
|
-
this.cfRes = cfRes;
|
|
2117
|
-
this.rendererFactory = rendererFactory;
|
|
2118
1690
|
this.injector = injector;
|
|
2119
|
-
this.httpErrorConfig = httpErrorConfig;
|
|
2120
1691
|
this.httpErrorHandler = this.injector.get(HTTP_ERROR_HANDLER, function (_, err) { return rxjs.throwError(err); });
|
|
2121
1692
|
this.executeErrorHandler = function (error) {
|
|
2122
1693
|
var returnValue = _this.httpErrorHandler(_this.injector, error);
|
|
@@ -2125,16 +1696,23 @@
|
|
|
2125
1696
|
return rxjs.of(null);
|
|
2126
1697
|
}));
|
|
2127
1698
|
};
|
|
2128
|
-
this.filterRestErrors = function (
|
|
2129
|
-
var status =
|
|
1699
|
+
this.filterRestErrors = function (_f) {
|
|
1700
|
+
var status = _f.status;
|
|
2130
1701
|
if (typeof status !== 'number')
|
|
2131
1702
|
return false;
|
|
2132
1703
|
return _this.httpErrorConfig.skipHandledErrorCodes.findIndex(function (code) { return code === status; }) < 0;
|
|
2133
1704
|
};
|
|
2134
1705
|
this.filterRouteErrors = function (navigationError) {
|
|
2135
|
-
|
|
1706
|
+
var _a, _b;
|
|
1707
|
+
return (((_b = (_a = navigationError.error) === null || _a === void 0 ? void 0 : _a.message) === null || _b === void 0 ? void 0 : _b.indexOf('Cannot match')) > -1 &&
|
|
2136
1708
|
_this.httpErrorConfig.skipHandledErrorCodes.findIndex(function (code) { return code === 404; }) < 0);
|
|
2137
1709
|
};
|
|
1710
|
+
this.httpErrorReporter = injector.get(i2.HttpErrorReporterService);
|
|
1711
|
+
this.routerEvents = injector.get(i2.RouterEvents);
|
|
1712
|
+
this.confirmationService = injector.get(ConfirmationService);
|
|
1713
|
+
this.cfRes = injector.get(i0.ComponentFactoryResolver);
|
|
1714
|
+
this.rendererFactory = injector.get(i0.RendererFactory2);
|
|
1715
|
+
this.httpErrorConfig = injector.get('HTTP_ERROR_CONFIG');
|
|
2138
1716
|
this.listenToRestError();
|
|
2139
1717
|
this.listenToRouterError();
|
|
2140
1718
|
this.listenToRouterDataResolved();
|
|
@@ -2149,7 +1727,7 @@
|
|
|
2149
1727
|
ErrorHandler.prototype.listenToRouterDataResolved = function () {
|
|
2150
1728
|
var _this = this;
|
|
2151
1729
|
this.routerEvents
|
|
2152
|
-
.getEvents(
|
|
1730
|
+
.getEvents(i1$1.ResolveEnd)
|
|
2153
1731
|
.pipe(operators.filter(function () { return !!_this.componentRef; }))
|
|
2154
1732
|
.subscribe(function () {
|
|
2155
1733
|
_this.componentRef.destroy();
|
|
@@ -2157,16 +1735,17 @@
|
|
|
2157
1735
|
});
|
|
2158
1736
|
};
|
|
2159
1737
|
ErrorHandler.prototype.listenToRestError = function () {
|
|
2160
|
-
this.
|
|
2161
|
-
.pipe(
|
|
1738
|
+
this.httpErrorReporter.reporter$
|
|
1739
|
+
.pipe(operators.filter(this.filterRestErrors), operators.switchMap(this.executeErrorHandler))
|
|
2162
1740
|
.subscribe();
|
|
2163
1741
|
};
|
|
2164
1742
|
ErrorHandler.prototype.handleError = function (err) {
|
|
2165
1743
|
var _this = this;
|
|
2166
|
-
var
|
|
1744
|
+
var _a;
|
|
1745
|
+
var body = ((_a = err === null || err === void 0 ? void 0 : err.error) === null || _a === void 0 ? void 0 : _a.error) || {
|
|
2167
1746
|
key: DEFAULT_ERROR_LOCALIZATIONS.defaultError.title,
|
|
2168
1747
|
defaultValue: DEFAULT_ERROR_MESSAGES.defaultError.title,
|
|
2169
|
-
}
|
|
1748
|
+
};
|
|
2170
1749
|
if (err instanceof http.HttpErrorResponse && err.headers.get('_AbpErrorFormat')) {
|
|
2171
1750
|
var confirmation$ = this.showError(null, null, body);
|
|
2172
1751
|
if (err.status === 401) {
|
|
@@ -2293,7 +1872,7 @@
|
|
|
2293
1872
|
});
|
|
2294
1873
|
};
|
|
2295
1874
|
ErrorHandler.prototype.navigateToLogin = function () {
|
|
2296
|
-
this.injector.get(
|
|
1875
|
+
this.injector.get(i2.AuthService).navigateToLogin();
|
|
2297
1876
|
};
|
|
2298
1877
|
ErrorHandler.prototype.createErrorComponent = function (instance) {
|
|
2299
1878
|
var _this = this;
|
|
@@ -2304,7 +1883,7 @@
|
|
|
2304
1883
|
.create(this.injector);
|
|
2305
1884
|
for (var key in instance) {
|
|
2306
1885
|
/* istanbul ignore else */
|
|
2307
|
-
if (this.componentRef.instance
|
|
1886
|
+
if (Object.prototype.hasOwnProperty.call(this.componentRef.instance, key)) {
|
|
2308
1887
|
this.componentRef.instance[key] = instance[key];
|
|
2309
1888
|
}
|
|
2310
1889
|
}
|
|
@@ -2326,25 +1905,18 @@
|
|
|
2326
1905
|
});
|
|
2327
1906
|
};
|
|
2328
1907
|
ErrorHandler.prototype.canCreateCustomError = function (status) {
|
|
2329
|
-
var
|
|
2330
|
-
return
|
|
2331
|
-
|
|
1908
|
+
var _a, _b, _c, _d, _e;
|
|
1909
|
+
return (((_b = (_a = this.httpErrorConfig) === null || _a === void 0 ? void 0 : _a.errorScreen) === null || _b === void 0 ? void 0 : _b.component) &&
|
|
1910
|
+
((_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);
|
|
2332
1911
|
};
|
|
2333
1912
|
return ErrorHandler;
|
|
2334
1913
|
}());
|
|
2335
|
-
ErrorHandler.ɵ
|
|
2336
|
-
ErrorHandler
|
|
2337
|
-
|
|
2338
|
-
|
|
2339
|
-
|
|
2340
|
-
|
|
2341
|
-
{ type: i1.RouterEvents },
|
|
2342
|
-
{ type: ConfirmationService },
|
|
2343
|
-
{ type: i0.ComponentFactoryResolver },
|
|
2344
|
-
{ type: i0.RendererFactory2 },
|
|
2345
|
-
{ type: i0.Injector },
|
|
2346
|
-
{ type: undefined, decorators: [{ type: i0.Inject, args: ['HTTP_ERROR_CONFIG',] }] }
|
|
2347
|
-
]; };
|
|
1914
|
+
ErrorHandler.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ErrorHandler, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1915
|
+
ErrorHandler.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ErrorHandler, providedIn: 'root' });
|
|
1916
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ErrorHandler, decorators: [{
|
|
1917
|
+
type: i0.Injectable,
|
|
1918
|
+
args: [{ providedIn: 'root' }]
|
|
1919
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; } });
|
|
2348
1920
|
|
|
2349
1921
|
var LAZY_STYLES = new i0.InjectionToken('LAZY_STYLES');
|
|
2350
1922
|
|
|
@@ -2385,17 +1957,17 @@
|
|
|
2385
1957
|
};
|
|
2386
1958
|
LazyStyleHandler.prototype.listenToLanguageChanges = function (injector) {
|
|
2387
1959
|
var _this = this;
|
|
2388
|
-
var l10n = injector.get(
|
|
1960
|
+
var l10n = injector.get(i2.LocalizationService);
|
|
2389
1961
|
// will always listen, no need to unsubscribe
|
|
2390
1962
|
l10n.languageChange$.pipe(operators.startWith(l10n.currentLang)).subscribe(function (locale) {
|
|
2391
|
-
_this.dir =
|
|
1963
|
+
_this.dir = i2.getLocaleDirection(locale);
|
|
2392
1964
|
});
|
|
2393
1965
|
};
|
|
2394
1966
|
LazyStyleHandler.prototype.setBodyDir = function (dir) {
|
|
2395
1967
|
document.body.dir = dir;
|
|
2396
1968
|
};
|
|
2397
1969
|
LazyStyleHandler.prototype.setLazyLoad = function (injector) {
|
|
2398
|
-
this.lazyLoad = injector.get(
|
|
1970
|
+
this.lazyLoad = injector.get(i2.LazyLoadService);
|
|
2399
1971
|
var _a = this.getLoadedBootstrap(), href = _a.href, link = _a.link;
|
|
2400
1972
|
this.lazyLoad.loaded.set(href, link);
|
|
2401
1973
|
};
|
|
@@ -2409,7 +1981,7 @@
|
|
|
2409
1981
|
var newHref = createLazyStyleHref(style, dir);
|
|
2410
1982
|
var link = _this.loaded.get(newHref);
|
|
2411
1983
|
var href = _this.getHrefFromLink(link) || newHref;
|
|
2412
|
-
var strategy =
|
|
1984
|
+
var strategy = i2.LOADING_STRATEGY.PrependAnonymousStyleToHead(href);
|
|
2413
1985
|
_this.lazyLoad.load(strategy).subscribe(function () {
|
|
2414
1986
|
var oldLink = _this.lazyLoad.loaded.get(oldHref);
|
|
2415
1987
|
_this.loaded.delete(newHref);
|
|
@@ -2423,15 +1995,14 @@
|
|
|
2423
1995
|
};
|
|
2424
1996
|
return LazyStyleHandler;
|
|
2425
1997
|
}());
|
|
2426
|
-
LazyStyleHandler.ɵ
|
|
2427
|
-
LazyStyleHandler
|
|
2428
|
-
|
|
2429
|
-
|
|
2430
|
-
|
|
2431
|
-
|
|
2432
|
-
|
|
2433
|
-
|
|
2434
|
-
]; };
|
|
1998
|
+
LazyStyleHandler.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LazyStyleHandler, deps: [{ token: i0__namespace.Injector }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
1999
|
+
LazyStyleHandler.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LazyStyleHandler, providedIn: 'root' });
|
|
2000
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: LazyStyleHandler, decorators: [{
|
|
2001
|
+
type: i0.Injectable,
|
|
2002
|
+
args: [{
|
|
2003
|
+
providedIn: 'root',
|
|
2004
|
+
}]
|
|
2005
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.Injector }]; } });
|
|
2435
2006
|
function createLazyStyleHref(style, dir) {
|
|
2436
2007
|
return style.replace(/{{\s*dir\s*}}/g, dir);
|
|
2437
2008
|
}
|
|
@@ -2451,7 +2022,7 @@
|
|
|
2451
2022
|
{
|
|
2452
2023
|
provide: i0.APP_INITIALIZER,
|
|
2453
2024
|
useFactory: configureNgBootstrap,
|
|
2454
|
-
deps: [
|
|
2025
|
+
deps: [i3.NgbInputDatepickerConfig, i3.NgbTypeaheadConfig],
|
|
2455
2026
|
multi: true,
|
|
2456
2027
|
},
|
|
2457
2028
|
];
|
|
@@ -2463,7 +2034,7 @@
|
|
|
2463
2034
|
}
|
|
2464
2035
|
|
|
2465
2036
|
var THEME_SHARED_ROUTE_PROVIDERS = [
|
|
2466
|
-
{ provide: i0.APP_INITIALIZER, useFactory: configureRoutes, deps: [
|
|
2037
|
+
{ provide: i0.APP_INITIALIZER, useFactory: configureRoutes, deps: [i2.RoutesService], multi: true },
|
|
2467
2038
|
];
|
|
2468
2039
|
function configureRoutes(routesService) {
|
|
2469
2040
|
return function () {
|
|
@@ -2478,66 +2049,6 @@
|
|
|
2478
2049
|
};
|
|
2479
2050
|
}
|
|
2480
2051
|
|
|
2481
|
-
/**
|
|
2482
|
-
* @deprecated To be removed in v5.0
|
|
2483
|
-
*/
|
|
2484
|
-
var ModalContainerComponent = /** @class */ (function () {
|
|
2485
|
-
function ModalContainerComponent() {
|
|
2486
|
-
}
|
|
2487
|
-
return ModalContainerComponent;
|
|
2488
|
-
}());
|
|
2489
|
-
ModalContainerComponent.decorators = [
|
|
2490
|
-
{ type: i0.Component, args: [{
|
|
2491
|
-
selector: 'abp-modal-container',
|
|
2492
|
-
template: '<ng-container #container></ng-container>'
|
|
2493
|
-
},] }
|
|
2494
|
-
];
|
|
2495
|
-
ModalContainerComponent.propDecorators = {
|
|
2496
|
-
container: [{ type: i0.ViewChild, args: ['container', { static: true, read: i0.ViewContainerRef },] }]
|
|
2497
|
-
};
|
|
2498
|
-
|
|
2499
|
-
/**
|
|
2500
|
-
* @deprecated Use ng-bootstrap modal. To be deleted in v5.0.
|
|
2501
|
-
*/
|
|
2502
|
-
var ModalService = /** @class */ (function () {
|
|
2503
|
-
function ModalService(contentProjectionService) {
|
|
2504
|
-
this.contentProjectionService = contentProjectionService;
|
|
2505
|
-
this.setContainer();
|
|
2506
|
-
}
|
|
2507
|
-
ModalService.prototype.setContainer = function () {
|
|
2508
|
-
this.containerComponentRef = this.contentProjectionService.projectContent(i1.PROJECTION_STRATEGY.AppendComponentToBody(ModalContainerComponent));
|
|
2509
|
-
this.containerComponentRef.changeDetectorRef.detectChanges();
|
|
2510
|
-
};
|
|
2511
|
-
ModalService.prototype.clearModal = function () {
|
|
2512
|
-
this.getContainer().clear();
|
|
2513
|
-
this.detectChanges();
|
|
2514
|
-
};
|
|
2515
|
-
ModalService.prototype.detectChanges = function () {
|
|
2516
|
-
this.containerComponentRef.changeDetectorRef.detectChanges();
|
|
2517
|
-
};
|
|
2518
|
-
ModalService.prototype.getContainer = function () {
|
|
2519
|
-
return this.containerComponentRef.instance.container;
|
|
2520
|
-
};
|
|
2521
|
-
ModalService.prototype.renderTemplate = function (template, context) {
|
|
2522
|
-
var containerRef = this.getContainer();
|
|
2523
|
-
var strategy = i1.PROJECTION_STRATEGY.ProjectTemplateToContainer(template, containerRef, context);
|
|
2524
|
-
this.contentProjectionService.projectContent(strategy);
|
|
2525
|
-
};
|
|
2526
|
-
ModalService.prototype.ngOnDestroy = function () {
|
|
2527
|
-
this.containerComponentRef.destroy();
|
|
2528
|
-
};
|
|
2529
|
-
return ModalService;
|
|
2530
|
-
}());
|
|
2531
|
-
ModalService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function ModalService_Factory() { return new ModalService(i0__namespace.ɵɵinject(i1__namespace.ContentProjectionService)); }, token: ModalService, providedIn: "root" });
|
|
2532
|
-
ModalService.decorators = [
|
|
2533
|
-
{ type: i0.Injectable, args: [{
|
|
2534
|
-
providedIn: 'root',
|
|
2535
|
-
},] }
|
|
2536
|
-
];
|
|
2537
|
-
ModalService.ctorParameters = function () { return [
|
|
2538
|
-
{ type: i1.ContentProjectionService }
|
|
2539
|
-
]; };
|
|
2540
|
-
|
|
2541
2052
|
var NavItemsService = /** @class */ (function () {
|
|
2542
2053
|
function NavItemsService() {
|
|
2543
2054
|
this._items$ = new rxjs.BehaviorSubject([]);
|
|
@@ -2557,7 +2068,7 @@
|
|
|
2557
2068
|
configurable: true
|
|
2558
2069
|
});
|
|
2559
2070
|
NavItemsService.prototype.addItems = function (newItems) {
|
|
2560
|
-
var items =
|
|
2071
|
+
var items = __spreadArray([], __read(this.items));
|
|
2561
2072
|
newItems.forEach(function (item) { return items.push(new NavItem(item)); });
|
|
2562
2073
|
items.sort(sortItems);
|
|
2563
2074
|
this._items$.next(items);
|
|
@@ -2566,24 +2077,26 @@
|
|
|
2566
2077
|
var index = this.items.findIndex(function (item) { return item.id === id; });
|
|
2567
2078
|
if (index < 0)
|
|
2568
2079
|
return;
|
|
2569
|
-
var items =
|
|
2080
|
+
var items = __spreadArray(__spreadArray([], __read(this.items.slice(0, index))), __read(this.items.slice(index + 1)));
|
|
2570
2081
|
this._items$.next(items);
|
|
2571
2082
|
};
|
|
2572
2083
|
NavItemsService.prototype.patchItem = function (id, item) {
|
|
2573
2084
|
var index = this.items.findIndex(function (i) { return i.id === id; });
|
|
2574
2085
|
if (index < 0)
|
|
2575
2086
|
return;
|
|
2576
|
-
var items =
|
|
2087
|
+
var items = __spreadArray([], __read(this.items));
|
|
2577
2088
|
items[index] = new NavItem(Object.assign(Object.assign({}, items[index]), item));
|
|
2578
2089
|
items.sort(sortItems);
|
|
2579
2090
|
this._items$.next(items);
|
|
2580
2091
|
};
|
|
2581
2092
|
return NavItemsService;
|
|
2582
2093
|
}());
|
|
2583
|
-
NavItemsService.ɵ
|
|
2584
|
-
NavItemsService
|
|
2585
|
-
|
|
2586
|
-
|
|
2094
|
+
NavItemsService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: NavItemsService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2095
|
+
NavItemsService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: NavItemsService, providedIn: 'root' });
|
|
2096
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: NavItemsService, decorators: [{
|
|
2097
|
+
type: i0.Injectable,
|
|
2098
|
+
args: [{ providedIn: 'root' }]
|
|
2099
|
+
}] });
|
|
2587
2100
|
function sortItems(a, b) {
|
|
2588
2101
|
if (!a.order)
|
|
2589
2102
|
return 1;
|
|
@@ -2594,33 +2107,135 @@
|
|
|
2594
2107
|
|
|
2595
2108
|
var PageAlertService = /** @class */ (function () {
|
|
2596
2109
|
function PageAlertService() {
|
|
2597
|
-
this.alerts = new
|
|
2110
|
+
this.alerts = new i2.InternalStore([]);
|
|
2598
2111
|
this.alerts$ = this.alerts.sliceState(function (state) { return state; });
|
|
2599
2112
|
}
|
|
2600
2113
|
PageAlertService.prototype.show = function (alert) {
|
|
2601
2114
|
var _a;
|
|
2602
2115
|
var newAlert = Object.assign(Object.assign({}, alert), { dismissible: (_a = alert.dismissible) !== null && _a !== void 0 ? _a : true });
|
|
2603
|
-
this.alerts.set(
|
|
2116
|
+
this.alerts.set(__spreadArray([newAlert], __read(this.alerts.state)));
|
|
2604
2117
|
};
|
|
2605
2118
|
PageAlertService.prototype.remove = function (index) {
|
|
2606
|
-
var alerts =
|
|
2119
|
+
var alerts = __spreadArray([], __read(this.alerts.state));
|
|
2607
2120
|
alerts.splice(index, 1);
|
|
2608
2121
|
this.alerts.set(alerts);
|
|
2609
2122
|
};
|
|
2610
2123
|
return PageAlertService;
|
|
2611
2124
|
}());
|
|
2612
|
-
PageAlertService.ɵ
|
|
2613
|
-
PageAlertService
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2125
|
+
PageAlertService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PageAlertService, deps: [], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2126
|
+
PageAlertService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PageAlertService, providedIn: 'root' });
|
|
2127
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: PageAlertService, decorators: [{
|
|
2128
|
+
type: i0.Injectable,
|
|
2129
|
+
args: [{ providedIn: 'root' }]
|
|
2130
|
+
}], ctorParameters: function () { return []; } });
|
|
2131
|
+
|
|
2132
|
+
var ToasterService = /** @class */ (function () {
|
|
2133
|
+
function ToasterService(contentProjectionService) {
|
|
2134
|
+
var _this = this;
|
|
2135
|
+
this.contentProjectionService = contentProjectionService;
|
|
2136
|
+
this.toasts$ = new rxjs.ReplaySubject(1);
|
|
2137
|
+
this.lastId = -1;
|
|
2138
|
+
this.toasts = [];
|
|
2139
|
+
/**
|
|
2140
|
+
* Removes the toast with given id.
|
|
2141
|
+
* @param id ID of the toast to be removed.
|
|
2142
|
+
*/
|
|
2143
|
+
this.remove = function (id) {
|
|
2144
|
+
_this.toasts = _this.toasts.filter(function (toast) { var _a; return ((_a = toast.options) === null || _a === void 0 ? void 0 : _a.id) !== id; });
|
|
2145
|
+
_this.toasts$.next(_this.toasts);
|
|
2146
|
+
};
|
|
2147
|
+
}
|
|
2148
|
+
ToasterService.prototype.setContainer = function () {
|
|
2149
|
+
this.containerComponentRef = this.contentProjectionService.projectContent(i2.PROJECTION_STRATEGY.AppendComponentToBody(ToastContainerComponent, {
|
|
2150
|
+
toasts$: this.toasts$,
|
|
2151
|
+
remove: this.remove,
|
|
2152
|
+
}));
|
|
2153
|
+
this.containerComponentRef.changeDetectorRef.detectChanges();
|
|
2154
|
+
};
|
|
2155
|
+
/**
|
|
2156
|
+
* Creates an info toast with given parameters.
|
|
2157
|
+
* @param message Content of the toast
|
|
2158
|
+
* @param title Title of the toast
|
|
2159
|
+
* @param options Spesific style or structural options for individual toast
|
|
2160
|
+
*/
|
|
2161
|
+
ToasterService.prototype.info = function (message, title, options) {
|
|
2162
|
+
return this.show(message, title, 'info', options);
|
|
2163
|
+
};
|
|
2164
|
+
/**
|
|
2165
|
+
* Creates a success toast with given parameters.
|
|
2166
|
+
* @param message Content of the toast
|
|
2167
|
+
* @param title Title of the toast
|
|
2168
|
+
* @param options Spesific style or structural options for individual toast
|
|
2169
|
+
*/
|
|
2170
|
+
ToasterService.prototype.success = function (message, title, options) {
|
|
2171
|
+
return this.show(message, title, 'success', options);
|
|
2172
|
+
};
|
|
2173
|
+
/**
|
|
2174
|
+
* Creates a warning toast with given parameters.
|
|
2175
|
+
* @param message Content of the toast
|
|
2176
|
+
* @param title Title of the toast
|
|
2177
|
+
* @param options Spesific style or structural options for individual toast
|
|
2178
|
+
*/
|
|
2179
|
+
ToasterService.prototype.warn = function (message, title, options) {
|
|
2180
|
+
return this.show(message, title, 'warning', options);
|
|
2181
|
+
};
|
|
2182
|
+
/**
|
|
2183
|
+
* Creates an error toast with given parameters.
|
|
2184
|
+
* @param message Content of the toast
|
|
2185
|
+
* @param title Title of the toast
|
|
2186
|
+
* @param options Spesific style or structural options for individual toast
|
|
2187
|
+
*/
|
|
2188
|
+
ToasterService.prototype.error = function (message, title, options) {
|
|
2189
|
+
return this.show(message, title, 'error', options);
|
|
2190
|
+
};
|
|
2191
|
+
/**
|
|
2192
|
+
* Creates a toast with given parameters.
|
|
2193
|
+
* @param message Content of the toast
|
|
2194
|
+
* @param title Title of the toast
|
|
2195
|
+
* @param severity Sets color of the toast. "success", "warning" etc.
|
|
2196
|
+
* @param options Spesific style or structural options for individual toast
|
|
2197
|
+
*/
|
|
2198
|
+
ToasterService.prototype.show = function (message, title, severity, options) {
|
|
2199
|
+
if (title === void 0) { title = null; }
|
|
2200
|
+
if (severity === void 0) { severity = 'neutral'; }
|
|
2201
|
+
if (options === void 0) { options = {}; }
|
|
2202
|
+
if (!this.containerComponentRef)
|
|
2203
|
+
this.setContainer();
|
|
2204
|
+
var id = ++this.lastId;
|
|
2205
|
+
this.toasts.push({
|
|
2206
|
+
message: message,
|
|
2207
|
+
title: title,
|
|
2208
|
+
severity: severity,
|
|
2209
|
+
options: Object.assign({ closable: true, id: id }, options),
|
|
2210
|
+
});
|
|
2211
|
+
this.toasts$.next(this.toasts);
|
|
2212
|
+
return id;
|
|
2213
|
+
};
|
|
2214
|
+
/**
|
|
2215
|
+
* Removes all open toasts at once.
|
|
2216
|
+
*/
|
|
2217
|
+
ToasterService.prototype.clear = function (containerKey) {
|
|
2218
|
+
this.toasts = !containerKey
|
|
2219
|
+
? []
|
|
2220
|
+
: this.toasts.filter(function (toast) { var _a; return ((_a = toast.options) === null || _a === void 0 ? void 0 : _a.containerKey) !== containerKey; });
|
|
2221
|
+
this.toasts$.next(this.toasts);
|
|
2222
|
+
};
|
|
2223
|
+
return ToasterService;
|
|
2224
|
+
}());
|
|
2225
|
+
ToasterService.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ToasterService, deps: [{ token: i2__namespace.ContentProjectionService }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2226
|
+
ToasterService.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ToasterService, providedIn: 'root' });
|
|
2227
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ToasterService, decorators: [{
|
|
2228
|
+
type: i0.Injectable,
|
|
2229
|
+
args: [{
|
|
2230
|
+
providedIn: 'root',
|
|
2231
|
+
}]
|
|
2232
|
+
}], ctorParameters: function () { return [{ type: i2__namespace.ContentProjectionService }]; } });
|
|
2617
2233
|
|
|
2618
2234
|
var THEME_SHARED_APPEND_CONTENT = new i0.InjectionToken('THEME_SHARED_APPEND_CONTENT', {
|
|
2619
2235
|
providedIn: 'root',
|
|
2620
2236
|
factory: function () {
|
|
2621
|
-
var domInsertion = i0.inject(
|
|
2622
|
-
domInsertion.insertContent(
|
|
2623
|
-
import('chart.js').then(function () { return chartJsLoaded$.next(true); });
|
|
2237
|
+
var domInsertion = i0.inject(i2.DomInsertionService);
|
|
2238
|
+
domInsertion.insertContent(i2.CONTENT_STRATEGY.AppendStyleToHead(styles));
|
|
2624
2239
|
},
|
|
2625
2240
|
});
|
|
2626
2241
|
|
|
@@ -2661,39 +2276,39 @@
|
|
|
2661
2276
|
return null;
|
|
2662
2277
|
};
|
|
2663
2278
|
DateParserFormatter.prototype.format = function (date) {
|
|
2279
|
+
var _a, _b;
|
|
2664
2280
|
if (!date)
|
|
2665
2281
|
return '';
|
|
2666
2282
|
var localization = this.configState.getOne('localization');
|
|
2667
|
-
var dateFormat =
|
|
2668
|
-
return
|
|
2283
|
+
var dateFormat = ((_b = (_a = localization.currentCulture) === null || _a === void 0 ? void 0 : _a.dateTimeFormat) === null || _b === void 0 ? void 0 : _b.shortDatePattern) || 'yyyy-MM-dd';
|
|
2284
|
+
return i1.formatDate(new Date(date.year, date.month - 1, date.day), dateFormat, this.locale);
|
|
2669
2285
|
};
|
|
2670
2286
|
return DateParserFormatter;
|
|
2671
|
-
}(
|
|
2672
|
-
DateParserFormatter
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2287
|
+
}(i3.NgbDateParserFormatter));
|
|
2288
|
+
DateParserFormatter.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: DateParserFormatter, deps: [{ token: i2__namespace.ConfigStateService }, { token: i0.LOCALE_ID }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
|
|
2289
|
+
DateParserFormatter.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: DateParserFormatter });
|
|
2290
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: DateParserFormatter, decorators: [{
|
|
2291
|
+
type: i0.Injectable
|
|
2292
|
+
}], ctorParameters: function () {
|
|
2293
|
+
return [{ type: i2__namespace.ConfigStateService }, { type: undefined, decorators: [{
|
|
2294
|
+
type: i0.Inject,
|
|
2295
|
+
args: [i0.LOCALE_ID]
|
|
2296
|
+
}] }];
|
|
2297
|
+
} });
|
|
2679
2298
|
|
|
2680
2299
|
var declarationsWithExports = [
|
|
2681
2300
|
BreadcrumbComponent,
|
|
2301
|
+
BreadcrumbItemsComponent,
|
|
2682
2302
|
ButtonComponent,
|
|
2683
|
-
ChartComponent,
|
|
2684
2303
|
ConfirmationComponent,
|
|
2685
2304
|
LoaderBarComponent,
|
|
2686
2305
|
LoadingComponent,
|
|
2687
2306
|
ModalComponent,
|
|
2688
|
-
TableComponent,
|
|
2689
|
-
TableEmptyMessageComponent,
|
|
2690
2307
|
ToastComponent,
|
|
2691
2308
|
ToastContainerComponent,
|
|
2692
|
-
SortOrderIconComponent,
|
|
2693
2309
|
NgxDatatableDefaultDirective,
|
|
2694
2310
|
NgxDatatableListDirective,
|
|
2695
2311
|
LoadingDirective,
|
|
2696
|
-
TableSortDirective,
|
|
2697
2312
|
ModalCloseDirective,
|
|
2698
2313
|
];
|
|
2699
2314
|
var BaseThemeSharedModule = /** @class */ (function () {
|
|
@@ -2701,27 +2316,64 @@
|
|
|
2701
2316
|
}
|
|
2702
2317
|
return BaseThemeSharedModule;
|
|
2703
2318
|
}());
|
|
2704
|
-
BaseThemeSharedModule
|
|
2705
|
-
|
|
2706
|
-
|
|
2707
|
-
|
|
2708
|
-
|
|
2709
|
-
|
|
2710
|
-
|
|
2711
|
-
|
|
2712
|
-
|
|
2713
|
-
|
|
2714
|
-
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2319
|
+
BaseThemeSharedModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: BaseThemeSharedModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2320
|
+
BaseThemeSharedModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: BaseThemeSharedModule, declarations: [BreadcrumbComponent,
|
|
2321
|
+
BreadcrumbItemsComponent,
|
|
2322
|
+
ButtonComponent,
|
|
2323
|
+
ConfirmationComponent,
|
|
2324
|
+
LoaderBarComponent,
|
|
2325
|
+
LoadingComponent,
|
|
2326
|
+
ModalComponent,
|
|
2327
|
+
ToastComponent,
|
|
2328
|
+
ToastContainerComponent,
|
|
2329
|
+
NgxDatatableDefaultDirective,
|
|
2330
|
+
NgxDatatableListDirective,
|
|
2331
|
+
LoadingDirective,
|
|
2332
|
+
ModalCloseDirective, HttpErrorWrapperComponent], imports: [i2.CoreModule,
|
|
2333
|
+
i1$2.NgxDatatableModule,
|
|
2334
|
+
core.NgxValidateCoreModule,
|
|
2335
|
+
i3.NgbPaginationModule,
|
|
2336
|
+
EllipsisModule], exports: [i1$2.NgxDatatableModule, EllipsisModule, BreadcrumbComponent,
|
|
2337
|
+
BreadcrumbItemsComponent,
|
|
2338
|
+
ButtonComponent,
|
|
2339
|
+
ConfirmationComponent,
|
|
2340
|
+
LoaderBarComponent,
|
|
2341
|
+
LoadingComponent,
|
|
2342
|
+
ModalComponent,
|
|
2343
|
+
ToastComponent,
|
|
2344
|
+
ToastContainerComponent,
|
|
2345
|
+
NgxDatatableDefaultDirective,
|
|
2346
|
+
NgxDatatableListDirective,
|
|
2347
|
+
LoadingDirective,
|
|
2348
|
+
ModalCloseDirective] });
|
|
2349
|
+
BaseThemeSharedModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: BaseThemeSharedModule, providers: [i1.DatePipe], imports: [[
|
|
2350
|
+
i2.CoreModule,
|
|
2351
|
+
i1$2.NgxDatatableModule,
|
|
2352
|
+
core.NgxValidateCoreModule,
|
|
2353
|
+
i3.NgbPaginationModule,
|
|
2354
|
+
EllipsisModule,
|
|
2355
|
+
], i1$2.NgxDatatableModule, EllipsisModule] });
|
|
2356
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: BaseThemeSharedModule, decorators: [{
|
|
2357
|
+
type: i0.NgModule,
|
|
2358
|
+
args: [{
|
|
2359
|
+
imports: [
|
|
2360
|
+
i2.CoreModule,
|
|
2361
|
+
i1$2.NgxDatatableModule,
|
|
2362
|
+
core.NgxValidateCoreModule,
|
|
2363
|
+
i3.NgbPaginationModule,
|
|
2364
|
+
EllipsisModule,
|
|
2365
|
+
],
|
|
2366
|
+
declarations: __spreadArray(__spreadArray([], __read(declarationsWithExports)), [HttpErrorWrapperComponent]),
|
|
2367
|
+
exports: __spreadArray([i1$2.NgxDatatableModule, EllipsisModule], __read(declarationsWithExports)),
|
|
2368
|
+
providers: [i1.DatePipe],
|
|
2369
|
+
entryComponents: [
|
|
2370
|
+
HttpErrorWrapperComponent,
|
|
2371
|
+
LoadingComponent,
|
|
2372
|
+
ToastContainerComponent,
|
|
2373
|
+
ConfirmationComponent,
|
|
2374
|
+
],
|
|
2375
|
+
}]
|
|
2376
|
+
}] });
|
|
2725
2377
|
var ThemeSharedModule = /** @class */ (function () {
|
|
2726
2378
|
function ThemeSharedModule() {
|
|
2727
2379
|
}
|
|
@@ -2734,14 +2386,14 @@
|
|
|
2734
2386
|
provide: i0.APP_INITIALIZER,
|
|
2735
2387
|
multi: true,
|
|
2736
2388
|
deps: [ErrorHandler],
|
|
2737
|
-
useFactory:
|
|
2389
|
+
useFactory: i2.noop,
|
|
2738
2390
|
},
|
|
2739
2391
|
THEME_SHARED_ROUTE_PROVIDERS,
|
|
2740
2392
|
{
|
|
2741
2393
|
provide: i0.APP_INITIALIZER,
|
|
2742
2394
|
multi: true,
|
|
2743
2395
|
deps: [THEME_SHARED_APPEND_CONTENT],
|
|
2744
|
-
useFactory:
|
|
2396
|
+
useFactory: i2.noop,
|
|
2745
2397
|
},
|
|
2746
2398
|
{
|
|
2747
2399
|
provide: i0.APP_INITIALIZER,
|
|
@@ -2755,7 +2407,7 @@
|
|
|
2755
2407
|
useFactory: httpErrorConfigFactory,
|
|
2756
2408
|
deps: [HTTP_ERROR_CONFIG],
|
|
2757
2409
|
},
|
|
2758
|
-
{ provide:
|
|
2410
|
+
{ provide: i3.NgbDateParserFormatter, useClass: DateParserFormatter },
|
|
2759
2411
|
NG_BOOTSTRAP_CONFIG_PROVIDERS,
|
|
2760
2412
|
{
|
|
2761
2413
|
provide: core.VALIDATION_BLUEPRINTS,
|
|
@@ -2774,12 +2426,16 @@
|
|
|
2774
2426
|
};
|
|
2775
2427
|
return ThemeSharedModule;
|
|
2776
2428
|
}());
|
|
2777
|
-
ThemeSharedModule
|
|
2778
|
-
|
|
2779
|
-
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2429
|
+
ThemeSharedModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ThemeSharedModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
2430
|
+
ThemeSharedModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ThemeSharedModule, imports: [BaseThemeSharedModule], exports: [BaseThemeSharedModule] });
|
|
2431
|
+
ThemeSharedModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ThemeSharedModule, imports: [[BaseThemeSharedModule], BaseThemeSharedModule] });
|
|
2432
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0__namespace, type: ThemeSharedModule, decorators: [{
|
|
2433
|
+
type: i0.NgModule,
|
|
2434
|
+
args: [{
|
|
2435
|
+
imports: [BaseThemeSharedModule],
|
|
2436
|
+
exports: [BaseThemeSharedModule],
|
|
2437
|
+
}]
|
|
2438
|
+
}] });
|
|
2783
2439
|
|
|
2784
2440
|
var minLength = forms.Validators.minLength, maxLength = forms.Validators.maxLength;
|
|
2785
2441
|
function getPasswordValidators(injector) {
|
|
@@ -2804,7 +2460,7 @@
|
|
|
2804
2460
|
return [core.validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(128)];
|
|
2805
2461
|
}
|
|
2806
2462
|
function getRuleFn(injector) {
|
|
2807
|
-
var configState = injector.get(
|
|
2463
|
+
var configState = injector.get(i2.ConfigStateService);
|
|
2808
2464
|
return function (key) {
|
|
2809
2465
|
var passwordRules = configState.getSettings('Identity.Password');
|
|
2810
2466
|
return (passwordRules["Abp.Identity.Password." + key] || '').toLowerCase();
|
|
@@ -2822,8 +2478,8 @@
|
|
|
2822
2478
|
exports.BOOTSTRAP = BOOTSTRAP;
|
|
2823
2479
|
exports.BaseThemeSharedModule = BaseThemeSharedModule;
|
|
2824
2480
|
exports.BreadcrumbComponent = BreadcrumbComponent;
|
|
2481
|
+
exports.BreadcrumbItemsComponent = BreadcrumbItemsComponent;
|
|
2825
2482
|
exports.ButtonComponent = ButtonComponent;
|
|
2826
|
-
exports.ChartComponent = ChartComponent;
|
|
2827
2483
|
exports.ConfirmationComponent = ConfirmationComponent;
|
|
2828
2484
|
exports.ConfirmationService = ConfirmationService;
|
|
2829
2485
|
exports.DEFAULT_ERROR_LOCALIZATIONS = DEFAULT_ERROR_LOCALIZATIONS;
|
|
@@ -2844,7 +2500,6 @@
|
|
|
2844
2500
|
exports.ModalCloseDirective = ModalCloseDirective;
|
|
2845
2501
|
exports.ModalComponent = ModalComponent;
|
|
2846
2502
|
exports.ModalRefService = ModalRefService;
|
|
2847
|
-
exports.ModalService = ModalService;
|
|
2848
2503
|
exports.NGX_DATATABLE_MESSAGES = NGX_DATATABLE_MESSAGES;
|
|
2849
2504
|
exports.NG_BOOTSTRAP_CONFIG_PROVIDERS = NG_BOOTSTRAP_CONFIG_PROVIDERS;
|
|
2850
2505
|
exports.NavItem = NavItem;
|
|
@@ -2853,18 +2508,13 @@
|
|
|
2853
2508
|
exports.NgxDatatableListDirective = NgxDatatableListDirective;
|
|
2854
2509
|
exports.PageAlertService = PageAlertService;
|
|
2855
2510
|
exports.SUPPRESS_UNSAVED_CHANGES_WARNING = SUPPRESS_UNSAVED_CHANGES_WARNING;
|
|
2856
|
-
exports.SortOrderIconComponent = SortOrderIconComponent;
|
|
2857
2511
|
exports.THEME_SHARED_APPEND_CONTENT = THEME_SHARED_APPEND_CONTENT;
|
|
2858
2512
|
exports.THEME_SHARED_ROUTE_PROVIDERS = THEME_SHARED_ROUTE_PROVIDERS;
|
|
2859
|
-
exports.TableComponent = TableComponent;
|
|
2860
|
-
exports.TableEmptyMessageComponent = TableEmptyMessageComponent;
|
|
2861
|
-
exports.TableSortDirective = TableSortDirective;
|
|
2862
2513
|
exports.ThemeSharedModule = ThemeSharedModule;
|
|
2863
2514
|
exports.ToastComponent = ToastComponent;
|
|
2864
2515
|
exports.ToastContainerComponent = ToastContainerComponent;
|
|
2865
2516
|
exports.ToasterService = ToasterService;
|
|
2866
2517
|
exports.bounceIn = bounceIn;
|
|
2867
|
-
exports.chartJsLoaded$ = chartJsLoaded$;
|
|
2868
2518
|
exports.collapse = collapse;
|
|
2869
2519
|
exports.collapseLinearWithMargin = collapseLinearWithMargin;
|
|
2870
2520
|
exports.collapseWithMargin = collapseWithMargin;
|
|
@@ -2891,47 +2541,10 @@
|
|
|
2891
2541
|
exports.fadeOutRight = fadeOutRight;
|
|
2892
2542
|
exports.fadeOutUp = fadeOutUp;
|
|
2893
2543
|
exports.getPasswordValidators = getPasswordValidators;
|
|
2894
|
-
exports.getRandomBackgroundColor = getRandomBackgroundColor;
|
|
2895
2544
|
exports.httpErrorConfigFactory = httpErrorConfigFactory;
|
|
2896
2545
|
exports.initLazyStyleHandler = initLazyStyleHandler;
|
|
2897
2546
|
exports.slideFromBottom = slideFromBottom;
|
|
2898
2547
|
exports.toastInOut = toastInOut;
|
|
2899
|
-
exports.ɵa = EllipsisDirective;
|
|
2900
|
-
exports.ɵb = EllipsisModule;
|
|
2901
|
-
exports.ɵba = HttpErrorWrapperComponent;
|
|
2902
|
-
exports.ɵbb = ModalContainerComponent;
|
|
2903
|
-
exports.ɵbc = ErrorHandler;
|
|
2904
|
-
exports.ɵbe = THEME_SHARED_ROUTE_PROVIDERS;
|
|
2905
|
-
exports.ɵbf = configureRoutes;
|
|
2906
|
-
exports.ɵbg = THEME_SHARED_APPEND_CONTENT;
|
|
2907
|
-
exports.ɵbh = initLazyStyleHandler;
|
|
2908
|
-
exports.ɵbi = httpErrorConfigFactory;
|
|
2909
|
-
exports.ɵbj = HTTP_ERROR_CONFIG;
|
|
2910
|
-
exports.ɵbk = DateParserFormatter;
|
|
2911
|
-
exports.ɵbl = NG_BOOTSTRAP_CONFIG_PROVIDERS;
|
|
2912
|
-
exports.ɵc = BreadcrumbComponent;
|
|
2913
|
-
exports.ɵd = ButtonComponent;
|
|
2914
|
-
exports.ɵe = ChartComponent;
|
|
2915
|
-
exports.ɵf = ConfirmationComponent;
|
|
2916
|
-
exports.ɵg = LoaderBarComponent;
|
|
2917
|
-
exports.ɵh = LoadingComponent;
|
|
2918
|
-
exports.ɵi = ModalComponent;
|
|
2919
|
-
exports.ɵj = SUPPRESS_UNSAVED_CHANGES_WARNING;
|
|
2920
|
-
exports.ɵk = ConfirmationService;
|
|
2921
|
-
exports.ɵl = ModalRefService;
|
|
2922
|
-
exports.ɵm = TableComponent;
|
|
2923
|
-
exports.ɵn = TableEmptyMessageComponent;
|
|
2924
|
-
exports.ɵo = ToastComponent;
|
|
2925
|
-
exports.ɵp = ToasterService;
|
|
2926
|
-
exports.ɵq = ToastContainerComponent;
|
|
2927
|
-
exports.ɵr = toastInOut;
|
|
2928
|
-
exports.ɵs = SortOrderIconComponent;
|
|
2929
|
-
exports.ɵt = NgxDatatableDefaultDirective;
|
|
2930
|
-
exports.ɵu = NgxDatatableListDirective;
|
|
2931
|
-
exports.ɵw = NGX_DATATABLE_MESSAGES;
|
|
2932
|
-
exports.ɵx = LoadingDirective;
|
|
2933
|
-
exports.ɵy = TableSortDirective;
|
|
2934
|
-
exports.ɵz = ModalCloseDirective;
|
|
2935
2548
|
|
|
2936
2549
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2937
2550
|
|