@things-factory/figure-ui 10.1.183 → 10.1.186

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 (34) hide show
  1. package/client/modeller/figure-facts.ts +4 -35
  2. package/client/modeller/figure-fasten-dialog.ts +16 -1
  3. package/client/modeller/figure-properties.ts +23 -70
  4. package/dist-client/modeller/figure-facts.d.ts +2 -13
  5. package/dist-client/modeller/figure-facts.js +2 -29
  6. package/dist-client/modeller/figure-facts.js.map +1 -1
  7. package/dist-client/modeller/figure-fasten-dialog.d.ts +6 -1
  8. package/dist-client/modeller/figure-fasten-dialog.js +16 -1
  9. package/dist-client/modeller/figure-fasten-dialog.js.map +1 -1
  10. package/dist-client/modeller/figure-fasten-drawing.d.ts +1 -1
  11. package/dist-client/modeller/figure-links.d.ts +1 -1
  12. package/dist-client/modeller/figure-properties.d.ts +12 -12
  13. package/dist-client/modeller/figure-properties.js +23 -72
  14. package/dist-client/modeller/figure-properties.js.map +1 -1
  15. package/dist-client/route.d.ts +1 -1
  16. package/dist-client/tsconfig.tsbuildinfo +1 -1
  17. package/package.json +6 -6
  18. package/test/browser/links.check.mjs +12 -0
  19. package/test/browser/modeller-page.js +1 -1
  20. package/test/browser/product-page.check.mjs +56 -6
  21. package/test/browser/product-page.js +11 -1
  22. package/test/browser/property-section.check.mjs +3 -3
  23. package/test/browser/screen-page.js +7 -2
  24. package/test/properties.test.ts +11 -19
  25. package/translations/en.json +1 -9
  26. package/translations/es.json +1 -9
  27. package/translations/ja.json +1 -9
  28. package/translations/ko.json +1 -9
  29. package/translations/ms.json +1 -9
  30. package/translations/zh.json +1 -9
  31. package/client/modeller/mounting-part.ts +0 -15
  32. package/dist-client/modeller/mounting-part.d.ts +0 -14
  33. package/dist-client/modeller/mounting-part.js +0 -10
  34. package/dist-client/modeller/mounting-part.js.map +0 -1
@@ -1,10 +0,0 @@
1
- /**
2
- * The mounting face the properties tab offers: the part and face picked in its lists, else the one set, else where the
3
- * figure meets its plane (`suggested`) -- a conveyor's legs, not its bed (walk 1, 2026-09-26) -- else the first part.
4
- * A part no longer in the figure is passed over.
5
- */
6
- export function offeredMountingOf(facts, picked = {}) {
7
- const part = [picked.part, facts.mounting?.part, facts.suggested?.part, facts.parts[0]].find(one => one && facts.parts.includes(one));
8
- return { part, face: picked.face ?? facts.mounting?.face ?? facts.suggested?.face ?? 'bottom' };
9
- }
10
- //# sourceMappingURL=mounting-part.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mounting-part.js","sourceRoot":"","sources":["../../client/modeller/mounting-part.ts"],"names":[],"mappings":"AAGA;;;;GAIG;AACH,MAAM,UAAU,iBAAiB,CAC/B,KAAkE,EAClE,SAA+C,EAAE;IAEjD,MAAM,IAAI,GAAG,CAAC,MAAM,CAAC,IAAI,EAAE,KAAK,CAAC,QAAQ,EAAE,IAAI,EAAE,KAAK,CAAC,SAAS,EAAE,IAAI,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,KAAK,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAA;IACrI,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,CAAC,IAAI,IAAI,KAAK,CAAC,QAAQ,EAAE,IAAI,IAAI,KAAK,CAAC,SAAS,EAAE,IAAI,IAAI,QAAQ,EAAE,CAAA;AACjG,CAAC","sourcesContent":["import type { FigureFace } from '@hatiolab/figure-model'\nimport type { FigureFigureFacts } from './figure-facts.js'\n\n/**\n * The mounting face the properties tab offers: the part and face picked in its lists, else the one set, else where the\n * figure meets its plane (`suggested`) -- a conveyor's legs, not its bed (walk 1, 2026-09-26) -- else the first part.\n * A part no longer in the figure is passed over.\n */\nexport function offeredMountingOf(\n facts: Pick<FigureFigureFacts, 'parts' | 'mounting' | 'suggested'>,\n picked: { part?: string; face?: FigureFace } = {}\n): { part?: string; face: FigureFace } {\n const part = [picked.part, facts.mounting?.part, facts.suggested?.part, facts.parts[0]].find(one => one && facts.parts.includes(one))\n return { part, face: picked.face ?? facts.mounting?.face ?? facts.suggested?.face ?? 'bottom' }\n}\n"]}