@myrtex-org/form 1.0.64 → 1.0.66

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.
@@ -12,6 +12,7 @@ export declare abstract class BaseFieldComponent<TModel extends ComponentModelBa
12
12
  protected _store: Store;
13
13
  protected _detector: ChangeDetectorRef;
14
14
  protected _subscriptions$: Subscription[];
15
+ protected objectId: string;
15
16
  private _changeSubject$;
16
17
  private _autoSaveStore;
17
18
  private _isCheckRequired;
@@ -7,7 +7,9 @@ import { InputSelectValueWithId } from '@myrtex-org/ui';
7
7
  import * as i0 from "@angular/core";
8
8
  export declare class InputSelectComponent extends BaseFieldComponent<InputSelectModel, InputSelectValueWithId> implements OnInit {
9
9
  type: ComponentType;
10
+ private _referenceService;
10
11
  value: SelectListItem<string> | SelectListItem<string>[] | null;
12
+ items: SelectListItem<string>[];
11
13
  updateValue(event: InputSelectValueWithId): void;
12
14
  _customInit(): void;
13
15
  _customModelModify(event: InputSelectValueWithId): void;
@@ -32,7 +32,7 @@ export declare class InputTableComponent implements OnInit, OnDestroy {
32
32
  deleteRow(event: any): void;
33
33
  get disabled(): boolean;
34
34
  editRow(event: any): void;
35
- getFormat(component: ComponentModelBase): "dd.MM.yyyy hh:mm" | "dd.MM.yyyy" | "";
35
+ getFormat(component: ComponentModelBase): "" | "dd.MM.yyyy hh:mm" | "dd.MM.yyyy";
36
36
  getDataType(component: ComponentModelBase): "date" | "string";
37
37
  showTotal(component: ComponentModelBase): boolean;
38
38
  isTotalColumn(component: ComponentModelBase): boolean;
@@ -1 +1,2 @@
1
1
  export * from './object-form.service';
2
+ export * from './reference.service';
@@ -0,0 +1,9 @@
1
+ import { Observable } from 'rxjs';
2
+ import * as i0 from "@angular/core";
3
+ export declare class ReferenceService {
4
+ private _http;
5
+ private readonly _apiUrl;
6
+ getReferences(sysName: string, objectId: string): Observable<any>;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<ReferenceService, never>;
8
+ static ɵprov: i0.ɵɵInjectableDeclaration<ReferenceService>;
9
+ }
@@ -21,37 +21,37 @@ export declare class ObjectFormEffects {
21
21
  apiPrefix: string;
22
22
  apiUrl: string;
23
23
  }> & import("@ngrx/effects").CreateEffectMetadata;
24
- loadTemplatePending$: Observable<import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadTemplateError> | ({
24
+ loadTemplatePending$: Observable<({
25
25
  templateSysName: string;
26
26
  } & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadTemplateSuccess>) | ({
27
27
  templateSysName: string;
28
- } & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadObjectPending>) | ({
28
+ } & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadObjectPending>) | import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadTemplateError> | ({
29
29
  templateSysName: string;
30
30
  } & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadPreviewTemplatePending>)> & import("@ngrx/effects").CreateEffectMetadata;
31
- loadPreviewTemplatePending: Observable<import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadPreviewTemplateError> | ({
31
+ loadPreviewTemplatePending: Observable<({
32
32
  templateSettings: TemplateModel;
33
33
  templateSysName: string;
34
- } & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadPreviewTemplateSuccess>)> & import("@ngrx/effects").CreateEffectMetadata;
35
- loadApplicationPending$: Observable<import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadObjectError> | import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.CheckAllDependencyRules> | ({
34
+ } & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadPreviewTemplateSuccess>) | import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadPreviewTemplateError>> & import("@ngrx/effects").CreateEffectMetadata;
35
+ loadApplicationPending$: Observable<({
36
36
  templateSettings: TemplateModel;
37
37
  sectionValues: import("../models").SectionValueModel[];
38
38
  applicationId: string;
39
39
  isDraft: boolean;
40
40
  canEditObject: boolean;
41
41
  versionId?: string | number | null | undefined;
42
- } & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadObjectSuccess>)> & import("@ngrx/effects").CreateEffectMetadata;
42
+ } & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadObjectSuccess>) | import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.CheckAllDependencyRules> | import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadObjectError>> & import("@ngrx/effects").CreateEffectMetadata;
43
43
  checkCanUpdateValues$: Observable<[ValueModel | ValueModel[], any]> & import("@ngrx/effects").CreateEffectMetadata;
44
44
  saveValuesDebounced$: Observable<never> & import("@ngrx/effects").CreateEffectMetadata;
45
- updateApplicationValues$: Observable<import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.SaveValuesError> | ({
45
+ updateApplicationValues$: Observable<({
46
46
  result: import("../models").UpdateValueResult;
47
47
  objectId: string;
48
48
  versionId?: string | number | null | undefined;
49
- } & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.SaveValuesSuccess>)> & import("@ngrx/effects").CreateEffectMetadata;
49
+ } & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.SaveValuesSuccess>) | import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.SaveValuesError>> & import("@ngrx/effects").CreateEffectMetadata;
50
50
  saveApplicationPending$: Observable<import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.SaveObjectSuccess> | import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.SaveObjectError>> & import("@ngrx/effects").CreateEffectMetadata;
51
51
  copyApplicationPending$: Observable<import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.CopyObjectSuccess> | import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.CopyObjectError>> & import("@ngrx/effects").CreateEffectMetadata;
52
- loadSectionFilesPending$: Observable<import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadSectionFilesError> | ({
52
+ loadSectionFilesPending$: Observable<({
53
53
  sectionFiles: FileModel[];
54
- } & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadSectionFilesSuccess>)> & import("@ngrx/effects").CreateEffectMetadata;
54
+ } & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadSectionFilesSuccess>) | import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadSectionFilesError>> & import("@ngrx/effects").CreateEffectMetadata;
55
55
  printDocument$: Observable<[never, string, any, string | number | null]> & import("@ngrx/effects").CreateEffectMetadata;
56
56
  static ɵfac: i0.ɵɵFactoryDeclaration<ObjectFormEffects, never>;
57
57
  static ɵprov: i0.ɵɵInjectableDeclaration<ObjectFormEffects>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myrtex-org/form",
3
- "version": "1.0.64",
3
+ "version": "1.0.66",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0"