@mlightcad/cad-simple-viewer 1.6.3 → 1.7.1
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.
- package/LICENSE +21 -21
- package/README.md +185 -180
- package/dist/cad-simple-viewer.js +34895 -23320
- package/dist/cad-simple-viewer.umd.cjs +2570 -372
- package/dist/mtext-renderer-worker.js +15359 -15067
- package/icons.ts +7 -7
- package/lib/app/AcApBrand.d.ts +2 -2
- package/lib/app/AcApBrand.d.ts.map +1 -1
- package/lib/app/AcApBrand.js +2 -2
- package/lib/app/AcApBrand.js.map +1 -1
- package/lib/app/AcApContext.d.ts.map +1 -1
- package/lib/app/AcApContext.js +4 -3
- package/lib/app/AcApContext.js.map +1 -1
- package/lib/app/AcApDocManager.d.ts +107 -25
- package/lib/app/AcApDocManager.d.ts.map +1 -1
- package/lib/app/AcApDocManager.js +209 -93
- package/lib/app/AcApDocManager.js.map +1 -1
- package/lib/app/AcApDocsUrl.d.ts +57 -0
- package/lib/app/AcApDocsUrl.d.ts.map +1 -0
- package/lib/app/AcApDocsUrl.js +76 -0
- package/lib/app/AcApDocsUrl.js.map +1 -0
- package/lib/app/AcApDocument.d.ts +1 -1
- package/lib/app/AcApDocument.d.ts.map +1 -1
- package/lib/app/AcApDocument.js.map +1 -1
- package/lib/app/AcApFontLoader.d.ts +6 -0
- package/lib/app/AcApFontLoader.d.ts.map +1 -1
- package/lib/app/AcApFontLoader.js +11 -0
- package/lib/app/AcApFontLoader.js.map +1 -1
- package/lib/app/AcApOpenDatabaseOptions.d.ts +106 -0
- package/lib/app/AcApOpenDatabaseOptions.d.ts.map +1 -0
- package/lib/app/{AcDbOpenDatabaseOptions.js → AcApOpenDatabaseOptions.js} +2 -2
- package/lib/app/AcApOpenDatabaseOptions.js.map +1 -0
- package/lib/app/AcApOpenFileDialog.d.ts +1 -1
- package/lib/app/AcApOpenFileProgressController.d.ts +4 -2
- package/lib/app/AcApOpenFileProgressController.d.ts.map +1 -1
- package/lib/app/AcApOpenFileProgressController.js +4 -2
- package/lib/app/AcApOpenFileProgressController.js.map +1 -1
- package/lib/app/AcApSettingManager.d.ts +156 -43
- package/lib/app/AcApSettingManager.d.ts.map +1 -1
- package/lib/app/AcApSettingManager.js +216 -66
- package/lib/app/AcApSettingManager.js.map +1 -1
- package/lib/app/index.d.ts +4 -2
- package/lib/app/index.d.ts.map +1 -1
- package/lib/app/index.js +3 -1
- package/lib/app/index.js.map +1 -1
- package/lib/app/notification/AcApNotificationEventBridge.d.ts +130 -0
- package/lib/app/notification/AcApNotificationEventBridge.d.ts.map +1 -0
- package/lib/app/notification/AcApNotificationEventBridge.js +309 -0
- package/lib/app/notification/AcApNotificationEventBridge.js.map +1 -0
- package/lib/app/notification/AcApNotificationService.d.ts +185 -0
- package/lib/app/notification/AcApNotificationService.d.ts.map +1 -0
- package/lib/app/notification/AcApNotificationService.js +271 -0
- package/lib/app/notification/AcApNotificationService.js.map +1 -0
- package/lib/app/notification/AcApNotificationStore.d.ts +147 -0
- package/lib/app/notification/AcApNotificationStore.d.ts.map +1 -0
- package/lib/app/notification/AcApNotificationStore.js +345 -0
- package/lib/app/notification/AcApNotificationStore.js.map +1 -0
- package/lib/app/notification/AcApNotificationTypes.d.ts +195 -0
- package/lib/app/notification/AcApNotificationTypes.d.ts.map +1 -0
- package/lib/app/notification/AcApNotificationTypes.js +78 -0
- package/lib/app/notification/AcApNotificationTypes.js.map +1 -0
- package/lib/app/notification/index.d.ts +13 -0
- package/lib/app/notification/index.d.ts.map +1 -0
- package/lib/app/notification/index.js +13 -0
- package/lib/app/notification/index.js.map +1 -0
- package/lib/command/AcApDrawOverlayInput.d.ts +6 -0
- package/lib/command/AcApDrawOverlayInput.d.ts.map +1 -0
- package/lib/command/AcApDrawOverlayInput.js +64 -0
- package/lib/command/AcApDrawOverlayInput.js.map +1 -0
- package/lib/command/AcApDrawStyleDrawCmd.d.ts +9 -0
- package/lib/command/AcApDrawStyleDrawCmd.d.ts.map +1 -0
- package/lib/command/AcApDrawStyleDrawCmd.js +32 -0
- package/lib/command/AcApDrawStyleDrawCmd.js.map +1 -0
- package/lib/command/AcApDrawStyleSession.d.ts +20 -0
- package/lib/command/AcApDrawStyleSession.d.ts.map +1 -0
- package/lib/command/AcApDrawStyleSession.js +2 -0
- package/lib/command/AcApDrawStyleSession.js.map +1 -0
- package/lib/command/AcApInstallDrawStyleSessionAccessory.d.ts +28 -0
- package/lib/command/AcApInstallDrawStyleSessionAccessory.d.ts.map +1 -0
- package/lib/command/AcApInstallDrawStyleSessionAccessory.js +178 -0
- package/lib/command/AcApInstallDrawStyleSessionAccessory.js.map +1 -0
- package/lib/command/AcApReadingModeCmd.d.ts +17 -0
- package/lib/command/AcApReadingModeCmd.d.ts.map +1 -0
- package/lib/command/AcApReadingModeCmd.js +82 -0
- package/lib/command/AcApReadingModeCmd.js.map +1 -0
- package/lib/command/AcApShortCutSelectionAccessory.d.ts +14 -0
- package/lib/command/AcApShortCutSelectionAccessory.d.ts.map +1 -0
- package/lib/command/AcApShortCutSelectionAccessory.js +266 -0
- package/lib/command/AcApShortCutSelectionAccessory.js.map +1 -0
- package/lib/command/AcApShortCutToolbarDocBind.d.ts +20 -0
- package/lib/command/AcApShortCutToolbarDocBind.d.ts.map +1 -0
- package/lib/command/AcApShortCutToolbarDocBind.js +155 -0
- package/lib/command/AcApShortCutToolbarDocBind.js.map +1 -0
- package/lib/command/AcApSwitchBgCmd.d.ts.map +1 -1
- package/lib/command/AcApSwitchBgCmd.js +7 -2
- package/lib/command/AcApSwitchBgCmd.js.map +1 -1
- package/lib/command/AcApToolbarDocBind.d.ts +19 -0
- package/lib/command/AcApToolbarDocBind.d.ts.map +1 -0
- package/lib/command/AcApToolbarDocBind.js +62 -0
- package/lib/command/AcApToolbarDocBind.js.map +1 -0
- package/lib/command/AcApZoomCmd.d.ts +39 -1
- package/lib/command/AcApZoomCmd.d.ts.map +1 -1
- package/lib/command/AcApZoomCmd.js +70 -6
- package/lib/command/AcApZoomCmd.js.map +1 -1
- package/lib/command/convert/AcApConvertToBmpCmd.d.ts +14 -0
- package/lib/command/convert/AcApConvertToBmpCmd.d.ts.map +1 -0
- package/lib/command/convert/AcApConvertToBmpCmd.js +34 -0
- package/lib/command/convert/AcApConvertToBmpCmd.js.map +1 -0
- package/lib/command/convert/AcApConvertToJpgCmd.d.ts +14 -0
- package/lib/command/convert/AcApConvertToJpgCmd.d.ts.map +1 -0
- package/lib/command/convert/AcApConvertToJpgCmd.js +34 -0
- package/lib/command/convert/AcApConvertToJpgCmd.js.map +1 -0
- package/lib/command/convert/AcApConvertToPngCmd.d.ts +4 -36
- package/lib/command/convert/AcApConvertToPngCmd.d.ts.map +1 -1
- package/lib/command/convert/AcApConvertToPngCmd.js +4 -138
- package/lib/command/convert/AcApConvertToPngCmd.js.map +1 -1
- package/lib/command/convert/AcApConvertToRasterImageCmd.d.ts +40 -0
- package/lib/command/convert/AcApConvertToRasterImageCmd.d.ts.map +1 -0
- package/lib/command/convert/AcApConvertToRasterImageCmd.js +161 -0
- package/lib/command/convert/AcApConvertToRasterImageCmd.js.map +1 -0
- package/lib/command/convert/{AcApPngConvertor.d.ts → AcApRasterImageConvertor.d.ts} +36 -12
- package/lib/command/convert/AcApRasterImageConvertor.d.ts.map +1 -0
- package/lib/command/convert/{AcApPngConvertor.js → AcApRasterImageConvertor.js} +163 -32
- package/lib/command/convert/AcApRasterImageConvertor.js.map +1 -0
- package/lib/command/convert/index.d.ts +4 -1
- package/lib/command/convert/index.d.ts.map +1 -1
- package/lib/command/convert/index.js +4 -1
- package/lib/command/convert/index.js.map +1 -1
- package/lib/command/draw/AcApHatchCmd.js +1 -1
- package/lib/command/draw/AcApHatchCmd.js.map +1 -1
- package/lib/command/draw/AcApMTextCmd.d.ts.map +1 -1
- package/lib/command/draw/AcApMTextCmd.js +11 -7
- package/lib/command/draw/AcApMTextCmd.js.map +1 -1
- package/lib/command/index.d.ts +5 -0
- package/lib/command/index.d.ts.map +1 -1
- package/lib/command/index.js +5 -0
- package/lib/command/index.js.map +1 -1
- package/lib/command/markup/AcApMarkupArrowCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupArrowCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupArrowCmd.js +8 -9
- package/lib/command/markup/AcApMarkupArrowCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupCalloutCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupCalloutCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCalloutCmd.js +69 -13
- package/lib/command/markup/AcApMarkupCalloutCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupCircleCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupCircleCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCircleCmd.js +8 -9
- package/lib/command/markup/AcApMarkupCircleCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupCloudCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupCloudCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCloudCmd.js +8 -9
- package/lib/command/markup/AcApMarkupCloudCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupCmdUtil.d.ts +12 -1
- package/lib/command/markup/AcApMarkupCmdUtil.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupCmdUtil.js +37 -9
- package/lib/command/markup/AcApMarkupCmdUtil.js.map +1 -1
- package/lib/command/markup/AcApMarkupDrawCmd.d.ts +19 -0
- package/lib/command/markup/AcApMarkupDrawCmd.d.ts.map +1 -0
- package/lib/command/markup/AcApMarkupDrawCmd.js +47 -0
- package/lib/command/markup/AcApMarkupDrawCmd.js.map +1 -0
- package/lib/command/markup/AcApMarkupGeometry.d.ts +19 -2
- package/lib/command/markup/AcApMarkupGeometry.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupGeometry.js +43 -2
- package/lib/command/markup/AcApMarkupGeometry.js.map +1 -1
- package/lib/command/markup/AcApMarkupHighlightCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupHighlightCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupHighlightCmd.js +9 -10
- package/lib/command/markup/AcApMarkupHighlightCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupLineCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupLineCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupLineCmd.js +18 -11
- package/lib/command/markup/AcApMarkupLineCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupPresenter.d.ts +16 -2
- package/lib/command/markup/AcApMarkupPresenter.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupPresenter.js +66 -14
- package/lib/command/markup/AcApMarkupPresenter.js.map +1 -1
- package/lib/command/markup/AcApMarkupRectCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupRectCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupRectCmd.js +8 -9
- package/lib/command/markup/AcApMarkupRectCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupShapeBuilder.d.ts +7 -4
- package/lib/command/markup/AcApMarkupShapeBuilder.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupShapeBuilder.js +24 -11
- package/lib/command/markup/AcApMarkupShapeBuilder.js.map +1 -1
- package/lib/command/markup/AcApMarkupShapeCallout.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupShapeCallout.js +61 -4
- package/lib/command/markup/AcApMarkupShapeCallout.js.map +1 -1
- package/lib/command/markup/AcApMarkupSidecar.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupSidecar.js +39 -5
- package/lib/command/markup/AcApMarkupSidecar.js.map +1 -1
- package/lib/command/markup/AcApMarkupStampCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupStampCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupStampCmd.js +6 -7
- package/lib/command/markup/AcApMarkupStampCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupTextCmd.d.ts +2 -3
- package/lib/command/markup/AcApMarkupTextCmd.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupTextCmd.js +13 -9
- package/lib/command/markup/AcApMarkupTextCmd.js.map +1 -1
- package/lib/command/markup/AcApMarkupTypes.d.ts +18 -2
- package/lib/command/markup/AcApMarkupTypes.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupUtil.d.ts +36 -7
- package/lib/command/markup/AcApMarkupUtil.d.ts.map +1 -1
- package/lib/command/markup/AcApMarkupUtil.js +149 -34
- package/lib/command/markup/AcApMarkupUtil.js.map +1 -1
- package/lib/command/markup/AcApRegisterMarkupCommands.d.ts +8 -0
- package/lib/command/markup/AcApRegisterMarkupCommands.d.ts.map +1 -0
- package/lib/command/markup/AcApRegisterMarkupCommands.js +35 -0
- package/lib/command/markup/AcApRegisterMarkupCommands.js.map +1 -0
- package/lib/command/markup/entity/AcApMarkupCalloutEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupCalloutEntity.js +16 -15
- package/lib/command/markup/entity/AcApMarkupCalloutEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupEntity.d.ts +5 -1
- package/lib/command/markup/entity/AcApMarkupEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupEntity.js +19 -5
- package/lib/command/markup/entity/AcApMarkupEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupEntityGrips.d.ts +8 -3
- package/lib/command/markup/entity/AcApMarkupEntityGrips.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupEntityGrips.js +15 -7
- package/lib/command/markup/entity/AcApMarkupEntityGrips.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupHighlightEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupHighlightEntity.js +14 -12
- package/lib/command/markup/entity/AcApMarkupHighlightEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupSegmentEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupSegmentEntity.js +8 -6
- package/lib/command/markup/entity/AcApMarkupSegmentEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupShapeEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupShapeEntity.js +23 -21
- package/lib/command/markup/entity/AcApMarkupShapeEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupStampEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupStampEntity.js +1 -0
- package/lib/command/markup/entity/AcApMarkupStampEntity.js.map +1 -1
- package/lib/command/markup/entity/AcApMarkupTextEntity.d.ts.map +1 -1
- package/lib/command/markup/entity/AcApMarkupTextEntity.js +1 -0
- package/lib/command/markup/entity/AcApMarkupTextEntity.js.map +1 -1
- package/lib/command/markup/index.d.ts +2 -0
- package/lib/command/markup/index.d.ts.map +1 -1
- package/lib/command/markup/index.js +2 -0
- package/lib/command/markup/index.js.map +1 -1
- package/lib/command/measure/AcApMeasureAngleArc.d.ts +27 -0
- package/lib/command/measure/AcApMeasureAngleArc.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasureAngleArc.js +22 -0
- package/lib/command/measure/AcApMeasureAngleArc.js.map +1 -0
- package/lib/command/measure/AcApMeasureAngleCmd.d.ts +2 -3
- package/lib/command/measure/AcApMeasureAngleCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureAngleCmd.js +46 -45
- package/lib/command/measure/AcApMeasureAngleCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureArcCmd.d.ts +2 -3
- package/lib/command/measure/AcApMeasureArcCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureArcCmd.js +71 -67
- package/lib/command/measure/AcApMeasureArcCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureAreaCmd.d.ts +2 -3
- package/lib/command/measure/AcApMeasureAreaCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureAreaCmd.js +102 -99
- package/lib/command/measure/AcApMeasureAreaCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureContinuousCmd.d.ts +44 -0
- package/lib/command/measure/AcApMeasureContinuousCmd.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasureContinuousCmd.js +317 -0
- package/lib/command/measure/AcApMeasureContinuousCmd.js.map +1 -0
- package/lib/command/measure/AcApMeasureDistanceCmd.d.ts +3 -3
- package/lib/command/measure/AcApMeasureDistanceCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasureDistanceCmd.js +41 -37
- package/lib/command/measure/AcApMeasureDistanceCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasureDrawCmd.d.ts +32 -0
- package/lib/command/measure/AcApMeasureDrawCmd.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasureDrawCmd.js +56 -0
- package/lib/command/measure/AcApMeasureDrawCmd.js.map +1 -0
- package/lib/command/measure/AcApMeasurePointCmd.d.ts +2 -3
- package/lib/command/measure/AcApMeasurePointCmd.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurePointCmd.js +20 -23
- package/lib/command/measure/AcApMeasurePointCmd.js.map +1 -1
- package/lib/command/measure/AcApMeasurementGeometry.d.ts +19 -0
- package/lib/command/measure/AcApMeasurementGeometry.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementGeometry.js +53 -3
- package/lib/command/measure/AcApMeasurementGeometry.js.map +1 -1
- package/lib/command/measure/AcApMeasurementHistory.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementHistory.js +3 -1
- package/lib/command/measure/AcApMeasurementHistory.js.map +1 -1
- package/lib/command/measure/AcApMeasurementPlace.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementPlace.js +22 -5
- package/lib/command/measure/AcApMeasurementPlace.js.map +1 -1
- package/lib/command/measure/AcApMeasurementRepublish.d.ts +35 -0
- package/lib/command/measure/AcApMeasurementRepublish.d.ts.map +1 -0
- package/lib/command/measure/AcApMeasurementRepublish.js +31 -0
- package/lib/command/measure/AcApMeasurementRepublish.js.map +1 -0
- package/lib/command/measure/AcApMeasurementSidecar.d.ts +2 -1
- package/lib/command/measure/AcApMeasurementSidecar.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementSidecar.js +55 -10
- package/lib/command/measure/AcApMeasurementSidecar.js.map +1 -1
- package/lib/command/measure/AcApMeasurementStore.d.ts +45 -2
- package/lib/command/measure/AcApMeasurementStore.d.ts.map +1 -1
- package/lib/command/measure/AcApMeasurementStore.js +277 -33
- package/lib/command/measure/AcApMeasurementStore.js.map +1 -1
- package/lib/command/measure/AcApMeasurementTypes.d.ts +17 -1
- package/lib/command/measure/AcApMeasurementTypes.d.ts.map +1 -1
- package/lib/command/measure/AcApRegisterMeasureCommands.d.ts +8 -0
- package/lib/command/measure/AcApRegisterMeasureCommands.d.ts.map +1 -0
- package/lib/command/measure/AcApRegisterMeasureCommands.js +29 -0
- package/lib/command/measure/AcApRegisterMeasureCommands.js.map +1 -0
- package/lib/command/measure/entity/AcApMeasureAngleEntity.d.ts +3 -5
- package/lib/command/measure/entity/AcApMeasureAngleEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureAngleEntity.js +165 -56
- package/lib/command/measure/entity/AcApMeasureAngleEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureArcEntity.d.ts +5 -8
- package/lib/command/measure/entity/AcApMeasureArcEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureArcEntity.js +251 -53
- package/lib/command/measure/entity/AcApMeasureArcEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureAreaEntity.d.ts +4 -3
- package/lib/command/measure/entity/AcApMeasureAreaEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureAreaEntity.js +154 -28
- package/lib/command/measure/entity/AcApMeasureAreaEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureDistanceEntity.d.ts +5 -3
- package/lib/command/measure/entity/AcApMeasureDistanceEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureDistanceEntity.js +180 -28
- package/lib/command/measure/entity/AcApMeasureDistanceEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts +20 -8
- package/lib/command/measure/entity/AcApMeasureDrawUtil.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureDrawUtil.js +45 -19
- package/lib/command/measure/entity/AcApMeasureDrawUtil.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntity.d.ts +41 -6
- package/lib/command/measure/entity/AcApMeasureEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntity.js +48 -2
- package/lib/command/measure/entity/AcApMeasureEntity.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntityFactory.d.ts +2 -2
- package/lib/command/measure/entity/AcApMeasureEntityFactory.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntityFactory.js +10 -3
- package/lib/command/measure/entity/AcApMeasureEntityFactory.js.map +1 -1
- package/lib/command/measure/entity/AcApMeasureEntityGrips.d.ts +33 -0
- package/lib/command/measure/entity/AcApMeasureEntityGrips.d.ts.map +1 -0
- package/lib/command/measure/entity/AcApMeasureEntityGrips.js +49 -0
- package/lib/command/measure/entity/AcApMeasureEntityGrips.js.map +1 -0
- package/lib/command/measure/entity/AcApMeasurePointEntity.d.ts +3 -2
- package/lib/command/measure/entity/AcApMeasurePointEntity.d.ts.map +1 -1
- package/lib/command/measure/entity/AcApMeasurePointEntity.js +130 -16
- package/lib/command/measure/entity/AcApMeasurePointEntity.js.map +1 -1
- package/lib/command/measure/entity/index.d.ts +1 -0
- package/lib/command/measure/entity/index.d.ts.map +1 -1
- package/lib/command/measure/entity/index.js +1 -0
- package/lib/command/measure/entity/index.js.map +1 -1
- package/lib/command/measure/index.d.ts +4 -0
- package/lib/command/measure/index.d.ts.map +1 -1
- package/lib/command/measure/index.js +4 -0
- package/lib/command/measure/index.js.map +1 -1
- package/lib/command/overlay/AcApHtmlLivePreview.d.ts +16 -4
- package/lib/command/overlay/AcApHtmlLivePreview.d.ts.map +1 -1
- package/lib/command/overlay/AcApHtmlLivePreview.js +42 -12
- package/lib/command/overlay/AcApHtmlLivePreview.js.map +1 -1
- package/lib/command/overlay/AcApOverlayDrawUtil.d.ts +113 -3
- package/lib/command/overlay/AcApOverlayDrawUtil.d.ts.map +1 -1
- package/lib/command/overlay/AcApOverlayDrawUtil.js +341 -7
- package/lib/command/overlay/AcApOverlayDrawUtil.js.map +1 -1
- package/lib/command/overlay/AcApOverlayGripHost.d.ts +19 -0
- package/lib/command/overlay/AcApOverlayGripHost.d.ts.map +1 -1
- package/lib/command/overlay/AcApOverlayGripHost.js +124 -6
- package/lib/command/overlay/AcApOverlayGripHost.js.map +1 -1
- package/lib/editor/command/AcEdCommand.d.ts +17 -0
- package/lib/editor/command/AcEdCommand.d.ts.map +1 -1
- package/lib/editor/command/AcEdCommand.js +81 -1
- package/lib/editor/command/AcEdCommand.js.map +1 -1
- package/lib/editor/command/AcEdCommandStack.d.ts +14 -3
- package/lib/editor/command/AcEdCommandStack.d.ts.map +1 -1
- package/lib/editor/command/AcEdCommandStack.js +39 -3
- package/lib/editor/command/AcEdCommandStack.js.map +1 -1
- package/lib/editor/command/AcEdSessionAccessory.d.ts +82 -0
- package/lib/editor/command/AcEdSessionAccessory.d.ts.map +1 -0
- package/lib/editor/command/AcEdSessionAccessory.js +15 -0
- package/lib/editor/command/AcEdSessionAccessory.js.map +1 -0
- package/lib/editor/command/AcEdSessionProviderRegistry.d.ts +42 -0
- package/lib/editor/command/AcEdSessionProviderRegistry.d.ts.map +1 -0
- package/lib/editor/command/AcEdSessionProviderRegistry.js +54 -0
- package/lib/editor/command/AcEdSessionProviderRegistry.js.map +1 -0
- package/lib/editor/command/index.d.ts +4 -0
- package/lib/editor/command/index.d.ts.map +1 -1
- package/lib/editor/command/index.js +3 -0
- package/lib/editor/command/index.js.map +1 -1
- package/lib/editor/global/AcEdUiColor.d.ts +10 -0
- package/lib/editor/global/AcEdUiColor.d.ts.map +1 -1
- package/lib/editor/global/AcEdUiColor.js +14 -0
- package/lib/editor/global/AcEdUiColor.js.map +1 -1
- package/lib/editor/global/AcEdUiLayout.d.ts +108 -0
- package/lib/editor/global/AcEdUiLayout.d.ts.map +1 -1
- package/lib/editor/global/AcEdUiLayout.js +143 -0
- package/lib/editor/global/AcEdUiLayout.js.map +1 -1
- package/lib/editor/global/AcEdUiTheme.d.ts +15 -3
- package/lib/editor/global/AcEdUiTheme.d.ts.map +1 -1
- package/lib/editor/global/AcEdUiTheme.js +113 -6
- package/lib/editor/global/AcEdUiTheme.js.map +1 -1
- package/lib/editor/grip/AcEdGripAppearance.d.ts +18 -0
- package/lib/editor/grip/AcEdGripAppearance.d.ts.map +1 -1
- package/lib/editor/grip/AcEdGripAppearance.js +23 -1
- package/lib/editor/grip/AcEdGripAppearance.js.map +1 -1
- package/lib/editor/grip/AcEdGripEditSession.js +2 -2
- package/lib/editor/grip/AcEdGripEditSession.js.map +1 -1
- package/lib/editor/grip/AcEdGripHandle.d.ts +1 -2
- package/lib/editor/grip/AcEdGripHandle.d.ts.map +1 -1
- package/lib/editor/grip/AcEdGripHandle.js +4 -13
- package/lib/editor/grip/AcEdGripHandle.js.map +1 -1
- package/lib/editor/grip/AcEdGripManager.d.ts +3 -1
- package/lib/editor/grip/AcEdGripManager.d.ts.map +1 -1
- package/lib/editor/grip/AcEdGripManager.js +30 -14
- package/lib/editor/grip/AcEdGripManager.js.map +1 -1
- package/lib/editor/grip/index.d.ts +1 -0
- package/lib/editor/grip/index.d.ts.map +1 -1
- package/lib/editor/grip/index.js +1 -0
- package/lib/editor/grip/index.js.map +1 -1
- package/lib/editor/input/AcEdDynamicInput.d.ts +15 -0
- package/lib/editor/input/AcEdDynamicInput.d.ts.map +1 -0
- package/lib/editor/input/AcEdDynamicInput.js +22 -0
- package/lib/editor/input/AcEdDynamicInput.js.map +1 -0
- package/lib/editor/input/AcEdOsnapCenterMarks.d.ts +19 -1
- package/lib/editor/input/AcEdOsnapCenterMarks.d.ts.map +1 -1
- package/lib/editor/input/AcEdOsnapCenterMarks.js +53 -9
- package/lib/editor/input/AcEdOsnapCenterMarks.js.map +1 -1
- package/lib/editor/input/AcEdOsnapResolver.d.ts.map +1 -1
- package/lib/editor/input/AcEdOsnapResolver.js +216 -35
- package/lib/editor/input/AcEdOsnapResolver.js.map +1 -1
- package/lib/editor/input/AcEditor.d.ts +14 -1
- package/lib/editor/input/AcEditor.d.ts.map +1 -1
- package/lib/editor/input/AcEditor.js +18 -2
- package/lib/editor/input/AcEditor.js.map +1 -1
- package/lib/editor/input/index.d.ts +1 -0
- package/lib/editor/input/index.d.ts.map +1 -1
- package/lib/editor/input/index.js +1 -0
- package/lib/editor/input/index.js.map +1 -1
- package/lib/editor/input/marker/AcEdOSnapMarkerManager.d.ts +12 -0
- package/lib/editor/input/marker/AcEdOSnapMarkerManager.d.ts.map +1 -1
- package/lib/editor/input/marker/AcEdOSnapMarkerManager.js +53 -18
- package/lib/editor/input/marker/AcEdOSnapMarkerManager.js.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts +15 -0
- package/lib/editor/input/prompt/AcEdPromptPointOptions.d.ts.map +1 -1
- package/lib/editor/input/prompt/AcEdPromptPointOptions.js +24 -0
- package/lib/editor/input/prompt/AcEdPromptPointOptions.js.map +1 -1
- package/lib/editor/input/ui/AcEdCanvasTouchCalloutGuard.d.ts +31 -0
- package/lib/editor/input/ui/AcEdCanvasTouchCalloutGuard.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdCanvasTouchCalloutGuard.js +67 -0
- package/lib/editor/input/ui/AcEdCanvasTouchCalloutGuard.js.map +1 -0
- package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.d.ts +33 -0
- package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.js +85 -0
- package/lib/editor/input/ui/AcEdDesktopSessionAccessoryChrome.js.map +1 -0
- package/lib/editor/input/ui/AcEdEntityPickCancelChrome.d.ts +57 -0
- package/lib/editor/input/ui/AcEdEntityPickCancelChrome.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdEntityPickCancelChrome.js +104 -0
- package/lib/editor/input/ui/AcEdEntityPickCancelChrome.js.map +1 -0
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts +146 -0
- package/lib/editor/input/ui/AcEdFloatingInput.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInput.js +423 -13
- package/lib/editor/input/ui/AcEdFloatingInput.js.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts +8 -1
- package/lib/editor/input/ui/AcEdFloatingInputTypes.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingMessage.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdFloatingMessage.js +2 -2
- package/lib/editor/input/ui/AcEdFloatingMessage.js.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.d.ts +100 -7
- package/lib/editor/input/ui/AcEdInputManager.d.ts.map +1 -1
- package/lib/editor/input/ui/AcEdInputManager.js +846 -165
- package/lib/editor/input/ui/AcEdInputManager.js.map +1 -1
- package/lib/editor/input/ui/AcEdInteractionStrategy.d.ts +94 -0
- package/lib/editor/input/ui/AcEdInteractionStrategy.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdInteractionStrategy.js +60 -0
- package/lib/editor/input/ui/AcEdInteractionStrategy.js.map +1 -0
- package/lib/editor/input/ui/AcEdMobileBoxGesture.d.ts +52 -0
- package/lib/editor/input/ui/AcEdMobileBoxGesture.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdMobileBoxGesture.js +203 -0
- package/lib/editor/input/ui/AcEdMobileBoxGesture.js.map +1 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.d.ts +103 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.js +157 -0
- package/lib/editor/input/ui/AcEdMobileCommandChrome.js.map +1 -0
- package/lib/editor/input/ui/AcEdMobileSessionMetrics.d.ts +29 -0
- package/lib/editor/input/ui/AcEdMobileSessionMetrics.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdMobileSessionMetrics.js +37 -0
- package/lib/editor/input/ui/AcEdMobileSessionMetrics.js.map +1 -0
- package/lib/editor/input/ui/AcEdMobileSnapLoupe.d.ts +45 -0
- package/lib/editor/input/ui/AcEdMobileSnapLoupe.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdMobileSnapLoupe.js +63 -0
- package/lib/editor/input/ui/AcEdMobileSnapLoupe.js.map +1 -0
- package/lib/editor/input/ui/AcEdSessionAccessoryController.d.ts +121 -0
- package/lib/editor/input/ui/AcEdSessionAccessoryController.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdSessionAccessoryController.js +306 -0
- package/lib/editor/input/ui/AcEdSessionAccessoryController.js.map +1 -0
- package/lib/editor/input/ui/AcEdSimulatedMouseCursor.d.ts +28 -0
- package/lib/editor/input/ui/AcEdSimulatedMouseCursor.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdSimulatedMouseCursor.js +86 -0
- package/lib/editor/input/ui/AcEdSimulatedMouseCursor.js.map +1 -0
- package/lib/editor/input/ui/AcEdSnapLoupe.d.ts +60 -0
- package/lib/editor/input/ui/AcEdSnapLoupe.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdSnapLoupe.js +109 -0
- package/lib/editor/input/ui/AcEdSnapLoupe.js.map +1 -0
- package/lib/editor/input/ui/AcEdSnapLoupeMath.d.ts +47 -0
- package/lib/editor/input/ui/AcEdSnapLoupeMath.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdSnapLoupeMath.js +50 -0
- package/lib/editor/input/ui/AcEdSnapLoupeMath.js.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPickStrategy.d.ts +97 -0
- package/lib/editor/input/ui/AcEdTouchPickStrategy.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPickStrategy.js +74 -0
- package/lib/editor/input/ui/AcEdTouchPickStrategy.js.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPointSession.d.ts +198 -0
- package/lib/editor/input/ui/AcEdTouchPointSession.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPointSession.js +329 -0
- package/lib/editor/input/ui/AcEdTouchPointSession.js.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPointTiming.d.ts +18 -0
- package/lib/editor/input/ui/AcEdTouchPointTiming.d.ts.map +1 -0
- package/lib/editor/input/ui/AcEdTouchPointTiming.js +18 -0
- package/lib/editor/input/ui/AcEdTouchPointTiming.js.map +1 -0
- package/lib/editor/input/ui/index.d.ts +14 -0
- package/lib/editor/input/ui/index.d.ts.map +1 -1
- package/lib/editor/input/ui/index.js +14 -0
- package/lib/editor/input/ui/index.js.map +1 -1
- package/lib/editor/view/AcEdBaseView.d.ts +144 -39
- package/lib/editor/view/AcEdBaseView.d.ts.map +1 -1
- package/lib/editor/view/AcEdBaseView.js +200 -49
- package/lib/editor/view/AcEdBaseView.js.map +1 -1
- package/lib/editor/view/AcEdSelectionBoxIntersect.d.ts +36 -0
- package/lib/editor/view/AcEdSelectionBoxIntersect.d.ts.map +1 -0
- package/lib/editor/view/AcEdSelectionBoxIntersect.js +113 -0
- package/lib/editor/view/AcEdSelectionBoxIntersect.js.map +1 -0
- package/lib/editor/view/AcEdViewMode.d.ts +34 -0
- package/lib/editor/view/AcEdViewMode.d.ts.map +1 -0
- package/lib/editor/view/AcEdViewMode.js +35 -0
- package/lib/editor/view/AcEdViewMode.js.map +1 -0
- package/lib/editor/view/index.d.ts +2 -0
- package/lib/editor/view/index.d.ts.map +1 -1
- package/lib/editor/view/index.js +2 -0
- package/lib/editor/view/index.js.map +1 -1
- package/lib/i18n/AcApI18n.d.ts +2 -1
- package/lib/i18n/AcApI18n.d.ts.map +1 -1
- package/lib/i18n/AcApI18n.js +5 -2
- package/lib/i18n/AcApI18n.js.map +1 -1
- package/lib/i18n/ar/command.d.ts +18 -0
- package/lib/i18n/ar/command.d.ts.map +1 -1
- package/lib/i18n/ar/command.js +1 -1
- package/lib/i18n/ar/command.js.map +1 -1
- package/lib/i18n/ar/jig.d.ts +67 -0
- package/lib/i18n/ar/jig.d.ts.map +1 -1
- package/lib/i18n/ar/jig.js +31 -3
- package/lib/i18n/ar/jig.js.map +1 -1
- package/lib/i18n/ar/main.d.ts +100 -1
- package/lib/i18n/ar/main.d.ts.map +1 -1
- package/lib/i18n/ar/main.js +101 -2
- package/lib/i18n/ar/main.js.map +1 -1
- package/lib/i18n/cs/command.d.ts +15 -0
- package/lib/i18n/cs/command.d.ts.map +1 -1
- package/lib/i18n/cs/command.js +15 -0
- package/lib/i18n/cs/command.js.map +1 -1
- package/lib/i18n/cs/jig.d.ts +67 -0
- package/lib/i18n/cs/jig.d.ts.map +1 -1
- package/lib/i18n/cs/jig.js +67 -0
- package/lib/i18n/cs/jig.js.map +1 -1
- package/lib/i18n/cs/main.d.ts +100 -1
- package/lib/i18n/cs/main.d.ts.map +1 -1
- package/lib/i18n/cs/main.js +101 -2
- package/lib/i18n/cs/main.js.map +1 -1
- package/lib/i18n/en/command.d.ts +18 -0
- package/lib/i18n/en/command.d.ts.map +1 -1
- package/lib/i18n/en/command.js +18 -0
- package/lib/i18n/en/command.js.map +1 -1
- package/lib/i18n/en/jig.d.ts +67 -0
- package/lib/i18n/en/jig.d.ts.map +1 -1
- package/lib/i18n/en/jig.js +67 -0
- package/lib/i18n/en/jig.js.map +1 -1
- package/lib/i18n/en/main.d.ts +100 -1
- package/lib/i18n/en/main.d.ts.map +1 -1
- package/lib/i18n/en/main.js +101 -2
- package/lib/i18n/en/main.js.map +1 -1
- package/lib/i18n/index.d.ts +2 -2
- package/lib/i18n/index.d.ts.map +1 -1
- package/lib/i18n/index.js.map +1 -1
- package/lib/i18n/tr/command.d.ts +15 -0
- package/lib/i18n/tr/command.d.ts.map +1 -1
- package/lib/i18n/tr/command.js +15 -0
- package/lib/i18n/tr/command.js.map +1 -1
- package/lib/i18n/tr/jig.d.ts +67 -0
- package/lib/i18n/tr/jig.d.ts.map +1 -1
- package/lib/i18n/tr/jig.js +67 -0
- package/lib/i18n/tr/jig.js.map +1 -1
- package/lib/i18n/tr/main.d.ts +100 -1
- package/lib/i18n/tr/main.d.ts.map +1 -1
- package/lib/i18n/tr/main.js +101 -2
- package/lib/i18n/tr/main.js.map +1 -1
- package/lib/i18n/zh/command.d.ts +18 -0
- package/lib/i18n/zh/command.d.ts.map +1 -1
- package/lib/i18n/zh/command.js +18 -0
- package/lib/i18n/zh/command.js.map +1 -1
- package/lib/i18n/zh/jig.d.ts +67 -0
- package/lib/i18n/zh/jig.d.ts.map +1 -1
- package/lib/i18n/zh/jig.js +67 -0
- package/lib/i18n/zh/jig.js.map +1 -1
- package/lib/i18n/zh/main.d.ts +100 -1
- package/lib/i18n/zh/main.d.ts.map +1 -1
- package/lib/i18n/zh/main.js +102 -3
- package/lib/i18n/zh/main.js.map +1 -1
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.d.ts +6 -0
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.d.ts.map +1 -1
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.js +10 -0
- package/lib/spatialIndex/AcTrHierarchicalSpatialIndex.js.map +1 -1
- package/lib/spatialIndex/AcTrLinearSpatialIndex.d.ts +4 -0
- package/lib/spatialIndex/AcTrLinearSpatialIndex.d.ts.map +1 -1
- package/lib/spatialIndex/AcTrLinearSpatialIndex.js +9 -0
- package/lib/spatialIndex/AcTrLinearSpatialIndex.js.map +1 -1
- package/lib/spatialIndex/AcTrRBushSpatialIndex.d.ts +4 -0
- package/lib/spatialIndex/AcTrRBushSpatialIndex.d.ts.map +1 -1
- package/lib/spatialIndex/AcTrRBushSpatialIndex.js +20 -4
- package/lib/spatialIndex/AcTrRBushSpatialIndex.js.map +1 -1
- package/lib/ui/AcUiAciColorDialog.d.ts +57 -0
- package/lib/ui/AcUiAciColorDialog.d.ts.map +1 -0
- package/lib/ui/AcUiAciColorDialog.js +91 -0
- package/lib/ui/AcUiAciColorDialog.js.map +1 -0
- package/lib/ui/AcUiAciPaletteUi.d.ts +118 -0
- package/lib/ui/AcUiAciPaletteUi.d.ts.map +1 -0
- package/lib/ui/AcUiAciPaletteUi.js +521 -0
- package/lib/ui/AcUiAciPaletteUi.js.map +1 -0
- package/lib/ui/AcUiDefaultNotificationUi.d.ts +167 -0
- package/lib/ui/AcUiDefaultNotificationUi.d.ts.map +1 -0
- package/lib/ui/AcUiDefaultNotificationUi.js +603 -0
- package/lib/ui/AcUiDefaultNotificationUi.js.map +1 -0
- package/lib/ui/AcUiDialog.d.ts +38 -2
- package/lib/ui/AcUiDialog.d.ts.map +1 -1
- package/lib/ui/AcUiDialog.js +45 -16
- package/lib/ui/AcUiDialog.js.map +1 -1
- package/lib/ui/AcUiDrawStyle.d.ts +60 -0
- package/lib/ui/AcUiDrawStyle.d.ts.map +1 -0
- package/lib/ui/AcUiDrawStyle.js +95 -0
- package/lib/ui/AcUiDrawStyle.js.map +1 -0
- package/lib/ui/AcUiDrawStyleSessionAccessory.d.ts +108 -0
- package/lib/ui/AcUiDrawStyleSessionAccessory.d.ts.map +1 -0
- package/lib/ui/AcUiDrawStyleSessionAccessory.js +459 -0
- package/lib/ui/AcUiDrawStyleSessionAccessory.js.map +1 -0
- package/lib/ui/AcUiFullscreenPanel.d.ts +89 -0
- package/lib/ui/AcUiFullscreenPanel.d.ts.map +1 -0
- package/lib/ui/AcUiFullscreenPanel.js +224 -0
- package/lib/ui/AcUiFullscreenPanel.js.map +1 -0
- package/lib/ui/AcUiHelpPanel.d.ts +49 -0
- package/lib/ui/AcUiHelpPanel.d.ts.map +1 -0
- package/lib/ui/AcUiHelpPanel.js +124 -0
- package/lib/ui/AcUiHelpPanel.js.map +1 -0
- package/lib/ui/AcUiMobileSessionPanel.d.ts +239 -0
- package/lib/ui/AcUiMobileSessionPanel.d.ts.map +1 -0
- package/lib/ui/AcUiMobileSessionPanel.js +822 -0
- package/lib/ui/AcUiMobileSessionPanel.js.map +1 -0
- package/lib/ui/AcUiShortCutToolbar.d.ts +160 -0
- package/lib/ui/AcUiShortCutToolbar.d.ts.map +1 -0
- package/lib/ui/AcUiShortCutToolbar.js +318 -0
- package/lib/ui/AcUiShortCutToolbar.js.map +1 -0
- package/lib/ui/AcUiSimpleToolbar.d.ts +110 -0
- package/lib/ui/AcUiSimpleToolbar.d.ts.map +1 -0
- package/lib/ui/AcUiSimpleToolbar.js +431 -0
- package/lib/ui/AcUiSimpleToolbar.js.map +1 -0
- package/lib/ui/AcUiTextHeightDialog.d.ts +85 -0
- package/lib/ui/AcUiTextHeightDialog.d.ts.map +1 -0
- package/lib/ui/AcUiTextHeightDialog.js +205 -0
- package/lib/ui/AcUiTextHeightDialog.js.map +1 -0
- package/lib/ui/AcUiTextHeightDialogHelpers.d.ts +54 -0
- package/lib/ui/AcUiTextHeightDialogHelpers.d.ts.map +1 -0
- package/lib/ui/AcUiTextHeightDialogHelpers.js +128 -0
- package/lib/ui/AcUiTextHeightDialogHelpers.js.map +1 -0
- package/lib/ui/AcUiTouchPointTutorialDialog.d.ts +18 -0
- package/lib/ui/AcUiTouchPointTutorialDialog.d.ts.map +1 -0
- package/lib/ui/AcUiTouchPointTutorialDialog.js +58 -0
- package/lib/ui/AcUiTouchPointTutorialDialog.js.map +1 -0
- package/lib/ui/icons.d.ts +54 -27
- package/lib/ui/icons.d.ts.map +1 -1
- package/lib/ui/icons.js +79 -25
- package/lib/ui/icons.js.map +1 -1
- package/lib/ui/index.d.ts +15 -2
- package/lib/ui/index.d.ts.map +1 -1
- package/lib/ui/index.js +15 -2
- package/lib/ui/index.js.map +1 -1
- package/lib/ui/toolbar/AcUiDropdownMenu.d.ts +48 -0
- package/lib/ui/toolbar/AcUiDropdownMenu.d.ts.map +1 -0
- package/lib/ui/toolbar/AcUiDropdownMenu.js +116 -0
- package/lib/ui/toolbar/AcUiDropdownMenu.js.map +1 -0
- package/lib/ui/toolbar/AcUiSubToolbar.d.ts +125 -0
- package/lib/ui/toolbar/AcUiSubToolbar.d.ts.map +1 -0
- package/lib/ui/toolbar/AcUiSubToolbar.js +625 -0
- package/lib/ui/toolbar/AcUiSubToolbar.js.map +1 -0
- package/lib/ui/toolbar/AcUiToolbar.d.ts +446 -0
- package/lib/ui/toolbar/AcUiToolbar.d.ts.map +1 -0
- package/lib/ui/toolbar/AcUiToolbar.js +1550 -0
- package/lib/ui/toolbar/AcUiToolbar.js.map +1 -0
- package/lib/ui/toolbar/AcUiToolbarStyles.d.ts +20 -0
- package/lib/ui/toolbar/AcUiToolbarStyles.d.ts.map +1 -0
- package/lib/ui/toolbar/AcUiToolbarStyles.js +34 -0
- package/lib/ui/toolbar/AcUiToolbarStyles.js.map +1 -0
- package/lib/ui/toolbar/acuiWrapPackLayout.d.ts +19 -0
- package/lib/ui/toolbar/acuiWrapPackLayout.d.ts.map +1 -0
- package/lib/ui/toolbar/acuiWrapPackLayout.js +36 -0
- package/lib/ui/toolbar/acuiWrapPackLayout.js.map +1 -0
- package/lib/ui/toolbar/index.d.ts +19 -0
- package/lib/ui/toolbar/index.d.ts.map +1 -0
- package/lib/ui/toolbar/index.js +15 -0
- package/lib/ui/toolbar/index.js.map +1 -0
- package/lib/ui/toolbar/resolveToolbarChrome.d.ts +14 -0
- package/lib/ui/toolbar/resolveToolbarChrome.d.ts.map +1 -0
- package/lib/ui/toolbar/resolveToolbarChrome.js +35 -0
- package/lib/ui/toolbar/resolveToolbarChrome.js.map +1 -0
- package/lib/ui/toolbar/resolveToolbarItemState.d.ts +63 -0
- package/lib/ui/toolbar/resolveToolbarItemState.d.ts.map +1 -0
- package/lib/ui/toolbar/resolveToolbarItemState.js +171 -0
- package/lib/ui/toolbar/resolveToolbarItemState.js.map +1 -0
- package/lib/ui/toolbar/toolbarItemUtils.d.ts +62 -0
- package/lib/ui/toolbar/toolbarItemUtils.d.ts.map +1 -0
- package/lib/ui/toolbar/toolbarItemUtils.js +184 -0
- package/lib/ui/toolbar/toolbarItemUtils.js.map +1 -0
- package/lib/ui/toolbar/types.d.ts +268 -0
- package/lib/ui/toolbar/types.d.ts.map +1 -0
- package/lib/ui/toolbar/types.js +8 -0
- package/lib/ui/toolbar/types.js.map +1 -0
- package/lib/ui/touch-point-tutorial.d.ts +64 -0
- package/lib/ui/touch-point-tutorial.d.ts.map +1 -0
- package/lib/ui/touch-point-tutorial.js +271 -0
- package/lib/ui/touch-point-tutorial.js.map +1 -0
- package/lib/ui-html-entry.d.ts +38 -0
- package/lib/ui-html-entry.d.ts.map +1 -0
- package/lib/ui-html-entry.js +28 -0
- package/lib/ui-html-entry.js.map +1 -0
- package/lib/util/AcApAciPalette.d.ts +7 -0
- package/lib/util/AcApAciPalette.d.ts.map +1 -0
- package/lib/util/AcApAciPalette.js +51 -0
- package/lib/util/AcApAciPalette.js.map +1 -0
- package/lib/util/AcApAnalyzeUnsupportedDrawing.d.ts +53 -0
- package/lib/util/AcApAnalyzeUnsupportedDrawing.d.ts.map +1 -0
- package/lib/util/AcApAnalyzeUnsupportedDrawing.js +164 -0
- package/lib/util/AcApAnalyzeUnsupportedDrawing.js.map +1 -0
- package/lib/util/AcApCommandUtil.d.ts +15 -0
- package/lib/util/AcApCommandUtil.d.ts.map +1 -0
- package/lib/util/AcApCommandUtil.js +38 -0
- package/lib/util/AcApCommandUtil.js.map +1 -0
- package/lib/util/AcApCssColor.d.ts +10 -0
- package/lib/util/AcApCssColor.d.ts.map +1 -1
- package/lib/util/AcApCssColor.js +52 -0
- package/lib/util/AcApCssColor.js.map +1 -1
- package/lib/util/AcApFormatFontMissedMessage.d.ts +32 -0
- package/lib/util/AcApFormatFontMissedMessage.d.ts.map +1 -0
- package/lib/util/AcApFormatFontMissedMessage.js +46 -0
- package/lib/util/AcApFormatFontMissedMessage.js.map +1 -0
- package/lib/util/AcApFormatUnsupportedEntitiesMessage.d.ts +44 -0
- package/lib/util/AcApFormatUnsupportedEntitiesMessage.d.ts.map +1 -0
- package/lib/util/AcApFormatUnsupportedEntitiesMessage.js +105 -0
- package/lib/util/AcApFormatUnsupportedEntitiesMessage.js.map +1 -0
- package/lib/util/AcApMeasurementUnits.d.ts +13 -1
- package/lib/util/AcApMeasurementUnits.d.ts.map +1 -1
- package/lib/util/AcApMeasurementUnits.js +144 -10
- package/lib/util/AcApMeasurementUnits.js.map +1 -1
- package/lib/util/AcApMeasurementUtil.d.ts +30 -9
- package/lib/util/AcApMeasurementUtil.d.ts.map +1 -1
- package/lib/util/AcApMeasurementUtil.js +70 -40
- package/lib/util/AcApMeasurementUtil.js.map +1 -1
- package/lib/util/AcApOpenFileErrorMessage.d.ts +25 -0
- package/lib/util/AcApOpenFileErrorMessage.d.ts.map +1 -0
- package/lib/util/AcApOpenFileErrorMessage.js +121 -0
- package/lib/util/AcApOpenFileErrorMessage.js.map +1 -0
- package/lib/util/index.d.ts +6 -0
- package/lib/util/index.d.ts.map +1 -1
- package/lib/util/index.js +6 -0
- package/lib/util/index.js.map +1 -1
- package/lib/view/AcApReadingMode.d.ts +52 -0
- package/lib/view/AcApReadingMode.d.ts.map +1 -0
- package/lib/view/AcApReadingMode.js +81 -0
- package/lib/view/AcApReadingMode.js.map +1 -0
- package/lib/view/AcEdViewKeyHandler.d.ts.map +1 -1
- package/lib/view/AcEdViewKeyHandler.js +6 -1
- package/lib/view/AcEdViewKeyHandler.js.map +1 -1
- package/lib/view/AcTrInheritedLayerMaterialMapper.d.ts +6 -1
- package/lib/view/AcTrInheritedLayerMaterialMapper.d.ts.map +1 -1
- package/lib/view/AcTrInheritedLayerMaterialMapper.js +9 -1
- package/lib/view/AcTrInheritedLayerMaterialMapper.js.map +1 -1
- package/lib/view/AcTrLayer.d.ts +13 -1
- package/lib/view/AcTrLayer.d.ts.map +1 -1
- package/lib/view/AcTrLayer.js +28 -11
- package/lib/view/AcTrLayer.js.map +1 -1
- package/lib/view/AcTrLayout.d.ts +17 -2
- package/lib/view/AcTrLayout.d.ts.map +1 -1
- package/lib/view/AcTrLayout.js +67 -15
- package/lib/view/AcTrLayout.js.map +1 -1
- package/lib/view/AcTrLayoutView.d.ts +25 -1
- package/lib/view/AcTrLayoutView.d.ts.map +1 -1
- package/lib/view/AcTrLayoutView.js +62 -1
- package/lib/view/AcTrLayoutView.js.map +1 -1
- package/lib/view/AcTrScene.d.ts +4 -0
- package/lib/view/AcTrScene.d.ts.map +1 -1
- package/lib/view/AcTrScene.js +6 -0
- package/lib/view/AcTrScene.js.map +1 -1
- package/lib/view/AcTrView2d.d.ts +128 -15
- package/lib/view/AcTrView2d.d.ts.map +1 -1
- package/lib/view/AcTrView2d.js +634 -149
- package/lib/view/AcTrView2d.js.map +1 -1
- package/lib/view/AcTrViewSessionState.d.ts +6 -0
- package/lib/view/AcTrViewSessionState.d.ts.map +1 -1
- package/lib/view/index.d.ts +1 -0
- package/lib/view/index.d.ts.map +1 -1
- package/lib/view/index.js +1 -0
- package/lib/view/index.js.map +1 -1
- package/package.json +8 -8
- package/src/ui/icons.ts +387 -293
- package/lib/app/AcDbOpenDatabaseOptions.d.ts +0 -63
- package/lib/app/AcDbOpenDatabaseOptions.d.ts.map +0 -1
- package/lib/app/AcDbOpenDatabaseOptions.js.map +0 -1
- package/lib/command/convert/AcApPngConvertor.d.ts.map +0 -1
- package/lib/command/convert/AcApPngConvertor.js.map +0 -1
- package/lib/ui/AcApDrawStyle.d.ts +0 -81
- package/lib/ui/AcApDrawStyle.d.ts.map +0 -1
- package/lib/ui/AcApDrawStyle.js +0 -170
- package/lib/ui/AcApDrawStyle.js.map +0 -1
- package/lib/ui/AcApDrawStyleToolbar.d.ts +0 -129
- package/lib/ui/AcApDrawStyleToolbar.d.ts.map +0 -1
- package/lib/ui/AcApDrawStyleToolbar.js +0 -607
- package/lib/ui/AcApDrawStyleToolbar.js.map +0 -1
|
@@ -0,0 +1,822 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var __values = (this && this.__values) || function(o) {
|
|
13
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
14
|
+
if (m) return m.call(o);
|
|
15
|
+
if (o && typeof o.length === "number") return {
|
|
16
|
+
next: function () {
|
|
17
|
+
if (o && i >= o.length) o = void 0;
|
|
18
|
+
return { value: o && o[i++], done: !o };
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
22
|
+
};
|
|
23
|
+
import { ML_UI_MOBILE_MAX_WIDTH, ML_UI_SESSION_PANEL_MAX_WIDTH, ML_UI_SESSION_PANEL_WIDTH } from '../editor/global/AcEdUiLayout';
|
|
24
|
+
import { AcUiHelpPanel } from './AcUiHelpPanel';
|
|
25
|
+
/** DOM id of the injected stylesheet. */
|
|
26
|
+
var STYLE_ID = 'ml-mobile-cmd-styles';
|
|
27
|
+
/** Zeroed metric texts used when no frozen readout is available. */
|
|
28
|
+
var ZERO_TEXTS = {
|
|
29
|
+
length: '0',
|
|
30
|
+
angle: '0',
|
|
31
|
+
dx: '0',
|
|
32
|
+
dy: '0',
|
|
33
|
+
x: '0',
|
|
34
|
+
y: '0'
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* Shared phone/pad session chrome: bottom panel with title bar (session
|
|
38
|
+
* accessory or prompt + help + collapse), message row (prompt + keyword chips
|
|
39
|
+
* when an accessory owns the title), live metrics or a string field, and ✓/×.
|
|
40
|
+
*
|
|
41
|
+
* Compact (collapsed) mode is a single row:
|
|
42
|
+
* accessory (if any), command message in leftover space, expand, ✓/×.
|
|
43
|
+
* Metrics, string field, and keyword chips stay hidden.
|
|
44
|
+
*/
|
|
45
|
+
var AcUiMobileSessionPanel = /** @class */ (function () {
|
|
46
|
+
function AcUiMobileSessionPanel(options) {
|
|
47
|
+
var _this = this;
|
|
48
|
+
var _a;
|
|
49
|
+
this.helpPanel = null;
|
|
50
|
+
this.callbacks = null;
|
|
51
|
+
this.open = false;
|
|
52
|
+
this.collapsed = false;
|
|
53
|
+
this.showMetrics = false;
|
|
54
|
+
this.showStringInput = false;
|
|
55
|
+
this.hasBasePoint = false;
|
|
56
|
+
this.frozenTexts = null;
|
|
57
|
+
this.frozenHasBasePoint = false;
|
|
58
|
+
this.compactPromptRaf = 0;
|
|
59
|
+
this.host = options.host;
|
|
60
|
+
this.activeClass = (_a = options.activeClass) !== null && _a !== void 0 ? _a : 'ml-mobile-cmd-active';
|
|
61
|
+
this.isPhoneLayout = options.isPhoneLayout;
|
|
62
|
+
this.subscribeLayout = options.subscribeLayout;
|
|
63
|
+
this.helpDocsUrl = options.helpDocsUrl;
|
|
64
|
+
this.helpHostOpt = options.helpHost;
|
|
65
|
+
this.labelsFn = options.labels;
|
|
66
|
+
AcUiMobileSessionPanel.injectCss();
|
|
67
|
+
this.root = document.createElement('div');
|
|
68
|
+
this.root.className = 'ml-mobile-cmd';
|
|
69
|
+
this.root.hidden = true;
|
|
70
|
+
this.root.setAttribute('aria-hidden', 'true');
|
|
71
|
+
this.panel = document.createElement('div');
|
|
72
|
+
this.panel.className = 'ml-mobile-cmd-panel';
|
|
73
|
+
this.metricButtons = {
|
|
74
|
+
length: this.makeMetricButton('length'),
|
|
75
|
+
angle: this.makeMetricButton('angle'),
|
|
76
|
+
dx: this.makeMetricButton('dx'),
|
|
77
|
+
dy: this.makeMetricButton('dy'),
|
|
78
|
+
x: this.makeMetricButton('x'),
|
|
79
|
+
y: this.makeMetricButton('y')
|
|
80
|
+
};
|
|
81
|
+
this.absStack = document.createElement('div');
|
|
82
|
+
this.absStack.className = 'ml-mobile-cmd-metric-stack';
|
|
83
|
+
this.absStack.append(this.metricButtons.x, this.metricButtons.y);
|
|
84
|
+
this.polarStack = document.createElement('div');
|
|
85
|
+
this.polarStack.className = 'ml-mobile-cmd-metric-stack';
|
|
86
|
+
this.polarStack.append(this.metricButtons.length, this.metricButtons.angle);
|
|
87
|
+
this.deltaStack = document.createElement('div');
|
|
88
|
+
this.deltaStack.className = 'ml-mobile-cmd-metric-stack';
|
|
89
|
+
this.deltaStack.append(this.metricButtons.dx, this.metricButtons.dy);
|
|
90
|
+
this.accessoryEl = document.createElement('div');
|
|
91
|
+
this.accessoryEl.className = 'ml-mobile-cmd-accessory';
|
|
92
|
+
this.accessoryEl.hidden = true;
|
|
93
|
+
this.sinkPointer(this.accessoryEl);
|
|
94
|
+
this.accessoryEl.addEventListener('click', function (e) {
|
|
95
|
+
if (!_this.collapsed)
|
|
96
|
+
return;
|
|
97
|
+
var target = e.target;
|
|
98
|
+
if (target === null || target === void 0 ? void 0 : target.closest('button'))
|
|
99
|
+
return;
|
|
100
|
+
_this.setCollapsed(false);
|
|
101
|
+
});
|
|
102
|
+
this.accessoryContentEl = document.createElement('div');
|
|
103
|
+
this.accessoryContentEl.className = 'ml-mobile-cmd-accessory-content';
|
|
104
|
+
this.helpBtn = document.createElement('button');
|
|
105
|
+
this.helpBtn.type = 'button';
|
|
106
|
+
this.helpBtn.className = 'ml-mobile-cmd-help';
|
|
107
|
+
this.helpBtn.innerHTML = helpIcon();
|
|
108
|
+
this.helpBtn.addEventListener('click', function (e) {
|
|
109
|
+
e.preventDefault();
|
|
110
|
+
e.stopPropagation();
|
|
111
|
+
_this.openHelpPanel();
|
|
112
|
+
});
|
|
113
|
+
this.sinkPointer(this.helpBtn);
|
|
114
|
+
this.collapseBtn = document.createElement('button');
|
|
115
|
+
this.collapseBtn.type = 'button';
|
|
116
|
+
this.collapseBtn.className = 'ml-mobile-cmd-collapse';
|
|
117
|
+
this.collapseBtn.innerHTML = collapseIcon();
|
|
118
|
+
this.collapseBtn.addEventListener('click', function (e) {
|
|
119
|
+
e.preventDefault();
|
|
120
|
+
e.stopPropagation();
|
|
121
|
+
_this.setCollapsed(!_this.collapsed);
|
|
122
|
+
});
|
|
123
|
+
this.sinkPointer(this.collapseBtn);
|
|
124
|
+
this.titleActions = document.createElement('div');
|
|
125
|
+
this.titleActions.className = 'ml-mobile-cmd-title-actions';
|
|
126
|
+
this.titleActions.append(this.helpBtn, this.collapseBtn);
|
|
127
|
+
this.accessoryEl.append(this.accessoryContentEl, this.titleActions);
|
|
128
|
+
this.promptEl = document.createElement('div');
|
|
129
|
+
this.promptEl.className = 'ml-mobile-cmd-prompt';
|
|
130
|
+
this.promptEl.setAttribute('role', 'status');
|
|
131
|
+
this.compactActions = document.createElement('div');
|
|
132
|
+
this.compactActions.className = 'ml-mobile-cmd-actions-compact';
|
|
133
|
+
this.promptRow = document.createElement('div');
|
|
134
|
+
this.promptRow.className = 'ml-mobile-cmd-prompt-row';
|
|
135
|
+
this.chipsEl = document.createElement('div');
|
|
136
|
+
this.chipsEl.className = 'ml-mobile-cmd-chips';
|
|
137
|
+
this.promptRow.append(this.promptEl, this.chipsEl);
|
|
138
|
+
this.accessoryObserver = new MutationObserver(function () {
|
|
139
|
+
if (_this.open)
|
|
140
|
+
_this.applyMetricVisibility();
|
|
141
|
+
});
|
|
142
|
+
this.accessoryObserver.observe(this.accessoryContentEl, {
|
|
143
|
+
childList: true
|
|
144
|
+
});
|
|
145
|
+
if (typeof ResizeObserver !== 'undefined') {
|
|
146
|
+
this.compactPromptObserver = new ResizeObserver(function () {
|
|
147
|
+
_this.scheduleCompactPromptVisibility();
|
|
148
|
+
});
|
|
149
|
+
this.compactPromptObserver.observe(this.accessoryEl);
|
|
150
|
+
}
|
|
151
|
+
this.cancelBtn = document.createElement('button');
|
|
152
|
+
this.cancelBtn.type = 'button';
|
|
153
|
+
this.cancelBtn.className = 'ml-mobile-cmd-cancel';
|
|
154
|
+
this.cancelBtn.innerHTML = cancelIcon();
|
|
155
|
+
this.cancelBtn.addEventListener('click', function (e) {
|
|
156
|
+
var _a;
|
|
157
|
+
e.preventDefault();
|
|
158
|
+
e.stopPropagation();
|
|
159
|
+
(_a = _this.callbacks) === null || _a === void 0 ? void 0 : _a.onCancel();
|
|
160
|
+
});
|
|
161
|
+
this.sinkPointer(this.cancelBtn);
|
|
162
|
+
this.confirmBtn = document.createElement('button');
|
|
163
|
+
this.confirmBtn.type = 'button';
|
|
164
|
+
this.confirmBtn.className = 'ml-mobile-cmd-confirm';
|
|
165
|
+
this.confirmBtn.innerHTML = confirmIcon();
|
|
166
|
+
this.confirmBtn.addEventListener('click', function (e) {
|
|
167
|
+
var _a;
|
|
168
|
+
e.preventDefault();
|
|
169
|
+
e.stopPropagation();
|
|
170
|
+
if (_this.confirmBtn.disabled)
|
|
171
|
+
return;
|
|
172
|
+
(_a = _this.callbacks) === null || _a === void 0 ? void 0 : _a.onConfirm();
|
|
173
|
+
});
|
|
174
|
+
this.sinkPointer(this.confirmBtn);
|
|
175
|
+
this.absActions = document.createElement('div');
|
|
176
|
+
this.absActions.className = 'ml-mobile-cmd-actions';
|
|
177
|
+
this.polarActions = document.createElement('div');
|
|
178
|
+
this.polarActions.className = 'ml-mobile-cmd-actions';
|
|
179
|
+
this.deltaActions = document.createElement('div');
|
|
180
|
+
this.deltaActions.className = 'ml-mobile-cmd-actions';
|
|
181
|
+
this.sharedActions = document.createElement('div');
|
|
182
|
+
this.sharedActions.className =
|
|
183
|
+
'ml-mobile-cmd-actions ml-mobile-cmd-actions-shared';
|
|
184
|
+
this.absGroup = document.createElement('div');
|
|
185
|
+
this.absGroup.className = 'ml-mobile-cmd-group ml-mobile-cmd-group-abs';
|
|
186
|
+
this.absGroup.append(this.absStack, this.absActions);
|
|
187
|
+
this.polarGroup = document.createElement('div');
|
|
188
|
+
this.polarGroup.className = 'ml-mobile-cmd-group ml-mobile-cmd-group-polar';
|
|
189
|
+
this.polarGroup.append(this.polarStack, this.polarActions);
|
|
190
|
+
this.deltaGroup = document.createElement('div');
|
|
191
|
+
this.deltaGroup.className = 'ml-mobile-cmd-group ml-mobile-cmd-group-delta';
|
|
192
|
+
this.deltaGroup.append(this.deltaStack, this.deltaActions);
|
|
193
|
+
this.stringInput = document.createElement('textarea');
|
|
194
|
+
this.stringInput.className = 'ml-mobile-cmd-string-input';
|
|
195
|
+
this.stringInput.rows = 1;
|
|
196
|
+
this.stringInput.autocomplete = 'off';
|
|
197
|
+
this.stringInput.spellcheck = false;
|
|
198
|
+
this.stringInput.addEventListener('input', function () {
|
|
199
|
+
_this.syncStringInputHeight();
|
|
200
|
+
});
|
|
201
|
+
this.stringInput.addEventListener('keydown', function (e) {
|
|
202
|
+
var _a, _b;
|
|
203
|
+
// Enter inserts a newline. Ctrl/Cmd+Enter commits (same as ✓).
|
|
204
|
+
if (e.key === 'Enter' && (e.ctrlKey || e.metaKey)) {
|
|
205
|
+
e.preventDefault();
|
|
206
|
+
e.stopPropagation();
|
|
207
|
+
if (_this.confirmBtn.disabled)
|
|
208
|
+
return;
|
|
209
|
+
(_a = _this.callbacks) === null || _a === void 0 ? void 0 : _a.onConfirm();
|
|
210
|
+
}
|
|
211
|
+
else if (e.key === 'Escape') {
|
|
212
|
+
e.preventDefault();
|
|
213
|
+
e.stopPropagation();
|
|
214
|
+
(_b = _this.callbacks) === null || _b === void 0 ? void 0 : _b.onCancel();
|
|
215
|
+
}
|
|
216
|
+
});
|
|
217
|
+
this.sinkPointer(this.stringInput);
|
|
218
|
+
this.stringActions = document.createElement('div');
|
|
219
|
+
this.stringActions.className = 'ml-mobile-cmd-actions';
|
|
220
|
+
this.stringGroup = document.createElement('div');
|
|
221
|
+
this.stringGroup.className = 'ml-mobile-cmd-group ml-mobile-cmd-group-string';
|
|
222
|
+
this.stringGroup.hidden = true;
|
|
223
|
+
this.stringGroup.append(this.stringInput, this.stringActions);
|
|
224
|
+
this.panel.append(this.accessoryEl, this.promptRow, this.absGroup, this.polarGroup, this.deltaGroup, this.stringGroup, this.sharedActions);
|
|
225
|
+
this.root.appendChild(this.panel);
|
|
226
|
+
this.sinkPointer(this.panel);
|
|
227
|
+
this.host.appendChild(this.root);
|
|
228
|
+
this.refreshLabels();
|
|
229
|
+
}
|
|
230
|
+
Object.defineProperty(AcUiMobileSessionPanel.prototype, "isOpen", {
|
|
231
|
+
/** Whether the panel is currently shown. */
|
|
232
|
+
get: function () {
|
|
233
|
+
return this.open;
|
|
234
|
+
},
|
|
235
|
+
enumerable: false,
|
|
236
|
+
configurable: true
|
|
237
|
+
});
|
|
238
|
+
Object.defineProperty(AcUiMobileSessionPanel.prototype, "isCollapsed", {
|
|
239
|
+
/** Whether the panel is in compact (collapsed) mode. */
|
|
240
|
+
get: function () {
|
|
241
|
+
return this.collapsed;
|
|
242
|
+
},
|
|
243
|
+
enumerable: false,
|
|
244
|
+
configurable: true
|
|
245
|
+
});
|
|
246
|
+
Object.defineProperty(AcUiMobileSessionPanel.prototype, "accessoryHost", {
|
|
247
|
+
/** Mount slot for custom session accessories (left of help / collapse). */
|
|
248
|
+
get: function () {
|
|
249
|
+
return this.accessoryContentEl;
|
|
250
|
+
},
|
|
251
|
+
enumerable: false,
|
|
252
|
+
configurable: true
|
|
253
|
+
});
|
|
254
|
+
/**
|
|
255
|
+
* Shows the panel for an input session.
|
|
256
|
+
*
|
|
257
|
+
* @param state - Prompt, keywords, and metric visibility.
|
|
258
|
+
* @param callbacks - Confirm / cancel / keyword handlers.
|
|
259
|
+
*/
|
|
260
|
+
AcUiMobileSessionPanel.prototype.show = function (state, callbacks) {
|
|
261
|
+
var _this = this;
|
|
262
|
+
var _a, _b, _c, _d;
|
|
263
|
+
this.callbacks = callbacks;
|
|
264
|
+
this.open = true;
|
|
265
|
+
this.showStringInput = state.showStringInput === true;
|
|
266
|
+
this.showMetrics = this.showStringInput ? false : state.showMetrics;
|
|
267
|
+
this.root.hidden = false;
|
|
268
|
+
this.root.setAttribute('aria-hidden', 'false');
|
|
269
|
+
this.host.classList.add(this.activeClass);
|
|
270
|
+
this.promptEl.textContent = stripPromptColon(state.prompt);
|
|
271
|
+
// String mode: ✓ commits typed text (always enabled). Point / actions:
|
|
272
|
+
// ✓ is empty-Enter / allowNone.
|
|
273
|
+
this.confirmBtn.disabled = this.showStringInput ? false : !state.allowNone;
|
|
274
|
+
this.stringInput.value = (_a = state.stringValue) !== null && _a !== void 0 ? _a : '';
|
|
275
|
+
this.stringInput.placeholder = (_b = state.stringPlaceholder) !== null && _b !== void 0 ? _b : '';
|
|
276
|
+
this.prepareAccessory();
|
|
277
|
+
this.renderChips(state.keywords);
|
|
278
|
+
if (this.frozenTexts) {
|
|
279
|
+
this.setMetricTexts(this.frozenTexts, this.frozenHasBasePoint);
|
|
280
|
+
}
|
|
281
|
+
else {
|
|
282
|
+
this.setMetricTexts(ZERO_TEXTS, false);
|
|
283
|
+
}
|
|
284
|
+
(_c = this.layoutUnsub) === null || _c === void 0 ? void 0 : _c.call(this);
|
|
285
|
+
this.layoutUnsub = (_d = this.subscribeLayout) === null || _d === void 0 ? void 0 : _d.call(this, function () {
|
|
286
|
+
if (_this.open) {
|
|
287
|
+
_this.applyMetricVisibility();
|
|
288
|
+
if (_this.showStringInput)
|
|
289
|
+
_this.syncStringInputHeight();
|
|
290
|
+
}
|
|
291
|
+
});
|
|
292
|
+
this.applyMetricVisibility();
|
|
293
|
+
this.refreshLabels();
|
|
294
|
+
if (this.showStringInput) {
|
|
295
|
+
this.syncStringInputHeight();
|
|
296
|
+
// Defer so the soft keyboard opens after the panel paints.
|
|
297
|
+
requestAnimationFrame(function () {
|
|
298
|
+
if (_this.open && _this.showStringInput) {
|
|
299
|
+
_this.syncStringInputHeight();
|
|
300
|
+
_this.stringInput.focus();
|
|
301
|
+
}
|
|
302
|
+
});
|
|
303
|
+
}
|
|
304
|
+
};
|
|
305
|
+
/**
|
|
306
|
+
* Updates prompt / keywords / ✓ without tearing down the session.
|
|
307
|
+
*
|
|
308
|
+
* @param partial - Fields to update; omitted fields keep current values.
|
|
309
|
+
*/
|
|
310
|
+
AcUiMobileSessionPanel.prototype.update = function (partial) {
|
|
311
|
+
if (!this.open)
|
|
312
|
+
return;
|
|
313
|
+
if (partial.prompt != null) {
|
|
314
|
+
this.promptEl.textContent = stripPromptColon(partial.prompt);
|
|
315
|
+
if (this.collapsed)
|
|
316
|
+
this.scheduleCompactPromptVisibility();
|
|
317
|
+
}
|
|
318
|
+
if (partial.showStringInput != null) {
|
|
319
|
+
this.showStringInput = partial.showStringInput;
|
|
320
|
+
if (this.showStringInput)
|
|
321
|
+
this.showMetrics = false;
|
|
322
|
+
this.confirmBtn.disabled = this.showStringInput
|
|
323
|
+
? false
|
|
324
|
+
: partial.allowNone != null
|
|
325
|
+
? !partial.allowNone
|
|
326
|
+
: this.confirmBtn.disabled;
|
|
327
|
+
this.applyMetricVisibility();
|
|
328
|
+
}
|
|
329
|
+
if (partial.allowNone != null && !this.showStringInput) {
|
|
330
|
+
this.confirmBtn.disabled = !partial.allowNone;
|
|
331
|
+
}
|
|
332
|
+
if (partial.stringValue != null) {
|
|
333
|
+
this.stringInput.value = partial.stringValue;
|
|
334
|
+
this.syncStringInputHeight();
|
|
335
|
+
}
|
|
336
|
+
if (partial.stringPlaceholder != null) {
|
|
337
|
+
this.stringInput.placeholder = partial.stringPlaceholder;
|
|
338
|
+
}
|
|
339
|
+
if (partial.keywords) {
|
|
340
|
+
this.renderChips(partial.keywords);
|
|
341
|
+
this.applyMetricVisibility();
|
|
342
|
+
}
|
|
343
|
+
if (partial.showMetrics != null && !this.showStringInput) {
|
|
344
|
+
this.showMetrics = partial.showMetrics;
|
|
345
|
+
this.applyMetricVisibility();
|
|
346
|
+
}
|
|
347
|
+
};
|
|
348
|
+
/** Current value of the session string field (empty when not in string mode). */
|
|
349
|
+
AcUiMobileSessionPanel.prototype.getStringValue = function () {
|
|
350
|
+
return this.stringInput.value;
|
|
351
|
+
};
|
|
352
|
+
/** Focuses the session string field when string input mode is active. */
|
|
353
|
+
AcUiMobileSessionPanel.prototype.focusStringInput = function () {
|
|
354
|
+
if (!this.open || !this.showStringInput)
|
|
355
|
+
return;
|
|
356
|
+
this.stringInput.focus();
|
|
357
|
+
};
|
|
358
|
+
/**
|
|
359
|
+
* Sizes the string field from 1 to 3 lines of content. Taller content
|
|
360
|
+
* scrolls inside a 3-line viewport so the right-hand actions/divider stay
|
|
361
|
+
* matched to the visible field height.
|
|
362
|
+
*/
|
|
363
|
+
AcUiMobileSessionPanel.prototype.syncStringInputHeight = function () {
|
|
364
|
+
if (!this.open || !this.showStringInput)
|
|
365
|
+
return;
|
|
366
|
+
var el = this.stringInput;
|
|
367
|
+
var style = getComputedStyle(el);
|
|
368
|
+
var fontSize = parseFloat(style.fontSize) || 14;
|
|
369
|
+
var lineHeight = parseFloat(style.lineHeight) || fontSize * 1.35;
|
|
370
|
+
var padY = (parseFloat(style.paddingTop) || 0) +
|
|
371
|
+
(parseFloat(style.paddingBottom) || 0);
|
|
372
|
+
var borderY = (parseFloat(style.borderTopWidth) || 0) +
|
|
373
|
+
(parseFloat(style.borderBottomWidth) || 0);
|
|
374
|
+
var minH = lineHeight + padY + borderY;
|
|
375
|
+
var maxH = lineHeight * 3 + padY + borderY;
|
|
376
|
+
// Collapse first so scrollHeight reflects the current value.
|
|
377
|
+
el.style.height = "".concat(minH, "px");
|
|
378
|
+
el.style.overflowY = 'hidden';
|
|
379
|
+
var contentH = el.scrollHeight;
|
|
380
|
+
var next = Math.min(Math.max(contentH, minH), maxH);
|
|
381
|
+
el.style.height = "".concat(next, "px");
|
|
382
|
+
el.style.overflowY = contentH > maxH + 0.5 ? 'auto' : 'hidden';
|
|
383
|
+
};
|
|
384
|
+
/**
|
|
385
|
+
* Pushes live metric values (read-only; buttons stay disabled for keypad hook).
|
|
386
|
+
*
|
|
387
|
+
* @param hasBasePoint - Whether relative metrics apply.
|
|
388
|
+
* @param texts - Formatted strings for display.
|
|
389
|
+
*/
|
|
390
|
+
AcUiMobileSessionPanel.prototype.setMetrics = function (hasBasePoint, texts) {
|
|
391
|
+
if (!this.open)
|
|
392
|
+
return;
|
|
393
|
+
this.hasBasePoint = hasBasePoint;
|
|
394
|
+
this.frozenTexts = __assign({}, texts);
|
|
395
|
+
this.frozenHasBasePoint = hasBasePoint;
|
|
396
|
+
this.setMetricTexts(texts, hasBasePoint);
|
|
397
|
+
this.applyMetricVisibility();
|
|
398
|
+
};
|
|
399
|
+
/** Expands or collapses the panel into compact mode. */
|
|
400
|
+
AcUiMobileSessionPanel.prototype.setCollapsed = function (collapsed) {
|
|
401
|
+
if (this.collapsed === collapsed)
|
|
402
|
+
return;
|
|
403
|
+
this.collapsed = collapsed;
|
|
404
|
+
this.panel.classList.toggle('is-collapsed', collapsed);
|
|
405
|
+
this.collapseBtn.innerHTML = collapsed ? expandIcon() : collapseIcon();
|
|
406
|
+
this.refreshCollapseLabel();
|
|
407
|
+
if (this.open)
|
|
408
|
+
this.applyMetricVisibility();
|
|
409
|
+
};
|
|
410
|
+
/** Shows the accessory / title row (custom content slot + help + collapse). */
|
|
411
|
+
AcUiMobileSessionPanel.prototype.prepareAccessory = function () {
|
|
412
|
+
this.accessoryEl.hidden = false;
|
|
413
|
+
// Remounts can restore widgets after `show()` already ran placement against
|
|
414
|
+
// an empty slot — re-sync so the prompt stays on the message row.
|
|
415
|
+
if (this.open)
|
|
416
|
+
this.applyMetricVisibility();
|
|
417
|
+
};
|
|
418
|
+
/** Clears custom accessory content; help / collapse stay while open. */
|
|
419
|
+
AcUiMobileSessionPanel.prototype.clearAccessory = function () {
|
|
420
|
+
this.accessoryContentEl.replaceChildren();
|
|
421
|
+
if (this.open)
|
|
422
|
+
this.applyMetricVisibility();
|
|
423
|
+
};
|
|
424
|
+
/**
|
|
425
|
+
* Hides the panel without clearing accessory widgets.
|
|
426
|
+
*
|
|
427
|
+
* Draw-style (and other) session accessories outlive individual prompts —
|
|
428
|
+
* `endMobilePrompt` / `beginMobilePrompt` pairs between picks must not wipe
|
|
429
|
+
* them. Ownership stays with the accessory mount lifecycle
|
|
430
|
+
* ({@link clearAccessory} via the session-accessory controller).
|
|
431
|
+
*/
|
|
432
|
+
AcUiMobileSessionPanel.prototype.hide = function () {
|
|
433
|
+
var _a;
|
|
434
|
+
this.open = false;
|
|
435
|
+
this.callbacks = null;
|
|
436
|
+
this.showStringInput = false;
|
|
437
|
+
this.stringInput.value = '';
|
|
438
|
+
this.stringInput.placeholder = '';
|
|
439
|
+
this.stringInput.style.height = '';
|
|
440
|
+
this.stringInput.style.overflowY = '';
|
|
441
|
+
this.accessoryEl.hidden = true;
|
|
442
|
+
if (this.compactPromptRaf) {
|
|
443
|
+
cancelAnimationFrame(this.compactPromptRaf);
|
|
444
|
+
this.compactPromptRaf = 0;
|
|
445
|
+
}
|
|
446
|
+
this.setCollapsed(false);
|
|
447
|
+
(_a = this.layoutUnsub) === null || _a === void 0 ? void 0 : _a.call(this);
|
|
448
|
+
this.layoutUnsub = undefined;
|
|
449
|
+
this.root.hidden = true;
|
|
450
|
+
this.root.setAttribute('aria-hidden', 'true');
|
|
451
|
+
this.host.classList.remove(this.activeClass);
|
|
452
|
+
};
|
|
453
|
+
/** Re-applies metric / action aria labels from {@link labels}. */
|
|
454
|
+
AcUiMobileSessionPanel.prototype.refreshLabels = function () {
|
|
455
|
+
var _a;
|
|
456
|
+
var t = this.labelsFn();
|
|
457
|
+
this.metricButtons.length.querySelector('.ml-mobile-cmd-metric-label').textContent = t.length;
|
|
458
|
+
this.metricButtons.angle.querySelector('.ml-mobile-cmd-metric-label').textContent = t.angle;
|
|
459
|
+
this.metricButtons.dx.querySelector('.ml-mobile-cmd-metric-label').textContent = t.dx;
|
|
460
|
+
this.metricButtons.dy.querySelector('.ml-mobile-cmd-metric-label').textContent = t.dy;
|
|
461
|
+
this.metricButtons.x.querySelector('.ml-mobile-cmd-metric-label').textContent = t.x;
|
|
462
|
+
this.metricButtons.y.querySelector('.ml-mobile-cmd-metric-label').textContent = t.y;
|
|
463
|
+
this.confirmBtn.setAttribute('aria-label', t.confirm);
|
|
464
|
+
this.cancelBtn.setAttribute('aria-label', t.cancel);
|
|
465
|
+
this.helpBtn.setAttribute('aria-label', t.help);
|
|
466
|
+
this.refreshCollapseLabel();
|
|
467
|
+
(_a = this.helpPanel) === null || _a === void 0 ? void 0 : _a.setLabels({ title: t.help, back: t.back });
|
|
468
|
+
};
|
|
469
|
+
/** Removes DOM. */
|
|
470
|
+
AcUiMobileSessionPanel.prototype.dispose = function () {
|
|
471
|
+
var _a, _b, _c;
|
|
472
|
+
this.hide();
|
|
473
|
+
if (this.compactPromptRaf) {
|
|
474
|
+
cancelAnimationFrame(this.compactPromptRaf);
|
|
475
|
+
this.compactPromptRaf = 0;
|
|
476
|
+
}
|
|
477
|
+
(_a = this.compactPromptObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
|
478
|
+
this.compactPromptObserver = undefined;
|
|
479
|
+
(_b = this.accessoryObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
480
|
+
this.accessoryObserver = undefined;
|
|
481
|
+
(_c = this.helpPanel) === null || _c === void 0 ? void 0 : _c.dispose();
|
|
482
|
+
this.helpPanel = null;
|
|
483
|
+
this.root.remove();
|
|
484
|
+
};
|
|
485
|
+
/** True when custom session widgets are mounted in the accessory slot. */
|
|
486
|
+
AcUiMobileSessionPanel.prototype.hasAccessoryWidgets = function () {
|
|
487
|
+
return this.accessoryContentEl.childElementCount > 0;
|
|
488
|
+
};
|
|
489
|
+
/**
|
|
490
|
+
* Places the command prompt vs session accessory on the title row.
|
|
491
|
+
*
|
|
492
|
+
* Expanded:
|
|
493
|
+
* - No accessory widgets → title shows the prompt; chips stay on the message
|
|
494
|
+
* row (second row) when present.
|
|
495
|
+
* - With accessory widgets → title always shows the accessory; the message
|
|
496
|
+
* row shows the prompt and keyword chips together.
|
|
497
|
+
*
|
|
498
|
+
* Compact mode keeps a single row:
|
|
499
|
+
* `[accessory?] [prompt (remaining space)] [expand] [✓ ×]`.
|
|
500
|
+
* Keyword chips never appear. The prompt uses leftover space only (ellipsis
|
|
501
|
+
* on overflow) and is hidden when less than one third of the text fits.
|
|
502
|
+
*/
|
|
503
|
+
AcUiMobileSessionPanel.prototype.syncPromptPlacement = function (collapsed) {
|
|
504
|
+
var hasWidgets = this.hasAccessoryWidgets();
|
|
505
|
+
var promptInTitle = !hasWidgets;
|
|
506
|
+
var hasChips = this.chipsEl.childElementCount > 0;
|
|
507
|
+
this.panel.classList.toggle('is-prompt-in-title', promptInTitle);
|
|
508
|
+
this.helpBtn.hidden = collapsed;
|
|
509
|
+
this.accessoryEl.hidden = false;
|
|
510
|
+
this.accessoryEl.appendChild(this.titleActions);
|
|
511
|
+
this.chipsEl.hidden = collapsed || !hasChips;
|
|
512
|
+
this.promptRow.classList.remove('is-in-title');
|
|
513
|
+
if (collapsed) {
|
|
514
|
+
// Compact: prompt sits after accessory content, before expand / actions.
|
|
515
|
+
this.promptEl.hidden = false;
|
|
516
|
+
this.accessoryEl.insertBefore(this.promptEl, this.titleActions);
|
|
517
|
+
this.promptRow.appendChild(this.chipsEl);
|
|
518
|
+
if (this.promptRow.parentElement === this.accessoryEl) {
|
|
519
|
+
this.panel.insertBefore(this.promptRow, this.absGroup);
|
|
520
|
+
}
|
|
521
|
+
this.promptRow.hidden = true;
|
|
522
|
+
this.accessoryEl.appendChild(this.compactActions);
|
|
523
|
+
this.compactActions.append(this.cancelBtn, this.confirmBtn);
|
|
524
|
+
this.scheduleCompactPromptVisibility();
|
|
525
|
+
return;
|
|
526
|
+
}
|
|
527
|
+
this.promptEl.hidden = false;
|
|
528
|
+
this.compactActions.replaceChildren();
|
|
529
|
+
if (this.compactActions.parentElement === this.accessoryEl) {
|
|
530
|
+
this.compactActions.remove();
|
|
531
|
+
}
|
|
532
|
+
this.panel.classList.remove('is-compact-prompt-hidden');
|
|
533
|
+
// Message row always sits below the title bar as a panel child.
|
|
534
|
+
if (this.promptRow.parentElement === this.accessoryEl) {
|
|
535
|
+
this.panel.insertBefore(this.promptRow, this.absGroup);
|
|
536
|
+
}
|
|
537
|
+
if (promptInTitle) {
|
|
538
|
+
// Title: prompt + help/collapse. Chips (if any) stay on the message row.
|
|
539
|
+
this.accessoryEl.insertBefore(this.promptEl, this.titleActions);
|
|
540
|
+
this.promptRow.appendChild(this.chipsEl);
|
|
541
|
+
this.promptRow.hidden = !hasChips;
|
|
542
|
+
}
|
|
543
|
+
else {
|
|
544
|
+
// Title: accessory widgets + help/collapse. Message row: prompt + chips.
|
|
545
|
+
this.promptRow.append(this.promptEl, this.chipsEl);
|
|
546
|
+
this.promptRow.hidden = false;
|
|
547
|
+
}
|
|
548
|
+
};
|
|
549
|
+
/** Defers compact prompt show/hide until after flex layout settles. */
|
|
550
|
+
AcUiMobileSessionPanel.prototype.scheduleCompactPromptVisibility = function () {
|
|
551
|
+
var _this = this;
|
|
552
|
+
if (!this.collapsed || !this.open)
|
|
553
|
+
return;
|
|
554
|
+
if (this.compactPromptRaf)
|
|
555
|
+
cancelAnimationFrame(this.compactPromptRaf);
|
|
556
|
+
this.compactPromptRaf = requestAnimationFrame(function () {
|
|
557
|
+
_this.compactPromptRaf = 0;
|
|
558
|
+
_this.syncCompactPromptVisibility();
|
|
559
|
+
});
|
|
560
|
+
};
|
|
561
|
+
/**
|
|
562
|
+
* In compact mode the prompt only uses leftover width after accessory,
|
|
563
|
+
* expand, and ✓/×. Hide it when that width is under one third of the full
|
|
564
|
+
* message text width (partial text uses CSS ellipsis). When hidden, the
|
|
565
|
+
* accessory stays left-aligned and expand / ✓/× stay right-aligned.
|
|
566
|
+
*
|
|
567
|
+
* Avoids temporarily unhiding the prompt to measure — that would thrash
|
|
568
|
+
* layout and re-enter via {@link ResizeObserver} every frame.
|
|
569
|
+
*/
|
|
570
|
+
AcUiMobileSessionPanel.prototype.syncCompactPromptVisibility = function () {
|
|
571
|
+
var _a, _b;
|
|
572
|
+
if (!this.collapsed || !this.open) {
|
|
573
|
+
this.panel.classList.remove('is-compact-prompt-hidden');
|
|
574
|
+
return;
|
|
575
|
+
}
|
|
576
|
+
var text = (_b = (_a = this.promptEl.textContent) === null || _a === void 0 ? void 0 : _a.trim()) !== null && _b !== void 0 ? _b : '';
|
|
577
|
+
if (!text) {
|
|
578
|
+
this.applyCompactPromptHidden(true);
|
|
579
|
+
return;
|
|
580
|
+
}
|
|
581
|
+
var fullWidth = this.measurePromptTextWidth();
|
|
582
|
+
if (fullWidth <= 0) {
|
|
583
|
+
this.applyCompactPromptHidden(false);
|
|
584
|
+
return;
|
|
585
|
+
}
|
|
586
|
+
var available = this.measureCompactPromptAvailableWidth();
|
|
587
|
+
this.applyCompactPromptHidden(available < fullWidth / 3);
|
|
588
|
+
};
|
|
589
|
+
/** Applies compact prompt visibility only when the decision changes. */
|
|
590
|
+
AcUiMobileSessionPanel.prototype.applyCompactPromptHidden = function (hide) {
|
|
591
|
+
if (this.promptEl.hidden === hide &&
|
|
592
|
+
this.panel.classList.contains('is-compact-prompt-hidden') === hide) {
|
|
593
|
+
return;
|
|
594
|
+
}
|
|
595
|
+
this.promptEl.hidden = hide;
|
|
596
|
+
this.panel.classList.toggle('is-compact-prompt-hidden', hide);
|
|
597
|
+
};
|
|
598
|
+
/**
|
|
599
|
+
* Leftover width for the compact prompt. Uses the live flex slot when the
|
|
600
|
+
* prompt is visible; otherwise infers space from the row minus siblings so
|
|
601
|
+
* we never flash the prompt back on just to measure.
|
|
602
|
+
*/
|
|
603
|
+
AcUiMobileSessionPanel.prototype.measureCompactPromptAvailableWidth = function () {
|
|
604
|
+
var e_1, _a;
|
|
605
|
+
var _this = this;
|
|
606
|
+
if (!this.promptEl.hidden) {
|
|
607
|
+
return this.promptEl.clientWidth;
|
|
608
|
+
}
|
|
609
|
+
var rowWidth = this.accessoryEl.clientWidth;
|
|
610
|
+
var rowStyle = getComputedStyle(this.accessoryEl);
|
|
611
|
+
var gap = parseFloat(rowStyle.columnGap || rowStyle.gap || '0') || 0;
|
|
612
|
+
var siblings = Array.from(this.accessoryEl.children).filter(function (el) { return el !== _this.promptEl && !el.hidden; });
|
|
613
|
+
var used = 0;
|
|
614
|
+
try {
|
|
615
|
+
for (var siblings_1 = __values(siblings), siblings_1_1 = siblings_1.next(); !siblings_1_1.done; siblings_1_1 = siblings_1.next()) {
|
|
616
|
+
var el = siblings_1_1.value;
|
|
617
|
+
used += el.getBoundingClientRect().width;
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
621
|
+
finally {
|
|
622
|
+
try {
|
|
623
|
+
if (siblings_1_1 && !siblings_1_1.done && (_a = siblings_1.return)) _a.call(siblings_1);
|
|
624
|
+
}
|
|
625
|
+
finally { if (e_1) throw e_1.error; }
|
|
626
|
+
}
|
|
627
|
+
// Showing the prompt inserts one more flex item → one extra gap.
|
|
628
|
+
return Math.max(0, rowWidth - used - gap * siblings.length);
|
|
629
|
+
};
|
|
630
|
+
/** Intrinsic single-line width of the current prompt text. */
|
|
631
|
+
AcUiMobileSessionPanel.prototype.measurePromptTextWidth = function () {
|
|
632
|
+
var probe = document.createElement('span');
|
|
633
|
+
var style = getComputedStyle(this.promptEl);
|
|
634
|
+
probe.textContent = this.promptEl.textContent;
|
|
635
|
+
// Prefer longhand font props — `font` shorthand is empty in some engines.
|
|
636
|
+
var font = style.font ||
|
|
637
|
+
"".concat(style.fontWeight, " ").concat(style.fontSize, " ").concat(style.fontFamily).trim();
|
|
638
|
+
probe.style.cssText = [
|
|
639
|
+
'position:absolute',
|
|
640
|
+
'visibility:hidden',
|
|
641
|
+
'pointer-events:none',
|
|
642
|
+
'white-space:nowrap',
|
|
643
|
+
"font:".concat(font),
|
|
644
|
+
"letter-spacing:".concat(style.letterSpacing),
|
|
645
|
+
"text-transform:".concat(style.textTransform)
|
|
646
|
+
].join(';');
|
|
647
|
+
document.body.appendChild(probe);
|
|
648
|
+
var width = probe.getBoundingClientRect().width;
|
|
649
|
+
probe.remove();
|
|
650
|
+
return width;
|
|
651
|
+
};
|
|
652
|
+
AcUiMobileSessionPanel.prototype.refreshCollapseLabel = function () {
|
|
653
|
+
var t = this.labelsFn();
|
|
654
|
+
this.collapseBtn.setAttribute('aria-label', this.collapsed ? t.expand : t.collapse);
|
|
655
|
+
this.collapseBtn.setAttribute('aria-expanded', String(!this.collapsed));
|
|
656
|
+
};
|
|
657
|
+
AcUiMobileSessionPanel.prototype.makeMetricButton = function (id) {
|
|
658
|
+
var btn = document.createElement('button');
|
|
659
|
+
btn.type = 'button';
|
|
660
|
+
btn.className = 'ml-mobile-cmd-metric';
|
|
661
|
+
btn.dataset.metric = id;
|
|
662
|
+
btn.disabled = true;
|
|
663
|
+
var label = document.createElement('span');
|
|
664
|
+
label.className = 'ml-mobile-cmd-metric-label';
|
|
665
|
+
var value = document.createElement('span');
|
|
666
|
+
value.className = 'ml-mobile-cmd-metric-value';
|
|
667
|
+
value.textContent = '0';
|
|
668
|
+
btn.append(label, value);
|
|
669
|
+
return btn;
|
|
670
|
+
};
|
|
671
|
+
AcUiMobileSessionPanel.prototype.setMetricTexts = function (texts, hasBasePoint) {
|
|
672
|
+
this.metricButtons.length.querySelector('.ml-mobile-cmd-metric-value').textContent = texts.length;
|
|
673
|
+
this.metricButtons.angle.querySelector('.ml-mobile-cmd-metric-value').textContent = texts.angle;
|
|
674
|
+
this.metricButtons.dx.querySelector('.ml-mobile-cmd-metric-value').textContent = texts.dx;
|
|
675
|
+
this.metricButtons.dy.querySelector('.ml-mobile-cmd-metric-value').textContent = texts.dy;
|
|
676
|
+
this.metricButtons.x.querySelector('.ml-mobile-cmd-metric-value').textContent = texts.x;
|
|
677
|
+
this.metricButtons.y.querySelector('.ml-mobile-cmd-metric-value').textContent = texts.y;
|
|
678
|
+
this.hasBasePoint = hasBasePoint;
|
|
679
|
+
};
|
|
680
|
+
AcUiMobileSessionPanel.prototype.applyMetricVisibility = function () {
|
|
681
|
+
var stringMode = this.showStringInput;
|
|
682
|
+
var relative = !stringMode && this.showMetrics && this.hasBasePoint;
|
|
683
|
+
var absolute = !stringMode && this.showMetrics && !this.hasBasePoint;
|
|
684
|
+
var phone = this.isPhoneLayout();
|
|
685
|
+
var collapsed = this.collapsed;
|
|
686
|
+
this.metricButtons.length.hidden = !relative;
|
|
687
|
+
this.metricButtons.angle.hidden = !relative;
|
|
688
|
+
this.metricButtons.dx.hidden = !relative;
|
|
689
|
+
this.metricButtons.dy.hidden = !relative;
|
|
690
|
+
this.metricButtons.x.hidden = !absolute;
|
|
691
|
+
this.metricButtons.y.hidden = !absolute;
|
|
692
|
+
this.panel.classList.toggle('is-relative', relative && !collapsed);
|
|
693
|
+
this.panel.classList.toggle('is-absolute', absolute && !collapsed);
|
|
694
|
+
this.panel.classList.toggle('is-string-input', stringMode && !collapsed);
|
|
695
|
+
this.panel.classList.toggle('is-actions-only', !collapsed && !relative && !absolute && !stringMode);
|
|
696
|
+
this.panel.classList.toggle('is-collapsed', collapsed);
|
|
697
|
+
this.polarGroup.hidden = collapsed || !relative;
|
|
698
|
+
this.deltaGroup.hidden = collapsed || !relative;
|
|
699
|
+
this.absStack.hidden = !absolute;
|
|
700
|
+
this.absGroup.hidden = collapsed
|
|
701
|
+
? true
|
|
702
|
+
: stringMode
|
|
703
|
+
? true
|
|
704
|
+
: phone
|
|
705
|
+
? relative
|
|
706
|
+
: !absolute;
|
|
707
|
+
this.stringGroup.hidden = collapsed || !stringMode;
|
|
708
|
+
this.chipsEl.hidden = collapsed || this.chipsEl.childElementCount === 0;
|
|
709
|
+
this.syncPromptPlacement(collapsed);
|
|
710
|
+
if (collapsed) {
|
|
711
|
+
// Actions already placed by syncPromptPlacement.
|
|
712
|
+
}
|
|
713
|
+
else if (stringMode) {
|
|
714
|
+
if (phone) {
|
|
715
|
+
this.stringActions.append(this.cancelBtn, this.confirmBtn);
|
|
716
|
+
}
|
|
717
|
+
else {
|
|
718
|
+
this.sharedActions.append(this.cancelBtn, this.confirmBtn);
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
else if (phone && relative) {
|
|
722
|
+
this.polarActions.appendChild(this.cancelBtn);
|
|
723
|
+
this.deltaActions.appendChild(this.confirmBtn);
|
|
724
|
+
}
|
|
725
|
+
else if (phone) {
|
|
726
|
+
this.absActions.append(this.cancelBtn, this.confirmBtn);
|
|
727
|
+
}
|
|
728
|
+
else {
|
|
729
|
+
this.sharedActions.append(this.cancelBtn, this.confirmBtn);
|
|
730
|
+
}
|
|
731
|
+
};
|
|
732
|
+
AcUiMobileSessionPanel.prototype.renderChips = function (keywords) {
|
|
733
|
+
var e_2, _a;
|
|
734
|
+
var _this = this;
|
|
735
|
+
this.chipsEl.replaceChildren();
|
|
736
|
+
this.chipsEl.hidden = this.collapsed || keywords.length === 0;
|
|
737
|
+
var _loop_1 = function (kw) {
|
|
738
|
+
var chip = document.createElement('button');
|
|
739
|
+
chip.type = 'button';
|
|
740
|
+
chip.className = 'ml-mobile-cmd-chip';
|
|
741
|
+
chip.textContent = kw.displayName;
|
|
742
|
+
chip.disabled = !kw.enabled;
|
|
743
|
+
chip.addEventListener('click', function (e) {
|
|
744
|
+
var _a;
|
|
745
|
+
e.preventDefault();
|
|
746
|
+
e.stopPropagation();
|
|
747
|
+
if (!kw.enabled)
|
|
748
|
+
return;
|
|
749
|
+
(_a = _this.callbacks) === null || _a === void 0 ? void 0 : _a.onKeyword(kw.id);
|
|
750
|
+
});
|
|
751
|
+
this_1.sinkPointer(chip);
|
|
752
|
+
this_1.chipsEl.appendChild(chip);
|
|
753
|
+
};
|
|
754
|
+
var this_1 = this;
|
|
755
|
+
try {
|
|
756
|
+
for (var keywords_1 = __values(keywords), keywords_1_1 = keywords_1.next(); !keywords_1_1.done; keywords_1_1 = keywords_1.next()) {
|
|
757
|
+
var kw = keywords_1_1.value;
|
|
758
|
+
_loop_1(kw);
|
|
759
|
+
}
|
|
760
|
+
}
|
|
761
|
+
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
762
|
+
finally {
|
|
763
|
+
try {
|
|
764
|
+
if (keywords_1_1 && !keywords_1_1.done && (_a = keywords_1.return)) _a.call(keywords_1);
|
|
765
|
+
}
|
|
766
|
+
finally { if (e_2) throw e_2.error; }
|
|
767
|
+
}
|
|
768
|
+
};
|
|
769
|
+
AcUiMobileSessionPanel.prototype.openHelpPanel = function () {
|
|
770
|
+
if (!this.helpPanel) {
|
|
771
|
+
var host = typeof this.helpHostOpt === 'function'
|
|
772
|
+
? this.helpHostOpt()
|
|
773
|
+
: this.helpHostOpt;
|
|
774
|
+
this.helpPanel = new AcUiHelpPanel(host ? { host: host } : undefined);
|
|
775
|
+
}
|
|
776
|
+
var t = this.labelsFn();
|
|
777
|
+
this.helpPanel.showDocs({
|
|
778
|
+
url: this.helpDocsUrl(),
|
|
779
|
+
labels: { title: t.help, back: t.back }
|
|
780
|
+
});
|
|
781
|
+
};
|
|
782
|
+
AcUiMobileSessionPanel.prototype.sinkPointer = function (el) {
|
|
783
|
+
el.addEventListener('pointerdown', function (e) {
|
|
784
|
+
e.stopPropagation();
|
|
785
|
+
});
|
|
786
|
+
};
|
|
787
|
+
AcUiMobileSessionPanel.injectCss = function () {
|
|
788
|
+
if (typeof document === 'undefined')
|
|
789
|
+
return;
|
|
790
|
+
var style = document.getElementById(STYLE_ID);
|
|
791
|
+
if (!style) {
|
|
792
|
+
style = document.createElement('style');
|
|
793
|
+
style.id = STYLE_ID;
|
|
794
|
+
document.head.appendChild(style);
|
|
795
|
+
}
|
|
796
|
+
style.textContent = MOBILE_CMD_CSS;
|
|
797
|
+
};
|
|
798
|
+
return AcUiMobileSessionPanel;
|
|
799
|
+
}());
|
|
800
|
+
export { AcUiMobileSessionPanel };
|
|
801
|
+
/** Strips a trailing colon from prompt text. */
|
|
802
|
+
function stripPromptColon(message) {
|
|
803
|
+
return message.trim().replace(/[::]\s*$/, '');
|
|
804
|
+
}
|
|
805
|
+
function helpIcon() {
|
|
806
|
+
return '<svg viewBox="0 0 24 24" width="18" height="18" aria-hidden="true"><path fill="currentColor" d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20zm0 15.2a1.2 1.2 0 1 1 0-2.4 1.2 1.2 0 0 1 0 2.4zm1.6-5.35c-.62.36-1 .9-1 1.55h-1.5c0-1.18.6-2.05 1.45-2.55.62-.36.95-.7.95-1.25 0-.7-.55-1.2-1.4-1.2-.9 0-1.45.5-1.55 1.3H8.9C9.1 7.95 10.35 7 12.1 7c1.85 0 3.15 1.05 3.15 2.55 0 .95-.5 1.7-1.65 2.3z"/></svg>';
|
|
807
|
+
}
|
|
808
|
+
function collapseIcon() {
|
|
809
|
+
return '<svg viewBox="0 0 24 24" width="18" height="18" aria-hidden="true"><path fill="currentColor" d="M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"/></svg>';
|
|
810
|
+
}
|
|
811
|
+
function expandIcon() {
|
|
812
|
+
return '<svg viewBox="0 0 24 24" width="18" height="18" aria-hidden="true"><path fill="currentColor" d="M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"/></svg>';
|
|
813
|
+
}
|
|
814
|
+
function cancelIcon() {
|
|
815
|
+
return '<svg viewBox="0 0 24 24" width="18" height="18" aria-hidden="true"><path fill="currentColor" d="M18.3 5.71a1 1 0 0 0-1.41 0L12 10.59 7.11 5.7a1 1 0 0 0-1.41 1.42L10.59 12l-4.9 4.89a1 1 0 1 0 1.42 1.42L12 13.41l4.89 4.9a1 1 0 0 0 1.42-1.42L13.41 12l4.9-4.89a1 1 0 0 0-.01-1.4z"/></svg>';
|
|
816
|
+
}
|
|
817
|
+
function confirmIcon() {
|
|
818
|
+
return '<svg viewBox="0 0 24 24" width="18" height="18" aria-hidden="true"><path fill="currentColor" d="M9.55 18.2 3.8 12.45l1.4-1.4 4.35 4.36 9.25-9.26 1.4 1.41z"/></svg>';
|
|
819
|
+
}
|
|
820
|
+
/** CSS for the shared mobile session panel. */
|
|
821
|
+
var MOBILE_CMD_CSS = "\n .ml-mobile-cmd {\n pointer-events: none;\n }\n .ml-mobile-cmd-panel {\n pointer-events: auto;\n position: fixed;\n left: 0;\n right: 0;\n bottom: 0;\n z-index: 40;\n display: flex;\n flex-direction: column;\n gap: 8px;\n padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));\n background: var(--ml-ui-bg, rgba(28, 30, 34, 0.96));\n color: var(--ml-ui-text, #e8eaed);\n border-top: 1px solid var(--ml-ui-border, rgba(255, 255, 255, 0.12));\n box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);\n box-sizing: border-box;\n }\n .ml-mobile-cmd-panel.is-collapsed {\n height: calc(\n var(--ml-mobile-cmd-collapsed-height, 56px) + env(safe-area-inset-bottom, 0px)\n );\n min-height: calc(\n var(--ml-mobile-cmd-collapsed-height, 56px) + env(safe-area-inset-bottom, 0px)\n );\n padding: 0 12px env(safe-area-inset-bottom, 0px);\n gap: 0;\n justify-content: center;\n }\n .ml-mobile-cmd-panel.is-collapsed .ml-mobile-cmd-accessory {\n padding-bottom: 0;\n border-bottom: 0;\n flex: 1;\n min-width: 0;\n flex-wrap: nowrap;\n }\n /* Accessory keeps intrinsic width; prompt may not steal space from it. */\n .ml-mobile-cmd-panel.is-collapsed .ml-mobile-cmd-accessory-content {\n flex: 0 0 auto;\n min-width: 0;\n }\n .ml-mobile-cmd-prompt-row {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 8px;\n min-width: 0;\n }\n .ml-mobile-cmd-prompt-row[hidden] {\n display: none;\n }\n .ml-mobile-cmd-prompt-row:not([hidden]) {\n box-sizing: border-box;\n min-height: 32px;\n padding-top: 4px;\n padding-bottom: 4px;\n border-bottom: 1px solid var(--ml-ui-border, rgba(255, 255, 255, 0.12));\n }\n .ml-mobile-cmd-prompt {\n flex: 1 1 10em;\n min-width: min(100%, 8em);\n box-sizing: border-box;\n padding: 0;\n border: 0;\n border-radius: 0;\n background: transparent;\n color: var(--ml-ui-text, #e8eaed);\n font-size: 12px;\n font-weight: 500;\n line-height: 1.4;\n white-space: normal;\n overflow-wrap: anywhere;\n word-break: break-word;\n }\n .ml-mobile-cmd-accessory > .ml-mobile-cmd-prompt {\n flex: 1 1 auto;\n min-width: 0;\n }\n /* Compact: fill leftover space only; ellipsis when truncated. */\n .ml-mobile-cmd-panel.is-collapsed .ml-mobile-cmd-prompt {\n flex: 1 1 0;\n min-width: 0;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n overflow-wrap: normal;\n word-break: normal;\n }\n .ml-mobile-cmd-panel.is-collapsed .ml-mobile-cmd-prompt[hidden] {\n display: none;\n }\n .ml-mobile-cmd-panel.is-collapsed .ml-mobile-cmd-chips {\n display: none !important;\n }\n .ml-mobile-cmd-actions-compact {\n display: none;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n gap: 8px;\n flex: 0 0 auto;\n margin-left: 8px;\n padding-left: 0;\n border-left: 0;\n }\n .ml-mobile-cmd-panel.is-collapsed .ml-mobile-cmd-actions-compact {\n display: flex;\n }\n .ml-mobile-cmd-panel.is-collapsed .ml-mobile-cmd-help[hidden] {\n display: none;\n }\n .ml-mobile-cmd-panel.is-collapsed .ml-mobile-cmd-title-actions {\n margin-left: 0;\n flex: 0 0 auto;\n }\n /* No prompt: accessory left, expand + \u2713/\u00D7 right. */\n .ml-mobile-cmd-panel.is-collapsed.is-compact-prompt-hidden .ml-mobile-cmd-title-actions {\n margin-left: auto;\n }\n .ml-mobile-cmd-group {\n display: flex;\n align-items: stretch;\n gap: 8px;\n min-width: 0;\n }\n .ml-mobile-cmd-group[hidden] {\n display: none;\n }\n .ml-mobile-cmd-string-input {\n flex: 1;\n min-width: 0;\n box-sizing: border-box;\n margin: 0;\n padding: 8px 10px;\n border: 1px solid var(--ml-ui-border, rgba(255, 255, 255, 0.16));\n border-radius: 8px;\n background: var(--ml-ui-bg-elevated, rgba(255, 255, 255, 0.06));\n color: var(--ml-ui-text, #e8eaed);\n font: inherit;\n font-size: 14px;\n line-height: 1.35;\n outline: none;\n resize: none;\n overflow-y: hidden;\n white-space: pre-wrap;\n word-break: break-word;\n /* 1-line floor; JS grows up to 3 lines via syncStringInputHeight. */\n height: calc(1.35em + 16px + 2px);\n }\n .ml-mobile-cmd-string-input:focus {\n border-color: var(--ml-ui-accent, #08e8de);\n }\n .ml-mobile-cmd-string-input::placeholder {\n color: var(--ml-ui-muted, #9aa0a6);\n }\n .ml-mobile-cmd-panel.is-relative .ml-mobile-cmd-group-polar {\n border-bottom: 1px solid var(--ml-ui-border, rgba(255, 255, 255, 0.12));\n padding-bottom: 0;\n }\n .ml-mobile-cmd-group:not(.ml-mobile-cmd-group-string):not(\n :has(.ml-mobile-cmd-metric-stack:not([hidden]))\n ) {\n justify-content: flex-end;\n }\n .ml-mobile-cmd-group-string {\n align-items: stretch;\n }\n .ml-mobile-cmd-group-string .ml-mobile-cmd-actions {\n align-self: stretch;\n align-items: center;\n border-left: 1px solid var(--ml-ui-border, rgba(255, 255, 255, 0.12));\n padding-left: 12px;\n }\n .ml-mobile-cmd-metric-stack {\n flex: 1;\n min-width: 0;\n display: flex;\n flex-direction: column;\n justify-content: center;\n gap: 2px;\n }\n .ml-mobile-cmd-metric-stack[hidden] {\n display: none;\n }\n .ml-mobile-cmd-actions {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n gap: 10px;\n flex: 0 0 auto;\n align-self: stretch;\n padding-left: 12px;\n border-left: 1px solid var(--ml-ui-border, rgba(255, 255, 255, 0.12));\n }\n .ml-mobile-cmd-group:not(.ml-mobile-cmd-group-string):not(\n :has(.ml-mobile-cmd-metric-stack:not([hidden]))\n )\n .ml-mobile-cmd-actions {\n border-left: 0;\n padding-left: 0;\n }\n .ml-mobile-cmd-metric {\n display: flex;\n justify-content: space-between;\n align-items: center;\n gap: 8px;\n margin: 0;\n padding: 2px 0;\n border: 0;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: left;\n min-height: 28px;\n min-width: 0;\n width: 100%;\n }\n .ml-mobile-cmd-metric[hidden] {\n display: none;\n }\n .ml-mobile-cmd-metric-label {\n flex: 0 0 auto;\n color: var(--ml-ui-muted, #9aa0a6);\n font-size: 12px;\n }\n .ml-mobile-cmd-metric-value {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n text-align: right;\n font-variant-numeric: tabular-nums;\n font-size: 13px;\n }\n .ml-mobile-cmd-accessory {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 8px;\n min-height: 32px;\n }\n .ml-mobile-cmd-accessory:not([hidden]) {\n padding-bottom: 8px;\n border-bottom: 1px solid var(--ml-ui-border, rgba(255, 255, 255, 0.12));\n }\n .ml-mobile-cmd-accessory[hidden] {\n display: none;\n }\n .ml-mobile-cmd-accessory-content {\n flex: 1;\n min-width: 0;\n display: flex;\n align-items: center;\n gap: 8px;\n }\n .ml-mobile-cmd-accessory-content:empty {\n display: none;\n }\n .ml-mobile-cmd-title-actions {\n display: flex;\n flex: 0 0 auto;\n align-items: center;\n gap: 0;\n margin-left: auto;\n }\n .ml-mobile-cmd-help,\n .ml-mobile-cmd-collapse {\n box-sizing: border-box;\n flex: 0 0 auto;\n margin: 0;\n width: 32px;\n height: 32px;\n padding: 0;\n border: 0;\n border-radius: 50%;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n background: transparent;\n color: var(--ml-ui-muted, #9aa0a6);\n cursor: pointer;\n line-height: 0;\n }\n .ml-mobile-cmd-help:hover,\n .ml-mobile-cmd-help:focus-visible,\n .ml-mobile-cmd-collapse:hover,\n .ml-mobile-cmd-collapse:focus-visible {\n color: var(--ml-ui-accent, #08e8de);\n }\n .ml-mobile-cmd-help svg,\n .ml-mobile-cmd-collapse svg {\n display: block;\n width: 18px;\n height: 18px;\n }\n .ml-mobile-cmd-chips {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 6px;\n flex: 0 1 auto;\n min-width: 0;\n }\n .ml-mobile-cmd-chips:not([hidden]) {\n padding: 0;\n border: 0;\n }\n .ml-mobile-cmd-chips[hidden] {\n display: none;\n }\n .ml-mobile-cmd-chip {\n min-height: 32px;\n padding: 4px 10px;\n border-radius: 16px;\n border: 1px solid var(--ml-ui-border, rgba(255, 255, 255, 0.16));\n background: var(--ml-ui-bg-elevated, rgba(255, 255, 255, 0.06));\n color: var(--ml-ui-accent, #08e8de);\n font-size: 13px;\n }\n .ml-mobile-cmd-chip:disabled {\n opacity: 0.45;\n }\n .ml-mobile-cmd-cancel,\n .ml-mobile-cmd-confirm {\n box-sizing: border-box;\n flex: 0 0 36px;\n align-self: center;\n margin: 0;\n width: 36px;\n height: 36px;\n padding: 0;\n border-radius: 50%;\n border: 0;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n line-height: 0;\n cursor: pointer;\n color: #fff;\n }\n .ml-mobile-cmd-cancel svg,\n .ml-mobile-cmd-confirm svg {\n display: block;\n width: 18px;\n height: 18px;\n }\n .ml-mobile-cmd-cancel {\n background: #5c6370;\n }\n .ml-mobile-cmd-confirm {\n background: var(--ml-ui-accent, #1a8cff);\n }\n .ml-mobile-cmd-confirm:disabled {\n opacity: 0.35;\n cursor: default;\n }\n .ml-mobile-cmd-actions-shared {\n display: none;\n }\n .ml-mobile-cmd-panel.is-collapsed .ml-mobile-cmd-actions-shared {\n display: none !important;\n }\n @media (min-width: ".concat(ML_UI_SESSION_PANEL_WIDTH, "px) {\n .ml-mobile-cmd-metric-stack {\n flex-direction: row;\n align-items: center;\n gap: 16px;\n }\n .ml-mobile-cmd-metric {\n flex: 1;\n }\n }\n @media (min-width: ").concat(ML_UI_MOBILE_MAX_WIDTH + 1, "px) {\n .ml-mobile-cmd-panel {\n left: 50%;\n right: auto;\n width: ").concat(ML_UI_SESSION_PANEL_WIDTH, "px;\n max-width: ").concat(ML_UI_SESSION_PANEL_MAX_WIDTH, ";\n transform: translateX(-50%);\n border-radius: 12px 12px 0 0;\n border: 1px solid var(--ml-ui-border, rgba(255, 255, 255, 0.12));\n border-bottom: 0;\n }\n .ml-mobile-cmd-panel.is-collapsed {\n width: ").concat(ML_UI_SESSION_PANEL_WIDTH, "px;\n max-width: ").concat(ML_UI_SESSION_PANEL_MAX_WIDTH, ";\n }\n .ml-mobile-cmd-group .ml-mobile-cmd-actions {\n display: none;\n }\n .ml-mobile-cmd-actions-shared {\n display: flex;\n flex-direction: row;\n align-items: center;\n justify-content: center;\n }\n .ml-mobile-cmd-panel.is-absolute .ml-mobile-cmd-group-abs {\n align-items: center;\n }\n .ml-mobile-cmd-panel.is-absolute .ml-mobile-cmd-actions-shared {\n align-self: center;\n }\n .ml-mobile-cmd-panel.is-relative:not([hidden]),\n .ml-mobile-cmd-panel.is-absolute:not([hidden]) {\n display: grid;\n grid-template-columns: 1fr auto;\n align-items: stretch;\n row-gap: 0;\n column-gap: 8px;\n }\n .ml-mobile-cmd-panel.is-relative {\n grid-template-areas:\n 'accessory accessory'\n 'prompt prompt'\n 'polar shared'\n 'delta shared';\n }\n .ml-mobile-cmd-panel.is-absolute {\n grid-template-areas:\n 'accessory accessory'\n 'prompt prompt'\n 'abs shared';\n }\n .ml-mobile-cmd-panel.is-string-input {\n display: grid;\n grid-template-columns: 1fr auto;\n align-items: stretch;\n row-gap: 0;\n column-gap: 8px;\n grid-template-areas:\n 'accessory accessory'\n 'prompt prompt'\n 'string shared';\n }\n .ml-mobile-cmd-group-polar { grid-area: polar; }\n .ml-mobile-cmd-group-delta { grid-area: delta; }\n .ml-mobile-cmd-group-abs { grid-area: abs; }\n .ml-mobile-cmd-group-string { grid-area: string; }\n .ml-mobile-cmd-actions-shared { grid-area: shared; }\n .ml-mobile-cmd-accessory { grid-area: accessory; }\n .ml-mobile-cmd-prompt-row { grid-area: prompt; }\n .ml-mobile-cmd-panel.is-string-input .ml-mobile-cmd-group-string {\n align-items: stretch;\n }\n .ml-mobile-cmd-panel.is-string-input .ml-mobile-cmd-actions-shared {\n align-self: stretch;\n align-items: center;\n }\n .ml-mobile-cmd-panel.is-relative .ml-mobile-cmd-group-polar {\n padding-bottom: 6px;\n }\n .ml-mobile-cmd-panel.is-relative .ml-mobile-cmd-group-delta {\n padding-top: 6px;\n }\n .ml-mobile-cmd-panel.is-actions-only {\n display: flex;\n flex-direction: column;\n }\n .ml-mobile-cmd-panel.is-actions-only .ml-mobile-cmd-actions-shared {\n border-left: 0;\n padding-left: 0;\n justify-content: flex-end;\n align-self: flex-end;\n }\n .ml-mobile-cmd-panel.is-collapsed {\n display: flex !important;\n flex-direction: row;\n align-items: center;\n transform: translateX(-50%);\n }\n }\n");
|
|
822
|
+
//# sourceMappingURL=AcUiMobileSessionPanel.js.map
|