@appscode/design-system 2.3.0 → 2.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/main.scss +1 -1
- package/package.json +1 -1
- package/plugins/time-convert.js +0 -1
- package/vue-components/styles/base/utilities/_colors.scss +8 -2
- package/vue-components/styles/base/utilities/_global.scss +3 -1
- package/vue-components/styles/components/_table.scss +3 -1
- package/vue-components/styles/components/form-fields/_all.scss +1 -1
- package/vue-components/styles/components/form-fields/_custom-selectbox.scss +1 -1
- package/vue-components/styles/components/form-fields/_input.scss +2 -9
- package/vue-components/v3/accordion/Accordion.vue +14 -7
- package/vue-components/v3/breadcrumbs/Breadcrumb.vue +1 -1
- package/vue-components/v3/button/Buttons.vue +1 -1
- package/vue-components/v3/cards/FeatureCard.vue +1 -1
- package/vue-components/v3/dropdown/DropdownMenu.vue +1 -1
- package/vue-components/v3/editor/Editor.vue +2 -2
- package/vue-components/v3/editor/FilteredFileEditor.vue +2 -2
- package/vue-components/v3/editor/MonacoEditor.vue +1 -1
- package/vue-components/v3/editor/ResourceKeyValueEditor.vue +1 -1
- package/vue-components/v3/form-fields/AcInput.vue +1 -1
- package/vue-components/v3/form-fields/AcTextArea.vue +1 -1
- package/vue-components/v3/form-fields/ListInputField.vue +1 -1
- package/vue-components/v3/modal/DialogModal.vue +1 -1
- package/vue-components/v3/navbar/NavbarItem.vue +2 -2
- package/vue-components/v3/navbar/Notification.vue +1 -1
- package/vue-components/v3/pagination/Pagination.vue +1 -1
- package/vue-components/v3/sidebar/AccentColorPicker.vue +2 -2
- package/vue-components/v3/sidebar/ClusterSwitcher.vue +2 -2
- package/vue-components/v3/sidebar/SidebarItem.vue +1 -1
- package/vue-components/v3/sidebar/SidebarItemWithDropDown.vue +1 -1
- package/vue-components/v3/table/InfoTable.vue +1 -1
- package/vue-components/v3/table/MultiInfoTable.vue +1 -1
- package/vue-components/v3/table/Table.vue +1 -1
- package/vue-components/v3/table/TableCell.vue +1 -3
- package/vue-components/v3/table/table-cell/CellValue.vue +2 -2
- package/vue-components/v3/table/table-cell/GenericCell.vue +1 -1
- package/plugins/vue-toaster.js +0 -85
package/main.scss
CHANGED
|
@@ -25,4 +25,4 @@
|
|
|
25
25
|
@import "@/components/vue-components/styles/components/form-fields/custom-selectbox";
|
|
26
26
|
@import "@/components/vue-components/styles/components/ui-builder/vue-open-api";
|
|
27
27
|
@import "@/components/vue-components/styles/components/ui-builder/ui-builder";
|
|
28
|
-
// @import "@/components/vue-components/styles/theme/appscode.scss";
|
|
28
|
+
// @import "@/components/vue-components/styles/theme/appscode.scss";
|
package/package.json
CHANGED
package/plugins/time-convert.js
CHANGED
|
@@ -178,10 +178,16 @@ $gray-97: hsl($gray-hue, $gray-saturation, 97%);
|
|
|
178
178
|
// Box Shadow
|
|
179
179
|
$ac-shadow-1: 0 1px 4px rgba(26, 80, 151, 0.16);
|
|
180
180
|
$ac-shadow-2: 0px 8px 57px rgba(0, 0, 0, 0.16);
|
|
181
|
-
$ac-shadow-3:
|
|
181
|
+
$ac-shadow-3:
|
|
182
|
+
0 3px 4px 0 rgba(0, 0, 0, 0.18),
|
|
183
|
+
0 3px 3px -2px rgba(0, 0, 0, 0.16),
|
|
184
|
+
0 1px 6px 0 rgba(0, 0, 0, 0.12);
|
|
182
185
|
|
|
183
186
|
$shadow-sm: 0 1px 4px rgba(26, 80, 151, 0.16);
|
|
184
187
|
$shadow-xl: 0px 8px 57px rgba(0, 0, 0, 0.16);
|
|
185
|
-
$shadow-lg:
|
|
188
|
+
$shadow-lg:
|
|
189
|
+
0 3px 4px 0 rgba(0, 0, 0, 0.18),
|
|
190
|
+
0 3px 3px -2px rgba(0, 0, 0, 0.16),
|
|
191
|
+
0 1px 6px 0 rgba(0, 0, 0, 0.12);
|
|
186
192
|
|
|
187
193
|
// @import "../../theme/appscode";
|
|
@@ -637,7 +637,9 @@ $border_color_4: transparent transparent #585d6e transparent;
|
|
|
637
637
|
&[aria-hidden="true"] {
|
|
638
638
|
visibility: hidden;
|
|
639
639
|
opacity: 0;
|
|
640
|
-
transition:
|
|
640
|
+
transition:
|
|
641
|
+
opacity 0.15s,
|
|
642
|
+
visibility 0.15s;
|
|
641
643
|
}
|
|
642
644
|
|
|
643
645
|
&[aria-hidden="false"] {
|
|
@@ -417,7 +417,9 @@
|
|
|
417
417
|
.table-inner-shadow {
|
|
418
418
|
border-radius: 0px;
|
|
419
419
|
background: $color-border;
|
|
420
|
-
box-shadow:
|
|
420
|
+
box-shadow:
|
|
421
|
+
inset 5px 5px 10px #e3e6e9,
|
|
422
|
+
inset -5px -5px 10px $white-100;
|
|
421
423
|
}
|
|
422
424
|
|
|
423
425
|
@keyframes expand {
|
|
@@ -42,7 +42,6 @@
|
|
|
42
42
|
}
|
|
43
43
|
|
|
44
44
|
&.is-success {
|
|
45
|
-
|
|
46
45
|
input,
|
|
47
46
|
.ac-card,
|
|
48
47
|
textarea,
|
|
@@ -56,7 +55,6 @@
|
|
|
56
55
|
}
|
|
57
56
|
|
|
58
57
|
&.is-danger {
|
|
59
|
-
|
|
60
58
|
input,
|
|
61
59
|
.ac-card,
|
|
62
60
|
textarea,
|
|
@@ -70,7 +68,6 @@
|
|
|
70
68
|
}
|
|
71
69
|
|
|
72
70
|
&.is-loading {
|
|
73
|
-
|
|
74
71
|
input,
|
|
75
72
|
.ac-card,
|
|
76
73
|
textarea {
|
|
@@ -112,7 +109,6 @@
|
|
|
112
109
|
}
|
|
113
110
|
|
|
114
111
|
&.is-normal {
|
|
115
|
-
|
|
116
112
|
input,
|
|
117
113
|
select {
|
|
118
114
|
height: 45px;
|
|
@@ -161,7 +157,6 @@
|
|
|
161
157
|
}
|
|
162
158
|
|
|
163
159
|
&.is-small {
|
|
164
|
-
|
|
165
160
|
input,
|
|
166
161
|
select {
|
|
167
162
|
height: 36px;
|
|
@@ -220,7 +215,6 @@
|
|
|
220
215
|
}
|
|
221
216
|
|
|
222
217
|
&.is-extra-small {
|
|
223
|
-
|
|
224
218
|
input,
|
|
225
219
|
select {
|
|
226
220
|
height: 32px;
|
|
@@ -505,7 +499,7 @@
|
|
|
505
499
|
// check radio
|
|
506
500
|
|
|
507
501
|
.ac-single-radio {
|
|
508
|
-
.is-checkradio[type="radio"]+label {
|
|
502
|
+
.is-checkradio[type="radio"] + label {
|
|
509
503
|
padding-left: 25px;
|
|
510
504
|
|
|
511
505
|
&:before {
|
|
@@ -575,7 +569,6 @@
|
|
|
575
569
|
}
|
|
576
570
|
|
|
577
571
|
&:hover {
|
|
578
|
-
|
|
579
572
|
.file-cta,
|
|
580
573
|
.file-name {
|
|
581
574
|
border-color: $ac-primary;
|
|
@@ -632,4 +625,4 @@
|
|
|
632
625
|
}
|
|
633
626
|
}
|
|
634
627
|
}
|
|
635
|
-
}
|
|
628
|
+
}
|
|
@@ -4,23 +4,30 @@ withDefaults(defineProps<{ isActive?: boolean; bodyInside?: boolean }>(), {
|
|
|
4
4
|
bodyInside: false,
|
|
5
5
|
});
|
|
6
6
|
|
|
7
|
-
defineEmits([
|
|
8
|
-
|
|
7
|
+
defineEmits(["onClick"]);
|
|
9
8
|
</script>
|
|
10
9
|
|
|
11
|
-
|
|
12
10
|
<template>
|
|
13
11
|
<div class="single-accordion-item">
|
|
14
12
|
<div @click.prevent="$emit('onClick')" class="accordion-heading is-clickable">
|
|
15
13
|
<slot name="title" />
|
|
16
14
|
<div class="accordion-right is-flex is-align-items-center">
|
|
17
|
-
<div
|
|
18
|
-
|
|
15
|
+
<div
|
|
16
|
+
v-show="!isActive"
|
|
17
|
+
class="accordion-description is-justify-content-flex-end has-text-right is-flex-direction-column"
|
|
18
|
+
>
|
|
19
19
|
<slot name="description" />
|
|
20
20
|
</div>
|
|
21
21
|
<button class="icon">
|
|
22
|
-
<svg
|
|
23
|
-
|
|
22
|
+
<svg
|
|
23
|
+
:style="{ transform: isActive ? 'rotate(-180deg)' : 'rotate(0deg)' }"
|
|
24
|
+
xmlns="http://www.w3.org/2000/svg"
|
|
25
|
+
fill="none"
|
|
26
|
+
viewBox="0 0 24 24"
|
|
27
|
+
stroke-width="1.5"
|
|
28
|
+
stroke="currentColor"
|
|
29
|
+
class="size-6"
|
|
30
|
+
>
|
|
24
31
|
<path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5" />
|
|
25
32
|
</svg>
|
|
26
33
|
</button>
|
|
@@ -59,7 +59,7 @@ export default defineComponent({
|
|
|
59
59
|
// remove the schema
|
|
60
60
|
if (this.$monacoValidationOptions) {
|
|
61
61
|
this.$monacoValidationOptions.schemas = this.$monacoValidationOptions.schemas.filter(
|
|
62
|
-
(schema) => !schema.fileMatch.includes(this.modelId)
|
|
62
|
+
(schema) => !schema.fileMatch.includes(this.modelId),
|
|
63
63
|
);
|
|
64
64
|
}
|
|
65
65
|
// dispose editor
|
|
@@ -63,7 +63,7 @@ watch(
|
|
|
63
63
|
document.documentElement.style.setProperty("--hsl-lightness", lightness);
|
|
64
64
|
});
|
|
65
65
|
},
|
|
66
|
-
{ deep: true }
|
|
66
|
+
{ deep: true },
|
|
67
67
|
);
|
|
68
68
|
|
|
69
69
|
watch(
|
|
@@ -76,7 +76,7 @@ watch(
|
|
|
76
76
|
document.documentElement.style.setProperty("--font-hsl-lightness", lightness);
|
|
77
77
|
});
|
|
78
78
|
},
|
|
79
|
-
{ deep: true }
|
|
79
|
+
{ deep: true },
|
|
80
80
|
);
|
|
81
81
|
</script>
|
|
82
82
|
|
|
@@ -32,7 +32,7 @@ watch(
|
|
|
32
32
|
(n) => {
|
|
33
33
|
selectedClusterName.value = n;
|
|
34
34
|
},
|
|
35
|
-
{ immediate: true }
|
|
35
|
+
{ immediate: true },
|
|
36
36
|
);
|
|
37
37
|
|
|
38
38
|
watch(selectedCluster, (n) => {
|
|
@@ -62,7 +62,7 @@ watch(
|
|
|
62
62
|
return selectedClusterName.value === item.name;
|
|
63
63
|
}) || null;
|
|
64
64
|
},
|
|
65
|
-
{ immediate: true, deep: true }
|
|
65
|
+
{ immediate: true, deep: true },
|
|
66
66
|
);
|
|
67
67
|
</script>
|
|
68
68
|
|
|
@@ -53,7 +53,7 @@ const isFullTableLoaderActive = computed(() => {
|
|
|
53
53
|
}"
|
|
54
54
|
>
|
|
55
55
|
<template v-if="!isTableEmpty">
|
|
56
|
-
<table-row v-for="(tableHeader, idx) in tableHeaders" :key="
|
|
56
|
+
<table-row v-for="(tableHeader, idx) in tableHeaders" :key="tableHeader as string">
|
|
57
57
|
<table-cell>
|
|
58
58
|
<span class="is-flex is-align-items-center">
|
|
59
59
|
<slot :name="`table-cell-icon-${idx}`" />
|
|
@@ -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(() => {
|
package/plugins/vue-toaster.js
DELETED
|
@@ -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
|
-
};
|