@para-ui/core 3.0.96-rc → 3.0.96
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/AutoBox/index.js +9 -5
- package/AutoTips/index.js +11 -4
- package/Breadcrumbs/index.js +11 -7
- package/Button/index.js +12 -8
- package/ButtonGroup/index.js +12 -8
- package/Carousel/index.js +8 -4
- package/Cascader/index.js +11 -7
- package/Checkbox/index.js +8 -4
- package/CheckboxGroup/index.js +8 -4
- package/Collapse/index.js +5 -1
- package/CollapseBox/index.js +8 -4
- package/CollapseLayout/index.js +10 -6
- package/ColorPicker/index.js +2 -0
- package/ComboSelect/index.js +18 -14
- package/Container/index.js +5 -1
- package/DatePicker/index.js +14 -10
- package/Desktop/index.js +14 -10
- package/DragVerify/index.js +10 -6
- package/Drawer/index.js +12 -8
- package/Dropdown/index.js +4 -3
- package/DynamicMultiBox/index.js +19 -15
- package/Empty/index.js +7 -3
- package/Form/index.js +16 -15
- package/FormItem/index.js +16 -15
- package/FunctionModal/index.js +16 -14
- package/GlobalContext/index.js +3 -3
- package/Help/index.js +8 -4
- package/HelperText/index.js +5 -1
- package/InputLang/index.js +15 -11
- package/InputNumber/index.js +8 -4
- package/Label/index.js +8 -4
- package/Loading/index.js +5 -1
- package/Menu/index.js +9 -5
- package/Message/index.js +8 -4
- package/Modal/index.js +25 -11
- package/MultiBox/index.js +14 -10
- package/Notification/index.js +7 -3
- package/OperateBtn/index.js +13 -9
- package/PageHeader/index.js +13 -9
- package/Pagination/index.js +15 -11
- package/ParauiProvider/index.d.ts +0 -1
- package/ParauiProvider/index.js +7 -3
- package/PasswordRules/index.js +7 -3
- package/PopConfirm/index.js +12 -8
- package/Popover/index.js +9 -5
- package/Progress/index.js +6 -2
- package/Querying/index.js +7 -3
- package/README.md +4 -17
- package/Radio/index.js +8 -4
- package/RadioGroup/index.js +8 -4
- package/Search/index.js +13 -9
- package/Select/index.js +15 -11
- package/SelectInput/index.js +12 -11
- package/Selector/index.js +24 -11
- package/SelectorPicker/index.js +16 -12
- package/SingleBox/index.js +14 -10
- package/Slider/index.js +10 -6
- package/Split/index.js +8 -4
- package/Status/index.js +5 -1
- package/Stepper/index.js +7 -3
- package/Styles/theme.scss +69 -1
- package/Switch/index.js +10 -6
- package/Table/index.js +37 -12
- package/Tabs/index.js +13 -9
- package/Tag/index.js +11 -7
- package/TextEditor/index.js +12 -5
- package/TextField/index.js +12 -8
- package/TimePicker/index.js +11 -10
- package/Timeline/index.js +8 -4
- package/Title/index.js +5 -1
- package/ToggleButton/index.js +13 -9
- package/Tooltip/index.js +8 -4
- package/Transfer/index.js +17 -13
- package/Tree/index.js +13 -12
- package/Upload/index.js +29 -12
- package/_verture/{defineProperty-d4d9efd4.js → defineProperty-62acccfc.js} +1 -1
- package/_verture/{index-81a8bcc8.js → index-697763f2.js} +11 -4
- package/_verture/{index-d6d0b546.js → index-77f9e0fb.js} +6 -2
- package/_verture/index-a369ca3f.js +4 -0
- package/_verture/{closestPolyfill-8e886a31.js → index-be25b2bc.js} +15 -8
- package/_verture/{intl-2de03d12.js → intl-4a9f1b44.js} +1 -1
- package/_verture/{modalContext-6ac8594e.js → modalContext-35081199.js} +8 -4
- package/_verture/{slicedToArray-d9e693d2.js → slicedToArray-76060636.js} +1 -1
- package/_verture/style-inject.es-300983ab.js +28 -0
- package/_verture/{toConsumableArray-0b41c45a.js → toConsumableArray-81040c9e.js} +1 -1
- package/_verture/{utils-13a45f4b.js → utils-c9b9a157.js} +1 -1
- package/index.js +22 -20
- package/package.json +1 -4
- package/umd/ComboSelect.js +1 -1
- package/umd/DynamicMultiBox.js +1 -1
- package/umd/Form.js +1 -1
- package/umd/FormItem.js +1 -1
- package/umd/FunctionModal.js +3 -3
- package/umd/Modal.js +4 -4
- package/umd/ParauiProvider.js +1 -1
- package/umd/Upload.js +2 -2
- package/Styles/theme/theme-api.scss +0 -75
- package/Styles/theme/theme-default.scss +0 -74
- package/_verture/closestPolyfill-f7c93112.js +0 -1354
- package/_verture/constant-e57461ec.js +0 -10
- package/_verture/defineProperty-e14a3528.js +0 -34
- package/_verture/index-5ba535f6.js +0 -340
- package/_verture/index-ad9d2d45.js +0 -232
- package/_verture/index-b68740ef.js +0 -757
- package/_verture/index-c3c58a54.js +0 -18
- package/_verture/intl-a4aa3504.js +0 -81
- package/_verture/modalContext-c0fc65fb.js +0 -197
- package/_verture/slicedToArray-6bd4e68d.js +0 -43
- package/_verture/sortable.esm-64084a06.js +0 -3791
- package/_verture/toConsumableArray-e3923ceb.js +0 -19
- package/_verture/tslib.es6-a8032d26.js +0 -38
- package/_verture/typeof-b09647ab.js +0 -11
- package/_verture/unsupportedIterableToArray-4d94cbc3.js +0 -16
- package/_verture/useFormatMessage-2e03025f.js +0 -20
- package/_verture/useGlobalProps-3375fd77.js +0 -11
- package/_verture/usePopupContainer-b14637e4.js +0 -68
- package/_verture/util-78a49855.js +0 -18
- package/_verture/utils-a9b658f5.js +0 -77
- package/theme/theme-api.css +0 -14173
- package/theme/theme.css +0 -14569
- /package/_verture/{constant-0aabc28f.js → constant-66aa48a1.js} +0 -0
- /package/_verture/{index-66a9d135.js → index-65bbd1e4.js} +0 -0
- /package/_verture/{index-195072d8.js → index-beef914f.js} +0 -0
- /package/_verture/{sortable.esm-3af239dd.js → sortable.esm-49896035.js} +0 -0
- /package/_verture/{tslib.es6-06ab276e.js → tslib.es6-55ed4bd2.js} +0 -0
- /package/_verture/{typeof-0acaee7a.js → typeof-498dd2b1.js} +0 -0
- /package/_verture/{unsupportedIterableToArray-08e778ea.js → unsupportedIterableToArray-cb478f24.js} +0 -0
- /package/_verture/{useFormatMessage-28b2378f.js → useFormatMessage-703f8b20.js} +0 -0
- /package/_verture/{useGlobalProps-19090719.js → useGlobalProps-1b846a65.js} +0 -0
- /package/_verture/{usePopupContainer-b12a6364.js → usePopupContainer-87febeb9.js} +0 -0
- /package/_verture/{util-5abd3644.js → util-7e1fb1e2.js} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
import { _ as _toConsumableArray } from './toConsumableArray-
|
|
2
|
-
import { _ as _defineProperty } from './defineProperty-
|
|
3
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
4
|
-
import { r as regenerator } from './index-
|
|
5
|
-
import { _ as __rest, a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { _ as _toConsumableArray } from './toConsumableArray-81040c9e.js';
|
|
2
|
+
import { _ as _defineProperty } from './defineProperty-62acccfc.js';
|
|
3
|
+
import { _ as _slicedToArray } from './slicedToArray-76060636.js';
|
|
4
|
+
import { r as regenerator } from './index-beef914f.js';
|
|
5
|
+
import { _ as __rest, a as __awaiter } from './tslib.es6-55ed4bd2.js';
|
|
6
6
|
import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
|
|
7
7
|
import React__default, { isValidElement, cloneElement, useRef, useState, useImperativeHandle, useEffect, useMemo } from 'react';
|
|
8
8
|
import RcTree from 'rc-tree';
|
|
9
9
|
import clsx from 'clsx';
|
|
10
|
-
import { _ as _typeof } from './typeof-
|
|
10
|
+
import { _ as _typeof } from './typeof-498dd2b1.js';
|
|
11
11
|
import LoadingOutlined from '@para-ui/icons/LoadingF';
|
|
12
12
|
import FileOutlined from '@para-ui/icons/Document';
|
|
13
13
|
import SolidArrowDown from '@para-ui/icons/DownTriangleF';
|
|
14
14
|
import { Radio } from '../Radio/index.js';
|
|
15
|
-
import { $ as $prefixCls } from './constant-
|
|
15
|
+
import { $ as $prefixCls } from './constant-66aa48a1.js';
|
|
16
16
|
import ReactDOM from 'react-dom';
|
|
17
17
|
import EditOutlinedIcon from '@para-ui/icons/EditFile';
|
|
18
18
|
import AddOutlinedIcon from '@para-ui/icons/PlusCircle';
|
|
@@ -20,7 +20,8 @@ import Delete from '@para-ui/icons/Delete';
|
|
|
20
20
|
import Forbid from '@para-ui/icons/Forbid';
|
|
21
21
|
import { Tooltip } from '../Tooltip/index.js';
|
|
22
22
|
import { UUID, Request } from '@paraview/lib';
|
|
23
|
-
import { u as useFormatMessage } from './useFormatMessage-
|
|
23
|
+
import { u as useFormatMessage } from './useFormatMessage-703f8b20.js';
|
|
24
|
+
import { s as styleInject } from './style-inject.es-300983ab.js';
|
|
24
25
|
import MoreOutlinedIcon from '@para-ui/icons/MoreCircle';
|
|
25
26
|
import Empty from '../Empty/index.js';
|
|
26
27
|
import { Loading } from '../Loading/index.js';
|
|
@@ -264,6 +265,9 @@ var localeJson = {
|
|
|
264
265
|
en: en
|
|
265
266
|
};
|
|
266
267
|
|
|
268
|
+
var css_248z$1 = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.sector-container {\n position: relative;\n z-index: 1500;\n}\n.sector-container .sector-item-container {\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n padding: 0;\n}\n.sector-container .sector-item-container .sector-item {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n position: absolute;\n left: 0;\n top: 0;\n width: 24px;\n height: 24px;\n background-color: rgb(255, 255, 255);\n border-radius: 50%;\n box-shadow: 4px 4px 6px rgba(70, 75, 105, 0.2), -4px -4px 6px rgba(0, 0, 0, 0.06);\n cursor: pointer;\n opacity: 0;\n}\n.sector-container .sector-item-container .sector-item svg {\n font-size: 14px;\n color: rgba(46, 55, 67, 0.7);\n}\n.sector-container .sector-item-container .sector-item:hover {\n color: rgb(54, 102, 214);\n}\n.sector-container .sector-item-container .sector-item:hover svg {\n color: inherit;\n}\n.sector-container .sector-item-container .sector-item--del:hover {\n color: rgb(235, 96, 84);\n}\n.sector-container .sector-item-container .sector-item--del:hover svg {\n color: inherit;\n}";
|
|
269
|
+
styleInject(css_248z$1);
|
|
270
|
+
|
|
267
271
|
//默认扇形按钮图标
|
|
268
272
|
var getIconMap = function getIconMap(intl) {
|
|
269
273
|
return {
|
|
@@ -1351,4 +1355,7 @@ if (!Element.prototype.closest) {
|
|
|
1351
1355
|
};
|
|
1352
1356
|
}
|
|
1353
1357
|
|
|
1358
|
+
var css_248z = "@charset \"UTF-8\";\n/**\n* @author Hanz\n* @date 2021/11/9 下午8:39\n* @description\n*/\n/**\n* @author Hanz\n* @date 2021/10/20 下午2:08\n* @description color\n*/\n.paraui-v3-tree-treenode-leaf-last .paraui-v3-tree-switcher-leaf-line::before {\n top: auto !important;\n bottom: auto !important;\n height: 14px !important;\n}\n\n@keyframes treeCheckboxEffect {\n 0% {\n transform: scale(1);\n opacity: 0.5;\n }\n 100% {\n transform: scale(1.6);\n opacity: 0;\n }\n}\n.paraui-v3-tree-rtl {\n direction: rtl;\n}\n.paraui-v3-tree-rtl .paraui-v3-tree-node-content-wrapper[draggable=true] .paraui-v3-tree-drop-indicator::after {\n right: -6px;\n left: unset;\n}\n.paraui-v3-tree .paraui-v3-tree-treenode-rtl {\n direction: rtl;\n}\n.paraui-v3-tree-rtl .paraui-v3-tree-switcher_close .paraui-v3-tree-switcher-icon svg {\n transform: rotate(90deg);\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-indent-unit::before .paraui-v3-tree-rtl.paraui-v3-tree-show-line .paraui-v3-tree-indent-unit::before {\n right: auto;\n left: -13px;\n border-right: none;\n border-left: 1px solid #d9d9d9;\n}\n.paraui-v3-tree-checkbox .paraui-v3-tree-rtl.paraui-v3-tree-checkbox {\n margin: 4px 0 0 8px;\n}\n\n.paraui-v3-tree-select-dropdown-rtl .paraui-v3-select-tree-checkbox {\n margin: 4px 0 0 8px;\n}\n\n.paraui-v3-tree-checkbox {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgb(46, 55, 67);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n position: relative;\n top: 0.2em;\n line-height: 1;\n white-space: nowrap;\n outline: none;\n cursor: pointer;\n}\n.paraui-v3-tree-checkbox-wrapper:hover .paraui-v3-tree-checkbox-inner, .paraui-v3-tree-checkbox:hover .paraui-v3-tree-checkbox-inner, .paraui-v3-tree-checkbox-input:focus + .paraui-v3-tree-checkbox-inner {\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-tree-checkbox-checked::after {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 1px solid rgb(54, 102, 214);\n border-radius: 2px;\n visibility: hidden;\n animation: treeCheckboxEffect 0.36s ease-in-out;\n animation-fill-mode: backwards;\n content: \"\";\n box-sizing: border-box;\n}\n.paraui-v3-tree-checkbox:hover::after, .paraui-v3-tree-checkbox-wrapper:hover .paraui-v3-tree-checkbox::after {\n visibility: visible;\n}\n.paraui-v3-tree-checkbox-inner {\n position: relative;\n top: 0;\n left: 0;\n display: block;\n width: 16px;\n height: 16px;\n direction: ltr;\n background-color: rgb(255, 255, 255);\n border: 1px solid #d9d9d9;\n border-radius: 2px;\n border-collapse: separate;\n transition: all 0.3s;\n}\n.paraui-v3-tree-checkbox-inner::after {\n position: absolute;\n top: 50%;\n left: 21.5%;\n display: table;\n width: 6px;\n height: 9px;\n border: 2px solid rgb(255, 255, 255);\n border-top: 0;\n border-left: 0;\n transform: rotate(45deg) scale(0) translate(-50%, -50%);\n opacity: 0;\n transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s;\n content: \" \";\n box-sizing: border-box;\n}\n.paraui-v3-tree-checkbox-input {\n position: absolute;\n top: 0;\n right: 0;\n bottom: 0;\n left: 0;\n z-index: 1;\n width: 100%;\n height: 100%;\n cursor: pointer;\n opacity: 0;\n}\n\n.paraui-v3-tree-checkbox-checked .paraui-v3-tree-checkbox-inner::after {\n position: absolute;\n display: table;\n border: 2px solid rgb(255, 255, 255);\n border-top: 0;\n border-left: 0;\n transform: rotate(45deg) scale(1) translate(-50%, -50%);\n opacity: 1;\n transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s;\n content: \" \";\n}\n\n.paraui-v3-tree-checkbox-checked .paraui-v3-tree-checkbox-inner {\n background-color: rgb(54, 102, 214);\n border-color: rgb(54, 102, 214);\n}\n\n.paraui-v3-tree-checkbox-disabled {\n cursor: not-allowed;\n}\n.paraui-v3-tree-checkbox-disabled.paraui-v3-tree-checkbox-checked .paraui-v3-tree-checkbox-inner::after {\n border-color: rgba(0, 0, 0, 0.25);\n animation-name: none;\n}\n.paraui-v3-tree-checkbox-disabled .paraui-v3-tree-checkbox-input {\n cursor: not-allowed;\n}\n.paraui-v3-tree-checkbox-disabled .paraui-v3-tree-checkbox-inner {\n background-color: #f5f5f5;\n border-color: #d9d9d9 !important;\n}\n.paraui-v3-tree-checkbox-disabled .paraui-v3-tree-checkbox-inner::after {\n border-color: #f5f5f5;\n border-collapse: separate;\n animation-name: none;\n}\n.paraui-v3-tree-checkbox-disabled + span {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.paraui-v3-tree-checkbox-disabled:hover::after, .paraui-v3-tree-checkbox-wrapper:hover .paraui-v3-tree-checkbox-disabled::after {\n visibility: hidden;\n}\n\n.paraui-v3-tree-checkbox-wrapper {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgb(46, 55, 67);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n display: inline-flex;\n align-items: baseline;\n line-height: unset;\n cursor: pointer;\n}\n.paraui-v3-tree-checkbox-wrapper.paraui-v3-tree-checkbox-wrapper-disabled {\n cursor: not-allowed;\n}\n.paraui-v3-tree-checkbox-wrapper + .paraui-v3-tree-checkbox-wrapper {\n margin-left: 8px;\n}\n\n.paraui-v3-tree-checkbox + span {\n padding-right: 8px;\n padding-left: 8px;\n}\n\n.paraui-v3-tree-checkbox-group {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgb(46, 55, 67);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n display: inline-block;\n}\n.paraui-v3-tree-checkbox-group-item {\n margin-right: 8px;\n}\n.paraui-v3-tree-checkbox-group-item:last-child {\n margin-right: 0;\n}\n.paraui-v3-tree-checkbox-group-item + .paraui-v3-tree-checkbox-group-item {\n margin-left: 0;\n}\n\n.paraui-v3-tree-checkbox-indeterminate .paraui-v3-tree-checkbox-inner {\n background-color: rgb(54, 102, 214);\n border-color: rgb(54, 102, 214);\n}\n.paraui-v3-tree-checkbox-indeterminate .paraui-v3-tree-checkbox-inner::after {\n top: 50%;\n left: 50%;\n width: 8px;\n height: 2px;\n background-color: rgb(255, 255, 255);\n border: 0;\n transform: translate(-50%, -50%) scale(1);\n opacity: 1;\n content: \" \";\n}\n.paraui-v3-tree-checkbox-indeterminate.paraui-v3-tree-checkbox-disabled .paraui-v3-tree-checkbox-inner::after {\n background-color: rgba(0, 0, 0, 0.25);\n border-color: rgba(0, 0, 0, 0.25);\n}\n\n.paraui-v3-tree-wrapper .paraui-v3-tree-empty {\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.paraui-v3-tree {\n box-sizing: border-box;\n margin: 0;\n padding: 0;\n color: rgb(46, 55, 67);\n font-size: 14px;\n font-variant: tabular-nums;\n line-height: 1.5715;\n list-style: none;\n font-feature-settings: \"tnum\";\n background: rgb(255, 255, 255);\n border-radius: 2px;\n transition: background-color 0.3s;\n}\n.paraui-v3-tree-focused:not(:hover):not(.paraui-v3-tree-active-focused) {\n background: #e6f7ff;\n}\n.paraui-v3-tree-list-holder-inner {\n align-items: flex-start;\n}\n.paraui-v3-tree.paraui-v3-tree-block-node .paraui-v3-tree-list-holder-inner {\n align-items: stretch;\n}\n.paraui-v3-tree.paraui-v3-tree-block-node .paraui-v3-tree-list-holder-inner .paraui-v3-tree-node-content-wrapper {\n flex: auto;\n}\n.paraui-v3-tree .paraui-v3-tree-treenode {\n display: flex;\n align-items: flex-start;\n outline: none;\n}\n.paraui-v3-tree .paraui-v3-tree-treenode-disabled .paraui-v3-tree-node-content-wrapper {\n color: rgba(0, 0, 0, 0.25);\n cursor: not-allowed;\n}\n.paraui-v3-tree .paraui-v3-tree-treenode-disabled .paraui-v3-tree-node-content-wrapper:hover {\n background: transparent;\n}\n.paraui-v3-tree .paraui-v3-tree-treenode-active .paraui-v3-tree-node-content-wrapper {\n background: #f5f5f5;\n}\n.paraui-v3-tree .paraui-v3-tree-treenode:not(.paraui-v3-tree .paraui-v3-tree-treenode-disabled).filter-node .paraui-v3-tree-title {\n color: inherit;\n font-weight: 500;\n}\n.paraui-v3-tree-indent {\n align-self: stretch;\n white-space: nowrap;\n user-select: none;\n}\n.paraui-v3-tree-indent-unit {\n display: inline-block;\n width: 24px;\n}\n.paraui-v3-tree-switcher {\n position: relative;\n flex: none;\n align-self: stretch;\n width: 24px;\n margin: 0;\n line-height: 24px;\n text-align: center;\n cursor: pointer;\n user-select: none;\n}\n.paraui-v3-tree-switcher .paraui-v3-tree-switcher-icon,\n.paraui-v3-tree-switcher .paraui-v3-select-tree-switcher-icon {\n display: inline-block;\n font-size: 14px;\n vertical-align: middle;\n transition: transform 0.3s;\n color: inherit;\n}\n.paraui-v3-tree-switcher .paraui-v3-tree-switcher-icon svg,\n.paraui-v3-tree-switcher .paraui-v3-select-tree-switcher-icon svg {\n font-size: inherit;\n color: inherit;\n transition: transform 0.3s;\n}\n.paraui-v3-tree-switcher-noop {\n cursor: default;\n}\n.paraui-v3-tree-switcher_close .paraui-v3-tree-switcher-icon {\n transform: rotate(-90deg);\n}\n.paraui-v3-tree-switcher_close .paraui-v3-tree-switcher-icon svg {\n color: currentColor;\n transform: rotate(-90deg);\n}\n.paraui-v3-tree-switcher-loading-icon {\n color: rgb(54, 102, 214);\n will-change: transform;\n transition: transform 0.3s ease-in-out;\n animation: treeLoadingCircle 1s infinite linear;\n vertical-align: middle;\n font-size: 14px !important;\n}\n@keyframes treeLoadingCircle {\n 100% {\n transform: rotate(360deg);\n }\n}\n.paraui-v3-tree-switcher-leaf-line {\n position: relative;\n z-index: 1;\n display: inline-block;\n width: 100%;\n height: 100%;\n}\n.paraui-v3-tree-switcher-leaf-line::before {\n position: absolute;\n top: 0;\n bottom: -4px;\n margin-left: -1px;\n border-left: 1px solid #d9d9d9;\n content: \" \";\n}\n.paraui-v3-tree-switcher-leaf-line::after {\n position: absolute;\n width: 10px;\n height: 14px;\n margin-left: -1px;\n border-bottom: 1px solid #d9d9d9;\n content: \" \";\n}\n.paraui-v3-tree-checkbox {\n top: initial;\n margin: 6px 6px 0 0;\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper {\n position: relative;\n z-index: auto;\n min-height: 24px;\n margin: 2px 0 0 0;\n padding: 0 6px;\n color: inherit;\n line-height: 24px;\n background: transparent;\n border-radius: 2px;\n cursor: pointer;\n transition: all 0.3s, border 0s, line-height 0s, box-shadow 0s;\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper:hover {\n background-color: rgba(171, 176, 185, 0.12);\n border-radius: 4px;\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper.paraui-v3-tree-node-selected {\n background-color: transparent;\n color: rgb(54, 102, 214);\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper .paraui-v3-tree-iconEle {\n display: inline-block;\n width: 24px;\n height: 24px;\n margin-left: -6px;\n line-height: 26px;\n text-align: center;\n vertical-align: top;\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper .paraui-v3-tree-iconEle > svg {\n vertical-align: -0.125em;\n color: inherit;\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper .paraui-v3-tree-iconEle:empty {\n display: none;\n}\n.paraui-v3-tree-unselectable .paraui-v3-tree-node-content-wrapper:hover {\n background-color: transparent;\n}\n.paraui-v3-tree-node-content-wrapper[draggable=true] {\n line-height: 24px;\n user-select: none;\n}\n.paraui-v3-tree-node-content-wrapper[draggable=true] .paraui-v3-tree-drop-indicator {\n position: absolute;\n z-index: 1;\n height: 2px;\n background-color: rgb(54, 102, 214);\n border-radius: 1px;\n pointer-events: none;\n}\n.paraui-v3-tree-node-content-wrapper[draggable=true] .paraui-v3-tree-drop-indicator::after {\n position: absolute;\n top: -3px;\n left: -6px;\n width: 8px;\n height: 8px;\n background-color: transparent;\n border: 2px solid rgb(54, 102, 214);\n border-radius: 50%;\n content: \"\";\n}\n.paraui-v3-tree .paraui-v3-tree-treenode.drop-container > [draggable] {\n box-shadow: 0 0 0 2px rgb(54, 102, 214);\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-indent-unit {\n position: relative;\n height: 100%;\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-indent-unit::before {\n position: absolute;\n top: 0;\n right: 12px;\n bottom: -4px;\n border-right: 1px solid #d9d9d9;\n content: \"\";\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-indent-unit-end::before {\n display: none;\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-switcher {\n background: rgb(255, 255, 255);\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-switcher_close svg {\n transform: rotate(-90deg);\n color: inherit;\n font-size: 14px;\n transition: transform 0.3s;\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-switcher_open svg {\n color: inherit;\n font-size: 14px;\n transition: transform 0.3s;\n}\n.paraui-v3-tree-show-line .paraui-v3-tree-switcher-line-icon {\n vertical-align: -0.225em;\n color: inherit;\n font-size: 14px;\n}\n.paraui-v3-tree-node-content-wrapper {\n overflow: hidden;\n display: flex;\n}\n.paraui-v3-tree-node-content-wrapper .paraui-v3-tree-title {\n display: flex;\n align-items: center;\n}\n.paraui-v3-tree-node-content-wrapper .paraui-v3-tree-treenode-more-wrapper {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper--active {\n background-color: rgba(171, 176, 185, 0.12) !important;\n border-radius: 4px !important;\n}\n.paraui-v3-tree .paraui-v3-tree-node-content-wrapper--active .sector-anchor {\n opacity: 1 !important;\n}\n.paraui-v3-tree.paraui-v3-tree-block-node .paraui-v3-tree-list-holder-inner .paraui-v3-tree-node-content-wrapper {\n flex-grow: 0;\n flex-shrink: 1;\n}\n.paraui-v3-tree .paraui-v3-tree-title-wrapper {\n display: inline-flex;\n align-items: center;\n margin: 0 -6px;\n padding: 0 6px;\n overflow: hidden;\n}\n.paraui-v3-tree .paraui-v3-tree-title-wrapper .sector-anchor {\n position: relative;\n width: 14px;\n height: 14px;\n margin: 1px 0 0 18px;\n line-height: 14px;\n opacity: 0;\n transition: opacity 0.3s;\n}\n.paraui-v3-tree .paraui-v3-tree-title-wrapper .sector-anchor:before {\n content: \" \";\n position: absolute;\n left: -9px;\n top: 0;\n width: 1px;\n height: 14px;\n background-color: rgba(171, 176, 185, 0.2);\n pointer-events: none;\n}\n.paraui-v3-tree .paraui-v3-tree-title-wrapper .sector-anchor svg {\n font-size: 14px;\n color: rgba(46, 55, 67, 0.7);\n}\n.paraui-v3-tree .paraui-v3-tree-title-wrapper .sector-anchor--active.sector-anchor svg {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-tree .paraui-v3-tree-title-wrapper--active .sector-anchor {\n opacity: 1;\n}\n.paraui-v3-tree.paraui-v3-tree-radioable .paraui-v3-tree-iconEle {\n position: absolute;\n left: 8px;\n top: 0;\n}\n.paraui-v3-tree.paraui-v3-tree-radioable .paraui-v3-tree-checkbox {\n display: none !important;\n}\n.paraui-v3-tree.paraui-v3-tree-radioable .paraui-v3-tree-checkbox-checked + .paraui-v3-tree-node-content-wrapper {\n color: rgb(54, 102, 214);\n}\n.paraui-v3-tree.paraui-v3-tree-radioable .paraui-v3-tree-node-radio {\n width: 16px;\n height: 16px;\n padding: 0;\n margin-top: 4px;\n}\n.paraui-v3-tree.paraui-v3-tree-radioable-showradio .paraui-v3-tree-node-content-wrapper {\n padding-left: 28px;\n}\n\n.paraui-v3-tree-motion-collapse {\n overflow: hidden;\n transition: height 0.2s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.2s cubic-bezier(0.645, 0.045, 0.355, 1) !important;\n}";
|
|
1359
|
+
styleInject(css_248z);
|
|
1360
|
+
|
|
1354
1361
|
export { Tree as T };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as _typeof } from './typeof-
|
|
1
|
+
import { _ as _typeof } from './typeof-498dd2b1.js';
|
|
2
2
|
|
|
3
3
|
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
4
4
|
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { _ as _toConsumableArray } from './toConsumableArray-
|
|
2
|
-
import { _ as _slicedToArray } from './slicedToArray-
|
|
3
|
-
import { r as regenerator } from './index-
|
|
4
|
-
import { a as __awaiter } from './tslib.es6-
|
|
1
|
+
import { _ as _toConsumableArray } from './toConsumableArray-81040c9e.js';
|
|
2
|
+
import { _ as _slicedToArray } from './slicedToArray-76060636.js';
|
|
3
|
+
import { r as regenerator } from './index-beef914f.js';
|
|
4
|
+
import { a as __awaiter } from './tslib.es6-55ed4bd2.js';
|
|
5
5
|
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
6
6
|
import React__default from 'react';
|
|
7
7
|
import { Modal } from '../Modal/index.js';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
|
+
import { s as styleInject } from './style-inject.es-300983ab.js';
|
|
10
|
+
|
|
11
|
+
var css_248z = ".function-modal-default [class*=makeStyles-md] {\n width: 440px;\n height: auto;\n max-height: initial;\n}";
|
|
12
|
+
styleInject(css_248z);
|
|
9
13
|
|
|
10
14
|
var FDialog = function FDialog(props) {
|
|
11
15
|
var open = props.open,
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
function styleInject(css, ref) {
|
|
2
|
+
if ( ref === void 0 ) ref = {};
|
|
3
|
+
var insertAt = ref.insertAt;
|
|
4
|
+
|
|
5
|
+
if (!css || typeof document === 'undefined') { return; }
|
|
6
|
+
|
|
7
|
+
var head = document.head || document.getElementsByTagName('head')[0];
|
|
8
|
+
var style = document.createElement('style');
|
|
9
|
+
style.type = 'text/css';
|
|
10
|
+
|
|
11
|
+
if (insertAt === 'top') {
|
|
12
|
+
if (head.firstChild) {
|
|
13
|
+
head.insertBefore(style, head.firstChild);
|
|
14
|
+
} else {
|
|
15
|
+
head.appendChild(style);
|
|
16
|
+
}
|
|
17
|
+
} else {
|
|
18
|
+
head.appendChild(style);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (style.styleSheet) {
|
|
22
|
+
style.styleSheet.cssText = css;
|
|
23
|
+
} else {
|
|
24
|
+
style.appendChild(document.createTextNode(css));
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export { styleInject as s };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as _arrayLikeToArray, _ as _unsupportedIterableToArray } from './unsupportedIterableToArray-
|
|
1
|
+
import { a as _arrayLikeToArray, _ as _unsupportedIterableToArray } from './unsupportedIterableToArray-cb478f24.js';
|
|
2
2
|
|
|
3
3
|
function _arrayWithoutHoles(arr) {
|
|
4
4
|
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
package/index.js
CHANGED
|
@@ -11,18 +11,19 @@ export { Collapse } from './Collapse/index.js';
|
|
|
11
11
|
export { default as CollapseBox } from './CollapseBox/index.js';
|
|
12
12
|
export { default as CollapseLayout } from './CollapseLayout/index.js';
|
|
13
13
|
export { ChromePicker, SketchPicker as ColorPicker, CompactPicker, SwatchesPicker } from 'react-color';
|
|
14
|
+
import './_verture/index-a369ca3f.js';
|
|
14
15
|
export { ComboSelect } from './ComboSelect/index.js';
|
|
15
16
|
export { Container } from './Container/index.js';
|
|
16
17
|
export { default as DatePicker } from './DatePicker/index.js';
|
|
17
18
|
export { Desktop } from './Desktop/index.js';
|
|
18
19
|
export { DragVerify } from './DragVerify/index.js';
|
|
19
20
|
export { Drawer } from './Drawer/index.js';
|
|
20
|
-
export { D as Dropdown } from './_verture/index-
|
|
21
|
+
export { D as Dropdown } from './_verture/index-77f9e0fb.js';
|
|
21
22
|
export { default as DynamicMultiBox } from './DynamicMultiBox/index.js';
|
|
22
23
|
export { default as Empty } from './Empty/index.js';
|
|
23
24
|
export { default as Form } from './Form/index.js';
|
|
24
|
-
export { F as FormItem } from './_verture/index-
|
|
25
|
-
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-
|
|
25
|
+
export { F as FormItem } from './_verture/index-697763f2.js';
|
|
26
|
+
export { u as FunctionModal, F as FunctionModalProvider, a as useClose } from './_verture/modalContext-35081199.js';
|
|
26
27
|
export { default as GlobalContext, changeConfirmLocale, getConfirmLocale } from './GlobalContext/index.js';
|
|
27
28
|
export { default as Help } from './Help/index.js';
|
|
28
29
|
export { default as HelperText } from './HelperText/index.js';
|
|
@@ -68,43 +69,44 @@ export { Title } from './Title/index.js';
|
|
|
68
69
|
export { ToggleButton, ToggleButtonGroup } from './ToggleButton/index.js';
|
|
69
70
|
export { Tooltip } from './Tooltip/index.js';
|
|
70
71
|
export { SSortablejs, Transfer } from './Transfer/index.js';
|
|
71
|
-
export { T as Tree } from './_verture/
|
|
72
|
+
export { T as Tree } from './_verture/index-be25b2bc.js';
|
|
72
73
|
export { default as Upload } from './Upload/index.js';
|
|
73
74
|
export { default as locale } from './locale/index.js';
|
|
74
|
-
import './_verture/slicedToArray-
|
|
75
|
-
import './_verture/unsupportedIterableToArray-
|
|
75
|
+
import './_verture/slicedToArray-76060636.js';
|
|
76
|
+
import './_verture/unsupportedIterableToArray-cb478f24.js';
|
|
76
77
|
import 'react/jsx-runtime';
|
|
77
78
|
import 'react';
|
|
78
79
|
import 'react-dom';
|
|
79
80
|
import '@paraview/lib';
|
|
80
|
-
import './_verture/constant-
|
|
81
|
+
import './_verture/constant-66aa48a1.js';
|
|
81
82
|
import '@para-ui/icons/More';
|
|
82
|
-
import './_verture/
|
|
83
|
+
import './_verture/style-inject.es-300983ab.js';
|
|
84
|
+
import './_verture/toConsumableArray-81040c9e.js';
|
|
83
85
|
import '@para-ui/icons/Return';
|
|
84
|
-
import './_verture/useFormatMessage-
|
|
86
|
+
import './_verture/useFormatMessage-703f8b20.js';
|
|
85
87
|
import '@para-ui/core/GlobalContext';
|
|
86
|
-
import './_verture/typeof-
|
|
87
|
-
import './_verture/tslib.es6-
|
|
88
|
+
import './_verture/typeof-498dd2b1.js';
|
|
89
|
+
import './_verture/tslib.es6-55ed4bd2.js';
|
|
88
90
|
import 'clsx';
|
|
89
91
|
import '@para-ui/icons/LoadingF';
|
|
90
92
|
import '@para-ui/icons/Forbid';
|
|
91
93
|
import '@para-ui/icons/Down';
|
|
92
|
-
import './_verture/defineProperty-
|
|
94
|
+
import './_verture/defineProperty-62acccfc.js';
|
|
93
95
|
import 'react-slick';
|
|
94
|
-
import './_verture/index-
|
|
96
|
+
import './_verture/index-beef914f.js';
|
|
95
97
|
import 'rc-cascader';
|
|
96
98
|
import '@para-ui/icons/Right';
|
|
97
99
|
import '@para-ui/icons/Loading';
|
|
98
100
|
import 'rc-collapse';
|
|
99
101
|
import 'react-transition-group';
|
|
100
|
-
import './_verture/util-
|
|
102
|
+
import './_verture/util-7e1fb1e2.js';
|
|
101
103
|
import '@para-ui/icons/DoubleLeft';
|
|
102
104
|
import '@para-ui/icons/DoubleRight';
|
|
103
105
|
import '@para-ui/icons/Search';
|
|
104
106
|
import '@para-ui/icons/Close';
|
|
105
107
|
import '@para-ui/icons/CloseCircle';
|
|
106
|
-
import './_verture/utils-
|
|
107
|
-
import './_verture/useGlobalProps-
|
|
108
|
+
import './_verture/utils-c9b9a157.js';
|
|
109
|
+
import './_verture/useGlobalProps-1b846a65.js';
|
|
108
110
|
import 'rc-picker/es/generate/dayjs';
|
|
109
111
|
import 'rc-picker';
|
|
110
112
|
import '@para-ui/icons/Calendar';
|
|
@@ -115,16 +117,16 @@ import '@para-ui/icons/SortRight';
|
|
|
115
117
|
import '@para-ui/icons/Check';
|
|
116
118
|
import 'rc-drawer';
|
|
117
119
|
import 'rc-dropdown';
|
|
118
|
-
import './_verture/usePopupContainer-
|
|
120
|
+
import './_verture/usePopupContainer-87febeb9.js';
|
|
119
121
|
import 'dayjs';
|
|
120
122
|
import '@para-ui/icons/Panel';
|
|
121
123
|
import '@para-ui/icons/PlusCircleF';
|
|
122
124
|
import '@para-ui/icons/Delete';
|
|
123
125
|
import '@para-ui/icons/Drag';
|
|
124
|
-
import './_verture/sortable.esm-
|
|
126
|
+
import './_verture/sortable.esm-49896035.js';
|
|
125
127
|
import '@para-ui/icons/LinkGroup';
|
|
126
|
-
import './_verture/intl-
|
|
127
|
-
import './_verture/index-
|
|
128
|
+
import './_verture/intl-4a9f1b44.js';
|
|
129
|
+
import './_verture/index-65bbd1e4.js';
|
|
128
130
|
import '@para-ui/icons/Help';
|
|
129
131
|
import '@para-ui/icons/Application';
|
|
130
132
|
import 'rc-input-number';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@para-ui/core",
|
|
3
3
|
"private": false,
|
|
4
|
-
"version": "3.0.96
|
|
4
|
+
"version": "3.0.96",
|
|
5
5
|
"main": "./index.js",
|
|
6
6
|
"typings": "./index.d.ts",
|
|
7
7
|
"description": "Powered by Para FED",
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
"locale": "node locale.js",
|
|
14
14
|
"build:docs": "node run && webpack --config=./config/webpack.dev.config.js",
|
|
15
15
|
"build": "npm run locale && rm -rf dist && rollup -c && npm run build:umd",
|
|
16
|
-
"build:theme": "npm run locale && rm -rf dist && rollup -c rollup.config.css.js && npm run build:umd",
|
|
17
16
|
"build:umd": "webpack --config=./config/webpack.umd.config.js",
|
|
18
17
|
"npm:publish": "./publish.sh"
|
|
19
18
|
},
|
|
@@ -66,7 +65,6 @@
|
|
|
66
65
|
"@babel/preset-typescript": "^7.18.6",
|
|
67
66
|
"@para-snack/core": "^2.1.0",
|
|
68
67
|
"@pmmmwh/react-refresh-webpack-plugin": "^0.5.3",
|
|
69
|
-
"@rollup/plugin-alias": "^5.0.1",
|
|
70
68
|
"@rollup/plugin-babel": "^5.3.1",
|
|
71
69
|
"@rollup/plugin-commonjs": "^22.0.1",
|
|
72
70
|
"@rollup/plugin-json": "^4.1.0",
|
|
@@ -93,7 +91,6 @@
|
|
|
93
91
|
"monaco-editor-webpack-plugin": "^7.1.0",
|
|
94
92
|
"postcss": "^8.4.14",
|
|
95
93
|
"postcss-import": "^14.1.0",
|
|
96
|
-
"postcss-prefix-selector": "^1.16.0",
|
|
97
94
|
"prettier": "^2.6.0",
|
|
98
95
|
"react-app-polyfill": "^3.0.0",
|
|
99
96
|
"react-copy-to-clipboard": "^5.0.3",
|