bitboss-ui 3.0.0-beta.64 → 3.0.0-beta.65
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/ai/changelog.json +82 -4
- package/dist/ai/components.json +2 -2
- package/dist/ai/composables/useBbConfig.md +8 -1
- package/dist/ai/guides/inertia-helpers.md +1127 -275
- package/dist/ai/guides/migration/v2-to-v3.md +48 -0
- package/dist/ai/guides/passthrough.md +4 -2
- package/dist/ai/helpers/inertia/manifest.json +145 -62
- package/dist/ai/helpers/inertia/messages.ts +33 -0
- package/dist/ai/helpers/inertia/useConfirmOnRouteLeave.ts +116 -16
- package/dist/ai/helpers/inertia/useHasChanged.ts +34 -16
- package/dist/ai/helpers/inertia/useLazyProp.ts +102 -36
- package/dist/ai/helpers/inertia/useLazyPropGetter.ts +3 -1
- package/dist/ai/helpers/inertia/usePaginatedResponseContext.ts +129 -24
- package/dist/ai/helpers/inertia/usePromiseForm.ts +121 -14
- package/dist/ai/helpers/inertia/useQuery.ts +133 -11
- package/dist/ai/helpers/inertia/useQueryObject.ts +74 -67
- package/dist/ai/helpers/inertia/useResourceContext.ts +60 -14
- package/dist/ai/helpers/inertia/useRouteQuery.ts +29 -24
- package/dist/ai/helpers/inertia/useScreenSizes.ts +9 -7
- package/dist/ai/helpers/inertia/useTableContext.ts +5 -2
- package/dist/ai/helpers/inertia/utils.ts +14 -0
- package/dist/ai/manifest/index.json +2 -2
- package/dist/ai/recipes/inertia/approvals-inbox.md +1 -1
- package/dist/ai/recipes/inertia/inline-edit-workspace.md +1 -1
- package/dist/ai/recipes/inertia/ownership-atlas.md +1 -1
- package/dist/ai/recipes/inertia/records-workspace.md +1 -1
- package/dist/ai/recipes/inertia/upload-center.md +1 -1
- package/dist/ai/source/BbSelectPopover.md +25 -1
- package/dist/components/BbSelectPopover/BbSelectPopover.vue_vue_type_script_setup_true_lang.js +306 -294
- package/dist/composables/useBbConfig.d.ts +1 -0
- package/dist/composables/useBbConfig.js +11 -7
- package/dist/llms-full.txt +1192 -283
- package/dist/styles.css +1 -1
- package/dist/utils/versionCheck.js +1 -1
- package/package.json +3 -2
- package/scripts/lib/helpers-add.mjs +26 -2
|
@@ -2335,6 +2335,54 @@ Nothing here fails to compile — these change what existing code does.
|
|
|
2335
2335
|
stay open across picks (a settings panel of several radios): set
|
|
2336
2336
|
`:close-on-select="false"`; `true` closes after every change, a
|
|
2337
2337
|
multiple pick included.
|
|
2338
|
+
113. **`useQueryObject` takes Inertia's visit options in one place** (after
|
|
2339
|
+
3.0.0-beta.64, the Inertia helper, after `npx bitboss-ui helpers
|
|
2340
|
+
update`). Move `only`, `preserveState`, `preserveScroll` and `replace`
|
|
2341
|
+
into `visitOptions: { only: ['invoices'] }`. `shouldNavigate: () => !x`
|
|
2342
|
+
becomes `paused: () => x` (inverted); resuming now sends the object's
|
|
2343
|
+
current state once, so a page that reassigned the object to catch up
|
|
2344
|
+
after its own visit can drop that. `resetPage: true, resetKeys: [k]`
|
|
2345
|
+
becomes `resetKeys: ['page', k]`: the default is `['page']` and a
|
|
2346
|
+
passed list replaces it. `transform` is gone (pass a getter that builds
|
|
2347
|
+
the keys) and so is `arrayFormat` (`QUERY_ARRAY_FORMAT` in
|
|
2348
|
+
`useQuery.ts`, one value for every helper). `server: false` writes the
|
|
2349
|
+
URL with no request.
|
|
2350
|
+
114. **The URL helpers read and write the URL as the server does** (after
|
|
2351
|
+
3.0.0-beta.64, `useQuery` / `useRouteQuery`, after a helpers update).
|
|
2352
|
+
`useQuery` decodes once: `?q=R%26D` reads `R&D`, and an encoded `%2C`
|
|
2353
|
+
separates a comma array as PHP and Spatie read it (with the comma
|
|
2354
|
+
format a comma typed into free text reads back as a separator, as on
|
|
2355
|
+
the server). Writes made before the server answers build on each other
|
|
2356
|
+
(sort and direction in one click both land), and a write changes only
|
|
2357
|
+
its own key. `useRouteQuery`: move `preserveScroll` / `preserveState`
|
|
2358
|
+
into `visitOptions`; `null` / `undefined` now remove the key (it used
|
|
2359
|
+
to write the string `'null'`); a repeated key reads its last value.
|
|
2360
|
+
115. **The pager pushes history, and the visit helpers settle** (after
|
|
2361
|
+
3.0.0-beta.64, after a helpers update). A `page` write is a history
|
|
2362
|
+
entry (Back goes to the previous page; `visitOptions: { replace: true }`
|
|
2363
|
+
keeps the old behaviour); a new `perPage` returns to page 1 in the same
|
|
2364
|
+
visit; a page past the last goes to the last. `items` is a copy that a
|
|
2365
|
+
visit asking for the prop resets, while other prop swaps keep its edits
|
|
2366
|
+
(this replaces item 102's rule). New options `pageQueryKey` /
|
|
2367
|
+
`perPageQueryKey` for a custom Laravel `pageName`. `usePromiseForm`
|
|
2368
|
+
resolves `false` when a guard cancels and rejects an Inertia error page;
|
|
2369
|
+
`useConfirmOnRouteLeave`'s `whitelist` now only lets submits through, so
|
|
2370
|
+
a Cancel link to the list asks.
|
|
2371
|
+
116. **The leave guard asks the browser too, and dirty checks stop crying
|
|
2372
|
+
wolf** (after 3.0.0-beta.64, after a helpers update).
|
|
2373
|
+
`useConfirmOnRouteLeave` now also gets the browser's "Leave site?"
|
|
2374
|
+
prompt on a tab close, reload, typed URL or plain `<a>` (not for a
|
|
2375
|
+
whitelisted save that leaves through `Inertia::location()`), takes
|
|
2376
|
+
`stack`, and takes its words from the new `messages.ts` in the library's
|
|
2377
|
+
`locale` (add your locale there instead of passing labels per page). `useHasChanged` no longer reads an untouched form with Dates,
|
|
2378
|
+
Files or `undefined` as changed. `items` in the paginated helpers is a
|
|
2379
|
+
deep copy, so editing a row leaves the page prop alone. `useScreenSizes`
|
|
2380
|
+
follows the plugin's `mobileMaxWidth`; import `useMobile` from
|
|
2381
|
+
`bitboss-ui` where you used `SCREEN_BREAKPOINT_MD`.
|
|
2382
|
+
117. **Inertia 2 or 3** (3.0.0-beta.65). The optional `@inertiajs/vue3` peer
|
|
2383
|
+
now starts at 2.0.0. The Inertia helpers run and type-check on both
|
|
2384
|
+
majors; on Inertia 2, `useLazyProp` cannot keep the page's validation
|
|
2385
|
+
errors across its reload.
|
|
2338
2386
|
|
|
2339
2387
|
## 7. Class overrides → variants
|
|
2340
2388
|
|
|
@@ -351,8 +351,10 @@ part accepts a function** on the instance, beside a plain value:
|
|
|
351
351
|
- **The row's facts ride beside them.** Today that is `variant`, a typed
|
|
352
352
|
string, where the rows have one: a dropdown entry's own (`default` when it
|
|
353
353
|
has none), a toast's, or the component's (`BbTabs`). On `BbSelect` /
|
|
354
|
-
`BbSelectPopover` it is `known`: `true` for a `known-items` stand-in
|
|
355
|
-
|
|
354
|
+
`BbSelectPopover` it is `known`: `true` for a `known-items` stand-in (a row
|
|
355
|
+
the form already held, named before the real options load; see the
|
|
356
|
+
[Fetch items playbook](./fetch-items-playbook.md)), whose `item` is then
|
|
357
|
+
`{ value, label }`, as in the `option` slot. Other props are
|
|
356
358
|
not in it: you wrote the function where you pass them.
|
|
357
359
|
- The result is a normal `PtValue` (a class list or `{ class, style, attrs }`);
|
|
358
360
|
`false` / `null` / `undefined` mean _leave the row as it is_.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"schema": 1,
|
|
3
|
-
"version": "3.0.0-beta.
|
|
3
|
+
"version": "3.0.0-beta.65",
|
|
4
4
|
"canon": "bb-canon/1",
|
|
5
5
|
"folder": "inertia-helpers",
|
|
6
6
|
"helpers": {
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"file": "useConfirmOnRouteLeave.ts",
|
|
21
21
|
"summary": "A dirty-state guard: asks through useConfirm before an Inertia visit leaves the page.",
|
|
22
22
|
"closure": [
|
|
23
|
+
"messages.ts",
|
|
23
24
|
"useConfirmOnRouteLeave.ts"
|
|
24
25
|
],
|
|
25
26
|
"packages": [],
|
|
@@ -67,7 +68,9 @@
|
|
|
67
68
|
"packages": [
|
|
68
69
|
"object-code"
|
|
69
70
|
],
|
|
70
|
-
"typePackages": [
|
|
71
|
+
"typePackages": [
|
|
72
|
+
"@inertiajs/core"
|
|
73
|
+
]
|
|
71
74
|
},
|
|
72
75
|
"useLazyPropGetter": {
|
|
73
76
|
"file": "useLazyPropGetter.ts",
|
|
@@ -80,7 +83,9 @@
|
|
|
80
83
|
"packages": [
|
|
81
84
|
"object-code"
|
|
82
85
|
],
|
|
83
|
-
"typePackages": [
|
|
86
|
+
"typePackages": [
|
|
87
|
+
"@inertiajs/core"
|
|
88
|
+
]
|
|
84
89
|
},
|
|
85
90
|
"useLoading": {
|
|
86
91
|
"file": "useLoading.ts",
|
|
@@ -97,7 +102,7 @@
|
|
|
97
102
|
"closure": [
|
|
98
103
|
"types.ts",
|
|
99
104
|
"usePaginatedResponseContext.ts",
|
|
100
|
-
"
|
|
105
|
+
"useQuery.ts",
|
|
101
106
|
"utils.ts"
|
|
102
107
|
],
|
|
103
108
|
"packages": [
|
|
@@ -137,21 +142,23 @@
|
|
|
137
142
|
"packages": [
|
|
138
143
|
"query-string"
|
|
139
144
|
],
|
|
140
|
-
"typePackages": [
|
|
145
|
+
"typePackages": [
|
|
146
|
+
"@inertiajs/core"
|
|
147
|
+
]
|
|
141
148
|
},
|
|
142
149
|
"useQueryObject": {
|
|
143
150
|
"file": "useQueryObject.ts",
|
|
144
151
|
"summary": "The filter engine: mirrors a filters object into the query string with an Inertia visit per change.",
|
|
145
152
|
"closure": [
|
|
146
153
|
"useQuery.ts",
|
|
147
|
-
"useQueryObject.ts"
|
|
148
|
-
"utils.ts"
|
|
154
|
+
"useQueryObject.ts"
|
|
149
155
|
],
|
|
150
156
|
"packages": [
|
|
151
|
-
"object-code",
|
|
152
157
|
"query-string"
|
|
153
158
|
],
|
|
154
|
-
"typePackages": [
|
|
159
|
+
"typePackages": [
|
|
160
|
+
"@inertiajs/core"
|
|
161
|
+
]
|
|
155
162
|
},
|
|
156
163
|
"useResourceContext": {
|
|
157
164
|
"file": "useResourceContext.ts",
|
|
@@ -170,12 +177,15 @@
|
|
|
170
177
|
"file": "useRouteQuery.ts",
|
|
171
178
|
"summary": "One query parameter as a writable ref; a write is a replace visit.",
|
|
172
179
|
"closure": [
|
|
180
|
+
"useQuery.ts",
|
|
173
181
|
"useRouteQuery.ts"
|
|
174
182
|
],
|
|
175
183
|
"packages": [
|
|
176
184
|
"query-string"
|
|
177
185
|
],
|
|
178
|
-
"typePackages": [
|
|
186
|
+
"typePackages": [
|
|
187
|
+
"@inertiajs/core"
|
|
188
|
+
]
|
|
179
189
|
},
|
|
180
190
|
"useScreenSizes": {
|
|
181
191
|
"file": "useScreenSizes.ts",
|
|
@@ -194,7 +204,7 @@
|
|
|
194
204
|
"closure": [
|
|
195
205
|
"types.ts",
|
|
196
206
|
"usePaginatedResponseContext.ts",
|
|
197
|
-
"
|
|
207
|
+
"useQuery.ts",
|
|
198
208
|
"useTableContext.ts",
|
|
199
209
|
"useTableSelectionContext.ts",
|
|
200
210
|
"utils.ts"
|
|
@@ -235,6 +245,23 @@
|
|
|
235
245
|
}
|
|
236
246
|
},
|
|
237
247
|
"files": {
|
|
248
|
+
"messages.ts": {
|
|
249
|
+
"sha256": "da39a86e896a4b969b7d15a0a81cfa2739be2bd2a413661e4b5cbdabc1111296",
|
|
250
|
+
"local": [],
|
|
251
|
+
"packages": [
|
|
252
|
+
"bitboss-ui",
|
|
253
|
+
"vue"
|
|
254
|
+
],
|
|
255
|
+
"typePackages": [],
|
|
256
|
+
"published": {
|
|
257
|
+
"bytes": [
|
|
258
|
+
"da39a86e896a4b969b7d15a0a81cfa2739be2bd2a413661e4b5cbdabc1111296"
|
|
259
|
+
],
|
|
260
|
+
"babel7": [
|
|
261
|
+
"4501571c0b8ac3fe222ddda33cef111b0ca58713e565039e0df520f04cd1f45c"
|
|
262
|
+
]
|
|
263
|
+
}
|
|
264
|
+
},
|
|
238
265
|
"types.ts": {
|
|
239
266
|
"sha256": "1339fbfcebecb35d445a0fedfc5c1a5a986dd6cbb198fb6f32ae61f47a390593",
|
|
240
267
|
"local": [],
|
|
@@ -272,8 +299,10 @@
|
|
|
272
299
|
}
|
|
273
300
|
},
|
|
274
301
|
"useConfirmOnRouteLeave.ts": {
|
|
275
|
-
"sha256": "
|
|
276
|
-
"local": [
|
|
302
|
+
"sha256": "9f67146544d7b1db75997dce3a9483d9c23427b679da6f499886dd13f20f53c5",
|
|
303
|
+
"local": [
|
|
304
|
+
"messages.ts"
|
|
305
|
+
],
|
|
277
306
|
"packages": [
|
|
278
307
|
"@inertiajs/vue3",
|
|
279
308
|
"bitboss-ui",
|
|
@@ -286,14 +315,24 @@
|
|
|
286
315
|
"65e7cbb31b82e90dbd317a48152144776ae0a41100015b76d2d7567a2f9b1ee7",
|
|
287
316
|
"5234432d94be0fb0ecd6043d8adb7c4f4945dac68f20d0f7e79c3b85f1f56231",
|
|
288
317
|
"93ba89d29ff8fc4a9bfdfa707a3af29e47979d93700a320322899b9749aa7512",
|
|
289
|
-
"9b7d6fc224524123c55617528fe5c6a1ec866d168c96622fba1003086db468ed"
|
|
318
|
+
"9b7d6fc224524123c55617528fe5c6a1ec866d168c96622fba1003086db468ed",
|
|
319
|
+
"73620638c22423c81e3bcf891583d1d16fe9ecb9d63c418ffabe72c69113f086",
|
|
320
|
+
"34b79814dfb5644f25f05b53b3011bd8256b2f857a3d728f907b480cbb0c11e0",
|
|
321
|
+
"b25662a8675194ca2fe62e272f88a6a20c56377b1c3f4958a0f74bce5f68409a",
|
|
322
|
+
"6c2cc07e8207c360fb296305f381a081b626f4ff50021de4b99e487452acaf55",
|
|
323
|
+
"9f67146544d7b1db75997dce3a9483d9c23427b679da6f499886dd13f20f53c5"
|
|
290
324
|
],
|
|
291
325
|
"babel7": [
|
|
292
326
|
"19b6368a85f44e593d9fd3d31c559c13ce5774884e4cfa768afc160509fdf1a5",
|
|
293
327
|
"49efad212acb247101ff7143278f5a975a960b54e80b43e9cdd806cec6001457",
|
|
294
328
|
"5f93aa1bb789724576cbf871339fa6dab37eb2f607c320493974c879251e3477",
|
|
295
329
|
"a6be6e7bd518cb7f161f0a2e675a62d6d4e85bf6b7a0908dbb253faffc07df2a",
|
|
296
|
-
"a6be6e7bd518cb7f161f0a2e675a62d6d4e85bf6b7a0908dbb253faffc07df2a"
|
|
330
|
+
"a6be6e7bd518cb7f161f0a2e675a62d6d4e85bf6b7a0908dbb253faffc07df2a",
|
|
331
|
+
"20499f93df43e0450e5dbe393964e3eb6c597ae267e7b810c7cd6ea3328985ea",
|
|
332
|
+
"f59b014b3957cc07b99c27993238aab10bab68ec0c403785bc1a29bd29f64886",
|
|
333
|
+
"ecb2e2d1d42aab26a796c91ca4e48b84e8d7da611d6f4ac2b92551fa5b66724b",
|
|
334
|
+
"9d9607327e1504cd05a00bcbd4ee5206bbff222d6025231d26950031228cb176",
|
|
335
|
+
"4388c4791b925ea28e514cec9be2f1d35cad972daae8165393a10dcadfd6bcd8"
|
|
297
336
|
]
|
|
298
337
|
}
|
|
299
338
|
},
|
|
@@ -317,20 +356,25 @@
|
|
|
317
356
|
}
|
|
318
357
|
},
|
|
319
358
|
"useHasChanged.ts": {
|
|
320
|
-
"sha256": "
|
|
359
|
+
"sha256": "166cb83201b372f3ee700295be475cc2b2529451571dd2c71ae81c81253dc19a",
|
|
321
360
|
"local": [
|
|
322
361
|
"utils.ts"
|
|
323
362
|
],
|
|
324
363
|
"packages": [
|
|
364
|
+
"object-code",
|
|
325
365
|
"vue"
|
|
326
366
|
],
|
|
327
367
|
"typePackages": [],
|
|
328
368
|
"published": {
|
|
329
369
|
"bytes": [
|
|
330
|
-
"3de762ee9ba9bc2afe1f78b130b2ccce0143e2d48e97a0bc72587d55e4f795b8"
|
|
370
|
+
"3de762ee9ba9bc2afe1f78b130b2ccce0143e2d48e97a0bc72587d55e4f795b8",
|
|
371
|
+
"98b59218f44200ea303363e2b4c9271bd3708facaa7e146bb42f826cc3e4b67c",
|
|
372
|
+
"166cb83201b372f3ee700295be475cc2b2529451571dd2c71ae81c81253dc19a"
|
|
331
373
|
],
|
|
332
374
|
"babel7": [
|
|
333
|
-
"afe5ef18c99f21b936186df5fc27043bf1b48306108d41e7424a5537e0a48110"
|
|
375
|
+
"afe5ef18c99f21b936186df5fc27043bf1b48306108d41e7424a5537e0a48110",
|
|
376
|
+
"6607c26d657ba39444fb80af32259bba7b7674ccb04b7a5d6a4e6c3acaf44bbc",
|
|
377
|
+
"8806dae9a3b370e74412309e90a91f06f86b7e7752765300fb86ce6814338d43"
|
|
334
378
|
]
|
|
335
379
|
}
|
|
336
380
|
},
|
|
@@ -351,7 +395,7 @@
|
|
|
351
395
|
}
|
|
352
396
|
},
|
|
353
397
|
"useLazyProp.ts": {
|
|
354
|
-
"sha256": "
|
|
398
|
+
"sha256": "f92cb58c56ce79dbd458b0c0976568bf6135c50233909196963d4ab67e20655b",
|
|
355
399
|
"local": [
|
|
356
400
|
"utils.ts"
|
|
357
401
|
],
|
|
@@ -359,20 +403,26 @@
|
|
|
359
403
|
"@inertiajs/vue3",
|
|
360
404
|
"vue"
|
|
361
405
|
],
|
|
362
|
-
"typePackages": [
|
|
406
|
+
"typePackages": [
|
|
407
|
+
"@inertiajs/core"
|
|
408
|
+
],
|
|
363
409
|
"published": {
|
|
364
410
|
"bytes": [
|
|
365
411
|
"2cc15342591f3a6e6ede169236a67b5f1416e306f56097f7592b2f9c5a4c9f1a",
|
|
366
|
-
"6c1365a1ced0bcea086cbbef080b8d11a19e69f43ac39542fe993cc948305bab"
|
|
412
|
+
"6c1365a1ced0bcea086cbbef080b8d11a19e69f43ac39542fe993cc948305bab",
|
|
413
|
+
"6bc7b752c71c48dbac444e38d98aa64a8f11dc0bff1a4c1d952d6899e2d026dd",
|
|
414
|
+
"f92cb58c56ce79dbd458b0c0976568bf6135c50233909196963d4ab67e20655b"
|
|
367
415
|
],
|
|
368
416
|
"babel7": [
|
|
369
417
|
"40422db6fb69ec8857c00c33e0c91fdc3164aff5b31d2a58d81c97acf1385fe4",
|
|
370
|
-
"81352cc8ab909136175106eb4c6781498230ddc4f728bb2bd49c28a77e1aa843"
|
|
418
|
+
"81352cc8ab909136175106eb4c6781498230ddc4f728bb2bd49c28a77e1aa843",
|
|
419
|
+
"513cda52068426369b1eae003ea3553811f93c49bd294c133ae996280aec453b",
|
|
420
|
+
"0ced3ed753775463f5b185e3acda699ee7d809bcab6128487c9507f92e5a095f"
|
|
371
421
|
]
|
|
372
422
|
}
|
|
373
423
|
},
|
|
374
424
|
"useLazyPropGetter.ts": {
|
|
375
|
-
"sha256": "
|
|
425
|
+
"sha256": "9a31e21ebe707f23ff2b55a78ced1af2deeb1b3669ffeb120049a2010e766d66",
|
|
376
426
|
"local": [
|
|
377
427
|
"useLazyProp.ts",
|
|
378
428
|
"utils.ts"
|
|
@@ -383,10 +433,12 @@
|
|
|
383
433
|
],
|
|
384
434
|
"published": {
|
|
385
435
|
"bytes": [
|
|
386
|
-
"fe60121eee2ae6a9e742eb12513d5409f758fea9744bca5cb329ad878bde08e4"
|
|
436
|
+
"fe60121eee2ae6a9e742eb12513d5409f758fea9744bca5cb329ad878bde08e4",
|
|
437
|
+
"9a31e21ebe707f23ff2b55a78ced1af2deeb1b3669ffeb120049a2010e766d66"
|
|
387
438
|
],
|
|
388
439
|
"babel7": [
|
|
389
|
-
"dffeaba6cc75bffdf2fb7dd0218569aef732f0761f15f89eea7724a072cbcbf5"
|
|
440
|
+
"dffeaba6cc75bffdf2fb7dd0218569aef732f0761f15f89eea7724a072cbcbf5",
|
|
441
|
+
"4188638a7653efac9166a6cf7cd92ddcfba9e2072d6160f078e5627aca0cf381"
|
|
390
442
|
]
|
|
391
443
|
}
|
|
392
444
|
},
|
|
@@ -407,10 +459,10 @@
|
|
|
407
459
|
}
|
|
408
460
|
},
|
|
409
461
|
"usePaginatedResponseContext.ts": {
|
|
410
|
-
"sha256": "
|
|
462
|
+
"sha256": "1bd1ceaf4387c103a8c49bfc32ee3b3267d9719e1d46862645b9db234fb74328",
|
|
411
463
|
"local": [
|
|
412
464
|
"types.ts",
|
|
413
|
-
"
|
|
465
|
+
"useQuery.ts",
|
|
414
466
|
"utils.ts"
|
|
415
467
|
],
|
|
416
468
|
"packages": [
|
|
@@ -426,18 +478,22 @@
|
|
|
426
478
|
"94b8fa287b5e7f78fef60aa09248e19cf02c3086c01875d07a8c682e92fc064d",
|
|
427
479
|
"f253a9b456fddd938e0a6b47de6d751d9de3a7f594645385a1754c5c4b0b0aa0",
|
|
428
480
|
"ab85cddc1e2b878f3866466fc0c664f65b05274a9248a29d39c13a292a196369",
|
|
429
|
-
"dd9e3fc870715bde5fc91e57068ce43d880a248aabe7eb1e1d18a7d2942851fd"
|
|
481
|
+
"dd9e3fc870715bde5fc91e57068ce43d880a248aabe7eb1e1d18a7d2942851fd",
|
|
482
|
+
"01024e10347dfe2b9d70f2516e955a582d39fe8b30c917eb0cf7e826482284d1",
|
|
483
|
+
"1bd1ceaf4387c103a8c49bfc32ee3b3267d9719e1d46862645b9db234fb74328"
|
|
430
484
|
],
|
|
431
485
|
"babel7": [
|
|
432
486
|
"f4497f348d4c9f93a0f8dd99a40d86054786084056f900f4f94a1ab73df0c508",
|
|
433
487
|
"21e4b939126a2b3eb669fdf373aad7d6fe1aedaf8df39d31c822b61fd05950e6",
|
|
434
488
|
"f0ef3e517c9070006742d4bde478c94af85dda157a241689f71225d31794ea8c",
|
|
435
|
-
"37c6ebc63bd70413a02cc7bf2e1923dbd1dab63628ed19605d274d18717f53bf"
|
|
489
|
+
"37c6ebc63bd70413a02cc7bf2e1923dbd1dab63628ed19605d274d18717f53bf",
|
|
490
|
+
"ffa9f37128fd32fcf0ed8916540806f8d7484e738ba6154eb153d1deeecdba57",
|
|
491
|
+
"dd4939ba9da26b8f90074aaedcff7b8dfa7b8795d3d4e057899fe639ebee40c4"
|
|
436
492
|
]
|
|
437
493
|
}
|
|
438
494
|
},
|
|
439
495
|
"usePromiseForm.ts": {
|
|
440
|
-
"sha256": "
|
|
496
|
+
"sha256": "28c84f3bc631dc60b6aa206e3b68ce38de87396e80b1c473b76c6334c76c29c2",
|
|
441
497
|
"local": [
|
|
442
498
|
"useLoading.ts"
|
|
443
499
|
],
|
|
@@ -448,11 +504,15 @@
|
|
|
448
504
|
"published": {
|
|
449
505
|
"bytes": [
|
|
450
506
|
"8f71e163532614acb1ce288f6b363dc3d13f83e2915cc6f4fac511c2f9ccd6aa",
|
|
451
|
-
"bb13bb773189f65c6b3602ec37e8f552f0ebed245625f1e8eee00c7fd2fce151"
|
|
507
|
+
"bb13bb773189f65c6b3602ec37e8f552f0ebed245625f1e8eee00c7fd2fce151",
|
|
508
|
+
"c2bb7edd770dffd74779cac7ba53cd69149a19d2976bdf0a2e52a032750bf347",
|
|
509
|
+
"28c84f3bc631dc60b6aa206e3b68ce38de87396e80b1c473b76c6334c76c29c2"
|
|
452
510
|
],
|
|
453
511
|
"babel7": [
|
|
454
512
|
"d39045a53ce96fff1c1826e2c3afd1f25e6c175225409b51723911bb3548de7d",
|
|
455
|
-
"ed3ed5dbbecba86b30251c21dca3ee045e34a07cb0a245290314509690088700"
|
|
513
|
+
"ed3ed5dbbecba86b30251c21dca3ee045e34a07cb0a245290314509690088700",
|
|
514
|
+
"dcf4bdf6875493f109d1c90be73ddd0528b34df7d4c216ca0c0b730b43059c32",
|
|
515
|
+
"6c214e4bc5d716f79871956f120a4e830aa072e4742bb1a84e7bb79ec2cd8f00"
|
|
456
516
|
]
|
|
457
517
|
}
|
|
458
518
|
},
|
|
@@ -474,47 +534,54 @@
|
|
|
474
534
|
}
|
|
475
535
|
},
|
|
476
536
|
"useQuery.ts": {
|
|
477
|
-
"sha256": "
|
|
537
|
+
"sha256": "9e50ce2bcbddd5fd0c0da520857bafe6d1ed9670d409681b3dbf447add7c0068",
|
|
478
538
|
"local": [],
|
|
479
539
|
"packages": [
|
|
480
540
|
"@inertiajs/vue3",
|
|
481
|
-
"query-string"
|
|
541
|
+
"query-string",
|
|
542
|
+
"vue"
|
|
543
|
+
],
|
|
544
|
+
"typePackages": [
|
|
545
|
+
"@inertiajs/core"
|
|
482
546
|
],
|
|
483
|
-
"typePackages": [],
|
|
484
547
|
"published": {
|
|
485
548
|
"bytes": [
|
|
486
|
-
"979ff258297d99c2362eacceb0cc3be78d66a96c63028e513758226cd1e801b7"
|
|
549
|
+
"979ff258297d99c2362eacceb0cc3be78d66a96c63028e513758226cd1e801b7",
|
|
550
|
+
"9e50ce2bcbddd5fd0c0da520857bafe6d1ed9670d409681b3dbf447add7c0068"
|
|
487
551
|
],
|
|
488
552
|
"babel7": [
|
|
489
|
-
"2fce175224709f11ce46d1921e8e71aba77a31c45948274a7f7e53e46e04dd8e"
|
|
553
|
+
"2fce175224709f11ce46d1921e8e71aba77a31c45948274a7f7e53e46e04dd8e",
|
|
554
|
+
"cee7a3f54aaa2ca164dad0ca27fad392df6433c641f1ae2d966d89a8b9c86472"
|
|
490
555
|
]
|
|
491
556
|
}
|
|
492
557
|
},
|
|
493
558
|
"useQueryObject.ts": {
|
|
494
|
-
"sha256": "
|
|
559
|
+
"sha256": "60d42b408ea3a788241830a08d646432e5ae22d1049a3d61505419f1294914fe",
|
|
495
560
|
"local": [
|
|
496
|
-
"useQuery.ts"
|
|
497
|
-
"utils.ts"
|
|
561
|
+
"useQuery.ts"
|
|
498
562
|
],
|
|
499
563
|
"packages": [
|
|
500
|
-
"@inertiajs/vue3",
|
|
501
564
|
"query-string",
|
|
502
565
|
"vue"
|
|
503
566
|
],
|
|
504
|
-
"typePackages": [
|
|
567
|
+
"typePackages": [
|
|
568
|
+
"@inertiajs/core"
|
|
569
|
+
],
|
|
505
570
|
"published": {
|
|
506
571
|
"bytes": [
|
|
507
572
|
"671e59446e26643c5e99363aa16293a1e67cfad51bad177ae9e21e8a7927e35d",
|
|
508
|
-
"3764deac55af86121c77ccd27eb50e2aede1849628487779400759fbc8864afa"
|
|
573
|
+
"3764deac55af86121c77ccd27eb50e2aede1849628487779400759fbc8864afa",
|
|
574
|
+
"60d42b408ea3a788241830a08d646432e5ae22d1049a3d61505419f1294914fe"
|
|
509
575
|
],
|
|
510
576
|
"babel7": [
|
|
511
577
|
"98f575ad83ab02f95dbd985a12d3e4b601972e0f54ba6895c5a8c3146a0e552d",
|
|
512
|
-
"da358fa0137784539b2f34ad7e7b8baa6ed3c769af25fdd6ccfee4661464e5c3"
|
|
578
|
+
"da358fa0137784539b2f34ad7e7b8baa6ed3c769af25fdd6ccfee4661464e5c3",
|
|
579
|
+
"59fa47ce3fa22784623d5e0338db0ae81239e3303b59d3194c9755dce6300df9"
|
|
513
580
|
]
|
|
514
581
|
}
|
|
515
582
|
},
|
|
516
583
|
"useResourceContext.ts": {
|
|
517
|
-
"sha256": "
|
|
584
|
+
"sha256": "59f4b6956906f21786ff1774ed4c851c8a66cfdd6e4aca23628607bcc7393abb",
|
|
518
585
|
"local": [
|
|
519
586
|
"useLoading.ts",
|
|
520
587
|
"utils.ts"
|
|
@@ -526,55 +593,67 @@
|
|
|
526
593
|
"published": {
|
|
527
594
|
"bytes": [
|
|
528
595
|
"fffe335e44ca95b376587ac61d370c72123c048dfe17b7f1444c31feccdc5679",
|
|
529
|
-
"8ff5b42e89f602000aa5ec7bd48bf1925b305736b4b9ff4adc8d1a562ed60f80"
|
|
596
|
+
"8ff5b42e89f602000aa5ec7bd48bf1925b305736b4b9ff4adc8d1a562ed60f80",
|
|
597
|
+
"c60311f8b0f81276de1749428baac6e50e7c54374377ac4149286d0637054c54",
|
|
598
|
+
"59f4b6956906f21786ff1774ed4c851c8a66cfdd6e4aca23628607bcc7393abb"
|
|
530
599
|
],
|
|
531
600
|
"babel7": [
|
|
532
601
|
"475e3201b9473ab2e9867c876099c51e518d78ec3eb9e44336236aa6955847f2",
|
|
533
|
-
"b218669166d3324f3568413fe3d5fb830fc84c61d2e7e96a0ba104761e8f791c"
|
|
602
|
+
"b218669166d3324f3568413fe3d5fb830fc84c61d2e7e96a0ba104761e8f791c",
|
|
603
|
+
"b4147dfc277d69cc135b1a50297e9ad02445fe21a8e69c28b7f8140a8acd1c5d",
|
|
604
|
+
"df0991f7fdf01522b1283243213db92033e404887db064cbef64b5b95a0555f6"
|
|
534
605
|
]
|
|
535
606
|
}
|
|
536
607
|
},
|
|
537
608
|
"useRouteQuery.ts": {
|
|
538
|
-
"sha256": "
|
|
539
|
-
"local": [
|
|
609
|
+
"sha256": "93138a8e991880ac7d405f556c82c0ca5c865f218225b915b91b53f07625db21",
|
|
610
|
+
"local": [
|
|
611
|
+
"useQuery.ts"
|
|
612
|
+
],
|
|
540
613
|
"packages": [
|
|
541
|
-
"@inertiajs/vue3",
|
|
542
614
|
"query-string",
|
|
543
615
|
"vue"
|
|
544
616
|
],
|
|
545
|
-
"typePackages": [
|
|
617
|
+
"typePackages": [
|
|
618
|
+
"@inertiajs/core"
|
|
619
|
+
],
|
|
546
620
|
"published": {
|
|
547
621
|
"bytes": [
|
|
548
622
|
"bfb544301a3e3a794af63ecb3dd131f8e08eaabd7fad04b6cd48108faf79b416",
|
|
549
623
|
"67704ea31bf2b720eae37839d6437c58649c207cb941fad55fe366621a583d61",
|
|
550
|
-
"c964b6299dd58d23779e554ba8baf018bfd2f2af8a44871f2a547303446f2c44"
|
|
624
|
+
"c964b6299dd58d23779e554ba8baf018bfd2f2af8a44871f2a547303446f2c44",
|
|
625
|
+
"93138a8e991880ac7d405f556c82c0ca5c865f218225b915b91b53f07625db21"
|
|
551
626
|
],
|
|
552
627
|
"babel7": [
|
|
553
628
|
"804cf01e5ac73bcef4fd4d24fc70035bc0196b357cdb8151716ac3338c22bcff",
|
|
554
629
|
"39f5d53ea1cd7d7377f599aea938e7de18b0d2638bd2d89f6f3590a332a00d7f",
|
|
555
|
-
"303c4f70afc20583f9d632e6225c385be53f9430ca93cd4c3df8490410968990"
|
|
630
|
+
"303c4f70afc20583f9d632e6225c385be53f9430ca93cd4c3df8490410968990",
|
|
631
|
+
"ab0ee0032483f43af29e16d6c5e81ae50c9a8e0c83c6b7bcc49d11c138dad1bd"
|
|
556
632
|
]
|
|
557
633
|
}
|
|
558
634
|
},
|
|
559
635
|
"useScreenSizes.ts": {
|
|
560
|
-
"sha256": "
|
|
636
|
+
"sha256": "7e9225c105e702b90e57faa2c4b81ca15805070fec2993536d30ec5f9261168c",
|
|
561
637
|
"local": [],
|
|
562
638
|
"packages": [
|
|
563
639
|
"@vueuse/core",
|
|
640
|
+
"bitboss-ui",
|
|
564
641
|
"vue"
|
|
565
642
|
],
|
|
566
643
|
"typePackages": [],
|
|
567
644
|
"published": {
|
|
568
645
|
"bytes": [
|
|
569
|
-
"3ee3f198c37c296f290bcd6f0e21b6dd1f3d1ff69c8ee181c6fb84cfb52aedea"
|
|
646
|
+
"3ee3f198c37c296f290bcd6f0e21b6dd1f3d1ff69c8ee181c6fb84cfb52aedea",
|
|
647
|
+
"7e9225c105e702b90e57faa2c4b81ca15805070fec2993536d30ec5f9261168c"
|
|
570
648
|
],
|
|
571
649
|
"babel7": [
|
|
572
|
-
"758f920e7226fc5715d29c42956fb606014975f1b761d30b02ade61bbf2c82ba"
|
|
650
|
+
"758f920e7226fc5715d29c42956fb606014975f1b761d30b02ade61bbf2c82ba",
|
|
651
|
+
"06dc14a11445dad64c4a2442849d120e75102a682393614dfdb8beb2d3be2919"
|
|
573
652
|
]
|
|
574
653
|
}
|
|
575
654
|
},
|
|
576
655
|
"useTableContext.ts": {
|
|
577
|
-
"sha256": "
|
|
656
|
+
"sha256": "d85753468803e500d8bead3ad27bbb4cf6e90e550bd2f5babd71274f82bb5359",
|
|
578
657
|
"local": [
|
|
579
658
|
"usePaginatedResponseContext.ts",
|
|
580
659
|
"useTableSelectionContext.ts",
|
|
@@ -586,10 +665,12 @@
|
|
|
586
665
|
"typePackages": [],
|
|
587
666
|
"published": {
|
|
588
667
|
"bytes": [
|
|
589
|
-
"f166413350761f4d5637db1414f0b8466b4b860c377b94e97bc328330e991faf"
|
|
668
|
+
"f166413350761f4d5637db1414f0b8466b4b860c377b94e97bc328330e991faf",
|
|
669
|
+
"d85753468803e500d8bead3ad27bbb4cf6e90e550bd2f5babd71274f82bb5359"
|
|
590
670
|
],
|
|
591
671
|
"babel7": [
|
|
592
|
-
"613bf76239ad67fb889892f10b96af3f320146f678851e8e4e8271b6fbc1c655"
|
|
672
|
+
"613bf76239ad67fb889892f10b96af3f320146f678851e8e4e8271b6fbc1c655",
|
|
673
|
+
"298a86a12c1501ce3d62cf40869f130faa6a5d0a092c86fb0f7f86569944b4a8"
|
|
593
674
|
]
|
|
594
675
|
}
|
|
595
676
|
},
|
|
@@ -631,7 +712,7 @@
|
|
|
631
712
|
}
|
|
632
713
|
},
|
|
633
714
|
"utils.ts": {
|
|
634
|
-
"sha256": "
|
|
715
|
+
"sha256": "f1cb5dd057c1bf36c3ea3583b311f9006405d453897c3e6d4ced4dd3bad1770d",
|
|
635
716
|
"local": [],
|
|
636
717
|
"packages": [
|
|
637
718
|
"object-code"
|
|
@@ -639,10 +720,12 @@
|
|
|
639
720
|
"typePackages": [],
|
|
640
721
|
"published": {
|
|
641
722
|
"bytes": [
|
|
642
|
-
"061f0964ce81782184b22349d2c82d0e39f312f33dd306aa2f66a9b50a0d060c"
|
|
723
|
+
"061f0964ce81782184b22349d2c82d0e39f312f33dd306aa2f66a9b50a0d060c",
|
|
724
|
+
"f1cb5dd057c1bf36c3ea3583b311f9006405d453897c3e6d4ced4dd3bad1770d"
|
|
643
725
|
],
|
|
644
726
|
"babel7": [
|
|
645
|
-
"a617c7d9a582990c0b7bbaa5ae05a47a8459e1d4aae03ddf1516e624bc0e3595"
|
|
727
|
+
"a617c7d9a582990c0b7bbaa5ae05a47a8459e1d4aae03ddf1516e624bc0e3595",
|
|
728
|
+
"f4f874e10e0975f930121858ce83ecf18aaacf100c5b01c69530ae5e23ee6544"
|
|
646
729
|
]
|
|
647
730
|
}
|
|
648
731
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
// inertia-helpers/messages.ts
|
|
2
|
+
// The words the helpers show, by the library's `locale`. Yours to edit: add
|
|
3
|
+
// your app's locales next to `en` (keyed as you set `locale`: `it`, or `it-IT`
|
|
4
|
+
// to tell regions apart). `helpers update` keeps your copy; if a release
|
|
5
|
+
// adds words here, `npx bitboss-ui helpers diff messages` shows what to merge.
|
|
6
|
+
import { useBbConfig } from 'bitboss-ui';
|
|
7
|
+
import { computed } from 'vue';
|
|
8
|
+
|
|
9
|
+
export type HelperMessages = {
|
|
10
|
+
leave: { title: string; text: string; yes: string; no: string };
|
|
11
|
+
};
|
|
12
|
+
|
|
13
|
+
export const messages: Record<string, HelperMessages> = {
|
|
14
|
+
en: {
|
|
15
|
+
leave: {
|
|
16
|
+
title: 'Unsaved changes',
|
|
17
|
+
text: 'You have unsaved changes. Leave without saving?',
|
|
18
|
+
yes: 'Discard changes',
|
|
19
|
+
no: 'Keep editing',
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
/** The messages for the current locale: `it-IT`, else `it`, else `en`. */
|
|
25
|
+
export const useHelperMessages = () => {
|
|
26
|
+
const { locale } = useBbConfig();
|
|
27
|
+
return computed(
|
|
28
|
+
() =>
|
|
29
|
+
messages[locale.value] ??
|
|
30
|
+
messages[locale.value.split('-')[0]!.toLowerCase()] ??
|
|
31
|
+
messages.en!
|
|
32
|
+
);
|
|
33
|
+
};
|