@barcoding/widget-piecework-in 0.0.1

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.
@@ -0,0 +1,576 @@
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 i4$1 from '@progress/kendo-angular-inputs';
19
+ import { InputsModule, SwitchModule } from '@progress/kendo-angular-inputs';
20
+ import * as i6 from '@angular/material/checkbox';
21
+ import { MatCheckboxModule } from '@angular/material/checkbox';
22
+ import * as i7 from '@angular/material/button';
23
+ import { MatButtonModule } from '@angular/material/button';
24
+ import * as i8 from '@angular/flex-layout/flex';
25
+ import * as i9 from '@angular/forms';
26
+ import { FormsModule } from '@angular/forms';
27
+ import { ModuleState } from '@barcoding/core';
28
+ import * as i6$1 from '@angular/material/icon';
29
+ import { MatIconModule } from '@angular/material/icon';
30
+ import * as i7$1 from '@progress/kendo-angular-dropdowns';
31
+ import { DropDownsModule } from '@progress/kendo-angular-dropdowns';
32
+ import * as i10 from '@angular/material/paginator';
33
+ import { MatPaginatorModule } from '@angular/material/paginator';
34
+ import * as i13 from '@angular/material/tooltip';
35
+ import { MatTooltipModule } from '@angular/material/tooltip';
36
+ import * as i14 from '@angular/cdk/table';
37
+ import { CdkTableModule } from '@angular/cdk/table';
38
+ import * as i15 from '@angular/common';
39
+ import { CommonModule } from '@angular/common';
40
+ import * as i16 from '@angular/flex-layout/extended';
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: "13.3.9", 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: "12.0.0", version: "13.3.9", 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 color=\"danger\">Cancel</button>\n <button\n (click)=\"save(qty_in, finish)\"\n [disabled]=\"!pieceWork.valid\"\n mat-raised-button\n class=\"save_button\"\n color=\"primary\">\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"], components: [{ type: i4$1.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"] }, { type: i6.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { type: i7.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i8.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"] }, { type: i8.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"] }, { type: i9.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i9.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i9.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i8.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"] }, { type: i8.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"] }, { type: i9.RequiredValidator, selector: ":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]", inputs: ["required"] }, { type: i9.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i9.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i8.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"] }] });
96
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PieceWorkInForm, decorators: [{
97
+ type: Component,
98
+ args: [{ selector: 'piece-work-in-form', styles: [
99
+ `
100
+ kendo-textbox-container {
101
+ width: 100%;
102
+ }
103
+
104
+ .h_t {
105
+ font: normal normal normal 10px/40px IBM Plex Sans;
106
+ letter-spacing: 0px;
107
+ color: #666666;
108
+ opacity: 1;
109
+ }
110
+
111
+ .v_t {
112
+ font: normal normal normal 18px/40px IBM Plex Sans;
113
+ letter-spacing: 0px;
114
+ color: #666666;
115
+ opacity: 1;
116
+ }
117
+
118
+ .spacer {
119
+ display: flex;
120
+ flex-grow: 1;
121
+ }
122
+ `,
123
+ ], 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 color=\"danger\">Cancel</button>\n <button\n (click)=\"save(qty_in, finish)\"\n [disabled]=\"!pieceWork.valid\"\n mat-raised-button\n class=\"save_button\"\n color=\"primary\">\n Save\n </button>\n</div>\n" }]
124
+ }], ctorParameters: function () { return [{ type: i1.FocusService }, { type: i1$1.PieceWorkLineControllerService }, { type: i3.MatDialogRef }, { type: i4.Store }, { type: undefined, decorators: [{
125
+ type: Inject,
126
+ args: [MAT_DIALOG_DATA]
127
+ }] }]; } });
128
+
129
+ class PieceworkInConfigModal {
130
+ constructor(dialogRef, data) {
131
+ this.dialogRef = dialogRef;
132
+ this.data = data;
133
+ this.config = {};
134
+ this.config = Object.assign({}, data.currentConfig);
135
+ }
136
+ ngOnInit() { }
137
+ save(config) {
138
+ this.dialogRef.close(config);
139
+ }
140
+ onNoClick() {
141
+ this.dialogRef.close();
142
+ }
143
+ }
144
+ PieceworkInConfigModal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PieceworkInConfigModal, deps: [{ token: i3.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
145
+ PieceworkInConfigModal.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", 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'\"\n ></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 >\n <button fxFlex (click)=\"onNoClick()\" mat-raised-button>Cancel</button>\n <button\n fxFlex\n [disabled]=\"!configForm.form.valid\"\n (click)=\"save(config)\"\n color=\"primary\"\n mat-raised-button\n >\n Save\n </button>\n </div>\n </div>\n</form>\n", styles: [".mat-tab-body-wrapper{flex-grow:1}.mat-tab-body{display:flex!important;flex-direction:column}.mat-tab-body-content{display:flex;flex-direction:column;flex-grow:1}mat-form-field{margin-top:20px}\n"], components: [{ type: i4$1.SwitchComponent, selector: "kendo-switch", inputs: ["focusableId", "onLabel", "offLabel", "checked", "disabled", "readonly", "tabindex", "size", "thumbRounded", "trackRounded", "tabIndex"], outputs: ["focus", "blur", "valueChange"], exportAs: ["kendoSwitch"] }, { type: i7.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }], directives: [{ type: i9.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i9.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i9.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i8.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"] }, { type: i8.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"] }, { type: i8.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"] }, { type: i9.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i9.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i8.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"] }] });
146
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: PieceworkInConfigModal, decorators: [{
147
+ type: Component,
148
+ 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'\"\n ></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 >\n <button fxFlex (click)=\"onNoClick()\" mat-raised-button>Cancel</button>\n <button\n fxFlex\n [disabled]=\"!configForm.form.valid\"\n (click)=\"save(config)\"\n color=\"primary\"\n mat-raised-button\n >\n Save\n </button>\n </div>\n </div>\n</form>\n", styles: [".mat-tab-body-wrapper{flex-grow:1}.mat-tab-body{display:flex!important;flex-direction:column}.mat-tab-body-content{display:flex;flex-direction:column;flex-grow:1}mat-form-field{margin-top:20px}\n"] }]
149
+ }], ctorParameters: function () { return [{ type: i3.MatDialogRef }, { type: undefined, decorators: [{
150
+ type: Inject,
151
+ args: [MAT_DIALOG_DATA]
152
+ }] }]; } });
153
+
154
+ class WidgetPieceworkInComponent extends ConfigInterfaceDashboard {
155
+ constructor(modeApi, userApi, store, cdr, dialog, statusesApi, pieceWorkLineApi) {
156
+ super(dialog, PieceworkInConfigModal, store, '60%');
157
+ this.modeApi = modeApi;
158
+ this.userApi = userApi;
159
+ this.store = store;
160
+ this.cdr = cdr;
161
+ this.dialog = dialog;
162
+ this.statusesApi = statusesApi;
163
+ this.pieceWorkLineApi = pieceWorkLineApi;
164
+ this.configChanged$ = new Subject();
165
+ this.isAdmin = false;
166
+ this.filters = {
167
+ logic: 'and',
168
+ filters: [
169
+ {
170
+ field: 'piecework_line_status_id',
171
+ value: 1,
172
+ },
173
+ ],
174
+ };
175
+ this.displayedColumns = [
176
+ 'pw_line',
177
+ 'employee',
178
+ 'document',
179
+ 'assembly',
180
+ 'mode',
181
+ 'unit_price',
182
+ 'percentage',
183
+ 'qty',
184
+ 'in',
185
+ 'finish',
186
+ 'total',
187
+ 'status',
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
+ const filters = {
267
+ logic: 'and',
268
+ filters: [
269
+ {
270
+ field: 'piecework_line_status_id',
271
+ value: 1,
272
+ },
273
+ {
274
+ field: 'user_id',
275
+ value: currentUser.id,
276
+ },
277
+ ],
278
+ };
279
+ this.store.dispatch(new ChangeStatePieceWork({
280
+ skip: 0,
281
+ sort: [{ field: 'id', dir: 'desc' }],
282
+ take: 10,
283
+ filter: filters,
284
+ }));
285
+ }
286
+ if (this.isAdmin) {
287
+ this.displayedColumns = [
288
+ 'pw_line',
289
+ 'employee',
290
+ 'document',
291
+ 'mode',
292
+ 'percentage',
293
+ 'qty',
294
+ 'finish',
295
+ 'total',
296
+ 'status',
297
+ 'actions',
298
+ ]; // column display value
299
+ }
300
+ /**
301
+ * example set filter outside
302
+ */
303
+ // setTimeout(() => {
304
+ // const filters: CompositeFilterDescriptor = {
305
+ // logic: 'and',
306
+ // filters: [
307
+ // {
308
+ // operator: 'eq',
309
+ // field: 'piecework_id',
310
+ // value: 202,
311
+ // },
312
+ // ],
313
+ // };
314
+ // this.store.dispatch(
315
+ // new ChangeStatePieceWork({
316
+ // skip: 0,
317
+ // sort: [{ field: 'id', dir: 'desc' }],
318
+ // take: 10,
319
+ // filter: filters,
320
+ // })
321
+ // );
322
+ // }, 8000);
323
+ this.pieceworkSubscription = this.pieceworks$.subscribe(_ => {
324
+ const data = _.map(value => {
325
+ return {
326
+ ...value,
327
+ formIn: value.out - value.in,
328
+ };
329
+ });
330
+ this.dataSource = new MatTableDataSource(data);
331
+ });
332
+ }
333
+ getMax(row) {
334
+ return row.out - row.in;
335
+ }
336
+ registerIn(row, qty_in, finish) {
337
+ console.log(row, qty_in);
338
+ this.pieceWorkLineApi
339
+ .find({
340
+ filter: JSON.stringify({
341
+ where: { piecework_id: row.piecework_id },
342
+ }),
343
+ })
344
+ .subscribe(lines => {
345
+ let isFinished = false;
346
+ const totalLines = lines.length;
347
+ let totalFinishedLines = 0;
348
+ lines.forEach(line => {
349
+ if (line.piecework_line_status_id === 2) {
350
+ totalFinishedLines++;
351
+ }
352
+ });
353
+ if (qty_in === row.out) {
354
+ totalFinishedLines++;
355
+ }
356
+ if (totalFinishedLines === totalLines) {
357
+ isFinished = true;
358
+ }
359
+ const user_id = this.store.selectSnapshot(AuthState.user).id;
360
+ const finishObject = finish ? qty_in : 0;
361
+ this.store.dispatch(new PieceWorkCollect(row.piecework_id, qty_in, row.id, user_id, finishObject, isFinished));
362
+ });
363
+ }
364
+ buildBarcodeList(value) {
365
+ this.barcodes = value
366
+ .split('\n')
367
+ .filter(value => value != null && value.length > 0)
368
+ .map(value => value.trim());
369
+ console.log(this.barcodes);
370
+ }
371
+ valueChange(field, event) {
372
+ console.log(`valueChange: ${field}, ${event}`);
373
+ if (!this.filters.filters) {
374
+ this.filters.filters = [];
375
+ }
376
+ const filterExists = this.filters.filters.findIndex((value) => value.field === field);
377
+ if (filterExists >= 0) {
378
+ this.filters.filters[filterExists].value = event;
379
+ }
380
+ else {
381
+ this.filters.filters.push({
382
+ operator: 'eq',
383
+ field,
384
+ value: event,
385
+ });
386
+ }
387
+ this.store.dispatch(new ChangeStatePieceWork({
388
+ skip: 0,
389
+ sort: [{ field: 'id', dir: 'desc' }],
390
+ take: 10,
391
+ filter: this.filters,
392
+ }));
393
+ }
394
+ filterChange(event) {
395
+ if (event) {
396
+ this.userApi
397
+ .find({
398
+ filter: JSON.stringify({
399
+ limit: 5,
400
+ where: { full_name: { like: `%${event}%` } },
401
+ }),
402
+ })
403
+ .subscribe(_ => {
404
+ this.users = _;
405
+ });
406
+ }
407
+ }
408
+ ngOnDestroy() {
409
+ if (this.pieceworkSubscription) {
410
+ this.pieceworkSubscription.unsubscribe();
411
+ }
412
+ if (this.myConfigSubscription) {
413
+ this.myConfigSubscription.unsubscribe();
414
+ }
415
+ if (this.objectSubscription) {
416
+ this.objectSubscription.unsubscribe();
417
+ }
418
+ if (this.stateSubscription) {
419
+ this.stateSubscription.unsubscribe();
420
+ }
421
+ this.store.dispatch(new ResetStorePieceWork());
422
+ super.destroy();
423
+ }
424
+ openInForm(row) {
425
+ const dialogRef = this.dialog.open(PieceWorkInForm, {
426
+ width: '40%',
427
+ data: { line: row },
428
+ });
429
+ dialogRef.afterClosed().subscribe(data => {
430
+ if (data) {
431
+ const user_id = this.store.selectSnapshot(AuthState.user).id;
432
+ const finish = data.finish ? data.qty_in : 0;
433
+ this.store.dispatch(new PieceWorkCollect(row.piecework_id, data.qty_in, row.id, user_id, finish, data.isFinished));
434
+ }
435
+ });
436
+ }
437
+ changePage(event) {
438
+ const take = event.pageSize;
439
+ const skip = event.pageIndex > 0 ? event.pageIndex * event.pageSize : 0;
440
+ this.store.dispatch(new ChangeStatePieceWork({
441
+ skip,
442
+ sort: [{ field: 'id', dir: 'desc' }],
443
+ take,
444
+ filter: this.filters,
445
+ }));
446
+ }
447
+ formatCurrency(value, currency) {
448
+ const region = currency.region;
449
+ const symbol = currency.symbol;
450
+ return value
451
+ ? value.toLocaleString(region, { style: 'currency', currency: symbol })
452
+ : 0;
453
+ }
454
+ }
455
+ WidgetPieceworkInComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", 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 });
456
+ WidgetPieceworkInComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.9", type: WidgetPieceworkInComponent, selector: "widget-piece-work-in", usesInheritance: true, ngImport: i0, template: "<div fxLayout=\"column\" fxLayoutGap=\"20px\">\n <label 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 >\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 >\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 />\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 >\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 >\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 >\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]=\"'actionColumn'\" *cdkHeaderCellDef\n >Actions</mat-header-cell\n >\n <mat-cell [ngClass]=\"'actionColumn'\" *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\"\n ></kendo-numerictextbox>\n <mat-checkbox\n matTooltip=\"Finish\"\n [matTooltipPosition]=\"'above'\"\n fxFlexAlign=\"center\"\n [name]=\"'finish_' + row.id\"\n [(ngModel)]=\"row.formFinish\"\n >\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 >\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 >\n </mat-paginator>\n</div>\n", styles: [":host{padding:10px;display:flex;flex-direction:column}.spacer{flex-grow:1}.actionColumn{flex:0 0 250px;padding-left:0!important}\n"], components: [{ type: i4$1.TextAreaComponent, selector: "kendo-textarea", inputs: ["focusableId", "flow", "rows", "cols", "maxlength", "tabindex", "tabIndex", "resizable", "size", "rounded", "fillMode"], outputs: ["focus", "blur", "valueChange"], exportAs: ["kendoTextArea"] }, { type: i7.MatButton, selector: "button[mat-button], button[mat-raised-button], button[mat-icon-button], button[mat-fab], button[mat-mini-fab], button[mat-stroked-button], button[mat-flat-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { type: i6$1.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { type: i7$1.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"] }, { type: i7$1.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"] }, { type: i8$1.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { type: i4$1.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"] }, { type: i6.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex", "aria-label", "aria-labelledby", "aria-describedby", "id", "required", "labelPosition", "name", "value", "checked", "disabled", "indeterminate"], outputs: ["change", "indeterminateChange"], exportAs: ["matCheckbox"] }, { type: i8$1.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { type: i8$1.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { type: i10.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }], directives: [{ type: i8.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"] }, { type: i8.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"] }, { type: i8.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"] }, { type: i9.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i9.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i9.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: i8.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"] }, { type: i13.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { type: i4$1.TextBoxDirective, selector: "input[kendoTextBox]", inputs: ["value"] }, { type: i14.CdkColumnDef, selector: "[cdkColumnDef]", inputs: ["sticky", "cdkColumnDef", "stickyEnd"] }, { type: i14.CdkHeaderCellDef, selector: "[cdkHeaderCellDef]" }, { type: i8$1.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { type: i14.CdkCellDef, selector: "[cdkCellDef]" }, { type: i8$1.MatCell, selector: "mat-cell, td[mat-cell]" }, { type: i15.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i16.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"] }, { type: i15.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i9.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i9.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i8.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"] }, { type: i14.CdkHeaderRowDef, selector: "[cdkHeaderRowDef]", inputs: ["cdkHeaderRowDef", "cdkHeaderRowDefSticky"] }, { type: i14.CdkRowDef, selector: "[cdkRowDef]", inputs: ["cdkRowDefColumns", "cdkRowDefWhen"] }], pipes: { "percent": i15.PercentPipe, "async": i15.AsyncPipe } });
457
+ __decorate([
458
+ Select(PieceWorkState.pieceworks)
459
+ ], WidgetPieceworkInComponent.prototype, "pieceworks$", void 0);
460
+ __decorate([
461
+ Select(PieceWorkState.total)
462
+ ], WidgetPieceworkInComponent.prototype, "total$", void 0);
463
+ __decorate([
464
+ Select(PieceWorkState.state)
465
+ ], WidgetPieceworkInComponent.prototype, "state$", void 0);
466
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: WidgetPieceworkInComponent, decorators: [{
467
+ type: Component,
468
+ args: [{ selector: 'widget-piece-work-in', template: "<div fxLayout=\"column\" fxLayoutGap=\"20px\">\n <label 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 >\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 >\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 />\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 >\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 >\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 >\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]=\"'actionColumn'\" *cdkHeaderCellDef\n >Actions</mat-header-cell\n >\n <mat-cell [ngClass]=\"'actionColumn'\" *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\"\n ></kendo-numerictextbox>\n <mat-checkbox\n matTooltip=\"Finish\"\n [matTooltipPosition]=\"'above'\"\n fxFlexAlign=\"center\"\n [name]=\"'finish_' + row.id\"\n [(ngModel)]=\"row.formFinish\"\n >\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 >\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 >\n </mat-paginator>\n</div>\n", styles: [":host{padding:10px;display:flex;flex-direction:column}.spacer{flex-grow:1}.actionColumn{flex:0 0 250px;padding-left:0!important}\n"] }]
469
+ }], 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$: [] } });
470
+ class FormatTime {
471
+ convertTime(input, separator) {
472
+ const pad = input => {
473
+ return input < 10 ? '0' + input : input;
474
+ };
475
+ return [
476
+ pad(Math.floor(input / 3600)),
477
+ pad(Math.floor((input % 3600) / 60)),
478
+ pad(Math.floor(input % 60)),
479
+ ].join(typeof separator !== 'undefined' ? separator : ':');
480
+ }
481
+ transform(value) {
482
+ return value ? this.convertTime(value, ':') : '00:00:00';
483
+ }
484
+ }
485
+ FormatTime.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: FormatTime, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
486
+ FormatTime.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: FormatTime, name: "formatTime" });
487
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: FormatTime, decorators: [{
488
+ type: Pipe,
489
+ args: [{ name: 'formatTime' }]
490
+ }] });
491
+
492
+ class WidgetPieceworkInModule {
493
+ }
494
+ WidgetPieceworkInModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: WidgetPieceworkInModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
495
+ WidgetPieceworkInModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: WidgetPieceworkInModule, declarations: [WidgetPieceworkInComponent,
496
+ FormatTime,
497
+ PieceWorkInForm,
498
+ PieceworkInConfigModal], imports: [CommonModule,
499
+ FlexLayoutModule,
500
+ MatDialogModule,
501
+ CdkTableModule,
502
+ MatTableModule,
503
+ MatButtonModule,
504
+ MatCheckboxModule,
505
+ MatPaginatorModule,
506
+ MatIconModule,
507
+ FormsModule,
508
+ InputsModule,
509
+ MatTooltipModule,
510
+ DropDownsModule,
511
+ InputsModule,
512
+ FormsModule,
513
+ SwitchModule, i4.ɵbc, i2.DynamicComponentLoaderModule], exports: [WidgetPieceworkInComponent] });
514
+ WidgetPieceworkInModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: WidgetPieceworkInModule, imports: [[
515
+ CommonModule,
516
+ FlexLayoutModule,
517
+ MatDialogModule,
518
+ CdkTableModule,
519
+ MatTableModule,
520
+ MatButtonModule,
521
+ MatCheckboxModule,
522
+ MatPaginatorModule,
523
+ MatIconModule,
524
+ FormsModule,
525
+ InputsModule,
526
+ MatTooltipModule,
527
+ DropDownsModule,
528
+ InputsModule,
529
+ FormsModule,
530
+ SwitchModule,
531
+ NgxsModule.forFeature([PieceWorkFrontState, PieceWorkState]),
532
+ DynamicComponentLoaderModule.forChild(WidgetPieceworkInComponent),
533
+ ]] });
534
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.9", ngImport: i0, type: WidgetPieceworkInModule, decorators: [{
535
+ type: NgModule,
536
+ args: [{
537
+ declarations: [
538
+ WidgetPieceworkInComponent,
539
+ FormatTime,
540
+ PieceWorkInForm,
541
+ PieceworkInConfigModal,
542
+ ],
543
+ imports: [
544
+ CommonModule,
545
+ FlexLayoutModule,
546
+ MatDialogModule,
547
+ CdkTableModule,
548
+ MatTableModule,
549
+ MatButtonModule,
550
+ MatCheckboxModule,
551
+ MatPaginatorModule,
552
+ MatIconModule,
553
+ FormsModule,
554
+ InputsModule,
555
+ MatTooltipModule,
556
+ DropDownsModule,
557
+ InputsModule,
558
+ FormsModule,
559
+ SwitchModule,
560
+ NgxsModule.forFeature([PieceWorkFrontState, PieceWorkState]),
561
+ DynamicComponentLoaderModule.forChild(WidgetPieceworkInComponent),
562
+ ],
563
+ exports: [WidgetPieceworkInComponent],
564
+ }]
565
+ }] });
566
+
567
+ /*
568
+ * Public API Surface of widget-piecework-in
569
+ */
570
+
571
+ /**
572
+ * Generated bundle index. Do not edit.
573
+ */
574
+
575
+ export { FormatTime, WidgetPieceworkInComponent, WidgetPieceworkInModule };
576
+ //# sourceMappingURL=barcoding-widget-piecework-in.mjs.map