persagy-vant 0.0.27 → 0.0.28

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.
Files changed (163) hide show
  1. package/es/cascader/Cascader.d.ts +1 -1
  2. package/es/cascader/index.d.ts +1 -1
  3. package/es/coupon-list/style/index.mjs +1 -1
  4. package/es/coupon-list/style/less.mjs +1 -1
  5. package/es/index.d.ts +2 -2
  6. package/es/index.mjs +4 -4
  7. package/es/label/Label.d.ts +92 -0
  8. package/es/label/Label.mjs +95 -0
  9. package/es/label/index.css +1 -0
  10. package/es/label/index.d.ts +64 -0
  11. package/es/label/index.less +113 -0
  12. package/es/label/index.mjs +8 -0
  13. package/es/label/style/index.mjs +6 -0
  14. package/es/label/style/less.mjs +6 -0
  15. package/es/label/var.less +11 -0
  16. package/es/location-select/style/index.mjs +1 -1
  17. package/es/location-select/style/less.mjs +1 -1
  18. package/es/material-add/MaterialAdd.d.ts +105 -1
  19. package/es/material-add/MaterialAdd.mjs +63 -23
  20. package/es/material-add/index.d.ts +73 -1
  21. package/es/quantity-input/QuantityInput.d.ts +1 -1
  22. package/es/quantity-input/index.d.ts +2 -2
  23. package/es/radio-panel/RadioPanel.d.ts +46 -1
  24. package/es/radio-panel/RadioPanel.mjs +115 -29
  25. package/es/radio-panel/index.css +1 -1
  26. package/es/radio-panel/index.d.ts +35 -1
  27. package/es/radio-panel/index.less +17 -0
  28. package/es/radio-panel/style/index.mjs +4 -0
  29. package/es/radio-panel/style/less.mjs +4 -0
  30. package/es/sticky/Sticky.d.ts +1 -1
  31. package/es/sticky/index.d.ts +1 -1
  32. package/es/tabs/TabsTitle.mjs +1 -0
  33. package/es/tabs/index.css +1 -1
  34. package/es/tabs/index.less +11 -0
  35. package/es/tag/Tag.d.ts +1 -1
  36. package/es/tag/index.css +1 -1
  37. package/es/tag/index.less +7 -0
  38. package/es/tag/var.less +3 -0
  39. package/lib/cascader/Cascader.d.ts +1 -1
  40. package/lib/cascader/index.d.ts +1 -1
  41. package/lib/coupon-list/style/index.js +1 -1
  42. package/lib/coupon-list/style/less.js +1 -1
  43. package/lib/index.css +1 -1
  44. package/lib/index.d.ts +2 -2
  45. package/lib/index.js +4 -4
  46. package/lib/index.less +6 -6
  47. package/lib/label/Label.d.ts +92 -0
  48. package/lib/label/Label.js +114 -0
  49. package/lib/label/index.css +1 -0
  50. package/lib/label/index.d.ts +64 -0
  51. package/lib/{bot-mobile/session-filter.js → label/index.js} +16 -13
  52. package/lib/label/index.less +113 -0
  53. package/lib/label/style/index.js +6 -0
  54. package/lib/label/style/less.js +6 -0
  55. package/lib/label/var.less +11 -0
  56. package/lib/location-select/style/index.js +1 -1
  57. package/lib/location-select/style/less.js +1 -1
  58. package/lib/material-add/MaterialAdd.d.ts +105 -1
  59. package/lib/material-add/MaterialAdd.js +63 -23
  60. package/lib/material-add/index.d.ts +73 -1
  61. package/lib/quantity-input/QuantityInput.d.ts +1 -1
  62. package/lib/quantity-input/index.d.ts +2 -2
  63. package/lib/radio-panel/RadioPanel.d.ts +46 -1
  64. package/lib/radio-panel/RadioPanel.js +114 -28
  65. package/lib/radio-panel/index.css +1 -1
  66. package/lib/radio-panel/index.d.ts +35 -1
  67. package/lib/radio-panel/index.less +17 -0
  68. package/lib/radio-panel/style/index.js +4 -0
  69. package/lib/radio-panel/style/less.js +4 -0
  70. package/lib/sticky/Sticky.d.ts +1 -1
  71. package/lib/sticky/index.d.ts +1 -1
  72. package/lib/tabs/TabsTitle.js +1 -0
  73. package/lib/tabs/index.css +1 -1
  74. package/lib/tabs/index.less +11 -0
  75. package/lib/tag/Tag.d.ts +1 -1
  76. package/lib/tag/index.css +1 -1
  77. package/lib/tag/index.less +7 -0
  78. package/lib/tag/var.less +3 -0
  79. package/lib/vant.cjs.js +1212 -1769
  80. package/lib/vant.es.js +1212 -1769
  81. package/lib/vant.js +13016 -24376
  82. package/lib/vant.min.js +1 -1
  83. package/lib/web-types.json +1 -1
  84. package/package.json +4 -4
  85. package/es/bot-mobile/BotFab.d.ts +0 -72
  86. package/es/bot-mobile/BotFab.mjs +0 -152
  87. package/es/bot-mobile/BotHistoryDrawer.d.ts +0 -72
  88. package/es/bot-mobile/BotHistoryDrawer.mjs +0 -97
  89. package/es/bot-mobile/BotMobile.d.ts +0 -83
  90. package/es/bot-mobile/BotMobile.mjs +0 -47
  91. package/es/bot-mobile/BotMobileContextTags.d.ts +0 -52
  92. package/es/bot-mobile/BotMobileContextTags.mjs +0 -52
  93. package/es/bot-mobile/BotMobilePrompts.d.ts +0 -54
  94. package/es/bot-mobile/BotMobilePrompts.mjs +0 -49
  95. package/es/bot-mobile/BotMobileSheet.d.ts +0 -92
  96. package/es/bot-mobile/BotMobileSheet.mjs +0 -50
  97. package/es/bot-mobile/BotMobileView.d.ts +0 -82
  98. package/es/bot-mobile/BotMobileView.mjs +0 -45
  99. package/es/bot-mobile/BotSessionList.d.ts +0 -71
  100. package/es/bot-mobile/BotSessionList.mjs +0 -99
  101. package/es/bot-mobile/BotVoiceBar.d.ts +0 -80
  102. package/es/bot-mobile/BotVoiceBar.mjs +0 -138
  103. package/es/bot-mobile/fab-position.d.ts +0 -9
  104. package/es/bot-mobile/fab-position.mjs +0 -10
  105. package/es/bot-mobile/fab-position.test.d.ts +0 -1
  106. package/es/bot-mobile/fab-position.test.mjs +0 -29
  107. package/es/bot-mobile/index.css +0 -1
  108. package/es/bot-mobile/index.d.ts +0 -469
  109. package/es/bot-mobile/index.less +0 -464
  110. package/es/bot-mobile/index.mjs +0 -50
  111. package/es/bot-mobile/session-filter.d.ts +0 -6
  112. package/es/bot-mobile/session-filter.mjs +0 -15
  113. package/es/bot-mobile/session-item.d.ts +0 -15
  114. package/es/bot-mobile/session-item.mjs +0 -73
  115. package/es/bot-mobile/style/index.mjs +0 -15
  116. package/es/bot-mobile/style/less.mjs +0 -15
  117. package/es/bot-mobile/types.d.ts +0 -23
  118. package/es/bot-mobile/types.mjs +0 -0
  119. package/es/bot-mobile/var.less +0 -58
  120. package/es/bot-mobile/voice-zone.d.ts +0 -6
  121. package/es/bot-mobile/voice-zone.mjs +0 -6
  122. package/es/bot-mobile/voice-zone.test.d.ts +0 -1
  123. package/es/bot-mobile/voice-zone.test.mjs +0 -19
  124. package/lib/bot-mobile/BotFab.d.ts +0 -72
  125. package/lib/bot-mobile/BotFab.js +0 -171
  126. package/lib/bot-mobile/BotHistoryDrawer.d.ts +0 -72
  127. package/lib/bot-mobile/BotHistoryDrawer.js +0 -116
  128. package/lib/bot-mobile/BotMobile.d.ts +0 -83
  129. package/lib/bot-mobile/BotMobile.js +0 -66
  130. package/lib/bot-mobile/BotMobileContextTags.d.ts +0 -52
  131. package/lib/bot-mobile/BotMobileContextTags.js +0 -71
  132. package/lib/bot-mobile/BotMobilePrompts.d.ts +0 -54
  133. package/lib/bot-mobile/BotMobilePrompts.js +0 -68
  134. package/lib/bot-mobile/BotMobileSheet.d.ts +0 -92
  135. package/lib/bot-mobile/BotMobileSheet.js +0 -79
  136. package/lib/bot-mobile/BotMobileView.d.ts +0 -82
  137. package/lib/bot-mobile/BotMobileView.js +0 -64
  138. package/lib/bot-mobile/BotSessionList.d.ts +0 -71
  139. package/lib/bot-mobile/BotSessionList.js +0 -118
  140. package/lib/bot-mobile/BotVoiceBar.d.ts +0 -80
  141. package/lib/bot-mobile/BotVoiceBar.js +0 -157
  142. package/lib/bot-mobile/fab-position.d.ts +0 -9
  143. package/lib/bot-mobile/fab-position.js +0 -29
  144. package/lib/bot-mobile/fab-position.test.d.ts +0 -1
  145. package/lib/bot-mobile/fab-position.test.js +0 -29
  146. package/lib/bot-mobile/index.css +0 -1
  147. package/lib/bot-mobile/index.d.ts +0 -469
  148. package/lib/bot-mobile/index.js +0 -79
  149. package/lib/bot-mobile/index.less +0 -464
  150. package/lib/bot-mobile/session-filter.d.ts +0 -6
  151. package/lib/bot-mobile/session-item.d.ts +0 -15
  152. package/lib/bot-mobile/session-item.js +0 -92
  153. package/lib/bot-mobile/style/index.js +0 -15
  154. package/lib/bot-mobile/style/less.js +0 -15
  155. package/lib/bot-mobile/types.d.ts +0 -23
  156. package/lib/bot-mobile/types.js +0 -15
  157. package/lib/bot-mobile/var.less +0 -58
  158. package/lib/bot-mobile/voice-zone.d.ts +0 -6
  159. package/lib/bot-mobile/voice-zone.js +0 -25
  160. package/lib/bot-mobile/voice-zone.test.d.ts +0 -1
  161. package/lib/bot-mobile/voice-zone.test.js +0 -19
  162. /package/es/{bot-mobile → label}/var.css +0 -0
  163. /package/lib/{bot-mobile → label}/var.css +0 -0
@@ -1,52 +0,0 @@
1
- import { type ExtractPropTypes } from 'vue';
2
- import type { BotMobileContextTag } from './types';
3
- export declare const botMobileContextTagsProps: {
4
- tags: {
5
- type: import("vue").PropType<BotMobileContextTag[]>;
6
- default: () => never[];
7
- };
8
- modelValue: {
9
- type: import("vue").PropType<string[]>;
10
- default: () => never[];
11
- };
12
- max: {
13
- type: NumberConstructor;
14
- default: number;
15
- };
16
- };
17
- export declare type BotMobileContextTagsProps = ExtractPropTypes<typeof botMobileContextTagsProps>;
18
- declare const _default: import("vue").DefineComponent<{
19
- tags: {
20
- type: import("vue").PropType<BotMobileContextTag[]>;
21
- default: () => never[];
22
- };
23
- modelValue: {
24
- type: import("vue").PropType<string[]>;
25
- default: () => never[];
26
- };
27
- max: {
28
- type: NumberConstructor;
29
- default: number;
30
- };
31
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
32
- tags: {
33
- type: import("vue").PropType<BotMobileContextTag[]>;
34
- default: () => never[];
35
- };
36
- modelValue: {
37
- type: import("vue").PropType<string[]>;
38
- default: () => never[];
39
- };
40
- max: {
41
- type: NumberConstructor;
42
- default: number;
43
- };
44
- }>> & {
45
- onChange?: ((...args: any[]) => any) | undefined;
46
- "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
47
- }, {
48
- max: number;
49
- tags: BotMobileContextTag[];
50
- modelValue: string[];
51
- }>;
52
- export default _default;
@@ -1,71 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name2 in all)
7
- __defProp(target, name2, { get: all[name2], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var stdin_exports = {};
19
- __export(stdin_exports, {
20
- botMobileContextTagsProps: () => botMobileContextTagsProps,
21
- default: () => stdin_default
22
- });
23
- module.exports = __toCommonJS(stdin_exports);
24
- var import_vue = require("vue");
25
- var import_utils = require("../utils");
26
- const [name, bem] = (0, import_utils.createNamespace)("bot-mobile-context-tags");
27
- const botMobileContextTagsProps = {
28
- tags: (0, import_utils.makeArrayProp)(),
29
- modelValue: (0, import_utils.makeArrayProp)(),
30
- max: (0, import_utils.makeNumberProp)(0)
31
- };
32
- var stdin_default = (0, import_vue.defineComponent)({
33
- name,
34
- props: botMobileContextTagsProps,
35
- emits: ["update:modelValue", "change"],
36
- setup(props, {
37
- emit
38
- }) {
39
- const toggle = (tag) => {
40
- const selectedIds = props.modelValue;
41
- const isSelected = selectedIds.includes(tag.id);
42
- let nextIds;
43
- if (isSelected) {
44
- nextIds = selectedIds.filter((id) => id !== tag.id);
45
- } else if (props.max === 1) {
46
- nextIds = [tag.id];
47
- } else if (props.max > 0 && selectedIds.length >= props.max) {
48
- return;
49
- } else {
50
- nextIds = selectedIds.concat(tag.id);
51
- }
52
- emit("update:modelValue", nextIds);
53
- emit("change", props.tags.filter((item) => nextIds.includes(item.id)));
54
- };
55
- const renderTag = (tag) => {
56
- const selected = props.modelValue.includes(tag.id);
57
- return (0, import_vue.createVNode)("div", {
58
- "role": "button",
59
- "tabindex": 0,
60
- "key": tag.id,
61
- "class": bem("item", {
62
- selected
63
- }),
64
- "onClick": () => toggle(tag)
65
- }, [tag.label]);
66
- };
67
- return () => (0, import_vue.createVNode)("div", {
68
- "class": bem()
69
- }, [props.tags.map(renderTag)]);
70
- }
71
- });
@@ -1,54 +0,0 @@
1
- import { type ExtractPropTypes } from 'vue';
2
- import type { BotMobilePromptItem } from './types';
3
- export declare const botMobilePromptsProps: {
4
- items: {
5
- type: import("vue").PropType<BotMobilePromptItem[]>;
6
- default: () => never[];
7
- };
8
- title: {
9
- type: import("vue").PropType<string>;
10
- default: string;
11
- };
12
- /** 当前选中条目的 id;触屏无 hover,选中态是点击后唯一的持久反馈。 */
13
- activeId: {
14
- type: import("vue").PropType<string>;
15
- default: string;
16
- };
17
- };
18
- export declare type BotMobilePromptsProps = ExtractPropTypes<typeof botMobilePromptsProps>;
19
- declare const _default: import("vue").DefineComponent<{
20
- items: {
21
- type: import("vue").PropType<BotMobilePromptItem[]>;
22
- default: () => never[];
23
- };
24
- title: {
25
- type: import("vue").PropType<string>;
26
- default: string;
27
- };
28
- /** 当前选中条目的 id;触屏无 hover,选中态是点击后唯一的持久反馈。 */
29
- activeId: {
30
- type: import("vue").PropType<string>;
31
- default: string;
32
- };
33
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "select"[], "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
34
- items: {
35
- type: import("vue").PropType<BotMobilePromptItem[]>;
36
- default: () => never[];
37
- };
38
- title: {
39
- type: import("vue").PropType<string>;
40
- default: string;
41
- };
42
- /** 当前选中条目的 id;触屏无 hover,选中态是点击后唯一的持久反馈。 */
43
- activeId: {
44
- type: import("vue").PropType<string>;
45
- default: string;
46
- };
47
- }>> & {
48
- onSelect?: ((...args: any[]) => any) | undefined;
49
- }, {
50
- title: string;
51
- items: BotMobilePromptItem[];
52
- activeId: string;
53
- }>;
54
- export default _default;
@@ -1,68 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name2 in all)
7
- __defProp(target, name2, { get: all[name2], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var stdin_exports = {};
19
- __export(stdin_exports, {
20
- botMobilePromptsProps: () => botMobilePromptsProps,
21
- default: () => stdin_default
22
- });
23
- module.exports = __toCommonJS(stdin_exports);
24
- var import_vue = require("vue");
25
- var import_utils = require("../utils");
26
- const [name, bem] = (0, import_utils.createNamespace)("bot-mobile-prompts");
27
- const botMobilePromptsProps = {
28
- items: (0, import_utils.makeArrayProp)(),
29
- title: (0, import_utils.makeStringProp)(""),
30
- /** 当前选中条目的 id;触屏无 hover,选中态是点击后唯一的持久反馈。 */
31
- activeId: (0, import_utils.makeStringProp)("")
32
- };
33
- var stdin_default = (0, import_vue.defineComponent)({
34
- name,
35
- props: botMobilePromptsProps,
36
- emits: ["select"],
37
- setup(props, {
38
- emit
39
- }) {
40
- const onSelect = (item) => emit("select", item);
41
- const renderTitle = () => {
42
- if (!props.title) {
43
- return;
44
- }
45
- return (0, import_vue.createVNode)("div", {
46
- "class": bem("title")
47
- }, [props.title]);
48
- };
49
- const renderItem = (item) => (0, import_vue.createVNode)("div", {
50
- "role": "button",
51
- "tabindex": 0,
52
- "key": item.id,
53
- "class": bem("item", {
54
- active: !!props.activeId && props.activeId === item.id
55
- }),
56
- "onClick": () => onSelect(item)
57
- }, [(0, import_vue.createVNode)("div", {
58
- "class": bem("item-title")
59
- }, [item.title]), (0, import_vue.createVNode)("div", {
60
- "class": bem("item-desc")
61
- }, [item.prompt])]);
62
- return () => (0, import_vue.createVNode)("div", {
63
- "class": bem()
64
- }, [renderTitle(), (0, import_vue.createVNode)("div", {
65
- "class": bem("list")
66
- }, [props.items.map(renderItem)])]);
67
- }
68
- });
@@ -1,92 +0,0 @@
1
- import { type ExtractPropTypes } from 'vue';
2
- export declare const botMobileSheetProps: {
3
- gatewayBaseUrl: {
4
- type: import("vue").PropType<string>;
5
- default: string;
6
- };
7
- businessContext: import("vue").PropType<Record<string, unknown>>;
8
- references: {
9
- type: import("vue").PropType<unknown[]>;
10
- default: () => never[];
11
- };
12
- title: StringConstructor;
13
- showHeader: {
14
- type: BooleanConstructor;
15
- default: true;
16
- };
17
- showFooter: {
18
- type: BooleanConstructor;
19
- default: true;
20
- };
21
- clientId: StringConstructor;
22
- autoConnect: {
23
- type: BooleanConstructor;
24
- default: true;
25
- };
26
- } & {
27
- show: BooleanConstructor;
28
- };
29
- export declare type BotMobileSheetProps = ExtractPropTypes<typeof botMobileSheetProps>;
30
- declare const _default: import("vue").DefineComponent<{
31
- gatewayBaseUrl: {
32
- type: import("vue").PropType<string>;
33
- default: string;
34
- };
35
- businessContext: import("vue").PropType<Record<string, unknown>>;
36
- references: {
37
- type: import("vue").PropType<unknown[]>;
38
- default: () => never[];
39
- };
40
- title: StringConstructor;
41
- showHeader: {
42
- type: BooleanConstructor;
43
- default: true;
44
- };
45
- showFooter: {
46
- type: BooleanConstructor;
47
- default: true;
48
- };
49
- clientId: StringConstructor;
50
- autoConnect: {
51
- type: BooleanConstructor;
52
- default: true;
53
- };
54
- } & {
55
- show: BooleanConstructor;
56
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:show"[], "update:show", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
57
- gatewayBaseUrl: {
58
- type: import("vue").PropType<string>;
59
- default: string;
60
- };
61
- businessContext: import("vue").PropType<Record<string, unknown>>;
62
- references: {
63
- type: import("vue").PropType<unknown[]>;
64
- default: () => never[];
65
- };
66
- title: StringConstructor;
67
- showHeader: {
68
- type: BooleanConstructor;
69
- default: true;
70
- };
71
- showFooter: {
72
- type: BooleanConstructor;
73
- default: true;
74
- };
75
- clientId: StringConstructor;
76
- autoConnect: {
77
- type: BooleanConstructor;
78
- default: true;
79
- };
80
- } & {
81
- show: BooleanConstructor;
82
- }>> & {
83
- "onUpdate:show"?: ((...args: any[]) => any) | undefined;
84
- }, {
85
- show: boolean;
86
- gatewayBaseUrl: string;
87
- references: unknown[];
88
- showHeader: boolean;
89
- showFooter: boolean;
90
- autoConnect: boolean;
91
- }>;
92
- export default _default;
@@ -1,79 +0,0 @@
1
- var __create = Object.create;
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __getProtoOf = Object.getPrototypeOf;
6
- var __hasOwnProp = Object.prototype.hasOwnProperty;
7
- var __export = (target, all) => {
8
- for (var name2 in all)
9
- __defProp(target, name2, { get: all[name2], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
- // If the importer is in node compatibility mode or this is not an ESM
21
- // file that has been converted to a CommonJS file using a Babel-
22
- // compatible transform (i.e. "__esModule" has not been set), then set
23
- // "default" to the CommonJS "module.exports" for node compatibility.
24
- isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
- mod
26
- ));
27
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
- var stdin_exports = {};
29
- __export(stdin_exports, {
30
- botMobileSheetProps: () => botMobileSheetProps,
31
- default: () => stdin_default
32
- });
33
- module.exports = __toCommonJS(stdin_exports);
34
- var import_vue = require("vue");
35
- var import_utils = require("../utils");
36
- var import_use_expose = require("../composables/use-expose");
37
- var import_popup = require("../popup");
38
- var import_BotMobile = __toESM(require("./BotMobile"));
39
- const [name, bem] = (0, import_utils.createNamespace)("bot-mobile-sheet");
40
- const botMobileSheetProps = (0, import_utils.extend)({}, import_BotMobile.botMobileProps, {
41
- show: Boolean
42
- });
43
- var stdin_default = (0, import_vue.defineComponent)({
44
- name,
45
- inheritAttrs: false,
46
- props: botMobileSheetProps,
47
- emits: ["update:show"],
48
- setup(props, {
49
- emit,
50
- attrs
51
- }) {
52
- const botMobileRef = (0, import_vue.ref)();
53
- (0, import_use_expose.useExpose)({
54
- botMobileRef
55
- });
56
- const onUpdateShow = (show) => emit("update:show", show);
57
- return () => (0, import_vue.createVNode)(import_popup.Popup, {
58
- "show": props.show,
59
- "class": bem(),
60
- "position": "bottom",
61
- "round": true,
62
- "teleport": "body",
63
- "safeAreaInsetBottom": true,
64
- "onUpdate:show": onUpdateShow
65
- }, {
66
- default: () => [(0, import_vue.createVNode)(import_BotMobile.default, (0, import_vue.mergeProps)({
67
- "ref": botMobileRef,
68
- "gatewayBaseUrl": props.gatewayBaseUrl,
69
- "businessContext": props.businessContext,
70
- "references": props.references,
71
- "title": props.title,
72
- "showHeader": props.showHeader,
73
- "showFooter": props.showFooter,
74
- "clientId": props.clientId,
75
- "autoConnect": props.autoConnect
76
- }, attrs), null)]
77
- });
78
- }
79
- });
@@ -1,82 +0,0 @@
1
- import { type ExtractPropTypes } from 'vue';
2
- export declare const botMobileViewProps: {
3
- messages: {
4
- type: import("vue").PropType<unknown[]>;
5
- default: () => never[];
6
- };
7
- title: {
8
- type: import("vue").PropType<string>;
9
- default: string;
10
- };
11
- showHeader: {
12
- type: BooleanConstructor;
13
- default: true;
14
- };
15
- showFooter: {
16
- type: BooleanConstructor;
17
- default: true;
18
- };
19
- placeholder: {
20
- type: import("vue").PropType<string>;
21
- default: string;
22
- };
23
- generating: BooleanConstructor;
24
- disabled: BooleanConstructor;
25
- };
26
- export declare type BotMobileViewProps = ExtractPropTypes<typeof botMobileViewProps>;
27
- declare const _default: import("vue").DefineComponent<{
28
- messages: {
29
- type: import("vue").PropType<unknown[]>;
30
- default: () => never[];
31
- };
32
- title: {
33
- type: import("vue").PropType<string>;
34
- default: string;
35
- };
36
- showHeader: {
37
- type: BooleanConstructor;
38
- default: true;
39
- };
40
- showFooter: {
41
- type: BooleanConstructor;
42
- default: true;
43
- };
44
- placeholder: {
45
- type: import("vue").PropType<string>;
46
- default: string;
47
- };
48
- generating: BooleanConstructor;
49
- disabled: BooleanConstructor;
50
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
51
- messages: {
52
- type: import("vue").PropType<unknown[]>;
53
- default: () => never[];
54
- };
55
- title: {
56
- type: import("vue").PropType<string>;
57
- default: string;
58
- };
59
- showHeader: {
60
- type: BooleanConstructor;
61
- default: true;
62
- };
63
- showFooter: {
64
- type: BooleanConstructor;
65
- default: true;
66
- };
67
- placeholder: {
68
- type: import("vue").PropType<string>;
69
- default: string;
70
- };
71
- generating: BooleanConstructor;
72
- disabled: BooleanConstructor;
73
- }>>, {
74
- title: string;
75
- disabled: boolean;
76
- placeholder: string;
77
- showHeader: boolean;
78
- showFooter: boolean;
79
- messages: unknown[];
80
- generating: boolean;
81
- }>;
82
- export default _default;
@@ -1,64 +0,0 @@
1
- var __defProp = Object.defineProperty;
2
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
- var __getOwnPropNames = Object.getOwnPropertyNames;
4
- var __hasOwnProp = Object.prototype.hasOwnProperty;
5
- var __export = (target, all) => {
6
- for (var name2 in all)
7
- __defProp(target, name2, { get: all[name2], enumerable: true });
8
- };
9
- var __copyProps = (to, from, except, desc) => {
10
- if (from && typeof from === "object" || typeof from === "function") {
11
- for (let key of __getOwnPropNames(from))
12
- if (!__hasOwnProp.call(to, key) && key !== except)
13
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
- }
15
- return to;
16
- };
17
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
- var stdin_exports = {};
19
- __export(stdin_exports, {
20
- botMobileViewProps: () => botMobileViewProps,
21
- default: () => stdin_default
22
- });
23
- module.exports = __toCommonJS(stdin_exports);
24
- var import_vue = require("vue");
25
- var import_meos_bot_web = require("meos-bot-web");
26
- var import_utils = require("../utils");
27
- var import_use_expose = require("../composables/use-expose");
28
- const [name, bem] = (0, import_utils.createNamespace)("bot-mobile-view");
29
- const botMobileViewProps = {
30
- messages: (0, import_utils.makeArrayProp)(),
31
- title: (0, import_utils.makeStringProp)(""),
32
- showHeader: import_utils.truthProp,
33
- showFooter: import_utils.truthProp,
34
- placeholder: (0, import_utils.makeStringProp)(""),
35
- generating: Boolean,
36
- disabled: Boolean
37
- };
38
- var stdin_default = (0, import_vue.defineComponent)({
39
- name,
40
- inheritAttrs: false,
41
- props: botMobileViewProps,
42
- setup(props, {
43
- attrs
44
- }) {
45
- const botRef = (0, import_vue.ref)();
46
- (0, import_use_expose.useExpose)({
47
- botRef
48
- });
49
- return () => (0, import_vue.createVNode)("div", {
50
- "class": bem()
51
- }, [(0, import_vue.createVNode)(import_meos_bot_web.Bot, (0, import_vue.mergeProps)({
52
- "ref": botRef,
53
- "messages": props.messages,
54
- "title": props.title,
55
- "showHeader": props.showHeader,
56
- "showFooter": props.showFooter,
57
- "placeholder": props.placeholder,
58
- "generating": props.generating,
59
- "disabled": props.disabled
60
- }, attrs, {
61
- "mode": "mobile"
62
- }), null)]);
63
- }
64
- });
@@ -1,71 +0,0 @@
1
- import { type ExtractPropTypes } from 'vue';
2
- import type { BotMobileSession } from './types';
3
- export declare const botSessionListProps: {
4
- sessions: {
5
- type: import("vue").PropType<BotMobileSession[]>;
6
- default: () => never[];
7
- };
8
- activeId: {
9
- type: import("vue").PropType<string>;
10
- default: string;
11
- };
12
- searchable: {
13
- type: BooleanConstructor;
14
- default: true;
15
- };
16
- loading: BooleanConstructor;
17
- emptyText: {
18
- type: import("vue").PropType<string>;
19
- default: string;
20
- };
21
- };
22
- export declare type BotSessionListProps = ExtractPropTypes<typeof botSessionListProps>;
23
- declare const _default: import("vue").DefineComponent<{
24
- sessions: {
25
- type: import("vue").PropType<BotMobileSession[]>;
26
- default: () => never[];
27
- };
28
- activeId: {
29
- type: import("vue").PropType<string>;
30
- default: string;
31
- };
32
- searchable: {
33
- type: BooleanConstructor;
34
- default: true;
35
- };
36
- loading: BooleanConstructor;
37
- emptyText: {
38
- type: import("vue").PropType<string>;
39
- default: string;
40
- };
41
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "delete" | "rename" | "create")[], "select" | "delete" | "rename" | "create", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
42
- sessions: {
43
- type: import("vue").PropType<BotMobileSession[]>;
44
- default: () => never[];
45
- };
46
- activeId: {
47
- type: import("vue").PropType<string>;
48
- default: string;
49
- };
50
- searchable: {
51
- type: BooleanConstructor;
52
- default: true;
53
- };
54
- loading: BooleanConstructor;
55
- emptyText: {
56
- type: import("vue").PropType<string>;
57
- default: string;
58
- };
59
- }>> & {
60
- onSelect?: ((...args: any[]) => any) | undefined;
61
- onDelete?: ((...args: any[]) => any) | undefined;
62
- onRename?: ((...args: any[]) => any) | undefined;
63
- onCreate?: ((...args: any[]) => any) | undefined;
64
- }, {
65
- loading: boolean;
66
- activeId: string;
67
- sessions: BotMobileSession[];
68
- searchable: boolean;
69
- emptyText: string;
70
- }>;
71
- export default _default;