@colijnit/sharedcomponents 1.0.47 → 1.0.48
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/colijnit-sharedcomponents.umd.js +228 -5
- package/bundles/colijnit-sharedcomponents.umd.js.map +1 -1
- package/colijnit-sharedcomponents.metadata.json +1 -1
- package/esm2015/lib/components/simple-tags/simple-tags.component.js +231 -0
- package/esm2015/lib/components/simple-tags/simple-tags.module.js +26 -0
- package/esm2015/lib/enum/icon.enum.js +5 -1
- package/esm2015/lib/model/icon-svg.js +6 -2
- package/esm2015/lib/service/shared-connector.service.js +32 -1
- package/esm2015/lib/service/shared.service.js +11 -1
- package/esm2015/public-api.js +3 -1
- package/fesm2015/colijnit-sharedcomponents.js +301 -3
- package/fesm2015/colijnit-sharedcomponents.js.map +1 -1
- package/lib/components/screen-config-generator/style/_layout.scss +10 -4
- package/lib/components/simple-tags/simple-tags.component.d.ts +31 -0
- package/lib/components/simple-tags/simple-tags.module.d.ts +2 -0
- package/lib/components/simple-tags/style/_layout.scss +232 -0
- package/lib/components/simple-tags/style/_material-definition.scss +19 -0
- package/lib/components/simple-tags/style/_theme.scss +4 -0
- package/lib/components/simple-tags/style/material.scss +4 -0
- package/lib/enum/icon.enum.d.ts +5 -1
- package/lib/service/shared-connector.service.d.ts +4 -0
- package/lib/service/shared.service.d.ts +4 -0
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('@angular/animations'), require('pdf-lib'), require('pdfjs-dist/legacy/build/pdf'), require('pdfjs-dist/build/pdf.worker.entry'), require('@angular/common'), require('signature_pad'), require('@colijnit/articleapi/build/articles'), require('@colijnit/sharedapi/build/sharedapi'), require('@colijnit/articleapi/build/model/article-stock.bo'), require('@colijnit/articleapi/build/model/stock-history.bo'), require('@colijnit/articleapi/build/model/article-details.bo'), require('@colijnit/articleapi/build/model/stock-status.bo'), require('@colijnit/articleapi/build/model/stock-management-warehouses.bo'), require('@colijnit/articleapi/build/model/stock-location.bo'), require('@colijnit/articleapi/build/model/article-transaction.bo'), require('rxjs'), require('@colijnit/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/sharedapi/build/model/print-stock-stickers'), require('@colijnit/articleapi/build/model/article-stock'), require('@colijnit/corecomponents_v12'), require('@angular/platform-browser'), 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')) :
|
|
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/mainapi', '@colijnit/mainapi/build/model/printer.bo', '@colijnit/mainapi/build/model/send-method.bo', '@colijnit/ioneconnector/build/service/business-object-factory', '@colijnit/sharedapi/build/model/print-stock-stickers', '@colijnit/articleapi/build/model/article-stock', '@colijnit/corecomponents_v12', '@angular/platform-browser', '@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'], 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.mainapi, global.printer_bo, global.sendMethod_bo, global.businessObjectFactory, global.printStockStickers, global.articleStock, global.corecomponents_v12, global.ng.platformBrowser, global.articleStockManagement, global.articleTransaction, global.printPriceStickers_bo, global.reportingDocumentEmailSignDocBaseRequest, global.reportingDocumentPdfBaseRequest, global.reportingDocumentPrintSignDocBaseRequest, global.sendMethodType_enum, global.getStockHistoryRequest, global.chart_js, global.moment));
|
|
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, mainapi, printer_bo, sendMethod_bo, businessObjectFactory, printStockStickers, articleStock, corecomponents_v12, i1, articleStockManagement, articleTransaction, printPriceStickers_bo, reportingDocumentEmailSignDocBaseRequest, reportingDocumentPdfBaseRequest, reportingDocumentPrintSignDocBaseRequest, sendMethodType_enum, getStockHistoryRequest, chart_js, moment) { 'use strict';
|
|
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/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/sharedapi/build/model/print-stock-stickers'), require('@colijnit/articleapi/build/model/article-stock'), require('@colijnit/corecomponents_v12'), require('@angular/platform-browser'), 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('@angular/cdk/drag-drop')) :
|
|
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/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/sharedapi/build/model/print-stock-stickers', '@colijnit/articleapi/build/model/article-stock', '@colijnit/corecomponents_v12', '@angular/platform-browser', '@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', '@angular/cdk/drag-drop'], 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.mainapi, global.printer_bo, global.sendMethod_bo, global.businessObjectFactory, global.tagTreeItem_bo, global.printStockStickers, global.articleStock, global.corecomponents_v12, global.ng.platformBrowser, global.articleStockManagement, global.articleTransaction, global.printPriceStickers_bo, global.reportingDocumentEmailSignDocBaseRequest, global.reportingDocumentPdfBaseRequest, global.reportingDocumentPrintSignDocBaseRequest, global.sendMethodType_enum, global.getStockHistoryRequest, global.chart_js, global.moment, global.ng.cdk.dragDrop));
|
|
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, mainapi, printer_bo, sendMethod_bo, businessObjectFactory, tagTreeItem_bo, printStockStickers, articleStock, corecomponents_v12, i1, articleStockManagement, articleTransaction, printPriceStickers_bo, reportingDocumentEmailSignDocBaseRequest, reportingDocumentPdfBaseRequest, reportingDocumentPrintSignDocBaseRequest, sendMethodType_enum, getStockHistoryRequest, chart_js, moment, dragDrop) { 'use strict';
|
|
6
6
|
|
|
7
7
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
8
8
|
|
|
@@ -1100,6 +1100,43 @@
|
|
|
1100
1100
|
});
|
|
1101
1101
|
});
|
|
1102
1102
|
};
|
|
1103
|
+
SharedConnectorService.prototype.getTagsFullTree = function (category, includeTags) {
|
|
1104
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1105
|
+
var _this = this;
|
|
1106
|
+
return __generator(this, function (_a) {
|
|
1107
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1108
|
+
return _this.mainConnector.getTagsFullTree(category, includeTags).then(function (result) {
|
|
1109
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1110
|
+
if (result.resultObjects) {
|
|
1111
|
+
resolve(_this._boFactory.makeBOArrayFromRawBackendDataArray(tagTreeItem_bo.TagTreeItem, result.resultObjects));
|
|
1112
|
+
}
|
|
1113
|
+
}
|
|
1114
|
+
else {
|
|
1115
|
+
reject(result.validationMessagesAsString);
|
|
1116
|
+
}
|
|
1117
|
+
});
|
|
1118
|
+
})];
|
|
1119
|
+
});
|
|
1120
|
+
});
|
|
1121
|
+
};
|
|
1122
|
+
SharedConnectorService.prototype.getDocumentContent = function (id, thumbnail) {
|
|
1123
|
+
if (thumbnail === void 0) { thumbnail = true; }
|
|
1124
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
1125
|
+
var _this = this;
|
|
1126
|
+
return __generator(this, function (_a) {
|
|
1127
|
+
return [2 /*return*/, new Promise(function (resolve, reject) {
|
|
1128
|
+
return _this.mainConnector.getDocumentContent(id, thumbnail).then(function (result) {
|
|
1129
|
+
if (result.validationResult && result.validationResult.success) {
|
|
1130
|
+
resolve(result.resultObject.documentContent);
|
|
1131
|
+
}
|
|
1132
|
+
else {
|
|
1133
|
+
reject(result.validationMessagesAsString);
|
|
1134
|
+
}
|
|
1135
|
+
});
|
|
1136
|
+
})];
|
|
1137
|
+
});
|
|
1138
|
+
});
|
|
1139
|
+
};
|
|
1103
1140
|
// public async getPrintStockStickers(request: PrintStockStickers): Promise<PrintStockStickers> {
|
|
1104
1141
|
// return new Promise((resolve: Function, reject: Function) => {
|
|
1105
1142
|
// return this.sharedConnector.getPrintStockStickers(request).then((result: DataServiceResponseData) => {
|
|
@@ -1804,6 +1841,7 @@
|
|
|
1804
1841
|
"arrow_point_right": "<svg version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" x=\"0px\" y=\"0px\" viewBox=\"0 0 51 51\" enable-background=\"new 0 0 51 51\"><path fill=\"#484F5F\" d=\"M19.1,14.3l14.7,9.6c0.1,0.1,0.2,0.2,0.2,0.4v2.4c0,0.2-0.1,0.3-0.2,0.4l-14.7,9.6c-0.2,0.2-0.5,0.1-0.7-0.1l-1.4-2.1c-0.2-0.2-0.1-0.5,0.1-0.7l12-7.8c0.3-0.2,0.3-0.6,0-0.8l-12-7.8c-0.2-0.2-0.3-0.5-0.1-0.7l1.4-2.1C18.6,14.2,18.9,14.2,19.1,14.3z\"/></svg>",
|
|
1805
1842
|
"at_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M207.8 20.73c-93.45 18.32-168.7 93.66-187 187.1c-27.64 140.9 68.65 266.2 199.1 285.1c19.01 2.888 36.17-12.26 36.17-31.49l.0001-.6631c0-15.74-11.44-28.88-26.84-31.24c-84.35-12.98-149.2-86.13-149.2-174.2c0-102.9 88.61-185.5 193.4-175.4c91.54 8.869 158.6 91.25 158.6 183.2l0 16.16c0 22.09-17.94 40.05-40 40.05s-40.01-17.96-40.01-40.05v-120.1c0-8.847-7.161-16.02-16.01-16.02l-31.98 .0036c-7.299 0-13.2 4.992-15.12 11.68c-24.85-12.15-54.24-16.38-86.06-5.106c-38.75 13.73-68.12 48.91-73.72 89.64c-9.483 69.01 43.81 128 110.9 128c26.44 0 50.43-9.544 69.59-24.88c24 31.3 65.23 48.69 109.4 37.49C465.2 369.3 496 324.1 495.1 277.2V256.3C495.1 107.1 361.2-9.332 207.8 20.73zM239.1 304.3c-26.47 0-48-21.56-48-48.05s21.53-48.05 48-48.05s48 21.56 48 48.05S266.5 304.3 239.1 304.3z\"/></svg>",
|
|
1806
1843
|
"bring_forward_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path fill=\"#183153\" d=\"M224 464H448C456.8 464 464 456.8 464 448V224C464 215.2 456.8 208 448 208H384V160H448C483.3 160 512 188.7 512 224V448C512 483.3 483.3 512 448 512H224C188.7 512 160 483.3 160 448V384H208V448C208 456.8 215.2 464 224 464zM64 352C28.65 352 0 323.3 0 288V64C0 28.65 28.65 0 64 0H288C323.3 0 352 28.65 352 64V288C352 323.3 323.3 352 288 352H64z\"/></svg>",
|
|
1844
|
+
"check_duotone": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><defs><style>.fa-secondary{opacity:.4}</style></defs><path class=\"fa-primary\" d=\"M438.6 105.4C451.1 117.9 451.1 138.1 438.6 150.6L182.6 406.6C170.1 419.1 149.9 419.1 137.4 406.6L9.372 278.6C-3.124 266.1-3.124 245.9 9.372 233.4C21.87 220.9 42.13 220.9 54.63 233.4L159.1 338.7L393.4 105.4C405.9 92.88 426.1 92.88 438.6 105.4H438.6z\"/></svg>",
|
|
1807
1845
|
"check_round": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M25,10A15,15,0,1,0,40,25,15,15,0,0,0,25,10ZM23,34l-6.24-9.09,2.81-3.59L23,26.45,27.66,16h5.58Z\" fill=\"#484f60\"/></svg>",
|
|
1808
1846
|
"delete_left_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M432.1 208.1L385.9 256L432.1 303C442.3 312.4 442.3 327.6 432.1 336.1C423.6 346.3 408.4 346.3 399 336.1L352 289.9L304.1 336.1C295.6 346.3 280.4 346.3 271 336.1C261.7 327.6 261.7 312.4 271 303L318.1 256L271 208.1C261.7 199.6 261.7 184.4 271 175C280.4 165.7 295.6 165.7 304.1 175L352 222.1L399 175C408.4 165.7 423.6 165.7 432.1 175C442.3 184.4 442.3 199.6 432.1 208.1V208.1zM512 64C547.3 64 576 92.65 576 128V384C576 419.3 547.3 448 512 448H205.3C188.3 448 172 441.3 160 429.3L9.372 278.6C3.371 272.6 0 264.5 0 256C0 247.5 3.372 239.4 9.372 233.4L160 82.75C172 70.74 188.3 64 205.3 64L512 64zM528 128C528 119.2 520.8 112 512 112H205.3C201 112 196.9 113.7 193.9 116.7L54.63 256L193.9 395.3C196.9 398.3 201 400 205.3 400H512C520.8 400 528 392.8 528 384V128z\"/></svg>",
|
|
1809
1847
|
"delivery_truck": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><rect x=\"15.35\" y=\"16.56\" width=\"15.14\" height=\"10.94\" transform=\"translate(-1.83 2.08) rotate(-5)\" fill=\"#484f60\"/><path d=\"M38.5,18.1l-6.9.61L32.41,28l-7.63.67a3.76,3.76,0,0,1,1.43,2.25l7.25-.63A3.83,3.83,0,0,1,41,29.6l1-.1-.52-6Zm.29,5.84-3.91.34a.51.51,0,0,1-.55-.46L34,20.1a.49.49,0,0,1,.45-.54l2.27-.2a.5.5,0,0,1,.48.25l2,3.59A.5.5,0,0,1,38.79,23.94Z\" fill=\"#484f60\"/><path d=\"M19.66,29.09a3.8,3.8,0,0,0-1,2.46l-.74.07-1.82-.94L16,29.41Z\" fill=\"#484f60\"/><path d=\"M34.56,30.62a2.74,2.74,0,1,0,2.49-3A2.73,2.73,0,0,0,34.56,30.62Z\" fill=\"#484f60\"/><path d=\"M19.74,31.91a2.74,2.74,0,1,0,2.49-3A2.74,2.74,0,0,0,19.74,31.91Z\" fill=\"#484f60\"/><rect x=\"7.96\" y=\"17.63\" width=\"5\" height=\"1\" transform=\"translate(-1.54 0.98) rotate(-5)\" fill=\"#484f60\"/><rect x=\"11.02\" y=\"29.71\" width=\"3\" height=\"1\" transform=\"translate(-2.59 1.21) rotate(-5)\" fill=\"#484f60\"/><rect x=\"9.48\" y=\"23.53\" width=\"4\" height=\"1\" transform=\"matrix(1, -0.09, 0.09, 1, -2.05, 1.09)\" fill=\"#484f60\"/></svg>",
|
|
@@ -1815,6 +1853,7 @@
|
|
|
1815
1853
|
"file_pdf_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><path d=\"M320 464C328.8 464 336 456.8 336 448V416H384V448C384 483.3 355.3 512 320 512H64C28.65 512 0 483.3 0 448V416H48V448C48 456.8 55.16 464 64 464H320zM256 160C238.3 160 224 145.7 224 128V48H64C55.16 48 48 55.16 48 64V192H0V64C0 28.65 28.65 0 64 0H229.5C246.5 0 262.7 6.743 274.7 18.75L365.3 109.3C377.3 121.3 384 137.5 384 154.5V192H336V160H256zM88 224C118.9 224 144 249.1 144 280C144 310.9 118.9 336 88 336H80V368C80 376.8 72.84 384 64 384C55.16 384 48 376.8 48 368V240C48 231.2 55.16 224 64 224H88zM112 280C112 266.7 101.3 256 88 256H80V304H88C101.3 304 112 293.3 112 280zM160 240C160 231.2 167.2 224 176 224H200C226.5 224 248 245.5 248 272V336C248 362.5 226.5 384 200 384H176C167.2 384 160 376.8 160 368V240zM192 352H200C208.8 352 216 344.8 216 336V272C216 263.2 208.8 256 200 256H192V352zM336 224C344.8 224 352 231.2 352 240C352 248.8 344.8 256 336 256H304V288H336C344.8 288 352 295.2 352 304C352 312.8 344.8 320 336 320H304V368C304 376.8 296.8 384 288 384C279.2 384 272 376.8 272 368V240C272 231.2 279.2 224 288 224H336z\"/></svg>",
|
|
1816
1854
|
"file_pdf_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><path d=\"M64 0C28.7 0 0 28.7 0 64V448c0 35.3 28.7 64 64 64H320c35.3 0 64-28.7 64-64V160H256c-17.7 0-32-14.3-32-32V0H64zM256 0V128H384L256 0zM64 224H88c30.9 0 56 25.1 56 56s-25.1 56-56 56H80v32c0 8.8-7.2 16-16 16s-16-7.2-16-16V320 240c0-8.8 7.2-16 16-16zm24 80c13.3 0 24-10.7 24-24s-10.7-24-24-24H80v48h8zm72-64c0-8.8 7.2-16 16-16h24c26.5 0 48 21.5 48 48v64c0 26.5-21.5 48-48 48H176c-8.8 0-16-7.2-16-16V240zm32 112h8c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16h-8v96zm96-128h48c8.8 0 16 7.2 16 16s-7.2 16-16 16H304v32h32c8.8 0 16 7.2 16 16s-7.2 16-16 16H304v48c0 8.8-7.2 16-16 16s-16-7.2-16-16V304 240c0-8.8 7.2-16 16-16z\"/></svg>",
|
|
1817
1855
|
"file_signature_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M64 464H320c8.8 0 16-7.2 16-16v-6.7l39.8-9.9c2.8-.7 5.6-1.6 8.2-2.7V448c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V64C0 28.7 28.7 0 64 0H229.5c17 0 33.3 6.7 45.3 18.7l90.5 90.5c12 12 18.7 28.3 18.7 45.3v49.1l-48 48V160H256c-17.7 0-32-14.3-32-32V48H64c-8.8 0-16 7.2-16 16V448c0 8.8 7.2 16 16 16zm96-115l-9.8 32.8c-6.1 20.3-24.8 34.2-46 34.2H96c-8.8 0-16-7.2-16-16s7.2-16 16-16h8.2c7.1 0 13.3-4.6 15.3-11.4l14.9-49.5c3.4-11.3 13.8-19.1 25.6-19.1s22.2 7.7 25.6 19.1l11.6 38.6c7.4-6.2 16.8-9.7 26.8-9.7c15.9 0 30.4 9 37.5 23.2l4.4 8.8h25.6l12-48.2c1.4-5.6 4.3-10.8 8.4-14.9L441.1 191.8l71 71L382.9 391.9c-4.1 4.1-9.2 7-14.9 8.4l-60.1 15c-1.1 .3-2.1 .4-3.2 .5c-.8 .1-1.5 .2-2.3 .2H256c-6.1 0-11.6-3.4-14.3-8.8l-8.8-17.7c-1.7-3.4-5.1-5.5-8.8-5.5s-7.2 2.1-8.8 5.5l-8.8 17.7c-2.9 5.9-9.2 9.4-15.7 8.8s-12.1-5.1-13.9-11.3L160 349zM549.8 139.7l14.4 14.4c15.6 15.6 15.6 40.9 0 56.6l-29.4 29.4-71-71 29.4-29.4c15.6-15.6 40.9-15.6 56.6 0z\"/></svg>",
|
|
1856
|
+
"house_blank_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 576 512\"><path d=\"M303.5 5.7c-9-7.6-22.1-7.6-31.1 0l-264 224c-10.1 8.6-11.3 23.7-2.8 33.8s23.7 11.3 33.8 2.8L64 245.5V432c0 44.2 35.8 80 80 80H432c44.2 0 80-35.8 80-80V245.5l24.5 20.8c10.1 8.6 25.3 7.3 33.8-2.8s7.3-25.3-2.8-33.8l-264-224zM464 204.8V432c0 17.7-14.3 32-32 32H144c-17.7 0-32-14.3-32-32V204.8L288 55.5 464 204.8z\"/></svg>",
|
|
1818
1857
|
"lock": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><g><path d=\"M22.65,11.67H7.35c-2.82,0-3.07,2.29-3.07,5.12v8.09c0,2.83,.25,5.12,3.07,5.12h15.29c2.81,0,3.07-2.29,3.07-5.12v-8.09c0-2.83-.25-5.12-3.07-5.12Zm-12.42,15.82l2.6-6.32c-1-.7-1.65-1.85-1.65-3.15,0-2.12,1.71-3.84,3.82-3.84s3.82,1.73,3.82,3.84c0,1.31-.65,2.46-1.65,3.15l2.6,6.32H10.22Z\" fill=\"#484f60\"/><path d=\"M19.51,6.64c0-3.6-2.02-4.07-4.51-4.07h0c-2.49,0-4.51,.47-4.51,4.07v3h-2.7v-3C7.79,1.62,11.02,0,15,0h0c3.98,0,7.21,1.62,7.21,6.64v3h-2.7v-3Z\" fill=\"#484f60\"/></g></g></svg>",
|
|
1819
1858
|
"message_sms_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M448-.0004H64c-35.25 0-64 28.75-64 63.1v287.1c0 35.25 28.75 63.1 64 63.1h96v83.98c0 9.836 11.02 15.55 19.12 9.7L304 415.1H448c35.25 0 64-28.75 64-63.1V63.1C512 28.75 483.3-.0004 448-.0004zM464 352c0 8.75-7.25 16-16 16h-160l-80 60v-60H64c-8.75 0-16-7.25-16-16V64c0-8.75 7.25-16 16-16h384c8.75 0 16 7.25 16 16V352zM124.4 192.6C113.6 189.5 103.2 187.2 104.2 181.5c.7813-4.5 10.28-6.562 21.5-4.906c4.156 .6562 8.75 2.094 13.09 3.594c8.375 2.906 17.47-1.562 20.34-9.906c2.875-8.344-1.562-17.47-9.906-20.34C143.1 147.8 136.5 145.9 130.6 145c-30.69-4.812-53.94 7.719-58 31.09c-5.656 33.03 26.5 42.47 38.63 46c13.72 3.947 25.62 6.432 24.56 12.34C135 239 125.7 241.1 114.3 239.4C107.9 238.4 100.4 235.4 93.38 232.9c-8.375-2.969-16 1.875-18.97 10.19S77.19 261.1 85.5 264.1C92.81 266.8 101.1 269.8 109.4 271C113.7 271.7 117.9 272 121.1 272c24.28 0 41.94-12.03 45.38-32.13C173.1 206.5 141.4 197.5 124.4 192.6zM396.4 192.6C385.6 189.5 375.2 187.2 376.2 181.5c.7813-4.5 10.31-6.562 21.5-4.906c4.156 .6562 8.75 2.094 13.09 3.594c8.406 2.906 17.47-1.562 20.34-9.906c2.875-8.344-1.562-17.47-9.906-20.34c-6.156-2.125-12.69-4.062-18.59-4.969c-30.75-4.812-53.97 7.719-58 31.09c-5.656 33.03 26.5 42.47 38.63 46c13.72 3.947 25.62 6.432 24.56 12.34c-.7813 4.562-10.12 6.656-21.56 4.938c-6.342-.9883-13.9-3.939-20.88-6.438c-8.375-2.969-16 1.875-18.97 10.19s2.781 17.97 11.09 20.97c7.312 2.656 15.62 5.656 23.88 6.906C385.7 271.7 389.9 272 393.1 272c24.28 0 41.94-12.03 45.38-32.13C445.1 206.5 413.4 197.5 396.4 192.6zM309.1 144.8c-6.469-2.062-13.72 .0625-17.88 5.594L256 197.3L220.8 150.4C216.7 144.9 209.4 142.7 202.9 144.8C196.4 147 192 153.1 192 160v96c0 8.844 7.156 16 16 16S224 264.8 224 256V208l19.19 25.59c6.062 8.062 19.56 8.062 25.62 0L288 208V256c0 8.844 7.156 16 16 16S320 264.8 320 256V160C320 153.1 315.6 147 309.1 144.8z\"/></svg>",
|
|
1820
1859
|
"message_sms_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M0 64C0 28.7 28.7 0 64 0H448c35.3 0 64 28.7 64 64V352c0 35.3-28.7 64-64 64H309.3L185.6 508.8c-4.8 3.6-11.3 4.2-16.8 1.5s-8.8-8.2-8.8-14.3V416H64c-35.3 0-64-28.7-64-64V64zm202.9 80.8C196.4 147 192 153.1 192 160v96c0 8.8 7.2 16 16 16s16-7.2 16-16V208l19.2 25.6c3 4 7.8 6.4 12.8 6.4s9.8-2.4 12.8-6.4L288 208v48c0 8.8 7.2 16 16 16s16-7.2 16-16V160c0-6.9-4.4-13-10.9-15.2s-13.7 .1-17.9 5.6L256 197.3l-35.2-46.9c-4.1-5.5-11.3-7.8-17.9-5.6zm173.1 38c0-1.1 .2-1.6 .4-1.9c.3-.4 .9-1.2 2.4-2c3.1-1.8 8-3 12.9-2.9c6.1 .1 12.9 1.4 20.1 3.4c8.5 2.3 17.3-2.8 19.6-11.3s-2.8-17.3-11.3-19.6c-8.2-2.2-17.9-4.3-27.9-4.4c-9.3-.1-20.4 1.9-29.7 7.4c-9.9 5.9-18.6 16.4-18.5 31.6c.1 14.7 8.8 24 17.7 29.4c7.6 4.6 17.1 7.4 24.3 9.6l1.2 .4c8.5 2.6 14.2 4.5 18 6.9c2.7 1.7 2.7 2.4 2.7 3.1l0 .2c0 1.6-.3 2.3-.6 2.7c-.3 .5-.9 1.2-2.1 2c-2.8 1.7-7.5 2.9-12.8 2.8c-7-.2-13.5-2.4-22.6-5.5l0 0 0 0c-1.5-.5-3.2-1.1-4.9-1.6c-8.4-2.8-17.4 1.7-20.2 10.1s1.7 17.4 10.1 20.2c1.2 .4 2.6 .9 4 1.4l0 0 0 0c8.8 3 20.4 7 32.6 7.4c9.8 .3 21.2-1.6 30.7-7.6c10.2-6.4 18-17.3 17.8-32.3c-.2-14.7-8.5-24.2-17.6-29.9c-8-5-17.9-8-25.2-10.2l-.6-.2c-8.6-2.6-14.4-4.4-18.2-6.8c-1.6-1-2.1-1.6-2.2-1.7c0-.1 0-.2 0-.4zm-272 0c0-1.1 .2-1.6 .4-1.9c.3-.4 .9-1.2 2.4-2c3.1-1.8 8-3 12.9-2.9c6.6 .1 16.7 1.6 23.3 3.4c8.5 2.3 17.3-2.8 19.6-11.3s-2.8-17.3-11.3-19.6c-8.8-2.4-21.6-4.3-31.1-4.4c-9.3-.1-20.4 1.9-29.7 7.4C80.6 157.3 72 167.8 72 183c.1 14.7 8.8 24 17.7 29.4c7.6 4.6 17.1 7.4 24.3 9.6l0 0 1.2 .4c8.5 2.6 14.2 4.5 18 6.9c2.7 1.7 2.7 2.4 2.7 3.1l0 .2c0 1.6-.3 2.3-.6 2.7c-.3 .5-.9 1.2-2.1 2c-2.8 1.7-7.5 2.9-12.8 2.8c-7.2-.2-14.2-2.6-23.7-5.8l0 0 0 0c-1.3-.4-2.7-.9-4.1-1.4c-8.4-2.8-17.4 1.7-20.2 10.1s1.7 17.4 10.1 20.2c1.1 .4 2.4 .8 3.6 1.2l0 0 0 0c9 3.1 20.9 7.2 33.2 7.6c9.8 .3 21.2-1.6 30.7-7.6c10.2-6.4 18-17.3 17.8-32.3c-.2-14.7-8.5-24.2-17.6-29.9c-8-5-17.9-8-25.2-10.2l-.6-.2c-8.6-2.6-14.4-4.4-18.3-6.8c-1.6-1-2.1-1.6-2.2-1.7c0-.1 0-.2 0-.4z\"/></svg>",
|
|
@@ -1823,7 +1862,9 @@
|
|
|
1823
1862
|
"print_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M111.1 48h254.1L400 81.94V160H448V81.94c0-12.73-5.057-24.94-14.06-33.94l-33.94-33.94C391 5.057 378.8 0 366.1 0H111.1C85.49 0 64.01 21.48 64 47.98l.002 82.28c-.002 0 .002 0 0 0L64 160h48.01L111.1 48zM440 192H72C32.3 192 0 224.3 0 264v112c0 13.25 10.75 24 24 24H80V480c0 17.67 14.33 32 32 32h288c17.67 0 32-14.33 32-32v-80h56c13.25 0 24-10.75 24-24v-112C512 224.3 479.7 192 440 192zM384 464H128v-96h256V464zM464 352h-32c0-17.67-14.33-32-32-32h-288c-17.67 0-32 14.33-32 32h-32V264c0-13.23 10.77-24 24-24h368c13.23 0 24 10.77 24 24V352z\"/></svg>",
|
|
1824
1863
|
"print_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 512 512\"><path d=\"M448 192H64C28.65 192 0 220.7 0 256v96c0 17.67 14.33 32 32 32h32v96c0 17.67 14.33 32 32 32h320c17.67 0 32-14.33 32-32v-96h32c17.67 0 32-14.33 32-32V256C512 220.7 483.3 192 448 192zM384 448H128v-96h256V448zM432 296c-13.25 0-24-10.75-24-24c0-13.27 10.75-24 24-24s24 10.73 24 24C456 285.3 445.3 296 432 296zM128 64h229.5L384 90.51V160h64V77.25c0-8.484-3.375-16.62-9.375-22.62l-45.25-45.25C387.4 3.375 379.2 0 370.8 0H96C78.34 0 64 14.33 64 32v128h64V64z\"/></svg>",
|
|
1825
1864
|
"signature_field": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 50 50\"><path d=\"M20.1,25.42a1.1,1.1,0,1,1,1.27,1.45l-3.3,9.07A63.13,63.13,0,0,1,28,28.3l1.26-12-8.26-3-6.77,10A62.4,62.4,0,0,1,17,35.54l3.3-9.07A1.12,1.12,0,0,1,20.1,25.42Z\" fill=\"#484f60\"/><rect x=\"21.62\" y=\"11.43\" width=\"8.79\" height=\"2.34\" transform=\"translate(5.88 -8.14) rotate(20)\" fill=\"#484f60\"/><path d=\"M18.11,37.48c1.44,2.65,4.58,2.94,7.23,2.1,1.41-.44,2.2-1.49,3.44-2.06,2.42-1.1,3.13,1.2,5.36,1.37.42,0,2-.65,1.54-.68-2.55-.19-2.93-3.13-5.51-2.65a4.9,4.9,0,0,0-1.64.71c-.77.49-1.31,1.62-2.07,2l-4.61.56A3.38,3.38,0,0,1,20,37c-.22-.41-2,.28-1.85.5Z\" fill=\"#484f60\"/></svg>",
|
|
1826
|
-
"
|
|
1865
|
+
"tag_regular": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 448 512\"><path d=\"M197.5 32c17 0 33.3 6.7 45.3 18.7l176 176c25 25 25 65.5 0 90.5L285.3 450.7c-25 25-65.5 25-90.5 0l-176-176C6.7 262.7 0 246.5 0 229.5V80C0 53.5 21.5 32 48 32H197.5zM48 229.5c0 4.2 1.7 8.3 4.7 11.3l176 176c6.2 6.2 16.4 6.2 22.6 0L384.8 283.3c6.2-6.2 6.2-16.4 0-22.6l-176-176c-3-3-7.1-4.7-11.3-4.7H48V229.5zM112 112a32 32 0 1 1 0 64 32 32 0 1 1 0-64z\"/></svg>",
|
|
1866
|
+
"xml": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 30 30\"><g ><g><path d=\"M21.42,30.17H3.87c-2.16,0-2.72-.56-2.72-2.72V2.88C1.16,.73,1.72,.17,3.87,.17H15.48l8.66,8.88v3.43h-1.34v-2.88L14.92,1.51H3.87q-1.37,0-1.37,1.37V27.45q0,1.37,1.37,1.37H21.42q1.37,0,1.37-1.37v-2.43h1.34v2.43c0,2.16-.56,2.72-2.72,2.72Z\" fill=\"#484f60\"/><path d=\"M15.2,.84V7.28c0,1.78,.27,2.05,2.04,2.05h6.22L15.2,.84Z\" fill=\"#484f60\"/><path d=\"M9.14,14.27v8.96H28.84V14.27H9.14Zm5.36,7.4l-1.3-2.02-1.3,2.02h-1.42l2-3.05-1.81-2.8h1.38l1.17,1.88,1.15-1.88h1.37l-1.82,2.84,2,3.01h-1.43Zm7.67,0h-1.1v-4.61l-1.16,4.61h-1.14l-1.16-4.61v4.61h-1.1v-5.85h1.77l1.06,3.99,1.05-3.99h1.77v5.85Zm5.33,0h-4.12v-5.81h1.18v4.82h2.94v.99Z\" fill=\"#484f60\"/></g></g></svg>",
|
|
1867
|
+
"x_solid": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 384 512\"><path d=\"M376.6 84.5c11.3-13.6 9.5-33.8-4.1-45.1s-33.8-9.5-45.1 4.1L192 206 56.6 43.5C45.3 29.9 25.1 28.1 11.5 39.4S-3.9 70.9 7.4 84.5L150.3 256 7.4 427.5c-11.3 13.6-9.5 33.8 4.1 45.1s33.8 9.5 45.1-4.1L192 306 327.4 468.5c11.3 13.6 31.5 15.4 45.1 4.1s15.4-31.5 4.1-45.1L233.7 256 376.6 84.5z\"/></svg>"
|
|
1827
1868
|
};
|
|
1828
1869
|
|
|
1829
1870
|
var IconCacheService = /** @class */ (function () {
|
|
@@ -1888,6 +1929,7 @@
|
|
|
1888
1929
|
Icon["ArrowPointRight"] = "arrow_point_right";
|
|
1889
1930
|
Icon["AtSolid"] = "at_solid";
|
|
1890
1931
|
Icon["BringForwardRegular"] = "bring_forward_regular";
|
|
1932
|
+
Icon["CheckDuotone"] = "check_duotone";
|
|
1891
1933
|
Icon["CheckRound"] = "check_round";
|
|
1892
1934
|
Icon["DeleteLeftRegular"] = "delete_left_regular";
|
|
1893
1935
|
Icon["DeliveryTruck"] = "delivery_truck";
|
|
@@ -1899,6 +1941,7 @@
|
|
|
1899
1941
|
Icon["FilePdfRegular"] = "file_pdf_regular";
|
|
1900
1942
|
Icon["FilePdfSolid"] = "file_pdf_solid";
|
|
1901
1943
|
Icon["FileSignatureRegular"] = "file_signature_regular";
|
|
1944
|
+
Icon["HouseBlankRegular"] = "house_blank_regular";
|
|
1902
1945
|
Icon["Lock"] = "lock";
|
|
1903
1946
|
Icon["MessageSmsRegular"] = "message_sms_regular";
|
|
1904
1947
|
Icon["MessageSmsSolid"] = "message_sms_solid";
|
|
@@ -1907,7 +1950,9 @@
|
|
|
1907
1950
|
Icon["PrintRegular"] = "print_regular";
|
|
1908
1951
|
Icon["PrintSolid"] = "print_solid";
|
|
1909
1952
|
Icon["SignatureField"] = "signature_field";
|
|
1953
|
+
Icon["TagRegular"] = "tag_regular";
|
|
1910
1954
|
Icon["Xml"] = "xml";
|
|
1955
|
+
Icon["XSolid"] = "x_solid";
|
|
1911
1956
|
})(exports["ɵbr"] || (exports["ɵbr"] = {}));
|
|
1912
1957
|
|
|
1913
1958
|
var StockInformationGridComponent = /** @class */ (function () {
|
|
@@ -2291,6 +2336,28 @@
|
|
|
2291
2336
|
});
|
|
2292
2337
|
});
|
|
2293
2338
|
};
|
|
2339
|
+
SharedService.prototype.getTagsFullTree = function (category, includeTags) {
|
|
2340
|
+
if (includeTags === void 0) { includeTags = true; }
|
|
2341
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2342
|
+
return __generator(this, function (_a) {
|
|
2343
|
+
switch (_a.label) {
|
|
2344
|
+
case 0: return [4 /*yield*/, this.connector.getTagsFullTree(category, includeTags)];
|
|
2345
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
2346
|
+
}
|
|
2347
|
+
});
|
|
2348
|
+
});
|
|
2349
|
+
};
|
|
2350
|
+
SharedService.prototype.getDocumentContent = function (docId, thumbnail) {
|
|
2351
|
+
if (thumbnail === void 0) { thumbnail = true; }
|
|
2352
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
2353
|
+
return __generator(this, function (_a) {
|
|
2354
|
+
switch (_a.label) {
|
|
2355
|
+
case 0: return [4 /*yield*/, this.connector.getDocumentContent(docId, thumbnail)];
|
|
2356
|
+
case 1: return [2 /*return*/, _a.sent()];
|
|
2357
|
+
}
|
|
2358
|
+
});
|
|
2359
|
+
});
|
|
2360
|
+
};
|
|
2294
2361
|
return SharedService;
|
|
2295
2362
|
}());
|
|
2296
2363
|
SharedService.ɵprov = i0__namespace.ɵɵdefineInjectable({ factory: function SharedService_Factory() { return new SharedService(i0__namespace.ɵɵinject(OptionsService), i0__namespace.ɵɵinject(SharedConnectorService)); }, token: SharedService, providedIn: "root" });
|
|
@@ -6129,6 +6196,160 @@
|
|
|
6129
6196
|
},] }
|
|
6130
6197
|
];
|
|
6131
6198
|
|
|
6199
|
+
var SimpleTagsComponent = /** @class */ (function () {
|
|
6200
|
+
function SimpleTagsComponent(iconCacheService, sharedService) {
|
|
6201
|
+
this.iconCacheService = iconCacheService;
|
|
6202
|
+
this.sharedService = sharedService;
|
|
6203
|
+
this.icon = exports["ɵbr"];
|
|
6204
|
+
this.closeClick = new i0.EventEmitter();
|
|
6205
|
+
this.saveClick = new i0.EventEmitter();
|
|
6206
|
+
this.breadCrumbs = [];
|
|
6207
|
+
this.displayTags = [];
|
|
6208
|
+
this.searchString = '';
|
|
6209
|
+
this._tags = [];
|
|
6210
|
+
this._linkedTags = [];
|
|
6211
|
+
}
|
|
6212
|
+
Object.defineProperty(SimpleTagsComponent.prototype, "tags", {
|
|
6213
|
+
set: function (tags) {
|
|
6214
|
+
this._tags = tags;
|
|
6215
|
+
this.setRootDisplayTags();
|
|
6216
|
+
},
|
|
6217
|
+
enumerable: false,
|
|
6218
|
+
configurable: true
|
|
6219
|
+
});
|
|
6220
|
+
Object.defineProperty(SimpleTagsComponent.prototype, "linkedTags", {
|
|
6221
|
+
get: function () {
|
|
6222
|
+
return this._linkedTags;
|
|
6223
|
+
},
|
|
6224
|
+
set: function (tags) {
|
|
6225
|
+
var _this = this;
|
|
6226
|
+
this._linkedTags = tags;
|
|
6227
|
+
tags.forEach(function (tag) { return _this._loadThumbnail(tag); });
|
|
6228
|
+
},
|
|
6229
|
+
enumerable: false,
|
|
6230
|
+
configurable: true
|
|
6231
|
+
});
|
|
6232
|
+
SimpleTagsComponent.prototype.showClass = function () {
|
|
6233
|
+
return true;
|
|
6234
|
+
};
|
|
6235
|
+
SimpleTagsComponent.prototype.setRootDisplayTags = function () {
|
|
6236
|
+
this.displayTags = this._tags.filter(function (tag) { return tag.treeLevel === 0; });
|
|
6237
|
+
this.breadCrumbs = [];
|
|
6238
|
+
this.searchString = '';
|
|
6239
|
+
};
|
|
6240
|
+
SimpleTagsComponent.prototype.handleTagSelected = function (selectedTag) {
|
|
6241
|
+
if (selectedTag.tagType === 'TR' || selectedTag.tagType === 'TG') {
|
|
6242
|
+
if (selectedTag !== this.breadCrumbs[0]) {
|
|
6243
|
+
this.breadCrumbs.push(selectedTag);
|
|
6244
|
+
}
|
|
6245
|
+
this.displayTags = this._tags.filter(function (tag) {
|
|
6246
|
+
return tag.parentId === selectedTag.id && tag.treeLevel === selectedTag.treeLevel + 1;
|
|
6247
|
+
});
|
|
6248
|
+
}
|
|
6249
|
+
};
|
|
6250
|
+
SimpleTagsComponent.prototype.handleCrumbClicked = function (tag, index) {
|
|
6251
|
+
if (tag !== this.breadCrumbs[this.breadCrumbs.length - 1]) {
|
|
6252
|
+
this.breadCrumbs.splice(index + 1);
|
|
6253
|
+
this.handleTagSelected(tag);
|
|
6254
|
+
}
|
|
6255
|
+
};
|
|
6256
|
+
SimpleTagsComponent.prototype.handleAddTag = function (event) {
|
|
6257
|
+
var draggedTag = this.displayTags[event.previousIndex];
|
|
6258
|
+
if (!this._linkedTags.includes(draggedTag)) {
|
|
6259
|
+
this._linkedTags.push(this.displayTags[event.previousIndex]);
|
|
6260
|
+
this._loadThumbnail(draggedTag);
|
|
6261
|
+
}
|
|
6262
|
+
};
|
|
6263
|
+
SimpleTagsComponent.prototype.deleteLinkedTag = function (tag) {
|
|
6264
|
+
this._linkedTags.splice(this._linkedTags.indexOf(tag), 1);
|
|
6265
|
+
};
|
|
6266
|
+
SimpleTagsComponent.prototype.searchCollection = function () {
|
|
6267
|
+
var _this = this;
|
|
6268
|
+
if (!this.searchString) {
|
|
6269
|
+
this.searchString = '';
|
|
6270
|
+
this.setRootDisplayTags();
|
|
6271
|
+
return;
|
|
6272
|
+
}
|
|
6273
|
+
if (this.searchString.length < 2) {
|
|
6274
|
+
return;
|
|
6275
|
+
}
|
|
6276
|
+
if (this.searchString === '') {
|
|
6277
|
+
this.setRootDisplayTags();
|
|
6278
|
+
return;
|
|
6279
|
+
}
|
|
6280
|
+
var matchingObjects = [];
|
|
6281
|
+
this._tags.filter(function (item) { return item.tagType === 'T'; }).forEach(function (obj) {
|
|
6282
|
+
Object.values(obj).forEach(function (value) {
|
|
6283
|
+
if (typeof value === 'string' || typeof value === 'number') {
|
|
6284
|
+
var stringValue = String(value).toLowerCase();
|
|
6285
|
+
if (stringValue.includes(_this.searchString.toLowerCase())) {
|
|
6286
|
+
matchingObjects.push(obj);
|
|
6287
|
+
}
|
|
6288
|
+
}
|
|
6289
|
+
});
|
|
6290
|
+
});
|
|
6291
|
+
this.displayTags = matchingObjects;
|
|
6292
|
+
this.breadCrumbs = [];
|
|
6293
|
+
};
|
|
6294
|
+
SimpleTagsComponent.prototype.handleSaveTags = function () {
|
|
6295
|
+
this.saveClick.next(this._linkedTags);
|
|
6296
|
+
this.closeClick.next();
|
|
6297
|
+
};
|
|
6298
|
+
SimpleTagsComponent.prototype._loadThumbnail = function (tagTreeItem) {
|
|
6299
|
+
if (tagTreeItem.image && tagTreeItem.image.documentId && !tagTreeItem.image.thumbnailBody) {
|
|
6300
|
+
this.sharedService.getDocumentContent(tagTreeItem.image.documentId, true)
|
|
6301
|
+
.then(function (result) {
|
|
6302
|
+
if (result) {
|
|
6303
|
+
tagTreeItem.image.thumbnailBody = result;
|
|
6304
|
+
}
|
|
6305
|
+
});
|
|
6306
|
+
}
|
|
6307
|
+
};
|
|
6308
|
+
return SimpleTagsComponent;
|
|
6309
|
+
}());
|
|
6310
|
+
SimpleTagsComponent.decorators = [
|
|
6311
|
+
{ type: i0.Component, args: [{
|
|
6312
|
+
selector: "co-simple-tags",
|
|
6313
|
+
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 <div class=\"collection-navigation\">\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\n <ng-template #footerTemplate>\n <div class=\"co-dialog-footer-button-wrapper\">\n <div class=\"commit-button-wrapper\">\n <co-button\n [iconData]=\"iconCacheService.getIcon(icon.CheckDuotone)\"\n (click)=\"handleSaveTags()\"\n ></co-button>\n <co-button\n class=\"cancel-button\"\n [iconData]=\"iconCacheService.getIcon(icon.XSolid)\"\n (click)=\"closeClick.next()\"\n ></co-button>\n </div>\n </div>\n </ng-template>\n </co-dialog>\n ",
|
|
6314
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
6315
|
+
},] }
|
|
6316
|
+
];
|
|
6317
|
+
SimpleTagsComponent.ctorParameters = function () { return [
|
|
6318
|
+
{ type: IconCacheService },
|
|
6319
|
+
{ type: SharedService }
|
|
6320
|
+
]; };
|
|
6321
|
+
SimpleTagsComponent.propDecorators = {
|
|
6322
|
+
tags: [{ type: i0.Input }],
|
|
6323
|
+
linkedTags: [{ type: i0.Input }],
|
|
6324
|
+
closeClick: [{ type: i0.Output }],
|
|
6325
|
+
saveClick: [{ type: i0.Output }],
|
|
6326
|
+
showClass: [{ type: i0.HostBinding, args: ["class.co-simple-tags",] }]
|
|
6327
|
+
};
|
|
6328
|
+
|
|
6329
|
+
var SimpleTagsModule = /** @class */ (function () {
|
|
6330
|
+
function SimpleTagsModule() {
|
|
6331
|
+
}
|
|
6332
|
+
return SimpleTagsModule;
|
|
6333
|
+
}());
|
|
6334
|
+
SimpleTagsModule.decorators = [
|
|
6335
|
+
{ type: i0.NgModule, args: [{
|
|
6336
|
+
imports: [
|
|
6337
|
+
common.CommonModule,
|
|
6338
|
+
corecomponents_v12.CoDialogModule,
|
|
6339
|
+
corecomponents_v12.InputSearchModule,
|
|
6340
|
+
corecomponents_v12.IconModule,
|
|
6341
|
+
dragDrop.DragDropModule,
|
|
6342
|
+
corecomponents_v12.ButtonModule
|
|
6343
|
+
],
|
|
6344
|
+
declarations: [
|
|
6345
|
+
SimpleTagsComponent
|
|
6346
|
+
],
|
|
6347
|
+
exports: [
|
|
6348
|
+
SimpleTagsComponent
|
|
6349
|
+
]
|
|
6350
|
+
},] }
|
|
6351
|
+
];
|
|
6352
|
+
|
|
6132
6353
|
/*
|
|
6133
6354
|
* Public API Surface of sharedcomponents
|
|
6134
6355
|
*/
|
|
@@ -6150,6 +6371,8 @@
|
|
|
6150
6371
|
exports.SendMethodDialogComponent = SendMethodDialogComponent;
|
|
6151
6372
|
exports.SendMethodDialogModule = SendMethodDialogModule;
|
|
6152
6373
|
exports.SharedService = SharedService;
|
|
6374
|
+
exports.SimpleTagsComponent = SimpleTagsComponent;
|
|
6375
|
+
exports.SimpleTagsModule = SimpleTagsModule;
|
|
6153
6376
|
exports.StatusbarComponent = StatusbarComponent;
|
|
6154
6377
|
exports.StatusbarModule = StatusbarModule;
|
|
6155
6378
|
exports.StockComponent = StockComponent;
|