@pantograph/pattern-vue 0.0.3 → 0.0.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.
Files changed (102) hide show
  1. package/README.md +2 -2
  2. package/dist/ComponentMap-B1762IQM.js +21 -0
  3. package/dist/ComponentMap-Cwlxatbx.js +1 -0
  4. package/dist/ComponentMap.d.ts +1 -1
  5. package/dist/components/CoachMark/CoachMark.d.ts +52 -0
  6. package/dist/components/CoachMark/constant.d.ts +72 -0
  7. package/dist/components/CoachMark/index.d.ts +5 -0
  8. package/dist/components/CoachMark/model.d.ts +8 -0
  9. package/dist/components/CoachMark/types.d.ts +105 -0
  10. package/dist/components/Comment/Comment.d.ts +28 -0
  11. package/dist/components/Comment/CommentAction.d.ts +17 -0
  12. package/dist/components/Comment/CommentActions.d.ts +431 -0
  13. package/dist/components/Comment/CommentEditor.d.ts +67 -0
  14. package/dist/components/Comment/CommentFileList.d.ts +2 -0
  15. package/dist/components/Comment/CommentMention.d.ts +639 -0
  16. package/dist/components/Comment/CommentReaction.d.ts +11 -0
  17. package/dist/components/Comment/CommentReactionHoverCard.d.ts +10 -0
  18. package/dist/components/Comment/CommentReactionList.d.ts +217 -0
  19. package/dist/components/Comment/CommentReactionListItem.d.ts +3 -0
  20. package/dist/components/Comment/CommentTrigger.d.ts +15 -0
  21. package/dist/components/Comment/constant.d.ts +59 -0
  22. package/dist/components/Comment/context.d.ts +3 -0
  23. package/dist/components/Comment/index.d.ts +13 -0
  24. package/dist/components/Comment/types.d.ts +563 -0
  25. package/dist/components/Comment/useComment.d.ts +49 -0
  26. package/dist/components/DataTable/DataTable.d.ts +99 -0
  27. package/dist/components/DataTable/components/DataTableBatchActions.d.ts +9 -0
  28. package/dist/components/DataTable/components/DataTableBatchActionsContent.d.ts +2 -0
  29. package/dist/components/DataTable/components/DataTableColGroup.d.ts +6 -0
  30. package/dist/components/DataTable/components/DataTableContent.d.ts +2 -0
  31. package/dist/components/DataTable/components/DataTableEmpty.d.ts +2 -0
  32. package/dist/components/DataTable/components/DataTableFooter.d.ts +2 -0
  33. package/dist/components/DataTable/components/DataTableHeader.d.ts +57 -0
  34. package/dist/components/DataTable/components/DataTableHeaderCell.d.ts +243 -0
  35. package/dist/components/DataTable/components/DataTableHeaderCellActionsPopover.d.ts +2 -0
  36. package/dist/components/DataTable/components/DataTableInsertBetween.d.ts +2 -0
  37. package/dist/components/DataTable/components/DataTableLazyLoading.d.ts +56 -0
  38. package/dist/components/DataTable/components/DataTableLoadingRow.d.ts +18 -0
  39. package/dist/components/DataTable/components/DataTableRow.d.ts +15 -0
  40. package/dist/components/DataTable/components/ThDragGhost.d.ts +16 -0
  41. package/dist/components/DataTable/constant.d.ts +20 -0
  42. package/dist/components/DataTable/context.d.ts +2 -0
  43. package/dist/components/DataTable/index.d.ts +5 -0
  44. package/dist/components/DataTable/types/cell.d.ts +15 -0
  45. package/dist/components/DataTable/types/column.d.ts +69 -0
  46. package/dist/components/DataTable/types/common.d.ts +18 -0
  47. package/dist/components/DataTable/types/context.d.ts +44 -0
  48. package/dist/components/DataTable/types/index.d.ts +139 -0
  49. package/dist/components/DataTable/types/select.d.ts +25 -0
  50. package/dist/components/DataTable/utils/index.d.ts +14 -0
  51. package/dist/components/DataTable/utils/useCell.d.ts +23 -0
  52. package/dist/components/DataTable/utils/useCol.d.ts +35 -0
  53. package/dist/components/DataTable/utils/useColumnFixed.d.ts +23 -0
  54. package/dist/components/DataTable/utils/useColumnOrder.d.ts +32 -0
  55. package/dist/components/DataTable/utils/useColumnPopover.d.ts +19 -0
  56. package/dist/components/DataTable/utils/useColumnSize.d.ts +14 -0
  57. package/dist/components/DataTable/utils/useColumnWrap.d.ts +7 -0
  58. package/dist/components/DataTable/utils/useFilter.d.ts +14 -0
  59. package/dist/components/DataTable/utils/useInsertBetween.d.ts +5 -0
  60. package/dist/components/DataTable/utils/useRow.d.ts +9 -0
  61. package/dist/components/DataTable/utils/useRowOrder.d.ts +114 -0
  62. package/dist/components/DataTable/utils/useRowVirtualizer.d.ts +12 -0
  63. package/dist/components/DataTable/utils/useSelection.d.ts +30 -0
  64. package/dist/components/DataTable/utils/useSort.d.ts +12 -0
  65. package/dist/components/Form/Form.d.ts +58 -0
  66. package/dist/components/Form/FormItem.d.ts +22 -0
  67. package/dist/components/Form/constant.d.ts +18 -0
  68. package/dist/components/Form/defineRules.d.ts +6 -0
  69. package/dist/components/Form/index.d.ts +5 -0
  70. package/dist/components/Form/types.d.ts +418 -0
  71. package/dist/components/GOPicker/GOItemSkeleton.d.ts +2 -0
  72. package/dist/components/GOPicker/GOPicker.d.ts +33 -0
  73. package/dist/components/GOPicker/constant.d.ts +40 -0
  74. package/dist/components/GOPicker/emojis.d.ts +24 -0
  75. package/dist/components/GOPicker/getEmojiList.d.ts +42 -0
  76. package/dist/components/GOPicker/icons.d.ts +9 -0
  77. package/dist/components/GOPicker/index.d.ts +6 -0
  78. package/dist/components/GOPicker/model.d.ts +16 -0
  79. package/dist/components/GOPicker/types.d.ts +353 -0
  80. package/dist/components/InputPassword/InputPassword.d.ts +4 -71
  81. package/dist/components/InputPassword/constant.d.ts +12 -0
  82. package/dist/components/InputPassword/index.d.ts +4 -8
  83. package/dist/components/InputPassword/types.d.ts +46 -0
  84. package/dist/components/ListView/ListView.d.ts +15 -0
  85. package/dist/components/ListView/ListViewItem.d.ts +10 -0
  86. package/dist/components/ListView/constant.d.ts +4 -0
  87. package/dist/components/ListView/index.d.ts +5 -0
  88. package/dist/components/ListView/types.d.ts +16 -0
  89. package/dist/index-D-WRsztv.js +3431 -0
  90. package/dist/index-DhcyeKI-.js +1 -0
  91. package/dist/index.d.ts +6 -0
  92. package/dist/index.js +52 -4
  93. package/dist/index.umd.cjs +1 -1
  94. package/dist/nuxt/index.js +1 -1
  95. package/dist/nuxt/index.umd.cjs +1 -1
  96. package/dist/resolver/index.js +1 -1
  97. package/dist/resolver/index.umd.cjs +1 -1
  98. package/dist/use/index.js +24437 -100
  99. package/dist/use/index.umd.cjs +30 -1
  100. package/package.json +11 -6
  101. package/dist/ComponentMap-BDQ8ar3z.js +0 -6
  102. package/dist/ComponentMap-CTyWVtmA.js +0 -1
@@ -0,0 +1,353 @@
1
+ import { ClassValue } from 'clsx';
2
+ import { ComputedRef, Ref } from 'vue';
3
+ import { BaseInputSlots, ColorSwatchSlots, ColorSwatchGroupProps, ColorTriggerSize, Direction, GraphicalObjectBG, GraphicalObjectBR, GraphicalObjectFG, InputProps, PopoverProps, ScrollContainerProps } from '@pantograph/vue';
4
+ import { GoPickerColor, GoPickerGroup } from './model';
5
+ import { DefineComponent } from '@pantograph/utils-vue';
6
+ /**
7
+ * Represents a graphical object item (icon or emoji)
8
+ */
9
+ export interface GOItem {
10
+ /**
11
+ * Keywords associated with the item for search functionality
12
+ */
13
+ keywords?: string[];
14
+ /**
15
+ * The value of the item (icon name or emoji character)
16
+ */
17
+ value: string;
18
+ /**
19
+ * Group identifier for categorization
20
+ */
21
+ group?: number;
22
+ }
23
+ /**
24
+ * Model representing the selected graphical object with styling options
25
+ */
26
+ export interface GOPickerModel {
27
+ /**
28
+ * The selected value (icon name or emoji character)
29
+ */
30
+ value: string;
31
+ /**
32
+ * The type of graphical object (icon or emoji)
33
+ */
34
+ type: GoPickerGroup | 'custom';
35
+ /**
36
+ * Foreground color for the graphical object
37
+ */
38
+ fg?: string | GraphicalObjectFG;
39
+ /**
40
+ * Background color for the graphical object
41
+ */
42
+ bg?: string | GraphicalObjectBG;
43
+ /**
44
+ * Border color for the graphical object
45
+ */
46
+ br?: string | GraphicalObjectBR;
47
+ }
48
+ /**
49
+ * Props for the GOPicker component
50
+ */
51
+ export interface GOPickerProps {
52
+ /**
53
+ * Text direction for the component
54
+ */
55
+ dir?: Direction;
56
+ /**
57
+ * Array of icon items to display in the picker
58
+ */
59
+ icons?: GOItem[];
60
+ /**
61
+ * Array of emoji items to display in the picker
62
+ */
63
+ emojis?: GOItem[];
64
+ /**
65
+ * The currently selected group (icon or emoji)
66
+ */
67
+ group?: GoPickerGroup;
68
+ /**
69
+ * The current value of the picker (v-model)
70
+ */
71
+ modelValue?: GOPickerModel;
72
+ /**
73
+ * The default value for the picker
74
+ */
75
+ defaultValue?: GOPickerModel;
76
+ /**
77
+ * Tabs to show in the picker
78
+ * @default ['icon', 'emoji']
79
+ */
80
+ visibleTabs?: GoPickerGroup[];
81
+ /**
82
+ * Whether to hide the trigger element
83
+ * @default false
84
+ */
85
+ noTrigger?: boolean;
86
+ /**
87
+ * Whether to disable model binding
88
+ * @default false
89
+ */
90
+ noModel?: boolean;
91
+ /**
92
+ * Whether to hide the clear button
93
+ * @default false
94
+ */
95
+ hideClear?: boolean;
96
+ /**
97
+ * Whether to hide the color options
98
+ * @default false
99
+ */
100
+ hideColor?: boolean;
101
+ /**
102
+ * Whether to hide the group selector
103
+ * @default false
104
+ */
105
+ hideGroup?: boolean;
106
+ /**
107
+ * Whether to hide the icons tab
108
+ * @default false
109
+ */
110
+ hideIcons?: boolean;
111
+ /**
112
+ * Whether to hide the emojis tab
113
+ * @default false
114
+ */
115
+ hideEmojis?: boolean;
116
+ /**
117
+ * Whether to hide the search input
118
+ * @default false
119
+ */
120
+ hideSearch?: boolean;
121
+ /**
122
+ * Whether to hide the random button
123
+ * @default false
124
+ */
125
+ hideRandom?: boolean;
126
+ /**
127
+ * Whether the picker is disabled
128
+ */
129
+ disabled?: boolean;
130
+ /**
131
+ * Whether to show borders around the picker
132
+ * @default true
133
+ */
134
+ bordered?: boolean;
135
+ /**
136
+ * Props to pass to the main popover
137
+ * @default { forceMount: false }
138
+ */
139
+ popoverProps?: PopoverProps;
140
+ /**
141
+ * Props to pass to the color popover
142
+ * @default { forceMount: false }
143
+ */
144
+ colorPopoverProps?: PopoverProps;
145
+ /**
146
+ * Props to pass to the foreground color swatch group
147
+ * @default { popoverProps: { forceMount: false } }
148
+ */
149
+ fgColorSwatchGroupProps?: ColorSwatchGroupProps;
150
+ /**
151
+ * Props to pass to the background color swatch group
152
+ * @default { popoverProps: { forceMount: false } }
153
+ */
154
+ bgColorSwatchGroupProps?: ColorSwatchGroupProps;
155
+ /**
156
+ * Props to pass to the border color swatch group
157
+ * @default { popoverProps: { forceMount: false } }
158
+ */
159
+ brColorSwatchGroupProps?: ColorSwatchGroupProps;
160
+ /**
161
+ * Color pickers to show (foreground, background, border)
162
+ * @default ['bg', 'fg']
163
+ */
164
+ visibleColorPickers?: GoPickerColor[];
165
+ /**
166
+ * CSS classes to apply to the content container
167
+ */
168
+ contentCls?: ClassValue;
169
+ /**
170
+ * CSS classes to apply to the header
171
+ */
172
+ headerCls?: ClassValue;
173
+ /**
174
+ * CSS classes to apply to the group selector
175
+ */
176
+ groupCls?: ClassValue;
177
+ /**
178
+ * CSS classes to apply to the search input
179
+ */
180
+ searchCls?: ClassValue;
181
+ /**
182
+ * CSS classes to apply to the colors section
183
+ */
184
+ colorsCls?: ClassValue;
185
+ /**
186
+ * CSS classes to apply to the empty state
187
+ */
188
+ emptyCls?: ClassValue;
189
+ /**
190
+ * CSS classes to apply to the grid container
191
+ */
192
+ gridCls?: ClassValue;
193
+ /**
194
+ * Props to pass to the scroll container
195
+ */
196
+ scrollContainerProps?: ScrollContainerProps;
197
+ /**
198
+ * The size of the picker trigger
199
+ * @default 'md'
200
+ */
201
+ size?: ColorTriggerSize;
202
+ /**
203
+ * The ID for the picker
204
+ */
205
+ id?: string;
206
+ /**
207
+ * The current search query value
208
+ */
209
+ search?: string;
210
+ /**
211
+ * Props to pass to the search input component
212
+ */
213
+ inputProps?: InputProps;
214
+ inputCls?: ClassValue;
215
+ /**
216
+ * Which colors to reset when changing between icon and emoji types
217
+ */
218
+ resetColorsOnChangeType?: {
219
+ /**
220
+ * Colors to reset when switching to icon type
221
+ */
222
+ icon?: ('fg' | 'bg' | 'br')[];
223
+ /**
224
+ * Colors to reset when switching to emoji type
225
+ */
226
+ emoji?: ('fg' | 'bg' | 'br')[];
227
+ };
228
+ }
229
+ /**
230
+ * Events emitted by the GOPicker component
231
+ */
232
+ export interface GOPickerEmits {
233
+ /**
234
+ * Emitted when the selected group is updated
235
+ */
236
+ 'update:group': [value?: GoPickerGroup];
237
+ /**
238
+ * Emitted when the search value changes
239
+ */
240
+ 'update:search': [value?: string];
241
+ /**
242
+ * Emitted when the model value is updated
243
+ */
244
+ 'update:modelValue': [value?: GOPickerModel];
245
+ /**
246
+ * Emitted when the clear button is clicked
247
+ */
248
+ clear: [];
249
+ /**
250
+ * Emitted when the selected value changes
251
+ */
252
+ change: [value?: GOPickerModel];
253
+ /**
254
+ * Emitted when an item is selected
255
+ */
256
+ select: [value: GOItem];
257
+ }
258
+ /**
259
+ * Context interface for the GOPicker component
260
+ */
261
+ export interface GOPickerContext {
262
+ /**
263
+ * Props passed to the component
264
+ */
265
+ props: GOPickerProps;
266
+ /**
267
+ * Reactive reference to the picker model
268
+ */
269
+ model: Ref<GOPickerModel | undefined>;
270
+ /**
271
+ * Computed reference to filtered icons
272
+ */
273
+ filteredIcons: ComputedRef<GOItem[]>;
274
+ /**
275
+ * Computed reference to filtered emojis
276
+ */
277
+ filteredEmojis: ComputedRef<GOItem[]>;
278
+ /**
279
+ * Function to set the selected value
280
+ */
281
+ setValue: (value: GOItem) => void;
282
+ /**
283
+ * Reactive reference to the current group
284
+ */
285
+ groupModel: Ref<GoPickerGroup | undefined>;
286
+ }
287
+ /**
288
+ * Slots for the GOPicker component
289
+ */
290
+ export interface GOPickerSlots extends Partial<Pick<BaseInputSlots, 'leading' | 'trailing' | 'clearIcon'>> {
291
+ /**
292
+ * Customize the trigger element
293
+ * @param data - Data containing model value and component state
294
+ */
295
+ default?: (data: Partial<Pick<GOPickerProps, 'disabled' | 'bordered' | 'id'>> & {
296
+ model: GOPickerProps['modelValue'];
297
+ }) => never;
298
+ /**
299
+ * Customize the header for the foreground color picker
300
+ */
301
+ fgHeader?: (params?: object) => never;
302
+ /**
303
+ * Customize items in the foreground color picker
304
+ * @param data - Color swatch slot data
305
+ */
306
+ fgItem?: ColorSwatchSlots['default'];
307
+ /**
308
+ * Customize icons in the foreground color picker items
309
+ * @param data - Color swatch slot data
310
+ */
311
+ fgIcon?: ColorSwatchSlots['icon'];
312
+ /**
313
+ * Customize the header for the background color picker
314
+ */
315
+ bgHeader?: (params?: object) => never;
316
+ /**
317
+ * Customize items in the background color picker
318
+ * @param data - Color swatch slot data
319
+ */
320
+ bgItem?: ColorSwatchSlots['default'];
321
+ /**
322
+ * Customize icons in the background color picker items
323
+ * @param data - Color swatch slot data
324
+ */
325
+ bgIcon?: ColorSwatchSlots['icon'];
326
+ /**
327
+ * Customize the header for the border color picker
328
+ */
329
+ brHeader?: (params?: object) => never;
330
+ /**
331
+ * Customize items in the border color picker
332
+ * @param data - Color swatch slot data
333
+ */
334
+ brItem?: ColorSwatchSlots['default'];
335
+ /**
336
+ * Customize icons in the border color picker items
337
+ * @param data - Color swatch slot data
338
+ */
339
+ brIcon?: ColorSwatchSlots['icon'];
340
+ /**
341
+ * Customize how each icon/emoji item is rendered in the picker
342
+ * @param data - Information about the item and its group
343
+ */
344
+ item?: (data: {
345
+ item: GOItem;
346
+ group: GoPickerGroup | undefined;
347
+ }) => never;
348
+ }
349
+ declare module 'vue' {
350
+ interface GlobalComponents {
351
+ GOPicker: DefineComponent<GOPickerProps, GOPickerSlots, GOPickerEmits>;
352
+ }
353
+ }
@@ -1,71 +1,4 @@
1
- import { InputExtendsEmits, InputExtendsProps, InputNotExtendsEmits, InputNotExtendsProps, InputSlots } from '@pantograph/vue';
2
- /**
3
- * Props inherited from Input component
4
- */
5
- export type InputPasswordExtendsProps = InputExtendsProps & InputNotExtendsProps;
6
- /**
7
- * Props specific to InputPassword component
8
- */
9
- export type InputPasswordNotExtendsProps = {
10
- /**
11
- * Whether the password is visible (v-model)
12
- */
13
- visible?: boolean;
14
- /**
15
- * Icon to display when the password is visible.
16
- * @default 'tabler:eye-off'
17
- */
18
- visibleIcon?: string;
19
- /**
20
- * Icon to display when the password is hidden.
21
- * @default 'tabler:eye'
22
- */
23
- invisibleIcon?: string;
24
- };
25
- /**
26
- * Props for the InputPassword component
27
- *
28
- * Extends all `Input` props and adds `visible` for password visibility control.
29
- */
30
- export type InputPasswordProps = InputPasswordExtendsProps & InputPasswordNotExtendsProps;
31
- /**
32
- * Slots for the InputPassword component
33
- *
34
- * Extends all `Input` slots. The `trailing` slot is still supported; when it is
35
- * empty we render a default visibility toggle icon.
36
- */
37
- export type InputPasswordSlots = InputSlots;
38
- /**
39
- * Emits inherited from Input component
40
- */
41
- export type InputPasswordExtendsEmits = InputExtendsEmits & InputNotExtendsEmits;
42
- /**
43
- * Emits specific to InputPassword component
44
- */
45
- export type InputPasswordNotExtendsEmits = {
46
- /**
47
- * Emitted when the visible state is updated
48
- */
49
- 'update:visible': [value: boolean];
50
- };
51
- /**
52
- * Emits for the InputPassword component
53
- *
54
- * Extends all `Input` emits and adds visible state update.
55
- */
56
- export type InputPasswordEmits = InputPasswordExtendsEmits & InputPasswordNotExtendsEmits;
57
- /**
58
- * Default props for the InputPassword component
59
- */
60
- export declare const INPUT_PASSWORD_DEFAULT_PROPS: {
61
- readonly visible: undefined;
62
- readonly visibleIcon: "tabler:eye-off";
63
- readonly invisibleIcon: "tabler:eye";
64
- readonly readonly: undefined;
65
- readonly disabled: undefined;
66
- readonly bordered: true;
67
- readonly clearIcon: "tabler:circle-x";
68
- };
1
+ import { InputPasswordProps } from './types';
69
2
  declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<InputPasswordProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
70
3
  blur: (event: InputEvent) => any;
71
4
  change: (value?: string | null | undefined) => any;
@@ -83,14 +16,14 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<In
83
16
  "onUpdate:modelValue"?: ((value?: string | null | undefined) => any) | undefined;
84
17
  "onUpdate:visible"?: ((value: boolean) => any) | undefined;
85
18
  }>, {
86
- readonly: boolean;
87
19
  disabled: boolean;
20
+ visible: boolean;
88
21
  clearIcon: string;
89
22
  bordered: boolean;
90
- visible: boolean;
23
+ readonly: boolean;
91
24
  visibleIcon: string;
92
25
  invisibleIcon: string;
93
- }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<import('@pantograph/vue').InputExtendsSlots> & import('@pantograph/vue').InputExtendsSlots>;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<import('@pantograph/vue').InputSlots> & import('@pantograph/vue').InputSlots>;
94
27
  export default _default;
95
28
  type __VLS_WithTemplateSlots<T, S> = T & {
96
29
  new (): {
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Default props for the InputPassword component
3
+ */
4
+ export declare const INPUT_PASSWORD_DEFAULT_PROPS: {
5
+ readonly visible: undefined;
6
+ readonly visibleIcon: "tabler:eye-off";
7
+ readonly invisibleIcon: "tabler:eye";
8
+ readonly readonly: undefined;
9
+ readonly disabled: undefined;
10
+ readonly bordered: true;
11
+ readonly clearIcon: "tabler:circle-x";
12
+ };
@@ -1,8 +1,4 @@
1
- import { DefineComponent } from '@pantograph/utils-vue';
2
- import { default as InputPassword, InputPasswordSlots, InputPasswordEmits, InputPasswordExtendsEmits, InputPasswordExtendsProps, InputPasswordNotExtendsEmits, InputPasswordNotExtendsProps, InputPasswordProps, INPUT_PASSWORD_DEFAULT_PROPS } from './InputPassword';
3
- export { InputPassword, type InputPasswordProps, type InputPasswordExtendsProps, type InputPasswordNotExtendsProps, type InputPasswordSlots, type InputPasswordEmits, type InputPasswordExtendsEmits, type InputPasswordNotExtendsEmits, INPUT_PASSWORD_DEFAULT_PROPS, };
4
- declare module 'vue' {
5
- interface GlobalComponents {
6
- InputPassword: DefineComponent<InputPasswordProps, InputPasswordSlots, InputPasswordEmits>;
7
- }
8
- }
1
+ import { default as InputPassword } from './InputPassword';
2
+ export { InputPassword };
3
+ export * from './constant';
4
+ export * from './types';
@@ -0,0 +1,46 @@
1
+ import { InputEmits, InputSlots, InputProps } from '@pantograph/vue';
2
+ import { DefineComponent } from '@pantograph/utils-vue';
3
+ /**
4
+ * Props for the InputPassword component
5
+ *
6
+ * Extends all `Input` props and adds `visible` for password visibility control.
7
+ */
8
+ export interface InputPasswordProps extends InputProps {
9
+ /**
10
+ * Whether the password is visible (v-model)
11
+ */
12
+ visible?: boolean;
13
+ /**
14
+ * Icon to display when the password is visible.
15
+ * @default 'tabler:eye-off'
16
+ */
17
+ visibleIcon?: string;
18
+ /**
19
+ * Icon to display when the password is hidden.
20
+ * @default 'tabler:eye'
21
+ */
22
+ invisibleIcon?: string;
23
+ }
24
+ /**
25
+ * Slots for the InputPassword component
26
+ *
27
+ * Extends all `Input` slots. The `trailing` slot is still supported; when it is
28
+ * empty we render a default visibility toggle icon.
29
+ */
30
+ export type InputPasswordSlots = InputSlots;
31
+ /**
32
+ * Emits for the InputPassword component
33
+ *
34
+ * Extends all `Input` emits and adds visible state update.
35
+ */
36
+ export interface InputPasswordEmits extends InputEmits {
37
+ /**
38
+ * Emitted when the visible state is updated
39
+ */
40
+ 'update:visible': [value: boolean];
41
+ }
42
+ declare module 'vue' {
43
+ interface GlobalComponents {
44
+ InputPassword: DefineComponent<InputPasswordProps, InputPasswordSlots, InputPasswordEmits>;
45
+ }
46
+ }
@@ -0,0 +1,15 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('@pantograph/vue').AccordionProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
+ change: (value: string | string[] | undefined) => any;
3
+ collapse: (value: string | string[] | undefined) => any;
4
+ "update:modelValue": (value: string | string[] | undefined) => any;
5
+ }, string, import('vue').PublicProps, Readonly<import('@pantograph/vue').AccordionProps> & Readonly<{
6
+ onChange?: ((value: string | string[] | undefined) => any) | undefined;
7
+ onCollapse?: ((value: string | string[] | undefined) => any) | undefined;
8
+ "onUpdate:modelValue"?: ((value: string | string[] | undefined) => any) | undefined;
9
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<import('@pantograph/vue').AccordionSlots> & import('@pantograph/vue').AccordionSlots>;
10
+ export default _default;
11
+ type __VLS_WithTemplateSlots<T, S> = T & {
12
+ new (): {
13
+ $slots: S;
14
+ };
15
+ };
@@ -0,0 +1,10 @@
1
+ import { AccordionItemSlots } from '@pantograph/vue';
2
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<import('@pantograph/vue').AccordionItemProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('@pantograph/vue').AccordionItemProps> & Readonly<{}>, {
3
+ unmountOnHide: boolean;
4
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>, Readonly<AccordionItemSlots> & AccordionItemSlots>;
5
+ export default _default;
6
+ type __VLS_WithTemplateSlots<T, S> = T & {
7
+ new (): {
8
+ $slots: S;
9
+ };
10
+ };
@@ -0,0 +1,4 @@
1
+ export declare const listViewPrefix: string;
2
+ export declare const LIST_VIEW_ITEM_DEFAULT_PROPS: {
3
+ unmountOnHide: boolean;
4
+ };
@@ -0,0 +1,5 @@
1
+ import { default as ListView } from './ListView';
2
+ import { default as ListViewItem } from './ListViewItem';
3
+ export { ListView, ListViewItem };
4
+ export * from './constant';
5
+ export * from './types';
@@ -0,0 +1,16 @@
1
+ import { AccordionSlots, AccordionProps, AccordionEmits, AccordionItemSlots, AccordionItemProps } from '@pantograph/vue';
2
+ import { DefineComponent } from '@pantograph/utils-vue';
3
+ export type ListViewItemProps = AccordionItemProps;
4
+ export type ListViewItemSlots = AccordionItemSlots;
5
+ export type ListViewProps = AccordionProps;
6
+ export type ListViewEmits = AccordionEmits & {
7
+ change: [value: ListViewProps['modelValue']];
8
+ collapse: [value: ListViewProps['modelValue']];
9
+ };
10
+ export type ListViewSlots = AccordionSlots;
11
+ declare module 'vue' {
12
+ interface GlobalComponents {
13
+ ListView: DefineComponent<ListViewProps, ListViewSlots, ListViewEmits>;
14
+ ListViewItem: DefineComponent<ListViewItemProps, ListViewItemSlots>;
15
+ }
16
+ }