@jumoo/usync 17.5.0 → 17.5.1

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 (33) hide show
  1. package/LICENCE +372 -372
  2. package/README.md +10 -10
  3. package/dist/components/usync-action-box.js +61 -61
  4. package/dist/components/usync-change-detail.js +409 -409
  5. package/dist/components/usync-change-view.js +49 -49
  6. package/dist/components/usync-progress-box.js +106 -106
  7. package/dist/components/usync-result-row.js +61 -61
  8. package/dist/components/usync-results-group-view.js +55 -55
  9. package/dist/components/usync-results-view.js +63 -63
  10. package/dist/components/usync-sync-file-info-view.js +10 -10
  11. package/dist/dialogs/details-modal-element.js +37 -37
  12. package/dist/dialogs/error-modal-element.js +21 -21
  13. package/dist/dialogs/legacy-modal-element.js +22 -22
  14. package/dist/dialogs/single-import-modal.element.js +30 -30
  15. package/dist/icons/svg/logo.js +20 -20
  16. package/dist/lang/files/da-dk.js +12 -12
  17. package/dist/lang/files/de-de.js +12 -12
  18. package/dist/lang/files/en-us.js +12 -12
  19. package/dist/lang/files/es-es.js +12 -12
  20. package/dist/lang/files/fr-fr.js +12 -12
  21. package/dist/lang/files/nl-nl.js +12 -12
  22. package/dist/tree/usync.menu-element.js +8 -8
  23. package/dist/workspace/components/usync-action-button.js +50 -50
  24. package/dist/workspace/components/usync-file-picker.element.js +33 -33
  25. package/dist/workspace/components/usync-file-upload.element.js +25 -25
  26. package/dist/workspace/dialogs/import-modal.element.js +22 -22
  27. package/dist/workspace/views/addons/addons.element.js +97 -97
  28. package/dist/workspace/views/default/default.element.js +186 -186
  29. package/dist/workspace/views/legacy/legacy.element.js +81 -81
  30. package/dist/workspace/views/settings/components/usyncSettingItem.element.js +38 -38
  31. package/dist/workspace/views/settings/settings.element.js +124 -124
  32. package/dist/workspace/workspace.element.js +16 -16
  33. package/package.json +70 -70
@@ -77,21 +77,21 @@ export default {
77
77
  changeHeading: 'Results',
78
78
  changeCount: '{1}/{0} changes',
79
79
  noChangeCount: '0/{0} changes',
80
- legacyInfo: `<p>uSync has found a legacy uSync folder at <strong>%0%</strong>.<br />
80
+ legacyInfo: `<p>uSync has found a legacy uSync folder at <strong>%0%</strong>.<br />
81
81
  Its likely that the content in it will need coverting in someway</p>`,
82
- legacyObsolete: `<h4>Obsolete DataTypes</h4>
83
- <ul>%0%</ul>
84
- <p>You can convert these DataTypes using
85
- <a href="https://github.com/Jumoo/uSyncMigrations" target="_blank">uSync.Migrations</a><br />
82
+ legacyObsolete: `<h4>Obsolete DataTypes</h4>
83
+ <ul>%0%</ul>
84
+ <p>You can convert these DataTypes using
85
+ <a href="https://github.com/Jumoo/uSyncMigrations" target="_blank">uSync.Migrations</a><br />
86
86
  <em>(In the full uSync release conversion will happen here.)</em></p>`,
87
- legacyCopy: `<h4>Copy to uSync/v14</h4>
88
- <p>You can copy your %0% folder to the ~/uSync/v14 folder<br />and run an import.</p>
89
- <p>If nothing needs converting, then everything should import.</p>
87
+ legacyCopy: `<h4>Copy to uSync/v14</h4>
88
+ <p>You can copy your %0% folder to the ~/uSync/v14 folder<br />and run an import.</p>
89
+ <p>If nothing needs converting, then everything should import.</p>
90
90
  <p><strong>Remove or rename the %0% folder to prevent this popup</strong></p>`,
91
- hmacMismatch: `<h4>HMAC Mismatch <uui-icon name="alert"></uui-icon></h4>
92
- <p>It looks like the <code>Imaging:HMAC</code> setting used to generate the files in the uSync folder does not match the current setting for this site.</p>
93
- <p>Images inside RTE controls will have the HMAC Value appended to the URL value, and without any additional configuration, these images may not render correctly.</p>
94
- <ul><li>You can turn on "HMAC mapping" in uSync,</li>
91
+ hmacMismatch: `<h4>HMAC Mismatch <uui-icon name="alert"></uui-icon></h4>
92
+ <p>It looks like the <code>Imaging:HMAC</code> setting used to generate the files in the uSync folder does not match the current setting for this site.</p>
93
+ <p>Images inside RTE controls will have the HMAC Value appended to the URL value, and without any additional configuration, these images may not render correctly.</p>
94
+ <ul><li>You can turn on "HMAC mapping" in uSync,</li>
95
95
  <li>or you can ensure the HMAC value in the <code>Imaging:HMAC</code> setting matches the value used to generate the files in the uSync folder</li></ul>`,
96
96
  formatMismatch: 'The sync file format version does not match the expected version. This may indicate a potential compatibility issue.',
97
97
  legacyBanner: 'This site contains files from a previous version of uSync, view the details in the legacy tab.',
@@ -46,21 +46,21 @@ export default {
46
46
  changeHeading: 'Resultados',
47
47
  changeCount: '{1}/{0} cambios',
48
48
  noChangeCount: '0/{0} cambios',
49
- legacyInfo: `<p>uSync ha encontrado una carpeta uSync heredada en <strong>%0%</strong>.<br />
49
+ legacyInfo: `<p>uSync ha encontrado una carpeta uSync heredada en <strong>%0%</strong>.<br />
50
50
  Es probable que su contenido necesite convertirse de alguna manera</p>`,
51
- legacyObsolete: `<h4>Tipos de datos obsoletos</h4>
52
- <ul>%0%</ul>
53
- <p>Puede convertir estos tipos de datos usando
54
- <a href="https://github.com/Jumoo/uSyncMigrations" target="_blank">uSync.Migrations</a><br />
51
+ legacyObsolete: `<h4>Tipos de datos obsoletos</h4>
52
+ <ul>%0%</ul>
53
+ <p>Puede convertir estos tipos de datos usando
54
+ <a href="https://github.com/Jumoo/uSyncMigrations" target="_blank">uSync.Migrations</a><br />
55
55
  <em>(En la versión completa de uSync, la conversión se realizará aquí.)</em></p>`,
56
- legacyCopy: `<h4>Copiar a uSync/v14</h4>
57
- <p>Puede copiar su carpeta %0% a la carpeta ~/uSync/v14<br />y ejecutar una importación.</p>
58
- <p>Si nada necesita convertirse, todo debería importarse correctamente.</p>
56
+ legacyCopy: `<h4>Copiar a uSync/v14</h4>
57
+ <p>Puede copiar su carpeta %0% a la carpeta ~/uSync/v14<br />y ejecutar una importación.</p>
58
+ <p>Si nada necesita convertirse, todo debería importarse correctamente.</p>
59
59
  <p><strong>Elimine o cambie el nombre de la carpeta %0% para evitar este popup</strong></p>`,
60
- hmacMismatch: `<h4>Discrepancia HMAC <uui-icon name="alert"></uui-icon></h4>
61
- <p>Parece que la configuración <code>Imaging:HMAC</code> utilizada para generar los archivos en la carpeta uSync no coincide con la configuración actual de este sitio.</p>
62
- <p>Las imágenes dentro de los controles RTE tendrán el valor HMAC añadido a la URL, y sin configuración adicional, estas imágenes pueden no mostrarse correctamente.</p>
63
- <ul><li>Puede activar el "mapeo HMAC" en uSync,</li>
60
+ hmacMismatch: `<h4>Discrepancia HMAC <uui-icon name="alert"></uui-icon></h4>
61
+ <p>Parece que la configuración <code>Imaging:HMAC</code> utilizada para generar los archivos en la carpeta uSync no coincide con la configuración actual de este sitio.</p>
62
+ <p>Las imágenes dentro de los controles RTE tendrán el valor HMAC añadido a la URL, y sin configuración adicional, estas imágenes pueden no mostrarse correctamente.</p>
63
+ <ul><li>Puede activar el "mapeo HMAC" en uSync,</li>
64
64
  <li>o puede asegurarse de que el valor HMAC en la configuración <code>Imaging:HMAC</code> coincida con el valor utilizado para generar los archivos en la carpeta uSync</li></ul>`,
65
65
  formatMismatch: 'La versión del formato del archivo de sincronización no coincide con la versión esperada. Esto puede indicar un posible problema de compatibilidad.',
66
66
  legacyBanner: 'Este sitio contiene archivos de una versión anterior de uSync. Consulte los detalles en la pestaña Heredado.',
@@ -46,21 +46,21 @@ export default {
46
46
  changeHeading: 'Résultats',
47
47
  changeCount: '{1}/{0} modifications',
48
48
  noChangeCount: '0/{0} modifications',
49
- legacyInfo: `<p>uSync a trouvé un dossier uSync hérité à <strong>%0%</strong>.<br />
49
+ legacyInfo: `<p>uSync a trouvé un dossier uSync hérité à <strong>%0%</strong>.<br />
50
50
  Il est probable que son contenu devra être converti d'une façon ou d'une autre</p>`,
51
- legacyObsolete: `<h4>Types de données obsolètes</h4>
52
- <ul>%0%</ul>
53
- <p>Vous pouvez convertir ces types de données en utilisant
54
- <a href="https://github.com/Jumoo/uSyncMigrations" target="_blank">uSync.Migrations</a><br />
51
+ legacyObsolete: `<h4>Types de données obsolètes</h4>
52
+ <ul>%0%</ul>
53
+ <p>Vous pouvez convertir ces types de données en utilisant
54
+ <a href="https://github.com/Jumoo/uSyncMigrations" target="_blank">uSync.Migrations</a><br />
55
55
  <em>(Dans la version complète d'uSync, la conversion se fera ici.)</em></p>`,
56
- legacyCopy: `<h4>Copier vers uSync/v14</h4>
57
- <p>Vous pouvez copier votre dossier %0% vers le dossier ~/uSync/v14<br />et exécuter une importation.</p>
58
- <p>Si rien ne nécessite de conversion, tout devrait s'importer correctement.</p>
56
+ legacyCopy: `<h4>Copier vers uSync/v14</h4>
57
+ <p>Vous pouvez copier votre dossier %0% vers le dossier ~/uSync/v14<br />et exécuter une importation.</p>
58
+ <p>Si rien ne nécessite de conversion, tout devrait s'importer correctement.</p>
59
59
  <p><strong>Supprimez ou renommez le dossier %0% pour éviter cette popup</strong></p>`,
60
- hmacMismatch: `<h4>Incompatibilité HMAC <uui-icon name="alert"></uui-icon></h4>
61
- <p>Il semble que le paramètre <code>Imaging:HMAC</code> utilisé pour générer les fichiers dans le dossier uSync ne corresponde pas au paramètre actuel de ce site.</p>
62
- <p>Les images dans les contrôles RTE auront la valeur HMAC ajoutée à l'URL, et sans configuration supplémentaire, ces images pourraient ne pas s'afficher correctement.</p>
63
- <ul><li>Vous pouvez activer le "mappage HMAC" dans uSync,</li>
60
+ hmacMismatch: `<h4>Incompatibilité HMAC <uui-icon name="alert"></uui-icon></h4>
61
+ <p>Il semble que le paramètre <code>Imaging:HMAC</code> utilisé pour générer les fichiers dans le dossier uSync ne corresponde pas au paramètre actuel de ce site.</p>
62
+ <p>Les images dans les contrôles RTE auront la valeur HMAC ajoutée à l'URL, et sans configuration supplémentaire, ces images pourraient ne pas s'afficher correctement.</p>
63
+ <ul><li>Vous pouvez activer le "mappage HMAC" dans uSync,</li>
64
64
  <li>ou vous pouvez vous assurer que la valeur HMAC dans le paramètre <code>Imaging:HMAC</code> correspond à la valeur utilisée pour générer les fichiers dans le dossier uSync</li></ul>`,
65
65
  formatMismatch: 'La version du format du fichier de synchronisation ne correspond pas à la version attendue. Cela peut indiquer un problème de compatibilité potentiel.',
66
66
  legacyBanner: 'Ce site contient des fichiers d\'une version précédente d\'uSync. Consultez les détails dans l\'onglet Héritage.',
@@ -46,21 +46,21 @@ export default {
46
46
  changeHeading: 'Resultaten',
47
47
  changeCount: '{1}/{0} wijzigingen',
48
48
  noChangeCount: '0/{0} wijzigingen',
49
- legacyInfo: `<p>uSync heeft een verouderde uSync-map gevonden op <strong>%0%</strong>.<br />
49
+ legacyInfo: `<p>uSync heeft een verouderde uSync-map gevonden op <strong>%0%</strong>.<br />
50
50
  Het is waarschijnlijk dat de inhoud op de een of andere manier geconverteerd moet worden</p>`,
51
- legacyObsolete: `<h4>Verouderde gegevenstypen</h4>
52
- <ul>%0%</ul>
53
- <p>U kunt deze gegevenstypen converteren met
54
- <a href="https://github.com/Jumoo/uSyncMigrations" target="_blank">uSync.Migrations</a><br />
51
+ legacyObsolete: `<h4>Verouderde gegevenstypen</h4>
52
+ <ul>%0%</ul>
53
+ <p>U kunt deze gegevenstypen converteren met
54
+ <a href="https://github.com/Jumoo/uSyncMigrations" target="_blank">uSync.Migrations</a><br />
55
55
  <em>(In de volledige uSync-release zal de conversie hier plaatsvinden.)</em></p>`,
56
- legacyCopy: `<h4>Kopiëren naar uSync/v14</h4>
57
- <p>U kunt uw %0%-map kopiëren naar de ~/uSync/v14-map<br />en een import uitvoeren.</p>
58
- <p>Als er niets geconverteerd hoeft te worden, zou alles correct moeten importeren.</p>
56
+ legacyCopy: `<h4>Kopiëren naar uSync/v14</h4>
57
+ <p>U kunt uw %0%-map kopiëren naar de ~/uSync/v14-map<br />en een import uitvoeren.</p>
58
+ <p>Als er niets geconverteerd hoeft te worden, zou alles correct moeten importeren.</p>
59
59
  <p><strong>Verwijder of hernoem de %0%-map om deze popup te voorkomen</strong></p>`,
60
- hmacMismatch: `<h4>HMAC-mismatch <uui-icon name="alert"></uui-icon></h4>
61
- <p>Het lijkt erop dat de <code>Imaging:HMAC</code>-instelling die werd gebruikt om de bestanden in de uSync-map te genereren, niet overeenkomt met de huidige instelling voor deze site.</p>
62
- <p>Afbeeldingen in RTE-besturingselementen hebben de HMAC-waarde toegevoegd aan de URL-waarde, en zonder aanvullende configuratie worden deze afbeeldingen mogelijk niet correct weergegeven.</p>
63
- <ul><li>U kunt "HMAC-mapping" inschakelen in uSync,</li>
60
+ hmacMismatch: `<h4>HMAC-mismatch <uui-icon name="alert"></uui-icon></h4>
61
+ <p>Het lijkt erop dat de <code>Imaging:HMAC</code>-instelling die werd gebruikt om de bestanden in de uSync-map te genereren, niet overeenkomt met de huidige instelling voor deze site.</p>
62
+ <p>Afbeeldingen in RTE-besturingselementen hebben de HMAC-waarde toegevoegd aan de URL-waarde, en zonder aanvullende configuratie worden deze afbeeldingen mogelijk niet correct weergegeven.</p>
63
+ <ul><li>U kunt "HMAC-mapping" inschakelen in uSync,</li>
64
64
  <li>of u kunt ervoor zorgen dat de HMAC-waarde in de <code>Imaging:HMAC</code>-instelling overeenkomt met de waarde die werd gebruikt om de bestanden in de uSync-map te genereren</li></ul>`,
65
65
  formatMismatch: 'De versie van het synchronisatiebestandsformaat komt niet overeen met de verwachte versie. Dit kan wijzen op een mogelijk compatibiliteitsprobleem.',
66
66
  legacyBanner: 'Deze site bevat bestanden van een eerdere versie van uSync. Bekijk de details op het tabblad Verouderd.',
@@ -37,17 +37,17 @@ let uSyncMenuElement = class uSyncMenuElement extends UmbElementMixin(LitElement
37
37
  });
38
38
  }
39
39
  render() {
40
- return html `<umb-menu-item-layout
41
- label=${this.manifest.meta.label ?? this.manifest.name}
42
- icon-name=${this.manifest.meta.icon ?? 'icon-bug'}
43
- .href=${this.itemPath}
44
- ?has-Children=${this.hasChildren}
45
- >${this.renderChildren()}
40
+ return html `<umb-menu-item-layout
41
+ label=${this.manifest.meta.label ?? this.manifest.name}
42
+ icon-name=${this.manifest.meta.icon ?? 'icon-bug'}
43
+ .href=${this.itemPath}
44
+ ?has-Children=${this.hasChildren}
45
+ >${this.renderChildren()}
46
46
  </umb-menu-item-layout>`;
47
47
  }
48
48
  renderChildren() {
49
- return html `<umb-extension-slot
50
- type="usync-menuItem"
49
+ return html `<umb-extension-slot
50
+ type="usync-menuItem"
51
51
  default-element="umb-menu-item-default"></umb-extension-slot>`;
52
52
  }
53
53
  };
@@ -21,55 +21,55 @@ let SyncActionButtonElement = class SyncActionButtonElement extends UmbLitElemen
21
21
  this._popoverOpen = false;
22
22
  }
23
23
  render() {
24
- return html `
25
- <uui-button-group>
26
- <uui-button
27
- class="action-button"
28
- .disabled=${this.disabled}
29
- label=${this.localize.termOrDefault(`uSync_${this.button?.label}`, this.button?.label ?? '')}
30
- color=${this.button?.color}
31
- look=${this.button?.look}
32
- state=${ifDefined(this.state)}
33
- @click=${() => __classPrivateFieldGet(this, _SyncActionButtonElement_instances, "m", _SyncActionButtonElement_onClick).call(this, this.button)}></uui-button>
34
-
35
- ${this.renderDropdown(this.button)}
36
- </uui-button-group>
24
+ return html `
25
+ <uui-button-group>
26
+ <uui-button
27
+ class="action-button"
28
+ .disabled=${this.disabled}
29
+ label=${this.localize.termOrDefault(`uSync_${this.button?.label}`, this.button?.label ?? '')}
30
+ color=${this.button?.color}
31
+ look=${this.button?.look}
32
+ state=${ifDefined(this.state)}
33
+ @click=${() => __classPrivateFieldGet(this, _SyncActionButtonElement_instances, "m", _SyncActionButtonElement_onClick).call(this, this.button)}></uui-button>
34
+
35
+ ${this.renderDropdown(this.button)}
36
+ </uui-button-group>
37
37
  `;
38
38
  }
39
39
  renderDropdown(parent) {
40
40
  if (!this.button?.children)
41
41
  return nothing;
42
42
  const buttons = this.button?.children.map((item) => {
43
- return html ` <uui-menu-item
44
- .disabled=${this.disabled}
45
- .label=${this.localize.termOrDefault(`uSync_${item.label}`, item.label)}
43
+ return html ` <uui-menu-item
44
+ .disabled=${this.disabled}
45
+ .label=${this.localize.termOrDefault(`uSync_${item.label}`, item.label)}
46
46
  @click-label=${() => __classPrivateFieldGet(this, _SyncActionButtonElement_instances, "m", _SyncActionButtonElement_onClick).call(this, item)}></uui-menu-item>`;
47
47
  });
48
48
  if (buttons.length == 0)
49
49
  return nothing;
50
50
  const popoverId = `popover_${parent?.key}`;
51
- return html `
52
- <uui-button
53
- .disabled=${this.disabled}
54
- popovertarget=${popoverId}
55
- .label=${this.button.label}
56
- color=${parent?.color}
57
- look=${parent?.look}
58
- compact>
59
- <uui-symbol-expand
60
- class="expand-symbol"
61
- .open=${this._popoverOpen}></uui-symbol-expand>
62
- </uui-button>
63
-
64
- <uui-popover-container
65
- id=${popoverId}
66
- margin="6"
67
- placement="bottom-end"
68
- @toggle=${__classPrivateFieldGet(this, _SyncActionButtonElement_instances, "m", _SyncActionButtonElement_onPopoverToggle)}>
69
- <umb-popover-layout>
70
- <uui-scroll-container> ${buttons} </uui-scroll-container>
71
- </umb-popover-layout>
72
- </uui-popover-container>
51
+ return html `
52
+ <uui-button
53
+ .disabled=${this.disabled}
54
+ popovertarget=${popoverId}
55
+ .label=${this.button.label}
56
+ color=${parent?.color}
57
+ look=${parent?.look}
58
+ compact>
59
+ <uui-symbol-expand
60
+ class="expand-symbol"
61
+ .open=${this._popoverOpen}></uui-symbol-expand>
62
+ </uui-button>
63
+
64
+ <uui-popover-container
65
+ id=${popoverId}
66
+ margin="6"
67
+ placement="bottom-end"
68
+ @toggle=${__classPrivateFieldGet(this, _SyncActionButtonElement_instances, "m", _SyncActionButtonElement_onPopoverToggle)}>
69
+ <umb-popover-layout>
70
+ <uui-scroll-container> ${buttons} </uui-scroll-container>
71
+ </umb-popover-layout>
72
+ </uui-popover-container>
73
73
  `;
74
74
  }
75
75
  };
@@ -82,18 +82,18 @@ _SyncActionButtonElement_onClick = function _SyncActionButtonElement_onClick(ite
82
82
  _SyncActionButtonElement_onPopoverToggle = function _SyncActionButtonElement_onPopoverToggle(e) {
83
83
  this._popoverOpen = e.newState === 'open';
84
84
  };
85
- SyncActionButtonElement.styles = css `
86
- .action-button {
87
- min-width: 110px;
88
- }
89
-
90
- .expand-symbol {
91
- transform: rotate(90deg);
92
- }
93
-
94
- .expand-symbol[open] {
95
- transform: rotate(180deg);
96
- }
85
+ SyncActionButtonElement.styles = css `
86
+ .action-button {
87
+ min-width: 110px;
88
+ }
89
+
90
+ .expand-symbol {
91
+ transform: rotate(90deg);
92
+ }
93
+
94
+ .expand-symbol[open] {
95
+ transform: rotate(180deg);
96
+ }
97
97
  `;
98
98
  __decorate([
99
99
  property({ type: Object })
@@ -38,53 +38,53 @@ let uSyncFilePicker = class uSyncFilePicker extends UmbLitElement {
38
38
  this.dispatchEvent(new uSyncFilePickerChangeEvent(this._file));
39
39
  }
40
40
  render() {
41
- return html `<input
42
- @click=${(e) => e.stopPropagation()}
43
- type="file"
44
- id="file"
45
- this.accept=${this.accept}
46
- @change=${this._onFilePickerChange} />
41
+ return html `<input
42
+ @click=${(e) => e.stopPropagation()}
43
+ type="file"
44
+ id="file"
45
+ this.accept=${this.accept}
46
+ @change=${this._onFilePickerChange} />
47
47
  ${this._renderFile()} ${this._renderButton()}`;
48
48
  }
49
49
  _renderFile() {
50
50
  if (!this._file)
51
51
  return nothing;
52
- return html ` <div class="file">
53
- <div>${this._file.name}</div>
54
- <uui-button
55
- @click="${() => this._removeFile()}"
56
- compact
57
- color="danger"
58
- label="Remove">
59
- <umb-icon name="icon-trash"></umb-icon>
60
- </uui-button>
52
+ return html ` <div class="file">
53
+ <div>${this._file.name}</div>
54
+ <uui-button
55
+ @click="${() => this._removeFile()}"
56
+ compact
57
+ color="danger"
58
+ label="Remove">
59
+ <umb-icon name="icon-trash"></umb-icon>
60
+ </uui-button>
61
61
  </div>`;
62
62
  }
63
63
  _renderButton() {
64
64
  return this._file
65
65
  ? nothing
66
- : html ` <uui-button
67
- id="add-button"
68
- look="placeholder"
69
- label=${this.label}
66
+ : html ` <uui-button
67
+ id="add-button"
68
+ look="placeholder"
69
+ label=${this.label}
70
70
  @click="${this._onUpload}"></uui-button>`;
71
71
  }
72
72
  };
73
73
  uSyncFilePicker.styles = [
74
- css `
75
- .file {
76
- display: flex;
77
- align-items: center;
78
- gap: var(--uui-size-space-2);
79
- }
80
-
81
- #file {
82
- display: none;
83
- }
84
-
85
- #add-button {
86
- width: 100%;
87
- }
74
+ css `
75
+ .file {
76
+ display: flex;
77
+ align-items: center;
78
+ gap: var(--uui-size-space-2);
79
+ }
80
+
81
+ #file {
82
+ display: none;
83
+ }
84
+
85
+ #add-button {
86
+ width: 100%;
87
+ }
88
88
  `,
89
89
  ];
90
90
  __decorate([
@@ -46,22 +46,22 @@ let uSyncFileUploadElement = class uSyncFileUploadElement extends UmbLitElement
46
46
  return html ` ${this.renderFile()} ${this.renderUploadButton()} `;
47
47
  }
48
48
  renderFile() {
49
- return html `
50
- <div class="upload-box">
51
- <usync-upload-file-picker
52
- label="Select uSync Zip file"
53
- @change=${__classPrivateFieldGet(this, _uSyncFileUploadElement_instances, "m", _uSyncFileUploadElement_onFileChange)}></usync-upload-file-picker>
54
- </div>
49
+ return html `
50
+ <div class="upload-box">
51
+ <usync-upload-file-picker
52
+ label="Select uSync Zip file"
53
+ @change=${__classPrivateFieldGet(this, _uSyncFileUploadElement_instances, "m", _uSyncFileUploadElement_onFileChange)}></usync-upload-file-picker>
54
+ </div>
55
55
  `;
56
56
  }
57
57
  renderUploadButton() {
58
58
  if (!this.selected)
59
59
  return nothing;
60
- return html `<uui-button
61
- type="button"
62
- look="primary"
63
- @click="${__classPrivateFieldGet(this, _uSyncFileUploadElement_instances, "m", _uSyncFileUploadElement_onUpload)}"
64
- label="Upload"
60
+ return html `<uui-button
61
+ type="button"
62
+ look="primary"
63
+ @click="${__classPrivateFieldGet(this, _uSyncFileUploadElement_instances, "m", _uSyncFileUploadElement_onUpload)}"
64
+ label="Upload"
65
65
  .state=${this.buttonState}></uui-button>`;
66
66
  }
67
67
  };
@@ -90,20 +90,20 @@ _uSyncFileUploadElement_uploadComplete = async function _uSyncFileUploadElement_
90
90
  _uSyncFileUploadElement_onFileChange = function _uSyncFileUploadElement_onFileChange(e) {
91
91
  this.selected = e.file;
92
92
  };
93
- uSyncFileUploadElement.styles = css `
94
- :host {
95
- display: flex;
96
- justify-content: space-between;
97
- }
98
-
99
- .upload-box {
100
- flex-grow: 2;
101
- }
102
-
103
- usync-upload-file-picker {
104
- width: 100%;
105
- flex-grow: 2;
106
- }
93
+ uSyncFileUploadElement.styles = css `
94
+ :host {
95
+ display: flex;
96
+ justify-content: space-between;
97
+ }
98
+
99
+ .upload-box {
100
+ flex-grow: 2;
101
+ }
102
+
103
+ usync-upload-file-picker {
104
+ width: 100%;
105
+ flex-grow: 2;
106
+ }
107
107
  `;
108
108
  __decorate([
109
109
  state()
@@ -18,30 +18,30 @@ let uSyncImportModalDialog = class uSyncImportModalDialog extends UmbModalBaseEl
18
18
  _uSyncImportModalDialog_instances.add(this);
19
19
  }
20
20
  render() {
21
- return html `
22
- <umb-body-layout .headline=${this.localize.termOrDefault('uSync_importHeader', 'Import from file')}>
23
- ${this.renderForm()} ${this.renderResult()}
24
- </umb-body-layout>
21
+ return html `
22
+ <umb-body-layout .headline=${this.localize.termOrDefault('uSync_importHeader', 'Import from file')}>
23
+ ${this.renderForm()} ${this.renderResult()}
24
+ </umb-body-layout>
25
25
  `;
26
26
  }
27
27
  renderForm() {
28
28
  if (this.result !== undefined)
29
29
  return;
30
- return html ` ${this.localize.termOrDefault('uSync_uploadIntro', 'Select a zip file containing uSync files that you want to upload')}
31
- <usync-file-upload @uploaded=${__classPrivateFieldGet(this, _uSyncImportModalDialog_instances, "m", _uSyncImportModalDialog_onUploaded)}></usync-file-upload>
32
- <div slot="actions">
33
- <uui-button
34
- id="cancel"
35
- .label=${this.localize.term('general_close')}
36
- @click="${__classPrivateFieldGet(this, _uSyncImportModalDialog_instances, "m", _uSyncImportModalDialog_onClose)}"></uui-button>
30
+ return html ` ${this.localize.termOrDefault('uSync_uploadIntro', 'Select a zip file containing uSync files that you want to upload')}
31
+ <usync-file-upload @uploaded=${__classPrivateFieldGet(this, _uSyncImportModalDialog_instances, "m", _uSyncImportModalDialog_onUploaded)}></usync-file-upload>
32
+ <div slot="actions">
33
+ <uui-button
34
+ id="cancel"
35
+ .label=${this.localize.term('general_close')}
36
+ @click="${__classPrivateFieldGet(this, _uSyncImportModalDialog_instances, "m", _uSyncImportModalDialog_onClose)}"></uui-button>
37
37
  </div>`;
38
38
  }
39
39
  renderResult() {
40
40
  if (this.result == undefined)
41
41
  return;
42
- return html `${when(this.result.success, () => html `${this.localize.termOrDefault('uSync_uploadSuccess', 'The files have been uploaded and extracted to the uSync folder')}`, () => html `${this.localize.termOrDefault('uSync_uploadError', 'There was an error uploading the files')} ${this.result?.errors}`)}
43
- <div slot="actions">
44
- <uui-button id="continue" label="Import" @click="${__classPrivateFieldGet(this, _uSyncImportModalDialog_instances, "m", _uSyncImportModalDialog_onImport)}"></uui-button>
42
+ return html `${when(this.result.success, () => html `${this.localize.termOrDefault('uSync_uploadSuccess', 'The files have been uploaded and extracted to the uSync folder')}`, () => html `${this.localize.termOrDefault('uSync_uploadError', 'There was an error uploading the files')} ${this.result?.errors}`)}
43
+ <div slot="actions">
44
+ <uui-button id="continue" label="Import" @click="${__classPrivateFieldGet(this, _uSyncImportModalDialog_instances, "m", _uSyncImportModalDialog_onImport)}"></uui-button>
45
45
  </div>`;
46
46
  }
47
47
  };
@@ -56,14 +56,14 @@ _uSyncImportModalDialog_onImport = function _uSyncImportModalDialog_onImport() {
56
56
  _uSyncImportModalDialog_onUploaded = function _uSyncImportModalDialog_onUploaded(e) {
57
57
  this.result = e.result;
58
58
  };
59
- uSyncImportModalDialog.styles = css `
60
- umb-body-layout {
61
- max-width: 450px;
62
- }
63
-
64
- usync-file-upload {
65
- padding: 10px 0;
66
- }
59
+ uSyncImportModalDialog.styles = css `
60
+ umb-body-layout {
61
+ max-width: 450px;
62
+ }
63
+
64
+ usync-file-upload {
65
+ padding: 10px 0;
66
+ }
67
67
  `;
68
68
  __decorate([
69
69
  state()