@aplus-frontend/ui 0.6.7 → 6.9.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/es/index.mjs +187 -193
- package/es/src/ap-field/rate/index.vue.d.ts +1 -1
- package/es/src/ap-form/interface.d.ts +10 -5
- package/es/src/ap-form/search-form/components/popover-filter.vue2.mjs +42 -36
- package/es/src/ap-form/search-form/hooks/use-collapse-input-count.d.ts +5 -0
- package/es/src/ap-form/search-form/hooks/use-collapse-input-count.mjs +24 -0
- package/es/src/ap-form/search-form/index.vue.d.ts +1 -0
- package/es/src/ap-form/search-form/index.vue.mjs +53 -48
- package/es/src/ap-grid/hooks/use-row-selection.mjs +57 -62
- package/es/src/ap-grid/utils/renderer.mjs +9 -9
- package/es/src/business/ap-label/ApLabel.d.ts +1 -1
- package/es/src/business/ap-label/index.d.ts +3 -3
- package/es/src/business/ap-radio-group/ap-radio-group.vue.d.ts +1 -1
- package/es/src/business/ap-radio-group/index.d.ts +3 -3
- package/es/src/business/ap-summary/interface.d.ts +1 -1
- package/es/src/business/ap-view/ap-view.vue.d.ts +1 -0
- package/es/src/business/ap-view/ap-view.vue2.mjs +122 -118
- package/es/src/business/ap-view/index.d.ts +3 -0
- package/es/src/business/ap-view/interface.d.ts +4 -0
- package/es/src/business/hooks/useKeepAliveFlag.d.ts +14 -0
- package/es/src/business/hooks/useKeepAliveFlag.mjs +18 -0
- package/es/src/business/hooks/usePageListApGrid.d.ts +4 -0
- package/es/src/business/hooks/usePageListApGrid.mjs +52 -48
- package/es/src/business/index.d.ts +0 -1
- package/es/src/business/index.mjs +42 -46
- package/es/src/index.d.ts +0 -1
- package/es/src/index.mjs +274 -281
- package/es/src/locale/lang/en.mjs +0 -7
- package/es/src/locale/lang/zh-cn.mjs +0 -7
- package/es/src/path-map.mjs +0 -2
- package/es/src/version.d.ts +1 -1
- package/es/src/version.mjs +1 -1
- package/lib/index.js +1 -1
- package/lib/src/ap-field/rate/index.vue.d.ts +1 -1
- package/lib/src/ap-form/interface.d.ts +10 -5
- package/lib/src/ap-form/search-form/components/popover-filter.vue2.js +1 -1
- package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.d.ts +5 -0
- package/lib/src/ap-form/search-form/hooks/use-collapse-input-count.js +1 -0
- package/lib/src/ap-form/search-form/index.vue.d.ts +1 -0
- package/lib/src/ap-form/search-form/index.vue.js +1 -1
- package/lib/src/ap-grid/hooks/use-row-selection.js +1 -1
- package/lib/src/ap-grid/utils/renderer.js +1 -1
- package/lib/src/business/ap-label/ApLabel.d.ts +1 -1
- package/lib/src/business/ap-label/index.d.ts +3 -3
- package/lib/src/business/ap-radio-group/ap-radio-group.vue.d.ts +1 -1
- package/lib/src/business/ap-radio-group/index.d.ts +3 -3
- package/lib/src/business/ap-summary/interface.d.ts +1 -1
- package/lib/src/business/ap-view/ap-view.vue.d.ts +1 -0
- package/lib/src/business/ap-view/ap-view.vue2.js +1 -1
- package/lib/src/business/ap-view/index.d.ts +3 -0
- package/lib/src/business/ap-view/interface.d.ts +4 -0
- package/lib/src/business/hooks/useKeepAliveFlag.d.ts +14 -0
- package/lib/src/business/hooks/useKeepAliveFlag.js +1 -0
- package/lib/src/business/hooks/usePageListApGrid.d.ts +4 -0
- package/lib/src/business/hooks/usePageListApGrid.js +1 -1
- package/lib/src/business/index.d.ts +0 -1
- package/lib/src/business/index.js +1 -1
- package/lib/src/index.d.ts +0 -1
- package/lib/src/index.js +1 -1
- package/lib/src/locale/lang/en.js +1 -1
- package/lib/src/locale/lang/zh-cn.js +1 -1
- package/lib/src/path-map.js +1 -1
- package/lib/src/version.d.ts +1 -1
- package/lib/src/version.js +1 -1
- package/package.json +5 -10
- package/theme/ap-form/index.css +16 -0
- package/theme/ap-form/search-form.css +16 -0
- package/theme/ap-form/search-form.less +16 -0
- package/theme/ap-grid/index.css +20 -0
- package/theme/ap-grid/index.less +4 -0
- package/theme/ap-table/ap-table.css +16 -0
- package/theme/ap-table-modal/index.css +16 -0
- package/theme/editable-table/index.css +16 -0
- package/theme/index.css +20 -0
- package/es/src/ap-info-layout/ApInfoLayout.vue.d.ts +0 -73
- package/es/src/ap-info-layout/ApInfoLayout.vue.mjs +0 -46
- package/es/src/ap-info-layout/ApInfoLayout.vue2.mjs +0 -4
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +0 -29
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.mjs +0 -4
- package/es/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.mjs +0 -41
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +0 -30
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.mjs +0 -4
- package/es/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.mjs +0 -71
- package/es/src/ap-info-layout/index.d.ts +0 -3
- package/es/src/ap-info-layout/index.mjs +0 -2
- package/es/src/ap-info-layout/interface.d.ts +0 -10
- package/es/src/ap-info-layout/interface.mjs +0 -1
- package/es/src/ap-info-layout/style/css.d.ts +0 -0
- package/es/src/ap-info-layout/style/css.js +0 -1
- package/es/src/ap-info-layout/style/index.d.ts +0 -0
- package/es/src/ap-info-layout/style/index.js +0 -1
- package/es/src/business/ap-group-search/ap-group-search.vue.d.ts +0 -35
- package/es/src/business/ap-group-search/ap-group-search.vue.mjs +0 -4
- package/es/src/business/ap-group-search/ap-group-search.vue2.mjs +0 -202
- package/es/src/business/ap-group-search/extension-select/index.vue.d.ts +0 -14
- package/es/src/business/ap-group-search/extension-select/index.vue.mjs +0 -4
- package/es/src/business/ap-group-search/extension-select/index.vue2.mjs +0 -135
- package/es/src/business/ap-group-search/extension-select/style/css.d.ts +0 -0
- package/es/src/business/ap-group-search/extension-select/style/css.js +0 -1
- package/es/src/business/ap-group-search/extension-select/style/index.d.ts +0 -0
- package/es/src/business/ap-group-search/extension-select/style/index.js +0 -1
- package/es/src/business/ap-group-search/images/icon-down.vue.d.ts +0 -3
- package/es/src/business/ap-group-search/images/icon-down.vue.mjs +0 -28
- package/es/src/business/ap-group-search/images/icon-line-select.vue.d.ts +0 -3
- package/es/src/business/ap-group-search/images/icon-line-select.vue.mjs +0 -45
- package/es/src/business/ap-group-search/index.d.ts +0 -1536
- package/es/src/business/ap-group-search/index.mjs +0 -14
- package/es/src/business/ap-group-search/interface.d.ts +0 -11
- package/es/src/business/ap-group-search/interface.mjs +0 -1
- package/es/src/business/ap-group-search/popover-select/index.vue.d.ts +0 -424
- package/es/src/business/ap-group-search/popover-select/index.vue.mjs +0 -4
- package/es/src/business/ap-group-search/popover-select/index.vue2.mjs +0 -193
- package/es/src/business/ap-group-search/popover-select/style/css.d.ts +0 -0
- package/es/src/business/ap-group-search/popover-select/style/css.js +0 -1
- package/es/src/business/ap-group-search/popover-select/style/index.d.ts +0 -0
- package/es/src/business/ap-group-search/popover-select/style/index.js +0 -1
- package/es/src/business/ap-group-search/style/css.d.ts +0 -0
- package/es/src/business/ap-group-search/style/css.js +0 -1
- package/es/src/business/ap-group-search/style/index.d.ts +0 -0
- package/es/src/business/ap-group-search/style/index.js +0 -1
- package/lib/src/ap-info-layout/ApInfoLayout.vue.d.ts +0 -73
- package/lib/src/ap-info-layout/ApInfoLayout.vue.js +0 -1
- package/lib/src/ap-info-layout/ApInfoLayout.vue2.js +0 -1
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.d.ts +0 -29
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue.js +0 -1
- package/lib/src/ap-info-layout/ap-info-layout-admin/ApInfoLayoutAdmin.vue2.js +0 -1
- package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.d.ts +0 -30
- package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue.js +0 -1
- package/lib/src/ap-info-layout/ap-info-layout-aplus/ap-info-layout.vue2.js +0 -1
- package/lib/src/ap-info-layout/index.d.ts +0 -3
- package/lib/src/ap-info-layout/index.js +0 -1
- package/lib/src/ap-info-layout/interface.d.ts +0 -10
- package/lib/src/ap-info-layout/interface.js +0 -1
- package/lib/src/ap-info-layout/style/css.cjs +0 -1
- package/lib/src/ap-info-layout/style/css.d.ts +0 -0
- package/lib/src/ap-info-layout/style/index.cjs +0 -1
- package/lib/src/ap-info-layout/style/index.d.ts +0 -0
- package/lib/src/business/ap-group-search/ap-group-search.vue.d.ts +0 -35
- package/lib/src/business/ap-group-search/ap-group-search.vue.js +0 -1
- package/lib/src/business/ap-group-search/ap-group-search.vue2.js +0 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue.d.ts +0 -14
- package/lib/src/business/ap-group-search/extension-select/index.vue.js +0 -1
- package/lib/src/business/ap-group-search/extension-select/index.vue2.js +0 -1
- package/lib/src/business/ap-group-search/extension-select/style/css.cjs +0 -1
- package/lib/src/business/ap-group-search/extension-select/style/css.d.ts +0 -0
- package/lib/src/business/ap-group-search/extension-select/style/index.cjs +0 -1
- package/lib/src/business/ap-group-search/extension-select/style/index.d.ts +0 -0
- package/lib/src/business/ap-group-search/images/icon-down.vue.d.ts +0 -3
- package/lib/src/business/ap-group-search/images/icon-down.vue.js +0 -1
- package/lib/src/business/ap-group-search/images/icon-line-select.vue.d.ts +0 -3
- package/lib/src/business/ap-group-search/images/icon-line-select.vue.js +0 -1
- package/lib/src/business/ap-group-search/index.d.ts +0 -1536
- package/lib/src/business/ap-group-search/index.js +0 -1
- package/lib/src/business/ap-group-search/interface.d.ts +0 -11
- package/lib/src/business/ap-group-search/interface.js +0 -1
- package/lib/src/business/ap-group-search/popover-select/index.vue.d.ts +0 -424
- package/lib/src/business/ap-group-search/popover-select/index.vue.js +0 -1
- package/lib/src/business/ap-group-search/popover-select/index.vue2.js +0 -2
- package/lib/src/business/ap-group-search/popover-select/style/css.cjs +0 -1
- package/lib/src/business/ap-group-search/popover-select/style/css.d.ts +0 -0
- package/lib/src/business/ap-group-search/popover-select/style/index.cjs +0 -1
- package/lib/src/business/ap-group-search/popover-select/style/index.d.ts +0 -0
- package/lib/src/business/ap-group-search/style/css.cjs +0 -1
- package/lib/src/business/ap-group-search/style/css.d.ts +0 -0
- package/lib/src/business/ap-group-search/style/index.cjs +0 -1
- package/lib/src/business/ap-group-search/style/index.d.ts +0 -0
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { withInstall as o } from "@aplus-frontend/utils";
|
|
2
|
-
import "./ap-group-search.vue.mjs";
|
|
3
|
-
import "./extension-select/index.vue.mjs";
|
|
4
|
-
import "./popover-select/index.vue.mjs";
|
|
5
|
-
import "./interface.mjs";
|
|
6
|
-
import t from "./ap-group-search.vue2.mjs";
|
|
7
|
-
import r from "./extension-select/index.vue2.mjs";
|
|
8
|
-
import m from "./popover-select/index.vue2.mjs";
|
|
9
|
-
const a = o(t), l = o(r), A = o(m);
|
|
10
|
-
export {
|
|
11
|
-
l as ApExtensionSelect,
|
|
12
|
-
a as ApGroupSearch,
|
|
13
|
-
A as ApPopoverSelect
|
|
14
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { DefaultOptionType, SelectProps, SelectValue } from '@aplus-frontend/antdv/es/select';
|
|
2
|
-
import { CSSProperties } from 'vue';
|
|
3
|
-
export type GroupSearchProps = Omit<SelectProps, 'value | options | mode | suffixIcon | open'> & {
|
|
4
|
-
options: DefaultOptionType[];
|
|
5
|
-
value?: {
|
|
6
|
-
key: SelectValue;
|
|
7
|
-
value: any;
|
|
8
|
-
};
|
|
9
|
-
hasAll?: boolean;
|
|
10
|
-
style?: CSSProperties;
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
|
|
@@ -1,424 +0,0 @@
|
|
|
1
|
-
import { SelectProps } from '@aplus-frontend/antdv';
|
|
2
|
-
import { SelectValue, DefaultOptionType, LabeledValue } from '@aplus-frontend/antdv/es/select';
|
|
3
|
-
import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ExtractPropTypes, PropType, CSSProperties, GlobalComponents, GlobalDirectives } from 'vue';
|
|
4
|
-
import { VueTypeValidableDef } from '../../../../node_modules/vue-types';
|
|
5
|
-
import { ButtonSize } from '@aplus-frontend/antdv/es/button';
|
|
6
|
-
import { VueNode, CustomSlotsType } from '@aplus-frontend/antdv/es/_util/type';
|
|
7
|
-
import { SelectHandler, FieldNames, FilterFunc } from '@aplus-frontend/antdv/es/vc-select/Select';
|
|
8
|
-
import { RenderDOMFunc, DropdownRender, CustomTagProps } from '@aplus-frontend/antdv/es/vc-select/BaseSelect';
|
|
9
|
-
import { AlignType } from '@aplus-frontend/antdv/es/vc-trigger/interface';
|
|
10
|
-
type __VLS_Props = Omit<SelectProps, 'mode' | 'suffixIcon'> & {
|
|
11
|
-
__parentRef: HTMLElement;
|
|
12
|
-
};
|
|
13
|
-
declare const _default: DefineComponent<__VLS_Props, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {} & {
|
|
14
|
-
submit: (value: SelectValue) => any;
|
|
15
|
-
"open-change": (value: boolean) => any;
|
|
16
|
-
}, string, PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
17
|
-
onSubmit?: ((value: SelectValue) => any) | undefined;
|
|
18
|
-
"onOpen-change"?: ((value: boolean) => any) | undefined;
|
|
19
|
-
}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {
|
|
20
|
-
selectRef: CreateComponentPublicInstanceWithMixins<Readonly< ExtractPropTypes<{
|
|
21
|
-
value: {
|
|
22
|
-
type: PropType<SelectValue>;
|
|
23
|
-
default: SelectValue;
|
|
24
|
-
};
|
|
25
|
-
defaultValue: {
|
|
26
|
-
type: PropType<SelectValue>;
|
|
27
|
-
default: SelectValue;
|
|
28
|
-
};
|
|
29
|
-
notFoundContent: VueTypeValidableDef<any>;
|
|
30
|
-
suffixIcon: VueTypeValidableDef<any>;
|
|
31
|
-
itemIcon: VueTypeValidableDef<any>;
|
|
32
|
-
size: {
|
|
33
|
-
type: PropType<ButtonSize>;
|
|
34
|
-
default: ButtonSize;
|
|
35
|
-
};
|
|
36
|
-
mode: {
|
|
37
|
-
type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
|
|
38
|
-
default: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
39
|
-
};
|
|
40
|
-
bordered: {
|
|
41
|
-
type: BooleanConstructor;
|
|
42
|
-
default: boolean;
|
|
43
|
-
};
|
|
44
|
-
transitionName: StringConstructor;
|
|
45
|
-
choiceTransitionName: {
|
|
46
|
-
type: PropType<"">;
|
|
47
|
-
default: "";
|
|
48
|
-
};
|
|
49
|
-
popupClassName: StringConstructor;
|
|
50
|
-
dropdownClassName: StringConstructor;
|
|
51
|
-
placement: {
|
|
52
|
-
type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
|
|
53
|
-
default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
54
|
-
};
|
|
55
|
-
status: {
|
|
56
|
-
type: PropType<"" | "error" | "warning">;
|
|
57
|
-
default: "" | "error" | "warning";
|
|
58
|
-
};
|
|
59
|
-
'onUpdate:value': {
|
|
60
|
-
type: PropType<(val: SelectValue) => void>;
|
|
61
|
-
default: (val: SelectValue) => void;
|
|
62
|
-
};
|
|
63
|
-
children: PropType< VueNode[]>;
|
|
64
|
-
listHeight: NumberConstructor;
|
|
65
|
-
onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
66
|
-
onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
67
|
-
tabindex: NumberConstructor;
|
|
68
|
-
onClick: PropType<(e: MouseEvent) => void>;
|
|
69
|
-
onFocus: {
|
|
70
|
-
type: PropType<(e: FocusEvent) => void>;
|
|
71
|
-
};
|
|
72
|
-
onBlur: {
|
|
73
|
-
type: PropType<(e: FocusEvent) => void>;
|
|
74
|
-
};
|
|
75
|
-
onChange: PropType<(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void>;
|
|
76
|
-
onKeydown: PropType<(e: KeyboardEvent) => void>;
|
|
77
|
-
onKeyup: PropType<(e: KeyboardEvent) => void>;
|
|
78
|
-
onMousedown: PropType<(e: MouseEvent) => void>;
|
|
79
|
-
onSelect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
80
|
-
open: {
|
|
81
|
-
type: BooleanConstructor;
|
|
82
|
-
default: any;
|
|
83
|
-
};
|
|
84
|
-
animation: StringConstructor;
|
|
85
|
-
direction: {
|
|
86
|
-
type: PropType<"rtl" | "ltr">;
|
|
87
|
-
};
|
|
88
|
-
disabled: {
|
|
89
|
-
type: BooleanConstructor;
|
|
90
|
-
default: any;
|
|
91
|
-
};
|
|
92
|
-
prefixCls: StringConstructor;
|
|
93
|
-
id: StringConstructor;
|
|
94
|
-
autofocus: BooleanConstructor;
|
|
95
|
-
getPopupContainer: {
|
|
96
|
-
type: PropType<RenderDOMFunc>;
|
|
97
|
-
};
|
|
98
|
-
virtual: {
|
|
99
|
-
type: BooleanConstructor;
|
|
100
|
-
default: any;
|
|
101
|
-
};
|
|
102
|
-
dropdownMatchSelectWidth: {
|
|
103
|
-
type: PropType<number | boolean>;
|
|
104
|
-
default: any;
|
|
105
|
-
};
|
|
106
|
-
options: PropType< DefaultOptionType[]>;
|
|
107
|
-
showAction: {
|
|
108
|
-
type: PropType<("click" | "focus")[]>;
|
|
109
|
-
};
|
|
110
|
-
onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
111
|
-
loading: {
|
|
112
|
-
type: BooleanConstructor;
|
|
113
|
-
default: any;
|
|
114
|
-
};
|
|
115
|
-
placeholder: VueTypeValidableDef<any>;
|
|
116
|
-
clearIcon: VueTypeValidableDef<any>;
|
|
117
|
-
allowClear: {
|
|
118
|
-
type: BooleanConstructor;
|
|
119
|
-
default: any;
|
|
120
|
-
};
|
|
121
|
-
onSearch: PropType<(value: string) => void>;
|
|
122
|
-
fieldNames: PropType<FieldNames>;
|
|
123
|
-
dropdownStyle: {
|
|
124
|
-
type: PropType<CSSProperties>;
|
|
125
|
-
};
|
|
126
|
-
dropdownRender: {
|
|
127
|
-
type: PropType<DropdownRender>;
|
|
128
|
-
};
|
|
129
|
-
dropdownAlign: PropType<AlignType>;
|
|
130
|
-
showSearch: {
|
|
131
|
-
type: BooleanConstructor;
|
|
132
|
-
default: any;
|
|
133
|
-
};
|
|
134
|
-
searchValue: StringConstructor;
|
|
135
|
-
onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
|
|
136
|
-
removeIcon: VueTypeValidableDef<any>;
|
|
137
|
-
maxTagCount: {
|
|
138
|
-
type: PropType<number | "responsive">;
|
|
139
|
-
};
|
|
140
|
-
maxTagTextLength: NumberConstructor;
|
|
141
|
-
maxTagPlaceholder: VueTypeValidableDef<any>;
|
|
142
|
-
tokenSeparators: {
|
|
143
|
-
type: PropType<string[]>;
|
|
144
|
-
};
|
|
145
|
-
tagRender: {
|
|
146
|
-
type: PropType<(props: CustomTagProps) => any>;
|
|
147
|
-
};
|
|
148
|
-
optionLabelRender: {
|
|
149
|
-
type: PropType<(option: Record<string, any>) => any>;
|
|
150
|
-
};
|
|
151
|
-
onClear: PropType<() => void>;
|
|
152
|
-
defaultOpen: {
|
|
153
|
-
type: BooleanConstructor;
|
|
154
|
-
default: any;
|
|
155
|
-
};
|
|
156
|
-
onDropdownVisibleChange: {
|
|
157
|
-
type: PropType<(open: boolean) => void>;
|
|
158
|
-
};
|
|
159
|
-
showArrow: {
|
|
160
|
-
type: BooleanConstructor;
|
|
161
|
-
default: any;
|
|
162
|
-
};
|
|
163
|
-
onPopupScroll: PropType<(e: UIEvent) => void>;
|
|
164
|
-
menuItemSelectedIcon: VueTypeValidableDef<any>;
|
|
165
|
-
listItemHeight: NumberConstructor;
|
|
166
|
-
inputValue: StringConstructor;
|
|
167
|
-
autoClearSearchValue: {
|
|
168
|
-
type: BooleanConstructor;
|
|
169
|
-
default: any;
|
|
170
|
-
};
|
|
171
|
-
filterOption: {
|
|
172
|
-
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
173
|
-
default: any;
|
|
174
|
-
};
|
|
175
|
-
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
|
|
176
|
-
optionFilterProp: StringConstructor;
|
|
177
|
-
optionLabelProp: StringConstructor;
|
|
178
|
-
defaultActiveFirstOption: {
|
|
179
|
-
type: BooleanConstructor;
|
|
180
|
-
default: any;
|
|
181
|
-
};
|
|
182
|
-
onClickOption: PropType<(e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>>;
|
|
183
|
-
labelInValue: {
|
|
184
|
-
type: BooleanConstructor;
|
|
185
|
-
default: any;
|
|
186
|
-
};
|
|
187
|
-
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
|
|
188
|
-
size: ButtonSize;
|
|
189
|
-
value: SelectValue;
|
|
190
|
-
mode: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
191
|
-
open: boolean;
|
|
192
|
-
disabled: boolean;
|
|
193
|
-
autofocus: boolean;
|
|
194
|
-
virtual: boolean;
|
|
195
|
-
dropdownMatchSelectWidth: number | boolean;
|
|
196
|
-
status: "" | "error" | "warning";
|
|
197
|
-
defaultValue: SelectValue;
|
|
198
|
-
'onUpdate:value': (val: SelectValue) => void;
|
|
199
|
-
placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
200
|
-
loading: boolean;
|
|
201
|
-
bordered: boolean;
|
|
202
|
-
allowClear: boolean;
|
|
203
|
-
showSearch: boolean;
|
|
204
|
-
choiceTransitionName: "";
|
|
205
|
-
defaultOpen: boolean;
|
|
206
|
-
showArrow: boolean;
|
|
207
|
-
autoClearSearchValue: boolean;
|
|
208
|
-
filterOption: boolean | FilterFunc<DefaultOptionType>;
|
|
209
|
-
defaultActiveFirstOption: boolean;
|
|
210
|
-
labelInValue: boolean;
|
|
211
|
-
}, true, {}, CustomSlotsType<{
|
|
212
|
-
notFoundContent: any;
|
|
213
|
-
suffixIcon: any;
|
|
214
|
-
itemIcon: any;
|
|
215
|
-
removeIcon: any;
|
|
216
|
-
clearIcon: any;
|
|
217
|
-
dropdownRender: any;
|
|
218
|
-
option: any;
|
|
219
|
-
placeholder: any;
|
|
220
|
-
tagRender: any;
|
|
221
|
-
maxTagPlaceholder: any;
|
|
222
|
-
optionLabel: any;
|
|
223
|
-
default: any;
|
|
224
|
-
}>, GlobalComponents, GlobalDirectives, string, {}, any, ComponentProvideOptions, {
|
|
225
|
-
P: {};
|
|
226
|
-
B: {};
|
|
227
|
-
D: {};
|
|
228
|
-
C: {};
|
|
229
|
-
M: {};
|
|
230
|
-
Defaults: {};
|
|
231
|
-
}, Readonly< ExtractPropTypes<{
|
|
232
|
-
value: {
|
|
233
|
-
type: PropType<SelectValue>;
|
|
234
|
-
default: SelectValue;
|
|
235
|
-
};
|
|
236
|
-
defaultValue: {
|
|
237
|
-
type: PropType<SelectValue>;
|
|
238
|
-
default: SelectValue;
|
|
239
|
-
};
|
|
240
|
-
notFoundContent: VueTypeValidableDef<any>;
|
|
241
|
-
suffixIcon: VueTypeValidableDef<any>;
|
|
242
|
-
itemIcon: VueTypeValidableDef<any>;
|
|
243
|
-
size: {
|
|
244
|
-
type: PropType<ButtonSize>;
|
|
245
|
-
default: ButtonSize;
|
|
246
|
-
};
|
|
247
|
-
mode: {
|
|
248
|
-
type: PropType<"multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE">;
|
|
249
|
-
default: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
250
|
-
};
|
|
251
|
-
bordered: {
|
|
252
|
-
type: BooleanConstructor;
|
|
253
|
-
default: boolean;
|
|
254
|
-
};
|
|
255
|
-
transitionName: StringConstructor;
|
|
256
|
-
choiceTransitionName: {
|
|
257
|
-
type: PropType<"">;
|
|
258
|
-
default: "";
|
|
259
|
-
};
|
|
260
|
-
popupClassName: StringConstructor;
|
|
261
|
-
dropdownClassName: StringConstructor;
|
|
262
|
-
placement: {
|
|
263
|
-
type: PropType<"topLeft" | "topRight" | "bottomLeft" | "bottomRight">;
|
|
264
|
-
default: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
265
|
-
};
|
|
266
|
-
status: {
|
|
267
|
-
type: PropType<"" | "error" | "warning">;
|
|
268
|
-
default: "" | "error" | "warning";
|
|
269
|
-
};
|
|
270
|
-
'onUpdate:value': {
|
|
271
|
-
type: PropType<(val: SelectValue) => void>;
|
|
272
|
-
default: (val: SelectValue) => void;
|
|
273
|
-
};
|
|
274
|
-
children: PropType< VueNode[]>;
|
|
275
|
-
listHeight: NumberConstructor;
|
|
276
|
-
onMouseenter: PropType<(e: MouseEvent) => void>;
|
|
277
|
-
onMouseleave: PropType<(e: MouseEvent) => void>;
|
|
278
|
-
tabindex: NumberConstructor;
|
|
279
|
-
onClick: PropType<(e: MouseEvent) => void>;
|
|
280
|
-
onFocus: {
|
|
281
|
-
type: PropType<(e: FocusEvent) => void>;
|
|
282
|
-
};
|
|
283
|
-
onBlur: {
|
|
284
|
-
type: PropType<(e: FocusEvent) => void>;
|
|
285
|
-
};
|
|
286
|
-
onChange: PropType<(value: SelectValue, option: DefaultOptionType | DefaultOptionType[]) => void>;
|
|
287
|
-
onKeydown: PropType<(e: KeyboardEvent) => void>;
|
|
288
|
-
onKeyup: PropType<(e: KeyboardEvent) => void>;
|
|
289
|
-
onMousedown: PropType<(e: MouseEvent) => void>;
|
|
290
|
-
onSelect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
291
|
-
open: {
|
|
292
|
-
type: BooleanConstructor;
|
|
293
|
-
default: any;
|
|
294
|
-
};
|
|
295
|
-
animation: StringConstructor;
|
|
296
|
-
direction: {
|
|
297
|
-
type: PropType<"rtl" | "ltr">;
|
|
298
|
-
};
|
|
299
|
-
disabled: {
|
|
300
|
-
type: BooleanConstructor;
|
|
301
|
-
default: any;
|
|
302
|
-
};
|
|
303
|
-
prefixCls: StringConstructor;
|
|
304
|
-
id: StringConstructor;
|
|
305
|
-
autofocus: BooleanConstructor;
|
|
306
|
-
getPopupContainer: {
|
|
307
|
-
type: PropType<RenderDOMFunc>;
|
|
308
|
-
};
|
|
309
|
-
virtual: {
|
|
310
|
-
type: BooleanConstructor;
|
|
311
|
-
default: any;
|
|
312
|
-
};
|
|
313
|
-
dropdownMatchSelectWidth: {
|
|
314
|
-
type: PropType<number | boolean>;
|
|
315
|
-
default: any;
|
|
316
|
-
};
|
|
317
|
-
options: PropType< DefaultOptionType[]>;
|
|
318
|
-
showAction: {
|
|
319
|
-
type: PropType<("click" | "focus")[]>;
|
|
320
|
-
};
|
|
321
|
-
onDeselect: PropType<SelectHandler<(string | number) | LabeledValue, DefaultOptionType>>;
|
|
322
|
-
loading: {
|
|
323
|
-
type: BooleanConstructor;
|
|
324
|
-
default: any;
|
|
325
|
-
};
|
|
326
|
-
placeholder: VueTypeValidableDef<any>;
|
|
327
|
-
clearIcon: VueTypeValidableDef<any>;
|
|
328
|
-
allowClear: {
|
|
329
|
-
type: BooleanConstructor;
|
|
330
|
-
default: any;
|
|
331
|
-
};
|
|
332
|
-
onSearch: PropType<(value: string) => void>;
|
|
333
|
-
fieldNames: PropType<FieldNames>;
|
|
334
|
-
dropdownStyle: {
|
|
335
|
-
type: PropType<CSSProperties>;
|
|
336
|
-
};
|
|
337
|
-
dropdownRender: {
|
|
338
|
-
type: PropType<DropdownRender>;
|
|
339
|
-
};
|
|
340
|
-
dropdownAlign: PropType<AlignType>;
|
|
341
|
-
showSearch: {
|
|
342
|
-
type: BooleanConstructor;
|
|
343
|
-
default: any;
|
|
344
|
-
};
|
|
345
|
-
searchValue: StringConstructor;
|
|
346
|
-
onInputKeyDown: PropType<(e: KeyboardEvent) => void>;
|
|
347
|
-
removeIcon: VueTypeValidableDef<any>;
|
|
348
|
-
maxTagCount: {
|
|
349
|
-
type: PropType<number | "responsive">;
|
|
350
|
-
};
|
|
351
|
-
maxTagTextLength: NumberConstructor;
|
|
352
|
-
maxTagPlaceholder: VueTypeValidableDef<any>;
|
|
353
|
-
tokenSeparators: {
|
|
354
|
-
type: PropType<string[]>;
|
|
355
|
-
};
|
|
356
|
-
tagRender: {
|
|
357
|
-
type: PropType<(props: CustomTagProps) => any>;
|
|
358
|
-
};
|
|
359
|
-
optionLabelRender: {
|
|
360
|
-
type: PropType<(option: Record<string, any>) => any>;
|
|
361
|
-
};
|
|
362
|
-
onClear: PropType<() => void>;
|
|
363
|
-
defaultOpen: {
|
|
364
|
-
type: BooleanConstructor;
|
|
365
|
-
default: any;
|
|
366
|
-
};
|
|
367
|
-
onDropdownVisibleChange: {
|
|
368
|
-
type: PropType<(open: boolean) => void>;
|
|
369
|
-
};
|
|
370
|
-
showArrow: {
|
|
371
|
-
type: BooleanConstructor;
|
|
372
|
-
default: any;
|
|
373
|
-
};
|
|
374
|
-
onPopupScroll: PropType<(e: UIEvent) => void>;
|
|
375
|
-
menuItemSelectedIcon: VueTypeValidableDef<any>;
|
|
376
|
-
listItemHeight: NumberConstructor;
|
|
377
|
-
inputValue: StringConstructor;
|
|
378
|
-
autoClearSearchValue: {
|
|
379
|
-
type: BooleanConstructor;
|
|
380
|
-
default: any;
|
|
381
|
-
};
|
|
382
|
-
filterOption: {
|
|
383
|
-
type: PropType<boolean | FilterFunc<DefaultOptionType>>;
|
|
384
|
-
default: any;
|
|
385
|
-
};
|
|
386
|
-
filterSort: PropType<(optionA: DefaultOptionType, optionB: DefaultOptionType) => number>;
|
|
387
|
-
optionFilterProp: StringConstructor;
|
|
388
|
-
optionLabelProp: StringConstructor;
|
|
389
|
-
defaultActiveFirstOption: {
|
|
390
|
-
type: BooleanConstructor;
|
|
391
|
-
default: any;
|
|
392
|
-
};
|
|
393
|
-
onClickOption: PropType<(e: MouseEvent, value: SelectValue, selected: boolean) => boolean | Promise<boolean>>;
|
|
394
|
-
labelInValue: {
|
|
395
|
-
type: BooleanConstructor;
|
|
396
|
-
default: any;
|
|
397
|
-
};
|
|
398
|
-
}>> & Readonly<{}>, () => VueNode, {}, {}, {}, {
|
|
399
|
-
size: ButtonSize;
|
|
400
|
-
value: SelectValue;
|
|
401
|
-
mode: "multiple" | "tags" | "SECRET_COMBOBOX_MODE_DO_NOT_USE";
|
|
402
|
-
open: boolean;
|
|
403
|
-
disabled: boolean;
|
|
404
|
-
autofocus: boolean;
|
|
405
|
-
virtual: boolean;
|
|
406
|
-
dropdownMatchSelectWidth: number | boolean;
|
|
407
|
-
status: "" | "error" | "warning";
|
|
408
|
-
defaultValue: SelectValue;
|
|
409
|
-
'onUpdate:value': (val: SelectValue) => void;
|
|
410
|
-
placement: "topLeft" | "topRight" | "bottomLeft" | "bottomRight";
|
|
411
|
-
loading: boolean;
|
|
412
|
-
bordered: boolean;
|
|
413
|
-
allowClear: boolean;
|
|
414
|
-
showSearch: boolean;
|
|
415
|
-
choiceTransitionName: "";
|
|
416
|
-
defaultOpen: boolean;
|
|
417
|
-
showArrow: boolean;
|
|
418
|
-
autoClearSearchValue: boolean;
|
|
419
|
-
filterOption: boolean | FilterFunc<DefaultOptionType>;
|
|
420
|
-
defaultActiveFirstOption: boolean;
|
|
421
|
-
labelInValue: boolean;
|
|
422
|
-
}> | null;
|
|
423
|
-
}, HTMLDivElement>;
|
|
424
|
-
export default _default;
|
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import { defineComponent as P, ref as u, watchEffect as O, createElementBlock as R, openBlock as L, normalizeClass as p, unref as e, createVNode as a, withCtx as n, createElementVNode as s, mergeProps as M, createTextVNode as d, toDisplayString as m } from "vue";
|
|
2
|
-
import { Popover as T, Select as z, Button as f, Space as G } from "@aplus-frontend/antdv";
|
|
3
|
-
import "../../../config-provider/index.mjs";
|
|
4
|
-
import A from "../images/icon-line-select.vue.mjs";
|
|
5
|
-
import { wait as D } from "@aplus-frontend/utils";
|
|
6
|
-
import { useLocale as F } from "../../../config-provider/hooks/use-locale.mjs";
|
|
7
|
-
import { useGlobalConfig as E } from "../../../config-provider/hooks/use-global-config.mjs";
|
|
8
|
-
import { useNamespace as K } from "../../../config-provider/hooks/use-namespace.mjs";
|
|
9
|
-
const Y = /* @__PURE__ */ P({
|
|
10
|
-
__name: "index",
|
|
11
|
-
props: {
|
|
12
|
-
value: {},
|
|
13
|
-
defaultValue: {},
|
|
14
|
-
notFoundContent: {},
|
|
15
|
-
itemIcon: {},
|
|
16
|
-
size: {},
|
|
17
|
-
bordered: { type: Boolean },
|
|
18
|
-
transitionName: {},
|
|
19
|
-
choiceTransitionName: {},
|
|
20
|
-
popupClassName: {},
|
|
21
|
-
dropdownClassName: {},
|
|
22
|
-
placement: {},
|
|
23
|
-
status: {},
|
|
24
|
-
"onUpdate:value": {},
|
|
25
|
-
children: {},
|
|
26
|
-
listHeight: {},
|
|
27
|
-
onMouseenter: {},
|
|
28
|
-
onMouseleave: {},
|
|
29
|
-
tabindex: {},
|
|
30
|
-
onClick: {},
|
|
31
|
-
onFocus: {},
|
|
32
|
-
onBlur: {},
|
|
33
|
-
onChange: {},
|
|
34
|
-
onKeydown: {},
|
|
35
|
-
onKeyup: {},
|
|
36
|
-
onMousedown: {},
|
|
37
|
-
onSelect: {},
|
|
38
|
-
open: { type: Boolean },
|
|
39
|
-
animation: {},
|
|
40
|
-
direction: {},
|
|
41
|
-
disabled: { type: Boolean },
|
|
42
|
-
prefixCls: {},
|
|
43
|
-
id: {},
|
|
44
|
-
autofocus: { type: Boolean },
|
|
45
|
-
getPopupContainer: {},
|
|
46
|
-
virtual: { type: Boolean },
|
|
47
|
-
dropdownMatchSelectWidth: {},
|
|
48
|
-
options: {},
|
|
49
|
-
showAction: {},
|
|
50
|
-
onDeselect: {},
|
|
51
|
-
loading: { type: Boolean },
|
|
52
|
-
placeholder: {},
|
|
53
|
-
clearIcon: {},
|
|
54
|
-
allowClear: { type: Boolean },
|
|
55
|
-
onSearch: {},
|
|
56
|
-
fieldNames: {},
|
|
57
|
-
dropdownStyle: {},
|
|
58
|
-
dropdownRender: {},
|
|
59
|
-
dropdownAlign: {},
|
|
60
|
-
showSearch: { type: Boolean },
|
|
61
|
-
searchValue: {},
|
|
62
|
-
onInputKeyDown: {},
|
|
63
|
-
removeIcon: {},
|
|
64
|
-
maxTagCount: {},
|
|
65
|
-
maxTagTextLength: {},
|
|
66
|
-
maxTagPlaceholder: {},
|
|
67
|
-
tokenSeparators: {},
|
|
68
|
-
tagRender: {},
|
|
69
|
-
optionLabelRender: {},
|
|
70
|
-
onClear: {},
|
|
71
|
-
defaultOpen: { type: Boolean },
|
|
72
|
-
onDropdownVisibleChange: {},
|
|
73
|
-
showArrow: { type: Boolean },
|
|
74
|
-
onPopupScroll: {},
|
|
75
|
-
menuItemSelectedIcon: {},
|
|
76
|
-
listItemHeight: {},
|
|
77
|
-
inputValue: {},
|
|
78
|
-
autoClearSearchValue: { type: Boolean },
|
|
79
|
-
filterOption: {},
|
|
80
|
-
filterSort: {},
|
|
81
|
-
optionFilterProp: {},
|
|
82
|
-
optionLabelProp: {},
|
|
83
|
-
defaultActiveFirstOption: { type: Boolean },
|
|
84
|
-
onClickOption: {},
|
|
85
|
-
labelInValue: { type: Boolean },
|
|
86
|
-
__parentRef: {}
|
|
87
|
-
},
|
|
88
|
-
emits: ["submit", "open-change"],
|
|
89
|
-
setup(S, { emit: w }) {
|
|
90
|
-
const { t: r } = F(), h = E("uiMode", "aplus"), i = S, v = w, t = u([]), c = u(!1), g = u();
|
|
91
|
-
O(() => {
|
|
92
|
-
t.value = i.value;
|
|
93
|
-
});
|
|
94
|
-
const B = (o) => i.__parentRef || o, b = (o) => {
|
|
95
|
-
c.value = o, v("open-change", o);
|
|
96
|
-
}, C = () => {
|
|
97
|
-
c.value = !1;
|
|
98
|
-
}, _ = () => {
|
|
99
|
-
t.value = [];
|
|
100
|
-
}, k = (o) => {
|
|
101
|
-
t.value = o;
|
|
102
|
-
}, x = async () => {
|
|
103
|
-
var o;
|
|
104
|
-
(o = g.value) == null || o.blur(), C(), await D(150), v("submit", t.value);
|
|
105
|
-
}, { b: V, e: I, em: l } = K("ap-popover-select");
|
|
106
|
-
return (o, y) => (L(), R("div", {
|
|
107
|
-
class: p(e(V)())
|
|
108
|
-
}, [
|
|
109
|
-
a(e(T), {
|
|
110
|
-
"overlay-class-name": e(I)("popover"),
|
|
111
|
-
"get-popup-container": B,
|
|
112
|
-
trigger: "click",
|
|
113
|
-
open: c.value,
|
|
114
|
-
placement: "bottomLeft",
|
|
115
|
-
onOpenChange: b
|
|
116
|
-
}, {
|
|
117
|
-
content: n(() => [
|
|
118
|
-
s("div", null, [
|
|
119
|
-
s("div", {
|
|
120
|
-
class: p(e(l)("popover", "content"))
|
|
121
|
-
}, [
|
|
122
|
-
a(e(z), M({ ...i }, {
|
|
123
|
-
ref_key: "selectRef",
|
|
124
|
-
ref: g,
|
|
125
|
-
mode: "tags",
|
|
126
|
-
bordered: !1,
|
|
127
|
-
value: t.value,
|
|
128
|
-
placeholder: e(r)("ap.apGroupSearch.tokenSeparatorsPlaceholder"),
|
|
129
|
-
"token-separators": [",", `
|
|
130
|
-
`, "\r"],
|
|
131
|
-
"max-tag-count": 200,
|
|
132
|
-
open: !1,
|
|
133
|
-
onChange: y[0] || (y[0] = (N) => k(N))
|
|
134
|
-
}), null, 16, ["value", "placeholder"])
|
|
135
|
-
], 2),
|
|
136
|
-
s("div", {
|
|
137
|
-
class: p(
|
|
138
|
-
e(h) === "aplus" ? e(l)("popover", "footer") : e(l)("popover", "footer--admin")
|
|
139
|
-
)
|
|
140
|
-
}, [
|
|
141
|
-
a(e(f), {
|
|
142
|
-
size: "small",
|
|
143
|
-
onClick: C
|
|
144
|
-
}, {
|
|
145
|
-
default: n(() => [
|
|
146
|
-
d(m(e(r)("ap.apGroupSearch.close")), 1)
|
|
147
|
-
]),
|
|
148
|
-
_: 1
|
|
149
|
-
}),
|
|
150
|
-
a(e(G), null, {
|
|
151
|
-
default: n(() => [
|
|
152
|
-
a(e(f), {
|
|
153
|
-
size: "small",
|
|
154
|
-
onClick: _
|
|
155
|
-
}, {
|
|
156
|
-
default: n(() => [
|
|
157
|
-
d(m(e(r)("ap.apGroupSearch.clear")), 1)
|
|
158
|
-
]),
|
|
159
|
-
_: 1
|
|
160
|
-
}),
|
|
161
|
-
a(e(f), {
|
|
162
|
-
size: "small",
|
|
163
|
-
type: "primary",
|
|
164
|
-
onClick: x
|
|
165
|
-
}, {
|
|
166
|
-
default: n(() => [
|
|
167
|
-
d(m(e(r)("ap.apGroupSearch.confirm")), 1)
|
|
168
|
-
]),
|
|
169
|
-
_: 1
|
|
170
|
-
})
|
|
171
|
-
]),
|
|
172
|
-
_: 1
|
|
173
|
-
})
|
|
174
|
-
], 2)
|
|
175
|
-
])
|
|
176
|
-
]),
|
|
177
|
-
default: n(() => [
|
|
178
|
-
s("span", {
|
|
179
|
-
class: p(
|
|
180
|
-
e(h) === "aplus" ? e(l)("popover", "trigger") : e(l)("popover", "trigger--admin")
|
|
181
|
-
)
|
|
182
|
-
}, [
|
|
183
|
-
a(A)
|
|
184
|
-
], 2)
|
|
185
|
-
]),
|
|
186
|
-
_: 1
|
|
187
|
-
}, 8, ["overlay-class-name", "open"])
|
|
188
|
-
], 2));
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
export {
|
|
192
|
-
Y as default
|
|
193
|
-
};
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@aplus-frontend/ui/theme/ap-group-search/ap-popover-select.css';
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@aplus-frontend/ui/theme/ap-group-search/ap-popover-select.less';
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@aplus-frontend/ui/theme/ap-group-search/ap-group-search.css';
|
|
File without changes
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import '@aplus-frontend/ui/theme/ap-group-search/ap-group-search.less';
|