@witchcraft/ui 0.1.1 → 0.1.3

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 (122) hide show
  1. package/dist/module.cjs +5 -0
  2. package/dist/module.d.ts +36 -0
  3. package/dist/module.json +2 -2
  4. package/dist/module.mjs +2 -1
  5. package/dist/runtime/assets/utils.css +1 -1
  6. package/dist/runtime/components/Aria/Aria.vue +9 -5
  7. package/dist/runtime/components/Focus.stories.d.ts +11 -0
  8. package/dist/runtime/components/Focus.stories.js +53 -0
  9. package/dist/runtime/components/Icon/Icon.vue +30 -10
  10. package/dist/runtime/components/LibButton/LibButton.stories.d.ts +12 -0
  11. package/dist/runtime/components/LibButton/LibButton.stories.js +94 -0
  12. package/dist/runtime/components/LibButton/LibButton.vue +72 -58
  13. package/dist/runtime/components/LibCheckbox/LibCheckbox.stories.d.ts +14 -0
  14. package/dist/runtime/components/LibCheckbox/LibCheckbox.stories.js +29 -0
  15. package/dist/runtime/components/LibCheckbox/LibCheckbox.vue +74 -48
  16. package/dist/runtime/components/LibColorInput/LibColorInput.stories.d.ts +7 -0
  17. package/dist/runtime/components/LibColorInput/LibColorInput.stories.js +58 -0
  18. package/dist/runtime/components/LibColorInput/LibColorInput.vue +107 -63
  19. package/dist/runtime/components/LibColorPicker/LibColorPicker.stories.d.ts +9 -0
  20. package/dist/runtime/components/LibColorPicker/LibColorPicker.stories.js +68 -0
  21. package/dist/runtime/components/LibColorPicker/LibColorPicker.vue +352 -271
  22. package/dist/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.stories.d.ts +7 -0
  23. package/dist/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.stories.js +36 -0
  24. package/dist/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.vue +56 -32
  25. package/dist/runtime/components/LibDatePicker/LibDatePicker.stories.d.ts +11 -0
  26. package/dist/runtime/components/LibDatePicker/LibDatePicker.stories.js +98 -0
  27. package/dist/runtime/components/LibDatePicker/LibDatePicker.vue +38 -17
  28. package/dist/runtime/components/LibDatePicker/LibRangeDatePicker.vue +82 -53
  29. package/dist/runtime/components/LibDatePicker/LibSingleDatePicker.vue +67 -50
  30. package/dist/runtime/components/LibDatePicker/LibTimeZonePicker.vue +8 -7
  31. package/dist/runtime/components/LibDebug/LibDebug.stories.d.ts +9 -0
  32. package/dist/runtime/components/LibDebug/LibDebug.stories.js +46 -0
  33. package/dist/runtime/components/LibDebug/LibDebug.vue +70 -42
  34. package/dist/runtime/components/LibDevOnly/LibDevOnly.vue +31 -18
  35. package/dist/runtime/components/LibFileInput/LibFileInput.stories.d.ts +10 -0
  36. package/dist/runtime/components/LibFileInput/LibFileInput.stories.js +63 -0
  37. package/dist/runtime/components/LibFileInput/LibFileInput.vue +156 -113
  38. package/dist/runtime/components/LibInputDeprecated/LibInputDeprecated.stories.d.ts +33 -0
  39. package/dist/runtime/components/LibInputDeprecated/LibInputDeprecated.stories.js +384 -0
  40. package/dist/runtime/components/LibInputDeprecated/LibInputDeprecated.vue +241 -215
  41. package/dist/runtime/components/LibLabel/LibLabel.stories.d.ts +6 -0
  42. package/dist/runtime/components/LibLabel/LibLabel.stories.js +25 -0
  43. package/dist/runtime/components/LibLabel/LibLabel.vue +46 -30
  44. package/dist/runtime/components/LibMultiValues/LibMultiValues.stories.d.ts +23 -0
  45. package/dist/runtime/components/LibMultiValues/LibMultiValues.stories.js +61 -0
  46. package/dist/runtime/components/LibMultiValues/LibMultiValues.vue +58 -44
  47. package/dist/runtime/components/LibNotifications/LibNotification.stories.d.ts +15 -0
  48. package/dist/runtime/components/LibNotifications/LibNotification.stories.js +126 -0
  49. package/dist/runtime/components/LibNotifications/LibNotification.vue +48 -32
  50. package/dist/runtime/components/LibNotifications/LibNotifications.stories.d.ts +6 -0
  51. package/dist/runtime/components/LibNotifications/LibNotifications.stories.js +109 -0
  52. package/dist/runtime/components/LibNotifications/LibNotifications.vue +83 -63
  53. package/dist/runtime/components/LibPagination/LibPagination.stories.d.ts +6 -0
  54. package/dist/runtime/components/LibPagination/LibPagination.stories.js +40 -0
  55. package/dist/runtime/components/LibPagination/LibPagination.vue +111 -67
  56. package/dist/runtime/components/LibPalette/LibPalette.stories.d.ts +6 -0
  57. package/dist/runtime/components/LibPalette/LibPalette.stories.js +20 -0
  58. package/dist/runtime/components/LibPalette/LibPalette.vue +23 -20
  59. package/dist/runtime/components/LibPopup/LibPopup.stories.d.ts +14 -0
  60. package/dist/runtime/components/LibPopup/LibPopup.stories.js +147 -0
  61. package/dist/runtime/components/LibPopup/LibPopup.vue +351 -314
  62. package/dist/runtime/components/LibProgressBar/LibProgressBar.stories.d.ts +10 -0
  63. package/dist/runtime/components/LibProgressBar/LibProgressBar.stories.js +81 -0
  64. package/dist/runtime/components/LibProgressBar/LibProgressBar.vue +91 -70
  65. package/dist/runtime/components/LibRecorder/LibRecorder.stories.d.ts +19 -0
  66. package/dist/runtime/components/LibRecorder/LibRecorder.stories.js +63 -0
  67. package/dist/runtime/components/LibRecorder/LibRecorder.vue +177 -133
  68. package/dist/runtime/components/LibRoot/LibRoot.vue +100 -73
  69. package/dist/runtime/components/LibSimpleInput/LibSimpleInput.stories.d.ts +26 -0
  70. package/dist/runtime/components/LibSimpleInput/LibSimpleInput.stories.js +78 -0
  71. package/dist/runtime/components/LibSimpleInput/LibSimpleInput.vue +77 -49
  72. package/dist/runtime/components/LibSuggestions/LibSuggestions.stories.d.ts +27 -0
  73. package/dist/runtime/components/LibSuggestions/LibSuggestions.stories.js +112 -0
  74. package/dist/runtime/components/LibSuggestions/LibSuggestions.vue +156 -123
  75. package/dist/runtime/components/LibTable/LibTable.stories.d.ts +16 -0
  76. package/dist/runtime/components/LibTable/LibTable.stories.js +156 -0
  77. package/dist/runtime/components/LibTable/LibTable.vue +99 -63
  78. package/dist/runtime/components/Reset.stories.d.ts +5 -0
  79. package/dist/runtime/components/Reset.stories.js +19 -0
  80. package/dist/runtime/components/Scrolling.stories.d.ts +6 -0
  81. package/dist/runtime/components/Scrolling.stories.js +44 -0
  82. package/dist/runtime/components/Template/NAME.vue +36 -15
  83. package/dist/runtime/components/TestControls/TestControls.vue +9 -6
  84. package/dist/runtime/composables/useScrollNearContainerEdges.stories.d.ts +7 -0
  85. package/dist/runtime/composables/useScrollNearContainerEdges.stories.js +85 -0
  86. package/dist/types.d.mts +6 -2
  87. package/dist/types.d.ts +7 -0
  88. package/package.json +11 -5
  89. package/src/module.ts +2 -1
  90. package/src/runtime/assets/utils.css +5 -5
  91. package/src/runtime/components/LibButton/LibButton.vue +2 -6
  92. package/src/runtime/nuxt/plugins/vue-plugin.ts +1 -1
  93. package/dist/runtime/components/Aria/Aria.vue.d.ts +0 -5
  94. package/dist/runtime/components/Icon/Icon.vue.d.ts +0 -21
  95. package/dist/runtime/components/LibButton/LibButton.vue.d.ts +0 -36
  96. package/dist/runtime/components/LibCheckbox/LibCheckbox.vue.d.ts +0 -42
  97. package/dist/runtime/components/LibColorInput/LibColorInput.vue.d.ts +0 -63
  98. package/dist/runtime/components/LibColorPicker/LibColorPicker.vue.d.ts +0 -61
  99. package/dist/runtime/components/LibDarkModeSwitcher/LibDarkModeSwitcher.vue.d.ts +0 -22
  100. package/dist/runtime/components/LibDatePicker/LibDatePicker.vue.d.ts +0 -40
  101. package/dist/runtime/components/LibDatePicker/LibRangeDatePicker.vue.d.ts +0 -34
  102. package/dist/runtime/components/LibDatePicker/LibSingleDatePicker.vue.d.ts +0 -34
  103. package/dist/runtime/components/LibDatePicker/LibTimeZonePicker.vue.d.ts +0 -22
  104. package/dist/runtime/components/LibDebug/LibDebug.vue.d.ts +0 -32
  105. package/dist/runtime/components/LibDevOnly/LibDevOnly.vue.d.ts +0 -22
  106. package/dist/runtime/components/LibFileInput/LibFileInput.vue.d.ts +0 -43
  107. package/dist/runtime/components/LibInputDeprecated/LibInputDeprecated.vue.d.ts +0 -165
  108. package/dist/runtime/components/LibLabel/LibLabel.vue.d.ts +0 -27
  109. package/dist/runtime/components/LibMultiValues/LibMultiValues.vue.d.ts +0 -29
  110. package/dist/runtime/components/LibNotifications/LibNotification.vue.d.ts +0 -17
  111. package/dist/runtime/components/LibNotifications/LibNotifications.vue.d.ts +0 -13
  112. package/dist/runtime/components/LibPagination/LibPagination.vue.d.ts +0 -104
  113. package/dist/runtime/components/LibPalette/LibPalette.vue.d.ts +0 -14
  114. package/dist/runtime/components/LibPopup/LibPopup.vue.d.ts +0 -46
  115. package/dist/runtime/components/LibProgressBar/LibProgressBar.vue.d.ts +0 -41
  116. package/dist/runtime/components/LibRecorder/LibRecorder.vue.d.ts +0 -77
  117. package/dist/runtime/components/LibRoot/LibRoot.vue.d.ts +0 -41
  118. package/dist/runtime/components/LibSimpleInput/LibSimpleInput.vue.d.ts +0 -35
  119. package/dist/runtime/components/LibSuggestions/LibSuggestions.vue.d.ts +0 -94
  120. package/dist/runtime/components/LibTable/LibTable.vue.d.ts +0 -45
  121. package/dist/runtime/components/Template/NAME.vue.d.ts +0 -17
  122. package/dist/runtime/components/TestControls/TestControls.vue.d.ts +0 -5
@@ -1,36 +0,0 @@
1
- import { type ButtonHTMLAttributes } from "vue";
2
- import { type BaseInteractiveProps, type ButtonProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js.js";
3
- type RealProps = LinkableByIdProps & LabelProps & BaseInteractiveProps & ButtonProps;
4
- interface Props extends
5
- /** @vue-ignore */
6
- Partial<Omit<ButtonHTMLAttributes, "class" | "color" | "disabled"> & TailwindClassProp & {
7
- "aria-label": string;
8
- }>, RealProps {
9
- }
10
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
11
- color: "warning" | "ok" | "danger" | "primary" | "secondary" | false;
12
- label: string;
13
- disabled: boolean;
14
- readonly: boolean;
15
- border: boolean;
16
- unstyle: boolean;
17
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
18
- label?: (props: {
19
- id: string;
20
- classes: string;
21
- }) => any;
22
- } & {
23
- icon?: (props: {}) => any;
24
- } & {
25
- default?: (props: {
26
- label: any;
27
- }) => any;
28
- } & {
29
- 'icon-after'?: (props: {}) => any;
30
- }>;
31
- export default _default;
32
- type __VLS_WithSlots<T, S> = T & {
33
- new (): {
34
- $slots: S;
35
- };
36
- };
@@ -1,42 +0,0 @@
1
- import { type HTMLAttributes, type InputHTMLAttributes } from "vue";
2
- import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp, type WrapperProps } from "../shared/props.js.js";
3
- type WrapperTypes = Partial<WrapperProps<"label", HTMLAttributes, {
4
- /** Tailwind classes. */
5
- class?: string;
6
- }>>;
7
- type RealProps = LinkableByIdProps & LabelProps & BaseInteractiveProps & {
8
- unstyle?: boolean;
9
- };
10
- interface Props extends
11
- /** @vue-ignore */
12
- Partial<Omit<InputHTMLAttributes, "class" | "readonly" | "disabled" | "onSumbit"> & TailwindClassProp>,
13
- /** @vue-ignore */
14
- WrapperTypes, RealProps {
15
- }
16
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props & {
17
- modelValue?: boolean;
18
- }, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
- "update:modelValue": (value: boolean) => any;
20
- } & {
21
- submit: (val: boolean) => any;
22
- }, string, import("vue").PublicProps, Readonly<Props & {
23
- modelValue?: boolean;
24
- }> & Readonly<{
25
- onSubmit?: ((val: boolean) => any) | undefined;
26
- "onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
27
- }>, {
28
- disabled: boolean;
29
- readonly: boolean;
30
- border: boolean;
31
- unstyle: boolean;
32
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
33
- left?: (props: {}) => any;
34
- } & {
35
- default?: (props: {}) => any;
36
- }>;
37
- export default _default;
38
- type __VLS_WithSlots<T, S> = T & {
39
- new (): {
40
- $slots: S;
41
- };
42
- };
@@ -1,63 +0,0 @@
1
- import { type ButtonHTMLAttributes } from "vue";
2
- import type { HsvaColor, RgbaColor } from "../../types/index.js.js";
3
- import { type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js.js";
4
- type RealProps = LabelProps & LinkableByIdProps & {
5
- allowAlpha?: boolean;
6
- border?: boolean;
7
- /** See ColorPicker.copyTransform */
8
- copyTransform?: (val: HsvaColor, stringVal: string) => any;
9
- /** See ColorPicker.allowAlpha */
10
- stringPrecision?: number;
11
- /** See ColorPicker.customRepresentation */
12
- customRepresentation?: {
13
- fromHsvaToString: (hsva: HsvaColor, includeAlpha: boolean) => string;
14
- };
15
- };
16
- interface Props extends
17
- /** @vue-ignore */
18
- Partial<Omit<ButtonHTMLAttributes, "class"> & TailwindClassProp & {
19
- "aria-label": string;
20
- }>, RealProps {
21
- }
22
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props & {
23
- modelValue?: RgbaColor;
24
- tempValue?: RgbaColor | undefined;
25
- }, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
26
- "update:modelValue": (value: RgbaColor) => any;
27
- "update:tempValue": (value: RgbaColor | undefined) => any;
28
- } & {
29
- cancel: () => any;
30
- save: () => any;
31
- }, string, import("vue").PublicProps, Readonly<Props & {
32
- modelValue?: RgbaColor;
33
- tempValue?: RgbaColor | undefined;
34
- }> & Readonly<{
35
- "onUpdate:modelValue"?: ((value: RgbaColor) => any) | undefined;
36
- onCancel?: (() => any) | undefined;
37
- onSave?: (() => any) | undefined;
38
- "onUpdate:tempValue"?: ((value: RgbaColor | undefined) => any) | undefined;
39
- }>, {
40
- border: boolean;
41
- allowAlpha: boolean;
42
- stringPrecision: number;
43
- customRepresentation: {
44
- fromHsvaToString: (hsva: HsvaColor, includeAlpha: boolean) => string;
45
- };
46
- copyTransform: (val: HsvaColor, stringVal: string) => any;
47
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
48
- default?: (props: {
49
- stringColor: any;
50
- classes: any;
51
- }) => any;
52
- } & {
53
- temp?: (props: {
54
- tempStringColor: any;
55
- classes: any;
56
- }) => any;
57
- }>;
58
- export default _default;
59
- type __VLS_WithSlots<T, S> = T & {
60
- new (): {
61
- $slots: S;
62
- };
63
- };
@@ -1,61 +0,0 @@
1
- import type { HsvaColor, RgbaColor } from "../../types/index.js.js";
2
- import { type LabelProps, type LinkableByIdProps } from "../shared/props.js.js";
3
- type __VLS_Props = LabelProps & LinkableByIdProps & {
4
- allowAlpha?: boolean;
5
- /**
6
- * The precision of the rgba string representation of the color. Defaults to 3. Extra trailing zeros are removed for a prettier number.
7
- *
8
- * Does not affect the number saved unless the user manually edits the color.
9
- *
10
- * Ignored if `customRepresentation` is set.
11
- */
12
- stringPrecision?: number;
13
- /** Allows overriding the string representation of the color. Useful for using a different representation than rgba (e.g. hex). The fromStringToHsva part is rarely needed as the colorjs.io library can normally parse the color. Returning undefined signals an error. */
14
- customRepresentation?: {
15
- fromHsvaToString: (hsva: HsvaColor, includeAlpha: boolean) => string;
16
- fromStringToHsva?: (string: string) => HsvaColor | undefined;
17
- };
18
- border?: boolean;
19
- /** Modify what the user copies to the clipboard. */
20
- copyTransform?: (val: HsvaColor, stringVal: string) => any;
21
- valid?: boolean;
22
- };
23
- type __VLS_PublicProps = __VLS_Props & {
24
- modelValue?: RgbaColor;
25
- "tempValue"?: RgbaColor | undefined;
26
- };
27
- declare var __VLS_1: {}, __VLS_27: {};
28
- type __VLS_Slots = {} & {
29
- input?: (props: typeof __VLS_1) => any;
30
- } & {
31
- buttons?: (props: typeof __VLS_27) => any;
32
- };
33
- declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
34
- "update:modelValue": (value: RgbaColor) => any;
35
- "update:tempValue": (value: RgbaColor | undefined) => any;
36
- } & {
37
- cancel: () => any;
38
- save: (val: RgbaColor) => any;
39
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
40
- "onUpdate:modelValue"?: ((value: RgbaColor) => any) | undefined;
41
- onCancel?: (() => any) | undefined;
42
- onSave?: ((val: RgbaColor) => any) | undefined;
43
- "onUpdate:tempValue"?: ((value: RgbaColor | undefined) => any) | undefined;
44
- }>, {
45
- border: boolean;
46
- valid: boolean;
47
- allowAlpha: boolean;
48
- stringPrecision: number;
49
- customRepresentation: {
50
- fromHsvaToString: (hsva: HsvaColor, includeAlpha: boolean) => string;
51
- fromStringToHsva?: (string: string) => HsvaColor | undefined;
52
- };
53
- copyTransform: (val: HsvaColor, stringVal: string) => any;
54
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
55
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
56
- export default _default;
57
- type __VLS_WithSlots<T, S> = T & {
58
- new (): {
59
- $slots: S;
60
- };
61
- };
@@ -1,22 +0,0 @@
1
- import { type ButtonHTMLAttributes } from "vue";
2
- import type { TailwindClassProp } from "../shared/props.js.js";
3
- declare const _default: import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
4
- "update:darkMode": (value: boolean) => any;
5
- "update:darkModeState": (value: "system" | "dark" | "light") => any;
6
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
7
- "onUpdate:darkMode"?: ((value: boolean) => any) | undefined;
8
- "onUpdate:darkModeState"?: ((value: "system" | "dark" | "light") => any) | undefined;
9
- }>, {
10
- showLabel: boolean;
11
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
12
- export default _default;
13
- type RealProps = {
14
- showLabel?: boolean;
15
- };
16
- interface Props extends
17
- /** @vue-ignore */
18
- Partial<Omit<ButtonHTMLAttributes, "class" | "color" | "disabled"> & TailwindClassProp & {
19
- disabled?: boolean;
20
- unstyle?: boolean;
21
- }>, RealProps {
22
- }
@@ -1,40 +0,0 @@
1
- import type { RangeDate, SingleDate } from "../../types/index.js.js";
2
- type __VLS_Props = {
3
- showTime?: boolean;
4
- id?: string;
5
- /** The fallback suggested date when the modelValue is undefined (it will not update modelValue, it only serves as a suggestions and is used internally in the temporary value). If ignoring the time element, you should probably use the {@link createNoonTodayUtc} function (`createNonTodayUtc().toDate(())`) in the helpers, otherwise `new Date()` (the default) will do. */
6
- fallbackDate?: Date;
7
- /** The local user's timezone, defaults to @internationalized/date's getLocalTimeZone(). */
8
- timeZone?: string;
9
- };
10
- type __VLS_PublicProps = __VLS_Props & {
11
- /**
12
- * modelValue can be undefined or an object with start/end undefined, but it must be passed, otherwise we can't tell the difference between a single date and a range date.
13
- *
14
- * In the case of an undefined date, the current date at NOON UTC will be used to avoid the date changing.
15
- *
16
- * The @internationalized/date library's fromDate function is used internally to convert the date given (should be UTC) to the local time zone. It's converted back via it's toDate function.
17
- */
18
- modelValue: SingleDate | RangeDate;
19
- };
20
- declare var __VLS_8: any;
21
- type __VLS_Slots = {} & {
22
- default?: (props: typeof __VLS_8) => any;
23
- };
24
- declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
25
- "update:modelValue": (value: SingleDate | RangeDate) => any;
26
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
27
- "onUpdate:modelValue"?: ((value: SingleDate | RangeDate) => any) | undefined;
28
- }>, {
29
- id: string;
30
- fallbackDate: Date;
31
- timeZone: string;
32
- showTime: boolean;
33
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
34
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
35
- export default _default;
36
- type __VLS_WithSlots<T, S> = T & {
37
- new (): {
38
- $slots: S;
39
- };
40
- };
@@ -1,34 +0,0 @@
1
- import type { RangeDate } from "../../types/index.js.js";
2
- type __VLS_Props = {
3
- useTime?: boolean;
4
- id: string;
5
- fallbackDate?: Date;
6
- timeZone?: string;
7
- updateInterval?: number;
8
- };
9
- type __VLS_PublicProps = __VLS_Props & {
10
- modelValue: RangeDate;
11
- };
12
- declare var __VLS_167: {
13
- tempValue: any;
14
- };
15
- type __VLS_Slots = {} & {
16
- default?: (props: typeof __VLS_167) => any;
17
- };
18
- declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
- "update:modelValue": (value: RangeDate) => any;
20
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
21
- "onUpdate:modelValue"?: ((value: RangeDate) => any) | undefined;
22
- }>, {
23
- fallbackDate: Date;
24
- timeZone: string;
25
- useTime: boolean;
26
- updateInterval: number;
27
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
29
- export default _default;
30
- type __VLS_WithSlots<T, S> = T & {
31
- new (): {
32
- $slots: S;
33
- };
34
- };
@@ -1,34 +0,0 @@
1
- import type { SingleDate } from "../../types/index.js.js";
2
- type __VLS_Props = {
3
- useTime?: boolean;
4
- id: string;
5
- fallbackDate?: Date;
6
- timeZone?: string;
7
- updateInterval?: number;
8
- };
9
- type __VLS_PublicProps = __VLS_Props & {
10
- modelValue: SingleDate;
11
- };
12
- declare var __VLS_157: {
13
- tempValue: any;
14
- };
15
- type __VLS_Slots = {} & {
16
- default?: (props: typeof __VLS_157) => any;
17
- };
18
- declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
19
- "update:modelValue": (value: SingleDate) => any;
20
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
21
- "onUpdate:modelValue"?: ((value: SingleDate) => any) | undefined;
22
- }>, {
23
- fallbackDate: Date;
24
- timeZone: string;
25
- useTime: boolean;
26
- updateInterval: number;
27
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
28
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
29
- export default _default;
30
- type __VLS_WithSlots<T, S> = T & {
31
- new (): {
32
- $slots: S;
33
- };
34
- };
@@ -1,22 +0,0 @@
1
- type __VLS_PublicProps = {
2
- modelValue?: string;
3
- "label"?: string;
4
- };
5
- declare var __VLS_7: {};
6
- type __VLS_Slots = {} & {
7
- default?: (props: typeof __VLS_7) => any;
8
- };
9
- declare const __VLS_component: import("vue").DefineComponent<__VLS_PublicProps, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
- "update:modelValue": (value: string) => any;
11
- "update:label": (value: string) => any;
12
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
13
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
14
- "onUpdate:label"?: ((value: string) => any) | undefined;
15
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
16
- declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
17
- export default _default;
18
- type __VLS_WithSlots<T, S> = T & {
19
- new (): {
20
- $slots: S;
21
- };
22
- };
@@ -1,32 +0,0 @@
1
- /**
2
- * Simple debug component for displaying objects and strings with whitespace.
3
- *
4
- * In the case of objects, it JSON.stringifies them with a tab character. The tab width can be controlled with the `tab` prop, which will set the `tab-size` css property on the element.
5
- *
6
- * The value can be undefined, it will just display undefined.
7
- */
8
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
9
- /** The value to debug, can be anything. */
10
- value?: any;
11
- /** Sets the tab size in css. Defaults to 3. */
12
- tab?: number;
13
- title?: string;
14
- }, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
15
- /** The value to debug, can be anything. */
16
- value?: any;
17
- /** Sets the tab size in css. Defaults to 3. */
18
- tab?: number;
19
- title?: string;
20
- }> & Readonly<{}>, {
21
- value: any;
22
- title: string;
23
- tab: number;
24
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
25
- default?: (props: {}) => any;
26
- }>;
27
- export default _default;
28
- type __VLS_WithSlots<T, S> = T & {
29
- new (): {
30
- $slots: S;
31
- };
32
- };
@@ -1,22 +0,0 @@
1
- declare module "vue" {
2
- interface GlobalComponents {
3
- DevOnly: any;
4
- }
5
- }
6
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<{
7
- show?: boolean;
8
- }, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{
9
- show?: boolean;
10
- }> & Readonly<{}>, {
11
- show: boolean;
12
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
13
- default?: (props: {}) => any;
14
- } & {
15
- default?: (props: {}) => any;
16
- }>;
17
- export default _default;
18
- type __VLS_WithSlots<T, S> = T & {
19
- new (): {
20
- $slots: S;
21
- };
22
- };
@@ -1,43 +0,0 @@
1
- import { type HTMLAttributes, type InputHTMLAttributes } from "vue";
2
- import { type FileInputError } from "../../types/index.js.js";
3
- import { type LinkableByIdProps, type TailwindClassProp, type WrapperProps } from "../shared/props.js.js";
4
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
5
- input: (val: File[]) => any;
6
- errors: (val: FileInputError[]) => any;
7
- }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
8
- onInput?: ((val: File[]) => any) | undefined;
9
- onErrors?: ((val: FileInputError[]) => any) | undefined;
10
- }>, {
11
- multiple: boolean;
12
- formats: string[];
13
- compact: boolean;
14
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
15
- icon?: (props: {}) => any;
16
- } & {
17
- label?: (props: {}) => any;
18
- } & {
19
- formats?: (props: {}) => any;
20
- }>;
21
- export default _default;
22
- type WrapperTypes = WrapperProps<"input", InputHTMLAttributes> & WrapperProps<"wrapper", HTMLAttributes> & WrapperProps<"previews", HTMLAttributes>;
23
- type RealProps = LinkableByIdProps & {
24
- multiple?: boolean;
25
- /**
26
- * A list of extensions or mime types to add to the input's accept. Basic validations are done so that files match an extension and mimeType, but note that a file could still be lying, all files should be validated server side.
27
- *
28
- * Pass an empty array to allow any filetype.
29
- */
30
- formats?: string[];
31
- compact?: boolean;
32
- };
33
- interface Props extends
34
- /** @vue-ignore */
35
- Partial<Omit<InputHTMLAttributes, "class" | "multiple" | "formats" | "compact"> & TailwindClassProp>,
36
- /** @vue-ignore */
37
- Partial<WrapperTypes>, RealProps {
38
- }
39
- type __VLS_WithSlots<T, S> = T & {
40
- new (): {
41
- $slots: S;
42
- };
43
- };
@@ -1,165 +0,0 @@
1
- import { type HTMLAttributes, type InputHTMLAttributes } from "vue";
2
- import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type SuggestionsProps, type TailwindClassProp, type WrapperProps } from "../shared/props.js.js";
3
- type WrapperTypes = WrapperProps<"suggestions", HTMLAttributes> & WrapperProps<"wrapper", HTMLAttributes> & WrapperProps<"inner-wrapper", HTMLAttributes>;
4
- type RealProps = SuggestionsProps & LinkableByIdProps & LabelProps & BaseInteractiveProps & {
5
- suggestions?: SuggestionsProps["suggestions"];
6
- valid?: boolean;
7
- };
8
- interface Props extends
9
- /** @vue-ignore */
10
- Partial<Omit<InputHTMLAttributes, "class" | "readonly" | "disabled" | "onSubmit"> & TailwindClassProp>,
11
- /** @vue-ignore */
12
- Partial<WrapperTypes>, RealProps {
13
- }
14
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props & {
15
- values?: string[] | undefined;
16
- modelValue: string;
17
- inputValue?: string;
18
- }, {
19
- suggestionsComponent: import("vue").Ref<{
20
- suggestions: {
21
- list: any[] | undefined;
22
- filtered: any[] | undefined;
23
- active: number;
24
- available: boolean;
25
- moreThanOneAvailable: boolean;
26
- hasExactlyMatching: string | object | undefined;
27
- hasValidSuggestion: boolean;
28
- openable: boolean | undefined;
29
- getLabel: (item: any) => string;
30
- $open: boolean;
31
- open: () => void;
32
- close: () => void;
33
- enterSelected: (doClose?: boolean) => void;
34
- enterIndex: (num: number, doClose?: boolean) => void;
35
- toggle: () => void;
36
- cancel: () => void;
37
- select: (num: number) => void;
38
- prev: () => void;
39
- next: () => void;
40
- first: () => void;
41
- last: () => void;
42
- };
43
- el: HTMLElement | null;
44
- inputKeydownHandler: (e: KeyboardEvent) => void;
45
- inputBlurHandler: (e: MouseEvent) => void;
46
- inputFocusHandler: (e: FocusEvent) => void;
47
- } | null, import("vue").ShallowUnwrapRef<{
48
- suggestions: {
49
- list: any[] | undefined;
50
- filtered: any[] | undefined;
51
- active: number;
52
- available: boolean;
53
- moreThanOneAvailable: boolean;
54
- hasExactlyMatching: string | object | undefined;
55
- hasValidSuggestion: boolean;
56
- openable: boolean | undefined;
57
- getLabel: (item: any) => string;
58
- $open: boolean;
59
- open: () => void;
60
- close: () => void;
61
- enterSelected: (doClose?: boolean) => void;
62
- enterIndex: (num: number, doClose?: boolean) => void;
63
- toggle: () => void;
64
- cancel: () => void;
65
- select: (num: number) => void;
66
- prev: () => void;
67
- next: () => void;
68
- first: () => void;
69
- last: () => void;
70
- };
71
- el: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
72
- inputKeydownHandler: (e: KeyboardEvent) => void;
73
- inputBlurHandler: (e: MouseEvent) => void;
74
- inputFocusHandler: (e: FocusEvent) => void;
75
- }> | {
76
- suggestions: {
77
- list: any[] | undefined;
78
- filtered: any[] | undefined;
79
- active: number;
80
- available: boolean;
81
- moreThanOneAvailable: boolean;
82
- hasExactlyMatching: string | object | undefined;
83
- hasValidSuggestion: boolean;
84
- openable: boolean | undefined;
85
- getLabel: (item: any) => string;
86
- $open: boolean;
87
- open: () => void;
88
- close: () => void;
89
- enterSelected: (doClose?: boolean) => void;
90
- enterIndex: (num: number, doClose?: boolean) => void;
91
- toggle: () => void;
92
- cancel: () => void;
93
- select: (num: number) => void;
94
- prev: () => void;
95
- next: () => void;
96
- first: () => void;
97
- last: () => void;
98
- };
99
- el: HTMLElement | null;
100
- inputKeydownHandler: (e: KeyboardEvent) => void;
101
- inputBlurHandler: (e: MouseEvent) => void;
102
- inputFocusHandler: (e: FocusEvent) => void;
103
- } | null>;
104
- el: import("vue").Ref<HTMLElement | null, HTMLElement | null>;
105
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
106
- "update:modelValue": (value: string) => any;
107
- "update:inputValue": (value: string) => any;
108
- "update:values": (value: string[] | undefined) => any;
109
- } & {
110
- blur: (val: FocusEvent) => any;
111
- input: (val: InputEvent) => any;
112
- submit: (val: string, suggestion?: any) => any;
113
- keydown: (val: KeyboardEvent) => any;
114
- focus: (val: FocusEvent) => any;
115
- indicatorClick: (val: MouseEvent) => any;
116
- }, string, import("vue").PublicProps, Readonly<Props & {
117
- values?: string[] | undefined;
118
- modelValue: string;
119
- inputValue?: string;
120
- }> & Readonly<{
121
- onBlur?: ((val: FocusEvent) => any) | undefined;
122
- onInput?: ((val: InputEvent) => any) | undefined;
123
- onSubmit?: ((val: string, suggestion?: any) => any) | undefined;
124
- "onUpdate:modelValue"?: ((value: string) => any) | undefined;
125
- "onUpdate:inputValue"?: ((value: string) => any) | undefined;
126
- "onUpdate:values"?: ((value: string[] | undefined) => any) | undefined;
127
- onKeydown?: ((val: KeyboardEvent) => any) | undefined;
128
- onFocus?: ((val: FocusEvent) => any) | undefined;
129
- onIndicatorClick?: ((val: MouseEvent) => any) | undefined;
130
- }>, {
131
- disabled: boolean;
132
- readonly: boolean;
133
- border: boolean;
134
- unstyle: boolean;
135
- valid: boolean;
136
- suggestions: any[];
137
- updateOnlyOnSubmit: boolean;
138
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
139
- label?: (props: any) => any;
140
- } & {
141
- default?: (props: any) => any;
142
- } & {
143
- left?: (props: any) => any;
144
- } & {
145
- input?: (props: any) => any;
146
- } & {
147
- indicator?: (props: {
148
- isOpen: any;
149
- suggestionsIndicatorClickHandler: any;
150
- }) => any;
151
- } & {
152
- values?: (props: any) => any;
153
- } & {
154
- right?: (props: any) => any;
155
- } & {
156
- suggestions?: (props: any) => any;
157
- } & {
158
- 'suggestion-item'?: (props: any) => any;
159
- }>;
160
- export default _default;
161
- type __VLS_WithSlots<T, S> = T & {
162
- new (): {
163
- $slots: S;
164
- };
165
- };
@@ -1,27 +0,0 @@
1
- import { type LabelHTMLAttributes } from "vue";
2
- import { type BaseInteractiveProps, type LabelProps, type LinkableByIdProps, type TailwindClassProp } from "../shared/props.js.js";
3
- type RealProps = LinkableByIdProps & LabelProps & BaseInteractiveProps & {
4
- unstyled?: boolean;
5
- valid?: boolean;
6
- };
7
- interface Props extends
8
- /** @vue-ignore */
9
- Partial<Omit<LabelHTMLAttributes, "class"> & TailwindClassProp>, RealProps {
10
- }
11
- declare const _default: __VLS_WithSlots<import("vue").DefineComponent<Props, void, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
12
- id: string;
13
- disabled: boolean;
14
- readonly: boolean;
15
- border: boolean;
16
- unstyle: boolean;
17
- unstyled: boolean;
18
- valid: boolean;
19
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>, {
20
- default?: (props: {}) => any;
21
- }>;
22
- export default _default;
23
- type __VLS_WithSlots<T, S> = T & {
24
- new (): {
25
- $slots: S;
26
- };
27
- };