@coreui/vue-pro 4.1.1 → 4.1.2

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 (144) hide show
  1. package/README.md +1 -1
  2. package/dist/components/accordion/CAccordion.d.ts +18 -10
  3. package/dist/components/accordion/CAccordionBody.d.ts +1 -1
  4. package/dist/components/accordion/CAccordionButton.d.ts +1 -1
  5. package/dist/components/accordion/CAccordionCollapse.d.ts +9 -5
  6. package/dist/components/accordion/CAccordionHeader.d.ts +1 -1
  7. package/dist/components/accordion/CAccordionItem.d.ts +10 -5
  8. package/dist/components/alert/CAlert.d.ts +38 -12
  9. package/dist/components/alert/CAlertHeading.d.ts +10 -5
  10. package/dist/components/alert/CAlertLink.d.ts +1 -1
  11. package/dist/components/avatar/CAvatar.d.ts +59 -15
  12. package/dist/components/backdrop/CBackdrop.d.ts +10 -5
  13. package/dist/components/badge/CBadge.d.ts +59 -16
  14. package/dist/components/breadcrumb/CBreadcrumb.d.ts +1 -1
  15. package/dist/components/breadcrumb/CBreadcrumbItem.d.ts +17 -8
  16. package/dist/components/button/CButton.d.ts +73 -20
  17. package/dist/components/button-group/CButtonGroup.d.ts +20 -8
  18. package/dist/components/button-group/CButtonToolbar.d.ts +1 -1
  19. package/dist/components/callout/CCallout.d.ts +11 -5
  20. package/dist/components/card/CCard.d.ts +20 -7
  21. package/dist/components/card/CCardBody.d.ts +1 -1
  22. package/dist/components/card/CCardFooter.d.ts +1 -1
  23. package/dist/components/card/CCardGroup.d.ts +1 -1
  24. package/dist/components/card/CCardHeader.d.ts +10 -5
  25. package/dist/components/card/CCardImage.d.ts +21 -8
  26. package/dist/components/card/CCardImageOverlay.d.ts +1 -1
  27. package/dist/components/card/CCardLink.d.ts +10 -5
  28. package/dist/components/card/CCardSubtitle.d.ts +10 -5
  29. package/dist/components/card/CCardText.d.ts +10 -5
  30. package/dist/components/card/CCardTitle.d.ts +10 -5
  31. package/dist/components/carousel/CCarousel.d.ts +58 -19
  32. package/dist/components/carousel/CCarouselCaption.d.ts +1 -1
  33. package/dist/components/carousel/CCarouselItem.d.ts +25 -9
  34. package/dist/components/close-button/CCloseButton.d.ts +16 -7
  35. package/dist/components/collapse/CCollapse.d.ts +16 -7
  36. package/dist/components/dropdown/CDropdown.d.ts +82 -22
  37. package/dist/components/dropdown/CDropdownDivider.d.ts +1 -1
  38. package/dist/components/dropdown/CDropdownHeader.d.ts +10 -5
  39. package/dist/components/dropdown/CDropdownItem.d.ts +32 -12
  40. package/dist/components/dropdown/CDropdownMenu.d.ts +12 -5
  41. package/dist/components/dropdown/CDropdownToggle.d.ts +78 -22
  42. package/dist/components/element-cover/CElementCover.d.ts +22 -7
  43. package/dist/components/footer/CFooter.d.ts +13 -5
  44. package/dist/components/form/CForm.d.ts +9 -5
  45. package/dist/components/form/CFormCheck.d.ts +66 -23
  46. package/dist/components/form/CFormControl.d.ts +61 -20
  47. package/dist/components/form/CFormFeedback.d.ts +22 -11
  48. package/dist/components/form/CFormFloating.d.ts +1 -1
  49. package/dist/components/form/CFormInput.d.ts +66 -20
  50. package/dist/components/form/CFormLabel.d.ts +10 -5
  51. package/dist/components/form/CFormRange.d.ts +59 -18
  52. package/dist/components/form/CFormSelect.d.ts +66 -18
  53. package/dist/components/form/CFormSwitch.d.ts +61 -18
  54. package/dist/components/form/CFormText.d.ts +10 -5
  55. package/dist/components/form/CFormTextarea.d.ts +45 -16
  56. package/dist/components/form/CInputGroup.d.ts +13 -5
  57. package/dist/components/form/CInputGroupText.d.ts +10 -5
  58. package/dist/components/grid/CCol.d.ts +62 -15
  59. package/dist/components/grid/CContainer.d.ts +44 -15
  60. package/dist/components/grid/CRow.d.ts +57 -15
  61. package/dist/components/header/CHeader.d.ts +24 -7
  62. package/dist/components/header/CHeaderBrand.d.ts +10 -5
  63. package/dist/components/header/CHeaderDivider.d.ts +1 -1
  64. package/dist/components/header/CHeaderNav.d.ts +10 -5
  65. package/dist/components/header/CHeaderText.d.ts +1 -1
  66. package/dist/components/header/CHeaderToggler.d.ts +1 -1
  67. package/dist/components/image/CImage.d.ts +34 -12
  68. package/dist/components/link/CLink.d.ts +32 -12
  69. package/dist/components/list-group/CListGroup.d.ts +28 -10
  70. package/dist/components/list-group/CListGroupItem.d.ts +33 -12
  71. package/dist/components/modal/CModal.d.ts +96 -22
  72. package/dist/components/modal/CModalBody.d.ts +1 -1
  73. package/dist/components/modal/CModalFooter.d.ts +1 -1
  74. package/dist/components/modal/CModalHeader.d.ts +10 -5
  75. package/dist/components/modal/CModalTitle.d.ts +10 -5
  76. package/dist/components/multi-select/CMultiSelect.d.ts +131 -30
  77. package/dist/components/multi-select/CMultiSelectNativeSelect.d.ts +26 -11
  78. package/dist/components/multi-select/CMultiSelectOptions.d.ts +40 -11
  79. package/dist/components/multi-select/CMultiSelectSelection.d.ts +47 -13
  80. package/dist/components/nav/CNav.d.ts +32 -10
  81. package/dist/components/nav/CNavGroup.d.ts +10 -7
  82. package/dist/components/nav/CNavGroupItems.d.ts +1 -1
  83. package/dist/components/nav/CNavLink.d.ts +32 -12
  84. package/dist/components/nav/CNavTitle.d.ts +1 -1
  85. package/dist/components/navbar/CNavbar.d.ts +63 -16
  86. package/dist/components/navbar/CNavbarBrand.d.ts +19 -8
  87. package/dist/components/navbar/CNavbarNav.d.ts +10 -5
  88. package/dist/components/navbar/CNavbarText.d.ts +1 -1
  89. package/dist/components/navbar/CNavbarToggler.d.ts +1 -1
  90. package/dist/components/offcanvas/COffcanvas.d.ts +44 -14
  91. package/dist/components/offcanvas/COffcanvasBody.d.ts +1 -1
  92. package/dist/components/offcanvas/COffcanvasHeader.d.ts +1 -1
  93. package/dist/components/offcanvas/COffcanvasTitle.d.ts +10 -5
  94. package/dist/components/pagination/CPagination.d.ts +24 -7
  95. package/dist/components/pagination/CPaginationItem.d.ts +32 -12
  96. package/dist/components/pagination/CSmartPagination.d.ts +120 -28
  97. package/dist/components/placeholder/CPlaceholder.d.ts +89 -24
  98. package/dist/components/popover/CPopover.d.ts +50 -16
  99. package/dist/components/progress/CProgressBar.d.ts +37 -12
  100. package/dist/components/sidebar/CSidebar.d.ts +59 -20
  101. package/dist/components/sidebar/CSidebarBrand.d.ts +1 -1
  102. package/dist/components/sidebar/CSidebarFooter.d.ts +1 -1
  103. package/dist/components/sidebar/CSidebarHeader.d.ts +1 -1
  104. package/dist/components/sidebar/CSidebarNav.d.ts +1 -1
  105. package/dist/components/sidebar/CSidebarToggler.d.ts +1 -1
  106. package/dist/components/smart-table/CSmartTable.d.ts +278 -60
  107. package/dist/components/smart-table/CSmartTableBody.d.ts +37 -20
  108. package/dist/components/smart-table/CSmartTableCleaner.d.ts +7 -5
  109. package/dist/components/smart-table/CSmartTableFilter.d.ts +17 -9
  110. package/dist/components/smart-table/CSmartTableHead.d.ts +37 -22
  111. package/dist/components/smart-table/CSmartTableItemsPerPageSelector.d.ts +17 -10
  112. package/dist/components/spinner/CSpinner.d.ts +51 -14
  113. package/dist/components/table/CTable.d.ts +88 -24
  114. package/dist/components/table/CTableBody.d.ts +11 -5
  115. package/dist/components/table/CTableCaption.d.ts +2 -4
  116. package/dist/components/table/CTableDataCell.d.ts +29 -10
  117. package/dist/components/table/CTableFoot.d.ts +11 -5
  118. package/dist/components/table/CTableHead.d.ts +11 -5
  119. package/dist/components/table/CTableHeaderCell.d.ts +11 -5
  120. package/dist/components/table/CTableRow.d.ts +29 -10
  121. package/dist/components/tabs/CTabContent.d.ts +1 -1
  122. package/dist/components/tabs/CTabPane.d.ts +10 -5
  123. package/dist/components/toast/CToast.d.ts +59 -18
  124. package/dist/components/toast/CToastBody.d.ts +1 -1
  125. package/dist/components/toast/CToastHeader.d.ts +9 -5
  126. package/dist/components/toast/CToaster.d.ts +13 -5
  127. package/dist/components/tooltip/CTooltip.d.ts +42 -14
  128. package/dist/components/widgets/CWidgetStatsA.d.ts +23 -10
  129. package/dist/components/widgets/CWidgetStatsB.d.ts +45 -17
  130. package/dist/components/widgets/CWidgetStatsC.d.ts +37 -15
  131. package/dist/components/widgets/CWidgetStatsD.d.ts +19 -8
  132. package/dist/components/widgets/CWidgetStatsE.d.ts +18 -8
  133. package/dist/components/widgets/CWidgetStatsF.d.ts +42 -14
  134. package/dist/index.es.js +81 -39
  135. package/dist/index.es.js.map +1 -1
  136. package/dist/index.js +80 -38
  137. package/dist/index.js.map +1 -1
  138. package/package.json +5 -5
  139. package/src/components/form/CFormSelect.ts +19 -6
  140. package/src/components/form/__tests__/__snapshots__/CFormCheck.spec.ts.snap +8 -2
  141. package/src/components/form/__tests__/__snapshots__/CFormSelect.spec.ts.snap +1 -1
  142. package/src/components/modal/CModal.ts +60 -37
  143. package/src/components/modal/__tests__/__snapshots__/CModal.spec.ts.snap +1 -2
  144. package/src/components/sidebar/__tests__/__snapshots__/CSidebar.spec.ts.snap +2 -8
@@ -46,25 +46,53 @@ declare const CWidgetStatsB: import("vue").DefineComponent<{
46
46
  };
47
47
  }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
48
48
  [key: string]: any;
49
- }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
50
- color?: unknown;
51
- inverse?: unknown;
52
- progress?: unknown;
53
- text?: unknown;
54
- title?: unknown;
55
- value?: unknown;
56
- } & {
57
- value: string | number;
58
- } & {
59
- color?: string | undefined;
60
- progress?: {
49
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
50
+ /**
51
+ * Sets the color context of the component to one of CoreUI’s themed colors
52
+ *
53
+ * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
54
+ */
55
+ color: {
56
+ type: StringConstructor;
57
+ validator: (value: string) => boolean;
58
+ };
59
+ /**
60
+ * Colors have been inverted from their default dark shade.
61
+ */
62
+ inverse: {
63
+ type: BooleanConstructor;
64
+ default: undefined;
65
+ require: boolean;
66
+ };
67
+ progress: import("vue-types").VueTypeShape<{
61
68
  color: string;
62
69
  value: number;
63
- } | undefined;
64
- title?: string | undefined;
65
- text?: string | undefined;
66
- inverse?: boolean | undefined;
67
- }>, {
70
+ }>;
71
+ /**
72
+ * Helper text for your component. If you want to pass non-string value please use dedicated slot `<template #text>...</template>`
73
+ */
74
+ text: {
75
+ type: StringConstructor;
76
+ default: undefined;
77
+ require: boolean;
78
+ };
79
+ /**
80
+ * Title for your component. If you want to pass non-string value please use dedicated slot `<template #title>...</template>`
81
+ */
82
+ title: {
83
+ type: StringConstructor;
84
+ default: undefined;
85
+ require: boolean;
86
+ };
87
+ /**
88
+ * Value for your component. If you want to pass non-string or non-number value please use dedicated slot `<template #value>...</template>`
89
+ */
90
+ value: {
91
+ type: (NumberConstructor | StringConstructor)[];
92
+ default: number;
93
+ require: boolean;
94
+ };
95
+ }>>, {
68
96
  value: string | number;
69
97
  title: string;
70
98
  text: string;
@@ -38,23 +38,45 @@ declare const CWidgetStatsC: import("vue").DefineComponent<{
38
38
  };
39
39
  }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
40
40
  [key: string]: any;
41
- }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
42
- color?: unknown;
43
- inverse?: unknown;
44
- progress?: unknown;
45
- title?: unknown;
46
- value?: unknown;
47
- } & {
48
- value: string | number;
49
- } & {
50
- color?: string | undefined;
51
- progress?: {
41
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
42
+ /**
43
+ * Sets the color context of the component to one of CoreUI’s themed colors.
44
+ *
45
+ * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
46
+ */
47
+ color: {
48
+ type: StringConstructor;
49
+ validator: (value: string) => boolean;
50
+ };
51
+ /**
52
+ * Colors have been inverted from their default dark shade.
53
+ */
54
+ inverse: {
55
+ type: BooleanConstructor;
56
+ default: undefined;
57
+ require: boolean;
58
+ };
59
+ progress: import("vue-types").VueTypeShape<{
52
60
  color: string;
53
61
  value: number;
54
- } | undefined;
55
- title?: string | undefined;
56
- inverse?: boolean | undefined;
57
- }>, {
62
+ }>;
63
+ /**
64
+ * Title for your component. If you want to pass non-string value please use dedicated slot `<template #title>...</template>`
65
+ */
66
+ title: {
67
+ type: StringConstructor;
68
+ default: undefined;
69
+ require: boolean;
70
+ };
71
+ /**
72
+ * Value for your component. If you want to pass non-string or non-number value please use dedicated slot `<template #value>...</template>`
73
+ */
74
+ value: {
75
+ type: (NumberConstructor | StringConstructor)[];
76
+ default: number;
77
+ require: boolean;
78
+ };
79
+ }>>, {
58
80
  value: string | number;
59
81
  title: string;
60
82
  inverse: boolean;
@@ -23,14 +23,25 @@ declare const CWidgetStatsD: import("vue").DefineComponent<{
23
23
  };
24
24
  }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
25
25
  [key: string]: any;
26
- }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
27
- color?: unknown;
28
- values?: unknown;
29
- } & {
30
- values: Value[];
31
- } & {
32
- color?: string | undefined;
33
- }>, {
26
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
27
+ /**
28
+ * Sets the color context of the component to one of CoreUI’s themed colors.
29
+ *
30
+ * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
31
+ */
32
+ color: {
33
+ type: StringConstructor;
34
+ validator: (value: string) => boolean;
35
+ };
36
+ /**
37
+ * Values and titles for your component.
38
+ */
39
+ values: {
40
+ type: PropType<Value[]>;
41
+ default: () => never[];
42
+ require: boolean;
43
+ };
44
+ }>>, {
34
45
  values: Value[];
35
46
  }>;
36
47
  export { CWidgetStatsD };
@@ -17,14 +17,24 @@ declare const CWidgetStatsE: import("vue").DefineComponent<{
17
17
  };
18
18
  }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
19
19
  [key: string]: any;
20
- }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
21
- title?: unknown;
22
- value?: unknown;
23
- } & {
24
- value: string | number;
25
- } & {
26
- title?: string | undefined;
27
- }>, {
20
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
21
+ /**
22
+ * Title for your component. If you want to pass non-string value please use dedicated slot `<template #title>...</template>`
23
+ */
24
+ title: {
25
+ type: StringConstructor;
26
+ default: undefined;
27
+ require: boolean;
28
+ };
29
+ /**
30
+ * Value for your component. If you want to pass non-string or non-number value please use dedicated slot `<template #value>...</template>`
31
+ */
32
+ value: {
33
+ type: (NumberConstructor | StringConstructor)[];
34
+ default: number;
35
+ require: boolean;
36
+ };
37
+ }>>, {
28
38
  value: string | number;
29
39
  title: string;
30
40
  }>;
@@ -41,20 +41,48 @@ declare const CWidgetStatsF: import("vue").DefineComponent<{
41
41
  };
42
42
  }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
43
43
  [key: string]: any;
44
- }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
45
- color?: unknown;
46
- padding?: unknown;
47
- title?: unknown;
48
- text?: unknown;
49
- value?: unknown;
50
- } & {
51
- value: string | number;
52
- padding: boolean;
53
- } & {
54
- color?: string | undefined;
55
- title?: string | undefined;
56
- text?: string | undefined;
57
- }>, {
44
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
45
+ /**
46
+ * Sets the color context of the component to one of CoreUI’s themed colors.
47
+ *
48
+ * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
49
+ */
50
+ color: {
51
+ type: StringConstructor;
52
+ validator: (value: string) => boolean;
53
+ };
54
+ /**
55
+ * Set padding of your component.
56
+ */
57
+ padding: {
58
+ type: BooleanConstructor;
59
+ default: boolean;
60
+ };
61
+ /**
62
+ * Title for your component. If you want to pass non-string value please use dedicated slot `<template #title>...</template>`
63
+ */
64
+ title: {
65
+ type: StringConstructor;
66
+ default: undefined;
67
+ require: boolean;
68
+ };
69
+ /**
70
+ * Helper text for your component. If you want to pass non-string value please use dedicated slot `<template #text>...</template>`
71
+ */
72
+ text: {
73
+ type: StringConstructor;
74
+ default: undefined;
75
+ require: boolean;
76
+ };
77
+ /**
78
+ * Value for your component. If you want to pass non-string or non-number value please use dedicated slot `<template #value>...</template>`
79
+ */
80
+ value: {
81
+ type: (NumberConstructor | StringConstructor)[];
82
+ default: number;
83
+ require: boolean;
84
+ };
85
+ }>>, {
58
86
  value: string | number;
59
87
  title: string;
60
88
  text: string;
package/dist/index.es.js CHANGED
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, provide, h as h$1, Transition, withDirectives, inject, watch, reactive, onBeforeMount, onMounted, onUpdated, toRefs, onUnmounted, nextTick, computed, Teleport, onBeforeUnmount, vShow } from 'vue';
1
+ import { defineComponent, ref, provide, h as h$1, Transition, withDirectives, inject, watch, reactive, onBeforeMount, onMounted, onUpdated, toRefs, onUnmounted, nextTick, vShow, computed, Teleport, onBeforeUnmount } from 'vue';
2
2
 
3
3
  const CAccordion = defineComponent({
4
4
  name: 'CAccordion',
@@ -1997,13 +1997,21 @@ function mapToStyles(_ref2) {
1997
1997
  adaptive = _ref2.adaptive,
1998
1998
  roundOffsets = _ref2.roundOffsets,
1999
1999
  isFixed = _ref2.isFixed;
2000
+ var _offsets$x = offsets.x,
2001
+ x = _offsets$x === void 0 ? 0 : _offsets$x,
2002
+ _offsets$y = offsets.y,
2003
+ y = _offsets$y === void 0 ? 0 : _offsets$y;
2000
2004
 
2001
- var _ref3 = roundOffsets === true ? roundOffsetsByDPR(offsets) : typeof roundOffsets === 'function' ? roundOffsets(offsets) : offsets,
2002
- _ref3$x = _ref3.x,
2003
- x = _ref3$x === void 0 ? 0 : _ref3$x,
2004
- _ref3$y = _ref3.y,
2005
- y = _ref3$y === void 0 ? 0 : _ref3$y;
2005
+ var _ref3 = typeof roundOffsets === 'function' ? roundOffsets({
2006
+ x: x,
2007
+ y: y
2008
+ }) : {
2009
+ x: x,
2010
+ y: y
2011
+ };
2006
2012
 
2013
+ x = _ref3.x;
2014
+ y = _ref3.y;
2007
2015
  var hasX = offsets.hasOwnProperty('x');
2008
2016
  var hasY = offsets.hasOwnProperty('y');
2009
2017
  var sideX = left;
@@ -2048,6 +2056,17 @@ function mapToStyles(_ref2) {
2048
2056
  position: position
2049
2057
  }, adaptive && unsetSides);
2050
2058
 
2059
+ var _ref4 = roundOffsets === true ? roundOffsetsByDPR({
2060
+ x: x,
2061
+ y: y
2062
+ }) : {
2063
+ x: x,
2064
+ y: y
2065
+ };
2066
+
2067
+ x = _ref4.x;
2068
+ y = _ref4.y;
2069
+
2051
2070
  if (gpuAcceleration) {
2052
2071
  var _Object$assign;
2053
2072
 
@@ -2057,9 +2076,9 @@ function mapToStyles(_ref2) {
2057
2076
  return Object.assign({}, commonStyles, (_Object$assign2 = {}, _Object$assign2[sideY] = hasY ? y + "px" : '', _Object$assign2[sideX] = hasX ? x + "px" : '', _Object$assign2.transform = '', _Object$assign2));
2058
2077
  }
2059
2078
 
2060
- function computeStyles(_ref4) {
2061
- var state = _ref4.state,
2062
- options = _ref4.options;
2079
+ function computeStyles(_ref5) {
2080
+ var state = _ref5.state,
2081
+ options = _ref5.options;
2063
2082
  var _options$gpuAccelerat = options.gpuAcceleration,
2064
2083
  gpuAcceleration = _options$gpuAccelerat === void 0 ? true : _options$gpuAccelerat,
2065
2084
  _options$adaptive = options.adaptive,
@@ -2358,7 +2377,7 @@ function getClippingParents(element) {
2358
2377
 
2359
2378
 
2360
2379
  return clippingParents.filter(function (clippingParent) {
2361
- return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body' && (canEscapeClipping ? getComputedStyle$1(clippingParent).position !== 'static' : true);
2380
+ return isElement(clippingParent) && contains(clippingParent, clipperElement) && getNodeName(clippingParent) !== 'body';
2362
2381
  });
2363
2382
  } // Gets the maximum area that the element is visible in due to any number of
2364
2383
  // clipping parents
@@ -4640,10 +4659,14 @@ const CFormSelect = defineComponent({
4640
4659
  * The default name for a value passed using v-model.
4641
4660
  */
4642
4661
  modelValue: {
4643
- type: String,
4662
+ type: [String, Array],
4644
4663
  default: undefined,
4645
4664
  require: false,
4646
4665
  },
4666
+ multiple: {
4667
+ type: Boolean,
4668
+ required: false,
4669
+ },
4647
4670
  /**
4648
4671
  * Options list of the select component. Available keys: `label`, `value`, `disabled`.
4649
4672
  * Examples:
@@ -4692,9 +4715,8 @@ const CFormSelect = defineComponent({
4692
4715
  const selected = Array.from(target.options)
4693
4716
  .filter((option) => option.selected)
4694
4717
  .map((option) => option.value);
4695
- const value = target.multiple ? selected : selected[0];
4696
4718
  emit('change', event);
4697
- emit('update:modelValue', value);
4719
+ emit('update:modelValue', target.multiple ? selected : selected[0]);
4698
4720
  };
4699
4721
  return () => h$1('select', {
4700
4722
  class: [
@@ -4705,14 +4727,23 @@ const CFormSelect = defineComponent({
4705
4727
  'is-valid': props.valid,
4706
4728
  },
4707
4729
  ],
4730
+ multiple: props.multiple,
4708
4731
  onChange: (event) => handleChange(event),
4709
4732
  size: props.htmlSize,
4733
+ ...(props.modelValue && !props.multiple && { value: props.modelValue }),
4710
4734
  }, props.options
4711
4735
  ? props.options.map((option) => {
4712
4736
  return h$1('option', {
4713
- ...(typeof option === 'object' &&
4714
- option.disabled && { disabled: option.disabled }),
4715
- ...(typeof option === 'object' && option.value && { value: option.value }),
4737
+ ...(typeof option === 'object' && {
4738
+ ...(option.disabled && { disabled: option.disabled }),
4739
+ ...(option.selected && { selected: option.selected }),
4740
+ ...(option.value && {
4741
+ value: option.value,
4742
+ ...(props.modelValue &&
4743
+ props.multiple &&
4744
+ props.modelValue.includes(option.value) && { selected: true }),
4745
+ }),
4746
+ }),
4716
4747
  }, typeof option === 'string' ? option : option.label);
4717
4748
  })
4718
4749
  : slots.default && slots.default());
@@ -5738,6 +5769,14 @@ const CModal = defineComponent({
5738
5769
  default: true,
5739
5770
  required: false,
5740
5771
  },
5772
+ /**
5773
+ * By default the component is unmounted after close animation, if you want to keep the component mounted set this property to false.
5774
+ */
5775
+ unmountOnClose: {
5776
+ type: Boolean,
5777
+ default: true,
5778
+ required: false,
5779
+ },
5741
5780
  /**
5742
5781
  * Toggle the visibility of alert component.
5743
5782
  */
@@ -5826,35 +5865,38 @@ const CModal = defineComponent({
5826
5865
  }
5827
5866
  };
5828
5867
  provide('handleDismiss', handleDismiss);
5868
+ const modal = () => h$1('div', {
5869
+ class: [
5870
+ 'modal',
5871
+ {
5872
+ ['fade']: props.transition,
5873
+ },
5874
+ attrs.class,
5875
+ ],
5876
+ ref: modalRef,
5877
+ }, h$1('div', {
5878
+ class: [
5879
+ 'modal-dialog',
5880
+ {
5881
+ 'modal-dialog-centered': props.alignment === 'center',
5882
+ [`modal-fullscreen-${props.fullscreen}-down`]: props.fullscreen && typeof props.fullscreen === 'string',
5883
+ 'modal-fullscreen': props.fullscreen && typeof props.fullscreen === 'boolean',
5884
+ ['modal-dialog-scrollable']: props.scrollable,
5885
+ [`modal-${props.size}`]: props.size,
5886
+ },
5887
+ ],
5888
+ role: 'dialog',
5889
+ }, h$1('div', { class: ['modal-content', props.contentClassName], ref: modalContentRef }, slots.default && slots.default())));
5829
5890
  return () => [
5830
5891
  h$1(Transition, {
5892
+ css: false,
5831
5893
  onEnter: (el, done) => handleEnter(el, done),
5832
5894
  onAfterEnter: () => handleAfterEnter(),
5833
5895
  onLeave: (el, done) => handleLeave(el, done),
5834
5896
  onAfterLeave: (el) => handleAfterLeave(el),
5835
- }, () => visible.value &&
5836
- h$1('div', {
5837
- class: [
5838
- 'modal',
5839
- {
5840
- ['fade']: props.transition,
5841
- },
5842
- attrs.class,
5843
- ],
5844
- ref: modalRef,
5845
- }, h$1('div', {
5846
- class: [
5847
- 'modal-dialog',
5848
- {
5849
- 'modal-dialog-centered': props.alignment === 'center',
5850
- [`modal-fullscreen-${props.fullscreen}-down`]: props.fullscreen && typeof props.fullscreen === 'string',
5851
- 'modal-fullscreen': props.fullscreen && typeof props.fullscreen === 'boolean',
5852
- ['modal-dialog-scrollable']: props.scrollable,
5853
- [`modal-${props.size}`]: props.size,
5854
- },
5855
- ],
5856
- role: 'dialog',
5857
- }, h$1('div', { class: ['modal-content', props.contentClassName], ref: modalContentRef }, slots.default && slots.default())))),
5897
+ }, () => props.unmountOnClose
5898
+ ? visible.value && modal()
5899
+ : withDirectives(modal(), [[vShow, visible.value]])),
5858
5900
  props.backdrop &&
5859
5901
  h$1(CBackdrop, {
5860
5902
  class: 'modal-backdrop',