@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,190 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var registerComponent = require('@daouy/host/registerComponent');
|
|
4
|
+
var antd = require('antd');
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var customControls = require('./customControls-fb0b7e5f.cjs.js');
|
|
7
|
+
|
|
8
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
|
|
10
|
+
var registerComponent__default = /*#__PURE__*/_interopDefault(registerComponent);
|
|
11
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
12
|
+
|
|
13
|
+
var __defProp = Object.defineProperty;
|
|
14
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
15
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
16
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
17
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
18
|
+
var __spreadValues = (a, b) => {
|
|
19
|
+
for (var prop in b || (b = {}))
|
|
20
|
+
if (__hasOwnProp.call(b, prop))
|
|
21
|
+
__defNormalProp(a, prop, b[prop]);
|
|
22
|
+
if (__getOwnPropSymbols)
|
|
23
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
24
|
+
if (__propIsEnum.call(b, prop))
|
|
25
|
+
__defNormalProp(a, prop, b[prop]);
|
|
26
|
+
}
|
|
27
|
+
return a;
|
|
28
|
+
};
|
|
29
|
+
const Checkbox = antd.Checkbox;
|
|
30
|
+
const CheckboxGroup = Checkbox.Group;
|
|
31
|
+
class CheckboxWrapper extends React__default.default.Component {
|
|
32
|
+
render() {
|
|
33
|
+
return /* @__PURE__ */ React__default.default.createElement(Checkbox, __spreadValues({}, this.props));
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
const checkboxHelpers = {
|
|
37
|
+
states: {
|
|
38
|
+
value: {
|
|
39
|
+
onChangeArgsToValue: (e) => e.target.checked
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
};
|
|
43
|
+
const checkboxMeta = {
|
|
44
|
+
name: "AntdCheckbox",
|
|
45
|
+
displayName: "Antd Checkbox",
|
|
46
|
+
props: {
|
|
47
|
+
autoFocus: {
|
|
48
|
+
type: "boolean",
|
|
49
|
+
description: "If get focus when component mounted",
|
|
50
|
+
defaultValueHint: false
|
|
51
|
+
},
|
|
52
|
+
checked: {
|
|
53
|
+
type: "boolean",
|
|
54
|
+
description: "Specifies the initial state: whether or not the checkbox is selected",
|
|
55
|
+
defaultValueHint: false
|
|
56
|
+
},
|
|
57
|
+
disabled: {
|
|
58
|
+
type: "boolean",
|
|
59
|
+
description: "If disable checkbox",
|
|
60
|
+
defaultValueHint: false
|
|
61
|
+
},
|
|
62
|
+
indeterminate: {
|
|
63
|
+
type: "boolean",
|
|
64
|
+
description: "The indeterminate checked state of checkbox",
|
|
65
|
+
defaultValueHint: false
|
|
66
|
+
},
|
|
67
|
+
value: {
|
|
68
|
+
type: "string",
|
|
69
|
+
description: "The checkbox value"
|
|
70
|
+
},
|
|
71
|
+
children: {
|
|
72
|
+
type: "slot",
|
|
73
|
+
defaultValue: [
|
|
74
|
+
{
|
|
75
|
+
type: "text",
|
|
76
|
+
value: "Checkbox"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
},
|
|
80
|
+
onChange: {
|
|
81
|
+
type: "eventHandler",
|
|
82
|
+
argTypes: [
|
|
83
|
+
{
|
|
84
|
+
name: "event",
|
|
85
|
+
type: "object"
|
|
86
|
+
}
|
|
87
|
+
]
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
states: {
|
|
91
|
+
value: {
|
|
92
|
+
type: "writable",
|
|
93
|
+
variableType: "boolean",
|
|
94
|
+
onChangeProp: "onChange",
|
|
95
|
+
valueProp: "checked"
|
|
96
|
+
}
|
|
97
|
+
},
|
|
98
|
+
componentHelpers: {
|
|
99
|
+
helpers: checkboxHelpers,
|
|
100
|
+
importName: "checkboxHelpers",
|
|
101
|
+
importPath: "@daouypkgs/antd/skinny/registerCheckbox"
|
|
102
|
+
},
|
|
103
|
+
importPath: "@daouypkgs/antd/skinny/registerCheckbox",
|
|
104
|
+
importName: "Checkbox",
|
|
105
|
+
defaultStyles: {
|
|
106
|
+
marginLeft: 0
|
|
107
|
+
}
|
|
108
|
+
};
|
|
109
|
+
function registerCheckbox(loader, customCheckboxMeta) {
|
|
110
|
+
const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
|
|
111
|
+
doRegisterComponent(CheckboxWrapper, customCheckboxMeta != null ? customCheckboxMeta : checkboxMeta);
|
|
112
|
+
}
|
|
113
|
+
function getGroupOptions(componentProps) {
|
|
114
|
+
const options = /* @__PURE__ */ new Set();
|
|
115
|
+
customControls.traverseReactEltTree(componentProps.children, (elt) => {
|
|
116
|
+
var _a;
|
|
117
|
+
if ((elt == null ? void 0 : elt.type) === CheckboxWrapper && typeof ((_a = elt == null ? void 0 : elt.props) == null ? void 0 : _a.value) === "string") {
|
|
118
|
+
options.add(elt.props.value);
|
|
119
|
+
}
|
|
120
|
+
});
|
|
121
|
+
return Array.from(options.keys());
|
|
122
|
+
}
|
|
123
|
+
const checkboxGroupMeta = {
|
|
124
|
+
name: "AntdCheckboxGroup",
|
|
125
|
+
displayName: "Antd Checkbox Group",
|
|
126
|
+
props: {
|
|
127
|
+
disabled: {
|
|
128
|
+
type: "boolean",
|
|
129
|
+
description: "If disable all checkboxes",
|
|
130
|
+
defaultValueHint: false
|
|
131
|
+
},
|
|
132
|
+
value: {
|
|
133
|
+
type: "choice",
|
|
134
|
+
editOnly: true,
|
|
135
|
+
description: "Default selected value",
|
|
136
|
+
multiSelect: true,
|
|
137
|
+
options: getGroupOptions
|
|
138
|
+
},
|
|
139
|
+
onChange: {
|
|
140
|
+
type: "eventHandler",
|
|
141
|
+
argTypes: [
|
|
142
|
+
{
|
|
143
|
+
name: "value",
|
|
144
|
+
type: {
|
|
145
|
+
type: "choice",
|
|
146
|
+
multiSelect: true,
|
|
147
|
+
options: getGroupOptions
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
]
|
|
151
|
+
},
|
|
152
|
+
children: {
|
|
153
|
+
type: "slot",
|
|
154
|
+
allowedComponents: ["AntdCheckbox"],
|
|
155
|
+
defaultValue: [
|
|
156
|
+
{
|
|
157
|
+
type: "component",
|
|
158
|
+
name: "AntdCheckbox"
|
|
159
|
+
}
|
|
160
|
+
]
|
|
161
|
+
}
|
|
162
|
+
},
|
|
163
|
+
states: {
|
|
164
|
+
value: {
|
|
165
|
+
type: "writable",
|
|
166
|
+
variableType: "array",
|
|
167
|
+
valueProp: "value",
|
|
168
|
+
onChangeProp: "onChange"
|
|
169
|
+
}
|
|
170
|
+
},
|
|
171
|
+
importPath: "@daouypkgs/antd/skinny/registerCheckbox",
|
|
172
|
+
importName: "CheckboxGroup",
|
|
173
|
+
parentComponentName: "AntdCheckbox"
|
|
174
|
+
};
|
|
175
|
+
function registerCheckboxGroup(loader, customCheckboxGroupMeta) {
|
|
176
|
+
const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
|
|
177
|
+
doRegisterComponent(
|
|
178
|
+
CheckboxGroup,
|
|
179
|
+
customCheckboxGroupMeta != null ? customCheckboxGroupMeta : checkboxGroupMeta
|
|
180
|
+
);
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
exports.Checkbox = Checkbox;
|
|
184
|
+
exports.CheckboxGroup = CheckboxGroup;
|
|
185
|
+
exports.checkboxGroupMeta = checkboxGroupMeta;
|
|
186
|
+
exports.checkboxHelpers = checkboxHelpers;
|
|
187
|
+
exports.checkboxMeta = checkboxMeta;
|
|
188
|
+
exports.registerCheckbox = registerCheckbox;
|
|
189
|
+
exports.registerCheckboxGroup = registerCheckboxGroup;
|
|
190
|
+
//# sourceMappingURL=registerCheckbox.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerCheckbox.cjs.js","sources":["../src/registerCheckbox.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@daouy/host/registerComponent\";\nimport { Checkbox as AntdCheckbox } from \"antd\";\nimport type { CheckboxProps } from \"antd/es/checkbox/Checkbox\";\nimport type { CheckboxGroupProps } from \"antd/es/checkbox/Group\";\nimport React from \"react\";\nimport { traverseReactEltTree } from \"./customControls\";\nimport { Registerable } from \"./registerable\";\n\nexport const Checkbox: typeof AntdCheckbox = AntdCheckbox;\nexport const CheckboxGroup = Checkbox.Group;\n\nclass CheckboxWrapper extends React.Component<CheckboxProps> {\n render() {\n return <Checkbox {...this.props} />;\n }\n}\n\nexport const checkboxHelpers = {\n states: {\n value: {\n onChangeArgsToValue: (\n e: Parameters<NonNullable<CheckboxProps[\"onChange\"]>>[0]\n ) => e.target.checked,\n },\n },\n};\n\nexport const checkboxMeta: ComponentMeta<CheckboxProps> = {\n name: \"AntdCheckbox\",\n displayName: \"Antd Checkbox\",\n props: {\n autoFocus: {\n type: \"boolean\",\n description: \"If get focus when component mounted\",\n defaultValueHint: false,\n },\n checked: {\n type: \"boolean\",\n description:\n \"Specifies the initial state: whether or not the checkbox is selected\",\n defaultValueHint: false,\n },\n disabled: {\n type: \"boolean\",\n description: \"If disable checkbox\",\n defaultValueHint: false,\n },\n indeterminate: {\n type: \"boolean\",\n description: \"The indeterminate checked state of checkbox\",\n defaultValueHint: false,\n },\n value: {\n type: \"string\",\n description: \"The checkbox value\",\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"text\",\n value: \"Checkbox\",\n },\n ],\n },\n onChange: {\n type: \"eventHandler\",\n argTypes: [\n {\n name: \"event\",\n type: \"object\",\n },\n ],\n },\n },\n states: {\n value: {\n type: \"writable\",\n variableType: \"boolean\",\n onChangeProp: \"onChange\",\n valueProp: \"checked\",\n },\n },\n componentHelpers: {\n helpers: checkboxHelpers,\n importName: \"checkboxHelpers\",\n importPath: \"@daouypkgs/antd/skinny/registerCheckbox\",\n },\n importPath: \"@daouypkgs/antd/skinny/registerCheckbox\",\n importName: \"Checkbox\",\n defaultStyles: {\n marginLeft: 0,\n },\n};\n\nexport function registerCheckbox(\n loader?: Registerable,\n customCheckboxMeta?: ComponentMeta<CheckboxProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(CheckboxWrapper, customCheckboxMeta ?? checkboxMeta);\n}\n\nfunction getGroupOptions(componentProps: CheckboxGroupProps) {\n const options = new Set<string>();\n traverseReactEltTree(componentProps.children, (elt) => {\n if (\n elt?.type === CheckboxWrapper &&\n typeof elt?.props?.value === \"string\"\n ) {\n options.add(elt.props.value);\n }\n });\n return Array.from(options.keys());\n}\n\nexport const checkboxGroupMeta: ComponentMeta<CheckboxGroupProps> = {\n name: \"AntdCheckboxGroup\",\n displayName: \"Antd Checkbox Group\",\n props: {\n disabled: {\n type: \"boolean\",\n description: \"If disable all checkboxes\",\n defaultValueHint: false,\n },\n value: {\n type: \"choice\",\n editOnly: true,\n description: \"Default selected value\",\n multiSelect: true,\n options: getGroupOptions,\n },\n onChange: {\n type: \"eventHandler\",\n argTypes: [\n {\n name: \"value\",\n type: {\n type: \"choice\",\n multiSelect: true,\n options: getGroupOptions,\n },\n },\n ],\n },\n children: {\n type: \"slot\",\n allowedComponents: [\"AntdCheckbox\"],\n defaultValue: [\n {\n type: \"component\",\n name: \"AntdCheckbox\",\n },\n ],\n },\n },\n states: {\n value: {\n type: \"writable\",\n variableType: \"array\",\n valueProp: \"value\",\n onChangeProp: \"onChange\",\n },\n },\n importPath: \"@daouypkgs/antd/skinny/registerCheckbox\",\n importName: \"CheckboxGroup\",\n parentComponentName: \"AntdCheckbox\",\n};\n\nexport function registerCheckboxGroup(\n loader?: Registerable,\n customCheckboxGroupMeta?: ComponentMeta<CheckboxGroupProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(\n CheckboxGroup,\n customCheckboxGroupMeta ?? checkboxGroupMeta\n );\n}\n"],"names":["AntdCheckbox","React","registerComponent","traverseReactEltTree"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAUO,MAAM,QAAgC,GAAAA,cAAA;AACtC,MAAM,gBAAgB,QAAS,CAAA,MAAA;AAEtC,MAAM,eAAA,SAAwBC,uBAAM,SAAyB,CAAA;AAAA,EAC3D,MAAS,GAAA;AACP,IAAO,uBAAAA,sBAAA,CAAA,aAAA,CAAC,QAAa,EAAA,cAAA,CAAA,EAAA,EAAA,IAAA,CAAK,KAAO,CAAA,CAAA,CAAA;AAAA,GACnC;AACF,CAAA;AAEO,MAAM,eAAkB,GAAA;AAAA,EAC7B,MAAQ,EAAA;AAAA,IACN,KAAO,EAAA;AAAA,MACL,mBAAqB,EAAA,CACnB,CACG,KAAA,CAAA,CAAE,MAAO,CAAA,OAAA;AAAA,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,MAAS,GAAA,MAAA,CAAO,iBAAkB,CAAA,GAAG,IAAI,CAAA,GAAID,kCAAkB,CAAA,GAAG,IAAI,CAAA,CAAA;AACxE,EAAA,mBAAA;AAAA,IACE,aAAA;AAAA,IACA,uBAA2B,IAAA,IAAA,GAAA,uBAAA,GAAA,iBAAA;AAAA,GAC7B,CAAA;AACF;;;;;;;;;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { ComponentMeta } from "@daouy/host/registerComponent";
|
|
2
|
+
import { Checkbox as AntdCheckbox } from "antd";
|
|
3
|
+
import type { CheckboxProps } from "antd/es/checkbox/Checkbox";
|
|
4
|
+
import type { CheckboxGroupProps } from "antd/es/checkbox/Group";
|
|
5
|
+
import React from "react";
|
|
6
|
+
import { Registerable } from "./registerable";
|
|
7
|
+
export declare const Checkbox: typeof AntdCheckbox;
|
|
8
|
+
export declare const CheckboxGroup: React.MemoExoticComponent<React.ForwardRefExoticComponent<import("antd/lib/checkbox").CheckboxGroupProps & React.RefAttributes<HTMLDivElement>>>;
|
|
9
|
+
export declare const checkboxHelpers: {
|
|
10
|
+
states: {
|
|
11
|
+
value: {
|
|
12
|
+
onChangeArgsToValue: (e: Parameters<NonNullable<CheckboxProps["onChange"]>>[0]) => boolean;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
};
|
|
16
|
+
export declare const checkboxMeta: ComponentMeta<CheckboxProps>;
|
|
17
|
+
export declare function registerCheckbox(loader?: Registerable, customCheckboxMeta?: ComponentMeta<CheckboxProps>): void;
|
|
18
|
+
export declare const checkboxGroupMeta: ComponentMeta<CheckboxGroupProps>;
|
|
19
|
+
export declare function registerCheckboxGroup(loader?: Registerable, customCheckboxGroupMeta?: ComponentMeta<CheckboxGroupProps>): void;
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
import registerComponent from '@daouy/host/registerComponent';
|
|
2
|
+
import { Checkbox as Checkbox$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 __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
10
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
11
|
+
var __spreadValues = (a, b) => {
|
|
12
|
+
for (var prop in b || (b = {}))
|
|
13
|
+
if (__hasOwnProp.call(b, prop))
|
|
14
|
+
__defNormalProp(a, prop, b[prop]);
|
|
15
|
+
if (__getOwnPropSymbols)
|
|
16
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
17
|
+
if (__propIsEnum.call(b, prop))
|
|
18
|
+
__defNormalProp(a, prop, b[prop]);
|
|
19
|
+
}
|
|
20
|
+
return a;
|
|
21
|
+
};
|
|
22
|
+
const Checkbox = Checkbox$1;
|
|
23
|
+
const CheckboxGroup = Checkbox.Group;
|
|
24
|
+
class CheckboxWrapper extends React.Component {
|
|
25
|
+
render() {
|
|
26
|
+
return /* @__PURE__ */ React.createElement(Checkbox, __spreadValues({}, this.props));
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
const checkboxHelpers = {
|
|
30
|
+
states: {
|
|
31
|
+
value: {
|
|
32
|
+
onChangeArgsToValue: (e) => e.target.checked
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
const checkboxMeta = {
|
|
37
|
+
name: "AntdCheckbox",
|
|
38
|
+
displayName: "Antd Checkbox",
|
|
39
|
+
props: {
|
|
40
|
+
autoFocus: {
|
|
41
|
+
type: "boolean",
|
|
42
|
+
description: "If get focus when component mounted",
|
|
43
|
+
defaultValueHint: false
|
|
44
|
+
},
|
|
45
|
+
checked: {
|
|
46
|
+
type: "boolean",
|
|
47
|
+
description: "Specifies the initial state: whether or not the checkbox is selected",
|
|
48
|
+
defaultValueHint: false
|
|
49
|
+
},
|
|
50
|
+
disabled: {
|
|
51
|
+
type: "boolean",
|
|
52
|
+
description: "If disable checkbox",
|
|
53
|
+
defaultValueHint: false
|
|
54
|
+
},
|
|
55
|
+
indeterminate: {
|
|
56
|
+
type: "boolean",
|
|
57
|
+
description: "The indeterminate checked state of checkbox",
|
|
58
|
+
defaultValueHint: false
|
|
59
|
+
},
|
|
60
|
+
value: {
|
|
61
|
+
type: "string",
|
|
62
|
+
description: "The checkbox value"
|
|
63
|
+
},
|
|
64
|
+
children: {
|
|
65
|
+
type: "slot",
|
|
66
|
+
defaultValue: [
|
|
67
|
+
{
|
|
68
|
+
type: "text",
|
|
69
|
+
value: "Checkbox"
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
onChange: {
|
|
74
|
+
type: "eventHandler",
|
|
75
|
+
argTypes: [
|
|
76
|
+
{
|
|
77
|
+
name: "event",
|
|
78
|
+
type: "object"
|
|
79
|
+
}
|
|
80
|
+
]
|
|
81
|
+
}
|
|
82
|
+
},
|
|
83
|
+
states: {
|
|
84
|
+
value: {
|
|
85
|
+
type: "writable",
|
|
86
|
+
variableType: "boolean",
|
|
87
|
+
onChangeProp: "onChange",
|
|
88
|
+
valueProp: "checked"
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
componentHelpers: {
|
|
92
|
+
helpers: checkboxHelpers,
|
|
93
|
+
importName: "checkboxHelpers",
|
|
94
|
+
importPath: "@daouypkgs/antd/skinny/registerCheckbox"
|
|
95
|
+
},
|
|
96
|
+
importPath: "@daouypkgs/antd/skinny/registerCheckbox",
|
|
97
|
+
importName: "Checkbox",
|
|
98
|
+
defaultStyles: {
|
|
99
|
+
marginLeft: 0
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
function registerCheckbox(loader, customCheckboxMeta) {
|
|
103
|
+
const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
|
|
104
|
+
doRegisterComponent(CheckboxWrapper, customCheckboxMeta != null ? customCheckboxMeta : checkboxMeta);
|
|
105
|
+
}
|
|
106
|
+
function getGroupOptions(componentProps) {
|
|
107
|
+
const options = /* @__PURE__ */ new Set();
|
|
108
|
+
traverseReactEltTree(componentProps.children, (elt) => {
|
|
109
|
+
var _a;
|
|
110
|
+
if ((elt == null ? void 0 : elt.type) === CheckboxWrapper && typeof ((_a = elt == null ? void 0 : elt.props) == null ? void 0 : _a.value) === "string") {
|
|
111
|
+
options.add(elt.props.value);
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
return Array.from(options.keys());
|
|
115
|
+
}
|
|
116
|
+
const checkboxGroupMeta = {
|
|
117
|
+
name: "AntdCheckboxGroup",
|
|
118
|
+
displayName: "Antd Checkbox Group",
|
|
119
|
+
props: {
|
|
120
|
+
disabled: {
|
|
121
|
+
type: "boolean",
|
|
122
|
+
description: "If disable all checkboxes",
|
|
123
|
+
defaultValueHint: false
|
|
124
|
+
},
|
|
125
|
+
value: {
|
|
126
|
+
type: "choice",
|
|
127
|
+
editOnly: true,
|
|
128
|
+
description: "Default selected value",
|
|
129
|
+
multiSelect: true,
|
|
130
|
+
options: getGroupOptions
|
|
131
|
+
},
|
|
132
|
+
onChange: {
|
|
133
|
+
type: "eventHandler",
|
|
134
|
+
argTypes: [
|
|
135
|
+
{
|
|
136
|
+
name: "value",
|
|
137
|
+
type: {
|
|
138
|
+
type: "choice",
|
|
139
|
+
multiSelect: true,
|
|
140
|
+
options: getGroupOptions
|
|
141
|
+
}
|
|
142
|
+
}
|
|
143
|
+
]
|
|
144
|
+
},
|
|
145
|
+
children: {
|
|
146
|
+
type: "slot",
|
|
147
|
+
allowedComponents: ["AntdCheckbox"],
|
|
148
|
+
defaultValue: [
|
|
149
|
+
{
|
|
150
|
+
type: "component",
|
|
151
|
+
name: "AntdCheckbox"
|
|
152
|
+
}
|
|
153
|
+
]
|
|
154
|
+
}
|
|
155
|
+
},
|
|
156
|
+
states: {
|
|
157
|
+
value: {
|
|
158
|
+
type: "writable",
|
|
159
|
+
variableType: "array",
|
|
160
|
+
valueProp: "value",
|
|
161
|
+
onChangeProp: "onChange"
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
importPath: "@daouypkgs/antd/skinny/registerCheckbox",
|
|
165
|
+
importName: "CheckboxGroup",
|
|
166
|
+
parentComponentName: "AntdCheckbox"
|
|
167
|
+
};
|
|
168
|
+
function registerCheckboxGroup(loader, customCheckboxGroupMeta) {
|
|
169
|
+
const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent(...args);
|
|
170
|
+
doRegisterComponent(
|
|
171
|
+
CheckboxGroup,
|
|
172
|
+
customCheckboxGroupMeta != null ? customCheckboxGroupMeta : checkboxGroupMeta
|
|
173
|
+
);
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export { Checkbox, CheckboxGroup, checkboxGroupMeta, checkboxHelpers, checkboxMeta, registerCheckbox, registerCheckboxGroup };
|
|
177
|
+
//# sourceMappingURL=registerCheckbox.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerCheckbox.esm.js","sources":["../src/registerCheckbox.tsx"],"sourcesContent":["import registerComponent, {\n ComponentMeta,\n} from \"@daouy/host/registerComponent\";\nimport { Checkbox as AntdCheckbox } from \"antd\";\nimport type { CheckboxProps } from \"antd/es/checkbox/Checkbox\";\nimport type { CheckboxGroupProps } from \"antd/es/checkbox/Group\";\nimport React from \"react\";\nimport { traverseReactEltTree } from \"./customControls\";\nimport { Registerable } from \"./registerable\";\n\nexport const Checkbox: typeof AntdCheckbox = AntdCheckbox;\nexport const CheckboxGroup = Checkbox.Group;\n\nclass CheckboxWrapper extends React.Component<CheckboxProps> {\n render() {\n return <Checkbox {...this.props} />;\n }\n}\n\nexport const checkboxHelpers = {\n states: {\n value: {\n onChangeArgsToValue: (\n e: Parameters<NonNullable<CheckboxProps[\"onChange\"]>>[0]\n ) => e.target.checked,\n },\n },\n};\n\nexport const checkboxMeta: ComponentMeta<CheckboxProps> = {\n name: \"AntdCheckbox\",\n displayName: \"Antd Checkbox\",\n props: {\n autoFocus: {\n type: \"boolean\",\n description: \"If get focus when component mounted\",\n defaultValueHint: false,\n },\n checked: {\n type: \"boolean\",\n description:\n \"Specifies the initial state: whether or not the checkbox is selected\",\n defaultValueHint: false,\n },\n disabled: {\n type: \"boolean\",\n description: \"If disable checkbox\",\n defaultValueHint: false,\n },\n indeterminate: {\n type: \"boolean\",\n description: \"The indeterminate checked state of checkbox\",\n defaultValueHint: false,\n },\n value: {\n type: \"string\",\n description: \"The checkbox value\",\n },\n children: {\n type: \"slot\",\n defaultValue: [\n {\n type: \"text\",\n value: \"Checkbox\",\n },\n ],\n },\n onChange: {\n type: \"eventHandler\",\n argTypes: [\n {\n name: \"event\",\n type: \"object\",\n },\n ],\n },\n },\n states: {\n value: {\n type: \"writable\",\n variableType: \"boolean\",\n onChangeProp: \"onChange\",\n valueProp: \"checked\",\n },\n },\n componentHelpers: {\n helpers: checkboxHelpers,\n importName: \"checkboxHelpers\",\n importPath: \"@daouypkgs/antd/skinny/registerCheckbox\",\n },\n importPath: \"@daouypkgs/antd/skinny/registerCheckbox\",\n importName: \"Checkbox\",\n defaultStyles: {\n marginLeft: 0,\n },\n};\n\nexport function registerCheckbox(\n loader?: Registerable,\n customCheckboxMeta?: ComponentMeta<CheckboxProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(CheckboxWrapper, customCheckboxMeta ?? checkboxMeta);\n}\n\nfunction getGroupOptions(componentProps: CheckboxGroupProps) {\n const options = new Set<string>();\n traverseReactEltTree(componentProps.children, (elt) => {\n if (\n elt?.type === CheckboxWrapper &&\n typeof elt?.props?.value === \"string\"\n ) {\n options.add(elt.props.value);\n }\n });\n return Array.from(options.keys());\n}\n\nexport const checkboxGroupMeta: ComponentMeta<CheckboxGroupProps> = {\n name: \"AntdCheckboxGroup\",\n displayName: \"Antd Checkbox Group\",\n props: {\n disabled: {\n type: \"boolean\",\n description: \"If disable all checkboxes\",\n defaultValueHint: false,\n },\n value: {\n type: \"choice\",\n editOnly: true,\n description: \"Default selected value\",\n multiSelect: true,\n options: getGroupOptions,\n },\n onChange: {\n type: \"eventHandler\",\n argTypes: [\n {\n name: \"value\",\n type: {\n type: \"choice\",\n multiSelect: true,\n options: getGroupOptions,\n },\n },\n ],\n },\n children: {\n type: \"slot\",\n allowedComponents: [\"AntdCheckbox\"],\n defaultValue: [\n {\n type: \"component\",\n name: \"AntdCheckbox\",\n },\n ],\n },\n },\n states: {\n value: {\n type: \"writable\",\n variableType: \"array\",\n valueProp: \"value\",\n onChangeProp: \"onChange\",\n },\n },\n importPath: \"@daouypkgs/antd/skinny/registerCheckbox\",\n importName: \"CheckboxGroup\",\n parentComponentName: \"AntdCheckbox\",\n};\n\nexport function registerCheckboxGroup(\n loader?: Registerable,\n customCheckboxGroupMeta?: ComponentMeta<CheckboxGroupProps>\n) {\n const doRegisterComponent: typeof registerComponent = (...args) =>\n loader ? loader.registerComponent(...args) : registerComponent(...args);\n doRegisterComponent(\n CheckboxGroup,\n customCheckboxGroupMeta ?? checkboxGroupMeta\n );\n}\n"],"names":["AntdCheckbox"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAUO,MAAM,QAAgC,GAAAA,WAAA;AACtC,MAAM,gBAAgB,QAAS,CAAA,MAAA;AAEtC,MAAM,eAAA,SAAwB,MAAM,SAAyB,CAAA;AAAA,EAC3D,MAAS,GAAA;AACP,IAAO,uBAAA,KAAA,CAAA,aAAA,CAAC,QAAa,EAAA,cAAA,CAAA,EAAA,EAAA,IAAA,CAAK,KAAO,CAAA,CAAA,CAAA;AAAA,GACnC;AACF,CAAA;AAEO,MAAM,eAAkB,GAAA;AAAA,EAC7B,MAAQ,EAAA;AAAA,IACN,KAAO,EAAA;AAAA,MACL,mBAAqB,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A;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,EAAA,mBAAA;AAAA,IACE,aAAA;AAAA,IACA,uBAA2B,IAAA,IAAA,GAAA,uBAAA,GAAA,iBAAA;AAAA,GAC7B,CAAA;AACF;;;;"}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var registerComponent = require('@daouy/host/registerComponent');
|
|
4
|
+
var antd = require('antd');
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var customControls = require('./customControls-fb0b7e5f.cjs.js');
|
|
7
|
+
|
|
8
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
+
|
|
10
|
+
var registerComponent__default = /*#__PURE__*/_interopDefault(registerComponent);
|
|
11
|
+
var React__default = /*#__PURE__*/_interopDefault(React);
|
|
12
|
+
|
|
13
|
+
var __defProp = Object.defineProperty;
|
|
14
|
+
var __defProps = Object.defineProperties;
|
|
15
|
+
var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
|
|
16
|
+
var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
17
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
18
|
+
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
19
|
+
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
20
|
+
var __spreadValues = (a, b) => {
|
|
21
|
+
for (var prop in b || (b = {}))
|
|
22
|
+
if (__hasOwnProp.call(b, prop))
|
|
23
|
+
__defNormalProp(a, prop, b[prop]);
|
|
24
|
+
if (__getOwnPropSymbols)
|
|
25
|
+
for (var prop of __getOwnPropSymbols(b)) {
|
|
26
|
+
if (__propIsEnum.call(b, prop))
|
|
27
|
+
__defNormalProp(a, prop, b[prop]);
|
|
28
|
+
}
|
|
29
|
+
return a;
|
|
30
|
+
};
|
|
31
|
+
var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
|
|
32
|
+
var __objRest = (source, exclude) => {
|
|
33
|
+
var target = {};
|
|
34
|
+
for (var prop in source)
|
|
35
|
+
if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
|
|
36
|
+
target[prop] = source[prop];
|
|
37
|
+
if (source != null && __getOwnPropSymbols)
|
|
38
|
+
for (var prop of __getOwnPropSymbols(source)) {
|
|
39
|
+
if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
|
|
40
|
+
target[prop] = source[prop];
|
|
41
|
+
}
|
|
42
|
+
return target;
|
|
43
|
+
};
|
|
44
|
+
const CollapsePanel = antd.Collapse.Panel;
|
|
45
|
+
const collapstePanelMeta = {
|
|
46
|
+
name: "AntdCollapsePanel",
|
|
47
|
+
displayName: "Antd Collapse Panel",
|
|
48
|
+
props: {
|
|
49
|
+
collapsible: {
|
|
50
|
+
type: "choice",
|
|
51
|
+
options: ["header", "disabled"],
|
|
52
|
+
description: "Specify whether the panel be collapsible or the trigger area of collapsible"
|
|
53
|
+
},
|
|
54
|
+
forceRender: {
|
|
55
|
+
type: "boolean",
|
|
56
|
+
description: "Forced render of content on panel, instead of lazy rending after clicking on header",
|
|
57
|
+
defaultValueHint: false
|
|
58
|
+
},
|
|
59
|
+
header: {
|
|
60
|
+
type: "slot",
|
|
61
|
+
defaultValue: [
|
|
62
|
+
{
|
|
63
|
+
type: "text",
|
|
64
|
+
value: "Header"
|
|
65
|
+
}
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
key: {
|
|
69
|
+
type: "string",
|
|
70
|
+
description: "Unique key identifying the panel from among its siblings"
|
|
71
|
+
},
|
|
72
|
+
showArrow: {
|
|
73
|
+
type: "boolean",
|
|
74
|
+
description: "If false, panel will not show arrow icon",
|
|
75
|
+
defaultValueHint: true
|
|
76
|
+
},
|
|
77
|
+
extra: {
|
|
78
|
+
type: "slot",
|
|
79
|
+
hidePlaceholder: true
|
|
80
|
+
},
|
|
81
|
+
children: {
|
|
82
|
+
type: "slot",
|
|
83
|
+
defaultValue: [
|
|
84
|
+
{
|
|
85
|
+
type: "text",
|
|
86
|
+
value: "Insert text here"
|
|
87
|
+
}
|
|
88
|
+
]
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
importPath: "@daouypkgs/antd/skinny/registerCollapse",
|
|
92
|
+
importName: "CollapsePanel",
|
|
93
|
+
parentComponentName: "AntdCollapse"
|
|
94
|
+
};
|
|
95
|
+
function registerCollapsePanel(loader, customCollapsePanelMeta) {
|
|
96
|
+
const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
|
|
97
|
+
doRegisterComponent(
|
|
98
|
+
CollapsePanel,
|
|
99
|
+
customCollapsePanelMeta != null ? customCollapsePanelMeta : collapstePanelMeta
|
|
100
|
+
);
|
|
101
|
+
}
|
|
102
|
+
function getOptions(componentProps) {
|
|
103
|
+
const options = /* @__PURE__ */ new Set();
|
|
104
|
+
customControls.traverseReactEltTree(componentProps.children, (elt) => {
|
|
105
|
+
if ((elt == null ? void 0 : elt.type) === CollapsePanel && typeof (elt == null ? void 0 : elt.key) === "string") {
|
|
106
|
+
options.add(elt.key);
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
return Array.from(options.keys());
|
|
110
|
+
}
|
|
111
|
+
const collapsteMeta = {
|
|
112
|
+
name: "AntdCollapse",
|
|
113
|
+
displayName: "Antd Collapse",
|
|
114
|
+
props: {
|
|
115
|
+
accordion: {
|
|
116
|
+
type: "boolean",
|
|
117
|
+
description: "If true, Collapse renders as Accordion",
|
|
118
|
+
defaultValueHint: false
|
|
119
|
+
},
|
|
120
|
+
activeKey: {
|
|
121
|
+
type: "choice",
|
|
122
|
+
editOnly: true,
|
|
123
|
+
description: "Key of the active panel",
|
|
124
|
+
multiSelect: true,
|
|
125
|
+
options: getOptions
|
|
126
|
+
},
|
|
127
|
+
onChange: {
|
|
128
|
+
type: "eventHandler",
|
|
129
|
+
argTypes: [
|
|
130
|
+
{
|
|
131
|
+
name: "value",
|
|
132
|
+
type: {
|
|
133
|
+
type: "choice",
|
|
134
|
+
multiSelect: true,
|
|
135
|
+
options: getOptions
|
|
136
|
+
}
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
bordered: {
|
|
141
|
+
type: "boolean",
|
|
142
|
+
description: "Toggles rendering of the border around the collapse block",
|
|
143
|
+
defaultValueHint: true
|
|
144
|
+
},
|
|
145
|
+
collapsible: {
|
|
146
|
+
type: "choice",
|
|
147
|
+
options: ["header", "disabled"],
|
|
148
|
+
description: "Specify whether the panels of children be collapsible or the trigger area of collapsible"
|
|
149
|
+
},
|
|
150
|
+
expandIconPosition: {
|
|
151
|
+
type: "choice",
|
|
152
|
+
options: ["left", "right"],
|
|
153
|
+
description: "Set expand icon position",
|
|
154
|
+
defaultValueHint: "left"
|
|
155
|
+
},
|
|
156
|
+
ghost: {
|
|
157
|
+
type: "boolean",
|
|
158
|
+
description: "Make the collapse borderless and its background transparent",
|
|
159
|
+
defaultValueHint: false
|
|
160
|
+
},
|
|
161
|
+
children: {
|
|
162
|
+
type: "slot",
|
|
163
|
+
allowedComponents: ["AntdCollapsePanel"],
|
|
164
|
+
defaultValue: [
|
|
165
|
+
{
|
|
166
|
+
type: "component",
|
|
167
|
+
name: "AntdCollapsePanel",
|
|
168
|
+
props: {
|
|
169
|
+
key: "1"
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
]
|
|
173
|
+
},
|
|
174
|
+
openIcon: {
|
|
175
|
+
type: "slot",
|
|
176
|
+
hidePlaceholder: true
|
|
177
|
+
},
|
|
178
|
+
closeIcon: {
|
|
179
|
+
type: "slot",
|
|
180
|
+
hidePlaceholder: true
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
states: {
|
|
184
|
+
activeKey: {
|
|
185
|
+
type: "writable",
|
|
186
|
+
variableType: "array",
|
|
187
|
+
valueProp: "activeKey",
|
|
188
|
+
onChangeProp: "onChange"
|
|
189
|
+
}
|
|
190
|
+
},
|
|
191
|
+
importPath: "@daouypkgs/antd/skinny/registerCollapse",
|
|
192
|
+
importName: "Collapse"
|
|
193
|
+
};
|
|
194
|
+
function Collapse(props) {
|
|
195
|
+
const _a = props, { openIcon, closeIcon } = _a, rest = __objRest(_a, ["openIcon", "closeIcon"]);
|
|
196
|
+
return /* @__PURE__ */ React__default.default.createElement(
|
|
197
|
+
antd.Collapse,
|
|
198
|
+
__spreadProps(__spreadValues({}, rest), {
|
|
199
|
+
expandIcon: openIcon || closeIcon ? ({ isActive }) => isActive ? openIcon : closeIcon : void 0
|
|
200
|
+
})
|
|
201
|
+
);
|
|
202
|
+
}
|
|
203
|
+
function registerCollapse(loader, customCollapseMeta) {
|
|
204
|
+
const doRegisterComponent = (...args) => loader ? loader.registerComponent(...args) : registerComponent__default.default(...args);
|
|
205
|
+
doRegisterComponent(Collapse, customCollapseMeta != null ? customCollapseMeta : collapsteMeta);
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
exports.Collapse = Collapse;
|
|
209
|
+
exports.CollapsePanel = CollapsePanel;
|
|
210
|
+
exports.collapsteMeta = collapsteMeta;
|
|
211
|
+
exports.collapstePanelMeta = collapstePanelMeta;
|
|
212
|
+
exports.registerCollapse = registerCollapse;
|
|
213
|
+
exports.registerCollapsePanel = registerCollapsePanel;
|
|
214
|
+
//# sourceMappingURL=registerCollapse.cjs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"registerCollapse.cjs.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","registerComponent","traverseReactEltTree","React"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAWO,MAAM,gBAAgBA,aAAa,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,EAAA;AAAA,MACN,IAAM,EAAA,MAAA;AAAA,MACN,YAAc,EAAA;AAAA,QACZ;AAAA,UACE,IAAM,EAAA,MAAA;AAAA,UACN,KAAO,EAAA,QAAA;AAAA,SACT;AAAA,OACF;AAAA,KACF;AAAA,IACA,GAAK,EAAA;AAAA,MACH,IAAM,EAAA,QAAA;AAAA,MACN,WAAa,EAAA,0DAAA;AAAA,KACf;AAAA,IACA,SAAW,EAAA;AAAA,MACT,IAAM,EAAA,SAAA;AAAA,MACN,WAAa,EAAA,0CAAA;AAAA,MACb,gBAAkB,EAAA,IAAA;AAAA,KACpB;AAAA,IACA,KAAO,EAAA;AAAA,MACL,IAAM,EAAA,MAAA;AAAA,MACN,eAAiB,EAAA,IAAA;AAAA,KACnB;AAAA,IACA,QAAU,EAAA;AAAA,MACR,IAAM,EAAA,MAAA;AAAA,MACN,YAAc,EAAA;AAAA,QACZ;AAAA,UACE,IAAM,EAAA,MAAA;AAAA,UACN,KAAO,EAAA,kBAAA;AA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