yuyeon 0.1.0-rc.14 → 0.1.0-rc.16
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/abstract/items.d.ts +49 -0
- package/dist/components/alert/YAlert.d.ts +24 -0
- package/dist/components/alert/index.d.ts +1 -0
- package/dist/components/app/YApp.d.ts +8 -0
- package/dist/components/app/index.d.ts +1 -0
- package/dist/components/badge/YBadge.d.ts +142 -0
- package/dist/components/badge/index.d.ts +1 -0
- package/dist/components/bench/YBench.d.ts +4 -0
- package/dist/components/bench/index.d.ts +1 -0
- package/dist/components/button/YButton.d.ts +248 -0
- package/dist/components/button/index.d.ts +1 -0
- package/dist/components/card/YCard.d.ts +12 -0
- package/dist/components/card/YCardBody.d.ts +2 -0
- package/dist/components/card/YCardFooter.d.ts +2 -0
- package/dist/components/card/YCardHeader.d.ts +2 -0
- package/dist/components/card/index.d.ts +4 -0
- package/dist/components/checkbox/YCheckbox.d.ts +48 -0
- package/dist/components/checkbox/YInputCheckbox.d.ts +55 -0
- package/dist/components/checkbox/index.d.ts +3 -0
- package/dist/components/chip/YChip.d.ts +36 -0
- package/dist/components/chip/index.d.ts +1 -0
- package/dist/components/date-picker/YDateCalendar.d.ts +143 -0
- package/dist/components/date-picker/YDatePicker.d.ts +123 -0
- package/dist/components/date-picker/YDatePickerControl.d.ts +129 -0
- package/dist/components/date-picker/YMonthPicker.d.ts +29 -0
- package/dist/components/date-picker/YYearPicker.d.ts +44 -0
- package/dist/components/date-picker/index.d.ts +3 -0
- package/dist/components/default-provider/YDefaultProvider.d.ts +0 -0
- package/dist/components/default-provider/index.d.ts +0 -0
- package/dist/components/dialog/YDialog.d.ts +2333 -0
- package/dist/components/dialog/index.d.ts +1 -0
- package/dist/components/divider/YDivider.d.ts +16 -0
- package/dist/components/divider/index.d.ts +1 -0
- package/dist/components/dropdown/YDropdown.d.ts +651 -0
- package/dist/components/dropdown/index.d.ts +1 -0
- package/dist/components/field-input/YFieldInput.d.ts +416 -0
- package/dist/components/field-input/index.d.ts +1 -0
- package/dist/components/form/YForm.d.ts +42 -0
- package/dist/components/form/index.d.ts +1 -0
- package/dist/components/hover/YHover.d.ts +75 -0
- package/dist/components/icon/YIcon.d.ts +82 -0
- package/dist/components/icon/index.d.ts +1 -0
- package/dist/components/icons/YIconCheckbox.d.ts +14 -0
- package/dist/components/icons/YIconClear.d.ts +1 -0
- package/dist/components/icons/YIconDropdown.d.ts +1 -0
- package/dist/components/icons/YIconExpand.d.ts +1 -0
- package/dist/components/icons/YIconPageControl.d.ts +21 -0
- package/dist/components/icons/YIconSort.d.ts +19 -0
- package/dist/components/icons/index.d.ts +89 -0
- package/dist/components/index.d.ts +33 -0
- package/dist/components/input/YInput.d.ts +336 -0
- package/dist/components/input/index.d.ts +1 -0
- package/dist/components/layer/YLayer.d.ts +2089 -0
- package/dist/components/layer/active-delay.d.ts +4 -0
- package/dist/components/layer/active-stack.d.ts +16 -0
- package/dist/components/layer/base.d.ts +22 -0
- package/dist/components/layer/content.d.ts +21 -0
- package/dist/components/layer/index.d.ts +1 -0
- package/dist/components/layer/scroll-strategies.d.ts +41 -0
- package/dist/components/list/YList.d.ts +24 -0
- package/dist/components/list/YListItem.d.ts +55 -0
- package/dist/components/list/index.d.ts +2 -0
- package/dist/components/loading/YSpinnerRing.d.ts +3 -0
- package/dist/components/loading/index.d.ts +1 -0
- package/dist/components/menu/YMenu.d.ts +2188 -0
- package/dist/components/menu/index.d.ts +1 -0
- package/dist/components/navigation/YNavigation.d.ts +1 -0
- package/dist/components/navigation/index.d.ts +1 -0
- package/dist/components/pagination/YPagination.d.ts +177 -0
- package/dist/components/pagination/index.d.ts +1 -0
- package/dist/components/panel/YDividePanel.d.ts +5 -0
- package/dist/components/panel/index.d.ts +1 -0
- package/dist/components/plate/YPlate.d.ts +11 -0
- package/dist/components/plate/index.d.ts +1 -0
- package/dist/components/progress-bar/YProgressBar.d.ts +78 -0
- package/dist/components/progress-bar/index.d.ts +1 -0
- package/dist/components/select/YSelect.d.ts +7241 -0
- package/dist/components/select/index.d.ts +1 -0
- package/dist/components/snackbar/YSnackbar.d.ts +90 -0
- package/dist/components/snackbar/index.d.ts +1 -0
- package/dist/components/switch/YSwitch.d.ts +108 -0
- package/dist/components/switch/index.d.ts +1 -0
- package/dist/components/tab/YTab.d.ts +284 -0
- package/dist/components/tab/YTabs.d.ts +131 -0
- package/dist/components/tab/index.d.ts +3 -0
- package/dist/components/tab/shared.d.ts +4 -0
- package/dist/components/tab/types.d.ts +5 -0
- package/dist/components/table/YDataTable.d.ts +453 -0
- package/dist/components/table/YDataTableBody.d.ts +110 -0
- package/dist/components/table/YDataTableCell.d.ts +57 -0
- package/dist/components/table/YDataTableControl.d.ts +71 -0
- package/dist/components/table/YDataTableHead.d.ts +72 -0
- package/dist/components/table/YDataTableLayer.d.ts +12 -0
- package/dist/components/table/YDataTableRow.d.ts +49 -0
- package/dist/components/table/YDataTableServer.d.ts +490 -0
- package/dist/components/table/YTable.d.ts +84 -0
- package/dist/components/table/composibles/header.d.ts +69 -0
- package/dist/components/table/composibles/items.d.ts +55 -0
- package/dist/components/table/composibles/options.d.ts +11 -0
- package/dist/components/table/composibles/pagination.d.ts +81 -0
- package/dist/components/table/composibles/selection.d.ts +82 -0
- package/dist/components/table/composibles/sorting.d.ts +44 -0
- package/dist/components/table/index.d.ts +3 -0
- package/dist/components/table/types/common.d.ts +2 -0
- package/dist/components/table/types/header.d.ts +23 -0
- package/dist/components/table/types/index.d.ts +57 -0
- package/dist/components/table/types/item.d.ts +21 -0
- package/dist/components/table/types/row.d.ts +4 -0
- package/dist/components/text-ellipsis/YTextEllipsis.d.ts +15 -0
- package/dist/components/text-ellipsis/index.d.ts +1 -0
- package/dist/components/text-highlighter/YTextHighlighter.d.ts +41 -0
- package/dist/components/text-highlighter/index.d.ts +1 -0
- package/dist/components/textarea/YTextarea.d.ts +589 -0
- package/dist/components/textarea/index.d.ts +1 -0
- package/dist/components/toggle-button/YToggleButton.d.ts +4 -0
- package/dist/components/toggle-button/index.d.ts +1 -0
- package/dist/components/tooltip/YTooltip.d.ts +3875 -0
- package/dist/components/tooltip/index.d.ts +1 -0
- package/dist/components/transitions/expand-transition.d.ts +17 -0
- package/dist/components/transitions/index.d.ts +32 -0
- package/dist/components/tree-view/YTreeView.d.ts +154 -0
- package/dist/components/tree-view/YTreeViewNode.d.ts +202 -0
- package/dist/components/tree-view/index.d.ts +2 -0
- package/dist/components/tree-view/types.d.ts +15 -0
- package/dist/components/tree-view/util.d.ts +6 -0
- package/dist/composables/choice-link.d.ts +3 -0
- package/dist/composables/choice.d.ts +113 -0
- package/dist/composables/communication.d.ts +8 -0
- package/dist/composables/component.d.ts +3 -0
- package/dist/composables/coordinate/arrangement.d.ts +7 -0
- package/dist/composables/coordinate/index.d.ts +1672 -0
- package/dist/composables/coordinate/levitation.d.ts +7 -0
- package/dist/composables/coordinate/types.d.ts +7 -0
- package/dist/composables/coordinate/utils/point.d.ts +22 -0
- package/dist/composables/date/factory.d.ts +3 -0
- package/dist/composables/date/index.d.ts +12 -0
- package/dist/composables/date/setting.d.ts +5 -0
- package/dist/composables/date/types.d.ts +13 -0
- package/dist/composables/dimension.d.ts +54 -0
- package/dist/composables/focus.d.ts +30 -0
- package/dist/composables/form.d.ts +127 -0
- package/dist/composables/i18n/index.d.ts +9 -0
- package/dist/composables/i18n/locale.d.ts +3 -0
- package/dist/composables/i18n/rtl.d.ts +21 -0
- package/dist/composables/i18n/share.d.ts +1 -0
- package/dist/composables/icon.d.ts +95 -0
- package/dist/composables/index.d.ts +9 -0
- package/dist/composables/layer-group.d.ts +8 -0
- package/dist/composables/layout.d.ts +10 -0
- package/dist/composables/list-items.d.ts +111 -0
- package/dist/composables/progress.d.ts +3 -0
- package/dist/composables/ref.d.ts +6 -0
- package/dist/composables/resize-observer.d.ts +14 -0
- package/dist/composables/scope.d.ts +3 -0
- package/dist/composables/theme/factory.d.ts +4 -0
- package/dist/composables/theme/helper.d.ts +3 -0
- package/dist/composables/theme/index.d.ts +56 -0
- package/dist/composables/theme/setting.d.ts +10 -0
- package/dist/composables/theme/types.d.ts +28 -0
- package/dist/composables/timing.d.ts +20 -0
- package/dist/composables/transition.d.ts +22 -0
- package/dist/composables/validation.d.ts +82 -0
- package/dist/composables/vue-router.d.ts +43 -0
- package/dist/directives/complement-click/index.d.ts +26 -0
- package/dist/directives/plate-wave/index.d.ts +14 -0
- package/dist/directives/theme-class.d.ts +4 -0
- package/dist/etc/index.d.ts +1 -0
- package/dist/globals.d.ts +20 -0
- package/dist/i18n/built-in.d.ts +3 -0
- package/dist/i18n/config.d.ts +81 -0
- package/dist/i18n/types.d.ts +20 -0
- package/dist/index.d.ts +13 -0
- package/dist/locales/en.d.ts +6 -0
- package/dist/locales/index.d.ts +2 -0
- package/dist/locales/ko.d.ts +6 -0
- package/dist/mixins/di.d.ts +2 -0
- package/dist/mixins/rebind-attrs.d.ts +5 -0
- package/dist/shims.d.ts +51 -0
- package/dist/style.css +1 -1
- package/dist/types/index.d.ts +7 -0
- package/dist/util/anchor.d.ts +23 -0
- package/dist/util/array.d.ts +2 -0
- package/dist/util/collection.d.ts +1 -0
- package/dist/util/color/apca.d.ts +29 -0
- package/dist/util/color/const.d.ts +5 -0
- package/dist/util/color/contrast/contrast.d.ts +74 -0
- package/dist/util/color/conversion.d.ts +131 -0
- package/dist/util/color/hct/cam16.d.ts +116 -0
- package/dist/util/color/hct/hct-solver.d.ts +131 -0
- package/dist/util/color/hct/hct.d.ts +71 -0
- package/dist/util/color/hct/viewing-conditions.d.ts +58 -0
- package/dist/util/color/index.d.ts +4 -0
- package/dist/util/color/palettes/core-palette.d.ts +44 -0
- package/dist/util/color/palettes/tonal-palette.d.ts +40 -0
- package/dist/util/color/types.d.ts +14 -0
- package/dist/util/color/utils/math-utils.d.ts +82 -0
- package/dist/util/common.d.ts +13 -0
- package/dist/util/date/adapters/yuyeon-date-adapter.d.ts +43 -0
- package/dist/util/date/built-in.d.ts +41 -0
- package/dist/util/date/index.d.ts +3 -0
- package/dist/util/date/types.d.ts +167 -0
- package/dist/util/debounce.d.ts +11 -0
- package/dist/util/dom.d.ts +3 -0
- package/dist/util/frame-scheduler.d.ts +7 -0
- package/dist/util/index.d.ts +16 -0
- package/dist/util/reactivity.d.ts +7 -0
- package/dist/util/rect.d.ts +36 -0
- package/dist/util/scroll.d.ts +3 -0
- package/dist/util/string.d.ts +4 -0
- package/dist/util/ui.d.ts +4 -0
- package/dist/util/validation.d.ts +3 -0
- package/dist/util/vue-component.d.ts +39 -0
- package/dist/yuyeon.js +2974 -2971
- package/dist/yuyeon.umd.cjs +13 -13
- package/lib/components/badge/YBadge.scss +0 -1
- package/lib/components/field-input/YFieldInput.scss +1 -1
- package/lib/components/layer/YLayer.mjs +15 -7
- package/lib/components/layer/YLayer.mjs.map +1 -1
- package/lib/components/layer/content.mjs +22 -0
- package/lib/components/layer/content.mjs.map +1 -0
- package/lib/components/menu/YMenu.mjs +1 -9
- package/lib/components/menu/YMenu.mjs.map +1 -1
- package/lib/components/select/YSelect.mjs +8 -5
- package/lib/components/select/YSelect.mjs.map +1 -1
- package/lib/composables/icon.mjs.map +1 -1
- package/lib/index.mjs +1 -1
- package/lib/index.mjs.map +1 -1
- package/package.json +11 -11
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './YTooltip';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
|
|
3
|
+
export declare function createExpandTransition(isHorizon?: boolean): import('vue').DefineComponent<{
|
|
4
|
+
disabled: {
|
|
5
|
+
type: PropType<boolean>;
|
|
6
|
+
default: boolean;
|
|
7
|
+
};
|
|
8
|
+
}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
9
|
+
[key: string]: any;
|
|
10
|
+
}>, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
11
|
+
disabled: {
|
|
12
|
+
type: PropType<boolean>;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
}>>, {
|
|
16
|
+
disabled: boolean;
|
|
17
|
+
}, {}>;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
export declare const YExpandVTransition: import('vue').DefineComponent<{
|
|
2
|
+
disabled: {
|
|
3
|
+
type: import('vue').PropType<boolean>;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
7
|
+
[key: string]: any;
|
|
8
|
+
}>, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
9
|
+
disabled: {
|
|
10
|
+
type: import('vue').PropType<boolean>;
|
|
11
|
+
default: boolean;
|
|
12
|
+
};
|
|
13
|
+
}>>, {
|
|
14
|
+
disabled: boolean;
|
|
15
|
+
}, {}>;
|
|
16
|
+
export declare const YExpandHTransition: import('vue').DefineComponent<{
|
|
17
|
+
disabled: {
|
|
18
|
+
type: import('vue').PropType<boolean>;
|
|
19
|
+
default: boolean;
|
|
20
|
+
};
|
|
21
|
+
}, () => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}>, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
24
|
+
disabled: {
|
|
25
|
+
type: import('vue').PropType<boolean>;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
28
|
+
}>>, {
|
|
29
|
+
disabled: boolean;
|
|
30
|
+
}, {}>;
|
|
31
|
+
export type YExpandVTransition = InstanceType<typeof YExpandVTransition>;
|
|
32
|
+
export type YExpandHTransition = InstanceType<typeof YExpandHTransition>;
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { PropType, Ref } from 'vue';
|
|
2
|
+
import { CandidateKey } from '../../types';
|
|
3
|
+
import { TreeviewFilterFn } from './types';
|
|
4
|
+
|
|
5
|
+
export declare const YTreeView: import('vue').DefineComponent<{
|
|
6
|
+
items: {
|
|
7
|
+
type: PropType<any[]>;
|
|
8
|
+
default: () => never[];
|
|
9
|
+
};
|
|
10
|
+
itemKey: Omit<{
|
|
11
|
+
type: PropType<string>;
|
|
12
|
+
default: string;
|
|
13
|
+
}, "default" | "type"> & {
|
|
14
|
+
type: PropType<string>;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
itemText: {
|
|
18
|
+
type: PropType<string>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
itemChildren: {
|
|
22
|
+
type: PropType<string | boolean>;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
search: StringConstructor;
|
|
26
|
+
disableTransition: BooleanConstructor;
|
|
27
|
+
enableActive: BooleanConstructor;
|
|
28
|
+
activeClass: (ArrayConstructor | StringConstructor)[];
|
|
29
|
+
activeSingleModifier: StringConstructor;
|
|
30
|
+
requiredActive: BooleanConstructor;
|
|
31
|
+
activeColor: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
enableSelect: BooleanConstructor;
|
|
36
|
+
expanded: {
|
|
37
|
+
type: PropType<CandidateKey[]>;
|
|
38
|
+
default: () => never[];
|
|
39
|
+
};
|
|
40
|
+
active: {
|
|
41
|
+
type: PropType<CandidateKey[]>;
|
|
42
|
+
default: () => never[];
|
|
43
|
+
};
|
|
44
|
+
multipleActive: BooleanConstructor;
|
|
45
|
+
activeStrategy: {
|
|
46
|
+
type: PropType<"independent" | "cascade">;
|
|
47
|
+
default: string;
|
|
48
|
+
};
|
|
49
|
+
selected: {
|
|
50
|
+
type: PropType<CandidateKey[]>;
|
|
51
|
+
default: () => never[];
|
|
52
|
+
};
|
|
53
|
+
selectStrategy: {
|
|
54
|
+
type: PropType<"independent" | "cascade">;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
returnItem: BooleanConstructor;
|
|
58
|
+
defaultExpand: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
59
|
+
filter: PropType<TreeviewFilterFn>;
|
|
60
|
+
searchDebounceWait: {
|
|
61
|
+
type: PropType<number>;
|
|
62
|
+
default: number;
|
|
63
|
+
};
|
|
64
|
+
}, {
|
|
65
|
+
nodes: Ref<Record<CandidateKey, any>>;
|
|
66
|
+
expandedSet: Ref<Set<CandidateKey> & Omit<Set<CandidateKey>, keyof Set<any>>>;
|
|
67
|
+
selectedSet: Ref<Set<CandidateKey> & Omit<Set<CandidateKey>, keyof Set<any>>>;
|
|
68
|
+
activeSet: Ref<Set<CandidateKey> & Omit<Set<CandidateKey>, keyof Set<any>>>;
|
|
69
|
+
excludedSet: Ref<Set<CandidateKey> & Omit<Set<CandidateKey>, keyof Set<any>>>;
|
|
70
|
+
searchLoading: import('vue').ShallowRef<boolean>;
|
|
71
|
+
expandedCache: Ref<CandidateKey[]>;
|
|
72
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("update:expanded" | "update:active" | "update:selected")[], "update:expanded" | "update:active" | "update:selected", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
73
|
+
items: {
|
|
74
|
+
type: PropType<any[]>;
|
|
75
|
+
default: () => never[];
|
|
76
|
+
};
|
|
77
|
+
itemKey: Omit<{
|
|
78
|
+
type: PropType<string>;
|
|
79
|
+
default: string;
|
|
80
|
+
}, "default" | "type"> & {
|
|
81
|
+
type: PropType<string>;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
itemText: {
|
|
85
|
+
type: PropType<string>;
|
|
86
|
+
default: string;
|
|
87
|
+
};
|
|
88
|
+
itemChildren: {
|
|
89
|
+
type: PropType<string | boolean>;
|
|
90
|
+
default: string;
|
|
91
|
+
};
|
|
92
|
+
search: StringConstructor;
|
|
93
|
+
disableTransition: BooleanConstructor;
|
|
94
|
+
enableActive: BooleanConstructor;
|
|
95
|
+
activeClass: (ArrayConstructor | StringConstructor)[];
|
|
96
|
+
activeSingleModifier: StringConstructor;
|
|
97
|
+
requiredActive: BooleanConstructor;
|
|
98
|
+
activeColor: {
|
|
99
|
+
type: StringConstructor;
|
|
100
|
+
default: string;
|
|
101
|
+
};
|
|
102
|
+
enableSelect: BooleanConstructor;
|
|
103
|
+
expanded: {
|
|
104
|
+
type: PropType<CandidateKey[]>;
|
|
105
|
+
default: () => never[];
|
|
106
|
+
};
|
|
107
|
+
active: {
|
|
108
|
+
type: PropType<CandidateKey[]>;
|
|
109
|
+
default: () => never[];
|
|
110
|
+
};
|
|
111
|
+
multipleActive: BooleanConstructor;
|
|
112
|
+
activeStrategy: {
|
|
113
|
+
type: PropType<"independent" | "cascade">;
|
|
114
|
+
default: string;
|
|
115
|
+
};
|
|
116
|
+
selected: {
|
|
117
|
+
type: PropType<CandidateKey[]>;
|
|
118
|
+
default: () => never[];
|
|
119
|
+
};
|
|
120
|
+
selectStrategy: {
|
|
121
|
+
type: PropType<"independent" | "cascade">;
|
|
122
|
+
default: string;
|
|
123
|
+
};
|
|
124
|
+
returnItem: BooleanConstructor;
|
|
125
|
+
defaultExpand: (BooleanConstructor | StringConstructor | NumberConstructor)[];
|
|
126
|
+
filter: PropType<TreeviewFilterFn>;
|
|
127
|
+
searchDebounceWait: {
|
|
128
|
+
type: PropType<number>;
|
|
129
|
+
default: number;
|
|
130
|
+
};
|
|
131
|
+
}>> & {
|
|
132
|
+
"onUpdate:expanded"?: ((...args: any[]) => any) | undefined;
|
|
133
|
+
"onUpdate:active"?: ((...args: any[]) => any) | undefined;
|
|
134
|
+
"onUpdate:selected"?: ((...args: any[]) => any) | undefined;
|
|
135
|
+
}, {
|
|
136
|
+
returnItem: boolean;
|
|
137
|
+
active: CandidateKey[];
|
|
138
|
+
expanded: CandidateKey[];
|
|
139
|
+
items: any[];
|
|
140
|
+
itemKey: string;
|
|
141
|
+
itemText: string;
|
|
142
|
+
itemChildren: string | boolean;
|
|
143
|
+
disableTransition: boolean;
|
|
144
|
+
enableActive: boolean;
|
|
145
|
+
requiredActive: boolean;
|
|
146
|
+
activeColor: string;
|
|
147
|
+
enableSelect: boolean;
|
|
148
|
+
selected: CandidateKey[];
|
|
149
|
+
multipleActive: boolean;
|
|
150
|
+
activeStrategy: "independent" | "cascade";
|
|
151
|
+
selectStrategy: "independent" | "cascade";
|
|
152
|
+
searchDebounceWait: number;
|
|
153
|
+
}, {}>;
|
|
154
|
+
export type YTreeView = InstanceType<typeof YTreeView>;
|
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
import { PropType, SlotsType } from 'vue';
|
|
2
|
+
|
|
3
|
+
export declare const pressYTreeViewNodeProps: <Defaults extends {
|
|
4
|
+
items?: unknown;
|
|
5
|
+
itemKey?: unknown;
|
|
6
|
+
itemText?: unknown;
|
|
7
|
+
itemChildren?: unknown;
|
|
8
|
+
search?: unknown;
|
|
9
|
+
disableTransition?: unknown;
|
|
10
|
+
enableActive?: unknown;
|
|
11
|
+
activeClass?: unknown;
|
|
12
|
+
activeSingleModifier?: unknown;
|
|
13
|
+
requiredActive?: unknown;
|
|
14
|
+
activeColor?: unknown;
|
|
15
|
+
enableSelect?: unknown;
|
|
16
|
+
} = {}>(defaults?: Defaults | undefined) => {
|
|
17
|
+
items: unknown extends Defaults["items"] ? {
|
|
18
|
+
type: PropType<any[]>;
|
|
19
|
+
default: () => never[];
|
|
20
|
+
} : Omit<{
|
|
21
|
+
type: PropType<any[]>;
|
|
22
|
+
default: () => never[];
|
|
23
|
+
}, "default" | "type"> & {
|
|
24
|
+
type: PropType<unknown extends Defaults["items"] ? any[] : any[] | Defaults["items"]>;
|
|
25
|
+
default: unknown extends Defaults["items"] ? any[] : any[] | Defaults["items"];
|
|
26
|
+
};
|
|
27
|
+
itemKey: unknown extends Defaults["itemKey"] ? Omit<{
|
|
28
|
+
type: PropType<string>;
|
|
29
|
+
default: string;
|
|
30
|
+
}, "default" | "type"> & {
|
|
31
|
+
type: PropType<string>;
|
|
32
|
+
default: string;
|
|
33
|
+
} : Omit<Omit<{
|
|
34
|
+
type: PropType<string>;
|
|
35
|
+
default: string;
|
|
36
|
+
}, "default" | "type"> & {
|
|
37
|
+
type: PropType<string>;
|
|
38
|
+
default: string;
|
|
39
|
+
}, "default" | "type"> & {
|
|
40
|
+
type: PropType<unknown extends Defaults["itemKey"] ? string : string | Defaults["itemKey"]>;
|
|
41
|
+
default: unknown extends Defaults["itemKey"] ? string : string | Defaults["itemKey"];
|
|
42
|
+
};
|
|
43
|
+
itemText: unknown extends Defaults["itemText"] ? {
|
|
44
|
+
type: PropType<string>;
|
|
45
|
+
default: string;
|
|
46
|
+
} : Omit<{
|
|
47
|
+
type: PropType<string>;
|
|
48
|
+
default: string;
|
|
49
|
+
}, "default" | "type"> & {
|
|
50
|
+
type: PropType<unknown extends Defaults["itemText"] ? string : string | Defaults["itemText"]>;
|
|
51
|
+
default: unknown extends Defaults["itemText"] ? string : string | Defaults["itemText"];
|
|
52
|
+
};
|
|
53
|
+
itemChildren: unknown extends Defaults["itemChildren"] ? {
|
|
54
|
+
type: PropType<string | boolean>;
|
|
55
|
+
default: string;
|
|
56
|
+
} : Omit<{
|
|
57
|
+
type: PropType<string | boolean>;
|
|
58
|
+
default: string;
|
|
59
|
+
}, "default" | "type"> & {
|
|
60
|
+
type: PropType<unknown extends Defaults["itemChildren"] ? string | boolean : NonNullable<string | boolean> | Defaults["itemChildren"]>;
|
|
61
|
+
default: unknown extends Defaults["itemChildren"] ? string | boolean : NonNullable<string | boolean> | Defaults["itemChildren"];
|
|
62
|
+
};
|
|
63
|
+
search: unknown extends Defaults["search"] ? StringConstructor : {
|
|
64
|
+
type: PropType<unknown extends Defaults["search"] ? string : string | Defaults["search"]>;
|
|
65
|
+
default: unknown extends Defaults["search"] ? string : string | Defaults["search"];
|
|
66
|
+
};
|
|
67
|
+
disableTransition: unknown extends Defaults["disableTransition"] ? BooleanConstructor : {
|
|
68
|
+
type: PropType<unknown extends Defaults["disableTransition"] ? boolean : boolean | Defaults["disableTransition"]>;
|
|
69
|
+
default: unknown extends Defaults["disableTransition"] ? boolean : boolean | Defaults["disableTransition"];
|
|
70
|
+
};
|
|
71
|
+
enableActive: unknown extends Defaults["enableActive"] ? BooleanConstructor : {
|
|
72
|
+
type: PropType<unknown extends Defaults["enableActive"] ? boolean : boolean | Defaults["enableActive"]>;
|
|
73
|
+
default: unknown extends Defaults["enableActive"] ? boolean : boolean | Defaults["enableActive"];
|
|
74
|
+
};
|
|
75
|
+
activeClass: unknown extends Defaults["activeClass"] ? (ArrayConstructor | StringConstructor)[] : {
|
|
76
|
+
type: PropType<unknown extends Defaults["activeClass"] ? string | unknown[] : Defaults["activeClass"] | NonNullable<string | unknown[]>>;
|
|
77
|
+
default: unknown extends Defaults["activeClass"] ? string | unknown[] : Defaults["activeClass"] | NonNullable<string | unknown[]>;
|
|
78
|
+
};
|
|
79
|
+
activeSingleModifier: unknown extends Defaults["activeSingleModifier"] ? StringConstructor : {
|
|
80
|
+
type: PropType<unknown extends Defaults["activeSingleModifier"] ? string : string | Defaults["activeSingleModifier"]>;
|
|
81
|
+
default: unknown extends Defaults["activeSingleModifier"] ? string : string | Defaults["activeSingleModifier"];
|
|
82
|
+
};
|
|
83
|
+
requiredActive: unknown extends Defaults["requiredActive"] ? BooleanConstructor : {
|
|
84
|
+
type: PropType<unknown extends Defaults["requiredActive"] ? boolean : boolean | Defaults["requiredActive"]>;
|
|
85
|
+
default: unknown extends Defaults["requiredActive"] ? boolean : boolean | Defaults["requiredActive"];
|
|
86
|
+
};
|
|
87
|
+
activeColor: unknown extends Defaults["activeColor"] ? {
|
|
88
|
+
type: StringConstructor;
|
|
89
|
+
default: string;
|
|
90
|
+
} : Omit<{
|
|
91
|
+
type: StringConstructor;
|
|
92
|
+
default: string;
|
|
93
|
+
}, "default" | "type"> & {
|
|
94
|
+
type: PropType<unknown extends Defaults["activeColor"] ? string : string | Defaults["activeColor"]>;
|
|
95
|
+
default: unknown extends Defaults["activeColor"] ? string : string | Defaults["activeColor"];
|
|
96
|
+
};
|
|
97
|
+
enableSelect: unknown extends Defaults["enableSelect"] ? BooleanConstructor : {
|
|
98
|
+
type: PropType<unknown extends Defaults["enableSelect"] ? boolean : boolean | Defaults["enableSelect"]>;
|
|
99
|
+
default: unknown extends Defaults["enableSelect"] ? boolean : boolean | Defaults["enableSelect"];
|
|
100
|
+
};
|
|
101
|
+
};
|
|
102
|
+
export declare const YTreeViewNode: import('vue').DefineComponent<{
|
|
103
|
+
items: {
|
|
104
|
+
type: PropType<any[]>;
|
|
105
|
+
default: () => never[];
|
|
106
|
+
};
|
|
107
|
+
itemKey: Omit<{
|
|
108
|
+
type: PropType<string>;
|
|
109
|
+
default: string;
|
|
110
|
+
}, "default" | "type"> & {
|
|
111
|
+
type: PropType<string>;
|
|
112
|
+
default: string;
|
|
113
|
+
};
|
|
114
|
+
itemText: {
|
|
115
|
+
type: PropType<string>;
|
|
116
|
+
default: string;
|
|
117
|
+
};
|
|
118
|
+
itemChildren: {
|
|
119
|
+
type: PropType<string | boolean>;
|
|
120
|
+
default: string;
|
|
121
|
+
};
|
|
122
|
+
search: StringConstructor;
|
|
123
|
+
disableTransition: BooleanConstructor;
|
|
124
|
+
enableActive: BooleanConstructor;
|
|
125
|
+
activeClass: (ArrayConstructor | StringConstructor)[];
|
|
126
|
+
activeSingleModifier: StringConstructor;
|
|
127
|
+
requiredActive: BooleanConstructor;
|
|
128
|
+
activeColor: {
|
|
129
|
+
type: StringConstructor;
|
|
130
|
+
default: string;
|
|
131
|
+
};
|
|
132
|
+
enableSelect: BooleanConstructor;
|
|
133
|
+
item: {
|
|
134
|
+
type: PropType<any>;
|
|
135
|
+
};
|
|
136
|
+
level: {
|
|
137
|
+
type: PropType<number>;
|
|
138
|
+
default: number;
|
|
139
|
+
};
|
|
140
|
+
}, {
|
|
141
|
+
treeView: any;
|
|
142
|
+
myKey: import('vue').ComputedRef<any>;
|
|
143
|
+
expanded: import('vue').Ref<boolean>;
|
|
144
|
+
active: import('vue').Ref<boolean>;
|
|
145
|
+
selected: import('vue').Ref<boolean>;
|
|
146
|
+
immediate: import('vue').Ref<boolean>;
|
|
147
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
148
|
+
items: {
|
|
149
|
+
type: PropType<any[]>;
|
|
150
|
+
default: () => never[];
|
|
151
|
+
};
|
|
152
|
+
itemKey: Omit<{
|
|
153
|
+
type: PropType<string>;
|
|
154
|
+
default: string;
|
|
155
|
+
}, "default" | "type"> & {
|
|
156
|
+
type: PropType<string>;
|
|
157
|
+
default: string;
|
|
158
|
+
};
|
|
159
|
+
itemText: {
|
|
160
|
+
type: PropType<string>;
|
|
161
|
+
default: string;
|
|
162
|
+
};
|
|
163
|
+
itemChildren: {
|
|
164
|
+
type: PropType<string | boolean>;
|
|
165
|
+
default: string;
|
|
166
|
+
};
|
|
167
|
+
search: StringConstructor;
|
|
168
|
+
disableTransition: BooleanConstructor;
|
|
169
|
+
enableActive: BooleanConstructor;
|
|
170
|
+
activeClass: (ArrayConstructor | StringConstructor)[];
|
|
171
|
+
activeSingleModifier: StringConstructor;
|
|
172
|
+
requiredActive: BooleanConstructor;
|
|
173
|
+
activeColor: {
|
|
174
|
+
type: StringConstructor;
|
|
175
|
+
default: string;
|
|
176
|
+
};
|
|
177
|
+
enableSelect: BooleanConstructor;
|
|
178
|
+
item: {
|
|
179
|
+
type: PropType<any>;
|
|
180
|
+
};
|
|
181
|
+
level: {
|
|
182
|
+
type: PropType<number>;
|
|
183
|
+
default: number;
|
|
184
|
+
};
|
|
185
|
+
}>>, {
|
|
186
|
+
items: any[];
|
|
187
|
+
itemKey: string;
|
|
188
|
+
itemText: string;
|
|
189
|
+
itemChildren: string | boolean;
|
|
190
|
+
disableTransition: boolean;
|
|
191
|
+
enableActive: boolean;
|
|
192
|
+
requiredActive: boolean;
|
|
193
|
+
activeColor: string;
|
|
194
|
+
enableSelect: boolean;
|
|
195
|
+
level: number;
|
|
196
|
+
}, SlotsType<{
|
|
197
|
+
default: any;
|
|
198
|
+
'expand-icon': any;
|
|
199
|
+
leading: any;
|
|
200
|
+
trailing: any;
|
|
201
|
+
}>>;
|
|
202
|
+
export type YTreeNode = InstanceType<typeof YTreeViewNode>;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ComponentPublicInstance } from 'vue';
|
|
2
|
+
import { CandidateKey } from '../../types';
|
|
3
|
+
|
|
4
|
+
export interface NodeState {
|
|
5
|
+
childKeys: CandidateKey[];
|
|
6
|
+
item: any;
|
|
7
|
+
parentKey: null | CandidateKey;
|
|
8
|
+
vnode: null | ComponentPublicInstance;
|
|
9
|
+
level: number;
|
|
10
|
+
selected: false;
|
|
11
|
+
indeterminate: false;
|
|
12
|
+
active: false;
|
|
13
|
+
expanded: false;
|
|
14
|
+
}
|
|
15
|
+
export type TreeviewFilterFn = (item: any, search: string, itemText: string) => boolean;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { CandidateKey } from '../../types';
|
|
2
|
+
import { TreeviewFilterFn } from './types';
|
|
3
|
+
|
|
4
|
+
export declare function getKeys(items: any[], itemKey: string, childrenKey: string): CandidateKey[];
|
|
5
|
+
export declare function filterTreeItem(item: object, search: string, textKey: string): boolean;
|
|
6
|
+
export declare function filterTreeItems(filter: TreeviewFilterFn, item: any, search: string, idKey: string, textKey: string, childrenKey: string, excluded: Set<CandidateKey>): boolean;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import { ComponentInternalInstance, ComputedRef, ExtractPropTypes, InjectionKey, PropType, Ref } from 'vue';
|
|
2
|
+
|
|
3
|
+
export interface ChoiceItem {
|
|
4
|
+
id: number;
|
|
5
|
+
value: Ref<unknown>;
|
|
6
|
+
disabled: Ref<boolean | undefined>;
|
|
7
|
+
}
|
|
8
|
+
export interface ChoiceProps {
|
|
9
|
+
disabled: boolean;
|
|
10
|
+
modelValue: unknown;
|
|
11
|
+
multiple?: boolean;
|
|
12
|
+
mandatory?: boolean | 'force' | undefined;
|
|
13
|
+
max?: number | undefined;
|
|
14
|
+
selectedClass?: string | undefined;
|
|
15
|
+
'onUpdate:modelValue': ((value: unknown) => void) | undefined;
|
|
16
|
+
}
|
|
17
|
+
export interface ChoiceProvide {
|
|
18
|
+
register: (item: ChoiceItem, instance: ComponentInternalInstance) => void;
|
|
19
|
+
unregister: (id: number) => void;
|
|
20
|
+
select: (id: number, value: boolean) => void;
|
|
21
|
+
selected: Ref<Readonly<number[]>>;
|
|
22
|
+
selectedClass: Ref<string | undefined>;
|
|
23
|
+
isSelected: (id: number) => boolean;
|
|
24
|
+
disabled: Ref<boolean | undefined>;
|
|
25
|
+
getItemIndex: (value: unknown) => number;
|
|
26
|
+
prev: () => void;
|
|
27
|
+
next: () => void;
|
|
28
|
+
items: ComputedRef<{
|
|
29
|
+
id: number;
|
|
30
|
+
value: unknown;
|
|
31
|
+
disabled: boolean | undefined;
|
|
32
|
+
}[]>;
|
|
33
|
+
}
|
|
34
|
+
export interface ChoiceItemProvide {
|
|
35
|
+
id: number;
|
|
36
|
+
isSelected: Ref<boolean>;
|
|
37
|
+
toggle: () => void;
|
|
38
|
+
select: (value: boolean) => void;
|
|
39
|
+
selectedClass: Ref<(string | undefined)[] | false>;
|
|
40
|
+
value: Ref<unknown>;
|
|
41
|
+
disabled: Ref<boolean | undefined>;
|
|
42
|
+
provider: ChoiceProvide;
|
|
43
|
+
}
|
|
44
|
+
export declare const pressChoicePropsOptions: <Defaults extends {
|
|
45
|
+
modelValue?: unknown;
|
|
46
|
+
multiple?: unknown;
|
|
47
|
+
mandatory?: unknown;
|
|
48
|
+
max?: unknown;
|
|
49
|
+
selectedClass?: unknown;
|
|
50
|
+
disabled?: unknown;
|
|
51
|
+
returnItem?: unknown;
|
|
52
|
+
} = {}>(defaults?: Defaults | undefined) => {
|
|
53
|
+
modelValue: unknown extends Defaults["modelValue"] ? {
|
|
54
|
+
type: null;
|
|
55
|
+
default: undefined;
|
|
56
|
+
} : Omit<{
|
|
57
|
+
type: null;
|
|
58
|
+
default: undefined;
|
|
59
|
+
}, "default" | "type"> & {
|
|
60
|
+
type: PropType<unknown extends Defaults["modelValue"] ? any : any>;
|
|
61
|
+
default: unknown extends Defaults["modelValue"] ? any : any;
|
|
62
|
+
};
|
|
63
|
+
multiple: unknown extends Defaults["multiple"] ? BooleanConstructor : {
|
|
64
|
+
type: PropType<unknown extends Defaults["multiple"] ? boolean : boolean | Defaults["multiple"]>;
|
|
65
|
+
default: unknown extends Defaults["multiple"] ? boolean : boolean | Defaults["multiple"];
|
|
66
|
+
};
|
|
67
|
+
mandatory: unknown extends Defaults["mandatory"] ? PropType<boolean | "force"> : {
|
|
68
|
+
type: PropType<unknown extends Defaults["mandatory"] ? boolean | "force" : NonNullable<boolean | "force"> | Defaults["mandatory"]>;
|
|
69
|
+
default: unknown extends Defaults["mandatory"] ? boolean | "force" : NonNullable<boolean | "force"> | Defaults["mandatory"];
|
|
70
|
+
};
|
|
71
|
+
max: unknown extends Defaults["max"] ? NumberConstructor : {
|
|
72
|
+
type: PropType<unknown extends Defaults["max"] ? number : number | Defaults["max"]>;
|
|
73
|
+
default: unknown extends Defaults["max"] ? number : number | Defaults["max"];
|
|
74
|
+
};
|
|
75
|
+
selectedClass: unknown extends Defaults["selectedClass"] ? PropType<string> : {
|
|
76
|
+
type: PropType<unknown extends Defaults["selectedClass"] ? string : string | Defaults["selectedClass"]>;
|
|
77
|
+
default: unknown extends Defaults["selectedClass"] ? string : string | Defaults["selectedClass"];
|
|
78
|
+
};
|
|
79
|
+
disabled: unknown extends Defaults["disabled"] ? BooleanConstructor : {
|
|
80
|
+
type: PropType<unknown extends Defaults["disabled"] ? boolean : boolean | Defaults["disabled"]>;
|
|
81
|
+
default: unknown extends Defaults["disabled"] ? boolean : boolean | Defaults["disabled"];
|
|
82
|
+
};
|
|
83
|
+
returnItem: unknown extends Defaults["returnItem"] ? PropType<boolean> : {
|
|
84
|
+
type: PropType<unknown extends Defaults["returnItem"] ? boolean : boolean | Defaults["returnItem"]>;
|
|
85
|
+
default: unknown extends Defaults["returnItem"] ? boolean : boolean | Defaults["returnItem"];
|
|
86
|
+
};
|
|
87
|
+
};
|
|
88
|
+
export declare const pressChoiceItemPropsOptions: <Defaults extends {
|
|
89
|
+
value?: unknown;
|
|
90
|
+
disabled?: unknown;
|
|
91
|
+
selectedClass?: unknown;
|
|
92
|
+
} = {}>(defaults?: Defaults | undefined) => {
|
|
93
|
+
value: unknown extends Defaults["value"] ? null : {
|
|
94
|
+
type: PropType<unknown extends Defaults["value"] ? any : any>;
|
|
95
|
+
default: unknown extends Defaults["value"] ? any : any;
|
|
96
|
+
};
|
|
97
|
+
disabled: unknown extends Defaults["disabled"] ? BooleanConstructor : {
|
|
98
|
+
type: PropType<unknown extends Defaults["disabled"] ? boolean : boolean | Defaults["disabled"]>;
|
|
99
|
+
default: unknown extends Defaults["disabled"] ? boolean : boolean | Defaults["disabled"];
|
|
100
|
+
};
|
|
101
|
+
selectedClass: unknown extends Defaults["selectedClass"] ? StringConstructor : {
|
|
102
|
+
type: PropType<unknown extends Defaults["selectedClass"] ? string : string | Defaults["selectedClass"]>;
|
|
103
|
+
default: unknown extends Defaults["selectedClass"] ? string : string | Defaults["selectedClass"];
|
|
104
|
+
};
|
|
105
|
+
};
|
|
106
|
+
export interface ChoiceItemProps extends ExtractPropTypes<ReturnType<typeof pressChoiceItemPropsOptions>> {
|
|
107
|
+
'onChoice:selected': ((val: {
|
|
108
|
+
value: boolean;
|
|
109
|
+
}) => void) | undefined;
|
|
110
|
+
}
|
|
111
|
+
export declare function useChoiceItem(props: ChoiceItemProps, injectKey: InjectionKey<ChoiceProvide>, required?: true): ChoiceItemProvide;
|
|
112
|
+
export declare function useChoiceItem(props: ChoiceItemProps, injectKey: InjectionKey<ChoiceProvide>, required: false): ChoiceItemProvide | null;
|
|
113
|
+
export declare function useChoice(props: ChoiceProps, injectKey: InjectionKey<ChoiceProvide>): ChoiceProvide;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
|
|
3
|
+
export declare function useModelDuplex(props: any, prop?: string, defaultValue?: any, getIn?: (value?: any) => any, setOut?: (value: any) => any): Ref<any> & {
|
|
4
|
+
readonly rxValue: any;
|
|
5
|
+
};
|
|
6
|
+
export declare function useProvided<T>(props: any, prop: string, provided: Ref<T>): Ref<any> & {
|
|
7
|
+
readonly rxValue: any;
|
|
8
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { CSSProperties, Ref } from 'vue';
|
|
2
|
+
import { Rect } from '../../util/rect';
|
|
3
|
+
import { CoordinateState } from './types';
|
|
4
|
+
|
|
5
|
+
export declare function applyArrangement(props: any, state: CoordinateState, coordinate: Ref<Rect | undefined>, coordinateStyles: Ref<CSSProperties>): {
|
|
6
|
+
updateCoordinate: () => any;
|
|
7
|
+
};
|