ichec-angular-core 0.3.2 → 0.3.3
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/fesm2022/ichec-angular-core.mjs +254 -118
- package/fesm2022/ichec-angular-core.mjs.map +1 -1
- package/package.json +1 -1
- package/styles/styles.scss +25 -22
- package/types/ichec-angular-core.d.ts +44 -13
package/package.json
CHANGED
package/styles/styles.scss
CHANGED
|
@@ -3,7 +3,8 @@
|
|
|
3
3
|
|
|
4
4
|
.content-container {
|
|
5
5
|
display: flex;
|
|
6
|
-
padding:
|
|
6
|
+
padding-left: 5px;
|
|
7
|
+
padding-right: 5px;
|
|
7
8
|
flex-direction: column;
|
|
8
9
|
justify-content: center;
|
|
9
10
|
align-items: center;
|
|
@@ -23,31 +24,24 @@
|
|
|
23
24
|
align-items: center;
|
|
24
25
|
flex-direction: column;
|
|
25
26
|
padding: 5px;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
.item-detail-heading {
|
|
29
|
-
width:100%;
|
|
30
|
-
max-width:500px
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.item-detail-header{
|
|
34
|
-
display: inline;
|
|
35
|
-
width: 100%;
|
|
36
|
-
max-width: 100px;
|
|
27
|
+
width: 100%;
|
|
37
28
|
}
|
|
38
29
|
|
|
39
30
|
.item-edit-container {
|
|
40
31
|
display: flex;
|
|
41
|
-
justify-content: left;
|
|
42
|
-
align-items: left;
|
|
43
32
|
flex-direction: column;
|
|
44
33
|
width:100%;
|
|
45
34
|
max-width:800px;
|
|
35
|
+
justify-content: left;
|
|
36
|
+
align-items: center;
|
|
37
|
+
text-align: center;
|
|
46
38
|
}
|
|
47
39
|
|
|
48
40
|
.item-edit-header {
|
|
49
41
|
display: inline;
|
|
50
42
|
width: 100%;
|
|
43
|
+
margin-top: 5px;
|
|
44
|
+
margin-bottom: 5px;
|
|
51
45
|
}
|
|
52
46
|
|
|
53
47
|
.item-field{
|
|
@@ -68,6 +62,7 @@
|
|
|
68
62
|
|
|
69
63
|
.image-holder {
|
|
70
64
|
display: flex;
|
|
65
|
+
flex-direction: column;
|
|
71
66
|
justify-content: center;
|
|
72
67
|
align-items: center;
|
|
73
68
|
overflow: hidden;
|
|
@@ -75,7 +70,13 @@
|
|
|
75
70
|
}
|
|
76
71
|
|
|
77
72
|
.button-container{
|
|
78
|
-
|
|
73
|
+
margin: 5px;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.button-group{
|
|
77
|
+
margin:5px;
|
|
78
|
+
display: flex;
|
|
79
|
+
flex-direction: row;
|
|
79
80
|
}
|
|
80
81
|
|
|
81
82
|
.form-card{
|
|
@@ -83,6 +84,15 @@
|
|
|
83
84
|
align-items: center;
|
|
84
85
|
flex-direction: column;
|
|
85
86
|
display: flex;
|
|
87
|
+
width: 100%;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
.form-card-left{
|
|
91
|
+
justify-content:center;
|
|
92
|
+
align-items: left;
|
|
93
|
+
flex-direction: column;
|
|
94
|
+
display: flex;
|
|
95
|
+
width: 100%;
|
|
86
96
|
}
|
|
87
97
|
|
|
88
98
|
.form-field{
|
|
@@ -98,13 +108,6 @@
|
|
|
98
108
|
margin: 5px;
|
|
99
109
|
}
|
|
100
110
|
|
|
101
|
-
.button-group{
|
|
102
|
-
margin:10px;
|
|
103
|
-
display: flex;
|
|
104
|
-
flex-direction: row;
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
|
|
108
111
|
|
|
109
112
|
|
|
110
113
|
|
|
@@ -572,6 +572,7 @@ declare class SelectTableComponent<T extends Identifiable> implements OnInit {
|
|
|
572
572
|
|
|
573
573
|
declare abstract class SelectionManager<D extends Identifiable, L extends Identifiable = D, C = D, U extends Identifiable = D> {
|
|
574
574
|
candidates: _angular_core.WritableSignal<Selectable<L>[]>;
|
|
575
|
+
dirty: _angular_core.WritableSignal<boolean>;
|
|
575
576
|
selected: _angular_core.WritableSignal<L[]>;
|
|
576
577
|
columns: TableColumn[];
|
|
577
578
|
itemService: ItemService<D, L, C, U>;
|
|
@@ -660,16 +661,21 @@ interface IFormFieldForm {
|
|
|
660
661
|
declare class FormFieldEditComponent {
|
|
661
662
|
availableTypes: ichec_angular_core.TypeChoice[];
|
|
662
663
|
readonly FieldType: typeof FieldType;
|
|
664
|
+
readonly deleteDialog: MatDialog;
|
|
663
665
|
form: _angular_core.InputSignal<FormGroup<IFormFieldForm>>;
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
666
|
+
canOrderUp: _angular_core.InputSignal<boolean>;
|
|
667
|
+
canOrderDown: _angular_core.InputSignal<boolean>;
|
|
668
|
+
orderUp: _angular_core.OutputEmitterRef<void>;
|
|
669
|
+
orderDown: _angular_core.OutputEmitterRef<void>;
|
|
670
|
+
deleted: _angular_core.OutputEmitterRef<void>;
|
|
667
671
|
get templateControl(): FormControl<IFileRecord>;
|
|
668
672
|
get fieldType(): FieldType;
|
|
669
|
-
|
|
670
|
-
|
|
673
|
+
onOrderUp(): void;
|
|
674
|
+
onOrderDown(): void;
|
|
675
|
+
onDelete(): void;
|
|
676
|
+
onDeleteClicked(): void;
|
|
671
677
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldEditComponent, never>;
|
|
672
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldEditComponent, "lib-form-field-edit", never, { "form": { "alias": "form"; "required": true; "isSignal": true; }; "
|
|
678
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldEditComponent, "lib-form-field-edit", never, { "form": { "alias": "form"; "required": true; "isSignal": true; }; "canOrderUp": { "alias": "canOrderUp"; "required": false; "isSignal": true; }; "canOrderDown": { "alias": "canOrderDown"; "required": false; "isSignal": true; }; }, { "orderUp": "orderUp"; "orderDown": "orderDown"; "deleted": "deleted"; }, never, never, true, never>;
|
|
673
679
|
}
|
|
674
680
|
|
|
675
681
|
interface IFormGroupForm {
|
|
@@ -688,6 +694,7 @@ declare class DynamicFormForm {
|
|
|
688
694
|
form: FormGroup<IDynamicFormForm>;
|
|
689
695
|
constructor();
|
|
690
696
|
get groups(): FormArray<FormGroup<IFormGroupForm>>;
|
|
697
|
+
groupSize(id: number): number;
|
|
691
698
|
getFileFields(form: IFormDetail): IFileField[];
|
|
692
699
|
orderUp(id: number): void;
|
|
693
700
|
orderDown(id: number): void;
|
|
@@ -743,21 +750,44 @@ declare class DynamicFormComponent {
|
|
|
743
750
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DynamicFormComponent, "lib-dynamic-form", never, { "inputForm": { "alias": "inputForm"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
744
751
|
}
|
|
745
752
|
|
|
753
|
+
interface IActiveGroup {
|
|
754
|
+
index: number;
|
|
755
|
+
group: FormGroup<IFormGroupForm>;
|
|
756
|
+
}
|
|
757
|
+
interface IActiveField {
|
|
758
|
+
index: number;
|
|
759
|
+
group_index: number;
|
|
760
|
+
field: FormGroup<IFormFieldForm>;
|
|
761
|
+
}
|
|
746
762
|
declare class DynamicFormBuilderComponent {
|
|
747
763
|
form: _angular_core.InputSignal<DynamicFormForm>;
|
|
748
764
|
handleSubmit: _angular_core.InputSignal<boolean>;
|
|
749
765
|
submitted: _angular_core.OutputEmitterRef<void>;
|
|
750
766
|
dirty: _angular_core.WritableSignal<boolean>;
|
|
767
|
+
activeGroup: _angular_core.WritableSignal<IActiveGroup | null>;
|
|
768
|
+
activeField: _angular_core.WritableSignal<IActiveField | null>;
|
|
751
769
|
fb: FormBuilder;
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
770
|
+
onGroupClick(index: number, group: FormGroup<IFormGroupForm>): void;
|
|
771
|
+
onFieldClick(index: number, group_index: number, field: FormGroup<IFormFieldForm>): void;
|
|
772
|
+
protected getFields(group: FormGroup<IFormGroupForm>): FormArray<FormGroup<IFormFieldForm>>;
|
|
773
|
+
isGroupSelected(id: number): boolean;
|
|
774
|
+
isFieldSelected(group_id: number, id: number): boolean;
|
|
775
|
+
getGroupLabel(control: AbstractControl): string;
|
|
776
|
+
getFieldLabel(control: AbstractControl): string;
|
|
777
|
+
allowOrderUp(): boolean;
|
|
778
|
+
allowOrderDown(): boolean;
|
|
779
|
+
allowGroupOrderUp(): boolean;
|
|
780
|
+
allowGroupOrderDown(): boolean;
|
|
758
781
|
onOrderUp(id: number): void;
|
|
759
782
|
onOrderDown(id: number): void;
|
|
760
|
-
|
|
783
|
+
addGroup(): void;
|
|
784
|
+
addField(group: FormGroup<IFormGroupForm>): void;
|
|
785
|
+
deleteGroup(id: number): void;
|
|
786
|
+
deleteField(): void;
|
|
787
|
+
onFieldOrderUp(): void;
|
|
788
|
+
onFieldOrderDown(): void;
|
|
789
|
+
onGroupOrderUp(): void;
|
|
790
|
+
onGroupOrderDown(): void;
|
|
761
791
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<DynamicFormBuilderComponent, never>;
|
|
762
792
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<DynamicFormBuilderComponent, "lib-dynamic-form-builder", never, { "form": { "alias": "form"; "required": true; "isSignal": true; }; "handleSubmit": { "alias": "handleSubmit"; "required": false; "isSignal": true; }; }, { "submitted": "submitted"; }, never, never, true, never>;
|
|
763
793
|
}
|
|
@@ -991,6 +1021,7 @@ declare class OrganizationEditComponent extends EditView<IOrganizationDetail, IO
|
|
|
991
1021
|
constructor();
|
|
992
1022
|
ngOnInit(): void;
|
|
993
1023
|
addressForm(): FormGroup<IAddressForm>;
|
|
1024
|
+
get showSubmit(): boolean;
|
|
994
1025
|
createItem(): IOrganizationCreate;
|
|
995
1026
|
protected updateItem(item: IOrganizationDetail): IOrganizationDetail;
|
|
996
1027
|
onItemAndUserAvailable(item: IOrganizationDetail, _: IPortalMemberDetail): void;
|