@one-paragon/angular-utilities 2.2.16 → 2.3.0

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 (129) hide show
  1. package/fesm2022/one-paragon-angular-utilities.mjs +253 -255
  2. package/fesm2022/one-paragon-angular-utilities.mjs.map +1 -1
  3. package/index.d.ts +1964 -3
  4. package/package.json +7 -7
  5. package/action-state/action-state-spinner/action-state-spinner.component.d.ts +0 -12
  6. package/action-state/action-state-ui/action-state-ui.module.d.ts +0 -7
  7. package/action-state/index.d.ts +0 -4
  8. package/action-state/ngrx-ext/ngrx-ext.module.d.ts +0 -8
  9. package/action-state/ngrx.d.ts +0 -31
  10. package/http-request-state/RequestStateFactory.d.ts +0 -17
  11. package/http-request-state/RequestStateStore.d.ts +0 -101
  12. package/http-request-state/deprecated.d.ts +0 -20
  13. package/http-request-state/directives/HttpStateDirectiveBase.d.ts +0 -14
  14. package/http-request-state/directives/http-error-state-directive.d.ts +0 -10
  15. package/http-request-state/directives/http-inProgress-state-directive.d.ts +0 -10
  16. package/http-request-state/directives/http-notStarted-state-directive.d.ts +0 -10
  17. package/http-request-state/directives/http-success-state-directive.d.ts +0 -17
  18. package/http-request-state/directives/index.d.ts +0 -5
  19. package/http-request-state/directives/request-state-directive.d.ts +0 -34
  20. package/http-request-state/helpers.d.ts +0 -9
  21. package/http-request-state/http-state-module.d.ts +0 -11
  22. package/http-request-state/index.d.ts +0 -7
  23. package/http-request-state/request-state.d.ts +0 -12
  24. package/http-request-state/rxjs/getRequestorBody.d.ts +0 -3
  25. package/http-request-state/rxjs/getRequestorState.d.ts +0 -3
  26. package/http-request-state/rxjs/index.d.ts +0 -4
  27. package/http-request-state/rxjs/tapError.d.ts +0 -3
  28. package/http-request-state/rxjs/tapSuccess.d.ts +0 -3
  29. package/http-request-state/types.d.ts +0 -41
  30. package/ngrx/actionable-selector.d.ts +0 -32
  31. package/ngrx/index.d.ts +0 -1
  32. package/public-api.d.ts +0 -17
  33. package/rxjs/defaultShareReplay.d.ts +0 -2
  34. package/rxjs/index.d.ts +0 -5
  35. package/rxjs/mapError.d.ts +0 -2
  36. package/rxjs/rxjs-operators.d.ts +0 -13
  37. package/rxjs/subjectifier.d.ts +0 -10
  38. package/rxjs/subscriber.directive.d.ts +0 -14
  39. package/table-builder/classes/DefaultSettings.d.ts +0 -9
  40. package/table-builder/classes/MatTableObservableDataSource.d.ts +0 -9
  41. package/table-builder/classes/TableBuilderConfig.d.ts +0 -34
  42. package/table-builder/classes/TableBuilderDataSource.d.ts +0 -18
  43. package/table-builder/classes/TableState.d.ts +0 -82
  44. package/table-builder/classes/data-store.d.ts +0 -8
  45. package/table-builder/classes/display-col.d.ts +0 -5
  46. package/table-builder/classes/filter-info.d.ts +0 -39
  47. package/table-builder/classes/table-builder-general-settings.d.ts +0 -122
  48. package/table-builder/classes/table-builder.d.ts +0 -22
  49. package/table-builder/classes/table-store.d.ts +0 -146
  50. package/table-builder/classes/table-store.helpers.d.ts +0 -31
  51. package/table-builder/components/array-column.component.d.ts +0 -15
  52. package/table-builder/components/column-builder/column-builder.component.d.ts +0 -41
  53. package/table-builder/components/column-builder/column-helpers.d.ts +0 -38
  54. package/table-builder/components/column-header-menu/column-header-menu.component.d.ts +0 -50
  55. package/table-builder/components/date-filter/date-filter.component.d.ts +0 -37
  56. package/table-builder/components/date-time-filter/date-time-filter.component.d.ts +0 -37
  57. package/table-builder/components/filter/filter.component.d.ts +0 -48
  58. package/table-builder/components/filter/in-list/in-list-filter.component.d.ts +0 -26
  59. package/table-builder/components/gen-col-displayer/gen-col-displayer.component.d.ts +0 -17
  60. package/table-builder/components/generic-table/generic-table.component.d.ts +0 -85
  61. package/table-builder/components/generic-table/paginator.component.d.ts +0 -26
  62. package/table-builder/components/group-by-list/group-by-list.component.d.ts +0 -11
  63. package/table-builder/components/in-filter/in-filter.component.d.ts +0 -20
  64. package/table-builder/components/index.d.ts +0 -9
  65. package/table-builder/components/initialization-component/initialization.component.d.ts +0 -15
  66. package/table-builder/components/link-column.component.d.ts +0 -23
  67. package/table-builder/components/number-filter/number-filter.component.d.ts +0 -39
  68. package/table-builder/components/profiles-menu/profiles-menu.component.d.ts +0 -33
  69. package/table-builder/components/reset-menu/reset-menu.component.d.ts +0 -25
  70. package/table-builder/components/scroll-strategy.d.ts +0 -45
  71. package/table-builder/components/sort-menu/sort-menu.component-store.d.ts +0 -24
  72. package/table-builder/components/sort-menu/sort-menu.component.d.ts +0 -19
  73. package/table-builder/components/table-container/table-container.component.d.ts +0 -109
  74. package/table-builder/components/table-container/table-container.helpers/data-state.helpers.d.ts +0 -7
  75. package/table-builder/components/table-container/table-container.helpers/filter-state.helpers.d.ts +0 -19
  76. package/table-builder/components/table-container/table-container.helpers/groupBy.helpers.d.ts +0 -20
  77. package/table-builder/components/table-container/table-container.helpers/meta-data.helpers.d.ts +0 -2
  78. package/table-builder/components/table-container/table-container.helpers/sort-state.helpers.d.ts +0 -12
  79. package/table-builder/components/table-container/tableProps.d.ts +0 -10
  80. package/table-builder/components/table-container/virtual-scroll-container.d.ts +0 -40
  81. package/table-builder/components/table-container-filter/filter-list/filter-list.component.d.ts +0 -15
  82. package/table-builder/components/table-container-filter/gen-filter-displayer/gen-filter-displayer.component.d.ts +0 -12
  83. package/table-builder/components/table-container-filter/table-wrapper-filter-store.d.ts +0 -14
  84. package/table-builder/components/table-header-menu/table-header-menu.component.d.ts +0 -15
  85. package/table-builder/directives/custom-cell-directive.d.ts +0 -34
  86. package/table-builder/directives/index.d.ts +0 -5
  87. package/table-builder/directives/multi-sort.directive.d.ts +0 -10
  88. package/table-builder/directives/resize-column.directive.d.ts +0 -43
  89. package/table-builder/directives/table-wrapper.directive.d.ts +0 -8
  90. package/table-builder/directives/tb-filter.directive.d.ts +0 -116
  91. package/table-builder/enums/filterTypes.d.ts +0 -36
  92. package/table-builder/functions/boolean-filter-function.d.ts +0 -3
  93. package/table-builder/functions/date-filter-function.d.ts +0 -4
  94. package/table-builder/functions/download-data.d.ts +0 -1
  95. package/table-builder/functions/null-filter-function.d.ts +0 -2
  96. package/table-builder/functions/number-filter-function.d.ts +0 -4
  97. package/table-builder/functions/sort-data-function.d.ts +0 -6
  98. package/table-builder/functions/string-filter-function.d.ts +0 -5
  99. package/table-builder/interfaces/ColumnInfo.d.ts +0 -6
  100. package/table-builder/interfaces/dictionary.d.ts +0 -3
  101. package/table-builder/interfaces/report-def.d.ts +0 -233
  102. package/table-builder/ngrx/tableBuilderStateStore.d.ts +0 -69
  103. package/table-builder/pipes/column-total.pipe.d.ts +0 -8
  104. package/table-builder/pipes/format-filter-type.pipe.d.ts +0 -8
  105. package/table-builder/pipes/format-filter-value.pipe.d.ts +0 -10
  106. package/table-builder/pipes/key-display.d.ts +0 -9
  107. package/table-builder/services/all-values-filter-creator.service.d.ts +0 -4
  108. package/table-builder/services/export-to-csv.service.d.ts +0 -17
  109. package/table-builder/services/link-creator.service.d.ts +0 -15
  110. package/table-builder/services/table-template-service.d.ts +0 -14
  111. package/table-builder/services/transform-creator.d.ts +0 -9
  112. package/table-builder/table-builder.module.d.ts +0 -14
  113. package/utilities/array-helpers.d.ts +0 -1
  114. package/utilities/directives/auto-focus.directive.d.ts +0 -9
  115. package/utilities/directives/clickEmitterDirective.d.ts +0 -7
  116. package/utilities/directives/clickSubject.d.ts +0 -9
  117. package/utilities/directives/conditional-classes.directive.d.ts +0 -12
  118. package/utilities/directives/dialog-service.d.ts +0 -10
  119. package/utilities/directives/dialog.d.ts +0 -45
  120. package/utilities/directives/mat-toggle-group-directive.d.ts +0 -21
  121. package/utilities/directives/prevent-enter.directive.d.ts +0 -6
  122. package/utilities/directives/stop-propagation.directive.d.ts +0 -7
  123. package/utilities/directives/styler.d.ts +0 -16
  124. package/utilities/directives/trim-whitespace.directive.d.ts +0 -7
  125. package/utilities/index.d.ts +0 -15
  126. package/utilities/module.d.ts +0 -19
  127. package/utilities/pipes/function.pipe.d.ts +0 -11
  128. package/utilities/pipes/phone.pipe.d.ts +0 -8
  129. package/utilities/pipes/space-case.pipes.d.ts +0 -17
@@ -1,233 +0,0 @@
1
- import { Dictionary } from './dictionary';
2
- import { PipeTransform, Predicate, TemplateRef } from '@angular/core';
3
- import { TableBuilderExport } from '../classes/TableBuilderConfig';
4
- import { QueryParamsHandling } from '@angular/router';
5
- import { StylerStyle } from '../../utilities/directives/styler';
6
- export declare enum FieldType {
7
- Unknown = 0,
8
- Date = 1,
9
- /**
10
- * @deprecated If `additional.link` is set the column will be treated as a link.
11
- */
12
- Link = 2,
13
- ImageUrl = 3,
14
- Currency = 4,
15
- Array = 5,
16
- Hidden = 6,
17
- Number = 7,
18
- String = 8,
19
- Boolean = 9,
20
- PhoneNumber = 10,
21
- /**
22
- * @deprecated For mapped properties use proper type (for sorting and filtering) with `map`.
23
- * For unmapped properties use `FieldType.NotMapped` with map.
24
- */
25
- Expression = 11,
26
- Enum = 12,
27
- DateTime = 13,
28
- NotMapped = 14
29
- }
30
- export declare enum SortDirection {
31
- asc = "asc",
32
- desc = "desc"
33
- }
34
- export declare enum Target {
35
- Blank = "_blank",
36
- Self = "_self",
37
- Parent = "_parent",
38
- Top = "_top"
39
- }
40
- interface BaseMeta<T = any> {
41
- displayName?: string;
42
- order?: number;
43
- preSort?: SortDef;
44
- sortLogic?: {
45
- /**
46
- * defaults to last
47
- */
48
- nulls?: 'first' | 'last';
49
- sortBy?: ((t: T) => any) | 'use map';
50
- };
51
- noSort?: boolean;
52
- width?: string;
53
- noExport?: boolean;
54
- filterLogic?: {
55
- filterBy?: ((t: T) => any) | 'use map';
56
- /**
57
- * defaults to the MetaData's Field type
58
- */
59
- filterType?: FieldType;
60
- };
61
- noFilter?: boolean;
62
- customCell?: boolean;
63
- /**
64
- * @deprecated Use `map`
65
- */
66
- transform?: ((o: T, ...args: any[]) => any) | ((o: string, ...args: any[]) => any) | PipeTransform;
67
- click?: (element: T, key?: string, event?: MouseEvent) => void;
68
- template?: TemplateRef<any>;
69
- classes?: Dictionary<Predicate<T> | true>;
70
- toolTip?: string | ((t: T) => string);
71
- useIcon?: boolean;
72
- map?: (t: T) => any;
73
- }
74
- type Path<T, U = never, P = never> = (T extends P ? never : T extends object ? {
75
- [K in keyof T]: K extends string | number ? `${K}` | (T[K] extends (Array<any> | undefined) ? `${K}.${keyof Array<any> & (string | number)}` : `${K}.${Path<T[K], T[K], P | U>}`) : never;
76
- }[keyof T] : never);
77
- export interface BaseMappedMetaData<T = any, AdditionalFields extends string[] = []> extends BaseMeta<T> {
78
- key: (Path<T> | AdditionalFields[number]) & string;
79
- /**
80
- * if used with map, `mapItem` will only be used where the row is not available, ex. group header
81
- */
82
- mapItem?: (i: any) => any;
83
- }
84
- export interface MappedMetaData<T = any, AdditionalFields extends string[] = []> extends BaseMappedMetaData<T, AdditionalFields> {
85
- fieldType: FieldType.String | FieldType.PhoneNumber | FieldType.ImageUrl | FieldType.Link | FieldType.Hidden | FieldType.Unknown;
86
- additional?: Additional<T>;
87
- mapItem?: (i: string) => any;
88
- }
89
- export interface MappedNumberMetaData<T = any, AdditionalFields extends string[] = []> extends BaseMappedMetaData<T, AdditionalFields> {
90
- fieldType: FieldType.Number | FieldType.Currency;
91
- mapItem?: (i: number) => any;
92
- additional?: NumberAdditional<T>;
93
- }
94
- export interface MappedEnumMetaData<T = any, AdditionalFields extends string[] = []> extends BaseMappedMetaData<T, AdditionalFields> {
95
- fieldType: FieldType.Enum;
96
- mapItem?: (i: number) => any;
97
- additional?: EnumAdditional<T>;
98
- }
99
- export interface MappedDateMetaData<T = any, AdditionalFields extends string[] = []> extends BaseMappedMetaData<T, AdditionalFields> {
100
- fieldType: FieldType.Date | FieldType.DateTime;
101
- mapItem?: (i: Date) => any;
102
- additional?: Additional<T, Date>;
103
- }
104
- export interface MappedBooleanMetaData<T = any, AdditionalFields extends string[] = []> extends BaseMappedMetaData<T, AdditionalFields> {
105
- fieldType: FieldType.Boolean;
106
- mapItem?: (i: boolean) => any;
107
- additional?: BooleanAdditional<T>;
108
- }
109
- export interface MappedArrayMetaData<T = any, AdditionalFields extends string[] = []> extends BaseMappedMetaData<T, AdditionalFields> {
110
- fieldType: FieldType.Array;
111
- mapItem?: (i: string) => any;
112
- additional?: ArrayAdditional<T>;
113
- }
114
- export type MetaData<T = any, AdditionalFields extends string[] = []> = MappedMetaData<T, AdditionalFields> | NotMappedMetaData<T> | MappedNumberMetaData<T, AdditionalFields> | MappedEnumMetaData<T, AdditionalFields> | MappedBooleanMetaData<T, AdditionalFields> | MappedDateMetaData<T, AdditionalFields> | MappedArrayMetaData<T, AdditionalFields>;
115
- export interface NotMappedMetaData<T = any> extends BaseMeta<T> {
116
- key: string;
117
- fieldType: FieldType.NotMapped | FieldType.Expression;
118
- additional?: Additional<T>;
119
- }
120
- export interface ReportDef<DataType = any> {
121
- data: DataType[];
122
- metaData: MetaData[];
123
- totalRecords?: number;
124
- count: number;
125
- }
126
- export interface SortDef {
127
- direction: SortDirection;
128
- precedence?: number;
129
- }
130
- export interface FilterOptions<T = string> {
131
- filterableValues: T[] | 'all values';
132
- }
133
- export interface DateTimeOptions {
134
- format?: string;
135
- includeSeconds?: boolean;
136
- includeMilliseconds: boolean;
137
- }
138
- type interpolatedRoute = string;
139
- interface BaseAdditional<T = any> {
140
- link?: {
141
- base?: string;
142
- urlKey?: string;
143
- target?: Target;
144
- useRouterLink?: boolean;
145
- /**
146
- * If you want to use a route with interpolated params, you can use this. Wrap the property name in curly braces.
147
- * For example, if interpolatedRoute = /users/{id}/edit, {id} will be replaced with the value of the element's id property.
148
- */
149
- interpolatedRoute?: interpolatedRoute | ((t: T) => string);
150
- routerLinkOptions?: {
151
- queryParams?: [string, interpolatedRoute | ((t: T) => string)][];
152
- fragment?: string;
153
- preserveFragment?: boolean;
154
- queryParamsHandling?: QueryParamsHandling;
155
- };
156
- };
157
- export?: MetaDataExport<T>;
158
- dateFormat?: string;
159
- dateTimeOptions?: DateTimeOptions;
160
- styles?: StylerStyle<T>;
161
- columnPartStyles?: {
162
- header?: Dictionary<string>;
163
- body?: StylerStyle<T>;
164
- innerBody?: StylerStyle<T>;
165
- footer?: Dictionary<string>;
166
- };
167
- columnPartClasses?: {
168
- header?: Dictionary<Predicate<T> | true>;
169
- footer?: Dictionary<Predicate<T> | true>;
170
- };
171
- footer?: {
172
- type: any;
173
- };
174
- }
175
- export interface Additional<T = any, V = string> extends BaseAdditional<T> {
176
- filterOptions?: FilterOptions<V>;
177
- footer?: {
178
- type: never;
179
- };
180
- }
181
- interface NumberAdditional<T = any> extends BaseAdditional<T> {
182
- filterOptions?: FilterOptions<number>;
183
- footer?: {
184
- type: 'sum';
185
- };
186
- }
187
- interface EnumAdditional<T = any> extends BaseAdditional<T> {
188
- filterOptions?: FilterOptions<number>;
189
- enumMap?: {
190
- [key: number]: string;
191
- };
192
- footer?: {
193
- type: never;
194
- };
195
- }
196
- interface BooleanAdditional<T = any> extends BaseAdditional<T> {
197
- filterOptions?: FilterOptions<never>;
198
- footer?: {
199
- type: never;
200
- };
201
- boolean?: {
202
- showForFalse?: true | {
203
- icon: string;
204
- };
205
- forTrue?: {
206
- icon: string;
207
- };
208
- };
209
- }
210
- export declare enum ArrayStyle {
211
- CommaDelimited = 0,
212
- NewLine = 1
213
- }
214
- export interface ArrayAdditional<T = any> extends Additional<T> {
215
- limit?: number;
216
- arrayStyle?: ArrayStyle;
217
- }
218
- export interface MetaDataExport<T> extends TableBuilderExport {
219
- /**
220
- * This will supersede all other mappings when exporting.
221
- */
222
- mapForExport?: (t: T) => string;
223
- /**
224
- * used with `mapLink` = 'add link'
225
- */
226
- linkColumnName?: string;
227
- }
228
- export declare function metaDataArrToDict<T = MetaData>(arr: MetaData[], transform?: (m: MetaData) => T): Dictionary<T>;
229
- export interface CustomCellMeta extends Pick<MetaData, 'key' | 'displayName' | 'preSort' | 'fieldType' | 'order' | 'width'> {
230
- customCell: true;
231
- noExport?: boolean;
232
- }
233
- export {};
@@ -1,69 +0,0 @@
1
- import { ComponentStore } from "@ngrx/component-store";
2
- import { Signal } from "@angular/core";
3
- import { Dictionary } from "../interfaces/dictionary";
4
- import { PersistedTableState } from "../classes/TableState";
5
- import * as i0 from "@angular/core";
6
- export declare class TableBuilderStateStore extends ComponentStore<GlobalStorageState> {
7
- constructor();
8
- $selectLocalTableProfile: (profileKey: string) => Signal<Profile | undefined>;
9
- $selectLocalTableStateForView: (tableId: string) => Signal<PersistedTableState | null>;
10
- $selectLocalProfileCurrentKey: (key: string) => Signal<string | undefined>;
11
- $selectLocalProfileDefaultKey: (key: string) => Signal<string | undefined>;
12
- $selectLocalProfileKeys: (tableId: string) => Signal<string[]>;
13
- saveTableSettingsToLocalAndStorage: (tableId: string, stateName: string, tableState: PersistedTableState, asDefault?: boolean) => void;
14
- saveTableStateToLocal: (observableOrValue: {
15
- tableId: string;
16
- tableState: PersistedTableState;
17
- stateName?: string;
18
- asDefault?: boolean;
19
- } | import("rxjs").Observable<{
20
- tableId: string;
21
- tableState: PersistedTableState;
22
- stateName?: string;
23
- asDefault?: boolean;
24
- }>) => import("rxjs").Subscription;
25
- saveTableStateToStorage: (tableId: string, stateName: string, tableState: PersistedTableState, asDefault?: boolean) => void;
26
- addNewStateToLocalAndStorage: (tableId: string, newStateName: string, tableState: PersistedTableState, asDefault?: boolean) => void;
27
- setLocalCurrentState: (observableOrValue: {
28
- tableId: string;
29
- currentStateKey: string;
30
- } | import("rxjs").Observable<{
31
- tableId: string;
32
- currentStateKey: string;
33
- }>) => import("rxjs").Subscription;
34
- setDefaultInLocalAndStorage: (tableId: string, newDefault: string) => void;
35
- setDefaultInLocal: (observableOrValue: {
36
- key: string;
37
- default: string;
38
- } | import("rxjs").Observable<{
39
- key: string;
40
- default: string;
41
- }>) => import("rxjs").Subscription;
42
- unsetDefaultFromLocalAndStorage: (tableId: string) => void;
43
- unsetDefaultFromLocal: (tableId: string) => void;
44
- unsetDefaultFromStorage: (tableId: string) => void;
45
- setDefaultInStorage: (tableId: string, stateName: string) => void;
46
- deleteLocalProfilesState: (observableOrValue: {
47
- key: string;
48
- stateKey: string;
49
- } | import("rxjs").Observable<{
50
- key: string;
51
- stateKey: string;
52
- }>) => import("rxjs").Subscription;
53
- deleteProfileFromLocalAndStorage: (key: string, stateKey: string) => void;
54
- static ɵfac: i0.ɵɵFactoryDeclaration<TableBuilderStateStore, never>;
55
- static ɵprov: i0.ɵɵInjectableDeclaration<TableBuilderStateStore>;
56
- }
57
- interface PersistedProfile {
58
- states: Dictionary<PersistedTableState>;
59
- default?: string;
60
- }
61
- export interface Profile extends PersistedProfile {
62
- current?: string;
63
- localSavedState?: PersistedTableState;
64
- }
65
- export interface GlobalStorageState {
66
- localProfiles: Dictionary<Profile>;
67
- }
68
- export declare const defaultStorageState: GlobalStorageState;
69
- export {};
@@ -1,8 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { MetaData } from '../interfaces/report-def';
3
- import * as i0 from "@angular/core";
4
- export declare class ColumnTotalPipe implements PipeTransform {
5
- transform(data: any[], metaData: MetaData): number;
6
- static ɵfac: i0.ɵɵFactoryDeclaration<ColumnTotalPipe, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<ColumnTotalPipe, "columnTotal", true>;
8
- }
@@ -1,8 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { FilterType } from '../enums/filterTypes';
3
- import * as i0 from "@angular/core";
4
- export declare class FormatFilterTypePipe implements PipeTransform {
5
- transform(filterType: FilterType, value: any): "Equals" | "Does Not Equal" | "Greater Than" | "Less Than" | "Between" | "Contains" | "Does Not Contain" | "Start With" | "Ends With" | "Is on" | "Is Not On" | "On or After" | "On or Before" | "Is At" | "Is Not At" | "At or After" | "At or Before" | "Is" | "Is Blank" | "Or" | "And" | "In" | "Custom" | "Is Not Blank";
6
- static ɵfac: i0.ɵɵFactoryDeclaration<FormatFilterTypePipe, never>;
7
- static ɵpipe: i0.ɵɵPipeDeclaration<FormatFilterTypePipe, "formatFilterType", true>;
8
- }
@@ -1,10 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { TableStore } from '../classes/table-store';
3
- import { FilterType } from '../enums/filterTypes';
4
- import * as i0 from "@angular/core";
5
- export declare class FormatFilterValuePipe implements PipeTransform {
6
- tableState: TableStore;
7
- transform(value: any, key: string, filterType: FilterType): import("@angular/core").Signal<string>;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<FormatFilterValuePipe, never>;
9
- static ɵpipe: i0.ɵɵPipeDeclaration<FormatFilterValuePipe, "formatFilterValue", true>;
10
- }
@@ -1,9 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { TableStore } from '../classes/table-store';
3
- import * as i0 from "@angular/core";
4
- export declare class KeyDisplayPipe implements PipeTransform {
5
- tableState: TableStore;
6
- transform: (key: string) => import("@angular/core").Signal<string>;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<KeyDisplayPipe, never>;
8
- static ɵpipe: i0.ɵɵPipeDeclaration<KeyDisplayPipe, "keyDisplay", true>;
9
- }
@@ -1,4 +0,0 @@
1
- import { Dictionary } from "@ngrx/entity";
2
- import { MetaData } from "../interfaces/report-def";
3
- import { TableBuilderConfig } from "../classes/TableBuilderConfig";
4
- export declare function buildInAllValuesFilter(config: TableBuilderConfig, previousMeta: MetaData[], currentMeta: MetaData[], data: any[], metaTimestamp: number, dataTimestamp: number, currentAllFilters: Dictionary<any[]>): {};
@@ -1,17 +0,0 @@
1
- import { MetaData } from '../interfaces/report-def';
2
- import * as i0 from "@angular/core";
3
- export declare class ExportToCsvService<T> {
4
- private state;
5
- private config;
6
- private datePipe;
7
- private $exportSettings;
8
- exportToCsv: (data: T[]) => void;
9
- private getExtraLinkCols;
10
- private csvData;
11
- metaToField: (meta: MetaData<T>, row: T) => any;
12
- private stringByType;
13
- cleanValForCsv(val: any): any;
14
- private transformDate;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<ExportToCsvService<any>, never>;
16
- static ɵprov: i0.ɵɵInjectableDeclaration<ExportToCsvService<any>>;
17
- }
@@ -1,15 +0,0 @@
1
- import { MetaData } from "../interfaces/report-def";
2
- import { Dictionary } from "@ngrx/entity";
3
- import { QueryParamsHandling } from "@angular/router";
4
- export declare function createLinkCreatorDict<T>(metaDatas: MetaData<T>[]): Dictionary<LinkInfo>;
5
- export interface LinkInfo {
6
- link: (element: any) => string;
7
- target: string;
8
- useRouterLink: boolean;
9
- routerLinkOptions?: {
10
- queryParams: (element: any) => any;
11
- fragment?: string;
12
- preserveFragment?: boolean;
13
- queryParamsHandling?: QueryParamsHandling;
14
- };
15
- }
@@ -1,14 +0,0 @@
1
- import { EnvironmentInjector } from "@angular/core";
2
- import { TemplateRef } from "@angular/core";
3
- import { MetaData } from "../interfaces/report-def";
4
- import { InitializationComponent } from "../components/initialization-component/initialization.component";
5
- import * as i0 from "@angular/core";
6
- export declare class TableTemplateService {
7
- environmentInjector: EnvironmentInjector;
8
- tableConfig: import("../classes/TableBuilderConfig").TableBuilderConfig;
9
- initConfig: import("@angular/core").ComponentRef<InitializationComponent>;
10
- initializationComponentInstance: InitializationComponent;
11
- getTemplate(metaData: MetaData): TemplateRef<any>;
12
- static ɵfac: i0.ɵɵFactoryDeclaration<TableTemplateService, never>;
13
- static ɵprov: i0.ɵɵInjectableDeclaration<TableTemplateService>;
14
- }
@@ -1,9 +0,0 @@
1
- import { PipeTransform } from '@angular/core';
2
- import { MetaData } from '../interfaces/report-def';
3
- import { TableBuilderConfig } from '../classes/TableBuilderConfig';
4
- export declare function isPipe(o: any): o is PipeTransform;
5
- export declare function createTransformer(metaData: MetaData<any, any>, config: TableBuilderConfig, noIcons?: boolean, forItem?: boolean): ((value: any, ...args: any[]) => any);
6
- export declare function createItemTransformer<T = any, AdditionalFields extends string[] = []>(metaData: MetaData<T, AdditionalFields>, config: TableBuilderConfig, noIcons?: boolean, mutate?: boolean): (t: T) => void;
7
- export declare function createItemTransformers<T = any, AdditionalFields extends string[] = []>(metaDatas: MetaData<T, AdditionalFields>[], config: TableBuilderConfig, noIcons?: boolean, mutate?: boolean): (t: T) => T;
8
- export declare function dateFormatter(date: string | Date | number, format: string): string | undefined;
9
- export declare function currencyFormatter(amt: number): string;
@@ -1,14 +0,0 @@
1
- import { ModuleWithProviders } from '@angular/core';
2
- import { TableBuilderConfig } from './classes/TableBuilderConfig';
3
- import * as i0 from "@angular/core";
4
- import * as i1 from "./components/table-container/table-container.component";
5
- import * as i2 from "./directives/custom-cell-directive";
6
- import * as i3 from "./directives/tb-filter.directive";
7
- import * as i4 from "./directives/table-wrapper.directive";
8
- import * as i5 from "../utilities/module";
9
- export declare class TableBuilderModule {
10
- static forRoot(config: TableBuilderConfig): ModuleWithProviders<TableBuilderModule>;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<TableBuilderModule, never>;
12
- static ɵmod: i0.ɵɵNgModuleDeclaration<TableBuilderModule, never, [typeof i1.TableContainerComponent, typeof i2.CustomCellDirective, typeof i3.TableFilterDirective, typeof i3.TableFilterStringContainsDirective, typeof i4.TableWrapperDirective], [typeof i1.TableContainerComponent, typeof i2.CustomCellDirective, typeof i3.TableFilterStringContainsDirective, typeof i4.TableWrapperDirective, typeof i5.UtilitiesModule]>;
13
- static ɵinj: i0.ɵɵInjectorDeclaration<TableBuilderModule>;
14
- }
@@ -1 +0,0 @@
1
- export declare const replaceInArrayWithClone: <T = any>(arr: T[], findMeth: (t: T) => boolean, actionOnClone?: (t: T) => any) => T[];
@@ -1,9 +0,0 @@
1
- import { AfterViewInit } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class AutoFocusDirective implements AfterViewInit {
4
- private elementRef;
5
- autoFocus: boolean;
6
- ngAfterViewInit(): void;
7
- static ɵfac: i0.ɵɵFactoryDeclaration<AutoFocusDirective, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<AutoFocusDirective, "[autoFocus]", never, { "autoFocus": { "alias": "autoFocus"; "required": false; }; }, {}, never, never, true, never>;
9
- }
@@ -1,7 +0,0 @@
1
- import { Subject } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- export declare class ClickEmitterDirective extends Subject<boolean> {
4
- constructor();
5
- static ɵfac: i0.ɵɵFactoryDeclaration<ClickEmitterDirective, never>;
6
- static ɵdir: i0.ɵɵDirectiveDeclaration<ClickEmitterDirective, "[clickEmitter]", ["clickEmitter"], {}, {}, never, never, true, never>;
7
- }
@@ -1,9 +0,0 @@
1
- import { Subject } from 'rxjs';
2
- import * as i0 from "@angular/core";
3
- export declare class ClickSubjectDirective<T = boolean> extends Subject<T> {
4
- constructor();
5
- _val: T;
6
- set clickSubject(val: T);
7
- static ɵfac: i0.ɵɵFactoryDeclaration<ClickSubjectDirective<any>, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<ClickSubjectDirective<any>, "[clickSubject]", ["clickSubject"], { "clickSubject": { "alias": "clickSubject"; "required": false; }; }, {}, never, never, true, never>;
9
- }
@@ -1,12 +0,0 @@
1
- import { Dictionary, Predicate } from '@ngrx/entity';
2
- import * as i0 from "@angular/core";
3
- export declare class ConditionalClassesDirective {
4
- #private;
5
- private el;
6
- private renderer;
7
- $element: import("@angular/core").InputSignal<any>;
8
- $classes: import("@angular/core").InputSignal<Dictionary<true | Predicate<any>> | undefined>;
9
- classesApplied: string[];
10
- static ɵfac: i0.ɵɵFactoryDeclaration<ConditionalClassesDirective, never>;
11
- static ɵdir: i0.ɵɵDirectiveDeclaration<ConditionalClassesDirective, "[conditionalClasses]", never, { "$element": { "alias": "element"; "required": true; "isSignal": true; }; "$classes": { "alias": "conditionalClasses"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
12
- }
@@ -1,10 +0,0 @@
1
- import { MatDialogRef } from '@angular/material/dialog';
2
- import * as i0 from "@angular/core";
3
- export declare class DialogService {
4
- allOpenOpDialogs: MatDialogRef<any>[];
5
- addDialogRef(ref: MatDialogRef<any>): void;
6
- removeDialogRef(ref: MatDialogRef<any>): void;
7
- closeAllOpDialogs(): void;
8
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
9
- static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
10
- }
@@ -1,45 +0,0 @@
1
- import { TemplateRef, EventEmitter, Injector, Signal } from '@angular/core';
2
- import { MatDialogRef, MatDialogConfig } from '@angular/material/dialog';
3
- import { Observable, Subject } from 'rxjs';
4
- import * as i0 from "@angular/core";
5
- interface DialogViewContext<T> {
6
- $implicit: T;
7
- opDialog: T;
8
- close: () => void;
9
- }
10
- export declare class DialogWrapper<T = any> {
11
- private vcr;
12
- viewEmbedded: boolean;
13
- viewContext: DialogViewContext<T>;
14
- set template(tmpl: TemplateRef<DialogViewContext<T>>);
15
- set close(closeMethod: () => void);
16
- set data(value: T);
17
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogWrapper<any>, never>;
18
- static ɵcmp: i0.ɵɵComponentDeclaration<DialogWrapper<any>, "dialog-wrapper", never, {}, {}, never, never, true, never>;
19
- }
20
- export declare class DialogDirective<T> {
21
- private templateRef;
22
- private dialog;
23
- private dialogConfig;
24
- private service;
25
- opDialogClosed: EventEmitter<boolean>;
26
- _dialogConfig: MatDialogConfig<T>;
27
- opDialogAddDialogClass: boolean;
28
- set opDialogConfig(config: MatDialogConfig<T>);
29
- get opDialogConfig(): MatDialogConfig<T>;
30
- injector: Injector;
31
- subscriber: import("../../rxjs").Subscriber;
32
- set setControl(i: Observable<T> | Signal<T>);
33
- nativeElement?: HTMLElement;
34
- dialogRef?: MatDialogRef<any, boolean>;
35
- componentWrapper?: DialogWrapper<T>;
36
- _data: Subject<Observable<T>>;
37
- close(): void;
38
- initDialog(): void;
39
- setDataAndState: (data: T) => void;
40
- setDialogState(open: boolean): void;
41
- static ngTemplateContextGuard<T>(dir: DialogDirective<T>, ctx: any): ctx is DialogViewContext<Exclude<T, false | 0 | '' | null | undefined>>;
42
- static ɵfac: i0.ɵɵFactoryDeclaration<DialogDirective<any>, never>;
43
- static ɵdir: i0.ɵɵDirectiveDeclaration<DialogDirective<any>, "[opDialog]", never, { "opDialogAddDialogClass": { "alias": "opDialogAddDialogClass"; "required": false; }; "opDialogConfig": { "alias": "opDialogConfig"; "required": false; }; "setControl": { "alias": "opDialog"; "required": false; }; "nativeElement": { "alias": "opDialogOrigin"; "required": false; }; }, { "opDialogClosed": "opDialogClosed"; }, never, never, true, never>;
44
- }
45
- export {};
@@ -1,21 +0,0 @@
1
- import { QueryList } from "@angular/core";
2
- import { MatSlideToggle } from "@angular/material/slide-toggle";
3
- import { Observable } from "rxjs";
4
- import * as i0 from "@angular/core";
5
- export declare class MatSlideToggleGroupDirective {
6
- allowMultiple: boolean;
7
- _toggles: QueryList<MatSlideToggle>;
8
- set toggles(val: QueryList<MatSlideToggle>);
9
- private _ready;
10
- get valueEmitter(): Observable<{
11
- [key: string]: boolean;
12
- }>;
13
- getInitValue(): {
14
- [k: string]: boolean;
15
- };
16
- getObs(): Observable<{
17
- [k: string]: boolean;
18
- }>;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<MatSlideToggleGroupDirective, never>;
20
- static ɵdir: i0.ɵɵDirectiveDeclaration<MatSlideToggleGroupDirective, "[opMatSlideToggleGroup]", never, { "allowMultiple": { "alias": "allowMultiple"; "required": false; }; }, { "valueEmitter": "valueEmitter"; }, ["toggles"], never, true, never>;
21
- }
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class PreventEnterDirective {
3
- onKeyDown(): boolean;
4
- static ɵfac: i0.ɵɵFactoryDeclaration<PreventEnterDirective, never>;
5
- static ɵdir: i0.ɵɵDirectiveDeclaration<PreventEnterDirective, "preventEnter", never, {}, {}, never, never, true, never>;
6
- }
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class StopPropagationDirective {
3
- onClick(event: any): void;
4
- onMousedown(event: any): void;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<StopPropagationDirective, never>;
6
- static ɵdir: i0.ɵɵDirectiveDeclaration<StopPropagationDirective, "[stop-propagation]", never, {}, {}, never, never, true, never>;
7
- }
@@ -1,16 +0,0 @@
1
- import { Dictionary } from '@ngrx/entity';
2
- import * as i0 from "@angular/core";
3
- export declare class StylerDirective {
4
- #private;
5
- private el;
6
- private renderer;
7
- $stylesApplied: import("@angular/core").WritableSignal<Dictionary<string>>;
8
- $element: import("@angular/core").InputSignal<any>;
9
- $styler: import("@angular/core").InputSignal<StylerStyle<any>>;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<StylerDirective, never>;
11
- static ɵdir: i0.ɵɵDirectiveDeclaration<StylerDirective, "[styler]", never, { "$element": { "alias": "element"; "required": true; "isSignal": true; }; "$styler": { "alias": "styler"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
12
- }
13
- export type StylerStyle<T = any> = Dictionary<string | {
14
- condition?: ((t: T) => boolean) | true;
15
- value: ((t: T) => string) | string;
16
- }>;
@@ -1,7 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class TrimWhitespaceDirective {
3
- private elem;
4
- onBlur(): void;
5
- static ɵfac: i0.ɵɵFactoryDeclaration<TrimWhitespaceDirective, never>;
6
- static ɵdir: i0.ɵɵDirectiveDeclaration<TrimWhitespaceDirective, "input[trimWhitespace]", never, {}, {}, never, never, true, never>;
7
- }
@@ -1,15 +0,0 @@
1
- export * from './directives/prevent-enter.directive';
2
- export * from './directives/stop-propagation.directive';
3
- export * from './directives/auto-focus.directive';
4
- export * from './directives/clickSubject';
5
- export * from './directives/clickEmitterDirective';
6
- export * from './directives/dialog';
7
- export * from './directives/styler';
8
- export * from './directives/mat-toggle-group-directive';
9
- export * from './directives/trim-whitespace.directive';
10
- export * from './pipes/function.pipe';
11
- export * from './pipes/phone.pipe';
12
- export * from './pipes/space-case.pipes';
13
- export * from './directives/dialog-service';
14
- export * from './directives/conditional-classes.directive';
15
- export * from './module';
@@ -1,19 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./pipes/space-case.pipes";
3
- import * as i2 from "./pipes/phone.pipe";
4
- import * as i3 from "./pipes/function.pipe";
5
- import * as i4 from "./directives/stop-propagation.directive";
6
- import * as i5 from "./directives/styler";
7
- import * as i6 from "./directives/prevent-enter.directive";
8
- import * as i7 from "./directives/auto-focus.directive";
9
- import * as i8 from "./directives/trim-whitespace.directive";
10
- import * as i9 from "./directives/clickSubject";
11
- import * as i10 from "./directives/clickEmitterDirective";
12
- import * as i11 from "./directives/dialog";
13
- import * as i12 from "./directives/mat-toggle-group-directive";
14
- import * as i13 from "./directives/conditional-classes.directive";
15
- export declare class UtilitiesModule {
16
- static ɵfac: i0.ɵɵFactoryDeclaration<UtilitiesModule, never>;
17
- static ɵmod: i0.ɵɵNgModuleDeclaration<UtilitiesModule, never, [typeof i1.SpaceCasePipe, typeof i2.PhoneNumberPipe, typeof i3.FunctionPipe, typeof i4.StopPropagationDirective, typeof i5.StylerDirective, typeof i6.PreventEnterDirective, typeof i7.AutoFocusDirective, typeof i8.TrimWhitespaceDirective, typeof i9.ClickSubjectDirective, typeof i10.ClickEmitterDirective, typeof i11.DialogDirective, typeof i12.MatSlideToggleGroupDirective, typeof i13.ConditionalClassesDirective], [typeof i4.StopPropagationDirective, typeof i6.PreventEnterDirective, typeof i1.SpaceCasePipe, typeof i2.PhoneNumberPipe, typeof i3.FunctionPipe, typeof i8.TrimWhitespaceDirective, typeof i5.StylerDirective, typeof i7.AutoFocusDirective, typeof i9.ClickSubjectDirective, typeof i10.ClickEmitterDirective, typeof i11.DialogDirective, typeof i12.MatSlideToggleGroupDirective, typeof i13.ConditionalClassesDirective]>;
18
- static ɵinj: i0.ɵɵInjectorDeclaration<UtilitiesModule>;
19
- }