@douyinfe/semi-ui 2.35.0 → 2.36.0-beta.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/dist/css/semi.css +142 -17
- package/dist/css/semi.min.css +1 -1
- package/dist/umd/semi-ui.js +193 -106
- package/dist/umd/semi-ui.js.map +1 -1
- package/dist/umd/semi-ui.min.js +1 -1
- package/dist/umd/semi-ui.min.js.map +1 -1
- package/lib/cjs/anchor/index.d.ts +2 -1
- package/lib/cjs/anchor/link.js +13 -6
- package/lib/cjs/calendar/dayCalendar.d.ts +2 -1
- package/lib/cjs/calendar/dayCalendar.js +7 -2
- package/lib/cjs/calendar/index.d.ts +1 -0
- package/lib/cjs/calendar/index.js +1 -0
- package/lib/cjs/calendar/interface.d.ts +2 -0
- package/lib/cjs/calendar/monthCalendar.d.ts +1 -1
- package/lib/cjs/calendar/monthCalendar.js +12 -4
- package/lib/cjs/calendar/rangeCalendar.d.ts +3 -1
- package/lib/cjs/calendar/rangeCalendar.js +23 -9
- package/lib/cjs/calendar/weekCalendar.d.ts +3 -1
- package/lib/cjs/calendar/weekCalendar.js +23 -9
- package/lib/cjs/datePicker/datePicker.js +12 -4
- package/lib/cjs/datePicker/monthsGrid.js +6 -2
- package/lib/cjs/datePicker/yearAndMonth.d.ts +2 -0
- package/lib/cjs/datePicker/yearAndMonth.js +4 -2
- package/lib/cjs/input/textarea.d.ts +1 -1
- package/lib/cjs/navigation/Footer.d.ts +3 -0
- package/lib/cjs/navigation/Footer.js +19 -9
- package/lib/cjs/navigation/SubNav.d.ts +1 -13
- package/lib/cjs/navigation/SubNav.js +4 -19
- package/lib/cjs/navigation/index.d.ts +4 -1
- package/lib/cjs/navigation/index.js +7 -1
- package/lib/cjs/select/index.d.ts +2 -1
- package/lib/cjs/select/index.js +4 -0
- package/lib/cjs/table/Body/index.d.ts +1 -1
- package/lib/cjs/table/ResizableTable.d.ts +1 -1
- package/lib/cjs/table/TableHeaderRow.js +22 -14
- package/lib/cjs/table/interface.d.ts +5 -1
- package/lib/cjs/typography/base.d.ts +1 -0
- package/lib/cjs/typography/base.js +28 -14
- package/lib/cjs/typography/title.d.ts +2 -0
- package/lib/cjs/typography/title.js +2 -1
- package/lib/es/anchor/index.d.ts +2 -1
- package/lib/es/anchor/link.js +12 -6
- package/lib/es/calendar/dayCalendar.d.ts +2 -1
- package/lib/es/calendar/dayCalendar.js +7 -2
- package/lib/es/calendar/index.d.ts +1 -0
- package/lib/es/calendar/index.js +1 -0
- package/lib/es/calendar/interface.d.ts +2 -0
- package/lib/es/calendar/monthCalendar.d.ts +1 -1
- package/lib/es/calendar/monthCalendar.js +12 -4
- package/lib/es/calendar/rangeCalendar.d.ts +3 -1
- package/lib/es/calendar/rangeCalendar.js +19 -9
- package/lib/es/calendar/weekCalendar.d.ts +3 -1
- package/lib/es/calendar/weekCalendar.js +19 -9
- package/lib/es/datePicker/datePicker.js +12 -4
- package/lib/es/datePicker/monthsGrid.js +6 -2
- package/lib/es/datePicker/yearAndMonth.d.ts +2 -0
- package/lib/es/datePicker/yearAndMonth.js +4 -2
- package/lib/es/input/textarea.d.ts +1 -1
- package/lib/es/navigation/Footer.d.ts +3 -0
- package/lib/es/navigation/Footer.js +16 -7
- package/lib/es/navigation/SubNav.d.ts +1 -13
- package/lib/es/navigation/SubNav.js +5 -20
- package/lib/es/navigation/index.d.ts +4 -1
- package/lib/es/navigation/index.js +7 -1
- package/lib/es/select/index.d.ts +2 -1
- package/lib/es/select/index.js +4 -0
- package/lib/es/table/Body/index.d.ts +1 -1
- package/lib/es/table/ResizableTable.d.ts +1 -1
- package/lib/es/table/TableHeaderRow.js +22 -14
- package/lib/es/table/interface.d.ts +5 -1
- package/lib/es/typography/base.d.ts +1 -0
- package/lib/es/typography/base.js +28 -14
- package/lib/es/typography/title.d.ts +2 -0
- package/lib/es/typography/title.js +2 -1
- package/package.json +8 -9
package/dist/umd/semi-ui.js
CHANGED
|
@@ -18394,6 +18394,9 @@ class BaseComponent extends external_root_React_commonjs2_react_commonjs_react_a
|
|
|
18394
18394
|
}
|
|
18395
18395
|
BaseComponent.propTypes = {};
|
|
18396
18396
|
BaseComponent.defaultProps = {};
|
|
18397
|
+
// EXTERNAL MODULE: ../../node_modules/lodash/isObject.js
|
|
18398
|
+
var isObject = __webpack_require__("tQYX");
|
|
18399
|
+
var isObject_default = /*#__PURE__*/__webpack_require__.n(isObject);
|
|
18397
18400
|
;// CONCATENATED MODULE: ../semi-foundation/anchor/linkFoundation.ts
|
|
18398
18401
|
|
|
18399
18402
|
class LinkFoundation extends foundation {
|
|
@@ -18438,6 +18441,7 @@ const constants_cssClasses = {
|
|
|
18438
18441
|
PREFIX: `${BASE_CLASS_PREFIX}-typography`
|
|
18439
18442
|
};
|
|
18440
18443
|
const typography_constants_strings = {
|
|
18444
|
+
WEIGHT: ['light', 'regular', 'medium', 'semibold', 'bold', "default"],
|
|
18441
18445
|
TYPE: ['primary', 'secondary', 'danger', 'warning', 'success', 'tertiary', 'quaternary'],
|
|
18442
18446
|
SIZE: ['normal', 'small'],
|
|
18443
18447
|
SPACING: ['normal', 'extended'],
|
|
@@ -26464,7 +26468,7 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
|
|
|
26464
26468
|
}
|
|
26465
26469
|
|
|
26466
26470
|
this.rafId = window.requestAnimationFrame(this.getEllipsisState.bind(this));
|
|
26467
|
-
}; // if
|
|
26471
|
+
}; // if it needs to use js overflowed:
|
|
26468
26472
|
// 1. text is expandable 2. expandText need to be shown 3. has extra operation 4. text need to ellipse from mid
|
|
26469
26473
|
|
|
26470
26474
|
|
|
@@ -26807,10 +26811,7 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
|
|
|
26807
26811
|
const {
|
|
26808
26812
|
expanded
|
|
26809
26813
|
} = this.state;
|
|
26810
|
-
const canUseCSSEllipsis = this.canUseCSSEllipsis(); //
|
|
26811
|
-
// both css truncation and js truncation should throw a warning
|
|
26812
|
-
|
|
26813
|
-
warning('children' in this.props && typeof children !== 'string', "[Semi Typography] 'Only children with pure text could be used with ellipsis at this moment."); // If children is null, css/js truncated flag isTruncate is false
|
|
26814
|
+
const canUseCSSEllipsis = this.canUseCSSEllipsis(); // If children is null, css/js truncated flag isTruncate is false
|
|
26814
26815
|
|
|
26815
26816
|
if (isNull_default()(children)) {
|
|
26816
26817
|
this.setState({
|
|
@@ -26818,7 +26819,11 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
|
|
|
26818
26819
|
isOverflowed: false
|
|
26819
26820
|
});
|
|
26820
26821
|
return undefined;
|
|
26821
|
-
}
|
|
26822
|
+
} // Currently only text truncation is supported, if there is non-text,
|
|
26823
|
+
// both css truncation and js truncation should throw a warning
|
|
26824
|
+
|
|
26825
|
+
|
|
26826
|
+
warning('children' in this.props && typeof children !== 'string', "[Semi Typography] Only children with pure text could be used with ellipsis at this moment.");
|
|
26822
26827
|
|
|
26823
26828
|
if (!rows || rows < 0 || expanded) {
|
|
26824
26829
|
return undefined;
|
|
@@ -26927,9 +26932,10 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
|
|
|
26927
26932
|
icon,
|
|
26928
26933
|
size,
|
|
26929
26934
|
link,
|
|
26930
|
-
heading
|
|
26935
|
+
heading,
|
|
26936
|
+
weight
|
|
26931
26937
|
} = _a,
|
|
26932
|
-
rest = base_rest(_a, ["component", "children", "className", "type", "spacing", "disabled", "style", "ellipsis", "icon", "size", "link", "heading"]);
|
|
26938
|
+
rest = base_rest(_a, ["component", "children", "className", "type", "spacing", "disabled", "style", "ellipsis", "icon", "size", "link", "heading", "weight"]);
|
|
26933
26939
|
|
|
26934
26940
|
const textProps = omit_default()(rest, ['strong', 'editable', 'mark', 'copyable', 'underline', 'code', // 'link',
|
|
26935
26941
|
'delete']);
|
|
@@ -26949,6 +26955,7 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
|
|
|
26949
26955
|
className: linkCls
|
|
26950
26956
|
}, textNode) : textNode));
|
|
26951
26957
|
const hTagReg = /^h[1-6]$/;
|
|
26958
|
+
const isHeader = isString_default()(heading) && hTagReg.test(heading);
|
|
26952
26959
|
const wrapperCls = classnames_default()(className, ellipsisCls, {
|
|
26953
26960
|
// [`${prefixCls}-primary`]: !type || type === 'primary',
|
|
26954
26961
|
[`${base_prefixCls}-${type}`]: type && !link,
|
|
@@ -26956,11 +26963,15 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
|
|
|
26956
26963
|
[`${base_prefixCls}-link`]: link,
|
|
26957
26964
|
[`${base_prefixCls}-disabled`]: disabled,
|
|
26958
26965
|
[`${base_prefixCls}-${spacing}`]: spacing,
|
|
26959
|
-
[`${base_prefixCls}-${heading}`]:
|
|
26966
|
+
[`${base_prefixCls}-${heading}`]: isHeader,
|
|
26967
|
+
[`${base_prefixCls}-${heading}-weight-${weight}`]: isHeader && isNaN(Number(weight))
|
|
26960
26968
|
});
|
|
26969
|
+
const textStyle = Object.assign(Object.assign({}, isNaN(Number(weight)) ? {} : {
|
|
26970
|
+
fontWeight: weight
|
|
26971
|
+
}), style);
|
|
26961
26972
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(typography_typography, Object.assign({
|
|
26962
26973
|
className: wrapperCls,
|
|
26963
|
-
style: Object.assign(Object.assign({},
|
|
26974
|
+
style: Object.assign(Object.assign({}, textStyle), ellipsisStyle),
|
|
26964
26975
|
component: component,
|
|
26965
26976
|
forwardRef: this.wrapperRef
|
|
26966
26977
|
}, textProps), textNode, this.renderOperations());
|
|
@@ -26996,15 +27007,22 @@ class Base extends external_root_React_commonjs2_react_commonjs_react_amd_react_
|
|
|
26996
27007
|
}
|
|
26997
27008
|
|
|
26998
27009
|
render() {
|
|
26999
|
-
|
|
27000
|
-
onResize: this.onResize
|
|
27001
|
-
}, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(LocaleConsumer, {
|
|
27010
|
+
const content = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(LocaleConsumer, {
|
|
27002
27011
|
componentName: "Typography"
|
|
27003
27012
|
}, locale => {
|
|
27004
27013
|
this.expandStr = locale.expand;
|
|
27005
27014
|
this.collapseStr = locale.collapse;
|
|
27006
27015
|
return this.renderTipWrapper();
|
|
27007
|
-
})
|
|
27016
|
+
});
|
|
27017
|
+
|
|
27018
|
+
if (this.props.ellipsis) {
|
|
27019
|
+
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(ReactResizeObserver, {
|
|
27020
|
+
onResize: this.onResize,
|
|
27021
|
+
observeParent: true
|
|
27022
|
+
}, content);
|
|
27023
|
+
}
|
|
27024
|
+
|
|
27025
|
+
return content;
|
|
27008
27026
|
}
|
|
27009
27027
|
|
|
27010
27028
|
}
|
|
@@ -27157,7 +27175,8 @@ Title.propTypes = {
|
|
|
27157
27175
|
heading: prop_types_default().oneOf(typography_constants_strings.HEADING),
|
|
27158
27176
|
style: (prop_types_default()).object,
|
|
27159
27177
|
className: (prop_types_default()).string,
|
|
27160
|
-
component: (prop_types_default()).string
|
|
27178
|
+
component: (prop_types_default()).string,
|
|
27179
|
+
weight: prop_types_default().oneOfType([prop_types_default().oneOf(typography_constants_strings.WEIGHT), (prop_types_default()).number])
|
|
27161
27180
|
};
|
|
27162
27181
|
Title.defaultProps = {
|
|
27163
27182
|
copyable: false,
|
|
@@ -27437,6 +27456,7 @@ typography_Typography.Numeral = Numeral;
|
|
|
27437
27456
|
|
|
27438
27457
|
|
|
27439
27458
|
|
|
27459
|
+
|
|
27440
27460
|
const link_prefixCls = cssClasses.PREFIX; // eslint-disable-next-line @typescript-eslint/ban-types
|
|
27441
27461
|
|
|
27442
27462
|
class Link extends BaseComponent {
|
|
@@ -27461,17 +27481,22 @@ class Link extends BaseComponent {
|
|
|
27461
27481
|
[`${link_prefixCls}-link-tooltip-active`]: active,
|
|
27462
27482
|
[`${link_prefixCls}-link-tooltip-disabled`]: disabled
|
|
27463
27483
|
});
|
|
27464
|
-
const toolTipOpt = position ? {
|
|
27465
|
-
position
|
|
27466
|
-
} : {};
|
|
27467
27484
|
|
|
27468
27485
|
if (showTooltip) {
|
|
27486
|
+
const showTooltipObj = isObject_default()(showTooltip) ? Object.assign({
|
|
27487
|
+
opts: {}
|
|
27488
|
+
}, showTooltip) : {
|
|
27489
|
+
opts: {}
|
|
27490
|
+
}; // The position can be set through showTooltip, here it is compatible with the position API
|
|
27491
|
+
|
|
27492
|
+
if (position) {
|
|
27493
|
+
showTooltipObj.opts['position'] = position;
|
|
27494
|
+
}
|
|
27495
|
+
|
|
27469
27496
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(typography_0.Text, {
|
|
27470
27497
|
size: size === 'default' ? 'normal' : 'small',
|
|
27471
27498
|
ellipsis: {
|
|
27472
|
-
showTooltip:
|
|
27473
|
-
opts: Object.assign({}, toolTipOpt)
|
|
27474
|
-
}
|
|
27499
|
+
showTooltip: showTooltipObj
|
|
27475
27500
|
},
|
|
27476
27501
|
type: 'tertiary',
|
|
27477
27502
|
className: linkTitleCls
|
|
@@ -27976,9 +28001,6 @@ const autoComplete_constants_strings = {
|
|
|
27976
28001
|
STATUS: VALIDATE_STATUS
|
|
27977
28002
|
};
|
|
27978
28003
|
|
|
27979
|
-
// EXTERNAL MODULE: ../../node_modules/lodash/isObject.js
|
|
27980
|
-
var isObject = __webpack_require__("tQYX");
|
|
27981
|
-
var isObject_default = /*#__PURE__*/__webpack_require__.n(isObject);
|
|
27982
28004
|
// EXTERNAL MODULE: ../../node_modules/lodash/isNumber.js
|
|
27983
28005
|
var isNumber = __webpack_require__("mGvo");
|
|
27984
28006
|
var isNumber_default = /*#__PURE__*/__webpack_require__.n(isNumber);
|
|
@@ -37639,6 +37661,10 @@ class DayCalendar extends BaseComponent {
|
|
|
37639
37661
|
this.checkWeekend = val => this.foundation.checkWeekend(val);
|
|
37640
37662
|
|
|
37641
37663
|
this.renderAllDayEvents = events => {
|
|
37664
|
+
if (this.props.allDayEventsRender) {
|
|
37665
|
+
return this.props.allDayEventsRender(this.props.events);
|
|
37666
|
+
}
|
|
37667
|
+
|
|
37642
37668
|
const list = events.map((event, ind) => {
|
|
37643
37669
|
const {
|
|
37644
37670
|
children,
|
|
@@ -37731,7 +37757,7 @@ class DayCalendar extends BaseComponent {
|
|
|
37731
37757
|
const prevEventKeys = prevState.cachedKeys;
|
|
37732
37758
|
const nowEventKeys = this.props.events.map(event => event.key);
|
|
37733
37759
|
|
|
37734
|
-
if (!isEqual_default()(prevEventKeys, nowEventKeys)) {
|
|
37760
|
+
if (!isEqual_default()(prevEventKeys, nowEventKeys) || !isEqual_default()(prevProps.displayValue, this.props.displayValue)) {
|
|
37735
37761
|
this.foundation.parseDailyEvents();
|
|
37736
37762
|
}
|
|
37737
37763
|
}
|
|
@@ -37804,7 +37830,8 @@ DayCalendar.propTypes = {
|
|
|
37804
37830
|
height: prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]),
|
|
37805
37831
|
style: (prop_types_default()).object,
|
|
37806
37832
|
className: (prop_types_default()).string,
|
|
37807
|
-
dateGridRender: (prop_types_default()).func
|
|
37833
|
+
dateGridRender: (prop_types_default()).func,
|
|
37834
|
+
allDayEventsRender: (prop_types_default()).func
|
|
37808
37835
|
};
|
|
37809
37836
|
DayCalendar.defaultProps = {
|
|
37810
37837
|
events: [],
|
|
@@ -37881,7 +37908,8 @@ class WeekCalendar extends BaseComponent {
|
|
|
37881
37908
|
this.renderHeader = dateFnsLocale => {
|
|
37882
37909
|
const {
|
|
37883
37910
|
markWeekend,
|
|
37884
|
-
displayValue
|
|
37911
|
+
displayValue,
|
|
37912
|
+
renderDateDisplay
|
|
37885
37913
|
} = this.props;
|
|
37886
37914
|
const {
|
|
37887
37915
|
month,
|
|
@@ -37907,16 +37935,21 @@ class WeekCalendar extends BaseComponent {
|
|
|
37907
37935
|
[`${calendar_constants_cssClasses.PREFIX}-today`]: isToday,
|
|
37908
37936
|
[`${calendar_constants_cssClasses.PREFIX}-weekend`]: markWeekend && day.isWeekend
|
|
37909
37937
|
});
|
|
37938
|
+
const dateContent = renderDateDisplay ? renderDateDisplay(date) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(external_root_React_commonjs2_react_commonjs_react_amd_react_.Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
|
|
37939
|
+
className: `${calendar_constants_cssClasses.PREFIX}-today-date`
|
|
37940
|
+
}, dayString), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", null, weekday));
|
|
37910
37941
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
|
|
37911
37942
|
key: `${date.toString()}-weekheader`,
|
|
37912
37943
|
className: listCls
|
|
37913
|
-
},
|
|
37914
|
-
className: `${calendar_constants_cssClasses.PREFIX}-today-date`
|
|
37915
|
-
}, dayString), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", null, weekday));
|
|
37944
|
+
}, dateContent);
|
|
37916
37945
|
}))));
|
|
37917
37946
|
};
|
|
37918
37947
|
|
|
37919
37948
|
this.renderAllDayEvents = events => {
|
|
37949
|
+
if (this.props.allDayEventsRender) {
|
|
37950
|
+
return this.props.allDayEventsRender(this.props.events);
|
|
37951
|
+
}
|
|
37952
|
+
|
|
37920
37953
|
const list = events.map((event, ind) => {
|
|
37921
37954
|
const {
|
|
37922
37955
|
leftPos,
|
|
@@ -37941,13 +37974,15 @@ class WeekCalendar extends BaseComponent {
|
|
|
37941
37974
|
};
|
|
37942
37975
|
|
|
37943
37976
|
this.renderAllDay = locale => {
|
|
37977
|
+
const {
|
|
37978
|
+
allDayEventsRender
|
|
37979
|
+
} = this.props;
|
|
37944
37980
|
const {
|
|
37945
37981
|
allDay
|
|
37946
37982
|
} = this.state.parsedEvents;
|
|
37947
37983
|
const parsed = this.foundation.parseWeeklyAllDayEvents(allDay);
|
|
37948
|
-
const
|
|
37949
|
-
|
|
37950
|
-
height: `${maxRowHeight}em`
|
|
37984
|
+
const style = allDayEventsRender ? null : {
|
|
37985
|
+
height: `${calcRowHeight(parsed)}em`
|
|
37951
37986
|
};
|
|
37952
37987
|
const {
|
|
37953
37988
|
markWeekend
|
|
@@ -38031,7 +38066,7 @@ class WeekCalendar extends BaseComponent {
|
|
|
38031
38066
|
const prevEventKeys = prevState.cachedKeys;
|
|
38032
38067
|
const nowEventKeys = this.props.events.map(event => event.key);
|
|
38033
38068
|
|
|
38034
|
-
if (!isEqual_default()(prevEventKeys, nowEventKeys)) {
|
|
38069
|
+
if (!isEqual_default()(prevEventKeys, nowEventKeys) || !isEqual_default()(prevProps.displayValue, this.props.displayValue)) {
|
|
38035
38070
|
this.foundation.parseWeeklyEvents();
|
|
38036
38071
|
}
|
|
38037
38072
|
}
|
|
@@ -38083,7 +38118,9 @@ WeekCalendar.propTypes = {
|
|
|
38083
38118
|
markWeekend: (prop_types_default()).bool,
|
|
38084
38119
|
scrollTop: (prop_types_default()).number,
|
|
38085
38120
|
renderTimeDisplay: (prop_types_default()).func,
|
|
38121
|
+
renderDateDisplay: (prop_types_default()).func,
|
|
38086
38122
|
dateGridRender: (prop_types_default()).func,
|
|
38123
|
+
allDayEventsRender: (prop_types_default()).func,
|
|
38087
38124
|
width: prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]),
|
|
38088
38125
|
height: prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]),
|
|
38089
38126
|
style: (prop_types_default()).object,
|
|
@@ -38271,10 +38308,18 @@ class monthCalendar extends BaseComponent {
|
|
|
38271
38308
|
key: date,
|
|
38272
38309
|
className: listCls,
|
|
38273
38310
|
onClick: e => this.handleClick(e, [date])
|
|
38274
|
-
}, this.formatDayString(month, dayString), shouldRenderCard ? text : null, this.renderCusDateGrid(date)));
|
|
38311
|
+
}, this.formatDayString(date, month, dayString), shouldRenderCard ? text : null, this.renderCusDateGrid(date)));
|
|
38275
38312
|
};
|
|
38276
38313
|
|
|
38277
|
-
this.formatDayString = (month, date) => {
|
|
38314
|
+
this.formatDayString = (dateObj, month, date) => {
|
|
38315
|
+
const {
|
|
38316
|
+
renderDateDisplay
|
|
38317
|
+
} = this.props;
|
|
38318
|
+
|
|
38319
|
+
if (renderDateDisplay) {
|
|
38320
|
+
return renderDateDisplay(dateObj);
|
|
38321
|
+
}
|
|
38322
|
+
|
|
38278
38323
|
if (date === '1') {
|
|
38279
38324
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(LocaleConsumer, {
|
|
38280
38325
|
componentName: "Calendar"
|
|
@@ -38351,7 +38396,7 @@ class monthCalendar extends BaseComponent {
|
|
|
38351
38396
|
key: `${date}-weeksk`,
|
|
38352
38397
|
className: listCls,
|
|
38353
38398
|
onClick: e => _this.handleClick(e, [date])
|
|
38354
|
-
}, _this.formatDayString(month, dayString), _this.renderCusDateGrid(date));
|
|
38399
|
+
}, _this.formatDayString(date, month, dayString), _this.renderCusDateGrid(date));
|
|
38355
38400
|
|
|
38356
38401
|
if (!shouldRenderCollapsed) {
|
|
38357
38402
|
return inner;
|
|
@@ -38471,7 +38516,7 @@ class monthCalendar extends BaseComponent {
|
|
|
38471
38516
|
}
|
|
38472
38517
|
}
|
|
38473
38518
|
|
|
38474
|
-
if (!isEqual_default()(prevEventKeys, nowEventKeys) || itemLimitUpdate) {
|
|
38519
|
+
if (!isEqual_default()(prevEventKeys, nowEventKeys) || itemLimitUpdate || !isEqual_default()(prevProps.displayValue, this.props.displayValue)) {
|
|
38475
38520
|
this.foundation.parseMonthlyEvents(itemLimit || this.props.events);
|
|
38476
38521
|
}
|
|
38477
38522
|
}
|
|
@@ -38598,7 +38643,8 @@ class RangeCalendar extends BaseComponent {
|
|
|
38598
38643
|
this.renderHeader = dateFnsLocale => {
|
|
38599
38644
|
const {
|
|
38600
38645
|
markWeekend,
|
|
38601
|
-
range
|
|
38646
|
+
range,
|
|
38647
|
+
renderDateDisplay
|
|
38602
38648
|
} = this.props;
|
|
38603
38649
|
const {
|
|
38604
38650
|
month,
|
|
@@ -38624,16 +38670,21 @@ class RangeCalendar extends BaseComponent {
|
|
|
38624
38670
|
[`${calendar_constants_cssClasses.PREFIX}-today`]: isToday,
|
|
38625
38671
|
[`${calendar_constants_cssClasses.PREFIX}-weekend`]: markWeekend && day.isWeekend
|
|
38626
38672
|
});
|
|
38673
|
+
const dateContent = renderDateDisplay ? renderDateDisplay(date) : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(external_root_React_commonjs2_react_commonjs_react_amd_react_.Fragment, null, /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", {
|
|
38674
|
+
className: `${calendar_constants_cssClasses.PREFIX}-today-date`
|
|
38675
|
+
}, dayString), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", null, weekday));
|
|
38627
38676
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("li", {
|
|
38628
38677
|
key: `${date.toString()}-weekheader`,
|
|
38629
38678
|
className: listCls
|
|
38630
|
-
},
|
|
38631
|
-
className: `${calendar_constants_cssClasses.PREFIX}-today-date`
|
|
38632
|
-
}, dayString), /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("span", null, weekday));
|
|
38679
|
+
}, dateContent);
|
|
38633
38680
|
}))));
|
|
38634
38681
|
};
|
|
38635
38682
|
|
|
38636
38683
|
this.renderAllDayEvents = events => {
|
|
38684
|
+
if (this.props.allDayEventsRender) {
|
|
38685
|
+
return this.props.allDayEventsRender(this.props.events);
|
|
38686
|
+
}
|
|
38687
|
+
|
|
38637
38688
|
const list = events.map((event, ind) => {
|
|
38638
38689
|
const {
|
|
38639
38690
|
leftPos,
|
|
@@ -38657,13 +38708,15 @@ class RangeCalendar extends BaseComponent {
|
|
|
38657
38708
|
};
|
|
38658
38709
|
|
|
38659
38710
|
this.renderAllDay = locale => {
|
|
38711
|
+
const {
|
|
38712
|
+
allDayEventsRender
|
|
38713
|
+
} = this.props;
|
|
38660
38714
|
const {
|
|
38661
38715
|
allDay
|
|
38662
38716
|
} = this.state.parsedEvents;
|
|
38663
38717
|
const parsed = this.foundation.parseRangeAllDayEvents(allDay);
|
|
38664
|
-
const
|
|
38665
|
-
|
|
38666
|
-
height: `${maxRowHeight}em`
|
|
38718
|
+
const style = allDayEventsRender ? null : {
|
|
38719
|
+
height: `${calcRowHeight(parsed)}em`
|
|
38667
38720
|
};
|
|
38668
38721
|
const {
|
|
38669
38722
|
markWeekend
|
|
@@ -38747,7 +38800,7 @@ class RangeCalendar extends BaseComponent {
|
|
|
38747
38800
|
const prevEventKeys = prevState.cachedKeys;
|
|
38748
38801
|
const nowEventKeys = this.props.events.map(event => event.key);
|
|
38749
38802
|
|
|
38750
|
-
if (!isEqual_default()(prevEventKeys, nowEventKeys)) {
|
|
38803
|
+
if (!isEqual_default()(prevEventKeys, nowEventKeys) || !isEqual_default()(prevProps.range, this.props.range)) {
|
|
38751
38804
|
this.foundation.parseRangeEvents();
|
|
38752
38805
|
}
|
|
38753
38806
|
}
|
|
@@ -38800,7 +38853,9 @@ RangeCalendar.propTypes = {
|
|
|
38800
38853
|
markWeekend: (prop_types_default()).bool,
|
|
38801
38854
|
scrollTop: (prop_types_default()).number,
|
|
38802
38855
|
renderTimeDisplay: (prop_types_default()).func,
|
|
38856
|
+
renderDateDisplay: (prop_types_default()).func,
|
|
38803
38857
|
dateGridRender: (prop_types_default()).func,
|
|
38858
|
+
allDayEventsRender: (prop_types_default()).func,
|
|
38804
38859
|
width: prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]),
|
|
38805
38860
|
height: prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]),
|
|
38806
38861
|
style: (prop_types_default()).object,
|
|
@@ -38868,6 +38923,7 @@ Calendar.propTypes = {
|
|
|
38868
38923
|
scrollTop: (prop_types_default()).number,
|
|
38869
38924
|
onClick: (prop_types_default()).func,
|
|
38870
38925
|
renderTimeDisplay: (prop_types_default()).func,
|
|
38926
|
+
renderDateDisplay: (prop_types_default()).func,
|
|
38871
38927
|
markWeekend: (prop_types_default()).bool,
|
|
38872
38928
|
width: prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]),
|
|
38873
38929
|
height: prop_types_default().oneOfType([(prop_types_default()).number, (prop_types_default()).string]),
|
|
@@ -62543,12 +62599,18 @@ class YearAndMonthFoundation extends foundation {
|
|
|
62543
62599
|
|
|
62544
62600
|
}
|
|
62545
62601
|
;// CONCATENATED MODULE: ../semi-foundation/datePicker/_utils/getYears.ts
|
|
62546
|
-
const getYears = () => {
|
|
62547
|
-
const
|
|
62548
|
-
|
|
62602
|
+
const getYears = (startYear, endYear) => {
|
|
62603
|
+
const currentYear = new Date().getFullYear();
|
|
62604
|
+
let start = typeof startYear === 'number' ? startYear : currentYear - 100;
|
|
62605
|
+
let end = typeof endYear === 'number' ? endYear : currentYear + 100;
|
|
62606
|
+
|
|
62607
|
+
if (end < start) {
|
|
62608
|
+
[start, end] = [end, start];
|
|
62609
|
+
}
|
|
62610
|
+
|
|
62549
62611
|
return Array.from({
|
|
62550
|
-
length:
|
|
62551
|
-
}, (v, i) =>
|
|
62612
|
+
length: end - start + 1
|
|
62613
|
+
}, (v, i) => start + i);
|
|
62552
62614
|
};
|
|
62553
62615
|
|
|
62554
62616
|
/* harmony default export */ const _utils_getYears = (getYears);
|
|
@@ -62810,7 +62872,7 @@ class YearAndMonth extends BaseComponent {
|
|
|
62810
62872
|
right: currentMonth.right || currentLeftMonth + 1
|
|
62811
62873
|
};
|
|
62812
62874
|
this.state = {
|
|
62813
|
-
years: _utils_getYears().map(year => ({
|
|
62875
|
+
years: _utils_getYears(props.startYear, props.endYear).map(year => ({
|
|
62814
62876
|
value: year,
|
|
62815
62877
|
year
|
|
62816
62878
|
})),
|
|
@@ -63057,7 +63119,9 @@ YearAndMonth.propTypes = {
|
|
|
63057
63119
|
presetPosition: prop_types_default().oneOf(datePicker_constants_strings.PRESET_POSITION_SET),
|
|
63058
63120
|
renderQuickControls: (prop_types_default()).node,
|
|
63059
63121
|
renderDateInput: (prop_types_default()).node,
|
|
63060
|
-
type: prop_types_default().oneOf(datePicker_constants_strings.TYPE_SET)
|
|
63122
|
+
type: prop_types_default().oneOf(datePicker_constants_strings.TYPE_SET),
|
|
63123
|
+
startYear: (prop_types_default()).number,
|
|
63124
|
+
endYear: (prop_types_default()).number
|
|
63061
63125
|
};
|
|
63062
63126
|
YearAndMonth.defaultProps = {
|
|
63063
63127
|
disabledDate: (stubFalse_default()),
|
|
@@ -63545,7 +63609,9 @@ class MonthsGrid extends BaseComponent {
|
|
|
63545
63609
|
locale,
|
|
63546
63610
|
localeCode,
|
|
63547
63611
|
density,
|
|
63548
|
-
yearAndMonthOpts
|
|
63612
|
+
yearAndMonthOpts,
|
|
63613
|
+
startYear,
|
|
63614
|
+
endYear
|
|
63549
63615
|
} = this.props;
|
|
63550
63616
|
const y = pickerDate.getFullYear();
|
|
63551
63617
|
const m = pickerDate.getMonth() + 1;
|
|
@@ -63573,7 +63639,9 @@ class MonthsGrid extends BaseComponent {
|
|
|
63573
63639
|
}
|
|
63574
63640
|
},
|
|
63575
63641
|
density: density,
|
|
63576
|
-
yearAndMonthOpts: yearAndMonthOpts
|
|
63642
|
+
yearAndMonthOpts: yearAndMonthOpts,
|
|
63643
|
+
startYear: startYear,
|
|
63644
|
+
endYear: endYear
|
|
63577
63645
|
});
|
|
63578
63646
|
}
|
|
63579
63647
|
|
|
@@ -64050,7 +64118,9 @@ class DatePicker extends BaseComponent {
|
|
|
64050
64118
|
density,
|
|
64051
64119
|
presetPosition,
|
|
64052
64120
|
yearAndMonthOpts,
|
|
64053
|
-
type
|
|
64121
|
+
type,
|
|
64122
|
+
startYear,
|
|
64123
|
+
endYear
|
|
64054
64124
|
} = this.props;
|
|
64055
64125
|
const date = this.state.value[0];
|
|
64056
64126
|
const year = {
|
|
@@ -64090,7 +64160,9 @@ class DatePicker extends BaseComponent {
|
|
|
64090
64160
|
renderQuickControls: this.renderQuickControls(),
|
|
64091
64161
|
renderDateInput: this.renderDateInput(),
|
|
64092
64162
|
type: type,
|
|
64093
|
-
yearAndMonthOpts: yearAndMonthOpts
|
|
64163
|
+
yearAndMonthOpts: yearAndMonthOpts,
|
|
64164
|
+
startYear: startYear,
|
|
64165
|
+
endYear: endYear
|
|
64094
64166
|
});
|
|
64095
64167
|
};
|
|
64096
64168
|
|
|
@@ -64488,7 +64560,9 @@ class DatePicker extends BaseComponent {
|
|
|
64488
64560
|
triggerRender,
|
|
64489
64561
|
insetInput,
|
|
64490
64562
|
presetPosition,
|
|
64491
|
-
yearAndMonthOpts
|
|
64563
|
+
yearAndMonthOpts,
|
|
64564
|
+
startYear,
|
|
64565
|
+
endYear
|
|
64492
64566
|
} = this.props;
|
|
64493
64567
|
const {
|
|
64494
64568
|
cachedSelectedValue,
|
|
@@ -64532,7 +64606,9 @@ class DatePicker extends BaseComponent {
|
|
|
64532
64606
|
presetPosition: presetPosition,
|
|
64533
64607
|
renderQuickControls: this.renderQuickControls(),
|
|
64534
64608
|
renderDateInput: this.renderDateInput(),
|
|
64535
|
-
yearAndMonthOpts: yearAndMonthOpts
|
|
64609
|
+
yearAndMonthOpts: yearAndMonthOpts,
|
|
64610
|
+
startYear: startYear,
|
|
64611
|
+
endYear: endYear
|
|
64536
64612
|
});
|
|
64537
64613
|
}
|
|
64538
64614
|
|
|
@@ -71473,7 +71549,8 @@ class SubNav extends BaseComponent {
|
|
|
71473
71549
|
itemKey,
|
|
71474
71550
|
indent,
|
|
71475
71551
|
disabled,
|
|
71476
|
-
level
|
|
71552
|
+
level,
|
|
71553
|
+
expandIcon
|
|
71477
71554
|
} = this.props;
|
|
71478
71555
|
const {
|
|
71479
71556
|
mode,
|
|
@@ -71503,7 +71580,7 @@ class SubNav extends BaseComponent {
|
|
|
71503
71580
|
"aria-hidden": true
|
|
71504
71581
|
});
|
|
71505
71582
|
} else {
|
|
71506
|
-
toggleIconType = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconChevronDown, {
|
|
71583
|
+
toggleIconType = expandIcon ? expandIcon : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconChevronDown, {
|
|
71507
71584
|
"aria-hidden": true
|
|
71508
71585
|
}); // Horizontal mode does not require animation fix#1198
|
|
71509
71586
|
// withTransition = true;
|
|
@@ -71513,7 +71590,7 @@ class SubNav extends BaseComponent {
|
|
|
71513
71590
|
withTransition = true;
|
|
71514
71591
|
}
|
|
71515
71592
|
|
|
71516
|
-
toggleIconType = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconChevronDown, {
|
|
71593
|
+
toggleIconType = expandIcon ? expandIcon : /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconChevronDown, {
|
|
71517
71594
|
"aria-hidden": true
|
|
71518
71595
|
});
|
|
71519
71596
|
}
|
|
@@ -71697,14 +71774,6 @@ SubNav.propTypes = {
|
|
|
71697
71774
|
* Nested child elements
|
|
71698
71775
|
*/
|
|
71699
71776
|
children: (prop_types_default()).node,
|
|
71700
|
-
|
|
71701
|
-
/**
|
|
71702
|
-
* The icon name of the right control switch (on and off status)
|
|
71703
|
-
*/
|
|
71704
|
-
toggleIcon: prop_types_default().oneOfType([(prop_types_default()).any, prop_types_default().shape({
|
|
71705
|
-
open: (prop_types_default()).string,
|
|
71706
|
-
closed: (prop_types_default()).string
|
|
71707
|
-
})]),
|
|
71708
71777
|
style: (prop_types_default()).object,
|
|
71709
71778
|
|
|
71710
71779
|
/**
|
|
@@ -71728,14 +71797,6 @@ SubNav.defaultProps = {
|
|
|
71728
71797
|
isCollapsed: false,
|
|
71729
71798
|
isOpen: false,
|
|
71730
71799
|
maxHeight: navigation_constants_numbers.DEFAULT_SUBNAV_MAX_HEIGHT,
|
|
71731
|
-
toggleIcon: {
|
|
71732
|
-
open: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconChevronUp, {
|
|
71733
|
-
"aria-hidden": true
|
|
71734
|
-
}),
|
|
71735
|
-
closed: /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(IconChevronDown, {
|
|
71736
|
-
"aria-hidden": true
|
|
71737
|
-
})
|
|
71738
|
-
},
|
|
71739
71800
|
disabled: false
|
|
71740
71801
|
};
|
|
71741
71802
|
;// CONCATENATED MODULE: ./navigation/CollapseButton.tsx
|
|
@@ -71786,6 +71847,7 @@ function CollapseButton(_ref) {
|
|
|
71786
71847
|
|
|
71787
71848
|
|
|
71788
71849
|
|
|
71850
|
+
|
|
71789
71851
|
class NavFooter extends external_root_React_commonjs2_react_commonjs_react_amd_react_.PureComponent {
|
|
71790
71852
|
constructor() {
|
|
71791
71853
|
super(...arguments);
|
|
@@ -71820,7 +71882,8 @@ class NavFooter extends external_root_React_commonjs2_react_commonjs_react_amd_r
|
|
|
71820
71882
|
const {
|
|
71821
71883
|
style,
|
|
71822
71884
|
className,
|
|
71823
|
-
collapseButton
|
|
71885
|
+
collapseButton,
|
|
71886
|
+
onClick
|
|
71824
71887
|
} = this.props;
|
|
71825
71888
|
let {
|
|
71826
71889
|
children
|
|
@@ -71837,10 +71900,15 @@ class NavFooter extends external_root_React_commonjs2_react_commonjs_react_amd_r
|
|
|
71837
71900
|
const wrapCls = classnames_default()(className, `${navigation_constants_cssClasses.PREFIX}-footer`, {
|
|
71838
71901
|
[`${navigation_constants_cssClasses.PREFIX}-footer-collapsed`]: isCollapsed
|
|
71839
71902
|
});
|
|
71840
|
-
return
|
|
71841
|
-
|
|
71842
|
-
|
|
71843
|
-
|
|
71903
|
+
return (
|
|
71904
|
+
/*#__PURE__*/
|
|
71905
|
+
// eslint-disable-next-line jsx-a11y/click-events-have-key-events, jsx-a11y/no-static-element-interactions
|
|
71906
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement("div", {
|
|
71907
|
+
className: wrapCls,
|
|
71908
|
+
style: style,
|
|
71909
|
+
onClick: onClick
|
|
71910
|
+
}, children)
|
|
71911
|
+
);
|
|
71844
71912
|
}
|
|
71845
71913
|
|
|
71846
71914
|
}
|
|
@@ -71850,10 +71918,12 @@ NavFooter.propTypes = {
|
|
|
71850
71918
|
style: (prop_types_default()).object,
|
|
71851
71919
|
className: (prop_types_default()).string,
|
|
71852
71920
|
collapseButton: prop_types_default().oneOfType([(prop_types_default()).node, (prop_types_default()).bool]),
|
|
71853
|
-
collapseText: (prop_types_default()).func
|
|
71921
|
+
collapseText: (prop_types_default()).func,
|
|
71922
|
+
onClick: (prop_types_default()).func
|
|
71854
71923
|
};
|
|
71855
71924
|
NavFooter.defaultProps = {
|
|
71856
|
-
collapseButton: false
|
|
71925
|
+
collapseButton: false,
|
|
71926
|
+
onClick: (noop_default())
|
|
71857
71927
|
};
|
|
71858
71928
|
NavFooter.elementType = "NavFooter";
|
|
71859
71929
|
;// CONCATENATED MODULE: ./navigation/Header.tsx
|
|
@@ -72096,12 +72166,16 @@ class Nav extends BaseComponent {
|
|
|
72096
72166
|
renderItems() {
|
|
72097
72167
|
let items = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : [];
|
|
72098
72168
|
let level = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0;
|
|
72169
|
+
const {
|
|
72170
|
+
expandIcon
|
|
72171
|
+
} = this.props;
|
|
72099
72172
|
const finalDom = /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement((external_root_React_commonjs2_react_commonjs_react_amd_react_default()).Fragment, null, items.map((item, idx) => {
|
|
72100
72173
|
if (Array.isArray(item.items) && item.items.length) {
|
|
72101
72174
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(SubNav, Object.assign({
|
|
72102
72175
|
key: item.itemKey || String(level) + idx
|
|
72103
72176
|
}, item, {
|
|
72104
|
-
level: level
|
|
72177
|
+
level: level,
|
|
72178
|
+
expandIcon: expandIcon
|
|
72105
72179
|
}), this.renderItems(item.items, level + 1));
|
|
72106
72180
|
} else {
|
|
72107
72181
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(Item_NavItem, Object.assign({
|
|
@@ -72268,11 +72342,13 @@ Nav.Item = Item_NavItem;
|
|
|
72268
72342
|
Nav.Header = NavHeader;
|
|
72269
72343
|
Nav.Footer = NavFooter;
|
|
72270
72344
|
Nav.propTypes = {
|
|
72345
|
+
collapseIcon: (prop_types_default()).node,
|
|
72271
72346
|
// Initial expanded SubNav navigation key array
|
|
72272
72347
|
defaultOpenKeys: prop_types_default().arrayOf(prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number])),
|
|
72273
72348
|
openKeys: prop_types_default().arrayOf(prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number])),
|
|
72274
72349
|
// Initial selected navigation key array
|
|
72275
72350
|
defaultSelectedKeys: prop_types_default().arrayOf(prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number])),
|
|
72351
|
+
expandIcon: (prop_types_default()).node,
|
|
72276
72352
|
selectedKeys: prop_types_default().arrayOf(prop_types_default().oneOfType([(prop_types_default()).string, (prop_types_default()).number])),
|
|
72277
72353
|
// Navigation type, now supports vertical, horizontal
|
|
72278
72354
|
mode: prop_types_default().oneOf([...navigation_constants_strings.MODE]),
|
|
@@ -78561,6 +78637,10 @@ class Select extends BaseComponent {
|
|
|
78561
78637
|
this.foundation.handleClearClick(e);
|
|
78562
78638
|
}
|
|
78563
78639
|
|
|
78640
|
+
search(value, event) {
|
|
78641
|
+
this.handleInputChange(value, event);
|
|
78642
|
+
}
|
|
78643
|
+
|
|
78564
78644
|
renderEmpty() {
|
|
78565
78645
|
return /*#__PURE__*/external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(select_option, {
|
|
78566
78646
|
empty: true,
|
|
@@ -87051,7 +87131,8 @@ class TableFoundation extends foundation {
|
|
|
87051
87131
|
}
|
|
87052
87132
|
|
|
87053
87133
|
return arr;
|
|
87054
|
-
},
|
|
87134
|
+
}, // @ts-ignore
|
|
87135
|
+
[...children])
|
|
87055
87136
|
}));
|
|
87056
87137
|
}
|
|
87057
87138
|
} else if (onFilter(value, record)) {
|
|
@@ -88639,22 +88720,30 @@ class TableHeaderRow extends BaseComponent {
|
|
|
88639
88720
|
return null;
|
|
88640
88721
|
}
|
|
88641
88722
|
|
|
88642
|
-
return
|
|
88643
|
-
|
|
88644
|
-
|
|
88645
|
-
|
|
88646
|
-
|
|
88647
|
-
|
|
88648
|
-
|
|
88723
|
+
return (
|
|
88724
|
+
/*#__PURE__*/
|
|
88725
|
+
// @ts-ignore no need to do complex ts type checking and qualification
|
|
88726
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(HeaderCell, Object.assign({
|
|
88727
|
+
role: "columnheader",
|
|
88728
|
+
"aria-colindex": cellIndex + 1
|
|
88729
|
+
}, props, {
|
|
88730
|
+
style: cellStyle,
|
|
88731
|
+
key: column.key || column.dataIndex || cellIndex
|
|
88732
|
+
}))
|
|
88733
|
+
);
|
|
88649
88734
|
});
|
|
88650
88735
|
|
|
88651
|
-
return
|
|
88652
|
-
|
|
88653
|
-
|
|
88654
|
-
|
|
88655
|
-
|
|
88656
|
-
|
|
88657
|
-
|
|
88736
|
+
return (
|
|
88737
|
+
/*#__PURE__*/
|
|
88738
|
+
// @ts-ignore no need to do complex ts type checking and qualification
|
|
88739
|
+
external_root_React_commonjs2_react_commonjs_react_amd_react_default().createElement(HeaderRow, Object.assign({
|
|
88740
|
+
role: "row",
|
|
88741
|
+
"aria-rowindex": index + 1
|
|
88742
|
+
}, rowProps, {
|
|
88743
|
+
style: style,
|
|
88744
|
+
ref: this.cacheRef
|
|
88745
|
+
}), cells)
|
|
88746
|
+
);
|
|
88658
88747
|
}
|
|
88659
88748
|
|
|
88660
88749
|
}
|
|
@@ -95183,9 +95272,7 @@ class TimePickerFoundation extends foundation {
|
|
|
95183
95272
|
}
|
|
95184
95273
|
|
|
95185
95274
|
isValidTimeZone(timeZone) {
|
|
95186
|
-
|
|
95187
|
-
|
|
95188
|
-
return ['string', 'number'].includes(typeof _timeZone) && _timeZone !== '';
|
|
95275
|
+
return ['string', 'number'].includes(typeof timeZone) && timeZone !== '';
|
|
95189
95276
|
}
|
|
95190
95277
|
|
|
95191
95278
|
getDefaultFormatIfNeed() {
|
|
@@ -95223,7 +95310,7 @@ class TimePickerFoundation extends foundation {
|
|
|
95223
95310
|
const pv = parseToDate(v, formatToken, dateFnsLocale);
|
|
95224
95311
|
|
|
95225
95312
|
if (!isNaN(pv.getTime())) {
|
|
95226
|
-
parsedValues.push(this.isValidTimeZone() ? utcToZonedTime(pv, timeZone) : pv);
|
|
95313
|
+
parsedValues.push(this.isValidTimeZone(timeZone) ? utcToZonedTime(pv, timeZone) : pv);
|
|
95227
95314
|
}
|
|
95228
95315
|
});
|
|
95229
95316
|
const isAM = [true, false];
|
|
@@ -95552,7 +95639,7 @@ class TimePickerFoundation extends foundation {
|
|
|
95552
95639
|
_value = Array.isArray(_value) ? _value[0] : _value;
|
|
95553
95640
|
}
|
|
95554
95641
|
|
|
95555
|
-
if (this.isValidTimeZone() && _value) {
|
|
95642
|
+
if (this.isValidTimeZone(timeZone) && _value) {
|
|
95556
95643
|
const formatToken = this.getValidFormat();
|
|
95557
95644
|
|
|
95558
95645
|
if (Array.isArray(_value)) {
|