@myrtex-org/form 1.0.36 → 1.0.39

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.
@@ -1,4 +1,4 @@
1
1
  import { MenuAdminModel } from '@myrtex-org/templates';
2
2
  import { TemplateModel, SectionValueModel } from '../models';
3
3
  export declare const getMenuModel: (apiPrefix: string, settings: TemplateModel | null, sectionValues: SectionValueModel[], applicationId: string, versionId?: string | number | null) => MenuAdminModel;
4
- export declare const getPreviewMenuModel: (apiPrefix: string, settings: TemplateModel | null, templateSysName: string) => MenuAdminModel;
4
+ export declare const getPreviewMenuModel: (apiPrefix: string, settings: TemplateModel | null, templateSysName: string, hasAdminSegment: boolean) => MenuAdminModel;
@@ -1,13 +1,16 @@
1
1
  import { OnDestroy, OnInit } from '@angular/core';
2
+ import { Router } from '@angular/router';
2
3
  import { Observable } from 'rxjs';
3
4
  import { MenuAdminItem, MenuAdminModel } from '@myrtex-org/templates';
4
5
  import * as i0 from "@angular/core";
5
6
  export declare class ObjectFormComponent implements OnInit, OnDestroy {
7
+ private router;
6
8
  private _store;
7
9
  private _route;
8
10
  private _subscriptions$;
9
11
  isLoading$: Observable<boolean>;
10
12
  menuModel$: Observable<MenuAdminModel>;
13
+ constructor(router: Router);
11
14
  ngOnInit(): void;
12
15
  ngOnDestroy(): void;
13
16
  showProgress(item: MenuAdminItem): boolean;
@@ -36,9 +36,11 @@ export declare enum EApplicationActions {
36
36
  export declare const updateApiUrl: import("@ngrx/store").ActionCreator<EApplicationActions.UpdateApiUrl, (props: {
37
37
  apiPrefix: string;
38
38
  apiUrl: string;
39
+ hasAdminSegment: boolean;
39
40
  }) => {
40
41
  apiPrefix: string;
41
42
  apiUrl: string;
43
+ hasAdminSegment: boolean;
42
44
  } & import("@ngrx/store/src/models").TypedAction<EApplicationActions.UpdateApiUrl>>;
43
45
  export declare const loadTemplatePending: import("@ngrx/store").ActionCreator<EApplicationActions.LoadTemplatePending, () => import("@ngrx/store/src/models").TypedAction<EApplicationActions.LoadTemplatePending>>;
44
46
  export declare const loadTemplateSuccess: import("@ngrx/store").ActionCreator<EApplicationActions.LoadTemplateSuccess, (props: {
@@ -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<({
24
+ loadTemplatePending$: Observable<import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadTemplateError> | ({
25
25
  templateSysName: string;
26
- } & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadObjectPending>) | ({
26
+ } & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadTemplateSuccess>) | ({
27
27
  templateSysName: string;
28
- } & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadPreviewTemplatePending>) | import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadTemplateError> | ({
28
+ } & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadObjectPending>) | ({
29
29
  templateSysName: string;
30
- } & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadTemplateSuccess>)> & import("@ngrx/effects").CreateEffectMetadata;
31
- loadPreviewTemplatePending: Observable<({
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> | ({
32
32
  templateSettings: TemplateModel;
33
33
  templateSysName: string;
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<({
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> | ({
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/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadObjectError> | import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.CheckAllDependencyRules>> & import("@ngrx/effects").CreateEffectMetadata;
42
+ } & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadObjectSuccess>)> & 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<({
45
+ updateApplicationValues$: Observable<import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.SaveValuesError> | ({
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/store/src/models").TypedAction<objectFormActions.EApplicationActions.SaveValuesError>> & import("@ngrx/effects").CreateEffectMetadata;
49
+ } & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.SaveValuesSuccess>)> & 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<({
52
+ loadSectionFilesPending$: Observable<import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadSectionFilesError> | ({
53
53
  sectionFiles: FileModel[];
54
- } & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadSectionFilesSuccess>) | import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadSectionFilesError>> & import("@ngrx/effects").CreateEffectMetadata;
54
+ } & import("@ngrx/store/src/models").TypedAction<objectFormActions.EApplicationActions.LoadSectionFilesSuccess>)> & 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>;
@@ -2,6 +2,7 @@ import { ObjectFormState } from '../store';
2
2
  import { ComponentModelBase } from '../../shared-form/models';
3
3
  export declare const selectApiPrefix: import("@ngrx/store").MemoizedSelector<object, string, (s1: ObjectFormState) => string>;
4
4
  export declare const selectApiUrl: import("@ngrx/store").MemoizedSelector<object, string, (s1: ObjectFormState) => string>;
5
+ export declare const selectHasAdminSegment: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: ObjectFormState) => boolean>;
5
6
  export declare const selectIsLoading: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: ObjectFormState) => boolean>;
6
7
  export declare const selectIsObjectSaveLoading: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: ObjectFormState) => boolean>;
7
8
  export declare const selectCanEditObject: import("@ngrx/store").MemoizedSelector<object, boolean, (s1: ObjectFormState) => boolean>;
@@ -16,5 +16,6 @@ export interface ObjectFormState {
16
16
  dependencyRuleCheckResults: FieldDependencyCheckResultModel[];
17
17
  apiPrefix: string;
18
18
  apiUrl: string;
19
+ hasAdminSegment: boolean;
19
20
  }
20
21
  export declare const initialObjectFormState: ObjectFormState;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@myrtex-org/form",
3
- "version": "1.0.36",
3
+ "version": "1.0.39",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0"