ngx-techlify-core 11.3.2 → 11.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/ngx-techlify-core.umd.js +572 -4
- package/bundles/ngx-techlify-core.umd.js.map +1 -1
- package/bundles/ngx-techlify-core.umd.min.js +2 -2
- package/bundles/ngx-techlify-core.umd.min.js.map +1 -1
- package/esm2015/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-config.model.js +15 -0
- package/esm2015/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.component.js +269 -0
- package/esm2015/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.module.js +25 -0
- package/esm2015/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.component.js +168 -0
- package/esm2015/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.module.js +29 -0
- package/esm2015/public-api.js +6 -1
- package/fesm2015/ngx-techlify-core.js +472 -2
- package/fesm2015/ngx-techlify-core.js.map +1 -1
- package/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-config.model.d.ts +12 -0
- package/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.component.d.ts +76 -0
- package/lib/techlify-tagger-tag-form-field/techlify-tagger-tag-form-field.module.d.ts +2 -0
- package/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.component.d.ts +58 -0
- package/lib/techlify-tagger-tag-selector/techlify-tagger-tag-selector.module.d.ts +2 -0
- package/ngx-techlify-core.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +5 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare class TechlifyTaggerTagFormConfigModel {
|
|
2
|
+
selectable: boolean;
|
|
3
|
+
removable: boolean;
|
|
4
|
+
separatorKeysCodes: number[];
|
|
5
|
+
placeholder: string;
|
|
6
|
+
apiUrl: string;
|
|
7
|
+
isCreateable: boolean;
|
|
8
|
+
createApiUrl: string;
|
|
9
|
+
isCacheTags: boolean;
|
|
10
|
+
isSingle: boolean;
|
|
11
|
+
constructor();
|
|
12
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
2
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
|
+
import { ElementRef, OnInit, OnDestroy, OnChanges, SimpleChanges } from '@angular/core';
|
|
4
|
+
import { ControlValueAccessor, FormControl, NgControl } from '@angular/forms';
|
|
5
|
+
import { MatAutocompleteSelectedEvent } from '@angular/material/autocomplete';
|
|
6
|
+
import { MatChipInputEvent } from '@angular/material/chips';
|
|
7
|
+
import { MatFormField, MatFormFieldControl } from '@angular/material/form-field';
|
|
8
|
+
import { Subject } from 'rxjs';
|
|
9
|
+
import { HttpService } from '../core/http.service';
|
|
10
|
+
import { TechlifyTaggerTagFormConfigModel } from './techlify-tagger-tag-form-config.model';
|
|
11
|
+
export declare class TechlifyTaggerTagFormFieldComponent implements OnInit, ControlValueAccessor, MatFormFieldControl<any>, OnDestroy, OnChanges {
|
|
12
|
+
private _focusMonitor;
|
|
13
|
+
private _elementRef;
|
|
14
|
+
private httpService;
|
|
15
|
+
_formField: MatFormField;
|
|
16
|
+
ngControl: NgControl;
|
|
17
|
+
static nextId: number;
|
|
18
|
+
stateChanges: Subject<void>;
|
|
19
|
+
focused: boolean;
|
|
20
|
+
controlType: string;
|
|
21
|
+
id: string;
|
|
22
|
+
onChange: (_: any) => void;
|
|
23
|
+
onTouched: () => void;
|
|
24
|
+
tagInputCtrl: FormControl;
|
|
25
|
+
filterString: any;
|
|
26
|
+
tagInput: ElementRef<HTMLInputElement>;
|
|
27
|
+
/**Pass the configuration for Techlify Tagger */
|
|
28
|
+
config: TechlifyTaggerTagFormConfigModel;
|
|
29
|
+
/**Pass the Model Type for Techlify Tagger, Required */
|
|
30
|
+
modelType: string;
|
|
31
|
+
/**Pass the Model ID for Techlify Tagger */
|
|
32
|
+
modelId: string;
|
|
33
|
+
/**Pass the default list of tags */
|
|
34
|
+
private _allTags;
|
|
35
|
+
get allTags(): any[];
|
|
36
|
+
set allTags(value: any[]);
|
|
37
|
+
/**Pass the Categories to filter for a model */
|
|
38
|
+
categories: string[];
|
|
39
|
+
/**Pass default category to be used for assigning the tags, when we filter by more than one category */
|
|
40
|
+
defaultCreateCategory: string;
|
|
41
|
+
get tags(): any[];
|
|
42
|
+
get empty(): boolean;
|
|
43
|
+
get shouldLabelFloat(): any;
|
|
44
|
+
get required(): boolean;
|
|
45
|
+
set required(value: boolean);
|
|
46
|
+
private _required;
|
|
47
|
+
get disabled(): boolean;
|
|
48
|
+
set disabled(value: boolean);
|
|
49
|
+
private _disabled;
|
|
50
|
+
private _value;
|
|
51
|
+
get value(): any[];
|
|
52
|
+
set value(tagIds: any[]);
|
|
53
|
+
get errorState(): boolean;
|
|
54
|
+
get placeholder(): string;
|
|
55
|
+
set placeholder(value: string);
|
|
56
|
+
private _placeholder;
|
|
57
|
+
ngOnInit(): void;
|
|
58
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
59
|
+
init(): void;
|
|
60
|
+
get filteredTags(): any[];
|
|
61
|
+
constructor(_focusMonitor: FocusMonitor, _elementRef: ElementRef<HTMLElement>, httpService: HttpService, _formField: MatFormField, ngControl: NgControl);
|
|
62
|
+
setDescribedByIds(ids: string[]): void;
|
|
63
|
+
onContainerClick(): void;
|
|
64
|
+
add(event: MatChipInputEvent): Promise<void>;
|
|
65
|
+
remove(tag: any): void;
|
|
66
|
+
selected(event: MatAutocompleteSelectedEvent): void;
|
|
67
|
+
private _filter;
|
|
68
|
+
writeValue(tagIds: any[]): void;
|
|
69
|
+
registerOnChange(fn: any): void;
|
|
70
|
+
registerOnTouched(fn: any): void;
|
|
71
|
+
setDisabledState(isDisabled: boolean): void;
|
|
72
|
+
_handleInput(): void;
|
|
73
|
+
static ngAcceptInputType_disabled: BooleanInput;
|
|
74
|
+
static ngAcceptInputType_required: BooleanInput;
|
|
75
|
+
ngOnDestroy(): void;
|
|
76
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
2
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
|
+
import { ElementRef, OnInit, OnDestroy } from '@angular/core';
|
|
4
|
+
import { ControlValueAccessor, FormControl, NgControl } from '@angular/forms';
|
|
5
|
+
import { MatFormField, MatFormFieldControl } from '@angular/material/form-field';
|
|
6
|
+
import { Subject } from 'rxjs';
|
|
7
|
+
import { HttpService } from '../core/http.service';
|
|
8
|
+
export declare class TechlifyTaggerTagSelectorComponent implements OnInit, ControlValueAccessor, MatFormFieldControl<any>, OnDestroy {
|
|
9
|
+
private _focusMonitor;
|
|
10
|
+
private _elementRef;
|
|
11
|
+
private httpService;
|
|
12
|
+
_formField: MatFormField;
|
|
13
|
+
ngControl: NgControl;
|
|
14
|
+
/**Pass the Categories to filter for a model */
|
|
15
|
+
categories: string[];
|
|
16
|
+
multiple: boolean;
|
|
17
|
+
enableSearch: boolean;
|
|
18
|
+
tagSelectorCtrl: FormControl;
|
|
19
|
+
showAllTags: boolean;
|
|
20
|
+
useSelectButtonStyle: boolean;
|
|
21
|
+
tags: any[];
|
|
22
|
+
static nextId: number;
|
|
23
|
+
stateChanges: Subject<void>;
|
|
24
|
+
focused: boolean;
|
|
25
|
+
controlType: string;
|
|
26
|
+
id: string;
|
|
27
|
+
onChange: (_: any) => void;
|
|
28
|
+
onTouched: () => void;
|
|
29
|
+
get apiUrl(): string;
|
|
30
|
+
get empty(): boolean;
|
|
31
|
+
get shouldLabelFloat(): boolean;
|
|
32
|
+
get required(): boolean;
|
|
33
|
+
set required(value: boolean);
|
|
34
|
+
private _required;
|
|
35
|
+
get disabled(): boolean;
|
|
36
|
+
set disabled(value: boolean);
|
|
37
|
+
private _disabled;
|
|
38
|
+
private _value;
|
|
39
|
+
get value(): any;
|
|
40
|
+
set value(val: any);
|
|
41
|
+
get errorState(): boolean;
|
|
42
|
+
get placeholder(): string;
|
|
43
|
+
set placeholder(value: string);
|
|
44
|
+
private _placeholder;
|
|
45
|
+
ngOnInit(): void;
|
|
46
|
+
selectionChange(value: any): void;
|
|
47
|
+
constructor(_focusMonitor: FocusMonitor, _elementRef: ElementRef<HTMLElement>, httpService: HttpService, _formField: MatFormField, ngControl: NgControl);
|
|
48
|
+
setDescribedByIds(ids: string[]): void;
|
|
49
|
+
onContainerClick(): void;
|
|
50
|
+
writeValue(val: any): void;
|
|
51
|
+
registerOnChange(fn: any): void;
|
|
52
|
+
registerOnTouched(fn: any): void;
|
|
53
|
+
setDisabledState(isDisabled: boolean): void;
|
|
54
|
+
_handleInput(): void;
|
|
55
|
+
static ngAcceptInputType_disabled: BooleanInput;
|
|
56
|
+
static ngAcceptInputType_required: BooleanInput;
|
|
57
|
+
ngOnDestroy(): void;
|
|
58
|
+
}
|