@flusys/ng-form-builder 0.1.0-alpha.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/package.json
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@flusys/ng-form-builder",
|
|
3
|
+
"version": "0.1.0-alpha.1",
|
|
4
|
+
"description": "Dynamic form builder for FLUSYS Angular applications",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"peerDependencies": {
|
|
7
|
+
"@angular/common": "^21.0.0",
|
|
8
|
+
"@angular/core": "^21.0.0",
|
|
9
|
+
"@angular/forms": "^21.0.0",
|
|
10
|
+
"@angular/cdk": "^21.0.0",
|
|
11
|
+
"pdfmake": "^0.2.0 || ^0.3.0"
|
|
12
|
+
},
|
|
13
|
+
"peerDependenciesMeta": {
|
|
14
|
+
"pdfmake": {
|
|
15
|
+
"optional": true
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"sideEffects": false,
|
|
19
|
+
"module": "fesm2022/flusys-ng-form-builder.mjs",
|
|
20
|
+
"typings": "types/flusys-ng-form-builder.d.ts",
|
|
21
|
+
"exports": {
|
|
22
|
+
"./package.json": {
|
|
23
|
+
"default": "./package.json"
|
|
24
|
+
},
|
|
25
|
+
".": {
|
|
26
|
+
"types": "./types/flusys-ng-form-builder.d.ts",
|
|
27
|
+
"default": "./fesm2022/flusys-ng-form-builder.mjs"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"dependencies": {
|
|
31
|
+
"tslib": "^2.3.0"
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared field styles for ng-form-builder
|
|
3
|
+
* Import this in components that render field components
|
|
4
|
+
*
|
|
5
|
+
* Usage: @use '@flusys/ng-form-builder/styles/fields';
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
// Field container
|
|
9
|
+
.fb-field {
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: column;
|
|
12
|
+
gap: 0.5rem;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
// Field label
|
|
16
|
+
.fb-field label {
|
|
17
|
+
font-size: 0.875rem;
|
|
18
|
+
font-weight: 500;
|
|
19
|
+
color: var(--text-color);
|
|
20
|
+
margin: 0;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Required indicator
|
|
24
|
+
.fb-field .fb-required {
|
|
25
|
+
color: var(--red-500);
|
|
26
|
+
margin-left: 0.25rem;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
// Help text
|
|
30
|
+
.fb-field .fb-help-text {
|
|
31
|
+
display: block;
|
|
32
|
+
font-size: 0.75rem;
|
|
33
|
+
color: var(--text-color-secondary);
|
|
34
|
+
margin-top: 0.25rem;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
// Error text
|
|
38
|
+
.fb-field .fb-error {
|
|
39
|
+
display: block;
|
|
40
|
+
font-size: 0.75rem;
|
|
41
|
+
color: var(--red-500);
|
|
42
|
+
margin-top: 0.25rem;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Full width inputs
|
|
46
|
+
.fb-field input.p-inputtext,
|
|
47
|
+
.fb-field textarea.p-textarea,
|
|
48
|
+
.fb-field .p-select,
|
|
49
|
+
.fb-field .p-multiselect,
|
|
50
|
+
.fb-field .p-datepicker {
|
|
51
|
+
width: 100%;
|
|
52
|
+
}
|