@cortezaproject/corteza-vue 2024.9.1 → 2024.9.2-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 (85) hide show
  1. package/dist/components/c3/Controls/index.d.ts +22 -22
  2. package/dist/components/c3/helpers.d.ts +28 -28
  3. package/dist/components/c3/index.d.ts +7 -7
  4. package/dist/components/chart/index.d.ts +1 -1
  5. package/dist/components/corredor/index.d.ts +1 -1
  6. package/dist/components/filePreview/index.d.ts +3 -3
  7. package/dist/components/hint/index.d.ts +1 -1
  8. package/dist/components/index.d.ts +22 -22
  9. package/dist/components/input/CInputDateTime/lib/index.d.ts +4 -4
  10. package/dist/components/input/button/index.d.ts +1 -1
  11. package/dist/components/input/index.d.ts +13 -14
  12. package/dist/components/itemPicker/index.d.ts +2 -2
  13. package/dist/components/lightbox/index.d.ts +1 -1
  14. package/dist/components/loader/index.d.ts +1 -1
  15. package/dist/components/map/index.d.ts +1 -1
  16. package/dist/components/navigation/index.d.ts +3 -3
  17. package/dist/components/permissions/def.d.ts +14 -14
  18. package/dist/components/permissions/index.d.ts +2 -2
  19. package/dist/components/privacy/index.d.ts +1 -1
  20. package/dist/components/progress/index.d.ts +1 -1
  21. package/dist/components/prompts/definitions.d.ts +2 -2
  22. package/dist/components/prompts/index.d.ts +4 -4
  23. package/dist/components/prompts/kinds/index.d.ts +22 -22
  24. package/dist/components/prompts/utils.d.ts +3 -3
  25. package/dist/components/reminders/index.d.ts +1 -1
  26. package/dist/components/reporter/index.d.ts +4 -4
  27. package/dist/components/resourceList/index.d.ts +1 -1
  28. package/dist/components/toaster/index.d.ts +2 -2
  29. package/dist/components/toolbar/index.d.ts +1 -1
  30. package/dist/components/webcam/index.d.ts +1 -1
  31. package/dist/components/wrapper/index.d.ts +1 -1
  32. package/dist/corredor/compose-ctx.d.ts +32 -32
  33. package/dist/corredor/compose-ui.d.ts +105 -105
  34. package/dist/corredor/index.d.ts +3 -3
  35. package/dist/corredor/webapp-ctx.d.ts +11 -11
  36. package/dist/filters/date.d.ts +2 -2
  37. package/dist/filters/index.d.ts +2 -2
  38. package/dist/filters/url.d.ts +1 -1
  39. package/dist/i18n.d.ts +40 -40
  40. package/dist/index.d.ts +12 -12
  41. package/dist/index.es.js +26148 -92742
  42. package/dist/index.es.js.map +1 -1
  43. package/dist/index.js +26224 -92803
  44. package/dist/index.js.map +1 -1
  45. package/dist/libs/filter.d.ts +3 -3
  46. package/dist/libs/handle.d.ts +4 -4
  47. package/dist/libs/url.d.ts +12 -12
  48. package/dist/libs/websocket.d.ts +23 -23
  49. package/dist/mixins/index.d.ts +3 -3
  50. package/dist/plugins/auth.d.ts +214 -214
  51. package/dist/plugins/corteza-api.d.ts +15 -15
  52. package/dist/plugins/eventbus.d.ts +3 -3
  53. package/dist/plugins/index.d.ts +7 -7
  54. package/dist/plugins/ui-hooks.d.ts +74 -74
  55. package/dist/store/RBAC.d.ts +15 -15
  56. package/dist/store/index.d.ts +2 -2
  57. package/dist/store/wf-prompts/index.d.ts +21 -21
  58. package/package.json +80 -112
  59. package/dist/components/Tour/index.d.ts +0 -2
  60. package/dist/components/c3/C3.d.ts +0 -5
  61. package/dist/components/filePreview/common/index.d.ts +0 -2
  62. package/dist/components/filePreview/common/types/PDF/helpers.d.ts +0 -53
  63. package/dist/components/filePreview/common/types/index.d.ts +0 -3
  64. package/dist/components/input/CRichTextInput/RToolbar/TMark/loader.d.ts +0 -10
  65. package/dist/components/input/CRichTextInput/RToolbar/TNode/loader.d.ts +0 -6
  66. package/dist/components/input/CRichTextInput/RToolbar/TNodeAttr/loader.d.ts +0 -8
  67. package/dist/components/input/CRichTextInput/RToolbar/loader.d.ts +0 -9
  68. package/dist/components/input/CRichTextInput/extensions/heading.d.ts +0 -12
  69. package/dist/components/input/CRichTextInput/extensions/htmlPaster.d.ts +0 -4
  70. package/dist/components/input/CRichTextInput/extensions/index.d.ts +0 -6
  71. package/dist/components/input/CRichTextInput/extensions/link.d.ts +0 -6
  72. package/dist/components/input/CRichTextInput/extensions/paragraph.d.ts +0 -9
  73. package/dist/components/input/CRichTextInput/extensions/textBackground.d.ts +0 -23
  74. package/dist/components/input/CRichTextInput/extensions/textColor.d.ts +0 -23
  75. package/dist/components/input/CRichTextInput/extensions/utils.d.ts +0 -15
  76. package/dist/components/input/CRichTextInput/lib/formats.d.ts +0 -107
  77. package/dist/components/input/CRichTextInput/lib/index.d.ts +0 -1
  78. package/dist/components/itemPicker/C3.d.ts +0 -1
  79. package/dist/components/itemPicker/CItemPicker.c3.d.ts +0 -32
  80. package/dist/components/toaster/actions/index.d.ts +0 -3
  81. package/dist/mixins/corredor.d.ts +0 -49
  82. package/dist/mixins/files.d.ts +0 -19
  83. package/dist/mixins/vue-select-position.d.ts +0 -11
  84. package/dist/plugins/reminder.d.ts +0 -66
  85. package/dist/plugins/settings.d.ts +0 -27
@@ -1,105 +1,105 @@
1
- import { compose } from '@cortezaproject/corteza-js';
2
- interface ComposeUIContext {
3
- $namespace?: compose.Namespace;
4
- $module?: compose.Module;
5
- $record?: compose.Record;
6
- pages: Array<compose.Page>;
7
- emitter: (...a: any) => any;
8
- routePusher: (...a: any) => any;
9
- }
10
- /**
11
- * ComposeUIHelper provides helpers for accessing Compose's UI
12
- *
13
- */
14
- export default class ComposeUIHelper {
15
- readonly $namespace?: compose.Namespace;
16
- readonly $module?: compose.Module;
17
- readonly $record?: compose.Record;
18
- readonly pages?: Array<compose.Page>;
19
- readonly emitter: (...a: any) => any;
20
- readonly routePusher: (...a: any) => any;
21
- /**
22
- *
23
- * @param {Namespace} ctx.$namespace - Current namespace
24
- * @param {Module} ctx.$module - Current module
25
- * @param {Record} ctx.$record - Current record
26
- * @param {Page[]} ctx.pages - Array of Page objects
27
- * @param {Function} ctx.emitter - Event emitter (vm.$emit)
28
- * @param {Function} ctx.routePusher - Route pusher (vm.$route.push)
29
- */
30
- constructor(ctx: ComposeUIContext);
31
- /**
32
- * Open record viewer page
33
- *
34
- * It searches for page that matches record's module and redirects
35
- * user to the view mode on that page
36
- *
37
- * @example
38
- * // Edit current record
39
- * ComposeUI.gotoRecordViewer($record)
40
- *
41
- * // Edit current record ($record can be omitted)
42
- * ComposeUI.gotoRecordViewer()
43
- *
44
- * @param {Record} record
45
- */
46
- gotoRecordViewer(record?: compose.Record | undefined): void;
47
- /**
48
- * Open record editor page
49
- *
50
- * It searches for page that matches record's module and redirects
51
- * user to the edit mode on that page.
52
- *
53
- * @example
54
- * // Edit current record
55
- * ComposeUI.gotoRecordEditor($record)
56
- *
57
- * // Edit current record ($record can be omitted)
58
- * ComposeUI.gotoRecordEditor()
59
- *
60
- * @param {Record} record
61
- */
62
- gotoRecordEditor(record?: compose.Record | undefined): void;
63
- /**
64
- * Open record page
65
- *
66
- * @private
67
- * @param {string} name
68
- * @param {Record} record
69
- * @param {string} record.recordID
70
- * @param {string} record.moduleID
71
- */
72
- gotoRecordPage(name: string, record?: compose.Record | undefined): void;
73
- /**
74
- * Returns record page
75
- *
76
- */
77
- private getRecordPage;
78
- /**
79
- * Go to a specific route
80
- *
81
- * @private
82
- * @param {string} name
83
- * @param {Object} params for $router.push
84
- */
85
- goto(name: string, params: object): void;
86
- /**
87
- * Show a success alert
88
- *
89
- * @example
90
- * ComposeUI.success('Change was successful')
91
- *
92
- * @param message
93
- */
94
- success(message: string): void;
95
- /**
96
- * Show a warning alert
97
- *
98
- * @example
99
- * ComposeUI.warning('Could not save your changes')
100
- *
101
- * @param message
102
- */
103
- warning(message: string): void;
104
- }
105
- export {};
1
+ import { compose } from '@cortezaproject/corteza-js';
2
+ interface ComposeUIContext {
3
+ $namespace?: compose.Namespace;
4
+ $module?: compose.Module;
5
+ $record?: compose.Record;
6
+ pages: Array<compose.Page>;
7
+ emitter: (...a: any) => any;
8
+ routePusher: (...a: any) => any;
9
+ }
10
+ /**
11
+ * ComposeUIHelper provides helpers for accessing Compose's UI
12
+ *
13
+ */
14
+ export default class ComposeUIHelper {
15
+ readonly $namespace?: compose.Namespace;
16
+ readonly $module?: compose.Module;
17
+ readonly $record?: compose.Record;
18
+ readonly pages?: Array<compose.Page>;
19
+ readonly emitter: (...a: any) => any;
20
+ readonly routePusher: (...a: any) => any;
21
+ /**
22
+ *
23
+ * @param {Namespace} ctx.$namespace - Current namespace
24
+ * @param {Module} ctx.$module - Current module
25
+ * @param {Record} ctx.$record - Current record
26
+ * @param {Page[]} ctx.pages - Array of Page objects
27
+ * @param {Function} ctx.emitter - Event emitter (vm.$emit)
28
+ * @param {Function} ctx.routePusher - Route pusher (vm.$route.push)
29
+ */
30
+ constructor(ctx: ComposeUIContext);
31
+ /**
32
+ * Open record viewer page
33
+ *
34
+ * It searches for page that matches record's module and redirects
35
+ * user to the view mode on that page
36
+ *
37
+ * @example
38
+ * // Edit current record
39
+ * ComposeUI.gotoRecordViewer($record)
40
+ *
41
+ * // Edit current record ($record can be omitted)
42
+ * ComposeUI.gotoRecordViewer()
43
+ *
44
+ * @param {Record} record
45
+ */
46
+ gotoRecordViewer(record?: compose.Record | undefined): void;
47
+ /**
48
+ * Open record editor page
49
+ *
50
+ * It searches for page that matches record's module and redirects
51
+ * user to the edit mode on that page.
52
+ *
53
+ * @example
54
+ * // Edit current record
55
+ * ComposeUI.gotoRecordEditor($record)
56
+ *
57
+ * // Edit current record ($record can be omitted)
58
+ * ComposeUI.gotoRecordEditor()
59
+ *
60
+ * @param {Record} record
61
+ */
62
+ gotoRecordEditor(record?: compose.Record | undefined): void;
63
+ /**
64
+ * Open record page
65
+ *
66
+ * @private
67
+ * @param {string} name
68
+ * @param {Record} record
69
+ * @param {string} record.recordID
70
+ * @param {string} record.moduleID
71
+ */
72
+ gotoRecordPage(name: string, record?: compose.Record | undefined): void;
73
+ /**
74
+ * Returns record page
75
+ *
76
+ */
77
+ private getRecordPage;
78
+ /**
79
+ * Go to a specific route
80
+ *
81
+ * @private
82
+ * @param {string} name
83
+ * @param {Object} params for $router.push
84
+ */
85
+ goto(name: string, params: object): void;
86
+ /**
87
+ * Show a success alert
88
+ *
89
+ * @example
90
+ * ComposeUI.success('Change was successful')
91
+ *
92
+ * @param message
93
+ */
94
+ success(message: string): void;
95
+ /**
96
+ * Show a warning alert
97
+ *
98
+ * @example
99
+ * ComposeUI.warning('Could not save your changes')
100
+ *
101
+ * @param message
102
+ */
103
+ warning(message: string): void;
104
+ }
105
+ export {};
@@ -1,3 +1,3 @@
1
- export { default as WebappCtx } from './webapp-ctx';
2
- export { default as ComposeCtx } from './compose-ctx';
3
- export { default as ComposeUIHelper } from './compose-ui';
1
+ export { default as WebappCtx } from './webapp-ctx';
2
+ export { default as ComposeCtx } from './compose-ctx';
3
+ export { default as ComposeUIHelper } from './compose-ui';
@@ -1,11 +1,11 @@
1
- import { corredor } from '@cortezaproject/corteza-js';
2
- /**
3
- * Bare-minimum webapp helper
4
- */
5
- export default class WebappCtx extends corredor.Ctx {
6
- constructor(args: corredor.BaseArgs);
7
- /**
8
- * Clones context and uses new arguments
9
- */
10
- withArgs(args: corredor.BaseArgs): WebappCtx;
11
- }
1
+ import { corredor } from '@cortezaproject/corteza-js';
2
+ /**
3
+ * Bare-minimum webapp helper
4
+ */
5
+ export default class WebappCtx extends corredor.Ctx {
6
+ constructor(args: corredor.BaseArgs);
7
+ /**
8
+ * Clones context and uses new arguments
9
+ */
10
+ withArgs(args: corredor.BaseArgs): WebappCtx;
11
+ }
@@ -1,2 +1,2 @@
1
- export declare function locFullDateTime(d: unknown): string;
2
- export declare function locDate(d: unknown): string;
1
+ export declare function locFullDateTime(d: unknown): string;
2
+ export declare function locDate(d: unknown): string;
@@ -1,2 +1,2 @@
1
- export * from './date';
2
- export * from './url';
1
+ export * from './date';
2
+ export * from './url';
@@ -1 +1 @@
1
- export declare function checkValidURL(url: string): string;
1
+ export declare function checkValidURL(url: string): string;
package/dist/i18n.d.ts CHANGED
@@ -1,40 +1,40 @@
1
- import { VueConstructor } from 'vue';
2
- import VueI18Next from '@panter/vue-i18next';
3
- interface Options {
4
- app: string;
5
- resources: object;
6
- lng: string;
7
- fallbackLng: string | false;
8
- /**
9
- * Namespace(s) to preload
10
- */
11
- ns: string | Array<string>;
12
- /**
13
- * Where too look for keys that are not found in the default namespace,
14
- */
15
- fallbackNS: string | false;
16
- /**
17
- * What namespace to use when not explicitly defined
18
- * When empty, default is set to the value of (the first item in) ns
19
- */
20
- defaultNS: string;
21
- baseURL: string;
22
- pseudo: boolean;
23
- }
24
- declare const _default: (Vue: VueConstructor, app: string | Partial<Options>, ...namespaces: Array<string>) => VueI18Next;
25
- /**
26
- * Initializes i18n options, registers plugin on a given Vue instance and returns the options
27
- *
28
- * To be used as:
29
- * import { i18n } from '@cortezaproject/corteza-vue'
30
- * new Vue({
31
- * i18n: i18n(Vue, {
32
- * app: 'corteza-webapp-....'
33
- * namespaces: [ .... ]
34
- * }),
35
- * })
36
- *
37
- * The most convenient way to use it:
38
- * i18n(Vue, 'app name', 'namespace...', 'additional namespace...')
39
- */
40
- export default _default;
1
+ import { VueConstructor } from 'vue';
2
+ import VueI18Next from '@panter/vue-i18next';
3
+ interface Options {
4
+ app: string;
5
+ resources: object;
6
+ lng: string;
7
+ fallbackLng: string | false;
8
+ /**
9
+ * Namespace(s) to preload
10
+ */
11
+ ns: string | Array<string>;
12
+ /**
13
+ * Where too look for keys that are not found in the default namespace,
14
+ */
15
+ fallbackNS: string | false;
16
+ /**
17
+ * What namespace to use when not explicitly defined
18
+ * When empty, default is set to the value of (the first item in) ns
19
+ */
20
+ defaultNS: string;
21
+ baseURL: string;
22
+ pseudo: boolean;
23
+ }
24
+ /**
25
+ * Initializes i18n options, registers plugin on a given Vue instance and returns the options
26
+ *
27
+ * To be used as:
28
+ * import { i18n } from '@cortezaproject/corteza-vue'
29
+ * new Vue({
30
+ * i18n: i18n(Vue, {
31
+ * app: 'corteza-webapp-....'
32
+ * namespaces: [ .... ]
33
+ * }),
34
+ * })
35
+ *
36
+ * The most convenient way to use it:
37
+ * i18n(Vue, 'app name', 'namespace...', 'additional namespace...')
38
+ */
39
+ declare const _default: (Vue: VueConstructor, app: string | Partial<Options>, ...namespaces: Array<string>) => VueI18Next;
40
+ export default _default;
package/dist/index.d.ts CHANGED
@@ -1,12 +1,12 @@
1
- import * as plugins from './plugins';
2
- import * as mixins from './mixins';
3
- import * as components from './components';
4
- import * as corredor from './corredor';
5
- import * as filters from './filters';
6
- import * as store from './store';
7
- import * as url from './libs/url';
8
- import * as filter from './libs/filter';
9
- import * as handle from './libs/handle';
10
- import * as websocket from './libs/websocket';
11
- import i18n from './i18n';
12
- export { plugins, mixins, components, corredor, filters, store, url, filter, handle, websocket, i18n, };
1
+ import * as plugins from './plugins';
2
+ import * as mixins from './mixins';
3
+ import * as components from './components';
4
+ import * as corredor from './corredor';
5
+ import * as filters from './filters';
6
+ import * as store from './store';
7
+ import * as url from './libs/url';
8
+ import * as filter from './libs/filter';
9
+ import * as handle from './libs/handle';
10
+ import * as websocket from './libs/websocket';
11
+ import i18n from './i18n';
12
+ export { plugins, mixins, components, corredor, filters, store, url, filter, handle, websocket, i18n, };