@vc-shell/framework 1.0.187 → 1.0.189
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 +18 -0
- package/core/plugins/moment/humanize.ts +6 -7
- package/dist/core/plugins/moment/humanize.d.ts.map +1 -1
- package/dist/framework.js +5907 -5885
- package/dist/index.css +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/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/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 +398 -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 +448 -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 +395 -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/helpers/getters.d.ts.map +1 -1
- package/dist/shared/modules/dynamic/types/index.d.ts +73 -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.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.vue.d.ts.map +1 -1
- 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.vue.d.ts.map +1 -1
- package/dist/ui/components/organisms/vc-table/vc-table.vue.d.ts.map +1 -1
- package/package.json +4 -4
- 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 +4 -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/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/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 +167 -0
- package/shared/modules/dynamic/components/fields/storybook/Checkbox.stories.ts +186 -0
- package/shared/modules/dynamic/components/fields/storybook/ContentField.stories.ts +246 -0
- package/shared/modules/dynamic/components/fields/storybook/EditorField.stories.ts +185 -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 +286 -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 +191 -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 +4 -2
- 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 +78 -40
- package/shared/modules/dynamic/types/models.ts +8 -7
- 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 +28 -9
- package/ui/components/molecules/vc-field/_internal/vc-field-type/vc-field-type.vue +2 -2
- 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.vue +1 -9
- package/ui/components/organisms/vc-table/vc-table.vue +1 -0
|
@@ -0,0 +1,398 @@
|
|
|
1
|
+
import { StoryFn } from "@storybook/vue3";
|
|
2
|
+
import { CheckboxSchema } 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-checkbox";
|
|
239
|
+
content: string;
|
|
240
|
+
property: string;
|
|
241
|
+
};
|
|
242
|
+
argTypes: {
|
|
243
|
+
component: {
|
|
244
|
+
description: string;
|
|
245
|
+
type: {
|
|
246
|
+
required: true;
|
|
247
|
+
name: "string";
|
|
248
|
+
};
|
|
249
|
+
table: {
|
|
250
|
+
type: {
|
|
251
|
+
summary: string;
|
|
252
|
+
};
|
|
253
|
+
defaultValue: {
|
|
254
|
+
summary: string;
|
|
255
|
+
};
|
|
256
|
+
};
|
|
257
|
+
};
|
|
258
|
+
content: {
|
|
259
|
+
description: string;
|
|
260
|
+
type: {
|
|
261
|
+
required: true;
|
|
262
|
+
name: "string";
|
|
263
|
+
};
|
|
264
|
+
table: {
|
|
265
|
+
type: {
|
|
266
|
+
summary: string;
|
|
267
|
+
};
|
|
268
|
+
};
|
|
269
|
+
};
|
|
270
|
+
trueValue: {
|
|
271
|
+
description: string;
|
|
272
|
+
table: {
|
|
273
|
+
type: {
|
|
274
|
+
summary: string;
|
|
275
|
+
};
|
|
276
|
+
defaultValue: {
|
|
277
|
+
summary: string;
|
|
278
|
+
};
|
|
279
|
+
};
|
|
280
|
+
};
|
|
281
|
+
falseValue: {
|
|
282
|
+
description: string;
|
|
283
|
+
table: {
|
|
284
|
+
type: {
|
|
285
|
+
summary: string;
|
|
286
|
+
};
|
|
287
|
+
defaultValue: {
|
|
288
|
+
summary: string;
|
|
289
|
+
};
|
|
290
|
+
};
|
|
291
|
+
};
|
|
292
|
+
disabled: {
|
|
293
|
+
readonly description: "Disabled state for component.\n Method should be defined in the blade `scope`.\n Method should return boolean value.\n ";
|
|
294
|
+
readonly table: {
|
|
295
|
+
readonly type: {
|
|
296
|
+
readonly summary: "{ method: string }";
|
|
297
|
+
};
|
|
298
|
+
};
|
|
299
|
+
};
|
|
300
|
+
label: {
|
|
301
|
+
readonly description: "Control label.\n To show label based on some bound property - use interpolation `{}` syntax.\n \n`@example` {someProperty}\n Supports i18n keys.";
|
|
302
|
+
readonly control: "text";
|
|
303
|
+
readonly table: {
|
|
304
|
+
readonly type: {
|
|
305
|
+
readonly summary: "string";
|
|
306
|
+
};
|
|
307
|
+
};
|
|
308
|
+
};
|
|
309
|
+
tooltip: {
|
|
310
|
+
readonly description: "Tooltip text for the component.\n Supports i18n keys.";
|
|
311
|
+
readonly control: "text";
|
|
312
|
+
readonly table: {
|
|
313
|
+
readonly type: {
|
|
314
|
+
readonly summary: "string";
|
|
315
|
+
};
|
|
316
|
+
};
|
|
317
|
+
};
|
|
318
|
+
id: {
|
|
319
|
+
readonly description: "Unique identifier for component.";
|
|
320
|
+
readonly control: "text";
|
|
321
|
+
readonly type: {
|
|
322
|
+
readonly required: true;
|
|
323
|
+
readonly name: "string";
|
|
324
|
+
};
|
|
325
|
+
readonly table: {
|
|
326
|
+
readonly type: {
|
|
327
|
+
readonly summary: "string";
|
|
328
|
+
};
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
rules: {
|
|
332
|
+
readonly description: "Vee-validate and custom validation rules for the schema.";
|
|
333
|
+
readonly control: "object";
|
|
334
|
+
readonly table: {
|
|
335
|
+
readonly type: {
|
|
336
|
+
readonly summary: "IValidationRules";
|
|
337
|
+
readonly detail: "https://github.com/VirtoCommerce/vc-shell/blob/67ac3849b35660680123efaf59775d4a64a210f6/framework/core/types/index.ts#L10";
|
|
338
|
+
};
|
|
339
|
+
};
|
|
340
|
+
};
|
|
341
|
+
property: {
|
|
342
|
+
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 ";
|
|
343
|
+
readonly type: {
|
|
344
|
+
readonly required: true;
|
|
345
|
+
readonly name: "string";
|
|
346
|
+
};
|
|
347
|
+
readonly table: {
|
|
348
|
+
readonly type: {
|
|
349
|
+
readonly summary: "string";
|
|
350
|
+
};
|
|
351
|
+
};
|
|
352
|
+
};
|
|
353
|
+
visibility: {
|
|
354
|
+
readonly description: "Visibility options for component.\n Method should be defined in the blade `scope`.\n Method should return boolean value.\n ";
|
|
355
|
+
readonly table: {
|
|
356
|
+
readonly type: {
|
|
357
|
+
readonly summary: "{ method: string }";
|
|
358
|
+
};
|
|
359
|
+
};
|
|
360
|
+
};
|
|
361
|
+
horizontalSeparator: {
|
|
362
|
+
readonly description: "Adds horizontal separator after component.";
|
|
363
|
+
readonly control: "boolean";
|
|
364
|
+
readonly table: {
|
|
365
|
+
readonly type: {
|
|
366
|
+
readonly summary: "boolean";
|
|
367
|
+
};
|
|
368
|
+
readonly defaultValue: {
|
|
369
|
+
readonly summary: "false";
|
|
370
|
+
};
|
|
371
|
+
};
|
|
372
|
+
};
|
|
373
|
+
update: {
|
|
374
|
+
readonly description: "Additional method that is called when the modelValue of the component changes.\n Method should be defined in the blade `scope`.\n ";
|
|
375
|
+
readonly table: {
|
|
376
|
+
readonly type: {
|
|
377
|
+
readonly summary: "{ method: string }";
|
|
378
|
+
};
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
};
|
|
382
|
+
parameters: {
|
|
383
|
+
docs: {
|
|
384
|
+
canvas: {
|
|
385
|
+
sourceState: string;
|
|
386
|
+
};
|
|
387
|
+
};
|
|
388
|
+
};
|
|
389
|
+
};
|
|
390
|
+
export default _default;
|
|
391
|
+
export declare const Template: StoryFn<CheckboxSchema>;
|
|
392
|
+
export declare const Disabled: StoryFn<CheckboxSchema>;
|
|
393
|
+
export declare const Checked: StoryFn<CheckboxSchema>;
|
|
394
|
+
export declare const WithVisibilityMethod: StoryFn<CheckboxSchema>;
|
|
395
|
+
export declare const HorizontalSeparator: StoryFn<CheckboxSchema>;
|
|
396
|
+
export declare const WithUpdateMethod: StoryFn<CheckboxSchema>;
|
|
397
|
+
export declare const WithRequiredRule: StoryFn<CheckboxSchema>;
|
|
398
|
+
//# sourceMappingURL=Checkbox.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Checkbox.stories.d.ts","sourceRoot":"","sources":["../../../../../../../shared/modules/dynamic/components/fields/storybook/Checkbox.stories.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAOhD,OAAO,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAE1C,wBAqEiC;AAEjC,eAAO,MAAM,QAAQ,EAAE,OAAO,CAAC,cAAc,CAY3C,CAAC;AAEH,eAAO,MAAM,QAAQ,EAAE,OAAO,CAAC,cAAc,CAc3C,CAAC;AAOH,eAAO,MAAM,OAAO,EAAE,OAAO,CAAC,cAAc,CAW1C,CAAC;AAEH,eAAO,MAAM,oBAAoB,EAAE,OAAO,CAAC,cAAc,CAmBvD,CAAC;AAOH,eAAO,MAAM,mBAAmB,yBAAoB,CAAC;AAKrD,eAAO,MAAM,gBAAgB,EAAE,OAAO,CAAC,cAAc,CAcnD,CAAC;AAOH,eAAO,MAAM,gBAAgB,yBAAoB,CAAC"}
|