@bizdoc/core 2.3.29 → 2.3.31

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 (37) hide show
  1. package/assets/bizdoc-schema.json +31 -13
  2. package/assets/themes/deep-purple-light-blue.min.css +4 -4
  3. package/assets/themes/default.min.css +4 -4
  4. package/esm2022/lib/admin/architecture/declarations.mjs +18 -2
  5. package/esm2022/lib/admin/architecture/designer-element.component.mjs +2 -2
  6. package/esm2022/lib/admin/architecture/designer.component.mjs +41 -38
  7. package/esm2022/lib/admin/architecture/elements/analysis-view.component.mjs +3 -3
  8. package/esm2022/lib/admin/architecture/elements/analysis-widget.component.mjs +3 -3
  9. package/esm2022/lib/admin/architecture/elements/documents-report.component.mjs +3 -3
  10. package/esm2022/lib/admin/architecture/elements/parallel-view.component.mjs +3 -3
  11. package/esm2022/lib/admin/architecture/elements/sum-view.component.mjs +3 -3
  12. package/esm2022/lib/admin/architecture/elements/type.component.mjs +7 -4
  13. package/esm2022/lib/admin/architecture/icon-picker.component.mjs +3 -3
  14. package/esm2022/lib/admin/form/workflow/role-node.component.mjs +1 -1
  15. package/esm2022/lib/admin/form/workflow/workflow.component.mjs +3 -3
  16. package/esm2022/lib/compose/copy/copy.dialog.mjs +3 -3
  17. package/esm2022/lib/compose/trace/trace.component.mjs +12 -13
  18. package/esm2022/lib/core/avatar/avatar.component.mjs +5 -6
  19. package/esm2022/lib/core/fields/yesno.field.mjs +3 -3
  20. package/esm2022/lib/core/models.mjs +1 -1
  21. package/esm2022/lib/cube/spreadsheet/spreadsheet.container.mjs +1 -1
  22. package/esm2022/lib/scheduler/schedule.component.mjs +2 -2
  23. package/esm2022/lib/shared.module.mjs +2 -2
  24. package/esm2022/lib/views/timeline/{timeline.component.exp.mjs → timeline.component.mjs} +11 -13
  25. package/esm2022/public-api.mjs +3 -2
  26. package/fesm2022/bizdoc-core.mjs +99 -78
  27. package/fesm2022/bizdoc-core.mjs.map +1 -1
  28. package/lib/admin/architecture/declarations.d.ts +5 -3
  29. package/lib/admin/architecture/designer.base.d.ts +1 -1
  30. package/lib/admin/architecture/designer.component.d.ts +14 -0
  31. package/lib/admin/system.service.d.ts +1 -1
  32. package/lib/core/models.d.ts +6 -1
  33. package/lib/scheduler/schedule.component.d.ts +2 -1
  34. package/lib/shared.module.d.ts +1 -1
  35. package/lib/views/timeline/{timeline.component.exp.d.ts → timeline.component.d.ts} +2 -4
  36. package/package.json +11 -11
  37. package/public-api.d.ts +2 -1
@@ -227,7 +227,7 @@ export interface DesignerInfo {
227
227
  actions: ElementInfo[];
228
228
  states: ElementInfo[];
229
229
  }
230
- export interface ElementInfo<T = any> {
230
+ export interface ElementInfo<O = any> {
231
231
  family?: string;
232
232
  familyKey?: string;
233
233
  type?: string;
@@ -237,9 +237,11 @@ export interface ElementInfo<T = any> {
237
237
  disabled?: boolean;
238
238
  draft?: boolean;
239
239
  empty?: boolean;
240
- options?: T;
240
+ options?: O;
241
241
  }
242
- export interface ElementFamily<T = any> {
242
+ export interface ElementFamily {
243
243
  title: string;
244
244
  elements: ElementInfo[];
245
245
  }
246
+ export declare function getMonthList(locales?: string | string[], format?: "long" | "short"): string[];
247
+ export declare function extractString(str: LocalizedString | string): string;
@@ -33,7 +33,7 @@ export declare abstract class DesignerTypeElementComponent<T = any> extends Desi
33
33
  ngOnInit(): void;
34
34
  add(collection: FormArray, form: FormGroup, title: string, name: string): void;
35
35
  edit(form: FormGroup, title: string, name: string): void;
36
- protected get _typegroups(): ElementFamily<any>[];
36
+ protected get _typegroups(): ElementFamily[];
37
37
  datatypeOf(name: string): import("@bizdoc/core").LocalizedString;
38
38
  static ɵfac: i0.ɵɵFactoryDeclaration<DesignerTypeElementComponent<any>, never>;
39
39
  static ɵdir: i0.ɵɵDirectiveDeclaration<DesignerTypeElementComponent<any>, never, never, {}, {}, never, never, false, never>;
@@ -58,7 +58,21 @@ export declare class ConfigurationDesignerComponent implements UtilityComponent,
58
58
  * @param position
59
59
  */
60
60
  private _insert;
61
+ /**
62
+ *
63
+ * @param element
64
+ * @param section
65
+ * @param mode
66
+ * @returns
67
+ */
61
68
  private _open;
69
+ /**
70
+ *
71
+ * @param element
72
+ * @param collection
73
+ * @param mode
74
+ * @returns
75
+ */
62
76
  private _createInjector;
63
77
  add(section: Section, menu: MatMenuTrigger, evt: Event): void;
64
78
  create(section: Section, template: TemplateInfo): void;
@@ -55,7 +55,7 @@ export declare class SystemService {
55
55
  datatypes(): Observable<DataTypeInfo[]>;
56
56
  save(form: Form): Observable<number>;
57
57
  constructor(_http: HttpClient);
58
- typegroups(): Observable<ElementFamily<any>[]>;
58
+ typegroups(): Observable<ElementFamily[]>;
59
59
  static ɵfac: i0.ɵɵFactoryDeclaration<SystemService, never>;
60
60
  static ɵprov: i0.ɵɵInjectableDeclaration<SystemService>;
61
61
  }
@@ -242,8 +242,13 @@ export interface View {
242
242
  cubes: string[];
243
243
  forms: string[];
244
244
  }
245
+ export interface Holiday {
246
+ title: string;
247
+ fromDate: Date;
248
+ toDate: Date;
249
+ }
245
250
  export interface Profile {
246
- holidays: any;
251
+ holidays: Holiday[];
247
252
  utilities: Utility[];
248
253
  guides?: Guide[];
249
254
  views: View[];
@@ -4,6 +4,7 @@ import { MailboxService } from '../core/mailbox.service';
4
4
  import { PromptService } from '../core/prompt.service';
5
5
  import { PanesRouter } from '../core/slots/router.service';
6
6
  import { SessionService } from '../core/session.service';
7
+ import { HolidayModel } from '@syncfusion/ej2-angular-gantt';
7
8
  import * as i0 from "@angular/core";
8
9
  export declare class ScheduleViewComponent implements OnChanges, AfterViewInit {
9
10
  private _mailbox;
@@ -22,7 +23,7 @@ export declare class ScheduleViewComponent implements OnChanges, AfterViewInit {
22
23
  starting: Date;
23
24
  ending: Date;
24
25
  private _currentView;
25
- holidays: any;
26
+ readonly holidays: HolidayModel[];
26
27
  /** Scheduler ctor */
27
28
  constructor(session: SessionService, _mailbox: MailboxService, _router: PanesRouter, _sb: PromptService);
28
29
  ngOnChanges(_changes: SimpleChanges): void;
@@ -35,7 +35,7 @@ import * as i31 from "./core/pipes/duration-format.pipe";
35
35
  import * as i32 from "./core/inputs/combination-picker";
36
36
  import * as i33 from "./core/inputs/combination-picker-body";
37
37
  import * as i34 from "./core/inputs/combination-pool";
38
- import * as i35 from "./views/timeline/timeline.component.exp";
38
+ import * as i35 from "./views/timeline/timeline.component";
39
39
  import * as i36 from "./core/animated-icon/animated-icon.directive";
40
40
  import * as i37 from "./core/pipes/daterange.pipe";
41
41
  import * as i38 from "./compose/state.component";
@@ -2,7 +2,6 @@ import { ElementRef } from '@angular/core';
2
2
  import { ColumnModel, DayWorkingTimeModel, EventMarkerModel, Gantt, HolidayModel, IQueryTaskbarInfoEventArgs, LabelSettingsModel, SelectionSettingsModel, SplitterSettingsModel, TaskFieldsModel, TimelineSettingsModel } from '@syncfusion/ej2-angular-gantt';
3
3
  import { SessionService } from '../../core/session.service';
4
4
  import { TranslateService } from '../../core/translate.service';
5
- import { PromptService } from '../../core/prompt.service';
6
5
  import { AccountService } from '../../core/account.service';
7
6
  import { DocumentViewComponent } from '../../core/base';
8
7
  import { DocumentModel } from '../../core/models';
@@ -11,7 +10,6 @@ import { RouterImpl } from '../../core/router';
11
10
  import { DocumentViewRef } from '../document-view-ref';
12
11
  import * as i0 from "@angular/core";
13
12
  export declare class TimelineViewComponent implements DocumentViewComponent {
14
- private _ps;
15
13
  private _users;
16
14
  private _session;
17
15
  private _translate;
@@ -22,11 +20,11 @@ export declare class TimelineViewComponent implements DocumentViewComponent {
22
20
  model: DocumentModel<any>;
23
21
  gantt: Gantt;
24
22
  dateFormat: string;
25
- holidays: HolidayModel[];
26
23
  width: number;
27
24
  tasks: Task[];
25
+ readonly holidays: HolidayModel[];
28
26
  /** timeline-view ctor */
29
- constructor(_ps: PromptService, viewRef: DocumentViewRef<Options>, config: BizDocConfig, _users: AccountService, _session: SessionService, _translate: TranslateService, _router: RouterImpl, _element: ElementRef);
27
+ constructor(viewRef: DocumentViewRef<Options>, config: BizDocConfig, _users: AccountService, _session: SessionService, _translate: TranslateService, _router: RouterImpl, _element: ElementRef);
30
28
  onBind(model: DocumentModel<any>): void;
31
29
  private _draw;
32
30
  queryTaskbarInfo(evt: IQueryTaskbarInfoEventArgs): void;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bizdoc/core",
3
- "version": "2.3.29",
3
+ "version": "2.3.31",
4
4
  "author": "Moding Ltd.",
5
5
  "homepage": "https://github.com/moding-il/bizdoc.core",
6
6
  "license": "https://github.com/moding-il/bizdoc.core/blob/master/License.md",
@@ -12,20 +12,20 @@
12
12
  "@ctrl/ngx-emoji-mart": "^9.2.0",
13
13
  "@googlemaps/js-api-loader": "^1.16.2",
14
14
  "@microsoft/signalr": "^8.0.0",
15
- "@syncfusion/ej2": "^24.2.4",
16
- "@syncfusion/ej2-angular-charts": "^24.2.4",
15
+ "@syncfusion/ej2": "^24.2.5",
16
+ "@syncfusion/ej2-angular-charts": "^24.2.5",
17
17
  "@syncfusion/ej2-angular-circulargauge": "^24.2.3",
18
- "@syncfusion/ej2-angular-diagrams": "^24.2.4",
19
- "@syncfusion/ej2-angular-gantt": "^24.2.4",
20
- "@syncfusion/ej2-angular-grids": "^24.2.4",
21
- "@syncfusion/ej2-angular-inputs": "^24.2.4",
18
+ "@syncfusion/ej2-angular-diagrams": "^24.2.5",
19
+ "@syncfusion/ej2-angular-gantt": "^24.2.5",
20
+ "@syncfusion/ej2-angular-grids": "^24.2.5",
21
+ "@syncfusion/ej2-angular-inputs": "^24.2.5",
22
22
  "@syncfusion/ej2-angular-kanban": "^24.2.3",
23
23
  "@syncfusion/ej2-angular-lineargauge": "^24.2.3",
24
- "@syncfusion/ej2-angular-pivotview": "^24.2.4",
24
+ "@syncfusion/ej2-angular-pivotview": "^24.2.5",
25
25
  "@syncfusion/ej2-angular-richtexteditor": "^24.2.4",
26
26
  "@syncfusion/ej2-angular-schedule": "^24.2.4",
27
- "@syncfusion/ej2-angular-spreadsheet": "^24.2.4",
28
- "@syncfusion/ej2-base": "^24.2.3",
27
+ "@syncfusion/ej2-angular-spreadsheet": "^24.2.5",
28
+ "@syncfusion/ej2-base": "^24.2.5",
29
29
  "@teamhive/lottie-player": "^1.0.0",
30
30
  "brace": "^0.11.1",
31
31
  "cookie": "^0.6.0",
@@ -35,7 +35,7 @@
35
35
  "lottie-web": "^5.12.2",
36
36
  "ngx-cookie-service": "17",
37
37
  "typescript": "5.3",
38
- "zone.js": "^0.14.3",
38
+ "zone.js": "^0.14.4",
39
39
  "tslib": "^2.3.0"
40
40
  },
41
41
  "peerDependencies": {
package/public-api.d.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export { NodeRef } from './lib/admin/form/workflow/node-ref';
1
2
  export { NoneComponent } from './lib/core/none.component';
2
3
  export { ColorPicker } from './lib/admin/core/color-picker.input';
3
4
  export { LocalizedStringControlDesigner } from './lib/core/fields/localized-string.field';
@@ -76,7 +77,7 @@ export { IdentityName } from './lib/core/identity/identity.component';
76
77
  export { JsonPipe, ArraySortPipe, FilterPipe } from './lib/core/pipes/sort.pipe';
77
78
  export { L18nPipe, TranslatePipe } from "./lib/core/pipes/translate.pipe";
78
79
  export { FormPipe } from './lib/core/pipes/form.pipe';
79
- export { DesignerElementComponent, DesignMode, DesignerRef, DesignerInfo, ElementInfo, programName } from './lib/admin/architecture/declarations';
80
+ export { DesignerElementComponent, DesignMode, DesignerRef, DesignerInfo, ElementInfo, programName, getMonthList } from './lib/admin/architecture/declarations';
80
81
  export { RolePipe } from './lib/core/pipes/role.pipe';
81
82
  export { JoinPipe } from "./lib/core/pipes/join.pipe";
82
83
  export { SanitizeHtmlPipe } from './lib/core/pipes/sanitize-html.pipe';