@rolatech/angular-payment 19.0.0-beta.17 → 19.0.0-beta.18
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.
|
@@ -108,10 +108,10 @@ class PayoutIndexComponent extends BaseComponent {
|
|
|
108
108
|
},
|
|
109
109
|
});
|
|
110
110
|
}
|
|
111
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
112
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.
|
|
111
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: PayoutIndexComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
112
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "19.2.4", type: PayoutIndexComponent, isStandalone: true, selector: "rolatech-payout-index", viewQueries: [{ propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<rolatech-toolbar title=\"\u652F\u51FA\u8BB0\u5F55\"> </rolatech-toolbar>\n<div>\n <table mat-table [dataSource]=\"dataSource\">\n <!-- status Column -->\n <ng-container matColumnDef=\"status\">\n <th mat-header-cell *matHeaderCellDef>\u72B6\u6001</th>\n <td mat-cell *matCellDef=\"let item\">{{ status[item.status] }}</td>\n </ng-container>\n\n <!-- amount Column -->\n <ng-container matColumnDef=\"total\">\n <th mat-header-cell *matHeaderCellDef>\u91D1\u989D(\u5143)</th>\n <td mat-cell *matCellDef=\"let item\">{{ item.amount / 100 }}</td>\n </ng-container>\n\n <!-- createdAt Column -->\n <ng-container matColumnDef=\"createdAt\">\n <th mat-header-cell *matHeaderCellDef>\u4EA4\u6613\u65E5\u671F</th>\n <td mat-cell *matCellDef=\"let item\">{{ item.createdAt }}</td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\n <tr\n mat-row\n *matRowDef=\"let row; columns: displayedColumns\"\n routerLink=\"./{{ row.id }}\"\n class=\"hover:bg-[--rt-raised-background] cursor-pointer\"\n ></tr>\n </table>\n <mat-paginator\n #paginator\n [length]=\"length\"\n [pageSize]=\"pageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n (page)=\"pageEvent = find($event)\"\n hidePageSize\n showFirstLastButtons\n >\n </mat-paginator>\n</div>\n", styles: ["mat-form-field{width:100%}table{width:100%}.mat-mdc-cell:nth-last-child(1),.mat-mdc-header-cell:nth-last-child(1),.mat-mdc-footer-cell:nth-last-child(1){text-align:right;max-width:180px;width:180px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{text-align:right;padding-right:8px!important}\n"], dependencies: [{ kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }, { kind: "ngmodule", type: MatTableModule }, { kind: "component", type: i1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i1.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i1.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i1.MatColumnDef, selector: "[matColumnDef]", inputs: ["matColumnDef"] }, { kind: "directive", type: i1.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i1.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }, { kind: "directive", type: RouterLink, selector: "[routerLink]", inputs: ["target", "queryParams", "fragment", "queryParamsHandling", "state", "info", "relativeTo", "preserveFragment", "skipLocationChange", "replaceUrl", "routerLink"] }] });
|
|
113
113
|
}
|
|
114
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: PayoutIndexComponent, decorators: [{
|
|
115
115
|
type: Component,
|
|
116
116
|
args: [{ selector: 'rolatech-payout-index', imports: [ToolbarComponent, MatTableModule, MatPaginator, RouterLink], template: "<rolatech-toolbar title=\"\u652F\u51FA\u8BB0\u5F55\"> </rolatech-toolbar>\n<div>\n <table mat-table [dataSource]=\"dataSource\">\n <!-- status Column -->\n <ng-container matColumnDef=\"status\">\n <th mat-header-cell *matHeaderCellDef>\u72B6\u6001</th>\n <td mat-cell *matCellDef=\"let item\">{{ status[item.status] }}</td>\n </ng-container>\n\n <!-- amount Column -->\n <ng-container matColumnDef=\"total\">\n <th mat-header-cell *matHeaderCellDef>\u91D1\u989D(\u5143)</th>\n <td mat-cell *matCellDef=\"let item\">{{ item.amount / 100 }}</td>\n </ng-container>\n\n <!-- createdAt Column -->\n <ng-container matColumnDef=\"createdAt\">\n <th mat-header-cell *matHeaderCellDef>\u4EA4\u6613\u65E5\u671F</th>\n <td mat-cell *matCellDef=\"let item\">{{ item.createdAt }}</td>\n </ng-container>\n\n <tr mat-header-row *matHeaderRowDef=\"displayedColumns\"></tr>\n <tr\n mat-row\n *matRowDef=\"let row; columns: displayedColumns\"\n routerLink=\"./{{ row.id }}\"\n class=\"hover:bg-[--rt-raised-background] cursor-pointer\"\n ></tr>\n </table>\n <mat-paginator\n #paginator\n [length]=\"length\"\n [pageSize]=\"pageSize\"\n [pageSizeOptions]=\"pageSizeOptions\"\n (page)=\"pageEvent = find($event)\"\n hidePageSize\n showFirstLastButtons\n >\n </mat-paginator>\n</div>\n", styles: ["mat-form-field{width:100%}table{width:100%}.mat-mdc-cell:nth-last-child(1),.mat-mdc-header-cell:nth-last-child(1),.mat-mdc-footer-cell:nth-last-child(1){text-align:right;max-width:180px;width:180px}mat-cell:last-of-type,mat-header-cell:last-of-type,mat-footer-cell:last-of-type{text-align:right;padding-right:8px!important}\n"] }]
|
|
117
117
|
}] });
|
|
@@ -136,10 +136,10 @@ class WithdrawDialogComponent {
|
|
|
136
136
|
close() {
|
|
137
137
|
this.dialogRef.close();
|
|
138
138
|
}
|
|
139
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
140
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
139
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: WithdrawDialogComponent, deps: [{ token: i1$1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
140
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.4", type: WithdrawDialogComponent, isStandalone: true, selector: "rolatech-withdraw-dialog", ngImport: i0, template: "<div class=\"flex flex-col h-full\">\n <div class=\"h-16 flex justify-between items-center px-5\">\n <div class=\"text-md font-medium\">\u63D0\u73B0</div>\n <div class=\"cursor-pointer\" (click)=\"close()\">\n <mat-icon fontIcon=\"close\"></mat-icon>\n </div>\n </div>\n <mat-divider></mat-divider>\n <div class=\"flex-1 mt-3 overflow-y-auto max-h-[55vh]\">\n <div class=\"p-3\">\n <mat-form-field appearance=\"fill\">\n <mat-label>\u63D0\u73B0\u5230</mat-label>\n <mat-select name=\"type\" [(ngModel)]=\"type\" [compareWith]=\"compareFn\">\n @for (item of type; track item) {\n <mat-option [value]=\"item.key\">\n {{ item.value }}\n </mat-option>\n }\n </mat-select>\n </mat-form-field>\n <mat-form-field appearance=\"fill\">\n <mat-label> \u91D1\u989D </mat-label>\n <input matInput type=\"text\" [(ngModel)]=\"total\" name=\"name\" required type=\"number\" />\n </mat-form-field>\n </div>\n </div>\n <mat-divider></mat-divider>\n <div class=\"h-16 flex justify-end items-center px-5\">\n <button mat-button [mat-dialog-close]=\"total\" cdkFocusInitial>\u786E\u8BA4</button>\n </div>\n</div>\n", styles: ["mat-form-field{width:100%}\n"], dependencies: [{ kind: "ngmodule", type: MatIconModule }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "ngmodule", type: MatDividerModule }, { kind: "component", type: i3.MatDivider, selector: "mat-divider", inputs: ["vertical", "inset"] }, { kind: "ngmodule", type: MatFormFieldModule }, { kind: "component", type: i4.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "directive", type: i4.MatLabel, selector: "mat-label" }, { kind: "ngmodule", type: MatSelectModule }, { kind: "component", type: i5.MatSelect, selector: "mat-select", inputs: ["aria-describedby", "panelClass", "disabled", "disableRipple", "tabIndex", "hideSingleSelectionIndicator", "placeholder", "required", "multiple", "disableOptionCentering", "compareWith", "value", "aria-label", "aria-labelledby", "errorStateMatcher", "typeaheadDebounceInterval", "sortComparator", "id", "panelWidth", "canSelectNullableOptions"], outputs: ["openedChange", "opened", "closed", "selectionChange", "valueChange"], exportAs: ["matSelect"] }, { kind: "component", type: i5.MatOption, selector: "mat-option", inputs: ["value", "id", "disabled"], outputs: ["onSelectionChange"], exportAs: ["matOption"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i6.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i6.NumberValueAccessor, selector: "input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]" }, { kind: "directive", type: i6.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i6.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i6.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "ngmodule", type: MatOptionModule }, { kind: "ngmodule", type: MatInputModule }, { kind: "directive", type: i7.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly", "disabledInteractive"], exportAs: ["matInput"] }, { kind: "ngmodule", type: MatButtonModule }, { kind: "component", type: i8.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", exportAs: ["matButton"] }, { kind: "directive", type: MatDialogClose, selector: "[mat-dialog-close], [matDialogClose]", inputs: ["aria-label", "type", "mat-dialog-close", "matDialogClose"], exportAs: ["matDialogClose"] }] });
|
|
141
141
|
}
|
|
142
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
142
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: WithdrawDialogComponent, decorators: [{
|
|
143
143
|
type: Component,
|
|
144
144
|
args: [{ selector: 'rolatech-withdraw-dialog', imports: [
|
|
145
145
|
MatIconModule,
|
|
@@ -158,10 +158,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.3", ngImpor
|
|
|
158
158
|
}] }] });
|
|
159
159
|
|
|
160
160
|
class PayoutApproveDialogComponent {
|
|
161
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
162
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.
|
|
161
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: PayoutApproveDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
162
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.4", type: PayoutApproveDialogComponent, isStandalone: true, selector: "rolatech-payout-approve-dialog", ngImport: i0, template: "<p>payout-approve-dialog works!</p>\n", styles: [""], dependencies: [{ kind: "ngmodule", type: CommonModule }] });
|
|
163
163
|
}
|
|
164
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
164
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: PayoutApproveDialogComponent, decorators: [{
|
|
165
165
|
type: Component,
|
|
166
166
|
args: [{ selector: 'rolatech-payout-approve-dialog', imports: [CommonModule], template: "<p>payout-approve-dialog works!</p>\n" }]
|
|
167
167
|
}] });
|
|
@@ -223,10 +223,10 @@ class PayoutDetailComponent extends BaseComponent {
|
|
|
223
223
|
}
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.
|
|
227
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.
|
|
226
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: PayoutDetailComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
227
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.4", type: PayoutDetailComponent, isStandalone: true, selector: "rolatech-payout-detail", usesInheritance: true, ngImport: i0, template: "<rolatech-toolbar title=\"\u5206\u8D26\u5BA1\u6838\u8BE6\u60C5\">\n @if (payout && payout.status === 'CREATED') {\n <button mat-button (click)=\"approve()\">\u901A\u8FC7</button>\n }\n</rolatech-toolbar>\n\n<div class=\"py-3 px-5\">\n @if (payout) {\n <div class=\"flex justify-between\">\n <div class=\"flex flex-col\">\n <div class=\"text-2xl font-medium mb-3\">\n {{ status[payout.status] }}\n </div>\n <div>\n <span>\u5206\u8D26\u91D1\u989D: </span> <span> \u00A5{{ payout.amount / 100 }}</span>\n </div>\n <div>\n <span>\u8BA2\u5355\u603B\u8BA1: </span> <span>\u00A5{{ payout.total / 100 }}</span>\n </div>\n @if (order) {\n <div class=\"mt-3\">\n <div class=\"text-lg font-medium\">\u8BA2\u5355\u4FE1\u606F</div>\n <div>\n <div><span>\u8BA2\u5355\u53F7: </span>{{ order.orderNo }}</div>\n <div><span>\u4E0B\u5355\u65E5\u671F: </span>{{ order.createdAt }}</div>\n <div><span>\u5E94\u4ED8\u91D1\u989D: </span>\u00A5{{ (order.total / 100).toFixed(2) }}</div>\n </div>\n </div>\n }\n @if (instructor) {\n <div class=\"mt-3\">\n <div class=\"text-lg font-medium\">\u521B\u4F5C\u8005\u4FE1\u606F</div>\n <div>\n <div><span>\u59D3\u540D: </span>{{ instructor?.name }}</div>\n </div>\n </div>\n }\n </div>\n </div>\n }\n</div>\n", styles: [""], dependencies: [{ kind: "component", type: ToolbarComponent, selector: "rolatech-toolbar", inputs: ["title", "subtitle", "back", "link", "large", "divider"] }] });
|
|
228
228
|
}
|
|
229
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.
|
|
229
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.4", ngImport: i0, type: PayoutDetailComponent, decorators: [{
|
|
230
230
|
type: Component,
|
|
231
231
|
args: [{ selector: 'rolatech-payout-detail', imports: [ToolbarComponent], template: "<rolatech-toolbar title=\"\u5206\u8D26\u5BA1\u6838\u8BE6\u60C5\">\n @if (payout && payout.status === 'CREATED') {\n <button mat-button (click)=\"approve()\">\u901A\u8FC7</button>\n }\n</rolatech-toolbar>\n\n<div class=\"py-3 px-5\">\n @if (payout) {\n <div class=\"flex justify-between\">\n <div class=\"flex flex-col\">\n <div class=\"text-2xl font-medium mb-3\">\n {{ status[payout.status] }}\n </div>\n <div>\n <span>\u5206\u8D26\u91D1\u989D: </span> <span> \u00A5{{ payout.amount / 100 }}</span>\n </div>\n <div>\n <span>\u8BA2\u5355\u603B\u8BA1: </span> <span>\u00A5{{ payout.total / 100 }}</span>\n </div>\n @if (order) {\n <div class=\"mt-3\">\n <div class=\"text-lg font-medium\">\u8BA2\u5355\u4FE1\u606F</div>\n <div>\n <div><span>\u8BA2\u5355\u53F7: </span>{{ order.orderNo }}</div>\n <div><span>\u4E0B\u5355\u65E5\u671F: </span>{{ order.createdAt }}</div>\n <div><span>\u5E94\u4ED8\u91D1\u989D: </span>\u00A5{{ (order.total / 100).toFixed(2) }}</div>\n </div>\n </div>\n }\n @if (instructor) {\n <div class=\"mt-3\">\n <div class=\"text-lg font-medium\">\u521B\u4F5C\u8005\u4FE1\u606F</div>\n <div>\n <div><span>\u59D3\u540D: </span>{{ instructor?.name }}</div>\n </div>\n </div>\n }\n </div>\n </div>\n }\n</div>\n" }]
|
|
232
232
|
}] });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rolatech/angular-payment",
|
|
3
|
-
"version": "19.0.0-beta.
|
|
3
|
+
"version": "19.0.0-beta.18",
|
|
4
4
|
"private": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@angular/common": "^19.2.0",
|
|
@@ -12,10 +12,10 @@
|
|
|
12
12
|
},
|
|
13
13
|
"sideEffects": false,
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"@rolatech/angular-components": "19.0.0-beta.
|
|
16
|
-
"@rolatech/angular-services": "19.0.0-beta.
|
|
17
|
-
"@rolatech/angular-auth": "19.0.0-beta.
|
|
18
|
-
"@rolatech/angular-order": "19.0.0-beta.
|
|
15
|
+
"@rolatech/angular-components": "19.0.0-beta.18",
|
|
16
|
+
"@rolatech/angular-services": "19.0.0-beta.18",
|
|
17
|
+
"@rolatech/angular-auth": "19.0.0-beta.18",
|
|
18
|
+
"@rolatech/angular-order": "19.0.0-beta.18",
|
|
19
19
|
"tslib": "^2.3.0"
|
|
20
20
|
},
|
|
21
21
|
"repository": {
|