@point-hub/papp 0.0.123 → 0.0.125

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.
@@ -0,0 +1,66 @@
1
+ import { BaseFormLayoutType } from './base-form.vue';
2
+ export type BaseMentionBorderType = "simple" | "full" | "none";
3
+ export interface IMentionOption {
4
+ id: number | string;
5
+ label: string;
6
+ link?: string;
7
+ }
8
+ export type MentionOptionsMap = Record<string, IMentionOption[]>;
9
+ export interface Props {
10
+ modelValue: string;
11
+ id?: string;
12
+ label?: string;
13
+ description?: string;
14
+ placeholder?: string;
15
+ border?: BaseMentionBorderType;
16
+ layout?: BaseFormLayoutType;
17
+ maxlength?: number;
18
+ autofocus?: boolean;
19
+ required?: boolean;
20
+ readonly?: boolean;
21
+ disabled?: boolean;
22
+ helpers?: string[];
23
+ minHeight?: number;
24
+ maxHeight?: number;
25
+ dataTestid?: string;
26
+ options: MentionOptionsMap;
27
+ triggers?: string[];
28
+ loading?: boolean;
29
+ }
30
+ type __VLS_Props = Props;
31
+ type __VLS_PublicProps = {
32
+ "errors"?: string[];
33
+ } & __VLS_Props;
34
+ declare const _default: import('vue').DefineComponent<__VLS_PublicProps, {
35
+ textareaRef: import('vue').Ref<HTMLTextAreaElement | undefined, HTMLTextAreaElement | undefined>;
36
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
37
+ "update:errors": (value: string[]) => any;
38
+ } & {
39
+ search: (payload: {
40
+ trigger: string;
41
+ query: string;
42
+ }) => any;
43
+ "update:modelValue": (value: string) => any;
44
+ "update:mentions": (mentions: IMentionOption[]) => any;
45
+ }, string, import('vue').PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
46
+ onSearch?: ((payload: {
47
+ trigger: string;
48
+ query: string;
49
+ }) => any) | undefined;
50
+ "onUpdate:modelValue"?: ((value: string) => any) | undefined;
51
+ "onUpdate:errors"?: ((value: string[]) => any) | undefined;
52
+ "onUpdate:mentions"?: ((mentions: IMentionOption[]) => any) | undefined;
53
+ }>, {
54
+ required: boolean;
55
+ disabled: boolean;
56
+ layout: BaseFormLayoutType;
57
+ readonly: boolean;
58
+ border: BaseMentionBorderType;
59
+ autofocus: boolean;
60
+ options: MentionOptionsMap;
61
+ triggers: string[];
62
+ loading: boolean;
63
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
64
+ textareaRef: HTMLTextAreaElement;
65
+ }, any>;
66
+ export default _default;
@@ -1,5 +1,5 @@
1
1
  export declare function useDarkMode(): {
2
- isDarkMode: import('vue').Ref<boolean, boolean>;
2
+ isDarkMode: import('vue').Ref<boolean | undefined, boolean | undefined>;
3
3
  toggleDarkMode: () => void;
4
4
  setDarkMode: (mode: "dark" | "light") => void;
5
5
  loadDarkMode: () => void;