@vectoriox/iox-ui 5.142.0 → 5.143.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 (45) hide show
  1. package/composite-core/index.d.ts +40 -1
  2. package/design-core/index.d.ts +92 -27
  3. package/fesm2022/vectoriox-iox-ui-composite-core.mjs +155 -90
  4. package/fesm2022/vectoriox-iox-ui-composite-core.mjs.map +1 -1
  5. package/fesm2022/vectoriox-iox-ui-design-core.mjs +112 -27
  6. package/fesm2022/vectoriox-iox-ui-design-core.mjs.map +1 -1
  7. package/fesm2022/vectoriox-iox-ui-forms-core.mjs +61 -4
  8. package/fesm2022/vectoriox-iox-ui-forms-core.mjs.map +1 -1
  9. package/fesm2022/vectoriox-iox-ui-generation-core.mjs +346 -155
  10. package/fesm2022/vectoriox-iox-ui-generation-core.mjs.map +1 -1
  11. package/fesm2022/vectoriox-iox-ui-harness-core.mjs +461 -2
  12. package/fesm2022/vectoriox-iox-ui-harness-core.mjs.map +1 -1
  13. package/fesm2022/vectoriox-iox-ui.mjs +102 -19
  14. package/fesm2022/vectoriox-iox-ui.mjs.map +1 -1
  15. package/forms-core/index.d.ts +17 -3
  16. package/generation-core/index.d.ts +175 -5
  17. package/harness-core/index.d.ts +341 -2
  18. package/index.d.ts +24 -9
  19. package/package.json +1 -1
  20. package/src/composite-core/accordion.ts +16 -1
  21. package/src/composite-core/card.ts +22 -2
  22. package/src/composite-core/consent.ts +2 -2
  23. package/src/composite-core/recipe-parts.ts +7 -0
  24. package/src/composite-core/segmented.ts +17 -2
  25. package/src/composite-core/slider.ts +19 -3
  26. package/src/composite-core/tabs.ts +16 -1
  27. package/src/design-core/contrast-audit.ts +18 -0
  28. package/src/design-core/flavor-spec.generated.ts +71 -25
  29. package/src/design-core/locale-direction.ts +24 -0
  30. package/src/design-core/menu-look.ts +2 -1
  31. package/src/design-core/public-api.ts +1 -0
  32. package/src/forms-core/form-presets.ts +72 -3
  33. package/src/generation-core/compose-layout.ts +1 -1
  34. package/src/generation-core/compose-site.ts +50 -19
  35. package/src/generation-core/footer-mix.ts +8 -0
  36. package/src/generation-core/nav-shape.ts +3 -2
  37. package/src/generation-core/patterns.ts +4 -0
  38. package/src/generation-core/site-plan.model.ts +10 -2
  39. package/src/generation-core/site-spec.generated.ts +281 -131
  40. package/src/harness-core/business-types.ts +11 -0
  41. package/src/harness-core/film-idea.ts +178 -0
  42. package/src/harness-core/harness-spec.generated.ts +331 -0
  43. package/src/harness-core/intake.ts +8 -1
  44. package/src/harness-core/public-api.ts +1 -0
  45. package/styles/iox-design.css +44 -45
@@ -224,6 +224,13 @@ const SPEC_BUSINESS_TYPES = [
224
224
  "secondScene": false,
225
225
  "say": []
226
226
  },
227
+ "film": {
228
+ "stance": "never",
229
+ "ideas": [
230
+ "none"
231
+ ],
232
+ "why": "a film is spectacle where trust or calm is the job"
233
+ },
227
234
  "world": "documentary",
228
235
  "imagery": "Your own photos only, large and uncropped; never stock.",
229
236
  "pages": [
@@ -345,6 +352,14 @@ const SPEC_BUSINESS_TYPES = [
345
352
  "secondScene": false,
346
353
  "say": []
347
354
  },
355
+ "film": {
356
+ "stance": "ifAsked",
357
+ "ideas": [
358
+ "place",
359
+ "material"
360
+ ],
361
+ "why": "the space is the product"
362
+ },
348
363
  "world": "architectural",
349
364
  "imagery": "Wide, bright room shots; details of materials.",
350
365
  "pages": [
@@ -471,6 +486,14 @@ const SPEC_BUSINESS_TYPES = [
471
486
  "secondScene": false,
472
487
  "say": []
473
488
  },
489
+ "film": {
490
+ "stance": "ifAsked",
491
+ "ideas": [
492
+ "place",
493
+ "material"
494
+ ],
495
+ "why": "the space is the product"
496
+ },
474
497
  "world": "architectural",
475
498
  "imagery": "Large project photos and drawings.",
476
499
  "pages": [
@@ -596,6 +619,13 @@ const SPEC_BUSINESS_TYPES = [
596
619
  "secondScene": false,
597
620
  "say": []
598
621
  },
622
+ "film": {
623
+ "stance": "never",
624
+ "ideas": [
625
+ "none"
626
+ ],
627
+ "why": "a film is spectacle where trust or calm is the job"
628
+ },
599
629
  "world": "hard-light",
600
630
  "imagery": "Case-study images of your own work.",
601
631
  "pages": [
@@ -711,6 +741,15 @@ const SPEC_BUSINESS_TYPES = [
711
741
  "secondScene": false,
712
742
  "say": []
713
743
  },
744
+ "film": {
745
+ "stance": "offer",
746
+ "ideas": [
747
+ "making",
748
+ "object",
749
+ "material"
750
+ ],
751
+ "why": "the craft IS the story (Studio Alma)"
752
+ },
714
753
  "world": "drawing",
715
754
  "imagery": "Your pieces, photographed flat and true to colour.",
716
755
  "pages": [
@@ -832,6 +871,15 @@ const SPEC_BUSINESS_TYPES = [
832
871
  "secondScene": false,
833
872
  "say": []
834
873
  },
874
+ "film": {
875
+ "stance": "offer",
876
+ "ideas": [
877
+ "making",
878
+ "object",
879
+ "material"
880
+ ],
881
+ "why": "the craft IS the story (Studio Alma)"
882
+ },
835
883
  "world": "macro",
836
884
  "imagery": "Your pieces and hands at work; natural light.",
837
885
  "pages": [
@@ -945,6 +993,15 @@ const SPEC_BUSINESS_TYPES = [
945
993
  "secondScene": false,
946
994
  "say": []
947
995
  },
996
+ "film": {
997
+ "stance": "offer",
998
+ "ideas": [
999
+ "making",
1000
+ "object",
1001
+ "material"
1002
+ ],
1003
+ "why": "the craft IS the story (Studio Alma)"
1004
+ },
948
1005
  "world": "macro",
949
1006
  "imagery": "Close-ups on a plain ground.",
950
1007
  "pages": [
@@ -1062,6 +1119,13 @@ const SPEC_BUSINESS_TYPES = [
1062
1119
  "secondScene": false,
1063
1120
  "say": []
1064
1121
  },
1122
+ "film": {
1123
+ "stance": "never",
1124
+ "ideas": [
1125
+ "none"
1126
+ ],
1127
+ "why": "a film is spectacle where trust or calm is the job"
1128
+ },
1065
1129
  "world": "low-key",
1066
1130
  "imagery": "Healed work, clean photos.",
1067
1131
  "pages": [
@@ -1193,6 +1257,14 @@ const SPEC_BUSINESS_TYPES = [
1193
1257
  "A steady practice moves with restraint: a mark at most before the page, a plain cover between pages, clean edges."
1194
1258
  ]
1195
1259
  },
1260
+ "film": {
1261
+ "stance": "ifAsked",
1262
+ "ideas": [
1263
+ "place",
1264
+ "material"
1265
+ ],
1266
+ "why": "the room people come to, and its light"
1267
+ },
1196
1268
  "world": "high-key",
1197
1269
  "imagery": "Rooms, textures, hands; no faces needed.",
1198
1270
  "pages": [
@@ -1334,6 +1406,14 @@ const SPEC_BUSINESS_TYPES = [
1334
1406
  "A second Scene on the home page, a counted intro and a picture veil are for the expressive types."
1335
1407
  ]
1336
1408
  },
1409
+ "film": {
1410
+ "stance": "ifAsked",
1411
+ "ideas": [
1412
+ "place",
1413
+ "material"
1414
+ ],
1415
+ "why": "the room people come to, and its light"
1416
+ },
1337
1417
  "world": "high-key",
1338
1418
  "imagery": "Your own before-and-after photos.",
1339
1419
  "pages": [
@@ -1458,6 +1538,14 @@ const SPEC_BUSINESS_TYPES = [
1458
1538
  "A second Scene on the home page, a counted intro and a picture veil are for the expressive types."
1459
1539
  ]
1460
1540
  },
1541
+ "film": {
1542
+ "stance": "ifAsked",
1543
+ "ideas": [
1544
+ "place",
1545
+ "material"
1546
+ ],
1547
+ "why": "the room people come to, and its light"
1548
+ },
1461
1549
  "world": "high-key",
1462
1550
  "imagery": "The room, real classes, daylight.",
1463
1551
  "pages": [
@@ -1590,6 +1678,14 @@ const SPEC_BUSINESS_TYPES = [
1590
1678
  "A second Scene on the home page, a counted intro and a picture veil are for the expressive types."
1591
1679
  ]
1592
1680
  },
1681
+ "film": {
1682
+ "stance": "ifAsked",
1683
+ "ideas": [
1684
+ "place",
1685
+ "material"
1686
+ ],
1687
+ "why": "the room people come to, and its light"
1688
+ },
1593
1689
  "world": "hard-light",
1594
1690
  "imagery": "Real people training; movement.",
1595
1691
  "pages": [
@@ -1743,6 +1839,13 @@ const SPEC_BUSINESS_TYPES = [
1743
1839
  "People who come for care or advice need calm and trust: no intro to wait through, no flood between pages, no torn edges, no spectacle."
1744
1840
  ]
1745
1841
  },
1842
+ "film": {
1843
+ "stance": "never",
1844
+ "ideas": [
1845
+ "none"
1846
+ ],
1847
+ "why": "a film is spectacle where trust or calm is the job"
1848
+ },
1746
1849
  "world": "documentary",
1747
1850
  "imagery": "A calm room, daylight; your portrait.",
1748
1851
  "pages": [
@@ -1904,6 +2007,13 @@ const SPEC_BUSINESS_TYPES = [
1904
2007
  "People who come for care or advice need calm and trust: no intro to wait through, no flood between pages, no torn edges, no spectacle."
1905
2008
  ]
1906
2009
  },
2010
+ "film": {
2011
+ "stance": "never",
2012
+ "ideas": [
2013
+ "none"
2014
+ ],
2015
+ "why": "a film is spectacle where trust or calm is the job"
2016
+ },
1907
2017
  "world": "high-key",
1908
2018
  "imagery": "Your team and rooms; no stock doctors.",
1909
2019
  "pages": [
@@ -2060,6 +2170,13 @@ const SPEC_BUSINESS_TYPES = [
2060
2170
  "People who come for care or advice need calm and trust: no intro to wait through, no flood between pages, no torn edges, no spectacle."
2061
2171
  ]
2062
2172
  },
2173
+ "film": {
2174
+ "stance": "never",
2175
+ "ideas": [
2176
+ "none"
2177
+ ],
2178
+ "why": "a film is spectacle where trust or calm is the job"
2179
+ },
2063
2180
  "world": "high-key",
2064
2181
  "imagery": "Your clinic and team.",
2065
2182
  "pages": [
@@ -2201,6 +2318,13 @@ const SPEC_BUSINESS_TYPES = [
2201
2318
  "A steady practice moves with restraint: a mark at most before the page, a plain cover between pages, clean edges."
2202
2319
  ]
2203
2320
  },
2321
+ "film": {
2322
+ "stance": "never",
2323
+ "ideas": [
2324
+ "none"
2325
+ ],
2326
+ "why": "a film is spectacle where trust or calm is the job"
2327
+ },
2204
2328
  "world": "documentary",
2205
2329
  "imagery": "Real animals you treat (with permission).",
2206
2330
  "pages": [
@@ -2315,6 +2439,15 @@ const SPEC_BUSINESS_TYPES = [
2315
2439
  "secondScene": false,
2316
2440
  "say": []
2317
2441
  },
2442
+ "film": {
2443
+ "stance": "offer",
2444
+ "ideas": [
2445
+ "making",
2446
+ "place",
2447
+ "material"
2448
+ ],
2449
+ "why": "the pour, the dough, the plate going out"
2450
+ },
2318
2451
  "world": "low-key",
2319
2452
  "imagery": "Your own food and room photos.",
2320
2453
  "pages": [
@@ -2446,6 +2579,15 @@ const SPEC_BUSINESS_TYPES = [
2446
2579
  "A second Scene on the home page, a counted intro and a picture veil are for the expressive types."
2447
2580
  ]
2448
2581
  },
2582
+ "film": {
2583
+ "stance": "offer",
2584
+ "ideas": [
2585
+ "making",
2586
+ "place",
2587
+ "material"
2588
+ ],
2589
+ "why": "the pour, the dough, the plate going out"
2590
+ },
2449
2591
  "world": "documentary",
2450
2592
  "imagery": "Your bakes and drinks, close up.",
2451
2593
  "pages": [
@@ -2565,6 +2707,15 @@ const SPEC_BUSINESS_TYPES = [
2565
2707
  "secondScene": false,
2566
2708
  "say": []
2567
2709
  },
2710
+ "film": {
2711
+ "stance": "offer",
2712
+ "ideas": [
2713
+ "making",
2714
+ "place",
2715
+ "material"
2716
+ ],
2717
+ "why": "the pour, the dough, the plate going out"
2718
+ },
2568
2719
  "world": "nocturne",
2569
2720
  "imagery": "The cellar, the bar, the bottle.",
2570
2721
  "pages": [
@@ -2684,6 +2835,15 @@ const SPEC_BUSINESS_TYPES = [
2684
2835
  "secondScene": false,
2685
2836
  "say": []
2686
2837
  },
2838
+ "film": {
2839
+ "stance": "ifAsked",
2840
+ "ideas": [
2841
+ "object",
2842
+ "material",
2843
+ "making"
2844
+ ],
2845
+ "why": "the piece, then what it is made of"
2846
+ },
2687
2847
  "world": "high-key",
2688
2848
  "imagery": "Product photos on plain grounds; real people wearing them.",
2689
2849
  "pages": [
@@ -2800,6 +2960,15 @@ const SPEC_BUSINESS_TYPES = [
2800
2960
  "A second Scene on the home page, a counted intro and a picture veil are for the expressive types."
2801
2961
  ]
2802
2962
  },
2963
+ "film": {
2964
+ "stance": "offer",
2965
+ "ideas": [
2966
+ "making",
2967
+ "object",
2968
+ "material"
2969
+ ],
2970
+ "why": "the bouquet being tied, then the flowers themselves"
2971
+ },
2803
2972
  "world": "macro",
2804
2973
  "imagery": "Your own arrangements in daylight.",
2805
2974
  "pages": [
@@ -2912,6 +3081,15 @@ const SPEC_BUSINESS_TYPES = [
2912
3081
  "secondScene": false,
2913
3082
  "say": []
2914
3083
  },
3084
+ "film": {
3085
+ "stance": "offer",
3086
+ "ideas": [
3087
+ "object",
3088
+ "material",
3089
+ "making"
3090
+ ],
3091
+ "why": "the piece, then what it is made of"
3092
+ },
2915
3093
  "world": "documentary",
2916
3094
  "imagery": "Pieces in real rooms and on plain grounds.",
2917
3095
  "pages": [
@@ -3045,6 +3223,13 @@ const SPEC_BUSINESS_TYPES = [
3045
3223
  "A steady practice moves with restraint: a mark at most before the page, a plain cover between pages, clean edges."
3046
3224
  ]
3047
3225
  },
3226
+ "film": {
3227
+ "stance": "never",
3228
+ "ideas": [
3229
+ "none"
3230
+ ],
3231
+ "why": "a film is spectacle where trust or calm is the job"
3232
+ },
3048
3233
  "world": "architectural",
3049
3234
  "imagery": "Your portrait; diagrams over stock.",
3050
3235
  "pages": [
@@ -3183,6 +3368,13 @@ const SPEC_BUSINESS_TYPES = [
3183
3368
  "A steady practice moves with restraint: a mark at most before the page, a plain cover between pages, clean edges."
3184
3369
  ]
3185
3370
  },
3371
+ "film": {
3372
+ "stance": "ifAsked",
3373
+ "ideas": [
3374
+ "place"
3375
+ ],
3376
+ "why": "where the work happens; never a staged person"
3377
+ },
3186
3378
  "world": "documentary",
3187
3379
  "imagery": "Your portrait, working with people.",
3188
3380
  "pages": [
@@ -3330,6 +3522,13 @@ const SPEC_BUSINESS_TYPES = [
3330
3522
  "People who come for care or advice need calm and trust: no intro to wait through, no flood between pages, no torn edges, no spectacle."
3331
3523
  ]
3332
3524
  },
3525
+ "film": {
3526
+ "stance": "never",
3527
+ "ideas": [
3528
+ "none"
3529
+ ],
3530
+ "why": "a film is spectacle where trust or calm is the job"
3531
+ },
3333
3532
  "world": "architectural",
3334
3533
  "imagery": "Your team; your office.",
3335
3534
  "pages": [
@@ -3462,6 +3661,14 @@ const SPEC_BUSINESS_TYPES = [
3462
3661
  "A second Scene on the home page, a counted intro and a picture veil are for the expressive types."
3463
3662
  ]
3464
3663
  },
3664
+ "film": {
3665
+ "stance": "ifAsked",
3666
+ "ideas": [
3667
+ "place",
3668
+ "material"
3669
+ ],
3670
+ "why": "the space is the product"
3671
+ },
3465
3672
  "world": "architectural",
3466
3673
  "imagery": "Your own property photos; never stock.",
3467
3674
  "pages": [
@@ -3604,6 +3811,13 @@ const SPEC_BUSINESS_TYPES = [
3604
3811
  "A steady practice moves with restraint: a mark at most before the page, a plain cover between pages, clean edges."
3605
3812
  ]
3606
3813
  },
3814
+ "film": {
3815
+ "stance": "ifAsked",
3816
+ "ideas": [
3817
+ "place"
3818
+ ],
3819
+ "why": "where the work happens; never a staged person"
3820
+ },
3607
3821
  "world": "documentary",
3608
3822
  "imagery": "Real people you help (with permission).",
3609
3823
  "pages": [
@@ -3713,6 +3927,14 @@ const SPEC_BUSINESS_TYPES = [
3713
3927
  "secondScene": false,
3714
3928
  "say": []
3715
3929
  },
3930
+ "film": {
3931
+ "stance": "offer",
3932
+ "ideas": [
3933
+ "place",
3934
+ "material"
3935
+ ],
3936
+ "why": "the space is the product"
3937
+ },
3716
3938
  "world": "nocturne",
3717
3939
  "imagery": "Real events at your venue.",
3718
3940
  "pages": [
@@ -3831,6 +4053,14 @@ const SPEC_BUSINESS_TYPES = [
3831
4053
  "secondScene": false,
3832
4054
  "say": []
3833
4055
  },
4056
+ "film": {
4057
+ "stance": "offer",
4058
+ "ideas": [
4059
+ "place",
4060
+ "material"
4061
+ ],
4062
+ "why": "the space is the product"
4063
+ },
3834
4064
  "world": "documentary",
3835
4065
  "imagery": "Rooms, views, breakfast; your own photos.",
3836
4066
  "pages": [
@@ -3961,6 +4191,14 @@ const SPEC_BUSINESS_TYPES = [
3961
4191
  "A second Scene on the home page, a counted intro and a picture veil are for the expressive types."
3962
4192
  ]
3963
4193
  },
4194
+ "film": {
4195
+ "stance": "ifAsked",
4196
+ "ideas": [
4197
+ "place",
4198
+ "material"
4199
+ ],
4200
+ "why": "the room people come to, and its light"
4201
+ },
3964
4202
  "world": "documentary",
3965
4203
  "imagery": "Real classes (with permission).",
3966
4204
  "pages": [
@@ -4436,6 +4674,98 @@ const SPEC_HARNESS_EXAMPLES = [
4436
4674
  "read": null
4437
4675
  }
4438
4676
  ];
4677
+ const SPEC_FILM_IDEAS = {
4678
+ "ideas": {
4679
+ "making": {
4680
+ "shows": "the thing being made: a hand, a tool, the material becoming the object (clay to plate, dough to loaf, a ring polished)",
4681
+ "plays": {
4682
+ "pattern": "hero.scene-object",
4683
+ "signature": "object-turning"
4684
+ },
4685
+ "later": "zoom-out-reveal",
4686
+ "subject": true,
4687
+ "start": "own"
4688
+ },
4689
+ "object": {
4690
+ "shows": "the finished object turning slowly on a plain ground",
4691
+ "plays": {
4692
+ "pattern": "hero.scene-object",
4693
+ "signature": "object-turning"
4694
+ },
4695
+ "later": "object-docked",
4696
+ "subject": true,
4697
+ "start": "own"
4698
+ },
4699
+ "material": {
4700
+ "shows": "close on the material itself: grain, glaze, fabric, stone, light moving across it",
4701
+ "plays": {
4702
+ "pattern": "hero.scene-depth",
4703
+ "signature": null
4704
+ },
4705
+ "later": null,
4706
+ "subject": false,
4707
+ "start": "own-or-art"
4708
+ },
4709
+ "place": {
4710
+ "shows": "a slow push through the space: the room, the table set, the view",
4711
+ "plays": {
4712
+ "pattern": "hero.scene-object",
4713
+ "signature": null
4714
+ },
4715
+ "later": null,
4716
+ "subject": false,
4717
+ "start": "own-or-art"
4718
+ },
4719
+ "none": {
4720
+ "shows": "no film: the film-less Scenes of SC6a",
4721
+ "plays": null,
4722
+ "later": null,
4723
+ "subject": false,
4724
+ "start": null
4725
+ }
4726
+ },
4727
+ "raise": [
4728
+ "cinematic",
4729
+ "video",
4730
+ "film",
4731
+ "expressive",
4732
+ "show the process",
4733
+ "קולנועי",
4734
+ "וידאו",
4735
+ "סרט",
4736
+ "אקספרסיבי",
4737
+ "את התהליך"
4738
+ ],
4739
+ "lower": [
4740
+ "formal",
4741
+ "minimal",
4742
+ "serious",
4743
+ "corporate",
4744
+ "trustworthy",
4745
+ "רשמי",
4746
+ "מינימלי",
4747
+ "רציני",
4748
+ "תאגידי",
4749
+ "אמין"
4750
+ ],
4751
+ "neverReads": [
4752
+ "cyber",
4753
+ "security company",
4754
+ "information security",
4755
+ "it security",
4756
+ "it company",
4757
+ "software company",
4758
+ "fintech",
4759
+ "finance",
4760
+ "insurance",
4761
+ "bank",
4762
+ "סייבר",
4763
+ "אבטחת מידע",
4764
+ "ביטוח",
4765
+ "פיננס",
4766
+ "בנק"
4767
+ ]
4768
+ };
4439
4769
 
4440
4770
  /**
4441
4771
  * The design harness's knowledge (AI plan rev 3 §3f, H2): the 30 kinds of business IOX serves, each with the
@@ -5186,6 +5516,12 @@ function keywordRe(keyword) {
5186
5516
  }
5187
5517
  return re;
5188
5518
  }
5519
+ /** The keywords that appear in the words, in the list's order — each at the START of a word, Hebrew prefixes allowed (the
5520
+ * ONE word rule of the no-model reading: the type match and the film's raise / lower words, award §0b.7). */
5521
+ function keywordsIn(text, keywords) {
5522
+ const words = (text ?? '').toLocaleLowerCase();
5523
+ return words.trim() ? keywords.filter(k => keywordRe(k).test(words)) : [];
5524
+ }
5189
5525
  /** The kind of business the words name, best first; empty when none of the keywords appears. Ties keep the board's order. */
5190
5526
  function matchBusinessTypes(text, types = BUSINESS_TYPES) {
5191
5527
  const words = (text ?? '').toLocaleLowerCase();
@@ -5193,7 +5529,7 @@ function matchBusinessTypes(text, types = BUSINESS_TYPES) {
5193
5529
  return [];
5194
5530
  return types
5195
5531
  .map((type, order) => {
5196
- const keywords = type.match.filter(k => keywordRe(k).test(words));
5532
+ const keywords = keywordsIn(words, type.match);
5197
5533
  return { id: type.id, keywords, score: keywords.reduce((n, k) => n + k.length, 0), order };
5198
5534
  })
5199
5535
  .filter(m => m.score > 0)
@@ -5765,6 +6101,129 @@ function startingDesign(input, read = null) {
5765
6101
  return { presetId: top.id, design, referenceColour: !!referenceSeed(read, top.id)?.used };
5766
6102
  }
5767
6103
 
6104
+ /**
6105
+ * The opening film, SUGGESTED (award-ingredients-plan §0b + §0b.7, AW-D26…AW-D32 — "the same moment, not the same
6106
+ * picture"; "it is not a must"). Two answers, both the harness's, never the model's:
6107
+ * - the STANCE — whether the Plan step offers a film at all: `offer` (the line shows, ticked only when the prompt asked),
6108
+ * `ifAsked` (the line shows only when the prompt asked), `never` (nothing). A type's default (contract `FILM_IDEAS`,
6109
+ * on each type as `film.stance`) is moved one step by the owner's words.
6110
+ * - the IDEA — what the film would show: the first idea of the type's row the site can carry.
6111
+ * No film is ever made without the owner's tick, and nothing fails for a film that is missing. The owner's OWN uploaded
6112
+ * video plays on any type (SC6b `placeFilm`) — this decides only a made film. Pure: no transport, no clock.
6113
+ */
6114
+ /** The five ideas, in the contract's order. */
6115
+ var FilmIdea;
6116
+ (function (FilmIdea) {
6117
+ FilmIdea["Making"] = "making";
6118
+ FilmIdea["Object"] = "object";
6119
+ FilmIdea["Material"] = "material";
6120
+ FilmIdea["Place"] = "place";
6121
+ FilmIdea["None"] = "none";
6122
+ })(FilmIdea || (FilmIdea = {}));
6123
+ /** How a film is suggested (AW-D32). */
6124
+ var FilmStance;
6125
+ (function (FilmStance) {
6126
+ /** The Plan step offers it; ticked only when the prompt asked. */
6127
+ FilmStance["Offer"] = "offer";
6128
+ /** Offered only when the prompt asked. */
6129
+ FilmStance["IfAsked"] = "ifAsked";
6130
+ /** Never offered — no made film. */
6131
+ FilmStance["Never"] = "never";
6132
+ })(FilmStance || (FilmStance = {}));
6133
+ /** The picture a film starts from. */
6134
+ var FilmStart;
6135
+ (function (FilmStart) {
6136
+ /** The owner's own photo. */
6137
+ FilmStart["Own"] = "own";
6138
+ /** An art-direction still (M7) — only for a type that takes made pictures (not STOCK_NEVER, AW-D28). */
6139
+ FilmStart["Art"] = "art";
6140
+ })(FilmStart || (FilmStart = {}));
6141
+ /** What a contract idea asks for its start picture. */
6142
+ var IdeaStart;
6143
+ (function (IdeaStart) {
6144
+ IdeaStart["Own"] = "own";
6145
+ })(IdeaStart || (IdeaStart = {}));
6146
+ /** Why there is no film idea, or why an idea of the row was passed over. */
6147
+ var FilmIdeaReason;
6148
+ (function (FilmIdeaReason) {
6149
+ /** The stance is never: no made film for this business. */
6150
+ FilmIdeaReason["Never"] = "never";
6151
+ /** No such business type. */
6152
+ FilmIdeaReason["Type"] = "type";
6153
+ /** `making` / `object` need the subject the owner named (AW-D27). */
6154
+ FilmIdeaReason["NoSubject"] = "no-subject";
6155
+ /** The idea needs the owner's photo (making, object; any idea on a STOCK_NEVER type — AW-D28). */
6156
+ FilmIdeaReason["NoOwnPhoto"] = "no-own-photo";
6157
+ })(FilmIdeaReason || (FilmIdeaReason = {}));
6158
+ /** The contract's five ideas, keyed by word. */
6159
+ const FILM_IDEAS = SPEC_FILM_IDEAS.ideas;
6160
+ /** The words that move the stance (contract `FILM_IDEAS`). */
6161
+ const FILM_WORDS = {
6162
+ raise: SPEC_FILM_IDEAS.raise,
6163
+ lower: SPEC_FILM_IDEAS.lower,
6164
+ neverReads: SPEC_FILM_IDEAS.neverReads,
6165
+ };
6166
+ const NONE_IDEAS = [FilmIdea.None];
6167
+ /** The ideas a type's film may show, in order; `[none]` for an unknown type. */
6168
+ function filmIdeasOf(type) {
6169
+ const t = typeof type === 'string' ? businessTypeById(type) : (type ?? undefined);
6170
+ return (t?.film.ideas ?? NONE_IDEAS);
6171
+ }
6172
+ /** What the owner's words say about a film (the ONE no-model word rule, `keywordsIn`). */
6173
+ function filmWordsIn(prompt) {
6174
+ const text = prompt ?? '';
6175
+ return { raised: keywordsIn(text, FILM_WORDS.raise), lowered: keywordsIn(text, FILM_WORDS.lower), never: keywordsIn(text, FILM_WORDS.neverReads) };
6176
+ }
6177
+ /**
6178
+ * The stance for a business and the owner's words (AW-D32): the type's default, moved ONE step — motion words raise
6179
+ * ifAsked → offer, calm words lower offer → ifAsked, both together cancel — and `never` moves for no word. A business that
6180
+ * reads as cyber security / IT / finance is never; so is a site with no known type.
6181
+ */
6182
+ function filmStanceFor(type, words) {
6183
+ const base = (type?.film.stance ?? FilmStance.Never);
6184
+ if (base === FilmStance.Never || words.never.length)
6185
+ return FilmStance.Never;
6186
+ const raise = words.raised.length > 0, lower = words.lowered.length > 0;
6187
+ if (raise && !lower)
6188
+ return FilmStance.Offer;
6189
+ if (lower && !raise)
6190
+ return FilmStance.IfAsked;
6191
+ return base;
6192
+ }
6193
+ /**
6194
+ * The film for a site (§0b.3 step 1 + §0b.7): its stance, and the first idea of the type's row the site can carry.
6195
+ * - `never` → no idea: no made film (the owner's own video still plays).
6196
+ * - `making` / `object` need the owner's subject AND photo — a film of a plate the potter never made is a fabricated product.
6197
+ * - `material` / `place` start from the owner's photo, else an art-direction still — never for a STOCK_NEVER type.
6198
+ */
6199
+ function filmIdeaFor(input) {
6200
+ const subject = input.subject?.trim() || null;
6201
+ const words = filmWordsIn(input.prompt);
6202
+ const t = businessTypeById(input.businessType);
6203
+ const stance = filmStanceFor(t, words);
6204
+ const asked = stance !== FilmStance.Never && words.raised.length > 0;
6205
+ const none = (reason, skipped = []) => ({ idea: FilmIdea.None, stance, asked, start: null, subject, reason, skipped, words });
6206
+ if (!t)
6207
+ return none(FilmIdeaReason.Type);
6208
+ if (stance === FilmStance.Never)
6209
+ return none(FilmIdeaReason.Never);
6210
+ const skipped = [];
6211
+ const hasOwn = input.ownPhotos > 0;
6212
+ for (const idea of filmIdeasOf(t)) {
6213
+ if (idea === FilmIdea.None)
6214
+ break;
6215
+ const def = FILM_IDEAS[idea];
6216
+ const reason = def.subject && !subject ? FilmIdeaReason.NoSubject
6217
+ : !hasOwn && (def.start === IdeaStart.Own || !t.stock) ? FilmIdeaReason.NoOwnPhoto : null;
6218
+ if (reason) {
6219
+ skipped.push({ idea, reason });
6220
+ continue;
6221
+ }
6222
+ return { idea, stance, asked, start: hasOwn ? FilmStart.Own : FilmStart.Art, subject, reason: null, skipped, words };
6223
+ }
6224
+ return none(skipped[skipped.length - 1]?.reason ?? FilmIdeaReason.Never, skipped);
6225
+ }
6226
+
5768
6227
  /**
5769
6228
  * @vectoriox/iox-ui/harness-core — the design HARNESS (AI plan rev 3 §3f, decision N18), FRAMEWORK-FREE: the 30
5770
6229
  * kinds of business and their rules (generated 1:1 from iox-ai-guidance `flavor-spec.v1.json` `harness`), the
@@ -5779,5 +6238,5 @@ function startingDesign(input, read = null) {
5779
6238
  * Generated bundle index. Do not edit.
5780
6239
  */
5781
6240
 
5782
- export { ANIMATE_ADVICE_STEPS, AnalysisIssueCode, AnalysisLocale, AvoidCheck, BUSINESS_TYPES, BUSINESS_TYPE_IDS, BookingNeed, COPY_LENGTH_ORDER, ComposedPageState, CopyLength, GENERATION_LIMITS, HARNESS_SOURCE, LITTLE_MOVEMENT_AVOID, LITTLE_MOVEMENT_CAP, LintKind, MAX_ANALYSIS_MOODS, MAX_PIXEL_SAMPLES, MAX_READ_PICTURES, NEEDS, NEED_IDS, NeedSource, PALETTE_SIZE, PALETTE_THRESHOLDS, PRODUCTS_NEED, PictureRole, PicturesUnavailable, PlanChangeOutcome, PresetFit, RANK_WEIGHTS, READING_SHAPE, READ_ANIMATE, READ_WEIGHTS, RankReason, ReaderState, ReadingIssueCode, SITE_ANALYSIS_SCHEMA_NAME, SITE_READING_SCHEMA_NAME, SPEC_ANALYSIS_SHAPE, SPEC_BUSINESS_TYPES, SPEC_HARNESS_EXAMPLES, SPEC_HARNESS_SOURCE, SPEC_NEEDS, SPEC_STRUCTURES, SPEC_USER_AVOIDS, STRUCTURES, SellingNeed, SiteReadRefusal, StyleReadGround, StyleReadHeadings, StyleReadMotion, StyleReadSourceKind, USER_AVOID_IDS, VoiceFormality, VoicePerson, addressesIn, analysisFromWire, analysisPromptContext, analysisToWire, bestRankedPreset, businessTypeById, calmerChoice, decodeSiteReading, inferNeeds, isCalmBusiness, isCalmBusinessType, isLookRule, lintDesign, lookMatches, mapStyleRead, matchBusinessType, matchBusinessTypes, measurePalette, mergeStyleReads, motionAdvice, motionFor, needsSell, normalizeAddress, offeredNeeds, oklchHue, paletteBrand, paletteGround, paletteSamples, pictureStyleRead, pixelSamples, presetDesign, presetHasSerifHeadings, presetLook, presetReason, presetsByFlavor, rankStylePresets, rankWithReferences, readPalette, referenceSeed, seedPassesPreset, siteAnalysisJsonSchema, siteReadingJsonSchema, startingDesign, structureFor, userAvoidRule, validateSiteAnalysis, validateSiteReading, withSellingNeed, withoutAddress };
6241
+ export { ANIMATE_ADVICE_STEPS, AnalysisIssueCode, AnalysisLocale, AvoidCheck, BUSINESS_TYPES, BUSINESS_TYPE_IDS, BookingNeed, COPY_LENGTH_ORDER, ComposedPageState, CopyLength, FILM_IDEAS, FILM_WORDS, FilmIdea, FilmIdeaReason, FilmStance, FilmStart, GENERATION_LIMITS, HARNESS_SOURCE, LITTLE_MOVEMENT_AVOID, LITTLE_MOVEMENT_CAP, LintKind, MAX_ANALYSIS_MOODS, MAX_PIXEL_SAMPLES, MAX_READ_PICTURES, NEEDS, NEED_IDS, NeedSource, PALETTE_SIZE, PALETTE_THRESHOLDS, PRODUCTS_NEED, PictureRole, PicturesUnavailable, PlanChangeOutcome, PresetFit, RANK_WEIGHTS, READING_SHAPE, READ_ANIMATE, READ_WEIGHTS, RankReason, ReaderState, ReadingIssueCode, SITE_ANALYSIS_SCHEMA_NAME, SITE_READING_SCHEMA_NAME, SPEC_ANALYSIS_SHAPE, SPEC_BUSINESS_TYPES, SPEC_FILM_IDEAS, SPEC_HARNESS_EXAMPLES, SPEC_HARNESS_SOURCE, SPEC_NEEDS, SPEC_STRUCTURES, SPEC_USER_AVOIDS, STRUCTURES, SellingNeed, SiteReadRefusal, StyleReadGround, StyleReadHeadings, StyleReadMotion, StyleReadSourceKind, USER_AVOID_IDS, VoiceFormality, VoicePerson, addressesIn, analysisFromWire, analysisPromptContext, analysisToWire, bestRankedPreset, businessTypeById, calmerChoice, decodeSiteReading, filmIdeaFor, filmIdeasOf, filmStanceFor, filmWordsIn, inferNeeds, isCalmBusiness, isCalmBusinessType, isLookRule, keywordsIn, lintDesign, lookMatches, mapStyleRead, matchBusinessType, matchBusinessTypes, measurePalette, mergeStyleReads, motionAdvice, motionFor, needsSell, normalizeAddress, offeredNeeds, oklchHue, paletteBrand, paletteGround, paletteSamples, pictureStyleRead, pixelSamples, presetDesign, presetHasSerifHeadings, presetLook, presetReason, presetsByFlavor, rankStylePresets, rankWithReferences, readPalette, referenceSeed, seedPassesPreset, siteAnalysisJsonSchema, siteReadingJsonSchema, startingDesign, structureFor, userAvoidRule, validateSiteAnalysis, validateSiteReading, withSellingNeed, withoutAddress };
5783
6242
  //# sourceMappingURL=vectoriox-iox-ui-harness-core.mjs.map