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.
@@ -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.toUpperCase();
80
+ twoLetterCode = twoLetterCode.toLowerCase();
81
81
  }
82
82
 
83
83
  return CountryUtils.getCountryCodeArr().find(p => p.twoLetters == twoLetterCode);
@@ -18,6 +18,7 @@ interface DropzoneFormItem {
18
18
 
19
19
  interface DropzoneGalleryArgs {
20
20
  items: DropzoneGalleryItem[];
21
+ showUploadButton?: boolean;
21
22
  changed?: (items: DropzoneGalleryItem[]) => void;
22
23
  removedFile?: (file: File) => void;
23
24
  uploadUrl: string;
@@ -1,5 +1,6 @@
1
1
  import { toNative, Prop } from "vue-facing-decorator";
2
2
  import TsxComponent, { Component } from "../../app/vuetsx";
3
+ import './../sweetalert2/css/sweetalert2.css';
3
4
 
4
5
  interface ModalAnimationErrorArgs {
5
6
  visible: boolean;
@@ -1,5 +1,6 @@
1
1
  import { toNative, Prop } from "vue-facing-decorator";
2
2
  import TsxComponent, { Component } from "../../app/vuetsx";
3
+ import './../sweetalert2/css/sweetalert2.css';
3
4
 
4
5
  interface ModalAnimationSuccessArgs {
5
6
  visible: boolean;
@@ -1,5 +1,6 @@
1
1
  import { toNative, Prop } from "vue-facing-decorator";
2
2
  import TsxComponent, { Component } from "../../app/vuetsx";
3
+ import './../sweetalert2/css/sweetalert2.css';
3
4
 
4
5
  interface ModalIconQuestionArgs {
5
6
  visible: boolean;
@@ -1,5 +1,6 @@
1
1
  import { toNative, Prop } from "vue-facing-decorator";
2
2
  import TsxComponent, { Component } from "../../app/vuetsx";
3
+ import './../sweetalert2/css/sweetalert2.css';
3
4
 
4
5
  interface ModalIconWarningArgs {
5
6
  visible: boolean;
@@ -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')}