@appscode/design-system 2.0.59 → 2.0.61

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 (154) 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 +19 -25
  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/_accordion.scss +1 -1
  16. package/vue-components/styles/components/_badge-tags.scss +75 -0
  17. package/vue-components/styles/components/_card-body-wrapper.scss +1 -1
  18. package/vue-components/styles/components/_pagination.scss +2 -2
  19. package/vue-components/styles/components/_preview-modal.scss +3 -3
  20. package/vue-components/styles/components/_progress-bar.scss +3 -3
  21. package/vue-components/styles/components/_table.scss +3 -3
  22. package/vue-components/styles/components/_tabs.scss +2 -2
  23. package/vue-components/styles/components/_terminal.scss +3 -3
  24. package/vue-components/styles/components/_wizard.scss +3 -3
  25. package/vue-components/styles/components/ac-toaster/_ac-toasted.scss +10 -5
  26. package/vue-components/styles/components/alert/_alert.scss +2 -12
  27. package/vue-components/styles/components/alert/_toast.scss +1 -1
  28. package/vue-components/styles/components/bbum/_all.scss +1 -1
  29. package/vue-components/styles/components/bbum/_card-team.scss +1 -6
  30. package/vue-components/styles/components/bbum/_information-center.scss +4 -4
  31. package/vue-components/styles/components/bbum/_mobile-desktop.scss +10 -5
  32. package/vue-components/styles/components/bbum/_user-profile.scss +1 -1
  33. package/vue-components/styles/components/cards/_info.scss +1 -7
  34. package/vue-components/styles/components/editor/_filtered-file-editor.scss +3 -3
  35. package/vue-components/styles/components/editor/_monaco-editor.scss +1 -1
  36. package/vue-components/styles/components/form-fields/_input-card.scss +2 -2
  37. package/vue-components/styles/components/form-fields/_input.scss +3 -3
  38. package/vue-components/styles/components/navbar/_menu-content.scss +1 -2
  39. package/vue-components/styles/components/select-box/_ac-select-box.scss +2 -2
  40. package/vue-components/styles/components/select-box/_multi-select.scss +4 -9
  41. package/vue-components/styles/components/sidebar/_left-sidebar.scss +2 -2
  42. package/vue-components/styles/components/ui-builder/_ui-builder.scss +1 -1
  43. package/vue-components/styles/components/ui-builder/_vue-open-api.scss +5 -10
  44. package/vue-components/styles/layouts/_code-preview.scss +2 -2
  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/accordion/Accordion.vue +6 -2
  86. package/vue-components/v3/alert/AlertMessage.vue +1 -5
  87. package/vue-components/v3/alert/Toast.vue +2 -5
  88. package/vue-components/v3/badge-tags/Badge.vue +24 -0
  89. package/vue-components/v3/badge-tags/Tag.vue +26 -0
  90. package/vue-components/v3/breadcrumbs/Breadcrumb.vue +6 -24
  91. package/vue-components/v3/button/Button.vue +2 -11
  92. package/vue-components/v3/cards/CardHeader.vue +1 -3
  93. package/vue-components/v3/cards/Cluster.vue +3 -9
  94. package/vue-components/v3/cards/Counter.vue +1 -4
  95. package/vue-components/v3/cards/FeatureCard.vue +1 -6
  96. package/vue-components/v3/cards/FeatureCards.vue +1 -5
  97. package/vue-components/v3/cards/InfoCard.vue +10 -30
  98. package/vue-components/v3/cards/Monitoring.vue +3 -15
  99. package/vue-components/v3/cards/OrgCard.vue +7 -26
  100. package/vue-components/v3/cards/OverviewCards.vue +1 -3
  101. package/vue-components/v3/cards/Payment.vue +1 -4
  102. package/vue-components/v3/content/ContentHeader.vue +1 -3
  103. package/vue-components/v3/content/ContentTable.vue +4 -16
  104. package/vue-components/v3/dropdown/DropdownAction.vue +1 -5
  105. package/vue-components/v3/editor/Editor.vue +33 -19
  106. package/vue-components/v3/editor/FilteredFileEditor.vue +29 -27
  107. package/vue-components/v3/editor/MonacoEditor.vue +7 -17
  108. package/vue-components/v3/editor/ResourceKeyValueEditor.vue +5 -17
  109. package/vue-components/v3/footer/Status.vue +5 -18
  110. package/vue-components/v3/footer/Usage.vue +1 -5
  111. package/vue-components/v3/form/Form.vue +1 -3
  112. package/vue-components/v3/form-fields/FileUpload.vue +3 -11
  113. package/vue-components/v3/form-fields/FileUploadSmall.vue +1 -3
  114. package/vue-components/v3/form-fields/Searchbar.vue +5 -21
  115. package/vue-components/v3/header/Header.vue +1 -4
  116. package/vue-components/v3/loaders/ClusterSwitcherLoader.vue +1 -6
  117. package/vue-components/v3/loaders/InfoCardLoader.vue +1 -6
  118. package/vue-components/v3/loaders/SingleInfoCardLoader.vue +1 -6
  119. package/vue-components/v3/messages/Message.vue +6 -4
  120. package/vue-components/v3/modal/Modal.vue +5 -19
  121. package/vue-components/v3/modals/DeleteConfirmationModal.vue +1 -6
  122. package/vue-components/v3/modals/JsonShowModal.vue +5 -17
  123. package/vue-components/v3/navbar/Appdrawer.vue +2 -10
  124. package/vue-components/v3/navbar/Navbar.vue +2 -10
  125. package/vue-components/v3/navbar/NavbarItem.vue +1 -5
  126. package/vue-components/v3/navbar/Notification.vue +7 -31
  127. package/vue-components/v3/navbar/ThemeMode.vue +5 -17
  128. package/vue-components/v3/navbar/User.vue +64 -67
  129. package/vue-components/v3/notification/AlertBox.vue +6 -20
  130. package/vue-components/v3/notification/Notification.vue +6 -25
  131. package/vue-components/v3/notification/NotificationItem.vue +3 -9
  132. package/vue-components/v3/pagination/Pagination.vue +7 -25
  133. package/vue-components/v3/searchbars/SearchBar.vue +3 -17
  134. package/vue-components/v3/sidebar/AccentColorPicker.vue +3 -12
  135. package/vue-components/v3/sidebar/SidebarFooter.vue +3 -17
  136. package/vue-components/v3/sidebar/SidebarHeader.vue +4 -28
  137. package/vue-components/v3/sidebar/SidebarItem.vue +3 -11
  138. package/vue-components/v3/sidebar/SidebarItemWithDropDown.vue +3 -7
  139. package/vue-components/v3/sidebar/Steps.vue +1 -2
  140. package/vue-components/v3/sidebar/sidebar-tabs/SidebarTabsLayout.vue +1 -4
  141. package/vue-components/v3/sidebar/sidebar-tabs/TabsContent.vue +34 -52
  142. package/vue-components/v3/steps/ColoredSteps.vue +75 -0
  143. package/vue-components/v3/table/InfoTable.vue +5 -17
  144. package/vue-components/v3/table/MultiInfoTable.vue +6 -20
  145. package/vue-components/v3/table/Table.vue +15 -63
  146. package/vue-components/v3/table/TableContainer.vue +1 -4
  147. package/vue-components/v3/table/TableRow.vue +5 -24
  148. package/vue-components/v3/table/table-cell/ArrayCell.vue +6 -20
  149. package/vue-components/v3/table/table-cell/CellValue.vue +3 -9
  150. package/vue-components/v3/table/table-cell/GenericCell.vue +2 -5
  151. package/vue-components/v3/table/table-cell/ObjectCell.vue +5 -17
  152. package/vue-components/v3/table/table-cell/ValueWithModal.vue +2 -9
  153. package/vue-components/styles/components/_ac-tags.scss +0 -116
  154. package/vue-components/v3/badge/Badge.vue +0 -3
@@ -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
 
@@ -39,9 +39,7 @@ const collapsibleRow = ref(null as HTMLElement | null);
39
39
 
40
40
  const TableCell = defineAsyncComponent(() => import("./TableCell.vue"));
41
41
  const FakeTableCell = defineAsyncComponent(() => import("./FakeTableCell.vue"));
42
- const CollapsibleButton = defineAsyncComponent(
43
- () => import("../button/Button.vue")
44
- );
42
+ const CollapsibleButton = defineAsyncComponent(() => import("../button/Button.vue"));
45
43
 
46
44
  const isCollapsed = ref(true);
47
45
  const collapsibleRowMaxHeight = ref("0vh");
@@ -81,19 +79,8 @@ const toggleCollapse = () => {
81
79
  </script>
82
80
 
83
81
  <template>
84
- <router-link
85
- v-if="link"
86
- v-slot="{ navigate }"
87
- event="click"
88
- :to="link"
89
- custom
90
- >
91
- <tr
92
- class="is-link"
93
- v-bind="$attrs"
94
- data-testid="ac-table-row"
95
- @click="navigate"
96
- >
82
+ <router-link v-if="link" v-slot="{ navigate }" event="click" :to="link" custom>
83
+ <tr class="is-link" v-bind="$attrs" data-testid="ac-table-row" @click="navigate">
97
84
  <table-cell v-if="collapsible">
98
85
  <collapsible-button
99
86
  modifier-classes="is-square is-light height-20 width-20 is-rounded is-size-7 p-0"
@@ -102,10 +89,7 @@ const toggleCollapse = () => {
102
89
  />
103
90
  </table-cell>
104
91
  <slot />
105
- <fake-table-cell
106
- v-if="fakeCellWidth > 0"
107
- :fake-cell-width="fakeCellWidth"
108
- />
92
+ <fake-table-cell v-if="fakeCellWidth > 0" :fake-cell-width="fakeCellWidth" />
109
93
  </tr>
110
94
  </router-link>
111
95
  <tr
@@ -127,10 +111,7 @@ const toggleCollapse = () => {
127
111
  />
128
112
  </table-cell>
129
113
  <slot />
130
- <fake-table-cell
131
- v-if="fakeCellWidth > 0"
132
- :fake-cell-width="fakeCellWidth"
133
- />
114
+ <fake-table-cell v-if="fakeCellWidth > 0" :fake-cell-width="fakeCellWidth" />
134
115
  </tr>
135
116
  <transition name="slide-down" mode="out-in" appear>
136
117
  <tr v-if="collapsible && !isCollapsed" v-bind="$attrs">
@@ -15,15 +15,9 @@ const props = withDefaults(defineProps<Props>(), {
15
15
 
16
16
  const Tags = defineAsyncComponent(() => import("../../tag/Tags.vue"));
17
17
  const Tag = defineAsyncComponent(() => import("../../tag/Tag.vue"));
18
- const EllipsisIcon = defineAsyncComponent(
19
- () => import("../../icons/Ellipsis.vue")
20
- );
21
- const JsonShowModal = defineAsyncComponent(
22
- () => import("../../modals/JsonShowModal.vue")
23
- );
24
- const ValueWithModal = defineAsyncComponent(
25
- () => import("../../table/table-cell/ValueWithModal.vue")
26
- );
18
+ const EllipsisIcon = defineAsyncComponent(() => import("../../icons/Ellipsis.vue"));
19
+ const JsonShowModal = defineAsyncComponent(() => import("../../modals/JsonShowModal.vue"));
20
+ const ValueWithModal = defineAsyncComponent(() => import("../../table/table-cell/ValueWithModal.vue"));
27
21
 
28
22
  const showFullData = ref(false);
29
23
 
@@ -34,16 +28,11 @@ const printableStringObjs = computed(() => {
34
28
  let print: string | Record<string, unknown> = item;
35
29
  if (typeof item === "object") {
36
30
  exceededLength = true;
37
- print =
38
- (item["Name"] as string) ||
39
- (item["name"] as string) ||
40
- (item[Object.keys(item)[0]] as string);
31
+ print = (item["Name"] as string) || (item["name"] as string) || (item[Object.keys(item)[0]] as string);
41
32
  } else {
42
33
  const stringifiedValue = JSON.stringify(item);
43
34
  exceededLength = stringifiedValue.length > 27;
44
- print = exceededLength
45
- ? `${stringifiedValue.slice(0, 27)}...`
46
- : stringifiedValue;
35
+ print = exceededLength ? `${stringifiedValue.slice(0, 27)}...` : stringifiedValue;
47
36
  }
48
37
  return { value, exceededLength, print };
49
38
  });
@@ -69,10 +58,7 @@ const indexOfCharacterLengthExceed = computed(() => {
69
58
  <span>
70
59
  <tags v-if="printableStringObjs.length">
71
60
  <tag
72
- v-for="(printableStringOb, idx) in printableStringObjs.slice(
73
- 0,
74
- indexOfCharacterLengthExceed
75
- )"
61
+ v-for="(printableStringOb, idx) in printableStringObjs.slice(0, indexOfCharacterLengthExceed)"
76
62
  :key="`${printableStringOb.print}-${idx}`"
77
63
  modifierClasses="is-primary is-light"
78
64
  >
@@ -19,12 +19,8 @@ const props = withDefaults(defineProps<Props>(), {
19
19
  const ContentLoader = defineAsyncComponent(() =>
20
20
  import("vue-content-loader").then(({ ContentLoader }) => ContentLoader)
21
21
  );
22
- const ObjectCell = defineAsyncComponent(
23
- () => import("../../table/table-cell/ObjectCell.vue")
24
- );
25
- const ArrayCell = defineAsyncComponent(
26
- () => import("../../table/table-cell/ArrayCell.vue")
27
- );
22
+ const ObjectCell = defineAsyncComponent(() => import("../../table/table-cell/ObjectCell.vue"));
23
+ const ArrayCell = defineAsyncComponent(() => import("../../table/table-cell/ArrayCell.vue"));
28
24
 
29
25
  const loaderLightThemePrimaryColor = "#f5f7f9";
30
26
  const loaderDarkThemePrimaryColor = "#2e323c";
@@ -93,9 +89,7 @@ const secondaryColor = computed(() => {
93
89
  data-testid="array-cell-value"
94
90
  />
95
91
  <template v-else>
96
- <span :title="tooltip" data-testid="cell-value">{{
97
- value || (value === 0 ? 0 : "-")
98
- }}</span>
92
+ <span :title="tooltip" data-testid="cell-value">{{ value || (value === 0 ? 0 : "-") }}</span>
99
93
  </template>
100
94
  </div>
101
95
  </template>
@@ -19,14 +19,11 @@ const props = withDefaults(defineProps<Props>(), {
19
19
  });
20
20
 
21
21
  const Tag = defineAsyncComponent(() => import("../../tag/Tag.vue"));
22
- const CellValue = defineAsyncComponent(
23
- () => import("../../table/table-cell/CellValue.vue")
24
- );
22
+ const CellValue = defineAsyncComponent(() => import("../../table/table-cell/CellValue.vue"));
25
23
 
26
24
  const route = useRoute();
27
25
  function getCellLink(cell: AcTableCell) {
28
- const inject = (str: string, obj: Record<string, string>) =>
29
- str.replace(/\${(.*?)}/g, (x, g) => obj[g]);
26
+ const inject = (str: string, obj: Record<string, string>) => str.replace(/\${(.*?)}/g, (x, g) => obj[g]);
30
27
  const { user, cluster } = route.params;
31
28
  const link = inject(cell.link || "", {
32
29
  username: user as string,
@@ -15,15 +15,9 @@ const props = withDefaults(defineProps<Props>(), {
15
15
 
16
16
  const Tags = defineAsyncComponent(() => import("../../tag/Tags.vue"));
17
17
  const Tag = defineAsyncComponent(() => import("../../tag/Tag.vue"));
18
- const EllipsisIcon = defineAsyncComponent(
19
- () => import("../../icons/Ellipsis.vue")
20
- );
21
- const JsonShowModal = defineAsyncComponent(
22
- () => import("../../modals/JsonShowModal.vue")
23
- );
24
- const ValueWithModal = defineAsyncComponent(
25
- () => import("../../table/table-cell/ValueWithModal.vue")
26
- );
18
+ const EllipsisIcon = defineAsyncComponent(() => import("../../icons/Ellipsis.vue"));
19
+ const JsonShowModal = defineAsyncComponent(() => import("../../modals/JsonShowModal.vue"));
20
+ const ValueWithModal = defineAsyncComponent(() => import("../../table/table-cell/ValueWithModal.vue"));
27
21
 
28
22
  const showFullData = ref(false);
29
23
 
@@ -64,10 +58,7 @@ const indexOfCharacterLengthExceed = computed(() => {
64
58
  <span>
65
59
  <tags v-if="printableStringObjs.length">
66
60
  <tag
67
- v-for="printableStringOb in printableStringObjs.slice(
68
- 0,
69
- indexOfCharacterLengthExceed
70
- )"
61
+ v-for="printableStringOb in printableStringObjs.slice(0, indexOfCharacterLengthExceed)"
71
62
  :key="printableStringOb.key"
72
63
  modifierClasses="is-secondary is-light"
73
64
  >
@@ -80,10 +71,7 @@ const indexOfCharacterLengthExceed = computed(() => {
80
71
  <template v-else> {{ printableStringOb.print }} </template>
81
72
  </tag>
82
73
 
83
- <tag
84
- modifierClasses="is-secondary is-light"
85
- v-if="indexOfCharacterLengthExceed !== printableStringObjs.length"
86
- >
74
+ <tag modifierClasses="is-secondary is-light" v-if="indexOfCharacterLengthExceed !== printableStringObjs.length">
87
75
  <a @click.prevent.stop="showFullData = true">
88
76
  <ellipsis-icon />
89
77
  <json-show-modal
@@ -13,9 +13,7 @@ withDefaults(defineProps<Props>(), {
13
13
  print: "",
14
14
  });
15
15
 
16
- const JsonShowModal = defineAsyncComponent(
17
- () => import("../../modals/JsonShowModal.vue")
18
- );
16
+ const JsonShowModal = defineAsyncComponent(() => import("../../modals/JsonShowModal.vue"));
19
17
 
20
18
  const showModal = ref(false);
21
19
  </script>
@@ -24,11 +22,6 @@ const showModal = ref(false);
24
22
  <a @click.prevent.stop="showModal = true">
25
23
  {{ print }}
26
24
 
27
- <json-show-modal
28
- :open="showModal"
29
- @closemodal="showModal = false"
30
- :editor-title="title"
31
- :editor-content="value"
32
- />
25
+ <json-show-modal :open="showModal" @closemodal="showModal = false" :editor-title="title" :editor-content="value" />
33
26
  </a>
34
27
  </template>
@@ -1,116 +0,0 @@
1
- // .tag:not(body) {
2
- // background-color: $color-border;
3
- // font-size: 10px;
4
- // height: 18px;
5
- // font-weight: 500;
6
- // line-height: 1;
7
- // letter-spacing: 0px;
8
- // color: $color-heading;
9
- // &.is-outlined {
10
- // border: 1px solid;
11
- // background-color: transparent;
12
- // }
13
-
14
- // a {
15
- // &:hover {
16
- // color: $color-heading;
17
- // }
18
- // }
19
-
20
- // &.is-available {
21
- // background-color: #27b064;
22
- // color: $white-100;
23
- // }
24
-
25
- // &.is-success {
26
- // background-color: $success;
27
- // color: $white-100;
28
-
29
- // &.is-light {
30
- // background-color: rgba(39, 176, 100, 0.2);
31
- // color: $success;
32
- // }
33
- // }
34
-
35
- // &.is-primary {
36
- // background-color: $ac-primary;
37
- // color: $white-100;
38
-
39
- // &.is-light {
40
- // background-color: rgba(25, 113, 189, 0.2);
41
- // color: $ac-primary;
42
- // }
43
- // }
44
-
45
- // &.is-gray {
46
- // background-color: #e5e9f2;
47
- // color: $black-40;
48
- // }
49
-
50
- // &.is-warning {
51
- // background-color: $warning;
52
- // color: $white-100;
53
-
54
- // &.is-light {
55
- // background-color: #ffd58b42;
56
- // color: #c88b21;
57
- // }
58
- // }
59
-
60
- // &.is-danger {
61
- // background-color: $danger;
62
- // color: $white-100 !important;
63
-
64
- // &.is-light {
65
- // background-color: rgba(234, 61, 47, 0.2);
66
- // color: $danger !important;
67
- // }
68
- // }
69
- // }
70
-
71
- // .tags {
72
- // .icon {
73
- // margin-bottom: 0.5rem;
74
- // }
75
-
76
- // .tag {
77
- // a {
78
- // font-weight: 500;
79
- // }
80
- // }
81
- // }
82
-
83
- // .has-tags {
84
- // display: flex;
85
- // align-items: center;
86
-
87
- // li {
88
- // background-color: $black-80;
89
- // list-style: none;
90
- // padding: 2px 10px;
91
- // border-radius: 4px;
92
- // font-size: 12px;
93
- // line-height: 1;
94
- // border: 1px solid $primary-20;
95
- // margin-right: 5px;
96
-
97
- // &:last-child {
98
- // margin-right: 0;
99
- // }
100
-
101
- // &.is-warning {
102
- // @include ac-tags($warning);
103
- // }
104
-
105
- // &.is-primary {
106
- // @include ac-tags($primary);
107
- // }
108
-
109
- // &.is-danger {
110
- // @include ac-tags($danger);
111
- // }
112
- // &.is-dark {
113
- // @include ac-tags($black-30);
114
- // }
115
- // }
116
- // }
@@ -1,3 +0,0 @@
1
- <template>
2
- <h1>Badge</h1>
3
- </template>