@bnsights/bbsf-admin-portal 1.0.78 → 1.0.80
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/README.md +9 -0
- package/{bnsights-bbsf-admin-portal-1.0.78.tgz → bnsights-bbsf-admin-portal-1.0.80.tgz} +0 -0
- package/bundles/bnsights-bbsf-admin-portal.umd.js +263 -118
- package/bundles/bnsights-bbsf-admin-portal.umd.js.map +1 -1
- package/esm2015/lib/Pages/documents/document-template-info/document-template-info.component.js +6 -7
- package/esm2015/lib/Pages/shared/Enums/Enums.js +6 -1
- package/esm2015/lib/Pages/shared/components/survey/survey-info/survey-info.component.js +120 -87
- package/esm2015/lib/Pages/shared/components/survey/survey.component.js +12 -6
- package/esm2015/lib/Pages/shared/modules/survey.module.js +7 -1
- package/esm2015/lib/Pages/shared/word/constants.js +1 -1
- package/esm2015/lib/Pages/shared/word/docx-document.js +4 -1
- package/esm2015/lib/Pages/shared/word/helpers/index.js +1 -1
- package/esm2015/lib/Pages/shared/word/helpers/render-document-file.js +1 -1
- package/esm2015/lib/Pages/shared/word/helpers/xml-builder.js +1 -1
- package/esm2015/lib/Pages/shared/word/html-to-docx.js +12 -5
- package/esm2015/lib/Pages/shared/word/index.js +1 -1
- package/esm2015/lib/Pages/shared/word/namespaces.js +1 -1
- package/esm2015/lib/Pages/shared/word/schemas/content-types.js +24 -24
- package/esm2015/lib/Pages/shared/word/schemas/core.js +21 -21
- package/esm2015/lib/Pages/shared/word/schemas/document-rels.js +13 -13
- package/esm2015/lib/Pages/shared/word/schemas/document.template.js +103 -41
- package/esm2015/lib/Pages/shared/word/schemas/font-table.js +37 -37
- package/esm2015/lib/Pages/shared/word/schemas/generic-rels.js +9 -6
- package/esm2015/lib/Pages/shared/word/schemas/index.js +1 -1
- package/esm2015/lib/Pages/shared/word/schemas/numbering.js +14 -14
- package/esm2015/lib/Pages/shared/word/schemas/rels.js +8 -8
- package/esm2015/lib/Pages/shared/word/schemas/settings.js +10 -10
- package/esm2015/lib/Pages/shared/word/schemas/styles.js +143 -143
- package/esm2015/lib/Pages/shared/word/schemas/theme.js +195 -195
- package/esm2015/lib/Pages/shared/word/schemas/web-settings.js +6 -6
- package/esm2015/lib/Pages/shared/word/utils/color-conversion.js +1 -1
- package/esm2015/lib/Pages/shared/word/utils/list.js +1 -1
- package/esm2015/lib/Pages/shared/word/utils/unit-conversion.js +1 -1
- package/esm2015/lib/Pages/shared/word/utils/url.js +1 -1
- package/esm2015/lib/Pages/shared/word/utils/vnode.js +1 -1
- package/esm2015/lib/Pages/shared/word/word-work/templates/documentTemplate.js +42 -42
- package/esm2015/lib/Pages/shared/word/word-work/templates/index.js +1 -1
- package/esm2015/lib/Pages/shared/word/word-work/templates/mhtDocumentTemplate.js +19 -18
- package/esm2015/lib/Pages/shared/word/word-work/templates/mhtPartTemplate.js +7 -7
- package/esm2015/lib/Pages/shared/word/word-work/utils.js +3 -1
- package/esm2015/public-api.js +2 -1
- package/fesm2015/bnsights-bbsf-admin-portal.js +1617 -1359
- package/fesm2015/bnsights-bbsf-admin-portal.js.map +1 -1
- package/lib/Pages/shared/Enums/Enums.d.ts +4 -0
- package/lib/Pages/shared/components/survey/survey-info/survey-info.component.d.ts +1 -0
- package/lib/Pages/shared/components/survey/survey.component.d.ts +1 -0
- package/lib/Pages/shared/modules/survey.module.d.ts +3 -0
- package/lib/Pages/shared/word/schemas/content-types.d.ts +1 -1
- package/lib/Pages/shared/word/schemas/document.template.d.ts +3 -2
- package/lib/Pages/shared/word/schemas/generic-rels.d.ts +1 -1
- package/package.json +6 -1
- package/public-api.d.ts +1 -0
|
@@ -20817,7 +20817,7 @@
|
|
|
20817
20817
|
return DocumentExportItemDTO;
|
|
20818
20818
|
}());
|
|
20819
20819
|
|
|
20820
|
-
var contentTypesXML$1 = "\n <?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n\n <Types xmlns=\"http://schemas.openxmlformats.org/package/2006/content-types\">\n <Default Extension=\"rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\" />\n <Default Extension=\"jpeg\" ContentType=\"image/jpeg\"/>\n <Default Extension=\"png\" ContentType=\"image/png\"/>\n <Default Extension=\"xml\" ContentType=\"application/xml\"/>\n <Override PartName=\"/_rels/.rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\"/>\n <Override PartName=\"/word/_rels/document.xml.rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\"/>\n <Override PartName=\"/word/_rels/
|
|
20820
|
+
var contentTypesXML$1 = "\n <?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n\n <Types xmlns=\"http://schemas.openxmlformats.org/package/2006/content-types\">\n <Default Extension=\"rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\" />\n <Default Extension=\"jpeg\" ContentType=\"image/jpeg\"/>\n <Default Extension=\"png\" ContentType=\"image/png\"/>\n <Default Extension=\"xml\" ContentType=\"application/xml\"/>\n <Override PartName=\"/_rels/.rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\"/>\n <Override PartName=\"/word/_rels/document.xml.rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\"/>\n <Override PartName=\"/word/_rels/footer1.xml.rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\"/>\n <Override PartName=\"/word/document.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml\"/>\n <Override PartName=\"/word/styles.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml\"/>\n <Override PartName=\"/word/numbering.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml\"/>\n <Override PartName=\"/word/theme/theme1.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.theme+xml\"/>\n <Override PartName=\"/word/fontTable.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml\"/>\n <Override PartName=\"/docProps/core.xml\" ContentType=\"application/vnd.openxmlformats-package.core-properties+xml\"/>\n <Override PartName=\"/word/settings.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml\"/>\n <Override PartName=\"/word/webSettings.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml\"/>\n <Override PartName=\"/word/afchunk.mht\" ContentType=\"message/rfc822\"/>\n <Override PartName=\"/word/afchunkheader.mht\" ContentType=\"message/rfc822\"/>\n <Override PartName=\"/word/afchunkfooter.mht\" ContentType=\"message/rfc822\"/>\n </Types>\n";
|
|
20821
20821
|
|
|
20822
20822
|
var namespaces$1 = {
|
|
20823
20823
|
a: 'http://schemas.openxmlformats.org/drawingml/2006/main',
|
|
@@ -20997,11 +20997,23 @@
|
|
|
20997
20997
|
|
|
20998
20998
|
var webSettingsXML$1 = "\n <?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n\n <w:webSettings xmlns:w=\"" + namespaces$1.w + "\" xmlns:r=\"" + namespaces$1.r + "\">\n </w:webSettings>\n";
|
|
20999
20999
|
|
|
21000
|
-
var genericRelsXML$1 = "\n <?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n\n <Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">\n </Relationships>\n";
|
|
21000
|
+
var genericRelsXML$1 = "\n <?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n\n <Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">\n <Relationship Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk\" Target=\"/word/afchunk.mht\" Id=\"htmlChunk\" />\n <Relationship Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk\" Target=\"/word/afchunkheader.mht\" Id=\"htmlChunkHeader\" />\n <Relationship Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk\" Target=\"/word/afchunkfooter.mht\" Id=\"htmlChunkFooter\" />\n </Relationships>\n";
|
|
21001
21001
|
|
|
21002
21002
|
var generateDocumentTemplate$1 = function (width, height, orientation, margins) { return "\n <?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n <w:document\n xmlns:a=\"" + namespaces$1.a + "\"\n xmlns:cdr=\"" + namespaces$1.cdr + "\"\n xmlns:o=\"" + namespaces$1.o + "\"\n xmlns:pic=\"" + namespaces$1.pic + "\"\n xmlns:r=\"" + namespaces$1.r + "\"\n xmlns:v=\"" + namespaces$1.v + "\"\n xmlns:ve=\"" + namespaces$1.ve + "\"\n xmlns:vt=\"" + namespaces$1.vt + "\"\n xmlns:w=\"" + namespaces$1.w + "\"\n xmlns:w10=\"" + namespaces$1.w10 + "\"\n xmlns:wp=\"" + namespaces$1.wp + "\"\n xmlns:wne=\"" + namespaces$1.wne + "\"\n >\n <w:body>\n\n <w:altChunk r:id=\"htmlChunk\" />\n <w:sectPr>\n <w:pgSz w:w=\"" + width + "\" w:h=\"" + height + "\" w:orient=\"" + orientation + "\" />\n <w:pgMar w:top=\"" + margins.top + "\"\n w:right=\"" + margins.right + "\"\n w:bottom=\"" + margins.bottom + "\"\n w:left=\"" + margins.left + "\"\n w:header=\"" + margins.header + "\"\n w:footer=\"" + margins.footer + "\"\n w:gutter=\"" + margins.gutter + "\"/>\n </w:sectPr>\n </w:body>\n </w:document>\n "; };
|
|
21003
|
-
var generateDocumentTemplateHeader$1 = "\n
|
|
21004
|
-
var generateDocumentTemplateFooter$1 = "\n <w:ftr xmlns:w=\"
|
|
21003
|
+
var generateDocumentTemplateHeader$1 = "\n<w:hdr\nxmlns:a=\"" + namespaces$1.a + "\"\nxmlns:cdr=\"" + namespaces$1.cdr + "\"\nxmlns:o=\"" + namespaces$1.o + "\"\nxmlns:pic=\"" + namespaces$1.pic + "\"\nxmlns:r=\"" + namespaces$1.r + "\"\nxmlns:v=\"" + namespaces$1.v + "\"\nxmlns:ve=\"" + namespaces$1.ve + "\"\nxmlns:vt=\"" + namespaces$1.vt + "\"\nxmlns:w=\"" + namespaces$1.w + "\"\nxmlns:w10=\"" + namespaces$1.w10 + "\"\nxmlns:wp=\"" + namespaces$1.wp + "\"\nxmlns:wne=\"" + namespaces$1.wne + "\"\n>\n<w:altChunk r:id=\"htmlChunkHeader\" />\n</w:hdr>\n ";
|
|
21004
|
+
var generateDocumentTemplateFooter$1 = "\n <w:ftr\n xmlns:a=\"" + namespaces$1.a + "\"\n xmlns:cdr=\"" + namespaces$1.cdr + "\"\n xmlns:o=\"" + namespaces$1.o + "\"\n xmlns:pic=\"" + namespaces$1.pic + "\"\n xmlns:r=\"" + namespaces$1.r + "\"\n xmlns:v=\"" + namespaces$1.v + "\"\n xmlns:ve=\"" + namespaces$1.ve + "\"\n xmlns:vt=\"" + namespaces$1.vt + "\"\n xmlns:w=\"" + namespaces$1.w + "\"\n xmlns:w10=\"" + namespaces$1.w10 + "\"\n xmlns:wp=\"" + namespaces$1.wp + "\"\n >\n <w:altChunk r:id=\"htmlChunkFooter\" />\n\t<w:p w:rsidR=\"0014021C\" w:rsidRDefault=\"0014021C\" w:rsidP=\"0014021C\">\n\t\t\t<w:pPr>\n\t\t\t\t<w:pStyle w:val=\"Footer\"/>\n\t\t\t\t<w:jc w:val=\"center\"/>\n\t\t\t</w:pPr>\n <w:fldSimple xmlns:ns2=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\" ns2:instr=\"PAGE\">\n <w:r/>\n </w:fldSimple>\n\t\t</w:p>\n\t</w:ftr>\n ";
|
|
21005
|
+
var generateDocumentTemplateFooterWithoutPaging$1 = "\n <w:ftr\n xmlns:a=\"" + namespaces$1.a + "\"\n xmlns:cdr=\"" + namespaces$1.cdr + "\"\n xmlns:o=\"" + namespaces$1.o + "\"\n xmlns:pic=\"" + namespaces$1.pic + "\"\n xmlns:r=\"" + namespaces$1.r + "\"\n xmlns:v=\"" + namespaces$1.v + "\"\n xmlns:ve=\"" + namespaces$1.ve + "\"\n xmlns:vt=\"" + namespaces$1.vt + "\"\n xmlns:w=\"" + namespaces$1.w + "\"\n xmlns:w10=\"" + namespaces$1.w10 + "\"\n xmlns:wp=\"" + namespaces$1.wp + "\"\n >\n <w:altChunk r:id=\"htmlChunkFooter\" />\n\t</w:ftr>\n ";
|
|
21006
|
+
{ /* <w:altChunk r:id="htmlChunkFooter" /> */ }
|
|
21007
|
+
{
|
|
21008
|
+
/* <w:altChunk r:id="htmlChunkFooter" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" /> */
|
|
21009
|
+
}
|
|
21010
|
+
{
|
|
21011
|
+
/* <w:ftr xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
|
|
21012
|
+
<fldSimple xmlns:ns2="http://schemas.openxmlformats.org/wordprocessingml/2006/main" ns2:instr="PAGE">
|
|
21013
|
+
</fldSimple>
|
|
21014
|
+
<w:altChunk r:id="htmlChunkFooter" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" />
|
|
21015
|
+
</w:ftr> */
|
|
21016
|
+
}
|
|
21005
21017
|
|
|
21006
21018
|
/* eslint-disable no-param-reassign */
|
|
21007
21019
|
var rgbRegex$1 = /rgb\((\d+),\s*([\d.]+),\s*([\d.]+)\)/i;
|
|
@@ -23665,6 +23677,7 @@
|
|
|
23665
23677
|
DocxDocument.prototype.createDocumentRelationships = function (fileName, type, target, targetMode) {
|
|
23666
23678
|
if (fileName === void 0) { fileName = 'document'; }
|
|
23667
23679
|
if (targetMode === void 0) { targetMode = 'External'; }
|
|
23680
|
+
debugger;
|
|
23668
23681
|
var relationshipObject = this.relationships.find(function (relationship) { return relationship.fileName === fileName; });
|
|
23669
23682
|
var lastRelsId = 1;
|
|
23670
23683
|
if (relationshipObject) {
|
|
@@ -23699,6 +23712,8 @@
|
|
|
23699
23712
|
target: target,
|
|
23700
23713
|
targetMode: targetMode,
|
|
23701
23714
|
});
|
|
23715
|
+
console.log(fileName);
|
|
23716
|
+
console.log(relationshipObject.rels);
|
|
23702
23717
|
return lastRelsId;
|
|
23703
23718
|
};
|
|
23704
23719
|
DocxDocument.prototype.generateHeaderXML = function (vTree) {
|
|
@@ -23724,6 +23739,7 @@
|
|
|
23724
23739
|
};
|
|
23725
23740
|
|
|
23726
23741
|
var mhtDocumentTemplate$1 = function (htmlSource, contentParts) {
|
|
23742
|
+
debugger;
|
|
23727
23743
|
return "MIME-Version: 1.0\nContent-Type: multipart/related;\n type=\"text/html\";\n boundary=\"----=mhtDocumentPart\"\n\n\n------=mhtDocumentPart\nContent-Type: text/html;\n charset=\"utf-8\"\nContent-Transfer-Encoding: quoted-printable\nContent-Location: file:///C:/fake/document.html\n\n" + htmlSource + "\n\n" + contentParts + "\n\n------=mhtDocumentPart--\n";
|
|
23728
23744
|
};
|
|
23729
23745
|
|
|
@@ -23732,12 +23748,14 @@
|
|
|
23732
23748
|
};
|
|
23733
23749
|
|
|
23734
23750
|
function getMHTdocument$1(htmlSource) {
|
|
23751
|
+
debugger;
|
|
23735
23752
|
var ref = _prepareImageParts$1(htmlSource);
|
|
23736
23753
|
var imageContentPartsString = ref.imageContentParts.join('\n');
|
|
23737
23754
|
htmlSource = ref.htmlSource.replace(/\=/g, '=3D');
|
|
23738
23755
|
return mhtDocumentTemplate$1(htmlSource, imageContentPartsString);
|
|
23739
23756
|
}
|
|
23740
23757
|
function _prepareImageParts$1(htmlSource) {
|
|
23758
|
+
debugger;
|
|
23741
23759
|
var imageContentParts = [];
|
|
23742
23760
|
var inlinedSrcPattern = /"data:(\w+\/\w+);(\w+),(\S+)"/g;
|
|
23743
23761
|
var inlinedReplacer = function (match, contentType, contentEncoding, encodedContent) {
|
|
@@ -23879,9 +23897,15 @@
|
|
|
23879
23897
|
docxDocument.relationshipFilename = documentFileName$1;
|
|
23880
23898
|
fileNameWithExt = "" + footerType$1 + footerId + ".xml";
|
|
23881
23899
|
relationshipId = docxDocument.createDocumentRelationships(docxDocument.relationshipFilename, footerType$1, fileNameWithExt, internalRelationship$1);
|
|
23882
|
-
|
|
23883
|
-
|
|
23884
|
-
|
|
23900
|
+
console.log(footerXML.toString({ prettyPrint: true }));
|
|
23901
|
+
if (suppliedDocumentOptions.pageNumber)
|
|
23902
|
+
zip.folder(wordFolder$1).file(fileNameWithExt, generateDocumentTemplateFooter$1.toString({ prettyPrint: true }), {
|
|
23903
|
+
createFolders: false,
|
|
23904
|
+
});
|
|
23905
|
+
else
|
|
23906
|
+
zip.folder(wordFolder$1).file(fileNameWithExt, generateDocumentTemplateFooterWithoutPaging$1.toString({ prettyPrint: true }), {
|
|
23907
|
+
createFolders: false,
|
|
23908
|
+
});
|
|
23885
23909
|
docxDocument.footerObjects.push({ footerId: footerId, relationshipId: relationshipId, type: docxDocument.footerType });
|
|
23886
23910
|
_d.label = 5;
|
|
23887
23911
|
case 5:
|
|
@@ -23914,6 +23938,7 @@
|
|
|
23914
23938
|
if (relationshipXMLs && Array.isArray(relationshipXMLs)) {
|
|
23915
23939
|
relationshipXMLs.forEach(function (_a) {
|
|
23916
23940
|
var fileName = _a.fileName, xmlString = _a.xmlString;
|
|
23941
|
+
console.log(xmlString);
|
|
23917
23942
|
zip.folder(wordFolder$1).folder(relsFolderName$1).file(fileName + ".xml.rels", xmlString, {
|
|
23918
23943
|
createFolders: false,
|
|
23919
23944
|
});
|
|
@@ -24166,18 +24191,18 @@
|
|
|
24166
24191
|
return _this.templateService.exportPDF(ExportDocumentTemplateModel);
|
|
24167
24192
|
};
|
|
24168
24193
|
_this.onSuccessExportHandler = function (result) { return __awaiter(_this, void 0, void 0, function () {
|
|
24169
|
-
var now, latest_date, fileName_1, documentOptions,
|
|
24194
|
+
var now, latest_date, fileName_1, documentOptions, fileBufferLib, fileName;
|
|
24170
24195
|
return __generator(this, function (_d) {
|
|
24171
24196
|
switch (_d.label) {
|
|
24172
24197
|
case 0:
|
|
24173
24198
|
now = new Date().toISOString();
|
|
24174
24199
|
latest_date = this.datepipe.transform(now, 'dd-MM-yyyy HH.mm');
|
|
24175
|
-
if (!(this.exportType == 2)) return [3 /*break*/,
|
|
24200
|
+
if (!(this.exportType == 2)) return [3 /*break*/, 2];
|
|
24176
24201
|
fileName_1 = this.TemplateInfo.localizedTemplateName + '_' + latest_date + '.doc';
|
|
24177
24202
|
documentOptions = {};
|
|
24178
24203
|
if (result.isLandscape)
|
|
24179
24204
|
documentOptions.orientation = 'landscape';
|
|
24180
|
-
documentOptions.pageNumber =
|
|
24205
|
+
// documentOptions.pageNumber =result.showPaging;
|
|
24181
24206
|
documentOptions.pageSize = {
|
|
24182
24207
|
width: result.pageWidth * 15,
|
|
24183
24208
|
height: result.pageHeight * 15
|
|
@@ -24195,16 +24220,12 @@
|
|
|
24195
24220
|
documentOptions.header = true;
|
|
24196
24221
|
documentOptions.pageNumber = true;
|
|
24197
24222
|
documentOptions.table = { row: { cantSplit: true } };
|
|
24198
|
-
return [4 /*yield*/, generateContainer$1(result.body, result.header, documentOptions, result.footer)];
|
|
24199
|
-
case 1:
|
|
24200
|
-
fileBuffer = _d.sent();
|
|
24201
|
-
this.downloadWord(fileBuffer, fileName_1);
|
|
24202
24223
|
return [4 /*yield*/, this.templateService.generateWordByteFile(result.body, result.header, documentOptions, result.footer)];
|
|
24203
|
-
case
|
|
24224
|
+
case 1:
|
|
24204
24225
|
fileBufferLib = _d.sent();
|
|
24205
|
-
this.downloadWord(
|
|
24226
|
+
this.downloadWord(fileBufferLib, "Lib" + fileName_1);
|
|
24206
24227
|
return [2 /*return*/];
|
|
24207
|
-
case
|
|
24228
|
+
case 2:
|
|
24208
24229
|
fileName = this.TemplateInfo.localizedTemplateName + '_' + latest_date + '.pdf';
|
|
24209
24230
|
this.downloadPDF(result, fileName);
|
|
24210
24231
|
return [2 /*return*/];
|
|
@@ -24446,7 +24467,7 @@
|
|
|
24446
24467
|
return DocumentTemplateInfoComponent;
|
|
24447
24468
|
}(i6.AppBaseComponent));
|
|
24448
24469
|
DocumentTemplateInfoComponent$1.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: DocumentTemplateInfoComponent$1, deps: [{ token: i0__namespace.Injector }, { token: i1__namespace.UtilityService }, { token: i1__namespace.BBSFTranslateService }, { token: i3__namespace.ClipboardService }, { token: DocumentTemplateService$1 }, { token: i1__namespace$1.ActivatedRoute }, { token: PageInfoService }, { token: i5__namespace.NgbModal }, { token: i10__namespace.DatePipe }, { token: i1__namespace.RequestHandlerService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
24449
|
-
DocumentTemplateInfoComponent$1.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: DocumentTemplateInfoComponent$1, selector: "lib-document-template-info", usesInheritance: true, ngImport: i0__namespace, template: "<block-ui></block-ui>\r\n\r\n<div class=\"container-fluid\" *ngIf=\"isDataLoaded\">\r\n <div class=\"card card-custom-h\">\r\n <div class=\"card-header border-0 pt-5\">\r\n <div class=\"card-title align-items-start flex-column\">\r\n\r\n </div>\r\n <div class=\"card-toolbar\">\r\n <button type=\"button\" id=\"btnSetPass\" class=\"btn btn-sm me-3\r\n btn-light-primary\"\r\n (click)=\"showEditTemplateModal(EditTemplateModal)\">\r\n <i class=\"fa fa fa-edit\" aria-hidden=\"true\"></i>\r\n <span>{{utilityService.getResourceValue(\"Edit\")}}</span>\r\n </button>\r\n <button type=\"button\" id=\"btnSetPass\" class=\"btn btn-sm me-3\r\n btn-light-primary\"\r\n (click)=\"showTestExportDocumentModal(ExportDocumentModal)\">\r\n <i class=\"fa fa fa-download\" aria-hidden=\"true\"></i>\r\n <span>{{utilityService.getResourceValue(\"Export\")}}</span>\r\n </button>\r\n <button type=\"button\" id=\"btnSetPass\" class=\"btn btn-sm me-3\r\n btn-light-primary\"\r\n (click)=\"showTestExportDocumentModal(ExportDocumentModal,2)\">\r\n <i class=\"fa fa fa-download\" aria-hidden=\"true\"></i>\r\n <span>{{utilityService.getResourceValue(\"ExportWord\")}}</span>\r\n </button>\r\n <button type=\"button\" id=\"btnSetPass\" class=\"btn btn-sm me-3\r\n btn-primary\" *ngIf=\"!ProductionMode\"\r\n (click)=\"showGenerateCodeByIdModal(GenerateCodeModal)\">\r\n <i class=\"fa fa-bars\"></i>{{utilityService.getResourceValue(\"GenerateCode\")}}\r\n </button>\r\n <button type=\"button\" id=\"btnSetPass\" class=\"btn btn-sm me-3\r\n btn-primary\" *ngIf=\"!ProductionMode\"\r\n (click)=\"showGenerateUpdateCodeByIdModal(GenerateCodeModal)\">\r\n <i class=\"fa fa-key\"></i>{{utilityService.getResourceValue(\"GenerateUpdateCode\")}}\r\n </button>\r\n\r\n </div>\r\n </div>\r\n <div class=\"card-body py-3\">\r\n <div class=\"row\">\r\n <div class=\"col-xl-6 mb-10\">\r\n <div class=\"d-flex h-100 align-items-center \">\r\n <!--begin::Option-->\r\n <div class=\"w-100 d-flex flex-column flex-center rounded-3 bg-light\r\n py-10 px-10 h-100\">\r\n <!--begin::Heading-->\r\n <div class=\"mb-7 d-flex justify-content-between w-100\">\r\n <!--begin::Title-->\r\n <a\r\n [routerLink]=\"['/Admin/Documents/EditTemplate',TemplateId,'en']\"\r\n routerLinkActive=\"router-link-active\" class=\"text-primary mb-5\r\n fw-boldest fs-2\">\r\n English:\r\n {{TemplateInfo.templateNameEN}}\r\n </a>\r\n\r\n <a\r\n [routerLink]=\"['/Admin/Documents/EditTemplate',TemplateId,'en']\"\r\n routerLinkActive=\"router-link-active\" class=\"btn btn-sm\r\n btn-light-primary btn-icon\">\r\n <i class=\"fa fa-pen\"></i>\r\n </a>\r\n\r\n </div>\r\n <div class=\"w-100 mb-10\">\r\n <!--begin::Item-->\r\n <div class=\"d-flex align-items-center mb-5\">\r\n <div class=\"fw-bold fs-6 text-gray-800 flex-grow-1 pe-3\">\r\n <div innerHTML=\"{{TemplateInfo.headerEN}}\">\r\n </div>\r\n <div innerHTML=\"{{TemplateInfo.bodyEN}}\">\r\n </div>\r\n <div innerHTML=\"{{TemplateInfo.footerEN}}\">\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!--end::Select-->\r\n </div>\r\n <!--end::Option-->\r\n </div>\r\n </div>\r\n <div class=\"col-xl-6 mb-10\">\r\n <div class=\"d-flex h-100 align-items-center\">\r\n <!--begin::Option-->\r\n <div class=\"w-100 d-flex flex-column flex-center rounded-3 bg-light\r\n py-10 px-10 h-100\">\r\n <!--begin::Heading-->\r\n <div class=\"mb-7 d-flex justify-content-between w-100\">\r\n <!--begin::Title-->\r\n <a\r\n [routerLink]=\"['/Admin/Documents/EditTemplate',TemplateId,'ar']\"\r\n routerLinkActive=\"router-link-active\" class=\"text-primary mb-5\r\n fw-boldest fs-2\">\r\n Arabic:\r\n {{TemplateInfo.templateNameAR}}\r\n </a>\r\n <a\r\n [routerLink]=\"['/Admin/Documents/EditTemplate',TemplateId,'ar']\"\r\n routerLinkActive=\"router-link-active\" class=\"btn btn-sm\r\n btn-light-primary btn-icon\">\r\n <i class=\"fa fa-pen\"></i>\r\n </a>\r\n </div>\r\n <div class=\"w-100 mb-10\">\r\n <!--begin::Item-->\r\n <div class=\"d-flex align-items-center mb-5\">\r\n <div class=\"fw-bold fs-6 text-gray-800 flex-grow-1 pe-3 ar\">\r\n <div innerHTML=\"{{TemplateInfo.headerAR}}\">\r\n </div>\r\n <div innerHTML=\"{{TemplateInfo.bodyAR}}\">\r\n </div>\r\n <div innerHTML=\"{{TemplateInfo.footerAR}}\">\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n <!--end::Select-->\r\n </div>\r\n <!--end::Option-->\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n\r\n<!-- edit Modal -->\r\n<ng-template #EditTemplateModal let-modal>\r\n <div class=\"modal-header pb-0 border-0 justify-content-end\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\"></h5>\r\n <button type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\" class=\"btn\r\n btn-sm btn-icon btn-active-color-primary\" (click)=\"modal.dismiss()\">\r\n <span class=\"svg-icon svg-icon-1\">\r\n <span [inlineSVG]=\"'./src/assets/images/arr061.svg'\"></span>\r\n </span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body scroll-y px-10 px-lg-15 pt-0 pb-15\">\r\n <div class=\"mb-13 text-center\">\r\n <h1 class=\"mb-3\">{{utilityService.getResourceValue(\"Edit\")}}\r\n {{utilityService.getResourceValue(\"Template\")}}</h1>\r\n </div>\r\n\r\n <BBSF-Form [options]=\"EditTemplateFormOptions\">\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-MultiLingualTextBox [options]=\"EditName\"\r\n [group]=\"EditTemplateForm\"></BBSF-MultiLingualTextBox>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-MultiLingualTextArea [options]=\"EditDescription\"\r\n [group]=\"EditTemplateForm\">\r\n </BBSF-MultiLingualTextArea>\r\n </div>\r\n </div>\r\n <div class=\"row\" *ngIf=\"!ProductionMode\">\r\n <div class=\"col-md-12\">\r\n <BBSF-TextBox [options]=\"EditSysName\" [group]=\"EditTemplateForm\">\r\n </BBSF-TextBox>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-DropdownList [options]=\"EditOrganization\"\r\n [group]=\"EditTemplateForm\">\r\n </BBSF-DropdownList>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-DropdownList [options]=\"EditCategory\"\r\n [group]=\"EditTemplateForm\">\r\n </BBSF-DropdownList>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-DropdownList [options]=\"EditMasterLayout\"\r\n [group]=\"EditTemplateForm\">\r\n </BBSF-DropdownList>\r\n </div>\r\n </div>\r\n\r\n\r\n <div class=\"text-center pt-7\">\r\n <button #CloseEditTemplateModal id=\"CloseEditTemplateModal\"\r\n type=\"button\" class=\"btn btn-light me-3 btn-sm\"\r\n (click)=\"modal.dismiss()\">\r\n {{utilityService.getResourceValue(\"CancelLabel\")}}\r\n </button>\r\n <button type=\"submit\" class=\"btn btn-primary btn-sm\">{{utilityService.getResourceValue(\"SaveLabel\")}}</button>\r\n </div>\r\n </BBSF-Form>\r\n </div>\r\n</ng-template>\r\n\r\n\r\n\r\n<!-- Export Document Modal -->\r\n<ng-template #ExportDocumentModal let-modal>\r\n <div class=\"modal-header pb-0 border-0 justify-content-end\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\"></h5>\r\n <button type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\" class=\"btn btn-sm btn-icon btn-active-color-primary\" (click)=\"modal.dismiss()\">\r\n <span class=\"svg-icon svg-icon-1\">\r\n <span [inlineSVG]=\"'./src/assets/images/arr061.svg'\"></span>\r\n </span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body scroll-y px-10 px-lg-15 pt-0 pb-15\">\r\n <div class=\"mb-13 text-center\">\r\n <h1 class=\"mb-3\">{{utilityService.getResourceValue(\"Export\")}}</h1>\r\n </div>\r\n <BBSF-Form [options]=\"TestExportDocumentFormOptions\">\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-repeater-table [options]=\"addKeyValueRepeaterOptions\" [group]=\"TestExportDocumentForm\">\r\n </BBSF-repeater-table>\r\n </div>\r\n </div>\r\n\r\n <div class=\"text-center pt-7\">\r\n <button #CloseSendEmailForm id=\"CloseSendEmailForm\" type=\"button\" class=\"btn btn-light me-3 btn-sm\"\r\n (click)=\"modal.dismiss()\">\r\n {{utilityService.getResourceValue(\"CancelLabel\")}}\r\n </button>\r\n <button type=\"submit\" class=\"btn btn-primary btn-sm\">{{utilityService.getResourceValue(\"Export\")}}</button>\r\n </div>\r\n </BBSF-Form>\r\n </div>\r\n</ng-template>\r\n\r\n\r\n<!-- GenerateCode Modal -->\r\n<ng-template #GenerateCodeModal let-modal>\r\n <div class=\"modal-header pb-0 border-0 justify-content-end\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\"></h5>\r\n <button type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\" class=\"btn\r\n btn-sm btn-icon btn-active-color-primary\" (click)=\"modal.dismiss()\">\r\n <span class=\"svg-icon svg-icon-1\">\r\n <span [inlineSVG]=\"'./src/assets/images/arr061.svg'\"></span>\r\n </span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body scroll-y px-10 px-lg-15 pt-0 pb-15\">\r\n <div class=\"mb-13 text-center\">\r\n <h1 class=\"mb-3\">{{utilityService.getResourceValue(\"GenerateCode\")}}</h1>\r\n </div>\r\n <form [formGroup]=\"GenerateCodeForm\">\r\n\r\n <div class=\"Row\">\r\n <BBSF-TextArea [options]=\"GenerateCodeTextArea\"\r\n [group]=\"GenerateCodeForm\" #GenerateCodeInput>\r\n </BBSF-TextArea>\r\n </div>\r\n <div class=\"text-center pt-7\">\r\n <button #CloseGenerateCodeModal id=\"CloseGenerateCodeModal\"\r\n type=\"button\" class=\"btn btn-light me-3 btn-sm\"\r\n (click)=\"modal.dismiss()\">\r\n {{utilityService.getResourceValue(\"CancelLabel\")}}\r\n </button>\r\n <button type=\"button\" class=\"btn btn-primary btn-sm\"\r\n (click)=\"copyInputMessage()\">\r\n {{utilityService.getResourceValue(\"CopyToClipboard\")}}\r\n </button>\r\n </div>\r\n </form>\r\n </div>\r\n</ng-template>\r\n", components: [{ type: i5__namespace$1.BlockUIComponent, selector: "block-ui", inputs: ["name", "template", "message", "delayStart", "delayStop"] }, { type: i6__namespace.FormComponent, selector: "BBSF-Form", inputs: ["options"], outputs: ["OnChange"] }, { type: i6__namespace.MultiLingualTextBoxComponent, selector: "BBSF-MultiLingualTextBox", inputs: ["group", "options"], outputs: ["OnChange"] }, { type: i6__namespace.MultiLingualTextAreaComponent, selector: "BBSF-MultiLingualTextArea", inputs: ["group", "options"], outputs: ["OnChange"] }, { type: i6__namespace.TextboxComponent, selector: "BBSF-TextBox", inputs: ["group", "options"], outputs: ["OnChange"] }, { type: i6__namespace.DropdownListComponent, selector: "BBSF-DropdownList", inputs: ["group", "options"], outputs: ["OnChange", "onClear"] }, { type: i6__namespace.RepeaterTableComponent, selector: "BBSF-repeater-table", inputs: ["group", "options"] }, { type: i6__namespace.TextAreaComponent, selector: "BBSF-TextArea", inputs: ["group", "options"], outputs: ["OnChange"] }], directives: [{ type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i1__namespace$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "routerLinkActive"], exportAs: ["routerLinkActive"] }, { type: i11__namespace.InlineSVGDirective, selector: "[inlineSVG]", inputs: ["resolveSVGUrl", "replaceContents", "prepend", "injectComponent", "cacheSVG", "forceEvalStyles", "evalScripts", "inlineSVG", "setSVGAttributes", "removeSVGAttributes", "fallbackImgUrl", "onSVGLoaded"], outputs: ["onSVGInserted", "onSVGFailed"] }, { type: i11__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i11__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i11__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }] });
|
|
24470
|
+
DocumentTemplateInfoComponent$1.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: DocumentTemplateInfoComponent$1, selector: "lib-document-template-info", usesInheritance: true, ngImport: i0__namespace, template: "<block-ui></block-ui>\r\n\r\n<div class=\"container-fluid\" *ngIf=\"isDataLoaded\">\r\n <div class=\"card card-custom-h\">\r\n <div class=\"card-header border-0 pt-5\">\r\n <div class=\"card-title align-items-start flex-column\">\r\n\r\n </div>\r\n <div class=\"card-toolbar\">\r\n <button type=\"button\" id=\"btnSetPass\" class=\"btn btn-sm me-3\r\n btn-light-primary\"\r\n (click)=\"showEditTemplateModal(EditTemplateModal)\">\r\n <i class=\"fa fa fa-edit\" aria-hidden=\"true\"></i>\r\n <span>{{utilityService.getResourceValue(\"Edit\")}}</span>\r\n </button>\r\n <button type=\"button\" id=\"btnSetPass\" class=\"btn btn-sm me-3\r\n btn-light-primary\"\r\n (click)=\"showTestExportDocumentModal(ExportDocumentModal)\">\r\n <i class=\"fa fa fa-download\" aria-hidden=\"true\"></i>\r\n <span>{{utilityService.getResourceValue(\"Export\")}}</span>\r\n </button>\r\n <button type=\"button\" id=\"btnSetPass\" class=\"btn btn-sm me-3\r\n btn-light-primary\"\r\n (click)=\"showTestExportDocumentModal(ExportDocumentModal,2)\">\r\n <i class=\"fa fa fa-download\" aria-hidden=\"true\"></i>\r\n <span>{{utilityService.getResourceValue(\"Export\")}} Word</span>\r\n </button>\r\n <button type=\"button\" id=\"btnSetPass\" class=\"btn btn-sm me-3\r\n btn-primary\" *ngIf=\"!ProductionMode\"\r\n (click)=\"showGenerateCodeByIdModal(GenerateCodeModal)\">\r\n <i class=\"fa fa-bars\"></i>{{utilityService.getResourceValue(\"GenerateCode\")}}\r\n </button>\r\n <button type=\"button\" id=\"btnSetPass\" class=\"btn btn-sm me-3\r\n btn-primary\" *ngIf=\"!ProductionMode\"\r\n (click)=\"showGenerateUpdateCodeByIdModal(GenerateCodeModal)\">\r\n <i class=\"fa fa-key\"></i>{{utilityService.getResourceValue(\"GenerateUpdateCode\")}}\r\n </button>\r\n\r\n </div>\r\n </div>\r\n <div class=\"card-body py-3\">\r\n <div class=\"row\">\r\n <div class=\"col-xl-6 mb-10\">\r\n <div class=\"d-flex h-100 align-items-center \">\r\n <!--begin::Option-->\r\n <div class=\"w-100 d-flex flex-column flex-center rounded-3 bg-light\r\n py-10 px-10 h-100\">\r\n <!--begin::Heading-->\r\n <div class=\"mb-7 d-flex justify-content-between w-100\">\r\n <!--begin::Title-->\r\n <a\r\n [routerLink]=\"['/Admin/Documents/EditTemplate',TemplateId,'en']\"\r\n routerLinkActive=\"router-link-active\" class=\"text-primary mb-5\r\n fw-boldest fs-2\">\r\n English:\r\n {{TemplateInfo.templateNameEN}}\r\n </a>\r\n\r\n <a\r\n [routerLink]=\"['/Admin/Documents/EditTemplate',TemplateId,'en']\"\r\n routerLinkActive=\"router-link-active\" class=\"btn btn-sm\r\n btn-light-primary btn-icon\">\r\n <i class=\"fa fa-pen\"></i>\r\n </a>\r\n\r\n </div>\r\n <div class=\"w-100 mb-10\">\r\n <!--begin::Item-->\r\n <div class=\"d-flex align-items-center mb-5\">\r\n <div class=\"fw-bold fs-6 text-gray-800 flex-grow-1 pe-3\">\r\n <div innerHTML=\"{{TemplateInfo.headerEN}}\">\r\n </div>\r\n <div innerHTML=\"{{TemplateInfo.bodyEN}}\">\r\n </div>\r\n <div innerHTML=\"{{TemplateInfo.footerEN}}\">\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!--end::Select-->\r\n </div>\r\n <!--end::Option-->\r\n </div>\r\n </div>\r\n <div class=\"col-xl-6 mb-10\">\r\n <div class=\"d-flex h-100 align-items-center\">\r\n <!--begin::Option-->\r\n <div class=\"w-100 d-flex flex-column flex-center rounded-3 bg-light\r\n py-10 px-10 h-100\">\r\n <!--begin::Heading-->\r\n <div class=\"mb-7 d-flex justify-content-between w-100\">\r\n <!--begin::Title-->\r\n <a\r\n [routerLink]=\"['/Admin/Documents/EditTemplate',TemplateId,'ar']\"\r\n routerLinkActive=\"router-link-active\" class=\"text-primary mb-5\r\n fw-boldest fs-2\">\r\n Arabic:\r\n {{TemplateInfo.templateNameAR}}\r\n </a>\r\n <a\r\n [routerLink]=\"['/Admin/Documents/EditTemplate',TemplateId,'ar']\"\r\n routerLinkActive=\"router-link-active\" class=\"btn btn-sm\r\n btn-light-primary btn-icon\">\r\n <i class=\"fa fa-pen\"></i>\r\n </a>\r\n </div>\r\n <div class=\"w-100 mb-10\">\r\n <!--begin::Item-->\r\n <div class=\"d-flex align-items-center mb-5\">\r\n <div class=\"fw-bold fs-6 text-gray-800 flex-grow-1 pe-3 ar\">\r\n <div innerHTML=\"{{TemplateInfo.headerAR}}\">\r\n </div>\r\n <div innerHTML=\"{{TemplateInfo.bodyAR}}\">\r\n </div>\r\n <div innerHTML=\"{{TemplateInfo.footerAR}}\">\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n <!--end::Select-->\r\n </div>\r\n <!--end::Option-->\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n\r\n<!-- edit Modal -->\r\n<ng-template #EditTemplateModal let-modal>\r\n <div class=\"modal-header pb-0 border-0 justify-content-end\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\"></h5>\r\n <button type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\" class=\"btn\r\n btn-sm btn-icon btn-active-color-primary\" (click)=\"modal.dismiss()\">\r\n <span class=\"svg-icon svg-icon-1\">\r\n <span [inlineSVG]=\"'./src/assets/images/arr061.svg'\"></span>\r\n </span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body scroll-y px-10 px-lg-15 pt-0 pb-15\">\r\n <div class=\"mb-13 text-center\">\r\n <h1 class=\"mb-3\">{{utilityService.getResourceValue(\"Edit\")}}\r\n {{utilityService.getResourceValue(\"Template\")}}</h1>\r\n </div>\r\n\r\n <BBSF-Form [options]=\"EditTemplateFormOptions\">\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-MultiLingualTextBox [options]=\"EditName\"\r\n [group]=\"EditTemplateForm\"></BBSF-MultiLingualTextBox>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-MultiLingualTextArea [options]=\"EditDescription\"\r\n [group]=\"EditTemplateForm\">\r\n </BBSF-MultiLingualTextArea>\r\n </div>\r\n </div>\r\n <div class=\"row\" *ngIf=\"!ProductionMode\">\r\n <div class=\"col-md-12\">\r\n <BBSF-TextBox [options]=\"EditSysName\" [group]=\"EditTemplateForm\">\r\n </BBSF-TextBox>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-DropdownList [options]=\"EditOrganization\"\r\n [group]=\"EditTemplateForm\">\r\n </BBSF-DropdownList>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-DropdownList [options]=\"EditCategory\"\r\n [group]=\"EditTemplateForm\">\r\n </BBSF-DropdownList>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-DropdownList [options]=\"EditMasterLayout\"\r\n [group]=\"EditTemplateForm\">\r\n </BBSF-DropdownList>\r\n </div>\r\n </div>\r\n\r\n\r\n <div class=\"text-center pt-7\">\r\n <button #CloseEditTemplateModal id=\"CloseEditTemplateModal\"\r\n type=\"button\" class=\"btn btn-light me-3 btn-sm\"\r\n (click)=\"modal.dismiss()\">\r\n {{utilityService.getResourceValue(\"CancelLabel\")}}\r\n </button>\r\n <button type=\"submit\" class=\"btn btn-primary btn-sm\">{{utilityService.getResourceValue(\"SaveLabel\")}}</button>\r\n </div>\r\n </BBSF-Form>\r\n </div>\r\n</ng-template>\r\n\r\n\r\n\r\n<!-- Export Document Modal -->\r\n<ng-template #ExportDocumentModal let-modal>\r\n <div class=\"modal-header pb-0 border-0 justify-content-end\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\"></h5>\r\n <button type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\" class=\"btn btn-sm btn-icon btn-active-color-primary\" (click)=\"modal.dismiss()\">\r\n <span class=\"svg-icon svg-icon-1\">\r\n <span [inlineSVG]=\"'./src/assets/images/arr061.svg'\"></span>\r\n </span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body scroll-y px-10 px-lg-15 pt-0 pb-15\">\r\n <div class=\"mb-13 text-center\">\r\n <h1 class=\"mb-3\">{{utilityService.getResourceValue(\"Export\")}}</h1>\r\n </div>\r\n <BBSF-Form [options]=\"TestExportDocumentFormOptions\">\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-repeater-table [options]=\"addKeyValueRepeaterOptions\" [group]=\"TestExportDocumentForm\">\r\n </BBSF-repeater-table>\r\n </div>\r\n </div>\r\n\r\n <div class=\"text-center pt-7\">\r\n <button #CloseSendEmailForm id=\"CloseSendEmailForm\" type=\"button\" class=\"btn btn-light me-3 btn-sm\"\r\n (click)=\"modal.dismiss()\">\r\n {{utilityService.getResourceValue(\"CancelLabel\")}}\r\n </button>\r\n <button type=\"submit\" class=\"btn btn-primary btn-sm\">{{utilityService.getResourceValue(\"Export\")}}</button>\r\n </div>\r\n </BBSF-Form>\r\n </div>\r\n</ng-template>\r\n\r\n\r\n<!-- GenerateCode Modal -->\r\n<ng-template #GenerateCodeModal let-modal>\r\n <div class=\"modal-header pb-0 border-0 justify-content-end\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\"></h5>\r\n <button type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\" class=\"btn\r\n btn-sm btn-icon btn-active-color-primary\" (click)=\"modal.dismiss()\">\r\n <span class=\"svg-icon svg-icon-1\">\r\n <span [inlineSVG]=\"'./src/assets/images/arr061.svg'\"></span>\r\n </span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body scroll-y px-10 px-lg-15 pt-0 pb-15\">\r\n <div class=\"mb-13 text-center\">\r\n <h1 class=\"mb-3\">{{utilityService.getResourceValue(\"GenerateCode\")}}</h1>\r\n </div>\r\n <form [formGroup]=\"GenerateCodeForm\">\r\n\r\n <div class=\"Row\">\r\n <BBSF-TextArea [options]=\"GenerateCodeTextArea\"\r\n [group]=\"GenerateCodeForm\" #GenerateCodeInput>\r\n </BBSF-TextArea>\r\n </div>\r\n <div class=\"text-center pt-7\">\r\n <button #CloseGenerateCodeModal id=\"CloseGenerateCodeModal\"\r\n type=\"button\" class=\"btn btn-light me-3 btn-sm\"\r\n (click)=\"modal.dismiss()\">\r\n {{utilityService.getResourceValue(\"CancelLabel\")}}\r\n </button>\r\n <button type=\"button\" class=\"btn btn-primary btn-sm\"\r\n (click)=\"copyInputMessage()\">\r\n {{utilityService.getResourceValue(\"CopyToClipboard\")}}\r\n </button>\r\n </div>\r\n </form>\r\n </div>\r\n</ng-template>\r\n", components: [{ type: i5__namespace$1.BlockUIComponent, selector: "block-ui", inputs: ["name", "template", "message", "delayStart", "delayStop"] }, { type: i6__namespace.FormComponent, selector: "BBSF-Form", inputs: ["options"], outputs: ["OnChange"] }, { type: i6__namespace.MultiLingualTextBoxComponent, selector: "BBSF-MultiLingualTextBox", inputs: ["group", "options"], outputs: ["OnChange"] }, { type: i6__namespace.MultiLingualTextAreaComponent, selector: "BBSF-MultiLingualTextArea", inputs: ["group", "options"], outputs: ["OnChange"] }, { type: i6__namespace.TextboxComponent, selector: "BBSF-TextBox", inputs: ["group", "options"], outputs: ["OnChange"] }, { type: i6__namespace.DropdownListComponent, selector: "BBSF-DropdownList", inputs: ["group", "options"], outputs: ["OnChange", "onClear"] }, { type: i6__namespace.RepeaterTableComponent, selector: "BBSF-repeater-table", inputs: ["group", "options"] }, { type: i6__namespace.TextAreaComponent, selector: "BBSF-TextArea", inputs: ["group", "options"], outputs: ["OnChange"] }], directives: [{ type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i1__namespace$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "routerLinkActive"], exportAs: ["routerLinkActive"] }, { type: i11__namespace.InlineSVGDirective, selector: "[inlineSVG]", inputs: ["resolveSVGUrl", "replaceContents", "prepend", "injectComponent", "cacheSVG", "forceEvalStyles", "evalScripts", "inlineSVG", "setSVGAttributes", "removeSVGAttributes", "fallbackImgUrl", "onSVGLoaded"], outputs: ["onSVGInserted", "onSVGFailed"] }, { type: i11__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i11__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i11__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }] });
|
|
24450
24471
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: DocumentTemplateInfoComponent$1, decorators: [{
|
|
24451
24472
|
type: i0.Component,
|
|
24452
24473
|
args: [{
|
|
@@ -29590,6 +29611,11 @@
|
|
|
29590
29611
|
SurveyStatusEnum["ScoringTypeEnum_Published"] = "3c2bae84-f0df-48fb-b310-3b8326c0d77f";
|
|
29591
29612
|
SurveyStatusEnum["ScoringTypeEnum_Closed"] = "9b92dedc-e51a-438b-baf0-d0c75c01a492";
|
|
29592
29613
|
})(SurveyStatusEnum || (SurveyStatusEnum = {}));
|
|
29614
|
+
var SurveyMode;
|
|
29615
|
+
(function (SurveyMode) {
|
|
29616
|
+
SurveyMode[SurveyMode["Survey_Full_Access"] = 1] = "Survey_Full_Access";
|
|
29617
|
+
SurveyMode[SurveyMode["Survey_ReadOnly_Access"] = 2] = "Survey_ReadOnly_Access";
|
|
29618
|
+
})(SurveyMode || (SurveyMode = {}));
|
|
29593
29619
|
var SurveyOptionType;
|
|
29594
29620
|
(function (SurveyOptionType) {
|
|
29595
29621
|
SurveyOptionType["SingleSelect"] = "24fedf55-2a6c-4bda-a9a0-afc91ab908be";
|
|
@@ -29619,7 +29645,7 @@
|
|
|
29619
29645
|
SortingType["Ascending"] = "8c97ea5a-a224-49e8-98ba-476e3f9a6468";
|
|
29620
29646
|
SortingType["Descending"] = "33b99327-2e34-44fc-9ba2-9e85ff13022a";
|
|
29621
29647
|
})(SortingType || (SortingType = {}));
|
|
29622
|
-
var EmptyGuid = "00000000-0000-0000-0000-000000000000";
|
|
29648
|
+
var EmptyGuid$1 = "00000000-0000-0000-0000-000000000000";
|
|
29623
29649
|
|
|
29624
29650
|
var DeleteSurveyDTO = /** @class */ (function () {
|
|
29625
29651
|
function DeleteSurveyDTO() {
|
|
@@ -32897,6 +32923,7 @@
|
|
|
32897
32923
|
_this.surveyQuestionService = surveyQuestionService;
|
|
32898
32924
|
_this.activatedRoute = activatedRoute;
|
|
32899
32925
|
_this.surveyForm = new i11$1.FormGroup({});
|
|
32926
|
+
_this.enableActions = false;
|
|
32900
32927
|
_this.urlForm = new i11$1.FormGroup({});
|
|
32901
32928
|
_this.SearchTextBox = new i11$1.FormGroup({});
|
|
32902
32929
|
_this.loadInfo = false;
|
|
@@ -32929,26 +32956,28 @@
|
|
|
32929
32956
|
_this.router.navigate(['../../info/preview', _this.surveyID, _this.survey.audienceItemID], { relativeTo: _this.activatedRoute });
|
|
32930
32957
|
};
|
|
32931
32958
|
_this.takeSurvey = function () {
|
|
32932
|
-
_this.router.navigate(['../../info/submission', _this.surveyID], {
|
|
32959
|
+
_this.router.navigate(['../../info/submission', _this.surveyID], {
|
|
32960
|
+
relativeTo: _this.activatedRoute,
|
|
32961
|
+
});
|
|
32933
32962
|
};
|
|
32934
32963
|
_this.onSuccessHandler = function (success) {
|
|
32935
|
-
_this.utilityService.notifySuccessMessage(_this.l(
|
|
32964
|
+
_this.utilityService.notifySuccessMessage(_this.l('RecordUpdated'), null, null, false);
|
|
32936
32965
|
_this.masterLayoutService.reloadComponent();
|
|
32937
32966
|
};
|
|
32938
32967
|
_this.onSuccessDeleteHandler = function (success) {
|
|
32939
|
-
_this.utilityService.notifySuccessMessage(_this.l(
|
|
32940
|
-
_this.router.navigate([
|
|
32968
|
+
_this.utilityService.notifySuccessMessage(_this.l('RecordDeleted'), null, null, false);
|
|
32969
|
+
_this.router.navigate(['../../'], { relativeTo: _this.activatedRoute });
|
|
32941
32970
|
};
|
|
32942
32971
|
_this.onSuccessAddQuestionHandler = function (success) {
|
|
32943
|
-
_this.utilityService.notifySuccessMessage(_this.l(
|
|
32972
|
+
_this.utilityService.notifySuccessMessage(_this.l('RecordAdded'), null, null, false);
|
|
32944
32973
|
_this.masterLayoutService.reloadComponent();
|
|
32945
32974
|
};
|
|
32946
32975
|
_this.onSuccessEditQuestionHandler = function (success) {
|
|
32947
|
-
_this.utilityService.notifySuccessMessage(_this.l(
|
|
32976
|
+
_this.utilityService.notifySuccessMessage(_this.l('RecordUpdated'), null, null, false);
|
|
32948
32977
|
_this.masterLayoutService.reloadComponent();
|
|
32949
32978
|
};
|
|
32950
32979
|
_this.onSuccessDeleteQuestionHandler = function (success) {
|
|
32951
|
-
_this.utilityService.notifySuccessMessage(_this.l(
|
|
32980
|
+
_this.utilityService.notifySuccessMessage(_this.l('RecordDeleted'), null, null, false);
|
|
32952
32981
|
_this.masterLayoutService.reloadComponent();
|
|
32953
32982
|
};
|
|
32954
32983
|
_this.showDeleteSubmissionModal = function (id) {
|
|
@@ -32961,18 +32990,16 @@
|
|
|
32961
32990
|
_this.unEliminateSubmissionConfirmationModalControl.showUnEliminateModal(id);
|
|
32962
32991
|
};
|
|
32963
32992
|
_this.onSuccessDeleteHandlerSubmission = function (success) {
|
|
32964
|
-
_this.utilityService.notifySuccessMessage(_this.l(
|
|
32993
|
+
_this.utilityService.notifySuccessMessage(_this.l('RecordDeleted'), null, null, false);
|
|
32965
32994
|
_this.loadSubmissionSection();
|
|
32966
32995
|
};
|
|
32967
32996
|
_this.export = function () {
|
|
32968
|
-
_this.surveyService
|
|
32969
|
-
.
|
|
32970
|
-
.subscribe(function (result) {
|
|
32971
|
-
_this.download(result, _this.pageTitle + ".xlsx");
|
|
32997
|
+
_this.surveyService.export(_this.surveyID).subscribe(function (result) {
|
|
32998
|
+
_this.download(result, _this.pageTitle + '.xlsx');
|
|
32972
32999
|
});
|
|
32973
33000
|
};
|
|
32974
33001
|
_this.router.routeReuseStrategy.shouldReuseRoute = function () { return false; };
|
|
32975
|
-
_this.surveyID = _this.activatedRoute.snapshot.params[
|
|
33002
|
+
_this.surveyID = _this.activatedRoute.snapshot.params['id'];
|
|
32976
33003
|
return _this;
|
|
32977
33004
|
}
|
|
32978
33005
|
// Run the function only in the browser
|
|
@@ -32983,8 +33010,7 @@
|
|
|
32983
33010
|
});
|
|
32984
33011
|
}
|
|
32985
33012
|
};
|
|
32986
|
-
SurveyInfoComponent.prototype.ngAfterViewInit = function () {
|
|
32987
|
-
};
|
|
33013
|
+
SurveyInfoComponent.prototype.ngAfterViewInit = function () { };
|
|
32988
33014
|
SurveyInfoComponent.prototype.maybeDisposeRoot = function (divId) {
|
|
32989
33015
|
am5__namespace.array.each(am5__namespace.registry.rootElements, function (root) {
|
|
32990
33016
|
if (root) {
|
|
@@ -32994,7 +33020,6 @@
|
|
|
32994
33020
|
}
|
|
32995
33021
|
});
|
|
32996
33022
|
};
|
|
32997
|
-
;
|
|
32998
33023
|
SurveyInfoComponent.prototype.loadChart = function (item) {
|
|
32999
33024
|
var _this = this;
|
|
33000
33025
|
// Chart code goes in here
|
|
@@ -33013,32 +33038,37 @@
|
|
|
33013
33038
|
layout: root.verticalLayout,
|
|
33014
33039
|
}));
|
|
33015
33040
|
// Define data
|
|
33016
|
-
var data = item.options.map(function (value) {
|
|
33041
|
+
var data = item.options.map(function (value) {
|
|
33042
|
+
return {
|
|
33043
|
+
name: value.localizedTitle,
|
|
33044
|
+
value: value.numberOfSelectedTime,
|
|
33045
|
+
};
|
|
33046
|
+
});
|
|
33017
33047
|
// Create Y-axis
|
|
33018
33048
|
var yAxis = chart.yAxes.push(am5xy__namespace.ValueAxis.new(root, {
|
|
33019
33049
|
baseValue: 0,
|
|
33020
33050
|
maxPrecision: 0,
|
|
33021
33051
|
min: 0,
|
|
33022
33052
|
extraTooltipPrecision: 100,
|
|
33023
|
-
renderer: am5xy__namespace.AxisRendererY.new(root, {})
|
|
33053
|
+
renderer: am5xy__namespace.AxisRendererY.new(root, {}),
|
|
33024
33054
|
}));
|
|
33025
33055
|
// Create X-Axis
|
|
33026
33056
|
var xAxis = chart.xAxes.push(am5xy__namespace.CategoryAxis.new(root, {
|
|
33027
33057
|
renderer: am5xy__namespace.AxisRendererX.new(root, {}),
|
|
33028
|
-
categoryField:
|
|
33058
|
+
categoryField: 'name',
|
|
33029
33059
|
}));
|
|
33030
33060
|
xAxis.data.setAll(data);
|
|
33031
33061
|
// Create series
|
|
33032
33062
|
var series1 = chart.series.push(am5xy__namespace.ColumnSeries.new(root, {
|
|
33033
|
-
name:
|
|
33063
|
+
name: 'Question Options',
|
|
33034
33064
|
xAxis: xAxis,
|
|
33035
33065
|
yAxis: yAxis,
|
|
33036
|
-
valueYField:
|
|
33037
|
-
categoryXField:
|
|
33066
|
+
valueYField: 'value',
|
|
33067
|
+
categoryXField: 'name',
|
|
33038
33068
|
}));
|
|
33039
33069
|
series1.data.setAll(data);
|
|
33040
|
-
series1.set(
|
|
33041
|
-
series1.set(
|
|
33070
|
+
series1.set('fill', am5__namespace.color('#b68a35')); // set Series color to red
|
|
33071
|
+
series1.set('stroke', am5__namespace.color('#b68a35')); // set Series color to red
|
|
33042
33072
|
// Add legend
|
|
33043
33073
|
var legend = chart.children.push(am5__namespace.Legend.new(root, {}));
|
|
33044
33074
|
legend.data.push(series1);
|
|
@@ -33048,8 +33078,8 @@
|
|
|
33048
33078
|
x: 50,
|
|
33049
33079
|
});
|
|
33050
33080
|
legend.valueLabels.template.setAll({
|
|
33051
|
-
textAlign:
|
|
33052
|
-
paddingRight: 15
|
|
33081
|
+
textAlign: 'right',
|
|
33082
|
+
paddingRight: 15,
|
|
33053
33083
|
});
|
|
33054
33084
|
legend.itemContainers.template.setAll({
|
|
33055
33085
|
reverseChildren: true,
|
|
@@ -33065,7 +33095,7 @@
|
|
|
33065
33095
|
root.setThemes([am5themes_Animated__default["default"].new(root)]);
|
|
33066
33096
|
var chart = root.container.children.push(am5xy__namespace.XYChart.new(root, {
|
|
33067
33097
|
panY: false,
|
|
33068
|
-
layout: root.verticalLayout
|
|
33098
|
+
layout: root.verticalLayout,
|
|
33069
33099
|
}));
|
|
33070
33100
|
// Define data
|
|
33071
33101
|
var data = [];
|
|
@@ -33073,8 +33103,8 @@
|
|
|
33073
33103
|
if (Object.prototype.hasOwnProperty.call(item.results, key)) {
|
|
33074
33104
|
var value = item.results[key];
|
|
33075
33105
|
var object = {
|
|
33076
|
-
category:
|
|
33077
|
-
value: value
|
|
33106
|
+
category: '<=' + key,
|
|
33107
|
+
value: value,
|
|
33078
33108
|
};
|
|
33079
33109
|
data.push(object);
|
|
33080
33110
|
}
|
|
@@ -33085,25 +33115,25 @@
|
|
|
33085
33115
|
maxPrecision: 0,
|
|
33086
33116
|
min: 0,
|
|
33087
33117
|
extraTooltipPrecision: 100,
|
|
33088
|
-
renderer: am5xy__namespace.AxisRendererY.new(root, {})
|
|
33118
|
+
renderer: am5xy__namespace.AxisRendererY.new(root, {}),
|
|
33089
33119
|
}));
|
|
33090
33120
|
// Create X-Axis
|
|
33091
33121
|
var xAxis = chart.xAxes.push(am5xy__namespace.CategoryAxis.new(root, {
|
|
33092
33122
|
renderer: am5xy__namespace.AxisRendererX.new(root, {}),
|
|
33093
|
-
categoryField:
|
|
33123
|
+
categoryField: 'category',
|
|
33094
33124
|
}));
|
|
33095
33125
|
xAxis.data.setAll(data);
|
|
33096
33126
|
// Create series
|
|
33097
33127
|
var series1 = chart.series.push(am5xy__namespace.ColumnSeries.new(root, {
|
|
33098
|
-
name:
|
|
33128
|
+
name: 'Score',
|
|
33099
33129
|
xAxis: xAxis,
|
|
33100
33130
|
yAxis: yAxis,
|
|
33101
|
-
valueYField:
|
|
33102
|
-
categoryXField:
|
|
33131
|
+
valueYField: 'value',
|
|
33132
|
+
categoryXField: 'category',
|
|
33103
33133
|
}));
|
|
33104
33134
|
series1.data.setAll(data);
|
|
33105
|
-
series1.set(
|
|
33106
|
-
series1.set(
|
|
33135
|
+
series1.set('fill', am5__namespace.color('#b68a35')); // set Series color to red
|
|
33136
|
+
series1.set('stroke', am5__namespace.color('#b68a35')); // set Series color to red
|
|
33107
33137
|
// Add legend
|
|
33108
33138
|
var legend = chart.children.push(am5__namespace.Legend.new(root, {}));
|
|
33109
33139
|
legend.data.setAll(chart.series.values);
|
|
@@ -33113,8 +33143,8 @@
|
|
|
33113
33143
|
x: 50,
|
|
33114
33144
|
});
|
|
33115
33145
|
legend.valueLabels.template.setAll({
|
|
33116
|
-
textAlign:
|
|
33117
|
-
paddingRight: 15
|
|
33146
|
+
textAlign: 'right',
|
|
33147
|
+
paddingRight: 15,
|
|
33118
33148
|
});
|
|
33119
33149
|
legend.itemContainers.template.setAll({
|
|
33120
33150
|
reverseChildren: true,
|
|
@@ -33134,45 +33164,58 @@
|
|
|
33134
33164
|
};
|
|
33135
33165
|
SurveyInfoComponent.prototype.ngOnInit = function () {
|
|
33136
33166
|
var _this = this;
|
|
33167
|
+
if (SurveyModule.surveyMode == SurveyMode.Survey_Full_Access)
|
|
33168
|
+
this.enableActions = true;
|
|
33137
33169
|
this.surveyService.getInfo(this.surveyID).subscribe(function (result) {
|
|
33138
33170
|
_this.survey = result;
|
|
33139
33171
|
_this.TextBoxWithExternalURL = new i6.TextBoxOptions();
|
|
33140
|
-
_this.TextBoxWithExternalURL.Name =
|
|
33141
|
-
_this.TextBoxWithExternalURL.LabelKey =
|
|
33172
|
+
_this.TextBoxWithExternalURL.Name = 'TextBoxWithExternalURL';
|
|
33173
|
+
_this.TextBoxWithExternalURL.LabelKey = 'External_URL';
|
|
33142
33174
|
_this.TextBoxWithExternalURL.Type = i6.InputType.Text;
|
|
33143
33175
|
_this.TextBoxWithExternalURL.ViewType = i6.ControlLayout.Vertical;
|
|
33144
33176
|
_this.TextBoxWithExternalURL.ForceDirection = i6.ForceDirection.English;
|
|
33145
33177
|
_this.TextBoxWithExternalURL.EnableCopyToClipboard = true;
|
|
33146
33178
|
_this.TextBoxWithExternalURL.Value = _this.survey.externalURL;
|
|
33147
33179
|
_this.TextBoxWithInternalURL = new i6.TextBoxOptions();
|
|
33148
|
-
_this.TextBoxWithInternalURL.Name =
|
|
33149
|
-
_this.TextBoxWithInternalURL.LabelKey =
|
|
33180
|
+
_this.TextBoxWithInternalURL.Name = 'TextBoxWithInternalURL';
|
|
33181
|
+
_this.TextBoxWithInternalURL.LabelKey = 'Internal_URL';
|
|
33150
33182
|
_this.TextBoxWithInternalURL.Type = i6.InputType.Text;
|
|
33151
33183
|
_this.TextBoxWithInternalURL.ViewType = i6.ControlLayout.Vertical;
|
|
33152
33184
|
_this.TextBoxWithInternalURL.ForceDirection = i6.ForceDirection.English;
|
|
33153
33185
|
_this.TextBoxWithInternalURL.EnableCopyToClipboard = true;
|
|
33154
33186
|
_this.TextBoxWithInternalURL.Value = _this.survey.internalURL;
|
|
33155
33187
|
_this.breadCrumb = [];
|
|
33156
|
-
_this.breadCrumb.push(new i6.BreadCrumb(_this.l(
|
|
33188
|
+
_this.breadCrumb.push(new i6.BreadCrumb(_this.l('Home'), false, '/'), new i6.BreadCrumb(_this.l('Surveys_Header'), false, '../../'), new i6.BreadCrumb(_this.l('Survey_Details'), true));
|
|
33157
33189
|
_this.pageHeaderOptions = new i6.PageHeaderOptions();
|
|
33158
33190
|
_this.pageHeaderOptions.TitleValue = _this.survey.localizedTitle;
|
|
33159
33191
|
_this.pageHeaderOptions.SearchTextBox.Active = false;
|
|
33160
33192
|
_this.pageHeaderOptions.BreadCrumb.Active = true;
|
|
33161
33193
|
_this.pageHeaderOptions.BreadCrumb.BreadCrumbItems = _this.breadCrumb;
|
|
33162
33194
|
_this.pageHeaderOptions.DropDownActions.Active = true;
|
|
33163
|
-
|
|
33164
|
-
|
|
33165
|
-
|
|
33166
|
-
|
|
33195
|
+
if (_this.enableActions)
|
|
33196
|
+
_this.pageHeaderOptions.DropDownActions.DropdownActionItems.push(new i6.DropdownActionItem(_this.l('Delete'), '/assets/images/Trash.svg', _this.showDeleteModal));
|
|
33197
|
+
_this.pageHeaderOptions.DropDownActions.DropdownActionItems.push(new i6.DropdownActionItem(_this.l('Export'), '/assets/images/export.svg', _this.export));
|
|
33198
|
+
if (_this.enableActions) {
|
|
33199
|
+
if (_this.survey.statusItemID.toLocaleLowerCase() ==
|
|
33200
|
+
_this.SurveyStatusEnum.ScoringTypeEnum_Draft.toLocaleLowerCase() ||
|
|
33201
|
+
_this.survey.statusItemID.toLocaleLowerCase() ==
|
|
33202
|
+
_this.SurveyStatusEnum.ScoringTypeEnum_Upcoming.toLocaleLowerCase())
|
|
33203
|
+
_this.pageHeaderOptions.DropDownActions.DropdownActionItems.push(new i6.DropdownActionItem(_this.l('Edit'), '/assets/images/Edit.svg', _this.showEditModal));
|
|
33204
|
+
}
|
|
33167
33205
|
if (_this.survey.totalQuestionCount > 0)
|
|
33168
|
-
_this.pageHeaderOptions.DropDownActions.DropdownActionItems.push(new i6.DropdownActionItem(_this.l(
|
|
33169
|
-
if (_this.survey.statusItemID.toLocaleLowerCase() ==
|
|
33206
|
+
_this.pageHeaderOptions.DropDownActions.DropdownActionItems.push(new i6.DropdownActionItem(_this.l('Preview'), '/assets/images/views.svg', _this.previewSurvey));
|
|
33207
|
+
if (_this.survey.statusItemID.toLocaleLowerCase() ==
|
|
33208
|
+
_this.SurveyStatusEnum.ScoringTypeEnum_Published.toLocaleLowerCase())
|
|
33170
33209
|
_this.canTakeSurvey = true;
|
|
33171
|
-
if (_this.
|
|
33172
|
-
|
|
33173
|
-
|
|
33174
|
-
|
|
33175
|
-
|
|
33210
|
+
if (_this.enableActions) {
|
|
33211
|
+
if (_this.survey.statusItemID.toLocaleLowerCase() ==
|
|
33212
|
+
_this.SurveyStatusEnum.ScoringTypeEnum_Draft.toLocaleLowerCase() ||
|
|
33213
|
+
_this.survey.statusItemID.toLocaleLowerCase() ==
|
|
33214
|
+
_this.SurveyStatusEnum.ScoringTypeEnum_Closed.toLocaleLowerCase())
|
|
33215
|
+
_this.pageHeaderOptions.DropDownActions.DropdownActionItems.push(new i6.DropdownActionItem(_this.l('Publish'), '/assets/images/Submit.svg', _this.showPublishModal));
|
|
33216
|
+
else
|
|
33217
|
+
_this.pageHeaderOptions.DropDownActions.DropdownActionItems.push(new i6.DropdownActionItem(_this.l('UnPublish'), '/assets/images/unlink.svg', _this.showUnPublishModal));
|
|
33218
|
+
}
|
|
33176
33219
|
_this.EN = _this.utilityService.isCurrentLanguageEnglish();
|
|
33177
33220
|
_this.loadQuestionSection();
|
|
33178
33221
|
_this.loadSubmissionSection();
|
|
@@ -33193,7 +33236,9 @@
|
|
|
33193
33236
|
for (var index = 0; index < this.pagingQuestionResult.length; index++) {
|
|
33194
33237
|
this.pagingQuestionResult[index].displayOrder = index + 1;
|
|
33195
33238
|
}
|
|
33196
|
-
this.surveyQuestionService
|
|
33239
|
+
this.surveyQuestionService
|
|
33240
|
+
.updateDisplayOrder(this.pagingQuestionResult)
|
|
33241
|
+
.subscribe(function (e) {
|
|
33197
33242
|
_this.utilityService.stopBlockUI();
|
|
33198
33243
|
});
|
|
33199
33244
|
};
|
|
@@ -33231,25 +33276,27 @@
|
|
|
33231
33276
|
};
|
|
33232
33277
|
SurveyInfoComponent.prototype.loadQuestionSection = function () {
|
|
33233
33278
|
this.SearchTextBoxOptions = new i6.TextBoxOptions();
|
|
33234
|
-
this.SearchTextBoxOptions.Name =
|
|
33279
|
+
this.SearchTextBoxOptions.Name = 'SearchTextBox';
|
|
33235
33280
|
this.SearchTextBoxOptions.Type = i6.InputType.Text;
|
|
33236
33281
|
this.SearchTextBoxOptions.TrimTextOnChange = true;
|
|
33237
|
-
this.SearchTextBoxOptions.Placeholder = this.l(
|
|
33238
|
-
this.SearchTextBoxOptions.ExtraClasses =
|
|
33282
|
+
this.SearchTextBoxOptions.Placeholder = this.l('Search');
|
|
33283
|
+
this.SearchTextBoxOptions.ExtraClasses =
|
|
33284
|
+
'form-control form-control-sm form-control-solid search-box';
|
|
33239
33285
|
this.SearchTextBoxOptions.HideLabel = true;
|
|
33240
|
-
this.SearchTextBoxOptions.Icon =
|
|
33286
|
+
this.SearchTextBoxOptions.Icon = '../../../assets/images/search.svg';
|
|
33241
33287
|
this.SurveyIDOptions = new i6.TextBoxOptions();
|
|
33242
|
-
this.SurveyIDOptions.Name =
|
|
33288
|
+
this.SurveyIDOptions.Name = 'SurveyID';
|
|
33243
33289
|
this.SurveyIDOptions.Value = this.surveyID;
|
|
33244
33290
|
this.searchSurveyIDFilter = new i6.FilterItem();
|
|
33245
33291
|
this.searchSurveyIDFilter.FormControlName = this.SurveyIDOptions.Name;
|
|
33246
|
-
this.searchSurveyIDFilter.ActionParameterName =
|
|
33292
|
+
this.searchSurveyIDFilter.ActionParameterName = 'SurveyID';
|
|
33247
33293
|
this.searchSurveyIDFilter.IsFormControl = true;
|
|
33248
33294
|
this.searchSurveyIDFilter.FilterType = i6.FilterType.TextBox;
|
|
33249
33295
|
this.pagingQuestionOptions = new i6.PagingOptions();
|
|
33250
33296
|
this.pagingQuestionOptions.PageSize = 1000;
|
|
33251
33297
|
this.pagingQuestionOptions.DisableBlockUI = true;
|
|
33252
|
-
this.pagingQuestionOptions.ActionPostURL =
|
|
33298
|
+
this.pagingQuestionOptions.ActionPostURL =
|
|
33299
|
+
this.apiQuestionURL + 'GetAllQuestions';
|
|
33253
33300
|
this.pagingQuestionOptions.Filters = [this.searchSurveyIDFilter];
|
|
33254
33301
|
};
|
|
33255
33302
|
SurveyInfoComponent.prototype.setQuestionListingResult = function (result) {
|
|
@@ -33257,38 +33304,49 @@
|
|
|
33257
33304
|
this.pagingQuestionResultOriginal = result;
|
|
33258
33305
|
this.showPageContent = true;
|
|
33259
33306
|
this.utilityService.stopBlockUI();
|
|
33260
|
-
var overviewQuestions = this.pagingQuestionResultOriginal.filter(function (item) { return item.questionTypeItemID == SurveyOptionType.RadioButton ||
|
|
33307
|
+
var overviewQuestions = this.pagingQuestionResultOriginal.filter(function (item) { return item.questionTypeItemID == SurveyOptionType.RadioButton ||
|
|
33308
|
+
item.questionTypeItemID == SurveyOptionType.SingleSelect ||
|
|
33309
|
+
item.questionTypeItemID == SurveyOptionType.MultipleSelect; });
|
|
33261
33310
|
if (overviewQuestions.length > 0)
|
|
33262
33311
|
this.loadSurveyOverview();
|
|
33263
33312
|
};
|
|
33264
33313
|
SurveyInfoComponent.prototype.loadSubmissionSection = function () {
|
|
33265
33314
|
this.SearchTextBoxOptions = new i6.TextBoxOptions();
|
|
33266
|
-
this.SearchTextBoxOptions.Name =
|
|
33315
|
+
this.SearchTextBoxOptions.Name = 'SearchTextBox';
|
|
33267
33316
|
this.SearchTextBoxOptions.Type = i6.InputType.Text;
|
|
33268
33317
|
this.SearchTextBoxOptions.TrimTextOnChange = true;
|
|
33269
|
-
this.SearchTextBoxOptions.Placeholder = this.l(
|
|
33270
|
-
this.SearchTextBoxOptions.ExtraClasses =
|
|
33318
|
+
this.SearchTextBoxOptions.Placeholder = this.l('Search');
|
|
33319
|
+
this.SearchTextBoxOptions.ExtraClasses =
|
|
33320
|
+
'form-control form-control-sm form-control-solid search-box';
|
|
33271
33321
|
this.SearchTextBoxOptions.HideLabel = true;
|
|
33272
|
-
this.SearchTextBoxOptions.Icon =
|
|
33322
|
+
this.SearchTextBoxOptions.Icon = '../../../assets/images/search.svg';
|
|
33273
33323
|
this.searchSubmissionTextFilter = new i6.FilterItem();
|
|
33274
|
-
this.searchSubmissionTextFilter.FormControlName =
|
|
33275
|
-
|
|
33324
|
+
this.searchSubmissionTextFilter.FormControlName =
|
|
33325
|
+
this.SearchTextBoxOptions.Name;
|
|
33326
|
+
this.searchSubmissionTextFilter.ActionParameterName = 'SearchText';
|
|
33276
33327
|
this.searchSubmissionTextFilter.IsFormControl = true;
|
|
33277
33328
|
this.searchSubmissionTextFilter.FilterType = i6.FilterType.TextBox;
|
|
33278
33329
|
this.SurveyIDOptions = new i6.TextBoxOptions();
|
|
33279
|
-
this.SurveyIDOptions.Name =
|
|
33330
|
+
this.SurveyIDOptions.Name = 'SurveyID';
|
|
33280
33331
|
this.SurveyIDOptions.Value = this.surveyID;
|
|
33281
33332
|
this.searchSurveySubmissionIDFilter = new i6.FilterItem();
|
|
33282
|
-
this.searchSurveySubmissionIDFilter.FormControlName =
|
|
33283
|
-
|
|
33333
|
+
this.searchSurveySubmissionIDFilter.FormControlName =
|
|
33334
|
+
this.SurveyIDOptions.Name;
|
|
33335
|
+
this.searchSurveySubmissionIDFilter.ActionParameterName = 'SurveyID';
|
|
33284
33336
|
this.searchSurveySubmissionIDFilter.IsFormControl = true;
|
|
33285
33337
|
this.searchSurveySubmissionIDFilter.FilterType = i6.FilterType.TextBox;
|
|
33286
33338
|
this.pagingSubmissionOptions = new i6.PagingOptions();
|
|
33287
33339
|
this.pagingSubmissionOptions.PageSize = 10;
|
|
33288
33340
|
this.pagingSubmissionOptions.DisableBlockUI = true;
|
|
33289
|
-
this.pagingSubmissionOptions.ActionPostURL =
|
|
33290
|
-
|
|
33291
|
-
this.pagingSubmissionOptions.
|
|
33341
|
+
this.pagingSubmissionOptions.ActionPostURL =
|
|
33342
|
+
this.surveyService.apiURL + 'GetAllSurveySubmission';
|
|
33343
|
+
this.pagingSubmissionOptions.OnKeyPressFiltersControlNames = [
|
|
33344
|
+
this.SearchTextBoxOptions.Name,
|
|
33345
|
+
];
|
|
33346
|
+
this.pagingSubmissionOptions.Filters = [
|
|
33347
|
+
this.searchSurveySubmissionIDFilter,
|
|
33348
|
+
this.searchSubmissionTextFilter,
|
|
33349
|
+
];
|
|
33292
33350
|
};
|
|
33293
33351
|
SurveyInfoComponent.prototype.setSubmissionListingResult = function (result) {
|
|
33294
33352
|
this.pagingSubmissionResult = result;
|
|
@@ -33312,13 +33370,13 @@
|
|
|
33312
33370
|
return SurveyInfoComponent;
|
|
33313
33371
|
}(i6.AppBaseComponent));
|
|
33314
33372
|
SurveyInfoComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SurveyInfoComponent, deps: [{ token: i0__namespace.Injector }, { token: i0.PLATFORM_ID }, { token: i0__namespace.NgZone }, { token: i1__namespace$1.Router }, { token: i1__namespace.MasterLayoutService }, { token: SurveyService }, { token: SurveyQuestionService }, { token: i1__namespace$1.ActivatedRoute }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
33315
|
-
SurveyInfoComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SurveyInfoComponent, selector: "app-survey-info", viewQueries: [{ propertyName: "pagingElement", first: true, predicate: ["pagingViewElement"], descendants: true }, { propertyName: "deleteConfirmationModalControl", first: true, predicate: ["deleteConfirmationModalControl"], descendants: true }, { propertyName: "editModal", first: true, predicate: ["editModal"], descendants: true }, { propertyName: "editQuestionModal", first: true, predicate: ["editQuestionModal"], descendants: true }, { propertyName: "deleteQuestionConfirmationModalControl", first: true, predicate: ["deleteQuestionModal"], descendants: true }, { propertyName: "AddQuestionComponent", first: true, predicate: ["addQuestionModal"], descendants: true }, { propertyName: "addPublishModal", first: true, predicate: ["addPublishModal"], descendants: true }, { propertyName: "addUnPublishModal", first: true, predicate: ["addUnPublishModal"], descendants: true }, { propertyName: "deleteSubmissionConfirmationModalControl", first: true, predicate: ["deleteSubmissionModal"], descendants: true }, { propertyName: "eliminateSubmissionConfirmationModalControl", first: true, predicate: ["eliminateModal"], descendants: true }, { propertyName: "unEliminateSubmissionConfirmationModalControl", first: true, predicate: ["unEliminateModal"], descendants: true }, { propertyName: "pagingQuestionElement", first: true, predicate: ["pagingQuestionViewElement"], descendants: true }, { propertyName: "pagingSubmissionElement", first: true, predicate: ["pagingSubmissionViewElement"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<!--toolbar-->\r\n<div *ngIf=\"loadInfo\">\r\n <bbsf-page-header-component [options]=\"pageHeaderOptions\"></bbsf-page-header-component>\r\n</div>\r\n<!--end toolbar-->\r\n<div class=\"container-xxl\">\r\n <div class=\"info-container\" *ngIf=\"loadInfo\">\r\n <div class=\"section-margin-bottom\">\r\n <div class=\"d-flex justify-content-between align-items-center\">\r\n <div class=\"survery-date border-0\">\r\n <div class=\"icon-boxes align-items-baseline\">\r\n <div ngbTooltip=\"{{l('Date')}}\" class=\"icon-box\">\r\n <div class=\"symbol\">\r\n <span class=\"symbol-label\">\r\n <span class=\"svg-icon svg-icon-4\" [inlineSVG]=\"'/assets/images/calendar.svg'\">\r\n </span>\r\n </span>\r\n </div>\r\n <span class=\"survey-counter-title\" *ngIf=\"survey.startDate==null\">\r\n {{l('NotStartedYet')}}\r\n </span>\r\n <span class=\"survey-counter-title d-flex flex-stack\" *ngIf=\"survey.startDate!=null\">\r\n {{survey.startDate |surveyDate}} - {{survey.endDate!=null?(survey.endDate|surveyDate):\"\"}}\r\n <span class=\"badge badge-light\" *ngIf=\"survey.endDate==null\">{{l('HasNoEnd')}}</span>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n <div>\r\n <span class=\"badge badge-light\" [ngClass]=\"getStatus(survey.statusItemID)\">{{survey.localizedStatus}}</span>\r\n <span ngbTooltip=\"{{l('Audience')}}\" class=\"badge badge-light mx-2\">{{survey.localizedAudience}}</span>\r\n </div>\r\n </div>\r\n <div class=\"row card-data\">\r\n <div class=\"col-lg-6\">\r\n <BBSF-TextBox *ngIf=\"canTakeSurvey&& (survey.audienceItemID==AudienceTypeEnum.Internal||survey.audienceItemID==AudienceTypeEnum.Both)\"\r\n [options]=\"TextBoxWithInternalURL\" [group]=\"urlForm\"></BBSF-TextBox>\r\n\r\n </div>\r\n <div class=\"col-lg-6\">\r\n <BBSF-TextBox *ngIf=\"canTakeSurvey&& (survey.audienceItemID==AudienceTypeEnum.External||survey.audienceItemID==AudienceTypeEnum.Both)\"\r\n [options]=\"TextBoxWithExternalURL\" [group]=\"urlForm\"></BBSF-TextBox>\r\n </div>\r\n </div>\r\n <p class=\"card-description\" *ngIf=\"survey.localizedDesc\">\r\n {{survey.localizedDesc}}\r\n </p>\r\n </div>\r\n <div class=\"section-margin-bottom\">\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav nav-stretch nav-line-tabs nav-custom\">\r\n <li ngbNavItem class=\"nav-item\" [destroyOnHide]=\"true\">\r\n <a class=\"nav-link\" ngbNavLink>\r\n <h4>\r\n {{l('Questions')}}\r\n </h4>\r\n </a>\r\n <ng-template ngbNavContent>\r\n <div class=\"section-info\">\r\n <div class=\"tabs-search page-subheader justify-content-between\">\r\n <BBSF-TextBox [options]=\"SearchTextBoxOptions\" [group]=\"filtersQuestionForm\"\r\n (OnChange)=\"searchInQuestionList($event)\"></BBSF-TextBox>\r\n <BBSF-TextBox [options]=\"SurveyIDOptions\" [group]=\"filtersQuestionForm\" hidden></BBSF-TextBox>\r\n <button type=\"button\" *ngIf=\"canAddQuestion\" class=\"btn btn-brand btn-sm subheader-btn\"\r\n (click)=\"showAddQuestionModal()\">\r\n {{l('Add')}}\r\n </button>\r\n </div>\r\n <div [hidden]=\"pagingQuestionResult.length == 0\">\r\n <div ngbNavContent cdkDropList (cdkDropListDropped)=\"drop($event)\">\r\n <div class=\"question-info\" [cdkDragDisabled]=\"canTakeSurvey\" cdkDrag\r\n *ngFor=\"let item of pagingQuestionResult; let i=index\">\r\n <div class=\"symbol symbol-25px me-4\" cdkDragHandle *ngIf=\"!canTakeSurvey\">\r\n <span class=\"symbol-label\">\r\n <span class=\"svg-icon svg-icon-7\" [inlineSVG]=\"'/assets/images/reorder.svg'\">\r\n </span>\r\n </span>\r\n </div>\r\n <div class=\"card card-listing\">\r\n <div class=\"card-header\">\r\n <div class=\"card-title\">\r\n <span class=\"badge badge-light\"\r\n ngbTooltip=\"{{l('Type')}}\">{{item.localizedQuestionTypeItem}}</span>\r\n <span class=\"badge badge-light mx-2\"\r\n ngbTooltip=\"{{l('Audience')}}\">{{item.localizedAudienceType}}</span>\r\n <span class=\"badge badge-brand-light mx-2\"\r\n *ngIf=\"item.isRelatedToSurveyQuestion\">{{l('Linked')}}</span>\r\n <span class=\"badge badge-light mx-2\" *ngIf=\"!item.isVisible\" ngbTooltip=\"{{l('NotVisible')}}\">\r\n {{l(\"NotVisible\")}}\r\n </span>\r\n </div>\r\n <div class=\"card-toolbar\">\r\n <div ngbDropdown container=\"body\" class=\"dropdown-custom\"\r\n [placement]=\"EN ? 'bottom-right' : 'bottom-left'\">\r\n <button type=\"button\" class=\"dropdown-toggle-custom btn btn-clear\" ngbDropdownToggle>\r\n <span class=\"svg-icon svg-icon-3\"\r\n [inlineSVG]=\"'/assets/images/card-dropdown.svg'\"></span>\r\n </button>\r\n <div ngbDropdownMenu class=\"dropdown-menu-custom\">\r\n <button *ngIf=\"!(canEditQuestion&&canDeleteQuestion)\"\r\n (click)=\"showEditQuestionModal(item.iD_GUID,true)\" apppreventdoubleclick type=\"button\"\r\n ngbDropdownItem class=\"dropdown-button\">\r\n <span class=\"svg-icon svg-icon-3\" [inlineSVG]=\"'/assets/images/info.svg'\">\r\n </span>\r\n {{l(\"Details\")}}\r\n </button>\r\n\r\n <button *ngIf=\"canEditQuestion\" (click)=\"showEditQuestionModal(item.iD_GUID,false)\"\r\n apppreventdoubleclick type=\"button\" ngbDropdownItem class=\"dropdown-button\">\r\n <span class=\"svg-icon svg-icon-3\" [inlineSVG]=\"'/assets/images/Edit.svg'\">\r\n </span>\r\n {{l(\"Edit\")}}\r\n </button>\r\n <button type=\"button\" *ngIf=\"canDeleteQuestion\"\r\n (click)=\"showDeleteQuestionModal(item.iD_GUID)\" apppreventdoubleclick ngbDropdownItem\r\n class=\"dropdown-button\">\r\n <span class=\"svg-icon svg-icon-3\"\r\n [inlineSVG]=\"'/assets/images/Trash.svg'\"></span> {{l(\"Delete\")}}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card-body\">\r\n <div class=\"survey-counter\">\r\n <span class=\"survey-counter-title\">{{item.localizedText}}</span>\r\n <span class=\"badge badge-light-brand badge-square ms-2 me-0\"\r\n ngbTooltip=\"{{l('Score')}}\">{{item.totalScore}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <BBSF-Paging (Items)=\"setQuestionListingResult($event)\" [options]=\"pagingQuestionOptions\"\r\n [group]=\"filtersQuestionForm\" #pagingQuestionViewElement></BBSF-Paging>\r\n </div>\r\n </div>\r\n <app-no-results *ngIf=\"pagingQuestionResult.length == 0\"></app-no-results>\r\n\r\n </ng-template>\r\n </li>\r\n <li ngbNavItem class=\"nav-item\" [destroyOnHide]=\"true\">\r\n <a class=\"nav-link\" ngbNavLink>\r\n <h4>\r\n {{l('Submissions')}}\r\n </h4>\r\n </a>\r\n <ng-template ngbNavContent>\r\n <div class=\"section-info\" ngbNavContent>\r\n <div class=\"tabs-search page-subheader justify-content-between\">\r\n <BBSF-TextBox [options]=\"SearchTextBoxOptions\" [group]=\"filtersSubmissionForm\"></BBSF-TextBox>\r\n <BBSF-TextBox [options]=\"SurveyIDOptions\" [group]=\"filtersSubmissionForm\" hidden></BBSF-TextBox>\r\n </div>\r\n <div class=\"info-container\" [hidden]=\"pagingSubmissionResult.length == 0\">\r\n <div class=\"table-responsive\">\r\n <table class=\"table table-custom\">\r\n <thead>\r\n <tr class=\"table-header\">\r\n <th> {{l('Name')}}</th>\r\n <th>{{l('Email')}}</th>\r\n <th>{{l('Type')}}</th>\r\n <th>{{l('Created')}}</th>\r\n <th>{{l('Score')}}</th>\r\n <th class=\"table-action\">{{l(\"Action\")}}</th>\r\n </tr>\r\n </thead>\r\n <tbody class=\"table-body\">\r\n <tr *ngFor=\"let item of pagingSubmissionResult; let i=index\">\r\n <td>\r\n <span class=\"line-clamp-2\">\r\n {{item.localizedName}}\r\n <span class=\"badge badge-danger mx-2\" *ngIf=\"item.isEliminated&&item.allowElimination\">\r\n {{l('Eliminated')}}\r\n </span>\r\n </span>\r\n </td>\r\n <td>\r\n {{item.email}}\r\n </td>\r\n <td>\r\n <div class=\"badge badge-light\">\r\n {{item.isInternalUser? l('InternalUsers'):l('ExternalUsers')}}\r\n </div>\r\n </td>\r\n <td>{{item.created|surveyDate}}</td>\r\n <td>{{item.totalScore}}</td>\r\n <td class=\"table-action\">\r\n <button type=\"button\" ngbTooltip=\"{{l('Preview')}}\"\r\n [routerLink]=\"['../../info/result', item.iD_GUID]\" class=\"btn btn-sm p-2\">\r\n <span class=\"svg-icon svg-icon-3\"\r\n [inlineSVG]=\"'/assets/images/answers.svg'\"></span>\r\n </button>\r\n\r\n <button type=\"button\" *ngIf=\"!item.isEliminated&&item.allowElimination\"\r\n ngbTooltip=\"{{this.l('EliminateHint')}}\" class=\"btn btn-sm p-2\">\r\n <span class=\"svg-icon svg-icon-3\" (click)=\"showEliminateSubmissionModal(item.iD_GUID)\"\r\n apppreventdoubleclick\r\n [inlineSVG]=\"'/assets/images/unlink.svg'\"></span>\r\n </button>\r\n\r\n <button type=\"button\" *ngIf=\"item.isEliminated&&item.allowElimination\"\r\n ngbTooltip=\"{{this.l('UnEliminate')}}\" class=\"btn btn-sm p-2\">\r\n <span class=\"svg-icon svg-icon-3\" (click)=\"showUnEliminateSubmissionModal(item.iD_GUID)\"\r\n apppreventdoubleclick [inlineSVG]=\"'/assets/images/link.svg'\"></span>\r\n </button>\r\n\r\n <button type=\"button\" ngbTooltip=\"{{l('Delete')}}\" class=\"btn btn-sm p-2\">\r\n <span class=\"svg-icon svg-icon-3\" (click)=\"showDeleteSubmissionModal(item.iD_GUID)\"\r\n apppreventdoubleclick [inlineSVG]=\"'/assets/images/Trash.svg'\"></span>\r\n </button>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n </div>\r\n <BBSF-Paging (Items)=\"setSubmissionListingResult($event)\" [options]=\"pagingSubmissionOptions\"\r\n [group]=\"filtersSubmissionForm\" #pagingSubmissionViewElement></BBSF-Paging>\r\n </div>\r\n <app-no-results *ngIf=\"pagingSubmissionResult.length == 0\"></app-no-results>\r\n\r\n </ng-template>\r\n </li>\r\n <li ngbNavItem class=\"nav-item\" *ngIf=\"showOverview\" [destroyOnHide]=\"true\">\r\n <a class=\"nav-link\" ngbNavLink (click)=\"loadSurveyOverview()\">\r\n <h4>\r\n {{l(\"Overview\") }}\r\n </h4>\r\n </a>\r\n <ng-template ngbNavContent>\r\n <div class=\"section-info\" ngbNavContent>\r\n\r\n <div class=\"row\">\r\n <div class=\"col-md-3\">\r\n <div class=\"chart-container\">\r\n <div class=\"chart-title\"> {{l(\"Questions\") }}</div>\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-pills custom-navs\" orientation=\"vertical\">\r\n <li ngbNavItem=\"{{item.localizedTitle}}\" [destroyOnHide]=\"true\"\r\n *ngFor=\"let item of questionOverviewResult\" (click)=\"loadChart(item)\">\r\n <a ngbNavLink>{{item.localizedTitle}}</a>\r\n\r\n </li>\r\n\r\n </ul>\r\n </div>\r\n </div>\r\n <div class=\"col-md-9\">\r\n <div class=\"chart-container\">\r\n <div class=\"chart-title\">{{l(\"Overview\") }}</div>\r\n <div id=\"chartdiv\" style=\"width: 100%; height: 400px\"></div>\r\n <div class=\"hide-logo\"></div>\r\n </div>\r\n <div class=\"chart-container\">\r\n <div class=\"chart-title\">{{l(\"Score\") }} </div>\r\n <div id=\"chartOverview\" style=\"width: 100%; height: 400px\"></div>\r\n <div class=\"hide-logo\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </li>\r\n </ul>\r\n\r\n\r\n <div [ngbNavOutlet]=\"nav\"></div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n <app-edit-survey #editModal [pagingElement]=\"pagingElement\" [onSuccessHandler]=\"onSuccessHandler\"></app-edit-survey>\r\n <app-delete-survey #deleteConfirmationModalControl [pagingElement]=\"pagingElement\"\r\n [onSuccessHandler]=\"onSuccessDeleteHandler\"></app-delete-survey>\r\n <app-add-question #addQuestionModal [pagingElement]=\"pagingQuestionElement\" [onSuccessAddHandler]=\"onSuccessAddQuestionHandler\"></app-add-question>\r\n <app-edit-question #editQuestionModal [pagingElement]=\"pagingQuestionElement\" [onSuccessEditHandler]=\"onSuccessEditQuestionHandler\"></app-edit-question>\r\n <app-delete-question #deleteQuestionModal [pagingElement]=\"pagingQuestionElement\" [onSuccessHandler]=\"onSuccessDeleteQuestionHandler\"></app-delete-question>\r\n <app-publish-survey #addPublishModal [pagingElement]=\"pagingElement\" [onSuccessHandler]=\"onSuccessHandler\" *ngIf=\"loadInfo\" [showToggle]=\"survey.isShowToggleOfScoreResultAfterSubmission\">\r\n </app-publish-survey>\r\n <app-unpublish-survey #addUnPublishModal [pagingElement]=\"pagingElement\" [onSuccessHandler]=\"onSuccessHandler\">\r\n </app-unpublish-survey>\r\n <app-delete-submission #deleteSubmissionModal [pagingElement]=\"pagingSubmissionElement\"\r\n [onSuccessHandler]=\"onSuccessDeleteHandlerSubmission\"></app-delete-submission>\r\n <app-eliminate-submission #eliminateModal [pagingElement]=\"pagingSubmissionElement\"\r\n [onSuccessHandler]=\"onSuccessHandler\"></app-eliminate-submission>\r\n <app-unEliminate-submission #unEliminateModal [pagingElement]=\"pagingSubmissionElement\"\r\n [onSuccessHandler]=\"onSuccessHandler\"></app-unEliminate-submission>\r\n", styles: [""], components: [{ type: i6__namespace.PageHeaderComponentComponent, selector: "bbsf-page-header-component", inputs: ["group", "options"] }, { type: i6__namespace.TextboxComponent, selector: "BBSF-TextBox", inputs: ["group", "options"], outputs: ["OnChange"] }, { type: i6__namespace.PagingComponent, selector: "BBSF-Paging", inputs: ["options", "group"], outputs: ["Items"] }, { type: NoResultsComponent, selector: "app-no-results" }, { type: i5__namespace.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { type: EditSurveyComponent, selector: "app-edit-survey", inputs: ["pagingElement", "onSuccessHandler"] }, { type: DeleteSurveyComponent, selector: "app-delete-survey", inputs: ["onSuccessHandler", "pagingElement"] }, { type: AddQuestionComponent, selector: "app-add-question", inputs: ["pagingElement", "onSuccessAddHandler"] }, { type: EditQuestionComponent, selector: "app-edit-question", inputs: ["pagingElement", "onSuccessEditHandler"] }, { type: DeleteQuestionComponent, selector: "app-delete-question", inputs: ["onSuccessHandler", "pagingElement"] }, { type: PublishSurveyComponent, selector: "app-publish-survey", inputs: ["pagingElement", "showToggle", "onSuccessHandler"] }, { type: UnPublishSurveyComponent, selector: "app-unpublish-survey", inputs: ["onSuccessHandler", "pagingElement"] }, { type: DeleteSubmissionComponent, selector: "app-delete-submission", inputs: ["onSuccessHandler", "pagingElement"] }, { type: EliminateSubmissionComponent, selector: "app-eliminate-submission", inputs: ["onSuccessHandler", "pagingElement"] }, { type: UnEliminateSubmissionComponent, selector: "app-unEliminate-submission", inputs: ["onSuccessHandler", "pagingElement"] }], directives: [{ type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace.NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "triggers", "container", "disableTooltip", "tooltipClass", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }, { type: i11__namespace.InlineSVGDirective, selector: "[inlineSVG]", inputs: ["resolveSVGUrl", "replaceContents", "prepend", "injectComponent", "cacheSVG", "forceEvalStyles", "evalScripts", "inlineSVG", "setSVGAttributes", "removeSVGAttributes", "fallbackImgUrl", "onSVGLoaded"], outputs: ["onSVGInserted", "onSVGFailed"] }, { type: i10__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5__namespace.NgbNav, selector: "[ngbNav]", inputs: ["animation", "destroyOnHide", "orientation", "roles", "keyboard", "activeId"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { type: i5__namespace.NgbNavItem, selector: "[ngbNavItem]", inputs: ["disabled", "domId", "destroyOnHide", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { type: i5__namespace.NgbNavLink, selector: "a[ngbNavLink]" }, { type: i5__namespace.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { type: i20__namespace.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "id", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListAutoScrollDisabled", "cdkDropListOrientation", "cdkDropListLockAxis", "cdkDropListData", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { type: i10__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i20__namespace.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragDisabled", "cdkDragStartDelay", "cdkDragLockAxis", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragBoundary", "cdkDragRootElement", "cdkDragPreviewContainer", "cdkDragData", "cdkDragFreeDragPosition"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i20__namespace.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { type: i5__namespace.NgbDropdown, selector: "[ngbDropdown]", inputs: ["open", "placement", "container", "autoClose", "display", "dropdownClass"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { type: i5__namespace.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { type: i5__namespace.NgbDropdownMenu, selector: "[ngbDropdownMenu]" }, { type: i5__namespace.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["disabled"] }, { type: i1__namespace$1.RouterLink, selector: ":not(a):not(area)[routerLink]", inputs: ["routerLink", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }], pipes: { "surveyDate": SurveyDatePipe } });
|
|
33373
|
+
SurveyInfoComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SurveyInfoComponent, selector: "app-survey-info", viewQueries: [{ propertyName: "pagingElement", first: true, predicate: ["pagingViewElement"], descendants: true }, { propertyName: "deleteConfirmationModalControl", first: true, predicate: ["deleteConfirmationModalControl"], descendants: true }, { propertyName: "editModal", first: true, predicate: ["editModal"], descendants: true }, { propertyName: "editQuestionModal", first: true, predicate: ["editQuestionModal"], descendants: true }, { propertyName: "deleteQuestionConfirmationModalControl", first: true, predicate: ["deleteQuestionModal"], descendants: true }, { propertyName: "AddQuestionComponent", first: true, predicate: ["addQuestionModal"], descendants: true }, { propertyName: "addPublishModal", first: true, predicate: ["addPublishModal"], descendants: true }, { propertyName: "addUnPublishModal", first: true, predicate: ["addUnPublishModal"], descendants: true }, { propertyName: "deleteSubmissionConfirmationModalControl", first: true, predicate: ["deleteSubmissionModal"], descendants: true }, { propertyName: "eliminateSubmissionConfirmationModalControl", first: true, predicate: ["eliminateModal"], descendants: true }, { propertyName: "unEliminateSubmissionConfirmationModalControl", first: true, predicate: ["unEliminateModal"], descendants: true }, { propertyName: "pagingQuestionElement", first: true, predicate: ["pagingQuestionViewElement"], descendants: true }, { propertyName: "pagingSubmissionElement", first: true, predicate: ["pagingSubmissionViewElement"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<!--toolbar-->\r\n<div *ngIf=\"loadInfo\">\r\n <bbsf-page-header-component [options]=\"pageHeaderOptions\"></bbsf-page-header-component>\r\n</div>\r\n<!--end toolbar-->\r\n<div class=\"container-xxl\">\r\n <div class=\"info-container\" *ngIf=\"loadInfo\">\r\n <div class=\"section-margin-bottom\">\r\n <div class=\"d-flex justify-content-between align-items-center\">\r\n <div class=\"survery-date border-0\">\r\n <div class=\"icon-boxes align-items-baseline\">\r\n <div ngbTooltip=\"{{l('Date')}}\" class=\"icon-box\">\r\n <div class=\"symbol\">\r\n <span class=\"symbol-label\">\r\n <span class=\"svg-icon svg-icon-4\" [inlineSVG]=\"'/assets/images/calendar.svg'\">\r\n </span>\r\n </span>\r\n </div>\r\n <span class=\"survey-counter-title\" *ngIf=\"survey.startDate==null\">\r\n {{l('NotStartedYet')}}\r\n </span>\r\n <span class=\"survey-counter-title d-flex flex-stack\" *ngIf=\"survey.startDate!=null\">\r\n {{survey.startDate |surveyDate}} - {{survey.endDate!=null?(survey.endDate|surveyDate):\"\"}}\r\n <span class=\"badge badge-light\" *ngIf=\"survey.endDate==null\">{{l('HasNoEnd')}}</span>\r\n </span>\r\n </div>\r\n </div>\r\n </div>\r\n <div>\r\n <span class=\"badge badge-light\" [ngClass]=\"getStatus(survey.statusItemID)\">{{survey.localizedStatus}}</span>\r\n <span ngbTooltip=\"{{l('Audience')}}\" class=\"badge badge-light mx-2\">{{survey.localizedAudience}}</span>\r\n </div>\r\n </div>\r\n <div class=\"row card-data\">\r\n <div class=\"col-lg-6\">\r\n <BBSF-TextBox *ngIf=\"canTakeSurvey&& (survey.audienceItemID==AudienceTypeEnum.Internal||survey.audienceItemID==AudienceTypeEnum.Both)\"\r\n [options]=\"TextBoxWithInternalURL\" [group]=\"urlForm\"></BBSF-TextBox>\r\n\r\n </div>\r\n <div class=\"col-lg-6\">\r\n <BBSF-TextBox *ngIf=\"canTakeSurvey&& (survey.audienceItemID==AudienceTypeEnum.External||survey.audienceItemID==AudienceTypeEnum.Both)\"\r\n [options]=\"TextBoxWithExternalURL\" [group]=\"urlForm\"></BBSF-TextBox>\r\n </div>\r\n </div>\r\n <p class=\"card-description\" *ngIf=\"survey.localizedDesc\">\r\n {{survey.localizedDesc}}\r\n </p>\r\n </div>\r\n <div class=\"section-margin-bottom\">\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav nav-stretch nav-line-tabs nav-custom\">\r\n <li ngbNavItem class=\"nav-item\" [destroyOnHide]=\"true\">\r\n <a class=\"nav-link\" ngbNavLink>\r\n <h4>\r\n {{l('Questions')}}\r\n </h4>\r\n </a>\r\n <ng-template ngbNavContent>\r\n <div class=\"section-info\">\r\n <div class=\"tabs-search page-subheader justify-content-between\">\r\n <BBSF-TextBox [options]=\"SearchTextBoxOptions\" [group]=\"filtersQuestionForm\"\r\n (OnChange)=\"searchInQuestionList($event)\"></BBSF-TextBox>\r\n <BBSF-TextBox [options]=\"SurveyIDOptions\" [group]=\"filtersQuestionForm\" hidden></BBSF-TextBox>\r\n <button type=\"button\" *ngIf=\"canAddQuestion&&enableActions\" class=\"btn btn-brand btn-sm subheader-btn\"\r\n (click)=\"showAddQuestionModal()\">\r\n {{l('Add')}}\r\n </button>\r\n </div>\r\n <div [hidden]=\"pagingQuestionResult.length == 0\">\r\n <div ngbNavContent cdkDropList (cdkDropListDropped)=\"drop($event)\">\r\n <div class=\"question-info\" [cdkDragDisabled]=\"canTakeSurvey\" cdkDrag\r\n *ngFor=\"let item of pagingQuestionResult; let i=index\">\r\n <div class=\"symbol symbol-25px me-4\" cdkDragHandle *ngIf=\"!canTakeSurvey\">\r\n <span class=\"symbol-label\">\r\n <span class=\"svg-icon svg-icon-7\" [inlineSVG]=\"'/assets/images/reorder.svg'\">\r\n </span>\r\n </span>\r\n </div>\r\n <div class=\"card card-listing\">\r\n <div class=\"card-header\">\r\n <div class=\"card-title\">\r\n <span class=\"badge badge-light\"\r\n ngbTooltip=\"{{l('Type')}}\">{{item.localizedQuestionTypeItem}}</span>\r\n <span class=\"badge badge-light mx-2\"\r\n ngbTooltip=\"{{l('Audience')}}\">{{item.localizedAudienceType}}</span>\r\n <span class=\"badge badge-brand-light mx-2\"\r\n *ngIf=\"item.isRelatedToSurveyQuestion\">{{l('Linked')}}</span>\r\n <span class=\"badge badge-light mx-2\" *ngIf=\"!item.isVisible\" ngbTooltip=\"{{l('NotVisible')}}\">\r\n {{l(\"NotVisible\")}}\r\n </span>\r\n </div>\r\n <div class=\"card-toolbar\">\r\n <div ngbDropdown container=\"body\" *ngIf=\"enableActions\" class=\"dropdown-custom\"\r\n [placement]=\"EN ? 'bottom-right' : 'bottom-left'\">\r\n <button type=\"button\" class=\"dropdown-toggle-custom btn btn-clear\" ngbDropdownToggle>\r\n <span class=\"svg-icon svg-icon-3\"\r\n [inlineSVG]=\"'/assets/images/card-dropdown.svg'\"></span>\r\n </button>\r\n <div ngbDropdownMenu class=\"dropdown-menu-custom\">\r\n <button *ngIf=\"!(canEditQuestion&&canDeleteQuestion)\"\r\n (click)=\"showEditQuestionModal(item.iD_GUID,true)\" apppreventdoubleclick type=\"button\"\r\n ngbDropdownItem class=\"dropdown-button\">\r\n <span class=\"svg-icon svg-icon-3\" [inlineSVG]=\"'/assets/images/info.svg'\">\r\n </span>\r\n {{l(\"Details\")}}\r\n </button>\r\n\r\n <button *ngIf=\"canEditQuestion\" (click)=\"showEditQuestionModal(item.iD_GUID,false)\"\r\n apppreventdoubleclick type=\"button\" ngbDropdownItem class=\"dropdown-button\">\r\n <span class=\"svg-icon svg-icon-3\" [inlineSVG]=\"'/assets/images/Edit.svg'\">\r\n </span>\r\n {{l(\"Edit\")}}\r\n </button>\r\n <button type=\"button\" *ngIf=\"canDeleteQuestion\"\r\n (click)=\"showDeleteQuestionModal(item.iD_GUID)\" apppreventdoubleclick ngbDropdownItem\r\n class=\"dropdown-button\">\r\n <span class=\"svg-icon svg-icon-3\"\r\n [inlineSVG]=\"'/assets/images/Trash.svg'\"></span> {{l(\"Delete\")}}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card-body\">\r\n <div class=\"survey-counter\">\r\n <span class=\"survey-counter-title\">{{item.localizedText}}</span>\r\n <span class=\"badge badge-light-brand badge-square ms-2 me-0\"\r\n ngbTooltip=\"{{l('Score')}}\">{{item.totalScore}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <BBSF-Paging (Items)=\"setQuestionListingResult($event)\" [options]=\"pagingQuestionOptions\"\r\n [group]=\"filtersQuestionForm\" #pagingQuestionViewElement></BBSF-Paging>\r\n </div>\r\n </div>\r\n <app-no-results *ngIf=\"pagingQuestionResult.length == 0\"></app-no-results>\r\n\r\n </ng-template>\r\n </li>\r\n <li ngbNavItem class=\"nav-item\" [destroyOnHide]=\"true\">\r\n <a class=\"nav-link\" ngbNavLink>\r\n <h4>\r\n {{l('Submissions')}}\r\n </h4>\r\n </a>\r\n <ng-template ngbNavContent>\r\n <div class=\"section-info\" ngbNavContent>\r\n <div class=\"tabs-search page-subheader justify-content-between\">\r\n <BBSF-TextBox [options]=\"SearchTextBoxOptions\" [group]=\"filtersSubmissionForm\"></BBSF-TextBox>\r\n <BBSF-TextBox [options]=\"SurveyIDOptions\" [group]=\"filtersSubmissionForm\" hidden></BBSF-TextBox>\r\n </div>\r\n <div class=\"info-container\" [hidden]=\"pagingSubmissionResult.length == 0\">\r\n <div class=\"table-responsive\">\r\n <table class=\"table table-custom\">\r\n <thead>\r\n <tr class=\"table-header\">\r\n <th> {{l('Name')}}</th>\r\n <th>{{l('Email')}}</th>\r\n <th>{{l('Type')}}</th>\r\n <th>{{l('Created')}}</th>\r\n <th>{{l('Score')}}</th>\r\n <th class=\"table-action\" *ngIf=\"enableActions\">{{l(\"Action\")}}</th>\r\n </tr>\r\n </thead>\r\n <tbody class=\"table-body\">\r\n <tr *ngFor=\"let item of pagingSubmissionResult; let i=index\">\r\n <td>\r\n <span class=\"line-clamp-2\">\r\n {{item.localizedName}}\r\n <span class=\"badge badge-danger mx-2\" *ngIf=\"item.isEliminated&&item.allowElimination\">\r\n {{l('Eliminated')}}\r\n </span>\r\n </span>\r\n </td>\r\n <td>\r\n {{item.email}}\r\n </td>\r\n <td>\r\n <div class=\"badge badge-light\">\r\n {{item.isInternalUser? l('InternalUsers'):l('ExternalUsers')}}\r\n </div>\r\n </td>\r\n <td>{{item.created|surveyDate}}</td>\r\n <td>{{item.totalScore}}</td>\r\n <td class=\"table-action\" *ngIf=\"enableActions\">\r\n <button type=\"button\" ngbTooltip=\"{{l('Preview')}}\"\r\n [routerLink]=\"['../../info/result', item.iD_GUID]\" class=\"btn btn-sm p-2\">\r\n <span class=\"svg-icon svg-icon-3\"\r\n [inlineSVG]=\"'/assets/images/answers.svg'\"></span>\r\n </button>\r\n\r\n <button type=\"button\" *ngIf=\"!item.isEliminated&&item.allowElimination\"\r\n ngbTooltip=\"{{this.l('EliminateHint')}}\" class=\"btn btn-sm p-2\">\r\n <span class=\"svg-icon svg-icon-3\" (click)=\"showEliminateSubmissionModal(item.iD_GUID)\"\r\n apppreventdoubleclick\r\n [inlineSVG]=\"'/assets/images/unlink.svg'\"></span>\r\n </button>\r\n\r\n <button type=\"button\" *ngIf=\"item.isEliminated&&item.allowElimination\"\r\n ngbTooltip=\"{{this.l('UnEliminate')}}\" class=\"btn btn-sm p-2\">\r\n <span class=\"svg-icon svg-icon-3\" (click)=\"showUnEliminateSubmissionModal(item.iD_GUID)\"\r\n apppreventdoubleclick [inlineSVG]=\"'/assets/images/link.svg'\"></span>\r\n </button>\r\n\r\n <button type=\"button\" ngbTooltip=\"{{l('Delete')}}\" class=\"btn btn-sm p-2\">\r\n <span class=\"svg-icon svg-icon-3\" (click)=\"showDeleteSubmissionModal(item.iD_GUID)\"\r\n apppreventdoubleclick [inlineSVG]=\"'/assets/images/Trash.svg'\"></span>\r\n </button>\r\n </td>\r\n </tr>\r\n </tbody>\r\n </table>\r\n </div>\r\n </div>\r\n <BBSF-Paging (Items)=\"setSubmissionListingResult($event)\" [options]=\"pagingSubmissionOptions\"\r\n [group]=\"filtersSubmissionForm\" #pagingSubmissionViewElement></BBSF-Paging>\r\n </div>\r\n <app-no-results *ngIf=\"pagingSubmissionResult.length == 0\"></app-no-results>\r\n\r\n </ng-template>\r\n </li>\r\n <li ngbNavItem class=\"nav-item\" *ngIf=\"showOverview\" [destroyOnHide]=\"true\">\r\n <a class=\"nav-link\" ngbNavLink (click)=\"loadSurveyOverview()\">\r\n <h4>\r\n {{l(\"Overview\") }}\r\n </h4>\r\n </a>\r\n <ng-template ngbNavContent>\r\n <div class=\"section-info\" ngbNavContent>\r\n\r\n <div class=\"row\">\r\n <div class=\"col-md-3\">\r\n <div class=\"chart-container\">\r\n <div class=\"chart-title\"> {{l(\"Questions\") }}</div>\r\n <ul ngbNav #nav=\"ngbNav\" class=\"nav-pills custom-navs\" orientation=\"vertical\">\r\n <li ngbNavItem=\"{{item.localizedTitle}}\" [destroyOnHide]=\"true\"\r\n *ngFor=\"let item of questionOverviewResult\" (click)=\"loadChart(item)\">\r\n <a ngbNavLink>{{item.localizedTitle}}</a>\r\n\r\n </li>\r\n\r\n </ul>\r\n </div>\r\n </div>\r\n <div class=\"col-md-9\">\r\n <div class=\"chart-container\">\r\n <div class=\"chart-title\">{{l(\"Overview\") }}</div>\r\n <div id=\"chartdiv\" style=\"width: 100%; height: 400px\"></div>\r\n <div class=\"hide-logo\"></div>\r\n </div>\r\n <div class=\"chart-container\">\r\n <div class=\"chart-title\">{{l(\"Score\") }} </div>\r\n <div id=\"chartOverview\" style=\"width: 100%; height: 400px\"></div>\r\n <div class=\"hide-logo\"></div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </ng-template>\r\n </li>\r\n </ul>\r\n\r\n\r\n <div [ngbNavOutlet]=\"nav\"></div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n <app-edit-survey #editModal [pagingElement]=\"pagingElement\" [onSuccessHandler]=\"onSuccessHandler\"></app-edit-survey>\r\n <app-delete-survey #deleteConfirmationModalControl [pagingElement]=\"pagingElement\"\r\n [onSuccessHandler]=\"onSuccessDeleteHandler\"></app-delete-survey>\r\n <app-add-question #addQuestionModal [pagingElement]=\"pagingQuestionElement\" [onSuccessAddHandler]=\"onSuccessAddQuestionHandler\"></app-add-question>\r\n <app-edit-question #editQuestionModal [pagingElement]=\"pagingQuestionElement\" [onSuccessEditHandler]=\"onSuccessEditQuestionHandler\"></app-edit-question>\r\n <app-delete-question #deleteQuestionModal [pagingElement]=\"pagingQuestionElement\" [onSuccessHandler]=\"onSuccessDeleteQuestionHandler\"></app-delete-question>\r\n <app-publish-survey #addPublishModal [pagingElement]=\"pagingElement\" [onSuccessHandler]=\"onSuccessHandler\" *ngIf=\"loadInfo\" [showToggle]=\"survey.isShowToggleOfScoreResultAfterSubmission\">\r\n </app-publish-survey>\r\n <app-unpublish-survey #addUnPublishModal [pagingElement]=\"pagingElement\" [onSuccessHandler]=\"onSuccessHandler\">\r\n </app-unpublish-survey>\r\n <app-delete-submission #deleteSubmissionModal [pagingElement]=\"pagingSubmissionElement\"\r\n [onSuccessHandler]=\"onSuccessDeleteHandlerSubmission\"></app-delete-submission>\r\n <app-eliminate-submission #eliminateModal [pagingElement]=\"pagingSubmissionElement\"\r\n [onSuccessHandler]=\"onSuccessHandler\"></app-eliminate-submission>\r\n <app-unEliminate-submission #unEliminateModal [pagingElement]=\"pagingSubmissionElement\"\r\n [onSuccessHandler]=\"onSuccessHandler\"></app-unEliminate-submission>\r\n", styles: [""], components: [{ type: i6__namespace.PageHeaderComponentComponent, selector: "bbsf-page-header-component", inputs: ["group", "options"] }, { type: i6__namespace.TextboxComponent, selector: "BBSF-TextBox", inputs: ["group", "options"], outputs: ["OnChange"] }, { type: i6__namespace.PagingComponent, selector: "BBSF-Paging", inputs: ["options", "group"], outputs: ["Items"] }, { type: NoResultsComponent, selector: "app-no-results" }, { type: i5__namespace.NgbNavOutlet, selector: "[ngbNavOutlet]", inputs: ["paneRole", "ngbNavOutlet"] }, { type: EditSurveyComponent, selector: "app-edit-survey", inputs: ["pagingElement", "onSuccessHandler"] }, { type: DeleteSurveyComponent, selector: "app-delete-survey", inputs: ["onSuccessHandler", "pagingElement"] }, { type: AddQuestionComponent, selector: "app-add-question", inputs: ["pagingElement", "onSuccessAddHandler"] }, { type: EditQuestionComponent, selector: "app-edit-question", inputs: ["pagingElement", "onSuccessEditHandler"] }, { type: DeleteQuestionComponent, selector: "app-delete-question", inputs: ["onSuccessHandler", "pagingElement"] }, { type: PublishSurveyComponent, selector: "app-publish-survey", inputs: ["pagingElement", "showToggle", "onSuccessHandler"] }, { type: UnPublishSurveyComponent, selector: "app-unpublish-survey", inputs: ["onSuccessHandler", "pagingElement"] }, { type: DeleteSubmissionComponent, selector: "app-delete-submission", inputs: ["onSuccessHandler", "pagingElement"] }, { type: EliminateSubmissionComponent, selector: "app-eliminate-submission", inputs: ["onSuccessHandler", "pagingElement"] }, { type: UnEliminateSubmissionComponent, selector: "app-unEliminate-submission", inputs: ["onSuccessHandler", "pagingElement"] }], directives: [{ type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5__namespace.NgbTooltip, selector: "[ngbTooltip]", inputs: ["animation", "autoClose", "placement", "triggers", "container", "disableTooltip", "tooltipClass", "openDelay", "closeDelay", "ngbTooltip"], outputs: ["shown", "hidden"], exportAs: ["ngbTooltip"] }, { type: i11__namespace.InlineSVGDirective, selector: "[inlineSVG]", inputs: ["resolveSVGUrl", "replaceContents", "prepend", "injectComponent", "cacheSVG", "forceEvalStyles", "evalScripts", "inlineSVG", "setSVGAttributes", "removeSVGAttributes", "fallbackImgUrl", "onSVGLoaded"], outputs: ["onSVGInserted", "onSVGFailed"] }, { type: i10__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5__namespace.NgbNav, selector: "[ngbNav]", inputs: ["animation", "destroyOnHide", "orientation", "roles", "keyboard", "activeId"], outputs: ["activeIdChange", "shown", "hidden", "navChange"], exportAs: ["ngbNav"] }, { type: i5__namespace.NgbNavItem, selector: "[ngbNavItem]", inputs: ["disabled", "domId", "destroyOnHide", "ngbNavItem"], outputs: ["shown", "hidden"], exportAs: ["ngbNavItem"] }, { type: i5__namespace.NgbNavLink, selector: "a[ngbNavLink]" }, { type: i5__namespace.NgbNavContent, selector: "ng-template[ngbNavContent]" }, { type: i20__namespace.CdkDropList, selector: "[cdkDropList], cdk-drop-list", inputs: ["cdkDropListConnectedTo", "id", "cdkDropListEnterPredicate", "cdkDropListSortPredicate", "cdkDropListDisabled", "cdkDropListSortingDisabled", "cdkDropListAutoScrollDisabled", "cdkDropListOrientation", "cdkDropListLockAxis", "cdkDropListData", "cdkDropListAutoScrollStep"], outputs: ["cdkDropListDropped", "cdkDropListEntered", "cdkDropListExited", "cdkDropListSorted"], exportAs: ["cdkDropList"] }, { type: i10__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i20__namespace.CdkDrag, selector: "[cdkDrag]", inputs: ["cdkDragDisabled", "cdkDragStartDelay", "cdkDragLockAxis", "cdkDragConstrainPosition", "cdkDragPreviewClass", "cdkDragBoundary", "cdkDragRootElement", "cdkDragPreviewContainer", "cdkDragData", "cdkDragFreeDragPosition"], outputs: ["cdkDragStarted", "cdkDragReleased", "cdkDragEnded", "cdkDragEntered", "cdkDragExited", "cdkDragDropped", "cdkDragMoved"], exportAs: ["cdkDrag"] }, { type: i20__namespace.CdkDragHandle, selector: "[cdkDragHandle]", inputs: ["cdkDragHandleDisabled"] }, { type: i5__namespace.NgbDropdown, selector: "[ngbDropdown]", inputs: ["open", "placement", "container", "autoClose", "display", "dropdownClass"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { type: i5__namespace.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { type: i5__namespace.NgbDropdownMenu, selector: "[ngbDropdownMenu]" }, { type: i5__namespace.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["disabled"] }, { type: i1__namespace$1.RouterLink, selector: ":not(a):not(area)[routerLink]", inputs: ["routerLink", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }], pipes: { "surveyDate": SurveyDatePipe } });
|
|
33316
33374
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SurveyInfoComponent, decorators: [{
|
|
33317
33375
|
type: i0.Component,
|
|
33318
33376
|
args: [{
|
|
33319
33377
|
selector: 'app-survey-info',
|
|
33320
33378
|
templateUrl: './survey-info.component.html',
|
|
33321
|
-
styleUrls: ['./survey-info.component.css']
|
|
33379
|
+
styleUrls: ['./survey-info.component.css'],
|
|
33322
33380
|
}]
|
|
33323
33381
|
}], ctorParameters: function () {
|
|
33324
33382
|
return [{ type: i0__namespace.Injector }, { type: undefined, decorators: [{
|
|
@@ -33738,6 +33796,7 @@
|
|
|
33738
33796
|
_this.pageTitle = '';
|
|
33739
33797
|
_this.subTitle = '';
|
|
33740
33798
|
_this.surveyForm = new i11$1.FormGroup({});
|
|
33799
|
+
_this.enableActions = false;
|
|
33741
33800
|
_this.SurveyStatusEnum = SurveyStatusEnum;
|
|
33742
33801
|
_this.pagingResult = [];
|
|
33743
33802
|
_this.filtersForm = new i11$1.FormGroup({});
|
|
@@ -33796,6 +33855,8 @@
|
|
|
33796
33855
|
return _this;
|
|
33797
33856
|
}
|
|
33798
33857
|
SurveyComponent.prototype.ngOnInit = function () {
|
|
33858
|
+
if (SurveyModule.surveyMode == SurveyMode.Survey_Full_Access)
|
|
33859
|
+
this.enableActions = true;
|
|
33799
33860
|
this.pageTitle = this.l('Surveys_Header');
|
|
33800
33861
|
this.updatePageTitle(this.pageTitle);
|
|
33801
33862
|
this.breadCrumb = [];
|
|
@@ -33876,9 +33937,11 @@
|
|
|
33876
33937
|
this.pageHeaderOptions.BreadCrumb.BreadCrumbItems = this.breadCrumb;
|
|
33877
33938
|
this.pageHeaderOptions.EditButton.Active = false;
|
|
33878
33939
|
this.pageHeaderOptions.ExportButton.Active = false;
|
|
33879
|
-
this.
|
|
33880
|
-
|
|
33881
|
-
|
|
33940
|
+
if (this.enableActions) {
|
|
33941
|
+
this.pageHeaderOptions.AddButton.Active = true;
|
|
33942
|
+
this.pageHeaderOptions.AddButton.ButtonTextKey = this.l('Add');
|
|
33943
|
+
this.pageHeaderOptions.AddButton.Function = this.showAddModal;
|
|
33944
|
+
}
|
|
33882
33945
|
this.pageHeaderOptions.FiltersButton.Active = true;
|
|
33883
33946
|
this.pageHeaderOptions.FiltersButton.ButtonTextKey = this.l('Filters');
|
|
33884
33947
|
this.pageHeaderOptions.FiltersButton.Function = this.loadFilters;
|
|
@@ -33980,7 +34043,7 @@
|
|
|
33980
34043
|
return SurveyComponent;
|
|
33981
34044
|
}(i6.AppBaseComponent));
|
|
33982
34045
|
SurveyComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SurveyComponent, deps: [{ token: i0__namespace.Injector }, { token: SurveyService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
33983
|
-
SurveyComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SurveyComponent, selector: "app-survey", viewQueries: [{ propertyName: "pagingElement", first: true, predicate: ["pagingViewElement"], descendants: true }, { propertyName: "addModal", first: true, predicate: ["addModal"], descendants: true }, { propertyName: "editModal", first: true, predicate: ["editModal"], descendants: true }, { propertyName: "deleteConfirmationModalControl", first: true, predicate: ["deleteConfirmationModalControl"], descendants: true }, { propertyName: "duplicateModal", first: true, predicate: ["duplicateModal"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<!--toolbar-->\r\n<bbsf-page-header-component [options]=\"pageHeaderOptions\" [group]=\"filtersForm\"></bbsf-page-header-component>\r\n<!--End toolbar-->\r\n<div class=\"container-xxl\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6 col-xl-6 d-flex\" *ngFor=\"let item of pagingResult\">\r\n <div class=\"card card-listing w-icon-boxes survey-card\">\r\n <div class=\"card-header\">\r\n <div class=\"card-title line-clamp\">\r\n <a [routerLink]=\"['../info', item.iD_GUID]\">\r\n {{item.localizedTitle}}\r\n </a>\r\n </div>\r\n <div class=\"card-toolbar d-flex flex-nowrap flex-stack\">\r\n <span class=\"badge badge-light bagde-xs me-2\" *ngIf=\"!item.visible\"> {{l(\"NotVisible\")}} </span>\r\n <span class=\"badge bagde-xs badge-light me-2\" [ngClass]=\"getStatus(item.statusItemID)\">{{item.localizedStatus}}</span>\r\n <div ngbDropdown container=\"body\" class=\"dropdown-custom\" [placement]=\"EN ? 'bottom-right' : 'bottom-left'\">\r\n <button type=\"button\" class=\"dropdown-toggle-custom btn btn-clear btn-sm\"\r\n ngbDropdownToggle>\r\n <span class=\"svg-icon svg-icon-3\" [inlineSVG]=\"'/assets/images/card-dropdown.svg'\"></span>\r\n </button>\r\n <div ngbDropdownMenu class=\"dropdown-menu-custom\">\r\n <button *ngIf=\"isEditable(item.statusItemID)\" (click)=\"showEditModal(item.iD_GUID)\" apppreventdoubleclick type=\"button\" ngbDropdownItem class=\"dropdown-button\">\r\n <span class=\"svg-icon svg-icon-3\" [inlineSVG]=\"'/assets/images/Edit.svg'\">\r\n </span>\r\n {{l(\"Edit\")}}\r\n </button>\r\n <button (click)=\"showDuplicateModal(item.iD_GUID)\" apppreventdoubleclick type=\"button\" ngbDropdownItem class=\"dropdown-button\">\r\n <span class=\"svg-icon svg-icon-3\" [inlineSVG]=\"'/assets/images/copy.svg'\">\r\n </span>\r\n {{l(\"Duplicate\")}}\r\n </button>\r\n <button type=\"button\" (click)=\"showDeleteModal(item.iD_GUID)\" apppreventdoubleclick ngbDropdownItem class=\"dropdown-button\">\r\n <span class=\"svg-icon svg-icon-3\"\r\n [inlineSVG]=\"'/assets/images/Trash.svg'\"></span> {{l(\"Delete\")}}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card-body mb-4\">\r\n <p class=\"line-clamp-1\">\r\n {{item.localizedDesc}}\r\n </p>\r\n </div>\r\n <!--footer type one-->\r\n <div class=\"card-footer pt-0\">\r\n <div>\r\n <div class=\"survey-counter\">\r\n <span class=\"survey-counter-title\">{{l('Question')}}</span>\r\n <span class=\"badge badge-light-brand badge-square \">{{item.totalQuestionCount}}</span>\r\n </div>\r\n <div class=\"survey-counter\">\r\n <span class=\"survey-counter-title\">{{l('Submissions')}}</span>\r\n <span class=\"badge badge-light-brand badge-square \">{{item.totalSubmissionsCount}}</span>\r\n </div>\r\n </div>\r\n <div class=\"survery-date\">\r\n <div class=\"icon-boxes align-items-baseline\">\r\n <div class=\"icon-box w-100\">\r\n <div class=\"symbol\">\r\n <span class=\"symbol-label\">\r\n <span class=\"svg-icon svg-icon-4\" [inlineSVG]=\"'/assets/images/calendar.svg'\">\r\n </span>\r\n </span>\r\n </div>\r\n <span class=\"survey-counter-title\" *ngIf=\"item.startDate==null\">\r\n {{l('NotStartedYet')}}\r\n </span>\r\n <div *ngIf=\"item.startDate!=null\" class=\"d-flex flex-stack w-100\">\r\n <span class=\"survey-counter-title\">\r\n {{item.startDate |surveyDate}}\r\n <span *ngIf=\"item.endDate!=null\"> - {{(item.endDate|surveyDate)}}</span>\r\n </span>\r\n <span class=\"badge badge-light\" *ngIf=\"item.endDate==null\">{{l('HasNoEnd')}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <BBSF-Paging (Items)=\"setListingResult($event)\" *ngIf=\"loadingPage\" [options]=\"pagingOptions\" [group]=\"filtersForm\"\r\n #pagingViewElement></BBSF-Paging>\r\n</div>\r\n\r\n\r\n\r\n<app-no-results *ngIf=\"pagingResult.length == 0 && showPageContent\"></app-no-results>\r\n<app-add-survey #addModal [pagingElement]=\"pagingElement\"></app-add-survey>\r\n<app-edit-survey #editModal [pagingElement]=\"pagingElement\"></app-edit-survey>\r\n<app-delete-survey #deleteConfirmationModalControl [pagingElement]=\"pagingElement\"></app-delete-survey>\r\n<app-duplicate-survey #duplicateModal [pagingElement]=\"pagingElement\"></app-duplicate-survey>\r\n", components: [{ type: i6__namespace.PageHeaderComponentComponent, selector: "bbsf-page-header-component", inputs: ["group", "options"] }, { type: i6__namespace.PagingComponent, selector: "BBSF-Paging", inputs: ["options", "group"], outputs: ["Items"] }, { type: NoResultsComponent, selector: "app-no-results" }, { type: AddSurveyComponent, selector: "app-add-survey", inputs: ["pagingElement"] }, { type: EditSurveyComponent, selector: "app-edit-survey", inputs: ["pagingElement", "onSuccessHandler"] }, { type: DeleteSurveyComponent, selector: "app-delete-survey", inputs: ["onSuccessHandler", "pagingElement"] }, { type: DuplicateSurveyComponent, selector: "app-duplicate-survey", inputs: ["onSuccessHandler", "pagingElement"] }], directives: [{ type: i10__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5__namespace.NgbDropdown, selector: "[ngbDropdown]", inputs: ["open", "placement", "container", "autoClose", "display", "dropdownClass"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { type: i5__namespace.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { type: i11__namespace.InlineSVGDirective, selector: "[inlineSVG]", inputs: ["resolveSVGUrl", "replaceContents", "prepend", "injectComponent", "cacheSVG", "forceEvalStyles", "evalScripts", "inlineSVG", "setSVGAttributes", "removeSVGAttributes", "fallbackImgUrl", "onSVGLoaded"], outputs: ["onSVGInserted", "onSVGFailed"] }, { type: i5__namespace.NgbDropdownMenu, selector: "[ngbDropdownMenu]" }, { type: i5__namespace.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["disabled"] }], pipes: { "surveyDate": SurveyDatePipe } });
|
|
34046
|
+
SurveyComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: SurveyComponent, selector: "app-survey", viewQueries: [{ propertyName: "pagingElement", first: true, predicate: ["pagingViewElement"], descendants: true }, { propertyName: "addModal", first: true, predicate: ["addModal"], descendants: true }, { propertyName: "editModal", first: true, predicate: ["editModal"], descendants: true }, { propertyName: "deleteConfirmationModalControl", first: true, predicate: ["deleteConfirmationModalControl"], descendants: true }, { propertyName: "duplicateModal", first: true, predicate: ["duplicateModal"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<!--toolbar-->\r\n<bbsf-page-header-component [options]=\"pageHeaderOptions\" [group]=\"filtersForm\"></bbsf-page-header-component>\r\n<!--End toolbar-->\r\n<div class=\"container-xxl\">\r\n <div class=\"row\">\r\n <div class=\"col-md-6 col-xl-6 d-flex\" *ngFor=\"let item of pagingResult\">\r\n <div class=\"card card-listing w-icon-boxes survey-card\">\r\n <div class=\"card-header\">\r\n <div class=\"card-title line-clamp\">\r\n <a [routerLink]=\"['../info', item.iD_GUID]\">\r\n {{item.localizedTitle}}\r\n </a>\r\n </div>\r\n <div class=\"card-toolbar d-flex flex-nowrap flex-stack\">\r\n <span class=\"badge badge-light bagde-xs me-2\" *ngIf=\"!item.visible\"> {{l(\"NotVisible\")}} </span>\r\n <span class=\"badge bagde-xs badge-light me-2\" [ngClass]=\"getStatus(item.statusItemID)\">{{item.localizedStatus}}</span>\r\n <div ngbDropdown container=\"body\" *ngIf=\"enableActions\" class=\"dropdown-custom\" [placement]=\"EN ? 'bottom-right' : 'bottom-left'\">\r\n <button type=\"button\" class=\"dropdown-toggle-custom btn btn-clear btn-sm\"\r\n ngbDropdownToggle>\r\n <span class=\"svg-icon svg-icon-3\" [inlineSVG]=\"'/assets/images/card-dropdown.svg'\"></span>\r\n </button>\r\n <div ngbDropdownMenu class=\"dropdown-menu-custom\">\r\n <button *ngIf=\"isEditable(item.statusItemID)\" (click)=\"showEditModal(item.iD_GUID)\" apppreventdoubleclick type=\"button\" ngbDropdownItem class=\"dropdown-button\">\r\n <span class=\"svg-icon svg-icon-3\" [inlineSVG]=\"'/assets/images/Edit.svg'\">\r\n </span>\r\n {{l(\"Edit\")}}\r\n </button>\r\n <button (click)=\"showDuplicateModal(item.iD_GUID)\" apppreventdoubleclick type=\"button\" ngbDropdownItem class=\"dropdown-button\">\r\n <span class=\"svg-icon svg-icon-3\" [inlineSVG]=\"'/assets/images/copy.svg'\">\r\n </span>\r\n {{l(\"Duplicate\")}}\r\n </button>\r\n <button type=\"button\" (click)=\"showDeleteModal(item.iD_GUID)\" apppreventdoubleclick ngbDropdownItem class=\"dropdown-button\">\r\n <span class=\"svg-icon svg-icon-3\"\r\n [inlineSVG]=\"'/assets/images/Trash.svg'\"></span> {{l(\"Delete\")}}\r\n </button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <div class=\"card-body mb-4\">\r\n <p class=\"line-clamp-1\">\r\n {{item.localizedDesc}}\r\n </p>\r\n </div>\r\n <!--footer type one-->\r\n <div class=\"card-footer pt-0\">\r\n <div>\r\n <div class=\"survey-counter\">\r\n <span class=\"survey-counter-title\">{{l('Question')}}</span>\r\n <span class=\"badge badge-light-brand badge-square \">{{item.totalQuestionCount}}</span>\r\n </div>\r\n <div class=\"survey-counter\">\r\n <span class=\"survey-counter-title\">{{l('Submissions')}}</span>\r\n <span class=\"badge badge-light-brand badge-square \">{{item.totalSubmissionsCount}}</span>\r\n </div>\r\n </div>\r\n <div class=\"survery-date\">\r\n <div class=\"icon-boxes align-items-baseline\">\r\n <div class=\"icon-box w-100\">\r\n <div class=\"symbol\">\r\n <span class=\"symbol-label\">\r\n <span class=\"svg-icon svg-icon-4\" [inlineSVG]=\"'/assets/images/calendar.svg'\">\r\n </span>\r\n </span>\r\n </div>\r\n <span class=\"survey-counter-title\" *ngIf=\"item.startDate==null\">\r\n {{l('NotStartedYet')}}\r\n </span>\r\n <div *ngIf=\"item.startDate!=null\" class=\"d-flex flex-stack w-100\">\r\n <span class=\"survey-counter-title\">\r\n {{item.startDate |surveyDate}}\r\n <span *ngIf=\"item.endDate!=null\"> - {{(item.endDate|surveyDate)}}</span>\r\n </span>\r\n <span class=\"badge badge-light\" *ngIf=\"item.endDate==null\">{{l('HasNoEnd')}}</span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n <BBSF-Paging (Items)=\"setListingResult($event)\" *ngIf=\"loadingPage\" [options]=\"pagingOptions\" [group]=\"filtersForm\"\r\n #pagingViewElement></BBSF-Paging>\r\n</div>\r\n\r\n\r\n\r\n<app-no-results *ngIf=\"pagingResult.length == 0 && showPageContent\"></app-no-results>\r\n<app-add-survey #addModal [pagingElement]=\"pagingElement\"></app-add-survey>\r\n<app-edit-survey #editModal [pagingElement]=\"pagingElement\"></app-edit-survey>\r\n<app-delete-survey #deleteConfirmationModalControl [pagingElement]=\"pagingElement\"></app-delete-survey>\r\n<app-duplicate-survey #duplicateModal [pagingElement]=\"pagingElement\"></app-duplicate-survey>\r\n", components: [{ type: i6__namespace.PageHeaderComponentComponent, selector: "bbsf-page-header-component", inputs: ["group", "options"] }, { type: i6__namespace.PagingComponent, selector: "BBSF-Paging", inputs: ["options", "group"], outputs: ["Items"] }, { type: NoResultsComponent, selector: "app-no-results" }, { type: AddSurveyComponent, selector: "app-add-survey", inputs: ["pagingElement"] }, { type: EditSurveyComponent, selector: "app-edit-survey", inputs: ["pagingElement", "onSuccessHandler"] }, { type: DeleteSurveyComponent, selector: "app-delete-survey", inputs: ["onSuccessHandler", "pagingElement"] }, { type: DuplicateSurveyComponent, selector: "app-duplicate-survey", inputs: ["onSuccessHandler", "pagingElement"] }], directives: [{ type: i10__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i1__namespace$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i10__namespace.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { type: i5__namespace.NgbDropdown, selector: "[ngbDropdown]", inputs: ["open", "placement", "container", "autoClose", "display", "dropdownClass"], outputs: ["openChange"], exportAs: ["ngbDropdown"] }, { type: i5__namespace.NgbDropdownToggle, selector: "[ngbDropdownToggle]" }, { type: i11__namespace.InlineSVGDirective, selector: "[inlineSVG]", inputs: ["resolveSVGUrl", "replaceContents", "prepend", "injectComponent", "cacheSVG", "forceEvalStyles", "evalScripts", "inlineSVG", "setSVGAttributes", "removeSVGAttributes", "fallbackImgUrl", "onSVGLoaded"], outputs: ["onSVGInserted", "onSVGFailed"] }, { type: i5__namespace.NgbDropdownMenu, selector: "[ngbDropdownMenu]" }, { type: i5__namespace.NgbDropdownItem, selector: "[ngbDropdownItem]", inputs: ["disabled"] }], pipes: { "surveyDate": SurveyDatePipe } });
|
|
33984
34047
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SurveyComponent, decorators: [{
|
|
33985
34048
|
type: i0.Component,
|
|
33986
34049
|
args: [{
|
|
@@ -34278,8 +34341,13 @@
|
|
|
34278
34341
|
var SurveyModule = /** @class */ (function () {
|
|
34279
34342
|
function SurveyModule(configurationService) {
|
|
34280
34343
|
}
|
|
34344
|
+
SurveyModule.setSurveyMode = function (mode) {
|
|
34345
|
+
SurveyModule.surveyMode = mode;
|
|
34346
|
+
return SurveyModule;
|
|
34347
|
+
};
|
|
34281
34348
|
return SurveyModule;
|
|
34282
34349
|
}());
|
|
34350
|
+
SurveyModule.surveyMode = SurveyMode.Survey_Full_Access;
|
|
34283
34351
|
SurveyModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SurveyModule, deps: [{ token: i1__namespace.ConfigurationService }], target: i0__namespace.ɵɵFactoryTarget.NgModule });
|
|
34284
34352
|
SurveyModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: SurveyModule, declarations: [SurveyComponent,
|
|
34285
34353
|
AddSurveyComponent,
|
|
@@ -49096,7 +49164,7 @@
|
|
|
49096
49164
|
return DocumentExportItemDTO;
|
|
49097
49165
|
}());
|
|
49098
49166
|
|
|
49099
|
-
var contentTypesXML = "\n <?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n\n <Types xmlns=\"http://schemas.openxmlformats.org/package/2006/content-types\">\n <Default Extension=\"rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\" />\n <Default Extension=\"jpeg\" ContentType=\"image/jpeg\"/>\n <Default Extension=\"png\" ContentType=\"image/png\"/>\n <Default Extension=\"xml\" ContentType=\"application/xml\"/>\n <Override PartName=\"/_rels/.rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\"/>\n <Override PartName=\"/word/_rels/document.xml.rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\"/>\n <Override PartName=\"/word/_rels/
|
|
49167
|
+
var contentTypesXML = "\n <?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n\n <Types xmlns=\"http://schemas.openxmlformats.org/package/2006/content-types\">\n <Default Extension=\"rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\" />\n <Default Extension=\"jpeg\" ContentType=\"image/jpeg\"/>\n <Default Extension=\"png\" ContentType=\"image/png\"/>\n <Default Extension=\"xml\" ContentType=\"application/xml\"/>\n <Override PartName=\"/_rels/.rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\"/>\n <Override PartName=\"/word/_rels/document.xml.rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\"/>\n <Override PartName=\"/word/_rels/footer1.xml.rels\" ContentType=\"application/vnd.openxmlformats-package.relationships+xml\"/>\n <Override PartName=\"/word/document.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.document.main+xml\"/>\n <Override PartName=\"/word/styles.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.styles+xml\"/>\n <Override PartName=\"/word/numbering.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.numbering+xml\"/>\n <Override PartName=\"/word/theme/theme1.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.theme+xml\"/>\n <Override PartName=\"/word/fontTable.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.fontTable+xml\"/>\n <Override PartName=\"/docProps/core.xml\" ContentType=\"application/vnd.openxmlformats-package.core-properties+xml\"/>\n <Override PartName=\"/word/settings.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.settings+xml\"/>\n <Override PartName=\"/word/webSettings.xml\" ContentType=\"application/vnd.openxmlformats-officedocument.wordprocessingml.webSettings+xml\"/>\n <Override PartName=\"/word/afchunk.mht\" ContentType=\"message/rfc822\"/>\n <Override PartName=\"/word/afchunkheader.mht\" ContentType=\"message/rfc822\"/>\n <Override PartName=\"/word/afchunkfooter.mht\" ContentType=\"message/rfc822\"/>\n </Types>\n";
|
|
49100
49168
|
|
|
49101
49169
|
var namespaces = {
|
|
49102
49170
|
a: 'http://schemas.openxmlformats.org/drawingml/2006/main',
|
|
@@ -49276,11 +49344,23 @@
|
|
|
49276
49344
|
|
|
49277
49345
|
var webSettingsXML = "\n <?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n\n <w:webSettings xmlns:w=\"" + namespaces.w + "\" xmlns:r=\"" + namespaces.r + "\">\n </w:webSettings>\n";
|
|
49278
49346
|
|
|
49279
|
-
var genericRelsXML = "\n <?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n\n <Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">\n </Relationships>\n";
|
|
49347
|
+
var genericRelsXML = "\n <?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n\n <Relationships xmlns=\"http://schemas.openxmlformats.org/package/2006/relationships\">\n <Relationship Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk\" Target=\"/word/afchunk.mht\" Id=\"htmlChunk\" />\n <Relationship Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk\" Target=\"/word/afchunkheader.mht\" Id=\"htmlChunkHeader\" />\n <Relationship Type=\"http://schemas.openxmlformats.org/officeDocument/2006/relationships/aFChunk\" Target=\"/word/afchunkfooter.mht\" Id=\"htmlChunkFooter\" />\n </Relationships>\n";
|
|
49280
49348
|
|
|
49281
49349
|
var generateDocumentTemplate = function (width, height, orientation, margins) { return "\n <?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"yes\"?>\n <w:document\n xmlns:a=\"" + namespaces.a + "\"\n xmlns:cdr=\"" + namespaces.cdr + "\"\n xmlns:o=\"" + namespaces.o + "\"\n xmlns:pic=\"" + namespaces.pic + "\"\n xmlns:r=\"" + namespaces.r + "\"\n xmlns:v=\"" + namespaces.v + "\"\n xmlns:ve=\"" + namespaces.ve + "\"\n xmlns:vt=\"" + namespaces.vt + "\"\n xmlns:w=\"" + namespaces.w + "\"\n xmlns:w10=\"" + namespaces.w10 + "\"\n xmlns:wp=\"" + namespaces.wp + "\"\n xmlns:wne=\"" + namespaces.wne + "\"\n >\n <w:body>\n\n <w:altChunk r:id=\"htmlChunk\" />\n <w:sectPr>\n <w:pgSz w:w=\"" + width + "\" w:h=\"" + height + "\" w:orient=\"" + orientation + "\" />\n <w:pgMar w:top=\"" + margins.top + "\"\n w:right=\"" + margins.right + "\"\n w:bottom=\"" + margins.bottom + "\"\n w:left=\"" + margins.left + "\"\n w:header=\"" + margins.header + "\"\n w:footer=\"" + margins.footer + "\"\n w:gutter=\"" + margins.gutter + "\"/>\n </w:sectPr>\n </w:body>\n </w:document>\n "; };
|
|
49282
|
-
var generateDocumentTemplateHeader = "\n
|
|
49283
|
-
var generateDocumentTemplateFooter = "\n <w:ftr xmlns:w=\"
|
|
49350
|
+
var generateDocumentTemplateHeader = "\n<w:hdr\nxmlns:a=\"" + namespaces.a + "\"\nxmlns:cdr=\"" + namespaces.cdr + "\"\nxmlns:o=\"" + namespaces.o + "\"\nxmlns:pic=\"" + namespaces.pic + "\"\nxmlns:r=\"" + namespaces.r + "\"\nxmlns:v=\"" + namespaces.v + "\"\nxmlns:ve=\"" + namespaces.ve + "\"\nxmlns:vt=\"" + namespaces.vt + "\"\nxmlns:w=\"" + namespaces.w + "\"\nxmlns:w10=\"" + namespaces.w10 + "\"\nxmlns:wp=\"" + namespaces.wp + "\"\nxmlns:wne=\"" + namespaces.wne + "\"\n>\n<w:altChunk r:id=\"htmlChunkHeader\" />\n</w:hdr>\n ";
|
|
49351
|
+
var generateDocumentTemplateFooter = "\n <w:ftr\n xmlns:a=\"" + namespaces.a + "\"\n xmlns:cdr=\"" + namespaces.cdr + "\"\n xmlns:o=\"" + namespaces.o + "\"\n xmlns:pic=\"" + namespaces.pic + "\"\n xmlns:r=\"" + namespaces.r + "\"\n xmlns:v=\"" + namespaces.v + "\"\n xmlns:ve=\"" + namespaces.ve + "\"\n xmlns:vt=\"" + namespaces.vt + "\"\n xmlns:w=\"" + namespaces.w + "\"\n xmlns:w10=\"" + namespaces.w10 + "\"\n xmlns:wp=\"" + namespaces.wp + "\"\n >\n <w:altChunk r:id=\"htmlChunkFooter\" />\n\t<w:p w:rsidR=\"0014021C\" w:rsidRDefault=\"0014021C\" w:rsidP=\"0014021C\">\n\t\t\t<w:pPr>\n\t\t\t\t<w:pStyle w:val=\"Footer\"/>\n\t\t\t\t<w:jc w:val=\"center\"/>\n\t\t\t</w:pPr>\n <w:fldSimple xmlns:ns2=\"http://schemas.openxmlformats.org/wordprocessingml/2006/main\" ns2:instr=\"PAGE\">\n <w:r/>\n </w:fldSimple>\n\t\t</w:p>\n\t</w:ftr>\n ";
|
|
49352
|
+
var generateDocumentTemplateFooterWithoutPaging = "\n <w:ftr\n xmlns:a=\"" + namespaces.a + "\"\n xmlns:cdr=\"" + namespaces.cdr + "\"\n xmlns:o=\"" + namespaces.o + "\"\n xmlns:pic=\"" + namespaces.pic + "\"\n xmlns:r=\"" + namespaces.r + "\"\n xmlns:v=\"" + namespaces.v + "\"\n xmlns:ve=\"" + namespaces.ve + "\"\n xmlns:vt=\"" + namespaces.vt + "\"\n xmlns:w=\"" + namespaces.w + "\"\n xmlns:w10=\"" + namespaces.w10 + "\"\n xmlns:wp=\"" + namespaces.wp + "\"\n >\n <w:altChunk r:id=\"htmlChunkFooter\" />\n\t</w:ftr>\n ";
|
|
49353
|
+
{ /* <w:altChunk r:id="htmlChunkFooter" /> */ }
|
|
49354
|
+
{
|
|
49355
|
+
/* <w:altChunk r:id="htmlChunkFooter" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" /> */
|
|
49356
|
+
}
|
|
49357
|
+
{
|
|
49358
|
+
/* <w:ftr xmlns:w="http://schemas.openxmlformats.org/wordprocessingml/2006/main">
|
|
49359
|
+
<fldSimple xmlns:ns2="http://schemas.openxmlformats.org/wordprocessingml/2006/main" ns2:instr="PAGE">
|
|
49360
|
+
</fldSimple>
|
|
49361
|
+
<w:altChunk r:id="htmlChunkFooter" xmlns:r="http://schemas.openxmlformats.org/officeDocument/2006/relationships" />
|
|
49362
|
+
</w:ftr> */
|
|
49363
|
+
}
|
|
49284
49364
|
|
|
49285
49365
|
/* eslint-disable no-param-reassign */
|
|
49286
49366
|
var rgbRegex = /rgb\((\d+),\s*([\d.]+),\s*([\d.]+)\)/i;
|
|
@@ -51944,6 +52024,7 @@
|
|
|
51944
52024
|
DocxDocument.prototype.createDocumentRelationships = function (fileName, type, target, targetMode) {
|
|
51945
52025
|
if (fileName === void 0) { fileName = 'document'; }
|
|
51946
52026
|
if (targetMode === void 0) { targetMode = 'External'; }
|
|
52027
|
+
debugger;
|
|
51947
52028
|
var relationshipObject = this.relationships.find(function (relationship) { return relationship.fileName === fileName; });
|
|
51948
52029
|
var lastRelsId = 1;
|
|
51949
52030
|
if (relationshipObject) {
|
|
@@ -51978,6 +52059,8 @@
|
|
|
51978
52059
|
target: target,
|
|
51979
52060
|
targetMode: targetMode,
|
|
51980
52061
|
});
|
|
52062
|
+
console.log(fileName);
|
|
52063
|
+
console.log(relationshipObject.rels);
|
|
51981
52064
|
return lastRelsId;
|
|
51982
52065
|
};
|
|
51983
52066
|
DocxDocument.prototype.generateHeaderXML = function (vTree) {
|
|
@@ -52003,6 +52086,7 @@
|
|
|
52003
52086
|
};
|
|
52004
52087
|
|
|
52005
52088
|
var mhtDocumentTemplate = function (htmlSource, contentParts) {
|
|
52089
|
+
debugger;
|
|
52006
52090
|
return "MIME-Version: 1.0\nContent-Type: multipart/related;\n type=\"text/html\";\n boundary=\"----=mhtDocumentPart\"\n\n\n------=mhtDocumentPart\nContent-Type: text/html;\n charset=\"utf-8\"\nContent-Transfer-Encoding: quoted-printable\nContent-Location: file:///C:/fake/document.html\n\n" + htmlSource + "\n\n" + contentParts + "\n\n------=mhtDocumentPart--\n";
|
|
52007
52091
|
};
|
|
52008
52092
|
|
|
@@ -52011,12 +52095,14 @@
|
|
|
52011
52095
|
};
|
|
52012
52096
|
|
|
52013
52097
|
function getMHTdocument(htmlSource) {
|
|
52098
|
+
debugger;
|
|
52014
52099
|
var ref = _prepareImageParts(htmlSource);
|
|
52015
52100
|
var imageContentPartsString = ref.imageContentParts.join('\n');
|
|
52016
52101
|
htmlSource = ref.htmlSource.replace(/\=/g, '=3D');
|
|
52017
52102
|
return mhtDocumentTemplate(htmlSource, imageContentPartsString);
|
|
52018
52103
|
}
|
|
52019
52104
|
function _prepareImageParts(htmlSource) {
|
|
52105
|
+
debugger;
|
|
52020
52106
|
var imageContentParts = [];
|
|
52021
52107
|
var inlinedSrcPattern = /"data:(\w+\/\w+);(\w+),(\S+)"/g;
|
|
52022
52108
|
var inlinedReplacer = function (match, contentType, contentEncoding, encodedContent) {
|
|
@@ -52158,9 +52244,15 @@
|
|
|
52158
52244
|
docxDocument.relationshipFilename = documentFileName;
|
|
52159
52245
|
fileNameWithExt = "" + footerType + footerId + ".xml";
|
|
52160
52246
|
relationshipId = docxDocument.createDocumentRelationships(docxDocument.relationshipFilename, footerType, fileNameWithExt, internalRelationship);
|
|
52161
|
-
|
|
52162
|
-
|
|
52163
|
-
|
|
52247
|
+
console.log(footerXML.toString({ prettyPrint: true }));
|
|
52248
|
+
if (suppliedDocumentOptions.pageNumber)
|
|
52249
|
+
zip.folder(wordFolder).file(fileNameWithExt, generateDocumentTemplateFooter.toString({ prettyPrint: true }), {
|
|
52250
|
+
createFolders: false,
|
|
52251
|
+
});
|
|
52252
|
+
else
|
|
52253
|
+
zip.folder(wordFolder).file(fileNameWithExt, generateDocumentTemplateFooterWithoutPaging.toString({ prettyPrint: true }), {
|
|
52254
|
+
createFolders: false,
|
|
52255
|
+
});
|
|
52164
52256
|
docxDocument.footerObjects.push({ footerId: footerId, relationshipId: relationshipId, type: docxDocument.footerType });
|
|
52165
52257
|
_d.label = 5;
|
|
52166
52258
|
case 5:
|
|
@@ -52193,6 +52285,7 @@
|
|
|
52193
52285
|
if (relationshipXMLs && Array.isArray(relationshipXMLs)) {
|
|
52194
52286
|
relationshipXMLs.forEach(function (_a) {
|
|
52195
52287
|
var fileName = _a.fileName, xmlString = _a.xmlString;
|
|
52288
|
+
console.log(xmlString);
|
|
52196
52289
|
zip.folder(wordFolder).folder(relsFolderName).file(fileName + ".xml.rels", xmlString, {
|
|
52197
52290
|
createFolders: false,
|
|
52198
52291
|
});
|
|
@@ -52445,18 +52538,18 @@
|
|
|
52445
52538
|
return _this.templateService.exportPDF(ExportDocumentTemplateModel);
|
|
52446
52539
|
};
|
|
52447
52540
|
_this.onSuccessExportHandler = function (result) { return __awaiter(_this, void 0, void 0, function () {
|
|
52448
|
-
var now, latest_date, fileName_1, documentOptions,
|
|
52541
|
+
var now, latest_date, fileName_1, documentOptions, fileBufferLib, fileName;
|
|
52449
52542
|
return __generator(this, function (_d) {
|
|
52450
52543
|
switch (_d.label) {
|
|
52451
52544
|
case 0:
|
|
52452
52545
|
now = new Date().toISOString();
|
|
52453
52546
|
latest_date = this.datepipe.transform(now, 'dd-MM-yyyy HH.mm');
|
|
52454
|
-
if (!(this.exportType == 2)) return [3 /*break*/,
|
|
52547
|
+
if (!(this.exportType == 2)) return [3 /*break*/, 2];
|
|
52455
52548
|
fileName_1 = this.TemplateInfo.localizedTemplateName + '_' + latest_date + '.doc';
|
|
52456
52549
|
documentOptions = {};
|
|
52457
52550
|
if (result.isLandscape)
|
|
52458
52551
|
documentOptions.orientation = 'landscape';
|
|
52459
|
-
documentOptions.pageNumber =
|
|
52552
|
+
// documentOptions.pageNumber =result.showPaging;
|
|
52460
52553
|
documentOptions.pageSize = {
|
|
52461
52554
|
width: result.pageWidth * 15,
|
|
52462
52555
|
height: result.pageHeight * 15
|
|
@@ -52474,16 +52567,12 @@
|
|
|
52474
52567
|
documentOptions.header = true;
|
|
52475
52568
|
documentOptions.pageNumber = true;
|
|
52476
52569
|
documentOptions.table = { row: { cantSplit: true } };
|
|
52477
|
-
return [4 /*yield*/, generateContainer(result.body, result.header, documentOptions, result.footer)];
|
|
52478
|
-
case 1:
|
|
52479
|
-
fileBuffer = _d.sent();
|
|
52480
|
-
this.downloadWord(fileBuffer, fileName_1);
|
|
52481
52570
|
return [4 /*yield*/, this.templateService.generateWordByteFile(result.body, result.header, documentOptions, result.footer)];
|
|
52482
|
-
case
|
|
52571
|
+
case 1:
|
|
52483
52572
|
fileBufferLib = _d.sent();
|
|
52484
|
-
this.downloadWord(
|
|
52573
|
+
this.downloadWord(fileBufferLib, "Lib" + fileName_1);
|
|
52485
52574
|
return [2 /*return*/];
|
|
52486
|
-
case
|
|
52575
|
+
case 2:
|
|
52487
52576
|
fileName = this.TemplateInfo.localizedTemplateName + '_' + latest_date + '.pdf';
|
|
52488
52577
|
this.downloadPDF(result, fileName);
|
|
52489
52578
|
return [2 /*return*/];
|
|
@@ -52725,7 +52814,7 @@
|
|
|
52725
52814
|
return DocumentTemplateInfoComponent;
|
|
52726
52815
|
}(i6.AppBaseComponent));
|
|
52727
52816
|
DocumentTemplateInfoComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: DocumentTemplateInfoComponent, deps: [{ token: i0__namespace.Injector }, { token: i1__namespace.UtilityService }, { token: i1__namespace.BBSFTranslateService }, { token: i3__namespace.ClipboardService }, { token: DocumentTemplateService }, { token: i1__namespace$1.ActivatedRoute }, { token: PageInfoService }, { token: i5__namespace.NgbModal }, { token: i10__namespace.DatePipe }, { token: i1__namespace.RequestHandlerService }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
52728
|
-
DocumentTemplateInfoComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: DocumentTemplateInfoComponent, selector: "lib-document-template-info", usesInheritance: true, ngImport: i0__namespace, template: "<block-ui></block-ui>\r\n\r\n<div class=\"container-fluid\" *ngIf=\"isDataLoaded\">\r\n <div class=\"card card-custom-h\">\r\n <div class=\"card-header border-0 pt-5\">\r\n <div class=\"card-title align-items-start flex-column\">\r\n\r\n </div>\r\n <div class=\"card-toolbar\">\r\n <button type=\"button\" id=\"btnSetPass\" class=\"btn btn-sm me-3\r\n btn-light-primary\"\r\n (click)=\"showEditTemplateModal(EditTemplateModal)\">\r\n <i class=\"fa fa fa-edit\" aria-hidden=\"true\"></i>\r\n <span>{{utilityService.getResourceValue(\"Edit\")}}</span>\r\n </button>\r\n <button type=\"button\" id=\"btnSetPass\" class=\"btn btn-sm me-3\r\n btn-light-primary\"\r\n (click)=\"showTestExportDocumentModal(ExportDocumentModal)\">\r\n <i class=\"fa fa fa-download\" aria-hidden=\"true\"></i>\r\n <span>{{utilityService.getResourceValue(\"Export\")}}</span>\r\n </button>\r\n <button type=\"button\" id=\"btnSetPass\" class=\"btn btn-sm me-3\r\n btn-light-primary\"\r\n (click)=\"showTestExportDocumentModal(ExportDocumentModal,2)\">\r\n <i class=\"fa fa fa-download\" aria-hidden=\"true\"></i>\r\n <span>{{utilityService.getResourceValue(\"ExportWord\")}}</span>\r\n </button>\r\n <button type=\"button\" id=\"btnSetPass\" class=\"btn btn-sm me-3\r\n btn-primary\" *ngIf=\"!ProductionMode\"\r\n (click)=\"showGenerateCodeByIdModal(GenerateCodeModal)\">\r\n <i class=\"fa fa-bars\"></i>{{utilityService.getResourceValue(\"GenerateCode\")}}\r\n </button>\r\n <button type=\"button\" id=\"btnSetPass\" class=\"btn btn-sm me-3\r\n btn-primary\" *ngIf=\"!ProductionMode\"\r\n (click)=\"showGenerateUpdateCodeByIdModal(GenerateCodeModal)\">\r\n <i class=\"fa fa-key\"></i>{{utilityService.getResourceValue(\"GenerateUpdateCode\")}}\r\n </button>\r\n\r\n </div>\r\n </div>\r\n <div class=\"card-body py-3\">\r\n <div class=\"row\">\r\n <div class=\"col-xl-6 mb-10\">\r\n <div class=\"d-flex h-100 align-items-center \">\r\n <!--begin::Option-->\r\n <div class=\"w-100 d-flex flex-column flex-center rounded-3 bg-light\r\n py-10 px-10 h-100\">\r\n <!--begin::Heading-->\r\n <div class=\"mb-7 d-flex justify-content-between w-100\">\r\n <!--begin::Title-->\r\n <a\r\n [routerLink]=\"['/Admin/Documents/EditTemplate',TemplateId,'en']\"\r\n routerLinkActive=\"router-link-active\" class=\"text-primary mb-5\r\n fw-boldest fs-2\">\r\n English:\r\n {{TemplateInfo.templateNameEN}}\r\n </a>\r\n\r\n <a\r\n [routerLink]=\"['/Admin/Documents/EditTemplate',TemplateId,'en']\"\r\n routerLinkActive=\"router-link-active\" class=\"btn btn-sm\r\n btn-light-primary btn-icon\">\r\n <i class=\"fa fa-pen\"></i>\r\n </a>\r\n\r\n </div>\r\n <div class=\"w-100 mb-10\">\r\n <!--begin::Item-->\r\n <div class=\"d-flex align-items-center mb-5\">\r\n <div class=\"fw-bold fs-6 text-gray-800 flex-grow-1 pe-3\">\r\n <div innerHTML=\"{{TemplateInfo.headerEN}}\">\r\n </div>\r\n <div innerHTML=\"{{TemplateInfo.bodyEN}}\">\r\n </div>\r\n <div innerHTML=\"{{TemplateInfo.footerEN}}\">\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!--end::Select-->\r\n </div>\r\n <!--end::Option-->\r\n </div>\r\n </div>\r\n <div class=\"col-xl-6 mb-10\">\r\n <div class=\"d-flex h-100 align-items-center\">\r\n <!--begin::Option-->\r\n <div class=\"w-100 d-flex flex-column flex-center rounded-3 bg-light\r\n py-10 px-10 h-100\">\r\n <!--begin::Heading-->\r\n <div class=\"mb-7 d-flex justify-content-between w-100\">\r\n <!--begin::Title-->\r\n <a\r\n [routerLink]=\"['/Admin/Documents/EditTemplate',TemplateId,'ar']\"\r\n routerLinkActive=\"router-link-active\" class=\"text-primary mb-5\r\n fw-boldest fs-2\">\r\n Arabic:\r\n {{TemplateInfo.templateNameAR}}\r\n </a>\r\n <a\r\n [routerLink]=\"['/Admin/Documents/EditTemplate',TemplateId,'ar']\"\r\n routerLinkActive=\"router-link-active\" class=\"btn btn-sm\r\n btn-light-primary btn-icon\">\r\n <i class=\"fa fa-pen\"></i>\r\n </a>\r\n </div>\r\n <div class=\"w-100 mb-10\">\r\n <!--begin::Item-->\r\n <div class=\"d-flex align-items-center mb-5\">\r\n <div class=\"fw-bold fs-6 text-gray-800 flex-grow-1 pe-3 ar\">\r\n <div innerHTML=\"{{TemplateInfo.headerAR}}\">\r\n </div>\r\n <div innerHTML=\"{{TemplateInfo.bodyAR}}\">\r\n </div>\r\n <div innerHTML=\"{{TemplateInfo.footerAR}}\">\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n <!--end::Select-->\r\n </div>\r\n <!--end::Option-->\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n\r\n<!-- edit Modal -->\r\n<ng-template #EditTemplateModal let-modal>\r\n <div class=\"modal-header pb-0 border-0 justify-content-end\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\"></h5>\r\n <button type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\" class=\"btn\r\n btn-sm btn-icon btn-active-color-primary\" (click)=\"modal.dismiss()\">\r\n <span class=\"svg-icon svg-icon-1\">\r\n <span [inlineSVG]=\"'./src/assets/images/arr061.svg'\"></span>\r\n </span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body scroll-y px-10 px-lg-15 pt-0 pb-15\">\r\n <div class=\"mb-13 text-center\">\r\n <h1 class=\"mb-3\">{{utilityService.getResourceValue(\"Edit\")}}\r\n {{utilityService.getResourceValue(\"Template\")}}</h1>\r\n </div>\r\n\r\n <BBSF-Form [options]=\"EditTemplateFormOptions\">\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-MultiLingualTextBox [options]=\"EditName\"\r\n [group]=\"EditTemplateForm\"></BBSF-MultiLingualTextBox>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-MultiLingualTextArea [options]=\"EditDescription\"\r\n [group]=\"EditTemplateForm\">\r\n </BBSF-MultiLingualTextArea>\r\n </div>\r\n </div>\r\n <div class=\"row\" *ngIf=\"!ProductionMode\">\r\n <div class=\"col-md-12\">\r\n <BBSF-TextBox [options]=\"EditSysName\" [group]=\"EditTemplateForm\">\r\n </BBSF-TextBox>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-DropdownList [options]=\"EditOrganization\"\r\n [group]=\"EditTemplateForm\">\r\n </BBSF-DropdownList>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-DropdownList [options]=\"EditCategory\"\r\n [group]=\"EditTemplateForm\">\r\n </BBSF-DropdownList>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-DropdownList [options]=\"EditMasterLayout\"\r\n [group]=\"EditTemplateForm\">\r\n </BBSF-DropdownList>\r\n </div>\r\n </div>\r\n\r\n\r\n <div class=\"text-center pt-7\">\r\n <button #CloseEditTemplateModal id=\"CloseEditTemplateModal\"\r\n type=\"button\" class=\"btn btn-light me-3 btn-sm\"\r\n (click)=\"modal.dismiss()\">\r\n {{utilityService.getResourceValue(\"CancelLabel\")}}\r\n </button>\r\n <button type=\"submit\" class=\"btn btn-primary btn-sm\">{{utilityService.getResourceValue(\"SaveLabel\")}}</button>\r\n </div>\r\n </BBSF-Form>\r\n </div>\r\n</ng-template>\r\n\r\n\r\n\r\n<!-- Export Document Modal -->\r\n<ng-template #ExportDocumentModal let-modal>\r\n <div class=\"modal-header pb-0 border-0 justify-content-end\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\"></h5>\r\n <button type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\" class=\"btn btn-sm btn-icon btn-active-color-primary\" (click)=\"modal.dismiss()\">\r\n <span class=\"svg-icon svg-icon-1\">\r\n <span [inlineSVG]=\"'./src/assets/images/arr061.svg'\"></span>\r\n </span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body scroll-y px-10 px-lg-15 pt-0 pb-15\">\r\n <div class=\"mb-13 text-center\">\r\n <h1 class=\"mb-3\">{{utilityService.getResourceValue(\"Export\")}}</h1>\r\n </div>\r\n <BBSF-Form [options]=\"TestExportDocumentFormOptions\">\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-repeater-table [options]=\"addKeyValueRepeaterOptions\" [group]=\"TestExportDocumentForm\">\r\n </BBSF-repeater-table>\r\n </div>\r\n </div>\r\n\r\n <div class=\"text-center pt-7\">\r\n <button #CloseSendEmailForm id=\"CloseSendEmailForm\" type=\"button\" class=\"btn btn-light me-3 btn-sm\"\r\n (click)=\"modal.dismiss()\">\r\n {{utilityService.getResourceValue(\"CancelLabel\")}}\r\n </button>\r\n <button type=\"submit\" class=\"btn btn-primary btn-sm\">{{utilityService.getResourceValue(\"Export\")}}</button>\r\n </div>\r\n </BBSF-Form>\r\n </div>\r\n</ng-template>\r\n\r\n\r\n<!-- GenerateCode Modal -->\r\n<ng-template #GenerateCodeModal let-modal>\r\n <div class=\"modal-header pb-0 border-0 justify-content-end\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\"></h5>\r\n <button type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\" class=\"btn\r\n btn-sm btn-icon btn-active-color-primary\" (click)=\"modal.dismiss()\">\r\n <span class=\"svg-icon svg-icon-1\">\r\n <span [inlineSVG]=\"'./src/assets/images/arr061.svg'\"></span>\r\n </span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body scroll-y px-10 px-lg-15 pt-0 pb-15\">\r\n <div class=\"mb-13 text-center\">\r\n <h1 class=\"mb-3\">{{utilityService.getResourceValue(\"GenerateCode\")}}</h1>\r\n </div>\r\n <form [formGroup]=\"GenerateCodeForm\">\r\n\r\n <div class=\"Row\">\r\n <BBSF-TextArea [options]=\"GenerateCodeTextArea\"\r\n [group]=\"GenerateCodeForm\" #GenerateCodeInput>\r\n </BBSF-TextArea>\r\n </div>\r\n <div class=\"text-center pt-7\">\r\n <button #CloseGenerateCodeModal id=\"CloseGenerateCodeModal\"\r\n type=\"button\" class=\"btn btn-light me-3 btn-sm\"\r\n (click)=\"modal.dismiss()\">\r\n {{utilityService.getResourceValue(\"CancelLabel\")}}\r\n </button>\r\n <button type=\"button\" class=\"btn btn-primary btn-sm\"\r\n (click)=\"copyInputMessage()\">\r\n {{utilityService.getResourceValue(\"CopyToClipboard\")}}\r\n </button>\r\n </div>\r\n </form>\r\n </div>\r\n</ng-template>\r\n", components: [{ type: i5__namespace$1.BlockUIComponent, selector: "block-ui", inputs: ["name", "template", "message", "delayStart", "delayStop"] }, { type: i6__namespace.FormComponent, selector: "BBSF-Form", inputs: ["options"], outputs: ["OnChange"] }, { type: i6__namespace.MultiLingualTextBoxComponent, selector: "BBSF-MultiLingualTextBox", inputs: ["group", "options"], outputs: ["OnChange"] }, { type: i6__namespace.MultiLingualTextAreaComponent, selector: "BBSF-MultiLingualTextArea", inputs: ["group", "options"], outputs: ["OnChange"] }, { type: i6__namespace.TextboxComponent, selector: "BBSF-TextBox", inputs: ["group", "options"], outputs: ["OnChange"] }, { type: i6__namespace.DropdownListComponent, selector: "BBSF-DropdownList", inputs: ["group", "options"], outputs: ["OnChange", "onClear"] }, { type: i6__namespace.RepeaterTableComponent, selector: "BBSF-repeater-table", inputs: ["group", "options"] }, { type: i6__namespace.TextAreaComponent, selector: "BBSF-TextArea", inputs: ["group", "options"], outputs: ["OnChange"] }], directives: [{ type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i1__namespace$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "routerLinkActive"], exportAs: ["routerLinkActive"] }, { type: i11__namespace.InlineSVGDirective, selector: "[inlineSVG]", inputs: ["resolveSVGUrl", "replaceContents", "prepend", "injectComponent", "cacheSVG", "forceEvalStyles", "evalScripts", "inlineSVG", "setSVGAttributes", "removeSVGAttributes", "fallbackImgUrl", "onSVGLoaded"], outputs: ["onSVGInserted", "onSVGFailed"] }, { type: i11__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i11__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i11__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }] });
|
|
52817
|
+
DocumentTemplateInfoComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.13", type: DocumentTemplateInfoComponent, selector: "lib-document-template-info", usesInheritance: true, ngImport: i0__namespace, template: "<block-ui></block-ui>\r\n\r\n<div class=\"container-fluid\" *ngIf=\"isDataLoaded\">\r\n <div class=\"card card-custom-h\">\r\n <div class=\"card-header border-0 pt-5\">\r\n <div class=\"card-title align-items-start flex-column\">\r\n\r\n </div>\r\n <div class=\"card-toolbar\">\r\n <button type=\"button\" id=\"btnSetPass\" class=\"btn btn-sm me-3\r\n btn-light-primary\"\r\n (click)=\"showEditTemplateModal(EditTemplateModal)\">\r\n <i class=\"fa fa fa-edit\" aria-hidden=\"true\"></i>\r\n <span>{{utilityService.getResourceValue(\"Edit\")}}</span>\r\n </button>\r\n <button type=\"button\" id=\"btnSetPass\" class=\"btn btn-sm me-3\r\n btn-light-primary\"\r\n (click)=\"showTestExportDocumentModal(ExportDocumentModal)\">\r\n <i class=\"fa fa fa-download\" aria-hidden=\"true\"></i>\r\n <span>{{utilityService.getResourceValue(\"Export\")}}</span>\r\n </button>\r\n <button type=\"button\" id=\"btnSetPass\" class=\"btn btn-sm me-3\r\n btn-light-primary\"\r\n (click)=\"showTestExportDocumentModal(ExportDocumentModal,2)\">\r\n <i class=\"fa fa fa-download\" aria-hidden=\"true\"></i>\r\n <span>{{utilityService.getResourceValue(\"Export\")}} Word</span>\r\n </button>\r\n <button type=\"button\" id=\"btnSetPass\" class=\"btn btn-sm me-3\r\n btn-primary\" *ngIf=\"!ProductionMode\"\r\n (click)=\"showGenerateCodeByIdModal(GenerateCodeModal)\">\r\n <i class=\"fa fa-bars\"></i>{{utilityService.getResourceValue(\"GenerateCode\")}}\r\n </button>\r\n <button type=\"button\" id=\"btnSetPass\" class=\"btn btn-sm me-3\r\n btn-primary\" *ngIf=\"!ProductionMode\"\r\n (click)=\"showGenerateUpdateCodeByIdModal(GenerateCodeModal)\">\r\n <i class=\"fa fa-key\"></i>{{utilityService.getResourceValue(\"GenerateUpdateCode\")}}\r\n </button>\r\n\r\n </div>\r\n </div>\r\n <div class=\"card-body py-3\">\r\n <div class=\"row\">\r\n <div class=\"col-xl-6 mb-10\">\r\n <div class=\"d-flex h-100 align-items-center \">\r\n <!--begin::Option-->\r\n <div class=\"w-100 d-flex flex-column flex-center rounded-3 bg-light\r\n py-10 px-10 h-100\">\r\n <!--begin::Heading-->\r\n <div class=\"mb-7 d-flex justify-content-between w-100\">\r\n <!--begin::Title-->\r\n <a\r\n [routerLink]=\"['/Admin/Documents/EditTemplate',TemplateId,'en']\"\r\n routerLinkActive=\"router-link-active\" class=\"text-primary mb-5\r\n fw-boldest fs-2\">\r\n English:\r\n {{TemplateInfo.templateNameEN}}\r\n </a>\r\n\r\n <a\r\n [routerLink]=\"['/Admin/Documents/EditTemplate',TemplateId,'en']\"\r\n routerLinkActive=\"router-link-active\" class=\"btn btn-sm\r\n btn-light-primary btn-icon\">\r\n <i class=\"fa fa-pen\"></i>\r\n </a>\r\n\r\n </div>\r\n <div class=\"w-100 mb-10\">\r\n <!--begin::Item-->\r\n <div class=\"d-flex align-items-center mb-5\">\r\n <div class=\"fw-bold fs-6 text-gray-800 flex-grow-1 pe-3\">\r\n <div innerHTML=\"{{TemplateInfo.headerEN}}\">\r\n </div>\r\n <div innerHTML=\"{{TemplateInfo.bodyEN}}\">\r\n </div>\r\n <div innerHTML=\"{{TemplateInfo.footerEN}}\">\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <!--end::Select-->\r\n </div>\r\n <!--end::Option-->\r\n </div>\r\n </div>\r\n <div class=\"col-xl-6 mb-10\">\r\n <div class=\"d-flex h-100 align-items-center\">\r\n <!--begin::Option-->\r\n <div class=\"w-100 d-flex flex-column flex-center rounded-3 bg-light\r\n py-10 px-10 h-100\">\r\n <!--begin::Heading-->\r\n <div class=\"mb-7 d-flex justify-content-between w-100\">\r\n <!--begin::Title-->\r\n <a\r\n [routerLink]=\"['/Admin/Documents/EditTemplate',TemplateId,'ar']\"\r\n routerLinkActive=\"router-link-active\" class=\"text-primary mb-5\r\n fw-boldest fs-2\">\r\n Arabic:\r\n {{TemplateInfo.templateNameAR}}\r\n </a>\r\n <a\r\n [routerLink]=\"['/Admin/Documents/EditTemplate',TemplateId,'ar']\"\r\n routerLinkActive=\"router-link-active\" class=\"btn btn-sm\r\n btn-light-primary btn-icon\">\r\n <i class=\"fa fa-pen\"></i>\r\n </a>\r\n </div>\r\n <div class=\"w-100 mb-10\">\r\n <!--begin::Item-->\r\n <div class=\"d-flex align-items-center mb-5\">\r\n <div class=\"fw-bold fs-6 text-gray-800 flex-grow-1 pe-3 ar\">\r\n <div innerHTML=\"{{TemplateInfo.headerAR}}\">\r\n </div>\r\n <div innerHTML=\"{{TemplateInfo.bodyAR}}\">\r\n </div>\r\n <div innerHTML=\"{{TemplateInfo.footerAR}}\">\r\n </div>\r\n\r\n </div>\r\n </div>\r\n </div>\r\n\r\n\r\n <!--end::Select-->\r\n </div>\r\n <!--end::Option-->\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n\r\n\r\n<!-- edit Modal -->\r\n<ng-template #EditTemplateModal let-modal>\r\n <div class=\"modal-header pb-0 border-0 justify-content-end\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\"></h5>\r\n <button type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\" class=\"btn\r\n btn-sm btn-icon btn-active-color-primary\" (click)=\"modal.dismiss()\">\r\n <span class=\"svg-icon svg-icon-1\">\r\n <span [inlineSVG]=\"'./src/assets/images/arr061.svg'\"></span>\r\n </span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body scroll-y px-10 px-lg-15 pt-0 pb-15\">\r\n <div class=\"mb-13 text-center\">\r\n <h1 class=\"mb-3\">{{utilityService.getResourceValue(\"Edit\")}}\r\n {{utilityService.getResourceValue(\"Template\")}}</h1>\r\n </div>\r\n\r\n <BBSF-Form [options]=\"EditTemplateFormOptions\">\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-MultiLingualTextBox [options]=\"EditName\"\r\n [group]=\"EditTemplateForm\"></BBSF-MultiLingualTextBox>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-MultiLingualTextArea [options]=\"EditDescription\"\r\n [group]=\"EditTemplateForm\">\r\n </BBSF-MultiLingualTextArea>\r\n </div>\r\n </div>\r\n <div class=\"row\" *ngIf=\"!ProductionMode\">\r\n <div class=\"col-md-12\">\r\n <BBSF-TextBox [options]=\"EditSysName\" [group]=\"EditTemplateForm\">\r\n </BBSF-TextBox>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-DropdownList [options]=\"EditOrganization\"\r\n [group]=\"EditTemplateForm\">\r\n </BBSF-DropdownList>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-DropdownList [options]=\"EditCategory\"\r\n [group]=\"EditTemplateForm\">\r\n </BBSF-DropdownList>\r\n </div>\r\n </div>\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-DropdownList [options]=\"EditMasterLayout\"\r\n [group]=\"EditTemplateForm\">\r\n </BBSF-DropdownList>\r\n </div>\r\n </div>\r\n\r\n\r\n <div class=\"text-center pt-7\">\r\n <button #CloseEditTemplateModal id=\"CloseEditTemplateModal\"\r\n type=\"button\" class=\"btn btn-light me-3 btn-sm\"\r\n (click)=\"modal.dismiss()\">\r\n {{utilityService.getResourceValue(\"CancelLabel\")}}\r\n </button>\r\n <button type=\"submit\" class=\"btn btn-primary btn-sm\">{{utilityService.getResourceValue(\"SaveLabel\")}}</button>\r\n </div>\r\n </BBSF-Form>\r\n </div>\r\n</ng-template>\r\n\r\n\r\n\r\n<!-- Export Document Modal -->\r\n<ng-template #ExportDocumentModal let-modal>\r\n <div class=\"modal-header pb-0 border-0 justify-content-end\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\"></h5>\r\n <button type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\" class=\"btn btn-sm btn-icon btn-active-color-primary\" (click)=\"modal.dismiss()\">\r\n <span class=\"svg-icon svg-icon-1\">\r\n <span [inlineSVG]=\"'./src/assets/images/arr061.svg'\"></span>\r\n </span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body scroll-y px-10 px-lg-15 pt-0 pb-15\">\r\n <div class=\"mb-13 text-center\">\r\n <h1 class=\"mb-3\">{{utilityService.getResourceValue(\"Export\")}}</h1>\r\n </div>\r\n <BBSF-Form [options]=\"TestExportDocumentFormOptions\">\r\n <div class=\"row\">\r\n <div class=\"col-md-12\">\r\n <BBSF-repeater-table [options]=\"addKeyValueRepeaterOptions\" [group]=\"TestExportDocumentForm\">\r\n </BBSF-repeater-table>\r\n </div>\r\n </div>\r\n\r\n <div class=\"text-center pt-7\">\r\n <button #CloseSendEmailForm id=\"CloseSendEmailForm\" type=\"button\" class=\"btn btn-light me-3 btn-sm\"\r\n (click)=\"modal.dismiss()\">\r\n {{utilityService.getResourceValue(\"CancelLabel\")}}\r\n </button>\r\n <button type=\"submit\" class=\"btn btn-primary btn-sm\">{{utilityService.getResourceValue(\"Export\")}}</button>\r\n </div>\r\n </BBSF-Form>\r\n </div>\r\n</ng-template>\r\n\r\n\r\n<!-- GenerateCode Modal -->\r\n<ng-template #GenerateCodeModal let-modal>\r\n <div class=\"modal-header pb-0 border-0 justify-content-end\">\r\n <h5 class=\"modal-title\" id=\"exampleModalLabel\"></h5>\r\n <button type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\" class=\"btn\r\n btn-sm btn-icon btn-active-color-primary\" (click)=\"modal.dismiss()\">\r\n <span class=\"svg-icon svg-icon-1\">\r\n <span [inlineSVG]=\"'./src/assets/images/arr061.svg'\"></span>\r\n </span>\r\n </button>\r\n </div>\r\n <div class=\"modal-body scroll-y px-10 px-lg-15 pt-0 pb-15\">\r\n <div class=\"mb-13 text-center\">\r\n <h1 class=\"mb-3\">{{utilityService.getResourceValue(\"GenerateCode\")}}</h1>\r\n </div>\r\n <form [formGroup]=\"GenerateCodeForm\">\r\n\r\n <div class=\"Row\">\r\n <BBSF-TextArea [options]=\"GenerateCodeTextArea\"\r\n [group]=\"GenerateCodeForm\" #GenerateCodeInput>\r\n </BBSF-TextArea>\r\n </div>\r\n <div class=\"text-center pt-7\">\r\n <button #CloseGenerateCodeModal id=\"CloseGenerateCodeModal\"\r\n type=\"button\" class=\"btn btn-light me-3 btn-sm\"\r\n (click)=\"modal.dismiss()\">\r\n {{utilityService.getResourceValue(\"CancelLabel\")}}\r\n </button>\r\n <button type=\"button\" class=\"btn btn-primary btn-sm\"\r\n (click)=\"copyInputMessage()\">\r\n {{utilityService.getResourceValue(\"CopyToClipboard\")}}\r\n </button>\r\n </div>\r\n </form>\r\n </div>\r\n</ng-template>\r\n", components: [{ type: i5__namespace$1.BlockUIComponent, selector: "block-ui", inputs: ["name", "template", "message", "delayStart", "delayStop"] }, { type: i6__namespace.FormComponent, selector: "BBSF-Form", inputs: ["options"], outputs: ["OnChange"] }, { type: i6__namespace.MultiLingualTextBoxComponent, selector: "BBSF-MultiLingualTextBox", inputs: ["group", "options"], outputs: ["OnChange"] }, { type: i6__namespace.MultiLingualTextAreaComponent, selector: "BBSF-MultiLingualTextArea", inputs: ["group", "options"], outputs: ["OnChange"] }, { type: i6__namespace.TextboxComponent, selector: "BBSF-TextBox", inputs: ["group", "options"], outputs: ["OnChange"] }, { type: i6__namespace.DropdownListComponent, selector: "BBSF-DropdownList", inputs: ["group", "options"], outputs: ["OnChange", "onClear"] }, { type: i6__namespace.RepeaterTableComponent, selector: "BBSF-repeater-table", inputs: ["group", "options"] }, { type: i6__namespace.TextAreaComponent, selector: "BBSF-TextArea", inputs: ["group", "options"], outputs: ["OnChange"] }], directives: [{ type: i10__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }, { type: i1__namespace$1.RouterLinkActive, selector: "[routerLinkActive]", inputs: ["routerLinkActiveOptions", "routerLinkActive"], exportAs: ["routerLinkActive"] }, { type: i11__namespace.InlineSVGDirective, selector: "[inlineSVG]", inputs: ["resolveSVGUrl", "replaceContents", "prepend", "injectComponent", "cacheSVG", "forceEvalStyles", "evalScripts", "inlineSVG", "setSVGAttributes", "removeSVGAttributes", "fallbackImgUrl", "onSVGLoaded"], outputs: ["onSVGInserted", "onSVGFailed"] }, { type: i11__namespace$1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i11__namespace$1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i11__namespace$1.FormGroupDirective, selector: "[formGroup]", inputs: ["formGroup"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }] });
|
|
52729
52818
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.13", ngImport: i0__namespace, type: DocumentTemplateInfoComponent, decorators: [{
|
|
52730
52819
|
type: i0.Component,
|
|
52731
52820
|
args: [{
|
|
@@ -53739,6 +53828,61 @@
|
|
|
53739
53828
|
type: i0.Injectable
|
|
53740
53829
|
}] });
|
|
53741
53830
|
|
|
53831
|
+
exports.LanguageType = void 0;
|
|
53832
|
+
(function (LanguageType) {
|
|
53833
|
+
LanguageType["English"] = "ebe77688-d7d3-481c-aace-da4a97a863bf";
|
|
53834
|
+
LanguageType["Arabic"] = "55dccd92-f411-4fae-b5b2-9e9002b1ea67";
|
|
53835
|
+
LanguageType["Any"] = "0384dbac-c3fa-4ba3-be28-e10110350459";
|
|
53836
|
+
})(exports.LanguageType || (exports.LanguageType = {}));
|
|
53837
|
+
exports.AudienceType = void 0;
|
|
53838
|
+
(function (AudienceType) {
|
|
53839
|
+
AudienceType["Internal"] = "a4daa431-62c1-404a-aeec-b505bfbd037e";
|
|
53840
|
+
AudienceType["External"] = "39a52e7c-72c3-4eb5-830b-d610933cd9ba";
|
|
53841
|
+
AudienceType["Both"] = "ff13d40b-b5ee-482c-abd3-3a72c29374eb";
|
|
53842
|
+
})(exports.AudienceType || (exports.AudienceType = {}));
|
|
53843
|
+
exports.SurveyStatusEnum = void 0;
|
|
53844
|
+
(function (SurveyStatusEnum) {
|
|
53845
|
+
SurveyStatusEnum["ScoringTypeEnum_Draft"] = "4ff92e54-c966-4e7e-a58a-47b0269196c1";
|
|
53846
|
+
SurveyStatusEnum["ScoringTypeEnum_Upcoming"] = "e8ef5c73-67f0-4345-a931-5bcbe9e31963";
|
|
53847
|
+
SurveyStatusEnum["ScoringTypeEnum_Published"] = "3c2bae84-f0df-48fb-b310-3b8326c0d77f";
|
|
53848
|
+
SurveyStatusEnum["ScoringTypeEnum_Closed"] = "9b92dedc-e51a-438b-baf0-d0c75c01a492";
|
|
53849
|
+
})(exports.SurveyStatusEnum || (exports.SurveyStatusEnum = {}));
|
|
53850
|
+
exports.SurveyMode = void 0;
|
|
53851
|
+
(function (SurveyMode) {
|
|
53852
|
+
SurveyMode[SurveyMode["Survey_Full_Access"] = 1] = "Survey_Full_Access";
|
|
53853
|
+
SurveyMode[SurveyMode["Survey_ReadOnly_Access"] = 2] = "Survey_ReadOnly_Access";
|
|
53854
|
+
})(exports.SurveyMode || (exports.SurveyMode = {}));
|
|
53855
|
+
exports.SurveyOptionType = void 0;
|
|
53856
|
+
(function (SurveyOptionType) {
|
|
53857
|
+
SurveyOptionType["SingleSelect"] = "24fedf55-2a6c-4bda-a9a0-afc91ab908be";
|
|
53858
|
+
SurveyOptionType["MultipleSelect"] = "6c60b6ba-6175-470a-81aa-a9c1e87046fd";
|
|
53859
|
+
SurveyOptionType["RadioButton"] = "1133ce2b-bf74-4899-8859-cd48a15aa71d";
|
|
53860
|
+
SurveyOptionType["File"] = "dde598ad-1cef-4b04-a96e-724cce8d7cec";
|
|
53861
|
+
SurveyOptionType["MultiFile"] = "922564f3-73a9-4028-99b4-089cc51f24c0";
|
|
53862
|
+
SurveyOptionType["Image"] = "cade8069-e18c-493d-9b26-c74371f74df9";
|
|
53863
|
+
SurveyOptionType["Text"] = "131df300-9fea-4aff-b475-dabd3977bf2a";
|
|
53864
|
+
SurveyOptionType["MultilineText"] = "42694b87-ed2b-4b3d-b510-3f03e2f30e1b";
|
|
53865
|
+
SurveyOptionType["Email"] = "cd4ec4ca-c093-4579-bb18-1fabe7d3c169";
|
|
53866
|
+
SurveyOptionType["Number"] = "0a6ea20e-2645-4450-b51b-8140f2c4a7fe";
|
|
53867
|
+
SurveyOptionType["Boolean"] = "44ab7a51-4cb3-4c5a-89f8-858528ead715";
|
|
53868
|
+
SurveyOptionType["Date"] = "a3adcf70-64df-4847-825f-7da02dfa088e";
|
|
53869
|
+
SurveyOptionType["DateTime"] = "55e9216b-1309-4be6-b855-56b0aa0e4fa7";
|
|
53870
|
+
SurveyOptionType["Country"] = "61daf8d1-be00-4d2f-8ff3-addcfbba8ca1";
|
|
53871
|
+
})(exports.SurveyOptionType || (exports.SurveyOptionType = {}));
|
|
53872
|
+
exports.SortingOptions = void 0;
|
|
53873
|
+
(function (SortingOptions) {
|
|
53874
|
+
SortingOptions["ByCreated"] = "34506abc-ac7e-485b-9ff8-3610314f75aa";
|
|
53875
|
+
SortingOptions["ByLikes"] = "f056010f-f7c7-471e-8ed2-9c564fcee0ee";
|
|
53876
|
+
SortingOptions["ByComments"] = "b67475b5-22d3-47cb-a4f6-6ac902a458da";
|
|
53877
|
+
SortingOptions["ByScore"] = "c75beb1d-250f-4a4b-898f-4b492817f9d8";
|
|
53878
|
+
})(exports.SortingOptions || (exports.SortingOptions = {}));
|
|
53879
|
+
exports.SortingType = void 0;
|
|
53880
|
+
(function (SortingType) {
|
|
53881
|
+
SortingType["Ascending"] = "8c97ea5a-a224-49e8-98ba-476e3f9a6468";
|
|
53882
|
+
SortingType["Descending"] = "33b99327-2e34-44fc-9ba2-9e85ff13022a";
|
|
53883
|
+
})(exports.SortingType || (exports.SortingType = {}));
|
|
53884
|
+
var EmptyGuid = "00000000-0000-0000-0000-000000000000";
|
|
53885
|
+
|
|
53742
53886
|
var UserRegistration = /** @class */ (function () {
|
|
53743
53887
|
function UserRegistration(name, email, password) {
|
|
53744
53888
|
this.name = name;
|
|
@@ -53766,6 +53910,7 @@
|
|
|
53766
53910
|
exports.DefaultLayoutConfig = DefaultLayoutConfig;
|
|
53767
53911
|
exports.DepartmentModel = DepartmentModel$1;
|
|
53768
53912
|
exports.DocumentTemplateService = DocumentTemplateService;
|
|
53913
|
+
exports.EmptyGuid = EmptyGuid;
|
|
53769
53914
|
exports.ExternalUrlComponent = ExternalUrlComponent;
|
|
53770
53915
|
exports.GlobalErrorHandler = GlobalErrorHandler;
|
|
53771
53916
|
exports.HomeComponent = HomeComponent$1;
|