@vc-shell/framework 1.0.188 → 1.0.190
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/CHANGELOG.md +26 -0
- package/core/plugins/moment/humanize.ts +6 -7
- package/core/types/index.ts +12 -1
- package/dist/core/plugins/moment/humanize.d.ts.map +1 -1
- package/dist/core/types/index.d.ts +1 -1
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/framework.js +30782 -20187
- package/dist/index.css +1 -1
- package/dist/shared/components/error-interceptor/interceptor.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/Button.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/ContentField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/DynamicProperty.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts +4 -1
- package/dist/shared/modules/dynamic/components/fields/EditorField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/GalleryField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/ImageField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/InputField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/MultivalueField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/SelectField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/StatusField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/TextareaField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/VideoField.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/components/fields/storybook/Button.stories.d.ts +417 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/Button.stories.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/Card.stories.d.ts +357 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/Card.stories.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/Checkbox.stories.d.ts +398 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/Checkbox.stories.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/ContentField.stories.d.ts +392 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/ContentField.stories.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/EditorField.stories.d.ts +407 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/EditorField.stories.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/Fieldset.stories.d.ts +372 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/Fieldset.stories.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/GalleryField.stories.d.ts +391 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/GalleryField.stories.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/ImageField.stories.d.ts +372 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/ImageField.stories.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/InputCurrency.stories.d.ts +439 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/InputCurrency.stories.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/InputField.stories.d.ts +460 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/InputField.stories.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/MultivalueField.stories.d.ts +459 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/MultivalueField.stories.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/RatingField.stories.d.ts +359 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/RatingField.stories.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/SelectField.stories.d.ts +507 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/SelectField.stories.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/StatusField.stories.d.ts +392 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/StatusField.stories.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/SwitchField.stories.d.ts +14 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/SwitchField.stories.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/TextareaField.stories.d.ts +407 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/TextareaField.stories.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/VideoField.stories.d.ts +322 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/VideoField.stories.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/common/args.d.ts +113 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/common/args.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/common/templates.d.ts +3 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/common/templates.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.d.ts +235 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/utils/sourceHighlighter.d.ts +4 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/utils/sourceHighlighter.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/utils/sourceTransform.d.ts +3 -0
- package/dist/shared/modules/dynamic/components/fields/storybook/utils/sourceTransform.d.ts.map +1 -0
- package/dist/shared/modules/dynamic/factories/base/useDetailsFactory.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/factories/types/index.d.ts +1 -0
- package/dist/shared/modules/dynamic/factories/types/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/helpers/getters.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/types/index.d.ts +88 -38
- package/dist/shared/modules/dynamic/types/index.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/types/models.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/ui/components/atoms/vc-card/vc-card.stories.d.ts +16 -16
- package/dist/ui/components/atoms/vc-card/vc-card.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-switch/index.d.ts +1 -39
- package/dist/ui/components/atoms/vc-switch/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-switch/vc-switch.stories.d.ts +30 -11
- package/dist/ui/components/atoms/vc-switch/vc-switch.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts +22 -3
- package/dist/ui/components/atoms/vc-switch/vc-switch.vue.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-video/index.d.ts +1 -35
- package/dist/ui/components/atoms/vc-video/index.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-video/vc-video.stories.d.ts +5 -27
- package/dist/ui/components/atoms/vc-video/vc-video.stories.d.ts.map +1 -1
- package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts +3 -18
- package/dist/ui/components/atoms/vc-video/vc-video.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.stories.d.ts +16 -4
- package/dist/ui/components/molecules/vc-editor/vc-editor.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts +2 -1
- package/dist/ui/components/molecules/vc-editor/vc-editor.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input/vc-input.stories.d.ts +30 -16
- package/dist/ui/components/molecules/vc-input/vc-input.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.stories.d.ts +12 -12
- package/dist/ui/components/molecules/vc-input-currency/vc-input-currency.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.stories.d.ts +252 -42
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts +36 -6
- package/dist/ui/components/molecules/vc-multivalue/vc-multivalue.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.stories.d.ts +96 -32
- package/dist/ui/components/molecules/vc-select/vc-select.stories.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts +3 -3
- package/dist/ui/components/molecules/vc-select/vc-select.vue.d.ts.map +1 -1
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.stories.d.ts +63 -63
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts +6 -6
- package/dist/ui/components/molecules/vc-textarea/vc-textarea.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts +1 -0
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.stories.d.ts +8 -2
- package/dist/ui/components/organisms/vc-table/vc-table.stories.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts +3 -1
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/package.json +8 -4
- package/shared/components/error-interceptor/interceptor.ts +1 -1
- package/shared/modules/dynamic/components/fields/Button.ts +5 -2
- package/shared/modules/dynamic/components/fields/Card.ts +4 -4
- package/shared/modules/dynamic/components/fields/ContentField.ts +1 -0
- package/shared/modules/dynamic/components/fields/DynamicProperty.ts +5 -6
- package/shared/modules/dynamic/components/fields/EditorField.ts +5 -3
- package/shared/modules/dynamic/components/fields/Fieldset.ts +1 -1
- package/shared/modules/dynamic/components/fields/GalleryField.ts +6 -3
- package/shared/modules/dynamic/components/fields/ImageField.ts +0 -1
- package/shared/modules/dynamic/components/fields/InputCurrency.ts +1 -1
- package/shared/modules/dynamic/components/fields/InputField.ts +1 -0
- package/shared/modules/dynamic/components/fields/MultivalueField.ts +3 -2
- package/shared/modules/dynamic/components/fields/SelectField.ts +1 -0
- package/shared/modules/dynamic/components/fields/StatusField.ts +20 -10
- package/shared/modules/dynamic/components/fields/TextareaField.ts +1 -0
- package/shared/modules/dynamic/components/fields/VideoField.ts +0 -1
- package/shared/modules/dynamic/components/fields/storybook/Button.stories.ts +247 -0
- package/shared/modules/dynamic/components/fields/storybook/Card.stories.ts +166 -0
- package/shared/modules/dynamic/components/fields/storybook/Checkbox.stories.ts +185 -0
- package/shared/modules/dynamic/components/fields/storybook/ContentField.stories.ts +245 -0
- package/shared/modules/dynamic/components/fields/storybook/EditorField.stories.ts +192 -0
- package/shared/modules/dynamic/components/fields/storybook/Fieldset.stories.ts +409 -0
- package/shared/modules/dynamic/components/fields/storybook/GalleryField.stories.ts +239 -0
- package/shared/modules/dynamic/components/fields/storybook/ImageField.stories.ts +186 -0
- package/shared/modules/dynamic/components/fields/storybook/InputCurrency.stories.ts +267 -0
- package/shared/modules/dynamic/components/fields/storybook/InputField.stories.ts +298 -0
- package/shared/modules/dynamic/components/fields/storybook/MultivalueField.stories.ts +347 -0
- package/shared/modules/dynamic/components/fields/storybook/RatingField.stories.ts +131 -0
- package/shared/modules/dynamic/components/fields/storybook/SelectField.stories.ts +653 -0
- package/shared/modules/dynamic/components/fields/storybook/StatusField.stories.ts +202 -0
- package/shared/modules/dynamic/components/fields/storybook/SwitchField.stories.ts +178 -0
- package/shared/modules/dynamic/components/fields/storybook/TextareaField.stories.ts +203 -0
- package/shared/modules/dynamic/components/fields/storybook/VideoField.stories.ts +92 -0
- package/shared/modules/dynamic/components/fields/storybook/common/args.ts +130 -0
- package/shared/modules/dynamic/components/fields/storybook/common/templates.ts +8 -0
- package/shared/modules/dynamic/components/fields/storybook/pages/DynamicRender.ts +54 -0
- package/shared/modules/dynamic/components/fields/storybook/utils/sourceHighlighter.ts +16 -0
- package/shared/modules/dynamic/components/fields/storybook/utils/sourceTransform.ts +41 -0
- package/shared/modules/dynamic/factories/base/useDetailsFactory.ts +1 -0
- package/shared/modules/dynamic/factories/types/index.ts +2 -0
- package/shared/modules/dynamic/helpers/getters.ts +3 -0
- package/shared/modules/dynamic/helpers/nodeBuilder.ts +1 -1
- package/shared/modules/dynamic/helpers/setters.ts +1 -1
- package/shared/modules/dynamic/types/index.ts +93 -40
- package/shared/modules/dynamic/types/models.ts +8 -7
- package/shared/pages/LoginPage/components/login/Login.vue +1 -1
- package/ui/components/atoms/vc-card/vc-card.vue +12 -2
- package/ui/components/atoms/vc-switch/index.ts +1 -3
- package/ui/components/atoms/vc-switch/vc-switch.vue +10 -3
- package/ui/components/atoms/vc-video/index.ts +1 -3
- package/ui/components/atoms/vc-video/vc-video.stories.ts +1 -15
- package/ui/components/atoms/vc-video/vc-video.vue +4 -37
- package/ui/components/molecules/vc-editor/vc-editor.vue +47 -33
- package/ui/components/molecules/vc-field/_internal/vc-field-type/vc-field-type.vue +2 -2
- package/ui/components/molecules/vc-input/vc-input.stories.ts +14 -0
- package/ui/components/molecules/vc-input-currency/vc-input-currency.vue +8 -0
- package/ui/components/molecules/vc-multivalue/vc-multivalue.vue +21 -9
- package/ui/components/molecules/vc-select/vc-select.stories.ts +74 -3
- package/ui/components/molecules/vc-select/vc-select.vue +35 -38
- package/ui/components/molecules/vc-textarea/vc-textarea.stories.ts +1 -1
- package/ui/components/molecules/vc-textarea/vc-textarea.vue +5 -15
- package/ui/components/organisms/vc-blade/_internal/vc-blade-header/vc-blade-header.vue +1 -1
- package/ui/components/organisms/vc-table/_internal/vc-table-cell/vc-table-cell.vue +140 -108
- package/ui/components/organisms/vc-table/_internal/vc-table-column-switcher/vc-table-column-switcher.vue +20 -6
- package/ui/components/organisms/vc-table/vc-table.stories.ts +6 -2
- package/ui/components/organisms/vc-table/vc-table.vue +176 -124
|
@@ -0,0 +1,322 @@
|
|
|
1
|
+
import { StoryFn } from "@storybook/vue3";
|
|
2
|
+
import { VideoSchema } from "../../..";
|
|
3
|
+
declare const _default: {
|
|
4
|
+
title: string;
|
|
5
|
+
component: import("vue").DefineComponent<{
|
|
6
|
+
context: {
|
|
7
|
+
type: import("vue").PropType<{
|
|
8
|
+
settings: import("../../..").SettingsSchema;
|
|
9
|
+
load: import("../../../../../..").AsyncAction<import("../../..").ItemId>;
|
|
10
|
+
saveChanges: import("../../../../../..").AsyncAction<Record<string, any>>;
|
|
11
|
+
remove?: import("../../../../../..").AsyncAction<import("../../..").ItemId> | undefined;
|
|
12
|
+
loading: boolean;
|
|
13
|
+
item: Record<string, any> | undefined;
|
|
14
|
+
validationState: import("../../..").IValidationState<Record<string, any>>;
|
|
15
|
+
scope?: {
|
|
16
|
+
[x: string]: any;
|
|
17
|
+
disabled?: boolean | undefined;
|
|
18
|
+
multilanguage?: {
|
|
19
|
+
loading: boolean;
|
|
20
|
+
currentLocale: string;
|
|
21
|
+
languages: string[];
|
|
22
|
+
setLocale: (locale: string) => void;
|
|
23
|
+
localesOptions: {
|
|
24
|
+
label: string | undefined;
|
|
25
|
+
value: string;
|
|
26
|
+
}[];
|
|
27
|
+
getLanguages: import("../../../../../..").AsyncAction<void, void>;
|
|
28
|
+
} | undefined;
|
|
29
|
+
dynamicProperties?: {
|
|
30
|
+
loading: boolean;
|
|
31
|
+
loadDictionaries: (property: Record<string, any>, keyword?: string | undefined, locale?: string | undefined) => Promise<Record<string, any>[] | undefined>;
|
|
32
|
+
getPropertyValue: (property: Record<string, any>, locale: string) => any;
|
|
33
|
+
setPropertyValue: (data: {
|
|
34
|
+
property: Record<string, any>;
|
|
35
|
+
value: string | Record<string, any>[];
|
|
36
|
+
dictionary?: Record<string, any>[] | undefined;
|
|
37
|
+
locale?: string | undefined;
|
|
38
|
+
}) => void;
|
|
39
|
+
} | undefined;
|
|
40
|
+
assetsHandler?: {
|
|
41
|
+
assets?: {
|
|
42
|
+
loading?: boolean | undefined;
|
|
43
|
+
upload?: ((files: FileList, startingSortOrder?: number | undefined) => Promise<import("../../../../../..").ICommonAsset[]>) | undefined;
|
|
44
|
+
edit?: ((files: import("../../../../../..").ICommonAsset[]) => import("../../../../../..").ICommonAsset[]) | undefined;
|
|
45
|
+
remove?: ((files: import("../../../../../..").ICommonAsset[]) => import("../../../../../..").ICommonAsset[]) | undefined;
|
|
46
|
+
} | undefined;
|
|
47
|
+
images?: {
|
|
48
|
+
loading?: boolean | undefined;
|
|
49
|
+
upload?: ((files: FileList, startingSortOrder?: number | undefined) => Promise<import("../../../../../..").ICommonAsset[]>) | undefined;
|
|
50
|
+
edit?: ((files: import("../../../../../..").ICommonAsset[]) => import("../../../../../..").ICommonAsset[]) | undefined;
|
|
51
|
+
remove?: ((files: import("../../../../../..").ICommonAsset[]) => import("../../../../../..").ICommonAsset[]) | undefined;
|
|
52
|
+
} | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
toolbarOverrides?: import("../../../../../..").IBladeToolbar[] | {
|
|
55
|
+
id?: string | undefined;
|
|
56
|
+
icon?: string | (() => string) | undefined;
|
|
57
|
+
disabled?: boolean | undefined;
|
|
58
|
+
dropdownItems?: {
|
|
59
|
+
id: string;
|
|
60
|
+
title: string;
|
|
61
|
+
icon?: string | undefined;
|
|
62
|
+
clickHandler?: (() => void) | undefined;
|
|
63
|
+
}[] | undefined;
|
|
64
|
+
title?: string | undefined;
|
|
65
|
+
isVisible?: boolean | undefined;
|
|
66
|
+
clickHandler?: ((app?: Record<string, any> | import("../../../../..").CoreBladeExposed | null | undefined) => void) | undefined;
|
|
67
|
+
}[] | {
|
|
68
|
+
[x: string]: import("../../../../../..").IBladeToolbar;
|
|
69
|
+
} | ((...args: any[]) => any) | undefined;
|
|
70
|
+
} | undefined;
|
|
71
|
+
bladeTitle?: string | undefined;
|
|
72
|
+
}>;
|
|
73
|
+
required: true;
|
|
74
|
+
default: () => import("../../..").DetailsBladeContext;
|
|
75
|
+
};
|
|
76
|
+
args: {
|
|
77
|
+
type: import("vue").PropType<import("../../..").ControlSchema>;
|
|
78
|
+
required: true;
|
|
79
|
+
default: () => import("../../..").ControlSchema;
|
|
80
|
+
};
|
|
81
|
+
additionalSource: {
|
|
82
|
+
type: import("vue").PropType<import("vue").DefineComponent>;
|
|
83
|
+
};
|
|
84
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
85
|
+
[key: string]: any;
|
|
86
|
+
}>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
87
|
+
context: {
|
|
88
|
+
type: import("vue").PropType<{
|
|
89
|
+
settings: import("../../..").SettingsSchema;
|
|
90
|
+
load: import("../../../../../..").AsyncAction<import("../../..").ItemId>;
|
|
91
|
+
saveChanges: import("../../../../../..").AsyncAction<Record<string, any>>;
|
|
92
|
+
remove?: import("../../../../../..").AsyncAction<import("../../..").ItemId> | undefined;
|
|
93
|
+
loading: boolean;
|
|
94
|
+
item: Record<string, any> | undefined;
|
|
95
|
+
validationState: import("../../..").IValidationState<Record<string, any>>;
|
|
96
|
+
scope?: {
|
|
97
|
+
[x: string]: any;
|
|
98
|
+
disabled?: boolean | undefined;
|
|
99
|
+
multilanguage?: {
|
|
100
|
+
loading: boolean;
|
|
101
|
+
currentLocale: string;
|
|
102
|
+
languages: string[];
|
|
103
|
+
setLocale: (locale: string) => void;
|
|
104
|
+
localesOptions: {
|
|
105
|
+
label: string | undefined;
|
|
106
|
+
value: string;
|
|
107
|
+
}[];
|
|
108
|
+
getLanguages: import("../../../../../..").AsyncAction<void, void>;
|
|
109
|
+
} | undefined;
|
|
110
|
+
dynamicProperties?: {
|
|
111
|
+
loading: boolean;
|
|
112
|
+
loadDictionaries: (property: Record<string, any>, keyword?: string | undefined, locale?: string | undefined) => Promise<Record<string, any>[] | undefined>;
|
|
113
|
+
getPropertyValue: (property: Record<string, any>, locale: string) => any;
|
|
114
|
+
setPropertyValue: (data: {
|
|
115
|
+
property: Record<string, any>;
|
|
116
|
+
value: string | Record<string, any>[];
|
|
117
|
+
dictionary?: Record<string, any>[] | undefined;
|
|
118
|
+
locale?: string | undefined;
|
|
119
|
+
}) => void;
|
|
120
|
+
} | undefined;
|
|
121
|
+
assetsHandler?: {
|
|
122
|
+
assets?: {
|
|
123
|
+
loading?: boolean | undefined;
|
|
124
|
+
upload?: ((files: FileList, startingSortOrder?: number | undefined) => Promise<import("../../../../../..").ICommonAsset[]>) | undefined;
|
|
125
|
+
edit?: ((files: import("../../../../../..").ICommonAsset[]) => import("../../../../../..").ICommonAsset[]) | undefined;
|
|
126
|
+
remove?: ((files: import("../../../../../..").ICommonAsset[]) => import("../../../../../..").ICommonAsset[]) | undefined;
|
|
127
|
+
} | undefined;
|
|
128
|
+
images?: {
|
|
129
|
+
loading?: boolean | undefined;
|
|
130
|
+
upload?: ((files: FileList, startingSortOrder?: number | undefined) => Promise<import("../../../../../..").ICommonAsset[]>) | undefined;
|
|
131
|
+
edit?: ((files: import("../../../../../..").ICommonAsset[]) => import("../../../../../..").ICommonAsset[]) | undefined;
|
|
132
|
+
remove?: ((files: import("../../../../../..").ICommonAsset[]) => import("../../../../../..").ICommonAsset[]) | undefined;
|
|
133
|
+
} | undefined;
|
|
134
|
+
} | undefined;
|
|
135
|
+
toolbarOverrides?: import("../../../../../..").IBladeToolbar[] | {
|
|
136
|
+
id?: string | undefined;
|
|
137
|
+
icon?: string | (() => string) | undefined;
|
|
138
|
+
disabled?: boolean | undefined;
|
|
139
|
+
dropdownItems?: {
|
|
140
|
+
id: string;
|
|
141
|
+
title: string;
|
|
142
|
+
icon?: string | undefined;
|
|
143
|
+
clickHandler?: (() => void) | undefined;
|
|
144
|
+
}[] | undefined;
|
|
145
|
+
title?: string | undefined;
|
|
146
|
+
isVisible?: boolean | undefined;
|
|
147
|
+
clickHandler?: ((app?: Record<string, any> | import("../../../../..").CoreBladeExposed | null | undefined) => void) | undefined;
|
|
148
|
+
}[] | {
|
|
149
|
+
[x: string]: import("../../../../../..").IBladeToolbar;
|
|
150
|
+
} | ((...args: any[]) => any) | undefined;
|
|
151
|
+
} | undefined;
|
|
152
|
+
bladeTitle?: string | undefined;
|
|
153
|
+
}>;
|
|
154
|
+
required: true;
|
|
155
|
+
default: () => import("../../..").DetailsBladeContext;
|
|
156
|
+
};
|
|
157
|
+
args: {
|
|
158
|
+
type: import("vue").PropType<import("../../..").ControlSchema>;
|
|
159
|
+
required: true;
|
|
160
|
+
default: () => import("../../..").ControlSchema;
|
|
161
|
+
};
|
|
162
|
+
additionalSource: {
|
|
163
|
+
type: import("vue").PropType<import("vue").DefineComponent>;
|
|
164
|
+
};
|
|
165
|
+
}>> & {
|
|
166
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
167
|
+
}, {
|
|
168
|
+
context: {
|
|
169
|
+
settings: import("../../..").SettingsSchema;
|
|
170
|
+
load: import("../../../../../..").AsyncAction<import("../../..").ItemId>;
|
|
171
|
+
saveChanges: import("../../../../../..").AsyncAction<Record<string, any>>;
|
|
172
|
+
remove?: import("../../../../../..").AsyncAction<import("../../..").ItemId> | undefined;
|
|
173
|
+
loading: boolean;
|
|
174
|
+
item: Record<string, any> | undefined;
|
|
175
|
+
validationState: import("../../..").IValidationState<Record<string, any>>;
|
|
176
|
+
scope?: {
|
|
177
|
+
[x: string]: any;
|
|
178
|
+
disabled?: boolean | undefined;
|
|
179
|
+
multilanguage?: {
|
|
180
|
+
loading: boolean;
|
|
181
|
+
currentLocale: string;
|
|
182
|
+
languages: string[];
|
|
183
|
+
setLocale: (locale: string) => void;
|
|
184
|
+
localesOptions: {
|
|
185
|
+
label: string | undefined;
|
|
186
|
+
value: string;
|
|
187
|
+
}[];
|
|
188
|
+
getLanguages: import("../../../../../..").AsyncAction<void, void>;
|
|
189
|
+
} | undefined;
|
|
190
|
+
dynamicProperties?: {
|
|
191
|
+
loading: boolean;
|
|
192
|
+
loadDictionaries: (property: Record<string, any>, keyword?: string | undefined, locale?: string | undefined) => Promise<Record<string, any>[] | undefined>;
|
|
193
|
+
getPropertyValue: (property: Record<string, any>, locale: string) => any;
|
|
194
|
+
setPropertyValue: (data: {
|
|
195
|
+
property: Record<string, any>;
|
|
196
|
+
value: string | Record<string, any>[];
|
|
197
|
+
dictionary?: Record<string, any>[] | undefined;
|
|
198
|
+
locale?: string | undefined;
|
|
199
|
+
}) => void;
|
|
200
|
+
} | undefined;
|
|
201
|
+
assetsHandler?: {
|
|
202
|
+
assets?: {
|
|
203
|
+
loading?: boolean | undefined;
|
|
204
|
+
upload?: ((files: FileList, startingSortOrder?: number | undefined) => Promise<import("../../../../../..").ICommonAsset[]>) | undefined;
|
|
205
|
+
edit?: ((files: import("../../../../../..").ICommonAsset[]) => import("../../../../../..").ICommonAsset[]) | undefined;
|
|
206
|
+
remove?: ((files: import("../../../../../..").ICommonAsset[]) => import("../../../../../..").ICommonAsset[]) | undefined;
|
|
207
|
+
} | undefined;
|
|
208
|
+
images?: {
|
|
209
|
+
loading?: boolean | undefined;
|
|
210
|
+
upload?: ((files: FileList, startingSortOrder?: number | undefined) => Promise<import("../../../../../..").ICommonAsset[]>) | undefined;
|
|
211
|
+
edit?: ((files: import("../../../../../..").ICommonAsset[]) => import("../../../../../..").ICommonAsset[]) | undefined;
|
|
212
|
+
remove?: ((files: import("../../../../../..").ICommonAsset[]) => import("../../../../../..").ICommonAsset[]) | undefined;
|
|
213
|
+
} | undefined;
|
|
214
|
+
} | undefined;
|
|
215
|
+
toolbarOverrides?: import("../../../../../..").IBladeToolbar[] | {
|
|
216
|
+
id?: string | undefined;
|
|
217
|
+
icon?: string | (() => string) | undefined;
|
|
218
|
+
disabled?: boolean | undefined;
|
|
219
|
+
dropdownItems?: {
|
|
220
|
+
id: string;
|
|
221
|
+
title: string;
|
|
222
|
+
icon?: string | undefined;
|
|
223
|
+
clickHandler?: (() => void) | undefined;
|
|
224
|
+
}[] | undefined;
|
|
225
|
+
title?: string | undefined;
|
|
226
|
+
isVisible?: boolean | undefined;
|
|
227
|
+
clickHandler?: ((app?: Record<string, any> | import("../../../../..").CoreBladeExposed | null | undefined) => void) | undefined;
|
|
228
|
+
}[] | {
|
|
229
|
+
[x: string]: import("../../../../../..").IBladeToolbar;
|
|
230
|
+
} | ((...args: any[]) => any) | undefined;
|
|
231
|
+
} | undefined;
|
|
232
|
+
bladeTitle?: string | undefined;
|
|
233
|
+
};
|
|
234
|
+
args: import("../../..").ControlSchema;
|
|
235
|
+
}, {}>;
|
|
236
|
+
args: {
|
|
237
|
+
id: string;
|
|
238
|
+
component: "vc-video";
|
|
239
|
+
property: string;
|
|
240
|
+
};
|
|
241
|
+
argTypes: {
|
|
242
|
+
component: {
|
|
243
|
+
description: string;
|
|
244
|
+
type: {
|
|
245
|
+
required: true;
|
|
246
|
+
name: "string";
|
|
247
|
+
};
|
|
248
|
+
table: {
|
|
249
|
+
type: {
|
|
250
|
+
summary: string;
|
|
251
|
+
};
|
|
252
|
+
defaultValue: {
|
|
253
|
+
summary: string;
|
|
254
|
+
};
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
label: {
|
|
258
|
+
readonly description: "Control label.\n To show label based on some bound property - use interpolation `{}` syntax.\n \n`@example` {someProperty}\n Supports i18n keys.";
|
|
259
|
+
readonly control: "text";
|
|
260
|
+
readonly table: {
|
|
261
|
+
readonly type: {
|
|
262
|
+
readonly summary: "string";
|
|
263
|
+
};
|
|
264
|
+
};
|
|
265
|
+
};
|
|
266
|
+
tooltip: {
|
|
267
|
+
readonly description: "Tooltip text for the component.\n Supports i18n keys.";
|
|
268
|
+
readonly control: "text";
|
|
269
|
+
readonly table: {
|
|
270
|
+
readonly type: {
|
|
271
|
+
readonly summary: "string";
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
};
|
|
275
|
+
id: {
|
|
276
|
+
readonly description: "Unique identifier for component.";
|
|
277
|
+
readonly control: "text";
|
|
278
|
+
readonly type: {
|
|
279
|
+
readonly required: true;
|
|
280
|
+
readonly name: "string";
|
|
281
|
+
};
|
|
282
|
+
readonly table: {
|
|
283
|
+
readonly type: {
|
|
284
|
+
readonly summary: "string";
|
|
285
|
+
};
|
|
286
|
+
};
|
|
287
|
+
};
|
|
288
|
+
property: {
|
|
289
|
+
readonly description: "Property name to populate the component with data.\n Data can be defined in either the `item` or the `scope`.\n \nDot notation can also be used for nested properties, e.g. `address.city` or `addresses[1].city`.\n \nYou can also use a `function` or `writable computed` to set the property in the `scope`, which receives the modified data as an argument.\n ";
|
|
290
|
+
readonly type: {
|
|
291
|
+
readonly required: true;
|
|
292
|
+
readonly name: "string";
|
|
293
|
+
};
|
|
294
|
+
readonly table: {
|
|
295
|
+
readonly type: {
|
|
296
|
+
readonly summary: "string";
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
visibility: {
|
|
301
|
+
readonly description: "Visibility options for component.\n Method should be defined in the blade `scope`.\n Method should return boolean value.\n ";
|
|
302
|
+
readonly table: {
|
|
303
|
+
readonly type: {
|
|
304
|
+
readonly summary: "{ method: string }";
|
|
305
|
+
};
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
parameters: {
|
|
310
|
+
docs: {
|
|
311
|
+
canvas: {
|
|
312
|
+
sourceState: string;
|
|
313
|
+
};
|
|
314
|
+
};
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
export default _default;
|
|
318
|
+
export declare const Template: StoryFn<VideoSchema>;
|
|
319
|
+
export declare const WithLabel: StoryFn<VideoSchema>;
|
|
320
|
+
export declare const WithTooltip: StoryFn<VideoSchema>;
|
|
321
|
+
export declare const WithVisibility: StoryFn<VideoSchema>;
|
|
322
|
+
//# sourceMappingURL=VideoField.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"VideoField.stories.d.ts","sourceRoot":"","sources":["../../../../../../../shared/modules/dynamic/components/fields/storybook/VideoField.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAOvC,wBAiC8B;AAE9B,eAAO,MAAM,QAAQ,EAAE,OAAO,CAAC,WAAW,CAWxC,CAAC;AAEH,eAAO,MAAM,SAAS,sBAAoB,CAAC;AAK3C,eAAO,MAAM,WAAW,sBAAoB,CAAC;AAM7C,eAAO,MAAM,cAAc,EAAE,OAAO,CAAC,WAAW,CAmB9C,CAAC"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
export declare const SchemaBaseArgTypes: {
|
|
2
|
+
readonly id: {
|
|
3
|
+
readonly description: "Unique identifier for component.";
|
|
4
|
+
readonly control: "text";
|
|
5
|
+
readonly type: {
|
|
6
|
+
readonly required: true;
|
|
7
|
+
readonly name: "string";
|
|
8
|
+
};
|
|
9
|
+
readonly table: {
|
|
10
|
+
readonly type: {
|
|
11
|
+
readonly summary: "string";
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
readonly label: {
|
|
16
|
+
readonly description: "Control label.\n To show label based on some bound property - use interpolation `{}` syntax.\n \n`@example` {someProperty}\n Supports i18n keys.";
|
|
17
|
+
readonly control: "text";
|
|
18
|
+
readonly table: {
|
|
19
|
+
readonly type: {
|
|
20
|
+
readonly summary: "string";
|
|
21
|
+
};
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
readonly property: {
|
|
25
|
+
readonly description: "Property name to populate the component with data.\n Data can be defined in either the `item` or the `scope`.\n \nDot notation can also be used for nested properties, e.g. `address.city` or `addresses[1].city`.\n \nYou can also use a `function` or `writable computed` to set the property in the `scope`, which receives the modified data as an argument.\n ";
|
|
26
|
+
readonly type: {
|
|
27
|
+
readonly required: true;
|
|
28
|
+
readonly name: "string";
|
|
29
|
+
};
|
|
30
|
+
readonly table: {
|
|
31
|
+
readonly type: {
|
|
32
|
+
readonly summary: "string";
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
readonly rules: {
|
|
37
|
+
readonly description: "Vee-validate and custom validation rules for the schema.";
|
|
38
|
+
readonly control: "object";
|
|
39
|
+
readonly table: {
|
|
40
|
+
readonly type: {
|
|
41
|
+
readonly summary: "IValidationRules";
|
|
42
|
+
readonly detail: "https://github.com/VirtoCommerce/vc-shell/blob/67ac3849b35660680123efaf59775d4a64a210f6/framework/core/types/index.ts#L10";
|
|
43
|
+
};
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
readonly placeholder: {
|
|
47
|
+
readonly description: "Placeholder text for the component.\n Supports i18n keys.";
|
|
48
|
+
readonly control: "text";
|
|
49
|
+
readonly table: {
|
|
50
|
+
readonly type: {
|
|
51
|
+
readonly summary: "string";
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
};
|
|
55
|
+
readonly disabled: {
|
|
56
|
+
readonly description: "Disabled state for component.\n Method should be defined in the blade `scope`.\n Method should return boolean value.\n ";
|
|
57
|
+
readonly table: {
|
|
58
|
+
readonly type: {
|
|
59
|
+
readonly summary: "{ method: string }";
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
readonly tooltip: {
|
|
64
|
+
readonly description: "Tooltip text for the component.\n Supports i18n keys.";
|
|
65
|
+
readonly control: "text";
|
|
66
|
+
readonly table: {
|
|
67
|
+
readonly type: {
|
|
68
|
+
readonly summary: "string";
|
|
69
|
+
};
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
readonly visibility: {
|
|
73
|
+
readonly description: "Visibility options for component.\n Method should be defined in the blade `scope`.\n Method should return boolean value.\n ";
|
|
74
|
+
readonly table: {
|
|
75
|
+
readonly type: {
|
|
76
|
+
readonly summary: "{ method: string }";
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
readonly multilanguage: {
|
|
81
|
+
readonly description: "Flag to indicate if the component supports multilanguage.";
|
|
82
|
+
readonly control: "boolean";
|
|
83
|
+
readonly table: {
|
|
84
|
+
readonly type: {
|
|
85
|
+
readonly summary: "boolean";
|
|
86
|
+
};
|
|
87
|
+
readonly defaultValue: {
|
|
88
|
+
readonly summary: "false";
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
};
|
|
92
|
+
readonly update: {
|
|
93
|
+
readonly description: "Additional method that is called when the modelValue of the component changes.\n Method should be defined in the blade `scope`.\n ";
|
|
94
|
+
readonly table: {
|
|
95
|
+
readonly type: {
|
|
96
|
+
readonly summary: "{ method: string }";
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
readonly horizontalSeparator: {
|
|
101
|
+
readonly description: "Adds horizontal separator after component.";
|
|
102
|
+
readonly control: "boolean";
|
|
103
|
+
readonly table: {
|
|
104
|
+
readonly type: {
|
|
105
|
+
readonly summary: "boolean";
|
|
106
|
+
};
|
|
107
|
+
readonly defaultValue: {
|
|
108
|
+
readonly summary: "false";
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
};
|
|
112
|
+
};
|
|
113
|
+
//# sourceMappingURL=args.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"args.d.ts","sourceRoot":"","sources":["../../../../../../../../shared/modules/dynamic/components/fields/storybook/common/args.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiIrB,CAAC"}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export declare const template = "\n<page :args=\"args\" :context=\"context\" :additionalSource=\"additionalSource\" @update:modelValue=\"(val) => Object.assign(context.item, val)\" />\n";
|
|
2
|
+
export declare const templateWithVisibilityToggle = "\n<VcButton @click=\"toggle\" class=\"tw-mb-4\" outline small variant=\"danger\">Toggle visibility</VcButton>\n\n<page :args=\"args\" :context=\"context\" :additionalSource=\"additionalSource\" @update:modelValue=\"(val) => Object.assign(context.item, val)\" />\n\n";
|
|
3
|
+
//# sourceMappingURL=templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../../../../../../shared/modules/dynamic/components/fields/storybook/common/templates.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,6JAEpB,CAAC;AAEF,eAAO,MAAM,4BAA4B,8QAGxC,CAAC"}
|