@processpuzzle/base-entity 0.3.3 → 0.3.4
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"processpuzzle-base-entity.mjs","sources":["../../../../libs/base-entity/src/lib/base-entity/abstact-attr.descriptor.ts","../../../../libs/base-entity/src/lib/base-form/base-form-host.directive.ts","../../../../libs/base-entity/src/lib/base-form-navigator/base-url-segments.ts","../../../../libs/base-entity/src/lib/base-form/base-form-control.component.ts","../../../../libs/base-entity/src/lib/base-form/label/label.component.ts","../../../../libs/base-entity/src/lib/base-form/label/label.component.html","../../../../libs/base-entity/src/lib/base-form/datepicker/datepicker.component.ts","../../../../libs/base-entity/src/lib/base-form/datepicker/datepicker.component.html","../../../../libs/base-entity/src/lib/base-form/foreign-key/foreign-key.component.ts","../../../../libs/base-entity/src/lib/base-form/foreign-key/foreign-key.component.html","../../../../libs/base-entity/src/lib/base-form/textbox/textbox.component.ts","../../../../libs/base-entity/src/lib/base-form/textbox/textbox.component.html","../../../../libs/base-entity/src/lib/base-form/dropdown/dropdown.component.ts","../../../../libs/base-entity/src/lib/base-form/dropdown/dropdown.component.html","../../../../libs/base-entity/src/lib/base-form/checkbox/checkbox.component.ts","../../../../libs/base-entity/src/lib/base-form/checkbox/checkbox.component.html","../../../../libs/base-entity/src/lib/base-form/radio/radio.component.ts","../../../../libs/base-entity/src/lib/base-form/radio/radio.component.html","../../../../libs/base-entity/src/lib/base-form/textarea/textarea.component.ts","../../../../libs/base-entity/src/lib/base-form/textarea/textarea.component.html","../../../../libs/base-entity/src/lib/base-form/flex-box/flex-box-host.directive.ts","../../../../libs/base-entity/src/lib/base-entity/flexboxDescriptor.ts","../../../../libs/base-entity/src/lib/base-form/flex-box/flex-box.component.ts","../../../../libs/base-entity/src/lib/base-form/flex-box/flex-box.component.html","../../../../libs/base-entity/src/lib/base-entity/base-entity-attr.descriptor.ts","../../../../libs/base-entity/src/lib/base-form/base-entity-form.builder.ts","../../../../libs/base-entity/src/lib/base-form/base-entity-form.component.ts","../../../../libs/base-entity/src/lib/base-form/base-entity-form.component.html","../../../../libs/base-entity/src/lib/base-entity/filter-attr-descriptor.ts","../../../../libs/base-entity/src/lib/base-list/base-entity-list.component.ts","../../../../libs/base-entity/src/lib/base-list/base-entity-list.component.html","../../../../libs/base-entity/src/lib/base-entity.routes.ts","../../../../libs/base-entity/src/lib/base-entity-container.store.ts","../../../../libs/base-entity/src/lib/base-form-navigator/base-form-navigator.store.ts","../../../../libs/base-entity/src/lib/base-toolbar/base-entity-toolbar.component.ts","../../../../libs/base-entity/src/lib/base-toolbar/base-entity-toolbar.component.html","../../../../libs/base-entity/src/lib/base-statusbar/base-entity-statusbar.component.ts","../../../../libs/base-entity/src/lib/base-statusbar/base-entity-statusbar.component.html","../../../../libs/base-entity/src/lib/base-tabs/base-entity-tabs.component.ts","../../../../libs/base-entity/src/lib/base-tabs/base-entity-tabs.component.html","../../../../libs/base-entity/src/lib/base-entity-container.component.ts","../../../../libs/base-entity/src/lib/base-entity-service/base-entity-load-response.ts","../../../../libs/base-entity/src/lib/base-entity-service/base-entity-rest.service.ts","../../../../libs/base-entity/src/lib/base-tabs/base-entity-tabs.store.ts","../../../../libs/base-entity/src/lib/base-entity-service/base-entity.service.ts","../../../../libs/base-entity/src/lib/base-entity-store/addEntity.ts","../../../../libs/base-entity/src/lib/base-entity-store/deleteEntity.ts","../../../../libs/base-entity/src/lib/base-entity-store/deleteAllEntities.ts","../../../../libs/base-entity/src/lib/base-entity-store/updateEntity.ts","../../../../libs/base-entity/src/lib/base-entity-store/findByQuery.ts","../../../../libs/base-entity/src/lib/base-entity-store/base-entity.store.ts","../../../../libs/base-entity/src/lib/base-entity-service/base-entity-firestore.service.ts","../../../../libs/base-entity/src/lib/base-entity/decorators/entity.decorator.ts","../../../../libs/base-entity/src/public-api.ts","../../../../libs/base-entity/src/processpuzzle-base-entity.ts"],"sourcesContent":["export enum FormControlType {\n CHECKBOX = 'CHECKBOX',\n DATE = 'DATE',\n DROPDOWN = 'DROPDOWN',\n FLEX_BOX = 'FLEX_BOX',\n FOREIGN_KEY = 'FOREIGN_KEY',\n LABEL = 'LABEL',\n RADIO = 'RADIO',\n TITLE = 'TITLE',\n TEXT_BOX = 'TEXT_BOX',\n TEXTAREA = 'TEXTAREA',\n}\n\nexport abstract class AbstractAttrDescriptor {\n attrName: string;\n formControlType: FormControlType;\n disabled = false;\n style: { [p: string]: any } | null | undefined;\n\n protected constructor(attrName: string, formControlType: FormControlType) {\n this.attrName = attrName;\n this.formControlType = formControlType;\n }\n}\n","import { Directive, ViewContainerRef } from '@angular/core';\n\n@Directive({\n standalone: true,\n selector: '[baseFormHost]',\n})\nexport class BaseFormHostDirective {\n constructor(public viewContainerRef: ViewContainerRef) {}\n}\n","export enum BaseUrlSegments {\n DetailsForm = 'details',\n Feed = 'feed',\n ListForm = 'list',\n NewEntity = 'new',\n UnknownEntity = 'unknown',\n}\n","import { Component, computed, input, Signal } from '@angular/core';\nimport { FormGroup, ReactiveFormsModule } from '@angular/forms';\nimport { BaseEntity } from '../base-entity/base-entity';\nimport { BaseEntityAttrDescriptor } from '../base-entity/base-entity-attr.descriptor';\n\n@Component({\n standalone: true,\n template: ``,\n imports: [ReactiveFormsModule],\n})\nexport abstract class BaseFormControlComponent<Entity extends BaseEntity> {\n config: Signal<BaseEntityAttrDescriptor> = input.required<BaseEntityAttrDescriptor>();\n entity: Signal<Entity> = input.required();\n formGroup!: FormGroup;\n store!: any;\n style = computed<{ [p: string]: any } | null | undefined>(() => this.config().style);\n value: Signal<any> = input.required();\n\n // region Angular lifecycle hooks\n // endregion\n}\n","import { Component } from '@angular/core';\nimport { BaseFormControlComponent } from '../base-form-control.component';\nimport { BaseEntity } from '../../base-entity/base-entity';\nimport { NgIf, NgStyle } from '@angular/common';\n\n@Component({\n selector: 'base-label',\n standalone: true,\n templateUrl: './label.component.html',\n imports: [NgIf, NgStyle],\n})\nexport class LabelComponent<Entity extends BaseEntity> extends BaseFormControlComponent<Entity> {}\n","<ng-container *ngIf=\"config().visible\">\n <ng-container *ngIf=\"config().isHeading; else normalText\">\n <h3 [id]=\"config().attrName\">{{value()}}</h3>\n </ng-container>\n\n <ng-template #normalText>\n <p [id]=\"config().attrName\" [ngStyle]=\"config().style\">{{value()}}</p>\n </ng-template>\n</ng-container>","import { Component } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { MatDatepickerModule } from '@angular/material/datepicker';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { BaseFormControlComponent } from '../base-form-control.component';\nimport { BaseEntity } from '../../base-entity/base-entity';\n\n@Component({\n selector: 'base-datepicker',\n standalone: true,\n imports: [CommonModule, FormsModule, MatFormFieldModule, MatInputModule, MatDatepickerModule, ReactiveFormsModule],\n templateUrl: './datepicker.component.html',\n})\nexport class DatepickerComponent<Entity extends BaseEntity> extends BaseFormControlComponent<Entity> {}\n","<ng-container *ngIf=\"config().visible\">\n <div class=\"row\" style=\"margin-bottom: 10px\" [formGroup]=\"formGroup\">\n <mat-form-field>\n <mat-label>{{config().label}}</mat-label>\n <input matInput [matDatepicker]=\"picker\" formControlName=\"{{config().attrName}}\">\n <mat-hint>MM-DD-YYYY</mat-hint>\n <mat-datepicker-toggle matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-datepicker #picker></mat-datepicker>\n </mat-form-field>\n </div>\n</ng-container>\n","import { Component } from '@angular/core';\nimport { BaseFormControlComponent } from '../base-form-control.component';\nimport { BaseEntity } from '../../base-entity/base-entity';\nimport { NgIf } from '@angular/common';\nimport { MatFormField, MatLabel } from '@angular/material/form-field';\nimport { MatInput } from '@angular/material/input';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { MatIcon } from '@angular/material/icon';\n\n@Component({\n selector: 'base-foreign-key',\n standalone: true,\n templateUrl: './foreign-key.component.html',\n imports: [NgIf, MatIcon, MatLabel, MatFormField, MatInput, ReactiveFormsModule],\n})\nexport class ForeignKeyComponent<Entity extends BaseEntity> extends BaseFormControlComponent<Entity> {\n // region event handling methods\n navigateToRelated() {\n this.store.navigateToRelated(this.config().linkedEntityType, this.value());\n }\n // endregion\n}\n","<ng-container *ngIf=\"config().visible\">\n <div class=\"row\" [formGroup]=\"formGroup\">\n <mat-form-field>\n <mat-label>{{ config().attrName }}</mat-label>\n <input matInput formControlName=\"{{config().attrName}}\">\n </mat-form-field>\n <a (click)=\"navigateToRelated()\" aria-label=\"Related entity\">\n <mat-icon>link</mat-icon>\n </a>\n </div>\n</ng-container>","import { NgIf } from '@angular/common';\nimport { Component } from '@angular/core';\nimport { BaseFormControlComponent } from '../base-form-control.component';\nimport { BaseEntity } from '../../base-entity/base-entity';\nimport { MatFormField, MatLabel } from '@angular/material/form-field';\nimport { MatInput } from '@angular/material/input';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\n@Component({\n selector: 'base-textbox',\n standalone: true,\n templateUrl: './textbox.component.html',\n imports: [NgIf, MatFormField, MatInput, MatLabel, FormsModule, ReactiveFormsModule],\n})\nexport class TextboxComponent<Entity extends BaseEntity> extends BaseFormControlComponent<Entity> {}\n","<ng-container *ngIf=\"config().visible\">\n <div class=\"row\" [formGroup]=\"formGroup\">\n <mat-form-field>\n <mat-label>{{config().label}}</mat-label>\n <input matInput formControlName=\"{{config().attrName}}\">\n </mat-form-field>\n </div>\n</ng-container>","import { Component } from '@angular/core';\nimport { BaseFormControlComponent } from '../base-form-control.component';\nimport { NgIf } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { MatFormField, MatLabel } from '@angular/material/form-field';\nimport { MatSelectModule } from '@angular/material/select';\nimport { BaseEntity } from '../../base-entity/base-entity';\n\n@Component({\n selector: 'base-dropdown',\n standalone: true,\n templateUrl: './dropdown.component.html',\n imports: [NgIf, ReactiveFormsModule, MatLabel, MatFormField, MatSelectModule],\n})\nexport class DropdownComponent<Entity extends BaseEntity> extends BaseFormControlComponent<Entity> {}\n","<ng-container *ngIf=\"config().visible\">\n <div class=\"row\" [formGroup]=\"formGroup\">\n <mat-form-field>\n <mat-label>{{config().label}}</mat-label>\n <mat-select formControlName=\"{{config().attrName}}\">\n @for (option of config().selectables; track option) {\n <mat-option [value]=\"option.value\">{{option.value}}</mat-option>\n }\n </mat-select>\n </mat-form-field>\n </div>\n</ng-container>","import { NgClass, NgIf } from '@angular/common';\nimport { Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { MatCheckbox } from '@angular/material/checkbox';\nimport { BaseFormControlComponent } from '../base-form-control.component';\nimport { BaseEntity } from '../../base-entity/base-entity';\n\n@Component({\n selector: 'base-checkbox',\n standalone: true,\n templateUrl: './checkbox.component.html',\n styleUrls: ['./checkbox.component.css'],\n imports: [NgClass, NgIf, MatCheckbox, FormsModule, ReactiveFormsModule],\n})\nexport class CheckboxComponent<Entity extends BaseEntity> extends BaseFormControlComponent<Entity> {}\n","<ng-container *ngIf=\"config().visible\">\n <div [formGroup]=\"formGroup\" class=\"row\">\n <mat-checkbox [ngClass]=\"config().labelClass\" formControlName=\"{{config().attrName}}\">{{config().label}}</mat-checkbox>\n </div>\n</ng-container>","import { Component } from '@angular/core';\nimport { BaseFormControlComponent } from '../base-form-control.component';\nimport { BaseEntity } from '../../base-entity/base-entity';\nimport { NgClass, NgForOf, NgIf } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\n\n@Component({\n selector: 'base-radio',\n standalone: true,\n templateUrl: './radio.component.html',\n imports: [NgIf, NgClass, NgForOf, ReactiveFormsModule],\n})\nexport class RadioComponent<Entity extends BaseEntity> extends BaseFormControlComponent<Entity> {}\n","<ng-container *ngIf=\"config().visible\">\n <div class=\"row\" [formGroup]=\"formGroup\">\n <ng-container *ngIf=\"config().label\">\n <label [for]=\"config().attrName\">{{config().label}}</label>\n </ng-container>\n <div \n [ngClass]=\"config().styleClass ? config().styleClass : ''\"\n *ngFor=\"let radio of config().selectables; let i = index\">\n <input type=\"radio\"\n class=\"form-check-input\"\n [name]=\"config().attrName\"\n [id]=\"config().attrName + i\"\n [value]=\"radio.value\"\n [checked]=\"radio.key === value()\"\n [disabled]=\"config().disabled\"\n >\n <label [for]=\"config().attrName\" [ngClass]=\"config().labelClass ? config().labelClass : ''\">{{radio.value}}</label>\n </div>\n </div>\n</ng-container>","import { Component } from '@angular/core';\nimport { BaseFormControlComponent } from '../base-form-control.component';\nimport { BaseEntity } from '../../base-entity/base-entity';\nimport { NgClass, NgIf } from '@angular/common';\nimport { MatFormField, MatLabel } from '@angular/material/form-field';\nimport { MatInput } from '@angular/material/input';\nimport { ReactiveFormsModule } from '@angular/forms';\n\n@Component({\n selector: 'base-textarea',\n standalone: true,\n templateUrl: './textarea.component.html',\n imports: [NgIf, NgClass, MatFormField, MatInput, MatLabel, ReactiveFormsModule],\n})\nexport class TextareaComponent<Entity extends BaseEntity> extends BaseFormControlComponent<Entity> {}\n","<ng-container *ngIf=\"config().visible\">\n <div class=\"row\" [formGroup]=\"formGroup\">\n <mat-form-field [ngClass]=\"config().styleClass\">\n <mat-label [ngClass]=\"config().labelClass\">{{config().label}}</mat-label>\n <textarea matInput formControlName=\"{{config().attrName}}\" placeholder=\"Ex. It makes me feel...\"></textarea>\n </mat-form-field>\n </div>\n</ng-container>","import { Directive, ViewContainerRef } from '@angular/core';\n\n@Directive({\n standalone: true,\n selector: '[flexBoxHost]',\n})\nexport class FlexBoxHostDirective {\n constructor(public viewContainerRef: ViewContainerRef) {}\n}\n","import { AbstractAttrDescriptor, FormControlType } from './abstact-attr.descriptor';\n\nexport enum FlexDirection {\n CONTAINER = 0,\n COLUMN = 1,\n ROW = 2,\n}\n\nexport class FlexboxDescriptor extends AbstractAttrDescriptor {\n readonly attrDescriptors: AbstractAttrDescriptor[];\n readonly direction: FlexDirection;\n\n constructor(attrDescriptors: AbstractAttrDescriptor[], direction: FlexDirection) {\n super('dummy', FormControlType.FLEX_BOX);\n this.attrDescriptors = attrDescriptors;\n this.direction = direction;\n }\n}\n","import { Component, computed, ViewChild } from '@angular/core';\nimport { BaseEntity } from '../../base-entity/base-entity';\nimport { BaseFormControlComponent } from '../base-form-control.component';\nimport { FlexBoxHostDirective } from './flex-box-host.directive';\nimport { FlexboxDescriptor, FlexDirection } from '../../base-entity/flexboxDescriptor';\nimport { NgClass, NgStyle } from '@angular/common';\n\n@Component({\n selector: 'flex-box',\n imports: [FlexBoxHostDirective, NgClass, NgStyle],\n templateUrl: './flex-box.component.html',\n styleUrls: ['./flex-box.component.scss'],\n})\nexport class FlexBoxComponent<Entity extends BaseEntity> extends BaseFormControlComponent<Entity> {\n @ViewChild(FlexBoxHostDirective, { static: true, read: FlexBoxHostDirective }) flexBoxHost!: FlexBoxHostDirective;\n flexBoxClass = computed<string>(() => this.calculateFlexStyle((this.config() as unknown as FlexboxDescriptor).direction));\n\n // region protected, private helper methods\n private calculateFlexStyle(direction: FlexDirection): string {\n switch (direction) {\n case FlexDirection.CONTAINER:\n return 'flex-box-container';\n case FlexDirection.COLUMN:\n return 'flex-box-container-columns';\n case FlexDirection.ROW:\n return 'flex-box-container-rows';\n default:\n throw new Error('Unknown flex direction');\n }\n }\n\n // endregion\n}\n","<div [ngClass]=\"flexBoxClass()\" [ngStyle]=\"style()\">\n <ng-template flexBoxHost></ng-template>\n</div>\n","import { AbstractAttrDescriptor, FormControlType } from './abstact-attr.descriptor';\n\nexport class BaseEntityAttrDescriptor extends AbstractAttrDescriptor {\n description?: string;\n styleClass? = '';\n labelClass?: string = '';\n format?: string;\n isLinkToDetails?: boolean;\n selectables?: Array<{ key: string; value: any }>;\n visible = true;\n isHeading?: boolean;\n placeholder?: string;\n lines?: number;\n options: { inputType: 'text' };\n private _label?: string;\n private _linkedEntityType?: string;\n\n constructor(attrName: string, formControlType: FormControlType, label?: string, selectables?: Array<{ key: string; value: any }>, isLinkToDetails?: boolean, options?: object) {\n super(attrName, formControlType);\n this.attrName = attrName;\n this._label = label;\n this.selectables = selectables;\n this.isLinkToDetails = isLinkToDetails;\n this.options = { inputType: 'text', ...options };\n }\n\n // region properties\n get label(): string {\n return this._label ? this._label : this.attrName;\n }\n\n set label(label: string) {\n this._label = label;\n }\n\n get linkedEntityType(): any {\n return this._linkedEntityType;\n }\n\n set linkedEntityType(linkedEntityType: string) {\n this._linkedEntityType = linkedEntityType;\n }\n\n // endregion\n}\n","import { Injectable, Signal, signal, Type, ViewContainerRef } from '@angular/core';\nimport { AbstractAttrDescriptor, FormControlType } from '../base-entity/abstact-attr.descriptor';\nimport { BaseEntity } from '../base-entity/base-entity';\nimport { BaseFormControlComponent } from './base-form-control.component';\nimport { FormControl, FormGroup, Validators } from '@angular/forms';\nimport { LabelComponent } from './label/label.component';\nimport { DatepickerComponent } from './datepicker/datepicker.component';\nimport { ForeignKeyComponent } from './foreign-key/foreign-key.component';\nimport { TextboxComponent } from './textbox/textbox.component';\nimport { DropdownComponent } from './dropdown/dropdown.component';\nimport { CheckboxComponent } from './checkbox/checkbox.component';\nimport { RadioComponent } from './radio/radio.component';\nimport { TextareaComponent } from './textarea/textarea.component';\nimport { FlexBoxComponent } from './flex-box/flex-box.component';\nimport { BaseEntityAttrDescriptor } from '../base-entity/base-entity-attr.descriptor';\nimport { FlexboxDescriptor } from '../base-entity/flexboxDescriptor';\n\n@Injectable({ providedIn: 'root' })\nexport class BaseEntityFormBuilder<Entity extends BaseEntity> {\n // region public methods\n public buildForm(viewContainerRef: ViewContainerRef, baseEntityForm: FormGroup, store: any, attrDescriptors: AbstractAttrDescriptor[], entity: Signal<Entity>): void {\n viewContainerRef.clear();\n attrDescriptors.forEach((column: AbstractAttrDescriptor) => {\n const formControlType = this.createFormControl(column);\n if (formControlType) {\n const componentRef = viewContainerRef.createComponent<BaseFormControlComponent<Entity>>(formControlType);\n componentRef.instance.config = signal(column as BaseEntityAttrDescriptor);\n componentRef.instance.entity = entity;\n componentRef.instance.formGroup = baseEntityForm;\n componentRef.instance.store = store;\n if (column instanceof BaseEntityAttrDescriptor) {\n const currentAttrValue = Reflect.get(entity(), column.attrName);\n componentRef.instance.value = signal(currentAttrValue);\n const formControl = new FormControl({ value: currentAttrValue, disabled: column.disabled }, Validators.required);\n baseEntityForm.addControl(column.attrName, formControl);\n } else if (column instanceof FlexboxDescriptor) {\n this.buildForm((componentRef.instance as FlexBoxComponent<Entity>).flexBoxHost.viewContainerRef, baseEntityForm, store, column.attrDescriptors, entity);\n } else throw Error('Undefined subclass of AbstractAttrDescriptor');\n }\n });\n }\n\n // endregion\n\n // region protected, private helper methods\n private createFormControl(column: AbstractAttrDescriptor): Type<BaseFormControlComponent<Entity>> {\n if (column.formControlType === FormControlType.LABEL) {\n return LabelComponent<Entity>;\n } else if (column.formControlType === FormControlType.DATE) {\n return DatepickerComponent<Entity>;\n } else if (column.formControlType === FormControlType.FLEX_BOX) {\n return FlexBoxComponent<Entity>;\n } else if (column.formControlType === FormControlType.FOREIGN_KEY) {\n return ForeignKeyComponent<Entity>;\n } else if (column.formControlType === FormControlType.TEXT_BOX) {\n return TextboxComponent<Entity>;\n } else if (column.formControlType === FormControlType.DROPDOWN) {\n return DropdownComponent<Entity>;\n } else if (column.formControlType === FormControlType.CHECKBOX) {\n return CheckboxComponent<Entity>;\n } else if (column.formControlType === FormControlType.RADIO) {\n return RadioComponent<Entity>;\n } else if (column.formControlType === FormControlType.TEXTAREA) {\n return TextareaComponent<Entity>;\n } else throw Error('Undefined form control type');\n }\n\n // endregion\n}\n","import { BaseEntity } from '../base-entity/base-entity';\nimport { Component, computed, effect, inject, input, OnInit, Signal, untracked, ViewChild } from '@angular/core';\nimport { FormBuilder, FormGroup, ReactiveFormsModule } from '@angular/forms';\nimport { ROUTER_OUTLET_DATA } from '@angular/router';\nimport { BaseEntityDescriptor } from '../base-entity/base-entity.descriptor';\nimport { BaseFormHostDirective } from './base-form-host.directive';\nimport { MatCard, MatCardActions, MatCardContent } from '@angular/material/card';\nimport { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';\nimport { MatButton } from '@angular/material/button';\nimport { BaseUrlSegments } from '../base-form-navigator/base-url-segments';\nimport { BaseEntityFormBuilder } from './base-entity-form.builder';\n\n@Component({\n selector: 'base-form',\n standalone: true,\n templateUrl: 'base-entity-form.component.html',\n imports: [BaseFormHostDirective, ReactiveFormsModule, MatCard, MatCardContent, MatCardActions, MatButton],\n providers: [{ provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: { appearance: 'outline' } }],\n})\nexport class BaseEntityFormComponent<Entity extends BaseEntity> implements OnInit {\n baseEntityForm!: FormGroup;\n baseEntityListOptions = inject(ROUTER_OUTLET_DATA) as Signal<BaseEntityDescriptor>;\n entity: Signal<Entity> = computed(() => (this.isNewObject() ? this.store().createEntity() : this.store().loadById(this.entityId())));\n entityId: Signal<string> = input.required<string>();\n @ViewChild(BaseFormHostDirective, { static: true, read: BaseFormHostDirective }) componentHost!: BaseFormHostDirective;\n store: Signal<any> = computed(() => this.baseEntityListOptions().store);\n private readonly entityFormBuilder = inject(BaseEntityFormBuilder<Entity>);\n private readonly formBuilder = inject(FormBuilder);\n private readonly isNewObject = computed(() => this.entityId() === BaseUrlSegments.NewEntity);\n\n constructor() {\n this.registerEffects();\n }\n\n // region angular lifecycle hooks\n ngOnInit(): void {\n this.store().determineActiveRouteSegment();\n this.baseEntityForm = this.formBuilder.group({});\n }\n\n // endregion\n\n // region event handlers\n async onCancel() {\n this.store().setCurrentEntity(undefined);\n await this.store().navigateBack();\n }\n\n async onSubmit() {\n const objectToSave = { ...this.entity(), ...this.baseEntityForm.value };\n if (this.isNewObject()) {\n this.store().add(objectToSave);\n } else {\n this.store().update(objectToSave, objectToSave.id);\n }\n this.store().setCurrentEntity(undefined);\n await this.store().navigateBack();\n }\n\n // endregion\n\n // region protected, private helper methods\n private registerEffects(): void {\n effect(() => {\n if (this.entityId() && this.baseEntityListOptions() && this.entity())\n untracked(() => {\n this.entityFormBuilder.buildForm(this.componentHost.viewContainerRef, this.baseEntityForm, this.store(), this.baseEntityListOptions().attrDescriptors, this.entity);\n });\n });\n\n effect(() => {\n if (this.entity()) this.store().setCurrentEntity(this.entity().id);\n });\n }\n\n // endregion\n}\n","<mat-card appearance=\"outlined\" class=\"dense-3\">\n <mat-card-content>\n <form [formGroup]=\"baseEntityForm\" (ngSubmit)=\"onSubmit()\">\n <ng-template baseFormHost></ng-template>\n </form>\n </mat-card-content>\n <mat-card-actions>\n <button id=\"cancel\" mat-raised-button color=\"secondary\" (click)=\"onCancel()\">Cancel</button>\n <button id=\"submit\" mat-raised-button color=\"primary\" type=\"submit\" [disabled]=\"baseEntityForm.invalid || !baseEntityForm.dirty\" (click)=\"onSubmit()\">Save</button>\n </mat-card-actions>\n</mat-card>\n","import { AbstractAttrDescriptor } from './abstact-attr.descriptor';\nimport { BaseEntityAttrDescriptor } from './base-entity-attr.descriptor';\nimport { FlexboxDescriptor } from './flexboxDescriptor';\n\nexport function filterAttributeDescriptors(descriptors: AbstractAttrDescriptor[]): BaseEntityAttrDescriptor[] {\n let attrDescriptors: BaseEntityAttrDescriptor[] = [];\n descriptors.forEach((descriptor) => {\n if (descriptor instanceof BaseEntityAttrDescriptor) attrDescriptors.push(descriptor);\n else if (descriptor instanceof FlexboxDescriptor) {\n attrDescriptors = attrDescriptors.concat(filterAttributeDescriptors(descriptor.attrDescriptors));\n }\n });\n return attrDescriptors;\n}\n","import { AfterViewInit, Component, computed, effect, inject, InjectionToken, OnInit, Signal, ViewChild } from '@angular/core';\nimport { BaseEntity } from '../base-entity/base-entity';\nimport { MatCell, MatCellDef, MatColumnDef, MatHeaderCell, MatHeaderCellDef, MatHeaderRow, MatHeaderRowDef, MatRow, MatRowDef, MatTable, MatTableDataSource } from '@angular/material/table';\nimport { MatSort, MatSortHeader } from '@angular/material/sort';\nimport { MatPaginator } from '@angular/material/paginator';\nimport { NgForOf } from '@angular/common';\nimport { Router, ROUTER_OUTLET_DATA } from '@angular/router';\nimport { BaseEntityAttrDescriptor } from '../base-entity/base-entity-attr.descriptor';\nimport { MatProgressBar } from '@angular/material/progress-bar';\nimport { BaseEntityDescriptor } from '../base-entity/base-entity.descriptor';\nimport { MatCheckbox } from '@angular/material/checkbox';\nimport { SelectionModel } from '@angular/cdk/collections';\nimport { filterAttributeDescriptors } from '../base-entity/filter-attr-descriptor';\nimport { FilterCondition } from '../base-entity-service/base-entity-load-response';\n\nexport const BASE_LIST_DESCRIPTORS = new InjectionToken<string[]>('BASE_TABLE_DISPLAYED_COLUMNS');\n\n@Component({\n selector: 'base-list',\n standalone: true,\n imports: [\n MatTable,\n MatSort,\n MatHeaderCell,\n MatPaginator,\n MatHeaderRow,\n MatRow,\n MatCell,\n MatColumnDef,\n NgForOf,\n MatHeaderCellDef,\n MatCellDef,\n MatHeaderRowDef,\n MatRowDef,\n MatSortHeader,\n MatProgressBar,\n MatCheckbox,\n ],\n templateUrl: 'base-entity-list.component.html',\n styleUrl: 'base-entity-list.component.css',\n})\nexport class BaseEntityListComponent<Entity extends BaseEntity> implements AfterViewInit, OnInit {\n dataSource: MatTableDataSource<Entity> = new MatTableDataSource<Entity>();\n selection = new SelectionModel<Entity>(true, []);\n private readonly entityDescriptor = inject(ROUTER_OUTLET_DATA) as Signal<BaseEntityDescriptor>;\n columnDescriptors: Signal<BaseEntityAttrDescriptor[]> = computed(() => {\n return filterAttributeDescriptors(this.entityDescriptor().attrDescriptors);\n });\n displayedColumns: Signal<string[]> = computed(() => {\n const columns = this.columnDescriptors().map((column) => column.attrName);\n columns.unshift('select');\n return columns;\n });\n @ViewChild(MatSort) sort = {} as MatSort;\n @ViewChild(MatPaginator) paginator = {} as MatPaginator;\n store: any;\n router = inject(Router);\n\n constructor() {\n this.store = this.entityDescriptor().store;\n this.registerEffects();\n }\n\n // region Angular lifecycle events\n ngAfterViewInit(): void {\n this.dataSource = this.store?.matTableDataSource();\n this.dataSource.sort = this.sort;\n this.dataSource.paginator = this.paginator;\n this.loadAllData();\n }\n\n ngOnInit(): void {\n this.store.determineActiveRouteSegment();\n }\n\n // endregion\n\n // region event handling methods\n onChangeSelection(entity?: Entity) {\n if (entity && this.isSelected(entity)) this.store.selectEntity(entity.id);\n else this.store.deselectEntity(entity);\n\n if (this.selection.selected.length === 1) this.store.setCurrentEntity(this.selection.selected[0].id);\n else this.store.clearCurrentEntity();\n }\n\n onNavigateToDetails(entity: Entity): void {\n this.store.navigateToDetails(entity.id);\n this.store.setCurrentEntity(entity.id);\n }\n\n onNavigateToRelated(config: BaseEntityAttrDescriptor, entity: Entity) {\n this.store.navigateToRelated(config.linkedEntityType, this.getPropertyValue(entity, config.attrName));\n }\n\n onRowClick(entity: Entity) {\n this.selection.toggle(entity);\n this.onChangeSelection(entity);\n }\n\n onToggleAllRows(): void {\n if (this.isAllSelected()) {\n this.cancelSelections();\n } else {\n this.dataSource.data.forEach((entity) => {\n this.selection.select(entity);\n this.store.selectEntity(entity.id);\n });\n }\n }\n\n // endregion\n\n // region protected, private helper methods\n private cancelSelections() {\n this.store.deselectAll();\n this.selection.clear();\n }\n\n private doFilter(filterKey: string) {\n this.dataSource.filter = filterKey.trim().toLocaleLowerCase();\n }\n\n private getPropertyValue(entity: Entity, property: string): any {\n return Reflect.get(entity, property);\n }\n\n private loadAllData() {\n const pathParams = new Map<string, string>([]);\n const filters: FilterCondition[] = [];\n this.store.load({ pathParams, filters });\n }\n\n protected registerEffects(): void {\n effect(() => (this.dataSource.data = this.store.entities()));\n effect(() => {\n if (this.store.filterKey()) this.doFilter(this.store.filterKey());\n });\n }\n\n // endregion\n\n // region properties\n isAllSelected() {\n const numSelected = this.selection.selected.length;\n const numRows = this.dataSource.data.length;\n return numSelected == numRows;\n }\n\n isSelected(row: Entity) {\n return this.selection.isSelected(row);\n }\n\n // endregion\n}\n","@if (store.isLoading()) {\n <mat-progress-bar mode=\"query\"></mat-progress-bar>\n}\n<table mat-table [dataSource]=\"dataSource\" class=\"mat-elevation-z8 demo-table\" matSort aria-describedby=\"base-entity-list\">\n <!-- Checkbox Column -->\n <ng-container matColumnDef=\"select\">\n <th mat-header-cell *matHeaderCellDef>\n <mat-checkbox (change)=\"$event ? onToggleAllRows() : null\" [checked]=\"selection.hasValue() && isAllSelected()\" [indeterminate]=\"selection.hasValue() && !isAllSelected()\"> </mat-checkbox>\n </th>\n <td mat-cell *matCellDef=\"let row\">\n <mat-checkbox (click)=\"$event.stopPropagation()\" (change)=\"$event ? selection.toggle(row) : null; onChangeSelection(row)\" [checked]=\"selection.isSelected(row)\"></mat-checkbox>\n </td>\n </ng-container>\n\n <ng-container *ngFor=\"let colDescriptor of columnDescriptors(); index as i\" [matColumnDef]=\"colDescriptor.attrName\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>{{ colDescriptor.label }}</th>\n <!-- //NOSONAR --><td (click)=\"onRowClick(element)\" *matCellDef=\"let element\" mat-cell>\n @if (colDescriptor.isLinkToDetails === true) {\n <a (click)=\"onNavigateToDetails(element)\">{{ element[colDescriptor.attrName] }}</a>\n } @else if (colDescriptor.linkedEntityType !== undefined ) {\n <a (click)=\"onNavigateToRelated(colDescriptor, element)\">{{ element[colDescriptor.attrName] }}</a>\n } @else {\n {{ element[colDescriptor.attrName] }}\n }\n </td>\n </ng-container>\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns()\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns()\"></tr>\n</table>\n<mat-paginator [pageSizeOptions]=\"[3, 5, 8]\" showFirstLastButtons></mat-paginator>\n","import { Routes } from '@angular/router';\nimport { BaseEntityFormComponent } from './base-form/base-entity-form.component';\nimport { BaseEntityListComponent } from './base-list/base-entity-list.component';\n\nexport const BASE_ENTITY_ROUTES: Routes = [\n { path: '', redirectTo: 'list', pathMatch: 'full' },\n { path: ':id/details', component: BaseEntityFormComponent },\n { path: 'list', component: BaseEntityListComponent },\n];\n","import { patchState, signalStoreFeature, withMethods, withState } from '@ngrx/signals';\n\nexport interface EntityContainerState {\n filterKey: string | undefined;\n}\n\nconst INITIAL_CONTAINER_STATE: EntityContainerState = {\n filterKey: undefined,\n};\n\nexport function BaseEntityContainerStore() {\n return signalStoreFeature(\n withState<EntityContainerState>(INITIAL_CONTAINER_STATE),\n withMethods((store) => {\n function doFilter(filterKey: string): void {\n patchState(store, { filterKey });\n }\n return { doFilter };\n }),\n );\n}\n","import { patchState, signalStoreFeature, withHooks, withMethods, withState } from '@ngrx/signals';\nimport { inject } from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { BaseUrlSegments } from './base-url-segments';\n\nexport enum RouteSegments {\n LIST_ROUTE = 'LIST_ROUTE',\n DETAILS_ROUTE = 'DETAILS_ROUTE',\n}\n\nexport interface NavigationState {\n activeRouteSegment: RouteSegments;\n entityName: string;\n navigationError?: string;\n navigateTo: string;\n returnTo: string;\n}\n\nconst INITIAL_NAVIGATION_STATE: NavigationState = {\n activeRouteSegment: RouteSegments.LIST_ROUTE,\n entityName: '',\n navigateTo: '',\n returnTo: '',\n};\n\nfunction snakeCaseName(entityName: string) {\n return entityName\n .split(/(?=[A-Z])/)\n .join('-')\n .toLowerCase();\n}\n\nexport function BaseFormNavigatorStore(entityName: string) {\n return signalStoreFeature(\n withState<NavigationState>(INITIAL_NAVIGATION_STATE),\n withMethods((store, router = inject(Router), route = inject(ActivatedRoute)) => {\n function determineActiveRouteSegment(): void {\n const currentUrl = Reflect.get(route, '_routerState').snapshot.url;\n if (currentUrl.endsWith(BaseUrlSegments.ListForm)) {\n patchState(store, { activeRouteSegment: RouteSegments.LIST_ROUTE });\n } else if (currentUrl.endsWith(BaseUrlSegments.DetailsForm)) {\n patchState(store, { activeRouteSegment: RouteSegments.DETAILS_ROUTE });\n } else {\n patchState(store, { activeRouteSegment: undefined });\n }\n }\n\n function determineBaseUrl(): string {\n determineActiveRouteSegment();\n const currentUrl = determineCurrentUrl();\n return store.activeRouteSegment() === RouteSegments.DETAILS_ROUTE ? levelUpUrl(levelUpUrl(levelUpUrl(currentUrl))) : levelUpUrl(levelUpUrl(currentUrl));\n }\n\n function determineCurrentUrl(): string {\n return Reflect.get(route, '_routerState').snapshot.url;\n }\n\n function levelUpUrl(currentUrl: string) {\n return currentUrl.substring(0, currentUrl.lastIndexOf('/'));\n }\n\n async function navigateBack(defaultUrl?: string): Promise<void> {\n const goTo = store.returnTo() ? store.returnTo() : defaultUrl;\n patchState(store, { returnTo: '' });\n if (goTo) {\n router\n .navigateByUrl(goTo)\n .then()\n .catch((error) => patchState(store, { navigationError: error.message }));\n } else await navigateToList();\n }\n\n async function navigateToDetails(id: string, returnTo?: string) {\n if (store.activeRouteSegment() != RouteSegments.DETAILS_ROUTE) {\n const snakeCaseEntityName = snakeCaseName(entityName);\n const baseUrl = determineBaseUrl();\n const detailsFormPath = baseUrl + '/' + snakeCaseEntityName + '/' + id + '/details';\n await navigateToUrl(detailsFormPath, returnTo);\n }\n }\n\n async function navigateToList(returnTo?: string) {\n const snakeCaseEntityName = snakeCaseName(entityName);\n const baseUrl = determineBaseUrl();\n const goToUrl = baseUrl + '/' + snakeCaseEntityName + '/list';\n if (store.activeRouteSegment() != RouteSegments.LIST_ROUTE) {\n await navigateToUrl(goToUrl, returnTo);\n }\n }\n\n async function navigateToRelated(relatedTypeName: string, id: string, returnTo?: string) {\n const snakeCaseEntityName = snakeCaseName(relatedTypeName);\n const baseUrl = determineBaseUrl();\n const detailsFormPath = baseUrl + '/' + snakeCaseEntityName + '/' + id + '/details';\n await navigateToUrl(detailsFormPath, returnTo);\n }\n\n async function navigateToUrl(url: string, returnTo?: string) {\n if (!returnTo) patchState(store, { returnTo: router.url });\n else patchState(store, { returnTo });\n patchState(store, { navigateTo: url });\n await router\n .navigateByUrl(url)\n .then(() => determineActiveRouteSegment())\n .catch((error) => patchState(store, { navigationError: error.message }));\n }\n\n return { determineCurrentUrl, determineActiveRouteSegment, navigateBack, navigateToDetails, navigateToList, navigateToRelated, navigateToUrl };\n }),\n withHooks((store) => ({\n onInit: () => {\n store.determineActiveRouteSegment();\n },\n })),\n );\n}\n","import { Component, inject, input, OnInit } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatToolbar } from '@angular/material/toolbar';\nimport { MatIcon } from '@angular/material/icon';\nimport { MatButton } from '@angular/material/button';\nimport { BaseEntity } from '../base-entity/base-entity';\nimport { BaseEntityDescriptor } from '../base-entity/base-entity.descriptor';\nimport { MatFormField } from '@angular/material/form-field';\nimport { MatInput } from '@angular/material/input';\nimport { MatMenu, MatMenuItem, MatMenuTrigger } from '@angular/material/menu';\nimport { RouteSegments } from '../base-form-navigator/base-form-navigator.store';\nimport { BaseUrlSegments } from '../base-form-navigator/base-url-segments';\nimport { LayoutService } from '@processpuzzle/util';\n\n@Component({\n selector: 'base-entity-toolbar',\n standalone: true,\n imports: [CommonModule, MatToolbar, MatIcon, MatFormField, MatInput, MatButton, MatMenu, MatMenuItem, MatMenuTrigger],\n templateUrl: './base-entity-toolbar.component.html',\n})\nexport class BaseEntityToolbarComponent<Entity extends BaseEntity> implements OnInit {\n baseEntityListOptions = input.required<BaseEntityDescriptor>();\n readonly layoutService = inject(LayoutService);\n store: any;\n\n // region Angular lifecycle hooks\n ngOnInit(): void {\n this.store = this.baseEntityListOptions().store;\n }\n\n // endregion\n\n // event handling methods\n onAddEntity() {\n this.store.navigateToDetails(BaseUrlSegments.NewEntity);\n }\n\n onDeleteEntities() {\n this.store.selectedEntities().forEach((entity: Entity) => this.store.delete(entity.id));\n }\n\n onDoFilter($event: KeyboardEvent) {\n const filterValue = ($event.target as HTMLInputElement).value;\n this.store.doFilter(filterValue);\n }\n\n // endregion\n\n // public queries and mutators\n isSmallDevice(): boolean {\n return this.layoutService.isSmallDevice();\n }\n\n // endregion\n\n // protected, private helper methods\n protected readonly RouteSegments = RouteSegments;\n // endregion\n}\n","<mat-toolbar *ngIf=\"store.activeRouteSegment() === RouteSegments.LIST_ROUTE\">\n <div class=\"dense-3\" [ngStyle]=\"{'padding-top': '12px' }\">\n <mat-form-field>\n <input test-id=\"filter-input\" matInput type=\"text\" (keyup)=\"onDoFilter( $event )\" placeholder=\"Filter\">\n </mat-form-field>\n </div>\n <span class=\"toolbar-spacer\"></span>\n @if(isSmallDevice()) {\n <div [ngClass]=\"layoutService.layoutClass()\">\n <button test-id=\"menu-button\" mat-button [matMenuTriggerFor]=\"beforeMenu\"><mat-icon>menu</mat-icon> Choose action</button>\n <mat-menu test-id=\"menu\" #beforeMenu=\"matMenu\" xPosition=\"before\">\n <button test-id=\"add\" mat-menu-item (click)=\"onAddEntity()\"><mat-icon>add</mat-icon> New</button>\n <button test-id=\"delete\" mat-menu-item [disabled]=\"store.selectedEntities().length === 0\" (click)=\"onDeleteEntities()\"><mat-icon>delete</mat-icon> Delete</button>\n </mat-menu>\n </div>\n } @else {\n <div [ngClass]=\"layoutService.layoutClass()\">\n <button test-id=\"add\" mat-button (click)=\"onAddEntity()\"><mat-icon>add</mat-icon> New</button>\n <button test-id=\"delete\" mat-button [disabled]=\"store.selectedEntities().length === 0\" (click)=\"onDeleteEntities()\"><mat-icon>delete</mat-icon> Delete</button>\n </div>\n }\n</mat-toolbar>","import { Component, computed, input, OnInit, Signal } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { MatToolbar } from '@angular/material/toolbar';\nimport { BaseEntityDescriptor } from '../base-entity/base-entity.descriptor';\n\n@Component({\n selector: 'base-entity-statusbar',\n standalone: true,\n imports: [CommonModule, MatToolbar],\n templateUrl: './base-entity-statusbar.component.html',\n})\nexport class BaseEntityStatusbarComponent implements OnInit {\n store: any;\n baseEntityListOptions = input.required<BaseEntityDescriptor>();\n entityTitle: Signal<string> = computed<string>(() => this.evaluateEntityTitle(this.baseEntityListOptions().entityTitle));\n isVisible: Signal<boolean> = computed(() => this.store.currentEntity() != undefined || this.store.selectedEntities().length == 1);\n\n // region Angular lifecycle hooks\n ngOnInit(): void {\n this.store = this.baseEntityListOptions().store;\n }\n\n // endregion\n\n // event handling methods\n // endregion\n\n // protected, private helper methods\n private evaluateEntityTitle(title: string): string {\n return eval(title); //NOSONAR the value title comes from a trusted source\n }\n\n // endregion\n}\n","<mat-toolbar *ngIf=\"isVisible()\">\n <div>\n <span>{{entityTitle()}}</span>\n </div>\n</mat-toolbar>","import { Component, computed, effect, input, OnDestroy, OnInit, Signal } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { RouterOutlet } from '@angular/router';\nimport { BaseUrlSegments } from '../base-form-navigator/base-url-segments';\nimport { MatTabLink, MatTabNav, MatTabNavPanel } from '@angular/material/tabs';\nimport { BaseEntityDescriptor } from '../base-entity/base-entity.descriptor';\nimport { BaseEntityToolbarComponent } from '../base-toolbar/base-entity-toolbar.component';\nimport { RouteSegments } from '../base-form-navigator/base-form-navigator.store';\nimport { BaseEntityStatusbarComponent } from '../base-statusbar/base-entity-statusbar.component';\n\n@Component({\n selector: 'base-entity-tabs',\n standalone: true,\n imports: [CommonModule, MatTabNav, MatTabLink, MatTabNavPanel, RouterOutlet, BaseEntityToolbarComponent, BaseEntityStatusbarComponent],\n templateUrl: './base-entity-tabs.component.html',\n})\nexport class BaseEntityTabsComponent implements OnDestroy, OnInit {\n store: any;\n baseEntityListOptions = input.required<BaseEntityDescriptor>();\n selectedEntityId: Signal<string | undefined> = computed(() => (this.store.currentId() ? this.store.currentId() : BaseUrlSegments.NewEntity));\n detailsTabName: Signal<string> = computed(() => this.baseEntityListOptions().entityName + ' - details');\n listTabName: Signal<string> = computed(() => this.baseEntityListOptions().entityName + ' - list');\n\n constructor() {\n this.registerEffects();\n }\n\n // region angular lifecycle hooks\n ngOnDestroy(): void {\n this.store.tabIsInactive(this.listTabName());\n this.store.tabIsInactive(this.detailsTabName());\n }\n\n ngOnInit() {\n this.store = this.baseEntityListOptions().store;\n }\n // endregion\n\n // region event handlers\n async onShowDetails() {\n if (this.store.activeRouteSegment() != RouteSegments.DETAILS_ROUTE) {\n const id = this.selectedEntityId() ? this.selectedEntityId() : BaseUrlSegments.NewEntity;\n await this.store.navigateToDetails(id);\n this.store.tabIsActive(this.detailsTabName());\n }\n }\n\n async onShowList() {\n if (this.store.activeRouteSegment() != RouteSegments.LIST_ROUTE) {\n await this.store.navigateToList(this.baseEntityListOptions().entityName);\n this.store.tabIsActive(this.listTabName());\n }\n }\n // endregion\n\n // region protected, private helper methods\n private registerEffects() {\n effect(() => {\n if (this.store.activeRouteSegment() === RouteSegments.DETAILS_ROUTE) {\n this.store.tabIsActive(this.detailsTabName());\n } else {\n this.store.tabIsActive(this.listTabName());\n }\n });\n }\n}\n","<nav mat-tab-nav-bar [tabPanel]=\"tabPanel\">\n <a mat-tab-link (click)=\"onShowList()\" [active]=\"store.currentTab() === listTabName()\">{{listTabName()}}</a>\n <a mat-tab-link [disabled]=\"store.currentEntity() === undefined\" (click)=\"onShowDetails()\" [active]=\"store.currentTab() === detailsTabName()\">{{detailsTabName()}}</a>\n</nav>\n\n<mat-tab-nav-panel #tabPanel>\n <base-entity-statusbar [baseEntityListOptions]=\"baseEntityListOptions()\"/>\n <base-entity-toolbar [baseEntityListOptions]=\"baseEntityListOptions()\"/>\n <router-outlet [routerOutletData]=\"baseEntityListOptions()\"/>\n</mat-tab-nav-panel>","import { Component, effect, inject, input, OnDestroy, OnInit } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { BaseEntityTabsComponent } from './base-tabs/base-entity-tabs.component';\nimport { BaseEntityDescriptor } from './base-entity/base-entity.descriptor';\nimport { MatSnackBar } from '@angular/material/snack-bar';\n\n@Component({\n selector: 'base-entity-container',\n standalone: true,\n imports: [CommonModule, BaseEntityTabsComponent],\n template: `\n <div>\n <base-entity-tabs [baseEntityListOptions]=\"baseEntityListOptions()\"></base-entity-tabs>\n </div>\n `,\n})\nexport class BaseEntityContainerComponent implements OnDestroy, OnInit {\n baseEntityListOptions = input.required<BaseEntityDescriptor>();\n protected snackBar = inject<MatSnackBar>(MatSnackBar);\n store: any;\n\n constructor() {\n this.registerEffects();\n }\n\n // region Angular lifecycle hooks\n ngOnDestroy() {\n this.store.reset();\n }\n\n ngOnInit() {\n this.store = this.baseEntityListOptions().store;\n }\n\n // endregion\n\n // region protected, private helper methods\n private registerEffects() {\n effect(() => {\n if (this.store.error()) {\n const errorMessage = this.store.error() ? this.store.error() : 'Undefined Error';\n this.snackBar.open(errorMessage, 'Close', { duration: 5000 });\n }\n });\n }\n\n // endregion\n}\n","import { BaseEntity } from '../base-entity/base-entity';\nimport { DocumentSnapshot, WhereFilterOp } from '@angular/fire/firestore';\n\nexport interface WhereCondition<Entity extends BaseEntity> {\n field: keyof Entity;\n operator: WhereFilterOp;\n value: Entity[keyof Entity];\n}\n\nexport interface OrderByCondition<Entity extends BaseEntity> {\n field: keyof Entity;\n order?: OrderByDirection;\n}\n\nexport interface FilterCondition {\n property: string;\n operator: WhereFilterOp;\n value: string;\n}\n\nexport enum OrderByDirection {\n ASC = 'asc',\n DESC = 'desc',\n}\n\nexport interface OrderBy {\n property: string;\n direction: string;\n}\n\nexport interface BaseEntityQueryCondition {\n path?: string;\n hash?: string;\n page?: number;\n pageSize?: number;\n pathParams?: Map<string, string>;\n filters?: FilterCondition[];\n orderBys?: OrderBy[];\n}\n\nexport interface FirestoreQuery<Entity extends BaseEntity> {\n limit?: number;\n startAt?: number | string | DocumentSnapshot<Entity>;\n startAfter?: number | string | DocumentSnapshot<Entity> | null;\n endAt?: number | DocumentSnapshot<Entity>;\n endBefore?: number | DocumentSnapshot<Entity>;\n orderBy?: OrderByCondition<Entity>[];\n where?: WhereCondition<Entity>[];\n}\n\nexport interface BaseEntityLoadResponse<Entity extends BaseEntity> {\n page: number | undefined;\n pageSize: number | undefined;\n totalPageCount: number | undefined;\n content: Entity[];\n}\n","import { BaseEntity } from '../base-entity/base-entity';\nimport { map, Observable } from 'rxjs';\nimport { inject, Inject } from '@angular/core';\nimport { BaseEntityMapper } from '../base-entity.mapper';\nimport { HttpClient, HttpHeaders } from '@angular/common/http';\nimport { BaseEntityLoadResponse, BaseEntityQueryCondition } from './base-entity-load-response';\nimport { buildUrl } from 'build-url-ts';\nimport { RUNTIME_CONFIGURATION } from '@processpuzzle/util';\nimport { BaseEntityService } from './base-entity.service';\n\nexport abstract class BaseEntityRestService<Entity extends BaseEntity> implements BaseEntityService<Entity> {\n private readonly runtimeConfiguration = inject(RUNTIME_CONFIGURATION);\n private readonly baseUrl: string;\n protected httpClient = inject(HttpClient);\n protected headers = new HttpHeaders({\n 'Content-Type': 'application/json; charset=utf-8',\n 'Access-Control-Allow-Methods': 'GET, HEAD, PUT, PATCH, POST, DELETE',\n 'Access-Control-Allow-Origin-Credentials': 'true',\n 'Access-Control-Allow-Headers': 'Origin, Accept, X-Requested-With, Content-Type, Access-Control-Request-Method, Access-Control-Request-Headers, X-BRZ-User-ID',\n 'X-BRZ-User-ID': 'zsolt.zsuffa@extern.brz.gv.at',\n });\n\n protected constructor(\n @Inject('entityMapper') protected entityMapper: BaseEntityMapper<Entity>,\n protected urlProperty: string,\n protected resourceUrl: string,\n ) {\n this.baseUrl = Reflect.get(this.runtimeConfiguration, urlProperty);\n }\n\n // region public accessor and mutator methods\n delete(id: string): Observable<unknown> {\n return this.httpClient.delete(this.resourceUrl + `/${id}`, { headers: this.headers });\n }\n\n deleteAll(): Observable<any> {\n return this.httpClient.delete(this.resourceUrl, { headers: this.headers });\n }\n\n findAll(page?: number): Observable<BaseEntityLoadResponse<Entity> | Entity[] | Entity> {\n return this.findByQuery({ page });\n }\n\n findByQuery(queryCondition: BaseEntityQueryCondition): Observable<BaseEntityLoadResponse<Entity> | Entity[] | Entity> {\n const fullUrl = this.buildFullUrl(this.resourceUrl, queryCondition);\n if (fullUrl) {\n return this.httpClient.get(fullUrl, { headers: this.headers }).pipe(\n map((httpResponse: any) => {\n return queryCondition.page ? this.mapPagedResponse(httpResponse) : this.mapSimpleResponse(httpResponse);\n }),\n );\n } else throw new Error('Could not determine the full url');\n }\n\n findById(id: string): Observable<void | Entity> {\n const queryCondition: BaseEntityQueryCondition = { pathParams: new Map<string, string>([['id', id]]) };\n const fullUrl = this.buildFullUrl(this.resourceUrl, queryCondition);\n if (fullUrl) {\n return this.httpClient.get(fullUrl, { headers: this.headers }).pipe(\n map((httpResponse: any) => {\n return this.mapSimpleResponse(httpResponse) as Entity;\n }),\n );\n } else throw new Error('Could not determine the full url');\n }\n\n add(entity: Entity, id?: number): Observable<Entity> {\n const dto = this.entityMapper.toDto(entity);\n const fullUrl = this.buildFullUrl(this.resourceUrl, {});\n if (fullUrl) {\n return this.httpClient.post(fullUrl, dto, { headers: this.headers }).pipe(\n map((response: any) => {\n return this.entityMapper.fromDto(response, id);\n }),\n );\n } else throw new Error('Could not determine the full url');\n }\n\n update(entity: Entity): Observable<Entity> {\n const dto = this.entityMapper.toDto(entity);\n const pathParams = new Map<string, string>([['id', String(entity.id)]]);\n const fullUrl = this.buildFullUrl(this.resourceUrl + '/%{id}', { pathParams });\n if (fullUrl) {\n return this.httpClient.put(fullUrl, dto, { headers: this.headers }).pipe(\n map((response: any) => {\n return this.entityMapper.fromDto(response);\n }),\n );\n } else throw new Error('Could not determine the full url');\n }\n\n // endregion\n\n // region protected, private helper methods\n protected buildFullUrl(resourceUri: string, queryCondition: BaseEntityQueryCondition): string | undefined {\n const queryParams: Map<string, string> = new Map<string, string>();\n if (queryCondition.page) queryParams.set('page', queryCondition.page.toString());\n if (queryCondition.filters !== undefined && queryCondition.filters.length != 0) {\n queryCondition.filters.forEach((filter) => queryParams.set(filter.property, filter.value));\n }\n\n let params: any = {};\n if (queryParams.size > 0) {\n for (const [key, value] of queryParams) {\n params = { ...params, [key]: value };\n }\n } else params = null;\n\n if (queryCondition.pathParams !== undefined && queryCondition.pathParams.size != 0) {\n queryCondition.pathParams.forEach((value: string, key: string) => {\n const pathParam = '%{' + key + '}';\n resourceUri = resourceUri.replace(pathParam, value);\n });\n }\n\n const urlOptions = {\n path: resourceUri,\n hash: queryCondition.hash,\n queryParams: params,\n };\n return buildUrl(this.baseUrl, urlOptions);\n }\n\n private mapPagedResponse(response: any): BaseEntityLoadResponse<Entity> {\n const subjectPage = response[0];\n const content = subjectPage.content.map((dto: any, index: number) => {\n return this.entityMapper.fromDto(dto, index);\n });\n return {\n page: subjectPage.page,\n pageSize: subjectPage.pageSize,\n totalPageCount: subjectPage.totalPageCount,\n content,\n };\n }\n\n private mapSimpleResponse(response: any): Entity[] | Entity {\n if (Object.prototype.toString.call(response) === '[object Array]') {\n return response.map((dto: any, index: number) => {\n return this.entityMapper.fromDto(dto, index);\n });\n } else {\n return new Array(this.entityMapper.fromDto(response));\n }\n }\n\n // endregion\n}\n","import { patchState, signalStoreFeature, withMethods, withState } from '@ngrx/signals';\n\nexport interface EntityTabsState {\n activeTabs: string[];\n currentTab: string | undefined;\n}\n\nconst INITIAL_TABS_STATE: EntityTabsState = {\n activeTabs: [],\n currentTab: undefined,\n};\n\nexport function BaseEntityTabsStore() {\n return signalStoreFeature(\n withState<EntityTabsState>(INITIAL_TABS_STATE),\n withMethods((store) => {\n function reset(): void {\n const activeTabs: string[] = [];\n patchState(store, { activeTabs, currentTab: undefined });\n }\n function tabIsActive(tabName: string): void {\n let activeTabs: Array<string>;\n if (store.activeTabs().indexOf(tabName) == -1) {\n activeTabs = store.activeTabs().concat([tabName]);\n } else {\n activeTabs = store.activeTabs();\n }\n patchState(store, { activeTabs, currentTab: tabName });\n }\n function tabIsInactive(tabName: string): void {\n const activeTabs = store.activeTabs().filter((tab) => tab !== tabName);\n patchState(store, { activeTabs, currentTab: undefined });\n }\n return { reset, tabIsActive, tabIsInactive };\n }),\n );\n}\n","import { BaseEntity } from '../base-entity/base-entity';\nimport { BaseEntityLoadResponse, BaseEntityQueryCondition } from './base-entity-load-response';\nimport { Observable } from 'rxjs';\nimport { InjectionToken } from '@angular/core';\n\nexport const BASE_ENTITY_SERVICE = new InjectionToken<BaseEntityService<any>>('BASE_ENTITY_SERVICE');\n\nexport interface BaseEntityService<Entity extends BaseEntity> {\n add(entity: Entity, id?: number): Observable<Entity>;\n\n delete(id: string): Observable<unknown>;\n\n deleteAll(): Observable<unknown>;\n\n findAll(page?: number, pageSize?: number): Observable<BaseEntityLoadResponse<Entity> | Entity[] | Entity>;\n\n findById(id: string): Observable<Entity | void>;\n\n findByQuery(condition: BaseEntityQueryCondition): Observable<BaseEntityLoadResponse<Entity> | Entity[] | Entity>;\n\n update(entity: Entity): Observable<Entity>;\n}\n","import { patchState } from '@ngrx/signals';\nimport { tapResponse } from '@ngrx/operators';\nimport { HttpErrorResponse } from '@angular/common/http';\nimport { rxMethod } from '@ngrx/signals/rxjs-interop';\nimport { pipe, switchMap } from 'rxjs';\nimport { BaseEntityService } from '../base-entity-service/base-entity.service';\nimport { BaseEntity } from '../base-entity/base-entity';\n\nexport const addEntity = <Entity extends BaseEntity>(store: any, repository: BaseEntityService<Entity>) => {\n return rxMethod<Entity>(\n pipe(\n switchMap((entity) => {\n patchState(store, { isLoading: true, error: undefined });\n return repository.add(entity).pipe(\n tapResponse<Entity>({\n next: (savedEntity: Entity) => {\n patchState(store, { entities: store.entities().concat([savedEntity]), isLoading: false });\n },\n error: (error) => patchState(store, { error: (error as HttpErrorResponse).message }),\n finalize: () => patchState(store, { isLoading: false }),\n }),\n );\n }),\n ),\n );\n};\n","import { BaseEntity } from '../base-entity/base-entity';\nimport { BaseEntityService } from '../base-entity-service/base-entity.service';\nimport { rxMethod } from '@ngrx/signals/rxjs-interop';\nimport { pipe, switchMap, tap } from 'rxjs';\nimport { patchState } from '@ngrx/signals';\nimport { tapResponse } from '@ngrx/operators';\nimport { HttpErrorResponse } from '@angular/common/http';\n\nexport const deleteEntity = <Entity extends BaseEntity>(store: any, repository: BaseEntityService<Entity>) => {\n return rxMethod<string>(\n pipe(\n tap(() => patchState(store, { isLoading: true, error: undefined })),\n switchMap((id: string) => {\n return repository.delete(id).pipe(\n tapResponse({\n next: () => {\n const remainingEntities = store.entities().filter((entity: Entity) => entity.id !== id);\n patchState(store, { entities: remainingEntities, isLoading: false });\n },\n error: (error: HttpErrorResponse) => patchState(store, { error: error.message }),\n finalize: () => patchState(store, { isLoading: false }),\n }),\n );\n }),\n ),\n );\n};\n","import { BaseEntity } from '../base-entity/base-entity';\nimport { BaseEntityService } from '../base-entity-service/base-entity.service';\nimport { pipe, switchMap } from 'rxjs';\nimport { patchState } from '@ngrx/signals';\nimport { tapResponse } from '@ngrx/operators';\nimport { HttpErrorResponse } from '@angular/common/http';\nimport { rxMethod } from '@ngrx/signals/rxjs-interop';\n\nexport const deleteAllEntities = <Entity extends BaseEntity>(store: any, repository: BaseEntityService<Entity>) => {\n return rxMethod<void>(\n pipe(\n switchMap(() => {\n patchState(store, { isLoading: true, error: undefined });\n return repository.deleteAll().pipe(\n tapResponse({\n next: () => patchState(store, { entities: [], isLoading: false }),\n error: (error: HttpErrorResponse) => patchState(store, { error: error.message }),\n finalize: () => patchState(store, { isLoading: false }),\n }),\n );\n }),\n ),\n );\n};\n","import { BaseEntity } from '../base-entity/base-entity';\nimport { BaseEntityService } from '../base-entity-service/base-entity.service';\nimport { rxMethod } from '@ngrx/signals/rxjs-interop';\nimport { pipe, switchMap } from 'rxjs';\nimport { patchState } from '@ngrx/signals';\nimport { tapResponse } from '@ngrx/operators';\nimport { HttpErrorResponse } from '@angular/common/http';\n\nexport const updateEntity = <Entity extends BaseEntity>(store: any, repository: BaseEntityService<Entity>) => {\n return rxMethod<Entity>(\n pipe(\n switchMap((entity) => {\n patchState(store, { isLoading: true, error: undefined });\n return repository.update(entity).pipe(\n tapResponse<Entity>({\n next: (updatedEntity: Entity) => {\n const currentEntities = store.entities();\n const indexToUpdate = currentEntities.findIndex((item: Entity) => item.id === entity.id);\n currentEntities[indexToUpdate] = updatedEntity;\n patchState(store, { entities: [...currentEntities], isLoading: false });\n },\n error: (error) => patchState(store, { error: (error as HttpErrorResponse).message }),\n finalize: () => patchState(store, { isLoading: false }),\n }),\n );\n }),\n ),\n );\n};\n","import { BaseEntity } from '../base-entity/base-entity';\nimport { BaseEntityService } from '../base-entity-service/base-entity.service';\nimport { rxMethod } from '@ngrx/signals/rxjs-interop';\nimport { BaseEntityLoadResponse, BaseEntityQueryCondition } from '../base-entity-service/base-entity-load-response';\nimport { pipe, switchMap, tap } from 'rxjs';\nimport { patchState } from '@ngrx/signals';\nimport { tapResponse } from '@ngrx/operators';\nimport { HttpErrorResponse } from '@angular/common/http';\n\nexport const findByQuery = <Entity extends BaseEntity>(store: any, repository: BaseEntityService<Entity>) => {\n return rxMethod<BaseEntityQueryCondition>(\n pipe(\n tap((query: BaseEntityQueryCondition) => patchState(store, { page: query.page, isLoading: true, error: undefined })),\n // debounceTime(1000),\n // distinctUntilChanged(),\n switchMap((parameters) =>\n repository.findByQuery(parameters).pipe(\n tapResponse({\n next: (response: BaseEntityLoadResponse<Entity> | Entity[] | Entity) => {\n if (Object.prototype.hasOwnProperty.call(response, 'content')) {\n const baseEntityResponse = response as BaseEntityLoadResponse<Entity>;\n patchState(store, {\n entities: baseEntityResponse.content,\n page: baseEntityResponse.page,\n pageSize: baseEntityResponse.pageSize,\n totalPageCount: baseEntityResponse.totalPageCount,\n isLoading: false,\n });\n } else {\n const entities = (response as Entity[]).slice();\n patchState(store, {\n entities,\n page: undefined,\n pageSize: entities.length,\n totalPageCount: undefined,\n isLoading: false,\n });\n }\n },\n error: (error: HttpErrorResponse) => patchState(store, { error: error.message }),\n finalize: () => patchState(store, { isLoading: false }),\n }),\n ),\n ),\n ),\n );\n};\n","import { BaseEntity } from '../base-entity/base-entity';\nimport { patchState, signalStoreFeature, withComputed, withHooks, withMethods, withState } from '@ngrx/signals';\nimport { computed, inject, InjectionToken, ProviderToken } from '@angular/core';\nimport { MatTableDataSource } from '@angular/material/table';\nimport { BaseEntityService } from '../base-entity-service/base-entity.service';\nimport { addEntity } from './addEntity';\nimport { deleteEntity } from './deleteEntity';\nimport { deleteAllEntities } from './deleteAllEntities';\nimport { updateEntity } from './updateEntity';\nimport { findByQuery } from './findByQuery';\n\nexport const BASE_ENTITY_STORE = new InjectionToken<any>('BASE_ENTITY_STORE');\n\nexport interface EntityStoreState<Entity extends BaseEntity> {\n entities: Entity[];\n page: number;\n pageSize: number;\n totalPageCount: number;\n currentId: string | undefined;\n currentEntity: Entity | undefined;\n isLoading: boolean;\n error: string | undefined;\n selectedEntities: Array<Entity>;\n}\n\nexport function BaseEntityStore<Entity extends BaseEntity>(entityType: new () => Entity, repositoryType: ProviderToken<BaseEntityService<Entity>>) {\n return signalStoreFeature(\n withState<EntityStoreState<Entity>>({\n entities: [],\n page: 0,\n pageSize: 5,\n totalPageCount: 0,\n currentEntity: undefined,\n currentId: undefined,\n isLoading: false,\n error: undefined,\n selectedEntities: [],\n }),\n withMethods((store, repository = inject(repositoryType)) => ({\n clearCurrentEntity: () => patchState(store, { currentEntity: undefined }),\n createEntity: (): Entity => new entityType(),\n add: addEntity(store, repository),\n delete: deleteEntity(store, repository),\n deleteAll: deleteAllEntities(store, repository),\n deselectAll: () => {\n patchState(store, { selectedEntities: [] });\n },\n deselectEntity: (id: string) => {\n const subjectEntity = store.selectedEntities().find((entity) => entity.id === id);\n if (subjectEntity) {\n const index = store.selectedEntities().indexOf(subjectEntity, 0);\n if (index > -1) {\n const selectedEntities = store.selectedEntities().concat([]);\n selectedEntities.splice(index, 1);\n patchState(store, { selectedEntities });\n }\n }\n },\n load: findByQuery(store, repository),\n loadById: (id: string): Entity | undefined => {\n return store.entities().find((entity) => entity.id === id);\n },\n resetErrorState: () => patchState(store, { error: undefined }),\n selectEntity: (id: string) => {\n const foundEntity = store.entities() && store.entities().length > 0 ? store.entities().filter((entity) => entity.id === id) : undefined;\n if (foundEntity && foundEntity.length == 1 && store.selectedEntities().indexOf(foundEntity[0]) == -1) {\n patchState(store, { selectedEntities: store.selectedEntities().concat(foundEntity) });\n }\n },\n setCurrentEntity: (id: string): void => {\n const foundEntity = store.entities() && store.entities().length > 0 ? store.entities().filter((entity) => entity.id === id) : undefined;\n if (foundEntity && foundEntity.length > 0) {\n patchState(store, { currentEntity: foundEntity[0], currentId: foundEntity[0].id });\n } else patchState(store, { currentEntity: undefined, currentId: undefined });\n },\n update: updateEntity(store, repository),\n })),\n withHooks((store) => ({\n onInit: () => {\n store.load({});\n },\n })),\n withComputed((store) => ({\n countOfEntities: computed(() => store.entities().length),\n matTableDataSource: computed(() => new MatTableDataSource<Entity>(store.entities())),\n })),\n );\n}\n","import { BaseEntity } from '../base-entity/base-entity';\nimport { BaseEntityService } from './base-entity.service';\nimport { from, map, Observable, of } from 'rxjs';\nimport { BaseEntityLoadResponse, BaseEntityQueryCondition, OrderByDirection } from './base-entity-load-response';\nimport { Inject, inject } from '@angular/core';\nimport { collection, deleteDoc, doc, Firestore, getDoc, getDocs, limit, orderBy, query, setDoc, updateDoc, where } from '@angular/fire/firestore';\nimport { BaseEntityMapper } from '../base-entity.mapper';\nimport { QueryFieldFilterConstraint, QueryOrderByConstraint } from '@firebase/firestore';\n\nexport abstract class BaseEntityFirestoreService<Entity extends BaseEntity> implements BaseEntityService<Entity> {\n protected collection;\n protected readonly firestore = inject(Firestore);\n\n protected constructor(\n @Inject('entityMapper') protected entityMapper: BaseEntityMapper<Entity>,\n protected collectionName: string,\n ) {\n this.collection = collection(this.firestore, collectionName);\n }\n\n // region public accessors and mutators\n add(entity: Entity): Observable<Entity> {\n if (!entity) throw new Error('Entity cant be undefined');\n return from(this.addAsync(entity));\n }\n\n delete(id: string): Observable<unknown> {\n const docRef = doc(this.firestore, this.collectionName, id);\n return from(deleteDoc(docRef));\n }\n\n deleteAll(): Observable<unknown> {\n return of(undefined);\n }\n\n findAll(page?: number, pageSize?: number): Observable<BaseEntityLoadResponse<Entity> | Entity[]> {\n return this.findByQuery({ page, pageSize });\n }\n\n findById(id: string): Observable<Entity | void> {\n const docRef = doc(this.firestore, this.collectionName, id);\n return from(\n getDoc(docRef)\n .then((document) => {\n return this.mapDocument(document.data() as Entity);\n })\n .catch((error) => {\n throw new Error(`Error: ${error} occurred while finding document by id: ${id}`);\n }),\n );\n }\n\n findByQuery(queryCondition: BaseEntityQueryCondition): Observable<BaseEntityLoadResponse<Entity> | Entity[]> {\n return from(this.findByQueryAsync(queryCondition));\n }\n\n update(entity: Entity): Observable<Entity> {\n return from(this.updateAsync(entity));\n }\n\n // endregion\n\n // protected, private helper methods\n protected async addAsync(entity: Entity): Promise<Entity> {\n const newDoc = doc(this.collection, entity.id);\n await setDoc(newDoc, this.mapEntity(entity));\n return new Promise<Entity>((resolve, reject) => {\n resolve(entity);\n reject(new Error('Failed to update entity: ' + entity));\n });\n }\n\n protected createQuery(queryCondition: BaseEntityQueryCondition) {\n let orderBys: QueryOrderByConstraint[] = [];\n if (queryCondition.orderBys && queryCondition.orderBys?.length > 0) {\n orderBys = queryCondition.orderBys?.map((orderByCondition) => {\n const name = Object.keys(OrderByDirection).filter((key) => key === orderByCondition.direction);\n const direction = Object.values(OrderByDirection).filter((value) => value === name[0]);\n return orderBy(orderByCondition.property, direction[0]);\n });\n }\n\n let wheres: QueryFieldFilterConstraint[] = [];\n if (queryCondition.filters && queryCondition.filters?.length > 0) {\n wheres =\n queryCondition.filters?.map((filter) => {\n return where(filter.property, filter.operator, filter.value);\n }) ?? [];\n }\n\n return query(this.collection, ...wheres, ...orderBys, limit(queryCondition.pageSize ?? 99));\n }\n\n protected async findByQueryAsync(queryCondition: BaseEntityQueryCondition): Promise<BaseEntityLoadResponse<Entity> | Entity[]> {\n const query = this.createQuery(queryCondition);\n const results = await getDocs(query);\n const content: Entity[] = [];\n results.docs.forEach((doc) => {\n content.push(this.mapDocument({ id: doc.id, ...doc.data() } as Entity));\n });\n\n return Promise.resolve({\n page: queryCondition.page,\n pageSize: queryCondition.pageSize,\n totalPageCount: 1,\n content,\n });\n }\n\n protected mapCollection(collection: Observable<any[]>): Entity[] {\n const entities: Entity[] = [];\n collection.pipe(\n map((documents: any[]) => {\n documents.forEach((document) => entities.push(this.entityMapper.fromDto(document)));\n }),\n );\n return entities;\n }\n\n protected mapDocument(document: any): Entity {\n return this.entityMapper.fromDto(document);\n }\n\n private mapEntity(entity: Entity): any {\n return this.entityMapper.toDto(entity);\n }\n\n private async updateAsync(entity: Entity): Promise<Entity> {\n if (!entity) throw new Error('Entity cant be undefined');\n\n const docRef = doc(this.firestore, this.collectionName, entity.id);\n await updateDoc(docRef, this.mapEntity(entity));\n\n return Promise.resolve(entity);\n }\n\n // endregion\n}\n","import 'reflect-metadata';\n\n/**\n * Defines an entity data transformer capable of transforming data to and from the server.\n */\nexport interface IEntityTransformer {\n fromServer?: (data: any, criteria?: any) => any;\n toServer?: (entity: any, criteria?: any) => any;\n}\n\nexport interface EntityOptions {\n modelName: string;\n pluralName: string;\n uriName: string;\n transform?: IEntityTransformer;\n}\n\n// Symbol to store entity options on instance\nconst ENTITY_OPTIONS_KEY = Symbol('entityOptions');\n\n// Metadata key for storing ID properties\nconst ENTITY_ID_PROPERTIES_KEY = 'entity:idProperties';\n\n/**\n * Class decorator for entity classes\n * @param options Configuration options for the entity\n * @returns Class decorator function\n */\nexport function Entity(options: EntityOptions): ClassDecorator {\n return function (target: any) {\n // Store metadata on the class (for backward compatibility)\n Reflect.defineMetadata('entity:options', options, target);\n\n // Add a property to the prototype to make options accessible from instances\n Object.defineProperty(target.prototype, ENTITY_OPTIONS_KEY, {\n value: options,\n writable: false,\n enumerable: false,\n configurable: false\n });\n\n return target;\n };\n}\n\n/**\n * Gets entity options from an entity instance\n * @param instance An instance of a class decorated with @Entity\n * @returns The entity options or undefined if not found\n */\nexport function getEntityOptions(instance: any): EntityOptions | undefined {\n if (!instance) return undefined;\n\n // Try to get options from the instance\n const options = instance[ENTITY_OPTIONS_KEY];\n if (options) return options;\n\n // Fallback to class metadata (for backward compatibility)\n const constructor = Object.getPrototypeOf(instance)?.constructor;\n if (constructor) {\n return Reflect.getMetadata('entity:options', constructor);\n }\n\n return undefined;\n}\n\n/**\n * Property decorator for marking entity properties as ID fields\n * @returns PropertyDecorator function\n */\nexport function Id(): PropertyDecorator {\n return function(target: object, propertyKey: string | symbol) {\n // Get the constructor of the class\n const constructor = target.constructor;\n \n // Get existing ID properties or initialize empty array\n const existingIdProps: string[] = Reflect.getMetadata(ENTITY_ID_PROPERTIES_KEY, constructor) || [];\n \n // Add the current property to the list if it's not already there\n if (!existingIdProps.includes(propertyKey.toString())) {\n existingIdProps.push(propertyKey.toString());\n }\n \n // Update the metadata with the new list\n Reflect.defineMetadata(ENTITY_ID_PROPERTIES_KEY, existingIdProps, constructor);\n };\n}\n\n/**\n * Gets all property names marked with @Id decorator from an entity instance\n * @param instance An instance of a class with properties decorated with @Id\n * @returns Array of property names marked as IDs or empty array if none found\n */\nexport function getEntityIds(instance: any): string[] {\n if (!instance) return [];\n\n // Get the constructor from the instance\n const constructor = Object.getPrototypeOf(instance)?.constructor;\n if (!constructor) return [];\n \n // Return the ID properties from metadata or empty array if none found\n return Reflect.getMetadata(ENTITY_ID_PROPERTIES_KEY, constructor) || [];\n}\n","// Public API Surface of @processpuzzle/base-entity\n\nexport { AbstractAttrDescriptor, FormControlType } from './lib/base-entity/abstact-attr.descriptor';\nexport { BASE_ENTITY_ROUTES } from './lib/base-entity.routes';\nexport { BaseEntityContainerStore } from './lib/base-entity-container.store';\nexport { BaseEntity } from './lib/base-entity/base-entity';\nexport { BaseEntityContainerComponent } from './lib/base-entity-container.component';\nexport { BaseEntityAttrDescriptor } from './lib/base-entity/base-entity-attr.descriptor';\nexport { BaseEntityFormComponent } from './lib/base-form/base-entity-form.component';\nexport { BaseEntityDescriptor } from './lib/base-entity/base-entity.descriptor';\nexport { BaseEntityListComponent, BASE_LIST_DESCRIPTORS } from './lib/base-list/base-entity-list.component';\nexport { BaseEntityLoadResponse, BaseEntityQueryCondition, FilterCondition, OrderByCondition, OrderByDirection } from './lib/base-entity-service/base-entity-load-response';\nexport { BaseEntityMapper } from './lib/base-entity.mapper';\nexport { BaseEntityRestService } from './lib/base-entity-service/base-entity-rest.service';\nexport { BaseEntityTabsStore } from './lib/base-tabs/base-entity-tabs.store';\nexport { BASE_ENTITY_SERVICE } from './lib/base-entity-service/base-entity.service';\nexport { BASE_ENTITY_STORE, BaseEntityStore } from './lib/base-entity-store/base-entity.store';\nexport { BaseFormHostDirective } from './lib/base-form/base-form-host.directive';\nexport { BaseFormNavigatorStore, RouteSegments, NavigationState } from './lib/base-form-navigator/base-form-navigator.store';\nexport { BaseEntityFirestoreService } from './lib/base-entity-service/base-entity-firestore.service';\nexport { FlexboxDescriptor, FlexDirection } from './lib/base-entity/flexboxDescriptor';\nexport { Entity, EntityOptions, getEntityOptions, Id, getEntityIds } from './lib/base-entity/decorators/entity.decorator';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2","i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAY;AAAZ,CAAA,UAAY,eAAe,EAAA;AACzB,IAAA,eAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,eAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,eAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,eAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,eAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAC3B,IAAA,eAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,eAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,eAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,eAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,eAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACvB,CAAC,EAXW,eAAe,KAAf,eAAe,GAAA,EAAA,CAAA,CAAA;MAaL,sBAAsB,CAAA;AAC1C,IAAA,QAAQ;AACR,IAAA,eAAe;IACf,QAAQ,GAAG,KAAK;AAChB,IAAA,KAAK;IAEL,WAAA,CAAsB,QAAgB,EAAE,eAAgC,EAAA;AACtE,QAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ;AACxB,QAAA,IAAI,CAAC,eAAe,GAAG,eAAe;IACxC;AACD;;MCjBY,qBAAqB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AAW,GAAG,MAAM,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,WAAW;IAChE,IAAI,WAAW,EAAE;QACf,OAAO,OAAO,CAAC,WAAW,CAAC,gBAAgB,EAAE,WAAW,CAAC;IAC3D;AAEA,IAAA,OAAO,SAAS;AAClB;AAEA;;;AAGG;SACa,EAAE,GAAA;IAChB,OAAO,UAAS,MAAc,EAAE,WAA4B,EAAA;;AAE1D,QAAA,MAAM,WAAW,GAAG,MAAM,CAAC,WAAW;;AAGtC,QAAA,MAAM,eAAe,GAAa,OAAO,CAAC,WAAW,CAAC,wBAAwB,EAAE,WAAW,CAAC,IAAI,EAAE;;QAGlG,IAAI,CAAC,eAAe,CAAC,QAAQ,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,EAAE;YACrD,eAAe,CAAC,IAAI,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC;QAC9C;;QAGA,OAAO,CAAC,cAAc,CAAC,wBAAwB,EAAE,eAAe,EAAE,WAAW,CAAC;AAChF,IAAA,CAAC;AACH;AAEA;;;;AAIG;AACG,SAAU,YAAY,CAAC,QAAa,EAAA;AACxC,IAAA,IAAI,CAAC,QAAQ;AAAE,QAAA,OAAO,EAAE;;IAGxB,MAAM,WAAW,GAAG,MAAM,CAAC,cAAc,CAAC,QAAQ,CAAC,EAAE,WAAW;AAChE,IAAA,IAAI,CAAC,WAAW;AAAE,QAAA,OAAO,EAAE;;IAG3B,OAAO,OAAO,CAAC,WAAW,CAAC,wBAAwB,EAAE,WAAW,CAAC,IAAI,EAAE;AACzE;;ACtGA;;ACAA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"processpuzzle-base-entity.mjs","sources":["../../../../libs/base-entity/src/lib/base-entity/abstact-attr.descriptor.ts","../../../../libs/base-entity/src/lib/base-entity-container.store.ts","../../../../libs/base-entity/src/lib/base-entity/base-entity-attr.descriptor.ts","../../../../libs/base-entity/src/lib/base-form/base-form-host.directive.ts","../../../../libs/base-entity/src/lib/base-form-navigator/base-url-segments.ts","../../../../libs/base-entity/src/lib/base-form/base-form-control.component.ts","../../../../libs/base-entity/src/lib/base-form/label/label.component.ts","../../../../libs/base-entity/src/lib/base-form/label/label.component.html","../../../../libs/base-entity/src/lib/base-form/datepicker/datepicker.component.ts","../../../../libs/base-entity/src/lib/base-form/datepicker/datepicker.component.html","../../../../libs/base-entity/src/lib/base-form/foreign-key/foreign-key.component.ts","../../../../libs/base-entity/src/lib/base-form/foreign-key/foreign-key.component.html","../../../../libs/base-entity/src/lib/base-form/textbox/textbox.component.ts","../../../../libs/base-entity/src/lib/base-form/textbox/textbox.component.html","../../../../libs/base-entity/src/lib/base-form/dropdown/dropdown.component.ts","../../../../libs/base-entity/src/lib/base-form/dropdown/dropdown.component.html","../../../../libs/base-entity/src/lib/base-form/checkbox/checkbox.component.ts","../../../../libs/base-entity/src/lib/base-form/checkbox/checkbox.component.html","../../../../libs/base-entity/src/lib/base-form/radio/radio.component.ts","../../../../libs/base-entity/src/lib/base-form/radio/radio.component.html","../../../../libs/base-entity/src/lib/base-form/textarea/textarea.component.ts","../../../../libs/base-entity/src/lib/base-form/textarea/textarea.component.html","../../../../libs/base-entity/src/lib/base-form/flex-box/flex-box-host.directive.ts","../../../../libs/base-entity/src/lib/base-entity/flexboxDescriptor.ts","../../../../libs/base-entity/src/lib/base-form/flex-box/flex-box.component.ts","../../../../libs/base-entity/src/lib/base-form/flex-box/flex-box.component.html","../../../../libs/base-entity/src/lib/base-form/base-entity-form.builder.ts","../../../../libs/base-entity/src/lib/base-form/base-entity-form.component.ts","../../../../libs/base-entity/src/lib/base-form/base-entity-form.component.html","../../../../libs/base-entity/src/lib/base-entity/filter-attr-descriptor.ts","../../../../libs/base-entity/src/lib/base-list/base-entity-list.component.ts","../../../../libs/base-entity/src/lib/base-list/base-entity-list.component.html","../../../../libs/base-entity/src/lib/base-entity-service/base-entity-load-response.ts","../../../../libs/base-entity/src/lib/base-tabs/base-entity-tabs.store.ts","../../../../libs/base-entity/src/lib/base-entity-service/base-entity.service.ts","../../../../libs/base-entity/src/lib/base-entity-store/addEntity.ts","../../../../libs/base-entity/src/lib/base-entity-store/deleteEntity.ts","../../../../libs/base-entity/src/lib/base-entity-store/deleteAllEntities.ts","../../../../libs/base-entity/src/lib/base-entity-store/updateEntity.ts","../../../../libs/base-entity/src/lib/base-entity-store/findByQuery.ts","../../../../libs/base-entity/src/lib/base-entity-store/base-entity.store.ts","../../../../libs/base-entity/src/lib/base-form-navigator/base-form-navigator.store.ts","../../../../libs/base-entity/src/lib/base-entity-service/base-entity-firestore.service.ts","../../../../libs/base-entity/src/lib/base-entity/decorators/entity.decorator.ts","../../../../libs/base-entity/src/lib/base-entity.routes.ts","../../../../libs/base-entity/src/public-api.ts","../../../../libs/base-entity/src/processpuzzle-base-entity.ts"],"sourcesContent":["export enum FormControlType {\n CHECKBOX = 'CHECKBOX',\n DATE = 'DATE',\n DROPDOWN = 'DROPDOWN',\n FLEX_BOX = 'FLEX_BOX',\n FOREIGN_KEY = 'FOREIGN_KEY',\n LABEL = 'LABEL',\n RADIO = 'RADIO',\n TITLE = 'TITLE',\n TEXT_BOX = 'TEXT_BOX',\n TEXTAREA = 'TEXTAREA',\n}\n\nexport abstract class AbstractAttrDescriptor {\n attrName: string;\n formControlType: FormControlType;\n disabled = false;\n style: { [p: string]: any } | null | undefined;\n\n protected constructor(attrName: string, formControlType: FormControlType) {\n this.attrName = attrName;\n this.formControlType = formControlType;\n }\n}\n","import { patchState, signalStoreFeature, withMethods, withState } from '@ngrx/signals';\n\nexport interface EntityContainerState {\n filterKey: string | undefined;\n}\n\nconst INITIAL_CONTAINER_STATE: EntityContainerState = {\n filterKey: undefined,\n};\n\nexport function BaseEntityContainerStore() {\n return signalStoreFeature(\n withState<EntityContainerState>(INITIAL_CONTAINER_STATE),\n withMethods((store) => {\n function doFilter(filterKey: string): void {\n patchState(store, { filterKey });\n }\n return { doFilter };\n }),\n );\n}\n","import { AbstractAttrDescriptor, FormControlType } from './abstact-attr.descriptor';\n\nexport class BaseEntityAttrDescriptor extends AbstractAttrDescriptor {\n description?: string;\n styleClass? = '';\n labelClass?: string = '';\n format?: string;\n isLinkToDetails?: boolean;\n selectables?: Array<{ key: string; value: any }>;\n visible = true;\n isHeading?: boolean;\n placeholder?: string;\n lines?: number;\n options: { inputType: 'text' };\n private _label?: string;\n private _linkedEntityType?: string;\n\n constructor(attrName: string, formControlType: FormControlType, label?: string, selectables?: Array<{ key: string; value: any }>, isLinkToDetails?: boolean, options?: object) {\n super(attrName, formControlType);\n this.attrName = attrName;\n this._label = label;\n this.selectables = selectables;\n this.isLinkToDetails = isLinkToDetails;\n this.options = { inputType: 'text', ...options };\n }\n\n // region properties\n get label(): string {\n return this._label ? this._label : this.attrName;\n }\n\n set label(label: string) {\n this._label = label;\n }\n\n get linkedEntityType(): any {\n return this._linkedEntityType;\n }\n\n set linkedEntityType(linkedEntityType: string) {\n this._linkedEntityType = linkedEntityType;\n }\n\n // endregion\n}\n","import { Directive, ViewContainerRef } from '@angular/core';\n\n@Directive({\n standalone: true,\n selector: '[baseFormHost]',\n})\nexport class BaseFormHostDirective {\n constructor(public viewContainerRef: ViewContainerRef) {}\n}\n","export enum BaseUrlSegments {\n DetailsForm = 'details',\n Feed = 'feed',\n ListForm = 'list',\n NewEntity = 'new',\n UnknownEntity = 'unknown',\n}\n","import { Component, computed, input, Signal } from '@angular/core';\nimport { FormGroup, ReactiveFormsModule } from '@angular/forms';\nimport { BaseEntity } from '../base-entity/base-entity';\nimport { BaseEntityAttrDescriptor } from '../base-entity/base-entity-attr.descriptor';\n\n@Component({\n standalone: true,\n template: ``,\n imports: [ReactiveFormsModule],\n})\nexport abstract class BaseFormControlComponent<Entity extends BaseEntity> {\n config: Signal<BaseEntityAttrDescriptor> = input.required<BaseEntityAttrDescriptor>();\n entity: Signal<Entity> = input.required();\n formGroup!: FormGroup;\n store!: any;\n style = computed<{ [p: string]: any } | null | undefined>(() => this.config().style);\n value: Signal<any> = input.required();\n\n // region Angular lifecycle hooks\n // endregion\n}\n","import { Component } from '@angular/core';\nimport { BaseFormControlComponent } from '../base-form-control.component';\nimport { BaseEntity } from '../../base-entity/base-entity';\nimport { NgIf, NgStyle } from '@angular/common';\n\n@Component({\n selector: 'base-label',\n standalone: true,\n templateUrl: './label.component.html',\n imports: [NgIf, NgStyle],\n})\nexport class LabelComponent<Entity extends BaseEntity> extends BaseFormControlComponent<Entity> {}\n","<ng-container *ngIf=\"config().visible\">\n <ng-container *ngIf=\"config().isHeading; else normalText\">\n <h3 [id]=\"config().attrName\">{{value()}}</h3>\n </ng-container>\n\n <ng-template #normalText>\n <p [id]=\"config().attrName\" [ngStyle]=\"config().style\">{{value()}}</p>\n </ng-template>\n</ng-container>","import { Component } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { MatDatepickerModule } from '@angular/material/datepicker';\nimport { MatFormFieldModule } from '@angular/material/form-field';\nimport { MatInputModule } from '@angular/material/input';\nimport { BaseFormControlComponent } from '../base-form-control.component';\nimport { BaseEntity } from '../../base-entity/base-entity';\n\n@Component({\n selector: 'base-datepicker',\n standalone: true,\n imports: [CommonModule, FormsModule, MatFormFieldModule, MatInputModule, MatDatepickerModule, ReactiveFormsModule],\n templateUrl: './datepicker.component.html',\n})\nexport class DatepickerComponent<Entity extends BaseEntity> extends BaseFormControlComponent<Entity> {}\n","<ng-container *ngIf=\"config().visible\">\n <div class=\"row\" style=\"margin-bottom: 10px\" [formGroup]=\"formGroup\">\n <mat-form-field>\n <mat-label>{{config().label}}</mat-label>\n <input matInput [matDatepicker]=\"picker\" formControlName=\"{{config().attrName}}\">\n <mat-hint>MM-DD-YYYY</mat-hint>\n <mat-datepicker-toggle matIconSuffix [for]=\"picker\"></mat-datepicker-toggle>\n <mat-datepicker #picker></mat-datepicker>\n </mat-form-field>\n </div>\n</ng-container>\n","import { Component } from '@angular/core';\nimport { BaseFormControlComponent } from '../base-form-control.component';\nimport { BaseEntity } from '../../base-entity/base-entity';\nimport { NgIf } from '@angular/common';\nimport { MatFormField, MatLabel } from '@angular/material/form-field';\nimport { MatInput } from '@angular/material/input';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { MatIcon } from '@angular/material/icon';\n\n@Component({\n selector: 'base-foreign-key',\n standalone: true,\n templateUrl: './foreign-key.component.html',\n imports: [NgIf, MatIcon, MatLabel, MatFormField, MatInput, ReactiveFormsModule],\n})\nexport class ForeignKeyComponent<Entity extends BaseEntity> extends BaseFormControlComponent<Entity> {\n // region event handling methods\n navigateToRelated() {\n this.store.navigateToRelated(this.config().linkedEntityType, this.value());\n }\n // endregion\n}\n","<ng-container *ngIf=\"config().visible\">\n <div class=\"row\" [formGroup]=\"formGroup\">\n <mat-form-field>\n <mat-label>{{ config().attrName }}</mat-label>\n <input matInput formControlName=\"{{config().attrName}}\">\n </mat-form-field>\n <a (click)=\"navigateToRelated()\" aria-label=\"Related entity\">\n <mat-icon>link</mat-icon>\n </a>\n </div>\n</ng-container>","import { NgIf } from '@angular/common';\nimport { Component } from '@angular/core';\nimport { BaseFormControlComponent } from '../base-form-control.component';\nimport { BaseEntity } from '../../base-entity/base-entity';\nimport { MatFormField, MatLabel } from '@angular/material/form-field';\nimport { MatInput } from '@angular/material/input';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\n\n@Component({\n selector: 'base-textbox',\n standalone: true,\n templateUrl: './textbox.component.html',\n imports: [NgIf, MatFormField, MatInput, MatLabel, FormsModule, ReactiveFormsModule],\n})\nexport class TextboxComponent<Entity extends BaseEntity> extends BaseFormControlComponent<Entity> {}\n","<ng-container *ngIf=\"config().visible\">\n <div class=\"row\" [formGroup]=\"formGroup\">\n <mat-form-field>\n <mat-label>{{config().label}}</mat-label>\n <input matInput formControlName=\"{{config().attrName}}\">\n </mat-form-field>\n </div>\n</ng-container>","import { Component } from '@angular/core';\nimport { BaseFormControlComponent } from '../base-form-control.component';\nimport { NgIf } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { MatFormField, MatLabel } from '@angular/material/form-field';\nimport { MatSelectModule } from '@angular/material/select';\nimport { BaseEntity } from '../../base-entity/base-entity';\n\n@Component({\n selector: 'base-dropdown',\n standalone: true,\n templateUrl: './dropdown.component.html',\n imports: [NgIf, ReactiveFormsModule, MatLabel, MatFormField, MatSelectModule],\n})\nexport class DropdownComponent<Entity extends BaseEntity> extends BaseFormControlComponent<Entity> {}\n","<ng-container *ngIf=\"config().visible\">\n <div class=\"row\" [formGroup]=\"formGroup\">\n <mat-form-field>\n <mat-label>{{config().label}}</mat-label>\n <mat-select formControlName=\"{{config().attrName}}\">\n @for (option of config().selectables; track option) {\n <mat-option [value]=\"option.value\">{{option.value}}</mat-option>\n }\n </mat-select>\n </mat-form-field>\n </div>\n</ng-container>","import { NgClass, NgIf } from '@angular/common';\nimport { Component } from '@angular/core';\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\nimport { MatCheckbox } from '@angular/material/checkbox';\nimport { BaseFormControlComponent } from '../base-form-control.component';\nimport { BaseEntity } from '../../base-entity/base-entity';\n\n@Component({\n selector: 'base-checkbox',\n standalone: true,\n templateUrl: './checkbox.component.html',\n styleUrls: ['./checkbox.component.css'],\n imports: [NgClass, NgIf, MatCheckbox, FormsModule, ReactiveFormsModule],\n})\nexport class CheckboxComponent<Entity extends BaseEntity> extends BaseFormControlComponent<Entity> {}\n","<ng-container *ngIf=\"config().visible\">\n <div [formGroup]=\"formGroup\" class=\"row\">\n <mat-checkbox [ngClass]=\"config().labelClass\" formControlName=\"{{config().attrName}}\">{{config().label}}</mat-checkbox>\n </div>\n</ng-container>","import { Component } from '@angular/core';\nimport { BaseFormControlComponent } from '../base-form-control.component';\nimport { BaseEntity } from '../../base-entity/base-entity';\nimport { NgClass, NgForOf, NgIf } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\n\n@Component({\n selector: 'base-radio',\n standalone: true,\n templateUrl: './radio.component.html',\n imports: [NgIf, NgClass, NgForOf, ReactiveFormsModule],\n})\nexport class RadioComponent<Entity extends BaseEntity> extends BaseFormControlComponent<Entity> {}\n","<ng-container *ngIf=\"config().visible\">\n <div class=\"row\" [formGroup]=\"formGroup\">\n <ng-container *ngIf=\"config().label\">\n <label [for]=\"config().attrName\">{{config().label}}</label>\n </ng-container>\n <div \n [ngClass]=\"config().styleClass ? config().styleClass : ''\"\n *ngFor=\"let radio of config().selectables; let i = index\">\n <input type=\"radio\"\n class=\"form-check-input\"\n [name]=\"config().attrName\"\n [id]=\"config().attrName + i\"\n [value]=\"radio.value\"\n [checked]=\"radio.key === value()\"\n [disabled]=\"config().disabled\"\n >\n <label [for]=\"config().attrName\" [ngClass]=\"config().labelClass ? config().labelClass : ''\">{{radio.value}}</label>\n </div>\n </div>\n</ng-container>","import { Component } from '@angular/core';\nimport { BaseFormControlComponent } from '../base-form-control.component';\nimport { BaseEntity } from '../../base-entity/base-entity';\nimport { NgClass, NgIf } from '@angular/common';\nimport { MatFormField, MatLabel } from '@angular/material/form-field';\nimport { MatInput } from '@angular/material/input';\nimport { ReactiveFormsModule } from '@angular/forms';\n\n@Component({\n selector: 'base-textarea',\n standalone: true,\n templateUrl: './textarea.component.html',\n imports: [NgIf, NgClass, MatFormField, MatInput, MatLabel, ReactiveFormsModule],\n})\nexport class TextareaComponent<Entity extends BaseEntity> extends BaseFormControlComponent<Entity> {}\n","<ng-container *ngIf=\"config().visible\">\n <div class=\"row\" [formGroup]=\"formGroup\">\n <mat-form-field [ngClass]=\"config().styleClass\">\n <mat-label [ngClass]=\"config().labelClass\">{{config().label}}</mat-label>\n <textarea matInput formControlName=\"{{config().attrName}}\" placeholder=\"Ex. It makes me feel...\"></textarea>\n </mat-form-field>\n </div>\n</ng-container>","import { Directive, ViewContainerRef } from '@angular/core';\n\n@Directive({\n standalone: true,\n selector: '[flexBoxHost]',\n})\nexport class FlexBoxHostDirective {\n constructor(public viewContainerRef: ViewContainerRef) {}\n}\n","import { AbstractAttrDescriptor, FormControlType } from './abstact-attr.descriptor';\n\nexport enum FlexDirection {\n CONTAINER = 0,\n COLUMN = 1,\n ROW = 2,\n}\n\nexport class FlexboxDescriptor extends AbstractAttrDescriptor {\n readonly attrDescriptors: AbstractAttrDescriptor[];\n readonly direction: FlexDirection;\n\n constructor(attrDescriptors: AbstractAttrDescriptor[], direction: FlexDirection) {\n super('dummy', FormControlType.FLEX_BOX);\n this.attrDescriptors = attrDescriptors;\n this.direction = direction;\n }\n}\n","import { Component, computed, ViewChild } from '@angular/core';\nimport { BaseEntity } from '../../base-entity/base-entity';\nimport { BaseFormControlComponent } from '../base-form-control.component';\nimport { FlexBoxHostDirective } from './flex-box-host.directive';\nimport { FlexboxDescriptor, FlexDirection } from '../../base-entity/flexboxDescriptor';\nimport { NgClass, NgStyle } from '@angular/common';\n\n@Component({\n selector: 'flex-box',\n imports: [FlexBoxHostDirective, NgClass, NgStyle],\n templateUrl: './flex-box.component.html',\n styleUrls: ['./flex-box.component.scss'],\n})\nexport class FlexBoxComponent<Entity extends BaseEntity> extends BaseFormControlComponent<Entity> {\n @ViewChild(FlexBoxHostDirective, { static: true, read: FlexBoxHostDirective }) flexBoxHost!: FlexBoxHostDirective;\n flexBoxClass = computed<string>(() => this.calculateFlexStyle((this.config() as unknown as FlexboxDescriptor).direction));\n\n // region protected, private helper methods\n private calculateFlexStyle(direction: FlexDirection): string {\n switch (direction) {\n case FlexDirection.CONTAINER:\n return 'flex-box-container';\n case FlexDirection.COLUMN:\n return 'flex-box-container-columns';\n case FlexDirection.ROW:\n return 'flex-box-container-rows';\n default:\n throw new Error('Unknown flex direction');\n }\n }\n\n // endregion\n}\n","<div [ngClass]=\"flexBoxClass()\" [ngStyle]=\"style()\">\n <ng-template flexBoxHost></ng-template>\n</div>\n","import { Injectable, Signal, signal, Type, ViewContainerRef } from '@angular/core';\nimport { AbstractAttrDescriptor, FormControlType } from '../base-entity/abstact-attr.descriptor';\nimport { BaseEntity } from '../base-entity/base-entity';\nimport { BaseFormControlComponent } from './base-form-control.component';\nimport { FormControl, FormGroup, Validators } from '@angular/forms';\nimport { LabelComponent } from './label/label.component';\nimport { DatepickerComponent } from './datepicker/datepicker.component';\nimport { ForeignKeyComponent } from './foreign-key/foreign-key.component';\nimport { TextboxComponent } from './textbox/textbox.component';\nimport { DropdownComponent } from './dropdown/dropdown.component';\nimport { CheckboxComponent } from './checkbox/checkbox.component';\nimport { RadioComponent } from './radio/radio.component';\nimport { TextareaComponent } from './textarea/textarea.component';\nimport { FlexBoxComponent } from './flex-box/flex-box.component';\nimport { BaseEntityAttrDescriptor } from '../base-entity/base-entity-attr.descriptor';\nimport { FlexboxDescriptor } from '../base-entity/flexboxDescriptor';\n\n@Injectable({ providedIn: 'root' })\nexport class BaseEntityFormBuilder<Entity extends BaseEntity> {\n // region public methods\n public buildForm(viewContainerRef: ViewContainerRef, baseEntityForm: FormGroup, store: any, attrDescriptors: AbstractAttrDescriptor[], entity: Signal<Entity>): void {\n viewContainerRef.clear();\n attrDescriptors.forEach((column: AbstractAttrDescriptor) => {\n const formControlType = this.createFormControl(column);\n if (formControlType) {\n const componentRef = viewContainerRef.createComponent<BaseFormControlComponent<Entity>>(formControlType);\n componentRef.instance.config = signal(column as BaseEntityAttrDescriptor);\n componentRef.instance.entity = entity;\n componentRef.instance.formGroup = baseEntityForm;\n componentRef.instance.store = store;\n if (column instanceof BaseEntityAttrDescriptor) {\n const currentAttrValue = Reflect.get(entity(), column.attrName);\n componentRef.instance.value = signal(currentAttrValue);\n const formControl = new FormControl({ value: currentAttrValue, disabled: column.disabled }, Validators.required);\n baseEntityForm.addControl(column.attrName, formControl);\n } else if (column instanceof FlexboxDescriptor) {\n this.buildForm((componentRef.instance as FlexBoxComponent<Entity>).flexBoxHost.viewContainerRef, baseEntityForm, store, column.attrDescriptors, entity);\n } else throw Error('Undefined subclass of AbstractAttrDescriptor');\n }\n });\n }\n\n // endregion\n\n // region protected, private helper methods\n private createFormControl(column: AbstractAttrDescriptor): Type<BaseFormControlComponent<Entity>> {\n if (column.formControlType === FormControlType.LABEL) {\n return LabelComponent<Entity>;\n } else if (column.formControlType === FormControlType.DATE) {\n return DatepickerComponent<Entity>;\n } else if (column.formControlType === FormControlType.FLEX_BOX) {\n return FlexBoxComponent<Entity>;\n } else if (column.formControlType === FormControlType.FOREIGN_KEY) {\n return ForeignKeyComponent<Entity>;\n } else if (column.formControlType === FormControlType.TEXT_BOX) {\n return TextboxComponent<Entity>;\n } else if (column.formControlType === FormControlType.DROPDOWN) {\n return DropdownComponent<Entity>;\n } else if (column.formControlType === FormControlType.CHECKBOX) {\n return CheckboxComponent<Entity>;\n } else if (column.formControlType === FormControlType.RADIO) {\n return RadioComponent<Entity>;\n } else if (column.formControlType === FormControlType.TEXTAREA) {\n return TextareaComponent<Entity>;\n } else throw Error('Undefined form control type');\n }\n\n // endregion\n}\n","import { BaseEntity } from '../base-entity/base-entity';\nimport { Component, computed, effect, inject, input, OnInit, Signal, untracked, ViewChild } from '@angular/core';\nimport { FormBuilder, FormGroup, ReactiveFormsModule } from '@angular/forms';\nimport { ROUTER_OUTLET_DATA } from '@angular/router';\nimport { BaseEntityDescriptor } from '../base-entity/base-entity.descriptor';\nimport { BaseFormHostDirective } from './base-form-host.directive';\nimport { MatCard, MatCardActions, MatCardContent } from '@angular/material/card';\nimport { MAT_FORM_FIELD_DEFAULT_OPTIONS } from '@angular/material/form-field';\nimport { MatButton } from '@angular/material/button';\nimport { BaseUrlSegments } from '../base-form-navigator/base-url-segments';\nimport { BaseEntityFormBuilder } from './base-entity-form.builder';\n\n@Component({\n selector: 'base-form',\n standalone: true,\n templateUrl: 'base-entity-form.component.html',\n imports: [BaseFormHostDirective, ReactiveFormsModule, MatCard, MatCardContent, MatCardActions, MatButton],\n providers: [{ provide: MAT_FORM_FIELD_DEFAULT_OPTIONS, useValue: { appearance: 'outline' } }],\n})\nexport class BaseEntityFormComponent<Entity extends BaseEntity> implements OnInit {\n baseEntityForm!: FormGroup;\n baseEntityListOptions = inject(ROUTER_OUTLET_DATA) as Signal<BaseEntityDescriptor>;\n entity: Signal<Entity> = computed(() => (this.isNewObject() ? this.store().createEntity() : this.store().loadById(this.entityId())));\n entityId: Signal<string> = input.required<string>();\n @ViewChild(BaseFormHostDirective, { static: true, read: BaseFormHostDirective }) componentHost!: BaseFormHostDirective;\n store: Signal<any> = computed(() => this.baseEntityListOptions().store);\n private readonly entityFormBuilder = inject(BaseEntityFormBuilder<Entity>);\n private readonly formBuilder = inject(FormBuilder);\n private readonly isNewObject = computed(() => this.entityId() === BaseUrlSegments.NewEntity);\n\n constructor() {\n this.registerEffects();\n }\n\n // region angular lifecycle hooks\n ngOnInit(): void {\n this.store().determineActiveRouteSegment();\n this.baseEntityForm = this.formBuilder.group({});\n }\n\n // endregion\n\n // region event handlers\n async onCancel() {\n this.store().setCurrentEntity(undefined);\n await this.store().navigateBack();\n }\n\n async onSubmit() {\n const objectToSave = { ...this.entity(), ...this.baseEntityForm.value };\n if (this.isNewObject()) {\n this.store().add(objectToSave);\n } else {\n this.store().update(objectToSave, objectToSave.id);\n }\n this.store().setCurrentEntity(undefined);\n await this.store().navigateBack();\n }\n\n // endregion\n\n // region protected, private helper methods\n private registerEffects(): void {\n effect(() => {\n if (this.entityId() && this.baseEntityListOptions() && this.entity())\n untracked(() => {\n this.entityFormBuilder.buildForm(this.componentHost.viewContainerRef, this.baseEntityForm, this.store(), this.baseEntityListOptions().attrDescriptors, this.entity);\n });\n });\n\n effect(() => {\n if (this.entity()) this.store().setCurrentEntity(this.entity().id);\n });\n }\n\n // endregion\n}\n","<mat-card appearance=\"outlined\" class=\"dense-3\">\n <mat-card-content>\n <form [formGroup]=\"baseEntityForm\" (ngSubmit)=\"onSubmit()\">\n <ng-template baseFormHost></ng-template>\n </form>\n </mat-card-content>\n <mat-card-actions>\n <button id=\"cancel\" mat-raised-button color=\"secondary\" (click)=\"onCancel()\">Cancel</button>\n <button id=\"submit\" mat-raised-button color=\"primary\" type=\"submit\" [disabled]=\"baseEntityForm.invalid || !baseEntityForm.dirty\" (click)=\"onSubmit()\">Save</button>\n </mat-card-actions>\n</mat-card>\n","import { AbstractAttrDescriptor } from './abstact-attr.descriptor';\nimport { BaseEntityAttrDescriptor } from './base-entity-attr.descriptor';\nimport { FlexboxDescriptor } from './flexboxDescriptor';\n\nexport function filterAttributeDescriptors(descriptors: AbstractAttrDescriptor[]): BaseEntityAttrDescriptor[] {\n let attrDescriptors: BaseEntityAttrDescriptor[] = [];\n descriptors.forEach((descriptor) => {\n if (descriptor instanceof BaseEntityAttrDescriptor) attrDescriptors.push(descriptor);\n else if (descriptor instanceof FlexboxDescriptor) {\n attrDescriptors = attrDescriptors.concat(filterAttributeDescriptors(descriptor.attrDescriptors));\n }\n });\n return attrDescriptors;\n}\n","import { AfterViewInit, Component, computed, effect, inject, InjectionToken, OnInit, Signal, ViewChild } from '@angular/core';\nimport { BaseEntity } from '../base-entity/base-entity';\nimport { MatCell, MatCellDef, MatColumnDef, MatHeaderCell, MatHeaderCellDef, MatHeaderRow, MatHeaderRowDef, MatRow, MatRowDef, MatTable, MatTableDataSource } from '@angular/material/table';\nimport { MatSort, MatSortHeader } from '@angular/material/sort';\nimport { MatPaginator } from '@angular/material/paginator';\nimport { NgForOf } from '@angular/common';\nimport { Router, ROUTER_OUTLET_DATA } from '@angular/router';\nimport { BaseEntityAttrDescriptor } from '../base-entity/base-entity-attr.descriptor';\nimport { MatProgressBar } from '@angular/material/progress-bar';\nimport { BaseEntityDescriptor } from '../base-entity/base-entity.descriptor';\nimport { MatCheckbox } from '@angular/material/checkbox';\nimport { SelectionModel } from '@angular/cdk/collections';\nimport { filterAttributeDescriptors } from '../base-entity/filter-attr-descriptor';\nimport { FilterCondition } from '../base-entity-service/base-entity-load-response';\n\nexport const BASE_LIST_DESCRIPTORS = new InjectionToken<string[]>('BASE_TABLE_DISPLAYED_COLUMNS');\n\n@Component({\n selector: 'base-list',\n standalone: true,\n imports: [\n MatTable,\n MatSort,\n MatHeaderCell,\n MatPaginator,\n MatHeaderRow,\n MatRow,\n MatCell,\n MatColumnDef,\n NgForOf,\n MatHeaderCellDef,\n MatCellDef,\n MatHeaderRowDef,\n MatRowDef,\n MatSortHeader,\n MatProgressBar,\n MatCheckbox,\n ],\n templateUrl: 'base-entity-list.component.html',\n styleUrl: 'base-entity-list.component.css',\n})\nexport class BaseEntityListComponent<Entity extends BaseEntity> implements AfterViewInit, OnInit {\n dataSource: MatTableDataSource<Entity> = new MatTableDataSource<Entity>();\n selection = new SelectionModel<Entity>(true, []);\n private readonly entityDescriptor = inject(ROUTER_OUTLET_DATA) as Signal<BaseEntityDescriptor>;\n columnDescriptors: Signal<BaseEntityAttrDescriptor[]> = computed(() => {\n return filterAttributeDescriptors(this.entityDescriptor().attrDescriptors);\n });\n displayedColumns: Signal<string[]> = computed(() => {\n const columns = this.columnDescriptors().map((column) => column.attrName);\n columns.unshift('select');\n return columns;\n });\n @ViewChild(MatSort) sort = {} as MatSort;\n @ViewChild(MatPaginator) paginator = {} as MatPaginator;\n store: any;\n router = inject(Router);\n\n constructor() {\n this.store = this.entityDescriptor().store;\n this.registerEffects();\n }\n\n // region Angular lifecycle events\n ngAfterViewInit(): void {\n this.dataSource = this.store?.matTableDataSource();\n this.dataSource.sort = this.sort;\n this.dataSource.paginator = this.paginator;\n this.loadAllData();\n }\n\n ngOnInit(): void {\n this.store.determineActiveRouteSegment();\n }\n\n // endregion\n\n // region event handling methods\n onChangeSelection(entity?: Entity) {\n if (entity && this.isSelected(entity)) this.store.selectEntity(entity.id);\n else this.store.deselectEntity(entity);\n\n if (this.selection.selected.length === 1) this.store.setCurrentEntity(this.selection.selected[0].id);\n else this.store.clearCurrentEntity();\n }\n\n onNavigateToDetails(entity: Entity): void {\n this.store.navigateToDetails(entity.id);\n this.store.setCurrentEntity(entity.id);\n }\n\n onNavigateToRelated(config: BaseEntityAttrDescriptor, entity: Entity) {\n this.store.navigateToRelated(config.linkedEntityType, this.getPropertyValue(entity, config.attrName));\n }\n\n onRowClick(entity: Entity) {\n this.selection.toggle(entity);\n this.onChangeSelection(entity);\n }\n\n onToggleAllRows(): void {\n if (this.isAllSelected()) {\n this.cancelSelections();\n } else {\n this.dataSource.data.forEach((entity) => {\n this.selection.select(entity);\n this.store.selectEntity(entity.id);\n });\n }\n }\n\n // endregion\n\n // region protected, private helper methods\n private cancelSelections() {\n this.store.deselectAll();\n this.selection.clear();\n }\n\n private doFilter(filterKey: string) {\n this.dataSource.filter = filterKey.trim().toLocaleLowerCase();\n }\n\n private getPropertyValue(entity: Entity, property: string): any {\n return Reflect.get(entity, property);\n }\n\n private loadAllData() {\n const pathParams = new Map<string, string>([]);\n const filters: FilterCondition[] = [];\n this.store.load({ pathParams, filters });\n }\n\n protected registerEffects(): void {\n effect(() => (this.dataSource.data = this.store.entities()));\n effect(() => {\n if (this.store.filterKey()) this.doFilter(this.store.filterKey());\n });\n }\n\n // endregion\n\n // region properties\n isAllSelected() {\n const numSelected = this.selection.selected.length;\n const numRows = this.dataSource.data.length;\n return numSelected == numRows;\n }\n\n isSelected(row: Entity) {\n return this.selection.isSelected(row);\n }\n\n // endregion\n}\n","@if (store.isLoading()) {\n <mat-progress-bar mode=\"query\"></mat-progress-bar>\n}\n<table mat-table [dataSource]=\"dataSource\" class=\"mat-elevation-z8 demo-table\" matSort aria-describedby=\"base-entity-list\">\n <!-- Checkbox Column -->\n <ng-container matColumnDef=\"select\">\n <th mat-header-cell *matHeaderCellDef>\n <mat-checkbox (change)=\"$event ? onToggleAllRows() : null\" [checked]=\"selection.hasValue() && isAllSelected()\" [indeterminate]=\"selection.hasValue() && !isAllSelected()\"> </mat-checkbox>\n </th>\n <td mat-cell *matCellDef=\"let row\">\n <mat-checkbox (click)=\"$event.stopPropagation()\" (change)=\"$event ? selection.toggle(row) : null; onChangeSelection(row)\" [checked]=\"selection.isSelected(row)\"></mat-checkbox>\n </td>\n </ng-container>\n\n <ng-container *ngFor=\"let colDescriptor of columnDescriptors(); index as i\" [matColumnDef]=\"colDescriptor.attrName\">\n <th mat-header-cell *matHeaderCellDef mat-sort-header>{{ colDescriptor.label }}</th>\n <!-- //NOSONAR --><td (click)=\"onRowClick(element)\" *matCellDef=\"let element\" mat-cell>\n @if (colDescriptor.isLinkToDetails === true) {\n <a (click)=\"onNavigateToDetails(element)\">{{ element[colDescriptor.attrName] }}</a>\n } @else if (colDescriptor.linkedEntityType !== undefined ) {\n <a (click)=\"onNavigateToRelated(colDescriptor, element)\">{{ element[colDescriptor.attrName] }}</a>\n } @else {\n {{ element[colDescriptor.attrName] }}\n }\n </td>\n </ng-container>\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns()\"></tr>\n <tr mat-row *matRowDef=\"let row; columns: displayedColumns()\"></tr>\n</table>\n<mat-paginator [pageSizeOptions]=\"[3, 5, 8]\" showFirstLastButtons></mat-paginator>\n","import { BaseEntity } from '../base-entity/base-entity';\nimport { DocumentSnapshot, WhereFilterOp } from '@angular/fire/firestore';\n\nexport interface WhereCondition<Entity extends BaseEntity> {\n field: keyof Entity;\n operator: WhereFilterOp;\n value: Entity[keyof Entity];\n}\n\nexport interface OrderByCondition<Entity extends BaseEntity> {\n field: keyof Entity;\n order?: OrderByDirection;\n}\n\nexport interface FilterCondition {\n property: string;\n operator: WhereFilterOp;\n value: string;\n}\n\nexport enum OrderByDirection {\n ASC = 'asc',\n DESC = 'desc',\n}\n\nexport interface OrderBy {\n property: string;\n direction: string;\n}\n\nexport interface BaseEntityQueryCondition {\n path?: string;\n hash?: string;\n page?: number;\n pageSize?: number;\n pathParams?: Map<string, string>;\n filters?: FilterCondition[];\n orderBys?: OrderBy[];\n}\n\nexport interface FirestoreQuery<Entity extends BaseEntity> {\n limit?: number;\n startAt?: number | string | DocumentSnapshot<Entity>;\n startAfter?: number | string | DocumentSnapshot<Entity> | null;\n endAt?: number | DocumentSnapshot<Entity>;\n endBefore?: number | DocumentSnapshot<Entity>;\n orderBy?: OrderByCondition<Entity>[];\n where?: WhereCondition<Entity>[];\n}\n\nexport interface BaseEntityLoadResponse<Entity extends BaseEntity> {\n page: number | undefined;\n pageSize: number | undefined;\n totalPageCount: number | undefined;\n content: Entity[];\n}\n","import { patchState, signalStoreFeature, withMethods, withState } from '@ngrx/signals';\n\nexport interface EntityTabsState {\n activeTabs: string[];\n currentTab: string | undefined;\n}\n\nconst INITIAL_TABS_STATE: EntityTabsState = {\n activeTabs: [],\n currentTab: undefined,\n};\n\nexport function BaseEntityTabsStore() {\n return signalStoreFeature(\n withState<EntityTabsState>(INITIAL_TABS_STATE),\n withMethods((store) => {\n function reset(): void {\n const activeTabs: string[] = [];\n patchState(store, { activeTabs, currentTab: undefined });\n }\n function tabIsActive(tabName: string): void {\n let activeTabs: Array<string>;\n if (store.activeTabs().indexOf(tabName) == -1) {\n activeTabs = store.activeTabs().concat([tabName]);\n } else {\n activeTabs = store.activeTabs();\n }\n patchState(store, { activeTabs, currentTab: tabName });\n }\n function tabIsInactive(tabName: string): void {\n const activeTabs = store.activeTabs().filter((tab) => tab !== tabName);\n patchState(store, { activeTabs, currentTab: undefined });\n }\n return { reset, tabIsActive, tabIsInactive };\n }),\n );\n}\n","import { BaseEntity } from '../base-entity/base-entity';\nimport { BaseEntityLoadResponse, BaseEntityQueryCondition } from './base-entity-load-response';\nimport { Observable } from 'rxjs';\nimport { InjectionToken } from '@angular/core';\n\nexport const BASE_ENTITY_SERVICE = new InjectionToken<BaseEntityService<any>>('BASE_ENTITY_SERVICE');\n\nexport interface BaseEntityService<Entity extends BaseEntity> {\n add(entity: Entity, id?: number): Observable<Entity>;\n\n delete(id: string): Observable<unknown>;\n\n deleteAll(): Observable<unknown>;\n\n findAll(page?: number, pageSize?: number): Observable<BaseEntityLoadResponse<Entity> | Entity[] | Entity>;\n\n findById(id: string): Observable<Entity | void>;\n\n findByQuery(condition: BaseEntityQueryCondition): Observable<BaseEntityLoadResponse<Entity> | Entity[] | Entity>;\n\n update(entity: Entity): Observable<Entity>;\n}\n","import { patchState } from '@ngrx/signals';\nimport { tapResponse } from '@ngrx/operators';\nimport { HttpErrorResponse } from '@angular/common/http';\nimport { rxMethod } from '@ngrx/signals/rxjs-interop';\nimport { pipe, switchMap } from 'rxjs';\nimport { BaseEntityService } from '../base-entity-service/base-entity.service';\nimport { BaseEntity } from '../base-entity/base-entity';\n\nexport const addEntity = <Entity extends BaseEntity>(store: any, repository: BaseEntityService<Entity>) => {\n return rxMethod<Entity>(\n pipe(\n switchMap((entity) => {\n patchState(store, { isLoading: true, error: undefined });\n return repository.add(entity).pipe(\n tapResponse<Entity>({\n next: (savedEntity: Entity) => {\n patchState(store, { entities: store.entities().concat([savedEntity]), isLoading: false });\n },\n error: (error) => patchState(store, { error: (error as HttpErrorResponse).message }),\n finalize: () => patchState(store, { isLoading: false }),\n }),\n );\n }),\n ),\n );\n};\n","import { BaseEntity } from '../base-entity/base-entity';\nimport { BaseEntityService } from '../base-entity-service/base-entity.service';\nimport { rxMethod } from '@ngrx/signals/rxjs-interop';\nimport { pipe, switchMap, tap } from 'rxjs';\nimport { patchState } from '@ngrx/signals';\nimport { tapResponse } from '@ngrx/operators';\nimport { HttpErrorResponse } from '@angular/common/http';\n\nexport const deleteEntity = <Entity extends BaseEntity>(store: any, repository: BaseEntityService<Entity>) => {\n return rxMethod<string>(\n pipe(\n tap(() => patchState(store, { isLoading: true, error: undefined })),\n switchMap((id: string) => {\n return repository.delete(id).pipe(\n tapResponse({\n next: () => {\n const remainingEntities = store.entities().filter((entity: Entity) => entity.id !== id);\n patchState(store, { entities: remainingEntities, isLoading: false });\n },\n error: (error: HttpErrorResponse) => patchState(store, { error: error.message }),\n finalize: () => patchState(store, { isLoading: false }),\n }),\n );\n }),\n ),\n );\n};\n","import { BaseEntity } from '../base-entity/base-entity';\nimport { BaseEntityService } from '../base-entity-service/base-entity.service';\nimport { pipe, switchMap } from 'rxjs';\nimport { patchState } from '@ngrx/signals';\nimport { tapResponse } from '@ngrx/operators';\nimport { HttpErrorResponse } from '@angular/common/http';\nimport { rxMethod } from '@ngrx/signals/rxjs-interop';\n\nexport const deleteAllEntities = <Entity extends BaseEntity>(store: any, repository: BaseEntityService<Entity>) => {\n return rxMethod<void>(\n pipe(\n switchMap(() => {\n patchState(store, { isLoading: true, error: undefined });\n return repository.deleteAll().pipe(\n tapResponse({\n next: () => patchState(store, { entities: [], isLoading: false }),\n error: (error: HttpErrorResponse) => patchState(store, { error: error.message }),\n finalize: () => patchState(store, { isLoading: false }),\n }),\n );\n }),\n ),\n );\n};\n","import { BaseEntity } from '../base-entity/base-entity';\nimport { BaseEntityService } from '../base-entity-service/base-entity.service';\nimport { rxMethod } from '@ngrx/signals/rxjs-interop';\nimport { pipe, switchMap } from 'rxjs';\nimport { patchState } from '@ngrx/signals';\nimport { tapResponse } from '@ngrx/operators';\nimport { HttpErrorResponse } from '@angular/common/http';\n\nexport const updateEntity = <Entity extends BaseEntity>(store: any, repository: BaseEntityService<Entity>) => {\n return rxMethod<Entity>(\n pipe(\n switchMap((entity) => {\n patchState(store, { isLoading: true, error: undefined });\n return repository.update(entity).pipe(\n tapResponse<Entity>({\n next: (updatedEntity: Entity) => {\n const currentEntities = store.entities();\n const indexToUpdate = currentEntities.findIndex((item: Entity) => item.id === entity.id);\n currentEntities[indexToUpdate] = updatedEntity;\n patchState(store, { entities: [...currentEntities], isLoading: false });\n },\n error: (error) => patchState(store, { error: (error as HttpErrorResponse).message }),\n finalize: () => patchState(store, { isLoading: false }),\n }),\n );\n }),\n ),\n );\n};\n","import { BaseEntity } from '../base-entity/base-entity';\nimport { BaseEntityService } from '../base-entity-service/base-entity.service';\nimport { rxMethod } from '@ngrx/signals/rxjs-interop';\nimport { BaseEntityLoadResponse, BaseEntityQueryCondition } from '../base-entity-service/base-entity-load-response';\nimport { pipe, switchMap, tap } from 'rxjs';\nimport { patchState } from '@ngrx/signals';\nimport { tapResponse } from '@ngrx/operators';\nimport { HttpErrorResponse } from '@angular/common/http';\n\nexport const findByQuery = <Entity extends BaseEntity>(store: any, repository: BaseEntityService<Entity>) => {\n return rxMethod<BaseEntityQueryCondition>(\n pipe(\n tap((query: BaseEntityQueryCondition) => patchState(store, { page: query.page, isLoading: true, error: undefined })),\n // debounceTime(1000),\n // distinctUntilChanged(),\n switchMap((parameters) =>\n repository.findByQuery(parameters).pipe(\n tapResponse({\n next: (response: BaseEntityLoadResponse<Entity> | Entity[] | Entity) => {\n if (Object.prototype.hasOwnProperty.call(response, 'content')) {\n const baseEntityResponse = response as BaseEntityLoadResponse<Entity>;\n patchState(store, {\n entities: baseEntityResponse.content,\n page: baseEntityResponse.page,\n pageSize: baseEntityResponse.pageSize,\n totalPageCount: baseEntityResponse.totalPageCount,\n isLoading: false,\n });\n } else {\n const entities = (response as Entity[]).slice();\n patchState(store, {\n entities,\n page: undefined,\n pageSize: entities.length,\n totalPageCount: undefined,\n isLoading: false,\n });\n }\n },\n error: (error: HttpErrorResponse) => patchState(store, { error: error.message }),\n finalize: () => patchState(store, { isLoading: false }),\n }),\n ),\n ),\n ),\n );\n};\n","import { BaseEntity } from '../base-entity/base-entity';\nimport { patchState, signalStoreFeature, withComputed, withHooks, withMethods, withState } from '@ngrx/signals';\nimport { computed, inject, InjectionToken, ProviderToken } from '@angular/core';\nimport { MatTableDataSource } from '@angular/material/table';\nimport { BaseEntityService } from '../base-entity-service/base-entity.service';\nimport { addEntity } from './addEntity';\nimport { deleteEntity } from './deleteEntity';\nimport { deleteAllEntities } from './deleteAllEntities';\nimport { updateEntity } from './updateEntity';\nimport { findByQuery } from './findByQuery';\n\nexport const BASE_ENTITY_STORE = new InjectionToken<any>('BASE_ENTITY_STORE');\n\nexport interface EntityStoreState<Entity extends BaseEntity> {\n entities: Entity[];\n page: number;\n pageSize: number;\n totalPageCount: number;\n currentId: string | undefined;\n currentEntity: Entity | undefined;\n isLoading: boolean;\n error: string | undefined;\n selectedEntities: Array<Entity>;\n}\n\nexport function BaseEntityStore<Entity extends BaseEntity>(entityType: new () => Entity, repositoryType: ProviderToken<BaseEntityService<Entity>>) {\n return signalStoreFeature(\n withState<EntityStoreState<Entity>>({\n entities: [],\n page: 0,\n pageSize: 5,\n totalPageCount: 0,\n currentEntity: undefined,\n currentId: undefined,\n isLoading: false,\n error: undefined,\n selectedEntities: [],\n }),\n withMethods((store, repository = inject(repositoryType)) => ({\n clearCurrentEntity: () => patchState(store, { currentEntity: undefined }),\n createEntity: (): Entity => new entityType(),\n add: addEntity(store, repository),\n delete: deleteEntity(store, repository),\n deleteAll: deleteAllEntities(store, repository),\n deselectAll: () => {\n patchState(store, { selectedEntities: [] });\n },\n deselectEntity: (id: string) => {\n const subjectEntity = store.selectedEntities().find((entity) => entity.id === id);\n if (subjectEntity) {\n const index = store.selectedEntities().indexOf(subjectEntity, 0);\n if (index > -1) {\n const selectedEntities = store.selectedEntities().concat([]);\n selectedEntities.splice(index, 1);\n patchState(store, { selectedEntities });\n }\n }\n },\n load: findByQuery(store, repository),\n loadById: (id: string): Entity | undefined => {\n return store.entities().find((entity) => entity.id === id);\n },\n resetErrorState: () => patchState(store, { error: undefined }),\n selectEntity: (id: string) => {\n const foundEntity = store.entities() && store.entities().length > 0 ? store.entities().filter((entity) => entity.id === id) : undefined;\n if (foundEntity && foundEntity.length == 1 && store.selectedEntities().indexOf(foundEntity[0]) == -1) {\n patchState(store, { selectedEntities: store.selectedEntities().concat(foundEntity) });\n }\n },\n setCurrentEntity: (id: string): void => {\n const foundEntity = store.entities() && store.entities().length > 0 ? store.entities().filter((entity) => entity.id === id) : undefined;\n if (foundEntity && foundEntity.length > 0) {\n patchState(store, { currentEntity: foundEntity[0], currentId: foundEntity[0].id });\n } else patchState(store, { currentEntity: undefined, currentId: undefined });\n },\n update: updateEntity(store, repository),\n })),\n withHooks((store) => ({\n onInit: () => {\n store.load({});\n },\n })),\n withComputed((store) => ({\n countOfEntities: computed(() => store.entities().length),\n matTableDataSource: computed(() => new MatTableDataSource<Entity>(store.entities())),\n })),\n );\n}\n","import { patchState, signalStoreFeature, withHooks, withMethods, withState } from '@ngrx/signals';\nimport { inject } from '@angular/core';\nimport { ActivatedRoute, Router } from '@angular/router';\nimport { BaseUrlSegments } from './base-url-segments';\n\nexport enum RouteSegments {\n LIST_ROUTE = 'LIST_ROUTE',\n DETAILS_ROUTE = 'DETAILS_ROUTE',\n}\n\nexport interface NavigationState {\n activeRouteSegment: RouteSegments;\n entityName: string;\n navigationError?: string;\n navigateTo: string;\n returnTo: string;\n}\n\nconst INITIAL_NAVIGATION_STATE: NavigationState = {\n activeRouteSegment: RouteSegments.LIST_ROUTE,\n entityName: '',\n navigationError: undefined,\n navigateTo: '',\n returnTo: '',\n};\n\nfunction snakeCaseName(entityName: string) {\n return entityName\n .split(/(?=[A-Z])/)\n .join('-')\n .toLowerCase();\n}\n\nexport function BaseFormNavigatorStore(entityName: string) {\n return signalStoreFeature(\n withState<NavigationState>(INITIAL_NAVIGATION_STATE),\n withMethods((store, router = inject(Router), route = inject(ActivatedRoute)) => {\n function determineActiveRouteSegment(): void {\n const currentUrl = Reflect.get(route, '_routerState').snapshot.url;\n if (currentUrl.endsWith(BaseUrlSegments.ListForm)) {\n patchState(store, { activeRouteSegment: RouteSegments.LIST_ROUTE });\n } else if (currentUrl.endsWith(BaseUrlSegments.DetailsForm)) {\n patchState(store, { activeRouteSegment: RouteSegments.DETAILS_ROUTE });\n } else {\n patchState(store, { activeRouteSegment: undefined });\n }\n }\n\n function determineBaseUrl(): string {\n determineActiveRouteSegment();\n const currentUrl = determineCurrentUrl();\n return store.activeRouteSegment() === RouteSegments.DETAILS_ROUTE ? levelUpUrl(levelUpUrl(levelUpUrl(currentUrl))) : levelUpUrl(levelUpUrl(currentUrl));\n }\n\n function determineCurrentUrl(): string {\n return Reflect.get(route, '_routerState').snapshot.url;\n }\n\n function levelUpUrl(currentUrl: string) {\n return currentUrl.substring(0, currentUrl.lastIndexOf('/'));\n }\n\n async function navigateBack(defaultUrl?: string): Promise<void> {\n const goTo = store.returnTo() ? store.returnTo() : defaultUrl;\n patchState(store, { returnTo: '' });\n if (goTo) {\n await router\n .navigateByUrl(goTo)\n .then()\n .catch((error) => patchState(store, { navigationError: error.message }));\n } else await navigateToList();\n }\n\n async function navigateToDetails(id: string, returnTo?: string) {\n if (store.activeRouteSegment() != RouteSegments.DETAILS_ROUTE) {\n const snakeCaseEntityName = snakeCaseName(entityName);\n const baseUrl = determineBaseUrl();\n const detailsFormPath = baseUrl + '/' + snakeCaseEntityName + '/' + id + '/details';\n await navigateToUrl(detailsFormPath, returnTo);\n }\n }\n\n async function navigateToList(returnTo?: string) {\n const snakeCaseEntityName = snakeCaseName(entityName);\n const baseUrl = determineBaseUrl();\n const goToUrl = baseUrl + '/' + snakeCaseEntityName + '/list';\n if (store.activeRouteSegment() != RouteSegments.LIST_ROUTE) {\n await navigateToUrl(goToUrl, returnTo);\n }\n }\n\n async function navigateToRelated(relatedTypeName: string, id: string, returnTo?: string) {\n const snakeCaseEntityName = snakeCaseName(relatedTypeName);\n const baseUrl = determineBaseUrl();\n const detailsFormPath = baseUrl + '/' + snakeCaseEntityName + '/' + id + '/details';\n await navigateToUrl(detailsFormPath, returnTo);\n }\n\n async function navigateToUrl(url: string, returnTo?: string) {\n if (returnTo) {\n patchState(store, { returnTo });\n } else {\n patchState(store, { returnTo: router.url });\n }\n patchState(store, { navigateTo: url });\n await router\n .navigateByUrl(url)\n .then(() => determineActiveRouteSegment())\n .catch((error) => patchState(store, { navigationError: error.message }));\n }\n\n return { determineCurrentUrl, determineActiveRouteSegment, navigateBack, navigateToDetails, navigateToList, navigateToRelated, navigateToUrl };\n }),\n withHooks((store) => ({\n onInit: () => {\n store.determineActiveRouteSegment();\n },\n })),\n );\n}\n","import { BaseEntity } from '../base-entity/base-entity';\nimport { BaseEntityService } from './base-entity.service';\nimport { from, map, Observable, of } from 'rxjs';\nimport { BaseEntityLoadResponse, BaseEntityQueryCondition, OrderByDirection } from './base-entity-load-response';\nimport { Inject, inject } from '@angular/core';\nimport { collection, deleteDoc, doc, Firestore, getDoc, getDocs, limit, orderBy, query, setDoc, updateDoc, where } from '@angular/fire/firestore';\nimport { BaseEntityMapper } from '../base-entity.mapper';\nimport { QueryFieldFilterConstraint, QueryOrderByConstraint } from '@firebase/firestore';\n\nexport abstract class BaseEntityFirestoreService<Entity extends BaseEntity> implements BaseEntityService<Entity> {\n protected collection;\n protected readonly firestore = inject(Firestore);\n\n protected constructor(\n @Inject('entityMapper') protected entityMapper: BaseEntityMapper<Entity>,\n protected collectionName: string,\n ) {\n this.collection = collection(this.firestore, collectionName);\n }\n\n // region public accessors and mutators\n add(entity: Entity): Observable<Entity> {\n if (!entity) throw new Error('Entity cant be undefined');\n return from(this.addAsync(entity));\n }\n\n delete(id: string): Observable<unknown> {\n const docRef = doc(this.firestore, this.collectionName, id);\n return from(deleteDoc(docRef));\n }\n\n deleteAll(): Observable<unknown> {\n return of(undefined);\n }\n\n findAll(page?: number, pageSize?: number): Observable<BaseEntityLoadResponse<Entity> | Entity[]> {\n return this.findByQuery({ page, pageSize });\n }\n\n findById(id: string): Observable<Entity | void> {\n const docRef = doc(this.firestore, this.collectionName, id);\n return from(\n getDoc(docRef)\n .then((document) => {\n return this.mapDocument(document.data() as Entity);\n })\n .catch((error) => {\n throw new Error(`Error: ${error} occurred while finding document by id: ${id}`);\n }),\n );\n }\n\n findByQuery(queryCondition: BaseEntityQueryCondition): Observable<BaseEntityLoadResponse<Entity> | Entity[]> {\n return from(this.findByQueryAsync(queryCondition));\n }\n\n update(entity: Entity): Observable<Entity> {\n return from(this.updateAsync(entity));\n }\n\n // endregion\n\n // protected, private helper methods\n protected async addAsync(entity: Entity): Promise<Entity> {\n const newDoc = doc(this.collection, entity.id);\n await setDoc(newDoc, this.mapEntity(entity));\n return new Promise<Entity>((resolve, reject) => {\n resolve(entity);\n reject(new Error('Failed to update entity: ' + entity));\n });\n }\n\n protected createQuery(queryCondition: BaseEntityQueryCondition) {\n let orderBys: QueryOrderByConstraint[] = [];\n if (queryCondition.orderBys && queryCondition.orderBys?.length > 0) {\n orderBys = queryCondition.orderBys?.map((orderByCondition) => {\n const name = Object.keys(OrderByDirection).filter((key) => key === orderByCondition.direction);\n const direction = Object.values(OrderByDirection).filter((value) => value === name[0]);\n return orderBy(orderByCondition.property, direction[0]);\n });\n }\n\n let wheres: QueryFieldFilterConstraint[] = [];\n if (queryCondition.filters && queryCondition.filters?.length > 0) {\n wheres =\n queryCondition.filters?.map((filter) => {\n return where(filter.property, filter.operator, filter.value);\n }) ?? [];\n }\n\n return query(this.collection, ...wheres, ...orderBys, limit(queryCondition.pageSize ?? 99));\n }\n\n protected async findByQueryAsync(queryCondition: BaseEntityQueryCondition): Promise<BaseEntityLoadResponse<Entity> | Entity[]> {\n const query = this.createQuery(queryCondition);\n const results = await getDocs(query);\n const content: Entity[] = [];\n results.docs.forEach((doc) => {\n content.push(this.mapDocument({ id: doc.id, ...doc.data() } as Entity));\n });\n\n return Promise.resolve({\n page: queryCondition.page,\n pageSize: queryCondition.pageSize,\n totalPageCount: 1,\n content,\n });\n }\n\n protected mapCollection(collection: Observable<any[]>): Entity[] {\n const entities: Entity[] = [];\n collection.pipe(\n map((documents: any[]) => {\n documents.forEach((document) => entities.push(this.entityMapper.fromDto(document)));\n }),\n );\n return entities;\n }\n\n protected mapDocument(document: any): Entity {\n return this.entityMapper.fromDto(document);\n }\n\n private mapEntity(entity: Entity): any {\n return this.entityMapper.toDto(entity);\n }\n\n private async updateAsync(entity: Entity): Promise<Entity> {\n if (!entity) throw new Error('Entity cant be undefined');\n\n const docRef = doc(this.firestore, this.collectionName, entity.id);\n await updateDoc(docRef, this.mapEntity(entity));\n\n return Promise.resolve(entity);\n }\n\n // endregion\n}\n","import 'reflect-metadata';\n\n/**\n * Defines an entity data transformer capable of transforming data to and from the server.\n */\nexport interface IEntityTransformer {\n fromServer?: (data: any, criteria?: any) => any;\n toServer?: (entity: any, criteria?: any) => any;\n}\n\nexport interface EntityOptions {\n modelName: string;\n pluralName: string;\n uriName: string;\n transform?: IEntityTransformer;\n}\n\n// Symbol to store entity options on instance\nconst ENTITY_OPTIONS_KEY = Symbol('entityOptions');\n\n// Metadata key for storing ID properties\nconst ENTITY_ID_PROPERTIES_KEY = 'entity:idProperties';\n\n/**\n * Class decorator for entity classes\n * @param options Configuration options for the entity\n * @returns Class decorator function\n */\nexport function Entity(options: EntityOptions): ClassDecorator {\n return function (target: any) {\n // Store metadata on the class (for backward compatibility)\n Reflect.defineMetadata('entity:options', options, target);\n\n // Add a property to the prototype to make options accessible from instances\n Object.defineProperty(target.prototype, ENTITY_OPTIONS_KEY, {\n value: options,\n writable: false,\n enumerable: false,\n configurable: false\n });\n\n return target;\n };\n}\n\n/**\n * Gets entity options from an entity instance\n * @param instance An instance of a class decorated with @Entity\n * @returns The entity options or undefined if not found\n */\nexport function getEntityOptions(instance: any): EntityOptions | undefined {\n if (!instance) return undefined;\n\n // Try to get options from the instance\n const options = instance[ENTITY_OPTIONS_KEY];\n if (options) return options;\n\n // Fallback to class metadata (for backward compatibility)\n const constructor = Object.getPrototypeOf(instance)?.constructor;\n if (constructor) {\n return Reflect.getMetadata('entity:options', constructor);\n }\n\n return undefined;\n}\n\n/**\n * Property decorator for marking entity properties as ID fields\n * @returns PropertyDecorator function\n */\nexport function Id(): PropertyDecorator {\n return function(target: object, propertyKey: string | symbol) {\n // Get the constructor of the class\n const constructor = target.constructor;\n \n // Get existing ID properties or initialize empty array\n const existingIdProps: string[] = Reflect.getMetadata(ENTITY_ID_PROPERTIES_KEY, constructor) || [];\n \n // Add the current property to the list if it's not already there\n if (!existingIdProps.includes(propertyKey.toString())) {\n existingIdProps.push(propertyKey.toString());\n }\n \n // Update the metadata with the new list\n Reflect.defineMetadata(ENTITY_ID_PROPERTIES_KEY, existingIdProps, constructor);\n };\n}\n\n/**\n * Gets all property names marked with @Id decorator from an entity instance\n * @param instance An instance of a class with properties decorated with @Id\n * @returns Array of property names marked as IDs or empty array if none found\n */\nexport function getEntityIds(instance: any): string[] {\n if (!instance) return [];\n\n // Get the constructor from the instance\n const constructor = Object.getPrototypeOf(instance)?.constructor;\n if (!constructor) return [];\n \n // Return the ID properties from metadata or empty array if none found\n return Reflect.getMetadata(ENTITY_ID_PROPERTIES_KEY, constructor) || [];\n}\n","import { Routes } from '@angular/router';\nimport { BaseEntityFormComponent } from './base-form/base-entity-form.component';\nimport { BaseEntityListComponent } from './base-list/base-entity-list.component';\n\nexport const BASE_ENTITY_ROUTES: Routes = [\n { path: '', redirectTo: 'list', pathMatch: 'full' },\n { path: ':id/details', component: BaseEntityFormComponent },\n { path: 'list', component: BaseEntityListComponent },\n];\n","// Public API Surface of @processpuzzle/base-entity\n\nexport { AbstractAttrDescriptor, FormControlType } from './lib/base-entity/abstact-attr.descriptor';\nexport { BaseEntityContainerStore } from './lib/base-entity-container.store';\nexport type { BaseEntity } from './lib/base-entity/base-entity';\nexport { BaseEntityAttrDescriptor } from './lib/base-entity/base-entity-attr.descriptor';\nexport { BaseEntityFormComponent } from './lib/base-form/base-entity-form.component';\nexport type { BaseEntityDescriptor } from './lib/base-entity/base-entity.descriptor';\nexport { BaseEntityListComponent, BASE_LIST_DESCRIPTORS } from './lib/base-list/base-entity-list.component';\nexport type { BaseEntityLoadResponse, BaseEntityQueryCondition, FilterCondition, OrderByCondition } from './lib/base-entity-service/base-entity-load-response';\nexport { OrderByDirection } from './lib/base-entity-service/base-entity-load-response';\nexport { BaseEntityMapper } from './lib/base-entity.mapper';\nexport { BaseEntityTabsStore } from './lib/base-tabs/base-entity-tabs.store';\nexport { BASE_ENTITY_SERVICE } from './lib/base-entity-service/base-entity.service';\nexport { BASE_ENTITY_STORE, BaseEntityStore } from './lib/base-entity-store/base-entity.store';\nexport { BaseFormHostDirective } from './lib/base-form/base-form-host.directive';\nexport { BaseFormNavigatorStore, RouteSegments, type NavigationState } from './lib/base-form-navigator/base-form-navigator.store';\nexport { BaseEntityFirestoreService } from './lib/base-entity-service/base-entity-firestore.service';\nexport { FlexboxDescriptor, FlexDirection } from './lib/base-entity/flexboxDescriptor';\nexport { Entity, type EntityOptions, getEntityOptions, Id, getEntityIds } from './lib/base-entity/decorators/entity.decorator';\nexport { BASE_ENTITY_ROUTES } from './lib/base-entity.routes';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["i2","i1"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAAY;AAAZ,CAAA,UAAY,eAAe,EAAA;AACzB,IAAA,eAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,eAAA,CAAA,MAAA,CAAA,GAAA,MAAa;AACb,IAAA,eAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,eAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,eAAA,CAAA,aAAA,CAAA,GAAA,aAA2B;AAC3B,IAAA,eAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,eAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,eAAA,CAAA,OAAA,CAAA,GAAA,OAAe;AACf,IAAA,eAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACrB,IAAA,eAAA,CAAA,UAAA,CAAA,GAAA,UAAqB;AACvB,CAAC,EAXW,eAAe,KAAf,eAAe,GAAA,EAAA,CAAA,CAAA;MAaL,sBAAsB,CAAA;AAC1C,IAAA,QAAQ;AACR,IAAA,eAAe;IACf,QAAQ,GAAG,KAAK;AAChB,IAAA,KAAK;IAEL,WAAA,CAAsB,QAAgB,EAAE,eAAgC,EAAA;AACtE,QAAA,IAAI,CAAC,QAAQ,GAAG,QAAQ;AACxB,QAAA,IAAI,CAAC,eAAe,GAAG,eAAe;IACxC;AACD;;ACjBD,MAAM,uBAAuB,GAAyB;AACpD,IAAA,SAAS,EAAE,SAAS;CACrB;SAEe,wBAAwB,GAAA;AACtC,IAAA,OAAO,kBAAkB,CACvB,SAAS,CAAuB,uBAAuB,CAAC,EACxD,WAAW,CAAC,CAAC,KAAK,KAAI;QACpB,SAAS,QAAQ,CAAC,SAAiB,EAAA;AACjC,YAAA,UAAU,CAAC,KAAK,E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