@decaf-ts/for-angular 0.0.53 → 0.0.54
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 +10 -2
- package/fesm2022/decaf-ts-for-angular.mjs +111 -96
- package/fesm2022/decaf-ts-for-angular.mjs.map +1 -1
- package/index.d.ts +27 -19
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -305,7 +305,7 @@ interface IBaseCustomEvent {
|
|
|
305
305
|
data?: unknown;
|
|
306
306
|
target?: HTMLElement;
|
|
307
307
|
}
|
|
308
|
-
interface
|
|
308
|
+
interface IModelComponentSubmitEvent extends IBaseCustomEvent {
|
|
309
309
|
success: boolean;
|
|
310
310
|
message?: string;
|
|
311
311
|
}
|
|
@@ -762,6 +762,25 @@ declare const CssClasses: {
|
|
|
762
762
|
* @memberOf module:lib/engine/constants
|
|
763
763
|
*/
|
|
764
764
|
declare const DefaultFormReactiveOptions: ICrudFormOptions;
|
|
765
|
+
/**
|
|
766
|
+
* @description Mapping of select field interface types used in Ionic components.
|
|
767
|
+
* @summary Provides a set of supported select interface types for Ionic select fields,
|
|
768
|
+
* mapping human-readable keys to their corresponding `SelectInterface` string values.
|
|
769
|
+
* This allows for consistent usage and reference of select interface types throughout the application.
|
|
770
|
+
* @type {Record<string, SelectInterface>}
|
|
771
|
+
* @property {string} PopOver - Represents the 'popover' select interface.
|
|
772
|
+
* @property {string} Alert - Represents the 'alert' select interface.
|
|
773
|
+
* @property {string} ActionSheet - Represents the 'action-sheet' select interface.
|
|
774
|
+
* @property {string} modal - Represents the 'modal' select interface.
|
|
775
|
+
* @const SelectFieldInterfaces
|
|
776
|
+
* @memberOf module:lib/engine/constants
|
|
777
|
+
*/
|
|
778
|
+
declare const SelectFieldInterfaces: {
|
|
779
|
+
readonly POPOVER: "popover";
|
|
780
|
+
readonly ALERT: "alert";
|
|
781
|
+
readonly ACTION_SHEET: "action-sheet";
|
|
782
|
+
readonly MODAL: "modal";
|
|
783
|
+
};
|
|
765
784
|
|
|
766
785
|
/**
|
|
767
786
|
* @module module:lib/engine/types
|
|
@@ -2960,17 +2979,6 @@ declare class CrudFieldComponent extends NgxFormFieldDirective implements OnInit
|
|
|
2960
2979
|
ngOnDestroy(): void;
|
|
2961
2980
|
toggleOptionSelection(val: string, event: CheckboxCustomEvent): void;
|
|
2962
2981
|
isOptionChecked(value: string): boolean;
|
|
2963
|
-
/**
|
|
2964
|
-
* @description Handles fieldset group update events from parent fieldsets.
|
|
2965
|
-
* @summary Processes events triggered when an existing group needs to be updated.
|
|
2966
|
-
* Updates the active form group index and refreshes the form group and form control
|
|
2967
|
-
* references to point to the group being edited.
|
|
2968
|
-
*
|
|
2969
|
-
* @param {CustomEvent} event - The fieldset update group event containing update details
|
|
2970
|
-
* @returns {void}
|
|
2971
|
-
* @memberOf CrudFieldComponent
|
|
2972
|
-
*/
|
|
2973
|
-
handleFieldsetUpdateGroupEvent(event: CustomEvent): void;
|
|
2974
2982
|
static ɵfac: i0.ɵɵFactoryDeclaration<CrudFieldComponent, never>;
|
|
2975
2983
|
static ɵcmp: i0.ɵɵComponentDeclaration<CrudFieldComponent, "ngx-decaf-crud-field", never, { "operation": { "alias": "operation"; "required": true; }; "name": { "alias": "name"; "required": true; }; "className": { "alias": "className"; "required": false; }; "path": { "alias": "path"; "required": true; }; "childOf": { "alias": "childOf"; "required": false; }; "type": { "alias": "type"; "required": true; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "label": { "alias": "label"; "required": true; }; "placeholder": { "alias": "placeholder"; "required": false; }; "format": { "alias": "format"; "required": false; }; "hidden": { "alias": "hidden"; "required": false; }; "max": { "alias": "max"; "required": false; }; "maxlength": { "alias": "maxlength"; "required": false; }; "min": { "alias": "min"; "required": false; }; "minlength": { "alias": "minlength"; "required": false; }; "pattern": { "alias": "pattern"; "required": false; }; "readonly": { "alias": "readonly"; "required": false; }; "required": { "alias": "required"; "required": false; }; "step": { "alias": "step"; "required": false; }; "equals": { "alias": "equals"; "required": false; }; "different": { "alias": "different"; "required": false; }; "lessThan": { "alias": "lessThan"; "required": false; }; "lessThanOrEqual": { "alias": "lessThanOrEqual"; "required": false; }; "greaterThan": { "alias": "greaterThan"; "required": false; }; "greaterThanOrEqual": { "alias": "greaterThanOrEqual"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "justify": { "alias": "justify"; "required": false; }; "cancelText": { "alias": "cancelText"; "required": false; }; "interface": { "alias": "interface"; "required": false; }; "options": { "alias": "options"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "spellcheck": { "alias": "spellcheck"; "required": false; }; "startEmpty": { "alias": "startEmpty"; "required": false; }; "inputmode": { "alias": "inputmode"; "required": false; }; "autocomplete": { "alias": "autocomplete"; "required": false; }; "fill": { "alias": "fill"; "required": false; }; "labelPlacement": { "alias": "labelPlacement"; "required": false; }; "updateOn": { "alias": "updateOn"; "required": false; }; "formGroup": { "alias": "formGroup"; "required": false; }; "formControl": { "alias": "formControl"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "uid": { "alias": "uid"; "required": false; }; "page": { "alias": "page"; "required": false; }; "translatable": { "alias": "translatable"; "required": false; }; }, {}, never, never, true, never>;
|
|
2976
2984
|
}
|
|
@@ -6607,7 +6615,7 @@ declare class SearchbarComponent extends NgxComponentDirective implements OnInit
|
|
|
6607
6615
|
* @default "search"
|
|
6608
6616
|
* @memberOf SearchbarComponent
|
|
6609
6617
|
*/
|
|
6610
|
-
type:
|
|
6618
|
+
type: 'number' | "text" | "search" | "email" | "password" | "tel" | "url" | undefined;
|
|
6611
6619
|
/**
|
|
6612
6620
|
* @description The value of the searchbar input.
|
|
6613
6621
|
* @summary Specifies the current value of the searchbar input.
|
|
@@ -7272,7 +7280,7 @@ declare function getNgxInlineModal(inlineContent: string | SafeHtml, props?: Par
|
|
|
7272
7280
|
* @param {EnvironmentInjector} [injector] - Optional environment injector for dependency injection.
|
|
7273
7281
|
* @returns {Promise<IonModal>} - A promise that resolves with the modal instance.
|
|
7274
7282
|
*/
|
|
7275
|
-
declare function getNgxSelectOptionsModal(options: SelectOption[], injector?: EnvironmentInjector): Promise<IonModal>;
|
|
7283
|
+
declare function getNgxSelectOptionsModal(title: string, options: SelectOption[], injector?: EnvironmentInjector): Promise<IonModal>;
|
|
7276
7284
|
|
|
7277
7285
|
declare class IconComponent implements OnInit {
|
|
7278
7286
|
/** @description Reference to the component's native DOM element.
|
|
@@ -8854,9 +8862,9 @@ declare abstract class NgxModelPageDirective extends NgxPageDirective {
|
|
|
8854
8862
|
* operation with detailed logging.
|
|
8855
8863
|
*
|
|
8856
8864
|
* @param {IBaseCustomEvent} event - The submit event containing form data
|
|
8857
|
-
* @return {Promise<
|
|
8865
|
+
* @return {Promise<IModelComponentSubmitEvent|void>} Promise that resolves on success or throws on error
|
|
8858
8866
|
*/
|
|
8859
|
-
submit(event: IBaseCustomEvent, repository?: DecafRepository<Model
|
|
8867
|
+
submit(event: IBaseCustomEvent, redirect?: boolean, repository?: DecafRepository<Model>): Promise<IModelComponentSubmitEvent>;
|
|
8860
8868
|
/**
|
|
8861
8869
|
* @description Retrieves a model instance from the repository by unique identifier.
|
|
8862
8870
|
* @summary Fetches a specific model instance using the repository's read method.
|
|
@@ -9340,7 +9348,7 @@ declare function provideDecafDynamicComponents(...components: unknown[]): Constr
|
|
|
9340
9348
|
* // Use repository for queries
|
|
9341
9349
|
* const users = await userRepo.findAll();
|
|
9342
9350
|
*/
|
|
9343
|
-
declare function getModelAndRepository(model: Model | string): {
|
|
9351
|
+
declare function getModelAndRepository(model: Model | string, clazz?: NgxComponentDirective): {
|
|
9344
9352
|
repository: DecafRepository<Model>;
|
|
9345
9353
|
model: Model;
|
|
9346
9354
|
pk: string;
|
|
@@ -9552,5 +9560,5 @@ declare class I18nParser extends TranslateParser {
|
|
|
9552
9560
|
*/
|
|
9553
9561
|
declare function provideDecafI18nConfig(config?: RootTranslateServiceConfig, resources?: I18nResourceConfigType, versionedSuffix?: boolean): AngularProvider[];
|
|
9554
9562
|
|
|
9555
|
-
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, decafPageTransition, 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, provideDecafDbAdapter, provideDecafDynamicComponents, provideDecafI18nConfig, provideDecafI18nLoader, provideDecafPageTransition, removeFocusTrap, setOnWindow, stringToBoolean, windowEventEmitter };
|
|
9556
|
-
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,
|
|
9563
|
+
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, SelectFieldInterfaces, SteppedFormComponent, WindowColorSchemes, cleanSpaces, dataMapper, decafPageTransition, 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, provideDecafDbAdapter, provideDecafDynamicComponents, provideDecafI18nConfig, provideDecafI18nLoader, provideDecafPageTransition, removeFocusTrap, setOnWindow, stringToBoolean, windowEventEmitter };
|
|
9564
|
+
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 };
|