@alauda-fe/common 1.0.0 → 1.0.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/a-chart/chart.component.d.ts +1 -1
- package/a-chart/components/{index.d.ts → public-api.d.ts} +1 -1
- package/a-chart/public-api.d.ts +1 -1
- package/a-metric-chart/public-api.d.ts +1 -0
- package/a-metric-chart/types.d.ts +4 -2
- package/a-metric-chart/utils/util.d.ts +6 -4
- package/api/api-compatible.interceptor.d.ts +46 -0
- package/api/helpers.d.ts +1 -1
- package/api/k8s-api-resource.service.d.ts +1 -1
- package/api/k8s-api.service.d.ts +1 -1
- package/api/monitor-api.service.d.ts +2 -1
- package/api/platform-ui.service.d.ts +1 -1
- package/api/product.service.d.ts +1 -1
- package/api/project-api.service.d.ts +1 -1
- package/api/public-api.d.ts +1 -0
- package/api/resource-update.service.d.ts +1 -1
- package/api/types.d.ts +1 -1
- package/array-form-table/base-string-map-form.component.d.ts +1 -1
- package/array-form-table/form/component.d.ts +12 -1
- package/array-form-table/form/module.d.ts +1 -1
- package/array-form-table/key-value-form/component.d.ts +1 -1
- package/array-form-table/public-api.d.ts +1 -0
- package/array-form-table/string-array-form/component.d.ts +39 -0
- package/assets/icons/prod-icons.js +1 -1
- package/async-data/async-data-loader.d.ts +1 -1
- package/async-data/types.d.ts +1 -1
- package/authorization/guard.service.d.ts +1 -1
- package/authorization/state.service.d.ts +1 -1
- package/business/module-info/api.service.d.ts +2 -2
- package/business/notification-disabled-container/component.d.ts +14 -0
- package/business/notification-disabled-container/public-api.d.ts +1 -0
- package/business/public-api.d.ts +1 -0
- package/business/resource-select/base-list.d.ts +2 -2
- package/business/resource-select/context.service.d.ts +2 -2
- package/business/resource-select/exports/namespace-page/component.d.ts +1 -1
- package/business/resource-select/exports/namespace-selector/component.d.ts +1 -1
- package/business/resource-select/internals/cluster-list/component.d.ts +1 -2
- package/business/resource-select/internals/namespace-list/component.d.ts +2 -3
- package/business/resource-select/internals/project-list/component.d.ts +1 -1
- package/business/resource-select/project.service.d.ts +3 -2
- package/business/resource-select/types.d.ts +1 -1
- package/business/resource-select/utils.d.ts +1 -1
- package/chart/common/chart/chart.component.d.ts +2 -3
- package/chart/common/{index.d.ts → public-api.d.ts} +0 -1
- package/chart/public-api.d.ts +2 -1
- package/chart/utils.d.ts +1 -1
- package/code/code-editor-configs.d.ts +2 -1
- package/code/code.module.d.ts +8 -8
- package/code/k8s-yaml-display-dialog/component.d.ts +1 -1
- package/code/resource-yaml-display/component.d.ts +2 -4
- package/core/abstract/base-form-container.d.ts +1 -1
- package/core/components/public-api.d.ts +6 -0
- package/core/constants/constants.d.ts +1 -0
- package/core/constants/patterns.d.ts +83 -1
- package/core/constants/status-icons.d.ts +3 -0
- package/core/guards/leave-edit-page.guard.d.ts +1 -1
- package/core/module.d.ts +19 -19
- package/core/pipes/duration.pipe.d.ts +10 -0
- package/core/pipes/img-theme.pipe.d.ts +1 -1
- package/core/pipes/k8s-util.pipe.d.ts +2 -2
- package/core/pipes/page-env.pipe.d.ts +1 -1
- package/core/pipes/{index.d.ts → public-api.d.ts} +2 -1
- package/core/pipes/sanitize.pipe.d.ts +10 -0
- package/core/pipes/time.pipe.d.ts +2 -2
- package/core/public-api.d.ts +9 -9
- package/core/services/aui-paginator-intl.service.d.ts +1 -1
- package/core/services/aui-tooltip-copy-intl.service.d.ts +1 -1
- package/core/services/custom-code-editor-intl.service.d.ts +1 -1
- package/core/services/intercept-deactivate.service.d.ts +1 -1
- package/core/services/k8s-util.service.d.ts +2 -2
- package/core/services/workspace-helper.service.d.ts +1 -1
- package/core/services/yaml-util.service.d.ts +1 -1
- package/core/types/k8s/core.d.ts +11 -1
- package/core/types/k8s/crd.d.ts +98 -3
- package/core/types/k8s/raw.d.ts +9 -12
- package/core/types/{index.d.ts → public-api.d.ts} +1 -1
- package/core/types/resource-definitions.d.ts +27 -2
- package/core/utils/browser.d.ts +1 -0
- package/core/utils/common.d.ts +12 -1
- package/core/utils/decorators.d.ts +3 -1
- package/core/utils/k8s-util.d.ts +3 -1
- package/core/utils/node.d.ts +1 -1
- package/core/utils/observable.d.ts +1 -0
- package/core/utils/{index.d.ts → public-api.d.ts} +1 -1
- package/core/utils/sort-fn.d.ts +2 -0
- package/core/utils/unit.d.ts +0 -3
- package/core/utils/version.d.ts +1 -1
- package/core/utils/workspace.d.ts +1 -1
- package/core/utils/yaml.d.ts +2 -1
- package/custom-columns-setting/component.d.ts +1 -1
- package/esm2022/a-chart/a-chart.module.mjs +2 -2
- package/esm2022/a-chart/chart-status.component.mjs +2 -2
- package/esm2022/a-chart/chart.component.mjs +5 -4
- package/esm2022/a-chart/components/base-component.mjs +2 -2
- package/esm2022/a-chart/components/legend/public-api.mjs +4 -0
- package/esm2022/a-chart/components/public-api.mjs +4 -0
- package/esm2022/a-chart/components/title.component.mjs +4 -4
- package/esm2022/a-chart/public-api.mjs +2 -2
- package/esm2022/a-chart/utils.mjs +2 -2
- package/esm2022/a-metric-chart/a-metric-chart.component.mjs +57 -32
- package/esm2022/a-metric-chart/a-metric-chart.module.mjs +4 -4
- package/esm2022/a-metric-chart/bar-gauge/bar-gauge.component.mjs +2 -2
- package/esm2022/a-metric-chart/base-chart.component.mjs +2 -2
- package/esm2022/a-metric-chart/public-api.mjs +2 -1
- package/esm2022/a-metric-chart/table-chart/table-chart.component.mjs +2 -2
- package/esm2022/a-metric-chart/types.mjs +2 -1
- package/esm2022/a-metric-chart/utils/public-api.mjs +4 -0
- package/esm2022/a-metric-chart/utils/unit.mjs +2 -2
- package/esm2022/a-metric-chart/utils/util.mjs +28 -23
- package/esm2022/api/api-compatible.interceptor.mjs +101 -0
- package/esm2022/api/cluster-version.service.mjs +2 -2
- package/esm2022/api/crypto.interceptor.mjs +2 -2
- package/esm2022/api/helpers.mjs +2 -2
- package/esm2022/api/k8s-api-resource.service.mjs +2 -2
- package/esm2022/api/k8s-api.service.mjs +4 -4
- package/esm2022/api/monitor-api.service.mjs +2 -2
- package/esm2022/api/platform-ui.service.mjs +2 -2
- package/esm2022/api/product.service.mjs +2 -2
- package/esm2022/api/project-api.service.mjs +2 -2
- package/esm2022/api/public-api.mjs +2 -1
- package/esm2022/api/resource-update.service.mjs +1 -1
- package/esm2022/api/types.mjs +1 -1
- package/esm2022/array-form-table/base-string-map-form.component.mjs +1 -1
- package/esm2022/array-form-table/form/component.mjs +93 -50
- package/esm2022/array-form-table/form/module.mjs +7 -4
- package/esm2022/array-form-table/key-value-form/component.mjs +4 -4
- package/esm2022/array-form-table/key-value-table/component.mjs +3 -3
- package/esm2022/array-form-table/public-api.mjs +2 -1
- package/esm2022/array-form-table/string-array-form/component.mjs +267 -0
- package/esm2022/async-data/async-data-loader.mjs +1 -1
- package/esm2022/async-data/error-page/component.mjs +2 -2
- package/esm2022/async-data/types.mjs +1 -1
- package/esm2022/authorization/guard.service.mjs +3 -3
- package/esm2022/authorization/interceptor.service.mjs +2 -2
- package/esm2022/authorization/state.service.mjs +3 -3
- package/esm2022/business/module-info/api.service.mjs +5 -5
- package/esm2022/business/notification-disabled-container/component.mjs +87 -0
- package/esm2022/business/notification-disabled-container/public-api.mjs +2 -0
- package/esm2022/business/public-api.mjs +2 -1
- package/esm2022/business/resource-select/base-list.mjs +4 -4
- package/esm2022/business/resource-select/context.service.mjs +3 -3
- package/esm2022/business/resource-select/exports/namespace-page/component.mjs +3 -3
- package/esm2022/business/resource-select/exports/namespace-selector/component.mjs +3 -3
- package/esm2022/business/resource-select/internals/cluster-list/component.mjs +1 -1
- package/esm2022/business/resource-select/internals/data-grid/component.mjs +2 -2
- package/esm2022/business/resource-select/internals/meshgroup-list/component.mjs +2 -3
- package/esm2022/business/resource-select/internals/namespace-list/component.mjs +7 -7
- package/esm2022/business/resource-select/internals/no-data/component.mjs +3 -3
- package/esm2022/business/resource-select/internals/project-list/component.mjs +3 -3
- package/esm2022/business/resource-select/internals/resource-dashboard/component.mjs +3 -3
- package/esm2022/business/resource-select/internals/selector-popup/component.mjs +2 -2
- package/esm2022/business/resource-select/module.mjs +3 -3
- package/esm2022/business/resource-select/project.service.mjs +4 -4
- package/esm2022/business/resource-select/types.mjs +1 -1
- package/esm2022/business/resource-select/utils.mjs +1 -1
- package/esm2022/chart/chart.module.mjs +2 -2
- package/esm2022/chart/chart.service.mjs +2 -2
- package/esm2022/chart/common/chart/chart.component.mjs +2 -2
- package/esm2022/chart/common/{index.mjs → public-api.mjs} +1 -2
- package/esm2022/chart/common/tooltip/tooltip.component.mjs +2 -2
- package/esm2022/chart/public-api.mjs +3 -2
- package/esm2022/chart/utils.mjs +1 -1
- package/esm2022/code/code-editor-configs.mjs +5 -1
- package/esm2022/code/code.module.mjs +12 -11
- package/esm2022/code/k8s-yaml-display-dialog/component.mjs +1 -1
- package/esm2022/code/resource-yaml-display/component.mjs +26 -7
- package/esm2022/core/abstract/base-form-container.mjs +3 -3
- package/esm2022/core/abstract/public-api.mjs +3 -0
- package/esm2022/core/components/public-api.mjs +7 -0
- package/esm2022/core/constants/constants.mjs +2 -1
- package/esm2022/core/constants/patterns.mjs +102 -4
- package/esm2022/core/constants/public-api.mjs +6 -0
- package/esm2022/core/constants/status-icons.mjs +30 -1
- package/esm2022/core/constants/tokens.mjs +2 -2
- package/esm2022/core/directives/public-api.mjs +11 -0
- package/esm2022/core/guards/leave-edit-page.guard.mjs +5 -5
- package/esm2022/core/guards/public-api.mjs +5 -0
- package/esm2022/core/module.mjs +11 -11
- package/esm2022/core/pipes/duration.pipe.mjs +51 -0
- package/esm2022/core/pipes/img-header.pipe.mjs +2 -2
- package/esm2022/core/pipes/img-theme.pipe.mjs +3 -2
- package/esm2022/core/pipes/k8s-util.pipe.mjs +4 -4
- package/esm2022/core/pipes/page-env.pipe.mjs +3 -3
- package/esm2022/core/pipes/public-api.mjs +19 -0
- package/esm2022/core/pipes/safe.pipe.mjs +7 -2
- package/esm2022/core/pipes/sanitize.pipe.mjs +31 -0
- package/esm2022/core/pipes/time.pipe.mjs +8 -8
- package/esm2022/core/public-api.mjs +10 -10
- 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 +2 -2
- package/esm2022/core/services/custom-code-editor-intl.service.mjs +4 -4
- package/esm2022/core/services/feature-gate.service.mjs +3 -3
- package/esm2022/core/services/intercept-deactivate.service.mjs +3 -3
- package/esm2022/core/services/k8s-util.service.mjs +4 -6
- package/esm2022/core/services/public-api.mjs +15 -0
- package/esm2022/core/services/time.service.mjs +2 -2
- package/esm2022/core/services/workspace-helper.service.mjs +1 -1
- package/esm2022/core/services/yaml-util.service.mjs +5 -4
- package/esm2022/core/types/k8s/core.mjs +1 -1
- package/esm2022/core/types/k8s/crd.mjs +16 -1
- package/esm2022/core/types/k8s/public-api.mjs +4 -0
- package/esm2022/core/types/k8s/raw.mjs +3 -2
- package/esm2022/core/types/public-api.mjs +11 -0
- package/esm2022/core/types/resource-definitions.mjs +19 -4
- package/esm2022/core/utils/browser.mjs +5 -1
- package/esm2022/core/utils/cache-store.mjs +2 -2
- package/esm2022/core/utils/common.mjs +55 -3
- package/esm2022/core/utils/decorators.mjs +22 -1
- package/esm2022/core/utils/k8s-util.mjs +5 -3
- package/esm2022/core/utils/node.mjs +2 -2
- package/esm2022/core/utils/observable.mjs +11 -2
- package/esm2022/core/utils/public-api.mjs +23 -0
- package/esm2022/core/utils/sort-fn.mjs +7 -0
- package/esm2022/core/utils/unit.mjs +1 -13
- package/esm2022/core/utils/workspace.mjs +1 -1
- package/esm2022/core/utils/yaml.mjs +9 -1
- package/esm2022/custom-columns-setting/component.mjs +1 -1
- package/esm2022/editable-text/public-api.mjs +3 -0
- package/esm2022/effect-directive/event.directive.mjs +2 -2
- package/esm2022/exec/public-api.mjs +8 -0
- package/esm2022/exec/service.mjs +2 -3
- package/esm2022/exec/terminal/component.mjs +13 -17
- package/esm2022/exec/terminal-group/component.mjs +2 -2
- package/esm2022/feature-gate-forbidden/public-api.mjs +3 -0
- package/esm2022/form/errors-mapper/base-errors-mapper.mjs +42 -0
- package/esm2022/form/errors-mapper/default-errors-mapper.service.mjs +65 -0
- package/esm2022/form/errors-mapper/errors-mapper-component/component.mjs +71 -0
- package/esm2022/form/errors-mapper/errors-mapper.directive.mjs +115 -0
- package/esm2022/{errors-mapper → form/errors-mapper}/errors-mapper.module.mjs +1 -1
- package/esm2022/form/errors-mapper/public-api.mjs +5 -0
- package/esm2022/form/errors-mapper/types.mjs +2 -0
- package/esm2022/form/labels-editor/component.mjs +5 -6
- package/esm2022/form/public-api.mjs +7 -0
- package/esm2022/form/taints-editor/component.mjs +5 -5
- package/esm2022/form/upload-file/component.mjs +114 -0
- package/esm2022/form/validators/module.mjs +2 -2
- package/esm2022/form/validators/public-api.mjs +2 -2
- package/esm2022/form/validators/resource-limit.mjs +2 -2
- package/esm2022/form/validators/strong-password/public-api.mjs +4 -0
- package/esm2022/form/validators/strong-password/strong-password-tooltip/component.mjs +2 -2
- package/esm2022/form/validators/utils.mjs +3 -3
- package/esm2022/graph-canvas/components/graph-canvas.component.mjs +6 -3
- package/esm2022/graph-canvas/components/graph-link.component.mjs +8 -2
- package/esm2022/graph-canvas/components/graph-node.directive.mjs +2 -2
- package/esm2022/graph-canvas/graph-store.service.mjs +13 -2
- package/esm2022/graph-canvas/types.mjs +1 -1
- package/esm2022/grid-layout/grid-layout.service.mjs +1 -1
- package/esm2022/grid-layout/grid-placeholder.service.mjs +1 -1
- package/esm2022/grid-layout/public-api.mjs +11 -0
- package/esm2022/grid-layout/utils/client-rect.utils.mjs +1 -1
- package/esm2022/grid-layout/utils/scroll.utils.mjs +1 -1
- package/esm2022/help-document/component.mjs +14 -16
- package/esm2022/help-document/directive.mjs +17 -4
- package/esm2022/help-document/module.mjs +5 -6
- package/esm2022/help-document/service.mjs +7 -4
- package/esm2022/k8s-resource-list/footer/component.mjs +2 -2
- package/esm2022/k8s-resource-list/k8s-resource-list.mjs +2 -2
- package/esm2022/k8s-resource-list/k8s-resource-paged-list.mjs +2 -3
- package/esm2022/k8s-resource-list/types.mjs +1 -1
- package/esm2022/k8s-resource-list/utils.mjs +1 -1
- package/esm2022/k8s-shared/k8s-shared-util.service.mjs +152 -0
- package/esm2022/k8s-shared/public-api.mjs +10 -0
- package/esm2022/k8s-shared/update-description-dialog/component.mjs +112 -0
- package/esm2022/k8s-shared/update-display-name-dialog/component.mjs +133 -0
- package/esm2022/k8s-shared/update-key-value-dialog/component.mjs +111 -0
- package/esm2022/license/license-api.mjs +1 -1
- package/esm2022/license/license-error/module.mjs +2 -2
- package/esm2022/license/license.guard.mjs +3 -3
- package/esm2022/license/license.service.mjs +1 -1
- package/esm2022/metric-chart/helpers.mjs +3 -3
- package/esm2022/metric-chart/metric-chart.component.mjs +6 -4
- package/esm2022/metric-chart/public-api.mjs +1 -2
- package/esm2022/metric-chart/types.mjs +1 -1
- package/esm2022/metric-chart/utils.mjs +2 -2
- package/esm2022/multi-search/action-input/component.mjs +4 -4
- package/esm2022/multi-search/form/component.mjs +3 -3
- package/esm2022/multi-search/multi-search-tags/component.mjs +2 -2
- package/esm2022/multi-search/public-api.mjs +5 -0
- package/esm2022/mutable/mosaic/mosaic.component.mjs +2 -2
- package/esm2022/notification/errors-mapper.mjs +1 -1
- package/esm2022/notification/helpers.mjs +1 -1
- package/esm2022/notification/notification-util.service.mjs +4 -4
- package/esm2022/notification/resource-error.interceptor.mjs +2 -2
- package/esm2022/page-guard/component/component.mjs +3 -3
- package/esm2022/page-guard/module.mjs +4 -4
- package/esm2022/page-scaffold/module.mjs +5 -5
- package/esm2022/page-scaffold/navigation/breadcrumb/breadcrumb.component.mjs +1 -1
- package/esm2022/page-scaffold/navigation/breadcrumb/module.mjs +2 -2
- package/esm2022/page-scaffold/navigation/breadcrumb/public-api.mjs +5 -0
- package/esm2022/page-scaffold/navigation/lottie-icons/public-api.mjs +3 -0
- package/esm2022/page-scaffold/navigation/module.mjs +2 -2
- package/esm2022/page-scaffold/navigation/nav-menu/nav-menu.component.mjs +5 -5
- package/esm2022/page-scaffold/navigation/nav-menu/nav-menu.module.mjs +2 -2
- package/esm2022/page-scaffold/navigation/nav-menu/nav-menu.types.mjs +1 -1
- package/esm2022/page-scaffold/navigation/nav-menu/public-api.mjs +4 -0
- package/esm2022/page-scaffold/navigation/navconfig-loader/navconfig-loader.service.mjs +2 -2
- package/esm2022/page-scaffold/navigation/navconfig-loader/public-api.mjs +8 -0
- package/esm2022/page-scaffold/navigation/public-api.mjs +7 -0
- package/esm2022/page-scaffold/page/notices/maintenance.component.mjs +32 -26
- package/esm2022/page-scaffold/page/page.component.mjs +20 -12
- package/esm2022/page-scaffold/page/page.module.mjs +2 -2
- package/esm2022/page-scaffold/page/public-api.mjs +5 -0
- package/esm2022/page-scaffold/page-header/account-menu/component/component.mjs +2 -2
- package/esm2022/page-scaffold/page-header/common-layout/common-layout.module.mjs +3 -3
- package/esm2022/page-scaffold/page-header/common-layout/context.service.mjs +2 -2
- package/esm2022/page-scaffold/page-header/common-layout/namespace-select/component.mjs +3 -4
- package/esm2022/page-scaffold/page-header/common-layout/product-select/component.mjs +7 -7
- package/esm2022/page-scaffold/page-header/common-layout/project-select/base-selection.mjs +2 -2
- package/esm2022/page-scaffold/page-header/common-layout/store.service.mjs +3 -3
- package/esm2022/page-scaffold/page-header/enterprise-support-status/component.mjs +2 -2
- package/esm2022/page-scaffold/page-header/header-notify/notify.service.mjs +3 -3
- package/esm2022/page-scaffold/page-header/header-notify/utils.mjs +1 -1
- package/esm2022/page-scaffold/page-header/help-menu/component/component.mjs +3 -3
- package/esm2022/page-scaffold/page-header/public-api.mjs +14 -0
- package/esm2022/page-scaffold/public-api.mjs +5 -0
- package/esm2022/permission/helpers.mjs +2 -5
- package/esm2022/permission/k8s-permission.service.mjs +2 -3
- package/esm2022/permission/permission.guard.mjs +3 -3
- package/esm2022/permission/public-api.mjs +1 -2
- package/esm2022/permission/types.mjs +2 -2
- package/esm2022/pie-derivative-chart/donut-status/component.mjs +1 -1
- package/esm2022/public-api.mjs +11 -11
- package/esm2022/scm/declare.directive.mjs +27 -0
- package/esm2022/scm/password-input/component.mjs +104 -67
- package/esm2022/scm/password-input/module.mjs +16 -13
- package/esm2022/scm/password-input/public-api.mjs +3 -0
- package/esm2022/scm/public-api.mjs +10 -0
- package/esm2022/scm/pure-pipe/calc.pipe.mjs +3 -2
- package/esm2022/scm/pure-pipe/module.mjs +3 -4
- package/esm2022/scm/pure-pipe/public-api.mjs +4 -0
- package/esm2022/scm/pure-pipe/pure.pipe.mjs +1 -1
- package/esm2022/scm/resource-multi-select/component.mjs +7 -9
- package/esm2022/scm/resource-multi-select/util.mjs +1 -1
- package/esm2022/scm/search-panel/component.mjs +2 -2
- package/esm2022/searchable-selector/component.mjs +4 -2
- package/esm2022/skeleton/item/component.mjs +1 -1
- package/esm2022/skeleton/module.mjs +2 -2
- package/esm2022/table/component.mjs +4 -4
- package/esm2022/table/helper.mjs +2 -2
- package/esm2022/table/module.mjs +1 -1
- package/esm2022/table/types.mjs +1 -1
- package/esm2022/table/util.service.mjs +3 -3
- package/esm2022/translate/constants.mjs +1 -1
- package/esm2022/translate/en.json +30 -4
- package/esm2022/translate/helpers.mjs +15 -1
- package/esm2022/translate/public-api.mjs +1 -2
- package/esm2022/translate/translate.module.mjs +3 -7
- package/esm2022/translate/types.mjs +1 -1
- package/esm2022/translate/zh.json +28 -2
- package/esm2022/view-chart/custom-template/dropdown-legend.mjs +1 -1
- package/esm2022/view-chart/legend/legend.component.mjs +1 -1
- package/esm2022/view-chart/view-chart.module.mjs +2 -2
- package/esm2022/view-zchart/custom-template/dropdown-legend.mjs +1 -1
- package/esm2022/view-zchart/legend/legend.component.mjs +1 -1
- package/esm2022/view-zchart/types.mjs +2 -0
- package/esm2022/view-zchart/units.mjs +2 -2
- package/esm2022/view-zchart/view-zchart.component.mjs +10 -5
- package/esm2022/widget/confirm-delete/confirm-delete.component.mjs +2 -2
- package/esm2022/widget/confirm-delete/utils.mjs +1 -1
- package/esm2022/widget/current-time/component.mjs +4 -4
- package/esm2022/widget/date-range-picker/component.mjs +10 -11
- package/esm2022/widget/field-set/index.mjs +14 -0
- package/esm2022/widget/field-set/item/component.mjs +2 -2
- package/esm2022/widget/foldable-block/component.mjs +2 -2
- package/esm2022/widget/foldable-item-in-table/component.mjs +3 -3
- package/esm2022/widget/loading-mask/loading-mask.component.mjs +2 -2
- package/esm2022/widget/public-api.mjs +3 -4
- package/esm2022/widget/relative-time/component.mjs +4 -4
- package/esm2022/widget/status-icon/status-icon.component.mjs +102 -0
- package/esm2022/widget/tags-label/component.mjs +3 -3
- package/esm2022/widget/terminating-tag/component.mjs +1 -1
- package/esm2022/widget/zero-state/zero-state.component.mjs +3 -3
- package/esm2022/window-channel/base-window-channel.mjs +1 -1
- package/esm2022/window-channel/host-window-channel.service.mjs +15 -15
- package/esm2022/window-channel/public-api.mjs +5 -0
- package/esm2022/window-channel/utils.mjs +1 -1
- package/esm2022/xterm/xterm-terminal/xterm-terminal.component.mjs +4 -4
- package/esm2022/xterm/xterm.component.mjs +5 -2
- package/exec/service.d.ts +1 -1
- package/exec/terminal/component.d.ts +1 -1
- package/{errors-mapper → form/errors-mapper}/base-errors-mapper.d.ts +2 -2
- package/{errors-mapper → form/errors-mapper}/default-errors-mapper.service.d.ts +1 -1
- package/{errors-mapper → form/errors-mapper}/errors-mapper-component/component.d.ts +1 -1
- package/{errors-mapper → form/errors-mapper}/errors-mapper.directive.d.ts +1 -1
- package/{errors-mapper → form/errors-mapper}/types.d.ts +1 -1
- package/form/labels-editor/component.d.ts +1 -1
- package/form/{index.d.ts → public-api.d.ts} +2 -0
- package/form/taints-editor/component.d.ts +2 -2
- package/form/upload-file/component.d.ts +32 -0
- package/form/validators/public-api.d.ts +1 -1
- package/form/validators/resource-limit.d.ts +1 -1
- package/form/validators/strong-password/{index.d.ts → public-api.d.ts} +1 -1
- package/form/validators/utils.d.ts +1 -1
- package/graph-canvas/components/graph-canvas.component.d.ts +3 -2
- package/graph-canvas/graph-store.service.d.ts +3 -1
- package/graph-canvas/types.d.ts +2 -0
- package/grid-layout/grid-layout.service.d.ts +2 -2
- package/grid-layout/grid-placeholder.service.d.ts +1 -1
- package/grid-layout/utils/client-rect.utils.d.ts +1 -1
- package/help-document/component.d.ts +0 -1
- package/help-document/directive.d.ts +10 -1
- package/k8s-resource-list/footer/component.d.ts +1 -1
- package/k8s-resource-list/k8s-resource-list.d.ts +1 -1
- package/k8s-resource-list/k8s-resource-paged-list.d.ts +1 -1
- package/k8s-resource-list/types.d.ts +1 -1
- package/k8s-resource-list/utils.d.ts +1 -1
- package/k8s-shared/k8s-shared-util.service.d.ts +40 -0
- package/k8s-shared/public-api.d.ts +9 -0
- package/k8s-shared/update-description-dialog/component.d.ts +25 -0
- package/k8s-shared/update-display-name-dialog/component.d.ts +27 -0
- package/k8s-shared/update-key-value-dialog/component.d.ts +39 -0
- package/license/license-api.d.ts +1 -1
- package/license/license.guard.d.ts +1 -1
- package/metric-chart/metric-chart.component.d.ts +3 -2
- package/metric-chart/public-api.d.ts +0 -1
- package/metric-chart/types.d.ts +1 -1
- package/metric-chart/utils.d.ts +1 -1
- package/notification/errors-mapper.d.ts +1 -1
- package/notification/helpers.d.ts +1 -1
- package/notification/notification-util.service.d.ts +2 -2
- package/notification/resource-error.interceptor.d.ts +1 -1
- package/package.json +2 -1
- package/page-guard/module.d.ts +3 -0
- package/page-scaffold/navigation/breadcrumb/breadcrumb.component.d.ts +2 -2
- package/page-scaffold/navigation/nav-menu/nav-menu.component.d.ts +1 -1
- package/page-scaffold/navigation/nav-menu/nav-menu.types.d.ts +1 -1
- package/page-scaffold/navigation/navconfig-loader/navconfig-loader.service.d.ts +2 -2
- package/page-scaffold/navigation/public-api.d.ts +6 -0
- package/page-scaffold/page/notices/maintenance.component.d.ts +7 -7
- package/page-scaffold/page/page.component.d.ts +2 -1
- package/page-scaffold/page-header/common-layout/context.service.d.ts +1 -1
- package/page-scaffold/page-header/common-layout/namespace-select/component.d.ts +1 -1
- package/page-scaffold/page-header/common-layout/product-select/component.d.ts +2 -2
- package/page-scaffold/page-header/common-layout/store.service.d.ts +1 -1
- package/page-scaffold/page-header/header-notify/notify.service.d.ts +1 -1
- package/page-scaffold/page-header/header-notify/utils.d.ts +1 -1
- package/page-scaffold/page-header/help-menu/component/component.d.ts +1 -1
- package/page-scaffold/public-api.d.ts +4 -0
- package/permission/helpers.d.ts +1 -10
- package/permission/k8s-permission.service.d.ts +1 -1
- package/permission/permission.guard.d.ts +1 -1
- package/permission/public-api.d.ts +0 -1
- package/permission/types.d.ts +1 -1
- package/pie-derivative-chart/donut-status/component.d.ts +1 -1
- package/public-api.d.ts +10 -10
- package/scm/declare.directive.d.ts +8 -0
- package/scm/password-input/component.d.ts +5 -1
- package/scm/password-input/module.d.ts +2 -2
- package/scm/{index.d.ts → public-api.d.ts} +3 -2
- package/scm/pure-pipe/calc.pipe.d.ts +1 -1
- package/scm/pure-pipe/module.d.ts +3 -3
- package/scm/pure-pipe/pure.pipe.d.ts +1 -1
- package/scm/resource-multi-select/component.d.ts +4 -3
- package/scm/resource-multi-select/util.d.ts +1 -1
- package/skeleton/item/component.d.ts +1 -1
- package/styles/global.scss +1 -2
- package/styles/mixins.scss +39 -0
- package/styles/tailwind-preset.scss +1 -1
- package/table/component.d.ts +1 -1
- package/table/helper.d.ts +1 -1
- package/table/types.d.ts +1 -1
- package/table/util.service.d.ts +1 -1
- package/translate/constants.d.ts +1 -1
- package/translate/helpers.d.ts +3 -0
- package/translate/public-api.d.ts +0 -1
- package/translate/translate.module.d.ts +54 -3
- package/translate/types.d.ts +1 -1
- package/view-chart/custom-template/dropdown-legend.d.ts +1 -1
- package/view-chart/legend/legend.component.d.ts +1 -1
- package/view-zchart/custom-template/dropdown-legend.d.ts +1 -1
- package/view-zchart/legend/legend.component.d.ts +1 -1
- package/view-zchart/types.d.ts +22 -0
- package/view-zchart/units.d.ts +1 -1
- package/view-zchart/view-zchart.component.d.ts +7 -2
- package/widget/confirm-delete/utils.d.ts +1 -1
- package/widget/current-time/component.d.ts +1 -1
- package/widget/date-range-picker/component.d.ts +1 -1
- package/widget/field-set/index.d.ts +7 -0
- package/widget/foldable-item-in-table/component.d.ts +1 -1
- package/widget/public-api.d.ts +2 -3
- package/widget/relative-time/component.d.ts +1 -1
- package/widget/status-icon/status-icon.component.d.ts +16 -0
- package/widget/tags-label/component.d.ts +1 -1
- package/widget/terminating-tag/component.d.ts +1 -1
- package/window-channel/base-window-channel.d.ts +1 -1
- package/window-channel/utils.d.ts +0 -1
- package/core/components/index.d.ts +0 -1
- package/core/components/tree/index.d.ts +0 -1
- package/core/components/tree/public-api.d.ts +0 -6
- package/core/index.d.ts +0 -1
- package/core/pipes/trust-url.pipe.d.ts +0 -19
- package/core/utils/k8s-pattern.d.ts +0 -12
- package/esm2022/a-chart/components/index.mjs +0 -4
- package/esm2022/a-chart/components/legend/index.mjs +0 -4
- package/esm2022/a-metric-chart/utils/index.mjs +0 -4
- package/esm2022/core/abstract/index.mjs +0 -3
- package/esm2022/core/components/index.mjs +0 -2
- package/esm2022/core/components/tree/index.mjs +0 -2
- package/esm2022/core/components/tree/public-api.mjs +0 -7
- package/esm2022/core/constants/index.mjs +0 -6
- package/esm2022/core/directives/index.mjs +0 -11
- package/esm2022/core/guards/index.mjs +0 -5
- package/esm2022/core/index.mjs +0 -2
- package/esm2022/core/pipes/index.mjs +0 -18
- package/esm2022/core/pipes/trust-url.pipe.mjs +0 -28
- package/esm2022/core/services/index.mjs +0 -15
- package/esm2022/core/types/index.mjs +0 -11
- package/esm2022/core/types/k8s/index.mjs +0 -4
- package/esm2022/core/utils/index.mjs +0 -23
- package/esm2022/core/utils/k8s-pattern.mjs +0 -13
- package/esm2022/editable-text/index.mjs +0 -3
- package/esm2022/errors-mapper/base-errors-mapper.mjs +0 -42
- package/esm2022/errors-mapper/default-errors-mapper.service.mjs +0 -65
- package/esm2022/errors-mapper/errors-mapper-component/component.mjs +0 -71
- package/esm2022/errors-mapper/errors-mapper.directive.mjs +0 -115
- package/esm2022/errors-mapper/public-api.mjs +0 -5
- package/esm2022/errors-mapper/types.mjs +0 -2
- package/esm2022/exec/index.mjs +0 -8
- package/esm2022/feature-gate-forbidden/index.mjs +0 -3
- package/esm2022/form/index.mjs +0 -5
- package/esm2022/form/validators/strong-password/index.mjs +0 -4
- package/esm2022/form/validators/strong-password/strong-password-tooltip/index.mjs +0 -2
- package/esm2022/grid-layout/index.mjs +0 -11
- package/esm2022/metric-chart/range-util.mjs +0 -35
- package/esm2022/multi-search/index.mjs +0 -5
- package/esm2022/page-scaffold/index.mjs +0 -5
- package/esm2022/page-scaffold/navigation/breadcrumb/index.mjs +0 -5
- package/esm2022/page-scaffold/navigation/index.mjs +0 -7
- package/esm2022/page-scaffold/navigation/lottie-icons/index.mjs +0 -3
- package/esm2022/page-scaffold/navigation/nav-menu/index.mjs +0 -4
- package/esm2022/page-scaffold/navigation/navconfig-loader/index.mjs +0 -8
- package/esm2022/page-scaffold/page/index.mjs +0 -5
- package/esm2022/page-scaffold/page-header/index.mjs +0 -14
- package/esm2022/permission/admin.guard.mjs +0 -43
- package/esm2022/scm/index.mjs +0 -9
- package/esm2022/scm/password-input/index.mjs +0 -3
- package/esm2022/scm/pure-pipe/index.mjs +0 -4
- package/esm2022/translate/pick-locale.pipe.mjs +0 -34
- package/esm2022/window-channel/index.mjs +0 -5
- package/form/validators/strong-password/strong-password-tooltip/index.d.ts +0 -1
- package/metric-chart/range-util.d.ts +0 -1
- package/page-scaffold/index.d.ts +0 -4
- package/page-scaffold/navigation/index.d.ts +0 -6
- package/permission/admin.guard.d.ts +0 -14
- package/translate/pick-locale.pipe.d.ts +0 -12
- /package/a-chart/components/legend/{index.d.ts → public-api.d.ts} +0 -0
- /package/a-metric-chart/utils/{index.d.ts → public-api.d.ts} +0 -0
- /package/core/abstract/{index.d.ts → public-api.d.ts} +0 -0
- /package/core/constants/{index.d.ts → public-api.d.ts} +0 -0
- /package/core/directives/{index.d.ts → public-api.d.ts} +0 -0
- /package/core/guards/{index.d.ts → public-api.d.ts} +0 -0
- /package/core/services/{index.d.ts → public-api.d.ts} +0 -0
- /package/core/types/k8s/{index.d.ts → public-api.d.ts} +0 -0
- /package/editable-text/{index.d.ts → public-api.d.ts} +0 -0
- /package/exec/{index.d.ts → public-api.d.ts} +0 -0
- /package/feature-gate-forbidden/{index.d.ts → public-api.d.ts} +0 -0
- /package/{errors-mapper → form/errors-mapper}/errors-mapper.module.d.ts +0 -0
- /package/{errors-mapper → form/errors-mapper}/public-api.d.ts +0 -0
- /package/grid-layout/{index.d.ts → public-api.d.ts} +0 -0
- /package/multi-search/{index.d.ts → public-api.d.ts} +0 -0
- /package/page-scaffold/navigation/breadcrumb/{index.d.ts → public-api.d.ts} +0 -0
- /package/page-scaffold/navigation/lottie-icons/{index.d.ts → public-api.d.ts} +0 -0
- /package/page-scaffold/navigation/nav-menu/{index.d.ts → public-api.d.ts} +0 -0
- /package/page-scaffold/navigation/navconfig-loader/{index.d.ts → public-api.d.ts} +0 -0
- /package/page-scaffold/page/{index.d.ts → public-api.d.ts} +0 -0
- /package/page-scaffold/page-header/{index.d.ts → public-api.d.ts} +0 -0
- /package/scm/password-input/{index.d.ts → public-api.d.ts} +0 -0
- /package/scm/pure-pipe/{index.d.ts → public-api.d.ts} +0 -0
- /package/window-channel/{index.d.ts → public-api.d.ts} +0 -0
|
@@ -3,7 +3,7 @@ import { ElementRef, AfterViewInit, OnDestroy, TemplateRef, EventEmitter } from
|
|
|
3
3
|
import { Observable } from 'rxjs';
|
|
4
4
|
import { Chart, DataItem, Options, Padding, Theme, BrushContext } from 'zz-chart';
|
|
5
5
|
import { BaseChart } from './base-chart';
|
|
6
|
-
import { LegendComponent, LegendDropdownComponent, TitleComponent } from './components';
|
|
6
|
+
import { LegendComponent, LegendDropdownComponent, TitleComponent } from './components/public-api';
|
|
7
7
|
import { AChartData, AChartStatus, AOptions, AType, MarkContext } from './types';
|
|
8
8
|
import * as i0 from "@angular/core";
|
|
9
9
|
export declare class ChartComponent extends BaseChart implements AfterViewInit, OnDestroy {
|
package/a-chart/public-api.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { TemplateRef } from '@angular/core';
|
|
|
2
2
|
import { XOR } from 'ts-essentials';
|
|
3
3
|
import { LegendOpt, Options, TooltipOption, TooltipValue } from 'zz-chart';
|
|
4
4
|
import { MonitorMetricResult } from '../api/public-api';
|
|
5
|
-
import { StringMap, WorkspaceParams } from '../core';
|
|
5
|
+
import { StringMap, WorkspaceParams } from '../core/public-api';
|
|
6
6
|
import { Translation } from '../translate/types';
|
|
7
7
|
export declare enum MetricScope {
|
|
8
8
|
'CLUSTER' = "cluster",
|
|
@@ -27,6 +27,7 @@ export interface MetricParams {
|
|
|
27
27
|
scopeValue?: string | WorkspaceParams;
|
|
28
28
|
dependentData?: boolean;
|
|
29
29
|
variableSource?: StringMap | StringMap[];
|
|
30
|
+
isIndex?: boolean;
|
|
30
31
|
}
|
|
31
32
|
export interface FetchParams {
|
|
32
33
|
indicatorParams: IndicatorParams[];
|
|
@@ -73,7 +74,8 @@ export interface IndicatorUnitConversion {
|
|
|
73
74
|
}
|
|
74
75
|
export declare enum Orientation {
|
|
75
76
|
'VERTICAL' = "vertical",
|
|
76
|
-
'HORIZONTAL' = "horizontal"
|
|
77
|
+
'HORIZONTAL' = "horizontal",
|
|
78
|
+
'AUTO' = "auto"
|
|
77
79
|
}
|
|
78
80
|
export interface LegendOption extends LegendOpt {
|
|
79
81
|
symbol?: 'circle' | 'square' | 'line';
|
|
@@ -3,13 +3,15 @@ import { AChartData } from '../../a-chart/types';
|
|
|
3
3
|
import { MonitorMetric, MonitorMetricResult } from '../../api/public-api';
|
|
4
4
|
import { Dictionary, StringMap } from '../../core/public-api';
|
|
5
5
|
import { FetchParams, IndicatorParams, MetricParams } from '../types';
|
|
6
|
-
export declare function handleMetricParams(params: IndicatorParams[], { variableSource, start, end, step }: MetricParams): {
|
|
6
|
+
export declare function handleMetricParams(params: IndicatorParams[], { variableSource, start, end, step, isIndex }: MetricParams): {
|
|
7
|
+
indicators: {
|
|
8
|
+
indicators: string;
|
|
9
|
+
exprs: string[];
|
|
10
|
+
variables: StringMap[];
|
|
11
|
+
}[];
|
|
7
12
|
start: number;
|
|
8
13
|
end: number;
|
|
9
14
|
step: number;
|
|
10
|
-
indicators: any[];
|
|
11
|
-
exprs: any[];
|
|
12
|
-
variables: any[];
|
|
13
15
|
};
|
|
14
16
|
export declare function handleChartData({ indicatorParams, metricParams }: FetchParams, data: MonitorMetric[]): AChartData[];
|
|
15
17
|
export declare function dependOnIndicator(indicatorParams: IndicatorParams[], data: MonitorMetric[]): AChartData[];
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { HttpEvent, HttpHandler, HttpInterceptor, HttpRequest } from '@angular/common/http';
|
|
2
|
+
import { Observable } from 'rxjs';
|
|
3
|
+
import { KubernetesResource, KubernetesResourceList } from '../core/public-api';
|
|
4
|
+
import { ClusterVersionService } from './cluster-version.service';
|
|
5
|
+
import { K8sResourceDefinition } from './types';
|
|
6
|
+
export declare abstract class ApiCompatibleInterceptor implements HttpInterceptor {
|
|
7
|
+
abstract matchUrl(req: string): MatchResult;
|
|
8
|
+
abstract responseAdapters: ResponseAdapter[];
|
|
9
|
+
abstract requestAdapters: RequestAdapter[];
|
|
10
|
+
protected clusterVersion: ClusterVersionService;
|
|
11
|
+
intercept(req: HttpRequest<unknown>, next: HttpHandler): Observable<HttpEvent<unknown>>;
|
|
12
|
+
private executeRequestDowngrade;
|
|
13
|
+
private executeRequestBodyDowngrade;
|
|
14
|
+
private executeResponseBodyUpgrade;
|
|
15
|
+
}
|
|
16
|
+
interface Adapter {
|
|
17
|
+
clusterVersion: string;
|
|
18
|
+
httpMethods?: string[];
|
|
19
|
+
}
|
|
20
|
+
export interface ResponseAdapter extends Adapter {
|
|
21
|
+
bodyUpgrade: (body: unknown) => unknown;
|
|
22
|
+
}
|
|
23
|
+
export interface RequestAdapter extends Adapter {
|
|
24
|
+
bodyDowngrade?: (body: unknown) => unknown;
|
|
25
|
+
requestDowngrade?: (req: HttpRequest<unknown>) => HttpRequest<unknown>;
|
|
26
|
+
}
|
|
27
|
+
export interface MatchResult {
|
|
28
|
+
matched: boolean;
|
|
29
|
+
cluster?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare function k8sApiMatcher(resourceType: string | K8sResourceDefinition): (url: string) => {
|
|
32
|
+
matched: boolean;
|
|
33
|
+
cluster: string;
|
|
34
|
+
} | {
|
|
35
|
+
matched: boolean;
|
|
36
|
+
cluster?: undefined;
|
|
37
|
+
};
|
|
38
|
+
export declare function k8sResourceOrList(mapper: (res: KubernetesResource) => KubernetesResource): (res: KubernetesResource | KubernetesResourceList) => KubernetesResource | {
|
|
39
|
+
items: KubernetesResource[];
|
|
40
|
+
metadata?: import("../core/public-api").ObjectMeta;
|
|
41
|
+
spec?: unknown;
|
|
42
|
+
status?: unknown;
|
|
43
|
+
kind?: string;
|
|
44
|
+
apiVersion?: string;
|
|
45
|
+
};
|
|
46
|
+
export {};
|
package/api/helpers.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* @packageDocumentation
|
|
3
3
|
* @module api
|
|
4
4
|
*/
|
|
5
|
-
import { DeepReadonly, Keys, KubernetesResource, ValueOf } from '../core';
|
|
5
|
+
import { DeepReadonly, Keys, KubernetesResource, ValueOf } from '../core/public-api';
|
|
6
6
|
import { K8sResourceDefinition, WatchAPIResponse } from './types';
|
|
7
7
|
export declare const EMPTY_API_PREFIX_PARTS: {
|
|
8
8
|
readonly apiGroup: "";
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { HttpClient } from '@angular/common/http';
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
|
-
import { APIResourceItem, KubernetesResource } from '../core';
|
|
7
|
+
import { APIResourceItem, KubernetesResource } from '../core/public-api';
|
|
8
8
|
import { K8sResourceDefinition, K8sResourceDefinitions } from './types';
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export declare class K8sApiResourceService {
|
package/api/k8s-api.service.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import { HttpClient } from '@angular/common/http';
|
|
6
6
|
import { Observable } from 'rxjs';
|
|
7
|
-
import { KubernetesResource, KubernetesResourceList, Status } from '../core';
|
|
7
|
+
import { KubernetesResource, KubernetesResourceList, Status } from '../core/public-api';
|
|
8
8
|
import { K8sApiResourceService } from './k8s-api-resource.service';
|
|
9
9
|
import { PageVisibilityService } from './page-visibility.service';
|
|
10
10
|
import { ErebusResourceDeleteParams, ErebusResourceListParams, ErebusResourceParams, ErebusResourcePatchParams, ErebusResourceWriteParams, GlobalResourceDeleteParams, GlobalResourceListParams, GlobalResourceParams, GlobalResourcePatchParams, GlobalResourceWriteParams, WatchAPIResponse, WatchErebusResourceListParams, WatchErebusResourceParams, WatchGlobalResourceListParams, WatchGlobalResourceParams, ErebusResourceBatchDeleteParams } from './types';
|
|
@@ -2,7 +2,7 @@ import { HttpClient } from '@angular/common/http';
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { XOR } from 'ts-essentials';
|
|
4
4
|
import { IndicatorUnit } from '../a-metric-chart/types';
|
|
5
|
-
import { StringMap, WorkspaceParams } from '../core';
|
|
5
|
+
import { StringMap, WorkspaceParams } from '../core/public-api';
|
|
6
6
|
import { K8sApiService } from './k8s-api.service';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
8
8
|
export declare const INDICATOR_PROMETHEUS_NOT_DEPLOYED = "platform.cluster.prometheus.not.deployed";
|
|
@@ -77,6 +77,7 @@ export interface CostMetricResult {
|
|
|
77
77
|
export interface IndicatorType {
|
|
78
78
|
kind: string;
|
|
79
79
|
name: string;
|
|
80
|
+
alias: string;
|
|
80
81
|
unit: string;
|
|
81
82
|
string?: string;
|
|
82
83
|
value_type?: string;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ProductDocsEntry, ProductEntry } from '../core';
|
|
1
|
+
import { ProductDocsEntry, ProductEntry } from '../core/public-api';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare const PLATFORM_INFO_CM_NAME = "platform-info";
|
|
4
4
|
export declare const PLATFORM_NAME_ZH_KEY = "platformNameZH";
|
package/api/product.service.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { HttpClient } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { KubernetesResourceList, Namespace, Project, ResourceListParams } from '../core';
|
|
3
|
+
import { KubernetesResourceList, Namespace, Project, ResourceListParams } from '../core/public-api';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare class ProjectApiService {
|
|
6
6
|
private readonly http;
|
package/api/public-api.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { DialogService } from '@alauda/ui';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
|
-
import { KubernetesResource } from '../core';
|
|
3
|
+
import { KubernetesResource } from '../core/public-api';
|
|
4
4
|
import { TranslateService } from '../translate/public-api';
|
|
5
5
|
import { K8sApiService } from './k8s-api.service';
|
|
6
6
|
import { ApiDefinitionBaseParams, ApiTypeBaseParams } from './types';
|
package/api/types.d.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* @module api
|
|
4
4
|
*/
|
|
5
5
|
import { Observable } from 'rxjs';
|
|
6
|
-
import { CRYPTO_TYPE, DeepPartial, KubernetesResource, ResourceListParams } from '../core';
|
|
6
|
+
import { CRYPTO_TYPE, DeepPartial, KubernetesResource, ResourceListParams } from '../core/public-api';
|
|
7
7
|
export type K8sResourceDefinition = Readonly<{
|
|
8
8
|
type: string;
|
|
9
9
|
apiGroup?: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { FormArray, ValidatorFn } from '@angular/forms';
|
|
2
2
|
import { BaseResourceFormComponent } from 'ng-resource-form-util';
|
|
3
|
-
import { StringMap } from '../core';
|
|
3
|
+
import { StringMap } from '../core/public-api';
|
|
4
4
|
import { ValidateRowDuplicateService } from '../core/services/form-row-duplicate/form-row-duplicate.service';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export type KeyValueTuple = [string, string];
|
|
@@ -35,6 +35,12 @@ export declare class ArrayFormTableRowControlDirective {
|
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayFormTableRowControlDirective, never>;
|
|
36
36
|
static ɵdir: i0.ɵɵDirectiveDeclaration<ArrayFormTableRowControlDirective, "[aclArrayFormTableRowControl]", never, {}, {}, never, never, true, never>;
|
|
37
37
|
}
|
|
38
|
+
export declare class ArrayFormTableRowSeparatorDirective {
|
|
39
|
+
templateRef: TemplateRef<any>;
|
|
40
|
+
constructor(templateRef: TemplateRef<any>);
|
|
41
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayFormTableRowSeparatorDirective, never>;
|
|
42
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ArrayFormTableRowSeparatorDirective, "[aclArrayFormTableRowSeparator]", never, {}, {}, never, never, true, never>;
|
|
43
|
+
}
|
|
38
44
|
export declare class ArrayFormTableFooterDirective {
|
|
39
45
|
templateRef: TemplateRef<any>;
|
|
40
46
|
constructor(templateRef: TemplateRef<any>);
|
|
@@ -58,6 +64,10 @@ export declare class ArrayFormTableComponent implements OnDestroy {
|
|
|
58
64
|
* 表单默认为空数据提供无xxx的模板; 假如用户提供模板, 将使用用户的模板
|
|
59
65
|
*/
|
|
60
66
|
zeroStateTemplate: TemplateRef<any>;
|
|
67
|
+
/**
|
|
68
|
+
* 行之间的分隔区域
|
|
69
|
+
*/
|
|
70
|
+
separatorTemplate: TemplateRef<any>;
|
|
61
71
|
ngFormGroupDirective: FormGroupDirective;
|
|
62
72
|
rows: any[];
|
|
63
73
|
resourceName: string;
|
|
@@ -67,6 +77,7 @@ export declare class ArrayFormTableComponent implements OnDestroy {
|
|
|
67
77
|
readonly: boolean | '';
|
|
68
78
|
addDisabled: boolean | '';
|
|
69
79
|
actionColumnDivider: boolean | '';
|
|
80
|
+
showZeroState: boolean;
|
|
70
81
|
get formDirective(): NgForm | FormGroupDirective;
|
|
71
82
|
/**
|
|
72
83
|
* 自定义是否展示错误内容
|
|
@@ -87,5 +98,5 @@ export declare class ArrayFormTableComponent implements OnDestroy {
|
|
|
87
98
|
ngOnDestroy(): void;
|
|
88
99
|
shouldShowRowError: (control: AbstractControl) => import("rxjs").Observable<boolean>;
|
|
89
100
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayFormTableComponent, never>;
|
|
90
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayFormTableComponent, "acl-array-form-table", never, { "rows": { "alias": "rows"; "required": false; }; "resourceName": { "alias": "resourceName"; "required": false; }; "resourceNameTranslated": { "alias": "resourceNameTranslated"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "addDisabled": { "alias": "addDisabled"; "required": false; }; "actionColumnDivider": { "alias": "actionColumnDivider"; "required": false; }; "showRowError": { "alias": "showRowError"; "required": false; }; "rowBackgroundColorFn": { "alias": "rowBackgroundColorFn"; "required": false; }; "minRow": { "alias": "minRow"; "required": false; }; "minRowTooltip": { "alias": "minRowTooltip"; "required": false; }; "maxRow": { "alias": "maxRow"; "required": false; }; "maxRowTooltip": { "alias": "maxRowTooltip"; "required": false; }; }, { "add": "add"; "remove": "remove"; }, ["headerTemplate", "rowErrorTemplate", "rowControlTemplate", "footerTemplate", "zeroStateTemplate", "ngFormGroupDirective", "rowTemplates"], never, true, never>;
|
|
101
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ArrayFormTableComponent, "acl-array-form-table", never, { "rows": { "alias": "rows"; "required": false; }; "resourceName": { "alias": "resourceName"; "required": false; }; "resourceNameTranslated": { "alias": "resourceNameTranslated"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "addDisabled": { "alias": "addDisabled"; "required": false; }; "actionColumnDivider": { "alias": "actionColumnDivider"; "required": false; }; "showZeroState": { "alias": "showZeroState"; "required": false; }; "showRowError": { "alias": "showRowError"; "required": false; }; "rowBackgroundColorFn": { "alias": "rowBackgroundColorFn"; "required": false; }; "minRow": { "alias": "minRow"; "required": false; }; "minRowTooltip": { "alias": "minRowTooltip"; "required": false; }; "maxRow": { "alias": "maxRow"; "required": false; }; "maxRowTooltip": { "alias": "maxRowTooltip"; "required": false; }; }, { "add": "add"; "remove": "remove"; }, ["headerTemplate", "rowErrorTemplate", "rowControlTemplate", "footerTemplate", "zeroStateTemplate", "separatorTemplate", "ngFormGroupDirective", "rowTemplates"], never, true, never>;
|
|
91
102
|
}
|
|
@@ -2,6 +2,6 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "./component";
|
|
3
3
|
export declare class ArrayFormTableModule {
|
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<ArrayFormTableModule, never>;
|
|
5
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<ArrayFormTableModule, never, [typeof i1.ArrayFormTableComponent, typeof i1.ArrayFormTableFooterDirective, typeof i1.ArrayFormTableHeaderDirective, typeof i1.ArrayFormTableRowControlDirective, typeof i1.ArrayFormTableRowDirective, typeof i1.ArrayFormTableRowErrorDirective, typeof i1.ArrayFormTableZeroStateDirective], [typeof i1.ArrayFormTableComponent, typeof i1.ArrayFormTableFooterDirective, typeof i1.ArrayFormTableHeaderDirective, typeof i1.ArrayFormTableRowControlDirective, typeof i1.ArrayFormTableRowDirective, typeof i1.ArrayFormTableRowErrorDirective, typeof i1.ArrayFormTableZeroStateDirective]>;
|
|
5
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<ArrayFormTableModule, never, [typeof i1.ArrayFormTableComponent, typeof i1.ArrayFormTableFooterDirective, typeof i1.ArrayFormTableHeaderDirective, typeof i1.ArrayFormTableRowControlDirective, typeof i1.ArrayFormTableRowDirective, typeof i1.ArrayFormTableRowErrorDirective, typeof i1.ArrayFormTableZeroStateDirective, typeof i1.ArrayFormTableRowSeparatorDirective], [typeof i1.ArrayFormTableComponent, typeof i1.ArrayFormTableFooterDirective, typeof i1.ArrayFormTableHeaderDirective, typeof i1.ArrayFormTableRowControlDirective, typeof i1.ArrayFormTableRowDirective, typeof i1.ArrayFormTableRowErrorDirective, typeof i1.ArrayFormTableZeroStateDirective, typeof i1.ArrayFormTableRowSeparatorDirective]>;
|
|
6
6
|
static ɵinj: i0.ɵɵInjectorDeclaration<ArrayFormTableModule>;
|
|
7
7
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { OnInit } from '@angular/core';
|
|
2
2
|
import { ValidatorFn } from '@angular/forms';
|
|
3
|
-
import { StringMap } from '../../core';
|
|
3
|
+
import { StringMap } from '../../core/public-api';
|
|
4
4
|
import { BaseStringMapFormComponent } from '../base-string-map-form.component';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
export declare class KeyValueFormTableComponent extends BaseStringMapFormComponent implements OnInit {
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { Injector, OnChanges, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ControlContainer, FormArray, ValidatorFn } from '@angular/forms';
|
|
3
|
+
import { BaseResourceFormComponent } from 'ng-resource-form-util';
|
|
4
|
+
import { StringMap, ValidateRowDuplicateService } from '../../core/public-api';
|
|
5
|
+
import { TranslateService } from '../../translate/public-api';
|
|
6
|
+
import * as i0 from "@angular/core";
|
|
7
|
+
export declare class StringArrayFormTableComponent extends BaseResourceFormComponent<string[], string[], FormArray> implements OnInit, OnChanges {
|
|
8
|
+
injector: Injector;
|
|
9
|
+
readonly controlContainer: ControlContainer;
|
|
10
|
+
private readonly rowDup;
|
|
11
|
+
private readonly translate;
|
|
12
|
+
multiLineValue: boolean;
|
|
13
|
+
resourceName: string;
|
|
14
|
+
resourceNameTranslated: string;
|
|
15
|
+
placeholder: string;
|
|
16
|
+
validators: ValidatorFn[];
|
|
17
|
+
enableDuplicateCheck: boolean;
|
|
18
|
+
set errorMapper(errorMapper: StringMap);
|
|
19
|
+
get errorMapper(): StringMap;
|
|
20
|
+
maxLines: number;
|
|
21
|
+
maxLinesTooltip: string;
|
|
22
|
+
minLines: number;
|
|
23
|
+
readonlyItems: Array<string | RegExp>;
|
|
24
|
+
readonlyTooltip: string;
|
|
25
|
+
private _errorMapper;
|
|
26
|
+
constructor(injector: Injector, controlContainer: ControlContainer, rowDup: ValidateRowDuplicateService, translate: TranslateService);
|
|
27
|
+
get length(): number;
|
|
28
|
+
ngOnChanges({ validators }: SimpleChanges): void;
|
|
29
|
+
createForm(): FormArray<import("@angular/forms").FormControl<unknown>>;
|
|
30
|
+
adaptResourceModel(resource: string[]): string[];
|
|
31
|
+
getDefaultFormModel(): string[];
|
|
32
|
+
add(index?: number): void;
|
|
33
|
+
remove(index: number): void;
|
|
34
|
+
getOnFormArrayResizeFn(): () => import("@angular/forms").FormControl<string>;
|
|
35
|
+
isItemReadonly(index: number): boolean;
|
|
36
|
+
private isReadonly;
|
|
37
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StringArrayFormTableComponent, [null, { optional: true; }, null, null]>;
|
|
38
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StringArrayFormTableComponent, "acl-string-array-form-table", never, { "multiLineValue": { "alias": "multiLineValue"; "required": false; }; "resourceName": { "alias": "resourceName"; "required": false; }; "resourceNameTranslated": { "alias": "resourceNameTranslated"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "validators": { "alias": "validators"; "required": false; }; "enableDuplicateCheck": { "alias": "enableDuplicateCheck"; "required": false; }; "errorMapper": { "alias": "errorMapper"; "required": false; }; "maxLines": { "alias": "maxLines"; "required": false; }; "maxLinesTooltip": { "alias": "maxLinesTooltip"; "required": false; }; "minLines": { "alias": "minLines"; "required": false; }; "readonlyItems": { "alias": "readonlyItems"; "required": false; }; "readonlyTooltip": { "alias": "readonlyTooltip"; "required": false; }; }, {}, never, never, true, never>;
|
|
39
|
+
}
|