@jumoo/usync-expansions 17.6.0 → 17.6.1-prerelease.40

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 (39) hide show
  1. package/dist/api/client/client.gen.js +104 -123
  2. package/dist/api/client/index.d.ts +2 -0
  3. package/dist/api/client/types.gen.d.ts +6 -3
  4. package/dist/api/client/utils.gen.d.ts +8 -4
  5. package/dist/api/client/utils.gen.js +3 -3
  6. package/dist/api/client.gen.d.ts +2 -2
  7. package/dist/api/client.gen.js +1 -2
  8. package/dist/api/core/auth.gen.d.ts +7 -0
  9. package/dist/api/core/params.gen.d.ts +2 -2
  10. package/dist/api/core/params.gen.js +23 -14
  11. package/dist/api/core/queryKeySerializer.gen.d.ts +1 -1
  12. package/dist/api/core/serverSentEvents.gen.d.ts +1 -1
  13. package/dist/api/core/serverSentEvents.gen.js +3 -4
  14. package/dist/api/core/types.gen.d.ts +5 -0
  15. package/dist/api/sdk.gen.d.ts +16 -16
  16. package/dist/api/types.gen.d.ts +2 -0
  17. package/dist/background/components/pending-list.element.js +10 -10
  18. package/dist/background/components/pipelines-table.element.js +16 -16
  19. package/dist/background/components/process-list.element.js +6 -6
  20. package/dist/background/components/queue-table.element.js +11 -11
  21. package/dist/background/workspace/background-workspace-element.js +19 -19
  22. package/dist/components/report-summary-view.js +90 -90
  23. package/dist/components/usync-property-layout.js +93 -93
  24. package/dist/index.js +9 -1
  25. package/dist/licence/components/licence-notice.js +7 -7
  26. package/dist/licence/components/licence-status.view.js +13 -13
  27. package/dist/licence/components/styles.js +39 -39
  28. package/dist/licence/lang/en.js +1 -1
  29. package/dist/licence/licence.element.js +124 -124
  30. package/dist/restore/components/restore-point-table.element.js +21 -21
  31. package/dist/restore/lang/en.js +11 -11
  32. package/dist/restore/steps/restore-create-complete.js +9 -9
  33. package/dist/restore/steps/restore-create-element.js +31 -31
  34. package/dist/restore/steps/restore-report-config-element.js +44 -44
  35. package/dist/restore/workspace/restore.workspace-view.element.js +42 -42
  36. package/dist/restore/workspace/restore.workspace.element.js +25 -25
  37. package/package.json +55 -54
  38. package/dist/hey-api.d.ts +0 -11
  39. package/dist/hey-api.js +0 -14
@@ -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()
@@ -24,23 +24,23 @@ let uSyncPropertyLayout = class uSyncPropertyLayout extends UmbLitElement {
24
24
  }
25
25
  render() {
26
26
  // TODO: Only show alias on label if user has access to DocumentType within settings:
27
- return html `
28
- <div id="headerColumn">
29
- <uui-label id="label" title=${this.alias} ?required=${this.mandatory}>
30
- ${this.localize.string(this.label)}
31
- ${when(this.invalid, () => html `<div id="invalid-badge">
32
- <uui-badge color="invalid" attention>!</uui-badge>
33
- </div>`)}
34
- </uui-label>
35
- <slot name="action-menu"></slot>
36
- ${__classPrivateFieldGet(this, _uSyncPropertyLayout_instances, "m", _uSyncPropertyLayout_renderDescription).call(this)}
37
- <slot name="description"></slot>
38
- </div>
39
- <div id="editorColumn">
40
- <umb-form-validation-message>
41
- <slot name="editor"></slot>
42
- </umb-form-validation-message>
43
- </div>
27
+ return html `
28
+ <div id="headerColumn">
29
+ <uui-label id="label" title=${this.alias} ?required=${this.mandatory}>
30
+ ${this.localize.string(this.label)}
31
+ ${when(this.invalid, () => html `<div id="invalid-badge">
32
+ <uui-badge color="invalid" attention>!</uui-badge>
33
+ </div>`)}
34
+ </uui-label>
35
+ <slot name="action-menu"></slot>
36
+ ${__classPrivateFieldGet(this, _uSyncPropertyLayout_instances, "m", _uSyncPropertyLayout_renderDescription).call(this)}
37
+ <slot name="description"></slot>
38
+ </div>
39
+ <div id="editorColumn">
40
+ <umb-form-validation-message>
41
+ <slot name="editor"></slot>
42
+ </umb-form-validation-message>
43
+ </div>
44
44
  `;
45
45
  }
46
46
  };
@@ -53,86 +53,86 @@ _uSyncPropertyLayout_renderDescription = function _uSyncPropertyLayout_renderDes
53
53
  label: this.label,
54
54
  description: this.description,
55
55
  };
56
- return html `<umb-ufm-render
57
- id="description"
58
- .markdown=${this.description}
56
+ return html `<umb-ufm-render
57
+ id="description"
58
+ .markdown=${this.description}
59
59
  .value=${ufmValue}></umb-ufm-render>`;
60
60
  };
61
61
  uSyncPropertyLayout.styles = [
62
62
  UmbTextStyles,
63
- css `
64
- :host {
65
- display: grid;
66
- grid-template-columns: 100px minmax(0, 1fr);
67
- column-gap: var(--uui-size-layout-2);
68
- padding: var(--uui-size-4) 0;
69
- container-type: inline-size;
70
- }
71
-
72
- :host(:not([alignment='left'])) {
73
- grid-template-columns: 300px minmax(0, 1fr);
74
- }
75
-
76
- :host > div {
77
- grid-column: span 2;
78
- }
79
-
80
- :host(:not([orientation='vertical'])) > div {
81
- grid-column: span 1;
82
- }
83
-
84
- #headerColumn {
85
- position: relative;
86
- height: min-content;
87
- top: var(--umb-property-layout-header-top);
88
- }
89
-
90
- :host(:not([orientation='vertical'])) #headerColumn {
91
- position: sticky;
92
- top: var(--umb-property-layout-header-top, calc(var(--uui-size-space-2) * -1));
93
- }
94
-
95
- :host {
96
- /* TODO: Temp solution to not get a yellow asterisk when invalid. */
97
- --umb-temp-uui-color-invalid: var(--uui-color-invalid);
98
- }
99
-
100
- #label {
101
- position: relative;
102
- word-break: break-word;
103
- /* TODO: Temp solution to not get a yellow asterisk when invalid. */
104
- --uui-color-invalid: var(--uui-color-danger);
105
- }
106
- #invalid-badge {
107
- display: inline-block;
108
- position: relative;
109
- width: 18px;
110
- height: 1em;
111
- margin-right: 6px;
112
- }
113
- uui-badge {
114
- //height: var(--uui-color-invalid);
115
- background-color: var(--umb-temp-uui-color-invalid);
116
- color: var(--uui-color-invalid-contrast);
117
- }
118
-
119
- #description {
120
- color: var(--uui-color-text-alt);
121
- }
122
-
123
- #editorColumn {
124
- display: flex;
125
- align-items: center;
126
- margin-top: var(--uui-size-space-3);
127
- }
128
-
129
- :host(:not([alignment='left'])) #editorColumn {
130
- justify-content: flex-end;
131
- }
132
-
133
- :host(:not([orientation='vertical'])) #editorColumn {
134
- margin-top: 0;
135
- }
63
+ css `
64
+ :host {
65
+ display: grid;
66
+ grid-template-columns: 100px minmax(0, 1fr);
67
+ column-gap: var(--uui-size-layout-2);
68
+ padding: var(--uui-size-4) 0;
69
+ container-type: inline-size;
70
+ }
71
+
72
+ :host(:not([alignment='left'])) {
73
+ grid-template-columns: 300px minmax(0, 1fr);
74
+ }
75
+
76
+ :host > div {
77
+ grid-column: span 2;
78
+ }
79
+
80
+ :host(:not([orientation='vertical'])) > div {
81
+ grid-column: span 1;
82
+ }
83
+
84
+ #headerColumn {
85
+ position: relative;
86
+ height: min-content;
87
+ top: var(--umb-property-layout-header-top);
88
+ }
89
+
90
+ :host(:not([orientation='vertical'])) #headerColumn {
91
+ position: sticky;
92
+ top: var(--umb-property-layout-header-top, calc(var(--uui-size-space-2) * -1));
93
+ }
94
+
95
+ :host {
96
+ /* TODO: Temp solution to not get a yellow asterisk when invalid. */
97
+ --umb-temp-uui-color-invalid: var(--uui-color-invalid);
98
+ }
99
+
100
+ #label {
101
+ position: relative;
102
+ word-break: break-word;
103
+ /* TODO: Temp solution to not get a yellow asterisk when invalid. */
104
+ --uui-color-invalid: var(--uui-color-danger);
105
+ }
106
+ #invalid-badge {
107
+ display: inline-block;
108
+ position: relative;
109
+ width: 18px;
110
+ height: 1em;
111
+ margin-right: 6px;
112
+ }
113
+ uui-badge {
114
+ //height: var(--uui-color-invalid);
115
+ background-color: var(--umb-temp-uui-color-invalid);
116
+ color: var(--uui-color-invalid-contrast);
117
+ }
118
+
119
+ #description {
120
+ color: var(--uui-color-text-alt);
121
+ }
122
+
123
+ #editorColumn {
124
+ display: flex;
125
+ align-items: center;
126
+ margin-top: var(--uui-size-space-3);
127
+ }
128
+
129
+ :host(:not([alignment='left'])) #editorColumn {
130
+ justify-content: flex-end;
131
+ }
132
+
133
+ :host(:not([orientation='vertical'])) #editorColumn {
134
+ margin-top: 0;
135
+ }
136
136
  `,
137
137
  ];
138
138
  __decorate([
package/dist/index.js CHANGED
@@ -1,3 +1,5 @@
1
+ import { UMB_AUTH_CONTEXT } from '@umbraco-cms/backoffice/auth';
2
+ import { client } from './api/client.gen.js';
1
3
  import './restore/index.js';
2
4
  import './components/index.js';
3
5
  import { manifests as localizations } from './lang/manifest';
@@ -6,7 +8,7 @@ import { manifests as itemManifests } from './items/manifests';
6
8
  import { manifests as restoreManifests } from './restore/manifest';
7
9
  import { manifests as backgroundManifests } from './background/manifest';
8
10
  export * from './exports.js';
9
- export const onInit = (_host, extensionRegistry) => {
11
+ export const onInit = async (host, extensionRegistry) => {
10
12
  extensionRegistry.registerMany([
11
13
  ...licenceManifests,
12
14
  ...itemManifests,
@@ -16,4 +18,10 @@ export const onInit = (_host, extensionRegistry) => {
16
18
  ]);
17
19
  // remove the add-ons dashboard workspace, complete is now installed.
18
20
  extensionRegistry.exclude('usync.workspace.addons');
21
+ const authContext = await host.getContext(UMB_AUTH_CONTEXT);
22
+ if (!authContext) {
23
+ console.warn('UMB_AUTH_CONTEXT not available — extension API client will not be authenticated');
24
+ return;
25
+ }
26
+ authContext.configureClient(client);
19
27
  };
@@ -31,18 +31,18 @@ let uSyncLicenceNoticeElement = class uSyncLicenceNoticeElement extends UmbLitEl
31
31
  const messageString = `usynccomplete_licence${status}`;
32
32
  const className = status.toLowerCase();
33
33
  const icon = status === 'Invalid' ? 'icon-wrong' : 'icon-alert';
34
- return html `<div class="licence-alert ${className}">
35
- <uui-icon .name=${icon}></uui-icon>
36
- <umb-localize key="${messageString}"></umb-localize>
34
+ return html `<div class="licence-alert ${className}">
35
+ <uui-icon .name=${icon}></uui-icon>
36
+ <umb-localize key="${messageString}"></umb-localize>
37
37
  </div>`;
38
38
  }
39
39
  };
40
40
  uSyncLicenceNoticeElement.styles = [
41
41
  JumooLicenceStyles,
42
- css `
43
- .licence-alert {
44
- display: block;
45
- }
42
+ css `
43
+ .licence-alert {
44
+ display: block;
45
+ }
46
46
  `,
47
47
  ];
48
48
  __decorate([