@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
|
@@ -35,7 +35,7 @@ declare const CDropdownToggle: import("vue").DefineComponent<{
|
|
|
35
35
|
/**
|
|
36
36
|
* If a dropdown `variant` is set to `nav-item` then render the toggler as a link instead of a button.
|
|
37
37
|
*
|
|
38
|
-
* @since v5.0.0
|
|
38
|
+
* @since v5.0.0
|
|
39
39
|
*/
|
|
40
40
|
navLink: {
|
|
41
41
|
type: BooleanConstructor;
|
|
@@ -118,7 +118,7 @@ declare const CDropdownToggle: import("vue").DefineComponent<{
|
|
|
118
118
|
/**
|
|
119
119
|
* If a dropdown `variant` is set to `nav-item` then render the toggler as a link instead of a button.
|
|
120
120
|
*
|
|
121
|
-
* @since v5.0.0
|
|
121
|
+
* @since v5.0.0
|
|
122
122
|
*/
|
|
123
123
|
navLink: {
|
|
124
124
|
type: BooleanConstructor;
|
|
@@ -35,6 +35,7 @@ export { CPickerPlugin } from './picker/index.js';
|
|
|
35
35
|
export { CPlaceholderPlugin } from './placeholder/index.js';
|
|
36
36
|
export { CProgressPlugin } from './progress/index.js';
|
|
37
37
|
export { CPopoverPlugin } from './popover/index.js';
|
|
38
|
+
export { CRatingPlugin } from './rating/index.js';
|
|
38
39
|
export { CSidebarPlugin } from './sidebar/index.js';
|
|
39
40
|
export { CSmartPaginationPlugin } from './smart-pagination/index.js';
|
|
40
41
|
export { CSmartTablePlugin } from './smart-table/index.js';
|
|
@@ -147,6 +148,7 @@ export { CProgress } from './progress/CProgress.js';
|
|
|
147
148
|
export { CProgressBar } from './progress/CProgressBar.js';
|
|
148
149
|
export { CProgressStacked } from './progress/CProgressStacked.js';
|
|
149
150
|
export { CPopover } from './popover/CPopover.js';
|
|
151
|
+
export { CRating } from './rating/CRating.js';
|
|
150
152
|
export { CSidebar } from './sidebar/CSidebar.js';
|
|
151
153
|
export { CSidebarBrand } from './sidebar/CSidebarBrand.js';
|
|
152
154
|
export { CSidebarFooter } from './sidebar/CSidebarFooter.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -26,7 +26,7 @@ declare const CModal: import("vue").DefineComponent<{
|
|
|
26
26
|
/**
|
|
27
27
|
* Puts the focus on the modal when shown.
|
|
28
28
|
*
|
|
29
|
-
* @since v5.0.0
|
|
29
|
+
* @since v5.0.0
|
|
30
30
|
*/
|
|
31
31
|
focus: {
|
|
32
32
|
type: BooleanConstructor;
|
|
@@ -108,7 +108,7 @@ declare const CModal: import("vue").DefineComponent<{
|
|
|
108
108
|
/**
|
|
109
109
|
* Puts the focus on the modal when shown.
|
|
110
110
|
*
|
|
111
|
-
* @since v5.0.0
|
|
111
|
+
* @since v5.0.0
|
|
112
112
|
*/
|
|
113
113
|
focus: {
|
|
114
114
|
type: BooleanConstructor;
|
|
@@ -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)>;
|
|
@@ -21,7 +21,7 @@ const CPopover = defineComponent({
|
|
|
21
21
|
/**
|
|
22
22
|
* 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`.
|
|
23
23
|
*
|
|
24
|
-
* @since v5.0.0
|
|
24
|
+
* @since v5.0.0
|
|
25
25
|
*/
|
|
26
26
|
container: {
|
|
27
27
|
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,238 @@
|
|
|
1
|
+
import { defineComponent, ref, watch, h, withDirectives } from 'vue';
|
|
2
|
+
import vCTooltip from '../../directives/v-c-tooltip.js';
|
|
3
|
+
|
|
4
|
+
const CRating = defineComponent({
|
|
5
|
+
name: 'CRating',
|
|
6
|
+
props: {
|
|
7
|
+
/**
|
|
8
|
+
* Enables the clearing upon clicking the selected item again.
|
|
9
|
+
*/
|
|
10
|
+
allowClear: Boolean,
|
|
11
|
+
/**
|
|
12
|
+
* Toggle the disabled state for the component.
|
|
13
|
+
*/
|
|
14
|
+
disabled: Boolean,
|
|
15
|
+
/**
|
|
16
|
+
* If enabled, only the currently selected icon will be visibly highlighted.
|
|
17
|
+
*/
|
|
18
|
+
highlightOnlySelected: Boolean,
|
|
19
|
+
/**
|
|
20
|
+
* 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.
|
|
21
|
+
*/
|
|
22
|
+
itemCount: {
|
|
23
|
+
type: Number,
|
|
24
|
+
default: 5,
|
|
25
|
+
},
|
|
26
|
+
/**
|
|
27
|
+
* The default name for a value passed using v-model.
|
|
28
|
+
*/
|
|
29
|
+
modelValue: Number,
|
|
30
|
+
/**
|
|
31
|
+
* The name attribute of the radio input elements.
|
|
32
|
+
*/
|
|
33
|
+
name: String,
|
|
34
|
+
/**
|
|
35
|
+
* Minimum increment value change allowed.
|
|
36
|
+
*/
|
|
37
|
+
precision: {
|
|
38
|
+
type: Number,
|
|
39
|
+
default: 1,
|
|
40
|
+
},
|
|
41
|
+
/**
|
|
42
|
+
* Toggle the readonly state for the component.
|
|
43
|
+
*/
|
|
44
|
+
readOnly: Boolean,
|
|
45
|
+
/**
|
|
46
|
+
* Size the component small, large, or custom if you define custom icons with custom height.
|
|
47
|
+
*
|
|
48
|
+
* @values 'sm', 'lg', 'custom'
|
|
49
|
+
*/
|
|
50
|
+
size: {
|
|
51
|
+
type: String,
|
|
52
|
+
validator: (value) => {
|
|
53
|
+
return ['sm', 'lg', 'custom'].includes(value);
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
/**
|
|
57
|
+
* Enable tooltips with default values or set specific labels for each icon.
|
|
58
|
+
*/
|
|
59
|
+
tooltips: {
|
|
60
|
+
type: [Boolean, Array],
|
|
61
|
+
},
|
|
62
|
+
/**
|
|
63
|
+
* The `value` attribute of component.
|
|
64
|
+
* */
|
|
65
|
+
value: Number,
|
|
66
|
+
},
|
|
67
|
+
emits: [
|
|
68
|
+
/**
|
|
69
|
+
* Execute a function when a user changes the selected element.
|
|
70
|
+
*
|
|
71
|
+
* @property {number | null} value
|
|
72
|
+
*/
|
|
73
|
+
'change',
|
|
74
|
+
/**
|
|
75
|
+
* Execute a function when a user hover the element.
|
|
76
|
+
*
|
|
77
|
+
* @property {number | null} value
|
|
78
|
+
*/
|
|
79
|
+
'hover',
|
|
80
|
+
/**
|
|
81
|
+
* Emit the new value whenever there’s a change event.
|
|
82
|
+
*/
|
|
83
|
+
'update:modelValue',
|
|
84
|
+
],
|
|
85
|
+
setup(props, { slots, emit }) {
|
|
86
|
+
const cleared = ref(false);
|
|
87
|
+
const currentValue = ref((props.modelValue || props.value) ?? null);
|
|
88
|
+
const hoverValue = ref(null);
|
|
89
|
+
const tooltipValue = ref(null);
|
|
90
|
+
const name = props.name || `name${Math.floor(Math.random() * 1_000_000)}`;
|
|
91
|
+
const uid = `id${Math.floor(Math.random() * 1_000_000)}`;
|
|
92
|
+
watch(() => props.value, () => {
|
|
93
|
+
if (props.value !== undefined) {
|
|
94
|
+
currentValue.value = props.value;
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
watch(() => props.modelValue, () => {
|
|
98
|
+
if (props.modelValue !== undefined) {
|
|
99
|
+
currentValue.value = props.modelValue;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
const handleMouseEnter = (value) => {
|
|
103
|
+
if (props.disabled || props.readOnly) {
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
emit('hover', value);
|
|
107
|
+
hoverValue.value = value;
|
|
108
|
+
tooltipValue.value = value;
|
|
109
|
+
};
|
|
110
|
+
const handleMouseLeave = () => {
|
|
111
|
+
if (props.disabled || props.readOnly) {
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
emit('hover', null);
|
|
115
|
+
hoverValue.value = null;
|
|
116
|
+
};
|
|
117
|
+
const handleOnChange = (value) => {
|
|
118
|
+
if (props.disabled || props.readOnly) {
|
|
119
|
+
return;
|
|
120
|
+
}
|
|
121
|
+
if (cleared.value) {
|
|
122
|
+
cleared.value = false;
|
|
123
|
+
return;
|
|
124
|
+
}
|
|
125
|
+
currentValue.value = value;
|
|
126
|
+
emit('change', value);
|
|
127
|
+
emit('update:modelValue', value);
|
|
128
|
+
};
|
|
129
|
+
const handleOnClick = (value) => {
|
|
130
|
+
if (props.disabled || props.readOnly) {
|
|
131
|
+
return;
|
|
132
|
+
}
|
|
133
|
+
if (props.allowClear && value === currentValue.value) {
|
|
134
|
+
emit('change', value);
|
|
135
|
+
cleared.value = true;
|
|
136
|
+
currentValue.value = null;
|
|
137
|
+
hoverValue.value = null;
|
|
138
|
+
}
|
|
139
|
+
};
|
|
140
|
+
return () => h('div', {
|
|
141
|
+
class: [
|
|
142
|
+
'rating',
|
|
143
|
+
{
|
|
144
|
+
[`rating-${props.size}`]: props.size,
|
|
145
|
+
disabled: props.disabled,
|
|
146
|
+
readonly: props.readOnly,
|
|
147
|
+
},
|
|
148
|
+
],
|
|
149
|
+
role: 'radiogroup',
|
|
150
|
+
}, [
|
|
151
|
+
Array.from({ length: props.itemCount }, (_, index) => {
|
|
152
|
+
const numberOfRadios = 1 / props.precision;
|
|
153
|
+
return withDirectives(h('div', {
|
|
154
|
+
class: 'rating-item',
|
|
155
|
+
}, [
|
|
156
|
+
Array.from({ length: numberOfRadios }, (_, _index) => {
|
|
157
|
+
const isNotLastItem = _index + 1 < numberOfRadios;
|
|
158
|
+
const value = numberOfRadios === 1
|
|
159
|
+
? index + 1
|
|
160
|
+
: index + (_index + 1) * (1 * props.precision);
|
|
161
|
+
const id = `${uid}${value}`;
|
|
162
|
+
const isItemChecked = () => value === currentValue.value;
|
|
163
|
+
const isItemActive = () => {
|
|
164
|
+
if (props.highlightOnlySelected
|
|
165
|
+
? hoverValue.value === value
|
|
166
|
+
: hoverValue.value && hoverValue.value >= value) {
|
|
167
|
+
return true;
|
|
168
|
+
}
|
|
169
|
+
if (hoverValue.value === null &&
|
|
170
|
+
(props.highlightOnlySelected
|
|
171
|
+
? isItemChecked()
|
|
172
|
+
: currentValue.value && currentValue.value >= value)) {
|
|
173
|
+
return true;
|
|
174
|
+
}
|
|
175
|
+
return false;
|
|
176
|
+
};
|
|
177
|
+
return [
|
|
178
|
+
h('label', {
|
|
179
|
+
class: [
|
|
180
|
+
'rating-item-label',
|
|
181
|
+
{
|
|
182
|
+
active: isItemActive(),
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
for: id,
|
|
186
|
+
onClick: () => handleOnClick(value),
|
|
187
|
+
onMouseenter: () => handleMouseEnter(value),
|
|
188
|
+
onMouseleave: () => handleMouseLeave(),
|
|
189
|
+
...(isNotLastItem && {
|
|
190
|
+
style: {
|
|
191
|
+
zIndex: 1 / props.precision - _index,
|
|
192
|
+
position: 'absolute',
|
|
193
|
+
width: `${props.precision * (_index + 1) * 100}%`,
|
|
194
|
+
overflow: 'hidden',
|
|
195
|
+
opacity: 0,
|
|
196
|
+
},
|
|
197
|
+
}),
|
|
198
|
+
}, {
|
|
199
|
+
default: () => [
|
|
200
|
+
slots.icon
|
|
201
|
+
? h('div', { class: 'rating-item-custom-icon' }, slots.icon({ value: index + 1 }))
|
|
202
|
+
: h('div', { class: 'rating-item-icon' }),
|
|
203
|
+
slots.activeIcon &&
|
|
204
|
+
h('div', { class: 'rating-item-custom-icon-active' }, slots.activeIcon({ value: index + 1 })),
|
|
205
|
+
],
|
|
206
|
+
}),
|
|
207
|
+
h('input', {
|
|
208
|
+
checked: isItemChecked(),
|
|
209
|
+
class: 'rating-item-input',
|
|
210
|
+
disabled: props.disabled || props.readOnly,
|
|
211
|
+
id: id,
|
|
212
|
+
name: name,
|
|
213
|
+
onBlur: () => handleMouseLeave(),
|
|
214
|
+
onChange: () => handleOnChange(value),
|
|
215
|
+
onFocus: () => handleMouseEnter(value),
|
|
216
|
+
type: 'radio',
|
|
217
|
+
value: value,
|
|
218
|
+
}),
|
|
219
|
+
];
|
|
220
|
+
}),
|
|
221
|
+
]), props.tooltips
|
|
222
|
+
? [
|
|
223
|
+
[
|
|
224
|
+
vCTooltip,
|
|
225
|
+
{
|
|
226
|
+
content: Array.isArray(props.tooltips) ? props.tooltips[index] : index + 1,
|
|
227
|
+
placement: 'top',
|
|
228
|
+
},
|
|
229
|
+
],
|
|
230
|
+
]
|
|
231
|
+
: []);
|
|
232
|
+
}),
|
|
233
|
+
]);
|
|
234
|
+
},
|
|
235
|
+
});
|
|
236
|
+
|
|
237
|
+
export { CRating };
|
|
238
|
+
//# sourceMappingURL=CRating.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CRating.js","sources":["../../../../src/components/rating/CRating.ts"],"sourcesContent":[null],"names":[],"mappings":";;;AAGM,MAAA,OAAO,GAAG,eAAe,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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H,qBAAC,CAAC;iBACH,CACF,EACD,KAAK,CAAC,QAAQ;AACZ,sBAAE;AACE,wBAAA;4BACE,SAAS;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 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../src/components/rating/index.ts"],"sourcesContent":[null],"names":[],"mappings":";;AAGA,MAAM,aAAa,GAAG;AACpB,IAAA,OAAO,EAAE,CAAC,GAAQ,KAAU;QAC1B,GAAG,CAAC,SAAS,CAAC,OAAO,CAAC,IAAc,EAAE,OAAO,CAAC,CAAA;KAC/C;;;;;"}
|
|
@@ -22,7 +22,7 @@ import '../table/CTableHeaderCell.js';
|
|
|
22
22
|
import { CTableRow } from '../table/CTableRow.js';
|
|
23
23
|
import isObjectInArray from '../../utils/isObjectInArray.js';
|
|
24
24
|
import { ITEM_INTERNAL_KEYS } from './consts.js';
|
|
25
|
-
import { getClickedColumnName, getColumnName, getTableDataCellProps, getTableDataCellStyles } from './utils.js';
|
|
25
|
+
import { getColumns, getClickedColumnName, getColumnName, getTableDataCellProps, getTableDataCellStyles } from './utils.js';
|
|
26
26
|
|
|
27
27
|
const CSmartTableBody = defineComponent({
|
|
28
28
|
name: 'CSmartTableBody',
|
|
@@ -55,6 +55,7 @@ const CSmartTableBody = defineComponent({
|
|
|
55
55
|
emits: ['rowChecked', 'rowClick'],
|
|
56
56
|
setup(props, { emit }) {
|
|
57
57
|
const colspan = props.selectable ? props.columns.length + 1 : props.columns.length;
|
|
58
|
+
const columns = getColumns(props.columns);
|
|
58
59
|
return () => h(CTableBody, {
|
|
59
60
|
...(props.clickableRows && { style: 'cursor:pointer;' }),
|
|
60
61
|
}, {
|
|
@@ -77,7 +78,7 @@ const CSmartTableBody = defineComponent({
|
|
|
77
78
|
emit('rowChecked', item, event.target.checked);
|
|
78
79
|
},
|
|
79
80
|
})),
|
|
80
|
-
|
|
81
|
+
columns.map((column) => {
|
|
81
82
|
const colName = getColumnName(column);
|
|
82
83
|
return props.scopedSlots &&
|
|
83
84
|
props.scopedSlots[colName] &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CSmartTableBody.js","sources":["../../../../src/components/smart-table/CSmartTableBody.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"CSmartTableBody.js","sources":["../../../../src/components/smart-table/CSmartTableBody.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAiBM,MAAA,eAAe,GAAG,eAAe,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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* Specify a list of available hours using an array, or customize the filtering of hours through a function.
|
|
139
139
|
*
|
|
140
|
-
* @since 5.0.0
|
|
140
|
+
* @since 5.0.0
|
|
141
141
|
*/
|
|
142
142
|
hours: {
|
|
143
143
|
type: [Array, Function],
|
|
@@ -156,7 +156,7 @@ const CTimePicker = defineComponent({
|
|
|
156
156
|
/**
|
|
157
157
|
* Defines the delay (in milliseconds) for the input field's onChange event.
|
|
158
158
|
*
|
|
159
|
-
* @since v5.0.0
|
|
159
|
+
* @since v5.0.0
|
|
160
160
|
*/
|
|
161
161
|
inputOnChangeDelay: {
|
|
162
162
|
type: Number,
|
|
@@ -191,7 +191,7 @@ const CTimePicker = defineComponent({
|
|
|
191
191
|
/**
|
|
192
192
|
* Toggle the display of minutes, specify a list of available minutes using an array, or customize the filtering of minutes through a function.
|
|
193
193
|
*
|
|
194
|
-
* @since 5.0.0
|
|
194
|
+
* @since 5.0.0
|
|
195
195
|
*/
|
|
196
196
|
minutes: {
|
|
197
197
|
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)>;
|
|
@@ -21,7 +21,7 @@ const CTooltip = defineComponent({
|
|
|
21
21
|
/**
|
|
22
22
|
* 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`.
|
|
23
23
|
*
|
|
24
|
-
* @since v5.0.0
|
|
24
|
+
* @since v5.0.0
|
|
25
25
|
*/
|
|
26
26
|
container: {
|
|
27
27
|
type: [Object, String],
|