@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
|
@@ -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 = (
|
|
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
|
};
|
package/dist/lang/en.d.ts
CHANGED
package/dist/lang/en.js
CHANGED
|
@@ -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([
|
|
@@ -18,26 +18,26 @@ let uSyncLicenceStatusView = class uSyncLicenceStatusView extends UmbElementMixi
|
|
|
18
18
|
return nothing;
|
|
19
19
|
const className = this.licenceStatus?.status.toLocaleLowerCase();
|
|
20
20
|
const icon = this.licenceStatus?.status === 'Valid' ? 'icon-check' : 'icon-alert';
|
|
21
|
-
return html ` <div class="licence-alert ${className}">
|
|
21
|
+
return html ` <div class="licence-alert ${className}">
|
|
22
22
|
<uui-icon .name=${icon}></uui-icon> ${this.licenceStatus?.message ??
|
|
23
|
-
'licenece is valid'}
|
|
24
|
-
${when(this.licenceStatus.link, () => html `<a
|
|
25
|
-
href="${this.licenceStatus?.link ?? '#'}"
|
|
26
|
-
target="_blank"
|
|
27
|
-
rel="noopener noreferrer"
|
|
28
|
-
>${this.licenceStatus?.linkTitle}</a
|
|
29
|
-
>`)}
|
|
23
|
+
'licenece is valid'}
|
|
24
|
+
${when(this.licenceStatus.link, () => html `<a
|
|
25
|
+
href="${this.licenceStatus?.link ?? '#'}"
|
|
26
|
+
target="_blank"
|
|
27
|
+
rel="noopener noreferrer"
|
|
28
|
+
>${this.licenceStatus?.linkTitle}</a
|
|
29
|
+
>`)}
|
|
30
30
|
</div>`;
|
|
31
31
|
}
|
|
32
32
|
};
|
|
33
33
|
uSyncLicenceStatusView.styles = [
|
|
34
34
|
UmbTextStyles,
|
|
35
35
|
JumooLicenceStyles,
|
|
36
|
-
css `
|
|
37
|
-
:host {
|
|
38
|
-
display: block;
|
|
39
|
-
margin-bottom: 10px;
|
|
40
|
-
}
|
|
36
|
+
css `
|
|
37
|
+
:host {
|
|
38
|
+
display: block;
|
|
39
|
+
margin-bottom: 10px;
|
|
40
|
+
}
|
|
41
41
|
`,
|
|
42
42
|
];
|
|
43
43
|
__decorate([
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
import { css } from '@umbraco-cms/backoffice/external/lit';
|
|
2
|
-
export const JumooLicenceStyles = css `
|
|
3
|
-
.licence-alert {
|
|
4
|
-
padding: 20px;
|
|
5
|
-
border-radius: var(--uui-button-border-radius, var(--uui-border-radius, 3px));
|
|
6
|
-
}
|
|
7
|
-
|
|
8
|
-
uui-icon {
|
|
9
|
-
padding-right: 10px;
|
|
10
|
-
font-size: var(--uui-type-h4-size);
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
.valid {
|
|
14
|
-
background-color: var(--uui-color-positive);
|
|
15
|
-
color: var(--uui-color-positive-contrast);
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
.invalid,
|
|
19
|
-
.expired {
|
|
20
|
-
background-color: var(--uui-color-danger);
|
|
21
|
-
color: var(--uui-color-danger-contrast);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
.trial {
|
|
25
|
-
background-color: var(--uui-color-warning);
|
|
26
|
-
color: var(--uui-color-warning-contrast);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
.licence-alert a {
|
|
30
|
-
color: var(--uui-color-positive-contrast) !important;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
.trial a {
|
|
34
|
-
color: var(--uui-color-warning-contrast) !important;
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
.invalid a,
|
|
38
|
-
.expired a {
|
|
39
|
-
color: var(--uui-color-danger-contrast) !important;
|
|
40
|
-
}
|
|
2
|
+
export const JumooLicenceStyles = css `
|
|
3
|
+
.licence-alert {
|
|
4
|
+
padding: 20px;
|
|
5
|
+
border-radius: var(--uui-button-border-radius, var(--uui-border-radius, 3px));
|
|
6
|
+
}
|
|
7
|
+
|
|
8
|
+
uui-icon {
|
|
9
|
+
padding-right: 10px;
|
|
10
|
+
font-size: var(--uui-type-h4-size);
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
.valid {
|
|
14
|
+
background-color: var(--uui-color-positive);
|
|
15
|
+
color: var(--uui-color-positive-contrast);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.invalid,
|
|
19
|
+
.expired {
|
|
20
|
+
background-color: var(--uui-color-danger);
|
|
21
|
+
color: var(--uui-color-danger-contrast);
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
.trial {
|
|
25
|
+
background-color: var(--uui-color-warning);
|
|
26
|
+
color: var(--uui-color-warning-contrast);
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
.licence-alert a {
|
|
30
|
+
color: var(--uui-color-positive-contrast) !important;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
.trial a {
|
|
34
|
+
color: var(--uui-color-warning-contrast) !important;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
.invalid a,
|
|
38
|
+
.expired a {
|
|
39
|
+
color: var(--uui-color-danger-contrast) !important;
|
|
40
|
+
}
|
|
41
41
|
`;
|
package/dist/licence/lang/en.js
CHANGED
|
@@ -9,7 +9,7 @@ export default {
|
|
|
9
9
|
licenceAutoRenews: 'This licence will auto-renew at the end of the period.',
|
|
10
10
|
licenceNotAutoRenews: 'This licence does not auto-renew, You will need to renew it manually.',
|
|
11
11
|
licenceStatus: 'uSync.Complete licence status',
|
|
12
|
-
licenceSubscriptionInfo: `<p>Your subscription licence can be managed via the link sent to you when you purchased licence</p>
|
|
12
|
+
licenceSubscriptionInfo: `<p>Your subscription licence can be managed via the link sent to you when you purchased licence</p>
|
|
13
13
|
<p>For security reasons we don't show you that information in the umbraco back office but you can request that we send the details again</p>`,
|
|
14
14
|
licenceClearHeading: 'Clear licence details?',
|
|
15
15
|
licenceClearContent: 'Do you want to remove this current licence details? Once cleared you will need to re-enter your licence details.',
|