@recursyve/nice-ui-kit.v2 14.0.0-beta.113 → 14.0.0-beta.115

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.
@@ -45,6 +45,7 @@ export declare class NiceAsyncTypeaheadComponent extends _BaseAsyncTypeaheadComp
45
45
  entityRemoved: EventEmitter<void>;
46
46
  resource: string;
47
47
  searchOptions: any;
48
+ autoReload: boolean;
48
49
  preloadResource: boolean;
49
50
  allowNotFoundItems: boolean;
50
51
  panelClass: string | string[];
@@ -102,12 +103,14 @@ export declare class NiceAsyncTypeaheadComponent extends _BaseAsyncTypeaheadComp
102
103
  formatLabel(item: any): string;
103
104
  onEndScroll(): void;
104
105
  focusChanged(isFocused: boolean): void;
106
+ reload(): Promise<void>;
105
107
  reloadActive(): Promise<void>;
108
+ setSearchOptions(options: any): void;
106
109
  private updateLabel;
107
110
  private getObjectItem;
108
111
  private updateSearchInput;
109
112
  private checkIfValueStillExist;
110
113
  static ɵfac: i0.ɵɵFactoryDeclaration<NiceAsyncTypeaheadComponent, [{ optional: true; self: true; }, { optional: true; }, { optional: true; }, null, null, null, null]>;
111
- static ɵcmp: i0.ɵɵComponentDeclaration<NiceAsyncTypeaheadComponent, "nice-async-typeahead", never, { "resource": "resource"; "searchOptions": "searchOptions"; "preloadResource": "preloadResource"; "allowNotFoundItems": "allowNotFoundItems"; "panelClass": "panelClass"; "bindValue": "bindValue"; "bindLabel": "bindLabel"; "placeholder": "placeholder"; "emptyPlaceholder": "emptyPlaceholder"; "optionTemplate": "optionTemplate"; "filterFn": "filterFn"; "labelFormatFn": "labelFormatFn"; "disabled": "disabled"; "value": "value"; "required": "required"; }, { "entityRemoved": "entityRemoved"; "selected": "selected"; }, never, never, false>;
114
+ static ɵcmp: i0.ɵɵComponentDeclaration<NiceAsyncTypeaheadComponent, "nice-async-typeahead", never, { "resource": "resource"; "searchOptions": "searchOptions"; "autoReload": "autoReload"; "preloadResource": "preloadResource"; "allowNotFoundItems": "allowNotFoundItems"; "panelClass": "panelClass"; "bindValue": "bindValue"; "bindLabel": "bindLabel"; "placeholder": "placeholder"; "emptyPlaceholder": "emptyPlaceholder"; "optionTemplate": "optionTemplate"; "filterFn": "filterFn"; "labelFormatFn": "labelFormatFn"; "disabled": "disabled"; "value": "value"; "required": "required"; }, { "entityRemoved": "entityRemoved"; "selected": "selected"; }, never, never, false>;
112
115
  }
113
116
  export {};
@@ -1,10 +1,10 @@
1
- import { ElementRef, OnChanges, OnInit, SimpleChanges } from "@angular/core";
1
+ import { ElementRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from "@angular/core";
2
2
  import { ControlValueAccessor, NgControl } from "@angular/forms";
3
3
  import { NiceAsyncTypeaheadComponent } from "../../components";
4
4
  import { KeyboardCodes } from "../../utils";
5
5
  import { NiceChipListItemsComponent } from "./chip-list-items/chip-list-items.component";
6
6
  import * as i0 from "@angular/core";
7
- export declare class NiceChipListDirective implements ControlValueAccessor, OnInit, OnChanges {
7
+ export declare class NiceChipListDirective implements ControlValueAccessor, OnInit, OnDestroy, OnChanges {
8
8
  private asyncTypeahead;
9
9
  private ngControl;
10
10
  private elementRef;
@@ -20,12 +20,13 @@ export declare class NiceChipListDirective implements ControlValueAccessor, OnIn
20
20
  onKeyDown(event: KeyboardEvent): void;
21
21
  ngOnInit(): void;
22
22
  ngOnChanges(changes: SimpleChanges): void;
23
+ ngOnDestroy(): void;
23
24
  writeValue(obj: any[]): void;
24
25
  registerOnChange(fn: any): void;
25
26
  registerOnTouched(fn: any): void;
26
27
  private setupAsyncTypeahead;
27
28
  private addValue;
28
29
  private updateTypeaheadSearchOptions;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<NiceChipListDirective, [{ optional: true; }, { optional: true; }, null]>;
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<NiceChipListDirective, [{ optional: true; }, { optional: true; self: true; }, null]>;
30
31
  static ɵdir: i0.ɵɵDirectiveDeclaration<NiceChipListDirective, "input[niceChipList], nice-async-typeahead[niceChipList]", never, { "withItemList": "withItemList"; "reloadOnSelected": "reloadOnSelected"; "separatorKeyboardCodes": "separatorKeyboardCodes"; }, {}, never, never, false>;
31
32
  }
@@ -11,3 +11,5 @@ export * from "./scroll-reset";
11
11
  export * from "./scrollbar";
12
12
  export * from "./stop-propagation";
13
13
  export * from "./window";
14
+ export * from "./rerender";
15
+ export * from "./resolve";
@@ -0,0 +1 @@
1
+ export * from "./public-api";
@@ -0,0 +1 @@
1
+ export * from "./rerender.directive";
@@ -0,0 +1,10 @@
1
+ import { TemplateRef, ViewContainerRef } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ export declare class RerenderDirective {
4
+ private templateRef;
5
+ private viewContainerRef;
6
+ set rerender(_: any);
7
+ constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
8
+ static ɵfac: i0.ɵɵFactoryDeclaration<RerenderDirective, never>;
9
+ static ɵdir: i0.ɵɵDirectiveDeclaration<RerenderDirective, "[rerender]", never, { "rerender": "rerender"; }, {}, never, never, true>;
10
+ }
@@ -0,0 +1 @@
1
+ export * from "./public-api";
@@ -0,0 +1 @@
1
+ export * from "./resolve.directive";
@@ -0,0 +1,18 @@
1
+ import { TemplateRef, ViewContainerRef } from "@angular/core";
2
+ import * as i0 from "@angular/core";
3
+ declare class ResolveDirectiveContext<T> {
4
+ $implicit: T;
5
+ resolve: T;
6
+ }
7
+ export declare class ResolveDirective<T> {
8
+ private templateRef;
9
+ private viewContainerRef;
10
+ private context;
11
+ private embeddedViewRef;
12
+ set resolve(value: T);
13
+ constructor(templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef);
14
+ static ngTemplateContextGuard<T>(directive: ResolveDirective<T>, ctx: any): ctx is ResolveDirectiveContext<T>;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<ResolveDirective<any>, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ResolveDirective<any>, "[resolve]", never, { "resolve": "resolve"; }, {}, never, never, true>;
17
+ }
18
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@recursyve/nice-ui-kit.v2",
3
- "version": "14.0.0-beta.113",
3
+ "version": "14.0.0-beta.115",
4
4
  "exports": {
5
5
  ".": {
6
6
  "sass": "./_index.scss",