@alauda-fe/common 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/helpers.d.ts +8 -16
- package/array-form-table/form/component.d.ts +1 -1
- package/business/resource-select/internals/namespace-list/component.d.ts +3 -1
- package/business/resource-select/module.d.ts +2 -1
- package/core/components/tree/toggle.d.ts +3 -3
- package/core/constants/constants.d.ts +4 -1
- package/core/constants/patterns.d.ts +8 -0
- package/core/constants/status-icons.d.ts +2 -1
- package/core/services/encode-url-param.interceptor.d.ts +12 -0
- package/core/services/public-api.d.ts +1 -0
- package/core/services/time.service.d.ts +1 -0
- package/core/types/k8s/crd.d.ts +11 -5
- package/core/types/k8s/raw.d.ts +25 -38
- package/core/types/resource-definitions.d.ts +57 -71
- package/core/utils/common.d.ts +5 -11
- package/core/utils/disabled-state.d.ts +20 -0
- package/core/utils/public-api.d.ts +2 -0
- package/core/utils/workload.d.ts +66 -0
- package/esm2022/abnormal-page/abnormal-page.component.mjs +5 -4
- package/esm2022/abnormal-page/abnormal-page.module.mjs +2 -2
- package/esm2022/api/acp-common-api.service.mjs +3 -3
- package/esm2022/api/api-compatible.interceptor.mjs +1 -1
- package/esm2022/api/api-gateway.interceptor.mjs +3 -3
- package/esm2022/api/api-gateway.service.mjs +2 -2
- package/esm2022/api/cluster-version.service.mjs +3 -3
- package/esm2022/api/crypto.interceptor.mjs +4 -4
- package/esm2022/api/helpers.mjs +1 -1
- package/esm2022/api/k8s-api-resource.service.mjs +4 -4
- package/esm2022/api/k8s-api.service.mjs +6 -6
- package/esm2022/api/page-visibility.service.mjs +2 -2
- package/esm2022/api/platform-ui.service.mjs +2 -2
- package/esm2022/api/product.service.mjs +3 -3
- package/esm2022/api/project-api.service.mjs +3 -3
- package/esm2022/api/resource-update.service.mjs +3 -3
- package/esm2022/array-form-table/base-string-map-form.component.mjs +3 -3
- package/esm2022/array-form-table/form/component.mjs +104 -111
- package/esm2022/array-form-table/form/module.mjs +2 -2
- package/esm2022/array-form-table/key-value-form/component.mjs +53 -58
- package/esm2022/array-form-table/key-value-table/component.mjs +7 -7
- package/esm2022/array-form-table/string-array-form/component.mjs +48 -52
- package/esm2022/async-data/async-data-loader.mjs +1 -1
- package/esm2022/async-data/async-data.module.mjs +2 -2
- package/esm2022/async-data/error-page/component.mjs +21 -22
- package/esm2022/async-data/page-state/component.mjs +16 -15
- package/esm2022/authorization/app-init-url.mjs +1 -1
- package/esm2022/authorization/guard.service.mjs +4 -4
- package/esm2022/authorization/interceptor.service.mjs +4 -4
- package/esm2022/authorization/session-manage.service.mjs +5 -5
- package/esm2022/authorization/state.service.mjs +2 -2
- package/esm2022/authorization/storage-token.mjs +2 -2
- package/esm2022/business/module-info/api.service.mjs +3 -3
- package/esm2022/business/notification-disabled-container/component.mjs +14 -14
- package/esm2022/business/resource-select/base-list.mjs +3 -3
- package/esm2022/business/resource-select/context.service.mjs +3 -3
- package/esm2022/business/resource-select/exports/cluster-selector/component.mjs +22 -20
- package/esm2022/business/resource-select/exports/mesh-group-selector/component.mjs +22 -20
- package/esm2022/business/resource-select/exports/namespace-page/component.mjs +6 -5
- package/esm2022/business/resource-select/exports/namespace-selector/component.mjs +37 -35
- package/esm2022/business/resource-select/exports/project-page/component.mjs +6 -5
- package/esm2022/business/resource-select/exports/project-selector/component.mjs +23 -22
- package/esm2022/business/resource-select/helpers.directive.mjs +2 -2
- package/esm2022/business/resource-select/internals/cluster-list/component.mjs +7 -6
- package/esm2022/business/resource-select/internals/data-grid/component.mjs +173 -176
- package/esm2022/business/resource-select/internals/icon/component.mjs +3 -2
- package/esm2022/business/resource-select/internals/meshgroup-list/component.mjs +5 -4
- package/esm2022/business/resource-select/internals/namespace-list/component.mjs +145 -100
- package/esm2022/business/resource-select/internals/no-data/component.mjs +12 -14
- package/esm2022/business/resource-select/internals/project-list/component.mjs +5 -4
- package/esm2022/business/resource-select/internals/resource-dashboard/component.mjs +7 -6
- package/esm2022/business/resource-select/internals/selector-popup/component.mjs +6 -5
- package/esm2022/business/resource-select/internals/selector-popup/ref.mjs +1 -1
- package/esm2022/business/resource-select/internals/selector-popup/service.mjs +3 -3
- package/esm2022/business/resource-select/module.mjs +17 -14
- package/esm2022/business/resource-select/project.service.mjs +3 -3
- package/esm2022/business/resource-select/utils.mjs +1 -1
- package/esm2022/chart/chart.module.mjs +2 -2
- package/esm2022/chart/chart.service.mjs +4 -4
- package/esm2022/chart/common/axis/axis-label.component.mjs +4 -3
- package/esm2022/chart/common/axis/x-axis-ticks.component.mjs +27 -27
- package/esm2022/chart/common/axis/x-axis.component.mjs +6 -5
- package/esm2022/chart/common/axis/x-plot-lines.component.mjs +7 -6
- package/esm2022/chart/common/axis/y-axis-ticks.component.mjs +35 -35
- package/esm2022/chart/common/axis/y-axis.component.mjs +9 -8
- package/esm2022/chart/common/axis/y-plot-lines.component.mjs +6 -5
- package/esm2022/chart/common/chart/chart.component.mjs +41 -43
- package/esm2022/chart/common/legend/legend.component.mjs +62 -65
- package/esm2022/chart/common/range-area/range-area.component.mjs +13 -11
- package/esm2022/chart/common/reference-area/reference-area.component.mjs +4 -3
- package/esm2022/chart/common/series/area-series.component.mjs +15 -14
- package/esm2022/chart/common/series/bar-path.component.mjs +20 -21
- package/esm2022/chart/common/series/bar-series.component.mjs +8 -7
- package/esm2022/chart/common/series/line-series.component.mjs +7 -6
- package/esm2022/chart/common/series/series.component.mjs +3 -3
- package/esm2022/chart/common/tooltip/tooltip.component.mjs +73 -81
- package/esm2022/chart/custom-template/dropdown-legend.mjs +23 -25
- package/esm2022/chart/utils.mjs +1 -1
- package/esm2022/code/code-display-dialog/component.mjs +9 -8
- package/esm2022/code/code-editor-configs.mjs +2 -2
- package/esm2022/code/code.module.mjs +2 -2
- package/esm2022/code/k8s-yaml-display-dialog/component.mjs +9 -8
- package/esm2022/code/resource-yaml-display/component.mjs +21 -22
- package/esm2022/core/abstract/base-form-container.mjs +3 -3
- package/esm2022/core/abstract/base-nested-form-control.mjs +5 -5
- package/esm2022/core/components/tree/module.mjs +2 -2
- package/esm2022/core/components/tree/node/component.mjs +7 -6
- package/esm2022/core/components/tree/outlet.mjs +4 -4
- package/esm2022/core/components/tree/padding.mjs +6 -6
- package/esm2022/core/components/tree/toggle.mjs +9 -9
- package/esm2022/core/components/tree/tree/component.mjs +4 -3
- package/esm2022/core/constants/constants.mjs +4 -1
- package/esm2022/core/constants/patterns.mjs +10 -1
- package/esm2022/core/constants/status-icons.mjs +2 -1
- package/esm2022/core/constants/tokens.mjs +1 -1
- package/esm2022/core/directives/aui-code-editor.directive.mjs +3 -3
- package/esm2022/core/directives/click-outside.directive.mjs +4 -4
- package/esm2022/core/directives/declare.directive.mjs +2 -2
- package/esm2022/core/directives/disabled.directive.mjs +4 -4
- package/esm2022/core/directives/feature-gate.directive.mjs +4 -4
- package/esm2022/core/directives/intercept-deactivate.directive.mjs +4 -4
- package/esm2022/core/directives/last-form-item.directive.mjs +3 -3
- package/esm2022/core/directives/page-header-content.directive.mjs +3 -3
- package/esm2022/core/directives/readonly-field.directive.mjs +8 -7
- package/esm2022/core/directives/resize.directive.mjs +3 -3
- package/esm2022/core/directives/scroll-border-observer.directive.mjs +4 -4
- package/esm2022/core/directives/scroll-to-first-invalid.directive.mjs +5 -5
- package/esm2022/core/guards/feature.guard.mjs +4 -4
- package/esm2022/core/guards/intercept-deactivate.guard.mjs +3 -3
- package/esm2022/core/guards/leave-edit-page.guard.mjs +3 -3
- package/esm2022/core/guards/project-namespace.guard.mjs +5 -5
- package/esm2022/core/module.mjs +2 -2
- package/esm2022/core/pipes/calc.pipe.mjs +2 -2
- package/esm2022/core/pipes/cron-human-readable.pipe.mjs +2 -2
- package/esm2022/core/pipes/crontab-next.pipe.mjs +3 -3
- package/esm2022/core/pipes/duration.pipe.mjs +3 -3
- package/esm2022/core/pipes/field-not-available.pipe.mjs +2 -2
- package/esm2022/core/pipes/img-header.pipe.mjs +2 -2
- package/esm2022/core/pipes/img-theme.pipe.mjs +3 -3
- package/esm2022/core/pipes/k8s-util.pipe.mjs +24 -24
- package/esm2022/core/pipes/k8s-util.pipe.module.mjs +2 -2
- package/esm2022/core/pipes/keyvalue.pipe.mjs +3 -3
- package/esm2022/core/pipes/marked.pipe.mjs +2 -2
- package/esm2022/core/pipes/minimum-format.pipe.mjs +3 -3
- package/esm2022/core/pipes/page-env.pipe.mjs +5 -5
- package/esm2022/core/pipes/parse-json-translate.pipe.mjs +3 -3
- package/esm2022/core/pipes/parse-json.pipe.mjs +2 -2
- package/esm2022/core/pipes/pure.pipe.mjs +2 -2
- package/esm2022/core/pipes/pure.pipe.module.mjs +2 -2
- package/esm2022/core/pipes/safe.pipe.mjs +3 -3
- package/esm2022/core/pipes/sanitize.pipe.mjs +3 -3
- package/esm2022/core/pipes/time.pipe.mjs +9 -9
- package/esm2022/core/pipes/timezone-display.pipe.mjs +2 -2
- package/esm2022/core/services/aui-paginator-intl.service.mjs +3 -3
- package/esm2022/core/services/aui-tooltip-copy-intl.service.mjs +3 -3
- package/esm2022/core/services/context.service.mjs +4 -4
- package/esm2022/core/services/custom-code-editor-intl.service.mjs +3 -3
- package/esm2022/core/services/encode-url-param.interceptor.mjs +32 -0
- package/esm2022/core/services/feature-gate.service.mjs +3 -3
- package/esm2022/core/services/form-row-duplicate/form-row-duplicate.service.mjs +3 -3
- package/esm2022/core/services/intercept-deactivate.service.mjs +3 -3
- package/esm2022/core/services/k8s-util.service.mjs +3 -3
- package/esm2022/core/services/on-resize.service.mjs +5 -5
- package/esm2022/core/services/public-api.mjs +2 -1
- package/esm2022/core/services/silently-navigate.service.mjs +3 -3
- package/esm2022/core/services/time.service.mjs +4 -3
- package/esm2022/core/services/ui-state.service.mjs +2 -2
- package/esm2022/core/services/workspace-helper.service.mjs +2 -2
- package/esm2022/core/services/yaml-util.service.mjs +4 -4
- package/esm2022/core/types/k8s/crd.mjs +1 -1
- package/esm2022/core/types/k8s/raw.mjs +1 -1
- package/esm2022/core/types/resource-definitions.mjs +42 -65
- package/esm2022/core/utils/cache-store.mjs +1 -1
- package/esm2022/core/utils/common.mjs +3 -2
- package/esm2022/core/utils/create-recursive-filter.mjs +1 -1
- package/esm2022/core/utils/cron-util.mjs +1 -1
- package/esm2022/core/utils/decorators.mjs +1 -1
- package/esm2022/core/utils/disabled-state.mjs +47 -0
- package/esm2022/core/utils/format-number.mjs +1 -1
- package/esm2022/core/utils/k8s-util.mjs +1 -1
- package/esm2022/core/utils/observable.mjs +1 -1
- package/esm2022/core/utils/operators.mjs +1 -1
- package/esm2022/core/utils/public-api.mjs +3 -1
- package/esm2022/core/utils/request-pool.mjs +1 -1
- package/esm2022/core/utils/resources.mjs +1 -1
- package/esm2022/core/utils/sort-fn.mjs +1 -1
- package/esm2022/core/utils/tree.mjs +1 -1
- package/esm2022/core/utils/unit.mjs +1 -1
- package/esm2022/core/utils/version.mjs +1 -1
- package/esm2022/core/utils/workload.mjs +183 -0
- package/esm2022/core/utils/workspace.mjs +1 -1
- package/esm2022/core/utils/yaml.mjs +1 -1
- package/esm2022/custom-columns-setting/component.mjs +30 -23
- package/esm2022/disabled-container/disabled-container.component.mjs +4 -3
- package/esm2022/disabled-container/disabled-container.module.mjs +2 -2
- package/esm2022/editable-text/component.mjs +14 -12
- package/esm2022/editable-text/module.mjs +2 -2
- package/esm2022/effect-directive/coerce-number.directive.mjs +4 -4
- package/esm2022/effect-directive/e2e-attribute-binding.directive.mjs +3 -3
- package/esm2022/effect-directive/event.directive.mjs +3 -3
- package/esm2022/effect-directive/min-max.directive.mjs +3 -3
- package/esm2022/effect-directive/module.mjs +2 -2
- package/esm2022/effect-directive/trim.directive.mjs +3 -3
- package/esm2022/effect-directive/validators.directive.mjs +3 -3
- package/esm2022/exec/module.mjs +2 -2
- package/esm2022/exec/placeholder/component.mjs +4 -3
- package/esm2022/exec/service.mjs +3 -3
- package/esm2022/exec/terminal/component.mjs +77 -69
- package/esm2022/exec/terminal-group/component.mjs +42 -44
- package/esm2022/feature-gate-forbidden/component/component.mjs +9 -8
- package/esm2022/feature-gate-forbidden/module.mjs +2 -2
- package/esm2022/form/directives/value-trace.directive.mjs +4 -4
- package/esm2022/form/errors-mapper/base-errors-mapper.mjs +3 -3
- package/esm2022/form/errors-mapper/default-errors-mapper.service.mjs +3 -3
- package/esm2022/form/errors-mapper/errors-mapper-component/component.mjs +6 -5
- package/esm2022/form/errors-mapper/errors-mapper.directive.mjs +7 -6
- package/esm2022/form/errors-mapper/errors-mapper.module.mjs +2 -2
- package/esm2022/form/labels-editor/component.mjs +36 -36
- package/esm2022/form/taints-editor/component.mjs +42 -42
- package/esm2022/form/upload-file/component.mjs +9 -7
- package/esm2022/form/utils.mjs +1 -1
- package/esm2022/form/validators/async-function-validator.directive.mjs +4 -3
- package/esm2022/form/validators/dns1123-subdomain.mjs +1 -1
- package/esm2022/form/validators/function-validator.directive.mjs +4 -3
- package/esm2022/form/validators/maxlength-minlength-validator.directive.mjs +9 -7
- package/esm2022/form/validators/module.mjs +7 -8
- package/esm2022/form/validators/not-be-validator.directive.mjs +4 -3
- package/esm2022/form/validators/one-of-validator.directive.mjs +4 -3
- package/esm2022/form/validators/resource-limit.mjs +1 -1
- package/esm2022/form/validators/strong-password/strong-password-tooltip/component.mjs +30 -28
- package/esm2022/form/validators/strong-password/strong-password-validator.directive.mjs +3 -3
- package/esm2022/form/validators/strong-password/strong-password-validator.module.mjs +6 -7
- package/esm2022/form/validators/utils.mjs +1 -1
- package/esm2022/graph-canvas/components/graph-actions.component.mjs +3 -2
- package/esm2022/graph-canvas/components/graph-canvas.component.mjs +25 -23
- package/esm2022/graph-canvas/components/graph-link.component.mjs +12 -13
- package/esm2022/graph-canvas/components/graph-links.component.mjs +3 -2
- package/esm2022/graph-canvas/components/graph-node.directive.mjs +4 -4
- package/esm2022/graph-canvas/graph-canvas.module.mjs +2 -2
- package/esm2022/graph-canvas/graph-store.service.mjs +2 -2
- package/esm2022/grid-layout/components/grid/component.mjs +5 -4
- package/esm2022/grid-layout/components/grid-items/component.mjs +8 -7
- package/esm2022/grid-layout/directives/drag-handler.directive.mjs +3 -3
- package/esm2022/grid-layout/directives/placeholder.directive.mjs +3 -3
- package/esm2022/grid-layout/directives/remove-handler.directive.mjs +3 -3
- package/esm2022/grid-layout/directives/resize-handler.directive.mjs +3 -3
- package/esm2022/grid-layout/grid-layout.service.mjs +2 -2
- package/esm2022/grid-layout/grid-placeholder.service.mjs +3 -3
- package/esm2022/grid-layout/module.mjs +2 -2
- package/esm2022/grid-layout/utils/grid.utils.mjs +1 -1
- package/esm2022/grid-layout/utils/react-grid-layout.utils.mjs +1 -1
- package/esm2022/grid-layout/utils/scroll.utils.mjs +1 -1
- package/esm2022/help-document/component.mjs +18 -16
- package/esm2022/help-document/directive.mjs +4 -4
- package/esm2022/help-document/module.mjs +2 -2
- package/esm2022/help-document/service.mjs +4 -4
- package/esm2022/iframe-config/config.service.mjs +3 -3
- package/esm2022/k8s-resource-list/footer/component.mjs +53 -51
- package/esm2022/k8s-resource-list/k8s-resource-list.mjs +3 -6
- package/esm2022/k8s-resource-list/k8s-resource-list.module.mjs +2 -2
- package/esm2022/k8s-resource-list/k8s-resource-paged-list.mjs +1 -1
- package/esm2022/k8s-resource-list/utils.mjs +1 -1
- package/esm2022/k8s-shared/constants.mjs +53 -0
- package/esm2022/k8s-shared/k8s-resource-translate-key.pipe.mjs +30 -0
- package/esm2022/k8s-shared/k8s-shared-util.service.mjs +3 -3
- package/esm2022/k8s-shared/public-api.mjs +2 -1
- package/esm2022/k8s-shared/update-description-dialog/component.mjs +10 -9
- package/esm2022/k8s-shared/update-display-name-dialog/component.mjs +22 -20
- package/esm2022/k8s-shared/update-key-value-dialog/component.mjs +13 -11
- package/esm2022/lazy-component/lazy-load-component.mjs +25 -26
- package/esm2022/lazy-component/visibility.service.mjs +2 -2
- package/esm2022/license/license-api.mjs +3 -3
- package/esm2022/license/license-error/component.mjs +25 -25
- package/esm2022/license/license-error/module.mjs +2 -2
- package/esm2022/license/license.guard.mjs +4 -4
- package/esm2022/license/license.service.mjs +4 -4
- package/esm2022/list-display/component.mjs +39 -40
- package/esm2022/metric-chart/common-chart.service.mjs +3 -3
- package/esm2022/metric-chart/helpers.mjs +1 -1
- package/esm2022/metric-chart/metric-chart.component.mjs +6 -5
- package/esm2022/metric-chart/metric-chart.module.mjs +2 -2
- package/esm2022/metric-chart/metric-time-pick.mjs +20 -17
- package/esm2022/metric-chart/utils.mjs +1 -1
- package/esm2022/multi-search/action-input/component.mjs +180 -181
- package/esm2022/multi-search/form/component.mjs +26 -22
- package/esm2022/multi-search/multi-search-tags/component.mjs +33 -31
- package/esm2022/mutable/element.mjs +1 -1
- package/esm2022/mutable/mosaic/mosaic.component.mjs +6 -5
- package/esm2022/mutable/mosaic/mosaic.directive.mjs +3 -3
- package/esm2022/mutable/mutable.directive.mjs +4 -4
- package/esm2022/mutable/mutable.module.mjs +2 -2
- package/esm2022/notification/feedback-notification/component.mjs +22 -23
- package/esm2022/notification/notification-util.service.mjs +3 -3
- package/esm2022/notification/resource-error.interceptor.mjs +3 -3
- package/esm2022/overview-banner/overview-banner.component.mjs +3 -2
- package/esm2022/overview-banner/overview-banner.module.mjs +2 -2
- package/esm2022/page-guard/component/component.mjs +70 -78
- package/esm2022/page-guard/component/helper-directives.mjs +5 -5
- package/esm2022/page-guard/module.mjs +2 -2
- package/esm2022/page-scaffold/module.mjs +2 -2
- package/esm2022/page-scaffold/navigation/breadcrumb/breadcrumb-slot.directive.mjs +3 -3
- package/esm2022/page-scaffold/navigation/breadcrumb/breadcrumb.component.mjs +177 -88
- package/esm2022/page-scaffold/navigation/breadcrumb/breadcrumb.service.mjs +2 -2
- package/esm2022/page-scaffold/navigation/breadcrumb/module.mjs +2 -2
- package/esm2022/page-scaffold/navigation/lottie-icons/animation-data.mjs +1 -3
- package/esm2022/page-scaffold/navigation/lottie-icons/lottie-icon.directive.mjs +3 -3
- package/esm2022/page-scaffold/navigation/lottie-icons/module.mjs +2 -2
- package/esm2022/page-scaffold/navigation/lottie-icons/replace-lottie-colors.mjs +11 -11
- package/esm2022/page-scaffold/navigation/module.mjs +2 -2
- package/esm2022/page-scaffold/navigation/nav-menu/nav-item-li/nav-item-li.component.mjs +128 -99
- package/esm2022/page-scaffold/navigation/nav-menu/nav-item-ul/nav-item-ul.component.mjs +30 -32
- package/esm2022/page-scaffold/navigation/nav-menu/nav-menu.component.mjs +21 -19
- package/esm2022/page-scaffold/navigation/nav-menu/nav-menu.module.mjs +4 -4
- package/esm2022/page-scaffold/navigation/nav-menu/nav-menu.types.mjs +1 -1
- package/esm2022/page-scaffold/navigation/navconfig-loader/navconfig-loader.service.mjs +6 -5
- package/esm2022/page-scaffold/page/context.service.mjs +2 -2
- package/esm2022/page-scaffold/page/helper-directives.mjs +10 -10
- package/esm2022/page-scaffold/page/notices/maintenance.component.mjs +11 -11
- package/esm2022/page-scaffold/page/notices/notice.component.mjs +15 -15
- package/esm2022/page-scaffold/page/page.component.mjs +20 -20
- package/esm2022/page-scaffold/page/page.module.mjs +2 -2
- package/esm2022/page-scaffold/page-header/account-menu/component/component.mjs +40 -39
- package/esm2022/page-scaffold/page-header/account-menu/module.mjs +2 -2
- package/esm2022/page-scaffold/page-header/common-layout/common-layout.module.mjs +2 -2
- package/esm2022/page-scaffold/page-header/common-layout/context.service.mjs +4 -4
- package/esm2022/page-scaffold/page-header/common-layout/namespace-select/component.mjs +58 -59
- package/esm2022/page-scaffold/page-header/common-layout/product-select/component.mjs +64 -65
- package/esm2022/page-scaffold/page-header/common-layout/product-select/service.mjs +2 -2
- package/esm2022/page-scaffold/page-header/common-layout/project-select/base-selection.mjs +3 -3
- package/esm2022/page-scaffold/page-header/common-layout/store.service.mjs +3 -3
- package/esm2022/page-scaffold/page-header/component.mjs +24 -25
- package/esm2022/page-scaffold/page-header/enterprise-support-status/component.mjs +15 -14
- package/esm2022/page-scaffold/page-header/header-notify/component/header-notify.component.mjs +27 -27
- package/esm2022/page-scaffold/page-header/header-notify/component/notification-list/notification-list.component.mjs +22 -21
- package/esm2022/page-scaffold/page-header/header-notify/header-notify.module.mjs +2 -2
- package/esm2022/page-scaffold/page-header/header-notify/notify.service.mjs +5 -5
- package/esm2022/page-scaffold/page-header/help-menu/component/component.mjs +59 -62
- package/esm2022/page-scaffold/page-header/help-menu/module.mjs +2 -2
- package/esm2022/page-scaffold/page-header/module.mjs +2 -2
- package/esm2022/permission/helpers.mjs +1 -1
- package/esm2022/permission/k8s-permission.service.mjs +3 -3
- package/esm2022/permission/permission.guard.mjs +3 -3
- package/esm2022/pie-derivative-chart/donut-status/component.mjs +29 -28
- package/esm2022/pie-derivative-chart/indicator-color.directive.mjs +3 -3
- package/esm2022/pie-derivative-chart/numerical-limit.pipe.mjs +3 -3
- package/esm2022/pie-derivative-chart/pie-derivative-chart.module.mjs +2 -2
- package/esm2022/pie-derivative-chart/radial-bar/radial-bar-chart.component.mjs +54 -59
- package/esm2022/pod-status/component.mjs +167 -0
- package/esm2022/pod-status/public-api.mjs +4 -0
- package/esm2022/pod-status/status.mjs +84 -0
- package/esm2022/pod-status/typings.mjs +19 -0
- package/esm2022/public-api.mjs +3 -1
- package/esm2022/searchable-selector/component.mjs +73 -75
- package/esm2022/searchable-selector/module.mjs +2 -2
- package/esm2022/skeleton/item/component.mjs +4 -3
- package/esm2022/skeleton/module.mjs +2 -2
- package/esm2022/skeleton/nav-skeleton/component.mjs +8 -7
- package/esm2022/table/component.mjs +253 -271
- package/esm2022/table/helper.mjs +1 -1
- package/esm2022/table/helpers.directive.mjs +3 -3
- package/esm2022/table/module.mjs +40 -31
- package/esm2022/table/util.service.mjs +4 -4
- package/esm2022/translate/helpers.mjs +1 -1
- package/esm2022/translate/i18n-config.mjs +3 -8
- package/esm2022/translate/translate.directive.mjs +9 -9
- package/esm2022/translate/translate.module.mjs +2 -2
- package/esm2022/translate/translate.pipe.mjs +3 -3
- package/esm2022/translate/translate.service.mjs +4 -4
- package/esm2022/view-chart/custom-template/dropdown-legend.mjs +24 -26
- package/esm2022/view-chart/legend/legend.component.mjs +66 -70
- package/esm2022/view-chart/view-chart.component.mjs +90 -98
- package/esm2022/view-chart/view-chart.module.mjs +2 -2
- package/esm2022/view-zchart/custom-template/dropdown-legend.mjs +24 -26
- package/esm2022/view-zchart/legend/legend.component.mjs +77 -82
- package/esm2022/view-zchart/units.mjs +1 -1
- package/esm2022/view-zchart/view-zchart.component.mjs +111 -120
- package/esm2022/view-zchart/view-zchart.module.mjs +2 -2
- package/esm2022/widget/card-section/card-section.component.mjs +13 -12
- package/esm2022/widget/confirm-delete/confirm-delete.component.mjs +45 -46
- package/esm2022/widget/current-time/component.mjs +4 -3
- package/esm2022/widget/date-range-picker/component.mjs +42 -40
- package/esm2022/widget/field-set/column/component.mjs +5 -3
- package/esm2022/widget/field-set/group/component.mjs +3 -2
- package/esm2022/widget/field-set/item/component.mjs +8 -7
- package/esm2022/widget/foldable-block/component.mjs +25 -24
- package/esm2022/widget/foldable-item-in-table/component.mjs +41 -42
- package/esm2022/widget/loading-mask/loading-mask.component.mjs +9 -9
- package/esm2022/widget/password-input/component.mjs +72 -71
- package/esm2022/widget/relative-time/component.mjs +4 -3
- package/esm2022/widget/resource-multi-select/component.mjs +20 -19
- package/esm2022/widget/resource-multi-select/util.mjs +1 -1
- package/esm2022/widget/search-panel/component.mjs +3 -2
- package/esm2022/widget/search-panel/helper.directive.mjs +2 -2
- package/esm2022/widget/search-panel/search-item/component.mjs +3 -2
- package/esm2022/widget/select-prefix-label/directive.mjs +4 -4
- package/esm2022/widget/status-icon/status-icon.component.mjs +16 -15
- package/esm2022/widget/tags-label/component.mjs +61 -62
- package/esm2022/widget/terminating-tag/component.mjs +4 -3
- package/esm2022/widget/text-ellipsis/component.mjs +11 -11
- package/esm2022/widget/text-tooltip/directive.mjs +3 -3
- package/esm2022/widget/text-with-url/component.mjs +8 -8
- package/esm2022/widget/widget.module.mjs +2 -2
- package/esm2022/widget/zero-state/zero-state.component.mjs +17 -17
- package/esm2022/window-channel/base-window-channel.mjs +1 -1
- package/esm2022/window-channel/directives/host-link.directive.mjs +2 -2
- package/esm2022/window-channel/host-window-channel.service.mjs +3 -3
- package/esm2022/window-channel/plugin-window-channel.service.mjs +3 -3
- package/esm2022/workload-status-icon/component.mjs +72 -0
- package/esm2022/workload-status-icon/public-api.mjs +2 -0
- package/esm2022/xterm/xterm-terminal/xterm-terminal.component.mjs +68 -71
- package/esm2022/xterm/xterm-terminal/xterm-terminal.directive.mjs +3 -3
- package/esm2022/xterm/xterm.component.mjs +5 -4
- package/exec/terminal/component.d.ts +0 -1
- package/form/validators/async-function-validator.directive.d.ts +1 -1
- package/form/validators/function-validator.directive.d.ts +1 -1
- package/form/validators/maxlength-minlength-validator.directive.d.ts +2 -2
- package/form/validators/module.d.ts +8 -8
- package/form/validators/not-be-validator.directive.d.ts +1 -1
- package/form/validators/one-of-validator.directive.d.ts +1 -1
- package/form/validators/resource-limit.d.ts +1 -1
- package/form/validators/strong-password/strong-password-validator.module.d.ts +2 -2
- package/graph-canvas/components/graph-canvas.component.d.ts +2 -2
- package/k8s-resource-list/footer/component.d.ts +2 -1
- package/k8s-shared/constants.d.ts +7 -0
- package/k8s-shared/k8s-resource-translate-key.pipe.d.ts +9 -0
- package/k8s-shared/public-api.d.ts +1 -0
- package/license/license-api.d.ts +1 -1
- package/license/license-error/component.d.ts +1 -1
- package/metric-chart/helpers.d.ts +1 -1
- package/package.json +2 -1
- package/page-guard/component/component.d.ts +1 -1
- package/page-scaffold/navigation/breadcrumb/breadcrumb.component.d.ts +2 -0
- package/page-scaffold/navigation/nav-menu/nav-item-li/nav-item-li.component.d.ts +1 -0
- package/page-scaffold/navigation/nav-menu/nav-menu.types.d.ts +8 -1
- package/page-scaffold/navigation/navconfig-loader/navconfig-loader.service.d.ts +2 -1
- package/page-scaffold/page-header/header-notify/utils.d.ts +3 -3
- package/pod-status/component.d.ts +27 -0
- package/pod-status/public-api.d.ts +3 -0
- package/pod-status/status.d.ts +4 -0
- package/pod-status/typings.d.ts +16 -0
- package/public-api.d.ts +2 -0
- package/styles/ansi-color.scss +131 -0
- package/styles/global.scss +3 -1
- package/styles/tailwind-preset.scss +1 -1
- package/table/component.d.ts +2 -1
- package/table/module.d.ts +22 -6
- package/widget/zero-state/zero-state.component.d.ts +1 -1
- package/workload-status-icon/component.d.ts +36 -0
- package/workload-status-icon/public-api.d.ts +1 -0
- package/a-chart/a-chart.module.d.ts +0 -16
- package/a-chart/base-chart.d.ts +0 -24
- package/a-chart/chart-status.component.d.ts +0 -15
- package/a-chart/chart.component.d.ts +0 -56
- package/a-chart/components/base-component.d.ts +0 -12
- package/a-chart/components/legend/base-legend.component.d.ts +0 -31
- package/a-chart/components/legend/dropdown-legend.d.ts +0 -17
- package/a-chart/components/legend/legend.component.d.ts +0 -17
- package/a-chart/components/legend/public-api.d.ts +0 -3
- package/a-chart/components/public-api.d.ts +0 -3
- package/a-chart/components/title.component.d.ts +0 -17
- package/a-chart/constant.d.ts +0 -6
- package/a-chart/public-api.d.ts +0 -12
- package/a-chart/types.d.ts +0 -38
- package/a-chart/utils.d.ts +0 -13
- package/a-metric-chart/a-metric-chart.component.d.ts +0 -154
- package/a-metric-chart/a-metric-chart.module.d.ts +0 -16
- package/a-metric-chart/bar-gauge/bar-gauge.component.d.ts +0 -25
- package/a-metric-chart/base-chart.component.d.ts +0 -14
- package/a-metric-chart/metric-chart-refresh.service.d.ts +0 -8
- package/a-metric-chart/public-api.d.ts +0 -14
- package/a-metric-chart/stat-chart/stat-chart.component.d.ts +0 -11
- package/a-metric-chart/table-chart/table-chart.component.d.ts +0 -29
- package/a-metric-chart/types.d.ts +0 -130
- package/a-metric-chart/utils/public-api.d.ts +0 -3
- package/a-metric-chart/utils/range.d.ts +0 -1
- package/a-metric-chart/utils/unit.d.ts +0 -48
- package/a-metric-chart/utils/util.d.ts +0 -45
- package/api/monitor-api.service.d.ts +0 -104
- package/esm2022/a-chart/a-chart.module.mjs +0 -76
- package/esm2022/a-chart/base-chart.mjs +0 -98
- package/esm2022/a-chart/chart-status.component.mjs +0 -195
- package/esm2022/a-chart/chart.component.mjs +0 -307
- package/esm2022/a-chart/components/base-component.mjs +0 -23
- package/esm2022/a-chart/components/legend/base-legend.component.mjs +0 -111
- package/esm2022/a-chart/components/legend/dropdown-legend.mjs +0 -199
- package/esm2022/a-chart/components/legend/legend.component.mjs +0 -102
- package/esm2022/a-chart/components/legend/public-api.mjs +0 -4
- package/esm2022/a-chart/components/public-api.mjs +0 -4
- package/esm2022/a-chart/components/title.component.mjs +0 -99
- package/esm2022/a-chart/constant.mjs +0 -24
- package/esm2022/a-chart/public-api.mjs +0 -13
- package/esm2022/a-chart/types.mjs +0 -7
- package/esm2022/a-chart/utils.mjs +0 -37
- package/esm2022/a-metric-chart/a-metric-chart.component.mjs +0 -937
- package/esm2022/a-metric-chart/a-metric-chart.module.mjs +0 -74
- package/esm2022/a-metric-chart/bar-gauge/bar-gauge.component.mjs +0 -166
- package/esm2022/a-metric-chart/base-chart.component.mjs +0 -30
- package/esm2022/a-metric-chart/metric-chart-refresh.service.mjs +0 -18
- package/esm2022/a-metric-chart/public-api.mjs +0 -15
- package/esm2022/a-metric-chart/stat-chart/stat-chart.component.mjs +0 -122
- package/esm2022/a-metric-chart/table-chart/table-chart.component.mjs +0 -201
- package/esm2022/a-metric-chart/types.mjs +0 -26
- package/esm2022/a-metric-chart/utils/public-api.mjs +0 -4
- package/esm2022/a-metric-chart/utils/range.mjs +0 -35
- package/esm2022/a-metric-chart/utils/unit.mjs +0 -83
- package/esm2022/a-metric-chart/utils/util.mjs +0 -243
- package/esm2022/api/monitor-api.service.mjs +0 -158
- package/esm2022/notification/notification-util.module.mjs +0 -32
- package/esm2022/page-scaffold/navigation/lottie-icons/animations/dashboard.json +0 -1
- package/notification/notification-util.module.d.ts +0 -10
package/api/helpers.d.ts
CHANGED
|
@@ -3,27 +3,19 @@
|
|
|
3
3
|
* @module api
|
|
4
4
|
*/
|
|
5
5
|
import { DeepReadonly, Keys, KubernetesResource, ValueOf } from '../core/public-api';
|
|
6
|
-
import { K8sResourceDefinition, WatchAPIResponse } from './types';
|
|
6
|
+
import { K8sResourceDefinition, K8sResourceDefinitions, WatchAPIResponse } from './types';
|
|
7
7
|
export declare const EMPTY_API_PREFIX_PARTS: {
|
|
8
8
|
readonly apiGroup: "";
|
|
9
9
|
readonly apiVersion: "";
|
|
10
10
|
};
|
|
11
|
-
export declare const getApiPrefixParts: (apiPrefix: string) => Omit<Required<K8sResourceDefinition>,
|
|
11
|
+
export declare const getApiPrefixParts: (apiPrefix: string) => Omit<Required<K8sResourceDefinition>, "type">;
|
|
12
12
|
export declare const normalizeApiGroup: (apiGroup?: string) => string;
|
|
13
|
-
export declare const normalizeDefinition: <T extends
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
type: string;
|
|
20
|
-
apiGroup?: string;
|
|
21
|
-
apiVersion?: string;
|
|
22
|
-
}>>>, R extends {
|
|
23
|
-
readonly RESOURCE_DEFINITIONS: DeepReadonly<T>;
|
|
24
|
-
readonly RESOURCE_TYPES: DeepReadonly<Keys<T>>;
|
|
25
|
-
readonly getYamlApiVersion: (definition: ValueOf<T> | keyof T) => string;
|
|
26
|
-
}>(RESOURCE_DEFINITIONS: T) => R;
|
|
13
|
+
export declare const normalizeDefinition: <T extends K8sResourceDefinition>(definition: T) => Required<T>;
|
|
14
|
+
export declare const createResourceDefinitions: <T extends K8sResourceDefinitions, R extends DeepReadonly<{
|
|
15
|
+
RESOURCE_DEFINITIONS: T;
|
|
16
|
+
RESOURCE_TYPES: Keys<T>;
|
|
17
|
+
getYamlApiVersion: (definition: keyof T | ValueOf<T>) => string;
|
|
18
|
+
}>>(RESOURCE_DEFINITIONS: T) => R;
|
|
27
19
|
export declare const getMetadataHeaders: (isList?: boolean, customAccept?: string) => {
|
|
28
20
|
Accept: string;
|
|
29
21
|
};
|
|
@@ -3,7 +3,7 @@ import { AbstractControl, FormGroupDirective, NgForm } from '@angular/forms';
|
|
|
3
3
|
import { Subject } from 'rxjs';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare const ARRAY_TABLE_FORM_ERROR_BG: string;
|
|
6
|
-
export declare const rowBackgroundColorFn: <T extends AbstractControl
|
|
6
|
+
export declare const rowBackgroundColorFn: <T extends AbstractControl>({ invalid, }: T) => string;
|
|
7
7
|
export declare const noShowRowError: () => boolean;
|
|
8
8
|
export declare class ArrayFormTableHeaderDirective {
|
|
9
9
|
templateRef: TemplateRef<any>;
|
|
@@ -45,7 +45,9 @@ export declare class NamespaceListComponent extends ResourceListBase implements
|
|
|
45
45
|
ngOnInit(): void;
|
|
46
46
|
getSortedNamespace(rawData: NamespaceDataItem[], namespace?: string): NamespaceDataItem[];
|
|
47
47
|
storeNamespaces(): void;
|
|
48
|
-
projectFilterFn: (
|
|
48
|
+
projectFilterFn: (keyword: string, option: SelectFilterOption<Project>) => boolean;
|
|
49
|
+
clusterFilterFn: (keyword: string, option: SelectFilterOption<string>) => boolean;
|
|
50
|
+
serviceMeshFilterFn: (keyword: string, option: SelectFilterOption<ServiceMeshGroup>) => boolean;
|
|
49
51
|
projectTrackFn: (project: Project) => string;
|
|
50
52
|
serviceMeshTrackFn: (mesh: ServiceMeshGroup) => string;
|
|
51
53
|
private initProject;
|
|
@@ -24,8 +24,9 @@ import * as i22 from "@angular/cdk/portal";
|
|
|
24
24
|
import * as i23 from "@angular/cdk/overlay";
|
|
25
25
|
import * as i24 from "../../k8s-resource-list/k8s-resource-list.module";
|
|
26
26
|
import * as i25 from "../../widget/widget.module";
|
|
27
|
+
import * as i26 from "../../core/directives/declare.directive";
|
|
27
28
|
export declare class ResourceSelectModule {
|
|
28
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<ResourceSelectModule, never>;
|
|
29
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ResourceSelectModule, [typeof i1.ResourceDashboardComponent, typeof i2.ResourceIconComponent, typeof i3.NamespaceListComponent, typeof i4.ResourceNoDataComponent, typeof i5.ResourceSelectorPopupComponent, typeof i6.ProjectListComponent, typeof i7.ResourceDataGridComponent, typeof i8.ClusterListComponent, typeof i9.ResourceGridHeaderDirective, typeof i10.ServiceMeshGroupListComponent, typeof i11.NamespacePageComponent, typeof i12.NamespaceSelectorComponent, typeof i13.ProjectPageComponent, typeof i14.ProjectSelectorComponent, typeof i15.ClusterSelectorComponent, typeof i16.ServiceMeshGroupSelectorComponent], [typeof i17.CommonModule, typeof i18.CoreModule, typeof i19.DialogModule, typeof i19.MessageModule, typeof i20.TranslateModule, typeof i19.IconModule, typeof i19.FormModule, typeof i19.SelectModule, typeof i19.InputModule, typeof i21.FormsModule, typeof i19.TagModule, typeof i19.DropdownModule, typeof i22.PortalModule, typeof i23.OverlayModule, typeof i24.K8SResourceListModule, typeof i19.TooltipModule, typeof i19.ButtonModule, typeof i25.WidgetModule], [typeof i11.NamespacePageComponent, typeof i12.NamespaceSelectorComponent, typeof i13.ProjectPageComponent, typeof i14.ProjectSelectorComponent, typeof i15.ClusterSelectorComponent, typeof i16.ServiceMeshGroupSelectorComponent]>;
|
|
30
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ResourceSelectModule, [typeof i1.ResourceDashboardComponent, typeof i2.ResourceIconComponent, typeof i3.NamespaceListComponent, typeof i4.ResourceNoDataComponent, typeof i5.ResourceSelectorPopupComponent, typeof i6.ProjectListComponent, typeof i7.ResourceDataGridComponent, typeof i8.ClusterListComponent, typeof i9.ResourceGridHeaderDirective, typeof i10.ServiceMeshGroupListComponent, typeof i11.NamespacePageComponent, typeof i12.NamespaceSelectorComponent, typeof i13.ProjectPageComponent, typeof i14.ProjectSelectorComponent, typeof i15.ClusterSelectorComponent, typeof i16.ServiceMeshGroupSelectorComponent], [typeof i17.CommonModule, typeof i18.CoreModule, typeof i19.DialogModule, typeof i19.MessageModule, typeof i20.TranslateModule, typeof i19.IconModule, typeof i19.FormModule, typeof i19.SelectModule, typeof i19.InputModule, typeof i21.FormsModule, typeof i19.TagModule, typeof i19.DropdownModule, typeof i22.PortalModule, typeof i23.OverlayModule, typeof i24.K8SResourceListModule, typeof i19.TooltipModule, typeof i19.ButtonModule, typeof i25.WidgetModule, typeof i26.DeclareDirective], [typeof i11.NamespacePageComponent, typeof i12.NamespaceSelectorComponent, typeof i13.ProjectPageComponent, typeof i14.ProjectSelectorComponent, typeof i15.ClusterSelectorComponent, typeof i16.ServiceMeshGroupSelectorComponent]>;
|
|
30
31
|
static ɵinj: i0.ɵɵInjectorDeclaration<ResourceSelectModule>;
|
|
31
32
|
}
|
|
@@ -2,11 +2,11 @@ import { CdkTreeNodeToggle } from '@angular/cdk/tree';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export declare class TreeNodeToggleDirective<T> extends CdkTreeNodeToggle<T> {
|
|
5
|
-
get
|
|
6
|
-
set
|
|
5
|
+
get aclTreeNodeToggleRecursive(): boolean;
|
|
6
|
+
set aclTreeNodeToggleRecursive(value: boolean);
|
|
7
7
|
aclTreeNodeToggleObservable: () => Observable<boolean>;
|
|
8
8
|
get isExpanded(): boolean;
|
|
9
9
|
_toggle(event: Event): void;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<TreeNodeToggleDirective<any>, never>;
|
|
11
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TreeNodeToggleDirective<any>, "[aclTreeNodeToggle]", never, { "
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TreeNodeToggleDirective<any>, "[aclTreeNodeToggle]", never, { "aclTreeNodeToggleRecursive": { "alias": "aclTreeNodeToggleRecursive"; "required": false; }; "aclTreeNodeToggleObservable": { "alias": "aclTreeNodeToggleObservable"; "required": false; }; }, {}, never, never, false, never>;
|
|
12
12
|
}
|
|
@@ -15,9 +15,11 @@ export declare const DELIMITER = ":";
|
|
|
15
15
|
export declare const WILDCARD = ".*";
|
|
16
16
|
export declare const DATE_FORMAT = "YYYY-MM-DD";
|
|
17
17
|
export declare const TIME_FORMAT = "HH:mm:ss";
|
|
18
|
-
export declare const DATE_TIME_FORMAT:
|
|
18
|
+
export declare const DATE_TIME_FORMAT = "YYYY-MM-DD HH:mm:ss";
|
|
19
19
|
export declare const WORKSPACE_PARAMS = "workspace_params_v1";
|
|
20
20
|
export declare const PUBLIC_NAMESPACE = "kube-public";
|
|
21
|
+
export declare const ASSIGN_ALL = "ALL_ALL";
|
|
22
|
+
export declare const ALL = "ALL";
|
|
21
23
|
export declare const Bracket: {
|
|
22
24
|
readonly PARENTHESES: readonly ["(", ")"];
|
|
23
25
|
readonly BRACES: readonly ["{", "}"];
|
|
@@ -48,6 +50,7 @@ export declare const LINK = "link";
|
|
|
48
50
|
export declare const ESCAPE_DEACTIVATE_CHECK = "escape";
|
|
49
51
|
export declare const CUSTOMIZED = "customized";
|
|
50
52
|
export declare const GLOBAL_CLUSTER = "global";
|
|
53
|
+
export declare const GLOBAL_NAMESPACE = "cpaas-system";
|
|
51
54
|
export declare const PACKAGE_RUNTIME_VALUE = "Runtime";
|
|
52
55
|
export declare const CRYPTO_HEADER_KEY = "X-Param-Response";
|
|
53
56
|
export declare enum CRYPTO_TYPE {
|
|
@@ -110,3 +110,11 @@ export declare const IMAGE_TAG_PATTERN: {
|
|
|
110
110
|
tip: string;
|
|
111
111
|
placeholder: string;
|
|
112
112
|
};
|
|
113
|
+
export declare const INT_PATTERN: {
|
|
114
|
+
pattern: RegExp;
|
|
115
|
+
tip: string;
|
|
116
|
+
};
|
|
117
|
+
export declare const NUMBER_PATTERN: {
|
|
118
|
+
pattern: RegExp;
|
|
119
|
+
tip: string;
|
|
120
|
+
};
|
|
@@ -26,7 +26,8 @@ export declare enum GenericStatusColor {
|
|
|
26
26
|
Failed = "rgb(var(--aui-color-red))",
|
|
27
27
|
Stopped = "rgb(var(--aui-color-n-3))",
|
|
28
28
|
Empty = "rgb(var(--aui-color-n-4))",
|
|
29
|
-
Missing = "rgb(var(--aui-color-n-6))"
|
|
29
|
+
Missing = "rgb(var(--aui-color-n-6))",
|
|
30
|
+
Completed = "rgb(var(--aui-color-n-3))"
|
|
30
31
|
}
|
|
31
32
|
export declare const DefaultStatusColorMapper: StringMap;
|
|
32
33
|
export declare const DefaultStatusIconMapper: StringMap;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { HttpEvent, HttpHandler, HttpInterceptor, HttpParameterCodec, HttpRequest } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class EncodeUrlParamsSafelyInterceptor implements HttpInterceptor, HttpParameterCodec {
|
|
5
|
+
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
6
|
+
encodeKey(key: string): string;
|
|
7
|
+
encodeValue(value: string): string;
|
|
8
|
+
decodeKey(key: string): string;
|
|
9
|
+
decodeValue(value: string): string;
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EncodeUrlParamsSafelyInterceptor, never>;
|
|
11
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EncodeUrlParamsSafelyInterceptor>;
|
|
12
|
+
}
|
package/core/types/k8s/crd.d.ts
CHANGED
|
@@ -331,7 +331,6 @@ export interface TKEClusterSpec {
|
|
|
331
331
|
features?: {
|
|
332
332
|
enableMasterSchedule?: boolean;
|
|
333
333
|
ipv6DualStack?: boolean;
|
|
334
|
-
gpuType?: 'Physical' | 'Virtual';
|
|
335
334
|
files?: Array<{
|
|
336
335
|
src?: string;
|
|
337
336
|
dst?: string;
|
|
@@ -456,11 +455,10 @@ export interface ClusterViewStatus {
|
|
|
456
455
|
architectures: string[];
|
|
457
456
|
totalCPUCores: number;
|
|
458
457
|
totalMemories: number;
|
|
459
|
-
totalNvidiaCores: number;
|
|
460
|
-
totalVGPUCores: number;
|
|
461
|
-
totalVGPUMemoryUnits: number;
|
|
462
|
-
extraResources: unknown;
|
|
463
458
|
criVersions: string[];
|
|
459
|
+
extraResources?: {
|
|
460
|
+
[key: string]: ClusterDeviceResource;
|
|
461
|
+
};
|
|
464
462
|
};
|
|
465
463
|
clusterNetwork: {
|
|
466
464
|
haLoadBalancerType?: 'Alive' | 'ThirdParty';
|
|
@@ -485,6 +483,14 @@ export interface ClusterViewStatus {
|
|
|
485
483
|
extraArgs: Record<string, Record<string, string>>;
|
|
486
484
|
publicAlternativeNames: string[];
|
|
487
485
|
}
|
|
486
|
+
export interface ClusterDeviceResource {
|
|
487
|
+
value: number;
|
|
488
|
+
unit?: string;
|
|
489
|
+
descriptionEn?: string;
|
|
490
|
+
descriptionZh?: string;
|
|
491
|
+
labelEn?: string;
|
|
492
|
+
labelZh?: string;
|
|
493
|
+
}
|
|
488
494
|
export interface ProviderNetworkSpec {
|
|
489
495
|
defaultInterface: string;
|
|
490
496
|
customInterfaces: Array<{
|
package/core/types/k8s/raw.d.ts
CHANGED
|
@@ -504,6 +504,7 @@ export interface ContainerStatus {
|
|
|
504
504
|
ready?: boolean;
|
|
505
505
|
restartCount?: number;
|
|
506
506
|
state?: ContainerState;
|
|
507
|
+
started?: boolean;
|
|
507
508
|
}
|
|
508
509
|
export interface ContainerState {
|
|
509
510
|
running?: ContainerStateRunning;
|
|
@@ -925,44 +926,6 @@ export interface CustomResourceDefinition extends KubernetesResource {
|
|
|
925
926
|
preserveUnknownFields: boolean;
|
|
926
927
|
};
|
|
927
928
|
}
|
|
928
|
-
export interface CleanupRetentionPolicyResourceSpec {
|
|
929
|
-
controller?: string;
|
|
930
|
-
storagePluginRef?: {
|
|
931
|
-
name: string;
|
|
932
|
-
};
|
|
933
|
-
enabled?: boolean;
|
|
934
|
-
rules: RetentionPolicyRule[];
|
|
935
|
-
}
|
|
936
|
-
export interface CleanupRetentionPolicyResource extends KubernetesResource {
|
|
937
|
-
spec: CleanupRetentionPolicyResourceSpec;
|
|
938
|
-
}
|
|
939
|
-
export interface RetentionPolicyRule {
|
|
940
|
-
type: string;
|
|
941
|
-
value: string;
|
|
942
|
-
regex?: string[];
|
|
943
|
-
}
|
|
944
|
-
export type StoragePluginParams = Array<{
|
|
945
|
-
name: string;
|
|
946
|
-
value: string;
|
|
947
|
-
}>;
|
|
948
|
-
export interface storagePluginClass extends KubernetesResource {
|
|
949
|
-
spec: {
|
|
950
|
-
controller: string;
|
|
951
|
-
params: Array<{
|
|
952
|
-
name: string;
|
|
953
|
-
type: string;
|
|
954
|
-
}>;
|
|
955
|
-
};
|
|
956
|
-
}
|
|
957
|
-
export interface StoragePlugin extends KubernetesResource {
|
|
958
|
-
spec: {
|
|
959
|
-
storagePluginClassName: string;
|
|
960
|
-
params: StoragePluginParams;
|
|
961
|
-
};
|
|
962
|
-
status?: {
|
|
963
|
-
conditions?: Condition[];
|
|
964
|
-
};
|
|
965
|
-
}
|
|
966
929
|
export interface NameSpaceResourceRatio extends KubernetesResource {
|
|
967
930
|
spec: {
|
|
968
931
|
cpu: number;
|
|
@@ -973,3 +936,27 @@ export interface NameSpaceResourceRatio extends KubernetesResource {
|
|
|
973
936
|
clusterMemory: number;
|
|
974
937
|
};
|
|
975
938
|
}
|
|
939
|
+
export interface K8sEventSeries {
|
|
940
|
+
count: number;
|
|
941
|
+
lastObservedTime: string;
|
|
942
|
+
}
|
|
943
|
+
export interface K8sEventSource {
|
|
944
|
+
component?: string;
|
|
945
|
+
host?: string;
|
|
946
|
+
}
|
|
947
|
+
export interface K8sEvent extends KubernetesResource {
|
|
948
|
+
involvedObject?: ObjectReference;
|
|
949
|
+
reason?: string;
|
|
950
|
+
message?: string;
|
|
951
|
+
source?: K8sEventSource;
|
|
952
|
+
firstTimestamp?: string;
|
|
953
|
+
lastTimestamp?: string;
|
|
954
|
+
count?: number;
|
|
955
|
+
type?: string;
|
|
956
|
+
eventTime?: string;
|
|
957
|
+
series?: K8sEventSeries;
|
|
958
|
+
action?: string;
|
|
959
|
+
related?: ObjectReference;
|
|
960
|
+
reportingController?: string;
|
|
961
|
+
reportingInstance?: string;
|
|
962
|
+
}
|
|
@@ -1,13 +1,11 @@
|
|
|
1
1
|
import { TypeMeta } from './k8s/public-api';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const AIT_API_GROUP = "ait.alauda.io";
|
|
3
|
+
export declare const OAM_GROUP = "core.oam.dev";
|
|
4
|
+
export declare const ARGOCD_GROUP = "argoproj.io";
|
|
3
5
|
export declare const MACHINE_API_GROUP = "machine.alauda.io";
|
|
4
|
-
export declare const
|
|
6
|
+
export declare const VOLUME_SNAPSHOT_GROUP = "snapshot.storage.k8s.io";
|
|
5
7
|
export declare const KUBEVIRT_BASE_DOMAIN = "kubevirt.io";
|
|
6
8
|
export declare const K8S_CORE_API_GROUP = "core.kubernetes.io";
|
|
7
|
-
export declare const KATANOMI_CORE_API_GROUP: string;
|
|
8
|
-
export declare const DEVOPS_API_GROUP = "devops.alauda.io";
|
|
9
|
-
export declare const STANDARD_DEVOPS_API_GROUP = "devopsx.alauda.io";
|
|
10
|
-
export declare const API_VERSION = "v1alpha1";
|
|
11
9
|
export declare const K8S_APP_API_GROUP = "app.k8s.io";
|
|
12
10
|
export declare const COMMON_RESOURCE_DEFINITIONS: {
|
|
13
11
|
readonly ALAUDA_LOADBALANCER2: {
|
|
@@ -156,6 +154,11 @@ export declare const COMMON_RESOURCE_DEFINITIONS: {
|
|
|
156
154
|
readonly apiVersion: string;
|
|
157
155
|
readonly type: string;
|
|
158
156
|
};
|
|
157
|
+
readonly ADVANCED_CRON_JOB: {
|
|
158
|
+
readonly type: string;
|
|
159
|
+
readonly apiGroup: string;
|
|
160
|
+
readonly apiVersion: string;
|
|
161
|
+
};
|
|
159
162
|
readonly JOB: {
|
|
160
163
|
readonly apiGroup: string;
|
|
161
164
|
readonly type: string;
|
|
@@ -178,21 +181,6 @@ export declare const COMMON_RESOURCE_DEFINITIONS: {
|
|
|
178
181
|
readonly apiVersion: string;
|
|
179
182
|
readonly type: string;
|
|
180
183
|
};
|
|
181
|
-
readonly NOTIFICATION_SERVER: {
|
|
182
|
-
readonly apiGroup: string;
|
|
183
|
-
readonly apiVersion: string;
|
|
184
|
-
readonly type: string;
|
|
185
|
-
};
|
|
186
|
-
readonly NOTIFICATION_SENDER: {
|
|
187
|
-
readonly apiGroup: string;
|
|
188
|
-
readonly apiVersion: string;
|
|
189
|
-
readonly type: string;
|
|
190
|
-
};
|
|
191
|
-
readonly NOTIFICATION_RECEIVER: {
|
|
192
|
-
readonly apiGroup: string;
|
|
193
|
-
readonly apiVersion: string;
|
|
194
|
-
readonly type: string;
|
|
195
|
-
};
|
|
196
184
|
readonly PV: {
|
|
197
185
|
readonly type: string;
|
|
198
186
|
};
|
|
@@ -318,21 +306,6 @@ export declare const COMMON_RESOURCE_DEFINITIONS: {
|
|
|
318
306
|
readonly apiGroup: string;
|
|
319
307
|
readonly apiVersion: string;
|
|
320
308
|
};
|
|
321
|
-
readonly STORAGE_PLUGIN: {
|
|
322
|
-
readonly type: string;
|
|
323
|
-
readonly apiVersion: string;
|
|
324
|
-
readonly apiGroup: string;
|
|
325
|
-
};
|
|
326
|
-
readonly STORAGE_PLUGIN_CLASS: {
|
|
327
|
-
readonly type: string;
|
|
328
|
-
readonly apiVersion: string;
|
|
329
|
-
readonly apiGroup: string;
|
|
330
|
-
};
|
|
331
|
-
readonly CLUSTER_POLICY: {
|
|
332
|
-
readonly type: string;
|
|
333
|
-
readonly apiVersion: string;
|
|
334
|
-
readonly apiGroup: string;
|
|
335
|
-
};
|
|
336
309
|
readonly PRODUCT_BASE: {
|
|
337
310
|
readonly type: string;
|
|
338
311
|
readonly apiGroup: string;
|
|
@@ -353,30 +326,49 @@ export declare const COMMON_RESOURCE_DEFINITIONS: {
|
|
|
353
326
|
readonly apiGroup: string;
|
|
354
327
|
readonly apiVersion: string;
|
|
355
328
|
};
|
|
356
|
-
readonly
|
|
329
|
+
readonly SERVICEMESH_GROUP: {
|
|
357
330
|
readonly apiGroup: string;
|
|
358
331
|
readonly apiVersion: string;
|
|
359
332
|
readonly type: string;
|
|
360
333
|
};
|
|
361
|
-
readonly
|
|
362
|
-
readonly
|
|
334
|
+
readonly CLUSTER_MODULE: {
|
|
335
|
+
readonly type: string;
|
|
363
336
|
readonly apiVersion: string;
|
|
337
|
+
readonly apiGroup: string;
|
|
338
|
+
};
|
|
339
|
+
readonly USER_BINDINGS: {
|
|
364
340
|
readonly type: string;
|
|
341
|
+
readonly apiGroup: string;
|
|
342
|
+
readonly apiVersion: string;
|
|
365
343
|
};
|
|
366
|
-
readonly
|
|
344
|
+
readonly BATCH_ACTION: {
|
|
367
345
|
readonly apiGroup: string;
|
|
368
346
|
readonly apiVersion: string;
|
|
369
347
|
readonly type: string;
|
|
370
348
|
};
|
|
371
|
-
readonly
|
|
349
|
+
readonly EVENT: {
|
|
350
|
+
readonly type: string;
|
|
351
|
+
readonly apiVersion: string;
|
|
352
|
+
};
|
|
353
|
+
readonly SERVICE_MONITOR: {
|
|
354
|
+
readonly apiGroup: string;
|
|
372
355
|
readonly type: string;
|
|
373
356
|
readonly apiVersion: string;
|
|
357
|
+
};
|
|
358
|
+
readonly OAM_APPLICATION: {
|
|
374
359
|
readonly apiGroup: string;
|
|
360
|
+
readonly apiVersion: string;
|
|
361
|
+
readonly type: string;
|
|
375
362
|
};
|
|
376
|
-
readonly
|
|
363
|
+
readonly ARGOCD_APPLICATION_SET: {
|
|
364
|
+
readonly apiGroup: string;
|
|
365
|
+
readonly apiVersion: string;
|
|
377
366
|
readonly type: string;
|
|
367
|
+
};
|
|
368
|
+
readonly ARGOCD_APPLICATION: {
|
|
378
369
|
readonly apiGroup: string;
|
|
379
370
|
readonly apiVersion: string;
|
|
371
|
+
readonly type: string;
|
|
380
372
|
};
|
|
381
373
|
};
|
|
382
374
|
export declare const RESOURCE_TYPES: {
|
|
@@ -414,15 +406,13 @@ export declare const RESOURCE_TYPES: {
|
|
|
414
406
|
readonly SECRET: "SECRET";
|
|
415
407
|
readonly PRODUCT: "PRODUCT";
|
|
416
408
|
readonly CRON_JOB: "CRON_JOB";
|
|
409
|
+
readonly ADVANCED_CRON_JOB: "ADVANCED_CRON_JOB";
|
|
417
410
|
readonly JOB: "JOB";
|
|
418
411
|
readonly INGRESS: "INGRESS";
|
|
419
412
|
readonly PERSISTENT_VOLUME_CLAIM: "PERSISTENT_VOLUME_CLAIM";
|
|
420
413
|
readonly NAMESPACE: "NAMESPACE";
|
|
421
414
|
readonly NODE: "NODE";
|
|
422
415
|
readonly NODE_METRICS: "NODE_METRICS";
|
|
423
|
-
readonly NOTIFICATION_SERVER: "NOTIFICATION_SERVER";
|
|
424
|
-
readonly NOTIFICATION_SENDER: "NOTIFICATION_SENDER";
|
|
425
|
-
readonly NOTIFICATION_RECEIVER: "NOTIFICATION_RECEIVER";
|
|
426
416
|
readonly PV: "PV";
|
|
427
417
|
readonly CRD: "CRD";
|
|
428
418
|
readonly CHART_REPO: "CHART_REPO";
|
|
@@ -451,20 +441,21 @@ export declare const RESOURCE_TYPES: {
|
|
|
451
441
|
readonly PRODUCT_CONFIG: "PRODUCT_CONFIG";
|
|
452
442
|
readonly STORAGE_CLASS: "STORAGE_CLASS";
|
|
453
443
|
readonly VOLUME_SNAPSHOT_CLASS: "VOLUME_SNAPSHOT_CLASS";
|
|
454
|
-
readonly STORAGE_PLUGIN: "STORAGE_PLUGIN";
|
|
455
|
-
readonly STORAGE_PLUGIN_CLASS: "STORAGE_PLUGIN_CLASS";
|
|
456
|
-
readonly CLUSTER_POLICY: "CLUSTER_POLICY";
|
|
457
444
|
readonly PRODUCT_BASE: "PRODUCT_BASE";
|
|
458
445
|
readonly MODULE_INFO: "MODULE_INFO";
|
|
459
446
|
readonly PRODUCT_ENTRY: "PRODUCT_ENTRY";
|
|
460
447
|
readonly PRODUCT_DOCS_ENTRY: "PRODUCT_DOCS_ENTRY";
|
|
461
|
-
readonly GIT_SOURCE: "GIT_SOURCE";
|
|
462
|
-
readonly CLUSTER_GIT_SOURCE: "CLUSTER_GIT_SOURCE";
|
|
463
448
|
readonly SERVICEMESH_GROUP: "SERVICEMESH_GROUP";
|
|
464
449
|
readonly CLUSTER_MODULE: "CLUSTER_MODULE";
|
|
465
450
|
readonly USER_BINDINGS: "USER_BINDINGS";
|
|
451
|
+
readonly BATCH_ACTION: "BATCH_ACTION";
|
|
452
|
+
readonly EVENT: "EVENT";
|
|
453
|
+
readonly SERVICE_MONITOR: "SERVICE_MONITOR";
|
|
454
|
+
readonly OAM_APPLICATION: "OAM_APPLICATION";
|
|
455
|
+
readonly ARGOCD_APPLICATION_SET: "ARGOCD_APPLICATION_SET";
|
|
456
|
+
readonly ARGOCD_APPLICATION: "ARGOCD_APPLICATION";
|
|
466
457
|
};
|
|
467
|
-
export declare const getYamlApiVersion: (definition: "ALAUDA_LOADBALANCER2" | "ALB2" | "HELM_REQUEST" | "HELM_REQUEST_V1" | "DEPLOYMENT" | "FRONTEND" | "RULE" | "POD" | "PODS_EXEC" | "PODS_ROOT_EXEC" | "CONFIG_MAP" | "ALERT_TEMPLATE" | "APPLICATION" | "APPLICATION_HISTORY" | "CLUSTER" | "CLUSTER_VIEW" | "DAEMON_SET" | "STATEFUL_SET" | "DOMAIN" | "FEATURE" | "ALAUDA_FEATURE_GATE" | "CLUSTER_ALAUDA_FEATURE_GATE" | "HORIZONTAL_POD_AUTOSCALER" | "LOG" | "PROJECT" | "PROMETHEUS_RULE" | "ALERT_HISTORY" | "SELF_SUBJECT_ACCESS_REVIEW" | "VIEW" | "SERVICE" | "LIMIT_RANGE" | "SECRET" | "PRODUCT" | "CRON_JOB" | "JOB" | "INGRESS" | "PERSISTENT_VOLUME_CLAIM" | "NAMESPACE" | "NODE" | "NODE_METRICS" | "
|
|
458
|
+
export declare const getYamlApiVersion: (definition: "ALAUDA_LOADBALANCER2" | "ALB2" | "HELM_REQUEST" | "HELM_REQUEST_V1" | "DEPLOYMENT" | "FRONTEND" | "RULE" | "POD" | "PODS_EXEC" | "PODS_ROOT_EXEC" | "CONFIG_MAP" | "ALERT_TEMPLATE" | "APPLICATION" | "APPLICATION_HISTORY" | "CLUSTER" | "CLUSTER_VIEW" | "DAEMON_SET" | "STATEFUL_SET" | "DOMAIN" | "FEATURE" | "ALAUDA_FEATURE_GATE" | "CLUSTER_ALAUDA_FEATURE_GATE" | "HORIZONTAL_POD_AUTOSCALER" | "LOG" | "PROJECT" | "PROMETHEUS_RULE" | "ALERT_HISTORY" | "SELF_SUBJECT_ACCESS_REVIEW" | "VIEW" | "SERVICE" | "LIMIT_RANGE" | "SECRET" | "PRODUCT" | "CRON_JOB" | "ADVANCED_CRON_JOB" | "JOB" | "INGRESS" | "PERSISTENT_VOLUME_CLAIM" | "NAMESPACE" | "NODE" | "NODE_METRICS" | "PV" | "CRD" | "CHART_REPO" | "CHART" | "NETWORK_POLICY" | "SERVICE_ACCOUNT" | "REPLICA_SET" | "POD_SECURITY_POLICY" | "NAMESPACE_OVERVIEW" | "CSP" | "RESOURCE_QUOTA" | "CLUSTER_NETWORK_POLICY" | "VIRTUAL_MACHINE" | "VIRTUAL_MACHINE_INSTANCE" | "VIRTUAL_MACHINE_POOL" | "PROJECT_QUOTA" | "TKE_CLUSTER" | "TKE_MACHINE" | "MACHINE" | "NODE_GROUP" | "CLUSTERSERVICEVERSION" | "TENANT" | "SUBSCRIPTION" | "PACKAGE_MANIFEST" | "BUCKET_CLASS" | "PRODUCT_CONFIG" | "STORAGE_CLASS" | "VOLUME_SNAPSHOT_CLASS" | "PRODUCT_BASE" | "MODULE_INFO" | "PRODUCT_ENTRY" | "PRODUCT_DOCS_ENTRY" | "SERVICEMESH_GROUP" | "CLUSTER_MODULE" | "USER_BINDINGS" | "BATCH_ACTION" | "EVENT" | "SERVICE_MONITOR" | "OAM_APPLICATION" | "ARGOCD_APPLICATION_SET" | "ARGOCD_APPLICATION" | {
|
|
468
459
|
apiGroup: string;
|
|
469
460
|
type: string;
|
|
470
461
|
} | {
|
|
@@ -577,28 +568,20 @@ export declare const getYamlApiVersion: (definition: "ALAUDA_LOADBALANCER2" | "A
|
|
|
577
568
|
apiVersion: string;
|
|
578
569
|
type: string;
|
|
579
570
|
} | {
|
|
580
|
-
apiGroup: string;
|
|
581
571
|
type: string;
|
|
582
|
-
} | {
|
|
583
572
|
apiGroup: string;
|
|
584
|
-
|
|
573
|
+
apiVersion: string;
|
|
585
574
|
} | {
|
|
575
|
+
apiGroup: string;
|
|
586
576
|
type: string;
|
|
587
577
|
} | {
|
|
578
|
+
apiGroup: string;
|
|
588
579
|
type: string;
|
|
589
580
|
} | {
|
|
590
581
|
type: string;
|
|
591
582
|
} | {
|
|
592
|
-
apiGroup: string;
|
|
593
|
-
apiVersion: string;
|
|
594
583
|
type: string;
|
|
595
584
|
} | {
|
|
596
|
-
apiGroup: string;
|
|
597
|
-
apiVersion: string;
|
|
598
|
-
type: string;
|
|
599
|
-
} | {
|
|
600
|
-
apiGroup: string;
|
|
601
|
-
apiVersion: string;
|
|
602
585
|
type: string;
|
|
603
586
|
} | {
|
|
604
587
|
apiGroup: string;
|
|
@@ -703,12 +686,8 @@ export declare const getYamlApiVersion: (definition: "ALAUDA_LOADBALANCER2" | "A
|
|
|
703
686
|
apiVersion: string;
|
|
704
687
|
} | {
|
|
705
688
|
type: string;
|
|
706
|
-
apiVersion: string;
|
|
707
689
|
apiGroup: string;
|
|
708
|
-
} | {
|
|
709
|
-
type: string;
|
|
710
690
|
apiVersion: string;
|
|
711
|
-
apiGroup: string;
|
|
712
691
|
} | {
|
|
713
692
|
type: string;
|
|
714
693
|
apiVersion: string;
|
|
@@ -719,12 +698,16 @@ export declare const getYamlApiVersion: (definition: "ALAUDA_LOADBALANCER2" | "A
|
|
|
719
698
|
apiVersion: string;
|
|
720
699
|
} | {
|
|
721
700
|
type: string;
|
|
701
|
+
apiGroup: string;
|
|
722
702
|
apiVersion: string;
|
|
703
|
+
} | {
|
|
723
704
|
apiGroup: string;
|
|
705
|
+
apiVersion: string;
|
|
706
|
+
type: string;
|
|
724
707
|
} | {
|
|
725
708
|
type: string;
|
|
726
|
-
apiGroup: string;
|
|
727
709
|
apiVersion: string;
|
|
710
|
+
apiGroup: string;
|
|
728
711
|
} | {
|
|
729
712
|
type: string;
|
|
730
713
|
apiGroup: string;
|
|
@@ -734,21 +717,24 @@ export declare const getYamlApiVersion: (definition: "ALAUDA_LOADBALANCER2" | "A
|
|
|
734
717
|
apiVersion: string;
|
|
735
718
|
type: string;
|
|
736
719
|
} | {
|
|
737
|
-
|
|
720
|
+
type: string;
|
|
738
721
|
apiVersion: string;
|
|
722
|
+
} | {
|
|
723
|
+
apiGroup: string;
|
|
739
724
|
type: string;
|
|
725
|
+
apiVersion: string;
|
|
740
726
|
} | {
|
|
741
727
|
apiGroup: string;
|
|
742
728
|
apiVersion: string;
|
|
743
729
|
type: string;
|
|
744
730
|
} | {
|
|
745
|
-
type: string;
|
|
746
|
-
apiVersion: string;
|
|
747
731
|
apiGroup: string;
|
|
748
|
-
|
|
732
|
+
apiVersion: string;
|
|
749
733
|
type: string;
|
|
734
|
+
} | {
|
|
750
735
|
apiGroup: string;
|
|
751
736
|
apiVersion: string;
|
|
737
|
+
type: string;
|
|
752
738
|
}) => string;
|
|
753
739
|
export type ResourceType = keyof typeof RESOURCE_TYPES;
|
|
754
740
|
export declare const MachineMeta: TypeMeta;
|
package/core/utils/common.d.ts
CHANGED
|
@@ -11,18 +11,15 @@ export declare const numToStr: (num?: number) => string;
|
|
|
11
11
|
export declare const shortNum: (num?: number | string, digits?: number) => string;
|
|
12
12
|
export declare const isBlank: (str?: unknown) => boolean;
|
|
13
13
|
export declare const getBaseHref: () => string;
|
|
14
|
-
export declare const ifExist: <T>(toCheck: boolean | T
|
|
14
|
+
export declare const ifExist: <T>(toCheck: boolean | Nullable<T>, truthyValue: T, fallback?: T) => T;
|
|
15
15
|
export declare const isAbsoluteUrl: (url: string) => boolean;
|
|
16
16
|
export declare const noop: Callback;
|
|
17
17
|
export declare const toKeys: <T extends object>(source: T) => Keys<T>;
|
|
18
|
-
export declare const wrapText: (text?: string, wrapper?: Readonlyable<[
|
|
19
|
-
string,
|
|
20
|
-
string
|
|
21
|
-
]>, fallback?: string) => string;
|
|
18
|
+
export declare const wrapText: (text?: string, wrapper?: Readonlyable<[string, string]>, fallback?: string) => string;
|
|
22
19
|
export declare function parseJSONStream<T>(text: string): T[];
|
|
23
20
|
export declare const trackByUid: <T extends KubernetesResource>(_: number, resource: T) => string;
|
|
24
21
|
export declare const isK8sResource: <T extends KubernetesResource = KubernetesResource>(value: object) => value is T;
|
|
25
|
-
export declare const arrayify: <T, R = T extends (infer S)[] ? NonNullable<S> : NonNullable<T>>(...args:
|
|
22
|
+
export declare const arrayify: <T, R = T extends (infer S)[] ? NonNullable<S> : NonNullable<T>>(...args: Array<R | R[]>) => R[];
|
|
26
23
|
export declare function sleep(ms?: number): Promise<unknown>;
|
|
27
24
|
export declare const delay: typeof sleep;
|
|
28
25
|
export declare function scrollIntoView(container: HTMLElement, selected: HTMLElement): void;
|
|
@@ -41,12 +38,9 @@ export interface SafeAssignOptions {
|
|
|
41
38
|
* @param optionsOrNotice
|
|
42
39
|
* @return object 一个全新的对象
|
|
43
40
|
*/
|
|
44
|
-
export declare const safeAssign: <T extends Record<string, any>>(sources: T[], optionsOrNotice?: SafeAssignOptions[
|
|
41
|
+
export declare const safeAssign: <T extends Record<string, any>>(sources: T[], optionsOrNotice?: SafeAssignOptions["notice"] | SafeAssignOptions) => UnionToIntersection<T>;
|
|
45
42
|
export declare const toLowerFirstLetter: (text: string) => string;
|
|
46
|
-
export declare const loadEnv: (envText: string) => Array<[
|
|
47
|
-
string,
|
|
48
|
-
string
|
|
49
|
-
]>;
|
|
43
|
+
export declare const loadEnv: (envText: string) => Array<[string, string]>;
|
|
50
44
|
export declare function filterEmptyValue<T extends Record<string, unknown>>(obj: T): Partial<T>;
|
|
51
45
|
export declare function parseBase64Type(base64Str: string): string;
|
|
52
46
|
export declare function appendImageHeader(value: string, prefix?: string): string;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Observable } from 'rxjs';
|
|
2
|
+
export type DisabledResult = {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
tooltip?: string;
|
|
5
|
+
} | boolean;
|
|
6
|
+
export type QueryDisabledFunc = () => DisabledResult | Observable<DisabledResult>;
|
|
7
|
+
/**
|
|
8
|
+
* @description 获取同步状态
|
|
9
|
+
*/
|
|
10
|
+
export declare function getDisabledState(...judgeFns: QueryDisabledFunc[]): {
|
|
11
|
+
disabled: boolean;
|
|
12
|
+
tooltip?: string;
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* @description 获取异步状态
|
|
16
|
+
*/
|
|
17
|
+
export declare function getDisabledState$(...judgeFns: QueryDisabledFunc[]): Observable<{
|
|
18
|
+
disabled: boolean;
|
|
19
|
+
tooltip?: string;
|
|
20
|
+
}>;
|