@synergy-design-system/vue 1.21.0 → 1.22.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,9 @@
|
|
|
1
|
+
import '@synergy-design-system/components/components/spinner/spinner.js';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<Readonly<import("vue").ComponentPropsOptions<{
|
|
3
|
+
[x: string]: unknown;
|
|
4
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, readonly string[] | Readonly<import("vue").ExtractPropTypes<Readonly<import("vue").ComponentObjectPropsOptions<{
|
|
5
|
+
[x: string]: unknown;
|
|
6
|
+
}>>>>, {
|
|
7
|
+
readonly [x: number]: string;
|
|
8
|
+
} | {}, {}>;
|
|
9
|
+
export default _default;
|
package/dist/index.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export { default as SynVueRadioButton } from "./components/SynVueRadioButton.vue
|
|
|
25
25
|
export { default as SynVueRadioGroup } from "./components/SynVueRadioGroup.vue";
|
|
26
26
|
export { default as SynVueSelect } from "./components/SynVueSelect.vue";
|
|
27
27
|
export { default as SynVueSideNav } from "./components/SynVueSideNav.vue";
|
|
28
|
+
export { default as SynVueSpinner } from "./components/SynVueSpinner.vue";
|
|
28
29
|
export { default as SynVueSwitch } from "./components/SynVueSwitch.vue";
|
|
29
30
|
export { default as SynVueTag } from "./components/SynVueTag.vue";
|
|
30
31
|
export { default as SynVueTextarea } from "./components/SynVueTextarea.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.22.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.22.0",
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@vue/tsconfig": "^0.5.1",
|
|
46
46
|
"vue": "^3.4.24"
|
|
@@ -0,0 +1,61 @@
|
|
|
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 Spinners are used to show the progress of an indeterminate operation.
|
|
10
|
+
* @documentation https://synergy.style/components/spinner
|
|
11
|
+
* @status stable
|
|
12
|
+
* @since 2.0
|
|
13
|
+
*
|
|
14
|
+
* @csspart base - The component's base wrapper.
|
|
15
|
+
*
|
|
16
|
+
* @cssproperty --track-width - The width of the track.
|
|
17
|
+
* @cssproperty --indicator-color - The color of the spinner's indicator.
|
|
18
|
+
* @cssproperty --speed - The time it takes for the spinner to complete one animation cycle.
|
|
19
|
+
*/
|
|
20
|
+
import { computed, ref } from 'vue';
|
|
21
|
+
import '@synergy-design-system/components/components/spinner/spinner.js';
|
|
22
|
+
|
|
23
|
+
import type { SynSpinner } from '@synergy-design-system/components';
|
|
24
|
+
|
|
25
|
+
// DOM Reference to the element
|
|
26
|
+
const element = ref<SynSpinner>();
|
|
27
|
+
|
|
28
|
+
// Map methods
|
|
29
|
+
|
|
30
|
+
defineExpose({
|
|
31
|
+
|
|
32
|
+
});
|
|
33
|
+
|
|
34
|
+
// Map attributes
|
|
35
|
+
const props = defineProps<{
|
|
36
|
+
|
|
37
|
+
}>();
|
|
38
|
+
|
|
39
|
+
// Make sure prop binding only forwards the props that are actually there.
|
|
40
|
+
// This is needed because :param="param" also adds an empty attribute
|
|
41
|
+
// when using web-components, which breaks optional arguments like size in SynInput
|
|
42
|
+
// @see https://github.com/vuejs/core/issues/5190#issuecomment-1003112498
|
|
43
|
+
const visibleProps = computed(() => Object.fromEntries(
|
|
44
|
+
Object
|
|
45
|
+
.entries(props)
|
|
46
|
+
.filter(([, value]) => typeof value !== 'undefined'),
|
|
47
|
+
));
|
|
48
|
+
|
|
49
|
+
// Map events
|
|
50
|
+
defineEmits<{
|
|
51
|
+
|
|
52
|
+
}>();
|
|
53
|
+
</script>
|
|
54
|
+
|
|
55
|
+
<template>
|
|
56
|
+
<syn-spinner
|
|
57
|
+
|
|
58
|
+
v-bind="visibleProps"
|
|
59
|
+
ref="element"
|
|
60
|
+
/>
|
|
61
|
+
</template>
|
package/src/index.js
CHANGED
|
@@ -30,6 +30,7 @@ export { default as SynVueRadioButton } from './components/SynVueRadioButton.vue
|
|
|
30
30
|
export { default as SynVueRadioGroup } from './components/SynVueRadioGroup.vue';
|
|
31
31
|
export { default as SynVueSelect } from './components/SynVueSelect.vue';
|
|
32
32
|
export { default as SynVueSideNav } from './components/SynVueSideNav.vue';
|
|
33
|
+
export { default as SynVueSpinner } from './components/SynVueSpinner.vue';
|
|
33
34
|
export { default as SynVueSwitch } from './components/SynVueSwitch.vue';
|
|
34
35
|
export { default as SynVueTag } from './components/SynVueTag.vue';
|
|
35
36
|
export { default as SynVueTextarea } from './components/SynVueTextarea.vue';
|