@bnsights/bbsf-controls 1.0.45 → 1.0.48
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/README.md +17 -0
- package/bnsights-bbsf-controls-1.0.48.tgz +0 -0
- package/bnsights-bbsf-controls.d.ts +1 -0
- package/bnsights-bbsf-controls.metadata.json +1 -1
- package/bundles/bnsights-bbsf-controls.umd.js +768 -531
- package/bundles/bnsights-bbsf-controls.umd.js.map +1 -1
- package/esm2015/bnsights-bbsf-controls.js +2 -1
- package/esm2015/lib/Shared/Enums/TagInputView.js +7 -0
- package/esm2015/lib/Shared/Models/AutocompleteDTO.js +2 -1
- package/esm2015/lib/Shared/Models/AutocompleteOptions.js +2 -1
- package/esm2015/lib/Shared/Models/PagingOptions.js +5 -1
- package/esm2015/lib/Shared/Models/TagsInputDTO.js +1 -1
- package/esm2015/lib/Shared/Models/TagsInputOptions.js +9 -5
- package/esm2015/lib/Shared/components/ng-tag-input.js +292 -0
- package/esm2015/lib/Shared/default_intl.js +21 -0
- package/esm2015/lib/controls/AutocompleteTextBox/AutocompleteTextBox.component.js +3 -2
- package/esm2015/lib/controls/DateTimePicker/DateTimePicker.component.js +6 -1
- package/esm2015/lib/controls/Paging/Paging.component.js +81 -41
- package/esm2015/lib/controls/TagsInput/TagsInput.component.js +2 -2
- package/esm2015/lib/controls/bbsf-controls.module.js +4 -2
- package/esm2015/public-api.js +3 -1
- package/fesm2015/bnsights-bbsf-controls.js +418 -52
- package/fesm2015/bnsights-bbsf-controls.js.map +1 -1
- package/lib/Shared/Enums/TagInputView.d.ts +5 -0
- package/lib/Shared/Models/AutocompleteDTO.d.ts +1 -0
- package/lib/Shared/Models/AutocompleteOptions.d.ts +1 -0
- package/lib/Shared/Models/PagingOptions.d.ts +4 -0
- package/lib/Shared/Models/TagsInputDTO.d.ts +4 -2
- package/lib/Shared/Models/TagsInputOptions.d.ts +3 -0
- package/lib/Shared/components/ng-tag-input.d.ts +45 -0
- package/lib/Shared/default_intl.d.ts +10 -0
- package/lib/controls/AutocompleteTextBox/AutocompleteTextBox.component.d.ts +1 -0
- package/lib/controls/Paging/Paging.component.d.ts +7 -2
- package/package.json +2 -2
- package/public-api.d.ts +2 -0
- package/bnsights-bbsf-controls-1.0.45.tgz +0 -0
|
@@ -49,4 +49,8 @@ export declare class PagingOptions<T = any> {
|
|
|
49
49
|
ScrollWindow: boolean;
|
|
50
50
|
ForceDirection: ForceDirection;
|
|
51
51
|
TypeOfResponse?: new () => T;
|
|
52
|
+
/** Clear Filter button selector */
|
|
53
|
+
ResetFilterButtonName: string;
|
|
54
|
+
DisableBlockUI: boolean;
|
|
55
|
+
StartPagingCallback: Function;
|
|
52
56
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ForceDirection } from '../Enums/ForceDirection';
|
|
2
2
|
import { ControlOptionsBase } from './ControlOptionsBase';
|
|
3
|
+
import { TagInputView } from '../Enums/TagInputView';
|
|
3
4
|
export declare class TagsInputOptions extends ControlOptionsBase {
|
|
4
5
|
/**To set value to Control */
|
|
5
6
|
Value: any;
|
|
@@ -51,4 +52,6 @@ export declare class TagsInputOptions extends ControlOptionsBase {
|
|
|
51
52
|
ValidationToken: string;
|
|
52
53
|
/**Set Extra Filters*/
|
|
53
54
|
ExtraFilters: string;
|
|
55
|
+
TagInputMode: TagInputView;
|
|
56
|
+
ShowDescription: boolean;
|
|
54
57
|
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { EventEmitter } from '@angular/core';
|
|
2
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
+
import { TypeaheadMatch } from 'ngx-bootstrap/typeahead/public_api';
|
|
4
|
+
import { TagInputView } from '../Enums/TagInputView';
|
|
5
|
+
export interface TagsChangedEvent {
|
|
6
|
+
change: string;
|
|
7
|
+
tag: any;
|
|
8
|
+
}
|
|
9
|
+
export declare class BTagsInputComponent implements ControlValueAccessor {
|
|
10
|
+
selected: string;
|
|
11
|
+
tags: Array<any>;
|
|
12
|
+
private onTouchedCallback;
|
|
13
|
+
private onChangeCallback;
|
|
14
|
+
tagInputViewEnum: typeof TagInputView;
|
|
15
|
+
maxTags: number;
|
|
16
|
+
removeLastOnBackspace: boolean;
|
|
17
|
+
canDeleteTags: boolean;
|
|
18
|
+
canAddTags: boolean;
|
|
19
|
+
ViewMode: TagInputView;
|
|
20
|
+
placeholder: string;
|
|
21
|
+
showDescription: boolean;
|
|
22
|
+
options: any;
|
|
23
|
+
defaultImageURL: any;
|
|
24
|
+
displayField: string;
|
|
25
|
+
minLengthBeforeOptions: number;
|
|
26
|
+
scrollableOptions: boolean;
|
|
27
|
+
scrollableOptionsInView: number;
|
|
28
|
+
onTagsChanged: EventEmitter<TagsChangedEvent>;
|
|
29
|
+
onMaxTagsReached: EventEmitter<void>;
|
|
30
|
+
onNoOptionsMatch: EventEmitter<boolean>;
|
|
31
|
+
getPlaceholder(): string;
|
|
32
|
+
private tagsChanged;
|
|
33
|
+
removeLastTag(tagInput: HTMLInputElement): void;
|
|
34
|
+
addTag(tagInput: HTMLInputElement): void;
|
|
35
|
+
private addPredefinedTag;
|
|
36
|
+
removeTag(tagToRemove: any): void;
|
|
37
|
+
maximumOfTagsReached(): boolean;
|
|
38
|
+
isDeleteable(tag: any): boolean;
|
|
39
|
+
typeaheadOnSelect(e: TypeaheadMatch): void;
|
|
40
|
+
typeaheadOnNoMatch(e: any): void;
|
|
41
|
+
writeValue(value: any): void;
|
|
42
|
+
registerOnChange(fn: any): void;
|
|
43
|
+
registerOnTouched(fn: any): void;
|
|
44
|
+
calculateInitials(name: string): string;
|
|
45
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { UtilityService } from '@bnsights/bbsf-utilities';
|
|
2
|
+
import { OwlDateTimeIntl } from 'ng-pick-datetime';
|
|
3
|
+
export declare class DefaultIntl extends OwlDateTimeIntl {
|
|
4
|
+
private utilityService;
|
|
5
|
+
constructor(utilityService: UtilityService);
|
|
6
|
+
/** A label for the range 'from' in picker info */
|
|
7
|
+
rangeFromLabel: string;
|
|
8
|
+
/** A label for the range 'to' in picker info */
|
|
9
|
+
rangeToLabel: string;
|
|
10
|
+
}
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { OnInit, EventEmitter } from '@angular/core';
|
|
1
|
+
import { OnInit, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
2
|
import { Router } from '@angular/router';
|
|
3
3
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
|
4
4
|
import { PagingOptions } from '../../Shared/Models/PagingOptions';
|
|
5
|
+
import { Subscription } from 'rxjs';
|
|
5
6
|
import { FormGroup } from '@angular/forms';
|
|
6
7
|
import { OnPagingFiltersChangeService } from '../../Shared/services/OnPagingFiltersChange.service';
|
|
7
8
|
import { RequestHandlerService, UtilityService } from '@bnsights/bbsf-utilities';
|
|
8
|
-
export declare class PagingComponent<T> implements OnInit {
|
|
9
|
+
export declare class PagingComponent<T> implements OnInit, OnDestroy {
|
|
9
10
|
utilityService: UtilityService;
|
|
10
11
|
private http;
|
|
11
12
|
private router;
|
|
@@ -34,7 +35,9 @@ export declare class PagingComponent<T> implements OnInit {
|
|
|
34
35
|
Items: EventEmitter<T[]>;
|
|
35
36
|
options: PagingOptions;
|
|
36
37
|
group: FormGroup;
|
|
38
|
+
subscriptions: Subscription;
|
|
37
39
|
constructor(utilityService: UtilityService, http: HttpClient, router: Router, onChangeService: OnPagingFiltersChangeService, requestHandlerService: RequestHandlerService);
|
|
40
|
+
ngOnDestroy(): void;
|
|
38
41
|
ngOnInit(): void;
|
|
39
42
|
ngAfterViewInit(): void;
|
|
40
43
|
onDropDownChange(result: any): void;
|
|
@@ -46,4 +49,6 @@ export declare class PagingComponent<T> implements OnInit {
|
|
|
46
49
|
UpdatePaging: () => void;
|
|
47
50
|
castItems(objectArr: any[]): T[];
|
|
48
51
|
setText(pagesNumber: number, itemsNumber: number): void;
|
|
52
|
+
clearFilters(): void;
|
|
53
|
+
getFiltersValue(): {};
|
|
49
54
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bnsights/bbsf-controls",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.48",
|
|
4
4
|
"peerDependencies": {
|
|
5
5
|
"@angular/common": "~12.2.12",
|
|
6
6
|
"@angular/core": "~12.2.12"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"@angular/platform-browser": "~12.2.12",
|
|
22
22
|
"@angular/platform-browser-dynamic": "~12.2.12",
|
|
23
23
|
"@angular/router": "~12.2.12",
|
|
24
|
-
"@bnsights/bbsf-utilities": "1.0.
|
|
24
|
+
"@bnsights/bbsf-utilities": "1.0.21",
|
|
25
25
|
"@fortawesome/fontawesome-free": "^5.15.2",
|
|
26
26
|
"google-libphonenumber": "^3.2.17",
|
|
27
27
|
"@fullcalendar/angular": "^5.5.0",
|
package/public-api.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export * from './lib/Shared/services/OnPagingFiltersChange.service';
|
|
|
32
32
|
export * from './lib/Shared/config/environment';
|
|
33
33
|
export * from './lib/Shared/services/GlobalSettings.service';
|
|
34
34
|
export * from './lib/Shared/services/render-component-service.service';
|
|
35
|
+
export * from './lib/Shared/default_intl';
|
|
35
36
|
export * from './lib/Shared/Models/ControlOptionsBase';
|
|
36
37
|
export * from './lib/Shared/Models/MultilingualControlOptionsBase';
|
|
37
38
|
export * from './lib/Shared/Models/CustomValidation';
|
|
@@ -104,3 +105,4 @@ export * from './lib/Shared/Enums/PagingActionMode';
|
|
|
104
105
|
export * from './lib/Shared/Enums/StyleConfirmationMode';
|
|
105
106
|
export * from './lib/Shared/Enums/Enums';
|
|
106
107
|
export * from './lib/Shared/Enums/LanguageValidation';
|
|
108
|
+
export * from './lib/Shared/Enums/TagInputView';
|
|
Binary file
|