@bagelink/vue 1.20.36 → 1.20.43
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/dist/components/Image.vue.d.ts +2 -0
- package/dist/components/Image.vue.d.ts.map +1 -1
- package/dist/components/charts/StatCard.vue.d.ts +3 -0
- package/dist/components/charts/StatCard.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/DatePicker.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/composables/useCommands.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/index.vue.d.ts +10 -1
- package/dist/components/form/inputs/RichText/index.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/utils/commands.d.ts.map +1 -1
- package/dist/components/form/inputs/RichText/utils/htmlFormat.d.ts +33 -0
- package/dist/components/form/inputs/RichText/utils/htmlFormat.d.ts.map +1 -0
- package/dist/components/form/inputs/RichText/utils/viewMode.d.ts +4 -0
- package/dist/components/form/inputs/RichText/utils/viewMode.d.ts.map +1 -0
- package/dist/components/form/inputs/Upload/AssetUploadInput.vue.d.ts +146 -2
- package/dist/components/form/inputs/Upload/AssetUploadInput.vue.d.ts.map +1 -1
- package/dist/components/form/inputs/Upload/UploadInput.vue.d.ts +78 -1
- package/dist/components/form/inputs/Upload/UploadInput.vue.d.ts.map +1 -1
- package/dist/components/lightbox/Lightbox.vue.d.ts.map +1 -1
- package/dist/core.css +2 -2
- package/dist/index.cjs +82 -54
- package/dist/index.css +1 -1
- package/dist/index.mjs +11484 -11207
- package/dist/style.css +2 -2
- package/package.json +2 -2
- package/src/components/Image.vue +8 -0
- package/src/components/charts/StatCard.vue +7 -1
- package/src/components/form/inputs/DateInput.vue +1 -1
- package/src/components/form/inputs/DatePicker.vue +5 -1
- package/src/components/form/inputs/RichText/composables/useCommands.ts +3 -2
- package/src/components/form/inputs/RichText/editor.css +25 -6
- package/src/components/form/inputs/RichText/index.vue +59 -14
- package/src/components/form/inputs/RichText/utils/commands.ts +3 -2
- package/src/components/form/inputs/RichText/utils/htmlFormat.ts +268 -0
- package/src/components/form/inputs/RichText/utils/viewMode.ts +28 -0
- package/src/components/form/inputs/Upload/AssetUploadInput.vue +7 -3
- package/src/components/form/inputs/Upload/UploadInput.vue +2 -1
- package/src/components/lightbox/Lightbox.vue +18 -12
- package/src/styles/rich-content.css +31 -5
|
@@ -22,6 +22,8 @@ interface ImageProps {
|
|
|
22
22
|
blend?: string;
|
|
23
23
|
/** Rounded corners — true (default radius) or a px radius. */
|
|
24
24
|
rounded?: boolean | number;
|
|
25
|
+
/** Defer the download until the image nears the viewport. */
|
|
26
|
+
lazy?: boolean;
|
|
25
27
|
}
|
|
26
28
|
declare function __VLS_template(): {
|
|
27
29
|
attrs: Partial<{}>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Image.vue.d.ts","sourceRoot":"","sources":["../../src/components/Image.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Image.vue.d.ts","sourceRoot":"","sources":["../../src/components/Image.vue"],"names":[],"mappings":"AAwMA,OAAO,KAAK,EAAE,oBAAoB,EAAE,YAAY,EAAE,MAAM,WAAW,CAAA;AAGnE,UAAU,UAAU;IACnB,GAAG,CAAC,EAAE,MAAM,GAAG,oBAAoB,CAAA;IACnC,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,6DAA6D;IAC7D,OAAO,CAAC,EAAE,YAAY,CAAA;IACtB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,gHAAgH;IAChH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,yKAAyK;IACzK,QAAQ,CAAC,EAAE,MAAM,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IACpC,iFAAiF;IACjF,GAAG,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,YAAY,CAAA;IAC1D,mFAAmF;IACnF,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,8DAA8D;IAC9D,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IAC1B,6DAA6D;IAC7D,IAAI,CAAC,EAAE,OAAO,CAAA;CACd;AAgED,iBAAS,cAAc;WAgKT,OAAO,IAA6B;;yBAXpB,GAAG;;;;EAgBhC;AAsBD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe,gSAMnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAQpG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -15,6 +15,9 @@ type __VLS_Props = {
|
|
|
15
15
|
prefix?: string;
|
|
16
16
|
suffix?: string;
|
|
17
17
|
subtitle?: string;
|
|
18
|
+
/** Small muted line under the value — a secondary figure such as
|
|
19
|
+
"1,080 unique" without inflating the headline number. */
|
|
20
|
+
caption?: string;
|
|
18
21
|
loading?: boolean;
|
|
19
22
|
/** Outlined card (transparent bg + border), like `<Card outline>`. */
|
|
20
23
|
outline?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"StatCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/charts/StatCard.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"StatCard.vue.d.ts","sourceRoot":"","sources":["../../../src/components/charts/StatCard.vue"],"names":[],"mappings":"AAyGA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AAG3C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAA;AAI5C,KAAK,WAAW,GAAG;IAClB,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,GAAG,MAAM,CAAA;IACtB,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,SAAS,GAAG,MAAM,CAAA;IAC1B,6DAA6D;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,+DAA+D;IAC/D,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,uCAAuC;IACvC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB;gEAC4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,sEAAsE;IACtE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,iDAAiD;IACjD,KAAK,CAAC,EAAE,OAAO,CAAA;CACf,CAAC;;WAnBO,SAAS,GAAG,MAAM;;AAoM3B,wBAQG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/DatePicker.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"DatePicker.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/DatePicker.vue"],"names":[],"mappings":"AAqqBA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,KAAK,CAAA;AAC3C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iCAAiC,CAAA;AAG/D,OAAa,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAA;AAEnE,MAAM,WAAW,cAAc;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,GAAG,CAAC,EAAE,MAAM,CAAA;CACZ;AAED,KAAK,WAAW,GAAG;IACjB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,cAAc,CAAA;IAC3C,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACnB,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,cAAc,CAAC,EAAE,cAAc,CAAA;IAC/B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,gBAAgB,CAAC,EAAE,gBAAgB,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC,CAAA;IACtD,aAAa,CAAC,EAAE,gBAAgB,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC,CAAA;IACnD,YAAY,CAAC,EAAE,gBAAgB,CAAC,CAAC,MAAM,GAAG,IAAI,CAAC,EAAE,CAAC,CAAA;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAA;CAClB,CAAC;;;;;;;;UAdM,QAAQ;YAEN,MAAM;WAOP,OAAO;gBANF,OAAO;oBAFH,cAAc;;AAo4BjC,wBASG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useCommands.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/inputs/RichText/composables/useCommands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"useCommands.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/inputs/RichText/composables/useCommands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAKnD,wBAAgB,WAAW,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,CAAC,EAAE;IAAE,UAAU,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;CAAE;uBAU5F,MAAM,UAAU,MAAM;;;EAoF1C"}
|
|
@@ -30,6 +30,13 @@ type __VLS_Props = {
|
|
|
30
30
|
maxWords?: number;
|
|
31
31
|
contentStyles?: string;
|
|
32
32
|
uploadImage?: (file: File) => Promise<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Indent the HTML in split view for readability. Breaks are added between
|
|
35
|
+
* block-level siblings only — never inside paragraphs or inline markup — and
|
|
36
|
+
* are collapsed again before the value reaches the document, so the rendered
|
|
37
|
+
* and emitted content is unchanged. Set to `false` to show the raw markup.
|
|
38
|
+
*/
|
|
39
|
+
splitViewFormat?: boolean;
|
|
33
40
|
} & BagelInputShellProps;
|
|
34
41
|
declare function __VLS_template(): {
|
|
35
42
|
attrs: Partial<{}>;
|
|
@@ -164,7 +171,9 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {
|
|
|
164
171
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
165
172
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
166
173
|
"onLimit-exceeded"?: ((...args: any[]) => any) | undefined;
|
|
167
|
-
}>, {
|
|
174
|
+
}>, {
|
|
175
|
+
splitViewFormat: boolean;
|
|
176
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
168
177
|
iframe: HTMLIFrameElement;
|
|
169
178
|
}, any>;
|
|
170
179
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/RichText/index.vue"],"names":[],"mappings":"AACA;
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/RichText/index.vue"],"names":[],"mappings":"AACA;AA6iJA,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAiChH,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AAS9D,KAAK,WAAW,GAAG;IAClB,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IAC1B,aAAa,CAAC,EAAE,aAAa,CAAA;IAC7B,oBAAoB,CAAC,EAAE,mBAAmB,EAAE,CAAA;IAC5C,UAAU,CAAC,EAAE,KAAK,CAAC,iBAAiB,GAAG,MAAM,CAAC,CAAA;IAC9C,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAExB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,WAAW,CAAC,EAAE,MAAM,CAAA;IAEpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,aAAa,CAAC,EAAE,OAAO,CAAA;IACvB,cAAc,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAElB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IAEf,SAAS,CAAC,EAAE,OAAO,CAAA;IAEnB,SAAS,CAAC,EAAE,MAAM,CAAA;IAElB,QAAQ,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IAE1B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAA;IAEjB,aAAa,CAAC,EAAE,MAAM,CAAA;IAEtB,WAAW,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC,MAAM,CAAC,CAAA;IAC7C;;;;;OAKG;IACH,eAAe,CAAC,EAAE,OAAO,CAAA;CACzB,GAAG,oBAAoB,CAAC;AAsqHzB,iBAAS,cAAc;WA8/DT,OAAO,IAA6B;;;;YAXf,GAAG;;;;;;EAgBrC;AA4FD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDA91LrB,CAxiJ6E;;mDAwiJ7E,CAtiJiD;;;;+CAsiJjD,CApiJwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBA2nJrB,OAAO;;;OAixLxB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/inputs/RichText/utils/commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/inputs/RichText/utils/commands.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAkBnD,MAAM,WAAW,OAAO;IACvB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,CAAC,KAAK,EAAE,WAAW,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IACrD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,OAAO,CAAA;IAC1C,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,MAAM,GAAG,IAAI,CAAA;CAChD;AAED,MAAM,WAAW,eAAe;IAC/B,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,eAAe;IAC/B,OAAO,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,KAAK,IAAI,CAAA;IAClD,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,OAAO,CAAA;IACtC,QAAQ,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,MAAM,GAAG,IAAI,CAAA;CAC5C;AA08BD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,WAAW,GAAG,eAAe,CAqgBzE;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,eAAe,GAAG,eAAe,CAiBpG"}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Block-aware HTML formatting for the rich-text split view.
|
|
3
|
+
*
|
|
4
|
+
* The split view is a plain `<textarea>` laid transparently over highlighted
|
|
5
|
+
* output, so every line break the user *sees* is a line break in the model. There
|
|
6
|
+
* is no "display only" formatting to be had — which is why this module only ever
|
|
7
|
+
* touches whitespace, and only where HTML guarantees it is invisible: between two
|
|
8
|
+
* block-level siblings. Collapsible whitespace there generates no box at all, so
|
|
9
|
+
* the rendered document is unchanged.
|
|
10
|
+
*
|
|
11
|
+
* Deliberately string-based rather than DOM-based. Round-tripping through
|
|
12
|
+
* `DOMParser`/`innerHTML` would silently rewrite the document (entity references,
|
|
13
|
+
* attribute quoting, `<br/>` → `<br>`, tag case, invalid nesting), which is far
|
|
14
|
+
* worse than an unformatted view. Here every byte that is not removed whitespace
|
|
15
|
+
* is copied verbatim, and the two functions are exact inverses:
|
|
16
|
+
*
|
|
17
|
+
* collapseBlockWhitespace(formatBlockHtml(html)) === collapseBlockWhitespace(html)
|
|
18
|
+
*
|
|
19
|
+
* `formatBlockHtml` is cosmetic; `collapseBlockWhitespace` runs on every write
|
|
20
|
+
* back to the document, so stored and emitted content stays in the same canonical
|
|
21
|
+
* form as before.
|
|
22
|
+
*/
|
|
23
|
+
/**
|
|
24
|
+
* Adds indentation between block-level siblings only.
|
|
25
|
+
* Returns the input untouched when the result cannot be proven equivalent.
|
|
26
|
+
*/
|
|
27
|
+
export declare function formatBlockHtml(html: string, indent?: string): string;
|
|
28
|
+
/**
|
|
29
|
+
* Inverse of {@link formatBlockHtml}: removes whitespace that sits at a block
|
|
30
|
+
* boundary and copies every other byte unchanged.
|
|
31
|
+
*/
|
|
32
|
+
export declare function collapseBlockWhitespace(html: string): string;
|
|
33
|
+
//# sourceMappingURL=htmlFormat.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"htmlFormat.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/inputs/RichText/utils/htmlFormat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AA4NH;;;GAGG;AACH,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,SAAO,GAAG,MAAM,CAanE;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAG5D"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"viewMode.d.ts","sourceRoot":"","sources":["../../../../../../src/components/form/inputs/RichText/utils/viewMode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAA;AAUnD,wBAAgB,eAAe,CAAC,KAAK,EAAE,WAAW,QAEjD;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,WAAW,QAalD"}
|
|
@@ -4,7 +4,118 @@ import { UploadPreviewState } from './upload.types';
|
|
|
4
4
|
type __VLS_Props = UploadInputProps & {
|
|
5
5
|
previewState?: UploadPreviewState;
|
|
6
6
|
};
|
|
7
|
-
declare function
|
|
7
|
+
declare function pick(target?: number | Event): void;
|
|
8
|
+
declare function __VLS_template(): {
|
|
9
|
+
attrs: Partial<{}>;
|
|
10
|
+
slots: {
|
|
11
|
+
files?(_: {
|
|
12
|
+
files: AssetReference[];
|
|
13
|
+
fileQueue: {
|
|
14
|
+
file: {
|
|
15
|
+
readonly lastModified: number;
|
|
16
|
+
readonly name: string;
|
|
17
|
+
readonly webkitRelativePath: string;
|
|
18
|
+
readonly size: number;
|
|
19
|
+
readonly type: string;
|
|
20
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
21
|
+
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
22
|
+
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
23
|
+
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
24
|
+
text: () => Promise<string>;
|
|
25
|
+
};
|
|
26
|
+
url?: string | undefined;
|
|
27
|
+
progress: number;
|
|
28
|
+
uploading?: boolean | undefined;
|
|
29
|
+
name?: string | undefined;
|
|
30
|
+
uploaded?: boolean | undefined;
|
|
31
|
+
namespace?: string | undefined;
|
|
32
|
+
}[];
|
|
33
|
+
}): any;
|
|
34
|
+
'drop-placeholder'?(_: {
|
|
35
|
+
files: AssetReference[];
|
|
36
|
+
fileQueue: {
|
|
37
|
+
file: {
|
|
38
|
+
readonly lastModified: number;
|
|
39
|
+
readonly name: string;
|
|
40
|
+
readonly webkitRelativePath: string;
|
|
41
|
+
readonly size: number;
|
|
42
|
+
readonly type: string;
|
|
43
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
44
|
+
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
45
|
+
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
46
|
+
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
47
|
+
text: () => Promise<string>;
|
|
48
|
+
};
|
|
49
|
+
url?: string | undefined;
|
|
50
|
+
progress: number;
|
|
51
|
+
uploading?: boolean | undefined;
|
|
52
|
+
name?: string | undefined;
|
|
53
|
+
uploaded?: boolean | undefined;
|
|
54
|
+
namespace?: string | undefined;
|
|
55
|
+
}[];
|
|
56
|
+
browse: typeof pick;
|
|
57
|
+
}): any;
|
|
58
|
+
placeholder?(_: {
|
|
59
|
+
files: AssetReference[];
|
|
60
|
+
fileQueue: {
|
|
61
|
+
file: {
|
|
62
|
+
readonly lastModified: number;
|
|
63
|
+
readonly name: string;
|
|
64
|
+
readonly webkitRelativePath: string;
|
|
65
|
+
readonly size: number;
|
|
66
|
+
readonly type: string;
|
|
67
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
68
|
+
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
69
|
+
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
70
|
+
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
71
|
+
text: () => Promise<string>;
|
|
72
|
+
};
|
|
73
|
+
url?: string | undefined;
|
|
74
|
+
progress: number;
|
|
75
|
+
uploading?: boolean | undefined;
|
|
76
|
+
name?: string | undefined;
|
|
77
|
+
uploaded?: boolean | undefined;
|
|
78
|
+
namespace?: string | undefined;
|
|
79
|
+
}[];
|
|
80
|
+
browse: typeof pick;
|
|
81
|
+
}): any;
|
|
82
|
+
};
|
|
83
|
+
refs: {
|
|
84
|
+
cropper: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
85
|
+
src: string;
|
|
86
|
+
aspect?: string;
|
|
87
|
+
outputSize?: number;
|
|
88
|
+
}> & Readonly<{}>, {
|
|
89
|
+
getFile: () => Promise<File | undefined>;
|
|
90
|
+
reset: () => void;
|
|
91
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
92
|
+
aspect: string;
|
|
93
|
+
outputSize: number;
|
|
94
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
95
|
+
stage: HTMLDivElement;
|
|
96
|
+
image: HTMLImageElement;
|
|
97
|
+
cropWindow: HTMLDivElement;
|
|
98
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
99
|
+
P: {};
|
|
100
|
+
B: {};
|
|
101
|
+
D: {};
|
|
102
|
+
C: {};
|
|
103
|
+
M: {};
|
|
104
|
+
Defaults: {};
|
|
105
|
+
}, Readonly<{
|
|
106
|
+
src: string;
|
|
107
|
+
aspect?: string;
|
|
108
|
+
outputSize?: number;
|
|
109
|
+
}> & Readonly<{}>, {
|
|
110
|
+
getFile: () => Promise<File | undefined>;
|
|
111
|
+
reset: () => void;
|
|
112
|
+
}, {}, {}, {}, {
|
|
113
|
+
aspect: string;
|
|
114
|
+
outputSize: number;
|
|
115
|
+
}> | null;
|
|
116
|
+
};
|
|
117
|
+
rootEl: HTMLDivElement;
|
|
118
|
+
};
|
|
8
119
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
9
120
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
121
|
"update:modelValue": (value: AssetReference | AssetReference[] | undefined) => any;
|
|
@@ -30,7 +141,40 @@ declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}
|
|
|
30
141
|
previewType: "list" | "grid";
|
|
31
142
|
cropExisting: boolean;
|
|
32
143
|
cropOutputSize: number;
|
|
33
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false,
|
|
144
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
145
|
+
cropper: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
146
|
+
src: string;
|
|
147
|
+
aspect?: string;
|
|
148
|
+
outputSize?: number;
|
|
149
|
+
}> & Readonly<{}>, {
|
|
150
|
+
getFile: () => Promise<File | undefined>;
|
|
151
|
+
reset: () => void;
|
|
152
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
153
|
+
aspect: string;
|
|
154
|
+
outputSize: number;
|
|
155
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
|
|
156
|
+
stage: HTMLDivElement;
|
|
157
|
+
image: HTMLImageElement;
|
|
158
|
+
cropWindow: HTMLDivElement;
|
|
159
|
+
}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
160
|
+
P: {};
|
|
161
|
+
B: {};
|
|
162
|
+
D: {};
|
|
163
|
+
C: {};
|
|
164
|
+
M: {};
|
|
165
|
+
Defaults: {};
|
|
166
|
+
}, Readonly<{
|
|
167
|
+
src: string;
|
|
168
|
+
aspect?: string;
|
|
169
|
+
outputSize?: number;
|
|
170
|
+
}> & Readonly<{}>, {
|
|
171
|
+
getFile: () => Promise<File | undefined>;
|
|
172
|
+
reset: () => void;
|
|
173
|
+
}, {}, {}, {}, {
|
|
174
|
+
aspect: string;
|
|
175
|
+
outputSize: number;
|
|
176
|
+
}> | null;
|
|
177
|
+
}, HTMLDivElement>;
|
|
34
178
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
35
179
|
export default _default;
|
|
36
180
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AssetUploadInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/Upload/AssetUploadInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"AssetUploadInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/Upload/AssetUploadInput.vue"],"names":[],"mappings":"AA6tBA,OAAO,EAAoC,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAA;AAM1F,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AACnE,OAAO,KAAK,EAAa,kBAAkB,EAAE,MAAM,gBAAgB,CAAA;AAenE,KAAK,WAAW,GAAG,gBAAgB,GAAG;IAAE,YAAY,CAAC,EAAE,kBAAkB,CAAA;CAAE,CAAC;AA+Q5E,iBAAS,IAAI,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,KAAK,QAIpC;AA2JD,iBAAS,cAAc;WA+mCT,OAAO,IAA6B;;;;;;;;;;;;;;;;;;;;;;;;YAbtB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;YACW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;YACV,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBrC;AA8DD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAUnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -2,7 +2,84 @@ import { UploadInputProps } from '../../../../types/BagelForm';
|
|
|
2
2
|
type __VLS_Props = UploadInputProps & {
|
|
3
3
|
previewState?: import('./upload.types').UploadPreviewState;
|
|
4
4
|
};
|
|
5
|
-
declare function __VLS_template():
|
|
5
|
+
declare function __VLS_template(): {
|
|
6
|
+
attrs: Partial<{}>;
|
|
7
|
+
slots: Partial<Record<NonNullable<string | number>, (_: any) => any>> & {
|
|
8
|
+
files?(_: {
|
|
9
|
+
files: string[];
|
|
10
|
+
fileQueue: {
|
|
11
|
+
file: {
|
|
12
|
+
readonly lastModified: number;
|
|
13
|
+
readonly name: string;
|
|
14
|
+
readonly webkitRelativePath: string;
|
|
15
|
+
readonly size: number;
|
|
16
|
+
readonly type: string;
|
|
17
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
18
|
+
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
19
|
+
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
20
|
+
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
21
|
+
text: () => Promise<string>;
|
|
22
|
+
};
|
|
23
|
+
url?: string | undefined;
|
|
24
|
+
progress: number;
|
|
25
|
+
uploading?: boolean | undefined;
|
|
26
|
+
name?: string | undefined;
|
|
27
|
+
uploaded?: boolean | undefined;
|
|
28
|
+
namespace?: string | undefined;
|
|
29
|
+
}[];
|
|
30
|
+
}): any;
|
|
31
|
+
'drop-placeholder'?(_: {
|
|
32
|
+
files: string[];
|
|
33
|
+
fileQueue: {
|
|
34
|
+
file: {
|
|
35
|
+
readonly lastModified: number;
|
|
36
|
+
readonly name: string;
|
|
37
|
+
readonly webkitRelativePath: string;
|
|
38
|
+
readonly size: number;
|
|
39
|
+
readonly type: string;
|
|
40
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
41
|
+
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
42
|
+
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
43
|
+
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
44
|
+
text: () => Promise<string>;
|
|
45
|
+
};
|
|
46
|
+
url?: string | undefined;
|
|
47
|
+
progress: number;
|
|
48
|
+
uploading?: boolean | undefined;
|
|
49
|
+
name?: string | undefined;
|
|
50
|
+
uploaded?: boolean | undefined;
|
|
51
|
+
namespace?: string | undefined;
|
|
52
|
+
}[];
|
|
53
|
+
browse: (autoFlush?: boolean) => void;
|
|
54
|
+
}): any;
|
|
55
|
+
placeholder?(_: {
|
|
56
|
+
files: string[];
|
|
57
|
+
fileQueue: {
|
|
58
|
+
file: {
|
|
59
|
+
readonly lastModified: number;
|
|
60
|
+
readonly name: string;
|
|
61
|
+
readonly webkitRelativePath: string;
|
|
62
|
+
readonly size: number;
|
|
63
|
+
readonly type: string;
|
|
64
|
+
arrayBuffer: () => Promise<ArrayBuffer>;
|
|
65
|
+
bytes: () => Promise<Uint8Array<ArrayBuffer>>;
|
|
66
|
+
slice: (start?: number, end?: number, contentType?: string) => Blob;
|
|
67
|
+
stream: () => ReadableStream<Uint8Array<ArrayBuffer>>;
|
|
68
|
+
text: () => Promise<string>;
|
|
69
|
+
};
|
|
70
|
+
url?: string | undefined;
|
|
71
|
+
progress: number;
|
|
72
|
+
uploading?: boolean | undefined;
|
|
73
|
+
name?: string | undefined;
|
|
74
|
+
uploaded?: boolean | undefined;
|
|
75
|
+
namespace?: string | undefined;
|
|
76
|
+
}[];
|
|
77
|
+
browse: (autoFlush?: boolean) => void;
|
|
78
|
+
}): any;
|
|
79
|
+
};
|
|
80
|
+
refs: {};
|
|
81
|
+
rootEl: any;
|
|
82
|
+
};
|
|
6
83
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
7
84
|
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
85
|
"update:modelValue": (...args: any[]) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UploadInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/Upload/UploadInput.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UploadInput.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/Upload/UploadInput.vue"],"names":[],"mappings":"AA8UA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6BAA6B,CAAA;AASnE,KAAK,WAAW,GAAG,gBAAgB,GAAG;IAAE,YAAY,CAAC,EAAE,OAAO,gBAAgB,EAAE,kBAAkB,CAAA;CAAE,CAAC;AAsJrG,iBAAS,cAAc;WAqnBT,OAAO,IAA6B;oEAdoC,GAAG;;;;;;;;;;;;;;;;;;;;;;;YAE7D,GAAG;;;;;;;;;;;;;;;;;;;;;;;;YACW,GAAG;;;;;;;;;;;;;;;;;;;;;;;;YACV,GAAG;;;;EAerC;AAiCD,KAAK,oBAAoB,GAAG,UAAU,CAAC,OAAO,cAAc,CAAC,CAAC;AAC9D,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;6EAQnB,CAAC;wBACkB,uBAAuB,CAAC,OAAO,eAAe,EAAE,oBAAoB,CAAC,OAAO,CAAC,CAAC;AAAnG,wBAAoG;AAapG,KAAK,uBAAuB,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IACxC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Lightbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/lightbox/Lightbox.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Lightbox.vue.d.ts","sourceRoot":"","sources":["../../../src/components/lightbox/Lightbox.vue"],"names":[],"mappings":"AAwdA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAA;AAuBpD,iBAAS,IAAI,CAAC,IAAI,EAAE,YAAY,EAAE,UAAU,CAAC,EAAE,YAAY,EAAE,QAe5D;AAED,iBAAS,KAAK,SAEb;;;;;;;AAymBD,wBAQG"}
|