@cortezaproject/corteza-vue 2024.9.6-dev.1 → 2024.9.6-dev.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 (32) hide show
  1. package/dist/index.cjs +274 -90
  2. package/dist/index.cjs.map +1 -1
  3. package/dist/index.js +274 -90
  4. package/dist/index.js.map +1 -1
  5. package/package.json +3 -2
  6. package/dist/components/c3/C3.d.ts +0 -5
  7. package/dist/components/filePreview/common/index.d.ts +0 -2
  8. package/dist/components/filePreview/common/types/PDF/helpers.d.ts +0 -53
  9. package/dist/components/filePreview/common/types/index.d.ts +0 -3
  10. package/dist/components/input/CRichTextInput/RToolbar/TMark/loader.d.ts +0 -10
  11. package/dist/components/input/CRichTextInput/RToolbar/TNode/loader.d.ts +0 -6
  12. package/dist/components/input/CRichTextInput/RToolbar/TNodeAttr/loader.d.ts +0 -6
  13. package/dist/components/input/CRichTextInput/RToolbar/loader.d.ts +0 -9
  14. package/dist/components/input/CRichTextInput/extensions/heading.d.ts +0 -12
  15. package/dist/components/input/CRichTextInput/extensions/htmlPaster.d.ts +0 -4
  16. package/dist/components/input/CRichTextInput/extensions/index.d.ts +0 -6
  17. package/dist/components/input/CRichTextInput/extensions/link.d.ts +0 -6
  18. package/dist/components/input/CRichTextInput/extensions/paragraph.d.ts +0 -9
  19. package/dist/components/input/CRichTextInput/extensions/textBackground.d.ts +0 -23
  20. package/dist/components/input/CRichTextInput/extensions/textColor.d.ts +0 -23
  21. package/dist/components/input/CRichTextInput/extensions/utils.d.ts +0 -15
  22. package/dist/components/input/CRichTextInput/lib/formats.d.ts +0 -85
  23. package/dist/components/input/CRichTextInput/lib/index.d.ts +0 -1
  24. package/dist/components/itemPicker/C3.d.ts +0 -1
  25. package/dist/components/itemPicker/CItemPicker.c3.d.ts +0 -32
  26. package/dist/components/toaster/actions/index.d.ts +0 -3
  27. package/dist/mixins/corredor.d.ts +0 -49
  28. package/dist/mixins/files.d.ts +0 -19
  29. package/dist/mixins/vue-select-position.d.ts +0 -11
  30. package/dist/node_modules/@tiptap/pm/state/index.d.ts +0 -1
  31. package/dist/plugins/reminder.d.ts +0 -66
  32. package/dist/plugins/settings.d.ts +0 -27
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@cortezaproject/corteza-vue",
3
3
  "description": "Corteza Vue.js JavaScript/TypeScript libs",
4
- "version": "2024.9.6-dev.1",
4
+ "version": "2024.9.6-dev.2",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Denis Arh <denis.arh@crust.tech>",
7
7
  "type": "module",
@@ -34,7 +34,8 @@
34
34
  "prosemirror-model": "^1.25.0"
35
35
  },
36
36
  "dependencies": {
37
- "@cortezaproject/corteza-js": "^2024.9.6-dev.1",
37
+ "@cortezaproject/corteza-js": "^2024.9.6-dev.2",
38
+ "@floating-ui/dom": "^1.7.4",
38
39
  "@fortawesome/fontawesome-svg-core": "^6.7.2",
39
40
  "@fortawesome/free-solid-svg-icons": "^6.7.2",
40
41
  "@fortawesome/vue-fontawesome": "^2.0.10",
@@ -1,5 +0,0 @@
1
- declare namespace _default {
2
- export { itemPicker };
3
- }
4
- export default _default;
5
- import * as itemPicker from "../itemPicker/C3";
@@ -1,2 +0,0 @@
1
- export function getComponent({ type, src, name }: string | undefined): string | undefined;
2
- export function canPreview({ type, src, name }: string | undefined): boolean;
@@ -1,53 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
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";
@@ -1,10 +0,0 @@
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";
@@ -1,6 +0,0 @@
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";
@@ -1,6 +0,0 @@
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";
@@ -1,9 +0,0 @@
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";
@@ -1,12 +0,0 @@
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
- }
@@ -1,4 +0,0 @@
1
- export default class HtmlPaster {
2
- get name(): string;
3
- get plugins(): any[];
4
- }
@@ -1,6 +0,0 @@
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";
@@ -1,6 +0,0 @@
1
- /**
2
- * Extends original Link node to allow custom target attr
3
- */
4
- export default class Link {
5
- get schema(): any;
6
- }
@@ -1,9 +0,0 @@
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
- }
@@ -1,23 +0,0 @@
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
- }
@@ -1,23 +0,0 @@
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
- }
@@ -1,15 +0,0 @@
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;
@@ -1,85 +0,0 @@
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[];
@@ -1 +0,0 @@
1
- export * from "./formats";
@@ -1 +0,0 @@
1
- export { default as CItemPicker } from "./CItemPicker.c3";
@@ -1,32 +0,0 @@
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
- }
@@ -1,3 +0,0 @@
1
- export { default as Button } from "./Button.vue";
2
- export { default as Dropdown } from "./Dropdown.vue";
3
- export { default as Select } from "./Select.vue";
@@ -1,49 +0,0 @@
1
- declare namespace _default {
2
- export namespace methods {
3
- /**
4
- * Creates a function for registering server automation scripts to UIHooks and EventBus plugins
5
- *
6
- * API should be corteza API Client class that is passed as a first arg to serverScriptHandler
7
- * See:
8
- * - TriggerComposeServerScriptOnManual
9
- * - TriggerSystemServerScriptOnManual
10
- */
11
- export function makeAutomationScriptsRegistrator(serverScriptHandler: any): ({ set }: {
12
- set: any;
13
- }) => void;
14
- /**
15
- * Creates a function for registering server automation scripts to UIHooks and EventBus plugins
16
- *
17
- * API should be corteza API Client class that is passed as a first arg to serverScriptHandler
18
- * See:
19
- * - TriggerComposeServerScriptOnManual
20
- * - TriggerSystemServerScriptOnManual
21
- */
22
- export function makeAutomationScriptsRegistrator(serverScriptHandler: any): ({ set }: {
23
- set: any;
24
- }) => void;
25
- /**
26
- * Loads bundle from system API and registers
27
- * @return {Promise<T>}
28
- */
29
- export function loadBundle({ bundle, type, ext, verbose, ctx }?: {
30
- bundle: any;
31
- type?: string | undefined;
32
- ext?: string | undefined;
33
- verbose?: boolean | undefined;
34
- ctx?: any;
35
- }): Promise<any>;
36
- /**
37
- * Loads bundle from system API and registers
38
- * @return {Promise<T>}
39
- */
40
- export function loadBundle({ bundle, type, ext, verbose, ctx }?: {
41
- bundle: any;
42
- type?: string | undefined;
43
- ext?: string | undefined;
44
- verbose?: boolean | undefined;
45
- ctx?: any;
46
- }): Promise<any>;
47
- }
48
- }
49
- export default _default;
@@ -1,19 +0,0 @@
1
- declare namespace _default {
2
- export namespace methods {
3
- /**
4
- * Checks if given file
5
- * @param {String} fileName File in question
6
- * @param {Array<String>} accepted Array of accepted mime types
7
- * @returns {Boolean} If this file is acceptable
8
- */
9
- export function validateFileType(fileName?: string, accepted?: string[]): boolean;
10
- /**
11
- * Checks if given file
12
- * @param {String} fileName File in question
13
- * @param {Array<String>} accepted Array of accepted mime types
14
- * @returns {Boolean} If this file is acceptable
15
- */
16
- export function validateFileType(fileName?: string, accepted?: string[]): boolean;
17
- }
18
- }
19
- export default _default;
@@ -1,11 +0,0 @@
1
- declare namespace _default {
2
- export namespace methods {
3
- export function calculateDropdownPosition(dropdownList: any, component: any, { width }: {
4
- width: any;
5
- }): () => void;
6
- export function calculateDropdownPosition(dropdownList: any, component: any, { width }: {
7
- width: any;
8
- }): () => void;
9
- }
10
- }
11
- export default _default;
@@ -1 +0,0 @@
1
- export * from 'prosemirror-state';
@@ -1,66 +0,0 @@
1
- export class ReminderService {
2
- constructor({ api, fetchOffset, resource, emitter }?: {
3
- api: any;
4
- fetchOffset?: number | undefined;
5
- resource?: any;
6
- emitter: any;
7
- });
8
- emitter: any;
9
- api: any;
10
- fetchOffset: number;
11
- resource: any;
12
- set: any[];
13
- nextRemindAt: Object | null;
14
- tHandle: number | null;
15
- init(emitter: any, { filter }: {
16
- filter?: {} | undefined;
17
- }): void;
18
- filter: {
19
- scheduledOnly: boolean;
20
- excludeDismissed: boolean;
21
- } | undefined;
22
- /**
23
- * Fetches all reminders that are supposed to go off to date (time)
24
- *
25
- * @returns {Promise<system.Reminder>}
26
- */
27
- prefetch(): Promise<system.Reminder>;
28
- enqueueRaw(raw: any): void;
29
- /**
30
- * Enqueue a given set of reminders
31
- * @param {Array<Reminder>} set Set of reminderIDs to enqueue
32
- */
33
- enqueue(...set: Array<any>): void;
34
- /**
35
- * Dequeue a given set of reminders
36
- * @param {Array} set Set of reminderIDs to remove
37
- */
38
- dequeue(IDs?: any[]): void;
39
- /**
40
- * Determines we should use a new time
41
- * @param {Array} set Set of reminders to chose from
42
- * @param {Object|null} time Reference point
43
- * @private
44
- */
45
- private findNextProcessTime;
46
- /**
47
- * Schedules processor ro run at the given time
48
- * @param {Moment} at When it should be ran
49
- * @param {Moment} now Ref to now; used for tests
50
- * @private
51
- */
52
- private scheduleReminderProcess;
53
- /**
54
- * Processes the reminder queue. Emits due reminders &
55
- * removes them from state
56
- * @param {Moment} now Ref to now; used for tests
57
- * @private
58
- */
59
- private processQueue;
60
- }
61
- declare namespace _default {
62
- export function install(Vue: any, opts: any): void;
63
- export function install(Vue: any, opts: any): void;
64
- }
65
- export default _default;
66
- import { system } from "@cortezaproject/corteza-js";
@@ -1,27 +0,0 @@
1
- export class Settings {
2
- current: {};
3
- api: any;
4
- init({ api }: {
5
- api: any;
6
- }): Promise<any>;
7
- fetch(): Promise<any>;
8
- /**
9
- * Provides the setting for the given key
10
- * @param {String} k Setting key
11
- * @param {*} d Default value
12
- * @returns {*}
13
- */
14
- get(k: string, d: any): any;
15
- /**
16
- * Provides the attachment for the given resource
17
- * @param {String} k Setting key
18
- * @param {*} d Default value
19
- * @returns {*}
20
- */
21
- attachment(k: string, d: any): any;
22
- }
23
- declare namespace _default {
24
- export function install(Vue: any): void;
25
- export function install(Vue: any): void;
26
- }
27
- export default _default;