@gemafajarramadhan/dynamic-ui 1.1.25 → 1.1.26
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/dynamic-ui.css +1 -1
- package/dist/dynamic-ui.es.js +17 -20
- package/dist/dynamic-ui.umd.js +178 -178
- package/dist/index.d.ts +3 -55
- package/package.json +1 -1
- package/src/index.d.ts +3 -55
package/dist/dynamic-ui.es.js
CHANGED
|
@@ -48862,10 +48862,10 @@ const BN = {
|
|
|
48862
48862
|
class: "h-4 w-32 rounded bg-gray-200 dark:bg-gray-700 animate-pulse"
|
|
48863
48863
|
}, ON = {
|
|
48864
48864
|
key: 0,
|
|
48865
|
-
class: "
|
|
48866
|
-
}, TN = ["disabled", "onClick"], VN = { class: "
|
|
48865
|
+
class: "ml-1 text-destructive"
|
|
48866
|
+
}, TN = ["disabled", "onClick"], VN = { class: "flex-shrink-0 px-2 text-sm text-muted-foreground select-none whitespace-nowrap" }, HN = ["id", "value", "placeholder", "disabled", "onClick", "onFocus", "onBlur", "onInput", "onKeydown", "onKeypress", "onPaste"], $N = { class: "h-full p-2 flex flex-col gap-3 w-32" }, jN = { class: "flex items-center justify-end gap-2 w-full p-2" }, FN = {
|
|
48867
48867
|
key: 1,
|
|
48868
|
-
class: "
|
|
48868
|
+
class: "text-xs text-destructive"
|
|
48869
48869
|
}, dO = /* @__PURE__ */ W({
|
|
48870
48870
|
name: "DCodeDatePicker",
|
|
48871
48871
|
inheritAttrs: !1,
|
|
@@ -48970,7 +48970,7 @@ const BN = {
|
|
|
48970
48970
|
}), (re = w.value) == null || re.openMenu();
|
|
48971
48971
|
};
|
|
48972
48972
|
return (R, G) => (m(), z("div", {
|
|
48973
|
-
class: de(["
|
|
48973
|
+
class: de(["flex flex-col gap-1 w-full", f(a).class])
|
|
48974
48974
|
}, [
|
|
48975
48975
|
t.skeleton ? (m(), z(xe, { key: 0 }, [
|
|
48976
48976
|
t.label ? (m(), z("div", BN)) : K("", !0),
|
|
@@ -48979,7 +48979,7 @@ const BN = {
|
|
|
48979
48979
|
t.label ? (m(), $(f(E1), {
|
|
48980
48980
|
key: 0,
|
|
48981
48981
|
for: i.value,
|
|
48982
|
-
class: "
|
|
48982
|
+
class: "text-sm font-medium"
|
|
48983
48983
|
}, {
|
|
48984
48984
|
default: P(() => [
|
|
48985
48985
|
ue(Y(t.label) + " ", 1),
|
|
@@ -49022,24 +49022,24 @@ const BN = {
|
|
|
49022
49022
|
}, MD({
|
|
49023
49023
|
"dp-input": P(({ value: ae, onInput: N, onEnter: X, onTab: ee, onBlur: ce, onFocus: V, onKeypress: j, onPaste: re, toggleMenu: ge }) => [
|
|
49024
49024
|
q("div", {
|
|
49025
|
-
class: de(["
|
|
49026
|
-
c.value ? "
|
|
49027
|
-
t.disabled ? "
|
|
49025
|
+
class: de(["flex items-center w-full h-10 rounded-lg border bg-white dark:bg-neutral-900 border-gray-300 dark:border-gray-700 overflow-hidden", [
|
|
49026
|
+
c.value ? "border-destructive" : "",
|
|
49027
|
+
t.disabled ? "opacity-50 cursor-not-allowed" : ""
|
|
49028
49028
|
]])
|
|
49029
49029
|
}, [
|
|
49030
49030
|
q("button", {
|
|
49031
49031
|
type: "button",
|
|
49032
49032
|
tabindex: "-1",
|
|
49033
49033
|
disabled: t.disabled,
|
|
49034
|
-
class: "
|
|
49034
|
+
class: "flex-shrink-0 flex items-center justify-center w-10 h-full text-muted-foreground hover:text-foreground transition-colors focus:outline-none",
|
|
49035
49035
|
onClick: (ke) => ge()
|
|
49036
49036
|
}, [
|
|
49037
|
-
F(f(cl), { class: "
|
|
49037
|
+
F(f(cl), { class: "w-4 h-4 pointer-events-none" })
|
|
49038
49038
|
], 8, TN),
|
|
49039
|
-
G[4] || (G[4] = q("span", { class: "
|
|
49039
|
+
G[4] || (G[4] = q("span", { class: "w-px h-5 bg-gray-200 dark:bg-gray-700 flex-shrink-0" }, null, -1)),
|
|
49040
49040
|
t.prependInner ? (m(), z(xe, { key: 0 }, [
|
|
49041
49041
|
q("span", VN, Y(t.prependInner), 1),
|
|
49042
|
-
G[3] || (G[3] = q("span", { class: "
|
|
49042
|
+
G[3] || (G[3] = q("span", { class: "w-px h-5 bg-gray-200 dark:bg-gray-700 flex-shrink-0" }, null, -1))
|
|
49043
49043
|
], 64)) : K("", !0),
|
|
49044
49044
|
q("input", {
|
|
49045
49045
|
id: i.value,
|
|
@@ -49048,7 +49048,7 @@ const BN = {
|
|
|
49048
49048
|
disabled: t.disabled,
|
|
49049
49049
|
autocomplete: "off",
|
|
49050
49050
|
readonly: "",
|
|
49051
|
-
class: de(["
|
|
49051
|
+
class: de(["flex-1 min-w-0 px-3 h-full bg-transparent text-sm text-foreground dark:text-gray-300 placeholder:text-muted-foreground outline-none", t.disabled ? "cursor-not-allowed" : "cursor-pointer"]),
|
|
49052
49052
|
onClick: (ke) => ge(),
|
|
49053
49053
|
onFocus: (ke) => V(),
|
|
49054
49054
|
onBlur: (ke) => ce(),
|
|
@@ -49100,7 +49100,7 @@ const BN = {
|
|
|
49100
49100
|
key: ae.label,
|
|
49101
49101
|
type: "button",
|
|
49102
49102
|
variant: "default",
|
|
49103
|
-
class: "
|
|
49103
|
+
class: "w-full",
|
|
49104
49104
|
onClick: (N) => T(ae.range)
|
|
49105
49105
|
}, {
|
|
49106
49106
|
default: P(() => [
|
|
@@ -51313,10 +51313,10 @@ const IG = { class: "space-y-3" }, SG = {
|
|
|
51313
51313
|
class: "absolute inset-y-0 left-4 flex items-center text-muted-foreground"
|
|
51314
51314
|
}, rY = { key: 1 }, iY = {
|
|
51315
51315
|
key: 1,
|
|
51316
|
-
class: "absolute inset-y-0 right-
|
|
51316
|
+
class: "absolute inset-y-0 right-4 flex items-center"
|
|
51317
51317
|
}, sY = {
|
|
51318
51318
|
key: 2,
|
|
51319
|
-
class: "absolute inset-y-0 right-
|
|
51319
|
+
class: "absolute inset-y-0 right-4 flex items-center"
|
|
51320
51320
|
}, lY = {
|
|
51321
51321
|
key: 3,
|
|
51322
51322
|
class: "absolute top-full right-0 z-10 text-[11px] text-gray-500 dark:text-gray-400 opacity-0 transition-opacity pointer-events-none group-focus-within:opacity-100"
|
|
@@ -51363,7 +51363,6 @@ const IG = { class: "space-y-3" }, SG = {
|
|
|
51363
51363
|
label: E,
|
|
51364
51364
|
class: oe,
|
|
51365
51365
|
id: fe,
|
|
51366
|
-
// ✅ stop native required validation (Zod yang handle)
|
|
51367
51366
|
required: Pe,
|
|
51368
51367
|
"aria-required": rt,
|
|
51369
51368
|
...Ve
|
|
@@ -64592,9 +64591,7 @@ const loe = { class: "w-full" }, coe = { class: "relative mx-auto min-h-[37.5rem
|
|
|
64592
64591
|
]));
|
|
64593
64592
|
}
|
|
64594
64593
|
}), Moe = bA(koe), xoe = bA(boe), woe = bA(tq);
|
|
64595
|
-
customElements.define("micro-dynamic-form", Moe);
|
|
64596
|
-
customElements.define("micro-dynamic-datatable", xoe);
|
|
64597
|
-
customElements.define("micro-data-table", woe);
|
|
64594
|
+
typeof customElements < "u" && (customElements.get("micro-dynamic-form") || customElements.define("micro-dynamic-form", Moe), customElements.get("micro-dynamic-datatable") || customElements.define("micro-dynamic-datatable", xoe), customElements.get("micro-data-table") || customElements.define("micro-data-table", woe));
|
|
64598
64595
|
const Coe = [
|
|
64599
64596
|
tq,
|
|
64600
64597
|
aO,
|