@paperless/angular 0.1.0-alpha.204 → 0.1.0-alpha.206

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 (78) hide show
  1. package/esm2020/lib/animations/index.mjs +2 -0
  2. package/esm2020/lib/animations/slide.mjs +11 -0
  3. package/esm2020/lib/base/index.mjs +1 -3
  4. package/esm2020/lib/directives/index.mjs +2 -15
  5. package/esm2020/lib/modules/index.mjs +3 -0
  6. package/esm2020/lib/modules/table/base/form.component.mjs +105 -0
  7. package/esm2020/lib/modules/table/base/index.mjs +3 -0
  8. package/esm2020/lib/modules/table/base/table.component.mjs +162 -0
  9. package/esm2020/lib/modules/table/components/index.mjs +8 -0
  10. package/esm2020/lib/modules/table/components/table/constants.mjs +3 -0
  11. package/esm2020/lib/modules/table/components/table/table.component.mjs +544 -0
  12. package/esm2020/lib/modules/table/components/table-cell/table-cell.component.mjs +167 -0
  13. package/esm2020/lib/modules/table/components/table-column/table-column.component.mjs +37 -0
  14. package/esm2020/lib/modules/table/directives/index.mjs +15 -0
  15. package/esm2020/lib/modules/table/directives/p-table-footer.directive.mjs +52 -0
  16. package/esm2020/lib/modules/table/directives/p-table-header.directive.mjs +60 -0
  17. package/esm2020/lib/modules/table/directives/p-table-ngx.directive.mjs +88 -0
  18. package/esm2020/lib/modules/table/directives/p-table.directive.mjs +78 -0
  19. package/esm2020/lib/modules/table/index.mjs +5 -0
  20. package/esm2020/lib/modules/table/table.module.mjs +27 -0
  21. package/esm2020/lib/modules/toast/components/index.mjs +6 -0
  22. package/esm2020/lib/modules/toast/components/toast/toast.component.mjs +71 -0
  23. package/esm2020/lib/modules/toast/components/toast-container/toast-container.component.mjs +34 -0
  24. package/esm2020/lib/modules/toast/index.mjs +5 -0
  25. package/esm2020/lib/modules/toast/services/index.mjs +4 -0
  26. package/esm2020/lib/modules/toast/services/toast.service.mjs +47 -0
  27. package/esm2020/lib/modules/toast/toast.module.mjs +23 -0
  28. package/esm2020/lib/modules/toast/types.mjs +10 -0
  29. package/esm2020/lib/paperless.module.mjs +25 -27
  30. package/esm2020/lib/stencil.module.mjs +17 -0
  31. package/esm2020/public-api.mjs +3 -2
  32. package/fesm2015/paperless-angular.mjs +501 -297
  33. package/fesm2015/paperless-angular.mjs.map +1 -1
  34. package/fesm2020/paperless-angular.mjs +504 -295
  35. package/fesm2020/paperless-angular.mjs.map +1 -1
  36. package/lib/animations/index.d.ts +1 -0
  37. package/lib/animations/slide.d.ts +1 -0
  38. package/lib/base/index.d.ts +0 -2
  39. package/lib/directives/index.d.ts +1 -6
  40. package/lib/modules/index.d.ts +2 -0
  41. package/lib/{base → modules/table/base}/form.component.d.ts +0 -0
  42. package/lib/modules/table/base/index.d.ts +2 -0
  43. package/lib/{base → modules/table/base}/table.component.d.ts +0 -0
  44. package/lib/{components → modules/table/components}/index.d.ts +2 -2
  45. package/lib/{components → modules/table/components}/table/constants.d.ts +0 -0
  46. package/lib/{components → modules/table/components}/table/table.component.d.ts +3 -3
  47. package/lib/{components → modules/table/components}/table-cell/table-cell.component.d.ts +0 -0
  48. package/lib/{components → modules/table/components}/table-column/table-column.component.d.ts +0 -0
  49. package/lib/modules/table/directives/index.d.ts +9 -0
  50. package/lib/{directives → modules/table/directives}/p-table-footer.directive.d.ts +1 -1
  51. package/lib/{directives → modules/table/directives}/p-table-header.directive.d.ts +1 -1
  52. package/lib/{directives → modules/table/directives}/p-table-ngx.directive.d.ts +3 -3
  53. package/lib/{directives → modules/table/directives}/p-table.directive.d.ts +1 -1
  54. package/lib/modules/table/index.d.ts +4 -0
  55. package/lib/modules/table/table.module.d.ts +15 -0
  56. package/lib/modules/toast/components/index.d.ts +5 -0
  57. package/lib/modules/toast/components/toast/toast.component.d.ts +22 -0
  58. package/lib/modules/toast/components/toast-container/toast-container.component.d.ts +17 -0
  59. package/lib/modules/toast/index.d.ts +4 -0
  60. package/lib/modules/toast/services/index.d.ts +3 -0
  61. package/lib/modules/toast/services/toast.service.d.ts +12 -0
  62. package/lib/modules/toast/toast.module.d.ts +10 -0
  63. package/lib/modules/toast/types.d.ts +26 -0
  64. package/lib/paperless.module.d.ts +11 -16
  65. package/lib/stencil.module.d.ts +7 -0
  66. package/package.json +1 -1
  67. package/public-api.d.ts +2 -1
  68. package/esm2020/lib/base/form.component.mjs +0 -105
  69. package/esm2020/lib/base/table.component.mjs +0 -162
  70. package/esm2020/lib/components/index.mjs +0 -8
  71. package/esm2020/lib/components/table/constants.mjs +0 -3
  72. package/esm2020/lib/components/table/table.component.mjs +0 -544
  73. package/esm2020/lib/components/table-cell/table-cell.component.mjs +0 -167
  74. package/esm2020/lib/components/table-column/table-column.component.mjs +0 -37
  75. package/esm2020/lib/directives/p-table-footer.directive.mjs +0 -52
  76. package/esm2020/lib/directives/p-table-header.directive.mjs +0 -60
  77. package/esm2020/lib/directives/p-table-ngx.directive.mjs +0 -88
  78. package/esm2020/lib/directives/p-table.directive.mjs +0 -78
@@ -1,15 +1,227 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, EventEmitter, Input, Output, ViewChild, Directive, HostListener, ChangeDetectionStrategy, HostBinding, TemplateRef, ContentChild, ContentChildren, Host, Pipe, NgModule } from '@angular/core';
3
- import { FormControl, FormGroup, FormArray, NG_VALUE_ACCESSOR } from '@angular/forms';
2
+ import { EventEmitter, Component, Input, Output, ViewChild, Directive, HostListener, ChangeDetectionStrategy, HostBinding, TemplateRef, ContentChild, ContentChildren, Host, NgModule, Injectable, Pipe } from '@angular/core';
3
+ import { NG_VALUE_ACCESSOR, FormControl, FormGroup, FormArray } from '@angular/forms';
4
4
  import { __decorate } from 'tslib';
5
5
  import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
6
- import { timer, fromEvent } from 'rxjs';
6
+ import { timer, fromEvent, BehaviorSubject } from 'rxjs';
7
7
  import { startWith, pairwise, map, filter, debounce } from 'rxjs/operators';
8
8
  import { objectGetByPath } from '@paperless/core';
9
9
  import * as i1 from '@angular/common';
10
- import { DatePipe, CurrencyPipe, CommonModule } from '@angular/common';
10
+ import { CommonModule, DatePipe, CurrencyPipe } from '@angular/common';
11
+ import { trigger, transition, style, animate } from '@angular/animations';
11
12
  import * as i1$1 from '@angular/platform-browser';
12
13
 
14
+ class BaseUploadComponent {
15
+ constructor() {
16
+ this.uploaded = false;
17
+ this.fileChange = new EventEmitter();
18
+ this._loading = false;
19
+ }
20
+ set loading(value) {
21
+ this._loading = value;
22
+ }
23
+ get loading() {
24
+ return this._loading;
25
+ }
26
+ onChange($event) {
27
+ const target = $event.target;
28
+ const file = target.files?.[0];
29
+ if (file) {
30
+ this._loading = true;
31
+ const reader = new FileReader();
32
+ reader.onload = (e) => this.onLoad(file, e?.currentTarget?.result);
33
+ reader.readAsDataURL(file);
34
+ }
35
+ }
36
+ onLoad(file, result) {
37
+ this.fileChange.next({
38
+ fileId: this.fileId,
39
+ result,
40
+ file,
41
+ });
42
+ if (this.uploaderInput?.nativeElement) {
43
+ this.uploaderInput.nativeElement.value = '';
44
+ }
45
+ this.file = file;
46
+ this._loading = false;
47
+ }
48
+ }
49
+ BaseUploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BaseUploadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
50
+ BaseUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: BaseUploadComponent, selector: "ng-component", inputs: { fileId: "fileId", uploaded: "uploaded", loading: "loading" }, outputs: { fileChange: "fileChange" }, viewQueries: [{ propertyName: "uploaderInput", first: true, predicate: ["uploaderInput"], descendants: true }], ngImport: i0, template: ``, isInline: true });
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BaseUploadComponent, decorators: [{
52
+ type: Component,
53
+ args: [{
54
+ template: ``,
55
+ }]
56
+ }], propDecorators: { fileId: [{
57
+ type: Input
58
+ }], uploaded: [{
59
+ type: Input
60
+ }], loading: [{
61
+ type: Input
62
+ }], fileChange: [{
63
+ type: Output
64
+ }], uploaderInput: [{
65
+ type: ViewChild,
66
+ args: ['uploaderInput']
67
+ }] } });
68
+
69
+ class BaseValueAccessor {
70
+ constructor(el) {
71
+ this.el = el;
72
+ this.onChange = () => {
73
+ /**/
74
+ };
75
+ this.onTouched = () => {
76
+ /**/
77
+ };
78
+ }
79
+ writeValue(value) {
80
+ this.el.nativeElement.value = this.lastValue =
81
+ value == null ? '' : value;
82
+ }
83
+ handleChangeEvent(value) {
84
+ if (value !== this.lastValue) {
85
+ this.lastValue = value;
86
+ this.onChange(value);
87
+ }
88
+ }
89
+ registerOnChange(fn) {
90
+ this.onChange = fn;
91
+ }
92
+ registerOnTouched(fn) {
93
+ this.onTouched = fn;
94
+ }
95
+ _handleBlurEvent() {
96
+ this.onTouched();
97
+ }
98
+ }
99
+ BaseValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BaseValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
100
+ BaseValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: BaseValueAccessor, host: { listeners: { "focusout": "_handleBlurEvent()" } }, ngImport: i0 });
101
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BaseValueAccessor, decorators: [{
102
+ type: Directive,
103
+ args: [{}]
104
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { _handleBlurEvent: [{
105
+ type: HostListener,
106
+ args: ['focusout']
107
+ }] } });
108
+
109
+ class PageSizeSelectDirective extends BaseValueAccessor {
110
+ constructor(el) {
111
+ super(el);
112
+ }
113
+ writeValue(value) {
114
+ this.el.nativeElement.page = this.lastValue =
115
+ value == null ? '' : value;
116
+ }
117
+ registerOnChange(fn) {
118
+ super.registerOnChange((value) => fn(value === '' ? null : parseInt(value, 10)));
119
+ }
120
+ }
121
+ PageSizeSelectDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PageSizeSelectDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
122
+ PageSizeSelectDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: PageSizeSelectDirective, selector: "p-page-size-select", host: { listeners: { "sizeChange": "handleChangeEvent($event.detail)" } }, providers: [
123
+ {
124
+ provide: NG_VALUE_ACCESSOR,
125
+ useExisting: PageSizeSelectDirective,
126
+ multi: true,
127
+ },
128
+ ], usesInheritance: true, ngImport: i0 });
129
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PageSizeSelectDirective, decorators: [{
130
+ type: Directive,
131
+ args: [{
132
+ /* tslint:disable-next-line:directive-selector */
133
+ selector: 'p-page-size-select',
134
+ host: {
135
+ '(sizeChange)': 'handleChangeEvent($event.detail)',
136
+ },
137
+ providers: [
138
+ {
139
+ provide: NG_VALUE_ACCESSOR,
140
+ useExisting: PageSizeSelectDirective,
141
+ multi: true,
142
+ },
143
+ ],
144
+ }]
145
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
146
+
147
+ class PaginationDirective extends BaseValueAccessor {
148
+ constructor(el) {
149
+ super(el);
150
+ }
151
+ writeValue(value) {
152
+ this.el.nativeElement.page = this.lastValue =
153
+ value == null ? '' : value;
154
+ }
155
+ registerOnChange(fn) {
156
+ super.registerOnChange((value) => fn(value === '' ? null : parseInt(value, 10)));
157
+ }
158
+ }
159
+ PaginationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaginationDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
160
+ PaginationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: PaginationDirective, selector: "p-pagination", host: { listeners: { "pageChange": "handleChangeEvent($event.detail)" } }, providers: [
161
+ {
162
+ provide: NG_VALUE_ACCESSOR,
163
+ useExisting: PaginationDirective,
164
+ multi: true,
165
+ },
166
+ ], usesInheritance: true, ngImport: i0 });
167
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaginationDirective, decorators: [{
168
+ type: Directive,
169
+ args: [{
170
+ /* tslint:disable-next-line:directive-selector */
171
+ selector: 'p-pagination',
172
+ host: {
173
+ '(pageChange)': 'handleChangeEvent($event.detail)',
174
+ },
175
+ providers: [
176
+ {
177
+ provide: NG_VALUE_ACCESSOR,
178
+ useExisting: PaginationDirective,
179
+ multi: true,
180
+ },
181
+ ],
182
+ }]
183
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
184
+
185
+ class SelectDirective extends BaseValueAccessor {
186
+ constructor(el) {
187
+ super(el);
188
+ }
189
+ writeValue(value) {
190
+ this.el.nativeElement.value = this.lastValue =
191
+ value == null ? '' : value;
192
+ }
193
+ }
194
+ SelectDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: SelectDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
195
+ SelectDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: SelectDirective, selector: "p-select", host: { listeners: { "valueChange": "handleChangeEvent($event.detail)" } }, providers: [
196
+ {
197
+ provide: NG_VALUE_ACCESSOR,
198
+ useExisting: SelectDirective,
199
+ multi: true,
200
+ },
201
+ ], usesInheritance: true, ngImport: i0 });
202
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: SelectDirective, decorators: [{
203
+ type: Directive,
204
+ args: [{
205
+ selector: 'p-select',
206
+ host: {
207
+ '(valueChange)': 'handleChangeEvent($event.detail)',
208
+ },
209
+ providers: [
210
+ {
211
+ provide: NG_VALUE_ACCESSOR,
212
+ useExisting: SelectDirective,
213
+ multi: true,
214
+ },
215
+ ],
216
+ }]
217
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
218
+
219
+ const DIRECTIVES$1 = [
220
+ PaginationDirective,
221
+ PageSizeSelectDirective,
222
+ SelectDirective,
223
+ ];
224
+
13
225
  class FormBaseComponent {
14
226
  constructor() {
15
227
  this.markedDirty = false;
@@ -265,112 +477,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
265
477
  }]
266
478
  }], ctorParameters: function () { return []; } });
267
479
 
268
- class BaseUploadComponent {
269
- constructor() {
270
- this.uploaded = false;
271
- this.fileChange = new EventEmitter();
272
- this._loading = false;
273
- }
274
- set loading(value) {
275
- this._loading = value;
276
- }
277
- get loading() {
278
- return this._loading;
279
- }
280
- onChange($event) {
281
- const target = $event.target;
282
- const file = target.files?.[0];
283
- if (file) {
284
- this._loading = true;
285
- const reader = new FileReader();
286
- reader.onload = (e) => this.onLoad(file, e?.currentTarget?.result);
287
- reader.readAsDataURL(file);
288
- }
289
- }
290
- onLoad(file, result) {
291
- this.fileChange.next({
292
- fileId: this.fileId,
293
- result,
294
- file,
295
- });
296
- if (this.uploaderInput?.nativeElement) {
297
- this.uploaderInput.nativeElement.value = '';
298
- }
299
- this.file = file;
300
- this._loading = false;
301
- }
302
- }
303
- BaseUploadComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BaseUploadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
304
- BaseUploadComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: BaseUploadComponent, selector: "ng-component", inputs: { fileId: "fileId", uploaded: "uploaded", loading: "loading" }, outputs: { fileChange: "fileChange" }, viewQueries: [{ propertyName: "uploaderInput", first: true, predicate: ["uploaderInput"], descendants: true }], ngImport: i0, template: ``, isInline: true });
305
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BaseUploadComponent, decorators: [{
306
- type: Component,
307
- args: [{
308
- template: ``,
309
- }]
310
- }], propDecorators: { fileId: [{
311
- type: Input
312
- }], uploaded: [{
313
- type: Input
314
- }], loading: [{
315
- type: Input
316
- }], fileChange: [{
317
- type: Output
318
- }], uploaderInput: [{
319
- type: ViewChild,
320
- args: ['uploaderInput']
321
- }] } });
322
-
323
- class BaseValueAccessor {
324
- constructor(el) {
325
- this.el = el;
326
- this.onChange = () => {
327
- /**/
328
- };
329
- this.onTouched = () => {
330
- /**/
331
- };
332
- }
333
- writeValue(value) {
334
- this.el.nativeElement.value = this.lastValue =
335
- value == null ? '' : value;
336
- }
337
- handleChangeEvent(value) {
338
- if (value !== this.lastValue) {
339
- this.lastValue = value;
340
- this.onChange(value);
341
- }
342
- }
343
- registerOnChange(fn) {
344
- this.onChange = fn;
345
- }
346
- registerOnTouched(fn) {
347
- this.onTouched = fn;
348
- }
349
- _handleBlurEvent() {
350
- this.onTouched();
351
- }
352
- }
353
- BaseValueAccessor.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BaseValueAccessor, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
354
- BaseValueAccessor.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: BaseValueAccessor, host: { listeners: { "focusout": "_handleBlurEvent()" } }, ngImport: i0 });
355
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: BaseValueAccessor, decorators: [{
356
- type: Directive,
357
- args: [{}]
358
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { _handleBlurEvent: [{
359
- type: HostListener,
360
- args: ['focusout']
361
- }] } });
362
-
363
- /* eslint-disable */
364
- const proxyInputs = (Cmp, inputs) => {
365
- const Prototype = Cmp.prototype;
366
- inputs.forEach(item => {
367
- Object.defineProperty(Prototype, item, {
368
- get() {
369
- return this.el[item];
370
- },
371
- set(val) {
372
- this.z.runOutsideAngular(() => (this.el[item] = val));
373
- }
480
+ /* eslint-disable */
481
+ const proxyInputs = (Cmp, inputs) => {
482
+ const Prototype = Cmp.prototype;
483
+ inputs.forEach(item => {
484
+ Object.defineProperty(Prototype, item, {
485
+ get() {
486
+ return this.el[item];
487
+ },
488
+ set(val) {
489
+ this.z.runOutsideAngular(() => (this.el[item] = val));
490
+ }
374
491
  });
375
492
  });
376
493
  };
@@ -1866,7 +1983,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
1866
1983
  }]
1867
1984
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
1868
1985
 
1869
- let TableComponent = class TableComponent {
1986
+ let Table = class Table {
1870
1987
  constructor() {
1871
1988
  /**
1872
1989
  * Wether data is loading
@@ -2304,12 +2421,12 @@ let TableComponent = class TableComponent {
2304
2421
  return this._findRowAction(el?.parentElement);
2305
2422
  }
2306
2423
  };
2307
- TableComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2308
- TableComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: TableComponent, selector: "p-table-ngx", inputs: { items: "items", loading: "loading", amountOfLoadingRows: "amountOfLoadingRows", enableRowSelection: "enableRowSelection", enableRowClick: "enableRowClick", selectedRows: "selectedRows", selectionKey: "selectionKey", canSelectKey: "canSelectKey", quickFilters: "quickFilters", activeQuickFilterIdentifier: "activeQuickFilterIdentifier", enableSearch: "enableSearch", query: "query", enableFilter: "enableFilter", selectedFiltersAmount: "selectedFiltersAmount", filterButtonTemplate: "filterButtonTemplate", enableEdit: "enableEdit", editButtonTemplate: "editButtonTemplate", enablePageSize: "enablePageSize", enablePagination: "enablePagination", enableExport: "enableExport", page: "page", total: "total", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", hideOnSinglePage: "hideOnSinglePage" }, outputs: { selectedRowsChange: "selectedRowsChange", rowClick: "rowClick", rowSelected: "rowSelected", rowDeselected: "rowDeselected", quickFilter: "quickFilter", queryChange: "queryChange", filter: "filter", edit: "edit", pageChange: "pageChange", pageSizeChange: "pageSizeChange", export: "export" }, host: { listeners: { "document:keydown": "keyDown($event)", "document:keyup": "keyUp($event)", "document:visibilitychange": "visibilityChange($event)" } }, queries: [{ propertyName: "columnDefinitions", predicate: TableColumn }], usesOnChanges: true, ngImport: i0, template: "<p-table-container>\n <p-table-header\n [quickFilters]=\"quickFilters\"\n [activeQuickFilterIdentifier]=\"activeQuickFilterIdentifier\"\n (onQuickFilter)=\"(onQuickFilter)\"\n [enableSearch]=\"enableSearch\"\n [query]=\"query\"\n (onQueryChange)=\"(onQueryChange)\"\n [enableFilter]=\"enableFilter\"\n [selectedFiltersAmount]=\"selectedFiltersAmount\"\n [filterButtonTemplate]=\"filterButtonTemplate\"\n (onFilter)=\"filter.emit()\"\n [enableEdit]=\"enableEdit\"\n [canEdit]=\"!!selectedRows.length\"\n [editButtonTemplate]=\"editButtonTemplate\"\n (onEdit)=\"edit.emit()\"\n [itemsSelectedAmount]=\"selectedRows.length\"\n ></p-table-header>\n\n <p-table-row variant=\"header\">\n <ng-container *ngFor=\"let col of columns; let index = index\">\n <p-table-cell-ngx\n [definition]=\"col\"\n [value]=\"col.name\"\n variant=\"header\"\n [index]=\"index\"\n [checkbox]=\"index === 0 ? checkboxTemplate : undefined\"\n ></p-table-cell-ngx>\n <ng-template #checkboxTemplate>\n <input\n class=\"p-input\"\n type=\"checkbox\"\n (change)=\"_selectAllChange($event)\"\n [checked]=\"_selectionContainsAll()\"\n [indeterminate]=\"_selectionIndeterminate()\"\n />\n </ng-template>\n </ng-container>\n </p-table-row>\n\n <div class=\"flex flex-col\">\n <ng-container *ngIf=\"loading; else contentTemplate\">\n <p-table-row\n *ngFor=\"let r of loadingRows; let rowIndex = index\"\n [enableHover]=\"enableRowSelection || enableRowClick\"\n >\n <ng-container *ngFor=\"let col of columns; let index = index\">\n <p-table-cell-ngx\n [definition]=\"col\"\n variant=\"loading\"\n [checkbox]=\"index === 0 ? checkboxTemplate : undefined\"\n [index]=\"index\"\n [rowIndex]=\"rowIndex\"\n ></p-table-cell-ngx>\n <ng-template #checkboxTemplate>\n <p-loader\n variant=\"ghost\"\n class=\"rounded w-6 h-6\"\n ></p-loader>\n </ng-template>\n </ng-container>\n </p-table-row>\n </ng-container>\n\n <ng-template #contentTemplate>\n <p-table-row\n *ngFor=\"let item of items; let rowIndex = index\"\n [enableHover]=\"enableRowSelection || enableRowClick\"\n (click)=\"_rowClick($event, rowIndex)\"\n >\n <ng-container *ngFor=\"let col of columns; let index = index\">\n <p-table-cell-ngx\n [definition]=\"col\"\n [item]=\"item\"\n [checkbox]=\"index === 0 ? checkboxTemplate : undefined\"\n [index]=\"index\"\n [rowIndex]=\"rowIndex\"\n [template]=\"col.template\"\n ></p-table-cell-ngx>\n\n <ng-template #checkboxTemplate>\n <input\n class=\"p-input\"\n type=\"checkbox\"\n (change)=\"_checkboxChange($event.target, rowIndex)\"\n [disabled]=\"_checkboxDisabled(item)\"\n [checked]=\"_selectionContains(item, rowIndex)\"\n />\n </ng-template>\n </ng-container>\n </p-table-row>\n </ng-template>\n </div>\n\n <p-table-footer\n [hideOnSinglePage]=\"hideOnSinglePage\"\n [enablePageSize]=\"enablePageSize\"\n [pageSize]=\"pageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n (onPageSizeChange)=\"(pageSizeChange)\"\n [enablePagination]=\"enablePagination\"\n [page]=\"page\"\n [total]=\"total\"\n (onPageChange)=\"(pageChange)\"\n [enableExport]=\"enableExport\"\n (onExport)=\"export.emit()\"\n ></p-table-footer>\n</p-table-container>\n", styles: [":host{display:flex;flex-direction:column}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: PLoader, selector: "p-loader", inputs: ["color", "modalDescription", "modalTitle", "show", "variant"] }, { kind: "component", type: PTableContainer, selector: "p-table-container" }, { kind: "component", type: PTableFooter, selector: "p-table-footer", inputs: ["enableExport", "enablePageSize", "enablePagination", "hideOnSinglePage", "page", "pageSize", "pageSizeOptions", "total"] }, { kind: "component", type: PTableHeader, selector: "p-table-header", inputs: ["activeQuickFilterIdentifier", "canEdit", "editButtonTemplate", "enableEdit", "enableFilter", "enableSearch", "filterButtonTemplate", "itemsSelectedAmount", "query", "quickFilters", "selectedFiltersAmount"] }, { kind: "component", type: PTableRow, selector: "p-table-row", inputs: ["enableHover", "variant"] }, { kind: "component", type: TableCell, selector: "p-table-cell-ngx", inputs: ["variant", "index", "rowIndex", "definition", "item", "value", "checkbox", "template"] }, { kind: "directive", type: TableFooterDirective, selector: "p-table-footer" }, { kind: "directive", type: TableHeaderDirective, selector: "p-table-header" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2309
- TableComponent = __decorate([
2424
+ Table.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: Table, deps: [], target: i0.ɵɵFactoryTarget.Component });
2425
+ Table.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: Table, selector: "p-table-ngx", inputs: { items: "items", loading: "loading", amountOfLoadingRows: "amountOfLoadingRows", enableRowSelection: "enableRowSelection", enableRowClick: "enableRowClick", selectedRows: "selectedRows", selectionKey: "selectionKey", canSelectKey: "canSelectKey", quickFilters: "quickFilters", activeQuickFilterIdentifier: "activeQuickFilterIdentifier", enableSearch: "enableSearch", query: "query", enableFilter: "enableFilter", selectedFiltersAmount: "selectedFiltersAmount", filterButtonTemplate: "filterButtonTemplate", enableEdit: "enableEdit", editButtonTemplate: "editButtonTemplate", enablePageSize: "enablePageSize", enablePagination: "enablePagination", enableExport: "enableExport", page: "page", total: "total", pageSize: "pageSize", pageSizeOptions: "pageSizeOptions", hideOnSinglePage: "hideOnSinglePage" }, outputs: { selectedRowsChange: "selectedRowsChange", rowClick: "rowClick", rowSelected: "rowSelected", rowDeselected: "rowDeselected", quickFilter: "quickFilter", queryChange: "queryChange", filter: "filter", edit: "edit", pageChange: "pageChange", pageSizeChange: "pageSizeChange", export: "export" }, host: { listeners: { "document:keydown": "keyDown($event)", "document:keyup": "keyUp($event)", "document:visibilitychange": "visibilityChange($event)" } }, queries: [{ propertyName: "columnDefinitions", predicate: TableColumn }], usesOnChanges: true, ngImport: i0, template: "<p-table-container>\n <p-table-header\n [quickFilters]=\"quickFilters\"\n [activeQuickFilterIdentifier]=\"activeQuickFilterIdentifier\"\n (onQuickFilter)=\"(onQuickFilter)\"\n [enableSearch]=\"enableSearch\"\n [query]=\"query\"\n (onQueryChange)=\"(onQueryChange)\"\n [enableFilter]=\"enableFilter\"\n [selectedFiltersAmount]=\"selectedFiltersAmount\"\n [filterButtonTemplate]=\"filterButtonTemplate\"\n (onFilter)=\"filter.emit()\"\n [enableEdit]=\"enableEdit\"\n [canEdit]=\"!!selectedRows.length\"\n [editButtonTemplate]=\"editButtonTemplate\"\n (onEdit)=\"edit.emit()\"\n [itemsSelectedAmount]=\"selectedRows.length\"\n ></p-table-header>\n\n <p-table-row variant=\"header\">\n <ng-container *ngFor=\"let col of columns; let index = index\">\n <p-table-cell-ngx\n [definition]=\"col\"\n [value]=\"col.name\"\n variant=\"header\"\n [index]=\"index\"\n [checkbox]=\"index === 0 ? checkboxTemplate : undefined\"\n ></p-table-cell-ngx>\n <ng-template #checkboxTemplate>\n <input\n class=\"p-input\"\n type=\"checkbox\"\n (change)=\"_selectAllChange($event)\"\n [checked]=\"_selectionContainsAll()\"\n [indeterminate]=\"_selectionIndeterminate()\"\n />\n </ng-template>\n </ng-container>\n </p-table-row>\n\n <div class=\"flex flex-col\">\n <ng-container *ngIf=\"loading; else contentTemplate\">\n <p-table-row\n *ngFor=\"let r of loadingRows; let rowIndex = index\"\n [enableHover]=\"enableRowSelection || enableRowClick\"\n >\n <ng-container *ngFor=\"let col of columns; let index = index\">\n <p-table-cell-ngx\n [definition]=\"col\"\n variant=\"loading\"\n [checkbox]=\"index === 0 ? checkboxTemplate : undefined\"\n [index]=\"index\"\n [rowIndex]=\"rowIndex\"\n ></p-table-cell-ngx>\n <ng-template #checkboxTemplate>\n <p-loader\n variant=\"ghost\"\n class=\"rounded w-6 h-6\"\n ></p-loader>\n </ng-template>\n </ng-container>\n </p-table-row>\n </ng-container>\n\n <ng-template #contentTemplate>\n <p-table-row\n *ngFor=\"let item of items; let rowIndex = index\"\n [enableHover]=\"enableRowSelection || enableRowClick\"\n (click)=\"_rowClick($event, rowIndex)\"\n >\n <ng-container *ngFor=\"let col of columns; let index = index\">\n <p-table-cell-ngx\n [definition]=\"col\"\n [item]=\"item\"\n [checkbox]=\"index === 0 ? checkboxTemplate : undefined\"\n [index]=\"index\"\n [rowIndex]=\"rowIndex\"\n [template]=\"col.template\"\n ></p-table-cell-ngx>\n\n <ng-template #checkboxTemplate>\n <input\n class=\"p-input\"\n type=\"checkbox\"\n (change)=\"_checkboxChange($event.target, rowIndex)\"\n [disabled]=\"_checkboxDisabled(item)\"\n [checked]=\"_selectionContains(item, rowIndex)\"\n />\n </ng-template>\n </ng-container>\n </p-table-row>\n </ng-template>\n </div>\n\n <p-table-footer\n [hideOnSinglePage]=\"hideOnSinglePage\"\n [enablePageSize]=\"enablePageSize\"\n [pageSize]=\"pageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n (onPageSizeChange)=\"(pageSizeChange)\"\n [enablePagination]=\"enablePagination\"\n [page]=\"page\"\n [total]=\"total\"\n (onPageChange)=\"(pageChange)\"\n [enableExport]=\"enableExport\"\n (onExport)=\"export.emit()\"\n ></p-table-footer>\n</p-table-container>\n", styles: [":host{display:flex;flex-direction:column}\n"], dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: PLoader, selector: "p-loader", inputs: ["color", "modalDescription", "modalTitle", "show", "variant"] }, { kind: "component", type: PTableContainer, selector: "p-table-container" }, { kind: "component", type: PTableFooter, selector: "p-table-footer", inputs: ["enableExport", "enablePageSize", "enablePagination", "hideOnSinglePage", "page", "pageSize", "pageSizeOptions", "total"] }, { kind: "component", type: PTableHeader, selector: "p-table-header", inputs: ["activeQuickFilterIdentifier", "canEdit", "editButtonTemplate", "enableEdit", "enableFilter", "enableSearch", "filterButtonTemplate", "itemsSelectedAmount", "query", "quickFilters", "selectedFiltersAmount"] }, { kind: "component", type: PTableRow, selector: "p-table-row", inputs: ["enableHover", "variant"] }, { kind: "component", type: TableCell, selector: "p-table-cell-ngx", inputs: ["variant", "index", "rowIndex", "definition", "item", "value", "checkbox", "template"] }, { kind: "directive", type: TableFooterDirective, selector: "p-table-footer" }, { kind: "directive", type: TableHeaderDirective, selector: "p-table-header" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2426
+ Table = __decorate([
2310
2427
  UntilDestroy({ checkProperties: true })
2311
- ], TableComponent);
2312
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableComponent, decorators: [{
2428
+ ], Table);
2429
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: Table, decorators: [{
2313
2430
  type: Component,
2314
2431
  args: [{ selector: 'p-table-ngx', changeDetection: ChangeDetectionStrategy.OnPush, template: "<p-table-container>\n <p-table-header\n [quickFilters]=\"quickFilters\"\n [activeQuickFilterIdentifier]=\"activeQuickFilterIdentifier\"\n (onQuickFilter)=\"(onQuickFilter)\"\n [enableSearch]=\"enableSearch\"\n [query]=\"query\"\n (onQueryChange)=\"(onQueryChange)\"\n [enableFilter]=\"enableFilter\"\n [selectedFiltersAmount]=\"selectedFiltersAmount\"\n [filterButtonTemplate]=\"filterButtonTemplate\"\n (onFilter)=\"filter.emit()\"\n [enableEdit]=\"enableEdit\"\n [canEdit]=\"!!selectedRows.length\"\n [editButtonTemplate]=\"editButtonTemplate\"\n (onEdit)=\"edit.emit()\"\n [itemsSelectedAmount]=\"selectedRows.length\"\n ></p-table-header>\n\n <p-table-row variant=\"header\">\n <ng-container *ngFor=\"let col of columns; let index = index\">\n <p-table-cell-ngx\n [definition]=\"col\"\n [value]=\"col.name\"\n variant=\"header\"\n [index]=\"index\"\n [checkbox]=\"index === 0 ? checkboxTemplate : undefined\"\n ></p-table-cell-ngx>\n <ng-template #checkboxTemplate>\n <input\n class=\"p-input\"\n type=\"checkbox\"\n (change)=\"_selectAllChange($event)\"\n [checked]=\"_selectionContainsAll()\"\n [indeterminate]=\"_selectionIndeterminate()\"\n />\n </ng-template>\n </ng-container>\n </p-table-row>\n\n <div class=\"flex flex-col\">\n <ng-container *ngIf=\"loading; else contentTemplate\">\n <p-table-row\n *ngFor=\"let r of loadingRows; let rowIndex = index\"\n [enableHover]=\"enableRowSelection || enableRowClick\"\n >\n <ng-container *ngFor=\"let col of columns; let index = index\">\n <p-table-cell-ngx\n [definition]=\"col\"\n variant=\"loading\"\n [checkbox]=\"index === 0 ? checkboxTemplate : undefined\"\n [index]=\"index\"\n [rowIndex]=\"rowIndex\"\n ></p-table-cell-ngx>\n <ng-template #checkboxTemplate>\n <p-loader\n variant=\"ghost\"\n class=\"rounded w-6 h-6\"\n ></p-loader>\n </ng-template>\n </ng-container>\n </p-table-row>\n </ng-container>\n\n <ng-template #contentTemplate>\n <p-table-row\n *ngFor=\"let item of items; let rowIndex = index\"\n [enableHover]=\"enableRowSelection || enableRowClick\"\n (click)=\"_rowClick($event, rowIndex)\"\n >\n <ng-container *ngFor=\"let col of columns; let index = index\">\n <p-table-cell-ngx\n [definition]=\"col\"\n [item]=\"item\"\n [checkbox]=\"index === 0 ? checkboxTemplate : undefined\"\n [index]=\"index\"\n [rowIndex]=\"rowIndex\"\n [template]=\"col.template\"\n ></p-table-cell-ngx>\n\n <ng-template #checkboxTemplate>\n <input\n class=\"p-input\"\n type=\"checkbox\"\n (change)=\"_checkboxChange($event.target, rowIndex)\"\n [disabled]=\"_checkboxDisabled(item)\"\n [checked]=\"_selectionContains(item, rowIndex)\"\n />\n </ng-template>\n </ng-container>\n </p-table-row>\n </ng-template>\n </div>\n\n <p-table-footer\n [hideOnSinglePage]=\"hideOnSinglePage\"\n [enablePageSize]=\"enablePageSize\"\n [pageSize]=\"pageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n (onPageSizeChange)=\"(pageSizeChange)\"\n [enablePagination]=\"enablePagination\"\n [page]=\"page\"\n [total]=\"total\"\n (onPageChange)=\"(pageChange)\"\n [enableExport]=\"enableExport\"\n (onExport)=\"export.emit()\"\n ></p-table-footer>\n</p-table-container>\n", styles: [":host{display:flex;flex-direction:column}\n"] }]
2315
2432
  }], ctorParameters: function () { return []; }, propDecorators: { items: [{
@@ -2398,117 +2515,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
2398
2515
  args: ['document:visibilitychange', ['$event']]
2399
2516
  }] } });
2400
2517
 
2401
- const COMPONENTS = [TableComponent, TableColumn, TableCell];
2402
-
2403
- class PageSizeSelectDirective extends BaseValueAccessor {
2404
- constructor(el) {
2405
- super(el);
2406
- }
2407
- writeValue(value) {
2408
- this.el.nativeElement.page = this.lastValue =
2409
- value == null ? '' : value;
2410
- }
2411
- registerOnChange(fn) {
2412
- super.registerOnChange((value) => fn(value === '' ? null : parseInt(value, 10)));
2413
- }
2414
- }
2415
- PageSizeSelectDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PageSizeSelectDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
2416
- PageSizeSelectDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: PageSizeSelectDirective, selector: "p-page-size-select", host: { listeners: { "sizeChange": "handleChangeEvent($event.detail)" } }, providers: [
2417
- {
2418
- provide: NG_VALUE_ACCESSOR,
2419
- useExisting: PageSizeSelectDirective,
2420
- multi: true,
2421
- },
2422
- ], usesInheritance: true, ngImport: i0 });
2423
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PageSizeSelectDirective, decorators: [{
2424
- type: Directive,
2425
- args: [{
2426
- /* tslint:disable-next-line:directive-selector */
2427
- selector: 'p-page-size-select',
2428
- host: {
2429
- '(sizeChange)': 'handleChangeEvent($event.detail)',
2430
- },
2431
- providers: [
2432
- {
2433
- provide: NG_VALUE_ACCESSOR,
2434
- useExisting: PageSizeSelectDirective,
2435
- multi: true,
2436
- },
2437
- ],
2438
- }]
2439
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
2440
-
2441
- class PaginationDirective extends BaseValueAccessor {
2442
- constructor(el) {
2443
- super(el);
2444
- }
2445
- writeValue(value) {
2446
- this.el.nativeElement.page = this.lastValue =
2447
- value == null ? '' : value;
2448
- }
2449
- registerOnChange(fn) {
2450
- super.registerOnChange((value) => fn(value === '' ? null : parseInt(value, 10)));
2451
- }
2452
- }
2453
- PaginationDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaginationDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
2454
- PaginationDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: PaginationDirective, selector: "p-pagination", host: { listeners: { "pageChange": "handleChangeEvent($event.detail)" } }, providers: [
2455
- {
2456
- provide: NG_VALUE_ACCESSOR,
2457
- useExisting: PaginationDirective,
2458
- multi: true,
2459
- },
2460
- ], usesInheritance: true, ngImport: i0 });
2461
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaginationDirective, decorators: [{
2462
- type: Directive,
2463
- args: [{
2464
- /* tslint:disable-next-line:directive-selector */
2465
- selector: 'p-pagination',
2466
- host: {
2467
- '(pageChange)': 'handleChangeEvent($event.detail)',
2468
- },
2469
- providers: [
2470
- {
2471
- provide: NG_VALUE_ACCESSOR,
2472
- useExisting: PaginationDirective,
2473
- multi: true,
2474
- },
2475
- ],
2476
- }]
2477
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
2478
-
2479
- class SelectDirective extends BaseValueAccessor {
2480
- constructor(el) {
2481
- super(el);
2482
- }
2483
- writeValue(value) {
2484
- this.el.nativeElement.value = this.lastValue =
2485
- value == null ? '' : value;
2486
- }
2487
- }
2488
- SelectDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: SelectDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
2489
- SelectDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: SelectDirective, selector: "p-select", host: { listeners: { "valueChange": "handleChangeEvent($event.detail)" } }, providers: [
2490
- {
2491
- provide: NG_VALUE_ACCESSOR,
2492
- useExisting: SelectDirective,
2493
- multi: true,
2494
- },
2495
- ], usesInheritance: true, ngImport: i0 });
2496
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: SelectDirective, decorators: [{
2497
- type: Directive,
2498
- args: [{
2499
- selector: 'p-select',
2500
- host: {
2501
- '(valueChange)': 'handleChangeEvent($event.detail)',
2502
- },
2503
- providers: [
2504
- {
2505
- provide: NG_VALUE_ACCESSOR,
2506
- useExisting: SelectDirective,
2507
- multi: true,
2508
- },
2509
- ],
2510
- }]
2511
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
2518
+ const TABLE_COMPONENTS = [Table, TableCell, TableColumn];
2512
2519
 
2513
2520
  /* eslint-disable @angular-eslint/no-host-metadata-property */
2514
2521
  class TableNgxDirective extends BaseValueAccessor {
@@ -2562,7 +2569,7 @@ class TableNgxDirective extends BaseValueAccessor {
2562
2569
  // quickFilter?.identifier;
2563
2570
  }
2564
2571
  }
2565
- TableNgxDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableNgxDirective, deps: [{ token: i0.ElementRef }, { token: TableComponent, host: true }], target: i0.ɵɵFactoryTarget.Directive });
2572
+ TableNgxDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableNgxDirective, deps: [{ token: i0.ElementRef }, { token: Table, host: true }], target: i0.ɵɵFactoryTarget.Directive });
2566
2573
  TableNgxDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.7", type: TableNgxDirective, selector: "p-table-ngx", host: { listeners: { "queryChange": "handleChange($event.detail, \"query\")", "quickFilter": "handleChange($event.detail, \"quickFilter\")", "pageChange": "handleChange($event.detail, \"page\")", "pageSizeChange": "handleChange($event.detail, \"pageSize\")", "selectedRowsChange": "handleChange($event, \"selectedRows\")" } }, providers: [
2567
2574
  {
2568
2575
  provide: NG_VALUE_ACCESSOR,
@@ -2589,7 +2596,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
2589
2596
  },
2590
2597
  ],
2591
2598
  }]
2592
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: TableComponent, decorators: [{
2599
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: Table, decorators: [{
2593
2600
  type: Host
2594
2601
  }] }]; } });
2595
2602
 
@@ -2667,17 +2674,264 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
2667
2674
  }]
2668
2675
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
2669
2676
 
2670
- // Custom directives
2671
- const CUSTOM_DIRECTIVES = [
2672
- PaginationDirective,
2673
- PageSizeSelectDirective,
2677
+ const TABLE_DIRECTIVES = [
2674
2678
  TableFooterDirective,
2675
2679
  TableHeaderDirective,
2676
2680
  TableDirective,
2677
2681
  TableNgxDirective,
2678
- SelectDirective,
2679
2682
  ];
2680
2683
 
2684
+ const DIRECTIVES = [
2685
+ PAccordion,
2686
+ PAvatar,
2687
+ PAvatarGroup,
2688
+ PButton,
2689
+ PCardBody,
2690
+ PCardContainer,
2691
+ PCardHeader,
2692
+ PContentSlider,
2693
+ PCounter,
2694
+ PDivider,
2695
+ PDropdown,
2696
+ PDropdownMenuContainer,
2697
+ PDropdownMenuItem,
2698
+ PHelper,
2699
+ PIcon,
2700
+ PIllustration,
2701
+ PInfoPanel,
2702
+ PInputGroup,
2703
+ PLabel,
2704
+ PLayout,
2705
+ PLoader,
2706
+ PModal,
2707
+ PModalBackdrop,
2708
+ PModalBody,
2709
+ PModalContainer,
2710
+ PModalFooter,
2711
+ PModalHeader,
2712
+ PNavbar,
2713
+ PNavigationItem,
2714
+ PPageSizeSelect,
2715
+ PPagination,
2716
+ PPaginationItem,
2717
+ PProfile,
2718
+ PSegmentContainer,
2719
+ PSegmentItem,
2720
+ PSelect,
2721
+ PSliderIndicator,
2722
+ PStatus,
2723
+ PStepper,
2724
+ PStepperItem,
2725
+ PStepperLine,
2726
+ PTabGroup,
2727
+ PTabItem,
2728
+ PTableContainer,
2729
+ PTableFooter,
2730
+ PTableHeader,
2731
+ PTableRow,
2732
+ PTooltip
2733
+ ];
2734
+
2735
+ class PaperlessStencilModule {
2736
+ }
2737
+ PaperlessStencilModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaperlessStencilModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2738
+ PaperlessStencilModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: PaperlessStencilModule, declarations: [PAccordion, PAvatar, PAvatarGroup, PButton, PCardBody, PCardContainer, PCardHeader, PContentSlider, PCounter, PDivider, PDropdown, PDropdownMenuContainer, PDropdownMenuItem, PHelper, PIcon, PIllustration, PInfoPanel, PInputGroup, PLabel, PLayout, PLoader, PModal, PModalBackdrop, PModalBody, PModalContainer, PModalFooter, PModalHeader, PNavbar, PNavigationItem, PPageSizeSelect, PPagination, PPaginationItem, PProfile, PSegmentContainer, PSegmentItem, PSelect, PSliderIndicator, PStatus, PStepper, PStepperItem, PStepperLine, PTabGroup, PTabItem, PTableContainer, PTableFooter, PTableHeader, PTableRow, PTooltip], exports: [PAccordion, PAvatar, PAvatarGroup, PButton, PCardBody, PCardContainer, PCardHeader, PContentSlider, PCounter, PDivider, PDropdown, PDropdownMenuContainer, PDropdownMenuItem, PHelper, PIcon, PIllustration, PInfoPanel, PInputGroup, PLabel, PLayout, PLoader, PModal, PModalBackdrop, PModalBody, PModalContainer, PModalFooter, PModalHeader, PNavbar, PNavigationItem, PPageSizeSelect, PPagination, PPaginationItem, PProfile, PSegmentContainer, PSegmentItem, PSelect, PSliderIndicator, PStatus, PStepper, PStepperItem, PStepperLine, PTabGroup, PTabItem, PTableContainer, PTableFooter, PTableHeader, PTableRow, PTooltip] });
2739
+ PaperlessStencilModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaperlessStencilModule });
2740
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaperlessStencilModule, decorators: [{
2741
+ type: NgModule,
2742
+ args: [{
2743
+ declarations: [...DIRECTIVES],
2744
+ exports: [...DIRECTIVES],
2745
+ }]
2746
+ }] });
2747
+
2748
+ class PaperlessTableModule {
2749
+ }
2750
+ PaperlessTableModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaperlessTableModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2751
+ PaperlessTableModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: PaperlessTableModule, declarations: [Table, TableCell, TableColumn, TableFooterDirective, TableHeaderDirective, TableDirective, TableNgxDirective], imports: [CommonModule, PaperlessStencilModule], exports: [Table, TableCell, TableColumn, TableFooterDirective, TableHeaderDirective, TableDirective, TableNgxDirective] });
2752
+ PaperlessTableModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaperlessTableModule, imports: [CommonModule, PaperlessStencilModule] });
2753
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaperlessTableModule, decorators: [{
2754
+ type: NgModule,
2755
+ args: [{
2756
+ imports: [CommonModule, PaperlessStencilModule],
2757
+ declarations: [...TABLE_COMPONENTS, ...TABLE_DIRECTIVES],
2758
+ exports: [...TABLE_COMPONENTS, ...TABLE_DIRECTIVES],
2759
+ }]
2760
+ }] });
2761
+
2762
+ const SLIDE_IN_BOTTOM_OUT_TOP = trigger('pSlideInBottomOutTop', [
2763
+ transition(':enter', [
2764
+ style({ transform: 'translateY(50%)', opacity: 0 }),
2765
+ animate('200ms ease-in', style({ transform: 'translateX(0%)', opacity: 1 })),
2766
+ ]),
2767
+ transition(':leave', [
2768
+ animate('200ms ease-in', style({ transform: 'translateY(-100%)', opacity: 0 })),
2769
+ ]),
2770
+ ]);
2771
+
2772
+ var ToastVariants;
2773
+ (function (ToastVariants) {
2774
+ ToastVariants["Success"] = "positive";
2775
+ ToastVariants["Warning"] = "unbiased";
2776
+ ToastVariants["Error"] = "negative";
2777
+ ToastVariants["Positive"] = "positive";
2778
+ ToastVariants["Unbiased"] = "unbiased";
2779
+ ToastVariants["Negative"] = "negative";
2780
+ })(ToastVariants || (ToastVariants = {}));
2781
+
2782
+ class ToastService {
2783
+ constructor() {
2784
+ this._toasts = [];
2785
+ this.toasts$ = new BehaviorSubject(this._toasts);
2786
+ this.defaultOptions = {
2787
+ delay: 5000,
2788
+ dismissOnAction: true,
2789
+ enableAction: true,
2790
+ icon: {
2791
+ variant: 'negative',
2792
+ },
2793
+ };
2794
+ }
2795
+ show(header, content, variant = ToastVariants.Success, options = {}) {
2796
+ options = {
2797
+ ...options,
2798
+ ...this.defaultOptions,
2799
+ icon: options?.icon
2800
+ ? { ...options.icon, ...this.defaultOptions.icon }
2801
+ : this.defaultOptions.icon,
2802
+ };
2803
+ this._toasts.push({
2804
+ header,
2805
+ content,
2806
+ variant,
2807
+ options,
2808
+ });
2809
+ this.toasts$.next(this._toasts);
2810
+ }
2811
+ hide(index) {
2812
+ this._toasts.splice(index, 1);
2813
+ this.toasts$.next(this._toasts);
2814
+ }
2815
+ }
2816
+ ToastService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
2817
+ ToastService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastService, providedIn: 'root' });
2818
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastService, decorators: [{
2819
+ type: Injectable,
2820
+ args: [{
2821
+ providedIn: 'root',
2822
+ }]
2823
+ }] });
2824
+
2825
+ let Toast = class Toast {
2826
+ constructor(c, r, z) {
2827
+ this.z = z;
2828
+ this.delay = 5000;
2829
+ this.index = 0;
2830
+ this.dismissOnAction = true;
2831
+ this.dismiss = new EventEmitter();
2832
+ c.detach();
2833
+ this.el = r.nativeElement;
2834
+ proxyOutputs(this, this.el, ['action']);
2835
+ }
2836
+ ngOnInit() {
2837
+ if (this.dismissOnAction) {
2838
+ this.el.addEventListener('action', () => this.doDismiss());
2839
+ }
2840
+ if (this.delay === 'infinite' || this.delay === 0) {
2841
+ return;
2842
+ }
2843
+ setTimeout(() => this.doDismiss(), this.delay);
2844
+ }
2845
+ doDismiss() {
2846
+ this.dismiss.next(this.index);
2847
+ }
2848
+ };
2849
+ Toast.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: Toast, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
2850
+ Toast.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: Toast, selector: "p-toast", inputs: { actionIcon: "actionIcon", actionIconFlip: "actionIconFlip", actionIconRotate: "actionIconRotate", content: "content", enableAction: "enableAction", header: "header", variant: "variant", delay: "delay", index: "index", dismissOnAction: "dismissOnAction" }, outputs: { dismiss: "dismiss" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
2851
+ Toast = __decorate([
2852
+ ProxyCmp({
2853
+ defineCustomElementFn: undefined,
2854
+ inputs: [
2855
+ 'actionIcon',
2856
+ 'actionIconFlip',
2857
+ 'actionIconRotate',
2858
+ 'content',
2859
+ 'enableAction',
2860
+ 'header',
2861
+ 'variant',
2862
+ ],
2863
+ })
2864
+ ], Toast);
2865
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: Toast, decorators: [{
2866
+ type: Component,
2867
+ args: [{
2868
+ selector: 'p-toast',
2869
+ changeDetection: ChangeDetectionStrategy.OnPush,
2870
+ template: '<ng-content></ng-content>',
2871
+ inputs: [
2872
+ 'actionIcon',
2873
+ 'actionIconFlip',
2874
+ 'actionIconRotate',
2875
+ 'content',
2876
+ 'enableAction',
2877
+ 'header',
2878
+ 'variant',
2879
+ ],
2880
+ }]
2881
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; }, propDecorators: { delay: [{
2882
+ type: Input
2883
+ }], index: [{
2884
+ type: Input
2885
+ }], dismissOnAction: [{
2886
+ type: Input
2887
+ }], dismiss: [{
2888
+ type: Output
2889
+ }] } });
2890
+
2891
+ /* top-0 bottom-0 left-0 right-0 */
2892
+ let ToastContainer = class ToastContainer {
2893
+ constructor(r, z, _toastService) {
2894
+ this.z = z;
2895
+ this._toastService = _toastService;
2896
+ this.toasts$ = this._toastService.toasts$;
2897
+ this.el = r.nativeElement;
2898
+ }
2899
+ dismiss(index) {
2900
+ this._toastService.hide(index);
2901
+ }
2902
+ };
2903
+ ToastContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastContainer, deps: [{ token: i0.ElementRef }, { token: i0.NgZone }, { token: ToastService }], target: i0.ɵɵFactoryTarget.Component });
2904
+ ToastContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: ToastContainer, selector: "p-toast-container", inputs: { placement: "placement" }, ngImport: i0, template: "<p-toast\n *ngFor=\"let toast of toasts$ | async; let index = index\"\n [variant]=\"toast.variant\"\n [header]=\"toast.header\"\n [content]=\"toast.content\"\n [index]=\"index\"\n [delay]=\"toast.options.delay ?? 5000\"\n [dismissOnAction]=\"toast.options.dismissOnAction ?? true\"\n [enableAction]=\"toast.options.enableAction\"\n [actionIcon]=\"toast.options.icon?.variant\"\n [actionIconFlip]=\"toast.options.icon?.flip\"\n [actionIconRotate]=\"toast.options.icon?.rotate\"\n (dismiss)=\"dismiss($event)\"\n [@pSlideInBottomOutTop]\n></p-toast>\n", dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: Toast, selector: "p-toast", inputs: ["actionIcon", "actionIconFlip", "actionIconRotate", "content", "enableAction", "header", "variant", "delay", "index", "dismissOnAction"], outputs: ["dismiss"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }], animations: [SLIDE_IN_BOTTOM_OUT_TOP], changeDetection: i0.ChangeDetectionStrategy.OnPush });
2905
+ ToastContainer = __decorate([
2906
+ ProxyCmp({
2907
+ defineCustomElementFn: undefined,
2908
+ inputs: ['placement'],
2909
+ })
2910
+ ], ToastContainer);
2911
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: ToastContainer, decorators: [{
2912
+ type: Component,
2913
+ args: [{ selector: 'p-toast-container', changeDetection: ChangeDetectionStrategy.OnPush, inputs: ['placement'], animations: [SLIDE_IN_BOTTOM_OUT_TOP], template: "<p-toast\n *ngFor=\"let toast of toasts$ | async; let index = index\"\n [variant]=\"toast.variant\"\n [header]=\"toast.header\"\n [content]=\"toast.content\"\n [index]=\"index\"\n [delay]=\"toast.options.delay ?? 5000\"\n [dismissOnAction]=\"toast.options.dismissOnAction ?? true\"\n [enableAction]=\"toast.options.enableAction\"\n [actionIcon]=\"toast.options.icon?.variant\"\n [actionIconFlip]=\"toast.options.icon?.flip\"\n [actionIconRotate]=\"toast.options.icon?.rotate\"\n (dismiss)=\"dismiss($event)\"\n [@pSlideInBottomOutTop]\n></p-toast>\n" }]
2914
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.NgZone }, { type: ToastService }]; } });
2915
+
2916
+ const TOAST_COMPONENTS = [Toast, ToastContainer];
2917
+
2918
+ const TOAST_SERVICES = [ToastService];
2919
+
2920
+ class PaperlessToastModule {
2921
+ }
2922
+ PaperlessToastModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaperlessToastModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2923
+ PaperlessToastModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: PaperlessToastModule, declarations: [Toast, ToastContainer], imports: [CommonModule, PaperlessStencilModule], exports: [Toast, ToastContainer] });
2924
+ PaperlessToastModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaperlessToastModule, providers: [...TOAST_SERVICES], imports: [CommonModule, PaperlessStencilModule] });
2925
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaperlessToastModule, decorators: [{
2926
+ type: NgModule,
2927
+ args: [{
2928
+ imports: [CommonModule, PaperlessStencilModule],
2929
+ declarations: [...TOAST_COMPONENTS],
2930
+ exports: [...TOAST_COMPONENTS],
2931
+ providers: [...TOAST_SERVICES],
2932
+ }]
2933
+ }] });
2934
+
2681
2935
  class CustomCurrencyPipe {
2682
2936
  constructor(_currencyPipe) {
2683
2937
  this._currencyPipe = _currencyPipe;
@@ -2744,74 +2998,29 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
2744
2998
 
2745
2999
  const PIPES = [CustomCurrencyPipe, CustomDatePipe, SafePipe];
2746
3000
 
2747
- const DIRECTIVES = [
2748
- PAccordion,
2749
- PAvatar,
2750
- PAvatarGroup,
2751
- PButton,
2752
- PCardBody,
2753
- PCardContainer,
2754
- PCardHeader,
2755
- PContentSlider,
2756
- PCounter,
2757
- PDivider,
2758
- PDropdown,
2759
- PDropdownMenuContainer,
2760
- PDropdownMenuItem,
2761
- PHelper,
2762
- PIcon,
2763
- PIllustration,
2764
- PInfoPanel,
2765
- PInputGroup,
2766
- PLabel,
2767
- PLayout,
2768
- PLoader,
2769
- PModal,
2770
- PModalBackdrop,
2771
- PModalBody,
2772
- PModalContainer,
2773
- PModalFooter,
2774
- PModalHeader,
2775
- PNavbar,
2776
- PNavigationItem,
2777
- PPageSizeSelect,
2778
- PPagination,
2779
- PPaginationItem,
2780
- PProfile,
2781
- PSegmentContainer,
2782
- PSegmentItem,
2783
- PSelect,
2784
- PSliderIndicator,
2785
- PStatus,
2786
- PStepper,
2787
- PStepperItem,
2788
- PStepperLine,
2789
- PTabGroup,
2790
- PTabItem,
2791
- PTableContainer,
2792
- PTableFooter,
2793
- PTableHeader,
2794
- PTableRow,
2795
- PTooltip
2796
- ];
2797
-
2798
3001
  const NGX_PIPES = [DatePipe, CurrencyPipe];
2799
3002
  class PaperlessModule {
2800
3003
  }
2801
3004
  PaperlessModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaperlessModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2802
- PaperlessModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: PaperlessModule, declarations: [PAccordion, PAvatar, PAvatarGroup, PButton, PCardBody, PCardContainer, PCardHeader, PContentSlider, PCounter, PDivider, PDropdown, PDropdownMenuContainer, PDropdownMenuItem, PHelper, PIcon, PIllustration, PInfoPanel, PInputGroup, PLabel, PLayout, PLoader, PModal, PModalBackdrop, PModalBody, PModalContainer, PModalFooter, PModalHeader, PNavbar, PNavigationItem, PPageSizeSelect, PPagination, PPaginationItem, PProfile, PSegmentContainer, PSegmentItem, PSelect, PSliderIndicator, PStatus, PStepper, PStepperItem, PStepperLine, PTabGroup, PTabItem, PTableContainer, PTableFooter, PTableHeader, PTableRow, PTooltip, TableComponent, TableColumn, TableCell, CustomCurrencyPipe, CustomDatePipe, SafePipe, PaginationDirective, PageSizeSelectDirective, TableFooterDirective, TableHeaderDirective, TableDirective, TableNgxDirective, SelectDirective], imports: [CommonModule], exports: [PAccordion, PAvatar, PAvatarGroup, PButton, PCardBody, PCardContainer, PCardHeader, PContentSlider, PCounter, PDivider, PDropdown, PDropdownMenuContainer, PDropdownMenuItem, PHelper, PIcon, PIllustration, PInfoPanel, PInputGroup, PLabel, PLayout, PLoader, PModal, PModalBackdrop, PModalBody, PModalContainer, PModalFooter, PModalHeader, PNavbar, PNavigationItem, PPageSizeSelect, PPagination, PPaginationItem, PProfile, PSegmentContainer, PSegmentItem, PSelect, PSliderIndicator, PStatus, PStepper, PStepperItem, PStepperLine, PTabGroup, PTabItem, PTableContainer, PTableFooter, PTableHeader, PTableRow, PTooltip, TableComponent, TableColumn, TableCell, CustomCurrencyPipe, CustomDatePipe, SafePipe, PaginationDirective, PageSizeSelectDirective, TableFooterDirective, TableHeaderDirective, TableDirective, TableNgxDirective, SelectDirective] });
2803
- PaperlessModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaperlessModule, providers: [...NGX_PIPES, ...PIPES], imports: [CommonModule] });
3005
+ PaperlessModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.7", ngImport: i0, type: PaperlessModule, declarations: [PaginationDirective, PageSizeSelectDirective, SelectDirective, CustomCurrencyPipe, CustomDatePipe, SafePipe], imports: [CommonModule,
3006
+ PaperlessStencilModule,
3007
+ PaperlessTableModule,
3008
+ PaperlessToastModule], exports: [PaginationDirective, PageSizeSelectDirective, SelectDirective, CustomCurrencyPipe, CustomDatePipe, SafePipe] });
3009
+ PaperlessModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaperlessModule, providers: [...NGX_PIPES, ...PIPES], imports: [CommonModule,
3010
+ PaperlessStencilModule,
3011
+ PaperlessTableModule,
3012
+ PaperlessToastModule] });
2804
3013
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaperlessModule, decorators: [{
2805
3014
  type: NgModule,
2806
3015
  args: [{
2807
- imports: [CommonModule],
2808
- declarations: [
2809
- ...DIRECTIVES,
2810
- ...COMPONENTS,
2811
- ...PIPES,
2812
- ...CUSTOM_DIRECTIVES,
3016
+ imports: [
3017
+ CommonModule,
3018
+ PaperlessStencilModule,
3019
+ PaperlessTableModule,
3020
+ PaperlessToastModule,
2813
3021
  ],
2814
- exports: [...DIRECTIVES, ...COMPONENTS, ...PIPES, ...CUSTOM_DIRECTIVES],
3022
+ declarations: [...DIRECTIVES$1, ...PIPES],
3023
+ exports: [...DIRECTIVES$1, ...PIPES],
2815
3024
  providers: [...NGX_PIPES, ...PIPES],
2816
3025
  }]
2817
3026
  }] });
@@ -2824,5 +3033,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
2824
3033
  * Generated bundle index. Do not edit.
2825
3034
  */
2826
3035
 
2827
- export { BaseTableComponent, BaseUploadComponent, BaseValueAccessor, COMPONENTS, CUSTOM_DIRECTIVES, CustomCurrencyPipe, CustomDatePipe, FormBaseComponent, PAccordion, PAvatar, PAvatarGroup, PButton, PCardBody, PCardContainer, PCardHeader, PContentSlider, PCounter, PDivider, PDropdown, PDropdownMenuContainer, PDropdownMenuItem, PHelper, PIPES, PIcon, PIllustration, PInfoPanel, PInputGroup, PLabel, PLayout, PLoader, PModal, PModalBackdrop, PModalBody, PModalContainer, PModalFooter, PModalHeader, PNavbar, PNavigationItem, PPageSizeSelect, PPagination, PPaginationItem, PProfile, PSegmentContainer, PSegmentItem, PSelect, PSliderIndicator, PStatus, PStepper, PStepperItem, PStepperLine, PTabGroup, PTabItem, PTableContainer, PTableFooter, PTableHeader, PTableRow, PTooltip, PageSizeSelectDirective, PaginationDirective, PaperlessModule, SafePipe, SelectDirective, TableCell, TableColumn, TableComponent, TableDirective, TableFooterDirective, TableHeaderDirective, TableNgxDirective };
3036
+ export { BaseTableComponent, BaseUploadComponent, BaseValueAccessor, CustomCurrencyPipe, CustomDatePipe, DIRECTIVES$1 as DIRECTIVES, FormBaseComponent, PAccordion, PAvatar, PAvatarGroup, PButton, PCardBody, PCardContainer, PCardHeader, PContentSlider, PCounter, PDivider, PDropdown, PDropdownMenuContainer, PDropdownMenuItem, PHelper, PIPES, PIcon, PIllustration, PInfoPanel, PInputGroup, PLabel, PLayout, PLoader, PModal, PModalBackdrop, PModalBody, PModalContainer, PModalFooter, PModalHeader, PNavbar, PNavigationItem, PPageSizeSelect, PPagination, PPaginationItem, PProfile, PSegmentContainer, PSegmentItem, PSelect, PSliderIndicator, PStatus, PStepper, PStepperItem, PStepperLine, PTabGroup, PTabItem, PTableContainer, PTableFooter, PTableHeader, PTableRow, PTooltip, PageSizeSelectDirective, PaginationDirective, PaperlessModule, PaperlessStencilModule, PaperlessTableModule, PaperlessToastModule, SafePipe, SelectDirective, TABLE_COMPONENTS, TABLE_DIRECTIVES, TOAST_COMPONENTS, TOAST_SERVICES, Table, TableCell, TableColumn, TableDirective, TableFooterDirective, TableHeaderDirective, TableNgxDirective, Toast, ToastContainer, ToastService, ToastVariants };
2828
3037
  //# sourceMappingURL=paperless-angular.mjs.map