@coreui/vue-pro 5.0.0-beta.0 → 5.0.0-beta.1
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/calendar/CCalendar.d.ts +6 -6
- package/dist/cjs/components/calendar/CCalendar.js +3 -3
- package/dist/cjs/components/conditional-teleport/CConditionalTeleport.d.ts +2 -2
- package/dist/cjs/components/conditional-teleport/CConditionalTeleport.js +2 -2
- package/dist/cjs/components/conditional-teleport/CConditionalTeleport.js.map +1 -1
- package/dist/cjs/components/date-picker/CDatePicker.d.ts +6 -6
- package/dist/cjs/components/date-picker/CDatePicker.js +3 -3
- package/dist/cjs/components/date-range-picker/CDateRangePicker.d.ts +6 -6
- package/dist/cjs/components/date-range-picker/CDateRangePicker.js +3 -3
- package/dist/cjs/components/dropdown/CDropdown.d.ts +4 -4
- package/dist/cjs/components/dropdown/CDropdown.js +3 -3
- package/dist/cjs/components/dropdown/CDropdown.js.map +1 -1
- package/dist/cjs/components/dropdown/CDropdownMenu.js +4 -1
- package/dist/cjs/components/dropdown/CDropdownMenu.js.map +1 -1
- package/dist/cjs/components/dropdown/CDropdownToggle.d.ts +2 -2
- package/dist/cjs/components/dropdown/CDropdownToggle.js +1 -1
- package/dist/cjs/components/link/CLink.js +4 -1
- package/dist/cjs/components/link/CLink.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 +5 -3
- package/dist/cjs/components/popover/CPopover.js.map +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/sidebar/CSidebar.js +21 -10
- package/dist/cjs/components/sidebar/CSidebar.js.map +1 -1
- package/dist/cjs/components/smart-table/CSmartTable.d.ts +0 -1
- package/dist/cjs/components/smart-table/CSmartTable.js +5 -6
- package/dist/cjs/components/smart-table/CSmartTable.js.map +1 -1
- package/dist/cjs/components/smart-table/CSmartTableBody.js +2 -2
- package/dist/cjs/components/smart-table/CSmartTableBody.js.map +1 -1
- package/dist/cjs/components/smart-table/consts.d.ts +1 -0
- package/dist/cjs/components/smart-table/consts.js +6 -0
- package/dist/cjs/components/smart-table/consts.js.map +1 -0
- package/dist/cjs/components/tooltip/CTooltip.d.ts +2 -2
- package/dist/cjs/components/tooltip/CTooltip.js +5 -3
- package/dist/cjs/components/tooltip/CTooltip.js.map +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/conditional-teleport/CConditionalTeleport.d.ts +2 -2
- package/dist/esm/components/conditional-teleport/CConditionalTeleport.js +2 -2
- package/dist/esm/components/conditional-teleport/CConditionalTeleport.js.map +1 -1
- package/dist/esm/components/date-picker/CDatePicker.d.ts +6 -6
- package/dist/esm/components/date-picker/CDatePicker.js +3 -3
- package/dist/esm/components/date-range-picker/CDateRangePicker.d.ts +6 -6
- package/dist/esm/components/date-range-picker/CDateRangePicker.js +3 -3
- package/dist/esm/components/dropdown/CDropdown.d.ts +4 -4
- package/dist/esm/components/dropdown/CDropdown.js +3 -3
- package/dist/esm/components/dropdown/CDropdown.js.map +1 -1
- package/dist/esm/components/dropdown/CDropdownMenu.js +4 -1
- package/dist/esm/components/dropdown/CDropdownMenu.js.map +1 -1
- package/dist/esm/components/dropdown/CDropdownToggle.d.ts +2 -2
- package/dist/esm/components/dropdown/CDropdownToggle.js +1 -1
- package/dist/esm/components/link/CLink.js +4 -1
- package/dist/esm/components/link/CLink.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 +5 -3
- package/dist/esm/components/popover/CPopover.js.map +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/sidebar/CSidebar.js +21 -10
- package/dist/esm/components/sidebar/CSidebar.js.map +1 -1
- package/dist/esm/components/smart-table/CSmartTable.d.ts +0 -1
- package/dist/esm/components/smart-table/CSmartTable.js +2 -2
- package/dist/esm/components/smart-table/CSmartTable.js.map +1 -1
- package/dist/esm/components/smart-table/CSmartTableBody.js +1 -1
- package/dist/esm/components/smart-table/consts.d.ts +1 -0
- package/dist/esm/components/smart-table/consts.js +4 -0
- package/dist/esm/components/smart-table/consts.js.map +1 -0
- package/dist/esm/components/tooltip/CTooltip.d.ts +2 -2
- package/dist/esm/components/tooltip/CTooltip.js +5 -3
- package/dist/esm/components/tooltip/CTooltip.js.map +1 -1
- package/package.json +5 -10
- package/src/components/calendar/CCalendar.ts +3 -3
- package/src/components/conditional-teleport/CConditionalTeleport.ts +2 -2
- package/src/components/date-picker/CDatePicker.ts +3 -3
- package/src/components/date-range-picker/CDateRangePicker.ts +3 -3
- package/src/components/dropdown/CDropdown.ts +3 -3
- package/src/components/dropdown/CDropdownMenu.ts +4 -1
- package/src/components/dropdown/CDropdownToggle.ts +1 -1
- package/src/components/link/CLink.ts +5 -1
- package/src/components/modal/CModal.ts +1 -1
- package/src/components/popover/CPopover.ts +5 -5
- package/src/components/progress/CProgress.ts +1 -1
- package/src/components/sidebar/CSidebar.ts +27 -9
- package/src/components/smart-table/CSmartTable.ts +1 -3
- package/src/components/smart-table/CSmartTableBody.ts +1 -1
- package/src/components/smart-table/consts.ts +1 -0
- package/src/components/tooltip/CTooltip.ts +5 -3
- package/src/utils/getRTLPlacement.ts +1 -1
|
@@ -21,7 +21,7 @@ import '../table/CTableHead.js';
|
|
|
21
21
|
import '../table/CTableHeaderCell.js';
|
|
22
22
|
import { CTableRow } from '../table/CTableRow.js';
|
|
23
23
|
import isObjectInArray from '../../utils/isObjectInArray.js';
|
|
24
|
-
import { ITEM_INTERNAL_KEYS } from './
|
|
24
|
+
import { ITEM_INTERNAL_KEYS } from './consts.js';
|
|
25
25
|
import { getClickedColumnName, getColumnName, getTableDataCellProps, getTableDataCellStyles } from './utils.js';
|
|
26
26
|
|
|
27
27
|
const CSmartTableBody = defineComponent({
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ITEM_INTERNAL_KEYS: string[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"consts.js","sources":["../../../../src/components/smart-table/consts.ts"],"sourcesContent":[null],"names":[],"mappings":"AAAO,MAAM,kBAAkB,GAAG,CAAC,YAAY,EAAE,QAAQ,EAAE,aAAa,EAAE,WAAW;;;;"}
|
|
@@ -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-beta.
|
|
17
|
+
* @since v5.0.0-beta.1
|
|
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-beta.
|
|
95
|
+
* @since v5.0.0-beta.1
|
|
96
96
|
*/
|
|
97
97
|
container: {
|
|
98
98
|
type: PropType<string | HTMLElement | (() => HTMLElement)>;
|
|
@@ -6,6 +6,7 @@ import getRTLPlacement from '../../utils/getRTLPlacement.js';
|
|
|
6
6
|
|
|
7
7
|
const CTooltip = defineComponent({
|
|
8
8
|
name: 'CTooltip',
|
|
9
|
+
inheritAttrs: false,
|
|
9
10
|
props: {
|
|
10
11
|
/**
|
|
11
12
|
* Apply a CSS fade transition to the tooltip.
|
|
@@ -19,10 +20,10 @@ const CTooltip = defineComponent({
|
|
|
19
20
|
/**
|
|
20
21
|
* 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`.
|
|
21
22
|
*
|
|
22
|
-
* @since v5.0.0-beta.
|
|
23
|
+
* @since v5.0.0-beta.1
|
|
23
24
|
*/
|
|
24
25
|
container: {
|
|
25
|
-
type: [
|
|
26
|
+
type: [Object, String],
|
|
26
27
|
default: 'body',
|
|
27
28
|
},
|
|
28
29
|
/**
|
|
@@ -171,16 +172,17 @@ const CTooltip = defineComponent({
|
|
|
171
172
|
onLeave: (el, done) => handleLeave(el, done),
|
|
172
173
|
}, () => visible.value &&
|
|
173
174
|
h('div', {
|
|
175
|
+
...attrs,
|
|
174
176
|
class: [
|
|
175
177
|
'tooltip',
|
|
176
178
|
'bs-tooltip-auto',
|
|
177
179
|
{
|
|
178
180
|
fade: props.animation,
|
|
179
181
|
},
|
|
182
|
+
attrs.class,
|
|
180
183
|
],
|
|
181
184
|
ref: tooltipRef,
|
|
182
185
|
role: 'tooltip',
|
|
183
|
-
...attrs,
|
|
184
186
|
}, [
|
|
185
187
|
h('div', { class: 'tooltip-arrow' }),
|
|
186
188
|
(props.content || slots.content) &&
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CTooltip.js","sources":["../../../../src/components/tooltip/CTooltip.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AASM,MAAA,QAAQ,GAAG,eAAe,CAAC;AAC/B,IAAA,IAAI,EAAE,UAAU;AAChB,IAAA,KAAK,EAAE;AACL;;;;AAIG;AACH,QAAA,SAAS,EAAE;AACT,YAAA,IAAI,EAAE,OAAO;AACb,YAAA,OAAO,EAAE,IAAI;AACd,SAAA;AACD;;;;AAIG;AACH,QAAA,SAAS,EAAE;
|
|
1
|
+
{"version":3,"file":"CTooltip.js","sources":["../../../../src/components/tooltip/CTooltip.ts"],"sourcesContent":[null],"names":[],"mappings":";;;;;;AASM,MAAA,QAAQ,GAAG,eAAe,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AAC,IAAI,aAAa,CAAC,KAAK,EAAE,KAAK,CAAC;AACjE,qBAAA;iBACF,CAAC;SACL,CAAA;KACF;AACF,CAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coreui/vue-pro",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.1",
|
|
4
4
|
"description": "UI Components Library for Vue.js",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"vue",
|
|
@@ -40,8 +40,11 @@
|
|
|
40
40
|
"test:clear": "jest --clearCache",
|
|
41
41
|
"test:update": "jest --coverage --updateSnapshot"
|
|
42
42
|
},
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"@coreui/coreui-pro": "^5.0.0-beta.1",
|
|
45
|
+
"@popperjs/core": "^2.11.8"
|
|
46
|
+
},
|
|
43
47
|
"devDependencies": {
|
|
44
|
-
"@popperjs/core": "^2.11.8",
|
|
45
48
|
"@rollup/plugin-commonjs": "^25.0.7",
|
|
46
49
|
"@rollup/plugin-node-resolve": "^15.2.3",
|
|
47
50
|
"@rollup/plugin-typescript": "^11.1.5",
|
|
@@ -59,14 +62,6 @@
|
|
|
59
62
|
"vue-types": "^5.1.1"
|
|
60
63
|
},
|
|
61
64
|
"peerDependencies": {
|
|
62
|
-
"@coreui/coreui-pro": "^5.0.0-beta.1",
|
|
63
|
-
"@popperjs/core": "^2.11.8",
|
|
64
65
|
"vue": "^3.2.21"
|
|
65
|
-
},
|
|
66
|
-
"standard": {
|
|
67
|
-
"ignore": [
|
|
68
|
-
"node_modules/",
|
|
69
|
-
"build/"
|
|
70
|
-
]
|
|
71
66
|
}
|
|
72
67
|
}
|
|
@@ -124,7 +124,7 @@ const CCalendar = defineComponent({
|
|
|
124
124
|
/**
|
|
125
125
|
* Specify the type of date selection as day, week, month, or year.
|
|
126
126
|
*
|
|
127
|
-
* @since 5.0.0-beta.
|
|
127
|
+
* @since 5.0.0-beta.1
|
|
128
128
|
*/
|
|
129
129
|
selectionType: {
|
|
130
130
|
type: String as PropType<'day' | 'week' | 'month' | 'year'>,
|
|
@@ -143,7 +143,7 @@ const CCalendar = defineComponent({
|
|
|
143
143
|
/**
|
|
144
144
|
* Set whether to display week numbers in the calendar.
|
|
145
145
|
*
|
|
146
|
-
* @since 5.0.0-beta.
|
|
146
|
+
* @since 5.0.0-beta.1
|
|
147
147
|
*/
|
|
148
148
|
showWeekNumber: Boolean,
|
|
149
149
|
/**
|
|
@@ -174,7 +174,7 @@ const CCalendar = defineComponent({
|
|
|
174
174
|
/**
|
|
175
175
|
* Label displayed over week numbers in the calendar.
|
|
176
176
|
*
|
|
177
|
-
* @since 5.0.0-beta.
|
|
177
|
+
* @since 5.0.0-beta.1
|
|
178
178
|
*/
|
|
179
179
|
weekNumbersLabel: String,
|
|
180
180
|
},
|
|
@@ -16,10 +16,10 @@ const CConditionalTeleport = defineComponent({
|
|
|
16
16
|
/**
|
|
17
17
|
* An HTML element or function that returns a single element, with `document.body` as the default.
|
|
18
18
|
*
|
|
19
|
-
* @since v5.0.0-beta.
|
|
19
|
+
* @since v5.0.0-beta.1
|
|
20
20
|
*/
|
|
21
21
|
container: {
|
|
22
|
-
type: [
|
|
22
|
+
type: [Object, String] as PropType<
|
|
23
23
|
HTMLElement | (() => HTMLElement) | string
|
|
24
24
|
>,
|
|
25
25
|
default: 'body',
|
|
@@ -249,7 +249,7 @@ const CDatePicker = defineComponent({
|
|
|
249
249
|
/**
|
|
250
250
|
* Specify the type of date selection as day, week, month, or year.
|
|
251
251
|
*
|
|
252
|
-
* @since 5.0.0-beta.
|
|
252
|
+
* @since 5.0.0-beta.1
|
|
253
253
|
*/
|
|
254
254
|
selectionType: {
|
|
255
255
|
type: String as PropType<'day' | 'week' | 'month' | 'year'>,
|
|
@@ -268,7 +268,7 @@ const CDatePicker = defineComponent({
|
|
|
268
268
|
/**
|
|
269
269
|
* Set whether to display week numbers in the calendar.
|
|
270
270
|
*
|
|
271
|
-
* @since 5.0.0-beta.
|
|
271
|
+
* @since 5.0.0-beta.1
|
|
272
272
|
*/
|
|
273
273
|
showWeekNumber: Boolean,
|
|
274
274
|
/**
|
|
@@ -311,7 +311,7 @@ const CDatePicker = defineComponent({
|
|
|
311
311
|
/**
|
|
312
312
|
* Label displayed over week numbers in the calendar.
|
|
313
313
|
*
|
|
314
|
-
* @since 5.0.0-beta.
|
|
314
|
+
* @since 5.0.0-beta.1
|
|
315
315
|
*/
|
|
316
316
|
weekNumbersLabel: String,
|
|
317
317
|
},
|
|
@@ -316,7 +316,7 @@ const CDateRangePicker = defineComponent({
|
|
|
316
316
|
/**
|
|
317
317
|
* Specify the type of date selection as day, week, month, or year.
|
|
318
318
|
*
|
|
319
|
-
* @since 5.0.0-beta.
|
|
319
|
+
* @since 5.0.0-beta.1
|
|
320
320
|
*/
|
|
321
321
|
selectionType: {
|
|
322
322
|
type: String as PropType<'day' | 'week' | 'month' | 'year'>,
|
|
@@ -335,7 +335,7 @@ const CDateRangePicker = defineComponent({
|
|
|
335
335
|
/**
|
|
336
336
|
* Set whether to display week numbers in the calendar.
|
|
337
337
|
*
|
|
338
|
-
* @since 5.0.0-beta.
|
|
338
|
+
* @since 5.0.0-beta.1
|
|
339
339
|
*/
|
|
340
340
|
showWeekNumber: Boolean,
|
|
341
341
|
/**
|
|
@@ -453,7 +453,7 @@ const CDateRangePicker = defineComponent({
|
|
|
453
453
|
/**
|
|
454
454
|
* Label displayed over week numbers in the calendar.
|
|
455
455
|
*
|
|
456
|
-
* @since 5.0.0-beta.
|
|
456
|
+
* @since 5.0.0-beta.1
|
|
457
457
|
*/
|
|
458
458
|
weekNumbersLabel: String,
|
|
459
459
|
},
|
|
@@ -62,10 +62,10 @@ const CDropdown = defineComponent({
|
|
|
62
62
|
/**
|
|
63
63
|
* Appends the vue dropdown menu to a specific element. You can pass an HTML element or function that returns a single element. By default `document.body`.
|
|
64
64
|
*
|
|
65
|
-
* @since v5.0.0-beta.
|
|
65
|
+
* @since v5.0.0-beta.1
|
|
66
66
|
*/
|
|
67
67
|
container: {
|
|
68
|
-
type: [
|
|
68
|
+
type: [Object, String] as PropType<
|
|
69
69
|
HTMLElement | (() => HTMLElement) | string
|
|
70
70
|
>,
|
|
71
71
|
default: 'body',
|
|
@@ -117,7 +117,7 @@ const CDropdown = defineComponent({
|
|
|
117
117
|
/**
|
|
118
118
|
* Generates dropdown menu using Teleport.
|
|
119
119
|
*
|
|
120
|
-
* @since v5.0.0-beta.
|
|
120
|
+
* @since v5.0.0-beta.1
|
|
121
121
|
*/
|
|
122
122
|
teleport: {
|
|
123
123
|
type: Boolean,
|
|
@@ -5,6 +5,7 @@ import { getAlignmentClassNames } from './utils'
|
|
|
5
5
|
|
|
6
6
|
const CDropdownMenu = defineComponent({
|
|
7
7
|
name: 'CDropdownMenu',
|
|
8
|
+
inheritAttrs: false,
|
|
8
9
|
props: {
|
|
9
10
|
/**
|
|
10
11
|
* Component used for the root node. Either a string to use a HTML element or a component.
|
|
@@ -16,7 +17,7 @@ const CDropdownMenu = defineComponent({
|
|
|
16
17
|
default: 'div',
|
|
17
18
|
},
|
|
18
19
|
},
|
|
19
|
-
setup(props, { slots }) {
|
|
20
|
+
setup(props, { attrs, slots }) {
|
|
20
21
|
const dropdownMenuRef = inject('dropdownMenuRef') as Ref<HTMLElement>
|
|
21
22
|
const config = inject('config') as any // eslint-disable-line @typescript-eslint/no-explicit-any
|
|
22
23
|
const visible = inject('visible') as Ref<boolean>
|
|
@@ -35,10 +36,12 @@ const CDropdownMenu = defineComponent({
|
|
|
35
36
|
h(
|
|
36
37
|
props.component,
|
|
37
38
|
{
|
|
39
|
+
...attrs,
|
|
38
40
|
class: [
|
|
39
41
|
'dropdown-menu',
|
|
40
42
|
{ show: visible.value },
|
|
41
43
|
getAlignmentClassNames(alignment),
|
|
44
|
+
attrs.class,
|
|
42
45
|
],
|
|
43
46
|
...((typeof alignment === 'object' || !popper) && {
|
|
44
47
|
'data-coreui-popper': 'static',
|
|
@@ -30,8 +30,12 @@ const CLink = defineComponent({
|
|
|
30
30
|
'click',
|
|
31
31
|
],
|
|
32
32
|
setup(props, { slots, emit }) {
|
|
33
|
-
const handleClick = () => {
|
|
33
|
+
const handleClick = (event: Event) => {
|
|
34
34
|
emit('click', props.href)
|
|
35
|
+
|
|
36
|
+
if (props.href === '' || props.href === '#') {
|
|
37
|
+
event.preventDefault()
|
|
38
|
+
}
|
|
35
39
|
}
|
|
36
40
|
return () =>
|
|
37
41
|
h(
|
|
@@ -9,6 +9,7 @@ import { getRTLPlacement } from '../../utils'
|
|
|
9
9
|
|
|
10
10
|
const CPopover = defineComponent({
|
|
11
11
|
name: 'CPopover',
|
|
12
|
+
inheritAttrs: false,
|
|
12
13
|
props: {
|
|
13
14
|
/**
|
|
14
15
|
* Apply a CSS fade transition to the popover.
|
|
@@ -22,12 +23,10 @@ const CPopover = defineComponent({
|
|
|
22
23
|
/**
|
|
23
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`.
|
|
24
25
|
*
|
|
25
|
-
* @since v5.0.0-beta.
|
|
26
|
+
* @since v5.0.0-beta.1
|
|
26
27
|
*/
|
|
27
28
|
container: {
|
|
28
|
-
type: [
|
|
29
|
-
HTMLElement | (() => HTMLElement) | string
|
|
30
|
-
>,
|
|
29
|
+
type: [Object, String] as PropType<HTMLElement | (() => HTMLElement) | string>,
|
|
31
30
|
default: 'body',
|
|
32
31
|
},
|
|
33
32
|
/**
|
|
@@ -198,16 +197,17 @@ const CPopover = defineComponent({
|
|
|
198
197
|
h(
|
|
199
198
|
'div',
|
|
200
199
|
{
|
|
200
|
+
...attrs,
|
|
201
201
|
class: [
|
|
202
202
|
'popover',
|
|
203
203
|
'bs-popover-auto',
|
|
204
204
|
{
|
|
205
205
|
fade: props.animation,
|
|
206
206
|
},
|
|
207
|
+
attrs.class,
|
|
207
208
|
],
|
|
208
209
|
ref: popoverRef,
|
|
209
210
|
role: 'tooltip',
|
|
210
|
-
...attrs,
|
|
211
211
|
},
|
|
212
212
|
[
|
|
213
213
|
h('div', { class: 'popover-arrow' }),
|
|
@@ -87,10 +87,16 @@ const CSidebar = defineComponent({
|
|
|
87
87
|
'visible-change',
|
|
88
88
|
],
|
|
89
89
|
setup(props, { attrs, slots, emit }) {
|
|
90
|
-
const mobile = ref()
|
|
91
|
-
const inViewport = ref()
|
|
92
90
|
const sidebarRef = ref()
|
|
93
|
-
|
|
91
|
+
|
|
92
|
+
const inViewport = ref()
|
|
93
|
+
const mobile = ref()
|
|
94
|
+
const visibleMobile = ref(false)
|
|
95
|
+
const visibleDesktop = ref(
|
|
96
|
+
props.visible !== undefined ? props.visible : props.overlaid ? false : true,
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
// const visible = ref(props.visible)
|
|
94
100
|
|
|
95
101
|
watch(inViewport, () => {
|
|
96
102
|
emit('visible-change', inViewport.value)
|
|
@@ -99,11 +105,14 @@ const CSidebar = defineComponent({
|
|
|
99
105
|
|
|
100
106
|
watch(
|
|
101
107
|
() => props.visible,
|
|
102
|
-
() =>
|
|
108
|
+
() => props.visible !== undefined && handleVisibleChange(props.visible),
|
|
103
109
|
)
|
|
104
110
|
|
|
105
111
|
watch(mobile, () => {
|
|
106
|
-
if (mobile.value
|
|
112
|
+
if (mobile.value) {
|
|
113
|
+
console.log('mobile')
|
|
114
|
+
visibleMobile.value = false
|
|
115
|
+
}
|
|
107
116
|
})
|
|
108
117
|
|
|
109
118
|
onMounted(() => {
|
|
@@ -132,8 +141,17 @@ const CSidebar = defineComponent({
|
|
|
132
141
|
})
|
|
133
142
|
})
|
|
134
143
|
|
|
144
|
+
const handleVisibleChange = (visible: boolean) => {
|
|
145
|
+
if (mobile.value) {
|
|
146
|
+
visibleMobile.value = visible
|
|
147
|
+
return
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
visibleDesktop.value = visible
|
|
151
|
+
}
|
|
152
|
+
|
|
135
153
|
const handleHide = () => {
|
|
136
|
-
|
|
154
|
+
handleVisibleChange(false)
|
|
137
155
|
emit('visible-change', false)
|
|
138
156
|
}
|
|
139
157
|
|
|
@@ -176,8 +194,8 @@ const CSidebar = defineComponent({
|
|
|
176
194
|
[`sidebar-${props.position}`]: props.position,
|
|
177
195
|
[`sidebar-${props.size}`]: props.size,
|
|
178
196
|
'sidebar-narrow-unfoldable': props.unfoldable,
|
|
179
|
-
show:
|
|
180
|
-
hide:
|
|
197
|
+
show: (mobile.value && visibleMobile.value) || (props.overlaid && visibleDesktop.value),
|
|
198
|
+
hide: visibleDesktop.value === false && !mobile.value && !props.overlaid,
|
|
181
199
|
},
|
|
182
200
|
attrs.class,
|
|
183
201
|
],
|
|
@@ -188,7 +206,7 @@ const CSidebar = defineComponent({
|
|
|
188
206
|
mobile.value &&
|
|
189
207
|
h(CBackdrop, {
|
|
190
208
|
class: 'sidebar-backdrop',
|
|
191
|
-
visible:
|
|
209
|
+
visible: visibleMobile.value,
|
|
192
210
|
onClick: () => handleHide(),
|
|
193
211
|
}),
|
|
194
212
|
]
|
|
@@ -13,6 +13,7 @@ import { CSmartTableHead } from './CSmartTableHead'
|
|
|
13
13
|
|
|
14
14
|
import { isObjectInArray } from '../../utils'
|
|
15
15
|
|
|
16
|
+
import { ITEM_INTERNAL_KEYS } from './consts'
|
|
16
17
|
import {
|
|
17
18
|
filterColumns,
|
|
18
19
|
filterTable,
|
|
@@ -21,7 +22,6 @@ import {
|
|
|
21
22
|
isSortable,
|
|
22
23
|
sortItems,
|
|
23
24
|
} from './utils'
|
|
24
|
-
|
|
25
25
|
import type {
|
|
26
26
|
Column,
|
|
27
27
|
ColumnFilter,
|
|
@@ -35,8 +35,6 @@ import type {
|
|
|
35
35
|
TableFilter,
|
|
36
36
|
} from './types'
|
|
37
37
|
|
|
38
|
-
export const ITEM_INTERNAL_KEYS = ['_cellProps', '_props', '_selectable', '_selected']
|
|
39
|
-
|
|
40
38
|
const CSmartTable = defineComponent({
|
|
41
39
|
name: 'CSmartTable',
|
|
42
40
|
props: {
|
|
@@ -5,7 +5,7 @@ import { CTableBody, CTableDataCell, CTableRow } from '../table/'
|
|
|
5
5
|
|
|
6
6
|
import { isObjectInArray } from '../../utils'
|
|
7
7
|
|
|
8
|
-
import { ITEM_INTERNAL_KEYS } from './
|
|
8
|
+
import { ITEM_INTERNAL_KEYS } from './consts'
|
|
9
9
|
import {
|
|
10
10
|
getClickedColumnName,
|
|
11
11
|
getColumnName,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const ITEM_INTERNAL_KEYS = ['_cellProps', '_props', '_selectable', '_selected']
|
|
@@ -9,6 +9,7 @@ import { getRTLPlacement } from '../../utils'
|
|
|
9
9
|
|
|
10
10
|
const CTooltip = defineComponent({
|
|
11
11
|
name: 'CTooltip',
|
|
12
|
+
inheritAttrs: false,
|
|
12
13
|
props: {
|
|
13
14
|
/**
|
|
14
15
|
* Apply a CSS fade transition to the tooltip.
|
|
@@ -22,10 +23,10 @@ const CTooltip = defineComponent({
|
|
|
22
23
|
/**
|
|
23
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`.
|
|
24
25
|
*
|
|
25
|
-
* @since v5.0.0-beta.
|
|
26
|
+
* @since v5.0.0-beta.1
|
|
26
27
|
*/
|
|
27
28
|
container: {
|
|
28
|
-
type: [
|
|
29
|
+
type: [Object, String] as PropType<
|
|
29
30
|
HTMLElement | (() => HTMLElement) | string
|
|
30
31
|
>,
|
|
31
32
|
default: 'body',
|
|
@@ -194,16 +195,17 @@ const CTooltip = defineComponent({
|
|
|
194
195
|
h(
|
|
195
196
|
'div',
|
|
196
197
|
{
|
|
198
|
+
...attrs,
|
|
197
199
|
class: [
|
|
198
200
|
'tooltip',
|
|
199
201
|
'bs-tooltip-auto',
|
|
200
202
|
{
|
|
201
203
|
fade: props.animation,
|
|
202
204
|
},
|
|
205
|
+
attrs.class,
|
|
203
206
|
],
|
|
204
207
|
ref: tooltipRef,
|
|
205
208
|
role: 'tooltip',
|
|
206
|
-
...attrs,
|
|
207
209
|
},
|
|
208
210
|
[
|
|
209
211
|
h('div', { class: 'tooltip-arrow' }),
|