@pisell/common 0.0.13 → 0.0.15-0
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/build/lowcode/assets-daily.json +67 -0
- package/build/lowcode/assets-dev.json +67 -0
- package/build/lowcode/assets-prod.json +67 -0
- package/build/lowcode/designer.html +302 -0
- package/build/lowcode/index.html +304 -0
- package/build/lowcode/index.js +1 -0
- package/build/lowcode/meta.js +1 -0
- package/build/lowcode/preview.css +1 -0
- package/build/lowcode/preview.html +33 -0
- package/build/lowcode/preview.js +27 -0
- package/build/lowcode/render/default/view.js +20 -0
- package/build/lowcode/view.js +20 -0
- package/es/business-components/colorInput/index.js +25 -29
- package/es/business-components/rechargeOption/index.js +55 -72
- package/es/business-components/selectTag/index.d.ts +1 -1
- package/es/business-components/selectTag/index.js +36 -44
- package/es/business-components/sortModal/index.d.ts +1 -1
- package/es/business-components/sortModal/index.js +14 -19
- package/es/business-components/statistics/index.js +17 -23
- package/es/business-components/tagModal/index.d.ts +1 -1
- package/es/business-components/tagModal/index.js +12 -16
- package/es/business-hooks/useModal/index.d.ts +1 -1
- package/es/business-hooks/useModal/index.js +4 -11
- package/es/business-hooks/useTagModal/index.d.ts +2 -1
- package/es/business-hooks/useTagModal/index.js +12 -16
- package/es/components/ColorPicker/index.js +4 -6
- package/es/components/DragSort/index.d.ts +2 -1
- package/es/components/DragSort/index.js +28 -39
- package/es/components/EditorPreview/index.d.ts +1 -1
- package/es/components/EditorPreview/index.js +3 -8
- package/es/components/Iconfont/index.js +2 -8
- package/es/components/agreement/Detail/index.d.ts +2 -2
- package/es/components/agreement/Detail/index.js +12 -15
- package/es/components/agreement/index.js +14 -18
- package/es/components/avatar/index.js +2 -8
- package/es/components/button/index.d.ts +3 -2
- package/es/components/button/index.js +3 -9
- package/es/components/card/index.d.ts +1 -1
- package/es/components/card/index.js +5 -11
- package/es/components/checkbox/index.d.ts +3 -2
- package/es/components/checkbox/index.js +3 -9
- package/es/components/datePicker/index.d.ts +2 -1
- package/es/components/datePicker/index.js +2 -8
- package/es/components/input/index.d.ts +6 -5
- package/es/components/input/index.js +6 -12
- package/es/components/inputNumber/index.d.ts +2 -1
- package/es/components/inputNumber/index.js +2 -8
- package/es/components/pagination/index.js +1 -8
- package/es/components/radio/index.d.ts +3 -2
- package/es/components/radio/index.js +3 -9
- package/es/components/select/index.d.ts +2 -1
- package/es/components/select/index.js +2 -8
- package/es/components/switch/index.js +1 -8
- package/es/hooks/useTableModal/index.d.ts +1 -1
- package/es/hooks/useTableModal/index.js +2 -5
- package/es/lowcode/button/index.d.ts +5 -0
- package/es/lowcode/button/index.js +6 -0
- package/es/lowcode/checkbox/index.d.ts +10 -0
- package/es/lowcode/checkbox/index.js +11 -0
- package/es/lowcode/index.d.ts +4 -0
- package/es/lowcode/index.js +2 -0
- package/es/script/index.js +3 -1
- package/lib/business-components/selectTag/index.d.ts +1 -1
- package/lib/business-components/sortModal/index.d.ts +1 -1
- package/lib/business-components/tagModal/index.d.ts +1 -1
- package/lib/business-hooks/useModal/index.d.ts +1 -1
- package/lib/business-hooks/useTagModal/index.d.ts +2 -1
- package/lib/components/DragSort/index.d.ts +2 -1
- package/lib/components/DragSort/index.js +6 -5
- package/lib/components/EditorPreview/index.d.ts +1 -1
- package/lib/components/EditorPreview/index.js +12 -1
- package/lib/components/agreement/Detail/index.d.ts +2 -2
- package/lib/components/agreement/Detail/index.js +2 -2
- package/lib/components/button/index.d.ts +3 -2
- package/lib/components/button/index.js +13 -2
- package/lib/components/card/index.d.ts +1 -1
- package/lib/components/card/index.js +2 -1
- package/lib/components/checkbox/index.d.ts +3 -2
- package/lib/components/checkbox/index.js +13 -2
- package/lib/components/datePicker/index.d.ts +2 -1
- package/lib/components/datePicker/index.js +12 -1
- package/lib/components/input/index.d.ts +6 -5
- package/lib/components/input/index.js +16 -5
- package/lib/components/inputNumber/index.d.ts +2 -1
- package/lib/components/inputNumber/index.js +12 -1
- package/lib/components/radio/index.d.ts +3 -2
- package/lib/components/radio/index.js +13 -2
- package/lib/components/select/index.d.ts +2 -1
- package/lib/components/select/index.js +12 -1
- package/lib/hooks/useTableModal/index.d.ts +1 -1
- package/lib/lowcode/button/index.d.ts +5 -0
- package/lib/lowcode/button/index.js +42 -0
- package/lib/lowcode/checkbox/index.d.ts +10 -0
- package/lib/lowcode/checkbox/index.js +42 -0
- package/lib/lowcode/index.d.ts +4 -0
- package/lib/lowcode/index.js +42 -0
- package/lib/script/index.js +6 -1
- package/lowcode/button/meta.ts +324 -0
- package/lowcode/checkbox/meta.ts +92 -0
- package/package.json +16 -7
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
1
|
import { Pagination as AntPagination } from 'antd5';
|
|
8
2
|
import React from 'react';
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
3
|
/**
|
|
11
4
|
* 分页
|
|
12
5
|
* @param props
|
|
13
6
|
* @constructor
|
|
14
7
|
*/
|
|
15
8
|
var Pagination = function Pagination(props) {
|
|
16
|
-
return /*#__PURE__*/
|
|
9
|
+
return /*#__PURE__*/React.createElement(AntPagination, props);
|
|
17
10
|
};
|
|
18
11
|
export default Pagination;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { RadioGroupProps as AntRadioGroupProps, RadioProps as AntRadioProps } from 'antd5';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
export declare type RadioGroupProps = AntRadioGroupProps;
|
|
3
4
|
export declare type RadioProps = AntRadioProps;
|
|
4
5
|
/**
|
|
@@ -7,7 +8,7 @@ export declare type RadioProps = AntRadioProps;
|
|
|
7
8
|
* @constructor
|
|
8
9
|
*/
|
|
9
10
|
declare const Radio: {
|
|
10
|
-
(props: RadioProps): JSX.Element;
|
|
11
|
-
Group: (props: RadioGroupProps) => JSX.Element;
|
|
11
|
+
(props: RadioProps): React.JSX.Element;
|
|
12
|
+
Group: (props: RadioGroupProps) => React.JSX.Element;
|
|
12
13
|
};
|
|
13
14
|
export default Radio;
|
|
@@ -1,11 +1,5 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
1
|
import { Radio as AntRadio } from 'antd5';
|
|
8
|
-
import
|
|
2
|
+
import React from 'react';
|
|
9
3
|
var AntGroup = AntRadio.Group;
|
|
10
4
|
/**
|
|
11
5
|
* 单选框
|
|
@@ -13,7 +7,7 @@ var AntGroup = AntRadio.Group;
|
|
|
13
7
|
* @constructor
|
|
14
8
|
*/
|
|
15
9
|
var Radio = function Radio(props) {
|
|
16
|
-
return /*#__PURE__*/
|
|
10
|
+
return /*#__PURE__*/React.createElement(AntRadio, props);
|
|
17
11
|
};
|
|
18
12
|
|
|
19
13
|
/**
|
|
@@ -22,7 +16,7 @@ var Radio = function Radio(props) {
|
|
|
22
16
|
* @constructor
|
|
23
17
|
*/
|
|
24
18
|
var Group = function Group(props) {
|
|
25
|
-
return /*#__PURE__*/
|
|
19
|
+
return /*#__PURE__*/React.createElement(AntGroup, props);
|
|
26
20
|
};
|
|
27
21
|
Radio.Group = Group;
|
|
28
22
|
export default Radio;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { SelectProps as AntSelectProps } from 'antd5';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
export declare type SelectProps = AntSelectProps;
|
|
3
|
-
declare const Select: (props: SelectProps) => JSX.Element;
|
|
4
|
+
declare const Select: (props: SelectProps) => React.JSX.Element;
|
|
4
5
|
export default Select;
|
|
@@ -1,12 +1,6 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
1
|
import { Select as AntSelect } from 'antd5';
|
|
8
|
-
import
|
|
2
|
+
import React from 'react';
|
|
9
3
|
var Select = function Select(props) {
|
|
10
|
-
return /*#__PURE__*/
|
|
4
|
+
return /*#__PURE__*/React.createElement(AntSelect, props);
|
|
11
5
|
};
|
|
12
6
|
export default Select;
|
|
@@ -1,18 +1,11 @@
|
|
|
1
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
2
|
-
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
3
|
-
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
4
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
5
|
-
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
|
-
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
1
|
import { Switch as AntSwitch } from 'antd5';
|
|
8
2
|
import React from 'react';
|
|
9
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
3
|
/**
|
|
11
4
|
* 开关
|
|
12
5
|
* @param props
|
|
13
6
|
* @constructor
|
|
14
7
|
*/
|
|
15
8
|
var Switch = function Switch(props) {
|
|
16
|
-
return /*#__PURE__*/
|
|
9
|
+
return /*#__PURE__*/React.createElement(AntSwitch, props);
|
|
17
10
|
};
|
|
18
11
|
export default Switch;
|
|
@@ -8,5 +8,5 @@ interface useModalProps {
|
|
|
8
8
|
children: React.ReactNode;
|
|
9
9
|
title: React.ReactNode;
|
|
10
10
|
}
|
|
11
|
-
declare const useTableModal: (props: Partial<useModalProps>) => JSX.Element;
|
|
11
|
+
declare const useTableModal: (props: Partial<useModalProps>) => React.JSX.Element;
|
|
12
12
|
export default useTableModal;
|
|
@@ -13,13 +13,10 @@ import useModal from "../../business-hooks/useModal";
|
|
|
13
13
|
* @Describe: 其余参数与Modal一致
|
|
14
14
|
* @Author: Wzw
|
|
15
15
|
*/
|
|
16
|
-
|
|
17
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
16
|
+
|
|
18
17
|
var useTableModal = function useTableModal(props) {
|
|
19
18
|
var _useModal = useModal({}),
|
|
20
19
|
content = _useModal.content;
|
|
21
|
-
return /*#__PURE__*/
|
|
22
|
-
children: content
|
|
23
|
-
});
|
|
20
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, content);
|
|
24
21
|
};
|
|
25
22
|
export default useTableModal;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { CheckboxProps } from '../../components/checkbox';
|
|
3
|
+
export declare type LowCodeCheckboxProps = CheckboxProps;
|
|
4
|
+
/**
|
|
5
|
+
* 多选框
|
|
6
|
+
* @param props
|
|
7
|
+
* @constructor
|
|
8
|
+
*/
|
|
9
|
+
declare const LowCodeCheckbox: (props: LowCodeCheckboxProps) => React.JSX.Element;
|
|
10
|
+
export default LowCodeCheckbox;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import Checkbox from "../../components/checkbox";
|
|
3
|
+
/**
|
|
4
|
+
* 多选框
|
|
5
|
+
* @param props
|
|
6
|
+
* @constructor
|
|
7
|
+
*/
|
|
8
|
+
var LowCodeCheckbox = function LowCodeCheckbox(props) {
|
|
9
|
+
return /*#__PURE__*/React.createElement(Checkbox, props);
|
|
10
|
+
};
|
|
11
|
+
export default LowCodeCheckbox;
|
package/es/script/index.js
CHANGED
|
@@ -4,6 +4,7 @@ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o =
|
|
|
4
4
|
function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
|
|
5
5
|
function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
|
|
6
6
|
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
|
|
7
|
+
import { fileURLToPath } from 'url';
|
|
7
8
|
import deploy from "./deploy.js";
|
|
8
9
|
import { loadJSON } from "./utils/index.js";
|
|
9
10
|
var args = process.argv.slice(2);
|
|
@@ -13,6 +14,7 @@ var isVersion = function isVersion(v) {
|
|
|
13
14
|
var isHelp = function isHelp(v) {
|
|
14
15
|
return ['-h', '--help', '-H'].includes(v);
|
|
15
16
|
};
|
|
17
|
+
var __dirname = path.dirname(fileURLToPath(import.meta.url));
|
|
16
18
|
(function () {
|
|
17
19
|
try {
|
|
18
20
|
var params = args.slice(1);
|
|
@@ -21,7 +23,7 @@ var isHelp = function isHelp(v) {
|
|
|
21
23
|
deploy.apply(void 0, _toConsumableArray(params));
|
|
22
24
|
break;
|
|
23
25
|
case isVersion(args[0]):
|
|
24
|
-
console.log("@pisell/common@".concat(loadJSON('../../package.json').version));
|
|
26
|
+
console.log("@pisell/common@".concat(loadJSON(path.join(__dirname, '../../package.json')).version));
|
|
25
27
|
break;
|
|
26
28
|
case isHelp(args[0]):
|
|
27
29
|
console.log('pisell -h --help -H [全部命令]');
|
|
@@ -21,5 +21,5 @@ export interface SelectTagProps<T> extends Omit<SelectProps, 'options'> {
|
|
|
21
21
|
label: string;
|
|
22
22
|
}[];
|
|
23
23
|
}
|
|
24
|
-
declare const SelectTag: <T extends Value>(props: SelectTagProps<T>) => JSX.Element;
|
|
24
|
+
declare const SelectTag: <T extends Value>(props: SelectTagProps<T>) => React.JSX.Element;
|
|
25
25
|
export default SelectTag;
|
|
@@ -26,5 +26,5 @@ export interface SortModalProps<T> {
|
|
|
26
26
|
hideModal: () => void;
|
|
27
27
|
}>;
|
|
28
28
|
}
|
|
29
|
-
declare const SortModal: <T extends Record<string, any>>(props: SortModalProps<T>) => JSX.Element;
|
|
29
|
+
declare const SortModal: <T extends Record<string, any>>(props: SortModalProps<T>) => React.JSX.Element;
|
|
30
30
|
export default SortModal;
|
|
@@ -13,5 +13,5 @@ export interface TagModalProps<T> extends useModalProps {
|
|
|
13
13
|
hideModal: () => void;
|
|
14
14
|
}>;
|
|
15
15
|
}
|
|
16
|
-
declare const TagModal: <T extends string | number>(props: TagModalProps<T>) => JSX.Element;
|
|
16
|
+
declare const TagModal: <T extends string | number>(props: TagModalProps<T>) => React.JSX.Element;
|
|
17
17
|
export default TagModal;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
1
2
|
import { useModalProps } from '../useModal';
|
|
2
3
|
export interface TagDataType<T> {
|
|
3
4
|
value: T;
|
|
@@ -12,6 +13,6 @@ declare const useTagModal: <T extends string | number>(props: UseTagModalProps<T
|
|
|
12
13
|
showModal: () => void;
|
|
13
14
|
hideModal: () => void;
|
|
14
15
|
visible: boolean;
|
|
15
|
-
content: JSX.Element;
|
|
16
|
+
content: import("react").JSX.Element;
|
|
16
17
|
};
|
|
17
18
|
export default useTagModal;
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const DragDrop: ({ onChange, children, list, droppableId, draggableIdKey, droppableClassName, draggableClassName, footer, direction, isDragDisabled, }: any) => React.JSX.Element;
|
|
2
3
|
export default DragDrop;
|
|
@@ -32,9 +32,10 @@ __export(DragSort_exports, {
|
|
|
32
32
|
default: () => DragSort_default
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(DragSort_exports);
|
|
35
|
-
var import_react_beautiful_dnd = require("react-beautiful-dnd");
|
|
36
35
|
var import_array_move = __toESM(require("array-move"));
|
|
37
36
|
var import_classnames = __toESM(require("classnames"));
|
|
37
|
+
var import_react = __toESM(require("react"));
|
|
38
|
+
var import_react_beautiful_dnd = require("react-beautiful-dnd");
|
|
38
39
|
var import_utils = require("../../utils");
|
|
39
40
|
var DragDrop = ({
|
|
40
41
|
onChange,
|
|
@@ -48,7 +49,7 @@ var DragDrop = ({
|
|
|
48
49
|
direction = "vertical",
|
|
49
50
|
isDragDisabled
|
|
50
51
|
}) => {
|
|
51
|
-
|
|
52
|
+
const newDroppableId = droppableId || (0, import_utils.getUniqueId)("droppableId_");
|
|
52
53
|
const handleDragEnd = (result) => {
|
|
53
54
|
if (result.destination) {
|
|
54
55
|
onChange && onChange(
|
|
@@ -64,14 +65,14 @@ var DragDrop = ({
|
|
|
64
65
|
return draggableIdKey ? String(item[draggableIdKey]) : String(item);
|
|
65
66
|
}
|
|
66
67
|
};
|
|
67
|
-
return /* @__PURE__ */
|
|
68
|
+
return /* @__PURE__ */ import_react.default.createElement(import_react_beautiful_dnd.DragDropContext, { onDragEnd: handleDragEnd }, /* @__PURE__ */ import_react.default.createElement(import_react_beautiful_dnd.Droppable, { droppableId: newDroppableId, direction }, (provided) => /* @__PURE__ */ import_react.default.createElement(
|
|
68
69
|
"div",
|
|
69
70
|
{
|
|
70
71
|
...provided.droppableProps,
|
|
71
72
|
ref: provided.innerRef,
|
|
72
73
|
className: (0, import_classnames.default)(droppableClassName)
|
|
73
74
|
},
|
|
74
|
-
list.map((item, index) => /* @__PURE__ */
|
|
75
|
+
list.map((item, index) => /* @__PURE__ */ import_react.default.createElement(
|
|
75
76
|
import_react_beautiful_dnd.Draggable,
|
|
76
77
|
{
|
|
77
78
|
key: getDraggableId(item, index),
|
|
@@ -79,7 +80,7 @@ var DragDrop = ({
|
|
|
79
80
|
index,
|
|
80
81
|
isDragDisabled: !!isDragDisabled
|
|
81
82
|
},
|
|
82
|
-
(provided2) => /* @__PURE__ */
|
|
83
|
+
(provided2) => /* @__PURE__ */ import_react.default.createElement(
|
|
83
84
|
"div",
|
|
84
85
|
{
|
|
85
86
|
className: (0, import_classnames.default)(
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __export = (target, all) => {
|
|
6
8
|
for (var name in all)
|
|
@@ -14,6 +16,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
14
16
|
}
|
|
15
17
|
return to;
|
|
16
18
|
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
17
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
28
|
|
|
19
29
|
// src/components/EditorPreview/index.tsx
|
|
@@ -22,9 +32,10 @@ __export(EditorPreview_exports, {
|
|
|
22
32
|
default: () => EditorPreview_default
|
|
23
33
|
});
|
|
24
34
|
module.exports = __toCommonJS(EditorPreview_exports);
|
|
35
|
+
var import_react = __toESM(require("react"));
|
|
25
36
|
var import_index = require("./index.less");
|
|
26
37
|
var EditorPreivew = (props) => {
|
|
27
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ import_react.default.createElement(
|
|
28
39
|
"div",
|
|
29
40
|
{
|
|
30
41
|
...props,
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
declare const _default:
|
|
1
|
+
import React from 'react';
|
|
2
|
+
declare const _default: React.ForwardRefExoticComponent<React.RefAttributes<unknown>>;
|
|
3
3
|
export default _default;
|
|
@@ -34,7 +34,7 @@ __export(Detail_exports, {
|
|
|
34
34
|
module.exports = __toCommonJS(Detail_exports);
|
|
35
35
|
var import_ahooks = require("ahooks");
|
|
36
36
|
var import_antd5 = require("antd5");
|
|
37
|
-
var import_react = require("react");
|
|
37
|
+
var import_react = __toESM(require("react"));
|
|
38
38
|
var import_business_hooks = require("../../../business-hooks");
|
|
39
39
|
var import_EditorPreview = __toESM(require("../../EditorPreview"));
|
|
40
40
|
var import_serve = require("./serve");
|
|
@@ -59,7 +59,7 @@ var AgreementDetail = ({}, ref) => {
|
|
|
59
59
|
}, [data, current]);
|
|
60
60
|
const { showModal, content } = (0, import_business_hooks.useModal)({
|
|
61
61
|
title: detail.title,
|
|
62
|
-
children: /* @__PURE__ */
|
|
62
|
+
children: /* @__PURE__ */ import_react.default.createElement(import_antd5.Spin, { spinning: _getPolicyDetail.loading }, /* @__PURE__ */ import_react.default.createElement("div", { style: { minHeight: 400 } }, /* @__PURE__ */ import_react.default.createElement(
|
|
63
63
|
import_EditorPreview.default,
|
|
64
64
|
{
|
|
65
65
|
dangerouslySetInnerHTML: {
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { ButtonProps as AntButtonProps } from 'antd5';
|
|
2
2
|
import type { ButtonGroupProps as AntButtonGroupProps } from 'antd5/es/button';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
/**
|
|
4
5
|
* 后续可添加属性
|
|
5
6
|
*/
|
|
@@ -11,7 +12,7 @@ export declare type ButtonGroupProps = AntButtonGroupProps;
|
|
|
11
12
|
* @constructor
|
|
12
13
|
*/
|
|
13
14
|
declare const Button: {
|
|
14
|
-
(props: ButtonProps): JSX.Element;
|
|
15
|
-
Group: (props: ButtonGroupProps) => JSX.Element;
|
|
15
|
+
(props: ButtonProps): React.JSX.Element;
|
|
16
|
+
Group: (props: ButtonGroupProps) => React.JSX.Element;
|
|
16
17
|
};
|
|
17
18
|
export default Button;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __export = (target, all) => {
|
|
6
8
|
for (var name in all)
|
|
@@ -14,6 +16,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
14
16
|
}
|
|
15
17
|
return to;
|
|
16
18
|
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
17
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
28
|
|
|
19
29
|
// src/components/button/index.tsx
|
|
@@ -23,12 +33,13 @@ __export(button_exports, {
|
|
|
23
33
|
});
|
|
24
34
|
module.exports = __toCommonJS(button_exports);
|
|
25
35
|
var import_antd5 = require("antd5");
|
|
36
|
+
var import_react = __toESM(require("react"));
|
|
26
37
|
var { Group: AntGroup } = import_antd5.Button;
|
|
27
38
|
var Button = (props) => {
|
|
28
|
-
return /* @__PURE__ */
|
|
39
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd5.Button, { ...props });
|
|
29
40
|
};
|
|
30
41
|
var Group = (props) => {
|
|
31
|
-
return /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ import_react.default.createElement(AntGroup, { ...props });
|
|
32
43
|
};
|
|
33
44
|
Button.Group = Group;
|
|
34
45
|
var button_default = Button;
|
|
@@ -33,9 +33,10 @@ __export(card_exports, {
|
|
|
33
33
|
});
|
|
34
34
|
module.exports = __toCommonJS(card_exports);
|
|
35
35
|
var import_classnames = __toESM(require("classnames"));
|
|
36
|
+
var import_react = __toESM(require("react"));
|
|
36
37
|
var import_index = require("./index.less");
|
|
37
38
|
var Card = (props) => {
|
|
38
|
-
return /* @__PURE__ */
|
|
39
|
+
return /* @__PURE__ */ import_react.default.createElement("div", { ...props, className: (0, import_classnames.default)("pisell-card", props.className) }, props.children);
|
|
39
40
|
};
|
|
40
41
|
var card_default = Card;
|
|
41
42
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { CheckboxGroupProps as AntCheckboxGroupProps } from 'antd/es/checkbox';
|
|
2
2
|
import type { CheckboxProps as AntCheckboxProps } from 'antd5';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
/**
|
|
4
5
|
* 后续可添加属性
|
|
5
6
|
*/
|
|
@@ -14,7 +15,7 @@ export declare type CheckboxGroupProps = AntCheckboxGroupProps;
|
|
|
14
15
|
* @constructor
|
|
15
16
|
*/
|
|
16
17
|
declare const Checkbox: {
|
|
17
|
-
(props: CheckboxProps): JSX.Element;
|
|
18
|
-
Group: (props:
|
|
18
|
+
(props: CheckboxProps): React.JSX.Element;
|
|
19
|
+
Group: (props: AntCheckboxGroupProps) => React.JSX.Element;
|
|
19
20
|
};
|
|
20
21
|
export default Checkbox;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __export = (target, all) => {
|
|
6
8
|
for (var name in all)
|
|
@@ -14,6 +16,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
14
16
|
}
|
|
15
17
|
return to;
|
|
16
18
|
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
17
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
28
|
|
|
19
29
|
// src/components/checkbox/index.tsx
|
|
@@ -23,12 +33,13 @@ __export(checkbox_exports, {
|
|
|
23
33
|
});
|
|
24
34
|
module.exports = __toCommonJS(checkbox_exports);
|
|
25
35
|
var import_antd5 = require("antd5");
|
|
36
|
+
var import_react = __toESM(require("react"));
|
|
26
37
|
var { Group: AntGroup } = import_antd5.Checkbox;
|
|
27
38
|
var Checkbox = (props) => {
|
|
28
|
-
return /* @__PURE__ */
|
|
39
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd5.Checkbox, { ...props });
|
|
29
40
|
};
|
|
30
41
|
var Group = (props) => {
|
|
31
|
-
return /* @__PURE__ */
|
|
42
|
+
return /* @__PURE__ */ import_react.default.createElement(AntGroup, { ...props });
|
|
32
43
|
};
|
|
33
44
|
Checkbox.Group = Group;
|
|
34
45
|
var checkbox_default = Checkbox;
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { DatePickerProps as AntDatePickerProps } from 'antd5';
|
|
2
|
+
import React from 'react';
|
|
2
3
|
export declare type DatePickerProps = AntDatePickerProps;
|
|
3
4
|
/**
|
|
4
5
|
* 日期选择框
|
|
5
6
|
* @param props
|
|
6
7
|
* @constructor
|
|
7
8
|
*/
|
|
8
|
-
declare const DatePicker: (props: DatePickerProps) => JSX.Element;
|
|
9
|
+
declare const DatePicker: (props: DatePickerProps) => React.JSX.Element;
|
|
9
10
|
export default DatePicker;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
+
var __create = Object.create;
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
4
6
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
7
|
var __export = (target, all) => {
|
|
6
8
|
for (var name in all)
|
|
@@ -14,6 +16,14 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
14
16
|
}
|
|
15
17
|
return to;
|
|
16
18
|
};
|
|
19
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
20
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
21
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
22
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
23
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
24
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
25
|
+
mod
|
|
26
|
+
));
|
|
17
27
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
18
28
|
|
|
19
29
|
// src/components/datePicker/index.tsx
|
|
@@ -23,8 +33,9 @@ __export(datePicker_exports, {
|
|
|
23
33
|
});
|
|
24
34
|
module.exports = __toCommonJS(datePicker_exports);
|
|
25
35
|
var import_antd5 = require("antd5");
|
|
36
|
+
var import_react = __toESM(require("react"));
|
|
26
37
|
var DatePicker = (props) => {
|
|
27
|
-
return /* @__PURE__ */
|
|
38
|
+
return /* @__PURE__ */ import_react.default.createElement(import_antd5.DatePicker, { ...props });
|
|
28
39
|
};
|
|
29
40
|
var datePicker_default = DatePicker;
|
|
30
41
|
// Annotate the CommonJS export names for ESM import in node:
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import type { InputProps as AntInputProps } from 'antd5';
|
|
2
2
|
import { GroupProps as AntGroupProps, PasswordProps as AntPasswordProps, SearchProps as AntSearchProps, TextAreaProps as AntTextAreaProps } from 'antd5/es/input';
|
|
3
|
+
import React from 'react';
|
|
3
4
|
/**
|
|
4
5
|
* 后续可添加属性
|
|
5
6
|
*/
|
|
@@ -26,10 +27,10 @@ export declare type GroupProps = AntGroupProps;
|
|
|
26
27
|
* @constructor
|
|
27
28
|
*/
|
|
28
29
|
declare const Input: {
|
|
29
|
-
(props: InputProps): JSX.Element;
|
|
30
|
-
TextArea: (props: TextAreaProps) => JSX.Element;
|
|
31
|
-
Search: (props: SearchProps) => JSX.Element;
|
|
32
|
-
Password: (props: PasswordProps) => JSX.Element;
|
|
33
|
-
Group: (props: GroupProps) => JSX.Element;
|
|
30
|
+
(props: InputProps): React.JSX.Element;
|
|
31
|
+
TextArea: (props: TextAreaProps) => React.JSX.Element;
|
|
32
|
+
Search: (props: SearchProps) => React.JSX.Element;
|
|
33
|
+
Password: (props: PasswordProps) => React.JSX.Element;
|
|
34
|
+
Group: (props: GroupProps) => React.JSX.Element;
|
|
34
35
|
};
|
|
35
36
|
export default Input;
|