@decaf-ts/for-angular 0.1.42 → 0.1.44
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 +243 -214
- package/fesm2022/decaf-ts-for-angular.mjs.map +1 -1
- package/index.d.ts +30 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -504,6 +504,7 @@ interface ITooltipConfig {
|
|
|
504
504
|
truncate?: boolean;
|
|
505
505
|
limit?: number;
|
|
506
506
|
trail?: string;
|
|
507
|
+
position?: 'top' | 'bottom' | 'over';
|
|
507
508
|
}
|
|
508
509
|
|
|
509
510
|
declare const DB_ADAPTER_FLAVOUR_TOKEN = "DbAdapterFlavour";
|
|
@@ -586,6 +587,7 @@ declare const ActionRoles: {
|
|
|
586
587
|
readonly confirm: "confirm";
|
|
587
588
|
readonly submit: "submit";
|
|
588
589
|
readonly clear: "clear";
|
|
590
|
+
readonly close: "close";
|
|
589
591
|
readonly back: "back";
|
|
590
592
|
readonly create: OperationKeys.CREATE;
|
|
591
593
|
readonly read: OperationKeys.READ;
|
|
@@ -3122,8 +3124,29 @@ declare class CrudFieldComponent extends NgxFormFieldDirective implements OnInit
|
|
|
3122
3124
|
* @memberOf CrudFieldComponent
|
|
3123
3125
|
*/
|
|
3124
3126
|
type: PossibleInputTypes;
|
|
3127
|
+
/**
|
|
3128
|
+
* @description Secondary input type used to refine component behavior for specific field variants.
|
|
3129
|
+
* @summary Provides an optional subtype hint when the primary `type` needs additional context
|
|
3130
|
+
* for rendering or handling values.
|
|
3131
|
+
*
|
|
3132
|
+
* @type {PossibleInputTypes}
|
|
3133
|
+
* @memberOf CrudFieldComponent
|
|
3134
|
+
*/
|
|
3125
3135
|
subType: PossibleInputTypes;
|
|
3136
|
+
/**
|
|
3137
|
+
* @description Validation message(s) displayed when the field is invalid.
|
|
3138
|
+
* @summary Supports a single message or multiple messages for complex validation scenarios.
|
|
3139
|
+
*
|
|
3140
|
+
* @type {string | string[]}
|
|
3141
|
+
* @memberOf CrudFieldComponent
|
|
3142
|
+
*/
|
|
3126
3143
|
validationMessage?: string | string[];
|
|
3144
|
+
/**
|
|
3145
|
+
* @description Maximum character count before text content is truncated. `-1` disables truncation.
|
|
3146
|
+
* @type {number}
|
|
3147
|
+
* @default -1
|
|
3148
|
+
*/
|
|
3149
|
+
maxContentLength: number;
|
|
3127
3150
|
/**
|
|
3128
3151
|
* @description The initial value of the field.
|
|
3129
3152
|
* @summary Sets the initial value of the form field. This can be a string, number, or Date
|
|
@@ -3545,7 +3568,7 @@ declare class CrudFieldComponent extends NgxFormFieldDirective implements OnInit
|
|
|
3545
3568
|
toggleOptionSelection(val: string, event: CheckboxCustomEvent): void;
|
|
3546
3569
|
isOptionChecked(value: string): boolean;
|
|
3547
3570
|
static ɵfac: i0.ɵɵFactoryDeclaration<CrudFieldComponent, never>;
|
|
3548
|
-
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; }; "subType": { "alias": "subType"; "required": false; }; "validationMessage": { "alias": "validationMessage"; "required": false; }; "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; }; }, {}, never, never, true, never>;
|
|
3571
|
+
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; }; "subType": { "alias": "subType"; "required": false; }; "validationMessage": { "alias": "validationMessage"; "required": false; }; "maxContentLength": { "alias": "maxContentLength"; "required": false; }; "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; }; }, {}, never, never, true, never>;
|
|
3549
3572
|
}
|
|
3550
3573
|
|
|
3551
3574
|
/**
|
|
@@ -7859,11 +7882,12 @@ declare class ModalConfirmComponent extends ModalComponent implements OnInit {
|
|
|
7859
7882
|
};
|
|
7860
7883
|
role?: CrudOperations;
|
|
7861
7884
|
message?: string;
|
|
7885
|
+
alert: boolean;
|
|
7862
7886
|
title?: string;
|
|
7863
7887
|
ngOnInit(): Promise<void>;
|
|
7864
7888
|
handleAction(role?: 'confirm' | 'cancel'): Promise<void>;
|
|
7865
7889
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModalConfirmComponent, never>;
|
|
7866
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ModalConfirmComponent, "ngx-decaf-modal-confirm", never, { "data": { "alias": "data"; "required": false; }; "role": { "alias": "role"; "required": false; }; "message": { "alias": "message"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, {}, never, never, true, never>;
|
|
7890
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalConfirmComponent, "ngx-decaf-modal-confirm", never, { "data": { "alias": "data"; "required": false; }; "role": { "alias": "role"; "required": false; }; "message": { "alias": "message"; "required": false; }; "alert": { "alias": "alert"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, {}, never, never, true, never>;
|
|
7867
7891
|
}
|
|
7868
7892
|
/**
|
|
7869
7893
|
* @description Retrieves a modal component instance.
|
|
@@ -7924,7 +7948,9 @@ declare function getNgxInlineModal(inlineContent: string | SafeHtml, props?: Par
|
|
|
7924
7948
|
* @returns {Promise<IonModal>} - A promise that resolves with the modal instance.
|
|
7925
7949
|
*/
|
|
7926
7950
|
declare function getNgxSelectOptionsModal(title: string, options: SelectOption[], uid?: string, injector?: EnvironmentInjector): Promise<IonModal>;
|
|
7927
|
-
|
|
7951
|
+
type ModalConfirmProps = Pick<ModalConfirmComponent, 'title' | 'role' | 'data' | 'locale' | 'message' | 'inlineContent'>;
|
|
7952
|
+
declare function presentModalConfirm(props?: ModalConfirmProps, role?: keyof typeof ActionRoles, injector?: EnvironmentInjector): Promise<IonModal>;
|
|
7953
|
+
declare function presentModalAlert(props?: ModalConfirmProps, role?: keyof typeof ActionRoles, injector?: EnvironmentInjector): Promise<IonModal>;
|
|
7928
7954
|
|
|
7929
7955
|
declare class IconComponent implements OnInit, OnDestroy {
|
|
7930
7956
|
/** @description Reference to the component's native DOM element.
|
|
@@ -10564,5 +10590,5 @@ declare class DecafFakerRepository<T extends Model> extends LoggedClass {
|
|
|
10564
10590
|
}
|
|
10565
10591
|
declare function getFakerData<T extends Model>(limit: number | undefined, data: Record<string, FunctionLike>, model?: string): T[];
|
|
10566
10592
|
|
|
10567
|
-
export { ActionRoles, AngularEngineKeys, BaseComponentProps, CPTKN, CardComponent, ComponentRendererComponent, ComponentsTagNames, CrudFieldComponent, CrudFormComponent, CssClasses, DB_ADAPTER_FLAVOUR_TOKEN, DB_ADAPTER_PROVIDER_TOKEN, DecafFakerRepository, DecafTooltipDirective, DecafTranslatePipe, DecafTruncatePipe, DefaultFormButtonsOptions, 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 };
|
|
10593
|
+
export { ActionRoles, AngularEngineKeys, BaseComponentProps, CPTKN, CardComponent, ComponentRendererComponent, ComponentsTagNames, CrudFieldComponent, CrudFormComponent, CssClasses, DB_ADAPTER_FLAVOUR_TOKEN, DB_ADAPTER_PROVIDER_TOKEN, DecafFakerRepository, DecafTooltipDirective, DecafTranslatePipe, DecafTruncatePipe, DefaultFormButtonsOptions, 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, presentModalAlert, presentModalConfirm, presentNgxInlineModal, presentNgxLightBoxModal, provideDecafDarkMode, provideDecafDbAdapter, provideDecafDynamicComponents, provideDecafI18nConfig, provideDecafI18nLoader, provideDecafPageTransition, removeFocusTrap, setOnWindow, stringToBoolean, windowEventEmitter };
|
|
10568
10594
|
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, ICrudFormButtons, ICrudFormEvent, 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 };
|