@ant-design/pro-components 2.3.3 → 2.3.4
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/components.js +283 -11
- package/dist/components.min.js +1 -1
- package/es/version.js +11 -11
- package/package.json +6 -6
package/dist/components.js
CHANGED
|
@@ -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
|
|
|
@@ -56070,6 +56180,9 @@ function FieldHOC(props) {
|
|
|
56070
56180
|
// EXTERNAL MODULE: ./node_modules/dayjs/plugin/weekday.js
|
|
56071
56181
|
var weekday = __webpack_require__(7805);
|
|
56072
56182
|
var weekday_default = /*#__PURE__*/__webpack_require__.n(weekday);
|
|
56183
|
+
// EXTERNAL MODULE: ./node_modules/dayjs/plugin/localeData.js
|
|
56184
|
+
var localeData = __webpack_require__(1725);
|
|
56185
|
+
var localeData_default = /*#__PURE__*/__webpack_require__.n(localeData);
|
|
56073
56186
|
;// CONCATENATED MODULE: ./packages/field/es/index.js
|
|
56074
56187
|
|
|
56075
56188
|
|
|
@@ -56110,9 +56223,11 @@ var es_excluded = ["text", "valueType", "mode", "onChange", "renderFormItem", "v
|
|
|
56110
56223
|
|
|
56111
56224
|
|
|
56112
56225
|
|
|
56226
|
+
|
|
56113
56227
|
|
|
56114
56228
|
|
|
56115
56229
|
dayjs_min_default().extend((weekday_default()));
|
|
56230
|
+
dayjs_min_default().extend((localeData_default()));
|
|
56116
56231
|
var REQUEST_VALUE_TYPE = ['select', 'radio', 'radioButton', 'checkbook'];
|
|
56117
56232
|
/**
|
|
56118
56233
|
* Render valueType object
|
|
@@ -80310,6 +80425,162 @@ var genTableStyle = function genTableStyle(token) {
|
|
|
80310
80425
|
});
|
|
80311
80426
|
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)];
|
|
80312
80427
|
}));
|
|
80428
|
+
;// CONCATENATED MODULE: ./node_modules/antd/es/alert/style/index.js
|
|
80429
|
+
|
|
80430
|
+
|
|
80431
|
+
|
|
80432
|
+
|
|
80433
|
+
|
|
80434
|
+
var genAlertTypeStyle = function genAlertTypeStyle(bgColor, borderColor, iconColor, token, alertCls) {
|
|
80435
|
+
return defineProperty_defineProperty({
|
|
80436
|
+
backgroundColor: bgColor,
|
|
80437
|
+
border: "".concat(token.controlLineWidth, "px ").concat(token.controlLineType, " ").concat(borderColor)
|
|
80438
|
+
}, "".concat(alertCls, "-icon"), {
|
|
80439
|
+
color: iconColor
|
|
80440
|
+
});
|
|
80441
|
+
};
|
|
80442
|
+
|
|
80443
|
+
var alert_style_genBaseStyle = function genBaseStyle(token) {
|
|
80444
|
+
var _extends2, _$concat, _ref2;
|
|
80445
|
+
|
|
80446
|
+
var componentCls = token.componentCls,
|
|
80447
|
+
duration = token.motionDurationSlow,
|
|
80448
|
+
marginXS = token.marginXS,
|
|
80449
|
+
marginSM = token.marginSM,
|
|
80450
|
+
fontSize = token.fontSize,
|
|
80451
|
+
fontSizeLG = token.fontSizeLG,
|
|
80452
|
+
lineHeight = token.lineHeight,
|
|
80453
|
+
borderRadius = token.radiusLG,
|
|
80454
|
+
motionEaseInOutCirc = token.motionEaseInOutCirc,
|
|
80455
|
+
alertIconSizeLG = token.alertIconSizeLG,
|
|
80456
|
+
colorText = token.colorText,
|
|
80457
|
+
paddingSM = token.paddingSM,
|
|
80458
|
+
paddingXS = token.paddingXS,
|
|
80459
|
+
paddingTmp = token.paddingTmp,
|
|
80460
|
+
paddingLG = token.paddingLG;
|
|
80461
|
+
return _ref2 = {}, defineProperty_defineProperty(_ref2, componentCls, extends_extends(extends_extends({}, style_resetComponent(token)), (_extends2 = {
|
|
80462
|
+
position: 'relative',
|
|
80463
|
+
display: 'flex',
|
|
80464
|
+
alignItems: 'center',
|
|
80465
|
+
padding: "".concat(paddingXS, "px ").concat(paddingSM, "px"),
|
|
80466
|
+
wordWrap: 'break-word',
|
|
80467
|
+
borderRadius: borderRadius,
|
|
80468
|
+
'&&-rtl': {
|
|
80469
|
+
direction: 'rtl'
|
|
80470
|
+
}
|
|
80471
|
+
}, defineProperty_defineProperty(_extends2, "".concat(componentCls, "-content"), {
|
|
80472
|
+
flex: 1,
|
|
80473
|
+
minWidth: 0
|
|
80474
|
+
}), defineProperty_defineProperty(_extends2, "".concat(componentCls, "-icon"), {
|
|
80475
|
+
marginInlineEnd: marginXS,
|
|
80476
|
+
lineHeight: 0
|
|
80477
|
+
}), defineProperty_defineProperty(_extends2, "&-description", {
|
|
80478
|
+
display: 'none',
|
|
80479
|
+
fontSize: fontSize,
|
|
80480
|
+
lineHeight: lineHeight
|
|
80481
|
+
}), defineProperty_defineProperty(_extends2, '&-message', {
|
|
80482
|
+
color: colorText
|
|
80483
|
+
}), defineProperty_defineProperty(_extends2, '&&-motion-leave', {
|
|
80484
|
+
overflow: 'hidden',
|
|
80485
|
+
opacity: 1,
|
|
80486
|
+
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)
|
|
80487
|
+
}), defineProperty_defineProperty(_extends2, '&&-motion-leave-active', {
|
|
80488
|
+
maxHeight: 0,
|
|
80489
|
+
marginBottom: '0 !important',
|
|
80490
|
+
paddingTop: 0,
|
|
80491
|
+
paddingBottom: 0,
|
|
80492
|
+
opacity: 0
|
|
80493
|
+
}), _extends2))), defineProperty_defineProperty(_ref2, "".concat(componentCls, "-with-description"), (_$concat = {
|
|
80494
|
+
alignItems: 'flex-start',
|
|
80495
|
+
paddingInline: paddingLG,
|
|
80496
|
+
paddingBlock: paddingTmp
|
|
80497
|
+
}, defineProperty_defineProperty(_$concat, "".concat(componentCls, "-icon"), {
|
|
80498
|
+
marginInlineEnd: marginSM,
|
|
80499
|
+
fontSize: alertIconSizeLG,
|
|
80500
|
+
lineHeight: 0
|
|
80501
|
+
}), defineProperty_defineProperty(_$concat, "".concat(componentCls, "-message"), {
|
|
80502
|
+
display: 'block',
|
|
80503
|
+
marginBottom: marginXS,
|
|
80504
|
+
color: colorText,
|
|
80505
|
+
fontSize: fontSizeLG
|
|
80506
|
+
}), defineProperty_defineProperty(_$concat, "".concat(componentCls, "-description"), {
|
|
80507
|
+
display: 'block'
|
|
80508
|
+
}), _$concat)), defineProperty_defineProperty(_ref2, "".concat(componentCls, "-banner"), {
|
|
80509
|
+
marginBottom: 0,
|
|
80510
|
+
border: '0 !important',
|
|
80511
|
+
borderRadius: 0
|
|
80512
|
+
}), _ref2;
|
|
80513
|
+
};
|
|
80514
|
+
var genTypeStyle = function genTypeStyle(token) {
|
|
80515
|
+
var componentCls = token.componentCls,
|
|
80516
|
+
colorSuccess = token.colorSuccess,
|
|
80517
|
+
colorSuccessBorder = token.colorSuccessBorder,
|
|
80518
|
+
colorSuccessBg = token.colorSuccessBg,
|
|
80519
|
+
colorWarning = token.colorWarning,
|
|
80520
|
+
colorWarningBorder = token.colorWarningBorder,
|
|
80521
|
+
colorWarningBg = token.colorWarningBg,
|
|
80522
|
+
colorError = token.colorError,
|
|
80523
|
+
colorErrorBorder = token.colorErrorBorder,
|
|
80524
|
+
colorErrorBg = token.colorErrorBg,
|
|
80525
|
+
colorInfo = token.colorInfo,
|
|
80526
|
+
colorInfoBorder = token.colorInfoBorder,
|
|
80527
|
+
colorInfoBg = token.colorInfoBg;
|
|
80528
|
+
return defineProperty_defineProperty({}, componentCls, {
|
|
80529
|
+
'&-success': genAlertTypeStyle(colorSuccessBg, colorSuccessBorder, colorSuccess, token, componentCls),
|
|
80530
|
+
'&-info': genAlertTypeStyle(colorInfoBg, colorInfoBorder, colorInfo, token, componentCls),
|
|
80531
|
+
'&-warning': genAlertTypeStyle(colorWarningBg, colorWarningBorder, colorWarning, token, componentCls),
|
|
80532
|
+
'&-error': extends_extends(extends_extends({}, genAlertTypeStyle(colorErrorBg, colorErrorBorder, colorError, token, componentCls)), defineProperty_defineProperty({}, "".concat(componentCls, "-description > pre"), {
|
|
80533
|
+
margin: 0,
|
|
80534
|
+
padding: 0
|
|
80535
|
+
}))
|
|
80536
|
+
});
|
|
80537
|
+
};
|
|
80538
|
+
var genActionStyle = function genActionStyle(token) {
|
|
80539
|
+
var _componentCls;
|
|
80540
|
+
|
|
80541
|
+
var componentCls = token.componentCls,
|
|
80542
|
+
iconCls = token.iconCls,
|
|
80543
|
+
duration = token.motionDurationSlow,
|
|
80544
|
+
marginXS = token.marginXS,
|
|
80545
|
+
fontSizeIcon = token.fontSizeIcon,
|
|
80546
|
+
colorIcon = token.colorIcon,
|
|
80547
|
+
colorIconHover = token.colorIconHover;
|
|
80548
|
+
return defineProperty_defineProperty({}, componentCls, (_componentCls = {}, defineProperty_defineProperty(_componentCls, "&-action", {
|
|
80549
|
+
marginInlineStart: marginXS
|
|
80550
|
+
}), defineProperty_defineProperty(_componentCls, "".concat(componentCls, "-close-icon"), defineProperty_defineProperty({
|
|
80551
|
+
marginInlineStart: marginXS,
|
|
80552
|
+
padding: 0,
|
|
80553
|
+
overflow: 'hidden',
|
|
80554
|
+
fontSize: fontSizeIcon,
|
|
80555
|
+
lineHeight: "".concat(fontSizeIcon, "px"),
|
|
80556
|
+
backgroundColor: 'transparent',
|
|
80557
|
+
border: 'none',
|
|
80558
|
+
outline: 'none',
|
|
80559
|
+
cursor: 'pointer'
|
|
80560
|
+
}, "".concat(iconCls, "-close"), {
|
|
80561
|
+
color: colorIcon,
|
|
80562
|
+
transition: "color ".concat(duration),
|
|
80563
|
+
'&:hover': {
|
|
80564
|
+
color: colorIconHover
|
|
80565
|
+
}
|
|
80566
|
+
})), defineProperty_defineProperty(_componentCls, '&-close-text', {
|
|
80567
|
+
color: colorIcon,
|
|
80568
|
+
transition: "color ".concat(duration),
|
|
80569
|
+
'&:hover': {
|
|
80570
|
+
color: colorIconHover
|
|
80571
|
+
}
|
|
80572
|
+
}), _componentCls));
|
|
80573
|
+
};
|
|
80574
|
+
var genAlertStyle = function genAlertStyle(token) {
|
|
80575
|
+
return [alert_style_genBaseStyle(token), genTypeStyle(token), genActionStyle(token)];
|
|
80576
|
+
};
|
|
80577
|
+
/* harmony default export */ var alert_style = (genComponentStyleHook_genComponentStyleHook('Alert', function (token) {
|
|
80578
|
+
var fontSizeHeading3 = token.fontSizeHeading3;
|
|
80579
|
+
var alertToken = merge(token, {
|
|
80580
|
+
alertIconSizeLG: fontSizeHeading3
|
|
80581
|
+
});
|
|
80582
|
+
return [genAlertStyle(alertToken)];
|
|
80583
|
+
}));
|
|
80313
80584
|
;// CONCATENATED MODULE: ./node_modules/@ant-design/icons-svg/es/asn/MenuOutlined.js
|
|
80314
80585
|
// This icon file is generated automatically.
|
|
80315
80586
|
var MenuOutlined = {
|
|
@@ -87430,6 +87701,7 @@ FieldEditableTable.RecordCreator = RecordCreator;
|
|
|
87430
87701
|
/* harmony default export */ var components_EditableTable = (FieldEditableTable);
|
|
87431
87702
|
;// CONCATENATED MODULE: ./packages/table/es/index.js
|
|
87432
87703
|
// 兼容代码-----------
|
|
87704
|
+
|
|
87433
87705
|
//----------------------
|
|
87434
87706
|
|
|
87435
87707
|
|
|
@@ -106046,17 +106318,17 @@ function BaseProList(props) {
|
|
|
106046
106318
|
/* harmony default export */ var list_es = ((/* unused pure expression or super */ null && (ProList)));
|
|
106047
106319
|
;// CONCATENATED MODULE: ./packages/components/src/version.ts
|
|
106048
106320
|
var version_version = {
|
|
106049
|
-
"@ant-design/pro-card": "2.0.
|
|
106050
|
-
"@ant-design/pro-components": "2.3.
|
|
106051
|
-
"@ant-design/pro-descriptions": "2.0.
|
|
106052
|
-
"@ant-design/pro-field": "2.0.
|
|
106053
|
-
"@ant-design/pro-form": "2.0.
|
|
106054
|
-
"@ant-design/pro-layout": "7.0.
|
|
106055
|
-
"@ant-design/pro-list": "2.0.
|
|
106056
|
-
"@ant-design/pro-provider": "2.0.
|
|
106057
|
-
"@ant-design/pro-skeleton": "2.0.
|
|
106058
|
-
"@ant-design/pro-table": "3.0.
|
|
106059
|
-
"@ant-design/pro-utils": "2.0.
|
|
106321
|
+
"@ant-design/pro-card": "2.0.2",
|
|
106322
|
+
"@ant-design/pro-components": "2.3.3",
|
|
106323
|
+
"@ant-design/pro-descriptions": "2.0.2",
|
|
106324
|
+
"@ant-design/pro-field": "2.0.2",
|
|
106325
|
+
"@ant-design/pro-form": "2.0.2",
|
|
106326
|
+
"@ant-design/pro-layout": "7.0.2",
|
|
106327
|
+
"@ant-design/pro-list": "2.0.2",
|
|
106328
|
+
"@ant-design/pro-provider": "2.0.2",
|
|
106329
|
+
"@ant-design/pro-skeleton": "2.0.2",
|
|
106330
|
+
"@ant-design/pro-table": "3.0.2",
|
|
106331
|
+
"@ant-design/pro-utils": "2.0.2"
|
|
106060
106332
|
};
|
|
106061
106333
|
;// CONCATENATED MODULE: ./packages/components/src/index.tsx
|
|
106062
106334
|
|