@things-factory/organization 10.1.271 → 10.1.272
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/dist-client/route.d.ts +1 -1
- package/dist-client/tsconfig.tsbuildinfo +1 -1
- package/dist-server/service/certificate/employment-certificate-templates.js +5 -12
- package/dist-server/service/certificate/employment-certificate-templates.js.map +1 -1
- package/dist-server/service/index.d.ts +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/package.json +5 -5
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.CAREER_TEMPLATE = exports.EMPLOYMENT_TEMPLATE = void 0;
|
|
2
4
|
/*
|
|
3
5
|
* The templates in code of 재직증명서 · 경력증명서 (ADR-0176 decision 5) - a domain's own `PDFTemplate` of the kind prints
|
|
4
6
|
* in their place. They read `employee` (the facts), `issue` (number, day, purpose, recipient) and `company` (「우리 회사」
|
|
5
7
|
* with its seal as a data: URL).
|
|
6
8
|
*/
|
|
7
|
-
|
|
8
|
-
exports.CAREER_TEMPLATE = exports.EMPLOYMENT_TEMPLATE = void 0;
|
|
9
|
+
const pdf_1 = require("@things-factory/pdf");
|
|
9
10
|
const page = (title, rows, statement) => `<!doctype html><html lang="ko"><head><meta charset="utf-8"><style>
|
|
10
11
|
@page { size: A4; margin: 0 }
|
|
11
12
|
body { margin: 0; font-family: "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; color: #222 }
|
|
@@ -17,10 +18,7 @@ th, td { border: 1px solid #444; padding: 3.2mm 4mm; text-align: left; vertical-
|
|
|
17
18
|
th { width: 30mm; background: #f2f2f2; font-weight: 600; text-align: center }
|
|
18
19
|
.statement { margin: 22mm 0 0; text-align: center; font-size: 13pt; line-height: 2 }
|
|
19
20
|
.date { margin-top: 18mm; text-align: center; font-size: 13pt; letter-spacing: 1pt }
|
|
20
|
-
.
|
|
21
|
-
.issuer > div { padding-left: 3.5em; text-indent: -3.5em }
|
|
22
|
-
.issuer .stamp { position: relative; display: inline-block; margin-left: 3mm; text-indent: 0 }
|
|
23
|
-
.issuer .stamp img { position: absolute; left: 50%; top: 50%; width: 22mm; transform: translate(-50%, -50%); opacity: .9 }
|
|
21
|
+
${pdf_1.ISSUER_STYLE}
|
|
24
22
|
</style></head><body><div class="page">
|
|
25
23
|
<div class="number">발급번호 {{issue.number}}</div>
|
|
26
24
|
<h1>${title}</h1>
|
|
@@ -31,12 +29,7 @@ ${rows}
|
|
|
31
29
|
</table>
|
|
32
30
|
<p class="statement">${statement}</p>
|
|
33
31
|
<div class="date">{{issue.issuedOn}}</div>
|
|
34
|
-
|
|
35
|
-
<div>상호 : {{company.name}}</div>
|
|
36
|
-
{{#if company.address}}<div>주소 : {{company.address}}</div>{{/if}}
|
|
37
|
-
{{#if company.brn}}<div>사업자등록번호 : {{company.brn}}</div>{{/if}}
|
|
38
|
-
<div>대표이사 : {{company.representative}}<span class="stamp">(인){{#if company.seal}}<img src="{{company.seal}}" alt="">{{/if}}</span></div>
|
|
39
|
-
</div>
|
|
32
|
+
${(0, pdf_1.issuerBlock)()}
|
|
40
33
|
</div></body></html>`;
|
|
41
34
|
exports.EMPLOYMENT_TEMPLATE = page('재직증명서', `<tr><th>성명</th><td colspan="3">{{employee.name}}</td></tr>
|
|
42
35
|
<tr><th>소속</th><td>{{employee.department}}</td><th>직위</th><td>{{employee.jobPosition}}</td></tr>
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"employment-certificate-templates.js","sourceRoot":"","sources":["../../../server/service/certificate/employment-certificate-templates.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"employment-certificate-templates.js","sourceRoot":"","sources":["../../../server/service/certificate/employment-certificate-templates.ts"],"names":[],"mappings":";;;AAAA;;;;GAIG;AACH,6CAA+D;AAE/D,MAAM,IAAI,GAAG,CAAC,KAAa,EAAE,IAAY,EAAE,SAAiB,EAAE,EAAE,CAAC;;;;;;;;;;;EAW/D,kBAAY;;;MAGR,KAAK;;EAET,IAAI;;;;uBAIiB,SAAS;;EAE9B,IAAA,iBAAW,GAAE;qBACM,CAAA;AAER,QAAA,mBAAmB,GAAG,IAAI,CACrC,OAAO,EACP;;2FAEyF,EACzF,8BAA8B,CAC/B,CAAA;AAEY,QAAA,eAAe,GAAG,IAAI,CACjC,OAAO,EACP;;;0HAGwH,EACxH,+BAA+B,CAChC,CAAA","sourcesContent":["/*\n * The templates in code of 재직증명서 · 경력증명서 (ADR-0176 decision 5) - a domain's own `PDFTemplate` of the kind prints\n * in their place. They read `employee` (the facts), `issue` (number, day, purpose, recipient) and `company` (「우리 회사」\n * with its seal as a data: URL).\n */\nimport { ISSUER_STYLE, issuerBlock } from '@things-factory/pdf'\n\nconst page = (title: string, rows: string, statement: string) => `<!doctype html><html lang=\"ko\"><head><meta charset=\"utf-8\"><style>\n@page { size: A4; margin: 0 }\nbody { margin: 0; font-family: \"Apple SD Gothic Neo\", \"Malgun Gothic\", \"Noto Sans KR\", sans-serif; color: #222 }\n.page { position: relative; box-sizing: border-box; width: 210mm; height: 297mm; padding: 30mm 24mm }\n.number { position: absolute; top: 16mm; left: 24mm; font-size: 9.5pt; color: #666 }\nh1 { margin: 6mm 0 16mm; text-align: center; font-size: 26pt; letter-spacing: 12pt }\ntable { width: 100%; border-collapse: collapse; font-size: 11.5pt }\nth, td { border: 1px solid #444; padding: 3.2mm 4mm; text-align: left; vertical-align: middle }\nth { width: 30mm; background: #f2f2f2; font-weight: 600; text-align: center }\n.statement { margin: 22mm 0 0; text-align: center; font-size: 13pt; line-height: 2 }\n.date { margin-top: 18mm; text-align: center; font-size: 13pt; letter-spacing: 1pt }\n${ISSUER_STYLE}\n</style></head><body><div class=\"page\">\n<div class=\"number\">발급번호 {{issue.number}}</div>\n<h1>${title}</h1>\n<table>\n${rows}\n<tr><th>용도</th><td colspan=\"3\">{{issue.purpose}}</td></tr>\n<tr><th>제출처</th><td colspan=\"3\">{{issue.submittedTo}}</td></tr>\n</table>\n<p class=\"statement\">${statement}</p>\n<div class=\"date\">{{issue.issuedOn}}</div>\n${issuerBlock()}\n</div></body></html>`\n\nexport const EMPLOYMENT_TEMPLATE = page(\n '재직증명서',\n `<tr><th>성명</th><td colspan=\"3\">{{employee.name}}</td></tr>\n<tr><th>소속</th><td>{{employee.department}}</td><th>직위</th><td>{{employee.jobPosition}}</td></tr>\n<tr><th>재직 기간</th><td colspan=\"3\">{{employee.hiredOn}} ~ {{employee.until}} (현재)</td></tr>`,\n '위 사람은 현재 당사에 재직하고 있음을 증명합니다.'\n)\n\nexport const CAREER_TEMPLATE = page(\n '경력증명서',\n `<tr><th>성명</th><td colspan=\"3\">{{employee.name}}</td></tr>\n<tr><th>소속</th><td>{{employee.department}}</td><th>직위</th><td>{{employee.jobPosition}}</td></tr>\n<tr><th>담당 업무</th><td colspan=\"3\">{{employee.jobResponsibility}}</td></tr>\n<tr><th>근무 기간</th><td colspan=\"3\">{{employee.hiredOn}} ~ {{employee.until}}{{#if employee.current}} (현재){{/if}}</td></tr>`,\n '위 사람은 위와 같이 당사에 근무하였음을 증명합니다.'\n)\n"]}
|
|
@@ -5,7 +5,7 @@ export * from './employee/working-employees';
|
|
|
5
5
|
export * from './employee-profile/employee-profile';
|
|
6
6
|
export * from './audience/audience';
|
|
7
7
|
export * from './audience/audience-member';
|
|
8
|
-
export declare const entities: (typeof import("./employee
|
|
8
|
+
export declare const entities: (typeof import("./employee/employee").Employee | typeof import("./employee-profile/employee-profile").EmployeeProfile | typeof import("./approval-line/approval-line").ApprovalLine | typeof import("./department/department").Department | typeof import("./department/department-history").DepartmentHistory | typeof import("./employee/employee-history").EmployeeHistory)[];
|
|
9
9
|
export declare const subscribers: (typeof import("./department/event-subscriber").DepartmentHistoryEntitySubscriber | typeof import("./employee/event-subscriber").EmployeeHistoryEntitySubscriber)[];
|
|
10
10
|
export declare const schema: {
|
|
11
11
|
resolverClasses: (typeof import("./employee-profile/employee-profile-query").EmployeeProfileQuery | typeof import("./employee-profile/employee-profile-mutation").EmployeeProfileMutation | typeof import("./approval-line/approval-line-query").ApprovalLineQuery | typeof import("./approval-line/approval-line-mutation").ApprovalLineMutation | typeof import("./department/department-query").DepartmentQuery | typeof import("./department/department-mutation").DepartmentMutation | typeof import("./employee/employee-query").EmployeeQuery | typeof import("./employee/employee-mutation").EmployeeMutation)[];
|