@coreui/vue-pro 4.0.4 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +1 -1
  2. package/dist/components/carousel/CCarousel.d.ts +2 -2
  3. package/dist/components/collapse/CCollapse.d.ts +10 -0
  4. package/dist/components/element-cover/index.d.ts +6 -0
  5. package/dist/components/index.d.ts +2 -0
  6. package/dist/components/modal/CModal.d.ts +2 -2
  7. package/dist/components/placeholder/CPlaceholder.d.ts +124 -0
  8. package/dist/components/placeholder/index.d.ts +6 -0
  9. package/dist/components/popover/CPopover.d.ts +2 -2
  10. package/dist/components/table/CTable.d.ts +2 -2
  11. package/dist/components/widgets/CWidgetStatsB.d.ts +2 -2
  12. package/dist/components/widgets/CWidgetStatsF.d.ts +2 -2
  13. package/dist/directives/index.d.ts +3 -2
  14. package/dist/directives/v-c-placeholder.d.ts +6 -0
  15. package/dist/directives/v-c-visible.d.ts +6 -0
  16. package/dist/index.es.js +609 -363
  17. package/dist/index.es.js.map +1 -1
  18. package/dist/index.js +612 -361
  19. package/dist/index.js.map +1 -1
  20. package/package.json +7 -7
  21. package/src/components/accordion/__tests__/__snapshots__/CAccordionBody.spec.ts.snap +1 -1
  22. package/src/components/button/CButton.ts +1 -0
  23. package/src/components/collapse/CCollapse.ts +49 -21
  24. package/src/components/collapse/__test__/__snapshots__/CCollapse.spec.ts.snap +1 -1
  25. package/src/components/element-cover/index.ts +10 -0
  26. package/src/components/form/CFormInput.ts +6 -6
  27. package/src/components/form/CFormSelect.ts +2 -0
  28. package/src/components/grid/CCol.ts +8 -8
  29. package/src/components/grid/CContainer.ts +3 -3
  30. package/src/components/grid/CRow.ts +6 -6
  31. package/src/components/index.ts +2 -0
  32. package/src/components/offcanvas/COffcanvas.ts +19 -16
  33. package/src/components/offcanvas/__tests__/COffcanvas.spec.ts +1 -1
  34. package/src/components/offcanvas/__tests__/__snapshots__/COffcanvas.spec.ts.snap +2 -2
  35. package/src/components/placeholder/CPlaceholder.ts +139 -0
  36. package/src/components/placeholder/__tests__/CPlaceholder.spec.ts +44 -0
  37. package/src/components/placeholder/__tests__/__snapshots__/CPlaceholder.spec.ts.snap +15 -0
  38. package/src/components/placeholder/index.ts +10 -0
  39. package/src/directives/index.ts +3 -2
  40. package/src/directives/v-c-placeholder.ts +32 -0
  41. package/src/directives/v-c-visible.ts +33 -0
  42. package/src/index.ts +2 -1
package/README.md CHANGED
@@ -43,7 +43,7 @@
43
43
 
44
44
  Several quick start options are available:
45
45
 
46
- - [Download the latest release](https://github.com/coreui/coreui-vue-pro/archive/v4.0.4.zip)
46
+ - [Download the latest release](https://github.com/coreui/coreui-vue-pro/archive/v4.1.0.zip)
47
47
  - Clone the repo: `git clone https://github.com/coreui/coreui-vue-pro.git`
48
48
  - Install with [npm](https://www.npmjs.com/): `npm install @coreui/vue-pro`
49
49
  - Install with [yarn](https://yarnpkg.com/): `yarn add @coreui/vue-pro`
@@ -68,22 +68,22 @@ declare const CCarousel: import("vue").DefineComponent<{
68
68
  transition?: unknown;
69
69
  wrap?: unknown;
70
70
  } & {
71
+ transition: string;
71
72
  dark: boolean;
72
73
  controls: boolean;
73
74
  index: number;
74
75
  indicators: boolean;
75
76
  interval: number | boolean;
76
77
  pause: string | boolean;
77
- transition: string;
78
78
  wrap: boolean;
79
79
  } & {}>, {
80
+ transition: string;
80
81
  dark: boolean;
81
82
  controls: boolean;
82
83
  index: number;
83
84
  indicators: boolean;
84
85
  interval: number | boolean;
85
86
  pause: string | boolean;
86
- transition: string;
87
87
  wrap: boolean;
88
88
  }>;
89
89
  export { CCarousel };
@@ -1,5 +1,12 @@
1
1
  import { RendererElement } from 'vue';
2
2
  declare const CCollapse: import("vue").DefineComponent<{
3
+ /**
4
+ * Set horizontal collapsing to transition the width instead of height.
5
+ */
6
+ horizontal: {
7
+ type: BooleanConstructor;
8
+ required: false;
9
+ };
3
10
  /**
4
11
  * Toggle the visibility of component.
5
12
  */
@@ -10,13 +17,16 @@ declare const CCollapse: import("vue").DefineComponent<{
10
17
  }, () => import("vue").VNode<import("vue").RendererNode, RendererElement, {
11
18
  [key: string]: any;
12
19
  }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hide" | "show")[], "hide" | "show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
20
+ horizontal?: unknown;
13
21
  visible?: unknown;
14
22
  } & {
23
+ horizontal: boolean;
15
24
  visible: boolean;
16
25
  } & {}> & {
17
26
  onHide?: ((...args: any[]) => any) | undefined;
18
27
  onShow?: ((...args: any[]) => any) | undefined;
19
28
  }, {
29
+ horizontal: boolean;
20
30
  visible: boolean;
21
31
  }>;
22
32
  export { CCollapse };
@@ -0,0 +1,6 @@
1
+ import { App } from 'vue';
2
+ import { CElementCover } from './CElementCover';
3
+ declare const CElementCoverPlugin: {
4
+ install: (app: App) => void;
5
+ };
6
+ export { CElementCoverPlugin, CElementCover };
@@ -12,6 +12,7 @@ export * from './carousel';
12
12
  export * from './close-button';
13
13
  export * from './collapse';
14
14
  export * from './dropdown';
15
+ export * from './element-cover';
15
16
  export * from './footer';
16
17
  export * from './form';
17
18
  export * from './grid';
@@ -26,6 +27,7 @@ export * from './nav';
26
27
  export * from './navbar';
27
28
  export * from './offcanvas';
28
29
  export * from './pagination';
30
+ export * from './placeholder';
29
31
  export * from './progress';
30
32
  export * from './popover';
31
33
  export * from './sidebar';
@@ -90,8 +90,8 @@ declare const CModal: import("vue").DefineComponent<{
90
90
  transition?: unknown;
91
91
  visible?: unknown;
92
92
  } & {
93
- visible: boolean;
94
93
  transition: boolean;
94
+ visible: boolean;
95
95
  alignment: string;
96
96
  backdrop: string | boolean;
97
97
  keyboard: boolean;
@@ -105,9 +105,9 @@ declare const CModal: import("vue").DefineComponent<{
105
105
  onClose?: ((...args: any[]) => any) | undefined;
106
106
  "onClose-prevented"?: ((...args: any[]) => any) | undefined;
107
107
  }, {
108
+ transition: boolean;
108
109
  visible: boolean;
109
110
  size: string;
110
- transition: boolean;
111
111
  alignment: string;
112
112
  backdrop: string | boolean;
113
113
  contentClassName: string;
@@ -0,0 +1,124 @@
1
+ export declare const CPlaceholder: import("vue").DefineComponent<{
2
+ /**
3
+ * Set animation type to better convey the perception of something being actively loaded.
4
+ *
5
+ * @values 'glow', 'wave'
6
+ */
7
+ animation: {
8
+ type: StringConstructor;
9
+ default: undefined;
10
+ require: boolean;
11
+ validator: (value: string) => boolean;
12
+ };
13
+ /**
14
+ * Sets the color context of the component to one of CoreUI’s themed colors.
15
+ *
16
+ * @values 'primary', 'secondary', 'success', 'danger', 'warning', 'info', 'dark', 'light'
17
+ */
18
+ color: {
19
+ type: StringConstructor;
20
+ validator: (value: string) => boolean;
21
+ };
22
+ /**
23
+ * Component used for the root node. Either a string to use a HTML element or a component.
24
+ */
25
+ component: {
26
+ type: StringConstructor;
27
+ default: string;
28
+ required: false;
29
+ };
30
+ /**
31
+ * Size the component extra small, small, or large.
32
+ *
33
+ * @values 'xs', 'sm', 'lg'
34
+ */
35
+ size: {
36
+ type: StringConstructor;
37
+ default: undefined;
38
+ required: false;
39
+ validator: (value: string) => boolean;
40
+ };
41
+ /**
42
+ * The number of columns on extra small devices (<576px).
43
+ */
44
+ xs: {
45
+ type: NumberConstructor;
46
+ default: undefined;
47
+ require: boolean;
48
+ };
49
+ /**
50
+ * The number of columns on small devices (<768px).
51
+ */
52
+ sm: {
53
+ type: NumberConstructor;
54
+ default: undefined;
55
+ require: boolean;
56
+ };
57
+ /**
58
+ * The number of columns on medium devices (<992px).
59
+ */
60
+ md: {
61
+ type: NumberConstructor;
62
+ default: undefined;
63
+ require: boolean;
64
+ };
65
+ /**
66
+ * The number of columns on large devices (<1200px).
67
+ */
68
+ lg: {
69
+ type: NumberConstructor;
70
+ default: undefined;
71
+ require: boolean;
72
+ };
73
+ /**
74
+ * The number of columns on X-Large devices (<1400px).
75
+ */
76
+ xl: {
77
+ type: NumberConstructor;
78
+ default: undefined;
79
+ require: boolean;
80
+ };
81
+ /**
82
+ * The number of columns on XX-Large devices (≥1400px).
83
+ */
84
+ xxl: {
85
+ type: NumberConstructor;
86
+ default: undefined;
87
+ require: boolean;
88
+ };
89
+ }, () => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
90
+ [key: string]: any;
91
+ }>, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
92
+ animation?: unknown;
93
+ color?: unknown;
94
+ component?: unknown;
95
+ size?: unknown;
96
+ xs?: unknown;
97
+ sm?: unknown;
98
+ md?: unknown;
99
+ lg?: unknown;
100
+ xl?: unknown;
101
+ xxl?: unknown;
102
+ } & {
103
+ component: string;
104
+ } & {
105
+ color?: string | undefined;
106
+ size?: string | undefined;
107
+ sm?: number | undefined;
108
+ md?: number | undefined;
109
+ lg?: number | undefined;
110
+ xl?: number | undefined;
111
+ xs?: number | undefined;
112
+ xxl?: number | undefined;
113
+ animation?: string | undefined;
114
+ }>, {
115
+ component: string;
116
+ size: string;
117
+ sm: number;
118
+ md: number;
119
+ lg: number;
120
+ xl: number;
121
+ xs: number;
122
+ xxl: number;
123
+ animation: string;
124
+ }>;
@@ -0,0 +1,6 @@
1
+ import { App } from 'vue';
2
+ import { CPlaceholder } from './CPlaceholder';
3
+ declare const CPlaceholderPlugin: {
4
+ install: (app: App) => void;
5
+ };
6
+ export { CPlaceholderPlugin, CPlaceholder };
@@ -66,8 +66,8 @@ declare const CPopover: import("vue").DefineComponent<{
66
66
  trigger: string | string[];
67
67
  offset: unknown[];
68
68
  } & {
69
- content?: string | undefined;
70
69
  title?: string | undefined;
70
+ content?: string | undefined;
71
71
  }> & {
72
72
  onHide?: ((...args: any[]) => any) | undefined;
73
73
  onShow?: ((...args: any[]) => any) | undefined;
@@ -75,8 +75,8 @@ declare const CPopover: import("vue").DefineComponent<{
75
75
  visible: boolean;
76
76
  placement: Placement;
77
77
  trigger: string | string[];
78
+ title: string;
78
79
  content: string;
79
80
  offset: unknown[];
80
- title: string;
81
81
  }>;
82
82
  export { CPopover };
@@ -106,16 +106,16 @@ declare const CTable: import("vue").DefineComponent<{
106
106
  borderless: boolean;
107
107
  } & {
108
108
  color?: string | undefined;
109
- align?: string | undefined;
110
109
  caption?: string | undefined;
110
+ align?: string | undefined;
111
111
  borderColor?: string | undefined;
112
112
  responsive?: string | boolean | undefined;
113
113
  }>, {
114
114
  small: boolean;
115
115
  hover: boolean;
116
+ caption: string;
116
117
  align: string;
117
118
  striped: boolean;
118
- caption: string;
119
119
  bordered: boolean;
120
120
  borderless: boolean;
121
121
  responsive: string | boolean;
@@ -61,13 +61,13 @@ declare const CWidgetStatsB: import("vue").DefineComponent<{
61
61
  color: string;
62
62
  value: number;
63
63
  } | undefined;
64
- text?: string | undefined;
65
64
  title?: string | undefined;
65
+ text?: string | undefined;
66
66
  inverse?: boolean | undefined;
67
67
  }>, {
68
68
  value: string | number;
69
- text: string;
70
69
  title: string;
70
+ text: string;
71
71
  inverse: boolean;
72
72
  }>;
73
73
  export { CWidgetStatsB };
@@ -52,12 +52,12 @@ declare const CWidgetStatsF: import("vue").DefineComponent<{
52
52
  padding: boolean;
53
53
  } & {
54
54
  color?: string | undefined;
55
- text?: string | undefined;
56
55
  title?: string | undefined;
56
+ text?: string | undefined;
57
57
  }>, {
58
58
  value: string | number;
59
- text: string;
60
59
  title: string;
60
+ text: string;
61
61
  padding: boolean;
62
62
  }>;
63
63
  export { CWidgetStatsF };
@@ -1,3 +1,4 @@
1
- import vctooltip from './v-c-tooltip';
1
+ import vcplaceholder from './v-c-placeholder';
2
2
  import vcpopover from './v-c-popover';
3
- export { vctooltip, vcpopover };
3
+ import vctooltip from './v-c-tooltip';
4
+ export { vcplaceholder, vcpopover, vctooltip, };
@@ -0,0 +1,6 @@
1
+ import { DirectiveBinding } from 'vue';
2
+ declare const _default: {
3
+ name: string;
4
+ mounted(el: HTMLElement, binding: DirectiveBinding): void;
5
+ };
6
+ export default _default;
@@ -0,0 +1,6 @@
1
+ import { ObjectDirective } from '@vue/runtime-core';
2
+ interface VShowElement extends HTMLElement {
3
+ _vod: string;
4
+ }
5
+ export declare const vVisible: ObjectDirective<VShowElement>;
6
+ export {};