@progressive-development/pd-wizard 0.9.1 → 1.0.0
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/LICENSE +21 -2
- package/README.md +33 -57
- package/dist/default-step-address/DefaultStepAddress.d.ts +26 -0
- package/dist/default-step-address/DefaultStepAddress.d.ts.map +1 -0
- package/dist/default-step-address/DefaultStepAddress.js +66 -0
- package/dist/default-step-address/default-step-address.d.ts +2 -0
- package/dist/default-step-address/default-step-address.d.ts.map +1 -0
- package/dist/default-step-address.d.ts +2 -0
- package/dist/default-step-address.js +1 -0
- package/dist/default-step-summary/DefaultStepSummary.d.ts +58 -0
- package/dist/default-step-summary/DefaultStepSummary.d.ts.map +1 -0
- package/dist/default-step-summary/DefaultStepSummary.js +77 -0
- package/dist/default-step-summary/default-step-summary.d.ts +3 -0
- package/dist/default-step-summary/default-step-summary.d.ts.map +1 -0
- package/dist/default-step-summary.d.ts +2 -0
- package/dist/default-step-summary.js +1 -0
- package/dist/default-wizard/DefaultWizard.d.ts +57 -0
- package/dist/default-wizard/DefaultWizard.d.ts.map +1 -0
- package/dist/default-wizard/DefaultWizard.js +270 -0
- package/dist/default-wizard/default-wizard.d.ts +3 -0
- package/dist/default-wizard/default-wizard.d.ts.map +1 -0
- package/dist/default-wizard.d.ts +2 -0
- package/dist/default-wizard.js +1 -0
- package/dist/generated/locales/be.d.ts +17 -0
- package/dist/generated/locales/be.d.ts.map +1 -1
- package/dist/generated/locales/de.d.ts +17 -0
- package/dist/generated/locales/de.d.ts.map +1 -1
- package/dist/generated/locales/en.d.ts +17 -0
- package/dist/generated/locales/en.d.ts.map +1 -1
- package/dist/index.d.ts +10 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/locales/be.js +20 -1
- package/dist/locales/de.js +20 -1
- package/dist/locales/en.js +20 -1
- package/dist/pd-components/pd-content/dist/pd-notice-box/PdNoticeBox.js +224 -0
- package/dist/pd-components/pd-content/dist/pd-notice-box/pd-notice-box.js +8 -0
- package/dist/pd-default-wizard-step/PdDefaultWizardStep.d.ts +85 -0
- package/dist/pd-default-wizard-step/PdDefaultWizardStep.d.ts.map +1 -0
- package/dist/pd-default-wizard-step/PdDefaultWizardStep.js +167 -0
- package/dist/pd-default-wizard-step/pd-default-wizard-step.d.ts +2 -0
- package/dist/pd-default-wizard-step/pd-default-wizard-step.d.ts.map +1 -0
- package/dist/pd-default-wizard-step.d.ts +2 -0
- package/dist/pd-default-wizard-step.js +1 -0
- package/dist/pd-utils/dist/date-helper.js +35 -0
- package/dist/pd-utils/dist/locale-format.js +6 -0
- package/dist/pd-wizard/PdWizard.d.ts +36 -23
- package/dist/pd-wizard/PdWizard.d.ts.map +1 -1
- package/dist/pd-wizard/PdWizard.js +91 -145
- package/dist/pd-wizard/pd-steps/PdSteps.d.ts +26 -10
- package/dist/pd-wizard/pd-steps/PdSteps.d.ts.map +1 -1
- package/dist/pd-wizard/pd-steps/PdSteps.js +126 -62
- package/dist/pd-wizard/pd-steps/pd-steps.stories.d.ts +45 -37
- package/dist/pd-wizard/pd-steps/pd-steps.stories.d.ts.map +1 -1
- package/dist/pd-wizard/pd-wizard.stories.d.ts +46 -7
- package/dist/pd-wizard/pd-wizard.stories.d.ts.map +1 -1
- package/dist/wizard-close-popup/WizardClosePopup.d.ts +12 -0
- package/dist/wizard-close-popup/WizardClosePopup.d.ts.map +1 -0
- package/dist/wizard-close-popup/WizardClosePopup.js +56 -0
- package/dist/wizard-close-popup/wizard-close-popup.d.ts +2 -0
- package/dist/wizard-close-popup/wizard-close-popup.d.ts.map +1 -0
- package/dist/wizard-close-popup/wizard-close-popup.stories.d.ts +39 -0
- package/dist/wizard-close-popup/wizard-close-popup.stories.d.ts.map +1 -0
- package/dist/wizard-close-popup.d.ts +2 -0
- package/dist/wizard-close-popup.js +1 -0
- package/dist/wizard-reload-popup/WizardReloadPopup.d.ts +19 -0
- package/dist/wizard-reload-popup/WizardReloadPopup.d.ts.map +1 -0
- package/dist/wizard-reload-popup/WizardReloadPopup.js +88 -0
- package/dist/wizard-reload-popup/wizard-reload-popup.d.ts +3 -0
- package/dist/wizard-reload-popup/wizard-reload-popup.d.ts.map +1 -0
- package/dist/wizard-reload-popup/wizard-reload-popup.stories.d.ts +42 -0
- package/dist/wizard-reload-popup/wizard-reload-popup.stories.d.ts.map +1 -0
- package/dist/wizard-reload-popup.d.ts +2 -0
- package/dist/wizard-reload-popup.js +1 -0
- package/package.json +19 -6
|
@@ -0,0 +1,270 @@
|
|
|
1
|
+
import { LitElement, css, html } from 'lit';
|
|
2
|
+
import { state } from 'lit/decorators.js';
|
|
3
|
+
import { msg } from '@lit/localize';
|
|
4
|
+
import '@progressive-development/pd-dialog/pd-popup-dialog';
|
|
5
|
+
import { EVENT_CANCEL, EVENT_CONFIRM } from '@progressive-development/pd-dialog';
|
|
6
|
+
import '../pd-wizard.js';
|
|
7
|
+
import { WizardReloadPopup } from '../wizard-reload-popup/WizardReloadPopup.js';
|
|
8
|
+
import { WizardClosePopup } from '../wizard-close-popup/WizardClosePopup.js';
|
|
9
|
+
|
|
10
|
+
var __defProp = Object.defineProperty;
|
|
11
|
+
var __decorateClass = (decorators, target, key, kind) => {
|
|
12
|
+
var result = void 0 ;
|
|
13
|
+
for (var i = decorators.length - 1, decorator; i >= 0; i--)
|
|
14
|
+
if (decorator = decorators[i])
|
|
15
|
+
result = (decorator(target, key, result) ) || result;
|
|
16
|
+
if (result) __defProp(target, key, result);
|
|
17
|
+
return result;
|
|
18
|
+
};
|
|
19
|
+
const RUNNING_WIZARD_STORAGE_ELEMENTS = "pd.wizard.local.storage";
|
|
20
|
+
class DefaultWizard extends LitElement {
|
|
21
|
+
constructor() {
|
|
22
|
+
super(...arguments);
|
|
23
|
+
/** Scroll to top of page after step change. Set to `false` when used inside a modal. */
|
|
24
|
+
this._scrollToTopOnStepChange = true;
|
|
25
|
+
this._currentOrderStep = 1;
|
|
26
|
+
}
|
|
27
|
+
static {
|
|
28
|
+
// ---------------------------------------------------------------------------
|
|
29
|
+
// Styles
|
|
30
|
+
// ---------------------------------------------------------------------------
|
|
31
|
+
this.styles = css`
|
|
32
|
+
:host {
|
|
33
|
+
display: block;
|
|
34
|
+
}
|
|
35
|
+
`;
|
|
36
|
+
}
|
|
37
|
+
// ---------------------------------------------------------------------------
|
|
38
|
+
// Lifecycle
|
|
39
|
+
// ---------------------------------------------------------------------------
|
|
40
|
+
update(changedProps) {
|
|
41
|
+
if (changedProps.has("_withLocalStorageId") && this._withLocalStorageId) {
|
|
42
|
+
this._reloadFromStorage(this._withLocalStorageId);
|
|
43
|
+
}
|
|
44
|
+
super.update(changedProps);
|
|
45
|
+
}
|
|
46
|
+
// ---------------------------------------------------------------------------
|
|
47
|
+
// Render
|
|
48
|
+
// ---------------------------------------------------------------------------
|
|
49
|
+
render() {
|
|
50
|
+
return html`
|
|
51
|
+
<pd-wizard
|
|
52
|
+
id="wizardId"
|
|
53
|
+
currentNumber="${this._currentOrderStep}"
|
|
54
|
+
.wizardSteps="${this._wizardSteps}"
|
|
55
|
+
@next-step="${this._nextStep}"
|
|
56
|
+
@previous-step="${this._previousStep}"
|
|
57
|
+
@submit-wizard="${this._nextStep}"
|
|
58
|
+
@go-to="${this._goToStep}"
|
|
59
|
+
@close-wizard="${this._closeWizardRequest}"
|
|
60
|
+
@wizard-step-update="${this._doStorageEventUpdate}"
|
|
61
|
+
>
|
|
62
|
+
${this._renderSteps()}
|
|
63
|
+
</pd-wizard>
|
|
64
|
+
`;
|
|
65
|
+
}
|
|
66
|
+
// ---------------------------------------------------------------------------
|
|
67
|
+
// Navigation
|
|
68
|
+
// ---------------------------------------------------------------------------
|
|
69
|
+
_nextStep(e) {
|
|
70
|
+
const setNextStep = () => {
|
|
71
|
+
if (this._currentOrderStep < this._wizardSteps.length) {
|
|
72
|
+
this._currentOrderStep += 1;
|
|
73
|
+
if (this._withLocalStorageId) {
|
|
74
|
+
this._doStorageUpdate();
|
|
75
|
+
}
|
|
76
|
+
this._scrollToTop();
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
const currentStepEl = this.shadowRoot?.getElementById(
|
|
80
|
+
`wiz${this._currentOrderStep}Id`
|
|
81
|
+
);
|
|
82
|
+
if (currentStepEl?.valid) {
|
|
83
|
+
this._orderFormData = currentStepEl.setFormData(this._orderFormData);
|
|
84
|
+
if (this._wizardSteps.length === this._currentOrderStep) {
|
|
85
|
+
this._submitWizard();
|
|
86
|
+
} else {
|
|
87
|
+
setNextStep();
|
|
88
|
+
}
|
|
89
|
+
} else {
|
|
90
|
+
currentStepEl?.triggerValidate();
|
|
91
|
+
}
|
|
92
|
+
e.stopPropagation();
|
|
93
|
+
}
|
|
94
|
+
_previousStep(e) {
|
|
95
|
+
if (this._currentOrderStep > 1) {
|
|
96
|
+
this._currentOrderStep -= 1;
|
|
97
|
+
this._scrollToTop();
|
|
98
|
+
}
|
|
99
|
+
e.stopPropagation();
|
|
100
|
+
}
|
|
101
|
+
_goToStep(e) {
|
|
102
|
+
const stepNr = e.detail.step;
|
|
103
|
+
if (stepNr > 0 && stepNr <= this._wizardSteps.length) {
|
|
104
|
+
this._currentOrderStep = Number(stepNr);
|
|
105
|
+
this._scrollToTop();
|
|
106
|
+
}
|
|
107
|
+
e.stopPropagation();
|
|
108
|
+
}
|
|
109
|
+
// ---------------------------------------------------------------------------
|
|
110
|
+
// Utilities
|
|
111
|
+
// ---------------------------------------------------------------------------
|
|
112
|
+
/** Scroll to top of page after step change. Disabled when `_scrollToTopOnStepChange` is false. */
|
|
113
|
+
_scrollToTop() {
|
|
114
|
+
if (!this._scrollToTopOnStepChange) return;
|
|
115
|
+
window.setTimeout(() => {
|
|
116
|
+
window.scrollTo({
|
|
117
|
+
top: 0,
|
|
118
|
+
left: 0,
|
|
119
|
+
behavior: "smooth"
|
|
120
|
+
});
|
|
121
|
+
}, 100);
|
|
122
|
+
}
|
|
123
|
+
// ---------------------------------------------------------------------------
|
|
124
|
+
// Close Handling
|
|
125
|
+
// ---------------------------------------------------------------------------
|
|
126
|
+
_closeWizardRequest() {
|
|
127
|
+
if (this._withLocalStorageId) {
|
|
128
|
+
const popup = new WizardClosePopup();
|
|
129
|
+
popup.withStorage = true;
|
|
130
|
+
popup.confirmButtonText = msg("Speichern", {
|
|
131
|
+
id: "pdWizard.storage.close.popup.ok"
|
|
132
|
+
});
|
|
133
|
+
popup.cancelButtonText = msg("Verwerfen", {
|
|
134
|
+
id: "pdWizard.storage.close.popup.cancel"
|
|
135
|
+
});
|
|
136
|
+
popup.addEventListener(EVENT_CANCEL, () => {
|
|
137
|
+
this._removeFromStorage();
|
|
138
|
+
this.shadowRoot?.removeChild(popup);
|
|
139
|
+
this._closeWizard();
|
|
140
|
+
});
|
|
141
|
+
popup.addEventListener(EVENT_CONFIRM, () => {
|
|
142
|
+
this.shadowRoot?.removeChild(popup);
|
|
143
|
+
this._closeWizard();
|
|
144
|
+
});
|
|
145
|
+
this.shadowRoot?.appendChild(popup);
|
|
146
|
+
} else {
|
|
147
|
+
const popup = new WizardClosePopup();
|
|
148
|
+
popup.withStorage = false;
|
|
149
|
+
popup.confirmButtonText = msg("Verwerfen", {
|
|
150
|
+
id: "pdWizard.close.popup.ok"
|
|
151
|
+
});
|
|
152
|
+
popup.cancelButtonText = msg("Zurück", {
|
|
153
|
+
id: "pdWizard.close.popup.cancel"
|
|
154
|
+
});
|
|
155
|
+
popup.addEventListener(EVENT_CANCEL, () => {
|
|
156
|
+
this.shadowRoot?.removeChild(popup);
|
|
157
|
+
});
|
|
158
|
+
popup.addEventListener(EVENT_CONFIRM, () => {
|
|
159
|
+
this.shadowRoot?.removeChild(popup);
|
|
160
|
+
this._closeWizard();
|
|
161
|
+
});
|
|
162
|
+
this.shadowRoot?.appendChild(popup);
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
// ---------------------------------------------------------------------------
|
|
166
|
+
// Storage
|
|
167
|
+
// ---------------------------------------------------------------------------
|
|
168
|
+
_reloadFromStorage(storageKey) {
|
|
169
|
+
this._logger?.debug(`call _reloadFromStorage ${storageKey}`);
|
|
170
|
+
if (storageKey) {
|
|
171
|
+
const storageEl = this.getWizardStorage()[storageKey];
|
|
172
|
+
this._logger?.debug("reload storageEl", storageEl);
|
|
173
|
+
if (storageEl && storageEl.orderFormData !== void 0) {
|
|
174
|
+
const popup = new WizardReloadPopup();
|
|
175
|
+
popup.reloadItem = storageEl;
|
|
176
|
+
popup.confirmButtonText = msg("Fortsetzen", {
|
|
177
|
+
id: "pdWizard.reload.popup.ok"
|
|
178
|
+
});
|
|
179
|
+
popup.cancelButtonText = msg("Verwerfen", {
|
|
180
|
+
id: "pdWizard.reload.popup.cancel"
|
|
181
|
+
});
|
|
182
|
+
popup.addEventListener(EVENT_CANCEL, () => {
|
|
183
|
+
this._removeFromStorage();
|
|
184
|
+
this.shadowRoot?.removeChild(popup);
|
|
185
|
+
});
|
|
186
|
+
popup.addEventListener(EVENT_CONFIRM, () => {
|
|
187
|
+
this._logger?.debug(
|
|
188
|
+
`Reload storage element from ${storageEl.timestamp}`
|
|
189
|
+
);
|
|
190
|
+
this._orderFormData = storageEl.orderFormData;
|
|
191
|
+
this._currentOrderStep = storageEl.wizardStep;
|
|
192
|
+
this.shadowRoot?.removeChild(popup);
|
|
193
|
+
for (let stepNr = 1; stepNr <= this._wizardSteps.length; stepNr += 1) {
|
|
194
|
+
const stepId = `wiz${stepNr}Id`;
|
|
195
|
+
const stepElement = this.shadowRoot?.getElementById(stepId);
|
|
196
|
+
if (stepElement && typeof stepElement.reloadFromOrder === "function") {
|
|
197
|
+
stepElement.reloadFromOrder(this._orderFormData);
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
});
|
|
201
|
+
this.shadowRoot?.appendChild(popup);
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
_doStorageUpdate(preparedOrderForm) {
|
|
206
|
+
if (this._withLocalStorageId) {
|
|
207
|
+
const storageWizard = this.getWizardStorage();
|
|
208
|
+
storageWizard[this._withLocalStorageId] = {
|
|
209
|
+
orderFormData: preparedOrderForm || this._orderFormData,
|
|
210
|
+
wizardStep: this._currentOrderStep,
|
|
211
|
+
timestamp: (/* @__PURE__ */ new Date()).toUTCString()
|
|
212
|
+
};
|
|
213
|
+
localStorage.setItem(
|
|
214
|
+
RUNNING_WIZARD_STORAGE_ELEMENTS,
|
|
215
|
+
JSON.stringify(storageWizard)
|
|
216
|
+
);
|
|
217
|
+
this._logger?.debug(
|
|
218
|
+
`Update wizard local storage for key ${this._withLocalStorageId}`
|
|
219
|
+
);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
_removeFromStorage() {
|
|
223
|
+
if (this._withLocalStorageId) {
|
|
224
|
+
const storageWizard = this.getWizardStorage();
|
|
225
|
+
delete storageWizard[this._withLocalStorageId];
|
|
226
|
+
localStorage.setItem(
|
|
227
|
+
RUNNING_WIZARD_STORAGE_ELEMENTS,
|
|
228
|
+
JSON.stringify(storageWizard)
|
|
229
|
+
);
|
|
230
|
+
this._logger?.debug(
|
|
231
|
+
`Remove wizard local storage for key ${this._withLocalStorageId}`
|
|
232
|
+
);
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
getWizardStorage() {
|
|
236
|
+
const storageEl = localStorage.getItem(RUNNING_WIZARD_STORAGE_ELEMENTS);
|
|
237
|
+
return storageEl ? JSON.parse(storageEl) : {};
|
|
238
|
+
}
|
|
239
|
+
_doStorageEventUpdate(event) {
|
|
240
|
+
if (!this._withLocalStorageId) {
|
|
241
|
+
return;
|
|
242
|
+
}
|
|
243
|
+
if (event.detail) {
|
|
244
|
+
this._logger?.debug(
|
|
245
|
+
"event detail set, store prepared data: ",
|
|
246
|
+
event.detail
|
|
247
|
+
);
|
|
248
|
+
const preparedOrder = {
|
|
249
|
+
...this._orderFormData || {},
|
|
250
|
+
...event.detail
|
|
251
|
+
};
|
|
252
|
+
this._doStorageUpdate(preparedOrder);
|
|
253
|
+
}
|
|
254
|
+
event.stopPropagation();
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
__decorateClass([
|
|
258
|
+
state()
|
|
259
|
+
], DefaultWizard.prototype, "_wizardSteps");
|
|
260
|
+
__decorateClass([
|
|
261
|
+
state()
|
|
262
|
+
], DefaultWizard.prototype, "_currentOrderStep");
|
|
263
|
+
__decorateClass([
|
|
264
|
+
state()
|
|
265
|
+
], DefaultWizard.prototype, "_orderFormData");
|
|
266
|
+
__decorateClass([
|
|
267
|
+
state()
|
|
268
|
+
], DefaultWizard.prototype, "_withLocalStorageId");
|
|
269
|
+
|
|
270
|
+
export { DefaultWizard };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default-wizard.d.ts","sourceRoot":"","sources":["../../src/default-wizard/default-wizard.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACnD,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { DefaultWizard } from './default-wizard/DefaultWizard.js';
|
|
@@ -2,5 +2,22 @@ export declare const templates: {
|
|
|
2
2
|
"pd.wizard.button.back": string;
|
|
3
3
|
"pd.wizard.button.next": string;
|
|
4
4
|
"pd.wizard.button.send": string;
|
|
5
|
+
"pd.wizard.close.aria": string;
|
|
6
|
+
"pdWizard.close.popup.cancel": string;
|
|
7
|
+
"pdWizard.close.popup.noStorage.content": string;
|
|
8
|
+
"pdWizard.close.popup.ok": string;
|
|
9
|
+
"pdWizard.close.popup.storage.content": string;
|
|
10
|
+
"pdWizard.close.popup.title": string;
|
|
11
|
+
"pdWizard.reload.popup.cancel": string;
|
|
12
|
+
"pdWizard.reload.popup.lastModified": string;
|
|
13
|
+
"pdWizard.reload.popup.ok": string;
|
|
14
|
+
"pdWizard.reload.popup.title": string;
|
|
15
|
+
"pdWizard.storage.close.popup.cancel": string;
|
|
16
|
+
"pdWizard.storage.close.popup.ok": string;
|
|
17
|
+
"pd.steps.aria.label": string;
|
|
18
|
+
"pd.steps.aria.passed": import('@lit/localize').StrResult;
|
|
19
|
+
"pd.steps.aria.current": import('@lit/localize').StrResult;
|
|
20
|
+
"pd.steps.aria.pending": import('@lit/localize').StrResult;
|
|
21
|
+
"pdWizard.reload.popup.warning": string;
|
|
5
22
|
};
|
|
6
23
|
//# sourceMappingURL=be.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"be.d.ts","sourceRoot":"","sources":["../../../src/generated/locales/be.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"be.d.ts","sourceRoot":"","sources":["../../../src/generated/locales/be.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;CAqBrB,CAAC"}
|
|
@@ -1,6 +1,23 @@
|
|
|
1
1
|
export declare const templates: {
|
|
2
|
+
"pd.steps.aria.label": string;
|
|
3
|
+
"pd.steps.aria.passed": import('@lit/localize').StrResult;
|
|
4
|
+
"pd.steps.aria.current": import('@lit/localize').StrResult;
|
|
5
|
+
"pd.steps.aria.pending": import('@lit/localize').StrResult;
|
|
6
|
+
"pd.wizard.close.aria": string;
|
|
2
7
|
"pd.wizard.button.back": string;
|
|
3
8
|
"pd.wizard.button.next": string;
|
|
4
9
|
"pd.wizard.button.send": string;
|
|
10
|
+
"pdWizard.reload.popup.title": string;
|
|
11
|
+
"pdWizard.reload.popup.lastModified": string;
|
|
12
|
+
"pdWizard.reload.popup.warning": string;
|
|
13
|
+
"pdWizard.close.popup.title": string;
|
|
14
|
+
"pdWizard.close.popup.storage.content": string;
|
|
15
|
+
"pdWizard.close.popup.noStorage.content": string;
|
|
16
|
+
"pdWizard.storage.close.popup.ok": string;
|
|
17
|
+
"pdWizard.storage.close.popup.cancel": string;
|
|
18
|
+
"pdWizard.close.popup.ok": string;
|
|
19
|
+
"pdWizard.close.popup.cancel": string;
|
|
20
|
+
"pdWizard.reload.popup.ok": string;
|
|
21
|
+
"pdWizard.reload.popup.cancel": string;
|
|
5
22
|
};
|
|
6
23
|
//# sourceMappingURL=de.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../src/generated/locales/de.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"de.d.ts","sourceRoot":"","sources":["../../../src/generated/locales/de.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;CAqBrB,CAAC"}
|
|
@@ -2,5 +2,22 @@ export declare const templates: {
|
|
|
2
2
|
"pd.wizard.button.back": string;
|
|
3
3
|
"pd.wizard.button.next": string;
|
|
4
4
|
"pd.wizard.button.send": string;
|
|
5
|
+
"pd.wizard.close.aria": string;
|
|
6
|
+
"pdWizard.close.popup.cancel": string;
|
|
7
|
+
"pdWizard.close.popup.noStorage.content": string;
|
|
8
|
+
"pdWizard.close.popup.ok": string;
|
|
9
|
+
"pdWizard.close.popup.storage.content": string;
|
|
10
|
+
"pdWizard.close.popup.title": string;
|
|
11
|
+
"pdWizard.reload.popup.cancel": string;
|
|
12
|
+
"pdWizard.reload.popup.lastModified": string;
|
|
13
|
+
"pdWizard.reload.popup.ok": string;
|
|
14
|
+
"pdWizard.reload.popup.title": string;
|
|
15
|
+
"pdWizard.reload.popup.warning": string;
|
|
16
|
+
"pdWizard.storage.close.popup.cancel": string;
|
|
17
|
+
"pdWizard.storage.close.popup.ok": string;
|
|
18
|
+
"pd.steps.aria.label": string;
|
|
19
|
+
"pd.steps.aria.passed": import('@lit/localize').StrResult;
|
|
20
|
+
"pd.steps.aria.current": import('@lit/localize').StrResult;
|
|
21
|
+
"pd.steps.aria.pending": import('@lit/localize').StrResult;
|
|
5
22
|
};
|
|
6
23
|
//# sourceMappingURL=en.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/generated/locales/en.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../../src/generated/locales/en.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;CAqBrB,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
export { PdWizard } from './pd-wizard/pd-wizard.js';
|
|
2
|
+
export { PdSteps } from './pd-wizard/pd-steps/pd-steps.js';
|
|
3
|
+
export { DefaultWizard } from './default-wizard/default-wizard.js';
|
|
4
|
+
export type { WizardStep, WizardLogger, } from './default-wizard/default-wizard.js';
|
|
5
|
+
export { PdDefaultWizardStep } from './pd-default-wizard-step/pd-default-wizard-step.js';
|
|
6
|
+
export { DefaultStepAddress } from './default-step-address/default-step-address.js';
|
|
7
|
+
export { DefaultStepSummary } from './default-step-summary/default-step-summary.js';
|
|
8
|
+
export type { OrderStep, WizardStepConfig, } from './default-step-summary/default-step-summary.js';
|
|
9
|
+
export { WizardClosePopup } from './wizard-close-popup/wizard-close-popup.js';
|
|
10
|
+
export { WizardReloadPopup } from './wizard-reload-popup/wizard-reload-popup.js';
|
|
11
|
+
export type { WizardReloadItem } from './wizard-reload-popup/wizard-reload-popup.js';
|
|
2
12
|
export type { PdWizardStep } from './types.js';
|
|
3
13
|
export { templates as beTemplates } from './generated/locales/be.js';
|
|
4
14
|
export { templates as deTemplates } from './generated/locales/de.js';
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAG3D,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,YAAY,EACV,UAAU,EACV,YAAY,GACb,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EAAE,mBAAmB,EAAE,MAAM,oDAAoD,CAAC;AAEzF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AAEpF,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,YAAY,EACV,SAAS,EACT,gBAAgB,GACjB,MAAM,gDAAgD,CAAC;AAGxD,OAAO,EAAE,gBAAgB,EAAE,MAAM,4CAA4C,CAAC;AAC9E,OAAO,EAAE,iBAAiB,EAAE,MAAM,8CAA8C,CAAC;AACjF,YAAY,EAAE,gBAAgB,EAAE,MAAM,8CAA8C,CAAC;AAGrF,YAAY,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG/C,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,SAAS,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC"}
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
import './pd-wizard.js';
|
|
2
|
+
import './pd-wizard/pd-steps/pd-steps.js';
|
|
3
|
+
export { DefaultWizard } from './default-wizard/DefaultWizard.js';
|
|
4
|
+
export { PdDefaultWizardStep } from './pd-default-wizard-step/PdDefaultWizardStep.js';
|
|
5
|
+
export { DefaultStepAddress } from './default-step-address/DefaultStepAddress.js';
|
|
6
|
+
export { DefaultStepSummary } from './default-step-summary/DefaultStepSummary.js';
|
|
7
|
+
export { WizardClosePopup } from './wizard-close-popup/WizardClosePopup.js';
|
|
8
|
+
export { WizardReloadPopup } from './wizard-reload-popup/WizardReloadPopup.js';
|
|
2
9
|
export { templates as beTemplates } from './locales/be.js';
|
|
3
10
|
export { templates as deTemplates } from './locales/de.js';
|
|
4
11
|
export { templates as enTemplates } from './locales/en.js';
|
|
5
12
|
export { PdWizard } from './pd-wizard/PdWizard.js';
|
|
13
|
+
export { PdSteps } from './pd-wizard/pd-steps/PdSteps.js';
|
package/dist/locales/be.js
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
|
+
import { str } from '@lit/localize';
|
|
2
|
+
|
|
1
3
|
const templates = {
|
|
2
4
|
"pd.wizard.button.back": `Terug`,
|
|
3
5
|
"pd.wizard.button.next": `Volgende`,
|
|
4
|
-
"pd.wizard.button.send": `Verzenden
|
|
6
|
+
"pd.wizard.button.send": `Verzenden`,
|
|
7
|
+
"pd.wizard.close.aria": `Wizard sluiten`,
|
|
8
|
+
"pdWizard.close.popup.cancel": `Annuleren`,
|
|
9
|
+
"pdWizard.close.popup.noStorage.content": `De huidige invoer gaat na het sluiten onherroepelijk verloren. Toch sluiten?`,
|
|
10
|
+
"pdWizard.close.popup.ok": `Sluiten`,
|
|
11
|
+
"pdWizard.close.popup.storage.content": `De huidige invoer kan worden opgeslagen voor latere bewerking of worden verwijderd. Welke actie moet worden uitgevoerd?`,
|
|
12
|
+
"pdWizard.close.popup.title": `Bewerking annuleren`,
|
|
13
|
+
"pdWizard.reload.popup.cancel": `Verwijderen`,
|
|
14
|
+
"pdWizard.reload.popup.lastModified": `Laatst bewerkt:`,
|
|
15
|
+
"pdWizard.reload.popup.ok": `Voortzetten`,
|
|
16
|
+
"pdWizard.reload.popup.title": `Bewerking voortzetten?`,
|
|
17
|
+
"pdWizard.storage.close.popup.cancel": `Verwijderen`,
|
|
18
|
+
"pdWizard.storage.close.popup.ok": `Opslaan`,
|
|
19
|
+
"pd.steps.aria.label": `Wizard-Schritte`,
|
|
20
|
+
"pd.steps.aria.passed": str`Schritt ${0}: ${1} - abgeschlossen, klicken um zurückzukehren`,
|
|
21
|
+
"pd.steps.aria.current": str`Schritt ${0}: ${1} - aktueller Schritt`,
|
|
22
|
+
"pd.steps.aria.pending": str`Schritt ${0}: ${1} - ausstehend`,
|
|
23
|
+
"pdWizard.reload.popup.warning": `Bei Neubeginn werden die Daten gelöscht`
|
|
5
24
|
};
|
|
6
25
|
|
|
7
26
|
export { templates };
|
package/dist/locales/de.js
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
|
+
import { str } from '@lit/localize';
|
|
2
|
+
|
|
1
3
|
const templates = {
|
|
4
|
+
"pd.steps.aria.label": `Wizard-Schritte`,
|
|
5
|
+
"pd.steps.aria.passed": str`Schritt ${0}: ${1} - abgeschlossen, klicken um zurückzukehren`,
|
|
6
|
+
"pd.steps.aria.current": str`Schritt ${0}: ${1} - aktueller Schritt`,
|
|
7
|
+
"pd.steps.aria.pending": str`Schritt ${0}: ${1} - ausstehend`,
|
|
8
|
+
"pd.wizard.close.aria": `Wizard schließen`,
|
|
2
9
|
"pd.wizard.button.back": `Zurück`,
|
|
3
10
|
"pd.wizard.button.next": `Weiter`,
|
|
4
|
-
"pd.wizard.button.send": `Absenden
|
|
11
|
+
"pd.wizard.button.send": `Absenden`,
|
|
12
|
+
"pdWizard.reload.popup.title": `Gespeicherte Daten gefunden`,
|
|
13
|
+
"pdWizard.reload.popup.lastModified": `Letzte Bearbeitung:`,
|
|
14
|
+
"pdWizard.reload.popup.warning": `Bei Neubeginn werden die Daten gelöscht`,
|
|
15
|
+
"pdWizard.close.popup.title": `Änderungen verwerfen?`,
|
|
16
|
+
"pdWizard.close.popup.storage.content": `Eingaben für später speichern oder verwerfen?`,
|
|
17
|
+
"pdWizard.close.popup.noStorage.content": `Nicht gespeicherte Daten gehen verloren.`,
|
|
18
|
+
"pdWizard.storage.close.popup.ok": `Speichern`,
|
|
19
|
+
"pdWizard.storage.close.popup.cancel": `Verwerfen`,
|
|
20
|
+
"pdWizard.close.popup.ok": `Verwerfen`,
|
|
21
|
+
"pdWizard.close.popup.cancel": `Zurück`,
|
|
22
|
+
"pdWizard.reload.popup.ok": `Fortsetzen`,
|
|
23
|
+
"pdWizard.reload.popup.cancel": `Verwerfen`
|
|
5
24
|
};
|
|
6
25
|
|
|
7
26
|
export { templates };
|
package/dist/locales/en.js
CHANGED
|
@@ -1,7 +1,26 @@
|
|
|
1
|
+
import { str } from '@lit/localize';
|
|
2
|
+
|
|
1
3
|
const templates = {
|
|
2
4
|
"pd.wizard.button.back": `Back`,
|
|
3
5
|
"pd.wizard.button.next": `Next`,
|
|
4
|
-
"pd.wizard.button.send": `Submit
|
|
6
|
+
"pd.wizard.button.send": `Submit`,
|
|
7
|
+
"pd.wizard.close.aria": `Close wizard`,
|
|
8
|
+
"pdWizard.close.popup.cancel": `Cancel`,
|
|
9
|
+
"pdWizard.close.popup.noStorage.content": `The current entries will be irretrievably lost after closing.`,
|
|
10
|
+
"pdWizard.close.popup.ok": `Close`,
|
|
11
|
+
"pdWizard.close.popup.storage.content": `The current entries can be saved for later editing or discarded?`,
|
|
12
|
+
"pdWizard.close.popup.title": `Cancel editing`,
|
|
13
|
+
"pdWizard.reload.popup.cancel": `Discard`,
|
|
14
|
+
"pdWizard.reload.popup.lastModified": `Last modified:`,
|
|
15
|
+
"pdWizard.reload.popup.ok": `Continue`,
|
|
16
|
+
"pdWizard.reload.popup.title": `Continue editing?`,
|
|
17
|
+
"pdWizard.reload.popup.warning": `Starting fresh will delete saved data`,
|
|
18
|
+
"pdWizard.storage.close.popup.cancel": `Discard`,
|
|
19
|
+
"pdWizard.storage.close.popup.ok": `Save`,
|
|
20
|
+
"pd.steps.aria.label": `Wizard-Schritte`,
|
|
21
|
+
"pd.steps.aria.passed": str`Schritt ${0}: ${1} - abgeschlossen, klicken um zurückzukehren`,
|
|
22
|
+
"pd.steps.aria.current": str`Schritt ${0}: ${1} - aktueller Schritt`,
|
|
23
|
+
"pd.steps.aria.pending": str`Schritt ${0}: ${1} - ausstehend`
|
|
5
24
|
};
|
|
6
25
|
|
|
7
26
|
export { templates };
|