@appscode/design-system 1.0.43-alpha.70 → 1.0.43-alpha.74
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/base/utilities/dark-theme.scss +1 -1
- package/components/_ac-input.scss +1 -0
- package/components/_ac-options.scss +7 -6
- package/components/_ac-table.scss +3 -1
- package/components/_left-sidebar-menu.scss +5 -1
- package/package.json +1 -1
- package/vue-components/v2/editor/Editor.vue +7 -1
- package/vue-components/v2/modal/Modal.vue +6 -0
- package/vue-components/v2/table/TableRow.vue +1 -1
- package/vue-components/v2/tabs/EditorTabs.vue +1 -1
- package/vue-components/v3/editor/Editor.vue +7 -1
- package/vue-components/v3/modal/Modal.vue +6 -0
- package/vue-components/v3/table/TableRow.vue +1 -1
- package/vue-components/v3/tabs/EditorTabs.vue +1 -1
|
@@ -56,13 +56,14 @@
|
|
|
56
56
|
}
|
|
57
57
|
|
|
58
58
|
.options-items {
|
|
59
|
-
box-shadow: $ac-shadow-1;
|
|
60
59
|
border-radius: 4px;
|
|
61
60
|
position: absolute;
|
|
62
61
|
z-index: 99;
|
|
63
62
|
background-color: $ac-white;
|
|
64
63
|
min-width: 160px;
|
|
65
64
|
top: 30px;
|
|
65
|
+
padding: 5px 0;
|
|
66
|
+
border: 1px solid $ac-white-light;
|
|
66
67
|
|
|
67
68
|
li {
|
|
68
69
|
.list-button {
|
|
@@ -78,8 +79,8 @@
|
|
|
78
79
|
display: block;
|
|
79
80
|
|
|
80
81
|
&:hover {
|
|
81
|
-
background-color: $ac-
|
|
82
|
-
color: $ac-
|
|
82
|
+
background-color: $ac-bg-light-gray;
|
|
83
|
+
color: $ac-primary;
|
|
83
84
|
}
|
|
84
85
|
|
|
85
86
|
span {
|
|
@@ -93,14 +94,14 @@
|
|
|
93
94
|
|
|
94
95
|
a {
|
|
95
96
|
font-size: $font-size-small;
|
|
96
|
-
padding: 10px
|
|
97
|
+
padding: 10px 15px;
|
|
97
98
|
display: block;
|
|
98
99
|
text-decoration: none !important;
|
|
99
100
|
color: $ac-color-text !important;
|
|
100
101
|
|
|
101
102
|
&:hover {
|
|
102
|
-
background-color: $ac-
|
|
103
|
-
color: $ac-
|
|
103
|
+
background-color: $ac-bg-light-gray;
|
|
104
|
+
color: $ac-primary !important;
|
|
104
105
|
}
|
|
105
106
|
}
|
|
106
107
|
}
|
package/package.json
CHANGED
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
theme: theme,
|
|
21
21
|
readOnly: readOnly,
|
|
22
|
+
wordWrap: wordWrap,
|
|
22
23
|
scrollBeyondLastLine: false
|
|
23
24
|
}"
|
|
24
25
|
/>
|
|
@@ -34,6 +35,7 @@
|
|
|
34
35
|
},
|
|
35
36
|
theme: theme,
|
|
36
37
|
readOnly: true,
|
|
38
|
+
wordWrap: wordWrap,
|
|
37
39
|
scrollBeyondLastLine: false
|
|
38
40
|
}"
|
|
39
41
|
:original="originalEditorContent"
|
|
@@ -72,7 +74,11 @@ export default {
|
|
|
72
74
|
editorTheme: {
|
|
73
75
|
type: String,
|
|
74
76
|
default: ""
|
|
75
|
-
}
|
|
77
|
+
},
|
|
78
|
+
wordWrap: {
|
|
79
|
+
type: String,
|
|
80
|
+
default: "off"
|
|
81
|
+
},
|
|
76
82
|
},
|
|
77
83
|
components: {
|
|
78
84
|
EditorTabs: () => import("../tabs/EditorTabs.vue"),
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
<header-item>
|
|
18
18
|
<ac-button
|
|
19
19
|
modifier-classes="is-square is-transparent"
|
|
20
|
+
:disabled="isCloseOptionDisabled"
|
|
20
21
|
:icon-image="require('@/assets/images/icons/close-icon.svg')"
|
|
21
22
|
@click.stop="destroyModal"
|
|
22
23
|
/>
|
|
@@ -62,6 +63,10 @@ export default {
|
|
|
62
63
|
type: String,
|
|
63
64
|
default: "",
|
|
64
65
|
},
|
|
66
|
+
isCloseOptionDisabled: {
|
|
67
|
+
type: Boolean,
|
|
68
|
+
default: false,
|
|
69
|
+
}
|
|
65
70
|
},
|
|
66
71
|
|
|
67
72
|
components: {
|
|
@@ -102,6 +107,7 @@ export default {
|
|
|
102
107
|
document.addEventListener("keydown", this.onKeyDown);
|
|
103
108
|
},
|
|
104
109
|
destroyModal() {
|
|
110
|
+
if (this.isCloseOptionDisabled) return;
|
|
105
111
|
this.showModal = false;
|
|
106
112
|
document.removeEventListener("keydown", this.onKeyDown);
|
|
107
113
|
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
},
|
|
21
21
|
theme: theme,
|
|
22
22
|
readOnly: readOnly,
|
|
23
|
+
wordWrap: wordWrap,
|
|
23
24
|
scrollBeyondLastLine: false
|
|
24
25
|
}"
|
|
25
26
|
/>
|
|
@@ -35,6 +36,7 @@
|
|
|
35
36
|
},
|
|
36
37
|
theme: theme,
|
|
37
38
|
readOnly: true,
|
|
39
|
+
wordWrap: wordWrap,
|
|
38
40
|
scrollBeyondLastLine: false
|
|
39
41
|
}"
|
|
40
42
|
:original="originalEditorContent"
|
|
@@ -74,7 +76,11 @@ export default defineComponent({
|
|
|
74
76
|
editorTheme: {
|
|
75
77
|
type: String,
|
|
76
78
|
default: ""
|
|
77
|
-
}
|
|
79
|
+
},
|
|
80
|
+
wordWrap: {
|
|
81
|
+
type: String,
|
|
82
|
+
default: "off"
|
|
83
|
+
},
|
|
78
84
|
},
|
|
79
85
|
|
|
80
86
|
emits: ["update:modelValue"],
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
<header-item>
|
|
18
18
|
<ac-button
|
|
19
19
|
modifier-classes="is-square is-transparent"
|
|
20
|
+
:disabled="isCloseOptionDisabled"
|
|
20
21
|
:icon-image="crossIcon"
|
|
21
22
|
@click.stop="destroyModal"
|
|
22
23
|
/>
|
|
@@ -64,6 +65,10 @@ export default defineComponent({
|
|
|
64
65
|
type: String,
|
|
65
66
|
default: "",
|
|
66
67
|
},
|
|
68
|
+
isCloseOptionDisabled: {
|
|
69
|
+
type: Boolean,
|
|
70
|
+
default: false,
|
|
71
|
+
}
|
|
67
72
|
},
|
|
68
73
|
emits: ["closemodal"],
|
|
69
74
|
|
|
@@ -116,6 +121,7 @@ export default defineComponent({
|
|
|
116
121
|
document.addEventListener("keydown", this.onKeyDown);
|
|
117
122
|
},
|
|
118
123
|
destroyModal() {
|
|
124
|
+
if (this.isCloseOptionDisabled) return;
|
|
119
125
|
this.showModal = false;
|
|
120
126
|
document.removeEventListener("keydown", this.onKeyDown);
|
|
121
127
|
|