@synergy-design-system/vue 1.17.2 → 1.18.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.
@@ -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,7 @@ 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 SynVueProgressRing } from "./components/SynVueProgressRing.vue";
20
21
  export { default as SynVueRadio } from "./components/SynVueRadio.vue";
21
22
  export { default as SynVueRadioButton } from "./components/SynVueRadioButton.vue";
22
23
  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.17.2"
7
+ "@synergy-design-system/components": "^1.18.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.17.2",
43
+ "version": "1.18.0",
44
44
  "devDependencies": {
45
45
  "@vue/tsconfig": "^0.5.1",
46
46
  "vue": "^3.4.24"
@@ -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,7 @@ 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 SynVueProgressRing } from './components/SynVueProgressRing.vue';
25
26
  export { default as SynVueRadio } from './components/SynVueRadio.vue';
26
27
  export { default as SynVueRadioButton } from './components/SynVueRadioButton.vue';
27
28
  export { default as SynVueRadioGroup } from './components/SynVueRadioGroup.vue';