@leaflink/stash 48.3.1 → 48.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/assets/icons/font-bold.svg +1 -0
- package/assets/icons/font-clear-format.svg +1 -0
- package/assets/icons/font-italic.svg +1 -0
- package/assets/icons/font-underline.svg +1 -0
- package/assets/icons/help-question-mark.svg +1 -0
- package/assets/icons/list-bulleted.svg +1 -0
- package/assets/icons/list-numbered.svg +1 -0
- package/assets/spritesheet.svg +1 -1
- package/dist/AppNavigationItem.vue.d.ts +1 -1
- package/dist/Icon.js +24 -17
- package/dist/Icon.js.map +1 -1
- package/dist/Icon.vue.d.ts +1 -1
- package/dist/IconLabel.vue.d.ts +1 -1
- package/dist/QuickAction.vue.d.ts +1 -1
- package/dist/SelectStatus.vue.d.ts +1 -1
- package/dist/Table.js +33 -27
- package/dist/Table.js.map +1 -1
- package/dist/TextEditor.js +6967 -0
- package/dist/TextEditor.js.map +1 -0
- package/dist/TextEditor.vue.d.ts +191 -0
- package/dist/components.css +7 -1
- package/package.json +2 -1
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
import { AllowedComponentProps } from 'vue';
|
|
2
|
+
import { ComponentCustomProps } from 'vue';
|
|
3
|
+
import { ComponentOptionsMixin } from 'vue';
|
|
4
|
+
import { DefineComponent } from 'vue';
|
|
5
|
+
import { ExtractPropTypes } from 'vue';
|
|
6
|
+
import { PropType } from 'vue';
|
|
7
|
+
import Quill from 'quill';
|
|
8
|
+
import Toolbar from 'quill/modules/toolbar';
|
|
9
|
+
import { VNodeProps } from 'vue';
|
|
10
|
+
|
|
11
|
+
declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
12
|
+
|
|
13
|
+
declare type __VLS_Prettify<T> = {
|
|
14
|
+
[K in keyof T]: T[K];
|
|
15
|
+
} & {};
|
|
16
|
+
|
|
17
|
+
declare type __VLS_TypePropsToRuntimeProps<T> = {
|
|
18
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
19
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
20
|
+
} : {
|
|
21
|
+
type: PropType<T[K]>;
|
|
22
|
+
required: true;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
declare type __VLS_WithDefaults<P, D> = {
|
|
27
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
28
|
+
default: D[K];
|
|
29
|
+
}> : P[K];
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TextEditorProps>, {
|
|
33
|
+
modelValue: string;
|
|
34
|
+
placeholder: string;
|
|
35
|
+
isReadOnly: boolean;
|
|
36
|
+
addBottomSpace: boolean;
|
|
37
|
+
errorText: undefined;
|
|
38
|
+
hintText: undefined;
|
|
39
|
+
id: undefined;
|
|
40
|
+
isRequired: boolean;
|
|
41
|
+
label: undefined;
|
|
42
|
+
showOptionalInLabel: boolean;
|
|
43
|
+
controls: () => never[];
|
|
44
|
+
handlers: () => {};
|
|
45
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
46
|
+
blur: (editor: Quill) => void;
|
|
47
|
+
focus: (editor: Quill) => void;
|
|
48
|
+
"update:model-value": (value: string) => void;
|
|
49
|
+
}, string, VNodeProps & AllowedComponentProps & ComponentCustomProps, Readonly<ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<TextEditorProps>, {
|
|
50
|
+
modelValue: string;
|
|
51
|
+
placeholder: string;
|
|
52
|
+
isReadOnly: boolean;
|
|
53
|
+
addBottomSpace: boolean;
|
|
54
|
+
errorText: undefined;
|
|
55
|
+
hintText: undefined;
|
|
56
|
+
id: undefined;
|
|
57
|
+
isRequired: boolean;
|
|
58
|
+
label: undefined;
|
|
59
|
+
showOptionalInLabel: boolean;
|
|
60
|
+
controls: () => never[];
|
|
61
|
+
handlers: () => {};
|
|
62
|
+
}>>> & {
|
|
63
|
+
onFocus?: ((editor: Quill) => any) | undefined;
|
|
64
|
+
onBlur?: ((editor: Quill) => any) | undefined;
|
|
65
|
+
"onUpdate:model-value"?: ((value: string) => any) | undefined;
|
|
66
|
+
}, {
|
|
67
|
+
id: string;
|
|
68
|
+
label: string;
|
|
69
|
+
placeholder: string;
|
|
70
|
+
controls: TextEditorControls;
|
|
71
|
+
isRequired: boolean;
|
|
72
|
+
addBottomSpace: boolean;
|
|
73
|
+
errorText: string;
|
|
74
|
+
hintText: string;
|
|
75
|
+
isReadOnly: boolean;
|
|
76
|
+
showOptionalInLabel: boolean;
|
|
77
|
+
modelValue: string;
|
|
78
|
+
handlers: TextEditorControlHandlerMap;
|
|
79
|
+
}, {}>;
|
|
80
|
+
export default _default;
|
|
81
|
+
|
|
82
|
+
declare type IconName = typeof iconNames[number];
|
|
83
|
+
|
|
84
|
+
declare const iconNames: readonly ["action-dots", "activity", "alert-bell", "archive", "arrow-down", "arrow-left", "arrow-right", "arrow-up", "badge-discount", "badge-seller-elite", "badge-seller-power", "badge-seller-verified", "book-customer", "building-office", "bulk-add", "calendar-reschedule", "calendar", "caret-down", "caret-up", "cart-active", "cart-plus", "change-log", "check", "chevron-down", "chevron-left", "chevron-right", "chevron-up", "circle-check", "circle-close", "circle-dollar", "circle-info", "circle-partial", "circle-percent", "circle-question-mark", "circle-status", "circle-warning", "clipboard-checkmark", "clipboard-inventory", "close", "combine", "compass", "contact", "contract", "copy", "credit-card", "credit-profile", "dashboard", "document-accept", "document-invoice", "document-recieved", "document-sent", "document-view", "document", "dolly", "download", "edit", "ellipsis", "envelope-open", "envelope", "export", "figma", "file-csv", "file", "filter-funnel", "filter-line", "flag", "folder", "folder-bar-graph", "folder-orders", "font-bold", "font-clear-format", "font-italic", "font-underline", "gear", "github", "globe", "graph-bar-chart", "graph-line-chart", "graph-pie-chart", "hazard", "hazard-outline", "headset-agent", "headset-mic", "heart-filled", "heart-outline", "help-question-mark", "hide", "history", "image", "keyboard-return", "license-approved", "license-certificate", "lightbulb", "link-add", "link-unlink", "link", "list-bulleted", "list-items", "list-numbered", "loading-big", "loading-small", "location", "lock-unlock", "lock", "logo-facebook", "logo-instagram", "logo-linkedin", "logo-ll", "logo-metrc", "logo-plaid", "logo-x", "logo-youtube", "logout", "medical", "megaphone-sound", "megaphone", "menu", "message-dispute", "message-reply", "message", "minus", "mj-leaf", "money", "note-add", "note", "open-in-new", "paperclip", "performance", "phone", "plus", "preview", "print", "product-menu-manage", "product-menu-search", "product-menu", "queue-add", "queue", "recent", "refresh", "register", "reply", "report-download", "sample", "save", "scale-law", "scale-weight", "search", "seed-cycle", "share", "shop-bag-browse", "shop-bag-reorder", "shop-bag", "shop-basket", "shop-cart-add", "shop-cart", "show", "sign-dollar", "sign-percent", "sort", "split", "star-filled", "star-outline", "storefront", "submit", "swap-horizontal", "swap-vertical", "tag-star", "tag", "test-results", "ticket-star", "ticket", "tool-dropper", "tool-wrench", "transfer", "trashcan", "truck", "upload", "user-add", "user-admin", "user-check", "user", "view-card", "view-detailed", "view-list", "warehouse", "working"];
|
|
85
|
+
|
|
86
|
+
declare const TEXT_EDITOR_ALLOWED_CONTROLS: readonly ["bold", "italic", "underline", "link", "divider", "list"];
|
|
87
|
+
|
|
88
|
+
export declare type TextEditorAllowedControlName = typeof TEXT_EDITOR_ALLOWED_CONTROLS[number];
|
|
89
|
+
|
|
90
|
+
export declare type TextEditorControl = (TextEditorAllowedControlName | TextEditorControlObject)[];
|
|
91
|
+
|
|
92
|
+
export declare type TextEditorControlHandler = (this: Toolbar, value: any) => void;
|
|
93
|
+
|
|
94
|
+
export declare type TextEditorControlHandlerMap = {
|
|
95
|
+
[key in TextEditorAllowedControlName]?: TextEditorControlHandler;
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
export declare type TextEditorControlMatrix = (TextEditorAllowedControlName | TextEditorControlObject)[][];
|
|
99
|
+
|
|
100
|
+
export declare type TextEditorControlObject = {
|
|
101
|
+
[key in TextEditorAllowedControlName]?: unknown;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
/**
|
|
105
|
+
* Toolbar Controls used to configure the Editor options.
|
|
106
|
+
* @see https://quilljs.com/docs/modules/toolbar/#controls
|
|
107
|
+
*
|
|
108
|
+
* @example ['bold', 'italic', 'underline', { list: 'bullet' }]
|
|
109
|
+
*
|
|
110
|
+
* @example Grouping: [
|
|
111
|
+
* ['bold', 'italic', 'underline', 'clean'],
|
|
112
|
+
* [{ list: 'ordered' }, { list: 'bullet' }],
|
|
113
|
+
* ['link', 'divider'],
|
|
114
|
+
* ]
|
|
115
|
+
*/
|
|
116
|
+
export declare type TextEditorControls = TextEditorControl | TextEditorControlMatrix;
|
|
117
|
+
|
|
118
|
+
export declare interface TextEditorFormat {
|
|
119
|
+
name: TextEditorAllowedControlName;
|
|
120
|
+
icon?: IconName;
|
|
121
|
+
value?: string;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export declare type TextEditorFormatGroups = TextEditorFormat[][];
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* The text editor icon map property can be either an IconName or an object with a key being some TextEditorAllowedControlName values
|
|
128
|
+
* @see https://quilljs.com/docs/modules/toolbar/#container for more options and compare with the TextEditorAllowedControlName
|
|
129
|
+
*/
|
|
130
|
+
export declare type TextEditorIconMap = {
|
|
131
|
+
[key in TextEditorAllowedControlName]: IconName | {
|
|
132
|
+
[x: string]: IconName;
|
|
133
|
+
};
|
|
134
|
+
};
|
|
135
|
+
|
|
136
|
+
export declare interface TextEditorProps {
|
|
137
|
+
/**
|
|
138
|
+
* The model value.
|
|
139
|
+
*/
|
|
140
|
+
modelValue?: string;
|
|
141
|
+
/**
|
|
142
|
+
* Placeholder text to display when the editor is empty.
|
|
143
|
+
*/
|
|
144
|
+
placeholder?: string;
|
|
145
|
+
/**
|
|
146
|
+
* A set of custom toolbar controls to pass to the Quill editor.
|
|
147
|
+
*/
|
|
148
|
+
controls?: TextEditorControls;
|
|
149
|
+
/**
|
|
150
|
+
* An object map of custom handlers to pass to the Quill editor.
|
|
151
|
+
*/
|
|
152
|
+
handlers?: TextEditorControlHandlerMap;
|
|
153
|
+
/**
|
|
154
|
+
* Adds spacing under the field that is consistent whether hint/error text is displayed.
|
|
155
|
+
*/
|
|
156
|
+
addBottomSpace?: boolean;
|
|
157
|
+
/**
|
|
158
|
+
* Error text to display. Replaces `hintText` (if provided) & adds error styling.
|
|
159
|
+
*/
|
|
160
|
+
errorText?: string;
|
|
161
|
+
/**
|
|
162
|
+
* Displays text below the input; hidden when the isReadOnly prop is truthy.
|
|
163
|
+
*/
|
|
164
|
+
hintText?: string;
|
|
165
|
+
/**
|
|
166
|
+
* ID for the Label and Input; must be unique
|
|
167
|
+
*/
|
|
168
|
+
id?: string;
|
|
169
|
+
/**
|
|
170
|
+
* Whether it's a readonly field.
|
|
171
|
+
*/
|
|
172
|
+
isReadOnly?: boolean;
|
|
173
|
+
/**
|
|
174
|
+
* Whether the field is required.
|
|
175
|
+
*/
|
|
176
|
+
isRequired?: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* Label to render above the input.
|
|
179
|
+
*/
|
|
180
|
+
label?: string;
|
|
181
|
+
/**
|
|
182
|
+
* Show "(optional)" to the right of the label text
|
|
183
|
+
*/
|
|
184
|
+
showOptionalInLabel?: boolean;
|
|
185
|
+
/**
|
|
186
|
+
* Whether the field is disabled.
|
|
187
|
+
*/
|
|
188
|
+
isDisabled?: boolean;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
export { }
|