@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,22 +1,22 @@
1
- import { Component } from 'vue';
2
- interface Handler {
3
- value(props: object): unknown;
4
- update(props: object, value: unknown): void;
5
- }
6
- interface Props {
7
- [_: string]: unknown;
8
- }
9
- interface Control extends Handler {
10
- component: Component;
11
- props?: Props;
12
- }
13
- interface Specs {
14
- handler: string | Handler;
15
- props?: Props;
16
- }
17
- export declare function generic(component: Component, { handler, props }: Specs): Control;
18
- export declare function input(label: string, handler: string | Handler): Control;
19
- export declare function textarea(label: string, handler: string | Handler): Control;
20
- export declare function checkbox(label: string, handler: string | Handler): Control;
21
- export declare function select(label: string, handler: string | Handler, options: object): Control;
22
- export {};
1
+ import { Component } from 'vue';
2
+ interface Handler {
3
+ value(props: object): unknown;
4
+ update(props: object, value: unknown): void;
5
+ }
6
+ interface Props {
7
+ [_: string]: unknown;
8
+ }
9
+ interface Control extends Handler {
10
+ component: Component;
11
+ props?: Props;
12
+ }
13
+ interface Specs {
14
+ handler: string | Handler;
15
+ props?: Props;
16
+ }
17
+ export declare function generic(component: Component, { handler, props }: Specs): Control;
18
+ export declare function input(label: string, handler: string | Handler): Control;
19
+ export declare function textarea(label: string, handler: string | Handler): Control;
20
+ export declare function checkbox(label: string, handler: string | Handler): Control;
21
+ export declare function select(label: string, handler: string | Handler, options: object): Control;
22
+ export {};
@@ -1,29 +1,29 @@
1
- export interface Catalogue {
2
- [_: string]: CatalogueItem;
3
- }
4
- export interface CatalogueItem {
5
- group?: Array<string>;
6
- name?: string;
7
- }
8
- /**
9
- * Extract subgroups from the given groups
10
- * @param groups
11
- * @param path Array of groups that represent the path
12
- */
13
- export declare function extractGroups(groups: Array<Array<string>>, ...path: Array<string>): Array<string>;
14
- /**
15
- * Extract subgroups from the catalogue that match the given path
16
- *
17
- * @param cat Catalogue
18
- * @param path Array of groups that represent the path
19
- * @constructor
20
- */
21
- export declare function ExtractSubgroups(cat: Catalogue, ...path: Array<string>): Array<string>;
22
- /**
23
- * Returns all components that match the given path
24
- *
25
- * @param cat Catalogue
26
- * @param path Array of groups that represent the path
1
+ export interface CatalogueItem {
2
+ group?: Array<string>;
3
+ name?: string;
4
+ }
5
+ export interface Catalogue {
6
+ [_: string]: CatalogueItem;
7
+ }
8
+ /**
9
+ * Extract subgroups from the given groups
10
+ * @param groups
11
+ * @param path Array of groups that represent the path
12
+ */
13
+ export declare function extractGroups(groups: Array<Array<string>>, ...path: Array<string>): Array<string>;
14
+ /**
15
+ * Extract subgroups from the catalogue that match the given path
16
+ *
17
+ * @param cat Catalogue
18
+ * @param path Array of groups that represent the path
19
+ * @constructor
20
+ */
21
+ export declare function ExtractSubgroups(cat: Catalogue, ...path: Array<string>): Array<string>;
22
+ /**
23
+ * Returns all components that match the given path
24
+ *
25
+ * @param cat Catalogue
26
+ * @param path Array of groups that represent the path
27
27
 
28
- */
29
- export declare function ExtractComponents(cat: Catalogue, ...path: Array<string>): Array<CatalogueItem>;
28
+ */
29
+ export declare function ExtractComponents(cat: Catalogue, ...path: Array<string>): Array<CatalogueItem>;
@@ -1,7 +1,7 @@
1
- import View from './C3.vue';
2
- import * as controls from './Controls';
3
- declare const _default: {
4
- View: import("vue").VueConstructor<View>;
5
- controls: typeof controls;
6
- };
7
- export default _default;
1
+ import View from './C3.vue';
2
+ import * as controls from './Controls';
3
+ declare const _default: {
4
+ View: import("vue").VueConstructor<View<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => View>>;
5
+ controls: typeof controls;
6
+ };
7
+ export default _default;
@@ -1 +1 @@
1
- export { default as CChart } from './CChart.vue';
1
+ export { default as CChart } from './CChart.vue';
@@ -1 +1 @@
1
- export { default as CCorredorManualButtons } from './CCorredorManualButtons.vue';
1
+ export { default as CCorredorManualButtons } from './CCorredorManualButtons.vue';
@@ -1,3 +1,3 @@
1
- export { default as CPreviewLightbox } from './CPreviewLightbox.vue';
2
- export { default as CPreviewInline } from './CPreviewInline.vue';
3
- export { canPreview } from './common/index.js';
1
+ export { default as CPreviewLightbox } from './CPreviewLightbox.vue';
2
+ export { default as CPreviewInline } from './CPreviewInline.vue';
3
+ export { canPreview } from './common/index.js';
@@ -1 +1 @@
1
- export { default as CHint } from './CHint.vue';
1
+ export { default as CHint } from './CHint.vue';
@@ -1,22 +1,22 @@
1
- export { CCorredorManualButtons, } from './corredor';
2
- export { CPreviewInline, CPreviewLightbox, canPreview, } from './filePreview';
3
- export { CInputConfirm, CInputProcessing, CInputDateTime, CInputPresort, CInputCron, CInputSearch, CRichTextInput, CInputCheckbox, CInputColorPicker, CAceEditor, CInputExpression, CButtonSubmit, CInputSelect, CInputRole, } from './input';
4
- export { CLightbox, } from './lightbox';
5
- export { CPermissionsButton, CPermissionsModal, } from './permissions';
6
- export * from './prompts';
7
- export { CLoaderLogo, } from './loader';
8
- export { CTopbar, CSidebar, CSidebarNavItems, } from './navigation';
9
- export { CToaster, CToasterLink, } from './toaster';
10
- export { CReminderSidebar, } from './reminders';
11
- export { CItemPicker, CItemPickerItem, } from './itemPicker';
12
- export { CReportChart, CReportMetric, CReportTable, CReportText, } from './reporter';
13
- export { CSensitivityLevelPicker, } from './privacy';
14
- export { CResourceList, } from './resourceList';
15
- export { CChart, } from './chart';
16
- export { CProgress, } from './progress';
17
- export { CToolbar, } from './toolbar';
18
- export { CHint, } from './hint';
19
- export { CMap, } from './map';
20
- export { CFormTableWrapper, } from './wrapper';
21
- export { CWebcam, } from './webcam';
22
- export { default as C3 } from './c3';
1
+ export { CCorredorManualButtons, } from './corredor';
2
+ export { CPreviewInline, CPreviewLightbox, canPreview, } from './filePreview';
3
+ export { CInputConfirm, CInputProcessing, CInputDateTime, CInputPresort, CInputSearch, CRichTextInput, CInputCheckbox, CInputColorPicker, CAceEditor, CInputExpression, CButtonSubmit, CInputSelect, CInputRole, } from './input';
4
+ export { CLightbox, } from './lightbox';
5
+ export { CPermissionsButton, CPermissionsModal, } from './permissions';
6
+ export * from './prompts';
7
+ export { CLoaderLogo, } from './loader';
8
+ export { CTopbar, CSidebar, CSidebarNavItems, } from './navigation';
9
+ export { CToaster, CToasterLink, } from './toaster';
10
+ export { CReminderSidebar, } from './reminders';
11
+ export { CItemPicker, CItemPickerItem, } from './itemPicker';
12
+ export { CReportChart, CReportMetric, CReportTable, CReportText, } from './reporter';
13
+ export { CSensitivityLevelPicker, } from './privacy';
14
+ export { CResourceList, } from './resourceList';
15
+ export { CChart, } from './chart';
16
+ export { CProgress, } from './progress';
17
+ export { CToolbar, } from './toolbar';
18
+ export { CHint, } from './hint';
19
+ export { CMap, } from './map';
20
+ export { CFormTableWrapper, } from './wrapper';
21
+ export { CWebcam, } from './webcam';
22
+ export { default as C3 } from './c3';
@@ -1,4 +1,4 @@
1
- export declare function getDate(value: string | undefined): string | undefined;
2
- export declare function getTime(value: string | undefined): string | undefined;
3
- export declare function setDate(date: string | undefined, value: string | undefined, noDate?: boolean, noTime?: boolean): string | undefined;
4
- export declare function setTime(time: string | undefined, value: string | undefined, noDate?: boolean, noTime?: boolean): string | undefined;
1
+ export declare function getDate(value: string | undefined): string | undefined;
2
+ export declare function getTime(value: string | undefined): string | undefined;
3
+ export declare function setDate(date: string | undefined, value: string | undefined, noDate?: boolean, noTime?: boolean): string | undefined;
4
+ export declare function setTime(time: string | undefined, value: string | undefined, noDate?: boolean, noTime?: boolean): string | undefined;
@@ -1 +1 @@
1
- export { default as CButtonSubmit } from './CButtonSubmit.vue';
1
+ export { default as CButtonSubmit } from './CButtonSubmit.vue';
@@ -1,14 +1,13 @@
1
- export { default as CInputConfirm } from './CInputConfirm.vue';
2
- export { default as CInputProcessing } from './CInputProcessing.vue';
3
- export { default as CInputDateTime } from './CInputDateTime/index.vue';
4
- export { default as CInputPresort } from './CInputPresort.vue';
5
- export { default as CInputCron } from './CInputCron.vue';
6
- export { default as CInputSearch } from './CInputSearch.vue';
7
- export { default as CRichTextInput } from './CRichTextInput/index.vue';
8
- export { default as CInputCheckbox } from './CInputCheckbox.vue';
9
- export { default as CInputColorPicker } from './CInputColorPicker.vue';
10
- export { default as CAceEditor } from './CAceEditor.vue';
11
- export { default as CInputExpression } from './CInputExpression.vue';
12
- export { CButtonSubmit, } from './button';
13
- export { default as CInputSelect } from './CInputSelect.vue';
14
- export { default as CInputRole } from './CInputRole.vue';
1
+ export { default as CInputConfirm } from './CInputConfirm.vue';
2
+ export { default as CInputProcessing } from './CInputProcessing.vue';
3
+ export { default as CInputDateTime } from './CInputDateTime/index.vue';
4
+ export { default as CInputPresort } from './CInputPresort.vue';
5
+ export { default as CInputSearch } from './CInputSearch.vue';
6
+ export { default as CRichTextInput } from './CRichTextInput/index.vue';
7
+ export { default as CInputCheckbox } from './CInputCheckbox.vue';
8
+ export { default as CInputColorPicker } from './CInputColorPicker.vue';
9
+ export { default as CAceEditor } from './CAceEditor.vue';
10
+ export { default as CInputExpression } from './CInputExpression.vue';
11
+ export { CButtonSubmit, } from './button';
12
+ export { default as CInputSelect } from './CInputSelect.vue';
13
+ export { default as CInputRole } from './CInputRole.vue';
@@ -1,2 +1,2 @@
1
- export { default as CItemPicker } from './CItemPicker.vue';
2
- export { default as CItemPickerItem } from './CItemPickerItem.vue';
1
+ export { default as CItemPicker } from './CItemPicker.vue';
2
+ export { default as CItemPickerItem } from './CItemPickerItem.vue';
@@ -1 +1 @@
1
- export { default as CLightbox } from './CLightbox.vue';
1
+ export { default as CLightbox } from './CLightbox.vue';
@@ -1 +1 @@
1
- export { default as CLoaderLogo } from './CLoaderLogo.vue';
1
+ export { default as CLoaderLogo } from './CLoaderLogo.vue';
@@ -1 +1 @@
1
- export { default as CMap } from './CMap.vue';
1
+ export { default as CMap } from './CMap.vue';
@@ -1,3 +1,3 @@
1
- export { default as CTopbar } from './CTopbar.vue';
2
- export { default as CSidebar } from './CSidebar.vue';
3
- export { default as CSidebarNavItems } from './CSidebarNavItems.vue';
1
+ export { default as CTopbar } from './CTopbar.vue';
2
+ export { default as CSidebar } from './CSidebar.vue';
3
+ export { default as CSidebarNavItems } from './CSidebarNavItems.vue';
@@ -1,14 +1,14 @@
1
- export declare const modalOpenEventName = "c-permissions-modal-open";
2
- interface ResourceParts {
3
- component: string;
4
- resourceType?: string;
5
- references: Array<string>;
6
- i18nPrefix: string;
7
- }
8
- /**
9
- * Splitting strings:
10
- * - corteza::compose:moduleField/42/21/12
11
- * - corteza::compose/42/21/12
12
- */
13
- export declare function split(input: string): ResourceParts;
14
- export {};
1
+ export declare const modalOpenEventName = "c-permissions-modal-open";
2
+ interface ResourceParts {
3
+ component: string;
4
+ resourceType?: string;
5
+ references: Array<string>;
6
+ i18nPrefix: string;
7
+ }
8
+ /**
9
+ * Splitting strings:
10
+ * - corteza::compose:moduleField/42/21/12
11
+ * - corteza::compose/42/21/12
12
+ */
13
+ export declare function split(input: string): ResourceParts;
14
+ export {};
@@ -1,2 +1,2 @@
1
- export { default as CPermissionsButton } from './CPermissionsButton.vue';
2
- export { default as CPermissionsModal } from './CPermissionsModal.vue';
1
+ export { default as CPermissionsButton } from './CPermissionsButton.vue';
2
+ export { default as CPermissionsModal } from './CPermissionsModal.vue';
@@ -1 +1 @@
1
- export { default as CSensitivityLevelPicker } from './CSensitivityLevelPicker.vue';
1
+ export { default as CSensitivityLevelPicker } from './CSensitivityLevelPicker.vue';
@@ -1 +1 @@
1
- export { default as CProgress } from './CProgress.vue';
1
+ export { default as CProgress } from './CProgress.vue';
@@ -1,2 +1,2 @@
1
- import { automation } from '@cortezaproject/corteza-js';
2
- export declare const prompts: readonly automation.Function[];
1
+ import { automation } from '@cortezaproject/corteza-js';
2
+ export declare const prompts: readonly automation.Function[];
@@ -1,4 +1,4 @@
1
- export { default as CPrompts } from './CPrompts.vue';
2
- export { default as CPromptModal } from './CPromptModal.vue';
3
- export { default as CPromptToast } from './CPromptToast.vue';
4
- export { prompts as promptDefinitions } from './definitions';
1
+ export { default as CPrompts } from './CPrompts.vue';
2
+ export { default as CPromptModal } from './CPromptModal.vue';
3
+ export { default as CPromptToast } from './CPromptToast.vue';
4
+ export { prompts as promptDefinitions } from './definitions';
@@ -1,22 +1,22 @@
1
- import { Component } from 'vue';
2
- import { automation } from '@cortezaproject/corteza-js';
3
- interface Handler {
4
- (this: Component, input: automation.Vars): void | Promise<void>;
5
- }
6
- interface PromptDefinition {
7
- component?: Component;
8
- /**
9
- *
10
- */
11
- handler?: Handler;
12
- /**
13
- * Passive prompt, will not be listed
14
- *
15
- * Also, when displaying toasts, we'll display all
16
- * passive toasts first and then, at the and one single
17
- * non-passive toast
18
- */
19
- passive?: boolean;
20
- }
21
- declare const definitions: Record<string, PromptDefinition>;
22
- export default definitions;
1
+ import { Component } from 'vue';
2
+ import { automation } from '@cortezaproject/corteza-js';
3
+ interface Handler {
4
+ (this: Component, input: automation.Vars): void | Promise<void>;
5
+ }
6
+ interface PromptDefinition {
7
+ component?: Component;
8
+ /**
9
+ *
10
+ */
11
+ handler?: Handler;
12
+ /**
13
+ * Passive prompt, will not be listed
14
+ *
15
+ * Also, when displaying toasts, we'll display all
16
+ * passive toasts first and then, at the and one single
17
+ * non-passive toast
18
+ */
19
+ passive?: boolean;
20
+ }
21
+ declare const definitions: Record<string, PromptDefinition>;
22
+ export default definitions;
@@ -1,3 +1,3 @@
1
- import { automation } from '@cortezaproject/corteza-js';
2
- export declare function pVal<T = unknown>(vars: automation.Vars, k: string, def?: T): T | undefined;
3
- export declare function pType(vars: automation.Vars, k: string, def?: string): string | undefined;
1
+ import { automation } from '@cortezaproject/corteza-js';
2
+ export declare function pVal<T = unknown>(vars: automation.Vars, k: string, def?: T): T | undefined;
3
+ export declare function pType(vars: automation.Vars, k: string, def?: string): string | undefined;
@@ -1 +1 @@
1
- export { default as CReminderSidebar } from './CReminderSidebar.vue';
1
+ export { default as CReminderSidebar } from './CReminderSidebar.vue';
@@ -1,4 +1,4 @@
1
- export { default as CReportChart } from './Viewers/CReportChart.vue';
2
- export { default as CReportMetric } from './Viewers/CReportMetric.vue';
3
- export { default as CReportTable } from './Viewers/CReportTable.vue';
4
- export { default as CReportText } from './Viewers/CReportText.vue';
1
+ export { default as CReportChart } from './Viewers/CReportChart.vue';
2
+ export { default as CReportMetric } from './Viewers/CReportMetric.vue';
3
+ export { default as CReportTable } from './Viewers/CReportTable.vue';
4
+ export { default as CReportText } from './Viewers/CReportText.vue';
@@ -1 +1 @@
1
- export { default as CResourceList } from './CResourceList.vue';
1
+ export { default as CResourceList } from './CResourceList.vue';
@@ -1,2 +1,2 @@
1
- export { default as CToaster } from './CToaster.vue';
2
- export { default as CToasterLink } from './CToasterLink.vue';
1
+ export { default as CToaster } from './CToaster.vue';
2
+ export { default as CToasterLink } from './CToasterLink.vue';
@@ -1 +1 @@
1
- export { default as CToolbar } from './CToolbar.vue';
1
+ export { default as CToolbar } from './CToolbar.vue';
@@ -1 +1 @@
1
- export { default as CWebcam } from './CWebcam.vue';
1
+ export { default as CWebcam } from './CWebcam.vue';
@@ -1 +1 @@
1
- export { default as CFormTableWrapper } from './CFormTableWrapper.vue';
1
+ export { default as CFormTableWrapper } from './CFormTableWrapper.vue';
@@ -1,32 +1,32 @@
1
- import { compose, apiClients, corredor } from '@cortezaproject/corteza-js';
2
- import ComposeUIHelper from './compose-ui';
3
- interface Vue {
4
- $SystemAPI: apiClients.System;
5
- $ComposeAPI: apiClients.Compose;
6
- $store: {
7
- getters: {
8
- [_: string]: Array<compose.Page>;
9
- };
10
- };
11
- $emit: unknown;
12
- $router: {
13
- push: unknown;
14
- };
15
- }
16
- /**
17
- * Extends corredor exec context with compose UI helper
18
- */
19
- export default class ComposeCtx extends corredor.Ctx {
20
- protected emitter: unknown;
21
- protected routePusher: unknown;
22
- protected pages: Array<compose.Page>;
23
- protected composeUI: ComposeUIHelper;
24
- protected vue: Vue;
25
- constructor(args: corredor.BaseArgs, vue: Vue);
26
- /**
27
- * Clones context and uses new arguments
28
- */
29
- withArgs(args: corredor.BaseArgs): ComposeCtx;
30
- get ComposeUI(): ComposeUIHelper;
31
- }
32
- export {};
1
+ import { compose, apiClients, corredor } from '@cortezaproject/corteza-js';
2
+ import ComposeUIHelper from './compose-ui';
3
+ interface Vue {
4
+ $SystemAPI: apiClients.System;
5
+ $ComposeAPI: apiClients.Compose;
6
+ $store: {
7
+ getters: {
8
+ [_: string]: Array<compose.Page>;
9
+ };
10
+ };
11
+ $emit: unknown;
12
+ $router: {
13
+ push: unknown;
14
+ };
15
+ }
16
+ /**
17
+ * Extends corredor exec context with compose UI helper
18
+ */
19
+ export default class ComposeCtx extends corredor.Ctx {
20
+ protected emitter: unknown;
21
+ protected routePusher: unknown;
22
+ protected pages: Array<compose.Page>;
23
+ protected composeUI: ComposeUIHelper;
24
+ protected vue: Vue;
25
+ constructor(args: corredor.BaseArgs, vue: Vue);
26
+ /**
27
+ * Clones context and uses new arguments
28
+ */
29
+ withArgs(args: corredor.BaseArgs): ComposeCtx;
30
+ get ComposeUI(): ComposeUIHelper;
31
+ }
32
+ export {};