@synergy-design-system/vue 1.17.2 → 1.19.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/dist/components/SynVueProgressBar.vue.d.ts +45 -0
- package/dist/components/SynVueProgressRing.vue.d.ts +37 -0
- package/dist/index.d.ts +2 -0
- package/package.json +2 -2
- package/src/components/SynVueProgressBar.vue +82 -0
- package/src/components/SynVueProgressRing.vue +77 -0
- package/src/index.js +2 -0
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import '@synergy-design-system/components/components/progress-bar/progress-bar.js';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
|
+
/**
|
|
4
|
+
* The current progress as a percentage, 0 to 100.
|
|
5
|
+
*/
|
|
6
|
+
value?: number | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* When true, percentage is ignored, the label is hidden, and the progress bar is drawn in an indeterminate state.
|
|
9
|
+
*/
|
|
10
|
+
indeterminate?: boolean | undefined;
|
|
11
|
+
/**
|
|
12
|
+
* A custom label for assistive devices.
|
|
13
|
+
*/
|
|
14
|
+
label?: string | undefined;
|
|
15
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
16
|
+
/**
|
|
17
|
+
* The current progress as a percentage, 0 to 100.
|
|
18
|
+
*/
|
|
19
|
+
value?: number | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* When true, percentage is ignored, the label is hidden, and the progress bar is drawn in an indeterminate state.
|
|
22
|
+
*/
|
|
23
|
+
indeterminate?: boolean | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* A custom label for assistive devices.
|
|
26
|
+
*/
|
|
27
|
+
label?: string | undefined;
|
|
28
|
+
}>>>, {}, {}>, {
|
|
29
|
+
default?(_: {}): any;
|
|
30
|
+
}>;
|
|
31
|
+
export default _default;
|
|
32
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
33
|
+
new (): {
|
|
34
|
+
$slots: S;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
38
|
+
type __VLS_TypePropsToOption<T> = {
|
|
39
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
40
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
41
|
+
} : {
|
|
42
|
+
type: import('vue').PropType<T[K]>;
|
|
43
|
+
required: true;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import '@synergy-design-system/components/components/progress-ring/progress-ring.js';
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_TypePropsToOption<{
|
|
3
|
+
/**
|
|
4
|
+
* The current progress as a percentage, 0 to 100.
|
|
5
|
+
*/
|
|
6
|
+
value?: number | undefined;
|
|
7
|
+
/**
|
|
8
|
+
* A custom label for assistive devices.
|
|
9
|
+
*/
|
|
10
|
+
label?: string | undefined;
|
|
11
|
+
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_TypePropsToOption<{
|
|
12
|
+
/**
|
|
13
|
+
* The current progress as a percentage, 0 to 100.
|
|
14
|
+
*/
|
|
15
|
+
value?: number | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* A custom label for assistive devices.
|
|
18
|
+
*/
|
|
19
|
+
label?: string | undefined;
|
|
20
|
+
}>>>, {}, {}>, {
|
|
21
|
+
default?(_: {}): any;
|
|
22
|
+
}>;
|
|
23
|
+
export default _default;
|
|
24
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
25
|
+
new (): {
|
|
26
|
+
$slots: S;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
30
|
+
type __VLS_TypePropsToOption<T> = {
|
|
31
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
32
|
+
type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
33
|
+
} : {
|
|
34
|
+
type: import('vue').PropType<T[K]>;
|
|
35
|
+
required: true;
|
|
36
|
+
};
|
|
37
|
+
};
|
package/dist/index.d.ts
CHANGED
|
@@ -17,6 +17,8 @@ export { default as SynVueOptgroup } from "./components/SynVueOptgroup.vue";
|
|
|
17
17
|
export { default as SynVueOption } from "./components/SynVueOption.vue";
|
|
18
18
|
export { default as SynVuePopup } from "./components/SynVuePopup.vue";
|
|
19
19
|
export { default as SynVuePrioNav } from "./components/SynVuePrioNav.vue";
|
|
20
|
+
export { default as SynVueProgressBar } from "./components/SynVueProgressBar.vue";
|
|
21
|
+
export { default as SynVueProgressRing } from "./components/SynVueProgressRing.vue";
|
|
20
22
|
export { default as SynVueRadio } from "./components/SynVueRadio.vue";
|
|
21
23
|
export { default as SynVueRadioButton } from "./components/SynVueRadioButton.vue";
|
|
22
24
|
export { default as SynVueRadioGroup } from "./components/SynVueRadioGroup.vue";
|
package/package.json
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
"url": "https://www.sick.com"
|
|
5
5
|
},
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@synergy-design-system/components": "^1.
|
|
7
|
+
"@synergy-design-system/components": "^1.19.0"
|
|
8
8
|
},
|
|
9
9
|
"description": "Vue3 wrappers for the Synergy Design System",
|
|
10
10
|
"exports": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"directory": "packages/vue"
|
|
41
41
|
},
|
|
42
42
|
"type": "module",
|
|
43
|
-
"version": "1.
|
|
43
|
+
"version": "1.19.0",
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@vue/tsconfig": "^0.5.1",
|
|
46
46
|
"vue": "^3.4.24"
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
// ---------------------------------------------------------------------
|
|
3
|
+
// 🔒 AUTOGENERATED @synergy-design-system/vue wrappers for @synergy-design-system/components
|
|
4
|
+
// Please do not edit this file directly!
|
|
5
|
+
// It will get recreated when running pnpm build.
|
|
6
|
+
// ---------------------------------------------------------------------
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @summary Progress bars are used to show the status of an ongoing operation.
|
|
10
|
+
* @documentation https://synergy.style/components/progress-bar
|
|
11
|
+
* @status stable
|
|
12
|
+
* @since 2.0
|
|
13
|
+
*
|
|
14
|
+
* @slot - A label to show inside the progress indicator.
|
|
15
|
+
*
|
|
16
|
+
* @csspart base - The component's base wrapper.
|
|
17
|
+
* @csspart indicator - The progress bar's indicator.
|
|
18
|
+
* @csspart label - The progress bar's label.
|
|
19
|
+
*
|
|
20
|
+
* @cssproperty --height - The progress bar's height.
|
|
21
|
+
* @cssproperty --track-color - The color of the track.
|
|
22
|
+
* @cssproperty --indicator-color - The color of the indicator.
|
|
23
|
+
* @cssproperty --label-color - The color of the label.
|
|
24
|
+
* @cssproperty --speed - The speed of the progress bar when in indeterminate state.
|
|
25
|
+
*/
|
|
26
|
+
import { computed, ref } from 'vue';
|
|
27
|
+
import '@synergy-design-system/components/components/progress-bar/progress-bar.js';
|
|
28
|
+
|
|
29
|
+
import type { SynProgressBar } from '@synergy-design-system/components';
|
|
30
|
+
|
|
31
|
+
// DOM Reference to the element
|
|
32
|
+
const element = ref<SynProgressBar>();
|
|
33
|
+
|
|
34
|
+
// Map methods
|
|
35
|
+
|
|
36
|
+
defineExpose({
|
|
37
|
+
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
// Map attributes
|
|
41
|
+
const props = defineProps<{
|
|
42
|
+
/**
|
|
43
|
+
* The current progress as a percentage, 0 to 100.
|
|
44
|
+
*/
|
|
45
|
+
'value'?: SynProgressBar['value'];
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* When true, percentage is ignored, the label is hidden, and the progress bar is drawn in an indeterminate state.
|
|
49
|
+
*/
|
|
50
|
+
'indeterminate'?: SynProgressBar['indeterminate'];
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* A custom label for assistive devices.
|
|
54
|
+
*/
|
|
55
|
+
'label'?: SynProgressBar['label'];
|
|
56
|
+
}>();
|
|
57
|
+
|
|
58
|
+
// Make sure prop binding only forwards the props that are actually there.
|
|
59
|
+
// This is needed because :param="param" also adds an empty attribute
|
|
60
|
+
// when using web-components, which breaks optional arguments like size in SynInput
|
|
61
|
+
// @see https://github.com/vuejs/core/issues/5190#issuecomment-1003112498
|
|
62
|
+
const visibleProps = computed(() => Object.fromEntries(
|
|
63
|
+
Object
|
|
64
|
+
.entries(props)
|
|
65
|
+
.filter(([, value]) => typeof value !== 'undefined'),
|
|
66
|
+
));
|
|
67
|
+
|
|
68
|
+
// Map events
|
|
69
|
+
defineEmits<{
|
|
70
|
+
|
|
71
|
+
}>();
|
|
72
|
+
</script>
|
|
73
|
+
|
|
74
|
+
<template>
|
|
75
|
+
<syn-progress-bar
|
|
76
|
+
|
|
77
|
+
v-bind="visibleProps"
|
|
78
|
+
ref="element"
|
|
79
|
+
>
|
|
80
|
+
<slot />
|
|
81
|
+
</syn-progress-bar>
|
|
82
|
+
</template>
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
// ---------------------------------------------------------------------
|
|
3
|
+
// 🔒 AUTOGENERATED @synergy-design-system/vue wrappers for @synergy-design-system/components
|
|
4
|
+
// Please do not edit this file directly!
|
|
5
|
+
// It will get recreated when running pnpm build.
|
|
6
|
+
// ---------------------------------------------------------------------
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* @summary Progress rings are used to show the progress of a determinate operation in a circular fashion.
|
|
10
|
+
* @documentation https://synergy.style/components/progress-ring
|
|
11
|
+
* @status stable
|
|
12
|
+
* @since 2.0
|
|
13
|
+
*
|
|
14
|
+
* @slot - A label to show inside the ring.
|
|
15
|
+
*
|
|
16
|
+
* @csspart base - The component's base wrapper.
|
|
17
|
+
* @csspart label - The progress ring label.
|
|
18
|
+
*
|
|
19
|
+
* @cssproperty --size - The diameter of the progress ring (cannot be a percentage).
|
|
20
|
+
* @cssproperty --track-width - The width of the track.
|
|
21
|
+
* @cssproperty --track-color - The color of the track.
|
|
22
|
+
* @cssproperty --indicator-width - The width of the indicator. Defaults to the track width.
|
|
23
|
+
* @cssproperty --indicator-color - The color of the indicator.
|
|
24
|
+
* @cssproperty --indicator-transition-duration - The duration of the indicator's transition when the value changes.
|
|
25
|
+
*/
|
|
26
|
+
import { computed, ref } from 'vue';
|
|
27
|
+
import '@synergy-design-system/components/components/progress-ring/progress-ring.js';
|
|
28
|
+
|
|
29
|
+
import type { SynProgressRing } from '@synergy-design-system/components';
|
|
30
|
+
|
|
31
|
+
// DOM Reference to the element
|
|
32
|
+
const element = ref<SynProgressRing>();
|
|
33
|
+
|
|
34
|
+
// Map methods
|
|
35
|
+
|
|
36
|
+
defineExpose({
|
|
37
|
+
|
|
38
|
+
});
|
|
39
|
+
|
|
40
|
+
// Map attributes
|
|
41
|
+
const props = defineProps<{
|
|
42
|
+
/**
|
|
43
|
+
* The current progress as a percentage, 0 to 100.
|
|
44
|
+
*/
|
|
45
|
+
'value'?: SynProgressRing['value'];
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* A custom label for assistive devices.
|
|
49
|
+
*/
|
|
50
|
+
'label'?: SynProgressRing['label'];
|
|
51
|
+
}>();
|
|
52
|
+
|
|
53
|
+
// Make sure prop binding only forwards the props that are actually there.
|
|
54
|
+
// This is needed because :param="param" also adds an empty attribute
|
|
55
|
+
// when using web-components, which breaks optional arguments like size in SynInput
|
|
56
|
+
// @see https://github.com/vuejs/core/issues/5190#issuecomment-1003112498
|
|
57
|
+
const visibleProps = computed(() => Object.fromEntries(
|
|
58
|
+
Object
|
|
59
|
+
.entries(props)
|
|
60
|
+
.filter(([, value]) => typeof value !== 'undefined'),
|
|
61
|
+
));
|
|
62
|
+
|
|
63
|
+
// Map events
|
|
64
|
+
defineEmits<{
|
|
65
|
+
|
|
66
|
+
}>();
|
|
67
|
+
</script>
|
|
68
|
+
|
|
69
|
+
<template>
|
|
70
|
+
<syn-progress-ring
|
|
71
|
+
|
|
72
|
+
v-bind="visibleProps"
|
|
73
|
+
ref="element"
|
|
74
|
+
>
|
|
75
|
+
<slot />
|
|
76
|
+
</syn-progress-ring>
|
|
77
|
+
</template>
|
package/src/index.js
CHANGED
|
@@ -22,6 +22,8 @@ export { default as SynVueOptgroup } from './components/SynVueOptgroup.vue';
|
|
|
22
22
|
export { default as SynVueOption } from './components/SynVueOption.vue';
|
|
23
23
|
export { default as SynVuePopup } from './components/SynVuePopup.vue';
|
|
24
24
|
export { default as SynVuePrioNav } from './components/SynVuePrioNav.vue';
|
|
25
|
+
export { default as SynVueProgressBar } from './components/SynVueProgressBar.vue';
|
|
26
|
+
export { default as SynVueProgressRing } from './components/SynVueProgressRing.vue';
|
|
25
27
|
export { default as SynVueRadio } from './components/SynVueRadio.vue';
|
|
26
28
|
export { default as SynVueRadioButton } from './components/SynVueRadioButton.vue';
|
|
27
29
|
export { default as SynVueRadioGroup } from './components/SynVueRadioGroup.vue';
|