@mlightcad/cad-simple-viewer 1.8.0-preview.2 → 1.8.0-preview.4

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 (668) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +206 -204
  3. package/dist/cad-simple-viewer-AcApSimpleUiChrome-D_0b6okm.js +890 -0
  4. package/dist/cad-simple-viewer-AcApSimpleUiChrome-DcZiBNvh.js +1 -0
  5. package/dist/cad-simple-viewer-AcUiFileOpenSession-AGSCe0Nv.js +324 -0
  6. package/dist/{cad-simple-viewer-AcUiFileOpenSession-BCcqBAH9.js → cad-simple-viewer-AcUiFileOpenSession-Bo3U3wCu.js} +707 -167
  7. package/dist/cad-simple-viewer-file-open-panel.js +26 -24
  8. package/dist/cad-simple-viewer-file-open-panel.umd.cjs +1 -1
  9. package/dist/cad-simple-viewer.js +64100 -41238
  10. package/dist/cad-simple-viewer.umd.cjs +1659 -497
  11. package/dist/mtext-renderer-worker.js +4 -5
  12. package/file-open-panel.ts +6 -6
  13. package/icons.ts +7 -7
  14. package/lib/app/AcApClipboard.d.ts +97 -0
  15. package/lib/app/AcApClipboard.d.ts.map +1 -0
  16. package/lib/app/AcApClipboard.js +270 -0
  17. package/lib/app/AcApClipboard.js.map +1 -0
  18. package/lib/app/AcApContext.d.ts +10 -0
  19. package/lib/app/AcApContext.d.ts.map +1 -1
  20. package/lib/app/AcApContext.js +24 -8
  21. package/lib/app/AcApContext.js.map +1 -1
  22. package/lib/app/AcApDocManager.d.ts +63 -0
  23. package/lib/app/AcApDocManager.d.ts.map +1 -1
  24. package/lib/app/AcApDocManager.js +264 -35
  25. package/lib/app/AcApDocManager.js.map +1 -1
  26. package/lib/app/AcApDocument.d.ts.map +1 -1
  27. package/lib/app/AcApDocument.js +11 -11
  28. package/lib/app/AcApDocument.js.map +1 -1
  29. package/lib/app/AcApOpenFileDialog.d.ts +2 -2
  30. package/lib/app/AcApOpenFileDialog.js +2 -2
  31. package/lib/app/AcApPaletteService.d.ts +154 -0
  32. package/lib/app/AcApPaletteService.d.ts.map +1 -0
  33. package/lib/app/AcApPaletteService.js +327 -0
  34. package/lib/app/AcApPaletteService.js.map +1 -0
  35. package/lib/app/acapHealModelLayoutLink.d.ts +30 -0
  36. package/lib/app/acapHealModelLayoutLink.d.ts.map +1 -0
  37. package/lib/app/acapHealModelLayoutLink.js +192 -0
  38. package/lib/app/acapHealModelLayoutLink.js.map +1 -0
  39. package/lib/app/dataSource/AcApLocalDataSource.d.ts +1 -1
  40. package/lib/app/dataSource/AcApLocalDataSource.js +2 -2
  41. package/lib/app/dataSource/AcApLocalDataSource.js.map +1 -1
  42. package/lib/app/dataSource/AcApUrlDataSource.js +1 -1
  43. package/lib/app/dataSource/AcApUrlDataSource.js.map +1 -1
  44. package/lib/app/index.d.ts +2 -0
  45. package/lib/app/index.d.ts.map +1 -1
  46. package/lib/app/index.js +2 -0
  47. package/lib/app/index.js.map +1 -1
  48. package/lib/command/AcApShortCutToolbarDocBind.d.ts.map +1 -1
  49. package/lib/command/AcApShortCutToolbarDocBind.js +30 -3
  50. package/lib/command/AcApShortCutToolbarDocBind.js.map +1 -1
  51. package/lib/command/AcApUcsCmd.d.ts +26 -0
  52. package/lib/command/AcApUcsCmd.d.ts.map +1 -0
  53. package/lib/command/AcApUcsCmd.js +545 -0
  54. package/lib/command/AcApUcsCmd.js.map +1 -0
  55. package/lib/command/AcApViewRestoreCmd.d.ts +13 -0
  56. package/lib/command/AcApViewRestoreCmd.d.ts.map +1 -0
  57. package/lib/command/AcApViewRestoreCmd.js +101 -0
  58. package/lib/command/AcApViewRestoreCmd.js.map +1 -0
  59. package/lib/command/block/AcApDashBSearchCmd.d.ts +57 -0
  60. package/lib/command/block/AcApDashBSearchCmd.d.ts.map +1 -0
  61. package/lib/command/block/AcApDashBSearchCmd.js +618 -0
  62. package/lib/command/block/AcApDashBSearchCmd.js.map +1 -0
  63. package/lib/command/block/index.d.ts +2 -0
  64. package/lib/command/block/index.d.ts.map +1 -0
  65. package/lib/command/block/index.js +2 -0
  66. package/lib/command/block/index.js.map +1 -0
  67. package/lib/command/clipboard/AcApClipboardUtils.d.ts +61 -0
  68. package/lib/command/clipboard/AcApClipboardUtils.d.ts.map +1 -0
  69. package/lib/command/clipboard/AcApClipboardUtils.js +203 -0
  70. package/lib/command/clipboard/AcApClipboardUtils.js.map +1 -0
  71. package/lib/command/clipboard/AcApCopyBaseCmd.d.ts +13 -0
  72. package/lib/command/clipboard/AcApCopyBaseCmd.d.ts.map +1 -0
  73. package/lib/command/clipboard/AcApCopyBaseCmd.js +95 -0
  74. package/lib/command/clipboard/AcApCopyBaseCmd.js.map +1 -0
  75. package/lib/command/clipboard/AcApCopyClipCmd.d.ts +15 -0
  76. package/lib/command/clipboard/AcApCopyClipCmd.d.ts.map +1 -0
  77. package/lib/command/clipboard/AcApCopyClipCmd.js +85 -0
  78. package/lib/command/clipboard/AcApCopyClipCmd.js.map +1 -0
  79. package/lib/command/clipboard/AcApCutClipCmd.d.ts +11 -0
  80. package/lib/command/clipboard/AcApCutClipCmd.d.ts.map +1 -0
  81. package/lib/command/clipboard/AcApCutClipCmd.js +91 -0
  82. package/lib/command/clipboard/AcApCutClipCmd.js.map +1 -0
  83. package/lib/command/clipboard/AcApPasteBlockCmd.d.ts +23 -0
  84. package/lib/command/clipboard/AcApPasteBlockCmd.d.ts.map +1 -0
  85. package/lib/command/clipboard/AcApPasteBlockCmd.js +127 -0
  86. package/lib/command/clipboard/AcApPasteBlockCmd.js.map +1 -0
  87. package/lib/command/clipboard/AcApPasteClipCmd.d.ts +14 -0
  88. package/lib/command/clipboard/AcApPasteClipCmd.d.ts.map +1 -0
  89. package/lib/command/clipboard/AcApPasteClipCmd.js +100 -0
  90. package/lib/command/clipboard/AcApPasteClipCmd.js.map +1 -0
  91. package/lib/command/clipboard/AcApPasteOrigCmd.d.ts +15 -0
  92. package/lib/command/clipboard/AcApPasteOrigCmd.d.ts.map +1 -0
  93. package/lib/command/clipboard/AcApPasteOrigCmd.js +99 -0
  94. package/lib/command/clipboard/AcApPasteOrigCmd.js.map +1 -0
  95. package/lib/command/clipboard/AcApPastePreviewJig.d.ts +37 -0
  96. package/lib/command/clipboard/AcApPastePreviewJig.d.ts.map +1 -0
  97. package/lib/command/clipboard/AcApPastePreviewJig.js +87 -0
  98. package/lib/command/clipboard/AcApPastePreviewJig.js.map +1 -0
  99. package/lib/command/clipboard/index.d.ts +9 -0
  100. package/lib/command/clipboard/index.d.ts.map +1 -0
  101. package/lib/command/clipboard/index.js +9 -0
  102. package/lib/command/clipboard/index.js.map +1 -0
  103. package/lib/command/convert/AcApBlockPreviewConvertor.d.ts +8 -0
  104. package/lib/command/convert/AcApBlockPreviewConvertor.d.ts.map +1 -1
  105. package/lib/command/convert/AcApBlockPreviewConvertor.js +16 -0
  106. package/lib/command/convert/AcApBlockPreviewConvertor.js.map +1 -1
  107. package/lib/command/convert/AcApEntityPreviewConvertor.d.ts +32 -0
  108. package/lib/command/convert/AcApEntityPreviewConvertor.d.ts.map +1 -1
  109. package/lib/command/convert/AcApEntityPreviewConvertor.js +70 -14
  110. package/lib/command/convert/AcApEntityPreviewConvertor.js.map +1 -1
  111. package/lib/command/draw/AcApDimBlockUtil.d.ts +7 -0
  112. package/lib/command/draw/AcApDimBlockUtil.d.ts.map +1 -1
  113. package/lib/command/draw/AcApDimBlockUtil.js +16 -54
  114. package/lib/command/draw/AcApDimBlockUtil.js.map +1 -1
  115. package/lib/command/draw/AcApLeaderCmd.d.ts +49 -0
  116. package/lib/command/draw/AcApLeaderCmd.d.ts.map +1 -0
  117. package/lib/command/draw/AcApLeaderCmd.js +611 -0
  118. package/lib/command/draw/AcApLeaderCmd.js.map +1 -0
  119. package/lib/command/draw/AcApMLeaderCmd.d.ts +41 -0
  120. package/lib/command/draw/AcApMLeaderCmd.d.ts.map +1 -0
  121. package/lib/command/draw/AcApMLeaderCmd.js +632 -0
  122. package/lib/command/draw/AcApMLeaderCmd.js.map +1 -0
  123. package/lib/command/draw/AcApMLeaderCmdUtil.d.ts +137 -0
  124. package/lib/command/draw/AcApMLeaderCmdUtil.d.ts.map +1 -0
  125. package/lib/command/draw/AcApMLeaderCmdUtil.js +411 -0
  126. package/lib/command/draw/AcApMLeaderCmdUtil.js.map +1 -0
  127. package/lib/command/draw/AcApMLeaderEditCmd.d.ts +13 -0
  128. package/lib/command/draw/AcApMLeaderEditCmd.d.ts.map +1 -0
  129. package/lib/command/draw/AcApMLeaderEditCmd.js +245 -0
  130. package/lib/command/draw/AcApMLeaderEditCmd.js.map +1 -0
  131. package/lib/command/draw/acedRenderDimStylePreview.d.ts +7 -0
  132. package/lib/command/draw/acedRenderDimStylePreview.d.ts.map +1 -0
  133. package/lib/command/draw/acedRenderDimStylePreview.js +141 -0
  134. package/lib/command/draw/acedRenderDimStylePreview.js.map +1 -0
  135. package/lib/command/draw/dimStylePreview.d.ts +62 -0
  136. package/lib/command/draw/dimStylePreview.d.ts.map +1 -0
  137. package/lib/command/draw/dimStylePreview.js +723 -0
  138. package/lib/command/draw/dimStylePreview.js.map +1 -0
  139. package/lib/command/draw/index.d.ts +6 -0
  140. package/lib/command/draw/index.d.ts.map +1 -1
  141. package/lib/command/draw/index.js +6 -0
  142. package/lib/command/draw/index.js.map +1 -1
  143. package/lib/command/group/AcApDashGroupCmd.d.ts +18 -0
  144. package/lib/command/group/AcApDashGroupCmd.d.ts.map +1 -0
  145. package/lib/command/group/AcApDashGroupCmd.js +457 -0
  146. package/lib/command/group/AcApDashGroupCmd.js.map +1 -0
  147. package/lib/command/group/AcApGroupCmd.d.ts +18 -0
  148. package/lib/command/group/AcApGroupCmd.d.ts.map +1 -0
  149. package/lib/command/group/AcApGroupCmd.js +253 -0
  150. package/lib/command/group/AcApGroupCmd.js.map +1 -0
  151. package/lib/command/group/AcApGroupEditCmd.d.ts +14 -0
  152. package/lib/command/group/AcApGroupEditCmd.d.ts.map +1 -0
  153. package/lib/command/group/AcApGroupEditCmd.js +241 -0
  154. package/lib/command/group/AcApGroupEditCmd.js.map +1 -0
  155. package/lib/command/group/AcApUngroupCmd.d.ts +20 -0
  156. package/lib/command/group/AcApUngroupCmd.d.ts.map +1 -0
  157. package/lib/command/group/AcApUngroupCmd.js +249 -0
  158. package/lib/command/group/AcApUngroupCmd.js.map +1 -0
  159. package/lib/command/group/index.d.ts +5 -0
  160. package/lib/command/group/index.d.ts.map +1 -0
  161. package/lib/command/group/index.js +5 -0
  162. package/lib/command/group/index.js.map +1 -0
  163. package/lib/command/index.d.ts +5 -0
  164. package/lib/command/index.d.ts.map +1 -1
  165. package/lib/command/index.js +5 -0
  166. package/lib/command/index.js.map +1 -1
  167. package/lib/command/markup/AcApMarkupSessionBootstrap.d.ts +9 -1
  168. package/lib/command/markup/AcApMarkupSessionBootstrap.d.ts.map +1 -1
  169. package/lib/command/markup/AcApMarkupSessionBootstrap.js +21 -7
  170. package/lib/command/markup/AcApMarkupSessionBootstrap.js.map +1 -1
  171. package/lib/command/markup/index.d.ts +1 -1
  172. package/lib/command/markup/index.d.ts.map +1 -1
  173. package/lib/command/markup/index.js +4 -2
  174. package/lib/command/markup/index.js.map +1 -1
  175. package/lib/command/measure/AcApMeasureArcCmd.d.ts +7 -0
  176. package/lib/command/measure/AcApMeasureArcCmd.d.ts.map +1 -1
  177. package/lib/command/measure/AcApMeasureArcCmd.js +183 -73
  178. package/lib/command/measure/AcApMeasureArcCmd.js.map +1 -1
  179. package/lib/command/measure/AcApMeasureArcLock.d.ts +23 -1
  180. package/lib/command/measure/AcApMeasureArcLock.d.ts.map +1 -1
  181. package/lib/command/measure/AcApMeasureArcLock.js +57 -1
  182. package/lib/command/measure/AcApMeasureArcLock.js.map +1 -1
  183. package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts +3 -1
  184. package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts.map +1 -1
  185. package/lib/command/measure/entity/AcApMeasureDrawUtil.js +44 -4
  186. package/lib/command/measure/entity/AcApMeasureDrawUtil.js.map +1 -1
  187. package/lib/command/modify/AcApScaleCmd.d.ts +115 -0
  188. package/lib/command/modify/AcApScaleCmd.d.ts.map +1 -0
  189. package/lib/command/modify/AcApScaleCmd.js +347 -0
  190. package/lib/command/modify/AcApScaleCmd.js.map +1 -0
  191. package/lib/command/modify/AcApScalePreviewJig.d.ts +56 -0
  192. package/lib/command/modify/AcApScalePreviewJig.d.ts.map +1 -0
  193. package/lib/command/modify/AcApScalePreviewJig.js +115 -0
  194. package/lib/command/modify/AcApScalePreviewJig.js.map +1 -0
  195. package/lib/command/modify/index.d.ts +1 -0
  196. package/lib/command/modify/index.d.ts.map +1 -1
  197. package/lib/command/modify/index.js +1 -0
  198. package/lib/command/modify/index.js.map +1 -1
  199. package/lib/command/ui/AcApFindUiCmd.d.ts +26 -0
  200. package/lib/command/ui/AcApFindUiCmd.d.ts.map +1 -0
  201. package/lib/command/ui/AcApFindUiCmd.js +83 -0
  202. package/lib/command/ui/AcApFindUiCmd.js.map +1 -0
  203. package/lib/command/ui/AcApLayerUiCmd.d.ts +65 -0
  204. package/lib/command/ui/AcApLayerUiCmd.d.ts.map +1 -0
  205. package/lib/command/ui/AcApLayerUiCmd.js +142 -0
  206. package/lib/command/ui/AcApLayerUiCmd.js.map +1 -0
  207. package/lib/command/ui/AcApMarkupPanelUiCmd.d.ts +26 -0
  208. package/lib/command/ui/AcApMarkupPanelUiCmd.d.ts.map +1 -0
  209. package/lib/command/ui/AcApMarkupPanelUiCmd.js +83 -0
  210. package/lib/command/ui/AcApMarkupPanelUiCmd.js.map +1 -0
  211. package/lib/command/ui/AcApMeasurementPanelUiCmd.d.ts +26 -0
  212. package/lib/command/ui/AcApMeasurementPanelUiCmd.d.ts.map +1 -0
  213. package/lib/command/ui/AcApMeasurementPanelUiCmd.js +83 -0
  214. package/lib/command/ui/AcApMeasurementPanelUiCmd.js.map +1 -0
  215. package/lib/command/ui/index.d.ts +5 -0
  216. package/lib/command/ui/index.d.ts.map +1 -0
  217. package/lib/command/ui/index.js +5 -0
  218. package/lib/command/ui/index.js.map +1 -0
  219. package/lib/editor/grip/AcEdGripEditSession.d.ts +13 -0
  220. package/lib/editor/grip/AcEdGripEditSession.d.ts.map +1 -1
  221. package/lib/editor/grip/AcEdGripEditSession.js +44 -9
  222. package/lib/editor/grip/AcEdGripEditSession.js.map +1 -1
  223. package/lib/editor/grip/AcEdGripManager.d.ts +21 -1
  224. package/lib/editor/grip/AcEdGripManager.d.ts.map +1 -1
  225. package/lib/editor/grip/AcEdGripManager.js +204 -22
  226. package/lib/editor/grip/AcEdGripManager.js.map +1 -1
  227. package/lib/editor/grip/AcEdGripPreviewJig.d.ts +7 -0
  228. package/lib/editor/grip/AcEdGripPreviewJig.d.ts.map +1 -1
  229. package/lib/editor/grip/AcEdGripPreviewJig.js +18 -1
  230. package/lib/editor/grip/AcEdGripPreviewJig.js.map +1 -1
  231. package/lib/editor/grip/AcEdGripViewport.d.ts +35 -0
  232. package/lib/editor/grip/AcEdGripViewport.d.ts.map +1 -0
  233. package/lib/editor/grip/AcEdGripViewport.js +68 -0
  234. package/lib/editor/grip/AcEdGripViewport.js.map +1 -0
  235. package/lib/editor/grip/AcEdGroupGripEditSession.d.ts +24 -0
  236. package/lib/editor/grip/AcEdGroupGripEditSession.d.ts.map +1 -0
  237. package/lib/editor/grip/AcEdGroupGripEditSession.js +76 -0
  238. package/lib/editor/grip/AcEdGroupGripEditSession.js.map +1 -0
  239. package/lib/editor/grip/AcEdGroupGripPolicy.d.ts +46 -0
  240. package/lib/editor/grip/AcEdGroupGripPolicy.d.ts.map +1 -0
  241. package/lib/editor/grip/AcEdGroupGripPolicy.js +187 -0
  242. package/lib/editor/grip/AcEdGroupGripPolicy.js.map +1 -0
  243. package/lib/editor/grip/index.d.ts +3 -0
  244. package/lib/editor/grip/index.d.ts.map +1 -1
  245. package/lib/editor/grip/index.js +3 -0
  246. package/lib/editor/grip/index.js.map +1 -1
  247. package/lib/editor/input/AcEdOrthoMode.d.ts +2 -2
  248. package/lib/editor/input/AcEdOrthoMode.d.ts.map +1 -1
  249. package/lib/editor/input/AcEdOrthoMode.js +20 -7
  250. package/lib/editor/input/AcEdOrthoMode.js.map +1 -1
  251. package/lib/editor/input/AcEdOsnapCenterMarks.d.ts +16 -0
  252. package/lib/editor/input/AcEdOsnapCenterMarks.d.ts.map +1 -1
  253. package/lib/editor/input/AcEdOsnapCenterMarks.js +24 -3
  254. package/lib/editor/input/AcEdOsnapCenterMarks.js.map +1 -1
  255. package/lib/editor/input/AcEdOsnapResolver.d.ts +0 -1
  256. package/lib/editor/input/AcEdOsnapResolver.d.ts.map +1 -1
  257. package/lib/editor/input/AcEdOsnapResolver.js +3 -16
  258. package/lib/editor/input/AcEdOsnapResolver.js.map +1 -1
  259. package/lib/editor/input/AcEdPolarTracking.d.ts.map +1 -1
  260. package/lib/editor/input/AcEdPolarTracking.js +16 -10
  261. package/lib/editor/input/AcEdPolarTracking.js.map +1 -1
  262. package/lib/editor/input/handler/AcEdPointHandler.d.ts +1 -1
  263. package/lib/editor/input/handler/AcEdPointHandler.d.ts.map +1 -1
  264. package/lib/editor/input/handler/AcEdPointHandler.js +36 -16
  265. package/lib/editor/input/handler/AcEdPointHandler.js.map +1 -1
  266. package/lib/editor/input/prompt/AcEdPromptSelectionOptions.d.ts +12 -0
  267. package/lib/editor/input/prompt/AcEdPromptSelectionOptions.d.ts.map +1 -1
  268. package/lib/editor/input/prompt/AcEdPromptSelectionOptions.js +20 -0
  269. package/lib/editor/input/prompt/AcEdPromptSelectionOptions.js.map +1 -1
  270. package/lib/editor/input/ui/AcEdCommandLine.d.ts +5 -0
  271. package/lib/editor/input/ui/AcEdCommandLine.d.ts.map +1 -1
  272. package/lib/editor/input/ui/AcEdCommandLine.js +33 -5
  273. package/lib/editor/input/ui/AcEdCommandLine.js.map +1 -1
  274. package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
  275. package/lib/editor/input/ui/AcEdInputManager.js +30 -7
  276. package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
  277. package/lib/editor/view/AcEdBaseView.d.ts +47 -0
  278. package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
  279. package/lib/editor/view/AcEdBaseView.js +80 -0
  280. package/lib/editor/view/AcEdBaseView.js.map +1 -1
  281. package/lib/editor/view/AcEdSelectionBoxIntersect.d.ts +40 -4
  282. package/lib/editor/view/AcEdSelectionBoxIntersect.d.ts.map +1 -1
  283. package/lib/editor/view/AcEdSelectionBoxIntersect.js +199 -3
  284. package/lib/editor/view/AcEdSelectionBoxIntersect.js.map +1 -1
  285. package/lib/editor/view/AcEdViewportBoxSelection.d.ts +10 -0
  286. package/lib/editor/view/AcEdViewportBoxSelection.d.ts.map +1 -1
  287. package/lib/editor/view/AcEdViewportBoxSelection.js +15 -8
  288. package/lib/editor/view/AcEdViewportBoxSelection.js.map +1 -1
  289. package/lib/file-open-panel.d.ts.map +1 -1
  290. package/lib/file-open-panel.js +4 -0
  291. package/lib/file-open-panel.js.map +1 -1
  292. package/lib/find/AcApFindNavigator.d.ts +47 -0
  293. package/lib/find/AcApFindNavigator.d.ts.map +1 -1
  294. package/lib/find/AcApFindNavigator.js +13 -5
  295. package/lib/find/AcApFindNavigator.js.map +1 -1
  296. package/lib/find/findDrawing.d.ts +1 -1
  297. package/lib/find/findDrawing.d.ts.map +1 -1
  298. package/lib/find/findDrawing.js +4 -3
  299. package/lib/find/findDrawing.js.map +1 -1
  300. package/lib/find/findText.d.ts +40 -13
  301. package/lib/find/findText.d.ts.map +1 -1
  302. package/lib/find/findText.js +100 -44
  303. package/lib/find/findText.js.map +1 -1
  304. package/lib/find/index.d.ts +8 -0
  305. package/lib/find/index.d.ts.map +1 -1
  306. package/lib/find/index.js +8 -0
  307. package/lib/find/index.js.map +1 -1
  308. package/lib/i18n/AcApI18n.d.ts +1 -1
  309. package/lib/i18n/AcApI18n.d.ts.map +1 -1
  310. package/lib/i18n/AcApI18n.js +2 -0
  311. package/lib/i18n/AcApI18n.js.map +1 -1
  312. package/lib/i18n/AcUiI18n.d.ts +23 -0
  313. package/lib/i18n/AcUiI18n.d.ts.map +1 -0
  314. package/lib/i18n/AcUiI18n.js +126 -0
  315. package/lib/i18n/AcUiI18n.js.map +1 -0
  316. package/lib/i18n/ar/command.d.ts +103 -6
  317. package/lib/i18n/ar/command.d.ts.map +1 -1
  318. package/lib/i18n/ar/command.js +601 -11
  319. package/lib/i18n/ar/command.js.map +1 -1
  320. package/lib/i18n/ar/jig.d.ts +1423 -579
  321. package/lib/i18n/ar/jig.d.ts.map +1 -1
  322. package/lib/i18n/ar/jig.js +2096 -322
  323. package/lib/i18n/ar/jig.js.map +1 -1
  324. package/lib/i18n/ar/main.d.ts +22 -0
  325. package/lib/i18n/ar/main.d.ts.map +1 -1
  326. package/lib/i18n/ar/main.js +22 -0
  327. package/lib/i18n/ar/main.js.map +1 -1
  328. package/lib/i18n/ar/simpleUi.d.ts +170 -0
  329. package/lib/i18n/ar/simpleUi.d.ts.map +1 -0
  330. package/lib/i18n/ar/simpleUi.js +169 -0
  331. package/lib/i18n/ar/simpleUi.js.map +1 -0
  332. package/lib/i18n/cs/command.d.ts +111 -1
  333. package/lib/i18n/cs/command.d.ts.map +1 -1
  334. package/lib/i18n/cs/command.js +112 -2
  335. package/lib/i18n/cs/command.js.map +1 -1
  336. package/lib/i18n/cs/jig.d.ts +867 -0
  337. package/lib/i18n/cs/jig.d.ts.map +1 -1
  338. package/lib/i18n/cs/jig.js +988 -24
  339. package/lib/i18n/cs/jig.js.map +1 -1
  340. package/lib/i18n/cs/main.d.ts +22 -0
  341. package/lib/i18n/cs/main.d.ts.map +1 -1
  342. package/lib/i18n/cs/main.js +23 -1
  343. package/lib/i18n/cs/main.js.map +1 -1
  344. package/lib/i18n/cs/simpleUi.d.ts +170 -0
  345. package/lib/i18n/cs/simpleUi.d.ts.map +1 -0
  346. package/lib/i18n/cs/simpleUi.js +169 -0
  347. package/lib/i18n/cs/simpleUi.js.map +1 -0
  348. package/lib/i18n/en/command.d.ts +98 -1
  349. package/lib/i18n/en/command.d.ts.map +1 -1
  350. package/lib/i18n/en/command.js +99 -2
  351. package/lib/i18n/en/command.js.map +1 -1
  352. package/lib/i18n/en/jig.d.ts +844 -0
  353. package/lib/i18n/en/jig.d.ts.map +1 -1
  354. package/lib/i18n/en/jig.js +801 -1
  355. package/lib/i18n/en/jig.js.map +1 -1
  356. package/lib/i18n/en/main.d.ts +22 -0
  357. package/lib/i18n/en/main.d.ts.map +1 -1
  358. package/lib/i18n/en/main.js +22 -0
  359. package/lib/i18n/en/main.js.map +1 -1
  360. package/lib/i18n/en/simpleUi.d.ts +170 -0
  361. package/lib/i18n/en/simpleUi.d.ts.map +1 -0
  362. package/lib/i18n/en/simpleUi.js +169 -0
  363. package/lib/i18n/en/simpleUi.js.map +1 -0
  364. package/lib/i18n/index.d.ts +1 -0
  365. package/lib/i18n/index.d.ts.map +1 -1
  366. package/lib/i18n/index.js +37 -6
  367. package/lib/i18n/index.js.map +1 -1
  368. package/lib/i18n/ja/command.d.ts +605 -0
  369. package/lib/i18n/ja/command.d.ts.map +1 -0
  370. package/lib/i18n/ja/command.js +604 -0
  371. package/lib/i18n/ja/command.js.map +1 -0
  372. package/lib/i18n/ja/jig.d.ts +2425 -0
  373. package/lib/i18n/ja/jig.d.ts.map +1 -0
  374. package/lib/i18n/ja/jig.js +2316 -0
  375. package/lib/i18n/ja/jig.js.map +1 -0
  376. package/lib/i18n/ja/main.d.ts +216 -0
  377. package/lib/i18n/ja/main.d.ts.map +1 -0
  378. package/lib/i18n/ja/main.js +215 -0
  379. package/lib/i18n/ja/main.js.map +1 -0
  380. package/lib/i18n/ja/simpleUi.d.ts +170 -0
  381. package/lib/i18n/ja/simpleUi.d.ts.map +1 -0
  382. package/lib/i18n/ja/simpleUi.js +169 -0
  383. package/lib/i18n/ja/simpleUi.js.map +1 -0
  384. package/lib/i18n/ko/command.d.ts +605 -0
  385. package/lib/i18n/ko/command.d.ts.map +1 -0
  386. package/lib/i18n/ko/command.js +604 -0
  387. package/lib/i18n/ko/command.js.map +1 -0
  388. package/lib/i18n/ko/jig.d.ts +2425 -0
  389. package/lib/i18n/ko/jig.d.ts.map +1 -0
  390. package/lib/i18n/ko/jig.js +2316 -0
  391. package/lib/i18n/ko/jig.js.map +1 -0
  392. package/lib/i18n/ko/main.d.ts +216 -0
  393. package/lib/i18n/ko/main.d.ts.map +1 -0
  394. package/lib/i18n/ko/main.js +215 -0
  395. package/lib/i18n/ko/main.js.map +1 -0
  396. package/lib/i18n/ko/simpleUi.d.ts +170 -0
  397. package/lib/i18n/ko/simpleUi.d.ts.map +1 -0
  398. package/lib/i18n/ko/simpleUi.js +169 -0
  399. package/lib/i18n/ko/simpleUi.js.map +1 -0
  400. package/lib/i18n/tr/command.d.ts +111 -1
  401. package/lib/i18n/tr/command.d.ts.map +1 -1
  402. package/lib/i18n/tr/command.js +112 -2
  403. package/lib/i18n/tr/command.js.map +1 -1
  404. package/lib/i18n/tr/jig.d.ts +867 -0
  405. package/lib/i18n/tr/jig.d.ts.map +1 -1
  406. package/lib/i18n/tr/jig.js +1096 -24
  407. package/lib/i18n/tr/jig.js.map +1 -1
  408. package/lib/i18n/tr/main.d.ts +22 -0
  409. package/lib/i18n/tr/main.d.ts.map +1 -1
  410. package/lib/i18n/tr/main.js +23 -1
  411. package/lib/i18n/tr/main.js.map +1 -1
  412. package/lib/i18n/tr/simpleUi.d.ts +170 -0
  413. package/lib/i18n/tr/simpleUi.d.ts.map +1 -0
  414. package/lib/i18n/tr/simpleUi.js +169 -0
  415. package/lib/i18n/tr/simpleUi.js.map +1 -0
  416. package/lib/i18n/zh/command.d.ts +98 -1
  417. package/lib/i18n/zh/command.d.ts.map +1 -1
  418. package/lib/i18n/zh/command.js +99 -2
  419. package/lib/i18n/zh/command.js.map +1 -1
  420. package/lib/i18n/zh/jig.d.ts +844 -0
  421. package/lib/i18n/zh/jig.d.ts.map +1 -1
  422. package/lib/i18n/zh/jig.js +793 -1
  423. package/lib/i18n/zh/jig.js.map +1 -1
  424. package/lib/i18n/zh/main.d.ts +22 -0
  425. package/lib/i18n/zh/main.d.ts.map +1 -1
  426. package/lib/i18n/zh/main.js +22 -0
  427. package/lib/i18n/zh/main.js.map +1 -1
  428. package/lib/i18n/zh/simpleUi.d.ts +170 -0
  429. package/lib/i18n/zh/simpleUi.d.ts.map +1 -0
  430. package/lib/i18n/zh/simpleUi.js +169 -0
  431. package/lib/i18n/zh/simpleUi.js.map +1 -0
  432. package/lib/index.d.ts +1 -1
  433. package/lib/index.d.ts.map +1 -1
  434. package/lib/index.js +1 -1
  435. package/lib/index.js.map +1 -1
  436. package/lib/service/AcApEntityService.d.ts +36 -2
  437. package/lib/service/AcApEntityService.d.ts.map +1 -1
  438. package/lib/service/AcApEntityService.js +92 -23
  439. package/lib/service/AcApEntityService.js.map +1 -1
  440. package/lib/service/AcApGroup.d.ts +95 -0
  441. package/lib/service/AcApGroup.d.ts.map +1 -0
  442. package/lib/service/AcApGroup.js +421 -0
  443. package/lib/service/AcApGroup.js.map +1 -0
  444. package/lib/service/AcApLlmSettingsService.d.ts +74 -0
  445. package/lib/service/AcApLlmSettingsService.d.ts.map +1 -0
  446. package/lib/service/AcApLlmSettingsService.js +126 -0
  447. package/lib/service/AcApLlmSettingsService.js.map +1 -0
  448. package/lib/service/AcApNamedViewService.d.ts +139 -0
  449. package/lib/service/AcApNamedViewService.d.ts.map +1 -0
  450. package/lib/service/AcApNamedViewService.js +407 -0
  451. package/lib/service/AcApNamedViewService.js.map +1 -0
  452. package/lib/service/AcApTextRecognitionService.d.ts +107 -0
  453. package/lib/service/AcApTextRecognitionService.d.ts.map +1 -0
  454. package/lib/service/AcApTextRecognitionService.js +304 -0
  455. package/lib/service/AcApTextRecognitionService.js.map +1 -0
  456. package/lib/service/AcApUcsService.d.ts +101 -0
  457. package/lib/service/AcApUcsService.d.ts.map +1 -0
  458. package/lib/service/AcApUcsService.js +753 -0
  459. package/lib/service/AcApUcsService.js.map +1 -0
  460. package/lib/service/index.d.ts +5 -0
  461. package/lib/service/index.d.ts.map +1 -1
  462. package/lib/service/index.js +5 -0
  463. package/lib/service/index.js.map +1 -1
  464. package/lib/smartBlock/AcApSmartBlockConvert.d.ts +98 -0
  465. package/lib/smartBlock/AcApSmartBlockConvert.d.ts.map +1 -0
  466. package/lib/smartBlock/AcApSmartBlockConvert.js +300 -0
  467. package/lib/smartBlock/AcApSmartBlockConvert.js.map +1 -0
  468. package/lib/smartBlock/AcApSmartBlockDetect.d.ts +149 -0
  469. package/lib/smartBlock/AcApSmartBlockDetect.d.ts.map +1 -0
  470. package/lib/smartBlock/AcApSmartBlockDetect.js +1464 -0
  471. package/lib/smartBlock/AcApSmartBlockDetect.js.map +1 -0
  472. package/lib/smartBlock/AcApSmartBlockSearch.d.ts +161 -0
  473. package/lib/smartBlock/AcApSmartBlockSearch.d.ts.map +1 -0
  474. package/lib/smartBlock/AcApSmartBlockSearch.js +712 -0
  475. package/lib/smartBlock/AcApSmartBlockSearch.js.map +1 -0
  476. package/lib/smartBlock/AcApSmartBlockSession.d.ts +85 -0
  477. package/lib/smartBlock/AcApSmartBlockSession.d.ts.map +1 -0
  478. package/lib/smartBlock/AcApSmartBlockSession.js +233 -0
  479. package/lib/smartBlock/AcApSmartBlockSession.js.map +1 -0
  480. package/lib/smartBlock/AcEdShapeFeatures.d.ts +33 -0
  481. package/lib/smartBlock/AcEdShapeFeatures.d.ts.map +1 -0
  482. package/lib/smartBlock/AcEdShapeFeatures.js +571 -0
  483. package/lib/smartBlock/AcEdShapeFeatures.js.map +1 -0
  484. package/lib/smartBlock/AcEdShapeMatcher.d.ts +146 -0
  485. package/lib/smartBlock/AcEdShapeMatcher.d.ts.map +1 -0
  486. package/lib/smartBlock/AcEdShapeMatcher.js +749 -0
  487. package/lib/smartBlock/AcEdShapeMatcher.js.map +1 -0
  488. package/lib/smartBlock/index.d.ts +7 -0
  489. package/lib/smartBlock/index.d.ts.map +1 -0
  490. package/lib/smartBlock/index.js +7 -0
  491. package/lib/smartBlock/index.js.map +1 -0
  492. package/lib/ui/AcApSimpleUiChrome.d.ts +374 -0
  493. package/lib/ui/AcApSimpleUiChrome.d.ts.map +1 -0
  494. package/lib/ui/AcApSimpleUiChrome.js +1308 -0
  495. package/lib/ui/AcApSimpleUiChrome.js.map +1 -0
  496. package/lib/ui/AcUiColorPicker.d.ts +47 -0
  497. package/lib/ui/AcUiColorPicker.d.ts.map +1 -0
  498. package/lib/ui/AcUiColorPicker.js +133 -0
  499. package/lib/ui/AcUiColorPicker.js.map +1 -0
  500. package/lib/ui/AcUiFileOpenPanel.js +1 -1
  501. package/lib/ui/AcUiFileOpenPanel.js.map +1 -1
  502. package/lib/ui/AcUiFindPaletteView.d.ts +99 -0
  503. package/lib/ui/AcUiFindPaletteView.d.ts.map +1 -0
  504. package/lib/ui/AcUiFindPaletteView.js +426 -0
  505. package/lib/ui/AcUiFindPaletteView.js.map +1 -0
  506. package/lib/ui/AcUiLayerListView.d.ts +114 -0
  507. package/lib/ui/AcUiLayerListView.d.ts.map +1 -0
  508. package/lib/ui/AcUiLayerListView.js +443 -0
  509. package/lib/ui/AcUiLayerListView.js.map +1 -0
  510. package/lib/ui/AcUiMeasurementPaletteView.d.ts +83 -0
  511. package/lib/ui/AcUiMeasurementPaletteView.d.ts.map +1 -0
  512. package/lib/ui/AcUiMeasurementPaletteView.js +341 -0
  513. package/lib/ui/AcUiMeasurementPaletteView.js.map +1 -0
  514. package/lib/ui/AcUiReviewPaletteView.d.ts +141 -0
  515. package/lib/ui/AcUiReviewPaletteView.d.ts.map +1 -0
  516. package/lib/ui/AcUiReviewPaletteView.js +524 -0
  517. package/lib/ui/AcUiReviewPaletteView.js.map +1 -0
  518. package/lib/ui/AcUiShortCutToolbar.d.ts +24 -2
  519. package/lib/ui/AcUiShortCutToolbar.d.ts.map +1 -1
  520. package/lib/ui/AcUiShortCutToolbar.js +48 -6
  521. package/lib/ui/AcUiShortCutToolbar.js.map +1 -1
  522. package/lib/ui/AcUiSimpleUiOptions.d.ts +88 -0
  523. package/lib/ui/AcUiSimpleUiOptions.d.ts.map +1 -0
  524. package/lib/ui/AcUiSimpleUiOptions.js +2 -0
  525. package/lib/ui/AcUiSimpleUiOptions.js.map +1 -0
  526. package/lib/ui/AcUiSimpleUiStyles.d.ts +12 -0
  527. package/lib/ui/AcUiSimpleUiStyles.d.ts.map +1 -0
  528. package/lib/ui/AcUiSimpleUiStyles.js +28 -0
  529. package/lib/ui/AcUiSimpleUiStyles.js.map +1 -0
  530. package/lib/ui/AcUiThemeSync.d.ts +58 -0
  531. package/lib/ui/AcUiThemeSync.d.ts.map +1 -0
  532. package/lib/ui/AcUiThemeSync.js +114 -0
  533. package/lib/ui/AcUiThemeSync.js.map +1 -0
  534. package/lib/ui/acuiNormalizeSimpleUiOptions.d.ts +20 -0
  535. package/lib/ui/acuiNormalizeSimpleUiOptions.d.ts.map +1 -0
  536. package/lib/ui/acuiNormalizeSimpleUiOptions.js +46 -0
  537. package/lib/ui/acuiNormalizeSimpleUiOptions.js.map +1 -0
  538. package/lib/ui/dock/AcUiDockPanel.d.ts +204 -0
  539. package/lib/ui/dock/AcUiDockPanel.d.ts.map +1 -0
  540. package/lib/ui/dock/AcUiDockPanel.js +926 -0
  541. package/lib/ui/dock/AcUiDockPanel.js.map +1 -0
  542. package/lib/ui/dock/acuiDockPanelStyles.d.ts +9 -0
  543. package/lib/ui/dock/acuiDockPanelStyles.d.ts.map +1 -0
  544. package/lib/ui/dock/acuiDockPanelStyles.js +27 -0
  545. package/lib/ui/dock/acuiDockPanelStyles.js.map +1 -0
  546. package/lib/ui/dock/index.d.ts +3 -0
  547. package/lib/ui/dock/index.d.ts.map +1 -0
  548. package/lib/ui/dock/index.js +3 -0
  549. package/lib/ui/dock/index.js.map +1 -0
  550. package/lib/ui/icons.d.ts +22 -14
  551. package/lib/ui/icons.d.ts.map +1 -1
  552. package/lib/ui/icons.js +42 -32
  553. package/lib/ui/icons.js.map +1 -1
  554. package/lib/ui/index.d.ts +12 -0
  555. package/lib/ui/index.d.ts.map +1 -1
  556. package/lib/ui/index.js +11 -0
  557. package/lib/ui/index.js.map +1 -1
  558. package/lib/ui/toolbar/AcUiToolbar.d.ts +1 -1
  559. package/lib/ui/toolbar/AcUiToolbar.js +1 -1
  560. package/lib/ui/toolbar/createLayoutToolbarItem.d.ts +41 -0
  561. package/lib/ui/toolbar/createLayoutToolbarItem.d.ts.map +1 -0
  562. package/lib/ui/toolbar/createLayoutToolbarItem.js +103 -0
  563. package/lib/ui/toolbar/createLayoutToolbarItem.js.map +1 -0
  564. package/lib/ui/toolbar/createToolbarLayoutSwitcher.d.ts +40 -0
  565. package/lib/ui/toolbar/createToolbarLayoutSwitcher.d.ts.map +1 -0
  566. package/lib/ui/toolbar/createToolbarLayoutSwitcher.js +65 -0
  567. package/lib/ui/toolbar/createToolbarLayoutSwitcher.js.map +1 -0
  568. package/lib/ui/toolbar/defaultToolbarItems.d.ts +44 -0
  569. package/lib/ui/toolbar/defaultToolbarItems.d.ts.map +1 -0
  570. package/lib/ui/toolbar/defaultToolbarItems.js +614 -0
  571. package/lib/ui/toolbar/defaultToolbarItems.js.map +1 -0
  572. package/lib/ui/toolbar/index.d.ts +3 -1
  573. package/lib/ui/toolbar/index.d.ts.map +1 -1
  574. package/lib/ui/toolbar/index.js +1 -0
  575. package/lib/ui/toolbar/index.js.map +1 -1
  576. package/lib/ui/toolbar/mergeToolbarOptionsForLayout.d.ts +25 -0
  577. package/lib/ui/toolbar/mergeToolbarOptionsForLayout.d.ts.map +1 -0
  578. package/lib/ui/toolbar/mergeToolbarOptionsForLayout.js +164 -0
  579. package/lib/ui/toolbar/mergeToolbarOptionsForLayout.js.map +1 -0
  580. package/lib/ui/toolbar/resolveDockMountTarget.d.ts +22 -0
  581. package/lib/ui/toolbar/resolveDockMountTarget.d.ts.map +1 -0
  582. package/lib/ui/toolbar/resolveDockMountTarget.js +47 -0
  583. package/lib/ui/toolbar/resolveDockMountTarget.js.map +1 -0
  584. package/lib/ui/toolbar/resolveToolbarItems.d.ts +46 -0
  585. package/lib/ui/toolbar/resolveToolbarItems.d.ts.map +1 -0
  586. package/lib/ui/toolbar/resolveToolbarItems.js +161 -0
  587. package/lib/ui/toolbar/resolveToolbarItems.js.map +1 -0
  588. package/lib/ui/toolbar/resolveToolbarMountTarget.d.ts +17 -0
  589. package/lib/ui/toolbar/resolveToolbarMountTarget.d.ts.map +1 -0
  590. package/lib/ui/toolbar/resolveToolbarMountTarget.js +39 -0
  591. package/lib/ui/toolbar/resolveToolbarMountTarget.js.map +1 -0
  592. package/lib/ui/toolbar/simpleUiPresets.d.ts +15 -0
  593. package/lib/ui/toolbar/simpleUiPresets.d.ts.map +1 -0
  594. package/lib/ui/toolbar/simpleUiPresets.js +14 -0
  595. package/lib/ui/toolbar/simpleUiPresets.js.map +1 -0
  596. package/lib/ui/toolbar/types.d.ts +18 -0
  597. package/lib/ui/toolbar/types.d.ts.map +1 -1
  598. package/lib/util/AcApFontUtil.d.ts +19 -0
  599. package/lib/util/AcApFontUtil.d.ts.map +1 -1
  600. package/lib/util/AcApFontUtil.js +108 -13
  601. package/lib/util/AcApFontUtil.js.map +1 -1
  602. package/lib/util/AcApGeTransform.d.ts +8 -0
  603. package/lib/util/AcApGeTransform.d.ts.map +1 -1
  604. package/lib/util/AcApGeTransform.js +13 -0
  605. package/lib/util/AcApGeTransform.js.map +1 -1
  606. package/lib/util/AcApLayoutViewFraming.d.ts +22 -0
  607. package/lib/util/AcApLayoutViewFraming.d.ts.map +1 -1
  608. package/lib/util/AcApLayoutViewFraming.js +24 -0
  609. package/lib/util/AcApLayoutViewFraming.js.map +1 -1
  610. package/lib/util/AcApTextMeasure.d.ts +43 -0
  611. package/lib/util/AcApTextMeasure.d.ts.map +1 -0
  612. package/lib/util/AcApTextMeasure.js +82 -0
  613. package/lib/util/AcApTextMeasure.js.map +1 -0
  614. package/lib/util/acapResolveOpenFileType.d.ts +12 -0
  615. package/lib/util/acapResolveOpenFileType.d.ts.map +1 -0
  616. package/lib/util/acapResolveOpenFileType.js +22 -0
  617. package/lib/util/acapResolveOpenFileType.js.map +1 -0
  618. package/lib/util/index.d.ts +2 -0
  619. package/lib/util/index.d.ts.map +1 -1
  620. package/lib/util/index.js +2 -0
  621. package/lib/util/index.js.map +1 -1
  622. package/lib/view/AcApUcsIconOverlay.d.ts +26 -0
  623. package/lib/view/AcApUcsIconOverlay.d.ts.map +1 -0
  624. package/lib/view/AcApUcsIconOverlay.js +143 -0
  625. package/lib/view/AcApUcsIconOverlay.js.map +1 -0
  626. package/lib/view/AcEdViewKeyHandler.d.ts +11 -0
  627. package/lib/view/AcEdViewKeyHandler.d.ts.map +1 -1
  628. package/lib/view/AcEdViewKeyHandler.js +39 -3
  629. package/lib/view/AcEdViewKeyHandler.js.map +1 -1
  630. package/lib/view/AcTrEntityDisplayController.d.ts +5 -0
  631. package/lib/view/AcTrEntityDisplayController.d.ts.map +1 -1
  632. package/lib/view/AcTrEntityDisplayController.js +5 -0
  633. package/lib/view/AcTrEntityDisplayController.js.map +1 -1
  634. package/lib/view/AcTrLayer.d.ts +27 -0
  635. package/lib/view/AcTrLayer.d.ts.map +1 -1
  636. package/lib/view/AcTrLayer.js +40 -0
  637. package/lib/view/AcTrLayer.js.map +1 -1
  638. package/lib/view/AcTrLayout.d.ts +55 -1
  639. package/lib/view/AcTrLayout.d.ts.map +1 -1
  640. package/lib/view/AcTrLayout.js +252 -51
  641. package/lib/view/AcTrLayout.js.map +1 -1
  642. package/lib/view/AcTrLayoutView.d.ts +0 -12
  643. package/lib/view/AcTrLayoutView.d.ts.map +1 -1
  644. package/lib/view/AcTrLayoutView.js +0 -20
  645. package/lib/view/AcTrLayoutView.js.map +1 -1
  646. package/lib/view/AcTrLayoutViewManager.d.ts +6 -0
  647. package/lib/view/AcTrLayoutViewManager.d.ts.map +1 -1
  648. package/lib/view/AcTrLayoutViewManager.js +8 -0
  649. package/lib/view/AcTrLayoutViewManager.js.map +1 -1
  650. package/lib/view/AcTrScene.d.ts +12 -0
  651. package/lib/view/AcTrScene.d.ts.map +1 -1
  652. package/lib/view/AcTrScene.js +65 -16
  653. package/lib/view/AcTrScene.js.map +1 -1
  654. package/lib/view/AcTrView2d.d.ts +92 -1
  655. package/lib/view/AcTrView2d.d.ts.map +1 -1
  656. package/lib/view/AcTrView2d.js +371 -96
  657. package/lib/view/AcTrView2d.js.map +1 -1
  658. package/lib/view/AcTrViewSessionState.d.ts +5 -0
  659. package/lib/view/AcTrViewSessionState.d.ts.map +1 -1
  660. package/package.json +12 -16
  661. package/src/file-open-panel.ts +93 -89
  662. package/src/ui/icons.ts +428 -411
  663. package/dist/cad-simple-viewer-AcUiFileOpenSession-drptdOYc.js +0 -324
  664. package/find.ts +0 -7
  665. package/src/find/AcApFindNavigator.ts +0 -190
  666. package/src/find/findDrawing.ts +0 -211
  667. package/src/find/findText.ts +0 -624
  668. package/src/find/index.ts +0 -2
@@ -0,0 +1,926 @@
1
+ var __read = (this && this.__read) || function (o, n) {
2
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
3
+ if (!m) return o;
4
+ var i = m.call(o), r, ar = [], e;
5
+ try {
6
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
7
+ }
8
+ catch (error) { e = { error: error }; }
9
+ finally {
10
+ try {
11
+ if (r && !r.done && (m = i["return"])) m.call(i);
12
+ }
13
+ finally { if (e) throw e.error; }
14
+ }
15
+ return ar;
16
+ };
17
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
18
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
19
+ if (ar || !(i in from)) {
20
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
21
+ ar[i] = from[i];
22
+ }
23
+ }
24
+ return to.concat(ar || Array.prototype.slice.call(from));
25
+ };
26
+ var __values = (this && this.__values) || function(o) {
27
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
28
+ if (m) return m.call(o);
29
+ if (o && typeof o.length === "number") return {
30
+ next: function () {
31
+ if (o && i >= o.length) o = void 0;
32
+ return { value: o && o[i++], done: !o };
33
+ }
34
+ };
35
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
36
+ };
37
+ import { acedIsMobileUiLayout, ML_UI_MOBILE_MEDIA_QUERY } from '../../editor/global/AcEdUiLayout';
38
+ import { createIconElement, ICON_CHEVRON_DOWN, ICON_DOCK_CLOSE, ICON_DOCK_SIDE_MENU, ICON_PLACEMENT_BOTTOM, ICON_PLACEMENT_LEFT, ICON_PLACEMENT_RIGHT, ICON_PLACEMENT_TOP } from '../icons';
39
+ import { acuiEnsureDockPanelStyles, acuiRemoveDockPanelStylesIfUnused } from './acuiDockPanelStyles';
40
+ var DOCK_MIN_SIZE = 120;
41
+ var DOCK_MAX_SIZE_RATIO = 0.75;
42
+ var DOCK_TAB_OVERFLOW_BTN_WIDTH = 28;
43
+ /**
44
+ * Chrome DevTools-style dock panel with tabs, open/close, and dock side selection.
45
+ */
46
+ var AcUiDockPanel = /** @class */ (function () {
47
+ /**
48
+ * @param options - Host, i18n, and initial layout options.
49
+ */
50
+ function AcUiDockPanel(options) {
51
+ var _this = this;
52
+ var _a, _b, _c, _d, _e;
53
+ this.tabs = new Map();
54
+ this.closeListeners = new Set();
55
+ this.overflowTabIds = [];
56
+ this.resizeStartPos = 0;
57
+ this.resizeStartSize = 0;
58
+ this.handleResizePointerDown = function (event) {
59
+ if (event.button !== 0 || !_this.isPanelOpen)
60
+ return;
61
+ event.preventDefault();
62
+ _this.resizePointerId = event.pointerId;
63
+ _this.resizeStartPos =
64
+ _this.usesVerticalResize() ? event.clientY : event.clientX;
65
+ _this.resizeStartSize = _this.size;
66
+ var target = event.currentTarget instanceof HTMLElement
67
+ ? event.currentTarget
68
+ : _this.resizeHandle;
69
+ _this.resizeCaptureTarget = target;
70
+ target.setPointerCapture(event.pointerId);
71
+ document.addEventListener('pointermove', _this.handleResizePointerMove);
72
+ document.addEventListener('pointerup', _this.handleResizePointerUp);
73
+ document.addEventListener('pointercancel', _this.handleResizePointerUp);
74
+ };
75
+ this.handleResizePointerMove = function (event) {
76
+ if (_this.resizePointerId !== event.pointerId)
77
+ return;
78
+ event.preventDefault();
79
+ var delta = _this.usesPhoneSheet()
80
+ ? _this.resizeStartPos - event.clientY
81
+ : _this.side === 'bottom'
82
+ ? _this.resizeStartPos - event.clientY
83
+ : _this.side === 'top'
84
+ ? event.clientY - _this.resizeStartPos
85
+ : _this.side === 'right'
86
+ ? _this.resizeStartPos - event.clientX
87
+ : event.clientX - _this.resizeStartPos;
88
+ _this.setSize(_this.resizeStartSize + delta);
89
+ };
90
+ this.handleResizePointerUp = function (event) {
91
+ var _a;
92
+ if (_this.resizePointerId !== event.pointerId)
93
+ return;
94
+ _this.resizePointerId = undefined;
95
+ var captureTarget = (_a = _this.resizeCaptureTarget) !== null && _a !== void 0 ? _a : _this.resizeHandle;
96
+ if (captureTarget.hasPointerCapture(event.pointerId)) {
97
+ captureTarget.releasePointerCapture(event.pointerId);
98
+ }
99
+ _this.resizeCaptureTarget = undefined;
100
+ document.removeEventListener('pointermove', _this.handleResizePointerMove);
101
+ document.removeEventListener('pointerup', _this.handleResizePointerUp);
102
+ document.removeEventListener('pointercancel', _this.handleResizePointerUp);
103
+ };
104
+ this.handleDocumentPointerDown = function (event) {
105
+ if (!(event.target instanceof Node))
106
+ return;
107
+ if (_this.sideMenuRoot) {
108
+ if (!_this.sideMenuRoot.contains(event.target) &&
109
+ !_this.sideMenuButton.contains(event.target)) {
110
+ _this.closeSideMenu();
111
+ }
112
+ }
113
+ if (_this.overflowMenuRoot) {
114
+ if (!_this.overflowMenuRoot.contains(event.target) &&
115
+ !_this.overflowButton.contains(event.target)) {
116
+ _this.closeOverflowMenu();
117
+ }
118
+ }
119
+ };
120
+ this.handleMobileMediaChange = function () {
121
+ if (_this.usesPhoneSheet() && _this.side !== 'bottom' && _this.side !== 'top') {
122
+ _this.size = _this.defaultHeight;
123
+ }
124
+ _this.applyLayoutState();
125
+ };
126
+ this.host = options.host;
127
+ this.translate = (_a = options.t) !== null && _a !== void 0 ? _a : (function (key) { return key; });
128
+ this.side = (_b = options.defaultSide) !== null && _b !== void 0 ? _b : 'left';
129
+ this.isPanelOpen = (_c = options.defaultOpen) !== null && _c !== void 0 ? _c : false;
130
+ this.defaultHeight = (_d = options.defaultHeight) !== null && _d !== void 0 ? _d : 240;
131
+ this.defaultWidth = (_e = options.defaultWidth) !== null && _e !== void 0 ? _e : 280;
132
+ this.onOpen = options.onOpen;
133
+ this.size =
134
+ this.side === 'bottom' || this.side === 'top'
135
+ ? this.defaultHeight
136
+ : this.defaultWidth;
137
+ acuiEnsureDockPanelStyles();
138
+ this.ensureHostLayout();
139
+ this.root = document.createElement('div');
140
+ this.root.className = 'ml-ex-ui-dock-panel';
141
+ this.root.dataset.side = this.side;
142
+ this.root.dataset.open = String(this.isPanelOpen);
143
+ this.resizeHandle = document.createElement('div');
144
+ this.resizeHandle.className = 'ml-ex-ui-dock-resize-handle';
145
+ this.resizeHandle.addEventListener('pointerdown', this.handleResizePointerDown);
146
+ this.contentEl = document.createElement('div');
147
+ this.contentEl.className = 'ml-ex-ui-dock-content';
148
+ var header = document.createElement('div');
149
+ header.className = 'ml-ex-ui-dock-header';
150
+ this.tabsWrap = document.createElement('div');
151
+ this.tabsWrap.className = 'ml-ex-ui-dock-tabs-wrap';
152
+ this.tabsEl = document.createElement('div');
153
+ this.tabsEl.className = 'ml-ex-ui-dock-tabs';
154
+ this.tabsEl.setAttribute('role', 'tablist');
155
+ this.overflowButton = document.createElement('button');
156
+ this.overflowButton.type = 'button';
157
+ this.overflowButton.className = 'ml-ex-ui-dock-tab-overflow-btn';
158
+ this.overflowButton.hidden = true;
159
+ this.overflowButton.textContent = '»';
160
+ this.overflowButton.title = this.t('moreTabs');
161
+ this.overflowButton.setAttribute('aria-label', this.t('moreTabs'));
162
+ this.overflowButton.addEventListener('click', function (event) {
163
+ event.stopPropagation();
164
+ _this.toggleOverflowMenu();
165
+ });
166
+ this.tabsWrap.appendChild(this.tabsEl);
167
+ this.tabsWrap.appendChild(this.overflowButton);
168
+ this.tabOverflowObserver = new ResizeObserver(function () {
169
+ _this.scheduleUpdateTabOverflow();
170
+ });
171
+ this.tabOverflowObserver.observe(this.tabsWrap);
172
+ var actions = document.createElement('div');
173
+ actions.className = 'ml-ex-ui-dock-actions';
174
+ this.sideMenuButton = document.createElement('button');
175
+ this.sideMenuButton.type = 'button';
176
+ this.sideMenuButton.className = 'ml-ex-ui-dock-action-btn';
177
+ this.sideMenuButton.title = this.t('dockSide');
178
+ this.sideMenuButton.setAttribute('aria-label', this.t('dockSide'));
179
+ this.sideMenuButton.appendChild(createIconElement(ICON_DOCK_SIDE_MENU));
180
+ this.sideMenuButton.addEventListener('click', function (event) {
181
+ event.stopPropagation();
182
+ _this.toggleSideMenu();
183
+ });
184
+ this.closeButton = document.createElement('button');
185
+ this.closeButton.type = 'button';
186
+ this.closeButton.className = 'ml-ex-ui-dock-action-btn';
187
+ this.closeButton.title = this.t('close');
188
+ this.closeButton.setAttribute('aria-label', this.t('close'));
189
+ this.closeButton.appendChild(createIconElement(ICON_DOCK_CLOSE));
190
+ this.closeButton.addEventListener('click', function () { return _this.close(); });
191
+ actions.appendChild(this.sideMenuButton);
192
+ actions.appendChild(this.closeButton);
193
+ header.appendChild(this.tabsWrap);
194
+ header.appendChild(actions);
195
+ this.bodyEl = document.createElement('div');
196
+ this.bodyEl.className = 'ml-ex-ui-dock-body';
197
+ this.contentEl.appendChild(header);
198
+ this.contentEl.appendChild(this.bodyEl);
199
+ this.sheetChrome = document.createElement('div');
200
+ this.sheetChrome.className = 'ml-ex-ui-dock-sheet-chrome';
201
+ this.sheetGrabber = document.createElement('div');
202
+ this.sheetGrabber.className = 'ml-ex-ui-dock-sheet-grabber';
203
+ this.sheetGrabber.setAttribute('role', 'separator');
204
+ this.sheetGrabber.setAttribute('aria-orientation', 'horizontal');
205
+ this.sheetGrabber.title = this.t('resize');
206
+ this.sheetGrabber.setAttribute('aria-label', this.t('resize'));
207
+ this.sheetGrabber.addEventListener('pointerdown', this.handleResizePointerDown);
208
+ this.sheetCloseButton = document.createElement('button');
209
+ this.sheetCloseButton.type = 'button';
210
+ this.sheetCloseButton.className = 'ml-ex-ui-dock-sheet-close';
211
+ this.sheetCloseButton.title = this.t('close');
212
+ this.sheetCloseButton.setAttribute('aria-label', this.t('close'));
213
+ this.sheetCloseButton.appendChild(createIconElement(ICON_CHEVRON_DOWN));
214
+ this.sheetCloseButton.addEventListener('click', function () { return _this.close(); });
215
+ this.sheetChrome.append(this.sheetGrabber, this.sheetCloseButton);
216
+ this.root.appendChild(this.sheetChrome);
217
+ this.root.appendChild(this.contentEl);
218
+ this.root.appendChild(this.resizeHandle);
219
+ this.ensureDockMainWrapper();
220
+ this.mountToHost();
221
+ this.bindMobileMediaQuery();
222
+ this.applyLayoutState();
223
+ }
224
+ /**
225
+ * Registers a callback run each time the panel is closed (close button,
226
+ * toggle, or {@link close}).
227
+ *
228
+ * @returns Function that removes the callback.
229
+ */
230
+ AcUiDockPanel.prototype.addCloseListener = function (listener) {
231
+ var _this = this;
232
+ this.closeListeners.add(listener);
233
+ return function () { return _this.closeListeners.delete(listener); };
234
+ };
235
+ /** Whether a tab with the given id is registered. */
236
+ AcUiDockPanel.prototype.hasTab = function (tabId) {
237
+ return this.tabs.has(tabId);
238
+ };
239
+ /**
240
+ * Registers a tab with the dock panel.
241
+ *
242
+ * @param tab - Tab definition.
243
+ * @returns `true` when the tab was added; `false` if it already exists or is invalid.
244
+ */
245
+ AcUiDockPanel.prototype.addTab = function (tab) {
246
+ var _this = this;
247
+ if (this.tabs.has(tab.id))
248
+ return false;
249
+ if (!tab.labelKey && !tab.label)
250
+ return false;
251
+ var tabButtonId = "ml-ex-ui-dock-tab-".concat(tab.id);
252
+ var panelId = "ml-ex-ui-dock-tabpanel-".concat(tab.id);
253
+ var tabButton = document.createElement('button');
254
+ tabButton.type = 'button';
255
+ tabButton.className = 'ml-ex-ui-dock-tab';
256
+ tabButton.id = tabButtonId;
257
+ tabButton.setAttribute('role', 'tab');
258
+ tabButton.setAttribute('aria-controls', panelId);
259
+ tabButton.dataset.tabId = tab.id;
260
+ tabButton.textContent = this.getTabLabel(tab);
261
+ tabButton.addEventListener('click', function () {
262
+ _this.openPanel(tab.id);
263
+ });
264
+ var panel = document.createElement('div');
265
+ panel.className = 'ml-ex-ui-dock-tab-panel';
266
+ panel.id = panelId;
267
+ panel.setAttribute('role', 'tabpanel');
268
+ panel.setAttribute('aria-labelledby', tabButtonId);
269
+ panel.dataset.tabId = tab.id;
270
+ panel.hidden = true;
271
+ panel.tabIndex = -1;
272
+ panel.appendChild(tab.content);
273
+ this.tabs.set(tab.id, {
274
+ id: tab.id,
275
+ labelKey: tab.labelKey,
276
+ label: tab.label,
277
+ tabButton: tabButton,
278
+ panel: panel
279
+ });
280
+ this.tabsEl.appendChild(tabButton);
281
+ this.bodyEl.appendChild(panel);
282
+ if (!this.activeTabId) {
283
+ this.setActiveTab(tab.id);
284
+ }
285
+ this.scheduleUpdateTabOverflow();
286
+ return true;
287
+ };
288
+ /**
289
+ * Moves the dock panel to a new mount element (for example when the canvas parent
290
+ * becomes available after plugin load).
291
+ *
292
+ * @param newHost - New mount target.
293
+ */
294
+ AcUiDockPanel.prototype.reparentTo = function (newHost) {
295
+ if (this.host === newHost) {
296
+ this.ensureMounted();
297
+ this.applyLayoutState();
298
+ return;
299
+ }
300
+ var wasOpen = this.isPanelOpen;
301
+ var activeTabId = this.activeTabId;
302
+ this.closeSideMenu();
303
+ this.closeOverflowMenu();
304
+ this.releaseDockMainWrapper();
305
+ this.root.remove();
306
+ this.clearHostLayoutClasses();
307
+ this.host = newHost;
308
+ this.ensureHostLayout();
309
+ this.ensureDockMainWrapper();
310
+ this.mountToHost();
311
+ this.isPanelOpen = wasOpen;
312
+ if (activeTabId && this.tabs.has(activeTabId)) {
313
+ this.setActiveTab(activeTabId);
314
+ }
315
+ this.ensureMounted();
316
+ this.applyLayoutState();
317
+ };
318
+ /** Ensures the panel root is attached to the current mount host. */
319
+ AcUiDockPanel.prototype.ensureMounted = function () {
320
+ if (!this.root.isConnected) {
321
+ this.mountToHost();
322
+ }
323
+ };
324
+ /**
325
+ * Removes a tab and its content panel from the dock.
326
+ *
327
+ * @param tabId - Tab identifier to remove.
328
+ */
329
+ AcUiDockPanel.prototype.removeTab = function (tabId) {
330
+ var tab = this.tabs.get(tabId);
331
+ if (!tab)
332
+ return;
333
+ tab.tabButton.remove();
334
+ tab.panel.remove();
335
+ this.tabs.delete(tabId);
336
+ if (this.activeTabId === tabId) {
337
+ var nextTabId = this.tabs.keys().next().value;
338
+ this.activeTabId = undefined;
339
+ if (nextTabId) {
340
+ this.setActiveTab(nextTabId);
341
+ }
342
+ }
343
+ this.scheduleUpdateTabOverflow();
344
+ };
345
+ Object.defineProperty(AcUiDockPanel.prototype, "hasTabs", {
346
+ /** Whether the dock panel has any registered tabs. */
347
+ get: function () {
348
+ return this.tabs.size > 0;
349
+ },
350
+ enumerable: false,
351
+ configurable: true
352
+ });
353
+ /**
354
+ * Opens the panel and optionally activates a tab.
355
+ *
356
+ * @param tabId - Tab to activate.
357
+ */
358
+ AcUiDockPanel.prototype.open = function (tabId) {
359
+ var _a;
360
+ (_a = this.onOpen) === null || _a === void 0 ? void 0 : _a.call(this);
361
+ if (tabId) {
362
+ this.setActiveTab(tabId);
363
+ }
364
+ else if (this.activeTabId) {
365
+ this.setActiveTab(this.activeTabId);
366
+ }
367
+ else if (this.tabs.size > 0) {
368
+ this.setActiveTab(this.tabs.keys().next().value);
369
+ }
370
+ this.isPanelOpen = true;
371
+ this.ensureMounted();
372
+ this.applyLayoutState();
373
+ };
374
+ /** Closes the panel without destroying it. */
375
+ AcUiDockPanel.prototype.close = function () {
376
+ var e_1, _a;
377
+ this.isPanelOpen = false;
378
+ this.closeSideMenu();
379
+ this.closeOverflowMenu();
380
+ this.applyLayoutState();
381
+ try {
382
+ for (var _b = __values(__spreadArray([], __read(this.closeListeners), false)), _c = _b.next(); !_c.done; _c = _b.next()) {
383
+ var listener = _c.value;
384
+ listener();
385
+ }
386
+ }
387
+ catch (e_1_1) { e_1 = { error: e_1_1 }; }
388
+ finally {
389
+ try {
390
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
391
+ }
392
+ finally { if (e_1) throw e_1.error; }
393
+ }
394
+ };
395
+ /**
396
+ * Toggles panel visibility; when opening, activates the given tab.
397
+ *
398
+ * @param tabId - Tab to activate when opening.
399
+ */
400
+ AcUiDockPanel.prototype.toggle = function (tabId) {
401
+ if (this.isPanelOpen && (!tabId || this.activeTabId === tabId)) {
402
+ this.close();
403
+ return;
404
+ }
405
+ this.open(tabId);
406
+ };
407
+ /**
408
+ * Switches dock side and re-mounts within the host.
409
+ *
410
+ * @param side - New dock side.
411
+ */
412
+ AcUiDockPanel.prototype.setSide = function (side) {
413
+ if (this.side === side)
414
+ return;
415
+ var previousSide = this.side;
416
+ this.side = side;
417
+ if ((previousSide === 'left' || previousSide === 'right') &&
418
+ (side === 'left' || side === 'right')) {
419
+ // Keep width when switching between left and right.
420
+ }
421
+ else if ((previousSide === 'top' || previousSide === 'bottom') &&
422
+ (side === 'top' || side === 'bottom')) {
423
+ // Keep height when switching between top and bottom.
424
+ }
425
+ else {
426
+ this.size =
427
+ side === 'bottom' || side === 'top'
428
+ ? this.defaultHeight
429
+ : this.defaultWidth;
430
+ }
431
+ this.closeSideMenu();
432
+ this.closeOverflowMenu();
433
+ this.mountToHost();
434
+ this.applyLayoutState();
435
+ this.scheduleUpdateTabOverflow();
436
+ };
437
+ /** Current mount host element for the dock panel root. */
438
+ AcUiDockPanel.prototype.getMountHost = function () {
439
+ return this.host;
440
+ };
441
+ Object.defineProperty(AcUiDockPanel.prototype, "isOpen", {
442
+ /** Whether the panel is currently open. */
443
+ get: function () {
444
+ return this.isPanelOpen;
445
+ },
446
+ enumerable: false,
447
+ configurable: true
448
+ });
449
+ /** Current dock side. */
450
+ AcUiDockPanel.prototype.getSide = function () {
451
+ return this.side;
452
+ };
453
+ /** Current panel size in px (width for left/right, height for top/bottom). */
454
+ AcUiDockPanel.prototype.getSize = function () {
455
+ return this.size;
456
+ };
457
+ /**
458
+ * Sets panel size in px, clamped to the dock host bounds.
459
+ *
460
+ * @param size - Target size in px.
461
+ */
462
+ AcUiDockPanel.prototype.setPanelSize = function (size) {
463
+ this.setSize(size);
464
+ };
465
+ Object.defineProperty(AcUiDockPanel.prototype, "activeTab", {
466
+ /** Current active tab id, if any. */
467
+ get: function () {
468
+ return this.activeTabId;
469
+ },
470
+ enumerable: false,
471
+ configurable: true
472
+ });
473
+ /** Updates tab labels and action button titles after locale change. */
474
+ AcUiDockPanel.prototype.refreshLocale = function () {
475
+ var e_2, _a;
476
+ try {
477
+ for (var _b = __values(this.tabs.values()), _c = _b.next(); !_c.done; _c = _b.next()) {
478
+ var tab = _c.value;
479
+ tab.tabButton.textContent = this.getTabLabel(tab);
480
+ }
481
+ }
482
+ catch (e_2_1) { e_2 = { error: e_2_1 }; }
483
+ finally {
484
+ try {
485
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
486
+ }
487
+ finally { if (e_2) throw e_2.error; }
488
+ }
489
+ this.sideMenuButton.title = this.t('dockSide');
490
+ this.sideMenuButton.setAttribute('aria-label', this.t('dockSide'));
491
+ this.closeButton.title = this.t('close');
492
+ this.closeButton.setAttribute('aria-label', this.t('close'));
493
+ this.overflowButton.title = this.t('moreTabs');
494
+ this.overflowButton.setAttribute('aria-label', this.t('moreTabs'));
495
+ this.sheetGrabber.title = this.t('resize');
496
+ this.sheetGrabber.setAttribute('aria-label', this.t('resize'));
497
+ this.sheetCloseButton.title = this.t('close');
498
+ this.sheetCloseButton.setAttribute('aria-label', this.t('close'));
499
+ if (this.sideMenuRoot) {
500
+ this.renderSideMenuItems();
501
+ }
502
+ if (this.overflowMenuRoot) {
503
+ this.renderOverflowMenuItems();
504
+ }
505
+ this.scheduleUpdateTabOverflow();
506
+ };
507
+ /** Removes the panel from the DOM and cleans up listeners. */
508
+ AcUiDockPanel.prototype.destroy = function () {
509
+ var _a;
510
+ document.removeEventListener('pointerdown', this.handleDocumentPointerDown, true);
511
+ document.removeEventListener('pointermove', this.handleResizePointerMove);
512
+ document.removeEventListener('pointerup', this.handleResizePointerUp);
513
+ document.removeEventListener('pointercancel', this.handleResizePointerUp);
514
+ if (this.tabOverflowFrame !== undefined) {
515
+ cancelAnimationFrame(this.tabOverflowFrame);
516
+ this.tabOverflowFrame = undefined;
517
+ }
518
+ (_a = this.tabOverflowObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
519
+ this.tabOverflowObserver = undefined;
520
+ this.unbindMobileMediaQuery();
521
+ this.closeSideMenu();
522
+ this.closeOverflowMenu();
523
+ this.releaseDockMainWrapper();
524
+ this.clearHostLayoutClasses();
525
+ this.root.remove();
526
+ acuiRemoveDockPanelStylesIfUnused();
527
+ };
528
+ AcUiDockPanel.prototype.openPanel = function (tabId) {
529
+ this.setActiveTab(tabId);
530
+ this.isPanelOpen = true;
531
+ this.applyLayoutState();
532
+ };
533
+ AcUiDockPanel.prototype.setActiveTab = function (tabId) {
534
+ var e_3, _a;
535
+ if (!this.tabs.has(tabId))
536
+ return;
537
+ this.activeTabId = tabId;
538
+ try {
539
+ for (var _b = __values(this.tabs.values()), _c = _b.next(); !_c.done; _c = _b.next()) {
540
+ var tab = _c.value;
541
+ var active = tab.id === tabId;
542
+ tab.tabButton.classList.toggle('is-active', active);
543
+ tab.tabButton.setAttribute('aria-selected', String(active));
544
+ tab.tabButton.tabIndex = active ? 0 : -1;
545
+ tab.panel.hidden = !active;
546
+ if (active) {
547
+ tab.panel.removeAttribute('aria-hidden');
548
+ }
549
+ else {
550
+ tab.panel.setAttribute('aria-hidden', 'true');
551
+ }
552
+ }
553
+ }
554
+ catch (e_3_1) { e_3 = { error: e_3_1 }; }
555
+ finally {
556
+ try {
557
+ if (_c && !_c.done && (_a = _b.return)) _a.call(_b);
558
+ }
559
+ finally { if (e_3) throw e_3.error; }
560
+ }
561
+ this.scheduleUpdateTabOverflow();
562
+ };
563
+ AcUiDockPanel.prototype.ensureHostLayout = function () {
564
+ if (getComputedStyle(this.host).position === 'static') {
565
+ this.host.style.position = 'relative';
566
+ }
567
+ if (!this.host.classList.contains('ml-ex-ui-host-dock')) {
568
+ this.host.classList.add('ml-ex-ui-host-dock');
569
+ }
570
+ };
571
+ /**
572
+ * Groups existing mount-target children so flex shrink applies to the canvas slot only.
573
+ */
574
+ AcUiDockPanel.prototype.ensureDockMainWrapper = function () {
575
+ var _a;
576
+ if ((_a = this.dockMainWrapper) === null || _a === void 0 ? void 0 : _a.isConnected)
577
+ return;
578
+ var movable = [];
579
+ Array.from(this.host.childNodes).forEach(function (child) {
580
+ if (child instanceof HTMLElement &&
581
+ child.classList.contains('ml-ex-ui-dock-panel')) {
582
+ return;
583
+ }
584
+ movable.push(child);
585
+ });
586
+ if (movable.length === 0)
587
+ return;
588
+ var wrapper = document.createElement('div');
589
+ wrapper.className = 'ml-ex-ui-dock-main';
590
+ movable.forEach(function (node) { return wrapper.appendChild(node); });
591
+ this.host.appendChild(wrapper);
592
+ this.dockMainWrapper = wrapper;
593
+ };
594
+ /** Moves canvas content out of the dock wrapper and restores the original host tree. */
595
+ AcUiDockPanel.prototype.releaseDockMainWrapper = function () {
596
+ var _a;
597
+ if (!((_a = this.dockMainWrapper) === null || _a === void 0 ? void 0 : _a.isConnected)) {
598
+ this.dockMainWrapper = undefined;
599
+ return;
600
+ }
601
+ while (this.dockMainWrapper.firstChild) {
602
+ this.host.insertBefore(this.dockMainWrapper.firstChild, this.dockMainWrapper);
603
+ }
604
+ this.dockMainWrapper.remove();
605
+ this.dockMainWrapper = undefined;
606
+ };
607
+ AcUiDockPanel.prototype.clearHostLayoutClasses = function () {
608
+ this.host.classList.remove('ml-ex-ui-host-dock', 'ml-ex-ui-host-dock-top', 'ml-ex-ui-host-dock-bottom', 'ml-ex-ui-host-dock-left', 'ml-ex-ui-host-dock-right', 'ml-ex-ui-host-dock-sheet');
609
+ };
610
+ AcUiDockPanel.prototype.mountToHost = function () {
611
+ this.ensureDockMainWrapper();
612
+ if (this.root.isConnected) {
613
+ this.root.remove();
614
+ }
615
+ if (this.side === 'left' || this.side === 'top') {
616
+ this.host.insertBefore(this.root, this.host.firstChild);
617
+ return;
618
+ }
619
+ this.host.appendChild(this.root);
620
+ };
621
+ AcUiDockPanel.prototype.applyLayoutState = function () {
622
+ var phoneSheet = this.usesPhoneSheet();
623
+ this.root.dataset.side = this.side;
624
+ this.root.dataset.open = String(this.isPanelOpen);
625
+ this.root.dataset.phoneSheet = String(phoneSheet);
626
+ this.host.classList.remove('ml-ex-ui-host-dock-top', 'ml-ex-ui-host-dock-bottom', 'ml-ex-ui-host-dock-left', 'ml-ex-ui-host-dock-right', 'ml-ex-ui-host-dock-sheet');
627
+ if (this.isPanelOpen) {
628
+ this.host.classList.add(phoneSheet ? 'ml-ex-ui-host-dock-sheet' : "ml-ex-ui-host-dock-".concat(this.side));
629
+ }
630
+ if (phoneSheet) {
631
+ this.syncPhoneSheetInset();
632
+ }
633
+ else {
634
+ this.root.style.removeProperty('--ml-ex-ui-phone-sheet-inset');
635
+ }
636
+ this.root.style.setProperty('--ml-ex-ui-dock-size', "".concat(this.size, "px"));
637
+ this.scheduleUpdateTabOverflow();
638
+ };
639
+ AcUiDockPanel.prototype.setSize = function (nextSize) {
640
+ var maxSize = this.getMaxSize();
641
+ this.size = Math.max(DOCK_MIN_SIZE, Math.min(maxSize, nextSize));
642
+ this.root.style.setProperty('--ml-ex-ui-dock-size', "".concat(this.size, "px"));
643
+ this.scheduleUpdateTabOverflow();
644
+ };
645
+ AcUiDockPanel.prototype.getMaxSize = function () {
646
+ if (this.usesPhoneSheet() || this.side === 'bottom' || this.side === 'top') {
647
+ var available = this.usesPhoneSheet()
648
+ ? this.host.clientHeight - this.getPhoneChromeInset()
649
+ : this.host.clientHeight;
650
+ return Math.max(DOCK_MIN_SIZE, available * DOCK_MAX_SIZE_RATIO);
651
+ }
652
+ return Math.max(DOCK_MIN_SIZE, this.host.clientWidth * DOCK_MAX_SIZE_RATIO);
653
+ };
654
+ /** Whether the dock is shown as a full-width sheet above the phone toolbar. */
655
+ AcUiDockPanel.prototype.usesPhoneSheet = function () {
656
+ return acedIsMobileUiLayout();
657
+ };
658
+ /** Whether height (rather than width) is resized. */
659
+ AcUiDockPanel.prototype.usesVerticalResize = function () {
660
+ return this.usesPhoneSheet() || this.side === 'bottom' || this.side === 'top';
661
+ };
662
+ AcUiDockPanel.prototype.bindMobileMediaQuery = function () {
663
+ if (typeof window.matchMedia !== 'function')
664
+ return;
665
+ this.mobileMediaQuery = window.matchMedia(ML_UI_MOBILE_MEDIA_QUERY);
666
+ this.mobileMediaQuery.addEventListener('change', this.handleMobileMediaChange);
667
+ };
668
+ AcUiDockPanel.prototype.unbindMobileMediaQuery = function () {
669
+ var _a;
670
+ (_a = this.mobileMediaQuery) === null || _a === void 0 ? void 0 : _a.removeEventListener('change', this.handleMobileMediaChange);
671
+ this.mobileMediaQuery = undefined;
672
+ };
673
+ AcUiDockPanel.prototype.syncPhoneSheetInset = function () {
674
+ this.root.style.setProperty('--ml-ex-ui-phone-sheet-inset', "".concat(this.getPhoneChromeInset(), "px"));
675
+ };
676
+ /** Combined height of the in-host toolbar and any visible sub-toolbars. */
677
+ AcUiDockPanel.prototype.getPhoneChromeInset = function () {
678
+ var _this = this;
679
+ var inset = 0;
680
+ var toolbar = this.host.querySelector('.ml-ex-ui-toolbar');
681
+ if (toolbar instanceof HTMLElement && this.isElementVisible(toolbar)) {
682
+ inset += toolbar.offsetHeight;
683
+ }
684
+ this.host.querySelectorAll('.ml-ex-ui-subtoolbar').forEach(function (node) {
685
+ if (node instanceof HTMLElement && _this.isElementVisible(node)) {
686
+ inset += node.offsetHeight;
687
+ }
688
+ });
689
+ return inset;
690
+ };
691
+ AcUiDockPanel.prototype.isElementVisible = function (element) {
692
+ if (element.hidden)
693
+ return false;
694
+ return element.offsetParent !== null || element.getClientRects().length > 0;
695
+ };
696
+ AcUiDockPanel.prototype.toggleSideMenu = function () {
697
+ if (this.sideMenuRoot) {
698
+ this.closeSideMenu();
699
+ return;
700
+ }
701
+ this.closeOverflowMenu();
702
+ this.openSideMenu();
703
+ };
704
+ AcUiDockPanel.prototype.openSideMenu = function () {
705
+ this.sideMenuRoot = document.createElement('div');
706
+ this.sideMenuRoot.className = 'ml-ex-ui-dock-side-menu';
707
+ this.sideMenuRoot.setAttribute('role', 'menu');
708
+ this.renderSideMenuItems();
709
+ var rect = this.sideMenuButton.getBoundingClientRect();
710
+ this.host.appendChild(this.sideMenuRoot);
711
+ this.sideMenuRoot.style.top = "".concat(rect.bottom + 4, "px");
712
+ this.sideMenuRoot.style.left = "".concat(Math.max(8, rect.right - 160), "px");
713
+ this.syncOutsidePointerListener();
714
+ };
715
+ AcUiDockPanel.prototype.renderSideMenuItems = function () {
716
+ var _this = this;
717
+ if (!this.sideMenuRoot)
718
+ return;
719
+ this.sideMenuRoot.replaceChildren();
720
+ var sides = [
721
+ { side: 'top', labelKey: 'dockTop', icon: ICON_PLACEMENT_TOP },
722
+ {
723
+ side: 'bottom',
724
+ labelKey: 'dockBottom',
725
+ icon: ICON_PLACEMENT_BOTTOM
726
+ },
727
+ {
728
+ side: 'left',
729
+ labelKey: 'dockLeft',
730
+ icon: ICON_PLACEMENT_LEFT
731
+ },
732
+ {
733
+ side: 'right',
734
+ labelKey: 'dockRight',
735
+ icon: ICON_PLACEMENT_RIGHT
736
+ }
737
+ ];
738
+ sides.forEach(function (entry) {
739
+ var button = document.createElement('button');
740
+ button.type = 'button';
741
+ button.className = 'ml-ex-ui-dock-side-menu-item';
742
+ button.setAttribute('role', 'menuitem');
743
+ if (entry.side === _this.side) {
744
+ button.classList.add('is-selected');
745
+ }
746
+ button.appendChild(createIconElement(entry.icon));
747
+ var label = document.createElement('span');
748
+ label.textContent = _this.t(entry.labelKey);
749
+ button.appendChild(label);
750
+ button.addEventListener('click', function (event) {
751
+ event.stopPropagation();
752
+ _this.setSide(entry.side);
753
+ _this.closeSideMenu();
754
+ });
755
+ _this.sideMenuRoot.appendChild(button);
756
+ });
757
+ };
758
+ AcUiDockPanel.prototype.closeSideMenu = function () {
759
+ var _a;
760
+ (_a = this.sideMenuRoot) === null || _a === void 0 ? void 0 : _a.remove();
761
+ this.sideMenuRoot = undefined;
762
+ this.syncOutsidePointerListener();
763
+ };
764
+ AcUiDockPanel.prototype.syncOutsidePointerListener = function () {
765
+ document.removeEventListener('pointerdown', this.handleDocumentPointerDown, true);
766
+ if (this.sideMenuRoot || this.overflowMenuRoot) {
767
+ document.addEventListener('pointerdown', this.handleDocumentPointerDown, true);
768
+ }
769
+ };
770
+ AcUiDockPanel.prototype.scheduleUpdateTabOverflow = function () {
771
+ var _this = this;
772
+ if (this.tabOverflowFrame !== undefined)
773
+ return;
774
+ this.tabOverflowFrame = requestAnimationFrame(function () {
775
+ _this.tabOverflowFrame = undefined;
776
+ _this.updateTabOverflow();
777
+ });
778
+ };
779
+ AcUiDockPanel.prototype.updateTabOverflow = function () {
780
+ var _a;
781
+ var tabList = Array.from(this.tabs.values());
782
+ if (tabList.length === 0) {
783
+ this.overflowButton.hidden = true;
784
+ this.overflowTabIds = [];
785
+ return;
786
+ }
787
+ this.overflowButton.hidden = true;
788
+ tabList.forEach(function (tab) {
789
+ tab.tabButton.hidden = false;
790
+ });
791
+ var wrapWidth = this.tabsWrap.clientWidth;
792
+ if (wrapWidth <= 0)
793
+ return;
794
+ var totalWidth = tabList.reduce(function (sum, tab) { return sum + tab.tabButton.offsetWidth; }, 0);
795
+ if (totalWidth <= wrapWidth) {
796
+ this.overflowTabIds = [];
797
+ this.overflowButton.hidden = true;
798
+ this.overflowButton.classList.remove('is-active');
799
+ if (this.overflowMenuRoot) {
800
+ this.closeOverflowMenu();
801
+ }
802
+ return;
803
+ }
804
+ var activeId = (_a = this.activeTabId) !== null && _a !== void 0 ? _a : tabList[0].id;
805
+ var availableWidth = wrapWidth - DOCK_TAB_OVERFLOW_BTN_WIDTH;
806
+ var visible = new Set(tabList.map(function (tab) { return tab.id; }));
807
+ var hidden = new Set();
808
+ var sumVisibleWidth = function () {
809
+ return tabList
810
+ .filter(function (tab) { return visible.has(tab.id); })
811
+ .reduce(function (sum, tab) { return sum + tab.tabButton.offsetWidth; }, 0);
812
+ };
813
+ while (visible.size > 1 && sumVisibleWidth() > availableWidth) {
814
+ var hideId = void 0;
815
+ for (var index = tabList.length - 1; index >= 0; index -= 1) {
816
+ var id = tabList[index].id;
817
+ if (id === activeId || !visible.has(id))
818
+ continue;
819
+ hideId = id;
820
+ break;
821
+ }
822
+ if (!hideId)
823
+ break;
824
+ visible.delete(hideId);
825
+ hidden.add(hideId);
826
+ }
827
+ if (!visible.has(activeId)) {
828
+ hidden.delete(activeId);
829
+ visible.add(activeId);
830
+ while (visible.size > 1 && sumVisibleWidth() > availableWidth) {
831
+ var hideId = void 0;
832
+ for (var index = tabList.length - 1; index >= 0; index -= 1) {
833
+ var id = tabList[index].id;
834
+ if (id === activeId || !visible.has(id))
835
+ continue;
836
+ hideId = id;
837
+ break;
838
+ }
839
+ if (!hideId)
840
+ break;
841
+ visible.delete(hideId);
842
+ hidden.add(hideId);
843
+ }
844
+ }
845
+ tabList.forEach(function (tab) {
846
+ tab.tabButton.hidden = hidden.has(tab.id);
847
+ });
848
+ this.overflowTabIds = tabList
849
+ .filter(function (tab) { return hidden.has(tab.id); })
850
+ .map(function (tab) { return tab.id; });
851
+ this.overflowButton.hidden = this.overflowTabIds.length === 0;
852
+ this.overflowButton.classList.toggle('is-active', this.overflowTabIds.includes(activeId));
853
+ if (this.overflowMenuRoot && this.overflowTabIds.length === 0) {
854
+ this.closeOverflowMenu();
855
+ }
856
+ else if (this.overflowMenuRoot) {
857
+ this.renderOverflowMenuItems();
858
+ }
859
+ };
860
+ AcUiDockPanel.prototype.getTabLabel = function (tab) {
861
+ if (tab.label)
862
+ return tab.label;
863
+ if (tab.labelKey)
864
+ return this.translate(tab.labelKey);
865
+ return '';
866
+ };
867
+ /** Translates a chrome string under `main.dockPanel.*`. */
868
+ AcUiDockPanel.prototype.t = function (key) {
869
+ return this.translate("main.dockPanel.".concat(key));
870
+ };
871
+ AcUiDockPanel.prototype.toggleOverflowMenu = function () {
872
+ if (this.overflowMenuRoot) {
873
+ this.closeOverflowMenu();
874
+ return;
875
+ }
876
+ this.closeSideMenu();
877
+ this.openOverflowMenu();
878
+ };
879
+ AcUiDockPanel.prototype.openOverflowMenu = function () {
880
+ if (this.overflowTabIds.length === 0)
881
+ return;
882
+ this.overflowMenuRoot = document.createElement('div');
883
+ this.overflowMenuRoot.className = 'ml-ex-ui-dock-tab-overflow-menu';
884
+ this.overflowMenuRoot.setAttribute('role', 'menu');
885
+ this.renderOverflowMenuItems();
886
+ var rect = this.overflowButton.getBoundingClientRect();
887
+ this.host.appendChild(this.overflowMenuRoot);
888
+ this.overflowMenuRoot.style.top = "".concat(rect.bottom + 4, "px");
889
+ this.overflowMenuRoot.style.left = "".concat(Math.max(8, rect.right - 180), "px");
890
+ this.syncOutsidePointerListener();
891
+ };
892
+ AcUiDockPanel.prototype.renderOverflowMenuItems = function () {
893
+ var _this = this;
894
+ if (!this.overflowMenuRoot)
895
+ return;
896
+ this.overflowMenuRoot.replaceChildren();
897
+ this.overflowTabIds.forEach(function (tabId) {
898
+ var tab = _this.tabs.get(tabId);
899
+ if (!tab)
900
+ return;
901
+ var button = document.createElement('button');
902
+ button.type = 'button';
903
+ button.className = 'ml-ex-ui-dock-tab-overflow-menu-item';
904
+ button.setAttribute('role', 'menuitem');
905
+ if (tabId === _this.activeTabId) {
906
+ button.classList.add('is-selected');
907
+ }
908
+ button.textContent = _this.getTabLabel(tab);
909
+ button.addEventListener('click', function (event) {
910
+ event.stopPropagation();
911
+ _this.openPanel(tabId);
912
+ _this.closeOverflowMenu();
913
+ });
914
+ _this.overflowMenuRoot.appendChild(button);
915
+ });
916
+ };
917
+ AcUiDockPanel.prototype.closeOverflowMenu = function () {
918
+ var _a;
919
+ (_a = this.overflowMenuRoot) === null || _a === void 0 ? void 0 : _a.remove();
920
+ this.overflowMenuRoot = undefined;
921
+ this.syncOutsidePointerListener();
922
+ };
923
+ return AcUiDockPanel;
924
+ }());
925
+ export { AcUiDockPanel };
926
+ //# sourceMappingURL=AcUiDockPanel.js.map