@aures5g/vue-component-library 3.26.0 → 3.41.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/TableSelectionCheckbox-Bd72Q-xQ.js +36 -0
- package/dist/TableSelectionFilter-DoENxTY_.js +61 -0
- package/dist/UICheckbox-CO51kllT.js +77 -0
- package/dist/UIMenu-DSRikXGe.js +1683 -0
- package/dist/src/components/datePicker/CalendarMenuDropdown.vue.d.ts +21 -0
- package/dist/src/components/datePicker/CalendarMenuDropdownList.vue.d.ts +18 -0
- package/dist/src/components/datePicker/UIDatePicker.vue.d.ts +16 -0
- package/dist/src/components/dropdown/UIDropdown.vue.d.ts +5 -4
- package/dist/src/components/iconButton/UIIconButton.vue.d.ts +1 -1
- package/dist/src/components/labelValueList/UILabelSubValue.vue.d.ts +18 -0
- package/dist/src/components/labelValueList/UILabelSubValueList.vue.d.ts +13 -0
- package/dist/src/components/menu/UIMenu.vue.d.ts +16 -1
- package/dist/src/components/segmentedButton/SegmentedButtonCore.vue.d.ts +1 -1
- package/dist/src/components/slider/UISlider.vue.d.ts +14 -0
- package/dist/src/components/table/TableHeaderCell.vue.d.ts +1 -1
- package/dist/src/components/table/TableHeaderRow.vue.d.ts +1 -1
- package/dist/src/components/table/TableSelectionCheckbox.vue.d.ts +1 -1
- package/dist/src/components/table/UITable.vue.d.ts +15 -3
- package/dist/src/components/table/UITableCard.vue.d.ts +3 -3
- package/dist/src/components/table/uiTable.types.d.ts +2 -2
- package/dist/src/components/table/uiTable.utils.d.ts +3 -4
- package/dist/src/components/tag/UITag.vue.d.ts +1 -1
- package/dist/src/config/acbs.d.ts +10 -7
- package/dist/src/index.d.ts +5 -1
- package/dist/src/utils/array.d.ts +1 -0
- package/dist/vue-component-library.css +3 -1
- package/dist/vue-component-library.js +9242 -7488
- package/dist/vue-component-library.umd.cjs +68 -77
- package/package.json +55 -44
- package/dist/TableSelectionCheckbox-SJcj9lTW.js +0 -42
- package/dist/TableSelectionFilter-DMPQAER-.js +0 -70
- package/dist/UIBadge-CC6Xl4yz.js +0 -4
- package/dist/UITag-D-L9r4Bf.js +0 -4
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import { t as e } from "./UICheckbox-CO51kllT.js";
|
|
2
|
+
import { computed as t, createBlock as n, defineComponent as r, mergeModels as i, openBlock as a, useModel as o, withModifiers as s } from "vue";
|
|
3
|
+
//#endregion
|
|
4
|
+
//#region src/components/table/TableSelectionCheckbox.vue
|
|
5
|
+
var c = /* @__PURE__ */ r({
|
|
6
|
+
__name: "TableSelectionCheckbox",
|
|
7
|
+
props: /*@__PURE__*/ i({ value: {} }, {
|
|
8
|
+
modelValue: { required: !0 },
|
|
9
|
+
modelModifiers: {}
|
|
10
|
+
}),
|
|
11
|
+
emits: ["update:modelValue"],
|
|
12
|
+
setup(r) {
|
|
13
|
+
let i = o(r, "modelValue"), c = t({
|
|
14
|
+
get() {
|
|
15
|
+
return i.value === "all" || i.value;
|
|
16
|
+
},
|
|
17
|
+
set(e) {
|
|
18
|
+
Array.isArray(e) && (i.value = e);
|
|
19
|
+
}
|
|
20
|
+
}), l = t(() => i.value === "all");
|
|
21
|
+
return (t, i) => (a(), n(e, {
|
|
22
|
+
modelValue: c.value,
|
|
23
|
+
"onUpdate:modelValue": i[0] ||= (e) => c.value = e,
|
|
24
|
+
value: r.value,
|
|
25
|
+
disabled: l.value,
|
|
26
|
+
onClick: i[1] ||= s(() => {}, ["stop"]),
|
|
27
|
+
onDblclick: i[2] ||= s(() => {}, ["stop"])
|
|
28
|
+
}, null, 8, [
|
|
29
|
+
"modelValue",
|
|
30
|
+
"value",
|
|
31
|
+
"disabled"
|
|
32
|
+
]));
|
|
33
|
+
}
|
|
34
|
+
});
|
|
35
|
+
//#endregion
|
|
36
|
+
export { c as default };
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { n as e, o as t, t as n } from "./UIMenu-DSRikXGe.js";
|
|
2
|
+
import { computed as r, createBlock as i, createCommentVNode as a, createElementBlock as o, createVNode as s, defineComponent as c, mergeModels as l, openBlock as u, ref as d, unref as f, useModel as p, watch as m } from "vue";
|
|
3
|
+
import { faChevronDown as h } from "@awesome.me/kit-bccbe657bb/icons/sharp/solid";
|
|
4
|
+
//#region src/components/table/TableSelectionFilter.vue?vue&type=script&setup=true&lang.ts
|
|
5
|
+
var g = { class: "flex justify-center" }, _ = /* @__PURE__ */ c({
|
|
6
|
+
__name: "TableSelectionFilter",
|
|
7
|
+
props: /*@__PURE__*/ l({
|
|
8
|
+
dataKey: {},
|
|
9
|
+
items: {}
|
|
10
|
+
}, {
|
|
11
|
+
selection: {},
|
|
12
|
+
selectionModifiers: {}
|
|
13
|
+
}),
|
|
14
|
+
emits: ["update:selection"],
|
|
15
|
+
setup(c) {
|
|
16
|
+
let l = c, _ = p(c, "selection"), v = t();
|
|
17
|
+
function y() {
|
|
18
|
+
_.value = [];
|
|
19
|
+
}
|
|
20
|
+
function b() {
|
|
21
|
+
_.value = "all";
|
|
22
|
+
}
|
|
23
|
+
let x = d(null), S = d(!1);
|
|
24
|
+
m(x, (e) => {
|
|
25
|
+
e && (e === "reset" ? y() : e === "check-all" ? _.value = l.items.reduce((e, t) => (t[l.dataKey] && e.push(t[l.dataKey]), e), []) : e === "check-filtered" && b(), S.value = !1, x.value = null);
|
|
26
|
+
});
|
|
27
|
+
function C() {
|
|
28
|
+
S.value = !S.value;
|
|
29
|
+
}
|
|
30
|
+
let w = r(() => [
|
|
31
|
+
{
|
|
32
|
+
value: "check-filtered",
|
|
33
|
+
label: f(v.locale?.tableCheckFiltered) || "tableCheckFiltered"
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
value: "check-all",
|
|
37
|
+
label: f(v.locale?.tableCheckAll) || "tableCheckAll"
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
value: "reset",
|
|
41
|
+
label: f(v.locale?.tableCheckReset) || "tableCheckReset"
|
|
42
|
+
}
|
|
43
|
+
]);
|
|
44
|
+
return (t, r) => (u(), o("div", g, [s(e, {
|
|
45
|
+
color: "standard",
|
|
46
|
+
icon: f(h),
|
|
47
|
+
size: "32x32",
|
|
48
|
+
class: "[anchor-name:--checkbox-filter]",
|
|
49
|
+
onClick: C
|
|
50
|
+
}, null, 8, ["icon"]), S.value ? (u(), i(n, {
|
|
51
|
+
key: 0,
|
|
52
|
+
modelValue: x.value,
|
|
53
|
+
"onUpdate:modelValue": r[0] ||= (e) => x.value = e,
|
|
54
|
+
items: w.value,
|
|
55
|
+
class: "[position-anchor:--checkbox-filter] absolute top-[anchor(top)] left-[calc(anchor(right)+0.31rem)] z-5",
|
|
56
|
+
size: "small"
|
|
57
|
+
}, null, 8, ["modelValue", "items"])) : a("", !0)]));
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
//#endregion
|
|
61
|
+
export { _ as default };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { createBlock as e, createCommentVNode as t, createElementBlock as n, createElementVNode as r, createVNode as i, defineComponent as a, mergeModels as o, mergeProps as s, normalizeClass as c, openBlock as l, toDisplayString as u, unref as d, useAttrs as f, useId as p, useModel as m, vModelDynamic as h, withDirectives as g } from "vue";
|
|
2
|
+
import { FontAwesomeIcon as _ } from "@fortawesome/vue-fontawesome";
|
|
3
|
+
import { faSquareCheck as v, faSquareMinus as y } from "@awesome.me/kit-bccbe657bb/icons/sharp/solid";
|
|
4
|
+
import { faSquare as b } from "@awesome.me/kit-bccbe657bb/icons/sharp/regular";
|
|
5
|
+
//#region src/components/checkboxRadioShared/CheckboxRadioShared.vue?vue&type=script&setup=true&lang.ts
|
|
6
|
+
var x = { class: "inline-flex items-center text-on-surface" }, S = { class: "relative size-[1.5rem] text-[1.25rem] flex items-center justify-center has-checked:has-enabled:text-primary has-indeterminate:has-enabled:text-primary" }, C = ["id"], w = ["for"], T = /* @__PURE__ */ a({
|
|
7
|
+
inheritAttrs: !1,
|
|
8
|
+
__name: "CheckboxRadioShared",
|
|
9
|
+
props: /*@__PURE__*/ o({
|
|
10
|
+
label: { default: "" },
|
|
11
|
+
isLabelLeft: {
|
|
12
|
+
type: Boolean,
|
|
13
|
+
default: !1
|
|
14
|
+
},
|
|
15
|
+
size: { default: "24x24" },
|
|
16
|
+
uncheckedIcon: {},
|
|
17
|
+
checkedIcon: {},
|
|
18
|
+
indeterminateIcon: { default: void 0 }
|
|
19
|
+
}, {
|
|
20
|
+
modelValue: {},
|
|
21
|
+
modelModifiers: {}
|
|
22
|
+
}),
|
|
23
|
+
emits: ["update:modelValue"],
|
|
24
|
+
setup(a) {
|
|
25
|
+
let o = a, v = f(), y = p(), b = m(a, "modelValue");
|
|
26
|
+
return (f, p) => (l(), n("div", x, [r("div", { class: c([{ "size-[3rem]": o.size === "48x48" }, "inline-flex items-center justify-center"]) }, [r("div", { class: c([o.size === "24x24" ? "p-[0.25rem]" : "p-[0.5rem]", "hover:has-checked:bg-primary/8 hover:bg-on-surface/8 rounded-full"]) }, [r("div", S, [
|
|
27
|
+
g(r("input", s({
|
|
28
|
+
id: d(y),
|
|
29
|
+
"onUpdate:modelValue": p[0] ||= (e) => b.value = e,
|
|
30
|
+
class: "peer appearance-none size-full absolute left-0 top-0 enabled:cursor-pointer"
|
|
31
|
+
}, d(v)), null, 16, C), [[h, b.value]]),
|
|
32
|
+
i(d(_), {
|
|
33
|
+
class: "not-peer-indeterminate:peer-checked:[--fa-display:inline-block] [--fa-display:none]",
|
|
34
|
+
icon: a.checkedIcon
|
|
35
|
+
}, null, 8, ["icon"]),
|
|
36
|
+
i(d(_), {
|
|
37
|
+
class: c(["[--fa-display:none]", a.indeterminateIcon ? "not-peer-indeterminate:not-peer-checked:[--fa-display:inline-block]" : "not-peer-checked:[--fa-display:inline-block]"]),
|
|
38
|
+
icon: a.uncheckedIcon
|
|
39
|
+
}, null, 8, ["class", "icon"]),
|
|
40
|
+
a.indeterminateIcon ? (l(), e(d(_), {
|
|
41
|
+
key: 0,
|
|
42
|
+
class: "peer-indeterminate:[--fa-display:inline-block] [--fa-display:none]",
|
|
43
|
+
icon: a.indeterminateIcon
|
|
44
|
+
}, null, 8, ["icon"])) : t("", !0)
|
|
45
|
+
])], 2)], 2), r("label", {
|
|
46
|
+
for: d(y),
|
|
47
|
+
class: c(["mb-0 text-label-large", {
|
|
48
|
+
"order-first": o.isLabelLeft,
|
|
49
|
+
"text-on-surface/38": d(v).disabled,
|
|
50
|
+
"cursor-pointer": !d(v).disabled
|
|
51
|
+
}])
|
|
52
|
+
}, u(a.label), 11, w)]));
|
|
53
|
+
}
|
|
54
|
+
}), E = /* @__PURE__ */ a({
|
|
55
|
+
inheritAttrs: !1,
|
|
56
|
+
__name: "UICheckbox",
|
|
57
|
+
props: {
|
|
58
|
+
label: { default: "" },
|
|
59
|
+
isLabelLeft: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: !1
|
|
62
|
+
},
|
|
63
|
+
size: { default: "24x24" },
|
|
64
|
+
checkedIcon: { default: () => v },
|
|
65
|
+
uncheckedIcon: { default: () => b },
|
|
66
|
+
indeterminateIcon: { default: () => y }
|
|
67
|
+
},
|
|
68
|
+
setup(t) {
|
|
69
|
+
let n = t, r = f();
|
|
70
|
+
return (t, i) => (l(), e(T, s({ type: "checkbox" }, {
|
|
71
|
+
...d(r),
|
|
72
|
+
...n
|
|
73
|
+
}), null, 16));
|
|
74
|
+
}
|
|
75
|
+
});
|
|
76
|
+
//#endregion
|
|
77
|
+
export { T as n, E as t };
|