@abp/ng.theme.shared 4.4.3 → 5.0.0-beta.3
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 +711 -1164
- 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 +58 -31
- 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 +4 -3
- 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/document-dir.handler.js +33 -0
- package/esm2015/lib/handlers/document-dir.handler.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 +2 -2
- package/esm2015/lib/handlers/index.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 +81 -47
- 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 -2
- package/esm2015/lib/tokens/index.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 -2
- 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 +947 -1274
- 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/constants/styles.d.ts +1 -2
- 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/document-dir.handler.d.ts +13 -0
- package/lib/handlers/error.handler.d.ts +9 -7
- package/lib/handlers/index.d.ts +1 -1
- 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/tokens/index.d.ts +0 -1
- package/lib/utils/date-parser-formatter.d.ts +3 -0
- package/lib/utils/index.d.ts +0 -1
- package/package.json +6 -8
- package/public-api.d.ts +0 -1
- 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/handlers/lazy-style.handler.js +0 -90
- package/esm2015/lib/services/modal.service.js +0 -46
- package/esm2015/lib/tokens/lazy-styles.token.js +0 -3
- 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/handlers/lazy-style.handler.d.ts +0 -20
- package/lib/services/modal.service.d.ts +0 -16
- package/lib/tokens/lazy-styles.token.d.ts +0 -2
- package/lib/utils/widget-utils.d.ts +0 -3
- package/styles/bootstrap-rtl.min.css +0 -7
- package/testing/abp-ng.theme.shared-testing.metadata.json +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"append-content.token.js","sourceRoot":"","sources":["../../../../../../packages/theme-shared/src/lib/tokens/append-content.token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,gBAAgB,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACrE,OAAO,EAAE,MAAM,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACvD,OAAO,MAAM,MAAM,qBAAqB,CAAC;AAEzC,MAAM,CAAC,MAAM,2BAA2B,GAAG,IAAI,cAAc,CAAO,6BAA6B,EAAE;IACjG,UAAU,EAAE,MAAM;IAClB,OAAO,EAAE,GAAG,EAAE;QACZ,MAAM,YAAY,GAAwB,MAAM,CAAC,mBAAmB,CAAC,CAAC;QAEtE,YAAY,CAAC,aAAa,CAAC,gBAAgB,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAC;IACzE,CAAC;CACF,CAAC,CAAC","sourcesContent":["import { CONTENT_STRATEGY, DomInsertionService } from '@abp/ng.core';\nimport { inject, InjectionToken } from '@angular/core';\nimport styles from '../constants/styles';\n\nexport const THEME_SHARED_APPEND_CONTENT = new InjectionToken<void>('THEME_SHARED_APPEND_CONTENT', {\n providedIn: 'root',\n factory: () => {\n const domInsertion: DomInsertionService = inject(DomInsertionService);\n\n domInsertion.insertContent(CONTENT_STRATEGY.AppendStyleToHead(styles));\n },\n});\n"]}
|
|
@@ -7,4 +7,4 @@ export function httpErrorConfigFactory(config = {}) {
|
|
|
7
7
|
}
|
|
8
8
|
export const HTTP_ERROR_CONFIG = new InjectionToken('HTTP_ERROR_CONFIG');
|
|
9
9
|
export const HTTP_ERROR_HANDLER = new InjectionToken('HTTP_ERROR_HANDLER');
|
|
10
|
-
//# sourceMappingURL=
|
|
10
|
+
//# sourceMappingURL=http-error.token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"http-error.token.js","sourceRoot":"","sources":["../../../../../../packages/theme-shared/src/lib/tokens/http-error.token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAG/C,MAAM,UAAU,sBAAsB,CAAC,SAAS,EAAqB;IACnE,IAAI,MAAM,CAAC,WAAW,IAAI,MAAM,CAAC,WAAW,CAAC,SAAS,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,cAAc,EAAE;QAC5F,MAAM,CAAC,WAAW,CAAC,cAAc,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;KAC1D;IAED,OAAO,gBACL,qBAAqB,EAAE,EAAE,EACzB,WAAW,EAAE,EAAE,IACZ,MAAM,CACS,CAAC;AACvB,CAAC;AAED,MAAM,CAAC,MAAM,iBAAiB,GAAG,IAAI,cAAc,CAAkB,mBAAmB,CAAC,CAAC;AAE1F,MAAM,CAAC,MAAM,kBAAkB,GAAG,IAAI,cAAc,CAAmB,oBAAoB,CAAC,CAAC","sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { HttpErrorConfig, HttpErrorHandler } from '../models/common';\n\nexport function httpErrorConfigFactory(config = {} as HttpErrorConfig) {\n if (config.errorScreen && config.errorScreen.component && !config.errorScreen.forWhichErrors) {\n config.errorScreen.forWhichErrors = [401, 403, 404, 500];\n }\n\n return {\n skipHandledErrorCodes: [],\n errorScreen: {},\n ...config,\n } as HttpErrorConfig;\n}\n\nexport const HTTP_ERROR_CONFIG = new InjectionToken<HttpErrorConfig>('HTTP_ERROR_CONFIG');\n\nexport const HTTP_ERROR_HANDLER = new InjectionToken<HttpErrorHandler>('HTTP_ERROR_HANDLER');\n"]}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
export * from './append-content.token';
|
|
2
2
|
export * from './http-error.token';
|
|
3
|
-
export * from './lazy-styles.token';
|
|
4
3
|
export * from './ngx-datatable-messages.token';
|
|
5
4
|
export * from './suppress-unsaved-changes-warning.token';
|
|
6
|
-
//# sourceMappingURL=
|
|
5
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/theme-shared/src/lib/tokens/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,0CAA0C,CAAC","sourcesContent":["export * from './append-content.token';\nexport * from './http-error.token';\nexport * from './ngx-datatable-messages.token';\nexport * from './suppress-unsaved-changes-warning.token';\n"]}
|
|
@@ -5,4 +5,4 @@ export const defaultNgxDatatableMessages = {
|
|
|
5
5
|
selectedMessage: 'AbpUi::Selected',
|
|
6
6
|
};
|
|
7
7
|
export const NGX_DATATABLE_MESSAGES = new InjectionToken('NGX_DATATABLE_MESSAGES');
|
|
8
|
-
//# sourceMappingURL=
|
|
8
|
+
//# sourceMappingURL=ngx-datatable-messages.token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngx-datatable-messages.token.js","sourceRoot":"","sources":["../../../../../../packages/theme-shared/src/lib/tokens/ngx-datatable-messages.token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAQ/C,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,YAAY,EAAE,mCAAmC;IACjD,YAAY,EAAE,cAAc;IAC5B,eAAe,EAAE,iBAAiB;CACnC,CAAC;AAEF,MAAM,CAAC,MAAM,sBAAsB,GAAG,IAAI,cAAc,CACtD,wBAAwB,CACzB,CAAC","sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport interface NgxDatatableMessages {\n emptyMessage: string;\n totalMessage: string;\n selectedMessage: string;\n}\n\nexport const defaultNgxDatatableMessages = {\n emptyMessage: 'AbpUi::NoDataAvailableInDatatable',\n totalMessage: 'AbpUi::Total',\n selectedMessage: 'AbpUi::Selected',\n};\n\nexport const NGX_DATATABLE_MESSAGES = new InjectionToken<Partial<NgxDatatableMessages>>(\n 'NGX_DATATABLE_MESSAGES',\n);\n"]}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
|
-
// TODO: Should be documented
|
|
3
2
|
export const SUPPRESS_UNSAVED_CHANGES_WARNING = new InjectionToken('SUPPRESS_UNSAVED_CHANGES_WARNING');
|
|
4
|
-
//# sourceMappingURL=
|
|
3
|
+
//# sourceMappingURL=suppress-unsaved-changes-warning.token.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"suppress-unsaved-changes-warning.token.js","sourceRoot":"","sources":["../../../../../../packages/theme-shared/src/lib/tokens/suppress-unsaved-changes-warning.token.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,CAAC,MAAM,gCAAgC,GAAG,IAAI,cAAc,CAChE,kCAAkC,CACnC,CAAC","sourcesContent":["import { InjectionToken } from '@angular/core';\n\nexport const SUPPRESS_UNSAVED_CHANGES_WARNING = new InjectionToken<boolean>(\n 'SUPPRESS_UNSAVED_CHANGES_WARNING',\n);\n"]}
|
|
@@ -2,7 +2,8 @@ import { ConfigStateService } from '@abp/ng.core';
|
|
|
2
2
|
import { formatDate } from '@angular/common';
|
|
3
3
|
import { Inject, Injectable, LOCALE_ID } from '@angular/core';
|
|
4
4
|
import { NgbDateParserFormatter } from '@ng-bootstrap/ng-bootstrap';
|
|
5
|
-
import
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
import * as i1 from "@abp/ng.core";
|
|
6
7
|
function isNumber(value) {
|
|
7
8
|
return !isNaN(toInteger(value));
|
|
8
9
|
}
|
|
@@ -38,18 +39,20 @@ export class DateParserFormatter extends NgbDateParserFormatter {
|
|
|
38
39
|
return null;
|
|
39
40
|
}
|
|
40
41
|
format(date) {
|
|
42
|
+
var _a, _b;
|
|
41
43
|
if (!date)
|
|
42
44
|
return '';
|
|
43
45
|
const localization = this.configState.getOne('localization');
|
|
44
|
-
const dateFormat =
|
|
46
|
+
const dateFormat = ((_b = (_a = localization.currentCulture) === null || _a === void 0 ? void 0 : _a.dateTimeFormat) === null || _b === void 0 ? void 0 : _b.shortDatePattern) || 'yyyy-MM-dd';
|
|
45
47
|
return formatDate(new Date(date.year, date.month - 1, date.day), dateFormat, this.locale);
|
|
46
48
|
}
|
|
47
49
|
}
|
|
48
|
-
DateParserFormatter
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
]
|
|
55
|
-
|
|
50
|
+
DateParserFormatter.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: DateParserFormatter, deps: [{ token: i1.ConfigStateService }, { token: LOCALE_ID }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
51
|
+
DateParserFormatter.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: DateParserFormatter });
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: DateParserFormatter, decorators: [{
|
|
53
|
+
type: Injectable
|
|
54
|
+
}], ctorParameters: function () { return [{ type: i1.ConfigStateService }, { type: undefined, decorators: [{
|
|
55
|
+
type: Inject,
|
|
56
|
+
args: [LOCALE_ID]
|
|
57
|
+
}] }]; } });
|
|
58
|
+
//# sourceMappingURL=date-parser-formatter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"date-parser-formatter.js","sourceRoot":"","sources":["../../../../../../packages/theme-shared/src/lib/utils/date-parser-formatter.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2C,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAC3F,OAAO,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAiB,MAAM,4BAA4B,CAAC;;;AAEnF,SAAS,QAAQ,CAAC,KAAU;IAC1B,OAAO,CAAC,KAAK,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;AAClC,CAAC;AAED,SAAS,SAAS,CAAC,KAAU;IAC3B,OAAO,QAAQ,CAAC,GAAG,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;AAClC,CAAC;AAGD,MAAM,OAAO,mBAAoB,SAAQ,sBAAsB;IAC7D,YAAoB,WAA+B,EAA6B,MAAc;QAC5F,KAAK,EAAE,CAAC;QADU,gBAAW,GAAX,WAAW,CAAoB;QAA6B,WAAM,GAAN,MAAM,CAAQ;IAE9F,CAAC;IAED,KAAK,CAAC,KAAa;QACjB,IAAI,KAAK,EAAE;YACT,MAAM,SAAS,GAAG,KAAK,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YAC1C,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE;gBACpD,OAAO,EAAE,IAAI,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;aAClE;iBAAM,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC,IAAI,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE;gBACrF,OAAO,EAAE,IAAI,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,IAAI,EAAE,CAAC;aACrF;iBAAM,IACL,SAAS,CAAC,MAAM,KAAK,CAAC;gBACtB,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;gBACtB,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;gBACtB,QAAQ,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,EACtB;gBACA,OAAO;oBACL,IAAI,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;oBAC7B,KAAK,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;oBAC9B,GAAG,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;iBAC7B,CAAC;aACH;SACF;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IAED,MAAM,CAAC,IAAmB;;QACxB,IAAI,CAAC,IAAI;YAAE,OAAO,EAAE,CAAC;QAErB,MAAM,YAAY,GAChB,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;QAE1C,MAAM,UAAU,GACd,CAAA,MAAA,MAAA,YAAY,CAAC,cAAc,0CAAE,cAAc,0CAAE,gBAAgB,KAAI,YAAY,CAAC;QAEhF,OAAO,UAAU,CAAC,IAAI,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,GAAG,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,EAAE,UAAU,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAC5F,CAAC;;gHAtCU,mBAAmB,oDAC+B,SAAS;oHAD3D,mBAAmB;2FAAnB,mBAAmB;kBAD/B,UAAU;;0BAE6C,MAAM;2BAAC,SAAS","sourcesContent":["import { ApplicationLocalizationConfigurationDto, ConfigStateService } from '@abp/ng.core';\nimport { formatDate } from '@angular/common';\nimport { Inject, Injectable, LOCALE_ID } from '@angular/core';\nimport { NgbDateParserFormatter, NgbDateStruct } from '@ng-bootstrap/ng-bootstrap';\n\nfunction isNumber(value: any): boolean {\n return !isNaN(toInteger(value));\n}\n\nfunction toInteger(value: any): number {\n return parseInt(`${value}`, 10);\n}\n\n@Injectable()\nexport class DateParserFormatter extends NgbDateParserFormatter {\n constructor(private configState: ConfigStateService, @Inject(LOCALE_ID) private locale: string) {\n super();\n }\n\n parse(value: string): NgbDateStruct {\n if (value) {\n const dateParts = value.trim().split('-');\n if (dateParts.length === 1 && isNumber(dateParts[0])) {\n return { year: toInteger(dateParts[0]), month: null, day: null };\n } else if (dateParts.length === 2 && isNumber(dateParts[0]) && isNumber(dateParts[1])) {\n return { year: toInteger(dateParts[0]), month: toInteger(dateParts[1]), day: null };\n } else if (\n dateParts.length === 3 &&\n isNumber(dateParts[0]) &&\n isNumber(dateParts[1]) &&\n isNumber(dateParts[2])\n ) {\n return {\n year: toInteger(dateParts[0]),\n month: toInteger(dateParts[1]),\n day: toInteger(dateParts[2]),\n };\n }\n }\n return null;\n }\n\n format(date: NgbDateStruct): string {\n if (!date) return '';\n\n const localization: ApplicationLocalizationConfigurationDto =\n this.configState.getOne('localization');\n\n const dateFormat =\n localization.currentCulture?.dateTimeFormat?.shortDatePattern || 'yyyy-MM-dd';\n\n return formatDate(new Date(date.year, date.month - 1, date.day), dateFormat, this.locale);\n }\n}\n"]}
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
export * from './date-parser-formatter';
|
|
2
2
|
export * from './validation-utils';
|
|
3
|
-
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy90aGVtZS1zaGFyZWQvc3JjL2xpYi91dGlscy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsb0JBQW9CLENBQUM7QUFDbkMsY0FBYyxnQkFBZ0IsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vZGF0ZS1wYXJzZXItZm9ybWF0dGVyJztcbmV4cG9ydCAqIGZyb20gJy4vdmFsaWRhdGlvbi11dGlscyc7XG5leHBvcnQgKiBmcm9tICcuL3dpZGdldC11dGlscyc7XG4iXX0=
|
|
3
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../packages/theme-shared/src/lib/utils/index.ts"],"names":[],"mappings":"AAAA,cAAc,yBAAyB,CAAC;AACxC,cAAc,oBAAoB,CAAC","sourcesContent":["export * from './date-parser-formatter';\nexport * from './validation-utils';\n"]}
|
|
@@ -30,4 +30,4 @@ function getRuleFn(injector) {
|
|
|
30
30
|
return (passwordRules[`Abp.Identity.Password.${key}`] || '').toLowerCase();
|
|
31
31
|
};
|
|
32
32
|
}
|
|
33
|
-
//# sourceMappingURL=
|
|
33
|
+
//# sourceMappingURL=validation-utils.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"validation-utils.js","sourceRoot":"","sources":["../../../../../../packages/theme-shared/src/lib/utils/validation-utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAO,kBAAkB,EAAE,MAAM,cAAc,CAAC;AAEvD,OAAO,EAAe,UAAU,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAiB,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAErE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,UAAU,CAAC;AAE5C,MAAM,UAAU,qBAAqB,CAAC,QAAkB;IACtD,MAAM,OAAO,GAAG,SAAS,CAAC,QAAQ,CAAC,CAAC;IAEpC,MAAM,gBAAgB,GAAG,EAAmB,CAAC;IAC7C,IAAI,cAAc,GAAG,CAAC,CAAC;IAEvB,IAAI,OAAO,CAAC,cAAc,CAAC,KAAK,MAAM,EAAE;QACtC,gBAAgB,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;KACjC;IAED,IAAI,OAAO,CAAC,kBAAkB,CAAC,KAAK,MAAM,EAAE;QAC1C,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;KAChC;IAED,IAAI,OAAO,CAAC,kBAAkB,CAAC,KAAK,MAAM,EAAE;QAC1C,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KAClC;IAED,IAAI,OAAO,CAAC,wBAAwB,CAAC,KAAK,MAAM,EAAE;QAChD,gBAAgB,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;KAClC;IAED,IAAI,MAAM,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC,EAAE;QAChD,cAAc,GAAG,CAAC,OAAO,CAAC,gBAAgB,CAAC,CAAC;KAC7C;IAED,OAAO,CAAC,gBAAgB,CAAC,gBAAgB,CAAC,EAAE,SAAS,CAAC,cAAc,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC;AACzF,CAAC;AAED,SAAS,SAAS,CAAC,QAAkB;IACnC,MAAM,WAAW,GAAG,QAAQ,CAAC,GAAG,CAAC,kBAAkB,CAAC,CAAC;IAErD,OAAO,CAAC,GAAW,EAAE,EAAE;QACrB,MAAM,aAAa,GAA2B,WAAW,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC;QAE3F,OAAO,CAAC,aAAa,CAAC,yBAAyB,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC,WAAW,EAAE,CAAC;IAC7E,CAAC,CAAC;AACJ,CAAC","sourcesContent":["import { ABP, ConfigStateService } from '@abp/ng.core';\nimport { Injector } from '@angular/core';\nimport { ValidatorFn, Validators } from '@angular/forms';\nimport { PasswordRules, validatePassword } from '@ngx-validate/core';\n\nconst { minLength, maxLength } = Validators;\n\nexport function getPasswordValidators(injector: Injector): ValidatorFn[] {\n const getRule = getRuleFn(injector);\n\n const passwordRulesArr = [] as PasswordRules;\n let requiredLength = 1;\n\n if (getRule('RequireDigit') === 'true') {\n passwordRulesArr.push('number');\n }\n\n if (getRule('RequireLowercase') === 'true') {\n passwordRulesArr.push('small');\n }\n\n if (getRule('RequireUppercase') === 'true') {\n passwordRulesArr.push('capital');\n }\n\n if (getRule('RequireNonAlphanumeric') === 'true') {\n passwordRulesArr.push('special');\n }\n\n if (Number.isInteger(+getRule('RequiredLength'))) {\n requiredLength = +getRule('RequiredLength');\n }\n\n return [validatePassword(passwordRulesArr), minLength(requiredLength), maxLength(128)];\n}\n\nfunction getRuleFn(injector: Injector) {\n const configState = injector.get(ConfigStateService);\n\n return (key: string) => {\n const passwordRules: ABP.Dictionary<string> = configState.getSettings('Identity.Password');\n\n return (passwordRules[`Abp.Identity.Password.${key}`] || '').toLowerCase();\n };\n}\n"]}
|
package/esm2015/public-api.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
*/
|
|
4
4
|
export * from './lib/animations';
|
|
5
5
|
export * from './lib/components';
|
|
6
|
-
export { BOOTSTRAP } from './lib/constants/styles';
|
|
7
6
|
export * from './lib/constants/validation';
|
|
8
7
|
export * from './lib/directives';
|
|
9
8
|
export * from './lib/enums';
|
|
@@ -14,4 +13,4 @@ export * from './lib/services';
|
|
|
14
13
|
export * from './lib/theme-shared.module';
|
|
15
14
|
export * from './lib/tokens';
|
|
16
15
|
export * from './lib/utils';
|
|
17
|
-
//# sourceMappingURL=
|
|
16
|
+
//# sourceMappingURL=public-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../../../../packages/theme-shared/src/public-api.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC","sourcesContent":["/*\n * Public API Surface of theme-shared\n */\n\nexport * from './lib/animations';\nexport * from './lib/components';\nexport * from './lib/constants/validation';\nexport * from './lib/directives';\nexport * from './lib/enums';\nexport * from './lib/handlers';\nexport * from './lib/models';\nexport * from './lib/providers';\nexport * from './lib/services';\nexport * from './lib/theme-shared.module';\nexport * from './lib/tokens';\nexport * from './lib/utils';\n"]}
|
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
4
|
export * from './public-api';
|
|
5
|
-
//# sourceMappingURL=
|
|
5
|
+
//# sourceMappingURL=abp-ng.theme.shared-testing.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"abp-ng.theme.shared-testing.js","sourceRoot":"","sources":["../../../../../packages/theme-shared/testing/src/abp-ng.theme.shared-testing.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,cAAc,cAAc,CAAC","sourcesContent":["/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export {};
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../../../packages/theme-shared/testing/src/lib/models/config.ts"],"names":[],"mappings":"","sourcesContent":["import { Validation } from '@ngx-validate/core';\n\nexport interface Config {\n validation?: Partial<Validation.Config>;\n}\n"]}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from './config';
|
|
2
|
-
//# sourceMappingURL=
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/theme-shared/testing/src/lib/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC","sourcesContent":["export * from './config';\n"]}
|
|
@@ -3,6 +3,7 @@ import { NgModule } from '@angular/core';
|
|
|
3
3
|
import { RouterTestingModule } from '@angular/router/testing';
|
|
4
4
|
import { NgbDateParserFormatter } from '@ng-bootstrap/ng-bootstrap';
|
|
5
5
|
import { defaultMapErrorsFn, VALIDATION_BLUEPRINTS, VALIDATION_MAP_ERRORS_FN, VALIDATION_VALIDATE_ON_SUBMIT, } from '@ngx-validate/core';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
6
7
|
/**
|
|
7
8
|
* ThemeSharedTestingModule is the module that will be used in tests
|
|
8
9
|
*/
|
|
@@ -29,10 +30,14 @@ export class ThemeSharedTestingModule {
|
|
|
29
30
|
};
|
|
30
31
|
}
|
|
31
32
|
}
|
|
32
|
-
ThemeSharedTestingModule
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
ThemeSharedTestingModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ThemeSharedTestingModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
34
|
+
ThemeSharedTestingModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ThemeSharedTestingModule, imports: [RouterTestingModule, BaseThemeSharedModule], exports: [RouterTestingModule, BaseThemeSharedModule] });
|
|
35
|
+
ThemeSharedTestingModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ThemeSharedTestingModule, imports: [[RouterTestingModule, BaseThemeSharedModule], RouterTestingModule, BaseThemeSharedModule] });
|
|
36
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.6", ngImport: i0, type: ThemeSharedTestingModule, decorators: [{
|
|
37
|
+
type: NgModule,
|
|
38
|
+
args: [{
|
|
39
|
+
exports: [RouterTestingModule, BaseThemeSharedModule],
|
|
40
|
+
imports: [RouterTestingModule, BaseThemeSharedModule],
|
|
41
|
+
}]
|
|
42
|
+
}] });
|
|
43
|
+
//# sourceMappingURL=theme-shared-testing.module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-shared-testing.module.js","sourceRoot":"","sources":["../../../../../../packages/theme-shared/testing/src/lib/theme-shared-testing.module.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,qBAAqB,EACrB,mBAAmB,EACnB,6BAA6B,EAC7B,4BAA4B,GAC7B,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAuB,QAAQ,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EACL,kBAAkB,EAClB,qBAAqB,EACrB,wBAAwB,EACxB,6BAA6B,GAC9B,MAAM,oBAAoB,CAAC;;AAG5B;;GAEG;AAKH,MAAM,OAAO,wBAAwB;IACnC,MAAM,CAAC,UAAU,CACf,EAAE,UAAU,GAAG,EAAE,KAAK,EAAY;QAElC,OAAO;YACL,QAAQ,EAAE,wBAAwB;YAClC,SAAS,EAAE;gBACT,4BAA4B;gBAC5B,EAAE,OAAO,EAAE,sBAAsB,EAAE,QAAQ,EAAE,mBAAmB,EAAE;gBAClE;oBACE,OAAO,EAAE,qBAAqB;oBAC9B,QAAQ,kCACH,6BAA6B,GAC7B,CAAC,UAAU,CAAC,UAAU,IAAI,EAAE,CAAC,CACjC;iBACF;gBACD;oBACE,OAAO,EAAE,wBAAwB;oBACjC,QAAQ,EAAE,UAAU,CAAC,WAAW,IAAI,kBAAkB;iBACvD;gBACD;oBACE,OAAO,EAAE,6BAA6B;oBACtC,QAAQ,EAAE,UAAU,CAAC,gBAAgB;iBACtC;aACF;SACF,CAAC;IACJ,CAAC;;qHA1BU,wBAAwB;sHAAxB,wBAAwB,YAFzB,mBAAmB,EAAE,qBAAqB,aAD1C,mBAAmB,EAAE,qBAAqB;sHAGzC,wBAAwB,YAF1B,CAAC,mBAAmB,EAAE,qBAAqB,CAAC,EAD3C,mBAAmB,EAAE,qBAAqB;2FAGzC,wBAAwB;kBAJpC,QAAQ;mBAAC;oBACR,OAAO,EAAE,CAAC,mBAAmB,EAAE,qBAAqB,CAAC;oBACrD,OAAO,EAAE,CAAC,mBAAmB,EAAE,qBAAqB,CAAC;iBACtD","sourcesContent":["import {\n BaseThemeSharedModule,\n DateParserFormatter,\n DEFAULT_VALIDATION_BLUEPRINTS,\n THEME_SHARED_ROUTE_PROVIDERS,\n} from '@abp/ng.theme.shared';\nimport { ModuleWithProviders, NgModule } from '@angular/core';\nimport { RouterTestingModule } from '@angular/router/testing';\nimport { NgbDateParserFormatter } from '@ng-bootstrap/ng-bootstrap';\nimport {\n defaultMapErrorsFn,\n VALIDATION_BLUEPRINTS,\n VALIDATION_MAP_ERRORS_FN,\n VALIDATION_VALIDATE_ON_SUBMIT,\n} from '@ngx-validate/core';\nimport { Config } from './models/config';\n\n/**\n * ThemeSharedTestingModule is the module that will be used in tests\n */\n@NgModule({\n exports: [RouterTestingModule, BaseThemeSharedModule],\n imports: [RouterTestingModule, BaseThemeSharedModule],\n})\nexport class ThemeSharedTestingModule {\n static withConfig(\n { validation = {} } = {} as Config,\n ): ModuleWithProviders<ThemeSharedTestingModule> {\n return {\n ngModule: ThemeSharedTestingModule,\n providers: [\n THEME_SHARED_ROUTE_PROVIDERS,\n { provide: NgbDateParserFormatter, useClass: DateParserFormatter },\n {\n provide: VALIDATION_BLUEPRINTS,\n useValue: {\n ...DEFAULT_VALIDATION_BLUEPRINTS,\n ...(validation.blueprints || {}),\n },\n },\n {\n provide: VALIDATION_MAP_ERRORS_FN,\n useValue: validation.mapErrorsFn || defaultMapErrorsFn,\n },\n {\n provide: VALIDATION_VALIDATE_ON_SUBMIT,\n useValue: validation.validateOnSubmit,\n },\n ],\n };\n }\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import * as ThemeSharedTesting from './lib/models';
|
|
2
2
|
export * from './lib/theme-shared-testing.module';
|
|
3
3
|
export { ThemeSharedTesting };
|
|
4
|
-
//# sourceMappingURL=
|
|
4
|
+
//# sourceMappingURL=public-api.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public-api.js","sourceRoot":"","sources":["../../../../../packages/theme-shared/testing/src/public-api.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,kBAAkB,MAAM,cAAc,CAAC;AACnD,cAAc,mCAAmC,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,CAAC","sourcesContent":["import * as ThemeSharedTesting from './lib/models';\nexport * from './lib/theme-shared-testing.module';\nexport { ThemeSharedTesting };\n"]}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Generated bundle index. Do not edit.
|
|
3
3
|
*/
|
|
4
|
+
/// <amd-module name="@abp/ng.theme.shared/extensions" />
|
|
4
5
|
export * from './public-api';
|
|
5
|
-
export { AbstractActionsComponent as ɵj } from './lib/components/abstract-actions/abstract-actions.component';
|
|
6
|
-
export { Action as ɵb, ActionData as ɵa, Actions as ɵd, ActionsFactory as ɵc } from './lib/models/actions';
|
|
7
|
-
export { Prop as ɵf, PropData as ɵe, Props as ɵh, PropsFactory as ɵg } from './lib/models/props';
|
|
8
|
-
export { selfFactory as ɵi } from './lib/utils/factory.util';
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { NgbDateStruct, NgbTimeStruct } from '@ng-bootstrap/ng-bootstrap';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class DateTimeAdapter {
|
|
3
4
|
value: NgbDateTimeStruct;
|
|
4
5
|
fromModel(value: string | Date): NgbDateTimeStruct | null;
|
|
5
6
|
toModel(value: NgbDateTimeStruct | null): string;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimeAdapter, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DateTimeAdapter>;
|
|
6
9
|
}
|
|
7
10
|
declare type NgbDateTimeStruct = NgbDateStruct & NgbTimeStruct;
|
|
8
11
|
export {};
|
|
@@ -1,6 +1,9 @@
|
|
|
1
1
|
import { NgbDateAdapter, NgbDateStruct } from '@ng-bootstrap/ng-bootstrap';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class DateAdapter extends NgbDateAdapter<string> {
|
|
3
4
|
fromModel(value: string | Date): NgbDateStruct | null;
|
|
4
5
|
toModel(value: NgbDateStruct | null): string;
|
|
5
6
|
protected dateOf(value: string): Date;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateAdapter, never>;
|
|
8
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DateAdapter>;
|
|
6
9
|
}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { NgbTimeAdapter, NgbTimeStruct } from '@ng-bootstrap/ng-bootstrap';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class TimeAdapter extends NgbTimeAdapter<string> {
|
|
3
4
|
fromModel(value: string | Date): NgbTimeStruct | null;
|
|
4
5
|
toModel(value: NgbTimeStruct | null): string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TimeAdapter, never>;
|
|
7
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<TimeAdapter>;
|
|
5
8
|
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { Injector } from '@angular/core';
|
|
2
2
|
import { ActionData, ActionList } from '../../models/actions';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare abstract class AbstractActionsComponent<L extends ActionList<any>> extends ActionData<InferredRecord<L>> {
|
|
4
5
|
readonly actionList: L;
|
|
5
6
|
readonly getInjected: InferredData<L>['getInjected'];
|
|
6
7
|
readonly record: InferredData<L>['record'];
|
|
7
8
|
constructor(injector: Injector);
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AbstractActionsComponent<any>, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AbstractActionsComponent<any>, never, never, { "record": "record"; }, {}, never>;
|
|
8
11
|
}
|
|
9
12
|
declare type InferredData<L> = ActionData<InferredRecord<L>>;
|
|
10
13
|
declare type InferredRecord<L> = L extends ActionList<infer R> ? R : never;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { ChangeDetectorRef } from '@angular/core';
|
|
2
2
|
import { NgbInputDatepicker, NgbTimepicker } from '@ng-bootstrap/ng-bootstrap';
|
|
3
3
|
import { FormProp } from '../../models/form-props';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class DateTimePickerComponent {
|
|
5
6
|
readonly cdRef: ChangeDetectorRef;
|
|
6
7
|
prop: FormProp;
|
|
@@ -10,4 +11,6 @@ export declare class DateTimePickerComponent {
|
|
|
10
11
|
constructor(cdRef: ChangeDetectorRef);
|
|
11
12
|
setDate(datestr: string): void;
|
|
12
13
|
setTime(datestr: string): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateTimePickerComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateTimePickerComponent, "abp-date-time-picker", ["abpDateTimePicker"], { "prop": "prop"; "meridian": "meridian"; }, {}, never, never>;
|
|
13
16
|
}
|
|
@@ -4,6 +4,7 @@ import { FormGroupDirective, ValidatorFn } from '@angular/forms';
|
|
|
4
4
|
import { Observable } from 'rxjs';
|
|
5
5
|
import { FormProp } from '../../models/form-props';
|
|
6
6
|
import { PropData } from '../../models/props';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class ExtensibleFormPropComponent implements OnChanges, AfterViewInit {
|
|
8
9
|
readonly cdRef: ChangeDetectorRef;
|
|
9
10
|
readonly track: TrackByService;
|
|
@@ -31,4 +32,6 @@ export declare class ExtensibleFormPropComponent implements OnChanges, AfterView
|
|
|
31
32
|
getComponent(prop: FormProp): string;
|
|
32
33
|
getType(prop: FormProp): string;
|
|
33
34
|
ngOnChanges({ prop }: SimpleChanges): void;
|
|
35
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExtensibleFormPropComponent, never>;
|
|
36
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExtensibleFormPropComponent, "abp-extensible-form-prop", never, { "data": "data"; "prop": "prop"; "first": "first"; }, {}, never, never>;
|
|
34
37
|
}
|
|
@@ -4,6 +4,7 @@ import { ControlContainer, FormGroup } from '@angular/forms';
|
|
|
4
4
|
import { FormPropList } from '../../models/form-props';
|
|
5
5
|
import { ExtensionsService } from '../../services/extensions.service';
|
|
6
6
|
import { ExtensibleFormPropComponent } from './extensible-form-prop.component';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class ExtensibleFormComponent<R = any> {
|
|
8
9
|
readonly cdRef: ChangeDetectorRef;
|
|
9
10
|
readonly track: TrackByService;
|
|
@@ -18,4 +19,6 @@ export declare class ExtensibleFormComponent<R = any> {
|
|
|
18
19
|
get form(): FormGroup;
|
|
19
20
|
get extraProperties(): FormGroup;
|
|
20
21
|
constructor(cdRef: ChangeDetectorRef, track: TrackByService, container: ControlContainer, extensions: ExtensionsService, identifier: string);
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExtensibleFormComponent<any>, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExtensibleFormComponent<any>, "abp-extensible-form", ["abpExtensibleForm"], { "selectedRecord": "selectedRecord"; }, {}, never, never>;
|
|
21
24
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { ConfigStateService, ListService } from '@abp/ng.core';
|
|
2
|
+
import { InjectFlags, InjectionToken, Injector, OnChanges, SimpleChanges, TemplateRef, TrackByFunction, Type } from '@angular/core';
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
|
+
import { EntityActionList } from '../../models/entity-actions';
|
|
4
5
|
import { EntityProp, EntityPropList } from '../../models/entity-props';
|
|
5
6
|
import { PropData } from '../../models/props';
|
|
6
|
-
import
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
7
8
|
export declare class ExtensibleTableComponent<R = any> implements OnChanges {
|
|
8
9
|
private locale;
|
|
9
10
|
private config;
|
|
11
|
+
private injector;
|
|
10
12
|
protected _actionsText: string;
|
|
11
13
|
set actionsText(value: string);
|
|
12
14
|
get actionsText(): string;
|
|
@@ -16,15 +18,18 @@ export declare class ExtensibleTableComponent<R = any> implements OnChanges {
|
|
|
16
18
|
set actionsColumnWidth(width: number);
|
|
17
19
|
actionsTemplate: TemplateRef<any>;
|
|
18
20
|
getInjected: <T>(token: Type<T> | InjectionToken<T>, notFoundValue?: T, flags?: InjectFlags) => T;
|
|
21
|
+
hasAtLeastOnePermittedAction: boolean;
|
|
19
22
|
readonly columnWidths: number[];
|
|
20
23
|
readonly propList: EntityPropList<R>;
|
|
21
24
|
readonly actionList: EntityActionList<R>;
|
|
22
25
|
readonly trackByFn: TrackByFunction<EntityProp<R>>;
|
|
23
|
-
hasAtLeastOnePermittedAction: boolean;
|
|
24
26
|
constructor(locale: string, config: ConfigStateService, injector: Injector);
|
|
25
27
|
private setColumnWidths;
|
|
26
28
|
private getDate;
|
|
27
29
|
private getIcon;
|
|
30
|
+
private getEnum;
|
|
28
31
|
getContent(prop: EntityProp<R>, data: PropData): Observable<string>;
|
|
29
32
|
ngOnChanges({ data }: SimpleChanges): void;
|
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExtensibleTableComponent<any>, never>;
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExtensibleTableComponent<any>, "abp-extensible-table", ["abpExtensibleTable"], { "actionsText": "actionsText"; "data": "data"; "list": "list"; "recordsTotal": "recordsTotal"; "actionsColumnWidth": "actionsColumnWidth"; "actionsTemplate": "actionsTemplate"; }, {}, never, never>;
|
|
30
35
|
}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import { Injector, TrackByFunction } from '@angular/core';
|
|
2
2
|
import { EntityAction, EntityActionList } from '../../models/entity-actions';
|
|
3
3
|
import { AbstractActionsComponent } from '../abstract-actions/abstract-actions.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class GridActionsComponent<R = any> extends AbstractActionsComponent<EntityActionList<R>> {
|
|
5
6
|
icon: string;
|
|
6
7
|
readonly index: number;
|
|
7
8
|
text: string;
|
|
8
9
|
readonly trackByFn: TrackByFunction<EntityAction<R>>;
|
|
9
10
|
constructor(injector: Injector);
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GridActionsComponent<any>, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<GridActionsComponent<any>, "abp-grid-actions", ["abpGridActions"], { "icon": "icon"; "index": "index"; "text": "text"; }, {}, never, never>;
|
|
10
13
|
}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import { Injector, TrackByFunction } from '@angular/core';
|
|
2
2
|
import { ToolbarActionList, ToolbarComponent } from '../../models/toolbar-actions';
|
|
3
3
|
import { AbstractActionsComponent } from '../abstract-actions/abstract-actions.component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class PageToolbarComponent<R = any> extends AbstractActionsComponent<ToolbarActionList<R>> {
|
|
5
6
|
private readonly injector;
|
|
6
7
|
readonly trackByFn: TrackByFunction<ToolbarComponent<R>>;
|
|
7
8
|
constructor(injector: Injector);
|
|
8
9
|
createInjector(action: ToolbarComponent<R>): Injector;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageToolbarComponent<any>, never>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageToolbarComponent<any>, "abp-page-toolbar", ["abpPageToolbar"], {}, {}, never, never>;
|
|
9
12
|
}
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
2
2
|
import { NgControl } from '@angular/forms';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class DisabledDirective implements OnChanges {
|
|
4
5
|
private ngControl;
|
|
5
6
|
abpDisabled: boolean;
|
|
6
7
|
constructor(ngControl: NgControl);
|
|
7
8
|
ngOnChanges({ abpDisabled }: SimpleChanges): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DisabledDirective, [{ host: true; }]>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<DisabledDirective, "[abpDisabled]", never, { "abpDisabled": "abpDisabled"; }, {}, never>;
|
|
8
11
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { Injector, OnChanges, OnDestroy, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
2
2
|
import { PropData, PropList } from '../models/props';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
3
4
|
export declare class PropDataDirective<L extends PropList<any>> extends PropData<InferredData<L>> implements OnChanges, OnDestroy {
|
|
4
5
|
private tempRef;
|
|
5
6
|
private vcRef;
|
|
@@ -10,6 +11,8 @@ export declare class PropDataDirective<L extends PropList<any>> extends PropData
|
|
|
10
11
|
constructor(tempRef: TemplateRef<any>, vcRef: ViewContainerRef, injector: Injector);
|
|
11
12
|
ngOnChanges(): void;
|
|
12
13
|
ngOnDestroy(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PropDataDirective<any>, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PropDataDirective<any>, "[abpPropData]", ["abpPropData"], { "propList": "abpPropDataFromList"; "record": "abpPropDataWithRecord"; "index": "abpPropDataAtIndex"; }, {}, never>;
|
|
13
16
|
}
|
|
14
17
|
declare type InferredData<L> = PropData<InferredRecord<L>>;
|
|
15
18
|
declare type InferredRecord<L> = L extends PropList<infer R> ? R : never;
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { Type } from '@angular/core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { O } from 'ts-toolbelt';
|
|
4
|
-
import {
|
|
4
|
+
import { ABP } from '@abp/ng.core';
|
|
5
5
|
import { ActionCallback } from './actions';
|
|
6
|
+
import { Prop, PropCallback, PropContributorCallback, PropContributorCallbacks, PropList, Props, PropsFactory } from './props';
|
|
6
7
|
export declare class EntityPropList<R = any> extends PropList<R, EntityProp<R>> {
|
|
7
8
|
}
|
|
8
9
|
export declare class EntityProps<R = any> extends Props<EntityPropList<R>> {
|
|
@@ -16,11 +17,13 @@ export declare class EntityProp<R = any> extends Prop<R> {
|
|
|
16
17
|
readonly sortable: boolean;
|
|
17
18
|
readonly valueResolver: PropCallback<R, Observable<any>>;
|
|
18
19
|
readonly action: ActionCallback<R>;
|
|
20
|
+
readonly component: Type<any>;
|
|
21
|
+
readonly enumList: Array<ABP.Option<any>>;
|
|
19
22
|
constructor(options: EntityPropOptions<R>);
|
|
20
23
|
static create<R = any>(options: EntityPropOptions<R>): EntityProp<R>;
|
|
21
24
|
static createMany<R = any>(arrayOfOptions: EntityPropOptions<R>[]): EntityProp<R>[];
|
|
22
25
|
}
|
|
23
|
-
export declare type EntityPropOptions<R = any> = O.Optional<O.Writable<EntityProp<R>>, 'permission' | 'visible' | 'displayName' | 'isExtra' | 'columnWidth' | 'sortable' | 'valueResolver' | 'action'>;
|
|
26
|
+
export declare type EntityPropOptions<R = any> = O.Optional<O.Writable<EntityProp<R>>, 'permission' | 'visible' | 'displayName' | 'isExtra' | 'columnWidth' | 'sortable' | 'valueResolver' | 'action' | 'component' | 'enumList'>;
|
|
24
27
|
export declare type EntityPropDefaults<R = any> = Record<string, EntityProp<R>[]>;
|
|
25
28
|
export declare type EntityPropContributorCallback<R = any> = PropContributorCallback<EntityPropList<R>>;
|
|
26
29
|
export declare type EntityPropContributorCallbacks<R = any> = PropContributorCallbacks<EntityPropList<R>>;
|
|
@@ -2,10 +2,13 @@ import { EntityActionsFactory } from '../models/entity-actions';
|
|
|
2
2
|
import { EntityPropsFactory } from '../models/entity-props';
|
|
3
3
|
import { CreateFormPropsFactory, EditFormPropsFactory } from '../models/form-props';
|
|
4
4
|
import { ToolbarActionsFactory } from '../models/toolbar-actions';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class ExtensionsService<R = any> {
|
|
6
7
|
readonly entityActions: EntityActionsFactory<R>;
|
|
7
8
|
readonly toolbarActions: ToolbarActionsFactory<R[]>;
|
|
8
9
|
readonly entityProps: EntityPropsFactory<R>;
|
|
9
10
|
readonly createFormProps: CreateFormPropsFactory<R>;
|
|
10
11
|
readonly editFormProps: EditFormPropsFactory<R>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExtensionsService<any>, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ExtensionsService<any>>;
|
|
11
14
|
}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { InjectionToken } from '@angular/core';
|
|
2
2
|
import { ActionCallback } from '../models/actions';
|
|
3
3
|
import { ExtensionsService } from '../services/extensions.service';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
4
5
|
export declare const EXTENSIONS_IDENTIFIER: InjectionToken<string>;
|
|
5
6
|
export declare type ActionKeys = Extract<'entityActions' | 'toolbarActions', keyof ExtensionsService>;
|
|
6
|
-
export declare const EXTENSIONS_ACTION_TYPE: InjectionToken<
|
|
7
|
+
export declare const EXTENSIONS_ACTION_TYPE: InjectionToken<ActionKeys>;
|
|
7
8
|
export declare const EXTENSIONS_ACTION_DATA: InjectionToken<{
|
|
8
9
|
readonly getInjected: <T>(token: import("@angular/core").Type<T> | InjectionToken<T>, notFoundValue?: T, flags?: import("@angular/core").InjectFlags) => T;
|
|
9
10
|
readonly index?: number;
|
|
10
11
|
readonly record: any;
|
|
11
12
|
}>;
|
|
12
13
|
export declare const EXTENSIONS_ACTION_CALLBACK: InjectionToken<ActionCallback<unknown, any>>;
|
|
14
|
+
export declare const PROP_DATA_STREAM: InjectionToken<Observable<any>>;
|
|
@@ -1,4 +1,23 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./components/date-time-picker/date-time-picker.component";
|
|
3
|
+
import * as i2 from "./components/page-toolbar/page-toolbar.component";
|
|
4
|
+
import * as i3 from "./components/grid-actions/grid-actions.component";
|
|
5
|
+
import * as i4 from "./components/extensible-form/extensible-form-prop.component";
|
|
6
|
+
import * as i5 from "./components/extensible-form/extensible-form.component";
|
|
7
|
+
import * as i6 from "./components/extensible-table/extensible-table.component";
|
|
8
|
+
import * as i7 from "./directives/prop-data.directive";
|
|
9
|
+
import * as i8 from "./directives/disabled.directive";
|
|
10
|
+
import * as i9 from "@abp/ng.core";
|
|
11
|
+
import * as i10 from "@abp/ng.theme.shared";
|
|
12
|
+
import * as i11 from "@ngx-validate/core";
|
|
13
|
+
import * as i12 from "@ng-bootstrap/ng-bootstrap";
|
|
1
14
|
export declare class BaseUiExtensionsModule {
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaseUiExtensionsModule, never>;
|
|
16
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BaseUiExtensionsModule, [typeof i1.DateTimePickerComponent, typeof i2.PageToolbarComponent, typeof i3.GridActionsComponent, typeof i4.ExtensibleFormPropComponent, typeof i5.ExtensibleFormComponent, typeof i6.ExtensibleTableComponent, typeof i7.PropDataDirective, typeof i8.DisabledDirective], [typeof i9.CoreModule, typeof i10.ThemeSharedModule, typeof i11.NgxValidateCoreModule, typeof i12.NgbDatepickerModule, typeof i12.NgbDropdownModule, typeof i12.NgbTimepickerModule, typeof i12.NgbTypeaheadModule], [typeof i1.DateTimePickerComponent, typeof i2.PageToolbarComponent, typeof i3.GridActionsComponent, typeof i5.ExtensibleFormComponent, typeof i6.ExtensibleTableComponent, typeof i7.PropDataDirective, typeof i8.DisabledDirective]>;
|
|
17
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BaseUiExtensionsModule>;
|
|
2
18
|
}
|
|
3
19
|
export declare class UiExtensionsModule {
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UiExtensionsModule, never>;
|
|
21
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<UiExtensionsModule, never, [typeof BaseUiExtensionsModule], [typeof BaseUiExtensionsModule]>;
|
|
22
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<UiExtensionsModule>;
|
|
4
23
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ConfigStateService } from '@abp/ng.core';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { ObjectExtensions } from '../models/object-extensions';
|
|
4
|
-
export declare function getObjectExtensionEntitiesFromStore(configState: ConfigStateService, moduleKey: string): Observable<
|
|
4
|
+
export declare function getObjectExtensionEntitiesFromStore(configState: ConfigStateService, moduleKey: string): Observable<ObjectExtensions.EntityExtensions>;
|
|
5
5
|
export declare function mapEntitiesToContributors<T = any>(configState: ConfigStateService, resource: string): import("rxjs").UnaryFunction<Observable<unknown>, Observable<ObjectExtensions.PropContributors<any>>>;
|
package/extensions/package.json
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
"esm2015": "../esm2015/extensions/abp-ng.theme.shared-extensions.js",
|
|
6
6
|
"fesm2015": "../fesm2015/abp-ng.theme.shared-extensions.js",
|
|
7
7
|
"typings": "abp-ng.theme.shared-extensions.d.ts",
|
|
8
|
-
"metadata": "abp-ng.theme.shared-extensions.metadata.json",
|
|
9
8
|
"sideEffects": false,
|
|
10
9
|
"name": "@abp/ng.theme.shared/extensions"
|
|
11
10
|
}
|