tntd 3.0.34-beta.6 → 3.0.35-beta.1
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.json +1034 -0
- package/CHANGELOG.md +605 -0
- package/es/checkbox/checkbox-group.js +5 -0
- package/es/checkbox/checkbox-group.js.map +1 -0
- package/es/radio/radio-group.js +5 -0
- package/es/radio/radio-group.js.map +1 -0
- package/es/steps/stepStyle/small.less +5 -0
- package/es/tntd-rc-select/style/index.less +2 -2
- package/es/tntd-virtual-tree/index.js +4 -4
- package/es/tntd-virtual-tree/index.js.map +1 -1
- package/es/tntd-virtual-tree/index.less +4 -0
- package/lib/checkbox/checkbox-group.d.ts +8 -0
- package/lib/checkbox/checkbox-group.d.ts.map +1 -0
- package/lib/checkbox/checkbox-group.js +12 -0
- package/lib/checkbox/checkbox-group.js.map +1 -0
- package/lib/radio/radio-group.d.ts +8 -0
- package/lib/radio/radio-group.d.ts.map +1 -0
- package/lib/radio/radio-group.js +12 -0
- package/lib/radio/radio-group.js.map +1 -0
- package/lib/steps/stepStyle/small.less +5 -0
- package/lib/tntd-rc-select/style/index.less +2 -2
- package/lib/tntd-virtual-tree/index.js +4 -4
- package/lib/tntd-virtual-tree/index.js.map +1 -1
- package/lib/tntd-virtual-tree/index.less +4 -0
- package/package.json +2 -2
- package/lib/query-form-v2/Field/Checkbox.d.ts +0 -8
- package/lib/query-form-v2/Field/Checkbox.d.ts.map +0 -1
- package/lib/query-form-v2/Field/Checkbox.js +0 -28
- package/lib/query-form-v2/Field/Checkbox.js.map +0 -1
- package/lib/query-form-v2/Field/Select.d.ts +0 -4
- package/lib/query-form-v2/Field/Select.d.ts.map +0 -1
- package/lib/query-form-v2/Field/Select.js +0 -80
- package/lib/query-form-v2/Field/Select.js.map +0 -1
- package/lib/query-form-v2/Field/SelectInput.d.ts +0 -4
- package/lib/query-form-v2/Field/SelectInput.d.ts.map +0 -1
- package/lib/query-form-v2/Field/SelectInput.js +0 -88
- package/lib/query-form-v2/Field/SelectInput.js.map +0 -1
- package/lib/query-form-v2/Field/fieldsMap.d.ts +0 -24
- package/lib/query-form-v2/Field/fieldsMap.d.ts.map +0 -1
- package/lib/query-form-v2/Field/fieldsMap.js +0 -35
- package/lib/query-form-v2/Field/fieldsMap.js.map +0 -1
- package/lib/query-form-v2/Field/index.d.ts +0 -14
- package/lib/query-form-v2/Field/index.d.ts.map +0 -1
- package/lib/query-form-v2/Field/index.js +0 -146
- package/lib/query-form-v2/Field/index.js.map +0 -1
- package/lib/query-form-v2/createActions.d.ts +0 -14
- package/lib/query-form-v2/createActions.d.ts.map +0 -1
- package/lib/query-form-v2/createActions.js +0 -54
- package/lib/query-form-v2/createActions.js.map +0 -1
- package/lib/query-form-v2/index.d.ts +0 -39
- package/lib/query-form-v2/index.d.ts.map +0 -1
- package/lib/query-form-v2/index.js +0 -391
- package/lib/query-form-v2/index.js.map +0 -1
- package/lib/query-form-v2/useForm.d.ts +0 -13
- package/lib/query-form-v2/useForm.d.ts.map +0 -1
- package/lib/query-form-v2/useForm.js +0 -13
- package/lib/query-form-v2/useForm.js.map +0 -1
- package/lib/query-form-v3/Field/Checkbox.d.ts +0 -8
- package/lib/query-form-v3/Field/Checkbox.d.ts.map +0 -1
- package/lib/query-form-v3/Field/Checkbox.js +0 -28
- package/lib/query-form-v3/Field/Checkbox.js.map +0 -1
- package/lib/query-form-v3/Field/Composition/FieldPopover.d.ts +0 -19
- package/lib/query-form-v3/Field/Composition/FieldPopover.d.ts.map +0 -1
- package/lib/query-form-v3/Field/Composition/FieldPopover.js +0 -381
- package/lib/query-form-v3/Field/Composition/FieldPopover.js.map +0 -1
- package/lib/query-form-v3/Field/Composition/FieldPopover.less +0 -35
- package/lib/query-form-v3/Field/Composition/Select.d.ts +0 -4
- package/lib/query-form-v3/Field/Composition/Select.d.ts.map +0 -1
- package/lib/query-form-v3/Field/Composition/Select.js +0 -131
- package/lib/query-form-v3/Field/Composition/Select.js.map +0 -1
- package/lib/query-form-v3/Field/Composition/index.d.ts +0 -10
- package/lib/query-form-v3/Field/Composition/index.d.ts.map +0 -1
- package/lib/query-form-v3/Field/Composition/index.js +0 -255
- package/lib/query-form-v3/Field/Composition/index.js.map +0 -1
- package/lib/query-form-v3/Field/Composition/index.less +0 -118
- package/lib/query-form-v3/Field/Composition/utils.d.ts +0 -22
- package/lib/query-form-v3/Field/Composition/utils.d.ts.map +0 -1
- package/lib/query-form-v3/Field/Composition/utils.js +0 -147
- package/lib/query-form-v3/Field/Composition/utils.js.map +0 -1
- package/lib/query-form-v3/Field/Select.d.ts +0 -4
- package/lib/query-form-v3/Field/Select.d.ts.map +0 -1
- package/lib/query-form-v3/Field/Select.js +0 -80
- package/lib/query-form-v3/Field/Select.js.map +0 -1
- package/lib/query-form-v3/Field/SelectInput.d.ts +0 -4
- package/lib/query-form-v3/Field/SelectInput.d.ts.map +0 -1
- package/lib/query-form-v3/Field/SelectInput.js +0 -100
- package/lib/query-form-v3/Field/SelectInput.js.map +0 -1
- package/lib/query-form-v3/Field/fieldsMap.d.ts +0 -27
- package/lib/query-form-v3/Field/fieldsMap.d.ts.map +0 -1
- package/lib/query-form-v3/Field/fieldsMap.js +0 -35
- package/lib/query-form-v3/Field/fieldsMap.js.map +0 -1
- package/lib/query-form-v3/Field/index.d.ts +0 -14
- package/lib/query-form-v3/Field/index.d.ts.map +0 -1
- package/lib/query-form-v3/Field/index.js +0 -147
- package/lib/query-form-v3/Field/index.js.map +0 -1
- package/lib/query-form-v3/createActions.d.ts +0 -14
- package/lib/query-form-v3/createActions.d.ts.map +0 -1
- package/lib/query-form-v3/createActions.js +0 -54
- package/lib/query-form-v3/createActions.js.map +0 -1
- package/lib/query-form-v3/index.d.ts +0 -27
- package/lib/query-form-v3/index.d.ts.map +0 -1
- package/lib/query-form-v3/index.js +0 -206
- package/lib/query-form-v3/index.js.map +0 -1
- package/lib/query-form-v3/index.less +0 -91
- package/lib/query-form-v3/useForm.d.ts +0 -13
- package/lib/query-form-v3/useForm.d.ts.map +0 -1
- package/lib/query-form-v3/useForm.js +0 -13
- package/lib/query-form-v3/useForm.js.map +0 -1
|
@@ -1,391 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
|
-
Object.defineProperty(exports, "__esModule", {
|
|
5
|
-
value: true
|
|
6
|
-
});
|
|
7
|
-
exports["default"] = void 0;
|
|
8
|
-
var _debounce2 = _interopRequireDefault(require("lodash/debounce"));
|
|
9
|
-
var _classnames3 = _interopRequireDefault(require("classnames"));
|
|
10
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
var _createActions = _interopRequireDefault(require("./createActions"));
|
|
12
|
-
var _Field = _interopRequireDefault(require("./Field"));
|
|
13
|
-
var _useForm = _interopRequireDefault(require("./useForm"));
|
|
14
|
-
var _badge = _interopRequireDefault(require("../badge"));
|
|
15
|
-
var _button = _interopRequireDefault(require("../button"));
|
|
16
|
-
var _drawer = _interopRequireDefault(require("../drawer"));
|
|
17
|
-
var _form = _interopRequireDefault(require("../form"));
|
|
18
|
-
var _prevLocale = require("../prev-locale");
|
|
19
|
-
var _tntdIcon = _interopRequireDefault(require("../tntd-icon"));
|
|
20
|
-
require("./index.less");
|
|
21
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
22
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { "default": e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n["default"] = e, t && t.set(e, n), n; }
|
|
23
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
24
|
-
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
25
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
26
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
27
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
28
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
29
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
30
|
-
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
31
|
-
function _possibleConstructorReturn(t, e) { if (e && ("object" == _typeof(e) || "function" == typeof e)) return e; if (void 0 !== e) throw new TypeError("Derived constructors may only return object or undefined"); return _assertThisInitialized(t); }
|
|
32
|
-
function _assertThisInitialized(e) { if (void 0 === e) throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); return e; }
|
|
33
|
-
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
34
|
-
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
35
|
-
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
36
|
-
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
37
|
-
var clsPrefix = 'tnt-queryform';
|
|
38
|
-
var QueryForm = /*#__PURE__*/function (_React$PureComponent) {
|
|
39
|
-
function QueryForm(props) {
|
|
40
|
-
var _this;
|
|
41
|
-
_classCallCheck(this, QueryForm);
|
|
42
|
-
_this = _callSuper(this, QueryForm, [props]);
|
|
43
|
-
Object.defineProperty(_this, "onWindowResize", {
|
|
44
|
-
enumerable: true,
|
|
45
|
-
configurable: true,
|
|
46
|
-
writable: true,
|
|
47
|
-
value: (0, _debounce2["default"])(function () {
|
|
48
|
-
var current = _this.fieldsRef.current;
|
|
49
|
-
if (current) {
|
|
50
|
-
setTimeout(function () {
|
|
51
|
-
_this.setState({
|
|
52
|
-
showMore: _this.isFieldsWidthOverflow()
|
|
53
|
-
});
|
|
54
|
-
}, 25);
|
|
55
|
-
}
|
|
56
|
-
}, 50)
|
|
57
|
-
});
|
|
58
|
-
Object.defineProperty(_this, "search", {
|
|
59
|
-
enumerable: true,
|
|
60
|
-
configurable: true,
|
|
61
|
-
writable: true,
|
|
62
|
-
value: function value(params) {
|
|
63
|
-
_this.props.onSearch(Object.assign(Object.assign({}, _this.form.getValues()), params));
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(_this, "onSearch", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
configurable: true,
|
|
69
|
-
writable: true,
|
|
70
|
-
value: function value() {
|
|
71
|
-
var _a, _b;
|
|
72
|
-
(_b = (_a = _this.props).onSearch) === null || _b === void 0 ? void 0 : _b.call(_a, _this.form.getValues());
|
|
73
|
-
}
|
|
74
|
-
});
|
|
75
|
-
Object.defineProperty(_this, "onReset", {
|
|
76
|
-
enumerable: true,
|
|
77
|
-
configurable: true,
|
|
78
|
-
writable: true,
|
|
79
|
-
value: function value() {
|
|
80
|
-
var _this$props = _this.props,
|
|
81
|
-
initialValues = _this$props.initialValues,
|
|
82
|
-
onReset = _this$props.onReset;
|
|
83
|
-
_this.form.setValues(Object.assign({}, initialValues));
|
|
84
|
-
_this.updateDrawerFieldsValueCount();
|
|
85
|
-
onReset === null || onReset === void 0 ? void 0 : onReset(initialValues);
|
|
86
|
-
}
|
|
87
|
-
});
|
|
88
|
-
Object.defineProperty(_this, "onToggleExpand", {
|
|
89
|
-
enumerable: true,
|
|
90
|
-
configurable: true,
|
|
91
|
-
writable: true,
|
|
92
|
-
value: function value() {
|
|
93
|
-
var _a, _b;
|
|
94
|
-
_this.setState({
|
|
95
|
-
expanded: !_this.state.expanded
|
|
96
|
-
});
|
|
97
|
-
(_b = (_a = _this.props).onToggleExpand) === null || _b === void 0 ? void 0 : _b.call(_a, !_this.state.expanded);
|
|
98
|
-
}
|
|
99
|
-
});
|
|
100
|
-
Object.defineProperty(_this, "onShowDrawer", {
|
|
101
|
-
enumerable: true,
|
|
102
|
-
configurable: true,
|
|
103
|
-
writable: true,
|
|
104
|
-
value: function value() {
|
|
105
|
-
_this.setState({
|
|
106
|
-
drawerVisible: true
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
});
|
|
110
|
-
Object.defineProperty(_this, "onFieldChange", {
|
|
111
|
-
enumerable: true,
|
|
112
|
-
configurable: true,
|
|
113
|
-
writable: true,
|
|
114
|
-
value: function value(name, _value) {
|
|
115
|
-
var values = _this.form.getValues();
|
|
116
|
-
var newValues = Object.assign(Object.assign({}, values), _defineProperty({}, name, _value));
|
|
117
|
-
var changedInfo = {
|
|
118
|
-
name: name,
|
|
119
|
-
value: _value,
|
|
120
|
-
preValue: values === null || values === void 0 ? void 0 : values[name]
|
|
121
|
-
};
|
|
122
|
-
var onChange = _this.props.onChange;
|
|
123
|
-
_this.form.setData('values', newValues);
|
|
124
|
-
for (var _len = arguments.length, rest = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
|
|
125
|
-
rest[_key - 2] = arguments[_key];
|
|
126
|
-
}
|
|
127
|
-
onChange && onChange.apply(void 0, [newValues, changedInfo].concat(rest));
|
|
128
|
-
_this.updateDrawerFieldsValueCount(newValues);
|
|
129
|
-
}
|
|
130
|
-
});
|
|
131
|
-
Object.defineProperty(_this, "updateDrawerFieldsValueCount", {
|
|
132
|
-
enumerable: true,
|
|
133
|
-
configurable: true,
|
|
134
|
-
writable: true,
|
|
135
|
-
value: function value() {
|
|
136
|
-
var values = _this.form.getValues();
|
|
137
|
-
var _this$props2 = _this.props,
|
|
138
|
-
showFieldCount = _this$props2.showFieldCount,
|
|
139
|
-
children = _this$props2.children;
|
|
140
|
-
if (showFieldCount) {
|
|
141
|
-
var drawerFieldsValueCount = children.reduce(function (acc, cur, index) {
|
|
142
|
-
var _a;
|
|
143
|
-
if (index >= showFieldCount && (values === null || values === void 0 ? void 0 : values[(_a = cur === null || cur === void 0 ? void 0 : cur.props) === null || _a === void 0 ? void 0 : _a.name])) {
|
|
144
|
-
acc++;
|
|
145
|
-
}
|
|
146
|
-
return acc;
|
|
147
|
-
}, 0);
|
|
148
|
-
if (drawerFieldsValueCount !== _this.state.drawerFieldsValueCount) {
|
|
149
|
-
_this.setState({
|
|
150
|
-
drawerFieldsValueCount: drawerFieldsValueCount
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
Object.defineProperty(_this, "addResizeListener", {
|
|
157
|
-
enumerable: true,
|
|
158
|
-
configurable: true,
|
|
159
|
-
writable: true,
|
|
160
|
-
value: function value() {
|
|
161
|
-
if ('ResizeObserver' in window) {
|
|
162
|
-
var current = _this.fieldsRef.current;
|
|
163
|
-
if (current) {
|
|
164
|
-
var observer = new ResizeObserver(_this.onWindowResize);
|
|
165
|
-
observer.observe(current);
|
|
166
|
-
return function () {
|
|
167
|
-
return observer.disconnect();
|
|
168
|
-
};
|
|
169
|
-
}
|
|
170
|
-
} else {
|
|
171
|
-
window.addEventListener('resize', _this.onWindowResize);
|
|
172
|
-
return function () {
|
|
173
|
-
return window.removeEventListener('resize', _this.onWindowResize);
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
});
|
|
178
|
-
var form = props.form,
|
|
179
|
-
initialValues = props.initialValues,
|
|
180
|
-
_props$showExpand = props.showExpand,
|
|
181
|
-
showExpand = _props$showExpand === void 0 ? true : _props$showExpand,
|
|
182
|
-
renderActions = props.renderActions,
|
|
183
|
-
defaultExpanded = props.defaultExpanded;
|
|
184
|
-
_this.state = {
|
|
185
|
-
showMore: false,
|
|
186
|
-
expanded: defaultExpanded || !showExpand || renderActions ? true : false,
|
|
187
|
-
drawerVisible: false,
|
|
188
|
-
drawerFieldsValueCount: 0
|
|
189
|
-
};
|
|
190
|
-
_this.fieldsRef = (0, _react.createRef)();
|
|
191
|
-
_this.formBoxRef = (0, _react.createRef)();
|
|
192
|
-
_this.form = form || (0, _createActions["default"])();
|
|
193
|
-
_this.form.setData('initialValues', initialValues);
|
|
194
|
-
_this.form.setData('values', Object.assign({}, initialValues));
|
|
195
|
-
return _this;
|
|
196
|
-
}
|
|
197
|
-
_inherits(QueryForm, _React$PureComponent);
|
|
198
|
-
return _createClass(QueryForm, [{
|
|
199
|
-
key: "render",
|
|
200
|
-
value: function render() {
|
|
201
|
-
var _this2 = this;
|
|
202
|
-
var _this$props3 = this.props,
|
|
203
|
-
children = _this$props3.children,
|
|
204
|
-
_this$props3$classNam = _this$props3.className,
|
|
205
|
-
className = _this$props3$classNam === void 0 ? '' : _this$props3$classNam,
|
|
206
|
-
_this$props3$initialV = _this$props3.initialValues,
|
|
207
|
-
initialValues = _this$props3$initialV === void 0 ? {} : _this$props3$initialV,
|
|
208
|
-
renderActions = _this$props3.renderActions,
|
|
209
|
-
_this$props3$showSear = _this$props3.showSearch,
|
|
210
|
-
showSearch = _this$props3$showSear === void 0 ? true : _this$props3$showSear,
|
|
211
|
-
_this$props3$showRese = _this$props3.showReset,
|
|
212
|
-
showReset = _this$props3$showRese === void 0 ? true : _this$props3$showRese,
|
|
213
|
-
showFieldCount = _this$props3.showFieldCount,
|
|
214
|
-
_this$props3$drawerPr = _this$props3.drawerProps,
|
|
215
|
-
drawerProps = _this$props3$drawerPr === void 0 ? {} : _this$props3$drawerPr,
|
|
216
|
-
size = _this$props3.size;
|
|
217
|
-
var extraActions = this.props.extraActions;
|
|
218
|
-
var _this$state = this.state,
|
|
219
|
-
expanded = _this$state.expanded,
|
|
220
|
-
showMore = _this$state.showMore,
|
|
221
|
-
drawerVisible = _this$state.drawerVisible,
|
|
222
|
-
drawerFieldsValueCount = _this$state.drawerFieldsValueCount;
|
|
223
|
-
var renderFormActions = renderActions || function () {
|
|
224
|
-
return _react["default"].createElement(_react["default"].Fragment, null, showFieldCount && _react["default"].createElement(_badge["default"], {
|
|
225
|
-
count: drawerFieldsValueCount
|
|
226
|
-
}, _react["default"].createElement(_button["default"], {
|
|
227
|
-
onClick: _this2.onShowDrawer
|
|
228
|
-
}, _react["default"].createElement(_tntdIcon["default"], {
|
|
229
|
-
type: "filter"
|
|
230
|
-
}), _this2.getText('moreFiltering'))), showSearch && _react["default"].createElement(_button["default"], {
|
|
231
|
-
type: "primary",
|
|
232
|
-
onClick: _this2.onSearch
|
|
233
|
-
}, _this2.getText('search')), showReset && _react["default"].createElement(_button["default"], {
|
|
234
|
-
onClick: _this2.onReset
|
|
235
|
-
}, _this2.getText('reset')), showMore && !showFieldCount && _react["default"].createElement(_button["default"], {
|
|
236
|
-
className: "expand-link",
|
|
237
|
-
type: "link",
|
|
238
|
-
onClick: _this2.onToggleExpand
|
|
239
|
-
}, _this2.getText(expanded ? 'collapse' : 'expand')), _react["default"].Children.map(children, function (child) {
|
|
240
|
-
var _a;
|
|
241
|
-
return child && ((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.align) === 'right' && _react["default"].cloneElement(child);
|
|
242
|
-
}));
|
|
243
|
-
};
|
|
244
|
-
return _react["default"].createElement("div", {
|
|
245
|
-
ref: this.formBoxRef,
|
|
246
|
-
className: (0, _classnames3["default"])(clsPrefix, _defineProperty({}, className, className))
|
|
247
|
-
}, _react["default"].createElement(_form["default"], {
|
|
248
|
-
layout: "inline",
|
|
249
|
-
className: (0, _classnames3["default"])({
|
|
250
|
-
expanded: !showMore || expanded,
|
|
251
|
-
showMore: showMore
|
|
252
|
-
})
|
|
253
|
-
}, _react["default"].createElement("div", {
|
|
254
|
-
ref: this.fieldsRef
|
|
255
|
-
}, _react["default"].Children.map(children, function (child, index) {
|
|
256
|
-
var _a, _b;
|
|
257
|
-
return child && ((_a = child === null || child === void 0 ? void 0 : child.props) === null || _a === void 0 ? void 0 : _a.align) !== 'right' && (!showFieldCount || showFieldCount > index) && _react["default"].cloneElement(child, {
|
|
258
|
-
form: _this2.form,
|
|
259
|
-
initialValue: initialValues === null || initialValues === void 0 ? void 0 : initialValues[(_b = child.props) === null || _b === void 0 ? void 0 : _b.name],
|
|
260
|
-
onChange: _this2.onFieldChange
|
|
261
|
-
});
|
|
262
|
-
})), _react["default"].createElement("div", {
|
|
263
|
-
className: "".concat(clsPrefix, "-actions")
|
|
264
|
-
}, renderFormActions()), showFieldCount && _react["default"].createElement(_drawer["default"], Object.assign({
|
|
265
|
-
title: this.getText('moreFiltering'),
|
|
266
|
-
visible: drawerVisible,
|
|
267
|
-
onClose: function onClose() {
|
|
268
|
-
return _this2.setState({
|
|
269
|
-
drawerVisible: false
|
|
270
|
-
});
|
|
271
|
-
},
|
|
272
|
-
width: 300,
|
|
273
|
-
size: size,
|
|
274
|
-
getContainer: false
|
|
275
|
-
}, drawerProps, {
|
|
276
|
-
className: (0, _classnames3["default"])("".concat(clsPrefix, "-drawer"), _defineProperty({
|
|
277
|
-
'large-size': size === 'large'
|
|
278
|
-
}, className, className))
|
|
279
|
-
}), _react["default"].Children.map(children, function (child, index) {
|
|
280
|
-
return child && index >= showFieldCount && _react["default"].cloneElement(child, {
|
|
281
|
-
form: _this2.form,
|
|
282
|
-
isFieldInDrawer: true,
|
|
283
|
-
initialValue: initialValues === null || initialValues === void 0 ? void 0 : initialValues[child.props.name],
|
|
284
|
-
onChange: _this2.onFieldChange,
|
|
285
|
-
onSearch: _this2.onSearch
|
|
286
|
-
});
|
|
287
|
-
}), _react["default"].createElement(_button["default"], {
|
|
288
|
-
type: "primary",
|
|
289
|
-
onClick: this.onSearch
|
|
290
|
-
}, this.getText('search')), _react["default"].createElement(_button["default"], {
|
|
291
|
-
onClick: this.onReset
|
|
292
|
-
}, this.getText('reset')))), extraActions && _react["default"].createElement("div", {
|
|
293
|
-
className: "".concat(clsPrefix, "-extra")
|
|
294
|
-
}, extraActions));
|
|
295
|
-
}
|
|
296
|
-
}, {
|
|
297
|
-
key: "getText",
|
|
298
|
-
value: function getText(key) {
|
|
299
|
-
return (0, _prevLocale.getText)(key, this.props.language || (0, _prevLocale.getLanguage)());
|
|
300
|
-
}
|
|
301
|
-
}, {
|
|
302
|
-
key: "isFieldsWidthOverflow",
|
|
303
|
-
value: function isFieldsWidthOverflow() {
|
|
304
|
-
var current = this.fieldsRef.current;
|
|
305
|
-
if (current) {
|
|
306
|
-
return parseFloat(window.getComputedStyle(current).width, 10) < [].reduce.call(current.children, function (acc, cur) {
|
|
307
|
-
var _window$getComputedSt = window.getComputedStyle(cur),
|
|
308
|
-
margin = _window$getComputedSt.margin,
|
|
309
|
-
width = _window$getComputedSt.width;
|
|
310
|
-
var marginArray = margin.split(' ').map(function (str) {
|
|
311
|
-
return parseFloat(str, 10);
|
|
312
|
-
});
|
|
313
|
-
acc += parseFloat(width, 10) + marginArray[1];
|
|
314
|
-
return acc;
|
|
315
|
-
}, 0);
|
|
316
|
-
}
|
|
317
|
-
return false;
|
|
318
|
-
}
|
|
319
|
-
}, {
|
|
320
|
-
key: "updateFieldHeight",
|
|
321
|
-
value: function updateFieldHeight() {
|
|
322
|
-
var _a, _b, _c;
|
|
323
|
-
var formBoxRef = this.formBoxRef,
|
|
324
|
-
fieldsRef = this.fieldsRef;
|
|
325
|
-
var getFieldHeight = function getFieldHeight() {
|
|
326
|
-
var _a;
|
|
327
|
-
var current = fieldsRef.current;
|
|
328
|
-
var height = '32px';
|
|
329
|
-
if (current && ((_a = current.children) === null || _a === void 0 ? void 0 : _a[0])) {
|
|
330
|
-
height = window.getComputedStyle(current.children[0]).height;
|
|
331
|
-
}
|
|
332
|
-
return height;
|
|
333
|
-
};
|
|
334
|
-
var queryFormActionsDom = (_a = formBoxRef === null || formBoxRef === void 0 ? void 0 : formBoxRef.current) === null || _a === void 0 ? void 0 : _a.querySelector(".".concat(clsPrefix, "-actions"));
|
|
335
|
-
var queryFormExtraDom = (_b = formBoxRef === null || formBoxRef === void 0 ? void 0 : formBoxRef.current) === null || _b === void 0 ? void 0 : _b.querySelector(".".concat(clsPrefix, "-extra"));
|
|
336
|
-
var formItemsDomList = (_c = fieldsRef === null || fieldsRef === void 0 ? void 0 : fieldsRef.current) === null || _c === void 0 ? void 0 : _c.querySelectorAll('.ant-form-item-control');
|
|
337
|
-
var fieldHeight = getFieldHeight();
|
|
338
|
-
fieldsRef.current.style.height = fieldHeight;
|
|
339
|
-
[queryFormActionsDom, queryFormExtraDom].forEach(function (item) {
|
|
340
|
-
item && Object.assign(item.style, {
|
|
341
|
-
height: fieldHeight,
|
|
342
|
-
lineHeight: fieldHeight
|
|
343
|
-
});
|
|
344
|
-
});
|
|
345
|
-
[].forEach.call(formItemsDomList, function (item) {
|
|
346
|
-
item.style.lineHeight = fieldHeight;
|
|
347
|
-
});
|
|
348
|
-
}
|
|
349
|
-
}, {
|
|
350
|
-
key: "componentDidMount",
|
|
351
|
-
value: function componentDidMount() {
|
|
352
|
-
var current = this.fieldsRef.current;
|
|
353
|
-
var _this$props4 = this.props,
|
|
354
|
-
showFieldCount = _this$props4.showFieldCount,
|
|
355
|
-
_this$props4$showExpa = _this$props4.showExpand,
|
|
356
|
-
showExpand = _this$props4$showExpa === void 0 ? true : _this$props4$showExpa;
|
|
357
|
-
this.updateFieldHeight();
|
|
358
|
-
this.form.on('search', this.search);
|
|
359
|
-
// 未设置第一行显示数量且禁止了展开操作 或 自定义了操作区域,则不需要处理展开计算逻辑
|
|
360
|
-
// || renderActions
|
|
361
|
-
if (!showFieldCount && !showExpand) {
|
|
362
|
-
return;
|
|
363
|
-
}
|
|
364
|
-
if (!showFieldCount) {
|
|
365
|
-
if (current && this.isFieldsWidthOverflow()) {
|
|
366
|
-
this.setState({
|
|
367
|
-
showMore: true
|
|
368
|
-
});
|
|
369
|
-
}
|
|
370
|
-
this.removeResizeListener = this.addResizeListener();
|
|
371
|
-
} else {
|
|
372
|
-
this.updateDrawerFieldsValueCount();
|
|
373
|
-
this.form.on('setValues', this.updateDrawerFieldsValueCount);
|
|
374
|
-
this.form.on('setValue', this.updateDrawerFieldsValueCount);
|
|
375
|
-
}
|
|
376
|
-
}
|
|
377
|
-
}, {
|
|
378
|
-
key: "componentWillUnmount",
|
|
379
|
-
value: function componentWillUnmount() {
|
|
380
|
-
var _a;
|
|
381
|
-
(_a = this.removeResizeListener) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
382
|
-
this.form.off('setValues', this.updateDrawerFieldsValueCount);
|
|
383
|
-
this.form.off('setValue', this.updateDrawerFieldsValueCount);
|
|
384
|
-
this.form.off('search', this.search);
|
|
385
|
-
}
|
|
386
|
-
}]);
|
|
387
|
-
}(_react["default"].PureComponent);
|
|
388
|
-
QueryForm.Field = _Field["default"];
|
|
389
|
-
QueryForm.useForm = _useForm["default"];
|
|
390
|
-
QueryForm.createForm = _createActions["default"];
|
|
391
|
-
var _default = exports["default"] = QueryForm;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/query-form-v2/index.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,4DAAmC;AACnC,mCAAiC;AACjC,+CAAwC;AACxC,oEAA2C;AAC3C,oDAA2B;AAC3B,wDAA+B;AAE/B,qDAA4B;AAC5B,uDAA8B;AAC9B,uDAA8B;AAC9B,mDAA0B;AAC1B,gDAAqD;AACrD,6DAA+B;AAE/B,wBAAqB;AAErB,MAAM,SAAS,GAAG,eAAe,CAAA;AAEjC,MAAM,SAAU,SAAQ,eAAK,CAAC,aAAa;IACzC,YAAY,KAAK;QACf,KAAK,CAAC,KAAK,CAAC,CAAA;QA6Kd;;;;mBAAiB,IAAA,iBAAQ,EAAC,GAAG,EAAE;gBAC7B,MAAM,EAAE,OAAO,EAAE,GAAG,IAAI,CAAC,SAAS,CAAA;gBAElC,IAAI,OAAO,EAAE;oBACX,UAAU,CAAC,GAAG,EAAE;wBACd,IAAI,CAAC,QAAQ,CAAC;4BACZ,QAAQ,EAAE,IAAI,CAAC,qBAAqB,EAAE;yBACvC,CAAC,CAAA;oBACJ,CAAC,EAAE,EAAE,CAAC,CAAA;iBACP;YACH,CAAC,EAAE,EAAE,CAAC;WAAA;QAEN;;;;mBAAS,CAAC,MAAM,EAAE,EAAE;gBAClB,IAAI,CAAC,KAAK,CAAC,QAAQ,iCACd,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE,GACrB,MAAM,EACT,CAAA;YACJ,CAAC;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;SACrD;aAAM;YACL,IAAI,CAAC,4BAA4B,EAAE,CAAA;YACnC,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,WAAW,EAAE,IAAI,CAAC,4BAA4B,CAAC,CAAA;YAC5D,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,UAAU,EAAE,IAAI,CAAC,4BAA4B,CAAC,CAAA;SAC5D;IACH,CAAC;IAED,oBAAoB;;QAClB,MAAA,IAAI,CAAC,oBAAoB,oDAAI,CAAA;QAC7B,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,WAAW,EAAE,IAAI,CAAC,4BAA4B,CAAC,CAAA;QAC7D,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,UAAU,EAAE,IAAI,CAAC,4BAA4B,CAAC,CAAA;QAC5D,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,QAAQ,EAAE,IAAI,CAAC,MAAM,CAAC,CAAA;IACtC,CAAC;CACF;AAED,SAAS,CAAC,KAAK,GAAG,eAAK,CAAA;AACvB,SAAS,CAAC,OAAO,GAAG,iBAAO,CAAA;AAC3B,SAAS,CAAC,UAAU,GAAG,uBAAa,CAAA;AAEpC,kBAAe,SAAS,CAAA","sourcesContent":["import classnames from 'classnames'\nimport { debounce } from 'lodash'\nimport React, { createRef } from 'react'\nimport createActions from './createActions'\nimport Field from './Field'\nimport useForm from './useForm'\n\nimport Badge from '../badge'\nimport Button from '../button'\nimport Drawer from '../drawer'\nimport Form from '../form'\nimport { getLanguage, getText } from '../prev-locale'\nimport Icon from '../tntd-icon'\n\nimport './index.less'\n\nconst clsPrefix = 'tnt-queryform'\n\nclass QueryForm extends React.PureComponent {\n constructor(props) {\n super(props)\n const { form, initialValues, showExpand = true, renderActions, defaultExpanded } = props\n this.state = {\n showMore: false,\n expanded: defaultExpanded || !showExpand || renderActions ? true : false,\n drawerVisible: false,\n drawerFieldsValueCount: 0,\n }\n this.fieldsRef = createRef()\n this.formBoxRef = createRef()\n\n this.form = form || createActions()\n this.form.setData('initialValues', initialValues)\n this.form.setData('values', { ...initialValues })\n }\n\n render() {\n const {\n children,\n className = '',\n initialValues = {},\n renderActions,\n showSearch = true,\n showReset = true,\n showFieldCount,\n drawerProps = {},\n size,\n } = this.props\n const extraActions = this.props.extraActions\n const { expanded, showMore, drawerVisible, drawerFieldsValueCount } = this.state\n const renderFormActions =\n renderActions ||\n (() => (\n <>\n {showFieldCount && (\n <Badge count={drawerFieldsValueCount}>\n <Button onClick={this.onShowDrawer}>\n <Icon type=\"filter\" />\n {this.getText('moreFiltering')}\n </Button>\n </Badge>\n )}\n {showSearch && (\n <Button type=\"primary\" onClick={this.onSearch}>\n {this.getText('search')}\n </Button>\n )}\n {showReset && <Button onClick={this.onReset}>{this.getText('reset')}</Button>}\n {showMore && !showFieldCount && (\n <Button className=\"expand-link\" type=\"link\" onClick={this.onToggleExpand}>\n {this.getText(expanded ? 'collapse' : 'expand')}\n </Button>\n )}\n {React.Children.map(\n children,\n (child) => child && child?.props?.align === 'right' && React.cloneElement(child)\n )}\n </>\n ))\n\n return (\n <div ref={this.formBoxRef} className={classnames(clsPrefix, { [className]: className })}>\n <Form layout=\"inline\" className={classnames({ expanded: !showMore || expanded, showMore })}>\n <div ref={this.fieldsRef}>\n {React.Children.map(\n children,\n (child, index) =>\n child &&\n child?.props?.align !== 'right' &&\n (!showFieldCount || showFieldCount > index) &&\n React.cloneElement(child, {\n form: this.form,\n initialValue: initialValues?.[child.props?.name],\n onChange: this.onFieldChange,\n })\n )}\n </div>\n <div className={`${clsPrefix}-actions`}>{renderFormActions()}</div>\n {showFieldCount && (\n <Drawer\n title={this.getText('moreFiltering')}\n visible={drawerVisible}\n onClose={() => this.setState({ drawerVisible: false })}\n width={300}\n size={size}\n getContainer={false}\n {...drawerProps}\n className={classnames(`${clsPrefix}-drawer`, {\n 'large-size': size === 'large',\n [className]: className,\n })}\n >\n {React.Children.map(\n children,\n (child, index) =>\n child &&\n index >= showFieldCount &&\n React.cloneElement(child, {\n form: this.form,\n isFieldInDrawer: true,\n initialValue: initialValues?.[child.props.name],\n onChange: this.onFieldChange,\n onSearch: this.onSearch,\n })\n )}\n <Button type=\"primary\" onClick={this.onSearch}>\n {this.getText('search')}\n </Button>\n <Button onClick={this.onReset}>{this.getText('reset')}</Button>\n </Drawer>\n )}\n </Form>\n {extraActions && <div className={`${clsPrefix}-extra`}>{extraActions}</div>}\n </div>\n )\n }\n\n getText(key) {\n return getText(key, this.props.language || getLanguage())\n }\n\n isFieldsWidthOverflow() {\n const { current } = this.fieldsRef\n\n if (current) {\n return (\n parseFloat(window.getComputedStyle(current).width, 10) <\n [].reduce.call(\n current.children,\n (acc, cur) => {\n const { margin, width } = window.getComputedStyle(cur)\n const marginArray = margin.split(' ').map((str) => parseFloat(str, 10))\n acc += parseFloat(width, 10) + marginArray[1]\n return acc\n },\n 0\n )\n )\n }\n\n return false\n }\n\n updateFieldHeight() {\n const { formBoxRef, fieldsRef } = this\n const getFieldHeight = () => {\n const { current } = fieldsRef\n let height = '32px'\n\n if (current && current.children?.[0]) {\n height = window.getComputedStyle(current.children[0]).height\n }\n\n return height\n }\n const queryFormActionsDom = formBoxRef?.current?.querySelector(`.${clsPrefix}-actions`)\n const queryFormExtraDom = formBoxRef?.current?.querySelector(`.${clsPrefix}-extra`)\n const formItemsDomList = fieldsRef?.current?.querySelectorAll('.ant-form-item-control')\n const fieldHeight = getFieldHeight()\n\n fieldsRef.current.style.height = fieldHeight\n ;[queryFormActionsDom, queryFormExtraDom].forEach((item) => {\n item &&\n Object.assign(item.style, {\n height: fieldHeight,\n lineHeight: fieldHeight,\n })\n })\n ;[].forEach.call(formItemsDomList, (item) => {\n item.style.lineHeight = fieldHeight\n })\n }\n\n onWindowResize = debounce(() => {\n const { current } = this.fieldsRef\n\n if (current) {\n setTimeout(() => {\n this.setState({\n showMore: this.isFieldsWidthOverflow(),\n })\n }, 25)\n }\n }, 50)\n\n search = (params) => {\n this.props.onSearch({\n ...this.form.getValues(),\n ...params,\n })\n }\n\n onSearch = () => {\n this.props.onSearch?.(this.form.getValues())\n }\n\n onReset = () => {\n const { initialValues, onReset } = this.props\n\n this.form.setValues({ ...initialValues })\n this.updateDrawerFieldsValueCount()\n onReset?.(initialValues)\n }\n\n onToggleExpand = () => {\n this.setState({\n expanded: !this.state.expanded,\n })\n this.props.onToggleExpand?.(!this.state.expanded)\n }\n\n onShowDrawer = () => {\n this.setState({ drawerVisible: true })\n }\n\n onFieldChange = (name, value, ...rest) => {\n const values = this.form.getValues()\n const newValues = {\n ...values,\n [name]: value,\n }\n const changedInfo = { name, value, preValue: values?.[name] }\n const { onChange } = this.props\n\n this.form.setData('values', newValues)\n\n onChange && onChange(newValues, changedInfo, ...rest)\n this.updateDrawerFieldsValueCount(newValues)\n }\n\n updateDrawerFieldsValueCount = () => {\n const values = this.form.getValues()\n const { showFieldCount, children } = this.props\n\n if (showFieldCount) {\n const drawerFieldsValueCount = children.reduce((acc, cur, index) => {\n if (index >= showFieldCount && values?.[cur?.props?.name]) {\n acc++\n }\n return acc\n }, 0)\n\n if (drawerFieldsValueCount !== this.state.drawerFieldsValueCount) {\n this.setState({\n drawerFieldsValueCount,\n })\n }\n }\n }\n\n addResizeListener = () => {\n if ('ResizeObserver' in window) {\n const { current } = this.fieldsRef;\n if (current) {\n const observer = new ResizeObserver(this.onWindowResize);\n\n observer.observe(current)\n\n return () => observer.disconnect()\n }\n } else {\n window.addEventListener('resize', this.onWindowResize)\n return () => window.removeEventListener('resize', this.onWindowResize)\n }\n }\n\n componentDidMount() {\n const { current } = this.fieldsRef\n const { showFieldCount, showExpand = true } = this.props\n\n this.updateFieldHeight()\n\n this.form.on('search', this.search)\n\n // 未设置第一行显示数量且禁止了展开操作 或 自定义了操作区域,则不需要处理展开计算逻辑\n // || renderActions\n if (!showFieldCount && !showExpand) {\n return\n }\n\n if (!showFieldCount) {\n if (current && this.isFieldsWidthOverflow()) {\n this.setState({\n showMore: true,\n })\n }\n\n this.removeResizeListener = this.addResizeListener()\n } else {\n this.updateDrawerFieldsValueCount()\n this.form.on('setValues', this.updateDrawerFieldsValueCount)\n this.form.on('setValue', this.updateDrawerFieldsValueCount)\n }\n }\n\n componentWillUnmount() {\n this.removeResizeListener?.()\n this.form.off('setValues', this.updateDrawerFieldsValueCount)\n this.form.off('setValue', this.updateDrawerFieldsValueCount)\n this.form.off('search', this.search)\n }\n}\n\nQueryForm.Field = Field\nQueryForm.useForm = useForm\nQueryForm.createForm = createActions\n\nexport default QueryForm\n"]}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default function useForm(): {
|
|
2
|
-
setData(key: any, value: any): void;
|
|
3
|
-
getData(key: any): void;
|
|
4
|
-
setValues(values: any): void;
|
|
5
|
-
getValues(): {};
|
|
6
|
-
resetValues(): void;
|
|
7
|
-
setValue(name: any, value: any): void;
|
|
8
|
-
getValue(name: any): any;
|
|
9
|
-
on: (eventName: any, callback: any) => void;
|
|
10
|
-
emit: (...args: any[]) => void;
|
|
11
|
-
off: (...args: any[]) => void;
|
|
12
|
-
}[];
|
|
13
|
-
//# sourceMappingURL=useForm.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useForm.d.ts","sourceRoot":"","sources":["../../src/query-form-v2/useForm.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;IAIC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = useForm;
|
|
7
|
-
var _react = require("react");
|
|
8
|
-
var _createActions = _interopRequireDefault(require("./createActions"));
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
-
function useForm() {
|
|
11
|
-
var form = (0, _react.useRef)((0, _createActions["default"])());
|
|
12
|
-
return [form.current];
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useForm.js","sourceRoot":"","sources":["../../src/query-form-v2/useForm.js"],"names":[],"mappings":";;;;;AAAA,iCAA8B;AAC9B,oEAA2C;AAE3C,SAAwB,OAAO;IAC7B,MAAM,IAAI,GAAG,IAAA,cAAM,EAAC,IAAA,uBAAa,GAAE,CAAC,CAAA;IAEpC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;AACvB,CAAC;AAJD,0BAIC","sourcesContent":["import { useRef } from 'react'\nimport createActions from './createActions'\n\nexport default function useForm() {\n const form = useRef(createActions())\n\n return [form.current]\n}\n"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.d.ts","sourceRoot":"","sources":["../../../src/query-form-v3/Field/Checkbox.js"],"names":[],"mappings":"AAIe;;;;sBAQd"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var _checkbox = _interopRequireDefault(require("../../checkbox"));
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
10
|
-
var __rest = void 0 && (void 0).__rest || function (s, e) {
|
|
11
|
-
var t = {};
|
|
12
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
13
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
14
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
15
|
-
}
|
|
16
|
-
return t;
|
|
17
|
-
};
|
|
18
|
-
var _default = exports["default"] = function _default(_a) {
|
|
19
|
-
var value = _a.value,
|
|
20
|
-
_onChange = _a.onChange,
|
|
21
|
-
props = __rest(_a, ["value", "onChange"]);
|
|
22
|
-
return _react["default"].createElement(_checkbox["default"], Object.assign({}, props, {
|
|
23
|
-
checked: !!value,
|
|
24
|
-
onChange: function onChange(evt) {
|
|
25
|
-
_onChange === null || _onChange === void 0 ? void 0 : _onChange(evt.target.checked);
|
|
26
|
-
}
|
|
27
|
-
}));
|
|
28
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Checkbox.js","sourceRoot":"","sources":["../../../src/query-form-v3/Field/Checkbox.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,kDAAyB;AAEzB,8DAAqC;AAErC,kBAAe,CAAC,EAA6B,EAAE,EAAE;QAAjC,EAAE,KAAK,EAAE,QAAQ,OAAY,EAAP,KAAK,cAA3B,qBAA6B,CAAF;IAAO,OAAA,CAChD,8BAAC,kBAAQ,oBACH,KAAK,IACT,OAAO,EAAE,CAAC,CAAC,KAAK,EAChB,QAAQ,EAAE,CAAC,GAAG,EAAE,EAAE;YAChB,QAAQ,aAAR,QAAQ,uBAAR,QAAQ,CAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,CAAA;QAChC,CAAC,IACD,CACH,CAAA;CAAA,CAAA","sourcesContent":["import React from 'react'\n\nimport Checkbox from '../../checkbox'\n\nexport default ({ value, onChange, ...props }) => (\n <Checkbox\n {...props}\n checked={!!value}\n onChange={(evt) => {\n onChange?.(evt.target.checked)\n }}\n />\n)\n"]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
declare var _default: React.ForwardRefExoticComponent<Pick<{
|
|
2
|
-
[x: string]: any;
|
|
3
|
-
visible: any;
|
|
4
|
-
setVisible: any;
|
|
5
|
-
searchText: any;
|
|
6
|
-
children: any;
|
|
7
|
-
value: any;
|
|
8
|
-
regex: any;
|
|
9
|
-
fieldItems: any;
|
|
10
|
-
propItem: any;
|
|
11
|
-
setFieldItem: any;
|
|
12
|
-
onChange: any;
|
|
13
|
-
form: any;
|
|
14
|
-
locale: any;
|
|
15
|
-
clsPrefix: any;
|
|
16
|
-
}, string | number> & React.RefAttributes<any>>;
|
|
17
|
-
export default _default;
|
|
18
|
-
import React from "react";
|
|
19
|
-
//# sourceMappingURL=FieldPopover.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"FieldPopover.d.ts","sourceRoot":"","sources":["../../../../src/query-form-v3/Field/Composition/FieldPopover.js"],"names":[],"mappings":""}
|