@daouypkgs/antd 2.0.157
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/README.md +1 -0
- package/dist/.tsbuildinfo +1 -0
- package/dist/antd.css +29217 -0
- package/dist/antd.esm.js +2557 -0
- package/dist/antd.esm.js.map +1 -0
- package/dist/customControls.d.ts +17 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +2644 -0
- package/dist/index.js.map +1 -0
- package/dist/registerButton.d.ts +7 -0
- package/dist/registerCarousel.d.ts +6 -0
- package/dist/registerCheckbox.d.ts +19 -0
- package/dist/registerCollapse.d.ts +15 -0
- package/dist/registerDropdown.d.ts +13 -0
- package/dist/registerInput.d.ts +26 -0
- package/dist/registerMenu.d.ts +20 -0
- package/dist/registerOption.d.ts +10 -0
- package/dist/registerRate.d.ts +6 -0
- package/dist/registerSelect.d.ts +16 -0
- package/dist/registerSlider.d.ts +19 -0
- package/dist/registerSwitch.d.ts +7 -0
- package/dist/registerTable.d.ts +30 -0
- package/dist/registerTabs.d.ts +14 -0
- package/dist/registerable.d.ts +4 -0
- package/package.json +83 -0
- package/skinny/customControls-82aa5d0c.esm.js +20 -0
- package/skinny/customControls-82aa5d0c.esm.js.map +1 -0
- package/skinny/customControls-fb0b7e5f.cjs.js +22 -0
- package/skinny/customControls-fb0b7e5f.cjs.js.map +1 -0
- package/skinny/customControls.d.ts +17 -0
- package/skinny/package.json +1 -0
- package/skinny/registerButton.cjs.js +90 -0
- package/skinny/registerButton.cjs.js.map +1 -0
- package/skinny/registerButton.d.ts +7 -0
- package/skinny/registerButton.esm.js +82 -0
- package/skinny/registerButton.esm.js.map +1 -0
- package/skinny/registerCarousel.cjs.js +76 -0
- package/skinny/registerCarousel.cjs.js.map +1 -0
- package/skinny/registerCarousel.d.ts +6 -0
- package/skinny/registerCarousel.esm.js +68 -0
- package/skinny/registerCarousel.esm.js.map +1 -0
- package/skinny/registerCheckbox.cjs.js +190 -0
- package/skinny/registerCheckbox.cjs.js.map +1 -0
- package/skinny/registerCheckbox.d.ts +19 -0
- package/skinny/registerCheckbox.esm.js +177 -0
- package/skinny/registerCheckbox.esm.js.map +1 -0
- package/skinny/registerCollapse.cjs.js +214 -0
- package/skinny/registerCollapse.cjs.js.map +1 -0
- package/skinny/registerCollapse.d.ts +15 -0
- package/skinny/registerCollapse.esm.js +202 -0
- package/skinny/registerCollapse.esm.js.map +1 -0
- package/skinny/registerDropdown.cjs.js +191 -0
- package/skinny/registerDropdown.cjs.js.map +1 -0
- package/skinny/registerDropdown.d.ts +13 -0
- package/skinny/registerDropdown.esm.js +179 -0
- package/skinny/registerDropdown.esm.js.map +1 -0
- package/skinny/registerInput.cjs.js +468 -0
- package/skinny/registerInput.cjs.js.map +1 -0
- package/skinny/registerInput.d.ts +26 -0
- package/skinny/registerInput.esm.js +447 -0
- package/skinny/registerInput.esm.js.map +1 -0
- package/skinny/registerMenu.cjs.js +319 -0
- package/skinny/registerMenu.cjs.js.map +1 -0
- package/skinny/registerMenu.d.ts +20 -0
- package/skinny/registerMenu.esm.js +299 -0
- package/skinny/registerMenu.esm.js.map +1 -0
- package/skinny/registerOption.cjs.js +89 -0
- package/skinny/registerOption.cjs.js.map +1 -0
- package/skinny/registerOption.d.ts +10 -0
- package/skinny/registerOption.esm.js +78 -0
- package/skinny/registerOption.esm.js.map +1 -0
- package/skinny/registerRate.cjs.js +82 -0
- package/skinny/registerRate.cjs.js.map +1 -0
- package/skinny/registerRate.d.ts +6 -0
- package/skinny/registerRate.esm.js +74 -0
- package/skinny/registerRate.esm.js.map +1 -0
- package/skinny/registerSelect.cjs.js +173 -0
- package/skinny/registerSelect.cjs.js.map +1 -0
- package/skinny/registerSelect.d.ts +16 -0
- package/skinny/registerSelect.esm.js +165 -0
- package/skinny/registerSelect.esm.js.map +1 -0
- package/skinny/registerSlider.cjs.js +162 -0
- package/skinny/registerSlider.cjs.js.map +1 -0
- package/skinny/registerSlider.d.ts +19 -0
- package/skinny/registerSlider.esm.js +153 -0
- package/skinny/registerSlider.esm.js.map +1 -0
- package/skinny/registerSwitch.cjs.js +84 -0
- package/skinny/registerSwitch.cjs.js.map +1 -0
- package/skinny/registerSwitch.d.ts +7 -0
- package/skinny/registerSwitch.esm.js +76 -0
- package/skinny/registerSwitch.esm.js.map +1 -0
- package/skinny/registerTable.cjs.js +217 -0
- package/skinny/registerTable.cjs.js.map +1 -0
- package/skinny/registerTable.d.ts +30 -0
- package/skinny/registerTable.esm.js +203 -0
- package/skinny/registerTable.esm.js.map +1 -0
- package/skinny/registerTabs.cjs.js +390 -0
- package/skinny/registerTabs.cjs.js.map +1 -0
- package/skinny/registerTabs.d.ts +14 -0
- package/skinny/registerTabs.esm.js +378 -0
- package/skinny/registerTabs.esm.js.map +1 -0
- package/skinny/registerable.cjs.js +3 -0
- package/skinny/registerable.cjs.js.map +1 -0
- package/skinny/registerable.d.ts +4 -0
- package/skinny/registerable.esm.js +2 -0
- package/skinny/registerable.esm.js.map +1 -0
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentMeta } from "@daouy/host/registerComponent";
|
|
2
|
+
import type { CollapsePanelProps, CollapseProps as AntdCollapseProps } from "antd/es/collapse";
|
|
3
|
+
import React from "react";
|
|
4
|
+
import { Registerable } from "./registerable";
|
|
5
|
+
export declare const CollapsePanel: React.FC<import("antd").CollapsePanelProps>;
|
|
6
|
+
export declare const collapstePanelMeta: ComponentMeta<CollapsePanelProps>;
|
|
7
|
+
export declare function registerCollapsePanel(loader?: Registerable, customCollapsePanelMeta?: ComponentMeta<CollapsePanelProps>): void;
|
|
8
|
+
type CollapseProps = {
|
|
9
|
+
openIcon?: React.ReactNode;
|
|
10
|
+
closeIcon?: React.ReactNode;
|
|
11
|
+
} & AntdCollapseProps;
|
|
12
|
+
export declare const collapsteMeta: ComponentMeta<CollapseProps>;
|
|
13
|
+
export declare function Collapse(props: CollapseProps): React.JSX.Element;
|
|
14
|
+
export declare function registerCollapse(loader?: Registerable, customCollapseMeta?: ComponentMeta<CollapseProps>): void;
|
|
15
|
+
export {};
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import registerComponent from '@daouy/host/registerComponent';
|
|
2
|
+
import { Collapse as Collapse$1 } from 'antd';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import { t as traverseReactEltTree } from './customControls-82aa5d0c.esm.js';
|
|
5
|
+
|
|
6
|
+
var __defProp = Object.defineProperty;
|
|
7
|
+
var __defProps = Object.defineProperties;
|
|
8
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
9
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
10
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
11
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
12
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
13
|
+
var __spreadValues = (a, b) => {
|
|
14
|
+
for (var prop in b || (b = {}))
|
|
15
|
+
if (__hasOwnProp.call(b, prop))
|
|
16
|
+
__defNormalProp(a, prop, b[prop]);
|
|
17
|
+
if (__getOwnPropSymbols)
|
|
18
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
19
|
+
if (__propIsEnum.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
}
|
|
22
|
+
return a;
|
|
23
|
+
};
|
|
24
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
25
|
+
var __objRest = (source, exclude) => {
|
|
26
|
+
var target = {};
|
|
27
|
+
for (var prop in source)
|
|
28
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
29
|
+
target[prop] = source[prop];
|
|
30
|
+
if (source != null && __getOwnPropSymbols)
|
|
31
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
32
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
33
|
+
target[prop] = source[prop];
|
|
34
|
+
}
|
|
35
|
+
return target;
|
|
36
|
+
};
|
|
37
|
+
const CollapsePanel = Collapse$1.Panel;
|
|
38
|
+
const collapstePanelMeta = {
|
|
39
|
+
name: "AntdCollapsePanel",
|
|
40
|
+
displayName: "Antd Collapse Panel",
|
|
41
|
+
props: {
|
|
42
|
+
collapsible: {
|
|
43
|
+
type: "choice",
|
|
44
|
+
options: ["header", "disabled"],
|
|
45
|
+
description: "Specify whether the panel be collapsible or the trigger area of collapsible"
|
|
46
|
+
},
|
|
47
|
+
forceRender: {
|
|
48
|
+
type: "boolean",
|
|
49
|
+
description: "Forced render of content on panel, instead of lazy rending after clicking on header",
|
|
50
|
+
defaultValueHint: false
|
|
51
|
+
},
|
|
52
|
+
header: {
|
|
53
|
+
type: "slot",
|
|
54
|
+
defaultValue: [
|
|
55
|
+
{
|
|
56
|
+
type: "text",
|
|
57
|
+
value: "Header"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
key: {
|
|
62
|
+
type: "string",
|
|
63
|
+
description: "Unique key identifying the panel from among its siblings"
|
|
64
|
+
},
|
|
65
|
+
showArrow: {
|
|
66
|
+
type: "boolean",
|
|
67
|
+
description: "If false, panel will not show arrow icon",
|
|
68
|
+
defaultValueHint: true
|
|
69
|
+
},
|
|
70
|
+
extra: {
|
|
71
|
+
type: "slot",
|
|
72
|
+
hidePlaceholder: true
|
|
73
|
+
},
|
|
74
|
+
children: {
|
|
75
|
+
type: "slot",
|
|
76
|
+
defaultValue: [
|
|
77
|
+
{
|
|
78
|
+
type: "text",
|
|
79
|
+
value: "Insert text here"
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
importPath: "@daouypkgs/antd/skinny/registerCollapse",
|
|
85
|
+
importName: "CollapsePanel",
|
|
86
|
+
parentComponentName: "AntdCollapse"
|
|
87
|
+
};
|
|
88
|
+
function registerCollapsePanel(loader, customCollapsePanelMeta) {
|
|
89
|
+
const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
|
|
90
|
+
doRegisterComponent(
|
|
91
|
+
CollapsePanel,
|
|
92
|
+
customCollapsePanelMeta != null ? customCollapsePanelMeta : collapstePanelMeta
|
|
93
|
+
);
|
|
94
|
+
}
|
|
95
|
+
function getOptions(componentProps) {
|
|
96
|
+
const options = /* @__PURE__ */ new Set();
|
|
97
|
+
traverseReactEltTree(componentProps.children, (elt) => {
|
|
98
|
+
if ((elt == null ? void 0 : elt.type) === CollapsePanel && typeof (elt == null ? void 0 : elt.key) === "string") {
|
|
99
|
+
options.add(elt.key);
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
return Array.from(options.keys());
|
|
103
|
+
}
|
|
104
|
+
const collapsteMeta = {
|
|
105
|
+
name: "AntdCollapse",
|
|
106
|
+
displayName: "Antd Collapse",
|
|
107
|
+
props: {
|
|
108
|
+
accordion: {
|
|
109
|
+
type: "boolean",
|
|
110
|
+
description: "If true, Collapse renders as Accordion",
|
|
111
|
+
defaultValueHint: false
|
|
112
|
+
},
|
|
113
|
+
activeKey: {
|
|
114
|
+
type: "choice",
|
|
115
|
+
editOnly: true,
|
|
116
|
+
description: "Key of the active panel",
|
|
117
|
+
multiSelect: true,
|
|
118
|
+
options: getOptions
|
|
119
|
+
},
|
|
120
|
+
onChange: {
|
|
121
|
+
type: "eventHandler",
|
|
122
|
+
argTypes: [
|
|
123
|
+
{
|
|
124
|
+
name: "value",
|
|
125
|
+
type: {
|
|
126
|
+
type: "choice",
|
|
127
|
+
multiSelect: true,
|
|
128
|
+
options: getOptions
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
]
|
|
132
|
+
},
|
|
133
|
+
bordered: {
|
|
134
|
+
type: "boolean",
|
|
135
|
+
description: "Toggles rendering of the border around the collapse block",
|
|
136
|
+
defaultValueHint: true
|
|
137
|
+
},
|
|
138
|
+
collapsible: {
|
|
139
|
+
type: "choice",
|
|
140
|
+
options: ["header", "disabled"],
|
|
141
|
+
description: "Specify whether the panels of children be collapsible or the trigger area of collapsible"
|
|
142
|
+
},
|
|
143
|
+
expandIconPosition: {
|
|
144
|
+
type: "choice",
|
|
145
|
+
options: ["left", "right"],
|
|
146
|
+
description: "Set expand icon position",
|
|
147
|
+
defaultValueHint: "left"
|
|
148
|
+
},
|
|
149
|
+
ghost: {
|
|
150
|
+
type: "boolean",
|
|
151
|
+
description: "Make the collapse borderless and its background transparent",
|
|
152
|
+
defaultValueHint: false
|
|
153
|
+
},
|
|
154
|
+
children: {
|
|
155
|
+
type: "slot",
|
|
156
|
+
allowedComponents: ["AntdCollapsePanel"],
|
|
157
|
+
defaultValue: [
|
|
158
|
+
{
|
|
159
|
+
type: "component",
|
|
160
|
+
name: "AntdCollapsePanel",
|
|
161
|
+
props: {
|
|
162
|
+
key: "1"
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
openIcon: {
|
|
168
|
+
type: "slot",
|
|
169
|
+
hidePlaceholder: true
|
|
170
|
+
},
|
|
171
|
+
closeIcon: {
|
|
172
|
+
type: "slot",
|
|
173
|
+
hidePlaceholder: true
|
|
174
|
+
}
|
|
175
|
+
},
|
|
176
|
+
states: {
|
|
177
|
+
activeKey: {
|
|
178
|
+
type: "writable",
|
|
179
|
+
variableType: "array",
|
|
180
|
+
valueProp: "activeKey",
|
|
181
|
+
onChangeProp: "onChange"
|
|
182
|
+
}
|
|
183
|
+
},
|
|
184
|
+
importPath: "@daouypkgs/antd/skinny/registerCollapse",
|
|
185
|
+
importName: "Collapse"
|
|
186
|
+
};
|
|
187
|
+
function Collapse(props) {
|
|
188
|
+
const _a = props, { openIcon, closeIcon } = _a, rest = __objRest(_a, ["openIcon", "closeIcon"]);
|
|
189
|
+
return /* @__PURE__ */ React.createElement(
|
|
190
|
+
Collapse$1,
|
|
191
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
192
|
+
expandIcon: openIcon || closeIcon ? ({ isActive }) => isActive ? openIcon : closeIcon : void 0
|
|
193
|
+
})
|
|
194
|
+
);
|
|
195
|
+
}
|
|
196
|
+
function registerCollapse(loader, customCollapseMeta) {
|
|
197
|
+
const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
|
|
198
|
+
doRegisterComponent(Collapse, customCollapseMeta != null ? customCollapseMeta : collapsteMeta);
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export { Collapse, CollapsePanel, collapsteMeta, collapstePanelMeta, registerCollapse, registerCollapsePanel };
|
|
202
|
+
//# sourceMappingURL=registerCollapse.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerCollapse.esm.js","sources":["../src/registerCollapse.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@daouy/host/registerComponent\";\nimport type {\n CollapsePanelProps,\n CollapseProps as AntdCollapseProps,\n} from \"antd/es/collapse\";\nimport { Collapse as AntdCollapse } from \"antd\";\nimport React from \"react\";\nimport { traverseReactEltTree } from \"./customControls\";\nimport { Registerable } from \"./registerable\";\nexport const CollapsePanel = AntdCollapse.Panel;\n\nexport const collapstePanelMeta: ComponentMeta<CollapsePanelProps> = {\n name: \"AntdCollapsePanel\",\n displayName: \"Antd Collapse Panel\",\n props: {\n collapsible: {\n type: \"choice\",\n options: [\"header\", \"disabled\"],\n description:\n \"Specify whether the panel be collapsible or the trigger area of collapsible\",\n },\n forceRender: {\n type: \"boolean\",\n description:\n \"Forced render of content on panel, instead of lazy rending after clicking on header\",\n defaultValueHint: false,\n },\n header: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"text\",\n value: \"Header\",\n },\n ],\n },\n key: {\n type: \"string\",\n description: \"Unique key identifying the panel from among its siblings\",\n },\n showArrow: {\n type: \"boolean\",\n description: \"If false, panel will not show arrow icon\",\n defaultValueHint: true,\n },\n extra: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"text\",\n value: \"Insert text here\",\n },\n ],\n },\n },\n importPath: \"@daouypkgs/antd/skinny/registerCollapse\",\n importName: \"CollapsePanel\",\n parentComponentName: \"AntdCollapse\",\n};\n\nexport function registerCollapsePanel(\n loader?: Registerable,\n customCollapsePanelMeta?: ComponentMeta<CollapsePanelProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(\n CollapsePanel,\n customCollapsePanelMeta ?? collapstePanelMeta\n );\n}\n\ntype CollapseProps = {\n openIcon?: React.ReactNode;\n closeIcon?: React.ReactNode;\n} & AntdCollapseProps;\n\nfunction getOptions(componentProps: CollapseProps) {\n const options = new Set<string>();\n // `children` is not defined in the Collapse props\n traverseReactEltTree((componentProps as any).children, (elt) => {\n if (elt?.type === CollapsePanel && typeof elt?.key === \"string\") {\n options.add(elt.key);\n }\n });\n return Array.from(options.keys());\n}\n\nexport const collapsteMeta: ComponentMeta<CollapseProps> = {\n name: \"AntdCollapse\",\n displayName: \"Antd Collapse\",\n props: {\n accordion: {\n type: \"boolean\",\n description: \"If true, Collapse renders as Accordion\",\n defaultValueHint: false,\n },\n activeKey: {\n type: \"choice\",\n editOnly: true,\n description: \"Key of the active panel\",\n multiSelect: true,\n options: getOptions,\n },\n onChange: {\n type: \"eventHandler\",\n argTypes: [\n {\n name: \"value\",\n type: {\n type: \"choice\",\n multiSelect: true,\n options: getOptions,\n },\n },\n ],\n },\n bordered: {\n type: \"boolean\",\n description: \"Toggles rendering of the border around the collapse block\",\n defaultValueHint: true,\n },\n collapsible: {\n type: \"choice\",\n options: [\"header\", \"disabled\"],\n description:\n \"Specify whether the panels of children be collapsible or the trigger area of collapsible\",\n },\n expandIconPosition: {\n type: \"choice\",\n options: [\"left\", \"right\"],\n description: \"Set expand icon position\",\n defaultValueHint: \"left\",\n },\n ghost: {\n type: \"boolean\",\n description:\n \"Make the collapse borderless and its background transparent\",\n defaultValueHint: false,\n },\n children: {\n type: \"slot\",\n allowedComponents: [\"AntdCollapsePanel\"],\n defaultValue: [\n {\n type: \"component\",\n name: \"AntdCollapsePanel\",\n props: {\n key: \"1\",\n },\n },\n ],\n },\n openIcon: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n closeIcon: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n },\n states: {\n activeKey: {\n type: \"writable\",\n variableType: \"array\",\n valueProp: \"activeKey\",\n onChangeProp: \"onChange\",\n },\n },\n importPath: \"@daouypkgs/antd/skinny/registerCollapse\",\n importName: \"Collapse\",\n};\n\nexport function Collapse(props: CollapseProps) {\n const { openIcon, closeIcon, ...rest } = props;\n return (\n <AntdCollapse\n {...rest}\n expandIcon={\n openIcon || closeIcon\n ? ({ isActive }) => (isActive ? openIcon : closeIcon)\n : undefined\n }\n />\n );\n}\n\nexport function registerCollapse(\n loader?: Registerable,\n customCollapseMeta?: ComponentMeta<CollapseProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(Collapse, customCollapseMeta ?? collapsteMeta);\n}\n"],"names":["AntdCollapse"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWO,MAAM,gBAAgBA,UAAa,CAAA,MAAA;AAEnC,MAAM,kBAAwD,GAAA;AAAA,EACnE,IAAM,EAAA,mBAAA;AAAA,EACN,WAAa,EAAA,qBAAA;AAAA,EACb,KAAO,EAAA;AAAA,IACL,WAAa,EAAA;AAAA,MACX,IAAM,EAAA,QAAA;AAAA,MACN,OAAA,EAAS,CAAC,QAAA,EAAU,UAAU,CAAA;AAAA,MAC9B,WACE,EAAA,6EAAA;AAAA,KACJ;AAAA,IACA,WAAa,EAAA;AAAA,MACX,IAAM,EAAA,SAAA;AAAA,MACN,WACE,EAAA,qFAAA;AAAA,MACF,gBAAkB,EAAA,KAAA;AAAA,KACpB;AAAA,IACA,MAAQ,EA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AAA,EAAA,EAAT,CAAxB,UAAU,EAAA,WAAA,CAAA,CAAA,CAAA;AAClB,EACE,uBAAA,KAAA,CAAA,aAAA;AAAA,IAACA,UAAA;AAAA,IAAA,aAAA,CAAA,cAAA,CAAA,EAAA,EACK,IADL,CAAA,EAAA;AAAA,MAEC,UAAA,EACE,YAAY,SACR,GAAA,CAAC,EAAE,QAAS,EAAA,KAAO,QAAW,GAAA,QAAA,GAAW,SACzC,GAAA,KAAA,CAAA;AAAA,KAAA,CAAA;AAAA,GAER,CAAA;AAEJ,CAAA;AAEgB,SAAA,gBAAA,CACd,QACA,kBACA,EAAA;AACA,EAAM,MAAA,mBAAA,GAAgD,CAAI,GAAA,IAAA,KACxD,MAAS,GAAA,MAAA,CAAO,iBAAkB,CAAA,GAAG,IAAI,CAAA,GAAI,iBAAkB,CAAA,GAAG,IAAI,CAAA,CAAA;AACxE,EAAoB,mBAAA,CAAA,QAAA,EAAU,kDAAsB,aAAa,CAAA,CAAA;AACnE;;;;"}
|
|
@@ -0,0 +1,191 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var registerComponent = require('@daouy/host/registerComponent');
|
|
4
|
+
var antd = require('antd');
|
|
5
|
+
var React = require('react');
|
|
6
|
+
|
|
7
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
8
|
+
|
|
9
|
+
var registerComponent__default = /*#__PURE__*/_interopDefault(registerComponent);
|
|
10
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
11
|
+
|
|
12
|
+
var __defProp = Object.defineProperty;
|
|
13
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
14
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
15
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
16
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
17
|
+
var __spreadValues = (a, b) => {
|
|
18
|
+
for (var prop in b || (b = {}))
|
|
19
|
+
if (__hasOwnProp.call(b, prop))
|
|
20
|
+
__defNormalProp(a, prop, b[prop]);
|
|
21
|
+
if (__getOwnPropSymbols)
|
|
22
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
23
|
+
if (__propIsEnum.call(b, prop))
|
|
24
|
+
__defNormalProp(a, prop, b[prop]);
|
|
25
|
+
}
|
|
26
|
+
return a;
|
|
27
|
+
};
|
|
28
|
+
const DropdownButton = antd.Dropdown.Button;
|
|
29
|
+
class Dropdown extends React__default.default.Component {
|
|
30
|
+
render() {
|
|
31
|
+
const thisProps = this.props;
|
|
32
|
+
const finalProps = __spreadValues({}, thisProps);
|
|
33
|
+
finalProps.children = typeof thisProps.children === "string" ? /* @__PURE__ */ React__default.default.createElement("div", null, thisProps.children) : thisProps.children;
|
|
34
|
+
return /* @__PURE__ */ React__default.default.createElement(antd.Dropdown, __spreadValues({}, finalProps));
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
const dropdownMeta = {
|
|
38
|
+
name: "AntdDropdown",
|
|
39
|
+
displayName: "Antd Dropdown",
|
|
40
|
+
props: {
|
|
41
|
+
arrow: {
|
|
42
|
+
type: "boolean",
|
|
43
|
+
description: "Whether the dropdown arrow should be visible",
|
|
44
|
+
defaultValueHint: false
|
|
45
|
+
},
|
|
46
|
+
disabled: {
|
|
47
|
+
type: "boolean",
|
|
48
|
+
description: "Whether the dropdown menu is disabled",
|
|
49
|
+
defaultValueHint: false
|
|
50
|
+
},
|
|
51
|
+
overlay: {
|
|
52
|
+
type: "slot",
|
|
53
|
+
allowedComponents: ["AntdMenu"],
|
|
54
|
+
defaultValue: [
|
|
55
|
+
{
|
|
56
|
+
type: "component",
|
|
57
|
+
name: "AntdMenu"
|
|
58
|
+
}
|
|
59
|
+
]
|
|
60
|
+
},
|
|
61
|
+
placement: {
|
|
62
|
+
type: "choice",
|
|
63
|
+
options: [
|
|
64
|
+
"bottomLeft",
|
|
65
|
+
"bottomCenter",
|
|
66
|
+
"bottomRight",
|
|
67
|
+
"topLeft",
|
|
68
|
+
"topCenter",
|
|
69
|
+
"topRight"
|
|
70
|
+
],
|
|
71
|
+
description: "Placement of popup menu",
|
|
72
|
+
defaultValueHint: "bottomLeft"
|
|
73
|
+
},
|
|
74
|
+
trigger: {
|
|
75
|
+
type: "choice",
|
|
76
|
+
options: ["click", "hover", "contextMenu"],
|
|
77
|
+
description: "The trigger mode which executes the dropdown action",
|
|
78
|
+
defaultValueHint: "hover"
|
|
79
|
+
},
|
|
80
|
+
visible: {
|
|
81
|
+
type: "boolean",
|
|
82
|
+
description: "Toggle visibility of dropdown menu in Daouy Editor",
|
|
83
|
+
editOnly: true,
|
|
84
|
+
defaultValueHint: false
|
|
85
|
+
},
|
|
86
|
+
children: {
|
|
87
|
+
type: "slot",
|
|
88
|
+
defaultValue: [
|
|
89
|
+
{
|
|
90
|
+
type: "text",
|
|
91
|
+
value: "Dropdown"
|
|
92
|
+
}
|
|
93
|
+
]
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
importPath: "@daouypkgs/antd/skinny/registerDropdown",
|
|
97
|
+
importName: "Dropdown"
|
|
98
|
+
};
|
|
99
|
+
function registerDropdown(loader, customDropdownMeta) {
|
|
100
|
+
const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
|
|
101
|
+
doRegisterComponent(Dropdown, customDropdownMeta != null ? customDropdownMeta : dropdownMeta);
|
|
102
|
+
}
|
|
103
|
+
const dropdownButtonMeta = {
|
|
104
|
+
name: "AntdDropdownButton",
|
|
105
|
+
displayName: "Antd Dropdown Button",
|
|
106
|
+
props: {
|
|
107
|
+
disabled: {
|
|
108
|
+
type: "boolean",
|
|
109
|
+
description: "Whether the dropdown menu is disabled",
|
|
110
|
+
defaultValueHint: false
|
|
111
|
+
},
|
|
112
|
+
icon: {
|
|
113
|
+
type: "slot",
|
|
114
|
+
hidePlaceholder: true
|
|
115
|
+
},
|
|
116
|
+
overlay: {
|
|
117
|
+
type: "slot",
|
|
118
|
+
allowedComponents: ["AntdMenu"],
|
|
119
|
+
defaultValue: [
|
|
120
|
+
{
|
|
121
|
+
type: "component",
|
|
122
|
+
name: "AntdMenu"
|
|
123
|
+
}
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
placement: {
|
|
127
|
+
type: "choice",
|
|
128
|
+
options: [
|
|
129
|
+
"bottomLeft",
|
|
130
|
+
"bottomCenter",
|
|
131
|
+
"bottomRight",
|
|
132
|
+
"topLeft",
|
|
133
|
+
"topCenter",
|
|
134
|
+
"topRight"
|
|
135
|
+
],
|
|
136
|
+
description: "Placement of popup menu",
|
|
137
|
+
defaultValueHint: "bottomLeft"
|
|
138
|
+
},
|
|
139
|
+
size: {
|
|
140
|
+
type: "choice",
|
|
141
|
+
options: ["small", "medium", "large"],
|
|
142
|
+
description: "Set the size of button",
|
|
143
|
+
defaultValueHint: "medium"
|
|
144
|
+
},
|
|
145
|
+
trigger: {
|
|
146
|
+
type: "choice",
|
|
147
|
+
options: ["click", "hover", "contextMenu"],
|
|
148
|
+
description: "The trigger mode which executes the dropdown action",
|
|
149
|
+
defaultValueHint: "hover"
|
|
150
|
+
},
|
|
151
|
+
type: {
|
|
152
|
+
type: "choice",
|
|
153
|
+
options: ["default", "primary", "ghost", "dashed", "link", "text"],
|
|
154
|
+
description: "Can be set to primary, ghost, dashed, link, text, default",
|
|
155
|
+
defaultValueHint: "default"
|
|
156
|
+
},
|
|
157
|
+
visible: {
|
|
158
|
+
type: "boolean",
|
|
159
|
+
description: "Toggle visibility of dropdown menu in Daouy Editor",
|
|
160
|
+
editOnly: true,
|
|
161
|
+
defaultValueHint: false
|
|
162
|
+
},
|
|
163
|
+
children: {
|
|
164
|
+
type: "slot",
|
|
165
|
+
defaultValue: [
|
|
166
|
+
{
|
|
167
|
+
type: "text",
|
|
168
|
+
value: "Dropdown"
|
|
169
|
+
}
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
importPath: "@daouypkgs/antd/skinny/registerDropdown",
|
|
174
|
+
importName: "DropdownButton",
|
|
175
|
+
parentComponentName: "AntdDropdown"
|
|
176
|
+
};
|
|
177
|
+
function registerDropdownButton(loader, customDropdownButtonMeta) {
|
|
178
|
+
const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
|
|
179
|
+
doRegisterComponent(
|
|
180
|
+
DropdownButton,
|
|
181
|
+
customDropdownButtonMeta != null ? customDropdownButtonMeta : dropdownButtonMeta
|
|
182
|
+
);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
exports.Dropdown = Dropdown;
|
|
186
|
+
exports.DropdownButton = DropdownButton;
|
|
187
|
+
exports.dropdownButtonMeta = dropdownButtonMeta;
|
|
188
|
+
exports.dropdownMeta = dropdownMeta;
|
|
189
|
+
exports.registerDropdown = registerDropdown;
|
|
190
|
+
exports.registerDropdownButton = registerDropdownButton;
|
|
191
|
+
//# sourceMappingURL=registerDropdown.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerDropdown.cjs.js","sources":["../src/registerDropdown.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@daouy/host/registerComponent\";\nimport { Dropdown as AntdDropdown } from \"antd\";\nimport type { DropdownButtonProps, DropDownProps } from \"antd/es/dropdown\";\n\nimport React from \"react\";\nimport { Registerable } from \"./registerable\";\n\nexport const DropdownButton: typeof AntdDropdown.Button = AntdDropdown.Button;\n\nexport class Dropdown extends React.Component<DropDownProps> {\n render() {\n const thisProps = this.props as any;\n const finalProps = { ...thisProps };\n finalProps.children =\n typeof thisProps.children === \"string\" ? (\n <div>{thisProps.children}</div>\n ) : (\n thisProps.children\n );\n return <AntdDropdown {...finalProps}>{}</AntdDropdown>;\n }\n}\n\nexport const dropdownMeta: ComponentMeta<DropDownProps> = {\n name: \"AntdDropdown\",\n displayName: \"Antd Dropdown\",\n props: {\n arrow: {\n type: \"boolean\",\n description: \"Whether the dropdown arrow should be visible\",\n defaultValueHint: false,\n },\n disabled: {\n type: \"boolean\",\n description: \"Whether the dropdown menu is disabled\",\n defaultValueHint: false,\n },\n overlay: {\n type: \"slot\",\n allowedComponents: [\"AntdMenu\"],\n defaultValue: [\n {\n type: \"component\",\n name: \"AntdMenu\",\n },\n ],\n },\n placement: {\n type: \"choice\",\n options: [\n \"bottomLeft\",\n \"bottomCenter\",\n \"bottomRight\",\n \"topLeft\",\n \"topCenter\",\n \"topRight\",\n ],\n description: \"Placement of popup menu\",\n defaultValueHint: \"bottomLeft\",\n },\n trigger: {\n type: \"choice\",\n options: [\"click\", \"hover\", \"contextMenu\"],\n description: \"The trigger mode which executes the dropdown action\",\n defaultValueHint: \"hover\",\n },\n visible: {\n type: \"boolean\",\n description: \"Toggle visibility of dropdown menu in Daouy Editor\",\n editOnly: true,\n defaultValueHint: false,\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"text\",\n value: \"Dropdown\",\n },\n ],\n },\n },\n importPath: \"@daouypkgs/antd/skinny/registerDropdown\",\n importName: \"Dropdown\",\n};\n\nexport function registerDropdown(\n loader?: Registerable,\n customDropdownMeta?: ComponentMeta<DropDownProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(Dropdown, customDropdownMeta ?? dropdownMeta);\n}\n\nexport const dropdownButtonMeta: ComponentMeta<DropdownButtonProps> = {\n name: \"AntdDropdownButton\",\n displayName: \"Antd Dropdown Button\",\n props: {\n disabled: {\n type: \"boolean\",\n description: \"Whether the dropdown menu is disabled\",\n defaultValueHint: false,\n },\n icon: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n overlay: {\n type: \"slot\",\n allowedComponents: [\"AntdMenu\"],\n defaultValue: [\n {\n type: \"component\",\n name: \"AntdMenu\",\n },\n ],\n },\n placement: {\n type: \"choice\",\n options: [\n \"bottomLeft\",\n \"bottomCenter\",\n \"bottomRight\",\n \"topLeft\",\n \"topCenter\",\n \"topRight\",\n ],\n description: \"Placement of popup menu\",\n defaultValueHint: \"bottomLeft\",\n },\n size: {\n type: \"choice\",\n options: [\"small\", \"medium\", \"large\"],\n description: \"Set the size of button\",\n defaultValueHint: \"medium\",\n },\n trigger: {\n type: \"choice\",\n options: [\"click\", \"hover\", \"contextMenu\"],\n description: \"The trigger mode which executes the dropdown action\",\n defaultValueHint: \"hover\",\n },\n type: {\n type: \"choice\",\n options: [\"default\", \"primary\", \"ghost\", \"dashed\", \"link\", \"text\"],\n description: \"Can be set to primary, ghost, dashed, link, text, default\",\n defaultValueHint: \"default\",\n },\n visible: {\n type: \"boolean\",\n description: \"Toggle visibility of dropdown menu in Daouy Editor\",\n editOnly: true,\n defaultValueHint: false,\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"text\",\n value: \"Dropdown\",\n },\n ],\n },\n },\n importPath: \"@daouypkgs/antd/skinny/registerDropdown\",\n importName: \"DropdownButton\",\n parentComponentName: \"AntdDropdown\",\n};\n\nexport function registerDropdownButton(\n loader?: Registerable,\n customDropdownButtonMeta?: ComponentMeta<DropDownProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(\n DropdownButton,\n customDropdownButtonMeta ?? dropdownButtonMeta\n );\n}\n"],"names":["AntdDropdown","React","registerComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AASO,MAAM,iBAA6CA,aAAa,CAAA,OAAA;AAE1D,MAAA,QAAA,SAAiBC,uBAAM,SAAyB,CAAA;AAAA,EAC3D,MAAS,GAAA;AACP,IAAA,MAAM,YAAY,IAAK,CAAA,KAAA,CAAA;AACvB,IAAA,MAAM,aAAa,cAAK,CAAA,EAAA,EAAA,SAAA,CAAA,CAAA;AACxB,IAAW,UAAA,CAAA,QAAA,GACT,OAAO,SAAA,CAAU,QAAa,KAAA,QAAA,wDA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,UAAY,EAAA,gBAAA;AAAA,EACZ,mBAAqB,EAAA,cAAA;AACvB,EAAA;AAEgB,SAAA,sBAAA,CACd,QACA,wBACA,EAAA;AACA,EAAM,MAAA,mBAAA,GAAgD,CAAI,GAAA,IAAA,KACxD,MAAS,GAAA,MAAA,CAAO,iBAAkB,CAAA,GAAG,IAAI,CAAA,GAAIA,kCAAkB,CAAA,GAAG,IAAI,CAAA,CAAA;AACxE,EAAA,mBAAA;AAAA,IACE,cAAA;AAAA,IACA,wBAA4B,IAAA,IAAA,GAAA,wBAAA,GAAA,kBAAA;AAAA,GAC9B,CAAA;AACF;;;;;;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ComponentMeta } from "@daouy/host/registerComponent";
|
|
2
|
+
import { Dropdown as AntdDropdown } from "antd";
|
|
3
|
+
import type { DropdownButtonProps, DropDownProps } from "antd/es/dropdown";
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { Registerable } from "./registerable";
|
|
6
|
+
export declare const DropdownButton: typeof AntdDropdown.Button;
|
|
7
|
+
export declare class Dropdown extends React.Component<DropDownProps> {
|
|
8
|
+
render(): React.JSX.Element;
|
|
9
|
+
}
|
|
10
|
+
export declare const dropdownMeta: ComponentMeta<DropDownProps>;
|
|
11
|
+
export declare function registerDropdown(loader?: Registerable, customDropdownMeta?: ComponentMeta<DropDownProps>): void;
|
|
12
|
+
export declare const dropdownButtonMeta: ComponentMeta<DropdownButtonProps>;
|
|
13
|
+
export declare function registerDropdownButton(loader?: Registerable, customDropdownButtonMeta?: ComponentMeta<DropDownProps>): void;
|
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
import registerComponent from '@daouy/host/registerComponent';
|
|
2
|
+
import { Dropdown as Dropdown$1 } from 'antd';
|
|
3
|
+
import React from 'react';
|
|
4
|
+
|
|
5
|
+
var __defProp = Object.defineProperty;
|
|
6
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
9
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
10
|
+
var __spreadValues = (a, b) => {
|
|
11
|
+
for (var prop in b || (b = {}))
|
|
12
|
+
if (__hasOwnProp.call(b, prop))
|
|
13
|
+
__defNormalProp(a, prop, b[prop]);
|
|
14
|
+
if (__getOwnPropSymbols)
|
|
15
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
16
|
+
if (__propIsEnum.call(b, prop))
|
|
17
|
+
__defNormalProp(a, prop, b[prop]);
|
|
18
|
+
}
|
|
19
|
+
return a;
|
|
20
|
+
};
|
|
21
|
+
const DropdownButton = Dropdown$1.Button;
|
|
22
|
+
class Dropdown extends React.Component {
|
|
23
|
+
render() {
|
|
24
|
+
const thisProps = this.props;
|
|
25
|
+
const finalProps = __spreadValues({}, thisProps);
|
|
26
|
+
finalProps.children = typeof thisProps.children === "string" ? /* @__PURE__ */ React.createElement("div", null, thisProps.children) : thisProps.children;
|
|
27
|
+
return /* @__PURE__ */ React.createElement(Dropdown$1, __spreadValues({}, finalProps));
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
const dropdownMeta = {
|
|
31
|
+
name: "AntdDropdown",
|
|
32
|
+
displayName: "Antd Dropdown",
|
|
33
|
+
props: {
|
|
34
|
+
arrow: {
|
|
35
|
+
type: "boolean",
|
|
36
|
+
description: "Whether the dropdown arrow should be visible",
|
|
37
|
+
defaultValueHint: false
|
|
38
|
+
},
|
|
39
|
+
disabled: {
|
|
40
|
+
type: "boolean",
|
|
41
|
+
description: "Whether the dropdown menu is disabled",
|
|
42
|
+
defaultValueHint: false
|
|
43
|
+
},
|
|
44
|
+
overlay: {
|
|
45
|
+
type: "slot",
|
|
46
|
+
allowedComponents: ["AntdMenu"],
|
|
47
|
+
defaultValue: [
|
|
48
|
+
{
|
|
49
|
+
type: "component",
|
|
50
|
+
name: "AntdMenu"
|
|
51
|
+
}
|
|
52
|
+
]
|
|
53
|
+
},
|
|
54
|
+
placement: {
|
|
55
|
+
type: "choice",
|
|
56
|
+
options: [
|
|
57
|
+
"bottomLeft",
|
|
58
|
+
"bottomCenter",
|
|
59
|
+
"bottomRight",
|
|
60
|
+
"topLeft",
|
|
61
|
+
"topCenter",
|
|
62
|
+
"topRight"
|
|
63
|
+
],
|
|
64
|
+
description: "Placement of popup menu",
|
|
65
|
+
defaultValueHint: "bottomLeft"
|
|
66
|
+
},
|
|
67
|
+
trigger: {
|
|
68
|
+
type: "choice",
|
|
69
|
+
options: ["click", "hover", "contextMenu"],
|
|
70
|
+
description: "The trigger mode which executes the dropdown action",
|
|
71
|
+
defaultValueHint: "hover"
|
|
72
|
+
},
|
|
73
|
+
visible: {
|
|
74
|
+
type: "boolean",
|
|
75
|
+
description: "Toggle visibility of dropdown menu in Daouy Editor",
|
|
76
|
+
editOnly: true,
|
|
77
|
+
defaultValueHint: false
|
|
78
|
+
},
|
|
79
|
+
children: {
|
|
80
|
+
type: "slot",
|
|
81
|
+
defaultValue: [
|
|
82
|
+
{
|
|
83
|
+
type: "text",
|
|
84
|
+
value: "Dropdown"
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
importPath: "@daouypkgs/antd/skinny/registerDropdown",
|
|
90
|
+
importName: "Dropdown"
|
|
91
|
+
};
|
|
92
|
+
function registerDropdown(loader, customDropdownMeta) {
|
|
93
|
+
const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
|
|
94
|
+
doRegisterComponent(Dropdown, customDropdownMeta != null ? customDropdownMeta : dropdownMeta);
|
|
95
|
+
}
|
|
96
|
+
const dropdownButtonMeta = {
|
|
97
|
+
name: "AntdDropdownButton",
|
|
98
|
+
displayName: "Antd Dropdown Button",
|
|
99
|
+
props: {
|
|
100
|
+
disabled: {
|
|
101
|
+
type: "boolean",
|
|
102
|
+
description: "Whether the dropdown menu is disabled",
|
|
103
|
+
defaultValueHint: false
|
|
104
|
+
},
|
|
105
|
+
icon: {
|
|
106
|
+
type: "slot",
|
|
107
|
+
hidePlaceholder: true
|
|
108
|
+
},
|
|
109
|
+
overlay: {
|
|
110
|
+
type: "slot",
|
|
111
|
+
allowedComponents: ["AntdMenu"],
|
|
112
|
+
defaultValue: [
|
|
113
|
+
{
|
|
114
|
+
type: "component",
|
|
115
|
+
name: "AntdMenu"
|
|
116
|
+
}
|
|
117
|
+
]
|
|
118
|
+
},
|
|
119
|
+
placement: {
|
|
120
|
+
type: "choice",
|
|
121
|
+
options: [
|
|
122
|
+
"bottomLeft",
|
|
123
|
+
"bottomCenter",
|
|
124
|
+
"bottomRight",
|
|
125
|
+
"topLeft",
|
|
126
|
+
"topCenter",
|
|
127
|
+
"topRight"
|
|
128
|
+
],
|
|
129
|
+
description: "Placement of popup menu",
|
|
130
|
+
defaultValueHint: "bottomLeft"
|
|
131
|
+
},
|
|
132
|
+
size: {
|
|
133
|
+
type: "choice",
|
|
134
|
+
options: ["small", "medium", "large"],
|
|
135
|
+
description: "Set the size of button",
|
|
136
|
+
defaultValueHint: "medium"
|
|
137
|
+
},
|
|
138
|
+
trigger: {
|
|
139
|
+
type: "choice",
|
|
140
|
+
options: ["click", "hover", "contextMenu"],
|
|
141
|
+
description: "The trigger mode which executes the dropdown action",
|
|
142
|
+
defaultValueHint: "hover"
|
|
143
|
+
},
|
|
144
|
+
type: {
|
|
145
|
+
type: "choice",
|
|
146
|
+
options: ["default", "primary", "ghost", "dashed", "link", "text"],
|
|
147
|
+
description: "Can be set to primary, ghost, dashed, link, text, default",
|
|
148
|
+
defaultValueHint: "default"
|
|
149
|
+
},
|
|
150
|
+
visible: {
|
|
151
|
+
type: "boolean",
|
|
152
|
+
description: "Toggle visibility of dropdown menu in Daouy Editor",
|
|
153
|
+
editOnly: true,
|
|
154
|
+
defaultValueHint: false
|
|
155
|
+
},
|
|
156
|
+
children: {
|
|
157
|
+
type: "slot",
|
|
158
|
+
defaultValue: [
|
|
159
|
+
{
|
|
160
|
+
type: "text",
|
|
161
|
+
value: "Dropdown"
|
|
162
|
+
}
|
|
163
|
+
]
|
|
164
|
+
}
|
|
165
|
+
},
|
|
166
|
+
importPath: "@daouypkgs/antd/skinny/registerDropdown",
|
|
167
|
+
importName: "DropdownButton",
|
|
168
|
+
parentComponentName: "AntdDropdown"
|
|
169
|
+
};
|
|
170
|
+
function registerDropdownButton(loader, customDropdownButtonMeta) {
|
|
171
|
+
const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
|
|
172
|
+
doRegisterComponent(
|
|
173
|
+
DropdownButton,
|
|
174
|
+
customDropdownButtonMeta != null ? customDropdownButtonMeta : dropdownButtonMeta
|
|
175
|
+
);
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
export { Dropdown, DropdownButton, dropdownButtonMeta, dropdownMeta, registerDropdown, registerDropdownButton };
|
|
179
|
+
//# sourceMappingURL=registerDropdown.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerDropdown.esm.js","sources":["../src/registerDropdown.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@daouy/host/registerComponent\";\nimport { Dropdown as AntdDropdown } from \"antd\";\nimport type { DropdownButtonProps, DropDownProps } from \"antd/es/dropdown\";\n\nimport React from \"react\";\nimport { Registerable } from \"./registerable\";\n\nexport const DropdownButton: typeof AntdDropdown.Button = AntdDropdown.Button;\n\nexport class Dropdown extends React.Component<DropDownProps> {\n render() {\n const thisProps = this.props as any;\n const finalProps = { ...thisProps };\n finalProps.children =\n typeof thisProps.children === \"string\" ? (\n <div>{thisProps.children}</div>\n ) : (\n thisProps.children\n );\n return <AntdDropdown {...finalProps}>{}</AntdDropdown>;\n }\n}\n\nexport const dropdownMeta: ComponentMeta<DropDownProps> = {\n name: \"AntdDropdown\",\n displayName: \"Antd Dropdown\",\n props: {\n arrow: {\n type: \"boolean\",\n description: \"Whether the dropdown arrow should be visible\",\n defaultValueHint: false,\n },\n disabled: {\n type: \"boolean\",\n description: \"Whether the dropdown menu is disabled\",\n defaultValueHint: false,\n },\n overlay: {\n type: \"slot\",\n allowedComponents: [\"AntdMenu\"],\n defaultValue: [\n {\n type: \"component\",\n name: \"AntdMenu\",\n },\n ],\n },\n placement: {\n type: \"choice\",\n options: [\n \"bottomLeft\",\n \"bottomCenter\",\n \"bottomRight\",\n \"topLeft\",\n \"topCenter\",\n \"topRight\",\n ],\n description: \"Placement of popup menu\",\n defaultValueHint: \"bottomLeft\",\n },\n trigger: {\n type: \"choice\",\n options: [\"click\", \"hover\", \"contextMenu\"],\n description: \"The trigger mode which executes the dropdown action\",\n defaultValueHint: \"hover\",\n },\n visible: {\n type: \"boolean\",\n description: \"Toggle visibility of dropdown menu in Daouy Editor\",\n editOnly: true,\n defaultValueHint: false,\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"text\",\n value: \"Dropdown\",\n },\n ],\n },\n },\n importPath: \"@daouypkgs/antd/skinny/registerDropdown\",\n importName: \"Dropdown\",\n};\n\nexport function registerDropdown(\n loader?: Registerable,\n customDropdownMeta?: ComponentMeta<DropDownProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(Dropdown, customDropdownMeta ?? dropdownMeta);\n}\n\nexport const dropdownButtonMeta: ComponentMeta<DropdownButtonProps> = {\n name: \"AntdDropdownButton\",\n displayName: \"Antd Dropdown Button\",\n props: {\n disabled: {\n type: \"boolean\",\n description: \"Whether the dropdown menu is disabled\",\n defaultValueHint: false,\n },\n icon: {\n type: \"slot\",\n hidePlaceholder: true,\n },\n overlay: {\n type: \"slot\",\n allowedComponents: [\"AntdMenu\"],\n defaultValue: [\n {\n type: \"component\",\n name: \"AntdMenu\",\n },\n ],\n },\n placement: {\n type: \"choice\",\n options: [\n \"bottomLeft\",\n \"bottomCenter\",\n \"bottomRight\",\n \"topLeft\",\n \"topCenter\",\n \"topRight\",\n ],\n description: \"Placement of popup menu\",\n defaultValueHint: \"bottomLeft\",\n },\n size: {\n type: \"choice\",\n options: [\"small\", \"medium\", \"large\"],\n description: \"Set the size of button\",\n defaultValueHint: \"medium\",\n },\n trigger: {\n type: \"choice\",\n options: [\"click\", \"hover\", \"contextMenu\"],\n description: \"The trigger mode which executes the dropdown action\",\n defaultValueHint: \"hover\",\n },\n type: {\n type: \"choice\",\n options: [\"default\", \"primary\", \"ghost\", \"dashed\", \"link\", \"text\"],\n description: \"Can be set to primary, ghost, dashed, link, text, default\",\n defaultValueHint: \"default\",\n },\n visible: {\n type: \"boolean\",\n description: \"Toggle visibility of dropdown menu in Daouy Editor\",\n editOnly: true,\n defaultValueHint: false,\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"text\",\n value: \"Dropdown\",\n },\n ],\n },\n },\n importPath: \"@daouypkgs/antd/skinny/registerDropdown\",\n importName: \"DropdownButton\",\n parentComponentName: \"AntdDropdown\",\n};\n\nexport function registerDropdownButton(\n loader?: Registerable,\n customDropdownButtonMeta?: ComponentMeta<DropDownProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(\n DropdownButton,\n customDropdownButtonMeta ?? dropdownButtonMeta\n );\n}\n"],"names":["AntdDropdown"],"mappings":";;;;;;;;;;;;;;;;;;;;AASO,MAAM,iBAA6CA,UAAa,CAAA,OAAA;AAE1D,MAAA,QAAA,SAAiB,MAAM,SAAyB,CAAA;AAAA,EAC3D,MAAS,GAAA;AACP,IAAA,MAAM,YAAY,IAAK,CAAA,KAAA,CAAA;AACvB,IAAA,MAAM,aAAa,cAAK,CAAA,EAAA,EAAA,SAAA,CAAA,CAAA;AACxB,IAAW,UAAA,CAAA,QAAA,GACT,OAAO,SAAA,CAAU,QAAa,KAAA,QAAA,uCAC3B,KAAK,EA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