@delon/abc 12.4.1 → 12.4.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/bundles/abc.umd.js +1 -1
- package/bundles/autoFocus.umd.js +1 -1
- package/bundles/avatarList.umd.js +1 -1
- package/bundles/count-down.umd.js +1 -1
- package/bundles/datePicker.umd.js +1 -1
- package/bundles/downFile.umd.js +1 -1
- package/bundles/edit.umd.js +1 -1
- package/bundles/ellipsis.umd.js +1 -1
- package/bundles/errorCollect.umd.js +1 -1
- package/bundles/exception.umd.js +1 -1
- package/bundles/footerToolbar.umd.js +1 -1
- package/bundles/fullContent.umd.js +1 -1
- package/bundles/globalFooter.umd.js +1 -1
- package/bundles/grid.umd.js +1 -1
- package/bundles/image.umd.js +1 -1
- package/bundles/let.umd.js +1 -1
- package/bundles/loading.umd.js +1 -1
- package/bundles/lodop.umd.js +1 -1
- package/bundles/media.umd.js +1 -1
- package/bundles/noticeIcon.umd.js +1 -1
- package/bundles/onboarding.umd.js +1 -1
- package/bundles/pageHeader.umd.js +1 -1
- package/bundles/pdf.umd.js +1 -1
- package/bundles/qr.umd.js +1 -1
- package/bundles/quickMenu.umd.js +1 -1
- package/bundles/result.umd.js +1 -1
- package/bundles/reuseTab.umd.js +1 -1
- package/bundles/table.umd.js +16 -12
- package/bundles/table.umd.js.map +1 -1
- package/bundles/tagSelect.umd.js +1 -1
- package/bundles/view.umd.js +1 -1
- package/bundles/xlsx.umd.js +1 -1
- package/bundles/zip.umd.js +1 -1
- package/esm2015/st/st-td.component.js +5 -5
- package/esm2015/st/st.component.js +13 -9
- package/fesm2015/table.js +15 -11
- package/fesm2015/table.js.map +1 -1
- package/onboarding/schema.json +1 -1
- package/package.json +4 -4
- package/st/st-td.component.d.ts +2 -2
- package/st/st.component.d.ts +2 -1
- package/st/table.metadata.json +1 -1
- package/esm2015/st/index.js +0 -2
- package/st/index.d.ts +0 -1
package/bundles/abc.umd.js
CHANGED
package/bundles/autoFocus.umd.js
CHANGED
package/bundles/downFile.umd.js
CHANGED
package/bundles/edit.umd.js
CHANGED
package/bundles/ellipsis.umd.js
CHANGED
package/bundles/exception.umd.js
CHANGED
package/bundles/grid.umd.js
CHANGED
package/bundles/image.umd.js
CHANGED
package/bundles/let.umd.js
CHANGED
package/bundles/loading.umd.js
CHANGED
package/bundles/lodop.umd.js
CHANGED
package/bundles/media.umd.js
CHANGED
package/bundles/pdf.umd.js
CHANGED
package/bundles/qr.umd.js
CHANGED
package/bundles/quickMenu.umd.js
CHANGED
package/bundles/result.umd.js
CHANGED
package/bundles/reuseTab.umd.js
CHANGED
package/bundles/table.umd.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @license ng-alain(cipchk@qq.com) v12.4.
|
|
2
|
+
* @license ng-alain(cipchk@qq.com) v12.4.2
|
|
3
3
|
* (c) 2020 cipchk https://ng-alain.com/
|
|
4
4
|
* License: MIT
|
|
5
5
|
*/
|
|
@@ -1699,6 +1699,10 @@
|
|
|
1699
1699
|
this.cdr.detectChanges();
|
|
1700
1700
|
return this;
|
|
1701
1701
|
};
|
|
1702
|
+
STComponent.prototype.refreshData = function () {
|
|
1703
|
+
this._data = __spreadArray([], __read(this._data));
|
|
1704
|
+
return this.cd();
|
|
1705
|
+
};
|
|
1702
1706
|
STComponent.prototype.renderTotal = function (total, range) {
|
|
1703
1707
|
return this.totalTpl
|
|
1704
1708
|
? this.totalTpl.replace('{{total}}', total).replace('{{range[0]}}', range[0]).replace('{{range[1]}}', range[1])
|
|
@@ -1969,7 +1973,7 @@
|
|
|
1969
1973
|
var text = "" + _this.dataSource.getNoIndex(i, c, idx);
|
|
1970
1974
|
i._values[c.__point] = { text: text, _text: text, org: idx, safeType: 'text' };
|
|
1971
1975
|
}); });
|
|
1972
|
-
return this.
|
|
1976
|
+
return this.refreshData();
|
|
1973
1977
|
};
|
|
1974
1978
|
/**
|
|
1975
1979
|
* Sets the row value for the `index` in the table, like this:
|
|
@@ -1994,8 +1998,7 @@
|
|
|
1994
1998
|
this.resetColumns({ emitReload: options.emitReload });
|
|
1995
1999
|
return this;
|
|
1996
2000
|
}
|
|
1997
|
-
this.
|
|
1998
|
-
return this;
|
|
2001
|
+
return this.refreshData();
|
|
1999
2002
|
};
|
|
2000
2003
|
// #endregion
|
|
2001
2004
|
// #region sort
|
|
@@ -2044,7 +2047,7 @@
|
|
|
2044
2047
|
// #region checkbox
|
|
2045
2048
|
/** 清除所有 `checkbox` */
|
|
2046
2049
|
STComponent.prototype.clearCheck = function () {
|
|
2047
|
-
return this.
|
|
2050
|
+
return this.checkAll(false);
|
|
2048
2051
|
};
|
|
2049
2052
|
STComponent.prototype._refCheck = function () {
|
|
2050
2053
|
var validData = this._data.filter(function (w) { return !w.disabled; });
|
|
@@ -2055,10 +2058,10 @@
|
|
|
2055
2058
|
this._allCheckedDisabled = this._data.length === this._data.filter(function (w) { return w.disabled; }).length;
|
|
2056
2059
|
return this.cd();
|
|
2057
2060
|
};
|
|
2058
|
-
STComponent.prototype.
|
|
2061
|
+
STComponent.prototype.checkAll = function (checked) {
|
|
2059
2062
|
checked = typeof checked === 'undefined' ? this._allChecked : checked;
|
|
2060
2063
|
this._data.filter(function (w) { return !w.disabled; }).forEach(function (i) { return (i.checked = checked); });
|
|
2061
|
-
return this._refCheck()._checkNotify();
|
|
2064
|
+
return this._refCheck()._checkNotify().refreshData();
|
|
2062
2065
|
};
|
|
2063
2066
|
STComponent.prototype._rowSelection = function (row) {
|
|
2064
2067
|
row.select(this._data);
|
|
@@ -2075,7 +2078,7 @@
|
|
|
2075
2078
|
STComponent.prototype.clearRadio = function () {
|
|
2076
2079
|
this._data.filter(function (w) { return w.checked; }).forEach(function (item) { return (item.checked = false); });
|
|
2077
2080
|
this.changeEmit('radio', null);
|
|
2078
|
-
return this;
|
|
2081
|
+
return this.refreshData();
|
|
2079
2082
|
};
|
|
2080
2083
|
// #endregion
|
|
2081
2084
|
STComponent.prototype._handleTd = function (ev) {
|
|
@@ -2085,6 +2088,7 @@
|
|
|
2085
2088
|
break;
|
|
2086
2089
|
case 'radio':
|
|
2087
2090
|
this.changeEmit('radio', ev.item);
|
|
2091
|
+
this.refreshData();
|
|
2088
2092
|
break;
|
|
2089
2093
|
}
|
|
2090
2094
|
};
|
|
@@ -2242,7 +2246,7 @@
|
|
|
2242
2246
|
{ type: i0.Component, args: [{
|
|
2243
2247
|
selector: 'st',
|
|
2244
2248
|
exportAs: 'st',
|
|
2245
|
-
template: "<ng-template #titleTpl let-i>\n <span [innerHTML]=\"i._text\"></span>\n <small *ngIf=\"i.optional\" class=\"st__head-optional\" [innerHTML]=\"i.optional\"></small>\n <i\n *ngIf=\"i.optionalHelp\"\n class=\"st__head-tip\"\n nz-tooltip\n [nzTooltipTitle]=\"i.optionalHelp\"\n nz-icon\n nzType=\"question-circle\"\n ></i>\n</ng-template>\n<ng-template #chkAllTpl let-custom>\n <label\n nz-checkbox\n class=\"st__checkall\"\n [nzDisabled]=\"_allCheckedDisabled\"\n [(ngModel)]=\"_allChecked\"\n [nzIndeterminate]=\"_indeterminate\"\n (ngModelChange)=\"
|
|
2249
|
+
template: "<ng-template #titleTpl let-i>\n <span [innerHTML]=\"i._text\"></span>\n <small *ngIf=\"i.optional\" class=\"st__head-optional\" [innerHTML]=\"i.optional\"></small>\n <i\n *ngIf=\"i.optionalHelp\"\n class=\"st__head-tip\"\n nz-tooltip\n [nzTooltipTitle]=\"i.optionalHelp\"\n nz-icon\n nzType=\"question-circle\"\n ></i>\n</ng-template>\n<ng-template #chkAllTpl let-custom>\n <label\n nz-checkbox\n class=\"st__checkall\"\n [nzDisabled]=\"_allCheckedDisabled\"\n [(ngModel)]=\"_allChecked\"\n [nzIndeterminate]=\"_indeterminate\"\n (ngModelChange)=\"checkAll()\"\n [class.ant-table-selection-select-all-custom]=\"custom\"\n ></label>\n</ng-template>\n<nz-table\n #table\n [nzData]=\"_data\"\n [(nzPageIndex)]=\"pi\"\n (nzPageIndexChange)=\"_change('pi')\"\n [(nzPageSize)]=\"ps\"\n (nzPageSizeChange)=\"_change('ps')\"\n [nzTotal]=\"total\"\n [nzShowPagination]=\"_isPagination\"\n [nzFrontPagination]=\"false\"\n [nzBordered]=\"bordered\"\n [nzSize]=\"size\"\n [nzLoading]=\"_loading\"\n [nzLoadingDelay]=\"loadingDelay\"\n [nzLoadingIndicator]=\"loadingIndicator\"\n [nzTitle]=\"header!\"\n [nzFooter]=\"footer!\"\n [nzScroll]=\"scroll\"\n [nzVirtualItemSize]=\"virtualItemSize\"\n [nzVirtualMaxBufferPx]=\"virtualMaxBufferPx\"\n [nzVirtualMinBufferPx]=\"virtualMinBufferPx\"\n [nzVirtualForTrackBy]=\"virtualForTrackBy\"\n [nzNoResult]=\"noResult!\"\n [nzPageSizeOptions]=\"page.pageSizes!\"\n [nzShowQuickJumper]=\"page.showQuickJumper\"\n [nzShowSizeChanger]=\"page.showSize\"\n [nzPaginationPosition]=\"page.position!\"\n [nzPaginationType]=\"page.type!\"\n [nzItemRender]=\"page.itemRender!\"\n [nzSimple]=\"page.simple\"\n [nzShowTotal]=\"totalTpl\"\n [nzWidthConfig]=\"_widthConfig\"\n (contextmenu)=\"onContextmenu($event)\"\n>\n <thead *ngIf=\"showHeader\">\n <tr *ngFor=\"let row of _headers; let rowFirst = first\">\n <th *ngIf=\"rowFirst && expand\" nzWidth=\"50px\" [rowSpan]=\"_headers.length\"></th>\n <ng-container *ngFor=\"let h of row; let index = index; let last = last\">\n <th\n *let=\"h.column as _c\"\n [colSpan]=\"h.colSpan\"\n [rowSpan]=\"h.rowSpan\"\n [nzWidth]=\"$any(_c).width\"\n [nzLeft]=\"_c._left!\"\n [nzRight]=\"_c._right!\"\n [ngClass]=\"_c.className!\"\n [attr.data-col]=\"_c.indexKey\"\n [attr.data-col-index]=\"index\"\n [nzShowSort]=\"_c._sort.enabled\"\n [nzSortOrder]=\"$any(_c)._sort.default\"\n (nzSortOrderChange)=\"sort(_c, index, $event)\"\n [nzCustomFilter]=\"$any(_c).filter\"\n nz-resizable\n [nzDisabled]=\"last || $any(_c).resizable.disabled\"\n [nzMaxWidth]=\"$any(_c).resizable.maxWidth\"\n [nzMinWidth]=\"$any(_c).resizable.minWidth\"\n [nzBounds]=\"$any(_c).resizable.bounds\"\n [nzPreview]=\"$any(_c).resizable.preview\"\n (nzResizeEnd)=\"colResize($event, _c)\"\n >\n <nz-resize-handle *ngIf=\"$any(!last && !$any(_c).resizable.disabled)\" nzDirection=\"right\">\n <i></i>\n </nz-resize-handle>\n <ng-template\n #renderTitle\n [ngTemplateOutlet]=\"_c.__renderTitle!\"\n [ngTemplateOutletContext]=\"{ $implicit: h.column, index: index }\"\n ></ng-template>\n <ng-container *ngIf=\"!_c.__renderTitle; else renderTitle\">\n <ng-container [ngSwitch]=\"_c.type\">\n <ng-container *ngSwitchCase=\"'checkbox'\">\n <ng-container *ngIf=\"_c.selections!.length === 0\">\n <ng-template [ngTemplateOutlet]=\"chkAllTpl\" [ngTemplateOutletContext]=\"{ $implicit: false }\">\n </ng-template>\n </ng-container>\n <div *ngIf=\"_c.selections!.length > 0\" class=\"ant-table-selection\">\n <ng-template [ngTemplateOutlet]=\"chkAllTpl\" [ngTemplateOutletContext]=\"{ $implicit: true }\">\n </ng-template>\n <div *ngIf=\"_c.selections!.length\" class=\"ant-table-selection-extra\">\n <div\n nz-dropdown\n nzPlacement=\"bottomLeft\"\n [nzDropdownMenu]=\"selectionMenu\"\n class=\"ant-table-selection-down st__checkall-selection\"\n >\n <i nz-icon nzType=\"down\"></i>\n </div>\n </div>\n <nz-dropdown-menu #selectionMenu=\"nzDropdownMenu\">\n <ul nz-menu class=\"ant-table-selection-menu\">\n <li\n nz-menu-item\n *ngFor=\"let rw of _c.selections\"\n (click)=\"_rowSelection(rw)\"\n [innerHTML]=\"rw.text\"\n ></li>\n </ul>\n </nz-dropdown-menu>\n </div>\n </ng-container>\n <ng-container *ngSwitchDefault>\n <ng-template\n [ngTemplateOutlet]=\"titleTpl\"\n [ngTemplateOutletContext]=\"{ $implicit: _c.title }\"\n ></ng-template>\n </ng-container>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"_c.filter\">\n <st-filter\n nz-th-extra\n [col]=\"h.column\"\n [f]=\"_c.filter\"\n [locale]=\"locale\"\n (n)=\"handleFilterNotify($event)\"\n (handle)=\"_handleFilter(_c, $event)\"\n ></st-filter>\n </ng-container>\n </th>\n </ng-container>\n </tr>\n </thead>\n <tbody class=\"st__body\">\n <ng-container *ngIf=\"!_loading\">\n <ng-template\n [ngTemplateOutlet]=\"bodyHeader!\"\n [ngTemplateOutletContext]=\"{ $implicit: _statistical }\"\n ></ng-template>\n </ng-container>\n <ng-template #bodyTpl let-i let-index=\"index\">\n <tr\n [attr.data-index]=\"index\"\n (click)=\"_rowClick($event, i, index, false)\"\n (dblclick)=\"_rowClick($event, i, index, true)\"\n [ngClass]=\"i._rowClassName\"\n >\n <td\n *ngIf=\"expand\"\n [nzShowExpand]=\"expand && i.showExpand !== false\"\n [nzExpand]=\"i.expand\"\n (nzExpandChange)=\"_expandChange(i, $event)\"\n (click)=\"_stopPropagation($event)\"\n nzWidth=\"50px\"\n ></td>\n <td\n *ngFor=\"let c of _columns; let cIdx = index\"\n [nzLeft]=\"!!c._left\"\n [nzRight]=\"!!c._right\"\n [attr.data-col-index]=\"cIdx\"\n [ngClass]=\"c._className!\"\n [attr.colspan]=\"c.colSpan\"\n >\n <span *ngIf=\"responsive\" class=\"ant-table-rep__title\">\n <ng-template [ngTemplateOutlet]=\"titleTpl\" [ngTemplateOutletContext]=\"{ $implicit: c.title }\"></ng-template>\n </span>\n <st-td [data]=\"_data\" [i]=\"i\" [index]=\"index\" [c]=\"c\" [cIdx]=\"cIdx\" (n)=\"_handleTd($event)\"></st-td>\n </td>\n </tr>\n <tr [nzExpand]=\"i.expand\">\n <ng-template\n [ngTemplateOutlet]=\"expand\"\n [ngTemplateOutletContext]=\"{ $implicit: i, index: index }\"\n ></ng-template>\n </tr>\n </ng-template>\n <ng-container *ngIf=\"!virtualScroll\">\n <ng-container *ngFor=\"let i of _data; let index = index\">\n <ng-template [ngTemplateOutlet]=\"bodyTpl\" [ngTemplateOutletContext]=\"{ $implicit: i, index: index }\">\n </ng-template>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"virtualScroll\">\n <ng-template nz-virtual-scroll let-i let-index=\"index\">\n <ng-template [ngTemplateOutlet]=\"bodyTpl\" [ngTemplateOutletContext]=\"{ $implicit: i, index: index }\">\n </ng-template>\n </ng-template>\n </ng-container>\n <ng-container *ngIf=\"!_loading\">\n <ng-template [ngTemplateOutlet]=\"body!\" [ngTemplateOutletContext]=\"{ $implicit: _statistical }\"></ng-template>\n </ng-container>\n </tbody>\n <ng-template #totalTpl let-range=\"range\" let-total>{{ renderTotal(total, range) }}</ng-template>\n</nz-table>\n<nz-dropdown-menu #contextmenuTpl=\"nzDropdownMenu\">\n <ul nz-menu class=\"st__contextmenu\">\n <ng-container *ngFor=\"let i of contextmenuList\">\n <li nz-menu-item *ngIf=\"i.children!.length === 0\" (click)=\"i.fn!(i)\" [innerHTML]=\"i.text\"></li>\n <li nz-submenu *ngIf=\"i.children!.length > 0\" [nzTitle]=\"i.text\">\n <ul>\n <li nz-menu-item *ngFor=\"let ci of i.children\" (click)=\"ci.fn!(ci)\" [innerHTML]=\"ci.text\"></li>\n </ul>\n </li>\n </ng-container>\n </ul>\n</nz-dropdown-menu>\n",
|
|
2246
2250
|
providers: [STDataSource, STRowSource, STColumnSource, STExport, theme.DatePipe, theme.YNPipe, common.DecimalPipe],
|
|
2247
2251
|
host: {
|
|
2248
2252
|
'[class.st]': "true",
|
|
@@ -2436,9 +2440,9 @@
|
|
|
2436
2440
|
this.i.checked = value;
|
|
2437
2441
|
this.report('checkbox');
|
|
2438
2442
|
};
|
|
2439
|
-
STTdComponent.prototype._radio = function (
|
|
2443
|
+
STTdComponent.prototype._radio = function () {
|
|
2440
2444
|
this.data.filter(function (w) { return !w.disabled; }).forEach(function (i) { return (i.checked = false); });
|
|
2441
|
-
this.i.checked =
|
|
2445
|
+
this.i.checked = true;
|
|
2442
2446
|
this.report('radio');
|
|
2443
2447
|
};
|
|
2444
2448
|
STTdComponent.prototype._link = function (e) {
|
|
@@ -2508,7 +2512,7 @@
|
|
|
2508
2512
|
STTdComponent.decorators = [
|
|
2509
2513
|
{ type: i0.Component, args: [{
|
|
2510
2514
|
selector: 'st-td',
|
|
2511
|
-
template: "\n <ng-template #btnTpl let-i>\n <ng-container *ngIf=\"!i.tooltip\">\n <ng-template [ngTemplateOutlet]=\"btnItemTpl\" [ngTemplateOutletContext]=\"{ $implicit: i }\"></ng-template>\n </ng-container>\n <span *ngIf=\"i.tooltip\" nz-tooltip [nzTooltipTitle]=\"i.tooltip\">\n <ng-template [ngTemplateOutlet]=\"btnItemTpl\" [ngTemplateOutletContext]=\"{ $implicit: i }\"></ng-template>\n </span>\n </ng-template>\n <ng-template #btnItemTpl let-i>\n <a\n *ngIf=\"i.pop\"\n nz-popconfirm\n [nzPopconfirmTitle]=\"i.pop.title\"\n [nzIcon]=\"i.pop.icon\"\n [nzCondition]=\"i.pop.condition(i)\"\n [nzCancelText]=\"i.pop.cancelText\"\n [nzOkText]=\"i.pop.okText\"\n [nzOkType]=\"i.pop.okType\"\n (nzOnConfirm)=\"_btn(i)\"\n class=\"st__btn-text\"\n [ngClass]=\"i.className\"\n (click)=\"_stopPropagation($event)\"\n >\n <ng-template [ngTemplateOutlet]=\"btnTextTpl\" [ngTemplateOutletContext]=\"{ $implicit: i }\"></ng-template>\n </a>\n <a *ngIf=\"!i.pop\" (click)=\"_btn(i, $event)\" class=\"st__btn-text\" [ngClass]=\"i.className\">\n <ng-template [ngTemplateOutlet]=\"btnTextTpl\" [ngTemplateOutletContext]=\"{ $implicit: i }\"></ng-template>\n </a>\n </ng-template>\n <ng-template #btnTextTpl let-i>\n <ng-container *ngIf=\"i.icon\">\n <i\n *ngIf=\"!i.icon.iconfont\"\n nz-icon\n [nzType]=\"i.icon.type\"\n [nzTheme]=\"i.icon.theme\"\n [nzSpin]=\"i.icon.spin\"\n [nzTwotoneColor]=\"i.icon.twoToneColor\"\n ></i>\n <i *ngIf=\"i.icon.iconfont\" nz-icon [nzIconfont]=\"i.icon.iconfont\"></i>\n </ng-container>\n <span [innerHTML]=\"i._text\" [ngClass]=\"{ 'pl-xs': i.icon }\"></span>\n </ng-template>\n <ng-template\n #render\n [ngTemplateOutlet]=\"c.__render!\"\n [ngTemplateOutletContext]=\"{ $implicit: i, index: index, column: c }\"\n ></ng-template>\n <ng-container *ngIf=\"!c.__render; else render\">\n <ng-container [ngSwitch]=\"c.type\">\n <label\n *ngSwitchCase=\"'checkbox'\"\n nz-checkbox\n [nzDisabled]=\"i.disabled\"\n [ngModel]=\"i.checked\"\n (ngModelChange)=\"_checkbox($event)\"\n ></label>\n <label\n *ngSwitchCase=\"'radio'\"\n nz-radio\n [nzDisabled]=\"i.disabled\"\n [ngModel]=\"i.checked\"\n (ngModelChange)=\"_radio(
|
|
2515
|
+
template: "\n <ng-template #btnTpl let-i>\n <ng-container *ngIf=\"!i.tooltip\">\n <ng-template [ngTemplateOutlet]=\"btnItemTpl\" [ngTemplateOutletContext]=\"{ $implicit: i }\"></ng-template>\n </ng-container>\n <span *ngIf=\"i.tooltip\" nz-tooltip [nzTooltipTitle]=\"i.tooltip\">\n <ng-template [ngTemplateOutlet]=\"btnItemTpl\" [ngTemplateOutletContext]=\"{ $implicit: i }\"></ng-template>\n </span>\n </ng-template>\n <ng-template #btnItemTpl let-i>\n <a\n *ngIf=\"i.pop\"\n nz-popconfirm\n [nzPopconfirmTitle]=\"i.pop.title\"\n [nzIcon]=\"i.pop.icon\"\n [nzCondition]=\"i.pop.condition(i)\"\n [nzCancelText]=\"i.pop.cancelText\"\n [nzOkText]=\"i.pop.okText\"\n [nzOkType]=\"i.pop.okType\"\n (nzOnConfirm)=\"_btn(i)\"\n class=\"st__btn-text\"\n [ngClass]=\"i.className\"\n (click)=\"_stopPropagation($event)\"\n >\n <ng-template [ngTemplateOutlet]=\"btnTextTpl\" [ngTemplateOutletContext]=\"{ $implicit: i }\"></ng-template>\n </a>\n <a *ngIf=\"!i.pop\" (click)=\"_btn(i, $event)\" class=\"st__btn-text\" [ngClass]=\"i.className\">\n <ng-template [ngTemplateOutlet]=\"btnTextTpl\" [ngTemplateOutletContext]=\"{ $implicit: i }\"></ng-template>\n </a>\n </ng-template>\n <ng-template #btnTextTpl let-i>\n <ng-container *ngIf=\"i.icon\">\n <i\n *ngIf=\"!i.icon.iconfont\"\n nz-icon\n [nzType]=\"i.icon.type\"\n [nzTheme]=\"i.icon.theme\"\n [nzSpin]=\"i.icon.spin\"\n [nzTwotoneColor]=\"i.icon.twoToneColor\"\n ></i>\n <i *ngIf=\"i.icon.iconfont\" nz-icon [nzIconfont]=\"i.icon.iconfont\"></i>\n </ng-container>\n <span [innerHTML]=\"i._text\" [ngClass]=\"{ 'pl-xs': i.icon }\"></span>\n </ng-template>\n <ng-template\n #render\n [ngTemplateOutlet]=\"c.__render!\"\n [ngTemplateOutletContext]=\"{ $implicit: i, index: index, column: c }\"\n ></ng-template>\n <ng-container *ngIf=\"!c.__render; else render\">\n <ng-container [ngSwitch]=\"c.type\">\n <label\n *ngSwitchCase=\"'checkbox'\"\n nz-checkbox\n [nzDisabled]=\"i.disabled\"\n [ngModel]=\"i.checked\"\n (ngModelChange)=\"_checkbox($event)\"\n ></label>\n <label\n *ngSwitchCase=\"'radio'\"\n nz-radio\n [nzDisabled]=\"i.disabled\"\n [ngModel]=\"i.checked\"\n (ngModelChange)=\"_radio()\"\n ></label>\n <a\n *ngSwitchCase=\"'link'\"\n (click)=\"_link($event)\"\n [innerHTML]=\"i._values[cIdx]._text\"\n [attr.title]=\"i._values[cIdx].text\"\n ></a>\n <ng-container *ngIf=\"i._values[cIdx].text\">\n <nz-tag *ngSwitchCase=\"'tag'\" [nzColor]=\"i._values[cIdx].color\">\n <span [innerHTML]=\"i._values[cIdx]._text\"></span>\n </nz-tag>\n <nz-badge\n *ngSwitchCase=\"'badge'\"\n [nzStatus]=\"i._values[cIdx].color\"\n [nzText]=\"i._values[cIdx].text\"\n ></nz-badge>\n </ng-container>\n <ng-template *ngSwitchCase=\"'widget'\" st-widget-host [record]=\"i\" [column]=\"c\"></ng-template\n ><ng-container *ngSwitchDefault>\n <span\n *ngIf=\"c.safeType !== 'text'\"\n [innerHTML]=\"i._values[cIdx]._text\"\n [attr.title]=\"c._isTruncate ? i._values[cIdx].text : null\"\n ></span>\n <span\n *ngIf=\"c.safeType === 'text'\"\n [innerText]=\"i._values[cIdx]._text\"\n [attr.title]=\"c._isTruncate ? i._values[cIdx].text : null\"\n ></span>\n </ng-container>\n </ng-container>\n <ng-container *ngFor=\"let btn of i._values[cIdx].buttons; let last = last\">\n <a *ngIf=\"btn.children!.length > 0\" nz-dropdown [nzDropdownMenu]=\"btnMenu\" nzOverlayClassName=\"st__btn-sub\">\n <span [innerHTML]=\"btn._text\"></span>\n <i nz-icon nzType=\"down\"></i>\n </a>\n <nz-dropdown-menu #btnMenu=\"nzDropdownMenu\">\n <ul nz-menu>\n <ng-container *ngFor=\"let subBtn of btn.children!\">\n <li *ngIf=\"subBtn.type !== 'divider'\" nz-menu-item [class.st__btn-disabled]=\"subBtn._disabled\">\n <ng-template [ngTemplateOutlet]=\"btnTpl\" [ngTemplateOutletContext]=\"{ $implicit: subBtn }\">\n </ng-template>\n </li>\n <li *ngIf=\"subBtn.type === 'divider'\" nz-menu-divider></li>\n </ng-container>\n </ul>\n </nz-dropdown-menu>\n <span *ngIf=\"btn.children!.length === 0\" [class.st__btn-disabled]=\"btn._disabled\">\n <ng-template [ngTemplateOutlet]=\"btnTpl\" [ngTemplateOutletContext]=\"{ $implicit: btn }\"> </ng-template>\n </span>\n <nz-divider *ngIf=\"!last\" nzType=\"vertical\"></nz-divider>\n </ng-container>\n </ng-container>\n ",
|
|
2512
2516
|
preserveWhitespaces: false,
|
|
2513
2517
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
2514
2518
|
encapsulation: i0.ViewEncapsulation.None
|