@jumoo/usync-expansions 17.6.0 → 17.6.1-prerelease.41
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.
- package/dist/api/client/client.gen.js +104 -123
- package/dist/api/client/index.d.ts +2 -0
- package/dist/api/client/types.gen.d.ts +6 -3
- package/dist/api/client/utils.gen.d.ts +8 -4
- package/dist/api/client/utils.gen.js +3 -3
- package/dist/api/client.gen.d.ts +2 -2
- package/dist/api/client.gen.js +1 -2
- package/dist/api/core/auth.gen.d.ts +7 -0
- package/dist/api/core/params.gen.d.ts +2 -2
- package/dist/api/core/params.gen.js +23 -14
- package/dist/api/core/queryKeySerializer.gen.d.ts +1 -1
- package/dist/api/core/serverSentEvents.gen.d.ts +1 -1
- package/dist/api/core/serverSentEvents.gen.js +3 -4
- package/dist/api/core/types.gen.d.ts +5 -0
- package/dist/api/index.d.ts +1 -1
- package/dist/api/sdk.gen.d.ts +18 -17
- package/dist/api/sdk.gen.js +7 -0
- package/dist/api/types.gen.d.ts +40 -0
- package/dist/background/components/pending-list.element.js +10 -10
- package/dist/background/components/pipelines-table.element.js +16 -16
- package/dist/background/components/process-list.element.js +6 -6
- package/dist/background/components/queue-table.element.js +11 -11
- package/dist/background/workspace/background-workspace-element.js +19 -19
- package/dist/components/report-summary-view.js +90 -90
- package/dist/components/usync-property-layout.js +93 -93
- package/dist/index.js +9 -1
- package/dist/lang/en.d.ts +1 -0
- package/dist/lang/en.js +1 -0
- package/dist/licence/components/licence-notice.js +7 -7
- package/dist/licence/components/licence-status.view.js +13 -13
- package/dist/licence/components/styles.js +39 -39
- package/dist/licence/lang/en.js +1 -1
- package/dist/licence/licence.element.js +124 -124
- package/dist/restore/components/restore-point-table.element.js +21 -21
- package/dist/restore/lang/en.js +11 -11
- package/dist/restore/restore.repository.d.ts +5 -0
- package/dist/restore/restore.repository.js +7 -0
- package/dist/restore/steps/restore-create-complete.js +9 -9
- package/dist/restore/steps/restore-create-element.js +31 -31
- package/dist/restore/steps/restore-report-config-element.js +44 -44
- package/dist/restore/steps/restore-report-element.d.ts +1 -0
- package/dist/restore/steps/restore-report-element.js +29 -1
- package/dist/restore/workspace/restore.workspace-view.element.js +42 -42
- package/dist/restore/workspace/restore.workspace.element.js +25 -25
- package/package.json +55 -54
- package/dist/hey-api.d.ts +0 -11
- package/dist/hey-api.js +0 -14
package/dist/api/sdk.gen.js
CHANGED
|
@@ -95,6 +95,13 @@ export class RestoreService {
|
|
|
95
95
|
...options
|
|
96
96
|
});
|
|
97
97
|
}
|
|
98
|
+
static getPreview(options) {
|
|
99
|
+
return (options?.client ?? client).get({
|
|
100
|
+
security: [{ scheme: 'bearer', type: 'http' }],
|
|
101
|
+
url: '/umbraco/usync/api/v1/Complete/Preview',
|
|
102
|
+
...options
|
|
103
|
+
});
|
|
104
|
+
}
|
|
98
105
|
static remove(options) {
|
|
99
106
|
return (options?.client ?? client).get({
|
|
100
107
|
security: [{ scheme: 'bearer', type: 'http' }],
|
package/dist/api/types.gen.d.ts
CHANGED
|
@@ -568,8 +568,20 @@ export type SyncItem = {
|
|
|
568
568
|
flags: DependencyFlags;
|
|
569
569
|
change: ChangeType;
|
|
570
570
|
};
|
|
571
|
+
export type SyncItemPreviewResponse = {
|
|
572
|
+
key: string;
|
|
573
|
+
handler: string;
|
|
574
|
+
itemType: string;
|
|
575
|
+
entityType: string;
|
|
576
|
+
isDelete: boolean;
|
|
577
|
+
success: boolean;
|
|
578
|
+
message?: string | null;
|
|
579
|
+
preview?: unknown;
|
|
580
|
+
details: Array<USyncChange>;
|
|
581
|
+
};
|
|
571
582
|
export type SyncPackAttributes = {
|
|
572
583
|
orphanTypes: Array<string>;
|
|
584
|
+
allowRootClean: boolean;
|
|
573
585
|
folders: Array<string>;
|
|
574
586
|
systemFolders: Array<string>;
|
|
575
587
|
systemExclusions: Array<string>;
|
|
@@ -580,6 +592,7 @@ export type SyncPackOptions = {
|
|
|
580
592
|
removeOrphans: boolean;
|
|
581
593
|
includeFiles: boolean;
|
|
582
594
|
includeFileHash: boolean;
|
|
595
|
+
fileHashEntityTypes: Array<string>;
|
|
583
596
|
includeContent: boolean;
|
|
584
597
|
includeSystemFileHash: boolean;
|
|
585
598
|
includeSystemFiles: boolean;
|
|
@@ -1208,6 +1221,33 @@ export type GetReportResponses = {
|
|
|
1208
1221
|
200: Array<USyncAction>;
|
|
1209
1222
|
};
|
|
1210
1223
|
export type GetReportResponse = GetReportResponses[keyof GetReportResponses];
|
|
1224
|
+
export type GetPreviewData = {
|
|
1225
|
+
body?: never;
|
|
1226
|
+
path?: never;
|
|
1227
|
+
query?: {
|
|
1228
|
+
id?: string;
|
|
1229
|
+
handler?: string;
|
|
1230
|
+
key?: string;
|
|
1231
|
+
};
|
|
1232
|
+
url: '/umbraco/usync/api/v1/Complete/Preview';
|
|
1233
|
+
};
|
|
1234
|
+
export type GetPreviewErrors = {
|
|
1235
|
+
/**
|
|
1236
|
+
* The resource is protected and requires an authentication token
|
|
1237
|
+
*/
|
|
1238
|
+
401: unknown;
|
|
1239
|
+
/**
|
|
1240
|
+
* Not Found
|
|
1241
|
+
*/
|
|
1242
|
+
404: unknown;
|
|
1243
|
+
};
|
|
1244
|
+
export type GetPreviewResponses = {
|
|
1245
|
+
/**
|
|
1246
|
+
* OK
|
|
1247
|
+
*/
|
|
1248
|
+
200: SyncItemPreviewResponse;
|
|
1249
|
+
};
|
|
1250
|
+
export type GetPreviewResponse = GetPreviewResponses[keyof GetPreviewResponses];
|
|
1211
1251
|
export type RemoveData = {
|
|
1212
1252
|
body?: never;
|
|
1213
1253
|
path?: never;
|
|
@@ -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
|
};
|
|
@@ -34,29 +34,29 @@ let uSyncBackgroundWorkspaceElement = class uSyncBackgroundWorkspaceElement exte
|
|
|
34
34
|
});
|
|
35
35
|
}
|
|
36
36
|
render() {
|
|
37
|
-
return html `<umb-body-layout
|
|
38
|
-
><div class="layout">
|
|
39
|
-
<uui-box .headline=${this.localize.term('uSyncBackground_title')}>
|
|
40
|
-
${this.localize.term('uSyncBackground_intro')}
|
|
41
|
-
</uui-box>
|
|
42
|
-
|
|
43
|
-
<usync-process-list
|
|
44
|
-
.defaultStatus=${PipelineStatus.WAITING}
|
|
45
|
-
.headline=${this.localize.term('uSyncBackground_processes')}></usync-process-list>
|
|
46
|
-
|
|
47
|
-
<usync-pending-list
|
|
48
|
-
.headline=${this.localize.term('uSyncBackground_queue')}></usync-pending-list>
|
|
49
|
-
</div>
|
|
37
|
+
return html `<umb-body-layout
|
|
38
|
+
><div class="layout">
|
|
39
|
+
<uui-box .headline=${this.localize.term('uSyncBackground_title')}>
|
|
40
|
+
${this.localize.term('uSyncBackground_intro')}
|
|
41
|
+
</uui-box>
|
|
42
|
+
|
|
43
|
+
<usync-process-list
|
|
44
|
+
.defaultStatus=${PipelineStatus.WAITING}
|
|
45
|
+
.headline=${this.localize.term('uSyncBackground_processes')}></usync-process-list>
|
|
46
|
+
|
|
47
|
+
<usync-pending-list
|
|
48
|
+
.headline=${this.localize.term('uSyncBackground_queue')}></usync-pending-list>
|
|
49
|
+
</div>
|
|
50
50
|
</umb-body-layout>`;
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
_uSyncBackgroundWorkspaceElement_pipelinesContext = new WeakMap();
|
|
54
|
-
uSyncBackgroundWorkspaceElement.styles = css `
|
|
55
|
-
.layout {
|
|
56
|
-
display: flex;
|
|
57
|
-
flex-direction: column;
|
|
58
|
-
gap: var(--uui-size-space-4);
|
|
59
|
-
}
|
|
54
|
+
uSyncBackgroundWorkspaceElement.styles = css `
|
|
55
|
+
.layout {
|
|
56
|
+
display: flex;
|
|
57
|
+
flex-direction: column;
|
|
58
|
+
gap: var(--uui-size-space-4);
|
|
59
|
+
}
|
|
60
60
|
`;
|
|
61
61
|
__decorate([
|
|
62
62
|
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()
|