@uzum-tech/ui 1.11.0 → 1.11.2

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/dist/index.js CHANGED
@@ -119888,24 +119888,24 @@
119888
119888
  self: self$3
119889
119889
  };
119890
119890
 
119891
- var style$l = c$1([cB("modal-container", `
119891
+ var style$l = c$1([cB("modal-fullscreen-container", `
119892
119892
  position: fixed;
119893
119893
  left: 0;
119894
119894
  top: 0;
119895
119895
  height: 0;
119896
119896
  width: 0;
119897
119897
  display: flex;
119898
- `), cB("modal-body-wrapper", `
119898
+ `), cB("modal-fullscreen-body-wrapper", `
119899
119899
  position: fixed;
119900
119900
  left: 0;
119901
119901
  right: 0;
119902
119902
  top: 0;
119903
119903
  bottom: 0;
119904
119904
  overflow: visible;
119905
- `, [cB("modal-scroll-content", `
119906
- min-height: 100%;
119907
- position: relative;
119908
- `)]), cB("modal", `
119905
+ `), cB("modal-fullscreen-scroll-content", `
119906
+ min-height: 100%;
119907
+ position: relative;
119908
+ `), cB("modal-fullscreen", `
119909
119909
  position: relative;
119910
119910
  color: var(--u-text-color);
119911
119911
  margin: auto;
@@ -119923,22 +119923,22 @@
119923
119923
  background-color .3s var(--u-bezier),
119924
119924
  color .3s var(--u-bezier);
119925
119925
  z-index: 1;
119926
- `)]), cB("modal-content", `
119926
+ `)]), cB("modal-fullscreen-content", `
119927
119927
  height: 100%;
119928
- `, [cM("fixed", "", [cB("modal-header", `
119928
+ `, [cM("fixed", "", [cB("modal-fullscreen-header", `
119929
119929
  flex: 0 0 auto;
119930
- `), cB("modal-body", `
119930
+ `), cB("modal-fullscreen-body", `
119931
119931
  flex: 1 1 100%;
119932
- `), cB("modal-footer", `
119932
+ `), cB("modal-fullscreen-footer", `
119933
119933
  flex: 0 0 auto;
119934
- `)])]), cB("modal-body", `
119934
+ `)])]), cB("modal-fullscreen-body", `
119935
119935
  padding: var(--u-body-padding);
119936
119936
  background: var(--u-body-bg);
119937
119937
  overflow-y: auto;
119938
- `), cB("modal-footer", `
119938
+ `), cB("modal-fullscreen-footer", `
119939
119939
  padding: var(--u-footer-padding);
119940
119940
  background: var(--u-footer-bg);
119941
- `), cB("modal-header", `
119941
+ `), cB("modal-fullscreen-header", `
119942
119942
  padding: var(--u-header-padding);
119943
119943
  background: var(--u-header-bg);
119944
119944
  `, [cE("left", `
@@ -119998,7 +119998,7 @@
119998
119998
  onUpdateShow: [Function, Array],
119999
119999
  "onUpdate:show": [Function, Array]
120000
120000
  };
120001
- var ModalFull = vue.defineComponent({
120001
+ const ModalFullscreen = vue.defineComponent({
120002
120002
  name: "ModalFullscreen",
120003
120003
  inheritAttrs: false,
120004
120004
  props: modalFullscreenProps,
@@ -120174,21 +120174,8 @@
120174
120174
  handleEnter,
120175
120175
  handleBeforeLeave,
120176
120176
  handleAfterLeave,
120177
- handleEsc,
120178
- handleCloseClick
120177
+ handleEsc
120179
120178
  } = this;
120180
- const headerLeftSlot = resolveWrappedSlot(
120181
- this.$slots.headerLeft,
120182
- (children) => children
120183
- );
120184
- const bodySlot = resolveWrappedSlot(
120185
- this.$slots.body || this.$slots.default,
120186
- (children) => children
120187
- );
120188
- const footerSlot = resolveWrappedSlot(
120189
- this.$slots.footer,
120190
- (children) => children
120191
- );
120192
120179
  return /* @__PURE__ */ vue.h(VLazyTeleport, { to: this.to, show: this.show }, {
120193
120180
  default: () => {
120194
120181
  this.onRender?.();
@@ -120199,7 +120186,7 @@
120199
120186
  role: "none",
120200
120187
  ref: "containerRef",
120201
120188
  class: [
120202
- `${mergedClsPrefix}-modal-container`,
120189
+ `${mergedClsPrefix}-modal-fullscreen-container`,
120203
120190
  this.themeClass,
120204
120191
  this.namespace
120205
120192
  ],
@@ -120210,7 +120197,7 @@
120210
120197
  "div",
120211
120198
  {
120212
120199
  role: "none",
120213
- class: `${mergedClsPrefix}-modal-body-wrapper`
120200
+ class: `${mergedClsPrefix}-modal-fullscreen-body-wrapper`
120214
120201
  },
120215
120202
  /* @__PURE__ */ vue.h(
120216
120203
  Scrollbar$1,
@@ -120218,7 +120205,7 @@
120218
120205
  ref: "scrollbarRef",
120219
120206
  theme: this.themeRef.peers.Scrollbar,
120220
120207
  themeOverrides: this.themeRef.peerOverrides.Scrollbar,
120221
- contentClass: `${mergedClsPrefix}-modal-scroll-content`
120208
+ contentClass: `${mergedClsPrefix}-modal-fullscreen-scroll-content`
120222
120209
  },
120223
120210
  {
120224
120211
  default: () => /* @__PURE__ */ vue.h(
@@ -120246,89 +120233,7 @@
120246
120233
  [vue.vShow, this.show]
120247
120234
  ];
120248
120235
  return vue.withDirectives(
120249
- /* @__PURE__ */ vue.h(
120250
- "div",
120251
- {
120252
- class: `${mergedClsPrefix}-modal`
120253
- },
120254
- /* @__PURE__ */ vue.h(
120255
- UFlex,
120256
- {
120257
- vertical: true,
120258
- size: [0, 0],
120259
- class: [
120260
- `${mergedClsPrefix}-modal-content`,
120261
- this.fixed && `${mergedClsPrefix}-modal-content--fixed`
120262
- ]
120263
- },
120264
- /* @__PURE__ */ vue.h(
120265
- UFlex,
120266
- {
120267
- align: "center",
120268
- size: [0, 0],
120269
- wrap: false,
120270
- class: `${mergedClsPrefix}-modal-header`
120271
- },
120272
- /* @__PURE__ */ vue.h(
120273
- "div",
120274
- {
120275
- class: `${mergedClsPrefix}-modal-header__left`
120276
- },
120277
- headerLeftSlot
120278
- ),
120279
- /* @__PURE__ */ vue.h(
120280
- "div",
120281
- {
120282
- class: `${mergedClsPrefix}-modal-header__center`
120283
- },
120284
- this.title ? /* @__PURE__ */ vue.h(
120285
- UText,
120286
- {
120287
- variant: "body-l-semi-bold",
120288
- class: `${mergedClsPrefix}-modal-header__title`
120289
- },
120290
- this.title
120291
- ) : null,
120292
- this.subtitle ? /* @__PURE__ */ vue.h(
120293
- UText,
120294
- {
120295
- variant: "body-m-medium",
120296
- class: `${mergedClsPrefix}-modal-header__subtitle`
120297
- },
120298
- this.subtitle
120299
- ) : null
120300
- ),
120301
- /* @__PURE__ */ vue.h(
120302
- "div",
120303
- {
120304
- class: `${mergedClsPrefix}-modal-header__right`
120305
- },
120306
- /* @__PURE__ */ vue.h(
120307
- UBaseClose,
120308
- {
120309
- clsPrefix: mergedClsPrefix,
120310
- class: `${mergedClsPrefix}-modal__close`,
120311
- onClick: handleCloseClick
120312
- }
120313
- )
120314
- )
120315
- ),
120316
- /* @__PURE__ */ vue.h(
120317
- "div",
120318
- {
120319
- class: `${mergedClsPrefix}-modal-body`
120320
- },
120321
- bodySlot
120322
- ),
120323
- /* @__PURE__ */ vue.h(
120324
- "div",
120325
- {
120326
- class: `${mergedClsPrefix}-modal-footer`
120327
- },
120328
- footerSlot
120329
- )
120330
- )
120331
- ),
120236
+ modalFullscreenContent(this),
120332
120237
  dirs
120333
120238
  );
120334
120239
  }
@@ -120361,6 +120266,82 @@
120361
120266
  });
120362
120267
  }
120363
120268
  });
120269
+ const modalFullscreenContent = (_) => {
120270
+ const headerLeftSlot = resolveWrappedSlot(
120271
+ _.$slots.headerLeft,
120272
+ (children) => children
120273
+ );
120274
+ const bodySlot = resolveWrappedSlot(
120275
+ _.$slots.body || _.$slots.default,
120276
+ (children) => children
120277
+ );
120278
+ const footerSlot = resolveWrappedSlot(_.$slots.footer, (children) => children);
120279
+ return /* @__PURE__ */ vue.h("div", { class: `${_.mergedClsPrefix}-modal-fullscreen` }, /* @__PURE__ */ vue.h(
120280
+ UFlex,
120281
+ {
120282
+ vertical: true,
120283
+ size: [0, 0],
120284
+ class: [
120285
+ `${_.mergedClsPrefix}-modal-fullscreen-content`,
120286
+ _.fixed && `${_.mergedClsPrefix}-modal-fullscreen-content--fixed`
120287
+ ]
120288
+ },
120289
+ {
120290
+ default: () => /* @__PURE__ */ vue.h(vue.Fragment, null, /* @__PURE__ */ vue.h(
120291
+ UFlex,
120292
+ {
120293
+ align: "center",
120294
+ size: [0, 0],
120295
+ wrap: false,
120296
+ class: `${_.mergedClsPrefix}-modal-fullscreen-header`
120297
+ },
120298
+ {
120299
+ default: () => /* @__PURE__ */ vue.h(vue.Fragment, null, /* @__PURE__ */ vue.h(
120300
+ "div",
120301
+ {
120302
+ class: `${_.mergedClsPrefix}-modal-fullscreen-header__left`
120303
+ },
120304
+ headerLeftSlot
120305
+ ), /* @__PURE__ */ vue.h(
120306
+ "div",
120307
+ {
120308
+ class: `${_.mergedClsPrefix}-modal-fullscreen-header__center`
120309
+ },
120310
+ _.title ? /* @__PURE__ */ vue.h(
120311
+ UText,
120312
+ {
120313
+ variant: "body-l-semi-bold",
120314
+ class: `${_.mergedClsPrefix}-modal-fullscreen-header__title`
120315
+ },
120316
+ _.title
120317
+ ) : null,
120318
+ _.subtitle ? /* @__PURE__ */ vue.h(
120319
+ UText,
120320
+ {
120321
+ variant: "body-m-medium",
120322
+ class: `${_.mergedClsPrefix}-modal-fullscreen-header__subtitle`
120323
+ },
120324
+ _.subtitle
120325
+ ) : null
120326
+ ), /* @__PURE__ */ vue.h(
120327
+ "div",
120328
+ {
120329
+ class: `${_.mergedClsPrefix}-modal-fullscreen-header__right`
120330
+ },
120331
+ /* @__PURE__ */ vue.h(
120332
+ UBaseClose,
120333
+ {
120334
+ clsPrefix: _.mergedClsPrefix,
120335
+ class: `${_.mergedClsPrefix}-modal-fullscreen__close`,
120336
+ onClick: _.handleCloseClick
120337
+ }
120338
+ )
120339
+ ))
120340
+ }
120341
+ ), /* @__PURE__ */ vue.h("div", { class: `${_.mergedClsPrefix}-modal-fullscreen-body` }, bodySlot), /* @__PURE__ */ vue.h("div", { class: `${_.mergedClsPrefix}-modal-fullscreen-footer` }, footerSlot))
120342
+ }
120343
+ ));
120344
+ };
120364
120345
 
120365
120346
  const notificationProviderInjectionKey = createInjectionKey("u-notification-provider");
120366
120347
 
@@ -135984,7 +135965,7 @@
135984
135965
  UMenu: Menu,
135985
135966
  UMessageProvider: UMessageProvider,
135986
135967
  UModal: UModal,
135987
- UModalFullscreen: ModalFull,
135968
+ UModalFullscreen: ModalFullscreen,
135988
135969
  UNotificationProvider: UNotificationProvider,
135989
135970
  UNumberAnimation: NumberAnimation,
135990
135971
  UOl: ol,
@@ -136187,7 +136168,7 @@
136187
136168
  watermarkProps: watermarkProps
136188
136169
  });
136189
136170
 
136190
- var version = "1.11.0";
136171
+ var version = "1.11.2";
136191
136172
 
136192
136173
  function create({
136193
136174
  componentPrefix = "U",
@@ -137099,7 +137080,7 @@
137099
137080
  exports.UMenu = Menu;
137100
137081
  exports.UMessageProvider = UMessageProvider;
137101
137082
  exports.UModal = UModal;
137102
- exports.UModalFullscreen = ModalFull;
137083
+ exports.UModalFullscreen = ModalFullscreen;
137103
137084
  exports.UNotificationProvider = UNotificationProvider;
137104
137085
  exports.UNumberAnimation = NumberAnimation;
137105
137086
  exports.UOl = ol;