inviton-powerduck 0.0.92 → 0.0.94
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/common/dialog-utils.ts +1 -0
- package/common/utils/country-utils.ts +1 -1
- package/components/dropzone/gallery-dropzone.tsx +1 -0
- package/components/modal/animation-error.tsx +1 -0
- package/components/modal/animation-success.tsx +1 -0
- package/components/modal/icon-question.tsx +1 -0
- package/components/modal/icon-warning.tsx +1 -0
- package/components/photos/photo-manager.tsx +2 -0
- package/components/sweetalert2/css/sweetalert2.css +1375 -0
- package/package.json +4 -9
package/common/dialog-utils.ts
CHANGED
|
@@ -4,6 +4,7 @@ import { PortalUtils } from "./utils/utils";
|
|
|
4
4
|
import { isNullOrEmpty } from "./utils/is-null-or-empty";
|
|
5
5
|
import { ButtonLayout } from "../components/button/button-layout";
|
|
6
6
|
import PowerduckState from "../app/powerduck-state";
|
|
7
|
+
import './../components/sweetalert2/css/sweetalert2.css';
|
|
7
8
|
|
|
8
9
|
export enum DialogResult {
|
|
9
10
|
Confirm = 0,
|
|
@@ -77,7 +77,7 @@ export default class CountryUtils {
|
|
|
77
77
|
if (twoLetterCode == null) {
|
|
78
78
|
return null;
|
|
79
79
|
} else {
|
|
80
|
-
twoLetterCode = twoLetterCode.
|
|
80
|
+
twoLetterCode = twoLetterCode.toLowerCase();
|
|
81
81
|
}
|
|
82
82
|
|
|
83
83
|
return CountryUtils.getCountryCodeArr().find(p => p.twoLetters == twoLetterCode);
|
|
@@ -15,6 +15,7 @@ import NotificationProvider from "../ui/notification";
|
|
|
15
15
|
|
|
16
16
|
interface PhotoManagerArgs {
|
|
17
17
|
photos: Photo[];
|
|
18
|
+
showUploadButton?: boolean;
|
|
18
19
|
uploadUrl?: string;
|
|
19
20
|
photosUrl?: string;
|
|
20
21
|
mandatory?: boolean;
|
|
@@ -105,6 +106,7 @@ class PhotoManagerComponent extends TsxComponentExtended<PhotoManagerArgs> imple
|
|
|
105
106
|
<FormItemWrapper label={""} wrap={false} validationState={this.validationStateOf(this.v$.photos, PowerduckState.getResourceValue('photosErrorMessage'))}>
|
|
106
107
|
<DropzoneGallery
|
|
107
108
|
items={this.photos as any}
|
|
109
|
+
showUploadButton={this.showUploadButton}
|
|
108
110
|
uploadUrl={AppHttpProvider.enforceDomain + (this.uploadUrl ?? "files")}
|
|
109
111
|
parseNewItemFromResponse={(resp) => this.parseServerResponse(resp)}
|
|
110
112
|
defaultMessage={PowerduckState.getResourceValue('photosInitialMessage')}
|