@westartcom/bread-quasar-fields 0.0.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.
@@ -0,0 +1,53 @@
1
+ import { FieldType } from '../enums/FieldType';
2
+ import { InputType } from '../enums/InputType';
3
+
4
+ export interface ModelDefinition {
5
+ field_groups: {
6
+ [key: string]: ModelFieldGroupDefinition;
7
+ };
8
+ guards: {
9
+ fillable: string[];
10
+ hidden: string[];
11
+ };
12
+ model_info: {
13
+ name: string;
14
+ plural_name: string;
15
+ };
16
+ options: {
17
+ [key: string]: any;
18
+ };
19
+ rules: {
20
+ [key: string]: any;
21
+ };
22
+ }
23
+
24
+ export interface ModelFieldDefinition<
25
+ Type = FieldType,
26
+ InpT = InputType,
27
+ ExtraData = {
28
+ [key: string]: any;
29
+ }>
30
+ {
31
+ default: any;
32
+ description: string;
33
+ fillable: boolean;
34
+ hidden: boolean;
35
+ hidden_on: Array<string>;
36
+ input_type: InpT;
37
+ label: string;
38
+ name: string;
39
+ placeholder: string;
40
+ required: boolean;
41
+ rule_string: string;
42
+ type: Type;
43
+ extra_data?: ExtraData;
44
+ }
45
+
46
+ export interface ModelFieldGroupDefinition {
47
+ description?: string;
48
+ label?: string;
49
+ key: string;
50
+ tabbed?: string;
51
+ order: number;
52
+ fields: ModelFieldDefinition[];
53
+ }
package/package.json ADDED
@@ -0,0 +1,16 @@
1
+ {
2
+ "name": "@westartcom/bread-quasar-fields",
3
+ "version": "0.0.2",
4
+ "description": "Quasar compatible fields for bread package",
5
+ "main": "index.js",
6
+ "scripts": {
7
+ "test": "echo \"Error: no test specified\" && exit 1"
8
+ },
9
+ "author": "Christoffer",
10
+ "license": "ISC",
11
+ "dependencies": {
12
+ "vue": "^3.4.14",
13
+ "@quasar/extras": "^1.16.3",
14
+ "quasar": "^2.12.0"
15
+ }
16
+ }
package/tsconfig.json ADDED
@@ -0,0 +1,9 @@
1
+ // tsconfig.json
2
+ {
3
+ "compilerOptions": {
4
+ "baseUrl": ".",
5
+ "paths": {
6
+ "@westartcom/bread-quasar-fields/*": ["*"]
7
+ }
8
+ }
9
+ }