@paperless/angular 0.1.0-alpha.310 → 0.1.0-alpha.312

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.
@@ -1,10 +1,11 @@
1
+ import { trigger, transition, style, animate } from '@angular/animations';
1
2
  import * as i0 from '@angular/core';
2
3
  import { EventEmitter, Component, Input, Output, ViewChild, Directive, HostListener, ChangeDetectionStrategy, NgModule, Injector, Injectable, HostBinding, TemplateRef, ContentChild, ContentChildren, Host, Pipe } from '@angular/core';
3
4
  import { NG_VALUE_ACCESSOR, FormControl, FormGroup, FormArray } from '@angular/forms';
4
5
  import * as i1$1 from '@angular/common';
5
6
  import { CommonModule, DatePipe, CurrencyPipe } from '@angular/common';
6
7
  import { __decorate } from 'tslib';
7
- import { fromEvent, timer, BehaviorSubject, distinctUntilChanged, map as map$1 } from 'rxjs';
8
+ import { fromEvent, Subject, timer, BehaviorSubject, distinctUntilChanged, map as map$1 } from 'rxjs';
8
9
  import { ObserversModule } from '@angular/cdk/observers';
9
10
  import * as i1 from '@angular/cdk/overlay';
10
11
  import { OverlayModule as OverlayModule$1, OverlayConfig } from '@angular/cdk/overlay';
@@ -13,9 +14,48 @@ import { PortalModule, CdkPortal, ComponentPortal } from '@angular/cdk/portal';
13
14
  import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
14
15
  import { startWith, pairwise, map, filter, debounce } from 'rxjs/operators';
15
16
  import { objectGetByPath } from '@paperless/core';
16
- import { trigger, transition, style, animate } from '@angular/animations';
17
17
  import * as i1$2 from '@angular/platform-browser';
18
18
 
19
+ const FADE_IN = trigger('pFadeIn', [
20
+ transition(':enter', [
21
+ style({
22
+ opacity: 0,
23
+ }),
24
+ animate('1s ease-in', style({
25
+ opacity: 1,
26
+ })),
27
+ ]),
28
+ ]);
29
+ const FADE_OUT = trigger('pFadeOut', [
30
+ transition(':leave', [
31
+ style({
32
+ opacity: 1,
33
+ }),
34
+ animate('1s ease-out', style({
35
+ opacity: 0,
36
+ })),
37
+ ]),
38
+ ]);
39
+
40
+ const SLIDE_IN_BOTTOM_OUT_TOP = trigger('pSlideInBottomOutTop', [
41
+ transition(':enter', [
42
+ style({ transform: 'translateY(50%)', opacity: 0 }),
43
+ animate('200ms ease-in', style({ transform: 'translateX(0%)', opacity: 1 })),
44
+ ]),
45
+ transition(':leave', [
46
+ animate('200ms ease-in', style({ transform: 'translateY(-100%)', opacity: 0 })),
47
+ ]),
48
+ ]);
49
+ const SLIDE_IN_TOP_OUT_BOTTOM = trigger('pSlideInBottomOutTop', [
50
+ transition(':enter', [
51
+ style({ transform: 'translateY(-100%)', opacity: 0 }),
52
+ animate('200ms ease-in', style({ transform: 'translateX(0%)', opacity: 1 })),
53
+ ]),
54
+ transition(':leave', [
55
+ animate('200ms ease-in', style({ transform: 'translateY(50%)', opacity: 0 })),
56
+ ]),
57
+ ]);
58
+
19
59
  class BaseUploadComponent {
20
60
  constructor() {
21
61
  this.uploaded = false;
@@ -1683,9 +1723,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImpor
1683
1723
  class OverlayRef {
1684
1724
  constructor(_overlay) {
1685
1725
  this._overlay = _overlay;
1726
+ this.closed$ = new Subject();
1686
1727
  }
1687
1728
  close() {
1688
1729
  this._overlay.dispose();
1730
+ this.closed$.next(null);
1689
1731
  }
1690
1732
  }
1691
1733
 
@@ -3219,25 +3261,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImpor
3219
3261
  }]
3220
3262
  }] });
3221
3263
 
3222
- const SLIDE_IN_BOTTOM_OUT_TOP = trigger('pSlideInBottomOutTop', [
3223
- transition(':enter', [
3224
- style({ transform: 'translateY(50%)', opacity: 0 }),
3225
- animate('200ms ease-in', style({ transform: 'translateX(0%)', opacity: 1 })),
3226
- ]),
3227
- transition(':leave', [
3228
- animate('200ms ease-in', style({ transform: 'translateY(-100%)', opacity: 0 })),
3229
- ]),
3230
- ]);
3231
- const SLIDE_IN_TOP_OUT_BOTTOM = trigger('pSlideInBottomOutTop', [
3232
- transition(':enter', [
3233
- style({ transform: 'translateY(-100%)', opacity: 0 }),
3234
- animate('200ms ease-in', style({ transform: 'translateX(0%)', opacity: 1 })),
3235
- ]),
3236
- transition(':leave', [
3237
- animate('200ms ease-in', style({ transform: 'translateY(50%)', opacity: 0 })),
3238
- ]),
3239
- ]);
3240
-
3241
3264
  var ToastVariants;
3242
3265
  (function (ToastVariants) {
3243
3266
  ToastVariants["Success"] = "positive";
@@ -3484,5 +3507,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImpor
3484
3507
  * Generated bundle index. Do not edit.
3485
3508
  */
3486
3509
 
3487
- export { BaseFormComponent, BaseTableComponent, BaseUploadComponent, BaseValueAccessor, CustomCurrencyPipe, CustomDatePipe, DIRECTIVES$1 as DIRECTIVES, MODULES, OVERLAY_SERVICES, OverlayModule, OverlayRef, OverlayService, PAccordion, PAvatar, PAvatarGroup, PBackdrop, PButton, PCalendar, PCardBody, PCardContainer, PCardHeader, PContentSlider, PCounter, PDivider, PDrawer, PDrawerBody, PDrawerContainer, PDrawerHeader, PDropdown, PDropdownMenuContainer, PDropdownMenuItem, PHelper, PIPES, PIcon, PIllustration, PInfoPanel, PInputGroup, PLabel, PLayout, PLoader, PModal, PModalBody, PModalContainer, PModalFooter, PModalHeader, PNavbar, PNavigationItem, PPageSizeSelect, PPagination, PPaginationItem, PProfile, PSegmentContainer, PSegmentItem, PSelect, PSliderIndicator, PStatus, PStepper, PStepperItem, PStepperLine, PTabGroup, PTabItem, PTableContainer, PTableFooter, PTableHeader, PTableRow, PToast, PTooltip, PageSizeSelectDirective, PaginationDirective, PaperlessModule, SafePipe, SelectDirective, StencilModule, TABLE_COMPONENTS, TABLE_DIRECTIVES, TOAST_COMPONENTS, TOAST_DIRECTIVES, TOAST_SERVICES, Table, TableCell, TableColumn, TableDirective, TableFilterModalDirective, TableFooterDirective, TableHeaderDirective, TableModule, TableNgxDirective, ToastContainer, ToastDirective, ToastModule, ToastService, ToastVariants, createFormFilters };
3510
+ export { BaseFormComponent, BaseTableComponent, BaseUploadComponent, BaseValueAccessor, CustomCurrencyPipe, CustomDatePipe, DIRECTIVES$1 as DIRECTIVES, FADE_IN, FADE_OUT, MODULES, OVERLAY_SERVICES, OverlayModule, OverlayRef, OverlayService, PAccordion, PAvatar, PAvatarGroup, PBackdrop, PButton, PCalendar, PCardBody, PCardContainer, PCardHeader, PContentSlider, PCounter, PDivider, PDrawer, PDrawerBody, PDrawerContainer, PDrawerHeader, PDropdown, PDropdownMenuContainer, PDropdownMenuItem, PHelper, PIPES, PIcon, PIllustration, PInfoPanel, PInputGroup, PLabel, PLayout, PLoader, PModal, PModalBody, PModalContainer, PModalFooter, PModalHeader, PNavbar, PNavigationItem, PPageSizeSelect, PPagination, PPaginationItem, PProfile, PSegmentContainer, PSegmentItem, PSelect, PSliderIndicator, PStatus, PStepper, PStepperItem, PStepperLine, PTabGroup, PTabItem, PTableContainer, PTableFooter, PTableHeader, PTableRow, PToast, PTooltip, PageSizeSelectDirective, PaginationDirective, PaperlessModule, SLIDE_IN_BOTTOM_OUT_TOP, SLIDE_IN_TOP_OUT_BOTTOM, SafePipe, SelectDirective, StencilModule, TABLE_COMPONENTS, TABLE_DIRECTIVES, TOAST_COMPONENTS, TOAST_DIRECTIVES, TOAST_SERVICES, Table, TableCell, TableColumn, TableDirective, TableFilterModalDirective, TableFooterDirective, TableHeaderDirective, TableModule, TableNgxDirective, ToastContainer, ToastDirective, ToastModule, ToastService, ToastVariants, createFormFilters };
3488
3511
  //# sourceMappingURL=paperless-angular.mjs.map