@adminiumjs/adminium 0.3.50 → 0.3.51

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 (67) hide show
  1. package/dist/add-ons/bundled-pins.js +13 -13
  2. package/dist/apps/sample-data.d.ts.map +1 -1
  3. package/dist/apps/sample-data.js +61 -33
  4. package/dist/apps/sample-data.js.map +1 -1
  5. package/dist/apps/sample-files.d.ts +27 -0
  6. package/dist/apps/sample-files.d.ts.map +1 -0
  7. package/dist/apps/sample-files.js +112 -0
  8. package/dist/apps/sample-files.js.map +1 -0
  9. package/dist/cli/commands/app/build.d.ts.map +1 -1
  10. package/dist/cli/commands/app/build.js +2 -2
  11. package/dist/cli/commands/app/build.js.map +1 -1
  12. package/dist/cli/commands/app/check.js +2 -2
  13. package/dist/cli/commands/app/check.js.map +1 -1
  14. package/dist/designer/tools.d.ts.map +1 -1
  15. package/dist/designer/tools.js +3 -2
  16. package/dist/designer/tools.js.map +1 -1
  17. package/dist/files/column-judge.d.ts.map +1 -1
  18. package/dist/files/column-judge.js +9 -3
  19. package/dist/files/column-judge.js.map +1 -1
  20. package/dist/project/apps/build-apps.js +2 -2
  21. package/dist/project/apps/build-apps.js.map +1 -1
  22. package/dist/project/apps/check-app.d.ts +10 -0
  23. package/dist/project/apps/check-app.d.ts.map +1 -1
  24. package/dist/project/apps/check-app.js +86 -7
  25. package/dist/project/apps/check-app.js.map +1 -1
  26. package/dist/project/apps/pack-folder.js +2 -2
  27. package/dist/project/apps/pack-folder.js.map +1 -1
  28. package/node_modules/@adminium/adapter-mysql/package.json +1 -1
  29. package/node_modules/@adminium/adapter-postgres/package.json +1 -1
  30. package/node_modules/@adminium/adapter-sqlite/package.json +1 -1
  31. package/node_modules/@adminium/add-on-contracts/package.json +1 -1
  32. package/node_modules/@adminium/engine/package.json +1 -1
  33. package/node_modules/@adminium/i18n/package.json +1 -1
  34. package/node_modules/@adminium/llm/package.json +1 -1
  35. package/node_modules/@adminium/manifest/dist/index.d.ts +1 -1
  36. package/node_modules/@adminium/manifest/dist/index.d.ts.map +1 -1
  37. package/node_modules/@adminium/manifest/dist/index.js +1 -1
  38. package/node_modules/@adminium/manifest/dist/index.js.map +1 -1
  39. package/node_modules/@adminium/manifest/dist/sample.d.ts +25 -2
  40. package/node_modules/@adminium/manifest/dist/sample.d.ts.map +1 -1
  41. package/node_modules/@adminium/manifest/dist/sample.js +46 -6
  42. package/node_modules/@adminium/manifest/dist/sample.js.map +1 -1
  43. package/node_modules/@adminium/manifest/package.json +1 -1
  44. package/node_modules/@adminium/meta/package.json +1 -1
  45. package/node_modules/@adminium/schema-import/package.json +1 -1
  46. package/node_modules/@adminium/widgets/package.json +1 -1
  47. package/package.json +12 -12
  48. package/skills/adminium/references/cli/overview.md +1 -1
  49. package/skills/adminium/references/projects/folder--package-json.md +1 -1
  50. package/skills/adminium-add-ons/references/catalogue/add-ons.md +13 -13
  51. package/skills/adminium-add-ons/references/cli/overview.md +1 -1
  52. package/skills/adminium-app/references/cli/overview.md +1 -1
  53. package/skills/adminium-app/references/manifest/INDEX-2.md +2 -2
  54. package/skills/adminium-app/references/manifest/INDEX.md +3 -3
  55. package/skills/adminium-app/references/manifest/requiredschema--column-rules-6.md +3 -20
  56. package/skills/adminium-app/references/manifest/requiredschema--column-rules-7.md +20 -2
  57. package/skills/adminium-app/references/manifest/requiredschema--column-rules-8.md +2 -0
  58. package/skills/adminium-app/references/manifest/sample-data--sample-people-2.md +15 -0
  59. package/skills/adminium-app/references/manifest/sample-data--sample-people.md +0 -15
  60. package/skills/adminium-design/references/cli/overview.md +1 -1
  61. package/skills/adminium-mobile/references/cli/overview.md +1 -1
  62. package/skills/adminium-project/references/cli/overview.md +1 -1
  63. package/skills/adminium-project/references/projects/deploy--docker.md +1 -1
  64. package/skills/adminium-project/references/projects/deploy--upgrading-adminium.md +2 -2
  65. package/skills/adminium-project/references/projects/folder--package-json.md +1 -1
  66. package/skills/adminium-project/references/projects/pull-and-check--check.md +1 -1
  67. package/skills/adminium-surface/references/cli/overview.md +1 -1
@@ -8,19 +8,19 @@ Server settings → Add-ons.
8
8
 
9
9
  | Key | Version | Package | Fingerprint file |
10
10
  |---|---|---|---|
11
- | `barcode-labels` | 1.0.21 | `https://downloads.adminium.dev/add-ons/barcode-labels/barcode-labels-1.0.21.tgz` | `barcode-labels-1.0.21.tgz.integrity` holding `sha512-5sd5/YDn8yDlEFSdxy34t2cSDIC8WQUlJ5q8aBpRAs6DqJQoydSmyZvVzKCUy1Uou6bpKgRaifsBDFyfToSEWA==` |
12
- | `customiser` | 1.0.21 | `https://downloads.adminium.dev/add-ons/customiser/customiser-1.0.21.tgz` | `customiser-1.0.21.tgz.integrity` holding `sha512-FX6jhT2QbHxTtshbNxM4/heRujR2v7Uv9TrBz2JRDXdcqkPhJlLFIKgHv7NpWRBhCfBH6HMBAX7K1beJCuB4sQ==` |
13
- | `design-studio` | 1.0.21 | `https://downloads.adminium.dev/add-ons/design-studio/design-studio-1.0.21.tgz` | `design-studio-1.0.21.tgz.integrity` holding `sha512-hcV9zA9ZwoUDUF3TJWVusAazfHdWefHyKTATZPrrM3gdFA/ePsVzlyuShXWbJkUQbw5nGVZlpk8D5qGCwIL3OQ==` |
14
- | `forms` | 1.0.21 | `https://downloads.adminium.dev/add-ons/forms/forms-1.0.21.tgz` | `forms-1.0.21.tgz.integrity` holding `sha512-SudgZPjErsVWI+b55sA/JcBq/OCeYN6Ye92QsEvLgDcpmos8/hnxYu1KUPA/XlH2eJMwjuNrPeiP5VrhJ3abug==` |
15
- | `holiday-calendars` | 1.0.21 | `https://downloads.adminium.dev/add-ons/holiday-calendars/holiday-calendars-1.0.21.tgz` | `holiday-calendars-1.0.21.tgz.integrity` holding `sha512-8Da5nB+P9WQ/umCf4VrvNuwW0MejXOJgsr23yxdvaxtGWUx86n5iy8RhRAqibh+AqAJ60MUVOz30u+z4HQWNgQ==` |
16
- | `import-canva` | 1.0.21 | `https://downloads.adminium.dev/add-ons/import-canva/import-canva-1.0.21.tgz` | `import-canva-1.0.21.tgz.integrity` holding `sha512-zb2B9qk187aZLHSTNyQTJ3j7RX9vNup9Cbjz6nFOe0ZxW4c9Vq1gck13N1ulcRG9Gf2EH089mmIzPfRnjtSMaw==` |
17
- | `inventory` | 1.0.21 | `https://downloads.adminium.dev/add-ons/inventory/inventory-1.0.21.tgz` | `inventory-1.0.21.tgz.integrity` holding `sha512-NytLdTTCl+SfapAyWpJXMo8FRIjdGG/Rx1GFPT8Vfg4iLCTvA+3RvQiLhuOGzOI/cdnTSETFp3A69gDl1jqDxA==` |
18
- | `invoices` | 1.0.21 | `https://downloads.adminium.dev/add-ons/invoices/invoices-1.0.21.tgz` | `invoices-1.0.21.tgz.integrity` holding `sha512-7pRMdk4NtjtJhNJllMoSzwA8bn3nzGBK+yHRARcuym/lQLAsY+PBjY0WE6N/Az/5zQyeyHs9nZbmT+Anjt8eXA==` |
19
- | `offers` | 1.0.21 | `https://downloads.adminium.dev/add-ons/offers/offers-1.0.21.tgz` | `offers-1.0.21.tgz.integrity` holding `sha512-KBdBz29AZnOWf7jumhyULpfetYTJUhJLmN4VwHDrsVYgbM4+3hPjUeV99kxk3et1dqsSSSR41mx40jR0va2Lsg==` |
20
- | `payments-paypal` | 1.0.21 | `https://downloads.adminium.dev/add-ons/payments-paypal/payments-paypal-1.0.21.tgz` | `payments-paypal-1.0.21.tgz.integrity` holding `sha512-lUCtAcj4bwVOF5h1C+22aEqPvg5MujH2ID5BVy0NsTW7mCFRM92xblQ1QSgO7IyQ8yRIs+MqTe1ELvOibuLf+g==` |
21
- | `payments-stripe` | 1.0.21 | `https://downloads.adminium.dev/add-ons/payments-stripe/payments-stripe-1.0.21.tgz` | `payments-stripe-1.0.21.tgz.integrity` holding `sha512-XLqK2Ci8jlfriOlSb/klZtyRM7PJCP+T4FHiJ7x+rfQqyxd8lmiHNWhZj7UXXG3IawxnQJvdrVuJvoTutTyD+Q==` |
22
- | `personalizer` | 1.0.21 | `https://downloads.adminium.dev/add-ons/personalizer/personalizer-1.0.21.tgz` | `personalizer-1.0.21.tgz.integrity` holding `sha512-YErLF51H2R+uuomZDpjXOBg+KSg7c16O+rIzkb4ebTqVYV/OXSaxI9apwJ80mIL26w1fSlVwKtXfVyvKAgokKA==` |
23
- | `shipping-dhl` | 1.0.21 | `https://downloads.adminium.dev/add-ons/shipping-dhl/shipping-dhl-1.0.21.tgz` | `shipping-dhl-1.0.21.tgz.integrity` holding `sha512-GXTFRSs1CZLNAjShlavUKHBMAI2zkyDAIfu6TfRFXrsrSUjMsvPFoATf2u8T4o/gM5ERo4qx/0bJAk/UA3YiTA==` |
11
+ | `barcode-labels` | 1.0.22 | `https://downloads.adminium.dev/add-ons/barcode-labels/barcode-labels-1.0.22.tgz` | `barcode-labels-1.0.22.tgz.integrity` holding `sha512-mm6k9ECiDXrWje6/DUuhfHtaXBqeU9sJ0YjApPXrYivJZooko7FLj+1SYQ4SQYamk7CKZR6NFyRaGJTeAEfl3g==` |
12
+ | `customiser` | 1.0.22 | `https://downloads.adminium.dev/add-ons/customiser/customiser-1.0.22.tgz` | `customiser-1.0.22.tgz.integrity` holding `sha512-pho0GFPEsHYpaQcy+hjDB2/dLC5q8hamzlN7y5pnZVcCp3RWoineqBxd6GV5pzoTx8zuoL/u/1ib6xuL0PAKwQ==` |
13
+ | `design-studio` | 1.0.22 | `https://downloads.adminium.dev/add-ons/design-studio/design-studio-1.0.22.tgz` | `design-studio-1.0.22.tgz.integrity` holding `sha512-COPwrIDdr2hJHryPxYiB3KbPZkD4uBr0ECuInH/uOoVGfky7SbJchSYteqyctwvHjSsggH/JpqKZiW3Cdqb1RA==` |
14
+ | `forms` | 1.0.22 | `https://downloads.adminium.dev/add-ons/forms/forms-1.0.22.tgz` | `forms-1.0.22.tgz.integrity` holding `sha512-6xjXqRAZ6Dxr+IuRFZkIYVWsrr3OIYSljnBviR+ohD/hHvXFGfmv9asfnOp3xhN5Q63rFWnq+BMeyQMaENCxTw==` |
15
+ | `holiday-calendars` | 1.0.22 | `https://downloads.adminium.dev/add-ons/holiday-calendars/holiday-calendars-1.0.22.tgz` | `holiday-calendars-1.0.22.tgz.integrity` holding `sha512-PVf4iWNXxVSZ8AGfNrH+C2+QGWO966lNIhe3mGf6cn7nTug1az0AkNiNPXbqRvMN/uwlgNW85vWQMmAYGqk+kA==` |
16
+ | `import-canva` | 1.0.22 | `https://downloads.adminium.dev/add-ons/import-canva/import-canva-1.0.22.tgz` | `import-canva-1.0.22.tgz.integrity` holding `sha512-rzng8TUxKgj/dGBVOLA8GFFS1zOxZ9Fh77mb9pCfc7ku1BrZc3ykp8dKs4YpyVn0L9XrpTnNiA+QkmXAy36ROQ==` |
17
+ | `inventory` | 1.0.22 | `https://downloads.adminium.dev/add-ons/inventory/inventory-1.0.22.tgz` | `inventory-1.0.22.tgz.integrity` holding `sha512-Sqs2uot4aR+zSGbeAsU8pmXN1B9XO7HQMZvRGOWcTEZvQAtt4+h27A78MxEAKYWt3PSfxd4NI7kf1JToREojGg==` |
18
+ | `invoices` | 1.0.22 | `https://downloads.adminium.dev/add-ons/invoices/invoices-1.0.22.tgz` | `invoices-1.0.22.tgz.integrity` holding `sha512-PaZ2OBT6l1lddU9VWgDqem2cT2vCDaDLNTgOJswxmj/F1EjonAR2DC1q3xw5lPBkfWYe4tCeJuv5zJfiauW6dQ==` |
19
+ | `offers` | 1.0.22 | `https://downloads.adminium.dev/add-ons/offers/offers-1.0.22.tgz` | `offers-1.0.22.tgz.integrity` holding `sha512-buWsxcA9PsSBatqGEQrqh7rKZxW8kyIfApfAfGTHWpQF7A8ElbuHMvWiKze/XgqVZto9wQov64xi/ttcvvkKig==` |
20
+ | `payments-paypal` | 1.0.22 | `https://downloads.adminium.dev/add-ons/payments-paypal/payments-paypal-1.0.22.tgz` | `payments-paypal-1.0.22.tgz.integrity` holding `sha512-q+ujCSENLlTY/YsG6WCQp2zkvLMF14Uws727QPZMvqdmTX8tzTUzSoLu8n739oKOlfSRs59wSglyZ3aMvOAYUQ==` |
21
+ | `payments-stripe` | 1.0.22 | `https://downloads.adminium.dev/add-ons/payments-stripe/payments-stripe-1.0.22.tgz` | `payments-stripe-1.0.22.tgz.integrity` holding `sha512-NF1CIN/R1h95H/WjaRIm22g7lE9BtRWQ0c2AgFk3clHhmuVcUPQgJ9hLr6f6O5HmcOASdOwh8RlY7cumtlAxrw==` |
22
+ | `personalizer` | 1.0.22 | `https://downloads.adminium.dev/add-ons/personalizer/personalizer-1.0.22.tgz` | `personalizer-1.0.22.tgz.integrity` holding `sha512-bM08bw91W6BwT70xqJg+pkGwVUVXQjzOR+RolpxSpOc6aPshAwKeiASHCxPn5pJB4p9mzo/gbAMGur3aVfAZgg==` |
23
+ | `shipping-dhl` | 1.0.22 | `https://downloads.adminium.dev/add-ons/shipping-dhl/shipping-dhl-1.0.22.tgz` | `shipping-dhl-1.0.22.tgz.integrity` holding `sha512-gS/TIBbvQwpmsK2VqI/kjyRe/KQ7J8+6g63jGILczs7TTN6Dw1Ztlv75MU8LK2vDbPY4foXERX0OvQSZ5XTpXg==` |
24
24
 
25
25
  The key is what an app writes in `manifest/add-ons.json`. To give `adminium app try` an add-on,
26
26
  put its `.tgz` and a `.tgz.integrity` file holding the fingerprint above in one folder and pass
@@ -15,7 +15,7 @@ the only correct install spec (`npx @adminiumjs/adminium`); the binary it
15
15
  installs is `adminium`. The unscoped npm name `adminium` is an unrelated
16
16
  third-party package, so never run `npx adminium`.
17
17
 
18
- On a server, add the version (`npx @adminiumjs/adminium@0.3.50 start`). Without
18
+ On a server, add the version (`npx @adminiumjs/adminium@0.3.51 start`). Without
19
19
  one, npx installs any newer release it finds, and with no terminal attached it
20
20
  does so without asking. See
21
21
  [A VPS without Docker](https://docs.adminium.dev/self-hosting/vps/) for a pinned install under systemd,
@@ -15,7 +15,7 @@ the only correct install spec (`npx @adminiumjs/adminium`); the binary it
15
15
  installs is `adminium`. The unscoped npm name `adminium` is an unrelated
16
16
  third-party package, so never run `npx adminium`.
17
17
 
18
- On a server, add the version (`npx @adminiumjs/adminium@0.3.50 start`). Without
18
+ On a server, add the version (`npx @adminiumjs/adminium@0.3.51 start`). Without
19
19
  one, npx installs any newer release it finds, and with no terminal attached it
20
20
  does so without asking. See
21
21
  [A VPS without Docker](https://docs.adminium.dev/self-hosting/vps/) for a pinned install under systemd,
@@ -37,8 +37,8 @@
37
37
  | `references/manifest/automations--a-summary-for-each-person-2.md` | Automations — A summary for each person (part 2) | 1317 |
38
38
  | `references/manifest/automations--a-row-a-step-makes.md` | Automations — A row a step makes | 3179 |
39
39
  | `references/manifest/sample-data.md` | Sample data | 975 |
40
- | `references/manifest/sample-data--sample-people.md` | Sample data — Sample people | 7784 |
41
- | `references/manifest/sample-data--sample-people-2.md` | Sample data — Sample people (part 2) | 3549 |
40
+ | `references/manifest/sample-data--sample-people.md` | Sample data — Sample people | 5060 |
41
+ | `references/manifest/sample-data--sample-people-2.md` | Sample data — Sample people (part 2) | 6932 |
42
42
  | `references/manifest/seeds-and-widgets.md` | seeds and widgets | 2826 |
43
43
  | `references/manifest/a-self-made-app.md` | A self-made app | 669 |
44
44
  | `references/manifest/a-self-made-app--new-in-0-3-49.md` | A self-made app — New in 0.3.49 | 2774 |
@@ -21,9 +21,9 @@
21
21
  | `references/manifest/requiredschema--column-rules-3.md` | requiredSchema — Column rules (part 3) | 6333 |
22
22
  | `references/manifest/requiredschema--column-rules-4.md` | requiredSchema — Column rules (part 4) | 7046 |
23
23
  | `references/manifest/requiredschema--column-rules-5.md` | requiredSchema — Column rules (part 5) | 6181 |
24
- | `references/manifest/requiredschema--column-rules-6.md` | requiredSchema — Column rules (part 6) | 7815 |
25
- | `references/manifest/requiredschema--column-rules-7.md` | requiredSchema — Column rules (part 7) | 6589 |
26
- | `references/manifest/requiredschema--column-rules-8.md` | requiredSchema — Column rules (part 8) | 7742 |
24
+ | `references/manifest/requiredschema--column-rules-6.md` | requiredSchema — Column rules (part 6) | 6764 |
25
+ | `references/manifest/requiredschema--column-rules-7.md` | requiredSchema — Column rules (part 7) | 7834 |
26
+ | `references/manifest/requiredschema--column-rules-8.md` | requiredSchema — Column rules (part 8) | 7842 |
27
27
  | `references/manifest/requiredschema--column-rules-9.md` | requiredSchema — Column rules (part 9) | 7540 |
28
28
  | `references/manifest/requiredschema--column-rules-10.md` | requiredSchema — Column rules (part 10) | 7006 |
29
29
  | `references/manifest/requiredschema--column-rules-11.md` | requiredSchema — Column rules (part 11) | 7715 |
@@ -78,23 +78,6 @@ lower. A column may also say what a guest may upload into it (`upload`, below).
78
78
  visitor ([`pictures`](https://docs.adminium.dev/reference/manifest/#pictures)), and a sample row may give it one of the bundle's pictures,
79
79
  `{ "@asset": "<label>" }`, which the sample adds as that row's own file. An image column whose file
80
80
  rule takes any other kind is refused. An image column with no `file` rule holds links, as before.
81
-
82
- ```json
83
- { "ref": "photo", "type": "text", "nullable": true, "semantic": "image",
84
- "rules": { "file": { "accept": ["png", "jpeg", "webp", "gif"], "maxBytes": 5242880 } } }
85
- ```
86
- - **The record holds it.** Once named, the file is read with its record, by whoever reads the record
87
- and reaches its row, through every column their role shows. It is changed only through the record:
88
- taking it off, renaming it, throwing it away or hanging it on another record by the file routes is
89
- refused `409` `FILE_HELD`, for its uploader and the owner alike. A change that names another file
90
- throws the old one away; removing the record throws away its files (an undo brings them back).
91
- - **What a manifest cannot do with one.** A public entry neither writes nor defaults a file column, a
92
- sample row leaves it empty, and a file column takes no `default`, no `unique` and no rule that
93
- decides its value (`personal`, `required` and `requiredWhen` are fine). The kit's
94
- [signature pad and photo field](https://docs.adminium.dev/guides/apps/kit-parts/#a-signature-and-photos) upload for such a
95
- column from an app's own screen.
96
-
97
- #### Totals and balances
98
-
99
- A rollup can also filter its child rows, keep a balance beside the total, and refuse a change
100
- that would take the balance below zero: what a visit's fee, its payments and its write-offs need.
81
+ A column of one product asset (a `file` rule with no `maxCount` whose `accept` names only `svg`,
82
+ `glb`, `stl`, `3mf` or `woff2`) likewise takes one of the bundle's SVGs or models of a kind it accepts.
83
+ A sample ships no fonts: a column that takes only `woff2` is left empty by a sample row.
@@ -2,6 +2,26 @@
2
2
 
3
3
  # Manifest spec: requiredSchema — Column rules
4
4
 
5
+ ```json
6
+ { "ref": "photo", "type": "text", "nullable": true, "semantic": "image",
7
+ "rules": { "file": { "accept": ["png", "jpeg", "webp", "gif"], "maxBytes": 5242880 } } }
8
+ ```
9
+ - **The record holds it.** Once named, the file is read with its record, by whoever reads the record
10
+ and reaches its row, through every column their role shows. It is changed only through the record:
11
+ taking it off, renaming it, throwing it away or hanging it on another record by the file routes is
12
+ refused `409` `FILE_HELD`, for its uploader and the owner alike. A change that names another file
13
+ throws the old one away; removing the record throws away its files (an undo brings them back).
14
+ - **What a manifest cannot do with one.** A public entry neither writes nor defaults a file column, a
15
+ sample row leaves it empty, and a file column takes no `default`, no `unique` and no rule that
16
+ decides its value (`personal`, `required` and `requiredWhen` are fine). The kit's
17
+ [signature pad and photo field](https://docs.adminium.dev/guides/apps/kit-parts/#a-signature-and-photos) upload for such a
18
+ column from an app's own screen.
19
+
20
+ #### Totals and balances
21
+
22
+ A rollup can also filter its child rows, keep a balance beside the total, and refuse a change
23
+ that would take the balance below zero: what a visit's fee, its payments and its write-offs need.
24
+
5
25
  | Field | Rule |
6
26
  |---|---|
7
27
  | `where` | `{ "column", "eq" }`: only child rows whose column equals the value are added up (`voided` is `false`). The value must fit the column, and the column must not be nullable: a row left empty would drop out of the total unseen. |
@@ -81,5 +101,3 @@ document's tax and total.
81
101
  { "ref": "amount", "type": "decimal", "scale": "currency", "nullable": true,
82
102
  "rules": { "formula": { "max": [0, { "sub": [{ "mul": ["qty", "rate"] }, { "coalesce": ["discount", 0] }] }] } } }
83
103
  ```
84
-
85
- An expression is a number, a column of the same row by its ref (`"qty"`), or one of these objects:
@@ -2,6 +2,8 @@
2
2
 
3
3
  # Manifest spec: requiredSchema — Column rules
4
4
 
5
+ An expression is a number, a column of the same row by its ref (`"qty"`), or one of these objects:
6
+
5
7
  | Expression | Value |
6
8
  |---|---|
7
9
  | `{ "add": [a, b, …] }` | The sum of 2–8 expressions. |
@@ -2,6 +2,21 @@
2
2
 
3
3
  # Manifest spec: Sample data — Sample people
4
4
 
5
+ | Directive | Value |
6
+ |---|---|
7
+ | `{ "@ref": "<label>" }` | The key of an earlier row with that label. In an add-on's sample it may also be the label of one of the add-on's `seeds` rows (a unit the install wrote). |
8
+ | `{ "@person": "<key>" }` | One of the manifest's [sample people](https://docs.adminium.dev/reference/manifest/#sample-people): the staff member made for that key. In a [staff column](https://docs.adminium.dev/reference/manifest/#whose-a-row-is) or another text column that holds a staff member's id, and anywhere inside a json value (a saved filter that names a rep). Only in the app's own sample file, not in its rows for an add-on. |
9
+ | `{ "@ago": "PT19M" }` | An ISO 8601 duration before now. |
10
+ | `{ "@in": "PT20M", "@grid": 15 }` | An ISO 8601 duration after now. With `@grid`, rounded up to the next step of that many minutes on the venue's own clock, counted from its midnight (never past the next midnight): the first pickup slot at least 20 minutes away. |
11
+ | `{ "@in": "PT20M", "@slot": "orders" }` | The first open time of that table's [slot limit](https://docs.adminium.dev/reference/manifest/#slot-limits) at least that far ahead: its hours, closures and pauses, on its grid, with room left after the sample's own rows placed so far; on the next open day when today has none, looking two weeks ahead, else the plain `@in` time. Not with `@grid`. |
12
+ | `{ "@day": -1, "@time": "09:30" }` | A wall time in the venue's time zone, a number of days from today (−366 to 366). |
13
+ | `{ "@day": 3 }` | A date: that many days from today, as the venue's calendar has it. For a `date` column. |
14
+ | `"@workdays": true` | Added to either `@day` form: the days count Monday to Friday only, and day 0 on a weekend is the Monday after. So the sample's busy day is never a Saturday. |
15
+ | `"@week": true` | Added to either `@day` form instead: the days count from the bundle's `weekAnchor` in the week nearest today (three days either way), so every date keeps the weekday it was written for: a weekend stay stays on a weekend, whatever day the sample is added on. Needs `weekAnchor`. |
16
+ | `{"@month": -2, "@dom": 14}` | A date in the venue's time zone: that day of the month, so many months back (`0` is this month). Add `"@time": "10:00"` for a time on that day. A day past the month's end is its last day, and a day that has not come yet is today (a time not yet come, now). Use it for history counted in calendar months: "this month" and "in May" read the same whether the sample is added on the 3rd or the 28th. |
17
+ | `{ "@t": { "en-US": "…" } }` | Text in the language of the person adding the sample. Keys are `xx` or `xx-XX`. |
18
+ | `{ "@asset": "<label>" }` | A file from `assets`, added to the Files library: a picture (`.png`, `.jpg`, `.webp`, `.gif`) for a picture column, or an SVG or a model (`.svg`, `.glb`, `.stl`, `.3mf`) for a column of one product asset whose `accept` names its kind. Each is held to what an upload of it is held to: the column's `maxBytes`; an SVG written again by the cleaner, so a script or an `onload` is dropped and a `<foreignObject>` or a link out of the drawing refuses the sample; a model read whole and refused when it is not the kind its name says; and the public cap of its kind (a model 30 MiB, an SVG 2 MiB). No font: a sample ships no `.woff2`. An app's rows for an add-on name their own `assets`, which leave with those rows. |
19
+
5
20
  Beside its `@label`, a row may carry the row directive `@byClock`, so that a sample day's
6
21
  statuses match the time it is added at:
7
22
 
@@ -81,18 +81,3 @@ next real row takes the number after the largest, and goes on from there once th
81
81
  removed.
82
82
 
83
83
  A value is plain JSON, or one of these directives:
84
-
85
- | Directive | Value |
86
- |---|---|
87
- | `{ "@ref": "<label>" }` | The key of an earlier row with that label. In an add-on's sample it may also be the label of one of the add-on's `seeds` rows (a unit the install wrote). |
88
- | `{ "@person": "<key>" }` | One of the manifest's [sample people](https://docs.adminium.dev/reference/manifest/#sample-people): the staff member made for that key. In a [staff column](https://docs.adminium.dev/reference/manifest/#whose-a-row-is) or another text column that holds a staff member's id, and anywhere inside a json value (a saved filter that names a rep). Only in the app's own sample file, not in its rows for an add-on. |
89
- | `{ "@ago": "PT19M" }` | An ISO 8601 duration before now. |
90
- | `{ "@in": "PT20M", "@grid": 15 }` | An ISO 8601 duration after now. With `@grid`, rounded up to the next step of that many minutes on the venue's own clock, counted from its midnight (never past the next midnight): the first pickup slot at least 20 minutes away. |
91
- | `{ "@in": "PT20M", "@slot": "orders" }` | The first open time of that table's [slot limit](https://docs.adminium.dev/reference/manifest/#slot-limits) at least that far ahead: its hours, closures and pauses, on its grid, with room left after the sample's own rows placed so far; on the next open day when today has none, looking two weeks ahead, else the plain `@in` time. Not with `@grid`. |
92
- | `{ "@day": -1, "@time": "09:30" }` | A wall time in the venue's time zone, a number of days from today (−366 to 366). |
93
- | `{ "@day": 3 }` | A date: that many days from today, as the venue's calendar has it. For a `date` column. |
94
- | `"@workdays": true` | Added to either `@day` form: the days count Monday to Friday only, and day 0 on a weekend is the Monday after. So the sample's busy day is never a Saturday. |
95
- | `"@week": true` | Added to either `@day` form instead: the days count from the bundle's `weekAnchor` in the week nearest today (three days either way), so every date keeps the weekday it was written for: a weekend stay stays on a weekend, whatever day the sample is added on. Needs `weekAnchor`. |
96
- | `{"@month": -2, "@dom": 14}` | A date in the venue's time zone: that day of the month, so many months back (`0` is this month). Add `"@time": "10:00"` for a time on that day. A day past the month's end is its last day, and a day that has not come yet is today (a time not yet come, now). Use it for history counted in calendar months: "this month" and "in May" read the same whether the sample is added on the 3rd or the 28th. |
97
- | `{ "@t": { "en-US": "…" } }` | Text in the language of the person adding the sample. Keys are `xx` or `xx-XX`. |
98
- | `{ "@asset": "<label>" }` | A file from `assets`, added to the Files library. |
@@ -15,7 +15,7 @@ the only correct install spec (`npx @adminiumjs/adminium`); the binary it
15
15
  installs is `adminium`. The unscoped npm name `adminium` is an unrelated
16
16
  third-party package, so never run `npx adminium`.
17
17
 
18
- On a server, add the version (`npx @adminiumjs/adminium@0.3.50 start`). Without
18
+ On a server, add the version (`npx @adminiumjs/adminium@0.3.51 start`). Without
19
19
  one, npx installs any newer release it finds, and with no terminal attached it
20
20
  does so without asking. See
21
21
  [A VPS without Docker](https://docs.adminium.dev/self-hosting/vps/) for a pinned install under systemd,
@@ -15,7 +15,7 @@ the only correct install spec (`npx @adminiumjs/adminium`); the binary it
15
15
  installs is `adminium`. The unscoped npm name `adminium` is an unrelated
16
16
  third-party package, so never run `npx adminium`.
17
17
 
18
- On a server, add the version (`npx @adminiumjs/adminium@0.3.50 start`). Without
18
+ On a server, add the version (`npx @adminiumjs/adminium@0.3.51 start`). Without
19
19
  one, npx installs any newer release it finds, and with no terminal attached it
20
20
  does so without asking. See
21
21
  [A VPS without Docker](https://docs.adminium.dev/self-hosting/vps/) for a pinned install under systemd,
@@ -15,7 +15,7 @@ the only correct install spec (`npx @adminiumjs/adminium`); the binary it
15
15
  installs is `adminium`. The unscoped npm name `adminium` is an unrelated
16
16
  third-party package, so never run `npx adminium`.
17
17
 
18
- On a server, add the version (`npx @adminiumjs/adminium@0.3.50 start`). Without
18
+ On a server, add the version (`npx @adminiumjs/adminium@0.3.51 start`). Without
19
19
  one, npx installs any newer release it finds, and with no terminal attached it
20
20
  does so without asking. See
21
21
  [A VPS without Docker](https://docs.adminium.dev/self-hosting/vps/) for a pinned install under systemd,
@@ -12,7 +12,7 @@ RUN npm ci
12
12
  COPY . .
13
13
  RUN npx --no-install adminium build && rm -rf node_modules
14
14
 
15
- FROM ghcr.io/mosofi/adminium:0.3.50
15
+ FROM ghcr.io/mosofi/adminium:0.3.51
16
16
  COPY --from=build --chown=node:node /project/ /project/
17
17
  ENV ADMINIUM_PROJECT_DIR=/project
18
18
  ```
@@ -5,8 +5,8 @@
5
5
  The version is pinned in two places, and they must agree:
6
6
 
7
7
  ```bash
8
- npm install --save-exact @adminiumjs/adminium@0.3.50
9
- # then change the Dockerfile's FROM tag to 0.3.50
8
+ npm install --save-exact @adminiumjs/adminium@0.3.51
9
+ # then change the Dockerfile's FROM tag to 0.3.51
10
10
  npm run check # this is what compares the two
11
11
  npm run build
12
12
  ```
@@ -11,7 +11,7 @@
11
11
  "check": "adminium check",
12
12
  "pull": "adminium pull"
13
13
  },
14
- "dependencies": { "@adminiumjs/adminium": "0.3.50" },
14
+ "dependencies": { "@adminiumjs/adminium": "0.3.51" },
15
15
  "devDependencies": { "esbuild": "^0.28.0", "@types/react": "^19.2.0" }
16
16
  }
17
17
  ```
@@ -12,7 +12,7 @@ npm run check
12
12
  ✓ database "main" has a usable URL
13
13
  ✓ 20 page file(s), 1 schema file(s) and 2 list file(s) are valid
14
14
  ✓ 2 hook(s) and 1 action(s) load
15
- ✓ the Dockerfile builds on @adminiumjs/adminium 0.3.50, the version package.json installs
15
+ ✓ the Dockerfile builds on @adminiumjs/adminium 0.3.51, the version package.json installs
16
16
  ```
17
17
 
18
18
  It checks, without connecting to anything:
@@ -15,7 +15,7 @@ the only correct install spec (`npx @adminiumjs/adminium`); the binary it
15
15
  installs is `adminium`. The unscoped npm name `adminium` is an unrelated
16
16
  third-party package, so never run `npx adminium`.
17
17
 
18
- On a server, add the version (`npx @adminiumjs/adminium@0.3.50 start`). Without
18
+ On a server, add the version (`npx @adminiumjs/adminium@0.3.51 start`). Without
19
19
  one, npx installs any newer release it finds, and with no terminal attached it
20
20
  does so without asking. See
21
21
  [A VPS without Docker](https://docs.adminium.dev/self-hosting/vps/) for a pinned install under systemd,