prlg-ui 1.8.390 → 1.8.392

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.
@@ -19176,68 +19176,70 @@ const cq = /* @__PURE__ */ g({
19176
19176
  openModifiers: {}
19177
19177
  }),
19178
19178
  emits: ["update:open"],
19179
- setup(e) {
19180
- const a = je(e, "open"), t = La("content"), l = x(!1), o = x(!1), n = x(0), s = x(0), i = x(0), u = (y) => {
19181
- l.value = !0, s.value = y.touches[0].clientY;
19182
- }, c = (y) => {
19183
- if (!l.value) return;
19184
- const _ = y.touches[0].clientY - s.value;
19185
- _ > 0 && (y.preventDefault(), n.value = _);
19186
- }, d = () => {
19187
- if (!l.value) return;
19188
- const y = i.value * 0.3;
19189
- n.value > y ? (n.value = i.value + 50, l.value = !1, setTimeout(() => {
19190
- o.value = !0, a.value = !1;
19191
- }, 200)) : (n.value = 0, l.value = !1);
19192
- }, f = (y) => {
19193
- l.value = !0, s.value = y.clientY;
19194
- const _ = (C) => {
19195
- if (!l.value) return;
19196
- const w = C.clientY - s.value;
19197
- w > 0 && (C.preventDefault(), n.value = w);
19198
- }, h = () => {
19199
- d(), document.removeEventListener("mousemove", _), document.removeEventListener("mouseup", h);
19179
+ setup(e, { expose: a }) {
19180
+ const t = je(e, "open"), l = La("content"), o = x(!1), n = x(!1), s = x(0), i = x(0), u = x(0), c = (_) => {
19181
+ o.value = !0, i.value = _.touches[0].clientY;
19182
+ }, d = (_) => {
19183
+ if (!o.value) return;
19184
+ const h = _.touches[0].clientY - i.value;
19185
+ h > 0 && (_.preventDefault(), s.value = h);
19186
+ }, f = () => {
19187
+ if (!o.value) return;
19188
+ const _ = u.value * 0.3;
19189
+ s.value > _ ? (s.value = u.value + 50, o.value = !1, setTimeout(() => {
19190
+ n.value = !0, t.value = !1;
19191
+ }, 200)) : (s.value = 0, o.value = !1);
19192
+ }, y = (_) => {
19193
+ o.value = !0, i.value = _.clientY;
19194
+ const h = (w) => {
19195
+ if (!o.value) return;
19196
+ const D = w.clientY - i.value;
19197
+ D > 0 && (w.preventDefault(), s.value = D);
19198
+ }, C = () => {
19199
+ f(), document.removeEventListener("mousemove", h), document.removeEventListener("mouseup", C);
19200
19200
  };
19201
- document.addEventListener("mousemove", _), document.addEventListener("mouseup", h);
19201
+ document.addEventListener("mousemove", h), document.addEventListener("mouseup", C);
19202
19202
  };
19203
- return Z(a, async (y) => {
19204
- y && (o.value = !1, n.value = 0, await ie(), t.value?.$el && (i.value = t.value.$el.offsetHeight));
19205
- }), (y, _) => (p(), m(r(fb), {
19206
- open: a.value,
19207
- "onUpdate:open": _[0] || (_[0] = (h) => a.value = h)
19203
+ return Z(t, async (_) => {
19204
+ _ && (n.value = !1, s.value = 0, await ie(), l.value?.$el && (u.value = l.value.$el.offsetHeight));
19205
+ }), a({
19206
+ $elContent: l.value
19207
+ }), (_, h) => (p(), m(r(fb), {
19208
+ open: t.value,
19209
+ "onUpdate:open": h[0] || (h[0] = (C) => t.value = C)
19208
19210
  }, {
19209
19211
  default: v(() => [
19210
19212
  M(r(Cb), null, {
19211
19213
  default: v(() => [
19212
- M(r(bb), {
19213
- class: Se({ "drag-closing-overlay": o.value })
19214
- }, null, 8, ["class"]),
19215
19214
  K("div", {
19216
- style: De(`position: relative; z-index: ${y.zIndex}`)
19215
+ style: De(`position: relative; z-index: ${_.zIndex}`)
19217
19216
  }, [
19217
+ M(r(bb), {
19218
+ class: Se({ "drag-closing-overlay": n.value })
19219
+ }, null, 8, ["class"]),
19218
19220
  M(r(hb), {
19219
19221
  ref: "content",
19220
19222
  position: "bottom",
19221
19223
  "close-button": { enabled: !1 },
19222
19224
  style: De({
19223
19225
  height: "max-content",
19224
- transform: n.value > 0 ? `translateY(${n.value}px)` : void 0,
19225
- transition: l.value ? "none" : "transform 0.2s ease-out",
19226
- animation: o.value ? "none" : void 0
19226
+ transform: s.value > 0 ? `translateY(${s.value}px)` : void 0,
19227
+ transition: o.value ? "none" : "transform 0.2s ease-out",
19228
+ animation: n.value ? "none" : void 0
19227
19229
  })
19228
19230
  }, {
19229
19231
  default: v(() => [
19230
19232
  K("div", {
19231
19233
  class: "bottom-sheet-handle",
19232
- onTouchstart: u,
19233
- onTouchmove: be(c, ["prevent"]),
19234
- onTouchend: d,
19235
- onMousedown: f
19236
- }, [..._[1] || (_[1] = [
19234
+ onTouchstart: c,
19235
+ onTouchmove: be(d, ["prevent"]),
19236
+ onTouchend: f,
19237
+ onMousedown: y
19238
+ }, [...h[1] || (h[1] = [
19237
19239
  K("div", { class: "bottom-sheet-handle__dot" }, null, -1)
19238
19240
  ])], 32),
19239
19241
  K("div", wb, [
19240
- b(y.$slots, "default", {}, void 0, !0)
19242
+ b(_.$slots, "default", {}, void 0, !0)
19241
19243
  ])
19242
19244
  ]),
19243
19245
  _: 3
@@ -19250,7 +19252,7 @@ const cq = /* @__PURE__ */ g({
19250
19252
  _: 3
19251
19253
  }, 8, ["open"]));
19252
19254
  }
19253
- }), Bq = /* @__PURE__ */ F(Sb, [["__scopeId", "data-v-309889d7"]]), qb = /* @__PURE__ */ g({
19255
+ }), Bq = /* @__PURE__ */ F(Sb, [["__scopeId", "data-v-9b9b30aa"]]), qb = /* @__PURE__ */ g({
19254
19256
  __name: "CalendarRoot",
19255
19257
  props: {
19256
19258
  defaultValue: {},
package/dist/rekaUI.d.ts CHANGED
@@ -229,7 +229,96 @@ declare const __VLS_component_10: DefineComponent<AlertDialogTitleProps, {}, {},
229
229
 
230
230
  declare const __VLS_component_11: DefineComponent<IAlertDialogTriggerProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly<IAlertDialogTriggerProps> & Readonly<{}>, {}, {}, {}, {}, string, ComponentProvideOptions, false, {}, any>;
231
231
 
232
- declare const __VLS_component_12: DefineComponent<__VLS_PublicProps, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
232
+ declare const __VLS_component_12: DefineComponent<__VLS_PublicProps, {
233
+ $elContent: ({
234
+ $: ComponentInternalInstance;
235
+ $data: {};
236
+ $props: {
237
+ readonly closeButton?: IDrawerCloseProps | undefined;
238
+ readonly width?: number | undefined;
239
+ readonly position?: "right" | "top" | "left" | "bottom" | undefined;
240
+ readonly forceMount?: boolean | undefined;
241
+ readonly asChild?: boolean | undefined;
242
+ readonly as?: (AsTag | Component) | undefined;
243
+ readonly disableOutsidePointerEvents?: boolean | undefined;
244
+ readonly onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
245
+ readonly onOpenAutoFocus?: ((event: Event) => any) | undefined;
246
+ readonly onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
247
+ readonly onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
248
+ readonly onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
249
+ readonly onCloseAutoFocus?: ((event: Event) => any) | undefined;
250
+ } & VNodeProps & AllowedComponentProps & ComponentCustomProps;
251
+ $attrs: {
252
+ [x: string]: unknown;
253
+ };
254
+ $refs: {
255
+ [x: string]: unknown;
256
+ };
257
+ $slots: Readonly<{
258
+ [name: string]: Slot<any> | undefined;
259
+ }>;
260
+ $root: ComponentPublicInstance | null;
261
+ $parent: ComponentPublicInstance | null;
262
+ $host: Element | null;
263
+ $emit: ((event: "escapeKeyDown", event: KeyboardEvent) => void) & ((event: "openAutoFocus", event: Event) => void) & ((event: "pointerDownOutside", event: PointerDownOutsideEvent) => void) & ((event: "focusOutside", event: FocusOutsideEvent) => void) & ((event: "interactOutside", event: PointerDownOutsideEvent | FocusOutsideEvent) => void) & ((event: "closeAutoFocus", event: Event) => void);
264
+ $el: any;
265
+ $options: ComponentOptionsBase<Readonly<IDialogContentProps> & Readonly<{
266
+ onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
267
+ onOpenAutoFocus?: ((event: Event) => any) | undefined;
268
+ onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
269
+ onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
270
+ onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
271
+ onCloseAutoFocus?: ((event: Event) => any) | undefined;
272
+ }>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
273
+ escapeKeyDown: (event: KeyboardEvent) => any;
274
+ openAutoFocus: (event: Event) => any;
275
+ pointerDownOutside: (event: PointerDownOutsideEvent) => any;
276
+ focusOutside: (event: FocusOutsideEvent) => any;
277
+ interactOutside: (event: PointerDownOutsideEvent | FocusOutsideEvent) => any;
278
+ closeAutoFocus: (event: Event) => any;
279
+ }, string, {
280
+ width: number;
281
+ position: "right" | "top" | "left" | "bottom";
282
+ closeButton: IDrawerCloseProps;
283
+ }, {}, string, {}, GlobalComponents, GlobalDirectives, string, ComponentProvideOptions> & {
284
+ beforeCreate?: (() => void) | (() => void)[];
285
+ created?: (() => void) | (() => void)[];
286
+ beforeMount?: (() => void) | (() => void)[];
287
+ mounted?: (() => void) | (() => void)[];
288
+ beforeUpdate?: (() => void) | (() => void)[];
289
+ updated?: (() => void) | (() => void)[];
290
+ activated?: (() => void) | (() => void)[];
291
+ deactivated?: (() => void) | (() => void)[];
292
+ beforeDestroy?: (() => void) | (() => void)[];
293
+ beforeUnmount?: (() => void) | (() => void)[];
294
+ destroyed?: (() => void) | (() => void)[];
295
+ unmounted?: (() => void) | (() => void)[];
296
+ renderTracked?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
297
+ renderTriggered?: ((e: DebuggerEvent) => void) | ((e: DebuggerEvent) => void)[];
298
+ errorCaptured?: ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: ComponentPublicInstance | null, info: string) => boolean | void)[];
299
+ };
300
+ $forceUpdate: () => void;
301
+ $nextTick: typeof nextTick;
302
+ $watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, OnCleanup]) => any : (...args: [any, any, OnCleanup]) => any, options?: WatchOptions): WatchStopHandle;
303
+ } & Readonly<{
304
+ width: number;
305
+ position: "right" | "top" | "left" | "bottom";
306
+ closeButton: IDrawerCloseProps;
307
+ }> & Omit<Readonly<IDialogContentProps> & Readonly<{
308
+ onEscapeKeyDown?: ((event: KeyboardEvent) => any) | undefined;
309
+ onOpenAutoFocus?: ((event: Event) => any) | undefined;
310
+ onPointerDownOutside?: ((event: PointerDownOutsideEvent) => any) | undefined;
311
+ onFocusOutside?: ((event: FocusOutsideEvent) => any) | undefined;
312
+ onInteractOutside?: ((event: PointerDownOutsideEvent | FocusOutsideEvent) => any) | undefined;
313
+ onCloseAutoFocus?: ((event: Event) => any) | undefined;
314
+ }>, "width" | "position" | "closeButton"> & ShallowUnwrapRef< {}> & {} & ComponentCustomProperties & {} & {
315
+ $slots: {
316
+ header?(_: {}): any;
317
+ default?(_: {}): any;
318
+ actions?(_: {}): any;
319
+ };
320
+ }) | null;
321
+ }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
233
322
  "update:open": (value: boolean) => any;
234
323
  }, string, PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
235
324
  "onUpdate:open"?: ((value: boolean) => any) | undefined;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "prlg-ui",
3
3
  "private": false,
4
- "version": "1.8.390",
4
+ "version": "1.8.392",
5
5
  "type": "module",
6
6
  "main": "dist/prlg-ui.umd.js",
7
7
  "module": "dist/prlg-ui.es.js",