@wirecore/wirelayer-vue 0.7.0 → 0.9.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/{Checkbox-D175nhKK.js → Checkbox-DS2qfQK1.js} +2 -8
- package/dist/ContextMenu-CBE9YnDW.js +2321 -0
- package/dist/{Field-B1EsNF84.js → Field-Cqe2BG_x.js} +1 -1
- package/dist/Input-C5dyvZfJ.js +183 -0
- package/dist/{InputStatus-D7kBGlew.js → InputStatus-Cgarj-yu.js} +16 -3
- package/dist/{Select-Bd2Vpr7G.js → Select-q8FUIWLi.js} +141 -124
- package/dist/Tree-B-0NXpUq.js +839 -0
- package/dist/components/Alert/Alert.vue.d.ts +5 -3
- package/dist/components/Alert/Alert.vue.d.ts.map +1 -1
- package/dist/components/Avatar/Avatar.vue.d.ts +2 -0
- package/dist/components/Avatar/Avatar.vue.d.ts.map +1 -1
- package/dist/components/Card/Card.vue.d.ts +2 -0
- package/dist/components/Card/Card.vue.d.ts.map +1 -1
- package/dist/components/Checkbox/Checkbox.vue.d.ts +26 -23
- package/dist/components/Checkbox/Checkbox.vue.d.ts.map +1 -1
- package/dist/components/Code/Code.vue.d.ts +21 -0
- package/dist/components/Code/Code.vue.d.ts.map +1 -0
- package/dist/components/Combobox/Combobox.vue.d.ts +9 -1
- package/dist/components/Combobox/Combobox.vue.d.ts.map +1 -1
- package/dist/components/CommandPalette/CommandPalette.vue.d.ts +1 -1
- package/dist/components/ContextMenu/ContextMenu.vue.d.ts +18 -2
- package/dist/components/ContextMenu/ContextMenu.vue.d.ts.map +1 -1
- package/dist/components/Dialog/Dialog.vue.d.ts +1 -1
- package/dist/components/Dialog/Dialog.vue.d.ts.map +1 -1
- package/dist/components/Dialog/DialogContent.vue.d.ts +12 -1
- package/dist/components/Dialog/DialogContent.vue.d.ts.map +1 -1
- package/dist/components/Dialog/context.d.ts +3 -1
- package/dist/components/Dialog/context.d.ts.map +1 -1
- package/dist/components/Drawer/Drawer.vue.d.ts +1 -1
- package/dist/components/Fieldset/Fieldset.vue.d.ts +1 -1
- package/dist/components/FilterPanel/FilterPanel.vue.d.ts +1 -1
- package/dist/components/HoverCard/HoverCard.vue.d.ts +1 -1
- package/dist/components/Input/Input.vue.d.ts +3 -1
- package/dist/components/Input/Input.vue.d.ts.map +1 -1
- package/dist/components/MaskInput/MaskInput.vue.d.ts +2 -1
- package/dist/components/MaskInput/MaskInput.vue.d.ts.map +1 -1
- package/dist/components/Menu/Menu.vue.d.ts +9 -1
- package/dist/components/Menu/Menu.vue.d.ts.map +1 -1
- package/dist/components/Menu/state.d.ts +22 -0
- package/dist/components/Menu/state.d.ts.map +1 -1
- package/dist/components/NativeSelect/NativeSelect.vue.d.ts +31 -19
- package/dist/components/NativeSelect/NativeSelect.vue.d.ts.map +1 -1
- package/dist/components/NumberInput/NumberInput.vue.d.ts +27 -20
- package/dist/components/NumberInput/NumberInput.vue.d.ts.map +1 -1
- package/dist/components/Panel/Panel.vue.d.ts +1 -1
- package/dist/components/PasswordInput/PasswordInput.vue.d.ts +9 -3
- package/dist/components/PasswordInput/PasswordInput.vue.d.ts.map +1 -1
- package/dist/components/Popover/Popover.vue.d.ts +1 -1
- package/dist/components/Progress/Progress.vue.d.ts +14 -0
- package/dist/components/Progress/Progress.vue.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroup.vue.d.ts +32 -26
- package/dist/components/RadioGroup/RadioGroup.vue.d.ts.map +1 -1
- package/dist/components/RadioGroup/RadioGroupItem.vue.d.ts +2 -1
- package/dist/components/RadioGroup/RadioGroupItem.vue.d.ts.map +1 -1
- package/dist/components/RadioGroup/context.d.ts +4 -0
- package/dist/components/RadioGroup/context.d.ts.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts +31 -22
- package/dist/components/SegmentedControl/SegmentedControl.vue.d.ts.map +1 -1
- package/dist/components/Select/Select.vue.d.ts +21 -7
- package/dist/components/Select/Select.vue.d.ts.map +1 -1
- package/dist/components/Stepper/Stepper.vue.d.ts +2 -0
- package/dist/components/Stepper/Stepper.vue.d.ts.map +1 -1
- package/dist/components/Tabs/Tabs.vue.d.ts +6 -3
- package/dist/components/Tabs/Tabs.vue.d.ts.map +1 -1
- package/dist/components/Tabs/TabsTrigger.vue.d.ts +6 -0
- package/dist/components/Tabs/TabsTrigger.vue.d.ts.map +1 -1
- package/dist/components/Tabs/context.d.ts +4 -0
- package/dist/components/Tabs/context.d.ts.map +1 -0
- package/dist/components/Textarea/Textarea.vue.d.ts +3 -1
- package/dist/components/Textarea/Textarea.vue.d.ts.map +1 -1
- package/dist/components/Wizard/Wizard.vue.d.ts +10 -2
- package/dist/components/Wizard/Wizard.vue.d.ts.map +1 -1
- package/dist/composables/index.d.ts +1 -1
- package/dist/composables/index.d.ts.map +1 -1
- package/dist/composables/media.d.ts +8 -1
- package/dist/composables/media.d.ts.map +1 -1
- package/dist/data-table.js +4 -4
- package/dist/editor.js +1 -1
- package/dist/form.js +2 -2
- package/dist/index.d.ts +6 -3
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2751 -2649
- package/dist/pdf.js +3 -3
- package/dist/sources/Code.css +2 -0
- package/dist/utils/text-field.d.ts +16 -0
- package/dist/utils/text-field.d.ts.map +1 -0
- package/llms-full.txt +117 -27
- package/llms.txt +6 -4
- package/package.json +3 -3
- package/dist/ContextMenu-BEOEyUa6.js +0 -2235
- package/dist/Input-Cn5q0yVE.js +0 -181
- package/dist/Tree-fd9LXqgZ.js +0 -792
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { numberInput as numberInputRecipe, type RecipeClasses, type Size } from '@wirecore/wirelayer-recipes';
|
|
2
|
-
|
|
2
|
+
/** What an emptied field becomes when it is left: `min` (or 0) or the last valid number */
|
|
3
|
+
export type NumberInputEmptyFallback = 'min' | 'previous';
|
|
4
|
+
/** `F`: the type of `emptyFallback` (with it v-model only gets numbers, never null) */
|
|
5
|
+
export interface NumberInputProps<F extends NumberInputEmptyFallback | undefined = undefined> {
|
|
3
6
|
/** Number or null (empty) – use with v-model */
|
|
4
7
|
modelValue?: number | null;
|
|
5
8
|
defaultValue?: number | null;
|
|
@@ -36,6 +39,11 @@ export interface NumberInputProps {
|
|
|
36
39
|
* range, `none` keeps it (mark it invalid yourself)
|
|
37
40
|
*/
|
|
38
41
|
clampBehavior?: 'blur' | 'strict' | 'none';
|
|
42
|
+
/**
|
|
43
|
+
* A number is always set: an emptied field falls back to `min` (or 0) or to the last valid number (`previous`)
|
|
44
|
+
* when it is left or Enter is pressed – v-model then only gets numbers (typed `number`, not `number | null`)
|
|
45
|
+
*/
|
|
46
|
+
emptyFallback?: F;
|
|
39
47
|
/** Selects the whole number when the field gets the focus */
|
|
40
48
|
selectOnFocus?: boolean;
|
|
41
49
|
/** Shows a spinner in the field and marks it busy (aria-busy) */
|
|
@@ -49,25 +57,24 @@ export interface NumberInputProps {
|
|
|
49
57
|
/** Extra classes per part of the component, e.g. { base: "…" } (see the recipe) */
|
|
50
58
|
classes?: RecipeClasses<typeof numberInputRecipe>;
|
|
51
59
|
}
|
|
52
|
-
declare const __VLS_export:
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
formatOptions: Intl.NumberFormatOptions;
|
|
66
|
-
stepperLayout: "inline" | "stacked";
|
|
67
|
-
allowNegative: boolean;
|
|
68
|
-
allowDecimal: boolean;
|
|
69
|
-
clampBehavior: "blur" | "none" | "strict";
|
|
70
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
60
|
+
declare const __VLS_export: <F extends "min" | "previous" | undefined = undefined>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
61
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<NumberInputProps<F> & {
|
|
62
|
+
"onUpdate:modelValue"?: ((value: F extends string ? number : number | null) => any) | undefined;
|
|
63
|
+
}> & (typeof globalThis extends {
|
|
64
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
65
|
+
} ? P : {});
|
|
66
|
+
expose: (exposed: import("vue").ShallowUnwrapRef<import("../../index.js").TextFieldHandle<HTMLInputElement>>) => void;
|
|
67
|
+
attrs: any;
|
|
68
|
+
slots: {};
|
|
69
|
+
emit: (evt: "update:modelValue", value: F extends string ? number : number | null) => void;
|
|
70
|
+
}>) => import("vue").VNode & {
|
|
71
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
72
|
+
};
|
|
71
73
|
declare const _default: typeof __VLS_export;
|
|
72
74
|
export default _default;
|
|
75
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
76
|
+
[K in keyof T]: T[K];
|
|
77
|
+
} : {
|
|
78
|
+
[K in keyof T as K]: T[K];
|
|
79
|
+
}) & {};
|
|
73
80
|
//# sourceMappingURL=NumberInput.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NumberInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/NumberInput/NumberInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"NumberInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/NumberInput/NumberInput.vue"],"names":[],"mappings":"AAgSA,OAAO,EAIH,WAAW,IAAI,iBAAiB,EAKhC,KAAK,aAAa,EAClB,KAAK,IAAI,EACZ,MAAM,6BAA6B,CAAC;AASrC,2FAA2F;AAC3F,MAAM,MAAM,wBAAwB,GAAG,KAAK,GAAG,UAAU,CAAC;AAE1D,uFAAuF;AACvF,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,wBAAwB,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AAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -21,8 +21,8 @@ declare const __VLS_base: import("vue").DefineComponent<PanelProps, {}, {}, {},
|
|
|
21
21
|
}, string, import("vue").PublicProps, Readonly<PanelProps> & Readonly<{
|
|
22
22
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
23
23
|
}>, {
|
|
24
|
-
defaultOpen: boolean;
|
|
25
24
|
open: boolean;
|
|
25
|
+
defaultOpen: boolean;
|
|
26
26
|
headingLevel: 2 | 3 | 4;
|
|
27
27
|
toggleable: boolean;
|
|
28
28
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -12,7 +12,11 @@ export interface PasswordInputProps {
|
|
|
12
12
|
defaultVisible?: boolean;
|
|
13
13
|
/** Whether the password is shown in plain text – use with v-model:visible */
|
|
14
14
|
visible?: boolean;
|
|
15
|
-
|
|
15
|
+
/**
|
|
16
|
+
* `current-password` (default) or `new-password` for the browser's password manager; `off` or `one-time-code` for
|
|
17
|
+
* secrets it should not offer to save (tokens, passphrases, master passwords, one-time codes)
|
|
18
|
+
*/
|
|
19
|
+
autocomplete?: 'current-password' | 'new-password' | 'off' | 'one-time-code';
|
|
16
20
|
/** Strength meter below the field – for choosing a new password */
|
|
17
21
|
strength?: boolean;
|
|
18
22
|
/**
|
|
@@ -30,6 +34,8 @@ export interface PasswordInputProps {
|
|
|
30
34
|
defaultValue?: string;
|
|
31
35
|
/** Id of the input, e.g. for a `<label for>` */
|
|
32
36
|
id?: string;
|
|
37
|
+
/** Monospace font of the theme (JetBrains Mono) – for tokens, passphrases and keys */
|
|
38
|
+
mono?: boolean;
|
|
33
39
|
/** Extra classes per part of the component, e.g. { base: "…" } (see the recipe) */
|
|
34
40
|
classes?: RecipeClasses<typeof passwordInputRecipe>;
|
|
35
41
|
}
|
|
@@ -38,7 +44,7 @@ type __VLS_ModelProps = {
|
|
|
38
44
|
modelValue?: string;
|
|
39
45
|
};
|
|
40
46
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
41
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps,
|
|
47
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, import("../../index.js").TextFieldHandle<HTMLInputElement>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
42
48
|
"update:modelValue": (value: string | undefined) => any;
|
|
43
49
|
"update:visible": (visible: boolean) => any;
|
|
44
50
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
@@ -47,7 +53,7 @@ declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {},
|
|
|
47
53
|
}>, {
|
|
48
54
|
success: boolean;
|
|
49
55
|
disabled: boolean;
|
|
50
|
-
autocomplete: "current-password" | "new-password";
|
|
56
|
+
autocomplete: "off" | "current-password" | "new-password" | "one-time-code";
|
|
51
57
|
required: boolean;
|
|
52
58
|
invalid: boolean;
|
|
53
59
|
readOnly: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PasswordInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/PasswordInput/PasswordInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PasswordInput.vue.d.ts","sourceRoot":"","sources":["../../../src/components/PasswordInput/PasswordInput.vue"],"names":[],"mappings":"AA4NA,OAAO,EAGH,aAAa,IAAI,mBAAmB,EAGpC,KAAK,mBAAmB,EACxB,KAAK,aAAa,EAClB,KAAK,IAAI,EACZ,MAAM,6BAA6B,CAAC;AAYrC,MAAM,WAAW,kBAAkB;IAC/B,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gGAAgG;IAChG,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,gDAAgD;IAChD,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,6EAA6E;IAC7E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,YAAY,CAAC,EAAE,kBAAkB,GAAG,cAAc,GAAG,KAAK,GAAG,eAAe,CAAC;IAC7E,mEAAmE;IACnE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,SAAS,mBAAmB,EAAE,CAAC;IAC9C,iEAAiE;IACjE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,iEAAiE;IACjE,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kEAAkE;IAClE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,oCAAoC;IACpC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,gDAAgD;IAChD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,sFAAsF;IACtF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,mFAAmF;IACnF,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,mBAAmB,CAAC,CAAC;CACvD;AAGD,KAAK,WAAW,GAAG,kBAAkB,CAAC;AAkEtC,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAmBF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AA+QxD,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;6EAKhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -27,8 +27,8 @@ declare const __VLS_base: import("vue").DefineComponent<PopoverProps, OverlayHan
|
|
|
27
27
|
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
28
28
|
}>, {
|
|
29
29
|
anchor: OverlayAnchor | null;
|
|
30
|
-
defaultOpen: boolean;
|
|
31
30
|
open: boolean;
|
|
31
|
+
defaultOpen: boolean;
|
|
32
32
|
placement: PopoverPlacement;
|
|
33
33
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
34
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
@@ -26,6 +26,20 @@ export interface ProgressProps {
|
|
|
26
26
|
animated?: boolean;
|
|
27
27
|
/** Vertical bar (fills the height of its parent) */
|
|
28
28
|
orientation?: 'horizontal' | 'vertical';
|
|
29
|
+
/** `xs`: a thin bar with small text, e.g. in a list or a status bar */
|
|
30
|
+
size?: 'xs' | 'md';
|
|
31
|
+
/**
|
|
32
|
+
* Colour of the filled part by its state, e.g. `danger` for a failed transfer, `neutral` (grey) for a cancelled
|
|
33
|
+
* one
|
|
34
|
+
*/
|
|
35
|
+
status?: 'info' | 'success' | 'warn' | 'danger' | 'neutral';
|
|
36
|
+
/** The label only for screen readers – it still names the progress bar */
|
|
37
|
+
hideLabel?: boolean;
|
|
38
|
+
/**
|
|
39
|
+
* Short text in the bar, e.g. "42 %", "waiting" or "failed" (a taller bar; horizontal, without segments or steps)
|
|
40
|
+
* – screen readers get it after the value
|
|
41
|
+
*/
|
|
42
|
+
barText?: string;
|
|
29
43
|
/** Extra classes per part of the component, e.g. { base: "…" } (see the recipe) */
|
|
30
44
|
classes?: RecipeClasses<typeof progressRecipe>;
|
|
31
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Progress.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Progress/Progress.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Progress.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Progress/Progress.vue"],"names":[],"mappings":"AAiJA,OAAO,EAAE,KAAK,UAAU,EAAE,QAAQ,IAAI,cAAc,EAAE,KAAK,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAI9G,MAAM,WAAW,eAAe;IAC5B,KAAK,EAAE,MAA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Classes } from '@wirecore/wirelayer-recipes';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
/**
|
|
3
|
+
* `V`: the type of the values – a union like `'ssh' | 'sftp'` or numbers (default string); `R`: whether `required` is
|
|
4
|
+
* set (then v-model only gets values, never null)
|
|
5
|
+
*/
|
|
6
|
+
export interface RadioGroupProps<V extends string | number = string, R extends boolean = false> {
|
|
7
|
+
/** Selected value – use with v-model; numbers when the items have number values */
|
|
8
|
+
modelValue?: V | null;
|
|
9
|
+
defaultValue?: V | null;
|
|
6
10
|
/** Visible group label (otherwise pass aria-label – or place the group in a Field with a label) */
|
|
7
11
|
label?: string;
|
|
8
12
|
orientation?: RadioGroupOrientation;
|
|
@@ -10,33 +14,35 @@ export interface RadioGroupProps {
|
|
|
10
14
|
columns?: number;
|
|
11
15
|
disabled?: boolean;
|
|
12
16
|
invalid?: boolean;
|
|
13
|
-
|
|
17
|
+
/**
|
|
18
|
+
* A choice is required (aria-required). v-model then only gets values (typed `V`, not `V | null`): a form reset
|
|
19
|
+
* back to an empty start is not passed on
|
|
20
|
+
*/
|
|
21
|
+
required?: R & boolean;
|
|
14
22
|
name?: string;
|
|
15
23
|
/** Extra classes per part of the component, e.g. { base: "…" } (see the recipe) */
|
|
16
24
|
classes?: RecipeClasses<typeof radioGroupRecipe>;
|
|
17
25
|
}
|
|
18
|
-
declare
|
|
19
|
-
|
|
20
|
-
|
|
26
|
+
declare const __VLS_export: <V extends string | number = string, R extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
27
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<RadioGroupProps<V, R> & {
|
|
28
|
+
"onUpdate:modelValue"?: ((value: R extends true ? V : V | null) => any) | undefined;
|
|
29
|
+
}> & (typeof globalThis extends {
|
|
30
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
31
|
+
} ? P : {});
|
|
32
|
+
expose: (exposed: {}) => void;
|
|
33
|
+
attrs: any;
|
|
34
|
+
slots: {
|
|
35
|
+
default?: (props: {}) => any;
|
|
36
|
+
};
|
|
37
|
+
emit: (evt: "update:modelValue", value: R extends true ? V : V | null) => void;
|
|
38
|
+
}>) => import("vue").VNode & {
|
|
39
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
21
40
|
};
|
|
22
|
-
declare const __VLS_base: import("vue").DefineComponent<RadioGroupProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
23
|
-
"update:modelValue": (value: string | null) => any;
|
|
24
|
-
}, string, import("vue").PublicProps, Readonly<RadioGroupProps> & Readonly<{
|
|
25
|
-
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
26
|
-
}>, {
|
|
27
|
-
orientation: RadioGroupOrientation;
|
|
28
|
-
modelValue: string | null;
|
|
29
|
-
disabled: boolean;
|
|
30
|
-
required: boolean;
|
|
31
|
-
invalid: boolean;
|
|
32
|
-
defaultValue: string | null;
|
|
33
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
34
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
35
41
|
declare const _default: typeof __VLS_export;
|
|
36
42
|
export default _default;
|
|
37
|
-
type
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
};
|
|
43
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
44
|
+
[K in keyof T]: T[K];
|
|
45
|
+
} : {
|
|
46
|
+
[K in keyof T as K]: T[K];
|
|
47
|
+
}) & {};
|
|
42
48
|
//# sourceMappingURL=RadioGroup.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RadioGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroup.vue"],"names":[],"mappings":"AAqGA,OAAO,EACH,UAAU,IAAI,gBAAgB,EAC9B,KAAK,qBAAqB,EAC1B,KAAK,aAAa,EACrB,MAAM,6BAA6B,CAAC;AAOrC;;;GAGG;AACH,MAAM,WAAW,eAAe,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC,SAAS,OAAO,GAAG,KAAK;IAC1F,mFAAmF;IACnF,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IACxB,mGAAmG;IACnG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC,2FAA2F;IAC3F,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mFAAmF;IACnF,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,gBAAgB,CAAC,CAAC;CACpD;AAGD,QAAA,MAAM,YAAY,GAAK,CAAC,SAAS,MAAM,GAAG,MAAM,GAAG,MAAM,EAAE,CAAC,SAAS,OAAO,GAAG,KAAK,EACnF,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,gBAAgB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClE;WA8HO,OAAO,KAAK,EAAE,WAAW,GAAG,mBAAmB,CAAC;;KAAmC,CAAC,GAAG,CAAC,OAAO,UAAU,SAAS;QAAE,oBAAoB,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,EAAE,CAAC;YAC5J,CAAC,OAAO,EAAE,EAAE,KAAK,IAAI;WACtB,GAAG;;kBANG,CAAC,KAAK,IAAiB,KAAK,GAAG;;;EAUzC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAA;CAAI,CAAC;wBACpE,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { radioGroup as radioGroupRecipe, type RecipeClasses } from '@wirecore/wirelayer-recipes';
|
|
2
2
|
export interface RadioGroupItemProps {
|
|
3
|
-
|
|
3
|
+
/** Value of the option – a number makes the group's v-model a number */
|
|
4
|
+
value: string | number;
|
|
4
5
|
disabled?: boolean;
|
|
5
6
|
/** Extra classes per part of the component, e.g. { base: "…" } (see the recipe) */
|
|
6
7
|
classes?: RecipeClasses<typeof radioGroupRecipe>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RadioGroupItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroupItem.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"RadioGroupItem.vue.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/RadioGroupItem.vue"],"names":[],"mappings":"AA4CA,OAAO,EAAE,UAAU,IAAI,gBAAgB,EAAE,KAAK,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAKjG,MAAM,WAAW,mBAAmB;IAChC,wEAAwE;IACxE,KAAK,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mFAAmF;IACnF,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,gBAAgB,CAAC,CAAC;CACpD;AA+ED,QAAA,IAAI,QAAQ,IAAY,CAAC;AACzB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAGhD,QAAA,MAAM,UAAU;;6EAGd,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { InjectionKey } from 'vue';
|
|
2
|
+
/** Provided by RadioGroup: the values of its items by their text – number values come back as numbers */
|
|
3
|
+
export declare const radioGroupValuesKey: InjectionKey<Map<string, string | number>>;
|
|
4
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/RadioGroup/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AAExC,yGAAyG;AACzG,eAAO,MAAM,mBAAmB,EAAE,YAAY,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,CAA8B,CAAC"}
|
|
@@ -1,36 +1,45 @@
|
|
|
1
1
|
import { type RecipeClasses, segmentedControl as segmentedControlRecipe, type SegmentedControlSize } from '@wirecore/wirelayer-recipes';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* `V`: the type of the values, e.g. a union like `'ssh' | 'sftp'` (default string); `R`: whether `required` is set
|
|
4
|
+
* (then v-model only gets values, never null)
|
|
5
|
+
*/
|
|
6
|
+
export interface SegmentedControlProps<V extends string = string, R extends boolean = false> {
|
|
3
7
|
/** Selected value – use with v-model */
|
|
4
|
-
modelValue?:
|
|
5
|
-
defaultValue?:
|
|
8
|
+
modelValue?: V | null;
|
|
9
|
+
defaultValue?: V;
|
|
6
10
|
/** Accessible name of the group (visually hidden) – inside a Field with a label, the Field's label names it */
|
|
7
11
|
label?: string;
|
|
8
12
|
size?: SegmentedControlSize;
|
|
9
13
|
disabled?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* A value is required (aria-required). v-model then only gets values (typed `V`, not `V | null`): a form reset
|
|
16
|
+
* back to an empty start is not passed on
|
|
17
|
+
*/
|
|
18
|
+
required?: R & boolean;
|
|
10
19
|
name?: string;
|
|
11
20
|
/** Extra classes per part of the component, e.g. { base: "…" } (see the recipe) */
|
|
12
21
|
classes?: RecipeClasses<typeof segmentedControlRecipe>;
|
|
13
22
|
}
|
|
14
|
-
declare
|
|
15
|
-
|
|
16
|
-
|
|
23
|
+
declare const __VLS_export: <V extends string = string, R extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
24
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<SegmentedControlProps<V, R> & {
|
|
25
|
+
"onUpdate:modelValue"?: ((value: R extends true ? V : V | null) => any) | undefined;
|
|
26
|
+
}> & (typeof globalThis extends {
|
|
27
|
+
__VLS_PROPS_FALLBACK: infer P;
|
|
28
|
+
} ? P : {});
|
|
29
|
+
expose: (exposed: {}) => void;
|
|
30
|
+
attrs: any;
|
|
31
|
+
slots: {
|
|
32
|
+
default?: (props: {}) => any;
|
|
33
|
+
};
|
|
34
|
+
emit: (evt: "update:modelValue", value: R extends true ? V : V | null) => void;
|
|
35
|
+
}>) => import("vue").VNode & {
|
|
36
|
+
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
17
37
|
};
|
|
18
|
-
declare const __VLS_base: import("vue").DefineComponent<SegmentedControlProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
19
|
-
"update:modelValue": (value: string | null) => any;
|
|
20
|
-
}, string, import("vue").PublicProps, Readonly<SegmentedControlProps> & Readonly<{
|
|
21
|
-
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
22
|
-
}>, {
|
|
23
|
-
size: SegmentedControlSize;
|
|
24
|
-
modelValue: string | null;
|
|
25
|
-
disabled: boolean;
|
|
26
|
-
defaultValue: string;
|
|
27
|
-
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
28
|
-
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
29
38
|
declare const _default: typeof __VLS_export;
|
|
30
39
|
export default _default;
|
|
31
|
-
type
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
};
|
|
40
|
+
type __VLS_PrettifyLocal<T> = (T extends any ? {
|
|
41
|
+
[K in keyof T]: T[K];
|
|
42
|
+
} : {
|
|
43
|
+
[K in keyof T as K]: T[K];
|
|
44
|
+
}) & {};
|
|
36
45
|
//# sourceMappingURL=SegmentedControl.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentedControl.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SegmentedControl/SegmentedControl.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SegmentedControl.vue.d.ts","sourceRoot":"","sources":["../../../src/components/SegmentedControl/SegmentedControl.vue"],"names":[],"mappings":"AAoGA,OAAO,EACH,KAAK,aAAa,EAClB,gBAAgB,IAAI,sBAAsB,EAC1C,KAAK,oBAAoB,EAE5B,MAAM,6BAA6B,CAAC;AAOrC;;;GAGG;AACH,MAAM,WAAW,qBAAqB,CAAC,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,CAAC,SAAS,OAAO,GAAG,KAAK;IACvF,wCAAwC;IACxC,UAAU,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC;IACtB,YAAY,CAAC,EAAE,CAAC,CAAC;IACjB,+GAA+G;IAC/G,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,oBAAoB,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC;IACvB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mFAAmF;IACnF,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,sBAAsB,CAAC,CAAC;CAC1D;AAGD,QAAA,MAAM,YAAY,GAAK,CAAC,SAAS,MAAM,GAAG,MAAM,EAAE,CAAC,SAAS,OAAO,GAAG,KAAK,EAC1E,aAAa,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,EAC9D,YAAY,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,EAC3G,gBAAgB,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC,EAClE;WA8HO,OAAO,KAAK,EAAE,WAAW,GAAG,mBAAmB,CAAC;;KAAmC,CAAC,GAAG,CAAC,OAAO,UAAU,SAAS;QAAE,oBAAoB,EAAE,MAAM,CAAC,CAAA;KAAE,GAAG,CAAC,GAAG,EAAE,CAAC;YAC5J,CAAC,OAAO,EAAE,EAAE,KAAK,IAAI;WACtB,GAAG;;kBANG,CAAC,KAAK,IAAiB,KAAK,GAAG;;;EAUzC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAA;CAAI,CAAC;wBACpE,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
import { type DataSource, type ItemAccessor, type ItemValueOf, type RecipeClasses, select as selectRecipe } from '@wirecore/wirelayer-recipes';
|
|
2
2
|
import type { ListItemState, SelectItem, SelectSize } from './types.js';
|
|
3
|
-
|
|
3
|
+
/** `T`: the items, `V`: their values, `E`: the type of `emptyValue` (default null) */
|
|
4
|
+
export interface SelectProps<T = SelectItem, V = ItemValueOf<T>, E = null> {
|
|
4
5
|
/** Options: SelectItem objects – or any objects or values, read with itemValue/itemLabel/itemDisabled/itemGroup */
|
|
5
6
|
items: readonly T[];
|
|
6
7
|
/** Selected value – use with v-model; any type (string, number, boolean, object) */
|
|
7
|
-
modelValue?: V | null;
|
|
8
|
-
defaultValue?: V | null;
|
|
8
|
+
modelValue?: V | NoInfer<E> | null;
|
|
9
|
+
defaultValue?: V | NoInfer<E> | null;
|
|
10
|
+
/**
|
|
11
|
+
* The value that means "nothing chosen" instead of null, e.g. `""`: it shows the placeholder, and clearing gives it
|
|
12
|
+
* back (v-model is then typed `V | E`, without null)
|
|
13
|
+
*/
|
|
14
|
+
emptyValue?: E;
|
|
9
15
|
placeholder?: string;
|
|
10
16
|
disabled?: boolean;
|
|
11
17
|
invalid?: boolean;
|
|
@@ -53,14 +59,22 @@ export interface SelectProps<T = SelectItem, V = ItemValueOf<T>> {
|
|
|
53
59
|
pageSize?: number;
|
|
54
60
|
/** Not labelled by a surrounding Field – for a second control inside it (e.g. PhoneInput's country) */
|
|
55
61
|
standalone?: boolean;
|
|
62
|
+
/** Whether the list is open – use with v-model:open, or listen to update:open */
|
|
63
|
+
open?: boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Keeps the keys the list handles itself (Enter choosing or opening, Escape closing, Tab leaving) from bubbling
|
|
66
|
+
* up – e.g. in a dialog with window shortcuts for Enter (save) and Escape (cancel)
|
|
67
|
+
*/
|
|
68
|
+
stopKeyPropagation?: boolean;
|
|
56
69
|
/** Id of the field (the trigger), e.g. for a `<label for>` */
|
|
57
70
|
id?: string;
|
|
58
71
|
/** Extra classes per part of the component, e.g. { base: "…" } (see the recipe) */
|
|
59
72
|
classes?: RecipeClasses<typeof selectRecipe>;
|
|
60
73
|
}
|
|
61
|
-
declare const __VLS_export: <T = SelectItem, V = ItemValueOf<T
|
|
62
|
-
props: import("vue").PublicProps & __VLS_PrettifyLocal<SelectProps<T, V> & {
|
|
63
|
-
"onUpdate:modelValue"?: ((value: V |
|
|
74
|
+
declare const __VLS_export: <T = SelectItem, V = ItemValueOf<T>, E = null>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
|
|
75
|
+
props: import("vue").PublicProps & __VLS_PrettifyLocal<SelectProps<T, V, E> & {
|
|
76
|
+
"onUpdate:modelValue"?: ((value: V | NoInfer<E>) => any) | undefined;
|
|
77
|
+
"onUpdate:open"?: ((open: boolean) => any) | undefined;
|
|
64
78
|
onLoadMore?: (() => any) | undefined;
|
|
65
79
|
onFilterChange?: ((text: string) => any) | undefined;
|
|
66
80
|
}> & (typeof globalThis extends {
|
|
@@ -78,7 +92,7 @@ declare const __VLS_export: <T = SelectItem, V = ItemValueOf<T>>(__VLS_props: No
|
|
|
78
92
|
item: T;
|
|
79
93
|
}): unknown;
|
|
80
94
|
};
|
|
81
|
-
emit: ((evt: "update:modelValue", value: V |
|
|
95
|
+
emit: ((evt: "update:modelValue", value: V | NoInfer<E>) => void) & ((evt: "update:open", open: boolean) => void) & ((evt: "loadMore") => void) & ((evt: "filterChange", text: string) => void);
|
|
82
96
|
}>) => import("vue").VNode & {
|
|
83
97
|
__ctx?: NonNullable<Awaited<typeof __VLS_setup>>;
|
|
84
98
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Select.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Select.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/Select.vue"],"names":[],"mappings":"AAuYA,OAAO,EAEH,KAAK,UAAU,EACf,KAAK,YAAY,EACjB,KAAK,WAAW,EAEhB,KAAK,aAAa,EAClB,MAAM,IAAI,YAAY,EACzB,MAAM,6BAA6B,CAAC;AAQrC,OAAO,KAAK,EAAE,aAAa,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAExE,sFAAsF;AACtF,MAAM,WAAW,WAAW,CAAC,CAAC,GAAG,UAAU,EAAE,CAAC,GAAG,WAAW,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI;IACrE,mHAAmH;IACnH,KAAK,EAAE,SAAS,CAAC,EAAE,CAAC;IACpB,oFAAoF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B,GAAG;;QAplBP,uDAAuD;qBAC1C;YAAE,IAAI,EAAE,CAAC,CAAA;SAAE,GAAG,aAAa,GAAG,OAAO;QAClD,iDAAiD;sBACnC;YAAE,IAAI,EAAE,CAAC,CAAA;SAAE,GAAG,OAAO;;;EAqlBnC,KACQ,OAAO,KAAK,EAAE,KAAK,GAAG;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAA;CAAI,CAAC;wBACpE,OAAO,YAAY;AAAxC,wBAAyC;AACzC,KAAK,mBAAmB,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG;KAAG,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,CAAC,GAAG,EAAE,CAAC"}
|
|
@@ -18,6 +18,8 @@ export interface StepperProps {
|
|
|
18
18
|
orientation?: 'horizontal' | 'vertical';
|
|
19
19
|
/** Label beside the number (default) or below it */
|
|
20
20
|
labelPlacement?: 'end' | 'bottom';
|
|
21
|
+
/** Text of the last "Next" button, e.g. "Create" (default "Finish") */
|
|
22
|
+
finishLabel?: string;
|
|
21
23
|
/** Extra classes per part of the component, e.g. { base: "…" } (see the recipe) */
|
|
22
24
|
classes?: RecipeClasses<typeof stepperRecipe>;
|
|
23
25
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Stepper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Stepper.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Stepper/Stepper.vue"],"names":[],"mappings":"AAyHA,OAAO,EAAE,KAAK,aAAa,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAS3F,MAAM,WAAW,WAAW;IACxB,KAA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sProps {
|
|
3
|
-
/**
|
|
4
|
-
|
|
3
|
+
/**
|
|
4
|
+
* Selected tab – use with v-model; `null`: no tab selected (e.g. tabs of panels that live elsewhere – the first
|
|
5
|
+
* tab stays reachable with Tab)
|
|
6
|
+
*/
|
|
7
|
+
modelValue?: string | null;
|
|
5
8
|
defaultValue?: string;
|
|
6
9
|
/** Accessible name of the tab list */
|
|
7
10
|
label?: string;
|
|
@@ -26,7 +29,7 @@ declare const __VLS_base: import("vue").DefineComponent<TabsProps, {}, {}, {}, {
|
|
|
26
29
|
"onUpdate:modelValue"?: ((value: string | null) => any) | undefined;
|
|
27
30
|
}>, {
|
|
28
31
|
orientation: "horizontal" | "vertical";
|
|
29
|
-
modelValue: string;
|
|
32
|
+
modelValue: string | null;
|
|
30
33
|
lazyMount: boolean;
|
|
31
34
|
unmountOnExit: boolean;
|
|
32
35
|
defaultValue: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tabs.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Tabs.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/Tabs.vue"],"names":[],"mappings":"AAoEA,OAAO,EAAE,KAAK,aAAa,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAKrF,MAAM,WAAW,SAAS;IACtB;;;OAGG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,sCAAsC;IACtC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,oDAAoD;IACpD,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,6GAA6G;IAC7G,cAAc,CAAC,EAAE,WAAW,GAAG,QAAQ,CAAC;IACxC,qDAAqD;IACrD,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,iDAAiD;IACjD,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,mFAAmF;IACnF,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,UAAU,CAAC,CAAC;CAC9C;AAyFD,QAAA,IAAI,OAAO,IAAW,CAAC;AACvB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAG/C,QAAA,MAAM,UAAU;;;;;;;;;;;6EAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -10,6 +10,11 @@ export interface TabsTriggerProps {
|
|
|
10
10
|
* another one) yourself. The focus moves to the neighbouring tab
|
|
11
11
|
*/
|
|
12
12
|
closable?: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Id of the element the tab shows, when it is not a TabsContent of these Tabs (e.g. a pane elsewhere shown with
|
|
15
|
+
* v-show) – `null`: none (tabs without panels)
|
|
16
|
+
*/
|
|
17
|
+
controls?: string | null;
|
|
13
18
|
/** Extra classes per part of the component, e.g. { base: "…" } (see the recipe) */
|
|
14
19
|
classes?: RecipeClasses<typeof tabsRecipe>;
|
|
15
20
|
}
|
|
@@ -26,6 +31,7 @@ declare const __VLS_base: import("vue").DefineComponent<TabsTriggerProps, {}, {}
|
|
|
26
31
|
}>, {
|
|
27
32
|
disabled: boolean;
|
|
28
33
|
closable: boolean;
|
|
34
|
+
controls: string | null;
|
|
29
35
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
30
36
|
declare const __VLS_export: __VLS_WithSlots<typeof __VLS_base, __VLS_Slots>;
|
|
31
37
|
declare const _default: typeof __VLS_export;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TabsTrigger.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/TabsTrigger.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TabsTrigger.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/TabsTrigger.vue"],"names":[],"mappings":"AAqHA,OAAO,EAAY,KAAK,aAAa,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAC/F,OAAO,EASH,KAAK,SAAS,EACjB,MAAM,KAAK,CAAC;AAIb,MAAM,WAAW,gBAAgB;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;;OAGG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACzB,mFAAmF;IACnF,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,UAAU,CAAC,CAAC;CAC9C;AAkKD,QAAA,IAAI,QAAQ,IAAY,EAAE,QAAQ,IAAY,CAAC;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,GAC7C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAGhD,QAAA,MAAM,UAAU;;;;;;;;6EAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO,UAAU,EAAE,WAAW,CAAC,CAAC;wBACtD,OAAO,YAAY;AAAxC,wBAAyC;AAWzC,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KACV,CAAA;CACD,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ComputedRef, InjectionKey } from 'vue';
|
|
2
|
+
/** The Tabs' value is null on purpose (no tab selected): the first tab stays reachable with Tab */
|
|
3
|
+
export declare const tabsNoneSelectedKey: InjectionKey<ComputedRef<boolean>>;
|
|
4
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../src/components/Tabs/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,KAAK,CAAC;AAErD,mGAAmG;AACnG,eAAO,MAAM,mBAAmB,EAAE,YAAY,CAAC,WAAW,CAAC,OAAO,CAAC,CAAyC,CAAC"}
|
|
@@ -26,6 +26,8 @@ export interface TextareaProps {
|
|
|
26
26
|
clearable?: boolean;
|
|
27
27
|
/** Accessible name of the clear button (default "Clear input") */
|
|
28
28
|
clearLabel?: string;
|
|
29
|
+
/** Monospace font of the theme (JetBrains Mono) – for keys, codes and logs */
|
|
30
|
+
mono?: boolean;
|
|
29
31
|
/** Extra classes per part of the component, e.g. { base: "…" } (see the recipes textarea and textareaParts) */
|
|
30
32
|
classes?: RecipeClasses<typeof textareaRecipe> & RecipeClasses<typeof textareaPartsRecipe>;
|
|
31
33
|
}
|
|
@@ -34,7 +36,7 @@ type __VLS_ModelProps = {
|
|
|
34
36
|
modelValue?: string;
|
|
35
37
|
};
|
|
36
38
|
type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
|
|
37
|
-
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps,
|
|
39
|
+
declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, import("../../index.js").TextFieldHandle<HTMLTextAreaElement>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
38
40
|
"update:modelValue": (value: string | undefined) => any;
|
|
39
41
|
}, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
|
|
40
42
|
"onUpdate:modelValue"?: ((value: string | undefined) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Textarea.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Textarea.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Textarea/Textarea.vue"],"names":[],"mappings":"AA4NA,OAAO,EAEH,QAAQ,IAAI,cAAc,EAC1B,aAAa,IAAI,mBAAmB,EACpC,KAAK,aAAa,EAClB,KAAK,IAAI,EACZ,MAAM,6BAA6B,CAAC;AAmBrC,MAAM,WAAW,aAAa;IAC1B,iDAAiD;IACjD,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,IAAI,CAAC,EAAE,IAAI,CAAC;IACZ,8EAA8E;IAC9E,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gGAAgG;IAChG,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sEAAsE;IACtE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,wEAAwE;IACxE,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,+CAA+C;IAC/C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+DAA+D;IAC/D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,yEAAyE;IACzE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,8DAA8D;IAC9D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,kEAAkE;IAClE,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,8EAA8E;IAC9E,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,+GAA+G;IAC/G,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,cAAc,CAAC,GAAG,aAAa,CAAC,OAAO,mBAAmB,CAAC,CAAC;CAC9F;AAID,KAAK,WAAW,GAAG,aAAa,CAAC;AAuFjC,KAAK,gBAAgB,GAAG;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAKF,KAAK,iBAAiB,GAAG,WAAW,GAAG,gBAAgB,CAAC;AAiKxD,QAAA,MAAM,YAAY;;;;kFAIhB,CAAC;wBACkB,OAAO,YAAY;AAAxC,wBAAyC"}
|
|
@@ -4,9 +4,10 @@ export interface WizardStep {
|
|
|
4
4
|
description?: string;
|
|
5
5
|
/**
|
|
6
6
|
* Checks the step before going on ("Next"): false keeps it open (e.g. `() => validateFields(form, ['name'])`
|
|
7
|
-
* from the form subpath)
|
|
7
|
+
* from the form subpath), a text keeps it open and shows the text as the step's error (e.g. "Sign-in was
|
|
8
|
+
* cancelled"); may be async – the step shows a spinner meanwhile. Going back never checks
|
|
8
9
|
*/
|
|
9
|
-
validate?: () => boolean | Promise<boolean>;
|
|
10
|
+
validate?: () => boolean | string | Promise<boolean | string>;
|
|
10
11
|
}
|
|
11
12
|
export interface WizardProps {
|
|
12
13
|
steps: readonly WizardStep[];
|
|
@@ -17,6 +18,13 @@ export interface WizardProps {
|
|
|
17
18
|
summaryLabel?: string;
|
|
18
19
|
/** Steps listed top to bottom beside the content */
|
|
19
20
|
orientation?: 'horizontal' | 'vertical';
|
|
21
|
+
/** Text of the last button, e.g. "Create" (default "Finish") */
|
|
22
|
+
finishLabel?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Moves the focus into a new step when the step changes: to the element marked data-autoselect (text selected),
|
|
25
|
+
* data-autofocus or autofocus, otherwise to the step's first field
|
|
26
|
+
*/
|
|
27
|
+
focusOnStepChange?: boolean;
|
|
20
28
|
/** Extra classes per part of the component, e.g. { base: "…" } (see the recipe) */
|
|
21
29
|
classes?: RecipeClasses<typeof wizardRecipe>;
|
|
22
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Wizard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Wizard/Wizard.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Wizard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Wizard/Wizard.vue"],"names":[],"mappings":"AA6IA,OAAO,EAAc,MAAM,IAAI,YAAY,EAAE,KAAK,aAAa,EAAE,MAAM,6BAA6B,CAAC;AAMrG,MAAM,WAAW,UAAU;IACvB,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,MAAM,CAAC,CAAC;CACjE;AAED,MAAM,WAAW,WAAW;IACxB,KAAK,EAAE,SAAS,UAAU,EAAE,CAAC;IAC7B,6EAA6E;IAC7E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,6FAA6F;IAC7F,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,oDAAoD;IACpD,WAAW,CAAC,EAAE,YAAY,GAAG,UAAU,CAAC;IACxC,gEAAgE;IAChE,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,mFAAmF;IACnF,OAAO,CAAC,EAAE,aAAa,CAAC,OAAO,YAAY,CAAC,CAAC;CAChD;AAaD,KAAK,WAAW,GAAG;IACf,yFAAyF;IACzF,IAAI,CAAC,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,UAAU,CAAA;KAAE,GAAG,OAAO,CAAC;IAC3D,qDAAqD;IACrD,OAAO,CAAC,IAAI,OAAO,CAAC;IACpB,4BAA4B;IAC5B,SAAS,CAAC,IAAI,OAAO,CAAC;CACzB,CAAC;AAuJF,QAAA,MAAM,UAAU;;;;;;;;;;6EAId,CAAC;AACH,QAAA,MAAM,YAAY,EAAS,eAAe,CAAC,OAAO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