@milaboratories/uikit 1.2.24 → 1.2.25

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@milaboratories/uikit",
3
- "version": "1.2.24",
3
+ "version": "1.2.25",
4
4
  "type": "module",
5
5
  "main": "dist/pl-uikit.umd.js",
6
6
  "module": "dist/pl-uikit.js",
@@ -31,8 +31,8 @@
31
31
  "vue-tsc": "^2.1.6",
32
32
  "yarpm": "^1.2.0",
33
33
  "svgo": "^3.3.2",
34
- "@platforma-sdk/model": "^1.7.0",
35
- "@milaboratories/helpers": "^1.6.5"
34
+ "@milaboratories/helpers": "^1.6.5",
35
+ "@platforma-sdk/model": "^1.7.9"
36
36
  },
37
37
  "scripts": {
38
38
  "dev": "vite",
@@ -230,7 +230,9 @@ const loadAvailableStorages = () => {
230
230
 
231
231
  if (props.autoSelectStorage) {
232
232
  tapIf(
233
- storageEntries.find((e) => e.isInitialPathHome),
233
+ storageEntries.find((e) =>
234
+ e.name === 'local' // the only local storage on unix systems
235
+ || (e.name.startsWith('local_disk_') && e.initialFullPath.length > 4)), // local drive where home folder is stored, normally C:\
234
236
  (entry) => {
235
237
  data.storageEntry = entry;
236
238
  data.dirPath = entry.initialFullPath;
@@ -298,15 +300,8 @@ const vTextOverflown = {
298
300
  </script>
299
301
 
300
302
  <template>
301
- <PlDialogModal
302
- :no-content-gutters="true"
303
- class="split"
304
- :model-value="modelValue"
305
- width="688px"
306
- height="720px"
307
- @update:model-value="closeModal"
308
- @click.stop="deselectAll"
309
- >
303
+ <PlDialogModal :no-content-gutters="true" class="split" :model-value="modelValue" width="688px" height="720px"
304
+ @update:model-value="closeModal" @click.stop="deselectAll">
310
305
  <template #title>{{ title ?? 'Select files' }}</template>
311
306
  <div class="file-dialog">
312
307
  <div class="file-dialog__search">
@@ -342,7 +337,8 @@ const vTextOverflown = {
342
337
  <i class="icon-16 icon-chevron-right" />
343
338
  <span v-text-overflown :title="file.name">{{ file.name }}</span>
344
339
  </div>
345
- <div v-else :class="{ canBeSelected: file.canBeSelected, selected: file.selected }" @click.stop="(ev) => selectFile(ev, file)">
340
+ <div v-else :class="{ canBeSelected: file.canBeSelected, selected: file.selected }"
341
+ @click.stop="(ev) => selectFile(ev, file)">
346
342
  <i class="mask-16 mask-comp isFile" />
347
343
  <span v-text-overflown :title="file.name">{{ file.name }}</span>
348
344
  </div>