@v1nt1248/3nclient-lib 0.2.91 → 0.2.93

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.91",
5
+ "version": "0.2.93",
6
6
  "description": "Library for 3NWeb clients",
7
7
  "type": "module",
8
8
  "files": [
@@ -9,6 +9,7 @@ export interface Ui3nDialogComponentProps<V> {
9
9
  icon?: string | Ui3nIconField;
10
10
  width?: string | number;
11
11
  draggable?: boolean;
12
+ hideCloseButton?: boolean;
12
13
  cssClass?: string[];
13
14
  cssStyle?: Record<string, string>;
14
15
  contentCssClass?: string[];
@@ -156,7 +156,7 @@
156
156
  >
157
157
  <!-- HEADER -->
158
158
  <div
159
- v-if="title"
159
+ v-if="title && !$slots['header']"
160
160
  :class="[$style.title, $style.titleDefault]"
161
161
  >
162
162
  <ui3n-icon
@@ -175,6 +175,7 @@
175
175
  <slot name="header" />
176
176
  </div>
177
177
 
178
+ <!-- BODY -->
178
179
  <div
179
180
  v-if="$slots['body']"
180
181
  :class="$style.content"
@@ -182,8 +183,9 @@
182
183
  <slot name="body" />
183
184
  </div>
184
185
 
186
+ <!-- ACTIONS -->
185
187
  <div
186
- v-if="confirmButton || cancelButton"
188
+ v-if="(confirmButton || cancelButton) && !$slots['actions']"
187
189
  :class="[$style.actions, $style.actionsDefault]"
188
190
  >
189
191
  <ui3n-button
@@ -223,6 +225,7 @@
223
225
  </div>
224
226
 
225
227
  <ui3n-button
228
+ v-if="!hideCloseButton"
226
229
  :class="$style.closeBtn"
227
230
  type="icon"
228
231
  size="small"