@alauda/ui 6.1.1-beta.1 → 6.1.1-beta.2
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/alauda-ui.metadata.json +1 -1
- package/bundles/alauda-ui.umd.js +11 -11
- package/bundles/alauda-ui.umd.js.map +1 -1
- package/bundles/alauda-ui.umd.min.js +1 -1
- package/bundles/alauda-ui.umd.min.js.map +1 -1
- package/esm2015/table/table-row.component.js +11 -8
- package/esm2015/table/table-row.component.ngfactory.js +1 -1
- package/esm2015/table/table-row.component.ngsummary.json +1 -1
- package/fesm2015/alauda-ui.js +10 -6
- package/fesm2015/alauda-ui.js.map +1 -1
- package/package.json +1 -1
- package/table/table-row.component.d.ts +5 -3
|
@@ -1,14 +1,15 @@
|
|
|
1
1
|
import { CDK_ROW_TEMPLATE, CdkRow } from '@angular/cdk/table';
|
|
2
|
-
import { ChangeDetectionStrategy, Component,
|
|
3
|
-
import { TableExpandPanelCellComponent } from './table-cell.component';
|
|
2
|
+
import { ChangeDetectionStrategy, Component, ElementRef, HostBinding, Input, ViewEncapsulation, } from '@angular/core';
|
|
4
3
|
/** Data row template container that contains the cell outlet. Adds the right class and role. */
|
|
5
4
|
export class TableRowComponent extends CdkRow {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(
|
|
5
|
+
constructor(elRef) {
|
|
6
|
+
super();
|
|
7
|
+
this.elRef = elRef;
|
|
8
8
|
this.disabled = false;
|
|
9
9
|
this.hasPanel = false;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
ngAfterContentInit() {
|
|
12
|
+
const panel = this.elRef.nativeElement.querySelector('aui-table-cell[auiExpandPanel]');
|
|
12
13
|
this.hasPanel = !!panel;
|
|
13
14
|
}
|
|
14
15
|
}
|
|
@@ -26,9 +27,11 @@ TableRowComponent.decorators = [
|
|
|
26
27
|
preserveWhitespaces: false
|
|
27
28
|
},] }
|
|
28
29
|
];
|
|
30
|
+
TableRowComponent.ctorParameters = () => [
|
|
31
|
+
{ type: ElementRef }
|
|
32
|
+
];
|
|
29
33
|
TableRowComponent.propDecorators = {
|
|
30
34
|
disabled: [{ type: Input }, { type: HostBinding, args: ['class.isDisabled',] }],
|
|
31
|
-
hasPanel: [{ type: HostBinding, args: ['class.hasPanel',] }]
|
|
32
|
-
panel: [{ type: ContentChild, args: [TableExpandPanelCellComponent, { static: false },] }]
|
|
35
|
+
hasPanel: [{ type: HostBinding, args: ['class.hasPanel',] }]
|
|
33
36
|
};
|
|
34
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
37
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtcm93LmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy90YWJsZS90YWJsZS1yb3cuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQztBQUM5RCxPQUFPLEVBRUwsdUJBQXVCLEVBQ3ZCLFNBQVMsRUFDVCxVQUFVLEVBQ1YsV0FBVyxFQUNYLEtBQUssRUFDTCxpQkFBaUIsR0FDbEIsTUFBTSxlQUFlLENBQUM7QUFFdkIsZ0dBQWdHO0FBYWhHLE1BQU0sT0FBTyxpQkFBa0IsU0FBUSxNQUFNO0lBUTNDLFlBQTZCLEtBQThCO1FBQ3pELEtBQUssRUFBRSxDQUFDO1FBRG1CLFVBQUssR0FBTCxLQUFLLENBQXlCO1FBTDNELGFBQVEsR0FBRyxLQUFLLENBQUM7UUFHakIsYUFBUSxHQUFHLEtBQUssQ0FBQztJQUlqQixDQUFDO0lBRUQsa0JBQWtCO1FBQ2hCLE1BQU0sS0FBSyxHQUFHLElBQUksQ0FBQyxLQUFLLENBQUMsYUFBYSxDQUFDLGFBQWEsQ0FDbEQs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ZTogQ0RLX1JPV19URU1QTEFURSxcbiAgaG9zdDoge1xuICAgIGNsYXNzOiAnYXVpLXRhYmxlX19yb3cnLFxuICAgIHJvbGU6ICdyb3cnLFxuICB9LFxuICBjaGFuZ2VEZXRlY3Rpb246IENoYW5nZURldGVjdGlvblN0cmF0ZWd5Lk9uUHVzaCxcbiAgZW5jYXBzdWxhdGlvbjogVmlld0VuY2Fwc3VsYXRpb24uTm9uZSxcbiAgZXhwb3J0QXM6ICdhdWlUYWJsZVJvdycsXG4gIHByZXNlcnZlV2hpdGVzcGFjZXM6IGZhbHNlLFxufSlcbmV4cG9ydCBjbGFzcyBUYWJsZVJvd0NvbXBvbmVudCBleHRlbmRzIENka1JvdyBpbXBsZW1lbnRzIEFmdGVyQ29udGVudEluaXQge1xuICBASW5wdXQoKVxuICBASG9zdEJpbmRpbmcoJ2NsYXNzLmlzRGlzYWJsZWQnKVxuICBkaXNhYmxlZCA9IGZhbHNlO1xuXG4gIEBIb3N0QmluZGluZygnY2xhc3MuaGFzUGFuZWwnKVxuICBoYXNQYW5lbCA9IGZhbHNlO1xuXG4gIGNvbnN0cnVjdG9yKHByaXZhdGUgcmVhZG9ubHkgZWxSZWY6IEVsZW1lbnRSZWY8SFRNTEVsZW1lbnQ+KSB7XG4gICAgc3VwZXIoKTtcbiAgfVxuXG4gIG5nQWZ0ZXJDb250ZW50SW5pdCgpIHtcbiAgICBjb25zdCBwYW5lbCA9IHRoaXMuZWxSZWYubmF0aXZlRWxlbWVudC5xdWVyeVNlbGVjdG9yKFxuICAgICAgJ2F1aS10YWJsZS1jZWxsW2F1aUV4cGFuZFBhbmVsXScsXG4gICAgKTtcbiAgICB0aGlzLmhhc1BhbmVsID0gISFwYW5lbDtcbiAgfVxufVxuIl19
|
|
@@ -11,7 +11,7 @@ var styles_TableRowComponent = [];
|
|
|
11
11
|
var RenderType_TableRowComponent = i0.ɵcrt({ encapsulation: 2, styles: styles_TableRowComponent, data: {} });
|
|
12
12
|
export { RenderType_TableRowComponent as RenderType_TableRowComponent };
|
|
13
13
|
export function View_TableRowComponent_0(_l) { return i0.ɵvid(2, [(_l()(), i0.ɵeld(0, 16777216, null, null, 1, null, null, null, null, null, null, null)), i0.ɵdid(1, 147456, null, 0, i1.CdkCellOutlet, [i0.ViewContainerRef], null, null)], null, null); }
|
|
14
|
-
export function View_TableRowComponent_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null,
|
|
14
|
+
export function View_TableRowComponent_Host_0(_l) { return i0.ɵvid(0, [(_l()(), i0.ɵeld(0, 0, null, null, 1, "aui-table-row", [["class", "aui-table__row"], ["role", "row"]], [[2, "isDisabled", null], [2, "hasPanel", null]], null, null, View_TableRowComponent_0, RenderType_TableRowComponent)), i0.ɵdid(1, 1097728, null, 0, i2.TableRowComponent, [i0.ElementRef], null, null)], null, function (_ck, _v) { var currVal_0 = i0.ɵnov(_v, 1).disabled; var currVal_1 = i0.ɵnov(_v, 1).hasPanel; _ck(_v, 0, 0, currVal_0, currVal_1); }); }
|
|
15
15
|
var TableRowComponentNgFactory = i0.ɵccf("aui-table-row", i2.TableRowComponent, View_TableRowComponent_Host_0, { disabled: "disabled" }, {}, []);
|
|
16
16
|
export { TableRowComponentNgFactory as TableRowComponentNgFactory };
|
|
17
17
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoidGFibGUtcm93LmNvbXBvbmVudC5uZ2ZhY3RvcnkuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi9zcmMvdGFibGUvdGFibGUtcm93LmNvbXBvbmVudC5uZ2ZhY3RvcnkudHMiLCIuLi8uLi8uLi9zcmMvdGFibGUvdGFibGUtcm93LmNvbXBvbmVudC50cy5UYWJsZVJvd0NvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7OzttRUNBQSx1S0FBMkMiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgKiBhcyBpMCBmcm9tICdAYW5ndWxhci9jb3JlJztcbmkwLkNvbXBvbmVudEZhY3Rvcnk7XG4iLCI8bmctY29udGFpbmVyIGNka0NlbGxPdXRsZXQ+PC9uZy1jb250YWluZXI+Il19
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","extends":{"__symbol":1,"members":[]},"members":{"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":2,"members":[]}},{"__symbolic":"call","expression":{"__symbol":3,"members":[]},"arguments":["class.isDisabled"]}]}],"hasPanel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":3,"members":[]},"arguments":["class.hasPanel"]}]}],"
|
|
1
|
+
{"moduleName":null,"summaries":[{"symbol":{"__symbol":0,"members":[]},"metadata":{"__symbolic":"class","extends":{"__symbol":1,"members":[]},"members":{"disabled":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":2,"members":[]}},{"__symbolic":"call","expression":{"__symbol":3,"members":[]},"arguments":["class.isDisabled"]}]}],"hasPanel":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbol":3,"members":[]},"arguments":["class.hasPanel"]}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbol":4,"members":[]}]}],"ngAfterContentInit":[{"__symbolic":"method"}]}},"type":{"summaryKind":1,"type":{"reference":{"__symbol":0,"members":[]},"diDeps":[{"isAttribute":false,"isHost":false,"isSelf":false,"isSkipSelf":false,"isOptional":false,"token":{"identifier":{"reference":{"__symbol":4,"members":[]}}}}],"lifecycleHooks":[4]},"isComponent":true,"selector":"aui-table-row","exportAs":"auiTableRow","inputs":{"disabled":"disabled"},"outputs":{},"hostListeners":{},"hostProperties":{"class.isDisabled":"disabled","class.hasPanel":"hasPanel"},"hostAttributes":{"class":"aui-table__row","role":"row"},"providers":[],"viewProviders":[],"queries":[],"guards":{},"viewQueries":[],"entryComponents":[],"changeDetection":0,"template":{"ngContentSelectors":[],"encapsulation":2,"styles":[],"animations":[]},"componentViewType":{"__symbol":5,"members":[]},"rendererType":{"__symbol":6,"members":[]},"componentFactory":{"__symbol":7,"members":[]}}}],"symbols":[{"__symbol":0,"name":"TableRowComponent","filePath":"./table-row.component"},{"__symbol":1,"name":"CdkRow","filePath":"@angular/cdk/table/index"},{"__symbol":2,"name":"Input","filePath":"@angular/core"},{"__symbol":3,"name":"HostBinding","filePath":"@angular/core"},{"__symbol":4,"name":"ElementRef","filePath":"@angular/core"},{"__symbol":5,"name":"View_TableRowComponent_0","filePath":"./table-row.component.ngfactory"},{"__symbol":6,"name":"RenderType_TableRowComponent","filePath":"./table-row.component.ngfactory"},{"__symbol":7,"name":"TableRowComponentNgFactory","filePath":"./table-row.component.ngfactory"}]}
|
package/fesm2015/alauda-ui.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TemplateRef, ɵɵdefineInjectable, Injectable, Pipe, ChangeDetectorRef, NgModule, Optional, Inject, SkipSelf, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Directive, EventEmitter, Output, ElementRef, ViewContainerRef, HostBinding,
|
|
1
|
+
import { TemplateRef, ɵɵdefineInjectable, Injectable, Pipe, ChangeDetectorRef, NgModule, Optional, Inject, SkipSelf, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Directive, EventEmitter, Output, ElementRef, ViewContainerRef, HostBinding, ViewChild, ContentChild, isDevMode, Renderer2, NgZone, HostListener, InjectionToken, Injector, ContentChildren, forwardRef, ɵɵinject, ApplicationRef, ComponentFactoryResolver, ViewChildren, Host, Type } from '@angular/core';
|
|
2
2
|
import { Observable, ReplaySubject, Subject, merge, fromEvent, BehaviorSubject, combineLatest, of, Subscription, EMPTY, animationFrameScheduler } from 'rxjs';
|
|
3
3
|
import { startWith, map, publishReplay, refCount, distinctUntilChanged, takeUntil, switchMap, throttleTime, debounceTime, first, tap, take, pluck, observeOn, repeat, takeWhile, endWith, filter } from 'rxjs/operators';
|
|
4
4
|
import { CdkCellDef, CdkCell, CdkColumnDef, CdkHeaderCellDef, CdkHeaderCell, CdkHeaderRowDef, CdkHeaderRow, CDK_ROW_TEMPLATE, CdkRowDef, CdkRow, CdkTable, CDK_TABLE_TEMPLATE, CDK_TABLE, _COALESCED_STYLE_SCHEDULER, _CoalescedStyleScheduler, CdkTableModule } from '@angular/cdk/table';
|
|
@@ -651,12 +651,14 @@ TableRowDefDirective.propDecorators = {
|
|
|
651
651
|
|
|
652
652
|
/** Data row template container that contains the cell outlet. Adds the right class and role. */
|
|
653
653
|
class TableRowComponent extends CdkRow {
|
|
654
|
-
constructor() {
|
|
655
|
-
super(
|
|
654
|
+
constructor(elRef) {
|
|
655
|
+
super();
|
|
656
|
+
this.elRef = elRef;
|
|
656
657
|
this.disabled = false;
|
|
657
658
|
this.hasPanel = false;
|
|
658
659
|
}
|
|
659
|
-
|
|
660
|
+
ngAfterContentInit() {
|
|
661
|
+
const panel = this.elRef.nativeElement.querySelector('aui-table-cell[auiExpandPanel]');
|
|
660
662
|
this.hasPanel = !!panel;
|
|
661
663
|
}
|
|
662
664
|
}
|
|
@@ -674,10 +676,12 @@ TableRowComponent.decorators = [
|
|
|
674
676
|
preserveWhitespaces: false
|
|
675
677
|
},] }
|
|
676
678
|
];
|
|
679
|
+
TableRowComponent.ctorParameters = () => [
|
|
680
|
+
{ type: ElementRef }
|
|
681
|
+
];
|
|
677
682
|
TableRowComponent.propDecorators = {
|
|
678
683
|
disabled: [{ type: Input }, { type: HostBinding, args: ['class.isDisabled',] }],
|
|
679
|
-
hasPanel: [{ type: HostBinding, args: ['class.hasPanel',] }]
|
|
680
|
-
panel: [{ type: ContentChild, args: [TableExpandPanelCellComponent, { static: false },] }]
|
|
684
|
+
hasPanel: [{ type: HostBinding, args: ['class.hasPanel',] }]
|
|
681
685
|
};
|
|
682
686
|
|
|
683
687
|
const CLASS_PREFIX = 'aui-table';
|