@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
|
@@ -2404,6 +2404,110 @@ var SwitchCaseComponent = /** @class */ (function (_super) {
|
|
|
2404
2404
|
return SwitchCaseComponent;
|
|
2405
2405
|
}(DisposableComponent));
|
|
2406
2406
|
|
|
2407
|
+
var HEADER_CELL_RENDERER_PORTAL = Symbol('aup-cell-header-renderer-component-ref');
|
|
2408
|
+
var CELL_RENDERER_PORTAL = Symbol('aup-cell-renderer-component-ref');
|
|
2409
|
+
var CELL_EDITOR_PORTAL = Symbol('aup-cell-editor-component-ref');
|
|
2410
|
+
var PORTAL_RENDERER_COMPONENT = Symbol('aup-cell-renderer-portal-component');
|
|
2411
|
+
var PORTAL_EDITOR_COMPONENT = Symbol('aup-cell-editor-portal-component');
|
|
2412
|
+
var CellPortalRef = /** @class */ (function () {
|
|
2413
|
+
function CellPortalRef() {
|
|
2414
|
+
}
|
|
2415
|
+
return CellPortalRef;
|
|
2416
|
+
}());
|
|
2417
|
+
var CellHeaderPortalRef = /** @class */ (function (_super) {
|
|
2418
|
+
__extends(CellHeaderPortalRef, _super);
|
|
2419
|
+
function CellHeaderPortalRef(componentType, initialiseHeader) {
|
|
2420
|
+
var _this = _super.call(this) || this;
|
|
2421
|
+
_this.componentType = componentType;
|
|
2422
|
+
_this.initialiseHeader = initialiseHeader;
|
|
2423
|
+
return _this;
|
|
2424
|
+
}
|
|
2425
|
+
CellHeaderPortalRef.prototype.initialiseHost = function (host, columnModel) {
|
|
2426
|
+
assert$1.isTruthy(host);
|
|
2427
|
+
host[HEADER_CELL_RENDERER_PORTAL] = new ComponentPortal(this.componentType);
|
|
2428
|
+
};
|
|
2429
|
+
CellHeaderPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2430
|
+
this.initialiseHeader(portalComponent, host.column);
|
|
2431
|
+
};
|
|
2432
|
+
return CellHeaderPortalRef;
|
|
2433
|
+
}(CellPortalRef));
|
|
2434
|
+
var CellRendererPortalRef = /** @class */ (function (_super) {
|
|
2435
|
+
__extends(CellRendererPortalRef, _super);
|
|
2436
|
+
function CellRendererPortalRef() {
|
|
2437
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
2438
|
+
}
|
|
2439
|
+
return CellRendererPortalRef;
|
|
2440
|
+
}(CellPortalRef));
|
|
2441
|
+
var ComponentCellRendererPortalRef = /** @class */ (function (_super) {
|
|
2442
|
+
__extends(ComponentCellRendererPortalRef, _super);
|
|
2443
|
+
function ComponentCellRendererPortalRef(componentType, updateComponent) {
|
|
2444
|
+
var _this = _super.call(this) || this;
|
|
2445
|
+
_this.componentType = componentType;
|
|
2446
|
+
_this.updateComponent = updateComponent;
|
|
2447
|
+
return _this;
|
|
2448
|
+
}
|
|
2449
|
+
ComponentCellRendererPortalRef.prototype.initialiseHost = function (host, columnModel) {
|
|
2450
|
+
host[CELL_RENDERER_PORTAL] = new ComponentPortal(this.componentType);
|
|
2451
|
+
};
|
|
2452
|
+
ComponentCellRendererPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2453
|
+
host[PORTAL_RENDERER_COMPONENT] = portalComponent;
|
|
2454
|
+
this.updateComponent(portalComponent, host.getRowData());
|
|
2455
|
+
};
|
|
2456
|
+
ComponentCellRendererPortalRef.prototype.pushState = function (host) {
|
|
2457
|
+
if (host[PORTAL_RENDERER_COMPONENT]) {
|
|
2458
|
+
this.updateComponent(host[PORTAL_RENDERER_COMPONENT], host.getRowData());
|
|
2459
|
+
}
|
|
2460
|
+
};
|
|
2461
|
+
return ComponentCellRendererPortalRef;
|
|
2462
|
+
}(CellRendererPortalRef));
|
|
2463
|
+
var CellEditorPortalRef = /** @class */ (function (_super) {
|
|
2464
|
+
__extends(CellEditorPortalRef, _super);
|
|
2465
|
+
function CellEditorPortalRef(componentType, initialiseEditorSession) {
|
|
2466
|
+
var _this = _super.call(this) || this;
|
|
2467
|
+
_this.componentType = componentType;
|
|
2468
|
+
_this.initialiseEditorSession = initialiseEditorSession;
|
|
2469
|
+
return _this;
|
|
2470
|
+
}
|
|
2471
|
+
CellEditorPortalRef.prototype.initialiseHost = function (host, columnModel) {
|
|
2472
|
+
assert$1.isTruthy(host);
|
|
2473
|
+
host[CELL_EDITOR_PORTAL] = new ComponentPortal(this.componentType);
|
|
2474
|
+
};
|
|
2475
|
+
// @Trace()
|
|
2476
|
+
CellEditorPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2477
|
+
host[PORTAL_EDITOR_COMPONENT] = portalComponent;
|
|
2478
|
+
this.initialiseEditorSession(portalComponent, host.editSession);
|
|
2479
|
+
};
|
|
2480
|
+
return CellEditorPortalRef;
|
|
2481
|
+
}(CellPortalRef));
|
|
2482
|
+
var TemplateCellRendererPortalRef = /** @class */ (function (_super) {
|
|
2483
|
+
__extends(TemplateCellRendererPortalRef, _super);
|
|
2484
|
+
function TemplateCellRendererPortalRef() {
|
|
2485
|
+
return _super.call(this) || this;
|
|
2486
|
+
}
|
|
2487
|
+
TemplateCellRendererPortalRef.prototype.registerPortal = function (templateRef, viewContainer, fillCell, padChild) {
|
|
2488
|
+
this.templateRef = templateRef;
|
|
2489
|
+
this.viewContainer = viewContainer;
|
|
2490
|
+
this.fillCell = fillCell;
|
|
2491
|
+
this.padChild = padChild;
|
|
2492
|
+
};
|
|
2493
|
+
TemplateCellRendererPortalRef.prototype.initialiseHost = function (host, columnModel) {
|
|
2494
|
+
assert$1.isTruthy(host);
|
|
2495
|
+
};
|
|
2496
|
+
// @Trace()
|
|
2497
|
+
TemplateCellRendererPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2498
|
+
// don't care
|
|
2499
|
+
};
|
|
2500
|
+
TemplateCellRendererPortalRef.prototype.pushState = function (host) {
|
|
2501
|
+
host[CELL_RENDERER_PORTAL] = this.createPortal(host.getRowData());
|
|
2502
|
+
host.fillCell = this.fillCell;
|
|
2503
|
+
host.padChild = this.padChild;
|
|
2504
|
+
};
|
|
2505
|
+
TemplateCellRendererPortalRef.prototype.createPortal = function (data) {
|
|
2506
|
+
return new TemplatePortal(this.templateRef, this.viewContainer, __assign(__assign({}, (data)), { $implicit: data.row }));
|
|
2507
|
+
};
|
|
2508
|
+
return TemplateCellRendererPortalRef;
|
|
2509
|
+
}(CellRendererPortalRef));
|
|
2510
|
+
|
|
2407
2511
|
var DefaultCellRendererComponent = /** @class */ (function () {
|
|
2408
2512
|
function DefaultCellRendererComponent() {
|
|
2409
2513
|
}
|
|
@@ -2581,112 +2685,9 @@ var SelectHeaderCellRendererComponent = /** @class */ (function (_super) {
|
|
|
2581
2685
|
return SelectHeaderCellRendererComponent;
|
|
2582
2686
|
}(DisposableComponent));
|
|
2583
2687
|
|
|
2584
|
-
var HEADER_CELL_RENDERER_PORTAL = Symbol('aup-cell-header-renderer-component-ref');
|
|
2585
|
-
var CELL_RENDERER_PORTAL = Symbol('aup-cell-renderer-component-ref');
|
|
2586
|
-
var CELL_EDITOR_PORTAL = Symbol('aup-cell-editor-component-ref');
|
|
2587
|
-
var PORTAL_RENDERER_COMPONENT = Symbol('aup-cell-renderer-portal-component');
|
|
2588
|
-
var PORTAL_EDITOR_COMPONENT = Symbol('aup-cell-editor-portal-component');
|
|
2589
2688
|
var noop = function () {
|
|
2590
2689
|
};
|
|
2591
2690
|
var ɵ0 = noop;
|
|
2592
|
-
var CellPortalRef = /** @class */ (function () {
|
|
2593
|
-
function CellPortalRef() {
|
|
2594
|
-
}
|
|
2595
|
-
return CellPortalRef;
|
|
2596
|
-
}());
|
|
2597
|
-
var CellHeaderPortalRef = /** @class */ (function (_super) {
|
|
2598
|
-
__extends(CellHeaderPortalRef, _super);
|
|
2599
|
-
function CellHeaderPortalRef(componentType, initialiseHeader) {
|
|
2600
|
-
var _this = _super.call(this) || this;
|
|
2601
|
-
_this.componentType = componentType;
|
|
2602
|
-
_this.initialiseHeader = initialiseHeader;
|
|
2603
|
-
return _this;
|
|
2604
|
-
}
|
|
2605
|
-
CellHeaderPortalRef.prototype.initialiseHost = function (host, columnModel) {
|
|
2606
|
-
assert$1.isTruthy(host);
|
|
2607
|
-
host[HEADER_CELL_RENDERER_PORTAL] = new ComponentPortal(this.componentType);
|
|
2608
|
-
};
|
|
2609
|
-
CellHeaderPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2610
|
-
this.initialiseHeader(portalComponent, host.column);
|
|
2611
|
-
};
|
|
2612
|
-
return CellHeaderPortalRef;
|
|
2613
|
-
}(CellPortalRef));
|
|
2614
|
-
var CellRendererPortalRef = /** @class */ (function (_super) {
|
|
2615
|
-
__extends(CellRendererPortalRef, _super);
|
|
2616
|
-
function CellRendererPortalRef() {
|
|
2617
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
2618
|
-
}
|
|
2619
|
-
return CellRendererPortalRef;
|
|
2620
|
-
}(CellPortalRef));
|
|
2621
|
-
var ComponentCellRendererPortalRef = /** @class */ (function (_super) {
|
|
2622
|
-
__extends(ComponentCellRendererPortalRef, _super);
|
|
2623
|
-
function ComponentCellRendererPortalRef(componentType, updateComponent) {
|
|
2624
|
-
var _this = _super.call(this) || this;
|
|
2625
|
-
_this.componentType = componentType;
|
|
2626
|
-
_this.updateComponent = updateComponent;
|
|
2627
|
-
return _this;
|
|
2628
|
-
}
|
|
2629
|
-
ComponentCellRendererPortalRef.prototype.initialiseHost = function (host, columnModel) {
|
|
2630
|
-
host[CELL_RENDERER_PORTAL] = new ComponentPortal(this.componentType);
|
|
2631
|
-
};
|
|
2632
|
-
ComponentCellRendererPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2633
|
-
host[PORTAL_RENDERER_COMPONENT] = portalComponent;
|
|
2634
|
-
this.updateComponent(portalComponent, host.getRowData());
|
|
2635
|
-
};
|
|
2636
|
-
ComponentCellRendererPortalRef.prototype.pushState = function (host) {
|
|
2637
|
-
if (host[PORTAL_RENDERER_COMPONENT]) {
|
|
2638
|
-
this.updateComponent(host[PORTAL_RENDERER_COMPONENT], host.getRowData());
|
|
2639
|
-
}
|
|
2640
|
-
};
|
|
2641
|
-
return ComponentCellRendererPortalRef;
|
|
2642
|
-
}(CellRendererPortalRef));
|
|
2643
|
-
var CellEditorPortalRef = /** @class */ (function (_super) {
|
|
2644
|
-
__extends(CellEditorPortalRef, _super);
|
|
2645
|
-
function CellEditorPortalRef(componentType, initialiseEditorSession) {
|
|
2646
|
-
var _this = _super.call(this) || this;
|
|
2647
|
-
_this.componentType = componentType;
|
|
2648
|
-
_this.initialiseEditorSession = initialiseEditorSession;
|
|
2649
|
-
return _this;
|
|
2650
|
-
}
|
|
2651
|
-
CellEditorPortalRef.prototype.initialiseHost = function (host, columnModel) {
|
|
2652
|
-
assert$1.isTruthy(host);
|
|
2653
|
-
host[CELL_EDITOR_PORTAL] = new ComponentPortal(this.componentType);
|
|
2654
|
-
};
|
|
2655
|
-
// @Trace()
|
|
2656
|
-
CellEditorPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2657
|
-
host[PORTAL_EDITOR_COMPONENT] = portalComponent;
|
|
2658
|
-
this.initialiseEditorSession(portalComponent, host.editSession);
|
|
2659
|
-
};
|
|
2660
|
-
return CellEditorPortalRef;
|
|
2661
|
-
}(CellPortalRef));
|
|
2662
|
-
var TemplateCellRendererPortalRef = /** @class */ (function (_super) {
|
|
2663
|
-
__extends(TemplateCellRendererPortalRef, _super);
|
|
2664
|
-
function TemplateCellRendererPortalRef() {
|
|
2665
|
-
return _super.call(this) || this;
|
|
2666
|
-
}
|
|
2667
|
-
TemplateCellRendererPortalRef.prototype.registerPortal = function (templateRef, viewContainer, fillCell, padChild) {
|
|
2668
|
-
this.templateRef = templateRef;
|
|
2669
|
-
this.viewContainer = viewContainer;
|
|
2670
|
-
this.fillCell = fillCell;
|
|
2671
|
-
this.padChild = padChild;
|
|
2672
|
-
};
|
|
2673
|
-
TemplateCellRendererPortalRef.prototype.initialiseHost = function (host, columnModel) {
|
|
2674
|
-
assert$1.isTruthy(host);
|
|
2675
|
-
};
|
|
2676
|
-
// @Trace()
|
|
2677
|
-
TemplateCellRendererPortalRef.prototype.onPortalAttached = function (host, portalComponent) {
|
|
2678
|
-
// don't care
|
|
2679
|
-
};
|
|
2680
|
-
TemplateCellRendererPortalRef.prototype.pushState = function (host) {
|
|
2681
|
-
host[CELL_RENDERER_PORTAL] = this.createPortal(host.getRowData());
|
|
2682
|
-
host.fillCell = this.fillCell;
|
|
2683
|
-
host.padChild = this.padChild;
|
|
2684
|
-
};
|
|
2685
|
-
TemplateCellRendererPortalRef.prototype.createPortal = function (data) {
|
|
2686
|
-
return new TemplatePortal(this.templateRef, this.viewContainer, __assign(__assign({}, (data)), { $implicit: data.row }));
|
|
2687
|
-
};
|
|
2688
|
-
return TemplateCellRendererPortalRef;
|
|
2689
|
-
}(CellRendererPortalRef));
|
|
2690
2691
|
var ColumnModel = /** @class */ (function () {
|
|
2691
2692
|
function ColumnModel(columnId, defaults) {
|
|
2692
2693
|
this.columnId = columnId;
|