@jumoo/usync 17.5.0 → 17.5.2-prerelease.15
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/LICENCE +372 -372
- package/README.md +10 -10
- package/dist/api/index.d.ts +1 -1
- package/dist/api/index.js +1 -1
- package/dist/api/sdk.gen.d.ts +2 -1
- package/dist/api/sdk.gen.js +7 -0
- package/dist/api/types.gen.d.ts +361 -0
- package/dist/api/types.gen.js +13 -0
- package/dist/components/index.d.ts +3 -0
- package/dist/components/index.js +3 -0
- package/dist/components/usync-action-box.js +61 -61
- package/dist/components/usync-change-detail.js +409 -409
- package/dist/components/usync-change-view.js +49 -49
- package/dist/components/usync-content-preview.d.ts +27 -0
- package/dist/components/usync-content-preview.js +540 -0
- package/dist/components/usync-content-type-preview.d.ts +25 -0
- package/dist/components/usync-content-type-preview.js +548 -0
- package/dist/components/usync-data-type-preview.d.ts +21 -0
- package/dist/components/usync-data-type-preview.js +293 -0
- package/dist/components/usync-progress-box.js +106 -106
- package/dist/components/usync-result-row.js +61 -61
- package/dist/components/usync-results-group-view.js +55 -55
- package/dist/components/usync-results-view.js +76 -68
- package/dist/components/usync-sync-file-info-view.js +10 -10
- package/dist/dialogs/details-modal-element.d.ts +12 -1
- package/dist/dialogs/details-modal-element.js +172 -42
- package/dist/dialogs/details-modal-token.d.ts +10 -1
- package/dist/dialogs/error-modal-element.js +21 -21
- package/dist/dialogs/legacy-modal-element.js +22 -22
- package/dist/dialogs/single-import-modal.element.js +30 -30
- package/dist/icons/svg/logo.js +20 -20
- package/dist/lang/files/da-dk.d.ts +37 -0
- package/dist/lang/files/da-dk.js +49 -12
- package/dist/lang/files/de-de.d.ts +37 -0
- package/dist/lang/files/de-de.js +49 -12
- package/dist/lang/files/en-us.d.ts +37 -0
- package/dist/lang/files/en-us.js +49 -12
- package/dist/lang/files/es-es.d.ts +37 -0
- package/dist/lang/files/es-es.js +49 -12
- package/dist/lang/files/fr-fr.d.ts +37 -0
- package/dist/lang/files/fr-fr.js +49 -12
- package/dist/lang/files/nl-nl.d.ts +37 -0
- package/dist/lang/files/nl-nl.js +49 -12
- package/dist/repository/SyncAction.respositoy.d.ts +8 -0
- package/dist/repository/SyncAction.respositoy.js +6 -0
- package/dist/repository/sources/SyncAction.source.d.ts +5 -0
- package/dist/repository/sources/SyncAction.source.js +5 -0
- package/dist/tree/usync.menu-element.js +8 -8
- package/dist/utils/preview/content-type-diff.d.ts +18 -0
- package/dist/utils/preview/content-type-diff.js +72 -0
- package/dist/utils/preview/content-type-layout.d.ts +39 -0
- package/dist/utils/preview/content-type-layout.js +100 -0
- package/dist/workspace/components/usync-action-button.js +50 -50
- package/dist/workspace/components/usync-file-picker.element.js +33 -33
- package/dist/workspace/components/usync-file-upload.element.js +25 -25
- package/dist/workspace/dialogs/import-modal.element.js +22 -22
- package/dist/workspace/views/addons/addons.element.js +97 -97
- package/dist/workspace/views/default/default.element.js +186 -186
- package/dist/workspace/views/legacy/legacy.element.js +81 -81
- package/dist/workspace/views/settings/components/usyncSettingItem.element.js +38 -38
- package/dist/workspace/views/settings/settings.element.js +124 -124
- package/dist/workspace/workspace.element.js +16 -16
- package/package.json +70 -70
|
@@ -120,16 +120,16 @@ let uSyncDefaultViewElement = class uSyncDefaultViewElement extends UmbLitElemen
|
|
|
120
120
|
return html `<uui-loader></uui-loader>`;
|
|
121
121
|
}
|
|
122
122
|
else {
|
|
123
|
-
return html `
|
|
124
|
-
<umb-body-layout>
|
|
125
|
-
${__classPrivateFieldGet(this, _uSyncDefaultViewElement_instances, "m", _uSyncDefaultViewElement_renderBackgroundBanner).call(this)}
|
|
126
|
-
${__classPrivateFieldGet(this, _uSyncDefaultViewElement_instances, "m", _uSyncDefaultViewElement_renderSyncFileInfo).call(this)} ${__classPrivateFieldGet(this, _uSyncDefaultViewElement_instances, "m", _uSyncDefaultViewElement_renderLegacyBanner).call(this)}
|
|
127
|
-
${__classPrivateFieldGet(this, _uSyncDefaultViewElement_instances, "m", _uSyncDefaultViewElement_renderSetPicker).call(this)}
|
|
128
|
-
<div class="wrapper">
|
|
129
|
-
${__classPrivateFieldGet(this, _uSyncDefaultViewElement_instances, "m", _uSyncDefaultViewElement_renderActions).call(this)} ${__classPrivateFieldGet(this, _uSyncDefaultViewElement_instances, "m", _uSyncDefaultViewElement_renderBanner).call(this)}
|
|
130
|
-
${__classPrivateFieldGet(this, _uSyncDefaultViewElement_instances, "m", _uSyncDefaultViewElement_renderProcessBox).call(this)}${__classPrivateFieldGet(this, _uSyncDefaultViewElement_instances, "m", _uSyncDefaultViewElement_renderReport).call(this)}
|
|
131
|
-
</div>
|
|
132
|
-
</umb-body-layout>
|
|
123
|
+
return html `
|
|
124
|
+
<umb-body-layout>
|
|
125
|
+
${__classPrivateFieldGet(this, _uSyncDefaultViewElement_instances, "m", _uSyncDefaultViewElement_renderBackgroundBanner).call(this)}
|
|
126
|
+
${__classPrivateFieldGet(this, _uSyncDefaultViewElement_instances, "m", _uSyncDefaultViewElement_renderSyncFileInfo).call(this)} ${__classPrivateFieldGet(this, _uSyncDefaultViewElement_instances, "m", _uSyncDefaultViewElement_renderLegacyBanner).call(this)}
|
|
127
|
+
${__classPrivateFieldGet(this, _uSyncDefaultViewElement_instances, "m", _uSyncDefaultViewElement_renderSetPicker).call(this)}
|
|
128
|
+
<div class="wrapper">
|
|
129
|
+
${__classPrivateFieldGet(this, _uSyncDefaultViewElement_instances, "m", _uSyncDefaultViewElement_renderActions).call(this)} ${__classPrivateFieldGet(this, _uSyncDefaultViewElement_instances, "m", _uSyncDefaultViewElement_renderBanner).call(this)}
|
|
130
|
+
${__classPrivateFieldGet(this, _uSyncDefaultViewElement_instances, "m", _uSyncDefaultViewElement_renderProcessBox).call(this)}${__classPrivateFieldGet(this, _uSyncDefaultViewElement_instances, "m", _uSyncDefaultViewElement_renderReport).call(this)}
|
|
131
|
+
</div>
|
|
132
|
+
</umb-body-layout>
|
|
133
133
|
`;
|
|
134
134
|
}
|
|
135
135
|
}
|
|
@@ -179,30 +179,30 @@ _uSyncDefaultViewElement_renderSetPicker = function _uSyncDefaultViewElement_ren
|
|
|
179
179
|
selected: set.name === this._setName,
|
|
180
180
|
};
|
|
181
181
|
});
|
|
182
|
-
return html `<div class="set-picker">
|
|
183
|
-
<label for="set-select"
|
|
184
|
-
>${this.localize.termOrDefault('USyncSettings_currentHandlerSet', 'Current Set')}</label
|
|
185
|
-
>
|
|
186
|
-
<uui-select
|
|
187
|
-
id="set-select"
|
|
188
|
-
.label=${this.localize.termOrDefault('USyncSettings_currentHandlerSet', 'Current Set')}
|
|
189
|
-
.options=${options}
|
|
182
|
+
return html `<div class="set-picker">
|
|
183
|
+
<label for="set-select"
|
|
184
|
+
>${this.localize.termOrDefault('USyncSettings_currentHandlerSet', 'Current Set')}</label
|
|
185
|
+
>
|
|
186
|
+
<uui-select
|
|
187
|
+
id="set-select"
|
|
188
|
+
.label=${this.localize.termOrDefault('USyncSettings_currentHandlerSet', 'Current Set')}
|
|
189
|
+
.options=${options}
|
|
190
190
|
@change=${(e) => {
|
|
191
191
|
const select = e.target;
|
|
192
192
|
this._setName = select.value;
|
|
193
193
|
__classPrivateFieldGet(this, _uSyncDefaultViewElement_actionContext, "f")?.getActions(this._setName);
|
|
194
|
-
}}>
|
|
195
|
-
</uui-select>
|
|
194
|
+
}}>
|
|
195
|
+
</uui-select>
|
|
196
196
|
</div> `;
|
|
197
197
|
};
|
|
198
198
|
_uSyncDefaultViewElement_renderLegacyBanner = function _uSyncDefaultViewElement_renderLegacyBanner() {
|
|
199
199
|
return !this._legacy?.hasLegacy
|
|
200
200
|
? nothing
|
|
201
|
-
: html `
|
|
202
|
-
<div class="legacy-banner">
|
|
203
|
-
<umb-icon name="icon-alert"></umb-icon>
|
|
204
|
-
${this.localize.termOrDefault('uSync_legacyBanner', 'This site contains files from a previous version of uSync, view the details in the legacy tab.')}
|
|
205
|
-
</div>
|
|
201
|
+
: html `
|
|
202
|
+
<div class="legacy-banner">
|
|
203
|
+
<umb-icon name="icon-alert"></umb-icon>
|
|
204
|
+
${this.localize.termOrDefault('uSync_legacyBanner', 'This site contains files from a previous version of uSync, view the details in the legacy tab.')}
|
|
205
|
+
</div>
|
|
206
206
|
`;
|
|
207
207
|
};
|
|
208
208
|
_uSyncDefaultViewElement_renderSyncFileInfo = function _uSyncDefaultViewElement_renderSyncFileInfo() {
|
|
@@ -217,13 +217,13 @@ _uSyncDefaultViewElement_renderActions = function _uSyncDefaultViewElement_rende
|
|
|
217
217
|
if (!this._actions || !Array.isArray(this._actions))
|
|
218
218
|
return nothing;
|
|
219
219
|
var actions = this._actions?.map((group) => {
|
|
220
|
-
return html `
|
|
221
|
-
<usync-action-box
|
|
222
|
-
.disabled=${this._disabled}
|
|
223
|
-
.group="${group}"
|
|
224
|
-
.state=${this._buttonState}
|
|
225
|
-
@perform-action=${__classPrivateFieldGet(this, _uSyncDefaultViewElement_instances, "m", _uSyncDefaultViewElement_performAction)}>
|
|
226
|
-
</usync-action-box>
|
|
220
|
+
return html `
|
|
221
|
+
<usync-action-box
|
|
222
|
+
.disabled=${this._disabled}
|
|
223
|
+
.group="${group}"
|
|
224
|
+
.state=${this._buttonState}
|
|
225
|
+
@perform-action=${__classPrivateFieldGet(this, _uSyncDefaultViewElement_instances, "m", _uSyncDefaultViewElement_performAction)}>
|
|
226
|
+
</usync-action-box>
|
|
227
227
|
`;
|
|
228
228
|
});
|
|
229
229
|
return html ` <div class="action-buttons-box">${actions}</div> `;
|
|
@@ -231,23 +231,23 @@ _uSyncDefaultViewElement_renderActions = function _uSyncDefaultViewElement_rende
|
|
|
231
231
|
_uSyncDefaultViewElement_renderBanner = function _uSyncDefaultViewElement_renderBanner() {
|
|
232
232
|
if (this._showProgress === true || this._completed === true)
|
|
233
233
|
return nothing;
|
|
234
|
-
return html `
|
|
235
|
-
<umb-empty-state>
|
|
236
|
-
<h2>
|
|
237
|
-
<uui-icon name="usync-logo"></uui-icon>
|
|
238
|
-
<umb-localize key="uSync_banner"></umb-localize>
|
|
239
|
-
</h2>
|
|
240
|
-
</umb-empty-state>
|
|
234
|
+
return html `
|
|
235
|
+
<umb-empty-state>
|
|
236
|
+
<h2>
|
|
237
|
+
<uui-icon name="usync-logo"></uui-icon>
|
|
238
|
+
<umb-localize key="uSync_banner"></umb-localize>
|
|
239
|
+
</h2>
|
|
240
|
+
</umb-empty-state>
|
|
241
241
|
`;
|
|
242
242
|
};
|
|
243
243
|
_uSyncDefaultViewElement_renderProcessBox = function _uSyncDefaultViewElement_renderProcessBox() {
|
|
244
244
|
if (this._showProgress == false && this._completed == false)
|
|
245
245
|
return nothing;
|
|
246
|
-
return html `
|
|
247
|
-
<usync-progress-box
|
|
248
|
-
.title=${this._group?.groupName ?? 'doh!'}
|
|
249
|
-
.actions=${this._workingActions}
|
|
250
|
-
.complete=${this._completed}></usync-progress-box>
|
|
246
|
+
return html `
|
|
247
|
+
<usync-progress-box
|
|
248
|
+
.title=${this._group?.groupName ?? 'doh!'}
|
|
249
|
+
.actions=${this._workingActions}
|
|
250
|
+
.complete=${this._completed}></usync-progress-box>
|
|
251
251
|
`;
|
|
252
252
|
};
|
|
253
253
|
_uSyncDefaultViewElement_renderReport = function _uSyncDefaultViewElement_renderReport() {
|
|
@@ -259,156 +259,156 @@ _uSyncDefaultViewElement_renderBackgroundBanner = function _uSyncDefaultViewElem
|
|
|
259
259
|
if (!this._inBackground || !this._working)
|
|
260
260
|
return nothing;
|
|
261
261
|
if (!this._connected) {
|
|
262
|
-
return html ` <uui-box class="banner warning">
|
|
263
|
-
<div class="banner-row">
|
|
264
|
-
<uui-icon name="icon-alert"></uui-icon>
|
|
265
|
-
<div class="banner-text">
|
|
266
|
-
${this.localize.termOrDefault('uSync_runningInBackground', 'uSync is running this process in background, if you navigate away from this page it will continue to run.')}
|
|
267
|
-
<br />
|
|
268
|
-
${this.localize.termOrDefault('uSync_connectionLost', 'the connection to the server has been lost, the process will continue to run in the background but you will not see updates here.')}
|
|
269
|
-
</div>
|
|
270
|
-
${__classPrivateFieldGet(this, _uSyncDefaultViewElement_instances, "m", _uSyncDefaultViewElement_renderDismissBackgroundRun).call(this)}
|
|
271
|
-
</div>
|
|
262
|
+
return html ` <uui-box class="banner warning">
|
|
263
|
+
<div class="banner-row">
|
|
264
|
+
<uui-icon name="icon-alert"></uui-icon>
|
|
265
|
+
<div class="banner-text">
|
|
266
|
+
${this.localize.termOrDefault('uSync_runningInBackground', 'uSync is running this process in background, if you navigate away from this page it will continue to run.')}
|
|
267
|
+
<br />
|
|
268
|
+
${this.localize.termOrDefault('uSync_connectionLost', 'the connection to the server has been lost, the process will continue to run in the background but you will not see updates here.')}
|
|
269
|
+
</div>
|
|
270
|
+
${__classPrivateFieldGet(this, _uSyncDefaultViewElement_instances, "m", _uSyncDefaultViewElement_renderDismissBackgroundRun).call(this)}
|
|
271
|
+
</div>
|
|
272
272
|
</uui-box>`;
|
|
273
273
|
}
|
|
274
|
-
return html `<uui-box class="banner info">
|
|
275
|
-
<div class="banner-row">
|
|
276
|
-
<uui-icon name="icon-info"></uui-icon>
|
|
277
|
-
<div class="banner-text">
|
|
278
|
-
${this.localize.termOrDefault('uSync_runningInBackground', 'uSync is running this process in background, if you navigate away from this page it will continue to run.')}
|
|
279
|
-
</div>
|
|
280
|
-
${__classPrivateFieldGet(this, _uSyncDefaultViewElement_instances, "m", _uSyncDefaultViewElement_renderDismissBackgroundRun).call(this)}
|
|
281
|
-
</div>
|
|
274
|
+
return html `<uui-box class="banner info">
|
|
275
|
+
<div class="banner-row">
|
|
276
|
+
<uui-icon name="icon-info"></uui-icon>
|
|
277
|
+
<div class="banner-text">
|
|
278
|
+
${this.localize.termOrDefault('uSync_runningInBackground', 'uSync is running this process in background, if you navigate away from this page it will continue to run.')}
|
|
279
|
+
</div>
|
|
280
|
+
${__classPrivateFieldGet(this, _uSyncDefaultViewElement_instances, "m", _uSyncDefaultViewElement_renderDismissBackgroundRun).call(this)}
|
|
281
|
+
</div>
|
|
282
282
|
</uui-box>`;
|
|
283
283
|
};
|
|
284
284
|
_uSyncDefaultViewElement_renderDismissBackgroundRun = function _uSyncDefaultViewElement_renderDismissBackgroundRun() {
|
|
285
|
-
return html `
|
|
286
|
-
<uui-button
|
|
287
|
-
class="dismiss"
|
|
288
|
-
look="secondary"
|
|
289
|
-
compact
|
|
290
|
-
label=${this.localize.termOrDefault('uSync_dismissBackgroundRun', 'Not actually running? Reset this view')}
|
|
291
|
-
@click=${() => __classPrivateFieldGet(this, _uSyncDefaultViewElement_actionContext, "f")?.dismissBackgroundRun()}>
|
|
292
|
-
<uui-icon name="icon-remove"></uui-icon>
|
|
293
|
-
</uui-button>
|
|
285
|
+
return html `
|
|
286
|
+
<uui-button
|
|
287
|
+
class="dismiss"
|
|
288
|
+
look="secondary"
|
|
289
|
+
compact
|
|
290
|
+
label=${this.localize.termOrDefault('uSync_dismissBackgroundRun', 'Not actually running? Reset this view')}
|
|
291
|
+
@click=${() => __classPrivateFieldGet(this, _uSyncDefaultViewElement_actionContext, "f")?.dismissBackgroundRun()}>
|
|
292
|
+
<uui-icon name="icon-remove"></uui-icon>
|
|
293
|
+
</uui-button>
|
|
294
294
|
`;
|
|
295
295
|
};
|
|
296
296
|
uSyncDefaultViewElement.styles = [
|
|
297
|
-
css `
|
|
298
|
-
:host {
|
|
299
|
-
display: block;
|
|
300
|
-
// margin-top: calc(var(--uui-size-space-4) * -1);
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
.wrapper {
|
|
304
|
-
display: flex;
|
|
305
|
-
flex-direction: column;
|
|
306
|
-
gap: var(--uui-size-space-4);
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
.legacy-banner {
|
|
310
|
-
display: flex;
|
|
311
|
-
gap: var(--uui-size-space-2);
|
|
312
|
-
padding: var(--uui-size-space-4);
|
|
313
|
-
margin: var(--uui-size-space-4) 0;
|
|
314
|
-
background-color: var(--uui-color-warning);
|
|
315
|
-
color: var(--uui-color-warning-contrast);
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
.results-box {
|
|
319
|
-
position: relative;
|
|
320
|
-
display: block;
|
|
321
|
-
z-index: 1;
|
|
322
|
-
}
|
|
323
|
-
|
|
324
|
-
.action-buttons-box {
|
|
325
|
-
display: grid;
|
|
326
|
-
grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
|
|
327
|
-
position: relative;
|
|
328
|
-
gap: var(--uui-size-space-5);
|
|
329
|
-
flex-wrap: wrap;
|
|
330
|
-
align-content: stretch;
|
|
331
|
-
z-index: 1;
|
|
332
|
-
}
|
|
333
|
-
|
|
334
|
-
umb-empty-state {
|
|
335
|
-
position: absolute;
|
|
336
|
-
top: 50%;
|
|
337
|
-
transform: translateY(-50%);
|
|
338
|
-
left: 0;
|
|
339
|
-
right: 0;
|
|
340
|
-
margin: 0 auto;
|
|
341
|
-
text-align: center;
|
|
342
|
-
color: var(--uui-color-border);
|
|
343
|
-
z-index: 0;
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
umb-empty-state h2 {
|
|
347
|
-
font-size: var(--uui-type-h2-size);
|
|
348
|
-
}
|
|
349
|
-
|
|
350
|
-
umb-empty-state uui-icon {
|
|
351
|
-
position: relative;
|
|
352
|
-
top: var(--uui-size-2);
|
|
353
|
-
}
|
|
354
|
-
|
|
355
|
-
.set-picker {
|
|
356
|
-
display: flex;
|
|
357
|
-
flex-direction: row;
|
|
358
|
-
align-items: center;
|
|
359
|
-
justify-content: flex-end;
|
|
360
|
-
gap: var(--uui-size-space-2);
|
|
361
|
-
margin-bottom: var(--uui-size-space-4);
|
|
362
|
-
border: 1px solid var(--uui-color-border);
|
|
363
|
-
padding: var(--uui-size-space-4);
|
|
364
|
-
}
|
|
365
|
-
|
|
366
|
-
.set-picker label {
|
|
367
|
-
font-weight: 700;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
.set-picker label::after {
|
|
371
|
-
content: ':';
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
.info {
|
|
375
|
-
background-color: var(--uui-color-positive);
|
|
376
|
-
color: var(--uui-color-positive-contrast);
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
.banner-row {
|
|
380
|
-
display: flex;
|
|
381
|
-
align-items: flex-start;
|
|
382
|
-
gap: var(--uui-size-space-3);
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
.banner-text {
|
|
386
|
-
flex: 1 1 auto;
|
|
387
|
-
}
|
|
388
|
-
|
|
389
|
-
.banner-row uui-button.dismiss {
|
|
390
|
-
flex: 0 0 auto;
|
|
391
|
-
margin: calc(var(--uui-size-space-2) * -1) calc(var(--uui-size-space-2) * -1) 0 0;
|
|
392
|
-
/* blend into the alert - same colour as its background/text, so it
|
|
393
|
-
doesn't draw attention unless someone's actually looking for it */
|
|
394
|
-
color: inherit;
|
|
395
|
-
--uui-button-background-color: transparent;
|
|
396
|
-
--uui-button-background-color-hover: rgb(0 0 0 / 8%);
|
|
397
|
-
--uui-button-contrast: currentColor;
|
|
398
|
-
--uui-button-contrast-hover: currentColor;
|
|
399
|
-
--uui-button-border-color: transparent;
|
|
400
|
-
--uui-button-border-color-hover: transparent;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
.banner {
|
|
404
|
-
display: block;
|
|
405
|
-
margin-bottom: var(--uui-size-space-4);
|
|
406
|
-
}
|
|
407
|
-
|
|
408
|
-
.warning {
|
|
409
|
-
background-color: var(--uui-color-warning);
|
|
410
|
-
color: var(--uui-color-warning-contrast);
|
|
411
|
-
}
|
|
297
|
+
css `
|
|
298
|
+
:host {
|
|
299
|
+
display: block;
|
|
300
|
+
// margin-top: calc(var(--uui-size-space-4) * -1);
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
.wrapper {
|
|
304
|
+
display: flex;
|
|
305
|
+
flex-direction: column;
|
|
306
|
+
gap: var(--uui-size-space-4);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
.legacy-banner {
|
|
310
|
+
display: flex;
|
|
311
|
+
gap: var(--uui-size-space-2);
|
|
312
|
+
padding: var(--uui-size-space-4);
|
|
313
|
+
margin: var(--uui-size-space-4) 0;
|
|
314
|
+
background-color: var(--uui-color-warning);
|
|
315
|
+
color: var(--uui-color-warning-contrast);
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
.results-box {
|
|
319
|
+
position: relative;
|
|
320
|
+
display: block;
|
|
321
|
+
z-index: 1;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
.action-buttons-box {
|
|
325
|
+
display: grid;
|
|
326
|
+
grid-template-columns: repeat(auto-fit, minmax(430px, 1fr));
|
|
327
|
+
position: relative;
|
|
328
|
+
gap: var(--uui-size-space-5);
|
|
329
|
+
flex-wrap: wrap;
|
|
330
|
+
align-content: stretch;
|
|
331
|
+
z-index: 1;
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
umb-empty-state {
|
|
335
|
+
position: absolute;
|
|
336
|
+
top: 50%;
|
|
337
|
+
transform: translateY(-50%);
|
|
338
|
+
left: 0;
|
|
339
|
+
right: 0;
|
|
340
|
+
margin: 0 auto;
|
|
341
|
+
text-align: center;
|
|
342
|
+
color: var(--uui-color-border);
|
|
343
|
+
z-index: 0;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
umb-empty-state h2 {
|
|
347
|
+
font-size: var(--uui-type-h2-size);
|
|
348
|
+
}
|
|
349
|
+
|
|
350
|
+
umb-empty-state uui-icon {
|
|
351
|
+
position: relative;
|
|
352
|
+
top: var(--uui-size-2);
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.set-picker {
|
|
356
|
+
display: flex;
|
|
357
|
+
flex-direction: row;
|
|
358
|
+
align-items: center;
|
|
359
|
+
justify-content: flex-end;
|
|
360
|
+
gap: var(--uui-size-space-2);
|
|
361
|
+
margin-bottom: var(--uui-size-space-4);
|
|
362
|
+
border: 1px solid var(--uui-color-border);
|
|
363
|
+
padding: var(--uui-size-space-4);
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
.set-picker label {
|
|
367
|
+
font-weight: 700;
|
|
368
|
+
}
|
|
369
|
+
|
|
370
|
+
.set-picker label::after {
|
|
371
|
+
content: ':';
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
.info {
|
|
375
|
+
background-color: var(--uui-color-positive);
|
|
376
|
+
color: var(--uui-color-positive-contrast);
|
|
377
|
+
}
|
|
378
|
+
|
|
379
|
+
.banner-row {
|
|
380
|
+
display: flex;
|
|
381
|
+
align-items: flex-start;
|
|
382
|
+
gap: var(--uui-size-space-3);
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
.banner-text {
|
|
386
|
+
flex: 1 1 auto;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
.banner-row uui-button.dismiss {
|
|
390
|
+
flex: 0 0 auto;
|
|
391
|
+
margin: calc(var(--uui-size-space-2) * -1) calc(var(--uui-size-space-2) * -1) 0 0;
|
|
392
|
+
/* blend into the alert - same colour as its background/text, so it
|
|
393
|
+
doesn't draw attention unless someone's actually looking for it */
|
|
394
|
+
color: inherit;
|
|
395
|
+
--uui-button-background-color: transparent;
|
|
396
|
+
--uui-button-background-color-hover: rgb(0 0 0 / 8%);
|
|
397
|
+
--uui-button-contrast: currentColor;
|
|
398
|
+
--uui-button-contrast-hover: currentColor;
|
|
399
|
+
--uui-button-border-color: transparent;
|
|
400
|
+
--uui-button-border-color-hover: transparent;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
.banner {
|
|
404
|
+
display: block;
|
|
405
|
+
margin-bottom: var(--uui-size-space-4);
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
.warning {
|
|
409
|
+
background-color: var(--uui-color-warning);
|
|
410
|
+
color: var(--uui-color-warning-contrast);
|
|
411
|
+
}
|
|
412
412
|
`,
|
|
413
413
|
];
|
|
414
414
|
__decorate([
|
|
@@ -35,18 +35,18 @@ let SyncLegacyFilesElement = class SyncLegacyFilesElement extends UmbLitElement
|
|
|
35
35
|
});
|
|
36
36
|
}
|
|
37
37
|
render() {
|
|
38
|
-
return html `<umb-body-layout>
|
|
39
|
-
${this.renderLegacyNote()} ${this.renderActions()}
|
|
38
|
+
return html `<umb-body-layout>
|
|
39
|
+
${this.renderLegacyNote()} ${this.renderActions()}
|
|
40
40
|
</umb-body-layout>`;
|
|
41
41
|
}
|
|
42
42
|
renderLegacyNote() {
|
|
43
|
-
return html ` <uui-box headline="Legacy uSync files detected">
|
|
44
|
-
<p>
|
|
45
|
-
uSync has found an old uSync folder at
|
|
46
|
-
<strong>${this._legacy?.legacyFolder ?? ''}</strong>. It is likely that the
|
|
47
|
-
content will need converting in some way.
|
|
48
|
-
</p>
|
|
49
|
-
${this.renderLegacyTypes(this._legacy?.legacyTypes)}
|
|
43
|
+
return html ` <uui-box headline="Legacy uSync files detected">
|
|
44
|
+
<p>
|
|
45
|
+
uSync has found an old uSync folder at
|
|
46
|
+
<strong>${this._legacy?.legacyFolder ?? ''}</strong>. It is likely that the
|
|
47
|
+
content will need converting in some way.
|
|
48
|
+
</p>
|
|
49
|
+
${this.renderLegacyTypes(this._legacy?.legacyTypes)}
|
|
50
50
|
</uui-box>`;
|
|
51
51
|
}
|
|
52
52
|
renderLegacyTypes(legacyTypes) {
|
|
@@ -56,57 +56,57 @@ let SyncLegacyFilesElement = class SyncLegacyFilesElement extends UmbLitElement
|
|
|
56
56
|
const legacyTypeHtml = legacyTypes.map((datatype) => {
|
|
57
57
|
return html `<li>${datatype}</li>`;
|
|
58
58
|
});
|
|
59
|
-
return html `
|
|
60
|
-
<div>
|
|
61
|
-
<h3>Obsolete DataTypes</h3>
|
|
62
|
-
<p>
|
|
63
|
-
The following DataTypes - found in the legacy folder - are no longer supported
|
|
64
|
-
in Umbraco 14+ and will need to be converted.
|
|
65
|
-
</p>
|
|
66
|
-
<ul>
|
|
67
|
-
${legacyTypeHtml}
|
|
68
|
-
</ul>
|
|
69
|
-
<p>
|
|
70
|
-
You can convert these DataTypes using
|
|
71
|
-
<a href="https://github.com/Jumoo/uSyncMigrations" target="_blank"
|
|
72
|
-
>uSync.Migrations</a
|
|
73
|
-
><br />
|
|
74
|
-
</p>
|
|
75
|
-
</div>
|
|
59
|
+
return html `
|
|
60
|
+
<div>
|
|
61
|
+
<h3>Obsolete DataTypes</h3>
|
|
62
|
+
<p>
|
|
63
|
+
The following DataTypes - found in the legacy folder - are no longer supported
|
|
64
|
+
in Umbraco 14+ and will need to be converted.
|
|
65
|
+
</p>
|
|
66
|
+
<ul>
|
|
67
|
+
${legacyTypeHtml}
|
|
68
|
+
</ul>
|
|
69
|
+
<p>
|
|
70
|
+
You can convert these DataTypes using
|
|
71
|
+
<a href="https://github.com/Jumoo/uSyncMigrations" target="_blank"
|
|
72
|
+
>uSync.Migrations</a
|
|
73
|
+
><br />
|
|
74
|
+
</p>
|
|
75
|
+
</div>
|
|
76
76
|
`;
|
|
77
77
|
}
|
|
78
78
|
renderActions() {
|
|
79
|
-
return html `
|
|
80
|
-
<div class="legacy-actions">
|
|
81
|
-
<uui-box>
|
|
82
|
-
<div class="actions">
|
|
83
|
-
<uui-button
|
|
84
|
-
label="copy"
|
|
85
|
-
color="positive"
|
|
86
|
-
look="primary"
|
|
87
|
-
@click=${__classPrivateFieldGet(this, _SyncLegacyFilesElement_instances, "m", _SyncLegacyFilesElement_onCopy)}
|
|
88
|
-
>Overwrite v${this._legacy?.latestVersion} folder</uui-button
|
|
89
|
-
>
|
|
90
|
-
<p>
|
|
91
|
-
Copy the contents of the legacy folder to the new
|
|
92
|
-
${this._legacy?.latestFolder} folder
|
|
93
|
-
</p>
|
|
94
|
-
</div>
|
|
95
|
-
</uui-box>
|
|
96
|
-
|
|
97
|
-
<uui-box>
|
|
98
|
-
<div class="actions">
|
|
99
|
-
<uui-button
|
|
100
|
-
label="ignore"
|
|
101
|
-
color="warning"
|
|
102
|
-
look="primary"
|
|
103
|
-
@click=${__classPrivateFieldGet(this, _SyncLegacyFilesElement_instances, "m", _SyncLegacyFilesElement_onIgnore)}
|
|
104
|
-
>Ignore legacy folder</uui-button
|
|
105
|
-
>
|
|
106
|
-
<p>Ignore the legacy folder and continue</p>
|
|
107
|
-
</div>
|
|
108
|
-
</uui-box>
|
|
109
|
-
</div>
|
|
79
|
+
return html `
|
|
80
|
+
<div class="legacy-actions">
|
|
81
|
+
<uui-box>
|
|
82
|
+
<div class="actions">
|
|
83
|
+
<uui-button
|
|
84
|
+
label="copy"
|
|
85
|
+
color="positive"
|
|
86
|
+
look="primary"
|
|
87
|
+
@click=${__classPrivateFieldGet(this, _SyncLegacyFilesElement_instances, "m", _SyncLegacyFilesElement_onCopy)}
|
|
88
|
+
>Overwrite v${this._legacy?.latestVersion} folder</uui-button
|
|
89
|
+
>
|
|
90
|
+
<p>
|
|
91
|
+
Copy the contents of the legacy folder to the new
|
|
92
|
+
${this._legacy?.latestFolder} folder
|
|
93
|
+
</p>
|
|
94
|
+
</div>
|
|
95
|
+
</uui-box>
|
|
96
|
+
|
|
97
|
+
<uui-box>
|
|
98
|
+
<div class="actions">
|
|
99
|
+
<uui-button
|
|
100
|
+
label="ignore"
|
|
101
|
+
color="warning"
|
|
102
|
+
look="primary"
|
|
103
|
+
@click=${__classPrivateFieldGet(this, _SyncLegacyFilesElement_instances, "m", _SyncLegacyFilesElement_onIgnore)}
|
|
104
|
+
>Ignore legacy folder</uui-button
|
|
105
|
+
>
|
|
106
|
+
<p>Ignore the legacy folder and continue</p>
|
|
107
|
+
</div>
|
|
108
|
+
</uui-box>
|
|
109
|
+
</div>
|
|
110
110
|
`;
|
|
111
111
|
}
|
|
112
112
|
};
|
|
@@ -152,30 +152,30 @@ _SyncLegacyFilesElement_onIgnore = async function _SyncLegacyFilesElement_onIgno
|
|
|
152
152
|
console.log('ignore cancelled by user');
|
|
153
153
|
});
|
|
154
154
|
};
|
|
155
|
-
SyncLegacyFilesElement.styles = css `
|
|
156
|
-
uui-box {
|
|
157
|
-
margin-bottom: var(--uui-size-3);
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
.legacy-actions {
|
|
161
|
-
display: flex;
|
|
162
|
-
gap: var(--uui-size-space-4);
|
|
163
|
-
justify-content: space-between;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
.legacy-actions uui-box {
|
|
167
|
-
flex-basis: 50%;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
.legacy-actions .actions {
|
|
171
|
-
display: flex;
|
|
172
|
-
flex-direction: column;
|
|
173
|
-
align-items: center;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
uui-button {
|
|
177
|
-
font-size: var(--uui-type-h5-size);
|
|
178
|
-
}
|
|
155
|
+
SyncLegacyFilesElement.styles = css `
|
|
156
|
+
uui-box {
|
|
157
|
+
margin-bottom: var(--uui-size-3);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.legacy-actions {
|
|
161
|
+
display: flex;
|
|
162
|
+
gap: var(--uui-size-space-4);
|
|
163
|
+
justify-content: space-between;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.legacy-actions uui-box {
|
|
167
|
+
flex-basis: 50%;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.legacy-actions .actions {
|
|
171
|
+
display: flex;
|
|
172
|
+
flex-direction: column;
|
|
173
|
+
align-items: center;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
uui-button {
|
|
177
|
+
font-size: var(--uui-type-h5-size);
|
|
178
|
+
}
|
|
179
179
|
`;
|
|
180
180
|
__decorate([
|
|
181
181
|
state()
|