@retailcrm/embed-ui-v1-components 0.9.12 → 0.9.14
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/dist/host.cjs +625 -313
- package/dist/host.css +319 -0
- package/dist/host.d.ts +181 -6
- package/dist/host.js +626 -314
- package/dist/remote.cjs +595 -2
- package/dist/remote.d.ts +603 -6
- package/dist/remote.js +596 -3
- package/package.json +9 -3
package/dist/remote.d.ts
CHANGED
|
@@ -25,6 +25,8 @@ import { PublicProps } from 'vue';
|
|
|
25
25
|
import { Ref } from 'vue';
|
|
26
26
|
import { RemoteCallable } from '@remote-ui/rpc';
|
|
27
27
|
import { RemoteRoot } from '@omnicajs/vue-remote/remote';
|
|
28
|
+
import { RendererElement } from 'vue';
|
|
29
|
+
import { RendererNode } from 'vue';
|
|
28
30
|
import { SchemaOf } from '@omnicajs/vue-remote/remote';
|
|
29
31
|
import { SchemaType } from '@omnicajs/vue-remote/remote';
|
|
30
32
|
import { SchemaType as SchemaType_2 } from '@omnicajs/vue-remote/dist/remote';
|
|
@@ -36,6 +38,7 @@ import { ShallowUnwrapRef } from 'vue';
|
|
|
36
38
|
import { Side } from '@floating-ui/dom';
|
|
37
39
|
import { Slot } from 'vue';
|
|
38
40
|
import { Strategy } from '@floating-ui/dom';
|
|
41
|
+
import { VNode } from 'vue';
|
|
39
42
|
import { VNodeProps } from 'vue';
|
|
40
43
|
import { WatchOptions } from 'vue';
|
|
41
44
|
import { WatchStopHandle } from 'vue';
|
|
@@ -731,7 +734,12 @@ declare type __VLS_WithTemplateSlots_4<T, S> = T & {
|
|
|
731
734
|
};
|
|
732
735
|
};
|
|
733
736
|
declare type Adaptation = 'flip' | 'shift';
|
|
734
|
-
declare enum ALIGN {
|
|
737
|
+
export declare enum ALIGN {
|
|
738
|
+
LEFT = "left",
|
|
739
|
+
CENTER = "center",
|
|
740
|
+
RIGHT = "right"
|
|
741
|
+
}
|
|
742
|
+
declare enum ALIGN_2 {
|
|
735
743
|
LEFT = "left",
|
|
736
744
|
RIGHT = "right"
|
|
737
745
|
}
|
|
@@ -758,6 +766,9 @@ declare enum APPEARANCE_4 {
|
|
|
758
766
|
POPUP = "popup",
|
|
759
767
|
HINT = "hint"
|
|
760
768
|
}
|
|
769
|
+
export declare const asRowAttrs: <T>(value: RowAttrsGetter<T>) => RowAttrsGetter<T>;
|
|
770
|
+
export declare const asRowClass: <T>(value: RowClassGetter<T>) => RowClassGetter<T>;
|
|
771
|
+
export declare const byRowKey: <T, K extends keyof T>(key: K) => RowKeyGetter<T>;
|
|
761
772
|
declare enum CLOSE_METHOD {
|
|
762
773
|
CLICK_CROSS = "Cross",
|
|
763
774
|
CLICK_OUTSIDE = "Outside",
|
|
@@ -783,18 +794,56 @@ declare enum COLOR_2 {
|
|
|
783
794
|
RED = "red",
|
|
784
795
|
YELLOW = "yellow"
|
|
785
796
|
}
|
|
797
|
+
export declare type Column<T> = {
|
|
798
|
+
id: string;
|
|
799
|
+
label: string;
|
|
800
|
+
width?: Numeric;
|
|
801
|
+
minWidth?: Numeric;
|
|
802
|
+
maxWidth?: Numeric;
|
|
803
|
+
align: ALIGN | `${ALIGN}`;
|
|
804
|
+
valign: VALIGN | `${VALIGN}`;
|
|
805
|
+
trim: boolean;
|
|
806
|
+
getColspan: (row: T, index: number) => number | undefined;
|
|
807
|
+
getRowspan: (row: T, index: number) => number | undefined;
|
|
808
|
+
};
|
|
786
809
|
export declare const createEndpointRoot: (channel: Channel) => Promise<RemoteRoot<SchemaOf<string>>>;
|
|
810
|
+
export declare type CssClass = string | Record<string, boolean> | Array<string | Record<string, boolean>>;
|
|
811
|
+
export declare type DataForCell<T> = {
|
|
812
|
+
row: T;
|
|
813
|
+
index: number;
|
|
814
|
+
key: RowKey;
|
|
815
|
+
expanded: boolean;
|
|
816
|
+
toggle: () => void;
|
|
817
|
+
column: Column<T>;
|
|
818
|
+
};
|
|
819
|
+
export declare type DataForFooter<T, GroupData> = {
|
|
820
|
+
columnsCount: number;
|
|
821
|
+
rowsCount: number;
|
|
822
|
+
groupsCount: number;
|
|
823
|
+
groups: readonly Group<T, GroupData>[];
|
|
824
|
+
};
|
|
825
|
+
export declare type DataForGroupHead<T, GroupData> = {
|
|
826
|
+
group: Group<T, GroupData>;
|
|
827
|
+
index: number;
|
|
828
|
+
};
|
|
829
|
+
export declare type DataForLabel<T> = {
|
|
830
|
+
column: Column<T>;
|
|
831
|
+
};
|
|
787
832
|
declare type DateFormatter = (date: Date, omitYear?: boolean) => string;
|
|
788
833
|
declare type Delay = {
|
|
789
834
|
show?: number;
|
|
790
835
|
hide?: number;
|
|
791
836
|
};
|
|
792
837
|
declare type Dimensions = `${number}x${number}` | `${number}x-` | `-x${number}`;
|
|
793
|
-
declare enum DIRECTION {
|
|
838
|
+
export declare enum DIRECTION {
|
|
839
|
+
ASC = "asc",
|
|
840
|
+
DESC = "desc"
|
|
841
|
+
}
|
|
842
|
+
declare enum DIRECTION_2 {
|
|
794
843
|
LEFT = "left",
|
|
795
844
|
RIGHT = "right"
|
|
796
845
|
}
|
|
797
|
-
declare enum
|
|
846
|
+
declare enum DIRECTION_3 {
|
|
798
847
|
HORIZONTAL = "horizontal",
|
|
799
848
|
VERTICAL = "vertical"
|
|
800
849
|
}
|
|
@@ -807,6 +856,12 @@ declare type FloatingOptions = {
|
|
|
807
856
|
export declare const formatDate: (date: Date | string, locale?: Locale | undefined) => string;
|
|
808
857
|
export declare const formatDateTime: (date: Date | string, locale?: Locale | undefined) => string;
|
|
809
858
|
export declare const formatTime: (date: Date | string) => string;
|
|
859
|
+
export declare type Group<T, GroupData> = {
|
|
860
|
+
key: RowKey;
|
|
861
|
+
data: GroupData;
|
|
862
|
+
rows: readonly T[];
|
|
863
|
+
};
|
|
864
|
+
export declare type GroupBy<T, GroupData> = (rows: readonly T[]) => Group<T, GroupData>[];
|
|
810
865
|
export declare const ImageWorkersKey: InjectionKey<Ref<string[]>>;
|
|
811
866
|
declare enum INPUTMODE {
|
|
812
867
|
DECIMAL = "decimal",
|
|
@@ -846,6 +901,25 @@ declare type QuickOption = {
|
|
|
846
901
|
value: Exclude<QuickDate, null>;
|
|
847
902
|
};
|
|
848
903
|
declare type RemoteProperties<T> = HTMLAttributes & T & Record<string, never>;
|
|
904
|
+
export declare type RowAttrs = Record<string, string | number | boolean | undefined> & {
|
|
905
|
+
class?: CssClass;
|
|
906
|
+
};
|
|
907
|
+
export declare type RowAttrsGetter<T> = (row: T, index: number) => RowAttrs;
|
|
908
|
+
export declare type RowClassGetter<T> = (row: T, index: number) => CssClass;
|
|
909
|
+
export declare type RowClickPayload<T> = {
|
|
910
|
+
row: T;
|
|
911
|
+
index: number;
|
|
912
|
+
key: RowKey;
|
|
913
|
+
expanded: boolean;
|
|
914
|
+
toggle: () => void;
|
|
915
|
+
};
|
|
916
|
+
export declare type RowKey = string | number;
|
|
917
|
+
export declare type RowKeyGetter<T> = (row: T, index: number) => RowKey;
|
|
918
|
+
export declare type RowRendererArgs<T> = {
|
|
919
|
+
row: T;
|
|
920
|
+
index: number;
|
|
921
|
+
key: RowKey;
|
|
922
|
+
};
|
|
849
923
|
declare enum SCROLLING {
|
|
850
924
|
NORMAL = "normal",
|
|
851
925
|
NATIVE = "native",
|
|
@@ -1870,7 +1944,7 @@ export declare const UiError: {
|
|
|
1870
1944
|
});
|
|
1871
1945
|
declare type UiErrorProperties = {
|
|
1872
1946
|
message: string;
|
|
1873
|
-
align?:
|
|
1947
|
+
align?: ALIGN_2 | `${ALIGN_2}`;
|
|
1874
1948
|
ellipsis?: boolean;
|
|
1875
1949
|
};
|
|
1876
1950
|
export declare const UiErrorType: SchemaType<"UiError", RemoteProperties<UiErrorProperties>, Record<string, never>>;
|
|
@@ -2246,7 +2320,7 @@ declare type UiModalSidebarProperties = {
|
|
|
2246
2320
|
id?: string;
|
|
2247
2321
|
opened?: boolean;
|
|
2248
2322
|
closable?: boolean;
|
|
2249
|
-
direction?:
|
|
2323
|
+
direction?: DIRECTION_2 | `${DIRECTION_2}`;
|
|
2250
2324
|
disposeTimeout?: number | string | null;
|
|
2251
2325
|
fixed?: boolean;
|
|
2252
2326
|
scrolling?: SCROLLING | `${SCROLLING}`;
|
|
@@ -2485,7 +2559,7 @@ declare type UiNumberStepperProperties = {
|
|
|
2485
2559
|
disabled?: boolean;
|
|
2486
2560
|
readonly?: boolean;
|
|
2487
2561
|
required?: boolean;
|
|
2488
|
-
direction?:
|
|
2562
|
+
direction?: DIRECTION_3 | `${DIRECTION_3}`;
|
|
2489
2563
|
size?: SIZE_4 | `${SIZE_4}`;
|
|
2490
2564
|
outlined?: boolean;
|
|
2491
2565
|
textboxOptions?: Partial<Omit<UiTextboxProperties, 'id' | 'value' | 'type' | 'min' | 'max' | 'step' | 'decimals' | 'clearable' | 'disabled' | 'readonly' | 'required' | 'size' | 'outlined' | 'autofit' | 'inputAttributes'>>;
|
|
@@ -2924,6 +2998,524 @@ declare type UiSwitchProperties = {
|
|
|
2924
2998
|
disabled?: boolean;
|
|
2925
2999
|
};
|
|
2926
3000
|
export declare const UiSwitchType: SchemaType<"UiSwitch", RemoteProperties<UiSwitchProperties>, RemoteCallable<UiSwitchMethods>>;
|
|
3001
|
+
export declare const UiTable: DefineComponent<ExtractPropTypes<{
|
|
3002
|
+
rows: {
|
|
3003
|
+
type: PropType<readonly unknown[]>;
|
|
3004
|
+
default: () => never[];
|
|
3005
|
+
};
|
|
3006
|
+
rowKey: {
|
|
3007
|
+
type: PropType<string | number | RowKeyGetter<unknown>>;
|
|
3008
|
+
default: undefined;
|
|
3009
|
+
};
|
|
3010
|
+
headless: {
|
|
3011
|
+
type: BooleanConstructor;
|
|
3012
|
+
default: boolean;
|
|
3013
|
+
};
|
|
3014
|
+
bordered: {
|
|
3015
|
+
type: BooleanConstructor;
|
|
3016
|
+
default: boolean;
|
|
3017
|
+
};
|
|
3018
|
+
fixed: {
|
|
3019
|
+
type: BooleanConstructor;
|
|
3020
|
+
default: boolean;
|
|
3021
|
+
};
|
|
3022
|
+
rowClass: {
|
|
3023
|
+
type: PropType<CssClass | RowClassGetter<unknown>>;
|
|
3024
|
+
default: undefined;
|
|
3025
|
+
};
|
|
3026
|
+
rowAttrs: {
|
|
3027
|
+
type: PropType<RowAttrsGetter<unknown>>;
|
|
3028
|
+
default: undefined;
|
|
3029
|
+
};
|
|
3030
|
+
groupBy: {
|
|
3031
|
+
type: PropType<GroupBy<unknown, unknown>>;
|
|
3032
|
+
default: undefined;
|
|
3033
|
+
};
|
|
3034
|
+
groupHeadClass: {
|
|
3035
|
+
type: PropType<CssClass>;
|
|
3036
|
+
default: undefined;
|
|
3037
|
+
};
|
|
3038
|
+
groupBodyClass: {
|
|
3039
|
+
type: PropType<CssClass>;
|
|
3040
|
+
default: undefined;
|
|
3041
|
+
};
|
|
3042
|
+
}>, () => VNode<RendererNode, RendererElement, {
|
|
3043
|
+
[key: string]: any;
|
|
3044
|
+
}>, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
3045
|
+
'row:click': (payload: RowClickPayload<unknown>, event: SerializedEvent) => true;
|
|
3046
|
+
}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
3047
|
+
rows: {
|
|
3048
|
+
type: PropType<readonly unknown[]>;
|
|
3049
|
+
default: () => never[];
|
|
3050
|
+
};
|
|
3051
|
+
rowKey: {
|
|
3052
|
+
type: PropType<string | number | RowKeyGetter<unknown>>;
|
|
3053
|
+
default: undefined;
|
|
3054
|
+
};
|
|
3055
|
+
headless: {
|
|
3056
|
+
type: BooleanConstructor;
|
|
3057
|
+
default: boolean;
|
|
3058
|
+
};
|
|
3059
|
+
bordered: {
|
|
3060
|
+
type: BooleanConstructor;
|
|
3061
|
+
default: boolean;
|
|
3062
|
+
};
|
|
3063
|
+
fixed: {
|
|
3064
|
+
type: BooleanConstructor;
|
|
3065
|
+
default: boolean;
|
|
3066
|
+
};
|
|
3067
|
+
rowClass: {
|
|
3068
|
+
type: PropType<CssClass | RowClassGetter<unknown>>;
|
|
3069
|
+
default: undefined;
|
|
3070
|
+
};
|
|
3071
|
+
rowAttrs: {
|
|
3072
|
+
type: PropType<RowAttrsGetter<unknown>>;
|
|
3073
|
+
default: undefined;
|
|
3074
|
+
};
|
|
3075
|
+
groupBy: {
|
|
3076
|
+
type: PropType<GroupBy<unknown, unknown>>;
|
|
3077
|
+
default: undefined;
|
|
3078
|
+
};
|
|
3079
|
+
groupHeadClass: {
|
|
3080
|
+
type: PropType<CssClass>;
|
|
3081
|
+
default: undefined;
|
|
3082
|
+
};
|
|
3083
|
+
groupBodyClass: {
|
|
3084
|
+
type: PropType<CssClass>;
|
|
3085
|
+
default: undefined;
|
|
3086
|
+
};
|
|
3087
|
+
}>> & Readonly<{
|
|
3088
|
+
"onRow:click"?: ((payload: RowClickPayload<unknown>, event: SerializedEvent) => any) | undefined;
|
|
3089
|
+
}>, {
|
|
3090
|
+
fixed: boolean;
|
|
3091
|
+
bordered: boolean;
|
|
3092
|
+
rows: readonly unknown[];
|
|
3093
|
+
rowKey: string | number | RowKeyGetter<unknown>;
|
|
3094
|
+
headless: boolean;
|
|
3095
|
+
rowClass: CssClass | RowClassGetter<unknown>;
|
|
3096
|
+
rowAttrs: RowAttrsGetter<unknown>;
|
|
3097
|
+
groupBy: GroupBy<unknown, unknown>;
|
|
3098
|
+
groupHeadClass: CssClass;
|
|
3099
|
+
groupBodyClass: CssClass;
|
|
3100
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
3101
|
+
export declare const UiTableBodyCell: {
|
|
3102
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes<RemoteProperties<UiTableBodyCellProperties>>>, {
|
|
3103
|
+
[x: string]: unknown;
|
|
3104
|
+
}, {
|
|
3105
|
+
[x: string]: never;
|
|
3106
|
+
}, {
|
|
3107
|
+
[x: string]: never;
|
|
3108
|
+
}, MethodOptions, {
|
|
3109
|
+
[x: string]: never;
|
|
3110
|
+
}, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
3111
|
+
P: {};
|
|
3112
|
+
B: {};
|
|
3113
|
+
D: {};
|
|
3114
|
+
C: ComputedOptions;
|
|
3115
|
+
M: MethodOptions;
|
|
3116
|
+
Defaults: {};
|
|
3117
|
+
} & {
|
|
3118
|
+
P: {};
|
|
3119
|
+
B: {};
|
|
3120
|
+
D: {};
|
|
3121
|
+
C: {};
|
|
3122
|
+
M: {};
|
|
3123
|
+
Defaults: {};
|
|
3124
|
+
}, Readonly<ExtractPropTypes<RemoteProperties<UiTableBodyCellProperties>>>, {
|
|
3125
|
+
[x: string]: unknown;
|
|
3126
|
+
}, {
|
|
3127
|
+
[x: string]: never;
|
|
3128
|
+
}, ComputedOptions & {
|
|
3129
|
+
[x: string]: never;
|
|
3130
|
+
}, MethodOptions, {}>;
|
|
3131
|
+
__isFragment?: never;
|
|
3132
|
+
__isTeleport?: never;
|
|
3133
|
+
__isSuspense?: never;
|
|
3134
|
+
} & ComponentOptionsBase<Readonly<ExtractPropTypes<RemoteProperties<UiTableBodyCellProperties>>>, {
|
|
3135
|
+
[x: string]: unknown;
|
|
3136
|
+
}, {
|
|
3137
|
+
[x: string]: never;
|
|
3138
|
+
}, {
|
|
3139
|
+
[x: string]: never;
|
|
3140
|
+
}, MethodOptions, {
|
|
3141
|
+
[x: string]: never;
|
|
3142
|
+
}, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
3143
|
+
$slots: {
|
|
3144
|
+
[x: string]: never;
|
|
3145
|
+
} & {
|
|
3146
|
+
default?: (...args: never[]) => unknown;
|
|
3147
|
+
};
|
|
3148
|
+
});
|
|
3149
|
+
export declare type UiTableBodyCellProperties = {
|
|
3150
|
+
align?: ALIGN | `${ALIGN}`;
|
|
3151
|
+
valign?: VALIGN | `${VALIGN}`;
|
|
3152
|
+
colspan?: number;
|
|
3153
|
+
rowspan?: number;
|
|
3154
|
+
trim?: boolean;
|
|
3155
|
+
theme?: UiTableBodyCellTheme;
|
|
3156
|
+
};
|
|
3157
|
+
export declare type UiTableBodyCellTheme = 'default' | 'group';
|
|
3158
|
+
export declare type UiTableColProperties = {
|
|
3159
|
+
width?: Numeric;
|
|
3160
|
+
minWidth?: Numeric;
|
|
3161
|
+
maxWidth?: Numeric;
|
|
3162
|
+
};
|
|
3163
|
+
export declare const UiTableColumn: DefineComponent<ExtractPropTypes<{
|
|
3164
|
+
label: {
|
|
3165
|
+
type: StringConstructor;
|
|
3166
|
+
default: string;
|
|
3167
|
+
};
|
|
3168
|
+
width: {
|
|
3169
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
3170
|
+
default: undefined;
|
|
3171
|
+
};
|
|
3172
|
+
minWidth: {
|
|
3173
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
3174
|
+
default: undefined;
|
|
3175
|
+
};
|
|
3176
|
+
maxWidth: {
|
|
3177
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
3178
|
+
default: undefined;
|
|
3179
|
+
};
|
|
3180
|
+
align: {
|
|
3181
|
+
type: PropType<ALIGN | `${ALIGN}`>;
|
|
3182
|
+
default: ALIGN;
|
|
3183
|
+
validator: (align: string) => boolean;
|
|
3184
|
+
};
|
|
3185
|
+
valign: {
|
|
3186
|
+
type: PropType<VALIGN | `${VALIGN}`>;
|
|
3187
|
+
default: VALIGN;
|
|
3188
|
+
validator: (valign: string) => boolean;
|
|
3189
|
+
};
|
|
3190
|
+
trim: {
|
|
3191
|
+
type: BooleanConstructor;
|
|
3192
|
+
default: boolean;
|
|
3193
|
+
};
|
|
3194
|
+
colspan: {
|
|
3195
|
+
type: PropType<(row: unknown, index: number) => number | undefined>;
|
|
3196
|
+
default: undefined;
|
|
3197
|
+
};
|
|
3198
|
+
rowspan: {
|
|
3199
|
+
type: PropType<(row: unknown, index: number) => number | undefined>;
|
|
3200
|
+
default: undefined;
|
|
3201
|
+
};
|
|
3202
|
+
}>, () => null, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<ExtractPropTypes<{
|
|
3203
|
+
label: {
|
|
3204
|
+
type: StringConstructor;
|
|
3205
|
+
default: string;
|
|
3206
|
+
};
|
|
3207
|
+
width: {
|
|
3208
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
3209
|
+
default: undefined;
|
|
3210
|
+
};
|
|
3211
|
+
minWidth: {
|
|
3212
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
3213
|
+
default: undefined;
|
|
3214
|
+
};
|
|
3215
|
+
maxWidth: {
|
|
3216
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
3217
|
+
default: undefined;
|
|
3218
|
+
};
|
|
3219
|
+
align: {
|
|
3220
|
+
type: PropType<ALIGN | `${ALIGN}`>;
|
|
3221
|
+
default: ALIGN;
|
|
3222
|
+
validator: (align: string) => boolean;
|
|
3223
|
+
};
|
|
3224
|
+
valign: {
|
|
3225
|
+
type: PropType<VALIGN | `${VALIGN}`>;
|
|
3226
|
+
default: VALIGN;
|
|
3227
|
+
validator: (valign: string) => boolean;
|
|
3228
|
+
};
|
|
3229
|
+
trim: {
|
|
3230
|
+
type: BooleanConstructor;
|
|
3231
|
+
default: boolean;
|
|
3232
|
+
};
|
|
3233
|
+
colspan: {
|
|
3234
|
+
type: PropType<(row: unknown, index: number) => number | undefined>;
|
|
3235
|
+
default: undefined;
|
|
3236
|
+
};
|
|
3237
|
+
rowspan: {
|
|
3238
|
+
type: PropType<(row: unknown, index: number) => number | undefined>;
|
|
3239
|
+
default: undefined;
|
|
3240
|
+
};
|
|
3241
|
+
}>> & Readonly<{}>, {
|
|
3242
|
+
trim: boolean;
|
|
3243
|
+
width: string | number;
|
|
3244
|
+
align: "left" | "right" | "center" | ALIGN;
|
|
3245
|
+
label: string;
|
|
3246
|
+
minWidth: string | number;
|
|
3247
|
+
maxWidth: string | number;
|
|
3248
|
+
valign: "bottom" | "top" | "middle" | VALIGN;
|
|
3249
|
+
colspan: (row: unknown, index: number) => number | undefined;
|
|
3250
|
+
rowspan: (row: unknown, index: number) => number | undefined;
|
|
3251
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
3252
|
+
export declare type UiTableColumnProperties<T> = {
|
|
3253
|
+
label?: string;
|
|
3254
|
+
width?: Numeric;
|
|
3255
|
+
minWidth?: Numeric;
|
|
3256
|
+
maxWidth?: Numeric;
|
|
3257
|
+
align?: ALIGN | `${ALIGN}`;
|
|
3258
|
+
valign?: VALIGN | `${VALIGN}`;
|
|
3259
|
+
trim?: boolean;
|
|
3260
|
+
colspan?: (row: T, index: number) => number | undefined;
|
|
3261
|
+
rowspan?: (row: T, index: number) => number | undefined;
|
|
3262
|
+
};
|
|
3263
|
+
export declare type UiTableColumnSlots<T> = {
|
|
3264
|
+
default?: (props: DataForCell<T>) => unknown;
|
|
3265
|
+
cell?: (props: DataForCell<T>) => unknown;
|
|
3266
|
+
label?: (props: DataForLabel<T>) => unknown;
|
|
3267
|
+
};
|
|
3268
|
+
export declare type UiTableEmits<T> = {
|
|
3269
|
+
'row:click': [
|
|
3270
|
+
payload: RowClickPayload<T>,
|
|
3271
|
+
event: SerializedEvent
|
|
3272
|
+
];
|
|
3273
|
+
};
|
|
3274
|
+
export declare const UiTableFooterButton: {
|
|
3275
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes<RemoteProperties<UiTableFooterButtonProperties>>>, {
|
|
3276
|
+
[x: string]: unknown;
|
|
3277
|
+
}, {
|
|
3278
|
+
[x: string]: never;
|
|
3279
|
+
}, {
|
|
3280
|
+
[x: string]: never;
|
|
3281
|
+
}, MethodOptions, {
|
|
3282
|
+
click: (event: SerializedEvent) => boolean;
|
|
3283
|
+
}, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
3284
|
+
P: {};
|
|
3285
|
+
B: {};
|
|
3286
|
+
D: {};
|
|
3287
|
+
C: ComputedOptions;
|
|
3288
|
+
M: MethodOptions;
|
|
3289
|
+
Defaults: {};
|
|
3290
|
+
} & {
|
|
3291
|
+
P: {};
|
|
3292
|
+
B: {};
|
|
3293
|
+
D: {};
|
|
3294
|
+
C: {};
|
|
3295
|
+
M: {};
|
|
3296
|
+
Defaults: {};
|
|
3297
|
+
}, Readonly<ExtractPropTypes<RemoteProperties<UiTableFooterButtonProperties>>>, {
|
|
3298
|
+
[x: string]: unknown;
|
|
3299
|
+
}, {
|
|
3300
|
+
[x: string]: never;
|
|
3301
|
+
}, ComputedOptions & {
|
|
3302
|
+
[x: string]: never;
|
|
3303
|
+
}, MethodOptions, {}>;
|
|
3304
|
+
__isFragment?: never;
|
|
3305
|
+
__isTeleport?: never;
|
|
3306
|
+
__isSuspense?: never;
|
|
3307
|
+
} & ComponentOptionsBase<Readonly<ExtractPropTypes<RemoteProperties<UiTableFooterButtonProperties>>>, {
|
|
3308
|
+
[x: string]: unknown;
|
|
3309
|
+
}, {
|
|
3310
|
+
[x: string]: never;
|
|
3311
|
+
}, {
|
|
3312
|
+
[x: string]: never;
|
|
3313
|
+
}, MethodOptions, {
|
|
3314
|
+
click: (event: SerializedEvent) => boolean;
|
|
3315
|
+
}, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
3316
|
+
$slots: {
|
|
3317
|
+
[x: string]: never;
|
|
3318
|
+
} & {
|
|
3319
|
+
default?: (...args: never[]) => unknown;
|
|
3320
|
+
};
|
|
3321
|
+
});
|
|
3322
|
+
export declare type UiTableFooterButtonProperties = {
|
|
3323
|
+
type?: UiTableFooterButtonType;
|
|
3324
|
+
};
|
|
3325
|
+
export declare type UiTableFooterButtonType = 'button' | 'submit' | 'reset';
|
|
3326
|
+
export declare const UiTableFooterSection: {
|
|
3327
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes<RemoteProperties<UiTableFooterSectionProperties>>>, {
|
|
3328
|
+
[x: string]: unknown;
|
|
3329
|
+
}, {
|
|
3330
|
+
[x: string]: never;
|
|
3331
|
+
}, {
|
|
3332
|
+
[x: string]: never;
|
|
3333
|
+
}, MethodOptions, {
|
|
3334
|
+
[x: string]: never;
|
|
3335
|
+
}, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
3336
|
+
P: {};
|
|
3337
|
+
B: {};
|
|
3338
|
+
D: {};
|
|
3339
|
+
C: ComputedOptions;
|
|
3340
|
+
M: MethodOptions;
|
|
3341
|
+
Defaults: {};
|
|
3342
|
+
} & {
|
|
3343
|
+
P: {};
|
|
3344
|
+
B: {};
|
|
3345
|
+
D: {};
|
|
3346
|
+
C: {};
|
|
3347
|
+
M: {};
|
|
3348
|
+
Defaults: {};
|
|
3349
|
+
}, Readonly<ExtractPropTypes<RemoteProperties<UiTableFooterSectionProperties>>>, {
|
|
3350
|
+
[x: string]: unknown;
|
|
3351
|
+
}, {
|
|
3352
|
+
[x: string]: never;
|
|
3353
|
+
}, ComputedOptions & {
|
|
3354
|
+
[x: string]: never;
|
|
3355
|
+
}, MethodOptions, {}>;
|
|
3356
|
+
__isFragment?: never;
|
|
3357
|
+
__isTeleport?: never;
|
|
3358
|
+
__isSuspense?: never;
|
|
3359
|
+
} & ComponentOptionsBase<Readonly<ExtractPropTypes<RemoteProperties<UiTableFooterSectionProperties>>>, {
|
|
3360
|
+
[x: string]: unknown;
|
|
3361
|
+
}, {
|
|
3362
|
+
[x: string]: never;
|
|
3363
|
+
}, {
|
|
3364
|
+
[x: string]: never;
|
|
3365
|
+
}, MethodOptions, {
|
|
3366
|
+
[x: string]: never;
|
|
3367
|
+
}, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
3368
|
+
$slots: {
|
|
3369
|
+
[x: string]: never;
|
|
3370
|
+
} & {
|
|
3371
|
+
default?: (...args: never[]) => unknown;
|
|
3372
|
+
};
|
|
3373
|
+
});
|
|
3374
|
+
export declare type UiTableFooterSectionProperties = Record<string, never>;
|
|
3375
|
+
export declare const UiTableHeadCell: {
|
|
3376
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes<RemoteProperties<UiTableHeadCellProperties>>>, {
|
|
3377
|
+
[x: string]: unknown;
|
|
3378
|
+
}, {
|
|
3379
|
+
[x: string]: never;
|
|
3380
|
+
}, {
|
|
3381
|
+
[x: string]: never;
|
|
3382
|
+
}, MethodOptions, {
|
|
3383
|
+
[x: string]: never;
|
|
3384
|
+
}, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
3385
|
+
P: {};
|
|
3386
|
+
B: {};
|
|
3387
|
+
D: {};
|
|
3388
|
+
C: ComputedOptions;
|
|
3389
|
+
M: MethodOptions;
|
|
3390
|
+
Defaults: {};
|
|
3391
|
+
} & {
|
|
3392
|
+
P: {};
|
|
3393
|
+
B: {};
|
|
3394
|
+
D: {};
|
|
3395
|
+
C: {};
|
|
3396
|
+
M: {};
|
|
3397
|
+
Defaults: {};
|
|
3398
|
+
}, Readonly<ExtractPropTypes<RemoteProperties<UiTableHeadCellProperties>>>, {
|
|
3399
|
+
[x: string]: unknown;
|
|
3400
|
+
}, {
|
|
3401
|
+
[x: string]: never;
|
|
3402
|
+
}, ComputedOptions & {
|
|
3403
|
+
[x: string]: never;
|
|
3404
|
+
}, MethodOptions, {}>;
|
|
3405
|
+
__isFragment?: never;
|
|
3406
|
+
__isTeleport?: never;
|
|
3407
|
+
__isSuspense?: never;
|
|
3408
|
+
} & ComponentOptionsBase<Readonly<ExtractPropTypes<RemoteProperties<UiTableHeadCellProperties>>>, {
|
|
3409
|
+
[x: string]: unknown;
|
|
3410
|
+
}, {
|
|
3411
|
+
[x: string]: never;
|
|
3412
|
+
}, {
|
|
3413
|
+
[x: string]: never;
|
|
3414
|
+
}, MethodOptions, {
|
|
3415
|
+
[x: string]: never;
|
|
3416
|
+
}, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
3417
|
+
$slots: {
|
|
3418
|
+
[x: string]: never;
|
|
3419
|
+
} & {
|
|
3420
|
+
default?: (...args: never[]) => unknown;
|
|
3421
|
+
};
|
|
3422
|
+
});
|
|
3423
|
+
export declare type UiTableHeadCellProperties = {
|
|
3424
|
+
align?: ALIGN | `${ALIGN}`;
|
|
3425
|
+
trim?: boolean;
|
|
3426
|
+
};
|
|
3427
|
+
export declare type UiTableMethods<RowKeyValue extends RowKey = RowKey> = {
|
|
3428
|
+
resetExpanded(): void;
|
|
3429
|
+
expand(key: RowKeyValue): void;
|
|
3430
|
+
collapse(key: RowKeyValue): void;
|
|
3431
|
+
toggle(key: RowKeyValue): void;
|
|
3432
|
+
};
|
|
3433
|
+
export declare type UiTableProperties<T, GroupData = undefined> = {
|
|
3434
|
+
rows: readonly T[];
|
|
3435
|
+
rowKey?: keyof T | RowKeyGetter<T>;
|
|
3436
|
+
headless?: boolean;
|
|
3437
|
+
bordered?: boolean;
|
|
3438
|
+
fixed?: boolean;
|
|
3439
|
+
rowClass?: CssClass | RowClassGetter<T>;
|
|
3440
|
+
rowAttrs?: RowAttrsGetter<T>;
|
|
3441
|
+
groupBy?: GroupBy<T, GroupData>;
|
|
3442
|
+
groupHeadClass?: CssClass;
|
|
3443
|
+
groupBodyClass?: CssClass;
|
|
3444
|
+
};
|
|
3445
|
+
export declare type UiTableRootProperties = {
|
|
3446
|
+
bordered?: boolean;
|
|
3447
|
+
fixed?: boolean;
|
|
3448
|
+
};
|
|
3449
|
+
export declare type UiTableRowProperties = {
|
|
3450
|
+
interactive?: boolean;
|
|
3451
|
+
expanded?: boolean;
|
|
3452
|
+
};
|
|
3453
|
+
export declare type UiTableSectionKind = 'head' | 'body' | 'foot';
|
|
3454
|
+
export declare type UiTableSectionProperties = {
|
|
3455
|
+
kind?: UiTableSectionKind;
|
|
3456
|
+
};
|
|
3457
|
+
export declare type UiTableSlots<T, GroupData = undefined> = {
|
|
3458
|
+
default?: () => unknown;
|
|
3459
|
+
expand?: (props: RowRendererArgs<T>) => unknown;
|
|
3460
|
+
footer?: (props: DataForFooter<T, GroupData>) => unknown;
|
|
3461
|
+
'footer-summary'?: (props: DataForFooter<T, GroupData>) => unknown;
|
|
3462
|
+
'footer-page-size'?: (props: DataForFooter<T, GroupData>) => unknown;
|
|
3463
|
+
'footer-export'?: (props: DataForFooter<T, GroupData>) => unknown;
|
|
3464
|
+
'footer-pagination'?: (props: DataForFooter<T, GroupData>) => unknown;
|
|
3465
|
+
'group-head'?: (props: DataForGroupHead<T, GroupData>) => unknown;
|
|
3466
|
+
empty?: () => unknown;
|
|
3467
|
+
};
|
|
3468
|
+
export declare const UiTableSorter: {
|
|
3469
|
+
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes<RemoteProperties<UiTableSorterProperties>>>, {
|
|
3470
|
+
[x: string]: unknown;
|
|
3471
|
+
}, {
|
|
3472
|
+
[x: string]: never;
|
|
3473
|
+
}, {
|
|
3474
|
+
[x: string]: never;
|
|
3475
|
+
}, MethodOptions, {
|
|
3476
|
+
click: (event: SerializedEvent) => boolean;
|
|
3477
|
+
}, ComponentOptionsMixin, {}, PublicProps, {}, true, {}, {}, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
3478
|
+
P: {};
|
|
3479
|
+
B: {};
|
|
3480
|
+
D: {};
|
|
3481
|
+
C: ComputedOptions;
|
|
3482
|
+
M: MethodOptions;
|
|
3483
|
+
Defaults: {};
|
|
3484
|
+
} & {
|
|
3485
|
+
P: {};
|
|
3486
|
+
B: {};
|
|
3487
|
+
D: {};
|
|
3488
|
+
C: {};
|
|
3489
|
+
M: {};
|
|
3490
|
+
Defaults: {};
|
|
3491
|
+
}, Readonly<ExtractPropTypes<RemoteProperties<UiTableSorterProperties>>>, {
|
|
3492
|
+
[x: string]: unknown;
|
|
3493
|
+
}, {
|
|
3494
|
+
[x: string]: never;
|
|
3495
|
+
}, ComputedOptions & {
|
|
3496
|
+
[x: string]: never;
|
|
3497
|
+
}, MethodOptions, {}>;
|
|
3498
|
+
__isFragment?: never;
|
|
3499
|
+
__isTeleport?: never;
|
|
3500
|
+
__isSuspense?: never;
|
|
3501
|
+
} & ComponentOptionsBase<Readonly<ExtractPropTypes<RemoteProperties<UiTableSorterProperties>>>, {
|
|
3502
|
+
[x: string]: unknown;
|
|
3503
|
+
}, {
|
|
3504
|
+
[x: string]: never;
|
|
3505
|
+
}, {
|
|
3506
|
+
[x: string]: never;
|
|
3507
|
+
}, MethodOptions, {
|
|
3508
|
+
click: (event: SerializedEvent) => boolean;
|
|
3509
|
+
}, ComponentOptionsMixin, {}, string, {}, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
|
|
3510
|
+
$slots: {
|
|
3511
|
+
[x: string]: never;
|
|
3512
|
+
} & {
|
|
3513
|
+
default?: (...args: never[]) => unknown;
|
|
3514
|
+
};
|
|
3515
|
+
});
|
|
3516
|
+
export declare type UiTableSorterProperties = {
|
|
3517
|
+
direction?: DIRECTION | `${DIRECTION}` | null;
|
|
3518
|
+
};
|
|
2927
3519
|
export declare const UiTag: {
|
|
2928
3520
|
new (...args: any[]): CreateComponentPublicInstanceWithMixins<Readonly<ExtractPropTypes<RemoteProperties<UiTagProperties>>>, {
|
|
2929
3521
|
[x: string]: unknown;
|
|
@@ -3476,6 +4068,11 @@ export declare const usePreview: (workers?: Ref<string[]>) => {
|
|
|
3476
4068
|
workers: Ref<string[], string[]>;
|
|
3477
4069
|
preview: (url: string, resize?: Dimensions | undefined, crop?: Dimensions | undefined) => string;
|
|
3478
4070
|
};
|
|
4071
|
+
export declare enum VALIGN {
|
|
4072
|
+
TOP = "top",
|
|
4073
|
+
MIDDLE = "middle",
|
|
4074
|
+
BOTTOM = "bottom"
|
|
4075
|
+
}
|
|
3479
4076
|
declare enum VARIANT {
|
|
3480
4077
|
PRIMARY = "primary",
|
|
3481
4078
|
WARNING = "warning",
|