@colijnit/sharedcomponents 254.1.1 → 254.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/3rdpartylicenses.txt +1408 -0
- package/bundles/colijnit-sharedcomponents.umd.js +701 -179
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.d.ts +2 -0
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/colijnit-sharedcomponents.js +3 -1
- package/esm2015/lib/components/activity-list/activity-list.component.js +7 -3
- package/esm2015/lib/components/activity-overview-component/component-activity-overview.component.js +8 -7
- package/esm2015/lib/components/activity-overview-component/components/base-activity-overview.component.js +15 -21
- package/esm2015/lib/components/modify-task-form/components/base-activity-summary.component.js +8 -10
- package/esm2015/lib/components/modify-task-form/components/creation-summary-block/creation-summary-block.component.js +2 -2
- package/esm2015/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.component.js +5 -5
- package/esm2015/lib/components/modify-task-form/components/notification-summary-block/notification-summary-block.component.js +2 -2
- package/esm2015/lib/components/modify-task-form/components/status-summary-block/status-summary-block.component.js +7 -4
- package/esm2015/lib/components/modify-task-form/components/task-details/task-details.component.js +7 -4
- package/esm2015/lib/components/modify-task-form/modify-task-form.component.js +39 -13
- package/esm2015/lib/components/modify-task-form/modify-task-form.module.js +10 -3
- package/esm2015/lib/components/open-activity-list/component-activity-list.component.js +48 -57
- package/esm2015/lib/components/open-activity-list/components/base-open-activity-list.component.js +5 -3
- package/esm2015/lib/components/simple-tags/simple-tags.component.js +5 -147
- package/esm2015/lib/components/simple-tags/simple-tags.module.js +4 -2
- package/esm2015/lib/components/simple-tags-form/simple-tags-form.component.js +196 -0
- package/esm2015/lib/components/simple-tags-form/simple-tags-form.module.js +26 -0
- package/esm2015/lib/components/stock/components/stock-location/components/stock-location-popup/stock-location-popup.component.js +3 -3
- package/esm2015/lib/components/stock/components/stock-location/stock-location.component.js +28 -2
- package/esm2015/lib/components/stock/localization/translation.js +3 -1
- package/esm2015/lib/components/stock/stock-tabs/stock-tabs.component.js +7 -2
- package/esm2015/lib/components/stock/stock-transfer/stock-transfer.component.js +144 -85
- package/esm2015/lib/components/stock/stock.component.js +11 -42
- package/esm2015/lib/components/stock/stock.module.js +4 -3
- package/esm2015/lib/components/task-modifyer/task-modifier.component.js +9 -9
- package/esm2015/lib/components/workflow-info-tiles/components/workflow-info-tile.component.js +45 -0
- package/esm2015/lib/components/workflow-info-tiles/components/workflow-info-tile.module.js +22 -0
- package/esm2015/lib/components/workflow-info-tiles/workflow-info-tiles.component.js +55 -0
- package/esm2015/lib/components/workflow-info-tiles/workflow-info-tiles.module.js +22 -0
- package/esm2015/lib/enum/icon.enum.js +1 -1
- package/esm2015/lib/model/icon-svg.js +1 -1
- package/esm2015/lib/service/shared-connector.service.js +93 -1
- package/esm2015/lib/service/shared.service.js +44 -1
- package/esm2015/public-api.js +5 -1
- package/favicon.ico +0 -0
- package/fesm2015/colijnit-sharedcomponents.js +765 -349
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/index.html +12 -0
- package/lib/components/activity-list/style/_layout.scss +17 -6
- package/lib/components/activity-overview-component/component-activity-overview.component.d.ts +3 -1
- package/lib/components/activity-overview-component/components/base-activity-overview.component.d.ts +3 -8
- package/lib/components/modify-task-form/components/base-activity-summary.component.d.ts +3 -4
- package/lib/components/modify-task-form/components/executive-summary-block/executive-summary-block.component.d.ts +2 -2
- package/lib/components/modify-task-form/components/status-summary-block/status-summary-block.component.d.ts +3 -1
- package/lib/components/modify-task-form/components/task-details/task-details.component.d.ts +3 -1
- package/lib/components/modify-task-form/modify-task-form.component.d.ts +9 -4
- package/lib/components/modify-task-form/style/_layout.scss +4 -0
- package/lib/components/open-activity-list/component-activity-list.component.d.ts +10 -11
- package/lib/components/open-activity-list/components/base-open-activity-list.component.d.ts +2 -0
- package/lib/components/simple-tags/simple-tags.component.d.ts +1 -8
- package/lib/components/simple-tags-form/simple-tags-form.component.d.ts +29 -0
- package/lib/components/simple-tags-form/simple-tags-form.module.d.ts +2 -0
- package/lib/components/simple-tags-form/style/_layout.scss +257 -0
- package/lib/components/simple-tags-form/style/_material-definition.scss +39 -0
- package/lib/components/simple-tags-form/style/_theme.scss +4 -0
- package/lib/components/simple-tags-form/style/material.scss +4 -0
- package/lib/components/stock/components/stock-location/stock-location.component.d.ts +7 -1
- package/lib/components/stock/localization/translation.d.ts +2 -0
- package/lib/components/stock/stock-tabs/stock-tabs.component.d.ts +2 -0
- package/lib/components/stock/stock-transfer/stock-transfer.component.d.ts +19 -6
- package/lib/components/stock/stock.component.d.ts +3 -0
- package/lib/components/stock/style/_layout.scss +64 -31
- package/lib/components/task-modifyer/task-modifier.component.d.ts +3 -5
- package/lib/components/workflow-info-tiles/components/style/_layout.scss +49 -0
- package/lib/components/workflow-info-tiles/components/style/_material-definition.scss +0 -0
- package/lib/components/workflow-info-tiles/components/style/_theme.scss +4 -0
- package/lib/components/workflow-info-tiles/components/style/material.scss +4 -0
- package/lib/components/workflow-info-tiles/components/workflow-info-tile.component.d.ts +15 -0
- package/lib/components/workflow-info-tiles/components/workflow-info-tile.module.d.ts +2 -0
- package/lib/components/workflow-info-tiles/style/_layout.scss +16 -0
- package/lib/components/workflow-info-tiles/style/_material-definition.scss +0 -0
- package/lib/components/workflow-info-tiles/style/_theme.scss +4 -0
- package/lib/components/workflow-info-tiles/style/material.scss +4 -0
- package/lib/components/workflow-info-tiles/workflow-info-tiles.component.d.ts +21 -0
- package/lib/components/workflow-info-tiles/workflow-info-tiles.module.d.ts +2 -0
- package/lib/service/shared-connector.service.d.ts +10 -0
- package/lib/service/shared.service.d.ts +12 -0
- package/lib/style/_variables.scss +2 -0
- package/main.b62bfdc80736ecda90e4.js +1 -0
- package/package.json +2 -1
- package/polyfills.907fe9d1887c5de17993.js +1 -0
- package/public-api.d.ts +4 -0
- package/runtime.8aac21847ed3d3829cca.js +1 -0
- package/styles.051675db76590b099897.css +1 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/animations'), require('pdf-lib'), require('pdfjs-dist/legacy/build/pdf'), require('pdfjs-dist/build/pdf.worker.entry'), require('@angular/common'), require('signature_pad'), require('@colijnit/articleapi/build/articles'), require('@colijnit/sharedapi/build/sharedapi'), require('@colijnit/articleapi/build/model/article-stock.bo'), require('@colijnit/articleapi/build/model/stock-history.bo'), require('@colijnit/articleapi/build/model/article-details.bo'), require('@colijnit/articleapi/build/model/stock-status.bo'), require('@colijnit/articleapi/build/model/stock-management-warehouses.bo'), require('@colijnit/articleapi/build/model/stock-location.bo'), require('@colijnit/articleapi/build/model/article-transaction.bo'), require('rxjs'), require('@colijnit/ioneconnector/build/model/options'), require('@colijnit/mainapi'), require('@colijnit/mainapi/build/model/printer.bo'), require('@colijnit/mainapi/build/model/send-method.bo'), require('@colijnit/ioneconnector/build/service/business-object-factory'), require('@colijnit/mainapi/build/model/tag-tree-item.bo'), require('@colijnit/ioneconnector/build/model/object-configuration'), require('@colijnit/relationapi'), require('@colijnit/relationapi/build/model/relation-list-object.bo'), require('@colijnit/mainapi/build/model/task-category.bo'), require('@colijnit/mainapi/build/model/workflow-process'), require('@colijnit/mainapi/build/model/co-domain-value.bo'), require('@colijnit/mainapi/build/model/role-email-address'), require('@colijnit/mainapi/build/model/activity.bo'), require('@colijnit/sharedapi/build/model/print-stock-stickers'), require('@colijnit/articleapi/build/model/article-extended.bo'), require('@colijnit/articleapi/build/model/article-stock'), require('@colijnit/articleapi/build/model/article-extended-request'), require('@angular/platform-browser'), require('@colijnit/
|
|
3
|
-
typeof define === 'function' && define.amd ? define('@colijnit/sharedcomponents', ['exports', '@angular/core', '@angular/animations', 'pdf-lib', 'pdfjs-dist/legacy/build/pdf', 'pdfjs-dist/build/pdf.worker.entry', '@angular/common', 'signature_pad', '@colijnit/articleapi/build/articles', '@colijnit/sharedapi/build/sharedapi', '@colijnit/articleapi/build/model/article-stock.bo', '@colijnit/articleapi/build/model/stock-history.bo', '@colijnit/articleapi/build/model/article-details.bo', '@colijnit/articleapi/build/model/stock-status.bo', '@colijnit/articleapi/build/model/stock-management-warehouses.bo', '@colijnit/articleapi/build/model/stock-location.bo', '@colijnit/articleapi/build/model/article-transaction.bo', 'rxjs', '@colijnit/ioneconnector/build/model/options', '@colijnit/mainapi', '@colijnit/mainapi/build/model/printer.bo', '@colijnit/mainapi/build/model/send-method.bo', '@colijnit/ioneconnector/build/service/business-object-factory', '@colijnit/mainapi/build/model/tag-tree-item.bo', '@colijnit/ioneconnector/build/model/object-configuration', '@colijnit/relationapi', '@colijnit/relationapi/build/model/relation-list-object.bo', '@colijnit/mainapi/build/model/task-category.bo', '@colijnit/mainapi/build/model/workflow-process', '@colijnit/mainapi/build/model/co-domain-value.bo', '@colijnit/mainapi/build/model/role-email-address', '@colijnit/mainapi/build/model/activity.bo', '@colijnit/sharedapi/build/model/print-stock-stickers', '@colijnit/articleapi/build/model/article-extended.bo', '@colijnit/articleapi/build/model/article-stock', '@colijnit/articleapi/build/model/article-extended-request', '@angular/platform-browser', '@colijnit/
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.sharedcomponents = {}), global.ng.core, global.ng.animations, global.pdfLib, global.PDFJS, global.pdfjsWorker, global.ng.common, global.SignaturePad, global.articles, global.sharedapi, global.articleStock_bo, global.stockHistory_bo, global.articleDetails_bo, global.stockStatus_bo, global.stockManagementWarehouses_bo, global.stockLocation_bo, global.articleTransaction_bo, global.rxjs, global.options, global.mainapi, global.printer_bo, global.sendMethod_bo, global.businessObjectFactory, global.tagTreeItem_bo, global.objectConfiguration, global.relationapi, global.relationListObject_bo, global.taskCategory_bo, global.workflowProcess, global.coDomainValue_bo, global.roleEmailAddress, global.activity_bo, global.printStockStickers, global.articleExtended_bo, global.articleStock, global.articleExtendedRequest, global.ng.platformBrowser, global.
|
|
5
|
-
})(this, (function (exports, i0, animations, pdfLib, PDFJS, pdfjsWorker, common, SignaturePad, articles, sharedapi, articleStock_bo, stockHistory_bo, articleDetails_bo, stockStatus_bo, stockManagementWarehouses_bo, stockLocation_bo, articleTransaction_bo, rxjs, options, mainapi, printer_bo, sendMethod_bo, businessObjectFactory, tagTreeItem_bo, objectConfiguration, relationapi, relationListObject_bo, taskCategory_bo, workflowProcess, coDomainValue_bo, roleEmailAddress, activity_bo, printStockStickers, articleExtended_bo, articleStock, articleExtendedRequest, i1,
|
|
2
|
+
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/animations'), require('pdf-lib'), require('pdfjs-dist/legacy/build/pdf'), require('pdfjs-dist/build/pdf.worker.entry'), require('@angular/common'), require('signature_pad'), require('@colijnit/articleapi/build/articles'), require('@colijnit/sharedapi/build/sharedapi'), require('@colijnit/articleapi/build/model/article-stock.bo'), require('@colijnit/articleapi/build/model/stock-history.bo'), require('@colijnit/articleapi/build/model/article-details.bo'), require('@colijnit/articleapi/build/model/stock-status.bo'), require('@colijnit/articleapi/build/model/stock-management-warehouses.bo'), require('@colijnit/articleapi/build/model/stock-location.bo'), require('@colijnit/articleapi/build/model/article-transaction.bo'), require('rxjs'), require('@colijnit/ioneconnector/build/model/options'), require('@colijnit/mainapi'), require('@colijnit/mainapi/build/model/printer.bo'), require('@colijnit/mainapi/build/model/send-method.bo'), require('@colijnit/ioneconnector/build/service/business-object-factory'), require('@colijnit/mainapi/build/model/tag-tree-item.bo'), require('@colijnit/ioneconnector/build/model/object-configuration'), require('@colijnit/relationapi'), require('@colijnit/relationapi/build/model/relation-list-object.bo'), require('@colijnit/mainapi/build/model/task-category.bo'), require('@colijnit/mainapi/build/model/workflow-process'), require('@colijnit/mainapi/build/model/co-domain-value.bo'), require('@colijnit/mainapi/build/model/role-email-address'), require('@colijnit/mainapi/build/model/activity.bo'), require('@colijnit/mainapi/build/model/workflow-process-info-per-status'), require('@colijnit/sharedapi/build/model/print-stock-stickers'), require('@colijnit/articleapi/build/model/article-extended.bo'), require('@colijnit/articleapi/build/model/article-stock'), require('@colijnit/articleapi/build/model/article-extended-request'), require('@angular/platform-browser'), require('@colijnit/articleapi/build/model/article-stock-management'), require('@colijnit/corecomponents_v12'), require('@colijnit/articleapi/build/model/article-transaction'), require('@colijnit/sharedapi/build/model/print-price-stickers.bo'), require('@colijnit/mainapi/build/model/reporting-document-email-sign-doc-base-request'), require('@colijnit/mainapi/build/model/reporting-document-pdf-base-request'), require('@colijnit/mainapi/build/model/reporting-document-print-sign-doc-base-request'), require('@colijnit/mainapi/build/enum/send-method-type.enum'), require('@colijnit/articleapi/build/model/get-stock-history-request'), require('chart.js'), require('moment'), require('@colijnit/sharedapi/build/enum/refcode/file-type-internal.enum'), require('@angular/cdk/drag-drop'), require('@colijnit/mainapi/build/enum/file-type.enum'), require('@colijnit/sharedapi/build/enum/object-right-type.enum'), require('@colijnit/mainapi/build/utils/file-utils'), require('@colijnit/mainapi/build/model/co-document'), require('@colijnit/mainapi/build/enum/co-document-type.enum'), require('@colijnit/articleapi/build/enum/refcode/document-publication.enum'), require('@colijnit/mainapi/build/model/co-document-right'), require('@colijnit/sharedapi/build/utils/array-utils'), require('@angular/cdk/overlay'), require('@colijnit/articleapi/build/enum/relation-kind.enum'), require('@colijnit/mainapi/build/enum/activity-type'), require('@colijnit/mainapi/build/utils/time-utils'), require('@colijnit/ioneconnector/build/utils/function/is-nill.function'), require('@colijnit/mainapi/build/model/activity-list-view-model'), require('@colijnit/mainapi/build/model/activity-view-model'), require('@colijnit/mainapi/build/enum/personal-activity-tab.enum'), require('@colijnit/mainapi/build/enum/activity-sort-type.enum'), require('@colijnit/mainapi/build/model/task.bo'), require('@colijnit/mainapi/build/enum/table-name.enum'), require('@colijnit/mainapi/build/enum/tab-category.enum'), require('@colijnit/ioneconnector/build/model/validation-result'), require('@colijnit/mainapi/build/enum/domain-name.enum'), require('@colijnit/mainapi/build/enum/priority-type.enum'), require('@colijnit/relationapi/build/model/relation-request'), require('@colijnit/mainapi/build/enum/period.enum')) :
|
|
3
|
+
typeof define === 'function' && define.amd ? define('@colijnit/sharedcomponents', ['exports', '@angular/core', '@angular/animations', 'pdf-lib', 'pdfjs-dist/legacy/build/pdf', 'pdfjs-dist/build/pdf.worker.entry', '@angular/common', 'signature_pad', '@colijnit/articleapi/build/articles', '@colijnit/sharedapi/build/sharedapi', '@colijnit/articleapi/build/model/article-stock.bo', '@colijnit/articleapi/build/model/stock-history.bo', '@colijnit/articleapi/build/model/article-details.bo', '@colijnit/articleapi/build/model/stock-status.bo', '@colijnit/articleapi/build/model/stock-management-warehouses.bo', '@colijnit/articleapi/build/model/stock-location.bo', '@colijnit/articleapi/build/model/article-transaction.bo', 'rxjs', '@colijnit/ioneconnector/build/model/options', '@colijnit/mainapi', '@colijnit/mainapi/build/model/printer.bo', '@colijnit/mainapi/build/model/send-method.bo', '@colijnit/ioneconnector/build/service/business-object-factory', '@colijnit/mainapi/build/model/tag-tree-item.bo', '@colijnit/ioneconnector/build/model/object-configuration', '@colijnit/relationapi', '@colijnit/relationapi/build/model/relation-list-object.bo', '@colijnit/mainapi/build/model/task-category.bo', '@colijnit/mainapi/build/model/workflow-process', '@colijnit/mainapi/build/model/co-domain-value.bo', '@colijnit/mainapi/build/model/role-email-address', '@colijnit/mainapi/build/model/activity.bo', '@colijnit/mainapi/build/model/workflow-process-info-per-status', '@colijnit/sharedapi/build/model/print-stock-stickers', '@colijnit/articleapi/build/model/article-extended.bo', '@colijnit/articleapi/build/model/article-stock', '@colijnit/articleapi/build/model/article-extended-request', '@angular/platform-browser', '@colijnit/articleapi/build/model/article-stock-management', '@colijnit/corecomponents_v12', '@colijnit/articleapi/build/model/article-transaction', '@colijnit/sharedapi/build/model/print-price-stickers.bo', '@colijnit/mainapi/build/model/reporting-document-email-sign-doc-base-request', '@colijnit/mainapi/build/model/reporting-document-pdf-base-request', '@colijnit/mainapi/build/model/reporting-document-print-sign-doc-base-request', '@colijnit/mainapi/build/enum/send-method-type.enum', '@colijnit/articleapi/build/model/get-stock-history-request', 'chart.js', 'moment', '@colijnit/sharedapi/build/enum/refcode/file-type-internal.enum', '@angular/cdk/drag-drop', '@colijnit/mainapi/build/enum/file-type.enum', '@colijnit/sharedapi/build/enum/object-right-type.enum', '@colijnit/mainapi/build/utils/file-utils', '@colijnit/mainapi/build/model/co-document', '@colijnit/mainapi/build/enum/co-document-type.enum', '@colijnit/articleapi/build/enum/refcode/document-publication.enum', '@colijnit/mainapi/build/model/co-document-right', '@colijnit/sharedapi/build/utils/array-utils', '@angular/cdk/overlay', '@colijnit/articleapi/build/enum/relation-kind.enum', '@colijnit/mainapi/build/enum/activity-type', '@colijnit/mainapi/build/utils/time-utils', '@colijnit/ioneconnector/build/utils/function/is-nill.function', '@colijnit/mainapi/build/model/activity-list-view-model', '@colijnit/mainapi/build/model/activity-view-model', '@colijnit/mainapi/build/enum/personal-activity-tab.enum', '@colijnit/mainapi/build/enum/activity-sort-type.enum', '@colijnit/mainapi/build/model/task.bo', '@colijnit/mainapi/build/enum/table-name.enum', '@colijnit/mainapi/build/enum/tab-category.enum', '@colijnit/ioneconnector/build/model/validation-result', '@colijnit/mainapi/build/enum/domain-name.enum', '@colijnit/mainapi/build/enum/priority-type.enum', '@colijnit/relationapi/build/model/relation-request', '@colijnit/mainapi/build/enum/period.enum'], factory) :
|
|
4
|
+
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.colijnit = global.colijnit || {}, global.colijnit.sharedcomponents = {}), global.ng.core, global.ng.animations, global.pdfLib, global.PDFJS, global.pdfjsWorker, global.ng.common, global.SignaturePad, global.articles, global.sharedapi, global.articleStock_bo, global.stockHistory_bo, global.articleDetails_bo, global.stockStatus_bo, global.stockManagementWarehouses_bo, global.stockLocation_bo, global.articleTransaction_bo, global.rxjs, global.options, global.mainapi, global.printer_bo, global.sendMethod_bo, global.businessObjectFactory, global.tagTreeItem_bo, global.objectConfiguration, global.relationapi, global.relationListObject_bo, global.taskCategory_bo, global.workflowProcess, global.coDomainValue_bo, global.roleEmailAddress, global.activity_bo, global.workflowProcessInfoPerStatus, global.printStockStickers, global.articleExtended_bo, global.articleStock, global.articleExtendedRequest, global.ng.platformBrowser, global.articleStockManagement, global.corecomponents_v12, global.articleTransaction, global.printPriceStickers_bo, global.reportingDocumentEmailSignDocBaseRequest, global.reportingDocumentPdfBaseRequest, global.reportingDocumentPrintSignDocBaseRequest, global.sendMethodType_enum, global.getStockHistoryRequest, global.chart_js, global.moment, global.fileTypeInternal_enum, global.ng.cdk.dragDrop, global.fileType_enum, global.objectRightType_enum, global.fileUtils, global.coDocument, global.coDocumentType_enum, global.documentPublication_enum, global.coDocumentRight, global.arrayUtils, global.ng.cdk.overlay, global.relationKind_enum, global.activityType, global.timeUtils, global.isNill_function, global.activityListViewModel, global.activityViewModel, global.personalActivityTab_enum, global.activitySortType_enum, global.task_bo, global.tableName_enum, global.tabCategory_enum, global.validationResult, global.domainName_enum, global.priorityType_enum, global.relationRequest, global.period_enum));
|
|
5
|
+
})(this, (function (exports, i0, animations, pdfLib, PDFJS, pdfjsWorker, common, SignaturePad, articles, sharedapi, articleStock_bo, stockHistory_bo, articleDetails_bo, stockStatus_bo, stockManagementWarehouses_bo, stockLocation_bo, articleTransaction_bo, rxjs, options, mainapi, printer_bo, sendMethod_bo, businessObjectFactory, tagTreeItem_bo, objectConfiguration, relationapi, relationListObject_bo, taskCategory_bo, workflowProcess, coDomainValue_bo, roleEmailAddress, activity_bo, workflowProcessInfoPerStatus, printStockStickers, articleExtended_bo, articleStock, articleExtendedRequest, i1, articleStockManagement, corecomponents_v12, articleTransaction, printPriceStickers_bo, reportingDocumentEmailSignDocBaseRequest, reportingDocumentPdfBaseRequest, reportingDocumentPrintSignDocBaseRequest, sendMethodType_enum, getStockHistoryRequest, chart_js, moment, fileTypeInternal_enum, dragDrop, fileType_enum, objectRightType_enum, fileUtils, coDocument, coDocumentType_enum, documentPublication_enum, coDocumentRight, arrayUtils, overlay, relationKind_enum, activityType, timeUtils, isNill_function, activityListViewModel, activityViewModel, personalActivityTab_enum, activitySortType_enum, task_bo, tableName_enum, tabCategory_enum, validationResult, domainName_enum, priorityType_enum, relationRequest, period_enum) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -1296,6 +1296,117 @@
|
|
|
1296
1296
|
});
|
|
1297
1297
|
});
|
|
1298
1298
|
};
|
|
1299
|
+
SharedConnectorService.prototype.getComponentActivitiesWithoutRelationFiltering = function (table, key) {
|
|
1300
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1301
|
+
var _this = this;
|
|
1302
|
+
return __generator(this, function (_a) {
|
|
1303
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1304
|
+
return _this.mainConnector.getComponentActivitiesWithoutRelationFiltering(table, key).then(function (result) {
|
|
1305
|
+
if (result && result.validationResult && result.validationResult.success) {
|
|
1306
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(activity_bo.Activity, result.resultObject));
|
|
1307
|
+
}
|
|
1308
|
+
else {
|
|
1309
|
+
reject(result.validationMessagesAsString);
|
|
1310
|
+
}
|
|
1311
|
+
});
|
|
1312
|
+
})];
|
|
1313
|
+
});
|
|
1314
|
+
});
|
|
1315
|
+
};
|
|
1316
|
+
SharedConnectorService.prototype.updateActivity = function (activity) {
|
|
1317
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1318
|
+
var _this = this;
|
|
1319
|
+
return __generator(this, function (_a) {
|
|
1320
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1321
|
+
return _this.mainConnector.updateActivity(activity).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
|
|
1322
|
+
return __generator(this, function (_a) {
|
|
1323
|
+
resolve(result.validationResult);
|
|
1324
|
+
return [2 /*return*/];
|
|
1325
|
+
});
|
|
1326
|
+
}); });
|
|
1327
|
+
})];
|
|
1328
|
+
});
|
|
1329
|
+
});
|
|
1330
|
+
};
|
|
1331
|
+
SharedConnectorService.prototype.deleteActivity = function (activity) {
|
|
1332
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1333
|
+
var _this = this;
|
|
1334
|
+
return __generator(this, function (_a) {
|
|
1335
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1336
|
+
return _this.mainConnector.deleteActivity(activity).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
|
|
1337
|
+
return __generator(this, function (_a) {
|
|
1338
|
+
resolve(result.validationResult);
|
|
1339
|
+
return [2 /*return*/];
|
|
1340
|
+
});
|
|
1341
|
+
}); });
|
|
1342
|
+
})];
|
|
1343
|
+
});
|
|
1344
|
+
});
|
|
1345
|
+
};
|
|
1346
|
+
SharedConnectorService.prototype.lockTask = function (id) {
|
|
1347
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1348
|
+
var _this = this;
|
|
1349
|
+
return __generator(this, function (_a) {
|
|
1350
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1351
|
+
return _this.mainConnector.lockTask(id).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
|
|
1352
|
+
return __generator(this, function (_a) {
|
|
1353
|
+
resolve(result.validationResult);
|
|
1354
|
+
return [2 /*return*/];
|
|
1355
|
+
});
|
|
1356
|
+
}); });
|
|
1357
|
+
})];
|
|
1358
|
+
});
|
|
1359
|
+
});
|
|
1360
|
+
};
|
|
1361
|
+
SharedConnectorService.prototype.fireTrigger = function (workFlowProcessId, sequence, triggerId) {
|
|
1362
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1363
|
+
var _this = this;
|
|
1364
|
+
return __generator(this, function (_a) {
|
|
1365
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1366
|
+
return _this.mainConnector.fireTrigger(workFlowProcessId, sequence, triggerId).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
|
|
1367
|
+
return __generator(this, function (_a) {
|
|
1368
|
+
resolve(result.validationResult);
|
|
1369
|
+
return [2 /*return*/];
|
|
1370
|
+
});
|
|
1371
|
+
}); });
|
|
1372
|
+
})];
|
|
1373
|
+
});
|
|
1374
|
+
});
|
|
1375
|
+
};
|
|
1376
|
+
SharedConnectorService.prototype.fireGenericTrigger = function (workFlowProcessId, genericTransitionId, relationId) {
|
|
1377
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1378
|
+
var _this = this;
|
|
1379
|
+
return __generator(this, function (_a) {
|
|
1380
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1381
|
+
return _this.mainConnector.fireGenericTrigger(workFlowProcessId, genericTransitionId, relationId).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
|
|
1382
|
+
return __generator(this, function (_a) {
|
|
1383
|
+
resolve(result.validationResult);
|
|
1384
|
+
return [2 /*return*/];
|
|
1385
|
+
});
|
|
1386
|
+
}); });
|
|
1387
|
+
})];
|
|
1388
|
+
});
|
|
1389
|
+
});
|
|
1390
|
+
};
|
|
1391
|
+
SharedConnectorService.prototype.getJoinedTags = function (table, key) {
|
|
1392
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1393
|
+
var _this = this;
|
|
1394
|
+
return __generator(this, function (_a) {
|
|
1395
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1396
|
+
return _this.mainConnector.getJoinedTags(table, key).then(function (result) {
|
|
1397
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1398
|
+
if (result.resultObjects) {
|
|
1399
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(tagTreeItem_bo.TagTreeItem, result.resultObjects));
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
else {
|
|
1403
|
+
reject(result.validationMessagesAsString);
|
|
1404
|
+
}
|
|
1405
|
+
});
|
|
1406
|
+
})];
|
|
1407
|
+
});
|
|
1408
|
+
});
|
|
1409
|
+
};
|
|
1299
1410
|
SharedConnectorService.prototype.getDocumentContent = function (id, thumbnail) {
|
|
1300
1411
|
if (thumbnail === void 0) { thumbnail = true; }
|
|
1301
1412
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -1748,6 +1859,25 @@
|
|
|
1748
1859
|
});
|
|
1749
1860
|
});
|
|
1750
1861
|
};
|
|
1862
|
+
SharedConnectorService.prototype.getWorkflowProcessInfoPerStatus = function (worlflowCategory) {
|
|
1863
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1864
|
+
var _this = this;
|
|
1865
|
+
return __generator(this, function (_a) {
|
|
1866
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1867
|
+
return _this.mainConnector.getWorkflowProcessInfoPerStatus(worlflowCategory).then(function (result) {
|
|
1868
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1869
|
+
if (result.resultObject) {
|
|
1870
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(workflowProcessInfoPerStatus.WorkflowProcessInfoPerStatus, result.resultObject));
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1873
|
+
else {
|
|
1874
|
+
reject(result.validationMessagesAsString);
|
|
1875
|
+
}
|
|
1876
|
+
});
|
|
1877
|
+
})];
|
|
1878
|
+
});
|
|
1879
|
+
});
|
|
1880
|
+
};
|
|
1751
1881
|
SharedConnectorService.prototype.getHistoricActivities = function (table, key) {
|
|
1752
1882
|
return __awaiter(this, void 0, void 0, function () {
|
|
1753
1883
|
var _this = this;
|
|
@@ -2205,10 +2335,12 @@
|
|
|
2205
2335
|
this.okButtonClicked = new i0.EventEmitter();
|
|
2206
2336
|
this.cancelButtonClicked = new i0.EventEmitter();
|
|
2207
2337
|
this.handleClick = new i0.EventEmitter();
|
|
2338
|
+
this.updateGridData = new i0.EventEmitter();
|
|
2208
2339
|
this.loaded = false;
|
|
2209
2340
|
this.showStockInformationGrid = true;
|
|
2210
2341
|
this.showStockTransfer = false;
|
|
2211
2342
|
this.stockInformation = [];
|
|
2343
|
+
this.articleDetailsInformation = new articleStockManagement.ArticleStockManagement();
|
|
2212
2344
|
this.stockHistory = [];
|
|
2213
2345
|
this.allAvailableStock = 0;
|
|
2214
2346
|
this.allTechnicalStock = 0;
|
|
@@ -2265,7 +2397,12 @@
|
|
|
2265
2397
|
data.entryDate = new Date;
|
|
2266
2398
|
this._stockService.updateArticleDetails(data).then(function (result) {
|
|
2267
2399
|
_this.handleClick.emit();
|
|
2400
|
+
_this._stockService.getArticleDetails(_this.articleDetailsInformation).then(function (details) {
|
|
2401
|
+
_this.updateGridData.emit(details);
|
|
2402
|
+
});
|
|
2268
2403
|
});
|
|
2404
|
+
this.loaded = true;
|
|
2405
|
+
this.loadData();
|
|
2269
2406
|
};
|
|
2270
2407
|
StockComponent.prototype.backToStock = function (goodId) {
|
|
2271
2408
|
this.loadData();
|
|
@@ -2362,7 +2499,7 @@
|
|
|
2362
2499
|
StockComponent.decorators = [
|
|
2363
2500
|
{ type: i0.Component, args: [{
|
|
2364
2501
|
selector: "co-stock",
|
|
2365
|
-
template: "\n <div class=\"stock-info-container\" *ngIf=\"loaded && articleExtended\">\n <co-stock-information [article]=\"articleExtended\"\n [articleStockState]=\"articleStockState\"\n [allAvailableStockInformation]=\"allAvailableStock\"\n [allTechnicalStockInformation]=\"allTechnicalStock\"\n [economicalStock]=\"economicalStock\"\n >\n </co-stock-information>\n <co-stock-tabs [stockInformation]=\"stockInformation\"\n [article]=\"articleExtended\"\n [articleFlat]=\"articleFlat\"\n (transferIconClicked)=\"handleStockTransferClick($event)\"\n (sendMethodDialogClicked)=\"handleSendMethodClick($event)\"\n [warehouses]=\"warehouses\"\n
|
|
2502
|
+
template: "\n <div class=\"stock-info-container\" *ngIf=\"loaded && articleExtended\">\n <co-stock-information [article]=\"articleExtended\"\n [articleStockState]=\"articleStockState\"\n [allAvailableStockInformation]=\"allAvailableStock\"\n [allTechnicalStockInformation]=\"allTechnicalStock\"\n [economicalStock]=\"economicalStock\"\n >\n </co-stock-information>\n <co-stock-tabs [stockInformation]=\"stockInformation\"\n [article]=\"articleExtended\"\n [articleFlat]=\"articleFlat\"\n (transferIconClicked)=\"handleStockTransferClick($event)\"\n (sendMethodDialogClicked)=\"handleSendMethodClick($event)\"\n [warehouses]=\"warehouses\"\n [showStockTransfer]=\"showStockTransfer\"\n\n ></co-stock-tabs>\n </div>\n ",
|
|
2366
2503
|
encapsulation: i0.ViewEncapsulation.None
|
|
2367
2504
|
},] }
|
|
2368
2505
|
];
|
|
@@ -2644,15 +2781,24 @@
|
|
|
2644
2781
|
};
|
|
2645
2782
|
|
|
2646
2783
|
var StockTransferComponent = /** @class */ (function () {
|
|
2647
|
-
function StockTransferComponent(_stockService, iconCacheService) {
|
|
2784
|
+
function StockTransferComponent(_stockService, iconCacheService, _changeDetector) {
|
|
2648
2785
|
this._stockService = _stockService;
|
|
2649
2786
|
this.iconCacheService = iconCacheService;
|
|
2787
|
+
this._changeDetector = _changeDetector;
|
|
2788
|
+
this.selectedArticleDetailsData = new articleDetails_bo.ArticleDetailsBo();
|
|
2789
|
+
this.articleDetailsInformation = new articleStockManagement.ArticleStockManagement();
|
|
2790
|
+
this.articleStockInfo = [];
|
|
2791
|
+
this.stockLocations = [];
|
|
2650
2792
|
this.handleClick = new i0.EventEmitter();
|
|
2651
2793
|
this.handleStickerClicked = new i0.EventEmitter();
|
|
2794
|
+
this.updateGridData = new i0.EventEmitter();
|
|
2795
|
+
this.showStockTransferChange = new i0.EventEmitter();
|
|
2652
2796
|
this.showSendMethodDialog = false;
|
|
2797
|
+
this.transferFull = false;
|
|
2653
2798
|
this.warehouses = [];
|
|
2654
2799
|
this.stockState = [];
|
|
2655
2800
|
this.locations = [];
|
|
2801
|
+
this.stockStatus = [];
|
|
2656
2802
|
this.icons = exports["ɵbu"];
|
|
2657
2803
|
}
|
|
2658
2804
|
StockTransferComponent.prototype.ngAfterViewInit = function () {
|
|
@@ -2661,21 +2807,31 @@
|
|
|
2661
2807
|
};
|
|
2662
2808
|
StockTransferComponent.prototype.handleOkClick = function (data) {
|
|
2663
2809
|
var _this = this;
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2810
|
+
if (this.articleToTransfer.amountTransfer > this.articleToTransfer.amountInStockFree) {
|
|
2811
|
+
this.transferFull = true;
|
|
2812
|
+
}
|
|
2813
|
+
else {
|
|
2814
|
+
data.selected = true;
|
|
2815
|
+
data.entryDate = new Date;
|
|
2816
|
+
this._stockService.updateArticleDetails(data).then(function (result) {
|
|
2817
|
+
_this.handleClick.emit();
|
|
2818
|
+
_this.showStockTransferChange.emit(false);
|
|
2819
|
+
_this._stockService.getArticleDetails(_this.articleDetailsInformation).then(function (details) {
|
|
2820
|
+
_this.articleStockInfo = details;
|
|
2821
|
+
_this.updateGridData.emit(details);
|
|
2822
|
+
});
|
|
2823
|
+
}).catch(function (result) {
|
|
2824
|
+
// Log failure message
|
|
2825
|
+
});
|
|
2826
|
+
}
|
|
2671
2827
|
};
|
|
2672
|
-
StockTransferComponent.prototype.
|
|
2673
|
-
this.
|
|
2828
|
+
StockTransferComponent.prototype.onCloseClick = function () {
|
|
2829
|
+
this.showStockTransferChange.emit(false);
|
|
2674
2830
|
};
|
|
2675
2831
|
StockTransferComponent.prototype.handleSelectedWarehouse = function (event) {
|
|
2676
2832
|
this.articleToTransfer.targetWarehouse = event.warehouseNo;
|
|
2677
2833
|
this.selectedWarehouse = event;
|
|
2678
|
-
this.getStockManagementLocations(
|
|
2834
|
+
this.getStockManagementLocations();
|
|
2679
2835
|
};
|
|
2680
2836
|
StockTransferComponent.prototype.handleSelectedLocation = function (event) {
|
|
2681
2837
|
this.articleToTransfer.targetLocation = event.locationNo;
|
|
@@ -2693,10 +2849,10 @@
|
|
|
2693
2849
|
_this.warehouses = warehouses;
|
|
2694
2850
|
});
|
|
2695
2851
|
};
|
|
2696
|
-
StockTransferComponent.prototype.getStockManagementLocations = function (
|
|
2852
|
+
StockTransferComponent.prototype.getStockManagementLocations = function () {
|
|
2697
2853
|
var _this = this;
|
|
2698
|
-
this._stockService.getStockManagementLocations(
|
|
2699
|
-
_this.
|
|
2854
|
+
this._stockService.getStockManagementLocations(this.selectedWarehouse.warehouseNo).then(function (locations) {
|
|
2855
|
+
_this.stockLocations = locations;
|
|
2700
2856
|
});
|
|
2701
2857
|
};
|
|
2702
2858
|
StockTransferComponent.prototype.getStockState = function () {
|
|
@@ -2710,22 +2866,32 @@
|
|
|
2710
2866
|
StockTransferComponent.decorators = [
|
|
2711
2867
|
{ type: i0.Component, args: [{
|
|
2712
2868
|
selector: "co-stock-transfer",
|
|
2713
|
-
template: "\n <div class=\"stock-transfer\">\n <div class=\"stock-transfer-columns\">\n
|
|
2869
|
+
template: "\n <div class=\"stock-transfer\">\n <co-dialog\n (closeClick)=\"onCloseClick()\"\n [showCloseIcon]=\"true\"\n [modal]=\"true\"\n [headerTemplate]=\"headerTemplate\"\n [footerTemplate]=\"footerTemplate\">\n <ng-template #headerTemplate>\n <div class=\"co-dialog-header-title-wrapper\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.Cubes)\"></co-icon>\n <div class=\"co-dialog-header-title\" [textContent]=\"'TRANSFER_STOCK' | localize\"></div>\n </div>\n </ng-template>\n <div class=\"dialog-wrapper\">\n <div class=\"stock-transfer-columns\">\n <div *ngIf=\"articleToTransfer\" class=\"stock-transfer-top-column\">\n <div class=\"transfer-items\">\n <div class=\"transfer-item\">\n <label class=\"item-label\" [textContent]=\"'WAREHOUSE' | localize\"></label>\n <span class=\"item-value\" [textContent]=\"articleToTransfer.warehouseDescription\"></span>\n </div>\n <div class=\"transfer-item\">\n <label class=\"item-label\" [textContent]=\"'LOCATION' | localize\"></label>\n <span class=\"item-value\" [textContent]=\"articleToTransfer.locationNo\"></span>\n </div>\n <div class=\"transfer-item\" *ngIf=\"articleToTransfer?.batchNo\">\n <label class=\"item-label\" [textContent]=\"'BATCH_NO' | localize\"></label>\n <span class=\"item-value\" [textContent]=\"articleToTransfer.batchNo\"></span>\n </div>\n <div class=\"transfer-item\" *ngIf=\"articleToTransfer?.serialNo\">\n <label class=\"item-label\" [textContent]=\"'SERIE_NO' | localize\"></label>\n <span class=\"item-value\" [textContent]=\"articleToTransfer.serialNo\"></span>\n </div>\n </div>\n <div class=\"transfer-quantity\">\n <co-input-number-picker\n [(model)]=\"articleToTransfer.amountTransfer\"\n [min]=\"1\"\n [label]=\"'QUANTITY' | localize\">\n </co-input-number-picker>\n <span *ngIf=\"transferFull\" [textContent]=\"this.articleToTransfer.amountInStockFree + (' AVAILABLE' | localize)\"></span>\n </div>\n </div>\n <div class=\"transfer-arrow-wrapper\">\n <span class=\"half-circle\"></span>\n <div class=\"icon-wrapper\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.ArrowDownRegular)\"></co-icon>\n </div>\n </div>\n\n\n <div class=\"stock-transfer-bottom-column\">\n <div class=\"transfer-bottom-row\">\n <co-list-of-values [collection]=\"warehouses\"\n [displayField]=\"'warehouseDescription'\"\n (modelChange)=\"handleSelectedWarehouse($event)\"\n [label]=\"'WAREHOUSE' | localize\"\n >\n </co-list-of-values>\n <co-list-of-values [collection]=\"stockLocations\"\n [displayField]=\"'locationNo'\"\n (modelChange)=\"handleSelectedLocation($event)\"\n [label]=\"'LOCATION' | localize\"\n >\n </co-list-of-values>\n </div>\n <div class=\"transfer-bottom-row\">\n <co-list-of-values [collection]=\"stockState\"\n [displayField]=\"'stateDescription'\"\n [label]=\"'STOCK_STATE' | localize\"\n (modelChange)=\"handleSelectedStockState($event)\"\n >\n </co-list-of-values>\n </div>\n\n </div>\n <div class=\"transfer-sticker-buttons\">\n <co-button\n [label]=\"'STICKER' | localize\"\n (click)=\"handleStickerClick()\"\n [iconData]=\"iconCacheService.getIcon(icons.BarcodeReadRegular)\">\n </co-button>\n </div>\n </div>\n </div>\n <ng-template #footerTemplate>\n <div class=\"button-wrapper ok-cancel-buttons\">\n <co-button class=\"save-button\"\n (click)=\"handleOkClick(articleToTransfer)\"\n [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\">\n </co-button>\n <co-button class=\"cancel-button\"\n (click)=\"onCloseClick()\"\n [iconData]=\"iconCacheService.getIcon(icons.CrossSkinny)\">\n </co-button>\n </div>\n </ng-template>\n </co-dialog>\n </div>\n <co-send-method-dialog *ngIf=\"showSendMethodDialog\"\n (closeClick)=\"showSendMethodDialog = false\">\n\n </co-send-method-dialog>\n ",
|
|
2714
2870
|
encapsulation: i0.ViewEncapsulation.None
|
|
2715
2871
|
},] }
|
|
2716
2872
|
];
|
|
2717
2873
|
StockTransferComponent.ctorParameters = function () { return [
|
|
2718
2874
|
{ type: StockService },
|
|
2719
|
-
{ type: IconCacheService }
|
|
2875
|
+
{ type: IconCacheService },
|
|
2876
|
+
{ type: i0.ChangeDetectorRef }
|
|
2720
2877
|
]; };
|
|
2721
2878
|
StockTransferComponent.propDecorators = {
|
|
2722
2879
|
stockSticker: [{ type: i0.Input }],
|
|
2723
2880
|
article: [{ type: i0.Input }],
|
|
2724
2881
|
articleToTransfer: [{ type: i0.Input }],
|
|
2725
|
-
articleWarehouse: [{ type: i0.Input }],
|
|
2726
2882
|
allWarehouses: [{ type: i0.Input }],
|
|
2883
|
+
showStockTransfer: [{ type: i0.Input }],
|
|
2884
|
+
selectedArticleDetailsData: [{ type: i0.Input }],
|
|
2885
|
+
articleFlat: [{ type: i0.Input }],
|
|
2886
|
+
articleDetailsInformation: [{ type: i0.Input }],
|
|
2887
|
+
selectedWarehouse: [{ type: i0.Input }],
|
|
2888
|
+
selectedLocationNo: [{ type: i0.Input }],
|
|
2889
|
+
articleStockInfo: [{ type: i0.Input }],
|
|
2890
|
+
stockLocations: [{ type: i0.Input }],
|
|
2727
2891
|
handleClick: [{ type: i0.Output }],
|
|
2728
|
-
handleStickerClicked: [{ type: i0.Output }]
|
|
2892
|
+
handleStickerClicked: [{ type: i0.Output }],
|
|
2893
|
+
updateGridData: [{ type: i0.Output }],
|
|
2894
|
+
showStockTransferChange: [{ type: i0.Output }]
|
|
2729
2895
|
};
|
|
2730
2896
|
|
|
2731
2897
|
var SharedService = /** @class */ (function () {
|
|
@@ -2811,6 +2977,16 @@
|
|
|
2811
2977
|
});
|
|
2812
2978
|
});
|
|
2813
2979
|
};
|
|
2980
|
+
SharedService.prototype.getJoinedTags = function (table, key) {
|
|
2981
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2982
|
+
return __generator(this, function (_a) {
|
|
2983
|
+
switch (_a.label) {
|
|
2984
|
+
case 0: return [4 /*yield*/, this.connector.getJoinedTags(table, key)];
|
|
2985
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
2986
|
+
}
|
|
2987
|
+
});
|
|
2988
|
+
});
|
|
2989
|
+
};
|
|
2814
2990
|
SharedService.prototype.getDocumentContent = function (docId, thumbnail) {
|
|
2815
2991
|
if (thumbnail === void 0) { thumbnail = true; }
|
|
2816
2992
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -2822,6 +2998,69 @@
|
|
|
2822
2998
|
});
|
|
2823
2999
|
});
|
|
2824
3000
|
};
|
|
3001
|
+
SharedService.prototype.getComponentActivitiesWithoutRelationFiltering = function (table, key) {
|
|
3002
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3003
|
+
return __generator(this, function (_a) {
|
|
3004
|
+
switch (_a.label) {
|
|
3005
|
+
case 0: return [4 /*yield*/, this.connector.getComponentActivitiesWithoutRelationFiltering(table, key)];
|
|
3006
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
3007
|
+
}
|
|
3008
|
+
});
|
|
3009
|
+
});
|
|
3010
|
+
};
|
|
3011
|
+
SharedService.prototype.updateActivity = function (activity) {
|
|
3012
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3013
|
+
return __generator(this, function (_a) {
|
|
3014
|
+
switch (_a.label) {
|
|
3015
|
+
case 0: return [4 /*yield*/, this.connector.updateActivity(activity)];
|
|
3016
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
3017
|
+
}
|
|
3018
|
+
});
|
|
3019
|
+
});
|
|
3020
|
+
};
|
|
3021
|
+
SharedService.prototype.deleteActivity = function (activity) {
|
|
3022
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3023
|
+
return __generator(this, function (_a) {
|
|
3024
|
+
switch (_a.label) {
|
|
3025
|
+
case 0: return [4 /*yield*/, this.connector.deleteActivity(activity)];
|
|
3026
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
3027
|
+
}
|
|
3028
|
+
});
|
|
3029
|
+
});
|
|
3030
|
+
};
|
|
3031
|
+
SharedService.prototype.lockTask = function (id) {
|
|
3032
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3033
|
+
return __generator(this, function (_a) {
|
|
3034
|
+
switch (_a.label) {
|
|
3035
|
+
case 0: return [4 /*yield*/, this.connector.lockTask(id)];
|
|
3036
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
3037
|
+
}
|
|
3038
|
+
});
|
|
3039
|
+
});
|
|
3040
|
+
};
|
|
3041
|
+
SharedService.prototype.canFireTrigger = function (activity, task) {
|
|
3042
|
+
return true;
|
|
3043
|
+
};
|
|
3044
|
+
SharedService.prototype.fireTrigger = function (workFlowProcessId, sequence, triggerId) {
|
|
3045
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3046
|
+
return __generator(this, function (_a) {
|
|
3047
|
+
switch (_a.label) {
|
|
3048
|
+
case 0: return [4 /*yield*/, this.connector.fireTrigger(workFlowProcessId, sequence, triggerId)];
|
|
3049
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
3050
|
+
}
|
|
3051
|
+
});
|
|
3052
|
+
});
|
|
3053
|
+
};
|
|
3054
|
+
SharedService.prototype.fireGenericTrigger = function (workFlowProcessId, genericTransitionId, relationId) {
|
|
3055
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3056
|
+
return __generator(this, function (_a) {
|
|
3057
|
+
switch (_a.label) {
|
|
3058
|
+
case 0: return [4 /*yield*/, this.connector.fireGenericTrigger(workFlowProcessId, genericTransitionId, relationId)];
|
|
3059
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
3060
|
+
}
|
|
3061
|
+
});
|
|
3062
|
+
});
|
|
3063
|
+
};
|
|
2825
3064
|
SharedService.prototype.getRelationListObjects = function (request) {
|
|
2826
3065
|
return __awaiter(this, void 0, void 0, function () {
|
|
2827
3066
|
return __generator(this, function (_a) {
|
|
@@ -2872,6 +3111,16 @@
|
|
|
2872
3111
|
});
|
|
2873
3112
|
});
|
|
2874
3113
|
};
|
|
3114
|
+
SharedService.prototype.getWorkflowProcessInfoPerStatus = function (workflowCategory) {
|
|
3115
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3116
|
+
return __generator(this, function (_a) {
|
|
3117
|
+
switch (_a.label) {
|
|
3118
|
+
case 0: return [4 /*yield*/, this.connector.getWorkflowProcessInfoPerStatus(workflowCategory)];
|
|
3119
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
3120
|
+
}
|
|
3121
|
+
});
|
|
3122
|
+
});
|
|
3123
|
+
};
|
|
2875
3124
|
SharedService.prototype.getActivities = function (table, key) {
|
|
2876
3125
|
return __awaiter(this, void 0, void 0, function () {
|
|
2877
3126
|
var activities, histActivities, activeActivities, historicActivities;
|
|
@@ -3756,6 +4005,9 @@
|
|
|
3756
4005
|
},
|
|
3757
4006
|
];
|
|
3758
4007
|
};
|
|
4008
|
+
StockTabsComponent.prototype.onShowStockTransferChange = function (show) {
|
|
4009
|
+
this.showStockTransfer = show;
|
|
4010
|
+
};
|
|
3759
4011
|
StockTabsComponent.prototype.handleLocationClicked = function (data) {
|
|
3760
4012
|
this.tabs[0].active = false;
|
|
3761
4013
|
this.tabs[2].active = true;
|
|
@@ -3875,7 +4127,7 @@
|
|
|
3875
4127
|
StockTabsComponent.decorators = [
|
|
3876
4128
|
{ type: i0.Component, args: [{
|
|
3877
4129
|
selector: "co-stock-tabs",
|
|
3878
|
-
template: "\n <co-tab-bar [wareHouseLabel]=\"'CHOICES' | localize\"\n [wareHouseSearchLabel]=\"'SEARCH' | localize\"\n [tabs]=\"tabs\"\n [dataWareHouseCode]=\"warehouses\"\n [selectedWarehouse]=\"selectedWarehouse\"\n [secondaryTabs]=\"historyTabs\"\n [ActivateSecondaryTabs]=\"tabs[5].active\"\n [showWarehouseSelection]=\"tabs[1].active || tabs[2].active\"\n (warehouseSelected)=\"handleWarehouseSelected($event)\"\n ></co-tab-bar>\n\n <co-stock-tab *ngIf=\"tabs[0].active\"\n [articleStockInformation]=\"stockInformation\"\n (locationClicked)=\"handleLocationClicked($event)\"\n ></co-stock-tab>\n\n <co-stock-prognose *ngIf=\"tabs[1].active\"\n [stockPrognose]=\"stockPrognose\"\n ></co-stock-prognose>\n\n <co-stock-location *ngIf=\"tabs[2].active\"\n [articleStockInfo]=\"articleDetails\"\n [articleStockInformation]=\"stockInformation\"\n [article]=\"article\"\n [articleFlat]=\"articleFlat\"\n [selectedWarehouse]=\"selectedWarehouse\"\n [dataWareHouseCode]=\"warehouses\"\n [stockLocations]=\"stockLocations\"\n (transferIconClicked)=\"transferIconClicked.emit($event)\"\n (sendMethodDialogClicked)=\"sendMethodDialogClicked.emit($event)\"\n\n ></co-stock-location>\n\n <co-order-tab *ngIf=\"tabs[3].active\"\n [articleStockInformation]=\"stockInformation\"\n [inOrderInformation]=\"inOrderInformation\"\n (transferIconClicked)=\"transferIconClicked.emit($event)\"\n (sendMethodDialogClicked)=\"sendMethodDialogClicked.emit($event)\"\n ></co-order-tab>\n\n <co-order-stock-tab *ngIf=\"tabs[4].active\"\n [orderInformation]=\"orderInformation\"\n ></co-order-stock-tab>\n\n <co-stock-history *ngIf=\"historyTabs[0].active && tabs[5].active\"\n [stockHistory]=\"stockHistory\"\n ></co-stock-history>\n\n <co-order-supply-stock-history *ngIf=\"historyTabs[1].active && tabs[5].active\"\n [orderSupplyStockHistory]=\"orderSupplyStockHistory\"\n ></co-order-supply-stock-history>\n\n <co-order-stock-commission-history *ngIf=\"historyTabs[2].active && tabs[5].active\"\n [orderStockCommissionHistory]=\"orderCommissionStockHistory\"\n ></co-order-stock-commission-history>\n\n <co-order-stock-history *ngIf=\"historyTabs[3].active && tabs[5].active\"\n [orderStockHistory]=\"orderStockHistory\"\n ></co-order-stock-history>\n\n <co-allocation-stock-history *ngIf=\"historyTabs[4].active && tabs[5].active\"\n [allocationStockHistory]=\"orderAllocationStockHistory\"\n ></co-allocation-stock-history>\n\n ",
|
|
4130
|
+
template: "\n <co-tab-bar [wareHouseLabel]=\"'CHOICES' | localize\"\n [wareHouseSearchLabel]=\"'SEARCH' | localize\"\n [tabs]=\"tabs\"\n [dataWareHouseCode]=\"warehouses\"\n [selectedWarehouse]=\"selectedWarehouse\"\n [secondaryTabs]=\"historyTabs\"\n [ActivateSecondaryTabs]=\"tabs[5].active\"\n [showWarehouseSelection]=\"tabs[1].active || tabs[2].active\"\n (warehouseSelected)=\"handleWarehouseSelected($event)\"\n ></co-tab-bar>\n\n <co-stock-tab *ngIf=\"tabs[0].active\"\n [articleStockInformation]=\"stockInformation\"\n (locationClicked)=\"handleLocationClicked($event)\"\n ></co-stock-tab>\n\n <co-stock-prognose *ngIf=\"tabs[1].active\"\n [stockPrognose]=\"stockPrognose\"\n ></co-stock-prognose>\n\n <co-stock-location *ngIf=\"tabs[2].active\"\n [articleStockInfo]=\"articleDetails\"\n [articleStockInformation]=\"stockInformation\"\n [article]=\"article\"\n [articleFlat]=\"articleFlat\"\n [selectedWarehouse]=\"selectedWarehouse\"\n [dataWareHouseCode]=\"warehouses\"\n [stockLocations]=\"stockLocations\"\n (transferIconClicked)=\"transferIconClicked.emit($event)\"\n (sendMethodDialogClicked)=\"sendMethodDialogClicked.emit($event)\"\n [showStockTransfer]=\"showStockTransfer\"\n (showStockTransferChange)=\"onShowStockTransferChange($event)\"\n ></co-stock-location>\n\n <co-order-tab *ngIf=\"tabs[3].active\"\n [articleStockInformation]=\"stockInformation\"\n [inOrderInformation]=\"inOrderInformation\"\n (transferIconClicked)=\"transferIconClicked.emit($event)\"\n (sendMethodDialogClicked)=\"sendMethodDialogClicked.emit($event)\"\n ></co-order-tab>\n\n <co-order-stock-tab *ngIf=\"tabs[4].active\"\n [orderInformation]=\"orderInformation\"\n ></co-order-stock-tab>\n\n <co-stock-history *ngIf=\"historyTabs[0].active && tabs[5].active\"\n [stockHistory]=\"stockHistory\"\n ></co-stock-history>\n\n <co-order-supply-stock-history *ngIf=\"historyTabs[1].active && tabs[5].active\"\n [orderSupplyStockHistory]=\"orderSupplyStockHistory\"\n ></co-order-supply-stock-history>\n\n <co-order-stock-commission-history *ngIf=\"historyTabs[2].active && tabs[5].active\"\n [orderStockCommissionHistory]=\"orderCommissionStockHistory\"\n ></co-order-stock-commission-history>\n\n <co-order-stock-history *ngIf=\"historyTabs[3].active && tabs[5].active\"\n [orderStockHistory]=\"orderStockHistory\"\n ></co-order-stock-history>\n\n <co-allocation-stock-history *ngIf=\"historyTabs[4].active && tabs[5].active\"\n [allocationStockHistory]=\"orderAllocationStockHistory\"\n ></co-allocation-stock-history>\n\n ",
|
|
3879
4131
|
encapsulation: i0.ViewEncapsulation.None
|
|
3880
4132
|
},] }
|
|
3881
4133
|
];
|
|
@@ -3888,6 +4140,7 @@
|
|
|
3888
4140
|
stockInformation: [{ type: i0.Input }],
|
|
3889
4141
|
article: [{ type: i0.Input }],
|
|
3890
4142
|
articleFlat: [{ type: i0.Input }],
|
|
4143
|
+
showStockTransfer: [{ type: i0.Input }],
|
|
3891
4144
|
warehouses: [{ type: i0.Input }],
|
|
3892
4145
|
transferIconClicked: [{ type: i0.Output }],
|
|
3893
4146
|
sendMethodDialogClicked: [{ type: i0.Output }]
|
|
@@ -3943,9 +4196,13 @@
|
|
|
3943
4196
|
this.icons = exports["ɵbu"];
|
|
3944
4197
|
this.articleStockInfo = [];
|
|
3945
4198
|
this.articleStockInformation = [];
|
|
4199
|
+
this.articleWarehouse = [];
|
|
4200
|
+
this.allWarehouses = [];
|
|
3946
4201
|
this.dataWareHouseCode = [];
|
|
3947
4202
|
this.transferIconClicked = new i0.EventEmitter();
|
|
3948
4203
|
this.sendMethodDialogClicked = new i0.EventEmitter();
|
|
4204
|
+
this.showStockTransferChange = new i0.EventEmitter();
|
|
4205
|
+
this.handleStickerClicked = new i0.EventEmitter();
|
|
3949
4206
|
this.showConfirmationDialog = false;
|
|
3950
4207
|
this.newStockLine = false;
|
|
3951
4208
|
this.showConfirmStockRow = false;
|
|
@@ -3975,6 +4232,10 @@
|
|
|
3975
4232
|
};
|
|
3976
4233
|
StockLocationComponent.prototype.ngOnDestroy = function () {
|
|
3977
4234
|
};
|
|
4235
|
+
StockLocationComponent.prototype.onShowStockTransferChange = function (show) {
|
|
4236
|
+
this.showStockTransfer = show;
|
|
4237
|
+
this.showStockTransferChange.emit(this.showStockTransfer);
|
|
4238
|
+
};
|
|
3978
4239
|
StockLocationComponent.prototype.onLocationDropdownClick = function () {
|
|
3979
4240
|
var _this = this;
|
|
3980
4241
|
this._stockService.getStockManagementLocations(this.selectedWarehouse.warehouseNo).then(function (locations) {
|
|
@@ -3993,7 +4254,8 @@
|
|
|
3993
4254
|
this.sendMethodDialogClicked.emit(data);
|
|
3994
4255
|
};
|
|
3995
4256
|
StockLocationComponent.prototype.handleStockTransferClick = function (event) {
|
|
3996
|
-
this.
|
|
4257
|
+
this.articleDetails = event;
|
|
4258
|
+
this.showStockTransfer = true;
|
|
3997
4259
|
};
|
|
3998
4260
|
StockLocationComponent.prototype.onOkClickSendLocations = function (row) {
|
|
3999
4261
|
this.selectedArticleDetailsData = row;
|
|
@@ -4065,7 +4327,7 @@
|
|
|
4065
4327
|
StockLocationComponent.decorators = [
|
|
4066
4328
|
{ type: i0.Component, args: [{
|
|
4067
4329
|
selector: "co-stock-location",
|
|
4068
|
-
template: "\n <div class=\"stock-grid\">\n <co-stock-location-popup\n [selectedWarehouse]=\"selectedWarehouse\"\n [articleFlat]=\"articleFlat\"\n [selectedLocationNo]=\"selectedLocationNo\"\n [stockLocations]=\"stockLocations\"\n [articleDetailsInformation]=\"articleDetailsInformation\"\n [articleStockInfo]=\"articleStockInfo\"\n [selectedArticleDetailsData]=\"selectedArticleDetailsData\"\n [showConfirmationDialog]=\"showConfirmationDialog\"\n [newStockLine]=\"newStockLine\"\n (togglePopupEvent)=\"showConfirmationDialog = $event\"\n (updateGridData)=\"articleStockInfo = $event\"\n\n ></co-stock-location-popup>\n <co-simple-grid [data]=\"articleStockInfo\"\n class=\"simple-grid\"\n [showAdd]=\"true\"\n [inlineEdit]=\"false\"\n [showToolbar]=\"true\"\n (addRow)=\"handleAddRow()\"\n >\n <co-simple-grid-column [headerText]=\"'STOCK' | localize\" [field]=\"'amountInStock'\">\n <ng-template #template let-row=\"row\">\n <div class=\"stock-amount\" (click)=\"onOkClickSendLocations(row)\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.EditPenRegular)\"></co-icon>\n <span [textContent]=\"row['amountInStock']\"></span>\n </div>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [width]=\"150\" [headerText]=\"'LOCATION' | localize\" [field]=\"'locationNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <co-list-of-values\n [model]=\"locationForNumber(row['locationNo'])\"\n [collection]=\"stockLocations\"\n [displayField]=\"'description'\"\n [label]=\"'LOCATION' | localize\"\n [required]=\"true\"\n (modelChange)=\"locationChanged(row, $event)\"\n ></co-list-of-values>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column *ngIf=\"articleFlat?.batch\" [headerText]=\"'BATCH' | localize\" [field]=\"'batchNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <co-input-text [model]=\"selectedArticleDetailsData.batchNo\"\n [placeholder]=\"'BATCH' | localize\"\n (modelChange)=\"row['batchNo'] = $event\"\n ></co-input-text>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column *ngIf=\"articleFlat?.serial\" [headerText]=\"'SERIAL_NO' | localize\" [field]=\"'serialNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <co-input-text [model]=\"selectedArticleDetailsData.serialNo\"\n [placeholder]=\"'SERIAL_NO' | localize\"\n (modelChange)=\"row['serialNo'] = $event\"\n ></co-input-text>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ALLOCATED' | localize\" [field]=\"'stockAssigned'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row['stockAssigned']\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AVAILABLE_STOCK' | localize\" [field]=\"'amountInStockFree'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row['amountInStockFree']\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'VALUTA' | localize\" [field]=\"'currency'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row['currency']\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'PURCHASE_PRICE' | localize\" [field]=\"'purchasePrice'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row['purchasePrice']\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'SUPPLIERNR' | localize\" [field]=\"'supplierNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row['supplierNo']\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [readonly]=\"true\" [headerText]=\"'TRANSFER' | localize\" [field]=\"'transfer'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.DeliveryTruck)\"\n (click)=\"handleStockTransferClick(row)\"></co-icon>\n </ng-template>\n <ng-template #editTemplate></ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [readonly]=\"true\" [headerText]=\"'STICKER' | localize\" [field]=\"'sticker'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\"\n (click)=\"openSendMethodDialog(row)\"></co-icon>\n </ng-template>\n <ng-template #editTemplate></ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n </div>\n ",
|
|
4330
|
+
template: "\n <div class=\"stock-grid\">\n <div class=\"stock-transfer-wrapper\">\n <co-stock-transfer *ngIf=\"showStockTransfer\"\n class=\"stock-transfer-dialog\"\n [articleToTransfer]=\"articleDetails\"\n (handleStickerClicked)=\"handleStickerClicked.emit($event)\"\n [allWarehouses]=\"allWarehouses\"\n [stockLocations]=\"stockLocations\"\n [articleFlat]=\"articleFlat\"\n [showStockTransfer]=\"showStockTransfer\"\n (showStockTransferChange)=\"onShowStockTransferChange($event)\">\n </co-stock-transfer>\n </div>\n <co-stock-location-popup\n [selectedWarehouse]=\"selectedWarehouse\"\n [articleFlat]=\"articleFlat\"\n [selectedLocationNo]=\"selectedLocationNo\"\n [stockLocations]=\"stockLocations\"\n [articleDetailsInformation]=\"articleDetailsInformation\"\n [articleStockInfo]=\"articleStockInfo\"\n [selectedArticleDetailsData]=\"selectedArticleDetailsData\"\n [showConfirmationDialog]=\"showConfirmationDialog\"\n [newStockLine]=\"newStockLine\"\n (togglePopupEvent)=\"showConfirmationDialog = $event\"\n (updateGridData)=\"articleStockInfo = $event\"\n\n ></co-stock-location-popup>\n <co-simple-grid [data]=\"articleStockInfo\"\n class=\"simple-grid\"\n [showAdd]=\"true\"\n [inlineEdit]=\"false\"\n [showToolbar]=\"true\"\n (addRow)=\"handleAddRow()\"\n >\n <co-simple-grid-column [headerText]=\"'STOCK' | localize\" [field]=\"'amountInStock'\">\n <ng-template #template let-row=\"row\">\n <div class=\"stock-amount\" (click)=\"onOkClickSendLocations(row)\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.EditPenRegular)\"></co-icon>\n <span [textContent]=\"row['amountInStock']\"></span>\n </div>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [width]=\"150\" [headerText]=\"'LOCATION' | localize\" [field]=\"'locationNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <co-list-of-values\n [model]=\"locationForNumber(row['locationNo'])\"\n [collection]=\"stockLocations\"\n [displayField]=\"'description'\"\n [label]=\"'LOCATION' | localize\"\n [required]=\"true\"\n (modelChange)=\"locationChanged(row, $event)\"\n ></co-list-of-values>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column *ngIf=\"articleFlat?.batch\" [headerText]=\"'BATCH' | localize\" [field]=\"'batchNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <co-input-text [model]=\"selectedArticleDetailsData.batchNo\"\n [placeholder]=\"'BATCH' | localize\"\n (modelChange)=\"row['batchNo'] = $event\"\n ></co-input-text>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column *ngIf=\"articleFlat?.serial\" [headerText]=\"'SERIAL_NO' | localize\" [field]=\"'serialNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <co-input-text [model]=\"selectedArticleDetailsData.serialNo\"\n [placeholder]=\"'SERIAL_NO' | localize\"\n (modelChange)=\"row['serialNo'] = $event\"\n ></co-input-text>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'ALLOCATED' | localize\" [field]=\"'stockAssigned'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row['stockAssigned']\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'AVAILABLE_STOCK' | localize\" [field]=\"'amountInStockFree'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row['amountInStockFree']\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'VALUTA' | localize\" [field]=\"'currency'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row['currency']\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'PURCHASE_PRICE' | localize\" [field]=\"'purchasePrice'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row['purchasePrice']\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [headerText]=\"'SUPPLIERNR' | localize\" [field]=\"'supplierNo'\">\n <ng-template #editTemplate let-row=\"row\">\n <span [textContent]=\"row['supplierNo']\"></span>\n </ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [readonly]=\"true\" [headerText]=\"'TRANSFER' | localize\" [field]=\"'transfer'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.DeliveryTruck)\"\n (click)=\"handleStockTransferClick(row)\"></co-icon>\n </ng-template>\n <ng-template #editTemplate></ng-template>\n </co-simple-grid-column>\n <co-simple-grid-column [readonly]=\"true\" [headerText]=\"'STICKER' | localize\" [field]=\"'sticker'\">\n <ng-template #template let-row=\"row\">\n <co-icon class=\"menu-icon\" [iconData]=\"iconCacheService.getIcon(icons.Print)\"\n (click)=\"openSendMethodDialog(row)\"></co-icon>\n </ng-template>\n <ng-template #editTemplate></ng-template>\n </co-simple-grid-column>\n </co-simple-grid>\n </div>\n ",
|
|
4069
4331
|
encapsulation: i0.ViewEncapsulation.None
|
|
4070
4332
|
},] }
|
|
4071
4333
|
];
|
|
@@ -4077,11 +4339,16 @@
|
|
|
4077
4339
|
StockLocationComponent.propDecorators = {
|
|
4078
4340
|
articleStockInfo: [{ type: i0.Input }],
|
|
4079
4341
|
articleStockInformation: [{ type: i0.Input }],
|
|
4342
|
+
articleWarehouse: [{ type: i0.Input }],
|
|
4343
|
+
allWarehouses: [{ type: i0.Input }],
|
|
4080
4344
|
article: [{ type: i0.Input }],
|
|
4345
|
+
showStockTransfer: [{ type: i0.Input }],
|
|
4081
4346
|
articleFlat: [{ type: i0.Input }],
|
|
4082
4347
|
dataWareHouseCode: [{ type: i0.Input }],
|
|
4083
4348
|
transferIconClicked: [{ type: i0.Output }],
|
|
4084
4349
|
sendMethodDialogClicked: [{ type: i0.Output }],
|
|
4350
|
+
showStockTransferChange: [{ type: i0.Output }],
|
|
4351
|
+
handleStickerClicked: [{ type: i0.Output }],
|
|
4085
4352
|
selectedWarehouse: [{ type: i0.Input }],
|
|
4086
4353
|
stockLocations: [{ type: i0.Input }]
|
|
4087
4354
|
};
|
|
@@ -4751,7 +5018,7 @@
|
|
|
4751
5018
|
StockLocationPopupComponent.decorators = [
|
|
4752
5019
|
{ type: i0.Component, args: [{
|
|
4753
5020
|
selector: "co-stock-location-popup",
|
|
4754
|
-
template: "\n <div class=\"stock-grid\">\n <co-dialog *ngIf=\"showConfirmationDialog\"\n [showCloseIcon]=\"true\"\n [modal]=\"true\"\n (closeClick)=\"togglePopup()\"\n [headerTemplate]=\"headerTemplate\"\n [footerTemplate]=\"footerTemplate\">\n <ng-template #headerTemplate>\n <div class=\"co-dialog-header-title-wrapper\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.Cubes)\"></co-icon>\n <div class=\"co-dialog-header-title\" [textContent]=\"'CONFIRM_STOCK_CHANGE' | localize\"></div>\n </div>\n </ng-template>\n <div class=\"dialog-wrapper\">\n <div class=\"stock-dialog-header\">\n <span class=\"stock-header\" *ngIf=\"newStockLine\" [textContent]=\"'NEW_STOCK_LINE' | localize\"></span>\n <span class=\"stock-header\" *ngIf=\"!newStockLine\" [textContent]=\"'CHANGE_STOCK_LINE' | localize\"></span>\n </div>\n <div class=\"stock-dialog-row\">\n <co-input-text [model]=\"selectedWarehouse.warehouseDescription\"\n [placeholder]=\"'WAREHOUSE' | localize\"\n [readonly]=\"true\"\n ></co-input-text>\n\n <co-list-of-values\n [model]=\"locationForNumber(selectedLocationNo)\"\n [collection]=\"stockLocations\"\n [displayField]=\"'locationNo'\"\n [label]=\"'LOCATION' | localize\"\n [required]=\"true\"\n (modelChange)=\"locationChanged($event)\"\n ></co-list-of-values>\n </div>\n <div class=\"stock-dialog-row\">\n <co-input-text [(model)]=\"selectedArticleDetailsData.serialNo\"\n [placeholder]=\"'SERIAL_NO' | localize\"\n [readonly]=\"false\"\n ></co-input-text>\n <co-input-text [(model)]=\"selectedArticleDetailsData.batchNo\"\n [placeholder]=\"'BATCH' | localize\"\n [readonly]=\"false\"\n ></co-input-text>\n </div>\n <div class=\"stock-dialog-row\">\n <div class=\"stock-dialog-row-row\">\n <co-input-text [model]=\"articleStockInfo[0]?.purchasePrice | currency:'EUR'\"\n [placeholder]=\"'PURCHASE_PRICE' | localize\"\n [readonly]=\"false\"\n ></co-input-text>\n <co-input-text [(model)]=\"articleStockInfo[0].currency\"\n [placeholder]=\"'VALUTA' | localize\"\n [readonly]=\"false\"\n ></co-input-text>\n </div>\n <co-input-
|
|
5021
|
+
template: "\n <div class=\"stock-grid\">\n <co-dialog *ngIf=\"showConfirmationDialog\"\n [showCloseIcon]=\"true\"\n [modal]=\"true\"\n (closeClick)=\"togglePopup()\"\n [headerTemplate]=\"headerTemplate\"\n [footerTemplate]=\"footerTemplate\">\n <ng-template #headerTemplate>\n <div class=\"co-dialog-header-title-wrapper\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icons.Cubes)\"></co-icon>\n <div class=\"co-dialog-header-title\" [textContent]=\"'CONFIRM_STOCK_CHANGE' | localize\"></div>\n </div>\n </ng-template>\n <div class=\"dialog-wrapper\">\n <div class=\"stock-dialog-header\">\n <span class=\"stock-header\" *ngIf=\"newStockLine\" [textContent]=\"'NEW_STOCK_LINE' | localize\"></span>\n <span class=\"stock-header\" *ngIf=\"!newStockLine\" [textContent]=\"'CHANGE_STOCK_LINE' | localize\"></span>\n </div>\n <div class=\"stock-dialog-row\">\n <co-input-text [model]=\"selectedWarehouse.warehouseDescription\"\n [placeholder]=\"'WAREHOUSE' | localize\"\n [readonly]=\"true\"\n ></co-input-text>\n\n <co-list-of-values\n [model]=\"locationForNumber(selectedLocationNo)\"\n [collection]=\"stockLocations\"\n [displayField]=\"'locationNo'\"\n [label]=\"'LOCATION' | localize\"\n [required]=\"true\"\n (modelChange)=\"locationChanged($event)\"\n ></co-list-of-values>\n </div>\n <div class=\"stock-dialog-row\">\n <co-input-text [(model)]=\"selectedArticleDetailsData.serialNo\"\n [placeholder]=\"'SERIAL_NO' | localize\"\n [readonly]=\"false\"\n ></co-input-text>\n <co-input-text [(model)]=\"selectedArticleDetailsData.batchNo\"\n [placeholder]=\"'BATCH' | localize\"\n [readonly]=\"false\"\n ></co-input-text>\n </div>\n <div class=\"stock-dialog-row\">\n <div class=\"stock-dialog-row-row\">\n <co-input-text [model]=\"articleStockInfo[0]?.purchasePrice | currency:'EUR'\"\n [placeholder]=\"'PURCHASE_PRICE' | localize\"\n [readonly]=\"false\"\n ></co-input-text>\n <co-input-text [(model)]=\"articleStockInfo[0].currency\"\n [placeholder]=\"'VALUTA' | localize\"\n [readonly]=\"false\"\n ></co-input-text>\n </div>\n <co-input-date [model]=\"selectedArticleDetailsData?.entryDate | date\"\n [placeholder]=\"'DATE' | localize\"\n [readonly]=\"false\"\n ></co-input-date>\n </div>\n <div class=\"stock-dialog-row\">\n <co-list-of-values [label]=\"'STATUS' | localize\"\n [model]=\"statusForId(selectedArticleDetailsData?.stockStateId)\"\n [collection]=\"stockStatus\"\n [displayField]=\"'stateDescription'\"\n (modelChange)=\"handleStockStatusChange($event)\"\n ></co-list-of-values>\n <co-input-text [placeholder]=\"'REMARK' | localize\"\n (modelChange)=\"handleStockStatusRemarkChange($event)\"></co-input-text>\n </div>\n <co-input-number-picker\n [(model)]=\"selectedArticleDetailsData.amountInStock\"\n [label]=\"'STOCK' | localize\"\n (modelChange)=\"amountInStockChanged($event)\"\n [min]=\"1\"\n ></co-input-number-picker>\n </div>\n <ng-template #footerTemplate>\n <div class=\"button-wrapper ok-cancel-buttons\">\n <co-button class=\"save-button\"\n (click)=\"handleOkClick()\"\n [iconData]=\"iconCacheService.getIcon(icons.CheckDuotone)\"\n [disabled]=\"disabled()\">\n </co-button>\n <co-button class=\"cancel-button\"\n (click)=\"togglePopup()\"\n [iconData]=\"iconCacheService.getIcon(icons.CrossSkinny)\">\n </co-button>\n </div>\n </ng-template>\n </co-dialog>\n </div>\n ",
|
|
4755
5022
|
encapsulation: i0.ViewEncapsulation.None
|
|
4756
5023
|
},] }
|
|
4757
5024
|
];
|
|
@@ -4799,7 +5066,8 @@
|
|
|
4799
5066
|
StockStatusbarModule,
|
|
4800
5067
|
corecomponents_v12.ListOfValuesModule,
|
|
4801
5068
|
LocalizationModule,
|
|
4802
|
-
corecomponents_v12.PopupModule
|
|
5069
|
+
corecomponents_v12.PopupModule,
|
|
5070
|
+
corecomponents_v12.InputDatePickerModule
|
|
4803
5071
|
],
|
|
4804
5072
|
declarations: [
|
|
4805
5073
|
StockComponent,
|
|
@@ -4882,6 +5150,7 @@
|
|
|
4882
5150
|
this.REFERENCE = 'REFERENCE';
|
|
4883
5151
|
this.RELATION_ID = 'RELATION_ID';
|
|
4884
5152
|
this.RELATION_NR = 'RELATION_NR';
|
|
5153
|
+
this.REMARK = 'REMARK';
|
|
4885
5154
|
this.RESERVED = 'RESERVED';
|
|
4886
5155
|
this.QUANTITY = 'QUANTITY';
|
|
4887
5156
|
this.SEARCH = 'SEARCH';
|
|
@@ -4889,6 +5158,7 @@
|
|
|
4889
5158
|
this.SERIE_NO = 'SERIE_NO';
|
|
4890
5159
|
this.STANDARD_WAREHOUSE = 'STANDARD_WAREHOUSE';
|
|
4891
5160
|
this.STANDARD_LOCATION = 'STANDARD_LOCATION';
|
|
5161
|
+
this.STATUS = 'STATUS';
|
|
4892
5162
|
this.STICKER = 'STICKER';
|
|
4893
5163
|
this.STOCK = 'STOCK';
|
|
4894
5164
|
this.STOCK_DETAILS = 'STOCK_DETAILS';
|
|
@@ -7119,14 +7389,74 @@
|
|
|
7119
7389
|
this._linkedTags = [];
|
|
7120
7390
|
}
|
|
7121
7391
|
Object.defineProperty(SimpleTagsComponent.prototype, "tags", {
|
|
7392
|
+
get: function () {
|
|
7393
|
+
return this._tags;
|
|
7394
|
+
},
|
|
7122
7395
|
set: function (tags) {
|
|
7123
7396
|
this._tags = tags;
|
|
7124
|
-
this.setRootDisplayTags();
|
|
7125
7397
|
},
|
|
7126
7398
|
enumerable: false,
|
|
7127
7399
|
configurable: true
|
|
7128
7400
|
});
|
|
7129
7401
|
Object.defineProperty(SimpleTagsComponent.prototype, "linkedTags", {
|
|
7402
|
+
get: function () {
|
|
7403
|
+
return this._linkedTags;
|
|
7404
|
+
},
|
|
7405
|
+
set: function (tags) {
|
|
7406
|
+
this._linkedTags = tags;
|
|
7407
|
+
},
|
|
7408
|
+
enumerable: false,
|
|
7409
|
+
configurable: true
|
|
7410
|
+
});
|
|
7411
|
+
SimpleTagsComponent.prototype.showClass = function () {
|
|
7412
|
+
return true;
|
|
7413
|
+
};
|
|
7414
|
+
SimpleTagsComponent.prototype.handleSaveTags = function () {
|
|
7415
|
+
this.saveClick.next(this._linkedTags);
|
|
7416
|
+
this.closeClick.next();
|
|
7417
|
+
};
|
|
7418
|
+
return SimpleTagsComponent;
|
|
7419
|
+
}());
|
|
7420
|
+
SimpleTagsComponent.decorators = [
|
|
7421
|
+
{ type: i0.Component, args: [{
|
|
7422
|
+
selector: "co-simple-tags",
|
|
7423
|
+
template: "\n <co-dialog\n [headerTemplate]=\"headerTemplate\"\n [footerTemplate]=\"footerTemplate\"\n (closeClick)=\"closeClick.emit()\"\n >\n <ng-template #headerTemplate>\n <div class=\"header-wrapper\">\n <co-icon [iconData]=\"iconCacheService.getIcon(icon.TagRegular)\"></co-icon>\n <span class=\"co-dialog-header-title\" [textContent]=\"'Tags'\"></span>\n </div>\n </ng-template>\n\n <div class=\"dialog-content-wrapper\">\n <co-simple-tags-form [tags]=\"tags\" [(linkedTags)]=\"linkedTags\"></co-simple-tags-form>\n </div>\n\n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <co-button class=\"save-button\"\n [iconData]=\"iconCacheService.getIcon(icon.CheckDuotone)\"\n (click)=\"handleSaveTags()\"\n ></co-button>\n <co-button\n class=\"close-button\"\n [iconData]=\"iconCacheService.getIcon(icon.CrossSkinny)\"\n (click)=\"closeClick.next()\"\n ></co-button>\n </div>\n </ng-template>\n </co-dialog>\n ",
|
|
7424
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
7425
|
+
},] }
|
|
7426
|
+
];
|
|
7427
|
+
SimpleTagsComponent.ctorParameters = function () { return [
|
|
7428
|
+
{ type: IconCacheService },
|
|
7429
|
+
{ type: SharedService }
|
|
7430
|
+
]; };
|
|
7431
|
+
SimpleTagsComponent.propDecorators = {
|
|
7432
|
+
tags: [{ type: i0.Input }],
|
|
7433
|
+
linkedTags: [{ type: i0.Input }],
|
|
7434
|
+
closeClick: [{ type: i0.Output }],
|
|
7435
|
+
saveClick: [{ type: i0.Output }],
|
|
7436
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-simple-tags",] }]
|
|
7437
|
+
};
|
|
7438
|
+
|
|
7439
|
+
var SimpleTagsFormComponent = /** @class */ (function () {
|
|
7440
|
+
function SimpleTagsFormComponent(iconCacheService, sharedService) {
|
|
7441
|
+
this.iconCacheService = iconCacheService;
|
|
7442
|
+
this.sharedService = sharedService;
|
|
7443
|
+
this.icon = exports["ɵbu"];
|
|
7444
|
+
this.linkedTagsChange = new i0.EventEmitter();
|
|
7445
|
+
this.breadCrumbs = [];
|
|
7446
|
+
this.displayTags = [];
|
|
7447
|
+
this.searchString = '';
|
|
7448
|
+
this._tags = [];
|
|
7449
|
+
this._linkedTags = [];
|
|
7450
|
+
}
|
|
7451
|
+
Object.defineProperty(SimpleTagsFormComponent.prototype, "tags", {
|
|
7452
|
+
set: function (tags) {
|
|
7453
|
+
this._tags = tags;
|
|
7454
|
+
this.setRootDisplayTags();
|
|
7455
|
+
},
|
|
7456
|
+
enumerable: false,
|
|
7457
|
+
configurable: true
|
|
7458
|
+
});
|
|
7459
|
+
Object.defineProperty(SimpleTagsFormComponent.prototype, "linkedTags", {
|
|
7130
7460
|
get: function () {
|
|
7131
7461
|
return this._linkedTags;
|
|
7132
7462
|
},
|
|
@@ -7138,15 +7468,15 @@
|
|
|
7138
7468
|
enumerable: false,
|
|
7139
7469
|
configurable: true
|
|
7140
7470
|
});
|
|
7141
|
-
|
|
7471
|
+
SimpleTagsFormComponent.prototype.showClass = function () {
|
|
7142
7472
|
return true;
|
|
7143
7473
|
};
|
|
7144
|
-
|
|
7474
|
+
SimpleTagsFormComponent.prototype.setRootDisplayTags = function () {
|
|
7145
7475
|
this.displayTags = this._tags.filter(function (tag) { return tag.treeLevel === 0; });
|
|
7146
7476
|
this.breadCrumbs = [];
|
|
7147
7477
|
this.searchString = '';
|
|
7148
7478
|
};
|
|
7149
|
-
|
|
7479
|
+
SimpleTagsFormComponent.prototype.handleTagSelected = function (selectedTag) {
|
|
7150
7480
|
if (selectedTag.tagType === 'TR' || selectedTag.tagType === 'TG') {
|
|
7151
7481
|
if (selectedTag !== this.breadCrumbs[0]) {
|
|
7152
7482
|
this.breadCrumbs.push(selectedTag);
|
|
@@ -7156,23 +7486,23 @@
|
|
|
7156
7486
|
});
|
|
7157
7487
|
}
|
|
7158
7488
|
};
|
|
7159
|
-
|
|
7489
|
+
SimpleTagsFormComponent.prototype.handleCrumbClicked = function (tag, index) {
|
|
7160
7490
|
if (tag !== this.breadCrumbs[this.breadCrumbs.length - 1]) {
|
|
7161
7491
|
this.breadCrumbs.splice(index + 1);
|
|
7162
7492
|
this.handleTagSelected(tag);
|
|
7163
7493
|
}
|
|
7164
7494
|
};
|
|
7165
|
-
|
|
7495
|
+
SimpleTagsFormComponent.prototype.handleAddTag = function (event) {
|
|
7166
7496
|
var draggedTag = this.displayTags[event.previousIndex];
|
|
7167
7497
|
if (!this._linkedTags.includes(draggedTag)) {
|
|
7168
7498
|
this._linkedTags.push(this.displayTags[event.previousIndex]);
|
|
7169
7499
|
this._loadThumbnail(draggedTag);
|
|
7170
7500
|
}
|
|
7171
7501
|
};
|
|
7172
|
-
|
|
7502
|
+
SimpleTagsFormComponent.prototype.deleteLinkedTag = function (tag) {
|
|
7173
7503
|
this._linkedTags.splice(this._linkedTags.indexOf(tag), 1);
|
|
7174
7504
|
};
|
|
7175
|
-
|
|
7505
|
+
SimpleTagsFormComponent.prototype.searchCollection = function () {
|
|
7176
7506
|
var _this = this;
|
|
7177
7507
|
if (!this.searchString) {
|
|
7178
7508
|
this.searchString = '';
|
|
@@ -7200,11 +7530,7 @@
|
|
|
7200
7530
|
this.displayTags = matchingObjects;
|
|
7201
7531
|
this.breadCrumbs = [];
|
|
7202
7532
|
};
|
|
7203
|
-
|
|
7204
|
-
this.saveClick.next(this._linkedTags);
|
|
7205
|
-
this.closeClick.next();
|
|
7206
|
-
};
|
|
7207
|
-
SimpleTagsComponent.prototype._loadThumbnail = function (tagTreeItem) {
|
|
7533
|
+
SimpleTagsFormComponent.prototype._loadThumbnail = function (tagTreeItem) {
|
|
7208
7534
|
if (tagTreeItem.image && tagTreeItem.image.documentId && !tagTreeItem.image.thumbnailBody) {
|
|
7209
7535
|
this.sharedService.getDocumentContent(tagTreeItem.image.documentId, true)
|
|
7210
7536
|
.then(function (result) {
|
|
@@ -7214,27 +7540,50 @@
|
|
|
7214
7540
|
});
|
|
7215
7541
|
}
|
|
7216
7542
|
};
|
|
7217
|
-
return
|
|
7543
|
+
return SimpleTagsFormComponent;
|
|
7218
7544
|
}());
|
|
7219
|
-
|
|
7545
|
+
SimpleTagsFormComponent.decorators = [
|
|
7220
7546
|
{ type: i0.Component, args: [{
|
|
7221
|
-
selector: "co-simple-tags",
|
|
7222
|
-
template: "\n <
|
|
7547
|
+
selector: "co-simple-tags-form",
|
|
7548
|
+
template: "\n <div class=\"form-content-wrapper\">\n <div class=\"collection-navigation co-small-scrollbar\">\n <span class=\"title\" [textContent]=\"'Beschikbare tags'\"></span>\n <co-input-search\n [(model)]=\"searchString\"\n [placeholder]=\"'Search for tag name'\"\n (search)=\"searchCollection()\"\n (modelChange)=\"searchCollection()\"\n (rightIconClick)=\"searchCollection()\"\n ></co-input-search>\n <div class=\"breadcrumbs\">\n <co-icon\n [iconData]=\"iconCacheService.getIcon(icon.HouseBlankRegular)\"\n (click)=\"setRootDisplayTags()\"\n ></co-icon>\n <div class=\"crumbs\">\n <span class=\"spacer\" [textContent]=\"'|'\"></span>\n <div class=\"crumb\" *ngFor=\"let crumb of breadCrumbs; let index = index\" (click)=\"handleCrumbClicked(crumb, index)\">\n <span class=\"spacer\" *ngIf=\"index !== 0\" [textContent]=\"'/'\"></span>\n <span [textContent]=\"crumb.description\"></span>\n </div>\n </div>\n </div>\n <div class=\"collection-view\"\n cdkDropList\n cdkDropListSortingDisabled\n #collectionList=\"cdkDropList\"\n [cdkDropListData]=\"displayTags\"\n [cdkDropListConnectedTo]=\"[linkedList]\">\n <div class=\"collection-item\"\n *ngFor=\"let tag of displayTags\"\n cdkDrag\n [cdkDragDisabled]=\"tag.tagType !== 'T' || linkedTags.includes(tag)\"\n [class.draggable]=\"tag.tagType === 'T' && !linkedTags.includes(tag)\"\n [class.disabled]=\"linkedTags.includes(tag)\"\n (click)=\"handleTagSelected(tag)\">\n\n <div class=\"collection-item\" *cdkDragPlaceholder>\n <co-icon *ngIf=\"tag.tagType === 'T'\" [iconData]=\"iconCacheService.getIcon(icon.TagRegular)\"></co-icon>\n <span [textContent]=\"tag.description\"></span>\n </div>\n\n <div *cdkDragPreview><co-icon [iconData]=\"iconCacheService.getIcon(icon.TagRegular)\"></co-icon></div>\n\n <co-icon *ngIf=\"tag.tagType === 'T'\" [iconData]=\"iconCacheService.getIcon(icon.TagRegular)\"></co-icon>\n <span [textContent]=\"tag.description\"></span>\n </div>\n </div>\n </div>\n\n <div class=\"linked-tags-view\">\n <span class=\"title\" [textContent]=\"'Gekoppelde tags'\"></span>\n <div class=\"view-wrapper\"\n cdkDropList\n #linkedList=\"cdkDropList\"\n [cdkDropListData]=\"linkedTags\"\n (cdkDropListDropped)=\"handleAddTag($event)\">\n <div class=\"tag-item\" *ngFor=\"let tag of linkedTags\" [cdkDragDisabled]=\"true\" cdkDrag [style.background-color]=\"tag.color?.replace('0x', '#')\">\n <div class=\"placeholderLinked\" *cdkDragPlaceholder></div>\n\n <div class=\"thumbnail-description\">\n <co-icon *ngIf=\"!tag.image?.thumbnailBody\" [iconData]=\"iconCacheService.getIcon(icon.TagRegular)\"></co-icon>\n <div *ngIf=\"tag.image\" class=\"thumbnail-wrapper\">\n <img [src]=\"tag.image.thumbnailBodyAsDataUri\">\n </div>\n\n <div class=\"description-wrapper\">\n <span [textContent]=\"tag.parentDescription\"></span>\n <span class=\"description\" [textContent]=\"tag.description\"></span>\n </div>\n </div>\n <co-icon class=\"delete-tag\" (click)=\"deleteLinkedTag(tag)\"\n [iconData]=\"iconCacheService.getIcon(icon.XSolid)\"\n ></co-icon>\n </div>\n </div>\n </div>\n </div>\n ",
|
|
7223
7549
|
encapsulation: i0.ViewEncapsulation.None
|
|
7224
7550
|
},] }
|
|
7225
7551
|
];
|
|
7226
|
-
|
|
7552
|
+
SimpleTagsFormComponent.ctorParameters = function () { return [
|
|
7227
7553
|
{ type: IconCacheService },
|
|
7228
7554
|
{ type: SharedService }
|
|
7229
7555
|
]; };
|
|
7230
|
-
|
|
7556
|
+
SimpleTagsFormComponent.propDecorators = {
|
|
7231
7557
|
tags: [{ type: i0.Input }],
|
|
7232
7558
|
linkedTags: [{ type: i0.Input }],
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
showClass: [{ type: i0.HostBinding, args: ["class.co-simple-tags",] }]
|
|
7559
|
+
linkedTagsChange: [{ type: i0.Output }],
|
|
7560
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-simple-tags-form",] }]
|
|
7236
7561
|
};
|
|
7237
7562
|
|
|
7563
|
+
var SimpleTagsFormModule = /** @class */ (function () {
|
|
7564
|
+
function SimpleTagsFormModule() {
|
|
7565
|
+
}
|
|
7566
|
+
return SimpleTagsFormModule;
|
|
7567
|
+
}());
|
|
7568
|
+
SimpleTagsFormModule.decorators = [
|
|
7569
|
+
{ type: i0.NgModule, args: [{
|
|
7570
|
+
imports: [
|
|
7571
|
+
common.CommonModule,
|
|
7572
|
+
corecomponents_v12.CoDialogModule,
|
|
7573
|
+
corecomponents_v12.InputSearchModule,
|
|
7574
|
+
corecomponents_v12.IconModule,
|
|
7575
|
+
dragDrop.DragDropModule,
|
|
7576
|
+
corecomponents_v12.ButtonModule
|
|
7577
|
+
],
|
|
7578
|
+
declarations: [
|
|
7579
|
+
SimpleTagsFormComponent
|
|
7580
|
+
],
|
|
7581
|
+
exports: [
|
|
7582
|
+
SimpleTagsFormComponent
|
|
7583
|
+
]
|
|
7584
|
+
},] }
|
|
7585
|
+
];
|
|
7586
|
+
|
|
7238
7587
|
var SimpleTagsModule = /** @class */ (function () {
|
|
7239
7588
|
function SimpleTagsModule() {
|
|
7240
7589
|
}
|
|
@@ -7248,7 +7597,8 @@
|
|
|
7248
7597
|
corecomponents_v12.InputSearchModule,
|
|
7249
7598
|
corecomponents_v12.IconModule,
|
|
7250
7599
|
dragDrop.DragDropModule,
|
|
7251
|
-
corecomponents_v12.ButtonModule
|
|
7600
|
+
corecomponents_v12.ButtonModule,
|
|
7601
|
+
SimpleTagsFormModule
|
|
7252
7602
|
],
|
|
7253
7603
|
declarations: [
|
|
7254
7604
|
SimpleTagsComponent
|
|
@@ -10593,7 +10943,11 @@
|
|
|
10593
10943
|
}
|
|
10594
10944
|
};
|
|
10595
10945
|
ActivityListComponent.prototype.getDateString = function (date) {
|
|
10596
|
-
|
|
10946
|
+
var day = date.getDate();
|
|
10947
|
+
var month = this._dictionaryService.get(ALL_MONTHS[date.getMonth()]);
|
|
10948
|
+
var hours = date.getHours().toString().padStart(2, '0');
|
|
10949
|
+
var minutes = date.getMinutes().toString().padStart(2, '0');
|
|
10950
|
+
return day + " " + month + " " + hours + ":" + minutes;
|
|
10597
10951
|
};
|
|
10598
10952
|
ActivityListComponent.prototype.getActivityIcon = function (activity) {
|
|
10599
10953
|
switch (activity.activityType) {
|
|
@@ -10639,7 +10993,7 @@
|
|
|
10639
10993
|
ActivityListComponent.decorators = [
|
|
10640
10994
|
{ type: i0.Component, args: [{
|
|
10641
10995
|
selector: "co-activity-list",
|
|
10642
|
-
template: "\n <div class=\"activity-list-wrapper\">\n <div class=\"activity-wrapper\" [class.customer-reply-wrapper]=\"(getRelationKind(activity.author) === RelationKind.Customer)\" *ngFor=\"let activity of activities\" >\n <div class=\"activity-display\">\n <div class=\"activity-display-title\">\n <span>{{activity.author
|
|
10996
|
+
template: "\n <div class=\"activity-list-wrapper\">\n <div class=\"activity-wrapper\" [class.customer-reply-wrapper]=\"(getRelationKind(activity.author) === RelationKind.Customer)\" *ngFor=\"let activity of activities\" >\n <div class=\"activity-display\">\n <div class=\"activity-display-title\">\n <span>{{activity.author && (activity.author.initials || activity.author.familyName) ? (activity.author.initials || '') + ' ' + (activity.author.familyName || '') : ''}}</span>\n <span>{{getDateString(activity.lastActionDateTime)}}</span>\n <co-icon [iconData]=\"iconCacheService.getIcon(getActivityIcon(activity))\"></co-icon>\n </div>\n <div class=\"activity-display-content\" [class.customer-reply-content]=\"(getRelationKind(activity.author) === RelationKind.Customer)\">\n <div class=\"activity-display-body\">\n <span>{{activity.subDescription}}</span>\n </div>\n <div class=\"activity-display-footer\">\n <!--TODO discuss with Rob is we can gather the info needed to see which workflow triggers have previously been activated for this trigger-->\n <!--<div *ngIf=\"showState(activity)\" class=\"activity-state\">\n <span *ngIf=\"showAttachments(activity)\">{{activity.documents.length}}</span>\n </div>-->\n <co-icon *ngIf=\"showAttachments(activity)\" [iconData]=\"iconCacheService.getIcon(Icon.PaperclipRegular)\" (click)=\"openActivityPopup(activity)\"></co-icon>\n <span *ngIf=\"showAttachments(activity)\">{{activity.documents.length}}</span>\n <co-icon *ngIf=\"showWorkedTime(activity)\"\n [iconData]=\"iconCacheService.getIcon(Icon.ClockRegular)\"></co-icon>\n <span *ngIf=\"showWorkedTime(activity)\" >\n {{TimeUtils.ConvertToDuration(getWorkedTime(activity))}}</span>\n </div>\n </div>\n </div>\n </div>\n </div>\n <co-dialog *ngIf=\"showActivityPopup\" (closeClick)=\"showActivityPopup = false\">\n <co-files-upload [documents]=\"currentActivityDocuments\">\n </co-files-upload>\n </co-dialog>\n ",
|
|
10643
10997
|
encapsulation: i0.ViewEncapsulation.None
|
|
10644
10998
|
},] }
|
|
10645
10999
|
];
|
|
@@ -10685,6 +11039,7 @@
|
|
|
10685
11039
|
this.privateDelegatedActivityListViewModels = [];
|
|
10686
11040
|
this.filteredActivityListViewModels = [];
|
|
10687
11041
|
this.filteredDelegatedActivityListViewModels = [];
|
|
11042
|
+
this._showUsergroupActivities = false;
|
|
10688
11043
|
this._activities = [];
|
|
10689
11044
|
this._delegatedActivities = [];
|
|
10690
11045
|
//protected userService: UserService
|
|
@@ -10722,9 +11077,10 @@
|
|
|
10722
11077
|
Object.defineProperty(BaseActivityListComponent.prototype, "showUsergroupActivities", {
|
|
10723
11078
|
// TODO: return this.userService.showUsergroupActivities and allow to set properly;
|
|
10724
11079
|
get: function () {
|
|
10725
|
-
return
|
|
11080
|
+
return this._showUsergroupActivities;
|
|
10726
11081
|
},
|
|
10727
11082
|
set: function (value) {
|
|
11083
|
+
this._showUsergroupActivities = value;
|
|
10728
11084
|
},
|
|
10729
11085
|
enumerable: false,
|
|
10730
11086
|
configurable: true
|
|
@@ -10747,7 +11103,7 @@
|
|
|
10747
11103
|
BaseActivityListComponent.prototype.afterFilterApplied = function () {
|
|
10748
11104
|
};
|
|
10749
11105
|
BaseActivityListComponent.prototype.getTheActivities = function () {
|
|
10750
|
-
|
|
11106
|
+
this.getActivities();
|
|
10751
11107
|
this.getDelegatedActivities();
|
|
10752
11108
|
};
|
|
10753
11109
|
BaseActivityListComponent.prototype._removeNotShowing = function (listViewModels) {
|
|
@@ -10989,10 +11345,6 @@
|
|
|
10989
11345
|
ActivityCfgName["WorkedTime"] = "workedTime";
|
|
10990
11346
|
})(ActivityCfgName || (ActivityCfgName = {}));
|
|
10991
11347
|
|
|
10992
|
-
function OperationWithValidationCallback(object, object2, object3) {
|
|
10993
|
-
return Promise.resolve(new validationResult.ValidationResult());
|
|
10994
|
-
}
|
|
10995
|
-
|
|
10996
11348
|
var AppPopupButtonType;
|
|
10997
11349
|
(function (AppPopupButtonType) {
|
|
10998
11350
|
AppPopupButtonType[AppPopupButtonType["Ok"] = 0] = "Ok";
|
|
@@ -11005,13 +11357,13 @@
|
|
|
11005
11357
|
})(AppPopupButtonType || (AppPopupButtonType = {}));
|
|
11006
11358
|
|
|
11007
11359
|
var ModifyTaskFormComponent = /** @class */ (function () {
|
|
11008
|
-
function ModifyTaskFormComponent(_boFactory, sharedService
|
|
11360
|
+
function ModifyTaskFormComponent(_boFactory, sharedService, iconCacheService
|
|
11009
11361
|
//private _mediaMonitor: MediaMonitorService,
|
|
11010
11362
|
/*private _activityService: ActivityService*/
|
|
11011
11363
|
) {
|
|
11012
11364
|
this._boFactory = _boFactory;
|
|
11013
11365
|
this.sharedService = sharedService;
|
|
11014
|
-
this.
|
|
11366
|
+
this.iconCacheService = iconCacheService;
|
|
11015
11367
|
//public readonly TagCategory: typeof TagCategory = TagCategory;
|
|
11016
11368
|
this.TableNames = tableName_enum.TableName;
|
|
11017
11369
|
this.readonly = false;
|
|
@@ -11023,6 +11375,7 @@
|
|
|
11023
11375
|
this.activities = [];
|
|
11024
11376
|
this.table = tableName_enum.TableName.Tasks;
|
|
11025
11377
|
this.expandActivities = false;
|
|
11378
|
+
this.showTagPopup = false;
|
|
11026
11379
|
}
|
|
11027
11380
|
Object.defineProperty(ModifyTaskFormComponent.prototype, "activity", {
|
|
11028
11381
|
get: function () {
|
|
@@ -11064,6 +11417,7 @@
|
|
|
11064
11417
|
};
|
|
11065
11418
|
ModifyTaskFormComponent.prototype.ngOnInit = function () {
|
|
11066
11419
|
this._getActivities();
|
|
11420
|
+
this._getTags();
|
|
11067
11421
|
};
|
|
11068
11422
|
ModifyTaskFormComponent.prototype.showContent = function (menu) {
|
|
11069
11423
|
this.selectedMenu = menu;
|
|
@@ -11101,6 +11455,13 @@
|
|
|
11101
11455
|
this.expandActivities = true;
|
|
11102
11456
|
this.showWorkLog.emit();
|
|
11103
11457
|
};
|
|
11458
|
+
ModifyTaskFormComponent.prototype.handleEditTags = function () {
|
|
11459
|
+
this._getTags();
|
|
11460
|
+
this.showTagPopup = true;
|
|
11461
|
+
};
|
|
11462
|
+
ModifyTaskFormComponent.prototype.handleSaveTags = function (tags) {
|
|
11463
|
+
this.activity.task.tags = tags;
|
|
11464
|
+
};
|
|
11104
11465
|
ModifyTaskFormComponent.prototype._updateTaskObject = function (activity, prop) {
|
|
11105
11466
|
var cloneActivity = this._boFactory.makeWithRawBackendData(activity_bo.Activity, activity);
|
|
11106
11467
|
if (cloneActivity.isNew) {
|
|
@@ -11135,12 +11496,27 @@
|
|
|
11135
11496
|
});
|
|
11136
11497
|
});
|
|
11137
11498
|
};
|
|
11499
|
+
ModifyTaskFormComponent.prototype._getTags = function () {
|
|
11500
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11501
|
+
var _d;
|
|
11502
|
+
return __generator(this, function (_e) {
|
|
11503
|
+
switch (_e.label) {
|
|
11504
|
+
case 0:
|
|
11505
|
+
_d = this;
|
|
11506
|
+
return [4 /*yield*/, this.sharedService.getTagsFullTree(tabCategory_enum.TagCategory.tasks, true)];
|
|
11507
|
+
case 1:
|
|
11508
|
+
_d.allTags = _e.sent();
|
|
11509
|
+
return [2 /*return*/];
|
|
11510
|
+
}
|
|
11511
|
+
});
|
|
11512
|
+
});
|
|
11513
|
+
};
|
|
11138
11514
|
return ModifyTaskFormComponent;
|
|
11139
11515
|
}());
|
|
11140
11516
|
ModifyTaskFormComponent.decorators = [
|
|
11141
11517
|
{ type: i0.Component, args: [{
|
|
11142
11518
|
selector: "co-modify-task-form",
|
|
11143
|
-
template: "\n <div class=\"wrapper\">\n <div class=\"modify-task-header-wrapper\">\n <div class=\"modify-task-header\">\n <span class=\"header-menu\"\n [class.active]=\"selectedMenu === 'content-menu1'\"\n [textContent]=\"'TASK_DETAILS' | localize\"\n (click)=\"showContent('content-menu1')\"></span>\n <span class=\"header-menu\"\n [class.active]=\"selectedMenu === 'content-menu2'\"\n [textContent]=\"'TASK_INFORMATION' | localize\"\n (click)=\"showContent('content-menu2')\"></span>\n <span class=\"header-menu\"\n [class.active]=\"selectedMenu === 'content-menu3'\"\n [textContent]=\"'PLANNING' | localize\"\n (click)=\"showContent('content-menu3')\"></span>\n </div>\n </div>\n <div class=\"content-menu-wrapper narrow-scrollbar\">\n <div class=\"content-menu\" [hidden]=\"selectedMenu !== 'content-menu1'\">\n <div class=\"content-row-wrapper\">\n <div class=\"content-left\">\n <co-task-details [readonly]=\"readonly\"\n [table]=\"TableNames.Tasks\"\n [key]=\"key\"\n [(activity)]=\"activity\"\n (activityChange)=\"activityChange.emit($event)\"\n (showWorkLog)=\"handleShowWorkLow()\"\n noBorder\n ></co-task-details>\n <co-input-checkbox\n class=\"invoice-checkbox\"\n [label]=\"'MARKED' | localize\"\n [(model)]=\"activity.task.isInvoiced\">\n </co-input-checkbox>\n <div class=\"marked-time-wrapper\">\n <co-input-checkbox\n [(model)]=\"activity.task.workMandatory\"\n [label]=\"'TIMEREGISTRATION_MANDATORY' | localize\"\n noModuleService>\n </co-input-checkbox>\n <!-- TODO implement back later-->\n <!-- <arrow-link *ngIf=\"!readonly\" label=\"REGISTER_TIME_HERE\" (click)=\"handleRegisterWork()\"></arrow-link>-->\n </div>\n\n </div>\n <div class=\"content-right\">\n <div class=\"activity-content-header\" [textContent]=\"'PERSONS' | localize\"></div>\n <co-executive-summary-block\n [readonly]=\"readonly\"\n [(activity)]=\"activity\"\n (activityChange)=\"activityChange.emit($event)\" noBorder\n ></co-executive-summary-block>\n\n <!--TODO implement new file upload here-->\n <!-- <activity-attachments\n [(activity)]=\"activity\"\n [readonly]=\"readonly\"\n [key]=\"activity.task.id\"\n [noForceInput]=\"true\"\n (activityChange)=\"activityChange.emit($event)\"\n noBorder\n ></activity-attachments>-->\n </div>\n </div>\n <div class=\"activities-wrapper\">\n <co-activity-list [activities]=\"activities\">\n\n </co-activity-list>\n </div>\n </div>\n <div class=\"content-menu\" [hidden]=\"selectedMenu !== 'content-menu2'\">\n <co-status-summary-block\n [readonly]=\"readonly\"\n [(activity)]=\"activity\"\n [table]=\"TableNames.Tasks\"\n [key]=\"key\"\n (activityChange)=\"activityChange.emit($event)\" noBorder\n ></co-status-summary-block>\n <co-creation-summary-block\n [readonly]=\"readonly\"\n [(activity)]=\"activity\"\n (activityChange)=\"activityChange.emit($event)\" noBorder\n ></co-creation-summary-block>\n <!--<planning-summary-block\n [readonly]=\"readonly\"\n [(activity)]=\"activity\"\n (activityChange)=\"activityChange.emit($event)\" noBorder\n ></planning-summary-block>-->\n </div>\n <div class=\"content-menu\" [hidden]=\"selectedMenu !== 'content-menu3'\">\n <co-notification-summary-block\n [readonly]=\"readonly\"\n [(activity)]=\"activity\"\n (activityChange)=\"activityChange.emit($event)\" noBorder\n ></co-notification-summary-block>\n\n
|
|
11519
|
+
template: "\n <div class=\"wrapper\">\n <div class=\"modify-task-header-wrapper\">\n <div class=\"modify-task-header\">\n <span class=\"header-menu\"\n [class.active]=\"selectedMenu === 'content-menu1'\"\n [textContent]=\"'TASK_DETAILS' | localize\"\n (click)=\"showContent('content-menu1')\"></span>\n <span class=\"header-menu\"\n [class.active]=\"selectedMenu === 'content-menu2'\"\n [textContent]=\"'TASK_INFORMATION' | localize\"\n (click)=\"showContent('content-menu2')\"></span>\n <span class=\"header-menu\"\n [class.active]=\"selectedMenu === 'content-menu3'\"\n [textContent]=\"'PLANNING' | localize\"\n (click)=\"showContent('content-menu3')\"></span>\n </div>\n </div>\n <div class=\"content-menu-wrapper narrow-scrollbar\">\n <div class=\"content-menu\" [hidden]=\"selectedMenu !== 'content-menu1'\">\n <div class=\"content-row-wrapper\">\n <div class=\"content-left\">\n <co-task-details [readonly]=\"readonly\"\n [table]=\"TableNames.Tasks\"\n [key]=\"key\"\n [(activity)]=\"activity\"\n (activityChange)=\"activityChange.emit($event)\"\n (showWorkLog)=\"handleShowWorkLow()\"\n noBorder\n ></co-task-details>\n <co-input-checkbox\n class=\"invoice-checkbox\"\n [label]=\"'MARKED' | localize\"\n [(model)]=\"activity.task.isInvoiced\">\n </co-input-checkbox>\n <div class=\"marked-time-wrapper\">\n <co-input-checkbox\n [(model)]=\"activity.task.workMandatory\"\n [label]=\"'TIMEREGISTRATION_MANDATORY' | localize\"\n noModuleService>\n </co-input-checkbox>\n <!-- TODO implement back later-->\n <!-- <arrow-link *ngIf=\"!readonly\" label=\"REGISTER_TIME_HERE\" (click)=\"handleRegisterWork()\"></arrow-link>-->\n </div>\n\n </div>\n <div class=\"content-right\">\n <div class=\"activity-content-header\" [textContent]=\"'PERSONS' | localize\"></div>\n <co-executive-summary-block\n [readonly]=\"readonly\"\n [(activity)]=\"activity\"\n (activityChange)=\"activityChange.emit($event)\" noBorder\n ></co-executive-summary-block>\n\n <!--TODO implement new file upload here-->\n <!-- <activity-attachments\n [(activity)]=\"activity\"\n [readonly]=\"readonly\"\n [key]=\"activity.task.id\"\n [noForceInput]=\"true\"\n (activityChange)=\"activityChange.emit($event)\"\n noBorder\n ></activity-attachments>-->\n </div>\n </div>\n <div class=\"activities-wrapper\">\n <co-activity-list [activities]=\"activities\">\n\n </co-activity-list>\n </div>\n </div>\n <div class=\"content-menu\" [hidden]=\"selectedMenu !== 'content-menu2'\">\n <co-status-summary-block\n [readonly]=\"readonly\"\n [(activity)]=\"activity\"\n [table]=\"TableNames.Tasks\"\n [key]=\"key\"\n (activityChange)=\"activityChange.emit($event)\" noBorder\n ></co-status-summary-block>\n <co-creation-summary-block\n [readonly]=\"readonly\"\n [(activity)]=\"activity\"\n (activityChange)=\"activityChange.emit($event)\" noBorder\n ></co-creation-summary-block>\n <!--<planning-summary-block\n [readonly]=\"readonly\"\n [(activity)]=\"activity\"\n (activityChange)=\"activityChange.emit($event)\" noBorder\n ></planning-summary-block>-->\n </div>\n <div class=\"content-menu\" [hidden]=\"selectedMenu !== 'content-menu3'\">\n <co-notification-summary-block\n [readonly]=\"readonly\"\n [(activity)]=\"activity\"\n (activityChange)=\"activityChange.emit($event)\" noBorder\n ></co-notification-summary-block>\n\n <div class=\"edit-tags-wrapper\">\n <co-simple-tags-form [tags]=\"allTags\"\n [linkedTags]=\"activity.task.tags\">\n </co-simple-tags-form>\n </div>\n <div class=\"transaction-tag-wrapper\" *ngFor=\"let tag of activity.task.tags\">\n <div class=\"tag\" [textContent]=\"tag.description\"></div>\n </div>\n </div>\n </div>\n\n </div>\n ",
|
|
11144
11520
|
providers: [
|
|
11145
11521
|
corecomponents_v12.FormMasterService,
|
|
11146
11522
|
{
|
|
@@ -11152,7 +11528,8 @@
|
|
|
11152
11528
|
];
|
|
11153
11529
|
ModifyTaskFormComponent.ctorParameters = function () { return [
|
|
11154
11530
|
{ type: businessObjectFactory.BusinessObjectFactory },
|
|
11155
|
-
{ type: SharedService }
|
|
11531
|
+
{ type: SharedService },
|
|
11532
|
+
{ type: corecomponents_v12.IconCacheService }
|
|
11156
11533
|
]; };
|
|
11157
11534
|
ModifyTaskFormComponent.propDecorators = {
|
|
11158
11535
|
activity: [{ type: i0.Input }],
|
|
@@ -11171,11 +11548,12 @@
|
|
|
11171
11548
|
], ModifyTaskFormComponent.prototype, "forceReadonly", null);
|
|
11172
11549
|
|
|
11173
11550
|
var TaskModifierComponent = /** @class */ (function () {
|
|
11174
|
-
function TaskModifierComponent(_dialogService, _boFactory, _dictionary, iconService) {
|
|
11551
|
+
function TaskModifierComponent(_dialogService, _boFactory, _dictionary, iconService, sharedService) {
|
|
11175
11552
|
this._dialogService = _dialogService;
|
|
11176
11553
|
this._boFactory = _boFactory;
|
|
11177
11554
|
this._dictionary = _dictionary;
|
|
11178
11555
|
this.iconService = iconService;
|
|
11556
|
+
this.sharedService = sharedService;
|
|
11179
11557
|
this.icons = exports["ɵbu"];
|
|
11180
11558
|
this.editingComplete = new i0.EventEmitter();
|
|
11181
11559
|
this.activitySaved = new i0.EventEmitter();
|
|
@@ -11272,7 +11650,7 @@
|
|
|
11272
11650
|
case 0:
|
|
11273
11651
|
if (!this.editActivity) return [3 /*break*/, 2];
|
|
11274
11652
|
newActivity = this.editActivity.isNew;
|
|
11275
|
-
return [4 /*yield*/, this.
|
|
11653
|
+
return [4 /*yield*/, this.sharedService.updateActivity(this.editActivity)];
|
|
11276
11654
|
case 1:
|
|
11277
11655
|
result = _g.sent();
|
|
11278
11656
|
if (result) {
|
|
@@ -11329,7 +11707,7 @@
|
|
|
11329
11707
|
case 1:
|
|
11330
11708
|
doDelete = _g.sent();
|
|
11331
11709
|
if (!(doDelete.button === AppPopupButtonType.Yes)) return [3 /*break*/, 3];
|
|
11332
|
-
return [4 /*yield*/, this.
|
|
11710
|
+
return [4 /*yield*/, this.sharedService.deleteActivity(this.editActivity)];
|
|
11333
11711
|
case 2:
|
|
11334
11712
|
_g.sent();
|
|
11335
11713
|
this.activityDeleted.next(this.editActivity);
|
|
@@ -11371,7 +11749,7 @@
|
|
|
11371
11749
|
return [2 /*return*/];
|
|
11372
11750
|
}
|
|
11373
11751
|
this.showAfterInsert = false;
|
|
11374
|
-
return [4 /*yield*/, this.
|
|
11752
|
+
return [4 /*yield*/, this.sharedService.lockTask(activity.task.taskId)];
|
|
11375
11753
|
case 1:
|
|
11376
11754
|
_g.sent();
|
|
11377
11755
|
activity.task = activity.task;
|
|
@@ -11421,7 +11799,8 @@
|
|
|
11421
11799
|
{ type: corecomponents_v12.CoreDialogService },
|
|
11422
11800
|
{ type: businessObjectFactory.BusinessObjectFactory },
|
|
11423
11801
|
{ type: DictionaryService },
|
|
11424
|
-
{ type: IconCacheService }
|
|
11802
|
+
{ type: IconCacheService },
|
|
11803
|
+
{ type: SharedService }
|
|
11425
11804
|
]; };
|
|
11426
11805
|
TaskModifierComponent.propDecorators = {
|
|
11427
11806
|
mainForm: [{ type: i0.ViewChild, args: [corecomponents_v12.FormComponent,] }],
|
|
@@ -11431,9 +11810,6 @@
|
|
|
11431
11810
|
referenceId: [{ type: i0.Input }],
|
|
11432
11811
|
userGroupId: [{ type: i0.Input }],
|
|
11433
11812
|
relationId: [{ type: i0.Input }],
|
|
11434
|
-
upsertActivityOperation: [{ type: i0.Input }],
|
|
11435
|
-
deleteActivityOperation: [{ type: i0.Input }],
|
|
11436
|
-
tryLockTaskOperation: [{ type: i0.Input }],
|
|
11437
11813
|
createTaskOperation: [{ type: i0.Input }],
|
|
11438
11814
|
forceReadonly: [{ type: i0.Input }],
|
|
11439
11815
|
editingComplete: [{ type: i0.Output }],
|
|
@@ -11450,9 +11826,14 @@
|
|
|
11450
11826
|
], TaskModifierComponent.prototype, "forceReadonly", void 0);
|
|
11451
11827
|
|
|
11452
11828
|
var BaseActivityOverviewComponent = /** @class */ (function () {
|
|
11453
|
-
function BaseActivityOverviewComponent(_dialogService, _dictionaryService
|
|
11829
|
+
function BaseActivityOverviewComponent(_dialogService, _dictionaryService, _sharedService
|
|
11830
|
+
//TODO reinstate when formbuilder is transferred
|
|
11831
|
+
//private _formRepo: FormDalRepository,
|
|
11832
|
+
/*private _router: Router*/
|
|
11833
|
+
) {
|
|
11454
11834
|
this._dialogService = _dialogService;
|
|
11455
11835
|
this._dictionaryService = _dictionaryService;
|
|
11836
|
+
this._sharedService = _sharedService;
|
|
11456
11837
|
this.icon = exports["ɵbu"];
|
|
11457
11838
|
this.cfgNames = ActivityCfgName;
|
|
11458
11839
|
this.taskCfgNames = {
|
|
@@ -11467,13 +11848,7 @@
|
|
|
11467
11848
|
tagsHeader: ActivityCfgName.TagsHeader,
|
|
11468
11849
|
taskInvoice: ActivityCfgName.TaskInvoice
|
|
11469
11850
|
};
|
|
11470
|
-
this.canFireTriggerOperation = OperationWithAlwaysSuccessCallback;
|
|
11471
11851
|
this.prepareWorkflowOperation = OperationWithAlwaysSuccessCallback;
|
|
11472
|
-
this.lockTaskOperation = OperationWithAlwaysSuccessCallback;
|
|
11473
|
-
this.deleteActivityOperation = OperationWithAlwaysSuccessCallback;
|
|
11474
|
-
this.upsertActivityOperation = OperationWithAlwaysSuccessCallback;
|
|
11475
|
-
this.fireGenericTriggerOperation = OperationWithValidationCallback;
|
|
11476
|
-
this.fireTriggerOperation = OperationWithValidationCallback;
|
|
11477
11852
|
this.handleOpenLinkSidebar = false;
|
|
11478
11853
|
this.activityChange = new i0.EventEmitter();
|
|
11479
11854
|
this.activityDeleted = new i0.EventEmitter();
|
|
@@ -11528,7 +11903,7 @@
|
|
|
11528
11903
|
var result, messages, len, i;
|
|
11529
11904
|
return __generator(this, function (_a) {
|
|
11530
11905
|
switch (_a.label) {
|
|
11531
|
-
case 0: return [4 /*yield*/, this.
|
|
11906
|
+
case 0: return [4 /*yield*/, this._sharedService.fireGenericTrigger(this.workFlow.workflowProcessId, event.genericTransitionId, this.userRelationId)];
|
|
11532
11907
|
case 1:
|
|
11533
11908
|
result = _a.sent();
|
|
11534
11909
|
if (result.success) {
|
|
@@ -11559,12 +11934,20 @@
|
|
|
11559
11934
|
this.activity.activityType = activityType.ActivityType.Task;
|
|
11560
11935
|
this.activity.task.taskId = eventTrigger.taskId;
|
|
11561
11936
|
this.taskModifier.startModifyingTask(this.activity);
|
|
11562
|
-
return [3 /*break*/,
|
|
11937
|
+
return [3 /*break*/, 6];
|
|
11563
11938
|
case 1:
|
|
11564
11939
|
if (!eventTrigger.isFormTrigger) return [3 /*break*/, 2];
|
|
11565
|
-
return [3 /*break*/,
|
|
11566
|
-
case 2:
|
|
11940
|
+
return [3 /*break*/, 6];
|
|
11941
|
+
case 2:
|
|
11942
|
+
if (!(eventTrigger.toClosedState && !this._sharedService.canFireTrigger(this.activity, this.activity.task))) return [3 /*break*/, 4];
|
|
11943
|
+
return [4 /*yield*/, this.prepareWorkflowOperation({ table: this.workFlow.table, key: this.workFlow.key })];
|
|
11567
11944
|
case 3:
|
|
11945
|
+
_a.sent();
|
|
11946
|
+
this.triggerToFireOnSave = eventTrigger;
|
|
11947
|
+
this.showTaskFormAndWorkLog();
|
|
11948
|
+
return [2 /*return*/];
|
|
11949
|
+
case 4: return [4 /*yield*/, this._sharedService.fireTrigger(this.workFlow.workflowProcessId, this.workFlow.sequence, eventTrigger.triggerId)];
|
|
11950
|
+
case 5:
|
|
11568
11951
|
result = _a.sent();
|
|
11569
11952
|
if (result.success) {
|
|
11570
11953
|
this.triggerFired.next(this.activity);
|
|
@@ -11577,8 +11960,8 @@
|
|
|
11577
11960
|
}
|
|
11578
11961
|
this._dialogService.showError(messages.toString());
|
|
11579
11962
|
}
|
|
11580
|
-
_a.label =
|
|
11581
|
-
case
|
|
11963
|
+
_a.label = 6;
|
|
11964
|
+
case 6: return [2 /*return*/];
|
|
11582
11965
|
}
|
|
11583
11966
|
});
|
|
11584
11967
|
});
|
|
@@ -11709,19 +12092,14 @@
|
|
|
11709
12092
|
];
|
|
11710
12093
|
BaseActivityOverviewComponent.ctorParameters = function () { return [
|
|
11711
12094
|
{ type: corecomponents_v12.CoreDialogService },
|
|
11712
|
-
{ type: DictionaryService }
|
|
12095
|
+
{ type: DictionaryService },
|
|
12096
|
+
{ type: SharedService }
|
|
11713
12097
|
]; };
|
|
11714
12098
|
BaseActivityOverviewComponent.propDecorators = {
|
|
11715
12099
|
taskModifier: [{ type: i0.ViewChild, args: [TaskModifierComponent, { static: true },] }],
|
|
11716
12100
|
viewModel: [{ type: i0.Input }],
|
|
11717
12101
|
triggerToFireOnSave: [{ type: i0.Input }],
|
|
11718
|
-
canFireTriggerOperation: [{ type: i0.Input }],
|
|
11719
12102
|
prepareWorkflowOperation: [{ type: i0.Input }],
|
|
11720
|
-
lockTaskOperation: [{ type: i0.Input }],
|
|
11721
|
-
deleteActivityOperation: [{ type: i0.Input }],
|
|
11722
|
-
upsertActivityOperation: [{ type: i0.Input }],
|
|
11723
|
-
fireGenericTriggerOperation: [{ type: i0.Input }],
|
|
11724
|
-
fireTriggerOperation: [{ type: i0.Input }],
|
|
11725
12103
|
userRelationId: [{ type: i0.Input }],
|
|
11726
12104
|
userGroupId: [{ type: i0.Input }],
|
|
11727
12105
|
handleOpenLinkSidebar: [{ type: i0.Input }],
|
|
@@ -11757,30 +12135,29 @@
|
|
|
11757
12135
|
showClass: [{ type: i0.HostBinding, args: ["class.co-personal-activity-overview",] }]
|
|
11758
12136
|
};
|
|
11759
12137
|
|
|
12138
|
+
function OperationWithValidationCallback(object, object2, object3) {
|
|
12139
|
+
return Promise.resolve(new validationResult.ValidationResult());
|
|
12140
|
+
}
|
|
12141
|
+
|
|
11760
12142
|
var ComponentActivityListComponent = /** @class */ (function (_super) {
|
|
11761
12143
|
__extends(ComponentActivityListComponent, _super);
|
|
11762
|
-
function ComponentActivityListComponent() {
|
|
12144
|
+
function ComponentActivityListComponent(sharedService) {
|
|
11763
12145
|
var _this = _super.call(this) || this;
|
|
12146
|
+
_this.sharedService = sharedService;
|
|
11764
12147
|
_this.tabs = personalActivityTab_enum.PersonalActivityTabEnum;
|
|
11765
12148
|
_this.icons = exports["ɵbu"];
|
|
11766
12149
|
_this.activityClass = activity_bo.Activity;
|
|
11767
12150
|
_this.activitySortType = activitySortType_enum.ActivitySortType;
|
|
12151
|
+
_this.showActivityHeader = true;
|
|
11768
12152
|
_this.hideTitle = false;
|
|
11769
12153
|
_this.noFreeTasks = false;
|
|
11770
12154
|
_this.componentActivitiesMethod = OperationWithAlwaysSuccessCallback;
|
|
11771
|
-
_this.fireGenericTriggerOperation = OperationWithValidationCallback;
|
|
11772
|
-
_this.fireTriggerOperation = OperationWithValidationCallback;
|
|
11773
|
-
_this.canFireTriggerOperation = OperationWithAlwaysSuccessCallback;
|
|
11774
12155
|
_this.setHasPausedNotificationsForWorkflowProcessOperation = OperationWithValidationCallback;
|
|
11775
|
-
_this.lockTaskOperation = OperationWithAlwaysSuccessCallback;
|
|
11776
|
-
_this.deleteActivityOperation = OperationWithAlwaysSuccessCallback;
|
|
11777
|
-
_this.upsertActivityOperation = OperationWithAlwaysSuccessCallback;
|
|
11778
12156
|
_this.openLinkClick = new i0.EventEmitter();
|
|
11779
12157
|
_this.amountActivityChanged = new i0.EventEmitter();
|
|
11780
12158
|
_this.linkClicked = new i0.EventEmitter();
|
|
11781
12159
|
_this.formCreated = new i0.EventEmitter();
|
|
11782
|
-
_this.
|
|
11783
|
-
_this.triggerFired = new i0.EventEmitter();
|
|
12160
|
+
_this.refreshRequested = new i0.EventEmitter();
|
|
11784
12161
|
_this.showUsergroupActivitiesChanged = new i0.EventEmitter();
|
|
11785
12162
|
_this.activeTab = personalActivityTab_enum.PersonalActivityTabEnum.TODO;
|
|
11786
12163
|
/*public activitySortList: boolean[] = [];*/
|
|
@@ -11817,24 +12194,42 @@
|
|
|
11817
12194
|
ComponentActivityListComponent.prototype.trackByFn = function (index, vm) {
|
|
11818
12195
|
return vm.activity.id + '_' + vm.activity.workflow.combinedTriggerIds;
|
|
11819
12196
|
};
|
|
11820
|
-
|
|
11821
|
-
|
|
11822
|
-
|
|
11823
|
-
this._appEventService.taskCreated.subscribe(() => {
|
|
11824
|
-
this.getTheActivities();
|
|
11825
|
-
}),
|
|
11826
|
-
this._appEventService.taskModified.subscribe(() => {
|
|
11827
|
-
this.getTheActivities();
|
|
11828
|
-
}),
|
|
11829
|
-
this._appEventService.triggerFired.subscribe(() => {
|
|
12197
|
+
ComponentActivityListComponent.prototype.ngOnInit = function () {
|
|
12198
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12199
|
+
return __generator(this, function (_a) {
|
|
11830
12200
|
this.getTheActivities();
|
|
11831
|
-
|
|
11832
|
-
|
|
11833
|
-
|
|
12201
|
+
return [2 /*return*/];
|
|
12202
|
+
});
|
|
12203
|
+
});
|
|
12204
|
+
};
|
|
11834
12205
|
ComponentActivityListComponent.prototype.ngOnDestroy = function () {
|
|
11835
|
-
this._subs.forEach(
|
|
12206
|
+
//this._subs.forEach(s => s.unsubscribe());
|
|
11836
12207
|
_super.prototype.ngOnDestroy.call(this);
|
|
11837
12208
|
};
|
|
12209
|
+
ComponentActivityListComponent.prototype.getActivities = function () {
|
|
12210
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12211
|
+
var allActivities;
|
|
12212
|
+
return __generator(this, function (_a) {
|
|
12213
|
+
switch (_a.label) {
|
|
12214
|
+
case 0:
|
|
12215
|
+
if (!(this.table && this.key)) return [3 /*break*/, 2];
|
|
12216
|
+
return [4 /*yield*/, this.sharedService.getComponentActivitiesWithoutRelationFiltering(this.table, this.key)];
|
|
12217
|
+
case 1:
|
|
12218
|
+
allActivities = _a.sent();
|
|
12219
|
+
if (allActivities) {
|
|
12220
|
+
this.activities = this.noFreeTasks ? allActivities.filter(function (aa) { return !aa.task && aa.activityType !== activityType.ActivityType.WorkflowTask; }) :
|
|
12221
|
+
allActivities.filter(function (aa) { return aa.activityType !== activityType.ActivityType.WorkflowTask; });
|
|
12222
|
+
}
|
|
12223
|
+
else {
|
|
12224
|
+
this.activities = [];
|
|
12225
|
+
}
|
|
12226
|
+
this.amountActivityChanged.next(this.activities.length);
|
|
12227
|
+
_a.label = 2;
|
|
12228
|
+
case 2: return [2 /*return*/];
|
|
12229
|
+
}
|
|
12230
|
+
});
|
|
12231
|
+
});
|
|
12232
|
+
};
|
|
11838
12233
|
Object.defineProperty(ComponentActivityListComponent.prototype, "activitiesList", {
|
|
11839
12234
|
get: function () {
|
|
11840
12235
|
return this._activitiesList;
|
|
@@ -11852,18 +12247,6 @@
|
|
|
11852
12247
|
enumerable: false,
|
|
11853
12248
|
configurable: true
|
|
11854
12249
|
});
|
|
11855
|
-
/*public async getActivities(): Promise<void> {
|
|
11856
|
-
if (this.table && this.key) {
|
|
11857
|
-
const allActivities: Activity[] = await this._activityRepo.getComponentActivities(this.table, this.key);
|
|
11858
|
-
if (allActivities) {
|
|
11859
|
-
this.activities = this.noFreeTasks ? allActivities.filter(aa => !aa.task && aa.activityType !== ActivityType.WorkflowTask) :
|
|
11860
|
-
allActivities.filter(aa => aa.activityType !== ActivityType.WorkflowTask);
|
|
11861
|
-
} else {
|
|
11862
|
-
this.activities = [];
|
|
11863
|
-
}
|
|
11864
|
-
this.amountActivityChanged.next(this.activities.length);
|
|
11865
|
-
}
|
|
11866
|
-
}*/
|
|
11867
12250
|
ComponentActivityListComponent.prototype.getDelegatedActivities = function () {
|
|
11868
12251
|
return __awaiter(this, void 0, void 0, function () {
|
|
11869
12252
|
return __generator(this, function (_a) {
|
|
@@ -11879,10 +12262,12 @@
|
|
|
11879
12262
|
this.showUsergroupActivitiesChanged.next();
|
|
11880
12263
|
};
|
|
11881
12264
|
ComponentActivityListComponent.prototype.handleTriggerFired = function (activity) {
|
|
11882
|
-
this.
|
|
12265
|
+
this.getTheActivities();
|
|
12266
|
+
this.refreshRequested.emit();
|
|
11883
12267
|
};
|
|
11884
12268
|
ComponentActivityListComponent.prototype.handleGenericTriggerFired = function (activity) {
|
|
11885
|
-
this.
|
|
12269
|
+
this.getTheActivities();
|
|
12270
|
+
this.refreshRequested.emit();
|
|
11886
12271
|
};
|
|
11887
12272
|
ComponentActivityListComponent.prototype.handleFormCreation = function () {
|
|
11888
12273
|
this.formCreated.next();
|
|
@@ -11938,7 +12323,7 @@
|
|
|
11938
12323
|
ComponentActivityListComponent.decorators = [
|
|
11939
12324
|
{ type: i0.Component, args: [{
|
|
11940
12325
|
selector: "co-component-activity-list",
|
|
11941
|
-
template: "\n <co-activity-list-header\n [title]=\"'ACTIVITIES'\"\n [table]=\"table\"\n [key]=\"key\"\n [(showUsergroupActivities)]=\"showUsergroupActivities\"\n [(searchText)]=\"searchText\"\n (periodFilterClicked)=\"doFilterClicked($event)\"\n (searchTextChange)=\"applyFilter()\"\n (showUsergroupActivitiesChange)=\"showUsergroupActivitiesChange()\"\n [setHasPausedNotificationsForWorkflowProcessOperation]=\"setHasPausedNotificationsForWorkflowProcessOperation\"\n ></co-activity-list-header>\n <div class=\"activity-list-content\">\n <div class=\"activity-wrapper\" [@showHideTab]=\"activeTab\">\n <div class=\"activity-tab-content mini-scrollbar\">\n <ng-container *ngFor=\"let activityListViewModel of privateActivityListViewModels\">\n <co-collapsible *ngIf=\"activityListViewModel.showing\" #collapseable\n [headerTitle]=\"activityListViewModel.label + ' ' + activityListViewModel.amount\"\n [(expanded)]=\"activityListViewModel.expanded\">\n <ng-container *ngFor=\"let activityViewModel of activityListViewModel.activities; trackBy: trackByFn; let index = index\">\n <co-component-activity-overview *ngIf=\"activityViewModel.showing\"\n
|
|
12326
|
+
template: "\n <co-activity-list-header\n *ngIf=\"showActivityHeader\"\n [title]=\"'ACTIVITIES'\"\n [table]=\"table\"\n [key]=\"key\"\n [(showUsergroupActivities)]=\"showUsergroupActivities\"\n [(searchText)]=\"searchText\"\n (periodFilterClicked)=\"doFilterClicked($event)\"\n (searchTextChange)=\"applyFilter()\"\n (showUsergroupActivitiesChange)=\"showUsergroupActivitiesChange()\"\n [setHasPausedNotificationsForWorkflowProcessOperation]=\"setHasPausedNotificationsForWorkflowProcessOperation\"\n ></co-activity-list-header>\n <div class=\"activity-list-content\">\n <div class=\"activity-wrapper\" [@showHideTab]=\"activeTab\">\n <div class=\"activity-tab-content mini-scrollbar\">\n <ng-container *ngFor=\"let activityListViewModel of privateActivityListViewModels\">\n <co-collapsible *ngIf=\"activityListViewModel.showing\" #collapseable\n [headerTitle]=\"activityListViewModel.label + ' ' + activityListViewModel.amount\"\n [(expanded)]=\"activityListViewModel.expanded\">\n <ng-container *ngFor=\"let activityViewModel of activityListViewModel.activities; trackBy: trackByFn; let index = index\">\n <co-component-activity-overview *ngIf=\"activityViewModel.showing\"\n [viewModel]=\"activityViewModel\"\n [userRelationId]=\"relationId\"\n [userGroupId]=\"userGroupId\"\n (activityChange)=\"handleChangedActivity(index, $event)\"\n (activityDeleted)=\"deleteActivity($event)\"\n (genericTriggerFired)=\"handleGenericTriggerFired($event)\"\n (triggerFired)=\"handleTriggerFired($event)\"\n (linkClicked)=\"linkClicked.emit($event)\"\n (formCreated)=\"handleFormCreation()\"></co-component-activity-overview>\n </ng-container>\n </co-collapsible>\n </ng-container>\n </div>\n <div class=\"activity-tab-content mini-scrollbar\">\n <ng-container *ngFor=\"let activityListViewModel of privateDelegatedActivityListViewModels\">\n <co-collapsible *ngIf=\"activityListViewModel.showing\" #collapseable\n [headerTitle]=\"activityListViewModel.label + ' ' + activityListViewModel.amount\"\n [(expanded)]=\"activityListViewModel.expanded\">\n <ng-container *ngFor=\"let activityViewModel of activityListViewModel.activities; trackBy: trackByFn; let index = index\">\n <co-component-activity-overview *ngIf=\"activityViewModel.showing\"\n [viewModel]=\"activityViewModel\"\n [userRelationId]=\"relationId\"\n [userGroupId]=\"userGroupId\"\n (activityChange)=\"handleChangedActivity(index, $event)\"\n (activityDeleted)=\"deleteActivity($event)\"\n (genericTriggerFired)=\"handleGenericTriggerFired($event)\"\n (triggerFired)=\"handleTriggerFired($event)\"\n (linkClicked)=\"linkClicked.emit($event)\"\n (formCreated)=\"handleFormCreation()\"></co-component-activity-overview>\n </ng-container>\n </co-collapsible>\n </ng-container>\n </div>\n </div>\n </div>\n ",
|
|
11942
12327
|
animations: [
|
|
11943
12328
|
animations.trigger("showHideContent", [
|
|
11944
12329
|
animations.state("void", animations.style({ transform: "scaleY(0)", opacity: 0 })),
|
|
@@ -11953,34 +12338,33 @@
|
|
|
11953
12338
|
]
|
|
11954
12339
|
},] }
|
|
11955
12340
|
];
|
|
11956
|
-
ComponentActivityListComponent.ctorParameters = function () { return [
|
|
12341
|
+
ComponentActivityListComponent.ctorParameters = function () { return [
|
|
12342
|
+
{ type: SharedService }
|
|
12343
|
+
]; };
|
|
11957
12344
|
ComponentActivityListComponent.propDecorators = {
|
|
11958
12345
|
activityOverviewList: [{ type: i0.ViewChildren, args: [PersonalActivityOverviewComponent,] }],
|
|
11959
12346
|
showClass: [{ type: i0.HostBinding, args: ["class.co-component-activity-list",] }],
|
|
11960
12347
|
table: [{ type: i0.Input }],
|
|
11961
12348
|
key: [{ type: i0.Input }],
|
|
12349
|
+
showActivityHeader: [{ type: i0.Input }],
|
|
11962
12350
|
hideTitle: [{ type: i0.Input }],
|
|
11963
12351
|
noFreeTasks: [{ type: i0.Input }],
|
|
11964
12352
|
customTitle: [{ type: i0.Input }],
|
|
11965
12353
|
userGroupId: [{ type: i0.Input }],
|
|
11966
12354
|
relationId: [{ type: i0.Input }],
|
|
11967
12355
|
componentActivitiesMethod: [{ type: i0.Input }],
|
|
11968
|
-
fireGenericTriggerOperation: [{ type: i0.Input }],
|
|
11969
|
-
fireTriggerOperation: [{ type: i0.Input }],
|
|
11970
|
-
canFireTriggerOperation: [{ type: i0.Input }],
|
|
11971
12356
|
setHasPausedNotificationsForWorkflowProcessOperation: [{ type: i0.Input }],
|
|
11972
|
-
lockTaskOperation: [{ type: i0.Input }],
|
|
11973
|
-
deleteActivityOperation: [{ type: i0.Input }],
|
|
11974
|
-
upsertActivityOperation: [{ type: i0.Input }],
|
|
11975
12357
|
openLinkClick: [{ type: i0.Output }],
|
|
11976
12358
|
amountActivityChanged: [{ type: i0.Output }],
|
|
11977
12359
|
linkClicked: [{ type: i0.Output }],
|
|
11978
12360
|
formCreated: [{ type: i0.Output }],
|
|
11979
|
-
|
|
11980
|
-
triggerFired: [{ type: i0.Output }],
|
|
12361
|
+
refreshRequested: [{ type: i0.Output }],
|
|
11981
12362
|
showUsergroupActivitiesChanged: [{ type: i0.Output }],
|
|
11982
12363
|
activitiesList: [{ type: i0.Input }]
|
|
11983
12364
|
};
|
|
12365
|
+
__decorate([
|
|
12366
|
+
InputBoolean()
|
|
12367
|
+
], ComponentActivityListComponent.prototype, "showActivityHeader", void 0);
|
|
11984
12368
|
__decorate([
|
|
11985
12369
|
InputBoolean()
|
|
11986
12370
|
], ComponentActivityListComponent.prototype, "hideTitle", void 0);
|
|
@@ -12009,11 +12393,13 @@
|
|
|
12009
12393
|
|
|
12010
12394
|
var ComponentActivityOverviewComponent = /** @class */ (function (_super) {
|
|
12011
12395
|
__extends(ComponentActivityOverviewComponent, _super);
|
|
12012
|
-
function ComponentActivityOverviewComponent(iconCacheService, dialogService, dictionaryService
|
|
12013
|
-
|
|
12396
|
+
function ComponentActivityOverviewComponent(iconCacheService, dialogService, dictionaryService, sharedService
|
|
12397
|
+
/*public router: Router*/ ) {
|
|
12398
|
+
var _this = _super.call(this, dialogService, dictionaryService, sharedService /*router*/) || this;
|
|
12014
12399
|
_this.iconCacheService = iconCacheService;
|
|
12015
12400
|
_this.dialogService = dialogService;
|
|
12016
12401
|
_this.dictionaryService = dictionaryService;
|
|
12402
|
+
_this.sharedService = sharedService;
|
|
12017
12403
|
_this.Icon = exports["ɵbu"];
|
|
12018
12404
|
return _this;
|
|
12019
12405
|
}
|
|
@@ -12025,7 +12411,7 @@
|
|
|
12025
12411
|
ComponentActivityOverviewComponent.decorators = [
|
|
12026
12412
|
{ type: i0.Component, args: [{
|
|
12027
12413
|
selector: "co-component-activity-overview",
|
|
12028
|
-
template: "\n <div class=\"overview-wrapper\">\n <div class=\"overview-wrapper-icons\">\n <co-icon *ngIf=\"userIsSupervisor && (!isTask || firstTriggerToCloseWF === undefined)\" icon=\"supervisor\"\n class=\"supervisor-icon big dark\"\n [title]=\"'MY_TASKS_SUPERVISOR' | localize\"></co-icon>\n </div>\n <div class=\"overview-wrapper-labels\">\n <div class=\"activity-title\" [textContent]=\"activityTitle\"></div>\n <div class=\"activity-context-title\" [textContent]=\"activityContextTitle\"></div>\n </div>\n <div class=\"overview-wrapper-date\">\n <div class=\"date-wrapper\" [class.overdue]=\"overDue\">\n <ng-container *ngIf=\"!sameDates\">\n <div class=\"date\" [textContent]=\"targetDate | date:'dd-MM-YYYY'\"></div>\n <div class=\"date-divider\" [textContent]=\"'-'\"></div>\n </ng-container>\n <div class=\"date\" [textContent]=\"deadlineDate | date:'dd-MM-YYYY'\"></div>\n </div>\n </div>\n </div>\n <div class=\"overview-main\">\n <ng-container *ngIf=\"isTask && firstTriggerToCloseWF !== undefined\">\n <co-button class=\"trans-green custom-text button-trigger no-margin\" [label]=\"firstTriggerToCloseWF.description\"\n (click)=\"handleButtonEndClick()\"></co-button>\n </ng-container>\n <ng-container *ngIf=\"openButtonLabel\">\n <co-button class=\"trans-green default-bg custom-text button-trigger-icon action-hover no-margin\"\n iconClass=\"custom small\" [iconData]=\"iconCacheService.getIcon(icon.DetailView)\" [label]=\"openButtonLabel | localize\"\n (click)=\"handleOpenLink($event)\"></co-button>\n </ng-container>\n <!--TODO reinstate this when we figure out how to trigger a screen change. -->\n <!--<ng-container *ngIf=\"urls && urls.length > 0\">\n <button-colijn *ngFor=\"let url of urls\"\n class=\"trans-green custom-text button-trigger-icon action-hover no-margin\"\n [icon]=\"icon.DetailView\"\n [label]=\"'OPEN_LINK' | localize\"\n iconClass=\"custom small\"\n (click)=\"handleOpenLink($event, url)\"></button-colijn>\n </ng-container>-->\n <ng-container *ngIf=\"!isTask && hasTriggers\">\n <co-button class=\"trans-green custom-text action-hover button-trigger no-margin\" *ngFor=\"let trigger of workFlow.manualGenericTriggers\"\n [class.button-trigger-icon]=\"trigger.isTaskTrigger\"\n [label]=\"trigger.triggerButtonName\"\n [iconData]=\"trigger.isTaskTrigger ? iconCacheService.getIcon(icon.Account): null\"\n iconClass=\"custom small\"\n (click)=\"handleGenericTriggerClick(trigger)\"\n ></co-button>\n <co-button class=\"trans-green custom-text action-hover button-trigger no-margin\" *ngFor=\"let trigger of workFlow.manualTriggers\"\n [class.high-prio]=\"trigger.overDue\"\n [class.button-trigger-icon]=\"trigger.isTaskTrigger\"\n [label]=\"trigger.triggerButtonName\"\n [iconData]=\"trigger.isTaskTrigger ? iconCacheService.getIcon(icon.DetailView): null\"\n iconClass=\"custom small\"\n (click)=\"handleTriggerClick(trigger)\"\n ></co-button >\n </ng-container>\n </div>\n <!--TODO reinstate this when we figure out how to trigger a screen change. -->\n <!-- <formbuilder-user-form *ngIf=\"showCreateForm\"\n [showPopup]=\"showCreateForm\"\n [table]=\"table\"\n [key]=\"key\"\n [form]=\"form\"\n (cancelForm)=\"doCancelForm()\"\n (saveForm)=\"doSaveForm($event)\"\n ></formbuilder-user-form>-->\n <co-task-modifier\n [userGroupId]=\"userGroupId\"\n [relationId]=\"userRelationId\"\n
|
|
12414
|
+
template: "\n <div class=\"overview-wrapper\">\n <div class=\"overview-wrapper-icons\">\n <co-icon *ngIf=\"userIsSupervisor && (!isTask || firstTriggerToCloseWF === undefined)\" icon=\"supervisor\"\n class=\"supervisor-icon big dark\"\n [title]=\"'MY_TASKS_SUPERVISOR' | localize\"></co-icon>\n </div>\n <div class=\"overview-wrapper-labels\">\n <div class=\"activity-title\" [textContent]=\"activityTitle\"></div>\n <div class=\"activity-context-title\" [textContent]=\"activityContextTitle\"></div>\n </div>\n <div class=\"overview-wrapper-date\">\n <div class=\"date-wrapper\" [class.overdue]=\"overDue\">\n <ng-container *ngIf=\"!sameDates\">\n <div class=\"date\" [textContent]=\"targetDate | date:'dd-MM-YYYY'\"></div>\n <div class=\"date-divider\" [textContent]=\"'-'\"></div>\n </ng-container>\n <div class=\"date\" [textContent]=\"deadlineDate | date:'dd-MM-YYYY'\"></div>\n </div>\n </div>\n </div>\n <div class=\"overview-main\">\n <ng-container *ngIf=\"isTask && firstTriggerToCloseWF !== undefined\">\n <co-button class=\"trans-green custom-text button-trigger no-margin\" [label]=\"firstTriggerToCloseWF.description\"\n (click)=\"handleButtonEndClick()\"></co-button>\n </ng-container>\n <ng-container *ngIf=\"openButtonLabel\">\n <co-button class=\"trans-green default-bg custom-text button-trigger-icon action-hover no-margin\"\n iconClass=\"custom small\" [iconData]=\"iconCacheService.getIcon(icon.DetailView)\" [label]=\"openButtonLabel | localize\"\n (click)=\"handleOpenLink($event)\"></co-button>\n </ng-container>\n <!--TODO reinstate this when we figure out how to trigger a screen change. -->\n <!--<ng-container *ngIf=\"urls && urls.length > 0\">\n <button-colijn *ngFor=\"let url of urls\"\n class=\"trans-green custom-text button-trigger-icon action-hover no-margin\"\n [icon]=\"icon.DetailView\"\n [label]=\"'OPEN_LINK' | localize\"\n iconClass=\"custom small\"\n (click)=\"handleOpenLink($event, url)\"></button-colijn>\n </ng-container>-->\n <ng-container *ngIf=\"!isTask && hasTriggers\">\n <co-button class=\"trans-green custom-text action-hover button-trigger no-margin\" *ngFor=\"let trigger of workFlow.manualGenericTriggers\"\n [class.button-trigger-icon]=\"trigger.isTaskTrigger\"\n [label]=\"trigger.triggerButtonName\"\n [iconData]=\"trigger.isTaskTrigger ? iconCacheService.getIcon(icon.Account): null\"\n iconClass=\"custom small\"\n (click)=\"handleGenericTriggerClick(trigger)\"\n ></co-button>\n <co-button class=\"trans-green custom-text action-hover button-trigger no-margin\" *ngFor=\"let trigger of workFlow.manualTriggers\"\n [class.high-prio]=\"trigger.overDue\"\n [class.button-trigger-icon]=\"trigger.isTaskTrigger\"\n [label]=\"trigger.triggerButtonName\"\n [iconData]=\"trigger.isTaskTrigger ? iconCacheService.getIcon(icon.DetailView): null\"\n iconClass=\"custom small\"\n (click)=\"handleTriggerClick(trigger)\"\n ></co-button >\n </ng-container>\n </div>\n <!--TODO reinstate this when we figure out how to trigger a screen change. -->\n <!-- <formbuilder-user-form *ngIf=\"showCreateForm\"\n [showPopup]=\"showCreateForm\"\n [table]=\"table\"\n [key]=\"key\"\n [form]=\"form\"\n (cancelForm)=\"doCancelForm()\"\n (saveForm)=\"doSaveForm($event)\"\n ></formbuilder-user-form>-->\n <co-task-modifier\n [userGroupId]=\"userGroupId\"\n [relationId]=\"userRelationId\"\n (editingComplete)=\"onSaveActivity($event)\"\n (activityDeleted)=\"onDeleteActivity($event)\"\n (showWorkLog)=\"showTaskFormAndWorkLog()\"\n ></co-task-modifier>\n\n ",
|
|
12029
12415
|
/* providers: [
|
|
12030
12416
|
{provide: BaseModuleScreenConfigService, useExisting: ScreenConfigurationMockService}
|
|
12031
12417
|
],*/
|
|
@@ -12048,21 +12434,21 @@
|
|
|
12048
12434
|
ComponentActivityOverviewComponent.ctorParameters = function () { return [
|
|
12049
12435
|
{ type: IconCacheService },
|
|
12050
12436
|
{ type: corecomponents_v12.CoreDialogService },
|
|
12051
|
-
{ type: DictionaryService }
|
|
12437
|
+
{ type: DictionaryService },
|
|
12438
|
+
{ type: SharedService }
|
|
12052
12439
|
]; };
|
|
12053
12440
|
ComponentActivityOverviewComponent.propDecorators = {
|
|
12054
12441
|
showClass: [{ type: i0.HostBinding, args: ["class.co-component-activity-overview",] }]
|
|
12055
12442
|
};
|
|
12056
12443
|
|
|
12057
12444
|
var BaseActivitySummaryComponent = /** @class */ (function () {
|
|
12058
|
-
function BaseActivitySummaryComponent(dictionaryService, dialogService) {
|
|
12445
|
+
function BaseActivitySummaryComponent(dictionaryService, dialogService, _sharedService) {
|
|
12059
12446
|
this.dictionaryService = dictionaryService;
|
|
12060
12447
|
this.dialogService = dialogService;
|
|
12448
|
+
this._sharedService = _sharedService;
|
|
12061
12449
|
this.expanded = false;
|
|
12062
12450
|
this.noBorder = false;
|
|
12063
12451
|
this.readonly = false;
|
|
12064
|
-
this.canFireTriggerOperation = OperationWithAlwaysSuccessCallback;
|
|
12065
|
-
this.fireTriggerOperation = OperationWithValidationCallback;
|
|
12066
12452
|
this.prepareWorkflowOperation = OperationWithAlwaysSuccessCallback;
|
|
12067
12453
|
this.loadTaskOperation = OperationWithAlwaysSuccessCallback;
|
|
12068
12454
|
this.activityChange = new i0.EventEmitter();
|
|
@@ -12124,37 +12510,35 @@
|
|
|
12124
12510
|
if (this.readonly) {
|
|
12125
12511
|
return [2 /*return*/];
|
|
12126
12512
|
}
|
|
12127
|
-
if (
|
|
12128
|
-
|
|
12129
|
-
|
|
12130
|
-
|
|
12131
|
-
|
|
12132
|
-
|
|
12133
|
-
|
|
12134
|
-
return [2 /*return*/];
|
|
12513
|
+
if (trigger.toClosedState) {
|
|
12514
|
+
canFire = this._sharedService.canFireTrigger(this.editActivity, this.editActivity.task);
|
|
12515
|
+
if (!canFire) {
|
|
12516
|
+
this.triggerToFireOnSave = trigger;
|
|
12517
|
+
this.showWorkLog.next();
|
|
12518
|
+
return [2 /*return*/];
|
|
12519
|
+
}
|
|
12135
12520
|
}
|
|
12136
|
-
|
|
12137
|
-
case
|
|
12138
|
-
case 3:
|
|
12521
|
+
return [4 /*yield*/, this._sharedService.fireTrigger(this.workFlow.workflowId, this.workFlow.sequence, trigger.triggerId)];
|
|
12522
|
+
case 1:
|
|
12139
12523
|
result = _a.sent();
|
|
12140
|
-
if (!result.success) return [3 /*break*/,
|
|
12524
|
+
if (!result.success) return [3 /*break*/, 4];
|
|
12141
12525
|
return [4 /*yield*/, this.updateActivityTask(this.editActivity.task)];
|
|
12142
|
-
case
|
|
12526
|
+
case 2:
|
|
12143
12527
|
_a.sent();
|
|
12144
12528
|
return [4 /*yield*/, this.prepareWorkflow()];
|
|
12145
|
-
case
|
|
12529
|
+
case 3:
|
|
12146
12530
|
_a.sent();
|
|
12147
12531
|
this.triggerFired.emit(this.workFlow);
|
|
12148
|
-
return [3 /*break*/,
|
|
12149
|
-
case
|
|
12532
|
+
return [3 /*break*/, 5];
|
|
12533
|
+
case 4:
|
|
12150
12534
|
messages = [];
|
|
12151
12535
|
len = result.messages.length;
|
|
12152
12536
|
for (i = 0; i < len; i++) {
|
|
12153
12537
|
messages.push(this.dictionaryService.get(result.messages[i].message.toUpperCase()));
|
|
12154
12538
|
}
|
|
12155
12539
|
this.dialogService.showError(messages.toString());
|
|
12156
|
-
_a.label =
|
|
12157
|
-
case
|
|
12540
|
+
_a.label = 5;
|
|
12541
|
+
case 5: return [2 /*return*/];
|
|
12158
12542
|
}
|
|
12159
12543
|
});
|
|
12160
12544
|
});
|
|
@@ -12204,7 +12588,8 @@
|
|
|
12204
12588
|
];
|
|
12205
12589
|
BaseActivitySummaryComponent.ctorParameters = function () { return [
|
|
12206
12590
|
{ type: DictionaryService },
|
|
12207
|
-
{ type: corecomponents_v12.CoreDialogService }
|
|
12591
|
+
{ type: corecomponents_v12.CoreDialogService },
|
|
12592
|
+
{ type: SharedService }
|
|
12208
12593
|
]; };
|
|
12209
12594
|
BaseActivitySummaryComponent.propDecorators = {
|
|
12210
12595
|
activity: [{ type: i0.Input }],
|
|
@@ -12215,8 +12600,6 @@
|
|
|
12215
12600
|
expanded: [{ type: i0.Input }],
|
|
12216
12601
|
noBorder: [{ type: i0.HostBinding, args: ["class.no-border",] }, { type: i0.Input }],
|
|
12217
12602
|
readonly: [{ type: i0.Input }],
|
|
12218
|
-
canFireTriggerOperation: [{ type: i0.Input }],
|
|
12219
|
-
fireTriggerOperation: [{ type: i0.Input }],
|
|
12220
12603
|
prepareWorkflowOperation: [{ type: i0.Input }],
|
|
12221
12604
|
loadTaskOperation: [{ type: i0.Input }],
|
|
12222
12605
|
triggerToFireOnSave: [{ type: i0.Input }],
|
|
@@ -12231,11 +12614,12 @@
|
|
|
12231
12614
|
|
|
12232
12615
|
var TaskDetailsComponent = /** @class */ (function (_super) {
|
|
12233
12616
|
__extends(TaskDetailsComponent, _super);
|
|
12234
|
-
function TaskDetailsComponent(dictionaryService, dialogService, iconCacheService) {
|
|
12235
|
-
var _this = _super.call(this, dictionaryService, dialogService) || this;
|
|
12617
|
+
function TaskDetailsComponent(dictionaryService, dialogService, iconCacheService, sharedService) {
|
|
12618
|
+
var _this = _super.call(this, dictionaryService, dialogService, sharedService) || this;
|
|
12236
12619
|
_this.dictionaryService = dictionaryService;
|
|
12237
12620
|
_this.dialogService = dialogService;
|
|
12238
12621
|
_this.iconCacheService = iconCacheService;
|
|
12622
|
+
_this.sharedService = sharedService;
|
|
12239
12623
|
_this.Icon = exports["ɵbu"];
|
|
12240
12624
|
_this.showStatusDropdown = false;
|
|
12241
12625
|
return _this;
|
|
@@ -12272,7 +12656,8 @@
|
|
|
12272
12656
|
TaskDetailsComponent.ctorParameters = function () { return [
|
|
12273
12657
|
{ type: DictionaryService },
|
|
12274
12658
|
{ type: corecomponents_v12.CoreDialogService },
|
|
12275
|
-
{ type: IconCacheService }
|
|
12659
|
+
{ type: IconCacheService },
|
|
12660
|
+
{ type: SharedService }
|
|
12276
12661
|
]; };
|
|
12277
12662
|
TaskDetailsComponent.propDecorators = {
|
|
12278
12663
|
activity: [{ type: i0.Input }],
|
|
@@ -12412,11 +12797,12 @@
|
|
|
12412
12797
|
|
|
12413
12798
|
var StatusSummaryBlockComponent = /** @class */ (function (_super) {
|
|
12414
12799
|
__extends(StatusSummaryBlockComponent, _super);
|
|
12415
|
-
function StatusSummaryBlockComponent(dictionaryService, dialogService, iconService) {
|
|
12416
|
-
var _this = _super.call(this, dictionaryService, dialogService) || this;
|
|
12800
|
+
function StatusSummaryBlockComponent(dictionaryService, dialogService, iconService, sharedService) {
|
|
12801
|
+
var _this = _super.call(this, dictionaryService, dialogService, sharedService) || this;
|
|
12417
12802
|
_this.dictionaryService = dictionaryService;
|
|
12418
12803
|
_this.dialogService = dialogService;
|
|
12419
12804
|
_this.iconService = iconService;
|
|
12805
|
+
_this.sharedService = sharedService;
|
|
12420
12806
|
_this.Icon = exports["ɵbu"];
|
|
12421
12807
|
return _this;
|
|
12422
12808
|
}
|
|
@@ -12450,7 +12836,8 @@
|
|
|
12450
12836
|
StatusSummaryBlockComponent.ctorParameters = function () { return [
|
|
12451
12837
|
{ type: DictionaryService },
|
|
12452
12838
|
{ type: corecomponents_v12.CoreDialogService },
|
|
12453
|
-
{ type: IconCacheService }
|
|
12839
|
+
{ type: IconCacheService },
|
|
12840
|
+
{ type: SharedService }
|
|
12454
12841
|
]; };
|
|
12455
12842
|
StatusSummaryBlockComponent.propDecorators = {
|
|
12456
12843
|
showClass: [{ type: i0.HostBinding, args: ["class.co-status-summary-block",] }]
|
|
@@ -12482,7 +12869,7 @@
|
|
|
12482
12869
|
var CreationSummaryBlockComponent = /** @class */ (function (_super) {
|
|
12483
12870
|
__extends(CreationSummaryBlockComponent, _super);
|
|
12484
12871
|
function CreationSummaryBlockComponent(dictionaryService, dialogService, sharedService, locale) {
|
|
12485
|
-
var _this = _super.call(this, dictionaryService, dialogService) || this;
|
|
12872
|
+
var _this = _super.call(this, dictionaryService, dialogService, sharedService) || this;
|
|
12486
12873
|
_this.dictionaryService = dictionaryService;
|
|
12487
12874
|
_this.dialogService = dialogService;
|
|
12488
12875
|
_this.sharedService = sharedService;
|
|
@@ -12585,11 +12972,11 @@
|
|
|
12585
12972
|
})(RelationType || (RelationType = {}));
|
|
12586
12973
|
var ExecutiveSummaryBlockComponent = /** @class */ (function (_super) {
|
|
12587
12974
|
__extends(ExecutiveSummaryBlockComponent, _super);
|
|
12588
|
-
function ExecutiveSummaryBlockComponent(dictionaryService, dialogService,
|
|
12589
|
-
var _this = _super.call(this, dictionaryService, dialogService) || this;
|
|
12975
|
+
function ExecutiveSummaryBlockComponent(dictionaryService, dialogService, sharedService) {
|
|
12976
|
+
var _this = _super.call(this, dictionaryService, dialogService, sharedService) || this;
|
|
12590
12977
|
_this.dictionaryService = dictionaryService;
|
|
12591
12978
|
_this.dialogService = dialogService;
|
|
12592
|
-
_this.
|
|
12979
|
+
_this.sharedService = sharedService;
|
|
12593
12980
|
_this.RelationType = RelationType;
|
|
12594
12981
|
_this.Icon = exports["ɵbu"];
|
|
12595
12982
|
_this._textSearchParams = new relationRequest.RelationRequest();
|
|
@@ -12604,7 +12991,7 @@
|
|
|
12604
12991
|
var _this = this;
|
|
12605
12992
|
return __generator(this, function (_a) {
|
|
12606
12993
|
this._textSearchParams.relationTypeList = [relationKind_enum.RelationKind.Personnel];
|
|
12607
|
-
this.
|
|
12994
|
+
this.sharedService.getRelationListObjects(this._textSearchParams).then(function (result) {
|
|
12608
12995
|
_this.personnel = result;
|
|
12609
12996
|
});
|
|
12610
12997
|
return [2 /*return*/];
|
|
@@ -12659,7 +13046,7 @@
|
|
|
12659
13046
|
function NotificationSummaryBlockComponent(boFactory,
|
|
12660
13047
|
//public activityService: ActivityService,
|
|
12661
13048
|
dictionaryService, dialogService, sharedService) {
|
|
12662
|
-
var _this = _super.call(this, dictionaryService, dialogService) || this;
|
|
13049
|
+
var _this = _super.call(this, dictionaryService, dialogService, sharedService) || this;
|
|
12663
13050
|
_this.boFactory = boFactory;
|
|
12664
13051
|
_this.dictionaryService = dictionaryService;
|
|
12665
13052
|
_this.dialogService = dialogService;
|
|
@@ -12752,7 +13139,11 @@
|
|
|
12752
13139
|
StatusSummaryBlockModule,
|
|
12753
13140
|
CreationSummaryBlockModule,
|
|
12754
13141
|
NotificationSummaryBlockModule,
|
|
12755
|
-
ActivityListModule
|
|
13142
|
+
ActivityListModule,
|
|
13143
|
+
SimpleTagsModule,
|
|
13144
|
+
corecomponents_v12.ButtonModule,
|
|
13145
|
+
common.CommonModule,
|
|
13146
|
+
SimpleTagsFormModule
|
|
12756
13147
|
],
|
|
12757
13148
|
declarations: [
|
|
12758
13149
|
ModifyTaskFormComponent
|
|
@@ -13667,6 +14058,131 @@
|
|
|
13667
14058
|
},] }
|
|
13668
14059
|
];
|
|
13669
14060
|
|
|
14061
|
+
var WorkflowInfoTilesComponent = /** @class */ (function () {
|
|
14062
|
+
function WorkflowInfoTilesComponent(iconCacheService, sharedService) {
|
|
14063
|
+
this.iconCacheService = iconCacheService;
|
|
14064
|
+
this.sharedService = sharedService;
|
|
14065
|
+
this.Icon = exports["ɵbu"];
|
|
14066
|
+
this.icons = exports["ɵbu"];
|
|
14067
|
+
this.workflowProcessInfoPerStatusClicked = new i0.EventEmitter();
|
|
14068
|
+
}
|
|
14069
|
+
Object.defineProperty(WorkflowInfoTilesComponent.prototype, "workflowCategory", {
|
|
14070
|
+
set: function (value) {
|
|
14071
|
+
this._workflowCategory = value;
|
|
14072
|
+
this.getWorkflowProcessInfoPerStatusCollection();
|
|
14073
|
+
},
|
|
14074
|
+
enumerable: false,
|
|
14075
|
+
configurable: true
|
|
14076
|
+
});
|
|
14077
|
+
WorkflowInfoTilesComponent.prototype.showClass = function () {
|
|
14078
|
+
return true;
|
|
14079
|
+
};
|
|
14080
|
+
WorkflowInfoTilesComponent.prototype.ngOnInit = function () {
|
|
14081
|
+
this.getWorkflowProcessInfoPerStatusCollection();
|
|
14082
|
+
};
|
|
14083
|
+
WorkflowInfoTilesComponent.prototype.workflowProcessInfoPerStatusClickedHandler = function (status) {
|
|
14084
|
+
this.workflowProcessInfoPerStatusClicked.emit(status.statusName);
|
|
14085
|
+
};
|
|
14086
|
+
WorkflowInfoTilesComponent.prototype.getWorkflowProcessInfoPerStatusCollection = function () {
|
|
14087
|
+
var _this = this;
|
|
14088
|
+
if (this._workflowCategory) {
|
|
14089
|
+
this.sharedService.getWorkflowProcessInfoPerStatus(this._workflowCategory).then(function (result) {
|
|
14090
|
+
_this.WorkflowProcessInfoPerStatusCollection = result;
|
|
14091
|
+
});
|
|
14092
|
+
}
|
|
14093
|
+
};
|
|
14094
|
+
return WorkflowInfoTilesComponent;
|
|
14095
|
+
}());
|
|
14096
|
+
WorkflowInfoTilesComponent.decorators = [
|
|
14097
|
+
{ type: i0.Component, args: [{
|
|
14098
|
+
selector: "co-workflow-info-tiles",
|
|
14099
|
+
template: "\n <div class=\"tile-row\">\n <co-workflow-info-tile *ngFor=\"let workflowProcessInfoPerStatus of WorkflowProcessInfoPerStatusCollection\" [workflowProcessInfoPerStatus]=\"workflowProcessInfoPerStatus\"\n (click)=\"workflowProcessInfoPerStatusClickedHandler(workflowProcessInfoPerStatus)\"></co-workflow-info-tile>\n </div>\n ",
|
|
14100
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
14101
|
+
},] }
|
|
14102
|
+
];
|
|
14103
|
+
WorkflowInfoTilesComponent.ctorParameters = function () { return [
|
|
14104
|
+
{ type: IconCacheService },
|
|
14105
|
+
{ type: SharedService }
|
|
14106
|
+
]; };
|
|
14107
|
+
WorkflowInfoTilesComponent.propDecorators = {
|
|
14108
|
+
workflowCategory: [{ type: i0.Input }],
|
|
14109
|
+
workflowProcessInfoPerStatusClicked: [{ type: i0.Output }],
|
|
14110
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-workflow-info-tiles",] }]
|
|
14111
|
+
};
|
|
14112
|
+
|
|
14113
|
+
var WorkflowInfoTileComponent = /** @class */ (function () {
|
|
14114
|
+
function WorkflowInfoTileComponent(iconCacheService, colorService) {
|
|
14115
|
+
this.iconCacheService = iconCacheService;
|
|
14116
|
+
this.colorService = colorService;
|
|
14117
|
+
this.Icon = exports["ɵbu"];
|
|
14118
|
+
}
|
|
14119
|
+
WorkflowInfoTileComponent.prototype.showClass = function () {
|
|
14120
|
+
return true;
|
|
14121
|
+
};
|
|
14122
|
+
WorkflowInfoTileComponent.prototype.ngOnInit = function () {
|
|
14123
|
+
this.backgroundColor = this.colorService.GetRandomColorWithSettings([0, 360], [90, 100], [40, 95], [1, 1]);
|
|
14124
|
+
};
|
|
14125
|
+
return WorkflowInfoTileComponent;
|
|
14126
|
+
}());
|
|
14127
|
+
WorkflowInfoTileComponent.decorators = [
|
|
14128
|
+
{ type: i0.Component, args: [{
|
|
14129
|
+
selector: "co-workflow-info-tile",
|
|
14130
|
+
template: "\n <div class=\"top\">\n <div class=\"tile-row\">\n <label class=\"status-text\" [textContent]=\"'STATUS' | localize\"></label>\n <co-icon class=\"corner-icon\" [iconData]=\"iconCacheService.getIcon(Icon.DetailView)\" ></co-icon>\n </div>\n <label class=\"name-text\" [textContent]=\"workflowProcessInfoPerStatus.statusName\"></label>\n </div>\n <div class=\"bottom\">\n <label class=\"name-text\" [textContent]=\"workflowProcessInfoPerStatus.workflowProcessCount\"></label>\n </div>\n ",
|
|
14131
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
14132
|
+
},] }
|
|
14133
|
+
];
|
|
14134
|
+
WorkflowInfoTileComponent.ctorParameters = function () { return [
|
|
14135
|
+
{ type: IconCacheService },
|
|
14136
|
+
{ type: corecomponents_v12.ColorSequenceService }
|
|
14137
|
+
]; };
|
|
14138
|
+
WorkflowInfoTileComponent.propDecorators = {
|
|
14139
|
+
workflowProcessInfoPerStatus: [{ type: i0.Input }],
|
|
14140
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-workflow-info-tile",] }],
|
|
14141
|
+
backgroundColor: [{ type: i0.HostBinding, args: ["style.background-color",] }]
|
|
14142
|
+
};
|
|
14143
|
+
|
|
14144
|
+
var WorkflowInfoTileModule = /** @class */ (function () {
|
|
14145
|
+
function WorkflowInfoTileModule() {
|
|
14146
|
+
}
|
|
14147
|
+
return WorkflowInfoTileModule;
|
|
14148
|
+
}());
|
|
14149
|
+
WorkflowInfoTileModule.decorators = [
|
|
14150
|
+
{ type: i0.NgModule, args: [{
|
|
14151
|
+
imports: [
|
|
14152
|
+
LocalizationModule,
|
|
14153
|
+
corecomponents_v12.IconModule
|
|
14154
|
+
],
|
|
14155
|
+
declarations: [
|
|
14156
|
+
WorkflowInfoTileComponent
|
|
14157
|
+
],
|
|
14158
|
+
exports: [
|
|
14159
|
+
WorkflowInfoTileComponent
|
|
14160
|
+
],
|
|
14161
|
+
providers: []
|
|
14162
|
+
},] }
|
|
14163
|
+
];
|
|
14164
|
+
|
|
14165
|
+
var WorkflowInfoTilesModule = /** @class */ (function () {
|
|
14166
|
+
function WorkflowInfoTilesModule() {
|
|
14167
|
+
}
|
|
14168
|
+
return WorkflowInfoTilesModule;
|
|
14169
|
+
}());
|
|
14170
|
+
WorkflowInfoTilesModule.decorators = [
|
|
14171
|
+
{ type: i0.NgModule, args: [{
|
|
14172
|
+
imports: [
|
|
14173
|
+
WorkflowInfoTileModule,
|
|
14174
|
+
common.CommonModule
|
|
14175
|
+
],
|
|
14176
|
+
declarations: [
|
|
14177
|
+
WorkflowInfoTilesComponent
|
|
14178
|
+
],
|
|
14179
|
+
exports: [
|
|
14180
|
+
WorkflowInfoTilesComponent
|
|
14181
|
+
],
|
|
14182
|
+
providers: []
|
|
14183
|
+
},] }
|
|
14184
|
+
];
|
|
14185
|
+
|
|
13670
14186
|
/*
|
|
13671
14187
|
* Public API Surface of sharedcomponents
|
|
13672
14188
|
*/
|
|
@@ -13697,12 +14213,16 @@
|
|
|
13697
14213
|
exports.SendMethodDialogModule = SendMethodDialogModule;
|
|
13698
14214
|
exports.SharedService = SharedService;
|
|
13699
14215
|
exports.SimpleTagsComponent = SimpleTagsComponent;
|
|
14216
|
+
exports.SimpleTagsFormComponent = SimpleTagsFormComponent;
|
|
14217
|
+
exports.SimpleTagsFormModule = SimpleTagsFormModule;
|
|
13700
14218
|
exports.SimpleTagsModule = SimpleTagsModule;
|
|
13701
14219
|
exports.StatusbarComponent = StatusbarComponent;
|
|
13702
14220
|
exports.StatusbarModule = StatusbarModule;
|
|
13703
14221
|
exports.StockComponent = StockComponent;
|
|
13704
14222
|
exports.StockModule = StockModule;
|
|
13705
14223
|
exports.Translation = Translation;
|
|
14224
|
+
exports.WorkflowInfoTilesComponent = WorkflowInfoTilesComponent;
|
|
14225
|
+
exports.WorkflowInfoTilesModule = WorkflowInfoTilesModule;
|
|
13706
14226
|
exports.sendMethodsWithIcon = sendMethodsWithIcon;
|
|
13707
14227
|
exports["ɵa"] = SignatureComponent;
|
|
13708
14228
|
exports["ɵb"] = SignaturesComponent;
|
|
@@ -13805,6 +14325,8 @@
|
|
|
13805
14325
|
exports["ɵer"] = PeriodFilterComponent;
|
|
13806
14326
|
exports["ɵes"] = PeriodFilterPopupComponent;
|
|
13807
14327
|
exports["ɵet"] = ActivityListHeaderComponent;
|
|
14328
|
+
exports["ɵeu"] = WorkflowInfoTileModule;
|
|
14329
|
+
exports["ɵev"] = WorkflowInfoTileComponent;
|
|
13808
14330
|
exports["ɵf"] = DictionaryService;
|
|
13809
14331
|
exports["ɵg"] = LocalizeService;
|
|
13810
14332
|
exports["ɵh"] = IconCacheService;
|