@brett_lamy/ui 4.0.0 → 5.0.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.
Files changed (234) hide show
  1. package/README.md +1 -1
  2. package/dist/components/animated-height.d.ts +3 -1
  3. package/dist/components/animated-height.d.ts.map +1 -1
  4. package/dist/components/animated-height.js +11 -11
  5. package/dist/components/artifact-chat-container.d.ts.map +1 -1
  6. package/dist/components/artifact-chat-container.js +81 -82
  7. package/dist/components/button.d.ts +4 -3
  8. package/dist/components/button.d.ts.map +1 -1
  9. package/dist/components/button.js +22 -9
  10. package/dist/components/canvas.d.ts +91 -0
  11. package/dist/components/canvas.d.ts.map +1 -0
  12. package/dist/components/canvas.js +296 -0
  13. package/dist/components/composer/composer-cards.d.ts +55 -0
  14. package/dist/components/composer/composer-cards.d.ts.map +1 -0
  15. package/dist/components/composer/composer-cards.js +351 -0
  16. package/dist/components/composer/composer.d.ts +9 -1
  17. package/dist/components/composer/composer.d.ts.map +1 -1
  18. package/dist/components/composer/composer.js +179 -154
  19. package/dist/components/context-menu.d.ts +25 -0
  20. package/dist/components/context-menu.d.ts.map +1 -0
  21. package/dist/components/context-menu.js +127 -0
  22. package/dist/components/credenza.d.ts.map +1 -1
  23. package/dist/components/credenza.js +52 -92
  24. package/dist/components/cron-editor.d.ts +47 -0
  25. package/dist/components/cron-editor.d.ts.map +1 -0
  26. package/dist/components/cron-editor.js +297 -0
  27. package/dist/components/dropdown-menu.d.ts +3 -1
  28. package/dist/components/dropdown-menu.d.ts.map +1 -1
  29. package/dist/components/dropdown-menu.js +5 -5
  30. package/dist/components/edge-drawer.d.ts.map +1 -1
  31. package/dist/components/edge-drawer.js +1 -0
  32. package/dist/components/file-upload.d.ts +121 -0
  33. package/dist/components/file-upload.d.ts.map +1 -0
  34. package/dist/components/file-upload.js +405 -0
  35. package/dist/components/filter-input.d.ts +22 -0
  36. package/dist/components/filter-input.d.ts.map +1 -0
  37. package/dist/components/filter-input.js +126 -0
  38. package/dist/components/filter.d.ts +154 -0
  39. package/dist/components/filter.d.ts.map +1 -0
  40. package/dist/components/filter.js +815 -0
  41. package/dist/components/floating-chat.d.ts.map +1 -1
  42. package/dist/components/floating-chat.js +71 -88
  43. package/dist/components/floating-sheet.d.ts.map +1 -1
  44. package/dist/components/floating-sheet.js +93 -104
  45. package/dist/components/markdown-editor.d.ts +2 -0
  46. package/dist/components/markdown-editor.d.ts.map +1 -1
  47. package/dist/components/markdown-editor.js +46 -45
  48. package/dist/components/markdown-view.d.ts +6 -1
  49. package/dist/components/markdown-view.d.ts.map +1 -1
  50. package/dist/components/markdown-view.js +13 -11
  51. package/dist/components/navigation-stack.d.ts +3 -5
  52. package/dist/components/navigation-stack.d.ts.map +1 -1
  53. package/dist/components/navigation-stack.js +212 -382
  54. package/dist/components/passkey-enroll-dialog.d.ts +36 -0
  55. package/dist/components/passkey-enroll-dialog.d.ts.map +1 -0
  56. package/dist/components/passkey-enroll-dialog.js +234 -0
  57. package/dist/components/result-table.d.ts +38 -0
  58. package/dist/components/result-table.d.ts.map +1 -0
  59. package/dist/components/result-table.js +161 -0
  60. package/dist/components/schema-tree.d.ts +19 -0
  61. package/dist/components/schema-tree.d.ts.map +1 -0
  62. package/dist/components/schema-tree.js +172 -0
  63. package/dist/components/side-drawer.d.ts.map +1 -1
  64. package/dist/components/side-drawer.js +117 -143
  65. package/dist/components/slider.d.ts.map +1 -1
  66. package/dist/components/slider.js +4 -1
  67. package/dist/components/spinner-shapes.d.ts +263 -0
  68. package/dist/components/spinner-shapes.d.ts.map +1 -0
  69. package/dist/components/spinner-shapes.js +771 -0
  70. package/dist/components/spinner.d.ts +133 -3
  71. package/dist/components/spinner.d.ts.map +1 -1
  72. package/dist/components/spinner.js +445 -29
  73. package/dist/components/sql-console.d.ts +28 -0
  74. package/dist/components/sql-console.d.ts.map +1 -0
  75. package/dist/components/sql-console.js +348 -0
  76. package/dist/components/sql-editor.d.ts +47 -0
  77. package/dist/components/sql-editor.d.ts.map +1 -0
  78. package/dist/components/sql-editor.js +170 -0
  79. package/dist/components/tab-view.d.ts +2 -2
  80. package/dist/components/tab-view.d.ts.map +1 -1
  81. package/dist/components/tab-view.js +63 -49
  82. package/dist/components/tailscale-login-button.d.ts +53 -0
  83. package/dist/components/tailscale-login-button.d.ts.map +1 -0
  84. package/dist/components/tailscale-login-button.js +197 -0
  85. package/dist/components/time-input.d.ts +46 -0
  86. package/dist/components/time-input.d.ts.map +1 -0
  87. package/dist/components/time-input.js +258 -0
  88. package/dist/components/toast.d.ts +5 -2
  89. package/dist/components/toast.d.ts.map +1 -1
  90. package/dist/components/toast.js +249 -125
  91. package/dist/components/vault-gate.d.ts +60 -0
  92. package/dist/components/vault-gate.d.ts.map +1 -0
  93. package/dist/components/vault-gate.js +382 -0
  94. package/dist/index.css +1 -1
  95. package/dist/index.d.ts +85 -3
  96. package/dist/index.d.ts.map +1 -1
  97. package/dist/index.js +129 -83
  98. package/dist/lib/back-history.d.ts +5 -0
  99. package/dist/lib/back-history.d.ts.map +1 -0
  100. package/dist/lib/back-history.js +44 -0
  101. package/dist/lib/canvas-math.d.ts +82 -0
  102. package/dist/lib/canvas-math.d.ts.map +1 -0
  103. package/dist/lib/canvas-math.js +226 -0
  104. package/dist/lib/controllable-state.d.ts +4 -0
  105. package/dist/lib/controllable-state.d.ts.map +1 -0
  106. package/dist/lib/controllable-state.js +11 -0
  107. package/dist/lib/cron.d.ts +55 -0
  108. package/dist/lib/cron.d.ts.map +1 -0
  109. package/dist/lib/cron.js +269 -0
  110. package/dist/lib/edge-swipe.d.ts +36 -0
  111. package/dist/lib/edge-swipe.d.ts.map +1 -0
  112. package/dist/lib/edge-swipe.js +73 -0
  113. package/dist/lib/file-upload.d.ts +187 -0
  114. package/dist/lib/file-upload.d.ts.map +1 -0
  115. package/dist/lib/file-upload.js +349 -0
  116. package/dist/lib/filter-query.d.ts +90 -0
  117. package/dist/lib/filter-query.d.ts.map +1 -0
  118. package/dist/lib/filter-query.js +459 -0
  119. package/dist/lib/filter.d.ts +120 -0
  120. package/dist/lib/filter.d.ts.map +1 -0
  121. package/dist/lib/filter.js +399 -0
  122. package/dist/lib/format-bytes.d.ts +3 -0
  123. package/dist/lib/format-bytes.d.ts.map +1 -0
  124. package/dist/lib/format-bytes.js +16 -0
  125. package/dist/lib/gpu-cron.d.ts +51 -0
  126. package/dist/lib/gpu-cron.d.ts.map +1 -0
  127. package/dist/lib/gpu-cron.js +81 -0
  128. package/dist/lib/gpu-query/featurize.d.ts +19 -0
  129. package/dist/lib/gpu-query/featurize.d.ts.map +1 -0
  130. package/dist/lib/gpu-query/featurize.js +88 -0
  131. package/dist/lib/gpu-query/index.d.ts +73 -0
  132. package/dist/lib/gpu-query/index.d.ts.map +1 -0
  133. package/dist/lib/gpu-query/index.js +117 -0
  134. package/dist/lib/gpu-query/kernel.wgsl.d.ts +30 -0
  135. package/dist/lib/gpu-query/kernel.wgsl.d.ts.map +1 -0
  136. package/dist/lib/gpu-query/model.d.ts +8 -0
  137. package/dist/lib/gpu-query/model.d.ts.map +1 -0
  138. package/dist/lib/gpu-query/model.js +91 -0
  139. package/dist/lib/gpu-query/schema.d.ts +40 -0
  140. package/dist/lib/gpu-query/schema.d.ts.map +1 -0
  141. package/dist/lib/gpu-query/schema.js +0 -0
  142. package/dist/lib/gpu-query/webgpu.d.ts +12 -0
  143. package/dist/lib/gpu-query/webgpu.d.ts.map +1 -0
  144. package/dist/lib/gpu-query/weights.d.ts +17 -0
  145. package/dist/lib/gpu-query/weights.d.ts.map +1 -0
  146. package/dist/lib/gpu-query/weights.js +40 -0
  147. package/dist/lib/gpu-query/weights.json.d.ts +3 -0
  148. package/dist/lib/gpu-query/weights2.js +25 -0
  149. package/dist/lib/gpu-time.d.ts +77 -0
  150. package/dist/lib/gpu-time.d.ts.map +1 -0
  151. package/dist/lib/gpu-time.js +260 -0
  152. package/dist/lib/morph-path.d.ts +22 -0
  153. package/dist/lib/morph-path.d.ts.map +1 -0
  154. package/dist/lib/morph-path.js +42 -0
  155. package/dist/lib/passkey.d.ts +120 -0
  156. package/dist/lib/passkey.d.ts.map +1 -0
  157. package/dist/lib/passkey.js +186 -0
  158. package/dist/lib/persistent-state.d.ts +9 -0
  159. package/dist/lib/persistent-state.d.ts.map +1 -0
  160. package/dist/lib/persistent-state.js +37 -0
  161. package/dist/lib/pglite-core.d.ts +219 -0
  162. package/dist/lib/pglite-core.d.ts.map +1 -0
  163. package/dist/lib/pglite-core.js +273 -0
  164. package/dist/lib/pglite-files.d.ts +7 -0
  165. package/dist/lib/pglite-files.d.ts.map +1 -0
  166. package/dist/lib/pglite-files.js +17 -0
  167. package/dist/lib/pglite-schema.d.ts +58 -0
  168. package/dist/lib/pglite-schema.d.ts.map +1 -0
  169. package/dist/lib/pglite-schema.js +105 -0
  170. package/dist/lib/pglite-storage.d.ts +33 -0
  171. package/dist/lib/pglite-storage.d.ts.map +1 -0
  172. package/dist/lib/pglite-storage.js +55 -0
  173. package/dist/lib/pglite-transfer.d.ts +53 -0
  174. package/dist/lib/pglite-transfer.d.ts.map +1 -0
  175. package/dist/lib/pglite-transfer.js +126 -0
  176. package/dist/lib/pglite.d.ts +106 -0
  177. package/dist/lib/pglite.d.ts.map +1 -0
  178. package/dist/lib/pglite.js +298 -0
  179. package/dist/lib/pull-to-refresh.d.ts +24 -0
  180. package/dist/lib/pull-to-refresh.d.ts.map +1 -0
  181. package/dist/lib/pull-to-refresh.js +74 -0
  182. package/dist/lib/scroll-hidden.d.ts +6 -0
  183. package/dist/lib/scroll-hidden.d.ts.map +1 -0
  184. package/dist/lib/scroll-hidden.js +21 -0
  185. package/dist/lib/sql-format.d.ts +62 -0
  186. package/dist/lib/sql-format.d.ts.map +1 -0
  187. package/dist/lib/sql-format.js +175 -0
  188. package/dist/lib/sql-lex.d.ts +25 -0
  189. package/dist/lib/sql-lex.d.ts.map +1 -0
  190. package/dist/lib/sql-lex.js +135 -0
  191. package/dist/lib/tab-lock.d.ts +28 -0
  192. package/dist/lib/tab-lock.d.ts.map +1 -0
  193. package/dist/lib/tab-lock.js +80 -0
  194. package/dist/lib/tailscale-connect.d.ts +56 -0
  195. package/dist/lib/tailscale-connect.d.ts.map +1 -0
  196. package/dist/lib/tailscale-connect.js +99 -0
  197. package/dist/lib/tailscale-fake.d.ts +33 -0
  198. package/dist/lib/tailscale-fake.d.ts.map +1 -0
  199. package/dist/lib/tailscale-fake.js +80 -0
  200. package/dist/lib/tailscale-policy.d.ts +71 -0
  201. package/dist/lib/tailscale-policy.d.ts.map +1 -0
  202. package/dist/lib/tailscale-policy.js +244 -0
  203. package/dist/lib/tailscale-react.d.ts +20 -0
  204. package/dist/lib/tailscale-react.d.ts.map +1 -0
  205. package/dist/lib/tailscale-react.js +37 -0
  206. package/dist/lib/tailscale-router/bridge.d.ts +60 -0
  207. package/dist/lib/tailscale-router/bridge.d.ts.map +1 -0
  208. package/dist/lib/tailscale-router/bridge.js +198 -0
  209. package/dist/lib/tailscale-router/react.d.ts +19 -0
  210. package/dist/lib/tailscale-router/react.d.ts.map +1 -0
  211. package/dist/lib/tailscale-router/react.js +52 -0
  212. package/dist/lib/tailscale.d.ts +204 -0
  213. package/dist/lib/tailscale.d.ts.map +1 -0
  214. package/dist/lib/tailscale.js +443 -0
  215. package/dist/lib/title-flight.d.ts +34 -0
  216. package/dist/lib/title-flight.d.ts.map +1 -0
  217. package/dist/lib/title-flight.js +123 -0
  218. package/dist/lib/vault-react.d.ts +49 -0
  219. package/dist/lib/vault-react.d.ts.map +1 -0
  220. package/dist/lib/vault-react.js +196 -0
  221. package/dist/lib/vault-storage.d.ts +30 -0
  222. package/dist/lib/vault-storage.d.ts.map +1 -0
  223. package/dist/lib/vault-storage.js +105 -0
  224. package/dist/lib/vault.d.ts +200 -0
  225. package/dist/lib/vault.d.ts.map +1 -0
  226. package/dist/lib/vault.js +641 -0
  227. package/dist/tailscale-sw.js +332 -0
  228. package/package.json +35 -5
  229. package/dist/components/icon-button.d.ts +0 -19
  230. package/dist/components/icon-button.d.ts.map +0 -1
  231. package/dist/components/icon-button.js +0 -31
  232. package/dist/components/measure-h.d.ts +0 -7
  233. package/dist/components/measure-h.d.ts.map +0 -1
  234. package/dist/components/measure-h.js +0 -20
@@ -0,0 +1,459 @@
1
+ "use client";
2
+ import { createFilter as e } from "./filter.js";
3
+ import { stem as t, withinOneEdit as n } from "./gpu-query/schema.js";
4
+ import { loadModel as r, parseWith as i } from "./gpu-query/index.js";
5
+ import { useCallback as a, useEffect as o, useMemo as s, useRef as c, useState as l } from "react";
6
+ //#region src/lib/filter-query.ts
7
+ var u = /^[A-Za-z_][A-Za-z0-9_'-]*$/, d = /* @__PURE__ */ new Set([
8
+ "a",
9
+ "an",
10
+ "and",
11
+ "are",
12
+ "at",
13
+ "be",
14
+ "by",
15
+ "for",
16
+ "has",
17
+ "have",
18
+ "in",
19
+ "is",
20
+ "of",
21
+ "on",
22
+ "or",
23
+ "not",
24
+ "no",
25
+ "the",
26
+ "to",
27
+ "was",
28
+ "with"
29
+ ]), f = (e) => e.toLowerCase().split(/[^a-z0-9']+/).filter(Boolean), p = (e, t = 3) => f(e).filter((e) => e.length >= t && !d.has(e)), m = (e) => e.toLowerCase().normalize("NFKD").replace(/[^a-z0-9]+/g, " ").trim(), h = {
30
+ select: "enum",
31
+ multiselect: "enum",
32
+ boolean: "bool",
33
+ date: "date",
34
+ number: "number",
35
+ text: "text"
36
+ };
37
+ function g(e) {
38
+ let t = e.replace(/[^A-Za-z0-9_'-]/g, "_");
39
+ return u.test(t) ? t : `f_${t}`;
40
+ }
41
+ function _(e) {
42
+ let t = /* @__PURE__ */ new Set();
43
+ for (let n of [
44
+ e.value,
45
+ e.label,
46
+ ...e.keywords ?? []
47
+ ]) {
48
+ u.test(n) && t.add(n.toLowerCase());
49
+ for (let e of p(n)) u.test(e) && t.add(e);
50
+ }
51
+ return [...t];
52
+ }
53
+ function v(e) {
54
+ let t = /* @__PURE__ */ new Map(), n = e.map((e) => {
55
+ let n = g(e.id);
56
+ t.set(n, e);
57
+ let r = /* @__PURE__ */ new Set();
58
+ u.test(e.label) && r.add(e.label.toLowerCase());
59
+ for (let t of [
60
+ ...p(e.label),
61
+ ...p(e.id.replace(/[_-]+/g, " ")),
62
+ ...(e.aliases ?? []).flatMap((e) => f(e))
63
+ ]) u.test(t) && r.add(t);
64
+ return r.delete(n.toLowerCase()), {
65
+ field: e,
66
+ name: n,
67
+ own: r
68
+ };
69
+ }), r = /* @__PURE__ */ new Map();
70
+ for (let { own: e } of n) for (let t of e) r.set(t, (r.get(t) ?? 0) + 1);
71
+ let i = new Set(n.map((e) => e.name.toLowerCase()));
72
+ return {
73
+ schema: n.map(({ field: e, name: t, own: n }) => ({
74
+ name: t,
75
+ kind: h[e.kind],
76
+ aliases: [...n].filter((e) => r.get(e) === 1 && !i.has(e)),
77
+ values: e.kind === "select" || e.kind === "multiselect" ? [...new Set((e.options ?? []).flatMap(_))] : []
78
+ })),
79
+ byName: t
80
+ };
81
+ }
82
+ function y(e, r) {
83
+ return e === r ? 1 : t(e) === t(r) ? .9 : e.length >= 3 && r.startsWith(e) ? .8 : e.length >= 5 && n(e, r) ? .7 : 0;
84
+ }
85
+ function b(e, t) {
86
+ let n = m(e);
87
+ if (!n) return {};
88
+ let r = n.replace(/ /g, ""), i = t.filter((e) => m(e.label) === n || m(e.value) === n || m(e.label).replace(/ /g, "") === r);
89
+ if (i.length) return i.length === 1 ? { option: i[0] } : { ambiguous: !0 };
90
+ let a = n.split(" "), o = [];
91
+ for (let e of t) {
92
+ let t = m(e.label).split(" ").filter(Boolean), n = [.../* @__PURE__ */ new Set([
93
+ ...t,
94
+ ...m(e.value).split(" "),
95
+ ...(e.keywords ?? []).flatMap((e) => m(e).split(" "))
96
+ ])].filter(Boolean), r = a.map((e) => Math.max(0, ...n.map((t) => y(e, t))));
97
+ if (r.some((e) => e === 0)) continue;
98
+ let i = Math.min(1, a.length / Math.max(1, t.length));
99
+ o.push({
100
+ option: e,
101
+ score: r.reduce((e, t) => e + t, 0) / r.length * (.5 + .5 * i)
102
+ });
103
+ }
104
+ return o.sort((e, t) => t.score - e.score), o.length ? o.length > 1 && o[1].score >= o[0].score - 1e-9 ? { ambiguous: !0 } : { option: o[0].option } : {};
105
+ }
106
+ var x = [
107
+ "jan",
108
+ "feb",
109
+ "mar",
110
+ "apr",
111
+ "may",
112
+ "jun",
113
+ "jul",
114
+ "aug",
115
+ "sep",
116
+ "oct",
117
+ "nov",
118
+ "dec"
119
+ ], S = {
120
+ day: "day",
121
+ week: "week",
122
+ month: "month",
123
+ year: "year"
124
+ }, C = {
125
+ today: {
126
+ type: "preset",
127
+ preset: "today"
128
+ },
129
+ yesterday: {
130
+ type: "preset",
131
+ preset: "yesterday"
132
+ },
133
+ "this week": {
134
+ type: "preset",
135
+ preset: "this_week"
136
+ },
137
+ "last week": {
138
+ type: "preset",
139
+ preset: "last_week"
140
+ },
141
+ "this month": {
142
+ type: "preset",
143
+ preset: "this_month"
144
+ },
145
+ "last month": {
146
+ type: "preset",
147
+ preset: "last_month"
148
+ },
149
+ "this year": {
150
+ type: "preset",
151
+ preset: "this_year"
152
+ }
153
+ }, w = (e) => String(e).padStart(2, "0"), T = (e) => `${e.getFullYear()}-${w(e.getMonth() + 1)}-${w(e.getDate())}`;
154
+ function E(e, t, n) {
155
+ let r = new Date(e, t - 1, n);
156
+ return r.getFullYear() === e && r.getMonth() === t - 1 && r.getDate() === n ? `${e}-${w(t)}-${w(n)}` : null;
157
+ }
158
+ function D(e, t = Date.now()) {
159
+ let n = e.toLowerCase().replace(/\s*([-/])\s*/g, "$1").replace(/\s+/g, " ").replace(/^(?:(?:in|within|over|during|for|from|on) )?(?:the )?/, "").trim(), r = new Date(t);
160
+ if (C[n]) return C[n];
161
+ let i = /^(?:last|past|previous) (\d+) (day|week|month|year)s?$/.exec(n);
162
+ if (i && Number(i[1]) > 0) return {
163
+ type: "relative",
164
+ amount: Number(i[1]),
165
+ unit: S[i[2]]
166
+ };
167
+ if (i = /^(\d+) (day|week|month|year)s? ago$/.exec(n), i) {
168
+ let e = new Date(r.getFullYear(), r.getMonth(), r.getDate()), t = Number(i[1]);
169
+ return i[2] === "day" ? e.setDate(e.getDate() - t) : i[2] === "week" ? e.setDate(e.getDate() - 7 * t) : i[2] === "month" ? e.setMonth(e.getMonth() - t) : e.setFullYear(e.getFullYear() - t), {
170
+ type: "date",
171
+ date: T(e)
172
+ };
173
+ }
174
+ if (i = /^(\d{4})[- ](\d{1,2})[- ](\d{1,2})$/.exec(n), i) {
175
+ let e = E(Number(i[1]), Number(i[2]), Number(i[3]));
176
+ return e ? {
177
+ type: "date",
178
+ date: e
179
+ } : null;
180
+ }
181
+ let a = /^([a-z]{3,9})\.? (\d{1,2})(?:st|nd|rd|th)?(?:,? (\d{4}))?$/.exec(n), o = /^(\d{1,2})(?:st|nd|rd|th)? ([a-z]{3,9})\.?(?:,? (\d{4}))?$/.exec(n), s = a ? {
182
+ month: a[1],
183
+ day: a[2],
184
+ year: a[3]
185
+ } : o ? {
186
+ month: o[2],
187
+ day: o[1],
188
+ year: o[3]
189
+ } : null;
190
+ if (s) {
191
+ let e = x.findIndex((e) => s.month.startsWith(e)) + 1;
192
+ if (e) {
193
+ let t = E(s.year ? Number(s.year) : r.getFullYear(), e, Number(s.day));
194
+ return t ? {
195
+ type: "date",
196
+ date: t
197
+ } : null;
198
+ }
199
+ }
200
+ return null;
201
+ }
202
+ function O(e) {
203
+ let t = /^(-?\d+(?:\.\d+)?)\s*([km])?$/.exec(e.toLowerCase().replace(/\s*\.\s*/g, ".").trim());
204
+ return t ? Number(t[1]) * (t[2] === "k" ? 1e3 : t[2] === "m" ? 1e6 : 1) : null;
205
+ }
206
+ var k = (e) => `“${e}”`, A = /* @__PURE__ */ new Set([
207
+ "not",
208
+ "no",
209
+ "without",
210
+ "excluding",
211
+ "exclude",
212
+ "except",
213
+ "isn't",
214
+ "aren't",
215
+ "wasn't",
216
+ "doesn't",
217
+ "don't",
218
+ "non",
219
+ "never"
220
+ ]), j = /* @__PURE__ */ new Set([
221
+ "before",
222
+ "earlier",
223
+ "prior",
224
+ "until",
225
+ "older"
226
+ ]), M = /* @__PURE__ */ new Set([
227
+ "after",
228
+ "since",
229
+ "later",
230
+ "newer"
231
+ ]), N = (e) => e.kind === "select" || e.kind === "multiselect";
232
+ function P(t, n, { now: r = Date.now(), trace: i } = {}) {
233
+ let a = [], o = [], s = [...n.values()].filter(N), c = [], l = /* @__PURE__ */ new Map(), u = /* @__PURE__ */ new Set(), f = (e) => `${e.field}|${e.operator}|${JSON.stringify(e.value)}`, p = (e) => {
234
+ u.has(f(e)) || (u.add(f(e)), c.push(e));
235
+ }, m = (e, t, n) => {
236
+ let r = `${e.id}|${t}`, i = l.get(r);
237
+ i || (i = {
238
+ field: e,
239
+ neg: t,
240
+ options: []
241
+ }, l.set(r, i), c.push(i)), i.options.includes(n) || i.options.push(n);
242
+ };
243
+ t.forEach((t, o) => {
244
+ let c = n.get(t.field);
245
+ if (!c) {
246
+ a.push({
247
+ text: String(t.value),
248
+ reason: `Unknown field ${k(t.field)}`
249
+ });
250
+ return;
251
+ }
252
+ let l = t.value === !0 ? "" : t.value, u = i?.spans[o], f = u && i ? i.tokens.slice(u[0], u[1]) : [], h = f.map((e) => e.toLowerCase()), g = t.neg || h.some((e) => A.has(e)), _ = `${c.label} ${g ? "not " : ""}${l}`.trim();
253
+ if (N(c)) {
254
+ let e = b(l, c.options ?? []);
255
+ if (e.option) {
256
+ m(c, g, e.option);
257
+ return;
258
+ }
259
+ let t = [], n = 0;
260
+ for (let e of l.split(/\s+/).filter((e) => e && !d.has(e.toLowerCase()))) {
261
+ let r = b(e, c.options ?? []);
262
+ if (r.option) {
263
+ m(c, g, r.option), n++;
264
+ continue;
265
+ }
266
+ let i = s.flatMap((t) => {
267
+ let n = b(e, t.options ?? []);
268
+ return n.option ? [{
269
+ f: t,
270
+ option: n.option
271
+ }] : [];
272
+ });
273
+ i.length === 1 ? (m(i[0].f, g, i[0].option), n++) : t.push(e);
274
+ }
275
+ n ? t.length && a.push({
276
+ text: t.join(" "),
277
+ reason: "Not a value of any field"
278
+ }) : a.push({
279
+ text: l,
280
+ reason: e.ambiguous ? `${k(l)} could mean more than one ${c.label}` : `No ${c.label} called ${k(l)}`
281
+ });
282
+ } else if (c.kind === "boolean") {
283
+ let n = l.trim().toLowerCase(), r = t.value === !0 || [
284
+ "yes",
285
+ "true",
286
+ "1"
287
+ ].includes(n);
288
+ if (!r && ![
289
+ "no",
290
+ "false",
291
+ "0"
292
+ ].includes(n)) {
293
+ a.push({
294
+ text: _,
295
+ reason: `${k(l)} is not yes or no`
296
+ });
297
+ return;
298
+ }
299
+ p(e(c, r !== g));
300
+ } else if (c.kind === "number") {
301
+ let n = O(l);
302
+ if (n === null) {
303
+ a.push({
304
+ text: _,
305
+ reason: `${k(l)} is not a number`
306
+ });
307
+ return;
308
+ }
309
+ let r = t.cmp === "lt" ? g ? "gte" : "lt" : t.cmp === "gt" ? g ? "lte" : "gt" : g ? "neq" : "eq";
310
+ p(e(c, n, r));
311
+ } else if (c.kind === "date") {
312
+ let n = u && i ? f.filter((e, n) => {
313
+ let r = u[0] + n;
314
+ return !F.has(i.roles[r]) && i.resolved[r]?.field !== t.field && !j.has(e.toLowerCase()) && !M.has(e.toLowerCase()) && !A.has(e.toLowerCase());
315
+ }).join(" ") : "", o = D(l, r) ?? (n ? D(n, r) : null);
316
+ if (!o) {
317
+ a.push({
318
+ text: _,
319
+ reason: `${k(l || n)} is not a date I know (try “last week”, “3 days ago” or “2026-01-05”)`
320
+ });
321
+ return;
322
+ }
323
+ let s = h.some((e) => j.has(e)) ? "lt" : h.some((e) => M.has(e)) ? "gt" : t.cmp;
324
+ o.type === "relative" ? g ? a.push({
325
+ text: _,
326
+ reason: "A negated “in the last” is not supported"
327
+ }) : p(e(c, o, "in_the_last")) : g ? a.push({
328
+ text: _,
329
+ reason: "A negated date comparison is not supported"
330
+ }) : p(e(c, o, s === "lt" ? "before" : s === "gt" ? "after" : "is"));
331
+ } else {
332
+ if (!l.trim()) {
333
+ a.push({
334
+ text: _,
335
+ reason: `Nothing to look for in ${c.label}`
336
+ });
337
+ return;
338
+ }
339
+ p(e(c, l, g ? "not_contains" : "contains"));
340
+ }
341
+ });
342
+ let h = [];
343
+ for (let t of c) {
344
+ if (!("options" in t)) {
345
+ h.push(t);
346
+ continue;
347
+ }
348
+ let { field: n, neg: r, options: i } = t, a = n.kind === "multiselect" ? r ? "includes_none" : "includes_any" : r ? "is_not" : "is", s = e(n, i.map((e) => e.value), a);
349
+ i.length > 1 && !r && o.push(`Read ${i.map((e) => k(e.label)).join(" and ")} as any of ${n.label}`), u.has(f(s)) || (u.add(f(s)), h.push(s));
350
+ }
351
+ return {
352
+ filters: h,
353
+ unresolved: a,
354
+ notes: o,
355
+ clauses: [...t]
356
+ };
357
+ }
358
+ var F = /* @__PURE__ */ new Set(["FIELD", "FIELD_CONT"]), I = new Set("a an the and or but of to for in on at by with from into as is are was were be been am it its this that these those there here show me my us you your i we they them list find get give see display fetch want need please all any every some only just also then than issue issues task tasks ticket tickets item items thing things result results record records entry entries".split(" "));
359
+ function L(e, t, n, r = {}) {
360
+ let a = r.query ?? v(n), o = i(e, t, a.schema, { segment: !0 }), s = P(o.clauses, a.byName, {
361
+ now: r.now,
362
+ trace: o
363
+ }), c = [...new Set(o.tokens.filter((e, t) => o.roles[t] === "O" && /[a-z0-9]/i.test(e) && !I.has(e.toLowerCase())))].map((e) => ({
364
+ text: e,
365
+ reason: "Not used"
366
+ }));
367
+ return {
368
+ ...s,
369
+ unresolved: [
370
+ ...o.dropped.map((e) => ({
371
+ text: e,
372
+ reason: "Not understood"
373
+ })),
374
+ ...s.unresolved,
375
+ ...c
376
+ ]
377
+ };
378
+ }
379
+ var R = {
380
+ status: "idle",
381
+ text: "",
382
+ pending: !1,
383
+ filters: [],
384
+ unresolved: [],
385
+ notes: []
386
+ };
387
+ function z() {
388
+ return r().then(() => void 0, () => void 0);
389
+ }
390
+ function B(e, t, n = {}) {
391
+ let { debounce: i = 160, enabled: u = !0, maxLength: d = 240, now: f } = n, p = e.trim().slice(0, d), m = f === void 0 ? void 0 : typeof f == "number" ? f : f.getTime(), h = JSON.stringify(t.map((e) => [
392
+ e.id,
393
+ e.label,
394
+ e.kind,
395
+ e.aliases,
396
+ e.options?.map((e) => [
397
+ e.value,
398
+ e.label,
399
+ e.keywords
400
+ ])
401
+ ])), g = s(() => v(t), [h]), [_, y] = l(R), b = c(() => void 0);
402
+ o(() => {
403
+ if (!u || !p) {
404
+ b.current = () => void 0;
405
+ return;
406
+ }
407
+ let e = !1, n = () => {
408
+ r().then((n) => {
409
+ if (e) return;
410
+ let r = L(n, p, t, {
411
+ now: m,
412
+ query: g
413
+ });
414
+ y({
415
+ status: "ready",
416
+ text: p,
417
+ pending: !1,
418
+ filters: r.filters,
419
+ unresolved: r.unresolved,
420
+ notes: r.notes
421
+ });
422
+ }, (t) => {
423
+ e || y({
424
+ ...R,
425
+ status: "error",
426
+ text: p,
427
+ error: t instanceof Error ? t : Error(String(t))
428
+ });
429
+ });
430
+ }, a = setTimeout(n, i);
431
+ return b.current = () => {
432
+ clearTimeout(a), n();
433
+ }, () => {
434
+ e = !0, clearTimeout(a);
435
+ };
436
+ }, [
437
+ p,
438
+ u,
439
+ i,
440
+ g,
441
+ m
442
+ ]);
443
+ let x = a(() => b.current(), []);
444
+ return !u || !p ? {
445
+ ...R,
446
+ refresh: x
447
+ } : _.text === p ? {
448
+ ..._,
449
+ refresh: x
450
+ } : {
451
+ ..._,
452
+ status: _.status === "ready" ? "ready" : "loading",
453
+ text: p,
454
+ pending: !0,
455
+ refresh: x
456
+ };
457
+ }
458
+ //#endregion
459
+ export { v as buildQuerySchema, P as clausesToFilters, L as interpretQuery, b as matchOption, D as parseDateText, B as useFilterQuery, z as warmFilterQuery };
@@ -0,0 +1,120 @@
1
+ import { ReactNode } from 'react';
2
+ export type FilterKind = 'select' | 'multiselect' | 'boolean' | 'date' | 'number' | 'text';
3
+ export interface FilterOption {
4
+ /** Stored in the filter and compared with the item's value. */
5
+ value: string;
6
+ label: string;
7
+ /** An Icon name or any node. */
8
+ icon?: ReactNode;
9
+ /** A CSS color: draws a dot before the label (a status, a severity). */
10
+ color?: string;
11
+ /** Shown trailing in the picker. */
12
+ count?: number;
13
+ /** Extra words the picker's search matches. */
14
+ keywords?: string[];
15
+ }
16
+ export interface FilterField {
17
+ id: string;
18
+ label: string;
19
+ /** An Icon name or any node. */
20
+ icon?: ReactNode;
21
+ /**
22
+ * `select` — an item has one value (status); `multiselect` — it has several (labels, assignees);
23
+ * `boolean`, `date`, `number`, `text`.
24
+ */
25
+ kind: FilterKind;
26
+ /** The values of a `select` / `multiselect` (and what the natural-language input can name). */
27
+ options?: FilterOption[];
28
+ /** Other words for the field in a typed phrase ("sev" for Severity). */
29
+ aliases?: string[];
30
+ }
31
+ export type FilterOperator = 'is' | 'is_not' | 'is_any_of' | 'is_none_of' | 'includes_any' | 'includes_all' | 'includes_none' | 'contains' | 'not_contains' | 'before' | 'after' | 'in_the_last' | 'eq' | 'neq' | 'lt' | 'lte' | 'gt' | 'gte';
32
+ /** Operators each kind offers, in menu order. The first is the default. */
33
+ export declare const FILTER_OPERATORS: Record<FilterKind, readonly FilterOperator[]>;
34
+ /** The operators a kind offers. */
35
+ export declare function operatorsFor(kind: FilterKind): readonly FilterOperator[];
36
+ /** The operator a new filter of this kind starts with. */
37
+ export declare function defaultOperator(kind: FilterKind): FilterOperator;
38
+ /** An operator as words. With one value selected the "any of" forms read naturally as "is" / "includes". */
39
+ export declare function operatorLabel(operator: FilterOperator, valueCount?: number): string;
40
+ export type DatePreset = 'today' | 'yesterday' | 'this_week' | 'last_week' | 'last_7_days' | 'last_30_days' | 'this_month' | 'last_month' | 'this_year';
41
+ export type RelativeUnit = 'day' | 'week' | 'month' | 'year';
42
+ /** A date filter's value: a named range, one calendar day (`YYYY-MM-DD`), or "N units back from now". */
43
+ export type DateValue = {
44
+ type: 'preset';
45
+ preset: DatePreset;
46
+ } | {
47
+ type: 'date';
48
+ date: string;
49
+ } | {
50
+ type: 'relative';
51
+ amount: number;
52
+ unit: RelativeUnit;
53
+ };
54
+ /** `string[]` for select / multiselect (option values), `boolean`, `number`, `string` (text) or a `DateValue`. */
55
+ export type FilterValue = string[] | boolean | number | string | DateValue;
56
+ export declare const DATE_PRESETS: ReadonlyArray<{
57
+ id: DatePreset;
58
+ label: string;
59
+ }>;
60
+ export declare const RELATIVE_UNITS: readonly RelativeUnit[];
61
+ /** One condition on one field. */
62
+ export interface Filter {
63
+ /** Identity for keys and edits — not part of the serialized form. */
64
+ id: string;
65
+ /** A `FilterField.id`. */
66
+ field: string;
67
+ operator: FilterOperator;
68
+ value: FilterValue;
69
+ }
70
+ /** A new filter id (`flt_1`, `flt_2`, …): unique within the page, stable within a session. */
71
+ export declare function createFilterId(): string;
72
+ /** The empty value a kind starts from. */
73
+ export declare function emptyValue(kind: FilterKind): FilterValue;
74
+ export declare const isDateValue: (v: unknown) => v is DateValue;
75
+ /** Does the value say anything yet? An incomplete filter (no values picked, an empty text box) matches everything. */
76
+ export declare function isFilterComplete(filter: Filter): boolean;
77
+ /** Make the operator and value agree: a `select` with two values is "any of", a date switched to "in the last" gets a span. */
78
+ export declare function coerceFilter(field: FilterField, operator: FilterOperator, value: FilterValue): {
79
+ operator: FilterOperator;
80
+ value: FilterValue;
81
+ };
82
+ /** `filter` with a new value (the operator follows: "is" becomes "is any of" when a second value is picked, and back). */
83
+ export declare function withValue(field: FilterField, filter: Filter, value: FilterValue): Filter;
84
+ /** `filter` with the operator the user chose, taken literally: "is" keeps one value, a date gets the value shape the operator needs. */
85
+ export declare function withOperator(field: FilterField, filter: Filter, operator: FilterOperator): Filter;
86
+ /** A new filter for `field` (operator and value coerced to agree). */
87
+ export declare function createFilter(field: FilterField, value?: FilterValue, operator?: FilterOperator): Filter;
88
+ export interface DateOptions {
89
+ /** "Now" for presets and "in the last" (default: the current time). Pass a fixed instant in tests and stories. */
90
+ now?: Date | number;
91
+ /** First day of the week for `this_week` / `last_week`: 0 Sunday … 6 (default 1, Monday). */
92
+ weekStart?: number;
93
+ }
94
+ /** The half-open range `[start, end)` (ms) a date value covers, or null when it is invalid. */
95
+ export declare function dateRange(value: DateValue, { now, weekStart }?: DateOptions): {
96
+ start: number;
97
+ end: number;
98
+ } | null;
99
+ /** An item's raw date (a Date, epoch ms, or an ISO string — a bare `YYYY-MM-DD` is the local day) as epoch ms. */
100
+ export declare function toTime(raw: unknown): number | null;
101
+ export interface MatchOptions extends DateOptions {
102
+ /** `all` (default): every filter must hold; `any`: at least one. */
103
+ match?: 'all' | 'any';
104
+ }
105
+ /** Does one item satisfy the filters? Filters that are incomplete or name an unknown field are ignored; no filters means yes. */
106
+ export declare function matchesFilters<T>(item: T, filters: readonly Filter[], schema: readonly FilterField[], getValue: (item: T, fieldId: string) => unknown, options?: MatchOptions): boolean;
107
+ /** The items that satisfy the filters (see `matchesFilters`), in their original order. */
108
+ export declare function matchFilters<T>(items: readonly T[], filters: readonly Filter[], schema: readonly FilterField[], getValue: (item: T, fieldId: string) => unknown, options?: MatchOptions): T[];
109
+ /** A filter's value as words: option labels, "Last 7 days", "Jan 5, 2026", "3 days". */
110
+ export declare function describeValue(filter: Filter, field?: FilterField, locale?: string): string;
111
+ /** A filter as a sentence: "Status is any of Open, Confirmed". */
112
+ export declare function describeFilter(filter: Filter, schema: readonly FilterField[], locale?: string): string;
113
+ /** The filters as a URL-safe string. Incomplete filters are left out; ids are not written. */
114
+ export declare function serializeFilters(filters: readonly Filter[]): string;
115
+ /**
116
+ * The inverse of `serializeFilters`, checked against the schema: a part that names an unknown field, an operator the
117
+ * field's kind does not offer, or a value of the wrong shape is dropped (never thrown). New ids are generated.
118
+ */
119
+ export declare function parseFilters(text: string, schema: readonly FilterField[]): Filter[];
120
+ //# sourceMappingURL=filter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["../../src/lib/filter.ts"],"names":[],"mappings":"AAAA,OAAO,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