@cortezaproject/corteza-vue 2024.9.5-dev.1 → 2024.9.5-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 (36) 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/index.d.ts +1 -1
  6. package/dist/components/input/CRichTextInput/RToolbar/TMark/loader.d.ts +10 -0
  7. package/dist/components/input/CRichTextInput/RToolbar/TNode/loader.d.ts +6 -0
  8. package/dist/components/input/CRichTextInput/RToolbar/TNodeAttr/loader.d.ts +6 -0
  9. package/dist/components/input/CRichTextInput/RToolbar/loader.d.ts +9 -0
  10. package/dist/components/input/CRichTextInput/extensions/heading.d.ts +12 -0
  11. package/dist/components/input/CRichTextInput/extensions/htmlPaster.d.ts +4 -0
  12. package/dist/components/input/CRichTextInput/extensions/index.d.ts +6 -0
  13. package/dist/components/input/CRichTextInput/extensions/link.d.ts +6 -0
  14. package/dist/components/input/CRichTextInput/extensions/paragraph.d.ts +9 -0
  15. package/dist/components/input/CRichTextInput/extensions/textBackground.d.ts +23 -0
  16. package/dist/components/input/CRichTextInput/extensions/textColor.d.ts +23 -0
  17. package/dist/components/input/CRichTextInput/extensions/utils.d.ts +15 -0
  18. package/dist/components/input/CRichTextInput/lib/formats.d.ts +85 -0
  19. package/dist/components/input/CRichTextInput/lib/index.d.ts +1 -0
  20. package/dist/components/input/index.d.ts +1 -0
  21. package/dist/components/itemPicker/C3.d.ts +1 -0
  22. package/dist/components/itemPicker/CItemPicker.c3.d.ts +32 -0
  23. package/dist/components/toaster/actions/index.d.ts +3 -0
  24. package/dist/index.cjs +801 -597
  25. package/dist/index.cjs.map +1 -1
  26. package/dist/index.js +801 -597
  27. package/dist/index.js.map +1 -1
  28. package/dist/mixins/corredor.d.ts +49 -0
  29. package/dist/mixins/files.d.ts +19 -0
  30. package/dist/mixins/vue-select-position.d.ts +11 -0
  31. package/dist/node_modules/@tiptap/pm/state/index.d.ts +1 -0
  32. package/dist/plugins/reminder.d.ts +66 -0
  33. package/dist/plugins/settings.d.ts +27 -0
  34. package/dist/src/components/index.d.ts +1 -1
  35. package/dist/src/components/input/index.d.ts +1 -0
  36. package/package.json +15 -12
@@ -0,0 +1,49 @@
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;
@@ -0,0 +1,19 @@
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;
@@ -0,0 +1,11 @@
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;
@@ -0,0 +1 @@
1
+ export * from 'prosemirror-state';
@@ -0,0 +1,66 @@
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";
@@ -0,0 +1,27 @@
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;
@@ -1,7 +1,7 @@
1
1
  export { CExtendSession, } from './auth';
2
2
  export { CCorredorManualButtons, } from './corredor';
3
3
  export { CPreviewInline, CPreviewLightbox, canPreview, } from './filePreview';
4
- export { CInputConfirm, CInputProcessing, CInputDateTime, CInputPresort, CInputSearch, CRichTextInput, CInputCheckbox, CInputColorPicker, CAceEditor, CInputExpression, CButtonSubmit, CInputSelect, CInputRole, CInputUser, } from './input';
4
+ export { CInputConfirm, CInputProcessing, CInputDateTime, CInputPresort, CInputSearch, CRichTextInput, CInputCheckbox, CInputColorPicker, CAceEditor, CInputExpression, CButtonSubmit, CInputSelect, CInputRole, CInputUser, CInputUserGroup, } from './input';
5
5
  export { CLightbox, } from './lightbox';
6
6
  export { CPermissionsButton, CPermissionsModal, } from './permissions';
7
7
  export * from './prompts';
@@ -12,3 +12,4 @@ export { CButtonSubmit, } from './button';
12
12
  export { default as CInputSelect } from './CInputSelect.vue';
13
13
  export { default as CInputRole } from './CInputRole.vue';
14
14
  export { default as CInputUser } from './CInputUser.vue';
15
+ export { default as CInputUserGroup } from './CInputUserGroup.vue';
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.5-dev.1",
4
+ "version": "2024.9.5-dev.2",
5
5
  "license": "Apache-2.0",
6
6
  "author": "Denis Arh <denis.arh@crust.tech>",
7
7
  "type": "module",
@@ -34,22 +34,25 @@
34
34
  "prosemirror-model": "^1.25.0"
35
35
  },
36
36
  "dependencies": {
37
- "@cortezaproject/corteza-js": "^2024.9.5-dev.1",
37
+ "@cortezaproject/corteza-js": "^2024.9.5-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",
41
42
  "@panter/vue-i18next": "^0.15.0",
42
43
  "@popperjs/core": "^2.11.8",
43
- "@tiptap/core": "^3.3.0",
44
- "@tiptap/extension-list": "^3.3.0",
45
- "@tiptap/extension-mention": "^3.3.0",
46
- "@tiptap/extension-table": "^3.3.0",
47
- "@tiptap/extension-text-align": "^3.3.0",
48
- "@tiptap/extension-text-style": "^3.3.0",
49
- "@tiptap/pm": "^3.3.0",
50
- "@tiptap/starter-kit": "^3.3.0",
51
- "@tiptap/suggestion": "^3.3.0",
52
- "@tiptap/vue-2": "^3.3.0",
44
+ "@tiptap/core": "^3.4.2",
45
+ "@tiptap/extension-list": "^3.4.2",
46
+ "@tiptap/extension-mention": "^3.4.2",
47
+ "@tiptap/extension-placeholder": "^3.4.2",
48
+ "@tiptap/extension-table": "^3.4.2",
49
+ "@tiptap/extension-text-align": "^3.4.2",
50
+ "@tiptap/extension-text-style": "^3.4.2",
51
+ "@tiptap/extensions": "^3.4.2",
52
+ "@tiptap/pm": "^3.4.2",
53
+ "@tiptap/starter-kit": "^3.4.2",
54
+ "@tiptap/suggestion": "^3.4.2",
55
+ "@tiptap/vue-2": "^3.4.2",
53
56
  "bootstrap-vue": "2.23.1",
54
57
  "echarts": "5.6.0",
55
58
  "fuzzysort": "^3.1.0",