@oinone/kunlun-vue-ui-el 6.2.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.
Files changed (46) hide show
  1. package/README.md +1 -0
  2. package/dist/oinone-kunlun-vue-ui-el.css +1 -0
  3. package/dist/oinone-kunlun-vue-ui-el.esm.js +1 -0
  4. package/dist/oinone-kunlun-vue-ui-el.scss +1 -0
  5. package/dist/types/index.d.ts +3 -0
  6. package/dist/types/src/component/index.d.ts +3 -0
  7. package/dist/types/src/component/oio-color-picker/index.d.ts +1 -0
  8. package/dist/types/src/component/oio-color-picker/oio-color-picker.vue.d.ts +122 -0
  9. package/dist/types/src/component/oio-date-time-picker/index.d.ts +4 -0
  10. package/dist/types/src/component/oio-date-time-picker/oio-date-picker.vue.d.ts +184 -0
  11. package/dist/types/src/component/oio-date-time-picker/oio-date-time-picker.vue.d.ts +232 -0
  12. package/dist/types/src/component/oio-date-time-picker/oio-time-picker.vue.d.ts +178 -0
  13. package/dist/types/src/component/oio-date-time-picker/oio-year-picker.vue.d.ts +139 -0
  14. package/dist/types/src/component/oio-modal/index.d.ts +1 -0
  15. package/dist/types/src/component/oio-modal/oio-modal.vue.d.ts +229 -0
  16. package/dist/types/src/index.d.ts +2 -0
  17. package/dist/types/src/theme/index.d.ts +1 -0
  18. package/index.ts +3 -0
  19. package/package.json +36 -0
  20. package/rollup.config.js +12 -0
  21. package/src/component/index.ts +3 -0
  22. package/src/component/oio-color-picker/index.ts +1 -0
  23. package/src/component/oio-color-picker/oio-color-picker.vue +139 -0
  24. package/src/component/oio-color-picker/style/index.scss +125 -0
  25. package/src/component/oio-color-picker/style/parameters.scss +5 -0
  26. package/src/component/oio-date-time-picker/index.ts +4 -0
  27. package/src/component/oio-date-time-picker/oio-date-picker.vue +38 -0
  28. package/src/component/oio-date-time-picker/oio-date-time-picker.vue +78 -0
  29. package/src/component/oio-date-time-picker/oio-time-picker.vue +38 -0
  30. package/src/component/oio-date-time-picker/oio-year-picker.vue +29 -0
  31. package/src/component/oio-date-time-picker/style/index.scss +58 -0
  32. package/src/component/oio-date-time-picker/style/parameters.scss +5 -0
  33. package/src/component/oio-input/style/index.scss +0 -0
  34. package/src/component/oio-input/style/mixin/el-input.scss +13 -0
  35. package/src/component/oio-input/style/parameters.scss +9 -0
  36. package/src/component/oio-modal/index.ts +1 -0
  37. package/src/component/oio-modal/oio-modal.vue +81 -0
  38. package/src/component/oio-modal/style/index.scss +0 -0
  39. package/src/component/oio-modal/style/parameters.scss +5 -0
  40. package/src/index.ts +3 -0
  41. package/src/shim-translate.d.ts +7 -0
  42. package/src/shim-vue.d.ts +6 -0
  43. package/src/style/global-parameters.scss +5 -0
  44. package/src/style/index.scss +3 -0
  45. package/src/style/mixin.scss +86 -0
  46. package/src/theme/index.ts +1 -0
@@ -0,0 +1,178 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ timeFormat: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ valueFormat: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ convertFormat: {
11
+ type: import("vue").PropType<(val: string) => string | undefined>;
12
+ default: (val: string) => any;
13
+ };
14
+ disabledTime: {
15
+ type: import("vue").PropType<((date: any) => {
16
+ disabledHours: number[];
17
+ disabledMinutes: number[];
18
+ disabledSeconds: number[];
19
+ }) | {
20
+ disabledHours?: (() => number[]) | undefined;
21
+ disabledMinutes?: (() => number[]) | undefined;
22
+ disabledSeconds?: (() => number[]) | undefined;
23
+ }>;
24
+ };
25
+ showToday: {
26
+ type: BooleanConstructor;
27
+ default: boolean;
28
+ };
29
+ value: {
30
+ type: (DateConstructor | StringConstructor)[];
31
+ };
32
+ defaultValue: {
33
+ type: (DateConstructor | StringConstructor)[];
34
+ };
35
+ title: {
36
+ type: StringConstructor;
37
+ };
38
+ placeholder: {
39
+ type: StringConstructor;
40
+ };
41
+ readonly: {
42
+ type: BooleanConstructor;
43
+ default: boolean;
44
+ };
45
+ disabled: {
46
+ type: BooleanConstructor;
47
+ default: boolean;
48
+ };
49
+ format: {
50
+ type: StringConstructor;
51
+ };
52
+ allowClear: {
53
+ type: BooleanConstructor;
54
+ default: boolean;
55
+ };
56
+ showTime: {
57
+ type: (BooleanConstructor | ObjectConstructor)[];
58
+ default: undefined;
59
+ };
60
+ open: {
61
+ type: BooleanConstructor;
62
+ default: undefined;
63
+ };
64
+ locale: {
65
+ type: ObjectConstructor;
66
+ };
67
+ dropdownClassName: {
68
+ type: import("vue").PropType<string | string[]>;
69
+ };
70
+ changeOpenValue: {
71
+ type: FunctionConstructor;
72
+ };
73
+ openPanelChange: {
74
+ type: FunctionConstructor;
75
+ };
76
+ closePanelChange: {
77
+ type: FunctionConstructor;
78
+ };
79
+ getTriggerContainer: {
80
+ type: FunctionConstructor;
81
+ };
82
+ }, {
83
+ convertFormat: (val: string) => string | undefined;
84
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
85
+ timeFormat: {
86
+ type: StringConstructor;
87
+ default: string;
88
+ };
89
+ valueFormat: {
90
+ type: StringConstructor;
91
+ default: string;
92
+ };
93
+ convertFormat: {
94
+ type: import("vue").PropType<(val: string) => string | undefined>;
95
+ default: (val: string) => any;
96
+ };
97
+ disabledTime: {
98
+ type: import("vue").PropType<((date: any) => {
99
+ disabledHours: number[];
100
+ disabledMinutes: number[];
101
+ disabledSeconds: number[];
102
+ }) | {
103
+ disabledHours?: (() => number[]) | undefined;
104
+ disabledMinutes?: (() => number[]) | undefined;
105
+ disabledSeconds?: (() => number[]) | undefined;
106
+ }>;
107
+ };
108
+ showToday: {
109
+ type: BooleanConstructor;
110
+ default: boolean;
111
+ };
112
+ value: {
113
+ type: (DateConstructor | StringConstructor)[];
114
+ };
115
+ defaultValue: {
116
+ type: (DateConstructor | StringConstructor)[];
117
+ };
118
+ title: {
119
+ type: StringConstructor;
120
+ };
121
+ placeholder: {
122
+ type: StringConstructor;
123
+ };
124
+ readonly: {
125
+ type: BooleanConstructor;
126
+ default: boolean;
127
+ };
128
+ disabled: {
129
+ type: BooleanConstructor;
130
+ default: boolean;
131
+ };
132
+ format: {
133
+ type: StringConstructor;
134
+ };
135
+ allowClear: {
136
+ type: BooleanConstructor;
137
+ default: boolean;
138
+ };
139
+ showTime: {
140
+ type: (BooleanConstructor | ObjectConstructor)[];
141
+ default: undefined;
142
+ };
143
+ open: {
144
+ type: BooleanConstructor;
145
+ default: undefined;
146
+ };
147
+ locale: {
148
+ type: ObjectConstructor;
149
+ };
150
+ dropdownClassName: {
151
+ type: import("vue").PropType<string | string[]>;
152
+ };
153
+ changeOpenValue: {
154
+ type: FunctionConstructor;
155
+ };
156
+ openPanelChange: {
157
+ type: FunctionConstructor;
158
+ };
159
+ closePanelChange: {
160
+ type: FunctionConstructor;
161
+ };
162
+ getTriggerContainer: {
163
+ type: FunctionConstructor;
164
+ };
165
+ }>> & {
166
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
167
+ }, {
168
+ timeFormat: string;
169
+ valueFormat: string;
170
+ convertFormat: (val: string) => string | undefined;
171
+ showToday: boolean;
172
+ readonly: boolean;
173
+ disabled: boolean;
174
+ allowClear: boolean;
175
+ showTime: boolean | Record<string, any>;
176
+ open: boolean;
177
+ }>;
178
+ export default _default;
@@ -0,0 +1,139 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ format: {
3
+ type: StringConstructor;
4
+ default: string;
5
+ };
6
+ valueFormat: {
7
+ type: StringConstructor;
8
+ default: string;
9
+ };
10
+ showToday: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ value: {
15
+ type: (DateConstructor | StringConstructor)[];
16
+ };
17
+ defaultValue: {
18
+ type: (DateConstructor | StringConstructor)[];
19
+ };
20
+ title: {
21
+ type: StringConstructor;
22
+ };
23
+ placeholder: {
24
+ type: StringConstructor;
25
+ };
26
+ readonly: {
27
+ type: BooleanConstructor;
28
+ default: boolean;
29
+ };
30
+ disabled: {
31
+ type: BooleanConstructor;
32
+ default: boolean;
33
+ };
34
+ allowClear: {
35
+ type: BooleanConstructor;
36
+ default: boolean;
37
+ };
38
+ showTime: {
39
+ type: (BooleanConstructor | ObjectConstructor)[];
40
+ default: undefined;
41
+ };
42
+ open: {
43
+ type: BooleanConstructor;
44
+ default: undefined;
45
+ };
46
+ locale: {
47
+ type: ObjectConstructor;
48
+ };
49
+ dropdownClassName: {
50
+ type: import("vue").PropType<string | string[]>;
51
+ };
52
+ changeOpenValue: {
53
+ type: FunctionConstructor;
54
+ };
55
+ openPanelChange: {
56
+ type: FunctionConstructor;
57
+ };
58
+ closePanelChange: {
59
+ type: FunctionConstructor;
60
+ };
61
+ getTriggerContainer: {
62
+ type: FunctionConstructor;
63
+ };
64
+ }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:value"[], "update:value", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
65
+ format: {
66
+ type: StringConstructor;
67
+ default: string;
68
+ };
69
+ valueFormat: {
70
+ type: StringConstructor;
71
+ default: string;
72
+ };
73
+ showToday: {
74
+ type: BooleanConstructor;
75
+ default: boolean;
76
+ };
77
+ value: {
78
+ type: (DateConstructor | StringConstructor)[];
79
+ };
80
+ defaultValue: {
81
+ type: (DateConstructor | StringConstructor)[];
82
+ };
83
+ title: {
84
+ type: StringConstructor;
85
+ };
86
+ placeholder: {
87
+ type: StringConstructor;
88
+ };
89
+ readonly: {
90
+ type: BooleanConstructor;
91
+ default: boolean;
92
+ };
93
+ disabled: {
94
+ type: BooleanConstructor;
95
+ default: boolean;
96
+ };
97
+ allowClear: {
98
+ type: BooleanConstructor;
99
+ default: boolean;
100
+ };
101
+ showTime: {
102
+ type: (BooleanConstructor | ObjectConstructor)[];
103
+ default: undefined;
104
+ };
105
+ open: {
106
+ type: BooleanConstructor;
107
+ default: undefined;
108
+ };
109
+ locale: {
110
+ type: ObjectConstructor;
111
+ };
112
+ dropdownClassName: {
113
+ type: import("vue").PropType<string | string[]>;
114
+ };
115
+ changeOpenValue: {
116
+ type: FunctionConstructor;
117
+ };
118
+ openPanelChange: {
119
+ type: FunctionConstructor;
120
+ };
121
+ closePanelChange: {
122
+ type: FunctionConstructor;
123
+ };
124
+ getTriggerContainer: {
125
+ type: FunctionConstructor;
126
+ };
127
+ }>> & {
128
+ "onUpdate:value"?: ((...args: any[]) => any) | undefined;
129
+ }, {
130
+ format: string;
131
+ valueFormat: string;
132
+ showToday: boolean;
133
+ readonly: boolean;
134
+ disabled: boolean;
135
+ allowClear: boolean;
136
+ showTime: boolean | Record<string, any>;
137
+ open: boolean;
138
+ }>;
139
+ export default _default;
@@ -0,0 +1 @@
1
+ export { default as OioModal } from './oio-modal.vue';
@@ -0,0 +1,229 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ data: {
3
+ type: ObjectConstructor;
4
+ default: {};
5
+ };
6
+ copy: {
7
+ type: BooleanConstructor;
8
+ default: boolean;
9
+ };
10
+ deep: {
11
+ type: BooleanConstructor;
12
+ default: boolean;
13
+ };
14
+ loading: {
15
+ type: BooleanConstructor;
16
+ default: undefined;
17
+ };
18
+ confirmLoading: {
19
+ type: BooleanConstructor;
20
+ default: undefined;
21
+ };
22
+ draggable: {
23
+ type: BooleanConstructor;
24
+ default: boolean;
25
+ };
26
+ enterText: {
27
+ type: StringConstructor;
28
+ default: string;
29
+ };
30
+ cancelText: {
31
+ type: StringConstructor;
32
+ default: string;
33
+ };
34
+ visible: {
35
+ type: BooleanConstructor;
36
+ default: undefined;
37
+ };
38
+ closable: {
39
+ type: BooleanConstructor;
40
+ default: undefined;
41
+ };
42
+ keyboard: {
43
+ type: BooleanConstructor;
44
+ default: undefined;
45
+ };
46
+ destroyOnClose: {
47
+ type: BooleanConstructor;
48
+ default: undefined;
49
+ };
50
+ getTriggerContainer: {
51
+ type: import("vue").PropType<(triggerNode: Node | HTMLElement) => Node | HTMLElement>;
52
+ };
53
+ enterCallback: {
54
+ type: import("vue").PropType<(event: PointerEvent, data: object) => import("@oinone/kunlun-shared").ReturnPromise<boolean | import("@oinone/kunlun-shared").ReturnVoid, boolean | import("@oinone/kunlun-shared").ReturnVoid>>;
55
+ };
56
+ cancelCallback: {
57
+ type: import("vue").PropType<(event: PointerEvent, data: object) => import("@oinone/kunlun-shared").ReturnPromise<boolean | import("@oinone/kunlun-shared").ReturnVoid, boolean | import("@oinone/kunlun-shared").ReturnVoid>>;
58
+ };
59
+ title: {
60
+ type: StringConstructor;
61
+ default: string;
62
+ };
63
+ help: {
64
+ type: StringConstructor;
65
+ };
66
+ width: {
67
+ type: import("vue").PropType<import("@oinone/kunlun-vue-ui-common").ModalWidthType>;
68
+ default: import("@oinone/kunlun-vue-ui-common").ModalWidth;
69
+ };
70
+ height: {
71
+ type: import("vue").PropType<import("@oinone/kunlun-vue-ui-common").ModalWidthType>;
72
+ };
73
+ headerInvisible: {
74
+ type: BooleanConstructor;
75
+ default: undefined;
76
+ };
77
+ footerInvisible: {
78
+ type: BooleanConstructor;
79
+ default: undefined;
80
+ };
81
+ mask: {
82
+ type: BooleanConstructor;
83
+ default: undefined;
84
+ };
85
+ maskClosable: {
86
+ type: BooleanConstructor;
87
+ default: undefined;
88
+ };
89
+ zIndex: {
90
+ type: NumberConstructor;
91
+ default: number;
92
+ };
93
+ wrapperClassName: {
94
+ type: import("vue").PropType<string | string[]>;
95
+ };
96
+ wrapperProps: {
97
+ type: ObjectConstructor;
98
+ };
99
+ }, {
100
+ width: import("vue").ComputedRef<any>;
101
+ widthClassSuffix: import("vue").ComputedRef<string | undefined>;
102
+ heightClassSuffix: import("vue").ComputedRef<string | undefined>;
103
+ customHeightClassSuffix: import("vue").ComputedRef<"custom" | null>;
104
+ heightPx: import("vue").ComputedRef<string | undefined>;
105
+ data: import("vue").Ref<object>;
106
+ enter: (event: PointerEvent) => void;
107
+ cancel: (event: PointerEvent) => void;
108
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:visible"[], "update:visible", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
109
+ data: {
110
+ type: ObjectConstructor;
111
+ default: {};
112
+ };
113
+ copy: {
114
+ type: BooleanConstructor;
115
+ default: boolean;
116
+ };
117
+ deep: {
118
+ type: BooleanConstructor;
119
+ default: boolean;
120
+ };
121
+ loading: {
122
+ type: BooleanConstructor;
123
+ default: undefined;
124
+ };
125
+ confirmLoading: {
126
+ type: BooleanConstructor;
127
+ default: undefined;
128
+ };
129
+ draggable: {
130
+ type: BooleanConstructor;
131
+ default: boolean;
132
+ };
133
+ enterText: {
134
+ type: StringConstructor;
135
+ default: string;
136
+ };
137
+ cancelText: {
138
+ type: StringConstructor;
139
+ default: string;
140
+ };
141
+ visible: {
142
+ type: BooleanConstructor;
143
+ default: undefined;
144
+ };
145
+ closable: {
146
+ type: BooleanConstructor;
147
+ default: undefined;
148
+ };
149
+ keyboard: {
150
+ type: BooleanConstructor;
151
+ default: undefined;
152
+ };
153
+ destroyOnClose: {
154
+ type: BooleanConstructor;
155
+ default: undefined;
156
+ };
157
+ getTriggerContainer: {
158
+ type: import("vue").PropType<(triggerNode: Node | HTMLElement) => Node | HTMLElement>;
159
+ };
160
+ enterCallback: {
161
+ type: import("vue").PropType<(event: PointerEvent, data: object) => import("@oinone/kunlun-shared").ReturnPromise<boolean | import("@oinone/kunlun-shared").ReturnVoid, boolean | import("@oinone/kunlun-shared").ReturnVoid>>;
162
+ };
163
+ cancelCallback: {
164
+ type: import("vue").PropType<(event: PointerEvent, data: object) => import("@oinone/kunlun-shared").ReturnPromise<boolean | import("@oinone/kunlun-shared").ReturnVoid, boolean | import("@oinone/kunlun-shared").ReturnVoid>>;
165
+ };
166
+ title: {
167
+ type: StringConstructor;
168
+ default: string;
169
+ };
170
+ help: {
171
+ type: StringConstructor;
172
+ };
173
+ width: {
174
+ type: import("vue").PropType<import("@oinone/kunlun-vue-ui-common").ModalWidthType>;
175
+ default: import("@oinone/kunlun-vue-ui-common").ModalWidth;
176
+ };
177
+ height: {
178
+ type: import("vue").PropType<import("@oinone/kunlun-vue-ui-common").ModalWidthType>;
179
+ };
180
+ headerInvisible: {
181
+ type: BooleanConstructor;
182
+ default: undefined;
183
+ };
184
+ footerInvisible: {
185
+ type: BooleanConstructor;
186
+ default: undefined;
187
+ };
188
+ mask: {
189
+ type: BooleanConstructor;
190
+ default: undefined;
191
+ };
192
+ maskClosable: {
193
+ type: BooleanConstructor;
194
+ default: undefined;
195
+ };
196
+ zIndex: {
197
+ type: NumberConstructor;
198
+ default: number;
199
+ };
200
+ wrapperClassName: {
201
+ type: import("vue").PropType<string | string[]>;
202
+ };
203
+ wrapperProps: {
204
+ type: ObjectConstructor;
205
+ };
206
+ }>> & {
207
+ "onUpdate:visible"?: ((...args: any[]) => any) | undefined;
208
+ }, {
209
+ destroyOnClose: boolean;
210
+ width: import("@oinone/kunlun-vue-ui-common").ModalWidthType;
211
+ zIndex: number;
212
+ draggable: boolean;
213
+ title: string;
214
+ loading: boolean;
215
+ data: Record<string, any>;
216
+ deep: boolean;
217
+ visible: boolean;
218
+ copy: boolean;
219
+ confirmLoading: boolean;
220
+ enterText: string;
221
+ cancelText: string;
222
+ closable: boolean;
223
+ keyboard: boolean;
224
+ headerInvisible: boolean;
225
+ footerInvisible: boolean;
226
+ mask: boolean;
227
+ maskClosable: boolean;
228
+ }>;
229
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import './style/index.scss';
2
+ export * from './component';
@@ -0,0 +1 @@
1
+ export declare const DEFAULT_PREFIX = "oio";
package/index.ts ADDED
@@ -0,0 +1,3 @@
1
+ export * from '@oinone/kunlun-shared';
2
+ export * from '@oinone/kunlun-vue-ui-common';
3
+ export * from './src';
package/package.json ADDED
@@ -0,0 +1,36 @@
1
+ {
2
+ "name": "@oinone/kunlun-vue-ui-el",
3
+ "version": "6.2.0",
4
+ "main": "index.ts",
5
+ "scripts": {
6
+ "prebuild": "rimraf dist",
7
+ "build": "rollup -c && npm run build-css",
8
+ "build-css": "sass --style compressed --no-source-map ./dist/oinone-kunlun-vue-ui-el.scss ./dist/oinone-kunlun-vue-ui-el.css",
9
+ "dist": "npm run prepublishOnly",
10
+ "index": "npm run postpublish",
11
+ "x-prepublishOnly": "node ../../scripts/prepublish-only.js",
12
+ "x-postpublish": "node ../../scripts/postpublish.js",
13
+ "doc": "typedoc --out docs src/index.ts"
14
+ },
15
+ "dependencies": {
16
+ "@oinone/kunlun-vue-ui-common": "6.2.0"
17
+ },
18
+ "devDependencies": {
19
+ "@element-plus/icons-vue": "2.0.9",
20
+ "@oinone/kunlun-shared": "~6.2.0",
21
+ "@types/lodash": "4.14.182",
22
+ "@types/lodash-es": "4.17.6",
23
+ "element-plus": "2.2.17",
24
+ "lodash": "4.17.21",
25
+ "lodash-es": "4.17.21",
26
+ "sass": "1.44.0",
27
+ "sass-loader": "10.1.1",
28
+ "vue": "3.2.40"
29
+ },
30
+ "peerDependencies": {
31
+ "@element-plus/icons-vue": ">=2.0.9",
32
+ "element-plus": ">=2.2.17",
33
+ "vue": ">=3.2.40"
34
+ },
35
+ "gitHead": "b65bbf1d649da1017810c5608473d5daa1a41f94"
36
+ }
@@ -0,0 +1,12 @@
1
+ import pkg from './package.json';
2
+ import rollupConfig from '../../scripts/build.config.js';
3
+
4
+ export default rollupConfig(pkg.name, [
5
+ '@element-plus/icons-vue',
6
+ '@oinone/kunlun-shared',
7
+ '@oinone/kunlun-vue-ui-common',
8
+ 'element-plus',
9
+ 'lodash',
10
+ 'lodash-es',
11
+ 'vue'
12
+ ]);
@@ -0,0 +1,3 @@
1
+ export * from './oio-color-picker';
2
+ export * from './oio-date-time-picker';
3
+ export * from './oio-modal';
@@ -0,0 +1 @@
1
+ export { default as OioColorPicker } from './oio-color-picker.vue';