@easy-editor/materials-dashboard-carousel 0.0.3 → 0.0.4
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 +8 -0
- package/dist/component.min.js +1 -2
- package/dist/index.min.js +1 -2
- package/dist/meta.min.js +1 -2
- package/easypack.config.ts +10 -0
- package/package.json +4 -8
- package/src/component.tsx +217 -174
- package/src/configure.ts +97 -194
- package/src/index.tsx +7 -7
- package/src/meta.ts +26 -28
- package/src/snippets.ts +70 -60
- package/tsconfig.json +20 -9
- package/.vite/plugins/vite-plugin-external-deps.ts +0 -224
- package/.vite/plugins/vite-plugin-material-dev.ts +0 -218
- package/dist/component.esm.js +0 -178
- package/dist/component.esm.js.map +0 -1
- package/dist/component.js +0 -186
- package/dist/component.js.map +0 -1
- package/dist/component.min.js.map +0 -1
- package/dist/index.cjs +0 -418
- package/dist/index.cjs.map +0 -1
- package/dist/index.esm.js +0 -415
- package/dist/index.esm.js.map +0 -1
- package/dist/index.js +0 -422
- package/dist/index.js.map +0 -1
- package/dist/index.min.js.map +0 -1
- package/dist/meta.esm.js +0 -241
- package/dist/meta.esm.js.map +0 -1
- package/dist/meta.js +0 -252
- package/dist/meta.js.map +0 -1
- package/dist/meta.min.js.map +0 -1
- package/dist/src/component.d.ts +0 -32
- package/dist/src/configure.d.ts +0 -7
- package/dist/src/constants.d.ts +0 -16
- package/dist/src/index.d.ts +0 -6
- package/dist/src/meta.d.ts +0 -7
- package/dist/src/snippets.d.ts +0 -7
- package/rollup.config.js +0 -222
- package/tsconfig.build.json +0 -12
- package/tsconfig.test.json +0 -7
- package/vite.config.ts +0 -54
package/dist/meta.esm.js
DELETED
|
@@ -1,241 +0,0 @@
|
|
|
1
|
-
/* @easy-editor/materials-dashboard-carousel v0.0.2 (meta, esm) */
|
|
2
|
-
const MaterialGroup = {
|
|
3
|
-
DISPLAY: 'display'};
|
|
4
|
-
|
|
5
|
-
const COMPONENT_NAME = 'EasyEditorMaterialsCarousel';
|
|
6
|
-
const PACKAGE_NAME = '@easy-editor/materials-dashboard-carousel';
|
|
7
|
-
|
|
8
|
-
const configure = {
|
|
9
|
-
props: [{
|
|
10
|
-
type: 'group',
|
|
11
|
-
title: '属性',
|
|
12
|
-
setter: 'TabSetter',
|
|
13
|
-
items: [{
|
|
14
|
-
type: 'group',
|
|
15
|
-
key: 'config',
|
|
16
|
-
title: '配置',
|
|
17
|
-
setter: {
|
|
18
|
-
componentName: 'CollapseSetter',
|
|
19
|
-
props: {
|
|
20
|
-
icon: false
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
items: [
|
|
24
|
-
{
|
|
25
|
-
name: 'id',
|
|
26
|
-
title: 'ID',
|
|
27
|
-
setter: 'NodeIdSetter',
|
|
28
|
-
extraProps: {
|
|
29
|
-
label: false
|
|
30
|
-
}
|
|
31
|
-
}, {
|
|
32
|
-
name: 'title',
|
|
33
|
-
title: '标题',
|
|
34
|
-
setter: 'StringSetter',
|
|
35
|
-
extraProps: {
|
|
36
|
-
getValue(target) {
|
|
37
|
-
return target.getExtraPropValue('title');
|
|
38
|
-
},
|
|
39
|
-
setValue(target, value) {
|
|
40
|
-
target.setExtraPropValue('title', value);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
}, {
|
|
44
|
-
type: 'group',
|
|
45
|
-
title: '基础属性',
|
|
46
|
-
setter: {
|
|
47
|
-
componentName: 'CollapseSetter',
|
|
48
|
-
props: {
|
|
49
|
-
icon: false
|
|
50
|
-
}
|
|
51
|
-
},
|
|
52
|
-
items: [{
|
|
53
|
-
name: 'rect',
|
|
54
|
-
title: '位置尺寸',
|
|
55
|
-
setter: 'RectSetter',
|
|
56
|
-
extraProps: {
|
|
57
|
-
getValue(target) {
|
|
58
|
-
return target.getExtraPropValue('$dashboard.rect');
|
|
59
|
-
},
|
|
60
|
-
setValue(target, value) {
|
|
61
|
-
target.setExtraPropValue('$dashboard.rect', value);
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
}]
|
|
65
|
-
},
|
|
66
|
-
{
|
|
67
|
-
type: 'group',
|
|
68
|
-
title: '数据',
|
|
69
|
-
setter: {
|
|
70
|
-
componentName: 'CollapseSetter',
|
|
71
|
-
props: {
|
|
72
|
-
icon: false
|
|
73
|
-
}
|
|
74
|
-
},
|
|
75
|
-
items: [{
|
|
76
|
-
name: 'items',
|
|
77
|
-
title: '轮播项',
|
|
78
|
-
setter: 'JsonSetter'
|
|
79
|
-
}]
|
|
80
|
-
}, {
|
|
81
|
-
type: 'group',
|
|
82
|
-
title: '行为',
|
|
83
|
-
setter: {
|
|
84
|
-
componentName: 'CollapseSetter',
|
|
85
|
-
props: {
|
|
86
|
-
icon: false
|
|
87
|
-
}
|
|
88
|
-
},
|
|
89
|
-
items: [{
|
|
90
|
-
name: 'autoPlay',
|
|
91
|
-
title: '自动播放',
|
|
92
|
-
setter: 'SwitchSetter',
|
|
93
|
-
extraProps: {
|
|
94
|
-
defaultValue: true
|
|
95
|
-
}
|
|
96
|
-
}, {
|
|
97
|
-
name: 'interval',
|
|
98
|
-
title: '播放间隔(ms)',
|
|
99
|
-
setter: 'NumberSetter',
|
|
100
|
-
extraProps: {
|
|
101
|
-
defaultValue: 3000
|
|
102
|
-
}
|
|
103
|
-
}, {
|
|
104
|
-
name: 'loop',
|
|
105
|
-
title: '循环播放',
|
|
106
|
-
setter: 'SwitchSetter',
|
|
107
|
-
extraProps: {
|
|
108
|
-
defaultValue: true
|
|
109
|
-
}
|
|
110
|
-
}]
|
|
111
|
-
}, {
|
|
112
|
-
type: 'group',
|
|
113
|
-
title: '显示',
|
|
114
|
-
setter: {
|
|
115
|
-
componentName: 'CollapseSetter',
|
|
116
|
-
props: {
|
|
117
|
-
icon: false
|
|
118
|
-
}
|
|
119
|
-
},
|
|
120
|
-
items: [{
|
|
121
|
-
name: 'showNav',
|
|
122
|
-
title: '显示导航按钮',
|
|
123
|
-
setter: 'SwitchSetter',
|
|
124
|
-
extraProps: {
|
|
125
|
-
defaultValue: true
|
|
126
|
-
}
|
|
127
|
-
}, {
|
|
128
|
-
name: 'showIndicators',
|
|
129
|
-
title: '显示指示器',
|
|
130
|
-
setter: 'SwitchSetter',
|
|
131
|
-
extraProps: {
|
|
132
|
-
defaultValue: true
|
|
133
|
-
}
|
|
134
|
-
}]
|
|
135
|
-
}]
|
|
136
|
-
}, {
|
|
137
|
-
type: 'group',
|
|
138
|
-
key: 'data',
|
|
139
|
-
title: '数据',
|
|
140
|
-
items: [{
|
|
141
|
-
name: 'dataBinding',
|
|
142
|
-
title: '数据绑定',
|
|
143
|
-
setter: 'DataBindingSetter'
|
|
144
|
-
}]
|
|
145
|
-
}, {
|
|
146
|
-
type: 'group',
|
|
147
|
-
key: 'advanced',
|
|
148
|
-
title: '高级',
|
|
149
|
-
items: [{
|
|
150
|
-
name: 'condition',
|
|
151
|
-
title: '显隐控制',
|
|
152
|
-
setter: 'SwitchSetter',
|
|
153
|
-
extraProps: {
|
|
154
|
-
defaultValue: true,
|
|
155
|
-
supportVariable: true
|
|
156
|
-
}
|
|
157
|
-
}]
|
|
158
|
-
}]
|
|
159
|
-
}],
|
|
160
|
-
component: {},
|
|
161
|
-
supports: {},
|
|
162
|
-
advanced: {}
|
|
163
|
-
};
|
|
164
|
-
|
|
165
|
-
const snippets = [{
|
|
166
|
-
title: '图片轮播',
|
|
167
|
-
screenshot: '',
|
|
168
|
-
schema: {
|
|
169
|
-
componentName: COMPONENT_NAME,
|
|
170
|
-
props: {
|
|
171
|
-
items: [{
|
|
172
|
-
src: 'https://picsum.photos/800/400?random=1',
|
|
173
|
-
alt: 'Slide 1'
|
|
174
|
-
}, {
|
|
175
|
-
src: 'https://picsum.photos/800/400?random=2',
|
|
176
|
-
alt: 'Slide 2'
|
|
177
|
-
}, {
|
|
178
|
-
src: 'https://picsum.photos/800/400?random=3',
|
|
179
|
-
alt: 'Slide 3'
|
|
180
|
-
}],
|
|
181
|
-
autoPlay: true,
|
|
182
|
-
interval: 3000,
|
|
183
|
-
showNav: true,
|
|
184
|
-
showIndicators: true,
|
|
185
|
-
loop: true
|
|
186
|
-
},
|
|
187
|
-
$dashboard: {
|
|
188
|
-
rect: {
|
|
189
|
-
width: 600,
|
|
190
|
-
height: 300
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
}, {
|
|
195
|
-
title: '手动轮播',
|
|
196
|
-
screenshot: '',
|
|
197
|
-
schema: {
|
|
198
|
-
componentName: COMPONENT_NAME,
|
|
199
|
-
props: {
|
|
200
|
-
items: [{
|
|
201
|
-
src: 'https://picsum.photos/800/400?random=4',
|
|
202
|
-
alt: 'Slide 1'
|
|
203
|
-
}, {
|
|
204
|
-
src: 'https://picsum.photos/800/400?random=5',
|
|
205
|
-
alt: 'Slide 2'
|
|
206
|
-
}],
|
|
207
|
-
autoPlay: false,
|
|
208
|
-
showNav: true,
|
|
209
|
-
showIndicators: true,
|
|
210
|
-
loop: true
|
|
211
|
-
},
|
|
212
|
-
$dashboard: {
|
|
213
|
-
rect: {
|
|
214
|
-
width: 600,
|
|
215
|
-
height: 300
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
}];
|
|
220
|
-
|
|
221
|
-
var version = "0.0.2";
|
|
222
|
-
var pkg = {
|
|
223
|
-
version: version};
|
|
224
|
-
|
|
225
|
-
const meta = {
|
|
226
|
-
componentName: COMPONENT_NAME,
|
|
227
|
-
title: '轮播',
|
|
228
|
-
group: MaterialGroup.DISPLAY,
|
|
229
|
-
devMode: 'proCode',
|
|
230
|
-
npm: {
|
|
231
|
-
package: PACKAGE_NAME,
|
|
232
|
-
version: pkg.version,
|
|
233
|
-
globalName: COMPONENT_NAME,
|
|
234
|
-
componentName: COMPONENT_NAME
|
|
235
|
-
},
|
|
236
|
-
snippets,
|
|
237
|
-
configure
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
export { meta as default, meta };
|
|
241
|
-
//# sourceMappingURL=meta.esm.js.map
|
package/dist/meta.esm.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta.esm.js","sources":["../../../../shared/src/index.ts","../src/constants.ts","../src/configure.ts","../src/snippets.ts","../src/meta.ts"],"sourcesContent":["/**\n * Shared types, components and utilities for EasyEditor materials\n * @package @easy-editor/materials-shared\n */\n\n// 物料分组常量\nexport const MaterialGroup = {\n /** 内置 */\n INNER: 'inner',\n /** 基础 */\n BASIC: 'basic',\n /** 图表 */\n CHART: 'chart',\n /** 数据展示 */\n DISPLAY: 'display',\n /** 媒体 */\n MEDIA: 'media',\n /** 交互 */\n INTERACTION: 'interaction',\n /** 地图 */\n MAP: 'map',\n} as const\n\nexport type MaterialGroup = (typeof MaterialGroup)[keyof typeof MaterialGroup]\n\n// 工具函数\nexport { cn } from './lib/utils'\n\nexport * from './types'\n","/**\n * 物料常量配置\n * 统一管理全局变量名等配置,确保 meta.ts 和 rollup.config.js 使用相同的值\n */\n\n/**\n * UMD 全局变量基础名称\n * 用于构建:\n * - 元数据:${GLOBAL_NAME}Meta (例如: EasyEditorMaterialsButtonMeta)\n * - 组件:${GLOBAL_NAME}Component (例如: EasyEditorMaterialsButtonComponent)\n * - 完整构建:${GLOBAL_NAME} (例如: EasyEditorMaterialsButton)\n */\nexport const COMPONENT_NAME = 'EasyEditorMaterialsCarousel'\n\n/**\n * 包名\n */\nexport const PACKAGE_NAME = '@easy-editor/materials-dashboard-carousel'\n","/**\n * Carousel Configure\n * 轮播组件配置\n */\n\nimport type { Configure } from '@easy-editor/core'\n\nexport const configure: Configure = {\n props: [\n {\n type: 'group',\n title: '属性',\n setter: 'TabSetter',\n items: [\n {\n type: 'group',\n key: 'config',\n title: '配置',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n // 基础配置\n {\n name: 'id',\n title: 'ID',\n setter: 'NodeIdSetter',\n extraProps: {\n // @ts-expect-error label is not a valid extra prop\n label: false,\n },\n },\n {\n name: 'title',\n title: '标题',\n setter: 'StringSetter',\n extraProps: {\n getValue(target) {\n return target.getExtraPropValue('title')\n },\n setValue(target, value) {\n target.setExtraPropValue('title', value)\n },\n },\n },\n {\n type: 'group',\n title: '基础属性',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'rect',\n title: '位置尺寸',\n setter: 'RectSetter',\n extraProps: {\n getValue(target) {\n return target.getExtraPropValue('$dashboard.rect')\n },\n setValue(target, value) {\n target.setExtraPropValue('$dashboard.rect', value)\n },\n },\n },\n ],\n },\n // 组件配置\n {\n type: 'group',\n title: '数据',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'items',\n title: '轮播项',\n setter: 'JsonSetter',\n },\n ],\n },\n {\n type: 'group',\n title: '行为',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'autoPlay',\n title: '自动播放',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n {\n name: 'interval',\n title: '播放间隔(ms)',\n setter: 'NumberSetter',\n extraProps: {\n defaultValue: 3000,\n },\n },\n {\n name: 'loop',\n title: '循环播放',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n ],\n },\n {\n type: 'group',\n title: '显示',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'showNav',\n title: '显示导航按钮',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n {\n name: 'showIndicators',\n title: '显示指示器',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n ],\n },\n ],\n },\n {\n type: 'group',\n key: 'data',\n title: '数据',\n items: [\n {\n name: 'dataBinding',\n title: '数据绑定',\n setter: 'DataBindingSetter',\n },\n ],\n },\n {\n type: 'group',\n key: 'advanced',\n title: '高级',\n items: [\n {\n name: 'condition',\n title: '显隐控制',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n supportVariable: true,\n },\n },\n ],\n },\n ],\n },\n ],\n component: {},\n supports: {},\n advanced: {},\n}\n\nexport default configure\n","/**\n * Carousel Snippets\n * 轮播组件代码片段\n */\n\nimport type { Snippet } from '@easy-editor/core'\nimport { COMPONENT_NAME } from './constants'\n\nexport const snippets: Snippet[] = [\n {\n title: '图片轮播',\n screenshot: '',\n schema: {\n componentName: COMPONENT_NAME,\n props: {\n items: [\n { src: 'https://picsum.photos/800/400?random=1', alt: 'Slide 1' },\n { src: 'https://picsum.photos/800/400?random=2', alt: 'Slide 2' },\n { src: 'https://picsum.photos/800/400?random=3', alt: 'Slide 3' },\n ],\n autoPlay: true,\n interval: 3000,\n showNav: true,\n showIndicators: true,\n loop: true,\n },\n $dashboard: {\n rect: {\n width: 600,\n height: 300,\n },\n },\n },\n },\n {\n title: '手动轮播',\n screenshot: '',\n schema: {\n componentName: COMPONENT_NAME,\n props: {\n items: [\n { src: 'https://picsum.photos/800/400?random=4', alt: 'Slide 1' },\n { src: 'https://picsum.photos/800/400?random=5', alt: 'Slide 2' },\n ],\n autoPlay: false,\n showNav: true,\n showIndicators: true,\n loop: true,\n },\n $dashboard: {\n rect: {\n width: 600,\n height: 300,\n },\n },\n },\n },\n]\n\nexport default snippets\n","/**\n * Carousel Meta\n * 轮播组件元数据\n */\n\nimport type { ComponentMetadata } from '@easy-editor/core'\nimport { MaterialGroup } from '@easy-editor/materials-shared'\nimport { COMPONENT_NAME, PACKAGE_NAME } from './constants'\nimport configure from './configure'\nimport snippets from './snippets'\nimport pkg from '../package.json'\n\nexport const meta: ComponentMetadata = {\n componentName: COMPONENT_NAME,\n title: '轮播',\n group: MaterialGroup.DISPLAY,\n devMode: 'proCode',\n npm: {\n package: PACKAGE_NAME,\n version: pkg.version,\n globalName: COMPONENT_NAME,\n componentName: COMPONENT_NAME,\n },\n snippets,\n configure,\n}\n\nexport default meta\n"],"names":["MaterialGroup","INNER","DISPLAY","COMPONENT_NAME","PACKAGE_NAME","configure","props","type","title","setter","items","key","componentName","icon","name","extraProps","label","getValue","target","getExtraPropValue","setValue","value","setExtraPropValue","defaultValue","supportVariable","component","supports","advanced","snippets","screenshot","schema","src","alt","autoPlay","interval","showNav","showIndicators","loop","$dashboard","rect","width","height","meta","group","devMode","npm","package","version","pkg","globalName"],"mappings":";AAMO,MAAMA,aAAa,GAAG;AAE3BC,EAMAC,OAAO,EAAE,SAOX,CAAU;;ACTH,MAAMC,cAAc,GAAG,6BAA6B;AAKpD,MAAMC,YAAY,GAAG,2CAA2C;;ACVhE,MAAMC,SAAoB,GAAG;AAClCC,EAAAA,KAAK,EAAE,CACL;AACEC,IAAAA,IAAI,EAAE,OAAO;AACbC,IAAAA,KAAK,EAAE,IAAI;AACXC,IAAAA,MAAM,EAAE,WAAW;AACnBC,IAAAA,KAAK,EAAE,CACL;AACEH,MAAAA,IAAI,EAAE,OAAO;AACbI,MAAAA,GAAG,EAAE,QAAQ;AACbH,MAAAA,KAAK,EAAE,IAAI;AACXC,MAAAA,MAAM,EAAE;AACNG,QAAAA,aAAa,EAAE,gBAAgB;AAC/BN,QAAAA,KAAK,EAAE;AACLO,UAAAA,IAAI,EAAE;AACR;OACD;AACDH,MAAAA,KAAK,EAAE;AAEL,MAAA;AACEI,QAAAA,IAAI,EAAE,IAAI;AACVN,QAAAA,KAAK,EAAE,IAAI;AACXC,QAAAA,MAAM,EAAE,cAAc;AACtBM,QAAAA,UAAU,EAAE;AAEVC,UAAAA,KAAK,EAAE;AACT;AACF,OAAC,EACD;AACEF,QAAAA,IAAI,EAAE,OAAO;AACbN,QAAAA,KAAK,EAAE,IAAI;AACXC,QAAAA,MAAM,EAAE,cAAc;AACtBM,QAAAA,UAAU,EAAE;UACVE,QAAQA,CAACC,MAAM,EAAE;AACf,YAAA,OAAOA,MAAM,CAACC,iBAAiB,CAAC,OAAO,CAAC;UAC1C,CAAC;AACDC,UAAAA,QAAQA,CAACF,MAAM,EAAEG,KAAK,E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AE;AACV;AACF;AACF;AACF,CAAC,EACD;AACEjC,EAAAA,KAAK,EAAE,MAAM;AACbqB,EAAAA,UAAU,EAAE,EAAE;AACdC,EAAAA,MAAM,EAAE;AACNlB,IAAAA,aAAa,EAAET,cAAc;AAC7BG,IAAAA,KAAK,EAAE;AACLI,MAAAA,KAAK,EAAE,CACL;AAAEqB,QAAAA,GAAG,EAAE,wCAAwC;AAAEC,QAAAA,GAAG,EAAE;AAAU,OAAC,EACjE;AAAED,QAAAA,GAAG,EAAE,wCAAwC;AAAEC,QAAAA,GAAG,EAAE;AAAU,OAAC,CAClE;AACDC,MAAAA,QAAQ,EAAE,KAAK;AACfE,MAAAA,OAAO,EAAE,IAAI;AACbC,MAAAA,cAAc,EAAE,IAAI;AACpBC,MAAAA,IAAI,EAAE;KACP;AACDC,IAAAA,UAAU,EAAE;AACVC,MAAAA,IAAI,EAAE;AACJC,QAAAA,KAAK,EAAE,GAAG;AACVC,QAAAA,MAAM,EAAE;AACV;AACF;AACF;AACF,CAAC,CACF;;;;;;AC7CM,MAAMC,IAAuB,GAAG;AACrC9B,EAAAA,aAAa,EAAET,cAAc;AAC7BK,EAAAA,KAAK,EAAE,IAAI;EACXmC,KAAK,EAAE3C,aAAa,CAACE,OAAO;AAC5B0C,EAAAA,OAAO,EAAE,SAAS;AAClBC,EAAAA,GAAG,EAAE;AACHC,IAAAA,OAAO,EAAE1C,YAAY;IACrB2C,OAAO,EAAEC,GAAG,CAACD,OAAO;AACpBE,IAAAA,UAAU,EAAE9C,cAAc;AAC1BS,IAAAA,aAAa,EAAET;GAChB;EACDyB,QAAQ;AACRvB,EAAAA;AACF;;;;"}
|
package/dist/meta.js
DELETED
|
@@ -1,252 +0,0 @@
|
|
|
1
|
-
/* @easy-editor/materials-dashboard-carousel v0.0.2 (meta) */
|
|
2
|
-
(function (global, factory) {
|
|
3
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
|
|
4
|
-
typeof define === 'function' && define.amd ? define(['exports'], factory) :
|
|
5
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.EasyEditorMaterialsCarouselMeta = {}));
|
|
6
|
-
})(this, (function (exports) { 'use strict';
|
|
7
|
-
|
|
8
|
-
const MaterialGroup = {
|
|
9
|
-
DISPLAY: 'display'};
|
|
10
|
-
|
|
11
|
-
const COMPONENT_NAME = 'EasyEditorMaterialsCarousel';
|
|
12
|
-
const PACKAGE_NAME = '@easy-editor/materials-dashboard-carousel';
|
|
13
|
-
|
|
14
|
-
const configure = {
|
|
15
|
-
props: [{
|
|
16
|
-
type: 'group',
|
|
17
|
-
title: '属性',
|
|
18
|
-
setter: 'TabSetter',
|
|
19
|
-
items: [{
|
|
20
|
-
type: 'group',
|
|
21
|
-
key: 'config',
|
|
22
|
-
title: '配置',
|
|
23
|
-
setter: {
|
|
24
|
-
componentName: 'CollapseSetter',
|
|
25
|
-
props: {
|
|
26
|
-
icon: false
|
|
27
|
-
}
|
|
28
|
-
},
|
|
29
|
-
items: [
|
|
30
|
-
{
|
|
31
|
-
name: 'id',
|
|
32
|
-
title: 'ID',
|
|
33
|
-
setter: 'NodeIdSetter',
|
|
34
|
-
extraProps: {
|
|
35
|
-
label: false
|
|
36
|
-
}
|
|
37
|
-
}, {
|
|
38
|
-
name: 'title',
|
|
39
|
-
title: '标题',
|
|
40
|
-
setter: 'StringSetter',
|
|
41
|
-
extraProps: {
|
|
42
|
-
getValue(target) {
|
|
43
|
-
return target.getExtraPropValue('title');
|
|
44
|
-
},
|
|
45
|
-
setValue(target, value) {
|
|
46
|
-
target.setExtraPropValue('title', value);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
}, {
|
|
50
|
-
type: 'group',
|
|
51
|
-
title: '基础属性',
|
|
52
|
-
setter: {
|
|
53
|
-
componentName: 'CollapseSetter',
|
|
54
|
-
props: {
|
|
55
|
-
icon: false
|
|
56
|
-
}
|
|
57
|
-
},
|
|
58
|
-
items: [{
|
|
59
|
-
name: 'rect',
|
|
60
|
-
title: '位置尺寸',
|
|
61
|
-
setter: 'RectSetter',
|
|
62
|
-
extraProps: {
|
|
63
|
-
getValue(target) {
|
|
64
|
-
return target.getExtraPropValue('$dashboard.rect');
|
|
65
|
-
},
|
|
66
|
-
setValue(target, value) {
|
|
67
|
-
target.setExtraPropValue('$dashboard.rect', value);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}]
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
type: 'group',
|
|
74
|
-
title: '数据',
|
|
75
|
-
setter: {
|
|
76
|
-
componentName: 'CollapseSetter',
|
|
77
|
-
props: {
|
|
78
|
-
icon: false
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
items: [{
|
|
82
|
-
name: 'items',
|
|
83
|
-
title: '轮播项',
|
|
84
|
-
setter: 'JsonSetter'
|
|
85
|
-
}]
|
|
86
|
-
}, {
|
|
87
|
-
type: 'group',
|
|
88
|
-
title: '行为',
|
|
89
|
-
setter: {
|
|
90
|
-
componentName: 'CollapseSetter',
|
|
91
|
-
props: {
|
|
92
|
-
icon: false
|
|
93
|
-
}
|
|
94
|
-
},
|
|
95
|
-
items: [{
|
|
96
|
-
name: 'autoPlay',
|
|
97
|
-
title: '自动播放',
|
|
98
|
-
setter: 'SwitchSetter',
|
|
99
|
-
extraProps: {
|
|
100
|
-
defaultValue: true
|
|
101
|
-
}
|
|
102
|
-
}, {
|
|
103
|
-
name: 'interval',
|
|
104
|
-
title: '播放间隔(ms)',
|
|
105
|
-
setter: 'NumberSetter',
|
|
106
|
-
extraProps: {
|
|
107
|
-
defaultValue: 3000
|
|
108
|
-
}
|
|
109
|
-
}, {
|
|
110
|
-
name: 'loop',
|
|
111
|
-
title: '循环播放',
|
|
112
|
-
setter: 'SwitchSetter',
|
|
113
|
-
extraProps: {
|
|
114
|
-
defaultValue: true
|
|
115
|
-
}
|
|
116
|
-
}]
|
|
117
|
-
}, {
|
|
118
|
-
type: 'group',
|
|
119
|
-
title: '显示',
|
|
120
|
-
setter: {
|
|
121
|
-
componentName: 'CollapseSetter',
|
|
122
|
-
props: {
|
|
123
|
-
icon: false
|
|
124
|
-
}
|
|
125
|
-
},
|
|
126
|
-
items: [{
|
|
127
|
-
name: 'showNav',
|
|
128
|
-
title: '显示导航按钮',
|
|
129
|
-
setter: 'SwitchSetter',
|
|
130
|
-
extraProps: {
|
|
131
|
-
defaultValue: true
|
|
132
|
-
}
|
|
133
|
-
}, {
|
|
134
|
-
name: 'showIndicators',
|
|
135
|
-
title: '显示指示器',
|
|
136
|
-
setter: 'SwitchSetter',
|
|
137
|
-
extraProps: {
|
|
138
|
-
defaultValue: true
|
|
139
|
-
}
|
|
140
|
-
}]
|
|
141
|
-
}]
|
|
142
|
-
}, {
|
|
143
|
-
type: 'group',
|
|
144
|
-
key: 'data',
|
|
145
|
-
title: '数据',
|
|
146
|
-
items: [{
|
|
147
|
-
name: 'dataBinding',
|
|
148
|
-
title: '数据绑定',
|
|
149
|
-
setter: 'DataBindingSetter'
|
|
150
|
-
}]
|
|
151
|
-
}, {
|
|
152
|
-
type: 'group',
|
|
153
|
-
key: 'advanced',
|
|
154
|
-
title: '高级',
|
|
155
|
-
items: [{
|
|
156
|
-
name: 'condition',
|
|
157
|
-
title: '显隐控制',
|
|
158
|
-
setter: 'SwitchSetter',
|
|
159
|
-
extraProps: {
|
|
160
|
-
defaultValue: true,
|
|
161
|
-
supportVariable: true
|
|
162
|
-
}
|
|
163
|
-
}]
|
|
164
|
-
}]
|
|
165
|
-
}],
|
|
166
|
-
component: {},
|
|
167
|
-
supports: {},
|
|
168
|
-
advanced: {}
|
|
169
|
-
};
|
|
170
|
-
|
|
171
|
-
const snippets = [{
|
|
172
|
-
title: '图片轮播',
|
|
173
|
-
screenshot: '',
|
|
174
|
-
schema: {
|
|
175
|
-
componentName: COMPONENT_NAME,
|
|
176
|
-
props: {
|
|
177
|
-
items: [{
|
|
178
|
-
src: 'https://picsum.photos/800/400?random=1',
|
|
179
|
-
alt: 'Slide 1'
|
|
180
|
-
}, {
|
|
181
|
-
src: 'https://picsum.photos/800/400?random=2',
|
|
182
|
-
alt: 'Slide 2'
|
|
183
|
-
}, {
|
|
184
|
-
src: 'https://picsum.photos/800/400?random=3',
|
|
185
|
-
alt: 'Slide 3'
|
|
186
|
-
}],
|
|
187
|
-
autoPlay: true,
|
|
188
|
-
interval: 3000,
|
|
189
|
-
showNav: true,
|
|
190
|
-
showIndicators: true,
|
|
191
|
-
loop: true
|
|
192
|
-
},
|
|
193
|
-
$dashboard: {
|
|
194
|
-
rect: {
|
|
195
|
-
width: 600,
|
|
196
|
-
height: 300
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
}, {
|
|
201
|
-
title: '手动轮播',
|
|
202
|
-
screenshot: '',
|
|
203
|
-
schema: {
|
|
204
|
-
componentName: COMPONENT_NAME,
|
|
205
|
-
props: {
|
|
206
|
-
items: [{
|
|
207
|
-
src: 'https://picsum.photos/800/400?random=4',
|
|
208
|
-
alt: 'Slide 1'
|
|
209
|
-
}, {
|
|
210
|
-
src: 'https://picsum.photos/800/400?random=5',
|
|
211
|
-
alt: 'Slide 2'
|
|
212
|
-
}],
|
|
213
|
-
autoPlay: false,
|
|
214
|
-
showNav: true,
|
|
215
|
-
showIndicators: true,
|
|
216
|
-
loop: true
|
|
217
|
-
},
|
|
218
|
-
$dashboard: {
|
|
219
|
-
rect: {
|
|
220
|
-
width: 600,
|
|
221
|
-
height: 300
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
}];
|
|
226
|
-
|
|
227
|
-
var version = "0.0.2";
|
|
228
|
-
var pkg = {
|
|
229
|
-
version: version};
|
|
230
|
-
|
|
231
|
-
const meta = {
|
|
232
|
-
componentName: COMPONENT_NAME,
|
|
233
|
-
title: '轮播',
|
|
234
|
-
group: MaterialGroup.DISPLAY,
|
|
235
|
-
devMode: 'proCode',
|
|
236
|
-
npm: {
|
|
237
|
-
package: PACKAGE_NAME,
|
|
238
|
-
version: pkg.version,
|
|
239
|
-
globalName: COMPONENT_NAME,
|
|
240
|
-
componentName: COMPONENT_NAME
|
|
241
|
-
},
|
|
242
|
-
snippets,
|
|
243
|
-
configure
|
|
244
|
-
};
|
|
245
|
-
|
|
246
|
-
exports.default = meta;
|
|
247
|
-
exports.meta = meta;
|
|
248
|
-
|
|
249
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
250
|
-
|
|
251
|
-
}));
|
|
252
|
-
//# sourceMappingURL=meta.js.map
|
package/dist/meta.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta.js","sources":["../../../../shared/src/index.ts","../src/constants.ts","../src/configure.ts","../src/snippets.ts","../src/meta.ts"],"sourcesContent":["/**\n * Shared types, components and utilities for EasyEditor materials\n * @package @easy-editor/materials-shared\n */\n\n// 物料分组常量\nexport const MaterialGroup = {\n /** 内置 */\n INNER: 'inner',\n /** 基础 */\n BASIC: 'basic',\n /** 图表 */\n CHART: 'chart',\n /** 数据展示 */\n DISPLAY: 'display',\n /** 媒体 */\n MEDIA: 'media',\n /** 交互 */\n INTERACTION: 'interaction',\n /** 地图 */\n MAP: 'map',\n} as const\n\nexport type MaterialGroup = (typeof MaterialGroup)[keyof typeof MaterialGroup]\n\n// 工具函数\nexport { cn } from './lib/utils'\n\nexport * from './types'\n","/**\n * 物料常量配置\n * 统一管理全局变量名等配置,确保 meta.ts 和 rollup.config.js 使用相同的值\n */\n\n/**\n * UMD 全局变量基础名称\n * 用于构建:\n * - 元数据:${GLOBAL_NAME}Meta (例如: EasyEditorMaterialsButtonMeta)\n * - 组件:${GLOBAL_NAME}Component (例如: EasyEditorMaterialsButtonComponent)\n * - 完整构建:${GLOBAL_NAME} (例如: EasyEditorMaterialsButton)\n */\nexport const COMPONENT_NAME = 'EasyEditorMaterialsCarousel'\n\n/**\n * 包名\n */\nexport const PACKAGE_NAME = '@easy-editor/materials-dashboard-carousel'\n","/**\n * Carousel Configure\n * 轮播组件配置\n */\n\nimport type { Configure } from '@easy-editor/core'\n\nexport const configure: Configure = {\n props: [\n {\n type: 'group',\n title: '属性',\n setter: 'TabSetter',\n items: [\n {\n type: 'group',\n key: 'config',\n title: '配置',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n // 基础配置\n {\n name: 'id',\n title: 'ID',\n setter: 'NodeIdSetter',\n extraProps: {\n // @ts-expect-error label is not a valid extra prop\n label: false,\n },\n },\n {\n name: 'title',\n title: '标题',\n setter: 'StringSetter',\n extraProps: {\n getValue(target) {\n return target.getExtraPropValue('title')\n },\n setValue(target, value) {\n target.setExtraPropValue('title', value)\n },\n },\n },\n {\n type: 'group',\n title: '基础属性',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'rect',\n title: '位置尺寸',\n setter: 'RectSetter',\n extraProps: {\n getValue(target) {\n return target.getExtraPropValue('$dashboard.rect')\n },\n setValue(target, value) {\n target.setExtraPropValue('$dashboard.rect', value)\n },\n },\n },\n ],\n },\n // 组件配置\n {\n type: 'group',\n title: '数据',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'items',\n title: '轮播项',\n setter: 'JsonSetter',\n },\n ],\n },\n {\n type: 'group',\n title: '行为',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'autoPlay',\n title: '自动播放',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n {\n name: 'interval',\n title: '播放间隔(ms)',\n setter: 'NumberSetter',\n extraProps: {\n defaultValue: 3000,\n },\n },\n {\n name: 'loop',\n title: '循环播放',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n ],\n },\n {\n type: 'group',\n title: '显示',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'showNav',\n title: '显示导航按钮',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n {\n name: 'showIndicators',\n title: '显示指示器',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n ],\n },\n ],\n },\n {\n type: 'group',\n key: 'data',\n title: '数据',\n items: [\n {\n name: 'dataBinding',\n title: '数据绑定',\n setter: 'DataBindingSetter',\n },\n ],\n },\n {\n type: 'group',\n key: 'advanced',\n title: '高级',\n items: [\n {\n name: 'condition',\n title: '显隐控制',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n supportVariable: true,\n },\n },\n ],\n },\n ],\n },\n ],\n component: {},\n supports: {},\n advanced: {},\n}\n\nexport default configure\n","/**\n * Carousel Snippets\n * 轮播组件代码片段\n */\n\nimport type { Snippet } from '@easy-editor/core'\nimport { COMPONENT_NAME } from './constants'\n\nexport const snippets: Snippet[] = [\n {\n title: '图片轮播',\n screenshot: '',\n schema: {\n componentName: COMPONENT_NAME,\n props: {\n items: [\n { src: 'https://picsum.photos/800/400?random=1', alt: 'Slide 1' },\n { src: 'https://picsum.photos/800/400?random=2', alt: 'Slide 2' },\n { src: 'https://picsum.photos/800/400?random=3', alt: 'Slide 3' },\n ],\n autoPlay: true,\n interval: 3000,\n showNav: true,\n showIndicators: true,\n loop: true,\n },\n $dashboard: {\n rect: {\n width: 600,\n height: 300,\n },\n },\n },\n },\n {\n title: '手动轮播',\n screenshot: '',\n schema: {\n componentName: COMPONENT_NAME,\n props: {\n items: [\n { src: 'https://picsum.photos/800/400?random=4', alt: 'Slide 1' },\n { src: 'https://picsum.photos/800/400?random=5', alt: 'Slide 2' },\n ],\n autoPlay: false,\n showNav: true,\n showIndicators: true,\n loop: true,\n },\n $dashboard: {\n rect: {\n width: 600,\n height: 300,\n },\n },\n },\n },\n]\n\nexport default snippets\n","/**\n * Carousel Meta\n * 轮播组件元数据\n */\n\nimport type { ComponentMetadata } from '@easy-editor/core'\nimport { MaterialGroup } from '@easy-editor/materials-shared'\nimport { COMPONENT_NAME, PACKAGE_NAME } from './constants'\nimport configure from './configure'\nimport snippets from './snippets'\nimport pkg from '../package.json'\n\nexport const meta: ComponentMetadata = {\n componentName: COMPONENT_NAME,\n title: '轮播',\n group: MaterialGroup.DISPLAY,\n devMode: 'proCode',\n npm: {\n package: PACKAGE_NAME,\n version: pkg.version,\n globalName: COMPONENT_NAME,\n componentName: COMPONENT_NAME,\n },\n snippets,\n configure,\n}\n\nexport default meta\n"],"names":["MaterialGroup","INNER","DISPLAY","COMPONENT_NAME","PACKAGE_NAME","configure","props","type","title","setter","items","key","componentName","icon","name","extraProps","label","getValue","target","getExtraPropValue","setValue","value","setExtraPropValue","defaultValue","supportVariable","component","supports","advanced","snippets","screenshot","schema","src","alt","autoPlay","interval","showNav","showIndicators","loop","$dashboard","rect","width","height","meta","group","devMode","npm","package","version","pkg","globalName"],"mappings":";;;;;;;EAMO,MAAMA,aAAa,GAAG;EAE3BC,EAMAC,OAAO,EAAE,SAOX,CAAU;;ECTH,MAAMC,cAAc,GAAG,6BAA6B;EAKpD,MAAMC,YAAY,GAAG,2CAA2C;;ECVhE,MAAMC,SAAoB,GAAG;EAClCC,EAAAA,KAAK,EAAE,CACL;EACEC,IAAAA,IAAI,EAAE,OAAO;EACbC,IAAAA,KAAK,EAAE,IAAI;EACXC,IAAAA,MAAM,EAAE,WAAW;EACnBC,IAAAA,KAAK,EAAE,CACL;EACEH,MAAAA,IAAI,EAAE,OAAO;EACbI,MAAAA,GAAG,EAAE,QAAQ;EACbH,MAAAA,KAAK,EAAE,IAAI;EACXC,MAAAA,MAAM,EAAE;EACNG,QAAAA,aAAa,EAAE,gBAAgB;EAC/BN,QAAAA,KAAK,EAAE;EACLO,UAAAA,IAAI,EAAE;EACR;SACD;EACDH,MAAAA,KAAK,EAAE;EAEL,MAAA;EACEI,QAAAA,IAAI,EAAE,IAAI;EACVN,QAAAA,KAAK,EAAE,IAAI;EACXC,QAAAA,MAAM,EAAE,cAAc;EACtBM,QAAAA,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,OAAO;EACpBE,IAAAA,UAAU,EAAE9C,cAAc;EAC1BS,IAAAA,aAAa,EAAET;KAChB;IACDyB,QAAQ;EACRvB,EAAAA;EACF;;;;;;;;;;;"}
|
package/dist/meta.min.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"meta.min.js","sources":["../../../../shared/src/index.ts","../src/constants.ts","../src/meta.ts","../src/snippets.ts","../src/configure.ts"],"sourcesContent":["/**\n * Shared types, components and utilities for EasyEditor materials\n * @package @easy-editor/materials-shared\n */\n\n// 物料分组常量\nexport const MaterialGroup = {\n /** 内置 */\n INNER: 'inner',\n /** 基础 */\n BASIC: 'basic',\n /** 图表 */\n CHART: 'chart',\n /** 数据展示 */\n DISPLAY: 'display',\n /** 媒体 */\n MEDIA: 'media',\n /** 交互 */\n INTERACTION: 'interaction',\n /** 地图 */\n MAP: 'map',\n} as const\n\nexport type MaterialGroup = (typeof MaterialGroup)[keyof typeof MaterialGroup]\n\n// 工具函数\nexport { cn } from './lib/utils'\n\nexport * from './types'\n","/**\n * 物料常量配置\n * 统一管理全局变量名等配置,确保 meta.ts 和 rollup.config.js 使用相同的值\n */\n\n/**\n * UMD 全局变量基础名称\n * 用于构建:\n * - 元数据:${GLOBAL_NAME}Meta (例如: EasyEditorMaterialsButtonMeta)\n * - 组件:${GLOBAL_NAME}Component (例如: EasyEditorMaterialsButtonComponent)\n * - 完整构建:${GLOBAL_NAME} (例如: EasyEditorMaterialsButton)\n */\nexport const COMPONENT_NAME = 'EasyEditorMaterialsCarousel'\n\n/**\n * 包名\n */\nexport const PACKAGE_NAME = '@easy-editor/materials-dashboard-carousel'\n","/**\n * Carousel Meta\n * 轮播组件元数据\n */\n\nimport type { ComponentMetadata } from '@easy-editor/core'\nimport { MaterialGroup } from '@easy-editor/materials-shared'\nimport { COMPONENT_NAME, PACKAGE_NAME } from './constants'\nimport configure from './configure'\nimport snippets from './snippets'\nimport pkg from '../package.json'\n\nexport const meta: ComponentMetadata = {\n componentName: COMPONENT_NAME,\n title: '轮播',\n group: MaterialGroup.DISPLAY,\n devMode: 'proCode',\n npm: {\n package: PACKAGE_NAME,\n version: pkg.version,\n globalName: COMPONENT_NAME,\n componentName: COMPONENT_NAME,\n },\n snippets,\n configure,\n}\n\nexport default meta\n","/**\n * Carousel Snippets\n * 轮播组件代码片段\n */\n\nimport type { Snippet } from '@easy-editor/core'\nimport { COMPONENT_NAME } from './constants'\n\nexport const snippets: Snippet[] = [\n {\n title: '图片轮播',\n screenshot: '',\n schema: {\n componentName: COMPONENT_NAME,\n props: {\n items: [\n { src: 'https://picsum.photos/800/400?random=1', alt: 'Slide 1' },\n { src: 'https://picsum.photos/800/400?random=2', alt: 'Slide 2' },\n { src: 'https://picsum.photos/800/400?random=3', alt: 'Slide 3' },\n ],\n autoPlay: true,\n interval: 3000,\n showNav: true,\n showIndicators: true,\n loop: true,\n },\n $dashboard: {\n rect: {\n width: 600,\n height: 300,\n },\n },\n },\n },\n {\n title: '手动轮播',\n screenshot: '',\n schema: {\n componentName: COMPONENT_NAME,\n props: {\n items: [\n { src: 'https://picsum.photos/800/400?random=4', alt: 'Slide 1' },\n { src: 'https://picsum.photos/800/400?random=5', alt: 'Slide 2' },\n ],\n autoPlay: false,\n showNav: true,\n showIndicators: true,\n loop: true,\n },\n $dashboard: {\n rect: {\n width: 600,\n height: 300,\n },\n },\n },\n },\n]\n\nexport default snippets\n","/**\n * Carousel Configure\n * 轮播组件配置\n */\n\nimport type { Configure } from '@easy-editor/core'\n\nexport const configure: Configure = {\n props: [\n {\n type: 'group',\n title: '属性',\n setter: 'TabSetter',\n items: [\n {\n type: 'group',\n key: 'config',\n title: '配置',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n // 基础配置\n {\n name: 'id',\n title: 'ID',\n setter: 'NodeIdSetter',\n extraProps: {\n // @ts-expect-error label is not a valid extra prop\n label: false,\n },\n },\n {\n name: 'title',\n title: '标题',\n setter: 'StringSetter',\n extraProps: {\n getValue(target) {\n return target.getExtraPropValue('title')\n },\n setValue(target, value) {\n target.setExtraPropValue('title', value)\n },\n },\n },\n {\n type: 'group',\n title: '基础属性',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'rect',\n title: '位置尺寸',\n setter: 'RectSetter',\n extraProps: {\n getValue(target) {\n return target.getExtraPropValue('$dashboard.rect')\n },\n setValue(target, value) {\n target.setExtraPropValue('$dashboard.rect', value)\n },\n },\n },\n ],\n },\n // 组件配置\n {\n type: 'group',\n title: '数据',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'items',\n title: '轮播项',\n setter: 'JsonSetter',\n },\n ],\n },\n {\n type: 'group',\n title: '行为',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'autoPlay',\n title: '自动播放',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n {\n name: 'interval',\n title: '播放间隔(ms)',\n setter: 'NumberSetter',\n extraProps: {\n defaultValue: 3000,\n },\n },\n {\n name: 'loop',\n title: '循环播放',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n ],\n },\n {\n type: 'group',\n title: '显示',\n setter: {\n componentName: 'CollapseSetter',\n props: {\n icon: false,\n },\n },\n items: [\n {\n name: 'showNav',\n title: '显示导航按钮',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n {\n name: 'showIndicators',\n title: '显示指示器',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n },\n },\n ],\n },\n ],\n },\n {\n type: 'group',\n key: 'data',\n title: '数据',\n items: [\n {\n name: 'dataBinding',\n title: '数据绑定',\n setter: 'DataBindingSetter',\n },\n ],\n },\n {\n type: 'group',\n key: 'advanced',\n title: '高级',\n items: [\n {\n name: 'condition',\n title: '显隐控制',\n setter: 'SwitchSetter',\n extraProps: {\n defaultValue: true,\n supportVariable: true,\n },\n },\n ],\n },\n ],\n },\n ],\n component: {},\n supports: {},\n advanced: {},\n}\n\nexport default configure\n"],"names":["COMPONENT_NAME","meta","componentName","title","group","devMode","npm","package","version","globalName","snippets","screenshot","schema","props","items","src","alt","autoPlay","interval","showNav","showIndicators","loop","$dashboard","rect","width","height","configure","type","setter","key","icon","name","extraProps","label","getValue","target","getExtraPropValue","setValue","value","setExtraPropValue","defaultValue","supportVariable","component","supports","advanced"],"mappings":"sQAMO,MCMMA,EAAiB,8BCAvB,MAAMC,EAA0B,CACrCC,cAAeF,EACfG,MAAO,KACPC,MFDS,UEETC,QAAS,UACTC,IAAK,CACHC,QDDwB,4CCExBC,gBACAC,WAAYT,EACZE,cAAeF,GAEjBU,SCfiC,CACjC,CACEP,MAAO,OACPQ,WAAY,GACZC,OAAQ,CACNV,cAAeF,EACfa,MAAO,CACLC,MAAO,CACL,CAAEC,IAAK,yCAA0CC,IAAK,WACtD,CAAED,IAAK,yCAA0CC,IAAK,WACtD,CAAED,IAAK,yCAA0CC,IAAK,YAExDC,UAAU,EACVC,SAAU,IACVC,SAAS,EACTC,gBAAgB,EAChBC,MAAM,GAERC,WAAY,CACVC,KAAM,CACJC,MAAO,IACPC,OAAQ,QAKhB,CACEtB,MAAO,OACPQ,WAAY,GACZC,OAAQ,CACNV,cAAeF,EACfa,MAAO,CACLC,MAAO,CACL,CAAEC,IAAK,yCAA0CC,IAAK,WACtD,CAAED,IAAK,yCAA0CC,IAAK,YAExDC,UAAU,EACVE,SAAS,EACTC,gBAAgB,EAChBC,MAAM,GAERC,WAAY,CACVC,KAAM,CACJC,MAAO,IACPC,OAAQ,SD5BhBC,UEjBkC,CAClCb,MAAO,CACL,CACEc,KAAM,QACNxB,MAAO,KACPyB,OAAQ,YACRd,MAAO,CACL,CACEa,KAAM,QACNE,IAAK,SACL1B,MAAO,KACPyB,OAAQ,CACN1B,cAAe,iBACfW,MAAO,CACLiB,MAAM,IAGVhB,MAAO,CAEL,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AAO,CACL,CACEiB,KAAM,cACN5B,MAAO,OACPyB,OAAQ,uBAId,CACED,KAAM,QACNE,IAAK,WACL1B,MAAO,KACPW,MAAO,CACL,CACEiB,KAAM,YACN5B,MAAO,OACPyB,OAAQ,eACRI,WAAY,CACVQ,cAAc,EACdC,iBAAiB,SAQ/BC,UAAW,CAAA,EACXC,SAAU,CAAA,EACVC,SAAU,CAAA"}
|
package/dist/src/component.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Carousel Component
|
|
3
|
-
* 轮播组件
|
|
4
|
-
*/
|
|
5
|
-
import { type CSSProperties, type Ref } from 'react';
|
|
6
|
-
export interface CarouselItem {
|
|
7
|
-
/** 图片地址 */
|
|
8
|
-
src: string;
|
|
9
|
-
/** 图片描述 */
|
|
10
|
-
alt?: string;
|
|
11
|
-
/** 点击链接 */
|
|
12
|
-
link?: string;
|
|
13
|
-
}
|
|
14
|
-
export interface CarouselProps {
|
|
15
|
-
ref?: Ref<HTMLDivElement>;
|
|
16
|
-
/** 轮播项 */
|
|
17
|
-
items?: CarouselItem[];
|
|
18
|
-
/** 自动播放 */
|
|
19
|
-
autoPlay?: boolean;
|
|
20
|
-
/** 自动播放间隔(毫秒) */
|
|
21
|
-
interval?: number;
|
|
22
|
-
/** 是否显示导航按钮 */
|
|
23
|
-
showNav?: boolean;
|
|
24
|
-
/** 是否显示指示器 */
|
|
25
|
-
showIndicators?: boolean;
|
|
26
|
-
/** 是否循环播放 */
|
|
27
|
-
loop?: boolean;
|
|
28
|
-
/** 外部样式 */
|
|
29
|
-
style?: CSSProperties;
|
|
30
|
-
}
|
|
31
|
-
export declare const Carousel: React.FC<CarouselProps>;
|
|
32
|
-
export default Carousel;
|
package/dist/src/configure.d.ts
DELETED
package/dist/src/constants.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* 物料常量配置
|
|
3
|
-
* 统一管理全局变量名等配置,确保 meta.ts 和 rollup.config.js 使用相同的值
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* UMD 全局变量基础名称
|
|
7
|
-
* 用于构建:
|
|
8
|
-
* - 元数据:${GLOBAL_NAME}Meta (例如: EasyEditorMaterialsButtonMeta)
|
|
9
|
-
* - 组件:${GLOBAL_NAME}Component (例如: EasyEditorMaterialsButtonComponent)
|
|
10
|
-
* - 完整构建:${GLOBAL_NAME} (例如: EasyEditorMaterialsButton)
|
|
11
|
-
*/
|
|
12
|
-
export declare const COMPONENT_NAME = "EasyEditorMaterialsCarousel";
|
|
13
|
-
/**
|
|
14
|
-
* 包名
|
|
15
|
-
*/
|
|
16
|
-
export declare const PACKAGE_NAME = "@easy-editor/materials-dashboard-carousel";
|
package/dist/src/index.d.ts
DELETED
package/dist/src/meta.d.ts
DELETED