sprof 1.27.4 → 1.28.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.
Files changed (63) hide show
  1. package/dist/AdminFormsList-Bsi_WYix.js +4 -0
  2. package/dist/AdminThemesList-US8QyPr-.js +4 -0
  3. package/dist/content.css +1 -0
  4. package/dist/core/components/atoms/PLoader/PLoader.stories.d.ts +15 -15
  5. package/dist/core/components/atoms/PLoader/PLoader.vue.d.ts +1 -1
  6. package/dist/index-BxOfQYTG.js +24104 -0
  7. package/dist/index.d.ts +6 -1
  8. package/dist/modules/content/components/BlockItems.vue.d.ts +30 -0
  9. package/dist/modules/content/components/BlockRenderer.vue.d.ts +20 -0
  10. package/dist/modules/content/contactParse.d.ts +21 -0
  11. package/dist/modules/content/contactParse.test.d.ts +1 -0
  12. package/dist/modules/content/contentSearch.d.ts +60 -0
  13. package/dist/modules/content/contentSearch.test.d.ts +1 -0
  14. package/dist/modules/content/groupSections.d.ts +27 -0
  15. package/dist/modules/content/groupSections.test.d.ts +1 -0
  16. package/dist/modules/content/index.d.ts +45 -0
  17. package/dist/modules/content/inlineEditing.test.d.ts +1 -0
  18. package/dist/modules/content/markdown.d.ts +23 -0
  19. package/dist/modules/content/markdown.test.d.ts +1 -0
  20. package/dist/modules/content/types.d.ts +342 -0
  21. package/dist/modules/index.d.ts +2 -0
  22. package/dist/modules/survey/PublicSurveyPage.vue.d.ts +2 -0
  23. package/dist/modules/survey/SurveyPrintPage.vue.d.ts +2 -0
  24. package/dist/modules/survey/classes/Publication.d.ts +30 -0
  25. package/dist/modules/survey/classes/Response.d.ts +19 -0
  26. package/dist/modules/survey/classes/SurveyParam.d.ts +15 -0
  27. package/dist/modules/survey/classes/Theme.d.ts +11 -0
  28. package/dist/modules/survey/classes/index.d.ts +4 -0
  29. package/dist/modules/survey/components/InfoBlock.vue.d.ts +11 -0
  30. package/dist/modules/survey/components/ThemePreview.vue.d.ts +9 -0
  31. package/dist/modules/survey/components/admin/forms/list/AdminFormCreateForm.vue.d.ts +8 -0
  32. package/dist/modules/survey/components/admin/forms/list/AdminFormsList.vue.d.ts +2 -0
  33. package/dist/modules/survey/components/admin/forms/list/AdminFormsListTable.vue.d.ts +2 -0
  34. package/dist/modules/survey/components/admin/forms/list/cols.d.ts +11 -0
  35. package/dist/modules/survey/components/admin/forms/page/AdminFormPage.vue.d.ts +2 -0
  36. package/dist/modules/survey/components/admin/forms/page/EmbedDialog.vue.d.ts +5 -0
  37. package/dist/modules/survey/components/admin/forms/page/FormBuilderTab.vue.d.ts +2 -0
  38. package/dist/modules/survey/components/admin/forms/page/FormNotificationsTab.vue.d.ts +2 -0
  39. package/dist/modules/survey/components/admin/forms/page/FormPublicationTab.vue.d.ts +2 -0
  40. package/dist/modules/survey/components/admin/forms/page/FormResponsesTab.vue.d.ts +2 -0
  41. package/dist/modules/survey/components/admin/forms/page/InvitesSender.vue.d.ts +5 -0
  42. package/dist/modules/survey/components/admin/forms/page/PublicationAnalytics.vue.d.ts +6 -0
  43. package/dist/modules/survey/components/admin/forms/page/SurveyParamsEditor.vue.d.ts +13 -0
  44. package/dist/modules/survey/components/admin/forms/page/WebhooksEditor.vue.d.ts +5 -0
  45. package/dist/modules/survey/components/admin/forms/page/useFieldOptions.d.ts +6 -0
  46. package/dist/modules/survey/components/admin/forms/page/useFormPublication.d.ts +7 -0
  47. package/dist/modules/survey/components/admin/themes/list/AdminThemesList.vue.d.ts +2 -0
  48. package/dist/modules/survey/components/index.d.ts +10 -0
  49. package/dist/modules/survey/index.d.ts +9 -0
  50. package/dist/modules/survey/libs/analytics/AChart.vue.d.ts +6 -0
  51. package/dist/modules/survey/libs/analytics/summary.d.ts +23 -0
  52. package/dist/modules/survey/libs/index.d.ts +2 -0
  53. package/dist/modules/survey/libs/xlsx/exportXlsx.d.ts +5 -0
  54. package/dist/modules/survey/routes.example.d.ts +2 -0
  55. package/dist/modules/survey/store/PublicationsStore.d.ts +23 -0
  56. package/dist/modules/survey/store/ResponsesStore.d.ts +7 -0
  57. package/dist/modules/survey/store/ThemesStore.d.ts +7 -0
  58. package/dist/modules/survey/store/index.d.ts +3 -0
  59. package/dist/modules/survey/stores.d.ts +22 -0
  60. package/dist/modules/survey/stores.test.d.ts +1 -0
  61. package/dist/sprof.js +102 -20943
  62. package/dist/style.css +1 -1
  63. package/package.json +11 -5
@@ -0,0 +1,30 @@
1
+ import { default as SurveyParam } from './SurveyParam';
2
+ export default class Publication {
3
+ id?: string;
4
+ title: string;
5
+ slug: string;
6
+ status: string;
7
+ anonym: boolean;
8
+ opensAt: string | null;
9
+ closesAt: string | null;
10
+ limit: number;
11
+ thankYouText: string;
12
+ brandbook: string;
13
+ themeId: string | null;
14
+ theme?: {
15
+ id?: string;
16
+ name?: string;
17
+ slug?: string;
18
+ tokens?: Record<string, string>;
19
+ dark?: boolean;
20
+ } | null;
21
+ targetType: string;
22
+ targetId: string | null;
23
+ form?: InstanceType<typeof PFM.Forms.C.Form>;
24
+ formId?: string;
25
+ params: SurveyParam[];
26
+ constructor(i?: Publication);
27
+ static Create(): Publication;
28
+ static GetClassName(): string;
29
+ GetClassName(): string;
30
+ }
@@ -0,0 +1,19 @@
1
+ import { default as Publication } from './Publication';
2
+ export default class Response {
3
+ id?: string;
4
+ publicationId?: string;
5
+ publication?: Publication;
6
+ formFillId?: string;
7
+ params: Record<string, string>;
8
+ respondentHash: string;
9
+ ipHash: string;
10
+ startedAt: string | null;
11
+ finishedAt: string | null;
12
+ duration: number;
13
+ createdAt: string | null;
14
+ formFill?: InstanceType<typeof PFM.Forms.C.FormFill>;
15
+ constructor(i?: Response);
16
+ static Create(): Response;
17
+ static GetClassName(): string;
18
+ GetClassName(): string;
19
+ }
@@ -0,0 +1,15 @@
1
+ export default class SurveyParam {
2
+ id?: string;
3
+ publicationId?: string;
4
+ key: string;
5
+ label: string;
6
+ fieldCode: string;
7
+ required: boolean;
8
+ hidden: boolean;
9
+ options: string[];
10
+ sortOrder: number;
11
+ constructor(i?: SurveyParam);
12
+ static Create(): SurveyParam;
13
+ static GetClassName(): string;
14
+ GetClassName(): string;
15
+ }
@@ -0,0 +1,11 @@
1
+ export default class Theme {
2
+ id?: string;
3
+ name: string;
4
+ slug: string;
5
+ tokens: Record<string, string>;
6
+ dark: boolean;
7
+ sortOrder: number;
8
+ constructor(i?: Theme);
9
+ static Create(): Theme;
10
+ static GetClassName(): string;
11
+ }
@@ -0,0 +1,4 @@
1
+ export { default as Publication } from './Publication';
2
+ export { default as Response } from './Response';
3
+ export { default as SurveyParam } from './SurveyParam';
4
+ export { default as Theme } from './Theme';
@@ -0,0 +1,11 @@
1
+ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>, {
2
+ foto?(_: {}): any;
3
+ 'header-info'?(_: {}): any;
4
+ 'footer-info'?(_: {}): any;
5
+ }>;
6
+ export default _default;
7
+ type __VLS_WithTemplateSlots<T, S> = T & {
8
+ new (): {
9
+ $slots: S;
10
+ };
11
+ };
@@ -0,0 +1,9 @@
1
+ interface PreviewTheme {
2
+ name?: string;
3
+ tokens?: Record<string, string>;
4
+ }
5
+ type __VLS_Props = {
6
+ theme?: PreviewTheme | null;
7
+ };
8
+ 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>;
9
+ export default _default;
@@ -0,0 +1,8 @@
1
+ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
2
+ success: (...args: any[]) => void;
3
+ close: (...args: any[]) => void;
4
+ }, string, import('vue').PublicProps, Readonly<{}> & Readonly<{
5
+ onSuccess?: ((...args: any[]) => any) | undefined;
6
+ onClose?: ((...args: any[]) => any) | undefined;
7
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
8
+ export default _default;
@@ -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, {}, any>;
2
+ export default _default;
@@ -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, {}, any>;
2
+ export default _default;
@@ -0,0 +1,11 @@
1
+ type FormRow = InstanceType<typeof PFM.Forms.C.Form>;
2
+ export interface FormColumn {
3
+ name: string;
4
+ label: string;
5
+ field: string | ((row: FormRow) => any);
6
+ align?: 'left' | 'center' | 'right';
7
+ sortable?: boolean;
8
+ width?: string;
9
+ }
10
+ declare const columns: FormColumn[];
11
+ export default columns;
@@ -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, {}, any>;
2
+ export default _default;
@@ -0,0 +1,5 @@
1
+ type __VLS_Props = {
2
+ slug?: string;
3
+ };
4
+ 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>;
5
+ export default _default;
@@ -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,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, {}, any>;
2
+ export default _default;
@@ -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, {}, any>;
2
+ export default _default;
@@ -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, {}, any>;
2
+ export default _default;
@@ -0,0 +1,5 @@
1
+ type __VLS_Props = {
2
+ publicationId?: string;
3
+ };
4
+ 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>;
5
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { default as Publication } from '../../../../classes/Publication';
2
+ type __VLS_Props = {
3
+ publication: Publication;
4
+ };
5
+ 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>;
6
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { default as SurveyParam } from '../../../../classes/SurveyParam';
2
+ type __VLS_Props = {
3
+ modelValue: SurveyParam[];
4
+ slug?: string;
5
+ };
6
+ declare const _default: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
7
+ change: (...args: any[]) => void;
8
+ "update:modelValue": (...args: any[]) => void;
9
+ }, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{
10
+ onChange?: ((...args: any[]) => any) | undefined;
11
+ "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
12
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
13
+ export default _default;
@@ -0,0 +1,5 @@
1
+ type __VLS_Props = {
2
+ publicationId?: string;
3
+ };
4
+ 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>;
5
+ export default _default;
@@ -0,0 +1,6 @@
1
+ export declare function useFieldOptions(): {
2
+ options: globalThis.ComputedRef<{
3
+ label: string;
4
+ value: string;
5
+ }[]>;
6
+ };
@@ -0,0 +1,7 @@
1
+ import { default as Publication } from '../../../../classes/Publication';
2
+ export declare function useFormPublication(): {
3
+ form: import('../../../../../forms/classes').Form;
4
+ publication: globalThis.Ref<Publication | undefined, Publication | undefined>;
5
+ loaded: globalThis.Ref<boolean, boolean>;
6
+ load: () => Promise<void>;
7
+ };
@@ -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, {}, any>;
2
+ export default _default;
@@ -0,0 +1,10 @@
1
+ export { default as AdminFormsList } from './admin/forms/list/AdminFormsList.vue';
2
+ export { default as AdminFormPage } from './admin/forms/page/AdminFormPage.vue';
3
+ export { default as EmbedDialog } from './admin/forms/page/EmbedDialog.vue';
4
+ export { default as InvitesSender } from './admin/forms/page/InvitesSender.vue';
5
+ export { default as PublicationAnalytics } from './admin/forms/page/PublicationAnalytics.vue';
6
+ export { default as SurveyParamsEditor } from './admin/forms/page/SurveyParamsEditor.vue';
7
+ export { default as WebhooksEditor } from './admin/forms/page/WebhooksEditor.vue';
8
+ export { default as AdminThemesList } from './admin/themes/list/AdminThemesList.vue';
9
+ export { default as InfoBlock } from './InfoBlock.vue';
10
+ export { default as ThemePreview } from './ThemePreview.vue';
@@ -0,0 +1,9 @@
1
+ import { App } from 'vue';
2
+ export * as C from './classes/index';
3
+ export * as UI from './components/index';
4
+ export * as Libs from './libs/index';
5
+ export { default as PublicSurveyPage } from './PublicSurveyPage.vue';
6
+ export { makeSurveyRoutes } from './routes.example';
7
+ export * as S from './store/index';
8
+ export { default as SurveyPrintPage } from './SurveyPrintPage.vue';
9
+ export default function install(app: App): void;
@@ -0,0 +1,6 @@
1
+ import { EChartsOption } from 'echarts';
2
+ type __VLS_Props = {
3
+ option: EChartsOption;
4
+ };
5
+ 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>;
6
+ export default _default;
@@ -0,0 +1,23 @@
1
+ import { default as Publication } from '../../classes/Publication';
2
+ export interface FieldSummary {
3
+ fieldId?: string;
4
+ name: string;
5
+ code: string;
6
+ valueType: string;
7
+ answered: number;
8
+ counts?: Record<string, number>;
9
+ textValues?: string[];
10
+ numberAvg?: number;
11
+ numberSum?: number;
12
+ }
13
+ export interface PublicationSummary {
14
+ publication: Publication;
15
+ total: number;
16
+ byParams: Record<string, Record<string, number>>;
17
+ fields: FieldSummary[];
18
+ }
19
+ /**
20
+ * Аналитика ответов опроса: сводка по публикации.
21
+ * Выгрузка в xlsx — отдельный helper (libs/xlsx/exportXlsx.ts).
22
+ */
23
+ export declare function fetchSummary(publicationId: string): Promise<PublicationSummary | undefined>;
@@ -0,0 +1,2 @@
1
+ export * as Analytics from './analytics/summary';
2
+ export * as Xlsx from './xlsx/exportXlsx';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Выгрузка ответов опроса в xlsx (по образцу hr/client/src/libs/xlsx/exportXlsx.ts).
3
+ * `isBlob: true` — HttpClient сам скачает файл (Content-Disposition с сервера).
4
+ */
5
+ export declare function exportResponses(publicationId: string, slug: string): Promise<void>;
@@ -0,0 +1,2 @@
1
+ import { RouteRecordRaw } from 'vue-router';
2
+ export declare function makeSurveyRoutes(base?: string): RouteRecordRaw[];
@@ -0,0 +1,23 @@
1
+ import { default as PF } from '../../../core/index';
2
+ import { default as Publication } from '../classes/Publication';
3
+ declare class S extends PF.H.BaseStore<Publication> {
4
+ constructor();
5
+ GetByForm(formId: string): Promise<Publication | undefined>;
6
+ ByTarget(type: string, id: string): Promise<Publication[]>;
7
+ EnsureForTarget(payload: {
8
+ targetType: string;
9
+ targetId: string;
10
+ entityName?: string;
11
+ title?: string;
12
+ brandbook?: string;
13
+ fields: {
14
+ name: string;
15
+ code?: string;
16
+ valueType?: string;
17
+ required?: boolean;
18
+ variants?: string[];
19
+ }[];
20
+ }): Promise<Publication | undefined>;
21
+ }
22
+ declare const store: S;
23
+ export default store;
@@ -0,0 +1,7 @@
1
+ import { default as PF } from '../../../core/index';
2
+ import { default as Response } from '../classes/Response';
3
+ declare class S extends PF.H.BaseStore<Response> {
4
+ constructor();
5
+ }
6
+ declare const store: S;
7
+ export default store;
@@ -0,0 +1,7 @@
1
+ import { default as PF } from '../../../core/index';
2
+ import { default as Theme } from '../classes/Theme';
3
+ declare class S extends PF.H.BaseStore<Theme> {
4
+ constructor();
5
+ }
6
+ declare const store: S;
7
+ export default store;
@@ -0,0 +1,3 @@
1
+ export { default as PublicationsStore } from './PublicationsStore';
2
+ export { default as ResponsesStore } from './ResponsesStore';
3
+ export { default as ThemesStore } from './ThemesStore';
@@ -0,0 +1,22 @@
1
+ import { App, InjectionKey } from 'vue';
2
+ import { default as BaseStore } from '../../core/helpers/BaseStore';
3
+ import { default as Form } from '../forms/classes/Form';
4
+ import { default as publicationsStore } from './store/PublicationsStore';
5
+ import { default as responsesStore } from './store/ResponsesStore';
6
+ import { default as themesStore } from './store/ThemesStore';
7
+ export interface SurveyStores {
8
+ Forms: BaseStore<Form>;
9
+ Publications: typeof publicationsStore;
10
+ Responses: typeof responsesStore;
11
+ Themes: typeof themesStore;
12
+ }
13
+ /** Отдать модулю опросника сторы хозяина (вызывать до mount). */
14
+ export declare function provideSurveyStores(app: App, stores: SurveyStores): void;
15
+ /**
16
+ * Получить сторы внутри компонента модуля.
17
+ *
18
+ * ⚠️ Падает с понятным текстом, а не отдаёт `undefined`: если хозяин забыл
19
+ * `provideSurveyStores`, сообщение должно называть забытый вызов.
20
+ */
21
+ export declare function useSurveyStores(): SurveyStores;
22
+ export declare const SURVEY_STORES_KEY: InjectionKey<SurveyStores>;
@@ -0,0 +1 @@
1
+ export {};