@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
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { TemplateRef } from '@angular/core';
|
|
2
|
-
import { XOR } from 'ts-essentials';
|
|
3
|
-
import { LegendOpt, Options, TooltipOption, TooltipValue } from 'zz-chart';
|
|
4
|
-
import { MonitorMetricResult } from '../api/public-api';
|
|
5
|
-
import { StringMap, WorkspaceParams } from '../core/public-api';
|
|
6
|
-
import { Translation } from '../translate/public-api';
|
|
7
|
-
export declare enum MetricScope {
|
|
8
|
-
'CLUSTER' = "cluster",
|
|
9
|
-
'PROJECT' = "project",
|
|
10
|
-
'WORKSPACE' = "workspace"
|
|
11
|
-
}
|
|
12
|
-
export type LegendParams = string | ((params: IndicatorParams, result: MonitorMetricResult) => string);
|
|
13
|
-
export type SeriesParams = Partial<XOR<{
|
|
14
|
-
indicators: string | string[];
|
|
15
|
-
}, {
|
|
16
|
-
expr: string;
|
|
17
|
-
}> & {
|
|
18
|
-
invisible?: boolean;
|
|
19
|
-
instant?: boolean;
|
|
20
|
-
range?: boolean;
|
|
21
|
-
color?: string;
|
|
22
|
-
legend?: LegendParams;
|
|
23
|
-
}>;
|
|
24
|
-
export interface MetricParams {
|
|
25
|
-
start: number;
|
|
26
|
-
end: number;
|
|
27
|
-
step?: number;
|
|
28
|
-
scope?: MetricScope;
|
|
29
|
-
scopeValue?: string | WorkspaceParams;
|
|
30
|
-
dependentData?: boolean;
|
|
31
|
-
variableSource?: StringMap | StringMap[];
|
|
32
|
-
isIndex?: boolean;
|
|
33
|
-
}
|
|
34
|
-
export interface FetchParams {
|
|
35
|
-
indicatorParams: IndicatorParams[];
|
|
36
|
-
metricParams: MetricParams;
|
|
37
|
-
}
|
|
38
|
-
export interface IndicatorParams {
|
|
39
|
-
id?: string;
|
|
40
|
-
expr?: string;
|
|
41
|
-
indicators?: string;
|
|
42
|
-
variables: string[];
|
|
43
|
-
unit?: string;
|
|
44
|
-
legend?: string;
|
|
45
|
-
color?: string;
|
|
46
|
-
instant?: boolean;
|
|
47
|
-
range?: boolean;
|
|
48
|
-
invisible?: boolean;
|
|
49
|
-
}
|
|
50
|
-
export declare enum AUnitType {
|
|
51
|
-
MEMORY = "memory",
|
|
52
|
-
CAPACITY = "capacity"
|
|
53
|
-
}
|
|
54
|
-
export interface AMatchUnitParams {
|
|
55
|
-
base?: number;
|
|
56
|
-
threshold?: number;
|
|
57
|
-
unitType?: AUnitType;
|
|
58
|
-
unitRange?: string[];
|
|
59
|
-
defaultPrefix?: boolean;
|
|
60
|
-
prefix?: string;
|
|
61
|
-
baseUnit?: string;
|
|
62
|
-
groups?: Array<{
|
|
63
|
-
base: number;
|
|
64
|
-
range: string[];
|
|
65
|
-
}>;
|
|
66
|
-
conversions?: IndicatorUnitConversion[];
|
|
67
|
-
}
|
|
68
|
-
export interface IndicatorUnit {
|
|
69
|
-
type: string;
|
|
70
|
-
translation: Translation;
|
|
71
|
-
conversions: IndicatorUnitConversion[];
|
|
72
|
-
}
|
|
73
|
-
export interface IndicatorUnitConversion {
|
|
74
|
-
alias: string[];
|
|
75
|
-
unit: string;
|
|
76
|
-
scaler: number;
|
|
77
|
-
translation: Translation;
|
|
78
|
-
}
|
|
79
|
-
export declare enum Orientation {
|
|
80
|
-
'VERTICAL' = "vertical",
|
|
81
|
-
'HORIZONTAL' = "horizontal",
|
|
82
|
-
'AUTO' = "auto"
|
|
83
|
-
}
|
|
84
|
-
export interface LegendOption extends LegendOpt {
|
|
85
|
-
symbol?: 'circle' | 'square' | 'line';
|
|
86
|
-
template?: TemplateRef<unknown> | string | 'dropdown';
|
|
87
|
-
translation?: boolean;
|
|
88
|
-
selectAll?: boolean;
|
|
89
|
-
selectAllName?: boolean;
|
|
90
|
-
direction?: Orientation;
|
|
91
|
-
}
|
|
92
|
-
export interface AMetricChartOptions extends Omit<Options, 'title' | 'legend' | 'tooltip'> {
|
|
93
|
-
title?: {
|
|
94
|
-
text?: string | TemplateRef<unknown>;
|
|
95
|
-
description?: string | TemplateRef<unknown>;
|
|
96
|
-
descriptionContext?: StringMap;
|
|
97
|
-
suffix?: string;
|
|
98
|
-
};
|
|
99
|
-
legend?: LegendOption | boolean;
|
|
100
|
-
tooltip?: MetricChartTooltipOption | boolean;
|
|
101
|
-
table?: TableChartOptions;
|
|
102
|
-
stat?: StatOptions;
|
|
103
|
-
}
|
|
104
|
-
export interface StatOptions {
|
|
105
|
-
textMode?: ValueTextMode;
|
|
106
|
-
}
|
|
107
|
-
export declare enum ValueTextMode {
|
|
108
|
-
Auto = "auto",
|
|
109
|
-
Value = "value",
|
|
110
|
-
ValueAndName = "value_and_name",
|
|
111
|
-
Name = "name",
|
|
112
|
-
None = "none"
|
|
113
|
-
}
|
|
114
|
-
export interface MetricChartTooltipOption extends Omit<TooltipOption, 'itemFormatter'> {
|
|
115
|
-
itemFormatter?: ((value: TooltipValue[]) => string | TooltipValue[] | Element) | TemplateRef<unknown>;
|
|
116
|
-
titleFormatter?: string | ((title: string, values: TooltipValue[]) => string) | TemplateRef<unknown>;
|
|
117
|
-
itemTemplateContext?: Record<string, unknown>;
|
|
118
|
-
tooltipTitleContext?: Record<string, unknown>;
|
|
119
|
-
}
|
|
120
|
-
export interface TableChartOptions {
|
|
121
|
-
alignment?: 'left' | 'center' | 'right';
|
|
122
|
-
pagination?: TablePaginatorChartOptions;
|
|
123
|
-
}
|
|
124
|
-
export interface TablePaginatorChartOptions {
|
|
125
|
-
layout: string | string[];
|
|
126
|
-
currentPage?: number;
|
|
127
|
-
pageIndex?: number;
|
|
128
|
-
pageSize?: number;
|
|
129
|
-
total?: number;
|
|
130
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function roundInterval(start: number, end: number, isRich?: boolean): number;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { AChartData } from '../../a-chart/public-api';
|
|
2
|
-
import { AMatchUnitParams, IndicatorUnit } from '../types';
|
|
3
|
-
export declare const MATCH_UNIT_DEFAULT_BASE = 1024;
|
|
4
|
-
export declare function adaptChartUnit(data: Array<{
|
|
5
|
-
data?: Array<{
|
|
6
|
-
x: number;
|
|
7
|
-
y: number;
|
|
8
|
-
}>;
|
|
9
|
-
values?: Array<{
|
|
10
|
-
x: number;
|
|
11
|
-
y: number;
|
|
12
|
-
}>;
|
|
13
|
-
}>, adaptUnitParams: boolean | AMatchUnitParams): {
|
|
14
|
-
base: number;
|
|
15
|
-
exponent: number;
|
|
16
|
-
unit: string;
|
|
17
|
-
};
|
|
18
|
-
export declare function adaptUnit(seriesOrMetrics: Array<{
|
|
19
|
-
data?: Array<{
|
|
20
|
-
x: number;
|
|
21
|
-
y: number;
|
|
22
|
-
}>;
|
|
23
|
-
values?: Array<{
|
|
24
|
-
x: number;
|
|
25
|
-
y: number;
|
|
26
|
-
}>;
|
|
27
|
-
}>, params?: AMatchUnitParams): {
|
|
28
|
-
unit: string;
|
|
29
|
-
base: number;
|
|
30
|
-
exponent: number;
|
|
31
|
-
};
|
|
32
|
-
export declare function matchUnit(value: number, params?: AMatchUnitParams): {
|
|
33
|
-
unit: string;
|
|
34
|
-
base: number;
|
|
35
|
-
exponent: number;
|
|
36
|
-
};
|
|
37
|
-
export declare const BASE_UNITS: readonly ["K", "M", "G", "T", "P", "E"];
|
|
38
|
-
export declare const MEMORY_UNITS: string[];
|
|
39
|
-
export declare const UnitMap: {
|
|
40
|
-
[key: string]: readonly string[];
|
|
41
|
-
};
|
|
42
|
-
export declare function hasNoData(res: AChartData[]): boolean;
|
|
43
|
-
export declare function getIndicatorAdaptUnit(unit: string, unitMapper: IndicatorUnit[]): {
|
|
44
|
-
defaultPrefix: boolean;
|
|
45
|
-
base: number;
|
|
46
|
-
unitRange: string[];
|
|
47
|
-
conversions: import("../types").IndicatorUnitConversion[];
|
|
48
|
-
};
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import { DataItem, TooltipValue } from 'zz-chart';
|
|
2
|
-
import { AChartData } from '../../a-chart/public-api';
|
|
3
|
-
import { MonitorMetric, MonitorMetricResult } from '../../api/public-api';
|
|
4
|
-
import { Dictionary, StringMap } from '../../core/public-api';
|
|
5
|
-
import { FetchParams, IndicatorParams, MetricParams } from '../types';
|
|
6
|
-
export declare function handleMetricParams(params: IndicatorParams[], { variableSource, start, end, step, isIndex }: MetricParams): {
|
|
7
|
-
indicators: {
|
|
8
|
-
indicators: string;
|
|
9
|
-
range: boolean;
|
|
10
|
-
instant: boolean;
|
|
11
|
-
exprs: string[];
|
|
12
|
-
variables: StringMap[];
|
|
13
|
-
}[];
|
|
14
|
-
start: number;
|
|
15
|
-
end: number;
|
|
16
|
-
step: number;
|
|
17
|
-
};
|
|
18
|
-
export declare function handleChartData({ indicatorParams, metricParams }: FetchParams, data: MonitorMetric[]): AChartData[];
|
|
19
|
-
export declare function dependOnIndicator(indicatorParams: IndicatorParams[], data: MonitorMetric[]): AChartData[];
|
|
20
|
-
export declare function dependOnData(indicatorParams: IndicatorParams[], data: MonitorMetric[]): AChartData[];
|
|
21
|
-
export declare function handleDataResult(params: IndicatorParams, res: MonitorMetricResult): {
|
|
22
|
-
range: boolean;
|
|
23
|
-
values: {
|
|
24
|
-
x: number;
|
|
25
|
-
y: string;
|
|
26
|
-
}[];
|
|
27
|
-
instant: boolean;
|
|
28
|
-
type: string;
|
|
29
|
-
name: any;
|
|
30
|
-
};
|
|
31
|
-
export declare function handleLegend(params: IndicatorParams, result: MonitorMetricResult): any;
|
|
32
|
-
export declare const LEGEND_TEMPLATE_OPTIONS: Readonly<{
|
|
33
|
-
interpolate: RegExp;
|
|
34
|
-
}>;
|
|
35
|
-
export declare function getLegendName(metricKey: string, metric: StringMap): string;
|
|
36
|
-
export declare function fillNullData({ start, end, step }: MetricParams, res?: DataItem['values'], isZero?: boolean, stepLine?: boolean): any[];
|
|
37
|
-
export declare function handleDateAxisLabelFormats(params: MetricParams, isRich?: boolean): string;
|
|
38
|
-
export declare function limitMaxTooltipItem(context: TooltipValue[], limit?: number): TooltipValue[];
|
|
39
|
-
export declare const VARIABLE_KEY_CLUSTER = "$cluster";
|
|
40
|
-
export declare const VARIABLE_KEY_NAMESPACE = "$namespace";
|
|
41
|
-
export declare function replaceExprVariable(expr: string | string[], variable: Dictionary<any>): string;
|
|
42
|
-
export declare function findTimeRange(diff: number): {
|
|
43
|
-
start: number;
|
|
44
|
-
end: number;
|
|
45
|
-
};
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from '@angular/common/http';
|
|
2
|
-
import { Observable } from 'rxjs';
|
|
3
|
-
import { XOR } from 'ts-essentials';
|
|
4
|
-
import { IndicatorUnit } from '../a-metric-chart/types';
|
|
5
|
-
import { StringMap, WorkspaceParams } from '../core/public-api';
|
|
6
|
-
import { K8sApiService } from './k8s-api.service';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare const INDICATOR_PROMETHEUS_NOT_DEPLOYED = "platform.cluster.prometheus.not.deployed";
|
|
9
|
-
export declare const INDICATOR_PROMETHEUS_DOWN = "platform.cluster.prometheus.down";
|
|
10
|
-
export interface VariablesResult {
|
|
11
|
-
options: string[];
|
|
12
|
-
}
|
|
13
|
-
export declare const LIMITED_OLD_VERSION_3_14 = "3.12";
|
|
14
|
-
export declare class MonitorApiService {
|
|
15
|
-
private readonly http;
|
|
16
|
-
private readonly k8sApi;
|
|
17
|
-
private readonly urlPrefix;
|
|
18
|
-
constructor(http: HttpClient, k8sApi: K8sApiService);
|
|
19
|
-
getClusterMetrics: (cluster: string, params?: MonitorMetricParams) => Observable<MonitorMetric[]>;
|
|
20
|
-
getProjectMetrics: (project: string, params?: MonitorMetricParams) => Observable<MonitorMetric[]>;
|
|
21
|
-
getNamespaceMetrics: (workspace: WorkspaceParams, params?: MonitorMetricParams) => Observable<MonitorMetric[]>;
|
|
22
|
-
checkPrometheusStatus(cluster: string, scope?: Partial<WorkspaceParams>): Observable<{
|
|
23
|
-
notDeployed: boolean;
|
|
24
|
-
abnormal: boolean;
|
|
25
|
-
}>;
|
|
26
|
-
checkPrometheusDeployed(cluster: string, scope?: Partial<WorkspaceParams>): Observable<boolean>;
|
|
27
|
-
checkPrometheusAbnormal(cluster: string, scope?: Partial<WorkspaceParams>): Observable<boolean>;
|
|
28
|
-
private getMetrics;
|
|
29
|
-
private readonly indicatorStore$;
|
|
30
|
-
private readonly indicatorUnitsStore$;
|
|
31
|
-
getIndicators(cluster: string, params?: StringMap): Observable<IndicatorType[]>;
|
|
32
|
-
getIndicatorUnits(): Observable<IndicatorUnit[]>;
|
|
33
|
-
getClusterVariables: (cluster: string, params?: MonitorVariablesParams) => Observable<VariablesResult>;
|
|
34
|
-
getProjectVariables: (project: string, params?: MonitorVariablesParams) => Observable<VariablesResult>;
|
|
35
|
-
getNamespaceVariables: (workspace: WorkspaceParams, params?: MonitorVariablesParams) => Observable<VariablesResult>;
|
|
36
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MonitorApiService, never>;
|
|
37
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MonitorApiService>;
|
|
38
|
-
}
|
|
39
|
-
export declare function joinMetricSeparator(indicators: string[]): string;
|
|
40
|
-
export declare function stringifyMetricVariables(variables: Record<string, string>): string;
|
|
41
|
-
export declare function stringifyMetricParams(params: MonitorMetricParams): Record<string, string>;
|
|
42
|
-
export type MonitorMetricParams = Partial<XOR<{
|
|
43
|
-
start: number;
|
|
44
|
-
end: number;
|
|
45
|
-
step: number;
|
|
46
|
-
}, {
|
|
47
|
-
time: number;
|
|
48
|
-
}> & XOR<{
|
|
49
|
-
indicators: string | string[];
|
|
50
|
-
}, {
|
|
51
|
-
expr: string;
|
|
52
|
-
}> & {
|
|
53
|
-
timeout: number;
|
|
54
|
-
variables: Record<string, string | string[]>;
|
|
55
|
-
}>;
|
|
56
|
-
export interface MonitorVariablesParams {
|
|
57
|
-
expr: string;
|
|
58
|
-
regex?: string;
|
|
59
|
-
}
|
|
60
|
-
export interface MonitorMetric {
|
|
61
|
-
indicator: string;
|
|
62
|
-
query: string;
|
|
63
|
-
result: MonitorMetricResult[];
|
|
64
|
-
}
|
|
65
|
-
export interface CostMetric {
|
|
66
|
-
indicator: string;
|
|
67
|
-
result: CostMetricResult[];
|
|
68
|
-
}
|
|
69
|
-
export interface MonitorMetricResult {
|
|
70
|
-
metric: Record<string, string>;
|
|
71
|
-
values: Array<[number, string]>;
|
|
72
|
-
}
|
|
73
|
-
export interface CostMetricResult {
|
|
74
|
-
metric: Record<string, string>;
|
|
75
|
-
values: Array<[number, string]>;
|
|
76
|
-
}
|
|
77
|
-
export interface IndicatorType {
|
|
78
|
-
kind: string;
|
|
79
|
-
name: string;
|
|
80
|
-
alias: string;
|
|
81
|
-
unit: string;
|
|
82
|
-
string?: string;
|
|
83
|
-
value_type?: string;
|
|
84
|
-
type?: string;
|
|
85
|
-
query?: string;
|
|
86
|
-
alert_enabled?: boolean;
|
|
87
|
-
alertEnabled?: boolean;
|
|
88
|
-
aggregation_enabled?: boolean;
|
|
89
|
-
display_name?: string;
|
|
90
|
-
displayName?: string;
|
|
91
|
-
legend?: string;
|
|
92
|
-
summary?: string;
|
|
93
|
-
annotations?: IndicatorAnnotations;
|
|
94
|
-
variables?: string[];
|
|
95
|
-
}
|
|
96
|
-
export interface IndicatorAnnotations {
|
|
97
|
-
cn: string;
|
|
98
|
-
en: string;
|
|
99
|
-
asmExtraFeatures?: string;
|
|
100
|
-
descriptionEN?: string;
|
|
101
|
-
descriptionZH?: string;
|
|
102
|
-
displayNameEN?: string;
|
|
103
|
-
displayNameZH?: string;
|
|
104
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
1
|
-
import { ButtonModule, CheckboxModule, DropdownModule, IconModule, TooltipModule, } from '@alauda/ui';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { NgModule } from '@angular/core';
|
|
4
|
-
import { FormsModule } from '@angular/forms';
|
|
5
|
-
import { CoreModule } from '../core/public-api';
|
|
6
|
-
import { TranslateModule } from '../translate/public-api';
|
|
7
|
-
import { ChartStatusComponent } from './chart-status.component';
|
|
8
|
-
import { ChartComponent } from './chart.component';
|
|
9
|
-
import { LegendComponent, TitleComponent, LegendDropdownComponent, } from './components/public-api';
|
|
10
|
-
import * as i0 from "@angular/core";
|
|
11
|
-
import * as i1 from "@angular/common";
|
|
12
|
-
import * as i2 from "../core/pipes/pure.pipe";
|
|
13
|
-
import * as i3 from "../effect-directive/e2e-attribute-binding.directive";
|
|
14
|
-
import * as i4 from "@angular/forms";
|
|
15
|
-
import * as i5 from "@alauda/ui";
|
|
16
|
-
import * as i6 from "../translate/translate.pipe";
|
|
17
|
-
const EXPORT_COMPONENT = [
|
|
18
|
-
ChartComponent,
|
|
19
|
-
TitleComponent,
|
|
20
|
-
LegendComponent,
|
|
21
|
-
LegendDropdownComponent,
|
|
22
|
-
ChartStatusComponent,
|
|
23
|
-
];
|
|
24
|
-
export class AChartModule {
|
|
25
|
-
static { this.ɵfac = function AChartModule_Factory(t) { return new (t || AChartModule)(); }; }
|
|
26
|
-
static { this.ɵmod = /*@__PURE__*/ i0.ɵɵdefineNgModule({ type: AChartModule }); }
|
|
27
|
-
static { this.ɵinj = /*@__PURE__*/ i0.ɵɵdefineInjector({ imports: [CommonModule,
|
|
28
|
-
CoreModule,
|
|
29
|
-
TranslateModule,
|
|
30
|
-
IconModule,
|
|
31
|
-
ButtonModule,
|
|
32
|
-
FormsModule,
|
|
33
|
-
CheckboxModule,
|
|
34
|
-
TooltipModule,
|
|
35
|
-
DropdownModule] }); }
|
|
36
|
-
}
|
|
37
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(AChartModule, [{
|
|
38
|
-
type: NgModule,
|
|
39
|
-
args: [{
|
|
40
|
-
imports: [
|
|
41
|
-
CommonModule,
|
|
42
|
-
CoreModule,
|
|
43
|
-
TranslateModule,
|
|
44
|
-
IconModule,
|
|
45
|
-
ButtonModule,
|
|
46
|
-
FormsModule,
|
|
47
|
-
CheckboxModule,
|
|
48
|
-
TooltipModule,
|
|
49
|
-
DropdownModule,
|
|
50
|
-
],
|
|
51
|
-
declarations: [...EXPORT_COMPONENT],
|
|
52
|
-
exports: EXPORT_COMPONENT,
|
|
53
|
-
}]
|
|
54
|
-
}], null, null); })();
|
|
55
|
-
(function () { (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(AChartModule, { declarations: [ChartComponent,
|
|
56
|
-
TitleComponent,
|
|
57
|
-
LegendComponent,
|
|
58
|
-
LegendDropdownComponent,
|
|
59
|
-
ChartStatusComponent], imports: [CommonModule,
|
|
60
|
-
CoreModule,
|
|
61
|
-
TranslateModule,
|
|
62
|
-
IconModule,
|
|
63
|
-
ButtonModule,
|
|
64
|
-
FormsModule,
|
|
65
|
-
CheckboxModule,
|
|
66
|
-
TooltipModule,
|
|
67
|
-
DropdownModule], exports: [ChartComponent,
|
|
68
|
-
TitleComponent,
|
|
69
|
-
LegendComponent,
|
|
70
|
-
LegendDropdownComponent,
|
|
71
|
-
ChartStatusComponent] }); })();
|
|
72
|
-
i0.ɵɵsetComponentScope(ChartComponent, [ChartStatusComponent], [i1.AsyncPipe, i2.PurePipe]);
|
|
73
|
-
i0.ɵɵsetComponentScope(LegendComponent, [i1.NgClass, i1.NgForOf, i1.NgIf, i1.NgTemplateOutlet, i3.E2eAttributeBindingDirective, i4.NgControlStatus, i4.NgModel, i5.CheckboxComponent], [i1.AsyncPipe, i6.TranslatePipe]);
|
|
74
|
-
i0.ɵɵsetComponentScope(LegendDropdownComponent, [i1.NgClass, i1.NgForOf, i1.NgIf, i3.E2eAttributeBindingDirective, i5.IconComponent, i5.ButtonComponent, i4.NgControlStatus, i4.NgModel, i5.CheckboxComponent, i5.TooltipDirective, i5.TooltipActiveDirective], [i1.AsyncPipe, i6.TranslatePipe]);
|
|
75
|
-
i0.ɵɵsetComponentScope(ChartStatusComponent, [i1.NgIf, i1.NgTemplateOutlet, i3.E2eAttributeBindingDirective, i5.IconComponent, i5.ButtonComponent], [i1.AsyncPipe, i6.TranslatePipe]);
|
|
76
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYS1jaGFydC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvbW1vbi9zcmMvYS1jaGFydC9h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cnQgeyBUcmFuc2xhdGVNb2R1bGUgfSBmcm9tICcuLi90cmFuc2xhdGUvcHVibGljLWFwaSc7XG5cbmltcG9ydCB7IENoYXJ0U3RhdHVzQ29tcG9uZW50IH0gZnJvbSAnLi9jaGFydC1zdGF0dXMuY29tcG9uZW50JztcbmltcG9ydCB7IENoYXJ0Q29tcG9uZW50IH0gZnJvbSAnLi9jaGFydC5jb21wb25lbnQnO1xuaW1wb3J0IHtcbiAgTGVnZW5kQ29tcG9uZW50LFxuICBUaXRsZUNvbXBvbmVudCxcbiAgTGVnZW5kRHJvcGRvd25Db21wb25lbnQsXG59IGZyb20gJy4vY29tcG9uZW50cy9wdWJsaWMtYXBpJztcblxuY29uc3QgRVhQT1JUX0NPTVBPTkVOVCA9IFtcbiAgQ2hhcnRDb21wb25lbnQsXG4gIFRpdGxlQ29tcG9uZW50LFxuICBMZWdlbmRDb21wb25lbnQsXG4gIExlZ2VuZERyb3Bkb3duQ29tcG9uZW50LFxuICBDaGFydFN0YXR1c0NvbXBvbmVudCxcbl07XG5cbkBOZ01vZHVsZSh7XG4gIGltcG9ydHM6IFtcbiAgICBDb21tb25Nb2R1bGUsXG4gICAgQ29yZU1vZHVsZSxcbiAgICBUcmFuc2xhdGVNb2R1bGUsXG4gICAgSWNvbk1vZHVsZSxcbiAgICBCdXR0b25Nb2R1bGUsXG4gICAgRm9ybXNNb2R1bGUsXG4gICAgQ2hlY2tib3hNb2R1bGUsXG4gICAgVG9vbHRpcE1vZHVsZSxcbiAgICBEcm9wZG93bk1vZHVsZSxcbiAgXSxcbiAgZGVjbGFyYXRpb25zOiBbLi4uRVhQT1JUX0NPTVBPTkVOVF0sXG4gIGV4cG9ydHM6IEVYUE9SVF9DT01QT05FTlQsXG59KVxuZXhwb3J0IGNsYXNzIEFDaGFydE1vZHVsZSB7fVxuIl19
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
import { Directive, Input } from '@angular/core';
|
|
2
|
-
import { cloneDeep, merge } from 'lodash-es';
|
|
3
|
-
import { BehaviorSubject, Subject } from 'rxjs';
|
|
4
|
-
import { Chart } from 'zz-chart';
|
|
5
|
-
import { hasNoData } from '../metric-chart/public-api';
|
|
6
|
-
import { DEFAULT_CONFIG } from './constant';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export class BaseChart {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.customNoDataConvert = hasNoData;
|
|
11
|
-
this.chartStatus$ = new BehaviorSubject({
|
|
12
|
-
loading: true,
|
|
13
|
-
noData: false,
|
|
14
|
-
failed: false,
|
|
15
|
-
noLegend: false,
|
|
16
|
-
});
|
|
17
|
-
this.renderComplete$$ = new Subject();
|
|
18
|
-
}
|
|
19
|
-
init(config) {
|
|
20
|
-
this.changeStatus({
|
|
21
|
-
loading: true,
|
|
22
|
-
noData: this.customNoDataConvert
|
|
23
|
-
? this.customNoDataConvert(config.data)
|
|
24
|
-
: hasNoData(config.data),
|
|
25
|
-
});
|
|
26
|
-
this.destroy();
|
|
27
|
-
const cf = merge(cloneDeep(DEFAULT_CONFIG), config);
|
|
28
|
-
this.chartOptions = cf;
|
|
29
|
-
this.chart = new Chart(cf);
|
|
30
|
-
this.chartReactive = this.chart.reactive();
|
|
31
|
-
return this.chart;
|
|
32
|
-
}
|
|
33
|
-
render() {
|
|
34
|
-
this.chart?.render();
|
|
35
|
-
this.renderComplete$$.next(this.chart);
|
|
36
|
-
}
|
|
37
|
-
changeStatus(status) {
|
|
38
|
-
requestAnimationFrame(() => {
|
|
39
|
-
this.chartStatus$.next({
|
|
40
|
-
...this.chartStatus$.value,
|
|
41
|
-
...status,
|
|
42
|
-
});
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
handleChartType(type, data, options) {
|
|
46
|
-
if (!this.chart || ['stat', 'table', 'piechart'].includes(type)) {
|
|
47
|
-
return;
|
|
48
|
-
}
|
|
49
|
-
const hasInstantData = data.some(d => d.instant || d.type === 'point');
|
|
50
|
-
if (hasInstantData && ['area', 'line'].includes(type)) {
|
|
51
|
-
if (data.every(d => d.instant)) {
|
|
52
|
-
this.chart.line({
|
|
53
|
-
...options,
|
|
54
|
-
points: {
|
|
55
|
-
show: true,
|
|
56
|
-
},
|
|
57
|
-
stroke: '',
|
|
58
|
-
});
|
|
59
|
-
return;
|
|
60
|
-
}
|
|
61
|
-
data.forEach(d => {
|
|
62
|
-
if (d.instant && d.type === 'point') {
|
|
63
|
-
this.chart
|
|
64
|
-
.line({
|
|
65
|
-
...options,
|
|
66
|
-
points: {
|
|
67
|
-
show: true,
|
|
68
|
-
},
|
|
69
|
-
stroke: '',
|
|
70
|
-
})
|
|
71
|
-
.map(d.id || d.name);
|
|
72
|
-
}
|
|
73
|
-
else {
|
|
74
|
-
this.chart[type]({
|
|
75
|
-
...options,
|
|
76
|
-
})?.map(d.id || d.name);
|
|
77
|
-
}
|
|
78
|
-
});
|
|
79
|
-
return;
|
|
80
|
-
}
|
|
81
|
-
this.chart[type]?.({
|
|
82
|
-
...options,
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
destroy() {
|
|
86
|
-
this.chart?.off();
|
|
87
|
-
this.chart?.destroy();
|
|
88
|
-
this.chart = null;
|
|
89
|
-
}
|
|
90
|
-
static { this.ɵfac = function BaseChart_Factory(t) { return new (t || BaseChart)(); }; }
|
|
91
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BaseChart, inputs: { customNoDataConvert: "customNoDataConvert" } }); }
|
|
92
|
-
}
|
|
93
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseChart, [{
|
|
94
|
-
type: Directive
|
|
95
|
-
}], null, { customNoDataConvert: [{
|
|
96
|
-
type: Input
|
|
97
|
-
}] }); })();
|
|
98
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1jaGFydC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uL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cbiAgICAgIH1cbiAgICAgIGRhdGEuZm9yRWFjaChkID0+IHtcbiAgICAgICAgaWYgKGQuaW5zdGFudCAmJiBkLnR5cGUgPT09ICdwb2ludCcpIHtcbiAgICAgICAgICB0aGlzLmNoYXJ0XG4gICAgICAgICAgICAubGluZSh7XG4gICAgICAgICAgICAgIC4uLm9wdGlvbnMsXG4gICAgICAgICAgICAgIHBvaW50czoge1xuICAgICAgICAgICAgICAgIHNob3c6IHRydWUsXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIHN0cm9rZTogJycsXG4gICAgICAgICAgICB9KVxuICAgICAgICAgICAgLm1hcChkLmlkIHx8IGQubmFtZSk7XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgdGhpcy5jaGFydFt0eXBlIGFzICdsaW5lJyB8ICdhcmVhJyB8ICdiYXInIHwgJ3BvaW50J10oe1xuICAgICAgICAgICAgLi4ub3B0aW9ucyxcbiAgICAgICAgICB9KT8ubWFwKGQuaWQgfHwgZC5uYW1lKTtcbiAgICAgICAgfVxuICAgICAgfSk7XG4gICAgICByZXR1cm47XG4gICAgfVxuXG4gICAgdGhpcy5jaGFydFt0eXBlIGFzICdsaW5lJyB8ICdhcmVhJyB8ICdiYXInIHwgJ3BvaW50J10/Lih7XG4gICAgICAuLi5vcHRpb25zLFxuICAgIH0pO1xuICB9XG5cbiAgZGVzdHJveSgpIHtcbiAgICB0aGlzLmNoYXJ0Py5vZmYoKTtcbiAgICB0aGlzLmNoYXJ0Py5kZXN0cm95KCk7XG4gICAgdGhpcy5jaGFydCA9IG51bGw7XG4gIH1cbn1cbiJdfQ==
|