@huntsman-cancer-institute/dictionary-editor 16.0.0 → 17.0.0

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.
Files changed (34) hide show
  1. package/components/detail.component.d.ts +90 -90
  2. package/components/home.component.d.ts +13 -13
  3. package/components/new-row.component.d.ts +20 -20
  4. package/dictionary-editor.component.d.ts +43 -43
  5. package/dictionary-editor.module.d.ts +24 -24
  6. package/dictionary-editor.routes.d.ts +4 -4
  7. package/esm2022/components/detail.component.mjs +606 -606
  8. package/esm2022/components/home.component.mjs +28 -28
  9. package/esm2022/components/new-row.component.mjs +81 -81
  10. package/esm2022/dictionary-editor.component.mjs +169 -169
  11. package/esm2022/dictionary-editor.module.mjs +76 -76
  12. package/esm2022/dictionary-editor.routes.mjs +14 -14
  13. package/esm2022/grid-editors/ag-grid-date-cell-editor.component.mjs +30 -30
  14. package/esm2022/grid-editors/ag-grid-editor.module.mjs +55 -55
  15. package/esm2022/grid-editors/datepicker.component.mjs +93 -93
  16. package/esm2022/grid-editors/select.editor.mjs +142 -142
  17. package/esm2022/grid-renderers/ag-grid-renderer.module.mjs +36 -36
  18. package/esm2022/grid-renderers/cell-renderer-validation.mjs +345 -345
  19. package/esm2022/grid-renderers/date.renderer.mjs +68 -68
  20. package/esm2022/grid-renderers/select.renderer.mjs +95 -95
  21. package/esm2022/huntsman-cancer-institute-dictionary-editor.mjs +4 -4
  22. package/esm2022/index.mjs +4 -4
  23. package/fesm2022/huntsman-cancer-institute-dictionary-editor.mjs +1718 -1718
  24. package/fesm2022/huntsman-cancer-institute-dictionary-editor.mjs.map +1 -1
  25. package/grid-editors/ag-grid-date-cell-editor.component.d.ts +11 -11
  26. package/grid-editors/ag-grid-editor.module.d.ts +15 -15
  27. package/grid-editors/datepicker.component.d.ts +16 -16
  28. package/grid-editors/select.editor.d.ts +30 -30
  29. package/grid-renderers/ag-grid-renderer.module.d.ts +10 -10
  30. package/grid-renderers/cell-renderer-validation.d.ts +69 -69
  31. package/grid-renderers/date.renderer.d.ts +15 -15
  32. package/grid-renderers/select.renderer.d.ts +17 -17
  33. package/index.d.ts +4 -4
  34. package/package.json +18 -10
@@ -1,90 +1,90 @@
1
- import { TemplateRef } from "@angular/core";
2
- import { ActivatedRoute } from "@angular/router";
3
- import { BehaviorSubject, Observable } from "rxjs";
4
- import { NgbModal } from "@ng-bootstrap/ng-bootstrap";
5
- import { DictionaryService } from "@huntsman-cancer-institute/dictionary-service";
6
- import { GridOptions, GridReadyEvent, GridApi } from "ag-grid-community";
7
- import * as i0 from "@angular/core";
8
- /**
9
- * When a dictionary is selected this component is shown. There is a top grid which for its data shows all the columns
10
- * for the dictionary. Currently, keep this for reference only and have non-editable.
11
- * The bottom grid will show those columns as actual columns and its data are all the dictionary values. Rows can be
12
- * added. For deleting, need to make sure the id is not used anywhere. For editing, need to make sure the code or anything
13
- * else isn't being referenced.
14
- *
15
- * @since 1.0.0
16
- */
17
- export declare class DictionaryEditorDetailComponent {
18
- private route;
19
- private modalService;
20
- private dictionaryService;
21
- private dictionaryEndpoint;
22
- classList: string;
23
- private secondaryDictionaryEntries;
24
- className: string;
25
- displayName: any;
26
- dictionary: any;
27
- dictionaryEntries: any[];
28
- dataColumns: any[];
29
- idColumn: string;
30
- selectedRows: any[];
31
- loadingSubjects: BehaviorSubject<boolean>[];
32
- boundNewRowPostCall: (data: any) => Observable<any>;
33
- gridOptions: GridOptions;
34
- newRowSubscription: any;
35
- metaGridOptions: {
36
- rowStyle: {
37
- "font-family": string;
38
- };
39
- enableCellTextSelection: boolean;
40
- ensureDomOrder: boolean;
41
- };
42
- frameworkComponents: any;
43
- gridApiMeta: GridApi;
44
- constructor(route: ActivatedRoute, modalService: NgbModal, dictionaryService: DictionaryService, dictionaryEndpoint: string);
45
- /**
46
- * Based on the route class name, make the call to fetch the dictionary data. Since this component is route based,
47
- * when the dictionary class in the route changes, this component is reloaded.
48
- */
49
- ngOnInit(): void;
50
- openModal(modal: TemplateRef<any>): void;
51
- ngAfterViewInit(): void;
52
- columnDefMeta(): any[];
53
- onMetaGridReady(params: any): void;
54
- openAreYouSureModal(modal: TemplateRef<any>): void;
55
- /**
56
- * Fetch the dictionary metadata and dictionary entries based upon the dictionary class name.
57
- *
58
- * @param {string} className
59
- */
60
- getDictionary(className: string): void;
61
- getDictionaryEntries(): void;
62
- /**
63
- * Set the dictionary metadata. This is used to build the columns for the dictionary entries. The names, validation,
64
- * and filter classes build the column definition.
65
- *
66
- * @param dictionary
67
- */
68
- private setUpDictionaryGrid;
69
- private getSecondaryDictionaries;
70
- private finishColumnSetup;
71
- isEditable(params: any): boolean;
72
- deleteDictionaryEntries(): void;
73
- updateDictionary(event: any): void;
74
- setSelectedEntries(): void;
75
- newRowPost(data: any): Observable<any>;
76
- static onSamplesGridReady(event: GridReadyEvent): void;
77
- static onGridSizeChanged(event: any): void;
78
- get disableAddRow(): boolean;
79
- get disableDelete(): boolean;
80
- private comboFilterValueGetter;
81
- onClickAddRow(): void;
82
- /**
83
- * Comparater To Compare 2 Dates
84
- * @param date1 Date 1
85
- * @param date2 Date 2
86
- */
87
- dateComparator(date1: any, date2: any): number;
88
- static ɵfac: i0.ɵɵFactoryDeclaration<DictionaryEditorDetailComponent, never>;
89
- static ɵcmp: i0.ɵɵComponentDeclaration<DictionaryEditorDetailComponent, "hci-dictionary-editor-detail", never, {}, {}, never, never, false, never>;
90
- }
1
+ import { TemplateRef } from "@angular/core";
2
+ import { ActivatedRoute } from "@angular/router";
3
+ import { BehaviorSubject, Observable } from "rxjs";
4
+ import { NgbModal } from "@ng-bootstrap/ng-bootstrap";
5
+ import { DictionaryService } from "@huntsman-cancer-institute/dictionary-service";
6
+ import { GridOptions, GridReadyEvent, GridApi } from "ag-grid-community";
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * When a dictionary is selected this component is shown. There is a top grid which for its data shows all the columns
10
+ * for the dictionary. Currently, keep this for reference only and have non-editable.
11
+ * The bottom grid will show those columns as actual columns and its data are all the dictionary values. Rows can be
12
+ * added. For deleting, need to make sure the id is not used anywhere. For editing, need to make sure the code or anything
13
+ * else isn't being referenced.
14
+ *
15
+ * @since 1.0.0
16
+ */
17
+ export declare class DictionaryEditorDetailComponent {
18
+ private route;
19
+ private modalService;
20
+ private dictionaryService;
21
+ private dictionaryEndpoint;
22
+ classList: string;
23
+ private secondaryDictionaryEntries;
24
+ className: string;
25
+ displayName: any;
26
+ dictionary: any;
27
+ dictionaryEntries: any[];
28
+ dataColumns: any[];
29
+ idColumn: string;
30
+ selectedRows: any[];
31
+ loadingSubjects: BehaviorSubject<boolean>[];
32
+ boundNewRowPostCall: (data: any) => Observable<any>;
33
+ gridOptions: GridOptions;
34
+ newRowSubscription: any;
35
+ metaGridOptions: {
36
+ rowStyle: {
37
+ "font-family": string;
38
+ };
39
+ enableCellTextSelection: boolean;
40
+ ensureDomOrder: boolean;
41
+ };
42
+ frameworkComponents: any;
43
+ gridApiMeta: GridApi;
44
+ constructor(route: ActivatedRoute, modalService: NgbModal, dictionaryService: DictionaryService, dictionaryEndpoint: string);
45
+ /**
46
+ * Based on the route class name, make the call to fetch the dictionary data. Since this component is route based,
47
+ * when the dictionary class in the route changes, this component is reloaded.
48
+ */
49
+ ngOnInit(): void;
50
+ openModal(modal: TemplateRef<any>): void;
51
+ ngAfterViewInit(): void;
52
+ columnDefMeta(): any[];
53
+ onMetaGridReady(params: any): void;
54
+ openAreYouSureModal(modal: TemplateRef<any>): void;
55
+ /**
56
+ * Fetch the dictionary metadata and dictionary entries based upon the dictionary class name.
57
+ *
58
+ * @param {string} className
59
+ */
60
+ getDictionary(className: string): void;
61
+ getDictionaryEntries(): void;
62
+ /**
63
+ * Set the dictionary metadata. This is used to build the columns for the dictionary entries. The names, validation,
64
+ * and filter classes build the column definition.
65
+ *
66
+ * @param dictionary
67
+ */
68
+ private setUpDictionaryGrid;
69
+ private getSecondaryDictionaries;
70
+ private finishColumnSetup;
71
+ isEditable(params: any): boolean;
72
+ deleteDictionaryEntries(): void;
73
+ updateDictionary(event: any): void;
74
+ setSelectedEntries(): void;
75
+ newRowPost(data: any): Observable<any>;
76
+ static onSamplesGridReady(event: GridReadyEvent): void;
77
+ static onGridSizeChanged(event: any): void;
78
+ get disableAddRow(): boolean;
79
+ get disableDelete(): boolean;
80
+ private comboFilterValueGetter;
81
+ onClickAddRow(): void;
82
+ /**
83
+ * Comparater To Compare 2 Dates
84
+ * @param date1 Date 1
85
+ * @param date2 Date 2
86
+ */
87
+ dateComparator(date1: any, date2: any): number;
88
+ static ɵfac: i0.ɵɵFactoryDeclaration<DictionaryEditorDetailComponent, never>;
89
+ static ɵcmp: i0.ɵɵComponentDeclaration<DictionaryEditorDetailComponent, "hci-dictionary-editor-detail", never, {}, {}, never, never, false, never>;
90
+ }
@@ -1,13 +1,13 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Splash screen for the editor when no dictionary is selected.
4
- *
5
- * TODO: Use this page to put more of a guide on how to use the editor?
6
- *
7
- * @since 1.0.0
8
- */
9
- export declare class DictionaryEditorHomeComponent {
10
- classList: string;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<DictionaryEditorHomeComponent, never>;
12
- static ɵcmp: i0.ɵɵComponentDeclaration<DictionaryEditorHomeComponent, "core-dictionary-editor-home", never, {}, {}, never, never, false, never>;
13
- }
1
+ import * as i0 from "@angular/core";
2
+ /**
3
+ * Splash screen for the editor when no dictionary is selected.
4
+ *
5
+ * TODO: Use this page to put more of a guide on how to use the editor?
6
+ *
7
+ * @since 1.0.0
8
+ */
9
+ export declare class DictionaryEditorHomeComponent {
10
+ classList: string;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<DictionaryEditorHomeComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<DictionaryEditorHomeComponent, "core-dictionary-editor-home", never, {}, {}, never, never, false, never>;
13
+ }
@@ -1,20 +1,20 @@
1
- import { NgbActiveModal } from "@ng-bootstrap/ng-bootstrap";
2
- import { GridApi, GridOptions, GridReadyEvent } from "ag-grid-community";
3
- import { Subject } from "rxjs";
4
- import * as i0 from "@angular/core";
5
- export declare class NewRowComponent {
6
- activeModalSearch: NgbActiveModal;
7
- newRowSubject: Subject<any[]>;
8
- private _colDefs;
9
- get colDefs(): any[];
10
- set colDefs(value: any[]);
11
- newRow: any[];
12
- dictionary: any;
13
- gridOptions: GridOptions;
14
- gridApi: GridApi;
15
- constructor(activeModalSearch: NgbActiveModal);
16
- save(): void;
17
- onSamplesGridReady(event: GridReadyEvent): void;
18
- static ɵfac: i0.ɵɵFactoryDeclaration<NewRowComponent, never>;
19
- static ɵcmp: i0.ɵɵComponentDeclaration<NewRowComponent, "new-row", never, {}, {}, never, never, false, never>;
20
- }
1
+ import { NgbActiveModal } from "@ng-bootstrap/ng-bootstrap";
2
+ import { GridApi, GridOptions, GridReadyEvent } from "ag-grid-community";
3
+ import { Subject } from "rxjs";
4
+ import * as i0 from "@angular/core";
5
+ export declare class NewRowComponent {
6
+ activeModalSearch: NgbActiveModal;
7
+ newRowSubject: Subject<any[]>;
8
+ private _colDefs;
9
+ get colDefs(): any[];
10
+ set colDefs(value: any[]);
11
+ newRow: any[];
12
+ dictionary: any;
13
+ gridOptions: GridOptions;
14
+ gridApi: GridApi;
15
+ constructor(activeModalSearch: NgbActiveModal);
16
+ save(): void;
17
+ onSamplesGridReady(event: GridReadyEvent): void;
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<NewRowComponent, never>;
19
+ static ɵcmp: i0.ɵɵComponentDeclaration<NewRowComponent, "new-row", never, {}, {}, never, never, false, never>;
20
+ }
@@ -1,43 +1,43 @@
1
- import { OnInit, Renderer2 } from "@angular/core";
2
- import { DictionaryService } from "@huntsman-cancer-institute/dictionary-service";
3
- import { SidebarComponent } from "@huntsman-cancer-institute/navigation";
4
- import { BehaviorSubject } from "rxjs";
5
- import * as i0 from "@angular/core";
6
- /**
7
- * The root component for the dictionary editor. This defines a sidebar which will contain the list of dictionaries.
8
- * The sub route here will display a detail component when a dictionary is selected.
9
- *
10
- * @since 1.0.0
11
- */
12
- export declare class DictionaryEditorComponent implements OnInit {
13
- private dictionaryService;
14
- private renderer;
15
- classList: string;
16
- sidebar: SidebarComponent;
17
- dictionaryTemplate: any;
18
- filterReadOnlyDictionaries: boolean;
19
- sortDictionariesUp: boolean;
20
- constructor(dictionaryService: DictionaryService, renderer: Renderer2);
21
- dictionariesReference: Object[];
22
- dictionariesReferenceCopy: Object[];
23
- loadingSubject: BehaviorSubject<boolean>;
24
- /**
25
- * Upon creation, set up the sidebar and listen for the list of dictionaries from the service.
26
- */
27
- ngOnInit(): void;
28
- /*************************************************
29
- * Helper Method To Configure Dictionary Side Bar
30
- *************************************************/
31
- private setDictionarySideBarConfiguration;
32
- filter(): void;
33
- /*******************************************************
34
- * Helper Method To Determine If Dictionary Is Read Only
35
- *******************************************************/
36
- checkReadOnly(dictionary: any): boolean;
37
- /***********************************************************
38
- * Helper Method To Determine If Dictionary Is Internal Only
39
- ***********************************************************/
40
- checkInternalOnly(dictionary: any): boolean;
41
- static ɵfac: i0.ɵɵFactoryDeclaration<DictionaryEditorComponent, never>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<DictionaryEditorComponent, "hci-dictionary-editor", never, {}, {}, never, never, false, never>;
43
- }
1
+ import { OnInit, Renderer2 } from "@angular/core";
2
+ import { DictionaryService } from "@huntsman-cancer-institute/dictionary-service";
3
+ import { SidebarComponent } from "@huntsman-cancer-institute/navigation";
4
+ import { BehaviorSubject } from "rxjs";
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * The root component for the dictionary editor. This defines a sidebar which will contain the list of dictionaries.
8
+ * The sub route here will display a detail component when a dictionary is selected.
9
+ *
10
+ * @since 1.0.0
11
+ */
12
+ export declare class DictionaryEditorComponent implements OnInit {
13
+ private dictionaryService;
14
+ private renderer;
15
+ classList: string;
16
+ sidebar: SidebarComponent;
17
+ dictionaryTemplate: any;
18
+ filterReadOnlyDictionaries: boolean;
19
+ sortDictionariesUp: boolean;
20
+ constructor(dictionaryService: DictionaryService, renderer: Renderer2);
21
+ dictionariesReference: Object[];
22
+ dictionariesReferenceCopy: Object[];
23
+ loadingSubject: BehaviorSubject<boolean>;
24
+ /**
25
+ * Upon creation, set up the sidebar and listen for the list of dictionaries from the service.
26
+ */
27
+ ngOnInit(): void;
28
+ /*************************************************
29
+ * Helper Method To Configure Dictionary Side Bar
30
+ *************************************************/
31
+ private setDictionarySideBarConfiguration;
32
+ filter(): void;
33
+ /*******************************************************
34
+ * Helper Method To Determine If Dictionary Is Read Only
35
+ *******************************************************/
36
+ checkReadOnly(dictionary: any): boolean;
37
+ /***********************************************************
38
+ * Helper Method To Determine If Dictionary Is Internal Only
39
+ ***********************************************************/
40
+ checkInternalOnly(dictionary: any): boolean;
41
+ static ɵfac: i0.ɵɵFactoryDeclaration<DictionaryEditorComponent, never>;
42
+ static ɵcmp: i0.ɵɵComponentDeclaration<DictionaryEditorComponent, "hci-dictionary-editor", never, {}, {}, never, never, false, never>;
43
+ }
@@ -1,24 +1,24 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./dictionary-editor.component";
3
- import * as i2 from "./components/home.component";
4
- import * as i3 from "./components/detail.component";
5
- import * as i4 from "./components/new-row.component";
6
- import * as i5 from "@angular/common";
7
- import * as i6 from "@angular/forms";
8
- import * as i7 from "@angular/router";
9
- import * as i8 from "@ng-bootstrap/ng-bootstrap";
10
- import * as i9 from "@huntsman-cancer-institute/navigation";
11
- import * as i10 from "@huntsman-cancer-institute/misc";
12
- import * as i11 from "./grid-editors/ag-grid-editor.module";
13
- import * as i12 from "./grid-renderers/ag-grid-renderer.module";
14
- import * as i13 from "ag-grid-angular";
15
- /**
16
- * The module defining the dictionary editor.
17
- *
18
- * @since 1.0.0
19
- */
20
- export declare class DictionaryEditorModule {
21
- static ɵfac: i0.ɵɵFactoryDeclaration<DictionaryEditorModule, never>;
22
- static ɵmod: i0.ɵɵNgModuleDeclaration<DictionaryEditorModule, [typeof i1.DictionaryEditorComponent, typeof i2.DictionaryEditorHomeComponent, typeof i3.DictionaryEditorDetailComponent, typeof i4.NewRowComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i7.RouterModule, typeof i8.NgbModule, typeof i9.NavigationModule, typeof i10.MiscModule, typeof i11.AgGridEditorModule, typeof i12.AgGridRendererModule, typeof i13.AgGridModule], [typeof i1.DictionaryEditorComponent, typeof i2.DictionaryEditorHomeComponent, typeof i3.DictionaryEditorDetailComponent]>;
23
- static ɵinj: i0.ɵɵInjectorDeclaration<DictionaryEditorModule>;
24
- }
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./dictionary-editor.component";
3
+ import * as i2 from "./components/home.component";
4
+ import * as i3 from "./components/detail.component";
5
+ import * as i4 from "./components/new-row.component";
6
+ import * as i5 from "@angular/common";
7
+ import * as i6 from "@angular/forms";
8
+ import * as i7 from "@angular/router";
9
+ import * as i8 from "@ng-bootstrap/ng-bootstrap";
10
+ import * as i9 from "@huntsman-cancer-institute/navigation";
11
+ import * as i10 from "@huntsman-cancer-institute/misc";
12
+ import * as i11 from "./grid-editors/ag-grid-editor.module";
13
+ import * as i12 from "./grid-renderers/ag-grid-renderer.module";
14
+ import * as i13 from "ag-grid-angular";
15
+ /**
16
+ * The module defining the dictionary editor.
17
+ *
18
+ * @since 1.0.0
19
+ */
20
+ export declare class DictionaryEditorModule {
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<DictionaryEditorModule, never>;
22
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DictionaryEditorModule, [typeof i1.DictionaryEditorComponent, typeof i2.DictionaryEditorHomeComponent, typeof i3.DictionaryEditorDetailComponent, typeof i4.NewRowComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i7.RouterModule, typeof i8.NgbModule, typeof i9.NavigationModule, typeof i10.MiscModule, typeof i11.AgGridEditorModule, typeof i12.AgGridRendererModule, typeof i13.AgGridModule], [typeof i1.DictionaryEditorComponent, typeof i2.DictionaryEditorHomeComponent, typeof i3.DictionaryEditorDetailComponent]>;
23
+ static ɵinj: i0.ɵɵInjectorDeclaration<DictionaryEditorModule>;
24
+ }
@@ -1,4 +1,4 @@
1
- import { ModuleWithProviders } from "@angular/core";
2
- import { RouterModule, Routes } from "@angular/router";
3
- export declare const ROUTES: Routes;
4
- export declare const DICTIONARY_EDITOR_ROUTES: ModuleWithProviders<RouterModule>;
1
+ import { ModuleWithProviders } from "@angular/core";
2
+ import { RouterModule, Routes } from "@angular/router";
3
+ export declare const ROUTES: Routes;
4
+ export declare const DICTIONARY_EDITOR_ROUTES: ModuleWithProviders<RouterModule>;