winui-svelte 0.0.7 → 0.0.8
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/API.md +565 -19
- package/README.md +21 -5
- package/dist/app/activate.d.ts.map +1 -1
- package/dist/app/activate.js +3 -0
- package/dist/app/activate.js.map +1 -1
- package/dist/app/activation/index.d.ts +3 -0
- package/dist/app/activation/index.d.ts.map +1 -1
- package/dist/app/activation/index.js +2 -0
- package/dist/app/activation/index.js.map +1 -1
- package/dist/app/activation/login.d.ts +2 -1
- package/dist/app/activation/login.d.ts.map +1 -1
- package/dist/app/activation/login.js +2 -1
- package/dist/app/activation/login.js.map +1 -1
- package/dist/app/activation/native.js +1 -2
- package/dist/app/activation/native.js.map +1 -1
- package/dist/app/activation/packaged.d.ts +49 -0
- package/dist/app/activation/packaged.d.ts.map +1 -0
- package/dist/app/activation/packaged.js +90 -0
- package/dist/app/activation/packaged.js.map +1 -0
- package/dist/app/activation/receive.d.ts +11 -2
- package/dist/app/activation/receive.d.ts.map +1 -1
- package/dist/app/activation/receive.js +11 -4
- package/dist/app/activation/receive.js.map +1 -1
- package/dist/app/activation/registration.d.ts +3 -3
- package/dist/app/activation/registration.js +7 -7
- package/dist/app/activation/registration.js.map +1 -1
- package/dist/app/activation/scheme.d.ts +10 -0
- package/dist/app/activation/scheme.d.ts.map +1 -1
- package/dist/app/activation/scheme.js +17 -0
- package/dist/app/activation/scheme.js.map +1 -1
- package/dist/app/index.d.ts +4 -2
- package/dist/app/index.d.ts.map +1 -1
- package/dist/app/index.js +3 -1
- package/dist/app/index.js.map +1 -1
- package/dist/app/instance-running.d.ts +15 -0
- package/dist/app/instance-running.d.ts.map +1 -0
- package/dist/app/instance-running.js +20 -0
- package/dist/app/instance-running.js.map +1 -0
- package/dist/app/jump-list/native.d.ts.map +1 -1
- package/dist/app/jump-list/native.js +1 -2
- package/dist/app/jump-list/native.js.map +1 -1
- package/dist/app/native-messaging/browsers.d.ts +19 -0
- package/dist/app/native-messaging/browsers.d.ts.map +1 -0
- package/dist/app/native-messaging/browsers.js +17 -0
- package/dist/app/native-messaging/browsers.js.map +1 -0
- package/dist/app/native-messaging/index.d.ts +41 -0
- package/dist/app/native-messaging/index.d.ts.map +1 -0
- package/dist/app/native-messaging/index.js +84 -0
- package/dist/app/native-messaging/index.js.map +1 -0
- package/dist/app/native.d.ts +0 -6
- package/dist/app/native.d.ts.map +1 -1
- package/dist/app/native.js +1 -24
- package/dist/app/native.js.map +1 -1
- package/dist/app/notification-source.d.ts.map +1 -1
- package/dist/app/notification-source.js +1 -2
- package/dist/app/notification-source.js.map +1 -1
- package/dist/app/shell/native.js +1 -2
- package/dist/app/shell/native.js.map +1 -1
- package/dist/app/single-instance.d.ts +27 -1
- package/dist/app/single-instance.d.ts.map +1 -1
- package/dist/app/single-instance.js +32 -10
- package/dist/app/single-instance.js.map +1 -1
- package/dist/automation/native.d.ts.map +1 -1
- package/dist/automation/native.js +1 -2
- package/dist/automation/native.js.map +1 -1
- package/dist/bindings/.dynwinrt-js-types +198 -0
- package/dist/bindings/.dynwinrt-managed +1 -1
- package/dist/bindings/index.d.ts +15 -0
- package/dist/bindings/index.js +20 -0
- package/dist/bindings/index.mjs +2902 -2882
- package/dist/bindings/index.proxy.js +10 -0
- package/dist/bindings/windows/application-model/activation/ActivationKind.d.ts +49 -0
- package/dist/bindings/windows/application-model/activation/ActivationKind.js +50 -0
- package/dist/bindings/windows/application-model/activation/ApplicationExecutionState.d.ts +9 -0
- package/dist/bindings/windows/application-model/activation/ApplicationExecutionState.js +10 -0
- package/dist/bindings/windows/application-model/activation/IActivatedEventArgs.d.ts +36 -0
- package/dist/bindings/windows/application-model/activation/IActivatedEventArgs.js +149 -0
- package/dist/bindings/windows/application-model/activation/IActivatedEventArgsWithUser.d.ts +28 -0
- package/dist/bindings/windows/application-model/activation/IActivatedEventArgsWithUser.js +119 -0
- package/dist/bindings/windows/application-model/activation/IApplicationViewActivatedEventArgs.d.ts +27 -0
- package/dist/bindings/windows/application-model/activation/IApplicationViewActivatedEventArgs.js +116 -0
- package/dist/bindings/windows/application-model/activation/IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData.d.ts +31 -0
- package/dist/bindings/windows/application-model/activation/IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData.js +131 -0
- package/dist/bindings/windows/application-model/activation/IViewSwitcherProvider.d.ts +28 -0
- package/dist/bindings/windows/application-model/activation/IViewSwitcherProvider.js +119 -0
- package/dist/bindings/windows/application-model/activation/ProtocolActivatedEventArgs.d.ts +25 -0
- package/dist/bindings/windows/application-model/activation/ProtocolActivatedEventArgs.js +166 -0
- package/dist/bindings/windows/application-model/activation/SplashScreen.d.ts +35 -0
- package/dist/bindings/windows/application-model/activation/SplashScreen.js +105 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsApplicationModelActivationSplashScreen_Object_g7a7dbfa699cd28ff.d.ts +7 -0
- package/dist/bindings/windows/foundation/TypedEventHandler_WindowsApplicationModelActivationSplashScreen_Object_g7a7dbfa699cd28ff.js +7 -0
- package/dist/bindings/windows/ui/view-management/ActivationViewSwitcher.d.ts +12 -0
- package/dist/bindings/windows/ui/view-management/ActivationViewSwitcher.js +96 -0
- package/dist/chrome/context-menus/context-menu-schema.d.ts.map +1 -1
- package/dist/chrome/context-menus/context-menu-schema.js +1 -7
- package/dist/chrome/context-menus/context-menu-schema.js.map +1 -1
- package/dist/chrome/parse-or-throw.d.ts +7 -0
- package/dist/chrome/parse-or-throw.d.ts.map +1 -0
- package/dist/chrome/parse-or-throw.js +9 -0
- package/dist/chrome/parse-or-throw.js.map +1 -0
- package/dist/chrome/permissions/permission-schema.d.ts.map +1 -1
- package/dist/chrome/permissions/permission-schema.js +1 -7
- package/dist/chrome/permissions/permission-schema.js.map +1 -1
- package/dist/chrome/windows/chrome-windows.d.ts.map +1 -1
- package/dist/chrome/windows/chrome-windows.js +1 -7
- package/dist/chrome/windows/chrome-windows.js.map +1 -1
- package/dist/components/hand-written/items/keyed-rows.svelte.d.ts.map +1 -1
- package/dist/components/hand-written/items/keyed-rows.svelte.js +6 -0
- package/dist/components/hand-written/items/keyed-rows.svelte.js.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/runtime.svelte.d.ts.map +1 -1
- package/dist/components/runtime.svelte.js +7 -0
- package/dist/components/runtime.svelte.js.map +1 -1
- package/dist/composition/expression.d.ts +1 -1
- package/dist/css/runtime/containers.d.ts.map +1 -1
- package/dist/css/runtime/containers.js +1 -17
- package/dist/css/runtime/containers.js.map +1 -1
- package/dist/css/runtime/native.d.ts.map +1 -1
- package/dist/css/runtime/native.js +40 -20
- package/dist/css/runtime/native.js.map +1 -1
- package/dist/css/translate/property-kit.d.ts +9 -0
- package/dist/css/translate/property-kit.d.ts.map +1 -1
- package/dist/css/translate/property-kit.js.map +1 -1
- package/dist/css/translate/transition-properties.d.ts +1 -1
- package/dist/css/translate/transition-properties.d.ts.map +1 -1
- package/dist/css/translate/transition-properties.js +32 -5
- package/dist/css/translate/transition-properties.js.map +1 -1
- package/dist/data-transfer/data-transfer.d.ts +3 -3
- package/dist/data-transfer/data-transfer.d.ts.map +1 -1
- package/dist/data-transfer/data-transfer.js.map +1 -1
- package/dist/data-transfer/drag-effects.d.ts +25 -2
- package/dist/data-transfer/drag-effects.d.ts.map +1 -1
- package/dist/data-transfer/drag-effects.js +27 -2
- package/dist/data-transfer/drag-effects.js.map +1 -1
- package/dist/data-transfer/drag-helper.d.ts +50 -0
- package/dist/data-transfer/drag-helper.d.ts.map +1 -0
- package/dist/data-transfer/drag-helper.js +156 -0
- package/dist/data-transfer/drag-helper.js.map +1 -0
- package/dist/data-transfer/drop-target.d.ts +6 -5
- package/dist/data-transfer/drop-target.d.ts.map +1 -1
- package/dist/data-transfer/drop-target.js +68 -20
- package/dist/data-transfer/drop-target.js.map +1 -1
- package/dist/data-transfer/index.d.ts +1 -0
- package/dist/data-transfer/index.d.ts.map +1 -1
- package/dist/data-transfer/index.js.map +1 -1
- package/dist/data-transfer/launcher.d.ts +4 -3
- package/dist/data-transfer/launcher.d.ts.map +1 -1
- package/dist/data-transfer/launcher.js +58 -9
- package/dist/data-transfer/launcher.js.map +1 -1
- package/dist/data-transfer/native.d.ts +66 -0
- package/dist/data-transfer/native.d.ts.map +1 -0
- package/dist/data-transfer/native.js +148 -0
- package/dist/data-transfer/native.js.map +1 -0
- package/dist/data-transfer/ole-data-object.d.ts +62 -0
- package/dist/data-transfer/ole-data-object.d.ts.map +1 -0
- package/dist/data-transfer/ole-data-object.js +162 -0
- package/dist/data-transfer/ole-data-object.js.map +1 -0
- package/dist/data-transfer/ole-drop-target.d.ts +54 -0
- package/dist/data-transfer/ole-drop-target.d.ts.map +1 -0
- package/dist/data-transfer/ole-drop-target.js +192 -0
- package/dist/data-transfer/ole-drop-target.js.map +1 -0
- package/dist/data-transfer/share-interop.d.ts.map +1 -1
- package/dist/data-transfer/share-interop.js +1 -1
- package/dist/data-transfer/share-interop.js.map +1 -1
- package/dist/data-transfer/shell-items.d.ts +10 -0
- package/dist/data-transfer/shell-items.d.ts.map +1 -0
- package/dist/data-transfer/shell-items.js +67 -0
- package/dist/data-transfer/shell-items.js.map +1 -0
- package/dist/data-transfer/window-drop.d.ts +35 -0
- package/dist/data-transfer/window-drop.d.ts.map +1 -0
- package/dist/data-transfer/window-drop.js +311 -0
- package/dist/data-transfer/window-drop.js.map +1 -0
- package/dist/devices/native.js +1 -2
- package/dist/devices/native.js.map +1 -1
- package/dist/enums.d.ts +3 -0
- package/dist/enums.d.ts.map +1 -1
- package/dist/enums.js +3 -0
- package/dist/enums.js.map +1 -1
- package/dist/input/index.d.ts +2 -0
- package/dist/input/index.d.ts.map +1 -1
- package/dist/input/index.js +1 -0
- package/dist/input/index.js.map +1 -1
- package/dist/input/modifier-keys.d.ts +24 -0
- package/dist/input/modifier-keys.d.ts.map +1 -0
- package/dist/input/modifier-keys.js +20 -0
- package/dist/input/modifier-keys.js.map +1 -0
- package/dist/media/pixel-buffer.d.ts.map +1 -1
- package/dist/media/pixel-buffer.js +1 -1
- package/dist/media/pixel-buffer.js.map +1 -1
- package/dist/messaging/web-view2/core.d.ts +56 -0
- package/dist/messaging/web-view2/core.d.ts.map +1 -1
- package/dist/messaging/web-view2/core.js +6 -0
- package/dist/messaging/web-view2/core.js.map +1 -1
- package/dist/messaging/web-view2/environment.d.ts +41 -0
- package/dist/messaging/web-view2/environment.d.ts.map +1 -0
- package/dist/messaging/web-view2/environment.js +91 -0
- package/dist/messaging/web-view2/environment.js.map +1 -0
- package/dist/messaging/web-view2/index.d.ts +9 -1
- package/dist/messaging/web-view2/index.d.ts.map +1 -1
- package/dist/messaging/web-view2/index.js +5 -0
- package/dist/messaging/web-view2/index.js.map +1 -1
- package/dist/messaging/web-view2/input.d.ts +68 -0
- package/dist/messaging/web-view2/input.d.ts.map +1 -0
- package/dist/messaging/web-view2/input.js +108 -0
- package/dist/messaging/web-view2/input.js.map +1 -0
- package/dist/messaging/web-view2/protocol.d.ts +24 -0
- package/dist/messaging/web-view2/protocol.d.ts.map +1 -0
- package/dist/messaging/web-view2/protocol.js +31 -0
- package/dist/messaging/web-view2/protocol.js.map +1 -0
- package/dist/messaging/web-view2/recovery.d.ts +65 -0
- package/dist/messaging/web-view2/recovery.d.ts.map +1 -0
- package/dist/messaging/web-view2/recovery.js +138 -0
- package/dist/messaging/web-view2/recovery.js.map +1 -0
- package/dist/messaging/web-view2/requests.d.ts +88 -0
- package/dist/messaging/web-view2/requests.d.ts.map +1 -0
- package/dist/messaging/web-view2/requests.js +169 -0
- package/dist/messaging/web-view2/requests.js.map +1 -0
- package/dist/messaging/web-view2/transport.d.ts.map +1 -1
- package/dist/messaging/web-view2/transport.js +1 -4
- package/dist/messaging/web-view2/transport.js.map +1 -1
- package/dist/native-identity.d.ts +10 -0
- package/dist/native-identity.d.ts.map +1 -0
- package/dist/native-identity.js +20 -0
- package/dist/native-identity.js.map +1 -0
- package/dist/renderer/host/host.d.ts.map +1 -1
- package/dist/renderer/host/host.js +33 -16
- package/dist/renderer/host/host.js.map +1 -1
- package/dist/renderer/host/structure-sync.d.ts +9 -0
- package/dist/renderer/host/structure-sync.d.ts.map +1 -0
- package/dist/renderer/host/structure-sync.js +24 -0
- package/dist/renderer/host/structure-sync.js.map +1 -0
- package/dist/security/data-protection-error.d.ts +14 -0
- package/dist/security/data-protection-error.d.ts.map +1 -0
- package/dist/security/data-protection-error.js +15 -0
- package/dist/security/data-protection-error.js.map +1 -0
- package/dist/security/index.d.ts +48 -0
- package/dist/security/index.d.ts.map +1 -0
- package/dist/security/index.js +32 -0
- package/dist/security/index.js.map +1 -0
- package/dist/security/native.d.ts +43 -0
- package/dist/security/native.d.ts.map +1 -0
- package/dist/security/native.js +170 -0
- package/dist/security/native.js.map +1 -0
- package/dist/security/protection-scope.d.ts +13 -0
- package/dist/security/protection-scope.d.ts.map +1 -0
- package/dist/security/protection-scope.js +11 -0
- package/dist/security/protection-scope.js.map +1 -0
- package/dist/store/states.d.ts +2 -2
- package/dist/store/windows-identity.d.ts +2 -6
- package/dist/store/windows-identity.d.ts.map +1 -1
- package/dist/store/windows-identity.js +2 -29
- package/dist/store/windows-identity.js.map +1 -1
- package/dist/store/windows-packages.d.ts +2 -2
- package/dist/store/windows-store.d.ts +2 -2
- package/dist/tray/click-detector.d.ts.map +1 -1
- package/dist/tray/click-detector.js.map +1 -1
- package/dist/tray/flyout-model.d.ts +4 -3
- package/dist/tray/flyout-model.d.ts.map +1 -1
- package/dist/tray/flyout-model.js +12 -2
- package/dist/tray/flyout-model.js.map +1 -1
- package/dist/tray/menu/icon.d.ts +17 -0
- package/dist/tray/menu/icon.d.ts.map +1 -0
- package/dist/tray/menu/icon.js +31 -0
- package/dist/tray/menu/icon.js.map +1 -0
- package/dist/tray/menu/index.d.ts +1 -1
- package/dist/tray/menu/index.d.ts.map +1 -1
- package/dist/tray/menu/index.js.map +1 -1
- package/dist/tray/menu/types.d.ts +23 -6
- package/dist/tray/menu/types.d.ts.map +1 -1
- package/dist/tray/menu/types.js.map +1 -1
- package/dist/tray/menu-svelte/menu-node.d.ts +4 -4
- package/dist/tray/native.d.ts +9 -4
- package/dist/tray/native.d.ts.map +1 -1
- package/dist/tray/native.js +10 -18
- package/dist/tray/native.js.map +1 -1
- package/dist/tray/personalize.d.ts +18 -0
- package/dist/tray/personalize.d.ts.map +1 -0
- package/dist/tray/personalize.js +42 -0
- package/dist/tray/personalize.js.map +1 -0
- package/dist/tray/standalone/icon-raster.d.ts +72 -0
- package/dist/tray/standalone/icon-raster.d.ts.map +1 -0
- package/dist/tray/standalone/icon-raster.js +161 -0
- package/dist/tray/standalone/icon-raster.js.map +1 -0
- package/dist/tray/standalone/index.d.ts +3 -2
- package/dist/tray/standalone/index.d.ts.map +1 -1
- package/dist/tray/standalone/index.js +1 -0
- package/dist/tray/standalone/index.js.map +1 -1
- package/dist/tray/standalone/menu-icons.d.ts +9 -0
- package/dist/tray/standalone/menu-icons.d.ts.map +1 -0
- package/dist/tray/standalone/menu-icons.js +280 -0
- package/dist/tray/standalone/menu-icons.js.map +1 -0
- package/dist/tray/standalone/native.d.ts +19 -6
- package/dist/tray/standalone/native.d.ts.map +1 -1
- package/dist/tray/standalone/native.js +58 -15
- package/dist/tray/standalone/native.js.map +1 -1
- package/dist/tray/standalone/standalone-tray.d.ts +4 -2
- package/dist/tray/standalone/standalone-tray.d.ts.map +1 -1
- package/dist/tray/standalone/standalone-tray.js +12 -2
- package/dist/tray/standalone/standalone-tray.js.map +1 -1
- package/dist/tray/themed-icon.d.ts.map +1 -1
- package/dist/tray/themed-icon.js +4 -28
- package/dist/tray/themed-icon.js.map +1 -1
- package/dist/tray/tray-core.d.ts.map +1 -1
- package/dist/tray/tray-core.js +5 -1
- package/dist/tray/tray-core.js.map +1 -1
- package/dist/tray/tray-extras.d.ts +26 -2
- package/dist/tray/tray-extras.d.ts.map +1 -1
- package/dist/web-apis/eye-dropper.d.ts.map +1 -1
- package/dist/web-apis/eye-dropper.js +8 -5
- package/dist/web-apis/eye-dropper.js.map +1 -1
- package/dist/web-apis/media-devices-source.d.ts +1 -1
- package/dist/web-apis/native.d.ts +0 -7
- package/dist/web-apis/native.d.ts.map +1 -1
- package/dist/web-apis/native.js +0 -19
- package/dist/web-apis/native.js.map +1 -1
- package/dist/win2d/activation-failure.d.ts +10 -0
- package/dist/win2d/activation-failure.d.ts.map +1 -0
- package/dist/win2d/activation-failure.js +30 -0
- package/dist/win2d/activation-failure.js.map +1 -0
- package/dist/win2d/element-lifecycle.d.ts.map +1 -1
- package/dist/win2d/element-lifecycle.js +6 -1
- package/dist/win2d/element-lifecycle.js.map +1 -1
- package/dist/win2d/manifest.d.ts +29 -0
- package/dist/win2d/manifest.d.ts.map +1 -0
- package/dist/win2d/manifest.js +67 -0
- package/dist/win2d/manifest.js.map +1 -0
- package/dist/win32/index.d.ts +3 -0
- package/dist/win32/index.d.ts.map +1 -0
- package/dist/win32/index.js +11 -0
- package/dist/win32/index.js.map +1 -0
- package/dist/win32-calls.d.ts +6 -0
- package/dist/win32-calls.d.ts.map +1 -1
- package/dist/win32-calls.js +6 -1
- package/dist/win32-calls.js.map +1 -1
- package/dist/win32-foreground.d.ts +20 -0
- package/dist/win32-foreground.d.ts.map +1 -1
- package/dist/win32-foreground.js +24 -4
- package/dist/win32-foreground.js.map +1 -1
- package/dist/win32-icons.d.ts.map +1 -1
- package/dist/win32-icons.js +1 -2
- package/dist/win32-icons.js.map +1 -1
- package/dist/win32-key-state.d.ts +31 -0
- package/dist/win32-key-state.d.ts.map +1 -0
- package/dist/win32-key-state.js +41 -0
- package/dist/win32-key-state.js.map +1 -0
- package/dist/window/anchor.d.ts +15 -0
- package/dist/window/anchor.d.ts.map +1 -1
- package/dist/window/anchor.js +23 -0
- package/dist/window/anchor.js.map +1 -1
- package/dist/window/apply-frame.d.ts +4 -2
- package/dist/window/apply-frame.d.ts.map +1 -1
- package/dist/window/apply-frame.js +2 -3
- package/dist/window/apply-frame.js.map +1 -1
- package/dist/window/bootstrap-core.d.ts +69 -0
- package/dist/window/bootstrap-core.d.ts.map +1 -0
- package/dist/window/bootstrap-core.js +93 -0
- package/dist/window/bootstrap-core.js.map +1 -0
- package/dist/window/bootstrap-mode.d.ts +21 -0
- package/dist/window/bootstrap-mode.d.ts.map +1 -0
- package/dist/window/bootstrap-mode.js +17 -0
- package/dist/window/bootstrap-mode.js.map +1 -0
- package/dist/window/bootstrap.d.ts +12 -28
- package/dist/window/bootstrap.d.ts.map +1 -1
- package/dist/window/bootstrap.js +18 -66
- package/dist/window/bootstrap.js.map +1 -1
- package/dist/window/cover.d.ts +43 -0
- package/dist/window/cover.d.ts.map +1 -0
- package/dist/window/cover.js +64 -0
- package/dist/window/cover.js.map +1 -0
- package/dist/window/create-window.d.ts +1 -1
- package/dist/window/create-window.d.ts.map +1 -1
- package/dist/window/create-window.js +1 -0
- package/dist/window/create-window.js.map +1 -1
- package/dist/window/dpi-awareness.d.ts +71 -0
- package/dist/window/dpi-awareness.d.ts.map +1 -0
- package/dist/window/dpi-awareness.js +127 -0
- package/dist/window/dpi-awareness.js.map +1 -0
- package/dist/window/foreground-native.d.ts.map +1 -1
- package/dist/window/foreground-native.js +3 -5
- package/dist/window/foreground-native.js.map +1 -1
- package/dist/window/index.d.ts +2 -0
- package/dist/window/index.d.ts.map +1 -1
- package/dist/window/index.js +1 -0
- package/dist/window/index.js.map +1 -1
- package/dist/window/native.d.ts.map +1 -1
- package/dist/window/native.js +1 -2
- package/dist/window/native.js.map +1 -1
- package/dist/window/package-identity.d.ts +17 -0
- package/dist/window/package-identity.d.ts.map +1 -0
- package/dist/window/package-identity.js +97 -0
- package/dist/window/package-identity.js.map +1 -0
- package/dist/window/system-dispatcher-queue.d.ts.map +1 -1
- package/dist/window/system-dispatcher-queue.js +1 -2
- package/dist/window/system-dispatcher-queue.js.map +1 -1
- package/dist/window/taskbar-calls.d.ts +1 -1
- package/dist/window/taskbar-native.d.ts.map +1 -1
- package/dist/window/taskbar-native.js +1 -2
- package/dist/window/taskbar-native.js.map +1 -1
- package/dist/window/window-handle.d.ts +25 -1
- package/dist/window/window-handle.d.ts.map +1 -1
- package/dist/window/window-handle.js +27 -1
- package/dist/window/window-handle.js.map +1 -1
- package/dist/window/window-host.svelte.d.ts +10 -1
- package/dist/window/window-host.svelte.d.ts.map +1 -1
- package/dist/window/window-host.svelte.js +38 -4
- package/dist/window/window-host.svelte.js.map +1 -1
- package/package.json +26 -4
- package/src/app/activate.ts +3 -0
- package/src/app/activation/index.ts +3 -0
- package/src/app/activation/login.ts +2 -1
- package/src/app/activation/native.ts +1 -1
- package/src/app/activation/packaged.ts +118 -0
- package/src/app/activation/receive.ts +24 -4
- package/src/app/activation/registration.ts +7 -7
- package/src/app/activation/scheme.ts +19 -0
- package/src/app/index.ts +4 -2
- package/src/app/instance-running.ts +22 -0
- package/src/app/jump-list/native.ts +1 -2
- package/src/app/native-messaging/browsers.ts +21 -0
- package/src/app/native-messaging/index.ts +124 -0
- package/src/app/native.ts +1 -32
- package/src/app/notification-source.ts +1 -3
- package/src/app/shell/native.ts +1 -1
- package/src/app/single-instance.ts +34 -10
- package/src/automation/native.ts +1 -2
- package/src/chrome/context-menus/context-menu-schema.ts +1 -12
- package/src/chrome/parse-or-throw.ts +14 -0
- package/src/chrome/permissions/permission-schema.ts +1 -12
- package/src/chrome/windows/chrome-windows.ts +1 -13
- package/src/components/hand-written/items/keyed-rows.svelte.ts +6 -0
- package/src/components/index.ts +1 -0
- package/src/components/runtime.svelte.ts +8 -0
- package/src/css/runtime/containers.ts +1 -20
- package/src/css/runtime/native.ts +46 -21
- package/src/css/translate/property-kit.ts +9 -0
- package/src/css/translate/transition-properties.ts +44 -10
- package/src/data-transfer/data-transfer.ts +3 -3
- package/src/data-transfer/drag-effects.ts +48 -4
- package/src/data-transfer/drag-helper.ts +216 -0
- package/src/data-transfer/drop-target.ts +90 -26
- package/src/data-transfer/index.ts +1 -0
- package/src/data-transfer/launcher.ts +65 -9
- package/src/data-transfer/native.ts +184 -0
- package/src/data-transfer/ole-data-object.ts +200 -0
- package/src/data-transfer/ole-drop-target.ts +263 -0
- package/src/data-transfer/share-interop.ts +1 -1
- package/src/data-transfer/shell-items.ts +81 -0
- package/src/data-transfer/window-drop.ts +411 -0
- package/src/devices/native.ts +1 -1
- package/src/enums.ts +3 -0
- package/src/input/index.ts +2 -0
- package/src/input/modifier-keys.ts +30 -0
- package/src/media/pixel-buffer.ts +1 -1
- package/src/messaging/web-view2/core.ts +64 -0
- package/src/messaging/web-view2/environment.ts +131 -0
- package/src/messaging/web-view2/index.ts +11 -0
- package/src/messaging/web-view2/input.ts +154 -0
- package/src/messaging/web-view2/protocol.ts +41 -0
- package/src/messaging/web-view2/recovery.ts +177 -0
- package/src/messaging/web-view2/requests.ts +238 -0
- package/src/messaging/web-view2/transport.ts +1 -5
- package/src/native-identity.ts +22 -0
- package/src/renderer/host/host.ts +39 -17
- package/src/renderer/host/structure-sync.ts +25 -0
- package/src/security/data-protection-error.ts +18 -0
- package/src/security/index.ts +57 -0
- package/src/security/native.ts +234 -0
- package/src/security/protection-scope.ts +13 -0
- package/src/store/windows-identity.ts +3 -35
- package/src/tray/click-detector.ts +6 -7
- package/src/tray/flyout-model.ts +14 -3
- package/src/tray/menu/icon.ts +40 -0
- package/src/tray/menu/index.ts +3 -0
- package/src/tray/menu/types.ts +27 -6
- package/src/tray/native.ts +20 -21
- package/src/tray/personalize.ts +57 -0
- package/src/tray/pointer-share.ts +3 -3
- package/src/tray/standalone/icon-raster.ts +208 -0
- package/src/tray/standalone/index.ts +4 -1
- package/src/tray/standalone/menu-icons.ts +317 -0
- package/src/tray/standalone/native.ts +78 -15
- package/src/tray/standalone/standalone-tray.ts +26 -5
- package/src/tray/themed-icon.ts +4 -36
- package/src/tray/tray-core.ts +6 -1
- package/src/tray/tray-extras.ts +31 -2
- package/src/web-apis/eye-dropper.ts +9 -5
- package/src/web-apis/native.ts +0 -20
- package/src/win2d/activation-failure.ts +35 -0
- package/src/win2d/element-lifecycle.ts +6 -1
- package/src/win2d/manifest.ts +78 -0
- package/src/win32/index.ts +19 -0
- package/src/win32-calls.ts +8 -1
- package/src/win32-foreground.ts +28 -4
- package/src/win32-icons.ts +7 -2
- package/src/win32-key-state.ts +48 -0
- package/src/window/anchor.ts +28 -0
- package/src/window/apply-frame.ts +6 -4
- package/src/window/bootstrap-core.ts +165 -0
- package/src/window/bootstrap-mode.ts +23 -0
- package/src/window/bootstrap.ts +20 -103
- package/src/window/cover.ts +100 -0
- package/src/window/create-window.ts +2 -0
- package/src/window/dpi-awareness.ts +162 -0
- package/src/window/foreground-native.ts +3 -5
- package/src/window/index.ts +2 -0
- package/src/window/native.ts +1 -1
- package/src/window/package-identity.ts +112 -0
- package/src/window/system-dispatcher-queue.ts +7 -2
- package/src/window/taskbar-native.ts +1 -2
- package/src/window/window-handle.ts +29 -1
- package/src/window/window-host.svelte.ts +58 -5
- package/web-types.json +11 -3
|
@@ -1975,7 +1975,16 @@ const __lazy = (load) => {
|
|
|
1975
1975
|
{ let _m; exports.PackageStatus = __lazy(() => (_m ??= require('./windows/application-model/PackageStatus.js')).PackageStatus); }
|
|
1976
1976
|
{ let _m; exports.PackageUpdateAvailability = __lazy(() => (_m ??= require('./windows/application-model/PackageUpdateAvailability.js')).PackageUpdateAvailability); }
|
|
1977
1977
|
{ let _m; exports.PackageUpdateAvailabilityResult = __lazy(() => (_m ??= require('./windows/application-model/PackageUpdateAvailabilityResult.js')).PackageUpdateAvailabilityResult); }
|
|
1978
|
+
{ let _m; exports.ActivationKind = __lazy(() => (_m ??= require('./windows/application-model/activation/ActivationKind.js')).ActivationKind); }
|
|
1979
|
+
{ let _m; exports.ApplicationExecutionState = __lazy(() => (_m ??= require('./windows/application-model/activation/ApplicationExecutionState.js')).ApplicationExecutionState); }
|
|
1978
1980
|
{ let _m; exports.BackgroundActivatedEventArgs = __lazy(() => (_m ??= require('./windows/application-model/activation/BackgroundActivatedEventArgs.js')).BackgroundActivatedEventArgs); }
|
|
1981
|
+
{ let _m; exports.IActivatedEventArgs = __lazy(() => (_m ??= require('./windows/application-model/activation/IActivatedEventArgs.js')).IActivatedEventArgs); }
|
|
1982
|
+
{ let _m; exports.IActivatedEventArgsWithUser = __lazy(() => (_m ??= require('./windows/application-model/activation/IActivatedEventArgsWithUser.js')).IActivatedEventArgsWithUser); }
|
|
1983
|
+
{ let _m; exports.IApplicationViewActivatedEventArgs = __lazy(() => (_m ??= require('./windows/application-model/activation/IApplicationViewActivatedEventArgs.js')).IApplicationViewActivatedEventArgs); }
|
|
1984
|
+
{ let _m; exports.IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData = __lazy(() => (_m ??= require('./windows/application-model/activation/IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData.js')).IProtocolActivatedEventArgsWithCallerPackageFamilyNameAndData); }
|
|
1985
|
+
{ let _m; exports.IViewSwitcherProvider = __lazy(() => (_m ??= require('./windows/application-model/activation/IViewSwitcherProvider.js')).IViewSwitcherProvider); }
|
|
1986
|
+
{ let _m; exports.ProtocolActivatedEventArgs = __lazy(() => (_m ??= require('./windows/application-model/activation/ProtocolActivatedEventArgs.js')).ProtocolActivatedEventArgs); }
|
|
1987
|
+
{ let _m; exports.SplashScreen = __lazy(() => (_m ??= require('./windows/application-model/activation/SplashScreen.js')).SplashScreen); }
|
|
1979
1988
|
{ let _m; exports.BackgroundTaskCancellationReason = __lazy(() => (_m ??= require('./windows/application-model/background/BackgroundTaskCancellationReason.js')).BackgroundTaskCancellationReason); }
|
|
1980
1989
|
{ let _m; exports.BackgroundTaskCompletedEventArgs = __lazy(() => (_m ??= require('./windows/application-model/background/BackgroundTaskCompletedEventArgs.js')).BackgroundTaskCompletedEventArgs); }
|
|
1981
1990
|
{ let _m; exports.BackgroundTaskDeferral = __lazy(() => (_m ??= require('./windows/application-model/background/BackgroundTaskDeferral.js')).BackgroundTaskDeferral); }
|
|
@@ -3351,6 +3360,7 @@ const __lazy = (load) => {
|
|
|
3351
3360
|
{ let _m; exports.FontStyle = __lazy(() => (_m ??= require('./windows/ui/text/FontStyle.js')).FontStyle); }
|
|
3352
3361
|
{ let _m; exports.TextDecorations = __lazy(() => (_m ??= require('./windows/ui/text/TextDecorations.js')).TextDecorations); }
|
|
3353
3362
|
{ let _m; exports.AccessibilitySettings = __lazy(() => (_m ??= require('./windows/ui/view-management/AccessibilitySettings.js')).AccessibilitySettings); }
|
|
3363
|
+
{ let _m; exports.ActivationViewSwitcher = __lazy(() => (_m ??= require('./windows/ui/view-management/ActivationViewSwitcher.js')).ActivationViewSwitcher); }
|
|
3354
3364
|
{ let _m; exports.HandPreference = __lazy(() => (_m ??= require('./windows/ui/view-management/HandPreference.js')).HandPreference); }
|
|
3355
3365
|
{ let _m; exports.IUISettings2 = __lazy(() => (_m ??= require('./windows/ui/view-management/IUISettings2.js')).IUISettings2); }
|
|
3356
3366
|
{ let _m; exports.IUISettings3 = __lazy(() => (_m ??= require('./windows/ui/view-management/IUISettings3.js')).IUISettings3); }
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
// Generated by dynwinrt-codegen — do not edit
|
|
2
|
+
export type ActivationKind = (typeof ActivationKind)[keyof typeof ActivationKind];
|
|
3
|
+
export declare const ActivationKind: {
|
|
4
|
+
readonly Launch: 0;
|
|
5
|
+
readonly Search: 1;
|
|
6
|
+
readonly ShareTarget: 2;
|
|
7
|
+
readonly File: 3;
|
|
8
|
+
readonly Protocol: 4;
|
|
9
|
+
readonly FileOpenPicker: 5;
|
|
10
|
+
readonly FileSavePicker: 6;
|
|
11
|
+
readonly CachedFileUpdater: 7;
|
|
12
|
+
readonly ContactPicker: 8;
|
|
13
|
+
readonly Device: 9;
|
|
14
|
+
readonly PrintTaskSettings: 10;
|
|
15
|
+
readonly CameraSettings: 11;
|
|
16
|
+
readonly RestrictedLaunch: 12;
|
|
17
|
+
readonly AppointmentsProvider: 13;
|
|
18
|
+
readonly Contact: 14;
|
|
19
|
+
readonly LockScreenCall: 15;
|
|
20
|
+
readonly VoiceCommand: 16;
|
|
21
|
+
readonly LockScreen: 17;
|
|
22
|
+
readonly PickerReturned: 1000;
|
|
23
|
+
readonly WalletAction: 1001;
|
|
24
|
+
readonly PickFileContinuation: 1002;
|
|
25
|
+
readonly PickSaveFileContinuation: 1003;
|
|
26
|
+
readonly PickFolderContinuation: 1004;
|
|
27
|
+
readonly WebAuthenticationBrokerContinuation: 1005;
|
|
28
|
+
readonly WebAccountProvider: 1006;
|
|
29
|
+
readonly ComponentUI: 1007;
|
|
30
|
+
readonly ProtocolForResults: 1009;
|
|
31
|
+
readonly ToastNotification: 1010;
|
|
32
|
+
readonly Print3DWorkflow: 1011;
|
|
33
|
+
readonly DialReceiver: 1012;
|
|
34
|
+
readonly DevicePairing: 1013;
|
|
35
|
+
readonly UserDataAccountsProvider: 1014;
|
|
36
|
+
readonly FilePickerExperience: 1015;
|
|
37
|
+
readonly LockScreenComponent: 1016;
|
|
38
|
+
readonly ContactPanel: 1017;
|
|
39
|
+
readonly PrintWorkflowForegroundTask: 1018;
|
|
40
|
+
readonly GameUIProvider: 1019;
|
|
41
|
+
readonly StartupTask: 1020;
|
|
42
|
+
readonly CommandLineLaunch: 1021;
|
|
43
|
+
readonly BarcodeScannerProvider: 1022;
|
|
44
|
+
readonly PrintSupportJobUI: 1023;
|
|
45
|
+
readonly PrintSupportSettingsUI: 1024;
|
|
46
|
+
readonly PhoneCallActivation: 1025;
|
|
47
|
+
readonly VpnForeground: 1026;
|
|
48
|
+
readonly PrintSupportEnterpriseManagementUI: 1027;
|
|
49
|
+
};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
// Generated by dynwinrt-codegen — do not edit
|
|
2
|
+
|
|
3
|
+
const ActivationKind = Object.freeze({
|
|
4
|
+
Launch: 0,
|
|
5
|
+
Search: 1,
|
|
6
|
+
ShareTarget: 2,
|
|
7
|
+
File: 3,
|
|
8
|
+
Protocol: 4,
|
|
9
|
+
FileOpenPicker: 5,
|
|
10
|
+
FileSavePicker: 6,
|
|
11
|
+
CachedFileUpdater: 7,
|
|
12
|
+
ContactPicker: 8,
|
|
13
|
+
Device: 9,
|
|
14
|
+
PrintTaskSettings: 10,
|
|
15
|
+
CameraSettings: 11,
|
|
16
|
+
RestrictedLaunch: 12,
|
|
17
|
+
AppointmentsProvider: 13,
|
|
18
|
+
Contact: 14,
|
|
19
|
+
LockScreenCall: 15,
|
|
20
|
+
VoiceCommand: 16,
|
|
21
|
+
LockScreen: 17,
|
|
22
|
+
PickerReturned: 1000,
|
|
23
|
+
WalletAction: 1001,
|
|
24
|
+
PickFileContinuation: 1002,
|
|
25
|
+
PickSaveFileContinuation: 1003,
|
|
26
|
+
PickFolderContinuation: 1004,
|
|
27
|
+
WebAuthenticationBrokerContinuation: 1005,
|
|
28
|
+
WebAccountProvider: 1006,
|
|
29
|
+
ComponentUI: 1007,
|
|
30
|
+
ProtocolForResults: 1009,
|
|
31
|
+
ToastNotification: 1010,
|
|
32
|
+
Print3DWorkflow: 1011,
|
|
33
|
+
DialReceiver: 1012,
|
|
34
|
+
DevicePairing: 1013,
|
|
35
|
+
UserDataAccountsProvider: 1014,
|
|
36
|
+
FilePickerExperience: 1015,
|
|
37
|
+
LockScreenComponent: 1016,
|
|
38
|
+
ContactPanel: 1017,
|
|
39
|
+
PrintWorkflowForegroundTask: 1018,
|
|
40
|
+
GameUIProvider: 1019,
|
|
41
|
+
StartupTask: 1020,
|
|
42
|
+
CommandLineLaunch: 1021,
|
|
43
|
+
BarcodeScannerProvider: 1022,
|
|
44
|
+
PrintSupportJobUI: 1023,
|
|
45
|
+
PrintSupportSettingsUI: 1024,
|
|
46
|
+
PhoneCallActivation: 1025,
|
|
47
|
+
VpnForeground: 1026,
|
|
48
|
+
PrintSupportEnterpriseManagementUI: 1027,
|
|
49
|
+
});
|
|
50
|
+
exports.ActivationKind = ActivationKind;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Generated by dynwinrt-codegen — do not edit
|
|
2
|
+
export type ApplicationExecutionState = (typeof ApplicationExecutionState)[keyof typeof ApplicationExecutionState];
|
|
3
|
+
export declare const ApplicationExecutionState: {
|
|
4
|
+
readonly NotRunning: 0;
|
|
5
|
+
readonly Running: 1;
|
|
6
|
+
readonly Suspended: 2;
|
|
7
|
+
readonly Terminated: 3;
|
|
8
|
+
readonly ClosedByUser: 4;
|
|
9
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
// Generated by dynwinrt-codegen — do not edit
|
|
2
|
+
import { WinGuid, DynWinRtImplementation, DynWinRtImplementationHandle } from '@microsoft/dynwinrt';
|
|
3
|
+
import { ActivationKind } from './ActivationKind.js';
|
|
4
|
+
import { ApplicationExecutionState } from './ApplicationExecutionState.js';
|
|
5
|
+
import { SplashScreen } from './SplashScreen.js';
|
|
6
|
+
import { DynWinRtImplementationDescriptor, DynWinRtImplementationOptions, DynWinRtImplementationType } from '@microsoft/dynwinrt';
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
/** Synchronous owner-thread handlers. Out parameters precede the logical result; FillArray inputs are capacities. */
|
|
10
|
+
export interface IActivatedEventArgsHandlers {
|
|
11
|
+
getKind(): ActivationKind;
|
|
12
|
+
getPreviousExecutionState(): ApplicationExecutionState;
|
|
13
|
+
getSplashScreen(): SplashScreen | null;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export declare const IID_IActivatedEventArgs: WinGuid;
|
|
17
|
+
|
|
18
|
+
export declare class IActivatedEventArgs {
|
|
19
|
+
private constructor();
|
|
20
|
+
/** Validate synchronous handlers and create an independent interface descriptor. */
|
|
21
|
+
static implementation(handlers: IActivatedEventArgsHandlers): DynWinRtImplementationDescriptor;
|
|
22
|
+
/** Create an instance with a stable typed value and explicit lifetime management. */
|
|
23
|
+
static implement<const T extends readonly DynWinRtImplementationType[]>(handlers: IActivatedEventArgsHandlers, options: DynWinRtImplementationOptions<T>): DynWinRtImplementationHandle<IActivatedEventArgs>;
|
|
24
|
+
static implement(handlers: IActivatedEventArgsHandlers, ...additional: DynWinRtImplementationDescriptor[]): DynWinRtImplementationHandle<IActivatedEventArgs>;
|
|
25
|
+
/** Query an independent view, without consuming the handle's primary value. */
|
|
26
|
+
static fromImplementation(owner: DynWinRtImplementation | DynWinRtImplementationHandle<unknown>): IActivatedEventArgs;
|
|
27
|
+
|
|
28
|
+
/** @internal Cast a raw WinRT object to this interface. */
|
|
29
|
+
static from(obj: any): IActivatedEventArgs;
|
|
30
|
+
|
|
31
|
+
get kind(): ActivationKind;
|
|
32
|
+
|
|
33
|
+
get previousExecutionState(): ApplicationExecutionState;
|
|
34
|
+
|
|
35
|
+
get splashScreen(): SplashScreen;
|
|
36
|
+
}
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
// Generated by dynwinrt-codegen — do not edit
|
|
2
|
+
const { DynWinRtType, DynWinRtMethodSig, DynWinRtValue, DynWinRtArray, DynWinRtDelegate, WinGuid, DynWinRtInterfacePlan, DynWinRtImplementation, DynWinRtImplementationHandle } = require('@microsoft/dynwinrt');
|
|
3
|
+
let __m_ActivationKind;
|
|
4
|
+
const __load_ActivationKind = () => (__m_ActivationKind ??= require('./ActivationKind.js'));
|
|
5
|
+
const __get_ActivationKind = () => __load_ActivationKind().ActivationKind;
|
|
6
|
+
let __m_ApplicationExecutionState;
|
|
7
|
+
const __load_ApplicationExecutionState = () => (__m_ApplicationExecutionState ??= require('./ApplicationExecutionState.js'));
|
|
8
|
+
const __get_ApplicationExecutionState = () => __load_ApplicationExecutionState().ApplicationExecutionState;
|
|
9
|
+
let __m_SplashScreen;
|
|
10
|
+
const __load_SplashScreen = () => (__m_SplashScreen ??= require('./SplashScreen.js'));
|
|
11
|
+
const __get_SplashScreen = () => __load_SplashScreen().SplashScreen;
|
|
12
|
+
|
|
13
|
+
const IID_IActivatedEventArgs = WinGuid.parse('cf651713-cd08-4fd8-b697-a281b6544e2e');
|
|
14
|
+
|
|
15
|
+
let _IActivatedEventArgsCache;
|
|
16
|
+
const _IActivatedEventArgs = new Proxy({}, {
|
|
17
|
+
get(_target, prop) {
|
|
18
|
+
_IActivatedEventArgsCache ??= DynWinRtType.registerInterface(
|
|
19
|
+
"IActivatedEventArgs", IID_IActivatedEventArgs)
|
|
20
|
+
.addMethod("get_Kind", new DynWinRtMethodSig().addOut(DynWinRtType.enumType('Windows.ApplicationModel.Activation.ActivationKind', ['Launch', 'Search', 'ShareTarget', 'File', 'Protocol', 'FileOpenPicker', 'FileSavePicker', 'CachedFileUpdater', 'ContactPicker', 'Device', 'PrintTaskSettings', 'CameraSettings', 'RestrictedLaunch', 'AppointmentsProvider', 'Contact', 'LockScreenCall', 'VoiceCommand', 'LockScreen', 'PickerReturned', 'WalletAction', 'PickFileContinuation', 'PickSaveFileContinuation', 'PickFolderContinuation', 'WebAuthenticationBrokerContinuation', 'WebAccountProvider', 'ComponentUI', 'ProtocolForResults', 'ToastNotification', 'Print3DWorkflow', 'DialReceiver', 'DevicePairing', 'UserDataAccountsProvider', 'FilePickerExperience', 'LockScreenComponent', 'ContactPanel', 'PrintWorkflowForegroundTask', 'GameUIProvider', 'StartupTask', 'CommandLineLaunch', 'BarcodeScannerProvider', 'PrintSupportJobUI', 'PrintSupportSettingsUI', 'PhoneCallActivation', 'VpnForeground', 'PrintSupportEnterpriseManagementUI'], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027])))
|
|
21
|
+
.addMethod("get_PreviousExecutionState", new DynWinRtMethodSig().addOut(DynWinRtType.enumType('Windows.ApplicationModel.Activation.ApplicationExecutionState', ['NotRunning', 'Running', 'Suspended', 'Terminated', 'ClosedByUser'], [0, 1, 2, 3, 4])))
|
|
22
|
+
.addMethod("get_SplashScreen", new DynWinRtMethodSig().addOut(DynWinRtType.runtimeClass('Windows.ApplicationModel.Activation.SplashScreen', DynWinRtType.interface(WinGuid.parse('ca4d975c-d4d6-43f0-97c0-0833c6391c24')))));
|
|
23
|
+
const value = _IActivatedEventArgsCache[prop];
|
|
24
|
+
return typeof value === 'function' ? value.bind(_IActivatedEventArgsCache) : value;
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
function __implementationCheck(value, valid, label) {
|
|
30
|
+
if (!valid) throw new TypeError(`${label}: invalid implementation result`);
|
|
31
|
+
return value;
|
|
32
|
+
}
|
|
33
|
+
function __implementationField(value, name, label) {
|
|
34
|
+
if (value === null || typeof value !== 'object') throw new TypeError(`${label}: expected a named result object`);
|
|
35
|
+
const field = Object.getOwnPropertyDescriptor(value, name);
|
|
36
|
+
if (!field || !Object.hasOwn(field, 'value')) throw new TypeError(`${label}: missing data field ${name}`);
|
|
37
|
+
return field.value;
|
|
38
|
+
}
|
|
39
|
+
function __implementationArray(value, label, bytes = false, capacity = undefined) {
|
|
40
|
+
if (!Array.isArray(value) && !(bytes && value instanceof Uint8Array)) throw new TypeError(`${label}: expected an array`);
|
|
41
|
+
if (capacity !== undefined && value.length !== capacity) throw new RangeError(`${label}: FillArray result must match capacity ${capacity}`);
|
|
42
|
+
return Array.from(value);
|
|
43
|
+
}
|
|
44
|
+
function __implementationReference(value, iid, label) {
|
|
45
|
+
if (value === null) return DynWinRtValue.nullValue();
|
|
46
|
+
const raw = value instanceof DynWinRtValue ? value : value?._obj;
|
|
47
|
+
if (!(raw instanceof DynWinRtValue)) throw new TypeError(`${label}: expected a managed WinRT value or null`);
|
|
48
|
+
return raw.isNull() ? DynWinRtValue.nullValue() : raw.cast(iid);
|
|
49
|
+
}
|
|
50
|
+
function __implementationSync(value, label) {
|
|
51
|
+
if (value !== null && (typeof value === 'object' || typeof value === 'function') && typeof value.then === 'function') {
|
|
52
|
+
throw new TypeError(`${label}: implementation callbacks must return synchronously, not a Promise or thenable`);
|
|
53
|
+
}
|
|
54
|
+
return value;
|
|
55
|
+
}
|
|
56
|
+
function __implementationHandler(handlers, name, label) {
|
|
57
|
+
if (handlers === null || (typeof handlers !== 'object' && typeof handlers !== 'function')) throw new TypeError(`${label}: expected a handler object`);
|
|
58
|
+
let owner = handlers;
|
|
59
|
+
while (owner && owner !== Object.prototype && owner !== Function.prototype) {
|
|
60
|
+
const property = Object.getOwnPropertyDescriptor(owner, name);
|
|
61
|
+
if (property) {
|
|
62
|
+
const callback = property.value;
|
|
63
|
+
if (typeof callback !== 'function') throw new TypeError(`${label}: missing synchronous handler ${name} (accessors are not handlers)`);
|
|
64
|
+
if (Object.prototype.toString.call(callback) === '[object AsyncFunction]' || Object.prototype.toString.call(callback) === '[object AsyncGeneratorFunction]') {
|
|
65
|
+
throw new TypeError(`${label}.${name}: async handlers are not supported`);
|
|
66
|
+
}
|
|
67
|
+
return callback.bind(handlers);
|
|
68
|
+
}
|
|
69
|
+
owner = Object.getPrototypeOf(owner);
|
|
70
|
+
}
|
|
71
|
+
throw new TypeError(`${label}: missing synchronous handler ${name}`);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
let __implementationPlan;
|
|
75
|
+
function __getImplementationPlan() {
|
|
76
|
+
return (__implementationPlan ??= DynWinRtInterfacePlan.create("Windows.ApplicationModel.Activation.IActivatedEventArgs", DynWinRtType.interface(WinGuid.parse("cf651713-cd08-4fd8-b697-a281b6544e2e")), [
|
|
77
|
+
{ name: "get_Kind", vtableIndex: 6, signature: new DynWinRtMethodSig().addOut(DynWinRtType.enumType('Windows.ApplicationModel.Activation.ActivationKind', ['Launch', 'Search', 'ShareTarget', 'File', 'Protocol', 'FileOpenPicker', 'FileSavePicker', 'CachedFileUpdater', 'ContactPicker', 'Device', 'PrintTaskSettings', 'CameraSettings', 'RestrictedLaunch', 'AppointmentsProvider', 'Contact', 'LockScreenCall', 'VoiceCommand', 'LockScreen', 'PickerReturned', 'WalletAction', 'PickFileContinuation', 'PickSaveFileContinuation', 'PickFolderContinuation', 'WebAuthenticationBrokerContinuation', 'WebAccountProvider', 'ComponentUI', 'ProtocolForResults', 'ToastNotification', 'Print3DWorkflow', 'DialReceiver', 'DevicePairing', 'UserDataAccountsProvider', 'FilePickerExperience', 'LockScreenComponent', 'ContactPanel', 'PrintWorkflowForegroundTask', 'GameUIProvider', 'StartupTask', 'CommandLineLaunch', 'BarcodeScannerProvider', 'PrintSupportJobUI', 'PrintSupportSettingsUI', 'PhoneCallActivation', 'VpnForeground', 'PrintSupportEnterpriseManagementUI'], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027])) },
|
|
78
|
+
{ name: "get_PreviousExecutionState", vtableIndex: 7, signature: new DynWinRtMethodSig().addOut(DynWinRtType.enumType('Windows.ApplicationModel.Activation.ApplicationExecutionState', ['NotRunning', 'Running', 'Suspended', 'Terminated', 'ClosedByUser'], [0, 1, 2, 3, 4])) },
|
|
79
|
+
{ name: "get_SplashScreen", vtableIndex: 8, signature: new DynWinRtMethodSig().addOut(DynWinRtType.runtimeClass("Windows.ApplicationModel.Activation.SplashScreen", DynWinRtType.interface(WinGuid.parse("ca4d975c-d4d6-43f0-97c0-0833c6391c24")))) }
|
|
80
|
+
], []));
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
class IActivatedEventArgs {
|
|
84
|
+
_obj;
|
|
85
|
+
|
|
86
|
+
constructor(obj) {
|
|
87
|
+
this._obj = obj;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
static from(obj) {
|
|
91
|
+
return new IActivatedEventArgs(obj.cast(IID_IActivatedEventArgs));
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
static implementation(handlers) {
|
|
95
|
+
const h6 = __implementationHandler(handlers, "getKind", "Windows.ApplicationModel.Activation.IActivatedEventArgs");
|
|
96
|
+
const h7 = __implementationHandler(handlers, "getPreviousExecutionState", "Windows.ApplicationModel.Activation.IActivatedEventArgs");
|
|
97
|
+
const h8 = __implementationHandler(handlers, "getSplashScreen", "Windows.ApplicationModel.Activation.IActivatedEventArgs");
|
|
98
|
+
const plan = __getImplementationPlan();
|
|
99
|
+
return Object.freeze({ plan, dispatch(vtableIndex, args) {
|
|
100
|
+
if (!Array.isArray(args)) throw new TypeError('implementation arguments must be an array');
|
|
101
|
+
switch (vtableIndex) {
|
|
102
|
+
case 6: {
|
|
103
|
+
if (args.length !== 0) throw new TypeError('implementation argument count mismatch');
|
|
104
|
+
const result = __implementationSync(h6(), "Windows.ApplicationModel.Activation.IActivatedEventArgs.getKind");
|
|
105
|
+
return [DynWinRtValue.enumValue(DynWinRtType.enumType('Windows.ApplicationModel.Activation.ActivationKind', ['Launch', 'Search', 'ShareTarget', 'File', 'Protocol', 'FileOpenPicker', 'FileSavePicker', 'CachedFileUpdater', 'ContactPicker', 'Device', 'PrintTaskSettings', 'CameraSettings', 'RestrictedLaunch', 'AppointmentsProvider', 'Contact', 'LockScreenCall', 'VoiceCommand', 'LockScreen', 'PickerReturned', 'WalletAction', 'PickFileContinuation', 'PickSaveFileContinuation', 'PickFolderContinuation', 'WebAuthenticationBrokerContinuation', 'WebAccountProvider', 'ComponentUI', 'ProtocolForResults', 'ToastNotification', 'Print3DWorkflow', 'DialReceiver', 'DevicePairing', 'UserDataAccountsProvider', 'FilePickerExperience', 'LockScreenComponent', 'ContactPanel', 'PrintWorkflowForegroundTask', 'GameUIProvider', 'StartupTask', 'CommandLineLaunch', 'BarcodeScannerProvider', 'PrintSupportJobUI', 'PrintSupportSettingsUI', 'PhoneCallActivation', 'VpnForeground', 'PrintSupportEnterpriseManagementUI'], [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 1000, 1001, 1002, 1003, 1004, 1005, 1006, 1007, 1009, 1010, 1011, 1012, 1013, 1014, 1015, 1016, 1017, 1018, 1019, 1020, 1021, 1022, 1023, 1024, 1025, 1026, 1027]), ((v) => __implementationCheck(v, typeof v === 'number' && Number.isInteger(v) && v >= -2147483648 && v <= 2147483647, "Windows.ApplicationModel.Activation.IActivatedEventArgs.getKind.result"))(result))];
|
|
106
|
+
}
|
|
107
|
+
case 7: {
|
|
108
|
+
if (args.length !== 0) throw new TypeError('implementation argument count mismatch');
|
|
109
|
+
const result = __implementationSync(h7(), "Windows.ApplicationModel.Activation.IActivatedEventArgs.getPreviousExecutionState");
|
|
110
|
+
return [DynWinRtValue.enumValue(DynWinRtType.enumType('Windows.ApplicationModel.Activation.ApplicationExecutionState', ['NotRunning', 'Running', 'Suspended', 'Terminated', 'ClosedByUser'], [0, 1, 2, 3, 4]), ((v) => __implementationCheck(v, typeof v === 'number' && Number.isInteger(v) && v >= -2147483648 && v <= 2147483647, "Windows.ApplicationModel.Activation.IActivatedEventArgs.getPreviousExecutionState.result"))(result))];
|
|
111
|
+
}
|
|
112
|
+
case 8: {
|
|
113
|
+
if (args.length !== 0) throw new TypeError('implementation argument count mismatch');
|
|
114
|
+
const result = __implementationSync(h8(), "Windows.ApplicationModel.Activation.IActivatedEventArgs.getSplashScreen");
|
|
115
|
+
return [__implementationReference(result, DynWinRtType.runtimeClass("Windows.ApplicationModel.Activation.SplashScreen", DynWinRtType.interface(WinGuid.parse("ca4d975c-d4d6-43f0-97c0-0833c6391c24"))).iid(), "Windows.ApplicationModel.Activation.IActivatedEventArgs.getSplashScreen.result")];
|
|
116
|
+
}
|
|
117
|
+
default: throw new RangeError('unknown implementation vtable slot');
|
|
118
|
+
}
|
|
119
|
+
} });
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
static implement(handlers, ...additional) {
|
|
123
|
+
return DynWinRtImplementationHandle.create(this, handlers, additional, view => view._obj.release());
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
static fromImplementation(owner) {
|
|
127
|
+
if (!(owner instanceof DynWinRtImplementation) && !(owner instanceof DynWinRtImplementationHandle)) throw new TypeError('fromImplementation requires a DynWinRtImplementation controller or handle');
|
|
128
|
+
const value = owner.toValue();
|
|
129
|
+
try {
|
|
130
|
+
return this.from(value);
|
|
131
|
+
} finally {
|
|
132
|
+
value.release();
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
get kind() {
|
|
137
|
+
return (() => { const _m = _IActivatedEventArgs.method(6); return typeof _m.getI32 === 'function' ? _m.getI32(this._obj) : _IActivatedEventArgs.method(6).invoke(this._obj, []).toNumber(); })();
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
get previousExecutionState() {
|
|
141
|
+
return (() => { const _m = _IActivatedEventArgs.method(7); return typeof _m.getI32 === 'function' ? _m.getI32(this._obj) : _IActivatedEventArgs.method(7).invoke(this._obj, []).toNumber(); })();
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
get splashScreen() {
|
|
145
|
+
return ((v) => v.isNull() ? null : (__get_SplashScreen())._fromNative(v))((() => { const _m = _IActivatedEventArgs.method(8); return typeof _m.getObj === 'function' ? _m.getObj(this._obj) : _m.invoke(this._obj, []); })());
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
exports.IID_IActivatedEventArgs = IID_IActivatedEventArgs;
|
|
149
|
+
exports.IActivatedEventArgs = IActivatedEventArgs;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
// Generated by dynwinrt-codegen — do not edit
|
|
2
|
+
import { WinGuid, DynWinRtImplementation, DynWinRtImplementationHandle } from '@microsoft/dynwinrt';
|
|
3
|
+
import { User } from '../../system/User.js';
|
|
4
|
+
import { DynWinRtImplementationDescriptor, DynWinRtImplementationOptions, DynWinRtImplementationType } from '@microsoft/dynwinrt';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
/** Synchronous owner-thread handlers. Out parameters precede the logical result; FillArray inputs are capacities. */
|
|
8
|
+
export interface IActivatedEventArgsWithUserHandlers {
|
|
9
|
+
getUser(): User | null;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
export declare const IID_IActivatedEventArgsWithUser: WinGuid;
|
|
13
|
+
|
|
14
|
+
export declare class IActivatedEventArgsWithUser {
|
|
15
|
+
private constructor();
|
|
16
|
+
/** Validate synchronous handlers and create an independent interface descriptor. Required QI views must be supplied as additional descriptors: IActivatedEventArgs. */
|
|
17
|
+
static implementation(handlers: IActivatedEventArgsWithUserHandlers): DynWinRtImplementationDescriptor;
|
|
18
|
+
/** Create an instance with a stable typed value and explicit lifetime management. Required QI views must be supplied as additional descriptors: IActivatedEventArgs. */
|
|
19
|
+
static implement<const T extends readonly DynWinRtImplementationType[]>(handlers: IActivatedEventArgsWithUserHandlers, options: DynWinRtImplementationOptions<T>): DynWinRtImplementationHandle<IActivatedEventArgsWithUser>;
|
|
20
|
+
static implement(handlers: IActivatedEventArgsWithUserHandlers, ...additional: DynWinRtImplementationDescriptor[]): DynWinRtImplementationHandle<IActivatedEventArgsWithUser>;
|
|
21
|
+
/** Query an independent view, without consuming the handle's primary value. */
|
|
22
|
+
static fromImplementation(owner: DynWinRtImplementation | DynWinRtImplementationHandle<unknown>): IActivatedEventArgsWithUser;
|
|
23
|
+
|
|
24
|
+
/** @internal Cast a raw WinRT object to this interface. */
|
|
25
|
+
static from(obj: any): IActivatedEventArgsWithUser;
|
|
26
|
+
|
|
27
|
+
get user(): User;
|
|
28
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
// Generated by dynwinrt-codegen — do not edit
|
|
2
|
+
const { DynWinRtType, DynWinRtMethodSig, DynWinRtValue, DynWinRtArray, DynWinRtDelegate, WinGuid, DynWinRtInterfacePlan, DynWinRtImplementation, DynWinRtImplementationHandle } = require('@microsoft/dynwinrt');
|
|
3
|
+
let __m_______system_User_0023d9d8;
|
|
4
|
+
const __load_______system_User_0023d9d8 = () => (__m_______system_User_0023d9d8 ??= require('./../../system/User.js'));
|
|
5
|
+
const __get_User = () => __load_______system_User_0023d9d8().User;
|
|
6
|
+
|
|
7
|
+
const IID_IActivatedEventArgsWithUser = WinGuid.parse('1cf09b9e-9962-4936-80ff-afc8e8ae5c8c');
|
|
8
|
+
|
|
9
|
+
let _IActivatedEventArgsWithUserCache;
|
|
10
|
+
const _IActivatedEventArgsWithUser = new Proxy({}, {
|
|
11
|
+
get(_target, prop) {
|
|
12
|
+
_IActivatedEventArgsWithUserCache ??= DynWinRtType.registerInterface(
|
|
13
|
+
"IActivatedEventArgsWithUser", IID_IActivatedEventArgsWithUser)
|
|
14
|
+
.addMethod("get_User", new DynWinRtMethodSig().addOut(DynWinRtType.runtimeClass('Windows.System.User', DynWinRtType.interface(WinGuid.parse('df9a26c6-e746-4bcd-b5d4-120103c4209b')))));
|
|
15
|
+
const value = _IActivatedEventArgsWithUserCache[prop];
|
|
16
|
+
return typeof value === 'function' ? value.bind(_IActivatedEventArgsWithUserCache) : value;
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
function __implementationCheck(value, valid, label) {
|
|
22
|
+
if (!valid) throw new TypeError(`${label}: invalid implementation result`);
|
|
23
|
+
return value;
|
|
24
|
+
}
|
|
25
|
+
function __implementationField(value, name, label) {
|
|
26
|
+
if (value === null || typeof value !== 'object') throw new TypeError(`${label}: expected a named result object`);
|
|
27
|
+
const field = Object.getOwnPropertyDescriptor(value, name);
|
|
28
|
+
if (!field || !Object.hasOwn(field, 'value')) throw new TypeError(`${label}: missing data field ${name}`);
|
|
29
|
+
return field.value;
|
|
30
|
+
}
|
|
31
|
+
function __implementationArray(value, label, bytes = false, capacity = undefined) {
|
|
32
|
+
if (!Array.isArray(value) && !(bytes && value instanceof Uint8Array)) throw new TypeError(`${label}: expected an array`);
|
|
33
|
+
if (capacity !== undefined && value.length !== capacity) throw new RangeError(`${label}: FillArray result must match capacity ${capacity}`);
|
|
34
|
+
return Array.from(value);
|
|
35
|
+
}
|
|
36
|
+
function __implementationReference(value, iid, label) {
|
|
37
|
+
if (value === null) return DynWinRtValue.nullValue();
|
|
38
|
+
const raw = value instanceof DynWinRtValue ? value : value?._obj;
|
|
39
|
+
if (!(raw instanceof DynWinRtValue)) throw new TypeError(`${label}: expected a managed WinRT value or null`);
|
|
40
|
+
return raw.isNull() ? DynWinRtValue.nullValue() : raw.cast(iid);
|
|
41
|
+
}
|
|
42
|
+
function __implementationSync(value, label) {
|
|
43
|
+
if (value !== null && (typeof value === 'object' || typeof value === 'function') && typeof value.then === 'function') {
|
|
44
|
+
throw new TypeError(`${label}: implementation callbacks must return synchronously, not a Promise or thenable`);
|
|
45
|
+
}
|
|
46
|
+
return value;
|
|
47
|
+
}
|
|
48
|
+
function __implementationHandler(handlers, name, label) {
|
|
49
|
+
if (handlers === null || (typeof handlers !== 'object' && typeof handlers !== 'function')) throw new TypeError(`${label}: expected a handler object`);
|
|
50
|
+
let owner = handlers;
|
|
51
|
+
while (owner && owner !== Object.prototype && owner !== Function.prototype) {
|
|
52
|
+
const property = Object.getOwnPropertyDescriptor(owner, name);
|
|
53
|
+
if (property) {
|
|
54
|
+
const callback = property.value;
|
|
55
|
+
if (typeof callback !== 'function') throw new TypeError(`${label}: missing synchronous handler ${name} (accessors are not handlers)`);
|
|
56
|
+
if (Object.prototype.toString.call(callback) === '[object AsyncFunction]' || Object.prototype.toString.call(callback) === '[object AsyncGeneratorFunction]') {
|
|
57
|
+
throw new TypeError(`${label}.${name}: async handlers are not supported`);
|
|
58
|
+
}
|
|
59
|
+
return callback.bind(handlers);
|
|
60
|
+
}
|
|
61
|
+
owner = Object.getPrototypeOf(owner);
|
|
62
|
+
}
|
|
63
|
+
throw new TypeError(`${label}: missing synchronous handler ${name}`);
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
let __implementationPlan;
|
|
67
|
+
function __getImplementationPlan() {
|
|
68
|
+
return (__implementationPlan ??= DynWinRtInterfacePlan.create("Windows.ApplicationModel.Activation.IActivatedEventArgsWithUser", DynWinRtType.interface(WinGuid.parse("1cf09b9e-9962-4936-80ff-afc8e8ae5c8c")), [
|
|
69
|
+
{ name: "get_User", vtableIndex: 6, signature: new DynWinRtMethodSig().addOut(DynWinRtType.runtimeClass("Windows.System.User", DynWinRtType.interface(WinGuid.parse("df9a26c6-e746-4bcd-b5d4-120103c4209b")))) }
|
|
70
|
+
], [DynWinRtType.interface(WinGuid.parse("cf651713-cd08-4fd8-b697-a281b6544e2e")).iid()]));
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
class IActivatedEventArgsWithUser {
|
|
74
|
+
_obj;
|
|
75
|
+
|
|
76
|
+
constructor(obj) {
|
|
77
|
+
this._obj = obj;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
static from(obj) {
|
|
81
|
+
return new IActivatedEventArgsWithUser(obj.cast(IID_IActivatedEventArgsWithUser));
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
static implementation(handlers) {
|
|
85
|
+
const h6 = __implementationHandler(handlers, "getUser", "Windows.ApplicationModel.Activation.IActivatedEventArgsWithUser");
|
|
86
|
+
const plan = __getImplementationPlan();
|
|
87
|
+
return Object.freeze({ plan, dispatch(vtableIndex, args) {
|
|
88
|
+
if (!Array.isArray(args)) throw new TypeError('implementation arguments must be an array');
|
|
89
|
+
switch (vtableIndex) {
|
|
90
|
+
case 6: {
|
|
91
|
+
if (args.length !== 0) throw new TypeError('implementation argument count mismatch');
|
|
92
|
+
const result = __implementationSync(h6(), "Windows.ApplicationModel.Activation.IActivatedEventArgsWithUser.getUser");
|
|
93
|
+
return [__implementationReference(result, DynWinRtType.runtimeClass("Windows.System.User", DynWinRtType.interface(WinGuid.parse("df9a26c6-e746-4bcd-b5d4-120103c4209b"))).iid(), "Windows.ApplicationModel.Activation.IActivatedEventArgsWithUser.getUser.result")];
|
|
94
|
+
}
|
|
95
|
+
default: throw new RangeError('unknown implementation vtable slot');
|
|
96
|
+
}
|
|
97
|
+
} });
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
static implement(handlers, ...additional) {
|
|
101
|
+
return DynWinRtImplementationHandle.create(this, handlers, additional, view => view._obj.release());
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
static fromImplementation(owner) {
|
|
105
|
+
if (!(owner instanceof DynWinRtImplementation) && !(owner instanceof DynWinRtImplementationHandle)) throw new TypeError('fromImplementation requires a DynWinRtImplementation controller or handle');
|
|
106
|
+
const value = owner.toValue();
|
|
107
|
+
try {
|
|
108
|
+
return this.from(value);
|
|
109
|
+
} finally {
|
|
110
|
+
value.release();
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
get user() {
|
|
115
|
+
return ((v) => v.isNull() ? null : (__get_User())._fromNative(v))((() => { const _m = _IActivatedEventArgsWithUser.method(6); return typeof _m.getObj === 'function' ? _m.getObj(this._obj) : _m.invoke(this._obj, []); })());
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
exports.IID_IActivatedEventArgsWithUser = IID_IActivatedEventArgsWithUser;
|
|
119
|
+
exports.IActivatedEventArgsWithUser = IActivatedEventArgsWithUser;
|
package/dist/bindings/windows/application-model/activation/IApplicationViewActivatedEventArgs.d.ts
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
// Generated by dynwinrt-codegen — do not edit
|
|
2
|
+
import { WinGuid, DynWinRtImplementation, DynWinRtImplementationHandle } from '@microsoft/dynwinrt';
|
|
3
|
+
import { DynWinRtImplementationDescriptor, DynWinRtImplementationOptions, DynWinRtImplementationType } from '@microsoft/dynwinrt';
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
/** Synchronous owner-thread handlers. Out parameters precede the logical result; FillArray inputs are capacities. */
|
|
7
|
+
export interface IApplicationViewActivatedEventArgsHandlers {
|
|
8
|
+
getCurrentlyShownApplicationViewId(): number;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
export declare const IID_IApplicationViewActivatedEventArgs: WinGuid;
|
|
12
|
+
|
|
13
|
+
export declare class IApplicationViewActivatedEventArgs {
|
|
14
|
+
private constructor();
|
|
15
|
+
/** Validate synchronous handlers and create an independent interface descriptor. Required QI views must be supplied as additional descriptors: IActivatedEventArgs. */
|
|
16
|
+
static implementation(handlers: IApplicationViewActivatedEventArgsHandlers): DynWinRtImplementationDescriptor;
|
|
17
|
+
/** Create an instance with a stable typed value and explicit lifetime management. Required QI views must be supplied as additional descriptors: IActivatedEventArgs. */
|
|
18
|
+
static implement<const T extends readonly DynWinRtImplementationType[]>(handlers: IApplicationViewActivatedEventArgsHandlers, options: DynWinRtImplementationOptions<T>): DynWinRtImplementationHandle<IApplicationViewActivatedEventArgs>;
|
|
19
|
+
static implement(handlers: IApplicationViewActivatedEventArgsHandlers, ...additional: DynWinRtImplementationDescriptor[]): DynWinRtImplementationHandle<IApplicationViewActivatedEventArgs>;
|
|
20
|
+
/** Query an independent view, without consuming the handle's primary value. */
|
|
21
|
+
static fromImplementation(owner: DynWinRtImplementation | DynWinRtImplementationHandle<unknown>): IApplicationViewActivatedEventArgs;
|
|
22
|
+
|
|
23
|
+
/** @internal Cast a raw WinRT object to this interface. */
|
|
24
|
+
static from(obj: any): IApplicationViewActivatedEventArgs;
|
|
25
|
+
|
|
26
|
+
get currentlyShownApplicationViewId(): number;
|
|
27
|
+
}
|
package/dist/bindings/windows/application-model/activation/IApplicationViewActivatedEventArgs.js
ADDED
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
// Generated by dynwinrt-codegen — do not edit
|
|
2
|
+
const { DynWinRtType, DynWinRtMethodSig, DynWinRtValue, DynWinRtArray, DynWinRtDelegate, WinGuid, DynWinRtInterfacePlan, DynWinRtImplementation, DynWinRtImplementationHandle } = require('@microsoft/dynwinrt');
|
|
3
|
+
|
|
4
|
+
const IID_IApplicationViewActivatedEventArgs = WinGuid.parse('930cef4b-b829-40fc-88f4-8513e8a64738');
|
|
5
|
+
|
|
6
|
+
let _IApplicationViewActivatedEventArgsCache;
|
|
7
|
+
const _IApplicationViewActivatedEventArgs = new Proxy({}, {
|
|
8
|
+
get(_target, prop) {
|
|
9
|
+
_IApplicationViewActivatedEventArgsCache ??= DynWinRtType.registerInterface(
|
|
10
|
+
"IApplicationViewActivatedEventArgs", IID_IApplicationViewActivatedEventArgs)
|
|
11
|
+
.addMethod("get_CurrentlyShownApplicationViewId", new DynWinRtMethodSig().addOut(DynWinRtType.i32()));
|
|
12
|
+
const value = _IApplicationViewActivatedEventArgsCache[prop];
|
|
13
|
+
return typeof value === 'function' ? value.bind(_IApplicationViewActivatedEventArgsCache) : value;
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
function __implementationCheck(value, valid, label) {
|
|
19
|
+
if (!valid) throw new TypeError(`${label}: invalid implementation result`);
|
|
20
|
+
return value;
|
|
21
|
+
}
|
|
22
|
+
function __implementationField(value, name, label) {
|
|
23
|
+
if (value === null || typeof value !== 'object') throw new TypeError(`${label}: expected a named result object`);
|
|
24
|
+
const field = Object.getOwnPropertyDescriptor(value, name);
|
|
25
|
+
if (!field || !Object.hasOwn(field, 'value')) throw new TypeError(`${label}: missing data field ${name}`);
|
|
26
|
+
return field.value;
|
|
27
|
+
}
|
|
28
|
+
function __implementationArray(value, label, bytes = false, capacity = undefined) {
|
|
29
|
+
if (!Array.isArray(value) && !(bytes && value instanceof Uint8Array)) throw new TypeError(`${label}: expected an array`);
|
|
30
|
+
if (capacity !== undefined && value.length !== capacity) throw new RangeError(`${label}: FillArray result must match capacity ${capacity}`);
|
|
31
|
+
return Array.from(value);
|
|
32
|
+
}
|
|
33
|
+
function __implementationReference(value, iid, label) {
|
|
34
|
+
if (value === null) return DynWinRtValue.nullValue();
|
|
35
|
+
const raw = value instanceof DynWinRtValue ? value : value?._obj;
|
|
36
|
+
if (!(raw instanceof DynWinRtValue)) throw new TypeError(`${label}: expected a managed WinRT value or null`);
|
|
37
|
+
return raw.isNull() ? DynWinRtValue.nullValue() : raw.cast(iid);
|
|
38
|
+
}
|
|
39
|
+
function __implementationSync(value, label) {
|
|
40
|
+
if (value !== null && (typeof value === 'object' || typeof value === 'function') && typeof value.then === 'function') {
|
|
41
|
+
throw new TypeError(`${label}: implementation callbacks must return synchronously, not a Promise or thenable`);
|
|
42
|
+
}
|
|
43
|
+
return value;
|
|
44
|
+
}
|
|
45
|
+
function __implementationHandler(handlers, name, label) {
|
|
46
|
+
if (handlers === null || (typeof handlers !== 'object' && typeof handlers !== 'function')) throw new TypeError(`${label}: expected a handler object`);
|
|
47
|
+
let owner = handlers;
|
|
48
|
+
while (owner && owner !== Object.prototype && owner !== Function.prototype) {
|
|
49
|
+
const property = Object.getOwnPropertyDescriptor(owner, name);
|
|
50
|
+
if (property) {
|
|
51
|
+
const callback = property.value;
|
|
52
|
+
if (typeof callback !== 'function') throw new TypeError(`${label}: missing synchronous handler ${name} (accessors are not handlers)`);
|
|
53
|
+
if (Object.prototype.toString.call(callback) === '[object AsyncFunction]' || Object.prototype.toString.call(callback) === '[object AsyncGeneratorFunction]') {
|
|
54
|
+
throw new TypeError(`${label}.${name}: async handlers are not supported`);
|
|
55
|
+
}
|
|
56
|
+
return callback.bind(handlers);
|
|
57
|
+
}
|
|
58
|
+
owner = Object.getPrototypeOf(owner);
|
|
59
|
+
}
|
|
60
|
+
throw new TypeError(`${label}: missing synchronous handler ${name}`);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
let __implementationPlan;
|
|
64
|
+
function __getImplementationPlan() {
|
|
65
|
+
return (__implementationPlan ??= DynWinRtInterfacePlan.create("Windows.ApplicationModel.Activation.IApplicationViewActivatedEventArgs", DynWinRtType.interface(WinGuid.parse("930cef4b-b829-40fc-88f4-8513e8a64738")), [
|
|
66
|
+
{ name: "get_CurrentlyShownApplicationViewId", vtableIndex: 6, signature: new DynWinRtMethodSig().addOut(DynWinRtType.i32()) }
|
|
67
|
+
], [DynWinRtType.interface(WinGuid.parse("cf651713-cd08-4fd8-b697-a281b6544e2e")).iid()]));
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
class IApplicationViewActivatedEventArgs {
|
|
71
|
+
_obj;
|
|
72
|
+
|
|
73
|
+
constructor(obj) {
|
|
74
|
+
this._obj = obj;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
static from(obj) {
|
|
78
|
+
return new IApplicationViewActivatedEventArgs(obj.cast(IID_IApplicationViewActivatedEventArgs));
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
static implementation(handlers) {
|
|
82
|
+
const h6 = __implementationHandler(handlers, "getCurrentlyShownApplicationViewId", "Windows.ApplicationModel.Activation.IApplicationViewActivatedEventArgs");
|
|
83
|
+
const plan = __getImplementationPlan();
|
|
84
|
+
return Object.freeze({ plan, dispatch(vtableIndex, args) {
|
|
85
|
+
if (!Array.isArray(args)) throw new TypeError('implementation arguments must be an array');
|
|
86
|
+
switch (vtableIndex) {
|
|
87
|
+
case 6: {
|
|
88
|
+
if (args.length !== 0) throw new TypeError('implementation argument count mismatch');
|
|
89
|
+
const result = __implementationSync(h6(), "Windows.ApplicationModel.Activation.IApplicationViewActivatedEventArgs.getCurrentlyShownApplicationViewId");
|
|
90
|
+
return [DynWinRtValue.i32(((v) => __implementationCheck(v, typeof v === 'number' && Number.isInteger(v) && v >= -2147483648 && v <= 2147483647, "Windows.ApplicationModel.Activation.IApplicationViewActivatedEventArgs.getCurrentlyShownApplicationViewId.result"))(result))];
|
|
91
|
+
}
|
|
92
|
+
default: throw new RangeError('unknown implementation vtable slot');
|
|
93
|
+
}
|
|
94
|
+
} });
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
static implement(handlers, ...additional) {
|
|
98
|
+
return DynWinRtImplementationHandle.create(this, handlers, additional, view => view._obj.release());
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
static fromImplementation(owner) {
|
|
102
|
+
if (!(owner instanceof DynWinRtImplementation) && !(owner instanceof DynWinRtImplementationHandle)) throw new TypeError('fromImplementation requires a DynWinRtImplementation controller or handle');
|
|
103
|
+
const value = owner.toValue();
|
|
104
|
+
try {
|
|
105
|
+
return this.from(value);
|
|
106
|
+
} finally {
|
|
107
|
+
value.release();
|
|
108
|
+
}
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
get currentlyShownApplicationViewId() {
|
|
112
|
+
return (() => { const _m = _IApplicationViewActivatedEventArgs.method(6); return typeof _m.getI32 === 'function' ? _m.getI32(this._obj) : _IApplicationViewActivatedEventArgs.method(6).invoke(this._obj, []).toNumber(); })();
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
exports.IID_IApplicationViewActivatedEventArgs = IID_IApplicationViewActivatedEventArgs;
|
|
116
|
+
exports.IApplicationViewActivatedEventArgs = IApplicationViewActivatedEventArgs;
|