zartui 3.1.37 → 3.1.38

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.
@@ -1,7 +1,7 @@
1
1
  import { defineComponent, ref, watch, createVNode as _createVNode, createTextVNode as _createTextVNode, mergeProps as _mergeProps, vShow as _vShow, withDirectives as _withDirectives } from "vue";
2
2
  import { createNamespace, ELLIPSIS, extend, HAPTICS_FEEDBACK, isSameValue, pick } from "../utils/index.mjs";
3
3
  import DateTimePicker, { dateTimePickerProps } from "./DateTimePickerWrapper.mjs";
4
- import { pickerInheritKeys } from "./utils.mjs";
4
+ import { pickerInheritKeys, popupInheritKeys } from "./utils.mjs";
5
5
  import Popup from "../popup/Popup.mjs";
6
6
  import Toolbar, { pickerToolbarPropKeys, pickerToolbarSlots } from "../picker/PickerToolbar.mjs";
7
7
  import Divider from "../divider/Divider.mjs";
@@ -252,13 +252,13 @@ var stdin_default = defineComponent({
252
252
  }), pick(slots, pickerToolbarSlots))];
253
253
  }
254
254
  };
255
- return () => _createVNode(Popup, {
255
+ return () => _createVNode(Popup, _mergeProps(pick(props, popupInheritKeys), {
256
256
  "round": true,
257
257
  "position": "bottom",
258
258
  "onOpen": onOpen,
259
259
  "show": currentShow.value,
260
260
  "onUpdate:show": ($event) => currentShow.value = $event
261
- }, {
261
+ }), {
262
262
  default: () => [renderTitle(), renderPicker(), renderToolbar()]
263
263
  });
264
264
  }
@@ -47,6 +47,7 @@ export declare const sharedProps: {
47
47
  };
48
48
  };
49
49
  export declare const pickerInheritKeys: ("title" | "readonly" | "loading" | "showTitle" | "allowHtml" | "cancelButtonText" | "confirmButtonText" | "swipeDuration" | "showToolbar" | "optionHeight" | "visibleOptionNum")[];
50
+ export declare const popupInheritKeys: any;
50
51
  export declare function times<T>(n: number, iteratee: (index: number) => T): T[];
51
52
  export declare const getMonthEndDay: (year: number, month: number) => number;
52
53
  export declare const genOptions: <T extends string>(min: number, max: number, type: T, formatter: Formatter, filter?: Filter) => PickerOption[];
@@ -1,5 +1,6 @@
1
1
  import { extend, padZero, makeArrayProp, clamp } from "../utils/index.mjs";
2
2
  import { pickerSharedProps } from "../picker/Picker.mjs";
3
+ import { popupSharedPropKeys } from "../popup/shared.mjs";
3
4
  const sharedProps = extend({}, pickerSharedProps, {
4
5
  modelValue: makeArrayProp(),
5
6
  filter: {
@@ -11,6 +12,12 @@ const sharedProps = extend({}, pickerSharedProps, {
11
12
  }
12
13
  });
13
14
  const pickerInheritKeys = Object.keys(pickerSharedProps);
15
+ const popupInheritKeys = [
16
+ ...popupSharedPropKeys,
17
+ "round",
18
+ "closeOnPopstate",
19
+ "safeAreaInsetBottom"
20
+ ];
14
21
  function times(n, iteratee) {
15
22
  if (n < 0) {
16
23
  return [];
@@ -47,6 +54,7 @@ export {
47
54
  genOptions,
48
55
  getMonthEndDay,
49
56
  pickerInheritKeys,
57
+ popupInheritKeys,
50
58
  sharedProps,
51
59
  times
52
60
  };
@@ -284,13 +284,13 @@ var stdin_default = (0, import_vue.defineComponent)({
284
284
  }), (0, import_utils.pick)(slots, import_PickerToolbar.pickerToolbarSlots))];
285
285
  }
286
286
  };
287
- return () => (0, import_vue.createVNode)(import_Popup.default, {
287
+ return () => (0, import_vue.createVNode)(import_Popup.default, (0, import_vue.mergeProps)((0, import_utils.pick)(props, import_utils2.popupInheritKeys), {
288
288
  "round": true,
289
289
  "position": "bottom",
290
290
  "onOpen": onOpen,
291
291
  "show": currentShow.value,
292
292
  "onUpdate:show": ($event) => currentShow.value = $event
293
- }, {
293
+ }), {
294
294
  default: () => [renderTitle(), renderPicker(), renderToolbar()]
295
295
  });
296
296
  }
@@ -47,6 +47,7 @@ export declare const sharedProps: {
47
47
  };
48
48
  };
49
49
  export declare const pickerInheritKeys: ("title" | "readonly" | "loading" | "showTitle" | "allowHtml" | "cancelButtonText" | "confirmButtonText" | "swipeDuration" | "showToolbar" | "optionHeight" | "visibleOptionNum")[];
50
+ export declare const popupInheritKeys: any;
50
51
  export declare function times<T>(n: number, iteratee: (index: number) => T): T[];
51
52
  export declare const getMonthEndDay: (year: number, month: number) => number;
52
53
  export declare const genOptions: <T extends string>(min: number, max: number, type: T, formatter: Formatter, filter?: Filter) => PickerOption[];
@@ -21,12 +21,14 @@ __export(stdin_exports, {
21
21
  genOptions: () => genOptions,
22
22
  getMonthEndDay: () => getMonthEndDay,
23
23
  pickerInheritKeys: () => pickerInheritKeys,
24
+ popupInheritKeys: () => popupInheritKeys,
24
25
  sharedProps: () => sharedProps,
25
26
  times: () => times
26
27
  });
27
28
  module.exports = __toCommonJS(stdin_exports);
28
29
  var import_utils = require("../utils");
29
30
  var import_Picker = require("../picker/Picker");
31
+ var import_shared = require("../popup/shared");
30
32
  const sharedProps = (0, import_utils.extend)({}, import_Picker.pickerSharedProps, {
31
33
  modelValue: (0, import_utils.makeArrayProp)(),
32
34
  filter: {
@@ -38,6 +40,12 @@ const sharedProps = (0, import_utils.extend)({}, import_Picker.pickerSharedProps
38
40
  }
39
41
  });
40
42
  const pickerInheritKeys = Object.keys(import_Picker.pickerSharedProps);
43
+ const popupInheritKeys = [
44
+ ...import_shared.popupSharedPropKeys,
45
+ "round",
46
+ "closeOnPopstate",
47
+ "safeAreaInsetBottom"
48
+ ];
41
49
  function times(n, iteratee) {
42
50
  if (n < 0) {
43
51
  return [];