@appscode/design-system 2.2.65 → 2.2.67-alpha

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 (49) hide show
  1. package/main.scss +3 -2
  2. package/package.json +1 -1
  3. package/plugins/time-convert.js +0 -1
  4. package/vue-components/styles/base/utilities/_all.scss +1 -0
  5. package/vue-components/styles/base/utilities/_animation.scss +11 -0
  6. package/vue-components/styles/base/utilities/_colors.scss +8 -2
  7. package/vue-components/styles/base/utilities/_global.scss +3 -1
  8. package/vue-components/styles/components/_table.scss +3 -1
  9. package/vue-components/styles/components/form-fields/_all.scss +1 -0
  10. package/vue-components/styles/components/form-fields/_check-radio-switch.scss +230 -34
  11. package/vue-components/styles/components/form-fields/_custom-selectbox.scss +135 -0
  12. package/vue-components/styles/components/form-fields/_input.scss +2 -9
  13. package/vue-components/styles/components/header/_header.scss +1 -1
  14. package/vue-components/v3/accordion/Accordion.vue +14 -7
  15. package/vue-components/v3/breadcrumbs/Breadcrumb.vue +1 -1
  16. package/vue-components/v3/button/Buttons.vue +1 -1
  17. package/vue-components/v3/cards/FeatureCard.vue +1 -1
  18. package/vue-components/v3/code-preview/CodeBlock.vue +16 -5
  19. package/vue-components/v3/code-preview/CodeGroup.vue +13 -8
  20. package/vue-components/v3/dropdown/DropdownMenu.vue +1 -1
  21. package/vue-components/v3/editor/Editor.vue +2 -2
  22. package/vue-components/v3/editor/FilteredFileEditor.vue +2 -2
  23. package/vue-components/v3/editor/MonacoEditor.vue +1 -1
  24. package/vue-components/v3/editor/ResourceKeyValueEditor.vue +1 -1
  25. package/vue-components/v3/form-fields/AcInput.vue +1 -1
  26. package/vue-components/v3/form-fields/AcTextArea.vue +1 -1
  27. package/vue-components/v3/form-fields/CheckBox.vue +7 -11
  28. package/vue-components/v3/form-fields/CheckRadio.vue +2 -3
  29. package/vue-components/v3/form-fields/CustomSelect.vue +122 -0
  30. package/vue-components/v3/form-fields/ListInputField.vue +118 -0
  31. package/vue-components/v3/form-fields/Switch.vue +14 -10
  32. package/vue-components/v3/icons/ArrowDownIcon.vue +14 -0
  33. package/vue-components/v3/icons/CloseIcon.vue +14 -0
  34. package/vue-components/v3/icons/RefreshIcon.vue +18 -0
  35. package/vue-components/v3/modal/DialogModal.vue +1 -1
  36. package/vue-components/v3/navbar/NavbarItem.vue +2 -2
  37. package/vue-components/v3/navbar/Notification.vue +1 -1
  38. package/vue-components/v3/pagination/Pagination.vue +1 -1
  39. package/vue-components/v3/sidebar/AccentColorPicker.vue +2 -2
  40. package/vue-components/v3/sidebar/ClusterSwitcher.vue +2 -2
  41. package/vue-components/v3/sidebar/SidebarItem.vue +1 -1
  42. package/vue-components/v3/sidebar/SidebarItemWithDropDown.vue +1 -1
  43. package/vue-components/v3/table/InfoTable.vue +1 -1
  44. package/vue-components/v3/table/MultiInfoTable.vue +1 -1
  45. package/vue-components/v3/table/Table.vue +1 -1
  46. package/vue-components/v3/table/TableCell.vue +1 -3
  47. package/vue-components/v3/table/table-cell/CellValue.vue +2 -2
  48. package/vue-components/v3/table/table-cell/GenericCell.vue +1 -1
  49. package/plugins/vue-toaster.js +0 -85
@@ -119,7 +119,7 @@ watch(
119
119
  });
120
120
  }
121
121
  },
122
- { immediate: true }
122
+ { immediate: true },
123
123
  );
124
124
 
125
125
  onUpdated(() => {
@@ -1,11 +1,9 @@
1
1
  <script setup lang="ts">
2
- import { computed } from "vue";
3
-
4
2
  interface Props {
5
3
  cellWidth?: number | null;
6
4
  }
7
5
 
8
- const props = withDefaults(defineProps<Props>(), {
6
+ withDefaults(defineProps<Props>(), {
9
7
  cellWidth: null,
10
8
  });
11
9
  </script>
@@ -17,7 +17,7 @@ const props = withDefaults(defineProps<Props>(), {
17
17
  });
18
18
 
19
19
  const ContentLoader = defineAsyncComponent(() =>
20
- import("vue-content-loader").then(({ ContentLoader }) => ContentLoader)
20
+ import("vue-content-loader").then(({ ContentLoader }) => ContentLoader),
21
21
  );
22
22
  const ObjectCell = defineAsyncComponent(() => import("../../table/table-cell/ObjectCell.vue"));
23
23
  const ArrayCell = defineAsyncComponent(() => import("../../table/table-cell/ArrayCell.vue"));
@@ -58,7 +58,7 @@ watch(
58
58
  oldDivValue = n;
59
59
  }
60
60
  },
61
- { immediate: true }
61
+ { immediate: true },
62
62
  );
63
63
 
64
64
  const primaryColor = computed(() => {
@@ -66,7 +66,7 @@ function redirectTo() {
66
66
  <cell-value
67
67
  v-else
68
68
  :cell-title="cellDescriptor.name"
69
- :value="cellValue.data as {} || '-'"
69
+ :value="(cellValue.data as {}) || '-'"
70
70
  :tooltip="cellValue.tooltip || JSON.stringify(cellValue.data)"
71
71
  />
72
72
  </span>
@@ -1,85 +0,0 @@
1
- module.exports = {
2
- position: "top-center",
3
- theme: "toasted-primary",
4
- iconPack: "fontawesome",
5
- className: "ac-toast",
6
- action: {
7
- icon: "close",
8
- class: "ac-toast-action",
9
- onClick: (e, toastObject) => {
10
- toastObject.goAway(0);
11
- },
12
- },
13
- register: [
14
- {
15
- name: "success",
16
- message: (payload) => {
17
- if (payload) {
18
- if (typeof payload === "string") return payload;
19
- else if (payload.message) return payload.message;
20
- else return "Operation Completed Successfully";
21
- }
22
- // if there is no message passed show default message
23
- else return "Operation Completed Successfully";
24
- },
25
- options: {
26
- icon: "fa-check",
27
- duration: 2500,
28
- type: "success",
29
- className: "ac-toast is-success",
30
- },
31
- },
32
- {
33
- name: "error",
34
- message: (payload) => {
35
- if (payload) {
36
- if (typeof payload === "string") return payload;
37
- else if (payload.response && payload.response.data && payload.response.data.message)
38
- return payload.response.data.message;
39
- else if (payload.message) return payload.message;
40
- else return "Something Went Wrong";
41
- } else return "Something Went Wrong";
42
- },
43
- options: {
44
- icon: "fa-warning",
45
- duration: 20000,
46
- type: "error",
47
- className: "ac-toast is-danger",
48
- },
49
- },
50
- {
51
- name: "info",
52
- message: (payload) => {
53
- if (payload) {
54
- if (typeof payload === "string") return payload;
55
- else if (payload.message) return payload.message;
56
- else return "Something Went Wrong";
57
- } else return "Something Went Wrong";
58
- },
59
- options: {
60
- icon: "fa-info",
61
- duration: 20000,
62
- type: "info",
63
- className: "ac-toast is-info",
64
- },
65
- },
66
- {
67
- name: "warning",
68
- message: (payload) => {
69
- if (payload) {
70
- if (typeof payload === "string") return payload;
71
- else if (payload.message) return payload.message;
72
- else return "Something Went Wrong";
73
- }
74
- // if there is no message passed show default message
75
- else return "Something Went Wrong";
76
- },
77
- options: {
78
- icon: "fa-warning",
79
- duration: 2500,
80
- type: "error",
81
- className: "ac-toast is-warning",
82
- },
83
- },
84
- ],
85
- };