@polyv/vue-components 1.0.1

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 (159) hide show
  1. package/font/din-pro/index.scss +26 -0
  2. package/font/youshe/index.scss +8 -0
  3. package/index.es.js +5574 -0
  4. package/package.json +22 -0
  5. package/src/components/basic-countdown/basic-countdown.vue.d.ts +71 -0
  6. package/src/components/basic-countdown/index.d.ts +2 -0
  7. package/src/components/basic-countdown/use-basic-countdown.d.ts +44 -0
  8. package/src/components/exports.d.ts +7 -0
  9. package/src/components/form/form-area-picker/form-area-picker.vue.d.ts +39 -0
  10. package/src/components/form/form-area-picker/index.d.ts +2 -0
  11. package/src/components/form/form-area-picker/use-form-area-picker.d.ts +50 -0
  12. package/src/components/form/form-checkbox/form-checkbox-group.vue.d.ts +27 -0
  13. package/src/components/form/form-checkbox/form-checkbox.vue.d.ts +67 -0
  14. package/src/components/form/form-checkbox/index.d.ts +4 -0
  15. package/src/components/form/form-checkbox/type.d.ts +8 -0
  16. package/src/components/form/form-checkbox/use-form-checkbox.d.ts +38 -0
  17. package/src/components/form/form-input/form-input.vue.d.ts +117 -0
  18. package/src/components/form/form-input/index.d.ts +2 -0
  19. package/src/components/form/form-input/use-form-input.d.ts +88 -0
  20. package/src/components/form/form-item/form-item.vue.d.ts +54 -0
  21. package/src/components/form/form-item/index.d.ts +2 -0
  22. package/src/components/form/form-item/use-form-item.d.ts +71 -0
  23. package/src/components/form/form-protocol/form-protocol.vue.d.ts +19 -0
  24. package/src/components/form/form-protocol/index.d.ts +2 -0
  25. package/src/components/form/form-protocol/use-form-protocol.d.ts +19 -0
  26. package/src/components/form/form-radio/form-radio-group.vue.d.ts +21 -0
  27. package/src/components/form/form-radio/form-radio.vue.d.ts +56 -0
  28. package/src/components/form/form-radio/index.d.ts +3 -0
  29. package/src/components/form/form-radio/type.d.ts +7 -0
  30. package/src/components/form/form-submit-button/form-submit-button.vue.d.ts +61 -0
  31. package/src/components/form/form-submit-button/index.d.ts +2 -0
  32. package/src/components/form/form-submit-button/use-form-submit-button.d.ts +35 -0
  33. package/src/components/form/form-wrap/form-wrap.vue.d.ts +74 -0
  34. package/src/components/form/form-wrap/index.d.ts +2 -0
  35. package/src/components/form/form-wrap/use-form-wrap.d.ts +64 -0
  36. package/src/components/form/hooks/use-form-common.d.ts +25 -0
  37. package/src/components/form/index.d.ts +9 -0
  38. package/src/components/form/types/index.d.ts +19 -0
  39. package/src/components/icons/icons/arrow-down/index.d.ts +6 -0
  40. package/src/components/icons/icons/arrow-left/index.d.ts +6 -0
  41. package/src/components/icons/icons/arrow-right/index.d.ts +6 -0
  42. package/src/components/icons/icons/arrow-up/index.d.ts +6 -0
  43. package/src/components/icons/icons/check/index.d.ts +6 -0
  44. package/src/components/icons/icons/close/index.d.ts +6 -0
  45. package/src/components/icons/icons/close-round-fill/index.d.ts +6 -0
  46. package/src/components/icons/icons/empty-prize/index.d.ts +6 -0
  47. package/src/components/icons/icons/error-round/index.d.ts +6 -0
  48. package/src/components/icons/icons/info-round-filled/index.d.ts +6 -0
  49. package/src/components/icons/icons/list/index.d.ts +6 -0
  50. package/src/components/icons/icons/question-round/index.d.ts +6 -0
  51. package/src/components/icons/icons/success-round/index.d.ts +6 -0
  52. package/src/components/icons/map.d.ts +17 -0
  53. package/src/components/normal-button/index.d.ts +3 -0
  54. package/src/components/normal-button/normal-button.vue.d.ts +64 -0
  55. package/src/components/normal-button/type.d.ts +28 -0
  56. package/src/components/normal-button/use-normal-button.d.ts +37 -0
  57. package/src/components/normal-pendant/index.d.ts +1 -0
  58. package/src/components/normal-pendant/normal-pendant.vue.d.ts +43 -0
  59. package/src/components/popup/hooks/popup-props.d.ts +114 -0
  60. package/src/components/popup/hooks/use-popup-append.d.ts +13 -0
  61. package/src/components/popup/hooks/use-popup-back.d.ts +13 -0
  62. package/src/components/popup/hooks/use-popup-config.d.ts +13 -0
  63. package/src/components/popup/hooks/use-popup-draggable.d.ts +15 -0
  64. package/src/components/popup/hooks/use-popup-height.d.ts +25 -0
  65. package/src/components/popup/hooks/use-popup-position.d.ts +11 -0
  66. package/src/components/popup/hooks/use-popup-scroll.d.ts +8 -0
  67. package/src/components/popup/hooks/use-popup-visible.d.ts +14 -0
  68. package/src/components/popup/hooks/use-popup-width.d.ts +10 -0
  69. package/src/components/popup/index.d.ts +4 -0
  70. package/src/components/popup/popup.vue.d.ts +205 -0
  71. package/src/components/popup/types.d.ts +17 -0
  72. package/src/components/reward-receive/entrance/reward-receive.vue.d.ts +31 -0
  73. package/src/components/reward-receive/hooks/use-reward-receive.d.ts +82 -0
  74. package/src/components/reward-receive/index.d.ts +3 -0
  75. package/src/components/reward-receive/types/index.d.ts +66 -0
  76. package/src/hooks/business/use-app-element/index.d.ts +4 -0
  77. package/src/hooks/business/use-config-provider/index.d.ts +22 -0
  78. package/src/hooks/business/use-track-event/index.d.ts +21 -0
  79. package/src/hooks/components/use-action-sheet/_component/action-sheet.vue.d.ts +20 -0
  80. package/src/hooks/components/use-action-sheet/_component/use-action-sheet-comp.d.ts +13 -0
  81. package/src/hooks/components/use-action-sheet/hook.d.ts +4 -0
  82. package/src/hooks/components/use-action-sheet/index.d.ts +3 -0
  83. package/src/hooks/components/use-action-sheet/types.d.ts +15 -0
  84. package/src/hooks/components/use-auto-topmost/index.d.ts +13 -0
  85. package/src/hooks/components/use-message-box/_component/message-box-element.vue.d.ts +64 -0
  86. package/src/hooks/components/use-message-box/_component/use-message-box-element.d.ts +46 -0
  87. package/src/hooks/components/use-message-box/index.d.ts +9 -0
  88. package/src/hooks/components/use-message-box/types.d.ts +24 -0
  89. package/src/hooks/components/use-popper/_hooks/use-popper-arrow.d.ts +2 -0
  90. package/src/hooks/components/use-popper/_hooks/use-popper-core.d.ts +15 -0
  91. package/src/hooks/components/use-popper/_hooks/use-popper-interactive.d.ts +5 -0
  92. package/src/hooks/components/use-popper/_hooks/use-popper-visible.d.ts +6 -0
  93. package/src/hooks/components/use-popper/_popper-type.d.ts +75 -0
  94. package/src/hooks/components/use-popper/index.d.ts +32 -0
  95. package/src/hooks/components/use-toast/_component/toast-element.vue.d.ts +34 -0
  96. package/src/hooks/components/use-toast/_component/use-toast-element.d.ts +32 -0
  97. package/src/hooks/components/use-toast/index.d.ts +11 -0
  98. package/src/hooks/components/use-toast/types.d.ts +21 -0
  99. package/src/hooks/exports.d.ts +34 -0
  100. package/src/hooks/interactive/use-click-outside/index.d.ts +14 -0
  101. package/src/hooks/interactive/use-fullscreen/index.d.ts +29 -0
  102. package/src/hooks/interactive/use-hover-visible/index.d.ts +16 -0
  103. package/src/hooks/interactive/use-page-fullscreen/index.d.ts +6 -0
  104. package/src/hooks/interactive/use-screen-orientation/index.d.ts +25 -0
  105. package/src/hooks/interactive/use-scroll/index.d.ts +20 -0
  106. package/src/hooks/interactive/use-sound-effect/index.d.ts +6 -0
  107. package/src/hooks/pagination/types.d.ts +60 -0
  108. package/src/hooks/pagination/use-scroll-pagintaion/index.d.ts +17 -0
  109. package/src/hooks/pagination/use-static-pagination/index.d.ts +24 -0
  110. package/src/hooks/plugin/use-resize-observer/index.d.ts +13 -0
  111. package/src/hooks/plugin/use-svga-animation/index.d.ts +25 -0
  112. package/src/hooks/plugin/use-svga-player/index.d.ts +24 -0
  113. package/src/hooks/tools/use-append-to/index.d.ts +7 -0
  114. package/src/hooks/tools/use-body-locked/index.d.ts +10 -0
  115. package/src/hooks/tools/use-browser/index.d.ts +14 -0
  116. package/src/hooks/tools/use-copy-text/index.d.ts +9 -0
  117. package/src/hooks/tools/use-count-down/index.d.ts +39 -0
  118. package/src/hooks/tools/use-event-bus/index.d.ts +19 -0
  119. package/src/hooks/tools/use-event-listener/index.d.ts +2 -0
  120. package/src/hooks/tools/use-link-open/index.d.ts +3 -0
  121. package/src/hooks/tools/use-set-interval/index.d.ts +9 -0
  122. package/src/hooks/tools/use-set-timeout/index.d.ts +9 -0
  123. package/src/hooks/tools/use-simple-visible/index.d.ts +41 -0
  124. package/src/hooks/tools/use-target-event-emitter/index.d.ts +10 -0
  125. package/src/hooks/tools/use-window-resize-listener/index.d.ts +34 -0
  126. package/src/hooks/vue/use-model-value/index.d.ts +13 -0
  127. package/src/hooks/vue/use-vue/index.d.ts +15 -0
  128. package/src/index.d.ts +6 -0
  129. package/src/interface/index.d.ts +4 -0
  130. package/src/lang/common/en.json.d.ts +14 -0
  131. package/src/lang/common/index.d.ts +4 -0
  132. package/src/lang/common/ja.json.d.ts +13 -0
  133. package/src/lang/common/ko.json.d.ts +13 -0
  134. package/src/lang/common/ru.json.d.ts +13 -0
  135. package/src/lang/common/zh-CN.json.d.ts +14 -0
  136. package/src/lang/common/zh-TW.json.d.ts +13 -0
  137. package/src/lang/exports.d.ts +2 -0
  138. package/src/lang/hook.d.ts +12 -0
  139. package/src/lang/internal/en.json.d.ts +21 -0
  140. package/src/lang/internal/index.d.ts +34 -0
  141. package/src/lang/internal/ja.json.d.ts +21 -0
  142. package/src/lang/internal/ko.json.d.ts +21 -0
  143. package/src/lang/internal/ru.json.d.ts +21 -0
  144. package/src/lang/internal/zh-CN.json.d.ts +21 -0
  145. package/src/lang/internal/zh-TW.json.d.ts +21 -0
  146. package/src/lang/types.d.ts +12 -0
  147. package/src/lang/utils.d.ts +1 -0
  148. package/src/plugins/async-validator/index.d.ts +3 -0
  149. package/src/plugins/exports.d.ts +2 -0
  150. package/src/plugins/polyv-ui/area-utils.d.ts +13 -0
  151. package/src/plugins/polyv-ui/mobile-import.d.ts +1 -0
  152. package/src/plugins/polyv-ui/types.d.ts +19 -0
  153. package/src/plugins/svgaplayerweb/load-svga-player.d.ts +15 -0
  154. package/src/utils/dom.d.ts +5 -0
  155. package/src/vue-utils/emit-utils.d.ts +12 -0
  156. package/src/vue-utils/index.d.ts +18 -0
  157. package/src/vue-utils/props-utils.d.ts +61 -0
  158. package/styles/animation.scss +24 -0
  159. package/styles/mixins.scss +123 -0
@@ -0,0 +1,205 @@
1
+ declare function __VLS_template(): {
2
+ attrs: Partial<{}>;
3
+ slots: {
4
+ header?(_: {}): any;
5
+ 'header-right'?(_: {}): any;
6
+ 'content-suffix'?(_: {}): any;
7
+ default?(_: {}): any;
8
+ footer?(_: {}): any;
9
+ };
10
+ refs: {
11
+ wrapRef: HTMLDivElement;
12
+ bodyRef: HTMLDivElement;
13
+ headerRef: HTMLDivElement;
14
+ scrollRef: HTMLDivElement;
15
+ };
16
+ rootEl: HTMLDivElement;
17
+ };
18
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
19
+ declare const __VLS_component: import('vue').DefineComponent<{
20
+ value: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
21
+ default: boolean;
22
+ };
23
+ title: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
24
+ default: string;
25
+ };
26
+ titleStyle: import('vue-types').VueTypeValidableDef<import('vue').CSSProperties, import('vue-types/dist/types').ValidatorFunction<import('vue').CSSProperties>> & {
27
+ default: () => import('vue').CSSProperties;
28
+ };
29
+ backgroundMode: import('vue-types').VueTypeDef<"bg1">;
30
+ background: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
31
+ default: string;
32
+ };
33
+ closeable: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
34
+ default: boolean;
35
+ };
36
+ backable: import('vue-types').VueTypeDef<boolean | undefined> & {
37
+ default: boolean | undefined;
38
+ };
39
+ showHeader: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
40
+ default: boolean;
41
+ };
42
+ headerStyle: import('vue-types').VueTypeValidableDef<import('vue').CSSProperties, import('vue-types/dist/types').ValidatorFunction<import('vue').CSSProperties>> & {
43
+ default: () => import('vue').CSSProperties;
44
+ };
45
+ openEvent: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
46
+ position: import('vue-types').VueTypeDef<"bottom" | "left" | "right" | "center">;
47
+ horizontalScreenPosition: import('vue-types').VueTypeDef<"bottom" | "left" | "right" | "center"> & {
48
+ default: "bottom" | "left" | "right" | "center";
49
+ };
50
+ horizontalScreenClassName: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
51
+ default: string;
52
+ };
53
+ width: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
54
+ height: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
55
+ bodyMaxHeight: import('vue-types').VueTypeDef<string | number> & {
56
+ default: string | number;
57
+ };
58
+ bodyHeightPercent: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
59
+ dynamicHeight: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
60
+ default: boolean;
61
+ };
62
+ fillBody: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
63
+ default: boolean;
64
+ };
65
+ bodyStyle: import('vue-types').VueTypeValidableDef<import('vue').CSSProperties, import('vue-types/dist/types').ValidatorFunction<import('vue').CSSProperties>> & {
66
+ default: () => import('vue').CSSProperties;
67
+ };
68
+ appendTo: import('vue-types').VueTypeDef<HTMLElement | undefined> & {
69
+ default: (() => HTMLElement) | undefined;
70
+ };
71
+ showModal: import('vue-types').VueTypeDef<boolean | undefined> & {
72
+ default: boolean | undefined;
73
+ };
74
+ closeOnMask: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
75
+ default: boolean;
76
+ };
77
+ popupConfig: import('vue-types').VueTypeValidableDef<import('./types').PopupConfig, import('vue-types/dist/types').ValidatorFunction<import('./types').PopupConfig>>;
78
+ showScrollbar: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
79
+ default: boolean;
80
+ };
81
+ customClose: import('vue-types').VueTypeValidableDef<import('./types').CustomClosePopup, import('vue-types/dist/types').ValidatorFunction<import('./types').CustomClosePopup>>;
82
+ draggable: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
83
+ default: boolean;
84
+ };
85
+ positionComputedElem: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
86
+ default: string;
87
+ };
88
+ bodyLocked: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
89
+ default: boolean;
90
+ };
91
+ hiddenShadow: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
92
+ default: boolean;
93
+ };
94
+ }, {
95
+ resetScroll: () => Promise<void>;
96
+ setupBackAction: (data?: import('./types').PopupBackActionData) => void;
97
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
98
+ "after-leave": (arg?: void | undefined) => void;
99
+ "click-back": (arg?: void | undefined) => void;
100
+ }, string, Readonly<import('vue').ExtractPropTypes<{
101
+ value: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
102
+ default: boolean;
103
+ };
104
+ title: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
105
+ default: string;
106
+ };
107
+ titleStyle: import('vue-types').VueTypeValidableDef<import('vue').CSSProperties, import('vue-types/dist/types').ValidatorFunction<import('vue').CSSProperties>> & {
108
+ default: () => import('vue').CSSProperties;
109
+ };
110
+ backgroundMode: import('vue-types').VueTypeDef<"bg1">;
111
+ background: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
112
+ default: string;
113
+ };
114
+ closeable: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
115
+ default: boolean;
116
+ };
117
+ backable: import('vue-types').VueTypeDef<boolean | undefined> & {
118
+ default: boolean | undefined;
119
+ };
120
+ showHeader: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
121
+ default: boolean;
122
+ };
123
+ headerStyle: import('vue-types').VueTypeValidableDef<import('vue').CSSProperties, import('vue-types/dist/types').ValidatorFunction<import('vue').CSSProperties>> & {
124
+ default: () => import('vue').CSSProperties;
125
+ };
126
+ openEvent: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
127
+ position: import('vue-types').VueTypeDef<"bottom" | "left" | "right" | "center">;
128
+ horizontalScreenPosition: import('vue-types').VueTypeDef<"bottom" | "left" | "right" | "center"> & {
129
+ default: "bottom" | "left" | "right" | "center";
130
+ };
131
+ horizontalScreenClassName: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
132
+ default: string;
133
+ };
134
+ width: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
135
+ height: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
136
+ bodyMaxHeight: import('vue-types').VueTypeDef<string | number> & {
137
+ default: string | number;
138
+ };
139
+ bodyHeightPercent: import('vue-types').VueTypeValidableDef<number, import('vue-types/dist/types').ValidatorFunction<number>>;
140
+ dynamicHeight: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
141
+ default: boolean;
142
+ };
143
+ fillBody: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
144
+ default: boolean;
145
+ };
146
+ bodyStyle: import('vue-types').VueTypeValidableDef<import('vue').CSSProperties, import('vue-types/dist/types').ValidatorFunction<import('vue').CSSProperties>> & {
147
+ default: () => import('vue').CSSProperties;
148
+ };
149
+ appendTo: import('vue-types').VueTypeDef<HTMLElement | undefined> & {
150
+ default: (() => HTMLElement) | undefined;
151
+ };
152
+ showModal: import('vue-types').VueTypeDef<boolean | undefined> & {
153
+ default: boolean | undefined;
154
+ };
155
+ closeOnMask: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
156
+ default: boolean;
157
+ };
158
+ popupConfig: import('vue-types').VueTypeValidableDef<import('./types').PopupConfig, import('vue-types/dist/types').ValidatorFunction<import('./types').PopupConfig>>;
159
+ showScrollbar: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
160
+ default: boolean;
161
+ };
162
+ customClose: import('vue-types').VueTypeValidableDef<import('./types').CustomClosePopup, import('vue-types/dist/types').ValidatorFunction<import('./types').CustomClosePopup>>;
163
+ draggable: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
164
+ default: boolean;
165
+ };
166
+ positionComputedElem: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
167
+ default: string;
168
+ };
169
+ bodyLocked: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
170
+ default: boolean;
171
+ };
172
+ hiddenShadow: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
173
+ default: boolean;
174
+ };
175
+ }>>, {
176
+ value: boolean;
177
+ title: string;
178
+ titleStyle: import('vue').CSSProperties;
179
+ background: string;
180
+ closeable: boolean;
181
+ backable: boolean | undefined;
182
+ showHeader: boolean;
183
+ headerStyle: import('vue').CSSProperties;
184
+ horizontalScreenPosition: "bottom" | "left" | "right" | "center";
185
+ horizontalScreenClassName: string;
186
+ bodyMaxHeight: string | number;
187
+ dynamicHeight: boolean;
188
+ fillBody: boolean;
189
+ bodyStyle: import('vue').CSSProperties;
190
+ appendTo: HTMLElement | undefined;
191
+ showModal: boolean | undefined;
192
+ closeOnMask: boolean;
193
+ showScrollbar: boolean;
194
+ draggable: boolean;
195
+ positionComputedElem: string;
196
+ bodyLocked: boolean;
197
+ hiddenShadow: boolean;
198
+ }>;
199
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
200
+ export default _default;
201
+ type __VLS_WithTemplateSlots<T, S> = T & {
202
+ new (): {
203
+ $scopedSlots: S;
204
+ };
205
+ };
@@ -0,0 +1,17 @@
1
+ export declare const popupPositionList: readonly ["bottom", "left", "right", "center"];
2
+ export type PopupPosition = (typeof popupPositionList)[number];
3
+ /** 弹窗配置 */
4
+ export interface PopupConfig {
5
+ position?: PopupPosition;
6
+ width?: string;
7
+ height?: string;
8
+ appendTo?: HTMLElement;
9
+ showModal?: boolean;
10
+ }
11
+ export type CustomClosePopup = (options: {
12
+ closeBody: () => void;
13
+ }) => unknown;
14
+ export type PopupBackAction = () => void;
15
+ export interface PopupBackActionData {
16
+ backAction?: PopupBackAction;
17
+ }
@@ -0,0 +1,31 @@
1
+ import { PopupBackActionData } from '../../popup';
2
+ declare const _default: import('vue').DefineComponent<{
3
+ receiveData: import('vue-types').VueTypeValidableDef<import('..').RewardReceiveData, import('vue-types/dist/types').ValidatorFunction<import('..').RewardReceiveData>>;
4
+ privacyContent: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
5
+ default: string;
6
+ };
7
+ submitAction: import('vue-types').VueTypeValidableDef<import('../hooks/use-reward-receive').RewardReceiveSubmitAction, import('vue-types/dist/types').ValidatorFunction<import('../hooks/use-reward-receive').RewardReceiveSubmitAction>>;
8
+ openEvent: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
9
+ backable: import('vue-types').VueTypeDef<boolean | undefined> & {
10
+ default: boolean | undefined;
11
+ };
12
+ }, {
13
+ setupBackAction: (data: PopupBackActionData) => void;
14
+ setupReceiveData: (data: import('..').RewardReceiveData) => void;
15
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
16
+ "click-back": (arg?: void | undefined) => void;
17
+ }, string, Readonly<import('vue').ExtractPropTypes<{
18
+ receiveData: import('vue-types').VueTypeValidableDef<import('..').RewardReceiveData, import('vue-types/dist/types').ValidatorFunction<import('..').RewardReceiveData>>;
19
+ privacyContent: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
20
+ default: string;
21
+ };
22
+ submitAction: import('vue-types').VueTypeValidableDef<import('../hooks/use-reward-receive').RewardReceiveSubmitAction, import('vue-types/dist/types').ValidatorFunction<import('../hooks/use-reward-receive').RewardReceiveSubmitAction>>;
23
+ openEvent: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
24
+ backable: import('vue-types').VueTypeDef<boolean | undefined> & {
25
+ default: boolean | undefined;
26
+ };
27
+ }>>, {
28
+ backable: boolean | undefined;
29
+ privacyContent: string;
30
+ }>;
31
+ export default _default;
@@ -0,0 +1,82 @@
1
+ import { ValidatorRule } from '../../../plugins/async-validator';
2
+ import { VueProps } from '../../../vue-utils';
3
+ import { RewardReceiveData } from '../types';
4
+ export type RewardReceiveSubmitAction = (formValue: Record<number, any>) => Promise<void>;
5
+ export declare const rewardReceiveProps: () => {
6
+ /**
7
+ * 领取数据
8
+ */
9
+ receiveData: import('vue-types').VueTypeValidableDef<RewardReceiveData, import('vue-types/dist/types').ValidatorFunction<RewardReceiveData>>;
10
+ /**
11
+ * 隐私协议内容
12
+ */
13
+ privacyContent: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
14
+ default: string;
15
+ };
16
+ /**
17
+ * 提交操作
18
+ */
19
+ submitAction: import('vue-types').VueTypeValidableDef<RewardReceiveSubmitAction, import('vue-types/dist/types').ValidatorFunction<RewardReceiveSubmitAction>>;
20
+ /**
21
+ * 打开事件
22
+ */
23
+ openEvent: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>>;
24
+ /**
25
+ * 是否显示返回
26
+ */
27
+ backable: import('vue-types').VueTypeDef<boolean | undefined> & {
28
+ default: boolean | undefined;
29
+ };
30
+ };
31
+ export declare const rewardReceiveEmits: () => {
32
+ /**
33
+ * 点击返回
34
+ */
35
+ 'click-back': import('../../../vue-utils').EmitFuncType<void>;
36
+ };
37
+ export interface RewardReceiveInstance {
38
+ setupReceiveData: (data: RewardReceiveData) => void;
39
+ }
40
+ export declare const useRewardReceive: (options: {
41
+ props: VueProps<typeof rewardReceiveProps>;
42
+ }) => {
43
+ currentReceiveData: import('vue').Ref<RewardReceiveData | undefined>;
44
+ visible: import('vue').Ref<boolean>;
45
+ isDeadLine: import('vue').Ref<boolean>;
46
+ deadLineDate: import('vue').Ref<string>;
47
+ dialogTitle: import('vue').ComputedRef<string | undefined>;
48
+ formData: import('vue').Ref<Record<string | number, any>>;
49
+ formRules: import('vue').Ref<Record<string | number, ValidatorRule>>;
50
+ instance: RewardReceiveInstance;
51
+ submitReceiveForm: () => Promise<void>;
52
+ $t: (key: import('../../../lang/types').NestedKeys<{
53
+ rewardReceive: {
54
+ receiveTitleForm: string;
55
+ receiveTitleView: string;
56
+ receiveTitleQrcode: string;
57
+ receiveTitleLink: string;
58
+ receiveDesc: string;
59
+ overTimeDesc: string;
60
+ choiceAddress: string;
61
+ addressDetail: string;
62
+ addressPlaceholder: string;
63
+ qrcodeTips: string;
64
+ deadLine: string;
65
+ checkProtocol: string;
66
+ error1: string;
67
+ error2: string;
68
+ submitText: string;
69
+ };
70
+ } & {
71
+ common: {
72
+ confirm: string;
73
+ cancel: string;
74
+ close: string;
75
+ submit: string;
76
+ submitSuccess: string;
77
+ known: string;
78
+ copySuccess: string;
79
+ };
80
+ }>, options?: import('../../..').UniversalParams<string | number>) => string;
81
+ onPickerTextChange: (text: string[]) => void;
82
+ };
@@ -0,0 +1,3 @@
1
+ export * from './types';
2
+ export type { RewardReceiveInstance, RewardReceiveSubmitAction } from './hooks/use-reward-receive';
3
+ export { default as PwcRewardReceivePopup } from './entrance/reward-receive.vue';
@@ -0,0 +1,66 @@
1
+ /**
2
+ * 奖励领取信息
3
+ */
4
+ export interface RewardReceiveData {
5
+ /**
6
+ * 领取类型
7
+ */
8
+ receiveType: RewardReceiveType;
9
+ /**
10
+ * 截止时间
11
+ */
12
+ overTime?: number;
13
+ /**
14
+ * 是否已领取
15
+ */
16
+ isReceived: boolean;
17
+ /**
18
+ * 表单列表
19
+ */
20
+ formList?: RewardReceiveFormItem[];
21
+ /**
22
+ * 链接地址
23
+ */
24
+ linkUrl?: string;
25
+ /**
26
+ * 二维码地址
27
+ */
28
+ qrCode?: string;
29
+ /**
30
+ * 二维码提示
31
+ */
32
+ qrCodeTips?: string;
33
+ }
34
+ /**
35
+ * 奖励领取类型
36
+ */
37
+ export type RewardReceiveType = 'form' | 'link' | 'qrCode';
38
+ /**
39
+ * 表单类型
40
+ */
41
+ export type RewardReceiveFormType = 'input' | 'phone' | 'address';
42
+ /**
43
+ * 表单节点类型
44
+ */
45
+ export interface RewardReceiveFormItem {
46
+ /**
47
+ * 表单类型
48
+ */
49
+ formType: RewardReceiveFormType;
50
+ /**
51
+ * 表单标题
52
+ */
53
+ title: string;
54
+ /**
55
+ * 占位符
56
+ */
57
+ placeholder: string;
58
+ /**
59
+ * 是否必填
60
+ */
61
+ isRequired: boolean;
62
+ /**
63
+ * 已填写的值
64
+ */
65
+ value: string | null;
66
+ }
@@ -0,0 +1,4 @@
1
+ export declare const useAppElement: () => {
2
+ getAppRootElement: () => HTMLElement;
3
+ getAppBodyElement: () => HTMLElement;
4
+ };
@@ -0,0 +1,22 @@
1
+ import { PwcEventEmitter } from '../../tools/use-event-bus';
2
+ import { TrackEventData } from '../use-track-event';
3
+ import { I18nLangs } from '../../../lang/types';
4
+ /** 配置注入 key */
5
+ export declare const ConfigProviderInjectKey = "pwcConfigProvider";
6
+ export interface ConfigProviderInjectData {
7
+ /** 当前语言 */
8
+ globalLang?: I18nLangs;
9
+ /** 是否网页 css 全屏 */
10
+ pageFullscreen?: boolean;
11
+ /** 全屏元素 */
12
+ fullscreenElement?: string | Element;
13
+ /** 获取事件订阅器 */
14
+ getEmitter?: () => PwcEventEmitter;
15
+ /** 埋点回调 */
16
+ trackEventCallback?: (data: TrackEventData) => unknown;
17
+ }
18
+ export declare const useConfigProvider: (config: ConfigProviderInjectData) => void;
19
+ export declare const useConfigProviderInject: () => {
20
+ configProviderData: ConfigProviderInjectData | undefined;
21
+ getEmitter: () => PwcEventEmitter;
22
+ };
@@ -0,0 +1,21 @@
1
+ /**
2
+ * 埋点数据
3
+ */
4
+ export interface TrackEventData {
5
+ /** 事件名 */
6
+ event_id: string;
7
+ /** 事件类型 */
8
+ event_type: string;
9
+ /** 事件属性,不能为空对象 */
10
+ spec_attrs: Record<string, unknown>;
11
+ }
12
+ export interface TrackEventSender {
13
+ trackEvent?: (data: TrackEventData) => unknown;
14
+ }
15
+ /**
16
+ * 埋点事件发送
17
+ * @param sender 事件发送器
18
+ */
19
+ export declare const useTrackEvent: (sender: TrackEventSender) => {
20
+ trackEvent: (data: TrackEventData) => void;
21
+ };
@@ -0,0 +1,20 @@
1
+ import { ActionSheetItem } from '../types';
2
+ /** 打开操作列表 */
3
+ declare function openActionSheet(): void;
4
+ declare const _default: import('vue').DefineComponent<{
5
+ actions: import('vue-types').VueTypeValidableDef<ActionSheetItem[], import('vue-types/dist/types').ValidatorFunction<ActionSheetItem[]>> & {
6
+ default: () => ActionSheetItem[];
7
+ };
8
+ }, {
9
+ openActionSheet: typeof openActionSheet;
10
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ select: (arg: ActionSheetItem) => void;
12
+ cancel: (arg?: void | undefined) => void;
13
+ }, string, Readonly<import('vue').ExtractPropTypes<{
14
+ actions: import('vue-types').VueTypeValidableDef<ActionSheetItem[], import('vue-types/dist/types').ValidatorFunction<ActionSheetItem[]>> & {
15
+ default: () => ActionSheetItem[];
16
+ };
17
+ }>>, {
18
+ actions: ActionSheetItem[];
19
+ }>;
20
+ export default _default;
@@ -0,0 +1,13 @@
1
+ import { FormatEmit, FormatProps } from '../../../../vue-utils';
2
+ import { ActionSheetItem } from '../types';
3
+ export declare const actionSheetProps: () => {
4
+ actions: import('vue-types').VueTypeValidableDef<ActionSheetItem[], import('vue-types/dist/types').ValidatorFunction<ActionSheetItem[]>> & {
5
+ default: () => ActionSheetItem[];
6
+ };
7
+ };
8
+ export declare const actionSheetEmits: () => {
9
+ select: import('../../../../vue-utils').EmitFuncType<ActionSheetItem>;
10
+ cancel: import('../../../../vue-utils').EmitFuncType<void>;
11
+ };
12
+ export type ActionSheetPropsType = FormatProps<typeof actionSheetProps>;
13
+ export type ActionSheetEmitCallback = FormatEmit<typeof actionSheetEmits>;
@@ -0,0 +1,4 @@
1
+ import { ActionSheetItem, ActionSheetOptions } from './types';
2
+ export declare const useActionSheet: () => {
3
+ actionSheet: <A extends ActionSheetItem>(options: ActionSheetOptions) => Promise<A | undefined>;
4
+ };
@@ -0,0 +1,3 @@
1
+ export { default as PwcActionSheet } from './_component/action-sheet.vue';
2
+ export * from './types';
3
+ export * from './hook';
@@ -0,0 +1,15 @@
1
+ /**
2
+ * 操作列表项
3
+ */
4
+ export interface ActionSheetItem {
5
+ /** 名称 */
6
+ name: string;
7
+ /** 值 */
8
+ value?: string;
9
+ /** 是否隐藏 */
10
+ hidden?: boolean;
11
+ }
12
+ export interface ActionSheetOptions {
13
+ /** 操作列表 */
14
+ actions: ActionSheetItem[];
15
+ }
@@ -0,0 +1,13 @@
1
+ import { Ref } from 'vue';
2
+ export interface UseAutoTopmostOptions {
3
+ /** 置顶事件 */
4
+ topmostEvent?: string;
5
+ }
6
+ /**
7
+ * 设置根据显隐状态自动将节点层叠数置顶
8
+ * @param visibleRef 显隐响应式
9
+ * @param elemRef 弹出层节点响应式
10
+ */
11
+ export declare const useAutoTopmost: (visibleRef: Ref<boolean>, elemRef: Ref | HTMLElement, options?: UseAutoTopmostOptions) => {
12
+ topmostElem: () => Promise<void>;
13
+ };
@@ -0,0 +1,64 @@
1
+ declare const _default: import('vue').DefineComponent<{
2
+ message: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
3
+ default: string;
4
+ };
5
+ description: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
6
+ default: string;
7
+ };
8
+ showCancelButton: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
9
+ default: boolean;
10
+ };
11
+ showConfirmButton: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
12
+ default: boolean;
13
+ };
14
+ cancelButtonType: import('vue-types').VueTypeValidableDef<import('../../../../components/normal-button').ButtonType, import('vue-types/dist/types').ValidatorFunction<import('../../../../components/normal-button').ButtonType>> & {
15
+ default: import('../../../../components/normal-button').ButtonType;
16
+ };
17
+ cancelButtonText: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
18
+ default: string;
19
+ };
20
+ confirmButtonText: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
21
+ default: string;
22
+ };
23
+ confirmButtonType: import('vue-types').VueTypeValidableDef<import('../../../../components/normal-button').ButtonType, import('vue-types/dist/types').ValidatorFunction<import('../../../../components/normal-button').ButtonType>> & {
24
+ default: import('../../../../components/normal-button').ButtonType;
25
+ };
26
+ }, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
27
+ cancel: (arg?: void | undefined) => void;
28
+ confirm: (arg?: void | undefined) => void;
29
+ }, string, Readonly<import('vue').ExtractPropTypes<{
30
+ message: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
31
+ default: string;
32
+ };
33
+ description: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
34
+ default: string;
35
+ };
36
+ showCancelButton: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
37
+ default: boolean;
38
+ };
39
+ showConfirmButton: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
40
+ default: boolean;
41
+ };
42
+ cancelButtonType: import('vue-types').VueTypeValidableDef<import('../../../../components/normal-button').ButtonType, import('vue-types/dist/types').ValidatorFunction<import('../../../../components/normal-button').ButtonType>> & {
43
+ default: import('../../../../components/normal-button').ButtonType;
44
+ };
45
+ cancelButtonText: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
46
+ default: string;
47
+ };
48
+ confirmButtonText: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
49
+ default: string;
50
+ };
51
+ confirmButtonType: import('vue-types').VueTypeValidableDef<import('../../../../components/normal-button').ButtonType, import('vue-types/dist/types').ValidatorFunction<import('../../../../components/normal-button').ButtonType>> & {
52
+ default: import('../../../../components/normal-button').ButtonType;
53
+ };
54
+ }>>, {
55
+ description: string;
56
+ message: string;
57
+ showCancelButton: boolean;
58
+ showConfirmButton: boolean;
59
+ cancelButtonType: import('../../../../components/normal-button').ButtonType;
60
+ cancelButtonText: string;
61
+ confirmButtonText: string;
62
+ confirmButtonType: import('../../../../components/normal-button').ButtonType;
63
+ }>;
64
+ export default _default;
@@ -0,0 +1,46 @@
1
+ import { ButtonType } from '../../../../components/normal-button';
2
+ import { FormatEmit, FormatProps, VueEmit, VueProps } from '../../../../vue-utils';
3
+ export declare const messageBoxElementProps: () => {
4
+ message: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
5
+ default: string;
6
+ };
7
+ description: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
8
+ default: string;
9
+ };
10
+ showCancelButton: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
11
+ default: boolean;
12
+ };
13
+ showConfirmButton: import('vue-types').VueTypeValidableDef<boolean, import('vue-types/dist/types').ValidatorFunction<boolean>> & {
14
+ default: boolean;
15
+ };
16
+ cancelButtonType: import('vue-types').VueTypeValidableDef<ButtonType, import('vue-types/dist/types').ValidatorFunction<ButtonType>> & {
17
+ default: ButtonType;
18
+ };
19
+ cancelButtonText: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
20
+ default: string;
21
+ };
22
+ confirmButtonText: import('vue-types').VueTypeValidableDef<string, import('vue-types/dist/types').ValidatorFunction<string>> & {
23
+ default: string;
24
+ };
25
+ confirmButtonType: import('vue-types').VueTypeValidableDef<ButtonType, import('vue-types/dist/types').ValidatorFunction<ButtonType>> & {
26
+ default: ButtonType;
27
+ };
28
+ };
29
+ export declare const messageBoxElementEmits: () => {
30
+ confirm: import('../../../../vue-utils').EmitFuncType<void>;
31
+ cancel: import('../../../../vue-utils').EmitFuncType<void>;
32
+ };
33
+ export type MessageBoxPropsType = FormatProps<typeof messageBoxElementProps>;
34
+ export type MessageBoxElementEmitCallback = FormatEmit<typeof messageBoxElementEmits>;
35
+ /**
36
+ * MessageBox 组件 hook
37
+ */
38
+ export declare const useMessageBoxElement: (options: {
39
+ props: VueProps<typeof messageBoxElementProps>;
40
+ emit: VueEmit<typeof messageBoxElementEmits>;
41
+ }) => {
42
+ visible: import('vue').Ref<boolean>;
43
+ onAfterLeave: () => void;
44
+ onClickConfirm: () => void;
45
+ onClickCancel: () => void;
46
+ };