@paperless/angular 0.1.0-alpha.163 → 0.1.0-alpha.167
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.
- package/esm2020/lib/directives/index.mjs +2 -3
- package/esm2020/lib/paperless.module.mjs +1 -1
- package/esm2020/lib/stencil/components.mjs +1 -24
- package/esm2020/lib/stencil/index.mjs +1 -2
- package/fesm2015/paperless-angular.mjs +55 -128
- package/fesm2015/paperless-angular.mjs.map +1 -1
- package/fesm2020/paperless-angular.mjs +55 -128
- package/fesm2020/paperless-angular.mjs.map +1 -1
- package/lib/directives/index.d.ts +0 -1
- package/lib/paperless.module.d.ts +1 -1
- package/lib/stencil/components.d.ts +0 -9
- package/lib/stencil/index.d.ts +1 -1
- package/package.json +1 -1
- package/esm2020/lib/directives/p-table-definition.directive.mjs +0 -55
- package/lib/directives/p-table-definition.directive.d.ts +0 -21
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, EventEmitter, Input, Output, ViewChild, Directive, HostListener,
|
|
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);
|
|
@@ -711,15 +610,66 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
|
|
|
711
610
|
}]
|
|
712
611
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
|
|
713
612
|
|
|
613
|
+
// Custom directives
|
|
714
614
|
const CUSTOM_DIRECTIVES = [
|
|
715
615
|
PaginationDirective,
|
|
716
616
|
PageSizeSelectDirective,
|
|
717
617
|
TableFooterDirective,
|
|
718
618
|
TableHeaderDirective,
|
|
719
619
|
TableDirective,
|
|
720
|
-
// TableDefinition,
|
|
721
620
|
];
|
|
722
621
|
|
|
622
|
+
/* eslint-disable */
|
|
623
|
+
const proxyInputs = (Cmp, inputs) => {
|
|
624
|
+
const Prototype = Cmp.prototype;
|
|
625
|
+
inputs.forEach(item => {
|
|
626
|
+
Object.defineProperty(Prototype, item, {
|
|
627
|
+
get() {
|
|
628
|
+
return this.el[item];
|
|
629
|
+
},
|
|
630
|
+
set(val) {
|
|
631
|
+
this.z.runOutsideAngular(() => (this.el[item] = val));
|
|
632
|
+
}
|
|
633
|
+
});
|
|
634
|
+
});
|
|
635
|
+
};
|
|
636
|
+
const proxyMethods = (Cmp, methods) => {
|
|
637
|
+
const Prototype = Cmp.prototype;
|
|
638
|
+
methods.forEach(methodName => {
|
|
639
|
+
Prototype[methodName] = function () {
|
|
640
|
+
const args = arguments;
|
|
641
|
+
return this.z.runOutsideAngular(() => this.el[methodName].apply(this.el, args));
|
|
642
|
+
};
|
|
643
|
+
});
|
|
644
|
+
};
|
|
645
|
+
const proxyOutputs = (instance, el, events) => {
|
|
646
|
+
events.forEach(eventName => instance[eventName] = fromEvent(el, eventName));
|
|
647
|
+
};
|
|
648
|
+
const defineCustomElement = (tagName, customElement) => {
|
|
649
|
+
if (customElement !== undefined &&
|
|
650
|
+
typeof customElements !== 'undefined' &&
|
|
651
|
+
!customElements.get(tagName)) {
|
|
652
|
+
customElements.define(tagName, customElement);
|
|
653
|
+
}
|
|
654
|
+
};
|
|
655
|
+
// tslint:disable-next-line: only-arrow-functions
|
|
656
|
+
function ProxyCmp(opts) {
|
|
657
|
+
const decorator = function (cls) {
|
|
658
|
+
const { defineCustomElementFn, inputs, methods } = opts;
|
|
659
|
+
if (defineCustomElementFn !== undefined) {
|
|
660
|
+
defineCustomElementFn();
|
|
661
|
+
}
|
|
662
|
+
if (inputs) {
|
|
663
|
+
proxyInputs(cls, inputs);
|
|
664
|
+
}
|
|
665
|
+
if (methods) {
|
|
666
|
+
proxyMethods(cls, methods);
|
|
667
|
+
}
|
|
668
|
+
return cls;
|
|
669
|
+
};
|
|
670
|
+
return decorator;
|
|
671
|
+
}
|
|
672
|
+
|
|
723
673
|
let PAccordion = class PAccordion {
|
|
724
674
|
constructor(c, r, z) {
|
|
725
675
|
this.z = z;
|
|
@@ -1726,28 +1676,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
|
|
|
1726
1676
|
inputs: ['activeQuickFilterIdentifier', 'amountOfLoadingRows', 'canSelectKey', 'editButtonTemplate', 'enableEdit', 'enableExport', 'enableFilter', 'enablePageSize', 'enablePagination', 'enableRowClick', 'enableRowSelection', 'enableSearch', 'filterButtonTemplate', 'hideOnSinglePage', 'items', 'loading', 'page', 'pageSize', 'pageSizeOptions', 'query', 'quickFilters', 'selectedFiltersAmount', 'selectedRows', 'selectionKey', 'total']
|
|
1727
1677
|
}]
|
|
1728
1678
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
1729
|
-
let PTableBody = class PTableBody {
|
|
1730
|
-
constructor(c, r, z) {
|
|
1731
|
-
this.z = z;
|
|
1732
|
-
c.detach();
|
|
1733
|
-
this.el = r.nativeElement;
|
|
1734
|
-
}
|
|
1735
|
-
};
|
|
1736
|
-
PTableBody.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PTableBody, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: i0.NgZone }], target: i0.ɵɵFactoryTarget.Component });
|
|
1737
|
-
PTableBody.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: PTableBody, selector: "p-table-body", ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
1738
|
-
PTableBody = __decorate([
|
|
1739
|
-
ProxyCmp({
|
|
1740
|
-
defineCustomElementFn: undefined
|
|
1741
|
-
})
|
|
1742
|
-
], PTableBody);
|
|
1743
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PTableBody, decorators: [{
|
|
1744
|
-
type: Component,
|
|
1745
|
-
args: [{
|
|
1746
|
-
selector: 'p-table-body',
|
|
1747
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1748
|
-
template: '<ng-content></ng-content>'
|
|
1749
|
-
}]
|
|
1750
|
-
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: i0.NgZone }]; } });
|
|
1751
1679
|
let PTableContainer = class PTableContainer {
|
|
1752
1680
|
constructor(c, r, z) {
|
|
1753
1681
|
this.z = z;
|
|
@@ -1937,7 +1865,6 @@ const DIRECTIVES = [
|
|
|
1937
1865
|
PTabGroup,
|
|
1938
1866
|
PTabItem,
|
|
1939
1867
|
PTable,
|
|
1940
|
-
PTableBody,
|
|
1941
1868
|
PTableContainer,
|
|
1942
1869
|
PTableFooter,
|
|
1943
1870
|
PTableHeader,
|
|
@@ -1949,7 +1876,7 @@ const DIRECTIVES = [
|
|
|
1949
1876
|
class PaperlessModule {
|
|
1950
1877
|
}
|
|
1951
1878
|
PaperlessModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaperlessModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1952
|
-
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, PLayout, PLoader, PModal, PModalBackdrop, PModalBody, PModalContainer, PModalFooter, PModalHeader, PNavbar, PNavigationItem, PPageSizeSelect, PPagination, PPaginationItem, PProfile, PSegmentContainer, PSegmentItem, PSliderIndicator, PStatus, PStepper, PStepperItem, PStepperLine, PTabGroup, PTabItem, PTable,
|
|
1879
|
+
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, PLayout, PLoader, PModal, PModalBackdrop, PModalBody, PModalContainer, PModalFooter, PModalHeader, PNavbar, PNavigationItem, PPageSizeSelect, PPagination, PPaginationItem, PProfile, PSegmentContainer, PSegmentItem, PSliderIndicator, PStatus, PStepper, PStepperItem, PStepperLine, PTabGroup, PTabItem, PTable, PTableContainer, PTableFooter, PTableHeader, PTableRow, PTag, PTooltip, PaginationDirective, PageSizeSelectDirective, TableFooterDirective, TableHeaderDirective, TableDirective], exports: [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, PTableContainer, PTableFooter, PTableHeader, PTableRow, PTag, PTooltip, PaginationDirective, PageSizeSelectDirective, TableFooterDirective, TableHeaderDirective, TableDirective] });
|
|
1953
1880
|
PaperlessModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaperlessModule });
|
|
1954
1881
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: PaperlessModule, decorators: [{
|
|
1955
1882
|
type: NgModule,
|
|
@@ -1967,5 +1894,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImpor
|
|
|
1967
1894
|
* Generated bundle index. Do not edit.
|
|
1968
1895
|
*/
|
|
1969
1896
|
|
|
1970
|
-
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,
|
|
1897
|
+
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, PTableContainer, PTableFooter, PTableHeader, PTableRow, PTag, PTooltip, PageSizeSelectDirective, PaginationDirective, PaperlessModule, TableDirective, TableFooterDirective, TableHeaderDirective };
|
|
1971
1898
|
//# sourceMappingURL=paperless-angular.mjs.map
|