@myrmidon/cadmus-ui 12.0.2 → 14.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.
@@ -1,21 +0,0 @@
1
- import { FlagDefinition } from '@myrmidon/cadmus-core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Data for FlagsBadgeComponent, including flags and their definitions.
5
- */
6
- export interface FlagsBadgeData {
7
- definitions: FlagDefinition[];
8
- flags: number;
9
- }
10
- /**
11
- * Badge with item's flags. Each flag is represented by a circle filled
12
- * with the flag's color key.
13
- */
14
- export declare class FlagsBadgeComponent {
15
- badgeFlags: FlagDefinition[];
16
- readonly data: import("@angular/core").InputSignal<FlagsBadgeData | undefined>;
17
- constructor();
18
- private updateBadge;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<FlagsBadgeComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<FlagsBadgeComponent, "cadmus-flags-badge", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
21
- }
@@ -1,26 +0,0 @@
1
- import { FormGroup, FormArray, FormBuilder } from '@angular/forms';
2
- import { DialogService } from '@myrmidon/ngx-mat-tools';
3
- import { LayerHint } from '@myrmidon/cadmus-core';
4
- import * as i0 from "@angular/core";
5
- export declare class LayerHintsComponent {
6
- private _formBuilder;
7
- private _dialogService;
8
- readonly hints: import("@angular/core").InputSignal<LayerHint[]>;
9
- readonly targetLocation: import("@angular/core").InputSignal<string | undefined>;
10
- readonly disabled: import("@angular/core").InputSignal<boolean | undefined>;
11
- readonly readonly: import("@angular/core").InputSignal<boolean | undefined>;
12
- readonly requestEdit: import("@angular/core").OutputEmitterRef<LayerHint>;
13
- readonly requestDelete: import("@angular/core").OutputEmitterRef<LayerHint>;
14
- readonly requestMove: import("@angular/core").OutputEmitterRef<LayerHint>;
15
- readonly requestPatch: import("@angular/core").OutputEmitterRef<string[]>;
16
- form: FormGroup;
17
- checks: FormArray;
18
- constructor(_formBuilder: FormBuilder, _dialogService: DialogService);
19
- private updateChecks;
20
- emitRequestEdit(hint: LayerHint): void;
21
- emitRequestDelete(hint: LayerHint): void;
22
- emitRequestMove(hint: LayerHint): void;
23
- emitRequestPatch(): void;
24
- static ɵfac: i0.ɵɵFactoryDeclaration<LayerHintsComponent, never>;
25
- static ɵcmp: i0.ɵɵComponentDeclaration<LayerHintsComponent, "cadmus-layer-hints", never, { "hints": { "alias": "hints"; "required": false; "isSignal": true; }; "targetLocation": { "alias": "targetLocation"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, { "requestEdit": "requestEdit"; "requestDelete": "requestDelete"; "requestMove": "requestMove"; "requestPatch": "requestPatch"; }, never, never, true, never>;
26
- }
@@ -1,65 +0,0 @@
1
- import { OnInit } from '@angular/core';
2
- import { UntypedFormBuilder, UntypedFormControl, UntypedFormGroup } from '@angular/forms';
3
- import { Observable } from 'rxjs';
4
- import { DataPinInfo, IndexLookupDefinitions } from '@myrmidon/cadmus-core';
5
- import { ItemService } from '@myrmidon/cadmus-api';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Generic data pin lookup component. This allows users typing a part
9
- * of a pin's value, and get the full pin. For instance, if you have
10
- * a lookup set of colors and type "gr", you might get the pins
11
- * corresponding to "green" (e.g. id=color, value=green), "gray", etc.
12
- * Usage: add a FormControl to hold a DataPinInfo value; in the HTML
13
- * template set the component's lookupKey, label, initialValue, and
14
- * entryChange handler. The initialValue, if any, should be the initial
15
- * DataPinInfo value.
16
- * If you are using this component as a pure lookup device, don't set
17
- * the initialValue and set resetOnPick=true.
18
- */
19
- export declare class LookupPinComponent implements OnInit {
20
- private _itemService;
21
- private _lookupDefs;
22
- /**
23
- * The entry value initially set when the component loads.
24
- */
25
- readonly initialValue: import("@angular/core").InputSignal<string | undefined>;
26
- /**
27
- * The label to be displayed for this lookup.
28
- */
29
- readonly label: import("@angular/core").InputSignal<string>;
30
- /**
31
- * The maximum count of lookup entries to retrieve.
32
- * Default is 10.
33
- */
34
- readonly limit: import("@angular/core").InputSignal<number>;
35
- /**
36
- * True to reset the lookup value after it is picked.
37
- * This is typically used when you use this component
38
- * as a pure lookup device, storing the picked value
39
- * elsewhere when handling its entryChange event.
40
- */
41
- readonly resetOnPick: import("@angular/core").InputSignal<boolean | undefined>;
42
- /**
43
- * Fired whenever an entry is picked. Usually you should
44
- * cast the received argument to a more specific type.
45
- */
46
- readonly entryChange: import("@angular/core").OutputEmitterRef<DataPinInfo | null>;
47
- form: UntypedFormGroup;
48
- lookup: UntypedFormControl;
49
- entries$: Observable<DataPinInfo[]> | undefined;
50
- entry: DataPinInfo | undefined;
51
- constructor(formBuilder: UntypedFormBuilder, _itemService: ItemService, _lookupDefs: IndexLookupDefinitions);
52
- /**
53
- * The lookup key to be used for this component.
54
- * This should be a key from the injectable indexLookupDefinitions.
55
- */
56
- readonly lookupKey: import("@angular/core").InputSignal<string | undefined>;
57
- ngOnInit(): void;
58
- private lookupEntries;
59
- private resetToInitial;
60
- clear(): void;
61
- entryToName(entry: DataPinInfo): string;
62
- pickEntry(entry: DataPinInfo): void;
63
- static ɵfac: i0.ɵɵFactoryDeclaration<LookupPinComponent, never>;
64
- static ɵcmp: i0.ɵɵComponentDeclaration<LookupPinComponent, "cadmus-lookup-pin", never, { "initialValue": { "alias": "initialValue"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "limit": { "alias": "limit"; "required": false; "isSignal": true; }; "resetOnPick": { "alias": "resetOnPick"; "required": false; "isSignal": true; }; "lookupKey": { "alias": "lookupKey"; "required": false; "isSignal": true; }; }, { "entryChange": "entryChange"; }, never, never, true, never>;
65
- }
@@ -1,164 +0,0 @@
1
- import { OnDestroy, OnInit } from '@angular/core';
2
- import { FormBuilder, FormGroup, UntypedFormGroup } from '@angular/forms';
3
- import { BehaviorSubject } from 'rxjs';
4
- import { AuthJwtService, User } from '@myrmidon/auth-jwt-login';
5
- import { Fragment, Part, TextLayerPart, ThesauriSet } from '@myrmidon/cadmus-core';
6
- import { AppRepository } from '@myrmidon/cadmus-state';
7
- import * as i0 from "@angular/core";
8
- /**
9
- * The identifiers for an edited part.
10
- */
11
- export interface PartIdentity {
12
- itemId: string;
13
- typeId: string;
14
- partId: string | null;
15
- roleId: string | null;
16
- }
17
- /**
18
- * The identifiers for an edited fragment.
19
- */
20
- export interface FragmentIdentity extends PartIdentity {
21
- frTypeId: string;
22
- frRoleId: string | null;
23
- loc: string;
24
- }
25
- /**
26
- * An edited part or fragment.
27
- */
28
- export interface EditedObject<T extends Part | Fragment> {
29
- value: T | null;
30
- thesauri: ThesauriSet;
31
- layerPart?: TextLayerPart;
32
- baseText?: string;
33
- }
34
- /**
35
- * Base class for part/fragment editors dumb components.
36
- * The model type is the templated argument T.
37
- *
38
- * When deriving from this editor, be sure to call super.ngOnInit()
39
- * from the derived editor's ngOnInit handler.
40
- */
41
- export declare abstract class ModelEditorComponentBase<T extends Part | Fragment> implements OnInit, OnDestroy {
42
- protected authService: AuthJwtService;
43
- protected formBuilder: FormBuilder;
44
- private readonly _mebSubs;
45
- protected readonly _appRepository?: AppRepository;
46
- /**
47
- * The root form of the editor.
48
- */
49
- form: FormGroup | UntypedFormGroup;
50
- /**
51
- * The current user.
52
- */
53
- user?: User;
54
- /**
55
- * The user authorization level (0-4).
56
- */
57
- userLevel: number;
58
- /**
59
- * An observable with the current dirty state of the editor.
60
- */
61
- isDirty$: BehaviorSubject<boolean>;
62
- /**
63
- * The identity of the edited model.
64
- */
65
- readonly identity: import("@angular/core").InputSignal<PartIdentity | FragmentIdentity | undefined>;
66
- /**
67
- * The data being edited.
68
- */
69
- readonly data: import("@angular/core").ModelSignal<EditedObject<T> | undefined>;
70
- /**
71
- * True to disable the editor.
72
- */
73
- readonly disabled: import("@angular/core").InputSignal<boolean | undefined>;
74
- /**
75
- * Event emitted when the dirty state has changed.
76
- * This event just reflects changes in isDirty$, and is a facility
77
- * for propagating it to the parent's component.
78
- */
79
- readonly dirtyChange: import("@angular/core").OutputEmitterRef<boolean>;
80
- /**
81
- * Emitted when the user requests to close the editor.
82
- */
83
- readonly editorClose: import("@angular/core").OutputEmitterRef<void>;
84
- /**
85
- * The human-friendly model name. This is computed from the model's
86
- * type ID and role ID, if any, using the types thesaurus set provided
87
- * by the app repository.
88
- */
89
- readonly modelName: import("@angular/core").Signal<string | undefined>;
90
- /**
91
- * Create a new instance of the editor.
92
- *
93
- * @param authService The authentication service.
94
- * @param formBuilder Form builder.
95
- */
96
- constructor(authService: AuthJwtService, formBuilder: FormBuilder);
97
- private disableForm;
98
- private onIdentitySet;
99
- ngOnInit(): void;
100
- ngOnDestroy(): void;
101
- /**
102
- * Implement in the derived class to build the root form of this editor.
103
- * The form built will then be attached to the dirty check mechanism
104
- * provided by this base class.
105
- *
106
- * @param formBuilder The form builder.
107
- */
108
- protected abstract buildForm(formBuilder: FormBuilder): FormGroup | UntypedFormGroup;
109
- /**
110
- * Get the authorization level of the current user if any.
111
- * @returns 4-1 for admin, editor, operator, visitor; else 0.
112
- */
113
- private getCurrentUserLevel;
114
- private updateUserProperties;
115
- /**
116
- * Update the data value property and emit the corresponding
117
- * modelChange event.
118
- *
119
- * @param value The value.
120
- */
121
- protected updateValue(value: T): void;
122
- /**
123
- * Invoked whenever the model property is set (=data comes from input model
124
- * property), unless setting it via updateModel. Implement to update the form
125
- * controls to reflect the new model data.
126
- *
127
- * @param data The data set, or undefined.
128
- */
129
- protected abstract onDataSet(data?: EditedObject<T>): void;
130
- /**
131
- * Get a new object from the edited part if any, else as a new part.
132
- *
133
- * @param typeId The part's type ID. This is a constant received
134
- * from the implementor.
135
- * @returns Part object.
136
- */
137
- protected getEditedPart(typeId: string): Part;
138
- /**
139
- * Get a new object from the edited fragment if any, else a new fragment.
140
- *
141
- * @returns Fragment object.
142
- */
143
- protected getEditedFragment(): Fragment;
144
- /**
145
- * Implement in derived classes to get the data from form's controls.
146
- * This is used when saving.
147
- */
148
- protected abstract getValue(): T;
149
- /**
150
- * True if this editor has the thesaurus having the specified key in the
151
- * loaded thesauri set.
152
- */
153
- protected hasThesaurus(key: string): boolean;
154
- /**
155
- * Emit a request to close the editor.
156
- */
157
- close(): void;
158
- /**
159
- * Save the edited data if valid.
160
- */
161
- save(): void;
162
- static ɵfac: i0.ɵɵFactoryDeclaration<ModelEditorComponentBase<any>, never>;
163
- static ɵcmp: i0.ɵɵComponentDeclaration<ModelEditorComponentBase<any>, "ng-component", never, { "identity": { "alias": "identity"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "data": "dataChange"; "dirtyChange": "dirtyChange"; "editorClose": "editorClose"; }, never, never, false, never>;
164
- }
@@ -1,61 +0,0 @@
1
- import { Thesaurus, FacetDefinition, PartTypeIds } from '@myrmidon/cadmus-core';
2
- import { FacetService } from '@myrmidon/cadmus-api';
3
- import { ColorService } from '../../services/color.service';
4
- import * as i0 from "@angular/core";
5
- export declare enum PartBadgeType {
6
- partAndRole = 0,
7
- partOnly = 1,
8
- roleOnly = 2
9
- }
10
- /**
11
- * Function used to get the part's human-friendly name from its ID and role ID.
12
- * This assumes that thesaurus entries with role ID specified have form
13
- * partId:roleId.
14
- * @param typeId The part type ID.
15
- * @param roleId The optional role ID.
16
- * @param typeThesaurus The types thesaurus.
17
- * @param noFallback If true, and no thesaurus is provided, return undefined
18
- * rather than the type and role IDs.
19
- * @returns The name.
20
- */
21
- export declare function getPartIdName(typeId: string, roleId?: string | null, typeThesaurus?: Thesaurus, noFallback?: boolean): string | undefined;
22
- /**
23
- * Part badge component. This component displays a badge with the
24
- * part's type name and role name, if any, and a background color.
25
- */
26
- export declare class PartBadgeComponent {
27
- private _facetService;
28
- private _colorService;
29
- typeName: string | undefined;
30
- roleName: string | undefined;
31
- color: string;
32
- contrastColor: string;
33
- /**
34
- * The badge type: 0=part and role, 1=part only, 2=role only.
35
- */
36
- readonly badgeType: import("@angular/core").InputSignal<PartBadgeType>;
37
- /**
38
- * The types thesaurus.
39
- */
40
- readonly typeThesaurus: import("@angular/core").InputSignal<Thesaurus | undefined>;
41
- /**
42
- * The part's facet definition.
43
- */
44
- readonly facetDefinition: import("@angular/core").InputSignal<FacetDefinition | undefined>;
45
- /**
46
- * The part type IDs.
47
- */
48
- readonly partTypeIds: import("@angular/core").InputSignal<PartTypeIds | undefined>;
49
- constructor(_facetService: FacetService, _colorService: ColorService);
50
- private getPartColor;
51
- /**
52
- * Get the role's human-friendly name from its ID.
53
- * @param roleId The role ID.
54
- * @param typeThesaurus The types thesaurus.
55
- * @returns The name.?
56
- */
57
- private getRoleIdName;
58
- private updateBadge;
59
- static ɵfac: i0.ɵɵFactoryDeclaration<PartBadgeComponent, never>;
60
- static ɵcmp: i0.ɵɵComponentDeclaration<PartBadgeComponent, "cadmus-part-badge", never, { "badgeType": { "alias": "badgeType"; "required": false; "isSignal": true; }; "typeThesaurus": { "alias": "typeThesaurus"; "required": false; "isSignal": true; }; "facetDefinition": { "alias": "facetDefinition"; "required": false; "isSignal": true; }; "partTypeIds": { "alias": "partTypeIds"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
61
- }
@@ -1,86 +0,0 @@
1
- import { NestedTreeControl } from '@angular/cdk/tree';
2
- import { OnInit } from '@angular/core';
3
- import { FormBuilder, FormControl, FormGroup } from '@angular/forms';
4
- import { MatTreeNestedDataSource } from '@angular/material/tree';
5
- import { ThesaurusEntry } from '@myrmidon/cadmus-core';
6
- import * as i0 from "@angular/core";
7
- interface TreeNode {
8
- id: string;
9
- label: string;
10
- originalLabel?: string;
11
- parent?: TreeNode;
12
- children?: TreeNode[];
13
- clickable?: boolean;
14
- }
15
- /**
16
- * A label rendering function which removes from a label
17
- * all the characters past the last colon, trimming the result.
18
- * This is a typical rendering when dealing with hierarchical
19
- * thesaurus entries, e.g. "furniture: table: color", where
20
- * we can shorten the label to just "color", as "furniture"
21
- * and "table" are its ancestors.
22
- */
23
- export declare const renderLabelFromLastColon: (label: string) => string;
24
- /**
25
- * Thesaurus tree component.
26
- * This component displays a set of hierarchical thesaurus entries
27
- * in a tree, provided that each entry marks its hierarchy with
28
- * dots. For instance, say you have the hierarchy "furniture" -
29
- * "type" - "color". You might have an entry whose ID is
30
- * "furniture.table.red", with a sibling "furniture.table.green",
31
- * and a parent "furniture.table". This parent is there only to
32
- * provide a label to the parent node, but only leaf nodes can be
33
- * picked by the user. Whenever one is picked, the entryChange
34
- * event is emitted. Note that even if you specify a label renderer
35
- * function, the event always emits the original label.
36
- */
37
- export declare class ThesaurusTreeComponent implements OnInit {
38
- /**
39
- * The thesaurus entries.
40
- */
41
- readonly entries: import("@angular/core").InputSignal<ThesaurusEntry[] | undefined>;
42
- /**
43
- * The label for the root node.
44
- */
45
- readonly rootLabel: import("@angular/core").InputSignal<string>;
46
- /**
47
- * The optional node label rendering function.
48
- */
49
- readonly renderLabel: import("@angular/core").InputSignal<((label: string) => string) | undefined>;
50
- /**
51
- * Fired when a thesaurus entry is selected.
52
- */
53
- readonly entryChange: import("@angular/core").OutputEmitterRef<ThesaurusEntry>;
54
- root: TreeNode;
55
- treeControl: NestedTreeControl<TreeNode>;
56
- treeDataSource: MatTreeNestedDataSource<TreeNode>;
57
- filter: FormControl<string | null>;
58
- form: FormGroup;
59
- foundNodes: TreeNode[] | undefined;
60
- hasChildren: (index: number, node: TreeNode) => boolean | undefined;
61
- isRoot: (index: number, node: TreeNode) => boolean;
62
- constructor(formBuilder: FormBuilder);
63
- ngOnInit(): void;
64
- private initTree;
65
- private getLabel;
66
- private addNode;
67
- /**
68
- * Build a tree model from a list of name=value pairs,
69
- * where each value can include one or more components separated by
70
- * the specified separator.
71
- * @param entries The entries to add.
72
- * @param separator string The separator string to use for values.
73
- */
74
- buildTreeModel(entries: ThesaurusEntry[], separator?: string): TreeNode;
75
- onTreeNodeClick(node: TreeNode): void;
76
- expandAll(): void;
77
- collapseAll(): void;
78
- private expandFromNode;
79
- private expandMatchingNodes;
80
- find(): void;
81
- resetFilter(): void;
82
- isFoundNode(node: TreeNode): boolean;
83
- static ɵfac: i0.ɵɵFactoryDeclaration<ThesaurusTreeComponent, never>;
84
- static ɵcmp: i0.ɵɵComponentDeclaration<ThesaurusTreeComponent, "cadmus-thesaurus-tree", never, { "entries": { "alias": "entries"; "required": false; "isSignal": true; }; "rootLabel": { "alias": "rootLabel"; "required": false; "isSignal": true; }; "renderLabel": { "alias": "renderLabel"; "required": false; "isSignal": true; }; }, { "entryChange": "entryChange"; }, never, never, true, never>;
85
- }
86
- export {};
@@ -1,49 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * Colors helper service.
4
- */
5
- export declare class ColorService {
6
- /**
7
- * Get the R,G,B components of the color expressed by the specified
8
- * RGB string (3 or 6 digits format).
9
- *
10
- * @param rgb The RGB color string (3 or 6 digits).
11
- * @returns An array where [0]=R, [1]=G, [2]=B, or null if invalid
12
- * input string.
13
- */
14
- getRgb(rgb: string): number[] | null;
15
- /**
16
- * Get black or white according to which of them has the maximum contrast
17
- * against the specified color.
18
- *
19
- * @param rgb The RGB color string.
20
- * @returns Black or white. If rgb is invalid, always black.
21
- */
22
- getContrastColor(rgb: string): string;
23
- /**
24
- * Convert HSL to RGB.
25
- *
26
- * @param h Hue
27
- * @param s Saturation
28
- * @param l Lightness
29
- * @returns Object with r, g, b values.
30
- */
31
- hslToRgb(h: number, s: number, l: number): {
32
- r: number;
33
- g: number;
34
- b: number;
35
- };
36
- rgbToString(r: number, g: number, b: number): string;
37
- /**
38
- * Get the next color from a palette generated to include
39
- * the specified count of colors.
40
- *
41
- * @param index The index of the next color in the palette.
42
- * @param count The total count of colors in the palette.
43
- * @param blueBoost True to adjust colors for the eye's lack of sensitivity to blue.
44
- * @returns The RRGGBB values string.
45
- */
46
- nextPaletteColor(index: number, count: number, blueBoost?: boolean): string;
47
- static ɵfac: i0.ɵɵFactoryDeclaration<ColorService, never>;
48
- static ɵprov: i0.ɵɵInjectableDeclaration<ColorService>;
49
- }
@@ -1,25 +0,0 @@
1
- import { Observable } from 'rxjs';
2
- import { UserService } from '@myrmidon/cadmus-api';
3
- import { RefLookupFilter, RefLookupService } from '@myrmidon/cadmus-refs-lookup';
4
- import * as i0 from "@angular/core";
5
- export interface UserWithRoles {
6
- user: {
7
- id: string;
8
- firstName: string;
9
- lastName: string;
10
- userName: string;
11
- email: string;
12
- };
13
- roles: string[];
14
- }
15
- /**
16
- * Service for users lookup.
17
- */
18
- export declare class UserRefLookupService implements RefLookupService {
19
- private _userService;
20
- constructor(_userService: UserService);
21
- lookup(filter: RefLookupFilter, options?: any): Observable<UserWithRoles[]>;
22
- getName(item: UserWithRoles): string;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<UserRefLookupService, never>;
24
- static ɵprov: i0.ɵɵInjectableDeclaration<UserRefLookupService>;
25
- }
package/lib/utils.d.ts DELETED
@@ -1,29 +0,0 @@
1
- import { AbstractControl } from '@angular/forms';
2
- import { Observable } from 'rxjs';
3
- /**
4
- * Extract arguments of function
5
- */
6
- export type ArgumentsType<F> = F extends (...args: infer A) => any ? A : never;
7
- /**
8
- * Creates an object like O. Optionally provide minimum set of properties P
9
- * which the objects must share to conform.
10
- */
11
- type ObjectLike<O extends object, P extends keyof O = keyof O> = Pick<O, P>;
12
- /**
13
- * Extract a touched changed observable from an abstract control.
14
- * Use in component code like:
15
- * this.touchedChanges$ = extractTouchedChanges(this.form);
16
- *
17
- * @param control AbstractControl-like object with markAsTouched method.
18
- */
19
- export declare const extractTouchedChanges: (control: ObjectLike<AbstractControl, "markAsTouched" | "markAsUntouched">) => Observable<boolean>;
20
- /**
21
- * Extract a pristine changed observable from an abstract control.
22
- * Use in component code like:
23
- * this.pristineChanges$ = extractPristineChanges(this.form);
24
- *
25
- * @param control AbstractControl-like object with markAsPristine and markAsDirty
26
- * methods.
27
- */
28
- export declare const extractPristineChanges: (control: ObjectLike<AbstractControl, "markAsPristine" | "markAsDirty">) => Observable<boolean>;
29
- export {};
@@ -1,14 +0,0 @@
1
- import { ValidatorFn } from '@angular/forms';
2
- /**
3
- * General-purpose custom validators.
4
- */
5
- export declare class CustomValidators {
6
- /**
7
- * Validates a FormGroup or FormArray control checking if the count of their
8
- * controls with a true value is equal to or greater than the specified
9
- * number.
10
- *
11
- * @param min The minimum number of checked controls.
12
- */
13
- static minChecked(min?: number): ValidatorFn;
14
- }
@@ -1,9 +0,0 @@
1
- import { AbstractControl } from '@angular/forms';
2
- /**
3
- * Simple JSON validator.
4
- */
5
- export declare class JsonValidators {
6
- static json(control: AbstractControl): {
7
- [key: string]: boolean;
8
- } | null;
9
- }
package/public-api.d.ts DELETED
@@ -1,15 +0,0 @@
1
- export * from './lib/components/close-save-buttons/close-save-buttons.component';
2
- export * from './lib/components/decorated-token-text/decorated-token-text.component';
3
- export * from './lib/components/error-list/error-list.component';
4
- export * from './lib/components/facet-badge/facet-badge.component';
5
- export * from './lib/components/flags-badge/flags-badge.component';
6
- export * from './lib/components/layer-hints/layer-hints.component';
7
- export * from './lib/components/lookup-pin/lookup-pin.component';
8
- export * from './lib/components/part-badge/part-badge.component';
9
- export * from './lib/components/thesaurus-tree/thesaurus-tree.component';
10
- export * from './lib/components/model-editor-component-base';
11
- export * from './lib/services/color.service';
12
- export * from './lib/validators/custom-validators';
13
- export * from './lib/validators/json-validators';
14
- export * from './lib/services/user-ref-lookup.service';
15
- export * from './lib/utils';