@barcoding/widget-piecework-in 3.11.0 → 4.1.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.
@@ -1,590 +0,0 @@
1
- import { __decorate } from 'tslib';
2
- import * as i0 from '@angular/core';
3
- import { Component, Inject, Pipe, NgModule } from '@angular/core';
4
- import * as i8$1 from '@angular/material/table';
5
- import { MatTableDataSource, MatTableModule } from '@angular/material/table';
6
- import * as i4 from '@ngxs/store';
7
- import { Select, NgxsModule } from '@ngxs/store';
8
- import * as i2 from '@barcoding/gridster-core';
9
- import { ConfigInterfaceDashboard, DynamicComponentLoaderModule } from '@barcoding/gridster-core';
10
- import { Subject } from 'rxjs';
11
- import { ResetStorePieceWork, PieceWorkFrontState } from '@barcoding/module-piecework';
12
- import { AuthState } from '@barcoding/auth-core';
13
- import * as i3 from '@angular/material/dialog';
14
- import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
15
- import * as i1 from '@barcoding/frontend-core';
16
- import { ModeState, isMode, ChangeStatePieceWork, PieceWorkCollect, PieceWorkState } from '@barcoding/frontend-core';
17
- import * as i1$1 from '@barcoding/sdk';
18
- import * as i5 from '@angular/flex-layout/flex';
19
- import * as i6 from '@angular/material/button';
20
- import { MatButtonModule } from '@angular/material/button';
21
- import * as i7 from '@angular/material/checkbox';
22
- import { MatCheckboxModule } from '@angular/material/checkbox';
23
- import * as i8 from '@angular/forms';
24
- import { FormsModule } from '@angular/forms';
25
- import * as i14 from '@progress/kendo-angular-inputs';
26
- import { InputsModule, SwitchModule } from '@progress/kendo-angular-inputs';
27
- import { ModuleState } from '@barcoding/core';
28
- import * as i4$1 from '@angular/common';
29
- import { CommonModule } from '@angular/common';
30
- import * as i6$1 from '@angular/flex-layout/extended';
31
- import * as i7$1 from '@angular/cdk/table';
32
- import { CdkTableModule } from '@angular/cdk/table';
33
- import * as i11 from '@angular/material/paginator';
34
- import { MatPaginatorModule } from '@angular/material/paginator';
35
- import * as i12 from '@angular/material/icon';
36
- import { MatIconModule } from '@angular/material/icon';
37
- import * as i15 from '@angular/material/tooltip';
38
- import { MatTooltipModule } from '@angular/material/tooltip';
39
- import * as i16 from '@progress/kendo-angular-dropdowns';
40
- import { DropDownsModule } from '@progress/kendo-angular-dropdowns';
41
- import { FlexLayoutModule } from '@angular/flex-layout';
42
-
43
- class PieceWorkInForm {
44
- constructor(focusService, pieceWorkLineApi, dialogRef, store, data) {
45
- this.focusService = focusService;
46
- this.pieceWorkLineApi = pieceWorkLineApi;
47
- this.dialogRef = dialogRef;
48
- this.store = store;
49
- this.data = data;
50
- this.finish = false;
51
- this.qty_in = 0;
52
- this.line = Object.assign({}, data.line);
53
- this.qty_in = this.line.out - this.line.in;
54
- }
55
- ngOnInit() {
56
- this.focusService.unFocus();
57
- }
58
- ngOnDestroy() {
59
- this.focusService.setFocus();
60
- }
61
- cancel() {
62
- this.dialogRef.close();
63
- }
64
- save(qty_in, finish) {
65
- this.pieceWorkLineApi
66
- .find({
67
- filter: JSON.stringify({
68
- where: { piecework_id: this.line.piecework_id },
69
- }),
70
- })
71
- .subscribe(lines => {
72
- let isFinished = false;
73
- const totalLines = lines.length;
74
- let totalFinishedLines = 0;
75
- lines.forEach(line => {
76
- if (line.piecework_line_status_id === 2) {
77
- totalFinishedLines++;
78
- }
79
- });
80
- if (qty_in === this.line.out) {
81
- totalFinishedLines++;
82
- }
83
- if (totalFinishedLines === totalLines) {
84
- isFinished = true;
85
- }
86
- this.dialogRef.close({
87
- qty_in,
88
- finish,
89
- isFinished,
90
- });
91
- });
92
- }
93
- }
94
- PieceWorkInForm.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PieceWorkInForm, deps: [{ token: i1.FocusService }, { token: i1$1.PieceWorkLineControllerService }, { token: i3.MatDialogRef }, { token: i4.Store }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
95
- PieceWorkInForm.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: PieceWorkInForm, selector: "piece-work-in-form", ngImport: i0, template: "<div fxLayout=\"column\" style=\"width: 100%\" fxLayoutAlign=\" none\">\n <h4>Piece Work</h4>\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <div fxLayout=\"column\" fxLayoutAlign=\"space-between none\">\n <span class=\"h_t\">Assembly Name</span>\n <span class=\"v_t\">{{ line.part?.part_number }}</span>\n </div>\n\n <div class=\"spacer\"></div>\n\n <div fxLayout=\"column\" fxLayoutAlign=\"space-between none\">\n <span class=\"h_t\">Mode</span>\n <span class=\"v_t\">{{ line.mode?.controller }}</span>\n </div>\n\n <div class=\"spacer\"></div>\n\n <div fxLayout=\"column\" fxLayoutAlign=\"space-between none\">\n <span class=\"h_t\">Allocated Time</span>\n <span class=\"v_t\">--</span>\n </div>\n </div>\n <form class=\"k-form\" autocomplete=\"off\" #pieceWork=\"ngForm\">\n <div fxLayout=\"row\" fxLayoutAlign=\"start start\" fxLayoutGap=\"20px\">\n <kendo-floatinglabel fxFlex=\"80%\" text=\"Qty\">\n <kendo-numerictextbox\n [format]=\"'n0'\"\n style=\"width: 100%\"\n [min]=\"1\"\n required\n [(ngModel)]=\"qty_in\"\n [name]=\"'in'\"\n [max]=\"line.out\"\n type=\"number\"></kendo-numerictextbox>\n </kendo-floatinglabel>\n <mat-checkbox fxFlexAlign=\"center\" name=\"finish\" [(ngModel)]=\"finish\">\n Finish\n </mat-checkbox>\n </div>\n </form>\n</div>\n<div\n style=\"margin-top: 25px\"\n fxLayoutGap=\"10px\"\n fxLayout=\"row\"\n fxLayoutAlign=\"end none\">\n <button (click)=\"cancel()\" mat-raised-button class=\"t_btn cancel\">\n Cancel\n </button>\n <button\n (click)=\"save(qty_in, finish)\"\n [disabled]=\"!pieceWork.valid\"\n mat-raised-button\n class=\"t_btn success\">\n Save\n </button>\n</div>\n", styles: ["kendo-textbox-container{width:100%}.h_t{font: 10px/40px IBM Plex Sans;letter-spacing:0px;color:#666;opacity:1}.v_t{font: 18px/40px IBM Plex Sans;letter-spacing:0px;color:#666;opacity:1}.spacer{display:flex;flex-grow:1}\n"], dependencies: [{ kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i5.DefaultFlexAlignDirective, selector: " [fxFlexAlign], [fxFlexAlign.xs], [fxFlexAlign.sm], [fxFlexAlign.md], [fxFlexAlign.lg], [fxFlexAlign.xl], [fxFlexAlign.lt-sm], [fxFlexAlign.lt-md], [fxFlexAlign.lt-lg], [fxFlexAlign.lt-xl], [fxFlexAlign.gt-xs], [fxFlexAlign.gt-sm], [fxFlexAlign.gt-md], [fxFlexAlign.gt-lg]", inputs: ["fxFlexAlign", "fxFlexAlign.xs", "fxFlexAlign.sm", "fxFlexAlign.md", "fxFlexAlign.lg", "fxFlexAlign.xl", "fxFlexAlign.lt-sm", "fxFlexAlign.lt-md", "fxFlexAlign.lt-lg", "fxFlexAlign.lt-xl", "fxFlexAlign.gt-xs", "fxFlexAlign.gt-sm", "fxFlexAlign.gt-md", "fxFlexAlign.gt-lg"] }, { kind: "directive", type: i5.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "component", type: i6.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i7.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "directive", type: i8.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i8.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i8.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i8.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { kind: "directive", type: i8.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i8.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i14.NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode"], outputs: ["valueChange", "focus", "blur"], exportAs: ["kendoNumericTextBox"] }] });
96
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PieceWorkInForm, decorators: [{
97
- type: Component,
98
- args: [{ selector: 'piece-work-in-form', template: "<div fxLayout=\"column\" style=\"width: 100%\" fxLayoutAlign=\" none\">\n <h4>Piece Work</h4>\n <div fxLayout=\"row\" fxLayoutAlign=\"start center\">\n <div fxLayout=\"column\" fxLayoutAlign=\"space-between none\">\n <span class=\"h_t\">Assembly Name</span>\n <span class=\"v_t\">{{ line.part?.part_number }}</span>\n </div>\n\n <div class=\"spacer\"></div>\n\n <div fxLayout=\"column\" fxLayoutAlign=\"space-between none\">\n <span class=\"h_t\">Mode</span>\n <span class=\"v_t\">{{ line.mode?.controller }}</span>\n </div>\n\n <div class=\"spacer\"></div>\n\n <div fxLayout=\"column\" fxLayoutAlign=\"space-between none\">\n <span class=\"h_t\">Allocated Time</span>\n <span class=\"v_t\">--</span>\n </div>\n </div>\n <form class=\"k-form\" autocomplete=\"off\" #pieceWork=\"ngForm\">\n <div fxLayout=\"row\" fxLayoutAlign=\"start start\" fxLayoutGap=\"20px\">\n <kendo-floatinglabel fxFlex=\"80%\" text=\"Qty\">\n <kendo-numerictextbox\n [format]=\"'n0'\"\n style=\"width: 100%\"\n [min]=\"1\"\n required\n [(ngModel)]=\"qty_in\"\n [name]=\"'in'\"\n [max]=\"line.out\"\n type=\"number\"></kendo-numerictextbox>\n </kendo-floatinglabel>\n <mat-checkbox fxFlexAlign=\"center\" name=\"finish\" [(ngModel)]=\"finish\">\n Finish\n </mat-checkbox>\n </div>\n </form>\n</div>\n<div\n style=\"margin-top: 25px\"\n fxLayoutGap=\"10px\"\n fxLayout=\"row\"\n fxLayoutAlign=\"end none\">\n <button (click)=\"cancel()\" mat-raised-button class=\"t_btn cancel\">\n Cancel\n </button>\n <button\n (click)=\"save(qty_in, finish)\"\n [disabled]=\"!pieceWork.valid\"\n mat-raised-button\n class=\"t_btn success\">\n Save\n </button>\n</div>\n", styles: ["kendo-textbox-container{width:100%}.h_t{font: 10px/40px IBM Plex Sans;letter-spacing:0px;color:#666;opacity:1}.v_t{font: 18px/40px IBM Plex Sans;letter-spacing:0px;color:#666;opacity:1}.spacer{display:flex;flex-grow:1}\n"] }]
99
- }], ctorParameters: function () {
100
- return [{ type: i1.FocusService }, { type: i1$1.PieceWorkLineControllerService }, { type: i3.MatDialogRef }, { type: i4.Store }, { type: undefined, decorators: [{
101
- type: Inject,
102
- args: [MAT_DIALOG_DATA]
103
- }] }];
104
- } });
105
-
106
- class PieceworkInConfigModal {
107
- constructor(dialogRef, data) {
108
- this.dialogRef = dialogRef;
109
- this.data = data;
110
- this.config = {};
111
- this.config = Object.assign({}, data.currentConfig);
112
- }
113
- ngOnInit() { }
114
- save(config) {
115
- this.dialogRef.close(config);
116
- }
117
- onNoClick() {
118
- this.dialogRef.close();
119
- }
120
- }
121
- PieceworkInConfigModal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PieceworkInConfigModal, deps: [{ token: i3.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
122
- PieceworkInConfigModal.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: PieceworkInConfigModal, selector: "assignmentFormDialog", ngImport: i0, template: "<form class=\"k-form\" autocomplete=\"off\" #configForm=\"ngForm\">\n <div fxLayout=\"column\" fxLayoutAlign=\"space-between none\">\n <div fxLayout=\"column\" fxLayoutAlign=\" stretch\">\n <fieldset>\n <legend>Main</legend>\n <label fxFlex class=\"k-form-field\">\n <span>Current User</span>\n <kendo-switch\n name=\"current_user\"\n [(ngModel)]=\"config.current_user\"\n [onLabel]=\"'Yes'\"\n [offLabel]=\"'No'\"></kendo-switch>\n </label>\n <label fxFlex class=\"k-form-field\">\n <span>Simple Version</span>\n <kendo-switch\n name=\"simple_version\"\n [(ngModel)]=\"config.simple_version\"\n [onLabel]=\"'Yes'\"\n [offLabel]=\"'No'\"></kendo-switch>\n </label>\n </fieldset>\n </div>\n\n <div\n fxLayoutGap=\"20px\"\n style=\"margin-top: 10px\"\n fxLayout=\"row\"\n fxLayoutAlign=\"space-around end\">\n <button\n fxFlex\n (click)=\"onNoClick()\"\n mat-raised-button\n class=\"t_btn cancel\">\n Cancel\n </button>\n <button\n fxFlex\n [disabled]=\"!configForm.form.valid\"\n (click)=\"save(config)\"\n class=\"t_btn success\"\n mat-raised-button>\n Save\n </button>\n </div>\n </div>\n</form>\n", styles: [".mat-mdc-tab-body-wrapper{flex-grow:1}.mat-mdc-tab-body{display:flex!important;flex-direction:column}.mat-mdc-tab-body-content{display:flex;flex-direction:column;flex-grow:1}mat-form-field{margin-top:20px}\n"], dependencies: [{ kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i5.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "component", type: i6.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "directive", type: i8.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i8.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i8.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i8.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i8.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i14.SwitchComponent, selector: "kendo-switch", inputs: ["focusableId", "onLabel", "offLabel", "checked", "disabled", "readonly", "tabindex", "size", "thumbRounded", "trackRounded", "tabIndex"], outputs: ["focus", "blur", "valueChange"], exportAs: ["kendoSwitch"] }] });
123
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: PieceworkInConfigModal, decorators: [{
124
- type: Component,
125
- args: [{ selector: 'assignmentFormDialog', template: "<form class=\"k-form\" autocomplete=\"off\" #configForm=\"ngForm\">\n <div fxLayout=\"column\" fxLayoutAlign=\"space-between none\">\n <div fxLayout=\"column\" fxLayoutAlign=\" stretch\">\n <fieldset>\n <legend>Main</legend>\n <label fxFlex class=\"k-form-field\">\n <span>Current User</span>\n <kendo-switch\n name=\"current_user\"\n [(ngModel)]=\"config.current_user\"\n [onLabel]=\"'Yes'\"\n [offLabel]=\"'No'\"></kendo-switch>\n </label>\n <label fxFlex class=\"k-form-field\">\n <span>Simple Version</span>\n <kendo-switch\n name=\"simple_version\"\n [(ngModel)]=\"config.simple_version\"\n [onLabel]=\"'Yes'\"\n [offLabel]=\"'No'\"></kendo-switch>\n </label>\n </fieldset>\n </div>\n\n <div\n fxLayoutGap=\"20px\"\n style=\"margin-top: 10px\"\n fxLayout=\"row\"\n fxLayoutAlign=\"space-around end\">\n <button\n fxFlex\n (click)=\"onNoClick()\"\n mat-raised-button\n class=\"t_btn cancel\">\n Cancel\n </button>\n <button\n fxFlex\n [disabled]=\"!configForm.form.valid\"\n (click)=\"save(config)\"\n class=\"t_btn success\"\n mat-raised-button>\n Save\n </button>\n </div>\n </div>\n</form>\n", styles: [".mat-mdc-tab-body-wrapper{flex-grow:1}.mat-mdc-tab-body{display:flex!important;flex-direction:column}.mat-mdc-tab-body-content{display:flex;flex-direction:column;flex-grow:1}mat-form-field{margin-top:20px}\n"] }]
126
- }], ctorParameters: function () {
127
- return [{ type: i3.MatDialogRef }, { type: undefined, decorators: [{
128
- type: Inject,
129
- args: [MAT_DIALOG_DATA]
130
- }] }];
131
- } });
132
-
133
- class WidgetPieceworkInComponent extends ConfigInterfaceDashboard {
134
- constructor(modeApi, userApi, store, cdr, dialog, statusesApi, pieceWorkLineApi) {
135
- super(dialog, PieceworkInConfigModal, store, '60%');
136
- this.modeApi = modeApi;
137
- this.userApi = userApi;
138
- this.store = store;
139
- this.cdr = cdr;
140
- this.dialog = dialog;
141
- this.statusesApi = statusesApi;
142
- this.pieceWorkLineApi = pieceWorkLineApi;
143
- this.configChanged$ = new Subject();
144
- this.isAdmin = false;
145
- this.filters = {
146
- logic: 'and',
147
- filters: [
148
- {
149
- field: 'piecework_line_status_id',
150
- value: 1,
151
- },
152
- ],
153
- };
154
- this.displayedColumnsOrg = [
155
- 'pw_line',
156
- 'employee',
157
- 'document',
158
- 'assembly',
159
- 'mode',
160
- 'unit_price',
161
- 'percentage',
162
- 'qty',
163
- 'in',
164
- 'finish',
165
- 'total',
166
- 'status',
167
- ];
168
- this.displayedColumns = [
169
- 'pw_line',
170
- 'employee',
171
- 'document',
172
- 'assembly',
173
- 'mode',
174
- 'unit_price',
175
- 'percentage',
176
- 'qty',
177
- 'in',
178
- 'finish',
179
- 'total',
180
- 'status',
181
- ]; // column display value
182
- this.displayedColumnsSimple = [
183
- 'employee',
184
- 'document',
185
- 'assembly',
186
- 'finish',
187
- 'total',
188
- ]; // column display value
189
- this.employee = null;
190
- this.status = 1;
191
- this.barcodes = [];
192
- this.users = [];
193
- this.statuses = [];
194
- this.modes = [];
195
- this.defaultItemMode = { id: null, controller: 'Show all...' };
196
- this.defaultItemStatus = { id: null, name: 'Show all...' };
197
- }
198
- getValue(field, isMultiLine = false) {
199
- if (!this.filters) {
200
- return null;
201
- }
202
- if (!this.filters.filters) {
203
- return null;
204
- }
205
- const data = this.filters.filters.find((value) => value.field === field);
206
- if (isMultiLine) {
207
- if (data && data.value && data.value.length) {
208
- return data.value.join('\n');
209
- }
210
- }
211
- return data ? data.value : '';
212
- }
213
- ngOnInit() {
214
- this.modeApi
215
- .find({ filter: JSON.stringify({ where: { is_piecework: true } }) })
216
- .subscribe(_ => {
217
- this.modes = _;
218
- });
219
- this.statusesApi.find().subscribe(_ => {
220
- this.statuses = _;
221
- });
222
- const currentUser = this.store.selectSnapshot(AuthState.user);
223
- // example of default filter on start
224
- // this.filters.filters.push({
225
- // operator: 'eq',
226
- // field: 'piecework_id',
227
- // value: 200,
228
- // });
229
- // this.store.dispatch(
230
- // new ChangeStatePieceWork({
231
- // skip: 0,
232
- // sort: [{ field: 'id', dir: 'desc' }],
233
- // take: 10,
234
- // filter: this.filters,
235
- // })
236
- // );
237
- this.stateSubscription = this.state$.subscribe(_ => {
238
- if (_.filter) {
239
- this.filters = _.filter;
240
- }
241
- });
242
- const mode = this.store.selectSnapshot(ModeState.mode);
243
- const currentModule = this.store.selectSnapshot(ModuleState.module);
244
- if (currentModule) {
245
- const isAdmin = currentUser.groups.find(value => value.module_group_id === currentModule.admin_group_id);
246
- if (isAdmin) {
247
- this.isAdmin = true;
248
- }
249
- }
250
- if (mode && isMode(mode)) {
251
- const isAdminMode = currentUser.groups.find(value => value.module_group_id === mode.admin_group_id);
252
- const isModeratorMode = currentUser.groups.find(value => value.module_group_id === mode.moderator_group_id);
253
- console.log(isAdminMode, isModeratorMode);
254
- if (isModeratorMode || isAdminMode) {
255
- this.isAdmin = true;
256
- }
257
- }
258
- const currentUserConfig = this.item.config && this.item.config.current_user ? true : false;
259
- if (currentUserConfig) {
260
- this.isAdmin = false;
261
- }
262
- console.log(`isAdmin: ${this.isAdmin}`);
263
- if (!this.isAdmin) {
264
- const currentUser = this.store.selectSnapshot(AuthState.user);
265
- this.users.push(currentUser);
266
- let filters = {};
267
- if (this.item.config.simple_version) {
268
- this.displayedColumns = this.displayedColumnsSimple.slice();
269
- filters = {
270
- logic: 'and',
271
- filters: [
272
- {
273
- field: 'user_id',
274
- value: currentUser.id,
275
- },
276
- {
277
- field: 'piecework_line_status_id',
278
- value: 2,
279
- },
280
- ],
281
- };
282
- }
283
- else {
284
- filters = {
285
- logic: 'and',
286
- filters: [
287
- {
288
- field: 'piecework_line_status_id',
289
- value: 1,
290
- },
291
- {
292
- field: 'user_id',
293
- value: currentUser.id,
294
- },
295
- ],
296
- };
297
- }
298
- this.store.dispatch(new ChangeStatePieceWork({
299
- skip: 0,
300
- sort: [{ field: 'id', dir: 'desc' }],
301
- take: 20,
302
- filter: filters,
303
- }));
304
- }
305
- if (this.isAdmin) {
306
- this.displayedColumns = [
307
- 'pw_line',
308
- 'employee',
309
- 'document',
310
- 'mode',
311
- 'percentage',
312
- 'qty',
313
- 'finish',
314
- 'total',
315
- 'status',
316
- 'actions',
317
- ]; // column display value
318
- }
319
- /**
320
- * example set filter outside
321
- */
322
- // setTimeout(() => {
323
- // const filters: CompositeFilterDescriptor = {
324
- // logic: 'and',
325
- // filters: [
326
- // {
327
- // operator: 'eq',
328
- // field: 'piecework_id',
329
- // value: 202,
330
- // },
331
- // ],
332
- // };
333
- // this.store.dispatch(
334
- // new ChangeStatePieceWork({
335
- // skip: 0,
336
- // sort: [{ field: 'id', dir: 'desc' }],
337
- // take: 10,
338
- // filter: filters,
339
- // })
340
- // );
341
- // }, 8000);
342
- this.pieceworkSubscription = this.pieceworks$.subscribe(_ => {
343
- const data = _.map(value => {
344
- return Object.assign(Object.assign({}, value), { formIn: value.out - value.in });
345
- });
346
- this.dataSource = new MatTableDataSource(data);
347
- });
348
- }
349
- getMax(row) {
350
- return row.out - row.in;
351
- }
352
- registerIn(row, qty_in, finish) {
353
- console.log(row, qty_in);
354
- this.pieceWorkLineApi
355
- .find({
356
- filter: JSON.stringify({
357
- where: { piecework_id: row.piecework_id },
358
- }),
359
- })
360
- .subscribe(lines => {
361
- let isFinished = false;
362
- const totalLines = lines.length;
363
- let totalFinishedLines = 0;
364
- lines.forEach(line => {
365
- if (line.piecework_line_status_id === 2) {
366
- totalFinishedLines++;
367
- }
368
- });
369
- if (qty_in === row.out) {
370
- totalFinishedLines++;
371
- }
372
- if (totalFinishedLines === totalLines) {
373
- isFinished = true;
374
- }
375
- const user_id = this.store.selectSnapshot(AuthState.user).id;
376
- const finishObject = finish ? qty_in : 0;
377
- this.store.dispatch(new PieceWorkCollect(row.piecework_id, qty_in, row.id, user_id, finishObject, isFinished));
378
- });
379
- }
380
- buildBarcodeList(value) {
381
- this.barcodes = value
382
- .split('\n')
383
- .filter(value => value != null && value.length > 0)
384
- .map(value => value.trim());
385
- console.log(this.barcodes);
386
- }
387
- valueChange(field, event) {
388
- console.log(`valueChange: ${field}, ${event}`);
389
- if (!this.filters.filters) {
390
- this.filters.filters = [];
391
- }
392
- const filterExists = this.filters.filters.findIndex((value) => value.field === field);
393
- if (filterExists >= 0) {
394
- this.filters.filters[filterExists].value = event;
395
- }
396
- else {
397
- this.filters.filters.push({
398
- operator: 'eq',
399
- field,
400
- value: event,
401
- });
402
- }
403
- this.store.dispatch(new ChangeStatePieceWork({
404
- skip: 0,
405
- sort: [{ field: 'id', dir: 'desc' }],
406
- take: 10,
407
- filter: this.filters,
408
- }));
409
- }
410
- filterChange(event) {
411
- if (event) {
412
- this.userApi
413
- .find({
414
- filter: JSON.stringify({
415
- limit: 5,
416
- where: { full_name: { like: `%${event}%` } },
417
- }),
418
- })
419
- .subscribe(_ => {
420
- this.users = _;
421
- });
422
- }
423
- }
424
- ngOnDestroy() {
425
- if (this.pieceworkSubscription) {
426
- this.pieceworkSubscription.unsubscribe();
427
- }
428
- if (this.myConfigSubscription) {
429
- this.myConfigSubscription.unsubscribe();
430
- }
431
- if (this.objectSubscription) {
432
- this.objectSubscription.unsubscribe();
433
- }
434
- if (this.stateSubscription) {
435
- this.stateSubscription.unsubscribe();
436
- }
437
- this.store.dispatch(new ResetStorePieceWork());
438
- super.destroy();
439
- }
440
- openInForm(row) {
441
- const dialogRef = this.dialog.open(PieceWorkInForm, {
442
- width: '40%',
443
- data: { line: row },
444
- });
445
- dialogRef.afterClosed().subscribe(data => {
446
- if (data) {
447
- const user_id = this.store.selectSnapshot(AuthState.user).id;
448
- const finish = data.finish ? data.qty_in : 0;
449
- this.store.dispatch(new PieceWorkCollect(row.piecework_id, data.qty_in, row.id, user_id, finish, data.isFinished));
450
- }
451
- });
452
- }
453
- changePage(event) {
454
- const take = event.pageSize;
455
- const skip = event.pageIndex > 0 ? event.pageIndex * event.pageSize : 0;
456
- this.store.dispatch(new ChangeStatePieceWork({
457
- skip,
458
- sort: [{ field: 'id', dir: 'desc' }],
459
- take,
460
- filter: this.filters,
461
- }));
462
- }
463
- formatCurrency(value, currency) {
464
- const region = currency.region;
465
- const symbol = currency.symbol;
466
- return value
467
- ? value.toLocaleString(region, { style: 'currency', currency: symbol })
468
- : 0;
469
- }
470
- }
471
- WidgetPieceworkInComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: WidgetPieceworkInComponent, deps: [{ token: i1$1.ModeControllerService }, { token: i1$1.UserControllerService }, { token: i4.Store }, { token: i0.ChangeDetectorRef }, { token: i3.MatDialog }, { token: i1$1.PieceWorkLineStatusControllerControllerService }, { token: i1$1.PieceWorkLineControllerService }], target: i0.ɵɵFactoryTarget.Component });
472
- WidgetPieceworkInComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.1", type: WidgetPieceworkInComponent, selector: "widget-piece-work-in", usesInheritance: true, ngImport: i0, template: "<div fxLayout=\"column\" fxLayoutGap=\"20px\">\n <label *ngIf=\"!item.config?.simple_version\" fxFlex class=\"k-form-field\">\n <form class=\"k-form\" id=\"piecework_in_form\">\n <div fxLayout=\"row\" fxLayoutGap=\"8px\" fxLayoutAlign=\"start center\">\n <label fxFlex class=\"k-form-field\">\n <span>Barcode</span>\n <kendo-textarea\n placeholder=\"Scan barcodes here\"\n [resizable]=\"'vertical'\"\n [rows]=\"3\"\n [value]=\"getValue('barcodes', true)\"\n (valueChange)=\"buildBarcodeList($event)\"\n flow=\"vertical\">\n </kendo-textarea>\n </label>\n <button\n fxFlex=\"50px\"\n (click)=\"valueChange('barcodes', barcodes)\"\n matTooltip=\"Filter\"\n [matTooltipPosition]=\"'above'\"\n mat-icon-button\n color=\"primary\"\n aria-label=\"Example icon button with a heart icon\">\n <mat-icon>refresh</mat-icon>\n </button>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"8px\" fxLayoutAlign=\"start center\">\n <label fxFlex=\"25%\" class=\"k-form-field\">\n <span>PW ID</span>\n <input\n style=\"width: 100%\"\n kendoTextBox\n [value]=\"getValue('piecework_id')\"\n (input)=\"valueChange('piecework_id', $event.target.value)\"\n name=\"piecework_id\"\n type=\"text\" />\n </label>\n\n <!-- <label fxFlex=\"20%\" class=\"k-form-field\">\n <span>Barcode</span>\n <kendo-textarea\n [style.marginBottom.px]=\"10\"\n placeholder=\"Event name\"\n resizable=\"auto\"\n flow=\"horizontal\"\n >\n </kendo-textarea>\n\n <!-- <input\n style=\"width: 100%\"\n kendoTextBox\n [value]=\"getValue('barcode')\"\n (input)=\"valueChange('barcode', $event.target.value)\"\n name=\"barcode\"\n type=\"text\"\n /> -->\n\n <label fxFlex=\"25%\" class=\"k-form-field\">\n <span>Employee</span>\n <kendo-combobox\n style=\"width: 100%\"\n name=\"user_id\"\n [value]=\"getValue('user_id')\"\n [filterable]=\"true\"\n (filterChange)=\"filterChange($event)\"\n (valueChange)=\"valueChange('user_id', $event)\"\n [data]=\"users\"\n [textField]=\"'full_name'\"\n [disabled]=\"!isAdmin\"\n [valueField]=\"'id'\"\n [valuePrimitive]=\"true\">\n </kendo-combobox>\n </label>\n\n <label fxFlex=\"25%\" class=\"k-form-field\">\n <span>Mode</span>\n <kendo-dropdownlist\n [defaultItem]=\"defaultItemMode\"\n [data]=\"modes\"\n [value]=\"getValue('mode_id')\"\n [valuePrimitive]=\"true\"\n (valueChange)=\"valueChange('mode_id', $event)\"\n [textField]=\"'controller'\"\n [valueField]=\"'id'\"\n name=\"true\">\n </kendo-dropdownlist>\n </label>\n\n <label fxFlex=\"25%\" class=\"k-form-field\">\n <span>Status</span>\n <kendo-dropdownlist\n [defaultItem]=\"defaultItemStatus\"\n [data]=\"statuses\"\n [value]=\"getValue('piecework_line_status_id')\"\n [valuePrimitive]=\"true\"\n (valueChange)=\"valueChange('piecework_line_status_id', $event)\"\n [textField]=\"'name'\"\n [valueField]=\"'id'\"\n name=\"true\">\n </kendo-dropdownlist>\n </label>\n </div>\n </form>\n </label>\n\n <mat-table #table [dataSource]=\"dataSource\">\n <ng-container cdkColumnDef=\"pw_line\">\n <mat-header-cell *cdkHeaderCellDef>PW</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n <span>{{ row.piecework?.id }}/{{ row.piecework_order_line }}</span>\n </mat-cell>\n </ng-container>\n <ng-container cdkColumnDef=\"employee\">\n <mat-header-cell *cdkHeaderCellDef>Employee</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n <span>{{ row?.piecework?.prepared_for?.full_name }}</span>\n </mat-cell>\n </ng-container>\n <ng-container cdkColumnDef=\"document\">\n <mat-header-cell *cdkHeaderCellDef>Document</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n <span>{{ row.document?.barcode }}</span>\n </mat-cell>\n </ng-container>\n <ng-container cdkColumnDef=\"assembly\">\n <mat-header-cell *cdkHeaderCellDef>Assembly</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n <span>{{ row.part?.part_number }}</span>\n </mat-cell>\n </ng-container>\n <!-- <ng-container cdkColumnDef=\"qty_max\">\n <mat-header-cell *cdkHeaderCellDef>Qty</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n <span>{{ getMaxQtyLeftForRow(row)}}</span>\n </mat-cell>\n </ng-container> -->\n <ng-container cdkColumnDef=\"mode\">\n <mat-header-cell *cdkHeaderCellDef>Mode</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n <span>{{ row.mode?.controller }}</span>\n </mat-cell>\n </ng-container>\n <ng-container cdkColumnDef=\"unit_price\">\n <mat-header-cell *cdkHeaderCellDef>Unit Price</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n {{ formatCurrency(row.unit_price, row.currency) }}\n </mat-cell>\n </ng-container>\n <ng-container cdkColumnDef=\"percentage\">\n <mat-header-cell *cdkHeaderCellDef>Job %</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n {{ row.work_percentage | percent }}\n </mat-cell>\n </ng-container>\n\n <ng-container cdkColumnDef=\"qty\">\n <mat-header-cell *cdkHeaderCellDef>Out / In</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n {{ row.out }} / {{ !row.in ? 0 : row.in }}\n </mat-cell>\n </ng-container>\n\n <ng-container cdkColumnDef=\"in\">\n <mat-header-cell *cdkHeaderCellDef>Qty In</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n {{ !row.in ? 0 : row.in }}\n </mat-cell>\n </ng-container>\n\n <ng-container cdkColumnDef=\"finish\">\n <mat-header-cell *cdkHeaderCellDef>Qty Finish</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n {{ row.finish }}\n </mat-cell>\n </ng-container>\n\n <ng-container cdkColumnDef=\"status\">\n <mat-header-cell *cdkHeaderCellDef>Status</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n {{ row.line_status?.name }}\n </mat-cell>\n </ng-container>\n\n <ng-container cdkColumnDef=\"total\">\n <mat-header-cell *cdkHeaderCellDef>Total</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n <span>{{ formatCurrency(row.value, row.currency) }}</span>\n </mat-cell>\n </ng-container>\n\n <ng-container cdkColumnDef=\"actions\">\n <mat-header-cell [ngClass]=\"'pieceworkActionColumn'\" *cdkHeaderCellDef\n >Actions</mat-header-cell\n >\n <mat-cell [ngClass]=\"'pieceworkActionColumn'\" *cdkCellDef=\"let row\">\n <ng-container *ngIf=\"row.piecework_line_status_id == 1\">\n <div fxLayout=\"row\" fxLayoutGap=\"8px\" fxLayoutAlign=\"start center\">\n <kendo-numerictextbox\n [format]=\"'n0'\"\n style=\"width: 100%\"\n [min]=\"1\"\n [(ngModel)]=\"row.formIn\"\n [name]=\"'in_' + row.id\"\n [max]=\"getMax(row)\"\n type=\"number\"></kendo-numerictextbox>\n <mat-checkbox\n matTooltip=\"Finish\"\n [matTooltipPosition]=\"'above'\"\n fxFlexAlign=\"center\"\n [name]=\"'finish_' + row.id\"\n [(ngModel)]=\"row.formFinish\">\n </mat-checkbox>\n <button\n [disabled]=\"row.in == row.out || row.formIn > row.out - row.in\"\n matTooltip=\"Save\"\n (click)=\"registerIn(row, row.formIn, row.formFinish)\"\n [matTooltipPosition]=\"'above'\"\n mat-icon-button\n color=\"warn\"\n aria-label=\"Example icon button with a heart icon\">\n <mat-icon>save</mat-icon>\n </button>\n </div>\n </ng-container>\n <ng-container *ngIf=\"row.piecework_line_status_id == 2\">\n <span>Line finished</span>\n </ng-container>\n </mat-cell>\n </ng-container>\n\n <mat-header-row *cdkHeaderRowDef=\"displayedColumns\"></mat-header-row>\n <mat-row *cdkRowDef=\"let row; columns: displayedColumns\"></mat-row>\n </mat-table>\n <mat-paginator\n #paginator\n [length]=\"total$ | async\"\n [pageIndex]=\"0\"\n (page)=\"changePage($event)\"\n [pageSize]=\"10\"\n [pageSizeOptions]=\"[5, 10, 25, 100]\">\n </mat-paginator>\n</div>\n", styles: [":host{padding:10px;display:flex;flex-direction:column}.spacer{flex-grow:1}.pieceworkActionColumn{flex:0 0 350px;padding-left:0!important}\n"], dependencies: [{ kind: "directive", type: i4$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i4$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i5.DefaultLayoutDirective, selector: " [fxLayout], [fxLayout.xs], [fxLayout.sm], [fxLayout.md], [fxLayout.lg], [fxLayout.xl], [fxLayout.lt-sm], [fxLayout.lt-md], [fxLayout.lt-lg], [fxLayout.lt-xl], [fxLayout.gt-xs], [fxLayout.gt-sm], [fxLayout.gt-md], [fxLayout.gt-lg]", inputs: ["fxLayout", "fxLayout.xs", "fxLayout.sm", "fxLayout.md", "fxLayout.lg", "fxLayout.xl", "fxLayout.lt-sm", "fxLayout.lt-md", "fxLayout.lt-lg", "fxLayout.lt-xl", "fxLayout.gt-xs", "fxLayout.gt-sm", "fxLayout.gt-md", "fxLayout.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutGapDirective, selector: " [fxLayoutGap], [fxLayoutGap.xs], [fxLayoutGap.sm], [fxLayoutGap.md], [fxLayoutGap.lg], [fxLayoutGap.xl], [fxLayoutGap.lt-sm], [fxLayoutGap.lt-md], [fxLayoutGap.lt-lg], [fxLayoutGap.lt-xl], [fxLayoutGap.gt-xs], [fxLayoutGap.gt-sm], [fxLayoutGap.gt-md], [fxLayoutGap.gt-lg]", inputs: ["fxLayoutGap", "fxLayoutGap.xs", "fxLayoutGap.sm", "fxLayoutGap.md", "fxLayoutGap.lg", "fxLayoutGap.xl", "fxLayoutGap.lt-sm", "fxLayoutGap.lt-md", "fxLayoutGap.lt-lg", "fxLayoutGap.lt-xl", "fxLayoutGap.gt-xs", "fxLayoutGap.gt-sm", "fxLayoutGap.gt-md", "fxLayoutGap.gt-lg"] }, { kind: "directive", type: i5.DefaultLayoutAlignDirective, selector: " [fxLayoutAlign], [fxLayoutAlign.xs], [fxLayoutAlign.sm], [fxLayoutAlign.md], [fxLayoutAlign.lg], [fxLayoutAlign.xl], [fxLayoutAlign.lt-sm], [fxLayoutAlign.lt-md], [fxLayoutAlign.lt-lg], [fxLayoutAlign.lt-xl], [fxLayoutAlign.gt-xs], [fxLayoutAlign.gt-sm], [fxLayoutAlign.gt-md], [fxLayoutAlign.gt-lg]", inputs: ["fxLayoutAlign", "fxLayoutAlign.xs", "fxLayoutAlign.sm", "fxLayoutAlign.md", "fxLayoutAlign.lg", "fxLayoutAlign.xl", "fxLayoutAlign.lt-sm", "fxLayoutAlign.lt-md", "fxLayoutAlign.lt-lg", "fxLayoutAlign.lt-xl", "fxLayoutAlign.gt-xs", "fxLayoutAlign.gt-sm", "fxLayoutAlign.gt-md", "fxLayoutAlign.gt-lg"] }, { kind: "directive", type: i5.DefaultFlexAlignDirective, selector: " [fxFlexAlign], [fxFlexAlign.xs], [fxFlexAlign.sm], [fxFlexAlign.md], [fxFlexAlign.lg], [fxFlexAlign.xl], [fxFlexAlign.lt-sm], [fxFlexAlign.lt-md], [fxFlexAlign.lt-lg], [fxFlexAlign.lt-xl], [fxFlexAlign.gt-xs], [fxFlexAlign.gt-sm], [fxFlexAlign.gt-md], [fxFlexAlign.gt-lg]", inputs: ["fxFlexAlign", "fxFlexAlign.xs", "fxFlexAlign.sm", "fxFlexAlign.md", "fxFlexAlign.lg", "fxFlexAlign.xl", "fxFlexAlign.lt-sm", "fxFlexAlign.lt-md", "fxFlexAlign.lt-lg", "fxFlexAlign.lt-xl", "fxFlexAlign.gt-xs", "fxFlexAlign.gt-sm", "fxFlexAlign.gt-md", "fxFlexAlign.gt-lg"] }, { kind: "directive", type: i5.DefaultFlexDirective, selector: " [fxFlex], [fxFlex.xs], [fxFlex.sm], [fxFlex.md], [fxFlex.lg], [fxFlex.xl], [fxFlex.lt-sm], [fxFlex.lt-md], [fxFlex.lt-lg], [fxFlex.lt-xl], [fxFlex.gt-xs], [fxFlex.gt-sm], [fxFlex.gt-md], [fxFlex.gt-lg]", inputs: ["fxFlex", "fxFlex.xs", "fxFlex.sm", "fxFlex.md", "fxFlex.lg", "fxFlex.xl", "fxFlex.lt-sm", "fxFlex.lt-md", "fxFlex.lt-lg", "fxFlex.lt-xl", "fxFlex.gt-xs", "fxFlex.gt-sm", "fxFlex.gt-md", "fxFlex.gt-lg"] }, { kind: "directive", type: i6$1.DefaultClassDirective, selector: " [ngClass], [ngClass.xs], [ngClass.sm], [ngClass.md], [ngClass.lg], [ngClass.xl], [ngClass.lt-sm], [ngClass.lt-md], [ngClass.lt-lg], [ngClass.lt-xl], [ngClass.gt-xs], [ngClass.gt-sm], [ngClass.gt-md], [ngClass.gt-lg]", inputs: ["ngClass", "ngClass.xs", "ngClass.sm", "ngClass.md", "ngClass.lg", "ngClass.xl", "ngClass.lt-sm", "ngClass.lt-md", "ngClass.lt-lg", "ngClass.lt-xl", "ngClass.gt-xs", "ngClass.gt-sm", "ngClass.gt-md", "ngClass.gt-lg"] }, { kind: "directive", type: i7$1.CdkRowDef, selector: "[cdkRowDef]", inputs: ["cdkRowDefColumns", "cdkRowDefWhen"] }, { kind: "directive", type: i7$1.CdkCellDef, selector: "[cdkCellDef]" }, { kind: "directive", type: i7$1.CdkHeaderCellDef, selector: "[cdkHeaderCellDef]" }, { kind: "directive", type: i7$1.CdkColumnDef, selector: "[cdkColumnDef]", inputs: ["sticky", "cdkColumnDef", "stickyEnd"] }, { kind: "directive", type: i7$1.CdkHeaderRowDef, selector: "[cdkHeaderRowDef]", inputs: ["cdkHeaderRowDef", "cdkHeaderRowDefSticky"] }, { kind: "component", type: i8$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i8$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i8$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i8$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i8$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i6.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i7.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "component", type: i11.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }, { kind: "component", type: i12.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i8.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i8.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i8.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i8.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i8.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: i14.TextAreaComponent, selector: "kendo-textarea", inputs: ["focusableId", "flow", "rows", "cols", "maxlength", "tabindex", "tabIndex", "resizable", "size", "rounded", "fillMode"], outputs: ["focus", "blur", "valueChange"], exportAs: ["kendoTextArea"] }, { kind: "directive", type: i14.TextBoxDirective, selector: "input[kendoTextBox]", inputs: ["value"] }, { kind: "component", type: i14.NumericTextBoxComponent, selector: "kendo-numerictextbox", inputs: ["focusableId", "disabled", "readonly", "title", "autoCorrect", "format", "max", "min", "decimals", "placeholder", "step", "spinners", "rangeValidation", "tabindex", "tabIndex", "changeValueOnScroll", "selectOnFocus", "value", "maxlength", "size", "rounded", "fillMode"], outputs: ["valueChange", "focus", "blur"], exportAs: ["kendoNumericTextBox"] }, { kind: "directive", type: i15.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: i16.ComboBoxComponent, selector: "kendo-combobox", inputs: ["focusableId", "allowCustom", "data", "value", "textField", "valueField", "valuePrimitive", "valueNormalizer", "placeholder", "popupSettings", "listHeight", "iconClass", "loading", "suggest", "clearButton", "disabled", "itemDisabled", "readonly", "tabindex", "tabIndex", "filterable", "virtual", "size", "rounded", "fillMode"], outputs: ["valueChange", "selectionChange", "filterChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoComboBox"] }, { kind: "component", type: i16.DropDownListComponent, selector: "kendo-dropdownlist", inputs: ["iconClass", "loading", "data", "value", "textField", "valueField", "popupSettings", "listHeight", "defaultItem", "disabled", "itemDisabled", "readonly", "filterable", "virtual", "ignoreCase", "delay", "valuePrimitive", "tabindex", "tabIndex", "size", "rounded", "fillMode", "id"], outputs: ["valueChange", "filterChange", "selectionChange", "open", "opened", "close", "closed", "focus", "blur"], exportAs: ["kendoDropDownList"] }, { kind: "pipe", type: i4$1.AsyncPipe, name: "async" }, { kind: "pipe", type: i4$1.PercentPipe, name: "percent" }] });
473
- __decorate([
474
- Select(PieceWorkState.pieceworks)
475
- ], WidgetPieceworkInComponent.prototype, "pieceworks$", void 0);
476
- __decorate([
477
- Select(PieceWorkState.total)
478
- ], WidgetPieceworkInComponent.prototype, "total$", void 0);
479
- __decorate([
480
- Select(PieceWorkState.state)
481
- ], WidgetPieceworkInComponent.prototype, "state$", void 0);
482
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: WidgetPieceworkInComponent, decorators: [{
483
- type: Component,
484
- args: [{ selector: 'widget-piece-work-in', template: "<div fxLayout=\"column\" fxLayoutGap=\"20px\">\n <label *ngIf=\"!item.config?.simple_version\" fxFlex class=\"k-form-field\">\n <form class=\"k-form\" id=\"piecework_in_form\">\n <div fxLayout=\"row\" fxLayoutGap=\"8px\" fxLayoutAlign=\"start center\">\n <label fxFlex class=\"k-form-field\">\n <span>Barcode</span>\n <kendo-textarea\n placeholder=\"Scan barcodes here\"\n [resizable]=\"'vertical'\"\n [rows]=\"3\"\n [value]=\"getValue('barcodes', true)\"\n (valueChange)=\"buildBarcodeList($event)\"\n flow=\"vertical\">\n </kendo-textarea>\n </label>\n <button\n fxFlex=\"50px\"\n (click)=\"valueChange('barcodes', barcodes)\"\n matTooltip=\"Filter\"\n [matTooltipPosition]=\"'above'\"\n mat-icon-button\n color=\"primary\"\n aria-label=\"Example icon button with a heart icon\">\n <mat-icon>refresh</mat-icon>\n </button>\n </div>\n <div fxLayout=\"row\" fxLayoutGap=\"8px\" fxLayoutAlign=\"start center\">\n <label fxFlex=\"25%\" class=\"k-form-field\">\n <span>PW ID</span>\n <input\n style=\"width: 100%\"\n kendoTextBox\n [value]=\"getValue('piecework_id')\"\n (input)=\"valueChange('piecework_id', $event.target.value)\"\n name=\"piecework_id\"\n type=\"text\" />\n </label>\n\n <!-- <label fxFlex=\"20%\" class=\"k-form-field\">\n <span>Barcode</span>\n <kendo-textarea\n [style.marginBottom.px]=\"10\"\n placeholder=\"Event name\"\n resizable=\"auto\"\n flow=\"horizontal\"\n >\n </kendo-textarea>\n\n <!-- <input\n style=\"width: 100%\"\n kendoTextBox\n [value]=\"getValue('barcode')\"\n (input)=\"valueChange('barcode', $event.target.value)\"\n name=\"barcode\"\n type=\"text\"\n /> -->\n\n <label fxFlex=\"25%\" class=\"k-form-field\">\n <span>Employee</span>\n <kendo-combobox\n style=\"width: 100%\"\n name=\"user_id\"\n [value]=\"getValue('user_id')\"\n [filterable]=\"true\"\n (filterChange)=\"filterChange($event)\"\n (valueChange)=\"valueChange('user_id', $event)\"\n [data]=\"users\"\n [textField]=\"'full_name'\"\n [disabled]=\"!isAdmin\"\n [valueField]=\"'id'\"\n [valuePrimitive]=\"true\">\n </kendo-combobox>\n </label>\n\n <label fxFlex=\"25%\" class=\"k-form-field\">\n <span>Mode</span>\n <kendo-dropdownlist\n [defaultItem]=\"defaultItemMode\"\n [data]=\"modes\"\n [value]=\"getValue('mode_id')\"\n [valuePrimitive]=\"true\"\n (valueChange)=\"valueChange('mode_id', $event)\"\n [textField]=\"'controller'\"\n [valueField]=\"'id'\"\n name=\"true\">\n </kendo-dropdownlist>\n </label>\n\n <label fxFlex=\"25%\" class=\"k-form-field\">\n <span>Status</span>\n <kendo-dropdownlist\n [defaultItem]=\"defaultItemStatus\"\n [data]=\"statuses\"\n [value]=\"getValue('piecework_line_status_id')\"\n [valuePrimitive]=\"true\"\n (valueChange)=\"valueChange('piecework_line_status_id', $event)\"\n [textField]=\"'name'\"\n [valueField]=\"'id'\"\n name=\"true\">\n </kendo-dropdownlist>\n </label>\n </div>\n </form>\n </label>\n\n <mat-table #table [dataSource]=\"dataSource\">\n <ng-container cdkColumnDef=\"pw_line\">\n <mat-header-cell *cdkHeaderCellDef>PW</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n <span>{{ row.piecework?.id }}/{{ row.piecework_order_line }}</span>\n </mat-cell>\n </ng-container>\n <ng-container cdkColumnDef=\"employee\">\n <mat-header-cell *cdkHeaderCellDef>Employee</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n <span>{{ row?.piecework?.prepared_for?.full_name }}</span>\n </mat-cell>\n </ng-container>\n <ng-container cdkColumnDef=\"document\">\n <mat-header-cell *cdkHeaderCellDef>Document</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n <span>{{ row.document?.barcode }}</span>\n </mat-cell>\n </ng-container>\n <ng-container cdkColumnDef=\"assembly\">\n <mat-header-cell *cdkHeaderCellDef>Assembly</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n <span>{{ row.part?.part_number }}</span>\n </mat-cell>\n </ng-container>\n <!-- <ng-container cdkColumnDef=\"qty_max\">\n <mat-header-cell *cdkHeaderCellDef>Qty</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n <span>{{ getMaxQtyLeftForRow(row)}}</span>\n </mat-cell>\n </ng-container> -->\n <ng-container cdkColumnDef=\"mode\">\n <mat-header-cell *cdkHeaderCellDef>Mode</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n <span>{{ row.mode?.controller }}</span>\n </mat-cell>\n </ng-container>\n <ng-container cdkColumnDef=\"unit_price\">\n <mat-header-cell *cdkHeaderCellDef>Unit Price</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n {{ formatCurrency(row.unit_price, row.currency) }}\n </mat-cell>\n </ng-container>\n <ng-container cdkColumnDef=\"percentage\">\n <mat-header-cell *cdkHeaderCellDef>Job %</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n {{ row.work_percentage | percent }}\n </mat-cell>\n </ng-container>\n\n <ng-container cdkColumnDef=\"qty\">\n <mat-header-cell *cdkHeaderCellDef>Out / In</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n {{ row.out }} / {{ !row.in ? 0 : row.in }}\n </mat-cell>\n </ng-container>\n\n <ng-container cdkColumnDef=\"in\">\n <mat-header-cell *cdkHeaderCellDef>Qty In</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n {{ !row.in ? 0 : row.in }}\n </mat-cell>\n </ng-container>\n\n <ng-container cdkColumnDef=\"finish\">\n <mat-header-cell *cdkHeaderCellDef>Qty Finish</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n {{ row.finish }}\n </mat-cell>\n </ng-container>\n\n <ng-container cdkColumnDef=\"status\">\n <mat-header-cell *cdkHeaderCellDef>Status</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n {{ row.line_status?.name }}\n </mat-cell>\n </ng-container>\n\n <ng-container cdkColumnDef=\"total\">\n <mat-header-cell *cdkHeaderCellDef>Total</mat-header-cell>\n <mat-cell *cdkCellDef=\"let row\">\n <span>{{ formatCurrency(row.value, row.currency) }}</span>\n </mat-cell>\n </ng-container>\n\n <ng-container cdkColumnDef=\"actions\">\n <mat-header-cell [ngClass]=\"'pieceworkActionColumn'\" *cdkHeaderCellDef\n >Actions</mat-header-cell\n >\n <mat-cell [ngClass]=\"'pieceworkActionColumn'\" *cdkCellDef=\"let row\">\n <ng-container *ngIf=\"row.piecework_line_status_id == 1\">\n <div fxLayout=\"row\" fxLayoutGap=\"8px\" fxLayoutAlign=\"start center\">\n <kendo-numerictextbox\n [format]=\"'n0'\"\n style=\"width: 100%\"\n [min]=\"1\"\n [(ngModel)]=\"row.formIn\"\n [name]=\"'in_' + row.id\"\n [max]=\"getMax(row)\"\n type=\"number\"></kendo-numerictextbox>\n <mat-checkbox\n matTooltip=\"Finish\"\n [matTooltipPosition]=\"'above'\"\n fxFlexAlign=\"center\"\n [name]=\"'finish_' + row.id\"\n [(ngModel)]=\"row.formFinish\">\n </mat-checkbox>\n <button\n [disabled]=\"row.in == row.out || row.formIn > row.out - row.in\"\n matTooltip=\"Save\"\n (click)=\"registerIn(row, row.formIn, row.formFinish)\"\n [matTooltipPosition]=\"'above'\"\n mat-icon-button\n color=\"warn\"\n aria-label=\"Example icon button with a heart icon\">\n <mat-icon>save</mat-icon>\n </button>\n </div>\n </ng-container>\n <ng-container *ngIf=\"row.piecework_line_status_id == 2\">\n <span>Line finished</span>\n </ng-container>\n </mat-cell>\n </ng-container>\n\n <mat-header-row *cdkHeaderRowDef=\"displayedColumns\"></mat-header-row>\n <mat-row *cdkRowDef=\"let row; columns: displayedColumns\"></mat-row>\n </mat-table>\n <mat-paginator\n #paginator\n [length]=\"total$ | async\"\n [pageIndex]=\"0\"\n (page)=\"changePage($event)\"\n [pageSize]=\"10\"\n [pageSizeOptions]=\"[5, 10, 25, 100]\">\n </mat-paginator>\n</div>\n", styles: [":host{padding:10px;display:flex;flex-direction:column}.spacer{flex-grow:1}.pieceworkActionColumn{flex:0 0 350px;padding-left:0!important}\n"] }]
485
- }], ctorParameters: function () { return [{ type: i1$1.ModeControllerService }, { type: i1$1.UserControllerService }, { type: i4.Store }, { type: i0.ChangeDetectorRef }, { type: i3.MatDialog }, { type: i1$1.PieceWorkLineStatusControllerControllerService }, { type: i1$1.PieceWorkLineControllerService }]; }, propDecorators: { pieceworks$: [], total$: [], state$: [] } });
486
- class FormatTime {
487
- convertTime(input, separator) {
488
- const pad = input => {
489
- return input < 10 ? '0' + input : input;
490
- };
491
- return [
492
- pad(Math.floor(input / 3600)),
493
- pad(Math.floor((input % 3600) / 60)),
494
- pad(Math.floor(input % 60)),
495
- ].join(typeof separator !== 'undefined' ? separator : ':');
496
- }
497
- transform(value) {
498
- return value ? this.convertTime(value, ':') : '00:00:00';
499
- }
500
- }
501
- FormatTime.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: FormatTime, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
502
- FormatTime.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: FormatTime, name: "formatTime" });
503
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: FormatTime, decorators: [{
504
- type: Pipe,
505
- args: [{ name: 'formatTime' }]
506
- }] });
507
-
508
- class WidgetPieceworkInModule {
509
- }
510
- WidgetPieceworkInModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: WidgetPieceworkInModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
511
- WidgetPieceworkInModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.1", ngImport: i0, type: WidgetPieceworkInModule, declarations: [WidgetPieceworkInComponent,
512
- FormatTime,
513
- PieceWorkInForm,
514
- PieceworkInConfigModal], imports: [CommonModule,
515
- FlexLayoutModule,
516
- MatDialogModule,
517
- CdkTableModule,
518
- MatTableModule,
519
- MatButtonModule,
520
- MatCheckboxModule,
521
- MatPaginatorModule,
522
- MatIconModule,
523
- FormsModule,
524
- InputsModule,
525
- MatTooltipModule,
526
- DropDownsModule,
527
- InputsModule,
528
- FormsModule,
529
- SwitchModule, i4.ɵy, i2.DynamicComponentLoaderModule], exports: [WidgetPieceworkInComponent] });
530
- WidgetPieceworkInModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: WidgetPieceworkInModule, imports: [CommonModule,
531
- FlexLayoutModule,
532
- MatDialogModule,
533
- CdkTableModule,
534
- MatTableModule,
535
- MatButtonModule,
536
- MatCheckboxModule,
537
- MatPaginatorModule,
538
- MatIconModule,
539
- FormsModule,
540
- InputsModule,
541
- MatTooltipModule,
542
- DropDownsModule,
543
- InputsModule,
544
- FormsModule,
545
- SwitchModule,
546
- NgxsModule.forFeature([PieceWorkFrontState, PieceWorkState]),
547
- DynamicComponentLoaderModule.forChild(WidgetPieceworkInComponent)] });
548
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.1", ngImport: i0, type: WidgetPieceworkInModule, decorators: [{
549
- type: NgModule,
550
- args: [{
551
- declarations: [
552
- WidgetPieceworkInComponent,
553
- FormatTime,
554
- PieceWorkInForm,
555
- PieceworkInConfigModal,
556
- ],
557
- imports: [
558
- CommonModule,
559
- FlexLayoutModule,
560
- MatDialogModule,
561
- CdkTableModule,
562
- MatTableModule,
563
- MatButtonModule,
564
- MatCheckboxModule,
565
- MatPaginatorModule,
566
- MatIconModule,
567
- FormsModule,
568
- InputsModule,
569
- MatTooltipModule,
570
- DropDownsModule,
571
- InputsModule,
572
- FormsModule,
573
- SwitchModule,
574
- NgxsModule.forFeature([PieceWorkFrontState, PieceWorkState]),
575
- DynamicComponentLoaderModule.forChild(WidgetPieceworkInComponent),
576
- ],
577
- exports: [WidgetPieceworkInComponent],
578
- }]
579
- }] });
580
-
581
- /*
582
- * Public API Surface of widget-piecework-in
583
- */
584
-
585
- /**
586
- * Generated bundle index. Do not edit.
587
- */
588
-
589
- export { FormatTime, WidgetPieceworkInComponent, WidgetPieceworkInModule };
590
- //# sourceMappingURL=barcoding-widget-piecework-in.mjs.map