eservices-back-core 2.1.79 → 2.1.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.
@@ -0,0 +1,3 @@
1
+ import { ITemplateConfiguration } from "../types/print-form-type";
2
+ export default function dtoPrintForm(data: ITemplateConfiguration): ITemplateConfiguration;
3
+ //# sourceMappingURL=dto-print-form.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dto-print-form.d.ts","sourceRoot":"","sources":["../../src/dtos/dto-print-form.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAEhE,MAAM,CAAC,OAAO,UAAU,YAAY,CAAC,IAAI,EAAE,sBAAsB,GAAG,sBAAsB,CAMzF"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ function dtoPrintForm(data) {
4
+ return Object.assign(Object.assign({}, data), { label: data.label || data.templateName });
5
+ }
6
+ exports.default = dtoPrintForm;
7
+ //# sourceMappingURL=dto-print-form.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dto-print-form.js","sourceRoot":"","sources":["../../src/dtos/dto-print-form.ts"],"names":[],"mappings":";;AAEA,SAAwB,YAAY,CAAC,IAA4B;IAE7D,uCACO,IAAI,KACP,KAAK,EAAE,IAAI,CAAC,KAAK,IAAI,IAAI,CAAC,YAAY,IACzC;AACL,CAAC;AAND,+BAMC"}
@@ -1 +1 @@
1
- {"version":3,"file":"print-form-store.d.ts","sourceRoot":"","sources":["../../src/store/print-form-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;;;iBAM3C,sBAAsB,EAAE;;AAH7C,wBAeI"}
1
+ {"version":3,"file":"print-form-store.d.ts","sourceRoot":"","sources":["../../src/store/print-form-store.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;;;iBAO3C,sBAAsB,EAAE;;AAH7C,wBAeI"}
@@ -1,9 +1,13 @@
1
1
  "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
2
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
+ const dto_print_form_1 = __importDefault(require("../dtos/dto-print-form"));
3
7
  exports.default = (function PrintFormStore() {
4
8
  let state = [];
5
9
  function set(array) {
6
- state = array;
10
+ state = array.map(dto_print_form_1.default);
7
11
  }
8
12
  function get() {
9
13
  return state;
@@ -1 +1 @@
1
- {"version":3,"file":"print-form-store.js","sourceRoot":"","sources":["../../src/store/print-form-store.ts"],"names":[],"mappings":";;AAGA,kBAAe,CAAC,SAAS,cAAc;IACtC,IAAI,KAAK,GAA6B,EAAE,CAAA;IAExC,SAAS,GAAG,CAAC,KAA+B;QAC3C,KAAK,GAAG,KAAK,CAAC;IACf,CAAC;IACD,SAAS,GAAG;QACX,OAAO,KAAK,CAAC;IACd,CAAC;IAGD,OAAO;QACN,GAAG;QACH,GAAG;KACH,CAAA;AACF,CAAC,CAAC,EAAE,CAAA"}
1
+ {"version":3,"file":"print-form-store.js","sourceRoot":"","sources":["../../src/store/print-form-store.ts"],"names":[],"mappings":";;;;;AACA,4EAAkD;AAGlD,kBAAe,CAAC,SAAS,cAAc;IACtC,IAAI,KAAK,GAA6B,EAAE,CAAA;IAExC,SAAS,GAAG,CAAC,KAA+B;QAC3C,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,wBAAY,CAAC,CAAC;IACjC,CAAC;IACD,SAAS,GAAG;QACX,OAAO,KAAK,CAAC;IACd,CAAC;IAGD,OAAO;QACN,GAAG;QACH,GAAG;KACH,CAAA;AACF,CAAC,CAAC,EAAE,CAAA"}
@@ -7,6 +7,14 @@ export interface ITemplateConfiguration {
7
7
  * @description Название template
8
8
  */
9
9
  templateName: string;
10
+ /**
11
+ * @description Тип цели для которой показываются печатные формы
12
+ */
13
+ templateTarget: "form" | "list";
14
+ /**
15
+ * @description Заголовок/view-метка, которая будет отображаться на frontend.
16
+ */
17
+ label?: string;
10
18
  [k: string]: unknown;
11
19
  }
12
20
  //# sourceMappingURL=print-form-type.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"print-form-type.d.ts","sourceRoot":"","sources":["../../src/types/print-form-type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACtC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACpB"}
1
+ {"version":3,"file":"print-form-type.d.ts","sourceRoot":"","sources":["../../src/types/print-form-type.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,sBAAsB;IACtC;;OAEG;IACH,UAAU,EAAE,MAAM,CAAA;IAClB;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;OAEG;IACH,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC;IAEhC;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IAEd,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACpB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eservices-back-core",
3
- "version": "2.1.79",
3
+ "version": "2.1.80",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {