chayns-api 1.1.13 → 1.1.15
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.
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.WeekDayType = exports.ToastType = exports.TappEvent = exports.SharingApp = exports.ScreenSize = exports.ScanQrCodeCodeType = exports.ScanQrCodeCameraTypes = exports.RuntimeEnviroment = exports.MediaType = exports.Language = exports.IconType = exports.Gender = exports.Font = exports.FloatingButtonPosition = exports.Environment = exports.DialogType = exports.DialogSelectType = exports.DialogInputType = exports.DialogIconType = exports.DialogButtonType = exports.DialogAnimation = exports.DeviceOs = exports.DateType = exports.ColorMode = exports.BrowserName = exports.AppName = exports.AccessMode = void 0;
|
|
6
|
+
exports.WeekDayType = exports.ToastType = exports.TappEvent = exports.SharingApp = exports.ScreenSize = exports.ScanQrCodeCodeType = exports.ScanQrCodeCameraTypes = exports.RuntimeEnviroment = exports.MediaType = exports.Language = exports.IconType = exports.Gender = exports.Font = exports.FloatingButtonPosition = exports.FloatingButtonAnimation = exports.Environment = exports.DialogType = exports.DialogSelectType = exports.DialogInputType = exports.DialogIconType = exports.DialogButtonType = exports.DialogAnimation = exports.DeviceOs = exports.DateType = exports.ColorMode = exports.BrowserName = exports.AppName = exports.AccessMode = void 0;
|
|
7
7
|
let DateType = exports.DateType = /*#__PURE__*/function (DateType) {
|
|
8
8
|
DateType[DateType["DATE"] = 0] = "DATE";
|
|
9
9
|
DateType[DateType["TIME"] = 1] = "TIME";
|
|
@@ -164,6 +164,12 @@ let FloatingButtonPosition = exports.FloatingButtonPosition = /*#__PURE__*/funct
|
|
|
164
164
|
FloatingButtonPosition[FloatingButtonPosition["Left"] = 2] = "Left";
|
|
165
165
|
return FloatingButtonPosition;
|
|
166
166
|
}({});
|
|
167
|
+
let FloatingButtonAnimation = exports.FloatingButtonAnimation = /*#__PURE__*/function (FloatingButtonAnimation) {
|
|
168
|
+
FloatingButtonAnimation["None"] = "none";
|
|
169
|
+
FloatingButtonAnimation["FadeIn"] = "fade-in";
|
|
170
|
+
FloatingButtonAnimation["Pulse"] = "pulse";
|
|
171
|
+
return FloatingButtonAnimation;
|
|
172
|
+
}({});
|
|
167
173
|
let SharingApp = exports.SharingApp = /*#__PURE__*/function (SharingApp) {
|
|
168
174
|
SharingApp[SharingApp["Mail"] = 0] = "Mail";
|
|
169
175
|
SharingApp[SharingApp["WhatsApp"] = 1] = "WhatsApp";
|
|
@@ -448,14 +448,16 @@ class AppWrapper {
|
|
|
448
448
|
awaitResult: false
|
|
449
449
|
});
|
|
450
450
|
},
|
|
451
|
-
scrollToY: async position => {
|
|
451
|
+
scrollToY: async (position, duration) => {
|
|
452
452
|
window.scrollTo({
|
|
453
|
-
top: position
|
|
453
|
+
top: position,
|
|
454
|
+
behavior: duration ? 'smooth' : 'auto'
|
|
454
455
|
});
|
|
455
456
|
},
|
|
456
457
|
scrollByY: (value, duration) => {
|
|
457
458
|
window.scrollBy({
|
|
458
|
-
top: value
|
|
459
|
+
top: value,
|
|
460
|
+
behavior: duration ? 'smooth' : 'auto'
|
|
459
461
|
});
|
|
460
462
|
},
|
|
461
463
|
sendMessageToGroup: async (groupId, message) => {
|
|
@@ -161,6 +161,12 @@ export let FloatingButtonPosition = /*#__PURE__*/function (FloatingButtonPositio
|
|
|
161
161
|
FloatingButtonPosition[FloatingButtonPosition["Left"] = 2] = "Left";
|
|
162
162
|
return FloatingButtonPosition;
|
|
163
163
|
}({});
|
|
164
|
+
export let FloatingButtonAnimation = /*#__PURE__*/function (FloatingButtonAnimation) {
|
|
165
|
+
FloatingButtonAnimation["None"] = "none";
|
|
166
|
+
FloatingButtonAnimation["FadeIn"] = "fade-in";
|
|
167
|
+
FloatingButtonAnimation["Pulse"] = "pulse";
|
|
168
|
+
return FloatingButtonAnimation;
|
|
169
|
+
}({});
|
|
164
170
|
export let SharingApp = /*#__PURE__*/function (SharingApp) {
|
|
165
171
|
SharingApp[SharingApp["Mail"] = 0] = "Mail";
|
|
166
172
|
SharingApp[SharingApp["WhatsApp"] = 1] = "WhatsApp";
|
|
@@ -412,14 +412,16 @@ export class AppWrapper {
|
|
|
412
412
|
awaitResult: false
|
|
413
413
|
});
|
|
414
414
|
},
|
|
415
|
-
scrollToY: async position => {
|
|
415
|
+
scrollToY: async (position, duration) => {
|
|
416
416
|
window.scrollTo({
|
|
417
|
-
top: position
|
|
417
|
+
top: position,
|
|
418
|
+
behavior: duration ? 'smooth' : 'auto'
|
|
418
419
|
});
|
|
419
420
|
},
|
|
420
421
|
scrollByY: (value, duration) => {
|
|
421
422
|
window.scrollBy({
|
|
422
|
-
top: value
|
|
423
|
+
top: value,
|
|
424
|
+
behavior: duration ? 'smooth' : 'auto'
|
|
423
425
|
});
|
|
424
426
|
},
|
|
425
427
|
sendMessageToGroup: async (groupId, message) => {
|
|
@@ -619,6 +619,11 @@ export declare enum FloatingButtonPosition {
|
|
|
619
619
|
Center = 1,
|
|
620
620
|
Left = 2
|
|
621
621
|
}
|
|
622
|
+
export declare enum FloatingButtonAnimation {
|
|
623
|
+
None = "none",
|
|
624
|
+
FadeIn = "fade-in",
|
|
625
|
+
Pulse = "pulse"
|
|
626
|
+
}
|
|
622
627
|
export interface FloatingButton {
|
|
623
628
|
isEnabled: boolean;
|
|
624
629
|
position: FloatingButtonPosition;
|
|
@@ -635,6 +640,7 @@ export interface FloatingButton {
|
|
|
635
640
|
text: string;
|
|
636
641
|
icon: string;
|
|
637
642
|
}[];
|
|
643
|
+
animation?: FloatingButtonAnimation;
|
|
638
644
|
}
|
|
639
645
|
export declare enum SharingApp {
|
|
640
646
|
Mail = 0,
|