@coreui/vue-pro 5.0.0-rc.3 → 5.1.0-alpha.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/README.md +1 -1
- package/dist/cjs/components/badge/CBadge.d.ts +2 -2
- package/dist/cjs/components/badge/CBadge.js +1 -1
- package/dist/cjs/components/calendar/CCalendar.d.ts +6 -6
- package/dist/cjs/components/calendar/CCalendar.js +3 -3
- package/dist/cjs/components/card/CCard.d.ts +2 -2
- package/dist/cjs/components/card/CCard.js +1 -1
- package/dist/cjs/components/conditional-teleport/CConditionalTeleport.d.ts +2 -2
- package/dist/cjs/components/conditional-teleport/CConditionalTeleport.js +1 -1
- package/dist/cjs/components/date-picker/CDatePicker.d.ts +12 -12
- package/dist/cjs/components/date-picker/CDatePicker.js +6 -6
- package/dist/cjs/components/date-range-picker/CDateRangePicker.d.ts +12 -12
- package/dist/cjs/components/date-range-picker/CDateRangePicker.js +6 -6
- package/dist/cjs/components/dropdown/CDropdown.d.ts +4 -4
- package/dist/cjs/components/dropdown/CDropdown.js +2 -2
- package/dist/cjs/components/dropdown/CDropdownToggle.d.ts +2 -2
- package/dist/cjs/components/dropdown/CDropdownToggle.js +1 -1
- package/dist/cjs/components/index.d.ts +1 -0
- package/dist/cjs/components/index.js +26 -22
- package/dist/cjs/components/index.js.map +1 -1
- package/dist/cjs/components/modal/CModal.d.ts +2 -2
- package/dist/cjs/components/modal/CModal.js +1 -1
- package/dist/cjs/components/popover/CPopover.d.ts +2 -2
- package/dist/cjs/components/popover/CPopover.js +1 -1
- package/dist/cjs/components/progress/CProgress.d.ts +2 -2
- package/dist/cjs/components/progress/CProgress.js +1 -1
- package/dist/cjs/components/rating/CRating.d.ts +132 -0
- package/dist/cjs/components/rating/CRating.js +240 -0
- package/dist/cjs/components/rating/CRating.js.map +1 -0
- package/dist/cjs/components/rating/index.d.ts +6 -0
- package/dist/cjs/components/rating/index.js +13 -0
- package/dist/cjs/components/rating/index.js.map +1 -0
- package/dist/cjs/components/smart-table/CSmartTableBody.js +2 -1
- package/dist/cjs/components/smart-table/CSmartTableBody.js.map +1 -1
- package/dist/cjs/components/time-picker/CTimePicker.js +3 -3
- package/dist/cjs/components/tooltip/CTooltip.d.ts +2 -2
- package/dist/cjs/components/tooltip/CTooltip.js +1 -1
- package/dist/cjs/index.js +32 -28
- package/dist/cjs/index.js.map +1 -1
- package/dist/esm/components/badge/CBadge.d.ts +2 -2
- package/dist/esm/components/badge/CBadge.js +1 -1
- package/dist/esm/components/calendar/CCalendar.d.ts +6 -6
- package/dist/esm/components/calendar/CCalendar.js +3 -3
- package/dist/esm/components/card/CCard.d.ts +2 -2
- package/dist/esm/components/card/CCard.js +1 -1
- package/dist/esm/components/conditional-teleport/CConditionalTeleport.d.ts +2 -2
- package/dist/esm/components/conditional-teleport/CConditionalTeleport.js +1 -1
- package/dist/esm/components/date-picker/CDatePicker.d.ts +12 -12
- package/dist/esm/components/date-picker/CDatePicker.js +6 -6
- package/dist/esm/components/date-range-picker/CDateRangePicker.d.ts +12 -12
- package/dist/esm/components/date-range-picker/CDateRangePicker.js +6 -6
- package/dist/esm/components/dropdown/CDropdown.d.ts +4 -4
- package/dist/esm/components/dropdown/CDropdown.js +2 -2
- package/dist/esm/components/dropdown/CDropdownToggle.d.ts +2 -2
- package/dist/esm/components/dropdown/CDropdownToggle.js +1 -1
- package/dist/esm/components/index.d.ts +1 -0
- package/dist/esm/components/index.js +2 -0
- package/dist/esm/components/index.js.map +1 -1
- package/dist/esm/components/modal/CModal.d.ts +2 -2
- package/dist/esm/components/modal/CModal.js +1 -1
- package/dist/esm/components/popover/CPopover.d.ts +2 -2
- package/dist/esm/components/popover/CPopover.js +1 -1
- package/dist/esm/components/progress/CProgress.d.ts +2 -2
- package/dist/esm/components/progress/CProgress.js +1 -1
- package/dist/esm/components/rating/CRating.d.ts +132 -0
- package/dist/esm/components/rating/CRating.js +238 -0
- package/dist/esm/components/rating/CRating.js.map +1 -0
- package/dist/esm/components/rating/index.d.ts +6 -0
- package/dist/esm/components/rating/index.js +10 -0
- package/dist/esm/components/rating/index.js.map +1 -0
- package/dist/esm/components/smart-table/CSmartTableBody.js +3 -2
- package/dist/esm/components/smart-table/CSmartTableBody.js.map +1 -1
- package/dist/esm/components/time-picker/CTimePicker.js +3 -3
- package/dist/esm/components/tooltip/CTooltip.d.ts +2 -2
- package/dist/esm/components/tooltip/CTooltip.js +1 -1
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/package.json +3 -3
- package/src/components/badge/CBadge.ts +1 -1
- package/src/components/calendar/CCalendar.ts +3 -3
- package/src/components/card/CCard.ts +1 -1
- package/src/components/conditional-teleport/CConditionalTeleport.ts +1 -1
- package/src/components/date-picker/CDatePicker.ts +6 -6
- package/src/components/date-range-picker/CDateRangePicker.ts +6 -6
- package/src/components/dropdown/CDropdown.ts +2 -2
- package/src/components/dropdown/CDropdownToggle.ts +1 -1
- package/src/components/index.ts +1 -0
- package/src/components/modal/CModal.ts +1 -1
- package/src/components/popover/CPopover.ts +1 -1
- package/src/components/progress/CProgress.ts +1 -1
- package/src/components/rating/CRating.ts +288 -0
- package/src/components/rating/index.ts +10 -0
- package/src/components/smart-table/CSmartTableBody.ts +3 -1
- package/src/components/time-picker/CTimePicker.ts +3 -3
- package/src/components/tooltip/CTooltip.ts +1 -1
|
@@ -14,7 +14,7 @@ declare const CPopover: import("vue").DefineComponent<{
|
|
|
14
14
|
/**
|
|
15
15
|
* Appends the vue popover to a specific element. You can pass an HTML element or function that returns a single element. By default `document.body`.
|
|
16
16
|
*
|
|
17
|
-
* @since v5.0.0
|
|
17
|
+
* @since v5.0.0
|
|
18
18
|
*/
|
|
19
19
|
container: {
|
|
20
20
|
type: PropType<string | HTMLElement | (() => HTMLElement)>;
|
|
@@ -96,7 +96,7 @@ declare const CPopover: import("vue").DefineComponent<{
|
|
|
96
96
|
/**
|
|
97
97
|
* Appends the vue popover to a specific element. You can pass an HTML element or function that returns a single element. By default `document.body`.
|
|
98
98
|
*
|
|
99
|
-
* @since v5.0.0
|
|
99
|
+
* @since v5.0.0
|
|
100
100
|
*/
|
|
101
101
|
container: {
|
|
102
102
|
type: PropType<string | HTMLElement | (() => HTMLElement)>;
|
|
@@ -23,7 +23,7 @@ const CPopover = vue.defineComponent({
|
|
|
23
23
|
/**
|
|
24
24
|
* Appends the vue popover to a specific element. You can pass an HTML element or function that returns a single element. By default `document.body`.
|
|
25
25
|
*
|
|
26
|
-
* @since v5.0.0
|
|
26
|
+
* @since v5.0.0
|
|
27
27
|
*/
|
|
28
28
|
container: {
|
|
29
29
|
type: [Object, String],
|
|
@@ -19,7 +19,7 @@ declare const CProgress: import("vue").DefineComponent<{
|
|
|
19
19
|
/**
|
|
20
20
|
* A string of all className you want applied to the <CProgressBar/> component.
|
|
21
21
|
*
|
|
22
|
-
* @since 5.0.0
|
|
22
|
+
* @since 5.0.0
|
|
23
23
|
*/
|
|
24
24
|
progressBarClassName: StringConstructor;
|
|
25
25
|
/**
|
|
@@ -69,7 +69,7 @@ declare const CProgress: import("vue").DefineComponent<{
|
|
|
69
69
|
/**
|
|
70
70
|
* A string of all className you want applied to the <CProgressBar/> component.
|
|
71
71
|
*
|
|
72
|
-
* @since 5.0.0
|
|
72
|
+
* @since 5.0.0
|
|
73
73
|
*/
|
|
74
74
|
progressBarClassName: StringConstructor;
|
|
75
75
|
/**
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const CRating: import("vue").DefineComponent<{
|
|
3
|
+
/**
|
|
4
|
+
* Enables the clearing upon clicking the selected item again.
|
|
5
|
+
*/
|
|
6
|
+
allowClear: BooleanConstructor;
|
|
7
|
+
/**
|
|
8
|
+
* Toggle the disabled state for the component.
|
|
9
|
+
*/
|
|
10
|
+
disabled: BooleanConstructor;
|
|
11
|
+
/**
|
|
12
|
+
* If enabled, only the currently selected icon will be visibly highlighted.
|
|
13
|
+
*/
|
|
14
|
+
highlightOnlySelected: BooleanConstructor;
|
|
15
|
+
/**
|
|
16
|
+
* Specifies the total number of stars to be displayed in the star rating component. This property determines the scale of the rating, such as out of 5 stars, 10 stars, etc.
|
|
17
|
+
*/
|
|
18
|
+
itemCount: {
|
|
19
|
+
type: NumberConstructor;
|
|
20
|
+
default: number;
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* The default name for a value passed using v-model.
|
|
24
|
+
*/
|
|
25
|
+
modelValue: NumberConstructor;
|
|
26
|
+
/**
|
|
27
|
+
* The name attribute of the radio input elements.
|
|
28
|
+
*/
|
|
29
|
+
name: StringConstructor;
|
|
30
|
+
/**
|
|
31
|
+
* Minimum increment value change allowed.
|
|
32
|
+
*/
|
|
33
|
+
precision: {
|
|
34
|
+
type: NumberConstructor;
|
|
35
|
+
default: number;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Toggle the readonly state for the component.
|
|
39
|
+
*/
|
|
40
|
+
readOnly: BooleanConstructor;
|
|
41
|
+
/**
|
|
42
|
+
* Size the component small, large, or custom if you define custom icons with custom height.
|
|
43
|
+
*
|
|
44
|
+
* @values 'sm', 'lg', 'custom'
|
|
45
|
+
*/
|
|
46
|
+
size: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
validator: (value: string) => boolean;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* Enable tooltips with default values or set specific labels for each icon.
|
|
52
|
+
*/
|
|
53
|
+
tooltips: {
|
|
54
|
+
type: PropType<boolean | string[]>;
|
|
55
|
+
};
|
|
56
|
+
/**
|
|
57
|
+
* The `value` attribute of component.
|
|
58
|
+
* */
|
|
59
|
+
value: NumberConstructor;
|
|
60
|
+
}, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
61
|
+
[key: string]: any;
|
|
62
|
+
}>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "hover" | "update:modelValue")[], "change" | "hover" | "update:modelValue", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
63
|
+
/**
|
|
64
|
+
* Enables the clearing upon clicking the selected item again.
|
|
65
|
+
*/
|
|
66
|
+
allowClear: BooleanConstructor;
|
|
67
|
+
/**
|
|
68
|
+
* Toggle the disabled state for the component.
|
|
69
|
+
*/
|
|
70
|
+
disabled: BooleanConstructor;
|
|
71
|
+
/**
|
|
72
|
+
* If enabled, only the currently selected icon will be visibly highlighted.
|
|
73
|
+
*/
|
|
74
|
+
highlightOnlySelected: BooleanConstructor;
|
|
75
|
+
/**
|
|
76
|
+
* Specifies the total number of stars to be displayed in the star rating component. This property determines the scale of the rating, such as out of 5 stars, 10 stars, etc.
|
|
77
|
+
*/
|
|
78
|
+
itemCount: {
|
|
79
|
+
type: NumberConstructor;
|
|
80
|
+
default: number;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* The default name for a value passed using v-model.
|
|
84
|
+
*/
|
|
85
|
+
modelValue: NumberConstructor;
|
|
86
|
+
/**
|
|
87
|
+
* The name attribute of the radio input elements.
|
|
88
|
+
*/
|
|
89
|
+
name: StringConstructor;
|
|
90
|
+
/**
|
|
91
|
+
* Minimum increment value change allowed.
|
|
92
|
+
*/
|
|
93
|
+
precision: {
|
|
94
|
+
type: NumberConstructor;
|
|
95
|
+
default: number;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* Toggle the readonly state for the component.
|
|
99
|
+
*/
|
|
100
|
+
readOnly: BooleanConstructor;
|
|
101
|
+
/**
|
|
102
|
+
* Size the component small, large, or custom if you define custom icons with custom height.
|
|
103
|
+
*
|
|
104
|
+
* @values 'sm', 'lg', 'custom'
|
|
105
|
+
*/
|
|
106
|
+
size: {
|
|
107
|
+
type: StringConstructor;
|
|
108
|
+
validator: (value: string) => boolean;
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* Enable tooltips with default values or set specific labels for each icon.
|
|
112
|
+
*/
|
|
113
|
+
tooltips: {
|
|
114
|
+
type: PropType<boolean | string[]>;
|
|
115
|
+
};
|
|
116
|
+
/**
|
|
117
|
+
* The `value` attribute of component.
|
|
118
|
+
* */
|
|
119
|
+
value: NumberConstructor;
|
|
120
|
+
}>> & {
|
|
121
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
122
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
123
|
+
onHover?: ((...args: any[]) => any) | undefined;
|
|
124
|
+
}, {
|
|
125
|
+
disabled: boolean;
|
|
126
|
+
allowClear: boolean;
|
|
127
|
+
highlightOnlySelected: boolean;
|
|
128
|
+
itemCount: number;
|
|
129
|
+
precision: number;
|
|
130
|
+
readOnly: boolean;
|
|
131
|
+
}, {}>;
|
|
132
|
+
export { CRating };
|
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vue = require('vue');
|
|
4
|
+
var vCTooltip = require('../../directives/v-c-tooltip.js');
|
|
5
|
+
|
|
6
|
+
const CRating = vue.defineComponent({
|
|
7
|
+
name: 'CRating',
|
|
8
|
+
props: {
|
|
9
|
+
/**
|
|
10
|
+
* Enables the clearing upon clicking the selected item again.
|
|
11
|
+
*/
|
|
12
|
+
allowClear: Boolean,
|
|
13
|
+
/**
|
|
14
|
+
* Toggle the disabled state for the component.
|
|
15
|
+
*/
|
|
16
|
+
disabled: Boolean,
|
|
17
|
+
/**
|
|
18
|
+
* If enabled, only the currently selected icon will be visibly highlighted.
|
|
19
|
+
*/
|
|
20
|
+
highlightOnlySelected: Boolean,
|
|
21
|
+
/**
|
|
22
|
+
* Specifies the total number of stars to be displayed in the star rating component. This property determines the scale of the rating, such as out of 5 stars, 10 stars, etc.
|
|
23
|
+
*/
|
|
24
|
+
itemCount: {
|
|
25
|
+
type: Number,
|
|
26
|
+
default: 5,
|
|
27
|
+
},
|
|
28
|
+
/**
|
|
29
|
+
* The default name for a value passed using v-model.
|
|
30
|
+
*/
|
|
31
|
+
modelValue: Number,
|
|
32
|
+
/**
|
|
33
|
+
* The name attribute of the radio input elements.
|
|
34
|
+
*/
|
|
35
|
+
name: String,
|
|
36
|
+
/**
|
|
37
|
+
* Minimum increment value change allowed.
|
|
38
|
+
*/
|
|
39
|
+
precision: {
|
|
40
|
+
type: Number,
|
|
41
|
+
default: 1,
|
|
42
|
+
},
|
|
43
|
+
/**
|
|
44
|
+
* Toggle the readonly state for the component.
|
|
45
|
+
*/
|
|
46
|
+
readOnly: Boolean,
|
|
47
|
+
/**
|
|
48
|
+
* Size the component small, large, or custom if you define custom icons with custom height.
|
|
49
|
+
*
|
|
50
|
+
* @values 'sm', 'lg', 'custom'
|
|
51
|
+
*/
|
|
52
|
+
size: {
|
|
53
|
+
type: String,
|
|
54
|
+
validator: (value) => {
|
|
55
|
+
return ['sm', 'lg', 'custom'].includes(value);
|
|
56
|
+
},
|
|
57
|
+
},
|
|
58
|
+
/**
|
|
59
|
+
* Enable tooltips with default values or set specific labels for each icon.
|
|
60
|
+
*/
|
|
61
|
+
tooltips: {
|
|
62
|
+
type: [Boolean, Array],
|
|
63
|
+
},
|
|
64
|
+
/**
|
|
65
|
+
* The `value` attribute of component.
|
|
66
|
+
* */
|
|
67
|
+
value: Number,
|
|
68
|
+
},
|
|
69
|
+
emits: [
|
|
70
|
+
/**
|
|
71
|
+
* Execute a function when a user changes the selected element.
|
|
72
|
+
*
|
|
73
|
+
* @property {number | null} value
|
|
74
|
+
*/
|
|
75
|
+
'change',
|
|
76
|
+
/**
|
|
77
|
+
* Execute a function when a user hover the element.
|
|
78
|
+
*
|
|
79
|
+
* @property {number | null} value
|
|
80
|
+
*/
|
|
81
|
+
'hover',
|
|
82
|
+
/**
|
|
83
|
+
* Emit the new value whenever there’s a change event.
|
|
84
|
+
*/
|
|
85
|
+
'update:modelValue',
|
|
86
|
+
],
|
|
87
|
+
setup(props, { slots, emit }) {
|
|
88
|
+
const cleared = vue.ref(false);
|
|
89
|
+
const currentValue = vue.ref((props.modelValue || props.value) ?? null);
|
|
90
|
+
const hoverValue = vue.ref(null);
|
|
91
|
+
const tooltipValue = vue.ref(null);
|
|
92
|
+
const name = props.name || `name${Math.floor(Math.random() * 1_000_000)}`;
|
|
93
|
+
const uid = `id${Math.floor(Math.random() * 1_000_000)}`;
|
|
94
|
+
vue.watch(() => props.value, () => {
|
|
95
|
+
if (props.value !== undefined) {
|
|
96
|
+
currentValue.value = props.value;
|
|
97
|
+
}
|
|
98
|
+
});
|
|
99
|
+
vue.watch(() => props.modelValue, () => {
|
|
100
|
+
if (props.modelValue !== undefined) {
|
|
101
|
+
currentValue.value = props.modelValue;
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
const handleMouseEnter = (value) => {
|
|
105
|
+
if (props.disabled || props.readOnly) {
|
|
106
|
+
return;
|
|
107
|
+
}
|
|
108
|
+
emit('hover', value);
|
|
109
|
+
hoverValue.value = value;
|
|
110
|
+
tooltipValue.value = value;
|
|
111
|
+
};
|
|
112
|
+
const handleMouseLeave = () => {
|
|
113
|
+
if (props.disabled || props.readOnly) {
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
emit('hover', null);
|
|
117
|
+
hoverValue.value = null;
|
|
118
|
+
};
|
|
119
|
+
const handleOnChange = (value) => {
|
|
120
|
+
if (props.disabled || props.readOnly) {
|
|
121
|
+
return;
|
|
122
|
+
}
|
|
123
|
+
if (cleared.value) {
|
|
124
|
+
cleared.value = false;
|
|
125
|
+
return;
|
|
126
|
+
}
|
|
127
|
+
currentValue.value = value;
|
|
128
|
+
emit('change', value);
|
|
129
|
+
emit('update:modelValue', value);
|
|
130
|
+
};
|
|
131
|
+
const handleOnClick = (value) => {
|
|
132
|
+
if (props.disabled || props.readOnly) {
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
if (props.allowClear && value === currentValue.value) {
|
|
136
|
+
emit('change', value);
|
|
137
|
+
cleared.value = true;
|
|
138
|
+
currentValue.value = null;
|
|
139
|
+
hoverValue.value = null;
|
|
140
|
+
}
|
|
141
|
+
};
|
|
142
|
+
return () => vue.h('div', {
|
|
143
|
+
class: [
|
|
144
|
+
'rating',
|
|
145
|
+
{
|
|
146
|
+
[`rating-${props.size}`]: props.size,
|
|
147
|
+
disabled: props.disabled,
|
|
148
|
+
readonly: props.readOnly,
|
|
149
|
+
},
|
|
150
|
+
],
|
|
151
|
+
role: 'radiogroup',
|
|
152
|
+
}, [
|
|
153
|
+
Array.from({ length: props.itemCount }, (_, index) => {
|
|
154
|
+
const numberOfRadios = 1 / props.precision;
|
|
155
|
+
return vue.withDirectives(vue.h('div', {
|
|
156
|
+
class: 'rating-item',
|
|
157
|
+
}, [
|
|
158
|
+
Array.from({ length: numberOfRadios }, (_, _index) => {
|
|
159
|
+
const isNotLastItem = _index + 1 < numberOfRadios;
|
|
160
|
+
const value = numberOfRadios === 1
|
|
161
|
+
? index + 1
|
|
162
|
+
: index + (_index + 1) * (1 * props.precision);
|
|
163
|
+
const id = `${uid}${value}`;
|
|
164
|
+
const isItemChecked = () => value === currentValue.value;
|
|
165
|
+
const isItemActive = () => {
|
|
166
|
+
if (props.highlightOnlySelected
|
|
167
|
+
? hoverValue.value === value
|
|
168
|
+
: hoverValue.value && hoverValue.value >= value) {
|
|
169
|
+
return true;
|
|
170
|
+
}
|
|
171
|
+
if (hoverValue.value === null &&
|
|
172
|
+
(props.highlightOnlySelected
|
|
173
|
+
? isItemChecked()
|
|
174
|
+
: currentValue.value && currentValue.value >= value)) {
|
|
175
|
+
return true;
|
|
176
|
+
}
|
|
177
|
+
return false;
|
|
178
|
+
};
|
|
179
|
+
return [
|
|
180
|
+
vue.h('label', {
|
|
181
|
+
class: [
|
|
182
|
+
'rating-item-label',
|
|
183
|
+
{
|
|
184
|
+
active: isItemActive(),
|
|
185
|
+
},
|
|
186
|
+
],
|
|
187
|
+
for: id,
|
|
188
|
+
onClick: () => handleOnClick(value),
|
|
189
|
+
onMouseenter: () => handleMouseEnter(value),
|
|
190
|
+
onMouseleave: () => handleMouseLeave(),
|
|
191
|
+
...(isNotLastItem && {
|
|
192
|
+
style: {
|
|
193
|
+
zIndex: 1 / props.precision - _index,
|
|
194
|
+
position: 'absolute',
|
|
195
|
+
width: `${props.precision * (_index + 1) * 100}%`,
|
|
196
|
+
overflow: 'hidden',
|
|
197
|
+
opacity: 0,
|
|
198
|
+
},
|
|
199
|
+
}),
|
|
200
|
+
}, {
|
|
201
|
+
default: () => [
|
|
202
|
+
slots.icon
|
|
203
|
+
? vue.h('div', { class: 'rating-item-custom-icon' }, slots.icon({ value: index + 1 }))
|
|
204
|
+
: vue.h('div', { class: 'rating-item-icon' }),
|
|
205
|
+
slots.activeIcon &&
|
|
206
|
+
vue.h('div', { class: 'rating-item-custom-icon-active' }, slots.activeIcon({ value: index + 1 })),
|
|
207
|
+
],
|
|
208
|
+
}),
|
|
209
|
+
vue.h('input', {
|
|
210
|
+
checked: isItemChecked(),
|
|
211
|
+
class: 'rating-item-input',
|
|
212
|
+
disabled: props.disabled || props.readOnly,
|
|
213
|
+
id: id,
|
|
214
|
+
name: name,
|
|
215
|
+
onBlur: () => handleMouseLeave(),
|
|
216
|
+
onChange: () => handleOnChange(value),
|
|
217
|
+
onFocus: () => handleMouseEnter(value),
|
|
218
|
+
type: 'radio',
|
|
219
|
+
value: value,
|
|
220
|
+
}),
|
|
221
|
+
];
|
|
222
|
+
}),
|
|
223
|
+
]), props.tooltips
|
|
224
|
+
? [
|
|
225
|
+
[
|
|
226
|
+
vCTooltip.default,
|
|
227
|
+
{
|
|
228
|
+
content: Array.isArray(props.tooltips) ? props.tooltips[index] : index + 1,
|
|
229
|
+
placement: 'top',
|
|
230
|
+
},
|
|
231
|
+
],
|
|
232
|
+
]
|
|
233
|
+
: []);
|
|
234
|
+
}),
|
|
235
|
+
]);
|
|
236
|
+
},
|
|
237
|
+
});
|
|
238
|
+
|
|
239
|
+
exports.CRating = CRating;
|
|
240
|
+
//# sourceMappingURL=CRating.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CRating.js","sources":["../../../../src/components/rating/CRating.ts"],"sourcesContent":[null],"names":["defineComponent","ref","watch","h","withDirectives","vCTooltip"],"mappings":";;;;;AAGM,MAAA,OAAO,GAAGA,mBAAe,CAAC;AAC9B,IAAA,IAAI,EAAE,SAAS;AACf,IAAA,KAAK,EAAE;AACL;;AAEG;AACH,QAAA,UAAU,EAAE,OAAO;AACnB;;AAEG;AACH,QAAA,QAAQ,EAAE,OAAO;AACjB;;AAEG;AACH,QAAA,qBAAqB,EAAE,OAAO;AAC9B;;AAEG;AACH,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,OAAO,EAAE,CAAC;AACX,SAAA;AACD;;AAEG;AACH,QAAA,UAAU,EAAE,MAAM;AAClB;;AAEG;AACH,QAAA,IAAI,EAAE,MAAM;AACZ;;AAEG;AACH,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,OAAO,EAAE,CAAC;AACX,SAAA;AACD;;AAEG;AACH,QAAA,QAAQ,EAAE,OAAO;AACjB;;;;AAIG;AACH,QAAA,IAAI,EAAE;AACJ,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,SAAS,EAAE,CAAC,KAAa,KAAI;AAC3B,gBAAA,OAAO,CAAC,IAAI,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAA;aAC9C;AACF,SAAA;AACD;;AAEG;AACH,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAE,CAAC,OAAO,EAAE,KAAK,CAAiC;AACvD,SAAA;AACD;;AAEK;AACL,QAAA,KAAK,EAAE,MAAM;AACd,KAAA;AACD,IAAA,KAAK,EAAE;AACL;;;;AAIG;QACH,QAAQ;AACR;;;;AAIG;QACH,OAAO;AACP;;AAEG;QACH,mBAAmB;AACpB,KAAA;AACD,IAAA,KAAK,CAAC,KAAK,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,EAAA;AA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E,gCAAgC,EAAE,EAC3C,KAAK,CAAC,UAAU,CAAC,EAAE,KAAK,EAAE,KAAK,GAAG,CAAC,EAAE,CAAC,CACvC;AACJ,iCAAA;6BACF,CACF;4BACDA,KAAC,CAAC,OAAO,EAAE;gCACT,OAAO,EAAE,aAAa,EAAE;AACxB,gCAAA,KAAK,EAAE,mBAAmB;AAC1B,gCAAA,QAAQ,EAAE,KAAK,CAAC,QAAQ,IAAI,KAAK,CAAC,QAAQ;AAC1C,gCAAA,EAAE,EAAE,EAAE;AACN,gCAAA,IAAI,EAAE,IAAI;AACV,gCAAA,MAAM,EAAE,MAAM,gBAAgB,EAAE;AAChC,gCAAA,QAAQ,EAAE,MAAM,cAAc,CAAC,KAAK,CAAC;AACrC,gCAAA,OAAO,EAAE,MAAM,gBAAgB,CAAC,KAAK,CAAC;AACtC,gCAAA,IAAI,EAAE,OAAO;AACb,gCAAA,KAAK,EAAE,KAAK;6BACb,CAAC;yBACH,CAAA;AACH,qBAAC,CAAC;iBACH,CACF,EACD,KAAK,CAAC,QAAQ;AACZ,sBAAE;AACE,wBAAA;4BACEE,iBAAS;AACT,4BAAA;gCACE,OAAO,EAAE,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,GAAG,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,KAAK,GAAG,CAAC;AAC1E,gCAAA,SAAS,EAAE,KAAK;AACjB,6BAAA;AACF,yBAAA;AACF,qBAAA;sBACD,EAAE,CACP,CAAA;AACH,aAAC,CAAC;AACH,SAAA,CACF,CAAA;KACJ;AACF,CAAA;;;;"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var CRating = require('./CRating.js');
|
|
4
|
+
|
|
5
|
+
const CRatingPlugin = {
|
|
6
|
+
install: (app) => {
|
|
7
|
+
app.component(CRating.CRating.name, CRating.CRating);
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
exports.CRating = CRating.CRating;
|
|
12
|
+
exports.CRatingPlugin = CRatingPlugin;
|
|
13
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/rating/index.ts"],"sourcesContent":[null],"names":["CRating"],"mappings":";;;;AAGA,MAAM,aAAa,GAAG;AACpB,IAAA,OAAO,EAAE,CAAC,GAAQ,KAAU;QAC1B,GAAG,CAAC,SAAS,CAACA,eAAO,CAAC,IAAc,EAAEA,eAAO,CAAC,CAAA;KAC/C;;;;;;"}
|
|
@@ -57,6 +57,7 @@ const CSmartTableBody = vue.defineComponent({
|
|
|
57
57
|
emits: ['rowChecked', 'rowClick'],
|
|
58
58
|
setup(props, { emit }) {
|
|
59
59
|
const colspan = props.selectable ? props.columns.length + 1 : props.columns.length;
|
|
60
|
+
const columns = utils.getColumns(props.columns);
|
|
60
61
|
return () => vue.h(CTableBody.CTableBody, {
|
|
61
62
|
...(props.clickableRows && { style: 'cursor:pointer;' }),
|
|
62
63
|
}, {
|
|
@@ -79,7 +80,7 @@ const CSmartTableBody = vue.defineComponent({
|
|
|
79
80
|
emit('rowChecked', item, event.target.checked);
|
|
80
81
|
},
|
|
81
82
|
})),
|
|
82
|
-
|
|
83
|
+
columns.map((column) => {
|
|
83
84
|
const colName = utils.getColumnName(column);
|
|
84
85
|
return props.scopedSlots &&
|
|
85
86
|
props.scopedSlots[colName] &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CSmartTableBody.js","sources":["../../../../src/components/smart-table/CSmartTableBody.ts"],"sourcesContent":[null],"names":["defineComponent","h","CTableBody","CTableRow","getClickedColumnName","CTableDataCell","CFormCheck","isObjectInArray","ITEM_INTERNAL_KEYS","getColumnName","getTableDataCellProps","getTableDataCellStyles"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"CSmartTableBody.js","sources":["../../../../src/components/smart-table/CSmartTableBody.ts"],"sourcesContent":[null],"names":["defineComponent","getColumns","h","CTableBody","CTableRow","getClickedColumnName","CTableDataCell","CFormCheck","isObjectInArray","ITEM_INTERNAL_KEYS","getColumnName","getTableDataCellProps","getTableDataCellStyles"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiBM,MAAA,eAAe,GAAGA,mBAAe,CAAC;AACtC,IAAA,IAAI,EAAE,iBAAiB;AACvB,IAAA,KAAK,EAAE;AACL,QAAA,aAAa,EAAE,OAAO;AACtB,QAAA,WAAW,EAAE;AACX,YAAA,IAAI,EAAE,KAA2B;AACjC,YAAA,OAAO,EAAE,MAAM,EAAE;AACjB,YAAA,OAAO,EAAE,IAAI;AACd,SAAA;AACD,QAAA,OAAO,EAAE;AACP,YAAA,IAAI,EAAE,KAAsC;AAC5C,YAAA,OAAO,EAAE,MAAM,EAAE;AACjB,YAAA,OAAO,EAAE,IAAI;AACd,SAAA;AACD,QAAA,YAAY,EAAE;AACZ,YAAA,IAAI,EAAE,KAAyB;AAC/B,YAAA,OAAO,EAAE,MAAM,EAAE;AAClB,SAAA;AACD,QAAA,0BAA0B,EAAE;AAC1B,YAAA,IAAI,EAAE,MAAM;AACZ,YAAA,OAAO,EAAE,IAAI;AACb,YAAA,OAAO,EAAE,CAAC;AACX,SAAA;AACD,QAAA,YAAY,EAAE,MAAM;AACpB,QAAA,WAAW,EAAE,MAAM;AACnB,QAAA,UAAU,EAAE,OAAO;AACnB,QAAA,QAAQ,EAAE,KAAyB;AACpC,KAAA;AACD,IAAA,KAAK,EAAE,CAAC,YAAY,EAAE,UAAU,CAAC;AACjC,IAAA,KAAK,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,EAAA;QACnB,MAAM,OAAO,GAAW,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAA;QAC1F,MAAM,OAAO,GAAGC,gBAAU,CAAC,KA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4BAAA,OAAO,EAAE,MACPF,KAAC,CACCI,6BAAc,EACd;gCACE,OAAO,EAAE,KAAK,CAAC,UAAU;AACvB,sCAAE,KAAK,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC;AAC9B,sCAAE,KAAK,CAAC,WAAW,CAAC,MAAM;AAC5B,gCAAA,KAAK,EAAE,KAAK;AACZ,gCAAA,KAAK,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE;6BACrB,EACD;AACE,gCAAA,OAAO,EAAE,MACP,KAAK,CAAC,WAAW;AACjB,oCAAA,KAAK,CAAC,WAAW,CAAC,SAAS,CAAC;AAC5B,oCAAAJ,KAAC,CAAC,KAAK,CAAC,WAAW,CAAC,SAAS,CAAC,EAAE;AAC9B,wCAAA,IAAI,EAAE,IAAI;qCACX,CAAC;6BACL,CACF;yBACJ,CACF;AACF,qBAAA;iBACJ,CAAC;AACJ,kBAAEA,KAAC,CACCE,mBAAS,EACT,EAAE,EACF;AACE,oBAAA,OAAO,EAAE,MACPF,KAAC,CACCI,6BAAc,EACd,EAAE,OAAO,EAAE,OAAO,EAAE,EACpB;AACE,wBAAA,OAAO,EAAE,MAAM,KAAK,CAAC,YAAY;qBAClC,CACF;iBACJ,CACF;AACR,SAAA,CACF,CAAA;KACJ;AACF,CAAA;;;;"}
|
|
@@ -139,7 +139,7 @@ const CTimePicker = vue.defineComponent({
|
|
|
139
139
|
/**
|
|
140
140
|
* Specify a list of available hours using an array, or customize the filtering of hours through a function.
|
|
141
141
|
*
|
|
142
|
-
* @since 5.0.0
|
|
142
|
+
* @since 5.0.0
|
|
143
143
|
*/
|
|
144
144
|
hours: {
|
|
145
145
|
type: [Array, Function],
|
|
@@ -158,7 +158,7 @@ const CTimePicker = vue.defineComponent({
|
|
|
158
158
|
/**
|
|
159
159
|
* Defines the delay (in milliseconds) for the input field's onChange event.
|
|
160
160
|
*
|
|
161
|
-
* @since v5.0.0
|
|
161
|
+
* @since v5.0.0
|
|
162
162
|
*/
|
|
163
163
|
inputOnChangeDelay: {
|
|
164
164
|
type: Number,
|
|
@@ -193,7 +193,7 @@ const CTimePicker = vue.defineComponent({
|
|
|
193
193
|
/**
|
|
194
194
|
* Toggle the display of minutes, specify a list of available minutes using an array, or customize the filtering of minutes through a function.
|
|
195
195
|
*
|
|
196
|
-
* @since 5.0.0
|
|
196
|
+
* @since 5.0.0
|
|
197
197
|
*/
|
|
198
198
|
minutes: {
|
|
199
199
|
type: [Array, Boolean, Function],
|
|
@@ -14,7 +14,7 @@ declare const CTooltip: import("vue").DefineComponent<{
|
|
|
14
14
|
/**
|
|
15
15
|
* Appends the vue tooltip to a specific element. You can pass an HTML element or function that returns a single element. By default `document.body`.
|
|
16
16
|
*
|
|
17
|
-
* @since v5.0.0
|
|
17
|
+
* @since v5.0.0
|
|
18
18
|
*/
|
|
19
19
|
container: {
|
|
20
20
|
type: PropType<string | HTMLElement | (() => HTMLElement)>;
|
|
@@ -92,7 +92,7 @@ declare const CTooltip: import("vue").DefineComponent<{
|
|
|
92
92
|
/**
|
|
93
93
|
* Appends the vue tooltip to a specific element. You can pass an HTML element or function that returns a single element. By default `document.body`.
|
|
94
94
|
*
|
|
95
|
-
* @since v5.0.0
|
|
95
|
+
* @since v5.0.0
|
|
96
96
|
*/
|
|
97
97
|
container: {
|
|
98
98
|
type: PropType<string | HTMLElement | (() => HTMLElement)>;
|
|
@@ -23,7 +23,7 @@ const CTooltip = vue.defineComponent({
|
|
|
23
23
|
/**
|
|
24
24
|
* Appends the vue tooltip to a specific element. You can pass an HTML element or function that returns a single element. By default `document.body`.
|
|
25
25
|
*
|
|
26
|
-
* @since v5.0.0
|
|
26
|
+
* @since v5.0.0
|
|
27
27
|
*/
|
|
28
28
|
container: {
|
|
29
29
|
type: [Object, String],
|