@decaf-ts/for-angular 0.1.31 → 0.1.33
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/assets/i18n/ew/en.json +178 -10
- package/fesm2022/decaf-ts-for-angular.mjs +62 -20
- package/fesm2022/decaf-ts-for-angular.mjs.map +1 -1
- package/index.d.ts +18 -6
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -6026,7 +6026,7 @@ declare class ListComponent extends NgxComponentDirective implements OnInit, OnD
|
|
|
6026
6026
|
* @param {string | number} uid - The ID of the item to create.
|
|
6027
6027
|
* @returns {Promise<void>} A promise that resolves when the item is created and added to the list.
|
|
6028
6028
|
*/
|
|
6029
|
-
handleCreate(
|
|
6029
|
+
handleCreate(model: Model, uid: string | number): Promise<void>;
|
|
6030
6030
|
/**
|
|
6031
6031
|
* @description Handles the update event from the repository.
|
|
6032
6032
|
* @summary Updates the list item with the specified ID based on the new data.
|
|
@@ -6036,7 +6036,7 @@ declare class ListComponent extends NgxComponentDirective implements OnInit, OnD
|
|
|
6036
6036
|
* @private
|
|
6037
6037
|
* @memberOf ListComponent
|
|
6038
6038
|
*/
|
|
6039
|
-
handleUpdate(
|
|
6039
|
+
handleUpdate(model: Model, uid: string | number): Promise<void>;
|
|
6040
6040
|
/**
|
|
6041
6041
|
* @description Removes an item from the list by ID.
|
|
6042
6042
|
* @summary Filters out an item with the specified ID from the data array and
|
|
@@ -7860,7 +7860,7 @@ declare function getNgxModalComponent(props?: Partial<ModalComponent>, modalProp
|
|
|
7860
7860
|
* @param {EnvironmentInjector} [injector] - Optional environment injector for dependency injection.
|
|
7861
7861
|
* @returns {Promise<IonModal>} - A promise that resolves with the modal instance.
|
|
7862
7862
|
*/
|
|
7863
|
-
declare function getNgxModalCrudComponent<M extends Model>(model: Partial<M>, props?: Partial<ModalComponent>, modalProps?: Partial<ModalOptions>, injector?: EnvironmentInjector): Promise<IonModal>;
|
|
7863
|
+
declare function getNgxModalCrudComponent<M extends Model>(model: Partial<M>, props?: Partial<ModalComponent>, formProps?: Partial<CrudFormComponent>, modalProps?: Partial<ModalOptions>, injector?: EnvironmentInjector): Promise<IonModal>;
|
|
7864
7864
|
/**
|
|
7865
7865
|
* @description Presents a lightbox modal with inline content.
|
|
7866
7866
|
* @summary Displays a modal in lightbox mode with the specified content and properties.
|
|
@@ -8062,7 +8062,7 @@ declare class FileUploadComponent extends NgxFormFieldDirective implements OnIni
|
|
|
8062
8062
|
* @default false
|
|
8063
8063
|
*/
|
|
8064
8064
|
enableDirectoryMode: boolean;
|
|
8065
|
-
previewHandler?:
|
|
8065
|
+
previewHandler?: FunctionLike;
|
|
8066
8066
|
/**
|
|
8067
8067
|
* @description Maximum file size allowed for upload.
|
|
8068
8068
|
* @summary Specifies the maximum size (in MB) for files that can be uploaded.
|
|
@@ -8769,6 +8769,17 @@ declare class TableComponent extends ListComponent implements OnInit {
|
|
|
8769
8769
|
* @return {Promise<void>}
|
|
8770
8770
|
*/
|
|
8771
8771
|
handleFilterSelectClear(event: CustomEvent): Promise<void>;
|
|
8772
|
+
/**
|
|
8773
|
+
* @description Updates the matching rendered table row after an edit operation.
|
|
8774
|
+
* @summary Executes the default update flow inherited from `ListComponent` and then
|
|
8775
|
+
* finds the already-mapped row in `this.items` by `uid`. When found, it synchronizes
|
|
8776
|
+
* each displayed cell value (except the `uid` field) with the latest values from
|
|
8777
|
+
* `model`, preserving the mapped row structure used by the table.
|
|
8778
|
+
* @param {Model} model - Model instance containing updated values.
|
|
8779
|
+
* @param {string | number} uid - Unique identifier of the row to update.
|
|
8780
|
+
* @return {Promise<void>}
|
|
8781
|
+
*/
|
|
8782
|
+
handleUpdate(model: Model, uid: string | number): Promise<void>;
|
|
8772
8783
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
8773
8784
|
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "ngx-decaf-table", never, { "maxContentLength": { "alias": "maxContentLength"; "required": false; }; "preserve": { "alias": "preserve"; "required": false; }; "filterModel": { "alias": "filterModel"; "required": false; }; "filterOptions": { "alias": "filterOptions"; "required": false; }; "filterLabel": { "alias": "filterLabel"; "required": false; }; "filterOptionsMapper": { "alias": "filterOptionsMapper"; "required": false; }; "allowOperations": { "alias": "allowOperations"; "required": false; }; }, {}, never, never, true, never>;
|
|
8774
8785
|
}
|
|
@@ -10497,7 +10508,8 @@ declare function filterString(original: string | string[], value: string, contai
|
|
|
10497
10508
|
* @returns {string} The icon associated with the menu item if found, otherwise an empty string.
|
|
10498
10509
|
*/
|
|
10499
10510
|
declare function getMenuIcon(label: string, menu: IMenuItem[]): string;
|
|
10500
|
-
declare function dateFromString(value: string): Date;
|
|
10511
|
+
declare function dateFromString(value: string | Date): Date;
|
|
10512
|
+
declare function isValidBase64(value: string): boolean;
|
|
10501
10513
|
|
|
10502
10514
|
declare class DecafFakerRepository<T extends Model> extends LoggedClass {
|
|
10503
10515
|
protected model: string | Model;
|
|
@@ -10517,5 +10529,5 @@ declare class DecafFakerRepository<T extends Model> extends LoggedClass {
|
|
|
10517
10529
|
}
|
|
10518
10530
|
declare function getFakerData<T extends Model>(limit: number | undefined, data: Record<string, FunctionLike>, model?: string): T[];
|
|
10519
10531
|
|
|
10520
|
-
export { ActionRoles, AngularEngineKeys, BaseComponentProps, CPTKN, CardComponent, ComponentRendererComponent, ComponentsTagNames, CrudFieldComponent, CrudFormComponent, CssClasses, DB_ADAPTER_FLAVOUR_TOKEN, DB_ADAPTER_PROVIDER_TOKEN, DecafFakerRepository, DecafTooltipDirective, DecafTranslatePipe, DecafTruncatePipe, DefaultFormReactiveOptions, DefaultListEmptyOptions, DefaultModalOptions, Dynamic, DynamicModule, EmptyStateComponent, FieldsetComponent, FileUploadComponent, FilterComponent, ForAngularCommonModule, ForAngularComponentsModule, I18N_CONFIG_TOKEN, I18nLoader, I18nLoaderFactory, I18nParser, IconComponent, LOCALE_ROOT_TOKEN, LayoutComponent, ListComponent, ListComponentsTypes, ListItemComponent, ListItemPositions, ModalComponent, ModalConfirmComponent, ModelRendererComponent, NgxComponentDirective, NgxEventHandler, NgxFormDirective, NgxFormFieldDirective, NgxFormService, NgxMediaService, NgxModelPageDirective, NgxPageDirective, NgxParentComponentDirective, NgxRenderingEngine, NgxRouterService, NgxSvgDirective, PaginationComponent, RouteDirections, SearchbarComponent, SelectFieldInterfaces, SteppedFormComponent, TableComponent, WindowColorSchemes, cleanSpaces, dataMapper, dateFromString, 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, patternValidators, presentModalConfirm, presentNgxInlineModal, presentNgxLightBoxModal, provideDecafDarkMode, provideDecafDbAdapter, provideDecafDynamicComponents, provideDecafI18nConfig, provideDecafI18nLoader, provideDecafPageTransition, removeFocusTrap, setOnWindow, stringToBoolean, windowEventEmitter };
|
|
10532
|
+
export { ActionRoles, AngularEngineKeys, BaseComponentProps, CPTKN, CardComponent, ComponentRendererComponent, ComponentsTagNames, CrudFieldComponent, CrudFormComponent, CssClasses, DB_ADAPTER_FLAVOUR_TOKEN, DB_ADAPTER_PROVIDER_TOKEN, DecafFakerRepository, DecafTooltipDirective, DecafTranslatePipe, DecafTruncatePipe, DefaultFormReactiveOptions, DefaultListEmptyOptions, DefaultModalOptions, Dynamic, DynamicModule, EmptyStateComponent, FieldsetComponent, FileUploadComponent, FilterComponent, ForAngularCommonModule, ForAngularComponentsModule, I18N_CONFIG_TOKEN, I18nLoader, I18nLoaderFactory, I18nParser, IconComponent, LOCALE_ROOT_TOKEN, LayoutComponent, ListComponent, ListComponentsTypes, ListItemComponent, ListItemPositions, ModalComponent, ModalConfirmComponent, ModelRendererComponent, NgxComponentDirective, NgxEventHandler, NgxFormDirective, NgxFormFieldDirective, NgxFormService, NgxMediaService, NgxModelPageDirective, NgxPageDirective, NgxParentComponentDirective, NgxRenderingEngine, NgxRouterService, NgxSvgDirective, PaginationComponent, RouteDirections, SearchbarComponent, SelectFieldInterfaces, SteppedFormComponent, TableComponent, WindowColorSchemes, cleanSpaces, dataMapper, dateFromString, 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, isValidBase64, isValidDate, itemMapper, patternValidators, presentModalConfirm, presentNgxInlineModal, presentNgxLightBoxModal, provideDecafDarkMode, provideDecafDbAdapter, provideDecafDynamicComponents, provideDecafI18nConfig, provideDecafI18nLoader, provideDecafPageTransition, removeFocusTrap, setOnWindow, stringToBoolean, windowEventEmitter };
|
|
10521
10533
|
export type { ActionRole, AngularDynamicOutput, AngularFieldDefinition, AngularProvider, CheckboxOption, ComparisonValidationKey, ComponentMetadata, CrudEvent, CrudFieldOption, DecafComponentConstructor, DecafRepository, DecafRepositoryAdapter, ElementPosition, ElementSize, FieldUpdateMode, FilterCondition, FlexPosition, FormParent, FormParentGroup, FormServiceControl, FormServiceControls, FunctionLike, HTML5InputType, HTMLFormTarget, I18nResourceConfig, I18nResourceConfigType, I18nToken, IBaseCustomEvent, IComponentConfig, IComponentHolder, IComponentProperties, ICrudFormEvent, ICrudFormOptions, IFieldSetItem, IFieldSetValidationEvent, IFileUploadError, IFilterQuery, IFilterQueryItem, IFormComponentProperties, IFormElement, ILayoutModelContext, IListComponentRefreshEvent, IListEmptyOptions, IListItemCustomEvent, IMenuItem, IModelComponentSubmitEvent, IPaginationCustomEvent, IRenderedModel, IRepositoryModelProps, ISortObject, ITabItem, ITooltipConfig, IWindowResizeEvent, InputOption, KeyValue, LayoutGridGap, ListItemPosition, PossibleInputTypes, PropsMapperFn, RadioOption, RawQuery, SelectOption, StringOrBoolean, WindowColorScheme };
|