@peanut-admin/ui-vue 4.0.0-rc.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.
@@ -0,0 +1,139 @@
1
+ import type { TargetCandidate, TypedTarget } from '@peanut-admin/vue';
2
+ import type { PropType } from 'vue';
3
+ export declare const TargetSelector: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
4
+ modelValue: {
5
+ type: PropType<readonly TypedTarget[]>;
6
+ default: () => never[];
7
+ };
8
+ candidates: {
9
+ type: PropType<readonly TargetCandidate[]>;
10
+ default: () => never[];
11
+ };
12
+ multiple: {
13
+ type: BooleanConstructor;
14
+ default: boolean;
15
+ };
16
+ loading: {
17
+ type: BooleanConstructor;
18
+ default: boolean;
19
+ };
20
+ disabled: {
21
+ type: BooleanConstructor;
22
+ default: boolean;
23
+ };
24
+ placeholder: {
25
+ type: StringConstructor;
26
+ default: string;
27
+ };
28
+ page: {
29
+ type: NumberConstructor;
30
+ default: number;
31
+ };
32
+ pageSize: {
33
+ type: NumberConstructor;
34
+ default: number;
35
+ };
36
+ total: {
37
+ type: NumberConstructor;
38
+ default: number;
39
+ };
40
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
41
+ [key: string]: any;
42
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
43
+ 'update:modelValue': (targets: readonly TypedTarget[]) => targets is any[];
44
+ search: (query: string) => boolean;
45
+ 'page-change': (page: number) => boolean;
46
+ }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
47
+ modelValue: {
48
+ type: PropType<readonly TypedTarget[]>;
49
+ default: () => never[];
50
+ };
51
+ candidates: {
52
+ type: PropType<readonly TargetCandidate[]>;
53
+ default: () => never[];
54
+ };
55
+ multiple: {
56
+ type: BooleanConstructor;
57
+ default: boolean;
58
+ };
59
+ loading: {
60
+ type: BooleanConstructor;
61
+ default: boolean;
62
+ };
63
+ disabled: {
64
+ type: BooleanConstructor;
65
+ default: boolean;
66
+ };
67
+ placeholder: {
68
+ type: StringConstructor;
69
+ default: string;
70
+ };
71
+ page: {
72
+ type: NumberConstructor;
73
+ default: number;
74
+ };
75
+ pageSize: {
76
+ type: NumberConstructor;
77
+ default: number;
78
+ };
79
+ total: {
80
+ type: NumberConstructor;
81
+ default: number;
82
+ };
83
+ }>> & Readonly<{
84
+ onSearch?: ((query: string) => any) | undefined;
85
+ "onUpdate:modelValue"?: ((targets: readonly TypedTarget[]) => any) | undefined;
86
+ "onPage-change"?: ((page: number) => any) | undefined;
87
+ }>, {
88
+ disabled: boolean;
89
+ loading: boolean;
90
+ page: number;
91
+ modelValue: readonly TypedTarget[];
92
+ multiple: boolean;
93
+ placeholder: string;
94
+ pageSize: number;
95
+ total: number;
96
+ candidates: readonly TargetCandidate[];
97
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
98
+ export type TargetScopeMode = 'zero' | 'single' | 'multiple' | 'aggregate';
99
+ export declare const TargetScopeSummary: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
100
+ mode: {
101
+ type: PropType<TargetScopeMode>;
102
+ required: true;
103
+ };
104
+ availableCount: {
105
+ type: NumberConstructor;
106
+ required: true;
107
+ };
108
+ selectedCount: {
109
+ type: NumberConstructor;
110
+ default: number;
111
+ };
112
+ digest: {
113
+ type: StringConstructor;
114
+ default: null;
115
+ };
116
+ }>, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
117
+ [key: string]: any;
118
+ }>, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
119
+ mode: {
120
+ type: PropType<TargetScopeMode>;
121
+ required: true;
122
+ };
123
+ availableCount: {
124
+ type: NumberConstructor;
125
+ required: true;
126
+ };
127
+ selectedCount: {
128
+ type: NumberConstructor;
129
+ default: number;
130
+ };
131
+ digest: {
132
+ type: StringConstructor;
133
+ default: null;
134
+ };
135
+ }>> & Readonly<{}>, {
136
+ selectedCount: number;
137
+ digest: string;
138
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
139
+ //# sourceMappingURL=targets.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"targets.d.ts","sourceRoot":"","sources":["../src/targets.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAGtE,OAAO,KAAK,EAAa,QAAQ,EAAE,MAAM,KAAK,CAAC;AAa/C,eAAO,MAAM,cAAc;;cAIN,QAAQ,CAAC,SAAS,WAAW,EAAE,CAAC;;;;cAIhC,QAAQ,CAAC,SAAS,eAAe,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mCAYtB,SAAS,WAAW,EAAE;oBAEnC,MAAM;0BACF,MAAM;;;cAnBX,QAAQ,CAAC,SAAS,WAAW,EAAE,CAAC;;;;cAIhC,QAAQ,CAAC,SAAS,eAAe,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4EAoFvD,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,GAAG,WAAW,CAAC;AAE3E,eAAO,MAAM,kBAAkB;;cAIT,QAAQ,CAAC,eAAe,CAAC;;;;;;;;;;;;;;;;;;;cAAzB,QAAQ,CAAC,eAAe,CAAC;;;;;;;;;;;;;;;;;;4EAgC7C,CAAC"}
@@ -0,0 +1,118 @@
1
+ /* eslint-disable vue/one-component-per-file */
2
+ import { ElOption, ElPagination, ElSelect } from 'element-plus';
3
+ import { computed, defineComponent, h } from 'vue';
4
+ const SelectComponent = ElSelect;
5
+ const OptionComponent = ElOption;
6
+ const PaginationComponent = ElPagination;
7
+ const targetKey = (target) => JSON.stringify([
8
+ target.target_resource_key,
9
+ target.target_role,
10
+ target.target_id,
11
+ ]);
12
+ export const TargetSelector = defineComponent({
13
+ name: 'TargetSelector',
14
+ props: {
15
+ modelValue: {
16
+ type: Array,
17
+ default: () => [],
18
+ },
19
+ candidates: {
20
+ type: Array,
21
+ default: () => [],
22
+ },
23
+ multiple: { type: Boolean, default: false },
24
+ loading: { type: Boolean, default: false },
25
+ disabled: { type: Boolean, default: false },
26
+ placeholder: { type: String, default: 'Select target' },
27
+ page: { type: Number, default: 1 },
28
+ pageSize: { type: Number, default: 20 },
29
+ total: { type: Number, default: 0 },
30
+ },
31
+ emits: {
32
+ 'update:modelValue': (targets) => Array.isArray(targets),
33
+ 'search': (query) => typeof query === 'string',
34
+ 'page-change': (page) => Number.isInteger(page) && page >= 1,
35
+ },
36
+ setup(props, { emit }) {
37
+ const candidateMap = computed(() => new Map(props.candidates.map((candidate) => [targetKey(candidate), candidate])));
38
+ const selectedKeys = computed(() => props.modelValue.map(targetKey));
39
+ const updateSelection = (value) => {
40
+ const values = (Array.isArray(value) ? value : [value]).filter((candidate) => typeof candidate === 'string');
41
+ const targets = values.flatMap((key) => {
42
+ const candidate = candidateMap.value.get(key);
43
+ return candidate === undefined
44
+ ? []
45
+ : [
46
+ {
47
+ target_resource_key: candidate.target_resource_key,
48
+ target_role: candidate.target_role,
49
+ target_id: candidate.target_id,
50
+ },
51
+ ];
52
+ });
53
+ emit('update:modelValue', props.multiple ? targets : targets.slice(0, 1));
54
+ };
55
+ return () => h('div', { class: 'pa-target-selector' }, [
56
+ h(SelectComponent, {
57
+ 'modelValue': props.multiple
58
+ ? selectedKeys.value
59
+ : selectedKeys.value[0] ?? null,
60
+ 'onUpdate:modelValue': updateSelection,
61
+ 'multiple': props.multiple,
62
+ 'filterable': true,
63
+ 'remote': true,
64
+ 'remoteMethod': (query) => emit('search', query),
65
+ 'loading': props.loading,
66
+ 'disabled': props.disabled,
67
+ 'placeholder': props.placeholder,
68
+ 'class': 'pa-target-selector__select',
69
+ }, () => props.candidates.map((candidate) => h(OptionComponent, {
70
+ key: targetKey(candidate),
71
+ value: targetKey(candidate),
72
+ label: candidate.label,
73
+ }))),
74
+ props.total <= props.pageSize
75
+ ? null
76
+ : h(PaginationComponent, {
77
+ 'class': 'pa-target-selector__pagination',
78
+ 'currentPage': props.page,
79
+ 'pageSize': props.pageSize,
80
+ 'total': props.total,
81
+ 'layout': 'prev, pager, next',
82
+ 'onUpdate:currentPage': (page) => emit('page-change', page),
83
+ }),
84
+ ]);
85
+ },
86
+ });
87
+ export const TargetScopeSummary = defineComponent({
88
+ name: 'TargetScopeSummary',
89
+ props: {
90
+ mode: {
91
+ type: String,
92
+ required: true,
93
+ },
94
+ availableCount: { type: Number, required: true },
95
+ selectedCount: { type: Number, default: 0 },
96
+ digest: { type: String, default: null },
97
+ },
98
+ setup(props) {
99
+ const message = computed(() => {
100
+ switch (props.mode) {
101
+ case 'zero':
102
+ return 'No available targets';
103
+ case 'single':
104
+ return '1 available target';
105
+ case 'aggregate':
106
+ return `Read-only aggregate across ${props.availableCount} targets`;
107
+ default:
108
+ return `${props.selectedCount} of ${props.availableCount} targets selected`;
109
+ }
110
+ });
111
+ return () => h('div', {
112
+ 'class': ['pa-target-scope-summary', `is-${props.mode}`],
113
+ 'role': 'status',
114
+ 'aria-label': 'Target scope',
115
+ }, message.value);
116
+ },
117
+ });
118
+ //# sourceMappingURL=targets.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"targets.js","sourceRoot":"","sources":["../src/targets.ts"],"names":[],"mappings":"AAAA,+CAA+C;AAG/C,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAChE,OAAO,EAAE,QAAQ,EAAE,eAAe,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGnD,MAAM,eAAe,GAAG,QAAgC,CAAC;AACzD,MAAM,eAAe,GAAG,QAAgC,CAAC;AACzD,MAAM,mBAAmB,GAAG,YAAoC,CAAC;AAEjE,MAAM,SAAS,GAAG,CAAC,MAAmB,EAAU,EAAE,CAChD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P,CAAC;CACF,CAAC,CAAC;AAIH,MAAM,CAAC,MAAM,kBAAkB,GAAG,eAAe,CAAC;IAChD,IAAI,EAAE,oBAAoB;IAC1B,KAAK,EAAE;QACL,IAAI,EAAE;YACJ,IAAI,EAAE,MAAmC;YACzC,QAAQ,EAAE,IAAI;SACf;QACD,cAAc,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,EAAE;QAChD,aAAa,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE;QAC3C,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE;KACxC;IACD,KAAK,CAAC,KAAK;QACT,MAAM,OAAO,GAAG,QAAQ,CAAC,GAAG,EAAE;YAC5B,QAAQ,KAAK,CAAC,IAAI,EAAE,CAAC;gBACnB,KAAK,MAAM;oBACT,OAAO,sBAAsB,CAAC;gBAChC,KAAK,QAAQ;oBACX,OAAO,oBAAoB,CAAC;gBAC9B,KAAK,WAAW;oBACd,OAAO,8BAA8B,KAAK,CAAC,cAAc,UAAU,CAAC;gBACtE;oBACE,OAAO,GAAG,KAAK,CAAC,aAAa,OAAO,KAAK,CAAC,cAAc,mBAAmB,CAAC;YAChF,CAAC;QACH,CAAC,CAAC,CAAC;QAEH,OAAO,GAAG,EAAE,CACV,CAAC,CACC,KAAK,EACL;YACE,OAAO,EAAE,CAAC,yBAAyB,EAAE,MAAM,KAAK,CAAC,IAAI,EAAE,CAAC;YACxD,MAAM,EAAE,QAAQ;YAChB,YAAY,EAAE,cAAc;SAC7B,EACD,OAAO,CAAC,KAAK,CACd,CAAC;IACN,CAAC;CACF,CAAC,CAAC"}
@@ -0,0 +1,14 @@
1
+ export declare const SHELL_THEME_TOKENS: {
2
+ readonly headerHeight: "--pa-shell-header-height";
3
+ readonly sidebarWidth: "--pa-shell-sidebar-width";
4
+ readonly sidebarCollapsedWidth: "--pa-shell-sidebar-collapsed-width";
5
+ readonly contentMaxWidth: "--pa-shell-content-max-width";
6
+ readonly surfaceColor: "--pa-shell-surface-color";
7
+ readonly borderColor: "--pa-shell-border-color";
8
+ readonly textColor: "--pa-shell-text-color";
9
+ readonly mutedTextColor: "--pa-shell-muted-text-color";
10
+ readonly focusColor: "--pa-shell-focus-color";
11
+ };
12
+ export type ShellThemeToken = (typeof SHELL_THEME_TOKENS)[keyof typeof SHELL_THEME_TOKENS];
13
+ export type ShellSlotName = 'header' | 'sidebar' | 'breadcrumb' | 'tabs' | 'default';
14
+ //# sourceMappingURL=theme.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.d.ts","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB;;;;;;;;;;CAUrB,CAAC;AAEX,MAAM,MAAM,eAAe,GACzB,CAAC,OAAO,kBAAkB,CAAC,CAAC,MAAM,OAAO,kBAAkB,CAAC,CAAC;AAE/D,MAAM,MAAM,aAAa,GACrB,QAAQ,GACR,SAAS,GACT,YAAY,GACZ,MAAM,GACN,SAAS,CAAC"}
package/dist/theme.js ADDED
@@ -0,0 +1,12 @@
1
+ export const SHELL_THEME_TOKENS = {
2
+ headerHeight: '--pa-shell-header-height',
3
+ sidebarWidth: '--pa-shell-sidebar-width',
4
+ sidebarCollapsedWidth: '--pa-shell-sidebar-collapsed-width',
5
+ contentMaxWidth: '--pa-shell-content-max-width',
6
+ surfaceColor: '--pa-shell-surface-color',
7
+ borderColor: '--pa-shell-border-color',
8
+ textColor: '--pa-shell-text-color',
9
+ mutedTextColor: '--pa-shell-muted-text-color',
10
+ focusColor: '--pa-shell-focus-color',
11
+ };
12
+ //# sourceMappingURL=theme.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"theme.js","sourceRoot":"","sources":["../src/theme.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,kBAAkB,GAAG;IAChC,YAAY,EAAE,0BAA0B;IACxC,YAAY,EAAE,0BAA0B;IACxC,qBAAqB,EAAE,oCAAoC;IAC3D,eAAe,EAAE,8BAA8B;IAC/C,YAAY,EAAE,0BAA0B;IACxC,WAAW,EAAE,yBAAyB;IACtC,SAAS,EAAE,uBAAuB;IAClC,cAAc,EAAE,6BAA6B;IAC7C,UAAU,EAAE,wBAAwB;CAC5B,CAAC"}
package/package.json ADDED
@@ -0,0 +1,39 @@
1
+ {
2
+ "name": "@peanut-admin/ui-vue",
3
+ "version": "4.0.0-rc.0",
4
+ "description": "Reusable Vue UI components for Peanut Admin",
5
+ "type": "module",
6
+ "license": "Apache-2.0",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/peanut-business/peanut-admin-core-web.git",
10
+ "directory": "packages/ui-vue"
11
+ },
12
+ "files": [
13
+ "dist",
14
+ "LICENSE"
15
+ ],
16
+ "exports": {
17
+ ".": {
18
+ "types": "./dist/index.d.ts",
19
+ "import": "./dist/index.js"
20
+ }
21
+ },
22
+ "types": "./dist/index.d.ts",
23
+ "scripts": {
24
+ "build": "tsc -p tsconfig.json",
25
+ "typecheck": "tsc --noEmit -p tsconfig.json",
26
+ "pack:candidate": "pnpm pack --pack-destination ../../artifacts"
27
+ },
28
+ "peerDependencies": {
29
+ "@peanut-admin/vue": "4.0.0-rc.0",
30
+ "element-plus": "^2.14.3",
31
+ "vue": "^3.4.21"
32
+ },
33
+ "devDependencies": {
34
+ "@peanut-admin/vue": "workspace:*"
35
+ },
36
+ "engines": {
37
+ "node": ">=22.12.0 <23"
38
+ }
39
+ }