@bizdoc/core 1.16.27 → 1.16.29

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.
Files changed (49) hide show
  1. package/assets/system/google.svg +13 -0
  2. package/assets/themes/brown.min.css +8 -8
  3. package/assets/themes/dark.min.css +8 -8
  4. package/assets/themes/deep-purple-light-blue.min.css +8 -8
  5. package/assets/themes/deep-purple-teal.min.css +8 -8
  6. package/assets/themes/default.min.css +8 -8
  7. package/assets/themes/green.min.css +8 -8
  8. package/assets/themes/indigo.min.css +8 -8
  9. package/esm2020/lib/admin/configuration-designer/declarations.mjs +2 -1
  10. package/esm2020/lib/admin/configuration-designer/designer.component.mjs +5 -3
  11. package/esm2020/lib/admin/configuration-designer/elements/cube.component.mjs +3 -3
  12. package/esm2020/lib/admin/configuration-designer/elements/node.component.mjs +18 -0
  13. package/esm2020/lib/admin/localized-string.component.mjs +52 -0
  14. package/esm2020/lib/core/controls/signature.input.mjs +149 -0
  15. package/esm2020/lib/core/mailbox.service.mjs +11 -2
  16. package/esm2020/lib/core/models.mjs +1 -1
  17. package/esm2020/lib/core/pipes/localized-string.pipe.mjs +24 -0
  18. package/esm2020/lib/core/slots/pane-ref.mjs +3 -2
  19. package/esm2020/lib/core/translations.mjs +49 -4
  20. package/esm2020/lib/reports/report-ref.mjs +1 -1
  21. package/esm2020/lib/reports/report-viewer.component.mjs +5 -2
  22. package/esm2020/lib/shared.module.mjs +11 -8
  23. package/esm2020/lib/system.module.mjs +11 -13
  24. package/esm2020/public-api.mjs +3 -2
  25. package/fesm2015/bizdoc-core.mjs +369 -327
  26. package/fesm2015/bizdoc-core.mjs.map +1 -1
  27. package/fesm2020/bizdoc-core.mjs +369 -324
  28. package/fesm2020/bizdoc-core.mjs.map +1 -1
  29. package/lib/admin/configuration-designer/declarations.d.ts +4 -0
  30. package/lib/admin/configuration-designer/designer-element.component.d.ts +1 -0
  31. package/lib/admin/configuration-designer/elements/node.component.d.ts +7 -0
  32. package/lib/admin/localized-string.component.d.ts +20 -0
  33. package/lib/core/controls/signature.input.d.ts +53 -0
  34. package/lib/core/mailbox.service.d.ts +2 -1
  35. package/lib/core/models.d.ts +7 -0
  36. package/lib/core/pipes/localized-string.pipe.d.ts +11 -0
  37. package/lib/core/slots/pane-ref.d.ts +10 -9
  38. package/lib/core/translations.d.ts +45 -0
  39. package/lib/reports/report-ref.d.ts +2 -0
  40. package/lib/shared.module.d.ts +137 -136
  41. package/lib/system.module.d.ts +59 -59
  42. package/package.json +11 -9
  43. package/public-api.d.ts +3 -2
  44. package/esm2020/lib/admin/configuration-designer/elements/survey-form.component.mjs +0 -44
  45. package/esm2020/lib/admin/form/survey/survey.component.mjs +0 -180
  46. package/esm2020/lib/compose/survey/survey.component.mjs +0 -73
  47. package/lib/admin/configuration-designer/elements/survey-form.component.d.ts +0 -18
  48. package/lib/admin/form/survey/survey.component.d.ts +0 -123
  49. package/lib/compose/survey/survey.component.d.ts +0 -17
@@ -1,123 +0,0 @@
1
- import { CdkDragDrop } from "@angular/cdk/drag-drop";
2
- import { ChangeDetectorRef, ElementRef, OnInit } from "@angular/core";
3
- import { FormArray, FormBuilder, FormControl, FormGroup } from "@angular/forms";
4
- import { Cube, FieldKind, Type } from "../../../core/models";
5
- import { PromptService } from "../../../core/prompt.service";
6
- import { SessionService } from "../../../core/session.service";
7
- import { PaneRef } from "../../../core/slots/pane-ref";
8
- import { UtilityRef } from "../../utility-ref";
9
- import * as i0 from "@angular/core";
10
- /** */
11
- export declare class SurveyDesignerComponent implements OnInit {
12
- private _fb;
13
- private _pane;
14
- private _cd;
15
- private _ps;
16
- private _session;
17
- private _el;
18
- private _ref;
19
- loading: boolean;
20
- tools: boolean;
21
- saving: boolean;
22
- model: SurveyMetadata;
23
- readonly history: string[];
24
- historyIndex: number;
25
- readonly datatypes: Type[];
26
- readonly cubes: Cube[];
27
- readonly questions: FormArray<FormControl<unknown>>;
28
- readonly form: FormGroup<{
29
- questions: FormArray<FormControl<unknown>>;
30
- }>;
31
- title: string;
32
- settings: boolean;
33
- private _formId;
34
- constructor(_fb: FormBuilder, _pane: PaneRef<any>, _cd: ChangeDetectorRef, _ps: PromptService, _session: SessionService, _el: ElementRef, _ref: UtilityRef<boolean, {
35
- metadata: SurveyMetadata;
36
- formId: string;
37
- }, SurveyMetadata, string>);
38
- ngOnInit(): void;
39
- private _open;
40
- private _assign;
41
- private _questionform;
42
- add(type: any, evt?: Event): void;
43
- remove(question: FormGroup): void;
44
- private _notifyChange;
45
- undo(): void;
46
- redo(): void;
47
- private _restore;
48
- /**
49
- * Ctrl-s save; Ctrl-z undo
50
- * @param event
51
- */
52
- handleKeyboardEvent(event: KeyboardEvent): void;
53
- drop(event: CdkDragDrop<FormGroup>, collection: FormArray): void;
54
- save(): void;
55
- static ɵfac: i0.ɵɵFactoryDeclaration<SurveyDesignerComponent, never>;
56
- static ɵcmp: i0.ɵɵComponentDeclaration<SurveyDesignerComponent, "ng-component", never, {}, {}, never, never, false>;
57
- }
58
- export interface SurveyMetadata {
59
- questions: Question[];
60
- }
61
- export declare type Question = Text | Html | Date | Number | Select | Choice | YesNo | Checkbox;
62
- interface QuestionBase {
63
- name: string;
64
- label: string;
65
- required?: boolean;
66
- description?: string;
67
- }
68
- export interface Html extends QuestionBase {
69
- type: 'Html';
70
- lines?: number;
71
- placeholder?: string;
72
- }
73
- export interface Text extends QuestionBase {
74
- type: 'Text';
75
- pattern?: string;
76
- minLength?: number;
77
- maxLength?: number;
78
- prefixIcon?: string;
79
- sufixIcon?: string;
80
- lines?: number;
81
- kind?: FieldKind;
82
- placeholder?: string;
83
- }
84
- export interface Checkbox extends QuestionBase {
85
- type: 'Checkbox';
86
- defaultValue?: boolean;
87
- }
88
- export interface YesNo extends QuestionBase {
89
- type: 'YesNo';
90
- defaultValue?: boolean;
91
- }
92
- export interface Date extends QuestionBase {
93
- type: 'Date';
94
- prefixIcon?: string;
95
- sufixIcon?: string;
96
- defaultValue?: Date;
97
- placeholder?: string;
98
- }
99
- export interface Number extends QuestionBase {
100
- type: 'Number';
101
- placeholder?: string;
102
- defaultValue?: number;
103
- prefixIcon?: string;
104
- sufixIcon?: string;
105
- min?: number;
106
- max?: number;
107
- }
108
- export interface Select extends QuestionBase {
109
- type: 'Select';
110
- prefixIcon?: string;
111
- sufixIcon?: string;
112
- dataType?: string;
113
- defaultValue?: string;
114
- multiple?: boolean;
115
- }
116
- export interface Choice extends QuestionBase {
117
- type: 'Choice';
118
- options: {
119
- [name: string]: string;
120
- };
121
- defaultValue?: string;
122
- }
123
- export {};
@@ -1,17 +0,0 @@
1
- import { FormBuilder, FormGroup } from "@angular/forms";
2
- import { SurveyMetadata } from "../../admin/form/survey/survey.component";
3
- import { FormComponent, ViewMode } from "../../core/base";
4
- import { DocumentModel } from "../../core/models";
5
- import { FormRef } from "../form-ref";
6
- import * as i0 from "@angular/core";
7
- export declare class SurveyFormComponent implements FormComponent<any> {
8
- private _fb;
9
- metadata: SurveyMetadata;
10
- data: DocumentModel<any>;
11
- constructor(_fb: FormBuilder, ref: FormRef<any, SurveyMetadata>);
12
- readonly form: FormGroup<any>;
13
- mode: ViewMode;
14
- onBind(data: DocumentModel<any>, version?: any): void;
15
- static ɵfac: i0.ɵɵFactoryDeclaration<SurveyFormComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<SurveyFormComponent, "ng-component", never, {}, {}, never, never, false>;
17
- }