@decaf-ts/for-angular 0.1.1 → 0.1.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/index.d.ts
CHANGED
|
@@ -15,8 +15,8 @@ import * as i1 from '@angular/common';
|
|
|
15
15
|
import { Location } from '@angular/common';
|
|
16
16
|
import { Router } from '@angular/router';
|
|
17
17
|
import { OverlayBaseController } from '@ionic/angular/common';
|
|
18
|
-
import { Observable, Subject, Subscription } from 'rxjs';
|
|
19
18
|
import { HttpClient } from '@angular/common/http';
|
|
19
|
+
import { Observable, Subject, Subscription } from 'rxjs';
|
|
20
20
|
import * as i3 from '@ngx-translate/core';
|
|
21
21
|
import { InterpolationParameters, Translation, InterpolatableTranslationObject, TranslateLoader, TranslationObject, TranslateParser, RootTranslateServiceConfig } from '@ngx-translate/core';
|
|
22
22
|
import { Title, SafeHtml, DomSanitizer } from '@angular/platform-browser';
|
|
@@ -1167,11 +1167,13 @@ declare class NgxRepositoryDirective<M extends Model> extends DecafComponent<M>
|
|
|
1167
1167
|
* @type {Observer}
|
|
1168
1168
|
*/
|
|
1169
1169
|
protected repositoryObserver: Observer;
|
|
1170
|
+
protected destroySubscriptions$: Subject<void>;
|
|
1170
1171
|
initialize(): Promise<void>;
|
|
1171
1172
|
set context(context: DecafRepository<M>);
|
|
1172
1173
|
from(repository: IRepository<M>): NgxRepositoryDirective<M>;
|
|
1173
1174
|
get repository(): DecafRepository<M>;
|
|
1174
1175
|
refresh(model?: unknown): Promise<void>;
|
|
1176
|
+
observe(): void;
|
|
1175
1177
|
protected buildCondition(attr?: keyof M): Condition<M>;
|
|
1176
1178
|
read(uid: PrimaryKeyType): Promise<M>;
|
|
1177
1179
|
delete(data: PrimaryKeyType | PrimaryKeyType[] | M[], pk: PrimaryKeyType): Promise<void>;
|
|
@@ -1614,7 +1616,6 @@ declare abstract class NgxComponentDirective extends NgxRepositoryDirective<Mode
|
|
|
1614
1616
|
* @default WindowColorSchemes.light
|
|
1615
1617
|
*/
|
|
1616
1618
|
protected colorSchema: WindowColorScheme;
|
|
1617
|
-
protected destroySubscriptions$: Subject<void>;
|
|
1618
1619
|
/**
|
|
1619
1620
|
* @description Constructor for NgxComponentDirective.
|
|
1620
1621
|
* @summary Initializes the directive by setting up the component name, locale root,
|
|
@@ -5954,7 +5955,7 @@ declare class ListComponent extends NgxComponentDirective implements OnInit, OnD
|
|
|
5954
5955
|
* @returns {Promise<void>}
|
|
5955
5956
|
* @memberOf ListComponent
|
|
5956
5957
|
*/
|
|
5957
|
-
handleObserveEvent(
|
|
5958
|
+
handleObserveEvent<M extends Model>(data: M, constructor: UIFunctionLike, event: OperationKeys, uid: string | number): Promise<void>;
|
|
5958
5959
|
/**
|
|
5959
5960
|
* @description Function for tracking items in the list.
|
|
5960
5961
|
* @summary Provides a tracking function for the `*ngFor` directive in the component template.
|
|
@@ -5978,7 +5979,7 @@ declare class ListComponent extends NgxComponentDirective implements OnInit, OnD
|
|
|
5978
5979
|
* @param {string | number} uid - The ID of the item to create.
|
|
5979
5980
|
* @returns {Promise<void>} A promise that resolves when the item is created and added to the list.
|
|
5980
5981
|
*/
|
|
5981
|
-
handleCreate(uid: string | number): Promise<void>;
|
|
5982
|
+
handleCreate(data: Model, uid: string | number): Promise<void>;
|
|
5982
5983
|
/**
|
|
5983
5984
|
* @description Handles the update event from the repository.
|
|
5984
5985
|
* @summary Updates the list item with the specified ID based on the new data.
|
|
@@ -5988,7 +5989,7 @@ declare class ListComponent extends NgxComponentDirective implements OnInit, OnD
|
|
|
5988
5989
|
* @private
|
|
5989
5990
|
* @memberOf ListComponent
|
|
5990
5991
|
*/
|
|
5991
|
-
handleUpdate(uid: string | number): Promise<void>;
|
|
5992
|
+
handleUpdate(item: Model, uid: string | number): Promise<void>;
|
|
5992
5993
|
/**
|
|
5993
5994
|
* @description Removes an item from the list by ID.
|
|
5994
5995
|
* @summary Filters out an item with the specified ID from the data array and
|