@algorisys/zen-ui-solid 13.8.0 → 13.8.1
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/components/form/checkbox/checkbox.d.ts.map +1 -1
- package/dist/components/form/radio/radio-group.d.ts.map +1 -1
- package/dist/components/form/slider/slider.d.ts.map +1 -1
- package/dist/components/form/switch/switch.d.ts.map +1 -1
- package/dist/index208.js +13 -13
- package/dist/index209.js +2 -2
- package/dist/index210.js +5 -5
- package/dist/index211.js +12 -12
- package/dist/index212.js +13 -13
- package/dist/index213.js +10 -10
- package/dist/index214.js +10 -10
- package/dist/index215.js +9 -9
- package/dist/index216.js +9 -9
- package/dist/index218.js +14 -14
- package/dist/index219.js +14 -14
- package/dist/index220.js +13 -13
- package/dist/index221.js +1 -1
- package/dist/index222.js +5 -5
- package/dist/index223.js +9 -9
- package/dist/index224.js +24 -24
- package/dist/index225.js +5 -5
- package/dist/index226.js +3 -3
- package/dist/index249.js +10 -10
- package/dist/index250.js +3 -3
- package/dist/index252.js +2 -2
- package/dist/index257.js +1 -1
- package/dist/index258.js +1 -1
- package/dist/index271.js +5 -5
- package/dist/index271.js.map +1 -1
- package/dist/index272.js +5 -3
- package/dist/index272.js.map +1 -1
- package/dist/index273.js +3 -17
- package/dist/index273.js.map +1 -1
- package/dist/index274.js +17 -16
- package/dist/index274.js.map +1 -1
- package/dist/index275.js +16 -3
- package/dist/index275.js.map +1 -1
- package/dist/index276.js +3 -3
- package/dist/index276.js.map +1 -1
- package/dist/index277.js +3 -26
- package/dist/index277.js.map +1 -1
- package/dist/index278.js +26 -11
- package/dist/index278.js.map +1 -1
- package/dist/index279.js +10 -7
- package/dist/index279.js.map +1 -1
- package/dist/index280.js +8 -49
- package/dist/index280.js.map +1 -1
- package/dist/index281.js +49 -13
- package/dist/index281.js.map +1 -1
- package/dist/index282.js +12 -6
- package/dist/index282.js.map +1 -1
- package/dist/index283.js +7 -4
- package/dist/index283.js.map +1 -1
- package/dist/index284.js +4 -5
- package/dist/index284.js.map +1 -1
- package/dist/index286.js +6 -260
- package/dist/index286.js.map +1 -1
- package/dist/index287.js +105 -64
- package/dist/index287.js.map +1 -1
- package/dist/index288.js +67 -19
- package/dist/index288.js.map +1 -1
- package/dist/index289.js +72 -3
- package/dist/index289.js.map +1 -1
- package/dist/index290.js +22 -15
- package/dist/index290.js.map +1 -1
- package/dist/index291.js +58 -7
- package/dist/index291.js.map +1 -1
- package/dist/index292.js +3 -384
- package/dist/index292.js.map +1 -1
- package/dist/index293.js +16 -35
- package/dist/index293.js.map +1 -1
- package/dist/index294.js +384 -6
- package/dist/index294.js.map +1 -1
- package/dist/index295.js +92 -19
- package/dist/index295.js.map +1 -1
- package/dist/index296.js +34 -391
- package/dist/index296.js.map +1 -1
- package/dist/index297.js +6 -118
- package/dist/index297.js.map +1 -1
- package/dist/index298.js +17 -48
- package/dist/index298.js.map +1 -1
- package/dist/index299.js +62 -16
- package/dist/index299.js.map +1 -1
- package/dist/index300.js +48 -58
- package/dist/index300.js.map +1 -1
- package/dist/index301.js +31 -62
- package/dist/index301.js.map +1 -1
- package/dist/index302.js +16 -20
- package/dist/index302.js.map +1 -1
- package/dist/index303.js +58 -56
- package/dist/index303.js.map +1 -1
- package/dist/index304.js +20 -10
- package/dist/index304.js.map +1 -1
- package/dist/index305.js +10 -117
- package/dist/index305.js.map +1 -1
- package/dist/index306.js +920 -20
- package/dist/index306.js.map +1 -1
- package/dist/index307.js +37 -19
- package/dist/index307.js.map +1 -1
- package/dist/index308.js +256 -18
- package/dist/index308.js.map +1 -1
- package/dist/index309.js +114 -71
- package/dist/index309.js.map +1 -1
- package/dist/index310.js +556 -891
- package/dist/index310.js.map +1 -1
- package/dist/index311.js +121 -36
- package/dist/index311.js.map +1 -1
- package/dist/index312.js +17 -114
- package/dist/index312.js.map +1 -1
- package/dist/index313.js +363 -560
- package/dist/index313.js.map +1 -1
- package/dist/index314.js +85 -118
- package/dist/index314.js.map +1 -1
- package/dist/index315.js +16 -112
- package/dist/index315.js.map +1 -1
- package/dist/index316.js +115 -67
- package/dist/index316.js.map +1 -1
- package/dist/index317.js +21 -16
- package/dist/index317.js.map +1 -1
- package/dist/index318.js +19 -91
- package/dist/index318.js.map +1 -1
- package/dist/index319.js +20 -87
- package/dist/index319.js.map +1 -1
- package/dist/index320.js +71 -16
- package/dist/index320.js.map +1 -1
- package/dist/index321.js +118 -32
- package/dist/index321.js.map +1 -1
- package/dist/index323.js +1 -1
- package/dist/index324.js +93 -63
- package/dist/index324.js.map +1 -1
- package/dist/index325.js +5 -116
- package/dist/index325.js.map +1 -1
- package/dist/index326.js +38 -7
- package/dist/index326.js.map +1 -1
- package/dist/index327.js +44 -7
- package/dist/index327.js.map +1 -1
- package/dist/index328.js +2 -13
- package/dist/index328.js.map +1 -1
- package/dist/index329.js +65 -7
- package/dist/index329.js.map +1 -1
- package/dist/index330.js +115 -3
- package/dist/index330.js.map +1 -1
- package/dist/index331.js +608 -3
- package/dist/index331.js.map +1 -1
- package/dist/index332.js +295 -4
- package/dist/index332.js.map +1 -1
- package/dist/index333.js +88 -5
- package/dist/index333.js.map +1 -1
- package/dist/index334.js +11 -95
- package/dist/index334.js.map +1 -1
- package/dist/index335.js +20 -5
- package/dist/index335.js.map +1 -1
- package/dist/index336.js +62 -38
- package/dist/index336.js.map +1 -1
- package/dist/index337.js +33 -43
- package/dist/index337.js.map +1 -1
- package/dist/index338.js +7 -2
- package/dist/index338.js.map +1 -1
- package/dist/index339.js +6 -608
- package/dist/index339.js.map +1 -1
- package/dist/index340.js +11 -294
- package/dist/index340.js.map +1 -1
- package/dist/index341.js +6 -88
- package/dist/index341.js.map +1 -1
- package/dist/index342.js +3 -10
- package/dist/index342.js.map +1 -1
- package/dist/index343.js +3 -19
- package/dist/index343.js.map +1 -1
- package/dist/index344.js +4 -61
- package/dist/index344.js.map +1 -1
- package/dist/index345.js +5 -33
- package/dist/index345.js.map +1 -1
- package/dist/index346.js +3 -466
- package/dist/index346.js.map +1 -1
- package/dist/index347.js +9 -125
- package/dist/index347.js.map +1 -1
- package/dist/index348.js +33 -134
- package/dist/index348.js.map +1 -1
- package/dist/index349.js +21 -3
- package/dist/index349.js.map +1 -1
- package/dist/index350.js +5 -5
- package/dist/index351.js +2 -2
- package/dist/index357.js +464 -8
- package/dist/index357.js.map +1 -1
- package/dist/index358.js +126 -33
- package/dist/index358.js.map +1 -1
- package/dist/index359.js +133 -20
- package/dist/index359.js.map +1 -1
- package/dist/index53.js +21 -15
- package/dist/index53.js.map +1 -1
- package/dist/index54.js +15 -9
- package/dist/index54.js.map +1 -1
- package/dist/index55.js +20 -14
- package/dist/index55.js.map +1 -1
- package/dist/index62.js +42 -22
- package/dist/index62.js.map +1 -1
- package/dist/server/index.js +50 -12
- package/package.json +1 -1
package/dist/index341.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index341.js","sources":["../../../node_modules/.bun/@
|
|
1
|
+
{"version":3,"file":"index341.js","sources":["../../../node_modules/.bun/@modular-forms+solid@0.25.1+ee58d66d663bac7b/node_modules/@modular-forms/solid/dist/source/utils/getFieldNames.js"],"sourcesContent":["import { untrack } from 'solid-js';\nimport { removeInvalidNames } from './removeInvalidNames';\n/**\n * Returns a list with the names of all fields.\n *\n * @param form The form of the fields.\n * @param shouldValid Whether to be valid.\n *\n * @returns All field names of the form.\n */\nexport function getFieldNames(form, shouldValid = true) {\n // Get name of every field\n const fieldNames = [...untrack(form.internal.fieldNames.get)];\n // Remove invalid field names\n if (shouldValid) {\n removeInvalidNames(form, fieldNames);\n }\n // Return field names\n return fieldNames;\n}\n"],"names":["getFieldNames","form","shouldValid","fieldNames","untrack","removeInvalidNames"],"mappings":";;AAUO,SAASA,EAAcC,GAAMC,IAAc,IAAM;AAEpD,QAAMC,IAAa,CAAC,GAAGC,EAAQH,EAAK,SAAS,WAAW,GAAG,CAAC;AAE5D,SAAIC,KACAG,EAAmBJ,GAAME,CAAU,GAGhCA;AACX;","x_google_ignoreList":[0]}
|
package/dist/index342.js
CHANGED
|
@@ -1,14 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
let t = n.get(e);
|
|
4
|
-
if (t != null)
|
|
5
|
-
return t;
|
|
6
|
-
t = 0;
|
|
7
|
-
for (const r of e)
|
|
8
|
-
r.type === "item" && t++;
|
|
9
|
-
return n.set(e, t), t;
|
|
1
|
+
function n(e, t) {
|
|
2
|
+
return +t.replace(`${e}.`, "").split(".")[0];
|
|
10
3
|
}
|
|
11
4
|
export {
|
|
12
|
-
|
|
5
|
+
n as getPathIndex
|
|
13
6
|
};
|
|
14
7
|
//# sourceMappingURL=index342.js.map
|
package/dist/index342.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index342.js","sources":["../../../node_modules/.bun/@
|
|
1
|
+
{"version":3,"file":"index342.js","sources":["../../../node_modules/.bun/@modular-forms+solid@0.25.1+ee58d66d663bac7b/node_modules/@modular-forms/solid/dist/source/utils/getPathIndex.js"],"sourcesContent":["/**\n * Returns the index of the path in the field array.\n *\n * @param name The name of the field array.\n * @param path The path to get the index from.\n *\n * @returns The field index in the array.\n */\nexport function getPathIndex(name, path) {\n return +path.replace(`${name}.`, '').split('.')[0];\n}\n"],"names":["getPathIndex","name","path"],"mappings":"AAQO,SAASA,EAAaC,GAAMC,GAAM;AACrC,SAAO,CAACA,EAAK,QAAQ,GAAGD,CAAI,KAAK,EAAE,EAAE,MAAM,GAAG,EAAE,CAAC;AACrD;","x_google_ignoreList":[0]}
|
package/dist/index343.js
CHANGED
|
@@ -1,23 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
import { createEffect as t, onCleanup as d } from "solid-js";
|
|
4
|
-
import { access as r } from "./index298.js";
|
|
5
|
-
var n = ["id", "aria-label", "aria-labelledby", "aria-describedby"];
|
|
6
|
-
function f(i) {
|
|
7
|
-
const a = l(), e = o({
|
|
8
|
-
id: a.generateId("field")
|
|
9
|
-
}, i);
|
|
10
|
-
return t(() => d(a.registerField(r(e.id)))), {
|
|
11
|
-
fieldProps: {
|
|
12
|
-
id: () => r(e.id),
|
|
13
|
-
ariaLabel: () => r(e["aria-label"]),
|
|
14
|
-
ariaLabelledBy: () => a.getAriaLabelledBy(r(e.id), r(e["aria-label"]), r(e["aria-labelledby"])),
|
|
15
|
-
ariaDescribedBy: () => a.getAriaDescribedBy(r(e["aria-describedby"]))
|
|
16
|
-
}
|
|
17
|
-
};
|
|
1
|
+
function n(e, t) {
|
|
2
|
+
return e.split(".").reduce((r, u) => r?.[u], t);
|
|
18
3
|
}
|
|
19
4
|
export {
|
|
20
|
-
n as
|
|
21
|
-
f as createFormControlField
|
|
5
|
+
n as getPathValue
|
|
22
6
|
};
|
|
23
7
|
//# sourceMappingURL=index343.js.map
|
package/dist/index343.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index343.js","sources":["../../../node_modules/.bun/@
|
|
1
|
+
{"version":3,"file":"index343.js","sources":["../../../node_modules/.bun/@modular-forms+solid@0.25.1+ee58d66d663bac7b/node_modules/@modular-forms/solid/dist/source/utils/getPathValue.js"],"sourcesContent":["export function getPathValue(path, object) {\n return path.split('.').reduce((value, key) => value?.[key], object);\n}\n"],"names":["getPathValue","path","object","value","key"],"mappings":"AAAO,SAASA,EAAaC,GAAMC,GAAQ;AACvC,SAAOD,EAAK,MAAM,GAAG,EAAE,OAAO,CAACE,GAAOC,MAAQD,IAAQC,CAAG,GAAGF,CAAM;AACtE;","x_google_ignoreList":[0]}
|
package/dist/index344.js
CHANGED
|
@@ -1,65 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
function y(c) {
|
|
5
|
-
for (const f of c)
|
|
6
|
-
f.dispose();
|
|
7
|
-
}
|
|
8
|
-
function K(c, f, i, d = {}) {
|
|
9
|
-
if (w) {
|
|
10
|
-
const t = c();
|
|
11
|
-
let l = [];
|
|
12
|
-
if (t && t.length)
|
|
13
|
-
for (let o = 0, u = t.length; o < u; o++)
|
|
14
|
-
l.push(i(() => t[o], () => o));
|
|
15
|
-
else d.fallback && (l = [d.fallback()]);
|
|
16
|
-
return () => l;
|
|
17
|
-
}
|
|
18
|
-
const n = /* @__PURE__ */ new Map();
|
|
19
|
-
return v(() => y(n.values())), () => {
|
|
20
|
-
const t = c() || [];
|
|
21
|
-
return t[x], A(() => {
|
|
22
|
-
if (!t.length)
|
|
23
|
-
return y(n.values()), n.clear(), d.fallback ? [m((s) => (n.set(k, { dispose: s }), d.fallback()))] : [];
|
|
24
|
-
const l = new Array(t.length), o = n.get(k);
|
|
25
|
-
if (!n.size || o) {
|
|
26
|
-
o?.dispose(), n.delete(k);
|
|
27
|
-
for (let e = 0; e < t.length; e++) {
|
|
28
|
-
const s = t[e], a = f(s, e);
|
|
29
|
-
b(l, s, e, a);
|
|
30
|
-
}
|
|
31
|
-
return l;
|
|
32
|
-
}
|
|
33
|
-
const u = new Set(n.keys());
|
|
34
|
-
for (let e = 0; e < t.length; e++) {
|
|
35
|
-
const s = t[e], a = f(s, e);
|
|
36
|
-
u.delete(a);
|
|
37
|
-
const r = n.get(a);
|
|
38
|
-
r ? (l[e] = r.mapped, r.setIndex?.(e), r.setItem(() => s)) : b(l, s, e, a);
|
|
39
|
-
}
|
|
40
|
-
for (const e of u)
|
|
41
|
-
n.get(e)?.dispose(), n.delete(e);
|
|
42
|
-
return l;
|
|
43
|
-
});
|
|
44
|
-
};
|
|
45
|
-
function b(t, l, o, u) {
|
|
46
|
-
m((e) => {
|
|
47
|
-
const [s, a] = g(l), r = { setItem: a, dispose: e };
|
|
48
|
-
if (i.length > 1) {
|
|
49
|
-
const [h, p] = g(o);
|
|
50
|
-
r.setIndex = p, r.mapped = i(s, h);
|
|
51
|
-
} else
|
|
52
|
-
r.mapped = i(s);
|
|
53
|
-
n.set(u, r), t[o] = r.mapped;
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
function R(c) {
|
|
58
|
-
const { by: f } = c;
|
|
59
|
-
return I(K(() => c.each, typeof f == "function" ? f : (i) => i[f], c.children, "fallback" in c ? { fallback: () => c.fallback } : void 0));
|
|
1
|
+
function N(i, o) {
|
|
2
|
+
const s = (n) => n instanceof Blob ? n.size : n;
|
|
3
|
+
return Array.isArray(i) && Array.isArray(o) ? i.map(s).join() !== o.map(s).join() : i instanceof Date && o instanceof Date ? i.getTime() !== o.getTime() : Number.isNaN(i) && Number.isNaN(o) ? !1 : i !== o;
|
|
60
4
|
}
|
|
61
5
|
export {
|
|
62
|
-
|
|
63
|
-
K as keyArray
|
|
6
|
+
N as isFieldDirty
|
|
64
7
|
};
|
|
65
8
|
//# sourceMappingURL=index344.js.map
|
package/dist/index344.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index344.js","sources":["../../../node_modules/.bun/@solid-primitives+keyed@1.5.3+ee58d66d663bac7b/node_modules/@solid-primitives/keyed/dist/index.js"],"sourcesContent":["import { createMemo, createRoot, createSignal, on, onCleanup, untrack, $TRACK, mapArray, } from \"solid-js\";\nimport { isServer } from \"solid-js/web\";\nconst FALLBACK = Symbol(\"fallback\");\nfunction dispose(list) {\n for (const o of list)\n o.dispose();\n}\n/**\n * Reactively maps an array by specified key with a callback function - underlying helper for the `<Key>` control flow.\n * @param list input list of values to map\n * @param keyFn key getter, items will be identified by it's value. changing the value is changing the item.\n * @param mapFn reactive function used to create mapped output item. Similar to `Array.prototype.map` but both item and index are signals, that could change over time.\n * @param options a fallback for when the input list is empty or missing\n * @returns mapped input array signal\n * @see https://github.com/solidjs-community/solid-primitives/tree/main/packages/keyed#keyArray\n */\nexport function keyArray(items, keyFn, mapFn, options = {}) {\n // SERVER NOOP\n if (isServer) {\n const itemsRef = items();\n let s = [];\n if (itemsRef && itemsRef.length) {\n for (let i = 0, len = itemsRef.length; i < len; i++)\n s.push(mapFn(() => itemsRef[i], () => i));\n }\n else if (options.fallback)\n s = [options.fallback()];\n return () => s;\n }\n const prev = new Map();\n onCleanup(() => dispose(prev.values()));\n return () => {\n const list = items() || [];\n list[$TRACK]; // top level store tracking\n return untrack(() => {\n // fast path for empty arrays\n if (!list.length) {\n dispose(prev.values());\n prev.clear();\n if (!options.fallback)\n return [];\n const fb = createRoot(dispose => {\n prev.set(FALLBACK, { dispose });\n return options.fallback();\n });\n return [fb];\n }\n const result = new Array(list.length);\n // fast path for new create or after fallback\n const fb = prev.get(FALLBACK);\n if (!prev.size || fb) {\n fb?.dispose();\n prev.delete(FALLBACK);\n for (let i = 0; i < list.length; i++) {\n const item = list[i];\n const key = keyFn(item, i);\n addNewItem(result, item, i, key);\n }\n return result;\n }\n const prevKeys = new Set(prev.keys());\n for (let i = 0; i < list.length; i++) {\n const item = list[i];\n const key = keyFn(item, i);\n prevKeys.delete(key);\n const lookup = prev.get(key);\n if (lookup) {\n result[i] = lookup.mapped;\n lookup.setIndex?.(i);\n lookup.setItem(() => item);\n }\n else\n addNewItem(result, item, i, key);\n }\n for (const key of prevKeys) {\n prev.get(key)?.dispose();\n prev.delete(key);\n }\n return result;\n });\n };\n function addNewItem(list, item, i, key) {\n createRoot(dispose => {\n const [getItem, setItem] = createSignal(item);\n const save = { setItem, dispose };\n if (mapFn.length > 1) {\n const [index, setIndex] = createSignal(i);\n save.setIndex = setIndex;\n save.mapped = mapFn(getItem, index);\n }\n else\n save.mapped = mapFn(getItem);\n prev.set(key, save);\n list[i] = save.mapped;\n });\n }\n}\n/**\n * creates a list of elements from the input `each` list\n *\n * it receives a map function as its child that receives a **list item signal** and **index signal** and returns a JSX-Element; if the list is empty, an optional fallback is returned:\n * ```tsx\n * <Key each={items()} by={item => item.id} fallback={<div>No items</div>}>\n * {(item, index) => <div data-index={index()}>{item()}</div>}\n * </Key>\n * ```\n *\n * prop `by` can also be an object key:\n * ```tsx\n * <Key each={items()} by=\"id\">\n * ```\n *\n * @see https://github.com/solidjs-community/solid-primitives/tree/main/packages/keyed#Key\n */\nexport function Key(props) {\n const { by } = props;\n return createMemo(keyArray(() => props.each, typeof by === \"function\" ? by : (v) => v[by], props.children, \"fallback\" in props ? { fallback: () => props.fallback } : undefined));\n}\n/**\n * creates a list of elements from the entries of provided object\n *\n * @param props\n * @param props.of object to iterate entries of (`Object.entries(object)`)\n * @param props.children\n * a map render function that receives an object key, **value signal** and **index signal** and returns a JSX-Element; if the list is empty, an optional fallback is returned:\n * ```tsx\n * <Entries of={object()} fallback={<div>No items</div>}>\n * {(key, value, index) => <div data-index={index()}>{key}: {value()}</div>}\n * </Entries>\n * ```\n *\n * @see https://github.com/solidjs-community/solid-primitives/tree/main/packages/keyed#Entries\n */\nexport function Entries(props) {\n // changes to this function may be applicable to similar functions - grep 4A29BECD-767A-4CC0-AEBB-3543D7B444C6\n const mapFn = props.children;\n return createMemo(mapArray(() => props.of && Object.keys(props.of), mapFn.length < 3\n ? key => mapFn(key, () => props.of[key])\n : (key, i) => mapFn(key, () => props.of[key], i), \"fallback\" in props ? { fallback: () => props.fallback } : undefined));\n}\n/**\n * Creates a list of elements from the entries of provided Map\n *\n * @param props\n * @param props.of map to iterate entries of (`myMap.entries()`)\n * @param props.children\n * a map render function that receives a Map key, **value signal** and **index signal** and returns a JSX-Element; if the list is empty, an optional fallback is returned:\n * ```tsx\n * <MapEntries of={map()} fallback={<div>No items</div>}>\n * {(key, value, index) => <div data-index={index()}>{key}: {value()}</div>}\n * </MapEntries>\n * ```\n *\n * @see https://github.com/solidjs-community/solid-primitives/tree/main/packages/keyed#mapentries\n */\nexport function MapEntries(props) {\n // changes to this function may be applicable to similar functions - grep 4A29BECD-767A-4CC0-AEBB-3543D7B444C6\n const mapFn = props.children;\n return createMemo(mapArray(() => props.of && Array.from(props.of.keys()), mapFn.length < 3\n ? key => mapFn(key, () => props.of.get(key))\n : (key, i) => mapFn(key, () => props.of.get(key), i), \"fallback\" in props ? { fallback: () => props.fallback } : undefined));\n}\n/**\n * Creates a list of elements from the values of provided Set\n *\n * @param props\n * @param props.of set to iterate values of (`mySet.values()`)\n * @param props.children\n * a map render function that receives a Set value and **index signal** and returns a JSX-Element; if the list is empty, an optional fallback is returned:\n * ```tsx\n * <SetValues of={set()} fallback={<div>No items</div>}>\n * {(value, index) => <div data-index={index()}>{value)}</div>}\n * </SetValues>\n * ```\n *\n * @see https://github.com/solidjs-community/solid-primitives/tree/main/packages/keyed#setvalues\n */\nexport function SetValues(props) {\n // changes to this function may be applicable to similar functions - grep 4A29BECD-767A-4CC0-AEBB-3543D7B444C6\n const mapFn = props.children;\n return createMemo(mapArray(() => props.of && Array.from(props.of.values()), mapFn.length < 2 ? value => mapFn(value) : mapFn, \"fallback\" in props ? { fallback: () => props.fallback } : undefined));\n}\nexport function Rerun(props) {\n const key = typeof props.on === \"function\" || Array.isArray(props.on) ? props.on : () => props.on;\n return createMemo(on(key, (a, b) => {\n const child = props.children;\n return typeof child === \"function\" && child.length > 0 ? child(a, b) : child;\n }));\n}\n"],"names":["FALLBACK","dispose","list","o","keyArray","items","keyFn","mapFn","options","isServer","itemsRef","s","i","len","prev","onCleanup","$TRACK","untrack","createRoot","result","fb","item","key","addNewItem","prevKeys","lookup","getItem","setItem","createSignal","save","index","setIndex","Key","props","by","createMemo","v"],"mappings":"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","x_google_ignoreList":[0]}
|
|
1
|
+
{"version":3,"file":"index344.js","sources":["../../../node_modules/.bun/@modular-forms+solid@0.25.1+ee58d66d663bac7b/node_modules/@modular-forms/solid/dist/source/utils/isFieldDirty.js"],"sourcesContent":["/**\n * Returns whether the field is dirty.\n *\n * @param startValue The start value.\n * @param currentValue The current value.\n *\n * @returns Whether is dirty.\n */\nexport function isFieldDirty(startValue, currentValue) {\n const toValue = (item) => item instanceof Blob ? item.size : item;\n return Array.isArray(startValue) && Array.isArray(currentValue)\n ? startValue.map(toValue).join() !== currentValue.map(toValue).join()\n : startValue instanceof Date && currentValue instanceof Date\n ? startValue.getTime() !== currentValue.getTime()\n : Number.isNaN(startValue) && Number.isNaN(currentValue)\n ? false\n : startValue !== currentValue;\n}\n"],"names":["isFieldDirty","startValue","currentValue","toValue","item"],"mappings":"AAQO,SAASA,EAAaC,GAAYC,GAAc;AACnD,QAAMC,IAAU,CAACC,MAASA,aAAgB,OAAOA,EAAK,OAAOA;AAC7D,SAAO,MAAM,QAAQH,CAAU,KAAK,MAAM,QAAQC,CAAY,IACxDD,EAAW,IAAIE,CAAO,EAAE,KAAI,MAAOD,EAAa,IAAIC,CAAO,EAAE,KAAI,IACjEF,aAAsB,QAAQC,aAAwB,OAClDD,EAAW,cAAcC,EAAa,QAAO,IAC7C,OAAO,MAAMD,CAAU,KAAK,OAAO,MAAMC,CAAY,IACjD,KACAD,MAAeC;AACjC;","x_google_ignoreList":[0]}
|
package/dist/index345.js
CHANGED
|
@@ -1,37 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
function i(e, n) {
|
|
6
|
-
if (e.length === 1) return 0;
|
|
7
|
-
const t = e.map((a) => Math.abs(a - n)), s = Math.min(...t), r = t.indexOf(s);
|
|
8
|
-
return n < e[r] ? r : t.lastIndexOf(s);
|
|
9
|
-
}
|
|
10
|
-
function c(e) {
|
|
11
|
-
return e.slice(0, -1).map((n, t) => e[t + 1] - n);
|
|
12
|
-
}
|
|
13
|
-
function l(e, n) {
|
|
14
|
-
if (n > 0) {
|
|
15
|
-
const t = c(e);
|
|
16
|
-
return Math.min(...t) >= n;
|
|
17
|
-
}
|
|
18
|
-
return !0;
|
|
19
|
-
}
|
|
20
|
-
function f(e, n) {
|
|
21
|
-
return (t) => {
|
|
22
|
-
if (e[0] === e[1] || n[0] === n[1]) return n[0];
|
|
23
|
-
const s = (n[1] - n[0]) / (e[1] - e[0]);
|
|
24
|
-
return n[0] + s * (t - e[0]);
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
function u(e) {
|
|
28
|
-
e.preventDefault(), e.stopPropagation();
|
|
1
|
+
import { untrack as o } from "solid-js";
|
|
2
|
+
import { getFieldAndArrayStores as i } from "./index338.js";
|
|
3
|
+
function a(t, e) {
|
|
4
|
+
o(() => t.internal.dirty.set(e || i(t).some((r) => r.active.get() && r.dirty.get())));
|
|
29
5
|
}
|
|
30
6
|
export {
|
|
31
|
-
|
|
32
|
-
o as getNextSortedValues,
|
|
33
|
-
l as hasMinStepsBetweenValues,
|
|
34
|
-
f as linearScale,
|
|
35
|
-
u as stopEventDefaultAndPropagation
|
|
7
|
+
a as updateFormDirty
|
|
36
8
|
};
|
|
37
9
|
//# sourceMappingURL=index345.js.map
|
package/dist/index345.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index345.js","sources":["../../../node_modules/.bun/@
|
|
1
|
+
{"version":3,"file":"index345.js","sources":["../../../node_modules/.bun/@modular-forms+solid@0.25.1+ee58d66d663bac7b/node_modules/@modular-forms/solid/dist/source/utils/updateFormDirty.js"],"sourcesContent":["import { untrack } from 'solid-js';\nimport { getFieldAndArrayStores } from './getFieldAndArrayStores';\n/**\n * Updates the dirty state of the form.\n *\n * @param form The store of the form.\n * @param dirty Whether dirty state is true.\n */\nexport function updateFormDirty(form, dirty) {\n untrack(() => form.internal.dirty.set(dirty ||\n getFieldAndArrayStores(form).some((fieldOrFieldArray) => fieldOrFieldArray.active.get() && fieldOrFieldArray.dirty.get())));\n}\n"],"names":["updateFormDirty","form","dirty","untrack","getFieldAndArrayStores","fieldOrFieldArray"],"mappings":";;AAQO,SAASA,EAAgBC,GAAMC,GAAO;AACzC,EAAAC,EAAQ,MAAMF,EAAK,SAAS,MAAM,IAAIC,KAClCE,EAAuBH,CAAI,EAAE,KAAK,CAACI,MAAsBA,EAAkB,OAAO,IAAG,KAAMA,EAAkB,MAAM,IAAG,CAAE,CAAC,CAAC;AAClI;","x_google_ignoreList":[0]}
|