@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,9 @@
1
+ /**
2
+ * 复制文本
3
+ * @param text 复制内容
4
+ */
5
+ export declare function copyText(text: string): Promise<unknown>;
6
+ export declare const useCopyText: () => {
7
+ copyText: typeof copyText;
8
+ toastCopySuccess: () => void;
9
+ };
@@ -0,0 +1,39 @@
1
+ import { SimilarResponsive } from '../../../vue-utils';
2
+ import { IRemaining as CountDownSurplusData } from '@polyv/utils/es/countdown';
3
+ export interface UseCountDownOptions {
4
+ /**
5
+ * 总秒数,单位秒
6
+ */
7
+ second?: SimilarResponsive<number | undefined>;
8
+ /**
9
+ * 结束的时间戳
10
+ */
11
+ endTimestamp?: SimilarResponsive<number | undefined>;
12
+ /**
13
+ * 倒计时剩余时间改变回调
14
+ */
15
+ onCountDownChange?: (surplusData: CountDownSurplusData) => void;
16
+ /**
17
+ * 倒计时结束回调
18
+ */
19
+ onCountDownFinish?: () => void;
20
+ }
21
+ /**
22
+ * 倒计时
23
+ */
24
+ export declare const useCountDown: (options?: UseCountDownOptions) => {
25
+ surplusTime: import('vue').Ref<{
26
+ days: number;
27
+ hours: number;
28
+ minutes: number;
29
+ seconds: number;
30
+ totalMsecs: number;
31
+ }>;
32
+ surplusSecond: import('vue').ComputedRef<number>;
33
+ computedSecond: () => number;
34
+ initCountDown: () => void;
35
+ startCountDown: (options?: UseCountDownOptions, init?: boolean) => void;
36
+ resetSurplus: () => void;
37
+ stopCountDown: () => void;
38
+ destroyCountDown: () => void;
39
+ };
@@ -0,0 +1,19 @@
1
+ import { EventEmitter } from '@polyv/utils/es/event';
2
+ type PwcMittEvents = {
3
+ [key: string]: any;
4
+ };
5
+ export type PwcEventEmitter = EventEmitter<PwcMittEvents>;
6
+ export declare function createEmitter(): PwcEventEmitter;
7
+ /**
8
+ * 获取事件订阅器
9
+ */
10
+ export declare const useEventBusEmitter: () => {
11
+ getEmitter: () => PwcEventEmitter;
12
+ };
13
+ /**
14
+ * 设置 eventBus 监听
15
+ * @param event appEvents 中的事件
16
+ * @param callback 回调
17
+ */
18
+ export declare const useEventBusListener: (event: string, callback: (...arg: any[]) => unknown) => void;
19
+ export {};
@@ -0,0 +1,2 @@
1
+ import { SimilarResponsive } from '../../../vue-utils';
2
+ export declare const useEventListener: <E extends keyof HTMLElementEventMap>(target: SimilarResponsive<HTMLElement | undefined>, event: E, listener: (ev: HTMLElementEventMap[E]) => any, options?: AddEventListenerOptions) => void;
@@ -0,0 +1,3 @@
1
+ export declare const useLinkOpen: () => {
2
+ openLink: (link: string) => void;
3
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 设置定时器
3
+ * @param callback 回调函数
4
+ * @param time 时间
5
+ */
6
+ export declare const useSetInterval: <A extends unknown[] = []>(callback: (...args: A) => unknown, time: number) => {
7
+ startInterval: (...args: A) => void;
8
+ closeInterval: () => void;
9
+ };
@@ -0,0 +1,9 @@
1
+ /**
2
+ * 设置定时器
3
+ * @param callback 回调函数
4
+ * @param time 时间
5
+ */
6
+ export declare const useSetTimeout: <A extends unknown[] = []>(callback: (...args: A) => unknown, time: number) => {
7
+ startTimeout: (...args: A) => void;
8
+ closeTimeout: () => void;
9
+ };
@@ -0,0 +1,41 @@
1
+ export interface UseSimpleVisibleOptions {
2
+ /**
3
+ * 是否自动关闭
4
+ *
5
+ * @default false
6
+ */
7
+ autoClose?: boolean;
8
+ /**
9
+ * 自动关闭时间
10
+ *
11
+ * @default 5 * 1000
12
+ */
13
+ autoCloseTime?: number;
14
+ /**
15
+ * 显示时回调
16
+ */
17
+ showCallback?: () => void;
18
+ /**
19
+ * 隐藏时回调
20
+ */
21
+ hideCallback?: () => void;
22
+ /**
23
+ * 隐藏延迟回调
24
+ */
25
+ hideDelayCallback?: () => void;
26
+ /**
27
+ * 更新回调
28
+ */
29
+ changeCallback?: (visible: boolean) => void;
30
+ }
31
+ /**
32
+ * 简单的显隐 hook
33
+ * @param defaultVisible 默认显示状态,默认:false
34
+ */
35
+ export declare const useSimpleVisible: (defaultVisible?: boolean, options?: UseSimpleVisibleOptions) => {
36
+ visible: import('vue').Ref<boolean>;
37
+ setVisible: (_visible?: boolean) => void;
38
+ show: () => void;
39
+ close: () => void;
40
+ toggle: () => void;
41
+ };
@@ -0,0 +1,10 @@
1
+ import { EventEmitter, EventRelationsType, EventType, EventHandler } from '@polyv/utils/es/event';
2
+ export type TargetEventListeners<R extends EventRelationsType, E extends EventType> = {
3
+ [event in E]?: EventHandler<R, event>;
4
+ };
5
+ /**
6
+ * 事件监听器
7
+ * @param eventEmitter 事件监听器
8
+ * @param listeners 监听列表
9
+ */
10
+ export declare const useTargetEventEmitter: <R extends EventRelationsType, E extends EventType>(eventEmitter: EventEmitter<R, E>, listeners: TargetEventListeners<R, E>) => void;
@@ -0,0 +1,34 @@
1
+ export interface UseWindowResizeListenerOptions {
2
+ /**
3
+ * 是否自动监听
4
+ *
5
+ * @default true
6
+ */
7
+ autoListen?: boolean;
8
+ /**
9
+ * 自动监听后立即执行回调
10
+ *
11
+ * @default false
12
+ */
13
+ immediately?: boolean;
14
+ /**
15
+ * 防抖时间
16
+ *
17
+ * @default 0
18
+ */
19
+ debounceTime?: number;
20
+ }
21
+ /**
22
+ * 监听 windows resize 事件
23
+ */
24
+ export declare const useWindowResizeListener: (callback?: (data: {
25
+ width: number;
26
+ height: number;
27
+ }) => unknown, options?: UseWindowResizeListenerOptions) => {
28
+ windowSize: import('vue').Ref<{
29
+ width: number;
30
+ height: number;
31
+ }>;
32
+ bindWindowResize: () => void;
33
+ unbindWindowResize: () => void;
34
+ };
@@ -0,0 +1,13 @@
1
+ import { PropUtils } from '../../../vue-utils';
2
+ type MVProps = {
3
+ [PropUtils.modelValueKey]?: unknown;
4
+ };
5
+ /**
6
+ * 使用 v-model 的值
7
+ * @param props 组件 props
8
+ */
9
+ export declare const useModelValue: <P extends MVProps>(props: P) => {
10
+ modelValue: import('vue').ComputedRef<P["value"]>;
11
+ updateModelValue: (value: P[typeof PropUtils.modelValueKey]) => void;
12
+ };
13
+ export {};
@@ -0,0 +1,15 @@
1
+ import { default as Vue, Component, VNode } from 'vue';
2
+ /**
3
+ * 对 Vue 一些方法的简单封装
4
+ */
5
+ export declare const useVue: () => {
6
+ getInstance: () => Vue<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => Vue> | undefined;
7
+ destroyCurrentInstance: () => void;
8
+ getCurrentElem: () => Element | undefined;
9
+ getCurrentChildrens: () => Vue<Record<string, any>, Record<string, any>, never, never, (event: string, ...args: any[]) => Vue<Record<string, any>, Record<string, any>, never, never, any>>[] | undefined;
10
+ getSlot: (slotName?: string) => VNode[];
11
+ createVueInstance: <Props extends Record<string, any> = {}, Emits extends Record<string, any> = {}>(vueComponent: Component, options?: {
12
+ props?: Props;
13
+ on?: Emits;
14
+ }) => unknown;
15
+ };
package/src/index.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ export * from './components/exports';
2
+ export * from './hooks/exports';
3
+ export * from './plugins/exports';
4
+ export * from './lang/exports';
5
+ export * from './interface';
6
+ export * from './vue-utils';
@@ -0,0 +1,4 @@
1
+ /** 通用对象定义 */
2
+ export type UniversalParams<V = unknown> = {
3
+ [key: string]: V;
4
+ };
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ "common": {
3
+ "confirm": "Confirm",
4
+ "cancel": "Cancel",
5
+ "close": "Close",
6
+ "submit": "Submit",
7
+ "submitSuccess": "Success",
8
+ "known": "I know",
9
+ "copySuccess": "Copy success"
10
+ }
11
+ }
12
+ ;
13
+
14
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import { default as zhCN } from './zh-CN.json';
2
+ import { I18nConfig } from '../types';
3
+ export type CommonLangs = typeof zhCN;
4
+ export declare const commonLangs: I18nConfig<typeof zhCN>;
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ "common": {
3
+ "confirm": "確認",
4
+ "cancel": "キャンセル",
5
+ "close": "閉じる",
6
+ "submit": "送信",
7
+ "submitSuccess": "送信成功",
8
+ "known": "わかりました",
9
+ "copySuccess": "コピー成功"
10
+ }
11
+ };
12
+
13
+ export default _default;
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ "common": {
3
+ "confirm": "확인",
4
+ "cancel": "취소",
5
+ "close": "닫기",
6
+ "submit": "제출",
7
+ "submitSuccess": "제출 성공",
8
+ "known": "알겠습니다",
9
+ "copySuccess": "복사 성공"
10
+ }
11
+ };
12
+
13
+ export default _default;
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ "common": {
3
+ "confirm": "Подтвердить",
4
+ "cancel": "Отмена",
5
+ "close": "Закрыть",
6
+ "submit": "Отправить",
7
+ "submitSuccess": "Успешно отправлено",
8
+ "known": "Понятно",
9
+ "copySuccess": "Скопировано успешно"
10
+ }
11
+ };
12
+
13
+ export default _default;
@@ -0,0 +1,14 @@
1
+ declare const _default: {
2
+ "common": {
3
+ "confirm": "确认",
4
+ "cancel": "取消",
5
+ "close": "关闭",
6
+ "submit": "提交",
7
+ "submitSuccess": "提交成功",
8
+ "known": "我知道了",
9
+ "copySuccess": "复制成功"
10
+ }
11
+ }
12
+ ;
13
+
14
+ export default _default;
@@ -0,0 +1,13 @@
1
+ declare const _default: {
2
+ "common": {
3
+ "confirm": "確認",
4
+ "cancel": "取消",
5
+ "close": "關閉",
6
+ "submit": "提交",
7
+ "submitSuccess": "提交成功",
8
+ "known": "我知道了",
9
+ "copySuccess": "複製成功"
10
+ }
11
+ };
12
+
13
+ export default _default;
@@ -0,0 +1,2 @@
1
+ export * from './hook';
2
+ export type { I18nLangs, I18nConfig } from './types';
@@ -0,0 +1,12 @@
1
+ import { CommonLangs } from './common';
2
+ import { I18nConfig, I18nLangs, NestedKeys } from './types';
3
+ import { UniversalParams } from '../interface';
4
+ type LangData<C extends Record<string, unknown>> = C & CommonLangs;
5
+ export declare function createI18n<C extends Record<string, unknown> = {}>(config?: I18nConfig<C>): {
6
+ useI18n: () => {
7
+ $t: (key: NestedKeys<LangData<C>>, options?: UniversalParams<string | number>) => string;
8
+ currentLang: import('vue').ComputedRef<I18nLangs>;
9
+ isZhCN: import('vue').ComputedRef<boolean>;
10
+ };
11
+ };
12
+ export {};
@@ -0,0 +1,21 @@
1
+ declare const _default: {
2
+ "rewardReceive": {
3
+ "receiveTitleForm": "Fill in the winning information",
4
+ "receiveTitleView": "View information",
5
+ "receiveTitleQrcode": "Scan the code to receive the award",
6
+ "receiveTitleLink": "Open link",
7
+ "receiveDesc": "Please fill in your personal information, which will be used to send the prize and contact you.",
8
+ "overTimeDesc": "Deadline for filling in information: ",
9
+ "choiceAddress": "Select Region",
10
+ "addressDetail": "Address detail",
11
+ "addressPlaceholder": "Please select region",
12
+ "qrcodeTips": "Long press to recognize QR code",
13
+ "deadLine": "You have exceeded the validity period for filling in contact information",
14
+ "checkProtocol": "Please tick the privacy statement",
15
+ "error1": "Please fill in the information",
16
+ "error2": "Please enter the correct phone number",
17
+ "submitText": "Agree to submit"
18
+ }
19
+ };
20
+
21
+ export default _default;
@@ -0,0 +1,34 @@
1
+ declare const useInternalI18n: () => {
2
+ $t: (key: import('../types').NestedKeys<{
3
+ rewardReceive: {
4
+ receiveTitleForm: string;
5
+ receiveTitleView: string;
6
+ receiveTitleQrcode: string;
7
+ receiveTitleLink: string;
8
+ receiveDesc: string;
9
+ overTimeDesc: string;
10
+ choiceAddress: string;
11
+ addressDetail: string;
12
+ addressPlaceholder: string;
13
+ qrcodeTips: string;
14
+ deadLine: string;
15
+ checkProtocol: string;
16
+ error1: string;
17
+ error2: string;
18
+ submitText: string;
19
+ };
20
+ } & {
21
+ common: {
22
+ confirm: string;
23
+ cancel: string;
24
+ close: string;
25
+ submit: string;
26
+ submitSuccess: string;
27
+ known: string;
28
+ copySuccess: string;
29
+ };
30
+ }>, options?: import('../..').UniversalParams<string | number>) => string;
31
+ currentLang: import('vue').ComputedRef<import('../types').I18nLangs>;
32
+ isZhCN: import('vue').ComputedRef<boolean>;
33
+ };
34
+ export { useInternalI18n };
@@ -0,0 +1,21 @@
1
+ declare const _default: {
2
+ "rewardReceive": {
3
+ "receiveTitleForm": "当選情報の記入",
4
+ "receiveTitleView": "当選情報の確認",
5
+ "receiveTitleQrcode": "QRコードをスキャンして賞品を受け取る",
6
+ "receiveTitleLink": "リンクを開く",
7
+ "receiveDesc": "賞品の送付及びお問い合わせのため、個人情報を入力してください。",
8
+ "overTimeDesc": "情報記入期限:",
9
+ "choiceAddress": "地域を選択",
10
+ "addressDetail": "詳細な住所",
11
+ "addressPlaceholder": "地域を選択してください",
12
+ "qrcodeTips": "長押ししてQRコードを認識",
13
+ "deadLine": "連絡先情報の記入有効期限を過ぎました",
14
+ "checkProtocol": "プライバシー声明にチェックを入れてください",
15
+ "error1": "情報を入力してください",
16
+ "error2": "正しい電話番号を入力してください",
17
+ "submitText": "同意する"
18
+ }
19
+ };
20
+
21
+ export default _default;
@@ -0,0 +1,21 @@
1
+ declare const _default: {
2
+ "rewardReceive": {
3
+ "receiveTitleForm": "당첨 정보 작성",
4
+ "receiveTitleView": "당첨 정보 보기",
5
+ "receiveTitleQrcode": "QR 코드 스캔하여 상품 수령",
6
+ "receiveTitleLink": "링크 열기",
7
+ "receiveDesc": "상품 발송 및 문의를 위해 개인 정보를 입력해 주세요.",
8
+ "overTimeDesc": "정보 작성 기한: ",
9
+ "choiceAddress": "지역 선택",
10
+ "addressDetail": "상세 주소",
11
+ "addressPlaceholder": "지역을 선택해 주세요",
12
+ "qrcodeTips": "QR 코드를 길게 눌러 인식",
13
+ "deadLine": "연락 정보 작성 유효 기간이 초과되었습니다",
14
+ "checkProtocol": "개인정보 처리방침에 동의해 주세요",
15
+ "error1": "정보를 입력해 주세요",
16
+ "error2": "정확한 전화번호를 입력해 주세요",
17
+ "submitText": "동의하기"
18
+ }
19
+ };
20
+
21
+ export default _default;
@@ -0,0 +1,21 @@
1
+ declare const _default: {
2
+ "rewardReceive": {
3
+ "receiveTitleForm": "Заполните информацию",
4
+ "receiveTitleView": "Просмотр информации",
5
+ "receiveTitleQrcode": "Отсканируйте QR-код",
6
+ "receiveTitleLink": "Открыть ссылку",
7
+ "receiveDesc": "Для успешной доставки приза нам нужна ваша личная информация, пожалуйста, заполните её правильно.",
8
+ "overTimeDesc": "Срок заполнения: ",
9
+ "choiceAddress": "Выберите регион",
10
+ "addressDetail": "Подробный адрес",
11
+ "addressPlaceholder": "Выберите регион",
12
+ "qrcodeTips": "Нажмите и удерживайте для сканирования QR-кода",
13
+ "deadLine": "Вы превысили срок заполнения контактной информации",
14
+ "checkProtocol": "Пожалуйста, примите политику конфиденциальности",
15
+ "error1": "Пожалуйста, заполните информацию",
16
+ "error2": "Пожалуйста, введите правильный номер телефона",
17
+ "submitText": "Согласиться"
18
+ }
19
+ } ;
20
+
21
+ export default _default;
@@ -0,0 +1,21 @@
1
+ declare const _default: {
2
+ "rewardReceive": {
3
+ "receiveTitleForm": "填写信息",
4
+ "receiveTitleView": "查看信息",
5
+ "receiveTitleQrcode": "扫码领奖",
6
+ "receiveTitleLink": "打开链接",
7
+ "receiveDesc": "请填写您的个人信息,用于发送奖品及联系您。",
8
+ "overTimeDesc": "截止填写时间:",
9
+ "choiceAddress": "选择地区",
10
+ "addressDetail": "详细地址",
11
+ "addressPlaceholder": "请选择地区",
12
+ "qrcodeTips": "长按识别二维码",
13
+ "deadLine": "您已超过填写联系信息的有效期",
14
+ "checkProtocol": "请勾选隐私声明",
15
+ "error1": "请完善信息",
16
+ "error2": "请输入正确的手机号码",
17
+ "submitText": "同意提交"
18
+ }
19
+ };
20
+
21
+ export default _default;
@@ -0,0 +1,21 @@
1
+ declare const _default: {
2
+ "rewardReceive": {
3
+ "receiveTitleForm": "填寫信息",
4
+ "receiveTitleView": "查看信息",
5
+ "receiveTitleQrcode": "掃碼領獎",
6
+ "receiveTitleLink": "打開鏈接",
7
+ "receiveDesc": "為了順利送達獎品,我們需要您提供個人信息,請務必填寫正確。",
8
+ "overTimeDesc": "截止填寫時間:",
9
+ "choiceAddress": "選擇地區",
10
+ "addressDetail": "詳細地址",
11
+ "addressPlaceholder": "請選擇地區",
12
+ "qrcodeTips": "長按識別二維碼",
13
+ "deadLine": "您已超過填寫聯繫信息的有效期",
14
+ "checkProtocol": "請勾選隱私聲明",
15
+ "error1": "請完善信息",
16
+ "error2": "請輸入正確的手機號碼",
17
+ "submitText": "同意提交"
18
+ }
19
+ };
20
+
21
+ export default _default;
@@ -0,0 +1,12 @@
1
+ export type NestedKeys<T> = {
2
+ [K in keyof T]: T[K] extends object ? `${K & string}` | `${K & string}.${NestedKeys<T[K]>}` : `${K & string}`;
3
+ }[keyof T];
4
+ export type I18nLangs = 'zh_CN' | 'zh_TW' | 'en' | 'ja' | 'ko' | 'ru';
5
+ export interface I18nConfig<C extends Record<string, unknown>> {
6
+ zh_CN: C;
7
+ zh_TW: C;
8
+ en: C;
9
+ ja: C;
10
+ ko: C;
11
+ ru: C;
12
+ }
@@ -0,0 +1 @@
1
+ export declare function compressObject<T extends Record<string, any>>(obj: T, prefix?: string): Record<string, any>;
@@ -0,0 +1,3 @@
1
+ import { default as Schema } from 'async-validator';
2
+ export type { Rules as ValidatorRules, Rule as ValidatorRule, RuleItem as ValidatorRuleItem } from 'async-validator';
3
+ export default Schema;
@@ -0,0 +1,2 @@
1
+ export * from './async-validator';
2
+ export * from './svgaplayerweb/load-svga-player';
@@ -0,0 +1,13 @@
1
+ import { AreaData, AreaDataJson } from './types';
2
+ /**
3
+ * 通过value与级联数据获取选择中的数据
4
+ * @param value 绑定值
5
+ * @param data 地区数据
6
+ */
7
+ export declare function getSelectData(value: string[], data: AreaDataJson): AreaData[];
8
+ export declare function getAreaSelectNames(value: string[], data: AreaDataJson): string[];
9
+ /**
10
+ * 判断是否选择完成
11
+ * @param value 已选值数组
12
+ */
13
+ export declare function isSelectFinish(value: string[], data: AreaDataJson): boolean;
@@ -0,0 +1 @@
1
+ export { default as PlvAreaPicker } from '@polyv/polyv-ui/lib-front-mob/area-picker';
@@ -0,0 +1,19 @@
1
+ import { default as areaData } from '@polyv/polyv-ui/resources/china-area.json';
2
+ export interface ImagePreviewOptions {
3
+ /** 模式显示的下标 */
4
+ initialIndex?: number;
5
+ }
6
+ export interface AreaData {
7
+ name: string;
8
+ code: string;
9
+ childrens?: AreaData[];
10
+ }
11
+ export type AreaDataJson = typeof areaData;
12
+ export interface AreaPickerComponent {
13
+ /** 通过value与级联数据获取选择中的数据 */
14
+ getSelectData: (value: string[], areaData: object) => AreaData[];
15
+ /** 是否已选择完成 */
16
+ isSelectFinish: (value: string[], areaData: object) => boolean;
17
+ /** 加载中国地区数据 */
18
+ loadAreaDataUrl: () => Promise<AreaDataJson>;
19
+ }
@@ -0,0 +1,15 @@
1
+ import { Player as SVGAPlayer, Parser as SVGAParser, VideoEntity as SVGAVideoEntity } from 'svgaplayerweb';
2
+ export type { SVGAPlayer, SVGAParser, SVGAVideoEntity };
3
+ export interface SVGASdk {
4
+ Player: typeof SVGAPlayer;
5
+ Parser: typeof SVGAParser;
6
+ }
7
+ declare global {
8
+ interface Window {
9
+ SVGA?: SVGASdk;
10
+ }
11
+ }
12
+ /**
13
+ * 加载 svga 播放器
14
+ */
15
+ export declare function loadSvgaPlayer(): Promise<SVGASdk>;
@@ -0,0 +1,5 @@
1
+ /**
2
+ * 格式化样式数值
3
+ * @param size 数值或数值字符串
4
+ */
5
+ export declare function formatStyleSize(size?: string | number): string | undefined;
@@ -0,0 +1,12 @@
1
+ import { EmitFn, ObjectEmitsOptions } from 'vue/types/v3-setup-context';
2
+ export type EmitFuncType<P = void> = (arg: P) => void;
3
+ /**
4
+ * 创建 emit 配置的空函数
5
+ */
6
+ export declare const emitFunc: <P = void>() => EmitFuncType<P>;
7
+ export type VueEmit<F extends () => ObjectEmitsOptions> = EmitFn<ReturnType<F>>;
8
+ export type UpdateEmitReturn<K extends string, P = void> = Record<`update:${K}`, EmitFuncType<P>>;
9
+ export declare function updateModelEmit<K extends string, P>(field: K): UpdateEmitReturn<K, P>;
10
+ export type FormatEmit<F extends () => ObjectEmitsOptions> = {
11
+ [K in keyof ReturnType<F>]?: (...args: ReturnType<F>[K] extends (...args: any) => any ? Parameters<ReturnType<F>[K]> : []) => void;
12
+ };
@@ -0,0 +1,18 @@
1
+ import { Ref, ComputedRef, DefineComponent } from 'vue';
2
+ export * from './emit-utils';
3
+ export * from './props-utils';
4
+ /** 类似响应式 */
5
+ export type SimilarResponsive<T = unknown> = T | Ref<T>;
6
+ /** 响应式 Ref,包括 ComputedRef 和 Ref */
7
+ export type ResponsiveRef<T = unknown> = ComputedRef<T> | Ref<T>;
8
+ /** 组件实例类型 */
9
+ export type ComponentInstance<T> = T extends new (...args: any[]) => infer R ? R : T extends (...args: any[]) => infer R ? R extends {
10
+ __ctx?: infer K;
11
+ } ? Exclude<K, void> extends {
12
+ expose: (...args: infer K) => void;
13
+ } ? K[0] & InstanceType<DefineComponent> : any : any : any;
14
+ /**
15
+ * 获取 ref 响应式对象中的 dom 节点,如果不是则返回 undefined
16
+ * @param targetRef 响应式对象
17
+ */
18
+ export declare const getRefElem: <E extends HTMLElement>(targetRef: Ref | HTMLElement) => E | undefined;