@ebuilding/abc 2.0.0
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/LICENSE +0 -0
- package/README.md +0 -0
- package/button/index.d.ts +1 -0
- package/button/src/default/index.d.ts +15 -0
- package/button/src/index.module.d.ts +9 -0
- package/button/src/inner/index.d.ts +10 -0
- package/button/src/main/index.d.ts +16 -0
- package/button/src/public_api.d.ts +4 -0
- package/card/index.d.ts +1 -0
- package/card/src/card.service.d.ts +19 -0
- package/card/src/column-default/index.d.ts +22 -0
- package/card/src/column-img/index.d.ts +22 -0
- package/card/src/column-img1/index.d.ts +13 -0
- package/card/src/column-img2/index.d.ts +13 -0
- package/card/src/column-img3/index.d.ts +13 -0
- package/card/src/default/index.d.ts +45 -0
- package/card/src/design/index.d.ts +10 -0
- package/card/src/design-text/index.d.ts +10 -0
- package/card/src/index.module.d.ts +11 -0
- package/card/src/item-group/index.d.ts +16 -0
- package/card/src/item-text/index.d.ts +15 -0
- package/card/src/item.service.d.ts +20 -0
- package/card/src/public_api.d.ts +6 -0
- package/card-assess/index.d.ts +1 -0
- package/card-assess/src/default/index.d.ts +19 -0
- package/card-assess/src/index.module.d.ts +7 -0
- package/card-assess/src/public_api.d.ts +2 -0
- package/card-emp/index.d.ts +1 -0
- package/card-emp/src/default/index.d.ts +10 -0
- package/card-emp/src/emp-okr/index.d.ts +12 -0
- package/card-emp/src/index.module.d.ts +8 -0
- package/card-emp/src/public_api.d.ts +3 -0
- package/card-list/index.d.ts +1 -0
- package/card-list/src/default/index.d.ts +14 -0
- package/card-list/src/index.module.d.ts +7 -0
- package/card-list/src/public_api.d.ts +2 -0
- package/card-okr/index.d.ts +1 -0
- package/card-okr/src/default/index.d.ts +22 -0
- package/card-okr/src/index.module.d.ts +17 -0
- package/card-okr/src/kpi-stats1/index.d.ts +15 -0
- package/card-okr/src/kpi-stats2/index.d.ts +14 -0
- package/card-okr/src/kpi-stats3/index.d.ts +16 -0
- package/card-okr/src/objective/index.d.ts +14 -0
- package/card-okr/src/objective-dl/index.d.ts +16 -0
- package/card-okr/src/objective-dx/index.d.ts +16 -0
- package/card-okr/src/public_api.d.ts +11 -0
- package/card-okr/src/stats-default/index.d.ts +14 -0
- package/card-okr/src/stats-objective/index.d.ts +14 -0
- package/card-okr/src/stats-progress/index.d.ts +12 -0
- package/card-plan-kpi/index.d.ts +1 -0
- package/card-plan-kpi/src/default/index.d.ts +22 -0
- package/card-plan-kpi/src/index.module.d.ts +7 -0
- package/card-plan-kpi/src/public_api.d.ts +2 -0
- package/card-result/index.d.ts +1 -0
- package/card-result/src/default/index.d.ts +45 -0
- package/card-result/src/index.module.d.ts +8 -0
- package/card-result/src/public_api.d.ts +2 -0
- package/card-score/index.d.ts +1 -0
- package/card-score/src/default/index.d.ts +9 -0
- package/card-score/src/index.module.d.ts +8 -0
- package/card-score/src/public_api.d.ts +2 -0
- package/card-user/index.d.ts +1 -0
- package/card-user/src/default/index.d.ts +11 -0
- package/card-user/src/index.module.d.ts +7 -0
- package/card-user/src/public_api.d.ts +2 -0
- package/card2/index.d.ts +1 -0
- package/card2/src/default/index.d.ts +90 -0
- package/card2/src/index.module.d.ts +7 -0
- package/card2/src/public_api.d.ts +2 -0
- package/codemirror/index.d.ts +1 -0
- package/codemirror/src/default/index.d.ts +10 -0
- package/codemirror/src/index.module.d.ts +7 -0
- package/codemirror/src/public_api.d.ts +5 -0
- package/collect/index.d.ts +1 -0
- package/collect/src/default/index.d.ts +11 -0
- package/collect/src/index.module.d.ts +7 -0
- package/collect/src/public_api.d.ts +2 -0
- package/developing/index.d.ts +1 -0
- package/developing/src/default/index.d.ts +8 -0
- package/developing/src/index.module.d.ts +10 -0
- package/developing/src/public_api.d.ts +2 -0
- package/empty/index.d.ts +1 -0
- package/empty/src/default/index.d.ts +13 -0
- package/empty/src/index.module.d.ts +7 -0
- package/empty/src/public_api.d.ts +2 -0
- package/fesm2022/codemirror.mjs +806 -0
- package/fesm2022/codemirror.mjs.map +1 -0
- package/fesm2022/components.button.mjs +121 -0
- package/fesm2022/components.button.mjs.map +1 -0
- package/fesm2022/components.card-assess.mjs +68 -0
- package/fesm2022/components.card-assess.mjs.map +1 -0
- package/fesm2022/components.card-emp.mjs +65 -0
- package/fesm2022/components.card-emp.mjs.map +1 -0
- package/fesm2022/components.card-list.mjs +53 -0
- package/fesm2022/components.card-list.mjs.map +1 -0
- package/fesm2022/components.card-okr.mjs +370 -0
- package/fesm2022/components.card-okr.mjs.map +1 -0
- package/fesm2022/components.card-plan-kpi.mjs +68 -0
- package/fesm2022/components.card-plan-kpi.mjs.map +1 -0
- package/fesm2022/components.card-result.mjs +137 -0
- package/fesm2022/components.card-result.mjs.map +1 -0
- package/fesm2022/components.card-score.mjs +47 -0
- package/fesm2022/components.card-score.mjs.map +1 -0
- package/fesm2022/components.card-user.mjs +56 -0
- package/fesm2022/components.card-user.mjs.map +1 -0
- package/fesm2022/components.card.mjs +670 -0
- package/fesm2022/components.card.mjs.map +1 -0
- package/fesm2022/components.card2.mjs +463 -0
- package/fesm2022/components.card2.mjs.map +1 -0
- package/fesm2022/components.collect.mjs +57 -0
- package/fesm2022/components.collect.mjs.map +1 -0
- package/fesm2022/components.developing.mjs +38 -0
- package/fesm2022/components.developing.mjs.map +1 -0
- package/fesm2022/components.empty.mjs +54 -0
- package/fesm2022/components.empty.mjs.map +1 -0
- package/fesm2022/components.flow-button.mjs +89 -0
- package/fesm2022/components.flow-button.mjs.map +1 -0
- package/fesm2022/components.header-user.mjs +261 -0
- package/fesm2022/components.header-user.mjs.map +1 -0
- package/fesm2022/components.header.mjs +81 -0
- package/fesm2022/components.header.mjs.map +1 -0
- package/fesm2022/components.line.mjs +44 -0
- package/fesm2022/components.line.mjs.map +1 -0
- package/fesm2022/components.no-role.mjs +37 -0
- package/fesm2022/components.no-role.mjs.map +1 -0
- package/fesm2022/components.nz-table-tree.mjs +407 -0
- package/fesm2022/components.nz-table-tree.mjs.map +1 -0
- package/fesm2022/components.nz-table.mjs +463 -0
- package/fesm2022/components.nz-table.mjs.map +1 -0
- package/fesm2022/components.plan-item.mjs +249 -0
- package/fesm2022/components.plan-item.mjs.map +1 -0
- package/fesm2022/components.principal.mjs +59 -0
- package/fesm2022/components.principal.mjs.map +1 -0
- package/fesm2022/components.python.mjs +140 -0
- package/fesm2022/components.python.mjs.map +1 -0
- package/fesm2022/components.quick.mjs +158 -0
- package/fesm2022/components.quick.mjs.map +1 -0
- package/fesm2022/components.record.mjs +106 -0
- package/fesm2022/components.record.mjs.map +1 -0
- package/fesm2022/components.step-entry.mjs +50 -0
- package/fesm2022/components.step-entry.mjs.map +1 -0
- package/fesm2022/components.target-value.mjs +83 -0
- package/fesm2022/components.target-value.mjs.map +1 -0
- package/fesm2022/components.text.mjs +444 -0
- package/fesm2022/components.text.mjs.map +1 -0
- package/fesm2022/components.tree.mjs +203 -0
- package/fesm2022/components.tree.mjs.map +1 -0
- package/fesm2022/ebuilding-abc.mjs +121 -0
- package/fesm2022/ebuilding-abc.mjs.map +1 -0
- package/flow-button/index.d.ts +1 -0
- package/flow-button/src/default/index.d.ts +14 -0
- package/flow-button/src/index.module.d.ts +7 -0
- package/flow-button/src/public_api.d.ts +2 -0
- package/header/index.d.ts +1 -0
- package/header/src/default/index.d.ts +16 -0
- package/header/src/index.module.d.ts +10 -0
- package/header/src/public_api.d.ts +2 -0
- package/header-user/index.d.ts +1 -0
- package/header-user/src/default/index.d.ts +57 -0
- package/header-user/src/index.module.d.ts +7 -0
- package/header-user/src/public_api.d.ts +2 -0
- package/index.d.ts +1 -0
- package/line/index.d.ts +1 -0
- package/line/src/default/index.d.ts +9 -0
- package/line/src/index.module.d.ts +10 -0
- package/line/src/public_api.d.ts +2 -0
- package/no-role/index.d.ts +1 -0
- package/no-role/src/default/index.d.ts +9 -0
- package/no-role/src/index.module.d.ts +8 -0
- package/no-role/src/public_api.d.ts +2 -0
- package/nz-table/index.d.ts +1 -0
- package/nz-table/src/default/index.d.ts +90 -0
- package/nz-table/src/index.module.d.ts +7 -0
- package/nz-table/src/public_api.d.ts +2 -0
- package/nz-table-tree/index.d.ts +1 -0
- package/nz-table-tree/src/default/index.d.ts +98 -0
- package/nz-table-tree/src/index.module.d.ts +8 -0
- package/nz-table-tree/src/operation/index.d.ts +12 -0
- package/nz-table-tree/src/public_api.d.ts +2 -0
- package/package.json +144 -0
- package/plan-item/index.d.ts +1 -0
- package/plan-item/src/default/index.d.ts +45 -0
- package/plan-item/src/index.module.d.ts +7 -0
- package/plan-item/src/public_api.d.ts +2 -0
- package/principal/index.d.ts +1 -0
- package/principal/src/default/index.d.ts +15 -0
- package/principal/src/index.module.d.ts +7 -0
- package/principal/src/public_api.d.ts +2 -0
- package/python/index.d.ts +1 -0
- package/python/src/default/index.d.ts +8 -0
- package/python/src/index.module.d.ts +8 -0
- package/python/src/public_api.d.ts +2 -0
- package/quick/index.d.ts +1 -0
- package/quick/src/datetime/index.d.ts +12 -0
- package/quick/src/default/index.d.ts +14 -0
- package/quick/src/index.module.d.ts +10 -0
- package/quick/src/public_api.d.ts +2 -0
- package/record/index.d.ts +1 -0
- package/record/src/default/index.d.ts +12 -0
- package/record/src/index.module.d.ts +8 -0
- package/record/src/main/index.d.ts +12 -0
- package/record/src/public_api.d.ts +3 -0
- package/step-entry/index.d.ts +1 -0
- package/step-entry/src/default/index.d.ts +12 -0
- package/step-entry/src/index.module.d.ts +9 -0
- package/step-entry/src/public_api.d.ts +2 -0
- package/target-value/index.d.ts +1 -0
- package/target-value/src/default/index.d.ts +17 -0
- package/target-value/src/index.module.d.ts +8 -0
- package/target-value/src/public_api.d.ts +2 -0
- package/text/index.d.ts +1 -0
- package/text/src/default/index.d.ts +25 -0
- package/text/src/index.module.d.ts +9 -0
- package/text/src/public_api.d.ts +2 -0
- package/text/src/text.service.d.ts +57 -0
- package/tree/index.d.ts +1 -0
- package/tree/src/default/index.d.ts +39 -0
- package/tree/src/index.module.d.ts +9 -0
- package/tree/src/public_api.d.ts +2 -0
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { EventEmitter, Output, Input, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i2 from '@angular/forms';
|
|
6
|
+
import { FormsModule } from '@angular/forms';
|
|
7
|
+
import * as i3$1 from 'ng-zorro-antd/select';
|
|
8
|
+
import { NzSelectModule } from 'ng-zorro-antd/select';
|
|
9
|
+
import * as i4 from 'ng-zorro-antd/radio';
|
|
10
|
+
import { NzRadioModule } from 'ng-zorro-antd/radio';
|
|
11
|
+
import * as i3 from 'ng-zorro-antd/date-picker';
|
|
12
|
+
import { NzDatePickerModule } from 'ng-zorro-antd/date-picker';
|
|
13
|
+
import _ from 'lodash';
|
|
14
|
+
|
|
15
|
+
class QuickDateTimeComponent {
|
|
16
|
+
data = {};
|
|
17
|
+
dataChange = new EventEmitter();
|
|
18
|
+
ngOnInit() { }
|
|
19
|
+
ngAfterViewInit() { }
|
|
20
|
+
dateChange(e) {
|
|
21
|
+
let para = {};
|
|
22
|
+
let time = null;
|
|
23
|
+
if (this.data?.value != undefined && this.data?.value != null && this.data?.value != '') {
|
|
24
|
+
time = this.data?.value;
|
|
25
|
+
}
|
|
26
|
+
para[this.data.key] = {
|
|
27
|
+
type: 'dateTime',
|
|
28
|
+
isArray: false,
|
|
29
|
+
value: time,
|
|
30
|
+
values: null,
|
|
31
|
+
format: this.data.format,
|
|
32
|
+
};
|
|
33
|
+
this.dataChange.emit(para);
|
|
34
|
+
}
|
|
35
|
+
datesChange(e) {
|
|
36
|
+
let para = {};
|
|
37
|
+
let time = [];
|
|
38
|
+
if (this.data?.value1 != undefined && this.data.value1 != null && this.data.value1 != '') {
|
|
39
|
+
time.push(this.data?.value1);
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
time.push('');
|
|
43
|
+
}
|
|
44
|
+
if (this.data?.value2 != undefined && this.data.value2 != null && this.data.value2 != '') {
|
|
45
|
+
time.push(this.data?.value2);
|
|
46
|
+
}
|
|
47
|
+
else {
|
|
48
|
+
time.push('');
|
|
49
|
+
}
|
|
50
|
+
para[this.data.key] = {
|
|
51
|
+
type: 'dateTime',
|
|
52
|
+
isArray: true,
|
|
53
|
+
value: null,
|
|
54
|
+
values: time,
|
|
55
|
+
format: this.data.format,
|
|
56
|
+
};
|
|
57
|
+
this.dataChange.emit(para);
|
|
58
|
+
}
|
|
59
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: QuickDateTimeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
60
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: QuickDateTimeComponent, isStandalone: true, selector: "quick-datetime", inputs: { data: "data" }, outputs: { dataChange: "dataChange" }, ngImport: i0, template: "<ng-container [ngSwitch]=\"data.format\">\n <ng-container *ngSwitchCase=\"'YYYYMMDD'\">\n <ng-container *ngIf=\"data.izBetween==true;else tmpDateTime\">\n <nz-date-picker [(ngModel)]=\"data.value1\" (ngModelChange)=\"datesChange($event)\"></nz-date-picker>\n ~\n <nz-date-picker [(ngModel)]=\"data.value2\" (ngModelChange)=\"datesChange($event)\"></nz-date-picker>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'YYYYMMDDHHMMSS'\">\n <ng-container *ngIf=\"data.izBetween==true;else tmpDateTime2\">\n <nz-date-picker\n nzFormat=\"yyyy-MM-dd HH:mm:ss\"\n nzShowTime\n [(ngModel)]=\"data.value1\"\n (ngModelChange)=\"datesChange($event)\"\n ></nz-date-picker>\n ~\n <nz-date-picker\n nzFormat=\"yyyy-MM-dd HH:mm:ss\"\n nzShowTime\n [(ngModel)]=\"data.value2\"\n (ngModelChange)=\"datesChange($event)\"\n ></nz-date-picker>\n </ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #tmpDateTime>\n <nz-date-picker [(ngModel)]=\"data.value\" (ngModelChange)=\"dateChange($event)\"></nz-date-picker>\n</ng-template>\n\n<ng-template #tmpDateTime2>\n <nz-date-picker nzFormat=\"yyyy-MM-dd HH:mm:ss\" nzShowTime [(ngModel)]=\"data.value\" (ngModelChange)=\"dateChange($event)\"></nz-date-picker>\n</ng-template>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzDatePickerModule }, { kind: "component", type: i3.NzDatePickerComponent, selector: "nz-date-picker,nz-week-picker,nz-month-picker,nz-quarter-picker,nz-year-picker,nz-range-picker", inputs: ["nzAllowClear", "nzAutoFocus", "nzDisabled", "nzBorderless", "nzInputReadOnly", "nzInline", "nzOpen", "nzDisabledDate", "nzLocale", "nzPlaceHolder", "nzPopupStyle", "nzDropdownClassName", "nzSize", "nzStatus", "nzFormat", "nzDateRender", "nzDisabledTime", "nzRenderExtraFooter", "nzShowToday", "nzMode", "nzShowNow", "nzRanges", "nzDefaultPickerValue", "nzSeparator", "nzSuffixIcon", "nzBackdrop", "nzId", "nzPlacement", "nzShowWeekNumber", "nzShowTime"], outputs: ["nzOnPanelChange", "nzOnCalendarChange", "nzOnOk", "nzOnOpenChange"], exportAs: ["nzDatePicker"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
61
|
+
}
|
|
62
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: QuickDateTimeComponent, decorators: [{
|
|
63
|
+
type: Component,
|
|
64
|
+
args: [{ selector: 'quick-datetime', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
65
|
+
CommonModule,
|
|
66
|
+
FormsModule,
|
|
67
|
+
NzDatePickerModule
|
|
68
|
+
], template: "<ng-container [ngSwitch]=\"data.format\">\n <ng-container *ngSwitchCase=\"'YYYYMMDD'\">\n <ng-container *ngIf=\"data.izBetween==true;else tmpDateTime\">\n <nz-date-picker [(ngModel)]=\"data.value1\" (ngModelChange)=\"datesChange($event)\"></nz-date-picker>\n ~\n <nz-date-picker [(ngModel)]=\"data.value2\" (ngModelChange)=\"datesChange($event)\"></nz-date-picker>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'YYYYMMDDHHMMSS'\">\n <ng-container *ngIf=\"data.izBetween==true;else tmpDateTime2\">\n <nz-date-picker\n nzFormat=\"yyyy-MM-dd HH:mm:ss\"\n nzShowTime\n [(ngModel)]=\"data.value1\"\n (ngModelChange)=\"datesChange($event)\"\n ></nz-date-picker>\n ~\n <nz-date-picker\n nzFormat=\"yyyy-MM-dd HH:mm:ss\"\n nzShowTime\n [(ngModel)]=\"data.value2\"\n (ngModelChange)=\"datesChange($event)\"\n ></nz-date-picker>\n </ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #tmpDateTime>\n <nz-date-picker [(ngModel)]=\"data.value\" (ngModelChange)=\"dateChange($event)\"></nz-date-picker>\n</ng-template>\n\n<ng-template #tmpDateTime2>\n <nz-date-picker nzFormat=\"yyyy-MM-dd HH:mm:ss\" nzShowTime [(ngModel)]=\"data.value\" (ngModelChange)=\"dateChange($event)\"></nz-date-picker>\n</ng-template>\n" }]
|
|
69
|
+
}], propDecorators: { data: [{
|
|
70
|
+
type: Input
|
|
71
|
+
}], dataChange: [{
|
|
72
|
+
type: Output
|
|
73
|
+
}] } });
|
|
74
|
+
|
|
75
|
+
class GramDeonQuickComponent {
|
|
76
|
+
_data = [];
|
|
77
|
+
set data(value) {
|
|
78
|
+
this._data = [];
|
|
79
|
+
for (let key in value) {
|
|
80
|
+
let item = _.cloneDeep(value[key]);
|
|
81
|
+
if (item.allItem == true) {
|
|
82
|
+
item.options = [{ label: '全部', value: null }].concat(item.options);
|
|
83
|
+
}
|
|
84
|
+
let obj = {
|
|
85
|
+
key: key,
|
|
86
|
+
label: item?.label,
|
|
87
|
+
type: item?.type,
|
|
88
|
+
selectType: item?.selectType,
|
|
89
|
+
selected: item?.selected,
|
|
90
|
+
options: item?.options,
|
|
91
|
+
allItem: item?.allItem,
|
|
92
|
+
};
|
|
93
|
+
if (item?.type == 'dateTime') {
|
|
94
|
+
obj['value1'] = null;
|
|
95
|
+
obj['value2'] = null;
|
|
96
|
+
obj['format'] = item?.format;
|
|
97
|
+
obj['izBetween'] = item?.izBetween;
|
|
98
|
+
}
|
|
99
|
+
this._data.push(obj);
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
get data() {
|
|
103
|
+
return this._data;
|
|
104
|
+
}
|
|
105
|
+
quickQueryClick = new EventEmitter();
|
|
106
|
+
ngOnInit() { }
|
|
107
|
+
ngAfterViewInit() { }
|
|
108
|
+
radioGroupChange(e, d) {
|
|
109
|
+
let para = {};
|
|
110
|
+
this.data.forEach((item) => {
|
|
111
|
+
if (item.key == d.key) {
|
|
112
|
+
para[item.key] = e;
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
this.quickQueryClick.emit(para);
|
|
116
|
+
}
|
|
117
|
+
dateTimeChange(e) {
|
|
118
|
+
this.quickQueryClick.emit(e);
|
|
119
|
+
}
|
|
120
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonQuickComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
121
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: GramDeonQuickComponent, isStandalone: true, selector: "gram-quick", inputs: { data: "data" }, outputs: { quickQueryClick: "quickQueryClick" }, ngImport: i0, template: "<ul>\n <li *ngFor=\"let item of data\">\n <label class=\"title\">{{item?.label}}</label>\n <ng-container [ngSwitch]=\"item.type\">\n <ng-container *ngSwitchCase=\"'radioGroup'\">\n <nz-radio-group (ngModelChange)=\"radioGroupChange($event,item)\" [(ngModel)]=\"item.selected\">\n <ng-container *ngFor=\"let options of item?.options\">\n <label nz-radio-button nz-radio [nzValue]=\"options.value\">{{ options.label }}</label>\n </ng-container>\n </nz-radio-group>\n </ng-container>\n <ng-container *ngSwitchCase=\"'select'\">\n <nz-select nzAllowClear (ngModelChange)=\"radioGroupChange($event,item)\" [(ngModel)]=\"item.selected\"\n [nzPlaceHolder]=\"'\u8BF7\u9009\u62E9'+item?.label\">\n <ng-container *ngFor=\"let options of item?.options\">\n <nz-option [nzValue]=\"options.value\" [nzLabel]=\"options.label\"></nz-option>\n </ng-container>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase=\"'dateTime'\">\n <quick-datetime [data]=\"item\" (dataChange)=\"dateTimeChange($event)\"></quick-datetime>\n </ng-container>\n <ng-container *ngSwitchCase=\"'text'\">\n </ng-container>\n <ng-container *ngSwitchCase=\"'lookup'\">\n\n </ng-container>\n </ng-container>\n </li>\n</ul>", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: NzSelectModule }, { kind: "component", type: i3$1.NzOptionComponent, selector: "nz-option", inputs: ["nzTitle", "nzLabel", "nzValue", "nzKey", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i3$1.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzSelectOnTab", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { kind: "ngmodule", type: NzRadioModule }, { kind: "component", type: i4.NzRadioComponent, selector: "[nz-radio],[nz-radio-button]", inputs: ["nzValue", "nzDisabled", "nzAutoFocus", "nz-radio-button"], exportAs: ["nzRadio"] }, { kind: "component", type: i4.NzRadioGroupComponent, selector: "nz-radio-group", inputs: ["nzDisabled", "nzButtonStyle", "nzSize", "nzName"], exportAs: ["nzRadioGroup"] }, { kind: "component", type: QuickDateTimeComponent, selector: "quick-datetime", inputs: ["data"], outputs: ["dataChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
122
|
+
}
|
|
123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonQuickComponent, decorators: [{
|
|
124
|
+
type: Component,
|
|
125
|
+
args: [{ selector: 'gram-quick', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
126
|
+
CommonModule,
|
|
127
|
+
FormsModule,
|
|
128
|
+
NzSelectModule,
|
|
129
|
+
NzRadioModule,
|
|
130
|
+
QuickDateTimeComponent
|
|
131
|
+
], template: "<ul>\n <li *ngFor=\"let item of data\">\n <label class=\"title\">{{item?.label}}</label>\n <ng-container [ngSwitch]=\"item.type\">\n <ng-container *ngSwitchCase=\"'radioGroup'\">\n <nz-radio-group (ngModelChange)=\"radioGroupChange($event,item)\" [(ngModel)]=\"item.selected\">\n <ng-container *ngFor=\"let options of item?.options\">\n <label nz-radio-button nz-radio [nzValue]=\"options.value\">{{ options.label }}</label>\n </ng-container>\n </nz-radio-group>\n </ng-container>\n <ng-container *ngSwitchCase=\"'select'\">\n <nz-select nzAllowClear (ngModelChange)=\"radioGroupChange($event,item)\" [(ngModel)]=\"item.selected\"\n [nzPlaceHolder]=\"'\u8BF7\u9009\u62E9'+item?.label\">\n <ng-container *ngFor=\"let options of item?.options\">\n <nz-option [nzValue]=\"options.value\" [nzLabel]=\"options.label\"></nz-option>\n </ng-container>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase=\"'dateTime'\">\n <quick-datetime [data]=\"item\" (dataChange)=\"dateTimeChange($event)\"></quick-datetime>\n </ng-container>\n <ng-container *ngSwitchCase=\"'text'\">\n </ng-container>\n <ng-container *ngSwitchCase=\"'lookup'\">\n\n </ng-container>\n </ng-container>\n </li>\n</ul>" }]
|
|
132
|
+
}], propDecorators: { data: [{
|
|
133
|
+
type: Input
|
|
134
|
+
}], quickQueryClick: [{
|
|
135
|
+
type: Output
|
|
136
|
+
}] } });
|
|
137
|
+
|
|
138
|
+
const COMPONENTS = [GramDeonQuickComponent];
|
|
139
|
+
const COMPONENTS_NOROUNT = [QuickDateTimeComponent];
|
|
140
|
+
class GramDeonQuickModule {
|
|
141
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonQuickModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
142
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: GramDeonQuickModule, imports: [CommonModule, FormsModule, GramDeonQuickComponent, QuickDateTimeComponent], exports: [GramDeonQuickComponent] });
|
|
143
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonQuickModule, imports: [CommonModule, FormsModule, COMPONENTS, COMPONENTS_NOROUNT] });
|
|
144
|
+
}
|
|
145
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonQuickModule, decorators: [{
|
|
146
|
+
type: NgModule,
|
|
147
|
+
args: [{
|
|
148
|
+
imports: [CommonModule, FormsModule, ...COMPONENTS, ...COMPONENTS_NOROUNT],
|
|
149
|
+
exports: [...COMPONENTS]
|
|
150
|
+
}]
|
|
151
|
+
}] });
|
|
152
|
+
|
|
153
|
+
/**
|
|
154
|
+
* Generated bundle index. Do not edit.
|
|
155
|
+
*/
|
|
156
|
+
|
|
157
|
+
export { GramDeonQuickComponent, GramDeonQuickModule };
|
|
158
|
+
//# sourceMappingURL=components.quick.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.quick.mjs","sources":["../../../../packages/abc/quick/src/datetime/index.ts","../../../../packages/abc/quick/src/datetime/index.html","../../../../packages/abc/quick/src/default/index.ts","../../../../packages/abc/quick/src/default/index.html","../../../../packages/abc/quick/src/index.module.ts","../../../../packages/abc/quick/components.quick.ts"],"sourcesContent":["import { Component, Input, Output, EventEmitter, OnInit, AfterViewInit, ChangeDetectionStrategy } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { NzDatePickerModule } from \"ng-zorro-antd/date-picker\";\nimport _ from 'lodash';\n\n@Component({\n selector: 'quick-datetime',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n FormsModule,\n NzDatePickerModule\n ]\n})\nexport class QuickDateTimeComponent implements OnInit, AfterViewInit {\n @Input() data: any = {};\n\n @Output() dataChange: EventEmitter<any> = new EventEmitter();\n\n ngOnInit(): void { }\n\n ngAfterViewInit() { }\n\n dateChange(e: any) {\n let para: any = {};\n let time: any = null;\n if (this.data?.value != undefined && this.data?.value != null && this.data?.value != '') {\n time = this.data?.value;\n }\n para[this.data.key] = {\n type: 'dateTime',\n isArray: false,\n value: time,\n values: null,\n format: this.data.format,\n };\n this.dataChange.emit(para);\n }\n\n datesChange(e: any) {\n let para: any = {};\n let time: any[] = [];\n if (this.data?.value1 != undefined && this.data.value1 != null && this.data.value1 != '') {\n time.push(this.data?.value1);\n } else {\n time.push('');\n }\n if (this.data?.value2 != undefined && this.data.value2 != null && this.data.value2 != '') {\n time.push(this.data?.value2);\n } else {\n time.push('');\n }\n para[this.data.key] = {\n type: 'dateTime',\n isArray: true,\n value: null,\n values: time,\n format: this.data.format,\n };\n this.dataChange.emit(para);\n }\n}\n","<ng-container [ngSwitch]=\"data.format\">\n <ng-container *ngSwitchCase=\"'YYYYMMDD'\">\n <ng-container *ngIf=\"data.izBetween==true;else tmpDateTime\">\n <nz-date-picker [(ngModel)]=\"data.value1\" (ngModelChange)=\"datesChange($event)\"></nz-date-picker>\n ~\n <nz-date-picker [(ngModel)]=\"data.value2\" (ngModelChange)=\"datesChange($event)\"></nz-date-picker>\n </ng-container>\n </ng-container>\n <ng-container *ngSwitchCase=\"'YYYYMMDDHHMMSS'\">\n <ng-container *ngIf=\"data.izBetween==true;else tmpDateTime2\">\n <nz-date-picker\n nzFormat=\"yyyy-MM-dd HH:mm:ss\"\n nzShowTime\n [(ngModel)]=\"data.value1\"\n (ngModelChange)=\"datesChange($event)\"\n ></nz-date-picker>\n ~\n <nz-date-picker\n nzFormat=\"yyyy-MM-dd HH:mm:ss\"\n nzShowTime\n [(ngModel)]=\"data.value2\"\n (ngModelChange)=\"datesChange($event)\"\n ></nz-date-picker>\n </ng-container>\n </ng-container>\n</ng-container>\n\n<ng-template #tmpDateTime>\n <nz-date-picker [(ngModel)]=\"data.value\" (ngModelChange)=\"dateChange($event)\"></nz-date-picker>\n</ng-template>\n\n<ng-template #tmpDateTime2>\n <nz-date-picker nzFormat=\"yyyy-MM-dd HH:mm:ss\" nzShowTime [(ngModel)]=\"data.value\" (ngModelChange)=\"dateChange($event)\"></nz-date-picker>\n</ng-template>\n","import { Component, Input, Output, EventEmitter, OnInit, AfterViewInit, ChangeDetectionStrategy } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { NzSelectModule } from \"ng-zorro-antd/select\";\nimport { NzRadioModule } from \"ng-zorro-antd/radio\";\nimport { QuickDateTimeComponent } from \"../datetime\"\nimport _ from 'lodash';\n@Component({\n selector: 'gram-quick',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n FormsModule,\n NzSelectModule,\n NzRadioModule,\n QuickDateTimeComponent\n ]\n})\nexport class GramDeonQuickComponent implements OnInit, AfterViewInit {\n _data: any[] = [];\n @Input()\n set data(value: any) {\n this._data = [];\n for (let key in value) {\n let item: any = _.cloneDeep(value[key]);\n if (item.allItem == true) {\n item.options = [{ label: '全部', value: null }].concat(item.options);\n }\n let obj: any = {\n key: key,\n label: item?.label,\n type: item?.type,\n selectType: item?.selectType,\n selected: item?.selected,\n options: item?.options,\n allItem: item?.allItem,\n };\n if (item?.type == 'dateTime') {\n obj['value1'] = null;\n obj['value2'] = null;\n obj['format'] = item?.format;\n obj['izBetween'] = item?.izBetween;\n }\n this._data.push(obj);\n }\n }\n\n get data() {\n return this._data;\n }\n\n @Output() quickQueryClick: EventEmitter<any> = new EventEmitter();\n\n ngOnInit(): void { }\n\n ngAfterViewInit() { }\n\n radioGroupChange(e: any, d: any) {\n let para: any = {};\n this.data.forEach((item: any) => {\n if (item.key == d.key) {\n para[item.key] = e;\n }\n });\n this.quickQueryClick.emit(para);\n }\n\n dateTimeChange(e: any) {\n this.quickQueryClick.emit(e);\n }\n}\n","<ul>\n <li *ngFor=\"let item of data\">\n <label class=\"title\">{{item?.label}}</label>\n <ng-container [ngSwitch]=\"item.type\">\n <ng-container *ngSwitchCase=\"'radioGroup'\">\n <nz-radio-group (ngModelChange)=\"radioGroupChange($event,item)\" [(ngModel)]=\"item.selected\">\n <ng-container *ngFor=\"let options of item?.options\">\n <label nz-radio-button nz-radio [nzValue]=\"options.value\">{{ options.label }}</label>\n </ng-container>\n </nz-radio-group>\n </ng-container>\n <ng-container *ngSwitchCase=\"'select'\">\n <nz-select nzAllowClear (ngModelChange)=\"radioGroupChange($event,item)\" [(ngModel)]=\"item.selected\"\n [nzPlaceHolder]=\"'请选择'+item?.label\">\n <ng-container *ngFor=\"let options of item?.options\">\n <nz-option [nzValue]=\"options.value\" [nzLabel]=\"options.label\"></nz-option>\n </ng-container>\n </nz-select>\n </ng-container>\n <ng-container *ngSwitchCase=\"'dateTime'\">\n <quick-datetime [data]=\"item\" (dataChange)=\"dateTimeChange($event)\"></quick-datetime>\n </ng-container>\n <ng-container *ngSwitchCase=\"'text'\">\n </ng-container>\n <ng-container *ngSwitchCase=\"'lookup'\">\n\n </ng-container>\n </ng-container>\n </li>\n</ul>","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormsModule } from '@angular/forms';\nimport { GramDeonQuickComponent } from './default/index';\nimport { QuickDateTimeComponent } from './datetime/index';\n\nconst COMPONENTS: any[] = [GramDeonQuickComponent];\n\nconst COMPONENTS_NOROUNT: any = [QuickDateTimeComponent];\n@NgModule({\n imports: [CommonModule, FormsModule, ...COMPONENTS, ...COMPONENTS_NOROUNT],\n exports: [...COMPONENTS]\n})\nexport class GramDeonQuickModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i3"],"mappings":";;;;;;;;;;;;;;MAiBa,sBAAsB,CAAA;IACxB,IAAI,GAAQ,EAAE;AAEb,IAAA,UAAU,GAAsB,IAAI,YAAY,EAAE;AAE5D,IAAA,QAAQ;AAER,IAAA,eAAe;AAEf,IAAA,UAAU,CAAC,CAAM,EAAA;QACf,IAAI,IAAI,GAAQ,EAAE;QAClB,IAAI,IAAI,GAAQ,IAAI;QACpB,IAAI,IAAI,CAAC,IAAI,EAAE,KAAK,IAAI,SAAS,IAAI,IAAI,CAAC,IAAI,EAAE,KAAK,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,EAAE,KAAK,IAAI,EAAE,EAAE;AACvF,YAAA,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,KAAK;;AAEzB,QAAA,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG;AACpB,YAAA,IAAI,EAAE,UAAU;AAChB,YAAA,OAAO,EAAE,KAAK;AACd,YAAA,KAAK,EAAE,IAAI;AACX,YAAA,MAAM,EAAE,IAAI;AACZ,YAAA,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,MAAM;SACzB;AACD,QAAA,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAAC;;AAG5B,IAAA,WAAW,CAAC,CAAM,EAAA;QAChB,IAAI,IAAI,GAAQ,EAAE;QAClB,IAAI,IAAI,GAAU,EAAE;QACpB,IAAI,IAAI,CAAC,IAAI,EAAE,MAAM,IAAI,SAAS,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,IAAI,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,IAAI,EAAE,EAAE;YACxF,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,MAAM,CAAC;;aACvB;AACL,YAAA,IAAI,CAAC,I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Ae,EAAA,CAAA;sBAAxB;;;AE/CH,MAAM,UAAU,GAAU,CAAC,sBAAsB,CAAC;AAElD,MAAM,kBAAkB,GAAQ,CAAC,sBAAsB,CAAC;MAK3C,mBAAmB,CAAA;wGAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;yGAAnB,mBAAmB,EAAA,OAAA,EAAA,CAHpB,YAAY,EAAE,WAAW,EAJV,sBAAsB,EAEhB,sBAAsB,CAAA,EAAA,OAAA,EAAA,CAF5B,sBAAsB,CAAA,EAAA,CAAA;AAOpC,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,mBAAmB,YAHpB,YAAY,EAAE,WAAW,EAAK,UAAU,EAAK,kBAAkB,CAAA,EAAA,CAAA;;4FAG9D,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAJ/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,GAAG,UAAU,EAAE,GAAG,kBAAkB,CAAC;AAC1E,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU;AACxB,iBAAA;;;ACZD;;AAEG;;;;"}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Input, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i2 from 'ng-zorro-antd/timeline';
|
|
6
|
+
import { NzTimelineModule } from 'ng-zorro-antd/timeline';
|
|
7
|
+
import * as i3 from '@ebuilding/base/shared.pipe';
|
|
8
|
+
import { GramPipeModule } from '@ebuilding/base/shared.pipe';
|
|
9
|
+
import _ from 'lodash';
|
|
10
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
11
|
+
import { NzIconModule } from 'ng-zorro-antd/icon';
|
|
12
|
+
import { NzStepsModule } from 'ng-zorro-antd/steps';
|
|
13
|
+
|
|
14
|
+
class FlowRecordComponent {
|
|
15
|
+
_data = [];
|
|
16
|
+
set data(value) {
|
|
17
|
+
if (value && Array.isArray(value)) {
|
|
18
|
+
let tmp = _.cloneDeep(value);
|
|
19
|
+
//this._data = tmp.reverse();
|
|
20
|
+
this._data = _.cloneDeep(value);
|
|
21
|
+
}
|
|
22
|
+
else {
|
|
23
|
+
this._data = [];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
get data() {
|
|
27
|
+
return this._data;
|
|
28
|
+
}
|
|
29
|
+
status = null;
|
|
30
|
+
constructor() { }
|
|
31
|
+
ngOnInit() { }
|
|
32
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FlowRecordComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
33
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FlowRecordComponent, isStandalone: true, selector: "flow-record", inputs: { data: "data", status: "status" }, ngImport: i0, template: "<div class=\"approve-header\">\n <div class=\"title\">\n <div class=\"name\">\u5BA1\u6279\u72B6\u6001</div>\n <div class=\"status\">\n <label [innerHtml]=\"status | flowState | safeHtml\"></label>\n </div>\n </div>\n <img [src]=\"'/assets/images/workflow/'+status+'.png'\" />\n</div>\n<div class=\"approve-list\" *ngIf=\"data!! && data.length>0\">\n <nz-timeline>\n <ng-container *ngFor=\"let item of data\">\n <ng-container [ngSwitch]=\"item.status\">\n <ng-container *ngSwitchCase=\"'waiting'\">\n <nz-timeline-item [nzColor]=\"'#FDC668'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n </ul>\n </nz-timeline-item>\n </ng-container>\n <ng-container *ngSwitchCase=\"'approved'\">\n <nz-timeline-item [nzColor]=\"'#16A085'\">\n <ng-container [ngSwitch]=\"item.taskStatus\">\n <!-- \u53D1\u8D77\u4EBA -->\n <ng-container *ngSwitchCase=\"'START'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>\u53D1\u8D77\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u53D1\u8D77\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n </ul>\n </ng-container>\n <!-- \u56DE\u9000\u53D1\u8D77 -->\n <ng-container *ngSwitchCase=\"'START_BACK'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>\u9A73\u56DE\u53D1\u8D77-{{item?.nodeName}}</li>\n <li class=\"emp\"><span>\u53D1\u8D77\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n </ul>\n </ng-container>\n\n <!-- \u5BA1\u6279\u901A\u8FC7 -->\n <ng-container *ngSwitchCase=\"'APPROVED'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"type\"><span>\u64CD\u4F5C</span><label class=\"completed\">\u540C\u610F</label></li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"desc\"><span>\u5BA1\u6279\u610F\u89C1</span>{{item?.taskComment}}</li>\n </ul>\n </ng-container>\n\n <!-- \u5BA1\u6279\u62D2\u7EDD -->\n <ng-container *ngSwitchCase=\"'REJECTED'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"type\"><span>\u64CD\u4F5C</span><label class=\"reject\">\u62D2\u7EDD</label></li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"desc\"><span>\u5BA1\u6279\u610F\u89C1</span>{{item?.taskComment}}</li>\n </ul>\n </ng-container>\n\n <!-- \u5BA1\u6279\u9000\u56DE -->\n <ng-container *ngSwitchCase=\"'BACKED'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"type\"><span>\u64CD\u4F5C</span><label class=\"back\">\u56DE\u9000</label></li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"desc\"><span>\u5BA1\u6279\u610F\u89C1</span>{{item?.taskComment}}</li>\n </ul>\n </ng-container>\n\n <!-- \u5BA1\u6279\u7EC8\u6B62 -->\n <ng-container *ngSwitchCase=\"'ABORT'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"type\"><span>\u64CD\u4F5C</span><label class=\"abort\">\u7EC8\u6B62</label></li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"desc\"><span>\u5BA1\u6279\u610F\u89C1</span>{{item?.taskComment}}</li>\n </ul>\n </ng-container>\n\n <!-- \u7BA1\u7406\u5458\u7EC8\u6B62 -->\n <ng-container *ngSwitchCase=\"'MANAGE_ABORT'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"type\"><span>\u64CD\u4F5C</span><label class=\"abort\">\u7BA1\u7406\u5458\u7EC8\u6B62</label></li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>---</li>\n </ul>\n </ng-container>\n\n <!-- \u7BA1\u7406\u5458\u5220\u9664 -->\n <ng-container *ngSwitchCase=\"'MANAGE_DELETE'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"type\"><span>\u64CD\u4F5C</span><label class=\"abort\">\u7BA1\u7406\u5458\u5220\u9664</label></li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>---</li>\n </ul>\n </ng-container>\n </ng-container>\n </nz-timeline-item>\n </ng-container>\n <ng-container *ngSwitchDefault> </ng-container>\n </ng-container>\n\n <ng-template #tmpNode>\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>\u53D1\u8D77\u6B65\u9AA4</li>\n <li class=\"emp\"><span>\u53D1\u8D77\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u53D1\u8D77\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n </ul>\n </ng-template>\n </ng-container>\n </nz-timeline>\n</div>\n", styles: [":host ::ng-deep{display:flex;flex-direction:column;width:100%;padding:0;overflow:auto}:host ::ng-deep .approve-header{border-bottom:1px solid #eaeaea;position:relative;padding:12px 0 12px 12px}:host ::ng-deep .approve-header .title{display:flex;flex-direction:row;padding:0}:host ::ng-deep .approve-header .title .name:after{content:\":\";padding:0 5px 0 3px}:host ::ng-deep .approve-header img{position:absolute;right:0;top:0;width:50px}:host ::ng-deep .approve-list{display:inline-block;flex:1;padding:20px 5px 20px 10px;overflow-x:overlay;overflow-y:overlay}:host ::ng-deep .approve-list::-webkit-scrollbar{width:8px}:host ::ng-deep .approve-list::-webkit-scrollbar-thumb{background-color:#94949475;border-radius:7px}:host ::ng-deep .approve-list::-webkit-scrollbar-track{background-color:#fff}:host ::ng-deep .approve-list .ant-timeline-item-content{margin-left:20px!important}:host ::ng-deep .nodeInfo{margin:0;padding:3px 0 0}:host ::ng-deep .nodeInfo li{margin:0;padding:0 0 5px;font-size:12px}:host ::ng-deep .nodeInfo li span{display:inline-block}:host ::ng-deep .nodeInfo li span:after{padding:0;content:\"\\ff1a\"}:host ::ng-deep .nodeInfo .type .back{color:#ffd317;font-weight:600;font-size:14px}:host ::ng-deep .nodeInfo .type .reject{color:#ff7752;font-weight:600;font-size:14px}:host ::ng-deep .nodeInfo .type .abort{color:#ff7752;font-weight:600;font-size:14px}:host ::ng-deep .nodeInfo .type .completed{color:#2cb792;font-weight:600;font-size:14px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "pipe", type: i1.DatePipe, name: "date" }, { kind: "ngmodule", type: NzTimelineModule }, { kind: "component", type: i2.NzTimelineItemComponent, selector: "nz-timeline-item, [nz-timeline-item]", inputs: ["nzPosition", "nzColor", "nzDot", "nzLabel"], exportAs: ["nzTimelineItem"] }, { kind: "component", type: i2.NzTimelineComponent, selector: "nz-timeline", inputs: ["nzMode", "nzPending", "nzPendingDot", "nzReverse"], exportAs: ["nzTimeline"] }, { kind: "ngmodule", type: GramPipeModule }, { kind: "pipe", type: i3.FlowStatePipe, name: "flowState" }, { kind: "pipe", type: i3.SafeHtmlPipe, name: "safeHtml" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
34
|
+
}
|
|
35
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FlowRecordComponent, decorators: [{
|
|
36
|
+
type: Component,
|
|
37
|
+
args: [{ selector: 'flow-record', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
38
|
+
CommonModule,
|
|
39
|
+
NzTimelineModule,
|
|
40
|
+
GramPipeModule
|
|
41
|
+
], template: "<div class=\"approve-header\">\n <div class=\"title\">\n <div class=\"name\">\u5BA1\u6279\u72B6\u6001</div>\n <div class=\"status\">\n <label [innerHtml]=\"status | flowState | safeHtml\"></label>\n </div>\n </div>\n <img [src]=\"'/assets/images/workflow/'+status+'.png'\" />\n</div>\n<div class=\"approve-list\" *ngIf=\"data!! && data.length>0\">\n <nz-timeline>\n <ng-container *ngFor=\"let item of data\">\n <ng-container [ngSwitch]=\"item.status\">\n <ng-container *ngSwitchCase=\"'waiting'\">\n <nz-timeline-item [nzColor]=\"'#FDC668'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n </ul>\n </nz-timeline-item>\n </ng-container>\n <ng-container *ngSwitchCase=\"'approved'\">\n <nz-timeline-item [nzColor]=\"'#16A085'\">\n <ng-container [ngSwitch]=\"item.taskStatus\">\n <!-- \u53D1\u8D77\u4EBA -->\n <ng-container *ngSwitchCase=\"'START'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>\u53D1\u8D77\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u53D1\u8D77\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n </ul>\n </ng-container>\n <!-- \u56DE\u9000\u53D1\u8D77 -->\n <ng-container *ngSwitchCase=\"'START_BACK'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>\u9A73\u56DE\u53D1\u8D77-{{item?.nodeName}}</li>\n <li class=\"emp\"><span>\u53D1\u8D77\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n </ul>\n </ng-container>\n\n <!-- \u5BA1\u6279\u901A\u8FC7 -->\n <ng-container *ngSwitchCase=\"'APPROVED'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"type\"><span>\u64CD\u4F5C</span><label class=\"completed\">\u540C\u610F</label></li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"desc\"><span>\u5BA1\u6279\u610F\u89C1</span>{{item?.taskComment}}</li>\n </ul>\n </ng-container>\n\n <!-- \u5BA1\u6279\u62D2\u7EDD -->\n <ng-container *ngSwitchCase=\"'REJECTED'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"type\"><span>\u64CD\u4F5C</span><label class=\"reject\">\u62D2\u7EDD</label></li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"desc\"><span>\u5BA1\u6279\u610F\u89C1</span>{{item?.taskComment}}</li>\n </ul>\n </ng-container>\n\n <!-- \u5BA1\u6279\u9000\u56DE -->\n <ng-container *ngSwitchCase=\"'BACKED'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"type\"><span>\u64CD\u4F5C</span><label class=\"back\">\u56DE\u9000</label></li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"desc\"><span>\u5BA1\u6279\u610F\u89C1</span>{{item?.taskComment}}</li>\n </ul>\n </ng-container>\n\n <!-- \u5BA1\u6279\u7EC8\u6B62 -->\n <ng-container *ngSwitchCase=\"'ABORT'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"type\"><span>\u64CD\u4F5C</span><label class=\"abort\">\u7EC8\u6B62</label></li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"desc\"><span>\u5BA1\u6279\u610F\u89C1</span>{{item?.taskComment}}</li>\n </ul>\n </ng-container>\n\n <!-- \u7BA1\u7406\u5458\u7EC8\u6B62 -->\n <ng-container *ngSwitchCase=\"'MANAGE_ABORT'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"type\"><span>\u64CD\u4F5C</span><label class=\"abort\">\u7BA1\u7406\u5458\u7EC8\u6B62</label></li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>---</li>\n </ul>\n </ng-container>\n\n <!-- \u7BA1\u7406\u5458\u5220\u9664 -->\n <ng-container *ngSwitchCase=\"'MANAGE_DELETE'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"type\"><span>\u64CD\u4F5C</span><label class=\"abort\">\u7BA1\u7406\u5458\u5220\u9664</label></li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>---</li>\n </ul>\n </ng-container>\n </ng-container>\n </nz-timeline-item>\n </ng-container>\n <ng-container *ngSwitchDefault> </ng-container>\n </ng-container>\n\n <ng-template #tmpNode>\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>\u53D1\u8D77\u6B65\u9AA4</li>\n <li class=\"emp\"><span>\u53D1\u8D77\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u53D1\u8D77\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n </ul>\n </ng-template>\n </ng-container>\n </nz-timeline>\n</div>\n", styles: [":host ::ng-deep{display:flex;flex-direction:column;width:100%;padding:0;overflow:auto}:host ::ng-deep .approve-header{border-bottom:1px solid #eaeaea;position:relative;padding:12px 0 12px 12px}:host ::ng-deep .approve-header .title{display:flex;flex-direction:row;padding:0}:host ::ng-deep .approve-header .title .name:after{content:\":\";padding:0 5px 0 3px}:host ::ng-deep .approve-header img{position:absolute;right:0;top:0;width:50px}:host ::ng-deep .approve-list{display:inline-block;flex:1;padding:20px 5px 20px 10px;overflow-x:overlay;overflow-y:overlay}:host ::ng-deep .approve-list::-webkit-scrollbar{width:8px}:host ::ng-deep .approve-list::-webkit-scrollbar-thumb{background-color:#94949475;border-radius:7px}:host ::ng-deep .approve-list::-webkit-scrollbar-track{background-color:#fff}:host ::ng-deep .approve-list .ant-timeline-item-content{margin-left:20px!important}:host ::ng-deep .nodeInfo{margin:0;padding:3px 0 0}:host ::ng-deep .nodeInfo li{margin:0;padding:0 0 5px;font-size:12px}:host ::ng-deep .nodeInfo li span{display:inline-block}:host ::ng-deep .nodeInfo li span:after{padding:0;content:\"\\ff1a\"}:host ::ng-deep .nodeInfo .type .back{color:#ffd317;font-weight:600;font-size:14px}:host ::ng-deep .nodeInfo .type .reject{color:#ff7752;font-weight:600;font-size:14px}:host ::ng-deep .nodeInfo .type .abort{color:#ff7752;font-weight:600;font-size:14px}:host ::ng-deep .nodeInfo .type .completed{color:#2cb792;font-weight:600;font-size:14px}\n"] }]
|
|
42
|
+
}], ctorParameters: () => [], propDecorators: { data: [{
|
|
43
|
+
type: Input
|
|
44
|
+
}], status: [{
|
|
45
|
+
type: Input
|
|
46
|
+
}] } });
|
|
47
|
+
|
|
48
|
+
class FlowRecordStepComponent {
|
|
49
|
+
_data = [];
|
|
50
|
+
set data(value) {
|
|
51
|
+
if (value && Array.isArray(value)) {
|
|
52
|
+
let tmp = _.cloneDeep(value);
|
|
53
|
+
this._data = tmp.reverse();
|
|
54
|
+
}
|
|
55
|
+
else {
|
|
56
|
+
this._data = [];
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
get data() {
|
|
60
|
+
return this._data;
|
|
61
|
+
}
|
|
62
|
+
status = null;
|
|
63
|
+
constructor() { }
|
|
64
|
+
ngOnInit() { }
|
|
65
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FlowRecordStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
66
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: FlowRecordStepComponent, isStandalone: true, selector: "flow-record-step", inputs: { data: "data", status: "status" }, ngImport: i0, template: "<!-- <div class=\"approve-header\">\n <div class=\"title\">\n <div class=\"name\">\u5BA1\u6279\u72B6\u6001</div>\n <div class=\"status\">\n <label [innerHtml]=\"status | flowState | safeHtml\"></label>\n </div>\n </div>\n <img [src]=\"'/assets/images/workflow/'+status+'.png'\" />\n</div> -->\n<div class=\"approve-list\" *ngIf=\"data!! && data.length>0\">\n <nz-timeline>\n <ng-container *ngFor=\"let item of data\">\n <ng-container [ngSwitch]=\"item.status\">\n <ng-container *ngSwitchCase=\"'waiting'\">\n <nz-timeline-item [nzColor]=\"'#FDC668'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n </ul>\n </nz-timeline-item>\n </ng-container>\n <ng-container *ngSwitchCase=\"'approved'\">\n <nz-timeline-item [nzColor]=\"'#16A085'\">\n <ng-container [ngSwitch]=\"item.taskStatus\">\n <!-- \u53D1\u8D77\u4EBA -->\n <ng-container *ngSwitchCase=\"'START'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>\u53D1\u8D77\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u53D1\u8D77\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n </ul>\n </ng-container>\n <!-- \u56DE\u9000\u53D1\u8D77 -->\n <ng-container *ngSwitchCase=\"'START_BACK'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>\u9A73\u56DE\u53D1\u8D77-{{item?.nodeName}}</li>\n <li class=\"emp\"><span>\u53D1\u8D77\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <!-- <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li> -->\n </ul>\n </ng-container>\n\n <!-- \u5BA1\u6279\u901A\u8FC7 -->\n <ng-container *ngSwitchCase=\"'APPROVED'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"type\"><span>\u64CD\u4F5C</span><label class=\"completed\">\u540C\u610F</label></li>\n <!-- <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"desc\"><span>\u5BA1\u6279\u610F\u89C1</span>{{item?.taskComment}}</li> -->\n </ul>\n </ng-container>\n\n <!-- \u5BA1\u6279\u62D2\u7EDD -->\n <ng-container *ngSwitchCase=\"'REJECTED'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"type\"><span>\u64CD\u4F5C</span><label class=\"reject\">\u62D2\u7EDD</label></li>\n <!-- <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"desc\"><span>\u5BA1\u6279\u610F\u89C1</span>{{item?.taskComment}}</li> -->\n </ul>\n </ng-container>\n\n <!-- \u5BA1\u6279\u9000\u56DE -->\n <ng-container *ngSwitchCase=\"'BACKED'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"type\"><span>\u64CD\u4F5C</span><label class=\"back\">\u56DE\u9000</label></li>\n <!-- <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"desc\"><span>\u5BA1\u6279\u610F\u89C1</span>{{item?.taskComment}}</li> -->\n </ul>\n </ng-container>\n\n <!-- \u5BA1\u6279\u7EC8\u6B62 -->\n <ng-container *ngSwitchCase=\"'ABORT'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"type\"><span>\u64CD\u4F5C</span><label class=\"abort\">\u7EC8\u6B62</label></li>\n <!-- <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"desc\"><span>\u5BA1\u6279\u610F\u89C1</span>{{item?.taskComment}}</li> -->\n </ul>\n </ng-container>\n\n <!-- \u7BA1\u7406\u5458\u7EC8\u6B62 -->\n <ng-container *ngSwitchCase=\"'MANAGE_ABORT'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"type\"><span>\u64CD\u4F5C</span><label class=\"abort\">\u7BA1\u7406\u5458\u7EC8\u6B62</label></li>\n <!-- <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>---</li> -->\n </ul>\n </ng-container>\n\n <!-- \u7BA1\u7406\u5458\u5220\u9664 -->\n <ng-container *ngSwitchCase=\"'MANAGE_DELETE'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"type\"><span>\u64CD\u4F5C</span><label class=\"abort\">\u7BA1\u7406\u5458\u5220\u9664</label></li>\n <!-- <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>---</li> -->\n </ul>\n </ng-container>\n </ng-container>\n </nz-timeline-item>\n </ng-container>\n <ng-container *ngSwitchDefault> </ng-container>\n </ng-container>\n\n <ng-template #tmpNode>\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>\u53D1\u8D77\u6B65\u9AA4</li>\n <li class=\"emp\"><span>\u53D1\u8D77\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u53D1\u8D77\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n </ul>\n </ng-template>\n </ng-container>\n </nz-timeline>\n</div>\n", styles: [":host ::ng-deep{display:flex;flex-direction:column;width:100%;padding:0;overflow:auto}:host ::ng-deep .ant-timeline{display:flex;flex-direction:row}:host ::ng-deep .ant-timeline .ant-timeline-item{margin:0;padding:0 25px 0 0;flex:1}:host ::ng-deep .ant-timeline .ant-timeline-item-tail{position:absolute;top:none;bottom:6px;left:13px;width:calc(100% - 15px);height:auto!important;border-top:0;border-bottom:1px solid #eaeaea;border-left:0}:host ::ng-deep .ant-timeline .ant-timeline-item-head{top:none;bottom:0}:host ::ng-deep .ant-timeline .ant-timeline-item-content{width:100%;position:unset;margin-bottom:20px;margin-left:0!important}:host ::ng-deep .approve-list{display:inline-block;flex:1;padding:15px 20px 0;overflow-x:overlay;overflow-y:overlay}:host ::ng-deep .approve-list::-webkit-scrollbar{width:8px}:host ::ng-deep .approve-list::-webkit-scrollbar-thumb{background-color:#94949475;border-radius:7px}:host ::ng-deep .approve-list::-webkit-scrollbar-track{background-color:#fff}:host ::ng-deep .nodeInfo{margin:0;padding:3px 0 0}:host ::ng-deep .nodeInfo li{margin:0;padding:0 0 5px;font-size:12px}:host ::ng-deep .nodeInfo li span{display:inline-block}:host ::ng-deep .nodeInfo li span:after{padding:0;content:\"\\ff1a\"}:host ::ng-deep .nodeInfo .type .back{color:#ffd317;font-weight:600}:host ::ng-deep .nodeInfo .type .reject{color:#ff7752;font-weight:600}:host ::ng-deep .nodeInfo .type .abort{color:#ff7752;font-weight:600}:host ::ng-deep .nodeInfo .type .completed{color:#2cb792;font-weight:600}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { kind: "directive", type: i1.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { kind: "directive", type: i1.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { kind: "pipe", type: i1.DatePipe, name: "date" }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "ngmodule", type: NzTimelineModule }, { kind: "component", type: i2.NzTimelineItemComponent, selector: "nz-timeline-item, [nz-timeline-item]", inputs: ["nzPosition", "nzColor", "nzDot", "nzLabel"], exportAs: ["nzTimelineItem"] }, { kind: "component", type: i2.NzTimelineComponent, selector: "nz-timeline", inputs: ["nzMode", "nzPending", "nzPendingDot", "nzReverse"], exportAs: ["nzTimeline"] }, { kind: "ngmodule", type: NzStepsModule }, { kind: "ngmodule", type: GramPipeModule }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
67
|
+
}
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: FlowRecordStepComponent, decorators: [{
|
|
69
|
+
type: Component,
|
|
70
|
+
args: [{ selector: 'flow-record-step', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
71
|
+
CommonModule,
|
|
72
|
+
FormsModule,
|
|
73
|
+
ReactiveFormsModule,
|
|
74
|
+
NzIconModule,
|
|
75
|
+
NzTimelineModule,
|
|
76
|
+
NzStepsModule,
|
|
77
|
+
GramPipeModule,
|
|
78
|
+
], template: "<!-- <div class=\"approve-header\">\n <div class=\"title\">\n <div class=\"name\">\u5BA1\u6279\u72B6\u6001</div>\n <div class=\"status\">\n <label [innerHtml]=\"status | flowState | safeHtml\"></label>\n </div>\n </div>\n <img [src]=\"'/assets/images/workflow/'+status+'.png'\" />\n</div> -->\n<div class=\"approve-list\" *ngIf=\"data!! && data.length>0\">\n <nz-timeline>\n <ng-container *ngFor=\"let item of data\">\n <ng-container [ngSwitch]=\"item.status\">\n <ng-container *ngSwitchCase=\"'waiting'\">\n <nz-timeline-item [nzColor]=\"'#FDC668'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n </ul>\n </nz-timeline-item>\n </ng-container>\n <ng-container *ngSwitchCase=\"'approved'\">\n <nz-timeline-item [nzColor]=\"'#16A085'\">\n <ng-container [ngSwitch]=\"item.taskStatus\">\n <!-- \u53D1\u8D77\u4EBA -->\n <ng-container *ngSwitchCase=\"'START'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>\u53D1\u8D77\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u53D1\u8D77\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n </ul>\n </ng-container>\n <!-- \u56DE\u9000\u53D1\u8D77 -->\n <ng-container *ngSwitchCase=\"'START_BACK'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>\u9A73\u56DE\u53D1\u8D77-{{item?.nodeName}}</li>\n <li class=\"emp\"><span>\u53D1\u8D77\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <!-- <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li> -->\n </ul>\n </ng-container>\n\n <!-- \u5BA1\u6279\u901A\u8FC7 -->\n <ng-container *ngSwitchCase=\"'APPROVED'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"type\"><span>\u64CD\u4F5C</span><label class=\"completed\">\u540C\u610F</label></li>\n <!-- <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"desc\"><span>\u5BA1\u6279\u610F\u89C1</span>{{item?.taskComment}}</li> -->\n </ul>\n </ng-container>\n\n <!-- \u5BA1\u6279\u62D2\u7EDD -->\n <ng-container *ngSwitchCase=\"'REJECTED'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"type\"><span>\u64CD\u4F5C</span><label class=\"reject\">\u62D2\u7EDD</label></li>\n <!-- <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"desc\"><span>\u5BA1\u6279\u610F\u89C1</span>{{item?.taskComment}}</li> -->\n </ul>\n </ng-container>\n\n <!-- \u5BA1\u6279\u9000\u56DE -->\n <ng-container *ngSwitchCase=\"'BACKED'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"type\"><span>\u64CD\u4F5C</span><label class=\"back\">\u56DE\u9000</label></li>\n <!-- <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"desc\"><span>\u5BA1\u6279\u610F\u89C1</span>{{item?.taskComment}}</li> -->\n </ul>\n </ng-container>\n\n <!-- \u5BA1\u6279\u7EC8\u6B62 -->\n <ng-container *ngSwitchCase=\"'ABORT'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"type\"><span>\u64CD\u4F5C</span><label class=\"abort\">\u7EC8\u6B62</label></li>\n <!-- <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"desc\"><span>\u5BA1\u6279\u610F\u89C1</span>{{item?.taskComment}}</li> -->\n </ul>\n </ng-container>\n\n <!-- \u7BA1\u7406\u5458\u7EC8\u6B62 -->\n <ng-container *ngSwitchCase=\"'MANAGE_ABORT'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"type\"><span>\u64CD\u4F5C</span><label class=\"abort\">\u7BA1\u7406\u5458\u7EC8\u6B62</label></li>\n <!-- <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>---</li> -->\n </ul>\n </ng-container>\n\n <!-- \u7BA1\u7406\u5458\u5220\u9664 -->\n <ng-container *ngSwitchCase=\"'MANAGE_DELETE'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>\u5BA1\u6838\u4EBA</span>{{item?.empName}}</li>\n <li class=\"type\"><span>\u64CD\u4F5C</span><label class=\"abort\">\u7BA1\u7406\u5458\u5220\u9664</label></li>\n <!-- <li class=\"finish\"><span>\u63A5\u6536\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>\u5B8C\u6210\u65E5\u671F</span>---</li> -->\n </ul>\n </ng-container>\n </ng-container>\n </nz-timeline-item>\n </ng-container>\n <ng-container *ngSwitchDefault> </ng-container>\n </ng-container>\n\n <ng-template #tmpNode>\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>\u6B65\u9AA4</span>\u53D1\u8D77\u6B65\u9AA4</li>\n <li class=\"emp\"><span>\u53D1\u8D77\u4EBA</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>\u53D1\u8D77\u65E5\u671F</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n </ul>\n </ng-template>\n </ng-container>\n </nz-timeline>\n</div>\n", styles: [":host ::ng-deep{display:flex;flex-direction:column;width:100%;padding:0;overflow:auto}:host ::ng-deep .ant-timeline{display:flex;flex-direction:row}:host ::ng-deep .ant-timeline .ant-timeline-item{margin:0;padding:0 25px 0 0;flex:1}:host ::ng-deep .ant-timeline .ant-timeline-item-tail{position:absolute;top:none;bottom:6px;left:13px;width:calc(100% - 15px);height:auto!important;border-top:0;border-bottom:1px solid #eaeaea;border-left:0}:host ::ng-deep .ant-timeline .ant-timeline-item-head{top:none;bottom:0}:host ::ng-deep .ant-timeline .ant-timeline-item-content{width:100%;position:unset;margin-bottom:20px;margin-left:0!important}:host ::ng-deep .approve-list{display:inline-block;flex:1;padding:15px 20px 0;overflow-x:overlay;overflow-y:overlay}:host ::ng-deep .approve-list::-webkit-scrollbar{width:8px}:host ::ng-deep .approve-list::-webkit-scrollbar-thumb{background-color:#94949475;border-radius:7px}:host ::ng-deep .approve-list::-webkit-scrollbar-track{background-color:#fff}:host ::ng-deep .nodeInfo{margin:0;padding:3px 0 0}:host ::ng-deep .nodeInfo li{margin:0;padding:0 0 5px;font-size:12px}:host ::ng-deep .nodeInfo li span{display:inline-block}:host ::ng-deep .nodeInfo li span:after{padding:0;content:\"\\ff1a\"}:host ::ng-deep .nodeInfo .type .back{color:#ffd317;font-weight:600}:host ::ng-deep .nodeInfo .type .reject{color:#ff7752;font-weight:600}:host ::ng-deep .nodeInfo .type .abort{color:#ff7752;font-weight:600}:host ::ng-deep .nodeInfo .type .completed{color:#2cb792;font-weight:600}\n"] }]
|
|
79
|
+
}], ctorParameters: () => [], propDecorators: { data: [{
|
|
80
|
+
type: Input
|
|
81
|
+
}], status: [{
|
|
82
|
+
type: Input
|
|
83
|
+
}] } });
|
|
84
|
+
|
|
85
|
+
const components = [FlowRecordComponent, FlowRecordStepComponent];
|
|
86
|
+
class GramFlowRecordModule {
|
|
87
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramFlowRecordModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
88
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: GramFlowRecordModule, imports: [FlowRecordComponent, FlowRecordStepComponent], exports: [FlowRecordComponent, FlowRecordStepComponent] });
|
|
89
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramFlowRecordModule, imports: [components] });
|
|
90
|
+
}
|
|
91
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramFlowRecordModule, decorators: [{
|
|
92
|
+
type: NgModule,
|
|
93
|
+
args: [{
|
|
94
|
+
imports: [
|
|
95
|
+
...components
|
|
96
|
+
],
|
|
97
|
+
exports: [...components],
|
|
98
|
+
}]
|
|
99
|
+
}] });
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Generated bundle index. Do not edit.
|
|
103
|
+
*/
|
|
104
|
+
|
|
105
|
+
export { FlowRecordComponent, FlowRecordStepComponent, GramFlowRecordModule };
|
|
106
|
+
//# sourceMappingURL=components.record.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.record.mjs","sources":["../../../../packages/abc/record/src/default/index.ts","../../../../packages/abc/record/src/default/index.html","../../../../packages/abc/record/src/main/index.ts","../../../../packages/abc/record/src/main/index.html","../../../../packages/abc/record/src/index.module.ts","../../../../packages/abc/record/components.record.ts"],"sourcesContent":["import { Component, OnInit, Input, ChangeDetectionStrategy } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NzTimelineModule } from \"ng-zorro-antd/timeline\";\nimport { GramPipeModule } from \"@ebuilding/base/shared.pipe\";\nimport _ from 'lodash';\n\n@Component({\n selector: 'flow-record',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n NzTimelineModule,\n GramPipeModule\n ]\n})\nexport class FlowRecordComponent implements OnInit {\n _data: any[] = [];\n @Input()\n set data(value: any) {\n if (value!! && Array.isArray(value)) {\n let tmp: any = _.cloneDeep(value);\n //this._data = tmp.reverse();\n this._data = _.cloneDeep(value);\n } else {\n this._data = [];\n }\n }\n\n get data() {\n return this._data;\n }\n\n @Input() status: any = null;\n\n constructor() { }\n\n ngOnInit() { }\n}\n","<div class=\"approve-header\">\n <div class=\"title\">\n <div class=\"name\">审批状态</div>\n <div class=\"status\">\n <label [innerHtml]=\"status | flowState | safeHtml\"></label>\n </div>\n </div>\n <img [src]=\"'/assets/images/workflow/'+status+'.png'\" />\n</div>\n<div class=\"approve-list\" *ngIf=\"data!! && data.length>0\">\n <nz-timeline>\n <ng-container *ngFor=\"let item of data\">\n <ng-container [ngSwitch]=\"item.status\">\n <ng-container *ngSwitchCase=\"'waiting'\">\n <nz-timeline-item [nzColor]=\"'#FDC668'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>步骤</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>审核人</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>接收日期</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n </ul>\n </nz-timeline-item>\n </ng-container>\n <ng-container *ngSwitchCase=\"'approved'\">\n <nz-timeline-item [nzColor]=\"'#16A085'\">\n <ng-container [ngSwitch]=\"item.taskStatus\">\n <!-- 发起人 -->\n <ng-container *ngSwitchCase=\"'START'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>步骤</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>发起人</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>发起日期</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n </ul>\n </ng-container>\n <!-- 回退发起 -->\n <ng-container *ngSwitchCase=\"'START_BACK'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>步骤</span>驳回发起-{{item?.nodeName}}</li>\n <li class=\"emp\"><span>发起人</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>接收日期</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>完成日期</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n </ul>\n </ng-container>\n\n <!-- 审批通过 -->\n <ng-container *ngSwitchCase=\"'APPROVED'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>步骤</span>{{item?.nodeName}}</li>\n <li class=\"type\"><span>操作</span><label class=\"completed\">同意</label></li>\n <li class=\"emp\"><span>审核人</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>接收日期</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>完成日期</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"desc\"><span>审批意见</span>{{item?.taskComment}}</li>\n </ul>\n </ng-container>\n\n <!-- 审批拒绝 -->\n <ng-container *ngSwitchCase=\"'REJECTED'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>步骤</span>{{item?.nodeName}}</li>\n <li class=\"type\"><span>操作</span><label class=\"reject\">拒绝</label></li>\n <li class=\"emp\"><span>审核人</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>接收日期</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>完成日期</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"desc\"><span>审批意见</span>{{item?.taskComment}}</li>\n </ul>\n </ng-container>\n\n <!-- 审批退回 -->\n <ng-container *ngSwitchCase=\"'BACKED'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>步骤</span>{{item?.nodeName}}</li>\n <li class=\"type\"><span>操作</span><label class=\"back\">回退</label></li>\n <li class=\"emp\"><span>审核人</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>接收日期</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>完成日期</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"desc\"><span>审批意见</span>{{item?.taskComment}}</li>\n </ul>\n </ng-container>\n\n <!-- 审批终止 -->\n <ng-container *ngSwitchCase=\"'ABORT'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>步骤</span>{{item?.nodeName}}</li>\n <li class=\"type\"><span>操作</span><label class=\"abort\">终止</label></li>\n <li class=\"emp\"><span>审核人</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>接收日期</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>完成日期</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"desc\"><span>审批意见</span>{{item?.taskComment}}</li>\n </ul>\n </ng-container>\n\n <!-- 管理员终止 -->\n <ng-container *ngSwitchCase=\"'MANAGE_ABORT'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>步骤</span>{{item?.nodeName}}</li>\n <li class=\"type\"><span>操作</span><label class=\"abort\">管理员终止</label></li>\n <li class=\"emp\"><span>审核人</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>接收日期</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>完成日期</span>---</li>\n </ul>\n </ng-container>\n\n <!-- 管理员删除 -->\n <ng-container *ngSwitchCase=\"'MANAGE_DELETE'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>步骤</span>{{item?.nodeName}}</li>\n <li class=\"type\"><span>操作</span><label class=\"abort\">管理员删除</label></li>\n <li class=\"emp\"><span>审核人</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>接收日期</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>完成日期</span>---</li>\n </ul>\n </ng-container>\n </ng-container>\n </nz-timeline-item>\n </ng-container>\n <ng-container *ngSwitchDefault> </ng-container>\n </ng-container>\n\n <ng-template #tmpNode>\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>步骤</span>发起步骤</li>\n <li class=\"emp\"><span>发起人</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>发起日期</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n </ul>\n </ng-template>\n </ng-container>\n </nz-timeline>\n</div>\n","import { Component, OnInit, Input, ChangeDetectionStrategy } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule, FormsModule } from '@angular/forms';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\nimport { NzTimelineModule } from 'ng-zorro-antd/timeline';\nimport { NzStepsModule } from 'ng-zorro-antd/steps';\nimport { GramPipeModule } from '@ebuilding/base/shared.pipe';\nimport _ from 'lodash';\n\n@Component({\n selector: 'flow-record-step',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [\n CommonModule,\n FormsModule,\n ReactiveFormsModule,\n NzIconModule,\n NzTimelineModule,\n NzStepsModule,\n GramPipeModule,\n ]\n})\nexport class FlowRecordStepComponent implements OnInit {\n _data: any[] = [];\n @Input()\n set data(value: any) {\n if (value!! && Array.isArray(value)) {\n let tmp: any = _.cloneDeep(value);\n this._data = tmp.reverse();\n } else {\n this._data = [];\n }\n }\n\n get data() {\n return this._data;\n }\n\n @Input() status: any = null;\n\n constructor() { }\n\n ngOnInit() { }\n}\n","<!-- <div class=\"approve-header\">\n <div class=\"title\">\n <div class=\"name\">审批状态</div>\n <div class=\"status\">\n <label [innerHtml]=\"status | flowState | safeHtml\"></label>\n </div>\n </div>\n <img [src]=\"'/assets/images/workflow/'+status+'.png'\" />\n</div> -->\n<div class=\"approve-list\" *ngIf=\"data!! && data.length>0\">\n <nz-timeline>\n <ng-container *ngFor=\"let item of data\">\n <ng-container [ngSwitch]=\"item.status\">\n <ng-container *ngSwitchCase=\"'waiting'\">\n <nz-timeline-item [nzColor]=\"'#FDC668'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>步骤</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>审核人</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>接收日期</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n </ul>\n </nz-timeline-item>\n </ng-container>\n <ng-container *ngSwitchCase=\"'approved'\">\n <nz-timeline-item [nzColor]=\"'#16A085'\">\n <ng-container [ngSwitch]=\"item.taskStatus\">\n <!-- 发起人 -->\n <ng-container *ngSwitchCase=\"'START'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>步骤</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>发起人</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>发起日期</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n </ul>\n </ng-container>\n <!-- 回退发起 -->\n <ng-container *ngSwitchCase=\"'START_BACK'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>步骤</span>驳回发起-{{item?.nodeName}}</li>\n <li class=\"emp\"><span>发起人</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>完成日期</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <!-- <li class=\"finish\"><span>接收日期</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li> -->\n </ul>\n </ng-container>\n\n <!-- 审批通过 -->\n <ng-container *ngSwitchCase=\"'APPROVED'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>步骤</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>审核人</span>{{item?.empName}}</li>\n <li class=\"type\"><span>操作</span><label class=\"completed\">同意</label></li>\n <!-- <li class=\"finish\"><span>接收日期</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>完成日期</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"desc\"><span>审批意见</span>{{item?.taskComment}}</li> -->\n </ul>\n </ng-container>\n\n <!-- 审批拒绝 -->\n <ng-container *ngSwitchCase=\"'REJECTED'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>步骤</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>审核人</span>{{item?.empName}}</li>\n <li class=\"type\"><span>操作</span><label class=\"reject\">拒绝</label></li>\n <!-- <li class=\"finish\"><span>接收日期</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>完成日期</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"desc\"><span>审批意见</span>{{item?.taskComment}}</li> -->\n </ul>\n </ng-container>\n\n <!-- 审批退回 -->\n <ng-container *ngSwitchCase=\"'BACKED'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>步骤</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>审核人</span>{{item?.empName}}</li>\n <li class=\"type\"><span>操作</span><label class=\"back\">回退</label></li>\n <!-- <li class=\"finish\"><span>接收日期</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>完成日期</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"desc\"><span>审批意见</span>{{item?.taskComment}}</li> -->\n </ul>\n </ng-container>\n\n <!-- 审批终止 -->\n <ng-container *ngSwitchCase=\"'ABORT'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>步骤</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>审核人</span>{{item?.empName}}</li>\n <li class=\"type\"><span>操作</span><label class=\"abort\">终止</label></li>\n <!-- <li class=\"finish\"><span>接收日期</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>完成日期</span>{{item?.endTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"desc\"><span>审批意见</span>{{item?.taskComment}}</li> -->\n </ul>\n </ng-container>\n\n <!-- 管理员终止 -->\n <ng-container *ngSwitchCase=\"'MANAGE_ABORT'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>步骤</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>审核人</span>{{item?.empName}}</li>\n <li class=\"type\"><span>操作</span><label class=\"abort\">管理员终止</label></li>\n <!-- <li class=\"finish\"><span>接收日期</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>完成日期</span>---</li> -->\n </ul>\n </ng-container>\n\n <!-- 管理员删除 -->\n <ng-container *ngSwitchCase=\"'MANAGE_DELETE'\">\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>步骤</span>{{item?.nodeName}}</li>\n <li class=\"emp\"><span>审核人</span>{{item?.empName}}</li>\n <li class=\"type\"><span>操作</span><label class=\"abort\">管理员删除</label></li>\n <!-- <li class=\"finish\"><span>接收日期</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n <li class=\"finish\"><span>完成日期</span>---</li> -->\n </ul>\n </ng-container>\n </ng-container>\n </nz-timeline-item>\n </ng-container>\n <ng-container *ngSwitchDefault> </ng-container>\n </ng-container>\n\n <ng-template #tmpNode>\n <ul class=\"nodeInfo\">\n <li class=\"name\"><span>步骤</span>发起步骤</li>\n <li class=\"emp\"><span>发起人</span>{{item?.empName}}</li>\n <li class=\"finish\"><span>发起日期</span>{{item?.startTime | date:'YYYY/MM/dd HH:mm'}}</li>\n </ul>\n </ng-template>\n </ng-container>\n </nz-timeline>\n</div>\n","import { NgModule } from '@angular/core';\nimport { FlowRecordComponent } from './default/index';\nimport { FlowRecordStepComponent } from './main/index';\n\nconst components: any[] = [FlowRecordComponent, FlowRecordStepComponent];\n\n@NgModule({\n imports: [\n ...components\n ],\n exports: [...components],\n})\nexport class GramFlowRecordModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;MAiBa,mBAAmB,CAAA;IAC9B,KAAK,GAAU,EAAE;IACjB,IACI,IAAI,CAAC,KAAU,EAAA;QACjB,IAAI,KAAO,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,EAAE;YACnC,IAAI,GAAG,GAAQ,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC;;YAEjC,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC,SAAS,CAAC,KAAK,CAAC;;aAC1B;AACL,YAAA,IAAI,CAAC,KAAK,GAAG,EAAE;;;AAInB,IAAA,IAAI,IAAI,GAAA;QACN,OAAO,IAAI,CAAC,KAAK;;IAGV,MAAM,GAAQ,IAAI;AAE3B,IAAA,WAAA,GAAA;AAEA,IAAA,QAAQ;wGArBG,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAAnB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,mBAAmB,mHCjBhC,0nPAgIA,EAAA,MAAA,EAAA,CAAA,67CAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EDpHI,YAAY,EACZ,EAAA,EAAA,IAAA,EAAA,WAAA,EAAA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AA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA;AAApB,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YARN,mBAAmB,EAAE,uBAAuB,CAA5C,EAAA,OAAA,EAAA,CAAA,mBAAmB,EAAE,uBAAuB,CAAA,EAAA,CAAA;AAQ1D,IAAA,OAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAJ1B,UAAU,CAAA,EAAA,CAAA;;4FAIJ,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBANhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE;AACP,wBAAA,GAAG;AACJ,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,GAAG,UAAU,CAAC;AACzB,iBAAA;;;ACXD;;AAEG;;;;"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Input, Component, NgModule } from '@angular/core';
|
|
3
|
+
import * as i1 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i2 from 'ng-zorro-antd/steps';
|
|
6
|
+
import { NzStepsModule } from 'ng-zorro-antd/steps';
|
|
7
|
+
|
|
8
|
+
class GramDeonStepEntryComponent {
|
|
9
|
+
data = [];
|
|
10
|
+
index = 0;
|
|
11
|
+
ngOnInit() { }
|
|
12
|
+
ngAfterViewInit() { }
|
|
13
|
+
ngOnChanges(change) { }
|
|
14
|
+
onIndexChange(event) {
|
|
15
|
+
this.index = event;
|
|
16
|
+
}
|
|
17
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonStepEntryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: GramDeonStepEntryComponent, isStandalone: true, selector: "step-entry", inputs: { data: "data" }, usesOnChanges: true, ngImport: i0, template: "<nz-steps nzType=\"navigation\" [nzCurrent]=\"index\" (nzIndexChange)=\"onIndexChange($event)\">\n <ng-container *ngFor=\"let item of data\">\n <nz-step [nzTitle]=\"item.name\" [nzStatus]=\"item.status\"></nz-step>\n </ng-container>\n</nz-steps>\n", styles: [":host ::ng-deep .ant-steps-item-content{padding:0 0 0 5px}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: NzStepsModule }, { kind: "component", type: i2.NzStepsComponent, selector: "nz-steps", inputs: ["nzCurrent", "nzDirection", "nzLabelPlacement", "nzType", "nzSize", "nzStartIndex", "nzStatus", "nzProgressDot"], outputs: ["nzIndexChange"], exportAs: ["nzSteps"] }, { kind: "component", type: i2.NzStepComponent, selector: "nz-step", inputs: ["nzTitle", "nzSubtitle", "nzDescription", "nzDisabled", "nzPercentage", "nzSize", "nzStatus", "nzIcon"], exportAs: ["nzStep"] }] });
|
|
19
|
+
}
|
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonStepEntryComponent, decorators: [{
|
|
21
|
+
type: Component,
|
|
22
|
+
args: [{ selector: 'step-entry', imports: [
|
|
23
|
+
CommonModule,
|
|
24
|
+
NzStepsModule
|
|
25
|
+
], template: "<nz-steps nzType=\"navigation\" [nzCurrent]=\"index\" (nzIndexChange)=\"onIndexChange($event)\">\n <ng-container *ngFor=\"let item of data\">\n <nz-step [nzTitle]=\"item.name\" [nzStatus]=\"item.status\"></nz-step>\n </ng-container>\n</nz-steps>\n", styles: [":host ::ng-deep .ant-steps-item-content{padding:0 0 0 5px}\n"] }]
|
|
26
|
+
}], propDecorators: { data: [{
|
|
27
|
+
type: Input
|
|
28
|
+
}] } });
|
|
29
|
+
|
|
30
|
+
const components = [GramDeonStepEntryComponent];
|
|
31
|
+
const entryComponents = [];
|
|
32
|
+
class GramDeonStepEntryModule {
|
|
33
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonStepEntryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
34
|
+
static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.15", ngImport: i0, type: GramDeonStepEntryModule, imports: [CommonModule, NzStepsModule, GramDeonStepEntryComponent], exports: [GramDeonStepEntryComponent] });
|
|
35
|
+
static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonStepEntryModule, imports: [CommonModule, NzStepsModule, components] });
|
|
36
|
+
}
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: GramDeonStepEntryModule, decorators: [{
|
|
38
|
+
type: NgModule,
|
|
39
|
+
args: [{
|
|
40
|
+
imports: [CommonModule, NzStepsModule, ...components],
|
|
41
|
+
exports: [...components, ...entryComponents],
|
|
42
|
+
}]
|
|
43
|
+
}] });
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Generated bundle index. Do not edit.
|
|
47
|
+
*/
|
|
48
|
+
|
|
49
|
+
export { GramDeonStepEntryComponent, GramDeonStepEntryModule };
|
|
50
|
+
//# sourceMappingURL=components.step-entry.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"components.step-entry.mjs","sources":["../../../../packages/abc/step-entry/src/default/index.ts","../../../../packages/abc/step-entry/src/default/index.html","../../../../packages/abc/step-entry/src/index.module.ts","../../../../packages/abc/step-entry/components.step-entry.ts"],"sourcesContent":["import { Component, Input, OnInit, AfterViewInit, OnChanges } from '@angular/core';\nimport { CommonModule } from \"@angular/common\";\nimport { NzStepsModule } from 'ng-zorro-antd/steps';\n@Component({\n selector: 'step-entry',\n templateUrl: './index.html',\n styleUrls: ['./index.less'],\n imports: [\n CommonModule,\n NzStepsModule\n ]\n})\nexport class GramDeonStepEntryComponent implements OnInit, AfterViewInit, OnChanges {\n @Input() data: any[] = [];\n\n index: number = 0;\n\n ngOnInit(): void { }\n\n ngAfterViewInit() { }\n\n ngOnChanges(change: any) { }\n\n onIndexChange(event: number): void {\n this.index = event;\n }\n}\n","<nz-steps nzType=\"navigation\" [nzCurrent]=\"index\" (nzIndexChange)=\"onIndexChange($event)\">\n <ng-container *ngFor=\"let item of data\">\n <nz-step [nzTitle]=\"item.name\" [nzStatus]=\"item.status\"></nz-step>\n </ng-container>\n</nz-steps>\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { NzStepsModule } from 'ng-zorro-antd/steps';\nimport { GramDeonStepEntryComponent } from './default/index';\n\nconst components: any[] = [GramDeonStepEntryComponent];\nconst entryComponents: any[] = [];\n\n@NgModule({\n imports: [CommonModule, NzStepsModule, ...components],\n exports: [...components, ...entryComponents],\n})\nexport class GramDeonStepEntryModule { }\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAYa,0BAA0B,CAAA;IAC5B,IAAI,GAAU,EAAE;IAEzB,KAAK,GAAW,CAAC;AAEjB,IAAA,QAAQ;AAER,IAAA,eAAe;IAEf,WAAW,CAAC,MAAW,EAAA;AAEvB,IAAA,aAAa,CAAC,KAAa,EAAA;AACzB,QAAA,IAAI,CAAC,KAAK,GAAG,KAAK;;wGAZT,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;AAA1B,I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