@alauda-fe/dynamic-plugin-shared 0.0.1-alpha.0
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 +7 -0
- package/array-form-table/base-string-map-form.component.d.ts +22 -0
- package/array-form-table/form/component.d.ts +106 -0
- package/array-form-table/form/index.d.ts +2 -0
- package/array-form-table/index.d.ts +10 -0
- package/array-form-table/key-value-form/component.d.ts +38 -0
- package/array-form-table/key-value-table/component.d.ts +9 -0
- package/array-form-table/string-array-form/component.d.ts +41 -0
- package/assets/images/abnormal.svg +1 -0
- package/assets/images/dark/disconnected.svg +1 -0
- package/assets/images/dark/license-abnormal.svg +1 -0
- package/assets/images/dark/network-abnormal.svg +1 -0
- package/assets/images/dark/no-data.svg +1 -0
- package/assets/images/dark/no-message.svg +1 -0
- package/assets/images/dark/no-permission.svg +1 -0
- package/assets/images/dark/no_realtime_alarm.svg +1 -0
- package/assets/images/dark/not-deployed.svg +1 -0
- package/assets/images/dark/not-found.svg +1 -0
- package/assets/images/dark/not-supported.svg +1 -0
- package/assets/images/dark/system-abnormal.svg +1 -0
- package/assets/images/light/disconnected.svg +1 -0
- package/assets/images/light/license-abnormal.svg +1 -0
- package/assets/images/light/network-abnormal.svg +1 -0
- package/assets/images/light/no-data.svg +1 -0
- package/assets/images/light/no-message.svg +1 -0
- package/assets/images/light/no-permission.svg +1 -0
- package/assets/images/light/no_realtime_alarm.svg +1 -0
- package/assets/images/light/not-deployed.svg +1 -0
- package/assets/images/light/not-found.svg +1 -0
- package/assets/images/light/not-supported.svg +1 -0
- package/assets/images/light/system-abnormal.svg +1 -0
- package/assets/images/no-data.png +0 -0
- package/async-data/async-data-loader.d.ts +31 -0
- package/async-data/error-page/component.d.ts +30 -0
- package/async-data/index.d.ts +13 -0
- package/async-data/page-state/component.d.ts +21 -0
- package/async-data/types.d.ts +29 -0
- package/code-editor/code-display-dialog/component.d.ts +17 -0
- package/code-editor/code-editor-configs.d.ts +19 -0
- package/code-editor/index.d.ts +10 -0
- package/code-editor/k8s-yaml-display-dialog/component.d.ts +16 -0
- package/code-editor/resource-yaml-display/component.d.ts +21 -0
- package/components/card-section/card-section.component.d.ts +9 -0
- package/components/confirm-delete/confirm-delete.component.d.ts +57 -0
- package/components/confirm-delete/utils.d.ts +25 -0
- package/components/current-time/component.d.ts +14 -0
- package/components/custom-columns-setting/component.d.ts +16 -0
- package/components/custom-columns-setting/index.d.ts +1 -0
- package/components/date-range-picker/component.d.ts +55 -0
- package/components/date-range-picker/index.d.ts +3 -0
- package/components/date-range-picker/type.d.ts +36 -0
- package/components/date-range-picker/util.d.ts +11 -0
- package/components/disabled-container/disabled-container.component.d.ts +21 -0
- package/components/disabled-container/index.d.ts +7 -0
- package/components/field-set/column/component.d.ts +10 -0
- package/components/field-set/group/component.d.ts +6 -0
- package/components/field-set/index.d.ts +7 -0
- package/components/field-set/item/component.d.ts +13 -0
- package/components/foldable-block/component.d.ts +17 -0
- package/components/foldable-item-in-table/component.d.ts +21 -0
- package/components/help-document/component.d.ts +29 -0
- package/components/help-document/directive.d.ts +20 -0
- package/components/help-document/index.d.ts +8 -0
- package/components/help-document/service.d.ts +20 -0
- package/components/index.d.ts +31 -0
- package/components/loading-mask/loading-mask.component.d.ts +13 -0
- package/components/page-guard/component/component.d.ts +40 -0
- package/components/page-guard/component/helper-directives.d.ts +17 -0
- package/components/page-guard/component/page-guard.type.d.ts +86 -0
- package/components/page-guard/index.d.ts +12 -0
- package/components/password-input/component.d.ts +39 -0
- package/components/pod-status/component.d.ts +25 -0
- package/components/pod-status/index.d.ts +3 -0
- package/components/pod-status/status.d.ts +4 -0
- package/components/pod-status/typings.d.ts +16 -0
- package/components/relative-time/component.d.ts +15 -0
- package/components/resource-label/component.d.ts +25 -0
- package/components/resource-multi-select/component.d.ts +41 -0
- package/components/resource-multi-select/util.d.ts +10 -0
- package/components/search-panel/component.d.ts +16 -0
- package/components/search-panel/helper.directive.d.ts +5 -0
- package/components/search-panel/search-item/component.d.ts +7 -0
- package/components/select-prefix-label/directive.d.ts +17 -0
- package/components/status-icon/status-icon.component.d.ts +16 -0
- package/components/tags-label/component.d.ts +56 -0
- package/components/terminating-tag/component.d.ts +7 -0
- package/components/text-ellipsis/component.d.ts +9 -0
- package/components/text-tooltip/directive.d.ts +21 -0
- package/components/text-with-url/component.d.ts +12 -0
- package/components/upload-file/component.d.ts +32 -0
- package/components/zero-state/zero-state.component.d.ts +16 -0
- package/constants/common.d.ts +64 -0
- package/constants/index.d.ts +6 -0
- package/constants/k8s.d.ts +12 -0
- package/constants/patterns.d.ts +124 -0
- package/constants/resource-definitions.d.ts +414 -0
- package/constants/status-icons.d.ts +34 -0
- package/constants/timezones.d.ts +6 -0
- package/directives/aui-code-editor.directive.d.ts +13 -0
- package/directives/click-outside.directive.d.ts +12 -0
- package/directives/declare.directive.d.ts +8 -0
- package/directives/disabled.directive.d.ts +28 -0
- package/directives/effect-directive/coerce-number.directive.d.ts +8 -0
- package/directives/effect-directive/e2e-attribute-binding.directive.d.ts +10 -0
- package/directives/effect-directive/event.directive.d.ts +47 -0
- package/directives/effect-directive/index.d.ts +12 -0
- package/directives/effect-directive/min-max.directive.d.ts +30 -0
- package/directives/effect-directive/trim.directive.d.ts +7 -0
- package/directives/effect-directive/validators.directive.d.ts +12 -0
- package/directives/feature-gate.directive.d.ts +31 -0
- package/directives/index.d.ts +12 -0
- package/directives/last-form-item.directive.d.ts +8 -0
- package/directives/readonly-field.directive.d.ts +39 -0
- package/directives/resize.directive.d.ts +17 -0
- package/directives/scroll-border-observer.directive.d.ts +23 -0
- package/directives/scroll-to-first-invalid.directive.d.ts +24 -0
- package/directives/value-trace.directive.d.ts +27 -0
- package/esm2022/alauda-fe-dynamic-plugin-shared.mjs +5 -0
- package/esm2022/array-form-table/base-string-map-form.component.mjs +92 -0
- package/esm2022/array-form-table/form/component.mjs +266 -0
- package/esm2022/array-form-table/form/index.mjs +12 -0
- package/esm2022/array-form-table/index.mjs +11 -0
- package/esm2022/array-form-table/key-value-form/component.mjs +135 -0
- package/esm2022/array-form-table/key-value-table/component.mjs +24 -0
- package/esm2022/array-form-table/string-array-form/component.mjs +168 -0
- package/esm2022/async-data/async-data-loader.mjs +63 -0
- package/esm2022/async-data/error-page/component.mjs +54 -0
- package/esm2022/async-data/index.mjs +18 -0
- package/esm2022/async-data/page-state/component.mjs +62 -0
- package/esm2022/async-data/types.mjs +6 -0
- package/esm2022/code-editor/code-display-dialog/component.mjs +35 -0
- package/esm2022/code-editor/code-editor-configs.mjs +66 -0
- package/esm2022/code-editor/index.mjs +11 -0
- package/esm2022/code-editor/k8s-yaml-display-dialog/component.mjs +26 -0
- package/esm2022/code-editor/resource-yaml-display/component.mjs +67 -0
- package/esm2022/components/card-section/card-section.component.mjs +24 -0
- package/esm2022/components/confirm-delete/confirm-delete.component.mjs +192 -0
- package/esm2022/components/confirm-delete/utils.mjs +8 -0
- package/esm2022/components/current-time/component.mjs +39 -0
- package/esm2022/components/custom-columns-setting/component.mjs +75 -0
- package/esm2022/components/custom-columns-setting/index.mjs +2 -0
- package/esm2022/components/date-range-picker/component.mjs +215 -0
- package/esm2022/components/date-range-picker/index.mjs +4 -0
- package/esm2022/components/date-range-picker/type.mjs +2 -0
- package/esm2022/components/date-range-picker/util.mjs +57 -0
- package/esm2022/components/disabled-container/disabled-container.component.mjs +81 -0
- package/esm2022/components/disabled-container/index.mjs +8 -0
- package/esm2022/components/field-set/column/component.mjs +25 -0
- package/esm2022/components/field-set/group/component.mjs +16 -0
- package/esm2022/components/field-set/index.mjs +14 -0
- package/esm2022/components/field-set/item/component.mjs +41 -0
- package/esm2022/components/foldable-block/component.mjs +60 -0
- package/esm2022/components/foldable-item-in-table/component.mjs +56 -0
- package/esm2022/components/help-document/component.mjs +69 -0
- package/esm2022/components/help-document/directive.mjs +70 -0
- package/esm2022/components/help-document/index.mjs +9 -0
- package/esm2022/components/help-document/service.mjs +43 -0
- package/esm2022/components/index.mjs +32 -0
- package/esm2022/components/loading-mask/loading-mask.component.mjs +35 -0
- package/esm2022/components/page-guard/component/component.mjs +101 -0
- package/esm2022/components/page-guard/component/helper-directives.mjs +51 -0
- package/esm2022/components/page-guard/component/page-guard.type.mjs +82 -0
- package/esm2022/components/page-guard/index.mjs +19 -0
- package/esm2022/components/password-input/component.mjs +143 -0
- package/esm2022/components/pod-status/component.mjs +49 -0
- package/esm2022/components/pod-status/index.mjs +4 -0
- package/esm2022/components/pod-status/status.mjs +84 -0
- package/esm2022/components/pod-status/typings.mjs +19 -0
- package/esm2022/components/relative-time/component.mjs +58 -0
- package/esm2022/components/resource-label/component.mjs +100 -0
- package/esm2022/components/resource-multi-select/component.mjs +152 -0
- package/esm2022/components/resource-multi-select/util.mjs +24 -0
- package/esm2022/components/search-panel/component.mjs +51 -0
- package/esm2022/components/search-panel/helper.directive.mjs +14 -0
- package/esm2022/components/search-panel/search-item/component.mjs +15 -0
- package/esm2022/components/select-prefix-label/directive.mjs +89 -0
- package/esm2022/components/status-icon/status-icon.component.mjs +56 -0
- package/esm2022/components/tags-label/component.mjs +224 -0
- package/esm2022/components/terminating-tag/component.mjs +16 -0
- package/esm2022/components/text-ellipsis/component.mjs +28 -0
- package/esm2022/components/text-tooltip/directive.mjs +71 -0
- package/esm2022/components/text-with-url/component.mjs +40 -0
- package/esm2022/components/upload-file/component.mjs +95 -0
- package/esm2022/components/zero-state/zero-state.component.mjs +51 -0
- package/esm2022/constants/common.mjs +86 -0
- package/esm2022/constants/index.mjs +7 -0
- package/esm2022/constants/k8s.mjs +13 -0
- package/esm2022/constants/patterns.mjs +142 -0
- package/esm2022/constants/resource-definitions.mjs +424 -0
- package/esm2022/constants/status-icons.mjs +65 -0
- package/esm2022/constants/timezones.mjs +234 -0
- package/esm2022/directives/aui-code-editor.directive.mjs +30 -0
- package/esm2022/directives/click-outside.directive.mjs +49 -0
- package/esm2022/directives/declare.directive.mjs +27 -0
- package/esm2022/directives/disabled.directive.mjs +76 -0
- package/esm2022/directives/effect-directive/coerce-number.directive.mjs +54 -0
- package/esm2022/directives/effect-directive/e2e-attribute-binding.directive.mjs +57 -0
- package/esm2022/directives/effect-directive/event.directive.mjs +129 -0
- package/esm2022/directives/effect-directive/index.mjs +21 -0
- package/esm2022/directives/effect-directive/min-max.directive.mjs +107 -0
- package/esm2022/directives/effect-directive/trim.directive.mjs +40 -0
- package/esm2022/directives/effect-directive/validators.directive.mjs +43 -0
- package/esm2022/directives/feature-gate.directive.mjs +90 -0
- package/esm2022/directives/index.mjs +13 -0
- package/esm2022/directives/last-form-item.directive.mjs +18 -0
- package/esm2022/directives/readonly-field.directive.mjs +145 -0
- package/esm2022/directives/resize.directive.mjs +39 -0
- package/esm2022/directives/scroll-border-observer.directive.mjs +77 -0
- package/esm2022/directives/scroll-to-first-invalid.directive.mjs +126 -0
- package/esm2022/directives/value-trace.directive.mjs +61 -0
- package/esm2022/form/base-form-container.mjs +126 -0
- package/esm2022/form/base-nested-form-control.mjs +190 -0
- package/esm2022/form/errors-mapper/base-errors-mapper.mjs +41 -0
- package/esm2022/form/errors-mapper/default-errors-mapper.service.mjs +65 -0
- package/esm2022/form/errors-mapper/errors-mapper-component/component.mjs +53 -0
- package/esm2022/form/errors-mapper/errors-mapper.directive.mjs +109 -0
- package/esm2022/form/errors-mapper/index.mjs +10 -0
- package/esm2022/form/errors-mapper/types.mjs +2 -0
- package/esm2022/form/index.mjs +6 -0
- package/esm2022/form/utils.mjs +61 -0
- package/esm2022/form/validators/async-function-validator.directive.mjs +49 -0
- package/esm2022/form/validators/dns1123-subdomain.mjs +42 -0
- package/esm2022/form/validators/function-validator.directive.mjs +49 -0
- package/esm2022/form/validators/index.mjs +10 -0
- package/esm2022/form/validators/maxlength-minlength-validator.directive.mjs +71 -0
- package/esm2022/form/validators/not-be-validator.directive.mjs +56 -0
- package/esm2022/form/validators/one-of-validator.directive.mjs +57 -0
- package/esm2022/form/validators/resource-limit.mjs +79 -0
- package/esm2022/form/validators/strong-password/index.mjs +4 -0
- package/esm2022/form/validators/strong-password/strong-password-tooltip/component.mjs +15 -0
- package/esm2022/form/validators/strong-password/strong-password-validator.directive.mjs +171 -0
- package/esm2022/form/validators/strong-password/strong-password-validator.module.mjs +36 -0
- package/esm2022/form/validators/utils.mjs +155 -0
- package/esm2022/index.mjs +15 -0
- package/esm2022/k8s-resource-list/footer/component.mjs +156 -0
- package/esm2022/k8s-resource-list/index.mjs +18 -0
- package/esm2022/k8s-resource-list/k8s-resource-list.mjs +224 -0
- package/esm2022/k8s-resource-list/k8s-resource-paged-list.mjs +174 -0
- package/esm2022/k8s-resource-list/types.mjs +11 -0
- package/esm2022/k8s-resource-list/utils.mjs +84 -0
- package/esm2022/k8s-shared/constants.mjs +53 -0
- package/esm2022/k8s-shared/index.mjs +12 -0
- package/esm2022/k8s-shared/k8s-resource-translate-key.pipe.mjs +31 -0
- package/esm2022/k8s-shared/k8s-shared-util.service.mjs +152 -0
- package/esm2022/k8s-shared/resource-mark/component.mjs +54 -0
- package/esm2022/k8s-shared/resource-mark/util.mjs +137 -0
- package/esm2022/k8s-shared/update-description-dialog/component.mjs +66 -0
- package/esm2022/k8s-shared/update-display-name-dialog/component.mjs +59 -0
- package/esm2022/k8s-shared/update-key-value-dialog/component.mjs +76 -0
- package/esm2022/page-deactivate/deactivate.directive.mjs +50 -0
- package/esm2022/page-deactivate/deactivate.guard.mjs +41 -0
- package/esm2022/page-deactivate/deactivate.service.mjs +78 -0
- package/esm2022/page-deactivate/index.mjs +4 -0
- package/esm2022/pipes/calc.pipe.mjs +21 -0
- package/esm2022/pipes/cron-human-readable.pipe.mjs +30 -0
- package/esm2022/pipes/crontab-next.pipe.mjs +67 -0
- package/esm2022/pipes/duration.pipe.mjs +51 -0
- package/esm2022/pipes/field-not-available.pipe.mjs +25 -0
- package/esm2022/pipes/img-header.pipe.mjs +18 -0
- package/esm2022/pipes/img-theme.pipe.mjs +38 -0
- package/esm2022/pipes/index.mjs +19 -0
- package/esm2022/pipes/keyvalue.pipe.mjs +20 -0
- package/esm2022/pipes/marked.pipe.mjs +18 -0
- package/esm2022/pipes/minimum-format.pipe.mjs +25 -0
- package/esm2022/pipes/page-env.pipe.mjs +69 -0
- package/esm2022/pipes/parse-json-translate.pipe.mjs +28 -0
- package/esm2022/pipes/parse-json.pipe.mjs +22 -0
- package/esm2022/pipes/pure.pipe.mjs +26 -0
- package/esm2022/pipes/safe.pipe.mjs +49 -0
- package/esm2022/pipes/sanitize.pipe.mjs +31 -0
- package/esm2022/pipes/time.pipe.mjs +113 -0
- package/esm2022/pipes/timezone-display.pipe.mjs +21 -0
- package/esm2022/services/form-row-duplicate/form-row-duplicate.service.mjs +280 -0
- package/esm2022/services/index.mjs +4 -0
- package/esm2022/services/on-resize.service.mjs +52 -0
- package/esm2022/services/yaml-util.service.mjs +99 -0
- package/esm2022/types/common.mjs +6 -0
- package/esm2022/types/helpers.mjs +12 -0
- package/esm2022/types/index.mjs +9 -0
- package/esm2022/types/k8s/core.mjs +2 -0
- package/esm2022/types/k8s/crd.mjs +57 -0
- package/esm2022/types/k8s/index.mjs +4 -0
- package/esm2022/types/k8s/raw.mjs +77 -0
- package/esm2022/types/schema.mjs +2 -0
- package/esm2022/utils/browser.mjs +21 -0
- package/esm2022/utils/cache-store.mjs +83 -0
- package/esm2022/utils/color-helpers.mjs +6 -0
- package/esm2022/utils/common.mjs +315 -0
- package/esm2022/utils/cron-util.mjs +44 -0
- package/esm2022/utils/decorators.mjs +137 -0
- package/esm2022/utils/disabled-state.mjs +47 -0
- package/esm2022/utils/format-number.mjs +227 -0
- package/esm2022/utils/index.mjs +24 -0
- package/esm2022/utils/local-storage-constants.mjs +2 -0
- package/esm2022/utils/node.mjs +18 -0
- package/esm2022/utils/observable.mjs +32 -0
- package/esm2022/utils/operators.mjs +38 -0
- package/esm2022/utils/request-pool.mjs +37 -0
- package/esm2022/utils/resources.mjs +66 -0
- package/esm2022/utils/router.mjs +20 -0
- package/esm2022/utils/sort-fn.mjs +7 -0
- package/esm2022/utils/tree.mjs +79 -0
- package/esm2022/utils/unit.mjs +191 -0
- package/esm2022/utils/version.mjs +76 -0
- package/esm2022/utils/with-load-state.mjs +21 -0
- package/esm2022/utils/workload.mjs +183 -0
- package/esm2022/utils/workspace.mjs +59 -0
- package/esm2022/utils/yaml.mjs +54 -0
- package/fesm2022/alauda-fe-dynamic-plugin-shared.mjs +11151 -0
- package/fesm2022/alauda-fe-dynamic-plugin-shared.mjs.map +1 -0
- package/form/base-form-container.d.ts +41 -0
- package/form/base-nested-form-control.d.ts +58 -0
- package/form/errors-mapper/base-errors-mapper.d.ts +13 -0
- package/form/errors-mapper/default-errors-mapper.service.d.ts +10 -0
- package/form/errors-mapper/errors-mapper-component/component.d.ts +19 -0
- package/form/errors-mapper/errors-mapper.directive.d.ts +39 -0
- package/form/errors-mapper/index.d.ts +6 -0
- package/form/errors-mapper/types.d.ts +16 -0
- package/form/index.d.ts +5 -0
- package/form/utils.d.ts +40 -0
- package/form/validators/async-function-validator.directive.d.ts +11 -0
- package/form/validators/dns1123-subdomain.d.ts +28 -0
- package/form/validators/function-validator.directive.d.ts +11 -0
- package/form/validators/index.d.ts +9 -0
- package/form/validators/maxlength-minlength-validator.directive.d.ts +20 -0
- package/form/validators/not-be-validator.directive.d.ts +12 -0
- package/form/validators/one-of-validator.directive.d.ts +12 -0
- package/form/validators/resource-limit.d.ts +17 -0
- package/form/validators/strong-password/index.d.ts +3 -0
- package/form/validators/strong-password/strong-password-tooltip/component.d.ts +6 -0
- package/form/validators/strong-password/strong-password-validator.directive.d.ts +34 -0
- package/form/validators/strong-password/strong-password-validator.module.d.ts +12 -0
- package/form/validators/utils.d.ts +67 -0
- package/index.d.ts +14 -0
- package/k8s-resource-list/footer/component.d.ts +42 -0
- package/k8s-resource-list/index.d.ts +13 -0
- package/k8s-resource-list/k8s-resource-list.d.ts +42 -0
- package/k8s-resource-list/k8s-resource-paged-list.d.ts +61 -0
- package/k8s-resource-list/types.d.ts +70 -0
- package/k8s-resource-list/utils.d.ts +19 -0
- package/k8s-shared/constants.d.ts +7 -0
- package/k8s-shared/index.d.ts +11 -0
- package/k8s-shared/k8s-resource-translate-key.pipe.d.ts +9 -0
- package/k8s-shared/k8s-shared-util.service.d.ts +48 -0
- package/k8s-shared/resource-mark/component.d.ts +16 -0
- package/k8s-shared/resource-mark/util.d.ts +2 -0
- package/k8s-shared/update-description-dialog/component.d.ts +33 -0
- package/k8s-shared/update-display-name-dialog/component.d.ts +27 -0
- package/k8s-shared/update-key-value-dialog/component.d.ts +38 -0
- package/package.json +56 -0
- package/page-deactivate/deactivate.directive.d.ts +18 -0
- package/page-deactivate/deactivate.guard.d.ts +13 -0
- package/page-deactivate/deactivate.service.d.ts +28 -0
- package/page-deactivate/index.d.ts +3 -0
- package/pipes/calc.pipe.d.ts +11 -0
- package/pipes/cron-human-readable.pipe.d.ts +9 -0
- package/pipes/crontab-next.pipe.d.ts +18 -0
- package/pipes/duration.pipe.d.ts +10 -0
- package/pipes/field-not-available.pipe.d.ts +13 -0
- package/pipes/img-header.pipe.d.ts +7 -0
- package/pipes/img-theme.pipe.d.ts +13 -0
- package/pipes/index.d.ts +18 -0
- package/pipes/keyvalue.pipe.d.ts +9 -0
- package/pipes/marked.pipe.d.ts +8 -0
- package/pipes/minimum-format.pipe.d.ts +10 -0
- package/pipes/page-env.pipe.d.ts +34 -0
- package/pipes/parse-json-translate.pipe.d.ts +8 -0
- package/pipes/parse-json.pipe.d.ts +7 -0
- package/pipes/pure.pipe.d.ts +17 -0
- package/pipes/safe.pipe.d.ts +10 -0
- package/pipes/sanitize.pipe.d.ts +10 -0
- package/pipes/time.pipe.d.ts +40 -0
- package/pipes/timezone-display.pipe.d.ts +10 -0
- package/services/form-row-duplicate/form-row-duplicate.service.d.ts +45 -0
- package/services/index.d.ts +3 -0
- package/services/on-resize.service.d.ts +20 -0
- package/services/yaml-util.service.d.ts +20 -0
- package/styles/ansi-color.scss +131 -0
- package/styles/global.scss +904 -0
- package/styles/lib.scss +1 -0
- package/styles/markdown-body.scss +107 -0
- package/styles/mixins.scss +710 -0
- package/styles/var.scss +30 -0
- package/types/common.d.ts +42 -0
- package/types/helpers.d.ts +35 -0
- package/types/index.d.ts +8 -0
- package/types/k8s/core.d.ts +100 -0
- package/types/k8s/crd.d.ts +497 -0
- package/types/k8s/index.d.ts +3 -0
- package/types/k8s/raw.d.ts +860 -0
- package/types/schema.d.ts +14 -0
- package/utils/browser.d.ts +4 -0
- package/utils/cache-store.d.ts +35 -0
- package/utils/color-helpers.d.ts +4 -0
- package/utils/common.d.ts +64 -0
- package/utils/cron-util.d.ts +8 -0
- package/utils/decorators.d.ts +14 -0
- package/utils/disabled-state.d.ts +20 -0
- package/utils/format-number.d.ts +11 -0
- package/utils/index.d.ts +23 -0
- package/utils/local-storage-constants.d.ts +1 -0
- package/utils/node.d.ts +8 -0
- package/utils/observable.d.ts +5 -0
- package/utils/operators.d.ts +22 -0
- package/utils/request-pool.d.ts +12 -0
- package/utils/resources.d.ts +19 -0
- package/utils/router.d.ts +3 -0
- package/utils/sort-fn.d.ts +2 -0
- package/utils/tree.d.ts +16 -0
- package/utils/unit.d.ts +21 -0
- package/utils/version.d.ts +39 -0
- package/utils/with-load-state.d.ts +11 -0
- package/utils/workload.d.ts +66 -0
- package/utils/workspace.d.ts +28 -0
- package/utils/yaml.d.ts +11 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { IEditorConstructionOptions } from '../code-editor-configs';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export interface CodeDisplayDialogData {
|
|
4
|
+
language?: string;
|
|
5
|
+
title?: string;
|
|
6
|
+
ellipsis?: boolean;
|
|
7
|
+
extra?: string;
|
|
8
|
+
code: string;
|
|
9
|
+
}
|
|
10
|
+
export declare class CodeDisplayDialogComponent {
|
|
11
|
+
data: CodeDisplayDialogData;
|
|
12
|
+
codeEditorOptions: IEditorConstructionOptions;
|
|
13
|
+
editorActions: import("@alauda/code-editor").CodeEditorActionsConfig;
|
|
14
|
+
constructor(data: CodeDisplayDialogData);
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CodeDisplayDialogComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CodeDisplayDialogComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @packageDocumentation
|
|
3
|
+
* @module code
|
|
4
|
+
*/
|
|
5
|
+
import { CodeEditorActionsConfig } from '@alauda/code-editor';
|
|
6
|
+
export type IEditorConstructionOptions = import('monaco-editor/esm/vs/editor/editor.api').editor.IEditorConstructionOptions & {
|
|
7
|
+
language?: string;
|
|
8
|
+
tabSize?: number;
|
|
9
|
+
};
|
|
10
|
+
export declare const createActions: CodeEditorActionsConfig;
|
|
11
|
+
export declare const viewActions: CodeEditorActionsConfig;
|
|
12
|
+
export declare const updateActions: CodeEditorActionsConfig;
|
|
13
|
+
export declare const logsActions: CodeEditorActionsConfig;
|
|
14
|
+
export declare const commonOptions: IEditorConstructionOptions;
|
|
15
|
+
export declare const readonlyOptions: IEditorConstructionOptions;
|
|
16
|
+
export declare const yamlReadOptions: IEditorConstructionOptions;
|
|
17
|
+
export declare const yamlWriteOptions: IEditorConstructionOptions;
|
|
18
|
+
export declare const textWriteOptions: IEditorConstructionOptions;
|
|
19
|
+
export declare const logsReadOptions: IEditorConstructionOptions;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [[include:code/README.md]]
|
|
3
|
+
* @module code
|
|
4
|
+
* @preferred
|
|
5
|
+
*/
|
|
6
|
+
/** imports */
|
|
7
|
+
export * from './code-display-dialog/component';
|
|
8
|
+
export * from './code-editor-configs';
|
|
9
|
+
export * from './k8s-yaml-display-dialog/component';
|
|
10
|
+
export * from './resource-yaml-display/component';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { KubernetesResource } from '../../types';
|
|
2
|
+
import { IEditorConstructionOptions } from '../code-editor-configs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export interface K8sYamlDisplayDialogData {
|
|
5
|
+
title?: string;
|
|
6
|
+
ellipsis?: boolean;
|
|
7
|
+
extra?: string;
|
|
8
|
+
resource: KubernetesResource;
|
|
9
|
+
}
|
|
10
|
+
export declare class K8sYamlDisplayDialogComponent {
|
|
11
|
+
data: K8sYamlDisplayDialogData;
|
|
12
|
+
codeEditorOptions: IEditorConstructionOptions;
|
|
13
|
+
constructor(data: K8sYamlDisplayDialogData);
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<K8sYamlDisplayDialogComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<K8sYamlDisplayDialogComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { BehaviorSubject, Observable } from 'rxjs';
|
|
2
|
+
import { YamlUtilService } from '../../services';
|
|
3
|
+
import { Arrayable, KubernetesResource } from '../../types';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class ResourceYamlDisplayComponent<T extends KubernetesResource> {
|
|
6
|
+
private readonly yamlUtil;
|
|
7
|
+
concise$$: BehaviorSubject<boolean>;
|
|
8
|
+
reduce$$: BehaviorSubject<boolean>;
|
|
9
|
+
hasWrapper: boolean;
|
|
10
|
+
conciseEnable: boolean;
|
|
11
|
+
manageFieldActionEnable: boolean;
|
|
12
|
+
resource: Arrayable<T>;
|
|
13
|
+
readonly resource$: Observable<Arrayable<T>>;
|
|
14
|
+
constructor(yamlUtil: YamlUtilService);
|
|
15
|
+
yaml$: Observable<string>;
|
|
16
|
+
editorOptions: import("../code-editor-configs").IEditorConstructionOptions;
|
|
17
|
+
viewActions: import("@alauda/code-editor").CodeEditorActionsConfig;
|
|
18
|
+
conciseChange(value: boolean): void;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceYamlDisplayComponent<any>, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResourceYamlDisplayComponent<any>, "acl-resource-yaml-display", never, { "hasWrapper": { "alias": "hasWrapper"; "required": false; }; "conciseEnable": { "alias": "conciseEnable"; "required": false; }; "manageFieldActionEnable": { "alias": "manageFieldActionEnable"; "required": false; }; "resource": { "alias": "resource"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CardSectionComponent {
|
|
4
|
+
title: string | TemplateRef<unknown>;
|
|
5
|
+
bordered: boolean;
|
|
6
|
+
isTemplateRef: (label: any) => label is TemplateRef<unknown>;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CardSectionComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CardSectionComponent, "acl-card-section", never, { "title": { "alias": "title"; "required": false; }; "bordered": { "alias": "bordered"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { DialogRef, MessageService, NotificationService } from '@alauda/ui';
|
|
2
|
+
import { EventEmitter, OnDestroy, TemplateRef } from '@angular/core';
|
|
3
|
+
import { BehaviorSubject, Subject } from 'rxjs';
|
|
4
|
+
import { ConfirmDeleteData, DeleteResourceApi, DeleteType } from './utils';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class ConfirmDeleteTipDirective {
|
|
7
|
+
templateRef: TemplateRef<any>;
|
|
8
|
+
constructor(templateRef: TemplateRef<any>);
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDeleteTipDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ConfirmDeleteTipDirective, "[aclConfirmDeleteTip]", never, {}, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
12
|
+
export declare class ConfirmDeleteContentDirective {
|
|
13
|
+
templateRef: TemplateRef<any>;
|
|
14
|
+
constructor(templateRef: TemplateRef<any>);
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDeleteContentDirective, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ConfirmDeleteContentDirective, "[aclConfirmDeleteContent]", never, {}, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
18
|
+
export declare class ConfirmDeleteLabelDirective {
|
|
19
|
+
templateRef: TemplateRef<any>;
|
|
20
|
+
constructor(templateRef: TemplateRef<any>);
|
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDeleteLabelDirective, never>;
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ConfirmDeleteLabelDirective, "[aclConfirmDeleteLabel]", never, {}, {}, never, never, true, never>;
|
|
23
|
+
}
|
|
24
|
+
export declare class ConfirmDeleteComponent<P = unknown, R = unknown> implements ConfirmDeleteData<P, R>, OnDestroy {
|
|
25
|
+
private readonly message;
|
|
26
|
+
private readonly notification;
|
|
27
|
+
private readonly dialogRef?;
|
|
28
|
+
data?: ConfirmDeleteData<P, R>;
|
|
29
|
+
context?: unknown;
|
|
30
|
+
type: DeleteType;
|
|
31
|
+
title: string;
|
|
32
|
+
resourceName: string | string[];
|
|
33
|
+
deleteTips?: string;
|
|
34
|
+
confirmTips?: string;
|
|
35
|
+
extraConfirmTips?: string;
|
|
36
|
+
confirmText?: string;
|
|
37
|
+
deleteResourceApi: DeleteResourceApi<P, R>;
|
|
38
|
+
deleteResourceParams?: P;
|
|
39
|
+
deleteSuccessMsg: string;
|
|
40
|
+
deleteFailMsg: string;
|
|
41
|
+
close: EventEmitter<R>;
|
|
42
|
+
deleteTipTemplate: TemplateRef<any>;
|
|
43
|
+
contentTemplate: TemplateRef<any>;
|
|
44
|
+
labelTemplate: TemplateRef<any>;
|
|
45
|
+
inputValue: string;
|
|
46
|
+
inputValue$$: BehaviorSubject<string>;
|
|
47
|
+
deleting$$: BehaviorSubject<boolean>;
|
|
48
|
+
disabled$: import("rxjs").Observable<boolean>;
|
|
49
|
+
destroy$$: Subject<void>;
|
|
50
|
+
constructor(message: MessageService, notification: NotificationService, dialogRef?: DialogRef<ConfirmDeleteComponent<P, R>, R>, data?: ConfirmDeleteData<P, R>);
|
|
51
|
+
ngOnDestroy(): void;
|
|
52
|
+
onConfirm(): void;
|
|
53
|
+
closeDialog(result?: R): void;
|
|
54
|
+
private resolveData;
|
|
55
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDeleteComponent<any, any>, [null, null, { optional: true; }, { optional: true; }]>;
|
|
56
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmDeleteComponent<any, any>, "acl-confirm-delete", never, { "context": { "alias": "context"; "required": false; }; "type": { "alias": "type"; "required": false; }; "title": { "alias": "title"; "required": false; }; "resourceName": { "alias": "resourceName"; "required": false; }; "deleteTips": { "alias": "deleteTips"; "required": false; }; "confirmTips": { "alias": "confirmTips"; "required": false; }; "extraConfirmTips": { "alias": "extraConfirmTips"; "required": false; }; "confirmText": { "alias": "confirmText"; "required": false; }; "deleteResourceApi": { "alias": "deleteResourceApi"; "required": false; }; "deleteResourceParams": { "alias": "deleteResourceParams"; "required": false; }; "deleteSuccessMsg": { "alias": "deleteSuccessMsg"; "required": false; }; "deleteFailMsg": { "alias": "deleteFailMsg"; "required": false; }; }, { "close": "close"; }, ["deleteTipTemplate", "contentTemplate", "labelTemplate"], never, true, never>;
|
|
57
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
import { ValueOf } from 'ts-essentials';
|
|
3
|
+
export declare const DeleteType: {
|
|
4
|
+
readonly DELETE: "delete";
|
|
5
|
+
readonly UNINSTALL: "uninstall";
|
|
6
|
+
readonly QUIT: "quit";
|
|
7
|
+
readonly UNBIND: "unbind";
|
|
8
|
+
readonly UNMOUNT: "unmount";
|
|
9
|
+
};
|
|
10
|
+
export type DeleteType = ValueOf<typeof DeleteType>;
|
|
11
|
+
export type DeleteResourceApi<P, R> = (inputValue?: string, params?: P) => Observable<R> | Promise<R>;
|
|
12
|
+
export interface ConfirmDeleteData<P = unknown, R = unknown> {
|
|
13
|
+
context?: unknown;
|
|
14
|
+
type?: DeleteType;
|
|
15
|
+
title: string;
|
|
16
|
+
resourceName: string | string[];
|
|
17
|
+
deleteTips?: string;
|
|
18
|
+
confirmTips?: string;
|
|
19
|
+
extraConfirmTips?: string;
|
|
20
|
+
deleteResourceApi: DeleteResourceApi<P, R>;
|
|
21
|
+
deleteResourceParams?: P;
|
|
22
|
+
deleteSuccessMsg?: string;
|
|
23
|
+
deleteFailMsg?: string;
|
|
24
|
+
confirmText?: string;
|
|
25
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { TimeService } from '@alauda-fe/dynamic-plugin-sdk';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CurrentTimeComponent {
|
|
5
|
+
private readonly time;
|
|
6
|
+
utc: boolean;
|
|
7
|
+
utc$: Observable<boolean>;
|
|
8
|
+
format: string;
|
|
9
|
+
format$: Observable<string>;
|
|
10
|
+
time$: Observable<string>;
|
|
11
|
+
constructor(time: TimeService);
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CurrentTimeComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<CurrentTimeComponent, "acl-current-time", never, { "utc": { "alias": "utc"; "required": false; }; "format": { "alias": "format"; "required": false; }; }, {}, never, never, true, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventEmitter, OnInit } from '@angular/core';
|
|
2
|
+
import { StringMap } from '../../types';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TableCustomColumnsComponent implements OnInit {
|
|
5
|
+
options: string[];
|
|
6
|
+
ignoreOptions: string[];
|
|
7
|
+
columns?: string[];
|
|
8
|
+
marginLeft: string;
|
|
9
|
+
id: string;
|
|
10
|
+
columnsChange: EventEmitter<string[]>;
|
|
11
|
+
storage: StringMap;
|
|
12
|
+
ngOnInit(): void;
|
|
13
|
+
selectedChanged(event: string[]): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TableCustomColumnsComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableCustomColumnsComponent, "acl-table-column-setting", never, { "options": { "alias": "options"; "required": false; }; "ignoreOptions": { "alias": "ignoreOptions"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "marginLeft": { "alias": "marginLeft"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, { "columnsChange": "columnsChange"; }, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './component';
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
import { DateNavRange, TooltipDirective, DisabledTimeFn } from '@alauda/ui';
|
|
2
|
+
import { TranslateService } from '@alauda-fe/dynamic-plugin-sdk';
|
|
3
|
+
import { ChangeDetectorRef, OnInit } from '@angular/core';
|
|
4
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
+
import { Dayjs } from 'dayjs';
|
|
6
|
+
import { Options, PickerTimeRange } from './type';
|
|
7
|
+
import * as i0 from "@angular/core";
|
|
8
|
+
export declare class DateRangePickerComponent implements OnInit, ControlValueAccessor {
|
|
9
|
+
readonly translate: TranslateService;
|
|
10
|
+
private readonly cdr;
|
|
11
|
+
options: Options;
|
|
12
|
+
format: string;
|
|
13
|
+
mode: string;
|
|
14
|
+
tagActive: boolean;
|
|
15
|
+
customInputWidth: string;
|
|
16
|
+
enableDisableTime: boolean;
|
|
17
|
+
tip: TooltipDirective;
|
|
18
|
+
rangeValue: Dayjs[];
|
|
19
|
+
get isCustom(): boolean;
|
|
20
|
+
get ranges(): PickerTimeRange[];
|
|
21
|
+
finalOptions: Options;
|
|
22
|
+
CUSTOM: string;
|
|
23
|
+
selectedRange: PickerTimeRange;
|
|
24
|
+
CUSTOM_RANGE: PickerTimeRange;
|
|
25
|
+
value: PickerTimeRange;
|
|
26
|
+
inputWidth: string;
|
|
27
|
+
private onChange;
|
|
28
|
+
onBlur: (value: PickerTimeRange) => void;
|
|
29
|
+
constructor(translate: TranslateService, cdr: ChangeDetectorRef);
|
|
30
|
+
writeValue(obj: PickerTimeRange): void;
|
|
31
|
+
registerOnChange(fn: () => void): void;
|
|
32
|
+
registerOnTouched(fn: () => void): void;
|
|
33
|
+
ngOnInit(): void;
|
|
34
|
+
cancel(): void;
|
|
35
|
+
submitRange(range: PickerTimeRange, rangeValue?: Dayjs[]): void;
|
|
36
|
+
setInputWidth(label: string): void;
|
|
37
|
+
selectRange(range: PickerTimeRange): void;
|
|
38
|
+
formatValue(value: PickerTimeRange, _locale: string): string;
|
|
39
|
+
formatCustomValue(value: Dayjs[]): string;
|
|
40
|
+
getDisabledDate: (options: Options) => (date: Dayjs, navType: DateNavRange, startDate: Dayjs) => boolean;
|
|
41
|
+
getMinMaxDate: (startDate?: Dayjs) => {
|
|
42
|
+
minValue: number;
|
|
43
|
+
maxValue: number;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* 禁用时间存在 bug 具体查看 https://jira.alauda.cn/browse/AIT-52471 描述
|
|
47
|
+
* 可通过 enableDisableTime 开启 默认关闭,如果选择的 end 比 start 会对调
|
|
48
|
+
*/
|
|
49
|
+
disabledTime: () => {
|
|
50
|
+
left: DisabledTimeFn;
|
|
51
|
+
right: DisabledTimeFn;
|
|
52
|
+
};
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DateRangePickerComponent, never>;
|
|
54
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DateRangePickerComponent, "acl-date-range-picker", never, { "options": { "alias": "options"; "required": false; }; "format": { "alias": "format"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "tagActive": { "alias": "tagActive"; "required": false; }; "customInputWidth": { "alias": "customInputWidth"; "required": false; }; "enableDisableTime": { "alias": "enableDisableTime"; "required": false; }; }, {}, never, never, true, never>;
|
|
55
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { Dayjs } from 'dayjs';
|
|
2
|
+
export interface DateRangePickerModel {
|
|
3
|
+
label: string;
|
|
4
|
+
start: () => Dayjs;
|
|
5
|
+
end: () => Dayjs;
|
|
6
|
+
}
|
|
7
|
+
/**
|
|
8
|
+
* @description 除非显示的将 Options.timePicker 置为 false, 否则默认表示 timePicker 为 true (即展示日期范围选择)
|
|
9
|
+
*/
|
|
10
|
+
export interface Options {
|
|
11
|
+
timeRange?: PickerTimeRange[];
|
|
12
|
+
maxDate?: Dayjs | ((startDate: Dayjs) => Dayjs);
|
|
13
|
+
minDate?: Dayjs | ((startDate: Dayjs) => Dayjs);
|
|
14
|
+
startDate?: Dayjs;
|
|
15
|
+
endDate?: Dayjs;
|
|
16
|
+
cancelRange?: boolean;
|
|
17
|
+
widthAdaptive?: boolean;
|
|
18
|
+
locale?: DatePickerLocale;
|
|
19
|
+
timePicker?: boolean;
|
|
20
|
+
showCustom?: boolean;
|
|
21
|
+
}
|
|
22
|
+
export interface PickerTimeRange {
|
|
23
|
+
label: string;
|
|
24
|
+
display?: string;
|
|
25
|
+
displayCtx?: any;
|
|
26
|
+
diff?: `${number}${DiffTimeUnit}`;
|
|
27
|
+
start?: () => Dayjs;
|
|
28
|
+
end?: () => Dayjs;
|
|
29
|
+
step?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface DatePickerLocale {
|
|
32
|
+
format: string;
|
|
33
|
+
separator: string;
|
|
34
|
+
firstDay: number;
|
|
35
|
+
}
|
|
36
|
+
export type DiffTimeUnit = 'ms' | '' | 's' | 'm' | 'h' | 'd' | 'w';
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import dayjs, { ConfigType, ManipulateType } from 'dayjs';
|
|
2
|
+
import { Options, PickerTimeRange } from './type';
|
|
3
|
+
export declare const CUSTOM = "custom";
|
|
4
|
+
export declare const CUSTOM_RANGE: PickerTimeRange;
|
|
5
|
+
export declare const getPickerTimeRanges: (value: number, unit: ManipulateType) => {
|
|
6
|
+
start: () => dayjs.Dayjs;
|
|
7
|
+
end: () => dayjs.Dayjs;
|
|
8
|
+
};
|
|
9
|
+
export declare const DEFAULT_OPTIONS: Options;
|
|
10
|
+
export declare const CHART_PICKER_TIME_RANGES: PickerTimeRange[];
|
|
11
|
+
export declare const dateValueOf: (date: ConfigType) => number;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, OnDestroy, TemplateRef } from '@angular/core';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class DisabledContainerComponent implements AfterViewInit, OnDestroy {
|
|
5
|
+
private readonly elementRef;
|
|
6
|
+
tooltip: string | TemplateRef<unknown>;
|
|
7
|
+
tooltipPosition: string;
|
|
8
|
+
tooltipType: string;
|
|
9
|
+
isAllowed: boolean;
|
|
10
|
+
isDisabled: boolean;
|
|
11
|
+
readonly isAllowed$: Observable<boolean>;
|
|
12
|
+
readonly isDisabled$: Observable<boolean>;
|
|
13
|
+
readonly tooltip$: Observable<string | TemplateRef<unknown>>;
|
|
14
|
+
private disabledSubscription;
|
|
15
|
+
constructor(elementRef: ElementRef<HTMLElement>);
|
|
16
|
+
ngAfterViewInit(): void;
|
|
17
|
+
ngOnDestroy(): void;
|
|
18
|
+
private setButtonStatus;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DisabledContainerComponent, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DisabledContainerComponent, "acl-disabled-container", never, { "tooltip": { "alias": "tooltip"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; "tooltipType": { "alias": "tooltipType"; "required": false; }; "isAllowed": { "alias": "isAllowed"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FieldSetColumnGroupComponent {
|
|
3
|
+
labelNotBold: boolean;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FieldSetColumnGroupComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldSetColumnGroupComponent, "acl-field-set-column-group", never, { "labelNotBold": { "alias": "labelNotBold"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
6
|
+
}
|
|
7
|
+
export declare class FieldSetColumnComponent {
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FieldSetColumnComponent, never>;
|
|
9
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldSetColumnComponent, "acl-field-set-column", never, {}, {}, never, ["*"], true, never>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FieldSetGroupComponent {
|
|
3
|
+
labelNotBold: boolean;
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FieldSetGroupComponent, never>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldSetGroupComponent, "acl-field-set-group", never, { "labelNotBold": { "alias": "labelNotBold"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
6
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FieldSetColumnComponent, FieldSetColumnGroupComponent } from './column/component';
|
|
2
|
+
import { FieldSetGroupComponent } from './group/component';
|
|
3
|
+
import { FieldSetItemActionDirective, FieldSetItemComponent } from './item/component';
|
|
4
|
+
export declare const FIELDSET_GROUP_COMPONENTS: readonly [typeof FieldSetItemActionDirective, typeof FieldSetItemComponent, typeof FieldSetGroupComponent, typeof FieldSetColumnComponent, typeof FieldSetColumnGroupComponent];
|
|
5
|
+
export { FieldSetItemActionDirective, FieldSetItemComponent, } from './item/component';
|
|
6
|
+
export { FieldSetGroupComponent } from './group/component';
|
|
7
|
+
export { FieldSetColumnComponent, FieldSetColumnGroupComponent, } from './column/component';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class FieldSetItemComponent {
|
|
3
|
+
allowFullWidth: boolean;
|
|
4
|
+
allowOverflow: boolean;
|
|
5
|
+
allowWrap: boolean;
|
|
6
|
+
get align(): "flex-start" | "center";
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FieldSetItemComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FieldSetItemComponent, "acl-field-set-item", never, { "allowFullWidth": { "alias": "allowFullWidth"; "required": false; }; "allowOverflow": { "alias": "allowOverflow"; "required": false; }; "allowWrap": { "alias": "allowWrap"; "required": false; }; }, {}, never, ["label", "*", "[aclFieldSetItemAction]"], true, never>;
|
|
9
|
+
}
|
|
10
|
+
export declare class FieldSetItemActionDirective {
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FieldSetItemActionDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FieldSetItemActionDirective, "[aclFieldSetItemAction]", never, {}, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventEmitter, TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class FoldableBlockComponent {
|
|
4
|
+
hint: string;
|
|
5
|
+
collapseHint: string;
|
|
6
|
+
hiddenButton: boolean;
|
|
7
|
+
expandHint: string;
|
|
8
|
+
folded: boolean;
|
|
9
|
+
isDisabled: boolean;
|
|
10
|
+
tooltip: string;
|
|
11
|
+
padding: boolean;
|
|
12
|
+
foldedChange: EventEmitter<boolean>;
|
|
13
|
+
foldedContent: TemplateRef<unknown>;
|
|
14
|
+
toggleFoldable: () => void;
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FoldableBlockComponent, never>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FoldableBlockComponent, "acl-foldable-block", never, { "hint": { "alias": "hint"; "required": false; }; "collapseHint": { "alias": "collapseHint"; "required": false; }; "hiddenButton": { "alias": "hiddenButton"; "required": false; }; "expandHint": { "alias": "expandHint"; "required": false; }; "folded": { "alias": "folded"; "required": false; }; "isDisabled": { "alias": "isDisabled"; "required": false; }; "tooltip": { "alias": "tooltip"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; }, { "foldedChange": "foldedChange"; }, ["foldedContent"], ["*"], true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TranslateService } from '@alauda-fe/dynamic-plugin-sdk';
|
|
2
|
+
import { TemplateRef } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FoldableItemInTableComponent<T> {
|
|
5
|
+
readonly translate: TranslateService;
|
|
6
|
+
hint: string;
|
|
7
|
+
itemTpl: TemplateRef<unknown>;
|
|
8
|
+
itemTitle: (item: T, _locale: string, ..._args: unknown[]) => string;
|
|
9
|
+
folded: boolean;
|
|
10
|
+
items: T[];
|
|
11
|
+
min: number;
|
|
12
|
+
max: number;
|
|
13
|
+
isTemplateRef: (label: any) => label is TemplateRef<unknown>;
|
|
14
|
+
getItems: (items: T[], folded: boolean) => T[];
|
|
15
|
+
constructor(translate: TranslateService);
|
|
16
|
+
getStyle(max: number): {
|
|
17
|
+
maxHeight: string;
|
|
18
|
+
};
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FoldableItemInTableComponent<any>, never>;
|
|
20
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FoldableItemInTableComponent<any>, "acl-foldable-item-in-table", never, { "hint": { "alias": "hint"; "required": false; }; "itemTpl": { "alias": "itemTpl"; "required": false; }; "itemTitle": { "alias": "itemTitle"; "required": false; }; "folded": { "alias": "folded"; "required": false; }; "items": { "alias": "items"; "required": false; }; "min": { "alias": "min"; "required": false; }; "max": { "alias": "max"; "required": false; }; }, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ChangeDetectorRef, ElementRef, EventEmitter, InjectionToken, OnDestroy } from '@angular/core';
|
|
2
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
|
3
|
+
import { Subject } from 'rxjs';
|
|
4
|
+
import { ResizeEvent } from '../../directives';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare const TOKEN_HELP_DOC_DATA: InjectionToken<unknown>;
|
|
7
|
+
export declare class HelpDocumentComponent implements OnDestroy {
|
|
8
|
+
data: {
|
|
9
|
+
rawUrl: string;
|
|
10
|
+
title: string;
|
|
11
|
+
};
|
|
12
|
+
readonly cdr: ChangeDetectorRef;
|
|
13
|
+
readonly sanitizer: DomSanitizer;
|
|
14
|
+
frame: ElementRef<HTMLFrameElement>;
|
|
15
|
+
overlay: boolean;
|
|
16
|
+
currentHref: string;
|
|
17
|
+
small: boolean;
|
|
18
|
+
destroy$$: Subject<void>;
|
|
19
|
+
close: EventEmitter<void>;
|
|
20
|
+
constructor(data: {
|
|
21
|
+
rawUrl: string;
|
|
22
|
+
title: string;
|
|
23
|
+
}, cdr: ChangeDetectorRef, sanitizer: DomSanitizer);
|
|
24
|
+
onResized({ width }: ResizeEvent): void;
|
|
25
|
+
back(): void;
|
|
26
|
+
ngOnDestroy(): void;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HelpDocumentComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HelpDocumentComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class HelpDocDirective {
|
|
4
|
+
doc: import("@angular/core").InputSignal<string>;
|
|
5
|
+
target: import("@angular/core").InputSignal<"popover" | "blank">;
|
|
6
|
+
private helpDoc;
|
|
7
|
+
private translate;
|
|
8
|
+
onClick(): void;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HelpDocDirective, never>;
|
|
10
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<HelpDocDirective, "[aclHelpDoc]", never, { "doc": { "alias": "aclHelpDoc"; "required": true; "isSignal": true; }; "target": { "alias": "aclHelpDocTarget"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
12
|
+
export declare class HelpDocUrlPipe implements PipeTransform {
|
|
13
|
+
private translate;
|
|
14
|
+
private cdr;
|
|
15
|
+
constructor();
|
|
16
|
+
transform(value: string): string;
|
|
17
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HelpDocUrlPipe, never>;
|
|
18
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<HelpDocUrlPipe, "aclHelpDocUrl", false>;
|
|
19
|
+
}
|
|
20
|
+
export declare function getHelpDocUrl(path: string, lang: string): string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { ComponentPortal, DomPortalOutlet } from '@angular/cdk/portal';
|
|
2
|
+
import { ApplicationRef, ComponentFactoryResolver, Injector } from '@angular/core';
|
|
3
|
+
import { Subscription } from 'rxjs';
|
|
4
|
+
import { HelpDocumentComponent } from './component';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export declare class HelpDocumentService {
|
|
7
|
+
private readonly rootInjector;
|
|
8
|
+
private readonly cfr;
|
|
9
|
+
private readonly appRef;
|
|
10
|
+
constructor(rootInjector: Injector, cfr: ComponentFactoryResolver, appRef: ApplicationRef);
|
|
11
|
+
portalHost: DomPortalOutlet;
|
|
12
|
+
subscription: Subscription;
|
|
13
|
+
portal: ComponentPortal<HelpDocumentComponent>;
|
|
14
|
+
open(context?: {
|
|
15
|
+
title: string;
|
|
16
|
+
rawUrl: string;
|
|
17
|
+
}): void;
|
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HelpDocumentService, never>;
|
|
19
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HelpDocumentService>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export * from './confirm-delete/confirm-delete.component';
|
|
2
|
+
export * from './confirm-delete/utils';
|
|
3
|
+
export * from './field-set';
|
|
4
|
+
export * from './loading-mask/loading-mask.component';
|
|
5
|
+
export * from './select-prefix-label/directive';
|
|
6
|
+
export * from './zero-state/zero-state.component';
|
|
7
|
+
export * from './relative-time/component';
|
|
8
|
+
export * from './foldable-block/component';
|
|
9
|
+
export * from './foldable-item-in-table/component';
|
|
10
|
+
export * from './terminating-tag/component';
|
|
11
|
+
export * from './text-with-url/component';
|
|
12
|
+
export * from './card-section/card-section.component';
|
|
13
|
+
export * from './current-time/component';
|
|
14
|
+
export * from './text-tooltip/directive';
|
|
15
|
+
export * from './date-range-picker';
|
|
16
|
+
export * from './tags-label/component';
|
|
17
|
+
export * from './status-icon/status-icon.component';
|
|
18
|
+
export * from './text-ellipsis/component';
|
|
19
|
+
export * from './password-input/component';
|
|
20
|
+
export { ResourceLabelComponent } from './resource-label/component';
|
|
21
|
+
export { ResourceMultiSelectComponent } from './resource-multi-select/component';
|
|
22
|
+
export { isSelectAll, ALL_VALUE, checkValueExit, } from './resource-multi-select/util';
|
|
23
|
+
export { SearchItemComponent } from './search-panel/search-item/component';
|
|
24
|
+
export { SearchPanelComponent } from './search-panel/component';
|
|
25
|
+
export { SearchItemLabelDirective } from './search-panel/helper.directive';
|
|
26
|
+
export * from './custom-columns-setting';
|
|
27
|
+
export * from './pod-status';
|
|
28
|
+
export * from './disabled-container';
|
|
29
|
+
export * from './upload-file/component';
|
|
30
|
+
export * from './help-document';
|
|
31
|
+
export * from './page-guard';
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
/**
|
|
3
|
+
* A simple loading mask component which will show a spinner
|
|
4
|
+
* when loading attribute is true.
|
|
5
|
+
*/
|
|
6
|
+
export declare class LoadingMaskComponent {
|
|
7
|
+
loading: boolean;
|
|
8
|
+
type: 'module' | 'content';
|
|
9
|
+
text: string;
|
|
10
|
+
get hidden(): boolean;
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoadingMaskComponent, never>;
|
|
12
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LoadingMaskComponent, "acl-loading-mask", never, { "loading": { "alias": "loading"; "required": false; }; "type": { "alias": "type"; "required": false; }; "text": { "alias": "text"; "required": false; }; }, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @packageDocumentation
|
|
3
|
+
* @module page-guard
|
|
4
|
+
*/
|
|
5
|
+
import { ThemeService } from '@alauda/ui';
|
|
6
|
+
import { TemplateRef } from '@angular/core';
|
|
7
|
+
import { Observable } from 'rxjs';
|
|
8
|
+
import { GuardStatus, Reason } from './page-guard.type';
|
|
9
|
+
import * as i0 from "@angular/core";
|
|
10
|
+
export declare class PageGuardComponent {
|
|
11
|
+
private readonly theme;
|
|
12
|
+
top: number | string;
|
|
13
|
+
isFull: boolean;
|
|
14
|
+
noShadow: boolean;
|
|
15
|
+
get allowed(): boolean;
|
|
16
|
+
set allowed(allowed: boolean);
|
|
17
|
+
status: GuardStatus;
|
|
18
|
+
reason: Reason;
|
|
19
|
+
reason$: Observable<Reason>;
|
|
20
|
+
title: string;
|
|
21
|
+
description: string;
|
|
22
|
+
context: 'page' | 'card';
|
|
23
|
+
imageTpl: TemplateRef<unknown>;
|
|
24
|
+
descriptionTpl: TemplateRef<unknown>;
|
|
25
|
+
operation: TemplateRef<unknown>;
|
|
26
|
+
template: TemplateRef<unknown>;
|
|
27
|
+
handlePixel: (value: number | string) => string;
|
|
28
|
+
constructor(theme: ThemeService);
|
|
29
|
+
reasonModel$: Observable<{
|
|
30
|
+
src: string;
|
|
31
|
+
title: string;
|
|
32
|
+
description: string;
|
|
33
|
+
}>;
|
|
34
|
+
reasonSrc$: Observable<string>;
|
|
35
|
+
isNonEmptyString(value: unknown): boolean;
|
|
36
|
+
isUndefined(value: string): boolean;
|
|
37
|
+
isTemplateRef(value: unknown): boolean;
|
|
38
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageGuardComponent, never>;
|
|
39
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PageGuardComponent, "acl-page-guard", never, { "top": { "alias": "top"; "required": false; }; "isFull": { "alias": "isFull"; "required": false; }; "noShadow": { "alias": "noShadow"; "required": false; }; "allowed": { "alias": "allowed"; "required": false; }; "status": { "alias": "status"; "required": false; }; "reason": { "alias": "reason"; "required": false; }; "title": { "alias": "title"; "required": false; }; "description": { "alias": "description"; "required": false; }; "context": { "alias": "context"; "required": false; }; }, {}, ["imageTpl", "descriptionTpl", "operation", "template"], never, true, never>;
|
|
40
|
+
}
|