@milaboratories/uikit 2.2.51 → 2.2.53

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": "2.2.51",
3
+ "version": "2.2.53",
4
4
  "type": "module",
5
5
  "main": "dist/pl-uikit.umd.js",
6
6
  "module": "dist/pl-uikit.js",
@@ -132,9 +132,11 @@ const selectFile = (ev: MouseEvent, file: FileDialogItem) => {
132
132
 
133
133
  ev.preventDefault();
134
134
 
135
+ const items = visibleItems.value;
136
+
135
137
  if (file.canBeSelected) {
136
138
  if (!props.multi) {
137
- data.items.forEach((f) => (f.selected = false));
139
+ items.forEach((f) => (f.selected = false));
138
140
  }
139
141
 
140
142
  file.selected = !file.selected;
@@ -144,7 +146,7 @@ const selectFile = (ev: MouseEvent, file: FileDialogItem) => {
144
146
  }
145
147
 
146
148
  if (!ctrlOrMetaKey && !shiftKey) {
147
- data.items.forEach((f) => {
149
+ items.forEach((f) => {
148
150
  if (f.id !== file.id) {
149
151
  f.selected = false;
150
152
  }
@@ -152,7 +154,7 @@ const selectFile = (ev: MouseEvent, file: FileDialogItem) => {
152
154
  }
153
155
 
154
156
  if (shiftKey && lastSelected !== undefined) {
155
- data.items.forEach((f) => {
157
+ items.forEach((f) => {
156
158
  if (between(f.id, lastSelected, file.id)) {
157
159
  f.selected = true;
158
160
  }
@@ -170,7 +172,7 @@ const changeAll = (selected: boolean) => {
170
172
  return;
171
173
  }
172
174
 
173
- data.items
175
+ visibleItems.value
174
176
  .filter((f) => f.canBeSelected)
175
177
  .forEach((file) => {
176
178
  file.selected = selected;
@@ -0,0 +1,23 @@
1
+ <script setup lang="ts">
2
+ import style from './pl-splash.module.scss';
3
+ import { PlLoaderCircular } from '@/components/PlLoaderCircular';
4
+
5
+ withDefaults(defineProps<{
6
+ /**
7
+ * Optional string that sets size for PlLoaderCircular.
8
+ */
9
+ size?: '16' | '24' | '48' | string;
10
+ /**
11
+ * Optional string that sets text that will be shown below the PlLoaderCircular.
12
+ */
13
+ text?: string;
14
+
15
+ }>(), { size: '48', text: 'Loading' });
16
+ </script>
17
+
18
+ <template>
19
+ <div :class="style.container">
20
+ <PlLoaderCircular :size="size" />
21
+ <h3 :class="style.text">{{ text }}</h3>
22
+ </div>
23
+ </template>
@@ -0,0 +1 @@
1
+ export { default as PlSplash } from './PlSplash.vue';
@@ -0,0 +1,9 @@
1
+ .container {
2
+ display: flex;
3
+ flex-direction: column;
4
+ }
5
+
6
+ .text {
7
+ margin-top: 24px;
8
+ color: var(--txt-mask);
9
+ }
package/src/index.ts CHANGED
@@ -51,6 +51,7 @@ export * from './components/PlSectionSeparator';
51
51
  export * from './components/PlAccordion';
52
52
  export * from './components/PlStatusTag';
53
53
  export * from './components/PlLoaderCircular';
54
+ export * from './components/PlSplash';
54
55
  export * from './components/PlProgressCell';
55
56
 
56
57
  export * from './components/PlFileDialog';