@colijnit/sharedcomponents 1.0.70 → 254.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/3rdpartylicenses.txt +205 -0
- package/bundles/colijnit-sharedcomponents.umd.js +609 -153
- 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/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 +571 -224
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/index.html +2 -2
- 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/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/main.894c3ac9caba556953e2.js +1 -0
- package/package.json +6 -5
- package/public-api.d.ts +4 -0
- package/styles.b92683eab3a233f3fb51.css +1 -0
- package/main.36b466467ac98ce720f9.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/corecomponents_v12'), require('@colijnit/articleapi/build/model/article-stock-management'), 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/
|
|
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/corecomponents_v12', '@colijnit/articleapi/build/model/article-stock-management', '@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/
|
|
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.corecomponents_v12, global.articleStockManagement, 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.
|
|
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, corecomponents_v12, articleStockManagement, 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,
|
|
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/corecomponents_v12'), require('@colijnit/articleapi/build/model/article-stock-management'), 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/corecomponents_v12', '@colijnit/articleapi/build/model/article-stock-management', '@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.corecomponents_v12, global.articleStockManagement, 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, corecomponents_v12, articleStockManagement, articleTransaction, printPriceStickers_bo, reportingDocumentEmailSignDocBaseRequest, reportingDocumentPdfBaseRequest, reportingDocumentPrintSignDocBaseRequest, sendMethodType_enum, getStockHistoryRequest, chart_js, moment, fileTypeInternal_enum, dragDrop, fileType_enum, objectRightType_enum, fileUtils, coDocument, coDocumentType_enum, documentPublication_enum, coDocumentRight, arrayUtils, overlay, relationKind_enum, activityType, timeUtils, isNill_function, activityListViewModel, activityViewModel, personalActivityTab_enum, activitySortType_enum, task_bo, tableName_enum, tabCategory_enum, validationResult, domainName_enum, priorityType_enum, relationRequest, period_enum) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -1296,6 +1296,117 @@
|
|
|
1296
1296
|
});
|
|
1297
1297
|
});
|
|
1298
1298
|
};
|
|
1299
|
+
SharedConnectorService.prototype.getComponentActivitiesWithoutRelationFiltering = function (table, key) {
|
|
1300
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1301
|
+
var _this = this;
|
|
1302
|
+
return __generator(this, function (_a) {
|
|
1303
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1304
|
+
return _this.mainConnector.getComponentActivitiesWithoutRelationFiltering(table, key).then(function (result) {
|
|
1305
|
+
if (result && result.validationResult && result.validationResult.success) {
|
|
1306
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(activity_bo.Activity, result.resultObject));
|
|
1307
|
+
}
|
|
1308
|
+
else {
|
|
1309
|
+
reject(result.validationMessagesAsString);
|
|
1310
|
+
}
|
|
1311
|
+
});
|
|
1312
|
+
})];
|
|
1313
|
+
});
|
|
1314
|
+
});
|
|
1315
|
+
};
|
|
1316
|
+
SharedConnectorService.prototype.updateActivity = function (activity) {
|
|
1317
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1318
|
+
var _this = this;
|
|
1319
|
+
return __generator(this, function (_a) {
|
|
1320
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1321
|
+
return _this.mainConnector.updateActivity(activity).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
|
|
1322
|
+
return __generator(this, function (_a) {
|
|
1323
|
+
resolve(result.validationResult);
|
|
1324
|
+
return [2 /*return*/];
|
|
1325
|
+
});
|
|
1326
|
+
}); });
|
|
1327
|
+
})];
|
|
1328
|
+
});
|
|
1329
|
+
});
|
|
1330
|
+
};
|
|
1331
|
+
SharedConnectorService.prototype.deleteActivity = function (activity) {
|
|
1332
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1333
|
+
var _this = this;
|
|
1334
|
+
return __generator(this, function (_a) {
|
|
1335
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1336
|
+
return _this.mainConnector.deleteActivity(activity).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
|
|
1337
|
+
return __generator(this, function (_a) {
|
|
1338
|
+
resolve(result.validationResult);
|
|
1339
|
+
return [2 /*return*/];
|
|
1340
|
+
});
|
|
1341
|
+
}); });
|
|
1342
|
+
})];
|
|
1343
|
+
});
|
|
1344
|
+
});
|
|
1345
|
+
};
|
|
1346
|
+
SharedConnectorService.prototype.lockTask = function (id) {
|
|
1347
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1348
|
+
var _this = this;
|
|
1349
|
+
return __generator(this, function (_a) {
|
|
1350
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1351
|
+
return _this.mainConnector.lockTask(id).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
|
|
1352
|
+
return __generator(this, function (_a) {
|
|
1353
|
+
resolve(result.validationResult);
|
|
1354
|
+
return [2 /*return*/];
|
|
1355
|
+
});
|
|
1356
|
+
}); });
|
|
1357
|
+
})];
|
|
1358
|
+
});
|
|
1359
|
+
});
|
|
1360
|
+
};
|
|
1361
|
+
SharedConnectorService.prototype.fireTrigger = function (workFlowProcessId, sequence, triggerId) {
|
|
1362
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1363
|
+
var _this = this;
|
|
1364
|
+
return __generator(this, function (_a) {
|
|
1365
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1366
|
+
return _this.mainConnector.fireTrigger(workFlowProcessId, sequence, triggerId).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
|
|
1367
|
+
return __generator(this, function (_a) {
|
|
1368
|
+
resolve(result.validationResult);
|
|
1369
|
+
return [2 /*return*/];
|
|
1370
|
+
});
|
|
1371
|
+
}); });
|
|
1372
|
+
})];
|
|
1373
|
+
});
|
|
1374
|
+
});
|
|
1375
|
+
};
|
|
1376
|
+
SharedConnectorService.prototype.fireGenericTrigger = function (workFlowProcessId, genericTransitionId, relationId) {
|
|
1377
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1378
|
+
var _this = this;
|
|
1379
|
+
return __generator(this, function (_a) {
|
|
1380
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1381
|
+
return _this.mainConnector.fireGenericTrigger(workFlowProcessId, genericTransitionId, relationId).then(function (result) { return __awaiter(_this, void 0, void 0, function () {
|
|
1382
|
+
return __generator(this, function (_a) {
|
|
1383
|
+
resolve(result.validationResult);
|
|
1384
|
+
return [2 /*return*/];
|
|
1385
|
+
});
|
|
1386
|
+
}); });
|
|
1387
|
+
})];
|
|
1388
|
+
});
|
|
1389
|
+
});
|
|
1390
|
+
};
|
|
1391
|
+
SharedConnectorService.prototype.getJoinedTags = function (table, key) {
|
|
1392
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1393
|
+
var _this = this;
|
|
1394
|
+
return __generator(this, function (_a) {
|
|
1395
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1396
|
+
return _this.mainConnector.getJoinedTags(table, key).then(function (result) {
|
|
1397
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1398
|
+
if (result.resultObjects) {
|
|
1399
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(tagTreeItem_bo.TagTreeItem, result.resultObjects));
|
|
1400
|
+
}
|
|
1401
|
+
}
|
|
1402
|
+
else {
|
|
1403
|
+
reject(result.validationMessagesAsString);
|
|
1404
|
+
}
|
|
1405
|
+
});
|
|
1406
|
+
})];
|
|
1407
|
+
});
|
|
1408
|
+
});
|
|
1409
|
+
};
|
|
1299
1410
|
SharedConnectorService.prototype.getDocumentContent = function (id, thumbnail) {
|
|
1300
1411
|
if (thumbnail === void 0) { thumbnail = true; }
|
|
1301
1412
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -1748,6 +1859,25 @@
|
|
|
1748
1859
|
});
|
|
1749
1860
|
});
|
|
1750
1861
|
};
|
|
1862
|
+
SharedConnectorService.prototype.getWorkflowProcessInfoPerStatus = function (worlflowCategory) {
|
|
1863
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1864
|
+
var _this = this;
|
|
1865
|
+
return __generator(this, function (_a) {
|
|
1866
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1867
|
+
return _this.mainConnector.getWorkflowProcessInfoPerStatus(worlflowCategory).then(function (result) {
|
|
1868
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1869
|
+
if (result.resultObject) {
|
|
1870
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(workflowProcessInfoPerStatus.WorkflowProcessInfoPerStatus, result.resultObject));
|
|
1871
|
+
}
|
|
1872
|
+
}
|
|
1873
|
+
else {
|
|
1874
|
+
reject(result.validationMessagesAsString);
|
|
1875
|
+
}
|
|
1876
|
+
});
|
|
1877
|
+
})];
|
|
1878
|
+
});
|
|
1879
|
+
});
|
|
1880
|
+
};
|
|
1751
1881
|
SharedConnectorService.prototype.getHistoricActivities = function (table, key) {
|
|
1752
1882
|
return __awaiter(this, void 0, void 0, function () {
|
|
1753
1883
|
var _this = this;
|
|
@@ -2811,6 +2941,16 @@
|
|
|
2811
2941
|
});
|
|
2812
2942
|
});
|
|
2813
2943
|
};
|
|
2944
|
+
SharedService.prototype.getJoinedTags = function (table, key) {
|
|
2945
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2946
|
+
return __generator(this, function (_a) {
|
|
2947
|
+
switch (_a.label) {
|
|
2948
|
+
case 0: return [4 /*yield*/, this.connector.getJoinedTags(table, key)];
|
|
2949
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
2950
|
+
}
|
|
2951
|
+
});
|
|
2952
|
+
});
|
|
2953
|
+
};
|
|
2814
2954
|
SharedService.prototype.getDocumentContent = function (docId, thumbnail) {
|
|
2815
2955
|
if (thumbnail === void 0) { thumbnail = true; }
|
|
2816
2956
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -2822,6 +2962,69 @@
|
|
|
2822
2962
|
});
|
|
2823
2963
|
});
|
|
2824
2964
|
};
|
|
2965
|
+
SharedService.prototype.getComponentActivitiesWithoutRelationFiltering = function (table, key) {
|
|
2966
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2967
|
+
return __generator(this, function (_a) {
|
|
2968
|
+
switch (_a.label) {
|
|
2969
|
+
case 0: return [4 /*yield*/, this.connector.getComponentActivitiesWithoutRelationFiltering(table, key)];
|
|
2970
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
2971
|
+
}
|
|
2972
|
+
});
|
|
2973
|
+
});
|
|
2974
|
+
};
|
|
2975
|
+
SharedService.prototype.updateActivity = function (activity) {
|
|
2976
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2977
|
+
return __generator(this, function (_a) {
|
|
2978
|
+
switch (_a.label) {
|
|
2979
|
+
case 0: return [4 /*yield*/, this.connector.updateActivity(activity)];
|
|
2980
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
2981
|
+
}
|
|
2982
|
+
});
|
|
2983
|
+
});
|
|
2984
|
+
};
|
|
2985
|
+
SharedService.prototype.deleteActivity = function (activity) {
|
|
2986
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2987
|
+
return __generator(this, function (_a) {
|
|
2988
|
+
switch (_a.label) {
|
|
2989
|
+
case 0: return [4 /*yield*/, this.connector.deleteActivity(activity)];
|
|
2990
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
2991
|
+
}
|
|
2992
|
+
});
|
|
2993
|
+
});
|
|
2994
|
+
};
|
|
2995
|
+
SharedService.prototype.lockTask = function (id) {
|
|
2996
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2997
|
+
return __generator(this, function (_a) {
|
|
2998
|
+
switch (_a.label) {
|
|
2999
|
+
case 0: return [4 /*yield*/, this.connector.lockTask(id)];
|
|
3000
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
3001
|
+
}
|
|
3002
|
+
});
|
|
3003
|
+
});
|
|
3004
|
+
};
|
|
3005
|
+
SharedService.prototype.canFireTrigger = function (activity, task) {
|
|
3006
|
+
return true;
|
|
3007
|
+
};
|
|
3008
|
+
SharedService.prototype.fireTrigger = function (workFlowProcessId, sequence, triggerId) {
|
|
3009
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3010
|
+
return __generator(this, function (_a) {
|
|
3011
|
+
switch (_a.label) {
|
|
3012
|
+
case 0: return [4 /*yield*/, this.connector.fireTrigger(workFlowProcessId, sequence, triggerId)];
|
|
3013
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
3014
|
+
}
|
|
3015
|
+
});
|
|
3016
|
+
});
|
|
3017
|
+
};
|
|
3018
|
+
SharedService.prototype.fireGenericTrigger = function (workFlowProcessId, genericTransitionId, relationId) {
|
|
3019
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3020
|
+
return __generator(this, function (_a) {
|
|
3021
|
+
switch (_a.label) {
|
|
3022
|
+
case 0: return [4 /*yield*/, this.connector.fireGenericTrigger(workFlowProcessId, genericTransitionId, relationId)];
|
|
3023
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
3024
|
+
}
|
|
3025
|
+
});
|
|
3026
|
+
});
|
|
3027
|
+
};
|
|
2825
3028
|
SharedService.prototype.getRelationListObjects = function (request) {
|
|
2826
3029
|
return __awaiter(this, void 0, void 0, function () {
|
|
2827
3030
|
return __generator(this, function (_a) {
|
|
@@ -2872,6 +3075,16 @@
|
|
|
2872
3075
|
});
|
|
2873
3076
|
});
|
|
2874
3077
|
};
|
|
3078
|
+
SharedService.prototype.getWorkflowProcessInfoPerStatus = function (workflowCategory) {
|
|
3079
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
3080
|
+
return __generator(this, function (_a) {
|
|
3081
|
+
switch (_a.label) {
|
|
3082
|
+
case 0: return [4 /*yield*/, this.connector.getWorkflowProcessInfoPerStatus(workflowCategory)];
|
|
3083
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
3084
|
+
}
|
|
3085
|
+
});
|
|
3086
|
+
});
|
|
3087
|
+
};
|
|
2875
3088
|
SharedService.prototype.getActivities = function (table, key) {
|
|
2876
3089
|
return __awaiter(this, void 0, void 0, function () {
|
|
2877
3090
|
var activities, histActivities, activeActivities, historicActivities;
|
|
@@ -7119,14 +7332,74 @@
|
|
|
7119
7332
|
this._linkedTags = [];
|
|
7120
7333
|
}
|
|
7121
7334
|
Object.defineProperty(SimpleTagsComponent.prototype, "tags", {
|
|
7335
|
+
get: function () {
|
|
7336
|
+
return this._tags;
|
|
7337
|
+
},
|
|
7122
7338
|
set: function (tags) {
|
|
7123
7339
|
this._tags = tags;
|
|
7124
|
-
this.setRootDisplayTags();
|
|
7125
7340
|
},
|
|
7126
7341
|
enumerable: false,
|
|
7127
7342
|
configurable: true
|
|
7128
7343
|
});
|
|
7129
7344
|
Object.defineProperty(SimpleTagsComponent.prototype, "linkedTags", {
|
|
7345
|
+
get: function () {
|
|
7346
|
+
return this._linkedTags;
|
|
7347
|
+
},
|
|
7348
|
+
set: function (tags) {
|
|
7349
|
+
this._linkedTags = tags;
|
|
7350
|
+
},
|
|
7351
|
+
enumerable: false,
|
|
7352
|
+
configurable: true
|
|
7353
|
+
});
|
|
7354
|
+
SimpleTagsComponent.prototype.showClass = function () {
|
|
7355
|
+
return true;
|
|
7356
|
+
};
|
|
7357
|
+
SimpleTagsComponent.prototype.handleSaveTags = function () {
|
|
7358
|
+
this.saveClick.next(this._linkedTags);
|
|
7359
|
+
this.closeClick.next();
|
|
7360
|
+
};
|
|
7361
|
+
return SimpleTagsComponent;
|
|
7362
|
+
}());
|
|
7363
|
+
SimpleTagsComponent.decorators = [
|
|
7364
|
+
{ type: i0.Component, args: [{
|
|
7365
|
+
selector: "co-simple-tags",
|
|
7366
|
+
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 ",
|
|
7367
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
7368
|
+
},] }
|
|
7369
|
+
];
|
|
7370
|
+
SimpleTagsComponent.ctorParameters = function () { return [
|
|
7371
|
+
{ type: IconCacheService },
|
|
7372
|
+
{ type: SharedService }
|
|
7373
|
+
]; };
|
|
7374
|
+
SimpleTagsComponent.propDecorators = {
|
|
7375
|
+
tags: [{ type: i0.Input }],
|
|
7376
|
+
linkedTags: [{ type: i0.Input }],
|
|
7377
|
+
closeClick: [{ type: i0.Output }],
|
|
7378
|
+
saveClick: [{ type: i0.Output }],
|
|
7379
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-simple-tags",] }]
|
|
7380
|
+
};
|
|
7381
|
+
|
|
7382
|
+
var SimpleTagsFormComponent = /** @class */ (function () {
|
|
7383
|
+
function SimpleTagsFormComponent(iconCacheService, sharedService) {
|
|
7384
|
+
this.iconCacheService = iconCacheService;
|
|
7385
|
+
this.sharedService = sharedService;
|
|
7386
|
+
this.icon = exports["ɵbu"];
|
|
7387
|
+
this.linkedTagsChange = new i0.EventEmitter();
|
|
7388
|
+
this.breadCrumbs = [];
|
|
7389
|
+
this.displayTags = [];
|
|
7390
|
+
this.searchString = '';
|
|
7391
|
+
this._tags = [];
|
|
7392
|
+
this._linkedTags = [];
|
|
7393
|
+
}
|
|
7394
|
+
Object.defineProperty(SimpleTagsFormComponent.prototype, "tags", {
|
|
7395
|
+
set: function (tags) {
|
|
7396
|
+
this._tags = tags;
|
|
7397
|
+
this.setRootDisplayTags();
|
|
7398
|
+
},
|
|
7399
|
+
enumerable: false,
|
|
7400
|
+
configurable: true
|
|
7401
|
+
});
|
|
7402
|
+
Object.defineProperty(SimpleTagsFormComponent.prototype, "linkedTags", {
|
|
7130
7403
|
get: function () {
|
|
7131
7404
|
return this._linkedTags;
|
|
7132
7405
|
},
|
|
@@ -7138,15 +7411,15 @@
|
|
|
7138
7411
|
enumerable: false,
|
|
7139
7412
|
configurable: true
|
|
7140
7413
|
});
|
|
7141
|
-
|
|
7414
|
+
SimpleTagsFormComponent.prototype.showClass = function () {
|
|
7142
7415
|
return true;
|
|
7143
7416
|
};
|
|
7144
|
-
|
|
7417
|
+
SimpleTagsFormComponent.prototype.setRootDisplayTags = function () {
|
|
7145
7418
|
this.displayTags = this._tags.filter(function (tag) { return tag.treeLevel === 0; });
|
|
7146
7419
|
this.breadCrumbs = [];
|
|
7147
7420
|
this.searchString = '';
|
|
7148
7421
|
};
|
|
7149
|
-
|
|
7422
|
+
SimpleTagsFormComponent.prototype.handleTagSelected = function (selectedTag) {
|
|
7150
7423
|
if (selectedTag.tagType === 'TR' || selectedTag.tagType === 'TG') {
|
|
7151
7424
|
if (selectedTag !== this.breadCrumbs[0]) {
|
|
7152
7425
|
this.breadCrumbs.push(selectedTag);
|
|
@@ -7156,23 +7429,23 @@
|
|
|
7156
7429
|
});
|
|
7157
7430
|
}
|
|
7158
7431
|
};
|
|
7159
|
-
|
|
7432
|
+
SimpleTagsFormComponent.prototype.handleCrumbClicked = function (tag, index) {
|
|
7160
7433
|
if (tag !== this.breadCrumbs[this.breadCrumbs.length - 1]) {
|
|
7161
7434
|
this.breadCrumbs.splice(index + 1);
|
|
7162
7435
|
this.handleTagSelected(tag);
|
|
7163
7436
|
}
|
|
7164
7437
|
};
|
|
7165
|
-
|
|
7438
|
+
SimpleTagsFormComponent.prototype.handleAddTag = function (event) {
|
|
7166
7439
|
var draggedTag = this.displayTags[event.previousIndex];
|
|
7167
7440
|
if (!this._linkedTags.includes(draggedTag)) {
|
|
7168
7441
|
this._linkedTags.push(this.displayTags[event.previousIndex]);
|
|
7169
7442
|
this._loadThumbnail(draggedTag);
|
|
7170
7443
|
}
|
|
7171
7444
|
};
|
|
7172
|
-
|
|
7445
|
+
SimpleTagsFormComponent.prototype.deleteLinkedTag = function (tag) {
|
|
7173
7446
|
this._linkedTags.splice(this._linkedTags.indexOf(tag), 1);
|
|
7174
7447
|
};
|
|
7175
|
-
|
|
7448
|
+
SimpleTagsFormComponent.prototype.searchCollection = function () {
|
|
7176
7449
|
var _this = this;
|
|
7177
7450
|
if (!this.searchString) {
|
|
7178
7451
|
this.searchString = '';
|
|
@@ -7200,11 +7473,7 @@
|
|
|
7200
7473
|
this.displayTags = matchingObjects;
|
|
7201
7474
|
this.breadCrumbs = [];
|
|
7202
7475
|
};
|
|
7203
|
-
|
|
7204
|
-
this.saveClick.next(this._linkedTags);
|
|
7205
|
-
this.closeClick.next();
|
|
7206
|
-
};
|
|
7207
|
-
SimpleTagsComponent.prototype._loadThumbnail = function (tagTreeItem) {
|
|
7476
|
+
SimpleTagsFormComponent.prototype._loadThumbnail = function (tagTreeItem) {
|
|
7208
7477
|
if (tagTreeItem.image && tagTreeItem.image.documentId && !tagTreeItem.image.thumbnailBody) {
|
|
7209
7478
|
this.sharedService.getDocumentContent(tagTreeItem.image.documentId, true)
|
|
7210
7479
|
.then(function (result) {
|
|
@@ -7214,27 +7483,50 @@
|
|
|
7214
7483
|
});
|
|
7215
7484
|
}
|
|
7216
7485
|
};
|
|
7217
|
-
return
|
|
7486
|
+
return SimpleTagsFormComponent;
|
|
7218
7487
|
}());
|
|
7219
|
-
|
|
7488
|
+
SimpleTagsFormComponent.decorators = [
|
|
7220
7489
|
{ type: i0.Component, args: [{
|
|
7221
|
-
selector: "co-simple-tags",
|
|
7222
|
-
template: "\n <
|
|
7490
|
+
selector: "co-simple-tags-form",
|
|
7491
|
+
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
7492
|
encapsulation: i0.ViewEncapsulation.None
|
|
7224
7493
|
},] }
|
|
7225
7494
|
];
|
|
7226
|
-
|
|
7495
|
+
SimpleTagsFormComponent.ctorParameters = function () { return [
|
|
7227
7496
|
{ type: IconCacheService },
|
|
7228
7497
|
{ type: SharedService }
|
|
7229
7498
|
]; };
|
|
7230
|
-
|
|
7499
|
+
SimpleTagsFormComponent.propDecorators = {
|
|
7231
7500
|
tags: [{ type: i0.Input }],
|
|
7232
7501
|
linkedTags: [{ type: i0.Input }],
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
showClass: [{ type: i0.HostBinding, args: ["class.co-simple-tags",] }]
|
|
7502
|
+
linkedTagsChange: [{ type: i0.Output }],
|
|
7503
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-simple-tags-form",] }]
|
|
7236
7504
|
};
|
|
7237
7505
|
|
|
7506
|
+
var SimpleTagsFormModule = /** @class */ (function () {
|
|
7507
|
+
function SimpleTagsFormModule() {
|
|
7508
|
+
}
|
|
7509
|
+
return SimpleTagsFormModule;
|
|
7510
|
+
}());
|
|
7511
|
+
SimpleTagsFormModule.decorators = [
|
|
7512
|
+
{ type: i0.NgModule, args: [{
|
|
7513
|
+
imports: [
|
|
7514
|
+
common.CommonModule,
|
|
7515
|
+
corecomponents_v12.CoDialogModule,
|
|
7516
|
+
corecomponents_v12.InputSearchModule,
|
|
7517
|
+
corecomponents_v12.IconModule,
|
|
7518
|
+
dragDrop.DragDropModule,
|
|
7519
|
+
corecomponents_v12.ButtonModule
|
|
7520
|
+
],
|
|
7521
|
+
declarations: [
|
|
7522
|
+
SimpleTagsFormComponent
|
|
7523
|
+
],
|
|
7524
|
+
exports: [
|
|
7525
|
+
SimpleTagsFormComponent
|
|
7526
|
+
]
|
|
7527
|
+
},] }
|
|
7528
|
+
];
|
|
7529
|
+
|
|
7238
7530
|
var SimpleTagsModule = /** @class */ (function () {
|
|
7239
7531
|
function SimpleTagsModule() {
|
|
7240
7532
|
}
|
|
@@ -7248,7 +7540,8 @@
|
|
|
7248
7540
|
corecomponents_v12.InputSearchModule,
|
|
7249
7541
|
corecomponents_v12.IconModule,
|
|
7250
7542
|
dragDrop.DragDropModule,
|
|
7251
|
-
corecomponents_v12.ButtonModule
|
|
7543
|
+
corecomponents_v12.ButtonModule,
|
|
7544
|
+
SimpleTagsFormModule
|
|
7252
7545
|
],
|
|
7253
7546
|
declarations: [
|
|
7254
7547
|
SimpleTagsComponent
|
|
@@ -10685,6 +10978,7 @@
|
|
|
10685
10978
|
this.privateDelegatedActivityListViewModels = [];
|
|
10686
10979
|
this.filteredActivityListViewModels = [];
|
|
10687
10980
|
this.filteredDelegatedActivityListViewModels = [];
|
|
10981
|
+
this._showUsergroupActivities = false;
|
|
10688
10982
|
this._activities = [];
|
|
10689
10983
|
this._delegatedActivities = [];
|
|
10690
10984
|
//protected userService: UserService
|
|
@@ -10722,9 +11016,10 @@
|
|
|
10722
11016
|
Object.defineProperty(BaseActivityListComponent.prototype, "showUsergroupActivities", {
|
|
10723
11017
|
// TODO: return this.userService.showUsergroupActivities and allow to set properly;
|
|
10724
11018
|
get: function () {
|
|
10725
|
-
return
|
|
11019
|
+
return this._showUsergroupActivities;
|
|
10726
11020
|
},
|
|
10727
11021
|
set: function (value) {
|
|
11022
|
+
this._showUsergroupActivities = value;
|
|
10728
11023
|
},
|
|
10729
11024
|
enumerable: false,
|
|
10730
11025
|
configurable: true
|
|
@@ -10747,7 +11042,7 @@
|
|
|
10747
11042
|
BaseActivityListComponent.prototype.afterFilterApplied = function () {
|
|
10748
11043
|
};
|
|
10749
11044
|
BaseActivityListComponent.prototype.getTheActivities = function () {
|
|
10750
|
-
|
|
11045
|
+
this.getActivities();
|
|
10751
11046
|
this.getDelegatedActivities();
|
|
10752
11047
|
};
|
|
10753
11048
|
BaseActivityListComponent.prototype._removeNotShowing = function (listViewModels) {
|
|
@@ -10989,10 +11284,6 @@
|
|
|
10989
11284
|
ActivityCfgName["WorkedTime"] = "workedTime";
|
|
10990
11285
|
})(ActivityCfgName || (ActivityCfgName = {}));
|
|
10991
11286
|
|
|
10992
|
-
function OperationWithValidationCallback(object, object2, object3) {
|
|
10993
|
-
return Promise.resolve(new validationResult.ValidationResult());
|
|
10994
|
-
}
|
|
10995
|
-
|
|
10996
11287
|
var AppPopupButtonType;
|
|
10997
11288
|
(function (AppPopupButtonType) {
|
|
10998
11289
|
AppPopupButtonType[AppPopupButtonType["Ok"] = 0] = "Ok";
|
|
@@ -11005,13 +11296,13 @@
|
|
|
11005
11296
|
})(AppPopupButtonType || (AppPopupButtonType = {}));
|
|
11006
11297
|
|
|
11007
11298
|
var ModifyTaskFormComponent = /** @class */ (function () {
|
|
11008
|
-
function ModifyTaskFormComponent(_boFactory, sharedService
|
|
11299
|
+
function ModifyTaskFormComponent(_boFactory, sharedService, iconCacheService
|
|
11009
11300
|
//private _mediaMonitor: MediaMonitorService,
|
|
11010
11301
|
/*private _activityService: ActivityService*/
|
|
11011
11302
|
) {
|
|
11012
11303
|
this._boFactory = _boFactory;
|
|
11013
11304
|
this.sharedService = sharedService;
|
|
11014
|
-
this.
|
|
11305
|
+
this.iconCacheService = iconCacheService;
|
|
11015
11306
|
//public readonly TagCategory: typeof TagCategory = TagCategory;
|
|
11016
11307
|
this.TableNames = tableName_enum.TableName;
|
|
11017
11308
|
this.readonly = false;
|
|
@@ -11023,6 +11314,7 @@
|
|
|
11023
11314
|
this.activities = [];
|
|
11024
11315
|
this.table = tableName_enum.TableName.Tasks;
|
|
11025
11316
|
this.expandActivities = false;
|
|
11317
|
+
this.showTagPopup = false;
|
|
11026
11318
|
}
|
|
11027
11319
|
Object.defineProperty(ModifyTaskFormComponent.prototype, "activity", {
|
|
11028
11320
|
get: function () {
|
|
@@ -11064,6 +11356,7 @@
|
|
|
11064
11356
|
};
|
|
11065
11357
|
ModifyTaskFormComponent.prototype.ngOnInit = function () {
|
|
11066
11358
|
this._getActivities();
|
|
11359
|
+
this._getTags();
|
|
11067
11360
|
};
|
|
11068
11361
|
ModifyTaskFormComponent.prototype.showContent = function (menu) {
|
|
11069
11362
|
this.selectedMenu = menu;
|
|
@@ -11101,6 +11394,13 @@
|
|
|
11101
11394
|
this.expandActivities = true;
|
|
11102
11395
|
this.showWorkLog.emit();
|
|
11103
11396
|
};
|
|
11397
|
+
ModifyTaskFormComponent.prototype.handleEditTags = function () {
|
|
11398
|
+
this._getTags();
|
|
11399
|
+
this.showTagPopup = true;
|
|
11400
|
+
};
|
|
11401
|
+
ModifyTaskFormComponent.prototype.handleSaveTags = function (tags) {
|
|
11402
|
+
this.activity.task.tags = tags;
|
|
11403
|
+
};
|
|
11104
11404
|
ModifyTaskFormComponent.prototype._updateTaskObject = function (activity, prop) {
|
|
11105
11405
|
var cloneActivity = this._boFactory.makeWithRawBackendData(activity_bo.Activity, activity);
|
|
11106
11406
|
if (cloneActivity.isNew) {
|
|
@@ -11135,12 +11435,27 @@
|
|
|
11135
11435
|
});
|
|
11136
11436
|
});
|
|
11137
11437
|
};
|
|
11438
|
+
ModifyTaskFormComponent.prototype._getTags = function () {
|
|
11439
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
11440
|
+
var _d;
|
|
11441
|
+
return __generator(this, function (_e) {
|
|
11442
|
+
switch (_e.label) {
|
|
11443
|
+
case 0:
|
|
11444
|
+
_d = this;
|
|
11445
|
+
return [4 /*yield*/, this.sharedService.getTagsFullTree(tabCategory_enum.TagCategory.tasks, true)];
|
|
11446
|
+
case 1:
|
|
11447
|
+
_d.allTags = _e.sent();
|
|
11448
|
+
return [2 /*return*/];
|
|
11449
|
+
}
|
|
11450
|
+
});
|
|
11451
|
+
});
|
|
11452
|
+
};
|
|
11138
11453
|
return ModifyTaskFormComponent;
|
|
11139
11454
|
}());
|
|
11140
11455
|
ModifyTaskFormComponent.decorators = [
|
|
11141
11456
|
{ type: i0.Component, args: [{
|
|
11142
11457
|
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
|
|
11458
|
+
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
11459
|
providers: [
|
|
11145
11460
|
corecomponents_v12.FormMasterService,
|
|
11146
11461
|
{
|
|
@@ -11152,7 +11467,8 @@
|
|
|
11152
11467
|
];
|
|
11153
11468
|
ModifyTaskFormComponent.ctorParameters = function () { return [
|
|
11154
11469
|
{ type: businessObjectFactory.BusinessObjectFactory },
|
|
11155
|
-
{ type: SharedService }
|
|
11470
|
+
{ type: SharedService },
|
|
11471
|
+
{ type: corecomponents_v12.IconCacheService }
|
|
11156
11472
|
]; };
|
|
11157
11473
|
ModifyTaskFormComponent.propDecorators = {
|
|
11158
11474
|
activity: [{ type: i0.Input }],
|
|
@@ -11171,11 +11487,12 @@
|
|
|
11171
11487
|
], ModifyTaskFormComponent.prototype, "forceReadonly", null);
|
|
11172
11488
|
|
|
11173
11489
|
var TaskModifierComponent = /** @class */ (function () {
|
|
11174
|
-
function TaskModifierComponent(_dialogService, _boFactory, _dictionary, iconService) {
|
|
11490
|
+
function TaskModifierComponent(_dialogService, _boFactory, _dictionary, iconService, sharedService) {
|
|
11175
11491
|
this._dialogService = _dialogService;
|
|
11176
11492
|
this._boFactory = _boFactory;
|
|
11177
11493
|
this._dictionary = _dictionary;
|
|
11178
11494
|
this.iconService = iconService;
|
|
11495
|
+
this.sharedService = sharedService;
|
|
11179
11496
|
this.icons = exports["ɵbu"];
|
|
11180
11497
|
this.editingComplete = new i0.EventEmitter();
|
|
11181
11498
|
this.activitySaved = new i0.EventEmitter();
|
|
@@ -11272,7 +11589,7 @@
|
|
|
11272
11589
|
case 0:
|
|
11273
11590
|
if (!this.editActivity) return [3 /*break*/, 2];
|
|
11274
11591
|
newActivity = this.editActivity.isNew;
|
|
11275
|
-
return [4 /*yield*/, this.
|
|
11592
|
+
return [4 /*yield*/, this.sharedService.updateActivity(this.editActivity)];
|
|
11276
11593
|
case 1:
|
|
11277
11594
|
result = _g.sent();
|
|
11278
11595
|
if (result) {
|
|
@@ -11329,7 +11646,7 @@
|
|
|
11329
11646
|
case 1:
|
|
11330
11647
|
doDelete = _g.sent();
|
|
11331
11648
|
if (!(doDelete.button === AppPopupButtonType.Yes)) return [3 /*break*/, 3];
|
|
11332
|
-
return [4 /*yield*/, this.
|
|
11649
|
+
return [4 /*yield*/, this.sharedService.deleteActivity(this.editActivity)];
|
|
11333
11650
|
case 2:
|
|
11334
11651
|
_g.sent();
|
|
11335
11652
|
this.activityDeleted.next(this.editActivity);
|
|
@@ -11371,7 +11688,7 @@
|
|
|
11371
11688
|
return [2 /*return*/];
|
|
11372
11689
|
}
|
|
11373
11690
|
this.showAfterInsert = false;
|
|
11374
|
-
return [4 /*yield*/, this.
|
|
11691
|
+
return [4 /*yield*/, this.sharedService.lockTask(activity.task.taskId)];
|
|
11375
11692
|
case 1:
|
|
11376
11693
|
_g.sent();
|
|
11377
11694
|
activity.task = activity.task;
|
|
@@ -11421,7 +11738,8 @@
|
|
|
11421
11738
|
{ type: corecomponents_v12.CoreDialogService },
|
|
11422
11739
|
{ type: businessObjectFactory.BusinessObjectFactory },
|
|
11423
11740
|
{ type: DictionaryService },
|
|
11424
|
-
{ type: IconCacheService }
|
|
11741
|
+
{ type: IconCacheService },
|
|
11742
|
+
{ type: SharedService }
|
|
11425
11743
|
]; };
|
|
11426
11744
|
TaskModifierComponent.propDecorators = {
|
|
11427
11745
|
mainForm: [{ type: i0.ViewChild, args: [corecomponents_v12.FormComponent,] }],
|
|
@@ -11431,9 +11749,6 @@
|
|
|
11431
11749
|
referenceId: [{ type: i0.Input }],
|
|
11432
11750
|
userGroupId: [{ type: i0.Input }],
|
|
11433
11751
|
relationId: [{ type: i0.Input }],
|
|
11434
|
-
upsertActivityOperation: [{ type: i0.Input }],
|
|
11435
|
-
deleteActivityOperation: [{ type: i0.Input }],
|
|
11436
|
-
tryLockTaskOperation: [{ type: i0.Input }],
|
|
11437
11752
|
createTaskOperation: [{ type: i0.Input }],
|
|
11438
11753
|
forceReadonly: [{ type: i0.Input }],
|
|
11439
11754
|
editingComplete: [{ type: i0.Output }],
|
|
@@ -11450,9 +11765,14 @@
|
|
|
11450
11765
|
], TaskModifierComponent.prototype, "forceReadonly", void 0);
|
|
11451
11766
|
|
|
11452
11767
|
var BaseActivityOverviewComponent = /** @class */ (function () {
|
|
11453
|
-
function BaseActivityOverviewComponent(_dialogService, _dictionaryService
|
|
11768
|
+
function BaseActivityOverviewComponent(_dialogService, _dictionaryService, _sharedService
|
|
11769
|
+
//TODO reinstate when formbuilder is transferred
|
|
11770
|
+
//private _formRepo: FormDalRepository,
|
|
11771
|
+
/*private _router: Router*/
|
|
11772
|
+
) {
|
|
11454
11773
|
this._dialogService = _dialogService;
|
|
11455
11774
|
this._dictionaryService = _dictionaryService;
|
|
11775
|
+
this._sharedService = _sharedService;
|
|
11456
11776
|
this.icon = exports["ɵbu"];
|
|
11457
11777
|
this.cfgNames = ActivityCfgName;
|
|
11458
11778
|
this.taskCfgNames = {
|
|
@@ -11467,13 +11787,7 @@
|
|
|
11467
11787
|
tagsHeader: ActivityCfgName.TagsHeader,
|
|
11468
11788
|
taskInvoice: ActivityCfgName.TaskInvoice
|
|
11469
11789
|
};
|
|
11470
|
-
this.canFireTriggerOperation = OperationWithAlwaysSuccessCallback;
|
|
11471
11790
|
this.prepareWorkflowOperation = OperationWithAlwaysSuccessCallback;
|
|
11472
|
-
this.lockTaskOperation = OperationWithAlwaysSuccessCallback;
|
|
11473
|
-
this.deleteActivityOperation = OperationWithAlwaysSuccessCallback;
|
|
11474
|
-
this.upsertActivityOperation = OperationWithAlwaysSuccessCallback;
|
|
11475
|
-
this.fireGenericTriggerOperation = OperationWithValidationCallback;
|
|
11476
|
-
this.fireTriggerOperation = OperationWithValidationCallback;
|
|
11477
11791
|
this.handleOpenLinkSidebar = false;
|
|
11478
11792
|
this.activityChange = new i0.EventEmitter();
|
|
11479
11793
|
this.activityDeleted = new i0.EventEmitter();
|
|
@@ -11528,7 +11842,7 @@
|
|
|
11528
11842
|
var result, messages, len, i;
|
|
11529
11843
|
return __generator(this, function (_a) {
|
|
11530
11844
|
switch (_a.label) {
|
|
11531
|
-
case 0: return [4 /*yield*/, this.
|
|
11845
|
+
case 0: return [4 /*yield*/, this._sharedService.fireGenericTrigger(this.workFlow.workflowProcessId, event.genericTransitionId, this.userRelationId)];
|
|
11532
11846
|
case 1:
|
|
11533
11847
|
result = _a.sent();
|
|
11534
11848
|
if (result.success) {
|
|
@@ -11559,12 +11873,20 @@
|
|
|
11559
11873
|
this.activity.activityType = activityType.ActivityType.Task;
|
|
11560
11874
|
this.activity.task.taskId = eventTrigger.taskId;
|
|
11561
11875
|
this.taskModifier.startModifyingTask(this.activity);
|
|
11562
|
-
return [3 /*break*/,
|
|
11876
|
+
return [3 /*break*/, 6];
|
|
11563
11877
|
case 1:
|
|
11564
11878
|
if (!eventTrigger.isFormTrigger) return [3 /*break*/, 2];
|
|
11565
|
-
return [3 /*break*/,
|
|
11566
|
-
case 2:
|
|
11879
|
+
return [3 /*break*/, 6];
|
|
11880
|
+
case 2:
|
|
11881
|
+
if (!(eventTrigger.toClosedState && !this._sharedService.canFireTrigger(this.activity, this.activity.task))) return [3 /*break*/, 4];
|
|
11882
|
+
return [4 /*yield*/, this.prepareWorkflowOperation({ table: this.workFlow.table, key: this.workFlow.key })];
|
|
11567
11883
|
case 3:
|
|
11884
|
+
_a.sent();
|
|
11885
|
+
this.triggerToFireOnSave = eventTrigger;
|
|
11886
|
+
this.showTaskFormAndWorkLog();
|
|
11887
|
+
return [2 /*return*/];
|
|
11888
|
+
case 4: return [4 /*yield*/, this._sharedService.fireTrigger(this.workFlow.workflowProcessId, this.workFlow.sequence, eventTrigger.triggerId)];
|
|
11889
|
+
case 5:
|
|
11568
11890
|
result = _a.sent();
|
|
11569
11891
|
if (result.success) {
|
|
11570
11892
|
this.triggerFired.next(this.activity);
|
|
@@ -11577,8 +11899,8 @@
|
|
|
11577
11899
|
}
|
|
11578
11900
|
this._dialogService.showError(messages.toString());
|
|
11579
11901
|
}
|
|
11580
|
-
_a.label =
|
|
11581
|
-
case
|
|
11902
|
+
_a.label = 6;
|
|
11903
|
+
case 6: return [2 /*return*/];
|
|
11582
11904
|
}
|
|
11583
11905
|
});
|
|
11584
11906
|
});
|
|
@@ -11709,19 +12031,14 @@
|
|
|
11709
12031
|
];
|
|
11710
12032
|
BaseActivityOverviewComponent.ctorParameters = function () { return [
|
|
11711
12033
|
{ type: corecomponents_v12.CoreDialogService },
|
|
11712
|
-
{ type: DictionaryService }
|
|
12034
|
+
{ type: DictionaryService },
|
|
12035
|
+
{ type: SharedService }
|
|
11713
12036
|
]; };
|
|
11714
12037
|
BaseActivityOverviewComponent.propDecorators = {
|
|
11715
12038
|
taskModifier: [{ type: i0.ViewChild, args: [TaskModifierComponent, { static: true },] }],
|
|
11716
12039
|
viewModel: [{ type: i0.Input }],
|
|
11717
12040
|
triggerToFireOnSave: [{ type: i0.Input }],
|
|
11718
|
-
canFireTriggerOperation: [{ type: i0.Input }],
|
|
11719
12041
|
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
12042
|
userRelationId: [{ type: i0.Input }],
|
|
11726
12043
|
userGroupId: [{ type: i0.Input }],
|
|
11727
12044
|
handleOpenLinkSidebar: [{ type: i0.Input }],
|
|
@@ -11757,10 +12074,15 @@
|
|
|
11757
12074
|
showClass: [{ type: i0.HostBinding, args: ["class.co-personal-activity-overview",] }]
|
|
11758
12075
|
};
|
|
11759
12076
|
|
|
12077
|
+
function OperationWithValidationCallback(object, object2, object3) {
|
|
12078
|
+
return Promise.resolve(new validationResult.ValidationResult());
|
|
12079
|
+
}
|
|
12080
|
+
|
|
11760
12081
|
var ComponentActivityListComponent = /** @class */ (function (_super) {
|
|
11761
12082
|
__extends(ComponentActivityListComponent, _super);
|
|
11762
|
-
function ComponentActivityListComponent() {
|
|
12083
|
+
function ComponentActivityListComponent(sharedService) {
|
|
11763
12084
|
var _this = _super.call(this) || this;
|
|
12085
|
+
_this.sharedService = sharedService;
|
|
11764
12086
|
_this.tabs = personalActivityTab_enum.PersonalActivityTabEnum;
|
|
11765
12087
|
_this.icons = exports["ɵbu"];
|
|
11766
12088
|
_this.activityClass = activity_bo.Activity;
|
|
@@ -11768,19 +12090,12 @@
|
|
|
11768
12090
|
_this.hideTitle = false;
|
|
11769
12091
|
_this.noFreeTasks = false;
|
|
11770
12092
|
_this.componentActivitiesMethod = OperationWithAlwaysSuccessCallback;
|
|
11771
|
-
_this.fireGenericTriggerOperation = OperationWithValidationCallback;
|
|
11772
|
-
_this.fireTriggerOperation = OperationWithValidationCallback;
|
|
11773
|
-
_this.canFireTriggerOperation = OperationWithAlwaysSuccessCallback;
|
|
11774
12093
|
_this.setHasPausedNotificationsForWorkflowProcessOperation = OperationWithValidationCallback;
|
|
11775
|
-
_this.lockTaskOperation = OperationWithAlwaysSuccessCallback;
|
|
11776
|
-
_this.deleteActivityOperation = OperationWithAlwaysSuccessCallback;
|
|
11777
|
-
_this.upsertActivityOperation = OperationWithAlwaysSuccessCallback;
|
|
11778
12094
|
_this.openLinkClick = new i0.EventEmitter();
|
|
11779
12095
|
_this.amountActivityChanged = new i0.EventEmitter();
|
|
11780
12096
|
_this.linkClicked = new i0.EventEmitter();
|
|
11781
12097
|
_this.formCreated = new i0.EventEmitter();
|
|
11782
|
-
_this.
|
|
11783
|
-
_this.triggerFired = new i0.EventEmitter();
|
|
12098
|
+
_this.refreshRequested = new i0.EventEmitter();
|
|
11784
12099
|
_this.showUsergroupActivitiesChanged = new i0.EventEmitter();
|
|
11785
12100
|
_this.activeTab = personalActivityTab_enum.PersonalActivityTabEnum.TODO;
|
|
11786
12101
|
/*public activitySortList: boolean[] = [];*/
|
|
@@ -11817,24 +12132,42 @@
|
|
|
11817
12132
|
ComponentActivityListComponent.prototype.trackByFn = function (index, vm) {
|
|
11818
12133
|
return vm.activity.id + '_' + vm.activity.workflow.combinedTriggerIds;
|
|
11819
12134
|
};
|
|
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(() => {
|
|
12135
|
+
ComponentActivityListComponent.prototype.ngOnInit = function () {
|
|
12136
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12137
|
+
return __generator(this, function (_a) {
|
|
11830
12138
|
this.getTheActivities();
|
|
11831
|
-
|
|
11832
|
-
|
|
11833
|
-
|
|
12139
|
+
return [2 /*return*/];
|
|
12140
|
+
});
|
|
12141
|
+
});
|
|
12142
|
+
};
|
|
11834
12143
|
ComponentActivityListComponent.prototype.ngOnDestroy = function () {
|
|
11835
|
-
this._subs.forEach(
|
|
12144
|
+
//this._subs.forEach(s => s.unsubscribe());
|
|
11836
12145
|
_super.prototype.ngOnDestroy.call(this);
|
|
11837
12146
|
};
|
|
12147
|
+
ComponentActivityListComponent.prototype.getActivities = function () {
|
|
12148
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
12149
|
+
var allActivities;
|
|
12150
|
+
return __generator(this, function (_a) {
|
|
12151
|
+
switch (_a.label) {
|
|
12152
|
+
case 0:
|
|
12153
|
+
if (!(this.table && this.key)) return [3 /*break*/, 2];
|
|
12154
|
+
return [4 /*yield*/, this.sharedService.getComponentActivitiesWithoutRelationFiltering(this.table, this.key)];
|
|
12155
|
+
case 1:
|
|
12156
|
+
allActivities = _a.sent();
|
|
12157
|
+
if (allActivities) {
|
|
12158
|
+
this.activities = this.noFreeTasks ? allActivities.filter(function (aa) { return !aa.task && aa.activityType !== activityType.ActivityType.WorkflowTask; }) :
|
|
12159
|
+
allActivities.filter(function (aa) { return aa.activityType !== activityType.ActivityType.WorkflowTask; });
|
|
12160
|
+
}
|
|
12161
|
+
else {
|
|
12162
|
+
this.activities = [];
|
|
12163
|
+
}
|
|
12164
|
+
this.amountActivityChanged.next(this.activities.length);
|
|
12165
|
+
_a.label = 2;
|
|
12166
|
+
case 2: return [2 /*return*/];
|
|
12167
|
+
}
|
|
12168
|
+
});
|
|
12169
|
+
});
|
|
12170
|
+
};
|
|
11838
12171
|
Object.defineProperty(ComponentActivityListComponent.prototype, "activitiesList", {
|
|
11839
12172
|
get: function () {
|
|
11840
12173
|
return this._activitiesList;
|
|
@@ -11852,18 +12185,6 @@
|
|
|
11852
12185
|
enumerable: false,
|
|
11853
12186
|
configurable: true
|
|
11854
12187
|
});
|
|
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
12188
|
ComponentActivityListComponent.prototype.getDelegatedActivities = function () {
|
|
11868
12189
|
return __awaiter(this, void 0, void 0, function () {
|
|
11869
12190
|
return __generator(this, function (_a) {
|
|
@@ -11879,10 +12200,12 @@
|
|
|
11879
12200
|
this.showUsergroupActivitiesChanged.next();
|
|
11880
12201
|
};
|
|
11881
12202
|
ComponentActivityListComponent.prototype.handleTriggerFired = function (activity) {
|
|
11882
|
-
this.
|
|
12203
|
+
this.getTheActivities();
|
|
12204
|
+
this.refreshRequested.emit();
|
|
11883
12205
|
};
|
|
11884
12206
|
ComponentActivityListComponent.prototype.handleGenericTriggerFired = function (activity) {
|
|
11885
|
-
this.
|
|
12207
|
+
this.getTheActivities();
|
|
12208
|
+
this.refreshRequested.emit();
|
|
11886
12209
|
};
|
|
11887
12210
|
ComponentActivityListComponent.prototype.handleFormCreation = function () {
|
|
11888
12211
|
this.formCreated.next();
|
|
@@ -11938,7 +12261,7 @@
|
|
|
11938
12261
|
ComponentActivityListComponent.decorators = [
|
|
11939
12262
|
{ type: i0.Component, args: [{
|
|
11940
12263
|
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
|
|
12264
|
+
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
12265
|
animations: [
|
|
11943
12266
|
animations.trigger("showHideContent", [
|
|
11944
12267
|
animations.state("void", animations.style({ transform: "scaleY(0)", opacity: 0 })),
|
|
@@ -11953,7 +12276,9 @@
|
|
|
11953
12276
|
]
|
|
11954
12277
|
},] }
|
|
11955
12278
|
];
|
|
11956
|
-
ComponentActivityListComponent.ctorParameters = function () { return [
|
|
12279
|
+
ComponentActivityListComponent.ctorParameters = function () { return [
|
|
12280
|
+
{ type: SharedService }
|
|
12281
|
+
]; };
|
|
11957
12282
|
ComponentActivityListComponent.propDecorators = {
|
|
11958
12283
|
activityOverviewList: [{ type: i0.ViewChildren, args: [PersonalActivityOverviewComponent,] }],
|
|
11959
12284
|
showClass: [{ type: i0.HostBinding, args: ["class.co-component-activity-list",] }],
|
|
@@ -11965,19 +12290,12 @@
|
|
|
11965
12290
|
userGroupId: [{ type: i0.Input }],
|
|
11966
12291
|
relationId: [{ type: i0.Input }],
|
|
11967
12292
|
componentActivitiesMethod: [{ type: i0.Input }],
|
|
11968
|
-
fireGenericTriggerOperation: [{ type: i0.Input }],
|
|
11969
|
-
fireTriggerOperation: [{ type: i0.Input }],
|
|
11970
|
-
canFireTriggerOperation: [{ type: i0.Input }],
|
|
11971
12293
|
setHasPausedNotificationsForWorkflowProcessOperation: [{ type: i0.Input }],
|
|
11972
|
-
lockTaskOperation: [{ type: i0.Input }],
|
|
11973
|
-
deleteActivityOperation: [{ type: i0.Input }],
|
|
11974
|
-
upsertActivityOperation: [{ type: i0.Input }],
|
|
11975
12294
|
openLinkClick: [{ type: i0.Output }],
|
|
11976
12295
|
amountActivityChanged: [{ type: i0.Output }],
|
|
11977
12296
|
linkClicked: [{ type: i0.Output }],
|
|
11978
12297
|
formCreated: [{ type: i0.Output }],
|
|
11979
|
-
|
|
11980
|
-
triggerFired: [{ type: i0.Output }],
|
|
12298
|
+
refreshRequested: [{ type: i0.Output }],
|
|
11981
12299
|
showUsergroupActivitiesChanged: [{ type: i0.Output }],
|
|
11982
12300
|
activitiesList: [{ type: i0.Input }]
|
|
11983
12301
|
};
|
|
@@ -12009,11 +12327,13 @@
|
|
|
12009
12327
|
|
|
12010
12328
|
var ComponentActivityOverviewComponent = /** @class */ (function (_super) {
|
|
12011
12329
|
__extends(ComponentActivityOverviewComponent, _super);
|
|
12012
|
-
function ComponentActivityOverviewComponent(iconCacheService, dialogService, dictionaryService
|
|
12013
|
-
|
|
12330
|
+
function ComponentActivityOverviewComponent(iconCacheService, dialogService, dictionaryService, sharedService
|
|
12331
|
+
/*public router: Router*/ ) {
|
|
12332
|
+
var _this = _super.call(this, dialogService, dictionaryService, sharedService /*router*/) || this;
|
|
12014
12333
|
_this.iconCacheService = iconCacheService;
|
|
12015
12334
|
_this.dialogService = dialogService;
|
|
12016
12335
|
_this.dictionaryService = dictionaryService;
|
|
12336
|
+
_this.sharedService = sharedService;
|
|
12017
12337
|
_this.Icon = exports["ɵbu"];
|
|
12018
12338
|
return _this;
|
|
12019
12339
|
}
|
|
@@ -12025,7 +12345,7 @@
|
|
|
12025
12345
|
ComponentActivityOverviewComponent.decorators = [
|
|
12026
12346
|
{ type: i0.Component, args: [{
|
|
12027
12347
|
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
|
|
12348
|
+
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
12349
|
/* providers: [
|
|
12030
12350
|
{provide: BaseModuleScreenConfigService, useExisting: ScreenConfigurationMockService}
|
|
12031
12351
|
],*/
|
|
@@ -12048,21 +12368,21 @@
|
|
|
12048
12368
|
ComponentActivityOverviewComponent.ctorParameters = function () { return [
|
|
12049
12369
|
{ type: IconCacheService },
|
|
12050
12370
|
{ type: corecomponents_v12.CoreDialogService },
|
|
12051
|
-
{ type: DictionaryService }
|
|
12371
|
+
{ type: DictionaryService },
|
|
12372
|
+
{ type: SharedService }
|
|
12052
12373
|
]; };
|
|
12053
12374
|
ComponentActivityOverviewComponent.propDecorators = {
|
|
12054
12375
|
showClass: [{ type: i0.HostBinding, args: ["class.co-component-activity-overview",] }]
|
|
12055
12376
|
};
|
|
12056
12377
|
|
|
12057
12378
|
var BaseActivitySummaryComponent = /** @class */ (function () {
|
|
12058
|
-
function BaseActivitySummaryComponent(dictionaryService, dialogService) {
|
|
12379
|
+
function BaseActivitySummaryComponent(dictionaryService, dialogService, _sharedService) {
|
|
12059
12380
|
this.dictionaryService = dictionaryService;
|
|
12060
12381
|
this.dialogService = dialogService;
|
|
12382
|
+
this._sharedService = _sharedService;
|
|
12061
12383
|
this.expanded = false;
|
|
12062
12384
|
this.noBorder = false;
|
|
12063
12385
|
this.readonly = false;
|
|
12064
|
-
this.canFireTriggerOperation = OperationWithAlwaysSuccessCallback;
|
|
12065
|
-
this.fireTriggerOperation = OperationWithValidationCallback;
|
|
12066
12386
|
this.prepareWorkflowOperation = OperationWithAlwaysSuccessCallback;
|
|
12067
12387
|
this.loadTaskOperation = OperationWithAlwaysSuccessCallback;
|
|
12068
12388
|
this.activityChange = new i0.EventEmitter();
|
|
@@ -12124,37 +12444,35 @@
|
|
|
12124
12444
|
if (this.readonly) {
|
|
12125
12445
|
return [2 /*return*/];
|
|
12126
12446
|
}
|
|
12127
|
-
if (
|
|
12128
|
-
|
|
12129
|
-
|
|
12130
|
-
|
|
12131
|
-
|
|
12132
|
-
|
|
12133
|
-
|
|
12134
|
-
return [2 /*return*/];
|
|
12447
|
+
if (trigger.toClosedState) {
|
|
12448
|
+
canFire = this._sharedService.canFireTrigger(this.editActivity, this.editActivity.task);
|
|
12449
|
+
if (!canFire) {
|
|
12450
|
+
this.triggerToFireOnSave = trigger;
|
|
12451
|
+
this.showWorkLog.next();
|
|
12452
|
+
return [2 /*return*/];
|
|
12453
|
+
}
|
|
12135
12454
|
}
|
|
12136
|
-
|
|
12137
|
-
case
|
|
12138
|
-
case 3:
|
|
12455
|
+
return [4 /*yield*/, this._sharedService.fireTrigger(this.workFlow.workflowId, this.workFlow.sequence, trigger.triggerId)];
|
|
12456
|
+
case 1:
|
|
12139
12457
|
result = _a.sent();
|
|
12140
|
-
if (!result.success) return [3 /*break*/,
|
|
12458
|
+
if (!result.success) return [3 /*break*/, 4];
|
|
12141
12459
|
return [4 /*yield*/, this.updateActivityTask(this.editActivity.task)];
|
|
12142
|
-
case
|
|
12460
|
+
case 2:
|
|
12143
12461
|
_a.sent();
|
|
12144
12462
|
return [4 /*yield*/, this.prepareWorkflow()];
|
|
12145
|
-
case
|
|
12463
|
+
case 3:
|
|
12146
12464
|
_a.sent();
|
|
12147
12465
|
this.triggerFired.emit(this.workFlow);
|
|
12148
|
-
return [3 /*break*/,
|
|
12149
|
-
case
|
|
12466
|
+
return [3 /*break*/, 5];
|
|
12467
|
+
case 4:
|
|
12150
12468
|
messages = [];
|
|
12151
12469
|
len = result.messages.length;
|
|
12152
12470
|
for (i = 0; i < len; i++) {
|
|
12153
12471
|
messages.push(this.dictionaryService.get(result.messages[i].message.toUpperCase()));
|
|
12154
12472
|
}
|
|
12155
12473
|
this.dialogService.showError(messages.toString());
|
|
12156
|
-
_a.label =
|
|
12157
|
-
case
|
|
12474
|
+
_a.label = 5;
|
|
12475
|
+
case 5: return [2 /*return*/];
|
|
12158
12476
|
}
|
|
12159
12477
|
});
|
|
12160
12478
|
});
|
|
@@ -12204,7 +12522,8 @@
|
|
|
12204
12522
|
];
|
|
12205
12523
|
BaseActivitySummaryComponent.ctorParameters = function () { return [
|
|
12206
12524
|
{ type: DictionaryService },
|
|
12207
|
-
{ type: corecomponents_v12.CoreDialogService }
|
|
12525
|
+
{ type: corecomponents_v12.CoreDialogService },
|
|
12526
|
+
{ type: SharedService }
|
|
12208
12527
|
]; };
|
|
12209
12528
|
BaseActivitySummaryComponent.propDecorators = {
|
|
12210
12529
|
activity: [{ type: i0.Input }],
|
|
@@ -12215,8 +12534,6 @@
|
|
|
12215
12534
|
expanded: [{ type: i0.Input }],
|
|
12216
12535
|
noBorder: [{ type: i0.HostBinding, args: ["class.no-border",] }, { type: i0.Input }],
|
|
12217
12536
|
readonly: [{ type: i0.Input }],
|
|
12218
|
-
canFireTriggerOperation: [{ type: i0.Input }],
|
|
12219
|
-
fireTriggerOperation: [{ type: i0.Input }],
|
|
12220
12537
|
prepareWorkflowOperation: [{ type: i0.Input }],
|
|
12221
12538
|
loadTaskOperation: [{ type: i0.Input }],
|
|
12222
12539
|
triggerToFireOnSave: [{ type: i0.Input }],
|
|
@@ -12231,11 +12548,12 @@
|
|
|
12231
12548
|
|
|
12232
12549
|
var TaskDetailsComponent = /** @class */ (function (_super) {
|
|
12233
12550
|
__extends(TaskDetailsComponent, _super);
|
|
12234
|
-
function TaskDetailsComponent(dictionaryService, dialogService, iconCacheService) {
|
|
12235
|
-
var _this = _super.call(this, dictionaryService, dialogService) || this;
|
|
12551
|
+
function TaskDetailsComponent(dictionaryService, dialogService, iconCacheService, sharedService) {
|
|
12552
|
+
var _this = _super.call(this, dictionaryService, dialogService, sharedService) || this;
|
|
12236
12553
|
_this.dictionaryService = dictionaryService;
|
|
12237
12554
|
_this.dialogService = dialogService;
|
|
12238
12555
|
_this.iconCacheService = iconCacheService;
|
|
12556
|
+
_this.sharedService = sharedService;
|
|
12239
12557
|
_this.Icon = exports["ɵbu"];
|
|
12240
12558
|
_this.showStatusDropdown = false;
|
|
12241
12559
|
return _this;
|
|
@@ -12272,7 +12590,8 @@
|
|
|
12272
12590
|
TaskDetailsComponent.ctorParameters = function () { return [
|
|
12273
12591
|
{ type: DictionaryService },
|
|
12274
12592
|
{ type: corecomponents_v12.CoreDialogService },
|
|
12275
|
-
{ type: IconCacheService }
|
|
12593
|
+
{ type: IconCacheService },
|
|
12594
|
+
{ type: SharedService }
|
|
12276
12595
|
]; };
|
|
12277
12596
|
TaskDetailsComponent.propDecorators = {
|
|
12278
12597
|
activity: [{ type: i0.Input }],
|
|
@@ -12412,11 +12731,12 @@
|
|
|
12412
12731
|
|
|
12413
12732
|
var StatusSummaryBlockComponent = /** @class */ (function (_super) {
|
|
12414
12733
|
__extends(StatusSummaryBlockComponent, _super);
|
|
12415
|
-
function StatusSummaryBlockComponent(dictionaryService, dialogService, iconService) {
|
|
12416
|
-
var _this = _super.call(this, dictionaryService, dialogService) || this;
|
|
12734
|
+
function StatusSummaryBlockComponent(dictionaryService, dialogService, iconService, sharedService) {
|
|
12735
|
+
var _this = _super.call(this, dictionaryService, dialogService, sharedService) || this;
|
|
12417
12736
|
_this.dictionaryService = dictionaryService;
|
|
12418
12737
|
_this.dialogService = dialogService;
|
|
12419
12738
|
_this.iconService = iconService;
|
|
12739
|
+
_this.sharedService = sharedService;
|
|
12420
12740
|
_this.Icon = exports["ɵbu"];
|
|
12421
12741
|
return _this;
|
|
12422
12742
|
}
|
|
@@ -12450,7 +12770,8 @@
|
|
|
12450
12770
|
StatusSummaryBlockComponent.ctorParameters = function () { return [
|
|
12451
12771
|
{ type: DictionaryService },
|
|
12452
12772
|
{ type: corecomponents_v12.CoreDialogService },
|
|
12453
|
-
{ type: IconCacheService }
|
|
12773
|
+
{ type: IconCacheService },
|
|
12774
|
+
{ type: SharedService }
|
|
12454
12775
|
]; };
|
|
12455
12776
|
StatusSummaryBlockComponent.propDecorators = {
|
|
12456
12777
|
showClass: [{ type: i0.HostBinding, args: ["class.co-status-summary-block",] }]
|
|
@@ -12482,7 +12803,7 @@
|
|
|
12482
12803
|
var CreationSummaryBlockComponent = /** @class */ (function (_super) {
|
|
12483
12804
|
__extends(CreationSummaryBlockComponent, _super);
|
|
12484
12805
|
function CreationSummaryBlockComponent(dictionaryService, dialogService, sharedService, locale) {
|
|
12485
|
-
var _this = _super.call(this, dictionaryService, dialogService) || this;
|
|
12806
|
+
var _this = _super.call(this, dictionaryService, dialogService, sharedService) || this;
|
|
12486
12807
|
_this.dictionaryService = dictionaryService;
|
|
12487
12808
|
_this.dialogService = dialogService;
|
|
12488
12809
|
_this.sharedService = sharedService;
|
|
@@ -12585,11 +12906,11 @@
|
|
|
12585
12906
|
})(RelationType || (RelationType = {}));
|
|
12586
12907
|
var ExecutiveSummaryBlockComponent = /** @class */ (function (_super) {
|
|
12587
12908
|
__extends(ExecutiveSummaryBlockComponent, _super);
|
|
12588
|
-
function ExecutiveSummaryBlockComponent(dictionaryService, dialogService,
|
|
12589
|
-
var _this = _super.call(this, dictionaryService, dialogService) || this;
|
|
12909
|
+
function ExecutiveSummaryBlockComponent(dictionaryService, dialogService, sharedService) {
|
|
12910
|
+
var _this = _super.call(this, dictionaryService, dialogService, sharedService) || this;
|
|
12590
12911
|
_this.dictionaryService = dictionaryService;
|
|
12591
12912
|
_this.dialogService = dialogService;
|
|
12592
|
-
_this.
|
|
12913
|
+
_this.sharedService = sharedService;
|
|
12593
12914
|
_this.RelationType = RelationType;
|
|
12594
12915
|
_this.Icon = exports["ɵbu"];
|
|
12595
12916
|
_this._textSearchParams = new relationRequest.RelationRequest();
|
|
@@ -12604,7 +12925,7 @@
|
|
|
12604
12925
|
var _this = this;
|
|
12605
12926
|
return __generator(this, function (_a) {
|
|
12606
12927
|
this._textSearchParams.relationTypeList = [relationKind_enum.RelationKind.Personnel];
|
|
12607
|
-
this.
|
|
12928
|
+
this.sharedService.getRelationListObjects(this._textSearchParams).then(function (result) {
|
|
12608
12929
|
_this.personnel = result;
|
|
12609
12930
|
});
|
|
12610
12931
|
return [2 /*return*/];
|
|
@@ -12659,7 +12980,7 @@
|
|
|
12659
12980
|
function NotificationSummaryBlockComponent(boFactory,
|
|
12660
12981
|
//public activityService: ActivityService,
|
|
12661
12982
|
dictionaryService, dialogService, sharedService) {
|
|
12662
|
-
var _this = _super.call(this, dictionaryService, dialogService) || this;
|
|
12983
|
+
var _this = _super.call(this, dictionaryService, dialogService, sharedService) || this;
|
|
12663
12984
|
_this.boFactory = boFactory;
|
|
12664
12985
|
_this.dictionaryService = dictionaryService;
|
|
12665
12986
|
_this.dialogService = dialogService;
|
|
@@ -12752,7 +13073,11 @@
|
|
|
12752
13073
|
StatusSummaryBlockModule,
|
|
12753
13074
|
CreationSummaryBlockModule,
|
|
12754
13075
|
NotificationSummaryBlockModule,
|
|
12755
|
-
ActivityListModule
|
|
13076
|
+
ActivityListModule,
|
|
13077
|
+
SimpleTagsModule,
|
|
13078
|
+
corecomponents_v12.ButtonModule,
|
|
13079
|
+
common.CommonModule,
|
|
13080
|
+
SimpleTagsFormModule
|
|
12756
13081
|
],
|
|
12757
13082
|
declarations: [
|
|
12758
13083
|
ModifyTaskFormComponent
|
|
@@ -13667,6 +13992,131 @@
|
|
|
13667
13992
|
},] }
|
|
13668
13993
|
];
|
|
13669
13994
|
|
|
13995
|
+
var WorkflowInfoTilesComponent = /** @class */ (function () {
|
|
13996
|
+
function WorkflowInfoTilesComponent(iconCacheService, sharedService) {
|
|
13997
|
+
this.iconCacheService = iconCacheService;
|
|
13998
|
+
this.sharedService = sharedService;
|
|
13999
|
+
this.Icon = exports["ɵbu"];
|
|
14000
|
+
this.icons = exports["ɵbu"];
|
|
14001
|
+
this.workflowProcessInfoPerStatusClicked = new i0.EventEmitter();
|
|
14002
|
+
}
|
|
14003
|
+
Object.defineProperty(WorkflowInfoTilesComponent.prototype, "workflowCategory", {
|
|
14004
|
+
set: function (value) {
|
|
14005
|
+
this._workflowCategory = value;
|
|
14006
|
+
this.getWorkflowProcessInfoPerStatusCollection();
|
|
14007
|
+
},
|
|
14008
|
+
enumerable: false,
|
|
14009
|
+
configurable: true
|
|
14010
|
+
});
|
|
14011
|
+
WorkflowInfoTilesComponent.prototype.showClass = function () {
|
|
14012
|
+
return true;
|
|
14013
|
+
};
|
|
14014
|
+
WorkflowInfoTilesComponent.prototype.ngOnInit = function () {
|
|
14015
|
+
this.getWorkflowProcessInfoPerStatusCollection();
|
|
14016
|
+
};
|
|
14017
|
+
WorkflowInfoTilesComponent.prototype.workflowProcessInfoPerStatusClickedHandler = function (status) {
|
|
14018
|
+
this.workflowProcessInfoPerStatusClicked.emit(status.statusName);
|
|
14019
|
+
};
|
|
14020
|
+
WorkflowInfoTilesComponent.prototype.getWorkflowProcessInfoPerStatusCollection = function () {
|
|
14021
|
+
var _this = this;
|
|
14022
|
+
if (this._workflowCategory) {
|
|
14023
|
+
this.sharedService.getWorkflowProcessInfoPerStatus(this._workflowCategory).then(function (result) {
|
|
14024
|
+
_this.WorkflowProcessInfoPerStatusCollection = result;
|
|
14025
|
+
});
|
|
14026
|
+
}
|
|
14027
|
+
};
|
|
14028
|
+
return WorkflowInfoTilesComponent;
|
|
14029
|
+
}());
|
|
14030
|
+
WorkflowInfoTilesComponent.decorators = [
|
|
14031
|
+
{ type: i0.Component, args: [{
|
|
14032
|
+
selector: "co-workflow-info-tiles",
|
|
14033
|
+
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 ",
|
|
14034
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
14035
|
+
},] }
|
|
14036
|
+
];
|
|
14037
|
+
WorkflowInfoTilesComponent.ctorParameters = function () { return [
|
|
14038
|
+
{ type: IconCacheService },
|
|
14039
|
+
{ type: SharedService }
|
|
14040
|
+
]; };
|
|
14041
|
+
WorkflowInfoTilesComponent.propDecorators = {
|
|
14042
|
+
workflowCategory: [{ type: i0.Input }],
|
|
14043
|
+
workflowProcessInfoPerStatusClicked: [{ type: i0.Output }],
|
|
14044
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-workflow-info-tiles",] }]
|
|
14045
|
+
};
|
|
14046
|
+
|
|
14047
|
+
var WorkflowInfoTileComponent = /** @class */ (function () {
|
|
14048
|
+
function WorkflowInfoTileComponent(iconCacheService, colorService) {
|
|
14049
|
+
this.iconCacheService = iconCacheService;
|
|
14050
|
+
this.colorService = colorService;
|
|
14051
|
+
this.Icon = exports["ɵbu"];
|
|
14052
|
+
}
|
|
14053
|
+
WorkflowInfoTileComponent.prototype.showClass = function () {
|
|
14054
|
+
return true;
|
|
14055
|
+
};
|
|
14056
|
+
WorkflowInfoTileComponent.prototype.ngOnInit = function () {
|
|
14057
|
+
this.backgroundColor = this.colorService.GetRandomColorWithSettings([0, 360], [90, 100], [40, 95], [1, 1]);
|
|
14058
|
+
};
|
|
14059
|
+
return WorkflowInfoTileComponent;
|
|
14060
|
+
}());
|
|
14061
|
+
WorkflowInfoTileComponent.decorators = [
|
|
14062
|
+
{ type: i0.Component, args: [{
|
|
14063
|
+
selector: "co-workflow-info-tile",
|
|
14064
|
+
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 ",
|
|
14065
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
14066
|
+
},] }
|
|
14067
|
+
];
|
|
14068
|
+
WorkflowInfoTileComponent.ctorParameters = function () { return [
|
|
14069
|
+
{ type: IconCacheService },
|
|
14070
|
+
{ type: corecomponents_v12.ColorSequenceService }
|
|
14071
|
+
]; };
|
|
14072
|
+
WorkflowInfoTileComponent.propDecorators = {
|
|
14073
|
+
workflowProcessInfoPerStatus: [{ type: i0.Input }],
|
|
14074
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-workflow-info-tile",] }],
|
|
14075
|
+
backgroundColor: [{ type: i0.HostBinding, args: ["style.background-color",] }]
|
|
14076
|
+
};
|
|
14077
|
+
|
|
14078
|
+
var WorkflowInfoTileModule = /** @class */ (function () {
|
|
14079
|
+
function WorkflowInfoTileModule() {
|
|
14080
|
+
}
|
|
14081
|
+
return WorkflowInfoTileModule;
|
|
14082
|
+
}());
|
|
14083
|
+
WorkflowInfoTileModule.decorators = [
|
|
14084
|
+
{ type: i0.NgModule, args: [{
|
|
14085
|
+
imports: [
|
|
14086
|
+
LocalizationModule,
|
|
14087
|
+
corecomponents_v12.IconModule
|
|
14088
|
+
],
|
|
14089
|
+
declarations: [
|
|
14090
|
+
WorkflowInfoTileComponent
|
|
14091
|
+
],
|
|
14092
|
+
exports: [
|
|
14093
|
+
WorkflowInfoTileComponent
|
|
14094
|
+
],
|
|
14095
|
+
providers: []
|
|
14096
|
+
},] }
|
|
14097
|
+
];
|
|
14098
|
+
|
|
14099
|
+
var WorkflowInfoTilesModule = /** @class */ (function () {
|
|
14100
|
+
function WorkflowInfoTilesModule() {
|
|
14101
|
+
}
|
|
14102
|
+
return WorkflowInfoTilesModule;
|
|
14103
|
+
}());
|
|
14104
|
+
WorkflowInfoTilesModule.decorators = [
|
|
14105
|
+
{ type: i0.NgModule, args: [{
|
|
14106
|
+
imports: [
|
|
14107
|
+
WorkflowInfoTileModule,
|
|
14108
|
+
common.CommonModule
|
|
14109
|
+
],
|
|
14110
|
+
declarations: [
|
|
14111
|
+
WorkflowInfoTilesComponent
|
|
14112
|
+
],
|
|
14113
|
+
exports: [
|
|
14114
|
+
WorkflowInfoTilesComponent
|
|
14115
|
+
],
|
|
14116
|
+
providers: []
|
|
14117
|
+
},] }
|
|
14118
|
+
];
|
|
14119
|
+
|
|
13670
14120
|
/*
|
|
13671
14121
|
* Public API Surface of sharedcomponents
|
|
13672
14122
|
*/
|
|
@@ -13697,12 +14147,16 @@
|
|
|
13697
14147
|
exports.SendMethodDialogModule = SendMethodDialogModule;
|
|
13698
14148
|
exports.SharedService = SharedService;
|
|
13699
14149
|
exports.SimpleTagsComponent = SimpleTagsComponent;
|
|
14150
|
+
exports.SimpleTagsFormComponent = SimpleTagsFormComponent;
|
|
14151
|
+
exports.SimpleTagsFormModule = SimpleTagsFormModule;
|
|
13700
14152
|
exports.SimpleTagsModule = SimpleTagsModule;
|
|
13701
14153
|
exports.StatusbarComponent = StatusbarComponent;
|
|
13702
14154
|
exports.StatusbarModule = StatusbarModule;
|
|
13703
14155
|
exports.StockComponent = StockComponent;
|
|
13704
14156
|
exports.StockModule = StockModule;
|
|
13705
14157
|
exports.Translation = Translation;
|
|
14158
|
+
exports.WorkflowInfoTilesComponent = WorkflowInfoTilesComponent;
|
|
14159
|
+
exports.WorkflowInfoTilesModule = WorkflowInfoTilesModule;
|
|
13706
14160
|
exports.sendMethodsWithIcon = sendMethodsWithIcon;
|
|
13707
14161
|
exports["ɵa"] = SignatureComponent;
|
|
13708
14162
|
exports["ɵb"] = SignaturesComponent;
|
|
@@ -13805,6 +14259,8 @@
|
|
|
13805
14259
|
exports["ɵer"] = PeriodFilterComponent;
|
|
13806
14260
|
exports["ɵes"] = PeriodFilterPopupComponent;
|
|
13807
14261
|
exports["ɵet"] = ActivityListHeaderComponent;
|
|
14262
|
+
exports["ɵeu"] = WorkflowInfoTileModule;
|
|
14263
|
+
exports["ɵev"] = WorkflowInfoTileComponent;
|
|
13808
14264
|
exports["ɵf"] = DictionaryService;
|
|
13809
14265
|
exports["ɵg"] = LocalizeService;
|
|
13810
14266
|
exports["ɵh"] = IconCacheService;
|