@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 * as i0 from "@angular/core";
|
|
2
|
+
export declare class PageGuardOperationDirective {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageGuardOperationDirective, never>;
|
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PageGuardOperationDirective, "[aclPageGuardOperation]", never, {}, {}, never, never, true, never>;
|
|
5
|
+
}
|
|
6
|
+
export declare class PageGuardDescriptionDirective {
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageGuardDescriptionDirective, never>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PageGuardDescriptionDirective, "[aclPageGuardDescription]", never, {}, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
10
|
+
export declare class PageGuardImageDirective {
|
|
11
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageGuardImageDirective, never>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PageGuardImageDirective, "[aclPageGuardImage]", never, {}, {}, never, never, true, never>;
|
|
13
|
+
}
|
|
14
|
+
export declare class PageGuardContentDirective {
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PageGuardContentDirective, never>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PageGuardContentDirective, "[aclPageGuardContent]", never, {}, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @packageDocumentation
|
|
3
|
+
* @module page-guard
|
|
4
|
+
*/
|
|
5
|
+
import { ValueOf } from 'ts-essentials';
|
|
6
|
+
export declare enum GuardStatus {
|
|
7
|
+
Pending = "pending",
|
|
8
|
+
Available = "available",
|
|
9
|
+
Unavailable = "unavailable"
|
|
10
|
+
}
|
|
11
|
+
export declare const Reason: {
|
|
12
|
+
readonly NotSupported: "notSupported";
|
|
13
|
+
readonly NoPermission: "noPermission";
|
|
14
|
+
readonly NotDeployed: "notDeployed";
|
|
15
|
+
readonly Abnormal: "abnormal";
|
|
16
|
+
readonly NoData: "noData";
|
|
17
|
+
readonly NoMessage: "noMessage";
|
|
18
|
+
readonly Disconnected: "disconnected";
|
|
19
|
+
readonly LicenseAbnormal: "licenseAbnormal";
|
|
20
|
+
readonly NetworkAbnormal: "networkAbnormal";
|
|
21
|
+
readonly NotFound: "notFound";
|
|
22
|
+
readonly NoAlarm: "noAlarm";
|
|
23
|
+
};
|
|
24
|
+
export type Reason = ValueOf<typeof Reason>;
|
|
25
|
+
export declare const REASON_MAP: {
|
|
26
|
+
notSupported: {
|
|
27
|
+
src: string;
|
|
28
|
+
title: string;
|
|
29
|
+
description: string;
|
|
30
|
+
};
|
|
31
|
+
noPermission: {
|
|
32
|
+
src: string;
|
|
33
|
+
title: string;
|
|
34
|
+
description: string;
|
|
35
|
+
};
|
|
36
|
+
notDeployed: {
|
|
37
|
+
src: string;
|
|
38
|
+
title: string;
|
|
39
|
+
description: string;
|
|
40
|
+
};
|
|
41
|
+
abnormal: {
|
|
42
|
+
src: string;
|
|
43
|
+
title: string;
|
|
44
|
+
description: string;
|
|
45
|
+
};
|
|
46
|
+
noData: {
|
|
47
|
+
src: string;
|
|
48
|
+
title: string;
|
|
49
|
+
description: string;
|
|
50
|
+
};
|
|
51
|
+
noMessage: {
|
|
52
|
+
src: string;
|
|
53
|
+
title: string;
|
|
54
|
+
description: string;
|
|
55
|
+
};
|
|
56
|
+
disconnected: {
|
|
57
|
+
src: string;
|
|
58
|
+
title: string;
|
|
59
|
+
description: string;
|
|
60
|
+
};
|
|
61
|
+
licenseAbnormal: {
|
|
62
|
+
src: string;
|
|
63
|
+
title: string;
|
|
64
|
+
description: string;
|
|
65
|
+
};
|
|
66
|
+
networkAbnormal: {
|
|
67
|
+
src: string;
|
|
68
|
+
title: string;
|
|
69
|
+
description: string;
|
|
70
|
+
};
|
|
71
|
+
notFound: {
|
|
72
|
+
src: string;
|
|
73
|
+
title: string;
|
|
74
|
+
description: string;
|
|
75
|
+
};
|
|
76
|
+
noAlarm: {
|
|
77
|
+
src: string;
|
|
78
|
+
title: string;
|
|
79
|
+
description: string;
|
|
80
|
+
};
|
|
81
|
+
};
|
|
82
|
+
export declare const DEFAULT_REASON: {
|
|
83
|
+
src: string;
|
|
84
|
+
title: string;
|
|
85
|
+
description: string;
|
|
86
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* [[include:page-guard/README.md]]
|
|
3
|
+
* @module page-guard
|
|
4
|
+
* @preferred
|
|
5
|
+
*/
|
|
6
|
+
/** imports */
|
|
7
|
+
import { PageGuardComponent } from './component/component';
|
|
8
|
+
import { PageGuardContentDirective, PageGuardDescriptionDirective, PageGuardOperationDirective, PageGuardImageDirective } from './component/helper-directives';
|
|
9
|
+
export * from './component/component';
|
|
10
|
+
export * from './component/helper-directives';
|
|
11
|
+
export * from './component/page-guard.type';
|
|
12
|
+
export declare const PAGE_GUARD_MODULE: readonly [typeof PageGuardComponent, typeof PageGuardContentDirective, typeof PageGuardDescriptionDirective, typeof PageGuardOperationDirective, typeof PageGuardImageDirective];
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { FormItemWidth } from '@alauda/ui';
|
|
2
|
+
import { OnInit, TemplateRef } from '@angular/core';
|
|
3
|
+
import { AbstractControl, ValidationErrors } from '@angular/forms';
|
|
4
|
+
import { BaseNestedFormControlPure } from '../../form';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export interface Encoding {
|
|
7
|
+
decode: (v: string) => string;
|
|
8
|
+
encode: (v: string) => string;
|
|
9
|
+
}
|
|
10
|
+
export declare class PasswordInputComponent extends BaseNestedFormControlPure<string> implements OnInit {
|
|
11
|
+
initPassword: string;
|
|
12
|
+
label: string;
|
|
13
|
+
hint: string | TemplateRef<any>;
|
|
14
|
+
specialChars: string;
|
|
15
|
+
strongPassword: boolean | '';
|
|
16
|
+
enableConfirm: boolean | '';
|
|
17
|
+
width: FormItemWidth;
|
|
18
|
+
toggleable: boolean;
|
|
19
|
+
pattern: string;
|
|
20
|
+
encoding: Encoding;
|
|
21
|
+
placeholder: string;
|
|
22
|
+
readonly: boolean;
|
|
23
|
+
isUpdate: boolean;
|
|
24
|
+
set required(required: boolean | '');
|
|
25
|
+
get required(): boolean;
|
|
26
|
+
showPassword: boolean;
|
|
27
|
+
showInput: boolean;
|
|
28
|
+
confirmPassword: string;
|
|
29
|
+
isTemplateRef: (label: any) => label is TemplateRef<unknown>;
|
|
30
|
+
private _required;
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
valueIn(v: string): string;
|
|
33
|
+
modelOut(v: string): string;
|
|
34
|
+
validate(): ValidationErrors;
|
|
35
|
+
validateConfirmPassword(password: string): (control: AbstractControl) => ValidationErrors;
|
|
36
|
+
updatePasswd(): void;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PasswordInputComponent, never>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PasswordInputComponent, "acl-password-input", never, { "initPassword": { "alias": "initPassword"; "required": false; }; "label": { "alias": "label"; "required": false; }; "hint": { "alias": "hint"; "required": false; }; "specialChars": { "alias": "specialChars"; "required": false; }; "strongPassword": { "alias": "strongPassword"; "required": false; }; "enableConfirm": { "alias": "enableConfirm"; "required": false; }; "width": { "alias": "width"; "required": false; }; "toggleable": { "alias": "toggleable"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "encoding": { "alias": "encoding"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "isUpdate": { "alias": "isUpdate"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, {}, never, never, true, never>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Pod } from '../../types';
|
|
2
|
+
import { getPodAggregatedStatus, getPodStatus } from './status';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class PodStatusComponent {
|
|
5
|
+
pod: Pod;
|
|
6
|
+
disableMessageOverview: boolean;
|
|
7
|
+
getReadyContainer(pod: Pod): {
|
|
8
|
+
ready: number;
|
|
9
|
+
all: number;
|
|
10
|
+
};
|
|
11
|
+
getPodErrorMessages: (pod: Pod) => string[];
|
|
12
|
+
getPodAggregatedStatus: typeof getPodAggregatedStatus;
|
|
13
|
+
getPodStatus: typeof getPodStatus;
|
|
14
|
+
PodStatusColorMapper: {
|
|
15
|
+
running: import("@alauda-fe/dynamic-plugin-shared").GenericStatusColor;
|
|
16
|
+
completed: import("@alauda-fe/dynamic-plugin-shared").GenericStatusColor;
|
|
17
|
+
error: import("@alauda-fe/dynamic-plugin-shared").GenericStatusColor;
|
|
18
|
+
};
|
|
19
|
+
PodStatusIconMapper: {
|
|
20
|
+
completed: import("@alauda-fe/dynamic-plugin-shared").GenericStatusIcon;
|
|
21
|
+
error: import("@alauda-fe/dynamic-plugin-shared").GenericStatusIcon;
|
|
22
|
+
};
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PodStatusComponent, never>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PodStatusComponent, "acl-pod-status", never, { "pod": { "alias": "pod"; "required": false; }; "disableMessageOverview": { "alias": "disableMessageOverview"; "required": false; }; }, {}, never, never, true, never>;
|
|
25
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { GenericStatusColor, GenericStatusIcon } from '../../constants';
|
|
2
|
+
export declare enum PodStatusEnum {
|
|
3
|
+
running = "running",
|
|
4
|
+
pending = "pending",
|
|
5
|
+
completed = "completed",
|
|
6
|
+
error = "error"
|
|
7
|
+
}
|
|
8
|
+
export declare const PodStatusColorMapper: {
|
|
9
|
+
running: GenericStatusColor;
|
|
10
|
+
completed: GenericStatusColor;
|
|
11
|
+
error: GenericStatusColor;
|
|
12
|
+
};
|
|
13
|
+
export declare const PodStatusIconMapper: {
|
|
14
|
+
completed: GenericStatusIcon;
|
|
15
|
+
error: GenericStatusIcon;
|
|
16
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TranslateService } from '@alauda-fe/dynamic-plugin-sdk';
|
|
2
|
+
import { ChangeDetectorRef, OnDestroy, OnInit } from '@angular/core';
|
|
3
|
+
import dayjs from 'dayjs';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class RelativeTimeComponent implements OnInit, OnDestroy {
|
|
6
|
+
private readonly cdr;
|
|
7
|
+
private readonly translate;
|
|
8
|
+
private readonly destroy$;
|
|
9
|
+
constructor(cdr: ChangeDetectorRef, translate: TranslateService);
|
|
10
|
+
time: dayjs.ConfigType;
|
|
11
|
+
ngOnInit(): void;
|
|
12
|
+
ngOnDestroy(): void;
|
|
13
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RelativeTimeComponent, never>;
|
|
14
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RelativeTimeComponent, "acl-relative-time", never, { "time": { "alias": "time"; "required": false; }; }, {}, never, never, true, never>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { TranslateService } from '@alauda-fe/dynamic-plugin-sdk';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
type ResourceType = 'cpu' | 'memory';
|
|
4
|
+
interface ResourceInfo {
|
|
5
|
+
icon: string;
|
|
6
|
+
formatter: (rawData: number | string, locale?: string) => string;
|
|
7
|
+
}
|
|
8
|
+
export declare class ResourceLabelComponent {
|
|
9
|
+
readonly translate: TranslateService;
|
|
10
|
+
rawValue: string | number;
|
|
11
|
+
default: string;
|
|
12
|
+
type: ResourceType;
|
|
13
|
+
noIcon: boolean;
|
|
14
|
+
get formattedDefault(): string;
|
|
15
|
+
labelIconMapper: Record<ResourceType, ResourceInfo>;
|
|
16
|
+
constructor(translate: TranslateService);
|
|
17
|
+
formatCPU(rawData: number | string): string;
|
|
18
|
+
formatMemory(rawData: number | string): string;
|
|
19
|
+
private getResourceUnit;
|
|
20
|
+
private formatCpuUnit;
|
|
21
|
+
private formatMemoryUnit;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceLabelComponent, never>;
|
|
23
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResourceLabelComponent, "acl-resource-label", never, { "rawValue": { "alias": "rawValue"; "required": false; }; "default": { "alias": "default"; "required": false; }; "type": { "alias": "type"; "required": false; }; "noIcon": { "alias": "noIcon"; "required": false; }; }, {}, never, never, true, never>;
|
|
24
|
+
}
|
|
25
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { OptionFilterFn, SelectFilterOption, TrackFn } from '@alauda/ui';
|
|
2
|
+
import { EventEmitter, TemplateRef, ChangeDetectorRef } from '@angular/core';
|
|
3
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
+
import { BehaviorSubject } from 'rxjs';
|
|
5
|
+
import { StringMap } from '../../types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class ResourceMultiSelectComponent implements ControlValueAccessor {
|
|
8
|
+
private readonly cdr;
|
|
9
|
+
list: string[];
|
|
10
|
+
limit: number;
|
|
11
|
+
prefixLabel: string;
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
required: boolean;
|
|
14
|
+
readonly: boolean;
|
|
15
|
+
allOptionTemplate: TemplateRef<any>;
|
|
16
|
+
allOptionTemplateContext: StringMap;
|
|
17
|
+
optionTemplate: TemplateRef<any>;
|
|
18
|
+
placeholder: string;
|
|
19
|
+
countLimited: boolean;
|
|
20
|
+
filter: OptionFilterFn<string>;
|
|
21
|
+
trackBy: TrackFn<string>;
|
|
22
|
+
allowEmpty: boolean;
|
|
23
|
+
valueChange: EventEmitter<string[]>;
|
|
24
|
+
values$$: BehaviorSubject<string[]>;
|
|
25
|
+
values: string[];
|
|
26
|
+
isSelectAllOption: boolean;
|
|
27
|
+
isPartial: boolean;
|
|
28
|
+
ALL_VALUE: string;
|
|
29
|
+
constructor(cdr: ChangeDetectorRef);
|
|
30
|
+
writeValue(values: string[]): void;
|
|
31
|
+
onChange: import("../../types").Callback;
|
|
32
|
+
onTouched: import("../../types").Callback;
|
|
33
|
+
registerOnChange(fn: () => void): void;
|
|
34
|
+
registerOnTouched(fn: () => void): void;
|
|
35
|
+
disableOption: (checkedValue: string, values: string[]) => boolean;
|
|
36
|
+
onValueChange(values: string[]): void;
|
|
37
|
+
filterFn: (filter: string, option: SelectFilterOption<string>) => boolean;
|
|
38
|
+
trackByFn: (value: string) => unknown;
|
|
39
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceMultiSelectComponent, never>;
|
|
40
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ResourceMultiSelectComponent, "acl-resource-multi-select", never, { "list": { "alias": "list"; "required": false; }; "limit": { "alias": "limit"; "required": false; }; "prefixLabel": { "alias": "prefixLabel"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "allOptionTemplate": { "alias": "allOptionTemplate"; "required": false; }; "allOptionTemplateContext": { "alias": "allOptionTemplateContext"; "required": false; }; "optionTemplate": { "alias": "optionTemplate"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "countLimited": { "alias": "countLimited"; "required": false; }; "filter": { "alias": "filter"; "required": false; }; "trackBy": { "alias": "trackBy"; "required": false; }; "allowEmpty": { "alias": "allowEmpty"; "required": false; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
|
|
41
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { KubernetesResource } from '../../types';
|
|
2
|
+
export declare const DEFAULT_LIMIT_COUNT = 30;
|
|
3
|
+
export declare const ALL_VALUE = "All";
|
|
4
|
+
export declare enum OptionAction {
|
|
5
|
+
Active = "active",
|
|
6
|
+
Disabled = "disabled",
|
|
7
|
+
Partial = "partial"
|
|
8
|
+
}
|
|
9
|
+
export declare const checkValueExit: <T extends string | KubernetesResource>(checkedValue: T, values: T[]) => boolean;
|
|
10
|
+
export declare const isSelectAll: <T extends string | KubernetesResource>(values: T[], allVal?: string) => boolean;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { EventEmitter, QueryList, AfterViewInit } from '@angular/core';
|
|
2
|
+
import { Subject } from 'rxjs';
|
|
3
|
+
import { SearchItemComponent } from './search-item/component';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class SearchPanelComponent implements AfterViewInit {
|
|
6
|
+
enableEnterHandler: boolean | '';
|
|
7
|
+
search: EventEmitter<void>;
|
|
8
|
+
resetSearch: EventEmitter<void>;
|
|
9
|
+
items: QueryList<SearchItemComponent>;
|
|
10
|
+
enter(): void;
|
|
11
|
+
isFulWidth$$: Subject<boolean>;
|
|
12
|
+
ngAfterViewInit(): void;
|
|
13
|
+
private checkItemLength;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchPanelComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SearchPanelComponent, "acl-search-panel", never, { "enableEnterHandler": { "alias": "enableEnterHandler"; "required": false; }; }, { "search": "search"; "resetSearch": "resetSearch"; }, ["items"], ["*", "[additional]"], true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class SearchItemLabelDirective {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchItemLabelDirective, never>;
|
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SearchItemLabelDirective, "label[aclSearchItemLabel]", never, {}, {}, never, never, true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { SearchItemLabelDirective } from '../helper.directive';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SearchItemComponent {
|
|
4
|
+
itemLabel: SearchItemLabelDirective;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SearchItemComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SearchItemComponent, "acl-search-item", never, {}, {}, ["itemLabel"], ["label[aclSearchItemLabel]", "*"], true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { MultiSelectComponent } from '@alauda/ui';
|
|
2
|
+
import { ElementRef, Renderer2, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare const PREFIX_LABEL_CLASS = "acl-select-prefix__label";
|
|
5
|
+
export declare class SelectPrefixLabelDirective {
|
|
6
|
+
private readonly elementRef;
|
|
7
|
+
private readonly renderer;
|
|
8
|
+
private readonly viewContainerRef;
|
|
9
|
+
private readonly multiSelectComponent;
|
|
10
|
+
aclPrefixLabel: string | TemplateRef<any>;
|
|
11
|
+
queryElementByClassName(className: string): Element;
|
|
12
|
+
createInlineLabel(value: string | TemplateRef<any>, className?: string): HTMLSpanElement;
|
|
13
|
+
insertNode(container: Element, value: string | TemplateRef<any>, refChild?: Element): void;
|
|
14
|
+
constructor(elementRef: ElementRef, renderer: Renderer2, viewContainerRef: ViewContainerRef, multiSelectComponent: MultiSelectComponent);
|
|
15
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectPrefixLabelDirective, [null, null, null, { optional: true; }]>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectPrefixLabelDirective, "aui-select[aclPrefixLabel],aui-multi-select[aclPrefixLabel]", never, { "aclPrefixLabel": { "alias": "aclPrefixLabel"; "required": false; }; }, {}, never, never, true, never>;
|
|
17
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { StringMap } from '../../types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class StatusIconComponent {
|
|
4
|
+
status: string;
|
|
5
|
+
withText: boolean;
|
|
6
|
+
colorMapper: StringMap;
|
|
7
|
+
iconMapper: StringMap;
|
|
8
|
+
disabled: boolean;
|
|
9
|
+
iconSize: string;
|
|
10
|
+
isPending(status: string, iconMapper: StringMap): boolean;
|
|
11
|
+
getStatusColor(status: string, colorMapper: StringMap): string;
|
|
12
|
+
getStatusIcon(status: string, iconMapper: StringMap): string;
|
|
13
|
+
backgroundShape(icon?: string): "circle" | "triangle";
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StatusIconComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StatusIconComponent, "acl-status-icon", never, { "status": { "alias": "status"; "required": false; }; "withText": { "alias": "withText"; "required": false; }; "colorMapper": { "alias": "colorMapper"; "required": false; }; "iconMapper": { "alias": "iconMapper"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "iconSize": { "alias": "iconSize"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { TagType } from '@alauda/ui';
|
|
2
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, Injector, NgZone, OnDestroy, OnInit, TemplateRef } from '@angular/core';
|
|
3
|
+
import { Observable } from 'rxjs';
|
|
4
|
+
import { ListenResizeDirective } from '../../services';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
/**
|
|
7
|
+
* User could provide two types of tags to use this component.
|
|
8
|
+
* Tags requires a map of tags, while tagList requires a list of key/value pairs.
|
|
9
|
+
*/
|
|
10
|
+
export declare const tagRenderDefault: <T>(tag: T | [string | T, T]) => string;
|
|
11
|
+
export declare class TagsLabelComponent<T = string> extends ListenResizeDirective implements AfterViewInit, OnDestroy, OnInit {
|
|
12
|
+
private readonly cdr;
|
|
13
|
+
private readonly ngZone;
|
|
14
|
+
tagsContainerMirror: ElementRef;
|
|
15
|
+
tagsContainer: ElementRef;
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated
|
|
18
|
+
* 在父组件内处理 pointer 样式
|
|
19
|
+
*/
|
|
20
|
+
tagClickable: boolean;
|
|
21
|
+
border: boolean;
|
|
22
|
+
tagType: TagType;
|
|
23
|
+
tagRound: boolean;
|
|
24
|
+
tagClick: EventEmitter<T | [string | T, T]>;
|
|
25
|
+
tagTemplate: TemplateRef<unknown>;
|
|
26
|
+
constructor(injector: Injector, cdr: ChangeDetectorRef, ngZone: NgZone);
|
|
27
|
+
tags: Record<string, T> | Array<T | [string | T, T]>;
|
|
28
|
+
tags$: Observable<Record<string, T> | Array<T | [string | T, T]>>;
|
|
29
|
+
tooltipPosition: string;
|
|
30
|
+
showMore: boolean;
|
|
31
|
+
isWrapped: boolean;
|
|
32
|
+
controlSize: number;
|
|
33
|
+
controlSize$: Observable<number>;
|
|
34
|
+
isControlSize: boolean;
|
|
35
|
+
tagRender: ((tag: T) => string) | ((tag: [string, T]) => string) | ((tag: [T, T]) => string) | ((tag: [string | T, T]) => string);
|
|
36
|
+
private readonly tagsContainerSize$$;
|
|
37
|
+
private readonly selfContainerSize$;
|
|
38
|
+
private readonly containerSize$;
|
|
39
|
+
private tagsTotalCount;
|
|
40
|
+
shouldRenderCount: number;
|
|
41
|
+
shouldRenderEllipse: boolean;
|
|
42
|
+
tagsValue$: Observable<(T | [string | T, T])[]>;
|
|
43
|
+
private readonly tagsPositionInfo$$;
|
|
44
|
+
ELLIPSE_TAG_WIDTH: number;
|
|
45
|
+
private readonly renderCount$;
|
|
46
|
+
_isChangeDetectionPending: boolean;
|
|
47
|
+
debounceResize: import("lodash").DebouncedFunc<() => void>;
|
|
48
|
+
private markNeedRender;
|
|
49
|
+
/** Run change detection. */
|
|
50
|
+
private _doChangeDetection;
|
|
51
|
+
ngOnInit(): void;
|
|
52
|
+
onResize(): void;
|
|
53
|
+
ngAfterViewInit(): void;
|
|
54
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TagsLabelComponent<any>, never>;
|
|
55
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TagsLabelComponent<any>, "acl-tags-label", never, { "tagClickable": { "alias": "tagClickable"; "required": false; }; "border": { "alias": "border"; "required": false; }; "tagType": { "alias": "tagType"; "required": false; }; "tagRound": { "alias": "tagRound"; "required": false; }; "tags": { "alias": "tags"; "required": false; }; "tooltipPosition": { "alias": "tooltipPosition"; "required": false; }; "showMore": { "alias": "showMore"; "required": false; }; "isWrapped": { "alias": "isWrapped"; "required": false; }; "controlSize": { "alias": "controlSize"; "required": false; }; "isControlSize": { "alias": "isControlSize"; "required": false; }; "tagRender": { "alias": "tagRender"; "required": false; }; }, { "tagClick": "tagClick"; }, ["tagTemplate"], ["*"], true, never>;
|
|
56
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { KubernetesResource } from '../../types';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class TerminatingTagComponent {
|
|
4
|
+
resource: KubernetesResource;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TerminatingTagComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TerminatingTagComponent, "acl-deleting-tag", never, { "resource": { "alias": "resource"; "required": false; }; }, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class TextEllipsisComponent {
|
|
3
|
+
text: string;
|
|
4
|
+
tailLength: number;
|
|
5
|
+
get head(): string;
|
|
6
|
+
get tail(): string;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextEllipsisComponent, never>;
|
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextEllipsisComponent, "acl-text-ellipsis", never, { "text": { "alias": "text"; "required": false; }; "tailLength": { "alias": "tailLength"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TooltipDirective } from '@alauda/ui';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import * as i1 from "@alauda/ui";
|
|
4
|
+
/**
|
|
5
|
+
* 使用场景:
|
|
6
|
+
* 文案需要单行显示,过长时截取的情况。
|
|
7
|
+
* 效果:
|
|
8
|
+
* 发生截取的文案会显示完整内容的 tooltip。未发生截取的文案不显示 tooltip。
|
|
9
|
+
* @example:
|
|
10
|
+
* <span class="tw-text-overflow" aclTextTooltip>TEXT...</span>
|
|
11
|
+
*
|
|
12
|
+
* tooltip 的一些设置(位置、类型)可以使用 aui 相同设置。未传 tooltip content 则取元素 text content
|
|
13
|
+
*/
|
|
14
|
+
export declare class TextTooltipDirective {
|
|
15
|
+
content: string;
|
|
16
|
+
onMouseEnter(e: MouseEvent): void;
|
|
17
|
+
tooltipDirective: TooltipDirective;
|
|
18
|
+
private calcFullTextWidth;
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextTooltipDirective, never>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TextTooltipDirective, "[aclTextTooltip]", never, { "content": { "alias": "aclTextTooltip"; "required": false; }; }, {}, never, never, true, [{ directive: typeof i1.TooltipDirective; inputs: { "auiTooltip": "aclTextTooltip"; "auiTooltipPosition": "auiTooltipPosition"; "auiTooltipType": "auiTooltipType"; }; outputs: {}; }]>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class TextWithUrlComponent {
|
|
3
|
+
text: string;
|
|
4
|
+
parseUrlInText: typeof parseUrlInText;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TextWithUrlComponent, never>;
|
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TextWithUrlComponent, "acl-text-with-url", never, { "text": { "alias": "text"; "required": false; }; }, {}, never, never, true, never>;
|
|
7
|
+
}
|
|
8
|
+
export declare function parseUrlInText(text: string): Text[];
|
|
9
|
+
export interface Text {
|
|
10
|
+
value: string;
|
|
11
|
+
type: 'plain' | 'url';
|
|
12
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { NotificationService } from '@alauda/ui';
|
|
2
|
+
import { TranslateService } from '@alauda-fe/dynamic-plugin-sdk';
|
|
3
|
+
import { ElementRef } from '@angular/core';
|
|
4
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
+
import { ValueOf } from '../../types';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare const FileResultType: {
|
|
8
|
+
readonly ARRAY_BUFFER: "ArrayBuffer";
|
|
9
|
+
readonly BINARY_STRING: "BinaryString";
|
|
10
|
+
readonly DATA_URL: "DataURL";
|
|
11
|
+
readonly TEXT: "Text";
|
|
12
|
+
};
|
|
13
|
+
export type FileResultType = ValueOf<typeof FileResultType>;
|
|
14
|
+
export type FileResult = string | ArrayBuffer;
|
|
15
|
+
export declare class UploadFileComponent implements ControlValueAccessor {
|
|
16
|
+
private readonly notification;
|
|
17
|
+
private readonly translate;
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
accept: string;
|
|
20
|
+
multiple: boolean;
|
|
21
|
+
resultType: FileResultType;
|
|
22
|
+
fileInput: ElementRef<HTMLInputElement>;
|
|
23
|
+
valueChange: (ev: FileResult | FileResult[]) => void;
|
|
24
|
+
constructor(notification: NotificationService, translate: TranslateService);
|
|
25
|
+
onClick(): void;
|
|
26
|
+
onChange(e: Event): Promise<void>;
|
|
27
|
+
writeValue(): void;
|
|
28
|
+
registerOnChange(fn: any): void;
|
|
29
|
+
registerOnTouched(): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UploadFileComponent, never>;
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<UploadFileComponent, "acl-upload-file", never, { "disabled": { "alias": "disabled"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "resultType": { "alias": "resultType"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
32
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ZeroStateComponent {
|
|
4
|
+
resourceName: string;
|
|
5
|
+
resourceNameTranslated: string;
|
|
6
|
+
customPlaceholder: TemplateRef<unknown> | string;
|
|
7
|
+
zeroState: boolean;
|
|
8
|
+
fetching: boolean;
|
|
9
|
+
context: 'form' | 'table';
|
|
10
|
+
minHeight: string | number;
|
|
11
|
+
get hiddenState(): boolean;
|
|
12
|
+
handlePixel: (value: number | string) => string;
|
|
13
|
+
isTemplateRef: (label: any) => label is TemplateRef<unknown>;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ZeroStateComponent, never>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ZeroStateComponent, "acl-zero-state", never, { "resourceName": { "alias": "resourceName"; "required": false; }; "resourceNameTranslated": { "alias": "resourceNameTranslated"; "required": false; }; "customPlaceholder": { "alias": "customPlaceholder"; "required": false; }; "zeroState": { "alias": "zeroState"; "required": false; }; "fetching": { "alias": "fetching"; "required": false; }; "context": { "alias": "context"; "required": false; }; "minHeight": { "alias": "minHeight"; "required": false; }; }, {}, never, never, true, never>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @packageDocumentation
|
|
3
|
+
* @module utils
|
|
4
|
+
*/
|
|
5
|
+
export declare const API_GATEWAY = "{{API_GATEWAY}}";
|
|
6
|
+
export declare const TRUE = "true";
|
|
7
|
+
export declare const FALSE = "false";
|
|
8
|
+
export declare const EMPTY = "";
|
|
9
|
+
export declare const SPACE = " ";
|
|
10
|
+
export declare const DOT = ".";
|
|
11
|
+
export declare const SLASH = "/";
|
|
12
|
+
export declare const HYPHEN = "-";
|
|
13
|
+
export declare const UNDERSCORE = "_";
|
|
14
|
+
export declare const DELIMITER = ":";
|
|
15
|
+
export declare const WILDCARD = ".*";
|
|
16
|
+
export declare const DATE_FORMAT = "YYYY-MM-DD";
|
|
17
|
+
export declare const TIME_FORMAT = "HH:mm:ss";
|
|
18
|
+
export declare const DATE_TIME_FORMAT = "YYYY-MM-DD HH:mm:ss";
|
|
19
|
+
export declare const WORKSPACE_PARAMS = "workspace_params_v1";
|
|
20
|
+
export declare const PUBLIC_NAMESPACE = "kube-public";
|
|
21
|
+
export declare const ASSIGN_ALL = "ALL_ALL";
|
|
22
|
+
export declare const ALL = "ALL";
|
|
23
|
+
export declare const Bracket: {
|
|
24
|
+
readonly PARENTHESES: readonly ["(", ")"];
|
|
25
|
+
readonly BRACES: readonly ["{", "}"];
|
|
26
|
+
readonly SQUARE_BRACKETS: readonly ["[", "]"];
|
|
27
|
+
readonly POINTY_BRACKETS: readonly ["<", ">"];
|
|
28
|
+
};
|
|
29
|
+
export declare const TEMPLATE_OPTIONS: Readonly<{
|
|
30
|
+
interpolate: RegExp;
|
|
31
|
+
}>;
|
|
32
|
+
export declare const DEFAULT_CODE_EDITOR_OPTIONS: import('@alauda/code-editor').MonacoEditorOptions;
|
|
33
|
+
export declare const NOTIFY_ON_ERROR_HEADER = "__NOTIFICATION_ON_ERROR__";
|
|
34
|
+
export declare const NOTIFY_DURATION_HEADER = "__NOTIFICATION_DURATION__";
|
|
35
|
+
export declare const NOTIFY_ON_ERROR_HEADERS: {
|
|
36
|
+
readonly __NOTIFICATION_ON_ERROR__: "true";
|
|
37
|
+
};
|
|
38
|
+
export declare const NOT_NOTIFY_ON_ERROR_HEADERS: {
|
|
39
|
+
readonly __NOTIFICATION_ON_ERROR__: "false";
|
|
40
|
+
};
|
|
41
|
+
export declare const DOWNGRADE_WATCH_ENABLED: boolean;
|
|
42
|
+
export declare const DOWNGRADE_WATCH_POLLING: 5000;
|
|
43
|
+
export declare const CREATED_AT = "created_at";
|
|
44
|
+
export declare const UPDATED_AT = "updated_at";
|
|
45
|
+
export declare const ACTION = "action";
|
|
46
|
+
export declare const SPEC = "spec";
|
|
47
|
+
export declare const CREATE = "create";
|
|
48
|
+
export declare const UPDATE = "update";
|
|
49
|
+
export declare const LINK = "link";
|
|
50
|
+
export declare const ESCAPE_DEACTIVATE_CHECK = "escape";
|
|
51
|
+
export declare const CUSTOMIZED = "customized";
|
|
52
|
+
export declare const GLOBAL_CLUSTER = "global";
|
|
53
|
+
export declare const PACKAGE_RUNTIME_VALUE = "Runtime";
|
|
54
|
+
export declare const CRYPTO_HEADER_KEY = "X-Param-Response";
|
|
55
|
+
export declare enum CRYPTO_TYPE {
|
|
56
|
+
Enable = "Force",
|
|
57
|
+
Drop = "Drop",
|
|
58
|
+
Disable = "None"
|
|
59
|
+
}
|
|
60
|
+
export declare const CRYPTO_RANDOM_HEADER_KEY = "X-Param-Init";
|
|
61
|
+
export declare const CRYPTO_KEY = "alauda";
|
|
62
|
+
export declare const PLATFORM_OPS_MODE = "platform-ops-mode";
|
|
63
|
+
export declare const DEFAULT_CONTAINER_ANNOTATION = "kubectl.kubernetes.io/default-container";
|
|
64
|
+
export declare const NOTIFICATION_SERVER_NAME = "platform-email-server";
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const METADATA = "metadata";
|
|
2
|
+
export declare const NAMESPACE = "namespace";
|
|
3
|
+
export declare const NAME = "name";
|
|
4
|
+
export declare const CREATION_TIMESTAMP = "creationTimestamp";
|
|
5
|
+
export declare const ANNOTATIONS = "annotations";
|
|
6
|
+
export declare const LABELS = "labels";
|
|
7
|
+
export declare const DISPLAY_NAME = "display-name";
|
|
8
|
+
export declare const DESCRIPTION = "description";
|
|
9
|
+
export declare const CREATOR = "creator";
|
|
10
|
+
export declare const UPDATED__AT = "updated-at";
|
|
11
|
+
export declare const PROJECT = "project";
|
|
12
|
+
export declare const CLUSTER = "cluster";
|