@abp/ng.theme.shared 7.2.2 → 7.3.0-rc.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +129 -2
- package/{esm2020 → esm2022}/abp-ng.theme.shared.mjs +4 -4
- package/{esm2020 → esm2022}/extensions/abp-ng.theme.shared-extensions.mjs +4 -4
- package/esm2022/extensions/lib/adapters/date-time.adapter.mjs +45 -0
- package/esm2022/extensions/lib/adapters/date.adapter.mjs +42 -0
- package/esm2022/extensions/lib/adapters/time.adapter.mjs +37 -0
- package/esm2022/extensions/lib/components/abstract-actions/abstract-actions.component.mjs +26 -0
- package/esm2022/extensions/lib/components/date-time-picker/date-time-picker.component.mjs +110 -0
- package/esm2022/extensions/lib/components/extensible-form/extensible-form-prop.component.mjs +199 -0
- package/esm2022/extensions/lib/components/extensible-form/extensible-form.component.mjs +74 -0
- package/esm2022/extensions/lib/components/extensible-table/extensible-table.component.mjs +137 -0
- package/esm2022/extensions/lib/components/grid-actions/grid-actions.component.mjs +40 -0
- package/esm2022/extensions/lib/components/page-toolbar/page-toolbar.component.mjs +39 -0
- package/{esm2020 → esm2022}/extensions/lib/constants/extra-properties.mjs +1 -1
- package/esm2022/extensions/lib/directives/disabled.directive.mjs +30 -0
- package/esm2022/extensions/lib/directives/prop-data.directive.mjs +42 -0
- package/{esm2020 → esm2022}/extensions/lib/enums/components.mjs +1 -1
- package/{esm2020 → esm2022}/extensions/lib/enums/props.enum.mjs +1 -1
- package/{esm2020 → esm2022}/extensions/lib/models/actions.mjs +46 -46
- package/{esm2020 → esm2022}/extensions/lib/models/entity-actions.mjs +28 -28
- package/esm2022/extensions/lib/models/entity-props.mjs +44 -0
- package/esm2022/extensions/lib/models/form-props.mjs +76 -0
- package/{esm2020 → esm2022}/extensions/lib/models/internal/object-extensions.mjs +2 -2
- package/{esm2020 → esm2022}/extensions/lib/models/object-extensions.mjs +2 -2
- package/esm2022/extensions/lib/models/props.mjs +54 -0
- package/{esm2020 → esm2022}/extensions/lib/models/toolbar-actions.mjs +43 -43
- package/esm2022/extensions/lib/pipes/create-injector.pipe.mjs +37 -0
- package/esm2022/extensions/lib/services/extensions.service.mjs +25 -0
- package/{esm2020 → esm2022}/extensions/lib/tokens/extensible-form-view-provider.token.mjs +2 -2
- package/{esm2020 → esm2022}/extensions/lib/tokens/extensions.token.mjs +11 -11
- package/esm2022/extensions/lib/ui-extensions.module.mjs +100 -0
- package/{esm2020 → esm2022}/extensions/lib/utils/actions.util.mjs +8 -8
- package/{esm2020 → esm2022}/extensions/lib/utils/enum.util.mjs +41 -41
- package/{esm2020 → esm2022}/extensions/lib/utils/factory.util.mjs +3 -3
- package/esm2022/extensions/lib/utils/form-props.util.mjs +51 -0
- package/{esm2020 → esm2022}/extensions/lib/utils/localization.util.mjs +12 -12
- package/{esm2020 → esm2022}/extensions/lib/utils/props.util.mjs +13 -13
- package/esm2022/extensions/lib/utils/state.util.mjs +126 -0
- package/{esm2020 → esm2022}/extensions/lib/utils/typeahead.util.mjs +51 -51
- package/{esm2020 → esm2022}/extensions/lib/utils/validation.util.mjs +10 -10
- package/{esm2020 → esm2022}/extensions/public-api.mjs +30 -30
- package/{esm2020 → esm2022}/lib/animations/bounce.animations.mjs +16 -16
- package/{esm2020 → esm2022}/lib/animations/collapse.animations.mjs +49 -49
- package/{esm2020 → esm2022}/lib/animations/fade.animations.mjs +37 -37
- package/{esm2020 → esm2022}/lib/animations/index.mjs +6 -6
- package/{esm2020 → esm2022}/lib/animations/modal.animations.mjs +10 -10
- package/{esm2020 → esm2022}/lib/animations/slide.animations.mjs +7 -7
- package/{esm2020 → esm2022}/lib/animations/toast.animations.mjs +12 -12
- package/esm2022/lib/components/breadcrumb/breadcrumb.component.mjs +44 -0
- package/esm2022/lib/components/breadcrumb-items/breadcrumb-items.component.mjs +20 -0
- package/esm2022/lib/components/button/button.component.mjs +103 -0
- package/{esm2020 → esm2022}/lib/components/card/card-body.component.mjs +27 -26
- package/esm2022/lib/components/card/card-footer.component.mjs +31 -0
- package/esm2022/lib/components/card/card-header.component.mjs +31 -0
- package/esm2022/lib/components/card/card-header.directive.mjs +20 -0
- package/esm2022/lib/components/card/card-img-top.directive.mjs +20 -0
- package/esm2022/lib/components/card/card-subtitle.directive.mjs +20 -0
- package/esm2022/lib/components/card/card-title.directive.mjs +20 -0
- package/esm2022/lib/components/card/card.component.mjs +24 -0
- package/esm2022/lib/components/card/card.module.mjs +50 -0
- package/{esm2020 → esm2022}/lib/components/card/index.mjs +9 -9
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +89 -0
- package/esm2022/lib/components/confirmation/confirmation.component.mjs +46 -0
- package/esm2022/lib/components/form-input/form-input.component.mjs +95 -0
- package/esm2022/lib/components/http-error-wrapper/http-error-wrapper.component.mjs +60 -0
- package/{esm2020 → esm2022}/lib/components/index.mjs +16 -16
- package/esm2022/lib/components/loader-bar/loader-bar.component.mjs +122 -0
- package/esm2022/lib/components/loading/loading.component.mjs +20 -0
- package/esm2022/lib/components/modal/modal-close.directive.mjs +28 -0
- package/esm2022/lib/components/modal/modal-ref.service.mjs +27 -0
- package/esm2022/lib/components/modal/modal.component.mjs +190 -0
- package/esm2022/lib/components/password/password.component.mjs +39 -0
- package/esm2022/lib/components/toast/toast.component.mjs +56 -0
- package/esm2022/lib/components/toast-container/toast-container.component.mjs +59 -0
- package/{esm2020 → esm2022}/lib/constants/styles.mjs +1 -1
- package/{esm2020 → esm2022}/lib/constants/validation.mjs +19 -19
- package/esm2022/lib/directives/ellipsis.directive.mjs +65 -0
- package/{esm2020 → esm2022}/lib/directives/index.mjs +5 -5
- package/esm2022/lib/directives/loading.directive.mjs +90 -0
- package/esm2022/lib/directives/ngx-datatable-default.directive.mjs +76 -0
- package/esm2022/lib/directives/ngx-datatable-list.directive.mjs +95 -0
- package/esm2022/lib/directives/visible.directive.mjs +63 -0
- package/{esm2020 → esm2022}/lib/enums/form.mjs +5 -5
- package/{esm2020 → esm2022}/lib/enums/index.mjs +2 -2
- package/{esm2020 → esm2022}/lib/enums/route-names.mjs +1 -1
- package/esm2022/lib/handlers/document-dir.handler.mjs +32 -0
- package/esm2022/lib/handlers/error.handler.mjs +294 -0
- package/{esm2020 → esm2022}/lib/handlers/index.mjs +2 -2
- package/{esm2020 → esm2022}/lib/models/common.mjs +1 -1
- package/{esm2020 → esm2022}/lib/models/confirmation.mjs +9 -9
- package/{esm2020 → esm2022}/lib/models/index.mjs +7 -7
- package/{esm2020 → esm2022}/lib/models/nav-item.mjs +5 -5
- package/{esm2020 → esm2022}/lib/models/statistics.mjs +1 -1
- package/{esm2020 → esm2022}/lib/models/toaster.mjs +1 -1
- package/{esm2020 → esm2022}/lib/models/user-menu.mjs +3 -3
- package/{esm2020 → esm2022}/lib/models/validation.mjs +1 -1
- package/{esm2020 → esm2022}/lib/providers/index.mjs +2 -2
- package/{esm2020 → esm2022}/lib/providers/ng-bootstrap-config.provider.mjs +16 -16
- package/{esm2020 → esm2022}/lib/providers/route.provider.mjs +17 -17
- package/{esm2020 → esm2022}/lib/services/abstract-menu.service.mjs +49 -49
- package/esm2022/lib/services/confirmation.service.mjs +69 -0
- package/{esm2020 → esm2022}/lib/services/index.mjs +5 -5
- package/esm2022/lib/services/nav-items.service.mjs +18 -0
- package/esm2022/lib/services/page-alert.service.mjs +29 -0
- package/esm2022/lib/services/toaster.service.mjs +104 -0
- package/esm2022/lib/services/user-menu.service.mjs +18 -0
- package/esm2022/lib/theme-shared.module.mjs +202 -0
- package/{esm2020 → esm2022}/lib/tokens/append-content.token.mjs +10 -10
- package/{esm2020 → esm2022}/lib/tokens/confirmation-icons.token.mjs +10 -10
- package/{esm2020 → esm2022}/lib/tokens/http-error.token.mjs +13 -13
- package/{esm2020 → esm2022}/lib/tokens/index.mjs +4 -4
- package/{esm2020 → esm2022}/lib/tokens/ngx-datatable-messages.token.mjs +7 -7
- package/{esm2020 → esm2022}/lib/tokens/suppress-unsaved-changes-warning.token.mjs +2 -2
- package/esm2022/lib/utils/date-parser-formatter.mjs +59 -0
- package/{esm2020 → esm2022}/lib/utils/index.mjs +2 -2
- package/{esm2020 → esm2022}/lib/utils/validation-utils.mjs +61 -61
- package/{esm2020 → esm2022}/public-api.mjs +15 -15
- package/{esm2020 → esm2022}/testing/abp-ng.theme.shared-testing.mjs +4 -4
- package/{esm2020 → esm2022}/testing/lib/models/config.mjs +1 -1
- package/{esm2020 → esm2022}/testing/lib/models/index.mjs +1 -1
- package/esm2022/testing/lib/theme-shared-testing.module.mjs +47 -0
- package/{esm2020 → esm2022}/testing/public-api.mjs +3 -3
- package/extensions/index.d.ts +5 -5
- package/extensions/lib/adapters/date-time.adapter.d.ts +11 -11
- package/extensions/lib/adapters/date.adapter.d.ts +9 -9
- package/extensions/lib/adapters/time.adapter.d.ts +8 -8
- package/extensions/lib/components/abstract-actions/abstract-actions.component.d.ts +12 -12
- package/extensions/lib/components/date-time-picker/date-time-picker.component.d.ts +16 -16
- package/extensions/lib/components/extensible-form/extensible-form-prop.component.d.ts +43 -43
- package/extensions/lib/components/extensible-form/extensible-form.component.d.ts +25 -25
- package/extensions/lib/components/extensible-table/extensible-table.component.d.ts +38 -38
- package/extensions/lib/components/grid-actions/grid-actions.component.d.ts +13 -13
- package/extensions/lib/components/page-toolbar/page-toolbar.component.d.ts +20 -20
- package/extensions/lib/constants/extra-properties.d.ts +1 -1
- package/extensions/lib/directives/disabled.directive.d.ts +11 -11
- package/extensions/lib/directives/prop-data.directive.d.ts +19 -19
- package/extensions/lib/enums/components.d.ts +3 -3
- package/extensions/lib/enums/props.enum.d.ts +16 -16
- package/extensions/lib/models/actions.d.ts +36 -36
- package/extensions/lib/models/entity-actions.d.ts +22 -22
- package/extensions/lib/models/entity-props.d.ts +30 -29
- package/extensions/lib/models/form-props.d.ts +59 -58
- package/extensions/lib/models/internal/object-extensions.d.ts +86 -85
- package/extensions/lib/models/object-extensions.d.ts +2 -2
- package/extensions/lib/models/props.d.ts +45 -44
- package/extensions/lib/models/toolbar-actions.d.ts +38 -38
- package/extensions/lib/pipes/create-injector.pipe.d.ts +8 -8
- package/extensions/lib/services/extensions.service.d.ts +14 -14
- package/extensions/lib/tokens/extensible-form-view-provider.token.d.ts +5 -5
- package/extensions/lib/tokens/extensions.token.d.ts +20 -24
- package/extensions/lib/ui-extensions.module.d.ts +24 -24
- package/extensions/lib/utils/actions.util.d.ts +7 -7
- package/extensions/lib/utils/enum.util.d.ts +7 -7
- package/extensions/lib/utils/factory.util.d.ts +1 -1
- package/extensions/lib/utils/form-props.util.d.ts +3 -3
- package/extensions/lib/utils/localization.util.d.ts +3 -3
- package/extensions/lib/utils/props.util.d.ts +9 -9
- package/extensions/lib/utils/state.util.d.ts +5 -5
- package/extensions/lib/utils/typeahead.util.d.ts +11 -11
- package/extensions/lib/utils/validation.util.d.ts +3 -3
- package/extensions/public-api.d.ts +30 -30
- package/{fesm2020 → fesm2022}/abp-ng.theme.shared-extensions.mjs +1340 -1331
- package/fesm2022/abp-ng.theme.shared-extensions.mjs.map +1 -0
- package/{fesm2020 → fesm2022}/abp-ng.theme.shared-testing.mjs +40 -40
- package/{fesm2015 → fesm2022}/abp-ng.theme.shared-testing.mjs.map +1 -1
- package/{fesm2020 → fesm2022}/abp-ng.theme.shared.mjs +2292 -2290
- package/fesm2022/abp-ng.theme.shared.mjs.map +1 -0
- package/index.d.ts +5 -5
- package/lib/animations/bounce.animations.d.ts +1 -1
- package/lib/animations/collapse.animations.d.ts +9 -9
- package/lib/animations/fade.animations.d.ts +10 -10
- package/lib/animations/index.d.ts +6 -6
- package/lib/animations/modal.animations.d.ts +2 -2
- package/lib/animations/slide.animations.d.ts +1 -1
- package/lib/animations/toast.animations.d.ts +1 -1
- package/lib/components/breadcrumb/breadcrumb.component.d.ts +16 -16
- package/lib/components/breadcrumb-items/breadcrumb-items.component.d.ts +7 -7
- package/lib/components/button/button.component.d.ts +26 -26
- package/lib/components/card/card-body.component.d.ts +8 -8
- package/lib/components/card/card-footer.component.d.ts +8 -8
- package/lib/components/card/card-header.component.d.ts +8 -8
- package/lib/components/card/card-header.directive.d.ts +6 -6
- package/lib/components/card/card-img-top.directive.d.ts +6 -6
- package/lib/components/card/card-subtitle.directive.d.ts +6 -6
- package/lib/components/card/card-title.directive.d.ts +6 -6
- package/lib/components/card/card.component.d.ts +7 -7
- package/lib/components/card/card.module.d.ts +15 -15
- package/lib/components/card/index.d.ts +9 -9
- package/lib/components/checkbox/checkbox.component.d.ts +18 -18
- package/lib/components/confirmation/confirmation.component.d.ts +19 -19
- package/lib/components/form-input/form-input.component.d.ts +19 -19
- package/lib/components/http-error-wrapper/http-error-wrapper.component.d.ts +27 -27
- package/lib/components/index.d.ts +16 -16
- package/lib/components/loader-bar/loader-bar.component.d.ts +33 -33
- package/lib/components/loading/loading.component.d.ts +5 -5
- package/lib/components/modal/modal-close.directive.d.ts +9 -9
- package/lib/components/modal/modal-ref.service.d.ts +13 -13
- package/lib/components/modal/modal.component.d.ts +50 -50
- package/lib/components/password/password.component.d.ts +12 -12
- package/lib/components/toast/toast.component.d.ts +14 -14
- package/lib/components/toast-container/toast-container.component.d.ts +22 -22
- package/lib/constants/styles.d.ts +2 -2
- package/lib/constants/validation.d.ts +19 -19
- package/lib/directives/ellipsis.directive.d.ts +21 -21
- package/lib/directives/index.d.ts +5 -5
- package/lib/directives/loading.directive.d.ts +25 -25
- package/lib/directives/ngx-datatable-default.directive.d.ts +30 -30
- package/lib/directives/ngx-datatable-list.directive.d.ts +24 -24
- package/lib/directives/visible.directive.d.ts +18 -18
- package/lib/enums/form.d.ts +4 -4
- package/lib/enums/index.d.ts +2 -2
- package/lib/enums/route-names.d.ts +3 -3
- package/lib/handlers/document-dir.handler.d.ts +13 -13
- package/lib/handlers/error.handler.d.ts +83 -83
- package/lib/handlers/index.d.ts +2 -2
- package/lib/models/common.d.ts +21 -21
- package/lib/models/confirmation.d.ts +27 -27
- package/lib/models/index.d.ts +7 -7
- package/lib/models/nav-item.d.ts +13 -13
- package/lib/models/statistics.d.ts +12 -12
- package/lib/models/toaster.d.ts +30 -30
- package/lib/models/user-menu.d.ts +8 -8
- package/lib/models/validation.d.ts +1 -1
- package/lib/providers/index.d.ts +2 -2
- package/lib/providers/ng-bootstrap-config.provider.d.ts +8 -8
- package/lib/providers/route.provider.d.ts +8 -8
- package/lib/services/abstract-menu.service.d.ts +13 -13
- package/lib/services/confirmation.service.d.ts +21 -21
- package/lib/services/index.d.ts +5 -5
- package/lib/services/nav-items.service.d.ts +8 -8
- package/lib/services/page-alert.service.d.ts +18 -18
- package/lib/services/toaster.service.d.ts +60 -60
- package/lib/services/user-menu.service.d.ts +8 -8
- package/lib/theme-shared.module.d.ts +38 -38
- package/lib/tokens/append-content.token.d.ts +2 -2
- package/lib/tokens/confirmation-icons.token.d.ts +11 -11
- package/lib/tokens/http-error.token.d.ts +5 -5
- package/lib/tokens/index.d.ts +4 -4
- package/lib/tokens/ngx-datatable-messages.token.d.ts +12 -12
- package/lib/tokens/suppress-unsaved-changes-warning.token.d.ts +2 -2
- package/lib/utils/date-parser-formatter.d.ts +12 -12
- package/lib/utils/index.d.ts +2 -2
- package/lib/utils/validation-utils.d.ts +5 -5
- package/package.json +28 -24
- package/public-api.d.ts +12 -12
- package/testing/index.d.ts +5 -5
- package/testing/lib/models/config.d.ts +4 -4
- package/testing/lib/models/index.d.ts +1 -1
- package/testing/lib/theme-shared-testing.module.d.ts +14 -14
- package/testing/public-api.d.ts +3 -3
- package/esm2020/extensions/lib/adapters/date-time.adapter.mjs +0 -44
- package/esm2020/extensions/lib/adapters/date.adapter.mjs +0 -41
- package/esm2020/extensions/lib/adapters/time.adapter.mjs +0 -36
- package/esm2020/extensions/lib/components/abstract-actions/abstract-actions.component.mjs +0 -25
- package/esm2020/extensions/lib/components/date-time-picker/date-time-picker.component.mjs +0 -109
- package/esm2020/extensions/lib/components/extensible-form/extensible-form-prop.component.mjs +0 -198
- package/esm2020/extensions/lib/components/extensible-form/extensible-form.component.mjs +0 -73
- package/esm2020/extensions/lib/components/extensible-table/extensible-table.component.mjs +0 -135
- package/esm2020/extensions/lib/components/grid-actions/grid-actions.component.mjs +0 -39
- package/esm2020/extensions/lib/components/page-toolbar/page-toolbar.component.mjs +0 -38
- package/esm2020/extensions/lib/directives/disabled.directive.mjs +0 -29
- package/esm2020/extensions/lib/directives/prop-data.directive.mjs +0 -41
- package/esm2020/extensions/lib/models/entity-props.mjs +0 -43
- package/esm2020/extensions/lib/models/form-props.mjs +0 -75
- package/esm2020/extensions/lib/models/props.mjs +0 -53
- package/esm2020/extensions/lib/pipes/create-injector.pipe.mjs +0 -36
- package/esm2020/extensions/lib/services/extensions.service.mjs +0 -24
- package/esm2020/extensions/lib/ui-extensions.module.mjs +0 -95
- package/esm2020/extensions/lib/utils/form-props.util.mjs +0 -51
- package/esm2020/extensions/lib/utils/state.util.mjs +0 -123
- package/esm2020/lib/components/breadcrumb/breadcrumb.component.mjs +0 -43
- package/esm2020/lib/components/breadcrumb-items/breadcrumb-items.component.mjs +0 -19
- package/esm2020/lib/components/button/button.component.mjs +0 -102
- package/esm2020/lib/components/card/card-footer.component.mjs +0 -30
- package/esm2020/lib/components/card/card-header.component.mjs +0 -30
- package/esm2020/lib/components/card/card-header.directive.mjs +0 -19
- package/esm2020/lib/components/card/card-img-top.directive.mjs +0 -19
- package/esm2020/lib/components/card/card-subtitle.directive.mjs +0 -19
- package/esm2020/lib/components/card/card-title.directive.mjs +0 -19
- package/esm2020/lib/components/card/card.component.mjs +0 -23
- package/esm2020/lib/components/card/card.module.mjs +0 -49
- package/esm2020/lib/components/checkbox/checkbox.component.mjs +0 -88
- package/esm2020/lib/components/confirmation/confirmation.component.mjs +0 -45
- package/esm2020/lib/components/form-input/form-input.component.mjs +0 -94
- package/esm2020/lib/components/http-error-wrapper/http-error-wrapper.component.mjs +0 -59
- package/esm2020/lib/components/loader-bar/loader-bar.component.mjs +0 -121
- package/esm2020/lib/components/loading/loading.component.mjs +0 -19
- package/esm2020/lib/components/modal/modal-close.directive.mjs +0 -27
- package/esm2020/lib/components/modal/modal-ref.service.mjs +0 -26
- package/esm2020/lib/components/modal/modal.component.mjs +0 -189
- package/esm2020/lib/components/password/password.component.mjs +0 -38
- package/esm2020/lib/components/toast/toast.component.mjs +0 -55
- package/esm2020/lib/components/toast-container/toast-container.component.mjs +0 -58
- package/esm2020/lib/directives/ellipsis.directive.mjs +0 -63
- package/esm2020/lib/directives/loading.directive.mjs +0 -89
- package/esm2020/lib/directives/ngx-datatable-default.directive.mjs +0 -75
- package/esm2020/lib/directives/ngx-datatable-list.directive.mjs +0 -94
- package/esm2020/lib/directives/visible.directive.mjs +0 -62
- package/esm2020/lib/handlers/document-dir.handler.mjs +0 -31
- package/esm2020/lib/handlers/error.handler.mjs +0 -291
- package/esm2020/lib/services/confirmation.service.mjs +0 -68
- package/esm2020/lib/services/nav-items.service.mjs +0 -17
- package/esm2020/lib/services/page-alert.service.mjs +0 -28
- package/esm2020/lib/services/toaster.service.mjs +0 -103
- package/esm2020/lib/services/user-menu.service.mjs +0 -17
- package/esm2020/lib/theme-shared.module.mjs +0 -200
- package/esm2020/lib/utils/date-parser-formatter.mjs +0 -58
- package/esm2020/testing/lib/theme-shared-testing.module.mjs +0 -46
- package/fesm2015/abp-ng.theme.shared-extensions.mjs +0 -1460
- package/fesm2015/abp-ng.theme.shared-extensions.mjs.map +0 -1
- package/fesm2015/abp-ng.theme.shared-testing.mjs +0 -54
- package/fesm2015/abp-ng.theme.shared.mjs +0 -2767
- package/fesm2015/abp-ng.theme.shared.mjs.map +0 -1
- package/fesm2020/abp-ng.theme.shared-extensions.mjs.map +0 -1
- package/fesm2020/abp-ng.theme.shared-testing.mjs.map +0 -1
- package/fesm2020/abp-ng.theme.shared.mjs.map +0 -1
|
@@ -1,58 +1,59 @@
|
|
|
1
|
-
import { ABP } from '@abp/ng.core';
|
|
2
|
-
import { Injector, Type } from '@angular/core';
|
|
3
|
-
import { AsyncValidatorFn, ValidatorFn } from '@angular/forms';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { O } from 'ts-toolbelt';
|
|
6
|
-
import { Prop, PropCallback, PropContributorCallback, PropContributorCallbacks, PropData, PropDisplayTextResolver, PropList, PropPredicate, Props, PropsFactory } from './props';
|
|
7
|
-
export declare class FormPropList<R = any> extends PropList<R, FormProp<R>> {
|
|
8
|
-
}
|
|
9
|
-
export declare class FormProps<R = any> extends Props<PropList<R, FormProp<R>>> {
|
|
10
|
-
protected _ctor: Type<FormPropList<R>>;
|
|
11
|
-
}
|
|
12
|
-
export interface FormPropGroup {
|
|
13
|
-
name: string;
|
|
14
|
-
className?: string;
|
|
15
|
-
}
|
|
16
|
-
export declare class GroupedFormPropList<R = any> {
|
|
17
|
-
readonly items: GroupedFormPropItem[];
|
|
18
|
-
addItem(item: FormProp<R>): void;
|
|
19
|
-
}
|
|
20
|
-
export interface GroupedFormPropItem {
|
|
21
|
-
group?: FormPropGroup;
|
|
22
|
-
formPropList: FormPropList;
|
|
23
|
-
}
|
|
24
|
-
export declare class CreateFormPropsFactory<R = any> extends PropsFactory<FormProps<R>> {
|
|
25
|
-
protected _ctor: Type<FormProps<R>>;
|
|
26
|
-
}
|
|
27
|
-
export declare class EditFormPropsFactory<R = any> extends PropsFactory<FormProps<R>> {
|
|
28
|
-
protected _ctor: Type<FormProps<R>>;
|
|
29
|
-
}
|
|
30
|
-
export declare class FormProp<R = any> extends Prop<R> {
|
|
31
|
-
readonly validators: PropCallback<R, ValidatorFn[]>;
|
|
32
|
-
readonly asyncValidators: PropCallback<R, AsyncValidatorFn[]>;
|
|
33
|
-
readonly disabled: PropPredicate<R>;
|
|
34
|
-
readonly readonly: PropPredicate<R>;
|
|
35
|
-
readonly autocomplete: string;
|
|
36
|
-
readonly defaultValue: boolean | number | string | Date;
|
|
37
|
-
readonly options: PropCallback<R, Observable<ABP.Option<any>[]>> | undefined;
|
|
38
|
-
readonly id: string | undefined;
|
|
39
|
-
readonly template?: Type<any>;
|
|
40
|
-
readonly className?: string;
|
|
41
|
-
readonly group?: FormPropGroup | undefined;
|
|
42
|
-
readonly displayTextResolver?: PropDisplayTextResolver<R>;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
static
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
export
|
|
54
|
-
export
|
|
55
|
-
export
|
|
56
|
-
export
|
|
57
|
-
export
|
|
58
|
-
export
|
|
1
|
+
import { ABP } from '@abp/ng.core';
|
|
2
|
+
import { Injector, Type } from '@angular/core';
|
|
3
|
+
import { AsyncValidatorFn, ValidatorFn } from '@angular/forms';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { O } from 'ts-toolbelt';
|
|
6
|
+
import { Prop, PropCallback, PropContributorCallback, PropContributorCallbacks, PropData, PropDisplayTextResolver, PropList, PropPredicate, Props, PropsFactory } from './props';
|
|
7
|
+
export declare class FormPropList<R = any> extends PropList<R, FormProp<R>> {
|
|
8
|
+
}
|
|
9
|
+
export declare class FormProps<R = any> extends Props<PropList<R, FormProp<R>>> {
|
|
10
|
+
protected _ctor: Type<FormPropList<R>>;
|
|
11
|
+
}
|
|
12
|
+
export interface FormPropGroup {
|
|
13
|
+
name: string;
|
|
14
|
+
className?: string;
|
|
15
|
+
}
|
|
16
|
+
export declare class GroupedFormPropList<R = any> {
|
|
17
|
+
readonly items: GroupedFormPropItem[];
|
|
18
|
+
addItem(item: FormProp<R>): void;
|
|
19
|
+
}
|
|
20
|
+
export interface GroupedFormPropItem {
|
|
21
|
+
group?: FormPropGroup;
|
|
22
|
+
formPropList: FormPropList;
|
|
23
|
+
}
|
|
24
|
+
export declare class CreateFormPropsFactory<R = any> extends PropsFactory<FormProps<R>> {
|
|
25
|
+
protected _ctor: Type<FormProps<R>>;
|
|
26
|
+
}
|
|
27
|
+
export declare class EditFormPropsFactory<R = any> extends PropsFactory<FormProps<R>> {
|
|
28
|
+
protected _ctor: Type<FormProps<R>>;
|
|
29
|
+
}
|
|
30
|
+
export declare class FormProp<R = any> extends Prop<R> {
|
|
31
|
+
readonly validators: PropCallback<R, ValidatorFn[]>;
|
|
32
|
+
readonly asyncValidators: PropCallback<R, AsyncValidatorFn[]>;
|
|
33
|
+
readonly disabled: PropPredicate<R>;
|
|
34
|
+
readonly readonly: PropPredicate<R>;
|
|
35
|
+
readonly autocomplete: string;
|
|
36
|
+
readonly defaultValue: boolean | number | string | Date;
|
|
37
|
+
readonly options: PropCallback<R, Observable<ABP.Option<any>[]>> | undefined;
|
|
38
|
+
readonly id: string | undefined;
|
|
39
|
+
readonly template?: Type<any>;
|
|
40
|
+
readonly className?: string;
|
|
41
|
+
readonly group?: FormPropGroup | undefined;
|
|
42
|
+
readonly displayTextResolver?: PropDisplayTextResolver<R>;
|
|
43
|
+
readonly formText?: string;
|
|
44
|
+
constructor(options: FormPropOptions<R>);
|
|
45
|
+
static create<R = any>(options: FormPropOptions<R>): FormProp<R>;
|
|
46
|
+
static createMany<R = any>(arrayOfOptions: FormPropOptions<R>[]): FormProp<R>[];
|
|
47
|
+
}
|
|
48
|
+
export declare class FormPropData<R = any> extends PropData<R> {
|
|
49
|
+
readonly record: R;
|
|
50
|
+
getInjected: PropData<R>['getInjected'];
|
|
51
|
+
constructor(injector: Injector, record: R);
|
|
52
|
+
}
|
|
53
|
+
export type FormPropOptions<R = any> = O.Optional<O.Writable<FormProp<R>>, 'permission' | 'visible' | 'displayName' | 'isExtra' | 'validators' | 'asyncValidators' | 'disabled' | 'readonly' | 'autocomplete' | 'defaultValue' | 'options' | 'id' | 'displayTextResolver' | 'formText'>;
|
|
54
|
+
export type CreateFormPropDefaults<R = any> = Record<string, FormProp<R>[]>;
|
|
55
|
+
export type CreateFormPropContributorCallback<R = any> = PropContributorCallback<FormPropList<R>>;
|
|
56
|
+
export type CreateFormPropContributorCallbacks<R = any> = PropContributorCallbacks<FormPropList<R>>;
|
|
57
|
+
export type EditFormPropDefaults<R = any> = Record<string, FormProp<R>[]>;
|
|
58
|
+
export type EditFormPropContributorCallback<R = any> = PropContributorCallback<FormPropList<R>>;
|
|
59
|
+
export type EditFormPropContributorCallbacks<R = any> = PropContributorCallbacks<FormPropList<R>>;
|
|
@@ -1,85 +1,86 @@
|
|
|
1
|
-
import { ePropType } from '../../enums/props.enum';
|
|
2
|
-
import { EntityPropList } from '../entity-props';
|
|
3
|
-
import { FormPropList } from '../form-props';
|
|
4
|
-
import { PropContributorCallbacks } from '../props';
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export interface EntityExtensionDto {
|
|
8
|
-
properties: EntityExtensionProperties;
|
|
9
|
-
configuration: Record<string, object>;
|
|
10
|
-
}
|
|
11
|
-
export
|
|
12
|
-
export interface ExtensionEnumDto {
|
|
13
|
-
fields: ExtensionEnumFieldDto[];
|
|
14
|
-
localizationResource?: string;
|
|
15
|
-
transformed?: any;
|
|
16
|
-
}
|
|
17
|
-
export interface ExtensionEnumFieldDto {
|
|
18
|
-
name?: string;
|
|
19
|
-
value: any;
|
|
20
|
-
}
|
|
21
|
-
export interface ExtensionPropertyApiCreateDto {
|
|
22
|
-
isAvailable: boolean;
|
|
23
|
-
}
|
|
24
|
-
export interface ExtensionPropertyApiDto {
|
|
25
|
-
onGet: ExtensionPropertyApiGetDto;
|
|
26
|
-
onCreate: ExtensionPropertyApiCreateDto;
|
|
27
|
-
onUpdate: ExtensionPropertyApiUpdateDto;
|
|
28
|
-
}
|
|
29
|
-
export interface ExtensionPropertyApiGetDto {
|
|
30
|
-
isAvailable: boolean;
|
|
31
|
-
}
|
|
32
|
-
export interface ExtensionPropertyApiUpdateDto {
|
|
33
|
-
isAvailable: boolean;
|
|
34
|
-
}
|
|
35
|
-
export interface ExtensionPropertyAttributeDto {
|
|
36
|
-
typeSimple?: string;
|
|
37
|
-
config: Record<string, any>;
|
|
38
|
-
}
|
|
39
|
-
export interface ExtensionPropertyDto {
|
|
40
|
-
type?: string;
|
|
41
|
-
typeSimple?: ePropType;
|
|
42
|
-
displayName: LocalizableStringDto;
|
|
43
|
-
api: ExtensionPropertyApiDto;
|
|
44
|
-
ui: ExtensionPropertyUiDto;
|
|
45
|
-
attributes: ExtensionPropertyAttributeDto[];
|
|
46
|
-
configuration: Record<string, any>;
|
|
47
|
-
defaultValue: any;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
1
|
+
import { ePropType } from '../../enums/props.enum';
|
|
2
|
+
import { EntityPropList } from '../entity-props';
|
|
3
|
+
import { FormPropList } from '../form-props';
|
|
4
|
+
import { PropContributorCallbacks } from '../props';
|
|
5
|
+
export type DisplayNameGeneratorFn = (displayName: LocalizableStringDto, fallback: LocalizableStringDto) => string | undefined;
|
|
6
|
+
export type EntityExtensions = Record<string, EntityExtensionDto>;
|
|
7
|
+
export interface EntityExtensionDto {
|
|
8
|
+
properties: EntityExtensionProperties;
|
|
9
|
+
configuration: Record<string, object>;
|
|
10
|
+
}
|
|
11
|
+
export type EntityExtensionProperties = Record<string, ExtensionPropertyDto>;
|
|
12
|
+
export interface ExtensionEnumDto {
|
|
13
|
+
fields: ExtensionEnumFieldDto[];
|
|
14
|
+
localizationResource?: string;
|
|
15
|
+
transformed?: any;
|
|
16
|
+
}
|
|
17
|
+
export interface ExtensionEnumFieldDto {
|
|
18
|
+
name?: string;
|
|
19
|
+
value: any;
|
|
20
|
+
}
|
|
21
|
+
export interface ExtensionPropertyApiCreateDto {
|
|
22
|
+
isAvailable: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface ExtensionPropertyApiDto {
|
|
25
|
+
onGet: ExtensionPropertyApiGetDto;
|
|
26
|
+
onCreate: ExtensionPropertyApiCreateDto;
|
|
27
|
+
onUpdate: ExtensionPropertyApiUpdateDto;
|
|
28
|
+
}
|
|
29
|
+
export interface ExtensionPropertyApiGetDto {
|
|
30
|
+
isAvailable: boolean;
|
|
31
|
+
}
|
|
32
|
+
export interface ExtensionPropertyApiUpdateDto {
|
|
33
|
+
isAvailable: boolean;
|
|
34
|
+
}
|
|
35
|
+
export interface ExtensionPropertyAttributeDto {
|
|
36
|
+
typeSimple?: string;
|
|
37
|
+
config: Record<string, any>;
|
|
38
|
+
}
|
|
39
|
+
export interface ExtensionPropertyDto {
|
|
40
|
+
type?: string;
|
|
41
|
+
typeSimple?: ePropType;
|
|
42
|
+
displayName: LocalizableStringDto;
|
|
43
|
+
api: ExtensionPropertyApiDto;
|
|
44
|
+
ui: ExtensionPropertyUiDto;
|
|
45
|
+
attributes: ExtensionPropertyAttributeDto[];
|
|
46
|
+
configuration: Record<string, any>;
|
|
47
|
+
defaultValue: any;
|
|
48
|
+
formText?: string;
|
|
49
|
+
}
|
|
50
|
+
export interface ExtensionPropertyUiDto {
|
|
51
|
+
onTable: ExtensionPropertyUiTableDto;
|
|
52
|
+
onCreateForm: ExtensionPropertyUiFormDto;
|
|
53
|
+
onEditForm: ExtensionPropertyUiFormDto;
|
|
54
|
+
lookup?: ExtensionPropertyUiLookupDto;
|
|
55
|
+
}
|
|
56
|
+
export interface ExtensionPropertyUiFormDto {
|
|
57
|
+
isVisible: boolean;
|
|
58
|
+
}
|
|
59
|
+
export interface ExtensionPropertyUiLookupDto {
|
|
60
|
+
url?: string;
|
|
61
|
+
resultListPropertyName?: string;
|
|
62
|
+
displayPropertyName?: string;
|
|
63
|
+
valuePropertyName?: string;
|
|
64
|
+
filterParamName?: string;
|
|
65
|
+
}
|
|
66
|
+
export interface ExtensionPropertyUiTableDto {
|
|
67
|
+
isSortable?: boolean;
|
|
68
|
+
isVisible: boolean;
|
|
69
|
+
}
|
|
70
|
+
export interface LocalizableStringDto {
|
|
71
|
+
name?: string;
|
|
72
|
+
resource?: string;
|
|
73
|
+
}
|
|
74
|
+
export interface ModuleExtensionDto {
|
|
75
|
+
entities: Record<string, EntityExtensionDto>;
|
|
76
|
+
configuration: Record<string, object>;
|
|
77
|
+
}
|
|
78
|
+
export interface ObjectExtensionsDto {
|
|
79
|
+
modules: Record<string, ModuleExtensionDto>;
|
|
80
|
+
enums: Record<string, ExtensionEnumDto>;
|
|
81
|
+
}
|
|
82
|
+
export interface PropContributors<T = any> {
|
|
83
|
+
prop: PropContributorCallbacks<EntityPropList<T>>;
|
|
84
|
+
createForm: PropContributorCallbacks<FormPropList<T>>;
|
|
85
|
+
editForm: PropContributorCallbacks<FormPropList<T>>;
|
|
86
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import * as ObjectExtensions from './internal/object-extensions';
|
|
2
|
-
export { ObjectExtensions };
|
|
1
|
+
import * as ObjectExtensions from './internal/object-extensions';
|
|
2
|
+
export { ObjectExtensions };
|
|
@@ -1,44 +1,45 @@
|
|
|
1
|
-
import { LinkedList } from '@abp/utils';
|
|
2
|
-
import { InjectFlags, InjectionToken, InjectOptions, Type } from '@angular/core';
|
|
3
|
-
import { O } from 'ts-toolbelt';
|
|
4
|
-
import { ePropType } from '../enums/props.enum';
|
|
5
|
-
export declare abstract class PropList<R = any, A = Prop<R>> extends LinkedList<A> {
|
|
6
|
-
}
|
|
7
|
-
export declare abstract class PropData<R = any> {
|
|
8
|
-
abstract getInjected: <T>(token: Type<T> | InjectionToken<T>, notFoundValue?: T, options?: InjectOptions | InjectFlags) => T;
|
|
9
|
-
index?: number;
|
|
10
|
-
abstract record: R;
|
|
11
|
-
get data(): ReadonlyPropData<R>;
|
|
12
|
-
}
|
|
13
|
-
export
|
|
14
|
-
export declare abstract class Prop<R = any> {
|
|
15
|
-
readonly type: ePropType;
|
|
16
|
-
readonly name: string;
|
|
17
|
-
readonly displayName: string;
|
|
18
|
-
readonly permission: string;
|
|
19
|
-
readonly visible: PropPredicate<R>;
|
|
20
|
-
readonly isExtra: boolean;
|
|
21
|
-
readonly template?: Type<any>;
|
|
22
|
-
readonly className?: string;
|
|
23
|
-
readonly
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
export
|
|
44
|
-
export
|
|
1
|
+
import { LinkedList } from '@abp/utils';
|
|
2
|
+
import { InjectFlags, InjectionToken, InjectOptions, Type } from '@angular/core';
|
|
3
|
+
import { O } from 'ts-toolbelt';
|
|
4
|
+
import { ePropType } from '../enums/props.enum';
|
|
5
|
+
export declare abstract class PropList<R = any, A = Prop<R>> extends LinkedList<A> {
|
|
6
|
+
}
|
|
7
|
+
export declare abstract class PropData<R = any> {
|
|
8
|
+
abstract getInjected: <T>(token: Type<T> | InjectionToken<T>, notFoundValue?: T, options?: InjectOptions | InjectFlags) => T;
|
|
9
|
+
index?: number;
|
|
10
|
+
abstract record: R;
|
|
11
|
+
get data(): ReadonlyPropData<R>;
|
|
12
|
+
}
|
|
13
|
+
export type ReadonlyPropData<R = any> = O.Readonly<Omit<PropData<R>, 'data'>>;
|
|
14
|
+
export declare abstract class Prop<R = any> {
|
|
15
|
+
readonly type: ePropType;
|
|
16
|
+
readonly name: string;
|
|
17
|
+
readonly displayName: string;
|
|
18
|
+
readonly permission: string;
|
|
19
|
+
readonly visible: PropPredicate<R>;
|
|
20
|
+
readonly isExtra: boolean;
|
|
21
|
+
readonly template?: Type<any>;
|
|
22
|
+
readonly className?: string;
|
|
23
|
+
readonly formText?: string;
|
|
24
|
+
readonly displayTextResolver?: PropDisplayTextResolver<R>;
|
|
25
|
+
constructor(type: ePropType, name: string, displayName: string, permission: string, visible?: PropPredicate<R>, isExtra?: boolean, template?: Type<any>, className?: string, formText?: string, displayTextResolver?: PropDisplayTextResolver<R>);
|
|
26
|
+
}
|
|
27
|
+
export type PropCallback<T, R = any> = (data: Omit<PropData<T>, 'data'>, auxData?: any) => R;
|
|
28
|
+
export type PropPredicate<T> = (data?: Omit<PropData<T>, 'data'>, auxData?: any) => boolean;
|
|
29
|
+
export type PropDisplayTextResolver<T> = (data?: Omit<PropData<T>, 'data'>) => string;
|
|
30
|
+
export declare abstract class PropsFactory<C extends Props<any>> {
|
|
31
|
+
protected abstract _ctor: Type<C>;
|
|
32
|
+
private contributorCallbacks;
|
|
33
|
+
get(name: string): C;
|
|
34
|
+
}
|
|
35
|
+
export declare abstract class Props<L extends PropList<any, InferredProp<L>>> {
|
|
36
|
+
private readonly callbackList;
|
|
37
|
+
protected abstract _ctor: Type<L>;
|
|
38
|
+
get props(): L;
|
|
39
|
+
constructor(callbackList: PropContributorCallback<L>[]);
|
|
40
|
+
addContributor(contributeCallback: PropContributorCallback<L>): void;
|
|
41
|
+
clearContributors(): void;
|
|
42
|
+
}
|
|
43
|
+
export type PropContributorCallbacks<L extends PropList<any, InferredProp<L>>> = Record<string, PropContributorCallback<L>[]>;
|
|
44
|
+
export type PropContributorCallback<L extends PropList<any, InferredProp<L>>> = (propList: L) => any;
|
|
45
|
+
export type InferredProp<T> = T extends PropList<any, infer U> ? U : T;
|
|
@@ -1,38 +1,38 @@
|
|
|
1
|
-
import { Injector, Type } from '@angular/core';
|
|
2
|
-
import { O } from 'ts-toolbelt';
|
|
3
|
-
import { Action, ActionContributorCallback, ActionContributorCallbacks, ActionData, ActionList, Actions, ActionsFactory, ReadonlyActionData } from './actions';
|
|
4
|
-
export declare class ToolbarActionList<R = any> extends ActionList<R, ToolbarActionDefault<R>> {
|
|
5
|
-
}
|
|
6
|
-
export declare class ToolbarActions<R = any> extends Actions<ToolbarActionList<R>> {
|
|
7
|
-
protected _ctor: Type<ToolbarActionList<R>>;
|
|
8
|
-
}
|
|
9
|
-
export declare class ToolbarActionsFactory<R = any> extends ActionsFactory<ToolbarActions<R>> {
|
|
10
|
-
protected _ctor: Type<ToolbarActions<R>>;
|
|
11
|
-
}
|
|
12
|
-
export declare class ToolbarAction<R = any> extends Action<R> {
|
|
13
|
-
readonly text: string;
|
|
14
|
-
readonly icon: string;
|
|
15
|
-
readonly btnClass?: string;
|
|
16
|
-
constructor(options: ToolbarActionOptions<R>);
|
|
17
|
-
static create<R = any>(options: ToolbarActionOptions<R>): ToolbarAction<R>;
|
|
18
|
-
static createMany<R = any>(arrayOfOptions: ToolbarActionOptions<R>[]): ToolbarAction<R>[];
|
|
19
|
-
}
|
|
20
|
-
export declare class ToolbarComponent<R = any> extends Action<R> {
|
|
21
|
-
readonly component: Type<any>;
|
|
22
|
-
constructor(options: ToolbarComponentOptions<R>);
|
|
23
|
-
static create<R = any>(options: ToolbarComponentOptions<R>): ToolbarComponent<R>;
|
|
24
|
-
static createMany<R = any>(arrayOfOptions: ToolbarComponentOptions<R>[]): ToolbarComponent<R>[];
|
|
25
|
-
}
|
|
26
|
-
export
|
|
27
|
-
export
|
|
28
|
-
export
|
|
29
|
-
export
|
|
30
|
-
export
|
|
31
|
-
export
|
|
32
|
-
export
|
|
33
|
-
export
|
|
34
|
-
export interface HasCreateInjectorPipe<R> {
|
|
35
|
-
getData: () => ReadonlyActionData<R>;
|
|
36
|
-
injector: Injector;
|
|
37
|
-
getInjected: InferredData<ToolbarActionList<R>>['getInjected'];
|
|
38
|
-
}
|
|
1
|
+
import { Injector, Type } from '@angular/core';
|
|
2
|
+
import { O } from 'ts-toolbelt';
|
|
3
|
+
import { Action, ActionContributorCallback, ActionContributorCallbacks, ActionData, ActionList, Actions, ActionsFactory, ReadonlyActionData } from './actions';
|
|
4
|
+
export declare class ToolbarActionList<R = any> extends ActionList<R, ToolbarActionDefault<R>> {
|
|
5
|
+
}
|
|
6
|
+
export declare class ToolbarActions<R = any> extends Actions<ToolbarActionList<R>> {
|
|
7
|
+
protected _ctor: Type<ToolbarActionList<R>>;
|
|
8
|
+
}
|
|
9
|
+
export declare class ToolbarActionsFactory<R = any> extends ActionsFactory<ToolbarActions<R>> {
|
|
10
|
+
protected _ctor: Type<ToolbarActions<R>>;
|
|
11
|
+
}
|
|
12
|
+
export declare class ToolbarAction<R = any> extends Action<R> {
|
|
13
|
+
readonly text: string;
|
|
14
|
+
readonly icon: string;
|
|
15
|
+
readonly btnClass?: string;
|
|
16
|
+
constructor(options: ToolbarActionOptions<R>);
|
|
17
|
+
static create<R = any>(options: ToolbarActionOptions<R>): ToolbarAction<R>;
|
|
18
|
+
static createMany<R = any>(arrayOfOptions: ToolbarActionOptions<R>[]): ToolbarAction<R>[];
|
|
19
|
+
}
|
|
20
|
+
export declare class ToolbarComponent<R = any> extends Action<R> {
|
|
21
|
+
readonly component: Type<any>;
|
|
22
|
+
constructor(options: ToolbarComponentOptions<R>);
|
|
23
|
+
static create<R = any>(options: ToolbarComponentOptions<R>): ToolbarComponent<R>;
|
|
24
|
+
static createMany<R = any>(arrayOfOptions: ToolbarComponentOptions<R>[]): ToolbarComponent<R>[];
|
|
25
|
+
}
|
|
26
|
+
export type ToolbarActionOptions<R = any> = O.Optional<O.Writable<ToolbarAction<R>>, 'permission' | 'visible' | 'icon' | 'btnClass'>;
|
|
27
|
+
export type ToolbarComponentOptions<R = any> = O.Optional<O.Writable<ToolbarComponent<R>>, 'permission' | 'visible' | 'action'>;
|
|
28
|
+
export type ToolbarActionDefault<R = any> = ToolbarAction<R> | ToolbarComponent<R>;
|
|
29
|
+
export type ToolbarActionDefaults<R = any> = Record<string, Array<ToolbarActionDefault<R>>>;
|
|
30
|
+
export type ToolbarActionContributorCallback<R = any> = ActionContributorCallback<ToolbarActionList<R>>;
|
|
31
|
+
export type ToolbarActionContributorCallbacks<R = any> = ActionContributorCallbacks<ToolbarActionList<R>>;
|
|
32
|
+
export type InferredData<L> = ActionData<InferredRecord<L>>;
|
|
33
|
+
export type InferredRecord<L> = L extends ActionList<infer R> ? R : any;
|
|
34
|
+
export interface HasCreateInjectorPipe<R> {
|
|
35
|
+
getData: () => ReadonlyActionData<R>;
|
|
36
|
+
injector: Injector;
|
|
37
|
+
getInjected: InferredData<ToolbarActionList<R>>['getInjected'];
|
|
38
|
+
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Injector, PipeTransform } from '@angular/core';
|
|
2
|
-
import { HasCreateInjectorPipe, ToolbarComponent } from '../models/toolbar-actions';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class CreateInjectorPipe<R> implements PipeTransform {
|
|
5
|
-
transform(_: any, action: ToolbarComponent<R>, context: HasCreateInjectorPipe<R>): Injector;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CreateInjectorPipe<any>, never>;
|
|
7
|
-
static ɵpipe: i0.ɵɵPipeDeclaration<CreateInjectorPipe<any>, "createInjector", false>;
|
|
8
|
-
}
|
|
1
|
+
import { Injector, PipeTransform } from '@angular/core';
|
|
2
|
+
import { HasCreateInjectorPipe, ToolbarComponent } from '../models/toolbar-actions';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CreateInjectorPipe<R> implements PipeTransform {
|
|
5
|
+
transform(_: any, action: ToolbarComponent<R>, context: HasCreateInjectorPipe<R>): Injector;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CreateInjectorPipe<any>, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<CreateInjectorPipe<any>, "createInjector", false>;
|
|
8
|
+
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { EntityActionsFactory } from '../models/entity-actions';
|
|
2
|
-
import { EntityPropsFactory } from '../models/entity-props';
|
|
3
|
-
import { CreateFormPropsFactory, EditFormPropsFactory } from '../models/form-props';
|
|
4
|
-
import { ToolbarActionsFactory } from '../models/toolbar-actions';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export declare class ExtensionsService<R = any> {
|
|
7
|
-
readonly entityActions: EntityActionsFactory<R>;
|
|
8
|
-
readonly toolbarActions: ToolbarActionsFactory<R[]>;
|
|
9
|
-
readonly entityProps: EntityPropsFactory<R>;
|
|
10
|
-
readonly createFormProps: CreateFormPropsFactory<R>;
|
|
11
|
-
readonly editFormProps: EditFormPropsFactory<R>;
|
|
12
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ExtensionsService<any>, never>;
|
|
13
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ExtensionsService<any>>;
|
|
14
|
-
}
|
|
1
|
+
import { EntityActionsFactory } from '../models/entity-actions';
|
|
2
|
+
import { EntityPropsFactory } from '../models/entity-props';
|
|
3
|
+
import { CreateFormPropsFactory, EditFormPropsFactory } from '../models/form-props';
|
|
4
|
+
import { ToolbarActionsFactory } from '../models/toolbar-actions';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ExtensionsService<R = any> {
|
|
7
|
+
readonly entityActions: EntityActionsFactory<R>;
|
|
8
|
+
readonly toolbarActions: ToolbarActionsFactory<R[]>;
|
|
9
|
+
readonly entityProps: EntityPropsFactory<R>;
|
|
10
|
+
readonly createFormProps: CreateFormPropsFactory<R>;
|
|
11
|
+
readonly editFormProps: EditFormPropsFactory<R>;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ExtensionsService<any>, never>;
|
|
13
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ExtensionsService<any>>;
|
|
14
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { ControlContainer, FormGroupDirective } from "@angular/forms";
|
|
2
|
-
export declare const EXTENSIBLE_FORM_VIEW_PROVIDER: {
|
|
3
|
-
provide: typeof ControlContainer;
|
|
4
|
-
useExisting: typeof FormGroupDirective;
|
|
5
|
-
};
|
|
1
|
+
import { ControlContainer, FormGroupDirective } from "@angular/forms";
|
|
2
|
+
export declare const EXTENSIBLE_FORM_VIEW_PROVIDER: {
|
|
3
|
+
provide: typeof ControlContainer;
|
|
4
|
+
useExisting: typeof FormGroupDirective;
|
|
5
|
+
};
|
|
@@ -1,24 +1,20 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { ActionCallback } from '../models/actions';
|
|
3
|
-
import { ExtensionsService } from '../services/extensions.service';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { ePropType } from '../enums/props.enum';
|
|
6
|
-
import { FormProp } from '../models/form-props';
|
|
7
|
-
export declare const EXTENSIONS_IDENTIFIER: InjectionToken<string>;
|
|
8
|
-
export
|
|
9
|
-
export declare const EXTENSIONS_ACTION_TYPE: InjectionToken<ActionKeys>;
|
|
10
|
-
export declare const EXTENSIONS_ACTION_DATA: InjectionToken<
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
export
|
|
17
|
-
declare
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export
|
|
21
|
-
export declare const ENTITY_PROP_TYPE_CLASSES: InjectionToken<Partial<EntityPropTypeClassMap>>;
|
|
22
|
-
export declare const EXTENSIONS_FORM_PROP: InjectionToken<FormProp<any>>;
|
|
23
|
-
export declare const EXTENSIONS_FORM_PROP_DATA: InjectionToken<unknown>;
|
|
24
|
-
export {};
|
|
1
|
+
import { InjectionToken } from '@angular/core';
|
|
2
|
+
import { ActionCallback, ReadonlyActionData as ActionData } from '../models/actions';
|
|
3
|
+
import { ExtensionsService } from '../services/extensions.service';
|
|
4
|
+
import { Observable } from 'rxjs';
|
|
5
|
+
import { ePropType } from '../enums/props.enum';
|
|
6
|
+
import { FormProp } from '../models/form-props';
|
|
7
|
+
export declare const EXTENSIONS_IDENTIFIER: InjectionToken<string>;
|
|
8
|
+
export type ActionKeys = Extract<'entityActions' | 'toolbarActions', keyof ExtensionsService>;
|
|
9
|
+
export declare const EXTENSIONS_ACTION_TYPE: InjectionToken<ActionKeys>;
|
|
10
|
+
export declare const EXTENSIONS_ACTION_DATA: InjectionToken<ActionData>;
|
|
11
|
+
export declare const EXTENSIONS_ACTION_CALLBACK: InjectionToken<ActionCallback<unknown>>;
|
|
12
|
+
export declare const PROP_DATA_STREAM: InjectionToken<Observable<any>>;
|
|
13
|
+
type EntityPropTypeClassMap = {
|
|
14
|
+
[key in ePropType]: string;
|
|
15
|
+
};
|
|
16
|
+
export type EntityPropTypeClass = Partial<EntityPropTypeClassMap>;
|
|
17
|
+
export declare const ENTITY_PROP_TYPE_CLASSES: InjectionToken<Partial<EntityPropTypeClassMap>>;
|
|
18
|
+
export declare const EXTENSIONS_FORM_PROP: InjectionToken<FormProp<any>>;
|
|
19
|
+
export declare const EXTENSIONS_FORM_PROP_DATA: InjectionToken<unknown>;
|
|
20
|
+
export {};
|