@rebilly/revel 6.31.5 → 6.33.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,6 +1,6 @@
1
- ## [6.31.5](https://github.com/Rebilly/rebilly/compare/revel-v6.31.4...revel-v6.31.5) (2024-09-11)
1
+ ## [6.33.0](https://github.com/Rebilly/rebilly/compare/revel-v6.32.0...revel-v6.33.0) (2024-09-12)
2
2
 
3
3
 
4
- ### Bug Fixes
4
+ ### Features
5
5
 
6
- * **recomm:** Set default time on time select ([#7455](https://github.com/Rebilly/rebilly/issues/7455)) ([3cbcb5a](https://github.com/Rebilly/rebilly/commit/3cbcb5aca8a6f48b857cad9c922a145b45f5a9ad))
6
+ * **instruments:** Allow custom consent check box ([#7318](https://github.com/Rebilly/rebilly/issues/7318)) ([f966501](https://github.com/Rebilly/rebilly/commit/f966501cc9cd71130a236a11cd9ddbcb3b1e459d))
@@ -8,6 +8,7 @@ export { default as RCheckbox } from './r-checkbox/r-checkbox.vue';
8
8
  export { default as RDateInput } from './r-date-input/r-date-input.vue';
9
9
  export { default as RFileUpload } from './r-file-upload/r-file-upload.vue';
10
10
  export { default as RGrid } from './r-grid/r-grid.vue';
11
+ export { default as RGridCell } from './r-grid/r-grid-cell.vue';
11
12
  export { default as RIcon } from './r-icon/r-icon.vue';
12
13
  export { default as RImg } from './r-img/r-img.vue';
13
14
  export { default as RInput } from './r-input/r-input.vue';
@@ -0,0 +1,68 @@
1
+ import type { GridSize, Distribution } from './types';
2
+ interface Props {
3
+ /**
4
+ * Number of columns the cell will fill (1 to 12)
5
+ */
6
+ span?: GridSize;
7
+ /**
8
+ * Justify items in the cell
9
+ */
10
+ justifySelf?: Nullable<Distribution>;
11
+ /**
12
+ * Align items in the cell
13
+ */
14
+ alignSelf?: Nullable<Distribution>;
15
+ /**
16
+ * Move to the next row
17
+ */
18
+ wrap?: boolean;
19
+ /**
20
+ * Move the cell to the right. E.g "1, 5"
21
+ */
22
+ offset?: Nullable<Offset>;
23
+ }
24
+ type Offset = `${GridSize}, ${GridSize}`;
25
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
26
+ span: string;
27
+ justifySelf: null;
28
+ alignSelf: null;
29
+ wrap: boolean;
30
+ offset: null;
31
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
32
+ span: string;
33
+ justifySelf: null;
34
+ alignSelf: null;
35
+ wrap: boolean;
36
+ offset: null;
37
+ }>>>, {
38
+ span: GridSize;
39
+ offset: Nullable<"1, 1" | "1, 2" | "1, 3" | "1, 4" | "1, 5" | "1, 6" | "1, 7" | "1, 8" | "1, 9" | "1, 10" | "1, 11" | "1, 12" | "2, 1" | "2, 2" | "2, 3" | "2, 4" | "2, 5" | "2, 6" | "2, 7" | "2, 8" | "2, 9" | "2, 10" | "2, 11" | "2, 12" | "3, 1" | "3, 2" | "3, 3" | "3, 4" | "3, 5" | "3, 6" | "3, 7" | "3, 8" | "3, 9" | "3, 10" | "3, 11" | "3, 12" | "4, 1" | "4, 2" | "4, 3" | "4, 4" | "4, 5" | "4, 6" | "4, 7" | "4, 8" | "4, 9" | "4, 10" | "4, 11" | "4, 12" | "5, 1" | "5, 2" | "5, 3" | "5, 4" | "5, 5" | "5, 6" | "5, 7" | "5, 8" | "5, 9" | "5, 10" | "5, 11" | "5, 12" | "6, 1" | "6, 2" | "6, 3" | "6, 4" | "6, 5" | "6, 6" | "6, 7" | "6, 8" | "6, 9" | "6, 10" | "6, 11" | "6, 12" | "7, 1" | "7, 2" | "7, 3" | "7, 4" | "7, 5" | "7, 6" | "7, 7" | "7, 8" | "7, 9" | "7, 10" | "7, 11" | "7, 12" | "8, 1" | "8, 2" | "8, 3" | "8, 4" | "8, 5" | "8, 6" | "8, 7" | "8, 8" | "8, 9" | "8, 10" | "8, 11" | "8, 12" | "9, 1" | "9, 2" | "9, 3" | "9, 4" | "9, 5" | "9, 6" | "9, 7" | "9, 8" | "9, 9" | "9, 10" | "9, 11" | "9, 12" | "10, 1" | "10, 2" | "10, 3" | "10, 4" | "10, 5" | "10, 6" | "10, 7" | "10, 8" | "10, 9" | "10, 10" | "10, 11" | "10, 12" | "11, 1" | "11, 2" | "11, 3" | "11, 4" | "11, 5" | "11, 6" | "11, 7" | "11, 8" | "11, 9" | "11, 10" | "11, 11" | "11, 12" | "12, 1" | "12, 2" | "12, 3" | "12, 4" | "12, 5" | "12, 6" | "12, 7" | "12, 8" | "12, 9" | "12, 10" | "12, 11" | "12, 12">;
40
+ justifySelf: Nullable<Distribution>;
41
+ alignSelf: Nullable<Distribution>;
42
+ wrap: boolean;
43
+ }>, {
44
+ default?(_: {}): any;
45
+ }>;
46
+ export default _default;
47
+ type __VLS_WithDefaults<P, D> = {
48
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
49
+ default: D[K];
50
+ }> : P[K];
51
+ };
52
+ type __VLS_Prettify<T> = {
53
+ [K in keyof T]: T[K];
54
+ } & {};
55
+ type __VLS_WithTemplateSlots<T, S> = T & {
56
+ new (): {
57
+ $slots: S;
58
+ };
59
+ };
60
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
61
+ type __VLS_TypePropsToOption<T> = {
62
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
63
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
64
+ } : {
65
+ type: import('vue').PropType<T[K]>;
66
+ required: true;
67
+ };
68
+ };
@@ -1,223 +1,81 @@
1
- import type { PropType } from 'vue';
2
- import type { GridColumn } from './columnTypes/types';
3
- interface Column extends GridColumn {
4
- [key: string]: unknown;
5
- name: string;
6
- renderOptions?: Record<string, unknown>;
7
- class?: Record<string, boolean>;
8
- style?: Record<string, unknown>;
9
- highlight?: boolean;
10
- header?: (column: unknown) => string;
11
- label?: string;
12
- }
13
- declare const _default: import("vue").DefineComponent<{
1
+ import type { GridSize, Gap, Distribution, ContentDistribution } from './types';
2
+ export interface Props {
14
3
  /**
15
- * Specify the columns
4
+ * Number of grid columns (1 to 12)
16
5
  */
17
- columns: {
18
- type: PropType<{
19
- columns: Column[];
20
- }>;
21
- required: true;
22
- };
6
+ columns?: GridSize;
23
7
  /**
24
- * Specify if the grid has frozen (fixed) left column
8
+ * Gap between grid columns (1 to 12)
25
9
  */
26
- hasFrozenColumn: {
27
- type: BooleanConstructor;
28
- default: boolean;
29
- };
10
+ gap?: Gap;
30
11
  /**
31
- * Defines the property, which changes will trigger the fetching of data
12
+ * Justify items in the grid
32
13
  */
33
- watcher: {
34
- type: (BooleanConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
35
- default: null;
36
- };
14
+ justifyItems?: Nullable<Distribution>;
37
15
  /**
38
- * Returns some data to be rendered by the default scoped slot
16
+ * Align items in the grid
39
17
  */
40
- provider: {
41
- type: PropType<() => object[] | object[] | Promise<object[]>>;
42
- required: true;
43
- };
18
+ alignItems?: Nullable<Distribution>;
44
19
  /**
45
- * Defines if the loading state is fullscreen
20
+ * Justify content in the grid
46
21
  */
47
- isLoaderFullscreen: {
48
- type: BooleanConstructor;
49
- default: boolean;
50
- };
51
- }, unknown, {
52
- data: never[];
53
- }, {
54
- computedColumns(): Column[];
55
- }, {
56
- getColorFromIndex: (value: string | number, baseRGB?: string) => {
57
- color: string;
58
- backgroundColor: string;
59
- } | undefined;
60
- getComponent({ renderAs }: Column): import("vue").DefineComponent<{
61
- value: {
62
- type: (BooleanConstructor | ArrayConstructor | StringConstructor | NumberConstructor)[];
63
- required: true;
64
- };
65
- row: {
66
- type: ObjectConstructor;
67
- required: true;
68
- };
69
- column: {
70
- type: PropType<import("./columnTypes/types").BadgeColumn>;
71
- required: true;
72
- };
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<{
76
- value: {
77
- type: (BooleanConstructor | ArrayConstructor | StringConstructor | NumberConstructor)[];
78
- required: true;
79
- };
80
- row: {
81
- type: ObjectConstructor;
82
- required: true;
83
- };
84
- column: {
85
- type: PropType<import("./columnTypes/types").BadgeColumn>;
86
- required: true;
87
- };
88
- }>>, {}> | import("vue").DefineComponent<{
89
- column: {
90
- type: PropType<import("./columnTypes/types").ButtonColumn>;
91
- required: true;
92
- };
93
- row: {
94
- type: ObjectConstructor;
95
- required: true;
96
- };
97
- value: {
98
- type: StringConstructor;
99
- default: null;
100
- };
101
- }, unknown, unknown, {
102
- buttons(): import("./columnTypes/types").ButtonOptions[];
103
- }, {
104
- buttonOptions(button: import("./columnTypes/types").ButtonOptions): import("./columnTypes/button.vue").ButtonColumnRenderOptions;
105
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
106
- column: {
107
- type: PropType<import("./columnTypes/types").ButtonColumn>;
108
- required: true;
109
- };
110
- row: {
111
- type: ObjectConstructor;
112
- required: true;
113
- };
114
- value: {
115
- type: StringConstructor;
116
- default: null;
117
- };
118
- }>>, {
119
- value: string;
120
- }> | import("vue").DefineComponent<{
121
- column: {
122
- type: PropType<GridColumn>;
123
- required: true;
124
- };
125
- value: {
126
- type: StringConstructor;
127
- required: true;
128
- };
129
- }, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
130
- column: {
131
- type: PropType<GridColumn>;
132
- required: true;
133
- };
134
- value: {
135
- type: StringConstructor;
136
- required: true;
137
- };
138
- }>>, {}> | import("vue").DefineComponent<{
139
- column: {
140
- type: PropType<import("./columnTypes/types").DateColumn>;
141
- required: true;
142
- };
143
- value: {
144
- type: StringConstructor;
145
- required: true;
146
- };
147
- }, unknown, unknown, {
148
- displayValue(): string;
149
- title(): string;
150
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
151
- column: {
152
- type: PropType<import("./columnTypes/types").DateColumn>;
153
- required: true;
154
- };
155
- value: {
156
- type: StringConstructor;
157
- required: true;
158
- };
159
- }>>, {}> | import("vue").DefineComponent<{
160
- value: {
161
- type: PropType<string | number>;
162
- required: true;
163
- };
164
- column: {
165
- type: PropType<import("./columnTypes/types").NumericColumn>;
166
- required: true;
167
- };
168
- }, unknown, unknown, {
169
- displayValue(): string | number | null;
170
- }, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
171
- value: {
172
- type: PropType<string | number>;
173
- required: true;
174
- };
175
- column: {
176
- type: PropType<import("./columnTypes/types").NumericColumn>;
177
- required: true;
178
- };
179
- }>>, {}>;
180
- }, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
22
+ jutifyContent?: Nullable<ContentDistribution>;
181
23
  /**
182
- * Specify the columns
24
+ * Align content in the grid
183
25
  */
184
- columns: {
185
- type: PropType<{
186
- columns: Column[];
187
- }>;
188
- required: true;
189
- };
26
+ alignContent?: Nullable<ContentDistribution>;
190
27
  /**
191
- * Specify if the grid has frozen (fixed) left column
28
+ * Prevents grid to stack on smaller screens
192
29
  */
193
- hasFrozenColumn: {
194
- type: BooleanConstructor;
195
- default: boolean;
196
- };
197
- /**
198
- * Defines the property, which changes will trigger the fetching of data
199
- */
200
- watcher: {
201
- type: (BooleanConstructor | ObjectConstructor | StringConstructor | NumberConstructor)[];
202
- default: null;
30
+ unstackable?: boolean;
31
+ }
32
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
33
+ columns: string;
34
+ gap: string;
35
+ justifyItems: null;
36
+ alignItems: null;
37
+ jutifyContent: null;
38
+ alignContent: null;
39
+ unstackable: boolean;
40
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
41
+ columns: string;
42
+ gap: string;
43
+ justifyItems: null;
44
+ alignItems: null;
45
+ jutifyContent: null;
46
+ alignContent: null;
47
+ unstackable: boolean;
48
+ }>>>, {
49
+ columns: GridSize;
50
+ gap: Gap;
51
+ justifyItems: Nullable<Distribution>;
52
+ alignItems: Nullable<Distribution>;
53
+ jutifyContent: Nullable<ContentDistribution>;
54
+ alignContent: Nullable<ContentDistribution>;
55
+ unstackable: boolean;
56
+ }>, {
57
+ default?(_: {}): any;
58
+ }>;
59
+ export default _default;
60
+ type __VLS_WithDefaults<P, D> = {
61
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
62
+ default: D[K];
63
+ }> : P[K];
64
+ };
65
+ type __VLS_Prettify<T> = {
66
+ [K in keyof T]: T[K];
67
+ } & {};
68
+ type __VLS_WithTemplateSlots<T, S> = T & {
69
+ new (): {
70
+ $slots: S;
203
71
  };
204
- /**
205
- * Returns some data to be rendered by the default scoped slot
206
- */
207
- provider: {
208
- type: PropType<() => object[] | object[] | Promise<object[]>>;
72
+ };
73
+ type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
74
+ type __VLS_TypePropsToOption<T> = {
75
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
76
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
77
+ } : {
78
+ type: import('vue').PropType<T[K]>;
209
79
  required: true;
210
80
  };
211
- /**
212
- * Defines if the loading state is fullscreen
213
- */
214
- isLoaderFullscreen: {
215
- type: BooleanConstructor;
216
- default: boolean;
217
- };
218
- }>>, {
219
- isLoaderFullscreen: boolean;
220
- watcher: string | number | boolean | Record<string, any>;
221
- hasFrozenColumn: boolean;
222
- }>;
223
- export default _default;
81
+ };
@@ -0,0 +1,4 @@
1
+ export type GridSize = '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9' | '10' | '11' | '12';
2
+ export type Distribution = 'start' | 'end' | 'center' | 'stretch' | 'baseline';
3
+ export type ContentDistribution = Distribution | 'space-between' | 'space-around' | 'space-evenly';
4
+ export type Gap = '0' | GridSize;
@@ -83,8 +83,6 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
83
83
  inputEvents: Record<string, unknown>;
84
84
  rightIcon: Nullable<"fingerprint" | "dashboard" | "lists" | "automation" | "customers" | "orders" | "transactions" | "guides" | "settings" | "alerts" | "stream" | "search" | "filter" | "collapse-segments" | "resize-columns" | "segments" | "lock" | "caret-up" | "caret-down" | "caret-down-s" | "caret-left" | "caret-right" | "arrow-up" | "arrow-down" | "arrow-left" | "arrow-right" | "arrow-up-l" | "arrow-down-l" | "arrow-left-l" | "arrow-right-l" | "close" | "close-s" | "logout" | "actions" | "circle" | "eye" | "eye-closed" | "burger" | "help" | "info" | "dash-l" | "company" | "website" | "email" | "external-link" | "trash" | "bank" | "map-marker" | "credit-card" | "checkout" | "check-s" | "custom-fields" | "calendar" | "columns" | "blocklists" | "webhooks" | "sticky-note" | "clip" | "loading" | "product" | "api-key" | "coupon" | "average" | "payments" | "tag" | "clone" | "copy" | "edit" | "edit-s" | "stop" | "unlock" | "event" | "invoices" | "rules" | "users" | "sharp" | "at" | "file" | "download" | "export" | "data-exports" | "shipping" | "plus" | "drag" | "reset" | "drag-move" | "world" | "integrations" | "id" | "phone" | "batch" | "merge" | "placeholders" | "caret-double-left" | "caret-double-right" | "heart" | "checkbox-checkmark" | "radio-checkmark" | "star" | "star-empty" | "report-match" | "emulate" | "billing-portal" | "app-store" | "kyc" | "cake" | "briefcase" | "tag-untag" | "risk-score" | "list" | "notifications" | "one-column" | "rebilly-logo" | "two-columns" | "meter" | "reports" | "allowlists" | "collapse-layout" | "rebilly-icon" | "sun" | "moon" | "upload" | "camera">;
85
85
  name: string;
86
- rows: string | number;
87
- numeric: boolean;
88
86
  helpText: Nullable<string>;
89
87
  multiline: boolean;
90
88
  submitOnEnter: boolean;
@@ -96,6 +94,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
96
94
  leftLabel: Nullable<string>;
97
95
  rightLabel: Nullable<string>;
98
96
  password: boolean;
97
+ numeric: boolean;
98
+ rows: string | number;
99
99
  autoFocus: boolean;
100
100
  autoHighlight: boolean;
101
101
  autoHighlightOnFocus: boolean;
@@ -62,9 +62,9 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
62
62
  size: Nullable<ModalSize>;
63
63
  scroll: boolean;
64
64
  show: boolean;
65
- duration: number;
66
65
  cancelLabel: string;
67
66
  scrollContent: boolean;
67
+ duration: number;
68
68
  }>, {
69
69
  "header-actions"?(_: {}): any;
70
70
  contents?(_: {}): any;
@@ -121,8 +121,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
121
121
  autoHide: boolean;
122
122
  position: "bottomEnd" | "bottomStart" | "topStart" | "topEnd";
123
123
  offset: number;
124
- state: Nullable<boolean>;
125
124
  duration: number;
125
+ state: Nullable<boolean>;
126
126
  escToHide: boolean;
127
127
  globalAutoHide: boolean;
128
128
  closeFunction: Nullable<() => unknown>;