@pantograph/vue 0.34.3 → 0.34.5

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.
@@ -105,7 +105,7 @@ export interface AlertSlots {
105
105
  /**
106
106
  * Custom closeable content
107
107
  */
108
- closeable: (params?: object) => never;
108
+ close: (params?: object) => never;
109
109
  /**
110
110
  * Custom link content
111
111
  */
@@ -57,7 +57,9 @@ export type AlertDialogProps = Omit<DialogProps, 'noBody' | 'canFullScreen' | 'f
57
57
  * <AlertDialog :go-props="{ size: 'lg', color: 'red' }" />
58
58
  * ```
59
59
  */
60
- goProps?: GraphicalObjectProps;
60
+ goProps?: GraphicalObjectProps & {
61
+ hide?: boolean;
62
+ };
61
63
  /**
62
64
  * Visual type of the alert dialog.
63
65
  *
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Array of valid banner types
3
+ */
4
+ export declare const BannerColors: readonly ["success-subtle", "primary-subtle", "danger-subtle", "warning-subtle", "info-subtle", "neutral-subtle", "primary", "danger", "warning", "info", "success", "neutral"];
5
+ /**
6
+ * Type representing the possible banner colors
7
+ */
8
+ export type BannerColor = (typeof BannerColors)[number];
9
+ export declare const BannerPlacements: readonly ["top", "bottom"];
10
+ export type BannerPlacement = (typeof BannerPlacements)[number];
11
+ export declare const BannerPositions: readonly ["absolute", "fixed"];
12
+ export type BannerPosition = (typeof BannerPositions)[number];
@@ -6,6 +6,10 @@ import { Ref } from 'vue';
6
6
  * Props for the BaseInput component
7
7
  */
8
8
  export interface BaseInputProps {
9
+ /**
10
+ * Whether the input is read-only
11
+ */
12
+ readonly?: boolean;
9
13
  /**
10
14
  * Whether the input is disabled
11
15
  */
@@ -80,11 +84,7 @@ export interface BaseInputProps {
80
84
  * Whether the input should fit its content
81
85
  */
82
86
  contentFit?: boolean;
83
- /**
84
- * Whether to apply autofill styles to the input
85
- * @default true
86
- */
87
- autofillStyle?: boolean;
87
+ outsideFgColor?: boolean;
88
88
  }
89
89
  /**
90
90
  * Slots for the BaseInput component
@@ -116,10 +116,6 @@ export interface BaseInputSlots {
116
116
  * Clear icon slot
117
117
  */
118
118
  clearIcon?: (params?: object) => never;
119
- /**
120
- * Value slot
121
- */
122
- value?: (params?: object) => never;
123
119
  }
124
120
  /**
125
121
  * Emits for the BaseInput component
@@ -129,10 +125,7 @@ export interface BaseInputEmits {
129
125
  * Emitted when the input is cleared
130
126
  */
131
127
  clear: [];
132
- /**
133
- * Emitted when the input size changes
134
- */
135
- resize: [value: number];
128
+ pointerdown: [event: PointerEvent];
136
129
  }
137
130
  /**
138
131
  * CSS BEM block prefix for the input component
@@ -145,7 +138,7 @@ export declare const inputPrefix: string;
145
138
  */
146
139
  export declare const useInputExposes: (inputRef: Ref<HTMLInputElement | undefined>) => {
147
140
  input: Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
148
- focus: (option?: FocusOptions) => void | undefined;
141
+ focus: (option?: FocusOptions) => void;
149
142
  blur: () => void | undefined;
150
143
  select: () => void | undefined;
151
144
  setSelectionRange: (start: number, end: number, direction?: 'forward' | 'backward' | 'none') => void | undefined;
@@ -154,27 +147,21 @@ export declare const useInputExposes: (inputRef: Ref<HTMLInputElement | undefine
154
147
  * Default props for the BaseInput component
155
148
  */
156
149
  export declare const BASE_INPUT_DEFAULT_PROPS: {
150
+ readonly readonly: undefined;
157
151
  readonly disabled: undefined;
158
152
  readonly bordered: true;
159
- readonly autofillStyle: true;
160
153
  readonly clearIcon: "tabler:circle-x";
161
154
  };
162
- declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<BaseInputProps, {
163
- adjustWidth: () => void;
164
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
165
- resize: (value: number) => any;
155
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<BaseInputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
166
156
  clear: () => any;
167
157
  }, string, import('vue').PublicProps, Readonly<BaseInputProps> & Readonly<{
168
- onResize?: ((value: number) => any) | undefined;
169
158
  onClear?: (() => any) | undefined;
170
159
  }>, {
171
160
  disabled: boolean;
161
+ readonly: boolean;
172
162
  clearIcon: string;
173
163
  bordered: boolean;
174
- autofillStyle: boolean;
175
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
176
- widthRef: HTMLSpanElement;
177
- }, HTMLDivElement>, Readonly<BaseInputSlots> & BaseInputSlots>;
164
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, Readonly<BaseInputSlots> & BaseInputSlots>;
178
165
  export default _default;
179
166
  type __VLS_WithTemplateSlots<T, S> = T & {
180
167
  new (): {
@@ -7,6 +7,7 @@ export declare const COMBO_BOX_DEFAULT_PROPS: {
7
7
  readonly noValueOnPlaceholder: undefined;
8
8
  readonly multiple: undefined;
9
9
  readonly disabled: undefined;
10
+ readonly readonly: undefined;
10
11
  readonly prioritizePosition: false;
11
12
  readonly avoidCollisions: undefined;
12
13
  readonly sideOffset: 4;
@@ -94,6 +95,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
94
95
  onFetch?: (() => any) | undefined;
95
96
  }>, {
96
97
  disabled: boolean;
98
+ readonly: boolean;
97
99
  bordered: boolean;
98
100
  multiple: boolean;
99
101
  open: boolean;
@@ -1,10 +1,10 @@
1
- import { InputProps, InputSlots } from '../Input';
1
+ import { InputProps } from '../Input';
2
2
  export interface ComboboxInputProps extends InputProps {
3
3
  }
4
4
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<ComboboxInputProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ComboboxInputProps> & Readonly<{}>, {
5
5
  disabled: boolean;
6
6
  bordered: boolean;
7
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, Readonly<InputSlots> & InputSlots>;
7
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>, Readonly<import('../Input').InputExtendsSlots> & import('../Input').InputExtendsSlots>;
8
8
  export default _default;
9
9
  type __VLS_WithTemplateSlots<T, S> = T & {
10
10
  new (): {
@@ -37,5 +37,4 @@ export interface ComboboxContext {
37
37
  }
38
38
  export declare const injectComboboxContext: <T extends ComboboxContext | null | undefined = ComboboxContext>(fallback?: T | undefined) => T extends null ? ComboboxContext | null : ComboboxContext, provideComboboxContext: (contextValue: ComboboxContext) => ComboboxContext;
39
39
  export declare const comboboxPrefix: string;
40
- export declare const comboboxValuePlaceholder: string;
41
40
  export declare const comboboxOptionPrefix: string;
@@ -41,6 +41,7 @@ export interface ComboboxProps extends Partial<Pick<PopoverProps, 'placement' |
41
41
  defaultValue?: string | string[];
42
42
  multiple?: boolean;
43
43
  disabled?: boolean;
44
+ readonly?: boolean;
44
45
  highlightOnHover?: boolean;
45
46
  resetHighlightedOptionAfterSelect?: boolean;
46
47
  resetSearchTermOnBlur?: boolean;
@@ -7,6 +7,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
7
7
  onMention?: ((value: string | undefined, option?: ComboboxOptionType | undefined) => any) | undefined;
8
8
  }>, {
9
9
  disabled: boolean;
10
+ readonly: boolean;
10
11
  bordered: boolean;
11
12
  multiple: boolean;
12
13
  open: boolean;
@@ -38,6 +39,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
38
39
  readonly defaultValue?: string | string[] | undefined;
39
40
  readonly multiple?: boolean | undefined;
40
41
  readonly disabled?: boolean | undefined;
42
+ readonly readonly?: boolean | undefined;
41
43
  readonly highlightOnHover?: boolean | undefined;
42
44
  readonly resetHighlightedOptionAfterSelect?: boolean | undefined;
43
45
  readonly resetSearchTermOnBlur?: boolean | undefined;
@@ -710,6 +712,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
710
712
  fetch: () => any;
711
713
  }, string, {
712
714
  disabled: boolean;
715
+ readonly: boolean;
713
716
  bordered: boolean;
714
717
  multiple: boolean;
715
718
  open: boolean;
@@ -754,6 +757,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
754
757
  $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: import('@vue/reactivity').OnCleanup) => any : (args_0: any, args_1: any, args_2: import('@vue/reactivity').OnCleanup) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
755
758
  } & Readonly<{
756
759
  disabled: boolean;
760
+ readonly: boolean;
757
761
  bordered: boolean;
758
762
  multiple: boolean;
759
763
  open: boolean;
@@ -793,7 +797,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
793
797
  onKeydownEscape?: ((event: import('../Combobox').ComboboxKeydownEvent, search?: string | undefined, isEmpty?: boolean | undefined) => any) | undefined;
794
798
  "onUpdate:search"?: ((value?: string | null | undefined) => any) | undefined;
795
799
  onFetch?: (() => any) | undefined;
796
- }>, "props" | "placeholder" | "slots" | "emit" | "getIconSize" | "getDisabled" | "getStatus" | "getSize" | "triggerRef" | "openModel" | "model" | "getItems" | "inputRef" | "onKeyDown" | "focusOnInput" | "getOptionDataset" | ("disabled" | "bordered" | "multiple" | "open" | "defaultOpen" | "prioritizePosition" | "placement" | "sideOffset" | "avoidCollisions" | "disableOutsidePointerEvents" | "zIndex" | "checkbox" | "trailingIcon" | "selectedItemIconAsTrailingIcon" | "indicatorIcon" | "loadingRowCount" | "clearOnChangeMultiple" | "samePopupWidth" | "popupHeight" | "resetSearchTermOnBlur" | "resetSearchTermOnSelect" | "noValueOnPlaceholder" | "tagRenderMode") | "isOptionSelected" | "getOptionByValue" | "getLabelByValue" | "getSingleByValue" | "getFlattenOption" | "getTagSize" | "comboboxInputBinding" | "comboboxTriggerBinding" | "searchModel" | "valuePlaceholder" | "selectOption" | "itemMap" | "highlightedOptionKey" | "comboboxInputFocused" | "inputGroupClass"> & import('vue').ShallowUnwrapRef<{
800
+ }>, "props" | "placeholder" | "slots" | "emit" | "getIconSize" | "getDisabled" | "getStatus" | "getSize" | "triggerRef" | "openModel" | "model" | "getItems" | "inputRef" | "onKeyDown" | "focusOnInput" | "getOptionDataset" | ("disabled" | "readonly" | "bordered" | "multiple" | "open" | "defaultOpen" | "prioritizePosition" | "placement" | "sideOffset" | "avoidCollisions" | "disableOutsidePointerEvents" | "zIndex" | "checkbox" | "trailingIcon" | "selectedItemIconAsTrailingIcon" | "indicatorIcon" | "loadingRowCount" | "clearOnChangeMultiple" | "samePopupWidth" | "popupHeight" | "resetSearchTermOnBlur" | "resetSearchTermOnSelect" | "noValueOnPlaceholder" | "tagRenderMode") | "isOptionSelected" | "getOptionByValue" | "getLabelByValue" | "getSingleByValue" | "getFlattenOption" | "getTagSize" | "comboboxInputBinding" | "comboboxTriggerBinding" | "searchModel" | "valuePlaceholder" | "selectOption" | "itemMap" | "highlightedOptionKey" | "comboboxInputFocused" | "inputGroupClass"> & import('vue').ShallowUnwrapRef<{
797
801
  isOptionSelected: (value?: string | undefined) => boolean;
798
802
  getOptionByValue: (value: string) => import('../Combobox').ComboboxFlattenOptionType | undefined;
799
803
  getLabelByValue: (value: string) => string | undefined;
@@ -1,10 +1,19 @@
1
1
  import { HasRootInputEmits } from '@pantograph/utils-vue';
2
2
  import { BaseInputEmits, BaseInputProps, BaseInputSlots } from '../Base/BaseInput/BaseInput';
3
3
  /**
4
- * Props for the Input component
5
- * Extends BaseInputProps but omits hasValue since it's computed internally
4
+ * Props inherited from `BaseInput` (the "extended" part).
5
+ *
6
+ * Important:
7
+ * - When a component wants to *reuse and extend* another component's types in Vue
8
+ * macros (`defineProps<T>()`, `defineEmits<T>()`, `defineSlots<T>()`), exporting
9
+ * a split "extended" + "not-extended" pair (as `type`) is required so consumer
10
+ * components can safely compose them.
11
+ */
12
+ export type InputExtendsProps = Omit<BaseInputProps, 'hasValue'>;
13
+ /**
14
+ * Props defined by `Input` itself (the "not-extended" part).
6
15
  */
7
- export interface InputProps extends Omit<BaseInputProps, 'hasValue'> {
16
+ export type InputNotExtendsProps = {
8
17
  /**
9
18
  * The ID for the input element
10
19
  */
@@ -29,10 +38,6 @@ export interface InputProps extends Omit<BaseInputProps, 'hasValue'> {
29
38
  * Whether the input is required
30
39
  */
31
40
  required?: boolean;
32
- /**
33
- * Whether the input is read-only
34
- */
35
- readonly?: boolean;
36
41
  /**
37
42
  * Whether to fit the input width to its content
38
43
  */
@@ -45,18 +50,35 @@ export interface InputProps extends Omit<BaseInputProps, 'hasValue'> {
45
50
  * The default value for the input
46
51
  */
47
52
  defaultValue?: string | null;
48
- }
53
+ };
54
+ /**
55
+ * Props for the Input component
56
+ * Extends BaseInputProps but omits hasValue since it's computed internally.
57
+ */
58
+ export type InputProps = InputExtendsProps & InputNotExtendsProps;
59
+ /**
60
+ * Slots inherited from `BaseInput` (the "extended" part).
61
+ */
62
+ export type InputExtendsSlots = Omit<BaseInputSlots, 'default' | 'extra' | 'value'>;
63
+ /**
64
+ * Slots defined by `Input` itself (the "not-extended" part).
65
+ *
66
+ * Kept as `{}` for consistency with the split-type pattern.
67
+ */
68
+ export type InputNotExtendsSlots = {};
49
69
  /**
50
70
  * Slots for the Input component
51
71
  * Extends BaseInputSlots but omits default, extra, and value slots
52
72
  */
53
- export interface InputSlots extends Omit<BaseInputSlots, 'default' | 'extra' | 'value'> {
54
- }
73
+ export type InputSlots = InputExtendsSlots & InputNotExtendsSlots;
55
74
  /**
56
- * Emits for the Input component
57
- * Extends HasRootInputEmits and BaseInputEmits
75
+ * Emits inherited from `HasRootInputEmits` and `BaseInputEmits` (the "extended" part).
76
+ */
77
+ export type InputExtendsEmits = HasRootInputEmits & BaseInputEmits;
78
+ /**
79
+ * Emits defined by `Input` itself (the "not-extended" part).
58
80
  */
59
- export interface InputEmits extends HasRootInputEmits, BaseInputEmits {
81
+ export type InputNotExtendsEmits = {
60
82
  /**
61
83
  * Emitted when the model value is updated
62
84
  */
@@ -65,132 +87,51 @@ export interface InputEmits extends HasRootInputEmits, BaseInputEmits {
65
87
  * Emitted when the input value changes
66
88
  */
67
89
  change: [value?: string | null];
68
- }
90
+ };
91
+ /**
92
+ * Emits for the Input component
93
+ * Extends HasRootInputEmits and BaseInputEmits.
94
+ */
95
+ export type InputEmits = InputExtendsEmits & InputNotExtendsEmits;
69
96
  /**
70
97
  * Default props for the Input component
71
98
  */
72
99
  export declare const INPUT_DEFAULT_PROPS: {
100
+ readonly readonly: undefined;
73
101
  readonly disabled: undefined;
74
102
  readonly bordered: true;
75
- readonly autofillStyle: true;
76
103
  readonly clearIcon: "tabler:circle-x";
77
104
  };
78
105
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<InputProps, {
79
106
  input: import('vue').Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
80
- focus: (option?: FocusOptions | undefined) => void | undefined;
107
+ focus: (option?: FocusOptions | undefined) => void;
81
108
  blur: () => void | undefined;
82
109
  select: () => void | undefined;
83
- setSelectionRange: (start: number, end: number, direction?: "none" | "forward" | "backward" | undefined) => void | undefined;
110
+ setSelectionRange: (start: number, end: number, direction?: "none" | "forward" | "backward" | undefined) => void | undefined; /**
111
+ * InputGroup context
112
+ */
84
113
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
85
114
  blur: (event: InputEvent) => any;
86
115
  change: (value?: string | null | undefined) => any;
87
116
  focus: (event: InputEvent) => any;
88
- resize: (value: number) => any;
117
+ pointerdown: (event: PointerEvent) => any;
89
118
  clear: () => any;
90
119
  "update:modelValue": (value?: string | null | undefined) => any;
91
120
  }, string, import('vue').PublicProps, Readonly<InputProps> & Readonly<{
92
121
  onBlur?: ((event: InputEvent) => any) | undefined;
93
122
  onChange?: ((value?: string | null | undefined) => any) | undefined;
94
123
  onFocus?: ((event: InputEvent) => any) | undefined;
95
- onResize?: ((value: number) => any) | undefined;
124
+ onPointerdown?: ((event: PointerEvent) => any) | undefined;
96
125
  onClear?: (() => any) | undefined;
97
126
  "onUpdate:modelValue"?: ((value?: string | null | undefined) => any) | undefined;
98
127
  }>, {
99
128
  disabled: boolean;
129
+ readonly: boolean;
100
130
  clearIcon: string;
101
131
  bordered: boolean;
102
- autofillStyle: boolean;
103
132
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
104
- rootRef: ({
105
- $: import('vue').ComponentInternalInstance;
106
- $data: {};
107
- $props: {
108
- readonly disabled?: boolean | undefined;
109
- readonly autoFocus?: boolean | undefined;
110
- readonly leading?: string | undefined;
111
- readonly trailing?: string | undefined;
112
- readonly clearIcon?: string | undefined;
113
- readonly trailingCls?: import('clsx').ClassValue;
114
- readonly clearIconCls?: import('clsx').ClassValue;
115
- readonly dividerCls?: import('clsx').ClassValue;
116
- readonly leadingCls?: import('clsx').ClassValue;
117
- readonly class?: import('clsx').ClassValue;
118
- readonly allowClear?: boolean | undefined;
119
- readonly bordered?: boolean | undefined;
120
- readonly simple?: boolean | undefined;
121
- readonly size?: "sm" | "md" | "lg" | undefined;
122
- readonly status?: "none" | "error" | "success" | "warning" | undefined;
123
- readonly hasValue?: boolean | undefined;
124
- readonly steps?: boolean | undefined;
125
- readonly contentFit?: boolean | undefined;
126
- readonly autofillStyle?: boolean | undefined;
127
- readonly onResize?: ((value: number) => any) | undefined;
128
- readonly onClear?: (() => any) | undefined;
129
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
130
- $attrs: {
131
- [x: string]: unknown;
132
- };
133
- $refs: {
134
- [x: string]: unknown;
135
- } & {
136
- widthRef: HTMLSpanElement;
137
- };
138
- $slots: Readonly<{
139
- [name: string]: import('vue').Slot<any> | undefined;
140
- }>;
141
- $root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
142
- $parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
143
- $host: Element | null;
144
- $emit: ((event: "resize", value: number) => void) & ((event: "clear") => void);
145
- $el: HTMLDivElement;
146
- $options: import('vue').ComponentOptionsBase<Readonly<BaseInputProps> & Readonly<{
147
- onResize?: ((value: number) => any) | undefined;
148
- onClear?: (() => any) | undefined;
149
- }>, {
150
- adjustWidth: () => void;
151
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
152
- resize: (value: number) => any;
153
- clear: () => any;
154
- }, string, {
155
- disabled: boolean;
156
- clearIcon: string;
157
- bordered: boolean;
158
- autofillStyle: boolean;
159
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
160
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
161
- created?: ((() => void) | (() => void)[]) | undefined;
162
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
163
- mounted?: ((() => void) | (() => void)[]) | undefined;
164
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
165
- updated?: ((() => void) | (() => void)[]) | undefined;
166
- activated?: ((() => void) | (() => void)[]) | undefined;
167
- deactivated?: ((() => void) | (() => void)[]) | undefined;
168
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
169
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
170
- destroyed?: ((() => void) | (() => void)[]) | undefined;
171
- unmounted?: ((() => void) | (() => void)[]) | undefined;
172
- renderTracked?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
173
- renderTriggered?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
174
- errorCaptured?: (((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void)[]) | undefined;
175
- };
176
- $forceUpdate: () => void;
177
- $nextTick: typeof import('vue').nextTick;
178
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: import('@vue/reactivity').OnCleanup) => any : (args_0: any, args_1: any, args_2: import('@vue/reactivity').OnCleanup) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
179
- } & Readonly<{
180
- disabled: boolean;
181
- clearIcon: string;
182
- bordered: boolean;
183
- autofillStyle: boolean;
184
- }> & Omit<Readonly<BaseInputProps> & Readonly<{
185
- onResize?: ((value: number) => any) | undefined;
186
- onClear?: (() => any) | undefined;
187
- }>, "adjustWidth" | ("disabled" | "clearIcon" | "bordered" | "autofillStyle")> & import('vue').ShallowUnwrapRef<{
188
- adjustWidth: () => void;
189
- }> & {} & import('vue').ComponentCustomProperties & {} & {
190
- $slots: Readonly<BaseInputSlots> & BaseInputSlots;
191
- }) | null;
192
133
  inputRef: HTMLInputElement;
193
- }, HTMLDivElement>, Readonly<InputSlots> & InputSlots>;
134
+ }, HTMLDivElement>, Readonly<InputExtendsSlots> & InputExtendsSlots>;
194
135
  export default _default;
195
136
  type __VLS_WithTemplateSlots<T, S> = T & {
196
137
  new (): {
@@ -1,6 +1,7 @@
1
- import { default as Input, InputProps, InputEmits, InputSlots, INPUT_DEFAULT_PROPS } from './Input';
1
+ import { default as Input, InputProps, InputEmits, InputSlots } from './Input';
2
2
  import { DefineComponent } from '@pantograph/utils-vue';
3
- export { Input, type InputProps, type InputEmits, type InputSlots, INPUT_DEFAULT_PROPS };
3
+ export { Input };
4
+ export * from './Input';
4
5
  declare module 'vue' {
5
6
  interface GlobalComponents {
6
7
  Input: DefineComponent<InputProps, InputSlots, InputEmits>;
@@ -1,4 +1,3 @@
1
- import { nextTick } from 'vue';
2
1
  import { HasRootInputEmits } from '@pantograph/utils-vue';
3
2
  import { BaseInputEmits, BaseInputProps, BaseInputSlots } from '../Base/BaseInput/BaseInput';
4
3
  /**
@@ -25,8 +24,6 @@ export interface InputNumberProps extends Omit<BaseInputProps, 'hasValue'> {
25
24
  step?: number;
26
25
  /** Whether to show the increment/decrement controls */
27
26
  controls?: boolean;
28
- /** Whether the input is read-only */
29
- readonly?: boolean;
30
27
  }
31
28
  /**
32
29
  * Slots for the InputNumber component
@@ -61,14 +58,14 @@ export interface InputNumberEmits extends HasRootInputEmits, BaseInputEmits {
61
58
  export declare const INPUT_NUMBER_DEFAULT_PROPS: {
62
59
  readonly controls: true;
63
60
  readonly step: 1;
61
+ readonly readonly: undefined;
64
62
  readonly disabled: undefined;
65
63
  readonly bordered: true;
66
- readonly autofillStyle: true;
67
64
  readonly clearIcon: "tabler:circle-x";
68
65
  };
69
66
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<InputNumberProps, {
70
67
  input: import('vue').Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
71
- focus: (option?: FocusOptions | undefined) => void | undefined;
68
+ focus: (option?: FocusOptions | undefined) => void;
72
69
  blur: () => void | undefined;
73
70
  select: () => void | undefined;
74
71
  setSelectionRange: (start: number, end: number, direction?: "none" | "forward" | "backward" | undefined) => void | undefined;
@@ -77,7 +74,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<In
77
74
  blur: (event: InputEvent) => any;
78
75
  change: (value?: number | undefined) => any;
79
76
  focus: (event: InputEvent) => any;
80
- resize: (value: number) => any;
77
+ pointerdown: (event: PointerEvent) => any;
81
78
  clear: () => any;
82
79
  "update:modelValue": (value?: number | undefined) => any;
83
80
  step: (event: {
@@ -92,7 +89,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<In
92
89
  onBlur?: ((event: InputEvent) => any) | undefined;
93
90
  onChange?: ((value?: number | undefined) => any) | undefined;
94
91
  onFocus?: ((event: InputEvent) => any) | undefined;
95
- onResize?: ((value: number) => any) | undefined;
92
+ onPointerdown?: ((event: PointerEvent) => any) | undefined;
96
93
  onClear?: (() => any) | undefined;
97
94
  "onUpdate:modelValue"?: ((value?: number | undefined) => any) | undefined;
98
95
  onStep?: ((event: {
@@ -104,100 +101,12 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<In
104
101
  onKeydownEnter?: ((event: KeyboardEvent) => any) | undefined;
105
102
  }>, {
106
103
  disabled: boolean;
104
+ readonly: boolean;
107
105
  clearIcon: string;
108
106
  bordered: boolean;
109
- autofillStyle: boolean;
110
107
  step: number;
111
108
  controls: boolean;
112
109
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
113
- rootRef: ({
114
- $: import('vue').ComponentInternalInstance;
115
- $data: {};
116
- $props: {
117
- readonly disabled?: boolean | undefined;
118
- readonly autoFocus?: boolean | undefined;
119
- readonly leading?: string | undefined;
120
- readonly trailing?: string | undefined;
121
- readonly clearIcon?: string | undefined;
122
- readonly trailingCls?: import('clsx').ClassValue;
123
- readonly clearIconCls?: import('clsx').ClassValue;
124
- readonly dividerCls?: import('clsx').ClassValue;
125
- readonly leadingCls?: import('clsx').ClassValue;
126
- readonly class?: import('clsx').ClassValue;
127
- readonly allowClear?: boolean | undefined;
128
- readonly bordered?: boolean | undefined;
129
- readonly simple?: boolean | undefined;
130
- readonly size?: "sm" | "md" | "lg" | undefined;
131
- readonly status?: "none" | "error" | "success" | "warning" | undefined;
132
- readonly hasValue?: boolean | undefined;
133
- readonly steps?: boolean | undefined;
134
- readonly contentFit?: boolean | undefined;
135
- readonly autofillStyle?: boolean | undefined;
136
- readonly onResize?: ((value: number) => any) | undefined;
137
- readonly onClear?: (() => any) | undefined;
138
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
139
- $attrs: {
140
- [x: string]: unknown;
141
- };
142
- $refs: {
143
- [x: string]: unknown;
144
- } & {
145
- widthRef: HTMLSpanElement;
146
- };
147
- $slots: Readonly<{
148
- [name: string]: import('vue').Slot<any> | undefined;
149
- }>;
150
- $root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
151
- $parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null;
152
- $host: Element | null;
153
- $emit: ((event: "resize", value: number) => void) & ((event: "clear") => void);
154
- $el: HTMLDivElement;
155
- $options: import('vue').ComponentOptionsBase<Readonly<BaseInputProps> & Readonly<{
156
- onResize?: ((value: number) => any) | undefined;
157
- onClear?: (() => any) | undefined;
158
- }>, {
159
- adjustWidth: () => void;
160
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
161
- resize: (value: number) => any;
162
- clear: () => any;
163
- }, string, {
164
- disabled: boolean;
165
- clearIcon: string;
166
- bordered: boolean;
167
- autofillStyle: boolean;
168
- }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
169
- beforeCreate?: ((() => void) | (() => void)[]) | undefined;
170
- created?: ((() => void) | (() => void)[]) | undefined;
171
- beforeMount?: ((() => void) | (() => void)[]) | undefined;
172
- mounted?: ((() => void) | (() => void)[]) | undefined;
173
- beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
174
- updated?: ((() => void) | (() => void)[]) | undefined;
175
- activated?: ((() => void) | (() => void)[]) | undefined;
176
- deactivated?: ((() => void) | (() => void)[]) | undefined;
177
- beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
178
- beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
179
- destroyed?: ((() => void) | (() => void)[]) | undefined;
180
- unmounted?: ((() => void) | (() => void)[]) | undefined;
181
- renderTracked?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
182
- renderTriggered?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
183
- errorCaptured?: (((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import('vue').ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}, {}, {}, string, import('vue').ComponentProvideOptions>, {}, {}, "", {}, any> | null, info: string) => boolean | void)[]) | undefined;
184
- };
185
- $forceUpdate: () => void;
186
- $nextTick: typeof nextTick;
187
- $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: import('@vue/reactivity').OnCleanup) => any : (args_0: any, args_1: any, args_2: import('@vue/reactivity').OnCleanup) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
188
- } & Readonly<{
189
- disabled: boolean;
190
- clearIcon: string;
191
- bordered: boolean;
192
- autofillStyle: boolean;
193
- }> & Omit<Readonly<BaseInputProps> & Readonly<{
194
- onResize?: ((value: number) => any) | undefined;
195
- onClear?: (() => any) | undefined;
196
- }>, "adjustWidth" | ("disabled" | "clearIcon" | "bordered" | "autofillStyle")> & import('vue').ShallowUnwrapRef<{
197
- adjustWidth: () => void;
198
- }> & {} & import('vue').ComponentCustomProperties & {} & {
199
- $slots: Readonly<BaseInputSlots> & BaseInputSlots;
200
- }) | null;
201
110
  inputRef: HTMLInputElement;
202
111
  }, HTMLDivElement>, Readonly<InputNumberSlots> & InputNumberSlots>;
203
112
  export default _default;
@@ -18,6 +18,7 @@ export interface LinkProps {
18
18
  text?: string;
19
19
  /** The text style for the link */
20
20
  txs?: LinkStyle;
21
+ color?: string;
21
22
  }
22
23
  /**
23
24
  * Slots for the Link component
@@ -1,4 +1,5 @@
1
1
  import { Ref } from 'vue';
2
+ import { PopoverBaseProps } from '../type.ts';
2
3
  /**
3
4
  * Keys for PopoverPortal props
4
5
  */
@@ -7,6 +8,7 @@ declare const popoverPortalPropsKeys: readonly ["to", "defer", "disabled", "forc
7
8
  * Type for PopoverPortal prop names
8
9
  */
9
10
  export type PopoverPortalPropsName = Partial<Record<(typeof popoverPortalPropsKeys)[number], string>>;
11
+ export declare const getTOElement: (el: PopoverBaseProps['to'], triggerRef?: Ref<any>) => string | HTMLElement | undefined;
10
12
  /**
11
13
  * Gets the portal props for the Popover component
12
14
  * @param triggerRef Reference to the trigger element
@@ -18,7 +20,7 @@ export declare const getPopoverPortalProps: ({ triggerRef, props: _props }: {
18
20
  triggerRef?: Ref<any>;
19
21
  props: object;
20
22
  }, propsName?: PopoverPortalPropsName) => import('vue').ComputedRef<{
21
- to: string | HTMLElement;
23
+ to: string | HTMLElement | undefined;
22
24
  defer: boolean;
23
25
  disabled: boolean;
24
26
  forceMount: boolean;
@@ -29,7 +29,7 @@ export declare const usePopoverContext: ({ slots, prefix, props, emit, emitsAsPr
29
29
  modal?: boolean | undefined;
30
30
  }>;
31
31
  portalProps: import('vue').ComputedRef<{
32
- to: string | HTMLElement;
32
+ to: string | HTMLElement | undefined;
33
33
  defer: boolean;
34
34
  disabled: boolean;
35
35
  forceMount: boolean;