@citruslime/ui 4.1.0-beta.20 → 4.1.0-beta.21
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 +40 -42
- 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
|
},
|
|
@@ -4922,7 +4949,6 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
4922
4949
|
});
|
|
4923
4950
|
return (_ctx, _cache) => {
|
|
4924
4951
|
const _component_icon = resolveComponent("icon");
|
|
4925
|
-
const _component_cl_ui_select_option = resolveComponent("cl-ui-select-option");
|
|
4926
4952
|
return openBlock(), createElementBlock("div", {
|
|
4927
4953
|
ref_key: "outsideRef",
|
|
4928
4954
|
ref: outsideRef,
|
|
@@ -5024,7 +5050,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
5024
5050
|
displayList.value.length > 0 ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(displayList.value, (option2, index2) => {
|
|
5025
5051
|
return openBlock(), createElementBlock("div", { key: index2 }, [
|
|
5026
5052
|
renderSlot(_ctx.$slots, "default", mergeProps({ ref_for: true }, { option: option2, index: index2, select: handleMouseClick, highlightIndex: highlightIndex.value, isSelected }), () => [
|
|
5027
|
-
(openBlock(), createBlock(
|
|
5053
|
+
(openBlock(), createBlock(_sfc_main$J, {
|
|
5028
5054
|
id: unref(id) + "-option-" + (isSelectItem(option2) ? option2.id : index2),
|
|
5029
5055
|
key: index2,
|
|
5030
5056
|
disabled: _ctx.disabled,
|
|
@@ -5058,34 +5084,6 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
|
|
|
5058
5084
|
};
|
|
5059
5085
|
}
|
|
5060
5086
|
});
|
|
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
5087
|
const defaultFilterMethod = {
|
|
5090
5088
|
method: "equal",
|
|
5091
5089
|
icon: "mdi:equal",
|
|
@@ -5743,7 +5741,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
5743
5741
|
_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
5742
|
]])
|
|
5745
5743
|
}, [
|
|
5746
|
-
_ctx.column.type === "boolean" || _ctx.column.type === "slot" && _ctx.column.slotType === "boolean" ? (openBlock(), createBlock(_sfc_main$
|
|
5744
|
+
_ctx.column.type === "boolean" || _ctx.column.type === "slot" && _ctx.column.slotType === "boolean" ? (openBlock(), createBlock(_sfc_main$I, {
|
|
5747
5745
|
key: 0,
|
|
5748
5746
|
id: `${unref(gridId)}-${_ctx.column.name}`,
|
|
5749
5747
|
list: unref(booleanListEntries),
|
|
@@ -5754,7 +5752,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
5754
5752
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => setFilter(null, $event?.value ?? ""))
|
|
5755
5753
|
}, {
|
|
5756
5754
|
default: withCtx(({ select, option: option2, index: index2, highlightIndex, isSelected }) => [
|
|
5757
|
-
createVNode(_sfc_main$
|
|
5755
|
+
createVNode(_sfc_main$J, {
|
|
5758
5756
|
class: "cl:py-0! cl:text-xs",
|
|
5759
5757
|
"is-selected": isSelected(option2),
|
|
5760
5758
|
"is-highlighted": index2 === highlightIndex,
|
|
@@ -5829,7 +5827,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
5829
5827
|
])]),
|
|
5830
5828
|
_: 1
|
|
5831
5829
|
}, 8, ["id", "modelValue", "readonly"])
|
|
5832
|
-
])) : isListColumn.value ? (openBlock(), createBlock(_sfc_main$
|
|
5830
|
+
])) : isListColumn.value ? (openBlock(), createBlock(_sfc_main$I, {
|
|
5833
5831
|
key: 5,
|
|
5834
5832
|
id: `${unref(gridId)}-${_ctx.column.name}`,
|
|
5835
5833
|
list: listEntriesAsSelectItems.value,
|
|
@@ -5844,7 +5842,7 @@ const _sfc_main$G = /* @__PURE__ */ defineComponent({
|
|
|
5844
5842
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => updateListColumnSelectItems($event))
|
|
5845
5843
|
}, {
|
|
5846
5844
|
default: withCtx(({ select, option: option2, index: index2, highlightIndex, isSelected }) => [
|
|
5847
|
-
createVNode(_sfc_main$
|
|
5845
|
+
createVNode(_sfc_main$J, {
|
|
5848
5846
|
"is-highlighted": index2 === highlightIndex,
|
|
5849
5847
|
"is-selected": isSelected(option2),
|
|
5850
5848
|
class: normalizeClass({
|
|
@@ -12341,8 +12339,8 @@ const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.definePr
|
|
|
12341
12339
|
clUiNotification: _sfc_main$1e,
|
|
12342
12340
|
clUiRadio: _sfc_main$9,
|
|
12343
12341
|
clUiRadioGroup: _sfc_main$8,
|
|
12344
|
-
clUiSelect: _sfc_main$
|
|
12345
|
-
clUiSelectOption: _sfc_main$
|
|
12342
|
+
clUiSelect: _sfc_main$I,
|
|
12343
|
+
clUiSelectOption: _sfc_main$J,
|
|
12346
12344
|
clUiTab: _sfc_main$f,
|
|
12347
12345
|
clUiTabContent: _sfc_main$d,
|
|
12348
12346
|
clUiTabHeader: _sfc_main$e,
|
|
@@ -12440,8 +12438,8 @@ export {
|
|
|
12440
12438
|
_sfc_main$1e as clUiNotification,
|
|
12441
12439
|
_sfc_main$9 as clUiRadio,
|
|
12442
12440
|
_sfc_main$8 as clUiRadioGroup,
|
|
12443
|
-
_sfc_main$
|
|
12444
|
-
_sfc_main$
|
|
12441
|
+
_sfc_main$I as clUiSelect,
|
|
12442
|
+
_sfc_main$J as clUiSelectOption,
|
|
12445
12443
|
_sfc_main$f as clUiTab,
|
|
12446
12444
|
_sfc_main$d as clUiTabContent,
|
|
12447
12445
|
_sfc_main$e as clUiTabHeader,
|