@citruslime/ui 4.1.0-beta.20 → 4.1.0-beta.22
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/citrus-lime-ui.es.js +41 -44
- package/dist/citrus-lime-ui.umd.js +2 -2
- package/package.json +5 -5
|
@@ -2961,7 +2961,6 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
2961
2961
|
select: () => selectInputValue()
|
|
2962
2962
|
});
|
|
2963
2963
|
return (_ctx, _cache) => {
|
|
2964
|
-
const _component_icon = resolveComponent("icon");
|
|
2965
2964
|
return openBlock(), createBlock(_sfc_main$19, {
|
|
2966
2965
|
"show-required-asterisk": _ctx.required,
|
|
2967
2966
|
errors: _ctx.errors
|
|
@@ -3002,7 +3001,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
3002
3001
|
_cache[6] || (_cache[6] = withKeys(withModifiers(($event) => incrementOrDecrement(false), ["stop", "prevent"]), ["up"]))
|
|
3003
3002
|
]
|
|
3004
3003
|
}, [
|
|
3005
|
-
createVNode(
|
|
3004
|
+
createVNode(unref(Icon), { icon: "ph:caret-up-bold" })
|
|
3006
3005
|
], 40, _hoisted_3$m),
|
|
3007
3006
|
createElementVNode("button", {
|
|
3008
3007
|
class: "cl:bg-secondary-light/30 cl:border cl:border-grey-3 cl:hover:bg-secondary-light/20 cl:px-1 cl:rounded",
|
|
@@ -3013,7 +3012,7 @@ const _sfc_main$U = /* @__PURE__ */ defineComponent({
|
|
|
3013
3012
|
_cache[9] || (_cache[9] = withKeys(withModifiers(($event) => incrementOrDecrement(false), ["stop", "prevent"]), ["up"]))
|
|
3014
3013
|
]
|
|
3015
3014
|
}, [
|
|
3016
|
-
createVNode(
|
|
3015
|
+
createVNode(unref(Icon), { icon: "ph:caret-down-bold" })
|
|
3017
3016
|
], 40, _hoisted_4$g)
|
|
3018
3017
|
], 512), [
|
|
3019
3018
|
[vShow, showArrowsComputed.value && !_ctx.disabled]
|
|
@@ -4659,13 +4658,41 @@ const _sfc_main$K = /* @__PURE__ */ defineComponent({
|
|
|
4659
4658
|
};
|
|
4660
4659
|
}
|
|
4661
4660
|
});
|
|
4661
|
+
const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
4662
|
+
__name: "cl-ui-select-option",
|
|
4663
|
+
props: {
|
|
4664
|
+
isSelected: { type: Boolean, default: false },
|
|
4665
|
+
isHighlighted: { type: Boolean, default: false },
|
|
4666
|
+
disabled: { type: Boolean, default: false },
|
|
4667
|
+
readonly: { type: Boolean, default: false }
|
|
4668
|
+
},
|
|
4669
|
+
emits: ["select"],
|
|
4670
|
+
setup(__props, { emit: __emit }) {
|
|
4671
|
+
const emit = __emit;
|
|
4672
|
+
return (_ctx, _cache) => {
|
|
4673
|
+
return openBlock(), createElementBlock("div", {
|
|
4674
|
+
class: normalizeClass(["cl:px-2 cl:py-0.5", _ctx.disabled ? "cl:bg-grey-1 cl:border-grey-2 cl:placeholder-grey-3" : {
|
|
4675
|
+
"cl:cursor-pointer": _ctx.readonly === false,
|
|
4676
|
+
"cl:bg-primary-lighter": _ctx.isSelected && _ctx.isHighlighted === false,
|
|
4677
|
+
"cl:hover:bg-primary-default": _ctx.readonly === false && _ctx.isSelected && _ctx.isHighlighted === false,
|
|
4678
|
+
"cl:bg-primary-default": _ctx.isSelected && _ctx.isHighlighted,
|
|
4679
|
+
"cl:hover:bg-link-lighter": _ctx.readonly === false && _ctx.isSelected === false && _ctx.isHighlighted === false,
|
|
4680
|
+
"cl:bg-link-lighter": _ctx.isSelected === false && _ctx.isHighlighted
|
|
4681
|
+
}]),
|
|
4682
|
+
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.readonly || _ctx.disabled ? null : emit("select"))
|
|
4683
|
+
}, [
|
|
4684
|
+
renderSlot(_ctx.$slots, "default")
|
|
4685
|
+
], 2);
|
|
4686
|
+
};
|
|
4687
|
+
}
|
|
4688
|
+
});
|
|
4662
4689
|
const _hoisted_1$B = ["value", "readonly", "placeholder", "disabled", "onKeydown"];
|
|
4663
4690
|
const _hoisted_2$q = ["id", "tabindex", "inert", "onKeydown"];
|
|
4664
4691
|
const _hoisted_3$i = {
|
|
4665
4692
|
key: 1,
|
|
4666
4693
|
class: "cl:p-1 cl:select-none cl:text-grey-3"
|
|
4667
4694
|
};
|
|
4668
|
-
const _sfc_main$
|
|
4695
|
+
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
4669
4696
|
...{
|
|
4670
4697
|
inheritAttrs: false
|
|
4671
4698
|
},
|
|
@@ -4921,8 +4948,6 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
4921
4948
|
focus
|
|
4922
4949
|
});
|
|
4923
4950
|
return (_ctx, _cache) => {
|
|
4924
|
-
const _component_icon = resolveComponent("icon");
|
|
4925
|
-
const _component_cl_ui_select_option = resolveComponent("cl-ui-select-option");
|
|
4926
4951
|
return openBlock(), createElementBlock("div", {
|
|
4927
4952
|
ref_key: "outsideRef",
|
|
4928
4953
|
ref: outsideRef,
|
|
@@ -4983,7 +5008,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
4983
5008
|
class: "cl:cursor-pointer cl:flex cl:items-center cl:px-2 cl:py-1 cl:relative cl:text-grey-3 cl:z-10",
|
|
4984
5009
|
onClick: _cache[5] || (_cache[5] = withModifiers(($event) => isCurrentlySearchable.value ? toggleSelectModalState(false) : onInputClick(), ["stop", "prevent"]))
|
|
4985
5010
|
}, [
|
|
4986
|
-
createVNode(
|
|
5011
|
+
createVNode(unref(Icon), {
|
|
4987
5012
|
icon: selectModalVisible.value ? "ph:caret-up-bold" : "ph:caret-down-bold"
|
|
4988
5013
|
}, null, 8, ["icon"])
|
|
4989
5014
|
])
|
|
@@ -5024,7 +5049,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
5024
5049
|
displayList.value.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(displayList.value, (option2, index2) => {
|
|
5025
5050
|
return openBlock(), createElementBlock("div", { key: index2 }, [
|
|
5026
5051
|
renderSlot(_ctx.$slots, "default", mergeProps({ ref_for: true }, { option: option2, index: index2, select: handleMouseClick, highlightIndex: highlightIndex.value, isSelected }), () => [
|
|
5027
|
-
(openBlock(), createBlock(
|
|
5052
|
+
(openBlock(), createBlock(_sfc_main$J, {
|
|
5028
5053
|
id: unref(id) + "-option-" + (isSelectItem(option2) ? option2.id : index2),
|
|
5029
5054
|
key: index2,
|
|
5030
5055
|
disabled: _ctx.disabled,
|
|
@@ -5058,34 +5083,6 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
5058
5083
|
};
|
|
5059
5084
|
}
|
|
5060
5085
|
});
|
|
5061
|
-
const _sfc_main$I = /* @__PURE__ */ defineComponent({
|
|
5062
|
-
__name: "cl-ui-select-option",
|
|
5063
|
-
props: {
|
|
5064
|
-
isSelected: { type: Boolean, default: false },
|
|
5065
|
-
isHighlighted: { type: Boolean, default: false },
|
|
5066
|
-
disabled: { type: Boolean, default: false },
|
|
5067
|
-
readonly: { type: Boolean, default: false }
|
|
5068
|
-
},
|
|
5069
|
-
emits: ["select"],
|
|
5070
|
-
setup(__props, { emit: __emit }) {
|
|
5071
|
-
const emit = __emit;
|
|
5072
|
-
return (_ctx, _cache) => {
|
|
5073
|
-
return openBlock(), createElementBlock("div", {
|
|
5074
|
-
class: normalizeClass(["cl:px-2 cl:py-0.5", _ctx.disabled ? "cl:bg-grey-1 cl:border-grey-2 cl:placeholder-grey-3" : {
|
|
5075
|
-
"cl:cursor-pointer": _ctx.readonly === false,
|
|
5076
|
-
"cl:bg-primary-lighter": _ctx.isSelected && _ctx.isHighlighted === false,
|
|
5077
|
-
"cl:hover:bg-primary-default": _ctx.readonly === false && _ctx.isSelected && _ctx.isHighlighted === false,
|
|
5078
|
-
"cl:bg-primary-default": _ctx.isSelected && _ctx.isHighlighted,
|
|
5079
|
-
"cl:hover:bg-link-lighter": _ctx.readonly === false && _ctx.isSelected === false && _ctx.isHighlighted === false,
|
|
5080
|
-
"cl:bg-link-lighter": _ctx.isSelected === false && _ctx.isHighlighted
|
|
5081
|
-
}]),
|
|
5082
|
-
onClick: _cache[0] || (_cache[0] = ($event) => _ctx.readonly || _ctx.disabled ? null : emit("select"))
|
|
5083
|
-
}, [
|
|
5084
|
-
renderSlot(_ctx.$slots, "default")
|
|
5085
|
-
], 2);
|
|
5086
|
-
};
|
|
5087
|
-
}
|
|
5088
|
-
});
|
|
5089
5086
|
const defaultFilterMethod = {
|
|
5090
5087
|
method: "equal",
|
|
5091
5088
|
icon: "mdi:equal",
|
|
@@ -5743,7 +5740,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
5743
5740
|
_ctx.options.hideGridMobileView || isListColumn.value || _ctx.column.type === "boolean" || _ctx.column.type === "slot" && _ctx.column.slotType === "boolean" ? "cl:overflow-visible" : "cl:overflow-hidden cl:lg:overflow-visible!"
|
|
5744
5741
|
]])
|
|
5745
5742
|
}, [
|
|
5746
|
-
_ctx.column.type === "boolean" || _ctx.column.type === "slot" && _ctx.column.slotType === "boolean" ? (openBlock(), createBlock(_sfc_main$
|
|
5743
|
+
_ctx.column.type === "boolean" || _ctx.column.type === "slot" && _ctx.column.slotType === "boolean" ? (openBlock(), createBlock(_sfc_main$I, {
|
|
5747
5744
|
key: 0,
|
|
5748
5745
|
id: `${unref(gridId)}-${_ctx.column.name}`,
|
|
5749
5746
|
list: unref(booleanListEntries),
|
|
@@ -5754,7 +5751,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
5754
5751
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => setFilter(null, $event?.value ?? ""))
|
|
5755
5752
|
}, {
|
|
5756
5753
|
default: withCtx(({ select, option: option2, index: index2, highlightIndex, isSelected }) => [
|
|
5757
|
-
createVNode(_sfc_main$
|
|
5754
|
+
createVNode(_sfc_main$J, {
|
|
5758
5755
|
class: "cl:py-0! cl:text-xs",
|
|
5759
5756
|
"is-selected": isSelected(option2),
|
|
5760
5757
|
"is-highlighted": index2 === highlightIndex,
|
|
@@ -5829,7 +5826,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
5829
5826
|
])]),
|
|
5830
5827
|
_: 1
|
|
5831
5828
|
}, 8, ["id", "modelValue", "readonly"])
|
|
5832
|
-
])) : isListColumn.value ? (openBlock(), createBlock(_sfc_main$
|
|
5829
|
+
])) : isListColumn.value ? (openBlock(), createBlock(_sfc_main$I, {
|
|
5833
5830
|
key: 5,
|
|
5834
5831
|
id: `${unref(gridId)}-${_ctx.column.name}`,
|
|
5835
5832
|
list: listEntriesAsSelectItems.value,
|
|
@@ -5844,7 +5841,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
5844
5841
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => updateListColumnSelectItems($event))
|
|
5845
5842
|
}, {
|
|
5846
5843
|
default: withCtx(({ select, option: option2, index: index2, highlightIndex, isSelected }) => [
|
|
5847
|
-
createVNode(_sfc_main$
|
|
5844
|
+
createVNode(_sfc_main$J, {
|
|
5848
5845
|
"is-highlighted": index2 === highlightIndex,
|
|
5849
5846
|
"is-selected": isSelected(option2),
|
|
5850
5847
|
class: normalizeClass({
|
|
@@ -12341,8 +12338,8 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
12341
12338
|
clUiNotification: _sfc_main$1e,
|
|
12342
12339
|
clUiRadio: _sfc_main$9,
|
|
12343
12340
|
clUiRadioGroup: _sfc_main$8,
|
|
12344
|
-
clUiSelect: _sfc_main$
|
|
12345
|
-
clUiSelectOption: _sfc_main$
|
|
12341
|
+
clUiSelect: _sfc_main$I,
|
|
12342
|
+
clUiSelectOption: _sfc_main$J,
|
|
12346
12343
|
clUiTab: _sfc_main$f,
|
|
12347
12344
|
clUiTabContent: _sfc_main$d,
|
|
12348
12345
|
clUiTabHeader: _sfc_main$e,
|
|
@@ -12440,8 +12437,8 @@ export {
|
|
|
12440
12437
|
_sfc_main$1e as clUiNotification,
|
|
12441
12438
|
_sfc_main$9 as clUiRadio,
|
|
12442
12439
|
_sfc_main$8 as clUiRadioGroup,
|
|
12443
|
-
_sfc_main$
|
|
12444
|
-
_sfc_main$
|
|
12440
|
+
_sfc_main$I as clUiSelect,
|
|
12441
|
+
_sfc_main$J as clUiSelectOption,
|
|
12445
12442
|
_sfc_main$f as clUiTab,
|
|
12446
12443
|
_sfc_main$d as clUiTabContent,
|
|
12447
12444
|
_sfc_main$e as clUiTabHeader,
|