@septkit/ui 0.0.75 → 0.0.77
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/dialecte/composables/use-live-data.js +2 -1
- package/dist/dialecte/create-document-store.js +4 -4
- package/dist/dropdown/multi-select.vue_vue_type_script_setup_true_lang.js +64 -48
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/dialecte-gIPrRzni.js +4415 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers-DVShv41E.js +179 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/helpers.js +3 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/index.js +5 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/project-key-Ch34EtFa.js +1370 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/rolldown-runtime-CYdcPHCu.js +13 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/running-operations-vnijBvn7.js +61 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/same-json-value-C6kUaoyt.js +1543 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/utils-USNkj4sT.js +962 -0
- package/dist/external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/utils.js +2 -0
- package/dist/external/.pnpm/{@dialecte_scl@0.8.1/node_modules/@dialecte/scl/dist/hooks-C05NpRNi.js → @dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10/node_modules/@dialecte/scl/dist/hooks-F61-rgXT.js} +974 -242
- package/dist/external/.pnpm/{@dialecte_scl@0.8.1 → @dialecte_scl@0.11.0_libxml2-wasm@0.7.2_vitest@4.1.10}/node_modules/@dialecte/scl/dist/v2019C1/index.js +4 -4
- package/dist/index.d.ts +1 -0
- package/dist/index.js +10 -10
- package/dist/merge/check-files/identity-warning.js +1 -1
- package/dist/merge/confirm/outcome.js +4 -3
- package/dist/merge/match/match.js +6 -7
- package/dist/merge/session/merge.service.js +2 -2
- package/dist/merge/session/use-merge-session.js +2 -0
- package/dist/merge/wording.js +6 -7
- package/dist/ui.css +1 -1
- package/package.json +3 -3
- package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/helpers.js +0 -229
- package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/index.js +0 -3
- package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/project-sK-5Xc-5.js +0 -7371
- package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/utils-CTBHUFs9.js +0 -440
- package/dist/external/.pnpm/@dialecte_core@0.6.1/node_modules/@dialecte/core/dist/utils.js +0 -2
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import "../external/.pnpm/@dialecte_core@0.
|
|
3
|
-
import {
|
|
4
|
-
import "../external/.pnpm/@dialecte_core@0.
|
|
1
|
+
import { f as e } from "../external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/utils-USNkj4sT.js";
|
|
2
|
+
import "../external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/utils.js";
|
|
3
|
+
import { V as t } from "../external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/dialecte-gIPrRzni.js";
|
|
4
|
+
import "../external/.pnpm/@dialecte_core@0.8.0/node_modules/@dialecte/core/dist/index.js";
|
|
5
5
|
import { computed as n, shallowRef as r } from "vue";
|
|
6
6
|
//#region lib/dialecte/create-document-store.ts
|
|
7
7
|
function i(i) {
|
|
@@ -10,11 +10,17 @@ import { ComboboxTrigger_default as c } from "../external/.pnpm/reka-ui@2.10.1_v
|
|
|
10
10
|
import { ComboboxViewport_default as l } from "../external/.pnpm/reka-ui@2.10.1_vue@3.5.39_typescript@5.8.3_/node_modules/reka-ui/dist/Combobox/ComboboxViewport.js";
|
|
11
11
|
import u from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/check.js";
|
|
12
12
|
import d from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/chevron-down.js";
|
|
13
|
-
import
|
|
13
|
+
import f from "../external/.pnpm/@lucide_vue@1.23.0_vue@3.5.39_typescript@5.8.3_/node_modules/@lucide/vue/dist/esm/icons/info.js";
|
|
14
|
+
import p from "../tooltip/floating-tooltip.js";
|
|
15
|
+
import "../tooltip/index.js";
|
|
16
|
+
import { Fragment as m, computed as h, createBlock as g, createCommentVNode as _, createElementBlock as v, createElementVNode as y, createTextVNode as b, createVNode as x, defineComponent as S, mergeModels as C, normalizeClass as w, openBlock as T, renderList as E, toDisplayString as D, unref as O, useModel as k, withCtx as A } from "vue";
|
|
14
17
|
//#region lib/dropdown/multi-select.vue?vue&type=script&setup=true&lang.ts
|
|
15
|
-
var
|
|
18
|
+
var j = { class: "text-xs flex-1 min-w-0 truncate" }, M = {
|
|
19
|
+
"data-testid": "multi-select-option-info",
|
|
20
|
+
class: "shrink-0 inline-flex opacity-60 hover:opacity-100"
|
|
21
|
+
}, N = /*@__PURE__*/ S({
|
|
16
22
|
__name: "multi-select",
|
|
17
|
-
props: /*@__PURE__*/
|
|
23
|
+
props: /*@__PURE__*/ C({
|
|
18
24
|
options: {},
|
|
19
25
|
placeholder: {},
|
|
20
26
|
emptyText: {},
|
|
@@ -33,53 +39,53 @@ var O = { class: "text-xs" }, k = /*@__PURE__*/ y({
|
|
|
33
39
|
openModifiers: {}
|
|
34
40
|
}),
|
|
35
41
|
emits: ["update:modelValue", "update:open"],
|
|
36
|
-
setup(
|
|
37
|
-
let
|
|
38
|
-
"input-neutral":
|
|
39
|
-
"input-primary":
|
|
40
|
-
"input-secondary":
|
|
41
|
-
"input-accent":
|
|
42
|
-
"input-info":
|
|
43
|
-
"input-success":
|
|
44
|
-
"input-warning":
|
|
45
|
-
"input-error":
|
|
46
|
-
"input-ghost":
|
|
47
|
-
"input-bordered":
|
|
48
|
-
"input-soft":
|
|
49
|
-
"input-dash":
|
|
50
|
-
"input-xs":
|
|
51
|
-
"input-sm":
|
|
52
|
-
"input-md":
|
|
53
|
-
"input-lg":
|
|
54
|
-
"input-xl":
|
|
55
|
-
})),
|
|
56
|
-
let e =
|
|
57
|
-
return e.length ? e.join(
|
|
42
|
+
setup(S) {
|
|
43
|
+
let C = S, N = k(S, "modelValue"), P = k(S, "open"), F = h(() => ({
|
|
44
|
+
"input-neutral": C.color === "neutral",
|
|
45
|
+
"input-primary": C.color === "primary",
|
|
46
|
+
"input-secondary": C.color === "secondary",
|
|
47
|
+
"input-accent": C.color === "accent",
|
|
48
|
+
"input-info": C.color === "info",
|
|
49
|
+
"input-success": C.color === "success",
|
|
50
|
+
"input-warning": C.color === "warning",
|
|
51
|
+
"input-error": C.color === "error",
|
|
52
|
+
"input-ghost": C.variant === "ghost",
|
|
53
|
+
"input-bordered": C.variant === "bordered",
|
|
54
|
+
"input-soft": C.variant === "soft",
|
|
55
|
+
"input-dash": C.variant === "dash",
|
|
56
|
+
"input-xs": C.size === "xs",
|
|
57
|
+
"input-sm": C.size === "sm",
|
|
58
|
+
"input-md": C.size === "md",
|
|
59
|
+
"input-lg": C.size === "lg",
|
|
60
|
+
"input-xl": C.size === "xl"
|
|
61
|
+
})), I = h(() => new Map(C.options.map((e) => [e.value, e.label]))), L = h(() => {
|
|
62
|
+
let e = N.value.map((e) => I.value.get(e) ?? e);
|
|
63
|
+
return e.length ? e.join(C.separator) : C.placeholder ?? "Select...";
|
|
58
64
|
});
|
|
59
|
-
function
|
|
65
|
+
function R(e, t) {
|
|
60
66
|
return e.filter((e) => e.label.toLowerCase().includes(t.toLowerCase()));
|
|
61
67
|
}
|
|
62
|
-
return (
|
|
68
|
+
return (h, C) => (T(), g(O(e), {
|
|
63
69
|
class: "dropdown w-full",
|
|
64
|
-
modelValue:
|
|
65
|
-
"onUpdate:modelValue":
|
|
66
|
-
open:
|
|
67
|
-
"onUpdate:open":
|
|
70
|
+
modelValue: N.value,
|
|
71
|
+
"onUpdate:modelValue": C[0] ||= (e) => N.value = e,
|
|
72
|
+
open: P.value,
|
|
73
|
+
"onUpdate:open": C[1] ||= (e) => P.value = e,
|
|
68
74
|
multiple: "",
|
|
69
|
-
"filter-function":
|
|
70
|
-
disabled:
|
|
75
|
+
"filter-function": R,
|
|
76
|
+
disabled: S.disabled
|
|
71
77
|
}, {
|
|
72
|
-
default:
|
|
73
|
-
default:
|
|
78
|
+
default: A(() => [x(O(t), { class: w(["input w-full flex items-center gap-2", F.value]) }, {
|
|
79
|
+
default: A(() => [x(O(c), {
|
|
74
80
|
"data-testid": "multi-select-trigger",
|
|
75
81
|
class: "flex items-center gap-2 w-full"
|
|
76
82
|
}, {
|
|
77
|
-
default:
|
|
83
|
+
default: A(() => [y("span", { class: w(["flex-1 min-w-0 truncate text-left text-xs", { "text-base-content/60": !N.value.length }]) }, D(L.value), 3), x(O(d), { class: "h-4 w-4 text-base-content/60 shrink-0" })]),
|
|
78
84
|
_: 1
|
|
79
85
|
})]),
|
|
80
86
|
_: 1
|
|
81
|
-
}, 8, ["class"]),
|
|
82
|
-
default:
|
|
87
|
+
}, 8, ["class"]), x(O(s), null, {
|
|
88
|
+
default: A(() => [x(O(n), {
|
|
83
89
|
"data-testid": "multi-select-panel",
|
|
84
90
|
position: "popper",
|
|
85
91
|
"side-offset": 4,
|
|
@@ -89,24 +95,34 @@ var O = { class: "text-xs" }, k = /*@__PURE__*/ y({
|
|
|
89
95
|
minWidth: "12rem"
|
|
90
96
|
}
|
|
91
97
|
}, {
|
|
92
|
-
default:
|
|
98
|
+
default: A(() => [x(O(i), {
|
|
93
99
|
class: "input input-ghost outline-none w-full text-xs",
|
|
94
100
|
placeholder: "Search..."
|
|
95
|
-
}),
|
|
96
|
-
default:
|
|
97
|
-
default:
|
|
101
|
+
}), x(O(l), { class: "max-h-52 overflow-y-auto p-1" }, {
|
|
102
|
+
default: A(() => [x(O(r), { class: "text-base-content/60 text-xs text-center py-2" }, {
|
|
103
|
+
default: A(() => [b(D(S.emptyText ?? "No results found"), 1)]),
|
|
98
104
|
_: 1
|
|
99
|
-
}), (
|
|
105
|
+
}), (T(!0), v(m, null, E(S.options, (e) => (T(), g(O(a), {
|
|
100
106
|
key: e.value,
|
|
101
107
|
"data-testid": "multi-select-option",
|
|
102
108
|
value: e.value,
|
|
103
109
|
"text-value": e.label,
|
|
104
110
|
class: "cursor-pointer text-xs leading-none w-full flex items-center gap-2 rounded px-2 h-7 pl-7 relative select-none data-disabled:opacity-40 data-disabled:pointer-events-none data-highlighted:outline-none data-highlighted:bg-primary data-highlighted:text-primary-content"
|
|
105
111
|
}, {
|
|
106
|
-
default:
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
112
|
+
default: A(() => [
|
|
113
|
+
x(O(o), { class: "absolute left-0 w-6.25 inline-flex items-center justify-center" }, {
|
|
114
|
+
default: A(() => [x(O(u), { class: "h-3 w-3" })]),
|
|
115
|
+
_: 1
|
|
116
|
+
}),
|
|
117
|
+
y("span", j, D(e.label), 1),
|
|
118
|
+
e.title ? (T(), g(O(p), {
|
|
119
|
+
key: 0,
|
|
120
|
+
content: e.title
|
|
121
|
+
}, {
|
|
122
|
+
default: A(() => [y("span", M, [x(O(f), { class: "h-3 w-3" })])]),
|
|
123
|
+
_: 1
|
|
124
|
+
}, 8, ["content"])) : _("", !0)
|
|
125
|
+
]),
|
|
110
126
|
_: 2
|
|
111
127
|
}, 1032, ["value", "text-value"]))), 128))]),
|
|
112
128
|
_: 1
|
|
@@ -124,4 +140,4 @@ var O = { class: "text-xs" }, k = /*@__PURE__*/ y({
|
|
|
124
140
|
}
|
|
125
141
|
});
|
|
126
142
|
//#endregion
|
|
127
|
-
export {
|
|
143
|
+
export { N as default };
|