@alauda-fe/dynamic-plugin-shared 0.0.1-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 (415) hide show
  1. package/README.md +7 -0
  2. package/array-form-table/base-string-map-form.component.d.ts +22 -0
  3. package/array-form-table/form/component.d.ts +106 -0
  4. package/array-form-table/form/index.d.ts +2 -0
  5. package/array-form-table/index.d.ts +10 -0
  6. package/array-form-table/key-value-form/component.d.ts +38 -0
  7. package/array-form-table/key-value-table/component.d.ts +9 -0
  8. package/array-form-table/string-array-form/component.d.ts +41 -0
  9. package/assets/images/abnormal.svg +1 -0
  10. package/assets/images/dark/disconnected.svg +1 -0
  11. package/assets/images/dark/license-abnormal.svg +1 -0
  12. package/assets/images/dark/network-abnormal.svg +1 -0
  13. package/assets/images/dark/no-data.svg +1 -0
  14. package/assets/images/dark/no-message.svg +1 -0
  15. package/assets/images/dark/no-permission.svg +1 -0
  16. package/assets/images/dark/no_realtime_alarm.svg +1 -0
  17. package/assets/images/dark/not-deployed.svg +1 -0
  18. package/assets/images/dark/not-found.svg +1 -0
  19. package/assets/images/dark/not-supported.svg +1 -0
  20. package/assets/images/dark/system-abnormal.svg +1 -0
  21. package/assets/images/light/disconnected.svg +1 -0
  22. package/assets/images/light/license-abnormal.svg +1 -0
  23. package/assets/images/light/network-abnormal.svg +1 -0
  24. package/assets/images/light/no-data.svg +1 -0
  25. package/assets/images/light/no-message.svg +1 -0
  26. package/assets/images/light/no-permission.svg +1 -0
  27. package/assets/images/light/no_realtime_alarm.svg +1 -0
  28. package/assets/images/light/not-deployed.svg +1 -0
  29. package/assets/images/light/not-found.svg +1 -0
  30. package/assets/images/light/not-supported.svg +1 -0
  31. package/assets/images/light/system-abnormal.svg +1 -0
  32. package/assets/images/no-data.png +0 -0
  33. package/async-data/async-data-loader.d.ts +31 -0
  34. package/async-data/error-page/component.d.ts +30 -0
  35. package/async-data/index.d.ts +13 -0
  36. package/async-data/page-state/component.d.ts +21 -0
  37. package/async-data/types.d.ts +29 -0
  38. package/code-editor/code-display-dialog/component.d.ts +17 -0
  39. package/code-editor/code-editor-configs.d.ts +19 -0
  40. package/code-editor/index.d.ts +10 -0
  41. package/code-editor/k8s-yaml-display-dialog/component.d.ts +16 -0
  42. package/code-editor/resource-yaml-display/component.d.ts +21 -0
  43. package/components/card-section/card-section.component.d.ts +9 -0
  44. package/components/confirm-delete/confirm-delete.component.d.ts +57 -0
  45. package/components/confirm-delete/utils.d.ts +25 -0
  46. package/components/current-time/component.d.ts +14 -0
  47. package/components/custom-columns-setting/component.d.ts +16 -0
  48. package/components/custom-columns-setting/index.d.ts +1 -0
  49. package/components/date-range-picker/component.d.ts +55 -0
  50. package/components/date-range-picker/index.d.ts +3 -0
  51. package/components/date-range-picker/type.d.ts +36 -0
  52. package/components/date-range-picker/util.d.ts +11 -0
  53. package/components/disabled-container/disabled-container.component.d.ts +21 -0
  54. package/components/disabled-container/index.d.ts +7 -0
  55. package/components/field-set/column/component.d.ts +10 -0
  56. package/components/field-set/group/component.d.ts +6 -0
  57. package/components/field-set/index.d.ts +7 -0
  58. package/components/field-set/item/component.d.ts +13 -0
  59. package/components/foldable-block/component.d.ts +17 -0
  60. package/components/foldable-item-in-table/component.d.ts +21 -0
  61. package/components/help-document/component.d.ts +29 -0
  62. package/components/help-document/directive.d.ts +20 -0
  63. package/components/help-document/index.d.ts +8 -0
  64. package/components/help-document/service.d.ts +20 -0
  65. package/components/index.d.ts +31 -0
  66. package/components/loading-mask/loading-mask.component.d.ts +13 -0
  67. package/components/page-guard/component/component.d.ts +40 -0
  68. package/components/page-guard/component/helper-directives.d.ts +17 -0
  69. package/components/page-guard/component/page-guard.type.d.ts +86 -0
  70. package/components/page-guard/index.d.ts +12 -0
  71. package/components/password-input/component.d.ts +39 -0
  72. package/components/pod-status/component.d.ts +25 -0
  73. package/components/pod-status/index.d.ts +3 -0
  74. package/components/pod-status/status.d.ts +4 -0
  75. package/components/pod-status/typings.d.ts +16 -0
  76. package/components/relative-time/component.d.ts +15 -0
  77. package/components/resource-label/component.d.ts +25 -0
  78. package/components/resource-multi-select/component.d.ts +41 -0
  79. package/components/resource-multi-select/util.d.ts +10 -0
  80. package/components/search-panel/component.d.ts +16 -0
  81. package/components/search-panel/helper.directive.d.ts +5 -0
  82. package/components/search-panel/search-item/component.d.ts +7 -0
  83. package/components/select-prefix-label/directive.d.ts +17 -0
  84. package/components/status-icon/status-icon.component.d.ts +16 -0
  85. package/components/tags-label/component.d.ts +56 -0
  86. package/components/terminating-tag/component.d.ts +7 -0
  87. package/components/text-ellipsis/component.d.ts +9 -0
  88. package/components/text-tooltip/directive.d.ts +21 -0
  89. package/components/text-with-url/component.d.ts +12 -0
  90. package/components/upload-file/component.d.ts +32 -0
  91. package/components/zero-state/zero-state.component.d.ts +16 -0
  92. package/constants/common.d.ts +64 -0
  93. package/constants/index.d.ts +6 -0
  94. package/constants/k8s.d.ts +12 -0
  95. package/constants/patterns.d.ts +124 -0
  96. package/constants/resource-definitions.d.ts +414 -0
  97. package/constants/status-icons.d.ts +34 -0
  98. package/constants/timezones.d.ts +6 -0
  99. package/directives/aui-code-editor.directive.d.ts +13 -0
  100. package/directives/click-outside.directive.d.ts +12 -0
  101. package/directives/declare.directive.d.ts +8 -0
  102. package/directives/disabled.directive.d.ts +28 -0
  103. package/directives/effect-directive/coerce-number.directive.d.ts +8 -0
  104. package/directives/effect-directive/e2e-attribute-binding.directive.d.ts +10 -0
  105. package/directives/effect-directive/event.directive.d.ts +47 -0
  106. package/directives/effect-directive/index.d.ts +12 -0
  107. package/directives/effect-directive/min-max.directive.d.ts +30 -0
  108. package/directives/effect-directive/trim.directive.d.ts +7 -0
  109. package/directives/effect-directive/validators.directive.d.ts +12 -0
  110. package/directives/feature-gate.directive.d.ts +31 -0
  111. package/directives/index.d.ts +12 -0
  112. package/directives/last-form-item.directive.d.ts +8 -0
  113. package/directives/readonly-field.directive.d.ts +39 -0
  114. package/directives/resize.directive.d.ts +17 -0
  115. package/directives/scroll-border-observer.directive.d.ts +23 -0
  116. package/directives/scroll-to-first-invalid.directive.d.ts +24 -0
  117. package/directives/value-trace.directive.d.ts +27 -0
  118. package/esm2022/alauda-fe-dynamic-plugin-shared.mjs +5 -0
  119. package/esm2022/array-form-table/base-string-map-form.component.mjs +92 -0
  120. package/esm2022/array-form-table/form/component.mjs +266 -0
  121. package/esm2022/array-form-table/form/index.mjs +12 -0
  122. package/esm2022/array-form-table/index.mjs +11 -0
  123. package/esm2022/array-form-table/key-value-form/component.mjs +135 -0
  124. package/esm2022/array-form-table/key-value-table/component.mjs +24 -0
  125. package/esm2022/array-form-table/string-array-form/component.mjs +168 -0
  126. package/esm2022/async-data/async-data-loader.mjs +63 -0
  127. package/esm2022/async-data/error-page/component.mjs +54 -0
  128. package/esm2022/async-data/index.mjs +18 -0
  129. package/esm2022/async-data/page-state/component.mjs +62 -0
  130. package/esm2022/async-data/types.mjs +6 -0
  131. package/esm2022/code-editor/code-display-dialog/component.mjs +35 -0
  132. package/esm2022/code-editor/code-editor-configs.mjs +66 -0
  133. package/esm2022/code-editor/index.mjs +11 -0
  134. package/esm2022/code-editor/k8s-yaml-display-dialog/component.mjs +26 -0
  135. package/esm2022/code-editor/resource-yaml-display/component.mjs +67 -0
  136. package/esm2022/components/card-section/card-section.component.mjs +24 -0
  137. package/esm2022/components/confirm-delete/confirm-delete.component.mjs +192 -0
  138. package/esm2022/components/confirm-delete/utils.mjs +8 -0
  139. package/esm2022/components/current-time/component.mjs +39 -0
  140. package/esm2022/components/custom-columns-setting/component.mjs +75 -0
  141. package/esm2022/components/custom-columns-setting/index.mjs +2 -0
  142. package/esm2022/components/date-range-picker/component.mjs +215 -0
  143. package/esm2022/components/date-range-picker/index.mjs +4 -0
  144. package/esm2022/components/date-range-picker/type.mjs +2 -0
  145. package/esm2022/components/date-range-picker/util.mjs +57 -0
  146. package/esm2022/components/disabled-container/disabled-container.component.mjs +81 -0
  147. package/esm2022/components/disabled-container/index.mjs +8 -0
  148. package/esm2022/components/field-set/column/component.mjs +25 -0
  149. package/esm2022/components/field-set/group/component.mjs +16 -0
  150. package/esm2022/components/field-set/index.mjs +14 -0
  151. package/esm2022/components/field-set/item/component.mjs +41 -0
  152. package/esm2022/components/foldable-block/component.mjs +60 -0
  153. package/esm2022/components/foldable-item-in-table/component.mjs +56 -0
  154. package/esm2022/components/help-document/component.mjs +69 -0
  155. package/esm2022/components/help-document/directive.mjs +70 -0
  156. package/esm2022/components/help-document/index.mjs +9 -0
  157. package/esm2022/components/help-document/service.mjs +43 -0
  158. package/esm2022/components/index.mjs +32 -0
  159. package/esm2022/components/loading-mask/loading-mask.component.mjs +35 -0
  160. package/esm2022/components/page-guard/component/component.mjs +101 -0
  161. package/esm2022/components/page-guard/component/helper-directives.mjs +51 -0
  162. package/esm2022/components/page-guard/component/page-guard.type.mjs +82 -0
  163. package/esm2022/components/page-guard/index.mjs +19 -0
  164. package/esm2022/components/password-input/component.mjs +143 -0
  165. package/esm2022/components/pod-status/component.mjs +49 -0
  166. package/esm2022/components/pod-status/index.mjs +4 -0
  167. package/esm2022/components/pod-status/status.mjs +84 -0
  168. package/esm2022/components/pod-status/typings.mjs +19 -0
  169. package/esm2022/components/relative-time/component.mjs +58 -0
  170. package/esm2022/components/resource-label/component.mjs +100 -0
  171. package/esm2022/components/resource-multi-select/component.mjs +152 -0
  172. package/esm2022/components/resource-multi-select/util.mjs +24 -0
  173. package/esm2022/components/search-panel/component.mjs +51 -0
  174. package/esm2022/components/search-panel/helper.directive.mjs +14 -0
  175. package/esm2022/components/search-panel/search-item/component.mjs +15 -0
  176. package/esm2022/components/select-prefix-label/directive.mjs +89 -0
  177. package/esm2022/components/status-icon/status-icon.component.mjs +56 -0
  178. package/esm2022/components/tags-label/component.mjs +224 -0
  179. package/esm2022/components/terminating-tag/component.mjs +16 -0
  180. package/esm2022/components/text-ellipsis/component.mjs +28 -0
  181. package/esm2022/components/text-tooltip/directive.mjs +71 -0
  182. package/esm2022/components/text-with-url/component.mjs +40 -0
  183. package/esm2022/components/upload-file/component.mjs +95 -0
  184. package/esm2022/components/zero-state/zero-state.component.mjs +51 -0
  185. package/esm2022/constants/common.mjs +86 -0
  186. package/esm2022/constants/index.mjs +7 -0
  187. package/esm2022/constants/k8s.mjs +13 -0
  188. package/esm2022/constants/patterns.mjs +142 -0
  189. package/esm2022/constants/resource-definitions.mjs +424 -0
  190. package/esm2022/constants/status-icons.mjs +65 -0
  191. package/esm2022/constants/timezones.mjs +234 -0
  192. package/esm2022/directives/aui-code-editor.directive.mjs +30 -0
  193. package/esm2022/directives/click-outside.directive.mjs +49 -0
  194. package/esm2022/directives/declare.directive.mjs +27 -0
  195. package/esm2022/directives/disabled.directive.mjs +76 -0
  196. package/esm2022/directives/effect-directive/coerce-number.directive.mjs +54 -0
  197. package/esm2022/directives/effect-directive/e2e-attribute-binding.directive.mjs +57 -0
  198. package/esm2022/directives/effect-directive/event.directive.mjs +129 -0
  199. package/esm2022/directives/effect-directive/index.mjs +21 -0
  200. package/esm2022/directives/effect-directive/min-max.directive.mjs +107 -0
  201. package/esm2022/directives/effect-directive/trim.directive.mjs +40 -0
  202. package/esm2022/directives/effect-directive/validators.directive.mjs +43 -0
  203. package/esm2022/directives/feature-gate.directive.mjs +90 -0
  204. package/esm2022/directives/index.mjs +13 -0
  205. package/esm2022/directives/last-form-item.directive.mjs +18 -0
  206. package/esm2022/directives/readonly-field.directive.mjs +145 -0
  207. package/esm2022/directives/resize.directive.mjs +39 -0
  208. package/esm2022/directives/scroll-border-observer.directive.mjs +77 -0
  209. package/esm2022/directives/scroll-to-first-invalid.directive.mjs +126 -0
  210. package/esm2022/directives/value-trace.directive.mjs +61 -0
  211. package/esm2022/form/base-form-container.mjs +126 -0
  212. package/esm2022/form/base-nested-form-control.mjs +190 -0
  213. package/esm2022/form/errors-mapper/base-errors-mapper.mjs +41 -0
  214. package/esm2022/form/errors-mapper/default-errors-mapper.service.mjs +65 -0
  215. package/esm2022/form/errors-mapper/errors-mapper-component/component.mjs +53 -0
  216. package/esm2022/form/errors-mapper/errors-mapper.directive.mjs +109 -0
  217. package/esm2022/form/errors-mapper/index.mjs +10 -0
  218. package/esm2022/form/errors-mapper/types.mjs +2 -0
  219. package/esm2022/form/index.mjs +6 -0
  220. package/esm2022/form/utils.mjs +61 -0
  221. package/esm2022/form/validators/async-function-validator.directive.mjs +49 -0
  222. package/esm2022/form/validators/dns1123-subdomain.mjs +42 -0
  223. package/esm2022/form/validators/function-validator.directive.mjs +49 -0
  224. package/esm2022/form/validators/index.mjs +10 -0
  225. package/esm2022/form/validators/maxlength-minlength-validator.directive.mjs +71 -0
  226. package/esm2022/form/validators/not-be-validator.directive.mjs +56 -0
  227. package/esm2022/form/validators/one-of-validator.directive.mjs +57 -0
  228. package/esm2022/form/validators/resource-limit.mjs +79 -0
  229. package/esm2022/form/validators/strong-password/index.mjs +4 -0
  230. package/esm2022/form/validators/strong-password/strong-password-tooltip/component.mjs +15 -0
  231. package/esm2022/form/validators/strong-password/strong-password-validator.directive.mjs +171 -0
  232. package/esm2022/form/validators/strong-password/strong-password-validator.module.mjs +36 -0
  233. package/esm2022/form/validators/utils.mjs +155 -0
  234. package/esm2022/index.mjs +15 -0
  235. package/esm2022/k8s-resource-list/footer/component.mjs +156 -0
  236. package/esm2022/k8s-resource-list/index.mjs +18 -0
  237. package/esm2022/k8s-resource-list/k8s-resource-list.mjs +224 -0
  238. package/esm2022/k8s-resource-list/k8s-resource-paged-list.mjs +174 -0
  239. package/esm2022/k8s-resource-list/types.mjs +11 -0
  240. package/esm2022/k8s-resource-list/utils.mjs +84 -0
  241. package/esm2022/k8s-shared/constants.mjs +53 -0
  242. package/esm2022/k8s-shared/index.mjs +12 -0
  243. package/esm2022/k8s-shared/k8s-resource-translate-key.pipe.mjs +31 -0
  244. package/esm2022/k8s-shared/k8s-shared-util.service.mjs +152 -0
  245. package/esm2022/k8s-shared/resource-mark/component.mjs +54 -0
  246. package/esm2022/k8s-shared/resource-mark/util.mjs +137 -0
  247. package/esm2022/k8s-shared/update-description-dialog/component.mjs +66 -0
  248. package/esm2022/k8s-shared/update-display-name-dialog/component.mjs +59 -0
  249. package/esm2022/k8s-shared/update-key-value-dialog/component.mjs +76 -0
  250. package/esm2022/page-deactivate/deactivate.directive.mjs +50 -0
  251. package/esm2022/page-deactivate/deactivate.guard.mjs +41 -0
  252. package/esm2022/page-deactivate/deactivate.service.mjs +78 -0
  253. package/esm2022/page-deactivate/index.mjs +4 -0
  254. package/esm2022/pipes/calc.pipe.mjs +21 -0
  255. package/esm2022/pipes/cron-human-readable.pipe.mjs +30 -0
  256. package/esm2022/pipes/crontab-next.pipe.mjs +67 -0
  257. package/esm2022/pipes/duration.pipe.mjs +51 -0
  258. package/esm2022/pipes/field-not-available.pipe.mjs +25 -0
  259. package/esm2022/pipes/img-header.pipe.mjs +18 -0
  260. package/esm2022/pipes/img-theme.pipe.mjs +38 -0
  261. package/esm2022/pipes/index.mjs +19 -0
  262. package/esm2022/pipes/keyvalue.pipe.mjs +20 -0
  263. package/esm2022/pipes/marked.pipe.mjs +18 -0
  264. package/esm2022/pipes/minimum-format.pipe.mjs +25 -0
  265. package/esm2022/pipes/page-env.pipe.mjs +69 -0
  266. package/esm2022/pipes/parse-json-translate.pipe.mjs +28 -0
  267. package/esm2022/pipes/parse-json.pipe.mjs +22 -0
  268. package/esm2022/pipes/pure.pipe.mjs +26 -0
  269. package/esm2022/pipes/safe.pipe.mjs +49 -0
  270. package/esm2022/pipes/sanitize.pipe.mjs +31 -0
  271. package/esm2022/pipes/time.pipe.mjs +113 -0
  272. package/esm2022/pipes/timezone-display.pipe.mjs +21 -0
  273. package/esm2022/services/form-row-duplicate/form-row-duplicate.service.mjs +280 -0
  274. package/esm2022/services/index.mjs +4 -0
  275. package/esm2022/services/on-resize.service.mjs +52 -0
  276. package/esm2022/services/yaml-util.service.mjs +99 -0
  277. package/esm2022/types/common.mjs +6 -0
  278. package/esm2022/types/helpers.mjs +12 -0
  279. package/esm2022/types/index.mjs +9 -0
  280. package/esm2022/types/k8s/core.mjs +2 -0
  281. package/esm2022/types/k8s/crd.mjs +57 -0
  282. package/esm2022/types/k8s/index.mjs +4 -0
  283. package/esm2022/types/k8s/raw.mjs +77 -0
  284. package/esm2022/types/schema.mjs +2 -0
  285. package/esm2022/utils/browser.mjs +21 -0
  286. package/esm2022/utils/cache-store.mjs +83 -0
  287. package/esm2022/utils/color-helpers.mjs +6 -0
  288. package/esm2022/utils/common.mjs +315 -0
  289. package/esm2022/utils/cron-util.mjs +44 -0
  290. package/esm2022/utils/decorators.mjs +137 -0
  291. package/esm2022/utils/disabled-state.mjs +47 -0
  292. package/esm2022/utils/format-number.mjs +227 -0
  293. package/esm2022/utils/index.mjs +24 -0
  294. package/esm2022/utils/local-storage-constants.mjs +2 -0
  295. package/esm2022/utils/node.mjs +18 -0
  296. package/esm2022/utils/observable.mjs +32 -0
  297. package/esm2022/utils/operators.mjs +38 -0
  298. package/esm2022/utils/request-pool.mjs +37 -0
  299. package/esm2022/utils/resources.mjs +66 -0
  300. package/esm2022/utils/router.mjs +20 -0
  301. package/esm2022/utils/sort-fn.mjs +7 -0
  302. package/esm2022/utils/tree.mjs +79 -0
  303. package/esm2022/utils/unit.mjs +191 -0
  304. package/esm2022/utils/version.mjs +76 -0
  305. package/esm2022/utils/with-load-state.mjs +21 -0
  306. package/esm2022/utils/workload.mjs +183 -0
  307. package/esm2022/utils/workspace.mjs +59 -0
  308. package/esm2022/utils/yaml.mjs +54 -0
  309. package/fesm2022/alauda-fe-dynamic-plugin-shared.mjs +11151 -0
  310. package/fesm2022/alauda-fe-dynamic-plugin-shared.mjs.map +1 -0
  311. package/form/base-form-container.d.ts +41 -0
  312. package/form/base-nested-form-control.d.ts +58 -0
  313. package/form/errors-mapper/base-errors-mapper.d.ts +13 -0
  314. package/form/errors-mapper/default-errors-mapper.service.d.ts +10 -0
  315. package/form/errors-mapper/errors-mapper-component/component.d.ts +19 -0
  316. package/form/errors-mapper/errors-mapper.directive.d.ts +39 -0
  317. package/form/errors-mapper/index.d.ts +6 -0
  318. package/form/errors-mapper/types.d.ts +16 -0
  319. package/form/index.d.ts +5 -0
  320. package/form/utils.d.ts +40 -0
  321. package/form/validators/async-function-validator.directive.d.ts +11 -0
  322. package/form/validators/dns1123-subdomain.d.ts +28 -0
  323. package/form/validators/function-validator.directive.d.ts +11 -0
  324. package/form/validators/index.d.ts +9 -0
  325. package/form/validators/maxlength-minlength-validator.directive.d.ts +20 -0
  326. package/form/validators/not-be-validator.directive.d.ts +12 -0
  327. package/form/validators/one-of-validator.directive.d.ts +12 -0
  328. package/form/validators/resource-limit.d.ts +17 -0
  329. package/form/validators/strong-password/index.d.ts +3 -0
  330. package/form/validators/strong-password/strong-password-tooltip/component.d.ts +6 -0
  331. package/form/validators/strong-password/strong-password-validator.directive.d.ts +34 -0
  332. package/form/validators/strong-password/strong-password-validator.module.d.ts +12 -0
  333. package/form/validators/utils.d.ts +67 -0
  334. package/index.d.ts +14 -0
  335. package/k8s-resource-list/footer/component.d.ts +42 -0
  336. package/k8s-resource-list/index.d.ts +13 -0
  337. package/k8s-resource-list/k8s-resource-list.d.ts +42 -0
  338. package/k8s-resource-list/k8s-resource-paged-list.d.ts +61 -0
  339. package/k8s-resource-list/types.d.ts +70 -0
  340. package/k8s-resource-list/utils.d.ts +19 -0
  341. package/k8s-shared/constants.d.ts +7 -0
  342. package/k8s-shared/index.d.ts +11 -0
  343. package/k8s-shared/k8s-resource-translate-key.pipe.d.ts +9 -0
  344. package/k8s-shared/k8s-shared-util.service.d.ts +48 -0
  345. package/k8s-shared/resource-mark/component.d.ts +16 -0
  346. package/k8s-shared/resource-mark/util.d.ts +2 -0
  347. package/k8s-shared/update-description-dialog/component.d.ts +33 -0
  348. package/k8s-shared/update-display-name-dialog/component.d.ts +27 -0
  349. package/k8s-shared/update-key-value-dialog/component.d.ts +38 -0
  350. package/package.json +56 -0
  351. package/page-deactivate/deactivate.directive.d.ts +18 -0
  352. package/page-deactivate/deactivate.guard.d.ts +13 -0
  353. package/page-deactivate/deactivate.service.d.ts +28 -0
  354. package/page-deactivate/index.d.ts +3 -0
  355. package/pipes/calc.pipe.d.ts +11 -0
  356. package/pipes/cron-human-readable.pipe.d.ts +9 -0
  357. package/pipes/crontab-next.pipe.d.ts +18 -0
  358. package/pipes/duration.pipe.d.ts +10 -0
  359. package/pipes/field-not-available.pipe.d.ts +13 -0
  360. package/pipes/img-header.pipe.d.ts +7 -0
  361. package/pipes/img-theme.pipe.d.ts +13 -0
  362. package/pipes/index.d.ts +18 -0
  363. package/pipes/keyvalue.pipe.d.ts +9 -0
  364. package/pipes/marked.pipe.d.ts +8 -0
  365. package/pipes/minimum-format.pipe.d.ts +10 -0
  366. package/pipes/page-env.pipe.d.ts +34 -0
  367. package/pipes/parse-json-translate.pipe.d.ts +8 -0
  368. package/pipes/parse-json.pipe.d.ts +7 -0
  369. package/pipes/pure.pipe.d.ts +17 -0
  370. package/pipes/safe.pipe.d.ts +10 -0
  371. package/pipes/sanitize.pipe.d.ts +10 -0
  372. package/pipes/time.pipe.d.ts +40 -0
  373. package/pipes/timezone-display.pipe.d.ts +10 -0
  374. package/services/form-row-duplicate/form-row-duplicate.service.d.ts +45 -0
  375. package/services/index.d.ts +3 -0
  376. package/services/on-resize.service.d.ts +20 -0
  377. package/services/yaml-util.service.d.ts +20 -0
  378. package/styles/ansi-color.scss +131 -0
  379. package/styles/global.scss +904 -0
  380. package/styles/lib.scss +1 -0
  381. package/styles/markdown-body.scss +107 -0
  382. package/styles/mixins.scss +710 -0
  383. package/styles/var.scss +30 -0
  384. package/types/common.d.ts +42 -0
  385. package/types/helpers.d.ts +35 -0
  386. package/types/index.d.ts +8 -0
  387. package/types/k8s/core.d.ts +100 -0
  388. package/types/k8s/crd.d.ts +497 -0
  389. package/types/k8s/index.d.ts +3 -0
  390. package/types/k8s/raw.d.ts +860 -0
  391. package/types/schema.d.ts +14 -0
  392. package/utils/browser.d.ts +4 -0
  393. package/utils/cache-store.d.ts +35 -0
  394. package/utils/color-helpers.d.ts +4 -0
  395. package/utils/common.d.ts +64 -0
  396. package/utils/cron-util.d.ts +8 -0
  397. package/utils/decorators.d.ts +14 -0
  398. package/utils/disabled-state.d.ts +20 -0
  399. package/utils/format-number.d.ts +11 -0
  400. package/utils/index.d.ts +23 -0
  401. package/utils/local-storage-constants.d.ts +1 -0
  402. package/utils/node.d.ts +8 -0
  403. package/utils/observable.d.ts +5 -0
  404. package/utils/operators.d.ts +22 -0
  405. package/utils/request-pool.d.ts +12 -0
  406. package/utils/resources.d.ts +19 -0
  407. package/utils/router.d.ts +3 -0
  408. package/utils/sort-fn.d.ts +2 -0
  409. package/utils/tree.d.ts +16 -0
  410. package/utils/unit.d.ts +21 -0
  411. package/utils/version.d.ts +39 -0
  412. package/utils/with-load-state.d.ts +11 -0
  413. package/utils/workload.d.ts +66 -0
  414. package/utils/workspace.d.ts +28 -0
  415. package/utils/yaml.d.ts +11 -0
@@ -0,0 +1,47 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare enum PreventHandler {
3
+ Contextmenu = "contextmenu",
4
+ Paste = "paste",
5
+ Cut = "cut",
6
+ Copy = "copy"
7
+ }
8
+ /**
9
+ * 阻止点击事件
10
+ */
11
+ export declare class PreventDirective {
12
+ prevent: boolean;
13
+ static ɵfac: i0.ɵɵFactoryDeclaration<PreventDirective, never>;
14
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PreventDirective, "[prevent]", never, { "prevent": { "alias": "prevent"; "required": false; }; }, {}, never, never, true, never>;
15
+ }
16
+ /**
17
+ * 阻止冒泡事件
18
+ */
19
+ export declare class StopDirective {
20
+ stop: boolean;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<StopDirective, never>;
22
+ static ɵdir: i0.ɵɵDirectiveDeclaration<StopDirective, "[stop]", never, { "stop": { "alias": "stop"; "required": false; }; }, {}, never, never, true, never>;
23
+ }
24
+ /**
25
+ * 阻止剪切板(拷贝、粘贴、剪切、右键菜单)等事件
26
+ *
27
+ * @example
28
+ *
29
+ * 阻止全部:
30
+ * ```
31
+ * <input aui-input aclPreventEvent>
32
+ * ```
33
+ * 自定义:
34
+ * ```
35
+ * <input aui-input [aclPreventEvent]="{copy: true, paste: true}">
36
+ * ```
37
+ */
38
+ export declare class PreventClipboardDirective {
39
+ preventClipboardEvent: boolean | '' | Partial<Record<PreventHandler, boolean>>;
40
+ private isPreventEvent;
41
+ onContextmenu(event: Event): void;
42
+ onCut(event: Event): void;
43
+ onPaste(event: Event): void;
44
+ onCopy(event: Event): void;
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<PreventClipboardDirective, never>;
46
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PreventClipboardDirective, "input[aclPreventClipboardEvent]", never, { "preventClipboardEvent": { "alias": "aclPreventClipboardEvent"; "required": false; }; }, {}, never, never, true, never>;
47
+ }
@@ -0,0 +1,12 @@
1
+ import { E2eAttributeBindingDirective } from './e2e-attribute-binding.directive';
2
+ import { PreventDirective, StopDirective } from './event.directive';
3
+ import { MaxValidatorDirective, MinValidatorDirective } from './min-max.directive';
4
+ import { TrimDirective } from './trim.directive';
5
+ import { ValidatorsDirective } from './validators.directive';
6
+ export declare const EFFECT_DIRECTIVE_MODULE: readonly [typeof E2eAttributeBindingDirective, typeof MaxValidatorDirective, typeof MinValidatorDirective, typeof TrimDirective, typeof ValidatorsDirective, typeof PreventDirective, typeof StopDirective];
7
+ export * from './coerce-number.directive';
8
+ export * from './e2e-attribute-binding.directive';
9
+ export * from './event.directive';
10
+ export * from './min-max.directive';
11
+ export * from './trim.directive';
12
+ export * from './validators.directive';
@@ -0,0 +1,30 @@
1
+ import { OnChanges, SimpleChanges } from '@angular/core';
2
+ import { AbstractControl, ValidationErrors, Validator } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Angular form directives for min/max.
6
+ */
7
+ export declare class MaxValidatorDirective implements Validator, OnChanges {
8
+ private _validator;
9
+ private _onChange;
10
+ max: string | number;
11
+ get maxValue(): string | number;
12
+ ngOnChanges(changes: SimpleChanges): void;
13
+ validate(c: AbstractControl): ValidationErrors | null;
14
+ registerOnValidatorChange(fn: () => void): void;
15
+ private _createValidator;
16
+ static ɵfac: i0.ɵɵFactoryDeclaration<MaxValidatorDirective, never>;
17
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MaxValidatorDirective, "[max][formControlName],[max][formControl],[max][ngModel]", never, { "max": { "alias": "max"; "required": false; }; }, {}, never, never, true, never>;
18
+ }
19
+ export declare class MinValidatorDirective implements Validator, OnChanges {
20
+ private _validator;
21
+ private _onChange;
22
+ get maxValue(): string | number;
23
+ min: string | number;
24
+ ngOnChanges(changes: SimpleChanges): void;
25
+ validate(c: AbstractControl): ValidationErrors | null;
26
+ registerOnValidatorChange(fn: () => void): void;
27
+ private _createValidator;
28
+ static ɵfac: i0.ɵɵFactoryDeclaration<MinValidatorDirective, never>;
29
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MinValidatorDirective, "[min][formControlName],[min][formControl],[min][ngModel]", never, { "min": { "alias": "min"; "required": false; }; }, {}, never, never, true, never>;
30
+ }
@@ -0,0 +1,7 @@
1
+ import { DefaultValueAccessor } from '@angular/forms';
2
+ import * as i0 from "@angular/core";
3
+ export declare class TrimDirective extends DefaultValueAccessor {
4
+ _handleInput(value: string): void;
5
+ static ɵfac: i0.ɵɵFactoryDeclaration<TrimDirective, never>;
6
+ static ɵdir: i0.ɵɵDirectiveDeclaration<TrimDirective, "input[trim],textarea[trim]]", never, {}, {}, never, never, true, never>;
7
+ }
@@ -0,0 +1,12 @@
1
+ import { AfterViewInit, OnDestroy } from '@angular/core';
2
+ import { NgControl } from '@angular/forms';
3
+ import * as i0 from "@angular/core";
4
+ export declare class ValidatorsDirective implements AfterViewInit, OnDestroy {
5
+ private readonly ngControl;
6
+ constructor(ngControl: NgControl);
7
+ ngAfterViewInit(): void;
8
+ ngOnDestroy(): void;
9
+ validate(): void;
10
+ static ɵfac: i0.ɵɵFactoryDeclaration<ValidatorsDirective, never>;
11
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ValidatorsDirective, "[ngModel][required],[formControl][required],[formControlName][required],[ngModel][pattern],[formControl][pattern],[formControlName][pattern],[ngModel][min],[formControl][min],[formControlName][min],[ngModel][max],[formControl][max],[formControlName][max],[ngModel][minlength],[formControl][minlength],[formControlName][minlength],[ngModel][maxlength],[formControl][maxlength],[formControlName][maxlength],[ngModel][email],[formControl][email],[formControlName][email]", never, {}, {}, never, never, true, never>;
12
+ }
@@ -0,0 +1,31 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * @module utils
4
+ */
5
+ import { FeatureGateService } from '@alauda-fe/dynamic-plugin-sdk';
6
+ import { ChangeDetectorRef, OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * @example
10
+ * ```
11
+ * <ng-container *aclFeatureGate="gate-name"></ng-container>
12
+ * ```
13
+ */
14
+ export declare class FeatureGateDirective implements OnInit, OnDestroy {
15
+ private readonly container;
16
+ private readonly featureGate;
17
+ private readonly crd;
18
+ featureName: string;
19
+ cluster: string;
20
+ negate: boolean;
21
+ set then(templateRef: TemplateRef<void>);
22
+ set else(templateRef: TemplateRef<void>);
23
+ private thenTemplateRef;
24
+ private elseTemplateRef;
25
+ private subscription;
26
+ constructor(container: ViewContainerRef, featureGate: FeatureGateService, crd: ChangeDetectorRef, templateRef: TemplateRef<void>);
27
+ ngOnInit(): void;
28
+ ngOnDestroy(): void;
29
+ static ɵfac: i0.ɵɵFactoryDeclaration<FeatureGateDirective, never>;
30
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FeatureGateDirective, "[aclFeatureGate]", never, { "featureName": { "alias": "aclFeatureGate"; "required": false; }; "cluster": { "alias": "aclFeatureGateCluster"; "required": false; }; "negate": { "alias": "aclFeatureGateNegate"; "required": false; }; "then": { "alias": "aclFeatureGateThen"; "required": false; }; "else": { "alias": "aclFeatureGateElse"; "required": false; }; }, {}, never, never, true, never>;
31
+ }
@@ -0,0 +1,12 @@
1
+ export * from './disabled.directive';
2
+ export * from './feature-gate.directive';
3
+ export * from './last-form-item.directive';
4
+ export * from './readonly-field.directive';
5
+ export * from './resize.directive';
6
+ export * from './scroll-to-first-invalid.directive';
7
+ export * from './scroll-border-observer.directive';
8
+ export * from './click-outside.directive';
9
+ export * from './declare.directive';
10
+ export { AuiCodeEditorHelperDirective } from './aui-code-editor.directive';
11
+ export * from './value-trace.directive';
12
+ export * from './effect-directive';
@@ -0,0 +1,8 @@
1
+ import { ElementRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export declare class FormItemMarginEffectDirective {
4
+ private readonly el;
5
+ constructor(el: ElementRef);
6
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormItemMarginEffectDirective, never>;
7
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormItemMarginEffectDirective, "[aclFormItemEffect]", never, {}, {}, never, never, false, never>;
8
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * @packageDocumentation
3
+ * @module utils
4
+ */
5
+ import { FormItemControlDirective } from '@alauda/ui';
6
+ import { ComponentFactoryResolver, OnDestroy, OnInit, TemplateRef, ViewContainerRef } from '@angular/core';
7
+ import { NgControl } from '@angular/forms';
8
+ import { Observable } from 'rxjs';
9
+ import * as i0 from "@angular/core";
10
+ export declare class ReadonlyFieldDirective implements OnInit, OnDestroy {
11
+ private readonly control;
12
+ private readonly cfr;
13
+ private readonly viewContainerRef;
14
+ private readonly controlDirective;
15
+ aclReadonlyField: boolean;
16
+ aclReadonlyField$: Observable<boolean>;
17
+ hidden: boolean;
18
+ private isControlRequired;
19
+ private spanComponentRef;
20
+ private readonly templateContext;
21
+ private readonly destroy$;
22
+ template: TemplateRef<any>;
23
+ context: object;
24
+ get isHidden(): boolean;
25
+ constructor(control: NgControl, cfr: ComponentFactoryResolver, viewContainerRef: ViewContainerRef, controlDirective: FormItemControlDirective);
26
+ private setValue;
27
+ ngOnInit(): void;
28
+ private applyValidators;
29
+ private clearValidators;
30
+ ngOnDestroy(): void;
31
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReadonlyFieldDirective, [null, null, null, { optional: true; self: true; }]>;
32
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ReadonlyFieldDirective, "[aclReadonlyField]", never, { "aclReadonlyField": { "alias": "aclReadonlyField"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; "template": { "alias": "aclReadonlyFieldTemplate"; "required": false; }; "context": { "alias": "aclReadonlyFieldTemplateContext"; "required": false; }; }, {}, never, never, true, never>;
33
+ }
34
+ export declare class SpanComponent<T = unknown> {
35
+ data: T;
36
+ setData(value: T): void;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpanComponent<any>, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<SpanComponent<any>, "ng-component", never, {}, {}, never, never, true, never>;
39
+ }
@@ -0,0 +1,17 @@
1
+ import { AfterViewInit, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ export interface ResizeEvent {
4
+ width: number;
5
+ height: number;
6
+ }
7
+ export declare class ResizeDirective implements OnDestroy, AfterViewInit {
8
+ private readonly element;
9
+ resized: EventEmitter<ResizeEvent>;
10
+ private readonly destroy$$;
11
+ constructor(element: ElementRef);
12
+ ngAfterViewInit(): void;
13
+ private onResized;
14
+ ngOnDestroy(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<ResizeDirective, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ResizeDirective, "[aclResize]", never, {}, { "resized": "resized"; }, never, never, true, never>;
17
+ }
@@ -0,0 +1,23 @@
1
+ import { EventEmitter, Injector, OnDestroy, OnInit } from '@angular/core';
2
+ import { Subject } from 'rxjs';
3
+ import * as i0 from "@angular/core";
4
+ interface Option {
5
+ bottomDistance?: number;
6
+ topDistance?: number;
7
+ }
8
+ export declare class ScrollBorderObserverDirective implements OnInit, OnDestroy {
9
+ option: Option | '' | false | number;
10
+ scrollBorder: EventEmitter<"top" | "bottom">;
11
+ scrollBottomBorder: EventEmitter<any>;
12
+ scrollEl: HTMLElement | Window;
13
+ readonly destroy$$: Subject<void>;
14
+ private readonly scrollDispatcher;
15
+ private readonly viewContainerRef;
16
+ constructor(injector: Injector);
17
+ ngOnInit(): void;
18
+ ngOnDestroy(): void;
19
+ private setupScroll;
20
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollBorderObserverDirective, never>;
21
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollBorderObserverDirective, "[aclScrollBorderObserver]", never, { "option": { "alias": "aclScrollBorderObserver"; "required": false; }; }, { "scrollBorder": "scrollBorder"; "scrollBottomBorder": "scrollBottomBorder"; }, never, never, true, never>;
22
+ }
23
+ export {};
@@ -0,0 +1,24 @@
1
+ import { CdkScrollable } from '@angular/cdk/scrolling';
2
+ import { ElementRef } from '@angular/core';
3
+ import { ControlContainer } from '@angular/forms';
4
+ import * as i0 from "@angular/core";
5
+ export declare class ScrollToFirstInvalidMarkerDirective {
6
+ aclScrollToFirstInvalidMarker: boolean;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollToFirstInvalidMarkerDirective, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollToFirstInvalidMarkerDirective, "[aclScrollToFirstInvalidMarker]", never, { "aclScrollToFirstInvalidMarker": { "alias": "aclScrollToFirstInvalidMarker"; "required": false; }; }, {}, never, never, false, never>;
9
+ }
10
+ export declare class ScrollToFirstInvalidDirective {
11
+ private readonly elRef;
12
+ private readonly controlContainer;
13
+ private readonly cdkScrollable;
14
+ labelOffset: number;
15
+ aclScrollToFirstInvalid: boolean | '';
16
+ get containerEl(): HTMLElement | (Window & typeof globalThis);
17
+ onSubmit(): void;
18
+ constructor(elRef: ElementRef<HTMLElement>, controlContainer: ControlContainer, cdkScrollable: CdkScrollable);
19
+ scrollToFirstInvalid(): void;
20
+ getFirstInvalidInput(): HTMLElement;
21
+ private getTopOffset;
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<ScrollToFirstInvalidDirective, [null, null, { optional: true; }]>;
23
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ScrollToFirstInvalidDirective, "[aclScrollToFirstInvalid]", never, { "labelOffset": { "alias": "labelOffset"; "required": false; }; "aclScrollToFirstInvalid": { "alias": "aclScrollToFirstInvalid"; "required": false; }; }, {}, never, never, true, never>;
24
+ }
@@ -0,0 +1,27 @@
1
+ import { OnDestroy, OnInit } from '@angular/core';
2
+ import { NgControl } from '@angular/forms';
3
+ import { Observable, Subject } from 'rxjs';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ *
7
+ * Usage:
8
+ * If you want to trace value with control.
9
+ * The difference between aclValueTrack and ngModelChange is that aclValueTrack carries the first value.
10
+ * So it is not for changes, but for value traces
11
+ * For compatibility and cover the deprecation of ngModelChange, we provide aclValueTrackSkipFirst option
12
+ * eg:
13
+ * <input formControlName="name" [aclValueTrack]="function()">
14
+ *
15
+ */
16
+ export declare class ControlValueTraceDirective implements OnInit, OnDestroy {
17
+ private readonly ngControl;
18
+ aclValueTrackSkipFirst: boolean;
19
+ aclValueTrack: (value?: unknown) => void;
20
+ aclValueTrack$: Observable<(value?: unknown) => void>;
21
+ destroy$$: Subject<void>;
22
+ ngOnDestroy(): void;
23
+ ngOnInit(): void;
24
+ constructor(ngControl: NgControl);
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<ControlValueTraceDirective, [{ host: true; }]>;
26
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ControlValueTraceDirective, "[aclValueTrack]", never, { "aclValueTrackSkipFirst": { "alias": "aclValueTrackSkipFirst"; "required": false; }; "aclValueTrack": { "alias": "aclValueTrack"; "required": false; }; }, {}, never, never, true, never>;
27
+ }
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ export * from './index';
5
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWxhdWRhLWZlLWR5bmFtaWMtcGx1Z2luLXNoYXJlZC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uL2xpYnMvZHluYW1pYy1wbHVnaW4tc2hhcmVkL3NyYy9hbGF1ZGEtZmUtZHluYW1pYy1wbHVnaW4tc2hhcmVkLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBOztHQUVHO0FBRUgsY0FBYyxTQUFTLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKipcbiAqIEdlbmVyYXRlZCBidW5kbGUgaW5kZXguIERvIG5vdCBlZGl0LlxuICovXG5cbmV4cG9ydCAqIGZyb20gJy4vaW5kZXgnO1xuIl19
@@ -0,0 +1,92 @@
1
+ import { Directive, inject } from '@angular/core';
2
+ import { BaseResourceFormComponent } from 'ng-resource-form-util';
3
+ import { ValidateRowDuplicateService } from '../services/form-row-duplicate/form-row-duplicate.service';
4
+ import * as i0 from "@angular/core";
5
+ const missingKeyValidator = control => {
6
+ const [key, value] = control.value;
7
+ return value && !key ? { keyIsMissing: true } : null;
8
+ };
9
+ // 用以Form级别的键值映射对象的修改.
10
+ // 这个表单有些特别. 内部实现是以FormArray实现, 但对外暴露的是一个key->value对象.
11
+ export class BaseStringMapFormComponent extends BaseResourceFormComponent {
12
+ constructor() {
13
+ super(...arguments);
14
+ this.rowDupService = inject(ValidateRowDuplicateService);
15
+ }
16
+ createForm() {
17
+ return this.fb.array([]);
18
+ }
19
+ getDefaultFormModel() {
20
+ return [];
21
+ }
22
+ adaptResourceModel(resource) {
23
+ let newFormModel = Object.entries(resource || {});
24
+ if (newFormModel.length === 0) {
25
+ newFormModel = this.getDefaultFormModel();
26
+ }
27
+ return newFormModel;
28
+ }
29
+ adaptFormModel(formModel) {
30
+ return formModel
31
+ .filter(row => !!row[0])
32
+ .reduce((obj, [k, v]) => ({ ...obj, [k]: v }), {});
33
+ }
34
+ getOnFormArrayResizeFn() {
35
+ return () => this.createNewControl();
36
+ }
37
+ add(index = this.form.length) {
38
+ this.form.insert(index, this.getOnFormArrayResizeFn()());
39
+ this.cdr.markForCheck();
40
+ }
41
+ remove(index) {
42
+ this.form.removeAt(index);
43
+ this.cdr.markForCheck();
44
+ this.form.controls.forEach(c => c.updateValueAndValidity());
45
+ }
46
+ getPreviousKeys(index) {
47
+ return this.formModel
48
+ .slice(0, index)
49
+ .map(([key]) => key)
50
+ .filter(key => !!key);
51
+ }
52
+ getKeyValidators() {
53
+ return [];
54
+ }
55
+ getValueValidators() {
56
+ return [];
57
+ }
58
+ createNewControl() {
59
+ return this.fb.array([
60
+ ['', this.getKeyValidators()],
61
+ ['', this.getValueValidators()],
62
+ ], [
63
+ missingKeyValidator,
64
+ (control) => {
65
+ if (control.controls[0].errors) {
66
+ return {
67
+ key: control.controls[0].errors,
68
+ };
69
+ }
70
+ if (control.controls[1].errors) {
71
+ return {
72
+ value: control.controls[1].errors,
73
+ };
74
+ }
75
+ return null;
76
+ },
77
+ this.rowDupService.createFormArrayValidator({
78
+ rowKeys: [{ key: ['0'] }],
79
+ formArray: this.form,
80
+ }),
81
+ ]);
82
+ }
83
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: BaseStringMapFormComponent, deps: null, target: i0.ɵɵFactoryTarget.Directive }); }
84
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.1.1", type: BaseStringMapFormComponent, isStandalone: true, usesInheritance: true, ngImport: i0 }); }
85
+ }
86
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.1.1", ngImport: i0, type: BaseStringMapFormComponent, decorators: [{
87
+ type: Directive,
88
+ args: [{
89
+ standalone: true,
90
+ }]
91
+ }] });
92
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYmFzZS1zdHJpbmctbWFwLWZvcm0u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Zvcm1Nb2RlbFxuICAgICAgLnNsaWNlKDAsIGluZGV4KVxuICAgICAgLm1hcCgoW2tleV0pID0+IGtleSlcbiAgICAgIC5maWx0ZXIoa2V5ID0+ICEha2V5KTtcbiAgfVxuXG4gIHByb3RlY3RlZCBnZXRLZXlWYWxpZGF0b3JzKCk6IFZhbGlkYXRvckZuIHwgVmFsaWRhdG9yRm5bXSB7XG4gICAgcmV0dXJuIFtdO1xuICB9XG5cbiAgcHJvdGVjdGVkIGdldFZhbHVlVmFsaWRhdG9ycygpOiBWYWxpZGF0b3JGbiB8IFZhbGlkYXRvckZuW10ge1xuICAgIHJldHVybiBbXTtcbiAgfVxuXG4gIHByb3RlY3RlZCBjcmVhdGVOZXdDb250cm9sKCkge1xuICAgIHJldHVybiB0aGlzLmZiLmFycmF5KFxuICAgICAgW1xuICAgICAgICBbJycsIHRoaXMuZ2V0S2V5VmFsaWRhdG9ycygpXSxcbiAgICAgICAgWycnLCB0aGlzLmdldFZhbHVlVmFsaWRhdG9ycygpXSxcbiAgICAgIF0sXG4gICAgICBbXG4gICAgICAgIG1pc3NpbmdLZXlWYWxpZGF0b3IsXG4gICAgICAgIChjb250cm9sOiBGb3JtQXJyYXkpID0+IHtcbiAgICAgICAgICBpZiAoY29udHJvbC5jb250cm9sc1swXS5lcnJvcnMpIHtcbiAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgIGtleTogY29udHJvbC5jb250cm9sc1swXS5lcnJvcnMsXG4gICAgICAgICAgICB9O1xuICAgICAgICAgIH1cbiAgICAgICAgICBpZiAoY29udHJvbC5jb250cm9sc1sxXS5lcnJvcnMpIHtcbiAgICAgICAgICAgIHJldHVybiB7XG4gICAgICAgICAgICAgIHZhbHVlOiBjb250cm9sLmNvbnRyb2xzWzFdLmVycm9ycyxcbiAgICAgICAgICAgIH07XG4gICAgICAgICAgfVxuICAgICAgICAgIHJldHVybiBudWxsO1xuICAgICAgICB9LFxuICAgICAgICB0aGlzLnJvd0R1cFNlcnZpY2UuY3JlYXRlRm9ybUFycmF5VmFsaWRhdG9yKHtcbiAgICAgICAgICByb3dLZXlzOiBbeyBrZXk6IFsnMCddIH1dLFxuICAgICAgICAgIGZvcm1BcnJheTogdGhpcy5mb3JtLFxuICAgICAgICB9KSxcbiAgICAgIF0sXG4gICAgKTtcbiAgfVxufVxuIl19