@omnia/fx 8.0.477-dev → 8.0.478-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.
- package/internal-do-not-import-from-here/ux/editorchrome/EditorChrome_testSetup.d.ts +31 -0
- package/internal-do-not-import-from-here/ux/editorchrome/buttons/ToolbarButton.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/editorchrome/chrome/EditorChrome.css.d.ts +0 -0
- package/internal-do-not-import-from-here/ux/editorchrome/hooks/index.d.ts +1 -0
- package/internal-do-not-import-from-here/ux/editorchrome/hooks/useRenderActions.d.ts +32 -0
- package/internal-do-not-import-from-here/ux/editorchrome/renderers/EditorChromeCompactRenderer.d.ts +11 -0
- package/internal-do-not-import-from-here/ux/editorchrome/renderers/EditorChromeRegularRenderer.d.ts +11 -0
- package/internal-do-not-import-from-here/ux/editorchrome/renderers/index.d.ts +2 -0
- package/internal-do-not-import-from-here/ux/editorchrome/stores/EditorChromeStoreV2.d.ts +1 -0
- package/package.json +2 -2
- package/internal-do-not-import-from-here/ux/editorchrome/buttons/ExtendedToolbarButton.css.d.ts +0 -77
- package/internal-do-not-import-from-here/ux/editorchrome/buttons/ExtendedToolbarButton.d.ts +0 -9
@@ -0,0 +1,31 @@
|
|
1
|
+
import { IChromeActionItem, IEditorChromeRegistration } from "@omnia/fx-models";
|
2
|
+
import { useEditorChromeStore } from "..";
|
3
|
+
export declare function useDefineEditorChromeTestSetup(editorStore: ReturnType<typeof useEditorChromeStore>): {
|
4
|
+
tabs: {
|
5
|
+
tab1: IEditorChromeRegistration;
|
6
|
+
tab2: IEditorChromeRegistration;
|
7
|
+
tab3: IEditorChromeRegistration;
|
8
|
+
};
|
9
|
+
buttons: {
|
10
|
+
header: {
|
11
|
+
toggleGrid: IChromeActionItem;
|
12
|
+
};
|
13
|
+
footer: {
|
14
|
+
active: IChromeActionItem;
|
15
|
+
noToggle: IChromeActionItem;
|
16
|
+
toggle: IChromeActionItem;
|
17
|
+
approve: IChromeActionItem;
|
18
|
+
cancel: IChromeActionItem;
|
19
|
+
extendedButton1: IChromeActionItem;
|
20
|
+
extendedButton2: IChromeActionItem;
|
21
|
+
extendedButton3: IChromeActionItem;
|
22
|
+
};
|
23
|
+
drawer: {
|
24
|
+
settingsTab: IChromeActionItem;
|
25
|
+
drawerToolbarSettings: IChromeActionItem;
|
26
|
+
drawerToolbarPreview: IChromeActionItem;
|
27
|
+
drawerToolbarNoToggle: IChromeActionItem;
|
28
|
+
};
|
29
|
+
};
|
30
|
+
registerTabs: () => void;
|
31
|
+
};
|
@@ -1,9 +1,9 @@
|
|
1
1
|
import { DefineProp, DefinePropTheming } from "@omnia/fx/ux";
|
2
2
|
import { IIcon } from "@omnia/fx-models";
|
3
|
-
type ToolbarButtonProps = DefinePropTheming & DefineProp<"icon", IIcon> & DefineProp<"active", boolean> & DefineProp<"position", "topBar" | "bottomBar" | "rightBar"> & DefineProp<"title", string> & DefineProp<"border", "left" | "right" | "left right" | "bottom">;
|
3
|
+
type ToolbarButtonProps = DefinePropTheming & DefineProp<"icon", IIcon> & DefineProp<"active", boolean> & DefineProp<"loading", boolean> & DefineProp<"disabled", boolean> & DefineProp<"position", "topBar" | "bottomBar" | "rightBar"> & DefineProp<"title", string> & DefineProp<"border", "left" | "right" | "left right" | "bottom">;
|
4
4
|
declare const _default: (props: import("@omnia/fx/ux").ExtractProps<ToolbarButtonProps> & {} & {
|
5
5
|
"v-slots"?: {} & Omit<{
|
6
6
|
default?: import("vue").Slot;
|
7
7
|
}, never>;
|
8
|
-
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "icon" | "border" | "position" | "title" | "colorSchemaType" | "active" | "colors"> & import("@omnia/fx/ux").VNodeEvents) => any;
|
8
|
+
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "icon" | "border" | "position" | "title" | "colorSchemaType" | "active" | "disabled" | "loading" | "colors"> & import("@omnia/fx/ux").VNodeEvents) => any;
|
9
9
|
export default _default;
|
File without changes
|
@@ -0,0 +1 @@
|
|
1
|
+
export * from "./useRenderActions";
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { IChromeActionItem } from "@omnia/fx-models";
|
2
|
+
export interface RenderActionsOptions {
|
3
|
+
/**
|
4
|
+
* The border style for the toolbar buttons
|
5
|
+
* @default "right"
|
6
|
+
*/
|
7
|
+
border?: "left" | "right" | "left right" | "bottom";
|
8
|
+
startBorder?: "left" | "right" | "left right" | "bottom";
|
9
|
+
/**
|
10
|
+
* Whether to disable the toggle functionality
|
11
|
+
* @default false
|
12
|
+
*/
|
13
|
+
disableToggle?: boolean;
|
14
|
+
/**
|
15
|
+
* The position of the toolbar
|
16
|
+
*/
|
17
|
+
position: "topBar" | "bottomBar" | "rightBar";
|
18
|
+
/**
|
19
|
+
* The rendering key to use for Vue reactivity
|
20
|
+
*/
|
21
|
+
renderingKey: string;
|
22
|
+
/**
|
23
|
+
* The sync function to call after button interactions
|
24
|
+
*/
|
25
|
+
syncFunction: () => void;
|
26
|
+
}
|
27
|
+
/**
|
28
|
+
* Custom hook for rendering action buttons with consistent double-click prevention and async handling
|
29
|
+
* @param options Configuration options for rendering actions
|
30
|
+
* @returns Function to render actions
|
31
|
+
*/
|
32
|
+
export declare function useRenderActions(options: RenderActionsOptions): (items: IChromeActionItem[]) => import("vue").VNodeChild[];
|
package/internal-do-not-import-from-here/ux/editorchrome/renderers/EditorChromeCompactRenderer.d.ts
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
import { DefineEmit, DefineProp } from "@omnia/fx/ux";
|
2
|
+
import { IIcon, guid } from "../../../models";
|
3
|
+
type EditorChromeProps = DefineProp<"icon", IIcon> & DefineProp<"title", string> & DefineProp<"subTitle", string> & DefineProp<"actionToolbarRoles", guid[]> & DefineProp<"hideCloseButton", boolean> & DefineEmit<"close", () => true>;
|
4
|
+
declare const _default: (props: import("@omnia/fx/ux").ExtractProps<EditorChromeProps> & {
|
5
|
+
onClose?: () => any;
|
6
|
+
} & {
|
7
|
+
"v-slots"?: {} & Omit<{
|
8
|
+
default?: import("vue").Slot;
|
9
|
+
}, never>;
|
10
|
+
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "icon" | "title" | "hideCloseButton" | "subTitle" | "actionToolbarRoles" | "emit:close"> & import("@omnia/fx/ux").VNodeEvents) => any;
|
11
|
+
export default _default;
|
package/internal-do-not-import-from-here/ux/editorchrome/renderers/EditorChromeRegularRenderer.d.ts
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
import { DefineEmit, DefineProp } from "@omnia/fx/ux";
|
2
|
+
import { IIcon, guid } from "../../../models";
|
3
|
+
type EditorChromeProps = DefineProp<"icon", IIcon> & DefineProp<"title", string> & DefineProp<"subTitle", string> & DefineProp<"actionToolbarRoles", guid[]> & DefineProp<"hideCloseButton", boolean> & DefineEmit<"close", () => true>;
|
4
|
+
declare const _default: (props: import("@omnia/fx/ux").ExtractProps<EditorChromeProps> & {
|
5
|
+
onClose?: () => any;
|
6
|
+
} & {
|
7
|
+
"v-slots"?: {} & Omit<{
|
8
|
+
default?: import("vue").Slot;
|
9
|
+
}, never>;
|
10
|
+
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "icon" | "title" | "hideCloseButton" | "subTitle" | "actionToolbarRoles" | "emit:close"> & import("@omnia/fx/ux").VNodeEvents) => any;
|
11
|
+
export default _default;
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"name": "@omnia/fx",
|
3
3
|
"license": "MIT",
|
4
|
-
"version": "8.0.
|
4
|
+
"version": "8.0.478-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.
|
23
|
+
"@omnia/fx-models": "8.0.478-dev",
|
24
24
|
"@microsoft/signalr": "6.0.1",
|
25
25
|
"broadcast-channel": "4.8.0",
|
26
26
|
"dayjs": "1.11.7",
|
package/internal-do-not-import-from-here/ux/editorchrome/buttons/ExtendedToolbarButton.css.d.ts
DELETED
@@ -1,77 +0,0 @@
|
|
1
|
-
export declare const ToolbarButtonStyles: {
|
2
|
-
themeStyling: {
|
3
|
-
input: {
|
4
|
-
stylex: typeof import("../../aurora/styling/styles/InputStyling").InputStyling.getFieldBlueprintStylex;
|
5
|
-
};
|
6
|
-
icons: {
|
7
|
-
stylex: typeof import("../../aurora/styling/styles").IconStyling.getIconBlueprintStylex;
|
8
|
-
};
|
9
|
-
colors: {
|
10
|
-
dividingOpacity: typeof import("../../aurora/styling/styles").colorStyling.dividingOpacity;
|
11
|
-
backgroundOpacity: typeof import("../../aurora/styling/styles").colorStyling.backgroundOpacity;
|
12
|
-
setColorOpacity: typeof import("@omnia/fx-models").setColorOpacity;
|
13
|
-
};
|
14
|
-
elementStyling: {
|
15
|
-
colorStylex: typeof import("../../aurora/styling/styles").colorStyling.getColorStylingx;
|
16
|
-
selectedTableRowStylex: typeof import("../../aurora/styling/styles").generalStylex.getSelectedTableRowStylex;
|
17
|
-
scrollStylex: typeof import("../../aurora/styling/styles").generalStylex.getScrollStylex;
|
18
|
-
borderDividerStylex: typeof import("../../aurora/styling/styles").generalStylex.getBorderDividerStylex;
|
19
|
-
hoverStylex: typeof import("../../aurora/styling/styles").generalStylex.getHoverStylex;
|
20
|
-
css: {
|
21
|
-
generateAllStylesSchema: () => {
|
22
|
-
[key: string]: string;
|
23
|
-
};
|
24
|
-
generateVariableStyle: (color: import("@omnia/fx-models").ColorValue) => {
|
25
|
-
[key: string]: string;
|
26
|
-
};
|
27
|
-
generateValueVariable: (color: import("@omnia/fx-models").ColorValue) => string;
|
28
|
-
};
|
29
|
-
};
|
30
|
-
typography: {
|
31
|
-
valueStylex: typeof import("../../aurora/styling/styles/Typography").TypographyStyling.typographyStylexFromValueStylex;
|
32
|
-
typeStylex: typeof import("../../aurora/styling/styles/Typography").TypographyStyling.typographyTypeStylex;
|
33
|
-
stylex: typeof import("../../aurora/styling/styles/Typography").TypographyStyling.typographyStylex;
|
34
|
-
fontStyling: typeof import("../../aurora/styling/styles/Typography").fontStyling;
|
35
|
-
typeStyling: (typographyType: import("@omnia/fx-models").TextStyleTypes | import("@omnia/fx-models").TextStyleType, size: import("@omnia/fx-models").TextStyleSize | import("@omnia/fx-models").TextStyleSizes, blueprint: import("@omnia/fx-models").TypographyBlueprint) => {
|
36
|
-
baseStyles: {
|
37
|
-
fontFamily: string;
|
38
|
-
fontSize: string;
|
39
|
-
fontWeight: number;
|
40
|
-
lineHeight: string;
|
41
|
-
fontStyle: string;
|
42
|
-
textTransform: any;
|
43
|
-
letterSpacing: string;
|
44
|
-
textDecoration: string;
|
45
|
-
$nest: {};
|
46
|
-
};
|
47
|
-
mediumStyles: any;
|
48
|
-
smallStyles: any;
|
49
|
-
queryOnSmallScreen: import("typestyle/lib/types").MediaQuery;
|
50
|
-
queryOnMediumScreen: import("typestyle/lib/types").MediaQuery;
|
51
|
-
};
|
52
|
-
};
|
53
|
-
spacing: {
|
54
|
-
paddingStylex: (value: import("@omnia/fx-models").Spacing | import("@omnia/fx-models").SpacingValue, blueprint?: ReturnType<typeof import("@omnia/fx/ux").useSpacingBlueprintStore>) => import("@omnia/fx/ux").StylexValue;
|
55
|
-
marginStylex: (value: import("@omnia/fx-models").Spacing | import("@omnia/fx-models").SpacingValue, blueprint?: ReturnType<typeof import("@omnia/fx/ux").useSpacingBlueprintStore>) => import("@omnia/fx/ux").StylexValue;
|
56
|
-
value: (value: import("@omnia/fx-models").SpacingValue, blueprint?: ReturnType<typeof import("@omnia/fx/ux").useSpacingBlueprintStore>) => number;
|
57
|
-
values: (value: import("@omnia/fx-models").Spacing, blueprint?: ReturnType<typeof import("@omnia/fx/ux").useSpacingBlueprintStore>) => import("@omnia/fx-models").Spacing;
|
58
|
-
};
|
59
|
-
fill: {
|
60
|
-
stylex: typeof import("../../aurora/styling/styles").FillStyling.getBlueprintFillStylex;
|
61
|
-
stylexObject: typeof import("../../aurora/styling/styles").FillStyling.getBlueprintFillObjectStylex;
|
62
|
-
};
|
63
|
-
border: {
|
64
|
-
stylex: typeof import("../../aurora/styling/styles").BorderStyling.getBlueprintBorderStylex;
|
65
|
-
stylexObject: typeof import("../../aurora/styling/styles").BorderStyling.getBlueprintBorderObjectStylex;
|
66
|
-
};
|
67
|
-
background: {
|
68
|
-
stylex: typeof import("../../aurora/styling/styles").BackgroundStyling.getBlueprintBackgroundStylex;
|
69
|
-
stylexObject: typeof import("../../aurora/styling/styles").BackgroundStyling.getBlueprintBackgroundObjectStylex;
|
70
|
-
};
|
71
|
-
text: {
|
72
|
-
stylex: typeof import("../../aurora/styling/styles").TextStyles.getBlueprintTextStylex;
|
73
|
-
object: typeof import("../../aurora/styling/styles").TextStyles.getBlueprintTextStylingObject;
|
74
|
-
};
|
75
|
-
};
|
76
|
-
wrapper: (dark: boolean, selected: boolean) => string;
|
77
|
-
};
|
@@ -1,9 +0,0 @@
|
|
1
|
-
import { DefineProp, DefinePropTheming } from "@omnia/fx/ux";
|
2
|
-
import { IIcon } from "@omnia/fx-models";
|
3
|
-
type ToolbarButtonProps = DefinePropTheming & DefineProp<"icon", IIcon> & DefineProp<"active", boolean> & DefineProp<"title", string> & DefineProp<"border", "left" | "right" | "left right">;
|
4
|
-
declare const _default: (props: import("@omnia/fx/ux").ExtractProps<ToolbarButtonProps> & {} & {
|
5
|
-
"v-slots"?: {} & Omit<{
|
6
|
-
default?: import("vue").Slot;
|
7
|
-
}, never>;
|
8
|
-
} & {} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "icon" | "border" | "title" | "colorSchemaType" | "active" | "colors"> & import("@omnia/fx/ux").VNodeEvents) => any;
|
9
|
-
export default _default;
|