@mfs-atomic/ui 1.2.1 → 1.3.0
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/index.d.ts +76 -0
- package/dist/mfs-theme.css +1 -1
- package/dist/mfs-theme.js +2326 -2215
- package/dist/mfs-theme.umd.cjs +9 -9
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -904,6 +904,12 @@ modelValue: boolean;
|
|
|
904
904
|
closeOnBackdrop: boolean;
|
|
905
905
|
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
906
906
|
|
|
907
|
+
declare const __VLS_component_70: DefineComponent<__VLS_Props_98, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<__VLS_Props_98> & Readonly<{}>, {
|
|
908
|
+
variant: PageTransitionVariant;
|
|
909
|
+
duration: number;
|
|
910
|
+
mode: PageTransitionMode;
|
|
911
|
+
}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
|
|
912
|
+
|
|
907
913
|
declare const __VLS_component_8: DefineComponent<__VLS_Props_10, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
908
914
|
"update:modelValue": (value: boolean | any[]) => any;
|
|
909
915
|
change: (value: boolean | any[]) => any;
|
|
@@ -1766,6 +1772,12 @@ declare type __VLS_Props_97 = {
|
|
|
1766
1772
|
required?: boolean;
|
|
1767
1773
|
};
|
|
1768
1774
|
|
|
1775
|
+
declare type __VLS_Props_98 = {
|
|
1776
|
+
variant?: PageTransitionVariant;
|
|
1777
|
+
mode?: PageTransitionMode;
|
|
1778
|
+
duration?: number;
|
|
1779
|
+
};
|
|
1780
|
+
|
|
1769
1781
|
declare function __VLS_template(): {
|
|
1770
1782
|
attrs: Partial<{}>;
|
|
1771
1783
|
slots: {
|
|
@@ -2698,6 +2710,15 @@ declare function __VLS_template_7(): {
|
|
|
2698
2710
|
rootEl: any;
|
|
2699
2711
|
};
|
|
2700
2712
|
|
|
2713
|
+
declare function __VLS_template_70(): {
|
|
2714
|
+
attrs: Partial<{}>;
|
|
2715
|
+
slots: {
|
|
2716
|
+
default?(_: {}): any;
|
|
2717
|
+
};
|
|
2718
|
+
refs: {};
|
|
2719
|
+
rootEl: any;
|
|
2720
|
+
};
|
|
2721
|
+
|
|
2701
2722
|
declare function __VLS_template_8(): {
|
|
2702
2723
|
attrs: Partial<{}>;
|
|
2703
2724
|
slots: {
|
|
@@ -2852,6 +2873,8 @@ declare type __VLS_TemplateResult_69 = ReturnType<typeof __VLS_template_69>;
|
|
|
2852
2873
|
|
|
2853
2874
|
declare type __VLS_TemplateResult_7 = ReturnType<typeof __VLS_template_7>;
|
|
2854
2875
|
|
|
2876
|
+
declare type __VLS_TemplateResult_70 = ReturnType<typeof __VLS_template_70>;
|
|
2877
|
+
|
|
2855
2878
|
declare type __VLS_TemplateResult_8 = ReturnType<typeof __VLS_template_8>;
|
|
2856
2879
|
|
|
2857
2880
|
declare type __VLS_TemplateResult_9 = ReturnType<typeof __VLS_template_9>;
|
|
@@ -3270,6 +3293,12 @@ declare type __VLS_WithTemplateSlots_71<T, S> = T & {
|
|
|
3270
3293
|
};
|
|
3271
3294
|
};
|
|
3272
3295
|
|
|
3296
|
+
declare type __VLS_WithTemplateSlots_72<T, S> = T & {
|
|
3297
|
+
new (): {
|
|
3298
|
+
$slots: S;
|
|
3299
|
+
};
|
|
3300
|
+
};
|
|
3301
|
+
|
|
3273
3302
|
declare type __VLS_WithTemplateSlots_8<T, S> = T & {
|
|
3274
3303
|
new (): {
|
|
3275
3304
|
$slots: S;
|
|
@@ -3312,6 +3341,8 @@ declare interface AosElement extends HTMLElement {
|
|
|
3312
3341
|
__mfsAosObserver?: IntersectionObserver;
|
|
3313
3342
|
}
|
|
3314
3343
|
|
|
3344
|
+
export declare function attachRouterProgress(router: PageProgressRouter, options?: PageProgressOptions): () => void;
|
|
3345
|
+
|
|
3315
3346
|
export declare const AutoComplete: __VLS_WithTemplateSlots_30<typeof __VLS_component_30, __VLS_TemplateResult_30["slots"]>;
|
|
3316
3347
|
|
|
3317
3348
|
declare interface AutoCompleteItem {
|
|
@@ -3808,6 +3839,8 @@ declare interface DockItem {
|
|
|
3808
3839
|
command?: () => void;
|
|
3809
3840
|
}
|
|
3810
3841
|
|
|
3842
|
+
declare function done(): void;
|
|
3843
|
+
|
|
3811
3844
|
export declare interface DragPayload {
|
|
3812
3845
|
sourceId: string;
|
|
3813
3846
|
group: string;
|
|
@@ -4168,6 +4201,34 @@ declare interface OrgChartNode {
|
|
|
4168
4201
|
|
|
4169
4202
|
export declare const OverlayBadge: __VLS_WithTemplateSlots_63<typeof __VLS_component_63, __VLS_TemplateResult_63["slots"]>;
|
|
4170
4203
|
|
|
4204
|
+
export declare interface PageProgressOptions {
|
|
4205
|
+
color?: string;
|
|
4206
|
+
height?: number;
|
|
4207
|
+
zIndex?: number;
|
|
4208
|
+
minimum?: number;
|
|
4209
|
+
speed?: number;
|
|
4210
|
+
trickleSpeed?: number;
|
|
4211
|
+
}
|
|
4212
|
+
|
|
4213
|
+
declare interface PageProgressRouteLocation {
|
|
4214
|
+
path?: string;
|
|
4215
|
+
fullPath?: string;
|
|
4216
|
+
name?: string | symbol | null;
|
|
4217
|
+
[key: string]: unknown;
|
|
4218
|
+
}
|
|
4219
|
+
|
|
4220
|
+
export declare interface PageProgressRouter {
|
|
4221
|
+
beforeEach: (guard: (to: PageProgressRouteLocation, from: PageProgressRouteLocation) => void | boolean | Promise<void | boolean>) => () => void;
|
|
4222
|
+
afterEach: (guard: (to: PageProgressRouteLocation, from: PageProgressRouteLocation) => void) => () => void;
|
|
4223
|
+
onError?: (handler: (error: unknown) => void) => () => void;
|
|
4224
|
+
}
|
|
4225
|
+
|
|
4226
|
+
export declare const PageTransition: __VLS_WithTemplateSlots_72<typeof __VLS_component_70, __VLS_TemplateResult_70["slots"]>;
|
|
4227
|
+
|
|
4228
|
+
export declare type PageTransitionMode = 'out-in' | 'in-out' | 'default';
|
|
4229
|
+
|
|
4230
|
+
export declare type PageTransitionVariant = 'slide-up' | 'fade' | 'slide-left' | 'scale';
|
|
4231
|
+
|
|
4171
4232
|
export declare const Panel: __VLS_WithTemplateSlots_42<typeof __VLS_component_42, __VLS_TemplateResult_42["slots"]>;
|
|
4172
4233
|
|
|
4173
4234
|
export declare const PanelMenu: DefineComponent<__VLS_Props_67, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
@@ -4331,6 +4392,8 @@ declare interface SelectOption {
|
|
|
4331
4392
|
disabled?: boolean;
|
|
4332
4393
|
}
|
|
4333
4394
|
|
|
4395
|
+
declare function set(value: number, options?: PageProgressOptions): void;
|
|
4396
|
+
|
|
4334
4397
|
declare function show(targetOrEvent: HTMLElement | MouseEvent, opts?: ConfirmPopupShowOptions): void;
|
|
4335
4398
|
|
|
4336
4399
|
export declare interface SignatureExportPayload {
|
|
@@ -4427,6 +4490,8 @@ declare interface SplitButtonItem {
|
|
|
4427
4490
|
|
|
4428
4491
|
export declare const Splitter: __VLS_WithTemplateSlots_44<typeof __VLS_component_44, __VLS_TemplateResult_44["slots"]>;
|
|
4429
4492
|
|
|
4493
|
+
declare function start(options?: PageProgressOptions): void;
|
|
4494
|
+
|
|
4430
4495
|
declare function startDrag(e: DragEvent, payload: DragPayload): void;
|
|
4431
4496
|
|
|
4432
4497
|
declare interface StepItem {
|
|
@@ -4541,6 +4606,8 @@ export default ThemePlugin;
|
|
|
4541
4606
|
|
|
4542
4607
|
export declare interface ThemePluginOptions {
|
|
4543
4608
|
defaultTheme?: ThemeType;
|
|
4609
|
+
router?: PageProgressRouter;
|
|
4610
|
+
pageProgress?: PageProgressOptions | false;
|
|
4544
4611
|
}
|
|
4545
4612
|
|
|
4546
4613
|
export declare type ThemeType = 'clay' | 'glass' | 'neo' | 'minimalism' | 'brutalism' | 'bento' | 'cyberpunk' | 'retro' | 'swiss' | 'skeuomorphism' | 'liquid-glass' | 'material-you' | 'terminal' | 'hand-drawn' | 'y2k-chrome' | 'bauhaus' | 'pixel-art' | 'aurora-gradient' | 'vaporwave' | 'manga';
|
|
@@ -5388,6 +5455,15 @@ export declare function useDragDrop(): {
|
|
|
5388
5455
|
reorderArray: typeof reorderArray;
|
|
5389
5456
|
};
|
|
5390
5457
|
|
|
5458
|
+
export declare function usePageProgress(): {
|
|
5459
|
+
isLoading: Readonly<Ref<boolean, boolean>>;
|
|
5460
|
+
progress: Readonly<Ref<number, number>>;
|
|
5461
|
+
start: typeof start;
|
|
5462
|
+
done: typeof done;
|
|
5463
|
+
set: typeof set;
|
|
5464
|
+
attachRouterProgress: typeof attachRouterProgress;
|
|
5465
|
+
};
|
|
5466
|
+
|
|
5391
5467
|
export declare function useStyle(css: string, options?: UseStyleOptions): {
|
|
5392
5468
|
id: string;
|
|
5393
5469
|
name: string | undefined;
|