@jumoo/usync-expansions 18.3.0 → 18.4.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 (43) hide show
  1. package/dist/api/client.gen.js +1 -1
  2. package/dist/api/index.d.ts +1 -1
  3. package/dist/api/sdk.gen.d.ts +17 -15
  4. package/dist/api/sdk.gen.js +14 -0
  5. package/dist/api/types.gen.d.ts +72 -0
  6. package/dist/background/background-pipeline.repository.d.ts +3 -8
  7. package/dist/background/components/pending-list.element.js +10 -10
  8. package/dist/background/components/pipelines-table.element.js +16 -16
  9. package/dist/background/components/process-list.element.js +6 -6
  10. package/dist/background/components/queue-table.element.js +11 -11
  11. package/dist/background/workspace/background-workspace-element.js +19 -19
  12. package/dist/components/report-summary-view.js +90 -90
  13. package/dist/components/usync-property-layout.js +93 -93
  14. package/dist/items/sync-item.context.d.ts +1 -1
  15. package/dist/items/sync-item.repository.d.ts +3 -8
  16. package/dist/lang/en.d.ts +1 -0
  17. package/dist/lang/en.js +1 -0
  18. package/dist/licence/components/licence-notice.js +7 -7
  19. package/dist/licence/components/licence-status.view.js +13 -13
  20. package/dist/licence/components/styles.js +39 -39
  21. package/dist/licence/lang/en.d.ts +15 -0
  22. package/dist/licence/lang/en.js +16 -1
  23. package/dist/licence/licence.context.d.ts +6 -1
  24. package/dist/licence/licence.context.js +11 -0
  25. package/dist/licence/licence.element.d.ts +8 -1
  26. package/dist/licence/licence.element.js +269 -126
  27. package/dist/licence/licence.repository.d.ts +1 -0
  28. package/dist/licence/licence.repository.js +3 -0
  29. package/dist/licence/source/licence.source.d.ts +2 -1
  30. package/dist/licence/source/licence.source.js +3 -0
  31. package/dist/restore/components/restore-point-table.element.js +21 -21
  32. package/dist/restore/lang/en.js +11 -11
  33. package/dist/restore/restore.context.d.ts +1 -1
  34. package/dist/restore/restore.repository.d.ts +9 -4
  35. package/dist/restore/restore.repository.js +7 -0
  36. package/dist/restore/steps/restore-create-complete.js +9 -9
  37. package/dist/restore/steps/restore-create-element.js +31 -31
  38. package/dist/restore/steps/restore-report-config-element.js +44 -44
  39. package/dist/restore/steps/restore-report-element.d.ts +1 -0
  40. package/dist/restore/steps/restore-report-element.js +29 -1
  41. package/dist/restore/workspace/restore.workspace-view.element.js +42 -42
  42. package/dist/restore/workspace/restore.workspace.element.js +25 -25
  43. package/package.json +53 -52
@@ -1,3 +1,3 @@
1
1
  // This file is auto-generated by @hey-api/openapi-ts
2
2
  import { createClient, createConfig } from './client';
3
- export const client = createClient(createConfig({ baseUrl: 'https://localhost:44385/' }));
3
+ export const client = createClient(createConfig({ baseUrl: 'https://localhost:44385/', throwOnError: true }));
@@ -1,2 +1,2 @@
1
1
  export { FilesService, ItemsService, LicenceService, type Options, RestoreService } from './sdk.gen';
2
- export { ChangeDetailType, ChangeType, type CheckLegacyData, type CheckLegacyErrors, type CheckLegacyResponse, type CheckLegacyResponses, type CleanData, type CleanErrors, type CleanResponses, type ClientOptions, type Exception, type GetActionViewData, type GetActionViewErrors, type GetActionViewResponse, type GetActionViewResponses, type GetAllData, type GetAllErrors, type GetAllResponse, type GetAllResponses, type GetLicenceData, type GetLicenceErrors, type GetLicenceResponse, type GetLicenceResponses, type GetLicenceStatusData, type GetLicenceStatusErrors, type GetLicenceStatusResponse, type GetLicenceStatusResponses, type GetReportData, type GetReportErrors, type GetReportResponse, type GetReportResponses, type GetRestorePointData, type GetRestorePointErrors, type GetRestorePointResponse, type GetRestorePointResponses, type GetSyncItemData, type GetSyncItemErrors, type GetSyncItemResponse, type GetSyncItemResponses, type HasRootFilesData, type HasRootFilesErrors, type HasRootFilesResponse, type HasRootFilesResponses, type IsLicencedData, type IsLicencedErrors, type IsLicencedResponse, type IsLicencedResponses, type Licence, type LicencedProduct, type LicenceInfo, LicenceStatus, type LicenceStatusView, LicenceType, type MethodBase, type RemoveData, type RemoveErrors, type RemoveResponses, type RestorePoint, type RestorePointProcessingOptions, RestorePointStatus, type SaveLicenceData, type SaveLicenceErrors, type SaveLicenceResponse, type SaveLicenceResponses, type ScanData, type ScanErrors, type ScanResponse, type ScanResponses, SyncDependencyFlags, type SyncEntity, type UdiModel, type USyncAction, type USyncActionView, type USyncChange } from './types.gen';
2
+ export { ChangeDetailType, ChangeType, type CheckLegacyData, type CheckLegacyErrors, type CheckLegacyResponse, type CheckLegacyResponses, type CleanData, type CleanErrors, type CleanResponses, type ClientOptions, type Exception, type GetActionViewData, type GetActionViewErrors, type GetActionViewResponse, type GetActionViewResponses, type GetAllData, type GetAllErrors, type GetAllResponse, type GetAllResponses, type GetLicenceData, type GetLicenceErrors, type GetLicenceResponse, type GetLicenceResponses, type GetLicenceStatusData, type GetLicenceStatusErrors, type GetLicenceStatusResponse, type GetLicenceStatusResponses, type GetPreviewData, type GetPreviewErrors, type GetPreviewResponse, type GetPreviewResponses, type GetReportData, type GetReportErrors, type GetReportResponse, type GetReportResponses, type GetRestorePointData, type GetRestorePointErrors, type GetRestorePointResponse, type GetRestorePointResponses, type GetSyncItemData, type GetSyncItemErrors, type GetSyncItemResponse, type GetSyncItemResponses, type HasRootFilesData, type HasRootFilesErrors, type HasRootFilesResponse, type HasRootFilesResponses, type IsLicencedData, type IsLicencedErrors, type IsLicencedResponse, type IsLicencedResponses, type Licence, type LicencedProduct, type LicenceInfo, LicenceStatus, type LicenceStatusView, LicenceType, type MethodBase, type RemoveData, type RemoveErrors, type RemoveResponses, type RequestTemporaryLicenceData, type RequestTemporaryLicenceErrors, type RequestTemporaryLicenceResponse, type RequestTemporaryLicenceResponses, type RestorePoint, type RestorePointProcessingOptions, RestorePointStatus, type SaveLicenceData, type SaveLicenceErrors, type SaveLicenceResponse, type SaveLicenceResponses, type ScanData, type ScanErrors, type ScanResponse, type ScanResponses, SyncDependencyFlags, type SyncEntity, type SyncItemPreviewResponse, type TemporaryLicenceResult, type UdiModel, type USyncAction, type USyncActionView, type USyncChange } from './types.gen';
@@ -1,5 +1,5 @@
1
1
  import type { Client, ClientMeta, Options as Options2, RequestResult, TDataShape } from './client';
2
- import type { CheckLegacyData, CheckLegacyErrors, CheckLegacyResponses, CleanData, CleanErrors, CleanResponses, GetActionViewData, GetActionViewErrors, GetActionViewResponses, GetAllData, GetAllErrors, GetAllResponses, GetLicenceData, GetLicenceErrors, GetLicenceResponses, GetLicenceStatusData, GetLicenceStatusErrors, GetLicenceStatusResponses, GetReportData, GetReportErrors, GetReportResponses, GetRestorePointData, GetRestorePointErrors, GetRestorePointResponses, GetSyncItemData, GetSyncItemErrors, GetSyncItemResponses, HasRootFilesData, HasRootFilesErrors, HasRootFilesResponses, IsLicencedData, IsLicencedErrors, IsLicencedResponses, RemoveData, RemoveErrors, RemoveResponses, SaveLicenceData, SaveLicenceErrors, SaveLicenceResponses, ScanData, ScanErrors, ScanResponses } from './types.gen';
2
+ import type { CheckLegacyData, CheckLegacyErrors, CheckLegacyResponses, CleanData, CleanErrors, CleanResponses, GetActionViewData, GetActionViewErrors, GetActionViewResponses, GetAllData, GetAllErrors, GetAllResponses, GetLicenceData, GetLicenceErrors, GetLicenceResponses, GetLicenceStatusData, GetLicenceStatusErrors, GetLicenceStatusResponses, GetPreviewData, GetPreviewErrors, GetPreviewResponses, GetReportData, GetReportErrors, GetReportResponses, GetRestorePointData, GetRestorePointErrors, GetRestorePointResponses, GetSyncItemData, GetSyncItemErrors, GetSyncItemResponses, HasRootFilesData, HasRootFilesErrors, HasRootFilesResponses, IsLicencedData, IsLicencedErrors, IsLicencedResponses, RemoveData, RemoveErrors, RemoveResponses, RequestTemporaryLicenceData, RequestTemporaryLicenceErrors, RequestTemporaryLicenceResponses, SaveLicenceData, SaveLicenceErrors, SaveLicenceResponses, ScanData, ScanErrors, ScanResponses } from './types.gen';
3
3
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options2<TData, ThrowOnError, TResponse> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -14,24 +14,26 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
14
14
  meta?: keyof ClientMeta extends never ? Record<string, unknown> : ClientMeta;
15
15
  };
16
16
  export declare class FilesService {
17
- static hasRootFiles<ThrowOnError extends boolean = false>(options?: Options<HasRootFilesData, ThrowOnError>): RequestResult<HasRootFilesResponses, HasRootFilesErrors, ThrowOnError>;
17
+ static hasRootFiles<ThrowOnError extends boolean = true>(options?: Options<HasRootFilesData, ThrowOnError>): RequestResult<HasRootFilesResponses, HasRootFilesErrors, ThrowOnError>;
18
18
  }
19
19
  export declare class ItemsService {
20
- static getActionView<ThrowOnError extends boolean = false>(options?: Options<GetActionViewData, ThrowOnError>): RequestResult<GetActionViewResponses, GetActionViewErrors, ThrowOnError>;
21
- static getSyncItem<ThrowOnError extends boolean = false>(options?: Options<GetSyncItemData, ThrowOnError>): RequestResult<GetSyncItemResponses, GetSyncItemErrors, ThrowOnError>;
20
+ static getActionView<ThrowOnError extends boolean = true>(options?: Options<GetActionViewData, ThrowOnError>): RequestResult<GetActionViewResponses, GetActionViewErrors, ThrowOnError>;
21
+ static getSyncItem<ThrowOnError extends boolean = true>(options?: Options<GetSyncItemData, ThrowOnError>): RequestResult<GetSyncItemResponses, GetSyncItemErrors, ThrowOnError>;
22
22
  }
23
23
  export declare class LicenceService {
24
- static checkLegacy<ThrowOnError extends boolean = false>(options?: Options<CheckLegacyData, ThrowOnError>): RequestResult<CheckLegacyResponses, CheckLegacyErrors, ThrowOnError>;
25
- static getLicence<ThrowOnError extends boolean = false>(options?: Options<GetLicenceData, ThrowOnError>): RequestResult<GetLicenceResponses, GetLicenceErrors, ThrowOnError>;
26
- static getLicenceStatus<ThrowOnError extends boolean = false>(options?: Options<GetLicenceStatusData, ThrowOnError>): RequestResult<GetLicenceStatusResponses, GetLicenceStatusErrors, ThrowOnError>;
27
- static isLicenced<ThrowOnError extends boolean = false>(options?: Options<IsLicencedData, ThrowOnError>): RequestResult<IsLicencedResponses, IsLicencedErrors, ThrowOnError>;
28
- static saveLicence<ThrowOnError extends boolean = false>(options: Options<SaveLicenceData, ThrowOnError>): RequestResult<SaveLicenceResponses, SaveLicenceErrors, ThrowOnError>;
24
+ static checkLegacy<ThrowOnError extends boolean = true>(options?: Options<CheckLegacyData, ThrowOnError>): RequestResult<CheckLegacyResponses, CheckLegacyErrors, ThrowOnError>;
25
+ static getLicence<ThrowOnError extends boolean = true>(options?: Options<GetLicenceData, ThrowOnError>): RequestResult<GetLicenceResponses, GetLicenceErrors, ThrowOnError>;
26
+ static getLicenceStatus<ThrowOnError extends boolean = true>(options?: Options<GetLicenceStatusData, ThrowOnError>): RequestResult<GetLicenceStatusResponses, GetLicenceStatusErrors, ThrowOnError>;
27
+ static isLicenced<ThrowOnError extends boolean = true>(options?: Options<IsLicencedData, ThrowOnError>): RequestResult<IsLicencedResponses, IsLicencedErrors, ThrowOnError>;
28
+ static requestTemporaryLicence<ThrowOnError extends boolean = true>(options?: Options<RequestTemporaryLicenceData, ThrowOnError>): RequestResult<RequestTemporaryLicenceResponses, RequestTemporaryLicenceErrors, ThrowOnError>;
29
+ static saveLicence<ThrowOnError extends boolean = true>(options: Options<SaveLicenceData, ThrowOnError>): RequestResult<SaveLicenceResponses, SaveLicenceErrors, ThrowOnError>;
29
30
  }
30
31
  export declare class RestoreService {
31
- static clean<ThrowOnError extends boolean = false>(options?: Options<CleanData, ThrowOnError>): RequestResult<CleanResponses, CleanErrors, ThrowOnError>;
32
- static getRestorePoint<ThrowOnError extends boolean = false>(options?: Options<GetRestorePointData, ThrowOnError>): RequestResult<GetRestorePointResponses, GetRestorePointErrors, ThrowOnError>;
33
- static getAll<ThrowOnError extends boolean = false>(options?: Options<GetAllData, ThrowOnError>): RequestResult<GetAllResponses, GetAllErrors, ThrowOnError>;
34
- static getReport<ThrowOnError extends boolean = false>(options?: Options<GetReportData, ThrowOnError>): RequestResult<GetReportResponses, GetReportErrors, ThrowOnError>;
35
- static remove<ThrowOnError extends boolean = false>(options?: Options<RemoveData, ThrowOnError>): RequestResult<RemoveResponses, RemoveErrors, ThrowOnError>;
36
- static scan<ThrowOnError extends boolean = false>(options?: Options<ScanData, ThrowOnError>): RequestResult<ScanResponses, ScanErrors, ThrowOnError>;
32
+ static clean<ThrowOnError extends boolean = true>(options?: Options<CleanData, ThrowOnError>): RequestResult<CleanResponses, CleanErrors, ThrowOnError>;
33
+ static getRestorePoint<ThrowOnError extends boolean = true>(options?: Options<GetRestorePointData, ThrowOnError>): RequestResult<GetRestorePointResponses, GetRestorePointErrors, ThrowOnError>;
34
+ static getAll<ThrowOnError extends boolean = true>(options?: Options<GetAllData, ThrowOnError>): RequestResult<GetAllResponses, GetAllErrors, ThrowOnError>;
35
+ static getReport<ThrowOnError extends boolean = true>(options?: Options<GetReportData, ThrowOnError>): RequestResult<GetReportResponses, GetReportErrors, ThrowOnError>;
36
+ static getPreview<ThrowOnError extends boolean = true>(options?: Options<GetPreviewData, ThrowOnError>): RequestResult<GetPreviewResponses, GetPreviewErrors, ThrowOnError>;
37
+ static remove<ThrowOnError extends boolean = true>(options?: Options<RemoveData, ThrowOnError>): RequestResult<RemoveResponses, RemoveErrors, ThrowOnError>;
38
+ static scan<ThrowOnError extends boolean = true>(options?: Options<ScanData, ThrowOnError>): RequestResult<ScanResponses, ScanErrors, ThrowOnError>;
37
39
  }
@@ -54,6 +54,13 @@ export class LicenceService {
54
54
  ...options
55
55
  });
56
56
  }
57
+ static requestTemporaryLicence(options) {
58
+ return (options?.client ?? client).post({
59
+ security: [{ scheme: 'bearer', type: 'http' }],
60
+ url: '/umbraco/usync/api/v1/Complete/RequestTemporaryLicence',
61
+ ...options
62
+ });
63
+ }
57
64
  static saveLicence(options) {
58
65
  return (options.client ?? client).post({
59
66
  security: [{ scheme: 'bearer', type: 'http' }],
@@ -95,6 +102,13 @@ export class RestoreService {
95
102
  ...options
96
103
  });
97
104
  }
105
+ static getPreview(options) {
106
+ return (options?.client ?? client).get({
107
+ security: [{ scheme: 'bearer', type: 'http' }],
108
+ url: '/umbraco/usync/api/v1/Complete/Preview',
109
+ ...options
110
+ });
111
+ }
98
112
  static remove(options) {
99
113
  return (options?.client ?? client).get({
100
114
  security: [{ scheme: 'bearer', type: 'http' }],
@@ -48,6 +48,7 @@ export type Licence = {
48
48
  autoRenews: boolean;
49
49
  products: null | Array<LicencedProduct>;
50
50
  message?: null | string;
51
+ isOlderVersion: boolean;
51
52
  checkedDomain?: null | string;
52
53
  };
53
54
  export type LicencedProduct = {
@@ -83,6 +84,7 @@ export type LicenceStatusView = {
83
84
  checkedDomain?: null | string;
84
85
  hasExpiry: boolean;
85
86
  autoRenews: boolean;
87
+ canRequestTemporaryLicence: boolean;
86
88
  };
87
89
  export declare enum LicenceType {
88
90
  NONE = "None",
@@ -129,6 +131,7 @@ export type RestorePointProcessingOptions = {
129
131
  removeOrphans: boolean;
130
132
  includeFiles: boolean;
131
133
  includeFileHash: boolean;
134
+ fileHashEntityTypes: Array<string>;
132
135
  includeContent: boolean;
133
136
  includeSystemFileHash: boolean;
134
137
  includeSystemFiles: boolean;
@@ -143,6 +146,7 @@ export type RestorePointProcessingOptions = {
143
146
  };
144
147
  attributes?: {
145
148
  orphanTypes: Array<string>;
149
+ allowRootClean: boolean;
146
150
  folders: Array<string>;
147
151
  systemFolders: Array<string>;
148
152
  systemExclusions: Array<string>;
@@ -183,6 +187,28 @@ export type SyncEntity = {
183
187
  udi: UdiModel;
184
188
  entityType: null | string;
185
189
  };
190
+ export type SyncItemPreviewResponse = {
191
+ key: string;
192
+ handler: string;
193
+ itemType: string;
194
+ entityType: string;
195
+ isDelete: boolean;
196
+ success: boolean;
197
+ message?: null | string;
198
+ preview?: unknown;
199
+ details: Array<USyncChange>;
200
+ };
201
+ export type TemporaryLicenceResult = {
202
+ success: boolean;
203
+ status: string;
204
+ message: string;
205
+ group: string;
206
+ key: string;
207
+ domains: string;
208
+ expires: string;
209
+ saved: boolean;
210
+ licenceInConfig: boolean;
211
+ };
186
212
  export type UdiModel = {
187
213
  uriValue: null | string;
188
214
  entityType: null | string;
@@ -373,6 +399,25 @@ export type IsLicencedResponses = {
373
399
  200: boolean;
374
400
  };
375
401
  export type IsLicencedResponse = IsLicencedResponses[keyof IsLicencedResponses];
402
+ export type RequestTemporaryLicenceData = {
403
+ body?: never;
404
+ path?: never;
405
+ query?: never;
406
+ url: '/umbraco/usync/api/v1/Complete/RequestTemporaryLicence';
407
+ };
408
+ export type RequestTemporaryLicenceErrors = {
409
+ /**
410
+ * The resource is protected and requires an authentication token
411
+ */
412
+ 401: unknown;
413
+ };
414
+ export type RequestTemporaryLicenceResponses = {
415
+ /**
416
+ * OK
417
+ */
418
+ 200: TemporaryLicenceResult;
419
+ };
420
+ export type RequestTemporaryLicenceResponse = RequestTemporaryLicenceResponses[keyof RequestTemporaryLicenceResponses];
376
421
  export type SaveLicenceData = {
377
422
  body: LicenceInfo;
378
423
  path?: never;
@@ -477,6 +522,33 @@ export type GetReportResponses = {
477
522
  200: Array<USyncAction>;
478
523
  };
479
524
  export type GetReportResponse = GetReportResponses[keyof GetReportResponses];
525
+ export type GetPreviewData = {
526
+ body?: never;
527
+ path?: never;
528
+ query?: {
529
+ id?: string;
530
+ handler?: string;
531
+ key?: string;
532
+ };
533
+ url: '/umbraco/usync/api/v1/Complete/Preview';
534
+ };
535
+ export type GetPreviewErrors = {
536
+ /**
537
+ * The resource is protected and requires an authentication token
538
+ */
539
+ 401: unknown;
540
+ /**
541
+ * Not Found
542
+ */
543
+ 404: unknown;
544
+ };
545
+ export type GetPreviewResponses = {
546
+ /**
547
+ * OK
548
+ */
549
+ 200: SyncItemPreviewResponse;
550
+ };
551
+ export type GetPreviewResponse = GetPreviewResponses[keyof GetPreviewResponses];
480
552
  export type RemoveData = {
481
553
  body?: never;
482
554
  path?: never;
@@ -9,15 +9,10 @@ export declare class uSyncBackgroundPipelineRepository extends UmbControllerBase
9
9
  * step. Errors come back without a notification so the caller can explain them.
10
10
  * @param id the pipeline id (for a queued item, its key)
11
11
  */
12
- cancelPipeline(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<({
12
+ cancelPipeline(id: string): Promise<import("@umbraco-cms/backoffice/resources").UmbApiResponse<{
13
13
  data: unknown;
14
- error: undefined;
15
- } | {
16
- data: undefined;
17
- error: unknown;
18
- }) & {
19
- request?: Request;
20
- response?: Response;
14
+ request: Request;
15
+ response: Response;
21
16
  }>>;
22
17
  }
23
18
  export default uSyncBackgroundPipelineRepository;
@@ -30,10 +30,10 @@ let uSyncBackgroundPendingListElement = class uSyncBackgroundPendingListElement
30
30
  renderTable() {
31
31
  return !this.queue || this.queue.items.length === 0
32
32
  ? html `<div class="empty">No items in the queue</div>`
33
- : html `<usync-queue-table
34
- .items=${this.queue.items}
35
- .tableColumns=${this._tableColumns}
36
- @process-queue-item=${this._onProcessQueueItem}
33
+ : html `<usync-queue-table
34
+ .items=${this.queue.items}
35
+ .tableColumns=${this._tableColumns}
36
+ @process-queue-item=${this._onProcessQueueItem}
37
37
  @cancel-queue-item=${this._onCancelQueueItem}></usync-queue-table>`;
38
38
  }
39
39
  async _onProcessQueueItem(e) {
@@ -52,12 +52,12 @@ _uSyncBackgroundPendingListElement_instances = new WeakSet();
52
52
  _uSyncBackgroundPendingListElement_changed = function _uSyncBackgroundPendingListElement_changed() {
53
53
  this.dispatchEvent(new CustomEvent(USYNC_BACKGROUND_CHANGED_EVENT, { bubbles: true, composed: true }));
54
54
  };
55
- uSyncBackgroundPendingListElement.styles = css `
56
- .empty {
57
- display: flex;
58
- justify-content: center;
59
- padding: 20px;
60
- }
55
+ uSyncBackgroundPendingListElement.styles = css `
56
+ .empty {
57
+ display: flex;
58
+ justify-content: center;
59
+ padding: 20px;
60
+ }
61
61
  `;
62
62
  __decorate([
63
63
  state()
@@ -27,22 +27,22 @@ let uSyncPipelinesTableElement = class uSyncPipelinesTableElement extends JumooP
27
27
  _uSyncPipelinesTableElement_instances.add(this);
28
28
  }
29
29
  renderActions(pipeline) {
30
- return html `<uui-button-group>
31
- <uui-button
32
- label=${this.localize.term('uSyncBackground_view')}
33
- color="positive"
34
- look="outline"
35
- @click=${() => __classPrivateFieldGet(this, _uSyncPipelinesTableElement_instances, "m", _uSyncPipelinesTableElement_dispatch).call(this, 'view-pipeline', pipeline)}></uui-button>
36
- ${when(!finishedStatuses.includes(pipeline.state.status), () => html `<uui-button
37
- label=${this.localize.term('uSyncBackground_cancel')}
38
- color="warning"
39
- look="outline"
40
- @click=${() => __classPrivateFieldGet(this, _uSyncPipelinesTableElement_instances, "m", _uSyncPipelinesTableElement_dispatch).call(this, 'cancel-pipeline', pipeline)}></uui-button>`)}
41
- ${when(!this.hideDelete, () => html `<uui-button
42
- label=${this.localize.term('uSyncBackground_delete')}
43
- color="danger"
44
- look="outline"
45
- @click=${() => __classPrivateFieldGet(this, _uSyncPipelinesTableElement_instances, "m", _uSyncPipelinesTableElement_dispatch).call(this, 'delete-pipeline', pipeline)}></uui-button>`)}
30
+ return html `<uui-button-group>
31
+ <uui-button
32
+ label=${this.localize.term('uSyncBackground_view')}
33
+ color="positive"
34
+ look="outline"
35
+ @click=${() => __classPrivateFieldGet(this, _uSyncPipelinesTableElement_instances, "m", _uSyncPipelinesTableElement_dispatch).call(this, 'view-pipeline', pipeline)}></uui-button>
36
+ ${when(!finishedStatuses.includes(pipeline.state.status), () => html `<uui-button
37
+ label=${this.localize.term('uSyncBackground_cancel')}
38
+ color="warning"
39
+ look="outline"
40
+ @click=${() => __classPrivateFieldGet(this, _uSyncPipelinesTableElement_instances, "m", _uSyncPipelinesTableElement_dispatch).call(this, 'cancel-pipeline', pipeline)}></uui-button>`)}
41
+ ${when(!this.hideDelete, () => html `<uui-button
42
+ label=${this.localize.term('uSyncBackground_delete')}
43
+ color="danger"
44
+ look="outline"
45
+ @click=${() => __classPrivateFieldGet(this, _uSyncPipelinesTableElement_instances, "m", _uSyncPipelinesTableElement_dispatch).call(this, 'delete-pipeline', pipeline)}></uui-button>`)}
46
46
  </uui-button-group>`;
47
47
  }
48
48
  };
@@ -49,12 +49,12 @@ let uSyncProcessListElement = class uSyncProcessListElement extends JumooProcess
49
49
  renderListPipelines() {
50
50
  return !this.pipelines || this.pipelines.length === 0
51
51
  ? html `<div class="emtpy">Nothing with status ${this.status}</div>`
52
- : html `<usync-pipelines-table
53
- .pipelines=${this.pipelines}
54
- .hideDelete=${this.hideDelete}
55
- .tableColumns=${this.tableColumns}
56
- @view-pipeline=${this.onViewPipeline}
57
- @cancel-pipeline=${this.onCancelPipeline}
52
+ : html `<usync-pipelines-table
53
+ .pipelines=${this.pipelines}
54
+ .hideDelete=${this.hideDelete}
55
+ .tableColumns=${this.tableColumns}
56
+ @view-pipeline=${this.onViewPipeline}
57
+ @cancel-pipeline=${this.onCancelPipeline}
58
58
  @delete-pipeline=${this.onDeletePipeline}></usync-pipelines-table>`;
59
59
  }
60
60
  };
@@ -22,17 +22,17 @@ let uSyncQueueTableElement = class uSyncQueueTableElement extends JumooQueueTabl
22
22
  _uSyncQueueTableElement_instances.add(this);
23
23
  }
24
24
  renderActions(item) {
25
- return html `<uui-button-group>
26
- <uui-button
27
- label=${this.localize.term('uSyncBackground_process')}
28
- color="positive"
29
- look="outline"
30
- @click=${() => __classPrivateFieldGet(this, _uSyncQueueTableElement_instances, "m", _uSyncQueueTableElement_dispatch).call(this, 'process-queue-item', item)}></uui-button>
31
- <uui-button
32
- label=${this.localize.term('uSyncBackground_cancel')}
33
- color="warning"
34
- look="outline"
35
- @click=${() => __classPrivateFieldGet(this, _uSyncQueueTableElement_instances, "m", _uSyncQueueTableElement_dispatch).call(this, 'cancel-queue-item', item)}></uui-button>
25
+ return html `<uui-button-group>
26
+ <uui-button
27
+ label=${this.localize.term('uSyncBackground_process')}
28
+ color="positive"
29
+ look="outline"
30
+ @click=${() => __classPrivateFieldGet(this, _uSyncQueueTableElement_instances, "m", _uSyncQueueTableElement_dispatch).call(this, 'process-queue-item', item)}></uui-button>
31
+ <uui-button
32
+ label=${this.localize.term('uSyncBackground_cancel')}
33
+ color="warning"
34
+ look="outline"
35
+ @click=${() => __classPrivateFieldGet(this, _uSyncQueueTableElement_instances, "m", _uSyncQueueTableElement_dispatch).call(this, 'cancel-queue-item', item)}></uui-button>
36
36
  </uui-button-group>`;
37
37
  }
38
38
  };
@@ -37,29 +37,29 @@ let uSyncBackgroundWorkspaceElement = class uSyncBackgroundWorkspaceElement exte
37
37
  });
38
38
  }
39
39
  render() {
40
- return html `<umb-body-layout
41
- ><div class="layout">
42
- <uui-box .headline=${this.localize.term('uSyncBackground_title')}>
43
- ${this.localize.term('uSyncBackground_intro')}
44
- </uui-box>
45
-
46
- <usync-process-list
47
- .defaultStatus=${PipelineStatus.WAITING}
48
- .headline=${this.localize.term('uSyncBackground_processes')}></usync-process-list>
49
-
50
- <usync-pending-list
51
- .headline=${this.localize.term('uSyncBackground_queue')}></usync-pending-list>
52
- </div>
40
+ return html `<umb-body-layout
41
+ ><div class="layout">
42
+ <uui-box .headline=${this.localize.term('uSyncBackground_title')}>
43
+ ${this.localize.term('uSyncBackground_intro')}
44
+ </uui-box>
45
+
46
+ <usync-process-list
47
+ .defaultStatus=${PipelineStatus.WAITING}
48
+ .headline=${this.localize.term('uSyncBackground_processes')}></usync-process-list>
49
+
50
+ <usync-pending-list
51
+ .headline=${this.localize.term('uSyncBackground_queue')}></usync-pending-list>
52
+ </div>
53
53
  </umb-body-layout>`;
54
54
  }
55
55
  };
56
56
  _uSyncBackgroundWorkspaceElement_pipelinesContext = new WeakMap();
57
- uSyncBackgroundWorkspaceElement.styles = css `
58
- .layout {
59
- display: flex;
60
- flex-direction: column;
61
- gap: var(--uui-size-space-4);
62
- }
57
+ uSyncBackgroundWorkspaceElement.styles = css `
58
+ .layout {
59
+ display: flex;
60
+ flex-direction: column;
61
+ gap: var(--uui-size-space-4);
62
+ }
63
63
  `;
64
64
  __decorate([
65
65
  query('usync-process-list')
@@ -35,21 +35,21 @@ let uSyncResportSummaryView = class uSyncResportSummaryView extends UmbLitElemen
35
35
  }
36
36
  render() {
37
37
  const changes = this.countChanges();
38
- return html ` ${this.renderChangeSummary(changes)}
39
- <uui-box .headline=${this.headline}>
40
- <div slot="header-actions">${this.renderToggle()}</div>
41
- ${when(this.showAll || changes > 0, () => this.renderTable())}
38
+ return html ` ${this.renderChangeSummary(changes)}
39
+ <uui-box .headline=${this.headline}>
40
+ <div slot="header-actions">${this.renderToggle()}</div>
41
+ ${when(this.showAll || changes > 0, () => this.renderTable())}
42
42
  </uui-box>`;
43
43
  }
44
44
  renderToggle() {
45
- return html `
46
- <uui-toggle
47
- .label=${this.localize.term('uSync_showAll')}
48
- labelPosition="left"
49
- ?checked=${this.showAll}
45
+ return html `
46
+ <uui-toggle
47
+ .label=${this.localize.term('uSync_showAll')}
48
+ labelPosition="left"
49
+ ?checked=${this.showAll}
50
50
  @change=${() => {
51
51
  this.showAll = !this.showAll;
52
- }}></uui-toggle>
52
+ }}></uui-toggle>
53
53
  `;
54
54
  }
55
55
  renderChangeSummary(changes) {
@@ -59,49 +59,49 @@ let uSyncResportSummaryView = class uSyncResportSummaryView extends UmbLitElemen
59
59
  }
60
60
  renderReportSummary(changes) {
61
61
  return changes > 0
62
- ? html `<div class="change-msg">
63
- <h4>
62
+ ? html `<div class="change-msg">
63
+ <h4>
64
64
  ${this.localize.term('uSyncReport_pendingChanges', [
65
65
  changes,
66
66
  this.results?.length ?? 0,
67
- ])}
68
- </h4>
67
+ ])}
68
+ </h4>
69
69
  </div>`
70
- : html `<div class="change-msg positive">
71
- <h4>${this.localize.term('uSyncReport_noChanges')}</h4>
72
- <p>${this.localize.term('uSyncReport_noChangesDescription')}</p>
70
+ : html `<div class="change-msg positive">
71
+ <h4>${this.localize.term('uSyncReport_noChanges')}</h4>
72
+ <p>${this.localize.term('uSyncReport_noChangesDescription')}</p>
73
73
  </div>`;
74
74
  }
75
75
  renderResultSummary(changes) {
76
76
  return changes > 0
77
- ? html `<div class="change-msg">
78
- <h4>
77
+ ? html `<div class="change-msg">
78
+ <h4>
79
79
  ${this.localize.term('uSyncReport_resultChanges', [
80
80
  changes,
81
81
  this.results?.length ?? 0,
82
- ])}
83
- </h4>
82
+ ])}
83
+ </h4>
84
84
  </div>`
85
- : html `<div class="change-msg positive">
86
- <h4>${this.localize.term('uSyncReport_noChanges')}</h4>
87
- <p>${this.localize.term('uSyncReport_resultNoChange')}</p>
85
+ : html `<div class="change-msg positive">
86
+ <h4>${this.localize.term('uSyncReport_noChanges')}</h4>
87
+ <p>${this.localize.term('uSyncReport_resultNoChange')}</p>
88
88
  </div>`;
89
89
  }
90
90
  renderTable() {
91
- return html `
92
- <uui-table> ${this.renderTableHeader()} ${this.renderRows()} </uui-table>
91
+ return html `
92
+ <uui-table> ${this.renderTableHeader()} ${this.renderRows()} </uui-table>
93
93
  `;
94
94
  }
95
95
  renderTableHeader() {
96
- return html `
97
- <uui-table-head>
98
- <uui-table-head-cell class="icon-cell" .noPadding=${true}>
99
- <!-- <umb-icon name="icon-checkbox-dotted"></umb-icon> -->
100
- </uui-table-head-cell>
101
- <uui-table-head-cell style="--uui-table-cell-padding: var(--uui-size-space-2);">
102
- <umb-localize key="uSync_changeName">Name</umb-localize>
103
- </uui-table-head-cell>
104
- </uui-table-head>
96
+ return html `
97
+ <uui-table-head>
98
+ <uui-table-head-cell class="icon-cell" .noPadding=${true}>
99
+ <!-- <umb-icon name="icon-checkbox-dotted"></umb-icon> -->
100
+ </uui-table-head-cell>
101
+ <uui-table-head-cell style="--uui-table-cell-padding: var(--uui-size-space-2);">
102
+ <umb-localize key="uSync_changeName">Name</umb-localize>
103
+ </uui-table-head-cell>
104
+ </uui-table-head>
105
105
  `;
106
106
  }
107
107
  renderRows() {
@@ -113,23 +113,23 @@ let uSyncResportSummaryView = class uSyncResportSummaryView extends UmbLitElemen
113
113
  : result.success
114
114
  ? 'icon-check color-green'
115
115
  : 'icon-wrong color-red';
116
- return html `
117
- <uui-table-row
118
- class=${classMap({ changerow: result.change != ChangeType.NO_CHANGE })}>
119
- <uui-table-cell class="icon-cell" .noPadding=${true}>
120
- <umb-icon .name=${icon}></umb-icon>
121
- </uui-table-cell>
122
- <uui-table-cell
123
- @click=${() => __classPrivateFieldGet(this, _uSyncResportSummaryView_instances, "m", _uSyncResportSummaryView_showDetail).call(this, result)}
124
- .clipText=${true}
125
- style="--uui-table-cell-padding: var(--uui-size-space-2);">
126
- <div>${result.name}</div>
127
- <div class="item-detail">
128
- <div>${result.itemType}</div>
129
- <div>${result.change}</div>
130
- </div>
131
- </uui-table-cell>
132
- </uui-table-row>
116
+ return html `
117
+ <uui-table-row
118
+ class=${classMap({ changerow: result.change != ChangeType.NO_CHANGE })}>
119
+ <uui-table-cell class="icon-cell" .noPadding=${true}>
120
+ <umb-icon .name=${icon}></umb-icon>
121
+ </uui-table-cell>
122
+ <uui-table-cell
123
+ @click=${() => __classPrivateFieldGet(this, _uSyncResportSummaryView_instances, "m", _uSyncResportSummaryView_showDetail).call(this, result)}
124
+ .clipText=${true}
125
+ style="--uui-table-cell-padding: var(--uui-size-space-2);">
126
+ <div>${result.name}</div>
127
+ <div class="item-detail">
128
+ <div>${result.itemType}</div>
129
+ <div>${result.change}</div>
130
+ </div>
131
+ </uui-table-cell>
132
+ </uui-table-row>
133
133
  `;
134
134
  });
135
135
  return html `${rowsHtml}`;
@@ -141,44 +141,44 @@ _uSyncResportSummaryView_showDetail = async function _uSyncResportSummaryView_sh
141
141
  return;
142
142
  // TODO . Open the shared details modal
143
143
  };
144
- uSyncResportSummaryView.styles = css `
145
- .changerow {
146
- cursor: pointer;
147
- }
148
-
149
- .icon-cell {
150
- width: var(--uui-size-8);
151
- }
152
-
153
- .item-detail {
154
- display: flex;
155
- justify-content: space-between;
156
- font-size: smaller;
157
- color: var(--uui-color-disabled-contrast);
158
- }
159
-
160
- .change-msg {
161
- padding: var(--uui-size-3);
162
- margin-bottom: var(--uui-size-3);
163
- }
164
-
165
- .change-msg.positive {
166
- background-color: var(--uui-color-positive);
167
- color: #fff;
168
- box-shadow: var(--uui-shadow-depth-1);
169
- }
170
-
171
- .change-msg > * {
172
- margin: var(--uui-size-4) 0;
173
- }
174
-
175
- uui-box {
176
- margin-bottom: var(--uui-size-3);
177
- }
178
-
179
- uui-table-row:hover {
180
- background-color: var(--uui-color-disabled);
181
- }
144
+ uSyncResportSummaryView.styles = css `
145
+ .changerow {
146
+ cursor: pointer;
147
+ }
148
+
149
+ .icon-cell {
150
+ width: var(--uui-size-8);
151
+ }
152
+
153
+ .item-detail {
154
+ display: flex;
155
+ justify-content: space-between;
156
+ font-size: smaller;
157
+ color: var(--uui-color-disabled-contrast);
158
+ }
159
+
160
+ .change-msg {
161
+ padding: var(--uui-size-3);
162
+ margin-bottom: var(--uui-size-3);
163
+ }
164
+
165
+ .change-msg.positive {
166
+ background-color: var(--uui-color-positive);
167
+ color: #fff;
168
+ box-shadow: var(--uui-shadow-depth-1);
169
+ }
170
+
171
+ .change-msg > * {
172
+ margin: var(--uui-size-4) 0;
173
+ }
174
+
175
+ uui-box {
176
+ margin-bottom: var(--uui-size-3);
177
+ }
178
+
179
+ uui-table-row:hover {
180
+ background-color: var(--uui-color-disabled);
181
+ }
182
182
  `;
183
183
  __decorate([
184
184
  state()