@knime/kds-code-editor 10.0.0 → 10.1.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/CHANGELOG.md +12 -0
- package/dist/index.css +19 -19
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/src/CodeEditor/KdsCodeEditor.vue.d.ts +5 -0
- package/dist/src/CodeEditor/KdsCodeEditor.vue.d.ts.map +1 -1
- package/dist/src/_helper/BaseCodeEditor.vue.d.ts +5 -0
- package/dist/src/_helper/BaseCodeEditor.vue.d.ts.map +1 -1
- package/package.json +3 -3
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @knime/kds-code-editor
|
|
2
2
|
|
|
3
|
+
## 10.1.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- 870d048: `KdsCodeEditor`: added a `labelActions` slot, rendering its content left-aligned next to the language label (as opposed to the `editorActions` prop, which renders right-aligned).
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @knime/kds-components@10.1.0
|
|
13
|
+
- @knime/kds-styles@10.1.0
|
|
14
|
+
|
|
3
15
|
## 10.0.0
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
package/dist/index.css
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
|
|
2
2
|
.kds-code-editor {
|
|
3
|
-
&[data-v-
|
|
3
|
+
&[data-v-4d5687b6] {
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
6
6
|
|
|
7
7
|
/* No row bounds set: fill the width and height of the container. */
|
|
8
8
|
}
|
|
9
9
|
.editor {
|
|
10
|
-
&[data-v-
|
|
10
|
+
&[data-v-4d5687b6] {
|
|
11
11
|
display: flex;
|
|
12
12
|
flex-direction: column;
|
|
13
13
|
overflow: hidden;
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
/* Keeps its natural height — in fill mode only the code area grows /
|
|
23
23
|
shrinks with the container. */
|
|
24
24
|
}
|
|
25
|
-
&.focused[data-v-
|
|
25
|
+
&.focused[data-v-4d5687b6] {
|
|
26
26
|
outline: var(--kds-border-action-focused);
|
|
27
27
|
outline-offset: var(--kds-spacing-offset-focus);
|
|
28
28
|
}
|
|
29
29
|
.header {
|
|
30
|
-
&[data-v-
|
|
30
|
+
&[data-v-4d5687b6] {
|
|
31
31
|
display: flex;
|
|
32
32
|
align-items: center;
|
|
33
33
|
justify-content: space-between;
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
/* Visually hidden, still announced by screen readers. */
|
|
39
39
|
}
|
|
40
|
-
.left-block[data-v-
|
|
40
|
+
.left-block[data-v-4d5687b6] {
|
|
41
41
|
display: flex;
|
|
42
42
|
flex: 1;
|
|
43
43
|
gap: var(--kds-spacing-container-0-25x);
|
|
@@ -48,13 +48,13 @@
|
|
|
48
48
|
buttons are present (matches the small button height). */
|
|
49
49
|
min-height: var(--kds-dimension-component-height-1-5x);
|
|
50
50
|
}
|
|
51
|
-
.action-buttons[data-v-
|
|
51
|
+
.action-buttons[data-v-4d5687b6] {
|
|
52
52
|
display: flex;
|
|
53
53
|
flex-shrink: 0;
|
|
54
54
|
gap: var(--kds-spacing-container-0-12x);
|
|
55
55
|
align-items: center;
|
|
56
56
|
}
|
|
57
|
-
.title[data-v-
|
|
57
|
+
.title[data-v-4d5687b6] {
|
|
58
58
|
overflow: hidden;
|
|
59
59
|
text-overflow: ellipsis;
|
|
60
60
|
font: var(--kds-font-base-interactive-small);
|
|
@@ -62,7 +62,7 @@
|
|
|
62
62
|
white-space: nowrap;
|
|
63
63
|
}
|
|
64
64
|
.change-counts {
|
|
65
|
-
&[data-v-
|
|
65
|
+
&[data-v-4d5687b6] {
|
|
66
66
|
display: flex;
|
|
67
67
|
flex-shrink: 0;
|
|
68
68
|
gap: var(--kds-spacing-container-0-12x);
|
|
@@ -73,14 +73,14 @@
|
|
|
73
73
|
margin-left: var(--kds-spacing-container-0-25x);
|
|
74
74
|
font: var(--kds-font-base-interactive-small);
|
|
75
75
|
}
|
|
76
|
-
.added-lines[data-v-
|
|
76
|
+
.added-lines[data-v-4d5687b6] {
|
|
77
77
|
color: var(--kds-color-text-and-icon-success);
|
|
78
78
|
}
|
|
79
|
-
.removed-lines[data-v-
|
|
79
|
+
.removed-lines[data-v-4d5687b6] {
|
|
80
80
|
color: var(--kds-color-text-and-icon-danger);
|
|
81
81
|
}
|
|
82
82
|
}
|
|
83
|
-
.change-counts-for-screen-readers[data-v-
|
|
83
|
+
.change-counts-for-screen-readers[data-v-4d5687b6] {
|
|
84
84
|
position: absolute;
|
|
85
85
|
width: 1px;
|
|
86
86
|
height: 1px;
|
|
@@ -92,33 +92,33 @@
|
|
|
92
92
|
clip-path: inset(50%);
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
&.error .header[data-v-
|
|
95
|
+
&.error .header[data-v-4d5687b6] {
|
|
96
96
|
background-color: var(--kds-color-background-static-danger-muted);
|
|
97
97
|
}
|
|
98
|
-
&.warning .header[data-v-
|
|
98
|
+
&.warning .header[data-v-4d5687b6] {
|
|
99
99
|
background-color: var(--kds-color-background-static-warning-muted);
|
|
100
100
|
}
|
|
101
|
-
.code[data-v-
|
|
101
|
+
.code[data-v-4d5687b6] {
|
|
102
102
|
width: 100%;
|
|
103
103
|
}
|
|
104
|
-
.footer[data-v-
|
|
104
|
+
.footer[data-v-4d5687b6] {
|
|
105
105
|
flex-shrink: 0;
|
|
106
106
|
width: 100%;
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
&.fill {
|
|
110
|
-
&[data-v-
|
|
110
|
+
&[data-v-4d5687b6] {
|
|
111
111
|
width: 100%;
|
|
112
112
|
height: 100%;
|
|
113
113
|
|
|
114
114
|
/* A collapsed editor keeps its header height instead of stretching. */
|
|
115
115
|
}
|
|
116
|
-
.editor[data-v-
|
|
117
|
-
.code[data-v-
|
|
116
|
+
.editor[data-v-4d5687b6],
|
|
117
|
+
.code[data-v-4d5687b6] {
|
|
118
118
|
flex: 1 1 auto;
|
|
119
119
|
min-height: 0;
|
|
120
120
|
}
|
|
121
|
-
.editor.collapsed[data-v-
|
|
121
|
+
.editor.collapsed[data-v-4d5687b6] {
|
|
122
122
|
flex: 0 0 auto;
|
|
123
123
|
}
|
|
124
124
|
}
|
package/dist/index.js
CHANGED
|
@@ -103,6 +103,7 @@ getCodeContainer: () => codeContainer.value });
|
|
|
103
103
|
!__props.hideHeader ? (openBlock(), createElementBlock("div", _hoisted_1, [createElementVNode("div", _hoisted_2, [
|
|
104
104
|
createElementVNode("span", _hoisted_3, toDisplayString(__props.changeSummary ?? __props.headerLabel), 1),
|
|
105
105
|
__props.readOnly === true ? (openBlock(), createElementBlock("span", _hoisted_4, "(Read-only)")) : createCommentVNode("", true),
|
|
106
|
+
renderSlot(_ctx.$slots, "labelActions", {}, void 0, true),
|
|
106
107
|
__props.changeSummary !== void 0 ? (openBlock(), createElementBlock(Fragment, { key: 1 }, [__props.addedLines !== void 0 && __props.removedLines !== void 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [createElementVNode("span", _hoisted_5, [createElementVNode("span", _hoisted_6, "+" + toDisplayString(__props.addedLines), 1), createElementVNode("span", _hoisted_7, "-" + toDisplayString(__props.removedLines), 1)]), createElementVNode("span", _hoisted_8, toDisplayString(__props.addedLines) + " added and " + toDisplayString(__props.removedLines) + " removed lines ", 1)], 64)) : createCommentVNode("", true), createVNode(unref(KdsButton), mergeProps({ ariaLabel: __props.collapsed ? "Expand code diff" : "Collapse code diff" }, {
|
|
107
108
|
"aria-expanded": !__props.collapsed,
|
|
108
109
|
"aria-controls": unref(codeContainerId),
|
|
@@ -175,7 +176,7 @@ var _plugin_vue_export_helper_default = (sfc, props) => {
|
|
|
175
176
|
};
|
|
176
177
|
//#endregion
|
|
177
178
|
//#region src/_helper/BaseCodeEditor.vue
|
|
178
|
-
var BaseCodeEditor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(BaseCodeEditor_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-
|
|
179
|
+
var BaseCodeEditor_default = /*#__PURE__*/ _plugin_vue_export_helper_default(BaseCodeEditor_vue_vue_type_script_setup_true_lang_default, [["__scopeId", "data-v-4d5687b6"]]);
|
|
179
180
|
//#endregion
|
|
180
181
|
//#region ../styles/dist/tokens/ts/color.js
|
|
181
182
|
/**
|
|
@@ -5898,6 +5899,10 @@ getEditor: () => editorInstance });
|
|
|
5898
5899
|
name: "footer",
|
|
5899
5900
|
fn: withCtx(() => [renderSlot(_ctx.$slots, "footer")]),
|
|
5900
5901
|
key: "0"
|
|
5902
|
+
} : void 0, _ctx.$slots.labelActions ? {
|
|
5903
|
+
name: "labelActions",
|
|
5904
|
+
fn: withCtx(() => [renderSlot(_ctx.$slots, "labelActions")]),
|
|
5905
|
+
key: "1"
|
|
5901
5906
|
} : void 0]), 1032, [
|
|
5902
5907
|
"header-label",
|
|
5903
5908
|
"sub-text-id",
|