@uzum-tech/ui 1.5.4 → 1.6.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/index.js +106 -39
- package/dist/index.prod.js +3 -3
- package/es/_internal/radio/src/use-radio.d.ts +1 -0
- package/es/_internal/radio/src/use-radio.js +2 -1
- package/es/_utils/css/index.d.ts +1 -0
- package/es/_utils/css/index.js +1 -0
- package/es/_utils/css/normalize-size.d.ts +1 -0
- package/es/_utils/css/normalize-size.js +6 -0
- package/es/_utils/index.d.ts +1 -1
- package/es/_utils/index.js +1 -1
- package/es/avatar/src/Avatar.js +1 -7
- package/es/badge/src/Badge.d.ts +13 -0
- package/es/badge/src/Badge.js +5 -4
- package/es/badge/src/styles/index.cssr.js +5 -6
- package/es/badge/styles/light.d.ts +1 -0
- package/es/badge/styles/light.js +2 -1
- package/es/checkbox/src/styles/index.cssr.js +22 -0
- package/es/data-table/src/TableParts/Body.js +6 -3
- package/es/data-table/src/TableParts/BodyRadio.d.ts +6 -0
- package/es/data-table/src/TableParts/BodyRadio.js +4 -1
- package/es/date-picker/src/DatePicker.d.ts +3 -0
- package/es/date-picker/src/DatePicker.js +2 -2
- package/es/date-picker/src/interface.d.ts +1 -0
- package/es/date-picker/src/panel/use-calendar.js +5 -2
- package/es/date-picker/src/panel/use-dual-calendar.js +6 -3
- package/es/date-picker/src/utils.d.ts +1 -1
- package/es/date-picker/src/utils.js +3 -2
- package/es/list/src/List.d.ts +1 -1
- package/es/list/src/ListItem.js +9 -2
- package/es/pagination/src/Pagination.js +11 -5
- package/es/pagination/src/styles/index.cssr.js +10 -5
- package/es/pagination/styles/light.js +5 -5
- package/es/radio/src/Radio.d.ts +3 -0
- package/es/radio/src/Radio.js +1 -1
- package/es/radio/src/RadioButton.d.ts +3 -0
- package/es/version.d.ts +1 -1
- package/es/version.js +1 -1
- package/lib/_internal/radio/src/use-radio.d.ts +1 -0
- package/lib/_internal/radio/src/use-radio.js +2 -1
- package/lib/_utils/css/index.d.ts +1 -0
- package/lib/_utils/css/index.js +3 -1
- package/lib/_utils/css/normalize-size.d.ts +1 -0
- package/lib/_utils/css/normalize-size.js +10 -0
- package/lib/_utils/index.d.ts +1 -1
- package/lib/_utils/index.js +2 -1
- package/lib/avatar/src/Avatar.js +1 -7
- package/lib/badge/src/Badge.d.ts +13 -0
- package/lib/badge/src/Badge.js +4 -3
- package/lib/badge/src/styles/index.cssr.js +5 -6
- package/lib/badge/styles/light.d.ts +1 -0
- package/lib/badge/styles/light.js +2 -1
- package/lib/checkbox/src/styles/index.cssr.js +22 -0
- package/lib/data-table/src/TableParts/Body.js +6 -3
- package/lib/data-table/src/TableParts/BodyRadio.d.ts +6 -0
- package/lib/data-table/src/TableParts/BodyRadio.js +4 -1
- package/lib/date-picker/src/DatePicker.d.ts +3 -0
- package/lib/date-picker/src/DatePicker.js +2 -2
- package/lib/date-picker/src/interface.d.ts +1 -0
- package/lib/date-picker/src/panel/use-calendar.js +5 -2
- package/lib/date-picker/src/panel/use-dual-calendar.js +6 -3
- package/lib/date-picker/src/utils.d.ts +1 -1
- package/lib/date-picker/src/utils.js +3 -2
- package/lib/list/src/List.d.ts +1 -1
- package/lib/list/src/ListItem.js +7 -0
- package/lib/pagination/src/Pagination.js +11 -5
- package/lib/pagination/src/styles/index.cssr.js +9 -4
- package/lib/pagination/styles/light.js +5 -5
- package/lib/radio/src/Radio.d.ts +3 -0
- package/lib/radio/src/Radio.js +1 -1
- package/lib/radio/src/RadioButton.d.ts +3 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +21 -3
package/dist/index.js
CHANGED
|
@@ -765,6 +765,12 @@
|
|
|
765
765
|
return color.replace(/#|\(|\)|,|\s/g, "_");
|
|
766
766
|
}
|
|
767
767
|
|
|
768
|
+
const resolveSize = (value, fallback) => {
|
|
769
|
+
if (value === void 0) return fallback;
|
|
770
|
+
value = String(value);
|
|
771
|
+
return /^\d+$/.test(value) ? `${value}px` : value;
|
|
772
|
+
};
|
|
773
|
+
|
|
768
774
|
function ampCount(selector) {
|
|
769
775
|
let cnt = 0;
|
|
770
776
|
for (let i = 0; i < selector.length; ++i) {
|
|
@@ -36916,7 +36922,8 @@
|
|
|
36916
36922
|
type: Boolean,
|
|
36917
36923
|
default: void 0
|
|
36918
36924
|
},
|
|
36919
|
-
onChange: [Function, Array]
|
|
36925
|
+
onChange: [Function, Array],
|
|
36926
|
+
onClick: [Function, Array]
|
|
36920
36927
|
};
|
|
36921
36928
|
const radioGroupInjectionKey = createInjectionKey("u-radio-group");
|
|
36922
36929
|
function useRadio(props) {
|
|
@@ -37516,7 +37523,8 @@
|
|
|
37516
37523
|
textColorSuccess: textQuaternary,
|
|
37517
37524
|
textColorError: textQuaternary,
|
|
37518
37525
|
textColorWarning: textQuaternary,
|
|
37519
|
-
borderColor: staticWhite
|
|
37526
|
+
borderColor: staticWhite,
|
|
37527
|
+
dotSize: "12px"
|
|
37520
37528
|
};
|
|
37521
37529
|
};
|
|
37522
37530
|
const badgeLight = {
|
|
@@ -38944,13 +38952,13 @@
|
|
|
38944
38952
|
elementsQuaternary
|
|
38945
38953
|
} = vars;
|
|
38946
38954
|
return {
|
|
38947
|
-
itemPaddingSmall: "0
|
|
38955
|
+
itemPaddingSmall: "0 10px",
|
|
38948
38956
|
itemMarginSmall: "0 0 0 2px",
|
|
38949
38957
|
itemMarginSmallRtl: "0 2px 0 0",
|
|
38950
|
-
itemPaddingMedium: "0
|
|
38958
|
+
itemPaddingMedium: "0 12px",
|
|
38951
38959
|
itemMarginMedium: "0 0 0 2px",
|
|
38952
38960
|
itemMarginMediumRtl: "0 2px 0 0",
|
|
38953
|
-
itemPaddingLarge: "0
|
|
38961
|
+
itemPaddingLarge: "0 14px",
|
|
38954
38962
|
itemMarginLarge: "0 0 0 2px",
|
|
38955
38963
|
itemMarginLargeRtl: "0 2px 0 0",
|
|
38956
38964
|
buttonIconSizeSmall: "14px",
|
|
@@ -39003,8 +39011,8 @@
|
|
|
39003
39011
|
itemBorderActive: "0px",
|
|
39004
39012
|
itemBorderDisabled: "0px",
|
|
39005
39013
|
itemBorderRadius: borderRadius,
|
|
39006
|
-
itemSizeSmall: "
|
|
39007
|
-
itemSizeMedium: "
|
|
39014
|
+
itemSizeSmall: "32px",
|
|
39015
|
+
itemSizeMedium: "36px",
|
|
39008
39016
|
itemSizeLarge: "40px",
|
|
39009
39017
|
itemFontSizeSmall: fontBodyMedium,
|
|
39010
39018
|
itemFontSizeMedium: fontBodyMedium,
|
|
@@ -47312,11 +47320,6 @@
|
|
|
47312
47320
|
const getBackgroundColor = (color2) => {
|
|
47313
47321
|
return props.disabled || size === "small" ? "rgba(0,0,0,0)" : color2;
|
|
47314
47322
|
};
|
|
47315
|
-
const resolveSize = (value, fallback) => {
|
|
47316
|
-
if (value === void 0) return fallback;
|
|
47317
|
-
value = String(value);
|
|
47318
|
-
return /^\d+$/.test(value) ? `${value}px` : value;
|
|
47319
|
-
};
|
|
47320
47323
|
return {
|
|
47321
47324
|
"--u-font-size": fontSize,
|
|
47322
47325
|
"--u-font-weight": fontWeight,
|
|
@@ -47906,13 +47909,14 @@
|
|
|
47906
47909
|
transformOrigin: "left bottom",
|
|
47907
47910
|
originalTransform: "translateX(0)"
|
|
47908
47911
|
})])]), cM("dot", [cB("badge-sup", `
|
|
47909
|
-
height:
|
|
47910
|
-
width:
|
|
47912
|
+
height: var(--u-dot-size);
|
|
47913
|
+
width: var(--u-dot-size);
|
|
47914
|
+
justify-content: center;
|
|
47915
|
+
overflow: hidden;
|
|
47911
47916
|
padding: 0;
|
|
47912
|
-
min-width: 8px;
|
|
47913
47917
|
left: 100%;
|
|
47914
47918
|
bottom: calc(100% - 4px);
|
|
47915
|
-
`, [c$1("::before", "border-radius: 4px;")])]), cB("badge-sup", `
|
|
47919
|
+
`, [c$1("::before", "border-radius: 4px;"), c$1("img", "width: 100%")])]), cB("badge-sup", `
|
|
47916
47920
|
background: var(--u-color);
|
|
47917
47921
|
transition:
|
|
47918
47922
|
background-color .3s var(--u-bezier),
|
|
@@ -47963,8 +47967,6 @@
|
|
|
47963
47967
|
border-radius: 100px;
|
|
47964
47968
|
`), cM("dot", [cB("badge-sup", `
|
|
47965
47969
|
transform: none;
|
|
47966
|
-
width: 12px;
|
|
47967
|
-
height: 12px;
|
|
47968
47970
|
transform: none;
|
|
47969
47971
|
left: auto;
|
|
47970
47972
|
right: 0;
|
|
@@ -47988,6 +47990,7 @@
|
|
|
47988
47990
|
processing: Boolean,
|
|
47989
47991
|
color: String,
|
|
47990
47992
|
textColor: String,
|
|
47993
|
+
dotSize: [String, Number],
|
|
47991
47994
|
offset: Array
|
|
47992
47995
|
};
|
|
47993
47996
|
var UBadge = vue.defineComponent({
|
|
@@ -48025,7 +48028,8 @@
|
|
|
48025
48028
|
[createKey("color", type)]: color,
|
|
48026
48029
|
[createKey("textColor", type)]: textColor,
|
|
48027
48030
|
fontSize,
|
|
48028
|
-
borderColor
|
|
48031
|
+
borderColor,
|
|
48032
|
+
dotSize
|
|
48029
48033
|
}
|
|
48030
48034
|
} = themeRef.value;
|
|
48031
48035
|
return {
|
|
@@ -48035,7 +48039,8 @@
|
|
|
48035
48039
|
"--u-bezier": cubicBezierEaseInOut,
|
|
48036
48040
|
"--u-ripple-bezier": cubicBezierEaseOut,
|
|
48037
48041
|
"--u-text-color": propTextColor || textColor,
|
|
48038
|
-
"--u-border-color": borderColor
|
|
48042
|
+
"--u-border-color": borderColor,
|
|
48043
|
+
"--u-dot-size": resolveSize(props.dotSize, dotSize)
|
|
48039
48044
|
};
|
|
48040
48045
|
});
|
|
48041
48046
|
const themeClassHandle = inlineThemeDisabled ? useThemeClass(
|
|
@@ -53664,10 +53669,11 @@
|
|
|
53664
53669
|
}
|
|
53665
53670
|
return calendarQuarters;
|
|
53666
53671
|
}
|
|
53667
|
-
function yearArray(valueTs, currentTs) {
|
|
53672
|
+
function yearArray(valueTs, currentTs, maxDate) {
|
|
53668
53673
|
const calendarYears = [];
|
|
53669
53674
|
const time1900 = new Date(START_YEAR, 0, 1);
|
|
53670
|
-
|
|
53675
|
+
const endYear = maxDate ? new Date(maxDate).getFullYear() : END_YEAR;
|
|
53676
|
+
let count = endYear - START_YEAR + 1;
|
|
53671
53677
|
while (count--) {
|
|
53672
53678
|
calendarYears.push(yearItem(getTime(addYears(time1900, count)), valueTs, currentTs));
|
|
53673
53679
|
}
|
|
@@ -59331,6 +59337,28 @@
|
|
|
59331
59337
|
--u-merged-border: var(--u-border-checked);
|
|
59332
59338
|
--u-merged-shadow: var(--u-box-shadow-hover-checked);
|
|
59333
59339
|
--u-merged-icon: var(--u-check-mark-color);
|
|
59340
|
+
`, [c$1("&:hover", `
|
|
59341
|
+
--u-merged-color: var(--u-color-hover-checked);
|
|
59342
|
+
--u-merged-border: var(--u-border-hover-checked);
|
|
59343
|
+
--u-merged-shadow: var(--u-box-shadow-hover-checked);
|
|
59344
|
+
`), c$1("&:focus", `
|
|
59345
|
+
--u-merged-color: var(--u-color-focus-checked);
|
|
59346
|
+
--u-merged-border: var(--u-border-focus-checked);
|
|
59347
|
+
--u-merged-shadow: var(--u-box-shadow-focus-checked);
|
|
59348
|
+
`), c$1("&:active", `
|
|
59349
|
+
--u-merged-color: var(--u-color-active-checked);
|
|
59350
|
+
--u-merged-border: var(--u-border-active-checked);
|
|
59351
|
+
--u-merged-shadow: var(--u-box-shadow-active-checked);
|
|
59352
|
+
`), cM("disabled", `
|
|
59353
|
+
--u-merged-color: var(--u-color-disabled-checked);
|
|
59354
|
+
--u-merged-border: var(--u-border-disabled-checked);
|
|
59355
|
+
--u-merged-shadow: transparent;
|
|
59356
|
+
--u-merged-icon: var(--u-check-mark-color-disabled-checked);
|
|
59357
|
+
`)]), cM("indeterminate", `
|
|
59358
|
+
--u-merged-color: var(--u-color-checked);
|
|
59359
|
+
--u-merged-border: var(--u-border-checked);
|
|
59360
|
+
--u-merged-shadow: var(--u-box-shadow-hover-checked);
|
|
59361
|
+
--u-merged-icon: var(--u-check-mark-color);
|
|
59334
59362
|
`, [c$1("&:hover", `
|
|
59335
59363
|
--u-merged-color: var(--u-color-hover-checked);
|
|
59336
59364
|
--u-merged-border: var(--u-border-hover-checked);
|
|
@@ -64278,9 +64306,9 @@
|
|
|
64278
64306
|
line-height: 20px;
|
|
64279
64307
|
`), cB("base-selection-label", `
|
|
64280
64308
|
background-color: var(--u-pagination-size-picker-background);
|
|
64281
|
-
`), cB("base-
|
|
64282
|
-
|
|
64283
|
-
|
|
64309
|
+
`), cB("base-selection", [cE("border", `
|
|
64310
|
+
border-color: var(--u-pagination-size-picker-border);
|
|
64311
|
+
`)])]), cB("pagination-quick-jumper", `
|
|
64284
64312
|
white-space: nowrap;
|
|
64285
64313
|
display: flex;
|
|
64286
64314
|
color: var(--u-jumper-text-color);
|
|
@@ -64314,14 +64342,19 @@
|
|
|
64314
64342
|
border-color .3s var(--u-bezier),
|
|
64315
64343
|
background-color .3s var(--u-bezier),
|
|
64316
64344
|
fill .3s var(--u-bezier);
|
|
64317
|
-
`, [
|
|
64345
|
+
`, [c$1("&:has(.more-icon)", `
|
|
64346
|
+
font-size: 24px;
|
|
64347
|
+
`), cM("button", `
|
|
64318
64348
|
background: var(--u-button-color);
|
|
64319
64349
|
color: var(--u-button-icon-color);
|
|
64320
64350
|
border: var(--u-button-border);
|
|
64321
64351
|
padding: 0;
|
|
64322
64352
|
`, [cB("base-icon", `
|
|
64323
64353
|
font-size: var(--u-button-icon-size);
|
|
64324
|
-
`)]), cNotM("disabled", [
|
|
64354
|
+
`)]), cNotM("disabled", [cNotM("clickable", `
|
|
64355
|
+
width: 45px;
|
|
64356
|
+
padding: 0;
|
|
64357
|
+
`), cM("hover", hoverStyleProps, hoverStyleChildren$1), c$1("&:hover", hoverStyleProps, hoverStyleChildren$1), c$1("&:active", `
|
|
64325
64358
|
font-weight: 700;
|
|
64326
64359
|
background: var(--u-item-color-pressed);
|
|
64327
64360
|
color: var(--u-item-text-color-pressed);
|
|
@@ -64540,7 +64573,12 @@
|
|
|
64540
64573
|
return mergedComponentPropsRef?.value?.Pagination?.inputSize || smallerSize(props.size);
|
|
64541
64574
|
});
|
|
64542
64575
|
const selectSizeRef = vue.computed(() => {
|
|
64543
|
-
|
|
64576
|
+
const selectSizes = {
|
|
64577
|
+
small: "small",
|
|
64578
|
+
medium: "small",
|
|
64579
|
+
large: "medium"
|
|
64580
|
+
};
|
|
64581
|
+
return mergedComponentPropsRef?.value?.Pagination?.selectSize || selectSizes[props.size];
|
|
64544
64582
|
});
|
|
64545
64583
|
const startIndexRef = vue.computed(() => {
|
|
64546
64584
|
return (mergedPageRef.value - 1) * mergedPageSizeRef.value;
|
|
@@ -64930,7 +64968,7 @@
|
|
|
64930
64968
|
case "fast-forward":
|
|
64931
64969
|
const fastForwardNode = this.fastForwardActive ? /* @__PURE__ */ vue.h(UBaseIcon, { clsPrefix: mergedClsPrefix }, {
|
|
64932
64970
|
default: () => this.rtlEnabled ? /* @__PURE__ */ vue.h(FastBackwardIcon, null) : /* @__PURE__ */ vue.h(FastForwardIcon, null)
|
|
64933
|
-
}) : /* @__PURE__ */ vue.h(UBaseIcon, { clsPrefix: mergedClsPrefix }, { default: () => /* @__PURE__ */ vue.h(MoreIcon,
|
|
64971
|
+
}) : /* @__PURE__ */ vue.h(UBaseIcon, { clsPrefix: mergedClsPrefix }, { default: () => /* @__PURE__ */ vue.h(MoreIcon, { class: "more-icon" }) });
|
|
64934
64972
|
if (renderLabel) {
|
|
64935
64973
|
contentNode = renderLabel({
|
|
64936
64974
|
type: "fast-forward",
|
|
@@ -64946,7 +64984,7 @@
|
|
|
64946
64984
|
case "fast-backward":
|
|
64947
64985
|
const fastBackwardNode = this.fastBackwardActive ? /* @__PURE__ */ vue.h(UBaseIcon, { clsPrefix: mergedClsPrefix }, {
|
|
64948
64986
|
default: () => this.rtlEnabled ? /* @__PURE__ */ vue.h(FastForwardIcon, null) : /* @__PURE__ */ vue.h(FastBackwardIcon, null)
|
|
64949
|
-
}) : /* @__PURE__ */ vue.h(UBaseIcon, { clsPrefix: mergedClsPrefix }, { default: () => /* @__PURE__ */ vue.h(MoreIcon,
|
|
64987
|
+
}) : /* @__PURE__ */ vue.h(UBaseIcon, { clsPrefix: mergedClsPrefix }, { default: () => /* @__PURE__ */ vue.h(MoreIcon, { class: "more-icon" }) });
|
|
64950
64988
|
if (renderLabel) {
|
|
64951
64989
|
contentNode = renderLabel({
|
|
64952
64990
|
type: "fast-backward",
|
|
@@ -64991,7 +65029,7 @@
|
|
|
64991
65029
|
disabled,
|
|
64992
65030
|
trigger: "hover",
|
|
64993
65031
|
virtualScroll: true,
|
|
64994
|
-
style: {
|
|
65032
|
+
style: { minWidth: "70px", textAlign: "center" },
|
|
64995
65033
|
theme: mergedTheme.peers.Popselect,
|
|
64996
65034
|
themeOverrides: mergedTheme.peerOverrides.Popselect,
|
|
64997
65035
|
builtinThemeOverrides: {
|
|
@@ -65068,7 +65106,7 @@
|
|
|
65068
65106
|
themeOverrides: mergedTheme.peerOverrides.Select,
|
|
65069
65107
|
onUpdateValue: handleSizePickerChange
|
|
65070
65108
|
}
|
|
65071
|
-
), /* @__PURE__ */ vue.h("span", { class: `${mergedClsPrefix}-label` },
|
|
65109
|
+
), /* @__PURE__ */ vue.h("span", { class: `${mergedClsPrefix}-label` }, sizePickerLabel || "")) : null;
|
|
65072
65110
|
}
|
|
65073
65111
|
case "quick-jumper":
|
|
65074
65112
|
return !simple && showQuickJumper ? /* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefix}-pagination-quick-jumper` }, goto ? goto() : resolveSlot(this.$slots.goto, () => [locale.goto]), /* @__PURE__ */ vue.h(
|
|
@@ -65595,7 +65633,8 @@
|
|
|
65595
65633
|
disabled: this.mergedDisabled,
|
|
65596
65634
|
onChange: this.handleRadioInputChange,
|
|
65597
65635
|
onFocus: this.handleRadioInputFocus,
|
|
65598
|
-
onBlur: this.handleRadioInputBlur
|
|
65636
|
+
onBlur: this.handleRadioInputBlur,
|
|
65637
|
+
onClick: this.onClick
|
|
65599
65638
|
}
|
|
65600
65639
|
),
|
|
65601
65640
|
/* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefix}-radio__dot-wrapper` }, "\xA0", /* @__PURE__ */ vue.h(
|
|
@@ -86053,6 +86092,9 @@
|
|
|
86053
86092
|
onUpdateChecked: {
|
|
86054
86093
|
type: Function,
|
|
86055
86094
|
required: true
|
|
86095
|
+
},
|
|
86096
|
+
onClick: {
|
|
86097
|
+
type: Function
|
|
86056
86098
|
}
|
|
86057
86099
|
},
|
|
86058
86100
|
setup(props) {
|
|
@@ -86071,6 +86113,7 @@
|
|
|
86071
86113
|
disabled: props.disabled,
|
|
86072
86114
|
checked: mergedCheckedRowKeySetRef.value.has(rowKey),
|
|
86073
86115
|
onUpdateChecked: props.onUpdateChecked,
|
|
86116
|
+
onClick: props.onClick,
|
|
86074
86117
|
size: sizeRef.value
|
|
86075
86118
|
}
|
|
86076
86119
|
);
|
|
@@ -86870,6 +86913,9 @@
|
|
|
86870
86913
|
key: currentPage,
|
|
86871
86914
|
rowKey,
|
|
86872
86915
|
disabled: rowInfo.tmNode.disabled,
|
|
86916
|
+
onClick: (event) => {
|
|
86917
|
+
event.stopPropagation();
|
|
86918
|
+
},
|
|
86873
86919
|
onUpdateChecked: () => {
|
|
86874
86920
|
handleRadioUpdateChecked(rowInfo.tmNode);
|
|
86875
86921
|
}
|
|
@@ -86880,11 +86926,12 @@
|
|
|
86880
86926
|
key: currentPage,
|
|
86881
86927
|
rowKey,
|
|
86882
86928
|
disabled: rowInfo.tmNode.disabled,
|
|
86883
|
-
onUpdateChecked: (checked,
|
|
86929
|
+
onUpdateChecked: (checked, event) => {
|
|
86930
|
+
event.stopPropagation();
|
|
86884
86931
|
handleCheckboxUpdateChecked(
|
|
86885
86932
|
rowInfo.tmNode,
|
|
86886
86933
|
checked,
|
|
86887
|
-
|
|
86934
|
+
event.shiftKey
|
|
86888
86935
|
);
|
|
86889
86936
|
}
|
|
86890
86937
|
}
|
|
@@ -95010,6 +95057,7 @@
|
|
|
95010
95057
|
const {
|
|
95011
95058
|
isValueInvalidRef,
|
|
95012
95059
|
isDateDisabledRef,
|
|
95060
|
+
maxDateRef,
|
|
95013
95061
|
isDateInvalidRef,
|
|
95014
95062
|
isTimeInvalidRef,
|
|
95015
95063
|
isDateTimeInvalidRef,
|
|
@@ -95050,7 +95098,7 @@
|
|
|
95050
95098
|
const {
|
|
95051
95099
|
value
|
|
95052
95100
|
} = props;
|
|
95053
|
-
return yearArray(Array.isArray(value) ? null : value, nowRef.value);
|
|
95101
|
+
return yearArray(Array.isArray(value) ? null : value, nowRef.value, maxDateRef.value);
|
|
95054
95102
|
});
|
|
95055
95103
|
const quarterArrayRef = vue.computed(() => {
|
|
95056
95104
|
const {
|
|
@@ -95095,6 +95143,9 @@
|
|
|
95095
95143
|
return getTime(startOfDay(value));
|
|
95096
95144
|
}
|
|
95097
95145
|
function mergedIsDateDisabled(ts) {
|
|
95146
|
+
if (maxDateRef.value && ts > maxDateRef.value) {
|
|
95147
|
+
return true;
|
|
95148
|
+
}
|
|
95098
95149
|
const {
|
|
95099
95150
|
isDateDisabled: {
|
|
95100
95151
|
value: isDateDisabled
|
|
@@ -95905,6 +95956,7 @@
|
|
|
95905
95956
|
function useDualCalendar(props, type) {
|
|
95906
95957
|
const {
|
|
95907
95958
|
isDateDisabledRef,
|
|
95959
|
+
maxDateRef,
|
|
95908
95960
|
isStartHourDisabledRef,
|
|
95909
95961
|
isEndHourDisabledRef,
|
|
95910
95962
|
isStartMinuteDisabledRef,
|
|
@@ -96014,10 +96066,10 @@
|
|
|
96014
96066
|
return shortcuts || rangesRef.value;
|
|
96015
96067
|
});
|
|
96016
96068
|
const startYearArrayRef = vue.computed(() => {
|
|
96017
|
-
return yearArray(pluckValueFromRange(props.value, "start"), nowRef.value);
|
|
96069
|
+
return yearArray(pluckValueFromRange(props.value, "start"), nowRef.value, maxDateRef.value);
|
|
96018
96070
|
});
|
|
96019
96071
|
const endYearArrayRef = vue.computed(() => {
|
|
96020
|
-
return yearArray(pluckValueFromRange(props.value, "end"), nowRef.value);
|
|
96072
|
+
return yearArray(pluckValueFromRange(props.value, "end"), nowRef.value, maxDateRef.value);
|
|
96021
96073
|
});
|
|
96022
96074
|
const startQuarterArrayRef = vue.computed(() => {
|
|
96023
96075
|
const startValue = pluckValueFromRange(props.value, "start");
|
|
@@ -96109,6 +96161,9 @@
|
|
|
96109
96161
|
adjustCalendarTimes(false);
|
|
96110
96162
|
}
|
|
96111
96163
|
function mergedIsDateDisabled(ts) {
|
|
96164
|
+
if (maxDateRef.value && ts > maxDateRef.value) {
|
|
96165
|
+
return true;
|
|
96166
|
+
}
|
|
96112
96167
|
const isDateDisabled = isDateDisabledRef.value;
|
|
96113
96168
|
if (!isDateDisabled) return false;
|
|
96114
96169
|
if (!Array.isArray(props.value)) return isDateDisabled(ts, "start", null);
|
|
@@ -97569,6 +97624,7 @@
|
|
|
97569
97624
|
shortcuts: Object,
|
|
97570
97625
|
defaultShortcuts: Boolean,
|
|
97571
97626
|
isDateDisabled: Function,
|
|
97627
|
+
maxDate: Number,
|
|
97572
97628
|
isTimeDisabled: Function,
|
|
97573
97629
|
show: {
|
|
97574
97630
|
type: Boolean,
|
|
@@ -98149,6 +98205,7 @@
|
|
|
98149
98205
|
dateLocaleRef,
|
|
98150
98206
|
firstDayOfWeekRef: vue.toRef(props, "firstDayOfWeek"),
|
|
98151
98207
|
isDateDisabledRef: vue.toRef(props, "isDateDisabled"),
|
|
98208
|
+
maxDateRef: vue.toRef(props, "maxDate"),
|
|
98152
98209
|
rangesRef: vue.toRef(props, "ranges"),
|
|
98153
98210
|
timePickerPropsRef: vue.toRef(props, "timePickerProps"),
|
|
98154
98211
|
closeOnSelectRef: vue.toRef(props, "closeOnSelect"),
|
|
@@ -109664,6 +109721,16 @@
|
|
|
109664
109721
|
...listItemProps
|
|
109665
109722
|
},
|
|
109666
109723
|
setup(props, { slots }) {
|
|
109724
|
+
{
|
|
109725
|
+
vue.watchEffect(() => {
|
|
109726
|
+
if (slots.avatar !== void 0) {
|
|
109727
|
+
warnOnce(
|
|
109728
|
+
"list-item",
|
|
109729
|
+
"`avatar` is deprecated, please use `prefix` instead."
|
|
109730
|
+
);
|
|
109731
|
+
}
|
|
109732
|
+
});
|
|
109733
|
+
}
|
|
109667
109734
|
const listInjection = vue.inject(listInjectionKey, null);
|
|
109668
109735
|
if (!listInjection) {
|
|
109669
109736
|
throwError("list-item", "`u-list-item` must be placed in `u-list`.");
|
|
@@ -127000,7 +127067,7 @@
|
|
|
127000
127067
|
watermarkProps: watermarkProps
|
|
127001
127068
|
});
|
|
127002
127069
|
|
|
127003
|
-
var version = "1.
|
|
127070
|
+
var version = "1.6.0";
|
|
127004
127071
|
|
|
127005
127072
|
function create({
|
|
127006
127073
|
componentPrefix = "U",
|