unika-components 1.0.401 → 1.0.403

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,23 +1,20 @@
1
1
  import { GlobalData } from '@/defaultProps';
2
- interface BulletItem {
3
- id: number;
4
- name: string;
5
- message: string;
6
- top: number;
7
- delay: number;
8
- }
9
2
  declare const __default__: import("vue").DefineComponent<{
10
3
  unit: {
11
4
  type: StringConstructor;
12
5
  default: string;
13
6
  };
7
+ env: {
8
+ type: StringConstructor;
9
+ default: string;
10
+ };
14
11
  global: {
15
12
  type: () => GlobalData;
16
13
  required: true;
17
14
  };
18
15
  }, {
19
16
  name: import("vue").Ref<string>;
20
- message: import("vue").Ref<string>;
17
+ content: import("vue").Ref<string>;
21
18
  showPopup: import("vue").Ref<boolean>;
22
19
  showBullets: import("vue").Ref<boolean>;
23
20
  showGift: import("vue").Ref<boolean>;
@@ -25,7 +22,13 @@ declare const __default__: import("vue").DefineComponent<{
25
22
  nameInput: import("vue").Ref<HTMLInputElement | null>;
26
23
  toolbar: import("vue").Ref<HTMLElement | null>;
27
24
  toolbarHeight: import("vue").Ref<string>;
28
- visibleBullets: import("vue").Ref<BulletItem[]>;
25
+ visibleBullets: import("vue").Ref<{
26
+ id: number;
27
+ name: string;
28
+ content: string;
29
+ top: number;
30
+ delay: number;
31
+ }[]>;
29
32
  showBlessingList: import("vue").Ref<boolean>;
30
33
  blessingOptions: string[];
31
34
  showAlert: import("vue").Ref<boolean>;
@@ -40,6 +43,9 @@ declare const __default__: import("vue").DefineComponent<{
40
43
  lineHeight: number;
41
44
  visibleLines: number;
42
45
  }>;
46
+ imageLoaded: import("vue").Ref<boolean>;
47
+ bulletContainerHeightPx: import("vue").ComputedRef<string>;
48
+ bulletTransformOffsetPx: import("vue").ComputedRef<string>;
43
49
  toggleBullets: () => void;
44
50
  openPopup: () => void;
45
51
  closePopup: () => void;
@@ -50,23 +56,25 @@ declare const __default__: import("vue").DefineComponent<{
50
56
  handleFocus: (e: Event) => void;
51
57
  showBlessingOptions: () => void;
52
58
  selectBlessing: (blessing: string) => void;
53
- handlePraise: () => void;
59
+ handlePraise: () => Promise<void>;
54
60
  submitBlessing: () => Promise<void>;
55
61
  handleVModalClick: () => void;
56
- imageLoaded: import("vue").Ref<boolean>;
57
62
  handleImageLoad: () => void;
58
- bulletContainerHeightPx: import("vue").ComputedRef<string>;
59
- bulletTransformOffsetPx: import("vue").ComputedRef<string>;
60
63
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
61
64
  unit: {
62
65
  type: StringConstructor;
63
66
  default: string;
64
67
  };
68
+ env: {
69
+ type: StringConstructor;
70
+ default: string;
71
+ };
65
72
  global: {
66
73
  type: () => GlobalData;
67
74
  required: true;
68
75
  };
69
76
  }>>, {
70
77
  unit: string;
78
+ env: string;
71
79
  }, {}>;
72
80
  export default __default__;
@@ -1,12 +1,38 @@
1
- export declare const defaultStyles: string[];
1
+ import { ElementData } from '@/defaultProps';
2
+ import '@/assets/css/button.css';
2
3
  declare const _default: import("vue").DefineComponent<{
3
- [x: string]: any;
4
+ element: {
5
+ type: () => ElementData;
6
+ required: true;
7
+ };
8
+ unit: {
9
+ type: StringConstructor;
10
+ default: string;
11
+ };
4
12
  }, {
5
- styleProps: import("vue").ComputedRef<Pick<any, string>>;
13
+ css: import("vue").ComputedRef<import("@/defaultProps").CssData>;
14
+ btnText: import("vue").ComputedRef<string>;
15
+ shadowStyle: import("vue").ComputedRef<string>;
16
+ containerStyle: import("vue").ComputedRef<{
17
+ left: string;
18
+ top: string;
19
+ width: string;
20
+ height: string;
21
+ transform: string;
22
+ }>;
6
23
  handleClick: () => void;
7
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
8
- [x: string]: any;
9
- }>>, {
10
- [x: string]: any;
24
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "trigger"[], "trigger", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
25
+ element: {
26
+ type: () => ElementData;
27
+ required: true;
28
+ };
29
+ unit: {
30
+ type: StringConstructor;
31
+ default: string;
32
+ };
33
+ }>> & {
34
+ onTrigger?: ((...args: any[]) => any) | undefined;
35
+ }, {
36
+ unit: string;
11
37
  }, {}>;
12
38
  export default _default;
@@ -1,6 +1,6 @@
1
1
  import { PropType } from 'vue';
2
2
  import type { ElementData } from '@/defaultProps';
3
- import '../../assets/css/calendar.css';
3
+ import '@/assets/css/calendar.css';
4
4
  declare const _default: import("vue").DefineComponent<{
5
5
  element: {
6
6
  type: PropType<ElementData>;
@@ -12,6 +12,7 @@ declare const _default: import("vue").DefineComponent<{
12
12
  };
13
13
  }, {
14
14
  isActiveDay: (day: number | null) => boolean;
15
+ handleClick: () => void;
15
16
  weekDays: import("vue").ComputedRef<string[]>;
16
17
  currentYear: import("vue").ComputedRef<number>;
17
18
  currentMonth: import("vue").ComputedRef<number>;
@@ -34,7 +35,7 @@ declare const _default: import("vue").DefineComponent<{
34
35
  borderWidth: string;
35
36
  animation: string | undefined;
36
37
  }>;
37
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
38
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "trigger"[], "trigger", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
38
39
  element: {
39
40
  type: PropType<ElementData>;
40
41
  required: true;
@@ -43,7 +44,9 @@ declare const _default: import("vue").DefineComponent<{
43
44
  type: StringConstructor;
44
45
  default: string;
45
46
  };
46
- }>>, {
47
+ }>> & {
48
+ onTrigger?: ((...args: any[]) => any) | undefined;
49
+ }, {
47
50
  unit: string;
48
51
  }, {}>;
49
52
  export default _default;
@@ -1,4 +1,5 @@
1
1
  import { ElementData } from '@/defaultProps';
2
+ import '@/assets/css/call.css';
2
3
  declare const _default: import("vue").DefineComponent<{
3
4
  element: {
4
5
  type: () => ElementData;
@@ -17,7 +17,7 @@ export interface FormContext {
17
17
  }>;
18
18
  getFormData(): Record<string, any>;
19
19
  resetForm(): void;
20
- submitForm(scene_id: string): Promise<{
20
+ submitForm(sceneId: string): Promise<{
21
21
  success: boolean;
22
22
  message?: string;
23
23
  }>;
@@ -2,11 +2,13 @@ interface MusicData {
2
2
  url: string;
3
3
  name?: string;
4
4
  music_id?: number;
5
+ id?: string;
5
6
  bgcolor?: string;
6
7
  iconUrl?: string;
7
8
  hash?: string | null;
8
9
  playIconUrl?: string;
9
10
  pauseIconUrl?: string;
11
+ isGlobal?: boolean;
10
12
  }
11
13
  declare const _default: import("vue").DefineComponent<{
12
14
  musicData: {
@@ -22,16 +24,12 @@ declare const _default: import("vue").DefineComponent<{
22
24
  default: boolean;
23
25
  };
24
26
  }, {
25
- audioElement: import("vue").Ref<HTMLAudioElement | null>;
26
- isPlaying: import("vue").Ref<boolean>;
27
- url: import("vue").ComputedRef<string>;
27
+ localIsPlaying: import("vue").ComputedRef<boolean>;
28
28
  bgColor: import("vue").ComputedRef<string>;
29
29
  playIconUrl: import("vue").ComputedRef<string | undefined>;
30
- pauseIconUrl: import("vue").ComputedRef<string | undefined>;
31
- play: () => Promise<boolean>;
30
+ play: () => Promise<void>;
32
31
  pause: () => void;
33
32
  togglePlay: () => void;
34
- handleEnded: () => void;
35
33
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("play" | "pause")[], "play" | "pause", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
36
34
  musicData: {
37
35
  type: () => MusicData;
@@ -1,4 +1,5 @@
1
1
  import { WorkData, GlobalData, PageData, PersonalData } from '../../defaultProps';
2
+ import '@/assets/css/workRender.css';
2
3
  declare const _default: import("vue").DefineComponent<{
3
4
  workData: {
4
5
  type: () => WorkData;
@@ -13,7 +14,6 @@ declare const _default: import("vue").DefineComponent<{
13
14
  default: string;
14
15
  };
15
16
  }, {
16
- bgMusic: import("vue").Ref<HTMLAudioElement | null>;
17
17
  personalData: import("vue").ComputedRef<PersonalData>;
18
18
  global: import("vue").ComputedRef<GlobalData>;
19
19
  pages: import("vue").ComputedRef<[] | PageData[]>;
@@ -0,0 +1,23 @@
1
+ export declare const handleMusicEvent: (musicData: {
2
+ musicLink?: string;
3
+ musicName?: string;
4
+ music_id?: number;
5
+ id?: string;
6
+ isGlobal?: boolean;
7
+ }) => void;
8
+ export declare const handleLinkEvent: (link?: string) => void;
9
+ export declare const handlePageEvent: (pageIndex?: number, callback?: () => void) => void;
10
+ export declare const handlePhoneEvent: (phoneNumber?: string) => void;
11
+ export declare const handleElementEvent: (eventData: {
12
+ event: string;
13
+ link?: string;
14
+ go?: number;
15
+ phone?: string;
16
+ musicLink?: string;
17
+ musicName?: string;
18
+ music_id?: number;
19
+ id?: string;
20
+ isGlobal?: boolean;
21
+ }, callback?: () => void, options?: {
22
+ pauseNonGlobalBeforeAction?: boolean;
23
+ }) => void;
@@ -0,0 +1,28 @@
1
+ export declare const useMusicManager: () => {
2
+ musicState: import("vue").Ref<{
3
+ isPlaying: boolean;
4
+ currentMusicId: number | string | null;
5
+ audioElement: HTMLAudioElement | null;
6
+ isGlobalMusic: boolean;
7
+ }>;
8
+ playMusic: (musicData: {
9
+ url: string;
10
+ music_id?: number;
11
+ id?: string;
12
+ isGlobal?: boolean;
13
+ }) => Promise<boolean | undefined>;
14
+ pauseCurrentMusic: () => void;
15
+ pauseNonGlobalMusic: () => void;
16
+ toggleMusic: (musicData: {
17
+ url: string;
18
+ music_id?: number;
19
+ id?: string;
20
+ isGlobal?: boolean;
21
+ }) => void;
22
+ resetMusicState: () => void;
23
+ getCurrentMusicState: () => {
24
+ isPlaying: boolean;
25
+ isGlobal: boolean;
26
+ musicId: string | number | null;
27
+ };
28
+ };
@@ -0,0 +1,54 @@
1
+ export declare const buttonDefaultProps: {
2
+ id: string;
3
+ pid: string;
4
+ type: string;
5
+ btnText: string;
6
+ layerName: string;
7
+ sign: boolean;
8
+ signSort: number;
9
+ css: {
10
+ borderWidth: number;
11
+ borderStyle: string;
12
+ borderColor: string;
13
+ opacity: number;
14
+ fontSize: number;
15
+ color: string;
16
+ backgroundColor: string;
17
+ width: number;
18
+ height: number;
19
+ borderRadius: number;
20
+ top: number;
21
+ left: number;
22
+ transform: number;
23
+ };
24
+ triggers: {
25
+ event: string;
26
+ link: string;
27
+ go: number;
28
+ phone: string;
29
+ musicName: string;
30
+ musicLink: string;
31
+ musicHash: string;
32
+ music_id: number;
33
+ cat: string;
34
+ originalUrl: string;
35
+ crop: null;
36
+ };
37
+ properties: {
38
+ visible: boolean;
39
+ isLock: boolean;
40
+ required: boolean;
41
+ musicName: string;
42
+ musicLink: string;
43
+ musicHash: string;
44
+ shadowSize: number;
45
+ shadowColor: string;
46
+ shadowX: number;
47
+ shadowY: number;
48
+ shadowBlur: number;
49
+ shadowPoint: number;
50
+ aniOrigin: string;
51
+ animations: never[];
52
+ };
53
+ };
54
+ export default buttonDefaultProps;
@@ -58,6 +58,19 @@ export declare const calendarDefaultProps: {
58
58
  }[];
59
59
  textAni: never[];
60
60
  };
61
+ triggers: {
62
+ event: string;
63
+ link: string;
64
+ go: number;
65
+ phone: string;
66
+ musicName: string;
67
+ musicLink: string;
68
+ musicHash: string;
69
+ music_id: number;
70
+ cat: string;
71
+ originalUrl: string;
72
+ crop: null;
73
+ };
61
74
  signType: string;
62
75
  };
63
76
  export default calendarDefaultProps;
@@ -0,0 +1,42 @@
1
+ export declare const callDefaultProps: {
2
+ id: string;
3
+ pid: string;
4
+ type: string;
5
+ tel: string;
6
+ btnText: string;
7
+ layerName: string;
8
+ sign: boolean;
9
+ signSort: number;
10
+ css: {
11
+ borderWidth: number;
12
+ borderStyle: string;
13
+ borderColor: string;
14
+ opacity: number;
15
+ fontSize: number;
16
+ color: string;
17
+ backgroundColor: string;
18
+ width: number;
19
+ height: number;
20
+ borderRadius: number;
21
+ top: number;
22
+ left: number;
23
+ transform: number;
24
+ };
25
+ properties: {
26
+ visible: boolean;
27
+ isLock: boolean;
28
+ required: boolean;
29
+ musicName: string;
30
+ musicLink: string;
31
+ musicHash: string;
32
+ shadowSize: number;
33
+ shadowColor: string;
34
+ shadowX: number;
35
+ shadowY: number;
36
+ shadowBlur: number;
37
+ shadowPoint: number;
38
+ aniOrigin: string;
39
+ animations: never[];
40
+ };
41
+ };
42
+ export default callDefaultProps;
@@ -0,0 +1,8 @@
1
+ export declare const musicDefaultProps: {
2
+ url: string;
3
+ name: string;
4
+ music_id: number;
5
+ bgcolor: string;
6
+ iconUrl: string;
7
+ };
8
+ export default musicDefaultProps;
@@ -0,0 +1,13 @@
1
+ export declare const toolbarDefaultProps: {
2
+ open: boolean;
3
+ gift: boolean;
4
+ cash: boolean;
5
+ fontColor: string;
6
+ bgColor: string;
7
+ giftRank: boolean;
8
+ hideFirst: boolean;
9
+ hideLast: boolean;
10
+ praise: boolean;
11
+ giftQRCode: string;
12
+ };
13
+ export default toolbarDefaultProps;
@@ -79,7 +79,7 @@ export interface GlobalData {
79
79
  themeColor?: string;
80
80
  viewedCount?: number;
81
81
  cat?: 'h5' | 'long';
82
- scene_id: string;
82
+ sceneId: string;
83
83
  user?: {
84
84
  gender: string;
85
85
  nickName: string;
@@ -112,6 +112,7 @@ export interface GlobalData {
112
112
  name: string;
113
113
  bgcolor: string;
114
114
  hash: string | null;
115
+ iconUrl: string;
115
116
  };
116
117
  useFont?: Record<string, {
117
118
  name: string;
@@ -225,6 +226,8 @@ export interface ElementData {
225
226
  aniPath?: string;
226
227
  css: CssData;
227
228
  triggers: {
229
+ cat?: string;
230
+ crop?: string;
228
231
  event: string;
229
232
  link: string;
230
233
  go: string;
@@ -529,48 +532,6 @@ export declare const mapDefaultProps: {
529
532
  borderColor: string;
530
533
  backgroundColor: string;
531
534
  };
532
- export declare const callDefaultProps: {
533
- left: string;
534
- top: string;
535
- width: string;
536
- height: string;
537
- position: string;
538
- boxShadow: string;
539
- borderRadius: string;
540
- borderStyle: string;
541
- borderWidth: string;
542
- borderColor: string;
543
- fontColor: string;
544
- backgroundColor: string;
545
- color: string;
546
- url: string;
547
- callText: string;
548
- fontSize: string;
549
- opacity: number;
550
- actionType: string;
551
- transform: string;
552
- };
553
- export declare const buttonDefaultProps: {
554
- position: string;
555
- left: string;
556
- top: string;
557
- width: string;
558
- height: string;
559
- transform: string;
560
- boxShadow: string;
561
- borderRadius: string;
562
- borderStyle: string;
563
- borderWidth: string;
564
- borderColor: string;
565
- color: string;
566
- lineHeight: number;
567
- backgroundColor: string;
568
- fontSize: string;
569
- actionType: string;
570
- url: string;
571
- buttonText: string;
572
- opacity: number;
573
- };
574
535
  export declare const likeDefaultProps: {
575
536
  actionType: string;
576
537
  url: string;
@@ -842,29 +803,6 @@ export declare const componentsDefaultProps: {
842
803
  backgroundColor: string;
843
804
  };
844
805
  };
845
- 'uni-call': {
846
- props: {
847
- left: string;
848
- top: string;
849
- width: string;
850
- height: string;
851
- position: string;
852
- boxShadow: string;
853
- borderRadius: string;
854
- borderStyle: string;
855
- borderWidth: string;
856
- borderColor: string;
857
- fontColor: string;
858
- backgroundColor: string;
859
- color: string;
860
- url: string;
861
- callText: string;
862
- fontSize: string;
863
- opacity: number;
864
- actionType: string;
865
- transform: string;
866
- };
867
- };
868
806
  'uni-like': {
869
807
  props: {
870
808
  actionType: string;
@@ -952,29 +890,6 @@ export declare const componentsDefaultProps: {
952
890
  slideImage3: string;
953
891
  };
954
892
  };
955
- 'uni-button': {
956
- props: {
957
- position: string;
958
- left: string;
959
- top: string;
960
- width: string;
961
- height: string;
962
- transform: string;
963
- boxShadow: string;
964
- borderRadius: string;
965
- borderStyle: string;
966
- borderWidth: string;
967
- borderColor: string;
968
- color: string;
969
- lineHeight: number;
970
- backgroundColor: string;
971
- fontSize: string;
972
- actionType: string;
973
- url: string;
974
- buttonText: string;
975
- opacity: number;
976
- };
977
- };
978
893
  'uni-build-up': {
979
894
  props: {
980
895
  left: string;
@@ -1,38 +1,35 @@
1
1
  import { App } from 'vue';
2
- import UniText from './components/UniText';
3
- import UniImage from './components/UniImage';
4
- import UniShape from './components/UniShape';
5
- import LongPage from './components/LongPage';
6
- import UniBackground from './components/UniBackground';
7
- import UniMusic from './components/UniMusic';
8
- import UniVideo from './components/UniVideo';
9
- import UniCalendar from './components/UniCalendar';
10
- import UniCountdown from './components/UniCountdown';
11
- import UniMap from './components/UniMap';
12
- import UniCall from './components/UniCall';
13
- import UniLike from './components/UniLike';
14
- import UniEffect from './components/UniEffect';
15
- import UniRegisterForm from './components/UniRegisterForm';
16
- import UniLottie from './components/UniLottie';
17
- import UniButton from './components/UniButton';
18
- import UniBulidUp from './components/UniBulidUp';
19
- import UniBarrage from './components/UniBarrage';
20
- import UniTest from './components/UniTest';
21
- import UniSvg from './components/UniSvg';
22
- import WorkRender from './components/WorkRender';
23
- import UniFormInput from './components/UniFormInput';
24
- import UniFormSubmit from './components/UniFormSubmit';
25
- import UniFormSelect from './components/UniFormSelect';
26
- import UniFormSingle from './components/UniFormSingle';
27
- import UniFormMultiple from './components/UniFormMultiple';
28
- import UniFormContainer from './components/UniFormContainer';
29
- import UniMenu from './components/UniMenu';
30
- import UniMenuVideo from './components/UniMenuVideo';
31
- import UniMenuTel from './components/UniMenuTel';
32
- import UniMenuReceipt from './components/UniMenuReceipt';
33
- import UniMenuMap from './components/UniMenuMap';
2
+ import UniText from '@/components/UniText';
3
+ import UniImage from '@/components/UniImage';
4
+ import UniShape from '@/components/UniShape';
5
+ import UniMusic from '@/components/UniMusic';
6
+ import UniVideo from '@/components/UniVideo';
7
+ import UniCalendar from '@/components/UniCalendar';
8
+ import UniCountdown from '@/components/UniCountdown';
9
+ import UniMap from '@/components/UniMap';
10
+ import UniCall from '@/components/UniCall';
11
+ import UniLike from '@/components/UniLike';
12
+ import UniEffect from '@/components/UniEffect';
13
+ import UniRegisterForm from '@/components/UniRegisterForm';
14
+ import UniLottie from '@/components/UniLottie';
15
+ import UniButton from '@/components/UniButton';
16
+ import UniBarrage from '@/components/UniBarrage';
17
+ import UniTest from '@/components/UniTest';
18
+ import UniSvg from '@/components/UniSvg';
19
+ import WorkRender from '@/components/WorkRender';
20
+ import UniFormInput from '@/components/UniFormInput';
21
+ import UniFormSubmit from '@/components/UniFormSubmit';
22
+ import UniFormSelect from '@/components/UniFormSelect';
23
+ import UniFormSingle from '@/components/UniFormSingle';
24
+ import UniFormMultiple from '@/components/UniFormMultiple';
25
+ import UniFormContainer from '@/components/UniFormContainer';
26
+ import UniMenu from '@/components/UniMenu';
27
+ import UniMenuVideo from '@/components/UniMenuVideo';
28
+ import UniMenuTel from '@/components/UniMenuTel';
29
+ import UniMenuReceipt from '@/components/UniMenuReceipt';
30
+ import UniMenuMap from '@/components/UniMenuMap';
34
31
  declare const install: (app: App) => void;
35
- export { UniText, UniImage, UniShape, LongPage, UniBackground, UniMusic, UniVideo, UniCalendar, UniCountdown, UniMap, UniCall, UniLike, UniEffect, UniRegisterForm, UniLottie, UniButton, UniBulidUp, UniSvg, UniBarrage, UniTest, WorkRender, UniFormInput, UniFormSubmit, UniFormSelect, UniFormSingle, UniFormMultiple, UniFormContainer, UniMenu, UniMenuVideo, UniMenuTel, UniMenuReceipt, UniMenuMap, install };
32
+ export { UniText, UniImage, UniShape, UniMusic, UniVideo, UniCalendar, UniCountdown, UniMap, UniCall, UniLike, UniEffect, UniRegisterForm, UniLottie, UniButton, UniSvg, UniBarrage, UniTest, WorkRender, UniFormInput, UniFormSubmit, UniFormSelect, UniFormSingle, UniFormMultiple, UniFormContainer, UniMenu, UniMenuVideo, UniMenuTel, UniMenuReceipt, UniMenuMap, install };
36
33
  declare const _default: {
37
34
  install: (app: App<any>) => void;
38
35
  };