@decaf-ts/for-angular 0.0.48 → 0.0.50
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/fesm2022/decaf-ts-for-angular.mjs +173 -48
- package/fesm2022/decaf-ts-for-angular.mjs.map +1 -1
- package/index.d.ts +55 -9
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1549,6 +1549,14 @@ declare abstract class NgxComponentDirective extends DecafComponent implements O
|
|
|
1549
1549
|
* @default false
|
|
1550
1550
|
*/
|
|
1551
1551
|
refreshing: boolean;
|
|
1552
|
+
/**
|
|
1553
|
+
* @description Represents the color scheme used for application.
|
|
1554
|
+
* @summary This property determines the visual appearance of the application
|
|
1555
|
+
* based on predefined color schemes (e.g., light or dark mode).
|
|
1556
|
+
* @type {WindowColorScheme}
|
|
1557
|
+
* @default WindowColorSchemes.light
|
|
1558
|
+
*/
|
|
1559
|
+
protected colorSchema: WindowColorScheme;
|
|
1552
1560
|
/**
|
|
1553
1561
|
* @description Constructor for NgxComponentDirective.
|
|
1554
1562
|
* @summary Initializes the directive by setting up the component name, locale root,
|
|
@@ -3089,7 +3097,7 @@ declare class NgxParentComponentDirective extends NgxComponentDirective implemen
|
|
|
3089
3097
|
protected timerSubscription: Subscription;
|
|
3090
3098
|
ngOnInit(model?: Model | string): Promise<void>;
|
|
3091
3099
|
ngOnDestroy(): Promise<void> | void;
|
|
3092
|
-
protected getActivePage(page: number): UIModelMetadata | UIModelMetadata[] | FieldDefinition | undefined;
|
|
3100
|
+
protected getActivePage(page: number, firstClick?: boolean): UIModelMetadata | UIModelMetadata[] | FieldDefinition | undefined;
|
|
3093
3101
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgxParentComponentDirective, never>;
|
|
3094
3102
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgxParentComponentDirective, never, never, { "page": { "alias": "page"; "required": false; }; "pages": { "alias": "pages"; "required": false; }; "parentForm": { "alias": "parentForm"; "required": false; }; "children": { "alias": "children"; "required": false; }; "cols": { "alias": "cols"; "required": false; }; "rows": { "alias": "rows"; "required": false; }; "cardBody": { "alias": "cardBody"; "required": false; }; "cardType": { "alias": "cardType"; "required": false; }; "breakpoint": { "alias": "breakpoint"; "required": false; }; "match": { "alias": "match"; "required": false; }; }, {}, never, never, true, never>;
|
|
3095
3103
|
}
|
|
@@ -7130,6 +7138,20 @@ declare class ModalComponent extends NgxParentComponentDirective implements OnIn
|
|
|
7130
7138
|
* @default false
|
|
7131
7139
|
*/
|
|
7132
7140
|
lightBox: boolean;
|
|
7141
|
+
/**
|
|
7142
|
+
* @description Controls the transparency of the modal header.
|
|
7143
|
+
* @summary When set to true, the modal header is rendered with a transparent background.
|
|
7144
|
+
* @type {boolean}
|
|
7145
|
+
* @default false
|
|
7146
|
+
*/
|
|
7147
|
+
headerTransparent: boolean;
|
|
7148
|
+
/**
|
|
7149
|
+
* @description Controls the visibility of the modal header.
|
|
7150
|
+
* @summary When set to true, the modal header is displayed; when false, it is hidden.
|
|
7151
|
+
* @type {boolean}
|
|
7152
|
+
* @default true
|
|
7153
|
+
*/
|
|
7154
|
+
showHeader: boolean;
|
|
7133
7155
|
/**
|
|
7134
7156
|
* @description Event emitted when the modal is about to be dismissed.
|
|
7135
7157
|
* @summary Emits an OverlayEventDetail object containing details about the dismiss event.
|
|
@@ -7205,7 +7227,7 @@ declare class ModalComponent extends NgxParentComponentDirective implements OnIn
|
|
|
7205
7227
|
*/
|
|
7206
7228
|
confirm(event: IBaseCustomEvent): Promise<void>;
|
|
7207
7229
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
|
|
7208
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "ngx-decaf-modal", never, { "title": { "alias": "title"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "tag": { "alias": "tag"; "required": false; }; "options": { "alias": "options"; "required": false; }; "globals": { "alias": "globals"; "required": false; }; "inlineContent": { "alias": "inlineContent"; "required": false; }; "inlineContentPosition": { "alias": "inlineContentPosition"; "required": false; }; "fullscreen": { "alias": "fullscreen"; "required": false; }; "lightBox": { "alias": "lightBox"; "required": false; }; }, { "willDismissEvent": "willDismissEvent"; }, never, never, true, never>;
|
|
7230
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "ngx-decaf-modal", never, { "title": { "alias": "title"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; "tag": { "alias": "tag"; "required": false; }; "options": { "alias": "options"; "required": false; }; "globals": { "alias": "globals"; "required": false; }; "inlineContent": { "alias": "inlineContent"; "required": false; }; "inlineContentPosition": { "alias": "inlineContentPosition"; "required": false; }; "fullscreen": { "alias": "fullscreen"; "required": false; }; "lightBox": { "alias": "lightBox"; "required": false; }; "headerTransparent": { "alias": "headerTransparent"; "required": false; }; "showHeader": { "alias": "showHeader"; "required": false; }; }, { "willDismissEvent": "willDismissEvent"; }, never, never, true, never>;
|
|
7209
7231
|
}
|
|
7210
7232
|
/**
|
|
7211
7233
|
* @description Retrieves a modal component instance.
|
|
@@ -7227,6 +7249,26 @@ declare function getNgxModalComponent(props?: Partial<ModalComponent>, modalProp
|
|
|
7227
7249
|
* @returns {Promise<void>} - A promise that resolves when the modal is presented.
|
|
7228
7250
|
*/
|
|
7229
7251
|
declare function presentNgxLightBoxModal(inlineContent: string | SafeHtml, props?: Partial<ModalComponent>, injector?: EnvironmentInjector): Promise<void>;
|
|
7252
|
+
/**
|
|
7253
|
+
* @description Presents modal with inline content.
|
|
7254
|
+
* @summary Displays a modal with the specified content and properties.
|
|
7255
|
+
*
|
|
7256
|
+
* @param {string | SafeHtml} inlineContent - The content to display in the modal.
|
|
7257
|
+
* @param {Partial<ModalComponent>} [props={}] - Properties to initialize the modal component.
|
|
7258
|
+
* @param {EnvironmentInjector} [injector] - Optional environment injector for dependency injection.
|
|
7259
|
+
* @returns {Promise<void>} - A promise that resolves when the modal is presented.
|
|
7260
|
+
*/
|
|
7261
|
+
declare function presentNgxInlineModal(inlineContent: string | SafeHtml, props?: Partial<ModalComponent>, injector?: EnvironmentInjector): Promise<void>;
|
|
7262
|
+
/**
|
|
7263
|
+
* @description get modal with inline content instance.
|
|
7264
|
+
* @summary Get modal component instance for show inline content
|
|
7265
|
+
*
|
|
7266
|
+
* @param {string | SafeHtml} inlineContent - The content to display in the lightbox modal.
|
|
7267
|
+
* @param {Partial<ModalComponent>} [props={}] - Properties to initialize the modal component.
|
|
7268
|
+
* @param {EnvironmentInjector} [injector] - Optional environment injector for dependency injection.
|
|
7269
|
+
* @returns {Promise<void>} - A promise that resolves when the modal is presented.
|
|
7270
|
+
*/
|
|
7271
|
+
declare function getNgxInlineModal(inlineContent: string | SafeHtml, props?: Partial<ModalComponent>, injector?: EnvironmentInjector): Promise<IonModal>;
|
|
7230
7272
|
/**
|
|
7231
7273
|
* @description Retrieves a modal for selecting options.
|
|
7232
7274
|
* @summary Creates and initializes a modal component for displaying a list of selectable options.
|
|
@@ -7395,6 +7437,7 @@ declare class FileUploadComponent extends NgxFormFieldDirective implements OnIni
|
|
|
7395
7437
|
* @default false
|
|
7396
7438
|
*/
|
|
7397
7439
|
enableDirectoryMode: boolean;
|
|
7440
|
+
previewHandler?: unknown;
|
|
7398
7441
|
/**
|
|
7399
7442
|
* @description Maximum file size allowed for upload.
|
|
7400
7443
|
* @summary Specifies the maximum size (in MB) for files that can be uploaded.
|
|
@@ -7417,7 +7460,7 @@ declare class FileUploadComponent extends NgxFormFieldDirective implements OnIni
|
|
|
7417
7460
|
*
|
|
7418
7461
|
* @type {string | undefined}
|
|
7419
7462
|
*/
|
|
7420
|
-
|
|
7463
|
+
previewFile: string | undefined;
|
|
7421
7464
|
/**
|
|
7422
7465
|
* @description List of files selected for upload.
|
|
7423
7466
|
* @summary Contains the files selected by the user for upload. This array is updated
|
|
@@ -7425,7 +7468,7 @@ declare class FileUploadComponent extends NgxFormFieldDirective implements OnIni
|
|
|
7425
7468
|
*
|
|
7426
7469
|
* @type {File[]}
|
|
7427
7470
|
*/
|
|
7428
|
-
files: File[];
|
|
7471
|
+
files: File[] | KeyValue[];
|
|
7429
7472
|
/**
|
|
7430
7473
|
* @description List of errors encountered during file validation.
|
|
7431
7474
|
* @summary Stores validation errors for files that do not meet the specified criteria,
|
|
@@ -7461,6 +7504,7 @@ declare class FileUploadComponent extends NgxFormFieldDirective implements OnIni
|
|
|
7461
7504
|
* @returns {void}
|
|
7462
7505
|
*/
|
|
7463
7506
|
ngOnInit(): void;
|
|
7507
|
+
initialize(): Promise<void>;
|
|
7464
7508
|
/**
|
|
7465
7509
|
* @description Lifecycle hook that is called when a directive, pipe, or service is destroyed.
|
|
7466
7510
|
* @summary Cleans up the component by calling the parent ngOnDestroy method and clearing the file upload state.
|
|
@@ -7547,7 +7591,7 @@ declare class FileUploadComponent extends NgxFormFieldDirective implements OnIni
|
|
|
7547
7591
|
* @param {File | string} [file] - The file to be previewed. If not provided, the current preview file is used.
|
|
7548
7592
|
* @returns {Promise<void>}
|
|
7549
7593
|
*/
|
|
7550
|
-
|
|
7594
|
+
preview(file: File | string, fileExtension?: string): Promise<void | UIFunctionLike>;
|
|
7551
7595
|
/**
|
|
7552
7596
|
* @description Checks if a file is an image based on its MIME type.
|
|
7553
7597
|
* @summary Determines if the file can be accepted as an image by checking
|
|
@@ -7557,6 +7601,7 @@ declare class FileUploadComponent extends NgxFormFieldDirective implements OnIni
|
|
|
7557
7601
|
* @returns {boolean} - True if the file is an image, false otherwise.
|
|
7558
7602
|
*/
|
|
7559
7603
|
isImageFile(file: File): boolean;
|
|
7604
|
+
getFileMime(base64: string): string;
|
|
7560
7605
|
/**
|
|
7561
7606
|
* @description Removes a file from the selection.
|
|
7562
7607
|
* @summary Updates the file list to exclude the file at the specified index.
|
|
@@ -7592,7 +7637,7 @@ declare class FileUploadComponent extends NgxFormFieldDirective implements OnIni
|
|
|
7592
7637
|
*
|
|
7593
7638
|
* @returns {Promise<string[] | undefined>} - A promise that resolves to an array of data URLs, or undefined if an error occurs.
|
|
7594
7639
|
*/
|
|
7595
|
-
|
|
7640
|
+
getDataURLs(files?: File[] | File): Promise<string[] | undefined>;
|
|
7596
7641
|
/**
|
|
7597
7642
|
* @description Validates the format of a data URL.
|
|
7598
7643
|
* @summary Checks if the data URL is a non-empty string and matches the expected pattern
|
|
@@ -7619,7 +7664,7 @@ declare class FileUploadComponent extends NgxFormFieldDirective implements OnIni
|
|
|
7619
7664
|
*/
|
|
7620
7665
|
private readFile;
|
|
7621
7666
|
static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
|
|
7622
|
-
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; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; }, { "changeEvent": "changeEvent"; }, never, never, true, never>;
|
|
7667
|
+
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>;
|
|
7623
7668
|
}
|
|
7624
7669
|
|
|
7625
7670
|
declare class ForAngularComponentsModule {
|
|
@@ -8534,7 +8579,9 @@ declare class NgxFormService {
|
|
|
8534
8579
|
}
|
|
8535
8580
|
|
|
8536
8581
|
declare abstract class NgxEventHandler extends DecafEventHandler {
|
|
8582
|
+
constructor();
|
|
8537
8583
|
refresh(args?: unknown[]): Promise<void>;
|
|
8584
|
+
preview(args?: unknown[]): Promise<void>;
|
|
8538
8585
|
}
|
|
8539
8586
|
|
|
8540
8587
|
/**
|
|
@@ -8799,7 +8846,6 @@ declare abstract class NgxModelPageDirective extends NgxPageDirective {
|
|
|
8799
8846
|
* @return {Promise<IModelPageCustomEvent|void>} Promise that resolves on success or throws on error
|
|
8800
8847
|
*/
|
|
8801
8848
|
submit(event: IBaseCustomEvent, repository?: DecafRepository<Model>, redirect?: boolean): Promise<IModelPageCustomEvent | void>;
|
|
8802
|
-
create(data: Partial<Model>, repository: DecafRepository<Model>): Promise<IModelPageCustomEvent | void>;
|
|
8803
8849
|
/**
|
|
8804
8850
|
* @description Retrieves a model instance from the repository by unique identifier.
|
|
8805
8851
|
* @summary Fetches a specific model instance using the repository's read method.
|
|
@@ -9493,5 +9539,5 @@ declare class ForAngularCommonModule {
|
|
|
9493
9539
|
static ɵinj: i0.ɵɵInjectorDeclaration<ForAngularCommonModule>;
|
|
9494
9540
|
}
|
|
9495
9541
|
|
|
9496
|
-
export { ActionRoles, AngularEngineKeys, BaseComponentProps, CPTKN, CardComponent, ComponentEventNames, ComponentRendererComponent, ComponentsTagNames, CrudFieldComponent, CrudFormComponent, CssClasses, DB_ADAPTER_PROVIDER, 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, SteppedFormComponent, WindowColorSchemes, cleanSpaces, dataMapper, filterString, formatDate, generateRandomValue, getFakerData, getInjectablesRegistry, getLocaleContext, getLocaleContextByKey, getLocaleFromClassName, getLocaleLanguage, getLogger, getModelAndRepository, getNgxModalComponent, getNgxSelectOptionsModal, getOnWindow, getOnWindowDocument, getWindow, getWindowDocument, getWindowWidth, isDarkMode, isDevelopmentMode, isNotUndefined, isValidDate, itemMapper, parseToValidDate, presentNgxLightBoxModal, provideDbAdapter, provideDynamicComponents, provideI18n, provideI18nLoader, removeFocusTrap, setOnWindow, stringToBoolean, windowEventEmitter };
|
|
9542
|
+
export { ActionRoles, AngularEngineKeys, BaseComponentProps, CPTKN, CardComponent, ComponentEventNames, ComponentRendererComponent, ComponentsTagNames, CrudFieldComponent, CrudFormComponent, CssClasses, DB_ADAPTER_PROVIDER, 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, SteppedFormComponent, WindowColorSchemes, cleanSpaces, dataMapper, filterString, formatDate, generateRandomValue, getFakerData, getInjectablesRegistry, getLocaleContext, getLocaleContextByKey, getLocaleFromClassName, getLocaleLanguage, getLogger, getModelAndRepository, getNgxInlineModal, getNgxModalComponent, getNgxSelectOptionsModal, getOnWindow, getOnWindowDocument, getWindow, getWindowDocument, getWindowWidth, isDarkMode, isDevelopmentMode, isNotUndefined, isValidDate, itemMapper, parseToValidDate, presentNgxInlineModal, presentNgxLightBoxModal, provideDbAdapter, provideDynamicComponents, provideI18n, provideI18nLoader, removeFocusTrap, setOnWindow, stringToBoolean, windowEventEmitter };
|
|
9497
9543
|
export type { ActionRole, AngularDynamicOutput, AngularFieldDefinition, 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, IModelPageCustomEvent, IPaginationCustomEvent, IRenderedModel, ISortObject, IWindowResizeEvent, InputOption, KeyValue, LayoutGridGap, ListItemCustomEvent, ListItemPosition, PossibleInputTypes, RadioOption, RawQuery, SelectOption, StringOrBoolean, WindowColorScheme };
|