@pitcher/js-api 1.26.0-beta.8 → 1.26.0
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.
- package/impact-js-api.spec.json +9 -0
- package/js-api.esm.js +806 -47
- package/js-api.esm.js.map +1 -1
- package/js-api.umd.min.js +10 -10
- package/js-api.umd.min.js.map +1 -1
- package/lib/api/events/events.helpers.d.ts +14 -2
- package/lib/apps/agenda-selector/composables/move-item-modal.use.d.ts +12 -0
- package/lib/apps/browser/App.vue.d.ts +117 -0
- package/lib/apps/browser/appTypes.d.ts +7 -7
- package/lib/apps/browser/components/Content/ActionsToolbar/ActionsToolbar.vue.d.ts +21 -4
- package/lib/apps/browser/components/Content/Content.vue.d.ts +1 -0
- package/lib/apps/browser/components/Content/Panel/DetailsDrawer/DetailsDrawer.vue.d.ts +1 -0
- package/lib/apps/browser/components/Content/Panel/FolderPanel/FolderPanel.vue.d.ts +16 -1
- package/lib/apps/browser/components/ContextMenu/ConvertToSlidesButton.vue.d.ts +6 -0
- package/lib/apps/browser/components/RepUploads.vue.d.ts +206 -0
- package/lib/apps/browser/components/UploadFilesModal/UploadFilesModal.vue.d.ts +2 -0
- package/lib/apps/browser/components/UploadFilesModal/UploadFilesModalProperties.vue.d.ts +4 -0
- package/lib/apps/browser/stores/api.d.ts +69 -10
- package/lib/apps/browser/stores/app.d.ts +1 -1
- package/lib/apps/browser/stores/repUploadsStore.d.ts +34 -0
- package/lib/apps/browser/stores/upload.d.ts +16 -4
- package/lib/apps/browser/types/actionKeys.d.ts +3 -1
- package/lib/apps/canvas-builder/App.vue.d.ts +13 -0
- package/lib/apps/canvas-builder/components/container/CanvasContent/canvas-component-map.const.d.ts +3 -0
- package/lib/apps/canvas-builder/components/container/CanvasContent/page.paginated.vue.d.ts +2 -2
- package/lib/apps/canvas-builder/components/container/CanvasContent/pageWrapper.paginated.vue.d.ts +7 -0
- package/lib/apps/canvas-builder/components/ui/Carousel/Carousel.vue.d.ts +5 -0
- package/lib/apps/canvas-builder/components/ui/CollectionPlayer/CollectionPlayer.vue.d.ts +5 -2
- package/lib/apps/canvas-builder/components/ui/ContentGrid/ContentGrid.vue.d.ts +5 -0
- package/lib/apps/canvas-builder/components/ui/ContentList/ContentList.vue.d.ts +9 -8
- package/lib/apps/canvas-builder/components/ui/CustomDataTable/CustomDataTable.vue.d.ts +5 -0
- package/lib/apps/canvas-builder/components/ui/DataCharts/DataCharts.raw.vue.d.ts +4 -0
- package/lib/apps/canvas-builder/components/ui/DataCharts/DataCharts.vue.d.ts +5 -0
- package/lib/apps/canvas-builder/components/ui/DataCharts/types.d.ts +119 -8
- package/lib/apps/canvas-builder/components/ui/DynamicContent/DynamicContent.edit.vue.d.ts +2 -0
- package/lib/apps/canvas-builder/components/ui/DynamicContent/DynamicContent.raw.vue.d.ts +8 -0
- package/lib/apps/canvas-builder/components/ui/DynamicContent/DynamicContent.settings.vue.d.ts +7 -0
- package/lib/apps/canvas-builder/components/ui/DynamicContent/DynamicContent.vue.d.ts +31 -0
- package/lib/apps/canvas-builder/components/ui/DynamicContent/DynamicContentList.vue.d.ts +12 -0
- package/lib/apps/canvas-builder/components/ui/DynamicContent/dynamicContent.const.d.ts +4 -0
- package/lib/apps/canvas-builder/components/ui/DynamicContent/section-component-map.const.d.ts +1 -0
- package/lib/apps/canvas-builder/components/ui/DynamicContent/useDynamicContent.d.ts +436 -0
- package/lib/apps/canvas-builder/components/ui/DynamicDataTable/DynamicDataTable.vue.d.ts +5 -0
- package/lib/apps/canvas-builder/components/ui/Embeddable/Embeddable.vue.d.ts +5 -0
- package/lib/apps/canvas-builder/components/ui/Grid/Grid.vue.d.ts +5 -0
- package/lib/apps/canvas-builder/components/ui/Html/Html.vue.d.ts +5 -0
- package/lib/apps/canvas-builder/components/ui/IFrame/IFrame.vue.d.ts +5 -0
- package/lib/apps/canvas-builder/components/ui/Link/Link.vue.d.ts +5 -0
- package/lib/apps/canvas-builder/components/ui/Multimedia/Multimedia.vue.d.ts +5 -0
- package/lib/apps/canvas-builder/components/ui/Page/Page.vue.d.ts +5 -0
- package/lib/apps/canvas-builder/components/ui/PageBreak/PageBreak.vue.d.ts +15 -1
- package/lib/apps/canvas-builder/components/ui/Scribble/Scribble.original.vue.d.ts +5 -0
- package/lib/apps/canvas-builder/components/ui/Scribble/Scribble.responsive.vue.d.ts +5 -0
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionItemModal.vue.d.ts +4 -2
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionList.vue.d.ts +9 -3
- package/lib/apps/canvas-builder/components/ui/SectionList/SectionSelectorToolbar.vue.d.ts +0 -12
- package/lib/apps/canvas-builder/components/ui/Timeline/Timeline.vue.d.ts +5 -0
- package/lib/apps/canvas-builder/composables/useCanvas.d.ts +372 -14
- package/lib/apps/canvas-builder/composables/useCanvasBlocks.d.ts +64 -2
- package/lib/apps/canvas-builder/composables/useCanvasCompletionWizard.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useCanvasHistory.d.ts +62 -0
- package/lib/apps/canvas-builder/composables/useCanvasPages.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useCanvasSectionOverrides.d.ts +1 -1
- package/lib/apps/canvas-builder/composables/useCanvasTheme.d.ts +42 -18
- package/lib/apps/canvas-builder/composables/useCanvasVisibility.d.ts +2 -2
- package/lib/apps/canvas-builder/composables/useComponentPermissions.d.ts +2 -1
- package/lib/apps/canvas-builder/composables/useContentSelector.d.ts +9 -1
- package/lib/apps/canvas-builder/composables/useCrmShape.d.ts +2 -1
- package/lib/apps/canvas-builder/composables/useCrmShapeWithSectionContext.d.ts +1 -2
- package/lib/apps/canvas-builder/composables/usePopupApps.d.ts +10 -2
- package/lib/apps/canvas-builder/composables/useReorderComponent.d.ts +3 -3
- package/lib/apps/canvas-builder/composables/useScribbleChild.d.ts +1 -1
- package/lib/apps/canvas-builder/constants/canvas.const.d.ts +4 -0
- package/lib/apps/canvas-builder/types/canvas.d.ts +25 -2
- package/lib/apps/canvas-builder/util/canvas.util.d.ts +6 -5
- package/lib/apps/canvas-builder/util/fetchAnalyticsPopularity.d.ts +18 -0
- package/lib/apps/canvas-selector/stores/app.d.ts +14 -14
- package/lib/apps/collection-player/App.vue.d.ts +0 -1
- package/lib/apps/collection-player/stores/app.store.d.ts +0 -1
- package/lib/apps/collection-selector/composables/move-slide-modal.use.d.ts +12 -0
- package/lib/apps/content-selector/appTypes.d.ts +1 -0
- package/lib/apps/content-selector/components/Content/AllContent/List/FoldersFilesList.vue.d.ts +21 -4
- package/lib/apps/content-selector/stores/app.d.ts +2 -1
- package/lib/apps/ppt-conversion-selector/composables/move-slide-modal.use.d.ts +6 -0
- package/lib/apps/ppt-conversion-selector/export.d.ts +1 -0
- package/lib/apps/ppt-conversion-selector/stores/app.store.d.ts +8 -0
- package/lib/apps/ppt-conversion-selector/utils/data.util.d.ts +1 -0
- package/lib/apps/ppt-conversion-selector/utils/data.util.test.d.ts +1 -0
- package/lib/components/CBulkToolbar/CBulkToolbar.vue.d.ts +3 -0
- package/lib/components/CComponentListItem/CComponentListItem.vue.d.ts +8 -8
- package/lib/components/CContactSelector/CContactAccountListItem.vue.d.ts +3 -0
- package/lib/components/CContactSelector/CContactSelector.vue.d.ts +3 -1
- package/lib/components/CContactSelector/CContactSelectorAccountsWithContacts.vue.d.ts +10 -4
- package/lib/components/CContentError/CContentError.vue.d.ts +2 -0
- package/lib/components/CFileAttributes/CFileAttributes.vue.d.ts +11 -0
- package/lib/components/CGlobalSearch/GlobalSearch.use.d.ts +2 -1
- package/lib/components/CSearchFilters/CSearchFilters.vue.d.ts +7 -1
- package/lib/components/CSwitch/CSwitch.vue.d.ts +4 -2
- package/lib/components/CTemplateAccessInfo/CTemplateAccessInfo.vue.d.ts +25 -0
- package/lib/components/CTemplateAccessManage/CTemplateAccessManage.vue.d.ts +26 -0
- package/lib/components/CUsersGroupsAccessManage/CUsersGroupsAccessManage.types.d.ts +3 -8
- package/lib/components/assignedCanvases/CAssignedCanvasesManagement.vue.d.ts +20 -4
- package/lib/components/assignedCanvases/CAssignedCanvasesManagementToolbar.vue.d.ts +4 -1
- package/lib/components/canvas-blocks/CBlockManagement.vue.d.ts +19 -7
- package/lib/components/canvas-blocks/CBlockManagementToolbar.vue.d.ts +4 -1
- package/lib/components/canvas-templates/CTemplateManagement.vue.d.ts +79 -15
- package/lib/components/canvas-templates/CTemplateManagementActionsCell.vue.d.ts +3 -0
- package/lib/components/canvas-templates/CTemplateManagementToolbar.vue.d.ts +28 -5
- package/lib/components/filters/CSearchFilter.vue.d.ts +1148 -1
- package/lib/components/savedCanvases/CSavedCanvasesManagement.use.d.ts +3 -0
- package/lib/components/savedCanvases/CSavedCanvasesManagement.use.spec.d.ts +1 -0
- package/lib/components/savedCanvases/CSavedCanvasesManagement.vue.d.ts +31 -4
- package/lib/components/savedCanvases/CSavedCanvasesManagementActionsCell.vue.d.ts +12 -0
- package/lib/components/savedCanvases/CSavedCanvasesManagementToolbar.vue.d.ts +5 -1
- package/lib/components/savedCanvases/smartFolders/SmartFolders.use.d.ts +4 -4
- package/lib/components/sections/CSectionManagement.vue.d.ts +23 -7
- package/lib/components/sections/CSectionManagementActionsCell.vue.d.ts +3 -0
- package/lib/components/sections/CSectionManagementToolbar.vue.d.ts +4 -1
- package/lib/components/themes/CThemeManagement.vue.d.ts +18 -4
- package/lib/components/themes/CThemeManagementActionsCell.vue.d.ts +3 -0
- package/lib/components/themes/CThemeManagementToolbar.vue.d.ts +4 -1
- package/lib/composables/presentationHistory.use.d.ts +12 -2
- package/lib/composables/useCanvasStandardFilters.d.ts +17 -2
- package/lib/composables/useFileDisplayHelpers.d.ts +1 -0
- package/lib/composables/useFilterSuggestions.d.ts +5 -1
- package/lib/composables/useMetadataSearch.d.ts +8 -2
- package/lib/composables/useSmartStore.d.ts +25 -0
- package/lib/main.lib.d.ts +8 -1
- package/lib/sdk/api/HighLevelApi.d.ts +7 -4
- package/lib/sdk/api/modules/index.d.ts +0 -1
- package/lib/sdk/api/modules/query.d.ts +145 -1
- package/lib/sdk/api/modules/ui/content.ui.d.ts +22 -1
- package/lib/sdk/api/modules/ui/index.d.ts +3 -0
- package/lib/sdk/api/modules/ui/sharing.ui.d.ts +2 -0
- package/lib/sdk/api/modules/ui/types.ui.d.ts +32 -0
- package/lib/sdk/interfaces.d.ts +16 -0
- package/lib/sdk/main.d.ts +30 -12
- package/lib/sdk/payload.types.d.ts +138 -0
- package/lib/sdk/utils/httpFetch.d.ts +2 -0
- package/lib/types/app.d.ts +2 -1
- package/lib/types/call.d.ts +9 -2
- package/lib/types/canvases.d.ts +2 -0
- package/lib/types/core/MetadataFilter.d.ts +1 -0
- package/lib/types/instanceSettings.types.d.ts +4 -2
- package/lib/types/launchDarkly.types.d.ts +11 -4
- package/lib/types/organizationSettings.types.d.ts +11 -0
- package/lib/types/sfdc.d.ts +6 -1
- package/lib/util/app.util.d.ts +46 -0
- package/lib/util/eval.d.ts +4 -0
- package/lib/util/font.util.d.ts +4 -0
- package/lib/util/handlebars.d.ts +35 -0
- package/lib/util/object.d.ts +1 -0
- package/lib/util/sfdc.util.d.ts +7 -0
- package/lib/util/sfdc.util.spec.d.ts +1 -0
- package/lib/util/smart-store.util.d.ts +53 -0
- package/lib/util/smart-store.util.spec.d.ts +1 -0
- package/package.json +2 -2
- package/types/openapi/models/Account.d.ts +1 -1
- package/types/openapi/models/AccountRequest.d.ts +1 -1
- package/types/openapi/models/CanvasRecommendedFile.d.ts +1 -0
- package/types/openapi/models/DeletedFile.d.ts +1 -0
- package/types/openapi/models/DeletedFolder.d.ts +1 -0
- package/types/openapi/models/FavoriteFile.d.ts +1 -0
- package/types/openapi/models/FavoriteFileRequest.d.ts +1 -0
- package/types/openapi/models/File.d.ts +1 -0
- package/types/openapi/models/FileContentTypeEnum.d.ts +3 -0
- package/types/openapi/models/FileCreate.d.ts +1 -0
- package/types/openapi/models/FileCreateRequest.d.ts +1 -0
- package/types/openapi/models/FilePermission.d.ts +2 -0
- package/types/openapi/models/FilePermissionRequest.d.ts +2 -0
- package/types/openapi/models/FileRetrieve.d.ts +1 -0
- package/types/openapi/models/FileUpdate.d.ts +1 -0
- package/types/openapi/models/FileUpdateRequest.d.ts +1 -0
- package/types/openapi/models/Folder.d.ts +1 -0
- package/types/openapi/models/FolderCreate.d.ts +3 -0
- package/types/openapi/models/FolderFile.d.ts +3 -0
- package/types/openapi/models/FolderRetrieve.d.ts +4 -0
- package/types/openapi/models/FolderUpdate.d.ts +3 -0
- package/types/openapi/models/InstanceMembershipUser.d.ts +1 -0
- package/types/openapi/models/OfflineSyncFolder.d.ts +1 -0
- package/types/openapi/models/PaginatedAppList.d.ts +2 -2
- package/types/openapi/models/PaginatedAuthTokenList.d.ts +2 -2
- package/types/openapi/models/PaginatedCanvasList.d.ts +2 -2
- package/types/openapi/models/PaginatedCollaborationList.d.ts +2 -2
- package/types/openapi/models/PaginatedContentDistributionGroupList.d.ts +2 -2
- package/types/openapi/models/PaginatedContentDistributionGroupMembershipList.d.ts +2 -2
- package/types/openapi/models/PaginatedEnvironmentList.d.ts +2 -2
- package/types/openapi/models/PaginatedEventList.d.ts +2 -2
- package/types/openapi/models/PaginatedFavoriteList.d.ts +2 -2
- package/types/openapi/models/PaginatedFileList.d.ts +2 -2
- package/types/openapi/models/PaginatedFileRevisionList.d.ts +2 -2
- package/types/openapi/models/PaginatedFolderList.d.ts +2 -2
- package/types/openapi/models/PaginatedInstanceAssignmentGroupList.d.ts +2 -2
- package/types/openapi/models/PaginatedInstanceAssignmentGroupMembershipList.d.ts +2 -2
- package/types/openapi/models/PaginatedInstanceList.d.ts +2 -2
- package/types/openapi/models/PaginatedInstanceMembershipList.d.ts +2 -2
- package/types/openapi/models/PaginatedInvitationList.d.ts +2 -2
- package/types/openapi/models/PaginatedMetadataTemplateList.d.ts +2 -2
- package/types/openapi/models/PaginatedOfflineSyncFolderList.d.ts +2 -2
- package/types/openapi/models/PaginatedRegionList.d.ts +2 -2
- package/types/openapi/models/PaginatedRevisionList.d.ts +2 -2
- package/types/openapi/models/PaginatedUserList.d.ts +2 -2
- package/types/openapi/models/PatchedFileUpdateRequest.d.ts +1 -0
- package/types/openapi/models/User.d.ts +5 -1
- package/lib/api/events/events.queries.d.ts +0 -9
- package/lib/sdk/api/modules/events.d.ts +0 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { CSSProperties } from 'vue';
|
|
2
2
|
import { ComponentNode, ComponentNodePrint, ComponentNodeLinkable, ContentListProps } from '../../../types/canvas';
|
|
3
|
-
import { FileContentTypeEnum } from '../../../../../../types/openapi';
|
|
3
|
+
import { FileContentTypeEnum, CanvasRetrieve } from '../../../../../../types/openapi';
|
|
4
4
|
type __VLS_Props = {
|
|
5
5
|
id: ComponentNode['id'];
|
|
6
6
|
data: ContentListProps;
|
|
@@ -14,16 +14,17 @@ type __VLS_Props = {
|
|
|
14
14
|
autofill?: 'off' | 'ai' | 'matching_metadata' | 'matching_tags' | 'matching_metadata_or_tags';
|
|
15
15
|
linkable?: ComponentNodeLinkable;
|
|
16
16
|
autofill_content_types?: FileContentTypeEnum[] | null;
|
|
17
|
-
when_used_in_section?:
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
};
|
|
17
|
+
when_used_in_section?: ComponentNode['when_used_in_section'];
|
|
18
|
+
template_permissions?: ComponentNode['template_permissions'];
|
|
19
|
+
usedInSectionId?: CanvasRetrieve['id'];
|
|
21
20
|
};
|
|
22
21
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
23
22
|
style: (s: CSSProperties) => any;
|
|
24
23
|
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
24
|
onStyle?: ((s: CSSProperties) => any) | undefined;
|
|
26
|
-
}>, {
|
|
25
|
+
}>, {
|
|
26
|
+
usedInSectionId: CanvasRetrieve["id"];
|
|
27
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
27
28
|
contentListRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<{
|
|
28
29
|
id: ComponentNode["id"];
|
|
29
30
|
data: ContentListProps;
|
|
@@ -39,7 +40,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
39
40
|
}>, {
|
|
40
41
|
toggleSectionSelector: () => void;
|
|
41
42
|
onSectionsSelect: (items: {
|
|
42
|
-
id:
|
|
43
|
+
id: CanvasRetrieve["id"];
|
|
43
44
|
}[], isForcedRecommendations?: boolean) => Promise<void>;
|
|
44
45
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
45
46
|
justAdded: (id: string) => any;
|
|
@@ -68,7 +69,7 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
68
69
|
}>, {
|
|
69
70
|
toggleSectionSelector: () => void;
|
|
70
71
|
onSectionsSelect: (items: {
|
|
71
|
-
id:
|
|
72
|
+
id: CanvasRetrieve["id"];
|
|
72
73
|
}[], isForcedRecommendations?: boolean) => Promise<void>;
|
|
73
74
|
}, {}, {}, {}, {}> | null;
|
|
74
75
|
iframeRef: HTMLIFrameElement;
|
|
@@ -7,6 +7,7 @@ type __VLS_Props = {
|
|
|
7
7
|
parentType?: ComponentTypes;
|
|
8
8
|
usedInSectionId?: CanvasRetrieve['id'];
|
|
9
9
|
when_used_in_section?: ComponentNode['when_used_in_section'];
|
|
10
|
+
template_permissions?: ComponentNode['template_permissions'];
|
|
10
11
|
visible?: ComponentNode['visible'];
|
|
11
12
|
tracking_id?: string;
|
|
12
13
|
style?: Record<string, any>;
|
|
@@ -22,6 +23,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
22
23
|
is_editable: boolean;
|
|
23
24
|
is_removable: boolean;
|
|
24
25
|
};
|
|
26
|
+
template_permissions: {
|
|
27
|
+
is_editable: boolean;
|
|
28
|
+
is_removable: boolean;
|
|
29
|
+
};
|
|
25
30
|
usedInSectionId: CanvasRetrieve["id"];
|
|
26
31
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
27
32
|
export default _default;
|
|
@@ -8,9 +8,13 @@ declare global {
|
|
|
8
8
|
type __VLS_Props = {
|
|
9
9
|
data?: ExtendedChartConfiguration & {
|
|
10
10
|
context?: any;
|
|
11
|
+
_original_chart_type?: string;
|
|
11
12
|
};
|
|
13
|
+
isPreview?: boolean;
|
|
14
|
+
isEditMode?: boolean;
|
|
12
15
|
};
|
|
13
16
|
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
17
|
+
containerRef: HTMLDivElement;
|
|
14
18
|
chartRef: HTMLCanvasElement;
|
|
15
19
|
}, HTMLDivElement>;
|
|
16
20
|
export default _default;
|
|
@@ -7,6 +7,7 @@ type __VLS_Props = {
|
|
|
7
7
|
children?: ComponentNode[];
|
|
8
8
|
usedInSectionId?: CanvasRetrieve['id'];
|
|
9
9
|
when_used_in_section?: ComponentNode['when_used_in_section'];
|
|
10
|
+
template_permissions?: ComponentNode['template_permissions'];
|
|
10
11
|
visible?: ComponentNode['visible'];
|
|
11
12
|
tracking_id?: string;
|
|
12
13
|
style?: Record<string, any>;
|
|
@@ -21,6 +22,10 @@ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {
|
|
|
21
22
|
is_editable: boolean;
|
|
22
23
|
is_removable: boolean;
|
|
23
24
|
};
|
|
25
|
+
template_permissions: {
|
|
26
|
+
is_editable: boolean;
|
|
27
|
+
is_removable: boolean;
|
|
28
|
+
};
|
|
24
29
|
usedInSectionId: CanvasRetrieve["id"];
|
|
25
30
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
26
31
|
export default _default;
|
|
@@ -1,19 +1,70 @@
|
|
|
1
1
|
import { ChartConfiguration } from 'chart.js';
|
|
2
|
-
export interface
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
export interface ViewControls {
|
|
3
|
+
enable_fullscreen_btn?: boolean;
|
|
4
|
+
enable_chart_type_switcher?: boolean;
|
|
5
|
+
enable_data_entry?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export type ChartType = 'bar' | 'line' | 'pie' | 'doughnut' | 'radar' | 'polarArea' | 'scatter' | 'bubble' | 'area';
|
|
8
|
+
export declare const STANDALONE_CHART_TYPES: ChartType[];
|
|
9
|
+
export declare const MIXABLE_CHART_TYPES: ChartType[];
|
|
10
|
+
export declare const ALL_CHART_TYPES: ChartType[];
|
|
11
|
+
export declare const ONE_D_CHART_TYPES: ChartType[];
|
|
12
|
+
export declare const TWO_D_CHART_TYPES: ChartType[];
|
|
13
|
+
export declare const THREE_D_CHART_TYPES: ChartType[];
|
|
14
|
+
export declare const XY_CHART_TYPES: ChartType[];
|
|
15
|
+
export declare const XYR_CHART_TYPES: ChartType[];
|
|
16
|
+
export interface SeriesDataPoint {
|
|
17
|
+
label: string;
|
|
18
|
+
value: string;
|
|
19
|
+
x_value?: string;
|
|
20
|
+
y_value?: string;
|
|
21
|
+
r_value?: string;
|
|
22
|
+
dynamic_value?: {
|
|
23
|
+
path: string;
|
|
5
24
|
value: string;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
}
|
|
25
|
+
};
|
|
26
|
+
dynamic_x_value?: {
|
|
27
|
+
path: string;
|
|
28
|
+
value: string;
|
|
29
|
+
};
|
|
30
|
+
dynamic_y_value?: {
|
|
31
|
+
path: string;
|
|
32
|
+
value: string;
|
|
33
|
+
};
|
|
34
|
+
dynamic_r_value?: {
|
|
35
|
+
path: string;
|
|
36
|
+
value: string;
|
|
37
|
+
};
|
|
38
|
+
array_config?: {
|
|
39
|
+
labelField: string;
|
|
40
|
+
valueField: string;
|
|
41
|
+
xField?: string;
|
|
42
|
+
yField?: string;
|
|
43
|
+
rField?: string;
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
export interface ChartSeries {
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
chart_type: ChartType;
|
|
50
|
+
color?: string;
|
|
51
|
+
data_points: SeriesDataPoint[];
|
|
52
|
+
bulk_data_mapping?: BulkDataMapping;
|
|
53
|
+
}
|
|
54
|
+
export interface ExtendedChartConfiguration extends ChartConfiguration {
|
|
55
|
+
data_points?: SeriesDataPoint[];
|
|
56
|
+
series?: ChartSeries[];
|
|
11
57
|
context?: any;
|
|
12
58
|
data?: ChartConfiguration['data'] & {
|
|
13
59
|
datasets?: Array<{
|
|
60
|
+
label?: string;
|
|
61
|
+
type?: string;
|
|
14
62
|
background_color?: string | string[];
|
|
15
63
|
border_color?: string | string[];
|
|
16
64
|
point_style?: string;
|
|
65
|
+
fill?: boolean;
|
|
66
|
+
tension?: number;
|
|
67
|
+
show_line?: boolean;
|
|
17
68
|
}>;
|
|
18
69
|
};
|
|
19
70
|
options?: ChartConfiguration['options'] & {
|
|
@@ -34,11 +85,24 @@ export interface ExtendedChartConfiguration extends ChartConfiguration {
|
|
|
34
85
|
text?: string;
|
|
35
86
|
display?: boolean;
|
|
36
87
|
};
|
|
88
|
+
begin_at_zero?: boolean;
|
|
89
|
+
};
|
|
90
|
+
r?: {
|
|
91
|
+
begin_at_zero?: boolean;
|
|
92
|
+
ticks?: {
|
|
93
|
+
step_size?: number;
|
|
94
|
+
};
|
|
37
95
|
};
|
|
38
96
|
};
|
|
39
97
|
index_axis?: 'x' | 'y';
|
|
40
98
|
};
|
|
41
99
|
color_scheme_type?: 'theme' | 'custom';
|
|
100
|
+
color_scheme?: string[];
|
|
101
|
+
percent_display?: boolean;
|
|
102
|
+
view_controls?: ViewControls;
|
|
103
|
+
chart_height?: number;
|
|
104
|
+
chart_width?: number;
|
|
105
|
+
_primary_chart_type?: ChartType;
|
|
42
106
|
}
|
|
43
107
|
export interface DynamicValue {
|
|
44
108
|
path: string;
|
|
@@ -47,11 +111,58 @@ export interface DynamicValue {
|
|
|
47
111
|
export interface ArrayConfig {
|
|
48
112
|
labelField: string;
|
|
49
113
|
valueField: string;
|
|
114
|
+
xField?: string;
|
|
115
|
+
yField?: string;
|
|
116
|
+
rField?: string;
|
|
50
117
|
}
|
|
118
|
+
export interface BulkDataMapping {
|
|
119
|
+
source_path: string;
|
|
120
|
+
label_field: string;
|
|
121
|
+
value_field?: string;
|
|
122
|
+
x_field?: string;
|
|
123
|
+
y_field?: string;
|
|
124
|
+
r_field?: string;
|
|
125
|
+
}
|
|
126
|
+
export type BulkDataResult = {
|
|
127
|
+
labels: string[];
|
|
128
|
+
values: (number | {
|
|
129
|
+
x: number;
|
|
130
|
+
y: number;
|
|
131
|
+
r?: number;
|
|
132
|
+
originalR?: number;
|
|
133
|
+
})[];
|
|
134
|
+
};
|
|
135
|
+
export declare function normalizeRValues(values: Array<{
|
|
136
|
+
x: number;
|
|
137
|
+
y: number;
|
|
138
|
+
r: number;
|
|
139
|
+
}>, minRadius?: number, maxRadius?: number): Array<{
|
|
140
|
+
x: number;
|
|
141
|
+
y: number;
|
|
142
|
+
r: number;
|
|
143
|
+
originalR: number;
|
|
144
|
+
}>;
|
|
145
|
+
export declare function processBulkDataMapping(mapping: BulkDataMapping, chartType: string, context: any): BulkDataResult | null;
|
|
51
146
|
export interface DataPoint {
|
|
52
147
|
label: string;
|
|
53
148
|
value: string;
|
|
149
|
+
xValue?: string;
|
|
150
|
+
yValue?: string;
|
|
151
|
+
rValue?: string;
|
|
54
152
|
dynamicValue?: DynamicValue | any;
|
|
153
|
+
dynamicXValue?: DynamicValue | any;
|
|
154
|
+
dynamicYValue?: DynamicValue | any;
|
|
155
|
+
dynamicRValue?: DynamicValue | any;
|
|
55
156
|
selectedValue?: any;
|
|
157
|
+
selectedXValue?: any;
|
|
158
|
+
selectedYValue?: any;
|
|
159
|
+
selectedRValue?: any;
|
|
56
160
|
arrayConfig?: ArrayConfig;
|
|
57
161
|
}
|
|
162
|
+
export interface Series {
|
|
163
|
+
id: string;
|
|
164
|
+
name: string;
|
|
165
|
+
chartType: ChartType;
|
|
166
|
+
dataPoints: DataPoint[];
|
|
167
|
+
bulkDataMapping?: BulkDataMapping;
|
|
168
|
+
}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { DynamicContentProps, ComponentNode } from '../../../types/canvas';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
id: ComponentNode['id'];
|
|
4
|
+
data: DynamicContentProps;
|
|
5
|
+
style?: Record<string, any>;
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
8
|
+
export default _default;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComponentNode, DynamicContentProps } from '../../../types/canvas';
|
|
2
|
+
type __VLS_Props = {
|
|
3
|
+
id: ComponentNode['id'];
|
|
4
|
+
data: DynamicContentProps | null;
|
|
5
|
+
};
|
|
6
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
7
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ComponentTypes, ComponentNode, DynamicContentProps } from '../../../types/canvas';
|
|
2
|
+
import { CanvasRetrieve } from '../../../../../../types/openapi';
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
id: string;
|
|
5
|
+
data: DynamicContentProps;
|
|
6
|
+
children?: ComponentNode[];
|
|
7
|
+
parentType?: ComponentTypes;
|
|
8
|
+
usedInSectionId?: CanvasRetrieve['id'];
|
|
9
|
+
when_used_in_section?: ComponentNode['when_used_in_section'];
|
|
10
|
+
template_permissions?: ComponentNode['template_permissions'];
|
|
11
|
+
visible?: ComponentNode['visible'];
|
|
12
|
+
tracking_id?: string;
|
|
13
|
+
style?: Record<string, any>;
|
|
14
|
+
};
|
|
15
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
16
|
+
style: (s: Record<string, any>, id?: string | undefined) => any;
|
|
17
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
18
|
+
onStyle?: ((s: Record<string, any>, id?: string | undefined) => any) | undefined;
|
|
19
|
+
}>, {
|
|
20
|
+
children: ComponentNode[];
|
|
21
|
+
when_used_in_section: {
|
|
22
|
+
is_editable: boolean;
|
|
23
|
+
is_removable: boolean;
|
|
24
|
+
};
|
|
25
|
+
template_permissions: {
|
|
26
|
+
is_editable: boolean;
|
|
27
|
+
is_removable: boolean;
|
|
28
|
+
};
|
|
29
|
+
usedInSectionId: CanvasRetrieve["id"];
|
|
30
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
31
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { DynamicContentSection, DynamicContentFile } from './useDynamicContent';
|
|
2
|
+
type Item = DynamicContentSection | DynamicContentFile;
|
|
3
|
+
type __VLS_Props = {
|
|
4
|
+
category: 'section' | 'content';
|
|
5
|
+
items: Item[];
|
|
6
|
+
};
|
|
7
|
+
declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
"open-item": (item: Item) => any;
|
|
9
|
+
}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
10
|
+
"onOpen-item"?: ((item: Item) => any) | undefined;
|
|
11
|
+
}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const sectionComponentMap: Record<string, unknown>;
|