@v1nt1248/3nclient-lib 0.2.84 → 0.2.86

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
@@ -2,7 +2,7 @@
2
2
  "name": "@v1nt1248/3nclient-lib",
3
3
  "license": "AGPL-3.0-or-later",
4
4
  "author": "v1nt1248",
5
- "version": "0.2.84",
5
+ "version": "0.2.86",
6
6
  "description": "Library for 3NWeb clients",
7
7
  "type": "module",
8
8
  "files": [
@@ -42,6 +42,7 @@ import type {
42
42
  Ui3nTableEmits,
43
43
  Ui3nTableExpose,
44
44
  } from './ui3n-table/types';
45
+ import Ui3nDialogProvider from '../plugins/dialogs/ui3n-dialog-provider.vue';
45
46
  import Ui3nDialog from './ui3n-dialog/ui3n-dialog.vue';
46
47
  import type {
47
48
  Ui3nDialogComponentProps,
@@ -154,6 +155,7 @@ export {
154
155
  Ui3nTableProps,
155
156
  Ui3nTableEmits,
156
157
  Ui3nTableExpose,
158
+ Ui3nDialogProvider,
157
159
  Ui3nDialog,
158
160
  Ui3nDialogComponentProps,
159
161
  Ui3nDialogComponentEmits,
@@ -35,4 +35,5 @@ export interface Ui3nDialogComponentSlots {
35
35
  header?: () => VNode;
36
36
  body: () => VNode;
37
37
  actions?: () => VNode;
38
+ loading?: () => VNode;
38
39
  }
@@ -214,6 +214,12 @@
214
214
  <slot name="actions" />
215
215
  </div>
216
216
 
217
+ <div
218
+ v-if="$slots['loading']"
219
+ :class="$style.loading"
220
+ >
221
+ <slot name="loading" />
222
+ </div>
217
223
 
218
224
  <ui3n-button
219
225
  :class="$style.closeBtn"
@@ -231,16 +237,6 @@
231
237
  <style lang="scss" module>
232
238
  @use '../../assets/styles/mixins' as mixins;
233
239
 
234
- .modal-overlay {
235
- position: fixed;
236
- z-index: 1000;
237
- inset: 0;
238
- display: flex;
239
- justify-content: center;
240
- align-items: center;
241
- background-color: var(--shadow-close);
242
- }
243
-
244
240
  .dialog {
245
241
  --ui3n-dialog-border-radius: 8px;
246
242
  --ui3n-dialog-title-height: 48px;
@@ -325,4 +321,13 @@
325
321
  align-items: center;
326
322
  gap: var(--spacing-s);
327
323
  }
324
+
325
+ .loading {
326
+ position: absolute;
327
+ inset: 0;
328
+ z-index: 1;
329
+ display: flex;
330
+ justify-content: center;
331
+ align-items: center;
332
+ }
328
333
  </style>