@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.
Files changed (508) hide show
  1. package/api/helpers.d.ts +8 -16
  2. package/array-form-table/form/component.d.ts +1 -1
  3. package/business/resource-select/internals/namespace-list/component.d.ts +3 -1
  4. package/business/resource-select/module.d.ts +2 -1
  5. package/core/components/tree/toggle.d.ts +3 -3
  6. package/core/constants/constants.d.ts +4 -1
  7. package/core/constants/patterns.d.ts +8 -0
  8. package/core/constants/status-icons.d.ts +2 -1
  9. package/core/services/encode-url-param.interceptor.d.ts +12 -0
  10. package/core/services/public-api.d.ts +1 -0
  11. package/core/services/time.service.d.ts +1 -0
  12. package/core/types/k8s/crd.d.ts +11 -5
  13. package/core/types/k8s/raw.d.ts +25 -38
  14. package/core/types/resource-definitions.d.ts +57 -71
  15. package/core/utils/common.d.ts +5 -11
  16. package/core/utils/disabled-state.d.ts +20 -0
  17. package/core/utils/public-api.d.ts +2 -0
  18. package/core/utils/workload.d.ts +66 -0
  19. package/esm2022/abnormal-page/abnormal-page.component.mjs +5 -4
  20. package/esm2022/abnormal-page/abnormal-page.module.mjs +2 -2
  21. package/esm2022/api/acp-common-api.service.mjs +3 -3
  22. package/esm2022/api/api-compatible.interceptor.mjs +1 -1
  23. package/esm2022/api/api-gateway.interceptor.mjs +3 -3
  24. package/esm2022/api/api-gateway.service.mjs +2 -2
  25. package/esm2022/api/cluster-version.service.mjs +3 -3
  26. package/esm2022/api/crypto.interceptor.mjs +4 -4
  27. package/esm2022/api/helpers.mjs +1 -1
  28. package/esm2022/api/k8s-api-resource.service.mjs +4 -4
  29. package/esm2022/api/k8s-api.service.mjs +6 -6
  30. package/esm2022/api/page-visibility.service.mjs +2 -2
  31. package/esm2022/api/platform-ui.service.mjs +2 -2
  32. package/esm2022/api/product.service.mjs +3 -3
  33. package/esm2022/api/project-api.service.mjs +3 -3
  34. package/esm2022/api/resource-update.service.mjs +3 -3
  35. package/esm2022/array-form-table/base-string-map-form.component.mjs +3 -3
  36. package/esm2022/array-form-table/form/component.mjs +104 -111
  37. package/esm2022/array-form-table/form/module.mjs +2 -2
  38. package/esm2022/array-form-table/key-value-form/component.mjs +53 -58
  39. package/esm2022/array-form-table/key-value-table/component.mjs +7 -7
  40. package/esm2022/array-form-table/string-array-form/component.mjs +48 -52
  41. package/esm2022/async-data/async-data-loader.mjs +1 -1
  42. package/esm2022/async-data/async-data.module.mjs +2 -2
  43. package/esm2022/async-data/error-page/component.mjs +21 -22
  44. package/esm2022/async-data/page-state/component.mjs +16 -15
  45. package/esm2022/authorization/app-init-url.mjs +1 -1
  46. package/esm2022/authorization/guard.service.mjs +4 -4
  47. package/esm2022/authorization/interceptor.service.mjs +4 -4
  48. package/esm2022/authorization/session-manage.service.mjs +5 -5
  49. package/esm2022/authorization/state.service.mjs +2 -2
  50. package/esm2022/authorization/storage-token.mjs +2 -2
  51. package/esm2022/business/module-info/api.service.mjs +3 -3
  52. package/esm2022/business/notification-disabled-container/component.mjs +14 -14
  53. package/esm2022/business/resource-select/base-list.mjs +3 -3
  54. package/esm2022/business/resource-select/context.service.mjs +3 -3
  55. package/esm2022/business/resource-select/exports/cluster-selector/component.mjs +22 -20
  56. package/esm2022/business/resource-select/exports/mesh-group-selector/component.mjs +22 -20
  57. package/esm2022/business/resource-select/exports/namespace-page/component.mjs +6 -5
  58. package/esm2022/business/resource-select/exports/namespace-selector/component.mjs +37 -35
  59. package/esm2022/business/resource-select/exports/project-page/component.mjs +6 -5
  60. package/esm2022/business/resource-select/exports/project-selector/component.mjs +23 -22
  61. package/esm2022/business/resource-select/helpers.directive.mjs +2 -2
  62. package/esm2022/business/resource-select/internals/cluster-list/component.mjs +7 -6
  63. package/esm2022/business/resource-select/internals/data-grid/component.mjs +173 -176
  64. package/esm2022/business/resource-select/internals/icon/component.mjs +3 -2
  65. package/esm2022/business/resource-select/internals/meshgroup-list/component.mjs +5 -4
  66. package/esm2022/business/resource-select/internals/namespace-list/component.mjs +145 -100
  67. package/esm2022/business/resource-select/internals/no-data/component.mjs +12 -14
  68. package/esm2022/business/resource-select/internals/project-list/component.mjs +5 -4
  69. package/esm2022/business/resource-select/internals/resource-dashboard/component.mjs +7 -6
  70. package/esm2022/business/resource-select/internals/selector-popup/component.mjs +6 -5
  71. package/esm2022/business/resource-select/internals/selector-popup/ref.mjs +1 -1
  72. package/esm2022/business/resource-select/internals/selector-popup/service.mjs +3 -3
  73. package/esm2022/business/resource-select/module.mjs +17 -14
  74. package/esm2022/business/resource-select/project.service.mjs +3 -3
  75. package/esm2022/business/resource-select/utils.mjs +1 -1
  76. package/esm2022/chart/chart.module.mjs +2 -2
  77. package/esm2022/chart/chart.service.mjs +4 -4
  78. package/esm2022/chart/common/axis/axis-label.component.mjs +4 -3
  79. package/esm2022/chart/common/axis/x-axis-ticks.component.mjs +27 -27
  80. package/esm2022/chart/common/axis/x-axis.component.mjs +6 -5
  81. package/esm2022/chart/common/axis/x-plot-lines.component.mjs +7 -6
  82. package/esm2022/chart/common/axis/y-axis-ticks.component.mjs +35 -35
  83. package/esm2022/chart/common/axis/y-axis.component.mjs +9 -8
  84. package/esm2022/chart/common/axis/y-plot-lines.component.mjs +6 -5
  85. package/esm2022/chart/common/chart/chart.component.mjs +41 -43
  86. package/esm2022/chart/common/legend/legend.component.mjs +62 -65
  87. package/esm2022/chart/common/range-area/range-area.component.mjs +13 -11
  88. package/esm2022/chart/common/reference-area/reference-area.component.mjs +4 -3
  89. package/esm2022/chart/common/series/area-series.component.mjs +15 -14
  90. package/esm2022/chart/common/series/bar-path.component.mjs +20 -21
  91. package/esm2022/chart/common/series/bar-series.component.mjs +8 -7
  92. package/esm2022/chart/common/series/line-series.component.mjs +7 -6
  93. package/esm2022/chart/common/series/series.component.mjs +3 -3
  94. package/esm2022/chart/common/tooltip/tooltip.component.mjs +73 -81
  95. package/esm2022/chart/custom-template/dropdown-legend.mjs +23 -25
  96. package/esm2022/chart/utils.mjs +1 -1
  97. package/esm2022/code/code-display-dialog/component.mjs +9 -8
  98. package/esm2022/code/code-editor-configs.mjs +2 -2
  99. package/esm2022/code/code.module.mjs +2 -2
  100. package/esm2022/code/k8s-yaml-display-dialog/component.mjs +9 -8
  101. package/esm2022/code/resource-yaml-display/component.mjs +21 -22
  102. package/esm2022/core/abstract/base-form-container.mjs +3 -3
  103. package/esm2022/core/abstract/base-nested-form-control.mjs +5 -5
  104. package/esm2022/core/components/tree/module.mjs +2 -2
  105. package/esm2022/core/components/tree/node/component.mjs +7 -6
  106. package/esm2022/core/components/tree/outlet.mjs +4 -4
  107. package/esm2022/core/components/tree/padding.mjs +6 -6
  108. package/esm2022/core/components/tree/toggle.mjs +9 -9
  109. package/esm2022/core/components/tree/tree/component.mjs +4 -3
  110. package/esm2022/core/constants/constants.mjs +4 -1
  111. package/esm2022/core/constants/patterns.mjs +10 -1
  112. package/esm2022/core/constants/status-icons.mjs +2 -1
  113. package/esm2022/core/constants/tokens.mjs +1 -1
  114. package/esm2022/core/directives/aui-code-editor.directive.mjs +3 -3
  115. package/esm2022/core/directives/click-outside.directive.mjs +4 -4
  116. package/esm2022/core/directives/declare.directive.mjs +2 -2
  117. package/esm2022/core/directives/disabled.directive.mjs +4 -4
  118. package/esm2022/core/directives/feature-gate.directive.mjs +4 -4
  119. package/esm2022/core/directives/intercept-deactivate.directive.mjs +4 -4
  120. package/esm2022/core/directives/last-form-item.directive.mjs +3 -3
  121. package/esm2022/core/directives/page-header-content.directive.mjs +3 -3
  122. package/esm2022/core/directives/readonly-field.directive.mjs +8 -7
  123. package/esm2022/core/directives/resize.directive.mjs +3 -3
  124. package/esm2022/core/directives/scroll-border-observer.directive.mjs +4 -4
  125. package/esm2022/core/directives/scroll-to-first-invalid.directive.mjs +5 -5
  126. package/esm2022/core/guards/feature.guard.mjs +4 -4
  127. package/esm2022/core/guards/intercept-deactivate.guard.mjs +3 -3
  128. package/esm2022/core/guards/leave-edit-page.guard.mjs +3 -3
  129. package/esm2022/core/guards/project-namespace.guard.mjs +5 -5
  130. package/esm2022/core/module.mjs +2 -2
  131. package/esm2022/core/pipes/calc.pipe.mjs +2 -2
  132. package/esm2022/core/pipes/cron-human-readable.pipe.mjs +2 -2
  133. package/esm2022/core/pipes/crontab-next.pipe.mjs +3 -3
  134. package/esm2022/core/pipes/duration.pipe.mjs +3 -3
  135. package/esm2022/core/pipes/field-not-available.pipe.mjs +2 -2
  136. package/esm2022/core/pipes/img-header.pipe.mjs +2 -2
  137. package/esm2022/core/pipes/img-theme.pipe.mjs +3 -3
  138. package/esm2022/core/pipes/k8s-util.pipe.mjs +24 -24
  139. package/esm2022/core/pipes/k8s-util.pipe.module.mjs +2 -2
  140. package/esm2022/core/pipes/keyvalue.pipe.mjs +3 -3
  141. package/esm2022/core/pipes/marked.pipe.mjs +2 -2
  142. package/esm2022/core/pipes/minimum-format.pipe.mjs +3 -3
  143. package/esm2022/core/pipes/page-env.pipe.mjs +5 -5
  144. package/esm2022/core/pipes/parse-json-translate.pipe.mjs +3 -3
  145. package/esm2022/core/pipes/parse-json.pipe.mjs +2 -2
  146. package/esm2022/core/pipes/pure.pipe.mjs +2 -2
  147. package/esm2022/core/pipes/pure.pipe.module.mjs +2 -2
  148. package/esm2022/core/pipes/safe.pipe.mjs +3 -3
  149. package/esm2022/core/pipes/sanitize.pipe.mjs +3 -3
  150. package/esm2022/core/pipes/time.pipe.mjs +9 -9
  151. package/esm2022/core/pipes/timezone-display.pipe.mjs +2 -2
  152. package/esm2022/core/services/aui-paginator-intl.service.mjs +3 -3
  153. package/esm2022/core/services/aui-tooltip-copy-intl.service.mjs +3 -3
  154. package/esm2022/core/services/context.service.mjs +4 -4
  155. package/esm2022/core/services/custom-code-editor-intl.service.mjs +3 -3
  156. package/esm2022/core/services/encode-url-param.interceptor.mjs +32 -0
  157. package/esm2022/core/services/feature-gate.service.mjs +3 -3
  158. package/esm2022/core/services/form-row-duplicate/form-row-duplicate.service.mjs +3 -3
  159. package/esm2022/core/services/intercept-deactivate.service.mjs +3 -3
  160. package/esm2022/core/services/k8s-util.service.mjs +3 -3
  161. package/esm2022/core/services/on-resize.service.mjs +5 -5
  162. package/esm2022/core/services/public-api.mjs +2 -1
  163. package/esm2022/core/services/silently-navigate.service.mjs +3 -3
  164. package/esm2022/core/services/time.service.mjs +4 -3
  165. package/esm2022/core/services/ui-state.service.mjs +2 -2
  166. package/esm2022/core/services/workspace-helper.service.mjs +2 -2
  167. package/esm2022/core/services/yaml-util.service.mjs +4 -4
  168. package/esm2022/core/types/k8s/crd.mjs +1 -1
  169. package/esm2022/core/types/k8s/raw.mjs +1 -1
  170. package/esm2022/core/types/resource-definitions.mjs +42 -65
  171. package/esm2022/core/utils/cache-store.mjs +1 -1
  172. package/esm2022/core/utils/common.mjs +3 -2
  173. package/esm2022/core/utils/create-recursive-filter.mjs +1 -1
  174. package/esm2022/core/utils/cron-util.mjs +1 -1
  175. package/esm2022/core/utils/decorators.mjs +1 -1
  176. package/esm2022/core/utils/disabled-state.mjs +47 -0
  177. package/esm2022/core/utils/format-number.mjs +1 -1
  178. package/esm2022/core/utils/k8s-util.mjs +1 -1
  179. package/esm2022/core/utils/observable.mjs +1 -1
  180. package/esm2022/core/utils/operators.mjs +1 -1
  181. package/esm2022/core/utils/public-api.mjs +3 -1
  182. package/esm2022/core/utils/request-pool.mjs +1 -1
  183. package/esm2022/core/utils/resources.mjs +1 -1
  184. package/esm2022/core/utils/sort-fn.mjs +1 -1
  185. package/esm2022/core/utils/tree.mjs +1 -1
  186. package/esm2022/core/utils/unit.mjs +1 -1
  187. package/esm2022/core/utils/version.mjs +1 -1
  188. package/esm2022/core/utils/workload.mjs +183 -0
  189. package/esm2022/core/utils/workspace.mjs +1 -1
  190. package/esm2022/core/utils/yaml.mjs +1 -1
  191. package/esm2022/custom-columns-setting/component.mjs +30 -23
  192. package/esm2022/disabled-container/disabled-container.component.mjs +4 -3
  193. package/esm2022/disabled-container/disabled-container.module.mjs +2 -2
  194. package/esm2022/editable-text/component.mjs +14 -12
  195. package/esm2022/editable-text/module.mjs +2 -2
  196. package/esm2022/effect-directive/coerce-number.directive.mjs +4 -4
  197. package/esm2022/effect-directive/e2e-attribute-binding.directive.mjs +3 -3
  198. package/esm2022/effect-directive/event.directive.mjs +3 -3
  199. package/esm2022/effect-directive/min-max.directive.mjs +3 -3
  200. package/esm2022/effect-directive/module.mjs +2 -2
  201. package/esm2022/effect-directive/trim.directive.mjs +3 -3
  202. package/esm2022/effect-directive/validators.directive.mjs +3 -3
  203. package/esm2022/exec/module.mjs +2 -2
  204. package/esm2022/exec/placeholder/component.mjs +4 -3
  205. package/esm2022/exec/service.mjs +3 -3
  206. package/esm2022/exec/terminal/component.mjs +77 -69
  207. package/esm2022/exec/terminal-group/component.mjs +42 -44
  208. package/esm2022/feature-gate-forbidden/component/component.mjs +9 -8
  209. package/esm2022/feature-gate-forbidden/module.mjs +2 -2
  210. package/esm2022/form/directives/value-trace.directive.mjs +4 -4
  211. package/esm2022/form/errors-mapper/base-errors-mapper.mjs +3 -3
  212. package/esm2022/form/errors-mapper/default-errors-mapper.service.mjs +3 -3
  213. package/esm2022/form/errors-mapper/errors-mapper-component/component.mjs +6 -5
  214. package/esm2022/form/errors-mapper/errors-mapper.directive.mjs +7 -6
  215. package/esm2022/form/errors-mapper/errors-mapper.module.mjs +2 -2
  216. package/esm2022/form/labels-editor/component.mjs +36 -36
  217. package/esm2022/form/taints-editor/component.mjs +42 -42
  218. package/esm2022/form/upload-file/component.mjs +9 -7
  219. package/esm2022/form/utils.mjs +1 -1
  220. package/esm2022/form/validators/async-function-validator.directive.mjs +4 -3
  221. package/esm2022/form/validators/dns1123-subdomain.mjs +1 -1
  222. package/esm2022/form/validators/function-validator.directive.mjs +4 -3
  223. package/esm2022/form/validators/maxlength-minlength-validator.directive.mjs +9 -7
  224. package/esm2022/form/validators/module.mjs +7 -8
  225. package/esm2022/form/validators/not-be-validator.directive.mjs +4 -3
  226. package/esm2022/form/validators/one-of-validator.directive.mjs +4 -3
  227. package/esm2022/form/validators/resource-limit.mjs +1 -1
  228. package/esm2022/form/validators/strong-password/strong-password-tooltip/component.mjs +30 -28
  229. package/esm2022/form/validators/strong-password/strong-password-validator.directive.mjs +3 -3
  230. package/esm2022/form/validators/strong-password/strong-password-validator.module.mjs +6 -7
  231. package/esm2022/form/validators/utils.mjs +1 -1
  232. package/esm2022/graph-canvas/components/graph-actions.component.mjs +3 -2
  233. package/esm2022/graph-canvas/components/graph-canvas.component.mjs +25 -23
  234. package/esm2022/graph-canvas/components/graph-link.component.mjs +12 -13
  235. package/esm2022/graph-canvas/components/graph-links.component.mjs +3 -2
  236. package/esm2022/graph-canvas/components/graph-node.directive.mjs +4 -4
  237. package/esm2022/graph-canvas/graph-canvas.module.mjs +2 -2
  238. package/esm2022/graph-canvas/graph-store.service.mjs +2 -2
  239. package/esm2022/grid-layout/components/grid/component.mjs +5 -4
  240. package/esm2022/grid-layout/components/grid-items/component.mjs +8 -7
  241. package/esm2022/grid-layout/directives/drag-handler.directive.mjs +3 -3
  242. package/esm2022/grid-layout/directives/placeholder.directive.mjs +3 -3
  243. package/esm2022/grid-layout/directives/remove-handler.directive.mjs +3 -3
  244. package/esm2022/grid-layout/directives/resize-handler.directive.mjs +3 -3
  245. package/esm2022/grid-layout/grid-layout.service.mjs +2 -2
  246. package/esm2022/grid-layout/grid-placeholder.service.mjs +3 -3
  247. package/esm2022/grid-layout/module.mjs +2 -2
  248. package/esm2022/grid-layout/utils/grid.utils.mjs +1 -1
  249. package/esm2022/grid-layout/utils/react-grid-layout.utils.mjs +1 -1
  250. package/esm2022/grid-layout/utils/scroll.utils.mjs +1 -1
  251. package/esm2022/help-document/component.mjs +18 -16
  252. package/esm2022/help-document/directive.mjs +4 -4
  253. package/esm2022/help-document/module.mjs +2 -2
  254. package/esm2022/help-document/service.mjs +4 -4
  255. package/esm2022/iframe-config/config.service.mjs +3 -3
  256. package/esm2022/k8s-resource-list/footer/component.mjs +53 -51
  257. package/esm2022/k8s-resource-list/k8s-resource-list.mjs +3 -6
  258. package/esm2022/k8s-resource-list/k8s-resource-list.module.mjs +2 -2
  259. package/esm2022/k8s-resource-list/k8s-resource-paged-list.mjs +1 -1
  260. package/esm2022/k8s-resource-list/utils.mjs +1 -1
  261. package/esm2022/k8s-shared/constants.mjs +53 -0
  262. package/esm2022/k8s-shared/k8s-resource-translate-key.pipe.mjs +30 -0
  263. package/esm2022/k8s-shared/k8s-shared-util.service.mjs +3 -3
  264. package/esm2022/k8s-shared/public-api.mjs +2 -1
  265. package/esm2022/k8s-shared/update-description-dialog/component.mjs +10 -9
  266. package/esm2022/k8s-shared/update-display-name-dialog/component.mjs +22 -20
  267. package/esm2022/k8s-shared/update-key-value-dialog/component.mjs +13 -11
  268. package/esm2022/lazy-component/lazy-load-component.mjs +25 -26
  269. package/esm2022/lazy-component/visibility.service.mjs +2 -2
  270. package/esm2022/license/license-api.mjs +3 -3
  271. package/esm2022/license/license-error/component.mjs +25 -25
  272. package/esm2022/license/license-error/module.mjs +2 -2
  273. package/esm2022/license/license.guard.mjs +4 -4
  274. package/esm2022/license/license.service.mjs +4 -4
  275. package/esm2022/list-display/component.mjs +39 -40
  276. package/esm2022/metric-chart/common-chart.service.mjs +3 -3
  277. package/esm2022/metric-chart/helpers.mjs +1 -1
  278. package/esm2022/metric-chart/metric-chart.component.mjs +6 -5
  279. package/esm2022/metric-chart/metric-chart.module.mjs +2 -2
  280. package/esm2022/metric-chart/metric-time-pick.mjs +20 -17
  281. package/esm2022/metric-chart/utils.mjs +1 -1
  282. package/esm2022/multi-search/action-input/component.mjs +180 -181
  283. package/esm2022/multi-search/form/component.mjs +26 -22
  284. package/esm2022/multi-search/multi-search-tags/component.mjs +33 -31
  285. package/esm2022/mutable/element.mjs +1 -1
  286. package/esm2022/mutable/mosaic/mosaic.component.mjs +6 -5
  287. package/esm2022/mutable/mosaic/mosaic.directive.mjs +3 -3
  288. package/esm2022/mutable/mutable.directive.mjs +4 -4
  289. package/esm2022/mutable/mutable.module.mjs +2 -2
  290. package/esm2022/notification/feedback-notification/component.mjs +22 -23
  291. package/esm2022/notification/notification-util.service.mjs +3 -3
  292. package/esm2022/notification/resource-error.interceptor.mjs +3 -3
  293. package/esm2022/overview-banner/overview-banner.component.mjs +3 -2
  294. package/esm2022/overview-banner/overview-banner.module.mjs +2 -2
  295. package/esm2022/page-guard/component/component.mjs +70 -78
  296. package/esm2022/page-guard/component/helper-directives.mjs +5 -5
  297. package/esm2022/page-guard/module.mjs +2 -2
  298. package/esm2022/page-scaffold/module.mjs +2 -2
  299. package/esm2022/page-scaffold/navigation/breadcrumb/breadcrumb-slot.directive.mjs +3 -3
  300. package/esm2022/page-scaffold/navigation/breadcrumb/breadcrumb.component.mjs +177 -88
  301. package/esm2022/page-scaffold/navigation/breadcrumb/breadcrumb.service.mjs +2 -2
  302. package/esm2022/page-scaffold/navigation/breadcrumb/module.mjs +2 -2
  303. package/esm2022/page-scaffold/navigation/lottie-icons/animation-data.mjs +1 -3
  304. package/esm2022/page-scaffold/navigation/lottie-icons/lottie-icon.directive.mjs +3 -3
  305. package/esm2022/page-scaffold/navigation/lottie-icons/module.mjs +2 -2
  306. package/esm2022/page-scaffold/navigation/lottie-icons/replace-lottie-colors.mjs +11 -11
  307. package/esm2022/page-scaffold/navigation/module.mjs +2 -2
  308. package/esm2022/page-scaffold/navigation/nav-menu/nav-item-li/nav-item-li.component.mjs +128 -99
  309. package/esm2022/page-scaffold/navigation/nav-menu/nav-item-ul/nav-item-ul.component.mjs +30 -32
  310. package/esm2022/page-scaffold/navigation/nav-menu/nav-menu.component.mjs +21 -19
  311. package/esm2022/page-scaffold/navigation/nav-menu/nav-menu.module.mjs +4 -4
  312. package/esm2022/page-scaffold/navigation/nav-menu/nav-menu.types.mjs +1 -1
  313. package/esm2022/page-scaffold/navigation/navconfig-loader/navconfig-loader.service.mjs +6 -5
  314. package/esm2022/page-scaffold/page/context.service.mjs +2 -2
  315. package/esm2022/page-scaffold/page/helper-directives.mjs +10 -10
  316. package/esm2022/page-scaffold/page/notices/maintenance.component.mjs +11 -11
  317. package/esm2022/page-scaffold/page/notices/notice.component.mjs +15 -15
  318. package/esm2022/page-scaffold/page/page.component.mjs +20 -20
  319. package/esm2022/page-scaffold/page/page.module.mjs +2 -2
  320. package/esm2022/page-scaffold/page-header/account-menu/component/component.mjs +40 -39
  321. package/esm2022/page-scaffold/page-header/account-menu/module.mjs +2 -2
  322. package/esm2022/page-scaffold/page-header/common-layout/common-layout.module.mjs +2 -2
  323. package/esm2022/page-scaffold/page-header/common-layout/context.service.mjs +4 -4
  324. package/esm2022/page-scaffold/page-header/common-layout/namespace-select/component.mjs +58 -59
  325. package/esm2022/page-scaffold/page-header/common-layout/product-select/component.mjs +64 -65
  326. package/esm2022/page-scaffold/page-header/common-layout/product-select/service.mjs +2 -2
  327. package/esm2022/page-scaffold/page-header/common-layout/project-select/base-selection.mjs +3 -3
  328. package/esm2022/page-scaffold/page-header/common-layout/store.service.mjs +3 -3
  329. package/esm2022/page-scaffold/page-header/component.mjs +24 -25
  330. package/esm2022/page-scaffold/page-header/enterprise-support-status/component.mjs +15 -14
  331. package/esm2022/page-scaffold/page-header/header-notify/component/header-notify.component.mjs +27 -27
  332. package/esm2022/page-scaffold/page-header/header-notify/component/notification-list/notification-list.component.mjs +22 -21
  333. package/esm2022/page-scaffold/page-header/header-notify/header-notify.module.mjs +2 -2
  334. package/esm2022/page-scaffold/page-header/header-notify/notify.service.mjs +5 -5
  335. package/esm2022/page-scaffold/page-header/help-menu/component/component.mjs +59 -62
  336. package/esm2022/page-scaffold/page-header/help-menu/module.mjs +2 -2
  337. package/esm2022/page-scaffold/page-header/module.mjs +2 -2
  338. package/esm2022/permission/helpers.mjs +1 -1
  339. package/esm2022/permission/k8s-permission.service.mjs +3 -3
  340. package/esm2022/permission/permission.guard.mjs +3 -3
  341. package/esm2022/pie-derivative-chart/donut-status/component.mjs +29 -28
  342. package/esm2022/pie-derivative-chart/indicator-color.directive.mjs +3 -3
  343. package/esm2022/pie-derivative-chart/numerical-limit.pipe.mjs +3 -3
  344. package/esm2022/pie-derivative-chart/pie-derivative-chart.module.mjs +2 -2
  345. package/esm2022/pie-derivative-chart/radial-bar/radial-bar-chart.component.mjs +54 -59
  346. package/esm2022/pod-status/component.mjs +167 -0
  347. package/esm2022/pod-status/public-api.mjs +4 -0
  348. package/esm2022/pod-status/status.mjs +84 -0
  349. package/esm2022/pod-status/typings.mjs +19 -0
  350. package/esm2022/public-api.mjs +3 -1
  351. package/esm2022/searchable-selector/component.mjs +73 -75
  352. package/esm2022/searchable-selector/module.mjs +2 -2
  353. package/esm2022/skeleton/item/component.mjs +4 -3
  354. package/esm2022/skeleton/module.mjs +2 -2
  355. package/esm2022/skeleton/nav-skeleton/component.mjs +8 -7
  356. package/esm2022/table/component.mjs +253 -271
  357. package/esm2022/table/helper.mjs +1 -1
  358. package/esm2022/table/helpers.directive.mjs +3 -3
  359. package/esm2022/table/module.mjs +40 -31
  360. package/esm2022/table/util.service.mjs +4 -4
  361. package/esm2022/translate/helpers.mjs +1 -1
  362. package/esm2022/translate/i18n-config.mjs +3 -8
  363. package/esm2022/translate/translate.directive.mjs +9 -9
  364. package/esm2022/translate/translate.module.mjs +2 -2
  365. package/esm2022/translate/translate.pipe.mjs +3 -3
  366. package/esm2022/translate/translate.service.mjs +4 -4
  367. package/esm2022/view-chart/custom-template/dropdown-legend.mjs +24 -26
  368. package/esm2022/view-chart/legend/legend.component.mjs +66 -70
  369. package/esm2022/view-chart/view-chart.component.mjs +90 -98
  370. package/esm2022/view-chart/view-chart.module.mjs +2 -2
  371. package/esm2022/view-zchart/custom-template/dropdown-legend.mjs +24 -26
  372. package/esm2022/view-zchart/legend/legend.component.mjs +77 -82
  373. package/esm2022/view-zchart/units.mjs +1 -1
  374. package/esm2022/view-zchart/view-zchart.component.mjs +111 -120
  375. package/esm2022/view-zchart/view-zchart.module.mjs +2 -2
  376. package/esm2022/widget/card-section/card-section.component.mjs +13 -12
  377. package/esm2022/widget/confirm-delete/confirm-delete.component.mjs +45 -46
  378. package/esm2022/widget/current-time/component.mjs +4 -3
  379. package/esm2022/widget/date-range-picker/component.mjs +42 -40
  380. package/esm2022/widget/field-set/column/component.mjs +5 -3
  381. package/esm2022/widget/field-set/group/component.mjs +3 -2
  382. package/esm2022/widget/field-set/item/component.mjs +8 -7
  383. package/esm2022/widget/foldable-block/component.mjs +25 -24
  384. package/esm2022/widget/foldable-item-in-table/component.mjs +41 -42
  385. package/esm2022/widget/loading-mask/loading-mask.component.mjs +9 -9
  386. package/esm2022/widget/password-input/component.mjs +72 -71
  387. package/esm2022/widget/relative-time/component.mjs +4 -3
  388. package/esm2022/widget/resource-multi-select/component.mjs +20 -19
  389. package/esm2022/widget/resource-multi-select/util.mjs +1 -1
  390. package/esm2022/widget/search-panel/component.mjs +3 -2
  391. package/esm2022/widget/search-panel/helper.directive.mjs +2 -2
  392. package/esm2022/widget/search-panel/search-item/component.mjs +3 -2
  393. package/esm2022/widget/select-prefix-label/directive.mjs +4 -4
  394. package/esm2022/widget/status-icon/status-icon.component.mjs +16 -15
  395. package/esm2022/widget/tags-label/component.mjs +61 -62
  396. package/esm2022/widget/terminating-tag/component.mjs +4 -3
  397. package/esm2022/widget/text-ellipsis/component.mjs +11 -11
  398. package/esm2022/widget/text-tooltip/directive.mjs +3 -3
  399. package/esm2022/widget/text-with-url/component.mjs +8 -8
  400. package/esm2022/widget/widget.module.mjs +2 -2
  401. package/esm2022/widget/zero-state/zero-state.component.mjs +17 -17
  402. package/esm2022/window-channel/base-window-channel.mjs +1 -1
  403. package/esm2022/window-channel/directives/host-link.directive.mjs +2 -2
  404. package/esm2022/window-channel/host-window-channel.service.mjs +3 -3
  405. package/esm2022/window-channel/plugin-window-channel.service.mjs +3 -3
  406. package/esm2022/workload-status-icon/component.mjs +72 -0
  407. package/esm2022/workload-status-icon/public-api.mjs +2 -0
  408. package/esm2022/xterm/xterm-terminal/xterm-terminal.component.mjs +68 -71
  409. package/esm2022/xterm/xterm-terminal/xterm-terminal.directive.mjs +3 -3
  410. package/esm2022/xterm/xterm.component.mjs +5 -4
  411. package/exec/terminal/component.d.ts +0 -1
  412. package/form/validators/async-function-validator.directive.d.ts +1 -1
  413. package/form/validators/function-validator.directive.d.ts +1 -1
  414. package/form/validators/maxlength-minlength-validator.directive.d.ts +2 -2
  415. package/form/validators/module.d.ts +8 -8
  416. package/form/validators/not-be-validator.directive.d.ts +1 -1
  417. package/form/validators/one-of-validator.directive.d.ts +1 -1
  418. package/form/validators/resource-limit.d.ts +1 -1
  419. package/form/validators/strong-password/strong-password-validator.module.d.ts +2 -2
  420. package/graph-canvas/components/graph-canvas.component.d.ts +2 -2
  421. package/k8s-resource-list/footer/component.d.ts +2 -1
  422. package/k8s-shared/constants.d.ts +7 -0
  423. package/k8s-shared/k8s-resource-translate-key.pipe.d.ts +9 -0
  424. package/k8s-shared/public-api.d.ts +1 -0
  425. package/license/license-api.d.ts +1 -1
  426. package/license/license-error/component.d.ts +1 -1
  427. package/metric-chart/helpers.d.ts +1 -1
  428. package/package.json +2 -1
  429. package/page-guard/component/component.d.ts +1 -1
  430. package/page-scaffold/navigation/breadcrumb/breadcrumb.component.d.ts +2 -0
  431. package/page-scaffold/navigation/nav-menu/nav-item-li/nav-item-li.component.d.ts +1 -0
  432. package/page-scaffold/navigation/nav-menu/nav-menu.types.d.ts +8 -1
  433. package/page-scaffold/navigation/navconfig-loader/navconfig-loader.service.d.ts +2 -1
  434. package/page-scaffold/page-header/header-notify/utils.d.ts +3 -3
  435. package/pod-status/component.d.ts +27 -0
  436. package/pod-status/public-api.d.ts +3 -0
  437. package/pod-status/status.d.ts +4 -0
  438. package/pod-status/typings.d.ts +16 -0
  439. package/public-api.d.ts +2 -0
  440. package/styles/ansi-color.scss +131 -0
  441. package/styles/global.scss +3 -1
  442. package/styles/tailwind-preset.scss +1 -1
  443. package/table/component.d.ts +2 -1
  444. package/table/module.d.ts +22 -6
  445. package/widget/zero-state/zero-state.component.d.ts +1 -1
  446. package/workload-status-icon/component.d.ts +36 -0
  447. package/workload-status-icon/public-api.d.ts +1 -0
  448. package/a-chart/a-chart.module.d.ts +0 -16
  449. package/a-chart/base-chart.d.ts +0 -24
  450. package/a-chart/chart-status.component.d.ts +0 -15
  451. package/a-chart/chart.component.d.ts +0 -56
  452. package/a-chart/components/base-component.d.ts +0 -12
  453. package/a-chart/components/legend/base-legend.component.d.ts +0 -31
  454. package/a-chart/components/legend/dropdown-legend.d.ts +0 -17
  455. package/a-chart/components/legend/legend.component.d.ts +0 -17
  456. package/a-chart/components/legend/public-api.d.ts +0 -3
  457. package/a-chart/components/public-api.d.ts +0 -3
  458. package/a-chart/components/title.component.d.ts +0 -17
  459. package/a-chart/constant.d.ts +0 -6
  460. package/a-chart/public-api.d.ts +0 -12
  461. package/a-chart/types.d.ts +0 -38
  462. package/a-chart/utils.d.ts +0 -13
  463. package/a-metric-chart/a-metric-chart.component.d.ts +0 -154
  464. package/a-metric-chart/a-metric-chart.module.d.ts +0 -16
  465. package/a-metric-chart/bar-gauge/bar-gauge.component.d.ts +0 -25
  466. package/a-metric-chart/base-chart.component.d.ts +0 -14
  467. package/a-metric-chart/metric-chart-refresh.service.d.ts +0 -8
  468. package/a-metric-chart/public-api.d.ts +0 -14
  469. package/a-metric-chart/stat-chart/stat-chart.component.d.ts +0 -11
  470. package/a-metric-chart/table-chart/table-chart.component.d.ts +0 -29
  471. package/a-metric-chart/types.d.ts +0 -130
  472. package/a-metric-chart/utils/public-api.d.ts +0 -3
  473. package/a-metric-chart/utils/range.d.ts +0 -1
  474. package/a-metric-chart/utils/unit.d.ts +0 -48
  475. package/a-metric-chart/utils/util.d.ts +0 -45
  476. package/api/monitor-api.service.d.ts +0 -104
  477. package/esm2022/a-chart/a-chart.module.mjs +0 -76
  478. package/esm2022/a-chart/base-chart.mjs +0 -98
  479. package/esm2022/a-chart/chart-status.component.mjs +0 -195
  480. package/esm2022/a-chart/chart.component.mjs +0 -307
  481. package/esm2022/a-chart/components/base-component.mjs +0 -23
  482. package/esm2022/a-chart/components/legend/base-legend.component.mjs +0 -111
  483. package/esm2022/a-chart/components/legend/dropdown-legend.mjs +0 -199
  484. package/esm2022/a-chart/components/legend/legend.component.mjs +0 -102
  485. package/esm2022/a-chart/components/legend/public-api.mjs +0 -4
  486. package/esm2022/a-chart/components/public-api.mjs +0 -4
  487. package/esm2022/a-chart/components/title.component.mjs +0 -99
  488. package/esm2022/a-chart/constant.mjs +0 -24
  489. package/esm2022/a-chart/public-api.mjs +0 -13
  490. package/esm2022/a-chart/types.mjs +0 -7
  491. package/esm2022/a-chart/utils.mjs +0 -37
  492. package/esm2022/a-metric-chart/a-metric-chart.component.mjs +0 -937
  493. package/esm2022/a-metric-chart/a-metric-chart.module.mjs +0 -74
  494. package/esm2022/a-metric-chart/bar-gauge/bar-gauge.component.mjs +0 -166
  495. package/esm2022/a-metric-chart/base-chart.component.mjs +0 -30
  496. package/esm2022/a-metric-chart/metric-chart-refresh.service.mjs +0 -18
  497. package/esm2022/a-metric-chart/public-api.mjs +0 -15
  498. package/esm2022/a-metric-chart/stat-chart/stat-chart.component.mjs +0 -122
  499. package/esm2022/a-metric-chart/table-chart/table-chart.component.mjs +0 -201
  500. package/esm2022/a-metric-chart/types.mjs +0 -26
  501. package/esm2022/a-metric-chart/utils/public-api.mjs +0 -4
  502. package/esm2022/a-metric-chart/utils/range.mjs +0 -35
  503. package/esm2022/a-metric-chart/utils/unit.mjs +0 -83
  504. package/esm2022/a-metric-chart/utils/util.mjs +0 -243
  505. package/esm2022/api/monitor-api.service.mjs +0 -158
  506. package/esm2022/notification/notification-util.module.mjs +0 -32
  507. package/esm2022/page-scaffold/navigation/lottie-icons/animations/dashboard.json +0 -1
  508. package/notification/notification-util.module.d.ts +0 -10
@@ -1,56 +0,0 @@
1
- import { ThemeService } from '@alauda/ui';
2
- import { ElementRef, AfterViewInit, OnDestroy, TemplateRef, EventEmitter } from '@angular/core';
3
- import { Observable } from 'rxjs';
4
- import { Chart, DataItem, Options, Padding, Theme, BrushContext } from 'zz-chart';
5
- import { BaseChart } from './base-chart';
6
- import { LegendComponent, LegendDropdownComponent, TitleComponent } from './components/public-api';
7
- import { AChartData, AChartStatus, AOptions, AType, MarkContext, NULL_POINT_MODE } from './types';
8
- import * as i0 from "@angular/core";
9
- export declare class ChartComponent extends BaseChart implements AfterViewInit, OnDestroy {
10
- private readonly themeService;
11
- status: AChartStatus;
12
- status$: Observable<AChartStatus>;
13
- data: AChartData[];
14
- data$: Observable<AChartData[]>;
15
- backgroundColor: string;
16
- tooltipAppendToBody: boolean;
17
- autoFit: boolean;
18
- width: number;
19
- height: number;
20
- padding: Padding;
21
- theme: Theme;
22
- nullPointMode: NULL_POINT_MODE;
23
- options: AOptions;
24
- options$: Observable<AOptions>;
25
- type: AType;
26
- type$: Observable<AType>;
27
- customNoData: TemplateRef<unknown> | string;
28
- customError: TemplateRef<unknown>;
29
- xAccessor: (d: DataItem['values'][0]) => any;
30
- yAccessor: (d: DataItem['values'][0]) => number;
31
- enableZoom: boolean;
32
- enableZoom$: Observable<boolean>;
33
- refresh: EventEmitter<void>;
34
- markClick: EventEmitter<MarkContext>;
35
- mouseUp: EventEmitter<BrushContext>;
36
- contextCallback: EventEmitter<Chart>;
37
- chartEl: ElementRef<HTMLDivElement>;
38
- titleRef: TitleComponent;
39
- legendRef: LegendComponent;
40
- legendDropdownRef: LegendDropdownComponent;
41
- private readonly onDestroy$;
42
- get background(): string;
43
- isTemplateRef: (label: any) => label is TemplateRef<unknown>;
44
- constructor(themeService: ThemeService);
45
- ngAfterViewInit(): void;
46
- get chartOption(): Options;
47
- private renderChart;
48
- private handelData;
49
- private handleTheme;
50
- private handleChartEvent;
51
- onRefresh(): void;
52
- getHeight(height: number, chartOption: Options): string;
53
- ngOnDestroy(): void;
54
- static ɵfac: i0.ɵɵFactoryDeclaration<ChartComponent, never>;
55
- static ɵcmp: i0.ɵɵComponentDeclaration<ChartComponent, "a-chart", ["aChart"], { "status": { "alias": "status"; "required": false; }; "data": { "alias": "data"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; "tooltipAppendToBody": { "alias": "tooltipAppendToBody"; "required": false; }; "autoFit": { "alias": "autoFit"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "padding": { "alias": "padding"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "nullPointMode": { "alias": "nullPointMode"; "required": false; }; "options": { "alias": "options"; "required": false; }; "type": { "alias": "type"; "required": false; }; "customNoData": { "alias": "customNoData"; "required": false; }; "customError": { "alias": "customError"; "required": false; }; "xAccessor": { "alias": "xAccessor"; "required": false; }; "yAccessor": { "alias": "yAccessor"; "required": false; }; "enableZoom": { "alias": "enableZoom"; "required": false; }; }, { "refresh": "refresh"; "markClick": "markClick"; "mouseUp": "mouseUp"; "contextCallback": "contextCallback"; }, ["titleRef", "legendRef", "legendDropdownRef"], ["a-title", "a-legend", "a-legend-dropdown", "acl-chart-zoom-button", "*"], false, never>;
56
- }
@@ -1,12 +0,0 @@
1
- import { Observable, Subject } from 'rxjs';
2
- import { ChartComponent } from '../chart.component';
3
- import * as i0 from "@angular/core";
4
- export declare abstract class BaseComponent<C = unknown> {
5
- chartRef: ChartComponent;
6
- chartRef$: Observable<ChartComponent>;
7
- protected config: C;
8
- abstract get name(): string;
9
- readonly onDestroy$: Subject<void>;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponent<any>, never>;
11
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaseComponent<any>, never, never, { "chartRef": { "alias": "chartRef"; "required": false; }; }, {}, never, never, false, never>;
12
- }
@@ -1,31 +0,0 @@
1
- import { ChangeDetectorRef, EventEmitter, OnChanges, OnInit, SimpleChanges } from '@angular/core';
2
- import { BehaviorSubject, Subject } from 'rxjs';
3
- import { Legend, LegendItem as ALegendItem, DataItem } from 'zz-chart';
4
- import { ChartComponent } from '../../chart.component';
5
- import * as i0 from "@angular/core";
6
- export interface LegendItem extends ALegendItem {
7
- name: string;
8
- value?: number;
9
- source?: DataItem;
10
- unit?: string;
11
- }
12
- export declare class BaseLegendComponent implements OnInit, OnChanges {
13
- private readonly chartRefFromInjection;
14
- protected cdr: ChangeDetectorRef;
15
- chartRef: ChartComponent;
16
- changeLegend: EventEmitter<LegendItem[]>;
17
- get noData(): boolean;
18
- get aChartCtrl(): ChartComponent;
19
- get legendCtr(): Legend;
20
- legendItems$$: BehaviorSubject<LegendItem[]>;
21
- legendChange$$: Subject<LegendItem[]>;
22
- ngOnChanges({ chartRef }: SimpleChanges): void;
23
- ngOnInit(): void;
24
- setChartRef(chartRef: ChartComponent): void;
25
- init(): void;
26
- private handleLegends;
27
- onSelect(legend: LegendItem): void;
28
- onAllSelect(select: boolean): void;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseLegendComponent, never>;
30
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaseLegendComponent, never, never, { "chartRef": { "alias": "chartRef"; "required": false; }; }, { "changeLegend": "changeLegend"; }, never, never, false, never>;
31
- }
@@ -1,17 +0,0 @@
1
- import { OnInit, TemplateRef } from '@angular/core';
2
- import { BaseLegendComponent } from './base-legend.component';
3
- import * as i0 from "@angular/core";
4
- export declare class LegendDropdownComponent extends BaseLegendComponent implements OnInit {
5
- square: boolean;
6
- symbol: 'circle' | 'square' | 'line';
7
- template: TemplateRef<unknown> | string;
8
- translation: boolean;
9
- selectAll: boolean;
10
- selectAllName: string;
11
- isTemplateRef: (label: any) => label is TemplateRef<unknown>;
12
- allSelected: boolean;
13
- get defaultSymbol(): "circle" | "line";
14
- get symbolName(): string;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<LegendDropdownComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<LegendDropdownComponent, "a-legend-dropdown", never, { "square": { "alias": "square"; "required": false; }; "symbol": { "alias": "symbol"; "required": false; }; "template": { "alias": "template"; "required": false; }; "translation": { "alias": "translation"; "required": false; }; "selectAll": { "alias": "selectAll"; "required": false; }; "selectAllName": { "alias": "selectAllName"; "required": false; }; }, {}, never, never, false, never>;
17
- }
@@ -1,17 +0,0 @@
1
- import { OnInit, TemplateRef } from '@angular/core';
2
- import { BaseLegendComponent } from './base-legend.component';
3
- import * as i0 from "@angular/core";
4
- export declare class LegendComponent extends BaseLegendComponent implements OnInit {
5
- symbol: 'circle' | 'square' | 'line';
6
- template: TemplateRef<unknown> | string;
7
- translation: boolean;
8
- selectAll: boolean;
9
- selectAllName: string;
10
- direction: 'vertical' | 'horizontal';
11
- isTemplateRef: (label: any) => label is TemplateRef<unknown>;
12
- allSelected: boolean;
13
- get defaultSymbol(): "circle" | "line";
14
- get symbolName(): string;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<LegendComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<LegendComponent, "a-legend", ["aLegend"], { "symbol": { "alias": "symbol"; "required": false; }; "template": { "alias": "template"; "required": false; }; "translation": { "alias": "translation"; "required": false; }; "selectAll": { "alias": "selectAll"; "required": false; }; "selectAllName": { "alias": "selectAllName"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; }, {}, never, never, false, never>;
17
- }
@@ -1,3 +0,0 @@
1
- export * from './base-legend.component';
2
- export * from './legend.component';
3
- export * from './dropdown-legend';
@@ -1,3 +0,0 @@
1
- export * from './base-component';
2
- export * from './legend/public-api';
3
- export * from './title.component';
@@ -1,17 +0,0 @@
1
- import { TemplateRef, ChangeDetectorRef } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- export declare class TitleComponent {
5
- private readonly cdr;
6
- text: string | TemplateRef<unknown>;
7
- text$: Observable<string | TemplateRef<unknown>>;
8
- description: string | TemplateRef<unknown>;
9
- descriptionContext: Record<string, unknown>;
10
- titleContainer: TemplateRef<unknown>;
11
- isTemplateRef: (label: any) => label is TemplateRef<unknown>;
12
- suffix: string;
13
- constructor(cdr: ChangeDetectorRef);
14
- setSuffix(suffix: string): void;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<TitleComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<TitleComponent, "a-title", never, { "text": { "alias": "text"; "required": false; }; "description": { "alias": "description"; "required": false; }; "descriptionContext": { "alias": "descriptionContext"; "required": false; }; }, {}, never, never, false, never>;
17
- }
@@ -1,6 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import { ChartOption } from 'zz-chart';
3
- import { ChartComponent } from './chart.component';
4
- export declare const CHART_TIME_FORMAT = "HH:mm";
5
- export declare const DEFAULT_CONFIG: ChartOption;
6
- export declare const CHART_COMPONENT_TOKEN: InjectionToken<ChartComponent>;
@@ -1,12 +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';
@@ -1,38 +0,0 @@
1
- import { DataItem, Options, TooltipValue } from 'zz-chart';
2
- import { IndicatorType } from '../api/public-api';
3
- import { Translation } from '../translate/public-api';
4
- export type AOptions = Omit<Options, 'data' | 'padding' | 'container'>;
5
- export type AType = 'line' | 'area' | 'bar' | 'point' | 'pie' | 'gauge' | 'stat' | 'table' | 'bar-gauge';
6
- export interface AChartStatus {
7
- loading?: boolean;
8
- noData?: boolean;
9
- failed?: boolean;
10
- noLegend?: boolean;
11
- }
12
- export declare enum NULL_POINT_MODE {
13
- Connected = "true",
14
- Null = "null",
15
- Null_Zero = "null\u2013zero"
16
- }
17
- export interface AChartData extends DataItem {
18
- id?: string;
19
- displayName?: string;
20
- range?: boolean;
21
- instant?: boolean;
22
- type?: 'line' | 'area' | 'point' | string;
23
- max?: number;
24
- unit?: string | Translation;
25
- }
26
- export interface MarkContext {
27
- title: string;
28
- values: TooltipValue[];
29
- }
30
- export interface MonitorDataItem {
31
- id?: string;
32
- title?: string;
33
- description?: string;
34
- indicators?: string | string[];
35
- expr?: string | string[];
36
- variables?: Array<Record<string, string | string[]>> | Record<string, string | string[]>;
37
- queries: IndicatorType[];
38
- }
@@ -1,13 +0,0 @@
1
- import { ConfigType } from 'dayjs';
2
- import { TooltipValue } from 'zz-chart';
3
- import { ContextItem } from '../view-chart/public-api';
4
- export declare function transformMaximum(value: number | string): string;
5
- export declare function limitMaxContext(context: TooltipValue[], limit?: number): TooltipValue[];
6
- export declare function pointFormat(value: number, decimals?: number): string;
7
- export declare function handleDateFormat(date: ConfigType, format?: string): string;
8
- export declare function integerTooltipFormat({ y }: ContextItem): number;
9
- /**
10
- * @name randomColor
11
- * @see https://stackoverflow.com/questions/1484506/random-color-generator
12
- */
13
- export declare function randomColor(): string;
@@ -1,154 +0,0 @@
1
- import { OnInit, TemplateRef, ChangeDetectorRef, EventEmitter, AfterViewChecked, ElementRef } from '@angular/core';
2
- import { BehaviorSubject, Observable, Subject } from 'rxjs';
3
- import { Chart, DataItem, Options, BrushContext } from 'zz-chart';
4
- import { AChartData, AChartStatus, AOptions, AType, ChartComponent, LegendComponent, MarkContext, MonitorDataItem, NULL_POINT_MODE, TitleComponent } from '../a-chart/public-api';
5
- import { IndicatorType, MonitorApiService, MonitorMetric } from '../api/public-api';
6
- import { TranslateService, Translation } from '../translate/public-api';
7
- import { MetricChartRefreshService } from './metric-chart-refresh.service';
8
- import { IndicatorParams, AMatchUnitParams, MetricParams, SeriesParams, FetchParams, AMetricChartOptions, Orientation } from './types';
9
- import * as i0 from "@angular/core";
10
- export declare const POLAR_COORDINATE_TYPES: Set<string>;
11
- export declare const SPECIAL_TYPES: Set<string>;
12
- export declare const METRIC_INPUT_KEY: string[];
13
- export declare class AMetricChartComponent implements OnInit, AfterViewChecked {
14
- private readonly refreshService;
15
- private readonly monitorApi;
16
- private readonly translate;
17
- private readonly cdr;
18
- type: AType;
19
- status: AChartStatus;
20
- status$: Observable<AChartStatus>;
21
- chartOptions: AMetricChartOptions;
22
- chartOptions$: Observable<AMetricChartOptions>;
23
- seriesParams: SeriesParams[];
24
- seriesParams$: Observable<SeriesParams[]>;
25
- metricParams: MetricParams;
26
- metricParams$: Observable<MetricParams>;
27
- adaptUnit: boolean | AMatchUnitParams;
28
- adaptUnit$: Observable<boolean | AMatchUnitParams>;
29
- autoAdaptUnit: boolean;
30
- autoArea: boolean;
31
- isRich: boolean;
32
- dataFormat: (params: FetchParams, data: MonitorMetric[]) => AChartData[];
33
- tableDataFormat: (params: FetchParams, data: MonitorMetric[]) => unknown[];
34
- percent$: Observable<boolean>;
35
- percent: boolean;
36
- unit: string;
37
- layout: Orientation;
38
- tooltipAppendToBody: boolean;
39
- legendTranslation: boolean;
40
- customNoData: TemplateRef<unknown> | string;
41
- customNoData$: TemplateRef<unknown> | string;
42
- customError: TemplateRef<unknown>;
43
- notAutoFillUnit: boolean;
44
- enableZoom: boolean;
45
- enableZoom$: Observable<boolean>;
46
- nullPointMode: NULL_POINT_MODE;
47
- customNoDataConvert: (res: AChartData[]) => boolean;
48
- contextCallback: EventEmitter<Chart>;
49
- refresh: EventEmitter<void>;
50
- markClick: EventEmitter<MarkContext>;
51
- mouseUp: EventEmitter<BrushContext>;
52
- titleRef: TitleComponent;
53
- legendRef: LegendComponent;
54
- template: TemplateRef<unknown>;
55
- aChartRef: ChartComponent;
56
- tooltipItemVirtual: ElementRef;
57
- tooltipTitleVirtual: ElementRef;
58
- aChartRefCompleted$$: Subject<ChartComponent>;
59
- _unit$$: BehaviorSubject<string | Translation>;
60
- POLAR_COORDINATE_TYPES: Set<string>;
61
- isTemplateRef: (label: any) => label is TemplateRef<unknown>;
62
- tooltipItemContext: {};
63
- tooltipTitleContext: {};
64
- promQlTitle: string;
65
- promQlId: string;
66
- private promQlResource;
67
- get xAccessor(): (d: DataItem['values'][0]) => number;
68
- yAccessor$: Observable<(d: DataItem['values'][0]) => number>;
69
- fetchParams: FetchParams;
70
- _metricParams: MetricParams;
71
- noData: boolean;
72
- context$: Observable<{
73
- $implicit: unknown;
74
- } & unknown>;
75
- series$: Observable<AChartData[]>;
76
- tableSeries$: Observable<unknown[]>;
77
- private readonly _options$$;
78
- options$: Observable<Options>;
79
- reload$: BehaviorSubject<boolean>;
80
- customSeries: MonitorMetric[];
81
- customSeries$: Observable<MonitorMetric[]>;
82
- chartStatus$: BehaviorSubject<AChartStatus>;
83
- readonly onDestroy$: Subject<void>;
84
- indicators: IndicatorType[];
85
- constructor(refreshService: MetricChartRefreshService, monitorApi: MonitorApiService, translate: TranslateService, cdr: ChangeDetectorRef);
86
- ngOnInit(): void;
87
- params$: Observable<{
88
- indicatorParams: IndicatorParams[];
89
- metricParams: MetricParams;
90
- }>;
91
- defaultSeries$: Observable<MonitorMetric[]>;
92
- getChartType: (type: AType, data: AChartData[]) => AType;
93
- onRefresh(): void;
94
- ngAfterViewChecked(): void;
95
- defaultChartTypeRender(type: AType): boolean;
96
- private handleMetricDataPipe;
97
- setPromQlTitle(title: string): void;
98
- setPromQlResource(res: MonitorMetric[]): void;
99
- getPromQlResource(): MonitorDataItem;
100
- getTitleText: typeof getTitleText;
101
- handleGaugeOptions(options: AOptions, showName: boolean): {
102
- gauge: {
103
- label: {
104
- description: string | ((data: import("zz-chart").Data) => string);
105
- text?: string | ((data: import("zz-chart").Data, total?: number) => string);
106
- position?: {
107
- x?: number;
108
- y?: number;
109
- };
110
- textStyle?: {
111
- color?: string;
112
- };
113
- descriptionStyle?: {
114
- color?: string;
115
- };
116
- };
117
- innerRadius?: number;
118
- outerRadius?: number;
119
- max?: number;
120
- colors?: [number, string][];
121
- text?: {
122
- show?: boolean;
123
- size?: number;
124
- color?: string | ((value: number) => string);
125
- };
126
- };
127
- area?: import("zz-chart").AreaShapeOption;
128
- legend?: import("zz-chart").LegendOption;
129
- title?: import("zz-chart").TitleOption;
130
- line?: import("zz-chart").LineShapeOption;
131
- annotation?: import("zz-chart").AnnotationOption;
132
- tooltip?: import("zz-chart").TooltipOption;
133
- scale?: {
134
- x?: import("zz-chart").ScaleOption;
135
- y?: import("zz-chart").ScaleOption;
136
- };
137
- axis?: {
138
- x?: import("zz-chart").AxisOption;
139
- y?: import("zz-chart").AxisOption;
140
- };
141
- coordinate?: import("zz-chart").CoordinateOption;
142
- bar?: import("zz-chart").BarShapeOption;
143
- point?: import("zz-chart").PointShapeOption;
144
- };
145
- private changeChartOptions;
146
- private handleDataStatus;
147
- private handleUnit;
148
- private getMetricApi;
149
- private readonly mergePointContext;
150
- private changeStatus;
151
- static ɵfac: i0.ɵɵFactoryDeclaration<AMetricChartComponent, [{ optional: true; }, null, null, null]>;
152
- static ɵcmp: i0.ɵɵComponentDeclaration<AMetricChartComponent, "a-metric-chart", never, { "type": { "alias": "type"; "required": false; }; "status": { "alias": "status"; "required": false; }; "chartOptions": { "alias": "chartOptions"; "required": false; }; "seriesParams": { "alias": "seriesParams"; "required": false; }; "metricParams": { "alias": "metricParams"; "required": false; }; "adaptUnit": { "alias": "adaptUnit"; "required": false; }; "autoAdaptUnit": { "alias": "autoAdaptUnit"; "required": false; }; "autoArea": { "alias": "autoArea"; "required": false; }; "isRich": { "alias": "isRich"; "required": false; }; "dataFormat": { "alias": "dataFormat"; "required": false; }; "tableDataFormat": { "alias": "tableDataFormat"; "required": false; }; "percent": { "alias": "percent"; "required": false; }; "unit": { "alias": "unit"; "required": false; }; "layout": { "alias": "layout"; "required": false; }; "tooltipAppendToBody": { "alias": "tooltipAppendToBody"; "required": false; }; "legendTranslation": { "alias": "legendTranslation"; "required": false; }; "customNoData": { "alias": "customNoData"; "required": false; }; "customError": { "alias": "customError"; "required": false; }; "notAutoFillUnit": { "alias": "notAutoFillUnit"; "required": false; }; "enableZoom": { "alias": "enableZoom"; "required": false; }; "nullPointMode": { "alias": "nullPointMode"; "required": false; }; "customNoDataConvert": { "alias": "customNoDataConvert"; "required": false; }; "promQlTitle": { "alias": "promQlTitle"; "required": false; }; "promQlId": { "alias": "promQlId"; "required": false; }; "customSeries": { "alias": "customSeries"; "required": false; }; }, { "contextCallback": "contextCallback"; "refresh": "refresh"; "markClick": "markClick"; "mouseUp": "mouseUp"; }, ["titleRef", "legendRef", "template"], ["acl-promql-button", "a-legend-dropdown", "acl-chart-zoom-button", "a-title"], false, never>;
153
- }
154
- export declare function getTitleText(text: string | TemplateRef<unknown>, unit: string): string | TemplateRef<unknown>;
@@ -1,16 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./a-metric-chart.component";
3
- import * as i2 from "./stat-chart/stat-chart.component";
4
- import * as i3 from "./table-chart/table-chart.component";
5
- import * as i4 from "./bar-gauge/bar-gauge.component";
6
- import * as i5 from "@angular/common";
7
- import * as i6 from "../a-chart/a-chart.module";
8
- import * as i7 from "../core/module";
9
- import * as i8 from "@alauda/ui";
10
- import * as i9 from "../core/pipes/pure.pipe";
11
- import * as i10 from "../translate/translate.module";
12
- export declare class AMetricChartModule {
13
- static ɵfac: i0.ɵɵFactoryDeclaration<AMetricChartModule, never>;
14
- static ɵmod: i0.ɵɵNgModuleDeclaration<AMetricChartModule, [typeof i1.AMetricChartComponent, typeof i2.StatChartComponent, typeof i3.TableChartComponent, typeof i4.BarGaugeComponent], [typeof i5.CommonModule, typeof i6.AChartModule, typeof i7.CoreModule, typeof i8.TableModule, typeof i8.PaginatorModule, typeof i9.PurePipe, typeof i10.TranslateModule], [typeof i1.AMetricChartComponent, typeof i2.StatChartComponent, typeof i3.TableChartComponent, typeof i4.BarGaugeComponent]>;
15
- static ɵinj: i0.ɵɵInjectorDeclaration<AMetricChartModule>;
16
- }
@@ -1,25 +0,0 @@
1
- import { AChartData } from '../../a-chart/public-api';
2
- import { BaseComponentChart } from '../base-chart.component';
3
- import { Orientation } from '../types';
4
- import * as i0 from "@angular/core";
5
- export interface BarGaugeOptions {
6
- layout?: Orientation;
7
- }
8
- export declare class BarGaugeComponent extends BaseComponentChart {
9
- options: BarGaugeOptions;
10
- containerWidth: number;
11
- isVertical: typeof isVertical;
12
- showUnit(value: string | number): boolean;
13
- getWrapperWidth: (width: number) => string;
14
- getBarStyle: (item: AChartData) => {
15
- [x: string]: string;
16
- background: string;
17
- };
18
- getEmptyStyle: (item: AChartData) => {
19
- [x: string]: string;
20
- };
21
- static ɵfac: i0.ɵɵFactoryDeclaration<BarGaugeComponent, never>;
22
- static ɵcmp: i0.ɵɵComponentDeclaration<BarGaugeComponent, "a-bar-gauge", never, { "options": { "alias": "options"; "required": false; }; }, {}, never, ["a-title"], false, never>;
23
- }
24
- declare function isVertical(orientation: Orientation): boolean;
25
- export {};
@@ -1,14 +0,0 @@
1
- import { EventEmitter, TemplateRef } from '@angular/core';
2
- import { Observable } from 'rxjs';
3
- import { AChartData, AChartStatus } from '../a-chart/public-api';
4
- import * as i0 from "@angular/core";
5
- export declare class BaseComponentChart {
6
- status: AChartStatus;
7
- customNoData: TemplateRef<unknown> | string;
8
- customError: TemplateRef<unknown>;
9
- data: AChartData[];
10
- data$: Observable<AChartData[]>;
11
- refresh: EventEmitter<void>;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<BaseComponentChart, never>;
13
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaseComponentChart, never, never, { "status": { "alias": "status"; "required": false; }; "customNoData": { "alias": "customNoData"; "required": false; }; "customError": { "alias": "customError"; "required": false; }; "data": { "alias": "data"; "required": false; }; }, { "refresh": "refresh"; }, never, never, false, never>;
14
- }
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class MetricChartRefreshService {
3
- private readonly refresh$$;
4
- readonly refresh$: import("rxjs").Observable<boolean>;
5
- refresh(silent?: boolean): void;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<MetricChartRefreshService, never>;
7
- static ɵprov: i0.ɵɵInjectableDeclaration<MetricChartRefreshService>;
8
- }
@@ -1,14 +0,0 @@
1
- /**
2
- * @packageDocumentation
3
- * @module a-metric-chart
4
- * @preferred
5
- */
6
- export * from './a-metric-chart.module';
7
- export * from './a-metric-chart.component';
8
- export * from './stat-chart/stat-chart.component';
9
- export * from './table-chart/table-chart.component';
10
- export * from './bar-gauge/bar-gauge.component';
11
- export * from './types';
12
- export * from './utils/util';
13
- export * from './metric-chart-refresh.service';
14
- export * from './utils/range';
@@ -1,11 +0,0 @@
1
- import { BaseComponentChart } from '../base-chart.component';
2
- import { StatOptions } from '../types';
3
- import * as i0 from "@angular/core";
4
- export declare class StatChartComponent extends BaseComponentChart {
5
- options: StatOptions;
6
- showUnit(value: string | number): boolean;
7
- get showName(): boolean;
8
- get showValue(): boolean;
9
- static ɵfac: i0.ɵɵFactoryDeclaration<StatChartComponent, never>;
10
- static ɵcmp: i0.ɵɵComponentDeclaration<StatChartComponent, "acl-stat-chart", never, { "options": { "alias": "options"; "required": false; }; }, {}, never, ["a-title"], false, never>;
11
- }
@@ -1,29 +0,0 @@
1
- import { BehaviorSubject, Observable } from 'rxjs';
2
- import { BaseComponentChart } from '../base-chart.component';
3
- import * as i0 from "@angular/core";
4
- type TableItem = Record<string, Record<string, unknown>>;
5
- export declare class TableChartComponent extends BaseComponentChart {
6
- list: TableItem[];
7
- list$: Observable<TableItem[]>;
8
- alignment: 'left' | 'center' | 'right';
9
- paginator: {
10
- layout: string | string[];
11
- currentPage?: number;
12
- pageIndex?: number;
13
- pageSize?: number;
14
- total?: number;
15
- };
16
- get columns(): any[];
17
- get _status(): import("@alauda-fe/common").AChartStatus;
18
- getAlignmentClass(type: 'left' | 'center' | 'right'): string;
19
- paginator$$: BehaviorSubject<{
20
- currentPage: number;
21
- pageSize: number;
22
- }>;
23
- tableList$: Observable<TableItem[]>;
24
- format(value: string, type: string, unit: string): string | number;
25
- onPageChange(currentPage: number): void;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<TableChartComponent, never>;
27
- static ɵcmp: i0.ɵɵComponentDeclaration<TableChartComponent, "a-table-chart", never, { "list": { "alias": "list"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "paginator": { "alias": "paginator"; "required": false; }; }, {}, never, ["a-title"], false, never>;
28
- }
29
- export {};