@cortezaproject/corteza-vue 2024.9.7-dev.1 → 2024.9.7-rc.2

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 (34) hide show
  1. package/dist/components/c3/C3.d.ts +5 -0
  2. package/dist/components/filePreview/common/index.d.ts +2 -0
  3. package/dist/components/filePreview/common/types/PDF/helpers.d.ts +53 -0
  4. package/dist/components/filePreview/common/types/index.d.ts +3 -0
  5. package/dist/components/input/CRichTextInput/RToolbar/TMark/loader.d.ts +10 -0
  6. package/dist/components/input/CRichTextInput/RToolbar/TNode/loader.d.ts +6 -0
  7. package/dist/components/input/CRichTextInput/RToolbar/TNodeAttr/loader.d.ts +6 -0
  8. package/dist/components/input/CRichTextInput/RToolbar/loader.d.ts +9 -0
  9. package/dist/components/input/CRichTextInput/extensions/heading.d.ts +12 -0
  10. package/dist/components/input/CRichTextInput/extensions/htmlPaster.d.ts +4 -0
  11. package/dist/components/input/CRichTextInput/extensions/index.d.ts +6 -0
  12. package/dist/components/input/CRichTextInput/extensions/link.d.ts +6 -0
  13. package/dist/components/input/CRichTextInput/extensions/paragraph.d.ts +9 -0
  14. package/dist/components/input/CRichTextInput/extensions/textBackground.d.ts +23 -0
  15. package/dist/components/input/CRichTextInput/extensions/textColor.d.ts +23 -0
  16. package/dist/components/input/CRichTextInput/extensions/utils.d.ts +15 -0
  17. package/dist/components/input/CRichTextInput/lib/formats.d.ts +85 -0
  18. package/dist/components/input/CRichTextInput/lib/index.d.ts +1 -0
  19. package/dist/components/itemPicker/C3.d.ts +1 -0
  20. package/dist/components/itemPicker/CItemPicker.c3.d.ts +32 -0
  21. package/dist/components/toaster/actions/index.d.ts +3 -0
  22. package/dist/index.cjs +1714 -2230
  23. package/dist/index.cjs.map +1 -1
  24. package/dist/index.js +1714 -2230
  25. package/dist/index.js.map +1 -1
  26. package/dist/mixins/corredor.d.ts +49 -0
  27. package/dist/mixins/files.d.ts +19 -0
  28. package/dist/mixins/vue-select-position.d.ts +11 -0
  29. package/dist/plugins/reminder.d.ts +66 -0
  30. package/dist/plugins/settings.d.ts +27 -0
  31. package/dist/src/components/index.d.ts +0 -1
  32. package/dist/src/store/drafts/index.d.ts +5 -0
  33. package/dist/src/store/drafts/storage.d.ts +1 -0
  34. package/package.json +2 -2
@@ -0,0 +1,5 @@
1
+ declare namespace _default {
2
+ export { itemPicker };
3
+ }
4
+ export default _default;
5
+ import * as itemPicker from "../itemPicker/C3";
@@ -0,0 +1,2 @@
1
+ export function getComponent({ type, src, name }: string | undefined): string | undefined;
2
+ export function canPreview({ type, src, name }: string | undefined): boolean;
@@ -0,0 +1,53 @@
1
+ /**
2
+ * Helper to generate a placeholder page node
3
+ * @param {Object} labels Available labels
4
+ * @returns {Node}
5
+ */
6
+ export function makePlaceholder(labels: Object): Node;
7
+ /**
8
+ * Helper to generate a failed page node
9
+ * @param {Object} labels Available labels
10
+ */
11
+ export function makeFailedPage(labels: Object): HTMLDivElement;
12
+ /**
13
+ * Represents a PDF's page + system metadata
14
+ */
15
+ export class Page {
16
+ constructor(params: any);
17
+ merge({ index, page, loading, loaded, rendered, failed, node }: {
18
+ index: any;
19
+ page: any;
20
+ loading: any;
21
+ loaded: any;
22
+ rendered: any;
23
+ failed: any;
24
+ node: any;
25
+ }): void;
26
+ index: any;
27
+ page: any;
28
+ loading: any;
29
+ loaded: any;
30
+ rendered: any;
31
+ failed: any;
32
+ node: any;
33
+ }
34
+ /**
35
+ * Represents the document source
36
+ */
37
+ export class Document {
38
+ constructor(params: any);
39
+ merge({ src, pdf, loading, loaded, failed, scale }: {
40
+ src: any;
41
+ pdf: any;
42
+ loading: any;
43
+ loaded: any;
44
+ failed: any;
45
+ scale: any;
46
+ }): void;
47
+ src: any;
48
+ pdf: any;
49
+ loading: any;
50
+ loaded: any;
51
+ failed: any;
52
+ scale: any;
53
+ }
@@ -0,0 +1,3 @@
1
+ export { default as InlineIMG } from "./IMG/InlineIMG.vue";
2
+ export { default as LightboxIMG } from "./IMG/LightboxIMG.vue";
3
+ export { default as PDF } from "./PDF/PDF.vue";
@@ -0,0 +1,10 @@
1
+ /// <reference path="../../../../../src/vue.shims.d.ts" />
2
+ declare namespace _default {
3
+ export { Color };
4
+ export { Item };
5
+ export { Link };
6
+ }
7
+ export default _default;
8
+ import Color from "*.vue";
9
+ import Item from "*.vue";
10
+ import Link from "*.vue";
@@ -0,0 +1,6 @@
1
+ /// <reference path="../../../../../src/vue.shims.d.ts" />
2
+ declare namespace _default {
3
+ export { Item };
4
+ }
5
+ export default _default;
6
+ import Item from "*.vue";
@@ -0,0 +1,6 @@
1
+ /// <reference path="../../../../../src/vue.shims.d.ts" />
2
+ declare namespace _default {
3
+ export { Alignment };
4
+ }
5
+ export default _default;
6
+ import Alignment from "*.vue";
@@ -0,0 +1,9 @@
1
+ declare namespace _default {
2
+ export { mark };
3
+ export { node };
4
+ export { nodeAttr };
5
+ }
6
+ export default _default;
7
+ import mark from "./TMark/loader";
8
+ import node from "./TNode/loader";
9
+ import nodeAttr from "./TNodeAttr/loader";
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Extends original heading node to allow content alignment
3
+ */
4
+ export default class Heading {
5
+ get defaultOptions(): any;
6
+ get baseP(): any;
7
+ get schema(): any;
8
+ commands({ type, schema }: {
9
+ type: any;
10
+ schema: any;
11
+ }): (attrs: any) => any;
12
+ }
@@ -0,0 +1,4 @@
1
+ export default class HtmlPaster {
2
+ get name(): string;
3
+ get plugins(): any[];
4
+ }
@@ -0,0 +1,6 @@
1
+ export { default as Paragraph } from "./paragraph";
2
+ export { default as Heading } from "./heading";
3
+ export { default as TextColor } from "./textColor";
4
+ export { default as TextBackground } from "./textBackground";
5
+ export { default as Link } from "./link";
6
+ export { default as HtmlPaster } from "./htmlPaster";
@@ -0,0 +1,6 @@
1
+ /**
2
+ * Extends original Link node to allow custom target attr
3
+ */
4
+ export default class Link {
5
+ get schema(): any;
6
+ }
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Extends original paragraph node to allow content alignment
3
+ */
4
+ export default class Paragraph {
5
+ get schema(): any;
6
+ commands({ type }: {
7
+ type: any;
8
+ }): (attrs: any) => any;
9
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Represents text's background color
3
+ */
4
+ export default class Background {
5
+ get name(): string;
6
+ get schema(): {
7
+ attrs: {
8
+ color: {};
9
+ };
10
+ parseDOM: {
11
+ style: string;
12
+ getAttrs: (color: any) => {
13
+ color: any;
14
+ };
15
+ }[];
16
+ toDOM: (node: any) => (string | number | {
17
+ style: string;
18
+ })[];
19
+ };
20
+ commands({ type }: {
21
+ type: any;
22
+ }): (attr: any) => any;
23
+ }
@@ -0,0 +1,23 @@
1
+ /**
2
+ * Represents text's color
3
+ */
4
+ export default class Color {
5
+ get name(): string;
6
+ get schema(): {
7
+ attrs: {
8
+ color: {};
9
+ };
10
+ parseDOM: {
11
+ style: string;
12
+ getAttrs: (color: any) => {
13
+ color: any;
14
+ };
15
+ }[];
16
+ toDOM: (node: any) => (string | number | {
17
+ style: string;
18
+ })[];
19
+ };
20
+ commands({ type }: {
21
+ type: any;
22
+ }): (attr: any) => any;
23
+ }
@@ -0,0 +1,15 @@
1
+ export function toAttrs(node: any): {
2
+ style: string;
3
+ } | {
4
+ style?: undefined;
5
+ };
6
+ export function alignmentParser(node: any): {
7
+ alignment: any;
8
+ };
9
+ export const qAlignments: {
10
+ 'ql-align-right': string;
11
+ 'ql-align-left': string;
12
+ 'ql-align-center': string;
13
+ 'ql-align-justify': string;
14
+ };
15
+ export function makeDOMParser(pd: any): any;
@@ -0,0 +1,85 @@
1
+ export function getFormats(): any[];
2
+ export function getToolbar(): ({
3
+ type: string;
4
+ mark: boolean;
5
+ icon: string;
6
+ component?: undefined;
7
+ node?: undefined;
8
+ label?: undefined;
9
+ attrs?: undefined;
10
+ nodeAttr?: undefined;
11
+ variants?: undefined;
12
+ } | {
13
+ type: string;
14
+ mark: boolean;
15
+ component: string;
16
+ icon?: undefined;
17
+ node?: undefined;
18
+ label?: undefined;
19
+ attrs?: undefined;
20
+ nodeAttr?: undefined;
21
+ variants?: undefined;
22
+ } | {
23
+ type: string;
24
+ node: boolean;
25
+ icon: string;
26
+ mark?: undefined;
27
+ component?: undefined;
28
+ label?: undefined;
29
+ attrs?: undefined;
30
+ nodeAttr?: undefined;
31
+ variants?: undefined;
32
+ } | {
33
+ type: string;
34
+ node: boolean;
35
+ label: string;
36
+ attrs: {
37
+ level: number;
38
+ href?: undefined;
39
+ };
40
+ mark?: undefined;
41
+ icon?: undefined;
42
+ component?: undefined;
43
+ nodeAttr?: undefined;
44
+ variants?: undefined;
45
+ } | {
46
+ type: string;
47
+ icon: string;
48
+ nodeAttr: boolean;
49
+ component: string;
50
+ variants: {
51
+ variant: string;
52
+ icon: string;
53
+ attrs: {
54
+ alignment: string;
55
+ };
56
+ }[];
57
+ mark?: undefined;
58
+ node?: undefined;
59
+ label?: undefined;
60
+ attrs?: undefined;
61
+ } | {
62
+ type: string;
63
+ mark: boolean;
64
+ component: string;
65
+ icon: string;
66
+ attrs: {
67
+ href: null;
68
+ level?: undefined;
69
+ };
70
+ node?: undefined;
71
+ label?: undefined;
72
+ nodeAttr?: undefined;
73
+ variants?: undefined;
74
+ } | {
75
+ type: string;
76
+ node: boolean;
77
+ label: string;
78
+ mark?: undefined;
79
+ icon?: undefined;
80
+ component?: undefined;
81
+ attrs?: undefined;
82
+ nodeAttr?: undefined;
83
+ variants?: undefined;
84
+ })[];
85
+ export const nodeTypes: string[];
@@ -0,0 +1 @@
1
+ export * from "./formats";
@@ -0,0 +1 @@
1
+ export { default as CItemPicker } from "./CItemPicker.c3";
@@ -0,0 +1,32 @@
1
+ /// <reference path="../../src/vue.shims.d.ts" />
2
+ declare namespace _default {
3
+ export const name: string;
4
+ export const group: string[];
5
+ export { component };
6
+ export { props };
7
+ export const controls: any[];
8
+ }
9
+ export default _default;
10
+ import { default as component } from "*.vue";
11
+ declare namespace props {
12
+ export const options: {
13
+ value: string;
14
+ text: string;
15
+ }[];
16
+ export const value: string[];
17
+ export namespace labels {
18
+ export const searchPlaceholder: string;
19
+ export const availableItems: string;
20
+ export const selectAllItems: string;
21
+ export const selectedItems: string;
22
+ export const systemItem: string;
23
+ export const unselectAllItems: string;
24
+ export const noItemsFound: string;
25
+ }
26
+ export const hideFilter: boolean;
27
+ export const hideIcons: boolean;
28
+ export const disabled: boolean;
29
+ export const disabledFilter: boolean;
30
+ export const disabledSorting: boolean;
31
+ export const disabledDragging: boolean;
32
+ }
@@ -0,0 +1,3 @@
1
+ export { default as Button } from "./Button.vue";
2
+ export { default as Dropdown } from "./Dropdown.vue";
3
+ export { default as Select } from "./Select.vue";