@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 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("@aplus-frontend/utils");require("./ap-group-search.vue.js");require("./extension-select/index.vue.js");require("./popover-select/index.vue.js");require("./interface.js");const t=require("./ap-group-search.vue2.js"),r=require("./extension-select/index.vue2.js"),u=require("./popover-select/index.vue2.js"),i=e.withInstall(t.default),p=e.withInstall(r.default),n=e.withInstall(u.default);exports.ApExtensionSelect=p;exports.ApGroupSearch=i;exports.ApPopoverSelect=n;
|
|
@@ -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
|
-
"use strict";
|
|
@@ -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 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index.vue2.js");exports.default=e.default;
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),n=require("@aplus-frontend/antdv");require("../../../config-provider/index.js");const V=require("../images/icon-line-select.vue.js"),B=require("@aplus-frontend/utils"),b=require("../../../config-provider/hooks/use-locale.js"),x=require("../../../config-provider/hooks/use-global-config.js"),_=require("../../../config-provider/hooks/use-namespace.js"),k=e.defineComponent({__name:"index",props:{value:{},defaultValue:{},notFoundContent:{},itemIcon:{},size:{},bordered:{type:Boolean},transitionName:{},choiceTransitionName:{},popupClassName:{},dropdownClassName:{},placement:{},status:{},"onUpdate:value":{},children:{},listHeight:{},onMouseenter:{},onMouseleave:{},tabindex:{},onClick:{},onFocus:{},onBlur:{},onChange:{},onKeydown:{},onKeyup:{},onMousedown:{},onSelect:{},open:{type:Boolean},animation:{},direction:{},disabled:{type:Boolean},prefixCls:{},id:{},autofocus:{type:Boolean},getPopupContainer:{},virtual:{type:Boolean},dropdownMatchSelectWidth:{},options:{},showAction:{},onDeselect:{},loading:{type:Boolean},placeholder:{},clearIcon:{},allowClear:{type:Boolean},onSearch:{},fieldNames:{},dropdownStyle:{},dropdownRender:{},dropdownAlign:{},showSearch:{type:Boolean},searchValue:{},onInputKeyDown:{},removeIcon:{},maxTagCount:{},maxTagTextLength:{},maxTagPlaceholder:{},tokenSeparators:{},tagRender:{},optionLabelRender:{},onClear:{},defaultOpen:{type:Boolean},onDropdownVisibleChange:{},showArrow:{type:Boolean},onPopupScroll:{},menuItemSelectedIcon:{},listItemHeight:{},inputValue:{},autoClearSearchValue:{type:Boolean},filterOption:{},filterSort:{},optionFilterProp:{},optionLabelProp:{},defaultActiveFirstOption:{type:Boolean},onClickOption:{},labelInValue:{type:Boolean},__parentRef:{}},emits:["submit","open-change"],setup(f,{emit:m}){const{t:l}=b.useLocale(),p=x.useGlobalConfig("uiMode","aplus"),r=f,u=m,t=e.ref([]),s=e.ref(!1),c=e.ref();e.watchEffect(()=>{t.value=r.value});const h=o=>r.__parentRef||o,g=o=>{s.value=o,u("open-change",o)},i=()=>{s.value=!1},v=()=>{t.value=[]},C=o=>{t.value=o},y=async()=>{var o;(o=c.value)==null||o.blur(),i(),await B.wait(150),u("submit",t.value)},{b:S,e:w,em:a}=_.useNamespace("ap-popover-select");return(o,d)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(e.unref(S)())},[e.createVNode(e.unref(n.Popover),{"overlay-class-name":e.unref(w)("popover"),"get-popup-container":h,trigger:"click",open:s.value,placement:"bottomLeft",onOpenChange:g},{content:e.withCtx(()=>[e.createElementVNode("div",null,[e.createElementVNode("div",{class:e.normalizeClass(e.unref(a)("popover","content"))},[e.createVNode(e.unref(n.Select),e.mergeProps({...r},{ref_key:"selectRef",ref:c,mode:"tags",bordered:!1,value:t.value,placeholder:e.unref(l)("ap.apGroupSearch.tokenSeparatorsPlaceholder"),"token-separators":[",",`
|
|
2
|
-
`,"\r"],"max-tag-count":200,open:!1,onChange:d[0]||(d[0]=N=>C(N))}),null,16,["value","placeholder"])],2),e.createElementVNode("div",{class:e.normalizeClass(e.unref(p)==="aplus"?e.unref(a)("popover","footer"):e.unref(a)("popover","footer--admin"))},[e.createVNode(e.unref(n.Button),{size:"small",onClick:i},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("ap.apGroupSearch.close")),1)]),_:1}),e.createVNode(e.unref(n.Space),null,{default:e.withCtx(()=>[e.createVNode(e.unref(n.Button),{size:"small",onClick:v},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("ap.apGroupSearch.clear")),1)]),_:1}),e.createVNode(e.unref(n.Button),{size:"small",type:"primary",onClick:y},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(e.unref(l)("ap.apGroupSearch.confirm")),1)]),_:1})]),_:1})],2)])]),default:e.withCtx(()=>[e.createElementVNode("span",{class:e.normalizeClass(e.unref(p)==="aplus"?e.unref(a)("popover","trigger"):e.unref(a)("popover","trigger--admin"))},[e.createVNode(V.default)],2)]),_:1},8,["overlay-class-name","open"])],2))}});exports.default=k;
|
|
@@ -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';
|
|
File without changes
|