@appscode/design-system 1.0.43-alpha.111 → 1.0.43-alpha.114

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.
@@ -565,6 +565,11 @@ button {
565
565
  &.is-warning {
566
566
  background-color: $ac-warning;
567
567
  color: $ac-white !important;
568
+
569
+ &.is-light {
570
+ background-color: #f7ac2a75;
571
+ color: $ac-warning;
572
+ }
568
573
  }
569
574
 
570
575
  &.is-danger {
@@ -950,8 +955,6 @@ $border_color_4: transparent transparent #585d6e transparent;
950
955
  // Status css
951
956
  // ac-footer sticky end
952
957
 
953
-
954
-
955
958
  // terminal scss end
956
959
  .is-dark-theme {
957
960
  a {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "1.0.43-alpha.111",
3
+ "version": "1.0.43-alpha.114",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -93,7 +93,7 @@ export default {
93
93
  const activeFile = this.filteredYamls.find(
94
94
  element => element.uid === this.activeKey
95
95
  );
96
- return activeFile || { content: "No resource available", format: "yaml" };
96
+ return activeFile || { content: "", format: "yaml" };
97
97
  },
98
98
  filteredYamls() {
99
99
  if (this.searchText) {
@@ -101,13 +101,21 @@ export default {
101
101
  element => JSON.stringify(element).search(this.searchText) > -1
102
102
  );
103
103
  } else return this.previewYamls;
104
+ },
105
+ isKeyAvailable() {
106
+ const val = this.previewYamls.find(element => {
107
+ return element.uid === this.activeKey;
108
+ });
109
+ return val === undefined ? false : true;
104
110
  }
105
111
  },
106
112
  methods: {
107
113
  initActivePreview() {
108
- this.activeKey = this.previewYamls[0].uid;
109
- this.hideValue = this.activeFile.isSecret;
110
- this.$emit("setActiveKey", this.activeKey);
114
+ if (!this.isKeyAvailable) {
115
+ this.activeKey = this.previewYamls[0].uid;
116
+ this.hideValue = this.activeFile.isSecret;
117
+ this.$emit("setActiveKey", this.activeKey);
118
+ }
111
119
  },
112
120
  setActivePreview(uid) {
113
121
  this.activeKey = uid;
@@ -1,7 +1,11 @@
1
1
  <template>
2
2
  <div v-if="isLoaderActive" ref="cellLoaderDiv" :style="{ maxWidth: '300px' }">
3
- <content-loader :height="10" :width="computedCellWidth || 300" :primaryColor="primaryColor"
4
- :secondaryColor="secondaryColor" />
3
+ <content-loader
4
+ :height="10"
5
+ :width="computedCellWidth || 300"
6
+ :primaryColor="primaryColor"
7
+ :secondaryColor="secondaryColor"
8
+ />
5
9
  </div>
6
10
  <div v-else class="haha" ref="cellDiv">
7
11
  <object-cell
@@ -17,7 +21,7 @@
17
21
  :max-character-length="maxCharacterLength"
18
22
  />
19
23
  <template v-else>
20
- <span class="is-ellipsis-1" :title="value">{{
24
+ <span class="is-ellipsis-1" :title="tooltip">{{
21
25
  value || (value === 0 ? 0 : "-")
22
26
  }}</span>
23
27
  </template>
@@ -25,7 +29,12 @@
25
29
  </template>
26
30
 
27
31
  <script>
28
- import {loaderLightThemePrimaryColor, loaderDarkThemePrimaryColor, loaderLightThemeSecondaryColor, loaderDarkThemeSecondaryColor} from "@appscode/design-system/plugins/theme";
32
+ import {
33
+ loaderLightThemePrimaryColor,
34
+ loaderDarkThemePrimaryColor,
35
+ loaderLightThemeSecondaryColor,
36
+ loaderDarkThemeSecondaryColor,
37
+ } from "@appscode/design-system/plugins/theme";
29
38
 
30
39
  export default {
31
40
  props: {
@@ -41,6 +50,10 @@ export default {
41
50
  type: null,
42
51
  default: "",
43
52
  },
53
+ tooltip: {
54
+ type: String,
55
+ defualt: "",
56
+ },
44
57
  },
45
58
  components: {
46
59
  ContentLoader: () =>
@@ -60,11 +73,15 @@ export default {
60
73
  return Math.ceil(this.computedCellWidth / 8);
61
74
  },
62
75
  primaryColor() {
63
- return document.documentElement.classList.contains("is-dark-theme") ? loaderDarkThemePrimaryColor : loaderLightThemePrimaryColor;
76
+ return document.documentElement.classList.contains("is-dark-theme")
77
+ ? loaderDarkThemePrimaryColor
78
+ : loaderLightThemePrimaryColor;
64
79
  },
65
80
  secondaryColor() {
66
- return document.documentElement.classList.contains("is-dark-theme") ? loaderDarkThemeSecondaryColor : loaderLightThemeSecondaryColor;
67
- }
81
+ return document.documentElement.classList.contains("is-dark-theme")
82
+ ? loaderDarkThemeSecondaryColor
83
+ : loaderLightThemeSecondaryColor;
84
+ },
68
85
  },
69
86
 
70
87
  data() {
@@ -22,7 +22,7 @@
22
22
  :max-character-length="maxCharacterLength"
23
23
  />
24
24
  <template v-else>
25
- <span class="is-ellipsis-1" :title="value">{{
25
+ <span class="is-ellipsis-1" :title="tooltip">{{
26
26
  value || (value === 0 ? 0 : "-")
27
27
  }}</span>
28
28
  </template>
@@ -31,7 +31,12 @@
31
31
 
32
32
  <script>
33
33
  import { defineComponent, defineAsyncComponent } from "vue";
34
- import { loaderLightThemePrimaryColor, loaderDarkThemePrimaryColor, loaderLightThemeSecondaryColor, loaderDarkThemeSecondaryColor } from "@appscode/design-system/plugins/theme";
34
+ import {
35
+ loaderLightThemePrimaryColor,
36
+ loaderDarkThemePrimaryColor,
37
+ loaderLightThemeSecondaryColor,
38
+ loaderDarkThemeSecondaryColor,
39
+ } from "@appscode/design-system/plugins/theme";
35
40
 
36
41
  export default defineComponent({
37
42
  props: {
@@ -47,6 +52,10 @@ export default defineComponent({
47
52
  type: null,
48
53
  default: "",
49
54
  },
55
+ tooltip: {
56
+ type: String,
57
+ defualt: "",
58
+ },
50
59
  },
51
60
  components: {
52
61
  ContentLoader: defineAsyncComponent(() =>
@@ -71,11 +80,15 @@ export default defineComponent({
71
80
  return Math.ceil(this.computedCellWidth / 8);
72
81
  },
73
82
  primaryColor() {
74
- return document.documentElement.classList.contains("is-dark-theme") ? loaderDarkThemePrimaryColor : loaderLightThemePrimaryColor;
83
+ return document.documentElement.classList.contains("is-dark-theme")
84
+ ? loaderDarkThemePrimaryColor
85
+ : loaderLightThemePrimaryColor;
75
86
  },
76
87
  secondaryColor() {
77
- return document.documentElement.classList.contains("is-dark-theme") ? loaderDarkThemeSecondaryColor : loaderLightThemeSecondaryColor;
78
- }
88
+ return document.documentElement.classList.contains("is-dark-theme")
89
+ ? loaderDarkThemeSecondaryColor
90
+ : loaderLightThemeSecondaryColor;
91
+ },
79
92
  },
80
93
 
81
94
  data() {