@uzum-tech/ui 1.5.5 → 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 +72 -20
- package/dist/index.prod.js +2 -2
- package/es/_internal/radio/src/use-radio.d.ts +1 -0
- package/es/_internal/radio/src/use-radio.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/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/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/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 +11 -3
package/dist/index.js
CHANGED
|
@@ -36922,7 +36922,8 @@
|
|
|
36922
36922
|
type: Boolean,
|
|
36923
36923
|
default: void 0
|
|
36924
36924
|
},
|
|
36925
|
-
onChange: [Function, Array]
|
|
36925
|
+
onChange: [Function, Array],
|
|
36926
|
+
onClick: [Function, Array]
|
|
36926
36927
|
};
|
|
36927
36928
|
const radioGroupInjectionKey = createInjectionKey("u-radio-group");
|
|
36928
36929
|
function useRadio(props) {
|
|
@@ -38951,13 +38952,13 @@
|
|
|
38951
38952
|
elementsQuaternary
|
|
38952
38953
|
} = vars;
|
|
38953
38954
|
return {
|
|
38954
|
-
itemPaddingSmall: "0
|
|
38955
|
+
itemPaddingSmall: "0 10px",
|
|
38955
38956
|
itemMarginSmall: "0 0 0 2px",
|
|
38956
38957
|
itemMarginSmallRtl: "0 2px 0 0",
|
|
38957
|
-
itemPaddingMedium: "0
|
|
38958
|
+
itemPaddingMedium: "0 12px",
|
|
38958
38959
|
itemMarginMedium: "0 0 0 2px",
|
|
38959
38960
|
itemMarginMediumRtl: "0 2px 0 0",
|
|
38960
|
-
itemPaddingLarge: "0
|
|
38961
|
+
itemPaddingLarge: "0 14px",
|
|
38961
38962
|
itemMarginLarge: "0 0 0 2px",
|
|
38962
38963
|
itemMarginLargeRtl: "0 2px 0 0",
|
|
38963
38964
|
buttonIconSizeSmall: "14px",
|
|
@@ -39010,8 +39011,8 @@
|
|
|
39010
39011
|
itemBorderActive: "0px",
|
|
39011
39012
|
itemBorderDisabled: "0px",
|
|
39012
39013
|
itemBorderRadius: borderRadius,
|
|
39013
|
-
itemSizeSmall: "
|
|
39014
|
-
itemSizeMedium: "
|
|
39014
|
+
itemSizeSmall: "32px",
|
|
39015
|
+
itemSizeMedium: "36px",
|
|
39015
39016
|
itemSizeLarge: "40px",
|
|
39016
39017
|
itemFontSizeSmall: fontBodyMedium,
|
|
39017
39018
|
itemFontSizeMedium: fontBodyMedium,
|
|
@@ -59336,6 +59337,28 @@
|
|
|
59336
59337
|
--u-merged-border: var(--u-border-checked);
|
|
59337
59338
|
--u-merged-shadow: var(--u-box-shadow-hover-checked);
|
|
59338
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);
|
|
59339
59362
|
`, [c$1("&:hover", `
|
|
59340
59363
|
--u-merged-color: var(--u-color-hover-checked);
|
|
59341
59364
|
--u-merged-border: var(--u-border-hover-checked);
|
|
@@ -64283,9 +64306,9 @@
|
|
|
64283
64306
|
line-height: 20px;
|
|
64284
64307
|
`), cB("base-selection-label", `
|
|
64285
64308
|
background-color: var(--u-pagination-size-picker-background);
|
|
64286
|
-
`), cB("base-
|
|
64287
|
-
|
|
64288
|
-
|
|
64309
|
+
`), cB("base-selection", [cE("border", `
|
|
64310
|
+
border-color: var(--u-pagination-size-picker-border);
|
|
64311
|
+
`)])]), cB("pagination-quick-jumper", `
|
|
64289
64312
|
white-space: nowrap;
|
|
64290
64313
|
display: flex;
|
|
64291
64314
|
color: var(--u-jumper-text-color);
|
|
@@ -64319,14 +64342,19 @@
|
|
|
64319
64342
|
border-color .3s var(--u-bezier),
|
|
64320
64343
|
background-color .3s var(--u-bezier),
|
|
64321
64344
|
fill .3s var(--u-bezier);
|
|
64322
|
-
`, [
|
|
64345
|
+
`, [c$1("&:has(.more-icon)", `
|
|
64346
|
+
font-size: 24px;
|
|
64347
|
+
`), cM("button", `
|
|
64323
64348
|
background: var(--u-button-color);
|
|
64324
64349
|
color: var(--u-button-icon-color);
|
|
64325
64350
|
border: var(--u-button-border);
|
|
64326
64351
|
padding: 0;
|
|
64327
64352
|
`, [cB("base-icon", `
|
|
64328
64353
|
font-size: var(--u-button-icon-size);
|
|
64329
|
-
`)]), 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", `
|
|
64330
64358
|
font-weight: 700;
|
|
64331
64359
|
background: var(--u-item-color-pressed);
|
|
64332
64360
|
color: var(--u-item-text-color-pressed);
|
|
@@ -64545,7 +64573,12 @@
|
|
|
64545
64573
|
return mergedComponentPropsRef?.value?.Pagination?.inputSize || smallerSize(props.size);
|
|
64546
64574
|
});
|
|
64547
64575
|
const selectSizeRef = vue.computed(() => {
|
|
64548
|
-
|
|
64576
|
+
const selectSizes = {
|
|
64577
|
+
small: "small",
|
|
64578
|
+
medium: "small",
|
|
64579
|
+
large: "medium"
|
|
64580
|
+
};
|
|
64581
|
+
return mergedComponentPropsRef?.value?.Pagination?.selectSize || selectSizes[props.size];
|
|
64549
64582
|
});
|
|
64550
64583
|
const startIndexRef = vue.computed(() => {
|
|
64551
64584
|
return (mergedPageRef.value - 1) * mergedPageSizeRef.value;
|
|
@@ -64935,7 +64968,7 @@
|
|
|
64935
64968
|
case "fast-forward":
|
|
64936
64969
|
const fastForwardNode = this.fastForwardActive ? /* @__PURE__ */ vue.h(UBaseIcon, { clsPrefix: mergedClsPrefix }, {
|
|
64937
64970
|
default: () => this.rtlEnabled ? /* @__PURE__ */ vue.h(FastBackwardIcon, null) : /* @__PURE__ */ vue.h(FastForwardIcon, null)
|
|
64938
|
-
}) : /* @__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" }) });
|
|
64939
64972
|
if (renderLabel) {
|
|
64940
64973
|
contentNode = renderLabel({
|
|
64941
64974
|
type: "fast-forward",
|
|
@@ -64951,7 +64984,7 @@
|
|
|
64951
64984
|
case "fast-backward":
|
|
64952
64985
|
const fastBackwardNode = this.fastBackwardActive ? /* @__PURE__ */ vue.h(UBaseIcon, { clsPrefix: mergedClsPrefix }, {
|
|
64953
64986
|
default: () => this.rtlEnabled ? /* @__PURE__ */ vue.h(FastForwardIcon, null) : /* @__PURE__ */ vue.h(FastBackwardIcon, null)
|
|
64954
|
-
}) : /* @__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" }) });
|
|
64955
64988
|
if (renderLabel) {
|
|
64956
64989
|
contentNode = renderLabel({
|
|
64957
64990
|
type: "fast-backward",
|
|
@@ -64996,7 +65029,7 @@
|
|
|
64996
65029
|
disabled,
|
|
64997
65030
|
trigger: "hover",
|
|
64998
65031
|
virtualScroll: true,
|
|
64999
|
-
style: {
|
|
65032
|
+
style: { minWidth: "70px", textAlign: "center" },
|
|
65000
65033
|
theme: mergedTheme.peers.Popselect,
|
|
65001
65034
|
themeOverrides: mergedTheme.peerOverrides.Popselect,
|
|
65002
65035
|
builtinThemeOverrides: {
|
|
@@ -65073,7 +65106,7 @@
|
|
|
65073
65106
|
themeOverrides: mergedTheme.peerOverrides.Select,
|
|
65074
65107
|
onUpdateValue: handleSizePickerChange
|
|
65075
65108
|
}
|
|
65076
|
-
), /* @__PURE__ */ vue.h("span", { class: `${mergedClsPrefix}-label` },
|
|
65109
|
+
), /* @__PURE__ */ vue.h("span", { class: `${mergedClsPrefix}-label` }, sizePickerLabel || "")) : null;
|
|
65077
65110
|
}
|
|
65078
65111
|
case "quick-jumper":
|
|
65079
65112
|
return !simple && showQuickJumper ? /* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefix}-pagination-quick-jumper` }, goto ? goto() : resolveSlot(this.$slots.goto, () => [locale.goto]), /* @__PURE__ */ vue.h(
|
|
@@ -65600,7 +65633,8 @@
|
|
|
65600
65633
|
disabled: this.mergedDisabled,
|
|
65601
65634
|
onChange: this.handleRadioInputChange,
|
|
65602
65635
|
onFocus: this.handleRadioInputFocus,
|
|
65603
|
-
onBlur: this.handleRadioInputBlur
|
|
65636
|
+
onBlur: this.handleRadioInputBlur,
|
|
65637
|
+
onClick: this.onClick
|
|
65604
65638
|
}
|
|
65605
65639
|
),
|
|
65606
65640
|
/* @__PURE__ */ vue.h("div", { class: `${mergedClsPrefix}-radio__dot-wrapper` }, "\xA0", /* @__PURE__ */ vue.h(
|
|
@@ -86058,6 +86092,9 @@
|
|
|
86058
86092
|
onUpdateChecked: {
|
|
86059
86093
|
type: Function,
|
|
86060
86094
|
required: true
|
|
86095
|
+
},
|
|
86096
|
+
onClick: {
|
|
86097
|
+
type: Function
|
|
86061
86098
|
}
|
|
86062
86099
|
},
|
|
86063
86100
|
setup(props) {
|
|
@@ -86076,6 +86113,7 @@
|
|
|
86076
86113
|
disabled: props.disabled,
|
|
86077
86114
|
checked: mergedCheckedRowKeySetRef.value.has(rowKey),
|
|
86078
86115
|
onUpdateChecked: props.onUpdateChecked,
|
|
86116
|
+
onClick: props.onClick,
|
|
86079
86117
|
size: sizeRef.value
|
|
86080
86118
|
}
|
|
86081
86119
|
);
|
|
@@ -86875,6 +86913,9 @@
|
|
|
86875
86913
|
key: currentPage,
|
|
86876
86914
|
rowKey,
|
|
86877
86915
|
disabled: rowInfo.tmNode.disabled,
|
|
86916
|
+
onClick: (event) => {
|
|
86917
|
+
event.stopPropagation();
|
|
86918
|
+
},
|
|
86878
86919
|
onUpdateChecked: () => {
|
|
86879
86920
|
handleRadioUpdateChecked(rowInfo.tmNode);
|
|
86880
86921
|
}
|
|
@@ -86885,11 +86926,12 @@
|
|
|
86885
86926
|
key: currentPage,
|
|
86886
86927
|
rowKey,
|
|
86887
86928
|
disabled: rowInfo.tmNode.disabled,
|
|
86888
|
-
onUpdateChecked: (checked,
|
|
86929
|
+
onUpdateChecked: (checked, event) => {
|
|
86930
|
+
event.stopPropagation();
|
|
86889
86931
|
handleCheckboxUpdateChecked(
|
|
86890
86932
|
rowInfo.tmNode,
|
|
86891
86933
|
checked,
|
|
86892
|
-
|
|
86934
|
+
event.shiftKey
|
|
86893
86935
|
);
|
|
86894
86936
|
}
|
|
86895
86937
|
}
|
|
@@ -109679,6 +109721,16 @@
|
|
|
109679
109721
|
...listItemProps
|
|
109680
109722
|
},
|
|
109681
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
|
+
}
|
|
109682
109734
|
const listInjection = vue.inject(listInjectionKey, null);
|
|
109683
109735
|
if (!listInjection) {
|
|
109684
109736
|
throwError("list-item", "`u-list-item` must be placed in `u-list`.");
|
|
@@ -127015,7 +127067,7 @@
|
|
|
127015
127067
|
watermarkProps: watermarkProps
|
|
127016
127068
|
});
|
|
127017
127069
|
|
|
127018
|
-
var version = "1.
|
|
127070
|
+
var version = "1.6.0";
|
|
127019
127071
|
|
|
127020
127072
|
function create({
|
|
127021
127073
|
componentPrefix = "U",
|