ichec-angular-core 0.3.4 → 0.3.6

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ichec-angular-core",
3
- "version": "0.3.4",
3
+ "version": "0.3.6",
4
4
  "exports": {
5
5
  "./styles/": "./styles",
6
6
  "./package.json": {
@@ -54,12 +54,16 @@ type IMemberIdentifierCreate = IMemberIdentifierBase;
54
54
  interface IMemberIdentifierDetail extends IMemberIdentifierBase {
55
55
  id: number;
56
56
  }
57
+ interface IPreferences {
58
+ notifications: string;
59
+ }
57
60
  interface IPortalMemberBase {
58
61
  username: string;
59
62
  email: string;
60
63
  first_name: string;
61
64
  last_name: string;
62
65
  phone: string;
66
+ preferences: IPreferences | null;
63
67
  }
64
68
  interface IPortalMemberCreate extends IPortalMemberBase {
65
69
  identifiers: IMemberIdentifierCreate[];
@@ -236,10 +240,7 @@ interface IFormFieldBase {
236
240
  field_type: string;
237
241
  description: string;
238
242
  default: string;
239
- options: {
240
- key: string;
241
- value: string;
242
- }[] | null;
243
+ options: string | null;
243
244
  }
244
245
  type IFormFieldCreate = IFormFieldBase;
245
246
  interface IFormFieldDetail extends IFormFieldBase {
@@ -659,21 +660,20 @@ declare class SearchBarComponent implements OnInit, AfterViewInit {
659
660
 
660
661
  declare class FileUploadComponent {
661
662
  control: _angular_core.InputSignal<FormControl<IFileRecord>>;
663
+ uploadCategory: _angular_core.InputSignal<string>;
664
+ allowedSizeMb: _angular_core.InputSignal<number>;
665
+ showHeading: _angular_core.InputSignal<boolean>;
666
+ error: _angular_core.WritableSignal<string>;
667
+ get accepts(): string;
668
+ get acceptTitle(): string;
669
+ get maxSize(): string;
662
670
  protected onFileUpload(event: Event): void;
671
+ isImage(): boolean;
663
672
  protected onFileUploaded(file: File): void;
664
673
  protected onPreviewLoaded(preview: string | ArrayBuffer): void;
665
674
  protected onClearLocal(): void;
666
675
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<FileUploadComponent, never>;
667
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<FileUploadComponent, "lib-file-upload", never, { "control": { "alias": "control"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
668
- }
669
-
670
- declare class FormFieldDetailComponent {
671
- readonly field: _angular_core.InputSignal<IFormFieldDetail>;
672
- form: _angular_core.InputSignal<FormGroup<any>>;
673
- get key(): string;
674
- get control(): FormControl<IFileRecord>;
675
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldDetailComponent, never>;
676
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldDetailComponent, "lib-form-field-detail", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "form": { "alias": "form"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
676
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FileUploadComponent, "lib-file-upload", never, { "control": { "alias": "control"; "required": true; "isSignal": true; }; "uploadCategory": { "alias": "uploadCategory"; "required": false; "isSignal": true; }; "allowedSizeMb": { "alias": "allowedSizeMb"; "required": false; "isSignal": true; }; "showHeading": { "alias": "showHeading"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
677
677
  }
678
678
 
679
679
  interface IOption {
@@ -693,6 +693,16 @@ interface IFormFieldForm {
693
693
  id: FormControl<number | null>;
694
694
  }
695
695
 
696
+ declare class FormFieldDetailComponent {
697
+ readonly field: _angular_core.InputSignal<IFormFieldDetail>;
698
+ form: _angular_core.InputSignal<FormGroup<any>>;
699
+ resolveOptions(options: string | null): IOption[];
700
+ get key(): string;
701
+ get control(): FormControl<IFileRecord>;
702
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FormFieldDetailComponent, never>;
703
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FormFieldDetailComponent, "lib-form-field-detail", never, { "field": { "alias": "field"; "required": true; "isSignal": true; }; "form": { "alias": "form"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
704
+ }
705
+
696
706
  declare class FormFieldEditComponent {
697
707
  availableTypes: ichec_angular_core.TypeChoice[];
698
708
  readonly FieldType: typeof FieldType;
@@ -1085,7 +1095,7 @@ declare class OrganizationDetailComponent extends DetailView<IOrganizationDetail
1085
1095
  declare class OrganizationComponent {
1086
1096
  itemService: OrganizationService;
1087
1097
  columns: TableColumn[];
1088
- filters: IFilters;
1098
+ filters: IFilters | null;
1089
1099
  detailView: _angular_core.Signal<OrganizationDetailComponent | undefined>;
1090
1100
  onSelected(id: number | null): void;
1091
1101
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<OrganizationComponent, never>;
@@ -1107,4 +1117,4 @@ declare class OrganizationEditComponent extends EditView<IOrganizationDetail, IO
1107
1117
  }
1108
1118
 
1109
1119
  export { Address, AddressDetailComponent, AddressEditComponent, AddressForm, ApiError, AvatarComponent, BackButtonComponent, DetailHeaderComponent, DetailView, DynamicFormBuilderComponent, DynamicFormComponent, DynamicFormForm, EditView, ErrorCode, FORM_FIELD_CHOICES, FeedbackComponent, FieldType, FileRecord, FileUploadComponent, FormFieldDetailComponent, FormFieldEditComponent, FormFieldValueForm, FormService, Group, GroupComponent, GroupDetailComponent, GroupEditComponent, GroupService, ItemQuery, ItemService, ItemWithUserService, LeftNavComponent, LeftNavService, ListTableViewComponent, ListViewComponent, MemberSelectionManager, MockItemService, Organization, OrganizationComponent, OrganizationDetailComponent, OrganizationEditComponent, OrganizationService, Paginated, Permission, PopulatedFormComponent, PopulatedFormForm, PortalMember, REST_SERVICE_CONFIG, ResolvedPermission, RestService, SearchBarComponent, SelectTableComponent, SelectionManager, TopBarComponent, UserComponent, UserCreateComponent, UserDetailComponent, UserEditComponent, UserService, getFieldTypeFromKey, getFileFieldIds };
1110
- export type { IAddressBase, IAddressCreate, IAddressDetail, IAddressForm, IAddressList, ICountry, IDynamicFormForm, IFieldFile, IFileField, IFileRecord, IFilter, IFilterRow, IFilters, IForm, IFormCreate, IFormDetail, IFormFieldBase, IFormFieldCreate, IFormFieldDetail, IFormFieldValueBase, IFormFieldValueCreate, IFormFieldValueDetail, IFormFieldValueForm, IFormFieldValueUpdate, IFormGroupBase, IFormGroupCreate, IFormGroupDetail, IFormGroupUpdate, IFormUpdate, IGroupBase, IGroupCreate, IGroupDetail, IGroupList, IItemQuery, IMemberIdentifierBase, IMemberIdentifierCreate, IMemberIdentifierDetail, IMemberInvitation, IOrganizationBase, IOrganizationCreate, IOrganizationDetail, IOrganizationList, IPaginated, IPermission, IPopulatedFormCreate, IPopulatedFormDetail, IPopulatedFormForm, IPopulatedFormUpdate, IPortalMemberBase, IPortalMemberCreate, IPortalMemberDetail, IPortalMemberList, IRestOptions, IServerManifest, Identifiable, LeftNavCategory, LeftNavOption, NavGroup, NavGrouping, NavOption, OptionAction, OptionActionChoice, RestServiceConfig, Selectable, TableColumn, TypeChoice };
1120
+ export type { IAddressBase, IAddressCreate, IAddressDetail, IAddressForm, IAddressList, ICountry, IDynamicFormForm, IFieldFile, IFileField, IFileRecord, IFilter, IFilterRow, IFilters, IForm, IFormCreate, IFormDetail, IFormFieldBase, IFormFieldCreate, IFormFieldDetail, IFormFieldValueBase, IFormFieldValueCreate, IFormFieldValueDetail, IFormFieldValueForm, IFormFieldValueUpdate, IFormGroupBase, IFormGroupCreate, IFormGroupDetail, IFormGroupUpdate, IFormUpdate, IGroupBase, IGroupCreate, IGroupDetail, IGroupList, IItemQuery, IMemberIdentifierBase, IMemberIdentifierCreate, IMemberIdentifierDetail, IMemberInvitation, IOrganizationBase, IOrganizationCreate, IOrganizationDetail, IOrganizationList, IPaginated, IPermission, IPopulatedFormCreate, IPopulatedFormDetail, IPopulatedFormForm, IPopulatedFormUpdate, IPortalMemberBase, IPortalMemberCreate, IPortalMemberDetail, IPortalMemberList, IPreferences, IRestOptions, IServerManifest, Identifiable, LeftNavCategory, LeftNavOption, NavGroup, NavGrouping, NavOption, OptionAction, OptionActionChoice, RestServiceConfig, Selectable, TableColumn, TypeChoice };