@almadar/core 10.111.0 → 10.113.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 (98) hide show
  1. package/dist/builders.d.ts +4 -4
  2. package/dist/builders.js +79 -9
  3. package/dist/builders.js.map +1 -1
  4. package/dist/{bus-DS-GzSrs.d.ts → bus-CJ7jZVcV.d.ts} +3 -1
  5. package/dist/{domain-Bf6sf9NR.d.ts → domain-CkvF0zvD.d.ts} +1863 -44
  6. package/dist/{effect-BD47AL48.d.ts → effect-BLZKE5PN.d.ts} +51 -3
  7. package/dist/{entityAccess-Dc6o3AYo.d.ts → entityAccess-utY3tRcQ.d.ts} +2 -2
  8. package/dist/factory/index.d.ts +4 -4
  9. package/dist/factory/index.js +1238 -72
  10. package/dist/factory/index.js.map +1 -1
  11. package/dist/factory-runtime/index.d.ts +4 -4
  12. package/dist/factory-runtime/index.js +79 -9
  13. package/dist/factory-runtime/index.js.map +1 -1
  14. package/dist/fixtures.d.ts +2 -2
  15. package/dist/fixtures.js.map +1 -1
  16. package/dist/i18n/index.js +37 -4
  17. package/dist/i18n/index.js.map +1 -1
  18. package/dist/{index-DgD_3g5F.d.ts → index-BiHNP9jd.d.ts} +14 -7
  19. package/dist/index.d.ts +68 -17
  20. package/dist/index.js +17878 -5337
  21. package/dist/index.js.map +1 -1
  22. package/dist/mock/index.d.ts +5 -5
  23. package/dist/mock/index.js +12 -6
  24. package/dist/mock/index.js.map +1 -1
  25. package/dist/patterns/component-mapping.json +1 -1
  26. package/dist/patterns/event-contracts.json +1 -8
  27. package/dist/patterns/index.d.ts +2496 -185
  28. package/dist/patterns/index.js +1249 -83
  29. package/dist/patterns/index.js.map +1 -1
  30. package/dist/patterns/patterns-registry.json +1239 -73
  31. package/dist/patterns/registry.json +1239 -73
  32. package/dist/{schema-B3GE83sz.d.ts → schema-BJGPvTln.d.ts} +3208 -283
  33. package/dist/themes/index.d.ts +1 -1
  34. package/dist/themes/index.js +16232 -4971
  35. package/dist/themes/index.js.map +1 -1
  36. package/dist/{trait-BNxIGRUF.d.ts → trait-DlZMxzEB.d.ts} +61 -53
  37. package/dist/types/index.d.ts +7 -7
  38. package/dist/types/index.js +86 -10
  39. package/dist/types/index.js.map +1 -1
  40. package/dist/{types-5IX1FGgd.d.ts → types-7d7mtx4j.d.ts} +2 -2
  41. package/fixtures/theme-tokens/every-key.json +2 -1
  42. package/package.json +2 -2
  43. package/themes/almadar-website.json +11 -2
  44. package/themes/almadar.json +20 -6
  45. package/themes/aqua.json +422 -0
  46. package/themes/arabesque.json +514 -0
  47. package/themes/art-deco.json +342 -0
  48. package/themes/art-nouveau.json +342 -0
  49. package/themes/atelier.json +47 -189
  50. package/themes/bauhaus.json +332 -0
  51. package/themes/bloomberg-dense.json +73 -215
  52. package/themes/blueprint.json +332 -0
  53. package/themes/clay.json +57 -190
  54. package/themes/comic.json +110 -147
  55. package/themes/constructivist.json +342 -0
  56. package/themes/corporate.json +66 -199
  57. package/themes/cyberpunk.json +420 -0
  58. package/themes/frutiger-aero.json +424 -0
  59. package/themes/game-adventure.json +48 -22
  60. package/themes/game-rpg.json +50 -23
  61. package/themes/game-sci-fi.json +49 -22
  62. package/themes/game-ui-pack.json +41 -18
  63. package/themes/gazette.json +54 -196
  64. package/themes/glass.json +82 -203
  65. package/themes/gothic.json +331 -0
  66. package/themes/ink-wash.json +514 -0
  67. package/themes/kawaii.json +514 -0
  68. package/themes/kiosk.json +74 -202
  69. package/themes/linear-clean.json +71 -204
  70. package/themes/luxury.json +324 -0
  71. package/themes/mac-classic.json +332 -0
  72. package/themes/material.json +330 -0
  73. package/themes/memphis.json +339 -0
  74. package/themes/mid-century.json +340 -0
  75. package/themes/minimalist.json +64 -206
  76. package/themes/mudcloth.json +514 -0
  77. package/themes/neon.json +55 -214
  78. package/themes/neumorphic.json +324 -0
  79. package/themes/newsprint.json +332 -0
  80. package/themes/notion-editorial.json +55 -188
  81. package/themes/pixel.json +323 -0
  82. package/themes/prism.json +70 -71
  83. package/themes/retro.json +129 -166
  84. package/themes/risograph.json +327 -0
  85. package/themes/scandi.json +514 -0
  86. package/themes/sketch.json +332 -0
  87. package/themes/solarpunk.json +514 -0
  88. package/themes/steampunk.json +329 -0
  89. package/themes/swiss.json +340 -0
  90. package/themes/terminal.json +89 -157
  91. package/themes/trait-wars.json +146 -185
  92. package/themes/ukiyo-e.json +514 -0
  93. package/themes/vaporwave.json +422 -0
  94. package/themes/victorian.json +339 -0
  95. package/themes/wabi-sabi.json +514 -0
  96. package/themes/win95.json +326 -0
  97. package/themes/wireframe.json +48 -181
  98. package/themes/zine.json +332 -0
@@ -1,11 +1,11 @@
1
- import { O as OrbitalEntity, a as EntityPersistence, E as EntityField, F as FieldValue, g as EntityRow } from '../effect-BD47AL48.js';
2
- import { a as OrbitalDefinition, O as OrbitalSchema } from '../schema-B3GE83sz.js';
1
+ import { O as OrbitalEntity, a as EntityPersistence, E as EntityField, F as FieldValue, g as EntityRow } from '../effect-BLZKE5PN.js';
2
+ import { a as OrbitalDefinition, O as OrbitalSchema } from '../schema-BJGPvTln.js';
3
3
  import { S as SExpr } from '../expression-Dz84kipC.js';
4
- export { E as EntityAccessPolicies, e as entityAccessPolicies, a as entityAccessPoliciesByStoreKey, b as entityAccessTable } from '../entityAccess-Dc6o3AYo.js';
4
+ export { E as EntityAccessPolicies, e as entityAccessPolicies, a as entityAccessPoliciesByStoreKey, b as entityAccessTable } from '../entityAccess-utY3tRcQ.js';
5
5
  import 'zod';
6
6
  import '../json-D8gmyK3l.js';
7
- import '../trait-BNxIGRUF.js';
8
- import '../domain-Bf6sf9NR.js';
7
+ import '../trait-DlZMxzEB.js';
8
+ import '../domain-CkvF0zvD.js';
9
9
 
10
10
  /**
11
11
  * Lightweight seeded pseudo-random generator for mock data.
@@ -953,8 +953,11 @@ function isDeclaredDefaultHonored(field, isRuntime = false) {
953
953
  function sampleRowCount(entity, requested) {
954
954
  return entity.persistence === "runtime" ? 1 : requested;
955
955
  }
956
+ function mockCandidates(declared) {
957
+ return declared.split(",").map((s) => s.trim()).filter((s) => s.length > 0);
958
+ }
956
959
  function mockFieldValue(declared, index) {
957
- const candidates = declared.split(",").map((s) => s.trim()).filter((s) => s.length > 0);
960
+ const candidates = mockCandidates(declared);
958
961
  if (candidates.length > 1) {
959
962
  return candidates[(index - 1) % candidates.length];
960
963
  }
@@ -978,12 +981,13 @@ function sampleText(field, ctx) {
978
981
  }
979
982
  return ctx.strategy === "seeded" ? titleCase(randomWords(2)) : `${titleCase(fieldName)} ${ctx.index}`;
980
983
  }
984
+ var SEEDED_DATE_WINDOW_DAYS = 120;
981
985
  function sampleDate(ctx, dateOnly) {
982
986
  if (ctx.strategy === "index") {
983
987
  const month = String(ctx.index % 12 + 1).padStart(2, "0");
984
988
  return dateOnly ? `2026-${month}-15` : `2026-${month}-15T00:00:00.000Z`;
985
989
  }
986
- const iso = randomStraddlingDate({ days: 15 }).toISOString();
990
+ const iso = randomStraddlingDate({ days: SEEDED_DATE_WINDOW_DAYS }).toISOString();
987
991
  return dateOnly ? iso.split("T")[0] : iso;
988
992
  }
989
993
  function sampleRelation(field) {
@@ -1041,15 +1045,17 @@ function sampleFieldValue(field, ctx) {
1041
1045
  if (!field.required && field.default === void 0 && field.type !== "relation" && omitsUndefaultedOptionalFields(ctx)) {
1042
1046
  return void 0;
1043
1047
  }
1048
+ if (field.mock !== void 0) {
1049
+ const ordinal = isRuntime ? 1 : ctx.index;
1050
+ const members = declaredValues(field) ? mockCandidates(field.mock) : [];
1051
+ if (members.length > 0) return members[(ordinal - 1) % members.length];
1052
+ return typedMockValue(field, mockFieldValue(field.mock, ordinal));
1053
+ }
1044
1054
  const values = declaredValues(field);
1045
1055
  if (values) {
1046
1056
  const ordinal = isRuntime ? 1 : ctx.index;
1047
1057
  return values[(ordinal - 1) % values.length];
1048
1058
  }
1049
- if (field.mock !== void 0) {
1050
- const ordinal = isRuntime ? 1 : ctx.index;
1051
- return typedMockValue(field, mockFieldValue(field.mock, ordinal));
1052
- }
1053
1059
  switch (field.type) {
1054
1060
  case "string":
1055
1061
  return sampleText(field, ctx);