@wertzui/ngx-restworld-client 7.2.0 → 8.0.0

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 (96) hide show
  1. package/esm2020/lib/components/restworld-file/restworld-file.component.mjs +57 -0
  2. package/esm2020/lib/components/restworld-form/restworld-form.component.mjs +188 -0
  3. package/esm2020/lib/components/restworld-id-navigation/restworld-id-navigation.component.mjs +65 -0
  4. package/esm2020/lib/components/restworld-image/restworld-image.component.mjs +164 -0
  5. package/esm2020/lib/components/restworld-inputs/restworld-inputs.mjs +306 -0
  6. package/esm2020/lib/components/restworld-label/restworld-label.component.mjs +24 -0
  7. package/esm2020/lib/components/restworld-menu-button/restworld-menu-button.component.mjs +40 -0
  8. package/esm2020/lib/components/restworld-table/restworld-table.component.mjs +157 -0
  9. package/esm2020/lib/components/restworld-validation-errors/restworld-validation-errors.component.mjs +21 -0
  10. package/esm2020/lib/models/o-data.mjs +2 -0
  11. package/esm2020/lib/models/restworld-image.mjs +2 -0
  12. package/esm2020/lib/models/restworld-options.mjs +2 -2
  13. package/esm2020/lib/models/special-properties.mjs +6 -0
  14. package/esm2020/lib/models/templating.mjs +2 -0
  15. package/esm2020/lib/restworld-client.module.mjs +83 -25
  16. package/esm2020/lib/services/o-data.service.mjs +6 -3
  17. package/esm2020/lib/services/restworld-client-collection.mjs +7 -7
  18. package/esm2020/lib/services/restworld-client.mjs +40 -29
  19. package/esm2020/lib/services/settings.service.mjs +5 -5
  20. package/esm2020/lib/views/restworld-edit-view/restworld-edit-view.component.mjs +24 -255
  21. package/esm2020/lib/views/restworld-list-view/restworld-list-view.component.mjs +49 -101
  22. package/esm2020/public-api.mjs +17 -6
  23. package/fesm2015/wertzui-ngx-restworld-client.mjs +1373 -1017
  24. package/fesm2015/wertzui-ngx-restworld-client.mjs.map +1 -1
  25. package/fesm2020/wertzui-ngx-restworld-client.mjs +1322 -978
  26. package/fesm2020/wertzui-ngx-restworld-client.mjs.map +1 -1
  27. package/index.d.ts +1 -0
  28. package/lib/components/restworld-avatar/restworld-avatar.component.d.ts +1 -0
  29. package/lib/components/restworld-avatar/restworld-avatar.component.d.ts.map +1 -0
  30. package/lib/{views/restworld-file-view/restworld-file-view.component.d.ts → components/restworld-file/restworld-file.component.d.ts} +4 -3
  31. package/lib/components/restworld-file/restworld-file.component.d.ts.map +1 -0
  32. package/lib/components/restworld-form/restworld-form.component.d.ts +53 -0
  33. package/lib/components/restworld-form/restworld-form.component.d.ts.map +1 -0
  34. package/lib/components/restworld-id-navigation/restworld-id-navigation.component.d.ts +27 -0
  35. package/lib/components/restworld-id-navigation/restworld-id-navigation.component.d.ts.map +1 -0
  36. package/lib/components/restworld-image/restworld-image.component.d.ts +62 -0
  37. package/lib/components/restworld-image/restworld-image.component.d.ts.map +1 -0
  38. package/lib/components/restworld-inputs/restworld-inputs.d.ts +146 -0
  39. package/lib/components/restworld-inputs/restworld-inputs.d.ts.map +1 -0
  40. package/lib/components/restworld-label/restworld-label.component.d.ts +14 -0
  41. package/lib/components/restworld-label/restworld-label.component.d.ts.map +1 -0
  42. package/lib/components/restworld-menu-button/restworld-menu-button.component.d.ts +12 -0
  43. package/lib/components/restworld-menu-button/restworld-menu-button.component.d.ts.map +1 -0
  44. package/lib/components/restworld-table/restworld-table.component.d.ts +54 -0
  45. package/lib/components/restworld-table/restworld-table.component.d.ts.map +1 -0
  46. package/lib/components/restworld-validation-errors/restworld-validation-errors.component.d.ts +15 -0
  47. package/lib/components/restworld-validation-errors/restworld-validation-errors.component.d.ts.map +1 -0
  48. package/lib/constants/link-names.d.ts +1 -0
  49. package/lib/constants/link-names.d.ts.map +1 -0
  50. package/lib/models/api-url.d.ts +1 -0
  51. package/lib/models/api-url.d.ts.map +1 -0
  52. package/lib/models/client-settings.d.ts +1 -0
  53. package/lib/models/client-settings.d.ts.map +1 -0
  54. package/lib/models/o-data.d.ts +7 -0
  55. package/lib/models/o-data.d.ts.map +1 -0
  56. package/lib/models/problem-details.d.ts +1 -0
  57. package/lib/models/problem-details.d.ts.map +1 -0
  58. package/lib/models/restworld-image.d.ts +28 -0
  59. package/lib/models/restworld-image.d.ts.map +1 -0
  60. package/lib/models/restworld-options.d.ts +2 -1
  61. package/lib/models/restworld-options.d.ts.map +1 -0
  62. package/lib/models/special-properties.d.ts +9 -0
  63. package/lib/models/special-properties.d.ts.map +1 -0
  64. package/lib/models/templating.d.ts +8 -0
  65. package/lib/models/templating.d.ts.map +1 -0
  66. package/lib/pipes/as.pipe.d.ts +1 -0
  67. package/lib/pipes/as.pipe.d.ts.map +1 -0
  68. package/lib/pipes/safe-url.pipe.d.ts +1 -0
  69. package/lib/pipes/safe-url.pipe.d.ts.map +1 -0
  70. package/lib/restworld-client.module.d.ts +45 -37
  71. package/lib/restworld-client.module.d.ts.map +1 -0
  72. package/lib/services/avatar-generator.d.ts +1 -0
  73. package/lib/services/avatar-generator.d.ts.map +1 -0
  74. package/lib/services/form.service.d.ts +1 -0
  75. package/lib/services/form.service.d.ts.map +1 -0
  76. package/lib/services/o-data.service.d.ts +1 -0
  77. package/lib/services/o-data.service.d.ts.map +1 -0
  78. package/lib/services/restworld-client-collection.d.ts +9 -8
  79. package/lib/services/restworld-client-collection.d.ts.map +1 -0
  80. package/lib/services/restworld-client.d.ts +12 -4
  81. package/lib/services/restworld-client.d.ts.map +1 -0
  82. package/lib/services/settings.service.d.ts +3 -2
  83. package/lib/services/settings.service.d.ts.map +1 -0
  84. package/lib/views/restworld-edit-view/restworld-edit-view.component.d.ts +16 -68
  85. package/lib/views/restworld-edit-view/restworld-edit-view.component.d.ts.map +1 -0
  86. package/lib/views/restworld-list-view/restworld-list-view.component.d.ts +25 -41
  87. package/lib/views/restworld-list-view/restworld-list-view.component.d.ts.map +1 -0
  88. package/package.json +6 -6
  89. package/public-api.d.ts +17 -5
  90. package/public-api.d.ts.map +1 -0
  91. package/wertzui-ngx-restworld-client.d.ts.map +1 -0
  92. package/esm2020/lib/views/restworld-edit-form/restworld-edit-form.component.mjs +0 -233
  93. package/esm2020/lib/views/restworld-file-view/restworld-file-view.component.mjs +0 -57
  94. package/esm2020/lib/views/restworld-image-view/restworld-image-view.component.mjs +0 -139
  95. package/lib/views/restworld-edit-form/restworld-edit-form.component.d.ts +0 -74
  96. package/lib/views/restworld-image-view/restworld-image-view.component.d.ts +0 -57
package/index.d.ts CHANGED
@@ -3,3 +3,4 @@
3
3
  */
4
4
  /// <amd-module name="@wertzui/ngx-restworld-client" />
5
5
  export * from './public-api';
6
+ //# sourceMappingURL=wertzui-ngx-restworld-client.d.ts.map
@@ -19,3 +19,4 @@ export declare class RestWorldAvatarComponent implements OnInit {
19
19
  static ɵfac: i0.ɵɵFactoryDeclaration<RestWorldAvatarComponent, never>;
20
20
  static ɵcmp: i0.ɵɵComponentDeclaration<RestWorldAvatarComponent, "rw-avatar", never, { "user": "user"; }, {}, never, never, false, never>;
21
21
  }
22
+ //# sourceMappingURL=restworld-avatar.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restworld-avatar.component.d.ts","sourceRoot":"","sources":["../../../../../projects/ngx-restworld-client/src/lib/components/restworld-avatar/restworld-avatar.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAoB,MAAM,EAAE,MAAM,eAAe,CAAC;AAEzD,OAAO,EAAE,eAAe,EAAE,MAAM,iCAAiC,CAAC;;AAElE,qBAKa,wBAAyB,YAAW,MAAM;IAanD,OAAO,CAAC,QAAQ,CAAC,UAAU;IAX7B,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd,OAAO,CAAC,MAAM,CAAe;IAC7B,IAAW,KAAK,IAAI,MAAM,CAAkC;IAC5D,OAAO,CAAC,MAAM,CAAc;IAC5B,IAAW,KAAK,IAAI,MAAM,CAAwB;IAClD,OAAO,CAAC,MAAM,CAA0D;IACxE,IAAW,KAAK,IAAI,EAAE,GAAG;QAAE,kBAAkB,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;KAAE,CAAwB;IAC/F,IAAW,OAAO,IAAI,MAAM,CAA4B;gBAGrC,UAAU,EAAE,eAAe;IAKxC,QAAQ,IAAI,OAAO,CAAC,IAAI,CAAC;yCAlBpB,wBAAwB;2CAAxB,wBAAwB;CA0BpC"}
@@ -2,7 +2,7 @@ import { QueryList } from '@angular/core';
2
2
  import { ControlValueAccessor } from '@angular/forms';
3
3
  import { FileUpload } from 'primeng/fileupload';
4
4
  import * as i0 from "@angular/core";
5
- export declare class RESTWorldFileViewComponent implements ControlValueAccessor {
5
+ export declare class RestWorldFileComponent implements ControlValueAccessor {
6
6
  private onChange?;
7
7
  accept?: string;
8
8
  fileName?: string;
@@ -16,6 +16,7 @@ export declare class RESTWorldFileViewComponent implements ControlValueAccessor
16
16
  fileChanged(event: {
17
17
  files: File[];
18
18
  }): void;
19
- static ɵfac: i0.ɵɵFactoryDeclaration<RESTWorldFileViewComponent, never>;
20
- static ɵcmp: i0.ɵɵComponentDeclaration<RESTWorldFileViewComponent, "rw-file", never, { "accept": "accept"; "fileName": "fileName"; }, {}, never, never, false, never>;
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestWorldFileComponent, never>;
20
+ static ɵcmp: i0.ɵɵComponentDeclaration<RestWorldFileComponent, "rw-file", never, { "accept": "accept"; "fileName": "fileName"; }, {}, never, never, false, never>;
21
21
  }
22
+ //# sourceMappingURL=restworld-file.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restworld-file.component.d.ts","sourceRoot":"","sources":["../../../../../projects/ngx-restworld-client/src/lib/components/restworld-file/restworld-file.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,SAAS,EAAgB,MAAM,eAAe,CAAC;AACtF,OAAO,EAAE,oBAAoB,EAAqB,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;;AAEhD,qBAUa,sBAAuB,YAAW,oBAAoB;IACjE,OAAO,CAAC,QAAQ,CAAC,CAAW;IAErB,MAAM,CAAC,EAAE,MAAM,CAAC;IAGhB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAGzB,WAAW,CAAC,EAAE,SAAS,CAAC,UAAU,CAAC,CAAC;IAE7B,QAAQ,UAAS;IACjB,GAAG,CAAC,EAAE,MAAM,CAAC;IAEpB,UAAU,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI;IAG9B,gBAAgB,CAAC,EAAE,CAAC,EAAE,QAAQ,GAAG,IAAI;IAGrC,iBAAiB,IAAI,IAAI;IAGzB,gBAAgB,CAAC,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI;IAIrC,WAAW,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,IAAI,EAAE,CAAA;KAAE,GAAG,IAAI;yCA3BvC,sBAAsB;2CAAtB,sBAAsB;CAqClC"}
@@ -0,0 +1,53 @@
1
+ import { EventEmitter, OnInit, TemplateRef } from '@angular/core';
2
+ import { AbstractControl, FormGroup } from '@angular/forms';
3
+ import { Template } from '@wertzui/ngx-hal-client';
4
+ import { ConfirmationService, MessageService } from 'primeng/api';
5
+ import { FormService } from '../../services/form.service';
6
+ import { RestWorldClientCollection } from '../../services/restworld-client-collection';
7
+ import * as i0 from "@angular/core";
8
+ /**
9
+ * A form with Save, Reload and Delete buttons.
10
+ * If you do not want buttons, use RestWorldFormTemplateComponent <rw-form-template>.
11
+ * You can also provide your own buttons by passing in a template.
12
+ */
13
+ export declare class RestWorldFormComponent implements OnInit {
14
+ private readonly _clients;
15
+ private readonly _confirmationService;
16
+ private readonly _messageService;
17
+ private readonly _formService;
18
+ template: Template;
19
+ apiName: string;
20
+ rel: string;
21
+ allowSubmit: boolean;
22
+ allowDelete: boolean;
23
+ allowReload: boolean;
24
+ showSubmit: boolean;
25
+ showDelete: boolean;
26
+ showReload: boolean;
27
+ afterDelete: EventEmitter<void>;
28
+ afterSubmit: EventEmitter<{
29
+ old: Template;
30
+ new: Template;
31
+ }>;
32
+ buttonsRef?: TemplateRef<unknown>;
33
+ private _isLoading;
34
+ get isLoading(): boolean;
35
+ private _formGroup?;
36
+ get formGroup(): FormGroup<{
37
+ timestamp: AbstractControl<string>;
38
+ }> | undefined;
39
+ get canSubmit(): boolean;
40
+ get canDelete(): boolean;
41
+ get canReload(): boolean;
42
+ constructor(_clients: RestWorldClientCollection, _confirmationService: ConfirmationService, _messageService: MessageService, _formService: FormService);
43
+ ngOnInit(): void;
44
+ reload(): Promise<void>;
45
+ showDeleteConfirmatioModal(): void;
46
+ submit(): Promise<void>;
47
+ delete(): Promise<void>;
48
+ private static getSubControl;
49
+ private getClient;
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestWorldFormComponent, never>;
51
+ static ɵcmp: i0.ɵɵComponentDeclaration<RestWorldFormComponent, "rw-form", never, { "template": "template"; "apiName": "apiName"; "rel": "rel"; "allowSubmit": "allowSubmit"; "allowDelete": "allowDelete"; "allowReload": "allowReload"; "showSubmit": "showSubmit"; "showDelete": "showDelete"; "showReload": "showReload"; }, { "afterDelete": "afterDelete"; "afterSubmit": "afterSubmit"; }, ["buttonsRef"], never, false, never>;
52
+ }
53
+ //# sourceMappingURL=restworld-form.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restworld-form.component.d.ts","sourceRoot":"","sources":["../../../../../projects/ngx-restworld-client/src/lib/components/restworld-form/restworld-form.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,YAAY,EAAS,MAAM,EAAU,WAAW,EAAE,MAAM,eAAe,CAAC;AAC1G,OAAO,EAAE,eAAe,EAAE,SAAS,EAAsC,MAAM,gBAAgB,CAAC;AAEhG,OAAO,EAAiB,QAAQ,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAE,mBAAmB,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElE,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAE1D,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;;AAEvF;;;;GAIG;AACH,qBAKa,sBA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ormGroup } from '@angular/forms';
2
+ import { ActivatedRoute, Router } from '@angular/router';
3
+ import { MessageService } from 'primeng/api';
4
+ import { RestWorldClientCollection } from '../../services/restworld-client-collection';
5
+ import * as i0 from "@angular/core";
6
+ export declare class RestWorldIdNavigationComponent {
7
+ private readonly _clients;
8
+ private readonly _messageService;
9
+ private readonly _router;
10
+ private readonly _route;
11
+ apiName?: string;
12
+ rel?: string;
13
+ /**
14
+ * A prefix to use for the URL that si returned from the backend.
15
+ * If none is provided, a relative navigation will be performed which means that the last part of the current URL is replaced with the one from the backend.
16
+ */
17
+ urlPrefix?: string;
18
+ idNavigationForm: FormGroup<{
19
+ id: FormControl<number | null>;
20
+ }>;
21
+ constructor(_clients: RestWorldClientCollection, _messageService: MessageService, _router: Router, _route: ActivatedRoute);
22
+ navigateById(): Promise<void>;
23
+ private getClient;
24
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestWorldIdNavigationComponent, never>;
25
+ static ɵcmp: i0.ɵɵComponentDeclaration<RestWorldIdNavigationComponent, "rw-id-navigation", never, { "apiName": "apiName"; "rel": "rel"; "urlPrefix": "urlPrefix"; }, {}, never, never, false, never>;
26
+ }
27
+ //# sourceMappingURL=restworld-id-navigation.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restworld-id-navigation.component.d.ts","sourceRoot":"","sources":["../../../../../projects/ngx-restworld-client/src/lib/components/restworld-id-navigation/restworld-id-navigation.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,SAAS,EAAc,MAAM,gBAAgB,CAAC;AAIpE,OAAO,EAAE,cAAc,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;;AAEvF,qBAKa,8BAA8B;IAsBvC,OAAO,CAAC,QAAQ,CAAC,QAAQ;IACzB,OAAO,CAAC,QAAQ,CAAC,eAAe;IAChC,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,MAAM;IAtBlB,OAAO,CAAC,EAAE,MAAM,CAAC;IAGjB,GAAG,CAAC,EAAE,MAAM,CAAC;IAEpB;;;OAGG;IAEI,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB,gBAAgB;YACjB,YAAY,MAAM,GAAG,IAAI,CAAC;OAG7B;gBAGgB,QAAQ,EAAE,yBAAyB,EACnC,eAAe,EAAE,cAAc,EAC/B,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,cAAc;IAG5B,YAAY,IAAI,OAAO,CAAC,IAAI,CAAC;IAgC1C,OAAO,CAAC,SAAS;yCA5DN,8BAA8B;2CAA9B,8BAA8B;CAkE1C"}
@@ -0,0 +1,62 @@
1
+ import { AfterViewInit, OnInit, QueryList } from '@angular/core';
2
+ import { ControlValueAccessor } from '@angular/forms';
3
+ import { CropperPosition, ImageCroppedEvent, ImageCropperComponent, OutputFormat } from 'ngx-image-cropper';
4
+ import { FileUpload } from 'primeng/fileupload';
5
+ import { Dialog } from 'primeng/dialog';
6
+ import { Property } from '@wertzui/ngx-hal-client';
7
+ import { RestWorldImage } from '../../models/restworld-image';
8
+ import * as i0 from "@angular/core";
9
+ export declare class RestWorldImageComponent implements ControlValueAccessor, OnInit, AfterViewInit {
10
+ private onChange?;
11
+ property: Property & {
12
+ restWorldImage: RestWorldImage;
13
+ };
14
+ get alt(): string;
15
+ get accept(): string;
16
+ get fileName(): string;
17
+ get alignImage(): "center" | "left";
18
+ get aspectRatio(): number;
19
+ get backgroundColor(): string | undefined;
20
+ set backgroundColor(value: string | undefined);
21
+ get canvasRotation(): number;
22
+ get containWithinAspectRatio(): boolean;
23
+ get cropper(): CropperPosition | undefined;
24
+ get cropperMaxHeight(): number;
25
+ get cropperMaxWidth(): number;
26
+ get cropperMinHeight(): number;
27
+ get cropperMinWidth(): number;
28
+ get cropperStaticHeight(): number;
29
+ get cropperStaticWidth(): number;
30
+ get format(): OutputFormat;
31
+ get imageQuality(): number;
32
+ get initialStepSize(): number;
33
+ get maintainAspectRatio(): boolean;
34
+ get onlyScaleDown(): boolean;
35
+ get resizeToWidth(): number;
36
+ get resizeToHeight(): number;
37
+ get roundCropper(): boolean;
38
+ fileUploads?: QueryList<FileUpload>;
39
+ imageCroppers?: QueryList<ImageCropperComponent>;
40
+ dialogs?: QueryList<Dialog>;
41
+ disabled: boolean;
42
+ uri?: string | null;
43
+ tempImageFile?: File;
44
+ displayCropDialog: boolean;
45
+ tempCroppedUri?: string | null;
46
+ writeValue(obj?: string | null): void;
47
+ registerOnChange(fn?: Function): void;
48
+ registerOnTouched(): void;
49
+ setDisabledState?(isDisabled: boolean): void;
50
+ ngOnInit(): void;
51
+ ngAfterViewInit(): void;
52
+ showCropDialog(): void;
53
+ imageChanged(event: {
54
+ files: File[];
55
+ }): void;
56
+ croppedImageChanged(event: ImageCroppedEvent): void;
57
+ acceptCroppedImage(): void;
58
+ closeCropDialog(): void;
59
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestWorldImageComponent, never>;
60
+ static ɵcmp: i0.ɵɵComponentDeclaration<RestWorldImageComponent, "rw-image", never, { "property": "property"; }, {}, never, never, false, never>;
61
+ }
62
+ //# sourceMappingURL=restworld-image.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restworld-image.component.d.ts","sourceRoot":"","sources":["../../../../../projects/ngx-restworld-client/src/lib/components/restworld-image/restworld-image.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAA2C,MAAM,EAAE,SAAS,EAAgB,MAAM,eAAe,CAAC;AACxH,OAAO,EAAE,oBAAoB,EAAqB,MAAM,gBAAgB,CAAC;AACzE,OAAO,EAAE,eAAe,EAAE,iBAAiB,EAAE,qBAAqB,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC5G,OAAO,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAE,MAA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IACrB,iBAAiB,UAAS;IAC1B,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEtC,UAAU,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI;IAGrC,gBAAgB,CAAC,EAAE,CAAC,EAAE,QAAQ,GAAG,IAAI;IAGrC,iBAAiB,IAAI,IAAI;IAIzB,gBAAgB,CAAC,CAAC,UAAU,EAAE,OAAO,GAAG,IAAI;IAI5C,QAAQ,IAAI,IAAI;IAOhB,eAAe,IAAI,IAAI;IAShB,cAAc,IAAI,IAAI;IAItB,YAAY,CAAC,KAAK,EAAE;QAAE,KAAK,EAAE,IAAI,EAAE,CAAA;KAAE,GAAG,IAAI;IAK5C,mBAAmB,CAAC,KAAK,EAAE,iBAAiB,GAAG,IAAI;IAInD,kBAAkB,IAAI,IAAI;IAM1B,eAAe,IAAI,IAAI;yCAvKnB,uBAAuB;2CAAvB,uBAAuB;CA2KnC"}
@@ -0,0 +1,146 @@
1
+ import { CdkDragDrop } from '@angular/cdk/drag-drop';
2
+ import { ChangeDetectorRef, OnInit, TemplateRef } from '@angular/core';
3
+ import { AbstractControl, ControlContainer, FormArray, FormControl, FormGroup } from '@angular/forms';
4
+ import { NumberTemplate, Options, Property, PropertyType, Resource, Template } from '@wertzui/ngx-hal-client';
5
+ import { FormService } from '../../services/form.service';
6
+ import { MessageService } from 'primeng/api';
7
+ import { PropertyTemplateContext } from '../../models/templating';
8
+ import { RestWorldClientCollection } from '../../services/restworld-client-collection';
9
+ import { PropertyWithOptions, PropertyWithImage } from '../../models/special-properties';
10
+ import * as i0 from "@angular/core";
11
+ /**
12
+ * A form element with a label that is automatically created from a property in a form template.
13
+ * This may also be a complex object or a collection in which case multiple and nested input elements may be rendered.
14
+ * If you want a form element without a label, use RestWorldFormInput <rw-form-input>.
15
+ */
16
+ export declare class RestWorldFormElementComponent<T extends {
17
+ [K in keyof T]: AbstractControl<any, any>;
18
+ }> {
19
+ property: Property;
20
+ apiName: string;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestWorldFormElementComponent<any>, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<RestWorldFormElementComponent<any>, "rw-form-element", never, { "property": "property"; "apiName": "apiName"; }, {}, never, never, false, never>;
23
+ }
24
+ /**
25
+ * A form input element that is automatically created from a property in a form template.
26
+ * This may also be a complex object or a collection in which case multiple and nested input elements may be rendered.
27
+ * If you also want a label, use RestWorldFormElement <rw-form-element>.
28
+ * You can also use one of the different RestWorldInput... <rw-input-...> elements to render a specific input,
29
+ * but it is advised to control the rendered input through the passed in property.
30
+ */
31
+ export declare class RestWorldInputComponent {
32
+ property: Property;
33
+ apiName: string;
34
+ get PropertyType(): typeof PropertyType;
35
+ get PropertyWithOptions(): typeof PropertyWithOptions;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestWorldInputComponent, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<RestWorldInputComponent, "rw-input", never, { "property": "property"; "apiName": "apiName"; }, {}, never, never, false, never>;
38
+ }
39
+ /**
40
+ * A collection that is automatically created from the given property.
41
+ * The collection supports drag & drop to re order the elements and can also be nested.
42
+ * It is advised to use RestWorldInputComponent <rw-input> and control the rendered inputs with the passed in property
43
+ * instead of using this component directly.
44
+ */
45
+ export declare class RestWorldInputCollectionComponent<T extends {
46
+ [K in keyof T]: AbstractControl<any, any>;
47
+ }> implements OnInit {
48
+ private readonly _controlContainer;
49
+ private readonly _formService;
50
+ private readonly _changeDetectorRef;
51
+ property: Property;
52
+ apiName: string;
53
+ inputCollectionRef?: TemplateRef<unknown>;
54
+ private _templates;
55
+ get templates(): NumberTemplate[];
56
+ private _defaultTemplate?;
57
+ get defaultTemplate(): Template;
58
+ private _innerFormArray?;
59
+ get innerFormArray(): FormArray<FormGroup<T>>;
60
+ constructor(_controlContainer: ControlContainer, _formService: FormService, _changeDetectorRef: ChangeDetectorRef);
61
+ ngOnInit(): void;
62
+ private static getCollectionEntryTemplates;
63
+ addNewItemToCollection(): void;
64
+ deleteItemFromCollection(template: NumberTemplate): void;
65
+ collectionItemDropped($event: CdkDragDrop<{}>): void;
66
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestWorldInputCollectionComponent<any>, never>;
67
+ static ɵcmp: i0.ɵɵComponentDeclaration<RestWorldInputCollectionComponent<any>, "rw-input-collection", never, { "property": "property"; "apiName": "apiName"; }, {}, ["inputCollectionRef"], never, false, never>;
68
+ }
69
+ /**
70
+ * A dropdown that is automatically created from the given property.
71
+ * The dropdown supports searching through a RESTWorld list endpoint on the backend.
72
+ * It is advised to use RestWorldInputComponent <rw-input> and control the rendered inputs with the passed in property
73
+ * instead of using this component directly.
74
+ */
75
+ export declare class RestWorldInputDropdownComponent {
76
+ private readonly _messageService;
77
+ private readonly _clients;
78
+ property: Property & {
79
+ options: Options;
80
+ };
81
+ apiName: string;
82
+ inputOptionsSingleRef?: TemplateRef<PropertyTemplateContext>;
83
+ inputOptionsMultipleRef?: TemplateRef<PropertyTemplateContext>;
84
+ constructor(_messageService: MessageService, _clients: RestWorldClientCollection);
85
+ getDropdownElementTooltip(resource: Resource, keysToExclude?: string[]): string;
86
+ onOptionsFiltered(property: Property, event: {
87
+ originalEvent: unknown;
88
+ filter: string | null;
89
+ }): Promise<void>;
90
+ private getClient;
91
+ private static jsonStringifyWithElipsis;
92
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestWorldInputDropdownComponent, never>;
93
+ static ɵcmp: i0.ɵɵComponentDeclaration<RestWorldInputDropdownComponent, "rw-input-dropdown", never, { "property": "property"; "apiName": "apiName"; }, {}, ["inputOptionsSingleRef", "inputOptionsMultipleRef"], never, false, never>;
94
+ }
95
+ /**
96
+ * A complex object with multiple properties that is automatically created from the given property.
97
+ * The object can also be nested.
98
+ * It is advised to use RestWorldInputComponent <rw-input> and control the rendered inputs with the passed in property
99
+ * instead of using this component directly.
100
+ */
101
+ export declare class RestWorldInputObjectComponent<T extends {
102
+ [K in keyof T]: AbstractControl<any, any>;
103
+ }> implements OnInit {
104
+ private readonly _controlContainer;
105
+ property: Property;
106
+ apiName: string;
107
+ inputObjectRef?: TemplateRef<unknown>;
108
+ private _innerFormGroup?;
109
+ get innerFormGroup(): FormGroup<T>;
110
+ constructor(_controlContainer: ControlContainer);
111
+ ngOnInit(): void;
112
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestWorldInputObjectComponent<any>, never>;
113
+ static ɵcmp: i0.ɵɵComponentDeclaration<RestWorldInputObjectComponent<any>, "rw-input-object", never, { "property": "property"; "apiName": "apiName"; }, {}, ["inputObjectRef"], never, false, never>;
114
+ }
115
+ /**
116
+ * A simple input element, like a text, or a number that is automatically created from the given property.
117
+ * It is advised to use RestWorldInputComponent <rw-input> and control the rendered inputs with the passed in property
118
+ * instead of using this component directly.
119
+ */
120
+ export declare class RestWorldInputSimpleComponent<T> implements OnInit {
121
+ private readonly _controlContainer;
122
+ property: Property;
123
+ get PropertyType(): typeof PropertyType;
124
+ get dateFormat(): string;
125
+ private _formControl?;
126
+ get formControl(): FormControl<T>;
127
+ get PropertyWithImage(): typeof PropertyWithImage;
128
+ constructor(_controlContainer: ControlContainer);
129
+ ngOnInit(): void;
130
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestWorldInputSimpleComponent<any>, never>;
131
+ static ɵcmp: i0.ɵɵComponentDeclaration<RestWorldInputSimpleComponent<any>, "rw-input-simple", never, { "property": "property"; }, {}, never, never, false, never>;
132
+ }
133
+ /**
134
+ * A collection of rw-form-elemtns automatically created from a template.
135
+ * Does not have any buttons on its own.
136
+ * If you want buttons, use RestWorldForm <rw-form>.
137
+ */
138
+ export declare class RestWorldInputTemplateComponent<T extends {
139
+ [K in keyof T]: AbstractControl<any, any>;
140
+ }> {
141
+ apiName: string;
142
+ template: Template;
143
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestWorldInputTemplateComponent<any>, never>;
144
+ static ɵcmp: i0.ɵɵComponentDeclaration<RestWorldInputTemplateComponent<any>, "rw-input-template", never, { "apiName": "apiName"; "template": "template"; }, {}, never, never, false, never>;
145
+ }
146
+ //# sourceMappingURL=restworld-inputs.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restworld-inputs.d.ts","sourceRoot":"","sources":["../../../../../projects/ngx-restworld-client/src/lib/components/restworld-inputs/restworld-inputs.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,iBAAiB,EAAkC,MAAM,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AACvG,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAE,SAAS,EAAE,WAAW,EAAE,SAAS,EAAsB,MAAM,gBAAgB,CAAC;AAC1H,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,QAAQ,EAAE,QAAQ,EAAe,MAAM,yBAAyB,CAAC;AAC3H,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE7C,OAAO,EAAE,uBAAuB,EAAE,MAAM,yBAAyB,CAAC;AAElE,OAAO,EAAE,yBAAyB,EAAE,MAAM,4CAA4C,CAAC;AACvF,OAAO,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,iCAAiC,CAAA;;AAExF;;;;GAIG;AACH,qBAMa,6BAA6B,CAAC,CAAC,SAAS;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,eAAe,CAAC,GAAG,EAAE,GAAG,CAAC;CAAG;IAEjG,QAAQ,EAAG,QAAQ,CAAC;IAGpB,OAAO,EAAG,MAAM,CAAC;yCALN,6BAA6B;2CAA7B,6BAA6B;CAMzC;AAED;;;;;;GAMG;AACH,qBAMa,uBAAuB;IAGlC,QAAQ,EAAG,QAAQ,CAAC;IAGpB,OAAO,EAAG,MAAM,CAAC;IAEjB,IAAW,YAAY,wBAEtB;IAED,IAAW,mBAAmB,+BAE7B;yCAdU,u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iBAAiB,6BAE3B;gBAGkB,iBAAiB,EAAE,gBAAgB;IAItD,QAAQ,IAAI,IAAI;yCApCL,6BAA6B;2CAA7B,6BAA6B;CAwCzC;AAED;;;;GAIG;AACH,qBAMa,+BAA+B,CAAC,CAAC,SAAS;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,eAAe,CAAC,GAAG,EAAE,GAAG,CAAC;CAAG;IAEnG,OAAO,EAAG,MAAM,CAAC;IAGjB,QAAQ,EAAG,QAAQ,CAAC;yCALT,+BAA+B;2CAA/B,+BAA+B;CAM3C"}
@@ -0,0 +1,14 @@
1
+ import { Property, PropertyType } from '@wertzui/ngx-hal-client';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * A label that is generated from the given property.
5
+ * If you also want an input element, you can either use RestWorldFormElement <rw-form-element> to have a label and an input rendered,
6
+ * or use RestWorldInput <rw-input> which will just render the input element, so you can freely place this label.
7
+ */
8
+ export declare class RestWorldLabelComponent {
9
+ property: Property;
10
+ get PropertyType(): typeof PropertyType;
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestWorldLabelComponent, never>;
12
+ static ɵcmp: i0.ɵɵComponentDeclaration<RestWorldLabelComponent, "rw-label", never, { "property": "property"; }, {}, never, never, false, never>;
13
+ }
14
+ //# sourceMappingURL=restworld-label.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restworld-label.component.d.ts","sourceRoot":"","sources":["../../../../../projects/ngx-restworld-client/src/lib/components/restworld-label/restworld-label.component.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;;AAEjE;;;;GAIG;AACH,qBAMa,uBAAuB;IAElC,QAAQ,EAAG,QAAQ,CAAC;IAEpB,IAAW,YAAY,wBAEtB;yCANU,uBAAuB;2CAAvB,uBAAuB;CAOnC"}
@@ -0,0 +1,12 @@
1
+ import { Router } from '@angular/router';
2
+ import { MenuItem } from 'primeng/api';
3
+ import * as i0 from "@angular/core";
4
+ export declare class RestWorldMenuButtonComponent {
5
+ private readonly _router;
6
+ items: MenuItem[];
7
+ constructor(_router: Router);
8
+ onClick(item: MenuItem): void;
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestWorldMenuButtonComponent, never>;
10
+ static ɵcmp: i0.ɵɵComponentDeclaration<RestWorldMenuButtonComponent, "rw-menu-button", never, { "items": "items"; }, {}, never, never, false, never>;
11
+ }
12
+ //# sourceMappingURL=restworld-menu-button.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restworld-menu-button.component.d.ts","sourceRoot":"","sources":["../../../../../projects/ngx-restworld-client/src/lib/components/restworld-menu-button/restworld-menu-button.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;;AAEvC,qBAKa,4BAA4B;IAI3B,OAAO,CAAC,QAAQ,CAAC,OAAO;IAF7B,KAAK,EAAE,QAAQ,EAAE,CAAK;gBAEA,OAAO,EAAE,MAAM;IAI5C,OAAO,CAAC,IAAI,EAAE,QAAQ;yCARX,4BAA4B;2CAA5B,4BAA4B;CAwBxC"}
@@ -0,0 +1,54 @@
1
+ import { EventEmitter } from '@angular/core';
2
+ import { Property, PropertyType, Template } from '@wertzui/ngx-hal-client';
3
+ import { LazyLoadEvent, MenuItem } from 'primeng/api';
4
+ import { ODataParameters } from '../../models/o-data';
5
+ import { ContextMenu } from 'primeng/contextmenu';
6
+ import * as i0 from "@angular/core";
7
+ declare enum ColumnFilterType {
8
+ text = "text",
9
+ numeric = "numeric",
10
+ boolean = "boolean",
11
+ date = "date"
12
+ }
13
+ export declare class RestWorldTableComponent<TListDto> {
14
+ api?: string;
15
+ private _template?;
16
+ set template(value: Template | undefined);
17
+ get template(): Template | undefined;
18
+ private _rows;
19
+ get rows(): TListDto[];
20
+ set rows(value: TListDto[]);
21
+ rowsPerPageOptions: number[];
22
+ headerMenu: MenuItem[];
23
+ rowMenu: (row: TListDto, openedByRightClick: boolean) => MenuItem[];
24
+ private _rowMenus;
25
+ get rowMenus(): MenuItem[][];
26
+ get showMenuColumn(): boolean;
27
+ showRowMenuAsColumn: boolean;
28
+ showRowMenuOnRightClick: boolean;
29
+ totalRecords: number;
30
+ private setSortFieldAndSortOrder;
31
+ sortField?: string;
32
+ sortOrder?: number;
33
+ styleClass: string;
34
+ tableStyle?: string;
35
+ scrollable: boolean;
36
+ scrollHeight: string;
37
+ onFilterOrSortChanged: EventEmitter<ODataParameters>;
38
+ contextMenu?: ContextMenu;
39
+ private _contextMenuItems;
40
+ get contextMenuItems(): MenuItem[];
41
+ isLoading: boolean;
42
+ private _columns;
43
+ get columns(): Property[];
44
+ private static readonly _dateFormat;
45
+ get dateFormat(): string;
46
+ get PropertyType(): typeof PropertyType;
47
+ load(event: LazyLoadEvent): void;
48
+ openContextMenu(event: MouseEvent, row: TListDto): void;
49
+ toColumnFilterType(propertyType: PropertyType): ColumnFilterType;
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestWorldTableComponent<any>, never>;
51
+ static ɵcmp: i0.ɵɵComponentDeclaration<RestWorldTableComponent<any>, "rw-table", never, { "api": "api"; "template": "template"; "rows": "rows"; "rowsPerPageOptions": "rowsPerPageOptions"; "headerMenu": "headerMenu"; "rowMenu": "rowMenu"; "showRowMenuAsColumn": "showRowMenuAsColumn"; "showRowMenuOnRightClick": "showRowMenuOnRightClick"; "totalRecords": "totalRecords"; "styleClass": "styleClass"; "tableStyle": "tableStyle"; "scrollable": "scrollable"; "scrollHeight": "scrollHeight"; "isLoading": "isLoading"; }, { "onFilterOrSortChanged": "onFilterOrSortChanged"; }, never, never, false, never>;
52
+ }
53
+ export {};
54
+ //# sourceMappingURL=restworld-table.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restworld-table.component.d.ts","sourceRoot":"","sources":["../../../../../projects/ngx-restworld-client/src/lib/components/restworld-table/restworld-table.component.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GpB,UAAU,EAAE,OAAO,CAAQ;IAG3B,YAAY,EAAE,MAAM,CAAU;IAG9B,qBAAqB,gCAAuC;IAGnE,WAAW,CAAC,EAAE,WAAW,CAAC;IAE1B,OAAO,CAAC,iBAAiB,CAAkB;IAC3C,IAAW,gBAAgB,eAE1B;IAGM,SAAS,UAAS;IAEzB,OAAO,CAAC,QAAQ,CAAkB;IAClC,IAAW,OAAO,IAAI,QAAQ,EAAE,CAE/B;IAED,OAAO,CAAC,MAAM,CAAC,QAAQ,CAAC,WAAW,CAKZ;IAEvB,IAAW,UAAU,WAEpB;IAED,IAAW,YAAY,IAAI,OAAO,YAAY,CAE7C;IAEM,IAAI,CAAC,KAAK,EAAE,aAAa;IAOzB,eAAe,CAAC,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,QAAQ,GAAG,IAAI;IASvD,kBAAkB,CAAC,YAAY,EAAE,YAAY,GAAI,gBAAgB;yCAtI7D,uBAAuB;2CAAvB,uBAAuB;CAoJnC"}
@@ -0,0 +1,15 @@
1
+ import { AbstractControl, FormGroup } from '@angular/forms';
2
+ import { Property } from '@wertzui/ngx-hal-client';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Displays validation errors either for one property or for a whole form.
6
+ */
7
+ export declare class RestWorldValidationErrorsComponent<T extends {
8
+ [K in keyof T]: AbstractControl<any, any>;
9
+ }> {
10
+ property?: Property;
11
+ form?: FormGroup<T>;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<RestWorldValidationErrorsComponent<any>, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<RestWorldValidationErrorsComponent<any>, "rw-validation-errors", never, { "property": "property"; "form": "form"; }, {}, never, never, false, never>;
14
+ }
15
+ //# sourceMappingURL=restworld-validation-errors.component.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restworld-validation-errors.component.d.ts","sourceRoot":"","sources":["../../../../../projects/ngx-restworld-client/src/lib/components/restworld-validation-errors/restworld-validation-errors.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAoB,SAAS,EAAsB,MAAM,gBAAgB,CAAC;AAClG,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAC;;AAEnD;;GAEG;AACH,qBAMa,kCAAkC,CAAC,CAAC,SAAS;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,eAAe,CAAC,GAAG,EAAE,GAAG,CAAC;CAAG;IAEtG,QAAQ,CAAC,EAAE,QAAQ,CAAC;IAGpB,IAAI,CAAC,EAAE,SAAS,CAAC,CAAC,CAAC,CAAA;yCALR,kCAAkC;2CAAlC,kCAAkC;CAM9C"}
@@ -6,3 +6,4 @@ export declare enum LinkNames {
6
6
  delete = "Delete",
7
7
  new = "New"
8
8
  }
9
+ //# sourceMappingURL=link-names.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"link-names.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-restworld-client/src/lib/constants/link-names.ts"],"names":[],"mappings":"AAAA,oBAAY,SAAS;IACnB,GAAG,QAAQ;IACX,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,GAAG,QAAQ;IACX,MAAM,WAAW;IACjB,GAAG,QAAQ;CACZ"}
@@ -3,3 +3,4 @@ export interface ApiUrl {
3
3
  url: string;
4
4
  version?: number;
5
5
  }
6
+ //# sourceMappingURL=api-url.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api-url.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-restworld-client/src/lib/models/api-url.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -5,3 +5,4 @@ export interface ClientSettings {
5
5
  [key: string]: string;
6
6
  };
7
7
  }
8
+ //# sourceMappingURL=client-settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client-settings.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-restworld-client/src/lib/models/client-settings.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAEnC,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,UAAU,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KAAE,CAAA;CACvC"}
@@ -0,0 +1,7 @@
1
+ export interface ODataParameters {
2
+ $filter?: string;
3
+ $orderby?: string;
4
+ $top?: number;
5
+ $skip?: number;
6
+ }
7
+ //# sourceMappingURL=o-data.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"o-data.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-restworld-client/src/lib/models/o-data.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -18,3 +18,4 @@ export declare class ProblemDetails extends Resource implements ResourceOfDto<Pr
18
18
  static containsProblemDetailsInformation(resource: unknown): unknown;
19
19
  static fromResource(resource: Resource | null | undefined): ProblemDetails;
20
20
  }
21
+ //# sourceMappingURL=problem-details.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"problem-details.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-restworld-client/src/lib/models/problem-details.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,MAAM,yBAAyB,CAAA;AAIjE,MAAM,WAAW,iBAAiB;IAChC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;CACxB;AAED,qBAAa,cAAe,SAAQ,QAAS,YAAW,aAAa,CAAC,iBAAiB,CAAC;IAC/E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IACzB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;WAET,gBAAgB,CAAC,QAAQ,EAAE,OAAO,GAAG,QAAQ,IAAI,cAAc;WAI/D,iCAAiC,CAAC,QAAQ,EAAE,OAAO;WAInD,YAAY,CAAC,QAAQ,EAAE,QAAQ,GAAG,IAAI,GAAG,SAAS,GAAG,cAAc;CAMlF"}
@@ -0,0 +1,28 @@
1
+ import { CropperPosition, OutputFormat } from 'ngx-image-cropper';
2
+ /**
3
+ * If working with a RESTworld backend, you can expect a form-template-property that has an image type to also have a field "restWorldImage" with a value that satisfies this interface.
4
+ */
5
+ export interface RestWorldImage {
6
+ accept?: string;
7
+ alignImage: 'left' | 'center';
8
+ aspectRatio: number;
9
+ backgroundColor?: string;
10
+ canvasRotation: number;
11
+ containWithinAspectRatio: boolean;
12
+ cropper?: CropperPosition;
13
+ cropperMaxHeight: number;
14
+ cropperMaxWidth: number;
15
+ cropperMinHeight: number;
16
+ cropperMinWidth: number;
17
+ cropperStaticHeight: number;
18
+ cropperStaticWidth: number;
19
+ format: OutputFormat;
20
+ imageQuality: number;
21
+ initialStepSize: number;
22
+ maintainAspectRatio: boolean;
23
+ onlyScaleDown: boolean;
24
+ resizeToHeight: number;
25
+ resizeToWidth: number;
26
+ roundCropper: boolean;
27
+ }
28
+ //# sourceMappingURL=restworld-image.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restworld-image.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-restworld-client/src/lib/models/restworld-image.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAElE;;GAEG;AACH,MAAM,WAAW,cAAc;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,GAAG,QAAQ,CAAC;IAC9B,WAAW,EAAE,MAAM,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,cAAc,EAAE,MAAM,CAAC;IACvB,wBAAwB,EAAE,OAAO,CAAC;IAClC,OAAO,CAAC,EAAE,eAAe,CAAC;IAC1B,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,gBAAgB,EAAE,MAAM,CAAC;IACzB,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,kBAAkB,EAAE,MAAM,CAAC;IAC3B,MAAM,EAAE,YAAY,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,aAAa,EAAE,OAAO,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,aAAa,EAAE,MAAM,CAAC;IACtB,YAAY,EAAE,OAAO,CAAC;CACzB"}
@@ -1,5 +1,6 @@
1
- export declare class RESTworldOptions {
1
+ export declare class RestWorldOptions {
2
2
  readonly BaseUrl: string;
3
3
  readonly Version?: number | undefined;
4
4
  constructor(BaseUrl: string, Version?: number | undefined);
5
5
  }
6
+ //# sourceMappingURL=restworld-options.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"restworld-options.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-restworld-client/src/lib/models/restworld-options.ts"],"names":[],"mappings":"AAAA,qBAAa,gBAAgB;aACC,OAAO,EAAE,MAAM;aAAkB,OAAO,CAAC;gBAAzC,OAAO,EAAE,MAAM,EAAkB,OAAO,CAAC,oBAAQ;CAI9E"}
@@ -0,0 +1,9 @@
1
+ import { Property, Options } from '@wertzui/ngx-hal-client';
2
+ import { RestWorldImage } from './restworld-image';
3
+ export declare class PropertyWithImage extends Property {
4
+ restWorldImage: RestWorldImage;
5
+ }
6
+ export declare class PropertyWithOptions extends Property {
7
+ options: Options;
8
+ }
9
+ //# sourceMappingURL=special-properties.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"special-properties.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-restworld-client/src/lib/models/special-properties.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,yBAAyB,CAAA;AAC3D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBAAa,iBAAkB,SAAQ,QAAQ;IAC7C,cAAc,EAAG,cAAc,CAAC;CACjC;AAED,qBAAa,mBAAoB,SAAQ,QAAQ;IAC/C,OAAO,EAAG,OAAO,CAAC;CACnB"}
@@ -0,0 +1,8 @@
1
+ import { Property } from "@wertzui/ngx-hal-client";
2
+ export interface PropertyTemplateContext {
3
+ property: Property;
4
+ }
5
+ export interface DropdownTemplateContext extends PropertyTemplateContext {
6
+ apiName: string;
7
+ }
8
+ //# sourceMappingURL=templating.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"templating.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-restworld-client/src/lib/models/templating.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAY,MAAM,yBAAyB,CAAC;AAE7D,MAAM,WAAW,uBAAuB;IACpC,QAAQ,EAAE,QAAQ,CAAC;CACtB;AAED,MAAM,WAAW,uBAAwB,SAAQ,uBAAuB;IACpE,OAAO,EAAE,MAAM,CAAC;CACnB"}
@@ -16,3 +16,4 @@ export declare class AsPipe implements PipeTransform {
16
16
  static ɵfac: i0.ɵɵFactoryDeclaration<AsPipe, never>;
17
17
  static ɵpipe: i0.ɵɵPipeDeclaration<AsPipe, "as", false>;
18
18
  }
19
+ //# sourceMappingURL=as.pipe.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"as.pipe.d.ts","sourceRoot":"","sources":["../../../../projects/ngx-restworld-client/src/lib/pipes/as.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,aAAa,EAAE,MAAM,eAAe,CAAC;;AAEpD;;;GAGG;AAEH,qBACa,MAAO,YAAW,aAAa;IAC1C;;;;;;OAMG;IACH,SAAS,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,GAAG,CAAC;yCAR5D,MAAM;uCAAN,MAAM;CAWlB"}