@milaboratories/uikit 2.2.3 → 2.2.5

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.
@@ -44,10 +44,6 @@ const props = withDefaults(
44
44
  * Allowed file extensions (should start with `.`)
45
45
  */
46
46
  extensions?: string[];
47
- /**
48
- * File dialog title
49
- */
50
- fileDialogTitle?: string;
51
47
  /**
52
48
  * Placeholder text
53
49
  */
@@ -68,11 +64,18 @@ const props = withDefaults(
68
64
  * If `true`, only the file name is displayed, not the full path to it.
69
65
  */
70
66
  showFilenameOnly?: boolean;
71
-
72
67
  /**
73
68
  * Remove rounded border and change styles
74
69
  */
75
70
  cellStyle?: boolean;
71
+ /**
72
+ * File dialog title
73
+ */
74
+ fileDialogTitle?: string;
75
+ /**
76
+ * If `true`, the file dialog window closes when clicking outside the modal area (default: `true`)
77
+ */
78
+ fileDialogCloseOnOutsideClick?: boolean;
76
79
  }>(),
77
80
  {
78
81
  label: undefined,
@@ -83,6 +86,7 @@ const props = withDefaults(
83
86
  error: undefined,
84
87
  helper: undefined,
85
88
  cellStyle: false,
89
+ fileDialogCloseOnOutsideClick: true,
86
90
  },
87
91
  );
88
92
 
@@ -182,5 +186,11 @@ if (!props.cellStyle) {
182
186
  </div>
183
187
  <div v-else-if="helper" class="upl-file-input__helper">{{ helper }}</div>
184
188
  </div>
185
- <PlFileDialog v-model="data.fileDialogOpen" :extensions="extensions" :title="fileDialogTitle" @import:files="onImport" />
189
+ <PlFileDialog
190
+ v-model="data.fileDialogOpen"
191
+ :extensions="extensions"
192
+ :title="fileDialogTitle"
193
+ :close-on-outside-click="fileDialogCloseOnOutsideClick"
194
+ @import:files="onImport"
195
+ />
186
196
  </template>
@@ -32,7 +32,7 @@ const props = withDefaults(
32
32
  */
33
33
  shadow?: boolean;
34
34
  /**
35
- * If `true`, the modal window closes when clicking outside the modal area.
35
+ * If `true`, the modal window closes when clicking outside the modal area (default: `true`)
36
36
  */
37
37
  closeOnOutsideClick?: boolean;
38
38
  }>(),
package/src/index.ts CHANGED
@@ -18,6 +18,7 @@ export * from './layout/PlGrid';
18
18
  * Components
19
19
  */
20
20
  export * from './components/PlAlert';
21
+ export * from './components/PlBtnSplit';
21
22
  export * from './components/PlBtnPrimary';
22
23
  export * from './components/PlBtnAccent';
23
24
  export * from './components/PlBtnDanger';