@appscode/design-system 2.0.59 → 2.0.60

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 (152) hide show
  1. package/package.json +1 -1
  2. package/plugins/theme.js +2 -5
  3. package/plugins/time-convert.js +5 -9
  4. package/plugins/vue-toaster.js +2 -1
  5. package/vue-components/plugins/time-convert.js +2 -6
  6. package/vue-components/styles/base/utilities/_colors.scss +20 -26
  7. package/vue-components/styles/base/utilities/_generate-color-classes.scss +41 -233
  8. package/vue-components/styles/base/utilities/_global.scss +13 -14
  9. package/vue-components/styles/base/utilities/_layouts.scss +1 -2
  10. package/vue-components/styles/base/utilities/_mixin.scss +8 -46
  11. package/vue-components/styles/base/utilities/_root-variables.scss +1 -1
  12. package/vue-components/styles/base/utilities/_spacing.scss +1 -1
  13. package/vue-components/styles/base/utilities/_typography.scss +1 -1
  14. package/vue-components/styles/components/_ac-drag.scss +1 -1
  15. package/vue-components/styles/components/_badge-tags.scss +75 -0
  16. package/vue-components/styles/components/_card-body-wrapper.scss +1 -1
  17. package/vue-components/styles/components/_pagination.scss +2 -2
  18. package/vue-components/styles/components/_preview-modal.scss +3 -3
  19. package/vue-components/styles/components/_progress-bar.scss +3 -3
  20. package/vue-components/styles/components/_table.scss +3 -3
  21. package/vue-components/styles/components/_tabs.scss +2 -2
  22. package/vue-components/styles/components/_terminal.scss +4 -4
  23. package/vue-components/styles/components/_wizard.scss +3 -3
  24. package/vue-components/styles/components/ac-toaster/_ac-toasted.scss +10 -5
  25. package/vue-components/styles/components/alert/_alert.scss +2 -12
  26. package/vue-components/styles/components/alert/_toast.scss +1 -1
  27. package/vue-components/styles/components/bbum/_all.scss +1 -1
  28. package/vue-components/styles/components/bbum/_card-team.scss +1 -6
  29. package/vue-components/styles/components/bbum/_information-center.scss +4 -4
  30. package/vue-components/styles/components/bbum/_mobile-desktop.scss +10 -5
  31. package/vue-components/styles/components/bbum/_user-profile.scss +1 -1
  32. package/vue-components/styles/components/cards/_info.scss +1 -7
  33. package/vue-components/styles/components/editor/_filtered-file-editor.scss +3 -3
  34. package/vue-components/styles/components/editor/_monaco-editor.scss +1 -1
  35. package/vue-components/styles/components/form-fields/_input-card.scss +2 -2
  36. package/vue-components/styles/components/form-fields/_input.scss +3 -3
  37. package/vue-components/styles/components/navbar/_menu-content.scss +1 -2
  38. package/vue-components/styles/components/select-box/_ac-select-box.scss +2 -2
  39. package/vue-components/styles/components/select-box/_multi-select.scss +4 -9
  40. package/vue-components/styles/components/sidebar/_left-sidebar.scss +2 -2
  41. package/vue-components/styles/components/ui-builder/_ui-builder.scss +1 -1
  42. package/vue-components/styles/components/ui-builder/_vue-open-api.scss +5 -10
  43. package/vue-components/styles/layouts/_code-preview.scss +2 -2
  44. package/vue-components/styles/theme/_dark.scss +1 -1
  45. package/vue-components/v2/breadcrumbs/Breadcrumb.vue +14 -27
  46. package/vue-components/v2/button/Button.vue +2 -7
  47. package/vue-components/v2/button/DownloadBtn.vue +9 -9
  48. package/vue-components/v2/card/CardContent.vue +1 -1
  49. package/vue-components/v2/card/CardHeader.vue +2 -4
  50. package/vue-components/v2/card/PaymentCard.vue +1 -1
  51. package/vue-components/v2/card/PaymentCardOptionButtons.vue +1 -1
  52. package/vue-components/v2/card/PaymentCards.vue +15 -11
  53. package/vue-components/v2/content/ContentHeader.vue +6 -6
  54. package/vue-components/v2/editor/Editor.vue +2 -11
  55. package/vue-components/v2/editor/FilteredFileEditor.vue +5 -17
  56. package/vue-components/v2/editor/MonacoEditor.vue +5 -12
  57. package/vue-components/v2/editor/ResourceKeyValueEditor.vue +4 -14
  58. package/vue-components/v2/form/Form.vue +9 -12
  59. package/vue-components/v2/header/Header.vue +1 -4
  60. package/vue-components/v2/loaders/ResourceLoader.vue +5 -5
  61. package/vue-components/v2/loaders/SidebarLoader.vue +5 -5
  62. package/vue-components/v2/modal/Modal.vue +2 -7
  63. package/vue-components/v2/modals/DeleteConfirmationModal.vue +1 -6
  64. package/vue-components/v2/modals/JsonShowModal.vue +3 -15
  65. package/vue-components/v2/navbar/Appdrawer.vue +2 -10
  66. package/vue-components/v2/navbar/ThemeMode.vue +12 -18
  67. package/vue-components/v2/navbar/User.vue +19 -82
  68. package/vue-components/v2/notification/Notification.vue +3 -12
  69. package/vue-components/v2/notification/NotificationItem.vue +1 -3
  70. package/vue-components/v2/pagination/Pagination.vue +5 -26
  71. package/vue-components/v2/preloader/Preloader.vue +5 -5
  72. package/vue-components/v2/searchbars/SearchBar.vue +1 -7
  73. package/vue-components/v2/sidebar/ClusterSwitcher.vue +2 -2
  74. package/vue-components/v2/sidebar/SidebarItem.vue +2 -10
  75. package/vue-components/v2/sidebar/SidebarItemWithDropDown.vue +1 -2
  76. package/vue-components/v2/table/FakeTableCell.vue +1 -2
  77. package/vue-components/v2/table/InfoTable.vue +4 -10
  78. package/vue-components/v2/table/Table.vue +16 -64
  79. package/vue-components/v2/table/TableRow.vue +3 -15
  80. package/vue-components/v2/table/table-cell/ArrayCell.vue +3 -9
  81. package/vue-components/v2/table/table-cell/CellValue.vue +1 -2
  82. package/vue-components/v2/table/table-cell/GenericCell.vue +8 -8
  83. package/vue-components/v2/table/table-cell/ObjectCell.vue +2 -6
  84. package/vue-components/v2/table/table-cell/ValueWithModal.vue +1 -6
  85. package/vue-components/v3/alert/AlertMessage.vue +1 -5
  86. package/vue-components/v3/alert/Toast.vue +1 -4
  87. package/vue-components/v3/badge-tags/Badge.vue +24 -0
  88. package/vue-components/v3/badge-tags/Tag.vue +26 -0
  89. package/vue-components/v3/breadcrumbs/Breadcrumb.vue +6 -24
  90. package/vue-components/v3/button/Button.vue +2 -11
  91. package/vue-components/v3/cards/CardHeader.vue +1 -3
  92. package/vue-components/v3/cards/Cluster.vue +3 -9
  93. package/vue-components/v3/cards/Counter.vue +1 -4
  94. package/vue-components/v3/cards/FeatureCard.vue +1 -6
  95. package/vue-components/v3/cards/FeatureCards.vue +1 -5
  96. package/vue-components/v3/cards/InfoCard.vue +10 -30
  97. package/vue-components/v3/cards/Monitoring.vue +3 -15
  98. package/vue-components/v3/cards/OrgCard.vue +7 -26
  99. package/vue-components/v3/cards/OverviewCards.vue +1 -3
  100. package/vue-components/v3/cards/Payment.vue +1 -4
  101. package/vue-components/v3/content/ContentHeader.vue +1 -3
  102. package/vue-components/v3/content/ContentTable.vue +4 -16
  103. package/vue-components/v3/dropdown/DropdownAction.vue +1 -5
  104. package/vue-components/v3/editor/Editor.vue +33 -19
  105. package/vue-components/v3/editor/FilteredFileEditor.vue +29 -27
  106. package/vue-components/v3/editor/MonacoEditor.vue +7 -17
  107. package/vue-components/v3/editor/ResourceKeyValueEditor.vue +5 -17
  108. package/vue-components/v3/footer/Status.vue +5 -18
  109. package/vue-components/v3/footer/Usage.vue +1 -5
  110. package/vue-components/v3/form/Form.vue +1 -3
  111. package/vue-components/v3/form-fields/FileUpload.vue +3 -11
  112. package/vue-components/v3/form-fields/FileUploadSmall.vue +1 -3
  113. package/vue-components/v3/form-fields/Searchbar.vue +5 -21
  114. package/vue-components/v3/header/Header.vue +1 -4
  115. package/vue-components/v3/loaders/ClusterSwitcherLoader.vue +1 -6
  116. package/vue-components/v3/loaders/InfoCardLoader.vue +1 -6
  117. package/vue-components/v3/loaders/SingleInfoCardLoader.vue +1 -6
  118. package/vue-components/v3/modal/Modal.vue +5 -19
  119. package/vue-components/v3/modals/DeleteConfirmationModal.vue +1 -6
  120. package/vue-components/v3/modals/JsonShowModal.vue +5 -17
  121. package/vue-components/v3/navbar/Appdrawer.vue +2 -10
  122. package/vue-components/v3/navbar/Navbar.vue +2 -10
  123. package/vue-components/v3/navbar/NavbarItem.vue +1 -5
  124. package/vue-components/v3/navbar/Notification.vue +7 -31
  125. package/vue-components/v3/navbar/ThemeMode.vue +5 -17
  126. package/vue-components/v3/navbar/User.vue +64 -67
  127. package/vue-components/v3/notification/AlertBox.vue +6 -20
  128. package/vue-components/v3/notification/Notification.vue +6 -25
  129. package/vue-components/v3/notification/NotificationItem.vue +3 -9
  130. package/vue-components/v3/pagination/Pagination.vue +7 -25
  131. package/vue-components/v3/searchbars/SearchBar.vue +3 -17
  132. package/vue-components/v3/sidebar/AccentColorPicker.vue +3 -12
  133. package/vue-components/v3/sidebar/SidebarFooter.vue +3 -17
  134. package/vue-components/v3/sidebar/SidebarHeader.vue +4 -28
  135. package/vue-components/v3/sidebar/SidebarItem.vue +3 -11
  136. package/vue-components/v3/sidebar/SidebarItemWithDropDown.vue +3 -7
  137. package/vue-components/v3/sidebar/Steps.vue +1 -2
  138. package/vue-components/v3/sidebar/sidebar-tabs/SidebarTabsLayout.vue +1 -4
  139. package/vue-components/v3/sidebar/sidebar-tabs/TabsContent.vue +34 -52
  140. package/vue-components/v3/steps/ColoredSteps.vue +75 -0
  141. package/vue-components/v3/table/InfoTable.vue +5 -17
  142. package/vue-components/v3/table/MultiInfoTable.vue +6 -20
  143. package/vue-components/v3/table/Table.vue +15 -63
  144. package/vue-components/v3/table/TableContainer.vue +1 -4
  145. package/vue-components/v3/table/TableRow.vue +5 -24
  146. package/vue-components/v3/table/table-cell/ArrayCell.vue +6 -20
  147. package/vue-components/v3/table/table-cell/CellValue.vue +3 -9
  148. package/vue-components/v3/table/table-cell/GenericCell.vue +2 -5
  149. package/vue-components/v3/table/table-cell/ObjectCell.vue +5 -17
  150. package/vue-components/v3/table/table-cell/ValueWithModal.vue +2 -9
  151. package/vue-components/styles/components/_ac-tags.scss +0 -116
  152. package/vue-components/v3/badge/Badge.vue +0 -3
@@ -12,9 +12,7 @@ withDefaults(defineProps<Props>(), {
12
12
  });
13
13
 
14
14
  defineEmits(["toggleSidebar"]);
15
- const AccentColorPicker = defineAsyncComponent(
16
- () => import("./AccentColorPicker.vue")
17
- );
15
+ const AccentColorPicker = defineAsyncComponent(() => import("./AccentColorPicker.vue"));
18
16
  </script>
19
17
 
20
18
  <template>
@@ -26,13 +24,7 @@ const AccentColorPicker = defineAsyncComponent(
26
24
  data-testid="sidebar-footer-back-button"
27
25
  @click="$emit('toggleSidebar')"
28
26
  >
29
- <svg
30
- width="18"
31
- height="18"
32
- viewBox="0 0 18 18"
33
- fill="none"
34
- xmlns="http://www.w3.org/2000/svg"
35
- >
27
+ <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
36
28
  <path
37
29
  d="M11.25 13.5L6.75 9L11.25 4.5"
38
30
  stroke="white"
@@ -40,13 +32,7 @@ const AccentColorPicker = defineAsyncComponent(
40
32
  stroke-linecap="round"
41
33
  stroke-linejoin="round"
42
34
  />
43
- <path
44
- d="M16 14V4"
45
- stroke="white"
46
- stroke-width="2"
47
- stroke-linecap="round"
48
- stroke-linejoin="round"
49
- />
35
+ <path d="M16 14V4" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
50
36
  </svg>
51
37
  </button>
52
38
  <!-- back button -->
@@ -28,34 +28,10 @@ withDefaults(defineProps<Props>(), {
28
28
  data-testid="sidebar-menu-button"
29
29
  @click="$emit('toggleSidebar')"
30
30
  >
31
- <svg
32
- width="18"
33
- height="18"
34
- viewBox="0 0 18 18"
35
- fill="none"
36
- xmlns="http://www.w3.org/2000/svg"
37
- >
38
- <path
39
- d="M3 13.5L10.5 13.5"
40
- stroke="white"
41
- stroke-width="2"
42
- stroke-linecap="round"
43
- stroke-linejoin="round"
44
- />
45
- <path
46
- d="M3 9L15 9"
47
- stroke="white"
48
- stroke-width="2"
49
- stroke-linecap="round"
50
- stroke-linejoin="round"
51
- />
52
- <path
53
- d="M3 4.5L7.5 4.5"
54
- stroke="white"
55
- stroke-width="2"
56
- stroke-linecap="round"
57
- stroke-linejoin="round"
58
- />
31
+ <svg width="18" height="18" viewBox="0 0 18 18" fill="none" xmlns="http://www.w3.org/2000/svg">
32
+ <path d="M3 13.5L10.5 13.5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
33
+ <path d="M3 9L15 9" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
34
+ <path d="M3 4.5L7.5 4.5" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
59
35
  </svg>
60
36
  </div>
61
37
  <!-- hamburger icon -->
@@ -25,10 +25,7 @@ watch(
25
25
  if (n) {
26
26
  nextTick(() => {
27
27
  setTimeout(() => {
28
- const top =
29
- (sidebarItem.value &&
30
- sidebarItem.value.getBoundingClientRect().top) ||
31
- 0;
28
+ const top = (sidebarItem.value && sidebarItem.value.getBoundingClientRect().top) || 0;
32
29
  // preventing scroll to options that are already visible
33
30
  if (top > window.innerHeight - 200) {
34
31
  // scroll to selected option item
@@ -37,7 +34,7 @@ watch(
37
34
  block: "center",
38
35
  });
39
36
  }
40
- }, 500);
37
+ }, 300);
41
38
  });
42
39
  }
43
40
  },
@@ -47,12 +44,7 @@ watch(
47
44
 
48
45
  <template>
49
46
  <li ref="sidebarItem" data-testid="cluster-sidebar-item">
50
- <router-link
51
- :id="id"
52
- :title="title"
53
- :to="url"
54
- :class="{ 'is-active': isActive }"
55
- >
47
+ <router-link :id="id" :title="title" :to="url" :class="{ 'is-active': isActive }">
56
48
  <span>
57
49
  <img :src="icon" alt="icon" />
58
50
  </span>
@@ -43,7 +43,7 @@ onMounted(() => {
43
43
  } else {
44
44
  setDropdownMaxHeight("close");
45
45
  }
46
- }, 700);
46
+ }, 200);
47
47
  });
48
48
 
49
49
  watch(
@@ -85,8 +85,7 @@ watch(dropDownStatus, (n) => {
85
85
  nextTick(() => {
86
86
  const dropDownUl = sectionItems.value;
87
87
  // debugger;
88
- if (dropDownUl)
89
- dropDownSectionHeight.value = `${dropDownUl.scrollHeight}px`;
88
+ if (dropDownUl) dropDownSectionHeight.value = `${dropDownUl.scrollHeight}px`;
90
89
  });
91
90
  } else {
92
91
  // emit event to close other drop down items
@@ -107,10 +106,7 @@ watch(dropDownStatus, (n) => {
107
106
  </span>
108
107
  </a>
109
108
 
110
- <ul
111
- ref="sectionItems"
112
- :style="{ maxHeight: dropDownSectionHeight || undefined }"
113
- >
109
+ <ul ref="sectionItems" :style="{ maxHeight: dropDownSectionHeight || undefined }">
114
110
  <slot />
115
111
  </ul>
116
112
  </li>
@@ -55,8 +55,7 @@ withDefaults(defineProps<Props>(), {
55
55
  <span
56
56
  :class="{
57
57
  'label-text': true,
58
- 'has-text-weight-semibold':
59
- substep.identifier <= activeSubStepIdentifier,
58
+ 'has-text-weight-semibold': substep.identifier <= activeSubStepIdentifier,
60
59
  }"
61
60
  >{{ substep.title }}</span
62
61
  >
@@ -15,10 +15,7 @@ withDefaults(defineProps<Props>(), {
15
15
  </div>
16
16
  <!-- sidebar tabs -->
17
17
 
18
- <div
19
- class="content-wrapper"
20
- :class="isSidebarVisible ? 'pl-220' : 'pl-0 pb-0'"
21
- >
18
+ <div class="content-wrapper" :class="isSidebarVisible ? 'pl-220' : 'pl-0 pb-0'">
22
19
  <!-- sidebar content -->
23
20
  <slot name="tabs-content" />
24
21
  <!-- sidebar content -->
@@ -3,91 +3,73 @@
3
3
  <div class="content pt-10 pl-20 pb-20">
4
4
  <h1>Heading One</h1>
5
5
  <p>
6
- Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum
7
- corrupti atque voluptatum quos a commodi similique perferendis
8
- necessitatibus. Praesentium labore laudantium assumenda consectetur
9
- corporis ex doloremque magnam animi numquam?
6
+ Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum corrupti atque voluptatum quos a commodi
7
+ similique perferendis necessitatibus. Praesentium labore laudantium assumenda consectetur corporis ex doloremque
8
+ magnam animi numquam?
10
9
  </p>
11
10
  <h2>Heading Two</h2>
12
11
  <p>
13
- Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum
14
- corrupti atque voluptatum quos a commodi similique perferendis
15
- necessitatibus. Praesentium labore laudantium assumenda consectetur
16
- corporis ex doloremque magnam animi numquam? Lorem ipsum dolor sit amet
17
- consectetur, adipisicing elit. Cumque cum corrupti atque voluptatum quos a
18
- commodi similique perferendis necessitatibus. Praesentium labore
19
- laudantium assumenda consectetur corporis ex doloremque magnam animi
20
- numquam?
12
+ Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum corrupti atque voluptatum quos a commodi
13
+ similique perferendis necessitatibus. Praesentium labore laudantium assumenda consectetur corporis ex doloremque
14
+ magnam animi numquam? Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum corrupti atque
15
+ voluptatum quos a commodi similique perferendis necessitatibus. Praesentium labore laudantium assumenda
16
+ consectetur corporis ex doloremque magnam animi numquam?
21
17
  </p>
22
18
  <h3>Heading three</h3>
23
19
  <p>
24
- Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum
25
- corrupti atque voluptatum quos a commodi similique perferendis
26
- necessitatibus. Praesentium labore laudantium assumenda consectetur
27
- corporis ex doloremque magnam animi numquam?
20
+ Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum corrupti atque voluptatum quos a commodi
21
+ similique perferendis necessitatibus. Praesentium labore laudantium assumenda consectetur corporis ex doloremque
22
+ magnam animi numquam?
28
23
  </p>
29
24
 
30
25
  <h4>Heading Four</h4>
31
26
  <p>
32
- Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum
33
- corrupti atque voluptatum quos a commodi similique perferendis
34
- necessitatibus. Praesentium labore laudantium assumenda consectetur
35
- corporis ex doloremque magnam animi numquam?
27
+ Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum corrupti atque voluptatum quos a commodi
28
+ similique perferendis necessitatibus. Praesentium labore laudantium assumenda consectetur corporis ex doloremque
29
+ magnam animi numquam?
36
30
  </p>
37
31
  <h5>Heading Five</h5>
38
32
  <p>
39
- Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum
40
- corrupti atque voluptatum quos a commodi similique perferendis
41
- necessitatibus. Praesentium labore laudantium assumenda consectetur
42
- corporis ex doloremque magnam animi numquam? Lorem ipsum dolor sit amet
43
- consectetur, adipisicing elit. Cumque cum corrupti atque voluptatum quos a
44
- commodi similique perferendis necessitatibus. Praesentium labore
45
- laudantium assumenda consectetur corporis ex doloremque magnam animi
46
- numquam?
33
+ Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum corrupti atque voluptatum quos a commodi
34
+ similique perferendis necessitatibus. Praesentium labore laudantium assumenda consectetur corporis ex doloremque
35
+ magnam animi numquam? Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum corrupti atque
36
+ voluptatum quos a commodi similique perferendis necessitatibus. Praesentium labore laudantium assumenda
37
+ consectetur corporis ex doloremque magnam animi numquam?
47
38
  </p>
48
39
  <h6>Heading Six</h6>
49
40
  <p>
50
- Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum
51
- corrupti atque voluptatum quos a commodi similique perferendis
52
- necessitatibus. Praesentium labore laudantium assumenda consectetur
53
- corporis ex doloremque magnam animi numquam?
41
+ Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum corrupti atque voluptatum quos a commodi
42
+ similique perferendis necessitatibus. Praesentium labore laudantium assumenda consectetur corporis ex doloremque
43
+ magnam animi numquam?
54
44
  </p>
55
45
 
56
46
  <h4>Block Quote</h4>
57
47
 
58
48
  <blockquote>
59
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Et repudiandae
60
- officiis autem aspernatur. Ab cum quisquam dolore pariatur consequuntur
61
- officia nostrum, commodi sint saepe delectus itaque vel quae voluptates
62
- atque.
49
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Et repudiandae officiis autem aspernatur. Ab cum quisquam
50
+ dolore pariatur consequuntur officia nostrum, commodi sint saepe delectus itaque vel quae voluptates atque.
63
51
  </blockquote>
64
52
 
65
53
  <h5>Heading Five</h5>
66
54
  <p>
67
- Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum
68
- corrupti atque voluptatum quos a commodi similique perferendis
69
- necessitatibus. Praesentium labore laudantium assumenda consectetur
70
- corporis ex doloremque magnam animi numquam? Lorem ipsum dolor sit amet
71
- consectetur, adipisicing elit. Cumque cum corrupti atque voluptatum quos a
72
- commodi similique perferendis necessitatibus. Praesentium labore
73
- laudantium assumenda consectetur corporis ex doloremque magnam animi
74
- numquam?
55
+ Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum corrupti atque voluptatum quos a commodi
56
+ similique perferendis necessitatibus. Praesentium labore laudantium assumenda consectetur corporis ex doloremque
57
+ magnam animi numquam? Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum corrupti atque
58
+ voluptatum quos a commodi similique perferendis necessitatibus. Praesentium labore laudantium assumenda
59
+ consectetur corporis ex doloremque magnam animi numquam?
75
60
  </p>
76
61
  <h6>Heading Six</h6>
77
62
  <p>
78
- Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum
79
- corrupti atque voluptatum quos a commodi similique perferendis
80
- necessitatibus. Praesentium labore laudantium assumenda consectetur
81
- corporis ex doloremque magnam animi numquam?
63
+ Lorem ipsum dolor sit amet consectetur, adipisicing elit. Cumque cum corrupti atque voluptatum quos a commodi
64
+ similique perferendis necessitatibus. Praesentium labore laudantium assumenda consectetur corporis ex doloremque
65
+ magnam animi numquam?
82
66
  </p>
83
67
 
84
68
  <h4>Block Quote</h4>
85
69
 
86
70
  <blockquote>
87
- Lorem ipsum dolor sit amet consectetur adipisicing elit. Et repudiandae
88
- officiis autem aspernatur. Ab cum quisquam dolore pariatur consequuntur
89
- officia nostrum, commodi sint saepe delectus itaque vel quae voluptates
90
- atque.
71
+ Lorem ipsum dolor sit amet consectetur adipisicing elit. Et repudiandae officiis autem aspernatur. Ab cum quisquam
72
+ dolore pariatur consequuntur officia nostrum, commodi sint saepe delectus itaque vel quae voluptates atque.
91
73
  </blockquote>
92
74
  </div>
93
75
  </template>
@@ -0,0 +1,75 @@
1
+ <template>
2
+ <div class="colored-steps">
3
+ <ol class="steps">
4
+ <li class="step">
5
+ <div class="step-header bg-primary"></div>
6
+ <p>Step 1</p>
7
+ </li>
8
+ <li class="step">
9
+ <div class="step-header bg-info"></div>
10
+ <p>Step 2</p>
11
+ </li>
12
+ <li class="step">
13
+ <div class="step-header bg-info"></div>
14
+ <p>Step 2</p>
15
+ </li>
16
+ <li class="step">
17
+ <div class="step-header bg-error"></div>
18
+ <p>Step 2</p>
19
+ </li>
20
+ <li class="step">
21
+ <div class="step-header bg-warning"></div>
22
+ <p>Step 2</p>
23
+ </li>
24
+ </ol>
25
+ </div>
26
+ </template>
27
+
28
+ <style lang="scss">
29
+ .colored-steps {
30
+ --size: 8px;
31
+ --line: 1px;
32
+ ol {
33
+ display: flex;
34
+ // gap: 48px;
35
+
36
+ li {
37
+ display: flex;
38
+ align-items: center;
39
+ flex-direction: column;
40
+ position: relative;
41
+ width: 100px;
42
+ &:not(&:last-child) {
43
+ &::before {
44
+ position: absolute;
45
+ content: "";
46
+ height: var(--line);
47
+ left: 50%;
48
+ top: calc(var(--size) / 2 - var(--line) / 2);
49
+ order: -1;
50
+ background-color: #333;
51
+ width: calc(100% - var(--size));
52
+ }
53
+ }
54
+
55
+ .step-header {
56
+ background-color: $ac-primary;
57
+ align-items: center;
58
+ display: flex;
59
+ flex-shrink: 0;
60
+ height: var(--size);
61
+ justify-content: center;
62
+ margin: auto auto var(--size);
63
+ position: relative;
64
+ width: var(--size);
65
+ border-radius: 50%;
66
+ }
67
+ p {
68
+ font-size: 12px;
69
+ margin: 0;
70
+ padding: 0;
71
+ }
72
+ }
73
+ }
74
+ }
75
+ </style>
@@ -15,21 +15,15 @@ const props = withDefaults(defineProps<Props>(), {
15
15
  removeContentPadding: false,
16
16
  });
17
17
 
18
- const TableContainer = defineAsyncComponent(
19
- () => import("./TableContainer.vue")
20
- );
18
+ const TableContainer = defineAsyncComponent(() => import("./TableContainer.vue"));
21
19
 
22
- const EmptyTableInfo = defineAsyncComponent(
23
- () => import("./EmptyTableInfo.vue")
24
- );
20
+ const EmptyTableInfo = defineAsyncComponent(() => import("./EmptyTableInfo.vue"));
25
21
 
26
22
  const TableRow = defineAsyncComponent(() => import("./TableRow.vue"));
27
23
 
28
24
  const TableCell = defineAsyncComponent(() => import("./TableCell.vue"));
29
25
 
30
- const CellValue = defineAsyncComponent(
31
- () => import("./table-cell/CellValue.vue")
32
- );
26
+ const CellValue = defineAsyncComponent(() => import("./table-cell/CellValue.vue"));
33
27
 
34
28
  const loaderCols = ref(5);
35
29
 
@@ -40,10 +34,7 @@ const isFullTableLoaderActive = computed(() => {
40
34
 
41
35
  <template>
42
36
  <table-container>
43
- <table
44
- class="table ac-info-table is-fullwidth"
45
- :class="{ 'pl-0 pr-0': removeContentPadding }"
46
- >
37
+ <table class="table ac-info-table is-fullwidth" :class="{ 'pl-0 pr-0': removeContentPadding }">
47
38
  <tbody v-if="isFullTableLoaderActive">
48
39
  <table-row v-for="i in loaderCols" :key="i">
49
40
  <table-cell>
@@ -62,10 +53,7 @@ const isFullTableLoaderActive = computed(() => {
62
53
  }"
63
54
  >
64
55
  <template v-if="!isTableEmpty">
65
- <table-row
66
- v-for="(tableHeader, idx) in tableHeaders"
67
- :key="(tableHeader as string)"
68
- >
56
+ <table-row v-for="(tableHeader, idx) in tableHeaders" :key="(tableHeader as string)">
69
57
  <table-cell>
70
58
  <span class="is-flex is-align-items-center">
71
59
  <slot :name="`table-cell-icon-${idx}`" />
@@ -16,17 +16,11 @@ const props = withDefaults(defineProps<Props>(), {
16
16
  removeContentPadding: false,
17
17
  });
18
18
 
19
- const TableContainer = defineAsyncComponent(
20
- () => import("../table/TableContainer.vue")
21
- );
22
- const EmptyTableInfo = defineAsyncComponent(
23
- () => import("../table/EmptyTableInfo.vue")
24
- );
19
+ const TableContainer = defineAsyncComponent(() => import("../table/TableContainer.vue"));
20
+ const EmptyTableInfo = defineAsyncComponent(() => import("../table/EmptyTableInfo.vue"));
25
21
  const TableRow = defineAsyncComponent(() => import("../table/TableRow.vue"));
26
22
  const TableCell = defineAsyncComponent(() => import("../table/TableCell.vue"));
27
- const CellValue = defineAsyncComponent(
28
- () => import("../table/table-cell/CellValue.vue")
29
- );
23
+ const CellValue = defineAsyncComponent(() => import("../table/table-cell/CellValue.vue"));
30
24
 
31
25
  const loaderCols = ref(5);
32
26
  const headerSortables = ref<Array<{ enabled: boolean; mode: string }>>([]);
@@ -36,9 +30,7 @@ const isFullTableLoaderActive = computed(() => {
36
30
  });
37
31
 
38
32
  const headerLabels = computed(() => {
39
- return props.tableHeaders.map((th) =>
40
- typeof th === "string" ? th : th?.name || "Label"
41
- );
33
+ return props.tableHeaders.map((th) => (typeof th === "string" ? th : th?.name || "Label"));
42
34
  });
43
35
 
44
36
  watch(
@@ -72,10 +64,7 @@ watch(
72
64
 
73
65
  <template>
74
66
  <table-container>
75
- <table
76
- class="table ac-info-table is-fullwidth"
77
- :class="{ 'pl-0 pr-0': removeContentPadding }"
78
- >
67
+ <table class="table ac-info-table is-fullwidth" :class="{ 'pl-0 pr-0': removeContentPadding }">
79
68
  <tbody v-if="isFullTableLoaderActive">
80
69
  <table-row v-for="i in loaderCols" :key="i">
81
70
  <table-cell>
@@ -94,10 +83,7 @@ watch(
94
83
  }"
95
84
  >
96
85
  <template v-if="!isTableEmpty">
97
- <table-row
98
- v-for="(tableHeader, idx) in tableHeaders"
99
- :key="headerLabels[idx]"
100
- >
86
+ <table-row v-for="(tableHeader, idx) in tableHeaders" :key="headerLabels[idx]">
101
87
  <table-cell>
102
88
  <slot :name="`table-cell-icon-${idx}`" />
103
89
  {{ headerLabels[idx] }}
@@ -1,12 +1,5 @@
1
1
  <script setup lang="ts">
2
- import {
3
- computed,
4
- defineAsyncComponent,
5
- nextTick,
6
- onUpdated,
7
- ref,
8
- watch,
9
- } from "vue";
2
+ import { computed, defineAsyncComponent, nextTick, onUpdated, ref, watch } from "vue";
10
3
  import type { AcTableCol } from "../../types/table";
11
4
 
12
5
  interface Props {
@@ -33,20 +26,12 @@ const props = withDefaults(defineProps<Props>(), {
33
26
 
34
27
  const emit = defineEmits(["sort", "scroller"]);
35
28
 
36
- const TableContainer = defineAsyncComponent(
37
- () => import("../table/TableContainer.vue")
38
- );
29
+ const TableContainer = defineAsyncComponent(() => import("../table/TableContainer.vue"));
39
30
  const TableRow = defineAsyncComponent(() => import("../table/TableRow.vue"));
40
31
  const TableCell = defineAsyncComponent(() => import("../table/TableCell.vue"));
41
- const CellValue = defineAsyncComponent(
42
- () => import("../table/table-cell/CellValue.vue")
43
- );
44
- const EmptyTableInfo = defineAsyncComponent(
45
- () => import("../table/EmptyTableInfo.vue")
46
- );
47
- const FakeTableCell = defineAsyncComponent(
48
- () => import("../table/FakeTableCell.vue")
49
- );
32
+ const CellValue = defineAsyncComponent(() => import("../table/table-cell/CellValue.vue"));
33
+ const EmptyTableInfo = defineAsyncComponent(() => import("../table/EmptyTableInfo.vue"));
34
+ const FakeTableCell = defineAsyncComponent(() => import("../table/FakeTableCell.vue"));
50
35
 
51
36
  const fakeCellWidth = ref(0);
52
37
  const headerSortables = ref<Array<{ enabled: boolean; mode: string }>>([]);
@@ -54,9 +39,7 @@ const ac_table = ref(null as HTMLElement | null);
54
39
  const ac_table_container = ref(null as HTMLElement | null);
55
40
 
56
41
  const headerLabels = computed(() => {
57
- return props.tableHeaders.map((th) =>
58
- typeof th === "string" ? th : th?.name || "Label"
59
- );
42
+ return props.tableHeaders.map((th) => (typeof th === "string" ? th : th?.name || "Label"));
60
43
  });
61
44
 
62
45
  const isFullTableLoaderActive = computed(() => {
@@ -147,11 +130,7 @@ onUpdated(() => {
147
130
  ref="ac_table"
148
131
  class="table ac-table is-bordered"
149
132
  :class="{
150
- 'is-fullwidth':
151
- !isDynamicWidthTable ||
152
- isFullTableLoaderActive ||
153
- isTableEmpty ||
154
- isLoaderActive,
133
+ 'is-fullwidth': !isDynamicWidthTable || isFullTableLoaderActive || isTableEmpty || isLoaderActive,
155
134
  // 'ac-striped': !columnStriped,
156
135
  // 'is-bordered': columnStriped,
157
136
  }"
@@ -171,28 +150,15 @@ onUpdated(() => {
171
150
  sorting: headerSortables[idx].enabled,
172
151
  'sorting-desc': headerSortables[idx].mode === 'desc',
173
152
  'sorting-asc': headerSortables[idx].mode === 'asc',
174
- 'has-text-centered':
175
- typeof tableHeader === 'string'
176
- ? false
177
- : tableHeader.textAlign === 'center',
178
- 'has-text-left':
179
- typeof tableHeader === 'string'
180
- ? false
181
- : tableHeader.textAlign === 'left',
182
- 'has-text-right':
183
- typeof tableHeader === 'string'
184
- ? false
185
- : tableHeader.textAlign === 'right',
153
+ 'has-text-centered': typeof tableHeader === 'string' ? false : tableHeader.textAlign === 'center',
154
+ 'has-text-left': typeof tableHeader === 'string' ? false : tableHeader.textAlign === 'left',
155
+ 'has-text-right': typeof tableHeader === 'string' ? false : tableHeader.textAlign === 'right',
186
156
  }"
187
157
  @click.prevent="headerSortables[idx].enabled && emitSortEvent(idx)"
188
158
  >
189
159
  {{ headerLabels[idx] }}
190
160
  <span
191
- v-if="
192
- tableHeader.dashboard &&
193
- tableHeader.dashboard.status &&
194
- tableHeader.dashboard.status !== 'Success'
195
- "
161
+ v-if="tableHeader.dashboard && tableHeader.dashboard.status && tableHeader.dashboard.status !== 'Success'"
196
162
  :title="tableHeader.dashboard && tableHeader.dashboard.message"
197
163
  class="icon has-text-danger"
198
164
  >
@@ -200,11 +166,7 @@ onUpdated(() => {
200
166
  </span>
201
167
  </th>
202
168
  <th ref="action-section" v-if="actionable"></th>
203
- <fake-table-cell
204
- v-if="fakeCellWidth > 0"
205
- :is-header-cell="true"
206
- :fake-cell-width="fakeCellWidth"
207
- />
169
+ <fake-table-cell v-if="fakeCellWidth > 0" :is-header-cell="true" :fake-cell-width="fakeCellWidth" />
208
170
  </table-row>
209
171
  </thead>
210
172
  <!-- table row loaders -->
@@ -215,14 +177,8 @@ onUpdated(() => {
215
177
  </th>
216
178
  </table-row>
217
179
  <table-row v-else>
218
- <table-cell
219
- v-for="(tableHeader, idx) in tableHeaders"
220
- :key="headerLabels[idx]"
221
- >
222
- <cell-value
223
- :is-loader-active="true"
224
- :cell-title="headerLabels[idx]"
225
- />
180
+ <table-cell v-for="(tableHeader, idx) in tableHeaders" :key="headerLabels[idx]">
181
+ <cell-value :is-loader-active="true" :cell-title="headerLabels[idx]" />
226
182
  </table-cell>
227
183
  </table-row>
228
184
  </tbody>
@@ -235,11 +191,7 @@ onUpdated(() => {
235
191
  <tbody v-else>
236
192
  <table-row class="is-hoverless">
237
193
  <table-cell
238
- :colspan="
239
- tableHeaders.length +
240
- (actionable ? 1 : 0) +
241
- (collapsible ? 1 : 0)
242
- "
194
+ :colspan="tableHeaders.length + (actionable ? 1 : 0) + (collapsible ? 1 : 0)"
243
195
  class="no-data-available has-text-centered"
244
196
  >
245
197
  <empty-table-info />
@@ -6,10 +6,7 @@ const tableContainer = ref<HTMLElement | null>(null);
6
6
  const emit = defineEmits(["scroller"]);
7
7
 
8
8
  const isScrollerShowing = () => {
9
- if (tableContainer.value?.scrollWidth)
10
- return (
11
- tableContainer.value?.scrollWidth > tableContainer.value?.clientWidth
12
- );
9
+ if (tableContainer.value?.scrollWidth) return tableContainer.value?.scrollWidth > tableContainer.value?.clientWidth;
13
10
  return false;
14
11
  };
15
12