@webitel/ui-sdk 25.10.4 → 25.10.6

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.
Files changed (24) hide show
  1. package/dist/ui-sdk.css +1 -1
  2. package/dist/ui-sdk.js +6247 -5903
  3. package/dist/ui-sdk.umd.cjs +235 -121
  4. package/package.json +2 -2
  5. package/src/components/on-demand/wt-type-extension-value-input/wt-type-extension-value-input.vue +2 -2
  6. package/src/components/wt-popover/wt-popover.vue +10 -2
  7. package/src/components/wt-switcher/wt-switcher.vue +38 -159
  8. package/src/modules/Appearance/components/wt-dark-mode-switcher.vue +2 -2
  9. package/src/modules/AuditForm/components/audit-form-question-write-wrapper.vue +2 -2
  10. package/src/plugins/primevue/primevue.plugin.js +2 -0
  11. package/src/plugins/primevue/theme/components/components.js +2 -0
  12. package/src/plugins/primevue/theme/components/switcher/switcher.js +8 -0
  13. package/types/components/wt-action-bar/wt-action-bar.vue.d.ts +2 -2
  14. package/types/components/wt-button/wt-button.vue.d.ts +2 -2
  15. package/types/components/wt-datepicker/wt-datepicker.vue.d.ts +2 -2
  16. package/types/components/wt-icon/wt-icon.vue.d.ts +1 -1
  17. package/types/components/wt-icon-action/wt-icon-action.vue.d.ts +2 -2
  18. package/types/components/wt-item-link/wt-item-link.vue.d.ts +2 -2
  19. package/types/components/wt-popover/wt-popover.vue.d.ts +9 -4
  20. package/types/components/wt-popup/wt-popup.vue.d.ts +1 -1
  21. package/types/components/wt-rounded-action/wt-rounded-action.vue.d.ts +2 -2
  22. package/types/components/wt-switcher/wt-switcher.vue.d.ts +49 -47
  23. package/types/plugins/primevue/theme/components/components.d.ts +2 -0
  24. package/types/plugins/primevue/theme/components/switcher/switcher.d.ts +78 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webitel/ui-sdk",
3
- "version": "25.10.4",
3
+ "version": "25.10.6",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "make-all": "npm version patch --git-tag-version false && npm run build && (npm run build:types || true) && (npm run lint:fix || true) && npm run publish-lib",
@@ -56,7 +56,7 @@
56
56
  "@vuepic/vue-datepicker": "^4.5.1",
57
57
  "@vueuse/components": "^13.0.0",
58
58
  "@webitel/api-services": "^0.0.42",
59
- "@webitel/styleguide": "^24.12.59",
59
+ "@webitel/styleguide": "^24.12.61",
60
60
  "autosize": "^6.0.1",
61
61
  "axios": "^1.8.3",
62
62
  "clipboard-copy": "^4.0.1",
@@ -19,8 +19,8 @@
19
19
  >
20
20
  <wt-switcher
21
21
  v-bind="sharedChildrenProps"
22
- :value="value"
23
- @change="setValue"
22
+ :model-value="value"
23
+ @update:model-value="setValue"
24
24
  />
25
25
  </slot>
26
26
  <slot
@@ -25,9 +25,13 @@
25
25
  import { PopoverEmitsOptions, PopoverProps } from 'primevue';
26
26
  import { defineExpose, useAttrs, useTemplateRef } from 'vue';
27
27
 
28
+ interface Props extends PopoverProps {
29
+ disabled?: boolean;
30
+ }
31
+
28
32
  const attrs = useAttrs();
29
33
  const innerPopover = useTemplateRef('innerPopover');
30
- withDefaults(defineProps<PopoverProps>(), {
34
+ const props = withDefaults(defineProps<Props>(), {
31
35
  appendTo: 'body',
32
36
  baseZIndex: 0,
33
37
  autoZIndex: true,
@@ -36,15 +40,19 @@ withDefaults(defineProps<PopoverProps>(), {
36
40
  pt: null,
37
41
  ptOptions: null,
38
42
  closeOnEscape: true,
39
- unstyled: false
43
+ unstyled: false,
44
+ disabled: false
40
45
  });
41
46
  defineEmits<PopoverEmitsOptions>();
42
47
 
43
48
  const toggle = (event?: Event, target?: HTMLElement | null | undefined) => {
49
+ if (props.disabled) return;
50
+
44
51
  innerPopover.value?.toggle(event, target ?? undefined);
45
52
  };
46
53
 
47
54
  const show = (event?: Event, target?: HTMLElement | null | undefined) => {
55
+ if (props.disabled) return;
48
56
  // Opens the popover.
49
57
  // `target` is the element the popover will be positioned relative to.
50
58
  // If not provided, the popover will be positioned relative to the `activator` slot element by default.
@@ -1,26 +1,18 @@
1
1
  <template>
2
- <div
3
- :class="{
4
- 'wt-switcher--off': !value,
5
- 'wt-switcher--on': value,
6
- 'wt-switcher--disabled': disabled,
7
- }"
8
- class="wt-switcher"
2
+ <div
3
+ class="wt-switcher"
4
+ :class="{ 'wt-switcher--label-left': labelLeft }"
9
5
  >
6
+ <p-toggle-switch
7
+ v-model="model"
8
+ :input-id="switcherId"
9
+ :disabled="disabled"
10
+ />
10
11
  <wt-label
11
- :class="{ 'wt-switcher__wrapper--label-left': labelLeft }"
12
12
  :disabled="disabled"
13
- class="wt-switcher__wrapper"
13
+ :for="switcherId"
14
14
  v-bind="labelProps"
15
15
  >
16
- <input
17
- :checked="value"
18
- :disabled="disabled"
19
- class="wt-switcher__input"
20
- type="checkbox"
21
- @change="inputHandler"
22
- />
23
- <span class="wt-switcher__checkmark" />
24
16
  <!-- @slot Custom input label -->
25
17
  <slot
26
18
  name="label"
@@ -37,42 +29,31 @@
37
29
  </div>
38
30
  </template>
39
31
 
40
- <script>
41
- export default {
42
- name: 'WtSwitcher',
43
- model: {
44
- prop: 'value',
45
- event: 'change',
46
- },
47
- props: {
48
- value: {
49
- type: Boolean,
50
- default: false,
51
- },
52
- label: {
53
- type: String,
54
- default: '',
55
- },
56
- labelLeft: {
57
- type: Boolean,
58
- default: false,
59
- },
60
- disabled: {
61
- type: Boolean,
62
- default: false,
63
- },
64
- labelProps: {
65
- type: Object,
66
- description: 'Object with props, passed down to wt-label as props',
67
- },
68
- },
69
- emits: ['change'],
70
- methods: {
71
- inputHandler() {
72
- this.$emit('change', !this.value);
73
- },
74
- },
75
- };
32
+ <script setup lang="ts">
33
+ import { ToggleSwitchProps } from 'primevue/toggleswitch';
34
+ import { defineModel, defineProps, withDefaults } from 'vue';
35
+
36
+ interface LabelProps {
37
+ [key: string]: any;
38
+ }
39
+
40
+ interface Props extends ToggleSwitchProps {
41
+ label?: string;
42
+ labelLeft?: boolean;
43
+ disabled?: boolean;
44
+ labelProps?: LabelProps;
45
+ }
46
+
47
+ withDefaults(defineProps<Props>(), {
48
+ label: '',
49
+ labelLeft: false,
50
+ disabled: false,
51
+ labelProps: () => ({}),
52
+ });
53
+
54
+ const model = defineModel<boolean>();
55
+
56
+ const switcherId = `switcher-${Math.random().toString(36).slice(2, 11)}`;
76
57
  </script>
77
58
 
78
59
  <style lang="scss">
@@ -84,126 +65,24 @@ export default {
84
65
  position: relative;
85
66
  box-sizing: border-box;
86
67
  width: fit-content;
87
-
88
- .wt-label {
89
- cursor: pointer;
90
- }
91
- }
92
-
93
- .wt-switcher__wrapper {
94
68
  display: flex;
95
- position: relative;
96
69
  align-items: center;
97
70
  cursor: pointer;
98
- user-select: none;
99
71
 
100
- &.wt-switcher__wrapper--label-left {
72
+ &.wt-switcher--label-left {
101
73
  flex-direction: row-reverse;
102
74
  }
103
75
  }
104
76
 
105
77
  .wt-switcher__label {
78
+ cursor: pointer;
79
+ user-select: none;
106
80
  transition: var(--transition);
107
81
  margin-left: var(--switcher-icon-margin);
108
82
 
109
- .wt-switcher__wrapper--label-left & {
83
+ .wt-switcher--label-left & {
110
84
  margin-right: var(--switcher-icon-margin);
111
85
  margin-left: 0;
112
86
  }
113
87
  }
114
-
115
- .wt-switcher__input {
116
- position: absolute;
117
- opacity: 0;
118
- width: 0;
119
- height: 0;
120
- pointer-events: none;
121
- }
122
-
123
- .wt-switcher__checkmark {
124
- display: block;
125
- position: relative;
126
- flex: 0 0 var(--switcher-width);
127
- transition: var(--transition);
128
- border-radius: var(--switcher-border-radius);
129
- width: var(--switcher-width);
130
- height: var(--switcher-height);
131
-
132
- &:before {
133
- position: absolute;
134
- bottom: var(--switcher-cicle-margin);
135
- left: var(--switcher-cicle-margin);
136
- transition: var(--transition);
137
- border-radius: 50%;
138
- width: var(--switcher-cicle-size);
139
- height: var(--switcher-cicle-size);
140
- content: '';
141
- }
142
- }
143
-
144
- .wt-switcher--off {
145
- .wt-switcher__checkmark {
146
- background: var(--wt-switcher-background-color-off);
147
-
148
- &:before {
149
- background: var(--wt-switcher-circle-background-color-off);
150
- }
151
- }
152
-
153
- &:hover {
154
- .wt-switcher__checkmark {
155
- background: var(--wt-switcher-background-color-off-hover);
156
-
157
- &:before {
158
- background: var(--wt-switcher-circle-background-color-off-hover);
159
- }
160
- }
161
- }
162
-
163
- &.wt-switcher--disabled {
164
- .wt-switcher__checkmark {
165
- background: var(--wt-switcher-background-color-off-disabled);
166
-
167
- &:before {
168
- background: var(--wt-switcher-circle-background-color-off-disabled);
169
- }
170
- }
171
- }
172
- }
173
-
174
- .wt-switcher--on {
175
- .wt-switcher__checkmark {
176
- background: var(--wt-switcher-background-color-on);
177
-
178
- /* Show the indicator (dot/circle) when checked */
179
- &:before {
180
- transform: translateX(var(--switcher-cicle-translateX));
181
- background: var(--wt-switcher-circle-background-color-on);
182
- }
183
- }
184
-
185
- &:hover {
186
- .wt-switcher__checkmark {
187
- background: var(--wt-switcher-background-color-on-hover);
188
-
189
- &:before {
190
- background: var(--wt-switcher-circle-background-color-on-hover);
191
- }
192
- }
193
- }
194
-
195
- &.wt-switcher--disabled {
196
- .wt-switcher__checkmark {
197
- background: var(--wt-switcher-background-color-on-disabled);
198
-
199
- &:before {
200
- background: var(--wt-switcher-circle-background-color-on-disabled);
201
- }
202
- }
203
- }
204
- }
205
-
206
- .wt-switcher--disabled {
207
- pointer-events: none;
208
- }
209
88
  </style>
@@ -55,8 +55,8 @@ if (cachedTheme) {
55
55
  <div class="wt-dark-mode-switcher">
56
56
  <wt-icon icon="dark-mode" />
57
57
  <wt-switcher
58
- :value="mode === 'dark'"
59
- @change="toggleDarkMode"
58
+ :model-value="mode === 'dark'"
59
+ @update:model-value="toggleDarkMode"
60
60
  />
61
61
  </div>
62
62
  </template>
@@ -4,8 +4,8 @@
4
4
  <wt-switcher
5
5
  :disabled="first"
6
6
  :label="t('reusable.required')"
7
- :value="question.required"
8
- @change="updateQuestion({ path: 'required', value: $event })"
7
+ :model-value="question.required"
8
+ @update:model-value="updateQuestion({ path: 'required', value: $event })"
9
9
  />
10
10
  <div class="audit-form-question-write-header__actions">
11
11
  <wt-icon-btn
@@ -9,6 +9,7 @@ import PInputText from 'primevue/inputtext';
9
9
  import PPopover from 'primevue/popover';
10
10
  import PRadio from 'primevue/radiobutton';
11
11
  import PSlider from 'primevue/slider'
12
+ import PToggleSwitch from 'primevue/toggleswitch';
12
13
  import Tooltip from 'primevue/tooltip';
13
14
 
14
15
  import WebitelTheme from './theme/webitel-theme.js';
@@ -36,6 +37,7 @@ const initPrimevue = (app) => {
36
37
  app.component('PCheckbox', changeComponentCompatMode(PCheckbox));
37
38
  app.component('PRadio', changeComponentCompatMode(PRadio));
38
39
  app.component('PChip', changeComponentCompatMode(PChip));
40
+ app.component('PToggleSwitch', changeComponentCompatMode(PToggleSwitch));
39
41
  app.component('PBreadcrumb', changeComponentCompatMode(PBreadcrumb));
40
42
  app.component('PSlider', changeComponentCompatMode(PSlider));
41
43
  app.component('PDivider', changeComponentCompatMode(PDivider));
@@ -7,6 +7,7 @@ import divider from './divider/divider.js';
7
7
  import popover from './popover/popover.js';
8
8
  import radio from './radio/radio.js';
9
9
  import slider from './slider/slider.js'
10
+ import switcher from './switcher/switcher.js';
10
11
  import tooltip from './tooltip/tooltip.js';
11
12
 
12
13
  const components = {
@@ -16,6 +17,7 @@ const components = {
16
17
  tooltip,
17
18
  chip,
18
19
  checkbox,
20
+ toggleswitch: switcher,
19
21
  breadcrumb,
20
22
  slider,
21
23
  divider,
@@ -0,0 +1,8 @@
1
+ import { SwitcherScheme } from '@webitel/styleguide/component-schemes';
2
+
3
+ const switcher = {
4
+ ...SwitcherScheme.sizes,
5
+ colorScheme: SwitcherScheme.colorScheme,
6
+ };
7
+
8
+ export default switcher;
@@ -5,14 +5,14 @@ type __VLS_WithSlots<T, S> = T & (new () => {
5
5
  });
6
6
  declare const __VLS_component: import("vue").DefineComponent<{}, {
7
7
  $emit: (event: string, ...args: any[]) => void;
8
- mode: string;
9
8
  disabled: boolean;
9
+ mode: string;
10
10
  include: unknown[];
11
11
  exclude: unknown[];
12
12
  size?: string;
13
13
  $props: {
14
- readonly mode?: string;
15
14
  readonly disabled?: boolean;
15
+ readonly mode?: string;
16
16
  readonly include?: unknown[];
17
17
  readonly exclude?: unknown[];
18
18
  readonly size?: string;
@@ -36,8 +36,8 @@ declare const __VLS_self: import("vue").DefineComponent<WtButtonProps, {
36
36
  onClick?: (...args: any[]) => any;
37
37
  }>, {
38
38
  color: ButtonColor;
39
- size: ComponentSize;
40
39
  disabled: boolean;
40
+ size: ComponentSize;
41
41
  wide: boolean;
42
42
  loading: boolean;
43
43
  widthByContent: boolean;
@@ -49,8 +49,8 @@ declare const __VLS_component: import("vue").DefineComponent<WtButtonProps, {},
49
49
  onClick?: (...args: any[]) => any;
50
50
  }>, {
51
51
  color: ButtonColor;
52
- size: ComponentSize;
53
52
  disabled: boolean;
53
+ size: ComponentSize;
54
54
  wide: boolean;
55
55
  loading: boolean;
56
56
  widthByContent: boolean;
@@ -8,8 +8,8 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
8
8
  value: string | number;
9
9
  label: string;
10
10
  required: boolean;
11
- mode: string;
12
11
  disabled: boolean;
12
+ mode: string;
13
13
  clearable: boolean;
14
14
  placeholder: string;
15
15
  lang: string;
@@ -20,8 +20,8 @@ declare const __VLS_component: import("vue").DefineComponent<{}, {
20
20
  readonly value?: string | number;
21
21
  readonly label?: string;
22
22
  readonly required?: boolean;
23
- readonly mode?: string;
24
23
  readonly disabled?: boolean;
24
+ readonly mode?: string;
25
25
  readonly clearable?: boolean;
26
26
  readonly placeholder?: string;
27
27
  readonly lang?: string;
@@ -16,8 +16,8 @@ interface Props {
16
16
  }
17
17
  declare const _default: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
18
18
  color: IconColor;
19
- size: ComponentSize;
20
19
  disabled: boolean;
20
+ size: ComponentSize;
21
21
  iconPrefix: string;
22
22
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
23
23
  export default _default;
@@ -1,11 +1,11 @@
1
1
  declare const _default: import("vue").DefineComponent<{}, {
2
2
  $emit: (event: "click" | "mousedown", ...args: any[]) => void;
3
- size: string;
4
3
  disabled: boolean;
4
+ size: string;
5
5
  action: string;
6
6
  $props: {
7
- readonly size?: string;
8
7
  readonly disabled?: boolean;
8
+ readonly size?: string;
9
9
  readonly action?: string;
10
10
  };
11
11
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
@@ -5,16 +5,16 @@ type __VLS_WithSlots<T, S> = T & (new () => {
5
5
  });
6
6
  declare const __VLS_component: import("vue").DefineComponent<{}, {
7
7
  link: string | Record<string, any>;
8
+ disabled: boolean;
8
9
  target: string;
9
10
  id: string | number;
10
- disabled: boolean;
11
11
  routeName: string;
12
12
  invisible: boolean;
13
13
  $props: {
14
14
  readonly link?: string | Record<string, any>;
15
+ readonly disabled?: boolean;
15
16
  readonly target?: string;
16
17
  readonly id?: string | number;
17
- readonly disabled?: boolean;
18
18
  readonly routeName?: string;
19
19
  readonly invisible?: boolean;
20
20
  };
@@ -1,4 +1,7 @@
1
1
  import { PopoverProps } from 'primevue';
2
+ interface Props extends PopoverProps {
3
+ disabled?: boolean;
4
+ }
2
5
  declare const attrs: {
3
6
  [x: string]: unknown;
4
7
  };
@@ -19,7 +22,7 @@ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$
19
22
  } & {
20
23
  default?: (props: typeof __VLS_9) => any;
21
24
  }>;
22
- declare const __VLS_self: import("vue").DefineComponent<PopoverProps, {
25
+ declare const __VLS_self: import("vue").DefineComponent<Props, {
23
26
  attrs: typeof attrs;
24
27
  toggle: typeof toggle;
25
28
  show: typeof show;
@@ -27,7 +30,7 @@ declare const __VLS_self: import("vue").DefineComponent<PopoverProps, {
27
30
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
28
31
  show: () => any;
29
32
  hide: () => any;
30
- }, string, import("vue").PublicProps, Readonly<PopoverProps> & Readonly<{
33
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
31
34
  onShow?: () => any;
32
35
  onHide?: () => any;
33
36
  }>, {
@@ -40,15 +43,16 @@ declare const __VLS_self: import("vue").DefineComponent<PopoverProps, {
40
43
  autoZIndex: boolean;
41
44
  breakpoints: import("primevue").PopoverBreakpoints;
42
45
  closeOnEscape: boolean | undefined;
46
+ disabled: boolean;
43
47
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
44
- declare const __VLS_component: import("vue").DefineComponent<PopoverProps, {
48
+ declare const __VLS_component: import("vue").DefineComponent<Props, {
45
49
  toggle: (event?: Event, target?: HTMLElement | null | undefined) => void;
46
50
  show: (event?: Event, target?: HTMLElement | null | undefined) => void;
47
51
  hide: (event?: Event) => void;
48
52
  }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
49
53
  show: () => any;
50
54
  hide: () => any;
51
- }, string, import("vue").PublicProps, Readonly<PopoverProps> & Readonly<{
55
+ }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
52
56
  onShow?: () => any;
53
57
  onHide?: () => any;
54
58
  }>, {
@@ -61,6 +65,7 @@ declare const __VLS_component: import("vue").DefineComponent<PopoverProps, {
61
65
  autoZIndex: boolean;
62
66
  breakpoints: import("primevue").PopoverBreakpoints;
63
67
  closeOnEscape: boolean | undefined;
68
+ disabled: boolean;
64
69
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
65
70
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
66
71
  export default _default;
@@ -38,9 +38,9 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
38
38
  "onPopup:opened"?: () => any;
39
39
  "onPopup:closed"?: () => any;
40
40
  }>, {
41
+ disabled: boolean;
41
42
  overflow: boolean;
42
43
  size: ComponentSize;
43
- disabled: boolean;
44
44
  shown: boolean;
45
45
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
46
46
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
@@ -2,9 +2,9 @@ declare const _default: import("vue").DefineComponent<{}, {
2
2
  $emit: (event: "click", ...args: any[]) => void;
3
3
  color: string;
4
4
  icon: string;
5
+ disabled: boolean;
5
6
  size: string;
6
7
  active: boolean;
7
- disabled: boolean;
8
8
  wide: boolean;
9
9
  loading: boolean;
10
10
  rounded: boolean;
@@ -12,9 +12,9 @@ declare const _default: import("vue").DefineComponent<{}, {
12
12
  $props: {
13
13
  readonly color?: string;
14
14
  readonly icon?: string;
15
+ readonly disabled?: boolean;
15
16
  readonly size?: string;
16
17
  readonly active?: boolean;
17
- readonly disabled?: boolean;
18
18
  readonly wide?: boolean;
19
19
  readonly loading?: boolean;
20
20
  readonly rounded?: boolean;
@@ -1,53 +1,55 @@
1
- declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
2
- value: {
3
- type: BooleanConstructor;
4
- default: boolean;
5
- };
6
- label: {
7
- type: StringConstructor;
8
- default: string;
9
- };
10
- labelLeft: {
11
- type: BooleanConstructor;
12
- default: boolean;
13
- };
14
- disabled: {
15
- type: BooleanConstructor;
16
- default: boolean;
17
- };
18
- labelProps: {
19
- type: ObjectConstructor;
20
- description: string;
21
- };
22
- }>, {}, {}, {}, {
23
- inputHandler(): void;
24
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "change"[], "change", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
25
- value: {
26
- type: BooleanConstructor;
27
- default: boolean;
28
- };
29
- label: {
30
- type: StringConstructor;
31
- default: string;
32
- };
33
- labelLeft: {
34
- type: BooleanConstructor;
35
- default: boolean;
36
- };
37
- disabled: {
38
- type: BooleanConstructor;
39
- default: boolean;
40
- };
41
- labelProps: {
42
- type: ObjectConstructor;
43
- description: string;
44
- };
45
- }>> & Readonly<{
46
- onChange?: (...args: any[]) => any;
1
+ import { ToggleSwitchProps } from 'primevue/toggleswitch';
2
+ interface LabelProps {
3
+ [key: string]: any;
4
+ }
5
+ interface Props extends ToggleSwitchProps {
6
+ label?: string;
7
+ labelLeft?: boolean;
8
+ disabled?: boolean;
9
+ labelProps?: LabelProps;
10
+ }
11
+ type __VLS_Props = Props;
12
+ declare const model: import("vue").ModelRef<boolean, string, boolean, boolean>;
13
+ declare const switcherId: string;
14
+ type __VLS_PublicProps = __VLS_Props & {
15
+ modelValue?: boolean;
16
+ };
17
+ declare const __VLS_ctx: InstanceType<__VLS_PickNotAny<typeof __VLS_self, new () => {}>>;
18
+ declare var __VLS_9: {
19
+ label: string;
20
+ value: any;
21
+ disabled: boolean;
22
+ };
23
+ type __VLS_Slots = __VLS_PrettifyGlobal<__VLS_OmitStringIndex<typeof __VLS_ctx.$slots> & {
24
+ label?: (props: typeof __VLS_9) => any;
25
+ }>;
26
+ declare const __VLS_self: import("vue").DefineComponent<__VLS_PublicProps, {
27
+ model: typeof model;
28
+ switcherId: typeof switcherId;
29
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
+ "update:modelValue": (value: boolean) => any;
31
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
32
+ "onUpdate:modelValue"?: (value: boolean) => any;
47
33
  }>, {
48
- value: boolean;
49
34
  label: string;
50
35
  disabled: boolean;
36
+ labelProps: LabelProps;
51
37
  labelLeft: boolean;
52
38
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
39
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
40
+ "update:modelValue": (value: boolean) => any;
41
+ }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
42
+ "onUpdate:modelValue"?: (value: boolean) => any;
43
+ }>, {
44
+ label: string;
45
+ disabled: boolean;
46
+ labelProps: LabelProps;
47
+ labelLeft: boolean;
48
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
49
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
53
50
  export default _default;
51
+ type __VLS_WithSlots<T, S> = T & {
52
+ new (): {
53
+ $slots: S;
54
+ };
55
+ };