@smallpearl/ngx-helper 0.33.50 → 20.0.3
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/core/index.d.ts +3 -1
- package/entities/index.d.ts +313 -2
- package/entity-field/index.d.ts +101 -2
- package/fesm2022/smallpearl-ngx-helper-entities.mjs +18 -18
- package/fesm2022/smallpearl-ngx-helper-entities.mjs.map +1 -1
- package/fesm2022/smallpearl-ngx-helper-entity-field.mjs +5 -4
- package/fesm2022/smallpearl-ngx-helper-entity-field.mjs.map +1 -1
- package/fesm2022/smallpearl-ngx-helper-forms.mjs.map +1 -1
- package/fesm2022/smallpearl-ngx-helper-hover-dropdown.mjs +6 -6
- package/fesm2022/smallpearl-ngx-helper-hover-dropdown.mjs.map +1 -1
- package/fesm2022/smallpearl-ngx-helper-locale.mjs +6 -6
- package/fesm2022/smallpearl-ngx-helper-locale.mjs.map +1 -1
- package/fesm2022/smallpearl-ngx-helper-mat-busy-wheel.mjs +57 -31
- package/fesm2022/smallpearl-ngx-helper-mat-busy-wheel.mjs.map +1 -1
- package/fesm2022/smallpearl-ngx-helper-mat-context-menu.mjs +15 -15
- package/fesm2022/smallpearl-ngx-helper-mat-context-menu.mjs.map +1 -1
- package/fesm2022/smallpearl-ngx-helper-mat-entity-crud.mjs +346 -334
- package/fesm2022/smallpearl-ngx-helper-mat-entity-crud.mjs.map +1 -1
- package/fesm2022/smallpearl-ngx-helper-mat-entity-list.mjs +152 -146
- package/fesm2022/smallpearl-ngx-helper-mat-entity-list.mjs.map +1 -1
- package/fesm2022/smallpearl-ngx-helper-mat-file-input.mjs +5 -5
- package/fesm2022/smallpearl-ngx-helper-mat-file-input.mjs.map +1 -1
- package/fesm2022/smallpearl-ngx-helper-mat-form-error.mjs +19 -19
- package/fesm2022/smallpearl-ngx-helper-mat-form-error.mjs.map +1 -1
- package/fesm2022/smallpearl-ngx-helper-mat-select-entity.mjs +25 -26
- package/fesm2022/smallpearl-ngx-helper-mat-select-entity.mjs.map +1 -1
- package/fesm2022/smallpearl-ngx-helper-mat-select-infinite-scroll.mjs +7 -7
- package/fesm2022/smallpearl-ngx-helper-mat-select-infinite-scroll.mjs.map +1 -1
- package/fesm2022/smallpearl-ngx-helper-mat-side-menu-layout.mjs +24 -24
- package/fesm2022/smallpearl-ngx-helper-mat-side-menu-layout.mjs.map +1 -1
- package/fesm2022/smallpearl-ngx-helper-mat-tel-input.mjs +8 -9
- package/fesm2022/smallpearl-ngx-helper-mat-tel-input.mjs.map +1 -1
- package/fesm2022/smallpearl-ngx-helper-sideload.mjs.map +1 -1
- package/fesm2022/smallpearl-ngx-helper-stationary-with-line-items.mjs +35 -35
- package/fesm2022/smallpearl-ngx-helper-stationary-with-line-items.mjs.map +1 -1
- package/forms/index.d.ts +55 -1
- package/hover-dropdown/index.d.ts +44 -1
- package/index.d.ts +4 -5
- package/locale/index.d.ts +55 -5
- package/mat-busy-wheel/index.d.ts +165 -4
- package/mat-context-menu/index.d.ts +65 -1
- package/mat-entity-crud/index.d.ts +1075 -6
- package/mat-entity-list/index.d.ts +394 -3
- package/mat-file-input/index.d.ts +61 -1
- package/mat-form-error/index.d.ts +184 -6
- package/mat-select-entity/index.d.ts +194 -1
- package/mat-select-infinite-scroll/index.d.ts +45 -2
- package/mat-side-menu-layout/index.d.ts +180 -6
- package/mat-tel-input/index.d.ts +169 -2
- package/package.json +18 -13
- package/sideload/index.d.ts +20 -1
- package/stationary-with-line-items/index.d.ts +78 -1
- package/core/src/version.d.ts +0 -1
- package/entities/src/paged-loader.d.ts +0 -219
- package/entities/src/paginator.d.ts +0 -87
- package/entity-field/src/entity-field.d.ts +0 -70
- package/entity-field/src/provider.d.ts +0 -27
- package/forms/src/validation-error-handler.d.ts +0 -52
- package/hover-dropdown/src/hover-dropdown.directive.d.ts +0 -41
- package/locale/src/currency.pipe.d.ts +0 -14
- package/locale/src/date.pipe.d.ts +0 -14
- package/locale/src/format-currency.d.ts +0 -1
- package/locale/src/format-date.d.ts +0 -2
- package/locale/src/is-empty.d.ts +0 -1
- package/locale/src/providers.d.ts +0 -20
- package/mat-busy-wheel/src/busy-wheel-op.d.ts +0 -65
- package/mat-busy-wheel/src/busy-wheel.component.d.ts +0 -12
- package/mat-busy-wheel/src/busy-wheel.service.d.ts +0 -42
- package/mat-busy-wheel/src/host-busy-wheel.directive.d.ts +0 -35
- package/mat-context-menu/src/mat-context-menu.component.d.ts +0 -61
- package/mat-entity-crud/src/convert-context-input-to-http-context.d.ts +0 -11
- package/mat-entity-crud/src/default-config.d.ts +0 -9
- package/mat-entity-crud/src/form-view-host.component.d.ts +0 -41
- package/mat-entity-crud/src/mat-entity-crud-form-base.d.ts +0 -277
- package/mat-entity-crud/src/mat-entity-crud-internal-types.d.ts +0 -131
- package/mat-entity-crud/src/mat-entity-crud-item-action.d.ts +0 -68
- package/mat-entity-crud/src/mat-entity-crud-types.d.ts +0 -149
- package/mat-entity-crud/src/mat-entity-crud.component.d.ts +0 -366
- package/mat-entity-crud/src/preview-host.component.d.ts +0 -21
- package/mat-entity-crud/src/preview-pane.component.d.ts +0 -31
- package/mat-entity-crud/src/providers.d.ts +0 -3
- package/mat-entity-list/src/config.d.ts +0 -6
- package/mat-entity-list/src/mat-entity-list-types.d.ts +0 -128
- package/mat-entity-list/src/mat-entity-list.component.d.ts +0 -259
- package/mat-entity-list/src/providers.d.ts +0 -3
- package/mat-file-input/src/mat-file-input.component.d.ts +0 -58
- package/mat-form-error/src/locales/en.d.ts +0 -4
- package/mat-form-error/src/locales/hu.d.ts +0 -4
- package/mat-form-error/src/locales/index.d.ts +0 -5
- package/mat-form-error/src/locales/pt-br.d.ts +0 -4
- package/mat-form-error/src/locales/zh-hans.d.ts +0 -4
- package/mat-form-error/src/locales/zh-hant.d.ts +0 -4
- package/mat-form-error/src/ngx-error-list.component.d.ts +0 -9
- package/mat-form-error/src/ngx-mat-error-control.d.ts +0 -17
- package/mat-form-error/src/ngx-mat-error-def.directive.d.ts +0 -30
- package/mat-form-error/src/ngx-mat-errors-for-date-range-picker.directive.d.ts +0 -8
- package/mat-form-error/src/ngx-mat-errors.component.d.ts +0 -44
- package/mat-form-error/src/types.d.ts +0 -68
- package/mat-form-error/src/utils/coerce-to-observable.d.ts +0 -3
- package/mat-form-error/src/utils/distinct-until-error-changed.d.ts +0 -2
- package/mat-form-error/src/utils/find-error-for-control.d.ts +0 -9
- package/mat-form-error/src/utils/get-abstract-controls.d.ts +0 -3
- package/mat-form-error/src/utils/get-control-with-error.d.ts +0 -3
- package/mat-select-entity/src/mat-select-entity.component.d.ts +0 -190
- package/mat-select-infinite-scroll/src/mat-select-infinite-scroll.directive.d.ts +0 -19
- package/mat-select-infinite-scroll/src/mat-select-infinite-scroll.service.d.ts +0 -25
- package/mat-side-menu-layout/src/layout.service.d.ts +0 -23
- package/mat-side-menu-layout/src/mat-menu-layout.component.d.ts +0 -39
- package/mat-side-menu-layout/src/mat-menu-layout.module.d.ts +0 -18
- package/mat-side-menu-layout/src/mat-menu-list-item.component.d.ts +0 -36
- package/mat-side-menu-layout/src/mat-menu-pane.component.d.ts +0 -66
- package/mat-side-menu-layout/src/nav-item.d.ts +0 -10
- package/mat-tel-input/src/country-codes.d.ts +0 -5
- package/mat-tel-input/src/mat-telephone.component.d.ts +0 -129
- package/mat-tel-input/src/providers.d.ts +0 -38
- package/ngx-helper.d.ts +0 -2
- package/public-api.d.ts +0 -1
- package/sideload/src/sideload.d.ts +0 -18
- package/stationary-with-line-items/src/stationary-with-line-items.component.d.ts +0 -74
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, OnInit, TemplateRef } from '@angular/core';
|
|
2
|
-
import { SPEntityField, SPEntityFieldSpec } from '@smallpearl/ngx-helper/entity-field';
|
|
3
|
-
import { Observable } from 'rxjs';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FieldsRendererComponent<TEntity extends {
|
|
6
|
-
[P in IdKey]: PropertyKey;
|
|
7
|
-
}, IdKey extends string = 'id'> implements OnInit {
|
|
8
|
-
cdr: ChangeDetectorRef;
|
|
9
|
-
entity: import("@angular/core").InputSignal<TEntity>;
|
|
10
|
-
fields: import("@angular/core").InputSignal<SPEntityField<TEntity, IdKey>[]>;
|
|
11
|
-
isString: import("@angular/core").Signal<boolean>;
|
|
12
|
-
stringValue: import("@angular/core").Signal<any>;
|
|
13
|
-
constructor(cdr: ChangeDetectorRef);
|
|
14
|
-
ngOnInit(): void;
|
|
15
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FieldsRendererComponent<any, any>, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FieldsRendererComponent<any, any>, "sp-fields-renderer", never, { "entity": { "alias": "entity"; "required": true; "isSignal": true; }; "fields": { "alias": "fields"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* A component that renders a stationary with line items, such as invoice,
|
|
20
|
-
* payment receipt, bill, bill payment record, journal entry, etc. All these
|
|
21
|
-
* documents have a uniform format and this component abstracts out the
|
|
22
|
-
* information displayed in this type of document as properties that the client
|
|
23
|
-
* can provide while it takes care of the rendering.
|
|
24
|
-
*
|
|
25
|
-
* Ideally we would declare this as a wrapper class with the actual rendering
|
|
26
|
-
* to be performed by an inner replaceable component. This way the app will be
|
|
27
|
-
* able to support multiple stationary designs, which eventually can be
|
|
28
|
-
* chosen by the user. Perhaps even providing them a feature to design the
|
|
29
|
-
* stationary.
|
|
30
|
-
*
|
|
31
|
-
* This is the first towards that long path ahead.
|
|
32
|
-
*/
|
|
33
|
-
export declare class StationaryWithLineItemsComponent<TEntity extends {
|
|
34
|
-
[P in IdKey]: PropertyKey;
|
|
35
|
-
}, TEntityLineItem extends {
|
|
36
|
-
[P in IdKey]: PropertyKey;
|
|
37
|
-
}, IdKey extends string = 'id'> implements OnInit {
|
|
38
|
-
entity: import("@angular/core").InputSignal<TEntity>;
|
|
39
|
-
title: import("@angular/core").InputSignal<string>;
|
|
40
|
-
number: import("@angular/core").InputSignal<string | number | undefined>;
|
|
41
|
-
leftHeader: import("@angular/core").InputSignal<string | (string | SPEntityFieldSpec<TEntity, IdKey>)[] | undefined>;
|
|
42
|
-
_leftHeaderFields: import("@angular/core").Signal<SPEntityField<TEntity, IdKey>[]>;
|
|
43
|
-
leftHeaderTemplate: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
|
|
44
|
-
rightHeader: import("@angular/core").InputSignal<string | (string | SPEntityFieldSpec<TEntity, IdKey>)[] | undefined>;
|
|
45
|
-
_rightHeaderFields: import("@angular/core").Signal<SPEntityField<TEntity, IdKey>[]>;
|
|
46
|
-
rightHeaderTemplate: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
|
|
47
|
-
items: import("@angular/core").InputSignal<{
|
|
48
|
-
[key: string]: string;
|
|
49
|
-
}[] | undefined>;
|
|
50
|
-
leftFooter: import("@angular/core").InputSignal<string | (string | SPEntityFieldSpec<TEntity, IdKey>)[] | undefined>;
|
|
51
|
-
_leftFooterFields: import("@angular/core").Signal<SPEntityField<TEntity, IdKey>[]>;
|
|
52
|
-
leftFooterTemplate: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
|
|
53
|
-
rightFooter: import("@angular/core").InputSignal<string | (string | SPEntityFieldSpec<TEntity, IdKey>)[] | undefined>;
|
|
54
|
-
_rightFooterFields: import("@angular/core").Signal<SPEntityField<TEntity, IdKey>[]>;
|
|
55
|
-
rightFooterTemplate: import("@angular/core").InputSignal<TemplateRef<any> | undefined>;
|
|
56
|
-
itemFieldName: import("@angular/core").InputSignal<string>;
|
|
57
|
-
itemColumnFields: import("@angular/core").InputSignal<(string | SPEntityFieldSpec<TEntity, IdKey>)[] | undefined>;
|
|
58
|
-
_itemColumnFields: import("@angular/core").Signal<SPEntityField<TEntity, IdKey>[]>;
|
|
59
|
-
_items: import("@angular/core").Signal<any>;
|
|
60
|
-
ngxEntityFieldConfig: import("@smallpearl/ngx-helper/entity-field").SPEntityFieldConfig;
|
|
61
|
-
constructor();
|
|
62
|
-
ngOnInit(): void;
|
|
63
|
-
isString(value: any): value is string;
|
|
64
|
-
/**
|
|
65
|
-
* Make the method a generic as we'll be using it for both TEntity and its
|
|
66
|
-
* child TEntityLineItem objects.
|
|
67
|
-
* @param fieldSpecs
|
|
68
|
-
* @returns
|
|
69
|
-
*/
|
|
70
|
-
getSPEntityFields<T>(fieldSpecs: Array<SPEntityFieldSpec<TEntity, IdKey> | string> | string | undefined): Array<SPEntityField<TEntity, IdKey>>;
|
|
71
|
-
fieldLabel(field: SPEntityField<TEntity, IdKey>): Observable<string>;
|
|
72
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StationaryWithLineItemsComponent<any, any, any>, never>;
|
|
73
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StationaryWithLineItemsComponent<any, any, any>, "sp-stationary-with-line-items", never, { "entity": { "alias": "entity"; "required": true; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "number": { "alias": "number"; "required": false; "isSignal": true; }; "leftHeader": { "alias": "leftHeader"; "required": false; "isSignal": true; }; "leftHeaderTemplate": { "alias": "leftHeaderTemplate"; "required": false; "isSignal": true; }; "rightHeader": { "alias": "rightHeader"; "required": false; "isSignal": true; }; "rightHeaderTemplate": { "alias": "rightHeaderTemplate"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "leftFooter": { "alias": "leftFooter"; "required": false; "isSignal": true; }; "leftFooterTemplate": { "alias": "leftFooterTemplate"; "required": false; "isSignal": true; }; "rightFooter": { "alias": "rightFooter"; "required": false; "isSignal": true; }; "rightFooterTemplate": { "alias": "rightFooterTemplate"; "required": false; "isSignal": true; }; "itemFieldName": { "alias": "itemFieldName"; "required": false; "isSignal": true; }; "itemColumnFields": { "alias": "itemColumnFields"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
74
|
-
}
|