react-cheminfo 0.138.0 → 0.140.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 (201) hide show
  1. package/lib/credits/core/credits.d.ts +12 -0
  2. package/lib/credits/core/credits.d.ts.map +1 -1
  3. package/lib/credits/core/credits.js +16 -0
  4. package/lib/credits/core/credits.js.map +1 -1
  5. package/lib/crystal3d/ui/CrystalCanvas3D.d.ts +1 -1
  6. package/lib/crystal3d/ui/CrystalCanvas3D.d.ts.map +1 -1
  7. package/lib/crystal3d/ui/CrystalViewer3D.d.ts +1 -1
  8. package/lib/crystal3d/ui/CrystalViewer3D.d.ts.map +1 -1
  9. package/lib/crystal3d/ui/crystalStructureViewerProps.d.ts +1 -1
  10. package/lib/crystal3d/ui/crystalStructureViewerProps.d.ts.map +1 -1
  11. package/lib/download/ui/FigureDownloadPanel.d.ts +17 -3
  12. package/lib/download/ui/FigureDownloadPanel.d.ts.map +1 -1
  13. package/lib/download/ui/FigureDownloadPanel.js +1 -1
  14. package/lib/download/ui/FigureDownloadPanel.js.map +1 -1
  15. package/lib/download/ui/FigureQuickActions.d.ts +10 -4
  16. package/lib/download/ui/FigureQuickActions.d.ts.map +1 -1
  17. package/lib/download/ui/FigureQuickActions.js +12 -6
  18. package/lib/download/ui/FigureQuickActions.js.map +1 -1
  19. package/lib/drawing/ui/ZoomControl.d.ts +20 -1
  20. package/lib/drawing/ui/ZoomControl.d.ts.map +1 -1
  21. package/lib/drawing/ui/ZoomControl.js +9 -5
  22. package/lib/drawing/ui/ZoomControl.js.map +1 -1
  23. package/lib/ecosystem/core/home.d.ts +19 -0
  24. package/lib/ecosystem/core/home.d.ts.map +1 -0
  25. package/lib/ecosystem/core/home.js +23 -0
  26. package/lib/ecosystem/core/home.js.map +1 -0
  27. package/lib/ecosystem/core/index.d.ts +3 -0
  28. package/lib/ecosystem/core/index.d.ts.map +1 -1
  29. package/lib/ecosystem/core/index.js +2 -0
  30. package/lib/ecosystem/core/index.js.map +1 -1
  31. package/lib/ecosystem/core/searchSites.d.ts +39 -0
  32. package/lib/ecosystem/core/searchSites.d.ts.map +1 -0
  33. package/lib/ecosystem/core/searchSites.js +77 -0
  34. package/lib/ecosystem/core/searchSites.js.map +1 -0
  35. package/lib/ecosystem/core/types.d.ts +1 -1
  36. package/lib/ecosystem/core/types.d.ts.map +1 -1
  37. package/lib/ecosystem/core/unlistedSites.d.ts.map +1 -1
  38. package/lib/ecosystem/core/unlistedSites.js +14 -0
  39. package/lib/ecosystem/core/unlistedSites.js.map +1 -1
  40. package/lib/ecosystem/ui/EcosystemButton.d.ts +6 -0
  41. package/lib/ecosystem/ui/EcosystemButton.d.ts.map +1 -1
  42. package/lib/ecosystem/ui/EcosystemButton.js +2 -2
  43. package/lib/ecosystem/ui/EcosystemButton.js.map +1 -1
  44. package/lib/ecosystem/ui/EcosystemMenu.d.ts +13 -4
  45. package/lib/ecosystem/ui/EcosystemMenu.d.ts.map +1 -1
  46. package/lib/ecosystem/ui/EcosystemMenu.js +56 -6
  47. package/lib/ecosystem/ui/EcosystemMenu.js.map +1 -1
  48. package/lib/ecosystem/ui/SiteGroupGrid.d.ts +12 -0
  49. package/lib/ecosystem/ui/SiteGroupGrid.d.ts.map +1 -1
  50. package/lib/ecosystem/ui/SiteGroupGrid.js +15 -2
  51. package/lib/ecosystem/ui/SiteGroupGrid.js.map +1 -1
  52. package/lib/ecosystem/ui/glyphs.d.ts.map +1 -1
  53. package/lib/ecosystem/ui/glyphs.js +4 -0
  54. package/lib/ecosystem/ui/glyphs.js.map +1 -1
  55. package/lib/i18n/core/chromeCatalog.d.ts +1 -1
  56. package/lib/i18n/core/chromeCatalog.d.ts.map +1 -1
  57. package/lib/locales/de.json +10 -0
  58. package/lib/locales/en.json +10 -0
  59. package/lib/locales/es.json +10 -0
  60. package/lib/locales/fr.json +10 -0
  61. package/lib/locales/it.json +10 -0
  62. package/lib/molecule3d/core/bondNeighbours.d.ts +30 -0
  63. package/lib/molecule3d/core/bondNeighbours.d.ts.map +1 -0
  64. package/lib/molecule3d/core/bondNeighbours.js +108 -0
  65. package/lib/molecule3d/core/bondNeighbours.js.map +1 -0
  66. package/lib/molecule3d/core/file.d.ts +15 -4
  67. package/lib/molecule3d/core/file.d.ts.map +1 -1
  68. package/lib/molecule3d/core/file.js +10 -1
  69. package/lib/molecule3d/core/file.js.map +1 -1
  70. package/lib/molecule3d/core/index.d.ts +11 -2
  71. package/lib/molecule3d/core/index.d.ts.map +1 -1
  72. package/lib/molecule3d/core/index.js +6 -1
  73. package/lib/molecule3d/core/index.js.map +1 -1
  74. package/lib/molecule3d/core/partialBondMode.d.ts +34 -0
  75. package/lib/molecule3d/core/partialBondMode.d.ts.map +1 -0
  76. package/lib/molecule3d/core/partialBondMode.js +39 -0
  77. package/lib/molecule3d/core/partialBondMode.js.map +1 -0
  78. package/lib/molecule3d/core/partialBondRanges.d.ts +61 -0
  79. package/lib/molecule3d/core/partialBondRanges.d.ts.map +1 -0
  80. package/lib/molecule3d/core/partialBondRanges.js +89 -0
  81. package/lib/molecule3d/core/partialBondRanges.js.map +1 -0
  82. package/lib/molecule3d/core/partialBonds.d.ts +61 -0
  83. package/lib/molecule3d/core/partialBonds.d.ts.map +1 -0
  84. package/lib/molecule3d/core/partialBonds.js +115 -0
  85. package/lib/molecule3d/core/partialBonds.js.map +1 -0
  86. package/lib/molecule3d/core/settings.d.ts +13 -35
  87. package/lib/molecule3d/core/settings.d.ts.map +1 -1
  88. package/lib/molecule3d/core/settings.js +17 -25
  89. package/lib/molecule3d/core/settings.js.map +1 -1
  90. package/lib/molecule3d/core/tools.d.ts +36 -0
  91. package/lib/molecule3d/core/tools.d.ts.map +1 -0
  92. package/lib/molecule3d/core/tools.js +24 -0
  93. package/lib/molecule3d/core/tools.js.map +1 -0
  94. package/lib/molecule3d/ui/Molecule3DExport.d.ts.map +1 -1
  95. package/lib/molecule3d/ui/Molecule3DExport.js +19 -2
  96. package/lib/molecule3d/ui/Molecule3DExport.js.map +1 -1
  97. package/lib/molecule3d/ui/Molecule3DOptions.d.ts +5 -2
  98. package/lib/molecule3d/ui/Molecule3DOptions.d.ts.map +1 -1
  99. package/lib/molecule3d/ui/Molecule3DOptions.js +6 -4
  100. package/lib/molecule3d/ui/Molecule3DOptions.js.map +1 -1
  101. package/lib/molecule3d/ui/Molecule3DPartialBonds.d.ts +22 -0
  102. package/lib/molecule3d/ui/Molecule3DPartialBonds.d.ts.map +1 -0
  103. package/lib/molecule3d/ui/Molecule3DPartialBonds.js +53 -0
  104. package/lib/molecule3d/ui/Molecule3DPartialBonds.js.map +1 -0
  105. package/lib/molecule3d/ui/Molecule3DToolbar.d.ts +1 -1
  106. package/lib/molecule3d/ui/Molecule3DToolbar.d.ts.map +1 -1
  107. package/lib/molecule3d/ui/Molecule3DToolbar.js +1 -1
  108. package/lib/molecule3d/ui/Molecule3DToolbar.js.map +1 -1
  109. package/lib/molecule3d/ui/MoleculeCanvas3D.d.ts.map +1 -1
  110. package/lib/molecule3d/ui/MoleculeCanvas3D.js +3 -2
  111. package/lib/molecule3d/ui/MoleculeCanvas3D.js.map +1 -1
  112. package/lib/molecule3d/ui/drawScene.d.ts +4 -3
  113. package/lib/molecule3d/ui/drawScene.d.ts.map +1 -1
  114. package/lib/molecule3d/ui/drawScene.js +12 -2
  115. package/lib/molecule3d/ui/drawScene.js.map +1 -1
  116. package/lib/molecule3d/ui/moleculeFileFormats.d.ts +3 -2
  117. package/lib/molecule3d/ui/moleculeFileFormats.d.ts.map +1 -1
  118. package/lib/molecule3d/ui/moleculeFileFormats.js +5 -3
  119. package/lib/molecule3d/ui/moleculeFileFormats.js.map +1 -1
  120. package/lib/molecule3d/ui/moleculeViewer3DProps.d.ts +2 -1
  121. package/lib/molecule3d/ui/moleculeViewer3DProps.d.ts.map +1 -1
  122. package/lib/molecule3d/ui/partialBondShapes.d.ts +117 -0
  123. package/lib/molecule3d/ui/partialBondShapes.d.ts.map +1 -0
  124. package/lib/molecule3d/ui/partialBondShapes.js +164 -0
  125. package/lib/molecule3d/ui/partialBondShapes.js.map +1 -0
  126. package/lib/molecule3d/ui/renderMolecule.d.ts +9 -0
  127. package/lib/molecule3d/ui/renderMolecule.d.ts.map +1 -1
  128. package/lib/molecule3d/ui/renderMolecule.js +17 -0
  129. package/lib/molecule3d/ui/renderMolecule.js.map +1 -1
  130. package/lib/molecule3d/ui/renderPartialBonds.d.ts +19 -0
  131. package/lib/molecule3d/ui/renderPartialBonds.d.ts.map +1 -0
  132. package/lib/molecule3d/ui/renderPartialBonds.js +90 -0
  133. package/lib/molecule3d/ui/renderPartialBonds.js.map +1 -0
  134. package/lib/molecule3d/ui/structureGeometry.d.ts +22 -0
  135. package/lib/molecule3d/ui/structureGeometry.d.ts.map +1 -0
  136. package/lib/molecule3d/ui/structureGeometry.js +63 -0
  137. package/lib/molecule3d/ui/structureGeometry.js.map +1 -0
  138. package/lib/molecule3d/ui/usePolarSurfaceArea.d.ts +2 -2
  139. package/lib/molecule3d/ui/usePolarSurfaceArea.d.ts.map +1 -1
  140. package/lib/molecule3d/ui/usePolarSurfaceArea.js +5 -4
  141. package/lib/molecule3d/ui/usePolarSurfaceArea.js.map +1 -1
  142. package/lib/molecule3d/ui/viewer.d.ts +8 -1
  143. package/lib/molecule3d/ui/viewer.d.ts.map +1 -1
  144. package/lib/molecule3d/ui/viewer.js +10 -0
  145. package/lib/molecule3d/ui/viewer.js.map +1 -1
  146. package/lib/molecule3d/ui/viewerTypes.d.ts +18 -0
  147. package/lib/molecule3d/ui/viewerTypes.d.ts.map +1 -1
  148. package/lib/panel/ui/FilterInput.d.ts +11 -0
  149. package/lib/panel/ui/FilterInput.d.ts.map +1 -1
  150. package/lib/panel/ui/FilterInput.js +10 -1
  151. package/lib/panel/ui/FilterInput.js.map +1 -1
  152. package/lib/shell/ui/ShellFrame.d.ts.map +1 -1
  153. package/lib/shell/ui/ShellFrame.js +3 -2
  154. package/lib/shell/ui/ShellFrame.js.map +1 -1
  155. package/package.json +1 -1
  156. package/src/credits/core/credits.ts +16 -0
  157. package/src/crystal3d/ui/CrystalCanvas3D.tsx +1 -1
  158. package/src/crystal3d/ui/CrystalViewer3D.tsx +1 -1
  159. package/src/crystal3d/ui/crystalStructureViewerProps.ts +1 -1
  160. package/src/download/ui/FigureDownloadPanel.tsx +20 -4
  161. package/src/download/ui/FigureQuickActions.tsx +18 -6
  162. package/src/drawing/ui/ZoomControl.tsx +33 -8
  163. package/src/ecosystem/core/home.ts +27 -0
  164. package/src/ecosystem/core/index.ts +7 -0
  165. package/src/ecosystem/core/searchSites.ts +102 -0
  166. package/src/ecosystem/core/types.ts +1 -0
  167. package/src/ecosystem/core/unlistedSites.ts +15 -0
  168. package/src/ecosystem/ui/EcosystemButton.tsx +8 -2
  169. package/src/ecosystem/ui/EcosystemMenu.tsx +103 -7
  170. package/src/ecosystem/ui/SiteGroupGrid.tsx +28 -3
  171. package/src/ecosystem/ui/glyphs.tsx +14 -0
  172. package/src/locales/de.json +10 -0
  173. package/src/locales/en.json +10 -0
  174. package/src/locales/es.json +10 -0
  175. package/src/locales/fr.json +10 -0
  176. package/src/locales/it.json +10 -0
  177. package/src/molecule3d/core/bondNeighbours.ts +108 -0
  178. package/src/molecule3d/core/file.ts +18 -4
  179. package/src/molecule3d/core/index.ts +17 -3
  180. package/src/molecule3d/core/partialBondMode.ts +48 -0
  181. package/src/molecule3d/core/partialBondRanges.ts +120 -0
  182. package/src/molecule3d/core/partialBonds.ts +180 -0
  183. package/src/molecule3d/core/settings.ts +29 -52
  184. package/src/molecule3d/core/tools.ts +51 -0
  185. package/src/molecule3d/ui/Molecule3DExport.tsx +17 -2
  186. package/src/molecule3d/ui/Molecule3DOptions.tsx +16 -3
  187. package/src/molecule3d/ui/Molecule3DPartialBonds.tsx +100 -0
  188. package/src/molecule3d/ui/Molecule3DToolbar.tsx +2 -2
  189. package/src/molecule3d/ui/MoleculeCanvas3D.tsx +3 -4
  190. package/src/molecule3d/ui/drawScene.ts +15 -2
  191. package/src/molecule3d/ui/moleculeFileFormats.ts +5 -3
  192. package/src/molecule3d/ui/moleculeViewer3DProps.ts +2 -1
  193. package/src/molecule3d/ui/partialBondShapes.ts +246 -0
  194. package/src/molecule3d/ui/renderMolecule.ts +20 -0
  195. package/src/molecule3d/ui/renderPartialBonds.ts +122 -0
  196. package/src/molecule3d/ui/structureGeometry.ts +73 -0
  197. package/src/molecule3d/ui/usePolarSurfaceArea.ts +5 -4
  198. package/src/molecule3d/ui/viewer.ts +12 -0
  199. package/src/molecule3d/ui/viewerTypes.ts +19 -0
  200. package/src/panel/ui/FilterInput.tsx +24 -0
  201. package/src/shell/ui/ShellFrame.tsx +7 -1
@@ -0,0 +1,27 @@
1
+ import { withLanguageParam } from '../../language/core/languageParam.ts';
2
+
3
+ import type { SiteUrlOptions } from './sites.ts';
4
+
5
+ /**
6
+ * Where the family is entered: every tool by topic, and what is new on them.
7
+ */
8
+ export const ECOSYSTEM_HOME_HOST = 'www.cheminfo.org';
9
+
10
+ /**
11
+ * The address of the family's entrance.
12
+ * @param options - See {@link SiteUrlOptions}.
13
+ * @returns The URL to open.
14
+ */
15
+ export function ecosystemHomeUrl(options: SiteUrlOptions = {}): string {
16
+ return withLanguageParam(`https://${ECOSYSTEM_HOME_HOST}/`, options.language);
17
+ }
18
+
19
+ /**
20
+ * Whether a site is the family's entrance itself, whose menu has no reason to
21
+ * link back to it.
22
+ * @param host - The site's host, as its record writes it.
23
+ * @returns Whether it is the entrance.
24
+ */
25
+ export function isEcosystemHome(host: string | undefined): boolean {
26
+ return host?.trim().toLowerCase() === ECOSYSTEM_HOME_HOST;
27
+ }
@@ -1,5 +1,10 @@
1
1
  export type { SiteGroup, SiteGroupId } from './groups.ts';
2
2
  export { SITE_GROUPS } from './groups.ts';
3
+ export {
4
+ ECOSYSTEM_HOME_HOST,
5
+ ecosystemHomeUrl,
6
+ isEcosystemHome,
7
+ } from './home.ts';
3
8
  export type { GroupedSites } from './lookup.ts';
4
9
  export {
5
10
  findSiteByHost,
@@ -13,6 +18,8 @@ export {
13
18
  } from './lookup.ts';
14
19
  export type { SiteNameColors, SiteNameColorsOptions } from './nameColors.ts';
15
20
  export { siteNameColors } from './nameColors.ts';
21
+ export type { SiteSearchOptions } from './searchSites.ts';
22
+ export { searchSites, searchWords } from './searchSites.ts';
16
23
  export type {
17
24
  EcosystemSite,
18
25
  SiteId,
@@ -0,0 +1,102 @@
1
+ import { SITE_GROUPS } from './groups.ts';
2
+ import { ECOSYSTEM_SITES } from './sites.ts';
3
+ import type { EcosystemSite } from './types.ts';
4
+
5
+ /** How {@link searchSites} reads the sites. */
6
+ export interface SiteSearchOptions {
7
+ /**
8
+ * More text each site answers to, such as its tagline and its topic in the
9
+ * language of the page, searched beside the English record.
10
+ * @default undefined — the English record alone
11
+ */
12
+ texts?: (site: EcosystemSite) => readonly string[];
13
+ /**
14
+ * The sites searched.
15
+ * @default ECOSYSTEM_SITES — every site the Tools menu lists
16
+ */
17
+ sites?: readonly EcosystemSite[];
18
+ }
19
+
20
+ /**
21
+ * The sites of the family that answer what was typed, best first.
22
+ *
23
+ * Every word typed has to be found somewhere a site is known by — its name,
24
+ * its address, a name it had before, its tagline or its topic — with case and
25
+ * accents ignored, so `equilibre` finds the page that writes `équilibre`. A
26
+ * word the name or the address starts with ranks a site first, then a word
27
+ * inside the name, then one found anywhere else; ties keep the order of the
28
+ * catalogue.
29
+ * @param query - What was typed.
30
+ * @param options - See {@link SiteSearchOptions}.
31
+ * @returns The sites found, best first; none for a query with no word in it.
32
+ * @example
33
+ * searchSites('nmr')[0]?.id; // 'nmr'
34
+ */
35
+ export function searchSites(
36
+ query: string,
37
+ options: SiteSearchOptions = {},
38
+ ): EcosystemSite[] {
39
+ const words = searchWords(query);
40
+ if (words.length === 0) return [];
41
+ const { texts, sites = ECOSYSTEM_SITES } = options;
42
+
43
+ const found: Array<{ site: EcosystemSite; score: number; at: number }> = [];
44
+ for (let at = 0; at < sites.length; at++) {
45
+ const site = sites[at];
46
+ if (site === undefined) continue;
47
+ const score = siteScore(site, words, texts?.(site) ?? []);
48
+ if (score > 0) found.push({ site, score, at });
49
+ }
50
+ return found
51
+ .toSorted(
52
+ (first, second) => second.score - first.score || first.at - second.at,
53
+ )
54
+ .map((entry) => entry.site);
55
+ }
56
+
57
+ /**
58
+ * The words a query is made of, as they are compared: lowercased, without
59
+ * accents.
60
+ * @param query - What was typed.
61
+ * @returns Its words, none for a blank query.
62
+ */
63
+ export function searchWords(query: string): string[] {
64
+ return foldText(query)
65
+ .split(/\s+/u)
66
+ .filter((word) => word !== '');
67
+ }
68
+
69
+ function siteScore(
70
+ site: EcosystemSite,
71
+ words: readonly string[],
72
+ extra: readonly string[],
73
+ ): number {
74
+ const name = foldText(`${site.name.lead}${site.name.alt}`);
75
+ const host = foldText(site.host);
76
+ const text = foldText(
77
+ [
78
+ site.id,
79
+ site.name.lead,
80
+ site.name.alt,
81
+ site.host,
82
+ ...(site.formerIds ?? []),
83
+ ...(site.formerHosts ?? []),
84
+ site.tagline,
85
+ SITE_GROUPS.find((group) => group.id === site.group)?.label ?? '',
86
+ ...extra,
87
+ ].join(' '),
88
+ );
89
+
90
+ let score = 0;
91
+ for (const word of words) {
92
+ if (!text.includes(word) && !name.includes(word)) return 0;
93
+ if (name.startsWith(word) || host.startsWith(word)) score += 3;
94
+ else if (name.includes(word)) score += 2;
95
+ else score += 1;
96
+ }
97
+ return score;
98
+ }
99
+
100
+ function foldText(text: string): string {
101
+ return text.normalize('NFD').replaceAll(/\p{M}/gu, '').toLowerCase();
102
+ }
@@ -25,6 +25,7 @@ export type SiteId =
25
25
  | 'periodic-table'
26
26
  | 'database'
27
27
  | 'molecules'
28
+ | 'fair'
28
29
  | 'symmetry'
29
30
  | 'osiris'
30
31
  | 'atoms'
@@ -51,4 +51,19 @@ export const UNLISTED_SITES: readonly EcosystemSite[] = [
51
51
  },
52
52
  ],
53
53
  },
54
+ {
55
+ id: 'fair',
56
+ name: { lead: 'fair', alt: 'cheminfo', dot: true },
57
+ host: 'fair.cheminfo.org',
58
+ tagline:
59
+ 'Explore published chemistry datasets: compounds, spectra and documents.',
60
+ group: 'research',
61
+ // A deep olive leads at 7.08:1 on white, darker than metabo's olive so the
62
+ // two read apart, and an ocean blue answers at 5.93:1.
63
+ brand: '#3f6212',
64
+ brandAlt: '#0369a1',
65
+ // The mark takes the light form of that blue, 4.24:1 on the olive plate:
66
+ // the dark form sits at 1.19:1 there and vanishes at 16 px.
67
+ mark: { plate: '#3f6212', accent: '#7dd3fc' },
68
+ },
54
69
  ];
@@ -15,6 +15,12 @@ export interface EcosystemButtonProps extends HeaderButtonProps {
15
15
  * @default undefined
16
16
  */
17
17
  currentSiteId?: SiteId;
18
+ /**
19
+ * Whether the button sits on the family's entrance, www.cheminfo.org, which
20
+ * its menu then does not link back to.
21
+ * @default false
22
+ */
23
+ atHome?: boolean;
18
24
  /**
19
25
  * Text of the button. In a compact bar it is not written, but it stays what
20
26
  * the pointer and a screen reader are told.
@@ -35,7 +41,7 @@ export interface EcosystemButtonProps extends HeaderButtonProps {
35
41
  * @returns The button and its menu.
36
42
  */
37
43
  export function EcosystemButton(props: EcosystemButtonProps): ReactElement {
38
- const { currentSiteId, label, className, ...rest } = props;
44
+ const { currentSiteId, atHome, label, className, ...rest } = props;
39
45
  const t = useChromeT();
40
46
 
41
47
  return (
@@ -44,7 +50,7 @@ export function EcosystemButton(props: EcosystemButtonProps): ReactElement {
44
50
  className={joinClassNames('ecosystem-button', className)}
45
51
  icon="grid-view"
46
52
  label={label ?? t('ecosystem.tools')}
47
- menu={<EcosystemMenu currentSiteId={currentSiteId} />}
53
+ menu={<EcosystemMenu currentSiteId={currentSiteId} atHome={atHome} />}
48
54
  />
49
55
  );
50
56
  }
@@ -1,8 +1,16 @@
1
+ import { Icon } from '@blueprintjs/core';
1
2
  import type { CSSProperties, ReactElement } from 'react';
3
+ import { useState } from 'react';
2
4
 
3
5
  import { useChromeT } from '../../i18n/ui/useT.ts';
6
+ import { useSiteLanguage } from '../../language/ui/siteLanguageContext.ts';
7
+ import { FilterInput } from '../../panel/ui/FilterInput.tsx';
4
8
  import { joinClassNames } from '../../shared/ui/joinClassNames.ts';
9
+ import { TOKEN } from '../../tokens/core/familyTokens.ts';
10
+ import { ECOSYSTEM_HOME_HOST, ecosystemHomeUrl } from '../core/home.ts';
11
+ import { searchSites, searchWords } from '../core/searchSites.ts';
5
12
  import type { SiteId } from '../core/sites.ts';
13
+ import { siteUrl } from '../core/sites.ts';
6
14
 
7
15
  import { SiteGroupGrid } from './SiteGroupGrid.tsx';
8
16
  import { ECOSYSTEM_HEADING_STYLE } from './ecosystemStyles.ts';
@@ -16,6 +24,31 @@ const PANEL_STYLE: CSSProperties = {
16
24
  gap: 10,
17
25
  overflowY: 'auto',
18
26
  };
27
+ const HEADER_STYLE: CSSProperties = {
28
+ display: 'flex',
29
+ flexWrap: 'wrap',
30
+ alignItems: 'center',
31
+ gap: '6px 16px',
32
+ };
33
+ const HEADING_STYLE: CSSProperties = {
34
+ ...ECOSYSTEM_HEADING_STYLE,
35
+ flex: '1 1 auto',
36
+ };
37
+ const SEARCH_STYLE: CSSProperties = { width: 'min(16rem, 100%)' };
38
+ const HOME_STYLE: CSSProperties = {
39
+ display: 'inline-flex',
40
+ alignItems: 'center',
41
+ color: TOKEN.textMuted,
42
+ fontSize: '0.75rem',
43
+ fontWeight: 600,
44
+ gap: 5,
45
+ whiteSpace: 'nowrap',
46
+ };
47
+ const NO_MATCH_STYLE: CSSProperties = {
48
+ margin: '4px 0 16px',
49
+ color: TOKEN.textMuted,
50
+ fontSize: '0.8125rem',
51
+ };
19
52
 
20
53
  /** What the Tools menu needs. */
21
54
  export interface EcosystemMenuProps {
@@ -24,6 +57,12 @@ export interface EcosystemMenuProps {
24
57
  * @default undefined
25
58
  */
26
59
  currentSiteId?: SiteId;
60
+ /**
61
+ * Whether the visitor is on the family's entrance, www.cheminfo.org, which
62
+ * the menu then does not link back to.
63
+ * @default false
64
+ */
65
+ atHome?: boolean;
27
66
  /**
28
67
  * Class names added to the root element, after the component's own.
29
68
  * @default undefined
@@ -34,26 +73,83 @@ export interface EcosystemMenuProps {
34
73
  /**
35
74
  * What the ecosystem button opens: every site of the family, gathered under the
36
75
  * topic it belongs to, each behind its own little logo and the two colours it
37
- * owns.
76
+ * owns, with a search over them and a link to the family's entrance.
38
77
  *
39
78
  * The topics are what make the menu answer a question a flat grid of tiles
40
79
  * never could — which of these is for a first-year course, and which for
41
- * a research project. It lives in a popover, so a crawler never reaches it;
42
- * `EcosystemLinks` is what carries the family through the page itself.
80
+ * a research project. The search answers the other question, the one asked by
81
+ * name: it keeps the topics, leaves out the sites that do not answer, lights
82
+ * the best one, and Enter opens it. It lives in a popover, so a crawler never
83
+ * reaches it; `EcosystemLinks` is what carries the family through the page
84
+ * itself.
43
85
  * @param props - The site the visitor is already on.
44
- * @returns The topics and their sites.
86
+ * @returns The search, the topics and their sites.
45
87
  */
46
88
  export function EcosystemMenu(props: EcosystemMenuProps): ReactElement {
47
- const { className, currentSiteId } = props;
89
+ const { className, currentSiteId, atHome = false } = props;
48
90
  const t = useChromeT();
91
+ const language = useSiteLanguage();
92
+ const [query, setQuery] = useState('');
93
+
94
+ const searching = searchWords(query).length > 0;
95
+ const found = searchSites(query, {
96
+ texts: (site) => [
97
+ t.or(`site.${site.id}.tagline`, site.tagline),
98
+ t.or(`ecosystem.group.${site.group}.label`, ''),
99
+ ],
100
+ });
101
+ const target = found.find((site) => site.id !== currentSiteId);
49
102
 
50
103
  return (
51
104
  <div
52
105
  className={joinClassNames('ecosystem-menu', className)}
53
106
  style={PANEL_STYLE}
54
107
  >
55
- <div style={ECOSYSTEM_HEADING_STYLE}>{t('ecosystem.menuHeading')}</div>
56
- <SiteGroupGrid currentSiteId={currentSiteId} lit newTab />
108
+ <div style={HEADER_STYLE}>
109
+ <div style={HEADING_STYLE}>{t('ecosystem.menuHeading')}</div>
110
+ <div style={SEARCH_STYLE}>
111
+ <FilterInput
112
+ autoFocus
113
+ value={query}
114
+ placeholder={t('ecosystem.search')}
115
+ ariaLabel={t('ecosystem.search')}
116
+ onValueChange={setQuery}
117
+ onEnter={() => {
118
+ if (target === undefined) return;
119
+ globalThis.open(
120
+ siteUrl(target, { language }),
121
+ '_blank',
122
+ 'noreferrer',
123
+ );
124
+ }}
125
+ />
126
+ </div>
127
+ {atHome ? null : (
128
+ <a
129
+ href={ecosystemHomeUrl({ language })}
130
+ target="_blank"
131
+ rel="noreferrer"
132
+ title={t('ecosystem.homeTitle')}
133
+ style={HOME_STYLE}
134
+ >
135
+ <Icon icon="home" size={12} />
136
+ {ECOSYSTEM_HOME_HOST}
137
+ </a>
138
+ )}
139
+ </div>
140
+ {searching && found.length === 0 ? (
141
+ <p style={NO_MATCH_STYLE}>
142
+ {t('ecosystem.noMatch', { query: query.trim() })}
143
+ </p>
144
+ ) : (
145
+ <SiteGroupGrid
146
+ currentSiteId={currentSiteId}
147
+ only={searching ? new Set(found.map((site) => site.id)) : undefined}
148
+ pointed={searching ? target?.id : undefined}
149
+ lit
150
+ newTab
151
+ />
152
+ )}
57
153
  </div>
58
154
  );
59
155
  }
@@ -1,6 +1,7 @@
1
1
  import type { CSSProperties, ReactElement } from 'react';
2
2
  import { useState } from 'react';
3
3
 
4
+ import type { GroupedSites } from '../core/lookup.ts';
4
5
  import { groupedSites } from '../core/lookup.ts';
5
6
  import type { SiteId } from '../core/sites.ts';
6
7
 
@@ -32,6 +33,18 @@ interface SiteGroupGridProps {
32
33
  * @default false
33
34
  */
34
35
  newTab?: boolean;
36
+ /**
37
+ * The sites shown, such as those a search found; a topic holding none of
38
+ * them is left out.
39
+ * @default undefined — every site
40
+ */
41
+ only?: ReadonlySet<SiteId>;
42
+ /**
43
+ * The site lit while the pointer is on no tile, such as the one Enter opens
44
+ * from a search. Only a grid that lights its tiles shows it.
45
+ * @default undefined
46
+ */
47
+ pointed?: SiteId;
35
48
  }
36
49
 
37
50
  /**
@@ -41,19 +54,20 @@ interface SiteGroupGridProps {
41
54
  * @returns The grid of topics.
42
55
  */
43
56
  export function SiteGroupGrid(props: SiteGroupGridProps): ReactElement {
44
- const { currentSiteId, lit = false, newTab = false } = props;
57
+ const { currentSiteId, lit = false, newTab = false, only, pointed } = props;
45
58
  const [hovered, setHovered] = useState<SiteId | null>(null);
59
+ const shown = hovered ?? pointed;
46
60
 
47
61
  return (
48
62
  <div style={TOPICS_STYLE}>
49
- {groupedSites().map(({ group, sites }) => (
63
+ {shownGroups(only).map(({ group, sites }) => (
50
64
  <SiteGroupSection key={group.id} group={group}>
51
65
  {sites.map((site) => (
52
66
  <SiteTile
53
67
  key={site.id}
54
68
  site={site}
55
69
  isCurrent={site.id === currentSiteId}
56
- isHovered={lit && hovered === site.id}
70
+ isHovered={lit && shown === site.id}
57
71
  onHover={lit ? setHovered : undefined}
58
72
  newTab={newTab}
59
73
  />
@@ -63,3 +77,14 @@ export function SiteGroupGrid(props: SiteGroupGridProps): ReactElement {
63
77
  </div>
64
78
  );
65
79
  }
80
+
81
+ function shownGroups(only: ReadonlySet<SiteId> | undefined): GroupedSites[] {
82
+ const grouped = groupedSites();
83
+ if (only === undefined) return grouped;
84
+ const shown: GroupedSites[] = [];
85
+ for (const { group, sites } of grouped) {
86
+ const kept = sites.filter((site) => only.has(site.id));
87
+ if (kept.length > 0) shown.push({ group, sites: kept });
88
+ }
89
+ return shown;
90
+ }
@@ -428,6 +428,20 @@ export const GLYPHS: Record<SiteId, (alt: string) => ReactNode> = {
428
428
  <circle cx="24.6" cy="11.6" r="3.6" fill={alt} />
429
429
  </>
430
430
  ),
431
+ // An archive box, with a spectrum peak rising out of it in the answering
432
+ // colour: data kept, and data read back. The handle is cut out of the box,
433
+ // so the plate shows through it whatever colour the plate is drawn in.
434
+ fair: (alt) => (
435
+ <>
436
+ <path d="M7 16C11 16 13 5 16 5C19 5 21 16 25 16Z" fill={alt} />
437
+ <rect x="5" y="15" width="22" height="4.5" rx="1.5" fill="#ffffff" />
438
+ <path
439
+ d="M8.5 20.5H23.5A1.5 1.5 0 0 1 25 22V26A1.5 1.5 0 0 1 23.5 27.5H8.5A1.5 1.5 0 0 1 7 26V22A1.5 1.5 0 0 1 8.5 20.5ZM13.95 22.6A0.95 0.95 0 0 0 13.95 24.5H18.05A0.95 0.95 0 0 0 18.05 22.6Z"
440
+ fill="#ffffff"
441
+ fillRule="evenodd"
442
+ />
443
+ </>
444
+ ),
431
445
  // A tetrahedron seen from slightly above, four balls at its corners: the
432
446
  // first shape a chemist meets symmetry in. The apex carries the answering
433
447
  // colour, which is also the C3 axis every base triangle turns about.
@@ -74,6 +74,9 @@
74
74
  "account.refusal.accountInUse": "Diesem Konto gehören hier noch Daten: Setzen Sie seine Rolle auf Lesen herab, statt es zu entfernen.",
75
75
  "ecosystem.tools": "Werkzeuge",
76
76
  "ecosystem.menuHeading": "Unsere Werkzeuge, alle im Browser",
77
+ "ecosystem.search": "Werkzeuge durchsuchen",
78
+ "ecosystem.noMatch": "Kein Werkzeug passt zu „{query}“.",
79
+ "ecosystem.homeTitle": "Alle Werkzeuge nach Thema, und was neu ist",
77
80
  "ecosystem.otherTools": "Unsere weiteren Werkzeuge",
78
81
  "ecosystem.youAreHere": "Sie sind hier",
79
82
  "ecosystem.group.basics.label": "Grundlagen der Chemie",
@@ -126,6 +129,7 @@
126
129
  "site.glassware.tagline": "Laborglas zu einer funktionierenden Apparatur zusammensetzen und sie zeichnen.",
127
130
  "site.write.tagline": "Dokumente schreiben, deren Strukturen, 3D-Modelle und Platten sich dort wieder öffnen, wo sie entstanden sind.",
128
131
  "site.molecules.tagline": "Ein Molekül nachschlagen, mit seinen berechneten Eigenschaften und Quellen.",
132
+ "site.fair.tagline": "Veröffentlichte Chemie-Datensätze erkunden: Verbindungen, Spektren und Dokumente.",
129
133
  "site.chembio.tagline": "Naturstoffe, und die Organismen, in denen sie gefunden wurden.",
130
134
  "site.wikidata.tagline": "Die Chemie der Wikipedia-Infoboxen, nach Struktur durchsuchbar.",
131
135
  "site.mz.tagline": "Massenspektren, danach geordnet, wie sie gemessen wurden.",
@@ -741,6 +745,8 @@
741
745
  "molecule3d.exportImageOrMolfile": "Bild oder Molfile exportieren",
742
746
  "molecule3d.molfileHint": "Das Modell auf dem Bildschirm, mit seinen 3D-Koordinaten.",
743
747
  "molecule3d.molfileVersion": "Version",
748
+ "molecule3d.copyMolfile": "Als {version}-Molfile, bereit zum Einfügen.",
749
+ "molecule3d.copiedMolfile": "Kopiert, als {version}-Molfile.",
744
750
  "molecule3d.molfileV2000TooLarge": "V2000 fasst höchstens 999 Atome: Nehmen Sie V3000.",
745
751
  "molecule3d.frames": "Bilder",
746
752
  "molecule3d.framesHelp": "Ein animiertes PNG enthält alle Bilder und spielt sie in einer Schleife ab. Browser spielen es ab; ein Programm, das es nicht kann, zeigt das erste Bild.",
@@ -760,6 +766,10 @@
760
766
  "molecule3d.surfaceOpacity": "Deckkraft der Oberfläche",
761
767
  "molecule3d.solventProbe": "Lösungsmittelsonde [Å]",
762
768
  "molecule3d.solventProbeHelp": "Radius der Lösungsmittelkugel, die über die Atome gerollt wird. 1,4 Å entspricht einem Wassermolekül; eine größere Sonde glättet die Oberfläche und schließt die engen Taschen.",
769
+ "molecule3d.partialBonds": "Partielle Bindungen",
770
+ "molecule3d.partialBondsHelp": "Atome, die für eine Bindung etwas zu weit voneinander entfernt sind, wie bei einer Bindung, die sich bildet oder bricht, gestrichelt verbunden. Standardmäßig gezeichnet für eine XYZ-Datei, deren Bindungen aus den Abständen erraten werden.",
771
+ "molecule3d.partialBondLengths": "Ihre Längen anzeigen",
772
+ "molecule3d.partialBondsSpacefill": "Das Kalottenmodell zeichnet keine Bindungen.",
763
773
  "molecule3d.surfaceColour": "Farbe der Oberfläche",
764
774
  "molecule3d.colour": "Farbe",
765
775
  "molecule3d.resetSettings": "Auf Standardwerte zurücksetzen",
@@ -74,6 +74,9 @@
74
74
  "account.refusal.accountInUse": "This account still owns data here: lower its role to Read rather than remove it.",
75
75
  "ecosystem.tools": "Tools",
76
76
  "ecosystem.menuHeading": "Our tools, all in the browser",
77
+ "ecosystem.search": "Search the tools",
78
+ "ecosystem.noMatch": "No tool matches “{query}”.",
79
+ "ecosystem.homeTitle": "Every tool by topic, and what is new on them",
77
80
  "ecosystem.otherTools": "Our other tools",
78
81
  "ecosystem.youAreHere": "you are here",
79
82
  "ecosystem.group.basics.label": "Chemistry basics",
@@ -126,6 +129,7 @@
126
129
  "site.glassware.tagline": "Assemble lab glassware into a working apparatus, and draw it.",
127
130
  "site.write.tagline": "Write documents holding structures, 3D models and plates that open again where they were made.",
128
131
  "site.molecules.tagline": "Look up a molecule, its computed properties and its sources.",
132
+ "site.fair.tagline": "Explore published chemistry datasets: compounds, spectra and documents.",
129
133
  "site.chembio.tagline": "Natural products, and the organisms they were found in.",
130
134
  "site.wikidata.tagline": "The chemistry of Wikipedia’s infoboxes, searchable by structure.",
131
135
  "site.mz.tagline": "Mass spectra, classified by how they were measured.",
@@ -717,6 +721,8 @@
717
721
  "molecule3d.exportImageOrMolfile": "Export image or molfile",
718
722
  "molecule3d.molfileHint": "The model on screen, with its 3D coordinates.",
719
723
  "molecule3d.molfileVersion": "Version",
724
+ "molecule3d.copyMolfile": "As a {version} molfile, ready to paste.",
725
+ "molecule3d.copiedMolfile": "Copied, as a {version} molfile.",
720
726
  "molecule3d.molfileV2000TooLarge": "V2000 holds at most 999 atoms: take the V3000.",
721
727
  "molecule3d.frames": "Frames",
722
728
  "molecule3d.framesHelp": "An animated PNG holds every frame and plays them in a loop. Browsers play it; a program that cannot shows its first frame.",
@@ -736,6 +742,10 @@
736
742
  "molecule3d.surfaceOpacity": "Surface opacity",
737
743
  "molecule3d.solventProbe": "Solvent probe [Å]",
738
744
  "molecule3d.solventProbeHelp": "Radius of the solvent sphere rolled over the atoms. 1.4 Å is a water molecule; a larger probe smooths the surface and closes the narrow pockets.",
745
+ "molecule3d.partialBonds": "Partial bonds",
746
+ "molecule3d.partialBondsHelp": "Atoms a little too far apart to be bonded, as in a bond forming or breaking, joined by dashes. Drawn by default for an XYZ file, whose bonds are guessed from the distances.",
747
+ "molecule3d.partialBondLengths": "Label their lengths",
748
+ "molecule3d.partialBondsSpacefill": "Spacefill draws no bonds.",
739
749
  "molecule3d.surfaceColour": "Surface colour",
740
750
  "molecule3d.colour": "Colour",
741
751
  "molecule3d.resetSettings": "Reset to defaults",
@@ -74,6 +74,9 @@
74
74
  "account.refusal.accountInUse": "Esta cuenta aún posee datos aquí: baje su rol a Lectura en lugar de eliminarla.",
75
75
  "ecosystem.tools": "Herramientas",
76
76
  "ecosystem.menuHeading": "Nuestras herramientas, todas en el navegador",
77
+ "ecosystem.search": "Buscar una herramienta",
78
+ "ecosystem.noMatch": "Ninguna herramienta coincide con «{query}».",
79
+ "ecosystem.homeTitle": "Todas las herramientas por tema, y sus novedades",
77
80
  "ecosystem.otherTools": "Nuestras otras herramientas",
78
81
  "ecosystem.youAreHere": "está aquí",
79
82
  "ecosystem.group.basics.label": "Fundamentos de química",
@@ -126,6 +129,7 @@
126
129
  "site.glassware.tagline": "Montar el material de vidrio en un aparato que funciona, y dibujarlo.",
127
130
  "site.write.tagline": "Escribir documentos con estructuras, modelos 3D y placas que se vuelven a abrir donde se hicieron.",
128
131
  "site.molecules.tagline": "Buscar una molécula, sus propiedades calculadas y sus fuentes.",
132
+ "site.fair.tagline": "Explorar conjuntos de datos de química publicados: compuestos, espectros y documentos.",
129
133
  "site.chembio.tagline": "Productos naturales, y los organismos en los que se encontraron.",
130
134
  "site.wikidata.tagline": "La química de las fichas de Wikipedia, con búsqueda por estructura.",
131
135
  "site.mz.tagline": "Espectros de masas, clasificados según cómo se midieron.",
@@ -741,6 +745,8 @@
741
745
  "molecule3d.exportImageOrMolfile": "Exportar la imagen o el molfile",
742
746
  "molecule3d.molfileHint": "El modelo en pantalla, con sus coordenadas 3D.",
743
747
  "molecule3d.molfileVersion": "Versión",
748
+ "molecule3d.copyMolfile": "Como molfile {version}, listo para pegar.",
749
+ "molecule3d.copiedMolfile": "Copiado, como molfile {version}.",
744
750
  "molecule3d.molfileV2000TooLarge": "V2000 admite como máximo 999 átomos: use V3000.",
745
751
  "molecule3d.frames": "Fotogramas",
746
752
  "molecule3d.framesHelp": "Un PNG animado contiene todos los fotogramas y los reproduce en bucle. Los navegadores lo reproducen; un programa que no puede muestra el primer fotograma.",
@@ -760,6 +766,10 @@
760
766
  "molecule3d.surfaceOpacity": "Opacidad de la superficie",
761
767
  "molecule3d.solventProbe": "Sonda de disolvente [Å]",
762
768
  "molecule3d.solventProbeHelp": "Radio de la esfera de disolvente que se hace rodar sobre los átomos. 1,4 Å corresponde a una molécula de agua; una sonda mayor suaviza la superficie y cierra los huecos estrechos.",
769
+ "molecule3d.partialBonds": "Enlaces parciales",
770
+ "molecule3d.partialBondsHelp": "Átomos algo demasiado alejados para estar enlazados, como en un enlace que se forma o se rompe, unidos por guiones. Se dibujan por defecto para un archivo XYZ, cuyos enlaces se deducen de las distancias.",
771
+ "molecule3d.partialBondLengths": "Indicar sus longitudes",
772
+ "molecule3d.partialBondsSpacefill": "Las esferas compactas no dibujan ningún enlace.",
763
773
  "molecule3d.surfaceColour": "Color de la superficie",
764
774
  "molecule3d.colour": "Color",
765
775
  "molecule3d.resetSettings": "Restablecer los valores predeterminados",
@@ -74,6 +74,9 @@
74
74
  "account.refusal.accountInUse": "Ce compte possède encore des données ici : abaissez son rôle à Lecture plutôt que de le supprimer.",
75
75
  "ecosystem.tools": "Outils",
76
76
  "ecosystem.menuHeading": "Nos outils, tous dans le navigateur",
77
+ "ecosystem.search": "Chercher un outil",
78
+ "ecosystem.noMatch": "Aucun outil ne correspond à « {query} ».",
79
+ "ecosystem.homeTitle": "Tous les outils par thème, et leurs nouveautés",
77
80
  "ecosystem.otherTools": "Nos autres outils",
78
81
  "ecosystem.youAreHere": "vous êtes ici",
79
82
  "ecosystem.group.basics.label": "Bases de la chimie",
@@ -126,6 +129,7 @@
126
129
  "site.glassware.tagline": "Assembler la verrerie en un montage qui fonctionne, et le dessiner.",
127
130
  "site.write.tagline": "Écrire des documents qui contiennent structures, modèles 3D et plaques, chacun se rouvrant là où il a été fait.",
128
131
  "site.molecules.tagline": "Rechercher une molécule, ses propriétés calculées et ses sources.",
132
+ "site.fair.tagline": "Explorer des jeux de données de chimie publiés : composés, spectres et documents.",
129
133
  "site.chembio.tagline": "Les produits naturels, et les organismes où ils ont été trouvés.",
130
134
  "site.wikidata.tagline": "La chimie des infobox de Wikipédia, interrogeable par structure.",
131
135
  "site.mz.tagline": "Des spectres de masse, classés selon la façon dont ils ont été mesurés.",
@@ -741,6 +745,8 @@
741
745
  "molecule3d.exportImageOrMolfile": "Exporter l'image ou le molfile",
742
746
  "molecule3d.molfileHint": "Le modèle à l'écran, avec ses coordonnées 3D.",
743
747
  "molecule3d.molfileVersion": "Version",
748
+ "molecule3d.copyMolfile": "En molfile {version}, prêt à coller.",
749
+ "molecule3d.copiedMolfile": "Copié, en molfile {version}.",
744
750
  "molecule3d.molfileV2000TooLarge": "Le V2000 contient au plus 999 atomes : prenez le V3000.",
745
751
  "molecule3d.frames": "Images",
746
752
  "molecule3d.framesHelp": "Un PNG animé contient toutes les images et les joue en boucle. Les navigateurs le jouent ; un programme qui ne le peut pas montre la première image.",
@@ -760,6 +766,10 @@
760
766
  "molecule3d.surfaceOpacity": "Opacité de la surface",
761
767
  "molecule3d.solventProbe": "Sonde de solvant [Å]",
762
768
  "molecule3d.solventProbeHelp": "Rayon de la sphère de solvant roulée sur les atomes. 1,4 Å correspond à une molécule d'eau ; une sonde plus grande lisse la surface et ferme les poches étroites.",
769
+ "molecule3d.partialBonds": "Liaisons partielles",
770
+ "molecule3d.partialBondsHelp": "Atomes un peu trop éloignés pour être liés, comme dans une liaison qui se forme ou se rompt, reliés par des tirets. Dessinées par défaut pour un fichier XYZ, dont les liaisons sont devinées d'après les distances.",
771
+ "molecule3d.partialBondLengths": "Indiquer leurs longueurs",
772
+ "molecule3d.partialBondsSpacefill": "Les sphères compactes ne dessinent aucune liaison.",
763
773
  "molecule3d.surfaceColour": "Couleur de la surface",
764
774
  "molecule3d.colour": "Couleur",
765
775
  "molecule3d.resetSettings": "Rétablir les valeurs par défaut",
@@ -74,6 +74,9 @@
74
74
  "account.refusal.accountInUse": "Questo account possiede ancora dei dati qui: abbassa il suo ruolo a Lettura invece di rimuoverlo.",
75
75
  "ecosystem.tools": "Strumenti",
76
76
  "ecosystem.menuHeading": "I nostri strumenti, tutti nel browser",
77
+ "ecosystem.search": "Cerca uno strumento",
78
+ "ecosystem.noMatch": "Nessuno strumento corrisponde a «{query}».",
79
+ "ecosystem.homeTitle": "Tutti gli strumenti per tema, e le loro novità",
77
80
  "ecosystem.otherTools": "I nostri altri strumenti",
78
81
  "ecosystem.youAreHere": "si trova qui",
79
82
  "ecosystem.group.basics.label": "Fondamenti di chimica",
@@ -126,6 +129,7 @@
126
129
  "site.glassware.tagline": "Montare la vetreria in un apparato funzionante, e disegnarlo.",
127
130
  "site.write.tagline": "Scrivere documenti con strutture, modelli 3D e lastre che si riaprono dove sono stati creati.",
128
131
  "site.molecules.tagline": "Cercare una molecola, le sue proprietà calcolate e le sue fonti.",
132
+ "site.fair.tagline": "Esplorare insiemi di dati di chimica pubblicati: composti, spettri e documenti.",
129
133
  "site.chembio.tagline": "Prodotti naturali, e gli organismi in cui sono stati trovati.",
130
134
  "site.wikidata.tagline": "La chimica delle infobox di Wikipedia, ricercabile per struttura.",
131
135
  "site.mz.tagline": "Spettri di massa, classificati in base a come sono stati misurati.",
@@ -717,6 +721,8 @@
717
721
  "molecule3d.exportImageOrMolfile": "Esporta l'immagine o il molfile",
718
722
  "molecule3d.molfileHint": "Il modello sullo schermo, con le sue coordinate 3D.",
719
723
  "molecule3d.molfileVersion": "Versione",
724
+ "molecule3d.copyMolfile": "Come molfile {version}, pronto da incollare.",
725
+ "molecule3d.copiedMolfile": "Copiato, come molfile {version}.",
720
726
  "molecule3d.molfileV2000TooLarge": "V2000 contiene al massimo 999 atomi: usi V3000.",
721
727
  "molecule3d.frames": "Fotogrammi",
722
728
  "molecule3d.framesHelp": "Un PNG animato contiene tutti i fotogrammi e li riproduce in ciclo. I browser lo riproducono; un programma che non può mostra il primo fotogramma.",
@@ -736,6 +742,10 @@
736
742
  "molecule3d.surfaceOpacity": "Opacità della superficie",
737
743
  "molecule3d.solventProbe": "Sonda di solvente [Å]",
738
744
  "molecule3d.solventProbeHelp": "Raggio della sfera di solvente fatta rotolare sugli atomi. 1,4 Å corrisponde a una molecola d'acqua; una sonda più grande liscia la superficie e chiude le tasche strette.",
745
+ "molecule3d.partialBonds": "Legami parziali",
746
+ "molecule3d.partialBondsHelp": "Atomi un po' troppo distanti per essere legati, come in un legame che si forma o si rompe, uniti da trattini. Disegnati per impostazione predefinita per un file XYZ, i cui legami sono dedotti dalle distanze.",
747
+ "molecule3d.partialBondLengths": "Indicare le loro lunghezze",
748
+ "molecule3d.partialBondsSpacefill": "Le sfere compatte non disegnano alcun legame.",
739
749
  "molecule3d.surfaceColour": "Colore della superficie",
740
750
  "molecule3d.colour": "Colore",
741
751
  "molecule3d.resetSettings": "Ripristina i valori predefiniti",