@colijnit/sharedcomponents 1.0.70 → 253.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/colijnit-sharedcomponents.umd.js +707 -181
- 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/businessobject/co-document-right.bo.js +1 -1
- 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/image-display/image-display.component.js +7 -7
- 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 +42 -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/interface/operation-callback-simple-function.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/fesm2015/colijnit-sharedcomponents.js +759 -353
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- 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 +9 -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/package.json +7 -6
- package/public-api.d.ts +4 -0
- package/3rdpartylicenses.txt +0 -1203
- package/favicon.ico +0 -0
- package/index.html +0 -12
- package/main.36b466467ac98ce720f9.js +0 -1
- package/polyfills.907fe9d1887c5de17993.js +0 -1
- package/runtime.8aac21847ed3d3829cca.js +0 -1
- package/styles.6375d1d30814ecba5d0c.css +0 -1
|
@@ -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
|
|
|
@@ -337,9 +337,13 @@
|
|
|
337
337
|
if (!Symbol.asyncIterator)
|
|
338
338
|
throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
339
339
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
340
|
-
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
341
|
-
function
|
|
342
|
-
|
|
340
|
+
return i = {}, verb("next"), verb("throw"), verb("return", awaitReturn), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
341
|
+
function awaitReturn(f) { return function (v) { return Promise.resolve(v).then(f, reject); }; }
|
|
342
|
+
function verb(n, f) { if (g[n]) {
|
|
343
|
+
i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); };
|
|
344
|
+
if (f)
|
|
345
|
+
i[n] = f(i[n]);
|
|
346
|
+
} }
|
|
343
347
|
function resume(n, v) { try {
|
|
344
348
|
step(g[n](v));
|
|
345
349
|
}
|
|
@@ -419,7 +423,7 @@
|
|
|
419
423
|
if (value !== null && value !== void 0) {
|
|
420
424
|
if (typeof value !== "object" && typeof value !== "function")
|
|
421
425
|
throw new TypeError("Object expected.");
|
|
422
|
-
var dispose;
|
|
426
|
+
var dispose, inner;
|
|
423
427
|
if (async) {
|
|
424
428
|
if (!Symbol.asyncDispose)
|
|
425
429
|
throw new TypeError("Symbol.asyncDispose is not defined.");
|
|
@@ -429,9 +433,18 @@
|
|
|
429
433
|
if (!Symbol.dispose)
|
|
430
434
|
throw new TypeError("Symbol.dispose is not defined.");
|
|
431
435
|
dispose = value[Symbol.dispose];
|
|
436
|
+
if (async)
|
|
437
|
+
inner = dispose;
|
|
432
438
|
}
|
|
433
439
|
if (typeof dispose !== "function")
|
|
434
440
|
throw new TypeError("Object not disposable.");
|
|
441
|
+
if (inner)
|
|
442
|
+
dispose = function () { try {
|
|
443
|
+
inner.call(this);
|
|
444
|
+
}
|
|
445
|
+
catch (e) {
|
|
446
|
+
return Promise.reject(e);
|
|
447
|
+
} };
|
|
435
448
|
env.stack.push({ value: value, dispose: dispose, async: async });
|
|
436
449
|
}
|
|
437
450
|
else if (async) {
|
|
@@ -1296,6 +1309,117 @@
|
|
|
1296
1309
|
});
|
|
1297
1310
|
});
|
|
1298
1311
|
};
|
|
1312
|
+
SharedConnectorService.prototype.getComponentActivitiesWithoutRelationFiltering = function (table, key) {
|
|
1313
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1314
|
+
var _this = this;
|
|
1315
|
+
return __generator(this, function (_a) {
|
|
1316
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1317
|
+
return _this.mainConnector.getComponentActivitiesWithoutRelationFiltering(table, key).then(function (result) {
|
|
1318
|
+
if (result && result.validationResult && result.validationResult.success) {
|
|
1319
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(activity_bo.Activity, result.resultObject));
|
|
1320
|
+
}
|
|
1321
|
+
else {
|
|
1322
|
+
reject(result.validationMessagesAsString);
|
|
1323
|
+
}
|
|
1324
|
+
});
|
|
1325
|
+
})];
|
|
1326
|
+
});
|
|
1327
|
+
});
|
|
1328
|
+
};
|
|
1329
|
+
SharedConnectorService.prototype.updateActivity = function (activity) {
|
|
1330
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1331
|
+
var _this = this;
|
|
1332
|
+
return __generator(this, function (_a) {
|
|
1333
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1334
|
+
return _this.mainConnector.updateActivity(activity).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
|
|
1335
|
+
return __generator(this, function (_a) {
|
|
1336
|
+
resolve(result.validationResult);
|
|
1337
|
+
return [2 /*return*/];
|
|
1338
|
+
});
|
|
1339
|
+
}); });
|
|
1340
|
+
})];
|
|
1341
|
+
});
|
|
1342
|
+
});
|
|
1343
|
+
};
|
|
1344
|
+
SharedConnectorService.prototype.deleteActivity = function (activity) {
|
|
1345
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1346
|
+
var _this = this;
|
|
1347
|
+
return __generator(this, function (_a) {
|
|
1348
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1349
|
+
return _this.mainConnector.deleteActivity(activity).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
|
|
1350
|
+
return __generator(this, function (_a) {
|
|
1351
|
+
resolve(result.validationResult);
|
|
1352
|
+
return [2 /*return*/];
|
|
1353
|
+
});
|
|
1354
|
+
}); });
|
|
1355
|
+
})];
|
|
1356
|
+
});
|
|
1357
|
+
});
|
|
1358
|
+
};
|
|
1359
|
+
SharedConnectorService.prototype.lockTask = function (id) {
|
|
1360
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1361
|
+
var _this = this;
|
|
1362
|
+
return __generator(this, function (_a) {
|
|
1363
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1364
|
+
return _this.mainConnector.lockTask(id).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
|
|
1365
|
+
return __generator(this, function (_a) {
|
|
1366
|
+
resolve(result.validationResult);
|
|
1367
|
+
return [2 /*return*/];
|
|
1368
|
+
});
|
|
1369
|
+
}); });
|
|
1370
|
+
})];
|
|
1371
|
+
});
|
|
1372
|
+
});
|
|
1373
|
+
};
|
|
1374
|
+
SharedConnectorService.prototype.fireTrigger = function (workFlowProcessId, sequence, triggerId) {
|
|
1375
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1376
|
+
var _this = this;
|
|
1377
|
+
return __generator(this, function (_a) {
|
|
1378
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1379
|
+
return _this.mainConnector.fireTrigger(workFlowProcessId, sequence, triggerId).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
|
|
1380
|
+
return __generator(this, function (_a) {
|
|
1381
|
+
resolve(result.validationResult);
|
|
1382
|
+
return [2 /*return*/];
|
|
1383
|
+
});
|
|
1384
|
+
}); });
|
|
1385
|
+
})];
|
|
1386
|
+
});
|
|
1387
|
+
});
|
|
1388
|
+
};
|
|
1389
|
+
SharedConnectorService.prototype.fireGenericTrigger = function (workFlowProcessId, genericTransitionId, relationId) {
|
|
1390
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1391
|
+
var _this = this;
|
|
1392
|
+
return __generator(this, function (_a) {
|
|
1393
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1394
|
+
return _this.mainConnector.fireGenericTrigger(workFlowProcessId, genericTransitionId, relationId).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
|
|
1395
|
+
return __generator(this, function (_a) {
|
|
1396
|
+
resolve(result.validationResult);
|
|
1397
|
+
return [2 /*return*/];
|
|
1398
|
+
});
|
|
1399
|
+
}); });
|
|
1400
|
+
})];
|
|
1401
|
+
});
|
|
1402
|
+
});
|
|
1403
|
+
};
|
|
1404
|
+
SharedConnectorService.prototype.getJoinedTags = function (table, key) {
|
|
1405
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1406
|
+
var _this = this;
|
|
1407
|
+
return __generator(this, function (_a) {
|
|
1408
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1409
|
+
return _this.mainConnector.getJoinedTags(table, key).then(function (result) {
|
|
1410
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1411
|
+
if (result.resultObjects) {
|
|
1412
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(tagTreeItem_bo.TagTreeItem, result.resultObjects));
|
|
1413
|
+
}
|
|
1414
|
+
}
|
|
1415
|
+
else {
|
|
1416
|
+
reject(result.validationMessagesAsString);
|
|
1417
|
+
}
|
|
1418
|
+
});
|
|
1419
|
+
})];
|
|
1420
|
+
});
|
|
1421
|
+
});
|
|
1422
|
+
};
|
|
1299
1423
|
SharedConnectorService.prototype.getDocumentContent = function (id, thumbnail) {
|
|
1300
1424
|
if (thumbnail === void 0) { thumbnail = true; }
|
|
1301
1425
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -1748,6 +1872,25 @@
|
|
|
1748
1872
|
});
|
|
1749
1873
|
});
|
|
1750
1874
|
};
|
|
1875
|
+
SharedConnectorService.prototype.getWorkflowProcessInfoPerStatus = function (worlflowCategory) {
|
|
1876
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1877
|
+
var _this = this;
|
|
1878
|
+
return __generator(this, function (_a) {
|
|
1879
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1880
|
+
return _this.mainConnector.getWorkflowProcessInfoPerStatus(worlflowCategory).then(function (result) {
|
|
1881
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1882
|
+
if (result.resultObject) {
|
|
1883
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(workflowProcessInfoPerStatus.WorkflowProcessInfoPerStatus, result.resultObject));
|
|
1884
|
+
}
|
|
1885
|
+
}
|
|
1886
|
+
else {
|
|
1887
|
+
reject(result.validationMessagesAsString);
|
|
1888
|
+
}
|
|
1889
|
+
});
|
|
1890
|
+
})];
|
|
1891
|
+
});
|
|
1892
|
+
});
|
|
1893
|
+
};
|
|
1751
1894
|
SharedConnectorService.prototype.getHistoricActivities = function (table, key) {
|
|
1752
1895
|
return __awaiter(this, void 0, void 0, function () {
|
|
1753
1896
|
var _this = this;
|
|
@@ -2205,10 +2348,12 @@
|
|
|
2205
2348
|
this.okButtonClicked = new i0.EventEmitter();
|
|
2206
2349
|
this.cancelButtonClicked = new i0.EventEmitter();
|
|
2207
2350
|
this.handleClick = new i0.EventEmitter();
|
|
2351
|
+
this.updateGridData = new i0.EventEmitter();
|
|
2208
2352
|
this.loaded = false;
|
|
2209
2353
|
this.showStockInformationGrid = true;
|
|
2210
2354
|
this.showStockTransfer = false;
|
|
2211
2355
|
this.stockInformation = [];
|
|
2356
|
+
this.articleDetailsInformation = new articleStockManagement.ArticleStockManagement();
|
|
2212
2357
|
this.stockHistory = [];
|
|
2213
2358
|
this.allAvailableStock = 0;
|
|
2214
2359
|
this.allTechnicalStock = 0;
|
|
@@ -2265,7 +2410,12 @@
|
|
|
2265
2410
|
data.entryDate = new Date;
|
|
2266
2411
|
this._stockService.updateArticleDetails(data).then(function (result) {
|
|
2267
2412
|
_this.handleClick.emit();
|
|
2413
|
+
_this._stockService.getArticleDetails(_this.articleDetailsInformation).then(function (details) {
|
|
2414
|
+
_this.updateGridData.emit(details);
|
|
2415
|
+
});
|
|
2268
2416
|
});
|
|
2417
|
+
this.loaded = true;
|
|
2418
|
+
this.loadData();
|
|
2269
2419
|
};
|
|
2270
2420
|
StockComponent.prototype.backToStock = function (goodId) {
|
|
2271
2421
|
this.loadData();
|
|
@@ -2362,7 +2512,7 @@
|
|
|
2362
2512
|
StockComponent.decorators = [
|
|
2363
2513
|
{ type: i0.Component, args: [{
|
|
2364
2514
|
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
|
|
2515
|
+
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
2516
|
encapsulation: i0.ViewEncapsulation.None
|
|
2367
2517
|
},] }
|
|
2368
2518
|
];
|
|
@@ -2644,15 +2794,24 @@
|
|
|
2644
2794
|
};
|
|
2645
2795
|
|
|
2646
2796
|
var StockTransferComponent = /** @class */ (function () {
|
|
2647
|
-
function StockTransferComponent(_stockService, iconCacheService) {
|
|
2797
|
+
function StockTransferComponent(_stockService, iconCacheService, _changeDetector) {
|
|
2648
2798
|
this._stockService = _stockService;
|
|
2649
2799
|
this.iconCacheService = iconCacheService;
|
|
2800
|
+
this._changeDetector = _changeDetector;
|
|
2801
|
+
this.selectedArticleDetailsData = new articleDetails_bo.ArticleDetailsBo();
|
|
2802
|
+
this.articleDetailsInformation = new articleStockManagement.ArticleStockManagement();
|
|
2803
|
+
this.articleStockInfo = [];
|
|
2804
|
+
this.stockLocations = [];
|
|
2650
2805
|
this.handleClick = new i0.EventEmitter();
|
|
2651
2806
|
this.handleStickerClicked = new i0.EventEmitter();
|
|
2807
|
+
this.updateGridData = new i0.EventEmitter();
|
|
2808
|
+
this.showStockTransferChange = new i0.EventEmitter();
|
|
2652
2809
|
this.showSendMethodDialog = false;
|
|
2810
|
+
this.transferFull = false;
|
|
2653
2811
|
this.warehouses = [];
|
|
2654
2812
|
this.stockState = [];
|
|
2655
2813
|
this.locations = [];
|
|
2814
|
+
this.stockStatus = [];
|
|
2656
2815
|
this.icons = exports["ɵbu"];
|
|
2657
2816
|
}
|
|
2658
2817
|
StockTransferComponent.prototype.ngAfterViewInit = function () {
|
|
@@ -2661,21 +2820,31 @@
|
|
|
2661
2820
|
};
|
|
2662
2821
|
StockTransferComponent.prototype.handleOkClick = function (data) {
|
|
2663
2822
|
var _this = this;
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2823
|
+
if (this.articleToTransfer.amountTransfer > this.articleToTransfer.amountInStockFree) {
|
|
2824
|
+
this.transferFull = true;
|
|
2825
|
+
}
|
|
2826
|
+
else {
|
|
2827
|
+
data.selected = true;
|
|
2828
|
+
data.entryDate = new Date;
|
|
2829
|
+
this._stockService.updateArticleDetails(data).then(function (result) {
|
|
2830
|
+
_this.handleClick.emit();
|
|
2831
|
+
_this.showStockTransferChange.emit(false);
|
|
2832
|
+
_this._stockService.getArticleDetails(_this.articleDetailsInformation).then(function (details) {
|
|
2833
|
+
_this.articleStockInfo = details;
|
|
2834
|
+
_this.updateGridData.emit(details);
|
|
2835
|
+
});
|
|
2836
|
+
}).catch(function (result) {
|
|
2837
|
+
// Log failure message
|
|
2838
|
+
});
|
|
2839
|
+
}
|
|
2671
2840
|
};
|
|
2672
|
-
StockTransferComponent.prototype.
|
|
2673
|
-
this.
|
|
2841
|
+
StockTransferComponent.prototype.onCloseClick = function () {
|
|
2842
|
+
this.showStockTransferChange.emit(false);
|
|
2674
2843
|
};
|
|
2675
2844
|
StockTransferComponent.prototype.handleSelectedWarehouse = function (event) {
|
|
2676
2845
|
this.articleToTransfer.targetWarehouse = event.warehouseNo;
|
|
2677
2846
|
this.selectedWarehouse = event;
|
|
2678
|
-
this.getStockManagementLocations(
|
|
2847
|
+
this.getStockManagementLocations();
|
|
2679
2848
|
};
|
|
2680
2849
|
StockTransferComponent.prototype.handleSelectedLocation = function (event) {
|
|
2681
2850
|
this.articleToTransfer.targetLocation = event.locationNo;
|
|
@@ -2693,10 +2862,10 @@
|
|
|
2693
2862
|
_this.warehouses = warehouses;
|
|
2694
2863
|
});
|
|
2695
2864
|
};
|
|
2696
|
-
StockTransferComponent.prototype.getStockManagementLocations = function (
|
|
2865
|
+
StockTransferComponent.prototype.getStockManagementLocations = function () {
|
|
2697
2866
|
var _this = this;
|
|
2698
|
-
this._stockService.getStockManagementLocations(
|
|
2699
|
-
_this.
|
|
2867
|
+
this._stockService.getStockManagementLocations(this.selectedWarehouse.warehouseNo).then(function (locations) {
|
|
2868
|
+
_this.stockLocations = locations;
|
|
2700
2869
|
});
|
|
2701
2870
|
};
|
|
2702
2871
|
StockTransferComponent.prototype.getStockState = function () {
|
|
@@ -2710,22 +2879,32 @@
|
|
|
2710
2879
|
StockTransferComponent.decorators = [
|
|
2711
2880
|
{ type: i0.Component, args: [{
|
|
2712
2881
|
selector: "co-stock-transfer",
|
|
2713
|
-
template: "\n <div class=\"stock-transfer\">\n <div class=\"stock-transfer-columns\">\n
|
|
2882
|
+
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
2883
|
encapsulation: i0.ViewEncapsulation.None
|
|
2715
2884
|
},] }
|
|
2716
2885
|
];
|
|
2717
2886
|
StockTransferComponent.ctorParameters = function () { return [
|
|
2718
2887
|
{ type: StockService },
|
|
2719
|
-
{ type: IconCacheService }
|
|
2888
|
+
{ type: IconCacheService },
|
|
2889
|
+
{ type: i0.ChangeDetectorRef }
|
|
2720
2890
|
]; };
|
|
2721
2891
|
StockTransferComponent.propDecorators = {
|
|
2722
2892
|
stockSticker: [{ type: i0.Input }],
|
|
2723
2893
|
article: [{ type: i0.Input }],
|
|
2724
2894
|
articleToTransfer: [{ type: i0.Input }],
|
|
2725
|
-
articleWarehouse: [{ type: i0.Input }],
|
|
2726
2895
|
allWarehouses: [{ type: i0.Input }],
|
|
2896
|
+
showStockTransfer: [{ type: i0.Input }],
|
|
2897
|
+
selectedArticleDetailsData: [{ type: i0.Input }],
|
|
2898
|
+
articleFlat: [{ type: i0.Input }],
|
|
2899
|
+
articleDetailsInformation: [{ type: i0.Input }],
|
|
2900
|
+
selectedWarehouse: [{ type: i0.Input }],
|
|
2901
|
+
selectedLocationNo: [{ type: i0.Input }],
|
|
2902
|
+
articleStockInfo: [{ type: i0.Input }],
|
|
2903
|
+
stockLocations: [{ type: i0.Input }],
|
|
2727
2904
|
handleClick: [{ type: i0.Output }],
|
|
2728
|
-
handleStickerClicked: [{ type: i0.Output }]
|
|
2905
|
+
handleStickerClicked: [{ type: i0.Output }],
|
|
2906
|
+
updateGridData: [{ type: i0.Output }],
|
|
2907
|
+
showStockTransferChange: [{ type: i0.Output }]
|
|
2729
2908
|
};
|
|
2730
2909
|
|
|
2731
2910
|
var SharedService = /** @class */ (function () {
|
|
@@ -2811,6 +2990,16 @@
|
|
|
2811
2990
|
});
|
|
2812
2991
|
});
|
|
2813
2992
|
};
|
|
2993
|
+
SharedService.prototype.getJoinedTags = function (table, key) {
|
|
2994
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2995
|
+
return __generator(this, function (_a) {
|
|
2996
|
+
switch (_a.label) {
|
|
2997
|
+
case 0: return [4 /*yield*/, this.connector.getJoinedTags(table, key)];
|
|
2998
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
2999
|
+
}
|
|
3000
|
+
});
|
|
3001
|
+
});
|
|
3002
|
+
};
|
|
2814
3003
|
SharedService.prototype.getDocumentContent = function (docId, thumbnail) {
|
|
2815
3004
|
if (thumbnail === void 0) { thumbnail = true; }
|
|
2816
3005
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -2822,6 +3011,69 @@
|
|
|
2822
3011
|
});
|
|
2823
3012
|
});
|
|
2824
3013
|
};
|
|
3014
|
+
SharedService.prototype.getComponentActivitiesWithoutRelationFiltering = function (table, key) {
|
|
3015
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3016
|
+
return __generator(this, function (_a) {
|
|
3017
|
+
switch (_a.label) {
|
|
3018
|
+
case 0: return [4 /*yield*/, this.connector.getComponentActivitiesWithoutRelationFiltering(table, key)];
|
|
3019
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
3020
|
+
}
|
|
3021
|
+
});
|
|
3022
|
+
});
|
|
3023
|
+
};
|
|
3024
|
+
SharedService.prototype.updateActivity = function (activity) {
|
|
3025
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3026
|
+
return __generator(this, function (_a) {
|
|
3027
|
+
switch (_a.label) {
|
|
3028
|
+
case 0: return [4 /*yield*/, this.connector.updateActivity(activity)];
|
|
3029
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
3030
|
+
}
|
|
3031
|
+
});
|
|
3032
|
+
});
|
|
3033
|
+
};
|
|
3034
|
+
SharedService.prototype.deleteActivity = function (activity) {
|
|
3035
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3036
|
+
return __generator(this, function (_a) {
|
|
3037
|
+
switch (_a.label) {
|
|
3038
|
+
case 0: return [4 /*yield*/, this.connector.deleteActivity(activity)];
|
|
3039
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
3040
|
+
}
|
|
3041
|
+
});
|
|
3042
|
+
});
|
|
3043
|
+
};
|
|
3044
|
+
SharedService.prototype.lockTask = function (id) {
|
|
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.lockTask(id)];
|
|
3049
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
3050
|
+
}
|
|
3051
|
+
});
|
|
3052
|
+
});
|
|
3053
|
+
};
|
|
3054
|
+
SharedService.prototype.canFireTrigger = function (activity, task) {
|
|
3055
|
+
return true;
|
|
3056
|
+
};
|
|
3057
|
+
SharedService.prototype.fireTrigger = function (workFlowProcessId, sequence, triggerId) {
|
|
3058
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3059
|
+
return __generator(this, function (_a) {
|
|
3060
|
+
switch (_a.label) {
|
|
3061
|
+
case 0: return [4 /*yield*/, this.connector.fireTrigger(workFlowProcessId, sequence, triggerId)];
|
|
3062
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
3063
|
+
}
|
|
3064
|
+
});
|
|
3065
|
+
});
|
|
3066
|
+
};
|
|
3067
|
+
SharedService.prototype.fireGenericTrigger = function (workFlowProcessId, genericTransitionId, relationId) {
|
|
3068
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3069
|
+
return __generator(this, function (_a) {
|
|
3070
|
+
switch (_a.label) {
|
|
3071
|
+
case 0: return [4 /*yield*/, this.connector.fireGenericTrigger(workFlowProcessId, genericTransitionId, relationId)];
|
|
3072
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
3073
|
+
}
|
|
3074
|
+
});
|
|
3075
|
+
});
|
|
3076
|
+
};
|
|
2825
3077
|
SharedService.prototype.getRelationListObjects = function (request) {
|
|
2826
3078
|
return __awaiter(this, void 0, void 0, function () {
|
|
2827
3079
|
return __generator(this, function (_a) {
|
|
@@ -2872,6 +3124,16 @@
|
|
|
2872
3124
|
});
|
|
2873
3125
|
});
|
|
2874
3126
|
};
|
|
3127
|
+
SharedService.prototype.getWorkflowProcessInfoPerStatus = function (workflowCategory) {
|
|
3128
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3129
|
+
return __generator(this, function (_a) {
|
|
3130
|
+
switch (_a.label) {
|
|
3131
|
+
case 0: return [4 /*yield*/, this.connector.getWorkflowProcessInfoPerStatus(workflowCategory)];
|
|
3132
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
3133
|
+
}
|
|
3134
|
+
});
|
|
3135
|
+
});
|
|
3136
|
+
};
|
|
2875
3137
|
SharedService.prototype.getActivities = function (table, key) {
|
|
2876
3138
|
return __awaiter(this, void 0, void 0, function () {
|
|
2877
3139
|
var activities, histActivities, activeActivities, historicActivities;
|
|
@@ -3756,6 +4018,9 @@
|
|
|
3756
4018
|
},
|
|
3757
4019
|
];
|
|
3758
4020
|
};
|
|
4021
|
+
StockTabsComponent.prototype.onShowStockTransferChange = function (show) {
|
|
4022
|
+
this.showStockTransfer = show;
|
|
4023
|
+
};
|
|
3759
4024
|
StockTabsComponent.prototype.handleLocationClicked = function (data) {
|
|
3760
4025
|
this.tabs[0].active = false;
|
|
3761
4026
|
this.tabs[2].active = true;
|
|
@@ -3875,7 +4140,7 @@
|
|
|
3875
4140
|
StockTabsComponent.decorators = [
|
|
3876
4141
|
{ type: i0.Component, args: [{
|
|
3877
4142
|
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 ",
|
|
4143
|
+
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
4144
|
encapsulation: i0.ViewEncapsulation.None
|
|
3880
4145
|
},] }
|
|
3881
4146
|
];
|
|
@@ -3888,6 +4153,7 @@
|
|
|
3888
4153
|
stockInformation: [{ type: i0.Input }],
|
|
3889
4154
|
article: [{ type: i0.Input }],
|
|
3890
4155
|
articleFlat: [{ type: i0.Input }],
|
|
4156
|
+
showStockTransfer: [{ type: i0.Input }],
|
|
3891
4157
|
warehouses: [{ type: i0.Input }],
|
|
3892
4158
|
transferIconClicked: [{ type: i0.Output }],
|
|
3893
4159
|
sendMethodDialogClicked: [{ type: i0.Output }]
|
|
@@ -3943,9 +4209,13 @@
|
|
|
3943
4209
|
this.icons = exports["ɵbu"];
|
|
3944
4210
|
this.articleStockInfo = [];
|
|
3945
4211
|
this.articleStockInformation = [];
|
|
4212
|
+
this.articleWarehouse = [];
|
|
4213
|
+
this.allWarehouses = [];
|
|
3946
4214
|
this.dataWareHouseCode = [];
|
|
3947
4215
|
this.transferIconClicked = new i0.EventEmitter();
|
|
3948
4216
|
this.sendMethodDialogClicked = new i0.EventEmitter();
|
|
4217
|
+
this.showStockTransferChange = new i0.EventEmitter();
|
|
4218
|
+
this.handleStickerClicked = new i0.EventEmitter();
|
|
3949
4219
|
this.showConfirmationDialog = false;
|
|
3950
4220
|
this.newStockLine = false;
|
|
3951
4221
|
this.showConfirmStockRow = false;
|
|
@@ -3975,6 +4245,10 @@
|
|
|
3975
4245
|
};
|
|
3976
4246
|
StockLocationComponent.prototype.ngOnDestroy = function () {
|
|
3977
4247
|
};
|
|
4248
|
+
StockLocationComponent.prototype.onShowStockTransferChange = function (show) {
|
|
4249
|
+
this.showStockTransfer = show;
|
|
4250
|
+
this.showStockTransferChange.emit(this.showStockTransfer);
|
|
4251
|
+
};
|
|
3978
4252
|
StockLocationComponent.prototype.onLocationDropdownClick = function () {
|
|
3979
4253
|
var _this = this;
|
|
3980
4254
|
this._stockService.getStockManagementLocations(this.selectedWarehouse.warehouseNo).then(function (locations) {
|
|
@@ -3993,7 +4267,8 @@
|
|
|
3993
4267
|
this.sendMethodDialogClicked.emit(data);
|
|
3994
4268
|
};
|
|
3995
4269
|
StockLocationComponent.prototype.handleStockTransferClick = function (event) {
|
|
3996
|
-
this.
|
|
4270
|
+
this.articleDetails = event;
|
|
4271
|
+
this.showStockTransfer = true;
|
|
3997
4272
|
};
|
|
3998
4273
|
StockLocationComponent.prototype.onOkClickSendLocations = function (row) {
|
|
3999
4274
|
this.selectedArticleDetailsData = row;
|
|
@@ -4065,7 +4340,7 @@
|
|
|
4065
4340
|
StockLocationComponent.decorators = [
|
|
4066
4341
|
{ type: i0.Component, args: [{
|
|
4067
4342
|
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 ",
|
|
4343
|
+
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
4344
|
encapsulation: i0.ViewEncapsulation.None
|
|
4070
4345
|
},] }
|
|
4071
4346
|
];
|
|
@@ -4077,11 +4352,16 @@
|
|
|
4077
4352
|
StockLocationComponent.propDecorators = {
|
|
4078
4353
|
articleStockInfo: [{ type: i0.Input }],
|
|
4079
4354
|
articleStockInformation: [{ type: i0.Input }],
|
|
4355
|
+
articleWarehouse: [{ type: i0.Input }],
|
|
4356
|
+
allWarehouses: [{ type: i0.Input }],
|
|
4080
4357
|
article: [{ type: i0.Input }],
|
|
4358
|
+
showStockTransfer: [{ type: i0.Input }],
|
|
4081
4359
|
articleFlat: [{ type: i0.Input }],
|
|
4082
4360
|
dataWareHouseCode: [{ type: i0.Input }],
|
|
4083
4361
|
transferIconClicked: [{ type: i0.Output }],
|
|
4084
4362
|
sendMethodDialogClicked: [{ type: i0.Output }],
|
|
4363
|
+
showStockTransferChange: [{ type: i0.Output }],
|
|
4364
|
+
handleStickerClicked: [{ type: i0.Output }],
|
|
4085
4365
|
selectedWarehouse: [{ type: i0.Input }],
|
|
4086
4366
|
stockLocations: [{ type: i0.Input }]
|
|
4087
4367
|
};
|
|
@@ -4751,7 +5031,7 @@
|
|
|
4751
5031
|
StockLocationPopupComponent.decorators = [
|
|
4752
5032
|
{ type: i0.Component, args: [{
|
|
4753
5033
|
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-
|
|
5034
|
+
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
5035
|
encapsulation: i0.ViewEncapsulation.None
|
|
4756
5036
|
},] }
|
|
4757
5037
|
];
|
|
@@ -4799,7 +5079,8 @@
|
|
|
4799
5079
|
StockStatusbarModule,
|
|
4800
5080
|
corecomponents_v12.ListOfValuesModule,
|
|
4801
5081
|
LocalizationModule,
|
|
4802
|
-
corecomponents_v12.PopupModule
|
|
5082
|
+
corecomponents_v12.PopupModule,
|
|
5083
|
+
corecomponents_v12.InputDatePickerModule
|
|
4803
5084
|
],
|
|
4804
5085
|
declarations: [
|
|
4805
5086
|
StockComponent,
|
|
@@ -4882,6 +5163,7 @@
|
|
|
4882
5163
|
this.REFERENCE = 'REFERENCE';
|
|
4883
5164
|
this.RELATION_ID = 'RELATION_ID';
|
|
4884
5165
|
this.RELATION_NR = 'RELATION_NR';
|
|
5166
|
+
this.REMARK = 'REMARK';
|
|
4885
5167
|
this.RESERVED = 'RESERVED';
|
|
4886
5168
|
this.QUANTITY = 'QUANTITY';
|
|
4887
5169
|
this.SEARCH = 'SEARCH';
|
|
@@ -4889,6 +5171,7 @@
|
|
|
4889
5171
|
this.SERIE_NO = 'SERIE_NO';
|
|
4890
5172
|
this.STANDARD_WAREHOUSE = 'STANDARD_WAREHOUSE';
|
|
4891
5173
|
this.STANDARD_LOCATION = 'STANDARD_LOCATION';
|
|
5174
|
+
this.STATUS = 'STATUS';
|
|
4892
5175
|
this.STICKER = 'STICKER';
|
|
4893
5176
|
this.STOCK = 'STOCK';
|
|
4894
5177
|
this.STOCK_DETAILS = 'STOCK_DETAILS';
|
|
@@ -7119,14 +7402,74 @@
|
|
|
7119
7402
|
this._linkedTags = [];
|
|
7120
7403
|
}
|
|
7121
7404
|
Object.defineProperty(SimpleTagsComponent.prototype, "tags", {
|
|
7405
|
+
get: function () {
|
|
7406
|
+
return this._tags;
|
|
7407
|
+
},
|
|
7122
7408
|
set: function (tags) {
|
|
7123
7409
|
this._tags = tags;
|
|
7124
|
-
this.setRootDisplayTags();
|
|
7125
7410
|
},
|
|
7126
7411
|
enumerable: false,
|
|
7127
7412
|
configurable: true
|
|
7128
7413
|
});
|
|
7129
7414
|
Object.defineProperty(SimpleTagsComponent.prototype, "linkedTags", {
|
|
7415
|
+
get: function () {
|
|
7416
|
+
return this._linkedTags;
|
|
7417
|
+
},
|
|
7418
|
+
set: function (tags) {
|
|
7419
|
+
this._linkedTags = tags;
|
|
7420
|
+
},
|
|
7421
|
+
enumerable: false,
|
|
7422
|
+
configurable: true
|
|
7423
|
+
});
|
|
7424
|
+
SimpleTagsComponent.prototype.showClass = function () {
|
|
7425
|
+
return true;
|
|
7426
|
+
};
|
|
7427
|
+
SimpleTagsComponent.prototype.handleSaveTags = function () {
|
|
7428
|
+
this.saveClick.next(this._linkedTags);
|
|
7429
|
+
this.closeClick.next();
|
|
7430
|
+
};
|
|
7431
|
+
return SimpleTagsComponent;
|
|
7432
|
+
}());
|
|
7433
|
+
SimpleTagsComponent.decorators = [
|
|
7434
|
+
{ type: i0.Component, args: [{
|
|
7435
|
+
selector: "co-simple-tags",
|
|
7436
|
+
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 ",
|
|
7437
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
7438
|
+
},] }
|
|
7439
|
+
];
|
|
7440
|
+
SimpleTagsComponent.ctorParameters = function () { return [
|
|
7441
|
+
{ type: IconCacheService },
|
|
7442
|
+
{ type: SharedService }
|
|
7443
|
+
]; };
|
|
7444
|
+
SimpleTagsComponent.propDecorators = {
|
|
7445
|
+
tags: [{ type: i0.Input }],
|
|
7446
|
+
linkedTags: [{ type: i0.Input }],
|
|
7447
|
+
closeClick: [{ type: i0.Output }],
|
|
7448
|
+
saveClick: [{ type: i0.Output }],
|
|
7449
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-simple-tags",] }]
|
|
7450
|
+
};
|
|
7451
|
+
|
|
7452
|
+
var SimpleTagsFormComponent = /** @class */ (function () {
|
|
7453
|
+
function SimpleTagsFormComponent(iconCacheService, sharedService) {
|
|
7454
|
+
this.iconCacheService = iconCacheService;
|
|
7455
|
+
this.sharedService = sharedService;
|
|
7456
|
+
this.icon = exports["ɵbu"];
|
|
7457
|
+
this.linkedTagsChange = new i0.EventEmitter();
|
|
7458
|
+
this.breadCrumbs = [];
|
|
7459
|
+
this.displayTags = [];
|
|
7460
|
+
this.searchString = '';
|
|
7461
|
+
this._tags = [];
|
|
7462
|
+
this._linkedTags = [];
|
|
7463
|
+
}
|
|
7464
|
+
Object.defineProperty(SimpleTagsFormComponent.prototype, "tags", {
|
|
7465
|
+
set: function (tags) {
|
|
7466
|
+
this._tags = tags;
|
|
7467
|
+
this.setRootDisplayTags();
|
|
7468
|
+
},
|
|
7469
|
+
enumerable: false,
|
|
7470
|
+
configurable: true
|
|
7471
|
+
});
|
|
7472
|
+
Object.defineProperty(SimpleTagsFormComponent.prototype, "linkedTags", {
|
|
7130
7473
|
get: function () {
|
|
7131
7474
|
return this._linkedTags;
|
|
7132
7475
|
},
|
|
@@ -7138,15 +7481,15 @@
|
|
|
7138
7481
|
enumerable: false,
|
|
7139
7482
|
configurable: true
|
|
7140
7483
|
});
|
|
7141
|
-
|
|
7484
|
+
SimpleTagsFormComponent.prototype.showClass = function () {
|
|
7142
7485
|
return true;
|
|
7143
7486
|
};
|
|
7144
|
-
|
|
7487
|
+
SimpleTagsFormComponent.prototype.setRootDisplayTags = function () {
|
|
7145
7488
|
this.displayTags = this._tags.filter(function (tag) { return tag.treeLevel === 0; });
|
|
7146
7489
|
this.breadCrumbs = [];
|
|
7147
7490
|
this.searchString = '';
|
|
7148
7491
|
};
|
|
7149
|
-
|
|
7492
|
+
SimpleTagsFormComponent.prototype.handleTagSelected = function (selectedTag) {
|
|
7150
7493
|
if (selectedTag.tagType === 'TR' || selectedTag.tagType === 'TG') {
|
|
7151
7494
|
if (selectedTag !== this.breadCrumbs[0]) {
|
|
7152
7495
|
this.breadCrumbs.push(selectedTag);
|
|
@@ -7156,23 +7499,23 @@
|
|
|
7156
7499
|
});
|
|
7157
7500
|
}
|
|
7158
7501
|
};
|
|
7159
|
-
|
|
7502
|
+
SimpleTagsFormComponent.prototype.handleCrumbClicked = function (tag, index) {
|
|
7160
7503
|
if (tag !== this.breadCrumbs[this.breadCrumbs.length - 1]) {
|
|
7161
7504
|
this.breadCrumbs.splice(index + 1);
|
|
7162
7505
|
this.handleTagSelected(tag);
|
|
7163
7506
|
}
|
|
7164
7507
|
};
|
|
7165
|
-
|
|
7508
|
+
SimpleTagsFormComponent.prototype.handleAddTag = function (event) {
|
|
7166
7509
|
var draggedTag = this.displayTags[event.previousIndex];
|
|
7167
7510
|
if (!this._linkedTags.includes(draggedTag)) {
|
|
7168
7511
|
this._linkedTags.push(this.displayTags[event.previousIndex]);
|
|
7169
7512
|
this._loadThumbnail(draggedTag);
|
|
7170
7513
|
}
|
|
7171
7514
|
};
|
|
7172
|
-
|
|
7515
|
+
SimpleTagsFormComponent.prototype.deleteLinkedTag = function (tag) {
|
|
7173
7516
|
this._linkedTags.splice(this._linkedTags.indexOf(tag), 1);
|
|
7174
7517
|
};
|
|
7175
|
-
|
|
7518
|
+
SimpleTagsFormComponent.prototype.searchCollection = function () {
|
|
7176
7519
|
var _this = this;
|
|
7177
7520
|
if (!this.searchString) {
|
|
7178
7521
|
this.searchString = '';
|
|
@@ -7200,11 +7543,7 @@
|
|
|
7200
7543
|
this.displayTags = matchingObjects;
|
|
7201
7544
|
this.breadCrumbs = [];
|
|
7202
7545
|
};
|
|
7203
|
-
|
|
7204
|
-
this.saveClick.next(this._linkedTags);
|
|
7205
|
-
this.closeClick.next();
|
|
7206
|
-
};
|
|
7207
|
-
SimpleTagsComponent.prototype._loadThumbnail = function (tagTreeItem) {
|
|
7546
|
+
SimpleTagsFormComponent.prototype._loadThumbnail = function (tagTreeItem) {
|
|
7208
7547
|
if (tagTreeItem.image && tagTreeItem.image.documentId && !tagTreeItem.image.thumbnailBody) {
|
|
7209
7548
|
this.sharedService.getDocumentContent(tagTreeItem.image.documentId, true)
|
|
7210
7549
|
.then(function (result) {
|
|
@@ -7214,27 +7553,50 @@
|
|
|
7214
7553
|
});
|
|
7215
7554
|
}
|
|
7216
7555
|
};
|
|
7217
|
-
return
|
|
7556
|
+
return SimpleTagsFormComponent;
|
|
7218
7557
|
}());
|
|
7219
|
-
|
|
7558
|
+
SimpleTagsFormComponent.decorators = [
|
|
7220
7559
|
{ type: i0.Component, args: [{
|
|
7221
|
-
selector: "co-simple-tags",
|
|
7222
|
-
template: "\n <
|
|
7560
|
+
selector: "co-simple-tags-form",
|
|
7561
|
+
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
7562
|
encapsulation: i0.ViewEncapsulation.None
|
|
7224
7563
|
},] }
|
|
7225
7564
|
];
|
|
7226
|
-
|
|
7565
|
+
SimpleTagsFormComponent.ctorParameters = function () { return [
|
|
7227
7566
|
{ type: IconCacheService },
|
|
7228
7567
|
{ type: SharedService }
|
|
7229
7568
|
]; };
|
|
7230
|
-
|
|
7569
|
+
SimpleTagsFormComponent.propDecorators = {
|
|
7231
7570
|
tags: [{ type: i0.Input }],
|
|
7232
7571
|
linkedTags: [{ type: i0.Input }],
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
showClass: [{ type: i0.HostBinding, args: ["class.co-simple-tags",] }]
|
|
7572
|
+
linkedTagsChange: [{ type: i0.Output }],
|
|
7573
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-simple-tags-form",] }]
|
|
7236
7574
|
};
|
|
7237
7575
|
|
|
7576
|
+
var SimpleTagsFormModule = /** @class */ (function () {
|
|
7577
|
+
function SimpleTagsFormModule() {
|
|
7578
|
+
}
|
|
7579
|
+
return SimpleTagsFormModule;
|
|
7580
|
+
}());
|
|
7581
|
+
SimpleTagsFormModule.decorators = [
|
|
7582
|
+
{ type: i0.NgModule, args: [{
|
|
7583
|
+
imports: [
|
|
7584
|
+
common.CommonModule,
|
|
7585
|
+
corecomponents_v12.CoDialogModule,
|
|
7586
|
+
corecomponents_v12.InputSearchModule,
|
|
7587
|
+
corecomponents_v12.IconModule,
|
|
7588
|
+
dragDrop.DragDropModule,
|
|
7589
|
+
corecomponents_v12.ButtonModule
|
|
7590
|
+
],
|
|
7591
|
+
declarations: [
|
|
7592
|
+
SimpleTagsFormComponent
|
|
7593
|
+
],
|
|
7594
|
+
exports: [
|
|
7595
|
+
SimpleTagsFormComponent
|
|
7596
|
+
]
|
|
7597
|
+
},] }
|
|
7598
|
+
];
|
|
7599
|
+
|
|
7238
7600
|
var SimpleTagsModule = /** @class */ (function () {
|
|
7239
7601
|
function SimpleTagsModule() {
|
|
7240
7602
|
}
|
|
@@ -7248,7 +7610,8 @@
|
|
|
7248
7610
|
corecomponents_v12.InputSearchModule,
|
|
7249
7611
|
corecomponents_v12.IconModule,
|
|
7250
7612
|
dragDrop.DragDropModule,
|
|
7251
|
-
corecomponents_v12.ButtonModule
|
|
7613
|
+
corecomponents_v12.ButtonModule,
|
|
7614
|
+
SimpleTagsFormModule
|
|
7252
7615
|
],
|
|
7253
7616
|
declarations: [
|
|
7254
7617
|
SimpleTagsComponent
|
|
@@ -10685,6 +11048,7 @@
|
|
|
10685
11048
|
this.privateDelegatedActivityListViewModels = [];
|
|
10686
11049
|
this.filteredActivityListViewModels = [];
|
|
10687
11050
|
this.filteredDelegatedActivityListViewModels = [];
|
|
11051
|
+
this._showUsergroupActivities = false;
|
|
10688
11052
|
this._activities = [];
|
|
10689
11053
|
this._delegatedActivities = [];
|
|
10690
11054
|
//protected userService: UserService
|
|
@@ -10722,9 +11086,10 @@
|
|
|
10722
11086
|
Object.defineProperty(BaseActivityListComponent.prototype, "showUsergroupActivities", {
|
|
10723
11087
|
// TODO: return this.userService.showUsergroupActivities and allow to set properly;
|
|
10724
11088
|
get: function () {
|
|
10725
|
-
return
|
|
11089
|
+
return this._showUsergroupActivities;
|
|
10726
11090
|
},
|
|
10727
11091
|
set: function (value) {
|
|
11092
|
+
this._showUsergroupActivities = value;
|
|
10728
11093
|
},
|
|
10729
11094
|
enumerable: false,
|
|
10730
11095
|
configurable: true
|
|
@@ -10747,7 +11112,7 @@
|
|
|
10747
11112
|
BaseActivityListComponent.prototype.afterFilterApplied = function () {
|
|
10748
11113
|
};
|
|
10749
11114
|
BaseActivityListComponent.prototype.getTheActivities = function () {
|
|
10750
|
-
|
|
11115
|
+
this.getActivities();
|
|
10751
11116
|
this.getDelegatedActivities();
|
|
10752
11117
|
};
|
|
10753
11118
|
BaseActivityListComponent.prototype._removeNotShowing = function (listViewModels) {
|
|
@@ -10989,10 +11354,6 @@
|
|
|
10989
11354
|
ActivityCfgName["WorkedTime"] = "workedTime";
|
|
10990
11355
|
})(ActivityCfgName || (ActivityCfgName = {}));
|
|
10991
11356
|
|
|
10992
|
-
function OperationWithValidationCallback(object, object2, object3) {
|
|
10993
|
-
return Promise.resolve(new validationResult.ValidationResult());
|
|
10994
|
-
}
|
|
10995
|
-
|
|
10996
11357
|
var AppPopupButtonType;
|
|
10997
11358
|
(function (AppPopupButtonType) {
|
|
10998
11359
|
AppPopupButtonType[AppPopupButtonType["Ok"] = 0] = "Ok";
|
|
@@ -11005,13 +11366,13 @@
|
|
|
11005
11366
|
})(AppPopupButtonType || (AppPopupButtonType = {}));
|
|
11006
11367
|
|
|
11007
11368
|
var ModifyTaskFormComponent = /** @class */ (function () {
|
|
11008
|
-
function ModifyTaskFormComponent(_boFactory, sharedService
|
|
11369
|
+
function ModifyTaskFormComponent(_boFactory, sharedService, iconCacheService
|
|
11009
11370
|
//private _mediaMonitor: MediaMonitorService,
|
|
11010
11371
|
/*private _activityService: ActivityService*/
|
|
11011
11372
|
) {
|
|
11012
11373
|
this._boFactory = _boFactory;
|
|
11013
11374
|
this.sharedService = sharedService;
|
|
11014
|
-
this.
|
|
11375
|
+
this.iconCacheService = iconCacheService;
|
|
11015
11376
|
//public readonly TagCategory: typeof TagCategory = TagCategory;
|
|
11016
11377
|
this.TableNames = tableName_enum.TableName;
|
|
11017
11378
|
this.readonly = false;
|
|
@@ -11023,6 +11384,7 @@
|
|
|
11023
11384
|
this.activities = [];
|
|
11024
11385
|
this.table = tableName_enum.TableName.Tasks;
|
|
11025
11386
|
this.expandActivities = false;
|
|
11387
|
+
this.showTagPopup = false;
|
|
11026
11388
|
}
|
|
11027
11389
|
Object.defineProperty(ModifyTaskFormComponent.prototype, "activity", {
|
|
11028
11390
|
get: function () {
|
|
@@ -11064,6 +11426,7 @@
|
|
|
11064
11426
|
};
|
|
11065
11427
|
ModifyTaskFormComponent.prototype.ngOnInit = function () {
|
|
11066
11428
|
this._getActivities();
|
|
11429
|
+
this._getTags();
|
|
11067
11430
|
};
|
|
11068
11431
|
ModifyTaskFormComponent.prototype.showContent = function (menu) {
|
|
11069
11432
|
this.selectedMenu = menu;
|
|
@@ -11101,6 +11464,13 @@
|
|
|
11101
11464
|
this.expandActivities = true;
|
|
11102
11465
|
this.showWorkLog.emit();
|
|
11103
11466
|
};
|
|
11467
|
+
ModifyTaskFormComponent.prototype.handleEditTags = function () {
|
|
11468
|
+
this._getTags();
|
|
11469
|
+
this.showTagPopup = true;
|
|
11470
|
+
};
|
|
11471
|
+
ModifyTaskFormComponent.prototype.handleSaveTags = function (tags) {
|
|
11472
|
+
this.activity.task.tags = tags;
|
|
11473
|
+
};
|
|
11104
11474
|
ModifyTaskFormComponent.prototype._updateTaskObject = function (activity, prop) {
|
|
11105
11475
|
var cloneActivity = this._boFactory.makeWithRawBackendData(activity_bo.Activity, activity);
|
|
11106
11476
|
if (cloneActivity.isNew) {
|
|
@@ -11135,12 +11505,27 @@
|
|
|
11135
11505
|
});
|
|
11136
11506
|
});
|
|
11137
11507
|
};
|
|
11508
|
+
ModifyTaskFormComponent.prototype._getTags = function () {
|
|
11509
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11510
|
+
var _d;
|
|
11511
|
+
return __generator(this, function (_e) {
|
|
11512
|
+
switch (_e.label) {
|
|
11513
|
+
case 0:
|
|
11514
|
+
_d = this;
|
|
11515
|
+
return [4 /*yield*/, this.sharedService.getTagsFullTree(tabCategory_enum.TagCategory.tasks, true)];
|
|
11516
|
+
case 1:
|
|
11517
|
+
_d.allTags = _e.sent();
|
|
11518
|
+
return [2 /*return*/];
|
|
11519
|
+
}
|
|
11520
|
+
});
|
|
11521
|
+
});
|
|
11522
|
+
};
|
|
11138
11523
|
return ModifyTaskFormComponent;
|
|
11139
11524
|
}());
|
|
11140
11525
|
ModifyTaskFormComponent.decorators = [
|
|
11141
11526
|
{ type: i0.Component, args: [{
|
|
11142
11527
|
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
|
|
11528
|
+
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
11529
|
providers: [
|
|
11145
11530
|
corecomponents_v12.FormMasterService,
|
|
11146
11531
|
{
|
|
@@ -11152,7 +11537,8 @@
|
|
|
11152
11537
|
];
|
|
11153
11538
|
ModifyTaskFormComponent.ctorParameters = function () { return [
|
|
11154
11539
|
{ type: businessObjectFactory.BusinessObjectFactory },
|
|
11155
|
-
{ type: SharedService }
|
|
11540
|
+
{ type: SharedService },
|
|
11541
|
+
{ type: corecomponents_v12.IconCacheService }
|
|
11156
11542
|
]; };
|
|
11157
11543
|
ModifyTaskFormComponent.propDecorators = {
|
|
11158
11544
|
activity: [{ type: i0.Input }],
|
|
@@ -11171,11 +11557,12 @@
|
|
|
11171
11557
|
], ModifyTaskFormComponent.prototype, "forceReadonly", null);
|
|
11172
11558
|
|
|
11173
11559
|
var TaskModifierComponent = /** @class */ (function () {
|
|
11174
|
-
function TaskModifierComponent(_dialogService, _boFactory, _dictionary, iconService) {
|
|
11560
|
+
function TaskModifierComponent(_dialogService, _boFactory, _dictionary, iconService, sharedService) {
|
|
11175
11561
|
this._dialogService = _dialogService;
|
|
11176
11562
|
this._boFactory = _boFactory;
|
|
11177
11563
|
this._dictionary = _dictionary;
|
|
11178
11564
|
this.iconService = iconService;
|
|
11565
|
+
this.sharedService = sharedService;
|
|
11179
11566
|
this.icons = exports["ɵbu"];
|
|
11180
11567
|
this.editingComplete = new i0.EventEmitter();
|
|
11181
11568
|
this.activitySaved = new i0.EventEmitter();
|
|
@@ -11272,7 +11659,7 @@
|
|
|
11272
11659
|
case 0:
|
|
11273
11660
|
if (!this.editActivity) return [3 /*break*/, 2];
|
|
11274
11661
|
newActivity = this.editActivity.isNew;
|
|
11275
|
-
return [4 /*yield*/, this.
|
|
11662
|
+
return [4 /*yield*/, this.sharedService.updateActivity(this.editActivity)];
|
|
11276
11663
|
case 1:
|
|
11277
11664
|
result = _g.sent();
|
|
11278
11665
|
if (result) {
|
|
@@ -11329,7 +11716,7 @@
|
|
|
11329
11716
|
case 1:
|
|
11330
11717
|
doDelete = _g.sent();
|
|
11331
11718
|
if (!(doDelete.button === AppPopupButtonType.Yes)) return [3 /*break*/, 3];
|
|
11332
|
-
return [4 /*yield*/, this.
|
|
11719
|
+
return [4 /*yield*/, this.sharedService.deleteActivity(this.editActivity)];
|
|
11333
11720
|
case 2:
|
|
11334
11721
|
_g.sent();
|
|
11335
11722
|
this.activityDeleted.next(this.editActivity);
|
|
@@ -11371,7 +11758,7 @@
|
|
|
11371
11758
|
return [2 /*return*/];
|
|
11372
11759
|
}
|
|
11373
11760
|
this.showAfterInsert = false;
|
|
11374
|
-
return [4 /*yield*/, this.
|
|
11761
|
+
return [4 /*yield*/, this.sharedService.lockTask(activity.task.taskId)];
|
|
11375
11762
|
case 1:
|
|
11376
11763
|
_g.sent();
|
|
11377
11764
|
activity.task = activity.task;
|
|
@@ -11421,7 +11808,8 @@
|
|
|
11421
11808
|
{ type: corecomponents_v12.CoreDialogService },
|
|
11422
11809
|
{ type: businessObjectFactory.BusinessObjectFactory },
|
|
11423
11810
|
{ type: DictionaryService },
|
|
11424
|
-
{ type: IconCacheService }
|
|
11811
|
+
{ type: IconCacheService },
|
|
11812
|
+
{ type: SharedService }
|
|
11425
11813
|
]; };
|
|
11426
11814
|
TaskModifierComponent.propDecorators = {
|
|
11427
11815
|
mainForm: [{ type: i0.ViewChild, args: [corecomponents_v12.FormComponent,] }],
|
|
@@ -11431,9 +11819,6 @@
|
|
|
11431
11819
|
referenceId: [{ type: i0.Input }],
|
|
11432
11820
|
userGroupId: [{ type: i0.Input }],
|
|
11433
11821
|
relationId: [{ type: i0.Input }],
|
|
11434
|
-
upsertActivityOperation: [{ type: i0.Input }],
|
|
11435
|
-
deleteActivityOperation: [{ type: i0.Input }],
|
|
11436
|
-
tryLockTaskOperation: [{ type: i0.Input }],
|
|
11437
11822
|
createTaskOperation: [{ type: i0.Input }],
|
|
11438
11823
|
forceReadonly: [{ type: i0.Input }],
|
|
11439
11824
|
editingComplete: [{ type: i0.Output }],
|
|
@@ -11450,9 +11835,14 @@
|
|
|
11450
11835
|
], TaskModifierComponent.prototype, "forceReadonly", void 0);
|
|
11451
11836
|
|
|
11452
11837
|
var BaseActivityOverviewComponent = /** @class */ (function () {
|
|
11453
|
-
function BaseActivityOverviewComponent(_dialogService, _dictionaryService
|
|
11838
|
+
function BaseActivityOverviewComponent(_dialogService, _dictionaryService, _sharedService
|
|
11839
|
+
//TODO reinstate when formbuilder is transferred
|
|
11840
|
+
//private _formRepo: FormDalRepository,
|
|
11841
|
+
/*private _router: Router*/
|
|
11842
|
+
) {
|
|
11454
11843
|
this._dialogService = _dialogService;
|
|
11455
11844
|
this._dictionaryService = _dictionaryService;
|
|
11845
|
+
this._sharedService = _sharedService;
|
|
11456
11846
|
this.icon = exports["ɵbu"];
|
|
11457
11847
|
this.cfgNames = ActivityCfgName;
|
|
11458
11848
|
this.taskCfgNames = {
|
|
@@ -11467,13 +11857,7 @@
|
|
|
11467
11857
|
tagsHeader: ActivityCfgName.TagsHeader,
|
|
11468
11858
|
taskInvoice: ActivityCfgName.TaskInvoice
|
|
11469
11859
|
};
|
|
11470
|
-
this.canFireTriggerOperation = OperationWithAlwaysSuccessCallback;
|
|
11471
11860
|
this.prepareWorkflowOperation = OperationWithAlwaysSuccessCallback;
|
|
11472
|
-
this.lockTaskOperation = OperationWithAlwaysSuccessCallback;
|
|
11473
|
-
this.deleteActivityOperation = OperationWithAlwaysSuccessCallback;
|
|
11474
|
-
this.upsertActivityOperation = OperationWithAlwaysSuccessCallback;
|
|
11475
|
-
this.fireGenericTriggerOperation = OperationWithValidationCallback;
|
|
11476
|
-
this.fireTriggerOperation = OperationWithValidationCallback;
|
|
11477
11861
|
this.handleOpenLinkSidebar = false;
|
|
11478
11862
|
this.activityChange = new i0.EventEmitter();
|
|
11479
11863
|
this.activityDeleted = new i0.EventEmitter();
|
|
@@ -11528,7 +11912,7 @@
|
|
|
11528
11912
|
var result, messages, len, i;
|
|
11529
11913
|
return __generator(this, function (_a) {
|
|
11530
11914
|
switch (_a.label) {
|
|
11531
|
-
case 0: return [4 /*yield*/, this.
|
|
11915
|
+
case 0: return [4 /*yield*/, this._sharedService.fireGenericTrigger(this.workFlow.workflowProcessId, event.genericTransitionId, this.userRelationId)];
|
|
11532
11916
|
case 1:
|
|
11533
11917
|
result = _a.sent();
|
|
11534
11918
|
if (result.success) {
|
|
@@ -11559,12 +11943,20 @@
|
|
|
11559
11943
|
this.activity.activityType = activityType.ActivityType.Task;
|
|
11560
11944
|
this.activity.task.taskId = eventTrigger.taskId;
|
|
11561
11945
|
this.taskModifier.startModifyingTask(this.activity);
|
|
11562
|
-
return [3 /*break*/,
|
|
11946
|
+
return [3 /*break*/, 6];
|
|
11563
11947
|
case 1:
|
|
11564
11948
|
if (!eventTrigger.isFormTrigger) return [3 /*break*/, 2];
|
|
11565
|
-
return [3 /*break*/,
|
|
11566
|
-
case 2:
|
|
11949
|
+
return [3 /*break*/, 6];
|
|
11950
|
+
case 2:
|
|
11951
|
+
if (!(eventTrigger.toClosedState && !this._sharedService.canFireTrigger(this.activity, this.activity.task))) return [3 /*break*/, 4];
|
|
11952
|
+
return [4 /*yield*/, this.prepareWorkflowOperation({ table: this.workFlow.table, key: this.workFlow.key })];
|
|
11567
11953
|
case 3:
|
|
11954
|
+
_a.sent();
|
|
11955
|
+
this.triggerToFireOnSave = eventTrigger;
|
|
11956
|
+
this.showTaskFormAndWorkLog();
|
|
11957
|
+
return [2 /*return*/];
|
|
11958
|
+
case 4: return [4 /*yield*/, this._sharedService.fireTrigger(this.workFlow.workflowProcessId, this.workFlow.sequence, eventTrigger.triggerId)];
|
|
11959
|
+
case 5:
|
|
11568
11960
|
result = _a.sent();
|
|
11569
11961
|
if (result.success) {
|
|
11570
11962
|
this.triggerFired.next(this.activity);
|
|
@@ -11577,8 +11969,8 @@
|
|
|
11577
11969
|
}
|
|
11578
11970
|
this._dialogService.showError(messages.toString());
|
|
11579
11971
|
}
|
|
11580
|
-
_a.label =
|
|
11581
|
-
case
|
|
11972
|
+
_a.label = 6;
|
|
11973
|
+
case 6: return [2 /*return*/];
|
|
11582
11974
|
}
|
|
11583
11975
|
});
|
|
11584
11976
|
});
|
|
@@ -11709,19 +12101,14 @@
|
|
|
11709
12101
|
];
|
|
11710
12102
|
BaseActivityOverviewComponent.ctorParameters = function () { return [
|
|
11711
12103
|
{ type: corecomponents_v12.CoreDialogService },
|
|
11712
|
-
{ type: DictionaryService }
|
|
12104
|
+
{ type: DictionaryService },
|
|
12105
|
+
{ type: SharedService }
|
|
11713
12106
|
]; };
|
|
11714
12107
|
BaseActivityOverviewComponent.propDecorators = {
|
|
11715
12108
|
taskModifier: [{ type: i0.ViewChild, args: [TaskModifierComponent, { static: true },] }],
|
|
11716
12109
|
viewModel: [{ type: i0.Input }],
|
|
11717
12110
|
triggerToFireOnSave: [{ type: i0.Input }],
|
|
11718
|
-
canFireTriggerOperation: [{ type: i0.Input }],
|
|
11719
12111
|
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
12112
|
userRelationId: [{ type: i0.Input }],
|
|
11726
12113
|
userGroupId: [{ type: i0.Input }],
|
|
11727
12114
|
handleOpenLinkSidebar: [{ type: i0.Input }],
|
|
@@ -11757,10 +12144,15 @@
|
|
|
11757
12144
|
showClass: [{ type: i0.HostBinding, args: ["class.co-personal-activity-overview",] }]
|
|
11758
12145
|
};
|
|
11759
12146
|
|
|
12147
|
+
function OperationWithValidationCallback(object, object2, object3) {
|
|
12148
|
+
return Promise.resolve(new validationResult.ValidationResult());
|
|
12149
|
+
}
|
|
12150
|
+
|
|
11760
12151
|
var ComponentActivityListComponent = /** @class */ (function (_super) {
|
|
11761
12152
|
__extends(ComponentActivityListComponent, _super);
|
|
11762
|
-
function ComponentActivityListComponent() {
|
|
12153
|
+
function ComponentActivityListComponent(sharedService) {
|
|
11763
12154
|
var _this = _super.call(this) || this;
|
|
12155
|
+
_this.sharedService = sharedService;
|
|
11764
12156
|
_this.tabs = personalActivityTab_enum.PersonalActivityTabEnum;
|
|
11765
12157
|
_this.icons = exports["ɵbu"];
|
|
11766
12158
|
_this.activityClass = activity_bo.Activity;
|
|
@@ -11768,19 +12160,12 @@
|
|
|
11768
12160
|
_this.hideTitle = false;
|
|
11769
12161
|
_this.noFreeTasks = false;
|
|
11770
12162
|
_this.componentActivitiesMethod = OperationWithAlwaysSuccessCallback;
|
|
11771
|
-
_this.fireGenericTriggerOperation = OperationWithValidationCallback;
|
|
11772
|
-
_this.fireTriggerOperation = OperationWithValidationCallback;
|
|
11773
|
-
_this.canFireTriggerOperation = OperationWithAlwaysSuccessCallback;
|
|
11774
12163
|
_this.setHasPausedNotificationsForWorkflowProcessOperation = OperationWithValidationCallback;
|
|
11775
|
-
_this.lockTaskOperation = OperationWithAlwaysSuccessCallback;
|
|
11776
|
-
_this.deleteActivityOperation = OperationWithAlwaysSuccessCallback;
|
|
11777
|
-
_this.upsertActivityOperation = OperationWithAlwaysSuccessCallback;
|
|
11778
12164
|
_this.openLinkClick = new i0.EventEmitter();
|
|
11779
12165
|
_this.amountActivityChanged = new i0.EventEmitter();
|
|
11780
12166
|
_this.linkClicked = new i0.EventEmitter();
|
|
11781
12167
|
_this.formCreated = new i0.EventEmitter();
|
|
11782
|
-
_this.
|
|
11783
|
-
_this.triggerFired = new i0.EventEmitter();
|
|
12168
|
+
_this.refreshRequested = new i0.EventEmitter();
|
|
11784
12169
|
_this.showUsergroupActivitiesChanged = new i0.EventEmitter();
|
|
11785
12170
|
_this.activeTab = personalActivityTab_enum.PersonalActivityTabEnum.TODO;
|
|
11786
12171
|
/*public activitySortList: boolean[] = [];*/
|
|
@@ -11817,24 +12202,42 @@
|
|
|
11817
12202
|
ComponentActivityListComponent.prototype.trackByFn = function (index, vm) {
|
|
11818
12203
|
return vm.activity.id + '_' + vm.activity.workflow.combinedTriggerIds;
|
|
11819
12204
|
};
|
|
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(() => {
|
|
12205
|
+
ComponentActivityListComponent.prototype.ngOnInit = function () {
|
|
12206
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12207
|
+
return __generator(this, function (_a) {
|
|
11830
12208
|
this.getTheActivities();
|
|
11831
|
-
|
|
11832
|
-
|
|
11833
|
-
|
|
12209
|
+
return [2 /*return*/];
|
|
12210
|
+
});
|
|
12211
|
+
});
|
|
12212
|
+
};
|
|
11834
12213
|
ComponentActivityListComponent.prototype.ngOnDestroy = function () {
|
|
11835
|
-
this._subs.forEach(
|
|
12214
|
+
//this._subs.forEach(s => s.unsubscribe());
|
|
11836
12215
|
_super.prototype.ngOnDestroy.call(this);
|
|
11837
12216
|
};
|
|
12217
|
+
ComponentActivityListComponent.prototype.getActivities = function () {
|
|
12218
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12219
|
+
var allActivities;
|
|
12220
|
+
return __generator(this, function (_a) {
|
|
12221
|
+
switch (_a.label) {
|
|
12222
|
+
case 0:
|
|
12223
|
+
if (!(this.table && this.key)) return [3 /*break*/, 2];
|
|
12224
|
+
return [4 /*yield*/, this.sharedService.getComponentActivitiesWithoutRelationFiltering(this.table, this.key)];
|
|
12225
|
+
case 1:
|
|
12226
|
+
allActivities = _a.sent();
|
|
12227
|
+
if (allActivities) {
|
|
12228
|
+
this.activities = this.noFreeTasks ? allActivities.filter(function (aa) { return !aa.task && aa.activityType !== activityType.ActivityType.WorkflowTask; }) :
|
|
12229
|
+
allActivities.filter(function (aa) { return aa.activityType !== activityType.ActivityType.WorkflowTask; });
|
|
12230
|
+
}
|
|
12231
|
+
else {
|
|
12232
|
+
this.activities = [];
|
|
12233
|
+
}
|
|
12234
|
+
this.amountActivityChanged.next(this.activities.length);
|
|
12235
|
+
_a.label = 2;
|
|
12236
|
+
case 2: return [2 /*return*/];
|
|
12237
|
+
}
|
|
12238
|
+
});
|
|
12239
|
+
});
|
|
12240
|
+
};
|
|
11838
12241
|
Object.defineProperty(ComponentActivityListComponent.prototype, "activitiesList", {
|
|
11839
12242
|
get: function () {
|
|
11840
12243
|
return this._activitiesList;
|
|
@@ -11852,18 +12255,6 @@
|
|
|
11852
12255
|
enumerable: false,
|
|
11853
12256
|
configurable: true
|
|
11854
12257
|
});
|
|
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
12258
|
ComponentActivityListComponent.prototype.getDelegatedActivities = function () {
|
|
11868
12259
|
return __awaiter(this, void 0, void 0, function () {
|
|
11869
12260
|
return __generator(this, function (_a) {
|
|
@@ -11879,10 +12270,12 @@
|
|
|
11879
12270
|
this.showUsergroupActivitiesChanged.next();
|
|
11880
12271
|
};
|
|
11881
12272
|
ComponentActivityListComponent.prototype.handleTriggerFired = function (activity) {
|
|
11882
|
-
this.
|
|
12273
|
+
this.getTheActivities();
|
|
12274
|
+
this.refreshRequested.emit();
|
|
11883
12275
|
};
|
|
11884
12276
|
ComponentActivityListComponent.prototype.handleGenericTriggerFired = function (activity) {
|
|
11885
|
-
this.
|
|
12277
|
+
this.getTheActivities();
|
|
12278
|
+
this.refreshRequested.emit();
|
|
11886
12279
|
};
|
|
11887
12280
|
ComponentActivityListComponent.prototype.handleFormCreation = function () {
|
|
11888
12281
|
this.formCreated.next();
|
|
@@ -11938,7 +12331,7 @@
|
|
|
11938
12331
|
ComponentActivityListComponent.decorators = [
|
|
11939
12332
|
{ type: i0.Component, args: [{
|
|
11940
12333
|
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
|
|
12334
|
+
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 [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
12335
|
animations: [
|
|
11943
12336
|
animations.trigger("showHideContent", [
|
|
11944
12337
|
animations.state("void", animations.style({ transform: "scaleY(0)", opacity: 0 })),
|
|
@@ -11953,7 +12346,9 @@
|
|
|
11953
12346
|
]
|
|
11954
12347
|
},] }
|
|
11955
12348
|
];
|
|
11956
|
-
ComponentActivityListComponent.ctorParameters = function () { return [
|
|
12349
|
+
ComponentActivityListComponent.ctorParameters = function () { return [
|
|
12350
|
+
{ type: SharedService }
|
|
12351
|
+
]; };
|
|
11957
12352
|
ComponentActivityListComponent.propDecorators = {
|
|
11958
12353
|
activityOverviewList: [{ type: i0.ViewChildren, args: [PersonalActivityOverviewComponent,] }],
|
|
11959
12354
|
showClass: [{ type: i0.HostBinding, args: ["class.co-component-activity-list",] }],
|
|
@@ -11965,19 +12360,12 @@
|
|
|
11965
12360
|
userGroupId: [{ type: i0.Input }],
|
|
11966
12361
|
relationId: [{ type: i0.Input }],
|
|
11967
12362
|
componentActivitiesMethod: [{ type: i0.Input }],
|
|
11968
|
-
fireGenericTriggerOperation: [{ type: i0.Input }],
|
|
11969
|
-
fireTriggerOperation: [{ type: i0.Input }],
|
|
11970
|
-
canFireTriggerOperation: [{ type: i0.Input }],
|
|
11971
12363
|
setHasPausedNotificationsForWorkflowProcessOperation: [{ type: i0.Input }],
|
|
11972
|
-
lockTaskOperation: [{ type: i0.Input }],
|
|
11973
|
-
deleteActivityOperation: [{ type: i0.Input }],
|
|
11974
|
-
upsertActivityOperation: [{ type: i0.Input }],
|
|
11975
12364
|
openLinkClick: [{ type: i0.Output }],
|
|
11976
12365
|
amountActivityChanged: [{ type: i0.Output }],
|
|
11977
12366
|
linkClicked: [{ type: i0.Output }],
|
|
11978
12367
|
formCreated: [{ type: i0.Output }],
|
|
11979
|
-
|
|
11980
|
-
triggerFired: [{ type: i0.Output }],
|
|
12368
|
+
refreshRequested: [{ type: i0.Output }],
|
|
11981
12369
|
showUsergroupActivitiesChanged: [{ type: i0.Output }],
|
|
11982
12370
|
activitiesList: [{ type: i0.Input }]
|
|
11983
12371
|
};
|
|
@@ -12009,11 +12397,13 @@
|
|
|
12009
12397
|
|
|
12010
12398
|
var ComponentActivityOverviewComponent = /** @class */ (function (_super) {
|
|
12011
12399
|
__extends(ComponentActivityOverviewComponent, _super);
|
|
12012
|
-
function ComponentActivityOverviewComponent(iconCacheService, dialogService, dictionaryService
|
|
12013
|
-
|
|
12400
|
+
function ComponentActivityOverviewComponent(iconCacheService, dialogService, dictionaryService, sharedService
|
|
12401
|
+
/*public router: Router*/ ) {
|
|
12402
|
+
var _this = _super.call(this, dialogService, dictionaryService, sharedService /*router*/) || this;
|
|
12014
12403
|
_this.iconCacheService = iconCacheService;
|
|
12015
12404
|
_this.dialogService = dialogService;
|
|
12016
12405
|
_this.dictionaryService = dictionaryService;
|
|
12406
|
+
_this.sharedService = sharedService;
|
|
12017
12407
|
_this.Icon = exports["ɵbu"];
|
|
12018
12408
|
return _this;
|
|
12019
12409
|
}
|
|
@@ -12025,7 +12415,7 @@
|
|
|
12025
12415
|
ComponentActivityOverviewComponent.decorators = [
|
|
12026
12416
|
{ type: i0.Component, args: [{
|
|
12027
12417
|
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
|
|
12418
|
+
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
12419
|
/* providers: [
|
|
12030
12420
|
{provide: BaseModuleScreenConfigService, useExisting: ScreenConfigurationMockService}
|
|
12031
12421
|
],*/
|
|
@@ -12048,21 +12438,21 @@
|
|
|
12048
12438
|
ComponentActivityOverviewComponent.ctorParameters = function () { return [
|
|
12049
12439
|
{ type: IconCacheService },
|
|
12050
12440
|
{ type: corecomponents_v12.CoreDialogService },
|
|
12051
|
-
{ type: DictionaryService }
|
|
12441
|
+
{ type: DictionaryService },
|
|
12442
|
+
{ type: SharedService }
|
|
12052
12443
|
]; };
|
|
12053
12444
|
ComponentActivityOverviewComponent.propDecorators = {
|
|
12054
12445
|
showClass: [{ type: i0.HostBinding, args: ["class.co-component-activity-overview",] }]
|
|
12055
12446
|
};
|
|
12056
12447
|
|
|
12057
12448
|
var BaseActivitySummaryComponent = /** @class */ (function () {
|
|
12058
|
-
function BaseActivitySummaryComponent(dictionaryService, dialogService) {
|
|
12449
|
+
function BaseActivitySummaryComponent(dictionaryService, dialogService, _sharedService) {
|
|
12059
12450
|
this.dictionaryService = dictionaryService;
|
|
12060
12451
|
this.dialogService = dialogService;
|
|
12452
|
+
this._sharedService = _sharedService;
|
|
12061
12453
|
this.expanded = false;
|
|
12062
12454
|
this.noBorder = false;
|
|
12063
12455
|
this.readonly = false;
|
|
12064
|
-
this.canFireTriggerOperation = OperationWithAlwaysSuccessCallback;
|
|
12065
|
-
this.fireTriggerOperation = OperationWithValidationCallback;
|
|
12066
12456
|
this.prepareWorkflowOperation = OperationWithAlwaysSuccessCallback;
|
|
12067
12457
|
this.loadTaskOperation = OperationWithAlwaysSuccessCallback;
|
|
12068
12458
|
this.activityChange = new i0.EventEmitter();
|
|
@@ -12124,37 +12514,35 @@
|
|
|
12124
12514
|
if (this.readonly) {
|
|
12125
12515
|
return [2 /*return*/];
|
|
12126
12516
|
}
|
|
12127
|
-
if (
|
|
12128
|
-
|
|
12129
|
-
|
|
12130
|
-
|
|
12131
|
-
|
|
12132
|
-
|
|
12133
|
-
|
|
12134
|
-
return [2 /*return*/];
|
|
12517
|
+
if (trigger.toClosedState) {
|
|
12518
|
+
canFire = this._sharedService.canFireTrigger(this.editActivity, this.editActivity.task);
|
|
12519
|
+
if (!canFire) {
|
|
12520
|
+
this.triggerToFireOnSave = trigger;
|
|
12521
|
+
this.showWorkLog.next();
|
|
12522
|
+
return [2 /*return*/];
|
|
12523
|
+
}
|
|
12135
12524
|
}
|
|
12136
|
-
|
|
12137
|
-
case
|
|
12138
|
-
case 3:
|
|
12525
|
+
return [4 /*yield*/, this._sharedService.fireTrigger(this.workFlow.workflowId, this.workFlow.sequence, trigger.triggerId)];
|
|
12526
|
+
case 1:
|
|
12139
12527
|
result = _a.sent();
|
|
12140
|
-
if (!result.success) return [3 /*break*/,
|
|
12528
|
+
if (!result.success) return [3 /*break*/, 4];
|
|
12141
12529
|
return [4 /*yield*/, this.updateActivityTask(this.editActivity.task)];
|
|
12142
|
-
case
|
|
12530
|
+
case 2:
|
|
12143
12531
|
_a.sent();
|
|
12144
12532
|
return [4 /*yield*/, this.prepareWorkflow()];
|
|
12145
|
-
case
|
|
12533
|
+
case 3:
|
|
12146
12534
|
_a.sent();
|
|
12147
12535
|
this.triggerFired.emit(this.workFlow);
|
|
12148
|
-
return [3 /*break*/,
|
|
12149
|
-
case
|
|
12536
|
+
return [3 /*break*/, 5];
|
|
12537
|
+
case 4:
|
|
12150
12538
|
messages = [];
|
|
12151
12539
|
len = result.messages.length;
|
|
12152
12540
|
for (i = 0; i < len; i++) {
|
|
12153
12541
|
messages.push(this.dictionaryService.get(result.messages[i].message.toUpperCase()));
|
|
12154
12542
|
}
|
|
12155
12543
|
this.dialogService.showError(messages.toString());
|
|
12156
|
-
_a.label =
|
|
12157
|
-
case
|
|
12544
|
+
_a.label = 5;
|
|
12545
|
+
case 5: return [2 /*return*/];
|
|
12158
12546
|
}
|
|
12159
12547
|
});
|
|
12160
12548
|
});
|
|
@@ -12204,7 +12592,8 @@
|
|
|
12204
12592
|
];
|
|
12205
12593
|
BaseActivitySummaryComponent.ctorParameters = function () { return [
|
|
12206
12594
|
{ type: DictionaryService },
|
|
12207
|
-
{ type: corecomponents_v12.CoreDialogService }
|
|
12595
|
+
{ type: corecomponents_v12.CoreDialogService },
|
|
12596
|
+
{ type: SharedService }
|
|
12208
12597
|
]; };
|
|
12209
12598
|
BaseActivitySummaryComponent.propDecorators = {
|
|
12210
12599
|
activity: [{ type: i0.Input }],
|
|
@@ -12215,8 +12604,6 @@
|
|
|
12215
12604
|
expanded: [{ type: i0.Input }],
|
|
12216
12605
|
noBorder: [{ type: i0.HostBinding, args: ["class.no-border",] }, { type: i0.Input }],
|
|
12217
12606
|
readonly: [{ type: i0.Input }],
|
|
12218
|
-
canFireTriggerOperation: [{ type: i0.Input }],
|
|
12219
|
-
fireTriggerOperation: [{ type: i0.Input }],
|
|
12220
12607
|
prepareWorkflowOperation: [{ type: i0.Input }],
|
|
12221
12608
|
loadTaskOperation: [{ type: i0.Input }],
|
|
12222
12609
|
triggerToFireOnSave: [{ type: i0.Input }],
|
|
@@ -12231,11 +12618,12 @@
|
|
|
12231
12618
|
|
|
12232
12619
|
var TaskDetailsComponent = /** @class */ (function (_super) {
|
|
12233
12620
|
__extends(TaskDetailsComponent, _super);
|
|
12234
|
-
function TaskDetailsComponent(dictionaryService, dialogService, iconCacheService) {
|
|
12235
|
-
var _this = _super.call(this, dictionaryService, dialogService) || this;
|
|
12621
|
+
function TaskDetailsComponent(dictionaryService, dialogService, iconCacheService, sharedService) {
|
|
12622
|
+
var _this = _super.call(this, dictionaryService, dialogService, sharedService) || this;
|
|
12236
12623
|
_this.dictionaryService = dictionaryService;
|
|
12237
12624
|
_this.dialogService = dialogService;
|
|
12238
12625
|
_this.iconCacheService = iconCacheService;
|
|
12626
|
+
_this.sharedService = sharedService;
|
|
12239
12627
|
_this.Icon = exports["ɵbu"];
|
|
12240
12628
|
_this.showStatusDropdown = false;
|
|
12241
12629
|
return _this;
|
|
@@ -12272,7 +12660,8 @@
|
|
|
12272
12660
|
TaskDetailsComponent.ctorParameters = function () { return [
|
|
12273
12661
|
{ type: DictionaryService },
|
|
12274
12662
|
{ type: corecomponents_v12.CoreDialogService },
|
|
12275
|
-
{ type: IconCacheService }
|
|
12663
|
+
{ type: IconCacheService },
|
|
12664
|
+
{ type: SharedService }
|
|
12276
12665
|
]; };
|
|
12277
12666
|
TaskDetailsComponent.propDecorators = {
|
|
12278
12667
|
activity: [{ type: i0.Input }],
|
|
@@ -12412,11 +12801,12 @@
|
|
|
12412
12801
|
|
|
12413
12802
|
var StatusSummaryBlockComponent = /** @class */ (function (_super) {
|
|
12414
12803
|
__extends(StatusSummaryBlockComponent, _super);
|
|
12415
|
-
function StatusSummaryBlockComponent(dictionaryService, dialogService, iconService) {
|
|
12416
|
-
var _this = _super.call(this, dictionaryService, dialogService) || this;
|
|
12804
|
+
function StatusSummaryBlockComponent(dictionaryService, dialogService, iconService, sharedService) {
|
|
12805
|
+
var _this = _super.call(this, dictionaryService, dialogService, sharedService) || this;
|
|
12417
12806
|
_this.dictionaryService = dictionaryService;
|
|
12418
12807
|
_this.dialogService = dialogService;
|
|
12419
12808
|
_this.iconService = iconService;
|
|
12809
|
+
_this.sharedService = sharedService;
|
|
12420
12810
|
_this.Icon = exports["ɵbu"];
|
|
12421
12811
|
return _this;
|
|
12422
12812
|
}
|
|
@@ -12450,7 +12840,8 @@
|
|
|
12450
12840
|
StatusSummaryBlockComponent.ctorParameters = function () { return [
|
|
12451
12841
|
{ type: DictionaryService },
|
|
12452
12842
|
{ type: corecomponents_v12.CoreDialogService },
|
|
12453
|
-
{ type: IconCacheService }
|
|
12843
|
+
{ type: IconCacheService },
|
|
12844
|
+
{ type: SharedService }
|
|
12454
12845
|
]; };
|
|
12455
12846
|
StatusSummaryBlockComponent.propDecorators = {
|
|
12456
12847
|
showClass: [{ type: i0.HostBinding, args: ["class.co-status-summary-block",] }]
|
|
@@ -12482,7 +12873,7 @@
|
|
|
12482
12873
|
var CreationSummaryBlockComponent = /** @class */ (function (_super) {
|
|
12483
12874
|
__extends(CreationSummaryBlockComponent, _super);
|
|
12484
12875
|
function CreationSummaryBlockComponent(dictionaryService, dialogService, sharedService, locale) {
|
|
12485
|
-
var _this = _super.call(this, dictionaryService, dialogService) || this;
|
|
12876
|
+
var _this = _super.call(this, dictionaryService, dialogService, sharedService) || this;
|
|
12486
12877
|
_this.dictionaryService = dictionaryService;
|
|
12487
12878
|
_this.dialogService = dialogService;
|
|
12488
12879
|
_this.sharedService = sharedService;
|
|
@@ -12585,11 +12976,11 @@
|
|
|
12585
12976
|
})(RelationType || (RelationType = {}));
|
|
12586
12977
|
var ExecutiveSummaryBlockComponent = /** @class */ (function (_super) {
|
|
12587
12978
|
__extends(ExecutiveSummaryBlockComponent, _super);
|
|
12588
|
-
function ExecutiveSummaryBlockComponent(dictionaryService, dialogService,
|
|
12589
|
-
var _this = _super.call(this, dictionaryService, dialogService) || this;
|
|
12979
|
+
function ExecutiveSummaryBlockComponent(dictionaryService, dialogService, sharedService) {
|
|
12980
|
+
var _this = _super.call(this, dictionaryService, dialogService, sharedService) || this;
|
|
12590
12981
|
_this.dictionaryService = dictionaryService;
|
|
12591
12982
|
_this.dialogService = dialogService;
|
|
12592
|
-
_this.
|
|
12983
|
+
_this.sharedService = sharedService;
|
|
12593
12984
|
_this.RelationType = RelationType;
|
|
12594
12985
|
_this.Icon = exports["ɵbu"];
|
|
12595
12986
|
_this._textSearchParams = new relationRequest.RelationRequest();
|
|
@@ -12604,7 +12995,7 @@
|
|
|
12604
12995
|
var _this = this;
|
|
12605
12996
|
return __generator(this, function (_a) {
|
|
12606
12997
|
this._textSearchParams.relationTypeList = [relationKind_enum.RelationKind.Personnel];
|
|
12607
|
-
this.
|
|
12998
|
+
this.sharedService.getRelationListObjects(this._textSearchParams).then(function (result) {
|
|
12608
12999
|
_this.personnel = result;
|
|
12609
13000
|
});
|
|
12610
13001
|
return [2 /*return*/];
|
|
@@ -12659,7 +13050,7 @@
|
|
|
12659
13050
|
function NotificationSummaryBlockComponent(boFactory,
|
|
12660
13051
|
//public activityService: ActivityService,
|
|
12661
13052
|
dictionaryService, dialogService, sharedService) {
|
|
12662
|
-
var _this = _super.call(this, dictionaryService, dialogService) || this;
|
|
13053
|
+
var _this = _super.call(this, dictionaryService, dialogService, sharedService) || this;
|
|
12663
13054
|
_this.boFactory = boFactory;
|
|
12664
13055
|
_this.dictionaryService = dictionaryService;
|
|
12665
13056
|
_this.dialogService = dialogService;
|
|
@@ -12752,7 +13143,11 @@
|
|
|
12752
13143
|
StatusSummaryBlockModule,
|
|
12753
13144
|
CreationSummaryBlockModule,
|
|
12754
13145
|
NotificationSummaryBlockModule,
|
|
12755
|
-
ActivityListModule
|
|
13146
|
+
ActivityListModule,
|
|
13147
|
+
SimpleTagsModule,
|
|
13148
|
+
corecomponents_v12.ButtonModule,
|
|
13149
|
+
common.CommonModule,
|
|
13150
|
+
SimpleTagsFormModule
|
|
12756
13151
|
],
|
|
12757
13152
|
declarations: [
|
|
12758
13153
|
ModifyTaskFormComponent
|
|
@@ -13667,6 +14062,131 @@
|
|
|
13667
14062
|
},] }
|
|
13668
14063
|
];
|
|
13669
14064
|
|
|
14065
|
+
var WorkflowInfoTilesComponent = /** @class */ (function () {
|
|
14066
|
+
function WorkflowInfoTilesComponent(iconCacheService, sharedService) {
|
|
14067
|
+
this.iconCacheService = iconCacheService;
|
|
14068
|
+
this.sharedService = sharedService;
|
|
14069
|
+
this.Icon = exports["ɵbu"];
|
|
14070
|
+
this.icons = exports["ɵbu"];
|
|
14071
|
+
this.workflowProcessInfoPerStatusClicked = new i0.EventEmitter();
|
|
14072
|
+
}
|
|
14073
|
+
Object.defineProperty(WorkflowInfoTilesComponent.prototype, "workflowCategory", {
|
|
14074
|
+
set: function (value) {
|
|
14075
|
+
this._workflowCategory = value;
|
|
14076
|
+
this.getWorkflowProcessInfoPerStatusCollection();
|
|
14077
|
+
},
|
|
14078
|
+
enumerable: false,
|
|
14079
|
+
configurable: true
|
|
14080
|
+
});
|
|
14081
|
+
WorkflowInfoTilesComponent.prototype.showClass = function () {
|
|
14082
|
+
return true;
|
|
14083
|
+
};
|
|
14084
|
+
WorkflowInfoTilesComponent.prototype.ngOnInit = function () {
|
|
14085
|
+
this.getWorkflowProcessInfoPerStatusCollection();
|
|
14086
|
+
};
|
|
14087
|
+
WorkflowInfoTilesComponent.prototype.workflowProcessInfoPerStatusClickedHandler = function (status) {
|
|
14088
|
+
this.workflowProcessInfoPerStatusClicked.emit(status.statusName);
|
|
14089
|
+
};
|
|
14090
|
+
WorkflowInfoTilesComponent.prototype.getWorkflowProcessInfoPerStatusCollection = function () {
|
|
14091
|
+
var _this = this;
|
|
14092
|
+
if (this._workflowCategory) {
|
|
14093
|
+
this.sharedService.getWorkflowProcessInfoPerStatus(this._workflowCategory).then(function (result) {
|
|
14094
|
+
_this.WorkflowProcessInfoPerStatusCollection = result;
|
|
14095
|
+
});
|
|
14096
|
+
}
|
|
14097
|
+
};
|
|
14098
|
+
return WorkflowInfoTilesComponent;
|
|
14099
|
+
}());
|
|
14100
|
+
WorkflowInfoTilesComponent.decorators = [
|
|
14101
|
+
{ type: i0.Component, args: [{
|
|
14102
|
+
selector: "co-workflow-info-tiles",
|
|
14103
|
+
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 ",
|
|
14104
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
14105
|
+
},] }
|
|
14106
|
+
];
|
|
14107
|
+
WorkflowInfoTilesComponent.ctorParameters = function () { return [
|
|
14108
|
+
{ type: IconCacheService },
|
|
14109
|
+
{ type: SharedService }
|
|
14110
|
+
]; };
|
|
14111
|
+
WorkflowInfoTilesComponent.propDecorators = {
|
|
14112
|
+
workflowCategory: [{ type: i0.Input }],
|
|
14113
|
+
workflowProcessInfoPerStatusClicked: [{ type: i0.Output }],
|
|
14114
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-workflow-info-tiles",] }]
|
|
14115
|
+
};
|
|
14116
|
+
|
|
14117
|
+
var WorkflowInfoTileComponent = /** @class */ (function () {
|
|
14118
|
+
function WorkflowInfoTileComponent(iconCacheService, colorService) {
|
|
14119
|
+
this.iconCacheService = iconCacheService;
|
|
14120
|
+
this.colorService = colorService;
|
|
14121
|
+
this.Icon = exports["ɵbu"];
|
|
14122
|
+
}
|
|
14123
|
+
WorkflowInfoTileComponent.prototype.showClass = function () {
|
|
14124
|
+
return true;
|
|
14125
|
+
};
|
|
14126
|
+
WorkflowInfoTileComponent.prototype.ngOnInit = function () {
|
|
14127
|
+
this.backgroundColor = this.colorService.GetRandomColorWithSettings([0, 360], [90, 100], [40, 95], [1, 1]);
|
|
14128
|
+
};
|
|
14129
|
+
return WorkflowInfoTileComponent;
|
|
14130
|
+
}());
|
|
14131
|
+
WorkflowInfoTileComponent.decorators = [
|
|
14132
|
+
{ type: i0.Component, args: [{
|
|
14133
|
+
selector: "co-workflow-info-tile",
|
|
14134
|
+
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 ",
|
|
14135
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
14136
|
+
},] }
|
|
14137
|
+
];
|
|
14138
|
+
WorkflowInfoTileComponent.ctorParameters = function () { return [
|
|
14139
|
+
{ type: IconCacheService },
|
|
14140
|
+
{ type: corecomponents_v12.ColorSequenceService }
|
|
14141
|
+
]; };
|
|
14142
|
+
WorkflowInfoTileComponent.propDecorators = {
|
|
14143
|
+
workflowProcessInfoPerStatus: [{ type: i0.Input }],
|
|
14144
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-workflow-info-tile",] }],
|
|
14145
|
+
backgroundColor: [{ type: i0.HostBinding, args: ["style.background-color",] }]
|
|
14146
|
+
};
|
|
14147
|
+
|
|
14148
|
+
var WorkflowInfoTileModule = /** @class */ (function () {
|
|
14149
|
+
function WorkflowInfoTileModule() {
|
|
14150
|
+
}
|
|
14151
|
+
return WorkflowInfoTileModule;
|
|
14152
|
+
}());
|
|
14153
|
+
WorkflowInfoTileModule.decorators = [
|
|
14154
|
+
{ type: i0.NgModule, args: [{
|
|
14155
|
+
imports: [
|
|
14156
|
+
LocalizationModule,
|
|
14157
|
+
corecomponents_v12.IconModule
|
|
14158
|
+
],
|
|
14159
|
+
declarations: [
|
|
14160
|
+
WorkflowInfoTileComponent
|
|
14161
|
+
],
|
|
14162
|
+
exports: [
|
|
14163
|
+
WorkflowInfoTileComponent
|
|
14164
|
+
],
|
|
14165
|
+
providers: []
|
|
14166
|
+
},] }
|
|
14167
|
+
];
|
|
14168
|
+
|
|
14169
|
+
var WorkflowInfoTilesModule = /** @class */ (function () {
|
|
14170
|
+
function WorkflowInfoTilesModule() {
|
|
14171
|
+
}
|
|
14172
|
+
return WorkflowInfoTilesModule;
|
|
14173
|
+
}());
|
|
14174
|
+
WorkflowInfoTilesModule.decorators = [
|
|
14175
|
+
{ type: i0.NgModule, args: [{
|
|
14176
|
+
imports: [
|
|
14177
|
+
WorkflowInfoTileModule,
|
|
14178
|
+
common.CommonModule
|
|
14179
|
+
],
|
|
14180
|
+
declarations: [
|
|
14181
|
+
WorkflowInfoTilesComponent
|
|
14182
|
+
],
|
|
14183
|
+
exports: [
|
|
14184
|
+
WorkflowInfoTilesComponent
|
|
14185
|
+
],
|
|
14186
|
+
providers: []
|
|
14187
|
+
},] }
|
|
14188
|
+
];
|
|
14189
|
+
|
|
13670
14190
|
/*
|
|
13671
14191
|
* Public API Surface of sharedcomponents
|
|
13672
14192
|
*/
|
|
@@ -13697,12 +14217,16 @@
|
|
|
13697
14217
|
exports.SendMethodDialogModule = SendMethodDialogModule;
|
|
13698
14218
|
exports.SharedService = SharedService;
|
|
13699
14219
|
exports.SimpleTagsComponent = SimpleTagsComponent;
|
|
14220
|
+
exports.SimpleTagsFormComponent = SimpleTagsFormComponent;
|
|
14221
|
+
exports.SimpleTagsFormModule = SimpleTagsFormModule;
|
|
13700
14222
|
exports.SimpleTagsModule = SimpleTagsModule;
|
|
13701
14223
|
exports.StatusbarComponent = StatusbarComponent;
|
|
13702
14224
|
exports.StatusbarModule = StatusbarModule;
|
|
13703
14225
|
exports.StockComponent = StockComponent;
|
|
13704
14226
|
exports.StockModule = StockModule;
|
|
13705
14227
|
exports.Translation = Translation;
|
|
14228
|
+
exports.WorkflowInfoTilesComponent = WorkflowInfoTilesComponent;
|
|
14229
|
+
exports.WorkflowInfoTilesModule = WorkflowInfoTilesModule;
|
|
13706
14230
|
exports.sendMethodsWithIcon = sendMethodsWithIcon;
|
|
13707
14231
|
exports["ɵa"] = SignatureComponent;
|
|
13708
14232
|
exports["ɵb"] = SignaturesComponent;
|
|
@@ -13805,6 +14329,8 @@
|
|
|
13805
14329
|
exports["ɵer"] = PeriodFilterComponent;
|
|
13806
14330
|
exports["ɵes"] = PeriodFilterPopupComponent;
|
|
13807
14331
|
exports["ɵet"] = ActivityListHeaderComponent;
|
|
14332
|
+
exports["ɵeu"] = WorkflowInfoTileModule;
|
|
14333
|
+
exports["ɵev"] = WorkflowInfoTileComponent;
|
|
13808
14334
|
exports["ɵf"] = DictionaryService;
|
|
13809
14335
|
exports["ɵg"] = LocalizeService;
|
|
13810
14336
|
exports["ɵh"] = IconCacheService;
|