@alauda-fe/dynamic-plugin-shared 0.0.1-alpha.8 → 0.0.3-alpha.0

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 (395) hide show
  1. package/assets/i18n/en/dynamic-plugin-shared.json +3 -0
  2. package/assets/images/overview-banner.svg +1 -0
  3. package/fesm2022/alauda-fe-dynamic-plugin-shared.mjs +3038 -1828
  4. package/fesm2022/alauda-fe-dynamic-plugin-shared.mjs.map +1 -1
  5. package/package.json +15 -17
  6. package/styles/lib.scss +1 -1
  7. package/styles/mixins.scss +1 -210
  8. package/styles/var.scss +1 -26
  9. package/types/alauda-fe-dynamic-plugin-shared.d.ts +5692 -0
  10. package/array-form-table/base-string-map-form.component.d.ts +0 -22
  11. package/array-form-table/form/component.d.ts +0 -106
  12. package/array-form-table/form/index.d.ts +0 -3
  13. package/array-form-table/index.d.ts +0 -10
  14. package/array-form-table/key-value-form/component.d.ts +0 -38
  15. package/array-form-table/key-value-table/component.d.ts +0 -9
  16. package/array-form-table/string-array-form/component.d.ts +0 -41
  17. package/async-data/async-data-loader.d.ts +0 -31
  18. package/async-data/error-page/component.d.ts +0 -30
  19. package/async-data/index.d.ts +0 -13
  20. package/async-data/page-state/component.d.ts +0 -21
  21. package/async-data/types.d.ts +0 -29
  22. package/code-editor/code-display-dialog/component.d.ts +0 -17
  23. package/code-editor/code-editor-configs.d.ts +0 -19
  24. package/code-editor/index.d.ts +0 -10
  25. package/code-editor/k8s-yaml-display-dialog/component.d.ts +0 -16
  26. package/code-editor/resource-yaml-display/component.d.ts +0 -21
  27. package/components/card-section/card-section.component.d.ts +0 -9
  28. package/components/confirm-delete/confirm-delete.component.d.ts +0 -57
  29. package/components/confirm-delete/utils.d.ts +0 -25
  30. package/components/current-time/component.d.ts +0 -14
  31. package/components/custom-columns-setting/component.d.ts +0 -16
  32. package/components/custom-columns-setting/index.d.ts +0 -1
  33. package/components/date-range-picker/component.d.ts +0 -55
  34. package/components/date-range-picker/index.d.ts +0 -3
  35. package/components/date-range-picker/type.d.ts +0 -36
  36. package/components/date-range-picker/util.d.ts +0 -11
  37. package/components/disabled-container/disabled-container.component.d.ts +0 -21
  38. package/components/disabled-container/index.d.ts +0 -7
  39. package/components/field-set/column/component.d.ts +0 -10
  40. package/components/field-set/group/component.d.ts +0 -6
  41. package/components/field-set/index.d.ts +0 -7
  42. package/components/field-set/item/component.d.ts +0 -13
  43. package/components/foldable-block/component.d.ts +0 -17
  44. package/components/foldable-item-in-table/component.d.ts +0 -21
  45. package/components/help-document/component.d.ts +0 -29
  46. package/components/help-document/directive.d.ts +0 -20
  47. package/components/help-document/index.d.ts +0 -8
  48. package/components/help-document/service.d.ts +0 -20
  49. package/components/index.d.ts +0 -32
  50. package/components/loading-mask/loading-mask.component.d.ts +0 -13
  51. package/components/page-guard/component/component.d.ts +0 -40
  52. package/components/page-guard/component/helper-directives.d.ts +0 -17
  53. package/components/page-guard/component/page-guard.type.d.ts +0 -86
  54. package/components/page-guard/index.d.ts +0 -12
  55. package/components/password-input/component.d.ts +0 -39
  56. package/components/pod-status/component.d.ts +0 -25
  57. package/components/pod-status/index.d.ts +0 -3
  58. package/components/pod-status/status.d.ts +0 -4
  59. package/components/pod-status/typings.d.ts +0 -16
  60. package/components/relative-time/component.d.ts +0 -15
  61. package/components/resource-label/component.d.ts +0 -25
  62. package/components/resource-multi-select/component.d.ts +0 -41
  63. package/components/resource-multi-select/util.d.ts +0 -10
  64. package/components/search-panel/component.d.ts +0 -16
  65. package/components/search-panel/helper.directive.d.ts +0 -5
  66. package/components/search-panel/search-item/component.d.ts +0 -7
  67. package/components/select-prefix-label/directive.d.ts +0 -17
  68. package/components/status-icon/status-icon.component.d.ts +0 -16
  69. package/components/tags-label/component.d.ts +0 -56
  70. package/components/terminating-tag/component.d.ts +0 -7
  71. package/components/text-ellipsis/component.d.ts +0 -9
  72. package/components/text-tooltip/directive.d.ts +0 -21
  73. package/components/text-with-url/component.d.ts +0 -12
  74. package/components/upload-file/component.d.ts +0 -32
  75. package/components/workload-status/component.d.ts +0 -37
  76. package/components/workload-status/index.d.ts +0 -1
  77. package/components/zero-state/zero-state.component.d.ts +0 -17
  78. package/constants/common.d.ts +0 -64
  79. package/constants/index.d.ts +0 -6
  80. package/constants/k8s.d.ts +0 -12
  81. package/constants/patterns.d.ts +0 -124
  82. package/constants/resource-definitions.d.ts +0 -414
  83. package/constants/status-icons.d.ts +0 -34
  84. package/constants/timezones.d.ts +0 -6
  85. package/directives/aui-code-editor.directive.d.ts +0 -13
  86. package/directives/click-outside.directive.d.ts +0 -12
  87. package/directives/declare.directive.d.ts +0 -8
  88. package/directives/disabled.directive.d.ts +0 -28
  89. package/directives/effect-directive/coerce-number.directive.d.ts +0 -8
  90. package/directives/effect-directive/e2e-attribute-binding.directive.d.ts +0 -10
  91. package/directives/effect-directive/event.directive.d.ts +0 -47
  92. package/directives/effect-directive/index.d.ts +0 -12
  93. package/directives/effect-directive/min-max.directive.d.ts +0 -30
  94. package/directives/effect-directive/trim.directive.d.ts +0 -7
  95. package/directives/effect-directive/validators.directive.d.ts +0 -12
  96. package/directives/feature-gate.directive.d.ts +0 -31
  97. package/directives/index.d.ts +0 -12
  98. package/directives/last-form-item.directive.d.ts +0 -8
  99. package/directives/readonly-field.directive.d.ts +0 -39
  100. package/directives/resize.directive.d.ts +0 -17
  101. package/directives/scroll-border-observer.directive.d.ts +0 -23
  102. package/directives/scroll-to-first-invalid.directive.d.ts +0 -24
  103. package/directives/value-trace.directive.d.ts +0 -27
  104. package/esm2022/alauda-fe-dynamic-plugin-shared.mjs +0 -5
  105. package/esm2022/array-form-table/base-string-map-form.component.mjs +0 -92
  106. package/esm2022/array-form-table/form/component.mjs +0 -266
  107. package/esm2022/array-form-table/form/index.mjs +0 -13
  108. package/esm2022/array-form-table/index.mjs +0 -11
  109. package/esm2022/array-form-table/key-value-form/component.mjs +0 -135
  110. package/esm2022/array-form-table/key-value-table/component.mjs +0 -24
  111. package/esm2022/array-form-table/string-array-form/component.mjs +0 -168
  112. package/esm2022/async-data/async-data-loader.mjs +0 -63
  113. package/esm2022/async-data/error-page/component.mjs +0 -54
  114. package/esm2022/async-data/index.mjs +0 -18
  115. package/esm2022/async-data/page-state/component.mjs +0 -62
  116. package/esm2022/async-data/types.mjs +0 -6
  117. package/esm2022/code-editor/code-display-dialog/component.mjs +0 -35
  118. package/esm2022/code-editor/code-editor-configs.mjs +0 -66
  119. package/esm2022/code-editor/index.mjs +0 -11
  120. package/esm2022/code-editor/k8s-yaml-display-dialog/component.mjs +0 -26
  121. package/esm2022/code-editor/resource-yaml-display/component.mjs +0 -67
  122. package/esm2022/components/card-section/card-section.component.mjs +0 -24
  123. package/esm2022/components/confirm-delete/confirm-delete.component.mjs +0 -192
  124. package/esm2022/components/confirm-delete/utils.mjs +0 -8
  125. package/esm2022/components/current-time/component.mjs +0 -39
  126. package/esm2022/components/custom-columns-setting/component.mjs +0 -75
  127. package/esm2022/components/custom-columns-setting/index.mjs +0 -2
  128. package/esm2022/components/date-range-picker/component.mjs +0 -215
  129. package/esm2022/components/date-range-picker/index.mjs +0 -4
  130. package/esm2022/components/date-range-picker/type.mjs +0 -2
  131. package/esm2022/components/date-range-picker/util.mjs +0 -57
  132. package/esm2022/components/disabled-container/disabled-container.component.mjs +0 -81
  133. package/esm2022/components/disabled-container/index.mjs +0 -8
  134. package/esm2022/components/field-set/column/component.mjs +0 -25
  135. package/esm2022/components/field-set/group/component.mjs +0 -16
  136. package/esm2022/components/field-set/index.mjs +0 -14
  137. package/esm2022/components/field-set/item/component.mjs +0 -41
  138. package/esm2022/components/foldable-block/component.mjs +0 -60
  139. package/esm2022/components/foldable-item-in-table/component.mjs +0 -56
  140. package/esm2022/components/help-document/component.mjs +0 -69
  141. package/esm2022/components/help-document/directive.mjs +0 -70
  142. package/esm2022/components/help-document/index.mjs +0 -9
  143. package/esm2022/components/help-document/service.mjs +0 -43
  144. package/esm2022/components/index.mjs +0 -33
  145. package/esm2022/components/loading-mask/loading-mask.component.mjs +0 -35
  146. package/esm2022/components/page-guard/component/component.mjs +0 -101
  147. package/esm2022/components/page-guard/component/helper-directives.mjs +0 -51
  148. package/esm2022/components/page-guard/component/page-guard.type.mjs +0 -82
  149. package/esm2022/components/page-guard/index.mjs +0 -19
  150. package/esm2022/components/password-input/component.mjs +0 -143
  151. package/esm2022/components/pod-status/component.mjs +0 -49
  152. package/esm2022/components/pod-status/index.mjs +0 -4
  153. package/esm2022/components/pod-status/status.mjs +0 -84
  154. package/esm2022/components/pod-status/typings.mjs +0 -19
  155. package/esm2022/components/relative-time/component.mjs +0 -58
  156. package/esm2022/components/resource-label/component.mjs +0 -100
  157. package/esm2022/components/resource-multi-select/component.mjs +0 -152
  158. package/esm2022/components/resource-multi-select/util.mjs +0 -24
  159. package/esm2022/components/search-panel/component.mjs +0 -51
  160. package/esm2022/components/search-panel/helper.directive.mjs +0 -14
  161. package/esm2022/components/search-panel/search-item/component.mjs +0 -15
  162. package/esm2022/components/select-prefix-label/directive.mjs +0 -89
  163. package/esm2022/components/status-icon/status-icon.component.mjs +0 -56
  164. package/esm2022/components/tags-label/component.mjs +0 -224
  165. package/esm2022/components/terminating-tag/component.mjs +0 -16
  166. package/esm2022/components/text-ellipsis/component.mjs +0 -28
  167. package/esm2022/components/text-tooltip/directive.mjs +0 -71
  168. package/esm2022/components/text-with-url/component.mjs +0 -40
  169. package/esm2022/components/upload-file/component.mjs +0 -95
  170. package/esm2022/components/workload-status/component.mjs +0 -33
  171. package/esm2022/components/workload-status/index.mjs +0 -2
  172. package/esm2022/components/zero-state/zero-state.component.mjs +0 -56
  173. package/esm2022/constants/common.mjs +0 -86
  174. package/esm2022/constants/index.mjs +0 -7
  175. package/esm2022/constants/k8s.mjs +0 -13
  176. package/esm2022/constants/patterns.mjs +0 -142
  177. package/esm2022/constants/resource-definitions.mjs +0 -424
  178. package/esm2022/constants/status-icons.mjs +0 -65
  179. package/esm2022/constants/timezones.mjs +0 -234
  180. package/esm2022/directives/aui-code-editor.directive.mjs +0 -30
  181. package/esm2022/directives/click-outside.directive.mjs +0 -49
  182. package/esm2022/directives/declare.directive.mjs +0 -27
  183. package/esm2022/directives/disabled.directive.mjs +0 -76
  184. package/esm2022/directives/effect-directive/coerce-number.directive.mjs +0 -54
  185. package/esm2022/directives/effect-directive/e2e-attribute-binding.directive.mjs +0 -57
  186. package/esm2022/directives/effect-directive/event.directive.mjs +0 -129
  187. package/esm2022/directives/effect-directive/index.mjs +0 -21
  188. package/esm2022/directives/effect-directive/min-max.directive.mjs +0 -107
  189. package/esm2022/directives/effect-directive/trim.directive.mjs +0 -40
  190. package/esm2022/directives/effect-directive/validators.directive.mjs +0 -43
  191. package/esm2022/directives/feature-gate.directive.mjs +0 -90
  192. package/esm2022/directives/index.mjs +0 -13
  193. package/esm2022/directives/last-form-item.directive.mjs +0 -18
  194. package/esm2022/directives/readonly-field.directive.mjs +0 -145
  195. package/esm2022/directives/resize.directive.mjs +0 -39
  196. package/esm2022/directives/scroll-border-observer.directive.mjs +0 -77
  197. package/esm2022/directives/scroll-to-first-invalid.directive.mjs +0 -126
  198. package/esm2022/directives/value-trace.directive.mjs +0 -61
  199. package/esm2022/form/base-form-container.mjs +0 -126
  200. package/esm2022/form/base-nested-form-control.mjs +0 -190
  201. package/esm2022/form/errors-mapper/base-errors-mapper.mjs +0 -41
  202. package/esm2022/form/errors-mapper/default-errors-mapper.service.mjs +0 -65
  203. package/esm2022/form/errors-mapper/errors-mapper-component/component.mjs +0 -53
  204. package/esm2022/form/errors-mapper/errors-mapper.directive.mjs +0 -109
  205. package/esm2022/form/errors-mapper/index.mjs +0 -10
  206. package/esm2022/form/errors-mapper/types.mjs +0 -2
  207. package/esm2022/form/index.mjs +0 -6
  208. package/esm2022/form/utils.mjs +0 -61
  209. package/esm2022/form/validators/async-function-validator.directive.mjs +0 -49
  210. package/esm2022/form/validators/dns1123-subdomain.mjs +0 -42
  211. package/esm2022/form/validators/function-validator.directive.mjs +0 -49
  212. package/esm2022/form/validators/index.mjs +0 -10
  213. package/esm2022/form/validators/maxlength-minlength-validator.directive.mjs +0 -71
  214. package/esm2022/form/validators/not-be-validator.directive.mjs +0 -56
  215. package/esm2022/form/validators/one-of-validator.directive.mjs +0 -57
  216. package/esm2022/form/validators/resource-limit.mjs +0 -79
  217. package/esm2022/form/validators/strong-password/index.mjs +0 -4
  218. package/esm2022/form/validators/strong-password/strong-password-tooltip/component.mjs +0 -15
  219. package/esm2022/form/validators/strong-password/strong-password-validator.directive.mjs +0 -171
  220. package/esm2022/form/validators/strong-password/strong-password-validator.module.mjs +0 -36
  221. package/esm2022/form/validators/utils.mjs +0 -155
  222. package/esm2022/index.mjs +0 -15
  223. package/esm2022/k8s-resource-list/footer/component.mjs +0 -161
  224. package/esm2022/k8s-resource-list/index.mjs +0 -18
  225. package/esm2022/k8s-resource-list/k8s-resource-list.mjs +0 -224
  226. package/esm2022/k8s-resource-list/k8s-resource-paged-list.mjs +0 -174
  227. package/esm2022/k8s-resource-list/types.mjs +0 -11
  228. package/esm2022/k8s-resource-list/utils.mjs +0 -84
  229. package/esm2022/k8s-shared/constants.mjs +0 -53
  230. package/esm2022/k8s-shared/index.mjs +0 -12
  231. package/esm2022/k8s-shared/k8s-resource-translate-key.pipe.mjs +0 -31
  232. package/esm2022/k8s-shared/k8s-shared-util.service.mjs +0 -152
  233. package/esm2022/k8s-shared/resource-mark/component.mjs +0 -54
  234. package/esm2022/k8s-shared/resource-mark/util.mjs +0 -137
  235. package/esm2022/k8s-shared/update-description-dialog/component.mjs +0 -66
  236. package/esm2022/k8s-shared/update-display-name-dialog/component.mjs +0 -59
  237. package/esm2022/k8s-shared/update-key-value-dialog/component.mjs +0 -76
  238. package/esm2022/page-deactivate/deactivate.directive.mjs +0 -50
  239. package/esm2022/page-deactivate/deactivate.guard.mjs +0 -41
  240. package/esm2022/page-deactivate/deactivate.service.mjs +0 -78
  241. package/esm2022/page-deactivate/index.mjs +0 -4
  242. package/esm2022/pipes/calc.pipe.mjs +0 -21
  243. package/esm2022/pipes/cron-human-readable.pipe.mjs +0 -30
  244. package/esm2022/pipes/crontab-next.pipe.mjs +0 -67
  245. package/esm2022/pipes/duration.pipe.mjs +0 -51
  246. package/esm2022/pipes/field-not-available.pipe.mjs +0 -25
  247. package/esm2022/pipes/img-header.pipe.mjs +0 -18
  248. package/esm2022/pipes/img-theme.pipe.mjs +0 -38
  249. package/esm2022/pipes/index.mjs +0 -19
  250. package/esm2022/pipes/keyvalue.pipe.mjs +0 -20
  251. package/esm2022/pipes/marked.pipe.mjs +0 -18
  252. package/esm2022/pipes/minimum-format.pipe.mjs +0 -25
  253. package/esm2022/pipes/page-env.pipe.mjs +0 -69
  254. package/esm2022/pipes/parse-json-translate.pipe.mjs +0 -28
  255. package/esm2022/pipes/parse-json.pipe.mjs +0 -22
  256. package/esm2022/pipes/pure.pipe.mjs +0 -26
  257. package/esm2022/pipes/safe.pipe.mjs +0 -49
  258. package/esm2022/pipes/sanitize.pipe.mjs +0 -31
  259. package/esm2022/pipes/time.pipe.mjs +0 -113
  260. package/esm2022/pipes/timezone-display.pipe.mjs +0 -21
  261. package/esm2022/services/form-row-duplicate/form-row-duplicate.service.mjs +0 -280
  262. package/esm2022/services/index.mjs +0 -4
  263. package/esm2022/services/on-resize.service.mjs +0 -52
  264. package/esm2022/services/yaml-util.service.mjs +0 -99
  265. package/esm2022/types/common.mjs +0 -6
  266. package/esm2022/types/helpers.mjs +0 -12
  267. package/esm2022/types/index.mjs +0 -9
  268. package/esm2022/types/k8s/core.mjs +0 -2
  269. package/esm2022/types/k8s/crd.mjs +0 -57
  270. package/esm2022/types/k8s/index.mjs +0 -4
  271. package/esm2022/types/k8s/raw.mjs +0 -77
  272. package/esm2022/types/schema.mjs +0 -2
  273. package/esm2022/utils/browser.mjs +0 -21
  274. package/esm2022/utils/cache-store.mjs +0 -83
  275. package/esm2022/utils/color-helpers.mjs +0 -6
  276. package/esm2022/utils/common.mjs +0 -315
  277. package/esm2022/utils/cron-util.mjs +0 -44
  278. package/esm2022/utils/decorators.mjs +0 -137
  279. package/esm2022/utils/disabled-state.mjs +0 -47
  280. package/esm2022/utils/format-number.mjs +0 -227
  281. package/esm2022/utils/index.mjs +0 -24
  282. package/esm2022/utils/local-storage-constants.mjs +0 -2
  283. package/esm2022/utils/node.mjs +0 -18
  284. package/esm2022/utils/observable.mjs +0 -32
  285. package/esm2022/utils/operators.mjs +0 -38
  286. package/esm2022/utils/request-pool.mjs +0 -37
  287. package/esm2022/utils/resources.mjs +0 -66
  288. package/esm2022/utils/router.mjs +0 -20
  289. package/esm2022/utils/sort-fn.mjs +0 -7
  290. package/esm2022/utils/tree.mjs +0 -79
  291. package/esm2022/utils/unit.mjs +0 -191
  292. package/esm2022/utils/version.mjs +0 -76
  293. package/esm2022/utils/with-load-state.mjs +0 -21
  294. package/esm2022/utils/workload.mjs +0 -183
  295. package/esm2022/utils/workspace.mjs +0 -59
  296. package/esm2022/utils/yaml.mjs +0 -54
  297. package/form/base-form-container.d.ts +0 -41
  298. package/form/base-nested-form-control.d.ts +0 -58
  299. package/form/errors-mapper/base-errors-mapper.d.ts +0 -13
  300. package/form/errors-mapper/default-errors-mapper.service.d.ts +0 -10
  301. package/form/errors-mapper/errors-mapper-component/component.d.ts +0 -19
  302. package/form/errors-mapper/errors-mapper.directive.d.ts +0 -39
  303. package/form/errors-mapper/index.d.ts +0 -6
  304. package/form/errors-mapper/types.d.ts +0 -16
  305. package/form/index.d.ts +0 -5
  306. package/form/utils.d.ts +0 -40
  307. package/form/validators/async-function-validator.directive.d.ts +0 -11
  308. package/form/validators/dns1123-subdomain.d.ts +0 -28
  309. package/form/validators/function-validator.directive.d.ts +0 -11
  310. package/form/validators/index.d.ts +0 -9
  311. package/form/validators/maxlength-minlength-validator.directive.d.ts +0 -20
  312. package/form/validators/not-be-validator.directive.d.ts +0 -12
  313. package/form/validators/one-of-validator.directive.d.ts +0 -12
  314. package/form/validators/resource-limit.d.ts +0 -17
  315. package/form/validators/strong-password/index.d.ts +0 -3
  316. package/form/validators/strong-password/strong-password-tooltip/component.d.ts +0 -6
  317. package/form/validators/strong-password/strong-password-validator.directive.d.ts +0 -34
  318. package/form/validators/strong-password/strong-password-validator.module.d.ts +0 -12
  319. package/form/validators/utils.d.ts +0 -67
  320. package/index.d.ts +0 -14
  321. package/k8s-resource-list/footer/component.d.ts +0 -43
  322. package/k8s-resource-list/index.d.ts +0 -13
  323. package/k8s-resource-list/k8s-resource-list.d.ts +0 -42
  324. package/k8s-resource-list/k8s-resource-paged-list.d.ts +0 -61
  325. package/k8s-resource-list/types.d.ts +0 -70
  326. package/k8s-resource-list/utils.d.ts +0 -19
  327. package/k8s-shared/constants.d.ts +0 -7
  328. package/k8s-shared/index.d.ts +0 -11
  329. package/k8s-shared/k8s-resource-translate-key.pipe.d.ts +0 -9
  330. package/k8s-shared/k8s-shared-util.service.d.ts +0 -48
  331. package/k8s-shared/resource-mark/component.d.ts +0 -16
  332. package/k8s-shared/resource-mark/util.d.ts +0 -2
  333. package/k8s-shared/update-description-dialog/component.d.ts +0 -33
  334. package/k8s-shared/update-display-name-dialog/component.d.ts +0 -27
  335. package/k8s-shared/update-key-value-dialog/component.d.ts +0 -38
  336. package/page-deactivate/deactivate.directive.d.ts +0 -18
  337. package/page-deactivate/deactivate.guard.d.ts +0 -13
  338. package/page-deactivate/deactivate.service.d.ts +0 -28
  339. package/page-deactivate/index.d.ts +0 -3
  340. package/pipes/calc.pipe.d.ts +0 -11
  341. package/pipes/cron-human-readable.pipe.d.ts +0 -9
  342. package/pipes/crontab-next.pipe.d.ts +0 -18
  343. package/pipes/duration.pipe.d.ts +0 -10
  344. package/pipes/field-not-available.pipe.d.ts +0 -13
  345. package/pipes/img-header.pipe.d.ts +0 -7
  346. package/pipes/img-theme.pipe.d.ts +0 -13
  347. package/pipes/index.d.ts +0 -18
  348. package/pipes/keyvalue.pipe.d.ts +0 -9
  349. package/pipes/marked.pipe.d.ts +0 -8
  350. package/pipes/minimum-format.pipe.d.ts +0 -10
  351. package/pipes/page-env.pipe.d.ts +0 -34
  352. package/pipes/parse-json-translate.pipe.d.ts +0 -8
  353. package/pipes/parse-json.pipe.d.ts +0 -7
  354. package/pipes/pure.pipe.d.ts +0 -17
  355. package/pipes/safe.pipe.d.ts +0 -10
  356. package/pipes/sanitize.pipe.d.ts +0 -10
  357. package/pipes/time.pipe.d.ts +0 -40
  358. package/pipes/timezone-display.pipe.d.ts +0 -10
  359. package/services/form-row-duplicate/form-row-duplicate.service.d.ts +0 -45
  360. package/services/index.d.ts +0 -3
  361. package/services/on-resize.service.d.ts +0 -20
  362. package/services/yaml-util.service.d.ts +0 -20
  363. package/styles/global.scss +0 -904
  364. package/types/common.d.ts +0 -42
  365. package/types/helpers.d.ts +0 -35
  366. package/types/index.d.ts +0 -8
  367. package/types/k8s/core.d.ts +0 -100
  368. package/types/k8s/crd.d.ts +0 -497
  369. package/types/k8s/index.d.ts +0 -3
  370. package/types/k8s/raw.d.ts +0 -860
  371. package/types/schema.d.ts +0 -14
  372. package/utils/browser.d.ts +0 -4
  373. package/utils/cache-store.d.ts +0 -35
  374. package/utils/color-helpers.d.ts +0 -4
  375. package/utils/common.d.ts +0 -64
  376. package/utils/cron-util.d.ts +0 -8
  377. package/utils/decorators.d.ts +0 -14
  378. package/utils/disabled-state.d.ts +0 -20
  379. package/utils/format-number.d.ts +0 -11
  380. package/utils/index.d.ts +0 -23
  381. package/utils/local-storage-constants.d.ts +0 -1
  382. package/utils/node.d.ts +0 -8
  383. package/utils/observable.d.ts +0 -5
  384. package/utils/operators.d.ts +0 -22
  385. package/utils/request-pool.d.ts +0 -12
  386. package/utils/resources.d.ts +0 -19
  387. package/utils/router.d.ts +0 -3
  388. package/utils/sort-fn.d.ts +0 -2
  389. package/utils/tree.d.ts +0 -16
  390. package/utils/unit.d.ts +0 -21
  391. package/utils/version.d.ts +0 -39
  392. package/utils/with-load-state.d.ts +0 -11
  393. package/utils/workload.d.ts +0 -66
  394. package/utils/workspace.d.ts +0 -28
  395. package/utils/yaml.d.ts +0 -11
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@alauda-fe/dynamic-plugin-shared",
3
- "version": "0.0.1-alpha.8",
3
+ "version": "0.0.3-alpha.0",
4
4
  "peerDependencies": {
5
5
  "@alauda-fe/i18n": "1.0.4",
6
6
  "@alauda/chart": "^0.1.11",
7
7
  "@alauda/code-editor": "^5.1.0",
8
- "@alauda/ui": "^7.2.0",
9
- "@alauda-fe/dynamic-plugin-sdk": "0.0.1",
10
- "@angular/common": "^18.1.1",
11
- "@angular/core": "^18.1.1",
12
- "@angular/animations": "^18.1.1",
13
- "@angular/cdk": "^16.2.2",
14
- "@angular/compiler": "^18.1.1",
15
- "@angular/forms": "^18.1.1",
16
- "@angular/platform-browser": "^18.1.1",
17
- "@angular/platform-browser-dynamic": "^18.1.1",
18
- "@angular/router": "^18.1.1",
8
+ "@alauda-fe/dynamic-plugin-sdk": "0.0.1-alpha.18",
9
+ "@alauda/ui": "^9.1.2-beta.6",
10
+ "@angular/common": "^21.1.1",
11
+ "@angular/core": "^21.1.1",
12
+ "@angular/animations": "^21.1.1",
13
+ "@angular/cdk": "^21.1.1",
14
+ "@angular/compiler": "^21.1.1",
15
+ "@angular/forms": "^21.1.1",
16
+ "@angular/platform-browser": "^21.1.1",
17
+ "@angular/platform-browser-dynamic": "^21.1.1",
18
+ "@angular/router": "^21.1.1",
19
19
  "ab64": "^0.1.1",
20
20
  "compare-versions": "^6.1.0",
21
21
  "cron-parser": "^4.9.0",
@@ -30,7 +30,7 @@
30
30
  "rxjs": "^7.8.1",
31
31
  "ts-md5": "^1.3.1",
32
32
  "yaml": "^2.3.2",
33
- "zone.js": "^0.13.1"
33
+ "zone.js": "^0.16.0"
34
34
  },
35
35
  "private": false,
36
36
  "publishConfig": {
@@ -38,15 +38,13 @@
38
38
  },
39
39
  "sideEffects": false,
40
40
  "module": "fesm2022/alauda-fe-dynamic-plugin-shared.mjs",
41
- "typings": "index.d.ts",
41
+ "typings": "types/alauda-fe-dynamic-plugin-shared.d.ts",
42
42
  "exports": {
43
43
  "./package.json": {
44
44
  "default": "./package.json"
45
45
  },
46
46
  ".": {
47
- "types": "./index.d.ts",
48
- "esm2022": "./esm2022/alauda-fe-dynamic-plugin-shared.mjs",
49
- "esm": "./esm2022/alauda-fe-dynamic-plugin-shared.mjs",
47
+ "types": "./types/alauda-fe-dynamic-plugin-shared.d.ts",
50
48
  "default": "./fesm2022/alauda-fe-dynamic-plugin-shared.mjs"
51
49
  }
52
50
  },
package/styles/lib.scss CHANGED
@@ -1 +1 @@
1
- .tw-mb-12{margin-bottom:12px}.tw-mb-4{margin-bottom:4px}.tw-ml-\[-4px\]{margin-left:-4px}.tw-mr-4{margin-right:4px}.tw-mr-8{margin-right:8px}.tw-mt-0{margin-top:0}.tw-flex{display:flex}.tw-h-\[8px\]{height:8px}.tw-w-full{width:100%}.tw-flex-1{flex:1 1 0%}.tw-cursor-pointer{cursor:pointer}.tw-justify-end{justify-content:flex-end}.tw-overflow-hidden{overflow:hidden}.tw-text-ellipsis{text-overflow:ellipsis}.tw-text-center{text-align:center}.\!tw-text-s{font-size:var(--aui-font-size-s)!important}.tw-text-main-text{color:rgb(var(--aui-color-main-text))}.tw-text-n-2{color:rgb(var(--aui-color-n-2))}.tw-text-red{color:rgb(var(--aui-color-red))}.tw-icon-m{font-size:var(--aui-icon-size-m)}.hover\:tw-text-primary:hover{color:rgb(var(--aui-color-primary))}
1
+ .tw-mb-12{margin-bottom:12px}.tw-mb-4{margin-bottom:4px}.tw-ml-6{margin-left:6px}.tw-ml-8{margin-left:8px}.tw-ml-\[-4px\]{margin-left:-4px}.tw-mr-4{margin-right:4px}.tw-mr-8{margin-right:8px}.tw-mt-0{margin-top:0}.tw-flex{display:flex}.tw-h-\[22px\]{height:22px}.tw-h-\[8px\]{height:8px}.tw-w-full{width:100%}.tw-min-w-\[160px\]{min-width:160px}.tw-min-w-\[260px\]{min-width:260px}.tw-max-w-\[400px\]{max-width:400px}.tw-max-w-\[45\%\]{max-width:45%}.tw-flex-1{flex:1 1 0%}.tw-flex-shrink-0{flex-shrink:0}.tw-cursor-pointer{cursor:pointer}.tw-flex-col{flex-direction:column}.tw-items-center{align-items:center}.tw-justify-end{justify-content:flex-end}.tw-overflow-hidden{overflow:hidden}.tw-text-ellipsis{text-overflow:ellipsis}.tw-bg-p-6{background-color:rgb(var(--aui-color-p-6))}.tw-text-center{text-align:center}.\!tw-text-s{font-size:var(--aui-font-size-s)!important}.tw-text-m{font-size:var(--aui-font-size-m)}.tw-text-help-text{color:rgb(var(--aui-color-help-text))}.tw-text-main-text{color:rgb(var(--aui-color-main-text))}.tw-text-n-2{color:rgb(var(--aui-color-n-2))}.tw-text-n-4{color:rgb(var(--aui-color-n-4))}.tw-text-p-2{color:rgb(var(--aui-color-p-2))}.tw-text-red{color:rgb(var(--aui-color-red))}.tw-icon-m{font-size:var(--aui-icon-size-m)}.hover\:tw-text-primary:hover{color:rgb(var(--aui-color-primary))}
@@ -2,54 +2,9 @@
2
2
  @import 'node_modules/@alauda/ui/theme/var';
3
3
  @import 'node_modules/@alauda/ui/theme/mixin';
4
4
  @import 'node_modules/@alauda/ui/theme/pattern';
5
+ @import 'libs/dynamic-plugin-sdk/styles/mixins';
5
6
  @import './var';
6
7
 
7
- @mixin app-root {
8
- display: block;
9
- width: 100%;
10
- z-index: 1;
11
- }
12
-
13
- @mixin fixed-form-container {
14
- display: block;
15
- margin-bottom: $fixed-form-footer-height;
16
- }
17
-
18
- // 切换侧边栏状态时会导致布局变更,可以使用这个mixin使过渡更自然
19
- @mixin sidenav-transition($props...) {
20
- transition: $props;
21
- transition-duration: $transition-duration-s;
22
- transition-timing-function: $ease-in-out;
23
- }
24
-
25
- @mixin fixed-form-footer {
26
- position: fixed;
27
- right: $page-padding-m;
28
- bottom: 0;
29
- z-index: 110;
30
- height: $fixed-form-footer-height;
31
- padding: 0 20px;
32
- border-top-left-radius: use-var(border-radius-l);
33
- border-top-right-radius: use-var(border-radius-l);
34
- display: flex;
35
- justify-content: flex-end;
36
- align-items: center;
37
- background-color: use-rgb(n-10);
38
- @include card-shadow;
39
-
40
- left: $page-sider-width + $page-padding-m * 2;
41
-
42
- @at-root {
43
- #{selector-nest($page-sider-collapse-selector, &)} {
44
- left: $page-sider-collapse-width + $page-padding-m * 2;
45
- }
46
-
47
- #{selector-nest($page-sider-ani-selector, &)} {
48
- @include sidenav-transition(left);
49
- }
50
- }
51
- }
52
-
53
8
  @mixin array-form-table {
54
9
  .acl-array-form-table {
55
10
  flex: 1;
@@ -293,56 +248,6 @@
293
248
  }
294
249
  }
295
250
 
296
- @mixin inline-select {
297
- display: inline-flex;
298
- align-items: center;
299
- border-radius: use-var(border-radius-m);
300
- border: 1px solid use-rgb(border);
301
- background-color: use-rgb(n-9);
302
- padding-left: 8px;
303
-
304
- &:hover {
305
- border-color: use-rgb(primary);
306
- }
307
-
308
- &:focus,
309
- &.isFocused {
310
- border-color: use-rgb(primary);
311
- @include outline-shadow(primary);
312
- }
313
-
314
- > label {
315
- font-size: use-var(font-size-m);
316
- font-weight: use-var(font-weight-normal);
317
- color: use-text-color(help);
318
- white-space: nowrap;
319
- }
320
-
321
- .aui-input {
322
- border: 0;
323
-
324
- &:focus,
325
- &.isFocused {
326
- border: none;
327
- box-shadow: none !important;
328
- }
329
-
330
- height: calc(#{use-var(inline-height-m)} - 2px);
331
- }
332
- }
333
-
334
- @mixin sticky-header($top) {
335
- position: sticky;
336
- z-index: 1;
337
- top: $top;
338
- }
339
-
340
- @mixin sticky-table-header($top) {
341
- > .aui-table > .aui-table__header-row {
342
- @include sticky-header($top);
343
- }
344
- }
345
-
346
251
  @mixin detail-page-fullheight($gap: 0) {
347
252
  display: block;
348
253
  height: calc(100vh - (#{$page-top}) - #{111px + 16px + 20px + $gap});
@@ -399,11 +304,6 @@
399
304
  );
400
305
  }
401
306
 
402
- @mixin bicolor($main, $secondary) {
403
- --bicolor-main: #{$main};
404
- --bicolor-secondary: #{$secondary};
405
- }
406
-
407
307
  @mixin table-row-placeholder-extend {
408
308
  display: flex;
409
309
  justify-content: center;
@@ -531,105 +431,6 @@
531
431
  }
532
432
  }
533
433
 
534
- // hover的时候,边框的top,right,bottom,left都向外4px,default和hover要一起使用
535
- // 分两个方法的原因:有些场景只需要用到边框,不需要hover放大
536
- // 默认状态和禁用状态。加disabled类名可以成为禁用状态
537
- @mixin scale-on-default-disabled {
538
- position: relative;
539
-
540
- &:after {
541
- position: absolute;
542
- content: '';
543
- inset: 0;
544
- border: 1px solid use-rgb(n-7);
545
- border-radius: $border-scale-radius;
546
- pointer-events: none;
547
- transition: $border-transition;
548
- }
549
-
550
- &.disabled {
551
- background-color: use-rgb(n-8);
552
- color: use-rgb(n-6);
553
- cursor: not-allowed;
554
- }
555
- }
556
-
557
- // hover状态和选中状态
558
- @mixin scale-on-hover-active {
559
- &:hover {
560
- &:after {
561
- inset: -$border-scale-width;
562
- border-color: use-rgb(primary);
563
- box-shadow:
564
- inset 0 0 0 $border-scale-width use-rgb(n-10),
565
- 0 0 2 * $border-scale-width 0 use-rgba(primary, 0.5);
566
- }
567
- }
568
-
569
- &:active {
570
- &:after {
571
- inset: 0;
572
- box-shadow: 0 0 $border-scale-width 0 use-rgba(primary, 0.5);
573
- }
574
- }
575
- }
576
-
577
- // 合并上面的两个方法,参数是hover后不需要放大的选择器,如果参数是类名选择器可以用引号括起来
578
- @mixin scale-on-hover($disabled: '.disabled') {
579
- @include scale-on-default-disabled;
580
-
581
- &:not(#{$disabled}) {
582
- @include scale-on-hover-active;
583
- }
584
- }
585
-
586
- @mixin page-color-definition {
587
- :root {
588
- --acl-page-header-background-color: #{use-rgb(n-10)};
589
- --acl-page-header-title-color: #{use-rgb(n-1)};
590
- --acl-page-header-text-color: #{use-rgb(n-2)};
591
- --acl-nav-background-color: #{use-rgb(main-bg)};
592
- --acl-nav-active-text-color: #{use-rgb(primary)};
593
- --acl-nav-active-background-color: #{use-rgb(p-5)};
594
- --acl-nav-popper-background-color: #{use-rgb(popper-bg)};
595
- --acl-icon-color-cpu: #7c61ff;
596
- --acl-icon-color-memory: #01a1c5;
597
- --acl-icon-color-storage: #85b53a;
598
- --acl-icon-color-gpu: #4a77f8;
599
- --acl-icon-color-gpu-memory: #b95252;
600
- }
601
- }
602
-
603
- @mixin colorful-icon() {
604
- @include theme-light {
605
- @include bicolor(use-rgb(primary), use-rgb(p-3));
606
- }
607
-
608
- @include theme-dark {
609
- @include bicolor(use-rgb(primary), use-rgb(p-3));
610
- }
611
- }
612
-
613
- @mixin colorful-icon-highlight() {
614
- @include theme-light {
615
- @include bicolor(white, use-rgb(p-4));
616
- }
617
-
618
- @include theme-dark {
619
- @include bicolor(white, #b3d7fc);
620
- }
621
- }
622
-
623
- @mixin colorful-icon-plain() {
624
- @include theme-light {
625
- @include bicolor(use-rgb(n-3), use-rgb(n-5));
626
- }
627
-
628
- @include theme-dark {
629
- @include bicolor(use-rgb(n-3), use-rgb(n-5));
630
- }
631
- }
632
-
633
434
  @mixin co-line-clamp($lines: 3) {
634
435
  display: -webkit-box;
635
436
  overflow: hidden;
@@ -647,16 +448,6 @@
647
448
  }
648
449
  }
649
450
 
650
- @mixin lang-not-zh {
651
- $scope: &;
652
-
653
- @at-root {
654
- #{selector-nest('html:not([lang|=zh])', $scope)} {
655
- @content;
656
- }
657
- }
658
- }
659
-
660
451
  @mixin multi-line-textarea-wrapper {
661
452
  display: grid;
662
453
  align-items: stretch;
package/styles/var.scss CHANGED
@@ -1,30 +1,5 @@
1
- $page-min-width: 1200px;
2
-
3
1
  $page-header-height: var(--acl-page-header-height);
4
2
  $page-toolbar-height: 44px;
5
- $page-card-padding: 40px;
6
- $page-bottom-padding: 20px;
7
- $page-sider-width: 220px;
8
- $page-sider-collapse-width: 40px;
9
- $page-sider-footer-height: 52px;
10
- $page-sider-collapse-icon-translate-x: -8px;
11
- $page-sider-collapse-selector: '.sidenav-collapse';
12
- $page-sider-ani-selector: '.sidenav-ani';
3
+ $page-top: $page-header-height + ' + ' + $page-toolbar-height;
13
4
  $page-padding-m: 20px;
14
- $page-padding-s: 16px;
15
-
16
5
  $fixed-form-footer-height: 64px;
17
-
18
- $default-border: 1px solid use-rgb(border);
19
- $border-scale-width: 4px;
20
- $border-transition: all 0.2s ease-in-out;
21
- $border-scale-radius: 4px;
22
-
23
- $ease-in-out: cubic-bezier(0.38, 0, 0.24, 1);
24
- $transition-duration-s: 0.3s; // 最慢
25
- $transition-duration-m: 0.24s; // 适中
26
- $transition-duration-f: 0.2s; // 最快
27
-
28
- // var(--acl-page-header-height) + 44px
29
- $page-top: $page-header-height + ' + ' + $page-toolbar-height;
30
- $page-top-padding: calc(#{$page-top} + 20px);