@farris/x-ui 0.6.4 → 0.6.6
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/assets/css/icons.css +1 -1
- package/assets/icon-preview.html +39 -2
- package/bubble/src/bubble.component.d.ts +3 -3
- package/calendar/index.d.ts +9 -0
- package/calendar/src/calendar.component.d.ts +22 -0
- package/calendar/src/calendar.props.d.ts +39 -0
- package/calendar/src/composition/calendar-date.d.ts +8 -0
- package/calendar/src/composition/calendar-lunar.d.ts +1 -0
- package/calendar/src/composition/calendar-swipe.d.ts +2 -0
- package/calendar/src/test/calendar.spec.d.ts +1 -0
- package/carousel/src/carousel.component.d.ts +4 -4
- package/carousel/src/components/carousel-item.component.d.ts +1 -1
- package/components.d.ts +2 -0
- package/confirm-dialog/src/confirm-dialog.component.d.ts +3 -3
- package/credential-auth-dialog/src/credential-auth-dialog.component.d.ts +2 -2
- package/dialog-shell/src/dialog-shell.component.d.ts +3 -3
- package/empty-state/src/empty-state.component.d.ts +3 -3
- package/farris.x-ui.esm.js +26710 -16233
- package/farris.x-ui.umd.cjs +125 -125
- package/generate-process/src/generate-process.component.d.ts +6 -6
- package/hitl-question/src/hitl-question.component.d.ts +12 -1
- package/hitl-question/src/types.d.ts +2 -0
- package/image-preview/src/image-preview.component.d.ts +4 -4
- package/index.css +1 -1
- package/list-view/src/components/list-view-item.component.d.ts +2 -2
- package/list-view/src/list-view.component.d.ts +6 -6
- package/package.json +1 -1
- package/popover/src/popover.component.d.ts +9 -9
- package/search-box/src/search-box.component.d.ts +10 -10
- package/splitter/src/composition/types.d.ts +5 -0
- package/splitter/src/composition/use-collapse-pane.d.ts +10 -0
- package/splitter/test/splitter-pane.spec.d.ts +1 -0
- package/todo/src/todo.component.d.ts +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Attachment } from '../../../composition/types';
|
|
2
2
|
|
|
3
3
|
declare const _default: import('../../../vue').DefineComponent<{
|
|
4
|
-
header: import('../../../bubble.props').BubbleHeaderType;
|
|
5
4
|
customClass: string | string[] | Record<string, boolean>;
|
|
5
|
+
header: import('../../../bubble.props').BubbleHeaderType;
|
|
6
6
|
outputMode: import('../../../../..').OutputMode;
|
|
7
7
|
placement: import('../../../bubble.props').BubblePlacement;
|
|
8
8
|
classNames: Record<import('../../../..').AppearanceType, string | string[] | Record<string, boolean>>;
|
|
@@ -20,8 +20,8 @@ declare const _default: import('../../../vue').DefineComponent<{
|
|
|
20
20
|
onDynamicComponentsDetected?: ((configs: import('../../../../..').DynamicComponentConfig[]) => void) | undefined;
|
|
21
21
|
onShowDynamicComponent?: ((config: import('../../../../..').DynamicComponentConfig) => void) | undefined;
|
|
22
22
|
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../vue').ComponentOptionsMixin, import('../../../vue').ComponentOptionsMixin, {}, string, import('../../../vue').PublicProps, Readonly<{
|
|
23
|
-
header: import('../../../bubble.props').BubbleHeaderType;
|
|
24
23
|
customClass: string | string[] | Record<string, boolean>;
|
|
24
|
+
header: import('../../../bubble.props').BubbleHeaderType;
|
|
25
25
|
outputMode: import('../../../../..').OutputMode;
|
|
26
26
|
placement: import('../../../bubble.props').BubblePlacement;
|
|
27
27
|
classNames: Record<import('../../../..').AppearanceType, string | string[] | Record<string, boolean>>;
|
|
@@ -39,8 +39,8 @@ declare const _default: import('../../../vue').DefineComponent<{
|
|
|
39
39
|
onDynamicComponentsDetected?: ((configs: import('../../../../..').DynamicComponentConfig[]) => void) | undefined;
|
|
40
40
|
onShowDynamicComponent?: ((config: import('../../../../..').DynamicComponentConfig) => void) | undefined;
|
|
41
41
|
}> & Readonly<{}>, {
|
|
42
|
-
header: import('../../../bubble.props').BubbleHeaderType;
|
|
43
42
|
customClass: string | string[] | Record<string, boolean>;
|
|
43
|
+
header: import('../../../bubble.props').BubbleHeaderType;
|
|
44
44
|
outputMode: import('../../../../..').OutputMode;
|
|
45
45
|
placement: import('../../../bubble.props').BubblePlacement;
|
|
46
46
|
classNames: Record<import('../../../..').AppearanceType, string | string[] | Record<string, boolean>>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Plugin } from '../../vue';
|
|
2
|
+
import { default as FXCalendar } from '../../src/calendar.component';
|
|
3
|
+
|
|
4
|
+
export * from '../../src/calendar.props';
|
|
5
|
+
export * from '../../src/composition/calendar-date';
|
|
6
|
+
export * from '../../src/composition/calendar-lunar';
|
|
7
|
+
export { FXCalendar };
|
|
8
|
+
declare const _default: typeof FXCalendar & Plugin;
|
|
9
|
+
export default _default;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { CalendarView } from '../../../calendar.props';
|
|
2
|
+
|
|
3
|
+
declare const _default: import('../../../vue').DefineComponent<{
|
|
4
|
+
customClass: string;
|
|
5
|
+
lunar: boolean;
|
|
6
|
+
markedDates: string[];
|
|
7
|
+
modelValue: string;
|
|
8
|
+
view: CalendarView;
|
|
9
|
+
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../vue').ComponentOptionsMixin, import('../../../vue').ComponentOptionsMixin, {}, "update:modelValue" | "update:view", import('../../../vue').PublicProps, Readonly<{
|
|
10
|
+
customClass: string;
|
|
11
|
+
lunar: boolean;
|
|
12
|
+
markedDates: string[];
|
|
13
|
+
modelValue: string;
|
|
14
|
+
view: CalendarView;
|
|
15
|
+
}> & Readonly<{}>, {
|
|
16
|
+
customClass: string;
|
|
17
|
+
lunar: boolean;
|
|
18
|
+
markedDates: string[];
|
|
19
|
+
modelValue: string;
|
|
20
|
+
view: CalendarView;
|
|
21
|
+
}, {}, {}, {}, string, import('../../../vue').ComponentProvideOptions, true, {}, any>;
|
|
22
|
+
export default _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { ExtractPropTypes, PropType } from '../../../vue';
|
|
2
|
+
|
|
3
|
+
/** 日:展示选中日所在的一周;月:展示整月 */
|
|
4
|
+
export type CalendarView = 'day' | 'month';
|
|
5
|
+
export declare const CALENDAR_VIEWS: CalendarView[];
|
|
6
|
+
export declare const CALENDAR_VIEW_LABELS: Record<CalendarView, string>;
|
|
7
|
+
export interface CalendarDayCell {
|
|
8
|
+
date: string;
|
|
9
|
+
day: number;
|
|
10
|
+
inMonth: boolean;
|
|
11
|
+
}
|
|
12
|
+
export declare const calendarProps: {
|
|
13
|
+
/** 追加到根节点的样式类名 */
|
|
14
|
+
customClass: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
/** 是否在公历日期下展示农历。默认关闭 */
|
|
19
|
+
lunar: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
/** 有日程的日期,格式 YYYY-MM-DD,这些日期下方显示圆点 */
|
|
24
|
+
markedDates: {
|
|
25
|
+
type: PropType<string[]>;
|
|
26
|
+
default: () => never[];
|
|
27
|
+
};
|
|
28
|
+
/** 选中日期,格式 YYYY-MM-DD。空字符串时使用当天 */
|
|
29
|
+
modelValue: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
/** 展示粒度。日显示所在周,月显示整月 */
|
|
34
|
+
view: {
|
|
35
|
+
type: PropType<CalendarView>;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
export type CalendarProps = ExtractPropTypes<typeof calendarProps>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { CalendarDayCell, CalendarView } from '../../../../../calendar.props';
|
|
2
|
+
|
|
3
|
+
export declare function calendarWeekdayLabels(view?: CalendarView): string[];
|
|
4
|
+
export declare function parseCalendarDate(value: string): Date;
|
|
5
|
+
export declare function formatCalendarDate(date: Date): string;
|
|
6
|
+
export declare function formatCalendarTitle(date: Date, view?: CalendarView): string;
|
|
7
|
+
export declare function shiftCalendarDate(value: string, view: CalendarView, step: number): string;
|
|
8
|
+
export declare function buildCalendarCells(value: string, view: CalendarView): CalendarDayCell[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function formatLunarDay(value: string): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -73,7 +73,7 @@ declare const _default: import('../../../vue').DefineComponent<import('../../../
|
|
|
73
73
|
type: import('../../../vue').PropType<"inner" | "outer">;
|
|
74
74
|
default: string;
|
|
75
75
|
};
|
|
76
|
-
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../vue').ComponentOptionsMixin, import('../../../vue').ComponentOptionsMixin, {}, "
|
|
76
|
+
}>, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../vue').ComponentOptionsMixin, import('../../../vue').ComponentOptionsMixin, {}, "update:modelValue" | "change" | "item-click", import('../../../vue').PublicProps, Readonly<import('../../../vue').ExtractPropTypes<{
|
|
77
77
|
items: {
|
|
78
78
|
type: import('../../../vue').PropType<CarouselItemType[]>;
|
|
79
79
|
default: () => never[];
|
|
@@ -147,14 +147,14 @@ declare const _default: import('../../../vue').DefineComponent<import('../../../
|
|
|
147
147
|
default: string;
|
|
148
148
|
};
|
|
149
149
|
}>> & Readonly<{}>, {
|
|
150
|
-
items: CarouselItemType[];
|
|
151
150
|
customClass: string | string[] | Record<string, boolean>;
|
|
151
|
+
modelValue: number;
|
|
152
|
+
items: CarouselItemType[];
|
|
152
153
|
showArrow: boolean;
|
|
154
|
+
height: string | number;
|
|
153
155
|
classNames: Record<import('../../../..').CarouselAppearanceType, string | string[] | Record<string, boolean>>;
|
|
154
156
|
customStyle: string | import('../../../vue').CSSProperties;
|
|
155
157
|
styles: Record<import('../../../..').CarouselAppearanceType, import('../../../vue').CSSProperties>;
|
|
156
|
-
modelValue: number;
|
|
157
|
-
height: string | number;
|
|
158
158
|
direction: import('../../../..').CarouselDirection;
|
|
159
159
|
autoplay: boolean;
|
|
160
160
|
interval: number;
|
|
@@ -51,10 +51,10 @@ declare const _default: import('../../../../vue').DefineComponent<import('../../
|
|
|
51
51
|
}>> & Readonly<{
|
|
52
52
|
onClick?: ((...args: any[]) => any) | undefined;
|
|
53
53
|
}>, {
|
|
54
|
+
item: import('../../../../../..').CarouselItemType;
|
|
54
55
|
active: boolean;
|
|
55
56
|
classNames: Record<import('../../../../../..').CarouselAppearanceType, string | string[] | Record<string, boolean>>;
|
|
56
57
|
styles: Record<import('../../../../../..').CarouselAppearanceType, import('../../../../vue').CSSProperties>;
|
|
57
|
-
item: import('../../../../../..').CarouselItemType;
|
|
58
58
|
showInfo: boolean;
|
|
59
59
|
index: number;
|
|
60
60
|
}, {}, {}, {}, string, import('../../../../vue').ComponentProvideOptions, true, {}, any>;
|
package/components.d.ts
CHANGED
|
@@ -76,5 +76,7 @@ export { default as FXImagePreview } from '../image-preview';
|
|
|
76
76
|
export * from '../image-preview';
|
|
77
77
|
export { default as FXEmptyState } from '../empty-state';
|
|
78
78
|
export * from '../empty-state';
|
|
79
|
+
export { default as FXCalendar } from '../calendar';
|
|
80
|
+
export * from '../calendar';
|
|
79
81
|
export { default as FXNotify, FXToast, notifyService, FXNotifyService, Notify, Toast } from '../notify';
|
|
80
82
|
export * from '../notify';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
declare const _default: import('../../../vue').DefineComponent<{
|
|
2
|
+
modelValue: boolean;
|
|
2
3
|
title: string | import('../../../vue').VNode<import('../../../vue').RendererNode, import('../../../vue').RendererElement, {
|
|
3
4
|
[key: string]: any;
|
|
4
5
|
}>;
|
|
5
|
-
modelValue: boolean;
|
|
6
6
|
showDivider: boolean;
|
|
7
7
|
description: string | import('../../../vue').VNode<import('../../../vue').RendererNode, import('../../../vue').RendererElement, {
|
|
8
8
|
[key: string]: any;
|
|
@@ -17,10 +17,10 @@ declare const _default: import('../../../vue').DefineComponent<{
|
|
|
17
17
|
}, () => import('../../../vue').VNode<import('../../../vue').RendererNode, import('../../../vue').RendererElement, {
|
|
18
18
|
[key: string]: any;
|
|
19
19
|
}> | null, {}, {}, {}, import('../../../vue').ComponentOptionsMixin, import('../../../vue').ComponentOptionsMixin, {}, string, import('../../../vue').PublicProps, Readonly<{
|
|
20
|
+
modelValue: boolean;
|
|
20
21
|
title: string | import('../../../vue').VNode<import('../../../vue').RendererNode, import('../../../vue').RendererElement, {
|
|
21
22
|
[key: string]: any;
|
|
22
23
|
}>;
|
|
23
|
-
modelValue: boolean;
|
|
24
24
|
showDivider: boolean;
|
|
25
25
|
description: string | import('../../../vue').VNode<import('../../../vue').RendererNode, import('../../../vue').RendererElement, {
|
|
26
26
|
[key: string]: any;
|
|
@@ -33,10 +33,10 @@ declare const _default: import('../../../vue').DefineComponent<{
|
|
|
33
33
|
confirmLoading: boolean;
|
|
34
34
|
autoCloseOnConfirm: boolean;
|
|
35
35
|
}> & Readonly<{}>, {
|
|
36
|
+
modelValue: boolean;
|
|
36
37
|
title: string | import('../../../vue').VNode<import('../../../vue').RendererNode, import('../../../vue').RendererElement, {
|
|
37
38
|
[key: string]: any;
|
|
38
39
|
}>;
|
|
39
|
-
modelValue: boolean;
|
|
40
40
|
showDivider: boolean;
|
|
41
41
|
description: string | import('../../../vue').VNode<import('../../../vue').RendererNode, import('../../../vue').RendererElement, {
|
|
42
42
|
[key: string]: any;
|
|
@@ -71,11 +71,11 @@ declare const _default: import('../../../vue').DefineComponent<import('../../../
|
|
|
71
71
|
};
|
|
72
72
|
}>> & Readonly<{}>, {
|
|
73
73
|
title: string;
|
|
74
|
-
onClose: () => void;
|
|
75
74
|
visible: boolean;
|
|
76
|
-
disabled: boolean;
|
|
77
75
|
question: string;
|
|
78
76
|
systemName: string;
|
|
77
|
+
disabled: boolean;
|
|
78
|
+
onClose: () => void;
|
|
79
79
|
teleportTo: string | HTMLElement;
|
|
80
80
|
}, {}, {}, {}, string, import('../../../vue').ComponentProvideOptions, true, {}, any>;
|
|
81
81
|
export default _default;
|
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
declare const _default: import('../../../vue').DefineComponent<{
|
|
2
|
+
modelValue: boolean;
|
|
2
3
|
title: string;
|
|
3
4
|
width: string;
|
|
4
|
-
modelValue: boolean;
|
|
5
5
|
closeOnMask: boolean;
|
|
6
6
|
dialogClass: string;
|
|
7
7
|
maskClass: string;
|
|
8
8
|
showClose: boolean;
|
|
9
9
|
}, () => import("vue/jsx-runtime").JSX.Element | null, {}, {}, {}, import('../../../vue').ComponentOptionsMixin, import('../../../vue').ComponentOptionsMixin, {}, string, import('../../../vue').PublicProps, Readonly<{
|
|
10
|
+
modelValue: boolean;
|
|
10
11
|
title: string;
|
|
11
12
|
width: string;
|
|
12
|
-
modelValue: boolean;
|
|
13
13
|
closeOnMask: boolean;
|
|
14
14
|
dialogClass: string;
|
|
15
15
|
maskClass: string;
|
|
16
16
|
showClose: boolean;
|
|
17
17
|
}> & Readonly<{}>, {
|
|
18
|
+
modelValue: boolean;
|
|
18
19
|
title: string;
|
|
19
20
|
width: string;
|
|
20
|
-
modelValue: boolean;
|
|
21
21
|
closeOnMask: boolean;
|
|
22
22
|
dialogClass: string;
|
|
23
23
|
maskClass: string;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
declare const _default: import('../../../vue').DefineComponent<{
|
|
2
|
-
type: import('../../../empty-state.props').EmptyStateType;
|
|
3
2
|
customClass: string;
|
|
3
|
+
type: import('../../../empty-state.props').EmptyStateType;
|
|
4
4
|
size: import('../../../empty-state.props').EmptyStateSize;
|
|
5
5
|
description?: string | undefined;
|
|
6
6
|
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import('../../../vue').ComponentOptionsMixin, import('../../../vue').ComponentOptionsMixin, {}, string, import('../../../vue').PublicProps, Readonly<{
|
|
7
|
-
type: import('../../../empty-state.props').EmptyStateType;
|
|
8
7
|
customClass: string;
|
|
8
|
+
type: import('../../../empty-state.props').EmptyStateType;
|
|
9
9
|
size: import('../../../empty-state.props').EmptyStateSize;
|
|
10
10
|
description?: string | undefined;
|
|
11
11
|
}> & Readonly<{}>, {
|
|
12
|
-
type: import('../../../empty-state.props').EmptyStateType;
|
|
13
12
|
customClass: string;
|
|
13
|
+
type: import('../../../empty-state.props').EmptyStateType;
|
|
14
14
|
size: import('../../../empty-state.props').EmptyStateSize;
|
|
15
15
|
description: string;
|
|
16
16
|
}, {}, {}, {}, string, import('../../../vue').ComponentProvideOptions, true, {}, any>;
|