@rebilly/revel 6.11.0 → 6.12.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/CHANGELOG.md +14 -0
- package/dist/components/r-grid/columnTypes/badge.vue.d.ts +7 -7
- package/dist/components/r-grid/columnTypes/index.d.ts +5 -5
- package/dist/components/r-grid/columnTypes/types.d.ts +5 -0
- package/dist/components/r-grid/r-grid.vue.d.ts +5 -11
- package/dist/components/r-repeater/r-repeater.vue.d.ts +15 -0
- package/dist/index.d.ts +1 -0
- package/dist/revel.mjs +23 -10
- package/dist/revel.umd.js +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
## [6.12.1](https://github.com/Rebilly/rebilly/compare/revel-v6.12.0...revel-v6.12.1) (2024-01-17)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Bug Fixes
|
|
5
|
+
|
|
6
|
+
* **revel:** Update Revel to expose directives ([#2939](https://github.com/Rebilly/rebilly/issues/2939)) ([3d4d33d](https://github.com/Rebilly/rebilly/commit/3d4d33db79d601ca6dfc60a4f0f1db972820755b))
|
|
7
|
+
|
|
8
|
+
## [6.12.0](https://github.com/Rebilly/rebilly/compare/revel-v6.11.0...revel-v6.12.0) (2024-01-16)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **revel:** Update badge column on grid component to display different badge types ([#2914](https://github.com/Rebilly/rebilly/issues/2914)) ([c9645cd](https://github.com/Rebilly/rebilly/commit/c9645cdf43e0354cde4c1c6cec13c86a26d809f8))
|
|
14
|
+
|
|
1
15
|
## [6.11.0](https://github.com/Rebilly/rebilly/compare/revel-v6.10.2...revel-v6.11.0) (2024-01-16)
|
|
2
16
|
|
|
3
17
|
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { PropType } from 'vue';
|
|
2
|
-
import type {
|
|
2
|
+
import type { BadgeColumn } from './types';
|
|
3
3
|
/**
|
|
4
4
|
* renderOptions:
|
|
5
5
|
* backgroundColor: a color value for the background-color of the badge
|
|
6
6
|
* color: a color value for the color of the badge text
|
|
7
7
|
* styles: an object for additional styles for the badge
|
|
8
|
-
* type: type of the badge: default, negative or
|
|
8
|
+
* type: type of the badge: default, negative or an object mapping values to types
|
|
9
9
|
*
|
|
10
10
|
* If column value is an array, place each item of that array inside a badge,
|
|
11
11
|
* otherwise add the column value in the badge.
|
|
@@ -20,12 +20,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
20
20
|
required: true;
|
|
21
21
|
};
|
|
22
22
|
column: {
|
|
23
|
-
type: PropType<
|
|
23
|
+
type: PropType<BadgeColumn>;
|
|
24
24
|
required: true;
|
|
25
25
|
};
|
|
26
|
-
}, unknown, unknown, {
|
|
27
|
-
|
|
28
|
-
},
|
|
26
|
+
}, unknown, unknown, {}, {
|
|
27
|
+
getBadgeType(value: string): string;
|
|
28
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
29
29
|
value: {
|
|
30
30
|
type: (StringConstructor | BooleanConstructor | ArrayConstructor | NumberConstructor)[];
|
|
31
31
|
required: true;
|
|
@@ -35,7 +35,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
required: true;
|
|
36
36
|
};
|
|
37
37
|
column: {
|
|
38
|
-
type: PropType<
|
|
38
|
+
type: PropType<BadgeColumn>;
|
|
39
39
|
required: true;
|
|
40
40
|
};
|
|
41
41
|
}>>, {}>;
|
|
@@ -9,12 +9,12 @@ export declare const ColumnTypes: {
|
|
|
9
9
|
required: true;
|
|
10
10
|
};
|
|
11
11
|
column: {
|
|
12
|
-
type: import("vue").PropType<import("./types").
|
|
12
|
+
type: import("vue").PropType<import("./types").BadgeColumn>;
|
|
13
13
|
required: true;
|
|
14
14
|
};
|
|
15
|
-
}, unknown, unknown, {
|
|
16
|
-
|
|
17
|
-
},
|
|
15
|
+
}, unknown, unknown, {}, {
|
|
16
|
+
getBadgeType(value: string): string;
|
|
17
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
18
18
|
value: {
|
|
19
19
|
type: (StringConstructor | BooleanConstructor | ArrayConstructor | NumberConstructor)[];
|
|
20
20
|
required: true;
|
|
@@ -24,7 +24,7 @@ export declare const ColumnTypes: {
|
|
|
24
24
|
required: true;
|
|
25
25
|
};
|
|
26
26
|
column: {
|
|
27
|
-
type: import("vue").PropType<import("./types").
|
|
27
|
+
type: import("vue").PropType<import("./types").BadgeColumn>;
|
|
28
28
|
required: true;
|
|
29
29
|
};
|
|
30
30
|
}>>, {}>;
|
|
@@ -5,6 +5,11 @@ export interface GridColumn {
|
|
|
5
5
|
renderAs: ColumnType;
|
|
6
6
|
renderOptions?: Record<string, unknown>;
|
|
7
7
|
}
|
|
8
|
+
export interface BadgeColumn extends GridColumn {
|
|
9
|
+
renderOptions?: {
|
|
10
|
+
type?: Record<string, string> | string;
|
|
11
|
+
};
|
|
12
|
+
}
|
|
8
13
|
export interface NumericColumn extends GridColumn {
|
|
9
14
|
renderOptions: {
|
|
10
15
|
approximate: boolean;
|
|
@@ -66,16 +66,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
66
66
|
type: ObjectConstructor;
|
|
67
67
|
required: true;
|
|
68
68
|
};
|
|
69
|
-
/**
|
|
70
|
-
* Specify if the grid has frozen (fixed) left column
|
|
71
|
-
*/
|
|
72
69
|
column: {
|
|
73
|
-
type: PropType<
|
|
70
|
+
type: PropType<import("./columnTypes/types").BadgeColumn>;
|
|
74
71
|
required: true;
|
|
75
72
|
};
|
|
76
|
-
}, unknown, unknown, {
|
|
77
|
-
|
|
78
|
-
},
|
|
73
|
+
}, unknown, unknown, {}, {
|
|
74
|
+
getBadgeType(value: string): string;
|
|
75
|
+
}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
79
76
|
value: {
|
|
80
77
|
type: (StringConstructor | BooleanConstructor | ArrayConstructor | NumberConstructor)[];
|
|
81
78
|
required: true;
|
|
@@ -84,11 +81,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
84
81
|
type: ObjectConstructor;
|
|
85
82
|
required: true;
|
|
86
83
|
};
|
|
87
|
-
/**
|
|
88
|
-
* Specify if the grid has frozen (fixed) left column
|
|
89
|
-
*/
|
|
90
84
|
column: {
|
|
91
|
-
type: PropType<
|
|
85
|
+
type: PropType<import("./columnTypes/types").BadgeColumn>;
|
|
92
86
|
required: true;
|
|
93
87
|
};
|
|
94
88
|
}>>, {}> | import("vue").DefineComponent<{
|
|
@@ -18,6 +18,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
18
18
|
type: BooleanConstructor;
|
|
19
19
|
default: boolean;
|
|
20
20
|
};
|
|
21
|
+
/**
|
|
22
|
+
* Defines if the loading is displayed as a spinner
|
|
23
|
+
*/
|
|
24
|
+
isLoaderSpinner: {
|
|
25
|
+
type: BooleanConstructor;
|
|
26
|
+
default: boolean;
|
|
27
|
+
};
|
|
21
28
|
/**
|
|
22
29
|
* Defines the property, which changes will trigger the fetching of data
|
|
23
30
|
*/
|
|
@@ -44,6 +51,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
44
51
|
type: BooleanConstructor;
|
|
45
52
|
default: boolean;
|
|
46
53
|
};
|
|
54
|
+
/**
|
|
55
|
+
* Defines if the loading is displayed as a spinner
|
|
56
|
+
*/
|
|
57
|
+
isLoaderSpinner: {
|
|
58
|
+
type: BooleanConstructor;
|
|
59
|
+
default: boolean;
|
|
60
|
+
};
|
|
47
61
|
/**
|
|
48
62
|
* Defines the property, which changes will trigger the fetching of data
|
|
49
63
|
*/
|
|
@@ -54,5 +68,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
54
68
|
}>>, {
|
|
55
69
|
watcher: Record<string, any>;
|
|
56
70
|
isLoaderFullscreen: boolean;
|
|
71
|
+
isLoaderSpinner: boolean;
|
|
57
72
|
}>;
|
|
58
73
|
export default _default;
|
package/dist/index.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import { createRToastManager } from './components/r-toast/r-toast-manager';
|
|
|
3
3
|
import * as tokens from './styles/tokens';
|
|
4
4
|
import * as icons from './components/r-icon/r-icon-sprites';
|
|
5
5
|
export * from './components';
|
|
6
|
+
export * from './directives';
|
|
6
7
|
export { createRToastManager };
|
|
7
8
|
export { tokens, icons };
|
|
8
9
|
/**
|
package/dist/revel.mjs
CHANGED
|
@@ -10792,6 +10792,13 @@ const xb = /* @__PURE__ */ Z(k7, [["render", V7]]), H7 = U({
|
|
|
10792
10792
|
type: Boolean,
|
|
10793
10793
|
default: !0
|
|
10794
10794
|
},
|
|
10795
|
+
/**
|
|
10796
|
+
* Defines if the loading is displayed as a spinner
|
|
10797
|
+
*/
|
|
10798
|
+
isLoaderSpinner: {
|
|
10799
|
+
type: Boolean,
|
|
10800
|
+
default: !1
|
|
10801
|
+
},
|
|
10795
10802
|
/**
|
|
10796
10803
|
* Defines the property, which changes will trigger the fetching of data
|
|
10797
10804
|
*/
|
|
@@ -10841,8 +10848,9 @@ function Y7(M, b, z, p, o, O) {
|
|
|
10841
10848
|
return r(), d("div", F7, [
|
|
10842
10849
|
M.isLoading ? (r(), n0(e, {
|
|
10843
10850
|
key: 0,
|
|
10844
|
-
fullscreen: M.isLoaderFullscreen
|
|
10845
|
-
|
|
10851
|
+
fullscreen: M.isLoaderFullscreen,
|
|
10852
|
+
spinner: M.isLoaderSpinner
|
|
10853
|
+
}, null, 8, ["fullscreen", "spinner"])) : (r(), d(R0, { key: 1 }, [
|
|
10846
10854
|
M.hasRows ? (r(), d("table", j7, [
|
|
10847
10855
|
X(M.$slots, "colgroup"),
|
|
10848
10856
|
X(M.$slots, "thead", {}, () => [
|
|
@@ -10881,10 +10889,10 @@ const S3 = /* @__PURE__ */ Z(H7, [["render", Y7]]), U7 = U({
|
|
|
10881
10889
|
required: !0
|
|
10882
10890
|
}
|
|
10883
10891
|
},
|
|
10884
|
-
|
|
10885
|
-
|
|
10886
|
-
const { type:
|
|
10887
|
-
return M;
|
|
10892
|
+
methods: {
|
|
10893
|
+
getBadgeType(M) {
|
|
10894
|
+
const { type: b = "default" } = this.column.renderOptions || {};
|
|
10895
|
+
return typeof b == "object" ? b[M] : b;
|
|
10888
10896
|
}
|
|
10889
10897
|
}
|
|
10890
10898
|
});
|
|
@@ -10892,8 +10900,8 @@ function K7(M, b, z, p, o, O) {
|
|
|
10892
10900
|
const e = F("r-badge");
|
|
10893
10901
|
return r(), d("div", null, [
|
|
10894
10902
|
Array.isArray(M.value) ? (r(!0), d(R0, { key: 0 }, j0(M.value, (c, t) => (r(), n0(e, {
|
|
10895
|
-
key: `badge-${
|
|
10896
|
-
type: M.
|
|
10903
|
+
key: `badge-${c}-${t}`,
|
|
10904
|
+
type: M.getBadgeType(c),
|
|
10897
10905
|
class: "r-mr-2"
|
|
10898
10906
|
}, {
|
|
10899
10907
|
default: b0(() => [
|
|
@@ -10902,7 +10910,7 @@ function K7(M, b, z, p, o, O) {
|
|
|
10902
10910
|
_: 2
|
|
10903
10911
|
}, 1032, ["type"]))), 128)) : (r(), n0(e, {
|
|
10904
10912
|
key: 1,
|
|
10905
|
-
type: M.
|
|
10913
|
+
type: M.getBadgeType(M.value),
|
|
10906
10914
|
class: "r-mr-2"
|
|
10907
10915
|
}, {
|
|
10908
10916
|
default: b0(() => [
|
|
@@ -15899,9 +15907,14 @@ export {
|
|
|
15899
15907
|
Bg as RTile,
|
|
15900
15908
|
k3 as RToast,
|
|
15901
15909
|
_g as RToggle,
|
|
15910
|
+
Kp as clickOutside,
|
|
15911
|
+
Nc as content,
|
|
15902
15912
|
xg as createRToastManager,
|
|
15903
15913
|
aN as default,
|
|
15914
|
+
Up as fsExclude,
|
|
15904
15915
|
nN as icons,
|
|
15905
15916
|
eN as install,
|
|
15906
|
-
|
|
15917
|
+
io as lazy,
|
|
15918
|
+
AN as tokens,
|
|
15919
|
+
so as tooltip
|
|
15907
15920
|
};
|