@decaf-ts/for-angular 0.0.64 → 0.0.66

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
@@ -20,6 +20,8 @@ import { TranslateService, TranslateLoader, TranslationObject, TranslateParser,
20
20
  import { Observable, Subject, Subscription } from 'rxjs';
21
21
  import { HttpClient } from '@angular/common/http';
22
22
  import { SafeHtml, DomSanitizer, Title } from '@angular/platform-browser';
23
+ import { SelectOption as SelectOption$1, KeyValue as KeyValue$1 } from 'src/lib/engine';
24
+ import { NavigationOptions } from '@ionic/angular/common/providers/nav-controller';
23
25
  import { InjectablesRegistry } from '@decaf-ts/injectable-decorators';
24
26
  import { LoggedClass, Logger } from '@decaf-ts/logging';
25
27
 
@@ -173,6 +175,7 @@ declare const ComponentEventNames: {
173
175
  readonly FIELDSET_REMOVE_GROUP: "fieldsetRemoveGroupEvent";
174
176
  readonly THEME_CHANGE: "themeChangeEvent";
175
177
  readonly FORM_GROUP_LOADED: "formGroupLoadedEvent";
178
+ readonly DISABLE_MENU: "disableMenuEvent";
176
179
  };
177
180
  /**
178
181
  * @description Logger level constants.
@@ -783,6 +786,13 @@ interface IFileUploadError {
783
786
  size?: number;
784
787
  error: string;
785
788
  }
789
+ interface ITabItem {
790
+ title?: string;
791
+ description?: string;
792
+ url?: string;
793
+ value?: string;
794
+ icon?: string;
795
+ }
786
796
 
787
797
  /**
788
798
  * @module module:lib/engine/types
@@ -1603,6 +1613,7 @@ declare abstract class NgxComponentDirective extends DecafComponent implements O
1603
1613
  isModalChild: boolean;
1604
1614
  protected handlers: Record<string, UIFunctionLike>;
1605
1615
  protected events: Record<string, UIFunctionLike>;
1616
+ valueParserFn: UIFunctionLike;
1606
1617
  /**
1607
1618
  * @description Indicates whether a refresh operation is in progress.
1608
1619
  * @summary When true, the component is currently fetching new data. This is used
@@ -1902,7 +1913,7 @@ declare abstract class NgxComponentDirective extends DecafComponent implements O
1902
1913
  */
1903
1914
  changeOperation(operation: string, id?: string): Promise<boolean>;
1904
1915
  static ɵfac: i0.ɵɵFactoryDeclaration<NgxComponentDirective, never>;
1905
- static ɵdir: i0.ɵɵDirectiveDeclaration<NgxComponentDirective, never, never, { "enableDarkMode": { "alias": "enableDarkMode"; "required": false; }; "isDarkMode": { "alias": "isDarkMode"; "required": false; }; "name": { "alias": "name"; "required": false; }; "childOf": { "alias": "childOf"; "required": false; }; "uid": { "alias": "uid"; "required": false; }; "model": { "alias": "model"; "required": false; }; "modelId": { "alias": "modelId"; "required": false; }; "condition": { "alias": "condition"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "value": { "alias": "value"; "required": false; }; "pk": { "alias": "pk"; "required": false; }; "mapper": { "alias": "mapper"; "required": false; }; "operations": { "alias": "operations"; "required": false; }; "operation": { "alias": "operation"; "required": false; }; "row": { "alias": "row"; "required": false; }; "col": { "alias": "col"; "required": false; }; "className": { "alias": "className"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "item": { "alias": "item"; "required": false; }; "props": { "alias": "props"; "required": false; }; "route": { "alias": "route"; "required": false; }; "borders": { "alias": "borders"; "required": false; }; "isModalChild": { "alias": "isModalChild"; "required": false; }; "handlers": { "alias": "handlers"; "required": false; }; "events": { "alias": "events"; "required": false; }; }, { "listenEvent": "listenEvent"; "refreshEvent": "refreshEvent"; }, never, never, true, never>;
1916
+ static ɵdir: i0.ɵɵDirectiveDeclaration<NgxComponentDirective, never, never, { "enableDarkMode": { "alias": "enableDarkMode"; "required": false; }; "isDarkMode": { "alias": "isDarkMode"; "required": false; }; "name": { "alias": "name"; "required": false; }; "childOf": { "alias": "childOf"; "required": false; }; "uid": { "alias": "uid"; "required": false; }; "model": { "alias": "model"; "required": false; }; "modelId": { "alias": "modelId"; "required": false; }; "condition": { "alias": "condition"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "value": { "alias": "value"; "required": false; }; "pk": { "alias": "pk"; "required": false; }; "mapper": { "alias": "mapper"; "required": false; }; "operations": { "alias": "operations"; "required": false; }; "operation": { "alias": "operation"; "required": false; }; "row": { "alias": "row"; "required": false; }; "col": { "alias": "col"; "required": false; }; "className": { "alias": "className"; "required": false; }; "locale": { "alias": "locale"; "required": false; }; "item": { "alias": "item"; "required": false; }; "props": { "alias": "props"; "required": false; }; "route": { "alias": "route"; "required": false; }; "borders": { "alias": "borders"; "required": false; }; "isModalChild": { "alias": "isModalChild"; "required": false; }; "handlers": { "alias": "handlers"; "required": false; }; "events": { "alias": "events"; "required": false; }; "valueParserFn": { "alias": "valueParserFn"; "required": false; }; }, { "listenEvent": "listenEvent"; "refreshEvent": "refreshEvent"; }, never, never, true, never>;
1906
1917
  }
1907
1918
 
1908
1919
  declare class NgxRenderableComponentDirective extends NgxComponentDirective implements OnChanges, OnDestroy, IRenderedModel {
@@ -5684,11 +5695,11 @@ declare class ListComponent extends NgxComponentDirective implements OnInit, OnD
5684
5695
  * when a user interacts with the pagination controls to navigate between pages.
5685
5696
  *
5686
5697
  * @param {IPaginationCustomEvent} event - The pagination event containing page information
5687
- * @returns {void}
5698
+ * @returns {Promise<void>}
5688
5699
  *
5689
5700
  * @memberOf ListComponent
5690
5701
  */
5691
- handlePaginate(event: IPaginationCustomEvent): void;
5702
+ handlePaginate(event: IPaginationCustomEvent | number): Promise<void>;
5692
5703
  /**
5693
5704
  * @description Handles pull-to-refresh events from the refresher component.
5694
5705
  * @summary Processes refresh events triggered by the user pulling down on the list
@@ -7795,9 +7806,337 @@ declare class FileUploadComponent extends NgxFormFieldDirective implements OnIni
7795
7806
  static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "ngx-decaf-file-upload", never, { "formGroup": { "alias": "formGroup"; "required": false; }; "name": { "alias": "name"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "required": { "alias": "required"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "type": { "alias": "type"; "required": false; }; "label": { "alias": "label"; "required": false; }; "buttonLabel": { "alias": "buttonLabel"; "required": false; }; "size": { "alias": "size"; "required": false; }; "position": { "alias": "position"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "showIcon": { "alias": "showIcon"; "required": false; }; "enableDirectoryMode": { "alias": "enableDirectoryMode"; "required": false; }; "previewHandler": { "alias": "previewHandler"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; }, { "changeEvent": "changeEvent"; }, never, never, true, never>;
7796
7807
  }
7797
7808
 
7809
+ /**
7810
+ * @description Service for handling routing operations in the application.
7811
+ * @summary The RouterService provides a unified interface for navigation and route management,
7812
+ * abstracting the underlying Angular Router and Ionic NavController functionality. It offers
7813
+ * methods for navigating between routes, retrieving URL information, and managing query parameters.
7814
+ * This service is designed to simplify navigation patterns and provide consistent behavior
7815
+ * across the application.
7816
+ *
7817
+ * @class RouterService
7818
+ * @injectable
7819
+ */
7820
+ declare class NgxRouterService {
7821
+ /**
7822
+ * @description Stores the previous URL for back navigation.
7823
+ * @summary Caches the previous URL from the router navigation events.
7824
+ * This is used as a reference point for back navigation and for determining
7825
+ * the navigation history of the application.
7826
+ *
7827
+ * @private
7828
+ * @type {string}
7829
+ * @memberOf RouterService
7830
+ */
7831
+ private previousUrl;
7832
+ /**
7833
+ * @description Angular Router service.
7834
+ * @summary Injected Angular Router service that provides core navigation capabilities,
7835
+ * URL manipulation, and navigation event handling. This service is used for most
7836
+ * routing operations and for accessing information about the current route.
7837
+ *
7838
+ * @private
7839
+ * @type {Router}
7840
+ * @memberOf RouterService
7841
+ */
7842
+ private router;
7843
+ /**
7844
+ * @description Angular ActivatedRoute service.
7845
+ * @summary Injected service that provides access to information about a route
7846
+ * associated with a component loaded in an outlet. This service is used to
7847
+ * access route parameters, query parameters, and other route-specific data.
7848
+ *
7849
+ * @private
7850
+ * @type {ActivatedRoute}
7851
+ * @memberOf RouterService
7852
+ */
7853
+ private route;
7854
+ /**
7855
+ * @description Ionic NavController service.
7856
+ * @summary Injected Ionic service that provides methods for navigating between pages
7857
+ * with animated transitions. This service extends Angular's routing capabilities
7858
+ * with mobile-friendly navigation patterns and animations.
7859
+ *
7860
+ * @private
7861
+ * @type {NavController}
7862
+ * @memberOf RouterService
7863
+ */
7864
+ private navController;
7865
+ /**
7866
+ * @description Angular Location service.
7867
+ * @summary Injected service that provides access to the browser's URL and history.
7868
+ * This service is used for interacting with the browser's history API, allowing
7869
+ * for back navigation and URL manipulation outside of Angular's router.
7870
+ *
7871
+ * @private
7872
+ * @type {Location}
7873
+ * @memberOf RouterService
7874
+ */
7875
+ private location;
7876
+ /**
7877
+ * @description Creates an instance of RouterService.
7878
+ * @summary Initializes a new RouterService. The commented line suggests that in a previous
7879
+ * version, this service was registered with an injectable registry system, which may have
7880
+ * been used for dependency tracking or service discovery.
7881
+ *
7882
+ * @memberOf RouterService
7883
+ */
7884
+ /**
7885
+ * @description Parses query parameters from the current route.
7886
+ * @summary Extracts specified query parameters from the current route and returns them
7887
+ * as an array of key-value pairs. This method supports both single parameter and
7888
+ * multiple parameter extraction, making it flexible for various use cases.
7889
+ *
7890
+ * @param {string | string[]} params - The parameter name(s) to extract from the route
7891
+ * @return {KeyValue[]} An array of key-value objects representing the extracted parameters
7892
+ *
7893
+ * @mermaid
7894
+ * sequenceDiagram
7895
+ * participant C as Component
7896
+ * participant R as RouterService
7897
+ * participant A as ActivatedRoute
7898
+ *
7899
+ * C->>R: parseAllQueryParams(params)
7900
+ * alt params is string
7901
+ * R->>R: Convert params to array
7902
+ * end
7903
+ * R->>R: Initialize empty result array
7904
+ * loop For each param in params
7905
+ * R->>A: Get param value from queryParamMap
7906
+ * A-->>R: Return param value or null
7907
+ * R->>R: Create key-value object
7908
+ * R->>R: Add to result array
7909
+ * end
7910
+ * R-->>C: Return array of key-value pairs
7911
+ *
7912
+ * @memberOf RouterService
7913
+ */
7914
+ parseAllQueryParams(params: string | string[]): KeyValue[];
7915
+ /**
7916
+ * @description Checks if a query parameter exists in the current route.
7917
+ * @summary Determines whether a specific query parameter is present in the current route's
7918
+ * query parameters. This is useful for conditional logic based on the presence of
7919
+ * certain parameters in the URL.
7920
+ *
7921
+ * @param {string} param - The name of the query parameter to check
7922
+ * @return {boolean} True if the parameter exists, false otherwise
7923
+ *
7924
+ * @mermaid
7925
+ * sequenceDiagram
7926
+ * participant C as Component
7927
+ * participant R as RouterService
7928
+ * participant A as ActivatedRoute
7929
+ *
7930
+ * C->>R: hasQueryParam(param)
7931
+ * R->>A: Access snapshot.queryParams
7932
+ * R->>R: Check if param exists in queryParams
7933
+ * R-->>C: Return boolean result
7934
+ *
7935
+ * @memberOf RouterService
7936
+ */
7937
+ hasQueryParam(param: string): boolean;
7938
+ /**
7939
+ * @description Retrieves a specific query parameter from the current route.
7940
+ * @summary Extracts a single query parameter from the current route and returns it
7941
+ * as a key-value pair. This method leverages parseAllQueryParams internally and
7942
+ * returns the first result or undefined if the parameter doesn't exist.
7943
+ *
7944
+ * @param {string} param - The name of the query parameter to retrieve
7945
+ * @return {KeyValue | undefined} A key-value object representing the parameter, or undefined if not found
7946
+ *
7947
+ * @mermaid
7948
+ * sequenceDiagram
7949
+ * participant C as Component
7950
+ * participant R as RouterService
7951
+ *
7952
+ * C->>R: getQueryParam(param)
7953
+ * R->>R: parseAllQueryParams(param)
7954
+ * R->>R: Extract first result or undefined
7955
+ * R-->>C: Return key-value object or undefined
7956
+ *
7957
+ * @memberOf RouterService
7958
+ */
7959
+ getQueryParam(param: string): KeyValue | undefined;
7960
+ /**
7961
+ * @description Retrieves the value of a specific query parameter.
7962
+ * @summary Extracts the value of a single query parameter from the current route.
7963
+ * This is a convenience method that handles the extraction and returns just the
7964
+ * value rather than a key-value pair.
7965
+ *
7966
+ * @param {string} param - The name of the query parameter to retrieve
7967
+ * @return {string | undefined} The value of the parameter, or undefined if not found
7968
+ *
7969
+ * @mermaid
7970
+ * sequenceDiagram
7971
+ * participant C as Component
7972
+ * participant R as RouterService
7973
+ *
7974
+ * C->>R: getQueryParamValue(param)
7975
+ * R->>R: parseAllQueryParams(param)
7976
+ * R->>R: Extract value from first result or undefined
7977
+ * R-->>C: Return string value or undefined
7978
+ *
7979
+ * @memberOf RouterService
7980
+ */
7981
+ getQueryParamValue(param: string): string | undefined;
7982
+ /**
7983
+ * @description Retrieves the last segment of the current URL.
7984
+ * @summary Extracts the final path segment from the current URL, which often
7985
+ * represents the current page or resource identifier. This method first attempts
7986
+ * to use the Angular Router's URL, and falls back to the window location if needed.
7987
+ *
7988
+ * @return {string} The last segment of the current URL path
7989
+ *
7990
+ * @mermaid
7991
+ * sequenceDiagram
7992
+ * participant C as Component
7993
+ * participant R as RouterService
7994
+ * participant W as Window
7995
+ *
7996
+ * C->>R: getLastUrlSegment()
7997
+ * alt Router URL available
7998
+ * R->>R: Split router.url by &#39;/&#39;
7999
+ * else Router URL not available
8000
+ * R->>W: Get window.location.href
8001
+ * R->>R: Split href by &#39;/&#39;
8002
+ * end
8003
+ * R->>R: Extract last segment
8004
+ * R-->>C: Return last segment
8005
+ *
8006
+ * @memberOf RouterService
8007
+ */
8008
+ getLastUrlSegment(): string;
8009
+ /**
8010
+ * @description Retrieves the current URL of the application.
8011
+ * @summary Extracts the current URL path from either the Angular Router or the browser's
8012
+ * window location, depending on availability. It also cleans the URL by removing the
8013
+ * leading forward slash for consistency.
8014
+ *
8015
+ * @return {string} The current URL of the application without the leading slash
8016
+ *
8017
+ * @mermaid
8018
+ * sequenceDiagram
8019
+ * participant C as Component
8020
+ * participant R as RouterService
8021
+ * participant W as Window
8022
+ *
8023
+ * C->>R: getCurrentUrl()
8024
+ * R->>R: Get router.url
8025
+ * R->>W: Get window.location.pathname
8026
+ * alt router.url is &#39;/&#39; and different from pathname
8027
+ * R->>R: Use pathname
8028
+ * else
8029
+ * R->>R: Use router.url
8030
+ * end
8031
+ * R->>R: Remove leading &#39;/&#39;
8032
+ * R-->>C: Return clean URL
8033
+ *
8034
+ * @memberOf RouterService
8035
+ */
8036
+ getCurrentUrl(): string;
8037
+ /**
8038
+ * @description Retrieves the URL of the previous page.
8039
+ * @summary Extracts the URL of the previous page from the router's navigation history.
8040
+ * This information is useful for back navigation and for understanding the user's
8041
+ * navigation path through the application.
8042
+ *
8043
+ * @return {string} The URL of the previous page
8044
+ *
8045
+ * @mermaid
8046
+ * sequenceDiagram
8047
+ * participant C as Component
8048
+ * participant R as RouterService
8049
+ * participant N as Router Navigation
8050
+ *
8051
+ * C->>R: getPreviousUrl()
8052
+ * R->>N: Get currentNavigation
8053
+ * alt previousNavigation exists
8054
+ * R->>N: Extract previousNavigation.finalUrl
8055
+ * R->>R: Store in previousUrl
8056
+ * end
8057
+ * R-->>C: Return previousUrl
8058
+ *
8059
+ * @memberOf RouterService
8060
+ */
8061
+ getPreviousUrl(): string;
8062
+ /**
8063
+ * @description Navigates back to the previous page.
8064
+ * @summary Triggers navigation back to the previous page in the browser's history.
8065
+ * This method also dispatches a custom event to notify other components about
8066
+ * the back navigation.
8067
+ *
8068
+ * @return {void}
8069
+ *
8070
+ * @mermaid
8071
+ * sequenceDiagram
8072
+ * participant C as Component
8073
+ * participant R as RouterService
8074
+ * participant L as Location
8075
+ *
8076
+ * C->>R: backToLastPage()
8077
+ * R->>L: Dispatch BACK_BUTTON_NAVIGATION event
8078
+ * R->>L: Navigate back
8079
+ *
8080
+ * @memberOf RouterService
8081
+ */
8082
+ backToLastPage(): void;
8083
+ /**
8084
+ * @description Navigates to a specified page.
8085
+ * @summary Triggers navigation to a specified page using the Ionic NavController.
8086
+ * Supports different navigation directions and additional options.
8087
+ *
8088
+ * @param {string} page - The page to navigate to
8089
+ * @param {RouteDirections} [direction=RouteDirections.FORWARD] - The direction of navigation
8090
+ * @param {NavigationOptions} [options] - Additional navigation options
8091
+ * @return {Promise<boolean>} A promise that resolves to true if navigation is successful, otherwise false
8092
+ *
8093
+ * @mermaid
8094
+ * sequenceDiagram
8095
+ * participant C as Component
8096
+ * participant R as RouterService
8097
+ * participant N as NavController
8098
+ *
8099
+ * C->>R: navigateTo(page, direction, options)
8100
+ * alt direction is ROOT
8101
+ * R->>N: navigateRoot(page, options)
8102
+ * else direction is FORWARD
8103
+ * R->>N: navigateForward(page, options)
8104
+ * else direction is BACK
8105
+ * R->>N: navigateBack(page, options)
8106
+ * end
8107
+ * N-->>R: Return navigation result
8108
+ * R-->>C: Return boolean result
8109
+ *
8110
+ * @memberOf RouterService
8111
+ */
8112
+ navigateTo(page: string, direction?: RouteDirections, options?: NavigationOptions): Promise<boolean>;
8113
+ static ɵfac: i0.ɵɵFactoryDeclaration<NgxRouterService, never>;
8114
+ static ɵprov: i0.ɵɵInjectableDeclaration<NgxRouterService>;
8115
+ }
8116
+
8117
+ declare class TableComponent extends ListComponent implements OnInit {
8118
+ filter: SelectOption$1[];
8119
+ filterIndex: string;
8120
+ filterLabel: string;
8121
+ filterValue?: string;
8122
+ cols: string[];
8123
+ allowOperations: boolean;
8124
+ routerService: NgxRouterService;
8125
+ injector: EnvironmentInjector;
8126
+ private get _cols();
8127
+ ngOnInit(): Promise<void>;
8128
+ protected itemMapper(item: KeyValue$1, mapper: KeyValue$1, props?: KeyValue$1): KeyValue$1;
8129
+ mapResults(data: KeyValue$1[]): KeyValue$1[];
8130
+ handleAction(event: Event, action: CrudOperations, uid: string): Promise<void>;
8131
+ openFilterSelectOptions(event: Event): Promise<void>;
8132
+ handleFilterSelectClear(event: CustomEvent): Promise<void>;
8133
+ static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
8134
+ static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "ngx-decaf-table", never, { "filter": { "alias": "filter"; "required": false; }; "filterIndex": { "alias": "filterIndex"; "required": false; }; "filterLabel": { "alias": "filterLabel"; "required": false; }; }, {}, never, never, true, never>;
8135
+ }
8136
+
7798
8137
  declare class ForAngularComponentsModule {
7799
8138
  static ɵfac: i0.ɵɵFactoryDeclaration<ForAngularComponentsModule, never>;
7800
- static ɵmod: i0.ɵɵNgModuleDeclaration<ForAngularComponentsModule, never, [typeof ModelRendererComponent, typeof ComponentRendererComponent, typeof CrudFieldComponent, typeof CrudFormComponent, typeof EmptyStateComponent, typeof ListComponent, typeof ListItemComponent, typeof SearchbarComponent, typeof PaginationComponent, typeof CrudFormComponent, typeof FieldsetComponent, typeof LayoutComponent, typeof FilterComponent, typeof SteppedFormComponent, typeof IconComponent, typeof CardComponent, typeof FileUploadComponent], [typeof ModelRendererComponent, typeof ComponentRendererComponent, typeof CrudFieldComponent, typeof CrudFormComponent, typeof EmptyStateComponent, typeof ListComponent, typeof ListItemComponent, typeof SearchbarComponent, typeof PaginationComponent, typeof CrudFormComponent, typeof FieldsetComponent, typeof LayoutComponent, typeof FilterComponent, typeof SteppedFormComponent, typeof IconComponent, typeof CardComponent, typeof FileUploadComponent]>;
8139
+ static ɵmod: i0.ɵɵNgModuleDeclaration<ForAngularComponentsModule, never, [typeof ModelRendererComponent, typeof ComponentRendererComponent, typeof CrudFieldComponent, typeof CrudFormComponent, typeof EmptyStateComponent, typeof ListComponent, typeof ListItemComponent, typeof SearchbarComponent, typeof PaginationComponent, typeof CrudFormComponent, typeof FieldsetComponent, typeof LayoutComponent, typeof FilterComponent, typeof SteppedFormComponent, typeof IconComponent, typeof CardComponent, typeof FileUploadComponent, typeof TableComponent], [typeof ModelRendererComponent, typeof ComponentRendererComponent, typeof CrudFieldComponent, typeof CrudFormComponent, typeof EmptyStateComponent, typeof ListComponent, typeof ListItemComponent, typeof SearchbarComponent, typeof PaginationComponent, typeof CrudFormComponent, typeof FieldsetComponent, typeof LayoutComponent, typeof FilterComponent, typeof SteppedFormComponent, typeof IconComponent, typeof CardComponent, typeof FileUploadComponent, typeof TableComponent]>;
7801
8140
  static ɵinj: i0.ɵɵInjectorDeclaration<ForAngularComponentsModule>;
7802
8141
  }
7803
8142
 
@@ -8838,7 +9177,7 @@ declare abstract class NgxPageDirective extends NgxComponentDirective implements
8838
9177
  */
8839
9178
  constructor(localeRoot?: string, hasMenu?: boolean);
8840
9179
  get pageTitle(): string;
8841
- ngOnInit(): Promise<void> | void;
9180
+ ngOnInit(): Promise<void>;
8842
9181
  /**
8843
9182
  * @description Ionic lifecycle hook called when the page is about to enter view.
8844
9183
  * @summary This lifecycle hook is triggered just before the page becomes visible to the user.
@@ -9414,6 +9753,9 @@ declare class DecafFakerRepository<T extends Model> extends LoggedClass {
9414
9753
  protected get repository(): DecafRepository<Model>;
9415
9754
  initialize(): Promise<void>;
9416
9755
  generateData<T extends Model>(values?: KeyValue, key?: string, keyType?: string): Promise<T[]>;
9756
+ protected pickRandomValue(source: string[] | KeyValue): string;
9757
+ protected getModelProperties(pk: string, pkType: string): string[];
9758
+ protected getPropValueFn(propName: string, pkName: string): FunctionLike;
9417
9759
  }
9418
9760
  declare function getFakerData<T extends Model>(limit: number | undefined, data: Record<string, FunctionLike>, model?: string): T[];
9419
9761
 
@@ -9714,5 +10056,5 @@ declare class I18nParser extends TranslateParser {
9714
10056
  */
9715
10057
  declare function provideDecafI18nConfig(config?: RootTranslateServiceConfig, resources?: I18nResourceConfigType, versionedSuffix?: boolean): AngularProvider[];
9716
10058
 
9717
- export { ActionRoles, AngularEngineKeys, BaseComponentProps, CPTKN, CardComponent, ComponentEventNames, ComponentRendererComponent, ComponentsTagNames, CrudFieldComponent, CrudFormComponent, CssClasses, DB_ADAPTER_FLAVOUR_TOKEN, DB_ADAPTER_PROVIDER_TOKEN, DecafFakerRepository, DefaultFormReactiveOptions, DefaultListEmptyOptions, DefaultModalOptions, Dynamic, DynamicModule, ElementPositions, ElementSizes, EmptyStateComponent, FieldsetComponent, FileUploadComponent, FilterComponent, ForAngularCommonModule, ForAngularComponentsModule, FormConstants, I18N_CONFIG_TOKEN, I18nLoader, I18nLoaderFactory, I18nParser, IconComponent, LOCALE_ROOT_TOKEN, LayoutComponent, LayoutGridGaps, ListComponent, ListComponentsTypes, ListItemComponent, ListItemPositions, LoggerLevels, ModalComponent, ModelRendererComponent, NgxComponentDirective, NgxEventHandler, NgxFormDirective, NgxFormFieldDirective, NgxFormService, NgxMediaService, NgxModelPageDirective, NgxPageDirective, NgxParentComponentDirective, NgxRenderingEngine, NgxSvgDirective, PaginationComponent, RouteDirections, SearchbarComponent, SelectFieldInterfaces, SteppedFormComponent, WindowColorSchemes, cleanSpaces, dataMapper, decafPageTransition, filterString, formatDate, generateRandomValue, getDbAdapterFlavour, getFakerData, getInjectablesRegistry, getLocaleContext, getLocaleContextByKey, getLocaleFromClassName, getLocaleLanguage, getLogger, getMenuIcon, getModelAndRepository, getNgxInlineModal, getNgxModalComponent, getNgxModalCrudComponent, getNgxSelectOptionsModal, getOnWindow, getOnWindowDocument, getWindow, getWindowDocument, getWindowWidth, isDarkMode, isDevelopmentMode, isNotUndefined, isValidDate, itemMapper, parseToValidDate, presentNgxInlineModal, presentNgxLightBoxModal, provideDecafDarkMode, provideDecafDbAdapter, provideDecafDynamicComponents, provideDecafI18nConfig, provideDecafI18nLoader, provideDecafPageTransition, removeFocusTrap, setOnWindow, stringToBoolean, windowEventEmitter };
9718
- export type { ActionRole, AngularDynamicOutput, AngularFieldDefinition, AngularProvider, CheckboxOption, ComponentMetadata, CrudFieldOption, DecafRepository, DecafRepositoryAdapter, ElementPosition, ElementSize, FieldUpdateMode, FlexPosition, FormParent, FormParentGroup, FormServiceControl, FormServiceControls, FunctionLike, HTML5InputType, HTMLFormTarget, I18nResourceConfig, I18nResourceConfigType, I18nToken, IBaseCustomEvent, IComponentConfig, IComponentHolder, IComponentProperties, ICrudFormEvent, ICrudFormOptions, IFieldSetItem, IFieldSetValidationEvent, IFileUploadError, IFilterQuery, IFilterQueryItem, IFormComponentProperties, IFormElement, IFormReactiveSubmitEvent, IListComponentRefreshEvent, IListEmptyOptions, IMenuItem, IModelComponentSubmitEvent, IPaginationCustomEvent, IRenderedModel, ISortObject, IWindowResizeEvent, InputOption, KeyValue, LayoutGridGap, ListItemCustomEvent, ListItemPosition, PossibleInputTypes, RadioOption, RawQuery, SelectOption, StringOrBoolean, WindowColorScheme };
10059
+ export { ActionRoles, AngularEngineKeys, BaseComponentProps, CPTKN, CardComponent, ComponentEventNames, ComponentRendererComponent, ComponentsTagNames, CrudFieldComponent, CrudFormComponent, CssClasses, DB_ADAPTER_FLAVOUR_TOKEN, DB_ADAPTER_PROVIDER_TOKEN, DecafFakerRepository, DefaultFormReactiveOptions, DefaultListEmptyOptions, DefaultModalOptions, Dynamic, DynamicModule, ElementPositions, ElementSizes, EmptyStateComponent, FieldsetComponent, FileUploadComponent, FilterComponent, ForAngularCommonModule, ForAngularComponentsModule, FormConstants, I18N_CONFIG_TOKEN, I18nLoader, I18nLoaderFactory, I18nParser, IconComponent, LOCALE_ROOT_TOKEN, LayoutComponent, LayoutGridGaps, ListComponent, ListComponentsTypes, ListItemComponent, ListItemPositions, LoggerLevels, ModalComponent, ModelRendererComponent, NgxComponentDirective, NgxEventHandler, NgxFormDirective, NgxFormFieldDirective, NgxFormService, NgxMediaService, NgxModelPageDirective, NgxPageDirective, NgxParentComponentDirective, NgxRenderingEngine, NgxSvgDirective, PaginationComponent, RouteDirections, SearchbarComponent, SelectFieldInterfaces, SteppedFormComponent, TableComponent, WindowColorSchemes, cleanSpaces, dataMapper, decafPageTransition, filterString, formatDate, generateRandomValue, getDbAdapterFlavour, getFakerData, getInjectablesRegistry, getLocaleContext, getLocaleContextByKey, getLocaleFromClassName, getLocaleLanguage, getLogger, getMenuIcon, getModelAndRepository, getNgxInlineModal, getNgxModalComponent, getNgxModalCrudComponent, getNgxSelectOptionsModal, getOnWindow, getOnWindowDocument, getWindow, getWindowDocument, getWindowWidth, isDarkMode, isDevelopmentMode, isNotUndefined, isValidDate, itemMapper, parseToValidDate, presentNgxInlineModal, presentNgxLightBoxModal, provideDecafDarkMode, provideDecafDbAdapter, provideDecafDynamicComponents, provideDecafI18nConfig, provideDecafI18nLoader, provideDecafPageTransition, removeFocusTrap, setOnWindow, stringToBoolean, windowEventEmitter };
10060
+ export type { ActionRole, AngularDynamicOutput, AngularFieldDefinition, AngularProvider, CheckboxOption, ComponentMetadata, CrudFieldOption, DecafRepository, DecafRepositoryAdapter, ElementPosition, ElementSize, FieldUpdateMode, FlexPosition, FormParent, FormParentGroup, FormServiceControl, FormServiceControls, FunctionLike, HTML5InputType, HTMLFormTarget, I18nResourceConfig, I18nResourceConfigType, I18nToken, IBaseCustomEvent, IComponentConfig, IComponentHolder, IComponentProperties, ICrudFormEvent, ICrudFormOptions, IFieldSetItem, IFieldSetValidationEvent, IFileUploadError, IFilterQuery, IFilterQueryItem, IFormComponentProperties, IFormElement, IFormReactiveSubmitEvent, IListComponentRefreshEvent, IListEmptyOptions, IMenuItem, IModelComponentSubmitEvent, IPaginationCustomEvent, IRenderedModel, ISortObject, ITabItem, IWindowResizeEvent, InputOption, KeyValue, LayoutGridGap, ListItemCustomEvent, ListItemPosition, PossibleInputTypes, RadioOption, RawQuery, SelectOption, StringOrBoolean, WindowColorScheme };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@decaf-ts/for-angular",
3
- "version": "0.0.64",
3
+ "version": "0.0.66",
4
4
  "author": "Tiago Venceslau and Contributors",
5
5
  "license": "MPL-2.0 OR AGPL-3.0",
6
6
  "repository": {