@synergy-design-system/vue 2.31.0-numeric.2 → 2.31.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.
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import { SynBlurEvent, SynChangeEvent, SynClearEvent, SynFocusEvent, SynInputEvent, SynInvalidEvent,
|
|
1
|
+
import { SynBlurEvent, SynChangeEvent, SynClearEvent, SynFocusEvent, SynInputEvent, SynInvalidEvent, SynInput } from '@synergy-design-system/components';
|
|
2
2
|
export type { SynBlurEvent } from '@synergy-design-system/components';
|
|
3
3
|
export type { SynChangeEvent } from '@synergy-design-system/components';
|
|
4
4
|
export type { SynClearEvent } from '@synergy-design-system/components';
|
|
5
5
|
export type { SynFocusEvent } from '@synergy-design-system/components';
|
|
6
6
|
export type { SynInputEvent } from '@synergy-design-system/components';
|
|
7
7
|
export type { SynInvalidEvent } from '@synergy-design-system/components';
|
|
8
|
-
export type { SynClampEvent } from '@synergy-design-system/components';
|
|
9
8
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
10
9
|
title?: SynInput["title"];
|
|
11
10
|
/**
|
|
@@ -139,45 +138,6 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
139
138
|
*/
|
|
140
139
|
inputmode?: SynInput["inputmode"];
|
|
141
140
|
/**
|
|
142
|
-
* The minimal amount of fraction digits to use for numeric values.
|
|
143
|
-
Used to format the number when the input type is `number` and `NumericStrategy.enableNumberFormat` is set to `true`.
|
|
144
|
-
*/
|
|
145
|
-
minFractionDigits?: SynInput["minFractionDigits"];
|
|
146
|
-
/**
|
|
147
|
-
* The maximal amount of fraction digits to use for numeric values.
|
|
148
|
-
Used to format the number when the input type is `number` and `NumericStrategy.enableNumberFormat` is set to `true`.
|
|
149
|
-
*/
|
|
150
|
-
maxFractionDigits?: SynInput["maxFractionDigits"];
|
|
151
|
-
/**
|
|
152
|
-
* Defines the strategy for handling numbers in the numeric input.
|
|
153
|
-
This is used to determine how the input behaves when the user interacts with it.
|
|
154
|
-
|
|
155
|
-
Includes the following configuration options:
|
|
156
|
-
|
|
157
|
-
- **autoClamp**: If true, the input will clamp the value to the min and max attributes.
|
|
158
|
-
- **enableNumberFormat**: If true, the input will format the value using a `NumberFormatter`.
|
|
159
|
-
- **noStepAlign**: If true, the input will not align the value to the step attribute.
|
|
160
|
-
- **noStepValidation**: If true, the input will not validate the value against the step attribute.
|
|
161
|
-
|
|
162
|
-
You may provide this as one of the following values:
|
|
163
|
-
|
|
164
|
-
- 'native': Uses the native browser implementation.
|
|
165
|
-
- 'modern': Uses a more intuitive implementation:
|
|
166
|
-
- Values are clamped to the nearest min or max value.
|
|
167
|
-
- Stepping is inclusive to the provided min and max values.
|
|
168
|
-
- Provided stepping is no longer used in validation.
|
|
169
|
-
- Advanced number formatting is enabled.
|
|
170
|
-
- An object that matches the `NumericStrategy` type.
|
|
171
|
-
* Note this can only be set via `property`, not as an `attribute`!
|
|
172
|
-
*/
|
|
173
|
-
numericStrategy?: SynInput["numericStrategy"];
|
|
174
|
-
/**
|
|
175
|
-
* Optional options that should be passed to the `NumberFormatter` when formatting the value.
|
|
176
|
-
This is used to format the number when the input type is `number` and `NumericStrategy.enableNumberFormat` is set to `true`.
|
|
177
|
-
Note this can only be set via `property`, not as an `attribute`!
|
|
178
|
-
*/
|
|
179
|
-
numberFormatterOptions?: SynInput["numberFormatterOptions"];
|
|
180
|
-
/**
|
|
181
141
|
* Support for two way data binding
|
|
182
142
|
*/
|
|
183
143
|
modelValue?: SynInput["value"];
|
|
@@ -191,7 +151,6 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
191
151
|
"syn-input": (e: SynInputEvent) => any;
|
|
192
152
|
"update:modelValue": (newValue: string) => any;
|
|
193
153
|
"syn-clear": (e: SynClearEvent) => any;
|
|
194
|
-
"syn-clamp": (e: SynClampEvent) => any;
|
|
195
154
|
}, string, import('vue').PublicProps, Readonly<{
|
|
196
155
|
title?: SynInput["title"];
|
|
197
156
|
/**
|
|
@@ -325,45 +284,6 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
325
284
|
*/
|
|
326
285
|
inputmode?: SynInput["inputmode"];
|
|
327
286
|
/**
|
|
328
|
-
* The minimal amount of fraction digits to use for numeric values.
|
|
329
|
-
Used to format the number when the input type is `number` and `NumericStrategy.enableNumberFormat` is set to `true`.
|
|
330
|
-
*/
|
|
331
|
-
minFractionDigits?: SynInput["minFractionDigits"];
|
|
332
|
-
/**
|
|
333
|
-
* The maximal amount of fraction digits to use for numeric values.
|
|
334
|
-
Used to format the number when the input type is `number` and `NumericStrategy.enableNumberFormat` is set to `true`.
|
|
335
|
-
*/
|
|
336
|
-
maxFractionDigits?: SynInput["maxFractionDigits"];
|
|
337
|
-
/**
|
|
338
|
-
* Defines the strategy for handling numbers in the numeric input.
|
|
339
|
-
This is used to determine how the input behaves when the user interacts with it.
|
|
340
|
-
|
|
341
|
-
Includes the following configuration options:
|
|
342
|
-
|
|
343
|
-
- **autoClamp**: If true, the input will clamp the value to the min and max attributes.
|
|
344
|
-
- **enableNumberFormat**: If true, the input will format the value using a `NumberFormatter`.
|
|
345
|
-
- **noStepAlign**: If true, the input will not align the value to the step attribute.
|
|
346
|
-
- **noStepValidation**: If true, the input will not validate the value against the step attribute.
|
|
347
|
-
|
|
348
|
-
You may provide this as one of the following values:
|
|
349
|
-
|
|
350
|
-
- 'native': Uses the native browser implementation.
|
|
351
|
-
- 'modern': Uses a more intuitive implementation:
|
|
352
|
-
- Values are clamped to the nearest min or max value.
|
|
353
|
-
- Stepping is inclusive to the provided min and max values.
|
|
354
|
-
- Provided stepping is no longer used in validation.
|
|
355
|
-
- Advanced number formatting is enabled.
|
|
356
|
-
- An object that matches the `NumericStrategy` type.
|
|
357
|
-
* Note this can only be set via `property`, not as an `attribute`!
|
|
358
|
-
*/
|
|
359
|
-
numericStrategy?: SynInput["numericStrategy"];
|
|
360
|
-
/**
|
|
361
|
-
* Optional options that should be passed to the `NumberFormatter` when formatting the value.
|
|
362
|
-
This is used to format the number when the input type is `number` and `NumericStrategy.enableNumberFormat` is set to `true`.
|
|
363
|
-
Note this can only be set via `property`, not as an `attribute`!
|
|
364
|
-
*/
|
|
365
|
-
numberFormatterOptions?: SynInput["numberFormatterOptions"];
|
|
366
|
-
/**
|
|
367
287
|
* Support for two way data binding
|
|
368
288
|
*/
|
|
369
289
|
modelValue?: SynInput["value"];
|
|
@@ -375,7 +295,6 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
|
375
295
|
"onSyn-input"?: ((e: SynInputEvent) => any) | undefined;
|
|
376
296
|
"onUpdate:modelValue"?: ((newValue: string) => any) | undefined;
|
|
377
297
|
"onSyn-clear"?: ((e: SynClearEvent) => any) | undefined;
|
|
378
|
-
"onSyn-clamp"?: ((e: SynClampEvent) => any) | undefined;
|
|
379
298
|
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
380
299
|
nativeElement: unknown;
|
|
381
300
|
}, any>, {
|
|
@@ -33,13 +33,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
33
|
enterkeyhint: {},
|
|
34
34
|
spellcheck: {},
|
|
35
35
|
inputmode: {},
|
|
36
|
-
minFractionDigits: {},
|
|
37
|
-
maxFractionDigits: {},
|
|
38
|
-
numericStrategy: {},
|
|
39
|
-
numberFormatterOptions: {},
|
|
40
36
|
modelValue: {}
|
|
41
37
|
},
|
|
42
|
-
emits: ["syn-blur", "syn-change", "syn-clear", "syn-focus", "syn-input", "syn-invalid", "
|
|
38
|
+
emits: ["syn-blur", "syn-change", "syn-clear", "syn-focus", "syn-input", "syn-invalid", "update:modelValue"],
|
|
43
39
|
setup(__props, { expose: __expose }) {
|
|
44
40
|
const nativeElement = ref();
|
|
45
41
|
__expose({
|
|
@@ -62,7 +58,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
62
58
|
_ctx.$emit("syn-input", $event);
|
|
63
59
|
}),
|
|
64
60
|
onSynInvalid: _cache[5] || (_cache[5] = ($event) => _ctx.$emit("syn-invalid", $event)),
|
|
65
|
-
onSynClamp: _cache[6] || (_cache[6] = ($event) => _ctx.$emit("syn-clamp", $event)),
|
|
66
61
|
value: typeof props.modelValue !== "undefined" ? props.modelValue : typeof props.value !== "undefined" ? props.value : void 0
|
|
67
62
|
}, visibleProps.value, {
|
|
68
63
|
ref_key: "nativeElement",
|
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": "^2.31.0
|
|
7
|
+
"@synergy-design-system/components": "^2.31.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": "2.31.0
|
|
43
|
+
"version": "2.31.0",
|
|
44
44
|
"devDependencies": {
|
|
45
45
|
"@vitejs/plugin-vue": "^5.2.3",
|
|
46
46
|
"@vue/tsconfig": "^0.7.0",
|
|
@@ -51,6 +51,8 @@
|
|
|
51
51
|
* @csspart filtered-listbox - The container that wraps the filtered options.
|
|
52
52
|
* @csspart clear-button - The clear button.
|
|
53
53
|
* @csspart expand-icon - The container that wraps the expand icon.
|
|
54
|
+
* @csspart popup - The popup's exported `popup` part.
|
|
55
|
+
* Use this to target the tooltip's popup container.
|
|
54
56
|
*
|
|
55
57
|
* @animation combobox.show - The animation to use when showing the combobox.
|
|
56
58
|
* @animation combobox.hide - The animation to use when hiding the combobox.
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
* @event syn-focus - Emitted when the control gains focus.
|
|
31
31
|
* @event syn-input - Emitted when the control receives input.
|
|
32
32
|
* @event syn-invalid - Emitted when the form control has been checked for validity and its constraints aren't satisfied.
|
|
33
|
-
* @event syn-clamp - Emitted if the numeric strategy allows autoClamp and the value is clamped to the min or max attribute.
|
|
34
33
|
*
|
|
35
34
|
* @csspart form-control - The form control that wraps the label, input, and help text.
|
|
36
35
|
* @csspart form-control-label - The label's wrapper.
|
|
@@ -61,7 +60,6 @@ import type { SynClearEvent } from '@synergy-design-system/components';
|
|
|
61
60
|
import type { SynFocusEvent } from '@synergy-design-system/components';
|
|
62
61
|
import type { SynInputEvent } from '@synergy-design-system/components';
|
|
63
62
|
import type { SynInvalidEvent } from '@synergy-design-system/components';
|
|
64
|
-
import type { SynClampEvent } from '@synergy-design-system/components';
|
|
65
63
|
import type { SynInput } from '@synergy-design-system/components';
|
|
66
64
|
|
|
67
65
|
// DOM Reference to the element
|
|
@@ -233,49 +231,6 @@ keyboard on supportive devices.
|
|
|
233
231
|
*/
|
|
234
232
|
inputmode?: SynInput['inputmode'];
|
|
235
233
|
|
|
236
|
-
/**
|
|
237
|
-
* The minimal amount of fraction digits to use for numeric values.
|
|
238
|
-
Used to format the number when the input type is `number` and `NumericStrategy.enableNumberFormat` is set to `true`.
|
|
239
|
-
*/
|
|
240
|
-
minFractionDigits?: SynInput['minFractionDigits'];
|
|
241
|
-
|
|
242
|
-
/**
|
|
243
|
-
* The maximal amount of fraction digits to use for numeric values.
|
|
244
|
-
Used to format the number when the input type is `number` and `NumericStrategy.enableNumberFormat` is set to `true`.
|
|
245
|
-
*/
|
|
246
|
-
maxFractionDigits?: SynInput['maxFractionDigits'];
|
|
247
|
-
|
|
248
|
-
/**
|
|
249
|
-
* Defines the strategy for handling numbers in the numeric input.
|
|
250
|
-
This is used to determine how the input behaves when the user interacts with it.
|
|
251
|
-
|
|
252
|
-
Includes the following configuration options:
|
|
253
|
-
|
|
254
|
-
- **autoClamp**: If true, the input will clamp the value to the min and max attributes.
|
|
255
|
-
- **enableNumberFormat**: If true, the input will format the value using a `NumberFormatter`.
|
|
256
|
-
- **noStepAlign**: If true, the input will not align the value to the step attribute.
|
|
257
|
-
- **noStepValidation**: If true, the input will not validate the value against the step attribute.
|
|
258
|
-
|
|
259
|
-
You may provide this as one of the following values:
|
|
260
|
-
|
|
261
|
-
- 'native': Uses the native browser implementation.
|
|
262
|
-
- 'modern': Uses a more intuitive implementation:
|
|
263
|
-
- Values are clamped to the nearest min or max value.
|
|
264
|
-
- Stepping is inclusive to the provided min and max values.
|
|
265
|
-
- Provided stepping is no longer used in validation.
|
|
266
|
-
- Advanced number formatting is enabled.
|
|
267
|
-
- An object that matches the `NumericStrategy` type.
|
|
268
|
-
* Note this can only be set via `property`, not as an `attribute`!
|
|
269
|
-
*/
|
|
270
|
-
numericStrategy?: SynInput['numericStrategy'];
|
|
271
|
-
|
|
272
|
-
/**
|
|
273
|
-
* Optional options that should be passed to the `NumberFormatter` when formatting the value.
|
|
274
|
-
This is used to format the number when the input type is `number` and `NumericStrategy.enableNumberFormat` is set to `true`.
|
|
275
|
-
Note this can only be set via `property`, not as an `attribute`!
|
|
276
|
-
*/
|
|
277
|
-
numberFormatterOptions?: SynInput['numberFormatterOptions'];
|
|
278
|
-
|
|
279
234
|
/**
|
|
280
235
|
* Support for two way data binding
|
|
281
236
|
*/
|
|
@@ -324,11 +279,6 @@ defineEmits<{
|
|
|
324
279
|
*/
|
|
325
280
|
'syn-invalid': [e: SynInvalidEvent];
|
|
326
281
|
|
|
327
|
-
/**
|
|
328
|
-
* Emitted if the numeric strategy allows autoClamp and the value is clamped to the min or max attribute.
|
|
329
|
-
*/
|
|
330
|
-
'syn-clamp': [e: SynClampEvent];
|
|
331
|
-
|
|
332
282
|
/**
|
|
333
283
|
* Support for two way data binding
|
|
334
284
|
*/
|
|
@@ -343,7 +293,6 @@ export type { SynClearEvent } from '@synergy-design-system/components';
|
|
|
343
293
|
export type { SynFocusEvent } from '@synergy-design-system/components';
|
|
344
294
|
export type { SynInputEvent } from '@synergy-design-system/components';
|
|
345
295
|
export type { SynInvalidEvent } from '@synergy-design-system/components';
|
|
346
|
-
export type { SynClampEvent } from '@synergy-design-system/components';
|
|
347
296
|
</script>
|
|
348
297
|
|
|
349
298
|
<template>
|
|
@@ -357,7 +306,6 @@ export type { SynClampEvent } from '@synergy-design-system/components';
|
|
|
357
306
|
$emit('syn-input', $event);
|
|
358
307
|
"
|
|
359
308
|
@syn-invalid="$emit('syn-invalid', $event)"
|
|
360
|
-
@syn-clamp="$emit('syn-clamp', $event)"
|
|
361
309
|
:value="
|
|
362
310
|
typeof props.modelValue !== 'undefined'
|
|
363
311
|
? props.modelValue
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
* @csspart tag__remove-button__base - The tag's remove button base part.
|
|
52
52
|
* @csspart clear-button - The clear button.
|
|
53
53
|
* @csspart expand-icon - The container that wraps the expand icon.
|
|
54
|
+
* @csspart popup - The popup's exported `popup` part. Use this to target the tooltip's popup container.
|
|
54
55
|
*/
|
|
55
56
|
import { computed, ref } from 'vue';
|
|
56
57
|
import '@synergy-design-system/components/components/select/select.js';
|