@progressive-development/pd-spa-helper 0.4.0 → 0.5.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/dist/PdSpaHelper.d.ts.map +1 -1
- package/dist/{src/PdSpaHelper.js → PdSpaHelper.js} +16 -17
- package/dist/defaultpage/default-confirm-popup.d.ts.map +1 -1
- package/dist/{src/defaultpage → defaultpage}/default-confirm-popup.js +4 -5
- package/dist/defaultpage/default-dialog-popup.d.ts.map +1 -1
- package/dist/{src/defaultpage → defaultpage}/default-dialog-popup.js +4 -5
- package/dist/{src/defaultpage → defaultpage}/default-login.js +2 -3
- package/dist/defaultpage/default-popup.d.ts.map +1 -1
- package/dist/{src/defaultpage → defaultpage}/default-popup.js +1 -1
- package/dist/{src/defaultpage → defaultpage}/default-step-address.js +5 -6
- package/dist/{src/defaultpage → defaultpage}/default-step-summary.js +6 -7
- package/dist/{src/defaultpage → defaultpage}/default-view-page.js +2 -3
- package/dist/{src/defaultpage → defaultpage}/default-wizard-step.js +4 -5
- package/dist/defaultpage/default-wizard.d.ts.map +1 -1
- package/dist/{src/defaultpage → defaultpage}/default-wizard.js +7 -8
- package/dist/generated/locale-wrapper/be-wrapper.d.ts +15 -1
- package/dist/generated/locale-wrapper/be-wrapper.d.ts.map +1 -1
- package/dist/generated/locale-wrapper/be-wrapper.js +17 -0
- package/dist/generated/locale-wrapper/de-wrapper.d.ts.map +1 -1
- package/dist/generated/locale-wrapper/de-wrapper.js +17 -0
- package/dist/generated/locale-wrapper/en-wrapper.d.ts +15 -1
- package/dist/generated/locale-wrapper/en-wrapper.d.ts.map +1 -1
- package/dist/generated/locale-wrapper/en-wrapper.js +17 -0
- package/dist/index.js +21 -21
- package/dist/pd-panel-viewer.js +10 -12
- package/dist/pd-panel.js +2 -3
- package/dist/{src/popup → popup}/wizard-close-popup.js +3 -5
- package/dist/{src/popup → popup}/wizard-reload-popup.js +3 -5
- package/dist/{src/router → router}/AppMain.js +4 -5
- package/dist/{src/service-provider → service-provider}/firebase/auth.js +1 -4
- package/dist/{src/service-provider → service-provider}/firebase/firestorage-client.js +1 -1
- package/dist/{src/service-provider → service-provider}/firebase/firestore-client.js +1 -1
- package/dist/{src/service-provider → service-provider}/firebase/functions-client.js +1 -1
- package/dist/{src/service-provider → service-provider}/firebase/messagingFirebaseClient.js +2 -2
- package/dist/{src/service-provider → service-provider}/service-provider-impl.js +1 -2
- package/dist/{src/store → store}/mini-rx.store.js +1 -1
- package/dist/{src/store → store}/spa-app-effects.js +2 -2
- package/dist/{src/store → store}/spa-app-selector.js +1 -1
- package/dist/stories/pd-loading-state.stories.d.ts +3 -3
- package/dist/stories/pd-toast.stories.d.ts +3 -3
- package/dist/tmpown/pd-loading-state.d.ts.map +1 -1
- package/dist/{src/tmpown → tmpown}/pd-loading-state.js +6 -8
- package/dist/tmpown/pd-login.d.ts.map +1 -1
- package/dist/{src/tmpown → tmpown}/pd-login.js +6 -7
- package/dist/tmpown/pd-panel-viewer.d.ts.map +1 -1
- package/dist/{src/tmpown → tmpown}/pd-toast.js +5 -7
- package/package.json +24 -21
- package/dist/node_modules/@firebase/app/dist/esm/index.esm2017.js +0 -749
- package/dist/node_modules/@firebase/auth/dist/esm2017/index-68602d24.js +0 -6265
- package/dist/node_modules/@firebase/component/dist/esm/index.esm2017.js +0 -341
- package/dist/node_modules/@firebase/firestore/dist/index.esm2017.js +0 -10250
- package/dist/node_modules/@firebase/functions/dist/index.esm2017.js +0 -513
- package/dist/node_modules/@firebase/installations/dist/esm/index.esm2017.js +0 -863
- package/dist/node_modules/@firebase/logger/dist/esm/index.esm2017.js +0 -122
- package/dist/node_modules/@firebase/messaging/dist/esm/index.esm2017.js +0 -1019
- package/dist/node_modules/@firebase/storage/dist/index.esm2017.js +0 -2042
- package/dist/node_modules/@firebase/util/dist/index.esm2017.js +0 -931
- package/dist/node_modules/@firebase/webchannel-wrapper/dist/bloom-blob/esm/bloom_blob_es2018.js +0 -417
- package/dist/node_modules/@firebase/webchannel-wrapper/dist/webchannel-blob/esm/webchannel_blob_es2018.js +0 -2155
- package/dist/node_modules/@lit/reactive-element/decorators/custom-element.js +0 -14
- package/dist/node_modules/@lit/reactive-element/decorators/property.js +0 -20
- package/dist/node_modules/@lit/reactive-element/decorators/query-assigned-elements.js +0 -7
- package/dist/node_modules/@progressive-development/pd-dialog/pd-popup-dialog.js +0 -5
- package/dist/node_modules/@progressive-development/pd-dialog/pd-popup.js +0 -2
- package/dist/node_modules/@progressive-development/pd-dialog/src/PdPopup.js +0 -113
- package/dist/node_modules/@progressive-development/pd-dialog/src/PdPopupDialog.js +0 -189
- package/dist/node_modules/@progressive-development/pd-forms/pd-button.js +0 -2
- package/dist/node_modules/@progressive-development/pd-forms/pd-form-container.js +0 -2
- package/dist/node_modules/@progressive-development/pd-forms/pd-form-row.js +0 -2
- package/dist/node_modules/@progressive-development/pd-forms/pd-hover-box.js +0 -2
- package/dist/node_modules/@progressive-development/pd-forms/pd-input.js +0 -2
- package/dist/node_modules/@progressive-development/pd-forms/src/PdBaseInputElement.js +0 -86
- package/dist/node_modules/@progressive-development/pd-forms/src/PdBaseUi.js +0 -34
- package/dist/node_modules/@progressive-development/pd-forms/src/PdBaseUiInput.js +0 -227
- package/dist/node_modules/@progressive-development/pd-forms/src/PdButton.js +0 -194
- package/dist/node_modules/@progressive-development/pd-forms/src/PdFormContainer.js +0 -167
- package/dist/node_modules/@progressive-development/pd-forms/src/PdFormRow.js +0 -92
- package/dist/node_modules/@progressive-development/pd-forms/src/PdHoverBox.js +0 -108
- package/dist/node_modules/@progressive-development/pd-forms/src/PdInput.js +0 -79
- package/dist/node_modules/@progressive-development/pd-forms/src/generated/locale/be.js +0 -11
- package/dist/node_modules/@progressive-development/pd-forms/src/generated/locale/en.js +0 -11
- package/dist/node_modules/@progressive-development/pd-forms/src/shared-input-field-styles.js +0 -152
- package/dist/node_modules/@progressive-development/pd-forms/src/shared-input-styles.js +0 -64
- package/dist/node_modules/@progressive-development/pd-icon/pd-icon.js +0 -4
- package/dist/node_modules/@progressive-development/pd-icon/src/PdIcon.js +0 -596
- package/dist/node_modules/@progressive-development/pd-order/dist/locales/be.js +0 -15
- package/dist/node_modules/@progressive-development/pd-order/dist/locales/de.js +0 -15
- package/dist/node_modules/@progressive-development/pd-order/dist/locales/en.js +0 -15
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-contact/pd-contact.js +0 -2
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-contact/src/PdContact.js +0 -567
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-content/pd-collapse.js +0 -2
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-content/pd-edit-content.js +0 -2
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-content/src/PdCollapse.js +0 -136
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-content/src/PdEditContent.js +0 -224
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-dialog/pd-popup.js +0 -2
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-dialog/src/PdPopup.js +0 -113
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-forms/pd-checkbox.js +0 -2
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-forms/pd-form-container.js +0 -2
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-forms/pd-form-row.js +0 -2
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-forms/pd-hover-box.js +0 -2
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-forms/pd-input.js +0 -2
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-forms/pd-radio-group.js +0 -2
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-forms/src/PdBaseInputElement.js +0 -86
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-forms/src/PdBaseUi.js +0 -34
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-forms/src/PdBaseUiInput.js +0 -229
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-forms/src/PdCheckbox.js +0 -230
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-forms/src/PdFormContainer.js +0 -167
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-forms/src/PdFormRow.js +0 -92
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-forms/src/PdHoverBox.js +0 -108
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-forms/src/PdInput.js +0 -79
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-forms/src/PdRadioGroup.js +0 -72
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-forms/src/shared-input-field-styles.js +0 -152
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-forms/src/shared-input-styles.js +0 -64
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-icon/pd-icon.js +0 -4
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-icon/src/PdIcon.js +0 -596
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-price/pd-pricetable.js +0 -2
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/@progressive-development/pd-price/src/PdPricetable.js +0 -149
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/fecha/lib/fecha.js +0 -200
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/lit/node_modules/lit-html/directive.js +0 -27
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/lit/node_modules/lit-html/directives/class-map.js +0 -36
- package/dist/node_modules/@progressive-development/pd-order/dist/node_modules/lit/node_modules/lit-html/lit-html.js +0 -242
- package/dist/node_modules/@progressive-development/pd-order/dist/pd-order-contacts.js +0 -2
- package/dist/node_modules/@progressive-development/pd-order/dist/pd-order-summary.js +0 -2
- package/dist/node_modules/@progressive-development/pd-order/dist/src/PdOrderContacts.js +0 -192
- package/dist/node_modules/@progressive-development/pd-order/dist/src/PdOrderSummary.js +0 -243
- package/dist/node_modules/@progressive-development/pd-page/pd-footer.js +0 -2
- package/dist/node_modules/@progressive-development/pd-page/pd-menu.js +0 -2
- package/dist/node_modules/@progressive-development/pd-page/src/PdFooter.js +0 -141
- package/dist/node_modules/@progressive-development/pd-page/src/PdMenu.js +0 -450
- package/dist/node_modules/@progressive-development/pd-shared-styles/src/shared-color-styles.js +0 -30
- package/dist/node_modules/@progressive-development/pd-shared-styles/src/shared-font-styles.js +0 -32
- package/dist/node_modules/@progressive-development/pd-wizard/pd-wizard.js +0 -2
- package/dist/node_modules/@progressive-development/pd-wizard/src/PdSteps.js +0 -191
- package/dist/node_modules/@progressive-development/pd-wizard/src/PdWizard.js +0 -280
- package/dist/node_modules/firebase/app/dist/esm/index.esm.js +0 -35
- package/dist/node_modules/idb/build/index.js +0 -81
- package/dist/node_modules/idb/build/wrap-idb-value.js +0 -148
- package/dist/node_modules/lit/node_modules/lit-html/directive.js +0 -27
- package/dist/node_modules/lit/node_modules/lit-html/directives/class-map.js +0 -36
- package/dist/node_modules/lit/node_modules/lit-html/lit-html.js +0 -242
- package/dist/node_modules/lit-element-router/lit-element-router.js +0 -131
- package/dist/node_modules/lit-element-router/utility/router-utility.js +0 -36
- package/dist/node_modules/mini-rx-store/index.esm.js +0 -458
- package/dist/node_modules/pwa-helpers/media-query.js +0 -17
- package/dist/node_modules/rxjs/dist/esm5/internal/Observable.js +0 -100
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscriber.js +0 -147
- package/dist/node_modules/rxjs/dist/esm5/internal/Subscription.js +0 -139
- package/dist/node_modules/rxjs/dist/esm5/internal/config.js +0 -10
- package/dist/node_modules/rxjs/dist/esm5/internal/observable/innerFrom.js +0 -159
- package/dist/node_modules/rxjs/dist/esm5/internal/operators/OperatorSubscriber.js +0 -52
- package/dist/node_modules/rxjs/dist/esm5/internal/operators/catchError.js +0 -28
- package/dist/node_modules/rxjs/dist/esm5/internal/operators/distinctUntilChanged.js +0 -27
- package/dist/node_modules/rxjs/dist/esm5/internal/operators/filter.js +0 -13
- package/dist/node_modules/rxjs/dist/esm5/internal/operators/map.js +0 -13
- package/dist/node_modules/rxjs/dist/esm5/internal/operators/observeOn.js +0 -26
- package/dist/node_modules/rxjs/dist/esm5/internal/operators/tap.js +0 -36
- package/dist/node_modules/rxjs/dist/esm5/internal/operators/withLatestFrom.js +0 -43
- package/dist/node_modules/rxjs/dist/esm5/internal/scheduler/timeoutProvider.js +0 -18
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/iterator.js +0 -11
- package/dist/node_modules/rxjs/dist/esm5/internal/symbol/observable.js +0 -6
- package/dist/node_modules/rxjs/dist/esm5/internal/util/UnsubscriptionError.js +0 -14
- package/dist/node_modules/rxjs/dist/esm5/internal/util/args.js +0 -10
- package/dist/node_modules/rxjs/dist/esm5/internal/util/arrRemove.js +0 -9
- package/dist/node_modules/rxjs/dist/esm5/internal/util/createErrorClass.js +0 -13
- package/dist/node_modules/rxjs/dist/esm5/internal/util/errorContext.js +0 -8
- package/dist/node_modules/rxjs/dist/esm5/internal/util/executeSchedule.js +0 -23
- package/dist/node_modules/rxjs/dist/esm5/internal/util/identity.js +0 -6
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isArrayLike.js +0 -6
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isAsyncIterable.js +0 -7
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isFunction.js +0 -6
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isInteropObservable.js +0 -8
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isIterable.js +0 -8
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isPromise.js +0 -7
- package/dist/node_modules/rxjs/dist/esm5/internal/util/isReadableStreamLike.js +0 -46
- package/dist/node_modules/rxjs/dist/esm5/internal/util/lift.js +0 -22
- package/dist/node_modules/rxjs/dist/esm5/internal/util/noop.js +0 -5
- package/dist/node_modules/rxjs/dist/esm5/internal/util/pipe.js +0 -17
- package/dist/node_modules/rxjs/dist/esm5/internal/util/reportUnhandledError.js +0 -11
- package/dist/node_modules/rxjs/dist/esm5/internal/util/throwUnobservableError.js +0 -6
- package/dist/src/generated/locale-wrapper/be-wrapper.js +0 -15
- package/dist/src/generated/locale-wrapper/de-wrapper.js +0 -13
- package/dist/src/generated/locale-wrapper/en-wrapper.js +0 -15
- /package/dist/{src/generated → generated}/locales/be.js +0 -0
- /package/dist/{src/generated → generated}/locales/de.js +0 -0
- /package/dist/{src/generated → generated}/locales/en.js +0 -0
- /package/dist/{src/helper → helper}/helper-utils.js +0 -0
- /package/dist/{src/model → model}/spa-model.js +0 -0
- /package/dist/{src/service-provider → service-provider}/mock/auth.js +0 -0
- /package/dist/{src/service-provider → service-provider}/mock/function-client.js +0 -0
- /package/dist/{src/service-provider → service-provider}/mock/storage-client.js +0 -0
- /package/dist/{src/service-provider → service-provider}/service-provider-model.js +0 -0
- /package/dist/{src/store → store}/indexDB.js +0 -0
- /package/dist/{src/store → store}/spa-app-actions.js +0 -0
- /package/dist/{src/store → store}/spa-app-reducer.js +0 -0
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { LitElement, css, html } from "lit";
|
|
2
|
-
import { ICON_TOGGLE_COLLAPSE } from "../../pd-icon/src/PdIcon.js";
|
|
3
|
-
import "../../pd-icon/pd-icon.js";
|
|
4
|
-
import { PDColorStyles } from "../../../../../../pd-shared-styles/src/shared-color-styles.js";
|
|
5
|
-
import { PDFontStyles } from "../../../../../../pd-shared-styles/src/shared-font-styles.js";
|
|
6
|
-
/**
|
|
7
|
-
* @license
|
|
8
|
-
* Copyright (c) 2021 PD Progressive Development UG. All rights reserved.
|
|
9
|
-
*/
|
|
10
|
-
class PdCollapse extends LitElement {
|
|
11
|
-
static get properties() {
|
|
12
|
-
return {
|
|
13
|
-
active: { type: Boolean },
|
|
14
|
-
icon: { type: String }
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
constructor() {
|
|
18
|
-
super();
|
|
19
|
-
this.active = false;
|
|
20
|
-
}
|
|
21
|
-
static get styles() {
|
|
22
|
-
return [
|
|
23
|
-
PDColorStyles,
|
|
24
|
-
PDFontStyles,
|
|
25
|
-
css`
|
|
26
|
-
:host {
|
|
27
|
-
display: block;
|
|
28
|
-
width: 100%;
|
|
29
|
-
position: relative;
|
|
30
|
-
overflow: visible;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
:host .content.open {
|
|
34
|
-
border: 2px solid var(--pd-default-light-col);
|
|
35
|
-
background: var(--pd-collapse-content-bg-col, var(--pd-default-bg-col));
|
|
36
|
-
margin-bottom: 1rem;
|
|
37
|
-
position: relative;
|
|
38
|
-
overflow: visible;
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
pd-icon {
|
|
42
|
-
--pd-icon-stroke-col-active: var(--pd-default-bg-col);
|
|
43
|
-
--pd-icon-col-active: var(--pd-default-dark-col);
|
|
44
|
-
--pd-icon-col-hover: var(--pd-default-dark-col);
|
|
45
|
-
--pd-icon-stroke-col-hover: var(--pd-default-hover-col);
|
|
46
|
-
--pd-icon-col-active-hover: var(--pd-default-dark-col);
|
|
47
|
-
--pd-icon-stroke-col-active-hover: var(--pd-default-hover-col);
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
.trigger {
|
|
51
|
-
background: var(--pd-collapse-bg-col, var(--pd-default-col));
|
|
52
|
-
font-family: var(--pd-default-font-title-family);
|
|
53
|
-
font-weight: bold;
|
|
54
|
-
color: var(--pd-collapse-font-col, var(--pd-default-bg-col));
|
|
55
|
-
transition-property: box-shadow, background;
|
|
56
|
-
transition: 0.2s ease-in;
|
|
57
|
-
cursor: pointer;
|
|
58
|
-
font-size: var(--pd-collapse-header-font-size, 1rem);
|
|
59
|
-
padding: 0.5rem;
|
|
60
|
-
display: flex;
|
|
61
|
-
justify-content: space-between;
|
|
62
|
-
box-sizing: border-box;
|
|
63
|
-
position: relative;
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
::slotted(.header) {
|
|
67
|
-
display: flex;
|
|
68
|
-
align-items: center;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
.trigger:hover {
|
|
72
|
-
background: var(--pd-collapse-hover-col, var(--pd-default-dark-col));
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
.trigger.closed {
|
|
76
|
-
margin-bottom: 1rem;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
.content {
|
|
80
|
-
will-change: transform;
|
|
81
|
-
height: 0;
|
|
82
|
-
overflow: hidden;
|
|
83
|
-
transition-property: visibility, transform;
|
|
84
|
-
transition-duration: 0.2s;
|
|
85
|
-
visibility: hidden;
|
|
86
|
-
transform: translate3d(0, -100%, 0);
|
|
87
|
-
box-sizing: border-box;
|
|
88
|
-
|
|
89
|
-
padding: 0.5em;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
.content.open {
|
|
93
|
-
visibility: visible;
|
|
94
|
-
height: auto;
|
|
95
|
-
transform: translate3d(0, 0, 0);
|
|
96
|
-
overflow-y: auto;
|
|
97
|
-
}
|
|
98
|
-
`
|
|
99
|
-
];
|
|
100
|
-
}
|
|
101
|
-
open() {
|
|
102
|
-
this.active = true;
|
|
103
|
-
}
|
|
104
|
-
close() {
|
|
105
|
-
this.active = false;
|
|
106
|
-
}
|
|
107
|
-
onClick() {
|
|
108
|
-
this.active = !this.active;
|
|
109
|
-
this.dispatchEvent(
|
|
110
|
-
new CustomEvent("toggle-accordion", {
|
|
111
|
-
bubbles: true,
|
|
112
|
-
composed: true,
|
|
113
|
-
detail: this.active
|
|
114
|
-
})
|
|
115
|
-
);
|
|
116
|
-
}
|
|
117
|
-
render() {
|
|
118
|
-
return html`<div
|
|
119
|
-
class="trigger ${this.active ? "open" : "closed"}"
|
|
120
|
-
@click="${this.onClick}"
|
|
121
|
-
>
|
|
122
|
-
<slot name="header"></slot>
|
|
123
|
-
<pd-icon
|
|
124
|
-
icon="${ICON_TOGGLE_COLLAPSE}"
|
|
125
|
-
?activeIcon="${this.active}"
|
|
126
|
-
class="small primary"
|
|
127
|
-
></pd-icon>
|
|
128
|
-
</div>
|
|
129
|
-
<div class="content ${this.active ? "open" : "closed"}">
|
|
130
|
-
<slot name="content"></slot>
|
|
131
|
-
</div> `;
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
export {
|
|
135
|
-
PdCollapse
|
|
136
|
-
};
|
|
@@ -1,224 +0,0 @@
|
|
|
1
|
-
import { html, LitElement, css } from "lit";
|
|
2
|
-
import { PDColorStyles } from "../../../../../../pd-shared-styles/src/shared-color-styles.js";
|
|
3
|
-
import { PDFontStyles } from "../../../../../../pd-shared-styles/src/shared-font-styles.js";
|
|
4
|
-
/**
|
|
5
|
-
* @license
|
|
6
|
-
* Copyright (c) 2021 PD Progressive Development UG. All rights reserved.
|
|
7
|
-
*/
|
|
8
|
-
const editIcon = html`<svg
|
|
9
|
-
class="edit"
|
|
10
|
-
id="Layer_1"
|
|
11
|
-
version="1.1"
|
|
12
|
-
viewBox="0 0 19 19"
|
|
13
|
-
xml:space="preserve"
|
|
14
|
-
xmlns="http://www.w3.org/2000/svg"
|
|
15
|
-
xmlns:xlink="http://www.w3.org/1999/xlink"
|
|
16
|
-
>
|
|
17
|
-
<g>
|
|
18
|
-
<path
|
|
19
|
-
d="M8.44,7.25C8.348,7.342,8.277,7.447,8.215,7.557L8.174,7.516L8.149,7.69 C8.049,7.925,8.014,8.183,8.042,8.442l-0.399,2.796l2.797-0.399c0.259,0.028,0.517-0.007,0.752-0.107l0.174-0.024l-0.041-0.041 c0.109-0.062,0.215-0.133,0.307-0.225l5.053-5.053l-3.191-3.191L8.44,7.25z"
|
|
20
|
-
fill="var(--edit-fill-color)"
|
|
21
|
-
/>
|
|
22
|
-
<path
|
|
23
|
-
d="M18.183,1.568l-0.87-0.87c-0.641-0.641-1.637-0.684-2.225-0.097l-0.797,0.797l3.191,3.191l0.797-0.798 C18.867,3.205,18.824,2.209,18.183,1.568z"
|
|
24
|
-
fill="var(--edit-fill-color)"
|
|
25
|
-
/>
|
|
26
|
-
<path
|
|
27
|
-
d="M15,9.696V17H2V2h8.953l1.523-1.42c0.162-0.161,0.353-0.221,0.555-0.293 c0.043-0.119,0.104-0.18,0.176-0.287H0v19h17V7.928L15,9.696z"
|
|
28
|
-
fill="var(--edit-fill-color)"
|
|
29
|
-
/>
|
|
30
|
-
</g>
|
|
31
|
-
</svg>`;
|
|
32
|
-
class PdEditContent extends LitElement {
|
|
33
|
-
/**
|
|
34
|
-
* @event edit-content
|
|
35
|
-
*/
|
|
36
|
-
static get styles() {
|
|
37
|
-
return [
|
|
38
|
-
PDColorStyles,
|
|
39
|
-
PDFontStyles,
|
|
40
|
-
css`
|
|
41
|
-
:host {
|
|
42
|
-
display: block;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
h4 {
|
|
46
|
-
font-family: var(--pd-default-font-title-family);
|
|
47
|
-
font-size: var(--pd-ec-font-title-size, 1.2em);
|
|
48
|
-
margin-top: 0px;
|
|
49
|
-
margin-bottom: 2px;
|
|
50
|
-
line-height: 40px;
|
|
51
|
-
color: var(--pd-ec-font-title-col, var(--pd-default-bg-col));
|
|
52
|
-
padding-left: 5px;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
.header {
|
|
56
|
-
display: flex;
|
|
57
|
-
gap: 5px;
|
|
58
|
-
background-color: var(--pd-ec-bg-col, var(--pd-default-col));
|
|
59
|
-
align-items: center;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
.circle {
|
|
63
|
-
margin-left: 5px;
|
|
64
|
-
display: flex;
|
|
65
|
-
align-items: center;
|
|
66
|
-
justify-content: center;
|
|
67
|
-
width: 27px;
|
|
68
|
-
height: 27px;
|
|
69
|
-
border-radius: 50%;
|
|
70
|
-
background-color: var(--pd-ec-font-title-col, var(--pd-default-bg-col));
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
.step-number {
|
|
74
|
-
font-family: var(--pd-default-font-title-family);
|
|
75
|
-
font-size: var(--pd-ec-font-title-size, 1.2em);
|
|
76
|
-
font-weight: var(--pd-ec-nr-font-weight, bold); ;
|
|
77
|
-
color: var(--pd-ec-bg-col, var(--pd-default-col));
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/* Temporär? Hier noch sehr aufwendig mit div/span? */
|
|
81
|
-
|
|
82
|
-
.label {
|
|
83
|
-
display: inline-block;
|
|
84
|
-
font-weight: bold;
|
|
85
|
-
width: 200px;
|
|
86
|
-
padding-top: 10px;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
/* Temporär */
|
|
90
|
-
a {
|
|
91
|
-
cursor: pointer;
|
|
92
|
-
font-family: var(--pd-default-font-link-family);
|
|
93
|
-
font-size: var(--pd-default-font-link-size);
|
|
94
|
-
color: var(--pd-default-font-link-col);
|
|
95
|
-
--edit-fill-color: var(--pd-default-font-link-col);
|
|
96
|
-
}
|
|
97
|
-
a:hover {
|
|
98
|
-
color: var(--pd-default-font-link-col-hover);
|
|
99
|
-
--edit-fill-color: var(--pd-default-font-link-col-hover);
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
.edit {
|
|
103
|
-
width: 1.1em;
|
|
104
|
-
}
|
|
105
|
-
/*
|
|
106
|
-
could used as class for given svg icons, workaround class
|
|
107
|
-
hard coded for specific icon => maybe use custom properties here, but not for that hack...
|
|
108
|
-
*/
|
|
109
|
-
.own-edit-icon {
|
|
110
|
-
width: 2em;
|
|
111
|
-
margin-top: -10px;
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
.link-row {
|
|
115
|
-
padding-top: 5px;
|
|
116
|
-
padding-bottom: 5px;
|
|
117
|
-
display: flex;
|
|
118
|
-
flex-wrap: wrap;
|
|
119
|
-
gap: 15px;
|
|
120
|
-
}
|
|
121
|
-
|
|
122
|
-
.link-item {
|
|
123
|
-
display: flex;
|
|
124
|
-
gap: 2px;
|
|
125
|
-
white-space: nowrap;
|
|
126
|
-
align-items: center;
|
|
127
|
-
pointer-events: none;
|
|
128
|
-
}
|
|
129
|
-
|
|
130
|
-
.param-data {
|
|
131
|
-
padding-bottom: 10px;
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
@media (max-width: 360px) {
|
|
135
|
-
.label {
|
|
136
|
-
width: 130px;
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
`
|
|
140
|
-
];
|
|
141
|
-
}
|
|
142
|
-
static get properties() {
|
|
143
|
-
return {
|
|
144
|
-
stepNumber: { type: Number },
|
|
145
|
-
contentTitle: { type: String },
|
|
146
|
-
data: { type: Array },
|
|
147
|
-
editLinks: { type: Array },
|
|
148
|
-
// TODO: [TIM-37] Put together with edit icon/editDisabled
|
|
149
|
-
editDisabled: { type: Boolean }
|
|
150
|
-
};
|
|
151
|
-
}
|
|
152
|
-
constructor() {
|
|
153
|
-
super();
|
|
154
|
-
this.stepNumber = void 0;
|
|
155
|
-
this.contentTitle = "";
|
|
156
|
-
this.data = [];
|
|
157
|
-
this.editLinks = [];
|
|
158
|
-
this.editDisabled = false;
|
|
159
|
-
}
|
|
160
|
-
render() {
|
|
161
|
-
return html`
|
|
162
|
-
<div class="header">
|
|
163
|
-
${this.stepNumber ? html`
|
|
164
|
-
<div class="circle">
|
|
165
|
-
<span class="step-number">${this.stepNumber}</span>
|
|
166
|
-
</div>
|
|
167
|
-
` : ""}
|
|
168
|
-
<h4>${this.contentTitle}</h4>
|
|
169
|
-
</div>
|
|
170
|
-
<div>
|
|
171
|
-
${this.data ? html`
|
|
172
|
-
<div class="param-data">
|
|
173
|
-
${this.data.map(
|
|
174
|
-
(dataEntry) => html`
|
|
175
|
-
<div>
|
|
176
|
-
<span class="label">${dataEntry.name}</span>
|
|
177
|
-
<span class="value">${dataEntry.val}</span>
|
|
178
|
-
</div>
|
|
179
|
-
`
|
|
180
|
-
)}
|
|
181
|
-
</div>` : ""}
|
|
182
|
-
<slot></slot>
|
|
183
|
-
<div class="link-row">
|
|
184
|
-
${this.editDisabled ? "" : html`
|
|
185
|
-
<a @click="${this._editContent}">
|
|
186
|
-
<div class="link-item">${editIcon} Bewerk ${this.contentTitle}</div>
|
|
187
|
-
</a>
|
|
188
|
-
`}
|
|
189
|
-
${this.editLinks.map(
|
|
190
|
-
(link) => html`
|
|
191
|
-
<a data-link="${link.key}" @click="${this._editContent}">
|
|
192
|
-
<div class="link-item">${PdEditContent._getLinkLogo(link)} ${link.txt}</div>
|
|
193
|
-
</a>`
|
|
194
|
-
)}
|
|
195
|
-
</div>
|
|
196
|
-
</div>
|
|
197
|
-
`;
|
|
198
|
-
}
|
|
199
|
-
static _getLinkLogo(link) {
|
|
200
|
-
if (link.icon) {
|
|
201
|
-
return link.icon;
|
|
202
|
-
}
|
|
203
|
-
if (link.defaultIcon) {
|
|
204
|
-
return editIcon;
|
|
205
|
-
}
|
|
206
|
-
return "";
|
|
207
|
-
}
|
|
208
|
-
_editContent(e) {
|
|
209
|
-
const { link } = e.target.dataset;
|
|
210
|
-
this.dispatchEvent(
|
|
211
|
-
new CustomEvent("edit-content", {
|
|
212
|
-
detail: {
|
|
213
|
-
step: this.stepNumber,
|
|
214
|
-
link
|
|
215
|
-
},
|
|
216
|
-
bubbles: true,
|
|
217
|
-
composed: true
|
|
218
|
-
})
|
|
219
|
-
);
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
export {
|
|
223
|
-
PdEditContent
|
|
224
|
-
};
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
import { LitElement, css, html } from "lit";
|
|
2
|
-
import { ICON_CLOSE } from "../../pd-icon/src/PdIcon.js";
|
|
3
|
-
import "../../pd-icon/pd-icon.js";
|
|
4
|
-
import { PDColorStyles } from "../../../../../../pd-shared-styles/src/shared-color-styles.js";
|
|
5
|
-
import "../../../../../../pd-shared-styles/src/shared-font-styles.js";
|
|
6
|
-
/**
|
|
7
|
-
* @license
|
|
8
|
-
* Copyright (c) 2021 PD Progressive Development UG. All rights reserved.
|
|
9
|
-
*/
|
|
10
|
-
class PdPopup extends LitElement {
|
|
11
|
-
static get styles() {
|
|
12
|
-
return [
|
|
13
|
-
PDColorStyles,
|
|
14
|
-
css`
|
|
15
|
-
:host {
|
|
16
|
-
display: block;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
/* The Modal (background) */
|
|
20
|
-
.modal {
|
|
21
|
-
position: fixed; /* Stay in place */
|
|
22
|
-
z-index: 100; /* Sit on top */
|
|
23
|
-
left: 0;
|
|
24
|
-
top: 0;
|
|
25
|
-
width: 100%; /* Full width */
|
|
26
|
-
height: 100%; /* Full height */
|
|
27
|
-
overflow: auto; /* Enable scroll if needed */
|
|
28
|
-
/* RGBA Wert muss hier verwendet werden #AFC1D2 to rgba for opacity */
|
|
29
|
-
background-color: var(--pd-popup-modal-bg-rgba, rgba(175, 193, 210, 0.8));
|
|
30
|
-
|
|
31
|
-
/* specific for PdPopup, abobe also used for PdPopupDialog */
|
|
32
|
-
display: var(--pd-popup-default-display, none); /* Hidden by default */
|
|
33
|
-
padding-top: 100px; /* Location of the box */
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/* Modal Content */
|
|
37
|
-
.modal-content {
|
|
38
|
-
background-color: var(--pd-default-bg-col);
|
|
39
|
-
opacity: 1;
|
|
40
|
-
margin: auto;
|
|
41
|
-
padding: var(--pd-popup-modal-padding, 20px);
|
|
42
|
-
padding-bottom: 130px;
|
|
43
|
-
border: 2px solid var(--pd-default-col);
|
|
44
|
-
width: 80%;
|
|
45
|
-
max-width: 1200px;
|
|
46
|
-
position: relative;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
.modal-content-slot {
|
|
50
|
-
max-width: var(--pd-popup-modal-slot-max-width, 1000px);
|
|
51
|
-
margin: var(--pd-popup-modal-slot-margin, 0 30px);
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
.close-icon {
|
|
55
|
-
position: absolute;
|
|
56
|
-
cursor: pointer;
|
|
57
|
-
right: 1.2em;
|
|
58
|
-
top: 1.2em;
|
|
59
|
-
}`
|
|
60
|
-
];
|
|
61
|
-
}
|
|
62
|
-
render() {
|
|
63
|
-
return html`
|
|
64
|
-
<!-- Trigger/Open The Modal -->
|
|
65
|
-
<span @click="${this._activatePopup}" @keypress="${this._activatePopup}"
|
|
66
|
-
><slot name="small-view"></slot
|
|
67
|
-
></span>
|
|
68
|
-
|
|
69
|
-
<!-- The Modal -->
|
|
70
|
-
<div id="modalId" class="modal">
|
|
71
|
-
<!-- Modal content -->
|
|
72
|
-
<div class="modal-content">
|
|
73
|
-
<pd-icon icon="${ICON_CLOSE}" class="close-icon"
|
|
74
|
-
@click="${this._closePopup}"></pd-icon>
|
|
75
|
-
<div class="modal-content-slot">
|
|
76
|
-
<slot name="content"></slot>
|
|
77
|
-
</div>
|
|
78
|
-
</div>
|
|
79
|
-
</div>
|
|
80
|
-
`;
|
|
81
|
-
}
|
|
82
|
-
showPopup() {
|
|
83
|
-
this._activatePopup();
|
|
84
|
-
}
|
|
85
|
-
hidePopup() {
|
|
86
|
-
this._closePopup();
|
|
87
|
-
}
|
|
88
|
-
_activatePopup() {
|
|
89
|
-
const modal = this.shadowRoot.getElementById("modalId");
|
|
90
|
-
modal.style.display = "block";
|
|
91
|
-
}
|
|
92
|
-
_closePopup() {
|
|
93
|
-
const modal = this.shadowRoot.getElementById("modalId");
|
|
94
|
-
modal.style.display = "none";
|
|
95
|
-
this.dispatchEvent(
|
|
96
|
-
new CustomEvent("popup-close", {
|
|
97
|
-
bubbles: true,
|
|
98
|
-
composed: true
|
|
99
|
-
})
|
|
100
|
-
);
|
|
101
|
-
}
|
|
102
|
-
/*
|
|
103
|
-
// When the user clicks anywhere outside of the modal, close it
|
|
104
|
-
window.onclick = function(event) {
|
|
105
|
-
if (event.target == modal) {
|
|
106
|
-
modal.style.display = "none";
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
*/
|
|
110
|
-
}
|
|
111
|
-
export {
|
|
112
|
-
PdPopup
|
|
113
|
-
};
|
|
@@ -1,86 +0,0 @@
|
|
|
1
|
-
import { PdBaseUIInput, INPUT_TYPE_DATE, INPUT_TYPE_TEXT, INPUT_TYPE_FILE, INPUT_TYPE_SELECT, INPUT_TYPE_AREA } from "./PdBaseUiInput.js";
|
|
2
|
-
import { SharedInputFieldStyles } from "./shared-input-field-styles.js";
|
|
3
|
-
/**
|
|
4
|
-
* @license
|
|
5
|
-
* Copyright (c) 2021 PD Progressive Development UG. All rights reserved.
|
|
6
|
-
*
|
|
7
|
-
* Abstract base lit class for pd-input elements.
|
|
8
|
-
*
|
|
9
|
-
* Used from:
|
|
10
|
-
* - pd-input
|
|
11
|
-
* - pd-input-area
|
|
12
|
-
* - pd-select
|
|
13
|
-
*
|
|
14
|
-
* Used to:
|
|
15
|
-
* - define element specific css
|
|
16
|
-
* - handle auto completion
|
|
17
|
-
*
|
|
18
|
-
* Events:
|
|
19
|
-
* - TODO
|
|
20
|
-
*
|
|
21
|
-
* Custom Properties (shared-input-field-styles):
|
|
22
|
-
* ... TODO
|
|
23
|
-
*
|
|
24
|
-
*/
|
|
25
|
-
class PdBaseInputElement extends PdBaseUIInput {
|
|
26
|
-
/**
|
|
27
|
-
* Fire when the `pd-input` loses focus.
|
|
28
|
-
* @event focus-lost
|
|
29
|
-
*/
|
|
30
|
-
static get styles() {
|
|
31
|
-
return [PdBaseUIInput.styles, SharedInputFieldStyles];
|
|
32
|
-
}
|
|
33
|
-
static get properties() {
|
|
34
|
-
return {
|
|
35
|
-
placeHolder: { type: String },
|
|
36
|
-
/* not used at the moment */
|
|
37
|
-
name: { type: String },
|
|
38
|
-
autoCompleteName: { type: String }
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
constructor() {
|
|
42
|
-
super();
|
|
43
|
-
this.placeHolder = "";
|
|
44
|
-
this.name = "";
|
|
45
|
-
this._input = {};
|
|
46
|
-
}
|
|
47
|
-
firstUpdated() {
|
|
48
|
-
this._input = this.shadowRoot.querySelector(this._getElementName());
|
|
49
|
-
}
|
|
50
|
-
focus() {
|
|
51
|
-
this._input.focus();
|
|
52
|
-
}
|
|
53
|
-
_onBlur(event) {
|
|
54
|
-
this.dispatchEvent(
|
|
55
|
-
new CustomEvent("focus-lost", {
|
|
56
|
-
detail: {
|
|
57
|
-
value: this._input.value
|
|
58
|
-
},
|
|
59
|
-
composed: true,
|
|
60
|
-
bubbles: true
|
|
61
|
-
})
|
|
62
|
-
);
|
|
63
|
-
this._handleChangedValue(this._input.value, event, true, true);
|
|
64
|
-
}
|
|
65
|
-
_onKeyUp(event) {
|
|
66
|
-
this._handleChangedValue(this._input.value, event, true);
|
|
67
|
-
}
|
|
68
|
-
_getElementName() {
|
|
69
|
-
switch (this._inputType) {
|
|
70
|
-
case INPUT_TYPE_AREA:
|
|
71
|
-
return "textarea";
|
|
72
|
-
case INPUT_TYPE_SELECT:
|
|
73
|
-
return "select";
|
|
74
|
-
case INPUT_TYPE_FILE:
|
|
75
|
-
case INPUT_TYPE_TEXT:
|
|
76
|
-
return "input";
|
|
77
|
-
case INPUT_TYPE_DATE:
|
|
78
|
-
return "pd-input";
|
|
79
|
-
default:
|
|
80
|
-
return "";
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
export {
|
|
85
|
-
PdBaseInputElement
|
|
86
|
-
};
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { LitElement } from "lit";
|
|
2
|
-
import { updateWhenLocaleChanges } from "@lit/localize";
|
|
3
|
-
import { PDColorStyles } from "../../../../../../pd-shared-styles/src/shared-color-styles.js";
|
|
4
|
-
import { PDFontStyles } from "../../../../../../pd-shared-styles/src/shared-font-styles.js";
|
|
5
|
-
/**
|
|
6
|
-
* @license
|
|
7
|
-
* Copyright (c) 2021 PD Progressive Development UG. All rights reserved.
|
|
8
|
-
*
|
|
9
|
-
* Abstract base lit class for all pd-form elements.
|
|
10
|
-
* Import shared-global-style to make common custom properties available to all components.
|
|
11
|
-
*
|
|
12
|
-
* Used from:
|
|
13
|
-
* - pd-base-ui-input
|
|
14
|
-
*
|
|
15
|
-
* Used to:
|
|
16
|
-
* - define css (import shared-global-styles.js)
|
|
17
|
-
* - define common properties (detailieren, aktuell keine)
|
|
18
|
-
* - define updateWhenLocaleChanges for all pd-elements (check, aktuell nur für pd-form-container benötigt)
|
|
19
|
-
*
|
|
20
|
-
* Custom Properties (shared-global-styles):
|
|
21
|
-
* ... TODO
|
|
22
|
-
*/
|
|
23
|
-
class PdBaseUI extends LitElement {
|
|
24
|
-
static get styles() {
|
|
25
|
-
return [PDColorStyles, PDFontStyles];
|
|
26
|
-
}
|
|
27
|
-
constructor() {
|
|
28
|
-
super();
|
|
29
|
-
updateWhenLocaleChanges(this);
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
export {
|
|
33
|
-
PdBaseUI
|
|
34
|
-
};
|