@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,111 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, Directive, EventEmitter, Input, Output, inject, } from '@angular/core';
|
|
2
|
-
import { get } from 'lodash-es';
|
|
3
|
-
import { BehaviorSubject, Subject } from 'rxjs';
|
|
4
|
-
import { ChartEvent, } from 'zz-chart';
|
|
5
|
-
import { ChartComponent } from '../../chart.component';
|
|
6
|
-
import { CHART_COMPONENT_TOKEN } from '../../constant';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export class BaseLegendComponent {
|
|
9
|
-
constructor() {
|
|
10
|
-
this.chartRefFromInjection = inject(CHART_COMPONENT_TOKEN, {
|
|
11
|
-
optional: true,
|
|
12
|
-
});
|
|
13
|
-
this.cdr = inject(ChangeDetectorRef);
|
|
14
|
-
this.changeLegend = new EventEmitter();
|
|
15
|
-
this.legendItems$$ = new BehaviorSubject([]);
|
|
16
|
-
this.legendChange$$ = new Subject();
|
|
17
|
-
}
|
|
18
|
-
get noData() {
|
|
19
|
-
return !this.legendItems$$.value.length;
|
|
20
|
-
}
|
|
21
|
-
get aChartCtrl() {
|
|
22
|
-
return this.chartRefFromInjection || this.chartRef;
|
|
23
|
-
}
|
|
24
|
-
get legendCtr() {
|
|
25
|
-
return this.aChartCtrl.chart?.components.get('legend');
|
|
26
|
-
}
|
|
27
|
-
ngOnChanges({ chartRef }) {
|
|
28
|
-
if (chartRef?.currentValue) {
|
|
29
|
-
this.init();
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
ngOnInit() {
|
|
33
|
-
this.init();
|
|
34
|
-
}
|
|
35
|
-
setChartRef(chartRef) {
|
|
36
|
-
this.chartRef = chartRef;
|
|
37
|
-
this.init();
|
|
38
|
-
}
|
|
39
|
-
init() {
|
|
40
|
-
if (this.aChartCtrl) {
|
|
41
|
-
this.handleLegends(this.aChartCtrl?.chart?.getData() || []);
|
|
42
|
-
this.aChartCtrl.renderComplete$$.subscribe(chart => {
|
|
43
|
-
if (!chart) {
|
|
44
|
-
return;
|
|
45
|
-
}
|
|
46
|
-
this.legendItems$$.next(this.legendCtr?.getLegend());
|
|
47
|
-
chart?.on(ChartEvent.DATA_CHANGE, (data) => {
|
|
48
|
-
this.handleLegends(data);
|
|
49
|
-
});
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
handleLegends(data) {
|
|
54
|
-
this.legendItems$$.next(data.reduce((acc, d) => [
|
|
55
|
-
...acc,
|
|
56
|
-
...(d.name
|
|
57
|
-
? [
|
|
58
|
-
{
|
|
59
|
-
name: d.name,
|
|
60
|
-
color: d.color,
|
|
61
|
-
activated: true,
|
|
62
|
-
hover: false,
|
|
63
|
-
value: d.values[d.values?.length - 1].y,
|
|
64
|
-
source: d,
|
|
65
|
-
unit: get(d, 'unit'),
|
|
66
|
-
...d,
|
|
67
|
-
},
|
|
68
|
-
]
|
|
69
|
-
: []),
|
|
70
|
-
], []));
|
|
71
|
-
this.cdr.detectChanges();
|
|
72
|
-
}
|
|
73
|
-
onSelect(legend) {
|
|
74
|
-
this.legendCtr.legendItemClick({
|
|
75
|
-
name: legend.name,
|
|
76
|
-
activated: !legend.activated,
|
|
77
|
-
});
|
|
78
|
-
const legends = this.legendItems$$.value;
|
|
79
|
-
const legendItem = legends.find(item => item.name === legend.name);
|
|
80
|
-
legendItem.activated = !legend.activated;
|
|
81
|
-
this.aChartCtrl.changeStatus({
|
|
82
|
-
noLegend: legends.every(item => !item.activated),
|
|
83
|
-
});
|
|
84
|
-
this.legendItems$$.next(legends);
|
|
85
|
-
}
|
|
86
|
-
onAllSelect(select) {
|
|
87
|
-
const legends = this.legendItems$$.value;
|
|
88
|
-
legends.forEach(legend => {
|
|
89
|
-
this.legendCtr.legendItemClick({
|
|
90
|
-
name: legend.name,
|
|
91
|
-
activated: select,
|
|
92
|
-
});
|
|
93
|
-
legend.activated = select;
|
|
94
|
-
});
|
|
95
|
-
this.aChartCtrl.changeStatus({
|
|
96
|
-
noLegend: legends.every(item => !item.activated),
|
|
97
|
-
});
|
|
98
|
-
this.legendItems$$.next(legends);
|
|
99
|
-
this.cdr.markForCheck();
|
|
100
|
-
}
|
|
101
|
-
static { this.ɵfac = function BaseLegendComponent_Factory(t) { return new (t || BaseLegendComponent)(); }; }
|
|
102
|
-
static { this.ɵdir = /*@__PURE__*/ i0.ɵɵdefineDirective({ type: BaseLegendComponent, inputs: { chartRef: "chartRef" }, outputs: { changeLegend: "changeLegend" }, features: [i0.ɵɵNgOnChangesFeature] }); }
|
|
103
|
-
}
|
|
104
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BaseLegendComponent, [{
|
|
105
|
-
type: Directive
|
|
106
|
-
}], null, { chartRef: [{
|
|
107
|
-
type: Input
|
|
108
|
-
}], changeLegend: [{
|
|
109
|
-
type: Output
|
|
110
|
-
}] }); })();
|
|
111
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1sZWdlbmQuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vLi4vbGlicy9jb21tb24vc3JjL2EtY2hhcnQvY29tcG9uZW50cy9sZWdlbmQvYmFzZS1sZWdlbmQuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDTCxpQkFBaUIsRUFDakIsU0FBUyxFQUNULFlBQVksRUFDWixLQUFLLEVBR0wsTUFBTSxFQUVOLE1BQU0sR0FDUCxNQUFNLGVBQWUsQ0FBQztBQUN2QixPQUFPLEVBQUUsR0FBRyxFQUFFLE1BQU0sV0FBVyxDQUFDO0FBQ2hDLE9BQU8sRUFBRSxlQUFlLEVBQUUsT0FBTyxFQUFFLE1BQU0sTUFBTSxDQUFDO0FBQ2hELE9BQU8sRUFDTCxVQUFVLEdBS1gsTUFBTSxVQUFVLENBQUM7QUFFbEIsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLHVCQUF1QixDQUFDO0FBQ3ZELE9BQU8sRUFBRSxxQkFBcUIsRUFBRSxNQUFNLGdCQUFnQixDQUFDOztBQVV2RCxNQUFNLE9BQU8sbUJBQW1CO0lB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vic2NyaWJlKGNoYXJ0ID0+IHtcbiAgICAgICAgaWYgKCFjaGFydCkge1xuICAgICAgICAgIHJldHVybjtcbiAgICAgICAgfVxuICAgICAgICB0aGlzLmxlZ2VuZEl0ZW1zJCQubmV4dCh0aGlzLmxlZ2VuZEN0cj8uZ2V0TGVnZW5kKCkpO1xuICAgICAgICBjaGFydD8ub24oQ2hhcnRFdmVudC5EQVRBX0NIQU5HRSwgKGRhdGE6IERhdGEpID0+IHtcbiAgICAgICAgICB0aGlzLmhhbmRsZUxlZ2VuZHMoZGF0YSk7XG4gICAgICAgIH0pO1xuICAgICAgfSk7XG4gICAgfVxuICB9XG5cbiAgcHJpdmF0ZSBoYW5kbGVMZWdlbmRzKGRhdGE6IERhdGEpIHtcbiAgICB0aGlzLmxlZ2VuZEl0ZW1zJCQubmV4dChcbiAgICAgIGRhdGEucmVkdWNlKFxuICAgICAgICAoYWNjLCBkKSA9PiBbXG4gICAgICAgICAgLi4uYWNjLFxuICAgICAgICAgIC4uLihkLm5hbWVcbiAgICAgICAgICAgID8gW1xuICAgICAgICAgICAgICAgIHtcbiAgICAgICAgICAgICAgICAgIG5hbWU6IGQubmFtZSxcbiAgICAgICAgICAgICAgICAgIGNvbG9yOiBkLmNvbG9yLFxuICAgICAgICAgICAgICAgICAgYWN0aXZhdGVkOiB0cnVlLFxuICAgICAgICAgICAgICAgICAgaG92ZXI6IGZhbHNlLFxuICAgICAgICAgICAgICAgICAgdmFsdWU6IGQudmFsdWVzW2QudmFsdWVzPy5sZW5ndGggLSAxXS55LFxuICAgICAgICAgICAgICAgICAgc291cmNlOiBkLFxuICAgICAgICAgICAgICAgICAgdW5pdDogZ2V0KGQsICd1bml0JyksXG4gICAgICAgICAgICAgICAgICAuLi5kLFxuICAgICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIF1cbiAgICAgICAgICAgIDogW10pLFxuICAgICAgICBdLFxuICAgICAgICBbXSxcbiAgICAgICksXG4gICAgKTtcbiAgICB0aGlzLmN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ZWdlbmQ6IGxlZ2VuZHMuZXZlcnkoaXRlbSA9PiAhaXRlbS5hY3RpdmF0ZWQpLFxuICAgIH0pO1xuICAgIHRoaXMubGVnZW5kSXRlbXMkJC5uZXh0KGxlZ2VuZHMpO1xuICAgIHRoaXMuY2RyLm1hcmtGb3JDaGVjaygpO1xuICB9XG59XG4iXX0=
|
|
@@ -1,199 +0,0 @@
|
|
|
1
|
-
import { isTemplateRef } from '@alauda/ui';
|
|
2
|
-
import { ChangeDetectionStrategy, Component, Input, } from '@angular/core';
|
|
3
|
-
import { BaseLegendComponent } from './base-legend.component';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
const _c0 = function () { return []; };
|
|
6
|
-
const _c1 = function (a0) { return { data: a0 }; };
|
|
7
|
-
function LegendDropdownComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
8
|
-
i0.ɵɵelementContainerStart(0);
|
|
9
|
-
i0.ɵɵelement(1, "aui-icon", 3);
|
|
10
|
-
i0.ɵɵelementContainerEnd();
|
|
11
|
-
} if (rf & 2) {
|
|
12
|
-
i0.ɵɵnextContext();
|
|
13
|
-
const _r3 = i0.ɵɵreference(4);
|
|
14
|
-
i0.ɵɵadvance(1);
|
|
15
|
-
i0.ɵɵproperty("auiTooltip", _r3)("auiTooltipContext", i0.ɵɵpureFunction1(3, _c1, i0.ɵɵpureFunction0(2, _c0)));
|
|
16
|
-
} }
|
|
17
|
-
function LegendDropdownComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
18
|
-
i0.ɵɵelementStart(0, "button", 4);
|
|
19
|
-
i0.ɵɵelement(1, "aui-icon", 5);
|
|
20
|
-
i0.ɵɵelementEnd();
|
|
21
|
-
} if (rf & 2) {
|
|
22
|
-
i0.ɵɵnextContext();
|
|
23
|
-
const _r3 = i0.ɵɵreference(4);
|
|
24
|
-
i0.ɵɵproperty("square", true)("auiTooltip", _r3)("auiTooltipContext", i0.ɵɵpureFunction1(4, _c1, i0.ɵɵpureFunction0(3, _c0)));
|
|
25
|
-
} }
|
|
26
|
-
function LegendDropdownComponent_ng_template_3_li_1_Template(rf, ctx) { if (rf & 1) {
|
|
27
|
-
const _r9 = i0.ɵɵgetCurrentView();
|
|
28
|
-
i0.ɵɵelementStart(0, "li", 10)(1, "aui-checkbox", 11);
|
|
29
|
-
i0.ɵɵlistener("ngModelChange", function LegendDropdownComponent_ng_template_3_li_1_Template_aui_checkbox_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r8 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r8.allSelected = $event); })("ngModelChange", function LegendDropdownComponent_ng_template_3_li_1_Template_aui_checkbox_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r9); const ctx_r10 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r10.onAllSelect($event)); });
|
|
30
|
-
i0.ɵɵtext(2);
|
|
31
|
-
i0.ɵɵpipe(3, "translate");
|
|
32
|
-
i0.ɵɵelementEnd()();
|
|
33
|
-
} if (rf & 2) {
|
|
34
|
-
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
35
|
-
i0.ɵɵadvance(1);
|
|
36
|
-
i0.ɵɵproperty("ngModel", ctx_r5.allSelected);
|
|
37
|
-
i0.ɵɵadvance(1);
|
|
38
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r5.selectAllName || i0.ɵɵpipeBind1(3, 2, "select_all"), " ");
|
|
39
|
-
} }
|
|
40
|
-
const _c2 = function (a0) { return [a0, "label-symbol"]; };
|
|
41
|
-
const _c3 = function () { return {}; };
|
|
42
|
-
function LegendDropdownComponent_ng_template_3_li_2_Template(rf, ctx) { if (rf & 1) {
|
|
43
|
-
const _r14 = i0.ɵɵgetCurrentView();
|
|
44
|
-
i0.ɵɵelementStart(0, "li", 12);
|
|
45
|
-
i0.ɵɵlistener("click", function LegendDropdownComponent_ng_template_3_li_2_Template_li_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r14); const legend_r11 = restoredCtx.$implicit; const ctx_r13 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r13.onSelect(legend_r11)); });
|
|
46
|
-
i0.ɵɵpipe(1, "translate");
|
|
47
|
-
i0.ɵɵelement(2, "span", 13);
|
|
48
|
-
i0.ɵɵelementStart(3, "span", 14);
|
|
49
|
-
i0.ɵɵtext(4);
|
|
50
|
-
i0.ɵɵpipe(5, "translate");
|
|
51
|
-
i0.ɵɵelementEnd()();
|
|
52
|
-
} if (rf & 2) {
|
|
53
|
-
const legend_r11 = ctx.$implicit;
|
|
54
|
-
const ctx_r6 = i0.ɵɵnextContext(2);
|
|
55
|
-
i0.ɵɵclassProp("disable", !legend_r11.activated || ctx_r6.noData)("forbid", ctx_r6.noData);
|
|
56
|
-
i0.ɵɵproperty("title", i0.ɵɵpipeBind1(1, 9, legend_r11.activated ? "click_hide" : "click_show"));
|
|
57
|
-
i0.ɵɵadvance(2);
|
|
58
|
-
i0.ɵɵstyleProp("background", legend_r11.color);
|
|
59
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c2, ctx_r6.symbolName));
|
|
60
|
-
i0.ɵɵadvance(2);
|
|
61
|
-
i0.ɵɵtextInterpolate(ctx_r6.translation ? i0.ɵɵpipeBind3(5, 11, legend_r11.name, i0.ɵɵpureFunction0(17, _c3), true) : legend_r11.name);
|
|
62
|
-
} }
|
|
63
|
-
function LegendDropdownComponent_ng_template_3_ng_container_4_Template(rf, ctx) { if (rf & 1) {
|
|
64
|
-
i0.ɵɵelementContainerStart(0);
|
|
65
|
-
i0.ɵɵelementStart(1, "span", 15);
|
|
66
|
-
i0.ɵɵtext(2);
|
|
67
|
-
i0.ɵɵpipe(3, "translate");
|
|
68
|
-
i0.ɵɵelementEnd();
|
|
69
|
-
i0.ɵɵelementContainerEnd();
|
|
70
|
-
} if (rf & 2) {
|
|
71
|
-
i0.ɵɵadvance(2);
|
|
72
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(3, 1, "no_data"));
|
|
73
|
-
} }
|
|
74
|
-
function LegendDropdownComponent_ng_template_3_Template(rf, ctx) { if (rf & 1) {
|
|
75
|
-
i0.ɵɵelementStart(0, "ul", 6);
|
|
76
|
-
i0.ɵɵtemplate(1, LegendDropdownComponent_ng_template_3_li_1_Template, 4, 4, "li", 7);
|
|
77
|
-
i0.ɵɵtemplate(2, LegendDropdownComponent_ng_template_3_li_2_Template, 6, 18, "li", 8);
|
|
78
|
-
i0.ɵɵpipe(3, "async");
|
|
79
|
-
i0.ɵɵelementEnd();
|
|
80
|
-
i0.ɵɵtemplate(4, LegendDropdownComponent_ng_template_3_ng_container_4_Template, 4, 3, "ng-container", 9);
|
|
81
|
-
} if (rf & 2) {
|
|
82
|
-
const ctx_r4 = i0.ɵɵnextContext();
|
|
83
|
-
i0.ɵɵadvance(1);
|
|
84
|
-
i0.ɵɵproperty("ngIf", !ctx_r4.noData && ctx_r4.selectAll && ctx_r4.template === "dropdown");
|
|
85
|
-
i0.ɵɵadvance(1);
|
|
86
|
-
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(3, 3, ctx_r4.legendItems$$));
|
|
87
|
-
i0.ɵɵadvance(2);
|
|
88
|
-
i0.ɵɵproperty("ngIf", ctx_r4.aChartCtrl == null ? null : ctx_r4.aChartCtrl.status == null ? null : ctx_r4.aChartCtrl.status.noData);
|
|
89
|
-
} }
|
|
90
|
-
export class LegendDropdownComponent extends BaseLegendComponent {
|
|
91
|
-
constructor() {
|
|
92
|
-
super(...arguments);
|
|
93
|
-
this.symbol = 'line';
|
|
94
|
-
this.template = 'dropdown';
|
|
95
|
-
this.translation = true;
|
|
96
|
-
this.selectAll = false;
|
|
97
|
-
this.isTemplateRef = isTemplateRef;
|
|
98
|
-
this.allSelected = true;
|
|
99
|
-
}
|
|
100
|
-
get defaultSymbol() {
|
|
101
|
-
return ['bar', 'pie', 'scatter'].includes(this.aChartCtrl.type)
|
|
102
|
-
? 'circle'
|
|
103
|
-
: 'line';
|
|
104
|
-
}
|
|
105
|
-
get symbolName() {
|
|
106
|
-
return `symbol-${this.defaultSymbol || this.symbol}`;
|
|
107
|
-
}
|
|
108
|
-
static { this.ɵfac = /*@__PURE__*/ function () { let ɵLegendDropdownComponent_BaseFactory; return function LegendDropdownComponent_Factory(t) { return (ɵLegendDropdownComponent_BaseFactory || (ɵLegendDropdownComponent_BaseFactory = i0.ɵɵgetInheritedFactory(LegendDropdownComponent)))(t || LegendDropdownComponent); }; }(); }
|
|
109
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LegendDropdownComponent, selectors: [["a-legend-dropdown"]], inputs: { square: "square", symbol: "symbol", template: "template", translation: "translation", selectAll: "selectAll", selectAllName: "selectAllName" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 5, vars: 2, consts: [[4, "ngIf", "ngIfElse"], ["elseTemplate", ""], ["dropdownItemTemplate", ""], ["icon", "prod:chart_legend", "auiTooltipType", "info", "auiTooltipPosition", "bottom end", "auiTooltipTrigger", "click", "auiTooltipActive", "legendActive", 1, "btn", 3, "auiTooltip", "auiTooltipContext"], ["aui-button", "", "icon", "prod:chart_legend", "auiTooltipType", "info", "auiTooltipPosition", "bottom end", "auiTooltipTrigger", "click", "auiTooltipActive", "legendActive", 1, "btn", 3, "square", "auiTooltip", "auiTooltipContext"], ["icon", "prod:chart_legend"], [1, "legend-labels"], ["class", "select-all", 4, "ngIf"], ["class", "legend-label", 3, "disable", "forbid", "title", "click", 4, "ngFor", "ngForOf"], [4, "ngIf"], [1, "select-all"], [3, "ngModel", "ngModelChange"], [1, "legend-label", 3, "title", "click"], [3, "ngClass"], [1, "label-name"], [1, "no-data"]], template: function LegendDropdownComponent_Template(rf, ctx) { if (rf & 1) {
|
|
110
|
-
i0.ɵɵtemplate(0, LegendDropdownComponent_ng_container_0_Template, 2, 5, "ng-container", 0);
|
|
111
|
-
i0.ɵɵtemplate(1, LegendDropdownComponent_ng_template_1_Template, 2, 6, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
112
|
-
i0.ɵɵtemplate(3, LegendDropdownComponent_ng_template_3_Template, 5, 5, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
113
|
-
} if (rf & 2) {
|
|
114
|
-
const _r1 = i0.ɵɵreference(2);
|
|
115
|
-
i0.ɵɵproperty("ngIf", !ctx.square)("ngIfElse", _r1);
|
|
116
|
-
} }, styles: [".btn[_ngcontent-%COMP%]{color:rgb(var(--aui-color-n-2));cursor:pointer} .legend-label{padding:0;margin:0;list-style:none;display:flex;align-items:center;cursor:pointer;justify-content:flex-start} .legend-label:not(:last-child){margin-bottom:8px} .label-name{flex:1;color:rgb(var(--aui-color-secondary-text));overflow:hidden;word-wrap:normal;text-overflow:ellipsis} .label-symbol{margin-right:4px}.legendActive[_ngcontent-%COMP%]{color:rgb(var(--aui-color-primary))}.no-data[_ngcontent-%COMP%]{color:rgb(var(--aui-color-n-4));font-size:14px}", "[_nghost-%COMP%]{flex:1;display:flex;justify-content:flex-end;align-items:center}.legend-wrap[_ngcontent-%COMP%]{display:inline-block}.legend-wrap[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .legend-wrap[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:0;margin:0;list-style:none}.legend-wrap[_ngcontent-%COMP%] .legend-labels[_ngcontent-%COMP%]{display:flex}.legend-wrap[_ngcontent-%COMP%] .horizontal[_ngcontent-%COMP%]{flex-direction:row}.legend-wrap[_ngcontent-%COMP%] .horizontal[_ngcontent-%COMP%] .legend-label[_ngcontent-%COMP%]:not(:last-child){margin-right:12px}.legend-wrap[_ngcontent-%COMP%] .vertical[_ngcontent-%COMP%]{flex-direction:column}.legend-wrap[_ngcontent-%COMP%] .vertical[_ngcontent-%COMP%] .legend-label[_ngcontent-%COMP%]:not(:last-child){margin-bottom:8px}.legend-wrap[_ngcontent-%COMP%] .legend-label[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer}.legend-wrap[_ngcontent-%COMP%] .forbid[_ngcontent-%COMP%]{cursor:no-drop}.legend-wrap[_ngcontent-%COMP%] .label-name[_ngcontent-%COMP%]{font-size:12px;color:rgb(var(--aui-color-secondary-text));max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.legend-wrap[_ngcontent-%COMP%] .label-symbol[_ngcontent-%COMP%]{margin-right:4px}.disable[_ngcontent-%COMP%] .label-symbol[_ngcontent-%COMP%]{background:rgb(var(--aui-color-n-6))!important}.disable[_ngcontent-%COMP%] .label-name[_ngcontent-%COMP%]{color:rgb(var(--aui-color-n-6))}.symbol-square[_ngcontent-%COMP%]{width:12px;height:12px;display:inline-block}.symbol-line[_ngcontent-%COMP%]{width:12px;height:2px;display:inline-block}.symbol-circle[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:50%;display:inline-block}.operation[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-left:8px}.select-all[_ngcontent-%COMP%] .aui-checkbox{font-size:12px;line-height:16px;margin-bottom:8px}"], changeDetection: 0 }); }
|
|
117
|
-
}
|
|
118
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LegendDropdownComponent, [{
|
|
119
|
-
type: Component,
|
|
120
|
-
args: [{ selector: 'a-legend-dropdown', template: `
|
|
121
|
-
<ng-container *ngIf="!square; else elseTemplate">
|
|
122
|
-
<aui-icon
|
|
123
|
-
class="btn"
|
|
124
|
-
icon="prod:chart_legend"
|
|
125
|
-
[auiTooltip]="dropdownItemTemplate"
|
|
126
|
-
[auiTooltipContext]="{ data: [] }"
|
|
127
|
-
auiTooltipType="info"
|
|
128
|
-
auiTooltipPosition="bottom end"
|
|
129
|
-
auiTooltipTrigger="click"
|
|
130
|
-
auiTooltipActive="legendActive"
|
|
131
|
-
></aui-icon>
|
|
132
|
-
</ng-container>
|
|
133
|
-
<ng-template #elseTemplate>
|
|
134
|
-
<button
|
|
135
|
-
aui-button
|
|
136
|
-
[square]="true"
|
|
137
|
-
class="btn"
|
|
138
|
-
icon="prod:chart_legend"
|
|
139
|
-
[auiTooltip]="dropdownItemTemplate"
|
|
140
|
-
[auiTooltipContext]="{ data: [] }"
|
|
141
|
-
auiTooltipType="info"
|
|
142
|
-
auiTooltipPosition="bottom end"
|
|
143
|
-
auiTooltipTrigger="click"
|
|
144
|
-
auiTooltipActive="legendActive"
|
|
145
|
-
>
|
|
146
|
-
<aui-icon icon="prod:chart_legend"></aui-icon>
|
|
147
|
-
</button>
|
|
148
|
-
</ng-template>
|
|
149
|
-
|
|
150
|
-
<ng-template #dropdownItemTemplate>
|
|
151
|
-
<ul class="legend-labels">
|
|
152
|
-
<li
|
|
153
|
-
class="select-all"
|
|
154
|
-
*ngIf="!noData && selectAll && template === 'dropdown'"
|
|
155
|
-
>
|
|
156
|
-
<aui-checkbox
|
|
157
|
-
[(ngModel)]="allSelected"
|
|
158
|
-
(ngModelChange)="onAllSelect($event)"
|
|
159
|
-
>
|
|
160
|
-
{{ selectAllName || ('select_all' | translate) }}
|
|
161
|
-
</aui-checkbox>
|
|
162
|
-
</li>
|
|
163
|
-
<li
|
|
164
|
-
class="legend-label"
|
|
165
|
-
[class.disable]="!legend.activated || noData"
|
|
166
|
-
[class.forbid]="noData"
|
|
167
|
-
[title]="(legend.activated ? 'click_hide' : 'click_show') | translate"
|
|
168
|
-
*ngFor="let legend of legendItems$$ | async; let i = index"
|
|
169
|
-
(click)="onSelect(legend)"
|
|
170
|
-
>
|
|
171
|
-
<span
|
|
172
|
-
[ngClass]="[symbolName, 'label-symbol']"
|
|
173
|
-
[style.background]="legend.color"
|
|
174
|
-
>
|
|
175
|
-
</span>
|
|
176
|
-
<span class="label-name">{{
|
|
177
|
-
translation ? (legend.name | translate: {}:true) : legend.name
|
|
178
|
-
}}</span>
|
|
179
|
-
</li>
|
|
180
|
-
</ul>
|
|
181
|
-
<ng-container *ngIf="aChartCtrl?.status?.noData">
|
|
182
|
-
<span class="no-data">{{ 'no_data' | translate }}</span>
|
|
183
|
-
</ng-container>
|
|
184
|
-
</ng-template>
|
|
185
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [".btn{color:rgb(var(--aui-color-n-2));cursor:pointer}::ng-deep .legend-label{padding:0;margin:0;list-style:none;display:flex;align-items:center;cursor:pointer;justify-content:flex-start}::ng-deep .legend-label:not(:last-child){margin-bottom:8px}::ng-deep .label-name{flex:1;color:rgb(var(--aui-color-secondary-text));overflow:hidden;word-wrap:normal;text-overflow:ellipsis}::ng-deep .label-symbol{margin-right:4px}.legendActive{color:rgb(var(--aui-color-primary))}.no-data{color:rgb(var(--aui-color-n-4));font-size:14px}\n", ":host{flex:1;display:flex;justify-content:flex-end;align-items:center}.legend-wrap{display:inline-block}.legend-wrap ul,.legend-wrap li{padding:0;margin:0;list-style:none}.legend-wrap .legend-labels{display:flex}.legend-wrap .horizontal{flex-direction:row}.legend-wrap .horizontal .legend-label:not(:last-child){margin-right:12px}.legend-wrap .vertical{flex-direction:column}.legend-wrap .vertical .legend-label:not(:last-child){margin-bottom:8px}.legend-wrap .legend-label{display:flex;align-items:center;cursor:pointer}.legend-wrap .forbid{cursor:no-drop}.legend-wrap .label-name{font-size:12px;color:rgb(var(--aui-color-secondary-text));max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.legend-wrap .label-symbol{margin-right:4px}.disable .label-symbol{background:rgb(var(--aui-color-n-6))!important}.disable .label-name{color:rgb(var(--aui-color-n-6))}.symbol-square{width:12px;height:12px;display:inline-block}.symbol-line{width:12px;height:2px;display:inline-block}.symbol-circle{width:6px;height:6px;border-radius:50%;display:inline-block}.operation{display:flex;justify-content:center;align-items:center;margin-left:8px}.select-all ::ng-deep .aui-checkbox{font-size:12px;line-height:16px;margin-bottom:8px}\n"] }]
|
|
186
|
-
}], null, { square: [{
|
|
187
|
-
type: Input
|
|
188
|
-
}], symbol: [{
|
|
189
|
-
type: Input
|
|
190
|
-
}], template: [{
|
|
191
|
-
type: Input
|
|
192
|
-
}], translation: [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iBUZW1wbGF0ZVJlZjx1bmtub3duPiB8IHN0cmluZyA9ICdkcm9wZG93bic7XG5cbiAgQElucHV0KCkgdHJhbnNsYXRpb24gPSB0cnVlO1xuXG4gIEBJbnB1dCgpIHNlbGVjdEFsbCA9IGZhbHNlO1xuXG4gIEBJbnB1dCgpIHNlbGVjdEFsbE5hbWU6IHN0cmluZztcblxuICBpc1RlbXBsYXRlUmVmID0gaXNUZW1wbGF0ZVJlZjtcblxuICBhbGxTZWxlY3RlZCA9IHRydWU7XG5cbiAgZ2V0IGRlZmF1bHRTeW1ib2woKSB7XG4gICAgcmV0dXJuIFsnYmFyJywgJ3BpZScsICdzY2F0dGVyJ10uaW5jbHVkZXModGhpcy5hQ2hhcnRDdHJsLnR5cGUpXG4gICAgICA/ICdjaXJjbGUnXG4gICAgICA6ICdsaW5lJztcbiAgfVxuXG4gIGdldCBzeW1ib2xOYW1lKCkge1xuICAgIHJldHVybiBgc3ltYm9sLSR7dGhpcy5kZWZhdWx0U3ltYm9sIHx8IHRoaXMuc3ltYm9sfWA7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
import { isTemplateRef } from '@alauda/ui';
|
|
2
|
-
import { ChangeDetectionStrategy, Component, Input, } from '@angular/core';
|
|
3
|
-
import { BaseLegendComponent } from './base-legend.component';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
function LegendComponent_ng_template_2_li_1_Template(rf, ctx) { if (rf & 1) {
|
|
6
|
-
const _r5 = i0.ɵɵgetCurrentView();
|
|
7
|
-
i0.ɵɵelementStart(0, "li", 6)(1, "aui-checkbox", 7);
|
|
8
|
-
i0.ɵɵlistener("ngModelChange", function LegendComponent_ng_template_2_li_1_Template_aui_checkbox_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r4.allSelected = $event); })("ngModelChange", function LegendComponent_ng_template_2_li_1_Template_aui_checkbox_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r6 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r6.onAllSelect($event)); });
|
|
9
|
-
i0.ɵɵtext(2);
|
|
10
|
-
i0.ɵɵpipe(3, "translate");
|
|
11
|
-
i0.ɵɵelementEnd()();
|
|
12
|
-
} if (rf & 2) {
|
|
13
|
-
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
14
|
-
i0.ɵɵadvance(1);
|
|
15
|
-
i0.ɵɵproperty("ngModel", ctx_r2.allSelected);
|
|
16
|
-
i0.ɵɵadvance(1);
|
|
17
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r2.selectAllName || i0.ɵɵpipeBind1(3, 2, "select_all"), " ");
|
|
18
|
-
} }
|
|
19
|
-
const _c0 = function (a0) { return [a0, "label-symbol"]; };
|
|
20
|
-
const _c1 = function () { return {}; };
|
|
21
|
-
function LegendComponent_ng_template_2_li_2_Template(rf, ctx) { if (rf & 1) {
|
|
22
|
-
const _r10 = i0.ɵɵgetCurrentView();
|
|
23
|
-
i0.ɵɵelementStart(0, "li", 8);
|
|
24
|
-
i0.ɵɵlistener("click", function LegendComponent_ng_template_2_li_2_Template_li_click_0_listener() { const restoredCtx = i0.ɵɵrestoreView(_r10); const legend_r7 = restoredCtx.$implicit; const ctx_r9 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r9.onSelect(legend_r7)); });
|
|
25
|
-
i0.ɵɵpipe(1, "translate");
|
|
26
|
-
i0.ɵɵelement(2, "span", 9);
|
|
27
|
-
i0.ɵɵelementStart(3, "span", 10);
|
|
28
|
-
i0.ɵɵtext(4);
|
|
29
|
-
i0.ɵɵpipe(5, "translate");
|
|
30
|
-
i0.ɵɵelementEnd()();
|
|
31
|
-
} if (rf & 2) {
|
|
32
|
-
const legend_r7 = ctx.$implicit;
|
|
33
|
-
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
34
|
-
i0.ɵɵclassProp("disable", !legend_r7.activated || ctx_r3.noData)("forbid", ctx_r3.noData);
|
|
35
|
-
i0.ɵɵproperty("title", i0.ɵɵpipeBind1(1, 9, legend_r7.activated ? "click_hide" : "click_show"));
|
|
36
|
-
i0.ɵɵadvance(2);
|
|
37
|
-
i0.ɵɵstyleProp("background", legend_r7.color);
|
|
38
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c0, ctx_r3.symbolName));
|
|
39
|
-
i0.ɵɵadvance(2);
|
|
40
|
-
i0.ɵɵtextInterpolate(ctx_r3.translation ? i0.ɵɵpipeBind3(5, 11, legend_r7.name, i0.ɵɵpureFunction0(17, _c1), true) : legend_r7.name);
|
|
41
|
-
} }
|
|
42
|
-
function LegendComponent_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
43
|
-
i0.ɵɵelementStart(0, "ul", 3);
|
|
44
|
-
i0.ɵɵtemplate(1, LegendComponent_ng_template_2_li_1_Template, 4, 4, "li", 4);
|
|
45
|
-
i0.ɵɵtemplate(2, LegendComponent_ng_template_2_li_2_Template, 6, 18, "li", 5);
|
|
46
|
-
i0.ɵɵpipe(3, "async");
|
|
47
|
-
i0.ɵɵelementEnd();
|
|
48
|
-
} if (rf & 2) {
|
|
49
|
-
const ctx_r1 = i0.ɵɵnextContext();
|
|
50
|
-
i0.ɵɵproperty("ngClass", ctx_r1.direction);
|
|
51
|
-
i0.ɵɵadvance(1);
|
|
52
|
-
i0.ɵɵproperty("ngIf", !ctx_r1.noData && ctx_r1.selectAll && ctx_r1.template === "dropdown");
|
|
53
|
-
i0.ɵɵadvance(1);
|
|
54
|
-
i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(3, 3, ctx_r1.legendItems$$));
|
|
55
|
-
} }
|
|
56
|
-
export class LegendComponent extends BaseLegendComponent {
|
|
57
|
-
constructor() {
|
|
58
|
-
super(...arguments);
|
|
59
|
-
this.symbol = 'line';
|
|
60
|
-
this.translation = true;
|
|
61
|
-
this.selectAll = false;
|
|
62
|
-
this.direction = 'horizontal';
|
|
63
|
-
this.isTemplateRef = isTemplateRef;
|
|
64
|
-
this.allSelected = true;
|
|
65
|
-
}
|
|
66
|
-
get defaultSymbol() {
|
|
67
|
-
return ['bar', 'pie', 'scatter'].includes(this.aChartCtrl.type)
|
|
68
|
-
? 'circle'
|
|
69
|
-
: 'line';
|
|
70
|
-
}
|
|
71
|
-
get symbolName() {
|
|
72
|
-
return `symbol-${this.defaultSymbol || this.symbol}`;
|
|
73
|
-
}
|
|
74
|
-
static { this.ɵfac = /*@__PURE__*/ function () { let ɵLegendComponent_BaseFactory; return function LegendComponent_Factory(t) { return (ɵLegendComponent_BaseFactory || (ɵLegendComponent_BaseFactory = i0.ɵɵgetInheritedFactory(LegendComponent)))(t || LegendComponent); }; }(); }
|
|
75
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: LegendComponent, selectors: [["a-legend"]], inputs: { symbol: "symbol", template: "template", translation: "translation", selectAll: "selectAll", selectAllName: "selectAllName", direction: "direction" }, exportAs: ["aLegend"], features: [i0.ɵɵInheritDefinitionFeature], decls: 4, vars: 1, consts: [[1, "legend-wrap"], [3, "ngTemplateOutlet"], ["legendTemplate", ""], [1, "legend-labels", 3, "ngClass"], ["class", "select-all", 4, "ngIf"], ["class", "legend-label", 3, "disable", "forbid", "title", "click", 4, "ngFor", "ngForOf"], [1, "select-all"], [3, "ngModel", "ngModelChange"], [1, "legend-label", 3, "title", "click"], [3, "ngClass"], [1, "label-name"]], template: function LegendComponent_Template(rf, ctx) { if (rf & 1) {
|
|
76
|
-
i0.ɵɵelementStart(0, "div", 0);
|
|
77
|
-
i0.ɵɵelementContainer(1, 1);
|
|
78
|
-
i0.ɵɵelementEnd();
|
|
79
|
-
i0.ɵɵtemplate(2, LegendComponent_ng_template_2_Template, 4, 5, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
80
|
-
} if (rf & 2) {
|
|
81
|
-
const _r0 = i0.ɵɵreference(3);
|
|
82
|
-
i0.ɵɵadvance(1);
|
|
83
|
-
i0.ɵɵproperty("ngTemplateOutlet", _r0);
|
|
84
|
-
} }, styles: ["[_nghost-%COMP%]{flex:1;display:flex;justify-content:flex-end;align-items:center}.legend-wrap[_ngcontent-%COMP%]{display:inline-block}.legend-wrap[_ngcontent-%COMP%] ul[_ngcontent-%COMP%], .legend-wrap[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{padding:0;margin:0;list-style:none}.legend-wrap[_ngcontent-%COMP%] .legend-labels[_ngcontent-%COMP%]{display:flex}.legend-wrap[_ngcontent-%COMP%] .horizontal[_ngcontent-%COMP%]{flex-direction:row}.legend-wrap[_ngcontent-%COMP%] .horizontal[_ngcontent-%COMP%] .legend-label[_ngcontent-%COMP%]:not(:last-child){margin-right:12px}.legend-wrap[_ngcontent-%COMP%] .vertical[_ngcontent-%COMP%]{flex-direction:column}.legend-wrap[_ngcontent-%COMP%] .vertical[_ngcontent-%COMP%] .legend-label[_ngcontent-%COMP%]:not(:last-child){margin-bottom:8px}.legend-wrap[_ngcontent-%COMP%] .legend-label[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer}.legend-wrap[_ngcontent-%COMP%] .forbid[_ngcontent-%COMP%]{cursor:no-drop}.legend-wrap[_ngcontent-%COMP%] .label-name[_ngcontent-%COMP%]{font-size:12px;color:rgb(var(--aui-color-secondary-text));max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.legend-wrap[_ngcontent-%COMP%] .label-symbol[_ngcontent-%COMP%]{margin-right:4px}.disable[_ngcontent-%COMP%] .label-symbol[_ngcontent-%COMP%]{background:rgb(var(--aui-color-n-6))!important}.disable[_ngcontent-%COMP%] .label-name[_ngcontent-%COMP%]{color:rgb(var(--aui-color-n-6))}.symbol-square[_ngcontent-%COMP%]{width:12px;height:12px;display:inline-block}.symbol-line[_ngcontent-%COMP%]{width:12px;height:2px;display:inline-block}.symbol-circle[_ngcontent-%COMP%]{width:6px;height:6px;border-radius:50%;display:inline-block}.operation[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;margin-left:8px}.select-all[_ngcontent-%COMP%] .aui-checkbox{font-size:12px;line-height:16px;margin-bottom:8px}"], changeDetection: 0 }); }
|
|
85
|
-
}
|
|
86
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LegendComponent, [{
|
|
87
|
-
type: Component,
|
|
88
|
-
args: [{ selector: 'a-legend', exportAs: 'aLegend', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"legend-wrap\">\n <ng-container [ngTemplateOutlet]=\"legendTemplate\"></ng-container>\n</div>\n\n<ng-template #legendTemplate>\n <ul\n class=\"legend-labels\"\n [ngClass]=\"direction\"\n >\n <li\n class=\"select-all\"\n *ngIf=\"!noData && selectAll && template === 'dropdown'\"\n >\n <aui-checkbox\n [(ngModel)]=\"allSelected\"\n (ngModelChange)=\"onAllSelect($event)\"\n >\n {{ selectAllName || ('select_all' | translate) }}\n </aui-checkbox>\n </li>\n <li\n class=\"legend-label\"\n [class.disable]=\"!legend.activated || noData\"\n [class.forbid]=\"noData\"\n [title]=\"(legend.activated ? 'click_hide' : 'click_show') | translate\"\n *ngFor=\"let legend of legendItems$$ | async; let i = index\"\n (click)=\"onSelect(legend)\"\n >\n <span\n [ngClass]=\"[symbolName, 'label-symbol']\"\n [style.background]=\"legend.color\"\n >\n </span>\n <span class=\"label-name\">{{\n translation ? (legend.name | translate: {}:true) : legend.name\n }}</span>\n </li>\n </ul>\n</ng-template>\n", styles: [":host{flex:1;display:flex;justify-content:flex-end;align-items:center}.legend-wrap{display:inline-block}.legend-wrap ul,.legend-wrap li{padding:0;margin:0;list-style:none}.legend-wrap .legend-labels{display:flex}.legend-wrap .horizontal{flex-direction:row}.legend-wrap .horizontal .legend-label:not(:last-child){margin-right:12px}.legend-wrap .vertical{flex-direction:column}.legend-wrap .vertical .legend-label:not(:last-child){margin-bottom:8px}.legend-wrap .legend-label{display:flex;align-items:center;cursor:pointer}.legend-wrap .forbid{cursor:no-drop}.legend-wrap .label-name{font-size:12px;color:rgb(var(--aui-color-secondary-text));max-width:200px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.legend-wrap .label-symbol{margin-right:4px}.disable .label-symbol{background:rgb(var(--aui-color-n-6))!important}.disable .label-name{color:rgb(var(--aui-color-n-6))}.symbol-square{width:12px;height:12px;display:inline-block}.symbol-line{width:12px;height:2px;display:inline-block}.symbol-circle{width:6px;height:6px;border-radius:50%;display:inline-block}.operation{display:flex;justify-content:center;align-items:center;margin-left:8px}.select-all ::ng-deep .aui-checkbox{font-size:12px;line-height:16px;margin-bottom:8px}\n"] }]
|
|
89
|
-
}], null, { symbol: [{
|
|
90
|
-
type: Input
|
|
91
|
-
}], template: [{
|
|
92
|
-
type: Input
|
|
93
|
-
}], translation: [{
|
|
94
|
-
type: Input
|
|
95
|
-
}], selectAll: [{
|
|
96
|
-
type: Input
|
|
97
|
-
}], selectAllName: [{
|
|
98
|
-
type: Input
|
|
99
|
-
}], direction: [{
|
|
100
|
-
type: Input
|
|
101
|
-
}] }); })();
|
|
102
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGVnZW5kLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9hLWNoYXJ0L2NvbXBvbmVudHMvbGVnZW5kL2xlZ2VuZC5jb21wb25lbnQudHMiLCIuLi8uLi8uLi8uLi8uLi8uLi8uLi9saWJzL2NvbW1vbi9zcmMvYS1jaGFydC9jb21wb25lbnRzL2xlZ2VuZC9sZWdlbmQuY29tcG9uZW50Lmh0bWwiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLGFBQWEsRUFBRSxNQUFNLFlBQVksQ0FBQztBQUMzQyxPQUFPLEVBQ0wsdUJBQXVCLEVB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nZW5kSXRlbXMkJCB8IGFzeW5jOyBsZXQgaSA9IGluZGV4XCJcbiAgICAgIChjbGljayk9XCJvblNlbGVjdChsZWdlbmQpXCJcbiAgICA+XG4gICAgICA8c3BhblxuICAgICAgICBbbmdDbGFzc109XCJbc3ltYm9sTmFtZSwgJ2xhYmVsLXN5bWJvbCddXCJcbiAgICAgICAgW3N0eWxlLmJhY2tncm91bmRdPVwibGVnZW5kLmNvbG9yXCJcbiAgICAgID5cbiAgICAgIDwvc3Bhbj5cbiAgICAgIDxzcGFuIGNsYXNzPVwibGFiZWwtbmFtZVwiPnt7XG4gICAgICAgIHRyYW5zbGF0aW9uID8gKGxlZ2VuZC5uYW1lIHwgdHJhbnNsYXRlOiB7fTp0cnVlKSA6IGxlZ2VuZC5uYW1lXG4gICAgICB9fTwvc3Bhbj5cbiAgICA8L2xpPlxuICA8L3VsPlxuPC9uZy10ZW1wbGF0ZT5cbiJdfQ==
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export * from './base-legend.component';
|
|
2
|
-
export * from './legend.component';
|
|
3
|
-
export * from './dropdown-legend';
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9hLWNoYXJ0L2NvbXBvbmVudHMvbGVnZW5kL3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsY0FBYyx5QkFBeUIsQ0FBQztBQUN4QyxjQUFjLG9CQUFvQixDQUFDO0FBQ25DLGNBQWMsbUJBQW1CLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgKiBmcm9tICcuL2Jhc2UtbGVnZW5kLmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2xlZ2VuZC5jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9kcm9wZG93bi1sZWdlbmQnO1xuIl19
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export * from './base-component';
|
|
2
|
-
export * from './legend/public-api';
|
|
3
|
-
export * from './title.component';
|
|
4
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9hLWNoYXJ0L2NvbXBvbmVudHMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxjQUFjLGtCQUFrQixDQUFDO0FBQ2pDLGNBQWMscUJBQXFCLENBQUM7QUFDcEMsY0FBYyxtQkFBbUIsQ0FBQyIsInNvdXJjZXNDb250ZW50IjpbImV4cG9ydCAqIGZyb20gJy4vYmFzZS1jb21wb25lbnQnO1xuZXhwb3J0ICogZnJvbSAnLi9sZWdlbmQvcHVibGljLWFwaSc7XG5leHBvcnQgKiBmcm9tICcuL3RpdGxlLmNvbXBvbmVudCc7XG4iXX0=
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
import { __decorate, __metadata } from "tslib";
|
|
2
|
-
import { isTemplateRef } from '@alauda/ui';
|
|
3
|
-
import { Component, ChangeDetectionStrategy, TemplateRef, Input, ViewChild, ChangeDetectorRef, } from '@angular/core';
|
|
4
|
-
import { Observable } from 'rxjs';
|
|
5
|
-
import { ObservableInput } from '../../core/public-api';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
import * as i1 from "@angular/common";
|
|
8
|
-
const _c0 = ["titleContainer"];
|
|
9
|
-
function TitleComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
10
|
-
i0.ɵɵelementContainerStart(0);
|
|
11
|
-
i0.ɵɵelementContainer(1, 3);
|
|
12
|
-
i0.ɵɵelementContainerEnd();
|
|
13
|
-
} if (rf & 2) {
|
|
14
|
-
const ctx_r0 = i0.ɵɵnextContext();
|
|
15
|
-
i0.ɵɵadvance(1);
|
|
16
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r0.text);
|
|
17
|
-
} }
|
|
18
|
-
function TitleComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
19
|
-
i0.ɵɵtext(0);
|
|
20
|
-
} if (rf & 2) {
|
|
21
|
-
const ctx_r2 = i0.ɵɵnextContext();
|
|
22
|
-
i0.ɵɵtextInterpolate2(" ", ctx_r2.text, " ", ctx_r2.suffix, " ");
|
|
23
|
-
} }
|
|
24
|
-
function TitleComponent_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
25
|
-
i0.ɵɵelementContainerStart(0);
|
|
26
|
-
i0.ɵɵelementContainer(1, 4);
|
|
27
|
-
i0.ɵɵelementContainerEnd();
|
|
28
|
-
} if (rf & 2) {
|
|
29
|
-
const ctx_r3 = i0.ɵɵnextContext();
|
|
30
|
-
i0.ɵɵadvance(1);
|
|
31
|
-
i0.ɵɵproperty("ngTemplateOutlet", ctx_r3.description)("ngTemplateOutletContext", ctx_r3.descriptionContext);
|
|
32
|
-
} }
|
|
33
|
-
function TitleComponent_ng_template_4_Template(rf, ctx) { if (rf & 1) {
|
|
34
|
-
i0.ɵɵtext(0);
|
|
35
|
-
} if (rf & 2) {
|
|
36
|
-
const ctx_r5 = i0.ɵɵnextContext();
|
|
37
|
-
i0.ɵɵtextInterpolate1(" ", ctx_r5.description, " ");
|
|
38
|
-
} }
|
|
39
|
-
export class TitleComponent {
|
|
40
|
-
constructor(cdr) {
|
|
41
|
-
this.cdr = cdr;
|
|
42
|
-
this.isTemplateRef = isTemplateRef;
|
|
43
|
-
}
|
|
44
|
-
setSuffix(suffix) {
|
|
45
|
-
this.suffix = suffix;
|
|
46
|
-
this.cdr.detectChanges();
|
|
47
|
-
}
|
|
48
|
-
static { this.ɵfac = function TitleComponent_Factory(t) { return new (t || TitleComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); }; }
|
|
49
|
-
static { this.ɵcmp = /*@__PURE__*/ i0.ɵɵdefineComponent({ type: TitleComponent, selectors: [["a-title"]], viewQuery: function TitleComponent_Query(rf, ctx) { if (rf & 1) {
|
|
50
|
-
i0.ɵɵviewQuery(_c0, 5);
|
|
51
|
-
} if (rf & 2) {
|
|
52
|
-
let _t;
|
|
53
|
-
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.titleContainer = _t.first);
|
|
54
|
-
} }, inputs: { text: "text", description: "description", descriptionContext: "descriptionContext" }, decls: 6, vars: 4, consts: [[4, "ngIf", "ngIfElse"], ["titleTpl", ""], ["titleDesTpl", ""], [3, "ngTemplateOutlet"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"]], template: function TitleComponent_Template(rf, ctx) { if (rf & 1) {
|
|
55
|
-
i0.ɵɵtemplate(0, TitleComponent_ng_container_0_Template, 2, 1, "ng-container", 0);
|
|
56
|
-
i0.ɵɵtemplate(1, TitleComponent_ng_template_1_Template, 1, 2, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
57
|
-
i0.ɵɵtemplate(3, TitleComponent_ng_container_3_Template, 2, 2, "ng-container", 0);
|
|
58
|
-
i0.ɵɵtemplate(4, TitleComponent_ng_template_4_Template, 1, 1, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
59
|
-
} if (rf & 2) {
|
|
60
|
-
const _r1 = i0.ɵɵreference(2);
|
|
61
|
-
const _r4 = i0.ɵɵreference(5);
|
|
62
|
-
i0.ɵɵproperty("ngIf", ctx.isTemplateRef(ctx.text))("ngIfElse", _r1);
|
|
63
|
-
i0.ɵɵadvance(3);
|
|
64
|
-
i0.ɵɵproperty("ngIf", ctx.isTemplateRef(ctx.description))("ngIfElse", _r4);
|
|
65
|
-
} }, dependencies: [i1.NgIf, i1.NgTemplateOutlet], styles: ["[_nghost-%COMP%]{display:flex;align-items:center;font-size:var(--aui-font-size-m)}"], changeDetection: 0 }); }
|
|
66
|
-
}
|
|
67
|
-
__decorate([
|
|
68
|
-
ObservableInput(),
|
|
69
|
-
__metadata("design:type", Observable)
|
|
70
|
-
], TitleComponent.prototype, "text$", void 0);
|
|
71
|
-
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(TitleComponent, [{
|
|
72
|
-
type: Component,
|
|
73
|
-
args: [{ selector: 'a-title', template: `
|
|
74
|
-
<ng-container *ngIf="isTemplateRef(text); else titleTpl">
|
|
75
|
-
<ng-container [ngTemplateOutlet]="text"></ng-container>
|
|
76
|
-
</ng-container>
|
|
77
|
-
<ng-template #titleTpl> {{ text }} {{ this.suffix }} </ng-template>
|
|
78
|
-
|
|
79
|
-
<ng-container *ngIf="isTemplateRef(description); else titleDesTpl">
|
|
80
|
-
<ng-container
|
|
81
|
-
[ngTemplateOutlet]="description"
|
|
82
|
-
[ngTemplateOutletContext]="descriptionContext"
|
|
83
|
-
></ng-container>
|
|
84
|
-
</ng-container>
|
|
85
|
-
<ng-template #titleDesTpl>
|
|
86
|
-
{{ description }}
|
|
87
|
-
</ng-template>
|
|
88
|
-
`, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:flex;align-items:center;font-size:var(--aui-font-size-m)}\n"] }]
|
|
89
|
-
}], function () { return [{ type: i0.ChangeDetectorRef }]; }, { text: [{
|
|
90
|
-
type: Input
|
|
91
|
-
}], text$: [], description: [{
|
|
92
|
-
type: Input
|
|
93
|
-
}], descriptionContext: [{
|
|
94
|
-
type: Input
|
|
95
|
-
}], titleContainer: [{
|
|
96
|
-
type: ViewChild,
|
|
97
|
-
args: ['titleContainer']
|
|
98
|
-
}] }); })();
|
|
99
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGl0bGUuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi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bmVyJykgdGl0bGVDb250YWluZXI6IFRlbXBsYXRlUmVmPHVua25vd24+O1xuXG4gIGlzVGVtcGxhdGVSZWYgPSBpc1RlbXBsYXRlUmVmO1xuXG4gIHN1ZmZpeDogc3RyaW5nO1xuXG4gIGNvbnN0cnVjdG9yKHByaXZhdGUgcmVhZG9ubHkgY2RyOiBDaGFuZ2VEZXRlY3RvclJlZikge31cblxuICBzZXRTdWZmaXgoc3VmZml4OiBzdHJpbmcpIHtcbiAgICB0aGlzLnN1ZmZpeCA9IHN1ZmZpeDtcbiAgICB0aGlzLmNkci5kZXRlY3RDaGFuZ2VzKCk7XG4gIH1cbn1cbiJdfQ==
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import dayjs from 'dayjs';
|
|
3
|
-
import { transformMaximum } from './utils';
|
|
4
|
-
export const CHART_TIME_FORMAT = 'HH:mm';
|
|
5
|
-
export const DEFAULT_CONFIG = {
|
|
6
|
-
padding: [16, 12, 2, 0],
|
|
7
|
-
options: {
|
|
8
|
-
axis: {
|
|
9
|
-
x: {
|
|
10
|
-
formatter: (value) => dayjs.isDayjs(dayjs(+value))
|
|
11
|
-
? dayjs(+value).format(CHART_TIME_FORMAT)
|
|
12
|
-
: value,
|
|
13
|
-
},
|
|
14
|
-
y: {
|
|
15
|
-
formatter: (value) => transformMaximum(value),
|
|
16
|
-
},
|
|
17
|
-
},
|
|
18
|
-
tooltip: {
|
|
19
|
-
sort: (a, b) => b.value - a.value,
|
|
20
|
-
},
|
|
21
|
-
},
|
|
22
|
-
};
|
|
23
|
-
export const CHART_COMPONENT_TOKEN = new InjectionToken('CHART_COMPONENT_TOKEN');
|
|
24
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29uc3RhbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9saWJzL2NvbW1vbi9zcmMvYS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uO1xuXG5leHBvcnQgY29uc3QgQ0hBUlRfQ09NUE9ORU5UX1RPS0VOID0gbmV3IEluamVjdGlvblRva2VuPENoYXJ0Q29tcG9uZW50PihcbiAgJ0NIQVJUX0NPTVBPTkVOVF9UT0tFTicsXG4pO1xuIl19
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @packageDocumentation
|
|
3
|
-
* @module a-chart
|
|
4
|
-
* @preferred
|
|
5
|
-
*/
|
|
6
|
-
export * from './a-chart.module';
|
|
7
|
-
export * from './chart.component';
|
|
8
|
-
export * from './components/public-api';
|
|
9
|
-
export * from './types';
|
|
10
|
-
export * from './constant';
|
|
11
|
-
export * from './utils';
|
|
12
|
-
export * from './chart-status.component';
|
|
13
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL2xpYnMvY29tbW9uL3NyYy9hLWNoYXJ0L3B1YmxpYy1hcGkudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7R0FJRztBQUVILGNBQWMsa0JBQWtCLENBQUM7QUFDakMsY0FBYyxtQkFBbUIsQ0FBQztBQUNsQyxjQUFjLHlCQUF5QixDQUFDO0FBQ3hDLGNBQWMsU0FBUyxDQUFDO0FBQ3hCLGNBQWMsWUFBWSxDQUFDO0FBQzNCLGNBQWMsU0FBUyxDQUFDO0FBQ3hCLGNBQWMsMEJBQTBCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEBwYWNrYWdlRG9jdW1lbnRhdGlvblxuICogQG1vZHVsZSBhLWNoYXJ0XG4gKiBAcHJlZmVycmVkXG4gKi9cblxuZXhwb3J0ICogZnJvbSAnLi9hLWNoYXJ0Lm1vZHVsZSc7XG5leHBvcnQgKiBmcm9tICcuL2NoYXJ0LmNvbXBvbmVudCc7XG5leHBvcnQgKiBmcm9tICcuL2NvbXBvbmVudHMvcHVibGljLWFwaSc7XG5leHBvcnQgKiBmcm9tICcuL3R5cGVzJztcbmV4cG9ydCAqIGZyb20gJy4vY29uc3RhbnQnO1xuZXhwb3J0ICogZnJvbSAnLi91dGlscyc7XG5leHBvcnQgKiBmcm9tICcuL2NoYXJ0LXN0YXR1cy5jb21wb25lbnQnO1xuIl19
|