@oiz/stzh-components 3.3.0-beta6 → 3.3.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/cjs/{app-globals-2cd4f46b.js → app-globals-333c7ab2.js} +2 -2
- package/dist/cjs/{app-globals-2cd4f46b.js.map → app-globals-333c7ab2.js.map} +1 -1
- package/dist/cjs/index-92254d32.js +6 -10
- package/dist/cjs/index.cjs.js.map +1 -1
- package/dist/cjs/loader.cjs.js +2 -2
- package/dist/cjs/stzh-appointments.cjs.entry.js +19 -2
- package/dist/cjs/stzh-appointments.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-components.cjs.js +2 -2
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js +1 -1
- package/dist/cjs/stzh-datepicker_3.cjs.entry.js.map +1 -1
- package/dist/cjs/{stzh-dialog.cjs.entry.js → stzh-dialog_2.cjs.entry.js} +141 -1
- package/dist/cjs/stzh-dialog_2.cjs.entry.js.map +1 -0
- package/dist/cjs/stzh-header.cjs.entry.js +6 -6
- package/dist/cjs/stzh-header.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-saptcha.cjs.entry.js +9 -1
- package/dist/cjs/stzh-saptcha.cjs.entry.js.map +1 -1
- package/dist/cjs/stzh-upload.cjs.entry.js +25 -14
- package/dist/cjs/stzh-upload.cjs.entry.js.map +1 -1
- package/dist/collection/assets/i18n/de.json +6 -4
- package/dist/collection/assets/i18n/en.json +6 -4
- package/dist/collection/components/stzh-header/stzh-header.css +1 -1
- package/dist/collection/components/stzh-header/stzh-header.js +5 -5
- package/dist/collection/components/stzh-header/stzh-header.js.map +1 -1
- package/dist/collection/components/stzh-header/stzh-header.stories.js +0 -2
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.css +6 -0
- package/dist/collection/components/stzh-radiogroup/stzh-radiogroup.stories.js +10 -0
- package/dist/collection/components/stzh-saptcha/stzh-saptcha.js +16 -1
- package/dist/collection/components/stzh-saptcha/stzh-saptcha.js.map +1 -1
- package/dist/collection/components/stzh-saptcha/stzh-saptcha.stories.js +2 -1
- package/dist/collection/components/stzh-upload/stzh-upload.js +26 -15
- package/dist/collection/components/stzh-upload/stzh-upload.js.map +1 -1
- package/dist/collection/components/stzh-upload/stzh-upload.localization.js.map +1 -1
- package/dist/collection/components/stzh-upload/stzh-upload.stories.js +1 -1
- package/dist/collection/index.js.map +1 -1
- package/dist/components/index.js +1 -1
- package/dist/components/index2.js.map +1 -1
- package/dist/components/stzh-appointments.js +18 -1
- package/dist/components/stzh-appointments.js.map +1 -1
- package/dist/components/stzh-header.js +6 -6
- package/dist/components/stzh-header.js.map +1 -1
- package/dist/components/stzh-radiogroup2.js +1 -1
- package/dist/components/stzh-radiogroup2.js.map +1 -1
- package/dist/components/stzh-saptcha.js +12 -2
- package/dist/components/stzh-saptcha.js.map +1 -1
- package/dist/components/stzh-toastbar.js +1 -185
- package/dist/components/stzh-toastbar.js.map +1 -1
- package/dist/{esm/stzh-toastbar.entry.js → components/stzh-toastbar2.js} +56 -11
- package/dist/components/stzh-toastbar2.js.map +1 -0
- package/dist/components/stzh-upload.js +53 -30
- package/dist/components/stzh-upload.js.map +1 -1
- package/dist/esm/{app-globals-0aad39a2.js → app-globals-cff24d08.js} +2 -2
- package/dist/esm/{app-globals-0aad39a2.js.map → app-globals-cff24d08.js.map} +1 -1
- package/dist/esm/index-e3050b18.js +6 -10
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/loader.js +2 -2
- package/dist/esm/stzh-appointments.entry.js +18 -1
- package/dist/esm/stzh-appointments.entry.js.map +1 -1
- package/dist/esm/stzh-components.js +2 -2
- package/dist/esm/stzh-datepicker_3.entry.js +1 -1
- package/dist/esm/stzh-datepicker_3.entry.js.map +1 -1
- package/dist/esm/{stzh-dialog.entry.js → stzh-dialog_2.entry.js} +141 -2
- package/dist/esm/stzh-dialog_2.entry.js.map +1 -0
- package/dist/esm/stzh-header.entry.js +6 -6
- package/dist/esm/stzh-header.entry.js.map +1 -1
- package/dist/esm/stzh-saptcha.entry.js +9 -1
- package/dist/esm/stzh-saptcha.entry.js.map +1 -1
- package/dist/esm/stzh-upload.entry.js +25 -14
- package/dist/esm/stzh-upload.entry.js.map +1 -1
- package/dist/stzh-components/assets/i18n/de.json +6 -4
- package/dist/stzh-components/assets/i18n/en.json +6 -4
- package/dist/stzh-components/index.esm.js.map +1 -1
- package/dist/stzh-components/{p-487b6e52.entry.js → p-35bf0d6a.entry.js} +2 -2
- package/dist/stzh-components/{p-487b6e52.entry.js.map → p-35bf0d6a.entry.js.map} +1 -1
- package/dist/stzh-components/p-37a50532.entry.js +2 -0
- package/dist/stzh-components/p-37a50532.entry.js.map +1 -0
- package/dist/stzh-components/{p-9d050177.entry.js → p-50c32fd1.entry.js} +2 -2
- package/dist/stzh-components/p-50c32fd1.entry.js.map +1 -0
- package/dist/stzh-components/p-5d9912f3.entry.js +2 -0
- package/dist/stzh-components/p-5d9912f3.entry.js.map +1 -0
- package/dist/stzh-components/p-cf4727ad.entry.js +2 -0
- package/dist/stzh-components/p-cf4727ad.entry.js.map +1 -0
- package/dist/stzh-components/p-e45e3147.js +2 -0
- package/dist/stzh-components/{p-49fcbbfb.js.map → p-e45e3147.js.map} +1 -1
- package/dist/stzh-components/p-f63a00c1.entry.js +2 -0
- package/dist/stzh-components/p-f63a00c1.entry.js.map +1 -0
- package/dist/stzh-components/stzh-components.esm.js +1 -1
- package/dist/stzh-components/stzh-components.esm.js.map +1 -1
- package/dist/types/components/stzh-saptcha/stzh-saptcha.d.ts +4 -0
- package/dist/types/components/stzh-upload/stzh-upload.d.ts +1 -0
- package/dist/types/components/stzh-upload/stzh-upload.localization.d.ts +2 -0
- package/dist/types/index.d.ts +5 -5
- package/package.json +1 -1
- package/dist/cjs/stzh-dialog.cjs.entry.js.map +0 -1
- package/dist/cjs/stzh-toastbar.cjs.entry.js +0 -148
- package/dist/cjs/stzh-toastbar.cjs.entry.js.map +0 -1
- package/dist/cjs/translation-utils-18767769.js +0 -23
- package/dist/cjs/translation-utils-18767769.js.map +0 -1
- package/dist/components/translation-utils.js +0 -21
- package/dist/components/translation-utils.js.map +0 -1
- package/dist/esm/stzh-dialog.entry.js.map +0 -1
- package/dist/esm/stzh-toastbar.entry.js.map +0 -1
- package/dist/esm/translation-utils-ffb7823c.js +0 -21
- package/dist/esm/translation-utils-ffb7823c.js.map +0 -1
- package/dist/stzh-components/p-16581003.entry.js +0 -2
- package/dist/stzh-components/p-16581003.entry.js.map +0 -1
- package/dist/stzh-components/p-24feb79f.entry.js +0 -2
- package/dist/stzh-components/p-24feb79f.entry.js.map +0 -1
- package/dist/stzh-components/p-287f518f.entry.js +0 -2
- package/dist/stzh-components/p-287f518f.entry.js.map +0 -1
- package/dist/stzh-components/p-41529de9.js +0 -2
- package/dist/stzh-components/p-41529de9.js.map +0 -1
- package/dist/stzh-components/p-49fcbbfb.js +0 -2
- package/dist/stzh-components/p-9d050177.entry.js.map +0 -1
- package/dist/stzh-components/p-acd03caf.entry.js +0 -2
- package/dist/stzh-components/p-acd03caf.entry.js.map +0 -1
- package/dist/stzh-components/p-bb4dea97.entry.js +0 -2
- package/dist/stzh-components/p-bb4dea97.entry.js.map +0 -1
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
import { proxyCustomElement, HTMLElement, createEvent, h, Host, Fragment } from '@stencil/core/internal/client';
|
|
2
2
|
import { g as getStzhEnvironment, i as isStzhElement, h as hasSlot } from './utils.js';
|
|
3
|
-
import { t as tc } from './translation-utils.js';
|
|
4
3
|
import { S as StzhInputDescription } from './stzh-input-description.js';
|
|
5
4
|
import { c as createCommonjsModule } from './_commonjsHelpers.js';
|
|
6
|
-
import { d as defineCustomElement$
|
|
7
|
-
import { d as defineCustomElement$
|
|
8
|
-
import { d as defineCustomElement$
|
|
9
|
-
import { d as defineCustomElement$
|
|
10
|
-
import { d as defineCustomElement$
|
|
11
|
-
import { d as defineCustomElement$
|
|
12
|
-
import { d as defineCustomElement$
|
|
13
|
-
import { d as defineCustomElement$
|
|
5
|
+
import { d as defineCustomElement$b } from './stzh-badge2.js';
|
|
6
|
+
import { d as defineCustomElement$a } from './stzh-button2.js';
|
|
7
|
+
import { d as defineCustomElement$9 } from './stzh-dialog2.js';
|
|
8
|
+
import { d as defineCustomElement$8 } from './stzh-heading2.js';
|
|
9
|
+
import { d as defineCustomElement$7 } from './stzh-icon2.js';
|
|
10
|
+
import { d as defineCustomElement$6 } from './stzh-link2.js';
|
|
11
|
+
import { d as defineCustomElement$5 } from './stzh-popover2.js';
|
|
12
|
+
import { d as defineCustomElement$4 } from './stzh-text2.js';
|
|
13
|
+
import { d as defineCustomElement$3 } from './stzh-toast2.js';
|
|
14
|
+
import { d as defineCustomElement$2 } from './stzh-toastbar2.js';
|
|
14
15
|
|
|
15
16
|
(function webpackUniversalModuleDefinition(root, factory) {
|
|
16
17
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
@@ -13615,6 +13616,11 @@ const StzhUpload$1 = /*@__PURE__*/ proxyCustomElement(class StzhUpload extends H
|
|
|
13615
13616
|
});
|
|
13616
13617
|
}
|
|
13617
13618
|
}
|
|
13619
|
+
toggleToast(message, type) {
|
|
13620
|
+
document.querySelector('stzh-upload').querySelector('stzh-toastbar').toast(message, {
|
|
13621
|
+
type: type,
|
|
13622
|
+
});
|
|
13623
|
+
}
|
|
13618
13624
|
componentDidRender() {
|
|
13619
13625
|
if (this.dropzone) {
|
|
13620
13626
|
return;
|
|
@@ -13919,18 +13925,24 @@ const StzhUpload$1 = /*@__PURE__*/ proxyCustomElement(class StzhUpload extends H
|
|
|
13919
13925
|
totalBytes,
|
|
13920
13926
|
totalBytesSent,
|
|
13921
13927
|
}));
|
|
13922
|
-
this.dropzone.on("error", (file, message, xhr) =>
|
|
13923
|
-
|
|
13924
|
-
|
|
13925
|
-
|
|
13926
|
-
|
|
13927
|
-
|
|
13928
|
-
|
|
13929
|
-
|
|
13930
|
-
|
|
13931
|
-
|
|
13932
|
-
|
|
13933
|
-
|
|
13928
|
+
this.dropzone.on("error", (file, message, xhr) => {
|
|
13929
|
+
this.toggleToast(this.localization.uploadErrorToast, 'error');
|
|
13930
|
+
this.stzhError.emit({
|
|
13931
|
+
component: "stzh-upload",
|
|
13932
|
+
file,
|
|
13933
|
+
message,
|
|
13934
|
+
xhr,
|
|
13935
|
+
});
|
|
13936
|
+
});
|
|
13937
|
+
this.dropzone.on("errormultiple", (files, message, xhr) => {
|
|
13938
|
+
this.toggleToast(this.localization.uploadErrorToast, 'error');
|
|
13939
|
+
this.stzhErrorMultiple.emit({
|
|
13940
|
+
component: "stzh-upload",
|
|
13941
|
+
files,
|
|
13942
|
+
message,
|
|
13943
|
+
xhr,
|
|
13944
|
+
});
|
|
13945
|
+
});
|
|
13934
13946
|
this.dropzone.on("success", (file, responseText, event) => this.stzhSuccess.emit({
|
|
13935
13947
|
component: "stzh-upload",
|
|
13936
13948
|
file,
|
|
@@ -13960,6 +13972,7 @@ const StzhUpload$1 = /*@__PURE__*/ proxyCustomElement(class StzhUpload extends H
|
|
|
13960
13972
|
files,
|
|
13961
13973
|
}));
|
|
13962
13974
|
this.dropzone.on("addedfile", (file) => {
|
|
13975
|
+
this.toggleToast(this.localization.uploadSuccessToast, 'success');
|
|
13963
13976
|
file.previewElement.querySelectorAll(`[${ATTR_NAME}]`).forEach((name) => {
|
|
13964
13977
|
name.setAttribute("title", file.name);
|
|
13965
13978
|
});
|
|
@@ -13998,7 +14011,7 @@ const StzhUpload$1 = /*@__PURE__*/ proxyCustomElement(class StzhUpload extends H
|
|
|
13998
14011
|
"stzh-upload--has-instructions": !!this.description || !!this.localization.description,
|
|
13999
14012
|
};
|
|
14000
14013
|
const description = this.description ? this.description : this.localization.description;
|
|
14001
|
-
return (h(Host, { "is-invalid": this.invalid || errorUsed }, h("div", { class: classes, ref: el => (this.dropzoneElement = el) }, h("div", { ref: el => (this.hiddenInputContainerElement = el) }), h("div", { id: `${this.uploadId}-label` }, this.label && h("div", { class: "stzh-upload__label" }, this.label)), h("div", { class: "stzh-upload__clickarea", ref: el => (this.clickareaElement = el) }, h("div", { class: "stzh-upload__heading-wrapper" }, h("div", { class: "stzh-upload__heading-inner-wrapper" }, h("div", { class: "stzh-upload__heading" }, this.heading ? this.heading : this.localization.heading), h("div", { class: "stzh-upload__buttons-wrapper" }, h("stzh-button", { class: "stzh-upload__button", variant: "secondary", size: "small", ref: el => (this.linkElement = el), label: this.button ? this.button :
|
|
14014
|
+
return (h(Host, { "is-invalid": this.invalid || errorUsed }, h("stzh-toastbar", null), h("div", { class: classes, ref: el => (this.dropzoneElement = el) }, h("div", { ref: el => (this.hiddenInputContainerElement = el) }), h("div", { id: `${this.uploadId}-label` }, this.label && h("div", { class: "stzh-upload__label" }, this.label)), h("div", { class: "stzh-upload__clickarea", ref: el => (this.clickareaElement = el) }, h("div", { class: "stzh-upload__heading-wrapper" }, h("div", { class: "stzh-upload__heading-inner-wrapper" }, h("div", { class: "stzh-upload__heading" }, this.heading ? this.heading : this.localization.heading), h("div", { class: "stzh-upload__buttons-wrapper" }, h("stzh-button", { class: "stzh-upload__button", variant: "secondary", size: "small", ref: el => (this.linkElement = el), label: this.button ? this.button : this.localization.button, a11yDescribedby: `${this.uploadId}-label ${this.uploadId}-instruction ${this.uploadId}-description`, disabled: this.disabled, a11yControls: `${this.uploadId}-previews` }, h("stzh-icon", { slot: "icon", name: "upload" })), this.isPhotographingAvailable && (h("stzh-button", { class: "stzh-upload__button-scan", variant: "secondary", size: "small", label: this.buttonScan ? this.buttonScan : this.localization.buttonScan, onClick: this.onButtonScanClick }, h("stzh-icon", { slot: "icon", name: "camera" })))), h("div", { class: "stzh-upload__hint-wrapper" }, h("span", null, this.localization.buttonIntro)))), h("div", { class: "stzh-upload__instructions", id: `${this.uploadId}-instruction` }, description
|
|
14002
14015
|
.replace("{{fileformats}}", this.acceptedFiles ? this.acceptedFiles : "Alle")
|
|
14003
14016
|
.replace("{{filesize}}", `${this.maxFilesize}`))), h("div", { class: "stzh-upload__description-wrapper" }, ((_b = this._error) === null || _b === void 0 ? void 0 : _b.length) > 0 && (h(StzhInputDescription, { classPrefix: "stzh-upload", id: `${this.uploadId}-description`, error: this._error }))), h("div", { id: `${this.uploadId}-previews`, class: "stzh-upload__previews-wrapper" }, h("div", { class: "stzh-upload__previews-inner-wrapper" }, h("div", { class: "stzh-upload__errors", ref: el => (this.errorsElement = el) }), h("div", { class: "stzh-upload__previews dropzone-previews", ref: el => (this.previewsElement = el) })))), h("stzh-dialog", { ref: el => (this.photographingOverlayElement = el), onStzhClose: this.closePhotographingWebsocketConnection }, h("stzh-button", { class: "stzh-upload-photographing__back-button", icon: "arrow-left", size: "small", variant: "tertiary-plain", "no-padding-left": "true", "no-padding-right": "true", onClick: this.closePhotographingOverlay }, this.localization.back), this.isPhotographingAvailable && (h(Fragment, null, h("div", { class: "stzh-upload-photographing__info" }, h("stzh-heading", { level: "3" }, this.localization.photographingTitle1), h("div", { class: "stzh-upload-photographing__text-qrcode" }, h("div", null, h("stzh-text", null, this.localization.photographingText1), !!this.photographingUrlDetails && (h("stzh-link", { class: "stzh-upload-photographing-link", href: this.photographingUrlDetails.url, target: "_blank" }, this.photographingUrlDetails.url))), h("canvas", { class: "stzh-upload-photographing-qrcode", ref: el => (this.photographingQrcodeElement = el) }))), h("div", { class: "stzh-upload-photographing__info" }, h("stzh-heading", { level: "3" }, this.localization.photographingTitle2), h("stzh-text", null, this.localization.photographingText2)))))));
|
|
14004
14017
|
}
|
|
@@ -14073,7 +14086,7 @@ function defineCustomElement$1() {
|
|
|
14073
14086
|
if (typeof customElements === "undefined") {
|
|
14074
14087
|
return;
|
|
14075
14088
|
}
|
|
14076
|
-
const components = ["stzh-upload", "stzh-badge", "stzh-button", "stzh-dialog", "stzh-heading", "stzh-icon", "stzh-link", "stzh-popover", "stzh-text"];
|
|
14089
|
+
const components = ["stzh-upload", "stzh-badge", "stzh-button", "stzh-dialog", "stzh-heading", "stzh-icon", "stzh-link", "stzh-popover", "stzh-text", "stzh-toast", "stzh-toastbar"];
|
|
14077
14090
|
components.forEach(tagName => { switch (tagName) {
|
|
14078
14091
|
case "stzh-upload":
|
|
14079
14092
|
if (!customElements.get(tagName)) {
|
|
@@ -14082,40 +14095,50 @@ function defineCustomElement$1() {
|
|
|
14082
14095
|
break;
|
|
14083
14096
|
case "stzh-badge":
|
|
14084
14097
|
if (!customElements.get(tagName)) {
|
|
14085
|
-
defineCustomElement$
|
|
14098
|
+
defineCustomElement$b();
|
|
14086
14099
|
}
|
|
14087
14100
|
break;
|
|
14088
14101
|
case "stzh-button":
|
|
14089
14102
|
if (!customElements.get(tagName)) {
|
|
14090
|
-
defineCustomElement$
|
|
14103
|
+
defineCustomElement$a();
|
|
14091
14104
|
}
|
|
14092
14105
|
break;
|
|
14093
14106
|
case "stzh-dialog":
|
|
14094
14107
|
if (!customElements.get(tagName)) {
|
|
14095
|
-
defineCustomElement$
|
|
14108
|
+
defineCustomElement$9();
|
|
14096
14109
|
}
|
|
14097
14110
|
break;
|
|
14098
14111
|
case "stzh-heading":
|
|
14099
14112
|
if (!customElements.get(tagName)) {
|
|
14100
|
-
defineCustomElement$
|
|
14113
|
+
defineCustomElement$8();
|
|
14101
14114
|
}
|
|
14102
14115
|
break;
|
|
14103
14116
|
case "stzh-icon":
|
|
14104
14117
|
if (!customElements.get(tagName)) {
|
|
14105
|
-
defineCustomElement$
|
|
14118
|
+
defineCustomElement$7();
|
|
14106
14119
|
}
|
|
14107
14120
|
break;
|
|
14108
14121
|
case "stzh-link":
|
|
14109
14122
|
if (!customElements.get(tagName)) {
|
|
14110
|
-
defineCustomElement$
|
|
14123
|
+
defineCustomElement$6();
|
|
14111
14124
|
}
|
|
14112
14125
|
break;
|
|
14113
14126
|
case "stzh-popover":
|
|
14114
14127
|
if (!customElements.get(tagName)) {
|
|
14115
|
-
defineCustomElement$
|
|
14128
|
+
defineCustomElement$5();
|
|
14116
14129
|
}
|
|
14117
14130
|
break;
|
|
14118
14131
|
case "stzh-text":
|
|
14132
|
+
if (!customElements.get(tagName)) {
|
|
14133
|
+
defineCustomElement$4();
|
|
14134
|
+
}
|
|
14135
|
+
break;
|
|
14136
|
+
case "stzh-toast":
|
|
14137
|
+
if (!customElements.get(tagName)) {
|
|
14138
|
+
defineCustomElement$3();
|
|
14139
|
+
}
|
|
14140
|
+
break;
|
|
14141
|
+
case "stzh-toastbar":
|
|
14119
14142
|
if (!customElements.get(tagName)) {
|
|
14120
14143
|
defineCustomElement$2();
|
|
14121
14144
|
}
|