molstar 3.5.0 → 3.6.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 (284) hide show
  1. package/build/viewer/index.html +1 -1
  2. package/build/viewer/molstar.js +1 -1
  3. package/build/viewer/molstar.js.LICENSE.txt +12 -14
  4. package/lib/apps/docking-viewer/index.js +1 -1
  5. package/lib/apps/viewer/app.js +1 -1
  6. package/lib/apps/viewer/index.html +1 -1
  7. package/lib/cli/chem-comp-dict/util.d.ts +20 -20
  8. package/lib/cli/cifschema/util/cif-dic.d.ts +1 -1
  9. package/lib/cli/cifschema/util/cif-dic.js +7 -5
  10. package/lib/cli/cifschema/util/generate.d.ts +1 -1
  11. package/lib/cli/cifschema/util/generate.js +12 -3
  12. package/lib/cli/cifschema/util/schema.d.ts +3 -3
  13. package/lib/cli/cifschema/util/schema.js +1 -1
  14. package/lib/commonjs/apps/docking-viewer/index.js +2 -2
  15. package/lib/commonjs/apps/viewer/app.js +2 -2
  16. package/lib/commonjs/cli/chem-comp-dict/util.d.ts +20 -20
  17. package/lib/commonjs/cli/cifschema/util/cif-dic.d.ts +1 -1
  18. package/lib/commonjs/cli/cifschema/util/cif-dic.js +7 -5
  19. package/lib/commonjs/cli/cifschema/util/generate.d.ts +1 -1
  20. package/lib/commonjs/cli/cifschema/util/generate.js +12 -3
  21. package/lib/commonjs/cli/cifschema/util/schema.d.ts +3 -3
  22. package/lib/commonjs/cli/cifschema/util/schema.js +1 -1
  23. package/lib/commonjs/examples/alpha-orbitals/index.js +2 -2
  24. package/lib/commonjs/examples/basic-wrapper/index.js +2 -2
  25. package/lib/commonjs/examples/lighting/index.js +2 -2
  26. package/lib/commonjs/examples/proteopedia-wrapper/index.js +2 -2
  27. package/lib/commonjs/extensions/anvil/behavior.d.ts +1 -0
  28. package/lib/commonjs/extensions/anvil/representation.d.ts +4 -0
  29. package/lib/commonjs/extensions/cellpack/representation.d.ts +1 -0
  30. package/lib/commonjs/extensions/dnatco/confal-pyramids/representation.d.ts +3 -0
  31. package/lib/commonjs/extensions/rcsb/assembly-symmetry/behavior.d.ts +1 -0
  32. package/lib/commonjs/extensions/rcsb/assembly-symmetry/representation.d.ts +1 -0
  33. package/lib/commonjs/extensions/rcsb/validation-report/representation.d.ts +5 -0
  34. package/lib/commonjs/mol-canvas3d/canvas3d.d.ts +2 -0
  35. package/lib/commonjs/mol-canvas3d/helper/camera-helper.d.ts +1 -0
  36. package/lib/commonjs/mol-canvas3d/helper/handle-helper.d.ts +1 -0
  37. package/lib/commonjs/mol-canvas3d/helper/helper.d.ts +2 -0
  38. package/lib/commonjs/mol-canvas3d/passes/image.d.ts +1 -0
  39. package/lib/commonjs/mol-data/db/column.d.ts +10 -3
  40. package/lib/commonjs/mol-data/db/column.js +39 -17
  41. package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.d.ts +4 -2
  42. package/lib/commonjs/mol-geo/geometry/cylinders/cylinders.js +2 -2
  43. package/lib/commonjs/mol-geo/geometry/mesh/mesh.d.ts +2 -1
  44. package/lib/commonjs/mol-geo/geometry/mesh/mesh.js +2 -2
  45. package/lib/commonjs/mol-geo/geometry/spheres/spheres.d.ts +2 -1
  46. package/lib/commonjs/mol-geo/geometry/spheres/spheres.js +2 -2
  47. package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +2 -1
  48. package/lib/commonjs/mol-geo/geometry/texture-mesh/texture-mesh.js +2 -2
  49. package/lib/commonjs/mol-gl/shader/chunks/wboit-write.glsl.d.ts +2 -2
  50. package/lib/commonjs/mol-gl/shader/chunks/wboit-write.glsl.js +2 -2
  51. package/lib/commonjs/mol-gl/shader/direct-volume.frag.d.ts +1 -1
  52. package/lib/commonjs/mol-gl/shader/direct-volume.frag.js +1 -1
  53. package/lib/commonjs/mol-gl/shader/image.frag.d.ts +2 -2
  54. package/lib/commonjs/mol-gl/shader/image.frag.js +2 -2
  55. package/lib/commonjs/mol-gl/shader/lines.frag.d.ts +2 -2
  56. package/lib/commonjs/mol-gl/shader/lines.frag.js +2 -2
  57. package/lib/commonjs/mol-gl/shader/points.frag.d.ts +2 -2
  58. package/lib/commonjs/mol-gl/shader/points.frag.js +2 -2
  59. package/lib/commonjs/mol-gl/shader/text.frag.d.ts +2 -2
  60. package/lib/commonjs/mol-gl/shader/text.frag.js +2 -2
  61. package/lib/commonjs/mol-gl/webgl/buffer.d.ts +2 -2
  62. package/lib/commonjs/mol-gl/webgl/buffer.js +12 -12
  63. package/lib/commonjs/mol-gl/webgl/program.d.ts +1 -1
  64. package/lib/commonjs/mol-gl/webgl/program.js +10 -4
  65. package/lib/commonjs/mol-io/reader/cif/schema/bird.d.ts +8 -8
  66. package/lib/commonjs/mol-io/reader/cif/schema/bird.js +12 -11
  67. package/lib/commonjs/mol-io/reader/cif/schema/ccd-extras.d.ts +1 -1
  68. package/lib/commonjs/mol-io/reader/cif/schema/ccd.d.ts +12 -12
  69. package/lib/commonjs/mol-io/reader/cif/schema/ccd.js +13 -12
  70. package/lib/commonjs/mol-io/reader/cif/schema/mmcif-extras.d.ts +5 -5
  71. package/lib/commonjs/mol-io/reader/cif/schema/mmcif-extras.js +2 -2
  72. package/lib/commonjs/mol-io/reader/cif/schema/mmcif.d.ts +30 -26
  73. package/lib/commonjs/mol-io/reader/cif/schema/mmcif.js +44 -39
  74. package/lib/commonjs/mol-io/reader/cif/schema.d.ts +1 -1
  75. package/lib/commonjs/mol-io/reader/cif/schema.js +22 -2
  76. package/lib/commonjs/mol-io/writer/mol/encoder.js +1 -1
  77. package/lib/commonjs/mol-model/structure/model/model.js +14 -6
  78. package/lib/commonjs/mol-model/structure/model/properties/common.js +1 -1
  79. package/lib/commonjs/mol-model/structure/model/types.d.ts +19 -17
  80. package/lib/commonjs/mol-model/structure/model/types.js +30 -31
  81. package/lib/commonjs/mol-model/structure/query/queries/generators.js +1 -1
  82. package/lib/commonjs/mol-model/structure/structure/properties.d.ts +1 -1
  83. package/lib/commonjs/mol-model/structure/structure/unit/bonds/inter-compute.js +2 -4
  84. package/lib/commonjs/mol-model/structure/structure/unit/bonds/intra-compute.js +1 -3
  85. package/lib/commonjs/mol-model/structure/structure/unit/rings.js +3 -0
  86. package/lib/commonjs/mol-model-formats/shape/ply.d.ts +2 -0
  87. package/lib/commonjs/mol-model-formats/structure/basic/entities.js +1 -1
  88. package/lib/commonjs/mol-model-formats/structure/basic/schema.d.ts +2 -2
  89. package/lib/commonjs/mol-model-formats/structure/common/component.d.ts +3 -3
  90. package/lib/commonjs/mol-model-formats/structure/common/component.js +46 -46
  91. package/lib/commonjs/mol-model-formats/structure/pdb/atom-site.d.ts +2 -2
  92. package/lib/commonjs/mol-model-formats/structure/pdb/atom-site.js +72 -7
  93. package/lib/commonjs/mol-model-formats/structure/pdb/secondary-structure.js +11 -11
  94. package/lib/commonjs/mol-model-formats/structure/pdb/to-cif.js +7 -2
  95. package/lib/commonjs/mol-model-formats/structure/property/bonds/chem_comp.js +1 -1
  96. package/lib/commonjs/mol-model-formats/structure/property/bonds/struct_conn.js +1 -1
  97. package/lib/commonjs/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -0
  98. package/lib/commonjs/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +1 -0
  99. package/lib/commonjs/mol-model-props/computed/representations/interactions.d.ts +3 -0
  100. package/lib/commonjs/mol-model-props/integrative/cross-link-restraint/representation.d.ts +4 -0
  101. package/lib/commonjs/mol-plugin/behavior/dynamic/volume-streaming/util.js +3 -2
  102. package/lib/commonjs/mol-plugin/commands.d.ts +1 -0
  103. package/lib/commonjs/mol-plugin/util/viewport-screenshot.d.ts +3 -0
  104. package/lib/commonjs/mol-plugin-state/actions/structure.d.ts +6 -6
  105. package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.d.ts +1 -1
  106. package/lib/commonjs/mol-plugin-state/helpers/structure-selection-query.js +1 -1
  107. package/lib/commonjs/mol-plugin-state/transforms/representation.d.ts +6 -0
  108. package/lib/commonjs/mol-plugin-ui/react18.d.ts +11 -0
  109. package/lib/commonjs/mol-plugin-ui/react18.js +38 -0
  110. package/lib/commonjs/mol-plugin-ui/structure/focus.d.ts +1 -1
  111. package/lib/commonjs/mol-plugin-ui/structure/focus.js +2 -2
  112. package/lib/commonjs/mol-repr/shape/loci/angle.d.ts +1 -0
  113. package/lib/commonjs/mol-repr/shape/loci/dihedral.d.ts +1 -0
  114. package/lib/commonjs/mol-repr/shape/loci/orientation.d.ts +1 -0
  115. package/lib/commonjs/mol-repr/shape/loci/plane.d.ts +1 -0
  116. package/lib/commonjs/mol-repr/shape/model/unitcell.d.ts +1 -0
  117. package/lib/commonjs/mol-repr/structure/complex-visual.d.ts +3 -0
  118. package/lib/commonjs/mol-repr/structure/params.d.ts +4 -0
  119. package/lib/commonjs/mol-repr/structure/registry.d.ts +10 -0
  120. package/lib/commonjs/mol-repr/structure/representation/backbone.d.ts +3 -0
  121. package/lib/commonjs/mol-repr/structure/representation/ball-and-stick.d.ts +3 -0
  122. package/lib/commonjs/mol-repr/structure/representation/carbohydrate.d.ts +3 -0
  123. package/lib/commonjs/mol-repr/structure/representation/cartoon.d.ts +3 -0
  124. package/lib/commonjs/mol-repr/structure/representation/ellipsoid.d.ts +3 -0
  125. package/lib/commonjs/mol-repr/structure/representation/gaussian-surface.d.ts +3 -0
  126. package/lib/commonjs/mol-repr/structure/representation/molecular-surface.d.ts +3 -0
  127. package/lib/commonjs/mol-repr/structure/representation/orientation.d.ts +3 -0
  128. package/lib/commonjs/mol-repr/structure/representation/putty.d.ts +3 -0
  129. package/lib/commonjs/mol-repr/structure/representation/spacefill.d.ts +3 -0
  130. package/lib/commonjs/mol-repr/structure/units-visual.d.ts +4 -0
  131. package/lib/commonjs/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +2 -0
  132. package/lib/commonjs/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +2 -0
  133. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +1 -0
  134. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -0
  135. package/lib/commonjs/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +1 -0
  136. package/lib/commonjs/mol-repr/structure/visual/element-sphere.d.ts +2 -0
  137. package/lib/commonjs/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -0
  138. package/lib/commonjs/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +4 -0
  139. package/lib/commonjs/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -0
  140. package/lib/commonjs/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -0
  141. package/lib/commonjs/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -0
  142. package/lib/commonjs/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -0
  143. package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +2 -0
  144. package/lib/commonjs/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -0
  145. package/lib/commonjs/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -0
  146. package/lib/commonjs/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -0
  147. package/lib/commonjs/mol-repr/structure/visual/polymer-trace-mesh.d.ts +1 -0
  148. package/lib/commonjs/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -0
  149. package/lib/commonjs/mol-repr/util.d.ts +2 -1
  150. package/lib/commonjs/mol-repr/util.js +2 -2
  151. package/lib/commonjs/mol-repr/volume/isosurface.d.ts +5 -0
  152. package/lib/commonjs/mol-repr/volume/registry.d.ts +1 -0
  153. package/lib/examples/alpha-orbitals/index.js +1 -1
  154. package/lib/examples/basic-wrapper/index.js +1 -1
  155. package/lib/examples/lighting/index.js +1 -1
  156. package/lib/examples/proteopedia-wrapper/index.js +1 -1
  157. package/lib/extensions/anvil/behavior.d.ts +1 -0
  158. package/lib/extensions/anvil/representation.d.ts +4 -0
  159. package/lib/extensions/cellpack/representation.d.ts +1 -0
  160. package/lib/extensions/dnatco/confal-pyramids/representation.d.ts +3 -0
  161. package/lib/extensions/rcsb/assembly-symmetry/behavior.d.ts +1 -0
  162. package/lib/extensions/rcsb/assembly-symmetry/representation.d.ts +1 -0
  163. package/lib/extensions/rcsb/validation-report/representation.d.ts +5 -0
  164. package/lib/mol-canvas3d/canvas3d.d.ts +2 -0
  165. package/lib/mol-canvas3d/helper/camera-helper.d.ts +1 -0
  166. package/lib/mol-canvas3d/helper/handle-helper.d.ts +1 -0
  167. package/lib/mol-canvas3d/helper/helper.d.ts +2 -0
  168. package/lib/mol-canvas3d/passes/image.d.ts +1 -0
  169. package/lib/mol-data/db/column.d.ts +10 -3
  170. package/lib/mol-data/db/column.js +39 -18
  171. package/lib/mol-geo/geometry/cylinders/cylinders.d.ts +4 -2
  172. package/lib/mol-geo/geometry/cylinders/cylinders.js +2 -2
  173. package/lib/mol-geo/geometry/mesh/mesh.d.ts +2 -1
  174. package/lib/mol-geo/geometry/mesh/mesh.js +2 -2
  175. package/lib/mol-geo/geometry/spheres/spheres.d.ts +2 -1
  176. package/lib/mol-geo/geometry/spheres/spheres.js +2 -2
  177. package/lib/mol-geo/geometry/texture-mesh/texture-mesh.d.ts +2 -1
  178. package/lib/mol-geo/geometry/texture-mesh/texture-mesh.js +2 -2
  179. package/lib/mol-gl/shader/chunks/wboit-write.glsl.d.ts +2 -2
  180. package/lib/mol-gl/shader/chunks/wboit-write.glsl.js +2 -2
  181. package/lib/mol-gl/shader/direct-volume.frag.d.ts +1 -1
  182. package/lib/mol-gl/shader/direct-volume.frag.js +1 -1
  183. package/lib/mol-gl/shader/image.frag.d.ts +2 -2
  184. package/lib/mol-gl/shader/image.frag.js +2 -2
  185. package/lib/mol-gl/shader/lines.frag.d.ts +2 -2
  186. package/lib/mol-gl/shader/lines.frag.js +2 -2
  187. package/lib/mol-gl/shader/points.frag.d.ts +2 -2
  188. package/lib/mol-gl/shader/points.frag.js +2 -2
  189. package/lib/mol-gl/shader/text.frag.d.ts +2 -2
  190. package/lib/mol-gl/shader/text.frag.js +2 -2
  191. package/lib/mol-gl/webgl/buffer.d.ts +2 -2
  192. package/lib/mol-gl/webgl/buffer.js +12 -12
  193. package/lib/mol-gl/webgl/program.d.ts +1 -1
  194. package/lib/mol-gl/webgl/program.js +10 -4
  195. package/lib/mol-io/reader/cif/schema/bird.d.ts +8 -8
  196. package/lib/mol-io/reader/cif/schema/bird.js +12 -11
  197. package/lib/mol-io/reader/cif/schema/ccd-extras.d.ts +1 -1
  198. package/lib/mol-io/reader/cif/schema/ccd.d.ts +12 -12
  199. package/lib/mol-io/reader/cif/schema/ccd.js +13 -12
  200. package/lib/mol-io/reader/cif/schema/mmcif-extras.d.ts +5 -5
  201. package/lib/mol-io/reader/cif/schema/mmcif-extras.js +2 -2
  202. package/lib/mol-io/reader/cif/schema/mmcif.d.ts +30 -26
  203. package/lib/mol-io/reader/cif/schema/mmcif.js +44 -39
  204. package/lib/mol-io/reader/cif/schema.d.ts +1 -1
  205. package/lib/mol-io/reader/cif/schema.js +22 -2
  206. package/lib/mol-io/writer/mol/encoder.js +1 -1
  207. package/lib/mol-model/structure/model/model.js +14 -6
  208. package/lib/mol-model/structure/model/properties/common.js +1 -1
  209. package/lib/mol-model/structure/model/types.d.ts +19 -17
  210. package/lib/mol-model/structure/model/types.js +30 -31
  211. package/lib/mol-model/structure/query/queries/generators.js +1 -1
  212. package/lib/mol-model/structure/structure/properties.d.ts +1 -1
  213. package/lib/mol-model/structure/structure/unit/bonds/inter-compute.js +2 -4
  214. package/lib/mol-model/structure/structure/unit/bonds/intra-compute.js +1 -3
  215. package/lib/mol-model/structure/structure/unit/rings.js +3 -0
  216. package/lib/mol-model-formats/shape/ply.d.ts +2 -0
  217. package/lib/mol-model-formats/structure/basic/entities.js +1 -1
  218. package/lib/mol-model-formats/structure/basic/schema.d.ts +2 -2
  219. package/lib/mol-model-formats/structure/common/component.d.ts +3 -3
  220. package/lib/mol-model-formats/structure/common/component.js +46 -46
  221. package/lib/mol-model-formats/structure/pdb/atom-site.d.ts +2 -2
  222. package/lib/mol-model-formats/structure/pdb/atom-site.js +72 -7
  223. package/lib/mol-model-formats/structure/pdb/secondary-structure.js +11 -11
  224. package/lib/mol-model-formats/structure/pdb/to-cif.js +7 -2
  225. package/lib/mol-model-formats/structure/property/bonds/chem_comp.js +1 -1
  226. package/lib/mol-model-formats/structure/property/bonds/struct_conn.js +1 -1
  227. package/lib/mol-model-props/computed/representations/interactions-inter-unit-cylinder.d.ts +1 -0
  228. package/lib/mol-model-props/computed/representations/interactions-intra-unit-cylinder.d.ts +1 -0
  229. package/lib/mol-model-props/computed/representations/interactions.d.ts +3 -0
  230. package/lib/mol-model-props/integrative/cross-link-restraint/representation.d.ts +4 -0
  231. package/lib/mol-plugin/behavior/dynamic/volume-streaming/util.js +3 -2
  232. package/lib/mol-plugin/commands.d.ts +1 -0
  233. package/lib/mol-plugin/util/viewport-screenshot.d.ts +3 -0
  234. package/lib/mol-plugin/version.js +2 -2
  235. package/lib/mol-plugin-state/actions/structure.d.ts +6 -6
  236. package/lib/mol-plugin-state/helpers/structure-selection-query.d.ts +1 -1
  237. package/lib/mol-plugin-state/helpers/structure-selection-query.js +1 -1
  238. package/lib/mol-plugin-state/transforms/representation.d.ts +6 -0
  239. package/lib/mol-plugin-ui/react18.d.ts +11 -0
  240. package/lib/mol-plugin-ui/react18.js +34 -0
  241. package/lib/mol-plugin-ui/structure/focus.d.ts +1 -1
  242. package/lib/mol-plugin-ui/structure/focus.js +2 -2
  243. package/lib/mol-repr/shape/loci/angle.d.ts +1 -0
  244. package/lib/mol-repr/shape/loci/dihedral.d.ts +1 -0
  245. package/lib/mol-repr/shape/loci/orientation.d.ts +1 -0
  246. package/lib/mol-repr/shape/loci/plane.d.ts +1 -0
  247. package/lib/mol-repr/shape/model/unitcell.d.ts +1 -0
  248. package/lib/mol-repr/structure/complex-visual.d.ts +3 -0
  249. package/lib/mol-repr/structure/params.d.ts +4 -0
  250. package/lib/mol-repr/structure/registry.d.ts +10 -0
  251. package/lib/mol-repr/structure/representation/backbone.d.ts +3 -0
  252. package/lib/mol-repr/structure/representation/ball-and-stick.d.ts +3 -0
  253. package/lib/mol-repr/structure/representation/carbohydrate.d.ts +3 -0
  254. package/lib/mol-repr/structure/representation/cartoon.d.ts +3 -0
  255. package/lib/mol-repr/structure/representation/ellipsoid.d.ts +3 -0
  256. package/lib/mol-repr/structure/representation/gaussian-surface.d.ts +3 -0
  257. package/lib/mol-repr/structure/representation/molecular-surface.d.ts +3 -0
  258. package/lib/mol-repr/structure/representation/orientation.d.ts +3 -0
  259. package/lib/mol-repr/structure/representation/putty.d.ts +3 -0
  260. package/lib/mol-repr/structure/representation/spacefill.d.ts +3 -0
  261. package/lib/mol-repr/structure/units-visual.d.ts +4 -0
  262. package/lib/mol-repr/structure/visual/bond-inter-unit-cylinder.d.ts +2 -0
  263. package/lib/mol-repr/structure/visual/bond-intra-unit-cylinder.d.ts +2 -0
  264. package/lib/mol-repr/structure/visual/carbohydrate-link-cylinder.d.ts +1 -0
  265. package/lib/mol-repr/structure/visual/carbohydrate-symbol-mesh.d.ts +1 -0
  266. package/lib/mol-repr/structure/visual/carbohydrate-terminal-link-cylinder.d.ts +1 -0
  267. package/lib/mol-repr/structure/visual/element-sphere.d.ts +2 -0
  268. package/lib/mol-repr/structure/visual/ellipsoid-mesh.d.ts +1 -0
  269. package/lib/mol-repr/structure/visual/gaussian-surface-mesh.d.ts +4 -0
  270. package/lib/mol-repr/structure/visual/molecular-surface-mesh.d.ts +1 -0
  271. package/lib/mol-repr/structure/visual/nucleotide-block-mesh.d.ts +1 -0
  272. package/lib/mol-repr/structure/visual/nucleotide-ring-mesh.d.ts +1 -0
  273. package/lib/mol-repr/structure/visual/orientation-ellipsoid-mesh.d.ts +1 -0
  274. package/lib/mol-repr/structure/visual/polymer-backbone-cylinder.d.ts +2 -0
  275. package/lib/mol-repr/structure/visual/polymer-backbone-sphere.d.ts +2 -0
  276. package/lib/mol-repr/structure/visual/polymer-direction-wedge.d.ts +1 -0
  277. package/lib/mol-repr/structure/visual/polymer-gap-cylinder.d.ts +1 -0
  278. package/lib/mol-repr/structure/visual/polymer-trace-mesh.d.ts +1 -0
  279. package/lib/mol-repr/structure/visual/polymer-tube-mesh.d.ts +1 -0
  280. package/lib/mol-repr/util.d.ts +2 -1
  281. package/lib/mol-repr/util.js +2 -2
  282. package/lib/mol-repr/volume/isosurface.d.ts +5 -0
  283. package/lib/mol-repr/volume/registry.d.ts +1 -0
  284. package/package.json +8 -6
@@ -1,9 +1,3 @@
1
- /*
2
- object-assign
3
- (c) Sindre Sorhus
4
- @license MIT
5
- */
6
-
7
1
  /*!
8
2
  * The buffer module from node.js, for the browser.
9
3
  *
@@ -30,8 +24,9 @@ PERFORMANCE OF THIS SOFTWARE.
30
24
 
31
25
  /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
32
26
 
33
- /** @license React v0.20.2
34
- * scheduler.production.min.js
27
+ /**
28
+ * @license React
29
+ * react-dom.production.min.js
35
30
  *
36
31
  * Copyright (c) Facebook, Inc. and its affiliates.
37
32
  *
@@ -39,8 +34,9 @@ PERFORMANCE OF THIS SOFTWARE.
39
34
  * LICENSE file in the root directory of this source tree.
40
35
  */
41
36
 
42
- /** @license React v17.0.2
43
- * react-dom.production.min.js
37
+ /**
38
+ * @license React
39
+ * react-jsx-runtime.production.min.js
44
40
  *
45
41
  * Copyright (c) Facebook, Inc. and its affiliates.
46
42
  *
@@ -48,8 +44,9 @@ PERFORMANCE OF THIS SOFTWARE.
48
44
  * LICENSE file in the root directory of this source tree.
49
45
  */
50
46
 
51
- /** @license React v17.0.2
52
- * react-jsx-runtime.production.min.js
47
+ /**
48
+ * @license React
49
+ * react.production.min.js
53
50
  *
54
51
  * Copyright (c) Facebook, Inc. and its affiliates.
55
52
  *
@@ -57,8 +54,9 @@ PERFORMANCE OF THIS SOFTWARE.
57
54
  * LICENSE file in the root directory of this source tree.
58
55
  */
59
56
 
60
- /** @license React v17.0.2
61
- * react.production.min.js
57
+ /**
58
+ * @license React
59
+ * scheduler.production.min.js
62
60
  *
63
61
  * Copyright (c) Facebook, Inc. and its affiliates.
64
62
  *
@@ -7,7 +7,7 @@
7
7
  import { __assign, __awaiter, __generator } from "tslib";
8
8
  import { Structure } from '../../mol-model/structure';
9
9
  import { PluginStateObject as PSO, PluginStateTransform } from '../../mol-plugin-state/objects';
10
- import { createPluginUI } from '../../mol-plugin-ui';
10
+ import { createPluginUI } from '../../mol-plugin-ui/react18';
11
11
  import { DefaultPluginUISpec } from '../../mol-plugin-ui/spec';
12
12
  import { PluginBehaviors } from '../../mol-plugin/behavior';
13
13
  import { PluginCommands } from '../../mol-plugin/commands';
@@ -25,7 +25,7 @@ import { PresetStructureRepresentations, StructureRepresentationPresetProvider }
25
25
  import { createVolumeRepresentationParams } from '../../mol-plugin-state/helpers/volume-representation-params';
26
26
  import { StateTransforms } from '../../mol-plugin-state/transforms';
27
27
  import { TrajectoryFromModelAndCoordinates } from '../../mol-plugin-state/transforms/model';
28
- import { createPluginUI } from '../../mol-plugin-ui';
28
+ import { createPluginUI } from '../../mol-plugin-ui/react18';
29
29
  import { DefaultPluginUISpec } from '../../mol-plugin-ui/spec';
30
30
  import { PluginCommands } from '../../mol-plugin/commands';
31
31
  import { PluginConfig } from '../../mol-plugin/config';
@@ -71,7 +71,7 @@
71
71
  pixelScale: parseFloat(pixelScale) || 1,
72
72
  pickScale: parseFloat(pickScale) || 0.25,
73
73
  pickPadding: isNaN(parseFloat(pickPadding)) ? 1 : parseFloat(pickPadding),
74
- enableWboit: disableWboit ? true : void 0, // use default value if disable-wboit is not set
74
+ enableWboit: disableWboit ? false : void 0, // use default value if disable-wboit is not set
75
75
  preferWebgl1: preferWebgl1,
76
76
  }).then(viewer => {
77
77
  var snapshotId = getParam('snapshot-id', '[^&]+').trim();
@@ -16,7 +16,7 @@ export declare function readCCD(): Promise<import("../../mol-data/db").DatabaseC
16
16
  name: import("../../mol-data/db/column").Column.Schema.Str;
17
17
  one_letter_code: import("../../mol-data/db/column").Column.Schema.Str;
18
18
  three_letter_code: import("../../mol-data/db/column").Column.Schema.Str;
19
- type: import("../../mol-data/db/column").Column.Schema.Aliased<"other" | "D-peptide linking" | "L-peptide linking" | "D-peptide NH3 amino terminus" | "L-peptide NH3 amino terminus" | "D-peptide COOH carboxy terminus" | "L-peptide COOH carboxy terminus" | "DNA linking" | "RNA linking" | "L-RNA linking" | "L-DNA linking" | "DNA OH 5 prime terminus" | "RNA OH 5 prime terminus" | "DNA OH 3 prime terminus" | "RNA OH 3 prime terminus" | "D-saccharide, beta linking" | "D-saccharide, alpha linking" | "L-saccharide, beta linking" | "L-saccharide, alpha linking" | "L-saccharide" | "D-saccharide" | "saccharide" | "non-polymer" | "peptide linking" | "peptide-like" | "L-gamma-peptide, C-delta linking" | "D-gamma-peptide, C-delta linking" | "L-beta-peptide, C-gamma linking" | "D-beta-peptide, C-gamma linking">;
19
+ type: import("../../mol-data/db/column").Column.Schema.Aliased<"other" | "d-peptide linking" | "l-peptide linking" | "d-peptide nh3 amino terminus" | "l-peptide nh3 amino terminus" | "d-peptide cooh carboxy terminus" | "l-peptide cooh carboxy terminus" | "dna linking" | "rna linking" | "l-rna linking" | "l-dna linking" | "dna oh 5 prime terminus" | "rna oh 5 prime terminus" | "dna oh 3 prime terminus" | "rna oh 3 prime terminus" | "d-saccharide, beta linking" | "d-saccharide, alpha linking" | "l-saccharide, beta linking" | "l-saccharide, alpha linking" | "l-saccharide" | "d-saccharide" | "saccharide" | "non-polymer" | "peptide linking" | "peptide-like" | "l-gamma-peptide, c-delta linking" | "d-gamma-peptide, c-delta linking" | "l-beta-peptide, c-gamma linking" | "d-beta-peptide, c-gamma linking">;
20
20
  pdbx_synonyms: import("../../mol-data/db/column").Column.Schema.List<string>;
21
21
  pdbx_type: import("../../mol-data/db/column").Column.Schema.Str;
22
22
  pdbx_ambiguous_flag: import("../../mol-data/db/column").Column.Schema.Str;
@@ -26,12 +26,12 @@ export declare function readCCD(): Promise<import("../../mol-data/db").DatabaseC
26
26
  pdbx_model_coordinates_details: import("../../mol-data/db/column").Column.Schema.Str;
27
27
  pdbx_model_coordinates_db_code: import("../../mol-data/db/column").Column.Schema.Str;
28
28
  pdbx_ideal_coordinates_details: import("../../mol-data/db/column").Column.Schema.Str;
29
- pdbx_ideal_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "Y">;
30
- pdbx_model_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "Y">;
29
+ pdbx_ideal_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
30
+ pdbx_model_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
31
31
  pdbx_initial_date: import("../../mol-data/db/column").Column.Schema.Str;
32
32
  pdbx_modified_date: import("../../mol-data/db/column").Column.Schema.Str;
33
33
  pdbx_release_status: import("../../mol-data/db/column").Column.Schema.Aliased<"REL" | "HOLD" | "HPUB" | "OBS" | "DEL" | "REF_ONLY">;
34
- pdbx_processing_site: import("../../mol-data/db/column").Column.Schema.Aliased<"RCSB" | "EBI" | "PDBE" | "PDBJ" | "PDBC">;
34
+ pdbx_processing_site: import("../../mol-data/db/column").Column.Schema.Aliased<"RCSB" | "PDBE" | "PDBJ" | "PDBC" | "EBI">;
35
35
  };
36
36
  chem_comp_atom: {
37
37
  alt_atom_id: import("../../mol-data/db/column").Column.Schema.Str;
@@ -47,9 +47,9 @@ export declare function readCCD(): Promise<import("../../mol-data/db").DatabaseC
47
47
  pdbx_model_Cartn_x_ideal: import("../../mol-data/db/column").Column.Schema.Coordinate;
48
48
  pdbx_model_Cartn_y_ideal: import("../../mol-data/db/column").Column.Schema.Coordinate;
49
49
  pdbx_model_Cartn_z_ideal: import("../../mol-data/db/column").Column.Schema.Coordinate;
50
- pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "R" | "S">;
51
- pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "Y">;
52
- pdbx_leaving_atom_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "Y">;
50
+ pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"s" | "r" | "n">;
51
+ pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
52
+ pdbx_leaving_atom_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
53
53
  };
54
54
  chem_comp_bond: {
55
55
  atom_id_1: import("../../mol-data/db/column").Column.Schema.Str;
@@ -57,13 +57,13 @@ export declare function readCCD(): Promise<import("../../mol-data/db").DatabaseC
57
57
  comp_id: import("../../mol-data/db/column").Column.Schema.Str;
58
58
  value_order: import("../../mol-data/db/column").Column.Schema.Aliased<"sing" | "doub" | "trip" | "quad" | "arom" | "poly" | "delo" | "pi">;
59
59
  pdbx_ordinal: import("../../mol-data/db/column").Column.Schema.Int;
60
- pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "E" | "Z">;
61
- pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "Y">;
60
+ pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"z" | "n" | "e">;
61
+ pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
62
62
  };
63
63
  pdbx_chem_comp_descriptor: {
64
64
  comp_id: import("../../mol-data/db/column").Column.Schema.Str;
65
65
  descriptor: import("../../mol-data/db/column").Column.Schema.Str;
66
- type: import("../../mol-data/db/column").Column.Schema.Aliased<"SMILES_CANNONICAL" | "SMILES_CANONICAL" | "SMILES" | "InChI" | "InChI_MAIN" | "InChI_MAIN_FORMULA" | "InChI_MAIN_CONNECT" | "InChI_MAIN_HATOM" | "InChI_CHARGE" | "InChI_STEREO" | "InChI_ISOTOPE" | "InChI_FIXEDH" | "InChI_RECONNECT" | "InChIKey">;
66
+ type: import("../../mol-data/db/column").Column.Schema.Aliased<"smiles_cannonical" | "smiles_canonical" | "smiles" | "inchi" | "inchi_main" | "inchi_main_formula" | "inchi_main_connect" | "inchi_main_hatom" | "inchi_charge" | "inchi_stereo" | "inchi_isotope" | "inchi_fixedh" | "inchi_reconnect" | "inchikey">;
67
67
  program: import("../../mol-data/db/column").Column.Schema.Str;
68
68
  program_version: import("../../mol-data/db/column").Column.Schema.Str;
69
69
  };
@@ -84,7 +84,7 @@ export declare function readPVCD(): Promise<import("../../mol-data/db").Database
84
84
  name: import("../../mol-data/db/column").Column.Schema.Str;
85
85
  one_letter_code: import("../../mol-data/db/column").Column.Schema.Str;
86
86
  three_letter_code: import("../../mol-data/db/column").Column.Schema.Str;
87
- type: import("../../mol-data/db/column").Column.Schema.Aliased<"other" | "D-peptide linking" | "L-peptide linking" | "D-peptide NH3 amino terminus" | "L-peptide NH3 amino terminus" | "D-peptide COOH carboxy terminus" | "L-peptide COOH carboxy terminus" | "DNA linking" | "RNA linking" | "L-RNA linking" | "L-DNA linking" | "DNA OH 5 prime terminus" | "RNA OH 5 prime terminus" | "DNA OH 3 prime terminus" | "RNA OH 3 prime terminus" | "D-saccharide, beta linking" | "D-saccharide, alpha linking" | "L-saccharide, beta linking" | "L-saccharide, alpha linking" | "L-saccharide" | "D-saccharide" | "saccharide" | "non-polymer" | "peptide linking" | "peptide-like" | "L-gamma-peptide, C-delta linking" | "D-gamma-peptide, C-delta linking" | "L-beta-peptide, C-gamma linking" | "D-beta-peptide, C-gamma linking">;
87
+ type: import("../../mol-data/db/column").Column.Schema.Aliased<"other" | "d-peptide linking" | "l-peptide linking" | "d-peptide nh3 amino terminus" | "l-peptide nh3 amino terminus" | "d-peptide cooh carboxy terminus" | "l-peptide cooh carboxy terminus" | "dna linking" | "rna linking" | "l-rna linking" | "l-dna linking" | "dna oh 5 prime terminus" | "rna oh 5 prime terminus" | "dna oh 3 prime terminus" | "rna oh 3 prime terminus" | "d-saccharide, beta linking" | "d-saccharide, alpha linking" | "l-saccharide, beta linking" | "l-saccharide, alpha linking" | "l-saccharide" | "d-saccharide" | "saccharide" | "non-polymer" | "peptide linking" | "peptide-like" | "l-gamma-peptide, c-delta linking" | "d-gamma-peptide, c-delta linking" | "l-beta-peptide, c-gamma linking" | "d-beta-peptide, c-gamma linking">;
88
88
  pdbx_synonyms: import("../../mol-data/db/column").Column.Schema.List<string>;
89
89
  pdbx_type: import("../../mol-data/db/column").Column.Schema.Str;
90
90
  pdbx_ambiguous_flag: import("../../mol-data/db/column").Column.Schema.Str;
@@ -94,12 +94,12 @@ export declare function readPVCD(): Promise<import("../../mol-data/db").Database
94
94
  pdbx_model_coordinates_details: import("../../mol-data/db/column").Column.Schema.Str;
95
95
  pdbx_model_coordinates_db_code: import("../../mol-data/db/column").Column.Schema.Str;
96
96
  pdbx_ideal_coordinates_details: import("../../mol-data/db/column").Column.Schema.Str;
97
- pdbx_ideal_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "Y">;
98
- pdbx_model_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "Y">;
97
+ pdbx_ideal_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
98
+ pdbx_model_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
99
99
  pdbx_initial_date: import("../../mol-data/db/column").Column.Schema.Str;
100
100
  pdbx_modified_date: import("../../mol-data/db/column").Column.Schema.Str;
101
101
  pdbx_release_status: import("../../mol-data/db/column").Column.Schema.Aliased<"REL" | "HOLD" | "HPUB" | "OBS" | "DEL" | "REF_ONLY">;
102
- pdbx_processing_site: import("../../mol-data/db/column").Column.Schema.Aliased<"RCSB" | "EBI" | "PDBE" | "PDBJ" | "PDBC">;
102
+ pdbx_processing_site: import("../../mol-data/db/column").Column.Schema.Aliased<"RCSB" | "PDBE" | "PDBJ" | "PDBC" | "EBI">;
103
103
  };
104
104
  chem_comp_atom: {
105
105
  alt_atom_id: import("../../mol-data/db/column").Column.Schema.Str;
@@ -115,9 +115,9 @@ export declare function readPVCD(): Promise<import("../../mol-data/db").Database
115
115
  pdbx_model_Cartn_x_ideal: import("../../mol-data/db/column").Column.Schema.Coordinate;
116
116
  pdbx_model_Cartn_y_ideal: import("../../mol-data/db/column").Column.Schema.Coordinate;
117
117
  pdbx_model_Cartn_z_ideal: import("../../mol-data/db/column").Column.Schema.Coordinate;
118
- pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "R" | "S">;
119
- pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "Y">;
120
- pdbx_leaving_atom_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "Y">;
118
+ pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"s" | "r" | "n">;
119
+ pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
120
+ pdbx_leaving_atom_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
121
121
  };
122
122
  chem_comp_bond: {
123
123
  atom_id_1: import("../../mol-data/db/column").Column.Schema.Str;
@@ -125,13 +125,13 @@ export declare function readPVCD(): Promise<import("../../mol-data/db").Database
125
125
  comp_id: import("../../mol-data/db/column").Column.Schema.Str;
126
126
  value_order: import("../../mol-data/db/column").Column.Schema.Aliased<"sing" | "doub" | "trip" | "quad" | "arom" | "poly" | "delo" | "pi">;
127
127
  pdbx_ordinal: import("../../mol-data/db/column").Column.Schema.Int;
128
- pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "E" | "Z">;
129
- pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "Y">;
128
+ pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"z" | "n" | "e">;
129
+ pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
130
130
  };
131
131
  pdbx_chem_comp_descriptor: {
132
132
  comp_id: import("../../mol-data/db/column").Column.Schema.Str;
133
133
  descriptor: import("../../mol-data/db/column").Column.Schema.Str;
134
- type: import("../../mol-data/db/column").Column.Schema.Aliased<"SMILES_CANNONICAL" | "SMILES_CANONICAL" | "SMILES" | "InChI" | "InChI_MAIN" | "InChI_MAIN_FORMULA" | "InChI_MAIN_CONNECT" | "InChI_MAIN_HATOM" | "InChI_CHARGE" | "InChI_STEREO" | "InChI_ISOTOPE" | "InChI_FIXEDH" | "InChI_RECONNECT" | "InChIKey">;
134
+ type: import("../../mol-data/db/column").Column.Schema.Aliased<"smiles_cannonical" | "smiles_canonical" | "smiles" | "inchi" | "inchi_main" | "inchi_main_formula" | "inchi_main_connect" | "inchi_main_hatom" | "inchi_charge" | "inchi_stereo" | "inchi_isotope" | "inchi_fixedh" | "inchi_reconnect" | "inchikey">;
135
135
  program: import("../../mol-data/db/column").Column.Schema.Str;
136
136
  program_version: import("../../mol-data/db/column").Column.Schema.Str;
137
137
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2017-2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2017-2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
@@ -10,15 +10,17 @@ export function getFieldType(type, description, values, container) {
10
10
  switch (type) {
11
11
  // mmCIF
12
12
  case 'code':
13
- case 'ucode':
14
13
  case 'line':
15
- case 'uline':
16
14
  case 'text':
17
15
  case 'char':
18
- case 'uchar3':
19
- case 'uchar1':
20
16
  case 'boolean':
21
17
  return values && values.length ? EnumCol(values, 'str', description) : StrCol(description);
18
+ case 'ucode':
19
+ case 'uline':
20
+ case 'uchar3':
21
+ case 'uchar1':
22
+ // only force lower-case for enums
23
+ return values && values.length ? EnumCol(values.map(function (x) { return x.toLowerCase(); }), 'lstr', description) : StrCol(description);
22
24
  case 'aliasname':
23
25
  case 'name':
24
26
  case 'idname':
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2017-2019 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
@@ -1,12 +1,12 @@
1
1
  /**
2
- * Copyright (c) 2017-2019 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
6
6
  import { indentString } from '../../../mol-util/string';
7
7
  import { FieldPath } from '../../../mol-io/reader/cif/schema';
8
8
  function header(name, info, moldataImportPath) {
9
- return "/**\n * Copyright (c) 2017-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.\n *\n * Code-generated '".concat(name, "' schema file. ").concat(info, "\n *\n * @author molstar/ciftools package\n */\n\nimport { Database, Column } from '").concat(moldataImportPath, "/db';\n\nimport Schema = Column.Schema;");
9
+ return "/**\n * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.\n *\n * Code-generated '".concat(name, "' schema file. ").concat(info, "\n *\n * @author molstar/ciftools package\n */\n\nimport { Database, Column } from '").concat(moldataImportPath, "/db';\n\nimport Schema = Column.Schema;");
10
10
  }
11
11
  function footer(name) {
12
12
  return "\nexport type ".concat(name, "_Schema = typeof ").concat(name, "_Schema;\nexport interface ").concat(name, "_Database extends Database<").concat(name, "_Schema> {};");
@@ -20,7 +20,10 @@ function getTypeShorthands(schema, fields) {
20
20
  Object.keys(columns).forEach(function (columnName) {
21
21
  if (fields && !fields[table][columnName])
22
22
  return;
23
- types.add(schema.tables[table].columns[columnName].type);
23
+ var col = schema.tables[table].columns[columnName];
24
+ if (col.type === 'enum')
25
+ types.add(col.subType);
26
+ types.add(col.type);
24
27
  });
25
28
  });
26
29
  var shorthands = [];
@@ -29,6 +32,12 @@ function getTypeShorthands(schema, fields) {
29
32
  case 'str':
30
33
  shorthands.push('const str = Schema.str;');
31
34
  break;
35
+ case 'ustr':
36
+ shorthands.push('const ustr = Schema.ustr;');
37
+ break;
38
+ case 'lstr':
39
+ shorthands.push('const lstr = Schema.lstr;');
40
+ break;
32
41
  case 'int':
33
42
  shorthands.push('const int = Schema.int;');
34
43
  break;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2017-2019 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
@@ -40,10 +40,10 @@ export declare type CoordCol = {
40
40
  export declare function CoordCol(description: string): CoordCol;
41
41
  export declare type EnumCol = {
42
42
  type: 'enum';
43
- subType: 'int' | 'str';
43
+ subType: 'int' | 'str' | 'ustr' | 'lstr';
44
44
  values: string[];
45
45
  } & BaseCol;
46
- export declare function EnumCol(values: string[], subType: 'int' | 'str', description: string): EnumCol;
46
+ export declare function EnumCol(values: string[], subType: 'int' | 'str' | 'ustr' | 'lstr', description: string): EnumCol;
47
47
  export declare type VectorCol = {
48
48
  type: 'vector';
49
49
  length: number;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2017-2019 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
@@ -10,7 +10,7 @@ exports.DockingViewer = exports.setProductionMode = exports.setDebugMode = expor
10
10
  var tslib_1 = require("tslib");
11
11
  var structure_1 = require("../../mol-model/structure");
12
12
  var objects_1 = require("../../mol-plugin-state/objects");
13
- var mol_plugin_ui_1 = require("../../mol-plugin-ui");
13
+ var react18_1 = require("../../mol-plugin-ui/react18");
14
14
  var spec_1 = require("../../mol-plugin-ui/spec");
15
15
  var behavior_1 = require("../../mol-plugin/behavior");
16
16
  var commands_1 = require("../../mol-plugin/commands");
@@ -118,7 +118,7 @@ var Viewer = /** @class */ (function () {
118
118
  : elementOrId;
119
119
  if (!element)
120
120
  throw new Error("Could not get element with id '".concat(elementOrId, "'"));
121
- return [4 /*yield*/, (0, mol_plugin_ui_1.createPluginUI)(element, spec)];
121
+ return [4 /*yield*/, (0, react18_1.createPluginUI)(element, spec)];
122
122
  case 1:
123
123
  plugin = _b.sent();
124
124
  plugin.customState = {
@@ -28,7 +28,7 @@ var representation_preset_1 = require("../../mol-plugin-state/builder/structure/
28
28
  var volume_representation_params_1 = require("../../mol-plugin-state/helpers/volume-representation-params");
29
29
  var transforms_1 = require("../../mol-plugin-state/transforms");
30
30
  var model_1 = require("../../mol-plugin-state/transforms/model");
31
- var mol_plugin_ui_1 = require("../../mol-plugin-ui");
31
+ var react18_1 = require("../../mol-plugin-ui/react18");
32
32
  var spec_1 = require("../../mol-plugin-ui/spec");
33
33
  var commands_1 = require("../../mol-plugin/commands");
34
34
  var config_1 = require("../../mol-plugin/config");
@@ -156,7 +156,7 @@ var Viewer = /** @class */ (function () {
156
156
  : elementOrId;
157
157
  if (!element)
158
158
  throw new Error("Could not get element with id '".concat(elementOrId, "'"));
159
- return [4 /*yield*/, (0, mol_plugin_ui_1.createPluginUI)(element, spec, {
159
+ return [4 /*yield*/, (0, react18_1.createPluginUI)(element, spec, {
160
160
  onBeforeUIRender: function (plugin) {
161
161
  // the preset needs to be added before the UI renders otherwise
162
162
  // "Download Structure" wont be able to pick it up
@@ -16,7 +16,7 @@ export declare function readCCD(): Promise<import("../../mol-data/db").DatabaseC
16
16
  name: import("../../mol-data/db/column").Column.Schema.Str;
17
17
  one_letter_code: import("../../mol-data/db/column").Column.Schema.Str;
18
18
  three_letter_code: import("../../mol-data/db/column").Column.Schema.Str;
19
- type: import("../../mol-data/db/column").Column.Schema.Aliased<"other" | "D-peptide linking" | "L-peptide linking" | "D-peptide NH3 amino terminus" | "L-peptide NH3 amino terminus" | "D-peptide COOH carboxy terminus" | "L-peptide COOH carboxy terminus" | "DNA linking" | "RNA linking" | "L-RNA linking" | "L-DNA linking" | "DNA OH 5 prime terminus" | "RNA OH 5 prime terminus" | "DNA OH 3 prime terminus" | "RNA OH 3 prime terminus" | "D-saccharide, beta linking" | "D-saccharide, alpha linking" | "L-saccharide, beta linking" | "L-saccharide, alpha linking" | "L-saccharide" | "D-saccharide" | "saccharide" | "non-polymer" | "peptide linking" | "peptide-like" | "L-gamma-peptide, C-delta linking" | "D-gamma-peptide, C-delta linking" | "L-beta-peptide, C-gamma linking" | "D-beta-peptide, C-gamma linking">;
19
+ type: import("../../mol-data/db/column").Column.Schema.Aliased<"other" | "d-peptide linking" | "l-peptide linking" | "d-peptide nh3 amino terminus" | "l-peptide nh3 amino terminus" | "d-peptide cooh carboxy terminus" | "l-peptide cooh carboxy terminus" | "dna linking" | "rna linking" | "l-rna linking" | "l-dna linking" | "dna oh 5 prime terminus" | "rna oh 5 prime terminus" | "dna oh 3 prime terminus" | "rna oh 3 prime terminus" | "d-saccharide, beta linking" | "d-saccharide, alpha linking" | "l-saccharide, beta linking" | "l-saccharide, alpha linking" | "l-saccharide" | "d-saccharide" | "saccharide" | "non-polymer" | "peptide linking" | "peptide-like" | "l-gamma-peptide, c-delta linking" | "d-gamma-peptide, c-delta linking" | "l-beta-peptide, c-gamma linking" | "d-beta-peptide, c-gamma linking">;
20
20
  pdbx_synonyms: import("../../mol-data/db/column").Column.Schema.List<string>;
21
21
  pdbx_type: import("../../mol-data/db/column").Column.Schema.Str;
22
22
  pdbx_ambiguous_flag: import("../../mol-data/db/column").Column.Schema.Str;
@@ -26,12 +26,12 @@ export declare function readCCD(): Promise<import("../../mol-data/db").DatabaseC
26
26
  pdbx_model_coordinates_details: import("../../mol-data/db/column").Column.Schema.Str;
27
27
  pdbx_model_coordinates_db_code: import("../../mol-data/db/column").Column.Schema.Str;
28
28
  pdbx_ideal_coordinates_details: import("../../mol-data/db/column").Column.Schema.Str;
29
- pdbx_ideal_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "Y">;
30
- pdbx_model_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "Y">;
29
+ pdbx_ideal_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
30
+ pdbx_model_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
31
31
  pdbx_initial_date: import("../../mol-data/db/column").Column.Schema.Str;
32
32
  pdbx_modified_date: import("../../mol-data/db/column").Column.Schema.Str;
33
33
  pdbx_release_status: import("../../mol-data/db/column").Column.Schema.Aliased<"REL" | "HOLD" | "HPUB" | "OBS" | "DEL" | "REF_ONLY">;
34
- pdbx_processing_site: import("../../mol-data/db/column").Column.Schema.Aliased<"RCSB" | "EBI" | "PDBE" | "PDBJ" | "PDBC">;
34
+ pdbx_processing_site: import("../../mol-data/db/column").Column.Schema.Aliased<"RCSB" | "PDBE" | "PDBJ" | "PDBC" | "EBI">;
35
35
  };
36
36
  chem_comp_atom: {
37
37
  alt_atom_id: import("../../mol-data/db/column").Column.Schema.Str;
@@ -47,9 +47,9 @@ export declare function readCCD(): Promise<import("../../mol-data/db").DatabaseC
47
47
  pdbx_model_Cartn_x_ideal: import("../../mol-data/db/column").Column.Schema.Coordinate;
48
48
  pdbx_model_Cartn_y_ideal: import("../../mol-data/db/column").Column.Schema.Coordinate;
49
49
  pdbx_model_Cartn_z_ideal: import("../../mol-data/db/column").Column.Schema.Coordinate;
50
- pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "R" | "S">;
51
- pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "Y">;
52
- pdbx_leaving_atom_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "Y">;
50
+ pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"s" | "r" | "n">;
51
+ pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
52
+ pdbx_leaving_atom_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
53
53
  };
54
54
  chem_comp_bond: {
55
55
  atom_id_1: import("../../mol-data/db/column").Column.Schema.Str;
@@ -57,13 +57,13 @@ export declare function readCCD(): Promise<import("../../mol-data/db").DatabaseC
57
57
  comp_id: import("../../mol-data/db/column").Column.Schema.Str;
58
58
  value_order: import("../../mol-data/db/column").Column.Schema.Aliased<"sing" | "doub" | "trip" | "quad" | "arom" | "poly" | "delo" | "pi">;
59
59
  pdbx_ordinal: import("../../mol-data/db/column").Column.Schema.Int;
60
- pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "E" | "Z">;
61
- pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "Y">;
60
+ pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"z" | "n" | "e">;
61
+ pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
62
62
  };
63
63
  pdbx_chem_comp_descriptor: {
64
64
  comp_id: import("../../mol-data/db/column").Column.Schema.Str;
65
65
  descriptor: import("../../mol-data/db/column").Column.Schema.Str;
66
- type: import("../../mol-data/db/column").Column.Schema.Aliased<"SMILES_CANNONICAL" | "SMILES_CANONICAL" | "SMILES" | "InChI" | "InChI_MAIN" | "InChI_MAIN_FORMULA" | "InChI_MAIN_CONNECT" | "InChI_MAIN_HATOM" | "InChI_CHARGE" | "InChI_STEREO" | "InChI_ISOTOPE" | "InChI_FIXEDH" | "InChI_RECONNECT" | "InChIKey">;
66
+ type: import("../../mol-data/db/column").Column.Schema.Aliased<"smiles_cannonical" | "smiles_canonical" | "smiles" | "inchi" | "inchi_main" | "inchi_main_formula" | "inchi_main_connect" | "inchi_main_hatom" | "inchi_charge" | "inchi_stereo" | "inchi_isotope" | "inchi_fixedh" | "inchi_reconnect" | "inchikey">;
67
67
  program: import("../../mol-data/db/column").Column.Schema.Str;
68
68
  program_version: import("../../mol-data/db/column").Column.Schema.Str;
69
69
  };
@@ -84,7 +84,7 @@ export declare function readPVCD(): Promise<import("../../mol-data/db").Database
84
84
  name: import("../../mol-data/db/column").Column.Schema.Str;
85
85
  one_letter_code: import("../../mol-data/db/column").Column.Schema.Str;
86
86
  three_letter_code: import("../../mol-data/db/column").Column.Schema.Str;
87
- type: import("../../mol-data/db/column").Column.Schema.Aliased<"other" | "D-peptide linking" | "L-peptide linking" | "D-peptide NH3 amino terminus" | "L-peptide NH3 amino terminus" | "D-peptide COOH carboxy terminus" | "L-peptide COOH carboxy terminus" | "DNA linking" | "RNA linking" | "L-RNA linking" | "L-DNA linking" | "DNA OH 5 prime terminus" | "RNA OH 5 prime terminus" | "DNA OH 3 prime terminus" | "RNA OH 3 prime terminus" | "D-saccharide, beta linking" | "D-saccharide, alpha linking" | "L-saccharide, beta linking" | "L-saccharide, alpha linking" | "L-saccharide" | "D-saccharide" | "saccharide" | "non-polymer" | "peptide linking" | "peptide-like" | "L-gamma-peptide, C-delta linking" | "D-gamma-peptide, C-delta linking" | "L-beta-peptide, C-gamma linking" | "D-beta-peptide, C-gamma linking">;
87
+ type: import("../../mol-data/db/column").Column.Schema.Aliased<"other" | "d-peptide linking" | "l-peptide linking" | "d-peptide nh3 amino terminus" | "l-peptide nh3 amino terminus" | "d-peptide cooh carboxy terminus" | "l-peptide cooh carboxy terminus" | "dna linking" | "rna linking" | "l-rna linking" | "l-dna linking" | "dna oh 5 prime terminus" | "rna oh 5 prime terminus" | "dna oh 3 prime terminus" | "rna oh 3 prime terminus" | "d-saccharide, beta linking" | "d-saccharide, alpha linking" | "l-saccharide, beta linking" | "l-saccharide, alpha linking" | "l-saccharide" | "d-saccharide" | "saccharide" | "non-polymer" | "peptide linking" | "peptide-like" | "l-gamma-peptide, c-delta linking" | "d-gamma-peptide, c-delta linking" | "l-beta-peptide, c-gamma linking" | "d-beta-peptide, c-gamma linking">;
88
88
  pdbx_synonyms: import("../../mol-data/db/column").Column.Schema.List<string>;
89
89
  pdbx_type: import("../../mol-data/db/column").Column.Schema.Str;
90
90
  pdbx_ambiguous_flag: import("../../mol-data/db/column").Column.Schema.Str;
@@ -94,12 +94,12 @@ export declare function readPVCD(): Promise<import("../../mol-data/db").Database
94
94
  pdbx_model_coordinates_details: import("../../mol-data/db/column").Column.Schema.Str;
95
95
  pdbx_model_coordinates_db_code: import("../../mol-data/db/column").Column.Schema.Str;
96
96
  pdbx_ideal_coordinates_details: import("../../mol-data/db/column").Column.Schema.Str;
97
- pdbx_ideal_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "Y">;
98
- pdbx_model_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "Y">;
97
+ pdbx_ideal_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
98
+ pdbx_model_coordinates_missing_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
99
99
  pdbx_initial_date: import("../../mol-data/db/column").Column.Schema.Str;
100
100
  pdbx_modified_date: import("../../mol-data/db/column").Column.Schema.Str;
101
101
  pdbx_release_status: import("../../mol-data/db/column").Column.Schema.Aliased<"REL" | "HOLD" | "HPUB" | "OBS" | "DEL" | "REF_ONLY">;
102
- pdbx_processing_site: import("../../mol-data/db/column").Column.Schema.Aliased<"RCSB" | "EBI" | "PDBE" | "PDBJ" | "PDBC">;
102
+ pdbx_processing_site: import("../../mol-data/db/column").Column.Schema.Aliased<"RCSB" | "PDBE" | "PDBJ" | "PDBC" | "EBI">;
103
103
  };
104
104
  chem_comp_atom: {
105
105
  alt_atom_id: import("../../mol-data/db/column").Column.Schema.Str;
@@ -115,9 +115,9 @@ export declare function readPVCD(): Promise<import("../../mol-data/db").Database
115
115
  pdbx_model_Cartn_x_ideal: import("../../mol-data/db/column").Column.Schema.Coordinate;
116
116
  pdbx_model_Cartn_y_ideal: import("../../mol-data/db/column").Column.Schema.Coordinate;
117
117
  pdbx_model_Cartn_z_ideal: import("../../mol-data/db/column").Column.Schema.Coordinate;
118
- pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "R" | "S">;
119
- pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "Y">;
120
- pdbx_leaving_atom_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "Y">;
118
+ pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"s" | "r" | "n">;
119
+ pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
120
+ pdbx_leaving_atom_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
121
121
  };
122
122
  chem_comp_bond: {
123
123
  atom_id_1: import("../../mol-data/db/column").Column.Schema.Str;
@@ -125,13 +125,13 @@ export declare function readPVCD(): Promise<import("../../mol-data/db").Database
125
125
  comp_id: import("../../mol-data/db/column").Column.Schema.Str;
126
126
  value_order: import("../../mol-data/db/column").Column.Schema.Aliased<"sing" | "doub" | "trip" | "quad" | "arom" | "poly" | "delo" | "pi">;
127
127
  pdbx_ordinal: import("../../mol-data/db/column").Column.Schema.Int;
128
- pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "E" | "Z">;
129
- pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"N" | "Y">;
128
+ pdbx_stereo_config: import("../../mol-data/db/column").Column.Schema.Aliased<"z" | "n" | "e">;
129
+ pdbx_aromatic_flag: import("../../mol-data/db/column").Column.Schema.Aliased<"y" | "n">;
130
130
  };
131
131
  pdbx_chem_comp_descriptor: {
132
132
  comp_id: import("../../mol-data/db/column").Column.Schema.Str;
133
133
  descriptor: import("../../mol-data/db/column").Column.Schema.Str;
134
- type: import("../../mol-data/db/column").Column.Schema.Aliased<"SMILES_CANNONICAL" | "SMILES_CANONICAL" | "SMILES" | "InChI" | "InChI_MAIN" | "InChI_MAIN_FORMULA" | "InChI_MAIN_CONNECT" | "InChI_MAIN_HATOM" | "InChI_CHARGE" | "InChI_STEREO" | "InChI_ISOTOPE" | "InChI_FIXEDH" | "InChI_RECONNECT" | "InChIKey">;
134
+ type: import("../../mol-data/db/column").Column.Schema.Aliased<"smiles_cannonical" | "smiles_canonical" | "smiles" | "inchi" | "inchi_main" | "inchi_main_formula" | "inchi_main_connect" | "inchi_main_hatom" | "inchi_charge" | "inchi_stereo" | "inchi_isotope" | "inchi_fixedh" | "inchi_reconnect" | "inchikey">;
135
135
  program: import("../../mol-data/db/column").Column.Schema.Str;
136
136
  program_version: import("../../mol-data/db/column").Column.Schema.Str;
137
137
  };
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2017-2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright (c) 2017-2018 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
4
4
  *
5
5
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
6
6
  */
@@ -13,15 +13,17 @@ function getFieldType(type, description, values, container) {
13
13
  switch (type) {
14
14
  // mmCIF
15
15
  case 'code':
16
- case 'ucode':
17
16
  case 'line':
18
- case 'uline':
19
17
  case 'text':
20
18
  case 'char':
21
- case 'uchar3':
22
- case 'uchar1':
23
19
  case 'boolean':
24
20
  return values && values.length ? (0, schema_1.EnumCol)(values, 'str', description) : (0, schema_1.StrCol)(description);
21
+ case 'ucode':
22
+ case 'uline':
23
+ case 'uchar3':
24
+ case 'uchar1':
25
+ // only force lower-case for enums
26
+ return values && values.length ? (0, schema_1.EnumCol)(values.map(function (x) { return x.toLowerCase(); }), 'lstr', description) : (0, schema_1.StrCol)(description);
25
27
  case 'aliasname':
26
28
  case 'name':
27
29
  case 'idname':
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2017-2019 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /**
3
- * Copyright (c) 2017-2019 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
4
4
  *
5
5
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
6
6
  */
@@ -9,7 +9,7 @@ exports.generate = void 0;
9
9
  var string_1 = require("../../../mol-util/string");
10
10
  var schema_1 = require("../../../mol-io/reader/cif/schema");
11
11
  function header(name, info, moldataImportPath) {
12
- return "/**\n * Copyright (c) 2017-2020 mol* contributors, licensed under MIT, See LICENSE file for more info.\n *\n * Code-generated '".concat(name, "' schema file. ").concat(info, "\n *\n * @author molstar/ciftools package\n */\n\nimport { Database, Column } from '").concat(moldataImportPath, "/db';\n\nimport Schema = Column.Schema;");
12
+ return "/**\n * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.\n *\n * Code-generated '".concat(name, "' schema file. ").concat(info, "\n *\n * @author molstar/ciftools package\n */\n\nimport { Database, Column } from '").concat(moldataImportPath, "/db';\n\nimport Schema = Column.Schema;");
13
13
  }
14
14
  function footer(name) {
15
15
  return "\nexport type ".concat(name, "_Schema = typeof ").concat(name, "_Schema;\nexport interface ").concat(name, "_Database extends Database<").concat(name, "_Schema> {};");
@@ -23,7 +23,10 @@ function getTypeShorthands(schema, fields) {
23
23
  Object.keys(columns).forEach(function (columnName) {
24
24
  if (fields && !fields[table][columnName])
25
25
  return;
26
- types.add(schema.tables[table].columns[columnName].type);
26
+ var col = schema.tables[table].columns[columnName];
27
+ if (col.type === 'enum')
28
+ types.add(col.subType);
29
+ types.add(col.type);
27
30
  });
28
31
  });
29
32
  var shorthands = [];
@@ -32,6 +35,12 @@ function getTypeShorthands(schema, fields) {
32
35
  case 'str':
33
36
  shorthands.push('const str = Schema.str;');
34
37
  break;
38
+ case 'ustr':
39
+ shorthands.push('const ustr = Schema.ustr;');
40
+ break;
41
+ case 'lstr':
42
+ shorthands.push('const lstr = Schema.lstr;');
43
+ break;
35
44
  case 'int':
36
45
  shorthands.push('const int = Schema.int;');
37
46
  break;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Copyright (c) 2017-2019 mol* contributors, licensed under MIT, See LICENSE file for more info.
2
+ * Copyright (c) 2017-2022 mol* contributors, licensed under MIT, See LICENSE file for more info.
3
3
  *
4
4
  * @author Alexander Rose <alexander.rose@weirdbyte.de>
5
5
  */
@@ -40,10 +40,10 @@ export declare type CoordCol = {
40
40
  export declare function CoordCol(description: string): CoordCol;
41
41
  export declare type EnumCol = {
42
42
  type: 'enum';
43
- subType: 'int' | 'str';
43
+ subType: 'int' | 'str' | 'ustr' | 'lstr';
44
44
  values: string[];
45
45
  } & BaseCol;
46
- export declare function EnumCol(values: string[], subType: 'int' | 'str', description: string): EnumCol;
46
+ export declare function EnumCol(values: string[], subType: 'int' | 'str' | 'ustr' | 'lstr', description: string): EnumCol;
47
47
  export declare type VectorCol = {
48
48
  type: 'vector';
49
49
  length: number;