@coolon/angular-ui-powerups 1.13.2 → 1.13.3
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/CHANGELOG.md +7 -0
- package/bundles/coolon-angular-ui-powerups.umd.js +104 -103
- package/bundles/coolon-angular-ui-powerups.umd.js.map +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js +1 -1
- package/bundles/coolon-angular-ui-powerups.umd.min.js.map +1 -1
- package/coolon-angular-ui-powerups.metadata.json +1 -1
- package/esm2015/lib/components/index.js +1 -0
- package/esm2015/lib/components/index.js.map +1 -1
- package/esm2015/lib/components/index.metadata.json +1 -1
- package/esm2015/lib/components/table/cell-protal-ref.js +89 -0
- package/esm2015/lib/components/table/cell-protal-ref.js.map +1 -0
- package/esm2015/lib/components/table/cell-protal-ref.metadata.json +1 -0
- package/esm2015/lib/components/table/column-model.js +1 -87
- package/esm2015/lib/components/table/column-model.js.map +1 -1
- package/esm2015/lib/components/table/column-model.metadata.json +1 -1
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.js +2 -1
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/table/table-cell-renderer/table-cell-renderer.component.metadata.json +1 -1
- package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js +2 -1
- package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js.map +1 -1
- package/esm2015/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.metadata.json +1 -1
- package/esm5/lib/components/index.js +1 -0
- package/esm5/lib/components/index.js.map +1 -1
- package/esm5/lib/components/table/cell-protal-ref.js +113 -0
- package/esm5/lib/components/table/cell-protal-ref.js.map +1 -0
- package/esm5/lib/components/table/column-model.js +2 -111
- package/esm5/lib/components/table/column-model.js.map +1 -1
- package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.js +2 -1
- package/esm5/lib/components/table/table-cell-renderer/table-cell-renderer.component.js.map +1 -1
- package/esm5/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js +2 -1
- package/esm5/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.js.map +1 -1
- package/fesm2015/coolon-angular-ui-powerups.js +87 -86
- package/fesm2015/coolon-angular-ui-powerups.js.map +1 -1
- package/fesm5/coolon-angular-ui-powerups.js +104 -103
- package/fesm5/coolon-angular-ui-powerups.js.map +1 -1
- package/lib/components/index.d.ts +1 -0
- package/lib/components/table/cell-protal-ref.d.ts +53 -0
- package/lib/components/table/column-model.d.ts +2 -48
- package/lib/components/table/table-cell-renderer/table-cell-renderer.component.d.ts +2 -1
- package/lib/components/table/table-header-cell-renderer/table-header-cell-renderer.component.d.ts +2 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
|
|
4
4
|
|
|
5
|
+
### [1.13.3](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.13.2...v1.13.3) (2020-06-15)
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* removed circular dep between columns and renderers ([4d952d8](https://bitbucket.org/coolon/angular-ui-powerups/commit/4d952d8f32eb2a6a80eb363501acb1c66e1ca3cb))
|
|
11
|
+
|
|
5
12
|
### [1.13.2](https://bitbucket.org/coolon/angular-ui-powerups/compare/v1.13.1...v1.13.2) (2020-06-13)
|
|
6
13
|
|
|
7
14
|
|
|
@@ -2578,6 +2578,110 @@
|
|
|
2578
2578
|
return SwitchCaseComponent;
|
|
2579
2579
|
}(DisposableComponent));
|
|
2580
2580
|
|
|
2581
|
+
var HEADER_CELL_RENDERER_PORTAL = Symbol('aup-cell-header-renderer-component-ref');
|
|
2582
|
+
var CELL_RENDERER_PORTAL = Symbol('aup-cell-renderer-component-ref');
|
|
2583
|
+
var CELL_EDITOR_PORTAL = Symbol('aup-cell-editor-component-ref');
|
|
2584
|
+
var PORTAL_RENDERER_COMPONENT = Symbol('aup-cell-renderer-portal-component');
|
|
2585
|
+
var PORTAL_EDITOR_COMPONENT = Symbol('aup-cell-editor-portal-component');
|
|
2586
|
+
var CellPortalRef = /** @class */ (function () {
|
|
2587
|
+
function CellPortalRef() {
|
|
2588
|
+
}
|
|
2589
|
+
return CellPortalRef;
|
|
2590
|
+
}());
|
|
2591
|
+
var CellHeaderPortalRef = /** @class */ (function (_super) {
|
|
2592
|
+
__extends(CellHeaderPortalRef, _super);
|
|
2593
|
+
function CellHeaderPortalRef(componentType, initialiseHeader) {
|
|
2594
|
+
var _this = _super.call(this) || this;
|
|
2595
|
+
_this.componentType = componentType;
|
|
2596
|
+
_this.initialiseHeader = initialiseHeader;
|
|
2597
|
+
return _this;
|
|
2598
|
+
}
|
|
2599
|
+
CellHeaderPortalRef.prototype.initialiseHost = function (host, columnModel) {
|
|
2600
|
+
typescriptUtilities.assert.isTruthy(host);
|
|
2601
|
+
host[HEADER_CELL_RENDERER_PORTAL] = new portal.ComponentPortal(this.componentType);
|
|
2602
|
+
};
|
|
2603
|
+
CellHeaderPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2604
|
+
this.initialiseHeader(portalComponent, host.column);
|
|
2605
|
+
};
|
|
2606
|
+
return CellHeaderPortalRef;
|
|
2607
|
+
}(CellPortalRef));
|
|
2608
|
+
var CellRendererPortalRef = /** @class */ (function (_super) {
|
|
2609
|
+
__extends(CellRendererPortalRef, _super);
|
|
2610
|
+
function CellRendererPortalRef() {
|
|
2611
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2612
|
+
}
|
|
2613
|
+
return CellRendererPortalRef;
|
|
2614
|
+
}(CellPortalRef));
|
|
2615
|
+
var ComponentCellRendererPortalRef = /** @class */ (function (_super) {
|
|
2616
|
+
__extends(ComponentCellRendererPortalRef, _super);
|
|
2617
|
+
function ComponentCellRendererPortalRef(componentType, updateComponent) {
|
|
2618
|
+
var _this = _super.call(this) || this;
|
|
2619
|
+
_this.componentType = componentType;
|
|
2620
|
+
_this.updateComponent = updateComponent;
|
|
2621
|
+
return _this;
|
|
2622
|
+
}
|
|
2623
|
+
ComponentCellRendererPortalRef.prototype.initialiseHost = function (host, columnModel) {
|
|
2624
|
+
host[CELL_RENDERER_PORTAL] = new portal.ComponentPortal(this.componentType);
|
|
2625
|
+
};
|
|
2626
|
+
ComponentCellRendererPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2627
|
+
host[PORTAL_RENDERER_COMPONENT] = portalComponent;
|
|
2628
|
+
this.updateComponent(portalComponent, host.getRowData());
|
|
2629
|
+
};
|
|
2630
|
+
ComponentCellRendererPortalRef.prototype.pushState = function (host) {
|
|
2631
|
+
if (host[PORTAL_RENDERER_COMPONENT]) {
|
|
2632
|
+
this.updateComponent(host[PORTAL_RENDERER_COMPONENT], host.getRowData());
|
|
2633
|
+
}
|
|
2634
|
+
};
|
|
2635
|
+
return ComponentCellRendererPortalRef;
|
|
2636
|
+
}(CellRendererPortalRef));
|
|
2637
|
+
var CellEditorPortalRef = /** @class */ (function (_super) {
|
|
2638
|
+
__extends(CellEditorPortalRef, _super);
|
|
2639
|
+
function CellEditorPortalRef(componentType, initialiseEditorSession) {
|
|
2640
|
+
var _this = _super.call(this) || this;
|
|
2641
|
+
_this.componentType = componentType;
|
|
2642
|
+
_this.initialiseEditorSession = initialiseEditorSession;
|
|
2643
|
+
return _this;
|
|
2644
|
+
}
|
|
2645
|
+
CellEditorPortalRef.prototype.initialiseHost = function (host, columnModel) {
|
|
2646
|
+
typescriptUtilities.assert.isTruthy(host);
|
|
2647
|
+
host[CELL_EDITOR_PORTAL] = new portal.ComponentPortal(this.componentType);
|
|
2648
|
+
};
|
|
2649
|
+
// @Trace()
|
|
2650
|
+
CellEditorPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2651
|
+
host[PORTAL_EDITOR_COMPONENT] = portalComponent;
|
|
2652
|
+
this.initialiseEditorSession(portalComponent, host.editSession);
|
|
2653
|
+
};
|
|
2654
|
+
return CellEditorPortalRef;
|
|
2655
|
+
}(CellPortalRef));
|
|
2656
|
+
var TemplateCellRendererPortalRef = /** @class */ (function (_super) {
|
|
2657
|
+
__extends(TemplateCellRendererPortalRef, _super);
|
|
2658
|
+
function TemplateCellRendererPortalRef() {
|
|
2659
|
+
return _super.call(this) || this;
|
|
2660
|
+
}
|
|
2661
|
+
TemplateCellRendererPortalRef.prototype.registerPortal = function (templateRef, viewContainer, fillCell, padChild) {
|
|
2662
|
+
this.templateRef = templateRef;
|
|
2663
|
+
this.viewContainer = viewContainer;
|
|
2664
|
+
this.fillCell = fillCell;
|
|
2665
|
+
this.padChild = padChild;
|
|
2666
|
+
};
|
|
2667
|
+
TemplateCellRendererPortalRef.prototype.initialiseHost = function (host, columnModel) {
|
|
2668
|
+
typescriptUtilities.assert.isTruthy(host);
|
|
2669
|
+
};
|
|
2670
|
+
// @Trace()
|
|
2671
|
+
TemplateCellRendererPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2672
|
+
// don't care
|
|
2673
|
+
};
|
|
2674
|
+
TemplateCellRendererPortalRef.prototype.pushState = function (host) {
|
|
2675
|
+
host[CELL_RENDERER_PORTAL] = this.createPortal(host.getRowData());
|
|
2676
|
+
host.fillCell = this.fillCell;
|
|
2677
|
+
host.padChild = this.padChild;
|
|
2678
|
+
};
|
|
2679
|
+
TemplateCellRendererPortalRef.prototype.createPortal = function (data) {
|
|
2680
|
+
return new portal.TemplatePortal(this.templateRef, this.viewContainer, __assign(__assign({}, (data)), { $implicit: data.row }));
|
|
2681
|
+
};
|
|
2682
|
+
return TemplateCellRendererPortalRef;
|
|
2683
|
+
}(CellRendererPortalRef));
|
|
2684
|
+
|
|
2581
2685
|
var DefaultCellRendererComponent = /** @class */ (function () {
|
|
2582
2686
|
function DefaultCellRendererComponent() {
|
|
2583
2687
|
}
|
|
@@ -2755,112 +2859,9 @@
|
|
|
2755
2859
|
return SelectHeaderCellRendererComponent;
|
|
2756
2860
|
}(DisposableComponent));
|
|
2757
2861
|
|
|
2758
|
-
var HEADER_CELL_RENDERER_PORTAL = Symbol('aup-cell-header-renderer-component-ref');
|
|
2759
|
-
var CELL_RENDERER_PORTAL = Symbol('aup-cell-renderer-component-ref');
|
|
2760
|
-
var CELL_EDITOR_PORTAL = Symbol('aup-cell-editor-component-ref');
|
|
2761
|
-
var PORTAL_RENDERER_COMPONENT = Symbol('aup-cell-renderer-portal-component');
|
|
2762
|
-
var PORTAL_EDITOR_COMPONENT = Symbol('aup-cell-editor-portal-component');
|
|
2763
2862
|
var noop = function () {
|
|
2764
2863
|
};
|
|
2765
2864
|
var ɵ0 = noop;
|
|
2766
|
-
var CellPortalRef = /** @class */ (function () {
|
|
2767
|
-
function CellPortalRef() {
|
|
2768
|
-
}
|
|
2769
|
-
return CellPortalRef;
|
|
2770
|
-
}());
|
|
2771
|
-
var CellHeaderPortalRef = /** @class */ (function (_super) {
|
|
2772
|
-
__extends(CellHeaderPortalRef, _super);
|
|
2773
|
-
function CellHeaderPortalRef(componentType, initialiseHeader) {
|
|
2774
|
-
var _this = _super.call(this) || this;
|
|
2775
|
-
_this.componentType = componentType;
|
|
2776
|
-
_this.initialiseHeader = initialiseHeader;
|
|
2777
|
-
return _this;
|
|
2778
|
-
}
|
|
2779
|
-
CellHeaderPortalRef.prototype.initialiseHost = function (host, columnModel) {
|
|
2780
|
-
typescriptUtilities.assert.isTruthy(host);
|
|
2781
|
-
host[HEADER_CELL_RENDERER_PORTAL] = new portal.ComponentPortal(this.componentType);
|
|
2782
|
-
};
|
|
2783
|
-
CellHeaderPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2784
|
-
this.initialiseHeader(portalComponent, host.column);
|
|
2785
|
-
};
|
|
2786
|
-
return CellHeaderPortalRef;
|
|
2787
|
-
}(CellPortalRef));
|
|
2788
|
-
var CellRendererPortalRef = /** @class */ (function (_super) {
|
|
2789
|
-
__extends(CellRendererPortalRef, _super);
|
|
2790
|
-
function CellRendererPortalRef() {
|
|
2791
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
2792
|
-
}
|
|
2793
|
-
return CellRendererPortalRef;
|
|
2794
|
-
}(CellPortalRef));
|
|
2795
|
-
var ComponentCellRendererPortalRef = /** @class */ (function (_super) {
|
|
2796
|
-
__extends(ComponentCellRendererPortalRef, _super);
|
|
2797
|
-
function ComponentCellRendererPortalRef(componentType, updateComponent) {
|
|
2798
|
-
var _this = _super.call(this) || this;
|
|
2799
|
-
_this.componentType = componentType;
|
|
2800
|
-
_this.updateComponent = updateComponent;
|
|
2801
|
-
return _this;
|
|
2802
|
-
}
|
|
2803
|
-
ComponentCellRendererPortalRef.prototype.initialiseHost = function (host, columnModel) {
|
|
2804
|
-
host[CELL_RENDERER_PORTAL] = new portal.ComponentPortal(this.componentType);
|
|
2805
|
-
};
|
|
2806
|
-
ComponentCellRendererPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2807
|
-
host[PORTAL_RENDERER_COMPONENT] = portalComponent;
|
|
2808
|
-
this.updateComponent(portalComponent, host.getRowData());
|
|
2809
|
-
};
|
|
2810
|
-
ComponentCellRendererPortalRef.prototype.pushState = function (host) {
|
|
2811
|
-
if (host[PORTAL_RENDERER_COMPONENT]) {
|
|
2812
|
-
this.updateComponent(host[PORTAL_RENDERER_COMPONENT], host.getRowData());
|
|
2813
|
-
}
|
|
2814
|
-
};
|
|
2815
|
-
return ComponentCellRendererPortalRef;
|
|
2816
|
-
}(CellRendererPortalRef));
|
|
2817
|
-
var CellEditorPortalRef = /** @class */ (function (_super) {
|
|
2818
|
-
__extends(CellEditorPortalRef, _super);
|
|
2819
|
-
function CellEditorPortalRef(componentType, initialiseEditorSession) {
|
|
2820
|
-
var _this = _super.call(this) || this;
|
|
2821
|
-
_this.componentType = componentType;
|
|
2822
|
-
_this.initialiseEditorSession = initialiseEditorSession;
|
|
2823
|
-
return _this;
|
|
2824
|
-
}
|
|
2825
|
-
CellEditorPortalRef.prototype.initialiseHost = function (host, columnModel) {
|
|
2826
|
-
typescriptUtilities.assert.isTruthy(host);
|
|
2827
|
-
host[CELL_EDITOR_PORTAL] = new portal.ComponentPortal(this.componentType);
|
|
2828
|
-
};
|
|
2829
|
-
// @Trace()
|
|
2830
|
-
CellEditorPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2831
|
-
host[PORTAL_EDITOR_COMPONENT] = portalComponent;
|
|
2832
|
-
this.initialiseEditorSession(portalComponent, host.editSession);
|
|
2833
|
-
};
|
|
2834
|
-
return CellEditorPortalRef;
|
|
2835
|
-
}(CellPortalRef));
|
|
2836
|
-
var TemplateCellRendererPortalRef = /** @class */ (function (_super) {
|
|
2837
|
-
__extends(TemplateCellRendererPortalRef, _super);
|
|
2838
|
-
function TemplateCellRendererPortalRef() {
|
|
2839
|
-
return _super.call(this) || this;
|
|
2840
|
-
}
|
|
2841
|
-
TemplateCellRendererPortalRef.prototype.registerPortal = function (templateRef, viewContainer, fillCell, padChild) {
|
|
2842
|
-
this.templateRef = templateRef;
|
|
2843
|
-
this.viewContainer = viewContainer;
|
|
2844
|
-
this.fillCell = fillCell;
|
|
2845
|
-
this.padChild = padChild;
|
|
2846
|
-
};
|
|
2847
|
-
TemplateCellRendererPortalRef.prototype.initialiseHost = function (host, columnModel) {
|
|
2848
|
-
typescriptUtilities.assert.isTruthy(host);
|
|
2849
|
-
};
|
|
2850
|
-
// @Trace()
|
|
2851
|
-
TemplateCellRendererPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2852
|
-
// don't care
|
|
2853
|
-
};
|
|
2854
|
-
TemplateCellRendererPortalRef.prototype.pushState = function (host) {
|
|
2855
|
-
host[CELL_RENDERER_PORTAL] = this.createPortal(host.getRowData());
|
|
2856
|
-
host.fillCell = this.fillCell;
|
|
2857
|
-
host.padChild = this.padChild;
|
|
2858
|
-
};
|
|
2859
|
-
TemplateCellRendererPortalRef.prototype.createPortal = function (data) {
|
|
2860
|
-
return new portal.TemplatePortal(this.templateRef, this.viewContainer, __assign(__assign({}, (data)), { $implicit: data.row }));
|
|
2861
|
-
};
|
|
2862
|
-
return TemplateCellRendererPortalRef;
|
|
2863
|
-
}(CellRendererPortalRef));
|
|
2864
2865
|
var ColumnModel = /** @class */ (function () {
|
|
2865
2866
|
function ColumnModel(columnId, defaults) {
|
|
2866
2867
|
this.columnId = columnId;
|