@paperless/angular 0.1.0-alpha.163 → 0.1.0-alpha.165

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,6 +1,5 @@
1
1
  export * from './p-page-size-select.directive';
2
2
  export * from './p-pagination.directive';
3
- export * from './p-table-definition.directive';
4
3
  export * from './p-table-footer.directive';
5
4
  export * from './p-table-header.directive';
6
5
  export * from './p-table.directive';
@@ -9,12 +8,12 @@ import { PaginationDirective } from './p-pagination.directive';
9
8
  import { TableFooterDirective } from './p-table-footer.directive';
10
9
  import { TableHeaderDirective } from './p-table-header.directive';
11
10
  import { TableDirective } from './p-table.directive';
11
+ // Custom directives
12
12
  export const CUSTOM_DIRECTIVES = [
13
13
  PaginationDirective,
14
14
  PageSizeSelectDirective,
15
15
  TableFooterDirective,
16
16
  TableHeaderDirective,
17
17
  TableDirective,
18
- // TableDefinition,
19
18
  ];
20
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9wYXBlcmxlc3Mvc3JjL2xpYi9kaXJlY3RpdmVzL2luZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLGNBQWMsZ0NBQWdDLENBQUM7QUFDL0MsY0FBYywwQkFBMEIsQ0FBQztBQUN6QyxjQUFjLGdDQUFnQyxDQUFDO0FBQy9DLGNBQWMsNEJBQTRCLENBQUM7QUFDM0MsY0FBYyw0QkFBNEIsQ0FBQztBQUMzQyxjQUFjLHFCQUFxQixDQUFDO0FBRXBDLE9BQU8sRUFBRSx1QkFBdUIsRUFBRSxNQUFNLGdDQUFnQyxDQUFDO0FBQ3pFLE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLDBCQUEwQixDQUFDO0FBQy9ELE9BQU8sRUFBRSxvQkFBb0IsRUFB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gVGFibGVGb290ZXJEaXJlY3RpdmUsXG4gICAgVGFibGVIZWFkZXJEaXJlY3RpdmUsXG4gICAgVGFibGVEaXJlY3RpdmUsXG5dO1xuIl19
@@ -1,5 +1,5 @@
1
1
  import * as i0 from '@angular/core';
2
- import { Component, EventEmitter, Input, Output, ViewChild, Directive, HostListener, TemplateRef, ChangeDetectionStrategy, ContentChild, NgModule } from '@angular/core';
2
+ import { Component, EventEmitter, Input, Output, ViewChild, Directive, HostListener, ChangeDetectionStrategy, NgModule } from '@angular/core';
3
3
  import { FormControl, FormGroup, FormArray, NG_VALUE_ACCESSOR } from '@angular/forms';
4
4
  import { __decorate } from 'tslib';
5
5
  import { untilDestroyed, UntilDestroy } from '@ngneat/until-destroy';
@@ -432,107 +432,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
432
432
  }]
433
433
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
434
434
 
435
- /* eslint-disable */
436
- const proxyInputs = (Cmp, inputs) => {
437
- const Prototype = Cmp.prototype;
438
- inputs.forEach(item => {
439
- Object.defineProperty(Prototype, item, {
440
- get() {
441
- return this.el[item];
442
- },
443
- set(val) {
444
- this.z.runOutsideAngular(() => (this.el[item] = val));
445
- }
446
- });
447
- });
448
- };
449
- const proxyMethods = (Cmp, methods) => {
450
- const Prototype = Cmp.prototype;
451
- methods.forEach(methodName => {
452
- Prototype[methodName] = function () {
453
- const args = arguments;
454
- return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));
455
- };
456
- });
457
- };
458
- const proxyOutputs = (instance, el, events) => {
459
- events.forEach(eventName => instance[eventName] = fromEvent(el, eventName));
460
- };
461
- const defineCustomElement = (tagName, customElement) => {
462
- if (customElement !== undefined &&
463
- typeof customElements !== 'undefined' &&
464
- !customElements.get(tagName)) {
465
- customElements.define(tagName, customElement);
466
- }
467
- };
468
- // tslint:disable-next-line: only-arrow-functions
469
- function ProxyCmp(opts) {
470
- const decorator = function (cls) {
471
- const { defineCustomElementFn, inputs, methods } = opts;
472
- if (defineCustomElementFn !== undefined) {
473
- defineCustomElementFn();
474
- }
475
- if (inputs) {
476
- proxyInputs(cls, inputs);
477
- }
478
- if (methods) {
479
- proxyMethods(cls, methods);
480
- }
481
- return cls;
482
- };
483
- return decorator;
484
- }
485
-
486
- let TableDefinition = class TableDefinition {
487
- constructor(c, r, z, _vc) {
488
- this.z = z;
489
- this._vc = _vc;
490
- c.detach();
491
- this.el = r.nativeElement;
492
- proxyOutputs(this, this.el, ['tableDefinitionChanged']);
493
- }
494
- get template() {
495
- return this._getTemplate;
496
- }
497
- ngOnInit() {
498
- console.log('Ng On Init');
499
- console.log(this.templateRef);
500
- console.log(this.templateRef
501
- ? this._vc.createEmbeddedView(this.templateRef, {
502
- value: 'test',
503
- item: { value: 'test' },
504
- index: 123,
505
- })
506
- : null);
507
- }
508
- _getTemplate(data) {
509
- if (!this.templateRef) {
510
- return;
511
- }
512
- return this._vc.createEmbeddedView(this.templateRef, data);
513
- }
514
- };
515
- TableDefinition.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableDefinition, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }, { token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
516
- TableDefinition.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: TableDefinition, selector: "p-table-definition", inputs: { align: "align", name: "name", path: "path", sizes: "sizes", type: "type" }, queries: [{ propertyName: "templateRef", first: true, predicate: TemplateRef, descendants: true }], ngImport: i0, template: '', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
517
- TableDefinition = __decorate([
518
- ProxyCmp({
519
- defineCustomElementFn: undefined,
520
- inputs: ['align', 'name', 'path', 'sizes', 'type', 'template'],
521
- })
522
- ], TableDefinition);
523
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: TableDefinition, decorators: [{
524
- type: Component,
525
- args: [{
526
- selector: 'p-table-definition',
527
- changeDetection: ChangeDetectionStrategy.OnPush,
528
- template: '',
529
- inputs: ['align', 'name', 'path', 'sizes', 'type'],
530
- }]
531
- }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }, { type: i0.ViewContainerRef }]; }, propDecorators: { templateRef: [{
532
- type: ContentChild,
533
- args: [TemplateRef, { static: false }]
534
- }] } });
535
-
536
435
  class TableFooterDirective extends BaseValueAccessor {
537
436
  constructor(el) {
538
437
  super(el);
@@ -702,15 +601,66 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
702
601
  }]
703
602
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
704
603
 
604
+ // Custom directives
705
605
  const CUSTOM_DIRECTIVES = [
706
606
  PaginationDirective,
707
607
  PageSizeSelectDirective,
708
608
  TableFooterDirective,
709
609
  TableHeaderDirective,
710
610
  TableDirective,
711
- // TableDefinition,
712
611
  ];
713
612
 
613
+ /* eslint-disable */
614
+ const proxyInputs = (Cmp, inputs) => {
615
+ const Prototype = Cmp.prototype;
616
+ inputs.forEach(item => {
617
+ Object.defineProperty(Prototype, item, {
618
+ get() {
619
+ return this.el[item];
620
+ },
621
+ set(val) {
622
+ this.z.runOutsideAngular(() => (this.el[item] = val));
623
+ }
624
+ });
625
+ });
626
+ };
627
+ const proxyMethods = (Cmp, methods) => {
628
+ const Prototype = Cmp.prototype;
629
+ methods.forEach(methodName => {
630
+ Prototype[methodName] = function () {
631
+ const args = arguments;
632
+ return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));
633
+ };
634
+ });
635
+ };
636
+ const proxyOutputs = (instance, el, events) => {
637
+ events.forEach(eventName => instance[eventName] = fromEvent(el, eventName));
638
+ };
639
+ const defineCustomElement = (tagName, customElement) => {
640
+ if (customElement !== undefined &&
641
+ typeof customElements !== 'undefined' &&
642
+ !customElements.get(tagName)) {
643
+ customElements.define(tagName, customElement);
644
+ }
645
+ };
646
+ // tslint:disable-next-line: only-arrow-functions
647
+ function ProxyCmp(opts) {
648
+ const decorator = function (cls) {
649
+ const { defineCustomElementFn, inputs, methods } = opts;
650
+ if (defineCustomElementFn !== undefined) {
651
+ defineCustomElementFn();
652
+ }
653
+ if (inputs) {
654
+ proxyInputs(cls, inputs);
655
+ }
656
+ if (methods) {
657
+ proxyMethods(cls, methods);
658
+ }
659
+ return cls;
660
+ };
661
+ return decorator;
662
+ }
663
+
714
664
  let PAccordion = class PAccordion {
715
665
  constructor(c, r, z) {
716
666
  this.z = z;
@@ -1958,5 +1908,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
1958
1908
  * Generated bundle index. Do not edit.
1959
1909
  */
1960
1910
 
1961
- export { BaseTableComponent, BaseUploadComponent, BaseValueAccessor, CUSTOM_DIRECTIVES, FormBaseComponent, PAccordion, PAvatar, PAvatarGroup, PButton, PCardBody, PCardContainer, PCardHeader, PContentSlider, PCounter, PDivider, PDropdown, PDropdownMenuContainer, PDropdownMenuItem, PHelper, PIcon, PIllustration, PInfoPanel, PInputGroup, PLayout, PLoader, PModal, PModalBackdrop, PModalBody, PModalContainer, PModalFooter, PModalHeader, PNavbar, PNavigationItem, PPageSizeSelect, PPagination, PPaginationItem, PProfile, PSegmentContainer, PSegmentItem, PSliderIndicator, PStatus, PStepper, PStepperItem, PStepperLine, PTabGroup, PTabItem, PTable, PTableBody, PTableContainer, PTableFooter, PTableHeader, PTableRow, PTag, PTooltip, PageSizeSelectDirective, PaginationDirective, PaperlessModule, TableDefinition, TableDirective, TableFooterDirective, TableHeaderDirective };
1911
+ export { BaseTableComponent, BaseUploadComponent, BaseValueAccessor, CUSTOM_DIRECTIVES, FormBaseComponent, PAccordion, PAvatar, PAvatarGroup, PButton, PCardBody, PCardContainer, PCardHeader, PContentSlider, PCounter, PDivider, PDropdown, PDropdownMenuContainer, PDropdownMenuItem, PHelper, PIcon, PIllustration, PInfoPanel, PInputGroup, PLayout, PLoader, PModal, PModalBackdrop, PModalBody, PModalContainer, PModalFooter, PModalHeader, PNavbar, PNavigationItem, PPageSizeSelect, PPagination, PPaginationItem, PProfile, PSegmentContainer, PSegmentItem, PSliderIndicator, PStatus, PStepper, PStepperItem, PStepperLine, PTabGroup, PTabItem, PTable, PTableBody, PTableContainer, PTableFooter, PTableHeader, PTableRow, PTag, PTooltip, PageSizeSelectDirective, PaginationDirective, PaperlessModule, TableDirective, TableFooterDirective, TableHeaderDirective };
1962
1912
  //# sourceMappingURL=paperless-angular.mjs.map