@kne/super-select 0.1.34 → 0.1.36
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/dist/index.css +179 -170
- package/dist/index.css.map +1 -1
- package/dist/index.js +380 -419
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +23 -12
- package/dist/index.modern.js.map +1 -1
- package/package.json +2 -1
package/dist/index.modern.js
CHANGED
|
@@ -15,7 +15,9 @@ import 'simplebar-react/dist/simplebar.min.css';
|
|
|
15
15
|
import SearchInput from '@kne/search-input';
|
|
16
16
|
import { FetchScrollLoader } from '@kne/scroll-loader';
|
|
17
17
|
import '@kne/scroll-loader/dist/index.css';
|
|
18
|
-
import
|
|
18
|
+
import TableView from '@kne/table-view';
|
|
19
|
+
import '@kne/table-view/dist/index.css';
|
|
20
|
+
import { CentralContent } from '@kne/info-page';
|
|
19
21
|
import '@kne/info-page/dist/index.css';
|
|
20
22
|
import memoize from 'lodash/memoize';
|
|
21
23
|
import isNil from 'lodash/isNil';
|
|
@@ -46,7 +48,7 @@ const {
|
|
|
46
48
|
useContext
|
|
47
49
|
} = context;
|
|
48
50
|
|
|
49
|
-
var style$6 = {"select-input":"
|
|
51
|
+
var style$6 = {"select-input":"kne-super-select_d8lGc","disabled":"kne-super-select_3kjwO","wrap":"kne-super-select_dsTM2","select-input-inner":"kne-super-select_NQoX9","large":"kne-super-select_T8ZX8","small":"kne-super-select_1B72H","single-label":"kne-super-select_pL0tE","tag-item":"kne-super-select_lc4o7","tag-label":"kne-super-select_RJmlD","overflow-tag":"kne-super-select_aHua2","measure-layer":"kne-super-select_QoQpC","select-input-icon":"kne-super-select_g8QC-","placeholder":"kne-super-select_r3q69","overlay-content":"kne-super-select_zEqGe","overlay":"kne-super-select_ybN30","select-input-prefix":"kne-super-select_4Pw75","select-input-suffix":"kne-super-select_Wd4pE"};
|
|
50
52
|
|
|
51
53
|
const locale$1 = {
|
|
52
54
|
placeholder: '请选择',
|
|
@@ -254,9 +256,11 @@ const SelectInput = createWithIntlProvider({
|
|
|
254
256
|
} = contextProps;
|
|
255
257
|
const {
|
|
256
258
|
placeholder,
|
|
257
|
-
children
|
|
259
|
+
children,
|
|
260
|
+
overlayClassName
|
|
258
261
|
} = props;
|
|
259
262
|
return /*#__PURE__*/React.createElement(Modal, {
|
|
263
|
+
className: overlayClassName,
|
|
260
264
|
width: 1000,
|
|
261
265
|
open: open,
|
|
262
266
|
title: placeholder,
|
|
@@ -281,6 +285,10 @@ const SelectInput = createWithIntlProvider({
|
|
|
281
285
|
className,
|
|
282
286
|
maxLength,
|
|
283
287
|
overlayClassName,
|
|
288
|
+
overlayStyle,
|
|
289
|
+
align,
|
|
290
|
+
autoAdjustOverflow,
|
|
291
|
+
transitionName,
|
|
284
292
|
single,
|
|
285
293
|
labelWrap,
|
|
286
294
|
isPopup,
|
|
@@ -471,6 +479,10 @@ const SelectInput = createWithIntlProvider({
|
|
|
471
479
|
placement: placement,
|
|
472
480
|
arrow: false,
|
|
473
481
|
overlayClassName: classnames(style$6['overlay'], overlayClassName),
|
|
482
|
+
overlayStyle: overlayStyle,
|
|
483
|
+
align: align,
|
|
484
|
+
autoAdjustOverflow: autoAdjustOverflow,
|
|
485
|
+
transitionName: transitionName,
|
|
474
486
|
trigger: "click",
|
|
475
487
|
popupRender: () => /*#__PURE__*/React.createElement("div", {
|
|
476
488
|
style: {
|
|
@@ -488,7 +500,7 @@ const SelectInput = createWithIntlProvider({
|
|
|
488
500
|
}), /*#__PURE__*/React.createElement(ModalContent, contextProps, renderModal)));
|
|
489
501
|
}));
|
|
490
502
|
|
|
491
|
-
var style$5 = {"selected-all":"
|
|
503
|
+
var style$5 = {"selected-all":"kne-super-select_prlgN"};
|
|
492
504
|
|
|
493
505
|
const SelectedAll = createWithIntlProvider('zh-CN', locale$1, 'super-select')(() => {
|
|
494
506
|
const {
|
|
@@ -536,7 +548,7 @@ const computedIsSelectAll = (value, selectedAllValue, valueKey = 'value') => {
|
|
|
536
548
|
return (value == null ? void 0 : value.length) === 1 && get(value, `[0][${valueKey}]`) === selectedAllValue[valueKey];
|
|
537
549
|
};
|
|
538
550
|
|
|
539
|
-
var style$4 = {"label":"
|
|
551
|
+
var style$4 = {"label":"kne-super-select_l3KoW","tag-list":"kne-super-select_CCPzb","tag-container":"kne-super-select_dKZHi","tag-container-inner":"kne-super-select_oijCI","tag":"kne-super-select_WmnnS","tag-inner":"kne-super-select_TMcFl"};
|
|
540
552
|
|
|
541
553
|
const SelectedTagList = createWithIntlProvider('zh-CN', locale$1, 'super-select')(() => {
|
|
542
554
|
const {
|
|
@@ -582,7 +594,7 @@ const SelectedTagList = createWithIntlProvider('zh-CN', locale$1, 'super-select'
|
|
|
582
594
|
}))));
|
|
583
595
|
});
|
|
584
596
|
|
|
585
|
-
var style$3 = {"list":"
|
|
597
|
+
var style$3 = {"list":"kne-super-select_IsXdU","is-popup":"kne-super-select_-dvpa","empty":"kne-super-select_SQZ8k","default-list":"kne-super-select_QD1Mz","is-selected-all":"kne-super-select_M-mOy","default-list-item":"kne-super-select_KtOsz","is-selected":"kne-super-select_TQhBB","single-checked":"kne-super-select_2rUrh","is-disabled":"kne-super-select_NbwX5","selected-all":"kne-super-select_vN2Fx","selected-tag":"kne-super-select_6oITk","select-search":"kne-super-select_iAH9D","select-list-item-description":"kne-super-select_TCkeJ","footer":"kne-super-select_v3f23"};
|
|
586
598
|
|
|
587
599
|
const _excluded$2 = ["children"];
|
|
588
600
|
const SelectList = forwardRef((_ref, ref) => {
|
|
@@ -790,7 +802,7 @@ const SelectList = forwardRef((_ref, ref) => {
|
|
|
790
802
|
});
|
|
791
803
|
});
|
|
792
804
|
|
|
793
|
-
var style$2 = {"
|
|
805
|
+
var style$2 = {"table":"kne-super-select_zE-14","list":"kne-super-select_DrEYJ","is-popup":"kne-super-select_KgWTX","empty":"kne-super-select_5Tyrt","right-options":"kne-super-select_UXi-g","no-padding-btn":"kne-super-select_iaCir","tag":"kne-super-select_JkYqS","tag-inner":"kne-super-select_VZlBL","single-checked":"kne-super-select_Eiz-u","select-search":"kne-super-select_temy6","tags-search":"kne-super-select_7phL2","descriptions":"kne-super-select_ttNK9","footer":"kne-super-select_lISfA"};
|
|
794
806
|
|
|
795
807
|
const SelectTableList = createWithIntlProvider('zh-CN', locale$1, 'super-select')(forwardRef((p, ref) => {
|
|
796
808
|
const {
|
|
@@ -936,10 +948,9 @@ const SelectTableList = createWithIntlProvider('zh-CN', locale$1, 'super-select'
|
|
|
936
948
|
}
|
|
937
949
|
},
|
|
938
950
|
render: ({
|
|
939
|
-
header,
|
|
940
951
|
renderBody
|
|
941
952
|
}) => {
|
|
942
|
-
return /*#__PURE__*/React.createElement(
|
|
953
|
+
return /*#__PURE__*/React.createElement(FetchScrollLoader, _extends({}, props, {
|
|
943
954
|
className: classnames(style$2['list'], 'select-table-list-scroll-list', {
|
|
944
955
|
'is-popup': isPopup
|
|
945
956
|
}),
|
|
@@ -982,7 +993,7 @@ const SelectTableList = createWithIntlProvider('zh-CN', locale$1, 'super-select'
|
|
|
982
993
|
});
|
|
983
994
|
}
|
|
984
995
|
return renderBody(list, contextProps);
|
|
985
|
-
})
|
|
996
|
+
});
|
|
986
997
|
}
|
|
987
998
|
})), single && footerEl || /*#__PURE__*/React.createElement("div", {
|
|
988
999
|
className: classnames(style$2['footer'], 'select-table-footer')
|
|
@@ -1052,7 +1063,7 @@ const SelectTableList = createWithIntlProvider('zh-CN', locale$1, 'super-select'
|
|
|
1052
1063
|
});
|
|
1053
1064
|
}));
|
|
1054
1065
|
|
|
1055
|
-
var style$1 = {"list":"
|
|
1066
|
+
var style$1 = {"list":"kne-super-select_YTqxA","is-popup":"kne-super-select_TR-1a","default-list":"kne-super-select_IZN7r","is-selected-all":"kne-super-select_GCIMn","default-list-item":"kne-super-select_AYi0i","is-selected":"kne-super-select_eovZv","single-checked":"kne-super-select_Tr-bO","is-disabled":"kne-super-select_T-hri","selected-all":"kne-super-select_4XFtm","selected-tag":"kne-super-select_Whlzr","select-search":"kne-super-select_7zuBL","select-tree-item-description":"kne-super-select_R-Sye","footer":"kne-super-select_PjlnR"};
|
|
1056
1067
|
|
|
1057
1068
|
const _excluded$1 = ["children"],
|
|
1058
1069
|
_excluded2 = ["data"];
|
|
@@ -1477,7 +1488,7 @@ const createTreeUtils = mapping => {
|
|
|
1477
1488
|
};
|
|
1478
1489
|
};
|
|
1479
1490
|
|
|
1480
|
-
var style = {"content":"
|
|
1491
|
+
var style = {"content":"kne-super-select_fHNBt","columns":"kne-super-select_VgpIp","content-item":"kne-super-select_kSkN1","last-level-area":"kne-super-select_1QV-l","is-popup":"kne-super-select_zFwDF","menu":"kne-super-select_s-ON4","scroll-plus-box":"kne-super-select_rIix2","menu-label":"kne-super-select_XAs20","menu-label-text":"kne-super-select_Y8AoQ","menu-item":"kne-super-select_ZwakZ","checkbox-hidden":"kne-super-select_0FUoe","single-mode":"kne-super-select_dahnB","menu-item-icon":"kne-super-select_AZZvN","menu-item-placeholder":"kne-super-select_TudTj","loading":"kne-super-select_ljvZk","search-input":"kne-super-select_FVxuS","list":"kne-super-select_iUhv7","is-selected":"kne-super-select_tx4-l","custom-menu":"kne-super-select_OerpL","selected":"kne-super-select_OUkpN"};
|
|
1481
1492
|
|
|
1482
1493
|
const CustomMenu = ({
|
|
1483
1494
|
className,
|