@uzum-tech/ui 2.4.7 → 2.4.9
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 +225 -75
- package/dist/index.mjs +225 -75
- package/dist/index.prod.js +2 -2
- package/dist/index.prod.mjs +3 -3
- package/es/components.d.ts +82 -10
- package/es/dynamic-tags/index.d.ts +3 -3
- package/es/dynamic-tags/index.mjs +2 -1
- package/es/dynamic-tags/src/DynamicTags.d.ts +74 -1177
- package/es/dynamic-tags/src/DynamicTags.mjs +150 -107
- package/es/dynamic-tags/src/interface.d.ts +1146 -6
- package/es/dynamic-tags/src/interface.mjs +34 -1
- package/es/dynamic-tags/src/styles/index.cssr.mjs +35 -3
- package/es/dynamic-tags/styles/dark.mjs +4 -2
- package/es/dynamic-tags/styles/light.d.ts +2 -0
- package/es/dynamic-tags/styles/light.mjs +4 -2
- package/es/form/src/Form.d.ts +4 -0
- package/es/form/src/Form.mjs +1 -0
- package/es/form/src/FormItem.d.ts +15 -1
- package/es/form/src/FormItem.mjs +8 -1
- package/es/form/src/FormItemCol.d.ts +14 -1
- package/es/form/src/FormItemGridItem.d.ts +14 -1
- package/es/form/src/FormItemRow.d.ts +13 -0
- package/es/form/src/styles/form-item.cssr.mjs +2 -1
- package/es/form/src/utils.d.ts +1 -0
- package/es/form/src/utils.mjs +6 -0
- package/es/version.d.ts +1 -1
- package/es/version.mjs +1 -1
- package/lib/components.d.ts +82 -10
- package/lib/dynamic-tags/index.d.ts +3 -3
- package/lib/dynamic-tags/index.js +3 -2
- package/lib/dynamic-tags/src/DynamicTags.d.ts +74 -1177
- package/lib/dynamic-tags/src/DynamicTags.js +142 -77
- package/lib/dynamic-tags/src/interface.d.ts +1146 -6
- package/lib/dynamic-tags/src/interface.js +24 -0
- package/lib/dynamic-tags/src/styles/index.cssr.js +34 -2
- package/lib/dynamic-tags/styles/dark.js +4 -2
- package/lib/dynamic-tags/styles/light.d.ts +2 -0
- package/lib/dynamic-tags/styles/light.js +4 -2
- package/lib/form/src/Form.d.ts +4 -0
- package/lib/form/src/Form.js +1 -1
- package/lib/form/src/FormItem.d.ts +15 -1
- package/lib/form/src/FormItem.js +6 -2
- package/lib/form/src/FormItemCol.d.ts +14 -1
- package/lib/form/src/FormItemGridItem.d.ts +14 -1
- package/lib/form/src/FormItemRow.d.ts +13 -0
- package/lib/form/src/styles/form-item.cssr.js +2 -1
- package/lib/form/src/utils.d.ts +1 -0
- package/lib/form/src/utils.js +7 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/web-types.json +31 -1
package/dist/index.js
CHANGED
|
@@ -54507,9 +54507,11 @@
|
|
|
54507
54507
|
Tag: tagDark,
|
|
54508
54508
|
Space: spaceDark
|
|
54509
54509
|
},
|
|
54510
|
-
self() {
|
|
54510
|
+
self(vars) {
|
|
54511
54511
|
return {
|
|
54512
|
-
inputWidth: "64px"
|
|
54512
|
+
inputWidth: "64px",
|
|
54513
|
+
draggingOpacity: "0.5",
|
|
54514
|
+
dropIndicatorColor: vars.elementsPrimary
|
|
54513
54515
|
};
|
|
54514
54516
|
}
|
|
54515
54517
|
};
|
|
@@ -54523,9 +54525,11 @@
|
|
|
54523
54525
|
Tag: tagLight,
|
|
54524
54526
|
Space: spaceLight
|
|
54525
54527
|
},
|
|
54526
|
-
self() {
|
|
54528
|
+
self(vars) {
|
|
54527
54529
|
return {
|
|
54528
|
-
inputWidth: "64px"
|
|
54530
|
+
inputWidth: "64px",
|
|
54531
|
+
draggingOpacity: "0.5",
|
|
54532
|
+
dropIndicatorColor: vars.elementsPrimary
|
|
54529
54533
|
};
|
|
54530
54534
|
}
|
|
54531
54535
|
});
|
|
@@ -124445,10 +124449,6 @@ img.ProseMirror-separator {
|
|
|
124445
124449
|
}
|
|
124446
124450
|
});
|
|
124447
124451
|
|
|
124448
|
-
var style$M = cB("dynamic-tags", [cB("input", {
|
|
124449
|
-
minWidth: "var(--u-input-width)"
|
|
124450
|
-
})]);
|
|
124451
|
-
|
|
124452
124452
|
const dynamicTagsProps = {
|
|
124453
124453
|
...useTheme.props,
|
|
124454
124454
|
...commonProps,
|
|
@@ -124460,6 +124460,10 @@ img.ProseMirror-separator {
|
|
|
124460
124460
|
type: Boolean,
|
|
124461
124461
|
default: true
|
|
124462
124462
|
},
|
|
124463
|
+
draggable: {
|
|
124464
|
+
type: Boolean,
|
|
124465
|
+
default: false
|
|
124466
|
+
},
|
|
124463
124467
|
defaultValue: {
|
|
124464
124468
|
type: Array,
|
|
124465
124469
|
default: () => []
|
|
@@ -124472,13 +124476,48 @@ img.ProseMirror-separator {
|
|
|
124472
124476
|
renderTag: Function,
|
|
124473
124477
|
onCreate: {
|
|
124474
124478
|
type: Function,
|
|
124475
|
-
default:
|
|
124479
|
+
default: label => label
|
|
124476
124480
|
},
|
|
124477
124481
|
"onUpdate:value": [Function, Array],
|
|
124478
124482
|
onUpdateValue: [Function, Array],
|
|
124479
124483
|
// deprecated
|
|
124480
124484
|
onChange: [Function, Array]
|
|
124481
124485
|
};
|
|
124486
|
+
|
|
124487
|
+
var style$M = cB("dynamic-tags", [cB("input", {
|
|
124488
|
+
minWidth: "var(--u-input-width)"
|
|
124489
|
+
}), cE("tag-wrapper", `
|
|
124490
|
+
display: flex;
|
|
124491
|
+
position: relative;
|
|
124492
|
+
cursor: default;
|
|
124493
|
+
`, [c$1("& > *", `
|
|
124494
|
+
cursor: inherit;
|
|
124495
|
+
`)]), cE("tag", [cM("draggable", `
|
|
124496
|
+
cursor: grab;
|
|
124497
|
+
user-select: none;
|
|
124498
|
+
`), cM("dragging", `
|
|
124499
|
+
opacity: var(--u-dragging-opacity);
|
|
124500
|
+
cursor: grabbing;
|
|
124501
|
+
`), cM("drop-before", [c$1("&::before", `
|
|
124502
|
+
content: '';
|
|
124503
|
+
position: absolute;
|
|
124504
|
+
top: 0;
|
|
124505
|
+
bottom: 0;
|
|
124506
|
+
left: -5px;
|
|
124507
|
+
width: 2px;
|
|
124508
|
+
border-radius: 2px;
|
|
124509
|
+
background-color: var(--u-drop-indicator-color);
|
|
124510
|
+
`)]), cM("drop-after", [c$1("&::after", `
|
|
124511
|
+
content: '';
|
|
124512
|
+
position: absolute;
|
|
124513
|
+
top: 0;
|
|
124514
|
+
bottom: 0;
|
|
124515
|
+
right: -5px;
|
|
124516
|
+
width: 2px;
|
|
124517
|
+
border-radius: 2px;
|
|
124518
|
+
background-color: var(--u-drop-indicator-color);
|
|
124519
|
+
`)])])]);
|
|
124520
|
+
|
|
124482
124521
|
var _UDynamicTags = vue.defineComponent({
|
|
124483
124522
|
name: "DynamicTags",
|
|
124484
124523
|
props: dynamicTagsProps,
|
|
@@ -124494,14 +124533,9 @@ img.ProseMirror-separator {
|
|
|
124494
124533
|
}
|
|
124495
124534
|
});
|
|
124496
124535
|
}
|
|
124497
|
-
const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
|
|
124498
124536
|
const { localeRef } = useLocale("DynamicTags");
|
|
124537
|
+
const { mergedClsPrefixRef, inlineThemeDisabled } = useConfig(props);
|
|
124499
124538
|
const formItem = useFormItem(props);
|
|
124500
|
-
const { mergedDisabledRef } = formItem;
|
|
124501
|
-
const inputValueRef = vue.ref("");
|
|
124502
|
-
const showInputRef = vue.ref(false);
|
|
124503
|
-
const inputForceFocusedRef = vue.ref(true);
|
|
124504
|
-
const inputInstRef = vue.ref(null);
|
|
124505
124539
|
const themeRef = useTheme(
|
|
124506
124540
|
"DynamicTags",
|
|
124507
124541
|
"-dynamic-tags",
|
|
@@ -124510,8 +124544,14 @@ img.ProseMirror-separator {
|
|
|
124510
124544
|
props,
|
|
124511
124545
|
mergedClsPrefixRef
|
|
124512
124546
|
);
|
|
124547
|
+
const inputInstRef = vue.ref(null);
|
|
124548
|
+
const inputValueRef = vue.ref("");
|
|
124549
|
+
const showInputRef = vue.ref(false);
|
|
124550
|
+
const inputForceFocusedRef = vue.ref(true);
|
|
124513
124551
|
const uncontrolledValueRef = vue.ref(props.defaultValue);
|
|
124514
124552
|
const controlledValueRef = vue.toRef(props, "value");
|
|
124553
|
+
const dragIndexRef = vue.ref(null);
|
|
124554
|
+
const dragOverIndexRef = vue.ref(null);
|
|
124515
124555
|
const mergedValueRef = useMergedState(
|
|
124516
124556
|
controlledValueRef,
|
|
124517
124557
|
uncontrolledValueRef
|
|
@@ -124522,38 +124562,44 @@ img.ProseMirror-separator {
|
|
|
124522
124562
|
const inputSizeRef = vue.computed(() => {
|
|
124523
124563
|
return smallerSize(props.size);
|
|
124524
124564
|
});
|
|
124565
|
+
const buttonSizeRef = vue.computed(() => {
|
|
124566
|
+
return smallerSize(props.size);
|
|
124567
|
+
});
|
|
124525
124568
|
const triggerDisabledRef = vue.computed(() => {
|
|
124526
|
-
return mergedDisabledRef.value || !!props.max && mergedValueRef.value.length >= props.max;
|
|
124569
|
+
return formItem.mergedDisabledRef.value || !!props.max && mergedValueRef.value.length >= props.max;
|
|
124527
124570
|
});
|
|
124528
|
-
|
|
124571
|
+
const cssVarsRef = vue.computed(() => {
|
|
124529
124572
|
const {
|
|
124530
|
-
|
|
124531
|
-
|
|
124532
|
-
|
|
124533
|
-
|
|
124534
|
-
|
|
124535
|
-
|
|
124536
|
-
|
|
124537
|
-
|
|
124538
|
-
|
|
124539
|
-
|
|
124540
|
-
|
|
124573
|
+
self: { inputWidth, draggingOpacity, dropIndicatorColor }
|
|
124574
|
+
} = themeRef.value;
|
|
124575
|
+
return {
|
|
124576
|
+
"--u-input-width": inputWidth,
|
|
124577
|
+
"--u-dragging-opacity": draggingOpacity,
|
|
124578
|
+
"--u-drop-indicator-color": dropIndicatorColor
|
|
124579
|
+
};
|
|
124580
|
+
});
|
|
124581
|
+
const tagSizeRef = vue.computed(() => {
|
|
124582
|
+
const { size } = props;
|
|
124583
|
+
return size === "huge" ? "medium" : "small";
|
|
124584
|
+
});
|
|
124585
|
+
const themeClassHandle = inlineThemeDisabled ? useThemeClass("dynamic-tags", void 0, cssVarsRef, props) : void 0;
|
|
124586
|
+
const doChange = (value) => {
|
|
124587
|
+
if (props.onChange)
|
|
124588
|
+
call(props.onChange, value);
|
|
124589
|
+
if (props.onUpdateValue)
|
|
124590
|
+
call(props.onUpdateValue, value);
|
|
124591
|
+
if (props["onUpdate:value"])
|
|
124592
|
+
call(props["onUpdate:value"], value);
|
|
124541
124593
|
uncontrolledValueRef.value = value;
|
|
124542
|
-
triggerFormInput();
|
|
124543
|
-
triggerFormChange();
|
|
124544
|
-
}
|
|
124545
|
-
|
|
124594
|
+
formItem.triggerFormInput();
|
|
124595
|
+
formItem.triggerFormChange();
|
|
124596
|
+
};
|
|
124597
|
+
const handleCloseClick = (index) => {
|
|
124546
124598
|
const tags = mergedValueRef.value.slice(0);
|
|
124547
124599
|
tags.splice(index, 1);
|
|
124548
124600
|
doChange(tags);
|
|
124549
|
-
}
|
|
124550
|
-
|
|
124551
|
-
switch (e.key) {
|
|
124552
|
-
case "Enter":
|
|
124553
|
-
handleInputConfirm();
|
|
124554
|
-
}
|
|
124555
|
-
}
|
|
124556
|
-
function handleInputConfirm(externalValue) {
|
|
124601
|
+
};
|
|
124602
|
+
const handleInputConfirm = (externalValue) => {
|
|
124557
124603
|
const nextValue = externalValue ?? inputValueRef.value;
|
|
124558
124604
|
if (nextValue) {
|
|
124559
124605
|
const tags = mergedValueRef.value.slice(0);
|
|
@@ -124563,60 +124609,125 @@ img.ProseMirror-separator {
|
|
|
124563
124609
|
showInputRef.value = false;
|
|
124564
124610
|
inputForceFocusedRef.value = true;
|
|
124565
124611
|
inputValueRef.value = "";
|
|
124566
|
-
}
|
|
124567
|
-
|
|
124612
|
+
};
|
|
124613
|
+
const handleInputKeyUp = (event) => {
|
|
124614
|
+
if (event.key === "Enter")
|
|
124615
|
+
handleInputConfirm();
|
|
124616
|
+
};
|
|
124617
|
+
const handleInputBlur = () => {
|
|
124568
124618
|
handleInputConfirm();
|
|
124569
|
-
}
|
|
124570
|
-
|
|
124619
|
+
};
|
|
124620
|
+
const handleAddClick = () => {
|
|
124571
124621
|
showInputRef.value = true;
|
|
124572
124622
|
void vue.nextTick(() => {
|
|
124573
124623
|
inputInstRef.value?.focus();
|
|
124574
124624
|
inputForceFocusedRef.value = false;
|
|
124575
124625
|
});
|
|
124576
|
-
}
|
|
124577
|
-
const
|
|
124578
|
-
|
|
124579
|
-
|
|
124580
|
-
|
|
124626
|
+
};
|
|
124627
|
+
const moveItem = (from, to) => {
|
|
124628
|
+
if (from === to)
|
|
124629
|
+
return;
|
|
124630
|
+
const values = [...mergedValueRef.value];
|
|
124631
|
+
const [item] = values.splice(from, 1);
|
|
124632
|
+
values.splice(to, 0, item);
|
|
124633
|
+
doChange(values);
|
|
124634
|
+
};
|
|
124635
|
+
const resetDrag = () => {
|
|
124636
|
+
dragIndexRef.value = null;
|
|
124637
|
+
dragOverIndexRef.value = null;
|
|
124638
|
+
};
|
|
124639
|
+
const handleDragStart = (event, index) => {
|
|
124640
|
+
dragIndexRef.value = index;
|
|
124641
|
+
if (event.dataTransfer) {
|
|
124642
|
+
event.dataTransfer.effectAllowed = "move";
|
|
124643
|
+
event.dataTransfer.setData("text/plain", String(index));
|
|
124644
|
+
}
|
|
124645
|
+
};
|
|
124646
|
+
const handleDragOver = (event, index) => {
|
|
124647
|
+
if (dragIndexRef.value === null)
|
|
124648
|
+
return;
|
|
124649
|
+
event.preventDefault();
|
|
124650
|
+
dragOverIndexRef.value = index;
|
|
124651
|
+
};
|
|
124652
|
+
const handleDragLeave = (event, index) => {
|
|
124653
|
+
if (dragOverIndexRef.value !== index)
|
|
124654
|
+
return;
|
|
124655
|
+
const current = event.currentTarget;
|
|
124656
|
+
const related = event.relatedTarget;
|
|
124657
|
+
if (current && related && current.contains(related))
|
|
124658
|
+
return;
|
|
124659
|
+
dragOverIndexRef.value = null;
|
|
124660
|
+
};
|
|
124661
|
+
const handleDrop = (event, index) => {
|
|
124662
|
+
if (dragIndexRef.value === null)
|
|
124663
|
+
return;
|
|
124664
|
+
event.preventDefault();
|
|
124665
|
+
moveItem(dragIndexRef.value, index);
|
|
124666
|
+
resetDrag();
|
|
124667
|
+
};
|
|
124668
|
+
const getDragProps = (index) => {
|
|
124669
|
+
if (!props.draggable || formItem.mergedDisabledRef.value)
|
|
124670
|
+
return {};
|
|
124671
|
+
const prefix = `${mergedClsPrefixRef.value}-dynamic-tags__tag`;
|
|
124672
|
+
const from = dragIndexRef.value;
|
|
124673
|
+
const isOver = from !== null && dragOverIndexRef.value === index;
|
|
124581
124674
|
return {
|
|
124582
|
-
|
|
124675
|
+
class: [
|
|
124676
|
+
prefix,
|
|
124677
|
+
`${prefix}--draggable`,
|
|
124678
|
+
{
|
|
124679
|
+
[`${prefix}--dragging`]: from === index,
|
|
124680
|
+
[`${prefix}--drop-before`]: isOver && from > index,
|
|
124681
|
+
[`${prefix}--drop-after`]: isOver && from < index
|
|
124682
|
+
}
|
|
124683
|
+
],
|
|
124684
|
+
draggable: true,
|
|
124685
|
+
onDragstart: (event) => handleDragStart(event, index),
|
|
124686
|
+
onDragover: (event) => handleDragOver(event, index),
|
|
124687
|
+
onDragleave: (event) => handleDragLeave(event, index),
|
|
124688
|
+
onDrop: (event) => handleDrop(event, index),
|
|
124689
|
+
onDragend: resetDrag
|
|
124583
124690
|
};
|
|
124584
|
-
}
|
|
124585
|
-
const tagSizeRef = vue.computed(() => {
|
|
124586
|
-
const { size } = props;
|
|
124587
|
-
return size === "huge" ? "medium" : "small";
|
|
124588
|
-
});
|
|
124589
|
-
const themeClassHandle = inlineThemeDisabled ? useThemeClass("dynamic-tags", void 0, cssVarsRef, props) : void 0;
|
|
124691
|
+
};
|
|
124590
124692
|
return {
|
|
124591
124693
|
mergedClsPrefix: mergedClsPrefixRef,
|
|
124592
124694
|
inputInstRef,
|
|
124593
124695
|
localizedAdd: localizedAddRef,
|
|
124594
124696
|
inputSize: inputSizeRef,
|
|
124595
124697
|
inputValue: inputValueRef,
|
|
124698
|
+
buttonSize: buttonSizeRef,
|
|
124596
124699
|
showInput: showInputRef,
|
|
124597
124700
|
inputForceFocused: inputForceFocusedRef,
|
|
124598
124701
|
mergedValue: mergedValueRef,
|
|
124599
|
-
mergedDisabled: mergedDisabledRef,
|
|
124702
|
+
mergedDisabled: formItem.mergedDisabledRef,
|
|
124600
124703
|
triggerDisabled: triggerDisabledRef,
|
|
124704
|
+
mergedTheme: themeRef,
|
|
124705
|
+
cssVars: inlineThemeDisabled ? void 0 : cssVarsRef,
|
|
124706
|
+
themeClass: themeClassHandle?.themeClass,
|
|
124707
|
+
tagSize: tagSizeRef,
|
|
124601
124708
|
handleInputKeyUp,
|
|
124602
124709
|
handleAddClick,
|
|
124603
124710
|
handleInputBlur,
|
|
124604
124711
|
handleCloseClick,
|
|
124605
124712
|
handleInputConfirm,
|
|
124606
|
-
|
|
124607
|
-
|
|
124608
|
-
themeClass: themeClassHandle?.themeClass,
|
|
124609
|
-
onRender: themeClassHandle?.onRender,
|
|
124610
|
-
tagSize: tagSizeRef
|
|
124713
|
+
getDragProps,
|
|
124714
|
+
onRender: themeClassHandle?.onRender
|
|
124611
124715
|
};
|
|
124612
124716
|
},
|
|
124613
124717
|
render() {
|
|
124614
|
-
const {
|
|
124718
|
+
const {
|
|
124719
|
+
mergedTheme,
|
|
124720
|
+
cssVars,
|
|
124721
|
+
mergedClsPrefix,
|
|
124722
|
+
themeClass,
|
|
124723
|
+
onRender,
|
|
124724
|
+
renderTag
|
|
124725
|
+
} = this;
|
|
124615
124726
|
onRender?.();
|
|
124616
124727
|
return /* @__PURE__ */ vue.h(
|
|
124617
124728
|
USpace$1,
|
|
124618
124729
|
{
|
|
124619
|
-
class: [`${mergedClsPrefix}-dynamic-tags`,
|
|
124730
|
+
class: [`${mergedClsPrefix}-dynamic-tags`, themeClass],
|
|
124620
124731
|
size: "small",
|
|
124621
124732
|
style: cssVars,
|
|
124622
124733
|
theme: mergedTheme.peers.Space,
|
|
@@ -124627,36 +124738,64 @@ img.ProseMirror-separator {
|
|
|
124627
124738
|
default: () => {
|
|
124628
124739
|
const {
|
|
124629
124740
|
mergedTheme: mergedTheme2,
|
|
124741
|
+
mergedValue,
|
|
124630
124742
|
tagStyle,
|
|
124743
|
+
tagSize,
|
|
124631
124744
|
type,
|
|
124632
124745
|
round,
|
|
124633
124746
|
color,
|
|
124634
124747
|
closable,
|
|
124635
124748
|
mergedDisabled,
|
|
124749
|
+
draggable,
|
|
124636
124750
|
showInput,
|
|
124637
124751
|
inputValue,
|
|
124638
124752
|
inputStyle,
|
|
124753
|
+
inputProps,
|
|
124639
124754
|
inputSize,
|
|
124755
|
+
buttonSize,
|
|
124640
124756
|
inputForceFocused,
|
|
124641
124757
|
triggerDisabled,
|
|
124758
|
+
$slots,
|
|
124642
124759
|
handleInputKeyUp,
|
|
124643
124760
|
handleInputBlur,
|
|
124644
124761
|
handleAddClick,
|
|
124645
124762
|
handleCloseClick,
|
|
124646
124763
|
handleInputConfirm,
|
|
124647
|
-
|
|
124764
|
+
getDragProps
|
|
124648
124765
|
} = this;
|
|
124649
|
-
return
|
|
124650
|
-
(
|
|
124766
|
+
return mergedValue.map((tag, index) => {
|
|
124767
|
+
if (renderTag) {
|
|
124768
|
+
const customTag = renderTag(
|
|
124769
|
+
tag,
|
|
124770
|
+
index
|
|
124771
|
+
);
|
|
124772
|
+
if (!draggable)
|
|
124773
|
+
return customTag;
|
|
124774
|
+
const dragProps = getDragProps(index);
|
|
124775
|
+
return /* @__PURE__ */ vue.h(
|
|
124776
|
+
"div",
|
|
124777
|
+
{
|
|
124778
|
+
key: index,
|
|
124779
|
+
...dragProps,
|
|
124780
|
+
class: [
|
|
124781
|
+
`${mergedClsPrefix}-dynamic-tags__tag-wrapper`,
|
|
124782
|
+
dragProps.class
|
|
124783
|
+
]
|
|
124784
|
+
},
|
|
124785
|
+
customTag
|
|
124786
|
+
);
|
|
124787
|
+
}
|
|
124788
|
+
return /* @__PURE__ */ vue.h(
|
|
124651
124789
|
_UTag,
|
|
124652
124790
|
{
|
|
124653
124791
|
key: index,
|
|
124792
|
+
...getDragProps(index),
|
|
124654
124793
|
theme: mergedTheme2.peers.Tag,
|
|
124655
124794
|
themeOverrides: mergedTheme2.peerOverrides.Tag,
|
|
124656
124795
|
style: tagStyle,
|
|
124657
124796
|
type,
|
|
124658
124797
|
round,
|
|
124659
|
-
size:
|
|
124798
|
+
size: tagSize,
|
|
124660
124799
|
color,
|
|
124661
124800
|
closable,
|
|
124662
124801
|
disabled: mergedDisabled,
|
|
@@ -124667,8 +124806,8 @@ img.ProseMirror-separator {
|
|
|
124667
124806
|
{
|
|
124668
124807
|
default: () => typeof tag === "string" ? tag : tag.label
|
|
124669
124808
|
}
|
|
124670
|
-
)
|
|
124671
|
-
).concat(
|
|
124809
|
+
);
|
|
124810
|
+
}).concat(
|
|
124672
124811
|
showInput ? $slots.input ? $slots.input({
|
|
124673
124812
|
submit: handleInputConfirm,
|
|
124674
124813
|
deactivate: handleInputBlur
|
|
@@ -124679,7 +124818,7 @@ img.ProseMirror-separator {
|
|
|
124679
124818
|
size: inputSize,
|
|
124680
124819
|
style: inputStyle,
|
|
124681
124820
|
autosize: true,
|
|
124682
|
-
...
|
|
124821
|
+
...inputProps,
|
|
124683
124822
|
ref: "inputInstRef",
|
|
124684
124823
|
value: inputValue,
|
|
124685
124824
|
onUpdateValue: (v) => {
|
|
@@ -124701,7 +124840,7 @@ img.ProseMirror-separator {
|
|
|
124701
124840
|
disabled: triggerDisabled,
|
|
124702
124841
|
theme: mergedTheme2.peers.Button,
|
|
124703
124842
|
themeOverrides: mergedTheme2.peerOverrides.Button,
|
|
124704
|
-
size:
|
|
124843
|
+
size: buttonSize,
|
|
124705
124844
|
onClick: handleAddClick
|
|
124706
124845
|
},
|
|
124707
124846
|
{
|
|
@@ -125229,6 +125368,7 @@ img.ProseMirror-separator {
|
|
|
125229
125368
|
inline: Boolean,
|
|
125230
125369
|
labelWidth: [Number, String],
|
|
125231
125370
|
labelAlign: String,
|
|
125371
|
+
ellipsisLabel: Boolean,
|
|
125232
125372
|
labelPlacement: {
|
|
125233
125373
|
type: String,
|
|
125234
125374
|
default: "top"
|
|
@@ -126539,7 +126679,8 @@ img.ProseMirror-separator {
|
|
|
126539
126679
|
"text mark"
|
|
126540
126680
|
"text .";
|
|
126541
126681
|
`), cE("text", `
|
|
126542
|
-
grid-area: text;
|
|
126682
|
+
grid-area: text;
|
|
126683
|
+
min-width: 0;
|
|
126543
126684
|
`), cE("asterisk", `
|
|
126544
126685
|
grid-area: mark;
|
|
126545
126686
|
align-self: end;
|
|
@@ -126642,6 +126783,10 @@ img.ProseMirror-separator {
|
|
|
126642
126783
|
if (UForm?.props.labelAlign) return UForm.props.labelAlign;
|
|
126643
126784
|
return void 0;
|
|
126644
126785
|
});
|
|
126786
|
+
const mergedEllipsisLabelRef = vue.computed(() => {
|
|
126787
|
+
if (props.ellipsisLabel !== void 0) return props.ellipsisLabel;
|
|
126788
|
+
return UForm?.props.ellipsisLabel ?? false;
|
|
126789
|
+
});
|
|
126645
126790
|
const mergedLabelStyleRef = vue.computed(() => {
|
|
126646
126791
|
return [props.labelProps?.style, props.labelStyle, {
|
|
126647
126792
|
width: mergedLabelWidthRef.value
|
|
@@ -126699,6 +126844,7 @@ img.ProseMirror-separator {
|
|
|
126699
126844
|
mergedValidationStatus: mergedValidationStatusRef,
|
|
126700
126845
|
mergedShowFeedback: mergedShowFeedbackRef,
|
|
126701
126846
|
mergedShowLabel: mergedShowLabelRef,
|
|
126847
|
+
mergedEllipsisLabel: mergedEllipsisLabelRef,
|
|
126702
126848
|
isAutoLabelWidth: isAutoLabelWidthRef
|
|
126703
126849
|
};
|
|
126704
126850
|
}
|
|
@@ -126771,6 +126917,10 @@ img.ProseMirror-separator {
|
|
|
126771
126917
|
const formItemProps = {
|
|
126772
126918
|
...useTheme.props,
|
|
126773
126919
|
label: String,
|
|
126920
|
+
ellipsisLabel: {
|
|
126921
|
+
type: Boolean,
|
|
126922
|
+
default: void 0
|
|
126923
|
+
},
|
|
126774
126924
|
labelWidth: [Number, String],
|
|
126775
126925
|
labelStyle: [String, Object],
|
|
126776
126926
|
labelAlign: String,
|
|
@@ -127175,7 +127325,7 @@ img.ProseMirror-separator {
|
|
|
127175
127325
|
const labelText = this.$slots.label ? this.$slots.label() : this.label;
|
|
127176
127326
|
if (!labelText)
|
|
127177
127327
|
return null;
|
|
127178
|
-
const textNode = /* @__PURE__ */ vue.h("span", { class: `${mergedClsPrefix}-form-item-label__text` }, labelText);
|
|
127328
|
+
const textNode = /* @__PURE__ */ vue.h("span", { class: `${mergedClsPrefix}-form-item-label__text` }, this.mergedEllipsisLabel ? /* @__PURE__ */ vue.h(_UEllipsis, null, { default: () => labelText }) : labelText);
|
|
127179
127329
|
const markNode = renderedShowRequireMark ? /* @__PURE__ */ vue.h("span", { class: `${mergedClsPrefix}-form-item-label__asterisk` }, mergedRequireMarkPlacement !== "left" ? "\xA0*" : "*\xA0") : mergedRequireMarkPlacement === "right-hanging" && /* @__PURE__ */ vue.h(
|
|
127180
127330
|
"span",
|
|
127181
127331
|
{
|
|
@@ -155188,7 +155338,7 @@ ${icon.label}`.toLowerCase()
|
|
|
155188
155338
|
});
|
|
155189
155339
|
}
|
|
155190
155340
|
|
|
155191
|
-
var version = "2.4.
|
|
155341
|
+
var version = "2.4.9";
|
|
155192
155342
|
|
|
155193
155343
|
function create({
|
|
155194
155344
|
componentPrefix = "U",
|