dashboard-shell-shell 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1644) hide show
  1. package/.DS_Store +0 -0
  2. package/assets/brand/csp/dark/rancher-logo.svg +148 -0
  3. package/assets/brand/csp/favicon.png +0 -0
  4. package/assets/brand/csp/metadata.json +3 -0
  5. package/assets/brand/csp/rancher-logo.svg +130 -0
  6. package/assets/brand/federal/dark/rancher-logo.svg +104 -0
  7. package/assets/brand/federal/metadata.json +3 -0
  8. package/assets/brand/federal/rancher-logo.svg +1 -0
  9. package/assets/brand/harvester/favicon.png +0 -0
  10. package/assets/brand/harvester/metadata.json +3 -0
  11. package/assets/brand/rgs/dark/rancher-logo.svg +1 -0
  12. package/assets/brand/rgs/metadata.json +3 -0
  13. package/assets/brand/rgs/rancher-logo.svg +1 -0
  14. package/assets/brand/suse/dark/rancher-logo.svg +1 -0
  15. package/assets/brand/suse/favicon.png +0 -0
  16. package/assets/brand/suse/metadata.json +3 -0
  17. package/assets/brand/suse/rancher-logo.svg +1 -0
  18. package/assets/data/aws-regions.json +39 -0
  19. package/assets/data/ec2-instance-groups.json +85 -0
  20. package/assets/fonts/lato/lato-v17-latin-700.woff +0 -0
  21. package/assets/fonts/lato/lato-v17-latin-700.woff2 +0 -0
  22. package/assets/fonts/lato/lato-v17-latin-regular.woff +0 -0
  23. package/assets/fonts/lato/lato-v17-latin-regular.woff2 +0 -0
  24. package/assets/fonts/poppins/poppins-v15-latin-300.woff +0 -0
  25. package/assets/fonts/poppins/poppins-v15-latin-300.woff2 +0 -0
  26. package/assets/fonts/poppins/poppins-v15-latin-500.woff +0 -0
  27. package/assets/fonts/poppins/poppins-v15-latin-500.woff2 +0 -0
  28. package/assets/fonts/roboto-mono/roboto-mono-v13-latin-regular.woff +0 -0
  29. package/assets/fonts/roboto-mono/roboto-mono-v13-latin-regular.woff2 +0 -0
  30. package/assets/icons/demo.css +539 -0
  31. package/assets/icons/demo_index.html +1131 -0
  32. package/assets/icons/iconfont.css +216 -0
  33. package/assets/icons/iconfont.js +1 -0
  34. package/assets/icons/iconfont.json +324 -0
  35. package/assets/icons/iconfont.ttf +0 -0
  36. package/assets/icons/iconfont.woff +0 -0
  37. package/assets/icons/iconfont.woff2 +0 -0
  38. package/assets/images/API.svg +3 -0
  39. package/assets/images/featured/img1.jpg +0 -0
  40. package/assets/images/featured.jpg +0 -0
  41. package/assets/images/field-valid.svg +16 -0
  42. package/assets/images/generic-catalog.svg +15 -0
  43. package/assets/images/generic-driver.svg +17 -0
  44. package/assets/images/generic-plugin.svg +1 -0
  45. package/assets/images/login/password.svg +20 -0
  46. package/assets/images/login/user.svg +6 -0
  47. package/assets/images/login-bg.png +0 -0
  48. package/assets/images/login-left.png +0 -0
  49. package/assets/images/login-logo.svg +19 -0
  50. package/assets/images/logo.png +0 -0
  51. package/assets/images/pl/README.md +13 -0
  52. package/assets/images/pl/banner.svg +241 -0
  53. package/assets/images/pl/dark/banner.svg +242 -0
  54. package/assets/images/pl/dark/login-landscape.svg +291 -0
  55. package/assets/images/pl/dark/rancher-logo.svg +51 -0
  56. package/assets/images/pl/decoration-cloud-big-white.svg +1 -0
  57. package/assets/images/pl/decoration-ground.svg +1 -0
  58. package/assets/images/pl/error-desert-landscape.svg +217 -0
  59. package/assets/images/pl/half-logo.svg +2 -0
  60. package/assets/images/pl/harvester.png +0 -0
  61. package/assets/images/pl/harvester.svg +1 -0
  62. package/assets/images/pl/login-landscape.svg +496 -0
  63. package/assets/images/pl/rancher-logo.svg +51 -0
  64. package/assets/images/pl/setup-step-one.svg +612 -0
  65. package/assets/images/pl/sunglasses.svg +20 -0
  66. package/assets/images/promp-yellow.svg +5 -0
  67. package/assets/images/providers/aliyun-black.svg +14 -0
  68. package/assets/images/providers/aliyun.svg +17 -0
  69. package/assets/images/providers/aliyunecs-black.svg +13 -0
  70. package/assets/images/providers/aliyunecs.svg +21 -0
  71. package/assets/images/providers/amazonec2-black.svg +8 -0
  72. package/assets/images/providers/amazonec2.svg +19 -0
  73. package/assets/images/providers/amazoneks-black.svg +10 -0
  74. package/assets/images/providers/amazoneks.svg +14 -0
  75. package/assets/images/providers/aws.svg +38 -0
  76. package/assets/images/providers/azure-black.svg +29 -0
  77. package/assets/images/providers/azure.svg +32 -0
  78. package/assets/images/providers/azuread-black.svg +22 -0
  79. package/assets/images/providers/azuread.svg +25 -0
  80. package/assets/images/providers/azureaks-black.svg +28 -0
  81. package/assets/images/providers/azureaks.svg +31 -0
  82. package/assets/images/providers/baidu-black.svg +19 -0
  83. package/assets/images/providers/baidu.svg +25 -0
  84. package/assets/images/providers/cloudca-black.svg +45 -0
  85. package/assets/images/providers/cloudca.svg +49 -0
  86. package/assets/images/providers/cloudscale-black.svg +24 -0
  87. package/assets/images/providers/cloudscale.svg +28 -0
  88. package/assets/images/providers/custom.svg +85 -0
  89. package/assets/images/providers/digitalocean-black.svg +21 -0
  90. package/assets/images/providers/digitalocean.svg +24 -0
  91. package/assets/images/providers/equinix-black.svg +13 -0
  92. package/assets/images/providers/equinix.svg +13 -0
  93. package/assets/images/providers/exoscale.svg +1 -0
  94. package/assets/images/providers/gcp.svg +6 -0
  95. package/assets/images/providers/gke-black.svg +10 -0
  96. package/assets/images/providers/gke.svg +28 -0
  97. package/assets/images/providers/google.svg +29 -0
  98. package/assets/images/providers/googlegke-black.svg +10 -0
  99. package/assets/images/providers/googlegke.svg +28 -0
  100. package/assets/images/providers/harvester.svg +1 -0
  101. package/assets/images/providers/huaweicce-black.svg +109 -0
  102. package/assets/images/providers/huaweicce.svg +184 -0
  103. package/assets/images/providers/import.svg +99 -0
  104. package/assets/images/providers/k3s-black.svg +10 -0
  105. package/assets/images/providers/k3s.svg +15 -0
  106. package/assets/images/providers/kubernetes-black.svg +37 -0
  107. package/assets/images/providers/kubernetes.svg +99 -0
  108. package/assets/images/providers/linode.svg +54 -0
  109. package/assets/images/providers/linodelke-black.svg +40 -0
  110. package/assets/images/providers/linodelke.svg +54 -0
  111. package/assets/images/providers/local-cluster.svg +20 -0
  112. package/assets/images/providers/minikube-black.svg +25 -0
  113. package/assets/images/providers/minikube.svg +36 -0
  114. package/assets/images/providers/nutanix.svg +12 -0
  115. package/assets/images/providers/oci-black.svg +41 -0
  116. package/assets/images/providers/oci.svg +44 -0
  117. package/assets/images/providers/openstack-black.svg +16 -0
  118. package/assets/images/providers/openstack.svg +20 -0
  119. package/assets/images/providers/oracle.svg +66 -0
  120. package/assets/images/providers/oracleoke-black.svg +51 -0
  121. package/assets/images/providers/oracleoke.svg +55 -0
  122. package/assets/images/providers/otc-black.svg +15 -0
  123. package/assets/images/providers/otc.svg +33 -0
  124. package/assets/images/providers/otccce.svg +33 -0
  125. package/assets/images/providers/outscale.svg +19 -0
  126. package/assets/images/providers/ovhcloudmks.svg +122 -0
  127. package/assets/images/providers/ovhcloudpubliccloud.svg +122 -0
  128. package/assets/images/providers/packet-black.svg +15 -0
  129. package/assets/images/providers/packet.svg +16 -0
  130. package/assets/images/providers/pinganyunecs-black.svg +26 -0
  131. package/assets/images/providers/pinganyunecs.svg +26 -0
  132. package/assets/images/providers/pnap-black.svg +43 -0
  133. package/assets/images/providers/pnap.svg +48 -0
  134. package/assets/images/providers/rackspace-black.svg +14 -0
  135. package/assets/images/providers/rackspace.svg +18 -0
  136. package/assets/images/providers/rke.svg +26 -0
  137. package/assets/images/providers/rke2.svg +26 -0
  138. package/assets/images/providers/softlayer.svg +27 -0
  139. package/assets/images/providers/tencenttke-black.svg +22 -0
  140. package/assets/images/providers/tencenttke.svg +39 -0
  141. package/assets/images/providers/vmwarevsphere-black.svg +60 -0
  142. package/assets/images/providers/vmwarevsphere.svg +51 -0
  143. package/assets/images/user.png +0 -0
  144. package/assets/images/vendor/activedirectory.svg +20 -0
  145. package/assets/images/vendor/adfs.svg +19 -0
  146. package/assets/images/vendor/azuread.svg +18 -0
  147. package/assets/images/vendor/custom.svg +42 -0
  148. package/assets/images/vendor/email.svg +22 -0
  149. package/assets/images/vendor/freeipa.svg +26 -0
  150. package/assets/images/vendor/github.svg +13 -0
  151. package/assets/images/vendor/googleoauth.svg +9 -0
  152. package/assets/images/vendor/grafana.svg +48 -0
  153. package/assets/images/vendor/jaeger.svg +1 -0
  154. package/assets/images/vendor/keycloak.svg +30 -0
  155. package/assets/images/vendor/kiali.svg +23 -0
  156. package/assets/images/vendor/linux.svg +23 -0
  157. package/assets/images/vendor/longhorn.svg +25 -0
  158. package/assets/images/vendor/neuvector.svg +1 -0
  159. package/assets/images/vendor/okta.svg +31 -0
  160. package/assets/images/vendor/openid.svg +18 -0
  161. package/assets/images/vendor/openldap.svg +34 -0
  162. package/assets/images/vendor/pagerduty.svg +26 -0
  163. package/assets/images/vendor/ping.svg +58 -0
  164. package/assets/images/vendor/prometheus.svg +14 -0
  165. package/assets/images/vendor/shibboleth.svg +481 -0
  166. package/assets/images/vendor/slack.svg +38 -0
  167. package/assets/images/vendor/webhook.svg +23 -0
  168. package/assets/images/vendor/windows.svg +13 -0
  169. package/assets/images/wechat-qr-code.jpg +0 -0
  170. package/assets/styles/all.scss +63 -0
  171. package/assets/styles/app.scss +36 -0
  172. package/assets/styles/base/_basic.scss +152 -0
  173. package/assets/styles/base/_color.scss +11 -0
  174. package/assets/styles/base/_functions.scss +134 -0
  175. package/assets/styles/base/_helpers.scss +271 -0
  176. package/assets/styles/base/_mixins.scss +163 -0
  177. package/assets/styles/base/_typography.scss +70 -0
  178. package/assets/styles/base/_variables.scss +78 -0
  179. package/assets/styles/fonts/_dots.scss +18 -0
  180. package/assets/styles/fonts/_fontstack.scss +49 -0
  181. package/assets/styles/fonts/_icons.scss +101 -0
  182. package/assets/styles/fonts/_zerowidthspace.scss +8 -0
  183. package/assets/styles/global/_button.scss +234 -0
  184. package/assets/styles/global/_cards.scss +94 -0
  185. package/assets/styles/global/_columns.scss +128 -0
  186. package/assets/styles/global/_form.scss +178 -0
  187. package/assets/styles/global/_gauges.scss +55 -0
  188. package/assets/styles/global/_labeled-input.scss +165 -0
  189. package/assets/styles/global/_layout.scss +171 -0
  190. package/assets/styles/global/_resource.scss +89 -0
  191. package/assets/styles/global/_select.scss +202 -0
  192. package/assets/styles/global/_table.scss +106 -0
  193. package/assets/styles/global/_tooltip.scss +206 -0
  194. package/assets/styles/themes/_csp.scss +25 -0
  195. package/assets/styles/themes/_dark.scss +233 -0
  196. package/assets/styles/themes/_light.scss +569 -0
  197. package/assets/styles/themes/_suse.scss +27 -0
  198. package/assets/styles/vendor/_code-mirror.scss +3 -0
  199. package/assets/styles/vendor/normalize.scss +349 -0
  200. package/assets/styles/vendor/vue-select.scss +403 -0
  201. package/assets/translations/en-us.yaml +8184 -0
  202. package/assets/translations/zh-hans.yaml +7825 -0
  203. package/babel.config.js +35 -0
  204. package/chart/__tests__/S3.test.ts +64 -0
  205. package/chart/example.vue +18 -0
  206. package/chart/gatekeeper.vue +69 -0
  207. package/chart/istio.vue +284 -0
  208. package/chart/logging/index.vue +84 -0
  209. package/chart/monitoring/ClusterSelector.vue +215 -0
  210. package/chart/monitoring/StorageClassSelector.vue +49 -0
  211. package/chart/monitoring/alerting/index.vue +188 -0
  212. package/chart/monitoring/grafana/index.vue +378 -0
  213. package/chart/monitoring/index.vue +366 -0
  214. package/chart/monitoring/prometheus/index.vue +376 -0
  215. package/chart/rancher-backup/S3.vue +190 -0
  216. package/chart/rancher-backup/index.vue +260 -0
  217. package/cloud-credential/__tests__/azure.test.ts +43 -0
  218. package/cloud-credential/__tests__/harvester.test.ts +18 -0
  219. package/cloud-credential/aws.vue +111 -0
  220. package/cloud-credential/azure.vue +132 -0
  221. package/cloud-credential/digitalocean.vue +55 -0
  222. package/cloud-credential/gcp.vue +82 -0
  223. package/cloud-credential/generic.vue +100 -0
  224. package/cloud-credential/harvester.vue +125 -0
  225. package/cloud-credential/linode.vue +58 -0
  226. package/cloud-credential/pnap.vue +92 -0
  227. package/cloud-credential/s3.vue +143 -0
  228. package/cloud-credential/vmwarevsphere.vue +109 -0
  229. package/components/ActionDropdown.vue +248 -0
  230. package/components/ActionDropdownShell.vue +71 -0
  231. package/components/ActionMenu.vue +366 -0
  232. package/components/ActionMenuShell.vue +106 -0
  233. package/components/AdvancedSection.vue +40 -0
  234. package/components/Alert.vue +55 -0
  235. package/components/AlertTable.vue +123 -0
  236. package/components/AppModal.vue +307 -0
  237. package/components/AssignTo.vue +199 -0
  238. package/components/AsyncButton.vue +332 -0
  239. package/components/AwsComplianceBanner.vue +47 -0
  240. package/components/BackLink.vue +44 -0
  241. package/components/BannerGraphic.vue +95 -0
  242. package/components/BrandImage.vue +135 -0
  243. package/components/ButtonDropdown.vue +340 -0
  244. package/components/ButtonGroup.vue +124 -0
  245. package/components/ButtonMultiAction.vue +52 -0
  246. package/components/Carousel.vue +397 -0
  247. package/components/Certificates.vue +161 -0
  248. package/components/ChartHeading.vue +25 -0
  249. package/components/ChartReadme.vue +100 -0
  250. package/components/ClusterBadge.vue +48 -0
  251. package/components/ClusterIconMenu.vue +189 -0
  252. package/components/ClusterProviderIcon.vue +131 -0
  253. package/components/CodeMirror.vue +501 -0
  254. package/components/Collapse.vue +87 -0
  255. package/components/CollapsibleCard.vue +121 -0
  256. package/components/CommunityLinks.vue +216 -0
  257. package/components/CompoundStatusBadge.vue +53 -0
  258. package/components/ConsumptionGauge.vue +167 -0
  259. package/components/ContainerResourceLimit.vue +254 -0
  260. package/components/CopyCode.vue +74 -0
  261. package/components/CopyToClipboard.vue +44 -0
  262. package/components/CopyToClipboardText.vue +83 -0
  263. package/components/CountBox.vue +114 -0
  264. package/components/CountGauge.vue +180 -0
  265. package/components/CreateDriver.vue +81 -0
  266. package/components/CruResource.vue +936 -0
  267. package/components/CruResourceFooter.vue +127 -0
  268. package/components/DashboardMetrics.vue +125 -0
  269. package/components/DashboardOptions.vue +159 -0
  270. package/components/DetailText.vue +220 -0
  271. package/components/DetailTop.vue +374 -0
  272. package/components/Dialog.vue +136 -0
  273. package/components/DisableAuthProviderModal.vue +115 -0
  274. package/components/DotState.vue +84 -0
  275. package/components/DraggableZone.vue +181 -0
  276. package/components/EmberPage.vue +622 -0
  277. package/components/EmberPageView.vue +39 -0
  278. package/components/EtcdInfoBanner.vue +76 -0
  279. package/components/ExplorerMembers.vue +453 -0
  280. package/components/ExplorerProjectsNamespaces.vue +654 -0
  281. package/components/ExtensionPanel.vue +42 -0
  282. package/components/FileDiff.vue +184 -0
  283. package/components/FixedBanner.vue +284 -0
  284. package/components/Flag.vue +83 -0
  285. package/components/Glance.vue +79 -0
  286. package/components/GlobalRoleBindings.vue +429 -0
  287. package/components/GradientBox.vue +82 -0
  288. package/components/GrafanaDashboard.vue +321 -0
  289. package/components/GroupPanel.vue +57 -0
  290. package/components/GrowlManager.vue +215 -0
  291. package/components/HardwareResourceGauge.vue +206 -0
  292. package/components/HarvesterServiceAddOnConfig.vue +207 -0
  293. package/components/IconMessage.vue +101 -0
  294. package/components/IconOrSvg.vue +184 -0
  295. package/components/Import.vue +260 -0
  296. package/components/Inactivity.vue +236 -0
  297. package/components/IndentedPanel.vue +26 -0
  298. package/components/InfoBox.vue +84 -0
  299. package/components/InputOrDisplay.vue +91 -0
  300. package/components/KeyValueView.vue +283 -0
  301. package/components/LabelValue.vue +61 -0
  302. package/components/LandingPagePreference.vue +154 -0
  303. package/components/LazyImage.vue +70 -0
  304. package/components/Loading.vue +85 -0
  305. package/components/LocaleSelector.vue +121 -0
  306. package/components/LogItem.vue +69 -0
  307. package/components/Markdown.vue +138 -0
  308. package/components/MessageLink.vue +79 -0
  309. package/components/ModalManager.vue +55 -0
  310. package/components/ModalWithCard.vue +147 -0
  311. package/components/MoveModal.vue +167 -0
  312. package/components/PaginatedResourceTable.vue +133 -0
  313. package/components/PercentageBar.vue +127 -0
  314. package/components/PodSecurityAdmission.vue +306 -0
  315. package/components/ProgressBarMulti.vue +173 -0
  316. package/components/PromptChangePassword.vue +123 -0
  317. package/components/PromptModal.vue +122 -0
  318. package/components/PromptRemove.vue +491 -0
  319. package/components/PromptRestore.vue +328 -0
  320. package/components/Questions/Array.vue +38 -0
  321. package/components/Questions/Boolean.vue +37 -0
  322. package/components/Questions/CloudCredential.vue +54 -0
  323. package/components/Questions/Enum.vue +53 -0
  324. package/components/Questions/Float.vue +41 -0
  325. package/components/Questions/Int.vue +41 -0
  326. package/components/Questions/Question.js +145 -0
  327. package/components/Questions/QuestionMap.vue +45 -0
  328. package/components/Questions/Radio.vue +35 -0
  329. package/components/Questions/Reference.vue +167 -0
  330. package/components/Questions/String.vue +51 -0
  331. package/components/Questions/Yaml.vue +48 -0
  332. package/components/Questions/__tests__/Boolean.test.ts +125 -0
  333. package/components/Questions/__tests__/Float.test.ts +125 -0
  334. package/components/Questions/__tests__/Int.test.ts +125 -0
  335. package/components/Questions/__tests__/String.test.ts +125 -0
  336. package/components/Questions/__tests__/Yaml.test.ts +125 -0
  337. package/components/Questions/__tests__/utils/questions-defaults.ts +20 -0
  338. package/components/Questions/index.vue +522 -0
  339. package/components/Random.vue +100 -0
  340. package/components/RelatedResources.vue +187 -0
  341. package/components/ResourceCancelModal.vue +128 -0
  342. package/components/ResourceDetail/Masthead.vue +838 -0
  343. package/components/ResourceDetail/__tests__/Masthead.test.ts +65 -0
  344. package/components/ResourceDetail/index.vue +572 -0
  345. package/components/ResourceList/Masthead.vue +311 -0
  346. package/components/ResourceList/ResourceLoadingIndicator.vue +137 -0
  347. package/components/ResourceList/index.vue +307 -0
  348. package/components/ResourceList/resource-list.config.js +7 -0
  349. package/components/ResourceSummary.vue +173 -0
  350. package/components/ResourceTable.vue +708 -0
  351. package/components/ResourceYaml.vue +403 -0
  352. package/components/RoleBindings.vue +470 -0
  353. package/components/SelectIconGrid.vue +414 -0
  354. package/components/Setting.vue +115 -0
  355. package/components/SideNav.vue +589 -0
  356. package/components/SimpleBox.vue +121 -0
  357. package/components/SingleClusterInfo.vue +199 -0
  358. package/components/SlideInPanelManager.vue +126 -0
  359. package/components/SortableTable/THead.vue +555 -0
  360. package/components/SortableTable/actions.js +153 -0
  361. package/components/SortableTable/advanced-filtering.js +272 -0
  362. package/components/SortableTable/debug.js +117 -0
  363. package/components/SortableTable/filtering.js +290 -0
  364. package/components/SortableTable/grouping.js +48 -0
  365. package/components/SortableTable/index.vue +2604 -0
  366. package/components/SortableTable/paging.js +155 -0
  367. package/components/SortableTable/selection.js +629 -0
  368. package/components/SortableTable/sortable-config.ts +4 -0
  369. package/components/SortableTable/sorting.js +129 -0
  370. package/components/StatusBadge.vue +77 -0
  371. package/components/StatusTable.vue +61 -0
  372. package/components/TabTitle.vue +78 -0
  373. package/components/Tabbed/Tab.vue +129 -0
  374. package/components/Tabbed/index.vue +587 -0
  375. package/components/TableDataUserIcon.vue +47 -0
  376. package/components/TableSparkLine.vue +108 -0
  377. package/components/Tag.vue +19 -0
  378. package/components/Tip.vue +43 -0
  379. package/components/TypeDescription.vue +65 -0
  380. package/components/Wizard.vue +704 -0
  381. package/components/YamlEditor.vue +296 -0
  382. package/components/__tests__/AppModal.test.ts +106 -0
  383. package/components/__tests__/ApplicationCard.test.ts +27 -0
  384. package/components/__tests__/AsyncButton.test.ts +148 -0
  385. package/components/__tests__/BackLink.test.ts +33 -0
  386. package/components/__tests__/ButtonGroup.test.ts +121 -0
  387. package/components/__tests__/ButtonMultiAction.test.ts +31 -0
  388. package/components/__tests__/Carousel.test.ts +72 -0
  389. package/components/__tests__/Certificates.test.ts +31 -0
  390. package/components/__tests__/ClusterBadge.test.ts +32 -0
  391. package/components/__tests__/CodeMirror.test.ts +93 -0
  392. package/components/__tests__/Collapse.test.ts +44 -0
  393. package/components/__tests__/CollapsibleCard.test.ts +64 -0
  394. package/components/__tests__/ConsumptionGauge.test.ts +88 -0
  395. package/components/__tests__/ContainerResourceLimit.test.ts +35 -0
  396. package/components/__tests__/CopyCode.test.ts +16 -0
  397. package/components/__tests__/CruResource.test.ts +155 -0
  398. package/components/__tests__/EtcdInfoBanner.test.ts +39 -0
  399. package/components/__tests__/FixedBanner.test.ts +114 -0
  400. package/components/__tests__/GrowlManager.test.ts +146 -0
  401. package/components/__tests__/ModalManager.spec.ts +176 -0
  402. package/components/__tests__/NamespaceFilter.test.ts +247 -0
  403. package/components/__tests__/PercentageBar.test.ts +32 -0
  404. package/components/__tests__/PodSecurityAdmission.test.ts +440 -0
  405. package/components/__tests__/ProjectRow.test.ts +59 -0
  406. package/components/__tests__/PromptRestore.test.ts +139 -0
  407. package/components/__tests__/SimpleBox.spec.ts +28 -0
  408. package/components/__tests__/SlideInPanelManager.spec.ts +166 -0
  409. package/components/__tests__/TabTitle.test.ts +136 -0
  410. package/components/auth/AllowedPrincipals.vue +122 -0
  411. package/components/auth/AuthBanner.vue +104 -0
  412. package/components/auth/AzureWarning.vue +77 -0
  413. package/components/auth/Principal.vue +219 -0
  414. package/components/auth/RoleDetailEdit.vue +808 -0
  415. package/components/auth/SelectPrincipal.vue +260 -0
  416. package/components/auth/__tests__/Principal.test.ts +40 -0
  417. package/components/auth/__tests__/RoleDetailEdit.test.ts +84 -0
  418. package/components/auth/login/github.vue +23 -0
  419. package/components/auth/login/ldap.vue +106 -0
  420. package/components/auth/login/oauth.vue +26 -0
  421. package/components/auth/login/oidc.vue +32 -0
  422. package/components/auth/login/saml.vue +39 -0
  423. package/components/cards/ApplicationCard.vue +145 -0
  424. package/components/fleet/FleetBundleResources.vue +86 -0
  425. package/components/fleet/FleetBundles.vue +136 -0
  426. package/components/fleet/FleetClusters.vue +208 -0
  427. package/components/fleet/FleetIntro.vue +65 -0
  428. package/components/fleet/FleetNoWorkspaces.vue +62 -0
  429. package/components/fleet/FleetRepos.vue +184 -0
  430. package/components/fleet/FleetResources.vue +83 -0
  431. package/components/fleet/FleetStatus.vue +301 -0
  432. package/components/fleet/FleetSummary.vue +210 -0
  433. package/components/fleet/ForceDirectedTreeChart/chartIcons.js +17 -0
  434. package/components/fleet/ForceDirectedTreeChart/index.vue +565 -0
  435. package/components/fleet/ResourcesSummary.vue +93 -0
  436. package/components/fleet/__tests__/FleetSummary.test.ts +362 -0
  437. package/components/form/ArrayList.vue +456 -0
  438. package/components/form/ArrayListGrouped.vue +149 -0
  439. package/components/form/ArrayListSelect.vue +103 -0
  440. package/components/form/BannerSettings.vue +220 -0
  441. package/components/form/ChangePassword.vue +461 -0
  442. package/components/form/ClusterAppearance.vue +132 -0
  443. package/components/form/ColorInput.vue +200 -0
  444. package/components/form/Command.vue +204 -0
  445. package/components/form/Conditions.vue +93 -0
  446. package/components/form/EnvVars.vue +162 -0
  447. package/components/form/Error.vue +66 -0
  448. package/components/form/FileImageSelector.vue +140 -0
  449. package/components/form/FileSelector.vue +169 -0
  450. package/components/form/Footer.vue +119 -0
  451. package/components/form/GitPicker.vue +590 -0
  452. package/components/form/HealthCheck.vue +86 -0
  453. package/components/form/HookOption.vue +253 -0
  454. package/components/form/InputWithSelect.vue +330 -0
  455. package/components/form/KeyValue.vue +991 -0
  456. package/components/form/LabeledSelect.vue +719 -0
  457. package/components/form/Labels.vue +154 -0
  458. package/components/form/LifecycleHooks.vue +87 -0
  459. package/components/form/MatchExpressions.vue +471 -0
  460. package/components/form/Members/ClusterMembershipEditor.vue +61 -0
  461. package/components/form/Members/ClusterPermissionsEditor.vue +314 -0
  462. package/components/form/Members/MembershipEditor.vue +230 -0
  463. package/components/form/Members/ProjectMembershipEditor.vue +63 -0
  464. package/components/form/Members/__tests__/MembershipEditor.test.ts +62 -0
  465. package/components/form/NameNsDescription.vue +601 -0
  466. package/components/form/Networking.vue +281 -0
  467. package/components/form/NodeAffinity.vue +258 -0
  468. package/components/form/NodeScheduling.vue +212 -0
  469. package/components/form/NotificationSettings.vue +71 -0
  470. package/components/form/Password.vue +191 -0
  471. package/components/form/PlusMinus.vue +109 -0
  472. package/components/form/PodAffinity.vue +496 -0
  473. package/components/form/Ports.vue +310 -0
  474. package/components/form/Probe.vue +376 -0
  475. package/components/form/ProjectMemberEditor.vue +342 -0
  476. package/components/form/ResourceLabeledSelect.vue +154 -0
  477. package/components/form/ResourceQuota/Namespace.vue +117 -0
  478. package/components/form/ResourceQuota/NamespaceRow.vue +220 -0
  479. package/components/form/ResourceQuota/Project.vue +107 -0
  480. package/components/form/ResourceQuota/ProjectRow.vue +115 -0
  481. package/components/form/ResourceQuota/shared.js +147 -0
  482. package/components/form/ResourceSelector.vue +144 -0
  483. package/components/form/ResourceTabs/index.vue +292 -0
  484. package/components/form/RuleSelector.vue +184 -0
  485. package/components/form/SSHKnownHosts/KnownHostsEditDialog.vue +196 -0
  486. package/components/form/SSHKnownHosts/__tests__/KnownHostsEditDialog.test.ts +115 -0
  487. package/components/form/SSHKnownHosts/index.vue +115 -0
  488. package/components/form/SchedulingCustomization.vue +85 -0
  489. package/components/form/SecretSelector.vue +269 -0
  490. package/components/form/Security.vue +245 -0
  491. package/components/form/Select.vue +407 -0
  492. package/components/form/SelectOrCreateAuthSecret.vue +693 -0
  493. package/components/form/ServiceNameSelect.vue +168 -0
  494. package/components/form/ServicePorts.vue +340 -0
  495. package/components/form/ShellInput.vue +95 -0
  496. package/components/form/SimpleSecretSelector.vue +278 -0
  497. package/components/form/Taints.vue +98 -0
  498. package/components/form/Tolerations.vue +319 -0
  499. package/components/form/UnitInput.vue +257 -0
  500. package/components/form/ValueFromResource.vue +407 -0
  501. package/components/form/WorkloadPorts.vue +514 -0
  502. package/components/form/__tests__/ArrayList.test.ts +127 -0
  503. package/components/form/__tests__/ArrayListGrouped.test.ts +41 -0
  504. package/components/form/__tests__/BannerSettings.test.ts +54 -0
  505. package/components/form/__tests__/ColorInput.test.ts +27 -0
  506. package/components/form/__tests__/Command.test.ts +64 -0
  507. package/components/form/__tests__/Error.test.ts +56 -0
  508. package/components/form/__tests__/FileImageSelector.test.ts +42 -0
  509. package/components/form/__tests__/FileSelector.test.ts +76 -0
  510. package/components/form/__tests__/HookOption.test.ts +28 -0
  511. package/components/form/__tests__/InputWithSelect.test.ts +42 -0
  512. package/components/form/__tests__/KeyValue.test.ts +179 -0
  513. package/components/form/__tests__/LabeledSelect.test.ts +217 -0
  514. package/components/form/__tests__/MatchExpressions.test.ts +78 -0
  515. package/components/form/__tests__/NameNsDescription.test.ts +173 -0
  516. package/components/form/__tests__/NodeAffinity.test.ts +39 -0
  517. package/components/form/__tests__/NodeScheduling.test.ts +44 -0
  518. package/components/form/__tests__/PodAffinity.test.ts +47 -0
  519. package/components/form/__tests__/Probe.test.ts +78 -0
  520. package/components/form/__tests__/SSHKnownHosts.test.ts +70 -0
  521. package/components/form/__tests__/Security.test.ts +55 -0
  522. package/components/form/__tests__/Select.test.ts +67 -0
  523. package/components/form/__tests__/SelectOrCreateAuthSecret.test.ts +34 -0
  524. package/components/form/__tests__/ServiceNameSelect.test.ts +42 -0
  525. package/components/form/__tests__/Taints.test.ts +71 -0
  526. package/components/form/__tests__/UnitInput.test.ts +255 -0
  527. package/components/form/labeled-select-utils/labeled-select-pagination.ts +151 -0
  528. package/components/form/labeled-select-utils/labeled-select.utils.ts +122 -0
  529. package/components/formatter/AppSummaryGraph.vue +154 -0
  530. package/components/formatter/BadgeStateFormatter.vue +66 -0
  531. package/components/formatter/Capitalize.vue +28 -0
  532. package/components/formatter/Checked.vue +31 -0
  533. package/components/formatter/CloudCredExpired.vue +69 -0
  534. package/components/formatter/CloudCredPublicData.vue +30 -0
  535. package/components/formatter/ClusterLink.vue +117 -0
  536. package/components/formatter/ClusterProvider.vue +38 -0
  537. package/components/formatter/CopyToClipboard.vue +18 -0
  538. package/components/formatter/Date.vue +74 -0
  539. package/components/formatter/DelayedValue.vue +46 -0
  540. package/components/formatter/Endpoints.vue +106 -0
  541. package/components/formatter/ExternalLink.vue +11 -0
  542. package/components/formatter/FleetClusterSummaryGraph.vue +27 -0
  543. package/components/formatter/FleetSummaryGraph.vue +122 -0
  544. package/components/formatter/IconIsDefault.vue +34 -0
  545. package/components/formatter/IconText.vue +49 -0
  546. package/components/formatter/ImageName.vue +23 -0
  547. package/components/formatter/ImagePercentageBar.vue +86 -0
  548. package/components/formatter/IngressFullPath.vue +22 -0
  549. package/components/formatter/IngressTarget.vue +96 -0
  550. package/components/formatter/InternalExternalIP.vue +64 -0
  551. package/components/formatter/InvolvedObjectLink.vue +54 -0
  552. package/components/formatter/KeyValue.vue +78 -0
  553. package/components/formatter/Link.vue +189 -0
  554. package/components/formatter/LinkDetail.vue +58 -0
  555. package/components/formatter/LinkDetailImage.vue +31 -0
  556. package/components/formatter/LinkName.vue +66 -0
  557. package/components/formatter/List.vue +22 -0
  558. package/components/formatter/ListLink.vue +37 -0
  559. package/components/formatter/ListLinkDetail.vue +30 -0
  560. package/components/formatter/LiveDate.vue +167 -0
  561. package/components/formatter/LiveDuration.vue +78 -0
  562. package/components/formatter/LiveExpiryBadgeState.vue +79 -0
  563. package/components/formatter/LiveExpiryDate.vue +87 -0
  564. package/components/formatter/LivePodRestarts.vue +50 -0
  565. package/components/formatter/MachineSummaryGraph.vue +108 -0
  566. package/components/formatter/Number.vue +34 -0
  567. package/components/formatter/Percentage.vue +25 -0
  568. package/components/formatter/PercentageBar.vue +41 -0
  569. package/components/formatter/PodImages.vue +72 -0
  570. package/components/formatter/PodsUsage.vue +29 -0
  571. package/components/formatter/Principal.vue +22 -0
  572. package/components/formatter/PrincipalGroupBindings.vue +59 -0
  573. package/components/formatter/QualityText.vue +21 -0
  574. package/components/formatter/RKETemplateName.vue +37 -0
  575. package/components/formatter/ReceiverIcons.vue +132 -0
  576. package/components/formatter/RunBookLink.vue +20 -0
  577. package/components/formatter/Scale.vue +143 -0
  578. package/components/formatter/ScanResult.vue +33 -0
  579. package/components/formatter/SecretData.vue +68 -0
  580. package/components/formatter/ServiceTargets.vue +121 -0
  581. package/components/formatter/ServiceType.vue +54 -0
  582. package/components/formatter/Shortened.vue +55 -0
  583. package/components/formatter/Si.vue +46 -0
  584. package/components/formatter/Translate.vue +32 -0
  585. package/components/formatter/VerticalScroll.vue +17 -0
  586. package/components/formatter/VirtualServiceGateways.vue +111 -0
  587. package/components/formatter/WorkloadDetailEndpoints.vue +107 -0
  588. package/components/formatter/WorkloadHealthScale.vue +339 -0
  589. package/components/formatter/__tests__/Checked.test.ts +19 -0
  590. package/components/formatter/__tests__/ClusterLink.test.ts +101 -0
  591. package/components/formatter/__tests__/Date.test.ts +60 -0
  592. package/components/formatter/__tests__/LinkDetail.test.ts +72 -0
  593. package/components/formatter/__tests__/LiveDate.test.ts +90 -0
  594. package/components/formatter/__tests__/PodsUsage.test.ts +55 -0
  595. package/components/formatter/__tests__/Si.test.ts +35 -0
  596. package/components/formatter/__tests__/WorkloadDetailEndpoints.test.ts +81 -0
  597. package/components/graph/AspectPreserver.vue +79 -0
  598. package/components/graph/Bar.vue +81 -0
  599. package/components/graph/Circle.vue +164 -0
  600. package/components/graph/HalfCircle.vue +46 -0
  601. package/components/graph/LinePlot.vue +189 -0
  602. package/components/graph/ProgressArc.vue +94 -0
  603. package/components/nav/Favorite.vue +60 -0
  604. package/components/nav/GlobalLoading.vue +25 -0
  605. package/components/nav/Group.vue +496 -0
  606. package/components/nav/Header.vue +1182 -0
  607. package/components/nav/HeaderPageActionMenu.vue +22 -0
  608. package/components/nav/Jump.vue +135 -0
  609. package/components/nav/NamespaceFilter.vue +1165 -0
  610. package/components/nav/Pinned.vue +52 -0
  611. package/components/nav/TopLevelMenu.helper.ts +562 -0
  612. package/components/nav/TopLevelMenu.vue +1590 -0
  613. package/components/nav/Type.vue +289 -0
  614. package/components/nav/WindowManager/ChartReadme.vue +48 -0
  615. package/components/nav/WindowManager/ContainerLogs.vue +877 -0
  616. package/components/nav/WindowManager/ContainerShell.vue +585 -0
  617. package/components/nav/WindowManager/KubectlShell.vue +42 -0
  618. package/components/nav/WindowManager/MachineSsh.vue +21 -0
  619. package/components/nav/WindowManager/Window.vue +105 -0
  620. package/components/nav/WindowManager/__tests__/ContainerLogs.test.ts +197 -0
  621. package/components/nav/WindowManager/__tests__/ContainerShell.test.ts +571 -0
  622. package/components/nav/WindowManager/index.vue +587 -0
  623. package/components/nav/WorkspaceSwitcher.vue +190 -0
  624. package/components/nav/__tests__/TopLevelMenu.test.ts +558 -0
  625. package/components/nav/__tests__/Type.test.ts +491 -0
  626. package/components/templates/blank.vue +23 -0
  627. package/components/templates/default.vue +271 -0
  628. package/components/templates/home.vue +135 -0
  629. package/components/templates/plain.vue +143 -0
  630. package/components/templates/standalone.vue +9 -0
  631. package/components/templates/unauthenticated.vue +26 -0
  632. package/components/user.retention/user-retention-header.vue +34 -0
  633. package/composables/focusTrap.ts +76 -0
  634. package/composables/useClickOutside.ts +81 -0
  635. package/composables/useCompactInput.test.ts +36 -0
  636. package/composables/useCompactInput.ts +20 -0
  637. package/composables/useI18n.ts +26 -0
  638. package/composables/useLabeledFormElement.test.ts +135 -0
  639. package/composables/useLabeledFormElement.ts +153 -0
  640. package/composables/useRuntimeFlag.ts +29 -0
  641. package/composables/useUserRetentionValidation.test.ts +178 -0
  642. package/composables/useUserRetentionValidation.ts +201 -0
  643. package/config/__test__/home-links.test.ts +57 -0
  644. package/config/cookies.js +4 -0
  645. package/config/elemental-types.js +9 -0
  646. package/config/features.js +6 -0
  647. package/config/harvester-manager-types.js +3 -0
  648. package/config/home-links.js +209 -0
  649. package/config/labels-annotations.js +192 -0
  650. package/config/local-storage.js +6 -0
  651. package/config/page-actions.js +4 -0
  652. package/config/pagination-table-headers.js +80 -0
  653. package/config/persistentVolume.ts +108 -0
  654. package/config/pod-security-admission.ts +82 -0
  655. package/config/private-label.js +99 -0
  656. package/config/product/apps.js +148 -0
  657. package/config/product/auth.js +218 -0
  658. package/config/product/backup.js +61 -0
  659. package/config/product/cis.js +158 -0
  660. package/config/product/explorer.js +632 -0
  661. package/config/product/fleet.js +100 -0
  662. package/config/product/gatekeeper.js +119 -0
  663. package/config/product/istio.js +89 -0
  664. package/config/product/legacy.js +62 -0
  665. package/config/product/logging.js +377 -0
  666. package/config/product/longhorn.js +49 -0
  667. package/config/product/manager.js +217 -0
  668. package/config/product/monitoring.js +287 -0
  669. package/config/product/navlinks.js +32 -0
  670. package/config/product/neuvector.js +30 -0
  671. package/config/product/settings.js +161 -0
  672. package/config/product/uiplugins.js +18 -0
  673. package/config/query-params.js +79 -0
  674. package/config/roles.ts +409 -0
  675. package/config/router/index.js +26 -0
  676. package/config/router/navigation-guards/attempt-first-login.js +73 -0
  677. package/config/router/navigation-guards/authentication.js +64 -0
  678. package/config/router/navigation-guards/clusters.js +132 -0
  679. package/config/router/navigation-guards/i18n.js +13 -0
  680. package/config/router/navigation-guards/index.js +23 -0
  681. package/config/router/navigation-guards/install-redirect.js +95 -0
  682. package/config/router/navigation-guards/load-initial-settings.js +15 -0
  683. package/config/router/navigation-guards/page-title.js +12 -0
  684. package/config/router/navigation-guards/products.js +15 -0
  685. package/config/router/navigation-guards/record-last-route.js +24 -0
  686. package/config/router/navigation-guards/runtime-extension-route.js +31 -0
  687. package/config/router/navigation-guards/server-upgrade-growl.js +19 -0
  688. package/config/router/routes.js +496 -0
  689. package/config/schema.js +32 -0
  690. package/config/secret.js +14 -0
  691. package/config/settings.ts +258 -0
  692. package/config/store.js +188 -0
  693. package/config/system-namespaces.js +18 -0
  694. package/config/table-headers.js +1116 -0
  695. package/config/types.js +353 -0
  696. package/config/uiplugins.js +276 -0
  697. package/config/version.js +33 -0
  698. package/config/workload.ts +1 -0
  699. package/core/plugin-helpers.ts +220 -0
  700. package/core/plugin-routes.ts +34 -0
  701. package/core/plugin.ts +367 -0
  702. package/core/plugins-loader.js +31 -0
  703. package/core/plugins.js +471 -0
  704. package/core/types-provisioning.ts +361 -0
  705. package/core/types.ts +682 -0
  706. package/detail/__tests__/autoscaling.horizontalpodautoscaler.test.ts +196 -0
  707. package/detail/__tests__/provisioning.cattle.io.cluster.test.ts +119 -0
  708. package/detail/__tests__/service.test.ts +62 -0
  709. package/detail/autoscaling.horizontalpodautoscaler/index.vue +264 -0
  710. package/detail/catalog.cattle.io.app.vue +181 -0
  711. package/detail/catalog.cattle.io.clusterrepo.vue +35 -0
  712. package/detail/cis.cattle.io.clusterscan.vue +372 -0
  713. package/detail/configmap.vue +81 -0
  714. package/detail/constraints.gatekeeper.sh.constraint.vue +66 -0
  715. package/detail/fleet.cattle.io.bundle.vue +63 -0
  716. package/detail/fleet.cattle.io.cluster.vue +99 -0
  717. package/detail/fleet.cattle.io.clustergroup.vue +76 -0
  718. package/detail/fleet.cattle.io.gitrepo.vue +148 -0
  719. package/detail/harvesterhci.io.management.cluster.vue +104 -0
  720. package/detail/helm.cattle.io.projecthelmchart.vue +249 -0
  721. package/detail/management.cattle.io.fleetworkspace.vue +100 -0
  722. package/detail/management.cattle.io.globalrole.vue +8 -0
  723. package/detail/management.cattle.io.roletemplate.vue +11 -0
  724. package/detail/management.cattle.io.user.vue +312 -0
  725. package/detail/namespace.vue +269 -0
  726. package/detail/networking.k8s.io.ingress.vue +74 -0
  727. package/detail/node.vue +330 -0
  728. package/detail/pod.vue +255 -0
  729. package/detail/provisioning.cattle.io.cluster.vue +1200 -0
  730. package/detail/rbac.authorization.k8s.io.clusterrole.vue +8 -0
  731. package/detail/rbac.authorization.k8s.io.role.vue +8 -0
  732. package/detail/secret.vue +313 -0
  733. package/detail/service.vue +202 -0
  734. package/detail/workload/index.vue +541 -0
  735. package/dialog/AddClusterMemberDialog.vue +86 -0
  736. package/dialog/AddCustomBadgeDialog.vue +466 -0
  737. package/dialog/AddProjectMemberDialog.vue +181 -0
  738. package/dialog/AddonConfigConfirmationDialog.vue +101 -0
  739. package/dialog/DeactivateDriverDialog.vue +139 -0
  740. package/dialog/DiagnosticTimingsDialog.vue +141 -0
  741. package/dialog/DrainNode.vue +247 -0
  742. package/dialog/ForceMachineRemoveDialog.vue +134 -0
  743. package/dialog/GenericPrompt.vue +135 -0
  744. package/dialog/GitRepoForceUpdateDialog.vue +132 -0
  745. package/dialog/RollbackWorkloadDialog.vue +308 -0
  746. package/dialog/RotateCertificatesDialog.vue +205 -0
  747. package/dialog/RotateEncryptionKeyDialog.vue +191 -0
  748. package/dialog/SaveAsRKETemplateDialog.vue +139 -0
  749. package/dialog/ScaleMachineDownDialog.vue +156 -0
  750. package/dialog/ScalePoolDownDialog.vue +121 -0
  751. package/dialog/SloDialog.vue +97 -0
  752. package/directives/clean-html.js +15 -0
  753. package/directives/clean-tooltip.js +32 -0
  754. package/directives/focus.js +47 -0
  755. package/directives/int-number.js +21 -0
  756. package/directives/positive-int-number.js +19 -0
  757. package/directives/strip-html-aria-label.js +19 -0
  758. package/directives/trim-whitespace.js +19 -0
  759. package/edit/__tests__/cis.cattle.io.clusterscan.test.ts +87 -0
  760. package/edit/__tests__/fleet.cattle.io.gitrepo.test.ts +246 -0
  761. package/edit/__tests__/kontainerDriver.test.ts +110 -0
  762. package/edit/__tests__/management.cattle.io.clusterroletemplatebinding.test.ts +71 -0
  763. package/edit/__tests__/management.cattle.io.setting.test.ts +109 -0
  764. package/edit/__tests__/monitoring.coreos.com.prometheusrule.test.ts +70 -0
  765. package/edit/__tests__/namespace.test.ts +49 -0
  766. package/edit/__tests__/nodeDriver.test.ts +89 -0
  767. package/edit/__tests__/service.test.ts +100 -0
  768. package/edit/__tests__/ui.cattle.io.navlink.test.ts +114 -0
  769. package/edit/auth/AuthProviderWarningBanners.vue +34 -0
  770. package/edit/auth/__tests__/AuthProviderWarningBanners.test.ts +19 -0
  771. package/edit/auth/__tests__/azuread.test.ts +238 -0
  772. package/edit/auth/__tests__/oidc.test.ts +225 -0
  773. package/edit/auth/azuread.vue +538 -0
  774. package/edit/auth/github.vue +269 -0
  775. package/edit/auth/googleoauth.vue +260 -0
  776. package/edit/auth/ldap/__tests__/config.test.ts +44 -0
  777. package/edit/auth/ldap/config.vue +379 -0
  778. package/edit/auth/ldap/index.vue +156 -0
  779. package/edit/auth/oidc.vue +445 -0
  780. package/edit/auth/saml.vue +432 -0
  781. package/edit/autoscaling.horizontalpodautoscaler/external-metric.vue +58 -0
  782. package/edit/autoscaling.horizontalpodautoscaler/hpa-scaling-rule.vue +130 -0
  783. package/edit/autoscaling.horizontalpodautoscaler/index.vue +343 -0
  784. package/edit/autoscaling.horizontalpodautoscaler/metric-identifier.vue +82 -0
  785. package/edit/autoscaling.horizontalpodautoscaler/metric-object-reference.vue +60 -0
  786. package/edit/autoscaling.horizontalpodautoscaler/metric-target.vue +220 -0
  787. package/edit/autoscaling.horizontalpodautoscaler/metrics-row.vue +198 -0
  788. package/edit/autoscaling.horizontalpodautoscaler/object-metric.vue +71 -0
  789. package/edit/autoscaling.horizontalpodautoscaler/pod-metric.vue +58 -0
  790. package/edit/autoscaling.horizontalpodautoscaler/resource-metric.vue +65 -0
  791. package/edit/catalog.cattle.io.clusterrepo.vue +336 -0
  792. package/edit/cis.cattle.io.clusterscan.vue +377 -0
  793. package/edit/cis.cattle.io.clusterscanbenchmark.vue +153 -0
  794. package/edit/cis.cattle.io.clusterscanprofile.vue +150 -0
  795. package/edit/cloudcredential.vue +334 -0
  796. package/edit/configmap.vue +163 -0
  797. package/edit/constraints.gatekeeper.sh.constraint/MatchKinds.vue +72 -0
  798. package/edit/constraints.gatekeeper.sh.constraint/NamespaceList.vue +78 -0
  799. package/edit/constraints.gatekeeper.sh.constraint/Scope.vue +52 -0
  800. package/edit/constraints.gatekeeper.sh.constraint/index.vue +368 -0
  801. package/edit/fleet.cattle.io.cluster.vue +105 -0
  802. package/edit/fleet.cattle.io.clustergroup.vue +189 -0
  803. package/edit/fleet.cattle.io.gitrepo.vue +912 -0
  804. package/edit/group.principal.vue +65 -0
  805. package/edit/helm.cattle.io.projecthelmchart.vue +163 -0
  806. package/edit/k8s.cni.cncf.io.networkattachmentdefinition.vue +94 -0
  807. package/edit/kontainerDriver.vue +67 -0
  808. package/edit/logging-flow/Match.vue +142 -0
  809. package/edit/logging-flow/index.vue +549 -0
  810. package/edit/logging.banzaicloud.io.clusterflow.vue +7 -0
  811. package/edit/logging.banzaicloud.io.clusteroutput.vue +12 -0
  812. package/edit/logging.banzaicloud.io.flow.vue +7 -0
  813. package/edit/logging.banzaicloud.io.output/__tests__/logging.banzaicloud.io.output.test.ts +310 -0
  814. package/edit/logging.banzaicloud.io.output/index.vue +386 -0
  815. package/edit/logging.banzaicloud.io.output/providers/__tests__/loki.test.ts +13 -0
  816. package/edit/logging.banzaicloud.io.output/providers/awsElasticsearch.vue +77 -0
  817. package/edit/logging.banzaicloud.io.output/providers/azurestorage.vue +94 -0
  818. package/edit/logging.banzaicloud.io.output/providers/cloudwatch.vue +112 -0
  819. package/edit/logging.banzaicloud.io.output/providers/datadog.vue +95 -0
  820. package/edit/logging.banzaicloud.io.output/providers/elasticsearch.vue +234 -0
  821. package/edit/logging.banzaicloud.io.output/providers/file.vue +47 -0
  822. package/edit/logging.banzaicloud.io.output/providers/forward.vue +152 -0
  823. package/edit/logging.banzaicloud.io.output/providers/gcs.vue +102 -0
  824. package/edit/logging.banzaicloud.io.output/providers/gelf.vue +167 -0
  825. package/edit/logging.banzaicloud.io.output/providers/kafka.vue +166 -0
  826. package/edit/logging.banzaicloud.io.output/providers/kinesisStream.vue +76 -0
  827. package/edit/logging.banzaicloud.io.output/providers/logdna.vue +72 -0
  828. package/edit/logging.banzaicloud.io.output/providers/logz.vue +107 -0
  829. package/edit/logging.banzaicloud.io.output/providers/loki.vue +172 -0
  830. package/edit/logging.banzaicloud.io.output/providers/newrelic.vue +71 -0
  831. package/edit/logging.banzaicloud.io.output/providers/opensearch.vue +225 -0
  832. package/edit/logging.banzaicloud.io.output/providers/redis.vue +142 -0
  833. package/edit/logging.banzaicloud.io.output/providers/s3.vue +122 -0
  834. package/edit/logging.banzaicloud.io.output/providers/splunkHec.vue +180 -0
  835. package/edit/logging.banzaicloud.io.output/providers/sumologic.vue +59 -0
  836. package/edit/logging.banzaicloud.io.output/providers/syslog.vue +234 -0
  837. package/edit/logging.banzaicloud.io.output/providers/utils.js +27 -0
  838. package/edit/management.cattle.io.clusterroletemplatebinding.vue +71 -0
  839. package/edit/management.cattle.io.fleetworkspace.vue +245 -0
  840. package/edit/management.cattle.io.globalrole.vue +8 -0
  841. package/edit/management.cattle.io.node.vue +72 -0
  842. package/edit/management.cattle.io.podsecurityadmissionconfigurationtemplate.vue +111 -0
  843. package/edit/management.cattle.io.project.vue +255 -0
  844. package/edit/management.cattle.io.projectroletemplatebinding.vue +96 -0
  845. package/edit/management.cattle.io.roletemplate.vue +11 -0
  846. package/edit/management.cattle.io.setting.vue +264 -0
  847. package/edit/management.cattle.io.user.vue +289 -0
  848. package/edit/monitoring.coreos.com.alertmanagerconfig/auth.vue +324 -0
  849. package/edit/monitoring.coreos.com.alertmanagerconfig/index.vue +287 -0
  850. package/edit/monitoring.coreos.com.alertmanagerconfig/receiverConfig.vue +423 -0
  851. package/edit/monitoring.coreos.com.alertmanagerconfig/routeConfig.vue +176 -0
  852. package/edit/monitoring.coreos.com.alertmanagerconfig/tls.vue +272 -0
  853. package/edit/monitoring.coreos.com.alertmanagerconfig/types/email.vue +175 -0
  854. package/edit/monitoring.coreos.com.alertmanagerconfig/types/opsgenie.vue +282 -0
  855. package/edit/monitoring.coreos.com.alertmanagerconfig/types/pagerduty.vue +203 -0
  856. package/edit/monitoring.coreos.com.alertmanagerconfig/types/slack.vue +140 -0
  857. package/edit/monitoring.coreos.com.alertmanagerconfig/types/webhook.vue +230 -0
  858. package/edit/monitoring.coreos.com.prometheusrule/AlertingRule.vue +534 -0
  859. package/edit/monitoring.coreos.com.prometheusrule/GroupRules.vue +229 -0
  860. package/edit/monitoring.coreos.com.prometheusrule/RecordingRule.vue +112 -0
  861. package/edit/monitoring.coreos.com.prometheusrule/index.vue +223 -0
  862. package/edit/monitoring.coreos.com.receiver/auth.vue +142 -0
  863. package/edit/monitoring.coreos.com.receiver/index.vue +357 -0
  864. package/edit/monitoring.coreos.com.receiver/tls.vue +72 -0
  865. package/edit/monitoring.coreos.com.receiver/types/__tests__/email.test.ts +57 -0
  866. package/edit/monitoring.coreos.com.receiver/types/email.vue +130 -0
  867. package/edit/monitoring.coreos.com.receiver/types/opsgenie.vue +237 -0
  868. package/edit/monitoring.coreos.com.receiver/types/pagerduty.vue +97 -0
  869. package/edit/monitoring.coreos.com.receiver/types/slack.vue +88 -0
  870. package/edit/monitoring.coreos.com.receiver/types/webhook.add.vue +65 -0
  871. package/edit/monitoring.coreos.com.receiver/types/webhook.banner.vue +28 -0
  872. package/edit/monitoring.coreos.com.receiver/types/webhook.vue +93 -0
  873. package/edit/monitoring.coreos.com.route.vue +237 -0
  874. package/edit/namespace.vue +281 -0
  875. package/edit/networking.istio.io.destinationrule/LoadBalancer.vue +194 -0
  876. package/edit/networking.istio.io.destinationrule/index.vue +237 -0
  877. package/edit/networking.k8s.io.ingress/Certificate.vue +134 -0
  878. package/edit/networking.k8s.io.ingress/Certificates.vue +111 -0
  879. package/edit/networking.k8s.io.ingress/DefaultBackend.vue +145 -0
  880. package/edit/networking.k8s.io.ingress/IngressClass.vue +69 -0
  881. package/edit/networking.k8s.io.ingress/Rule.vue +188 -0
  882. package/edit/networking.k8s.io.ingress/RulePath.vue +224 -0
  883. package/edit/networking.k8s.io.ingress/Rules.vue +155 -0
  884. package/edit/networking.k8s.io.ingress/__tests__/IngressClass.test.ts +58 -0
  885. package/edit/networking.k8s.io.ingress/index.vue +300 -0
  886. package/edit/networking.k8s.io.networkpolicy/PolicyRule.vue +108 -0
  887. package/edit/networking.k8s.io.networkpolicy/PolicyRulePort.vue +50 -0
  888. package/edit/networking.k8s.io.networkpolicy/PolicyRuleTarget.vue +401 -0
  889. package/edit/networking.k8s.io.networkpolicy/PolicyRules.vue +93 -0
  890. package/edit/networking.k8s.io.networkpolicy/__tests__/PolicyRuleTarget.test.ts +180 -0
  891. package/edit/networking.k8s.io.networkpolicy/__tests__/utils/mock.json +158 -0
  892. package/edit/networking.k8s.io.networkpolicy/__tests__/utils/selectors.test.ts +45 -0
  893. package/edit/networking.k8s.io.networkpolicy/index.vue +299 -0
  894. package/edit/node.vue +82 -0
  895. package/edit/nodeDriver.vue +72 -0
  896. package/edit/persistentvolume/__tests__/persistentvolume.test.ts +105 -0
  897. package/edit/persistentvolume/index.vue +380 -0
  898. package/edit/persistentvolume/plugins/awsElasticBlockStore.vue +90 -0
  899. package/edit/persistentvolume/plugins/azureDisk.vue +136 -0
  900. package/edit/persistentvolume/plugins/azureFile.vue +78 -0
  901. package/edit/persistentvolume/plugins/cephfs.vue +109 -0
  902. package/edit/persistentvolume/plugins/cinder.vue +89 -0
  903. package/edit/persistentvolume/plugins/csi.vue +209 -0
  904. package/edit/persistentvolume/plugins/fc.vue +101 -0
  905. package/edit/persistentvolume/plugins/flexVolume.vue +102 -0
  906. package/edit/persistentvolume/plugins/flocker.vue +45 -0
  907. package/edit/persistentvolume/plugins/gcePersistentDisk.vue +90 -0
  908. package/edit/persistentvolume/plugins/glusterfs.vue +70 -0
  909. package/edit/persistentvolume/plugins/hostPath.vue +82 -0
  910. package/edit/persistentvolume/plugins/iscsi.vue +170 -0
  911. package/edit/persistentvolume/plugins/local.vue +37 -0
  912. package/edit/persistentvolume/plugins/longhorn.vue +99 -0
  913. package/edit/persistentvolume/plugins/nfs.vue +70 -0
  914. package/edit/persistentvolume/plugins/photonPersistentDisk.vue +58 -0
  915. package/edit/persistentvolume/plugins/portworxVolume.vue +71 -0
  916. package/edit/persistentvolume/plugins/quobyte.vue +88 -0
  917. package/edit/persistentvolume/plugins/rbd.vue +127 -0
  918. package/edit/persistentvolume/plugins/scaleIO.vue +146 -0
  919. package/edit/persistentvolume/plugins/storageos.vue +98 -0
  920. package/edit/persistentvolume/plugins/vsphereVolume.vue +63 -0
  921. package/edit/persistentvolumeclaim.vue +395 -0
  922. package/edit/pod.vue +27 -0
  923. package/edit/policy.poddisruptionbudget.vue +152 -0
  924. package/edit/provisioning.cattle.io.cluster/AgentEnv.vue +40 -0
  925. package/edit/provisioning.cattle.io.cluster/CustomCommand.vue +306 -0
  926. package/edit/provisioning.cattle.io.cluster/Labels.vue +46 -0
  927. package/edit/provisioning.cattle.io.cluster/SelectCredential.vue +341 -0
  928. package/edit/provisioning.cattle.io.cluster/__tests__/Advanced.test.ts +304 -0
  929. package/edit/provisioning.cattle.io.cluster/__tests__/Basics.test.ts +564 -0
  930. package/edit/provisioning.cattle.io.cluster/__tests__/CustomCommand.test.ts +129 -0
  931. package/edit/provisioning.cattle.io.cluster/__tests__/DirectoryConfig.test.ts +182 -0
  932. package/edit/provisioning.cattle.io.cluster/__tests__/DrainOptions.test.ts +54 -0
  933. package/edit/provisioning.cattle.io.cluster/__tests__/index.test.ts +72 -0
  934. package/edit/provisioning.cattle.io.cluster/__tests__/rke2.test.ts +546 -0
  935. package/edit/provisioning.cattle.io.cluster/__tests__/utils/cluster.ts +391 -0
  936. package/edit/provisioning.cattle.io.cluster/index.vue +733 -0
  937. package/edit/provisioning.cattle.io.cluster/rke2.vue +2538 -0
  938. package/edit/provisioning.cattle.io.cluster/tabs/AddOnAdditionalManifest.vue +49 -0
  939. package/edit/provisioning.cattle.io.cluster/tabs/AddOnConfig.vue +112 -0
  940. package/edit/provisioning.cattle.io.cluster/tabs/Advanced.vue +224 -0
  941. package/edit/provisioning.cattle.io.cluster/tabs/AgentConfiguration.vue +340 -0
  942. package/edit/provisioning.cattle.io.cluster/tabs/Basics.vue +700 -0
  943. package/edit/provisioning.cattle.io.cluster/tabs/DirectoryConfig.vue +219 -0
  944. package/edit/provisioning.cattle.io.cluster/tabs/MachinePool.vue +405 -0
  945. package/edit/provisioning.cattle.io.cluster/tabs/MemberRoles.vue +40 -0
  946. package/edit/provisioning.cattle.io.cluster/tabs/etcd/S3Config.vue +153 -0
  947. package/edit/provisioning.cattle.io.cluster/tabs/etcd/index.vue +138 -0
  948. package/edit/provisioning.cattle.io.cluster/tabs/networking/ACE.vue +73 -0
  949. package/edit/provisioning.cattle.io.cluster/tabs/networking/index.vue +214 -0
  950. package/edit/provisioning.cattle.io.cluster/tabs/registries/RegistryConfigs.vue +211 -0
  951. package/edit/provisioning.cattle.io.cluster/tabs/registries/RegistryMirrors.vue +138 -0
  952. package/edit/provisioning.cattle.io.cluster/tabs/registries/__tests__/RegistryConfigs.test.ts +66 -0
  953. package/edit/provisioning.cattle.io.cluster/tabs/registries/index.vue +149 -0
  954. package/edit/provisioning.cattle.io.cluster/tabs/upgrade/DrainOptions.vue +155 -0
  955. package/edit/provisioning.cattle.io.cluster/tabs/upgrade/index.vue +76 -0
  956. package/edit/rbac.authorization.k8s.io.clusterrole.vue +8 -0
  957. package/edit/rbac.authorization.k8s.io.role.vue +8 -0
  958. package/edit/resources.cattle.io.backup.vue +454 -0
  959. package/edit/resources.cattle.io.restore.vue +326 -0
  960. package/edit/secret/__tests__/ssh.test.ts +79 -0
  961. package/edit/secret/basic.vue +64 -0
  962. package/edit/secret/generic.vue +64 -0
  963. package/edit/secret/index.vue +407 -0
  964. package/edit/secret/registry.vue +145 -0
  965. package/edit/secret/ssh.vue +106 -0
  966. package/edit/secret/tls.vue +94 -0
  967. package/edit/service.vue +546 -0
  968. package/edit/serviceaccount.vue +193 -0
  969. package/edit/storage.k8s.io.storageclass/index.vue +307 -0
  970. package/edit/storage.k8s.io.storageclass/provisioners/custom.vue +25 -0
  971. package/edit/storage.k8s.io.storageclass/provisioners/driver.harvesterhci.io.vue +114 -0
  972. package/edit/storage.k8s.io.storageclass/provisioners/driver.longhorn.io.vue +40 -0
  973. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/aws-ebs.vue +180 -0
  974. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/azure-disk.vue +75 -0
  975. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/azure-file.vue +47 -0
  976. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/cinder.vue +69 -0
  977. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/gce-pd.vue +117 -0
  978. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/glusterfs.vue +99 -0
  979. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/no-provisioner.vue +21 -0
  980. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/portworx-volume.vue +83 -0
  981. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/quobyte.vue +91 -0
  982. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/rbd.vue +117 -0
  983. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/scaleio.vue +116 -0
  984. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/storageos.vue +65 -0
  985. package/edit/storage.k8s.io.storageclass/provisioners/kubernetes.io/vsphere-volume.vue +97 -0
  986. package/edit/token.vue +337 -0
  987. package/edit/ui.cattle.io.navlink.vue +461 -0
  988. package/edit/workload/Job.vue +339 -0
  989. package/edit/workload/Upgrading.vue +372 -0
  990. package/edit/workload/VolumeClaimTemplate.vue +136 -0
  991. package/edit/workload/__tests__/Job.test.ts +71 -0
  992. package/edit/workload/__tests__/Upgrading.test.ts +61 -0
  993. package/edit/workload/__tests__/index.test.ts +103 -0
  994. package/edit/workload/index.vue +677 -0
  995. package/edit/workload/mixins/workload.js +1067 -0
  996. package/edit/workload/storage/ContainerMountPaths.vue +171 -0
  997. package/edit/workload/storage/Mount.vue +157 -0
  998. package/edit/workload/storage/__tests__/Mount.test.ts +102 -0
  999. package/edit/workload/storage/__tests__/Storage.test.ts +106 -0
  1000. package/edit/workload/storage/awsElasticBlockStore.vue +73 -0
  1001. package/edit/workload/storage/azureDisk.vue +104 -0
  1002. package/edit/workload/storage/azureFile.vue +74 -0
  1003. package/edit/workload/storage/csi/driver.longhorn.io.vue +48 -0
  1004. package/edit/workload/storage/csi/index.vue +122 -0
  1005. package/edit/workload/storage/emptyDir.vue +88 -0
  1006. package/edit/workload/storage/ephemeralVolume/index.vue +108 -0
  1007. package/edit/workload/storage/gcePersistentDisk.vue +73 -0
  1008. package/edit/workload/storage/hostPath.vue +115 -0
  1009. package/edit/workload/storage/index.vue +339 -0
  1010. package/edit/workload/storage/nfs.vue +78 -0
  1011. package/edit/workload/storage/persistentVolumeClaim/__tests__/persistentvolumeclaim.test.ts +38 -0
  1012. package/edit/workload/storage/persistentVolumeClaim/index.vue +154 -0
  1013. package/edit/workload/storage/persistentVolumeClaim/persistentvolumeclaim.vue +256 -0
  1014. package/edit/workload/storage/secret.vue +186 -0
  1015. package/edit/workload/storage/vsphereVolume.vue +73 -0
  1016. package/initialize/App.vue +70 -0
  1017. package/initialize/app-extended.js +112 -0
  1018. package/initialize/entry-helpers.js +147 -0
  1019. package/initialize/entry.js +33 -0
  1020. package/initialize/install-components.js +11 -0
  1021. package/initialize/install-directives.js +61 -0
  1022. package/initialize/install-plugins.js +129 -0
  1023. package/list/__tests__/workload.test.ts +55 -0
  1024. package/list/catalog.cattle.io.app.vue +76 -0
  1025. package/list/catalog.cattle.io.clusterrepo.vue +83 -0
  1026. package/list/cis.cattle.io.clusterscan.vue +76 -0
  1027. package/list/fleet.cattle.io.bundle.vue +127 -0
  1028. package/list/fleet.cattle.io.cluster.vue +95 -0
  1029. package/list/fleet.cattle.io.clustergroup.vue +88 -0
  1030. package/list/fleet.cattle.io.clusterregistrationtoken.vue +94 -0
  1031. package/list/fleet.cattle.io.gitrepo.vue +108 -0
  1032. package/list/group.principal.vue +153 -0
  1033. package/list/harvesterhci.io.management.cluster.vue +247 -0
  1034. package/list/helm.cattle.io.projecthelmchart.vue +157 -0
  1035. package/list/logging.banzaicloud.io.clusterflow.vue +44 -0
  1036. package/list/logging.banzaicloud.io.flow.vue +45 -0
  1037. package/list/management.cattle.io.cluster.vue +54 -0
  1038. package/list/management.cattle.io.feature.vue +368 -0
  1039. package/list/management.cattle.io.fleetworkspace.vue +44 -0
  1040. package/list/management.cattle.io.podsecurityadmissionconfigurationtemplate.vue +51 -0
  1041. package/list/management.cattle.io.setting.vue +117 -0
  1042. package/list/management.cattle.io.user.vue +178 -0
  1043. package/list/monitoring.coreos.com.alertmanagerconfig.vue +83 -0
  1044. package/list/namespace.vue +81 -0
  1045. package/list/networking.k8s.io.ingress.vue +39 -0
  1046. package/list/node.vue +418 -0
  1047. package/list/persistentvolume.vue +89 -0
  1048. package/list/persistentvolumeclaim.vue +32 -0
  1049. package/list/provisioning.cattle.io.cluster.vue +326 -0
  1050. package/list/rbac.authorization.k8s.io.clusterrolebinding.vue +47 -0
  1051. package/list/service.vue +48 -0
  1052. package/list/ui.cattle.io.navlink.vue +72 -0
  1053. package/list/workload.vue +188 -0
  1054. package/machine-config/__tests__/vmwarevsphere.test.ts +302 -0
  1055. package/machine-config/amazonec2.vue +702 -0
  1056. package/machine-config/azure.vue +913 -0
  1057. package/machine-config/digitalocean.vue +231 -0
  1058. package/machine-config/generic.vue +103 -0
  1059. package/machine-config/linode.vue +189 -0
  1060. package/machine-config/pnap.vue +288 -0
  1061. package/machine-config/vmwarevsphere-config.ts +17 -0
  1062. package/machine-config/vmwarevsphere.vue +1268 -0
  1063. package/mixins/__tests__/auth-config.test.ts +74 -0
  1064. package/mixins/__tests__/chart.test.ts +104 -0
  1065. package/mixins/__tests__/create-edit-view.test.ts +56 -0
  1066. package/mixins/auth-config.js +332 -0
  1067. package/mixins/back-link.js +15 -0
  1068. package/mixins/brand.js +211 -0
  1069. package/mixins/browser-tab-visibility.js +31 -0
  1070. package/mixins/chart.js +557 -0
  1071. package/mixins/child-hook.js +82 -0
  1072. package/mixins/closeable.js +47 -0
  1073. package/mixins/compact-input.ts +25 -0
  1074. package/mixins/create-edit-view/impl.js +201 -0
  1075. package/mixins/create-edit-view/index.js +48 -0
  1076. package/mixins/fetch.client.js +90 -0
  1077. package/mixins/form-validation.js +197 -0
  1078. package/mixins/labeled-form-element.ts +225 -0
  1079. package/mixins/login.js +31 -0
  1080. package/mixins/metric-poller.js +19 -0
  1081. package/mixins/page-actions.js +36 -0
  1082. package/mixins/resource-fetch-api-pagination.js +339 -0
  1083. package/mixins/resource-fetch-namespaced.js +90 -0
  1084. package/mixins/resource-fetch.js +291 -0
  1085. package/mixins/resource-manager.js +109 -0
  1086. package/mixins/vue-select-overrides.js +102 -0
  1087. package/models/__tests__/apps.deployment.test.ts +93 -0
  1088. package/models/__tests__/batch.cronjob.test.ts +88 -0
  1089. package/models/__tests__/catalog.cattle.io.app.test.ts +148 -0
  1090. package/models/__tests__/cluster.test.ts +44 -0
  1091. package/models/__tests__/fleet.cattle.io.cluster.test.ts +36 -0
  1092. package/models/__tests__/fleet.cattle.io.gitrepo.test.ts +157 -0
  1093. package/models/__tests__/logging.banzaicloud.io.flow.test.ts +88 -0
  1094. package/models/__tests__/management.cattle.io.cluster.test.ts +23 -0
  1095. package/models/__tests__/management.cattle.io.node.ts +181 -0
  1096. package/models/__tests__/management.cattle.io.nodepool.ts +83 -0
  1097. package/models/__tests__/namespace.test.ts +189 -0
  1098. package/models/__tests__/node.test.ts +74 -0
  1099. package/models/__tests__/provisioning.cattle.io.cluster.test.ts +155 -0
  1100. package/models/__tests__/schema.tests.ts +24 -0
  1101. package/models/__tests__/secret.test.ts +80 -0
  1102. package/models/__tests__/steve-schema.test.ts +73 -0
  1103. package/models/__tests__/storage.k8s.io.storageclass.test.ts +22 -0
  1104. package/models/__tests__/workload.test.ts +91 -0
  1105. package/models/app.js +25 -0
  1106. package/models/apps.controllerrevision.js +7 -0
  1107. package/models/apps.daemonset.js +22 -0
  1108. package/models/apps.deployment.js +71 -0
  1109. package/models/apps.replicaset.js +11 -0
  1110. package/models/apps.statefulset.js +49 -0
  1111. package/models/autoscaling.horizontalpodautoscaler.js +44 -0
  1112. package/models/batch.cronjob.js +85 -0
  1113. package/models/batch.job.js +19 -0
  1114. package/models/catalog.cattle.io.app.js +488 -0
  1115. package/models/catalog.cattle.io.clusterrepo.js +223 -0
  1116. package/models/catalog.cattle.io.operation.js +43 -0
  1117. package/models/catalog.cattle.io.repo.js +4 -0
  1118. package/models/catalog.cattle.io.uiplugin.js +37 -0
  1119. package/models/chart.js +50 -0
  1120. package/models/chartinstallaction.js +17 -0
  1121. package/models/chartupgradeaction.js +12 -0
  1122. package/models/cis.cattle.io.clusterscan.js +179 -0
  1123. package/models/cis.cattle.io.clusterscanbenchmark.js +18 -0
  1124. package/models/cis.cattle.io.clusterscanprofile.js +31 -0
  1125. package/models/cis.cattle.io.clusterscanreport.js +62 -0
  1126. package/models/cloudcredential.js +341 -0
  1127. package/models/cluster/node.js +487 -0
  1128. package/models/cluster/schema.js +6 -0
  1129. package/models/cluster.js +44 -0
  1130. package/models/cluster.x-k8s.io.machine.js +272 -0
  1131. package/models/cluster.x-k8s.io.machinedeployment.js +228 -0
  1132. package/models/cluster.x-k8s.io.machineset.js +23 -0
  1133. package/models/clusterroletemplatebinding.js +31 -0
  1134. package/models/configmap.js +20 -0
  1135. package/models/constraints.gatekeeper.sh.constraint.js +121 -0
  1136. package/models/driver.js +63 -0
  1137. package/models/etcdbackup.js +45 -0
  1138. package/models/event.js +34 -0
  1139. package/models/fleet.cattle.io.bundle.js +168 -0
  1140. package/models/fleet.cattle.io.cluster.js +221 -0
  1141. package/models/fleet.cattle.io.clustergroup.js +62 -0
  1142. package/models/fleet.cattle.io.clusterregistrationtoken.js +14 -0
  1143. package/models/fleet.cattle.io.gitrepo.js +548 -0
  1144. package/models/group.principal.js +71 -0
  1145. package/models/helm.cattle.io.projecthelmchart.js +38 -0
  1146. package/models/k8s.cni.cncf.io.networkattachmentdefinition.js +88 -0
  1147. package/models/kontainerdriver.js +88 -0
  1148. package/models/logging.banzaicloud.io.clusterflow.js +36 -0
  1149. package/models/logging.banzaicloud.io.clusteroutput.js +4 -0
  1150. package/models/logging.banzaicloud.io.flow.js +115 -0
  1151. package/models/logging.banzaicloud.io.output.js +173 -0
  1152. package/models/management/schema.js +6 -0
  1153. package/models/management.cattle.io.authconfig.js +70 -0
  1154. package/models/management.cattle.io.cluster.js +501 -0
  1155. package/models/management.cattle.io.clusterroletemplatebinding.js +143 -0
  1156. package/models/management.cattle.io.feature.js +56 -0
  1157. package/models/management.cattle.io.fleetworkspace.js +90 -0
  1158. package/models/management.cattle.io.gitreporestriction.js +5 -0
  1159. package/models/management.cattle.io.globalrole.js +172 -0
  1160. package/models/management.cattle.io.globalrolebinding.js +59 -0
  1161. package/models/management.cattle.io.kontainerdriver.js +90 -0
  1162. package/models/management.cattle.io.node.js +179 -0
  1163. package/models/management.cattle.io.nodepool.js +185 -0
  1164. package/models/management.cattle.io.nodetemplate.js +139 -0
  1165. package/models/management.cattle.io.podsecurityadmissionconfigurationtemplate.js +3 -0
  1166. package/models/management.cattle.io.project.js +182 -0
  1167. package/models/management.cattle.io.projectroletemplatebinding.js +150 -0
  1168. package/models/management.cattle.io.roletemplate.js +216 -0
  1169. package/models/management.cattle.io.setting.js +72 -0
  1170. package/models/management.cattle.io.user.js +302 -0
  1171. package/models/metrics.k8s.io.nodemetrics.js +41 -0
  1172. package/models/monitoring.coreos.com.alertmanagerconfig.js +126 -0
  1173. package/models/monitoring.coreos.com.podmonitor.js +23 -0
  1174. package/models/monitoring.coreos.com.prometheusrule.js +38 -0
  1175. package/models/monitoring.coreos.com.receiver.js +197 -0
  1176. package/models/monitoring.coreos.com.route.js +162 -0
  1177. package/models/monitoring.coreos.com.servicemonitor.js +23 -0
  1178. package/models/namespace.js +261 -0
  1179. package/models/networking.istio.io.destinationrule.js +19 -0
  1180. package/models/networking.k8s.io.ingress.js +209 -0
  1181. package/models/nodedriver.js +96 -0
  1182. package/models/persistentvolume.js +43 -0
  1183. package/models/persistentvolumeclaim.js +63 -0
  1184. package/models/pod.js +279 -0
  1185. package/models/principal.js +42 -0
  1186. package/models/projectroletemplatebinding.js +35 -0
  1187. package/models/provisioning.cattle.io.cluster.js +1091 -0
  1188. package/models/rbac.authorization.k8s.io.clusterrole.js +17 -0
  1189. package/models/rbac.authorization.k8s.io.clusterrolebinding.js +16 -0
  1190. package/models/rbac.authorization.k8s.io.role.js +52 -0
  1191. package/models/rbac.authorization.k8s.io.rolebinding.js +16 -0
  1192. package/models/replicationcontroller.js +4 -0
  1193. package/models/resources.cattle.io.backup.js +29 -0
  1194. package/models/resources.cattle.io.restore.js +33 -0
  1195. package/models/rke-machine-config.cattle.io.harvesterconfig.js +19 -0
  1196. package/models/rke-machine.cattle.io.amazonec2machinetemplate.js +15 -0
  1197. package/models/rke-machine.cattle.io.azuremachinetemplate.js +15 -0
  1198. package/models/rke-machine.cattle.io.digitaloceanmachinetemplate.js +15 -0
  1199. package/models/rke-machine.cattle.io.linodemachinetemplate.js +15 -0
  1200. package/models/rke-machine.cattle.io.machinetemplate.js +22 -0
  1201. package/models/rke-machine.cattle.io.pnapmachinetemplate.js +15 -0
  1202. package/models/rke-machine.cattle.io.vmwarevspheremachinetemplate.js +14 -0
  1203. package/models/rke.cattle.io.etcdsnapshot.js +76 -0
  1204. package/models/schema.js +38 -0
  1205. package/models/secret.js +473 -0
  1206. package/models/service.js +193 -0
  1207. package/models/steve-schema.ts +254 -0
  1208. package/models/storage.k8s.io.storageclass.js +164 -0
  1209. package/models/templates.gatekeeper.sh.constrainttemplate.js +23 -0
  1210. package/models/token.js +19 -0
  1211. package/models/ui.cattle.io.navlink.js +38 -0
  1212. package/models/workload.js +691 -0
  1213. package/models/workload.service.js +341 -0
  1214. package/package.json +173 -0
  1215. package/pages/404.vue +15 -0
  1216. package/pages/__tests__/prefs.test.ts +96 -0
  1217. package/pages/about.vue +311 -0
  1218. package/pages/account/create-key.vue +16 -0
  1219. package/pages/account/index.vue +308 -0
  1220. package/pages/account/pri.vue +229 -0
  1221. package/pages/auth/login.vue +742 -0
  1222. package/pages/auth/logout.vue +47 -0
  1223. package/pages/auth/setup.vue +646 -0
  1224. package/pages/auth/verify.vue +203 -0
  1225. package/pages/auth copy/login.vue +595 -0
  1226. package/pages/auth copy/logout.vue +47 -0
  1227. package/pages/auth copy/setup.vue +523 -0
  1228. package/pages/auth copy/verify.vue +203 -0
  1229. package/pages/c/_cluster/_product/_resource/_id.vue +12 -0
  1230. package/pages/c/_cluster/_product/_resource/_namespace/_id.vue +12 -0
  1231. package/pages/c/_cluster/_product/_resource/create.vue +12 -0
  1232. package/pages/c/_cluster/_product/_resource/index.vue +12 -0
  1233. package/pages/c/_cluster/_product/index.vue +15 -0
  1234. package/pages/c/_cluster/_product/members/index.vue +8 -0
  1235. package/pages/c/_cluster/_product/namespaces.vue +77 -0
  1236. package/pages/c/_cluster/_product/projectsnamespaces.vue +6 -0
  1237. package/pages/c/_cluster/apps/charts/__tests__/install.helper.test.ts +18 -0
  1238. package/pages/c/_cluster/apps/charts/chart.vue +452 -0
  1239. package/pages/c/_cluster/apps/charts/index.vue +718 -0
  1240. package/pages/c/_cluster/apps/charts/install.helpers.js +15 -0
  1241. package/pages/c/_cluster/apps/charts/install.vue +2050 -0
  1242. package/pages/c/_cluster/auth/config/_id.vue +35 -0
  1243. package/pages/c/_cluster/auth/config/index.vue +114 -0
  1244. package/pages/c/_cluster/auth/group.principal/assign-edit.vue +138 -0
  1245. package/pages/c/_cluster/auth/roles/_resource/_id.vue +12 -0
  1246. package/pages/c/_cluster/auth/roles/_resource/create.vue +12 -0
  1247. package/pages/c/_cluster/auth/roles/index.vue +215 -0
  1248. package/pages/c/_cluster/auth/user.retention/index.vue +323 -0
  1249. package/pages/c/_cluster/ecm/index.vue +14 -0
  1250. package/pages/c/_cluster/explorer/ConfigBadge.vue +64 -0
  1251. package/pages/c/_cluster/explorer/EventsTable.vue +126 -0
  1252. package/pages/c/_cluster/explorer/__tests__/index.test.ts +264 -0
  1253. package/pages/c/_cluster/explorer/explorer-utils.js +17 -0
  1254. package/pages/c/_cluster/explorer/index.vue +1004 -0
  1255. package/pages/c/_cluster/explorer/tools/__tests__/index.test.ts +71 -0
  1256. package/pages/c/_cluster/explorer/tools/index.vue +397 -0
  1257. package/pages/c/_cluster/explorer/tools/pages/_page.vue +29 -0
  1258. package/pages/c/_cluster/fleet/GitRepoGraphConfig.js +249 -0
  1259. package/pages/c/_cluster/fleet/index.vue +506 -0
  1260. package/pages/c/_cluster/gatekeeper/constraints/index.vue +90 -0
  1261. package/pages/c/_cluster/gatekeeper/index.vue +78 -0
  1262. package/pages/c/_cluster/istio/index.vue +149 -0
  1263. package/pages/c/_cluster/legacy/pages/_page.vue +29 -0
  1264. package/pages/c/_cluster/legacy/project/_page.vue +57 -0
  1265. package/pages/c/_cluster/legacy/project/index.vue +32 -0
  1266. package/pages/c/_cluster/legacy/project/pipelines.vue +96 -0
  1267. package/pages/c/_cluster/logging/index.vue +94 -0
  1268. package/pages/c/_cluster/longhorn/__tests__/longhorn.index.test.ts +92 -0
  1269. package/pages/c/_cluster/longhorn/index.vue +107 -0
  1270. package/pages/c/_cluster/manager/cloudCredential/_id.vue +15 -0
  1271. package/pages/c/_cluster/manager/cloudCredential/create.vue +15 -0
  1272. package/pages/c/_cluster/manager/cloudCredential/index.vue +158 -0
  1273. package/pages/c/_cluster/manager/drivers/kontainerDriver/_id.vue +12 -0
  1274. package/pages/c/_cluster/manager/drivers/kontainerDriver/create.vue +15 -0
  1275. package/pages/c/_cluster/manager/drivers/kontainerDriver/index.vue +91 -0
  1276. package/pages/c/_cluster/manager/drivers/nodeDriver/_id.vue +12 -0
  1277. package/pages/c/_cluster/manager/drivers/nodeDriver/create.vue +15 -0
  1278. package/pages/c/_cluster/manager/drivers/nodeDriver/index.vue +60 -0
  1279. package/pages/c/_cluster/manager/jwt.authentication/index.vue +244 -0
  1280. package/pages/c/_cluster/manager/pages/_page.vue +22 -0
  1281. package/pages/c/_cluster/mcapps/pages/_page.vue +22 -0
  1282. package/pages/c/_cluster/monitoring/alertmanagerconfig/_alertmanagerconfigid/index.vue +12 -0
  1283. package/pages/c/_cluster/monitoring/alertmanagerconfig/_alertmanagerconfigid/receiver.vue +320 -0
  1284. package/pages/c/_cluster/monitoring/alertmanagerconfig/index.vue +24 -0
  1285. package/pages/c/_cluster/monitoring/index.vue +202 -0
  1286. package/pages/c/_cluster/monitoring/monitor/_namespace/_id.vue +21 -0
  1287. package/pages/c/_cluster/monitoring/monitor/create.vue +29 -0
  1288. package/pages/c/_cluster/monitoring/monitor/index.vue +99 -0
  1289. package/pages/c/_cluster/monitoring/route-receiver/_id.vue +29 -0
  1290. package/pages/c/_cluster/monitoring/route-receiver/create.vue +22 -0
  1291. package/pages/c/_cluster/monitoring/route-receiver/index.vue +133 -0
  1292. package/pages/c/_cluster/navlinks/_group.vue +42 -0
  1293. package/pages/c/_cluster/neuvector/index.vue +75 -0
  1294. package/pages/c/_cluster/settings/DefaultLinksEditor.vue +128 -0
  1295. package/pages/c/_cluster/settings/banners.vue +361 -0
  1296. package/pages/c/_cluster/settings/brand.vue +648 -0
  1297. package/pages/c/_cluster/settings/index.vue +20 -0
  1298. package/pages/c/_cluster/settings/links.vue +167 -0
  1299. package/pages/c/_cluster/settings/performance.vue +515 -0
  1300. package/pages/c/_cluster/uiplugins/AddExtensionRepos.vue +175 -0
  1301. package/pages/c/_cluster/uiplugins/CatalogList/CatalogLoadDialog.vue +551 -0
  1302. package/pages/c/_cluster/uiplugins/CatalogList/CatalogUninstallDialog.vue +193 -0
  1303. package/pages/c/_cluster/uiplugins/CatalogList/index.vue +132 -0
  1304. package/pages/c/_cluster/uiplugins/DeveloperInstallDialog.vue +261 -0
  1305. package/pages/c/_cluster/uiplugins/InstallDialog.vue +366 -0
  1306. package/pages/c/_cluster/uiplugins/PluginInfoPanel.vue +503 -0
  1307. package/pages/c/_cluster/uiplugins/SetupUIPlugins.vue +83 -0
  1308. package/pages/c/_cluster/uiplugins/UninstallDialog.vue +152 -0
  1309. package/pages/c/_cluster/uiplugins/__tests__/AddExtensionRepos.test.ts +76 -0
  1310. package/pages/c/_cluster/uiplugins/__tests__/SetupUIPlugins.test.ts +77 -0
  1311. package/pages/c/_cluster/uiplugins/index.vue +1288 -0
  1312. package/pages/clusters/index.vue +21 -0
  1313. package/pages/diagnostic.vue +580 -0
  1314. package/pages/fail-whale.vue +203 -0
  1315. package/pages/home.vue +854 -0
  1316. package/pages/index.vue +54 -0
  1317. package/pages/prefs.vue +369 -0
  1318. package/pages/support/index.vue +266 -0
  1319. package/pkg/auto-import.js +118 -0
  1320. package/pkg/babel.config.js +8 -0
  1321. package/pkg/dynamic-importer.lib.js +82 -0
  1322. package/pkg/dynamic-plugin-loader.js +28 -0
  1323. package/pkg/import.js +10 -0
  1324. package/pkg/model-loader-require.lib.js +3 -0
  1325. package/pkg/tsconfig.json +65 -0
  1326. package/pkg/vue.config.js +146 -0
  1327. package/plugins/axios.js +31 -0
  1328. package/plugins/clean-html.js +103 -0
  1329. package/plugins/codemirror-loader.js +5 -0
  1330. package/plugins/codemirror.js +359 -0
  1331. package/plugins/dashboard-store/__tests__/actions.test.ts +250 -0
  1332. package/plugins/dashboard-store/__tests__/getters.test.ts +100 -0
  1333. package/plugins/dashboard-store/__tests__/mutations.test.ts +391 -0
  1334. package/plugins/dashboard-store/__tests__/resource-class.test.ts +49 -0
  1335. package/plugins/dashboard-store/__tests__/utils/store-mocks.ts +7 -0
  1336. package/plugins/dashboard-store/actions.js +784 -0
  1337. package/plugins/dashboard-store/classify.js +18 -0
  1338. package/plugins/dashboard-store/getters.js +457 -0
  1339. package/plugins/dashboard-store/index.js +53 -0
  1340. package/plugins/dashboard-store/model-loader-require.js +12 -0
  1341. package/plugins/dashboard-store/model-loader.js +76 -0
  1342. package/plugins/dashboard-store/mutations.js +548 -0
  1343. package/plugins/dashboard-store/normalize.js +50 -0
  1344. package/plugins/dashboard-store/resource-class.js +1904 -0
  1345. package/plugins/ember-cookie.js +13 -0
  1346. package/plugins/extend-router.js +80 -0
  1347. package/plugins/floating-vue.js +1 -0
  1348. package/plugins/formatters.js +15 -0
  1349. package/plugins/global-formatters.js +20 -0
  1350. package/plugins/i18n.js +136 -0
  1351. package/plugins/internal-api/index.ts +37 -0
  1352. package/plugins/internal-api/shared/base-api.ts +13 -0
  1353. package/plugins/internal-api/shell/shell.api.ts +108 -0
  1354. package/plugins/js-yaml.js +4 -0
  1355. package/plugins/nuxt-client-init.js +3 -0
  1356. package/plugins/plugin.js +93 -0
  1357. package/plugins/replaceall.js +19 -0
  1358. package/plugins/shortkey.js +282 -0
  1359. package/plugins/steve/__tests__/getters.test.ts +214 -0
  1360. package/plugins/steve/__tests__/header-warnings.test.ts +238 -0
  1361. package/plugins/steve/__tests__/mutations.test.ts +50 -0
  1362. package/plugins/steve/__tests__/resource-utils.test.ts +159 -0
  1363. package/plugins/steve/__tests__/steve-class.test.ts +59 -0
  1364. package/plugins/steve/__tests__/subscribe.spec.ts +109 -0
  1365. package/plugins/steve/__tests__/utils/mutation.test.helpers.ts +105 -0
  1366. package/plugins/steve/__tests__/utils/steve-mocks.ts +31 -0
  1367. package/plugins/steve/accept-or-reject-socket-message.ts +103 -0
  1368. package/plugins/steve/actions.js +386 -0
  1369. package/plugins/steve/caches/resourceCache.js +60 -0
  1370. package/plugins/steve/getters.js +342 -0
  1371. package/plugins/steve/header-warnings.ts +91 -0
  1372. package/plugins/steve/hybrid-class.js +102 -0
  1373. package/plugins/steve/index.js +76 -0
  1374. package/plugins/steve/mutations.js +210 -0
  1375. package/plugins/steve/norman-class.js +198 -0
  1376. package/plugins/steve/performanceTesting.js +128 -0
  1377. package/plugins/steve/projectAndNamespaceFiltering.utils.ts +80 -0
  1378. package/plugins/steve/resource-utils.ts +38 -0
  1379. package/plugins/steve/resourceWatcher.js +251 -0
  1380. package/plugins/steve/schema.d.ts +22 -0
  1381. package/plugins/steve/schema.utils.js +25 -0
  1382. package/plugins/steve/steve-class.js +61 -0
  1383. package/plugins/steve/steve-description-class.js +36 -0
  1384. package/plugins/steve/steve-pagination-utils.ts +513 -0
  1385. package/plugins/steve/subscribe.js +1092 -0
  1386. package/plugins/steve/worker/index.js +24 -0
  1387. package/plugins/steve/worker/web-worker.advanced.js +320 -0
  1388. package/plugins/steve/worker/web-worker.basic.js +116 -0
  1389. package/plugins/steve-create-worker.js +14 -0
  1390. package/plugins/version.js +11 -0
  1391. package/promptRemove/management.cattle.io.fleetworkspace.vue +98 -0
  1392. package/promptRemove/management.cattle.io.globalrole.vue +49 -0
  1393. package/promptRemove/management.cattle.io.project.vue +131 -0
  1394. package/promptRemove/management.cattle.io.roletemplate.vue +51 -0
  1395. package/promptRemove/mixin/roleDeletionCheck.js +105 -0
  1396. package/promptRemove/pod.vue +132 -0
  1397. package/public/index.html +75 -0
  1398. package/rancher-components/Accordion/Accordion.test.ts +45 -0
  1399. package/rancher-components/Accordion/Accordion.vue +86 -0
  1400. package/rancher-components/Accordion/index.ts +1 -0
  1401. package/rancher-components/BadgeState/BadgeState.test.ts +12 -0
  1402. package/rancher-components/BadgeState/BadgeState.vue +122 -0
  1403. package/rancher-components/BadgeState/index.ts +1 -0
  1404. package/rancher-components/Banner/Banner.test.ts +59 -0
  1405. package/rancher-components/Banner/Banner.vue +261 -0
  1406. package/rancher-components/Banner/index.ts +1 -0
  1407. package/rancher-components/Card/Card.test.ts +37 -0
  1408. package/rancher-components/Card/Card.vue +189 -0
  1409. package/rancher-components/Card/index.ts +1 -0
  1410. package/rancher-components/Form/Checkbox/Checkbox.test.ts +68 -0
  1411. package/rancher-components/Form/Checkbox/Checkbox.vue +507 -0
  1412. package/rancher-components/Form/Checkbox/index.ts +1 -0
  1413. package/rancher-components/Form/LabeledInput/LabeledInput.test.ts +57 -0
  1414. package/rancher-components/Form/LabeledInput/LabeledInput.vue +512 -0
  1415. package/rancher-components/Form/LabeledInput/index.ts +1 -0
  1416. package/rancher-components/Form/Radio/RadioButton.test.ts +33 -0
  1417. package/rancher-components/Form/Radio/RadioButton.vue +328 -0
  1418. package/rancher-components/Form/Radio/RadioGroup.test.ts +27 -0
  1419. package/rancher-components/Form/Radio/RadioGroup.vue +305 -0
  1420. package/rancher-components/Form/Radio/index.ts +2 -0
  1421. package/rancher-components/Form/TextArea/TextAreaAutoGrow.vue +199 -0
  1422. package/rancher-components/Form/TextArea/index.ts +1 -0
  1423. package/rancher-components/Form/ToggleSwitch/ToggleSwitch.test.ts +111 -0
  1424. package/rancher-components/Form/ToggleSwitch/ToggleSwitch.vue +197 -0
  1425. package/rancher-components/Form/ToggleSwitch/index.ts +1 -0
  1426. package/rancher-components/Form/index.ts +5 -0
  1427. package/rancher-components/LabeledTooltip/LabeledTooltip.vue +152 -0
  1428. package/rancher-components/LabeledTooltip/index.ts +1 -0
  1429. package/rancher-components/RcButton/RcButton.test.ts +97 -0
  1430. package/rancher-components/RcButton/RcButton.vue +96 -0
  1431. package/rancher-components/RcButton/index.ts +2 -0
  1432. package/rancher-components/RcButton/types.ts +18 -0
  1433. package/rancher-components/RcDropdown/RcDropdown.vue +163 -0
  1434. package/rancher-components/RcDropdown/RcDropdownItem.vue +122 -0
  1435. package/rancher-components/RcDropdown/RcDropdownMenu.vue +71 -0
  1436. package/rancher-components/RcDropdown/RcDropdownSeparator.vue +6 -0
  1437. package/rancher-components/RcDropdown/RcDropdownTrigger.vue +52 -0
  1438. package/rancher-components/RcDropdown/index.ts +5 -0
  1439. package/rancher-components/RcDropdown/types.ts +49 -0
  1440. package/rancher-components/RcDropdown/useDropdownCollection.ts +54 -0
  1441. package/rancher-components/RcDropdown/useDropdownContext.ts +119 -0
  1442. package/rancher-components/StringList/StringList.test.ts +754 -0
  1443. package/rancher-components/StringList/StringList.vue +645 -0
  1444. package/rancher-components/StringList/index.ts +1 -0
  1445. package/scripts/.gitlab/workflows/build-extension-catalog.gitlab-ci.yml +69 -0
  1446. package/scripts/build-pkg.sh +102 -0
  1447. package/scripts/clean +6 -0
  1448. package/scripts/drone-build-pkg.sh +31 -0
  1449. package/scripts/extension/bundle +106 -0
  1450. package/scripts/extension/helm/charts/ui-plugin-server/.helmignore +23 -0
  1451. package/scripts/extension/helm/charts/ui-plugin-server/Chart.yaml +18 -0
  1452. package/scripts/extension/helm/charts/ui-plugin-server/templates/_helpers.tpl +63 -0
  1453. package/scripts/extension/helm/charts/ui-plugin-server/templates/cr.yaml +15 -0
  1454. package/scripts/extension/helm/charts/ui-plugin-server/values.yaml +10 -0
  1455. package/scripts/extension/helm/package/Dockerfile +27 -0
  1456. package/scripts/extension/helm/package/nginx.conf +17 -0
  1457. package/scripts/extension/helm/scripts/package +31 -0
  1458. package/scripts/extension/helm/scripts/patch +128 -0
  1459. package/scripts/extension/helm/scripts/version +31 -0
  1460. package/scripts/extension/helmpatch +80 -0
  1461. package/scripts/extension/parse-tag-name +39 -0
  1462. package/scripts/extension/publish +476 -0
  1463. package/scripts/pkgfile.js +23 -0
  1464. package/scripts/publish-pkg.sh +18 -0
  1465. package/scripts/publish-shell.sh +119 -0
  1466. package/scripts/record-deps.js +37 -0
  1467. package/scripts/serve-pkgs +71 -0
  1468. package/scripts/sync-shell-deps +37 -0
  1469. package/scripts/test-plugins-build.sh +246 -0
  1470. package/scripts/typegen.sh +101 -0
  1471. package/scripts/vue-migrate.js +686 -0
  1472. package/server/har-file.js +205 -0
  1473. package/server/server-middleware.js +11 -0
  1474. package/server/server.crt +22 -0
  1475. package/server/server.csr +16 -0
  1476. package/server/server.key +27 -0
  1477. package/server/v3.ext +8 -0
  1478. package/static/favicon.ico +0 -0
  1479. package/static/favicon.png +0 -0
  1480. package/static/loading-indicator.html +39 -0
  1481. package/store/__tests__/auth.test.ts +120 -0
  1482. package/store/__tests__/catalog.test.ts +207 -0
  1483. package/store/__tests__/index.test.ts +110 -0
  1484. package/store/__tests__/type-map.test.ts +1122 -0
  1485. package/store/action-menu.js +240 -0
  1486. package/store/auth.js +409 -0
  1487. package/store/aws.js +263 -0
  1488. package/store/catalog.js +666 -0
  1489. package/store/cru-resource.ts +26 -0
  1490. package/store/customisation.js +35 -0
  1491. package/store/digitalocean.js +198 -0
  1492. package/store/features.js +74 -0
  1493. package/store/github.js +109 -0
  1494. package/store/gitlab.js +159 -0
  1495. package/store/growl.js +98 -0
  1496. package/store/i18n.js +356 -0
  1497. package/store/index.js +1290 -0
  1498. package/store/linode.js +142 -0
  1499. package/store/modal.ts +71 -0
  1500. package/store/plugins.js +210 -0
  1501. package/store/pnap.js +128 -0
  1502. package/store/prefs.js +531 -0
  1503. package/store/resource-fetch.js +44 -0
  1504. package/store/slideInPanel.ts +47 -0
  1505. package/store/store-types.js +7 -0
  1506. package/store/type-map.js +2085 -0
  1507. package/store/type-map.utils.ts +243 -0
  1508. package/store/uiplugins.ts +67 -0
  1509. package/store/wm.js +95 -0
  1510. package/tsconfig.json +48 -0
  1511. package/tsconfig.paths.json +21 -0
  1512. package/types/api.d.ts +1 -0
  1513. package/types/components/labeledSelect.ts +50 -0
  1514. package/types/components/paginatedResourceTable.ts +25 -0
  1515. package/types/components/resourceLabeledSelect.ts +48 -0
  1516. package/types/fleet.d.ts +1 -0
  1517. package/types/form.ts +1 -0
  1518. package/types/generic.ts +2 -0
  1519. package/types/global-vue.d.ts +5 -0
  1520. package/types/internal-api/shell/growl.d.ts +25 -0
  1521. package/types/internal-api/shell/modal.d.ts +77 -0
  1522. package/types/internal-api/shell/slideIn.d.ts +15 -0
  1523. package/types/rancher/index.d.ts +9 -0
  1524. package/types/resources/fleet.d.ts +57 -0
  1525. package/types/resources/pod-security-admission.ts +36 -0
  1526. package/types/resources/settings.d.ts +93 -0
  1527. package/types/resources/userPreferences.d.ts +13 -0
  1528. package/types/shell/index.d.ts +4694 -0
  1529. package/types/store/dashboard-store.types.ts +46 -0
  1530. package/types/store/pagination.types.ts +470 -0
  1531. package/types/store/type-map.ts +30 -0
  1532. package/types/store/vuex.d.ts +17 -0
  1533. package/types/t.ts +1 -0
  1534. package/types/vue-shim.d.ts +23 -0
  1535. package/utils/__mocks__/socket.js +21 -0
  1536. package/utils/__tests__/array.test.ts +514 -0
  1537. package/utils/__tests__/cluster.test.ts +57 -0
  1538. package/utils/__tests__/create-yaml.test.ts +490 -0
  1539. package/utils/__tests__/formatter.test.ts +77 -0
  1540. package/utils/__tests__/grafana.test.ts +44 -0
  1541. package/utils/__tests__/kontainer.test.ts +180 -0
  1542. package/utils/__tests__/object.test.ts +443 -0
  1543. package/utils/__tests__/pod-security-admission.test.ts +61 -0
  1544. package/utils/__tests__/selector.test.ts +444 -0
  1545. package/utils/__tests__/sort.test.ts +61 -0
  1546. package/utils/__tests__/string.test.ts +91 -0
  1547. package/utils/__tests__/version.test.ts +18 -0
  1548. package/utils/alertmanagerconfig.js +181 -0
  1549. package/utils/array.ts +256 -0
  1550. package/utils/async.ts +38 -0
  1551. package/utils/auth.js +335 -0
  1552. package/utils/aws.js +0 -0
  1553. package/utils/axios.js +171 -0
  1554. package/utils/azure.js +24 -0
  1555. package/utils/banners.js +58 -0
  1556. package/utils/clipboard.js +5 -0
  1557. package/utils/cluster.js +333 -0
  1558. package/utils/color.js +148 -0
  1559. package/utils/computed.js +45 -0
  1560. package/utils/config.js +4 -0
  1561. package/utils/cookie-universal.js +10 -0
  1562. package/utils/create-yaml.js +518 -0
  1563. package/utils/crypto/LICENSE.txt +15 -0
  1564. package/utils/crypto/browserHashUtils.js +51 -0
  1565. package/utils/crypto/browserMd5.js +183 -0
  1566. package/utils/crypto/browserSha1.js +149 -0
  1567. package/utils/crypto/browserSha256.js +237 -0
  1568. package/utils/crypto/index.js +181 -0
  1569. package/utils/custom-validators.js +32 -0
  1570. package/utils/dom.js +15 -0
  1571. package/utils/download.js +35 -0
  1572. package/utils/duration.js +43 -0
  1573. package/utils/dynamic-importer.js +134 -0
  1574. package/utils/ember-page.js +30 -0
  1575. package/utils/error.js +211 -0
  1576. package/utils/errorTranslate.json +1336 -0
  1577. package/utils/favicon.js +49 -0
  1578. package/utils/fleet.ts +191 -0
  1579. package/utils/formatter.js +13 -0
  1580. package/utils/gatekeeper/util.js +35 -0
  1581. package/utils/gc/gc-interval.ts +40 -0
  1582. package/utils/gc/gc-root-store.js +76 -0
  1583. package/utils/gc/gc-route-changed.ts +44 -0
  1584. package/utils/gc/gc-types.ts +21 -0
  1585. package/utils/gc/gc.ts +282 -0
  1586. package/utils/git.ts +92 -0
  1587. package/utils/grafana.js +114 -0
  1588. package/utils/ingress.ts +64 -0
  1589. package/utils/kontainer.ts +190 -0
  1590. package/utils/kube.js +9 -0
  1591. package/utils/monitoring.js +63 -0
  1592. package/utils/namespace-filter.js +43 -0
  1593. package/utils/object.js +541 -0
  1594. package/utils/pagination-utils.ts +176 -0
  1595. package/utils/pagination-wrapper.ts +70 -0
  1596. package/utils/parse-externalid.js +139 -0
  1597. package/utils/platform.js +64 -0
  1598. package/utils/pod-security-admission.ts +39 -0
  1599. package/utils/poller-sequential.js +53 -0
  1600. package/utils/poller.js +39 -0
  1601. package/utils/position.js +172 -0
  1602. package/utils/promise.js +115 -0
  1603. package/utils/queue.js +70 -0
  1604. package/utils/router.js +140 -0
  1605. package/utils/select.js +88 -0
  1606. package/utils/selector.js +229 -0
  1607. package/utils/settings.ts +108 -0
  1608. package/utils/socket.js +409 -0
  1609. package/utils/sort.js +225 -0
  1610. package/utils/stream.js +49 -0
  1611. package/utils/string.js +363 -0
  1612. package/utils/svg-filter.js +301 -0
  1613. package/utils/time.js +121 -0
  1614. package/utils/title.ts +3 -0
  1615. package/utils/type-helpers.ts +9 -0
  1616. package/utils/uiplugins.ts +319 -0
  1617. package/utils/unit-tests/ChildRenderingRouterLinkStub.ts +36 -0
  1618. package/utils/units.js +184 -0
  1619. package/utils/url.ts +171 -0
  1620. package/utils/v-sphere.ts +285 -0
  1621. package/utils/validators/__tests__/cidr.test.ts +33 -0
  1622. package/utils/validators/cidr.js +14 -0
  1623. package/utils/validators/cluster-name.js +12 -0
  1624. package/utils/validators/container-images.js +24 -0
  1625. package/utils/validators/cron-schedule.js +14 -0
  1626. package/utils/validators/flow-output.js +15 -0
  1627. package/utils/validators/formRules/__tests__/index.test.ts +1218 -0
  1628. package/utils/validators/formRules/index.ts +535 -0
  1629. package/utils/validators/index.js +244 -0
  1630. package/utils/validators/kubernetes-name.js +39 -0
  1631. package/utils/validators/logging-outputs.js +11 -0
  1632. package/utils/validators/machine-pool.ts +20 -0
  1633. package/utils/validators/monitoring-route.js +13 -0
  1634. package/utils/validators/pod-affinity.js +128 -0
  1635. package/utils/validators/prometheusrule.js +76 -0
  1636. package/utils/validators/role-template.js +27 -0
  1637. package/utils/validators/service.js +136 -0
  1638. package/utils/validators/setting.js +9 -0
  1639. package/utils/version.js +128 -0
  1640. package/utils/versions.ts +39 -0
  1641. package/utils/width.js +39 -0
  1642. package/utils/window.js +46 -0
  1643. package/vue-config-helper.js +135 -0
  1644. package/vue.config.js +645 -0
@@ -0,0 +1,2604 @@
1
+ <script>
2
+ import { mapGetters, useStore } from 'vuex';
3
+ import { defineAsyncComponent, ref, onMounted, onBeforeUnmount } from 'vue';
4
+ import day from 'dayjs';
5
+ import isEmpty from 'lodash/isEmpty';
6
+ import { dasherize, ucFirst } from '@shell/utils/string';
7
+ import { get, clone } from '@shell/utils/object';
8
+ import { removeObject } from '@shell/utils/array';
9
+ import { Checkbox } from '@components/Form/Checkbox';
10
+ import AsyncButton, { ASYNC_BUTTON_STATES } from '@shell/components/AsyncButton';
11
+ import Select from '@shell/components/form/Select';
12
+ import ActionDropdown from '@shell/components/ActionDropdown';
13
+ import throttle from 'lodash/throttle';
14
+ import debounce from 'lodash/debounce';
15
+ import THead from './THead';
16
+ import filtering from './filtering';
17
+ import selection from './selection';
18
+ import sorting from './sorting';
19
+ import paging from './paging';
20
+ import grouping from './grouping';
21
+ import actions from './actions';
22
+ import AdvancedFiltering from './advanced-filtering';
23
+ import LabeledSelect from '@shell/components/form/LabeledSelect';
24
+ import { getParent } from '@shell/utils/dom';
25
+ import { FORMATTERS } from '@shell/components/SortableTable/sortable-config';
26
+ import ButtonMultiAction from '@shell/components/ButtonMultiAction.vue';
27
+ import ActionMenu from '@shell/components/ActionMenuShell.vue';
28
+ import { useRuntimeFlag } from '@shell/composables/useRuntimeFlag';
29
+ import ActionDropdownShell from '@shell/components/ActionDropdownShell.vue';
30
+ import { harvesterhci2cloud, cloud2harvesterhci } from '@shell/utils/router'
31
+
32
+ // Uncomment for table performance debugging
33
+ // import tableDebug from './debug';
34
+
35
+ // @TODO:
36
+ // Fixed header/scrolling
37
+
38
+ // Data Flow:
39
+ // rows prop
40
+ // --> sorting.js arrangedRows
41
+ // --> filtering.js handleFiltering()
42
+ // --> filtering.js filteredRows
43
+ // --> paging.js pageRows
44
+ // --> grouping.js groupedRows
45
+ // --> index.vue displayRows
46
+
47
+ export default {
48
+ name: 'SortableTable',
49
+
50
+ emits: [
51
+ 'clickedActionButton',
52
+ 'pagination-changed',
53
+ 'group-value-change',
54
+ 'selection',
55
+ 'rowClick',
56
+ 'enter',
57
+ ],
58
+
59
+ components: {
60
+ THead,
61
+ Checkbox,
62
+ AsyncButton,
63
+ Select,
64
+ ActionDropdown,
65
+ LabeledSelect,
66
+ ButtonMultiAction,
67
+ ActionMenu,
68
+ ActionDropdownShell,
69
+ },
70
+ mixins: [
71
+ filtering,
72
+ sorting,
73
+ paging,
74
+ grouping,
75
+ selection,
76
+ actions,
77
+ AdvancedFiltering,
78
+ // For table performance debugging - uncomment and uncomment the corresponding import
79
+ // tableDebug,
80
+ ],
81
+
82
+ props: {
83
+ headers: {
84
+ // {
85
+ // name: Name for the column (goes in query param) and for defaultSortBy
86
+ // label: Displayed column header
87
+ // sort: string|array[string] Field name(s) to sort by, default: [name, keyField]
88
+ // fields can be suffixed with ':desc' to flip the normal sort order
89
+ // search: string|array[string] Field name(s) to search in, default: [name]
90
+ // width: number
91
+ // }
92
+ type: Array,
93
+ required: true
94
+ },
95
+
96
+ rows: {
97
+ // The array of objects to show
98
+ type: Array,
99
+ required: true
100
+ },
101
+
102
+ keyField: {
103
+ // Field that is unique for each row.
104
+ type: String,
105
+ default: '_key',
106
+ },
107
+
108
+ loading: {
109
+ type: Boolean,
110
+ required: false
111
+ },
112
+
113
+ /**
114
+ * Alt Loading - True: Always show table rows and obscure them when `loading`. Intended for use with server-side pagination.
115
+ *
116
+ * Alt Loading - False: Hide the table rows when `loading`. Intended when all resources are provided up front.
117
+ */
118
+ altLoading: {
119
+ type: Boolean,
120
+ required: false
121
+ },
122
+
123
+ groupBy: {
124
+ // Field to group rows by, row[groupBy] must be something that can be a map key
125
+ type: String,
126
+ default: null
127
+ },
128
+ groupRef: {
129
+ // Object to provide as the reference for rendering the grouping row
130
+ type: String,
131
+ default: null,
132
+ },
133
+ groupSort: {
134
+ // Field to order groups by, defaults to groupBy
135
+ type: Array,
136
+ default: null
137
+ },
138
+
139
+ defaultSortBy: {
140
+ // Default field to sort by if none is specified
141
+ // uses name on headers
142
+ type: String,
143
+ default: null
144
+ },
145
+
146
+ tableActions: {
147
+ // Show bulk table actions
148
+ type: Boolean,
149
+ default: true
150
+ },
151
+
152
+ rowActions: {
153
+ // Show action dropdown on the end of each row
154
+ type: Boolean,
155
+ default: true
156
+ },
157
+
158
+ mangleActionResources: {
159
+ type: Function,
160
+ default: null,
161
+ },
162
+
163
+ rowActionsWidth: {
164
+ // How wide the action dropdown column should be
165
+ type: Number,
166
+ default: 40
167
+ },
168
+
169
+ search: {
170
+ // Show search input to filter rows
171
+ type: Boolean,
172
+ default: true
173
+ },
174
+
175
+ extraSearchFields: {
176
+ // Additional fields that aren't defined in the headers to search in on each row
177
+ type: Array,
178
+ default: null
179
+ },
180
+
181
+ subRows: {
182
+ // If there are sub-rows, your main row must have <tr class="main-row"> to identify it
183
+ type: Boolean,
184
+ default: false,
185
+ },
186
+
187
+ subRowsDescription: {
188
+ type: Boolean,
189
+ default: true,
190
+ },
191
+
192
+ subExpandable: {
193
+ type: Boolean,
194
+ default: false,
195
+ },
196
+
197
+ subExpandColumn: {
198
+ type: Boolean,
199
+ default: false,
200
+ },
201
+
202
+ subSearch: {
203
+ // A field containing an array of sub-items to also search in for each row
204
+ type: String,
205
+ default: null,
206
+ },
207
+
208
+ subFields: {
209
+ // Search this list of fields within the items in "subSearch" of each row
210
+ type: Array,
211
+ default: null,
212
+ },
213
+
214
+ /**
215
+ * Show the divider between the thead and tbody.
216
+ */
217
+ topDivider: {
218
+ type: Boolean,
219
+ default: true
220
+ },
221
+
222
+ /**
223
+ * Show the dividers between rows
224
+ */
225
+ bodyDividers: {
226
+ type: Boolean,
227
+ default: false
228
+ },
229
+
230
+ overflowX: {
231
+ type: Boolean,
232
+ default: false
233
+ },
234
+ overflowY: {
235
+ type: Boolean,
236
+ default: false
237
+ },
238
+
239
+ /**
240
+ * If pagination of the data is enabled or not
241
+ */
242
+ paging: {
243
+ type: Boolean,
244
+ default: false,
245
+ },
246
+
247
+ /**
248
+ * What translation key to use for displaying the '1 - 10 of 100 Things' pagination info
249
+ */
250
+ pagingLabel: {
251
+ type: String,
252
+ default: 'sortableTable.paging.generic'
253
+ },
254
+
255
+ /**
256
+ * Additional params to pass to the pagingLabel translation
257
+ */
258
+ pagingParams: {
259
+ type: Object,
260
+ default: null,
261
+ },
262
+
263
+ /**
264
+ * Allows you to override the default preference of the number of
265
+ * items to display per page. This is used by ./paging.js if you're
266
+ * looking for a reference.
267
+ */
268
+ rowsPerPage: {
269
+ type: Number,
270
+ default: null, // Default comes from the user preference
271
+ },
272
+
273
+ /**
274
+ * Allows you to override the default translation text of no rows view
275
+ */
276
+ noRowsKey: {
277
+ type: String,
278
+ default: 'sortableTable.noRows'
279
+ },
280
+
281
+ /**
282
+ * Allows you to hide the no rows messaging.
283
+ */
284
+ showNoRows: {
285
+ type: Boolean,
286
+ default: true
287
+ },
288
+
289
+ /**
290
+ * Allows you to override the default translation text of no search data view
291
+ */
292
+ noDataKey: {
293
+ type: String,
294
+ default: 'sortableTable.noData' // i18n-uses sortableTable.noData
295
+ },
296
+
297
+ /**
298
+ * Allows you to override showing the THEAD section.
299
+ */
300
+ showHeaders: {
301
+ type: Boolean,
302
+ default: true
303
+ },
304
+
305
+ /**
306
+ * Provide a unique key that will provide a new value given changes to the environment that
307
+ * should kick off an update to table rows (for instance resource list generation or change of namespace)
308
+ *
309
+ * This does not have to update given internal facets like sort order or direction
310
+ */
311
+ sortGenerationFn: {
312
+ type: Function,
313
+ default: null,
314
+ },
315
+
316
+ /**
317
+ * Can be used in place of sortGenerationFn
318
+ */
319
+ sortGeneration: {
320
+ type: String,
321
+ default: null
322
+ },
323
+
324
+ /**
325
+ * The list will always be sorted by these regardless of what the user has selected
326
+ */
327
+ mandatorySort: {
328
+ type: Array,
329
+ default: null,
330
+ },
331
+
332
+ /**
333
+ * Allows you to link to a custom detail page for data that
334
+ * doesn't have a class model. For example, a receiver configuration
335
+ * block within an AlertmanagerConfig resource.
336
+ */
337
+ getCustomDetailLink: {
338
+ type: Function,
339
+ default: null
340
+ },
341
+
342
+ /**
343
+ * Inherited global identifier prefix for tests
344
+ * Define a term based on the parent component to avoid conflicts on multiple components
345
+ */
346
+ componentTestid: {
347
+ type: String,
348
+ default: 'sortable-table'
349
+ },
350
+ /**
351
+ * Allows for the usage of a query param to work for simple filtering (q)
352
+ */
353
+ useQueryParamsForSimpleFiltering: {
354
+ type: Boolean,
355
+ default: false
356
+ },
357
+ /**
358
+ * Manaul force the update of live and delayed cells. Change this number to kick off the update
359
+ */
360
+ forceUpdateLiveAndDelayed: {
361
+ type: Number,
362
+ default: 0
363
+ },
364
+
365
+ /**
366
+ * True if pagination is executed outside of the component
367
+ */
368
+ externalPaginationEnabled: {
369
+ type: Boolean,
370
+ default: false
371
+ },
372
+
373
+ /**
374
+ * If `externalPaginationEnabled` is true this will be used as the current page
375
+ */
376
+ externalPaginationResult: {
377
+ type: Object,
378
+ default: null
379
+ },
380
+
381
+ manualRefreshButtonSize: {
382
+ type: String,
383
+ default: ''
384
+ },
385
+ isBanner: {
386
+ // Show isBanner input to filter rows
387
+ type: Boolean,
388
+ default: false
389
+ },
390
+ marginTopValue: {
391
+ type: Number,
392
+ default: 0
393
+ },
394
+ isFilterLabel: {
395
+ type: Boolean,
396
+ default: false
397
+ },
398
+ searchPlaceholder: {
399
+ // search框内的输入提示
400
+ type: String,
401
+ default: ''
402
+ },
403
+
404
+ },
405
+
406
+ data() {
407
+ let searchQuery = '';
408
+ let eventualSearchQuery = '';
409
+
410
+ // only allow for filter query param for simple filtering for now...
411
+ if (!this.hasAdvancedFiltering && this.useQueryParamsForSimpleFiltering && this.$route.query?.q) {
412
+ searchQuery = this.$route.query?.q;
413
+ eventualSearchQuery = this.$route.query?.q;
414
+ }
415
+
416
+ const isLoading = this.loading || false;
417
+
418
+ let isCreatable = false;
419
+ const lastPath = cloud2harvesterhci(this.$route.path.split('/').pop());
420
+
421
+ if (lastPath.includes('.')) {
422
+ isCreatable = this.$store.getters['type-map/optionsFor'](lastPath).isCreatable;
423
+ } else if (lastPath === 'namespace') {
424
+ isCreatable = this.$store.getters['type-map/optionsFor'](this.$route.name).isCreatable;
425
+ }
426
+
427
+ return {
428
+ refreshButtonPhase: isLoading ? ASYNC_BUTTON_STATES.WAITING : ASYNC_BUTTON_STATES.ACTION,
429
+ expanded: {},
430
+ searchQuery,
431
+ eventualSearchQuery,
432
+ isCreatable,
433
+ subMatches: null,
434
+ actionOfInterest: null,
435
+ loadingDelay: false,
436
+ debouncedPaginationChanged: null,
437
+ /**
438
+ * The is the bool the DOM uses to show loading state. it's proxied from `loading` to avoid blipping the indicator (see usages)
439
+ */
440
+ isLoading,
441
+ isMuchSelected: false,
442
+ inputPerPage: '10',
443
+ inputPage: '', // 输入的要跳至的页码
444
+ perPageOptions: [
445
+ {
446
+ label: '10条/页',
447
+ value: '10',
448
+ },
449
+ {
450
+ label: '25条/页',
451
+ value: '25',
452
+ },
453
+ {
454
+ label: '50条/页',
455
+ value: '50',
456
+ },
457
+ {
458
+ label: '100条/页',
459
+ value: '100',
460
+ }
461
+ ]
462
+ };
463
+ },
464
+
465
+ mounted() {
466
+ this._loadingDelayTimer = setTimeout(() => {
467
+ this.loadingDelay = true;
468
+ }, 200);
469
+
470
+ // Add scroll listener to the main element
471
+ const $main = document.querySelector('main');
472
+
473
+ this._onScroll = this.onScroll.bind(this);
474
+ $main?.addEventListener('scroll', this._onScroll);
475
+
476
+ const tables = document.querySelectorAll('.sort-table-div');
477
+
478
+ tables.forEach((table) => {
479
+ this._onTableScroll = this.onTableScroll.bind(this, table);
480
+ table.addEventListener('scroll', this._onTableScroll.bind(this, table));
481
+ });
482
+
483
+ this.debouncedPaginationChanged();
484
+ },
485
+
486
+ beforeUnmount() {
487
+ clearTimeout(this._scrollTimer);
488
+ clearTimeout(this._loadingDelayTimer);
489
+ clearTimeout(this._altLoadingDelayTimer);
490
+ clearTimeout(this._liveColumnsTimer);
491
+ clearTimeout(this._delayedColumnsTimer);
492
+ clearTimeout(this.manualRefreshTimer);
493
+
494
+ const $main = document.querySelector('main');
495
+
496
+ $main?.removeEventListener('scroll', this._onScroll);
497
+ // 移除所有表格容器的滚动事件监听器
498
+ const tables = document.querySelectorAll('.sort-table-div');
499
+
500
+ tables.forEach((table) => {
501
+ table.removeEventListener('scroll', this._onTableScroll);
502
+ });
503
+ },
504
+
505
+ watch: {
506
+ eventualSearchQuery: debounce(function(q) {
507
+ this.searchQuery = q;
508
+
509
+ if (!this.hasAdvancedFiltering && this.useQueryParamsForSimpleFiltering) {
510
+ const route = {
511
+ name: this.$route.name,
512
+ params: { ...this.$route.params },
513
+ query: { ...this.$route.query, q }
514
+ };
515
+
516
+ if (!q && this.$route.query?.q) {
517
+ route.query = {};
518
+ }
519
+
520
+ this.$router.replace(route);
521
+ }
522
+ }, 200),
523
+
524
+ descending(neu, old) {
525
+ this.watcherUpdateLiveAndDelayed(neu, old);
526
+ },
527
+
528
+ searchQuery(neu, old) {
529
+ this.watcherUpdateLiveAndDelayed(neu, old);
530
+ },
531
+
532
+ sortFields(neu, old) {
533
+ this.watcherUpdateLiveAndDelayed(neu, old);
534
+ },
535
+
536
+ groupBy(neu, old) {
537
+ this.watcherUpdateLiveAndDelayed(neu, old);
538
+ },
539
+
540
+ namespaces(neu, old) {
541
+ this.watcherUpdateLiveAndDelayed(neu, old);
542
+ },
543
+
544
+ page(neu, old) {
545
+ this.watcherUpdateLiveAndDelayed(neu, old);
546
+ },
547
+
548
+ forceUpdateLiveAndDelayed(neu, old) {
549
+ this.watcherUpdateLiveAndDelayed(neu, old);
550
+ },
551
+
552
+ selectedRowsText(neu, old) {
553
+ if (neu) {
554
+ this.isMuchSelected = true;
555
+ } else {
556
+ this.isMuchSelected = false;
557
+ }
558
+ },
559
+
560
+ // Ensure we update live and delayed columns on first load
561
+ initalLoad: {
562
+ handler(neu) {
563
+ if (neu) {
564
+ this._didinit = true;
565
+ this.$nextTick(() => this.updateLiveAndDelayed());
566
+ }
567
+ },
568
+ immediate: true
569
+ },
570
+
571
+ // this is the flag that indicates that manual refresh data has been loaded
572
+ // and we should update the deferred cols
573
+ manualRefreshLoadingFinished: {
574
+ handler(neu, old) {
575
+ // this is merely to update the manual refresh button status
576
+ this.refreshButtonPhase = !neu ? ASYNC_BUTTON_STATES.WAITING : ASYNC_BUTTON_STATES.ACTION;
577
+ if (neu && neu !== old) {
578
+ this.$nextTick(() => this.updateLiveAndDelayed());
579
+ }
580
+ },
581
+ immediate: true
582
+ },
583
+
584
+ loading: {
585
+ handler(neu, old) {
586
+ // Always ensure the Refresh button phase aligns with loading state (to ensure external phase changes which can then reset the internal phase changed by click)
587
+ this.refreshButtonPhase = neu ? ASYNC_BUTTON_STATES.WAITING : ASYNC_BUTTON_STATES.ACTION;
588
+
589
+ if (this.altLoading) {
590
+ // Delay setting the actual loading indicator. This should avoid flashing up the indicator if the API responds quickly
591
+ if (neu) {
592
+ this._altLoadingDelayTimer = setTimeout(() => {
593
+ this.isLoading = true;
594
+ }, 200); // this should be higher than the targeted quick response
595
+ } else {
596
+ clearTimeout(this._altLoadingDelayTimer);
597
+ this.isLoading = false;
598
+ }
599
+ } else {
600
+ this.isLoading = neu;
601
+ }
602
+ },
603
+ immediate: true
604
+ },
605
+ },
606
+ setup(_props, { emit }) {
607
+ const table = ref(null);
608
+
609
+ const handleEnterKey = (event) => {
610
+ if (event.key === 'Enter' && !event.target?.classList?.contains('checkbox-custom')) {
611
+ emit('enter', event);
612
+ }
613
+ };
614
+
615
+ onMounted(() => {
616
+ table.value.addEventListener('keyup', handleEnterKey);
617
+ });
618
+
619
+ onBeforeUnmount(() => {
620
+ table.value.removeEventListener('keyup', handleEnterKey);
621
+ });
622
+
623
+ const store = useStore();
624
+ const { featureDropdownMenu } = useRuntimeFlag(store);
625
+
626
+ return {
627
+ table,
628
+ featureDropdownMenu,
629
+ };
630
+ },
631
+
632
+ created() {
633
+ this.debouncedRefreshTableData = debounce(this.refreshTableData, 500);
634
+ this.debouncedPaginationChanged = debounce(this.paginationChanged, 50);
635
+ },
636
+
637
+ computed: {
638
+ ...mapGetters({ isTooManyItemsToAutoUpdate: 'resource-fetch/isTooManyItemsToAutoUpdate' }),
639
+ ...mapGetters({ isManualRefreshLoading: 'resource-fetch/manualRefreshIsLoading' }),
640
+ namespaces() {
641
+ return this.$store.getters['activeNamespaceCache'];
642
+ },
643
+
644
+ initalLoad() {
645
+ return !!(!this.isLoading && !this._didinit && this.rows?.length);
646
+ },
647
+
648
+ manualRefreshLoadingFinished() {
649
+ const res = !!(!this.isLoading && this._didinit && this.rows?.length && !this.isManualRefreshLoading);
650
+
651
+ return res;
652
+ },
653
+
654
+ fullColspan() {
655
+ let span = 0;
656
+
657
+ for ( let i = 0 ; i < this.columns.length ; i++ ) {
658
+ if (!this.columns[i].hide) {
659
+ span++;
660
+ }
661
+ }
662
+
663
+ if ( this.tableActions ) {
664
+ span++;
665
+ }
666
+
667
+ if ( this.subExpandColumn ) {
668
+ span++;
669
+ }
670
+
671
+ if ( this.rowActions ) {
672
+ span++;
673
+ }
674
+
675
+ return span;
676
+ },
677
+
678
+ noResults() {
679
+ return !!this.searchQuery && this.pagedRows.length === 0;
680
+ },
681
+
682
+ noRows() {
683
+ return !this.noResults && (this.rows || []).length === 0;
684
+ },
685
+
686
+ showHeaderRow() {
687
+ // All of these are used to show content in the header
688
+ return this.search ||
689
+ this.tableActions ||
690
+ this.$slots['header-left'] ||
691
+ this.$slots['header-middle'] ||
692
+ this.$slots['header-right'] ||
693
+ this.isTooManyItemsToAutoUpdate;
694
+ },
695
+
696
+ columns() {
697
+ // Filter out any columns that are too heavy to show for large page sizes
698
+ const out = this.headers.slice().filter((c) => !c.maxPageSize || (c.maxPageSize && c.maxPageSize >= this.perPage));
699
+
700
+ if ( this.groupBy ) {
701
+ const entry = out.find((x) => x.name === this.groupBy);
702
+
703
+ if ( entry ) {
704
+ removeObject(out, entry);
705
+ }
706
+ }
707
+
708
+ // If all columns have a width, try to remove it from a column that can be variable (name)
709
+ const missingWidth = out.find((x) => !x.width);
710
+
711
+ if ( !missingWidth ) {
712
+ const variable = out.find((x) => x.canBeVariable);
713
+
714
+ if ( variable ) {
715
+ const neu = clone(variable);
716
+
717
+ delete neu.width;
718
+
719
+ out.splice(out.indexOf(variable), 1, neu);
720
+ }
721
+ }
722
+
723
+ // handle cols visibility and filtering if there is advanced filtering
724
+ if (this.hasAdvancedFiltering) {
725
+ const cols = this.handleColsVisibilyAndFiltering(out);
726
+
727
+ return cols;
728
+ }
729
+
730
+ return out;
731
+ },
732
+
733
+ // For data-title properties on <td>s
734
+ dt() {
735
+ const out = {
736
+ check: `Select: `,
737
+ actions: `Actions: `,
738
+ };
739
+
740
+ this.columns.forEach((col) => {
741
+ out[col.name] = `${ (col.label || col.name) }:`;
742
+ });
743
+
744
+ return out;
745
+ },
746
+
747
+ classObject() {
748
+ return {
749
+ 'top-divider': this.topDivider,
750
+ 'body-dividers': this.bodyDividers,
751
+ 'overflow-y': this.overflowY,
752
+ 'overflow-x': this.overflowX,
753
+ 'alt-loading': this.altLoading && this.isLoading
754
+ };
755
+ },
756
+
757
+ // Do we have any live columns?
758
+ hasLiveColumns() {
759
+ const liveColumns = this.columns.find((c) => c.formatter?.startsWith('Live') || c.liveUpdates);
760
+
761
+ return !!liveColumns;
762
+ },
763
+
764
+ hasDelayedColumns() {
765
+ const delaeydColumns = this.columns.find((c) => c.delayLoading);
766
+
767
+ return !!delaeydColumns;
768
+ },
769
+
770
+ columnFormmatterIDs() {
771
+ const columnsIds = {};
772
+
773
+ this.columns.forEach((c) => {
774
+ if (c.formatter) {
775
+ columnsIds[c.formatter] = dasherize(c.formatter);
776
+ }
777
+ });
778
+
779
+ return columnsIds;
780
+ },
781
+
782
+ // Generate row and column data for easier rendering in the template
783
+ // ensures we only call methods like `valueFor` once
784
+ displayRows() {
785
+ const rows = [];
786
+ const columnFormmatterIDs = this.columnFormmatterIDs;
787
+
788
+ this.groupedRows.forEach((grp) => {
789
+ const group = {
790
+ grp,
791
+ key: grp.key,
792
+ ref: grp.ref,
793
+ rows: [],
794
+ };
795
+
796
+ rows.push(group);
797
+
798
+ grp.rows.forEach((row) => {
799
+ const rowData = {
800
+ row,
801
+ key: this.get(row, this.keyField),
802
+ showSubRow: this.showSubRow(row, this.keyField),
803
+ canRunBulkActionOfInterest: this.canRunBulkActionOfInterest(row),
804
+ columns: []
805
+ };
806
+
807
+ group.rows.push(rowData);
808
+
809
+ this.columns.forEach((c) => {
810
+ const value = c.delayLoading ? undefined : this.valueFor(row, c, c.isLabel);
811
+ let component;
812
+ let formatted = value;
813
+ let needRef = false;
814
+
815
+ if (Array.isArray(value)) {
816
+ formatted = value.join(', ');
817
+ }
818
+
819
+ if (c.formatter) {
820
+ if (FORMATTERS[c.formatter]) {
821
+ component = FORMATTERS[c.formatter];
822
+ needRef = true;
823
+ } else {
824
+ // Check if we have a formatter from a plugin
825
+ const pluginFormatter = this.$plugin?.getDynamic('formatters', c.formatter);
826
+
827
+ if (pluginFormatter) {
828
+ component = defineAsyncComponent(pluginFormatter);
829
+ needRef = true;
830
+ }
831
+ }
832
+ }
833
+
834
+ rowData.columns.push({
835
+ col: c,
836
+ value,
837
+ formatted,
838
+ component,
839
+ needRef,
840
+ delayed: c.delayLoading,
841
+ live: c.formatter?.startsWith('Live') || c.liveUpdates,
842
+ label: this.labelFor(c),
843
+ dasherize: columnFormmatterIDs[c.formatter] || '',
844
+ });
845
+ });
846
+ });
847
+ });
848
+
849
+ return rows;
850
+ },
851
+ },
852
+
853
+ methods: {
854
+ onTableScroll(table, e) {
855
+ // 记录最后滚动的距离
856
+ let lastScrollTop = 0;
857
+ let lastScrollLeft = 0;
858
+
859
+ // 监听容器滚动
860
+ table.addEventListener('scroll', (e) => {
861
+ // 如果当前垂直滚动距离不等于上次
862
+ if (e.target.scrollTop !== lastScrollTop) {
863
+ // 更新最后距离
864
+ lastScrollTop = e.target.scrollTop;
865
+
866
+ // 移除左右阴影样式
867
+ table.classList.remove('shadow-left');
868
+ table.classList.remove('shadow-right');
869
+
870
+ // 如果滚动到顶部,移除顶部阴影样式
871
+ // if (lastScrollTop === 0) {
872
+ // table.classList.remove('shadow-top');
873
+ // }
874
+ // // 否则添加顶部阴影样式
875
+ // else {
876
+ // table.classList.add('shadow-top');
877
+ // }
878
+
879
+ // 如果滚动到底部,移除底部阴影样式
880
+ // if (lastScrollTop + table.clientHeight === table.scrollHeight) {
881
+ // table.classList.remove('shadow-bottom');
882
+ // }
883
+ // // 否则添加底部阴影样式
884
+ // else {
885
+ // table.classList.add('shadow-bottom');
886
+ // }
887
+
888
+ // 阴影效果修正
889
+ table.classList.remove('shadow-x');
890
+ table.classList.add('shadow-y');
891
+ }
892
+
893
+ // 如果当前水平滚动距离不等于上次
894
+ else if (e.target.scrollLeft !== lastScrollLeft) {
895
+ // 更新最后距离
896
+ lastScrollLeft = e.target.scrollLeft;
897
+
898
+ // 移除上下阴影样式
899
+ // table.classList.remove('shadow-top');
900
+ // table.classList.remove('shadow-bottom');
901
+
902
+ // 如果滚动到左边,移除左边阴影样式
903
+ if (lastScrollLeft === 0) {
904
+ table.classList.remove('shadow-left');
905
+ }
906
+ // 否则添加左边阴影样式
907
+ else {
908
+ table.classList.add('shadow-left');
909
+ }
910
+
911
+ // 如果滚动到右边,移除右边阴影样式
912
+ if (lastScrollLeft + table.clientWidth === table.scrollWidth) {
913
+ table.classList.remove('shadow-right');
914
+ }
915
+ // 否则添加右边阴影样式
916
+ else {
917
+ table.classList.add('shadow-right');
918
+ }
919
+
920
+ // 阴影效果修正
921
+ table.classList.remove('shadow-y');
922
+ table.classList.add('shadow-x');
923
+ }
924
+ });
925
+ },
926
+ changePerPage(value) {
927
+ this.inputPerPage = value;
928
+ this.setgetPerPage(value);
929
+ },
930
+ handleToPage() {
931
+ this.setPage(parseInt(this.inputPage, 10));
932
+ },
933
+ refreshTableData() {
934
+ this.$store.dispatch('resource-fetch/doManualRefresh');
935
+ },
936
+ get,
937
+ dasherize,
938
+ muchSelect(value) {
939
+ console.log(value);
940
+
941
+ this.isMuchSelected = !this.isMuchSelected;
942
+ this.onToggleAll(value);
943
+ },
944
+
945
+ onScroll() {
946
+ if (this.hasLiveColumns || this.hasDelayedColumns) {
947
+ clearTimeout(this._liveColumnsTimer);
948
+ clearTimeout(this._scrollTimer);
949
+ clearTimeout(this._delayedColumnsTimer);
950
+ this._scrollTimer = setTimeout(() => {
951
+ this.updateLiveColumns();
952
+ this.updateDelayedColumns();
953
+ }, 300);
954
+ }
955
+ },
956
+
957
+ watcherUpdateLiveAndDelayed(neu, old) {
958
+ if (neu !== old) {
959
+ this.$nextTick(() => this.updateLiveAndDelayed());
960
+ }
961
+ },
962
+
963
+ updateLiveAndDelayed() {
964
+ if (this.hasLiveColumns) {
965
+ this.updateLiveColumns();
966
+ }
967
+
968
+ if (this.hasDelayedColumns) {
969
+ this.updateDelayedColumns();
970
+ }
971
+ },
972
+
973
+ updateDelayedColumns() {
974
+ clearTimeout(this._delayedColumnsTimer);
975
+
976
+ if (!this.$refs.column || this.pagedRows.length === 0) {
977
+ return;
978
+ }
979
+
980
+ const delayedColumns = this.$refs.column.filter((c) => c.startDelayedLoading && !c.__delayedLoading);
981
+ // We add 100 pixels here - so we will render the delayed columns for a few extra rows below what is visible
982
+ // This way if you scroll slowly, you won't see the columns being loaded
983
+ const clientHeight = (window.innerHeight || document.documentElement.clientHeight) + 100;
984
+
985
+ let scheduled = 0;
986
+
987
+ for (let i = 0; i < delayedColumns.length; i++) {
988
+ const dc = delayedColumns[i];
989
+ const y = dc.$el.getBoundingClientRect().y;
990
+
991
+ if (y >= 0 && y <= clientHeight) {
992
+ dc.startDelayedLoading(true);
993
+ dc.__delayedLoading = true;
994
+
995
+ scheduled++;
996
+
997
+ // Only update 4 at a time
998
+ if (scheduled === 4) {
999
+ this._delayedColumnsTimer = setTimeout(this.updateDelayedColumns, 100);
1000
+
1001
+ return;
1002
+ }
1003
+ }
1004
+ }
1005
+ },
1006
+
1007
+ updateLiveColumns() {
1008
+ clearTimeout(this._liveColumnsTimer);
1009
+
1010
+ if (!this.$refs.column || !this.hasLiveColumns || this.pagedRows.length === 0) {
1011
+ return;
1012
+ }
1013
+
1014
+ const clientHeight = window.innerHeight || document.documentElement.clientHeight;
1015
+ const liveColumns = this.$refs.column.filter((c) => !!c.liveUpdate);
1016
+ const now = day();
1017
+ let next = Number.MAX_SAFE_INTEGER;
1018
+
1019
+ for (let i = 0; i < liveColumns.length; i++) {
1020
+ const column = liveColumns[i];
1021
+ const y = column.$el.getBoundingClientRect().y;
1022
+
1023
+ if (y >= 0 && y <= clientHeight) {
1024
+ const diff = column.liveUpdate(now);
1025
+
1026
+ if (diff < next) {
1027
+ next = diff;
1028
+ }
1029
+ }
1030
+ }
1031
+
1032
+ if (next < 1 ) {
1033
+ next = 1;
1034
+ }
1035
+
1036
+ // Schedule again
1037
+ this._liveColumnsTimer = setTimeout(() => this.updateLiveColumns(), next * 1000);
1038
+ },
1039
+
1040
+ labelFor(col) {
1041
+ if ( col.labelKey ) {
1042
+ return this.t(col.labelKey, undefined, true);
1043
+ } else if ( col.label ) {
1044
+ return col.label;
1045
+ }
1046
+
1047
+ return ucFirst(col.name);
1048
+ },
1049
+
1050
+ valueFor(row, col, isLabel) {
1051
+ if (typeof col.value === 'function') {
1052
+ return col.value(row);
1053
+ }
1054
+
1055
+ if (isLabel) {
1056
+ if (row.metadata?.labels && row.metadata?.labels[col.label]) {
1057
+ return row.metadata?.labels[col.label];
1058
+ }
1059
+
1060
+ return '';
1061
+ }
1062
+
1063
+ // Use to debug table columns using expensive value getters
1064
+ // console.warn(`Performance: Table valueFor: ${ col.name } ${ col.value }`); // eslint-disable-line no-console
1065
+
1066
+ const expr = col.value || col.name;
1067
+
1068
+ if (!expr) {
1069
+ console.error('No path has been defined for this column, unable to get value of cell', col); // eslint-disable-line no-console
1070
+
1071
+ return '';
1072
+ }
1073
+ const out = get(row, expr);
1074
+
1075
+ if ( out === null || out === undefined ) {
1076
+ return '';
1077
+ }
1078
+
1079
+ return out;
1080
+ },
1081
+
1082
+ isExpanded(row) {
1083
+ const key = row[this.keyField];
1084
+
1085
+ return !!this.expanded[key];
1086
+ },
1087
+
1088
+ toggleExpand(row) {
1089
+ const key = row[this.keyField];
1090
+ const val = !this.expanded[key];
1091
+
1092
+ this.expanded[key] = val;
1093
+ this.expanded = { ...this.expanded };
1094
+
1095
+ return val;
1096
+ },
1097
+
1098
+ setBulkActionOfInterest(action) {
1099
+ this.actionOfInterest = action;
1100
+ },
1101
+
1102
+ // Can the action of interest be applied to the specified resource?
1103
+ canRunBulkActionOfInterest(resource) {
1104
+ if ( !this.actionOfInterest || isEmpty(resource?.availableActions) ) {
1105
+ return false;
1106
+ }
1107
+
1108
+ const matchingResourceAction = resource.availableActions?.find((a) => a.action === this.actionOfInterest.action);
1109
+
1110
+ return matchingResourceAction?.enabled;
1111
+ },
1112
+
1113
+ focusSearch() {
1114
+ if ( this.$refs.searchQuery ) {
1115
+ this.$refs.searchQuery.focus();
1116
+ this.$refs.searchQuery.select();
1117
+ }
1118
+ },
1119
+
1120
+ nearestCheckbox() {
1121
+ return document.activeElement.closest('tr.main-row')?.querySelector('.checkbox-custom');
1122
+ },
1123
+
1124
+ focusAdjacent(next = true) {
1125
+ const all = Array.from(this.$el.querySelectorAll('.checkbox-custom'));
1126
+
1127
+ const cur = this.nearestCheckbox();
1128
+ let idx = -1;
1129
+
1130
+ if ( cur ) {
1131
+ idx = all.indexOf(cur) + (next ? 1 : -1 );
1132
+ } else if ( next ) {
1133
+ idx = 1;
1134
+ } else {
1135
+ idx = all.length - 1;
1136
+ }
1137
+
1138
+ if ( idx < 1 ) { // Don't go up to the check all button
1139
+ idx = 1;
1140
+
1141
+ return null;
1142
+ }
1143
+
1144
+ if ( idx >= all.length ) {
1145
+ idx = all.length - 1;
1146
+
1147
+ return null;
1148
+ }
1149
+
1150
+ if ( all[idx] ) {
1151
+ all[idx].focus();
1152
+
1153
+ return all[idx];
1154
+ }
1155
+ },
1156
+
1157
+ focusNext: throttle(function(event, more = false) {
1158
+ const elem = this.focusAdjacent(true);
1159
+ const row = getParent(elem, 'tr');
1160
+
1161
+ if (row?.classList.contains('row-selected')) {
1162
+ return;
1163
+ }
1164
+
1165
+ this.keySelectRow(row, more);
1166
+ }, 50),
1167
+
1168
+ focusPrevious: throttle(function(event, more = false) {
1169
+ const elem = this.focusAdjacent(false);
1170
+ const row = getParent(elem, 'tr');
1171
+
1172
+ if (row?.classList.contains('row-selected')) {
1173
+ return;
1174
+ }
1175
+
1176
+ this.keySelectRow(row, more);
1177
+ }, 50),
1178
+
1179
+ showSubRow(row, keyField) {
1180
+ const hasInjectedSubRows = this.subRows && (!this.subExpandable || this.expanded[get(row, keyField)]);
1181
+ const hasStateDescription = this.subRowsDescription && row.stateDescription;
1182
+
1183
+ return hasInjectedSubRows || hasStateDescription;
1184
+ },
1185
+
1186
+ handleActionButtonClick(i, event) {
1187
+ // Each row in the table gets its own ref with
1188
+ // a number based on its index. If you are using
1189
+ // an ActionMenu that doen't have a dependency on Vuex,
1190
+ // these refs are useful because you can reuse the
1191
+ // same ActionMenu component on a page with many different
1192
+ // target elements in a list,
1193
+ // so you can still avoid the performance problems that
1194
+ // could result if the ActionMenu was in every row. The menu
1195
+ // will open on whichever target element is clicked.
1196
+ this.$emit('clickedActionButton', {
1197
+ event,
1198
+ targetElement: this.$refs[`actionButton${ i }`][0],
1199
+ });
1200
+ },
1201
+
1202
+ paginationChanged() {
1203
+ if (!this.externalPaginationEnabled) {
1204
+ return;
1205
+ }
1206
+
1207
+ this.$emit('pagination-changed', {
1208
+ page: this.page,
1209
+ perPage: this.perPage,
1210
+ filter: {
1211
+ searchFields: this.searchFields,
1212
+ searchQuery: this.searchQuery
1213
+ },
1214
+ sort: this.sortFields,
1215
+ descending: this.descending
1216
+ });
1217
+ }
1218
+ }
1219
+ };
1220
+ </script>
1221
+
1222
+ <template>
1223
+ <div
1224
+ ref="container"
1225
+ :data-testid="componentTestid + '-list-container'"
1226
+ >
1227
+ <div
1228
+ :class="{'titled': $slots.title && $slots.title.length, 'mb-40': isFilterLabel, 'mb-20': search || isCreatable}"
1229
+ class="sortable-table-header "
1230
+ :style="{marginTop: search&& !isBanner ? marginTopValue + 'px' : '0px',marginLeft: isCreatable ? '100px' : '-10px',maxHeight: '32px'}"
1231
+ >
1232
+ <slot name="title" />
1233
+ <div
1234
+ v-if="showHeaderRow"
1235
+ class="fixed-header-actions"
1236
+ :class="{button: !!$slots['header-button'], 'advanced-filtering': hasAdvancedFiltering, }"
1237
+ style="display: flex;"
1238
+ >
1239
+ <!-- <div
1240
+ :class="bulkActionsClass"
1241
+ class="bulk"
1242
+ >
1243
+
1244
+ </div> -->
1245
+ <div
1246
+ v-if="!hasAdvancedFiltering && $slots['header-middle']"
1247
+ class="middle"
1248
+ style="margin-left: 10px;margin-right: -10px;"
1249
+ >
1250
+ <slot name="header-middle" />
1251
+ </div>
1252
+
1253
+ <div
1254
+ v-if="search || hasAdvancedFiltering || isTooManyItemsToAutoUpdate || $slots['header-right']"
1255
+ class="search row"
1256
+ data-testid="search-box-filter-row"
1257
+ style="max-height: 32px;display: contents;"
1258
+ >
1259
+ <ul
1260
+ v-if="hasAdvancedFiltering"
1261
+ class="advanced-filters-applied"
1262
+ >
1263
+ <li
1264
+ v-for="(filter, i) in advancedFilteringValues"
1265
+ :key="i"
1266
+ >
1267
+ <span class="label">{{ `"${filter.value}" ${ t('sortableTable.in') } ${filter.label}` }}</span>
1268
+ <span
1269
+ class="cross"
1270
+ @click="clearAdvancedFilter(i)"
1271
+ >&#10005;</span>
1272
+ <div class="bg" />
1273
+ </li>
1274
+ </ul>
1275
+ <slot name="header-right" />
1276
+ <AsyncButton
1277
+ v-if="isTooManyItemsToAutoUpdate"
1278
+ mode="manual-refresh"
1279
+ :size="manualRefreshButtonSize"
1280
+ :current-phase="refreshButtonPhase"
1281
+ @click="debouncedRefreshTableData"
1282
+ />
1283
+ <div
1284
+ v-if="hasAdvancedFiltering"
1285
+ ref="advanced-filter-group"
1286
+ class="advanced-filter-group"
1287
+ >
1288
+ <button
1289
+ class="btn role-primary"
1290
+ @click="advancedFilteringVisibility = !advancedFilteringVisibility;"
1291
+ >
1292
+ {{ t('sortableTable.addFilter') }}
1293
+ </button>
1294
+ <div
1295
+ v-show="advancedFilteringVisibility"
1296
+ class="advanced-filter-container"
1297
+ >
1298
+ <input
1299
+ ref="advancedSearchQuery"
1300
+ v-model="advFilterSearchTerm"
1301
+ type="search"
1302
+ class="advanced-search-box"
1303
+ :placeholder="t('sortableTable.filterFor')"
1304
+ >
1305
+ <div class="middle-block">
1306
+ <span>{{ t('sortableTable.in') }}</span>
1307
+ <LabeledSelect
1308
+ v-model:value="advFilterSelectedProp"
1309
+ class="filter-select"
1310
+ :clearable="true"
1311
+ :options="advFilterSelectOptions"
1312
+ :disabled="false"
1313
+ :searchable="false"
1314
+ mode="edit"
1315
+ :multiple="false"
1316
+ :taggable="false"
1317
+ :placeholder="t('sortableTable.selectCol')"
1318
+ @selecting="(col) => advFilterSelectedLabel = col.label"
1319
+ />
1320
+ </div>
1321
+ <div class="bottom-block">
1322
+ <button
1323
+ class="btn role-secondary"
1324
+ :disabled="!advancedFilteringValues.length"
1325
+ @click="clearAllAdvancedFilters"
1326
+ >
1327
+ {{ t('sortableTable.resetFilters') }}
1328
+ </button>
1329
+ <button
1330
+ class="btn role-primary"
1331
+ @click="addAdvancedFilter"
1332
+ >
1333
+ {{ t('sortableTable.add') }}
1334
+ </button>
1335
+ </div>
1336
+ </div>
1337
+ </div>
1338
+ <p
1339
+ v-else-if="search"
1340
+ id="describe-filter-sortable-table"
1341
+ hidden
1342
+ >
1343
+ {{ t('sortableTable.filteringDescription') }}
1344
+ </p>
1345
+ <slot name="header-button" />
1346
+ <input
1347
+ v-if="search"
1348
+ ref="searchQuery"
1349
+ v-model="eventualSearchQuery"
1350
+ type="search"
1351
+ class="input-sm search-box"
1352
+ :aria-label="t('sortableTable.searchLabel')"
1353
+ aria-describedby="describe-filter-sortable-table"
1354
+ :placeholder="t('sortableTable.search')+searchPlaceholder"
1355
+ >
1356
+
1357
+ </div>
1358
+ </div>
1359
+ </div>
1360
+ <div v-if="$slots['banner']">
1361
+ <slot name="banner"></slot>
1362
+ </div>
1363
+ <div class="sort-table-div">
1364
+ <table
1365
+ ref="table"
1366
+ class="sortable-table"
1367
+ :class="classObject"
1368
+ width="100%"
1369
+ role="table"
1370
+ >
1371
+ <THead
1372
+ v-if="showHeaders"
1373
+ :label-for="labelFor"
1374
+ :columns="columns"
1375
+ :group="group"
1376
+ :group-options="advGroupOptions"
1377
+ :has-advanced-filtering="hasAdvancedFiltering"
1378
+ :adv-filter-hide-labels-as-cols="advFilterHideLabelsAsCols"
1379
+ :table-actions="tableActions"
1380
+ :table-cols-options="columnOptions"
1381
+ :row-actions="rowActions"
1382
+ :sub-expand-column="subExpandColumn"
1383
+ :row-actions-width="rowActionsWidth"
1384
+ :how-much-selected="howMuchSelected"
1385
+ :sort-by="sortBy"
1386
+ :default-sort-by="_defaultSortBy"
1387
+ :descending="descending"
1388
+ :no-rows="noRows"
1389
+ :loading="isLoading && !loadingDelay"
1390
+ :no-results="noResults"
1391
+ @on-toggle-all="onToggleAll"
1392
+ @on-sort-change="changeSort"
1393
+ @col-visibility-change="changeColVisibility"
1394
+ @group-value-change="(val) => $emit('group-value-change', val)"
1395
+ @update-cols-options="updateColsOptions"
1396
+ />
1397
+
1398
+ <!-- Don't display anything if we're loading and the delay has yet to pass -->
1399
+ <div v-if="isLoading && !loadingDelay" />
1400
+
1401
+ <tbody v-else-if="isLoading && !altLoading">
1402
+ <slot name="loading">
1403
+ <tr>
1404
+ <td :colspan="fullColspan">
1405
+ <div class="data-loading">
1406
+ <i class="icon-spin icon icon-spinner" />
1407
+ <t
1408
+ k="generic.loading"
1409
+ :raw="true"
1410
+ />
1411
+ </div>
1412
+ </td>
1413
+ </tr>
1414
+ </slot>
1415
+ </tbody>
1416
+ <tbody v-else-if="noRows">
1417
+ <slot name="no-rows">
1418
+ <tr class="no-rows">
1419
+ <td :colspan="fullColspan">
1420
+ <t
1421
+ v-if="showNoRows"
1422
+ :k="noRowsKey"
1423
+ />
1424
+ </td>
1425
+ </tr>
1426
+ </slot>
1427
+ </tbody>
1428
+ <tbody v-else-if="noResults">
1429
+ <slot name="no-results">
1430
+ <tr class="no-results">
1431
+ <td
1432
+ :colspan="fullColspan"
1433
+ class="text-center"
1434
+ >
1435
+ <t :k="noDataKey" />
1436
+ </td>
1437
+ </tr>
1438
+ </slot>
1439
+ </tbody>
1440
+ <tbody
1441
+ v-for="(groupedRows) in displayRows"
1442
+ v-else
1443
+ :key="groupedRows.key"
1444
+ tabindex="-1"
1445
+ :class="{ group: groupBy }"
1446
+ >
1447
+ <slot
1448
+ v-if="groupBy"
1449
+ name="group-row"
1450
+ :group="groupedRows"
1451
+ :fullColspan="fullColspan"
1452
+ >
1453
+ <tr class="group-row">
1454
+ <td :colspan="fullColspan">
1455
+ <slot
1456
+ name="group-by"
1457
+ :group="groupedRows.grp"
1458
+ >
1459
+ <div
1460
+ v-trim-whitespace
1461
+ class="group-tab"
1462
+ >
1463
+ {{ groupedRows.ref }}
1464
+ </div>
1465
+ </slot>
1466
+ </td>
1467
+ </tr>
1468
+ </slot>
1469
+ <template
1470
+ v-for="(row, i) in groupedRows.rows"
1471
+ :key="i"
1472
+ >
1473
+ <slot
1474
+ name="main-row"
1475
+ :row="row.row"
1476
+ >
1477
+ <slot
1478
+ :name="'main-row:' + (row.row.mainRowKey || i)"
1479
+ :full-colspan="fullColspan"
1480
+ >
1481
+ <!-- The data-cant-run-bulk-action-of-interest attribute is being used instead of :class because
1482
+ because our selection.js invokes toggleClass and :class clobbers what was added by toggleClass if
1483
+ the value of :class changes. -->
1484
+ <tr
1485
+ class="main-row"
1486
+ :data-testid="componentTestid + '-' + i + '-row'"
1487
+ :class="{ 'has-sub-row': row.showSubRow}"
1488
+ :data-node-id="row.key"
1489
+ :data-cant-run-bulk-action-of-interest="actionOfInterest && !row.canRunBulkActionOfInterest"
1490
+ >
1491
+ <td
1492
+ v-if="tableActions"
1493
+ class="row-check"
1494
+ align="middle"
1495
+ >
1496
+ {{ row.mainRowKey }}
1497
+ <Checkbox
1498
+ class="selection-checkbox"
1499
+ :data-node-id="row.key"
1500
+ :data-testid="componentTestid + '-' + i + '-checkbox'"
1501
+ :value="selectedRows.includes(row.row)"
1502
+ :alternate-label="t('sortableTable.genericRowCheckbox', { item: row && row.row ? row.row.id : '' })"
1503
+ />
1504
+ </td>
1505
+ <td
1506
+ v-if="subExpandColumn"
1507
+ class="row-expand"
1508
+ align="middle"
1509
+ >
1510
+ <i
1511
+ data-title="Toggle Expand"
1512
+ :class="{
1513
+ icon: true,
1514
+ 'icon-chevron-right': !expanded[row.row[keyField]],
1515
+ 'icon-chevron-down': !!expanded[row.row[keyField]]
1516
+ }"
1517
+ @click.stop="toggleExpand(row.row)"
1518
+ />
1519
+ </td>
1520
+ <template
1521
+ v-for="(col, j) in row.columns"
1522
+ :key="j"
1523
+ >
1524
+ <slot
1525
+ :name="'col:' + col.col.name"
1526
+ :row="row.row"
1527
+ :col="col.col"
1528
+ :dt="dt"
1529
+ :expanded="expanded"
1530
+ :rowKey="row.key"
1531
+ >
1532
+ <td
1533
+ v-show="!hasAdvancedFiltering || (hasAdvancedFiltering && col.col.isColVisible)"
1534
+ :key="col.col.name"
1535
+ :data-title="col.col.label"
1536
+ :data-testid="`sortable-cell-${ i }-${ j }`"
1537
+ :align="col.col.align || 'left'"
1538
+ :class="{['col-'+col.dasherize]: !!col.col.formatter, [col.col.breakpoint]: !!col.col.breakpoint, ['skip-select']: col.col.skipSelect}"
1539
+ :width="col.col.width"
1540
+ >
1541
+ <slot
1542
+ :name="'cell:' + col.col.name"
1543
+ :row="row.row"
1544
+ :col="col.col"
1545
+ :value="col.value"
1546
+ >
1547
+ <component
1548
+ :is="col.component"
1549
+ v-if="col.component && col.needRef"
1550
+ ref="column"
1551
+ :value="col.value"
1552
+ :row="row.row"
1553
+ :col="col.col"
1554
+ :get-custom-detail-link="getCustomDetailLink"
1555
+ v-bind="col.col.formatterOpts"
1556
+ :row-key="row.key"
1557
+ />
1558
+ <component
1559
+ :is="col.component"
1560
+ v-else-if="col.component"
1561
+ :value="col.value"
1562
+ :row="row.row"
1563
+ :col="col.col"
1564
+ v-bind="col.col.formatterOpts"
1565
+ :row-key="row.key"
1566
+ />
1567
+ <component
1568
+ :is="col.col.formatter"
1569
+ v-else-if="col.col.formatter"
1570
+ :value="col.value"
1571
+ :row="row.row"
1572
+ :col="col.col"
1573
+ v-bind="col.col.formatterOpts"
1574
+ :row-key="row.key"
1575
+ />
1576
+ <template v-else-if="col.value !== ''">
1577
+ {{ col.formatted }}
1578
+ </template>
1579
+ <template v-else-if="col.col.dashIfEmpty">
1580
+ <span class="text-muted">&mdash;</span>
1581
+ </template>
1582
+ </slot>
1583
+ </td>
1584
+ </slot>
1585
+ </template>
1586
+ <td
1587
+ v-if="rowActions"
1588
+ :align="'left'"
1589
+ style="height:60px"
1590
+ >
1591
+ <div style="display: flex;align-items: center;">
1592
+ <slot
1593
+ name="row-actions"
1594
+ :row="row.row"
1595
+ :index="i"
1596
+ >
1597
+ </slot>
1598
+ <template v-if="featureDropdownMenu">
1599
+ <ActionMenu
1600
+ :resource="row.row"
1601
+ :data-testid="componentTestid + '-' + i + '-action-button'"
1602
+ :button-aria-label="t('sortableTable.tableActionsLabel', { resource: row?.row?.id || '' })"
1603
+ />
1604
+ </template>
1605
+ <template v-else>
1606
+ <ButtonMultiAction
1607
+ :id="`actionButton+${i}+${(row.row && row.row.name) ? row.row.name : ''}`"
1608
+ :ref="`actionButton${i}`"
1609
+ aria-haspopup="true"
1610
+ aria-expanded="false"
1611
+ :aria-label="t('sortableTable.tableActionsLabel', { resource: row?.row?.id || '' })"
1612
+ :data-testid="componentTestid + '-' + i + '-action-button'"
1613
+ :borderless="true"
1614
+ @click="handleActionButtonClick(i, $event)"
1615
+ @keyup.enter="handleActionButtonClick(i, $event)"
1616
+ @keyup.space="handleActionButtonClick(i, $event)"
1617
+ />
1618
+ </template>
1619
+ </div>
1620
+ </td>
1621
+ </tr>
1622
+ </slot>
1623
+ </slot>
1624
+ <!-- <slot
1625
+ v-if="row.showSubRow"
1626
+ name="sub-row"
1627
+ :full-colspan="fullColspan"
1628
+ :row="row.row"
1629
+ :sub-matches="subMatches"
1630
+ :keyField="keyField"
1631
+ :componentTestid="componentTestid"
1632
+ :i="i"
1633
+ :onRowMouseEnter="onRowMouseEnter"
1634
+ :onRowMouseLeave="onRowMouseLeave"
1635
+ >
1636
+ <tr
1637
+ v-if="row.row.stateDescription"
1638
+ :key="row.row[keyField] + '-description'"
1639
+ :data-testid="componentTestid + '-' + i + '-row-description'"
1640
+ class="state-description sub-row"
1641
+ @mouseenter="onRowMouseEnter"
1642
+ @mouseleave="onRowMouseLeave"
1643
+ >
1644
+ <td
1645
+ v-if="tableActions"
1646
+ class="row-check"
1647
+ align="middle"
1648
+ />
1649
+ <td
1650
+ :colspan="fullColspan - (tableActions ? 1: 0)"
1651
+ :class="{ 'text-error' : row.row.stateObj.error }"
1652
+ >
1653
+ {{ row.row.stateDescription }}
1654
+ </td>
1655
+ </tr>
1656
+ </slot> -->
1657
+ </template>
1658
+ </tbody>
1659
+ </table>
1660
+ </div>
1661
+ <div
1662
+ v-if="!noRows && !noResults"
1663
+ :class="$route.path=== '/account'? 'chebox-padding':''"
1664
+ style="display: flex;justify-content: flex-start;align-content: center;height: 62px;position: sticky;bottom: 0;background-color: var(--header-bg);padding: 15px 20px 0 30px;margin: 0 -20px 0 -20px;z-index:20"
1665
+ >
1666
+ <div style="display: flex;justify-content: center;height: 32px;">
1667
+ <Checkbox
1668
+ v-if="tableActions&&availableActions.some(item => item.action != 'download')"
1669
+ :value="isMuchSelected"
1670
+ class="check"
1671
+ data-testid="sortable-table_check_select_all"
1672
+ :disabled="noRows || noResults"
1673
+ style="display: flex;justify-content: center;align-content: center;"
1674
+ @update:value = "muchSelect"
1675
+ />
1676
+ </div>
1677
+ <div
1678
+ :class="{'titled': $slots.title && $slots.title.length}"
1679
+ class="sortable-table-header"
1680
+ style="margin-left: 10px;min-width: 55%;"
1681
+ >
1682
+ <slot name="title" />
1683
+ <div
1684
+ v-if="showHeaderRow"
1685
+ class="fixed-header-actions"
1686
+ :class="{button: !!$slots['header-button'], 'advanced-filtering': hasAdvancedFiltering,}"
1687
+ >
1688
+ <div
1689
+ :class="bulkActionsClass"
1690
+ class="bulk"
1691
+ >
1692
+ <slot name="header-left">
1693
+ <template v-if="tableActions">
1694
+ <button
1695
+ v-for="(act) in availableActions"
1696
+ :id="act.action"
1697
+ :key="act.action"
1698
+ v-clean-tooltip="actionTooltip"
1699
+ type="button"
1700
+ class="btn role-primary"
1701
+ :class="{[bulkActionClass]:true}"
1702
+ :disabled="!act.enabled"
1703
+ :data-testid="componentTestid + '-' + act.action"
1704
+ role="button"
1705
+ :aria-label="act.label"
1706
+ @click="applyTableAction(act, null, $event)"
1707
+ @keydown.enter.stop
1708
+ @mouseover="setBulkActionOfInterest(act)"
1709
+ @mouseleave="setBulkActionOfInterest(null)"
1710
+ >
1711
+ <i
1712
+ v-if="act.icon"
1713
+ :class="act.icon"
1714
+ />
1715
+ <span v-clean-html="act.label" />
1716
+ </button>
1717
+ <template v-if="featureDropdownMenu">
1718
+ <ActionDropdownShell
1719
+ :disabled="!selectedRows.length"
1720
+ :hidden-actions="hiddenActions"
1721
+ :action-tooltip="actionTooltip"
1722
+ @click="applyTableAction"
1723
+ @mouseover="setBulkActionOfInterest"
1724
+ @mouseleave="setBulkActionOfInterest"
1725
+ />
1726
+ </template>
1727
+ <template v-else>
1728
+ <ActionDropdown
1729
+ :class="bulkActionsDropdownClass"
1730
+ class="bulk-actions-dropdown"
1731
+ :disable-button="!selectedRows.length"
1732
+ size="sm"
1733
+ >
1734
+ <template #button-content>
1735
+ <button
1736
+ ref="actionDropDown"
1737
+ class="btn bg-primary mr-0"
1738
+ :disabled="!selectedRows.length"
1739
+ >
1740
+ <i class="icon icon-gear" />
1741
+ <span>{{ t('sortableTable.bulkActions.collapsed.label') }}</span>
1742
+ <i class="ml-10 icon icon-chevron-down" />
1743
+ </button>
1744
+ </template>
1745
+ <template #popover-content>
1746
+ <ul class="list-unstyled menu">
1747
+ <li
1748
+ v-for="(act, i) in hiddenActions"
1749
+ :key="i"
1750
+ v-close-popper
1751
+ v-clean-tooltip="{
1752
+ content: actionTooltip,
1753
+ placement: 'right'
1754
+ }"
1755
+ :class="{ disabled: !act.enabled }"
1756
+ @click="applyTableAction(act, null, $event)"
1757
+ @mouseover="setBulkActionOfInterest(act)"
1758
+ @mouseleave="setBulkActionOfInterest(null)"
1759
+ >
1760
+ <i
1761
+ v-if="act.icon"
1762
+ :class="act.icon"
1763
+ />
1764
+ <span v-clean-html="act.label" />
1765
+ </li>
1766
+ </ul>
1767
+ </template>
1768
+ </ActionDropdown>
1769
+ </template>
1770
+ <label
1771
+ v-if="selectedRowsText"
1772
+ :class="bulkActionAvailabilityClass"
1773
+ class="action-availability"
1774
+ >
1775
+ {{ tableActions&&availableActions.some(item => item.action != 'download') ?selectedRowsText: '' }}
1776
+ </label>
1777
+
1778
+ </template>
1779
+ </slot>
1780
+ </div>
1781
+ </div>
1782
+ </div>
1783
+
1784
+ <!-- 分页 -->
1785
+ <div
1786
+ v-if="showPaging"
1787
+ class="paging"
1788
+ >
1789
+ <div style="height: 100%; align-content: center;">
1790
+ 共 {{ filteredRows.length }} 条
1791
+ </div>
1792
+
1793
+ <button
1794
+ type="button"
1795
+ class="btn btn-sm role-multi-action page-btn-normal"
1796
+ :disabled="page == 1"
1797
+ :style="{ color: page <= totalPages ? `var(--default-text) !important` : `var(--paimary)`,border: page <= totalPages ? `solid thin var(--border)` : `solid thin var(--paimary)`}"
1798
+ @click="goToPage('prev')"
1799
+ >
1800
+ <!-- <i class="icon icon-chevron-left" /> -->
1801
+ <
1802
+ </button>
1803
+ <button
1804
+ type="button"
1805
+ class="btn btn-sm role-multi-action page-btn-normal"
1806
+ :style="{ color: (page == 1) ? `var(--primary)`:`var(--default-text) !important`,border: (page == 1) ? `solid thin var(--primary)` : `solid thin var(--border)`}"
1807
+ @click="goToPage('first')"
1808
+ >
1809
+ <!-- <i class="icon icon-chevron-beginning" /> -->
1810
+ {{ 1 }}
1811
+ </button>
1812
+ <template v-if="totalPages > 2">
1813
+ <div style="display: flex;flex-direction: row;gap: 10px;">
1814
+ <button
1815
+ v-if="page - 2 > 1 && page <= totalPages "
1816
+ type="button"
1817
+ class="btn btn-sm role-multi-action page-btn-normal"
1818
+ :style="{ color: `var(--default-text) !important`,border: `solid thin white`}"
1819
+ >
1820
+ ...
1821
+ </button>
1822
+ <button
1823
+ v-if="page - 1 > 1 && page <= totalPages "
1824
+ type="button"
1825
+ class="btn btn-sm role-multi-action page-btn-normal"
1826
+ :style="{ color: `var(--default-text) !important`,border: `solid thin var(--border)`}"
1827
+ @click="setPage(page-1)"
1828
+ >
1829
+ {{ page-1 }}
1830
+ </button>
1831
+ <button
1832
+ v-if="page > 1 && page < totalPages"
1833
+ type="button"
1834
+ class="btn btn-sm role-multi-action page-btn-normal"
1835
+ :style="{ color: `var(--default-text)`,border: `solid thin var(--primary)`}"
1836
+ @click="setPage(page)"
1837
+ >
1838
+ {{ page }}
1839
+ </button>
1840
+ <button
1841
+ v-if="page + 1 < totalPages "
1842
+ type="button"
1843
+ class="btn btn-sm role-multi-action page-btn-normal"
1844
+ :style="{ color: `var(--default-text) !important`,border: `solid thin var(--border)`}"
1845
+ @click="setPage(page+1)"
1846
+ >
1847
+ {{ page+1 }}
1848
+ </button>
1849
+ <button
1850
+ v-if="page +2 < totalPages "
1851
+ type="button"
1852
+ class="btn btn-sm role-multi-action page-btn-normal"
1853
+ :style="{ color: `var(--default-text) !important`,border: `solid thin white`}"
1854
+ >
1855
+ ...
1856
+ </button>
1857
+ </div>
1858
+ </template>
1859
+ <!-- <button
1860
+ type="button"
1861
+ class="btn btn-sm role-multi-action"
1862
+ style="padding: 0;max-width: 32px;background-color: white !important;"
1863
+ >
1864
+ {{ page }}
1865
+ </button> -->
1866
+ <button
1867
+ v-if="totalPages > 1"
1868
+ type="button"
1869
+ class="btn btn-sm role-multi-action page-btn-normal"
1870
+ :style="{ color: (page == totalPages) ? `var(--primary)`:`var(--default-text) !important`,border: (page == totalPages) ? `solid thin var(--primary)` : `solid thin var(--border)`}"
1871
+ @click="goToPage('last')"
1872
+ >
1873
+ <!-- <i class="icon icon-chevron-end" /> -->
1874
+ {{ totalPages }}
1875
+ </button>
1876
+ <button
1877
+ type="button"
1878
+ class="btn btn-sm role-multi-action page-btn-normal"
1879
+ :disabled="page == totalPages"
1880
+ :style="{ color: page <= totalPages ? `var(--default-text) !important` : `var(--paimary)`,border: page <= totalPages ? `solid thin var(--border)` : `solid thin var(--paimary)`}"
1881
+ @click="goToPage('next')"
1882
+ >
1883
+ <!-- <i class="icon icon-chevron-right" /> -->
1884
+ >
1885
+ </button>
1886
+
1887
+ <!-- 分页页码切换 -->
1888
+ <Select
1889
+ :mode="inputPerPage"
1890
+ :searchable="false"
1891
+ :clearable="false"
1892
+ :options="perPageOptions"
1893
+ v-model:value="inputPerPage"
1894
+ class="pageSelect"
1895
+ @update:value="changePerPage"
1896
+ />
1897
+
1898
+ <div style="height: 100%; align-content: center;">
1899
+ 跳至
1900
+ </div>
1901
+ <input
1902
+ v-model="inputPage"
1903
+ type="number"
1904
+ min="1"
1905
+ step="1"
1906
+ style="padding: 0px 10px;"
1907
+ @keyup.enter="handleToPage"
1908
+ >
1909
+ <div style="height: 100%; align-content: center;">
1910
+
1911
+ </div>
1912
+ <!-- <button
1913
+ type="button"
1914
+ class="btn btn-sm role-multi-action"
1915
+ style="padding: 0;max-width: 80px;background-color: white !important;"
1916
+ @click="setPage(inputPage)"
1917
+ >
1918
+
1919
+ </button> -->
1920
+ </div>
1921
+ </div>
1922
+ <button
1923
+ v-if="search"
1924
+ v-shortkey.once="['/']"
1925
+ class="hide"
1926
+ @shortkey="focusSearch()"
1927
+ />
1928
+ <template v-if="tableActions">
1929
+ <button
1930
+ v-shortkey="['j']"
1931
+ class="hide"
1932
+ @shortkey="focusNext($event)"
1933
+ />
1934
+ <button
1935
+ v-shortkey="['k']"
1936
+ class="hide"
1937
+ @shortkey="focusPrevious($event)"
1938
+ />
1939
+ <button
1940
+ v-shortkey="['shift','j']"
1941
+ class="hide"
1942
+ @shortkey="focusNext($event, true)"
1943
+ />
1944
+ <button
1945
+ v-shortkey="['shift','k']"
1946
+ class="hide"
1947
+ @shortkey="focusPrevious($event, true)"
1948
+ />
1949
+ <slot name="shortkeys" />
1950
+ </template>
1951
+ </div>
1952
+ </template>
1953
+
1954
+ <style lang="scss" scoped>
1955
+ .sortable-table.alt-loading {
1956
+ opacity: 0.5;
1957
+ pointer-events: none;
1958
+ }
1959
+ .advanced-filter-group {
1960
+ position: relative;
1961
+ margin-left: 10px;
1962
+ .advanced-filter-container {
1963
+ position: absolute;
1964
+ top: 38px;
1965
+ right: 0;
1966
+ width: 300px;
1967
+ border: 1px solid var(--primary);
1968
+ background-color: var(--body-bg);
1969
+ padding: 20px;
1970
+ z-index: 2;
1971
+
1972
+ .middle-block {
1973
+ display: flex;
1974
+ align-items: center;
1975
+ margin-top: 20px;
1976
+
1977
+ span {
1978
+ margin-right: 20px;
1979
+ }
1980
+
1981
+ button {
1982
+ margin-left: 20px;
1983
+ }
1984
+ }
1985
+
1986
+ .bottom-block {
1987
+ display: flex;
1988
+ align-items: center;
1989
+ margin-top: 40px;
1990
+ justify-content: space-between;
1991
+ }
1992
+ }
1993
+ }
1994
+
1995
+ .advanced-filters-applied {
1996
+ display: inline-flex;
1997
+ margin: 0;
1998
+ padding: 0;
1999
+ list-style: none;
2000
+ max-width: 100%;
2001
+ flex-wrap: wrap;
2002
+ justify-content: flex-end;
2003
+
2004
+ li {
2005
+ margin: 0 20px 10px 0;
2006
+ padding: 2px 5px;
2007
+ border: 1px solid;
2008
+ display: flex;
2009
+ align-items: center;
2010
+ position: relative;
2011
+ height: 20px;
2012
+
2013
+ &:nth-child(4n+1) {
2014
+ border-color: var(--success);
2015
+
2016
+ .bg {
2017
+ background-color: var(--success);
2018
+ }
2019
+ }
2020
+
2021
+ &:nth-child(4n+2) {
2022
+ border-color: var(--warning);
2023
+
2024
+ .bg {
2025
+ background-color: var(--warning);
2026
+ }
2027
+ }
2028
+
2029
+ &:nth-child(4n+3) {
2030
+ border-color: var(--info);
2031
+
2032
+ .bg {
2033
+ background-color: var(--info);
2034
+ }
2035
+ }
2036
+
2037
+ &:nth-child(4n+4) {
2038
+ border-color: var(--error);
2039
+
2040
+ .bg {
2041
+ background-color: var(--error);
2042
+ }
2043
+ }
2044
+
2045
+ .bg {
2046
+ position: absolute;
2047
+ top: 0;
2048
+ left: 0;
2049
+ width: 100%;
2050
+ height: 100%;
2051
+ opacity: 0.2;
2052
+ z-index: -1;
2053
+ }
2054
+
2055
+ .label {
2056
+ margin-right: 10px;
2057
+ font-size: 11px;
2058
+ }
2059
+ .cross {
2060
+ font-size: 12px;
2061
+ font-weight: bold;
2062
+ cursor: pointer;
2063
+ }
2064
+ }
2065
+ }
2066
+
2067
+ td {
2068
+ // Aligns with COLUMN_BREAKPOINTS
2069
+ @media only screen and (max-width: map-get($breakpoints, '--viewport-4')) {
2070
+ // HIDE column on sizes below 480px
2071
+ &.tablet, &.laptop, &.desktop {
2072
+ display: none;
2073
+ }
2074
+ }
2075
+ @media only screen and (max-width: map-get($breakpoints, '--viewport-9')) {
2076
+ // HIDE column on sizes below 992px
2077
+ &.laptop, &.desktop {
2078
+ display: none;
2079
+ }
2080
+ }
2081
+ @media only screen and (max-width: map-get($breakpoints, '--viewport-12')) {
2082
+ // HIDE column on sizes below 1281px
2083
+ &.desktop {
2084
+ display: none;
2085
+ }
2086
+ }
2087
+ }
2088
+
2089
+ // Loading indicator row
2090
+ tr td div.data-loading {
2091
+ align-items: center;
2092
+ display: flex;
2093
+ justify-content: center;
2094
+ padding: 20px 0;
2095
+ > i {
2096
+ font-size: 20px;
2097
+ height: 20px;
2098
+ margin-right: 5px;
2099
+ width: 20px;
2100
+ }
2101
+ }
2102
+
2103
+ .search-box {
2104
+ height: 32px;
2105
+ margin-left: 0px;
2106
+ /* min-width: 180px; */
2107
+ min-width: 280px;
2108
+ width: 280px !important;
2109
+ border: 1px solid rgb(217, 217, 217);
2110
+ }
2111
+ </style>
2112
+
2113
+ <style lang="scss">
2114
+ //
2115
+ // Important: Almost all selectors in here need to be ">"-ed together so they
2116
+ // apply only to the current table, not one nested inside another table.
2117
+ //
2118
+
2119
+ $group-row-height: 40px;
2120
+ $group-separation: 40px;
2121
+ $divider-height: 1px;
2122
+
2123
+ $separator: 20;
2124
+ $remove: 100;
2125
+ $spacing: 10px;
2126
+
2127
+ .filter-select .vs__selected-options .vs__selected {
2128
+ text-align: left;
2129
+ }
2130
+
2131
+ .sortable-table {
2132
+ border-collapse: collapse;
2133
+ min-width: 400px;
2134
+ border-radius: 5px 5px 0 0;
2135
+ border-bottom: 1px solid var(--border);
2136
+ /* outline: 1px solid var(--border); */
2137
+ background: var(--sortable-table-bg);
2138
+ border-radius: 4px;
2139
+
2140
+ &.overflow-x {
2141
+ overflow-x: visible;
2142
+ }
2143
+ &.overflow-y {
2144
+ overflow-y: visible;
2145
+ }
2146
+
2147
+ td {
2148
+ padding: 8px 5px;
2149
+ border: 0;
2150
+ background: var(--sortable-table-row-bg);
2151
+
2152
+ &:first-child {
2153
+ padding-left: 10px;
2154
+ position: sticky;
2155
+ left: 0;
2156
+ z-index: 2;
2157
+ }
2158
+ &:nth-child(2) {
2159
+ padding-left: 10px;
2160
+ position: sticky;
2161
+ left: 29px;
2162
+ z-index: 2;
2163
+ }
2164
+
2165
+ &:last-child {
2166
+ padding-right: 10px;
2167
+ position: sticky;
2168
+ right: 0;
2169
+ z-index: 2;
2170
+ /* padding-left: 10px; */
2171
+ }
2172
+
2173
+ &.row-check {
2174
+ padding-top: 12px;
2175
+ right: 0;
2176
+ position: sticky;
2177
+ }
2178
+ }
2179
+ th {
2180
+ padding: 13px 5px;
2181
+ border: 0;
2182
+ /* height: 50.84px; */
2183
+ box-sizing: border-box;
2184
+ background: var(--sortable-table-header-bg);
2185
+
2186
+ &:first-child {
2187
+ padding-left: 10px;
2188
+ position: sticky;
2189
+ left: 0;
2190
+ z-index: 2;
2191
+ }
2192
+ &:nth-child(2) {
2193
+ padding-left: 10px;
2194
+ position: sticky;
2195
+ left: 29px;
2196
+ z-index: 2;
2197
+ }
2198
+
2199
+ &:last-child {
2200
+ padding-left: 10px;
2201
+ padding-right: 10px;
2202
+ position: sticky;
2203
+ right: 0;
2204
+ z-index: 2;
2205
+ }
2206
+
2207
+ }
2208
+ tbody {
2209
+ tr {
2210
+ border-bottom: 1px solid var(--sortable-table-top-divider);
2211
+ background-color: var(--sortable-table-row-bg);
2212
+ height: 60px;
2213
+
2214
+ &.main-row.has-sub-row {
2215
+ /* border-bottom: 0; */
2216
+ }
2217
+
2218
+ // if a main-row is hovered also hover it's sibling sub row. note - the reverse is handled in selection.js
2219
+ &.main-row:not(.row-selected):hover + .sub-row {
2220
+ /* background-color: var(--sortable-table-hover-bg); */
2221
+ }
2222
+
2223
+ &:last-of-type {
2224
+ border-bottom: 0;
2225
+ }
2226
+
2227
+ &:hover, &.sub-row-hovered {
2228
+ /* background-color: var(--sortable-table-hover-bg); */
2229
+ }
2230
+
2231
+ &.state-description > td {
2232
+ font-size: 13px;
2233
+ padding-top: 0;
2234
+ overflow-wrap: anywhere;
2235
+ }
2236
+ }
2237
+
2238
+ tr.active-row {
2239
+ color: var(--sortable-table-header-bg);
2240
+ }
2241
+
2242
+ tr.row-selected {
2243
+ /* background: var(--sortable-table-selected-bg); */
2244
+ }
2245
+
2246
+ .no-rows {
2247
+ td {
2248
+ padding: 30px 0;
2249
+ text-align: center;
2250
+ }
2251
+ }
2252
+
2253
+ .no-rows, .no-results {
2254
+ &:hover {
2255
+ background-color: var(--body-bg);
2256
+ }
2257
+ }
2258
+ .no-results{
2259
+ height: 60px;
2260
+ }
2261
+
2262
+ &.group {
2263
+ &:before {
2264
+ content: "";
2265
+ display: block;
2266
+ height: 0px;
2267
+ background-color: transparent;
2268
+ }
2269
+ }
2270
+
2271
+ tr.group-row {
2272
+ background-color: initial;
2273
+ height: 40px;
2274
+
2275
+ &:first-child {
2276
+ border-bottom: 2px solid var(--sortable-table-row-bg);
2277
+ }
2278
+
2279
+ &:not(:first-child) {
2280
+ margin-top: 20px;
2281
+ }
2282
+
2283
+ td {
2284
+ padding: 0;
2285
+
2286
+ &:first-of-type {
2287
+ border-left: 1px solid var(--sortable-table-accent-bg);
2288
+ }
2289
+ }
2290
+
2291
+ .group-tab {
2292
+ @include clearfix;
2293
+ height: $group-row-height;
2294
+ line-height: $group-row-height;
2295
+ padding: 0 10px;
2296
+ border-radius: 4px 4px 0px 0px;
2297
+ background-color: var(--sortable-table-row-bg);
2298
+ position: relative;
2299
+ top: 1px;
2300
+ display: inline-block;
2301
+ z-index: z-index('tableGroup');
2302
+ min-width: $group-row-height * 1.8;
2303
+
2304
+ > SPAN {
2305
+ color: var(--sortable-table-group-label);
2306
+ }
2307
+ }
2308
+
2309
+ .group-tab:after {
2310
+ height: $group-row-height;
2311
+ width: 70px;
2312
+ border-radius: 5px 5px 0px 0px;
2313
+ background-color: var(--sortable-table-row-bg);
2314
+ content: "";
2315
+ position: absolute;
2316
+ right: -15px;
2317
+ top: 0px;
2318
+ transform: skewX(40deg);
2319
+ z-index: -1;
2320
+ }
2321
+ }
2322
+ }
2323
+ }
2324
+
2325
+ .for-inputs{
2326
+ & TABLE.sortable-table {
2327
+ width: 100%;
2328
+ border-collapse: collapse;
2329
+ margin-bottom: $spacing;
2330
+
2331
+ >TBODY>TR>TD, >THEAD>TR>TH {
2332
+ padding-right: $spacing;
2333
+ padding-bottom: $spacing;
2334
+
2335
+ &:last-of-type {
2336
+ padding-right: 0;
2337
+ }
2338
+ }
2339
+
2340
+ >TBODY>TR:first-of-type>TD {
2341
+ padding-top: $spacing;
2342
+ }
2343
+
2344
+ >TBODY>TR:last-of-type>TD {
2345
+ padding-bottom: 0;
2346
+ }
2347
+ }
2348
+
2349
+ &.edit, &.create, &.clone {
2350
+ TABLE.sortable-table>THEAD>TR>TH {
2351
+ border-color: transparent;
2352
+ }
2353
+ }
2354
+ }
2355
+
2356
+ .sortable-table-header {
2357
+ position: relative;
2358
+ z-index: z-index('fixedTableHeader');
2359
+
2360
+ &.titled {
2361
+ display: flex;
2362
+ align-items: center;
2363
+ }
2364
+ }
2365
+ .fixed-header-actions.button{
2366
+ grid-template-columns: [bulk] auto [middle] min-content [search] minmax(min-content, 350px);
2367
+ }
2368
+
2369
+ .fixed-header-actions {
2370
+ /* padding: 0 0 20px 0; */
2371
+ width: 100%;
2372
+ z-index: z-index('fixedTableHeader');
2373
+ background: transparent;
2374
+ display: grid;
2375
+ grid-template-columns: [bulk] auto [middle] min-content [search] minmax(min-content, 200px);
2376
+ grid-column-gap: 10px;
2377
+
2378
+ &.advanced-filtering {
2379
+ grid-template-columns: [bulk] auto [middle] minmax(min-content, auto) [search] minmax(min-content, auto);
2380
+ }
2381
+
2382
+ .bulk {
2383
+ grid-area: bulk;
2384
+
2385
+ $gap: 10px;
2386
+
2387
+ & > BUTTON {
2388
+ display: none; // Handled dynamically
2389
+ }
2390
+
2391
+ & > BUTTON:not(:last-of-type) {
2392
+ margin-right: $gap;
2393
+ }
2394
+
2395
+ .action-availability {
2396
+ display: none; // Handled dynamically
2397
+ margin-left: $gap;
2398
+ vertical-align: middle;
2399
+ margin-top: 2px;
2400
+ }
2401
+
2402
+ .dropdown-button {
2403
+ $disabled-color: var(--disabled-text);
2404
+ $disabled-cursor: not-allowed;
2405
+ li.disabled {
2406
+ color: $disabled-color;
2407
+ cursor: $disabled-cursor;
2408
+
2409
+ &:hover {
2410
+ color: $disabled-color;
2411
+ background-color: unset;
2412
+ cursor: $disabled-cursor;
2413
+ }
2414
+ }
2415
+ }
2416
+
2417
+ .bulk-action {
2418
+ .icon {
2419
+ vertical-align: -10%;
2420
+ }
2421
+ }
2422
+ }
2423
+
2424
+ .middle {
2425
+ grid-area: middle;
2426
+ white-space: nowrap;
2427
+
2428
+ .icon.icon-backup.animate {
2429
+ animation-name: spin;
2430
+ animation-duration: 1000ms;
2431
+ animation-iteration-count: infinite;
2432
+ animation-timing-function: linear;
2433
+ }
2434
+
2435
+ @keyframes spin {
2436
+ from {
2437
+ transform:rotate(0deg);
2438
+ }
2439
+ to {
2440
+ transform:rotate(360deg);
2441
+ }
2442
+ }
2443
+ }
2444
+
2445
+ .search {
2446
+ grid-area: search;
2447
+ text-align: right;
2448
+ justify-content: flex-end;
2449
+ }
2450
+
2451
+ .bulk-actions-dropdown {
2452
+ display: none; // Handled dynamically
2453
+
2454
+ .dropdown-button {
2455
+ background-color: var(--primary);
2456
+
2457
+ &:hover {
2458
+ background-color: var(--primary-hover-bg);
2459
+ color: var(--primary-hover-text);
2460
+ }
2461
+
2462
+ > *, .icon-chevron-down {
2463
+ color: var(--primary-text);
2464
+ }
2465
+
2466
+ .button-divider {
2467
+ border-color: var(--primary-text);
2468
+ }
2469
+
2470
+ &.disabled {
2471
+ border-color: var(--disabled-bg);
2472
+
2473
+ .icon-chevron-down {
2474
+ color: var(--disabled-text) !important;
2475
+ }
2476
+
2477
+ .button-divider {
2478
+ border-color: var(--disabled-text);
2479
+ }
2480
+ }
2481
+ }
2482
+ }
2483
+ }
2484
+
2485
+ .paging {
2486
+ //text-align: center;
2487
+ display: flex;
2488
+ justify-content: flex-end;
2489
+ gap: 0 10px;
2490
+ text-align: center;
2491
+ max-height: 32px;
2492
+ background-color: transparent;
2493
+ flex: 1;
2494
+ SPAN {
2495
+ display: inline-block;
2496
+ //min-width: 200px;
2497
+ }
2498
+
2499
+ /* 针对Webkit浏览器(如Chrome, Safari) */
2500
+ input[type="number"]::-webkit-inner-spin-button,
2501
+ input[type="number"]::-webkit-outer-spin-button {
2502
+ -webkit-appearance: none;
2503
+ margin: 0;
2504
+ }
2505
+
2506
+ /* 针对Firefox */
2507
+ input[type="number"] {
2508
+ -moz-appearance: textfield;
2509
+ // background-color: var(--disabled-bg) !important;
2510
+ border: 1px var(--border) solid;
2511
+ border-radius: 2px;
2512
+ width: 50px;
2513
+ height: 100%;
2514
+ }
2515
+ }
2516
+
2517
+ </style>
2518
+ <style scoped lang="scss">
2519
+ :deep() .role-link{
2520
+ min-width: unset !important;
2521
+ width: 38px;
2522
+ min-height: 20px !important;
2523
+ height: 20px !important;
2524
+ line-height: 20px !important;
2525
+ &:hover{
2526
+ background-color: unset !important;
2527
+ }
2528
+ }
2529
+ :deep() .checkbox-outer-container-extra{
2530
+ margin-top: 0px !important;
2531
+ }
2532
+ .pageSelect {
2533
+ max-width: 100px;
2534
+ }
2535
+ .page-btn-normal {
2536
+ padding: 0;
2537
+ max-width: 32px;
2538
+ background-color:white !important;
2539
+ }
2540
+
2541
+ .pageSelect{
2542
+ &:deep() .vs__actions:after{
2543
+ padding-top: 10px;
2544
+ }
2545
+ }
2546
+ .sort-table-div{
2547
+ width:100%;
2548
+ white-space:nowrap;
2549
+ overflow-x: auto;
2550
+ }
2551
+
2552
+ /* 滚动阴影左边 */
2553
+ .shadow-left td:nth-child(2)::after{
2554
+ content: "";
2555
+ position: absolute;
2556
+ top: 0;
2557
+ width: 10px;
2558
+ height: 100%;
2559
+ right: -10px;
2560
+ background: linear-gradient(to right, rgba(5, 5, 5, 0.06), transparent);
2561
+ }
2562
+ .shadow-left{
2563
+ &:deep() th:nth-child(2)::after{
2564
+ content: "";
2565
+ position: absolute;
2566
+ top: 0;
2567
+ width: 10px;
2568
+ height: 100%;
2569
+ right: -10px;
2570
+ background: linear-gradient(to right, rgba(5, 5, 5, 0.06), transparent);
2571
+ }
2572
+ }
2573
+
2574
+ /* 滚动阴影右边 */
2575
+ .shadow-right td:nth-last-child(1)::after{
2576
+ content: "";
2577
+ position: absolute;
2578
+ top: 0;
2579
+ width: 10px;
2580
+ height: 100%;
2581
+ left: -10px;
2582
+ background: linear-gradient(to left, rgba(5, 5, 5, 0.06), transparent);
2583
+ }
2584
+
2585
+ .shadow-right{
2586
+ &:deep() th:nth-last-child(1)::after {
2587
+ content: "";
2588
+ position: absolute;
2589
+ top: 0;
2590
+ width: 10px;
2591
+ height: 100%;
2592
+ left: -10px;
2593
+ background: linear-gradient(to left, rgba(5, 5, 5, 0.06), transparent);
2594
+ }
2595
+ }
2596
+
2597
+ /* 滚动阴影垂直修正 */
2598
+ .shadow-y td:nth-child(-n + 2), /* 前两列 */
2599
+ .shadow-y td:nth-last-child(1) /* 后一列 */
2600
+ {
2601
+ z-index: 3;
2602
+ }
2603
+ </style>
2604
+