diff --git a/client/src/app/forms2/components/org-selector-btn-group/org-selector-btn-group.component.ts b/client/src/app/forms2/components/org-selector-btn-group/org-selector-btn-group.component.ts index 65b337a06..47b93987b 100644 --- a/client/src/app/forms2/components/org-selector-btn-group/org-selector-btn-group.component.ts +++ b/client/src/app/forms2/components/org-selector-btn-group/org-selector-btn-group.component.ts @@ -20,7 +20,7 @@ import { @UntilDestroy() @Component({ - selector: 'cvc-org-selector-btn-group', + selector: 'cvc-org-selector-btn-group2', templateUrl: './org-selector-btn-group.component.html', styleUrls: ['./org-selector-btn-group.component.less'], }) diff --git a/client/src/app/forms2/components/tables/table-counts/table-counts.component.ts b/client/src/app/forms2/components/tables/table-counts/table-counts.component.ts index 360d1383f..5355856dc 100644 --- a/client/src/app/forms2/components/tables/table-counts/table-counts.component.ts +++ b/client/src/app/forms2/components/tables/table-counts/table-counts.component.ts @@ -30,7 +30,7 @@ export type EntityEdge = { } @Component({ - selector: 'cvc-table-counts', + selector: 'cvc-table-counts2', templateUrl: './table-counts.component.html', styleUrls: ['./table-counts.component.less'], changeDetection: ChangeDetectionStrategy.OnPush, diff --git a/client/src/app/forms2/mixins/base/base-field.ts b/client/src/app/forms2/mixins/base/base-field.ts index 76810a9d7..fb52156e2 100644 --- a/client/src/app/forms2/mixins/base/base-field.ts +++ b/client/src/app/forms2/mixins/base/base-field.ts @@ -1,4 +1,4 @@ -import { Component, OnInit } from '@angular/core' +import { Component, Injectable, OnInit } from '@angular/core' import { BaseState } from '@app/forms2/states/base.state' import { Maybe } from '@app/generated/civic.apollo' import { UntilDestroy, untilDestroyed } from '@ngneat/until-destroy' @@ -16,7 +16,7 @@ export function BaseFieldType< V extends BaseFieldValue >() { @UntilDestroy() - @Component({ template: '' }) + @Injectable() class BaseFieldType extends FieldType { state?: BaseState @@ -31,10 +31,6 @@ export function BaseFieldType< // STATE OUTPUT STREAM stateValueChange$?: BehaviorSubject> - constructor() { - super() // call abstract FieldType's constructor - } - configureBaseField(): void { if (!this.field?.options?.fieldChanges) { console.error( diff --git a/client/src/app/forms2/types/evidence-select/evidence-manager/evidence-manager.component.html b/client/src/app/forms2/types/evidence-select/evidence-manager/evidence-manager.component.html index 00bf92688..7a5fe3fc6 100644 --- a/client/src/app/forms2/types/evidence-select/evidence-manager/evidence-manager.component.html +++ b/client/src/app/forms2/types/evidence-select/evidence-manager/evidence-manager.component.html @@ -521,8 +521,8 @@ - + diff --git a/client/src/app/forms2/types/variant-select/variant-manager/enum-filter-menu/enum-filter-menu.component.less b/client/src/app/forms2/types/variant-select/variant-manager/enum-filter-menu/enum-filter-menu.component.less index ac51d8182..278febd47 100644 --- a/client/src/app/forms2/types/variant-select/variant-manager/enum-filter-menu/enum-filter-menu.component.less +++ b/client/src/app/forms2/types/variant-select/variant-manager/enum-filter-menu/enum-filter-menu.component.less @@ -16,7 +16,7 @@ } // #cdk-overlay-0 // > div - // > cvc-enum-filter-menu + // > cvc-variant-enum-filter-menu // > ul // > li.ant-dropdown-menu-item.ng-star-inserted.ant-dropdown-menu-item-selected; } diff --git a/client/src/app/forms2/types/variant-select/variant-manager/enum-filter-menu/enum-filter-menu.component.ts b/client/src/app/forms2/types/variant-select/variant-manager/enum-filter-menu/enum-filter-menu.component.ts index 4304eb1b3..646572bb9 100644 --- a/client/src/app/forms2/types/variant-select/variant-manager/enum-filter-menu/enum-filter-menu.component.ts +++ b/client/src/app/forms2/types/variant-select/variant-manager/enum-filter-menu/enum-filter-menu.component.ts @@ -1,10 +1,16 @@ -import { ChangeDetectionStrategy, Component, EventEmitter, Input, Output } from '@angular/core' +import { + ChangeDetectionStrategy, + Component, + EventEmitter, + Input, + Output, +} from '@angular/core' import { Maybe } from 'graphql/jsutils/Maybe' import { NzTableFilterList } from 'ng-zorro-antd/table' import { CvcFilterChange } from '../variant-manager.types' @Component({ - selector: 'cvc-enum-filter-menu', + selector: 'cvc-variant-enum-filter-menu', templateUrl: './enum-filter-menu.component.html', styleUrls: ['./enum-filter-menu.component.less'], changeDetection: ChangeDetectionStrategy.OnPush, @@ -13,5 +19,5 @@ export class EnumFilterMenuComponent { @Input() cvcColumnKey!: string @Input() cvcFilterOptions!: NzTableFilterList @Input() cvcOption: Maybe - @Output() cvcOptionChange = new EventEmitter + @Output() cvcOptionChange = new EventEmitter() } diff --git a/client/src/app/forms2/types/variant-select/variant-manager/table-filter-input/table-filter-input.component.ts b/client/src/app/forms2/types/variant-select/variant-manager/table-filter-input/table-filter-input.component.ts index 88d49a48a..7a3ae56f1 100644 --- a/client/src/app/forms2/types/variant-select/variant-manager/table-filter-input/table-filter-input.component.ts +++ b/client/src/app/forms2/types/variant-select/variant-manager/table-filter-input/table-filter-input.component.ts @@ -1,7 +1,7 @@ import { Component, EventEmitter, Input, Output } from '@angular/core' @Component({ - selector: 'cvc-table-filter-input', + selector: 'cvc-variant-table-filter-input', templateUrl: './table-filter-input.component.html', styleUrls: ['./table-filter-input.component.less'], }) diff --git a/client/src/app/forms2/types/variant-select/variant-manager/variant-manager.component.html b/client/src/app/forms2/types/variant-select/variant-manager/variant-manager.component.html index 4c0549532..ce81c951d 100644 --- a/client/src/app/forms2/types/variant-select/variant-manager/variant-manager.component.html +++ b/client/src/app/forms2/types/variant-select/variant-manager/variant-manager.component.html @@ -123,7 +123,7 @@ [nzAlign]="entityTagCol.align ?? 'left'" [nzLeft]="entityTagCol.fixedLeft || false" [nzRight]="entityTagCol.fixedRight || false"> - - + @@ -170,7 +170,7 @@ nzTheme="fill"> - - + @@ -206,7 +206,7 @@
- - +
@@ -229,14 +229,14 @@ [nzAlign]="defaultCol.align ?? 'left'" [nzLeft]="defaultCol.fixedLeft || false" [nzRight]="defaultCol.fixedRight || false"> - - + @@ -606,8 +606,8 @@ - +