@knime/kds-components 0.5.6 → 0.5.7
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/dist/Modal/KdsModal.vue.d.ts +1 -1
- package/dist/forms/KdsLabel.vue.d.ts +6 -0
- package/dist/forms/KdsLabel.vue.d.ts.map +1 -0
- package/dist/forms/KdsSubText.vue.d.ts +7 -0
- package/dist/forms/KdsSubText.vue.d.ts.map +1 -0
- package/dist/forms/RadioButton/KdsRadioButtonGroup.vue.d.ts +15 -1
- package/dist/forms/RadioButton/KdsRadioButtonGroup.vue.d.ts.map +1 -1
- package/dist/forms/RadioButton/KdsValueSwitch.vue.d.ts +19 -0
- package/dist/forms/RadioButton/KdsValueSwitch.vue.d.ts.map +1 -0
- package/dist/forms/RadioButton/ValueSwitchItem.vue.d.ts +3 -0
- package/dist/forms/RadioButton/ValueSwitchItem.vue.d.ts.map +1 -0
- package/dist/forms/RadioButton/types.d.ts +46 -4
- package/dist/forms/RadioButton/types.d.ts.map +1 -1
- package/dist/forms/RadioButton/useRadioSelection.d.ts +22 -0
- package/dist/forms/RadioButton/useRadioSelection.d.ts.map +1 -0
- package/dist/forms/RadioButton/useValueSwitchIconHiding.d.ts +20 -0
- package/dist/forms/RadioButton/useValueSwitchIconHiding.d.ts.map +1 -0
- package/dist/forms/index.d.ts +4 -1
- package/dist/forms/index.d.ts.map +1 -1
- package/dist/forms/types.d.ts +16 -4
- package/dist/forms/types.d.ts.map +1 -1
- package/dist/index.css +144 -20
- package/dist/index.js +480 -177
- package/dist/index.js.map +1 -1
- package/dist/local-filesystem-hArfE0_N.js +23 -0
- package/dist/local-filesystem-hArfE0_N.js.map +1 -0
- package/dist/minimize-side-panel-Brx7aXNg.js +23 -0
- package/dist/minimize-side-panel-Brx7aXNg.js.map +1 -0
- package/dist/util/index.d.ts +1 -0
- package/dist/util/index.d.ts.map +1 -1
- package/dist/util/useKdsIsTruncated.d.ts +18 -0
- package/dist/util/useKdsIsTruncated.d.ts.map +1 -0
- package/package.json +2 -2
- package/dist/local-filesystem-D9Znqo5U.js +0 -23
- package/dist/local-filesystem-D9Znqo5U.js.map +0 -1
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { createElementBlock, openBlock, createElementVNode } from 'vue';
|
|
2
|
+
|
|
3
|
+
const _hoisted_1 = {
|
|
4
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
+
fill: "none",
|
|
6
|
+
stroke: "currentColor",
|
|
7
|
+
"stroke-linecap": "round",
|
|
8
|
+
"stroke-linejoin": "round",
|
|
9
|
+
viewBox: "0 0 12 12"
|
|
10
|
+
};
|
|
11
|
+
|
|
12
|
+
function render(_ctx, _cache) {
|
|
13
|
+
return (openBlock(), createElementBlock("svg", _hoisted_1, [...(_cache[0] || (_cache[0] = [
|
|
14
|
+
createElementVNode("path", {
|
|
15
|
+
d: "M3.75 3.25v5.5M2.45 1.5h7.105a.45.45 0 0 1 .45.45v8.1a.45.45 0 0 1-.45.45H2.45a.45.45 0 0 1-.45-.45v-8.1a.45.45 0 0 1 .45-.45",
|
|
16
|
+
"vector-effect": "non-scaling-stroke"
|
|
17
|
+
}, null, -1)
|
|
18
|
+
]))]))
|
|
19
|
+
}
|
|
20
|
+
const minimizeSidePanel = { render: render };
|
|
21
|
+
|
|
22
|
+
export { minimizeSidePanel as default, render };
|
|
23
|
+
//# sourceMappingURL=minimize-side-panel-Brx7aXNg.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"minimize-side-panel-Brx7aXNg.js","sources":["../../styles/dist/img/icons/minimize-side-panel.svg"],"sourcesContent":["import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"none\",\n stroke: \"currentColor\",\n \"stroke-linecap\": \"round\",\n \"stroke-linejoin\": \"round\",\n viewBox: \"0 0 12 12\"\n}\n\nexport function render(_ctx, _cache) {\n return (_openBlock(), _createElementBlock(\"svg\", _hoisted_1, [...(_cache[0] || (_cache[0] = [\n _createElementVNode(\"path\", {\n d: \"M3.75 3.25v5.5M2.45 1.5h7.105a.45.45 0 0 1 .45.45v8.1a.45.45 0 0 1-.45.45H2.45a.45.45 0 0 1-.45-.45v-8.1a.45.45 0 0 1 .45-.45\",\n \"vector-effect\": \"non-scaling-stroke\"\n }, null, -1)\n ]))]))\n}\nexport default { render: render }"],"names":["_openBlock","_createElementBlock","_createElementVNode"],"mappings":";;AAEA,MAAM,UAAU,GAAG;AACnB,EAAE,KAAK,EAAE,4BAA4B;AACrC,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,MAAM,EAAE,cAAc;AACxB,EAAE,gBAAgB,EAAE,OAAO;AAC3B,EAAE,iBAAiB,EAAE,OAAO;AAC5B,EAAE,OAAO,EAAE;AACX;;AAEO,SAAS,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE;AACrC,EAAE,QAAQA,SAAU,EAAE,EAAEC,kBAAmB,CAAC,KAAK,EAAE,UAAU,EAAE,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,CAAC,GAAG;AAC9F,IAAIC,kBAAmB,CAAC,MAAM,EAAE;AAChC,MAAM,CAAC,EAAE,+HAA+H;AACxI,MAAM,eAAe,EAAE;AACvB,KAAK,EAAE,IAAI,EAAE,EAAE;AACf,GAAG,CAAC,CAAC,CAAC,CAAC;AACP;AACA,0BAAe,EAAE,MAAM,EAAE,MAAM;;;;"}
|
package/dist/util/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export { useKdsDarkMode } from './useKdsDarkMode';
|
|
2
2
|
export { useKdsLegacyMode } from './useKdsLegacyMode';
|
|
3
|
+
export { useKdsIsTruncated } from './useKdsIsTruncated';
|
|
3
4
|
export type * from './useKdsDarkMode';
|
|
4
5
|
export type * from './useKdsLegacyMode';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/util/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/util/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/util/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAC;AAGxD,mBAAmB,kBAAkB,CAAC;AACtC,mBAAmB,oBAAoB,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
export declare function elementOverflowsHorizontally(element: HTMLElement | null): boolean;
|
|
3
|
+
/**
|
|
4
|
+
* Tracks whether the content of a single-line element is visually truncated.
|
|
5
|
+
*
|
|
6
|
+
* This can be used to set tooltips or other UI affordances when text is cut off.
|
|
7
|
+
* Changing the width of the provided element based on this composable may result in an infinite loop!
|
|
8
|
+
*
|
|
9
|
+
* Note: This is intended for horizontal truncation (e.g. `text-overflow: ellipsis`).
|
|
10
|
+
* It does not detect multi-line clamping.
|
|
11
|
+
*
|
|
12
|
+
* @param elementRef - A ref pointing to the element that might be truncated.
|
|
13
|
+
* @returns An object containing a reactive `isTruncated` ref.
|
|
14
|
+
*/
|
|
15
|
+
export declare function useKdsIsTruncated(elementRef: Ref<HTMLElement | null>): {
|
|
16
|
+
isTruncated: Ref<boolean, boolean>;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=useKdsIsTruncated.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useKdsIsTruncated.d.ts","sourceRoot":"","sources":["../../src/util/useKdsIsTruncated.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,GAAG,EAAO,MAAM,KAAK,CAAC;AAGpC,wBAAgB,4BAA4B,CAC1C,OAAO,EAAE,WAAW,GAAG,IAAI,GAC1B,OAAO,CAKT;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,UAAU,EAAE,GAAG,CAAC,WAAW,GAAG,IAAI,CAAC;;EAQpE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@knime/kds-components",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.7",
|
|
4
4
|
"description": "Package containing basic Vue components of the KNIME Design System",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@knime/utils": "^1.8.0",
|
|
38
38
|
"consola": "^3.4.2",
|
|
39
|
-
"@knime/kds-styles": "^0.5.
|
|
39
|
+
"@knime/kds-styles": "^0.5.7"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@storybook/vue3-vite": "^10.1.4",
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { createElementBlock, openBlock, createElementVNode } from 'vue';
|
|
2
|
-
|
|
3
|
-
const _hoisted_1 = {
|
|
4
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
5
|
-
fill: "none",
|
|
6
|
-
stroke: "currentColor",
|
|
7
|
-
viewBox: "0 0 12 12"
|
|
8
|
-
};
|
|
9
|
-
|
|
10
|
-
function render(_ctx, _cache) {
|
|
11
|
-
return (openBlock(), createElementBlock("svg", _hoisted_1, [...(_cache[0] || (_cache[0] = [
|
|
12
|
-
createElementVNode("path", {
|
|
13
|
-
fill: "#000",
|
|
14
|
-
stroke: "none",
|
|
15
|
-
d: "M1 7.316H.5zM8.963 11a.5.5 0 0 0 0-1zM3 10a.5.5 0 0 0 0 1zM1.556 7.88v.5h8.888v-1H1.556zm8.888 0v.5c.58 0 1.056-.495 1.056-1.064h-1c0 .006-.004.025-.023.045-.02.02-.034.02-.033.02zM11 7.317h.5V2.065h-1v5.25zm0-5.251h.5c0-.57-.475-1.065-1.056-1.065v1c-.001 0 .013 0 .033.02s.023.039.023.045zm-.556-.565V1H1.556v1h8.888zm-8.888 0V1C.976 1 .5 1.495.5 2.065h1c0-.006.004-.025.023-.045.02-.02.034-.02.033-.02zM1 2.065H.5v5.25h1v-5.25zm0 5.25H.5c0 .548.417 1.066 1.056 1.066v-1a.1.1 0 0 1-.029-.005l-.01-.007a.08.08 0 0 1-.017-.053zM8.963 10.5V10H3v1h5.963zm-4.185 0h.5V7.88h-1v2.62zm2.666-2.62h-.5v2.62h1V7.88z",
|
|
16
|
-
"vector-effect": "non-scaling-stroke"
|
|
17
|
-
}, null, -1)
|
|
18
|
-
]))]))
|
|
19
|
-
}
|
|
20
|
-
const localFilesystem = { render: render };
|
|
21
|
-
|
|
22
|
-
export { localFilesystem as default, render };
|
|
23
|
-
//# sourceMappingURL=local-filesystem-D9Znqo5U.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"local-filesystem-D9Znqo5U.js","sources":["../../styles/dist/img/icons/local-filesystem.svg"],"sourcesContent":["import { createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from \"vue\"\n\nconst _hoisted_1 = {\n xmlns: \"http://www.w3.org/2000/svg\",\n fill: \"none\",\n stroke: \"currentColor\",\n viewBox: \"0 0 12 12\"\n}\n\nexport function render(_ctx, _cache) {\n return (_openBlock(), _createElementBlock(\"svg\", _hoisted_1, [...(_cache[0] || (_cache[0] = [\n _createElementVNode(\"path\", {\n fill: \"#000\",\n stroke: \"none\",\n d: \"M1 7.316H.5zM8.963 11a.5.5 0 0 0 0-1zM3 10a.5.5 0 0 0 0 1zM1.556 7.88v.5h8.888v-1H1.556zm8.888 0v.5c.58 0 1.056-.495 1.056-1.064h-1c0 .006-.004.025-.023.045-.02.02-.034.02-.033.02zM11 7.317h.5V2.065h-1v5.25zm0-5.251h.5c0-.57-.475-1.065-1.056-1.065v1c-.001 0 .013 0 .033.02s.023.039.023.045zm-.556-.565V1H1.556v1h8.888zm-8.888 0V1C.976 1 .5 1.495.5 2.065h1c0-.006.004-.025.023-.045.02-.02.034-.02.033-.02zM1 2.065H.5v5.25h1v-5.25zm0 5.25H.5c0 .548.417 1.066 1.056 1.066v-1a.1.1 0 0 1-.029-.005l-.01-.007a.08.08 0 0 1-.017-.053zM8.963 10.5V10H3v1h5.963zm-4.185 0h.5V7.88h-1v2.62zm2.666-2.62h-.5v2.62h1V7.88z\",\n \"vector-effect\": \"non-scaling-stroke\"\n }, null, -1)\n ]))]))\n}\nexport default { render: render }"],"names":["_openBlock","_createElementBlock","_createElementVNode"],"mappings":";;AAEA,MAAM,UAAU,GAAG;AACnB,EAAE,KAAK,EAAE,4BAA4B;AACrC,EAAE,IAAI,EAAE,MAAM;AACd,EAAE,MAAM,EAAE,cAAc;AACxB,EAAE,OAAO,EAAE;AACX;;AAEO,SAAS,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE;AACrC,EAAE,QAAQA,SAAU,EAAE,EAAEC,kBAAmB,CAAC,KAAK,EAAE,UAAU,EAAE,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,CAAC,CAAC,GAAG;AAC9F,IAAIC,kBAAmB,CAAC,MAAM,EAAE;AAChC,MAAM,IAAI,EAAE,MAAM;AAClB,MAAM,MAAM,EAAE,MAAM;AACpB,MAAM,CAAC,EAAE,+lBAA+lB;AACxmB,MAAM,eAAe,EAAE;AACvB,KAAK,EAAE,IAAI,EAAE,EAAE;AACf,GAAG,CAAC,CAAC,CAAC,CAAC;AACP;AACA,wBAAe,EAAE,MAAM,EAAE,MAAM;;;;"}
|