@ant-design/pro-components 2.3.2 → 2.3.5

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.
@@ -9270,6 +9270,116 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
9270
9270
 
9271
9271
  /***/ }),
9272
9272
 
9273
+ /***/ 1725:
9274
+ /***/ (function(module) {
9275
+
9276
+ !function (n, e) {
9277
+ true ? module.exports = e() : 0;
9278
+ }(this, function () {
9279
+ "use strict";
9280
+
9281
+ return function (n, e, t) {
9282
+ var r = e.prototype,
9283
+ o = function o(n) {
9284
+ return n && (n.indexOf ? n : n.s);
9285
+ },
9286
+ u = function u(n, e, t, r, _u) {
9287
+ var i = n.name ? n : n.$locale(),
9288
+ a = o(i[e]),
9289
+ s = o(i[t]),
9290
+ f = a || s.map(function (n) {
9291
+ return n.slice(0, r);
9292
+ });
9293
+ if (!_u) return f;
9294
+ var d = i.weekStart;
9295
+ return f.map(function (n, e) {
9296
+ return f[(e + (d || 0)) % 7];
9297
+ });
9298
+ },
9299
+ i = function i() {
9300
+ return t.Ls[t.locale()];
9301
+ },
9302
+ a = function a(n, e) {
9303
+ return n.formats[e] || function (n) {
9304
+ return n.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g, function (n, e, t) {
9305
+ return e || t.slice(1);
9306
+ });
9307
+ }(n.formats[e.toUpperCase()]);
9308
+ },
9309
+ s = function s() {
9310
+ var n = this;
9311
+ return {
9312
+ months: function months(e) {
9313
+ return e ? e.format("MMMM") : u(n, "months");
9314
+ },
9315
+ monthsShort: function monthsShort(e) {
9316
+ return e ? e.format("MMM") : u(n, "monthsShort", "months", 3);
9317
+ },
9318
+ firstDayOfWeek: function firstDayOfWeek() {
9319
+ return n.$locale().weekStart || 0;
9320
+ },
9321
+ weekdays: function weekdays(e) {
9322
+ return e ? e.format("dddd") : u(n, "weekdays");
9323
+ },
9324
+ weekdaysMin: function weekdaysMin(e) {
9325
+ return e ? e.format("dd") : u(n, "weekdaysMin", "weekdays", 2);
9326
+ },
9327
+ weekdaysShort: function weekdaysShort(e) {
9328
+ return e ? e.format("ddd") : u(n, "weekdaysShort", "weekdays", 3);
9329
+ },
9330
+ longDateFormat: function longDateFormat(e) {
9331
+ return a(n.$locale(), e);
9332
+ },
9333
+ meridiem: this.$locale().meridiem,
9334
+ ordinal: this.$locale().ordinal
9335
+ };
9336
+ };
9337
+
9338
+ r.localeData = function () {
9339
+ return s.bind(this)();
9340
+ }, t.localeData = function () {
9341
+ var n = i();
9342
+ return {
9343
+ firstDayOfWeek: function firstDayOfWeek() {
9344
+ return n.weekStart || 0;
9345
+ },
9346
+ weekdays: function weekdays() {
9347
+ return t.weekdays();
9348
+ },
9349
+ weekdaysShort: function weekdaysShort() {
9350
+ return t.weekdaysShort();
9351
+ },
9352
+ weekdaysMin: function weekdaysMin() {
9353
+ return t.weekdaysMin();
9354
+ },
9355
+ months: function months() {
9356
+ return t.months();
9357
+ },
9358
+ monthsShort: function monthsShort() {
9359
+ return t.monthsShort();
9360
+ },
9361
+ longDateFormat: function longDateFormat(e) {
9362
+ return a(n, e);
9363
+ },
9364
+ meridiem: n.meridiem,
9365
+ ordinal: n.ordinal
9366
+ };
9367
+ }, t.months = function () {
9368
+ return u(i(), "months");
9369
+ }, t.monthsShort = function () {
9370
+ return u(i(), "monthsShort", "months", 3);
9371
+ }, t.weekdays = function (n) {
9372
+ return u(i(), "weekdays", null, null, n);
9373
+ }, t.weekdaysShort = function (n) {
9374
+ return u(i(), "weekdaysShort", "weekdays", 3, n);
9375
+ }, t.weekdaysMin = function (n) {
9376
+ return u(i(), "weekdaysMin", "weekdays", 2, n);
9377
+ };
9378
+ };
9379
+ });
9380
+
9381
+ /***/ }),
9382
+
9273
9383
  /***/ 6703:
9274
9384
  /***/ (function(module) {
9275
9385
 
@@ -9450,6 +9560,26 @@ var __WEBPACK_AMD_DEFINE_ARRAY__, __WEBPACK_AMD_DEFINE_RESULT__;/*!
9450
9560
 
9451
9561
  /***/ }),
9452
9562
 
9563
+ /***/ 7805:
9564
+ /***/ (function(module) {
9565
+
9566
+ !function (e, t) {
9567
+ true ? module.exports = t() : 0;
9568
+ }(this, function () {
9569
+ "use strict";
9570
+
9571
+ return function (e, t) {
9572
+ t.prototype.weekday = function (e) {
9573
+ var t = this.$locale().weekStart || 0,
9574
+ i = this.$W,
9575
+ n = (i < t ? i + 7 : i) - t;
9576
+ return this.$utils().u(e) ? n : this.subtract(n, "day").add(e, "day");
9577
+ };
9578
+ };
9579
+ });
9580
+
9581
+ /***/ }),
9582
+
9453
9583
  /***/ 464:
9454
9584
  /***/ (function(module, __unused_webpack___webpack_exports__, __webpack_require__) {
9455
9585
 
@@ -36715,7 +36845,7 @@ var CardLoading = function CardLoading(_ref) {
36715
36845
  className: loadingBlockClass
36716
36846
  })
36717
36847
  }), (0,jsx_runtime.jsx)(external_antd_.Col, {
36718
- span: 15,
36848
+ span: 14,
36719
36849
  children: (0,jsx_runtime.jsx)("div", {
36720
36850
  className: loadingBlockClass
36721
36851
  })
@@ -36728,7 +36858,7 @@ var CardLoading = function CardLoading(_ref) {
36728
36858
  className: loadingBlockClass
36729
36859
  })
36730
36860
  }), (0,jsx_runtime.jsx)(external_antd_.Col, {
36731
- span: 18,
36861
+ span: 16,
36732
36862
  children: (0,jsx_runtime.jsx)("div", {
36733
36863
  className: loadingBlockClass
36734
36864
  })
@@ -36759,7 +36889,7 @@ var CardLoading = function CardLoading(_ref) {
36759
36889
  className: loadingBlockClass
36760
36890
  })
36761
36891
  }), (0,jsx_runtime.jsx)(external_antd_.Col, {
36762
- span: 16,
36892
+ span: 14,
36763
36893
  children: (0,jsx_runtime.jsx)("div", {
36764
36894
  className: loadingBlockClass
36765
36895
  })
@@ -36957,7 +37087,9 @@ var proCheckCardDisabled = function proCheckCardDisabled(token) {
36957
37087
  };
36958
37088
 
36959
37089
  var CheckCard_style_genProStyle = function genProStyle(token) {
36960
- return defineProperty_defineProperty({}, token.componentCls, defineProperty_defineProperty({
37090
+ var _content, _token$componentCls;
37091
+
37092
+ return defineProperty_defineProperty({}, token.componentCls, (_token$componentCls = {
36961
37093
  position: 'relative',
36962
37094
  display: 'inline-block',
36963
37095
  width: '320px',
@@ -36982,107 +37114,92 @@ var CheckCard_style_genProStyle = function genProStyle(token) {
36982
37114
  },
36983
37115
  '&-group': {
36984
37116
  display: 'inline-block'
36985
- },
36986
- '&-loading': {
36987
- overflow: 'hidden',
36988
- userSelect: 'none',
36989
- '&-content': {
36990
- paddingInline: token.padding,
36991
- paddingBlock: token.paddingSM,
36992
- p: {
36993
- marginBlock: 0,
36994
- marginInline: 0
36995
- },
36996
- '&-block': {
36997
- height: '14px',
36998
- marginBlock: '4px',
36999
- background: "linear-gradient(90deg, rgba(54, 61, 64, 0.2), rgba(54, 61, 64, 0.4), rgba(54, 61, 64, 0.2))"
37000
- },
37001
- '@keyframes card-loading': {
37002
- '0%': {
37003
- backgroundPosition: '0 50%'
37004
- },
37005
- '50%': {
37006
- backgroundPosition: '100% 50%'
37007
- },
37008
- '100%': {
37009
- backgroundPosition: '0 50%'
37010
- }
37011
- }
37012
- }
37013
- },
37014
- '&:focus': proCheckCardActive(token),
37015
- '&-checked': objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, proCheckCardActive(token)), {}, {
37016
- '&:after': {
37017
- position: 'absolute',
37018
- insetBlockStart: 2,
37019
- insetInlineEnd: 2,
37020
- width: 0,
37021
- height: 0,
37022
- border: "6px solid ".concat(token.colorPrimary),
37023
- borderBottom: '6px solid transparent',
37024
- borderLeft: '6px solid transparent',
37025
- borderTopRightRadius: '2px',
37026
- content: "''"
37027
- }
37028
- }),
37029
- '&-disabled': proCheckCardDisabled(token),
37030
- '&[disabled]': proCheckCardDisabled(token),
37031
- '&-lg': {
37032
- width: 440
37033
- },
37034
- '&-sm': {
37035
- width: 212
37036
- },
37037
- '&-cover': {
37038
- paddingInline: token.paddingXXS,
37039
- paddingBlock: token.paddingXXS,
37040
- img: {
37041
- width: '100%',
37042
- height: '100%',
37043
- overflow: 'hidden',
37044
- borderRadius: token.radiusBase
37117
+ }
37118
+ }, defineProperty_defineProperty(_token$componentCls, "".concat(token.componentCls, "-loading"), {
37119
+ overflow: 'hidden',
37120
+ userSelect: 'none',
37121
+ '&-content': (_content = {
37122
+ paddingInline: token.padding,
37123
+ paddingBlock: token.paddingSM,
37124
+ p: {
37125
+ marginBlock: 0,
37126
+ marginInline: 0
37045
37127
  }
37046
- },
37047
- '&-content': {
37048
- display: 'flex',
37049
- paddingInline: token.paddingSM,
37050
- paddingBlock: token.padding
37051
- },
37052
- '&-avatar-header': {
37053
- display: 'flex',
37054
- alignItems: 'center'
37055
- },
37056
- '&-avatar': {
37057
- paddingInlineEnd: 8
37058
- },
37059
- '&-detail': {
37060
- overflow: 'hidden',
37061
- '> div:not(:last-child)': {
37062
- marginBlockEnd: 4
37128
+ }, defineProperty_defineProperty(_content, "".concat(token.componentCls, "-loading-block"), {
37129
+ height: '14px',
37130
+ marginBlock: '4px',
37131
+ background: "linear-gradient(90deg, rgba(54, 61, 64, 0.2), rgba(54, 61, 64, 0.4), rgba(54, 61, 64, 0.2))",
37132
+ animation: "card-loading 1.4s ease infinite"
37133
+ }), defineProperty_defineProperty(_content, '@keyframes card-loading', {
37134
+ '0%': {
37135
+ backgroundPosition: '0 50%'
37136
+ },
37137
+ '50%': {
37138
+ backgroundPosition: '100% 50%'
37139
+ },
37140
+ '100%': {
37141
+ backgroundPosition: '0 50%'
37063
37142
  }
37064
- },
37065
- '&-header': {
37066
- display: 'flex',
37067
- alignItems: 'center',
37068
- justifyContent: 'space-between'
37069
- },
37070
- '&-title': {
37143
+ }), _content)
37144
+ }), defineProperty_defineProperty(_token$componentCls, '&:focus', proCheckCardActive(token)), defineProperty_defineProperty(_token$componentCls, '&-checked', objectSpread2_objectSpread2(objectSpread2_objectSpread2({}, proCheckCardActive(token)), {}, {
37145
+ '&:after': {
37146
+ position: 'absolute',
37147
+ insetBlockStart: 2,
37148
+ insetInlineEnd: 2,
37149
+ width: 0,
37150
+ height: 0,
37151
+ border: "6px solid ".concat(token.colorPrimary),
37152
+ borderBottom: '6px solid transparent',
37153
+ borderLeft: '6px solid transparent',
37154
+ borderTopRightRadius: '2px',
37155
+ content: "''"
37156
+ }
37157
+ })), defineProperty_defineProperty(_token$componentCls, '&-disabled', proCheckCardDisabled(token)), defineProperty_defineProperty(_token$componentCls, '&[disabled]', proCheckCardDisabled(token)), defineProperty_defineProperty(_token$componentCls, '&-lg', {
37158
+ width: 440
37159
+ }), defineProperty_defineProperty(_token$componentCls, '&-sm', {
37160
+ width: 212
37161
+ }), defineProperty_defineProperty(_token$componentCls, '&-cover', {
37162
+ paddingInline: token.paddingXXS,
37163
+ paddingBlock: token.paddingXXS,
37164
+ img: {
37165
+ width: '100%',
37166
+ height: '100%',
37071
37167
  overflow: 'hidden',
37072
- color: token.colorTextHeading,
37073
- fontWeight: '500',
37074
- fontSize: token.fontSize,
37075
- whiteSpace: 'nowrap',
37076
- textOverflow: 'ellipsis'
37077
- },
37078
- '&-description': {
37079
- color: token.colorTextSecondary
37168
+ borderRadius: token.radiusBase
37080
37169
  }
37081
- }, "&:not(".concat(token.componentCls, "-disabled)"), {
37170
+ }), defineProperty_defineProperty(_token$componentCls, '&-content', {
37171
+ display: 'flex',
37172
+ paddingInline: token.paddingSM,
37173
+ paddingBlock: token.padding
37174
+ }), defineProperty_defineProperty(_token$componentCls, '&-avatar-header', {
37175
+ display: 'flex',
37176
+ alignItems: 'center'
37177
+ }), defineProperty_defineProperty(_token$componentCls, '&-avatar', {
37178
+ paddingInlineEnd: 8
37179
+ }), defineProperty_defineProperty(_token$componentCls, '&-detail', {
37180
+ overflow: 'hidden',
37181
+ width: '100%',
37182
+ '> div:not(:last-child)': {
37183
+ marginBlockEnd: 4
37184
+ }
37185
+ }), defineProperty_defineProperty(_token$componentCls, '&-header', {
37186
+ display: 'flex',
37187
+ alignItems: 'center',
37188
+ justifyContent: 'space-between'
37189
+ }), defineProperty_defineProperty(_token$componentCls, '&-title', {
37190
+ overflow: 'hidden',
37191
+ color: token.colorTextHeading,
37192
+ fontWeight: '500',
37193
+ fontSize: token.fontSize,
37194
+ whiteSpace: 'nowrap',
37195
+ textOverflow: 'ellipsis'
37196
+ }), defineProperty_defineProperty(_token$componentCls, '&-description', {
37197
+ color: token.colorTextSecondary
37198
+ }), defineProperty_defineProperty(_token$componentCls, "&:not(".concat(token.componentCls, "-disabled)"), {
37082
37199
  '&:hover': {
37083
37200
  borderColor: token.colorPrimary
37084
37201
  }
37085
- }));
37202
+ }), _token$componentCls));
37086
37203
  };
37087
37204
 
37088
37205
  function CheckCard_style_useStyle(prefixCls) {
@@ -37661,40 +37778,39 @@ var ProCardActions = function ProCardActions(props) {
37661
37778
 
37662
37779
 
37663
37780
  var Loading_style_genProStyle = function genProStyle(token) {
37664
- return defineProperty_defineProperty({}, token.componentCls, {
37781
+ var _token$componentCls;
37782
+
37783
+ return defineProperty_defineProperty({}, token.componentCls, (_token$componentCls = {
37665
37784
  '&-loading': {
37666
37785
  overflow: 'hidden'
37667
37786
  },
37668
37787
  '&-loading &-body': {
37669
37788
  userSelect: 'none'
37789
+ }
37790
+ }, defineProperty_defineProperty(_token$componentCls, "".concat(token.componentCls, "-loading-content"), {
37791
+ width: '100%',
37792
+ p: {
37793
+ marginBlock: 0,
37794
+ marginInline: 0
37795
+ }
37796
+ }), defineProperty_defineProperty(_token$componentCls, "".concat(token.componentCls, "-loading-block"), {
37797
+ height: '14px',
37798
+ marginBlock: '4px',
37799
+ background: "linear-gradient(90deg, rgba(54, 61, 64, 0.2), rgba(54, 61, 64, 0.4), rgba(54, 61, 64, 0.2))",
37800
+ backgroundSize: '600% 600%',
37801
+ borderRadius: token.radiusBase,
37802
+ animation: 'card-loading 1.4s ease infinite'
37803
+ }), defineProperty_defineProperty(_token$componentCls, '@keyframes card-loading', {
37804
+ '0%': {
37805
+ backgroundPosition: '0 50%'
37670
37806
  },
37671
- '&-loading-content': {
37672
- width: '100%',
37673
- p: {
37674
- marginBlock: 0,
37675
- marginInline: 0
37676
- }
37677
- },
37678
- '&-loading-block': {
37679
- height: '14px',
37680
- marginBlock: '4px',
37681
- background: "linear-gradient(90deg, rgba(54, 61, 64, 0.2), rgba(54, 61, 64, 0.4), rgba(54, 61, 64, 0.2))",
37682
- backgroundSize: '600% 600%',
37683
- borderRadius: token.radiusBase,
37684
- animation: 'card-loading 1.4s ease infinite'
37807
+ '50%': {
37808
+ backgroundPosition: '100% 50%'
37685
37809
  },
37686
- '@keyframes card-loading': {
37687
- '0%': {
37688
- backgroundPosition: '0 50%'
37689
- },
37690
- '50%': {
37691
- backgroundPosition: '100% 50%'
37692
- },
37693
- '100%': {
37694
- backgroundPosition: '0 50 % '
37695
- }
37810
+ '100%': {
37811
+ backgroundPosition: '0 50 % '
37696
37812
  }
37697
- });
37813
+ }), _token$componentCls));
37698
37814
  };
37699
37815
 
37700
37816
  function Loading_style_useStyle(prefixCls) {
@@ -44800,7 +44916,8 @@ var LightSelect = function LightSelect(props, ref) {
44800
44916
  }
44801
44917
  })), _$concat2));
44802
44918
  }),
44803
- wrapSSR = _useStyle.wrapSSR;
44919
+ wrapSSR = _useStyle.wrapSSR,
44920
+ hashId = _useStyle.hashId;
44804
44921
 
44805
44922
  var valueMap = (0,external_React_.useMemo)(function () {
44806
44923
  var values = {};
@@ -44815,7 +44932,7 @@ var LightSelect = function LightSelect(props, ref) {
44815
44932
  return getValueOrLabel(valueMap, v);
44816
44933
  }) : getValueOrLabel(valueMap, value);
44817
44934
  return wrapSSR((0,jsx_runtime.jsxs)("div", {
44818
- className: classnames_default()(prefixCls, defineProperty_defineProperty({}, "".concat(prefixCls, "-searchable"), showSearch), className),
44935
+ className: classnames_default()(prefixCls, hashId, defineProperty_defineProperty({}, "".concat(prefixCls, "-searchable"), showSearch), className),
44819
44936
  style: style,
44820
44937
  onClick: function onClick(e) {
44821
44938
  var _lightLabel$current, _lightLabel$current$l, _lightLabel$current$l2;
@@ -53965,7 +54082,7 @@ var FieldRadio = function FieldRadio(_ref, ref) {
53965
54082
  });
53966
54083
  }); // css
53967
54084
 
53968
- var _useStyle = useStyle('checkbox', function (token) {
54085
+ var _useStyle = useStyle('FieldRadioRadio', function (token) {
53969
54086
  return defineProperty_defineProperty({}, ".".concat(layoutClassName, "-horizontal"), defineProperty_defineProperty({}, "".concat(token.antCls, "-radio-wrapper"), {
53970
54087
  display: 'block',
53971
54088
  marginInlineEnd: 0
@@ -55122,7 +55239,7 @@ var FieldTimePicker = function FieldTimePicker(_ref, ref) {
55122
55239
  */
55123
55240
 
55124
55241
 
55125
- var FieldTimeRangePicker = function FieldTimeRangePicker(_ref2) {
55242
+ var FieldTimeRangePickerComponents = function FieldTimeRangePickerComponents(_ref2) {
55126
55243
  var text = _ref2.text,
55127
55244
  mode = _ref2.mode,
55128
55245
  format = _ref2.format,
@@ -55185,6 +55302,7 @@ var FieldTimeRangePicker = function FieldTimeRangePicker(_ref2) {
55185
55302
  return null;
55186
55303
  };
55187
55304
 
55305
+ var FieldTimeRangePicker = /*#__PURE__*/external_React_default().forwardRef(FieldTimeRangePickerComponents);
55188
55306
 
55189
55307
  /* harmony default export */ var TimePicker = (/*#__PURE__*/external_React_default().forwardRef(FieldTimePicker));
55190
55308
  ;// CONCATENATED MODULE: ./node_modules/antd/es/spin/style/index.js
@@ -56044,6 +56162,12 @@ function FieldHOC(props) {
56044
56162
  }
56045
56163
 
56046
56164
  /* harmony default export */ var es_FieldHOC = (FieldHOC);
56165
+ // EXTERNAL MODULE: ./node_modules/dayjs/plugin/weekday.js
56166
+ var weekday = __webpack_require__(7805);
56167
+ var weekday_default = /*#__PURE__*/__webpack_require__.n(weekday);
56168
+ // EXTERNAL MODULE: ./node_modules/dayjs/plugin/localeData.js
56169
+ var localeData = __webpack_require__(1725);
56170
+ var localeData_default = /*#__PURE__*/__webpack_require__.n(localeData);
56047
56171
  ;// CONCATENATED MODULE: ./packages/field/es/index.js
56048
56172
 
56049
56173
 
@@ -56084,6 +56208,11 @@ var es_excluded = ["text", "valueType", "mode", "onChange", "renderFormItem", "v
56084
56208
 
56085
56209
 
56086
56210
 
56211
+
56212
+
56213
+
56214
+ dayjs_min_default().extend((weekday_default()));
56215
+ dayjs_min_default().extend((localeData_default()));
56087
56216
  var REQUEST_VALUE_TYPE = ['select', 'radio', 'radioButton', 'checkbook'];
56088
56217
  /**
56089
56218
  * Render valueType object
@@ -71336,7 +71465,7 @@ var genPageContainerStyle = function genPageContainerStyle(token) {
71336
71465
  boxShadow: '0 2px 8px #f0f1f2'
71337
71466
  }))
71338
71467
  }, defineProperty_defineProperty(_token$componentCls, '& &-warp-page-header', defineProperty_defineProperty({
71339
- marginBlock: token.marginBlockPageContainerContent / 2,
71468
+ marginBlockEnd: token.marginBlockPageContainerContent / 2,
71340
71469
  paddingInlineStart: 40,
71341
71470
  paddingInlineEnd: 40
71342
71471
  }, "& ~ ".concat(token.proComponentsCls, "-grid-content"), defineProperty_defineProperty({}, "".concat(token.proComponentsCls, "-page-container-children-content"), {
@@ -73618,7 +73747,7 @@ var SiderMenu = function SiderMenu(props) {
73618
73747
  },
73619
73748
  collapsedWidth: collapsedWidth,
73620
73749
  style: style,
73621
- theme: theme,
73750
+ theme: "light",
73622
73751
  width: siderWidth,
73623
73752
  className: classnames_default()(siderClassName, hashId, hideMenuWhenCollapsedClassName),
73624
73753
  children: [(0,jsx_runtime.jsx)(external_antd_.ConfigProvider // @ts-ignore
@@ -74169,7 +74298,7 @@ var GlobalHeader_renderLogo = function renderLogo(menuHeaderRender, logoDom) {
74169
74298
  };
74170
74299
 
74171
74300
  var GlobalHeader = function GlobalHeader(props) {
74172
- var _classNames2;
74301
+ var _classNames;
74173
74302
 
74174
74303
  var isMobile = props.isMobile,
74175
74304
  logo = props.logo,
@@ -74182,8 +74311,6 @@ var GlobalHeader = function GlobalHeader(props) {
74182
74311
  style = props.style,
74183
74312
  layout = props.layout,
74184
74313
  children = props.children,
74185
- _props$headerTheme = props.headerTheme,
74186
- headerTheme = _props$headerTheme === void 0 ? 'dark' : _props$headerTheme,
74187
74314
  splitMenus = props.splitMenus,
74188
74315
  menuData = props.menuData,
74189
74316
  prefixCls = props.prefixCls;
@@ -74197,7 +74324,7 @@ var GlobalHeader = function GlobalHeader(props) {
74197
74324
  wrapSSR = _useStyle.wrapSSR,
74198
74325
  hashId = _useStyle.hashId;
74199
74326
 
74200
- var className = classnames_default()(propClassName, baseClassName, hashId, defineProperty_defineProperty({}, "".concat(baseClassName, "-layout-").concat(layout), layout && headerTheme === 'dark'));
74327
+ var className = classnames_default()(propClassName, baseClassName, hashId);
74201
74328
 
74202
74329
  if (layout === 'mix' && !isMobile && splitMenus) {
74203
74330
  var noChildrenMenuData = (menuData || []).map(function (item) {
@@ -74211,12 +74338,11 @@ var GlobalHeader = function GlobalHeader(props) {
74211
74338
  mode: "horizontal"
74212
74339
  }, props), {}, {
74213
74340
  splitMenus: false,
74214
- menuData: clearMenuData,
74215
- theme: headerTheme
74341
+ menuData: clearMenuData
74216
74342
  }));
74217
74343
  }
74218
74344
 
74219
- var logoClassNames = classnames_default()("".concat(baseClassName, "-logo"), hashId, (_classNames2 = {}, defineProperty_defineProperty(_classNames2, "".concat(baseClassName, "-logo-rtl"), direction === 'rtl'), defineProperty_defineProperty(_classNames2, "".concat(baseClassName, "-logo-mix"), layout === 'mix'), defineProperty_defineProperty(_classNames2, "".concat(baseClassName, "-logo-mobile"), isMobile), _classNames2));
74345
+ var logoClassNames = classnames_default()("".concat(baseClassName, "-logo"), hashId, (_classNames = {}, defineProperty_defineProperty(_classNames, "".concat(baseClassName, "-logo-rtl"), direction === 'rtl'), defineProperty_defineProperty(_classNames, "".concat(baseClassName, "-logo-mix"), layout === 'mix'), defineProperty_defineProperty(_classNames, "".concat(baseClassName, "-logo-mobile"), isMobile), _classNames));
74220
74346
 
74221
74347
  var logoDom = (0,jsx_runtime.jsx)("span", {
74222
74348
  className: logoClassNames,
@@ -74278,7 +74404,6 @@ var DefaultHeader = function DefaultHeader(props) {
74278
74404
  collapsed = props.collapsed,
74279
74405
  prefixCls = props.prefixCls,
74280
74406
  onCollapse = props.onCollapse,
74281
- navTheme = props.navTheme,
74282
74407
  layout = props.layout,
74283
74408
  headerRender = props.headerRender,
74284
74409
  headerContentRender = props.headerContentRender;
@@ -74299,7 +74424,6 @@ var DefaultHeader = function DefaultHeader(props) {
74299
74424
 
74300
74425
  if (isTop && !isMobile) {
74301
74426
  defaultDom = (0,jsx_runtime.jsx)(TopNavHeader, objectSpread2_objectSpread2(objectSpread2_objectSpread2({
74302
- theme: navTheme,
74303
74427
  mode: "horizontal",
74304
74428
  onCollapse: onCollapse
74305
74429
  }, props), {}, {
@@ -74312,7 +74436,7 @@ var DefaultHeader = function DefaultHeader(props) {
74312
74436
  }
74313
74437
 
74314
74438
  return defaultDom;
74315
- }, [headerContentRender, headerRender, isMobile, layout, navTheme, onCollapse, props]);
74439
+ }, [headerContentRender, headerRender, isMobile, layout, onCollapse, props]);
74316
74440
  var needFixedHeader = fixedHeader || layout === 'mix';
74317
74441
  var isTop = layout === 'top';
74318
74442
  var baseClassName = "".concat(prefixCls, "-layout-header");
@@ -78560,10 +78684,13 @@ function urlToList(url) {
78560
78684
  // 渲染Breadcrumb 子节点
78561
78685
  // Render the Breadcrumb child node
78562
78686
 
78563
- var defaultItemRender = function defaultItemRender(_ref) {
78564
- var breadcrumbName = _ref.breadcrumbName,
78565
- path = _ref.path;
78566
- return (0,jsx_runtime.jsx)("a", {
78687
+ var defaultItemRender = function defaultItemRender(route, _, routes) {
78688
+ var breadcrumbName = route.breadcrumbName,
78689
+ path = route.path;
78690
+ var last = routes.indexOf(route) === routes.length - 1;
78691
+ return last ? (0,jsx_runtime.jsx)("span", {
78692
+ children: breadcrumbName
78693
+ }) : (0,jsx_runtime.jsx)("a", {
78567
78694
  href: path,
78568
78695
  children: breadcrumbName
78569
78696
  });
@@ -78653,9 +78780,9 @@ var getBreadcrumbProps = function getBreadcrumbProps(props, layoutPros) {
78653
78780
  var breadcrumbRender = props.breadcrumbRender,
78654
78781
  propsItemRender = props.itemRender;
78655
78782
 
78656
- var _ref2 = layoutPros.breadcrumbProps || {},
78657
- _ref2$minLength = _ref2.minLength,
78658
- minLength = _ref2$minLength === void 0 ? 2 : _ref2$minLength;
78783
+ var _ref = layoutPros.breadcrumbProps || {},
78784
+ _ref$minLength = _ref.minLength,
78785
+ minLength = _ref$minLength === void 0 ? 2 : _ref$minLength;
78659
78786
 
78660
78787
  var routesArray = genBreadcrumbProps(props);
78661
78788
  var itemRender = propsItemRender || defaultItemRender;
@@ -78729,10 +78856,9 @@ var useCurrentMenuLayoutProps = function useCurrentMenuLayoutProps(currentMenu)
78729
78856
  footerRender: currentMenu.footerRender,
78730
78857
  menuHeaderRender: currentMenu.menuHeaderRender,
78731
78858
  headerRender: currentMenu.headerRender,
78732
- fixSiderbar: currentMenu.fixSiderbar,
78733
- headerTheme: currentMenu.headerTheme
78859
+ fixSiderbar: currentMenu.fixSiderbar
78734
78860
  }));
78735
- }, [currentMenu.layout, currentMenu.navTheme, currentMenu.menuRender, currentMenu.footerRender, currentMenu.menuHeaderRender, currentMenu.headerRender, currentMenu.fixSiderbar, currentMenu.headerTheme]);
78861
+ }, [currentMenu.layout, currentMenu.navTheme, currentMenu.menuRender, currentMenu.footerRender, currentMenu.menuHeaderRender, currentMenu.headerRender, currentMenu.fixSiderbar]);
78736
78862
  return currentMenuLayoutProps;
78737
78863
  };
78738
78864
 
@@ -79136,7 +79262,6 @@ var BaseProLayout = function BaseProLayout(props) {
79136
79262
  menuData: menuData,
79137
79263
  onCollapse: onCollapse,
79138
79264
  isMobile: isMobile,
79139
- theme: navTheme === 'dark' ? 'dark' : 'light',
79140
79265
  collapsed: collapsed
79141
79266
  }), matchMenuKeys); // render header dom
79142
79267
 
@@ -79146,8 +79271,7 @@ var BaseProLayout = function BaseProLayout(props) {
79146
79271
  menuData: menuData,
79147
79272
  isMobile: isMobile,
79148
79273
  collapsed: collapsed,
79149
- onCollapse: onCollapse,
79150
- theme: navTheme === 'dark' ? 'dark' : 'light'
79274
+ onCollapse: onCollapse
79151
79275
  }), matchMenuKeys); // render footer dom
79152
79276
 
79153
79277
  var footerDom = footerRender(objectSpread2_objectSpread2({
@@ -80281,6 +80405,162 @@ var genTableStyle = function genTableStyle(token) {
80281
80405
  });
80282
80406
  return [genTableStyle(tableToken), pagination(tableToken), summary(tableToken), sorter(tableToken), filter(tableToken), bordered(tableToken), radius(tableToken), expand(tableToken), summary(tableToken), empty(tableToken), selection(tableToken), fixed(tableToken), sticky(tableToken), ellipsis(tableToken), size(tableToken), table_style_rtl(tableToken)];
80283
80407
  }));
80408
+ ;// CONCATENATED MODULE: ./node_modules/antd/es/alert/style/index.js
80409
+
80410
+
80411
+
80412
+
80413
+
80414
+ var genAlertTypeStyle = function genAlertTypeStyle(bgColor, borderColor, iconColor, token, alertCls) {
80415
+ return defineProperty_defineProperty({
80416
+ backgroundColor: bgColor,
80417
+ border: "".concat(token.controlLineWidth, "px ").concat(token.controlLineType, " ").concat(borderColor)
80418
+ }, "".concat(alertCls, "-icon"), {
80419
+ color: iconColor
80420
+ });
80421
+ };
80422
+
80423
+ var alert_style_genBaseStyle = function genBaseStyle(token) {
80424
+ var _extends2, _$concat, _ref2;
80425
+
80426
+ var componentCls = token.componentCls,
80427
+ duration = token.motionDurationSlow,
80428
+ marginXS = token.marginXS,
80429
+ marginSM = token.marginSM,
80430
+ fontSize = token.fontSize,
80431
+ fontSizeLG = token.fontSizeLG,
80432
+ lineHeight = token.lineHeight,
80433
+ borderRadius = token.radiusLG,
80434
+ motionEaseInOutCirc = token.motionEaseInOutCirc,
80435
+ alertIconSizeLG = token.alertIconSizeLG,
80436
+ colorText = token.colorText,
80437
+ paddingSM = token.paddingSM,
80438
+ paddingXS = token.paddingXS,
80439
+ paddingTmp = token.paddingTmp,
80440
+ paddingLG = token.paddingLG;
80441
+ return _ref2 = {}, defineProperty_defineProperty(_ref2, componentCls, extends_extends(extends_extends({}, style_resetComponent(token)), (_extends2 = {
80442
+ position: 'relative',
80443
+ display: 'flex',
80444
+ alignItems: 'center',
80445
+ padding: "".concat(paddingXS, "px ").concat(paddingSM, "px"),
80446
+ wordWrap: 'break-word',
80447
+ borderRadius: borderRadius,
80448
+ '&&-rtl': {
80449
+ direction: 'rtl'
80450
+ }
80451
+ }, defineProperty_defineProperty(_extends2, "".concat(componentCls, "-content"), {
80452
+ flex: 1,
80453
+ minWidth: 0
80454
+ }), defineProperty_defineProperty(_extends2, "".concat(componentCls, "-icon"), {
80455
+ marginInlineEnd: marginXS,
80456
+ lineHeight: 0
80457
+ }), defineProperty_defineProperty(_extends2, "&-description", {
80458
+ display: 'none',
80459
+ fontSize: fontSize,
80460
+ lineHeight: lineHeight
80461
+ }), defineProperty_defineProperty(_extends2, '&-message', {
80462
+ color: colorText
80463
+ }), defineProperty_defineProperty(_extends2, '&&-motion-leave', {
80464
+ overflow: 'hidden',
80465
+ opacity: 1,
80466
+ transition: "max-height ".concat(duration, " ").concat(motionEaseInOutCirc, ", opacity ").concat(duration, " ").concat(motionEaseInOutCirc, ",\n padding-top ").concat(duration, " ").concat(motionEaseInOutCirc, ", padding-bottom ").concat(duration, " ").concat(motionEaseInOutCirc, ",\n margin-bottom ").concat(duration, " ").concat(motionEaseInOutCirc)
80467
+ }), defineProperty_defineProperty(_extends2, '&&-motion-leave-active', {
80468
+ maxHeight: 0,
80469
+ marginBottom: '0 !important',
80470
+ paddingTop: 0,
80471
+ paddingBottom: 0,
80472
+ opacity: 0
80473
+ }), _extends2))), defineProperty_defineProperty(_ref2, "".concat(componentCls, "-with-description"), (_$concat = {
80474
+ alignItems: 'flex-start',
80475
+ paddingInline: paddingLG,
80476
+ paddingBlock: paddingTmp
80477
+ }, defineProperty_defineProperty(_$concat, "".concat(componentCls, "-icon"), {
80478
+ marginInlineEnd: marginSM,
80479
+ fontSize: alertIconSizeLG,
80480
+ lineHeight: 0
80481
+ }), defineProperty_defineProperty(_$concat, "".concat(componentCls, "-message"), {
80482
+ display: 'block',
80483
+ marginBottom: marginXS,
80484
+ color: colorText,
80485
+ fontSize: fontSizeLG
80486
+ }), defineProperty_defineProperty(_$concat, "".concat(componentCls, "-description"), {
80487
+ display: 'block'
80488
+ }), _$concat)), defineProperty_defineProperty(_ref2, "".concat(componentCls, "-banner"), {
80489
+ marginBottom: 0,
80490
+ border: '0 !important',
80491
+ borderRadius: 0
80492
+ }), _ref2;
80493
+ };
80494
+ var genTypeStyle = function genTypeStyle(token) {
80495
+ var componentCls = token.componentCls,
80496
+ colorSuccess = token.colorSuccess,
80497
+ colorSuccessBorder = token.colorSuccessBorder,
80498
+ colorSuccessBg = token.colorSuccessBg,
80499
+ colorWarning = token.colorWarning,
80500
+ colorWarningBorder = token.colorWarningBorder,
80501
+ colorWarningBg = token.colorWarningBg,
80502
+ colorError = token.colorError,
80503
+ colorErrorBorder = token.colorErrorBorder,
80504
+ colorErrorBg = token.colorErrorBg,
80505
+ colorInfo = token.colorInfo,
80506
+ colorInfoBorder = token.colorInfoBorder,
80507
+ colorInfoBg = token.colorInfoBg;
80508
+ return defineProperty_defineProperty({}, componentCls, {
80509
+ '&-success': genAlertTypeStyle(colorSuccessBg, colorSuccessBorder, colorSuccess, token, componentCls),
80510
+ '&-info': genAlertTypeStyle(colorInfoBg, colorInfoBorder, colorInfo, token, componentCls),
80511
+ '&-warning': genAlertTypeStyle(colorWarningBg, colorWarningBorder, colorWarning, token, componentCls),
80512
+ '&-error': extends_extends(extends_extends({}, genAlertTypeStyle(colorErrorBg, colorErrorBorder, colorError, token, componentCls)), defineProperty_defineProperty({}, "".concat(componentCls, "-description > pre"), {
80513
+ margin: 0,
80514
+ padding: 0
80515
+ }))
80516
+ });
80517
+ };
80518
+ var genActionStyle = function genActionStyle(token) {
80519
+ var _componentCls;
80520
+
80521
+ var componentCls = token.componentCls,
80522
+ iconCls = token.iconCls,
80523
+ duration = token.motionDurationSlow,
80524
+ marginXS = token.marginXS,
80525
+ fontSizeIcon = token.fontSizeIcon,
80526
+ colorIcon = token.colorIcon,
80527
+ colorIconHover = token.colorIconHover;
80528
+ return defineProperty_defineProperty({}, componentCls, (_componentCls = {}, defineProperty_defineProperty(_componentCls, "&-action", {
80529
+ marginInlineStart: marginXS
80530
+ }), defineProperty_defineProperty(_componentCls, "".concat(componentCls, "-close-icon"), defineProperty_defineProperty({
80531
+ marginInlineStart: marginXS,
80532
+ padding: 0,
80533
+ overflow: 'hidden',
80534
+ fontSize: fontSizeIcon,
80535
+ lineHeight: "".concat(fontSizeIcon, "px"),
80536
+ backgroundColor: 'transparent',
80537
+ border: 'none',
80538
+ outline: 'none',
80539
+ cursor: 'pointer'
80540
+ }, "".concat(iconCls, "-close"), {
80541
+ color: colorIcon,
80542
+ transition: "color ".concat(duration),
80543
+ '&:hover': {
80544
+ color: colorIconHover
80545
+ }
80546
+ })), defineProperty_defineProperty(_componentCls, '&-close-text', {
80547
+ color: colorIcon,
80548
+ transition: "color ".concat(duration),
80549
+ '&:hover': {
80550
+ color: colorIconHover
80551
+ }
80552
+ }), _componentCls));
80553
+ };
80554
+ var genAlertStyle = function genAlertStyle(token) {
80555
+ return [alert_style_genBaseStyle(token), genTypeStyle(token), genActionStyle(token)];
80556
+ };
80557
+ /* harmony default export */ var alert_style = (genComponentStyleHook_genComponentStyleHook('Alert', function (token) {
80558
+ var fontSizeHeading3 = token.fontSizeHeading3;
80559
+ var alertToken = merge(token, {
80560
+ alertIconSizeLG: fontSizeHeading3
80561
+ });
80562
+ return [genAlertStyle(alertToken)];
80563
+ }));
80284
80564
  ;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/MenuOutlined.js
80285
80565
  // This icon file is generated automatically.
80286
80566
  var MenuOutlined = {
@@ -82175,9 +82455,10 @@ function useActionType(ref, action, props) {
82175
82455
  });
82176
82456
 
82177
82457
  case 3:
82178
- action === null || action === void 0 ? void 0 : action.reload();
82458
+ _context.next = 5;
82459
+ return action === null || action === void 0 ? void 0 : action.reload();
82179
82460
 
82180
- case 4:
82461
+ case 5:
82181
82462
  case "end":
82182
82463
  return _context.stop();
82183
82464
  }
@@ -87401,6 +87682,7 @@ FieldEditableTable.RecordCreator = RecordCreator;
87401
87682
  /* harmony default export */ var components_EditableTable = (FieldEditableTable);
87402
87683
  ;// CONCATENATED MODULE: ./packages/table/es/index.js
87403
87684
  // 兼容代码-----------
87685
+
87404
87686
  //----------------------
87405
87687
 
87406
87688
 
@@ -106017,17 +106299,17 @@ function BaseProList(props) {
106017
106299
  /* harmony default export */ var list_es = ((/* unused pure expression or super */ null && (ProList)));
106018
106300
  ;// CONCATENATED MODULE: ./packages/components/src/version.ts
106019
106301
  var version_version = {
106020
- "@ant-design/pro-card": "2.0.0",
106021
- "@ant-design/pro-components": "2.3.1",
106022
- "@ant-design/pro-descriptions": "2.0.0",
106023
- "@ant-design/pro-field": "2.0.0",
106024
- "@ant-design/pro-form": "2.0.0",
106025
- "@ant-design/pro-layout": "7.0.0",
106026
- "@ant-design/pro-list": "2.0.0",
106027
- "@ant-design/pro-provider": "2.0.0",
106028
- "@ant-design/pro-skeleton": "2.0.0",
106029
- "@ant-design/pro-table": "3.0.0",
106030
- "@ant-design/pro-utils": "2.0.0"
106302
+ "@ant-design/pro-card": "2.0.2",
106303
+ "@ant-design/pro-components": "2.3.4",
106304
+ "@ant-design/pro-descriptions": "2.0.3",
106305
+ "@ant-design/pro-field": "2.0.3",
106306
+ "@ant-design/pro-form": "2.0.3",
106307
+ "@ant-design/pro-layout": "7.0.2",
106308
+ "@ant-design/pro-list": "2.0.3",
106309
+ "@ant-design/pro-provider": "2.0.2",
106310
+ "@ant-design/pro-skeleton": "2.0.2",
106311
+ "@ant-design/pro-table": "3.0.3",
106312
+ "@ant-design/pro-utils": "2.0.2"
106031
106313
  };
106032
106314
  ;// CONCATENATED MODULE: ./packages/components/src/index.tsx
106033
106315