@enigmatry/entry-components 19.0.1-preview.5 → 20.0.1-preview.1

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.
Files changed (139) hide show
  1. package/README.md +1 -0
  2. package/button/index.d.ts +54 -3
  3. package/common/index.d.ts +243 -3
  4. package/date-time-picker/index.d.ts +100 -3
  5. package/dialog/index.d.ts +197 -3
  6. package/fesm2022/enigmatry-entry-components-button.mjs +19 -30
  7. package/fesm2022/enigmatry-entry-components-button.mjs.map +1 -1
  8. package/fesm2022/enigmatry-entry-components-common.mjs +129 -133
  9. package/fesm2022/enigmatry-entry-components-common.mjs.map +1 -1
  10. package/fesm2022/enigmatry-entry-components-date-time-picker.mjs +53 -50
  11. package/fesm2022/enigmatry-entry-components-date-time-picker.mjs.map +1 -1
  12. package/fesm2022/enigmatry-entry-components-dialog.mjs +53 -78
  13. package/fesm2022/enigmatry-entry-components-dialog.mjs.map +1 -1
  14. package/fesm2022/enigmatry-entry-components-file-input.mjs +55 -51
  15. package/fesm2022/enigmatry-entry-components-file-input.mjs.map +1 -1
  16. package/fesm2022/enigmatry-entry-components-permissions.mjs +28 -23
  17. package/fesm2022/enigmatry-entry-components-permissions.mjs.map +1 -1
  18. package/fesm2022/enigmatry-entry-components-search-filter.mjs +55 -59
  19. package/fesm2022/enigmatry-entry-components-search-filter.mjs.map +1 -1
  20. package/fesm2022/enigmatry-entry-components-spinner.mjs +21 -21
  21. package/fesm2022/enigmatry-entry-components-spinner.mjs.map +1 -1
  22. package/fesm2022/enigmatry-entry-components-table.mjs +77 -86
  23. package/fesm2022/enigmatry-entry-components-table.mjs.map +1 -1
  24. package/fesm2022/enigmatry-entry-components-validation.mjs +43 -47
  25. package/fesm2022/enigmatry-entry-components-validation.mjs.map +1 -1
  26. package/fesm2022/enigmatry-entry-components.mjs +6 -6
  27. package/fesm2022/enigmatry-entry-components.mjs.map +1 -1
  28. package/file-input/index.d.ts +87 -5
  29. package/index.d.ts +37 -3
  30. package/package.json +10 -8
  31. package/permissions/index.d.ts +40 -5
  32. package/search-filter/index.d.ts +228 -3
  33. package/spinner/index.d.ts +34 -5
  34. package/table/README.md +6 -3
  35. package/table/index.d.ts +260 -4
  36. package/validation/index.d.ts +123 -3
  37. package/button/entry-button-config.d.ts +0 -30
  38. package/button/entry-button.directive.d.ts +0 -18
  39. package/button/entry-button.module.d.ts +0 -9
  40. package/button/public-api.d.ts +0 -3
  41. package/common/common.module.d.ts +0 -14
  42. package/common/constants.d.ts +0 -2
  43. package/common/date-time/entry-date-time-adapter.d.ts +0 -41
  44. package/common/date-time/entry-date-time-formats.d.ts +0 -25
  45. package/common/date-time/entry-time-adapter.d.ts +0 -9
  46. package/common/date-time/index.d.ts +0 -4
  47. package/common/date-time/native-time-adapter.d.ts +0 -13
  48. package/common/directives/auto-disable-button.directive.d.ts +0 -26
  49. package/common/directives/index.d.ts +0 -4
  50. package/common/directives/ng-control-accessor.directive.d.ts +0 -12
  51. package/common/directives/noop-control-value-accessor.d.ts +0 -10
  52. package/common/directives/scroll-to-invalid-control.directive.d.ts +0 -18
  53. package/common/event-plugins/abstract.plugin.d.ts +0 -40
  54. package/common/event-plugins/debounce.plugin.d.ts +0 -15
  55. package/common/event-plugins/index.d.ts +0 -2
  56. package/common/event-plugins/throttle.plugin.d.ts +0 -15
  57. package/common/interceptors/accept-language.interceptor.d.ts +0 -16
  58. package/common/interceptors/index.d.ts +0 -1
  59. package/common/public-api.d.ts +0 -6
  60. package/common/utils/index.d.ts +0 -1
  61. package/common/utils/provide-config.d.ts +0 -3
  62. package/date-time-picker/date-time-picker-config.model.d.ts +0 -20
  63. package/date-time-picker/date-time-picker.component.d.ts +0 -38
  64. package/date-time-picker/date-time-picker.module.d.ts +0 -17
  65. package/date-time-picker/public-api.d.ts +0 -3
  66. package/date-time-picker/time-picker.component.d.ts +0 -26
  67. package/dialog/dialogs/alert/entry-alert-dialog-data.interface.d.ts +0 -18
  68. package/dialog/dialogs/alert/entry-alert-dialog.component.d.ts +0 -13
  69. package/dialog/dialogs/confirm/entry-confirm-dialog-data.interface.d.ts +0 -8
  70. package/dialog/dialogs/confirm/entry-confirm-dialog.component.d.ts +0 -13
  71. package/dialog/dialogs/entry-dialog.component.d.ts +0 -43
  72. package/dialog/dialogs/error/entry-error-dialog-data.interface.d.ts +0 -9
  73. package/dialog/dialogs/error/entry-error-dialog.component.d.ts +0 -15
  74. package/dialog/entry-dialog-buttons-alignment.type.d.ts +0 -2
  75. package/dialog/entry-dialog-config.model.d.ts +0 -33
  76. package/dialog/entry-dialog.module.d.ts +0 -15
  77. package/dialog/entry-dialog.service.d.ts +0 -55
  78. package/dialog/public-api.d.ts +0 -11
  79. package/file-input/entry-file-input.component.d.ts +0 -74
  80. package/file-input/entry-file-input.module.d.ts +0 -12
  81. package/file-input/public-api.d.ts +0 -2
  82. package/modules/entry-components.module.d.ts +0 -28
  83. package/permissions/permission-type.d.ts +0 -3
  84. package/permissions/permission.directive.d.ts +0 -11
  85. package/permissions/permission.guard.d.ts +0 -2
  86. package/permissions/permission.module.d.ts +0 -9
  87. package/permissions/permission.pipe.d.ts +0 -11
  88. package/permissions/permission.service.d.ts +0 -4
  89. package/permissions/public-api.d.ts +0 -5
  90. package/public-api.d.ts +0 -10
  91. package/search-filter/autocomplete/autocomplete-search-filter.component.d.ts +0 -22
  92. package/search-filter/autocomplete/autocomplete-search-filter.model.d.ts +0 -19
  93. package/search-filter/control-type.d.ts +0 -7
  94. package/search-filter/date/date-search-filter.component.d.ts +0 -10
  95. package/search-filter/date/date-search-filter.model.d.ts +0 -8
  96. package/search-filter/date-time/date-time-search-filter.component.d.ts +0 -10
  97. package/search-filter/date-time/date-time-search-filter.model.d.ts +0 -8
  98. package/search-filter/entry-search-filter.component.d.ts +0 -38
  99. package/search-filter/entry-search-filter.module.d.ts +0 -22
  100. package/search-filter/public-api.d.ts +0 -11
  101. package/search-filter/search-filter-base.model.d.ts +0 -29
  102. package/search-filter/search-filter-config.model.d.ts +0 -16
  103. package/search-filter/search-filter-params.type.d.ts +0 -7
  104. package/search-filter/select/select-search-filter.component.d.ts +0 -14
  105. package/search-filter/select/select-search-filter.model.d.ts +0 -22
  106. package/search-filter/select-option.model.d.ts +0 -12
  107. package/search-filter/text/text-search-filter.component.d.ts +0 -10
  108. package/search-filter/text/text-search-filter.model.d.ts +0 -8
  109. package/spinner/entry-spinner/spinner.component.d.ts +0 -24
  110. package/spinner/public-api.d.ts +0 -2
  111. package/spinner/spinner-overlay-container.d.ts +0 -17
  112. package/spinner/spinner.module.d.ts +0 -10
  113. package/table/components/entry-cell/entry-cell.component.d.ts +0 -10
  114. package/table/components/entry-cell-context-menu/entry-cell-context-menu.component.d.ts +0 -18
  115. package/table/components/entry-cell-formatted-value/entry-cell-formatted-value.component.d.ts +0 -10
  116. package/table/components/entry-table/entry-table.component.d.ts +0 -82
  117. package/table/components/index.d.ts +0 -4
  118. package/table/entry-table.module.d.ts +0 -20
  119. package/table/interfaces/cell-template.d.ts +0 -4
  120. package/table/interfaces/column-def.d.ts +0 -20
  121. package/table/interfaces/column-sort-prop.d.ts +0 -5
  122. package/table/interfaces/column-type-parameter.d.ts +0 -9
  123. package/table/interfaces/column-type.d.ts +0 -1
  124. package/table/interfaces/context-menu-item.d.ts +0 -7
  125. package/table/interfaces/entry-table-config.d.ts +0 -33
  126. package/table/interfaces/index.d.ts +0 -12
  127. package/table/interfaces/paged-query.d.ts +0 -15
  128. package/table/interfaces/pagination.d.ts +0 -19
  129. package/table/interfaces/row-class-formatter.d.ts +0 -3
  130. package/table/interfaces/row-context-menu-formatter.d.ts +0 -4
  131. package/table/interfaces/row-selection-formatter.d.ts +0 -4
  132. package/table/public-api.d.ts +0 -3
  133. package/validation/entry-display-control-validation.directive.d.ts +0 -27
  134. package/validation/entry-form-errors.component.d.ts +0 -18
  135. package/validation/entry-validation-config.model.d.ts +0 -48
  136. package/validation/entry-validation.d.ts +0 -15
  137. package/validation/entry-validation.module.d.ts +0 -11
  138. package/validation/public-api.d.ts +0 -6
  139. package/validation/validation-problem-details.interface.d.ts +0 -9
@@ -1,5 +0,0 @@
1
- export interface ColumnSortProp {
2
- id?: string;
3
- start?: 'asc' | 'desc';
4
- disableClear?: boolean;
5
- }
@@ -1,9 +0,0 @@
1
- export interface ColumnTypeParameter {
2
- name?: string;
3
- currencyCode?: string;
4
- display?: string | boolean;
5
- digitsInfo?: string;
6
- format?: string;
7
- locale?: string;
8
- timezone?: string;
9
- }
@@ -1 +0,0 @@
1
- export declare type ColumnType = 'boolean' | 'number' | 'currency' | 'percent' | 'date' | 'link';
@@ -1,7 +0,0 @@
1
- export interface ContextMenuItem {
2
- id: string;
3
- name: string;
4
- icon?: string;
5
- disabled?: boolean;
6
- items?: ContextMenuItem[];
7
- }
@@ -1,33 +0,0 @@
1
- import { InjectionToken, Provider } from '@angular/core';
2
- export declare class EntryTableConfig {
3
- /** Show paginator, default is true */
4
- showPaginator: boolean;
5
- /** Show first and last pagination buttons, default is false */
6
- showFirstLastButtons: boolean;
7
- /** Page size, default 20 */
8
- pageSize: number;
9
- /** Page size options, default [20, 50, 100] */
10
- pageSizeOptions: number[];
11
- /** Hide page size options, default is false */
12
- hidePageSize: boolean;
13
- /** Hide pagination, default is false */
14
- noResultsText: string;
15
- /** Row focus visible, default is false */
16
- rowFocusVisible: boolean;
17
- constructor(config?: Partial<EntryTableConfig>);
18
- }
19
- /** Entry table config injection token
20
- * Defaults:
21
- * - showPaginator: true
22
- * - showFirstLastButtons: false
23
- * - pageSize: 20
24
- * - pageSizeOptions: [20, 50, 100]
25
- * - hidePageSize: false
26
- * - noResultsText: 'No results found'
27
- * - rowFocusVisible: false
28
- */
29
- export declare const ENTRY_TABLE_CONFIG: InjectionToken<EntryTableConfig>;
30
- /** Provide entry table config */
31
- export declare function provideEntryTableConfig(config: Partial<EntryTableConfig>): Provider;
32
- /** Default percentage multiplier injection token */
33
- export declare const DEFAULT_PERCENTAGE_MULTIPLIER: InjectionToken<number>;
@@ -1,12 +0,0 @@
1
- export * from './pagination';
2
- export * from './entry-table-config';
3
- export * from './paged-query';
4
- export * from './cell-template';
5
- export * from './column-def';
6
- export * from './column-sort-prop';
7
- export * from './column-type-parameter';
8
- export * from './column-type';
9
- export * from './context-menu-item';
10
- export * from './row-class-formatter';
11
- export * from './row-context-menu-formatter';
12
- export * from './row-selection-formatter';
@@ -1,15 +0,0 @@
1
- import { Params } from '@angular/router';
2
- import { OnPage, OnSort, PageEvent, SortDirection, SortEvent } from './pagination';
3
- export declare const defaultPageSize = 20;
4
- export declare const defaultPageNumber = 1;
5
- export declare class PagedQuery implements OnPage, OnSort {
6
- pageNumber: number;
7
- pageSize: number;
8
- sortBy?: string;
9
- sortDirection?: SortDirection;
10
- sortChange(sort: SortEvent): void;
11
- pageChange(page: PageEvent): void;
12
- applyRouteChanges(queryParams: Params): void;
13
- getRouteQueryParams(): Params;
14
- private getValueIfNotEmpty;
15
- }
@@ -1,19 +0,0 @@
1
- import { Sort as SortEvent } from '@angular/material/sort';
2
- import { PageEvent } from '@angular/material/paginator';
3
- export { Sort as SortEvent, SortDirection } from '@angular/material/sort';
4
- export { PageEvent } from '@angular/material/paginator';
5
- export interface PagedData<T> {
6
- items?: T[];
7
- pageSize?: number;
8
- pageNumber?: number;
9
- totalCount?: number;
10
- totalPages?: number;
11
- hasPreviousPage?: boolean;
12
- hasNextPage?: boolean;
13
- }
14
- export interface OnSort {
15
- sortChange(sort: SortEvent): void;
16
- }
17
- export interface OnPage {
18
- pageChange(page: PageEvent): void;
19
- }
@@ -1,3 +0,0 @@
1
- export interface RowClassFormatter {
2
- [className: string]: (rowData: any) => boolean;
3
- }
@@ -1,4 +0,0 @@
1
- import { ContextMenuItem } from './context-menu-item';
2
- export interface RowContextMenuFormatter {
3
- items: (rowData: any) => ContextMenuItem[];
4
- }
@@ -1,4 +0,0 @@
1
- export interface RowSelectionFormatter {
2
- disabled?: (rowData: any) => boolean;
3
- hideCheckbox?: (rowData: any) => boolean;
4
- }
@@ -1,3 +0,0 @@
1
- export * from './interfaces';
2
- export * from './components';
3
- export { EntryTableModule } from './entry-table.module';
@@ -1,27 +0,0 @@
1
- import { ElementRef, OnDestroy, OnInit } from '@angular/core';
2
- import { EntryValidationConfig } from './entry-validation-config.model';
3
- import { AbstractControl } from '@angular/forms';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * A directive that displays configured validation messages or server side validations for given form control.
7
- * The messages are separated with coma(,) and displayed as _innerHTML_ value of host component.
8
- *
9
- * @example
10
- * ```html
11
- * <div entryDisplayControlValidation [control]="myForm.controls.firstName">
12
- * </div
13
- * ```
14
- */
15
- export declare class EntryDisplayControlValidationDirective implements OnInit, OnDestroy {
16
- private readonly _config;
17
- private readonly _element;
18
- /** Form control for which the validation messages are displayed for. */
19
- control: AbstractControl;
20
- private _controlSubscription;
21
- constructor(_config: EntryValidationConfig, _element: ElementRef);
22
- ngOnInit(): void;
23
- ngOnDestroy(): void;
24
- private extractValidationMessages;
25
- static ɵfac: i0.ɵɵFactoryDeclaration<EntryDisplayControlValidationDirective, never>;
26
- static ɵdir: i0.ɵɵDirectiveDeclaration<EntryDisplayControlValidationDirective, "[entryDisplayControlValidation]", never, { "control": { "alias": "control"; "required": false; }; }, {}, never, never, false, never>;
27
- }
@@ -1,18 +0,0 @@
1
- import { UntypedFormGroup } from '@angular/forms';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * A component used to display generic (form level) server side validation messages.
5
- * The messages are displayed as a list, each message in a new row.
6
- *
7
- * @example
8
- * ```html
9
- * <entry-form-errors [form]="myForm">
10
- * </entry-form-errors>
11
- * ```
12
- */
13
- export declare class EntryFormErrorsComponent {
14
- /** A form group for which the validation errors are being displayed. */
15
- form: UntypedFormGroup;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<EntryFormErrorsComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<EntryFormErrorsComponent, "entry-form-errors", never, { "form": { "alias": "form"; "required": false; }; }, {}, never, never, false, never>;
18
- }
@@ -1,48 +0,0 @@
1
- import { Provider } from '@angular/core';
2
- import { AbstractControl } from '@angular/forms';
3
- /** Used to configure mapping between validation keys and messages */
4
- export interface IEntryValidationMessage {
5
- /** Validation key (e.g. '_required_', '_minlength_', '_email_', etc.) */
6
- name: string;
7
- /**
8
- * Validation message. Can be static string or expression returning string
9
- * (when messages need to be resolved dynamically: parametrization, localization, etc.).
10
- */
11
- message: string | ((control: AbstractControl) => string);
12
- }
13
- /**
14
- * Used to provide default configurations on module level.
15
- */
16
- export declare class EntryValidationConfig {
17
- /**
18
- * Validation key to message configuration on module level. Used to configure client side validation messages
19
- * for standard validators (_required_, _minLength_, _email_, etc.).
20
- *
21
- * **NOTE:** If using _Formly_ package to render forms, this configuration should not be used.
22
- * Instead, use `FormlyModule` to configure validation messages.
23
- *
24
- * @example
25
- * ```ts
26
- * new EntryValidationConfig() {
27
- * validationMessages: [
28
- * { name: 'required': message: 'This field is mandatory' },
29
- * { name: 'minlength', message: (control: AbstractControl) => `Minimal length is ${control.errors.minlength.requiredLength}`}
30
- * ]
31
- * }
32
- * ```
33
- */
34
- validationMessages: IEntryValidationMessage[];
35
- constructor(config?: Partial<EntryValidationConfig>);
36
- }
37
- /**
38
- * Entry validation injection token of EntryValidationConfig type containing validation default configurations.
39
- * Can be updated with custom configuration.
40
- *
41
- * Defaults:
42
- * - validationMessages: []
43
- */
44
- export declare const ENTRY_VALIDATION_CONFIG: import("@angular/core").InjectionToken<EntryValidationConfig>;
45
- /**
46
- * Can be used to provide entry validation configuration.
47
- */
48
- export declare function provideEntryValidationConfig(config: Partial<EntryValidationConfig>): Provider;
@@ -1,15 +0,0 @@
1
- import { UntypedFormGroup } from '@angular/forms';
2
- import { IValidationProblemDetails } from './validation-problem-details.interface';
3
- /** A key used to map server side validation errors on form level */
4
- declare const FORM_ERROR_KEY = "general";
5
- /** A key used to map server side validation errors on form field level */
6
- declare const FORM_FIELD_ERROR_KEY = "fromServer";
7
- /**
8
- * Applies validation errors received from server side to the form.
9
- * The errors are applied to multiple levels: form, form group, form array, and form field.
10
- *
11
- * @param error Server side validation errors response.
12
- * @param form Form to apply validation errors to.
13
- */
14
- declare const setServerSideValidationErrors: (error: IValidationProblemDetails, form: UntypedFormGroup) => void;
15
- export { FORM_ERROR_KEY, FORM_FIELD_ERROR_KEY, setServerSideValidationErrors };
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./entry-form-errors.component";
3
- import * as i2 from "./entry-display-control-validation.directive";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "@angular/forms";
6
- import * as i5 from "@angular/material/input";
7
- export declare class EntryValidationModule {
8
- static ɵfac: i0.ɵɵFactoryDeclaration<EntryValidationModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<EntryValidationModule, [typeof i1.EntryFormErrorsComponent, typeof i2.EntryDisplayControlValidationDirective], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i4.ReactiveFormsModule, typeof i5.MatInputModule], [typeof i1.EntryFormErrorsComponent, typeof i2.EntryDisplayControlValidationDirective]>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<EntryValidationModule>;
11
- }
@@ -1,6 +0,0 @@
1
- export { EntryFormErrorsComponent } from './entry-form-errors.component';
2
- export { EntryDisplayControlValidationDirective } from './entry-display-control-validation.directive';
3
- export { EntryValidationModule } from './entry-validation.module';
4
- export { IValidationProblemDetails } from './validation-problem-details.interface';
5
- export * from './entry-validation';
6
- export * from './entry-validation-config.model';
@@ -1,9 +0,0 @@
1
- /**
2
- * Defines the api used as a container for server side validation errors.
3
- */
4
- export interface IValidationProblemDetails {
5
- [key: string]: any;
6
- errors?: {
7
- [key: string]: string[];
8
- };
9
- }