@omnia/fx 8.0.105-dev → 8.0.106-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 +6 -0
- package/internal-do-not-import-from-here/ux/Exposes.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/InternalDefineComponent.d.ts +6 -5
- package/internal-do-not-import-from-here/ux/colorschemapicker/ColorSchemaDefinitionPicker.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/filterpicker/FilterPicker.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/multitextinput/MultiTextInput.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/oxide/datatable/DataTable.d.ts +2 -2
- package/internal-do-not-import-from-here/ux/oxide/datatable/DataTableServer.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/draggable/Draggable.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/panel/Panel.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/select/Select.d.ts +1159 -586
- package/internal-do-not-import-from-here/ux/oxide/tab/Tabs.d.ts +1 -1
- package/internal-do-not-import-from-here/ux/oxide/treeview/Treeview.d.ts +3 -3
- package/internal-do-not-import-from-here/ux/velcron/components/definitionpicker/DefinitionPicker.d.ts +1 -1
- package/package.json +4 -4
@@ -1,4 +1,6 @@
|
|
1
1
|
import { Prop, PropType, VNodeChild } from "vue";
|
2
|
+
import { ColorSchemaType, ColorSchemaTypes } from "@omnia/fx-models";
|
3
|
+
import { useColorSchemaStore } from "./theming-v2";
|
2
4
|
export type Slot<T extends any[] = any[]> = (...args: T) => VNodeChild;
|
3
5
|
export type VModelKeyNameInJsxElement<N extends string> = N extends "" ? "v-model" : `v-model:${N}`;
|
4
6
|
export type VModelEmitsInJsxElement<N extends string> = N extends "" ? "onUpdate:modelValue" : `onUpdate:${N}`;
|
@@ -25,6 +27,10 @@ export type DefineVModel<TName extends string, TType, Required extends boolean =
|
|
25
27
|
} & {
|
26
28
|
[key in VModelKeyNameInProps<TName>]: TType;
|
27
29
|
};
|
30
|
+
export type ItemType<T> = T extends readonly (infer U)[] ? U : never;
|
31
|
+
export type SelectItemKey<T = Record<string, any>> = boolean | null | undefined | string | readonly (string | number)[] | ((item: T, fallback?: any) => any);
|
32
|
+
export type DefinePropTheming = DefineProp<"colorSchemaType", ColorSchemaTypes | ColorSchemaType> & DefineProp<"container", boolean> & DefineProp<"colors", ReturnType<typeof useColorSchemaStore>>;
|
33
|
+
export type DefinePropClass = DefineProp<"class", String | String[]>;
|
28
34
|
type BuildVModelName<TName extends string, TPropType, Required extends boolean = false> = Required extends false ? {
|
29
35
|
[key in VModelEmitsInJsxElement<TName>]: {
|
30
36
|
type: PropType<(value: TPropType) => any | void>;
|
@@ -77,5 +77,5 @@ export type { FocusOption, ScrollOption, LinkHandlerOptions, } from "./directive
|
|
77
77
|
export { FocusDirective, ScrollDirective, LinkHandlerDirective, } from "./directives";
|
78
78
|
export { VueComponentBase, getVuetifyAppClasses, VueComponentConnect, } from "./VueComponentBase";
|
79
79
|
export type { VueComponentBaseProps, VueComponentBaseEvents, } from "./VueComponentBase";
|
80
|
-
export { defineVueComponent, definePropFunctionType, definePropObjectType, defineVue, createVueNode, getElementName, isElement, type
|
81
|
-
export { type DefineProp, type DefineVModel, type DefineEmit, type DefineSlot } from "./DefineVueTypings";
|
80
|
+
export { defineVueComponent, definePropFunctionType, definePropObjectType, defineVue, createVueNode, getElementName, isElement, type SetupComponentContext } from "./InternalDefineComponent";
|
81
|
+
export { type DefineProp, type DefineVModel, type DefineEmit, type DefineSlot, type DefinePropTheming, type DefinePropClass, type SelectItemKey, type ItemType } from "./DefineVueTypings";
|
@@ -2,6 +2,7 @@ import { SubscriptionHandler } from "@omnia/fx";
|
|
2
2
|
import { ComponentInjectOptions, ComponentObjectPropsOptions, ComponentOptions, ComponentOptionsBase, ComponentOptionsMixin, ComponentPropsOptions, ComponentPublicInstance, ComputedOptions, CreateComponentPublicInstance, DefineComponent, EmitsOptions, ExtractDefaultPropTypes, MethodOptions, ObjectEmitsOptions, Prop, PropType, RenderFunction, Slot, SlotsType, VNode, VNodeArrayChildren, VNodeProps, VNodeTypes, watch, watchEffect } from "vue";
|
3
3
|
import { LooseRequired, Prettify, UnionToIntersection } from "@vue/shared";
|
4
4
|
import { ComponentBundleManifest, Directives, GuidValue, ThemeableComponentProps } from "@omnia/fx-models";
|
5
|
+
import { VueComponentBaseProps } from ".";
|
5
6
|
import { IValidator } from "./models/Validation";
|
6
7
|
import { useColorSchemaSetup } from "./use/UseColorSchemaSetup";
|
7
8
|
export declare function definePropFunctionType<T>(): PropType<T>;
|
@@ -133,18 +134,18 @@ type InternalSetupContext<ExtractedPropsType, Props, E = EmitsOptions, S extends
|
|
133
134
|
watchEffect: typeof watchEffect;
|
134
135
|
subscriptions: SubscriptionHandler;
|
135
136
|
};
|
136
|
-
export type
|
137
|
+
export type SetupComponentContext<TProp = {}, E extends EmitsOptions = {}, S extends Object = {}> = InternalSetupContext<TProp, TProp, E, S>;
|
137
138
|
interface ComponentOptionsBaseExtends<Props, RawBindings, D, C extends ComputedOptions, M extends MethodOptions, Mixin extends ComponentOptionsMixin, Extends extends ComponentOptionsMixin, E extends EmitsOptions, EE extends string = string, Defaults = {}, I extends ComponentInjectOptions = {}, II extends string = string> extends ComponentOptionsBase<ExcludeJsxPropKeys<Props>, RawBindings, D, C, M, Mixin, Extends, E, EE, Defaults, I, II> {
|
138
139
|
setup?: (this: void, ctx: InternalSetupContext<LooseRequired<ExcludeJsxPropKeys<Props> & Prettify<UnwrapMixinsType<IntersectionMixin<Mixin> & IntersectionMixin<Extends>, "P">>>, Props, E>) => Promise<RawBindings> | RawBindings | RenderFunction | void;
|
139
140
|
}
|
140
|
-
export declare function defineVueComponent<Props extends Record<string, any>, E extends EmitsOptions = {}, EE extends string = string, S extends Object = {}>(setup: (ctx:
|
141
|
+
export declare function defineVueComponent<Props extends Record<string, any>, E extends EmitsOptions = {}, EE extends string = string, S extends Object = {}>(setup: (ctx: SetupComponentContext<Props, E, S>) => RenderFunction | Promise<RenderFunction>, options?: Pick<ComponentOptions, "name" | "inheritAttrs"> & {
|
141
142
|
props?: (keyof Props)[];
|
142
143
|
emits?: E | EE[];
|
143
144
|
slots?: S;
|
144
|
-
}, register?: (manifest: ComponentBundleManifest, component: TsxComponentV3<Props, {}, {}, {}, {}, {}, {}, E, EE>) => void): ((props: Props & EmitsToProps<E> & SlotsToProps<S>) => ComponentPublicInstance & {
|
145
|
-
propsDefinition: Props & EmitsToProps<E>;
|
145
|
+
}, register?: (manifest: ComponentBundleManifest, component: TsxComponentV3<Props, {}, {}, {}, {}, {}, {}, E, EE>) => void): ((props: Props & EmitsToProps<E> & SlotsToProps<S> & Omit<VueComponentBaseProps, keyof Props>) => ComponentPublicInstance & {
|
146
|
+
propsDefinition: Props & EmitsToProps<E> & Omit<VueComponentBaseProps, keyof Props>;
|
146
147
|
} & VNode);
|
147
|
-
export declare function defineVueComponent<Props extends Record<string, any>, E extends EmitsOptions = {}, EE extends string = string, S extends SlotsType = {}>(setup: (ctx:
|
148
|
+
export declare function defineVueComponent<Props extends Record<string, any>, E extends EmitsOptions = {}, EE extends string = string, S extends SlotsType = {}>(setup: (ctx: SetupComponentContext<Props, E, S>) => RenderFunction | Promise<RenderFunction>, options?: Pick<ComponentOptions, "name" | "inheritAttrs"> & {
|
148
149
|
props?: ComponentObjectPropsOptions<Props>;
|
149
150
|
emits?: E | EE[];
|
150
151
|
slots?: S;
|
package/internal-do-not-import-from-here/ux/colorschemapicker/ColorSchemaDefinitionPicker.d.ts
CHANGED
@@ -412,10 +412,10 @@ declare const _default: {
|
|
412
412
|
};
|
413
413
|
label?: string;
|
414
414
|
class?: String | String[];
|
415
|
+
items?: ColorSchema[];
|
415
416
|
"v-model"?: ColorSchema;
|
416
417
|
"onUpdate:modelValue"?: (value: ColorSchema) => any;
|
417
418
|
modelValue?: ColorSchema;
|
418
|
-
items?: ColorSchema[];
|
419
419
|
}>, "onUpdate:modelValue"> & {
|
420
420
|
"onUpdate:modelValue"?: (colorSchema: ColorSchema) => any;
|
421
421
|
};
|
@@ -253,10 +253,10 @@ declare const _default: {
|
|
253
253
|
} & {
|
254
254
|
class?: String | String[];
|
255
255
|
size?: "small" | "default" | "x-small";
|
256
|
+
grow?: boolean;
|
256
257
|
"v-model"?: FilterPickerFilter[];
|
257
258
|
"onUpdate:modelValue"?: (value: FilterPickerFilter[]) => any;
|
258
259
|
modelValue?: FilterPickerFilter[];
|
259
|
-
grow?: boolean;
|
260
260
|
"v-slots"?: {
|
261
261
|
default?: import("../DefineVueTypings").Slot<any[]>;
|
262
262
|
} & {
|
@@ -34,7 +34,7 @@ declare const _default: <T1 extends unknown, T2 extends unknown>(props: {
|
|
34
34
|
"v-slots"?: {
|
35
35
|
default?: import("vue").Slot;
|
36
36
|
};
|
37
|
-
}) => {
|
37
|
+
} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "mode" | "label" | "disabled" | "items" | "v-model" | "onUpdate:modelValue" | "modelValue" | "autofocus" | "rules" | "itemValue" | "openMenu" | "defaultValueItem" | "hideEditGrid" | "isAppendIcon">) => {
|
38
38
|
$: import("vue").ComponentInternalInstance;
|
39
39
|
$data: {};
|
40
40
|
$props: {};
|
@@ -103,7 +103,7 @@ declare const _default: <T1 extends unknown, T2 extends unknown>(props: {
|
|
103
103
|
} & {
|
104
104
|
"onUpdate:modelValue"?: (value: MultiTextInputItem<T1>) => any;
|
105
105
|
onSelectItem?: (item: MultiTextInputItem<T2>, index: number) => any;
|
106
|
-
}
|
106
|
+
} & Omit<import("@omnia/fx/ux").VueComponentBaseProps, "mode" | "label" | "disabled" | "items" | "v-model" | "onUpdate:modelValue" | "modelValue" | "autofocus" | "rules" | "itemValue" | "openMenu" | "defaultValueItem" | "hideEditGrid" | "isAppendIcon">;
|
107
107
|
} & import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
108
108
|
[key: string]: any;
|
109
109
|
}>;
|
@@ -490,19 +490,19 @@ declare const _default: {
|
|
490
490
|
headers?: DataTableHeader[];
|
491
491
|
height?: string | number;
|
492
492
|
expanded?: string[];
|
493
|
+
items?: any[];
|
493
494
|
"v-model"?: SortItem[];
|
494
495
|
"onUpdate:modelValue"?: (value: SortItem[]) => any;
|
495
496
|
modelValue?: SortItem[];
|
496
|
-
items?: any[];
|
497
497
|
"v-slots"?: {
|
498
498
|
default?: import("../../DefineVueTypings").Slot<any[]>;
|
499
499
|
} & ODataTableSlots;
|
500
500
|
loading?: boolean;
|
501
|
-
noDataText?: string;
|
502
501
|
hover?: boolean;
|
503
502
|
sortBy?: SortItem[];
|
504
503
|
mustSort?: boolean;
|
505
504
|
showExpand?: boolean;
|
505
|
+
noDataText?: string;
|
506
506
|
itemsPerPage?: number;
|
507
507
|
"onUpdate:sortBy"?: (value: SortItem[]) => any;
|
508
508
|
"onUpdate:expanded"?: (value: string[]) => any;
|
@@ -938,10 +938,10 @@ declare const _default: {
|
|
938
938
|
height?: string | number;
|
939
939
|
page?: number;
|
940
940
|
expanded?: string[];
|
941
|
+
items?: any[];
|
941
942
|
"v-model"?: any[];
|
942
943
|
"onUpdate:modelValue"?: (value: any[]) => any;
|
943
944
|
modelValue?: any[];
|
944
|
-
items?: any[];
|
945
945
|
"v-slots"?: {
|
946
946
|
default?: import("../../DefineVueTypings").Slot<any[]>;
|
947
947
|
} & ODataTableServerSlots;
|
@@ -302,9 +302,9 @@ declare const _default: {
|
|
302
302
|
};
|
303
303
|
variant?: "default" | "element" | "list" | "data-table";
|
304
304
|
itemTitle?: string | ((item: any) => VNodeChild);
|
305
|
-
"item-title"?: string | ((item: any) => VNodeChild);
|
306
305
|
itemValue?: string | ((item: any) => string);
|
307
306
|
"item-value"?: string | ((item: any) => string);
|
307
|
+
"item-title"?: string | ((item: any) => VNodeChild);
|
308
308
|
disabledItem?: string;
|
309
309
|
"disabled-item"?: string;
|
310
310
|
placeholderClass?: string;
|