@omnia/fx 8.0.361-dev → 8.0.362-dev

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.
@@ -12,7 +12,7 @@ export type DefineType<T> = T;
12
12
  export type DefineSlot<TName extends string, TType extends Function, Description extends string = ""> = {
13
13
  [K in BuildSlotName<TName>]?: TType;
14
14
  };
15
- export type DefineExpose<TType extends Record<string, any>, Description extends string = ""> = {
15
+ export type DefineRef<TType extends Record<string, any>, Description extends string = ""> = {
16
16
  ref?: TType;
17
17
  };
18
18
  export type DefineEmit<TName extends string, TType extends Function, Description extends string = ""> = {
@@ -76,4 +76,4 @@ export { FocusDirective, LinkHandlerDirective } from "./directives";
76
76
  export { VueComponentBase, VueComponentConnect, getVuetifyAppClasses } from "./VueComponentBase";
77
77
  export type { VueComponentBaseEvents, VueComponentBaseProps } from "./VueComponentBase";
78
78
  export { createVueNode, definePropFunctionType, definePropObjectType, defineVue, defineVueComponent, getElementName, isElement, type VNodeEvents, type SetupComponentContext, type ExtractProps, type ExtractEmits, type ExtractSlots, type ConstructComponentProps, type ExtractVModels } from "./InternalDefineComponent";
79
- export { type DefineEmit, type DefineProp, type DefineExpose, type DefinePropTheming, type DefineSlot, type DefineType, type DefineVModel, type ItemType, type SelectItemKey, type ItemValueType } from "./DefineVueTypings";
79
+ export { type DefineEmit, type DefineProp, type DefineRef, type DefinePropTheming, type DefineSlot, type DefineType, type DefineVModel, type ItemType, type SelectItemKey, type ItemValueType } from "./DefineVueTypings";
@@ -302,20 +302,9 @@ export declare function getElementName(componentManifestId: guid): string;
302
302
  export declare function createVueNode(element: VNodeTypes | guid, props?: RawProps, children?: RawChildren | RawSlots): VNode;
303
303
  export declare function internalDVCByFS(injectOptions: any, options: any, extraOptions: any, register: any): (props: ExtractProps<Record<string, any>> & {} & SlotsToProps<ExtractSlotsFromProps<Record<string, any>>> & ExtractRefFromProps<Record<string, any>> & Omit<VueComponentBaseProps, string> & VNodeEvents) => any;
304
304
  export declare function isElement<TElement = typeof omfx>(element: string, cb: (elements: TElement) => any): boolean;
305
- declare module "@vue/runtime-dom" {
305
+ declare module "vue" {
306
306
  interface HTMLAttributes {
307
- $children?: any;
308
- }
309
- interface SVGAttributes {
310
- $children?: any;
311
- }
312
- }
313
- declare global {
314
- namespace JSX {
315
- interface IntrinsicAttributes {
316
- $children?: any;
317
- "v-directives"?: (d: Directives) => any;
318
- }
307
+ "v-directives"?: (d: Directives) => any;
319
308
  }
320
309
  }
321
310
  export {};
@@ -1,7 +1,7 @@
1
1
  import { Events, HTMLAttributes, VNode, VNodeArrayChildren, VNodeProps, VNodeRef } from "vue";
2
2
  import { Vue } from "./decorators";
3
3
  import * as models from "../models";
4
- import { guid } from "../models";
4
+ import { Directives, guid } from "../models";
5
5
  import { ConfirmDialogOptions, ConfirmDialogResponse } from "./confirmdialog/IVueConfirmDialog";
6
6
  import { ITheming } from "./theming";
7
7
  type VuetifyThemeItem = string | number | {
@@ -122,6 +122,7 @@ export type VueComponentBaseProps = Pick<HTMLAttributes, "id" | "class" | "style
122
122
  $children?: any;
123
123
  ref?: VNodeRef | string;
124
124
  slot?: string;
125
+ "v-directives"?: (d: Directives) => any;
125
126
  };
126
127
  export interface VueComponentBaseEvents {
127
128
  }
@@ -113,6 +113,7 @@ export declare class AppManagementInstanceApi implements IAppManagementInstanceA
113
113
  notification: import("@omnia/fx-models").FontAwesomeIcon;
114
114
  organization: import("@omnia/fx-models").FontAwesomeIcon;
115
115
  pageInformation: import("@omnia/fx-models").FontAwesomeIcon;
116
+ padding: import("@omnia/fx-models").FontAwesomeIcon;
116
117
  paste: import("@omnia/fx-models").FontAwesomeIcon;
117
118
  picker: import("@omnia/fx-models").FontAwesomeIcon;
118
119
  penClip: import("@omnia/fx-models").FontAwesomeIcon;
@@ -1,8 +1,8 @@
1
1
  import { LayoutRendererCanvasApi } from "@omnia/fx/models";
2
- import { DefineExpose, DefineProp } from "@omnia/fx/ux";
2
+ import { DefineRef, DefineProp } from "@omnia/fx/ux";
3
3
  import { LayoutCanvasStore } from "../";
4
4
  import "./LayoutRendererCanvas.stylex";
5
- type Props = DefineProp<"designRender", boolean, false, null> & DefineProp<"getApi", (inst: LayoutRendererCanvasApi, layoutCanvasStore: LayoutCanvasStore) => void, false, null> & DefineExpose<LayoutRendererCanvasApi> & DefineProp<"height", string, false, null> & DefineProp<"provider", string, false, null> & DefineProp<"disableScrollCompensation", boolean, false, false> & DefineProp<"noScroll", boolean, false, false>;
5
+ type Props = DefineProp<"designRender", boolean, false, null> & DefineProp<"getApi", (inst: LayoutRendererCanvasApi, layoutCanvasStore: LayoutCanvasStore) => void, false, null> & DefineRef<LayoutRendererCanvasApi> & DefineProp<"height", string, false, null> & DefineProp<"provider", string, false, null> & DefineProp<"disableScrollCompensation", boolean, false, false> & DefineProp<"noScroll", boolean, false, false>;
6
6
  declare const _default: (props: import("@omnia/fx/ux").ExtractProps<Props> & {} & {
7
7
  "v-slots"?: {} & Omit<{
8
8
  default?: import("vue").Slot;
@@ -84,6 +84,7 @@ export declare function useIcons(): {
84
84
  notification: FontAwesomeIcon;
85
85
  organization: FontAwesomeIcon;
86
86
  pageInformation: FontAwesomeIcon;
87
+ padding: FontAwesomeIcon;
87
88
  paste: FontAwesomeIcon;
88
89
  picker: FontAwesomeIcon;
89
90
  penClip: FontAwesomeIcon;
@@ -133,6 +133,7 @@ export declare class VersionedLayoutDefinitionEditorItem implements IEditorItem
133
133
  notification: import("@omnia/fx-models").FontAwesomeIcon;
134
134
  organization: import("@omnia/fx-models").FontAwesomeIcon;
135
135
  pageInformation: import("@omnia/fx-models").FontAwesomeIcon;
136
+ padding: import("@omnia/fx-models").FontAwesomeIcon;
136
137
  paste: import("@omnia/fx-models").FontAwesomeIcon;
137
138
  picker: import("@omnia/fx-models").FontAwesomeIcon;
138
139
  penClip: import("@omnia/fx-models").FontAwesomeIcon;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@omnia/fx",
3
3
  "license": "MIT",
4
- "version": "8.0.361-dev",
4
+ "version": "8.0.362-dev",
5
5
  "description": "Provide Omnia Fx typings and tooling for clientside Omnia development.",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1",
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "author": "Omnia Digital Workplace AB",
22
22
  "dependencies": {
23
- "@omnia/fx-models": "8.0.361-dev",
23
+ "@omnia/fx-models": "8.0.362-dev",
24
24
  "@microsoft/signalr": "6.0.1",
25
25
  "broadcast-channel": "4.8.0",
26
26
  "dayjs": "1.11.7",
package/postinstall.js CHANGED
@@ -2,8 +2,8 @@
2
2
  const fs = require('fs');
3
3
  const path = require('path');
4
4
 
5
- const srcPath = path.join(process.cwd(), "types/jsx.d.ts");
6
- const destPath = path.join(process.cwd(), "../../vue/jsx.d.ts");
5
+ const srcPath = path.join(process.cwd(), "types/index.d.ts");
6
+ const destPath = path.join(process.cwd(), "../../vue/jsx-runtime/index.d.ts");
7
7
 
8
8
  if (fs.existsSync(destPath)) {
9
9
  fs.copyFileSync(srcPath, destPath);
@@ -0,0 +1,25 @@
1
+ /* eslint-disable @typescript-eslint/prefer-ts-expect-error */
2
+ import type { NativeElements, ReservedProps, VNode } from '@vue/runtime-dom'
3
+
4
+ /**
5
+ * JSX namespace for usage with @jsxImportsSource directive
6
+ * when ts compilerOptions.jsx is 'react-jsx' or 'react-jsxdev'
7
+ * https://www.typescriptlang.org/tsconfig#jsxImportSource
8
+ */
9
+ export { h as jsx, h as jsxDEV, Fragment } from '@vue/runtime-dom'
10
+
11
+ export namespace JSX {
12
+ export interface Element extends VNode {}
13
+ export interface ElementClass {
14
+ $props: {}
15
+ }
16
+ export interface ElementAttributesProperty {
17
+ $props: {}
18
+ }
19
+ export interface IntrinsicElements extends NativeElements {
20
+ // allow arbitrary elements
21
+ // @ts-ignore suppress ts:2374 = Duplicate string index signature.
22
+ [name: string]: any
23
+ }
24
+ export interface IntrinsicAttributes extends Omit<ReservedProps, "ref"> {}
25
+ }
package/types/jsx.d.ts DELETED
@@ -1,22 +0,0 @@
1
- /* eslint-disable @typescript-eslint/prefer-ts-expect-error */
2
- // global JSX namespace registration
3
- // somehow we have to copy=pase the jsx-runtime types here to make TypeScript happy
4
- import type { NativeElements, ReservedProps, VNode } from '@vue/runtime-dom'
5
-
6
- declare global {
7
- namespace JSX {
8
- export interface Element extends VNode {}
9
- export interface ElementClass {
10
- $props: {}
11
- }
12
- export interface ElementAttributesProperty {
13
- $props: {}
14
- }
15
- export interface IntrinsicElements extends NativeElements {
16
- // allow arbitrary elements
17
- // @ts-ignore suppress ts:2374 = Duplicate string index signature.
18
- [name: string]: any
19
- }
20
- export interface IntrinsicAttributes extends Omit<ReservedProps, "ref"> {}
21
- }
22
- }