@rebilly/revel 6.8.0 → 6.10.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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [6.10.0](https://github.com/Rebilly/rebilly/compare/revel-v6.9.0...revel-v6.10.0) (2024-01-15)
2
+
3
+
4
+ ### Features
5
+
6
+ * **billing-portal:** Setup change seats modal ([#2874](https://github.com/Rebilly/rebilly/issues/2874)) ([59c63f6](https://github.com/Rebilly/rebilly/commit/59c63f6b27e25fee0efb38d2b2a5aad6bc2811d3))
7
+
8
+ ## [6.9.0](https://github.com/Rebilly/rebilly/compare/revel-v6.8.0...revel-v6.9.0) (2024-01-15)
9
+
10
+
11
+ ### Features
12
+
13
+ * **revel:** Add new column type to `RGrid` component ([#2875](https://github.com/Rebilly/rebilly/issues/2875)) ([752cb85](https://github.com/Rebilly/rebilly/commit/752cb85c809fc3b37d387de6e9a881d58111fa4b))
14
+
1
15
  ## [6.8.0](https://github.com/Rebilly/rebilly/compare/revel-v6.7.0...revel-v6.8.0) (2024-01-11)
2
16
 
3
17
 
@@ -0,0 +1,39 @@
1
+ import type { PropType } from 'vue';
2
+ import type { ButtonColumn, ButtonOptions } from './types';
3
+ export interface ButtonColumnRenderOptions extends Omit<ButtonOptions, 'onClick'> {
4
+ iconLeft?: string;
5
+ }
6
+ declare const _default: import("vue").DefineComponent<{
7
+ column: {
8
+ type: PropType<ButtonColumn>;
9
+ required: true;
10
+ };
11
+ row: {
12
+ type: ObjectConstructor;
13
+ required: true;
14
+ };
15
+ value: {
16
+ type: StringConstructor;
17
+ default: null;
18
+ };
19
+ }, unknown, unknown, {
20
+ buttons(): ButtonOptions[];
21
+ }, {
22
+ buttonOptions(button: ButtonOptions): ButtonColumnRenderOptions;
23
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
24
+ column: {
25
+ type: PropType<ButtonColumn>;
26
+ required: true;
27
+ };
28
+ row: {
29
+ type: ObjectConstructor;
30
+ required: true;
31
+ };
32
+ value: {
33
+ type: StringConstructor;
34
+ default: null;
35
+ };
36
+ }>>, {
37
+ value: string;
38
+ }>;
39
+ export default _default;
@@ -28,6 +28,39 @@ export declare const ColumnTypes: {
28
28
  required: true;
29
29
  };
30
30
  }>>, {}>;
31
+ button: import("vue").DefineComponent<{
32
+ column: {
33
+ type: import("vue").PropType<import("./types").ButtonColumn>;
34
+ required: true;
35
+ };
36
+ row: {
37
+ type: ObjectConstructor;
38
+ required: true;
39
+ };
40
+ value: {
41
+ type: StringConstructor;
42
+ default: null;
43
+ };
44
+ }, unknown, unknown, {
45
+ buttons(): import("./types").ButtonOptions[];
46
+ }, {
47
+ buttonOptions(button: import("./types").ButtonOptions): import("./button.vue").ButtonColumnRenderOptions;
48
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
49
+ column: {
50
+ type: import("vue").PropType<import("./types").ButtonColumn>;
51
+ required: true;
52
+ };
53
+ row: {
54
+ type: ObjectConstructor;
55
+ required: true;
56
+ };
57
+ value: {
58
+ type: StringConstructor;
59
+ default: null;
60
+ };
61
+ }>>, {
62
+ value: string;
63
+ }>;
31
64
  text: import("vue").DefineComponent<{
32
65
  column: {
33
66
  type: import("vue").PropType<import("./types").GridColumn>;
@@ -1,5 +1,5 @@
1
1
  import type { DateTimeFormatsVariant } from '../../../common/datetime-formats';
2
- export type ColumnType = 'date' | 'badge' | 'text' | 'numeric';
2
+ export type ColumnType = 'date' | 'badge' | 'text' | 'numeric' | 'button';
3
3
  export interface GridColumn {
4
4
  name: string;
5
5
  renderAs: ColumnType;
@@ -22,3 +22,16 @@ export interface DateColumn extends GridColumn {
22
22
  timezone: string;
23
23
  };
24
24
  }
25
+ export interface ButtonOptions {
26
+ label?: string;
27
+ icon?: string;
28
+ type?: string;
29
+ size?: string;
30
+ tooltip?: string;
31
+ onClick: (row: Record<string, unknown>) => void;
32
+ }
33
+ export interface ButtonColumn extends GridColumn {
34
+ renderOptions: {
35
+ buttons: ButtonOptions[];
36
+ };
37
+ }
@@ -90,6 +90,42 @@ declare const _default: import("vue").DefineComponent<{
90
90
  */
91
91
  };
92
92
  }>>, {}> | import("vue").DefineComponent<{
93
+ column: {
94
+ type: PropType<import("./columnTypes/types").ButtonColumn>;
95
+ required: true;
96
+ };
97
+ row: {
98
+ type: ObjectConstructor;
99
+ required: true;
100
+ };
101
+ value: {
102
+ type: StringConstructor;
103
+ default: null; /**
104
+ * Specify the columns
105
+ */
106
+ };
107
+ }, unknown, unknown, {
108
+ buttons(): import("./columnTypes/types").ButtonOptions[];
109
+ }, {
110
+ buttonOptions(button: import("./columnTypes/types").ButtonOptions): import("./columnTypes/button.vue").ButtonColumnRenderOptions;
111
+ }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
112
+ column: {
113
+ type: PropType<import("./columnTypes/types").ButtonColumn>;
114
+ required: true;
115
+ };
116
+ row: {
117
+ type: ObjectConstructor;
118
+ required: true;
119
+ };
120
+ value: {
121
+ type: StringConstructor;
122
+ default: null; /**
123
+ * Specify the columns
124
+ */
125
+ };
126
+ }>>, {
127
+ value: string;
128
+ }> | import("vue").DefineComponent<{
93
129
  column: {
94
130
  type: PropType<GridColumn>;
95
131
  required: true;
@@ -54,7 +54,7 @@ declare const _default: import("vue").DefineComponent<{
54
54
  };
55
55
  classes(): Record<string, boolean>;
56
56
  }, {
57
- submit(): void;
57
+ submit(data?: object): void;
58
58
  close(): void;
59
59
  /**
60
60
  * Assures that the modal container is focused Or at least