@omnia/fx 8.0.247-dev → 8.0.248-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/DefineVueTypings.d.ts +2 -1
- package/internal-do-not-import-from-here/ux/Exposes.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/draggable/Draggable.d.ts +6 -6
- package/internal-do-not-import-from-here/ux/oxide/list/List.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/oxide/panel/Panel.d.ts +0 -4
- package/internal-do-not-import-from-here/ux/oxide/select/Select.d.ts +3 -3
- package/package.json +2 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Prop, PropType, VNodeChild } from "vue";
|
2
|
-
import { ColorSchemaType, ColorSchemaTypes } from "@omnia/fx-models";
|
2
|
+
import { ColorSchemaType, ColorSchemaTypes, guid } from "@omnia/fx-models";
|
3
3
|
import { ColorSchemaStoreType } from "./aurora";
|
4
4
|
export type Slot<T extends any[] = any[]> = (...args: T) => VNodeChild;
|
5
5
|
export type VModelKeyNameInJsxElement<N extends string> = N extends "" ? "v-model" : `v-model:${N}`;
|
@@ -30,6 +30,7 @@ export type DefineVModel<TName extends string, TType, Required extends boolean =
|
|
30
30
|
} & {
|
31
31
|
[key in VModelKeyNameInProps<TName>]: TType;
|
32
32
|
};
|
33
|
+
export type ItemValueType<T> = string | ((item: T) => string | guid | number | Object);
|
33
34
|
export type ItemType<T> = T extends readonly (infer U)[] ? U : never;
|
34
35
|
export type SelectItemKey<T = Record<string, any>> = boolean | null | undefined | string | readonly (string | number)[] | ((item: T, fallback?: any) => any);
|
35
36
|
export type DefinePropTheming = DefineProp<"colorSchemaType", ColorSchemaTypes | ColorSchemaType> & DefineProp<"container", boolean> & DefineProp<"colors", ColorSchemaStoreType>;
|
@@ -78,4 +78,4 @@ export { FocusDirective, LinkHandlerDirective } from "./directives";
|
|
78
78
|
export { VueComponentBase, VueComponentConnect, getVuetifyAppClasses } from "./VueComponentBase";
|
79
79
|
export type { VueComponentBaseEvents, VueComponentBaseProps } from "./VueComponentBase";
|
80
80
|
export { createVueNode, definePropFunctionType, definePropObjectType, defineVue, defineVueComponent, getElementName, isElement, type SetupComponentContext, type ExtractProps, type ExtractEmits, type ExtractSlots, type ConstructComponentProps, type ExtractVModels } from "./InternalDefineComponent";
|
81
|
-
export { type DefineEmit, type DefineProp, type DefinePropClass, type DefinePropTheming, type DefineSlot, type DefineType, type DefineVModel, type ItemType, type SelectItemKey } from "./DefineVueTypings";
|
81
|
+
export { type DefineEmit, type DefineProp, type DefinePropClass, type DefinePropTheming, type DefineSlot, type DefineType, type DefineVModel, type ItemType, type SelectItemKey, type ItemValueType } from "./DefineVueTypings";
|
@@ -1,8 +1,8 @@
|
|
1
1
|
import { ODraggableVariants } from "@omnia/fx-models";
|
2
|
-
import { DefineEmit, DefineProp, DefineSlot, DefineVModel,
|
2
|
+
import { DefineEmit, DefineProp, DefineSlot, DefineVModel, ItemValueType } from "@omnia/fx/ux";
|
3
3
|
import { VNodeChild } from "vue";
|
4
|
-
export type DraggableProps = DefineVModel<"",
|
5
|
-
declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<DraggableProps
|
4
|
+
export type DraggableProps<T> = DefineVModel<"", T[], false, null, false, "The draggable items."> & DefineProp<"itemTitle", string | ((item: T) => VNodeChild), false, null, "Specify title property of an item or provide custom render it."> & DefineProp<"itemValue", ItemValueType<T>, false, null, "Property on supplied items that contains its value."> & DefineProp<"disabledItem", string, false, null, "Specify a class name for items that are disabled for sortable."> & DefineProp<"placeholderClass", string, false, null, "Custom styles of the placeholder."> & DefineProp<"variant", ODraggableVariants, false, "default", "Applies a distinct style to the component."> & DefineSlot<"item", (item: T, index: number) => VNodeChild, "Define a custom item appearance."> & DefineEmit<"sort:start", () => true, "Emit a sort start event."> & DefineEmit<"sort:end", () => true, "Emit a sort end event.">;
|
5
|
+
declare const _default: <T extends unknown>(props: import("@omnia/fx/ux").ConstructComponentProps<DraggableProps<T>>) => {
|
6
6
|
$: import("vue").ComponentInternalInstance;
|
7
7
|
$data: {};
|
8
8
|
$props: {};
|
@@ -38,11 +38,11 @@ declare const _default: (props: import("@omnia/fx/ux").ConstructComponentProps<D
|
|
38
38
|
};
|
39
39
|
$forceUpdate: () => void;
|
40
40
|
$nextTick: typeof import("vue").nextTick;
|
41
|
-
$watch<
|
41
|
+
$watch<T_1 extends string | ((...args: any) => any)>(source: T_1, cb: T_1 extends (...args: any) => infer R ? (args_0: R, args_1: R, args_2: (cleanupFn: () => void) => void) => any : (args_0: any, args_1: any, args_2: (cleanupFn: () => void) => void) => any, options?: import("vue").WatchOptions<boolean>): import("vue").WatchStopHandle;
|
42
42
|
} & Omit<{}, never> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {} & {
|
43
|
-
propsDefinition: import("@omnia/fx/ux").ExtractProps<DraggableProps
|
43
|
+
propsDefinition: import("@omnia/fx/ux").ExtractProps<DraggableProps<T>> & {
|
44
44
|
"v-slots"?: {
|
45
|
-
item?: (
|
45
|
+
item?: (item: T, index: number) => VNodeChild;
|
46
46
|
} & Omit<{
|
47
47
|
default?: import("vue").Slot;
|
48
48
|
}, "item">;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { DefineProp, DefinePropClass, DefinePropTheming, DefineSlot, DefineVModel } from "@omnia/fx/ux";
|
1
|
+
import { DefineProp, DefinePropClass, DefinePropTheming, DefineSlot, DefineVModel, ItemValueType } from "@omnia/fx/ux";
|
2
2
|
import { ComponentPublicInstance, VNodeChild } from "vue";
|
3
3
|
import { OListLineTypes, OListTypes } from "@omnia/fx-models";
|
4
4
|
export interface IListItem<T> {
|
@@ -6,7 +6,7 @@ export interface IListItem<T> {
|
|
6
6
|
index: number;
|
7
7
|
Item: typeof o.list.item;
|
8
8
|
}
|
9
|
-
export type OListProps<T> = DefinePropTheming & DefinePropClass & DefineVModel<"", T[], false, null, true, "An array of strings or objects used for automatically generating children components."> & DefineProp<"lines", OListLineTypes, false, null, "Designates a minimum-height for all the children o-list-item components. THis props uses line-clamp."> & DefineProp<"nav", boolean, false, false, "An alternative styling that reduces o-list-item width and rounds the corners. Typically used with o-navigation-drawer."> & DefineProp<"toned", boolean, false, false> & DefineProp<"divider", boolean, false, false, "If true, each item will have a bottom divider"> & DefineProp<"variant", OListTypes, false, null, "Applies a distinct style to the component."> & DefineProp<"drag", boolean, false, false, "Enable draggable row."> & DefineProp<"navigation", boolean | ((item: T) => boolean), false, false, "The row navigation."> & DefineProp<"remove", boolean | ((item: T) => boolean), false, false, "Enable removable row."> & DefineProp<"itemValue",
|
9
|
+
export type OListProps<T> = DefinePropTheming & DefinePropClass & DefineVModel<"", T[], false, null, true, "An array of strings or objects used for automatically generating children components."> & DefineProp<"lines", OListLineTypes, false, null, "Designates a minimum-height for all the children o-list-item components. THis props uses line-clamp."> & DefineProp<"nav", boolean, false, false, "An alternative styling that reduces o-list-item width and rounds the corners. Typically used with o-navigation-drawer."> & DefineProp<"toned", boolean, false, false> & DefineProp<"divider", boolean, false, false, "If true, each item will have a bottom divider"> & DefineProp<"variant", OListTypes, false, null, "Applies a distinct style to the component."> & DefineProp<"drag", boolean, false, false, "Enable draggable row."> & DefineProp<"navigation", boolean | ((item: T) => boolean), false, false, "The row navigation."> & DefineProp<"remove", boolean | ((item: T) => boolean), false, false, "Enable removable row."> & DefineProp<"itemValue", ItemValueType<T>, false, null, "Property on supplied items that contains its value."> & DefineSlot<"item", (item: IListItem<T>) => VNodeChild>;
|
10
10
|
declare const _default: <T extends unknown>(props: import("@omnia/fx/ux").ConstructComponentProps<OListProps<T>>) => {
|
11
11
|
$: import("vue").ComponentInternalInstance;
|
12
12
|
$data: {};
|
@@ -12,7 +12,6 @@ declare const _default: {
|
|
12
12
|
type: import("vue").PropType<boolean>;
|
13
13
|
};
|
14
14
|
toned: {
|
15
|
-
/**Top content in a tab */
|
16
15
|
type: import("vue").PropType<boolean>;
|
17
16
|
};
|
18
17
|
grouped: {
|
@@ -63,7 +62,6 @@ declare const _default: {
|
|
63
62
|
type: import("vue").PropType<boolean>;
|
64
63
|
};
|
65
64
|
toned: {
|
66
|
-
/**Top content in a tab */
|
67
65
|
type: import("vue").PropType<boolean>;
|
68
66
|
};
|
69
67
|
grouped: {
|
@@ -123,7 +121,6 @@ declare const _default: {
|
|
123
121
|
type: import("vue").PropType<boolean>;
|
124
122
|
};
|
125
123
|
toned: {
|
126
|
-
/**Top content in a tab */
|
127
124
|
type: import("vue").PropType<boolean>;
|
128
125
|
};
|
129
126
|
grouped: {
|
@@ -180,7 +177,6 @@ declare const _default: {
|
|
180
177
|
type: import("vue").PropType<boolean>;
|
181
178
|
};
|
182
179
|
toned: {
|
183
|
-
/**Top content in a tab */
|
184
180
|
type: import("vue").PropType<boolean>;
|
185
181
|
};
|
186
182
|
grouped: {
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { DefineEmit, DefineSlot, ItemType, SelectItemKey, ValidationRule } from "@omnia/fx/ux";
|
1
|
+
import { DefineEmit, DefineSlot, ItemType, ItemValueType, SelectItemKey, ValidationRule } from "@omnia/fx/ux";
|
2
2
|
import { VNodeChild } from "vue";
|
3
3
|
import { IIcon, OSelectRenderingItem } from "@omnia/fx-models";
|
4
4
|
import { VSelectSlots } from "../../ComponentTypings";
|
@@ -34,7 +34,7 @@ declare const _default: <TItem extends readonly any[], TModel extends unknown>(p
|
|
34
34
|
} & {
|
35
35
|
itemTitle?: SelectItemKey<ItemType<TItem>>;
|
36
36
|
} & {
|
37
|
-
itemValue?:
|
37
|
+
itemValue?: ItemValueType<ItemType<TItem>>;
|
38
38
|
} & {
|
39
39
|
variant?: "default" | "add" | "picker" | "combobox";
|
40
40
|
} & {
|
@@ -128,7 +128,7 @@ declare const _default: <TItem extends readonly any[], TModel extends unknown>(p
|
|
128
128
|
} & {
|
129
129
|
itemTitle?: SelectItemKey<ItemType<TItem>>;
|
130
130
|
} & {
|
131
|
-
itemValue?:
|
131
|
+
itemValue?: ItemValueType<ItemType<TItem>>;
|
132
132
|
} & {
|
133
133
|
variant?: "default" | "add" | "picker" | "combobox";
|
134
134
|
} & {
|
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.248-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": "Precio Fishbone",
|
22
22
|
"dependencies": {
|
23
|
-
"@omnia/fx-models": "8.0.
|
23
|
+
"@omnia/fx-models": "8.0.248-dev",
|
24
24
|
"@microsoft/signalr": "6.0.1",
|
25
25
|
"broadcast-channel": "4.8.0",
|
26
26
|
"dayjs": "1.11.7",
|