@chayns-components/textstring 5.0.0-beta.990 → 5.0.0-beta.992
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.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chayns-components/textstring",
|
|
3
|
-
"version": "5.0.0-beta.
|
|
3
|
+
"version": "5.0.0-beta.992",
|
|
4
4
|
"description": "A set of beautiful React components for developing your own applications with chayns.",
|
|
5
5
|
"sideEffects": false,
|
|
6
6
|
"browserslist": [
|
|
@@ -69,17 +69,17 @@
|
|
|
69
69
|
"typescript": "^5.7.3"
|
|
70
70
|
},
|
|
71
71
|
"dependencies": {
|
|
72
|
-
"@chayns-components/core": "^5.0.0-beta.
|
|
72
|
+
"@chayns-components/core": "^5.0.0-beta.992"
|
|
73
73
|
},
|
|
74
74
|
"peerDependencies": {
|
|
75
|
-
"chayns-api": "
|
|
75
|
+
"chayns-api": "^2.2.0-beta.2",
|
|
76
76
|
"framer-motion": ">=10.18.0",
|
|
77
|
-
"react": ">=
|
|
78
|
-
"react-dom": ">=
|
|
77
|
+
"react": ">=18.0.0",
|
|
78
|
+
"react-dom": ">=18.0.0",
|
|
79
79
|
"styled-components": ">=5.3.11"
|
|
80
80
|
},
|
|
81
81
|
"publishConfig": {
|
|
82
82
|
"access": "public"
|
|
83
83
|
},
|
|
84
|
-
"gitHead": "
|
|
84
|
+
"gitHead": "9c7ff0545e285c85e242074da863cdb599d2e2c7"
|
|
85
85
|
}
|
package/lib/cjs/types/chayns.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.ButtonType = void 0;
|
|
7
|
-
let ButtonType = exports.ButtonType = /*#__PURE__*/function (ButtonType) {
|
|
8
|
-
ButtonType[ButtonType["Cancel"] = -1] = "Cancel";
|
|
9
|
-
ButtonType[ButtonType["Negative"] = 0] = "Negative";
|
|
10
|
-
ButtonType[ButtonType["Positive"] = 1] = "Positive";
|
|
11
|
-
return ButtonType;
|
|
12
|
-
}({});
|
|
13
|
-
//# sourceMappingURL=chayns.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chayns.js","names":["ButtonType","exports"],"sources":["../../../src/types/chayns.ts"],"sourcesContent":["declare global {\n let chayns: Chayns;\n}\n\nexport interface Chayns {\n dialog: Dialog;\n env: Env;\n openImage(urls: string | string[], start?: number): Promise<undefined>;\n openVideo(url: string): Promise<void>;\n register(config: object): any;\n}\n\nexport interface Dialog {\n select(config: {\n title?: string;\n message?: string;\n list: Array<SelectDialogItem>;\n multiselect?: boolean;\n type?: SelectType;\n preventCloseOnClick?: boolean;\n buttons?: DialogButton[];\n selectAllButton?: string;\n }): Promise<SelectDialogResult>;\n alert(headline: string, text: string): Promise<ButtonType>;\n iFrame(config: {\n url: string;\n input?: object;\n title?: string;\n message?: string;\n buttons?: DialogButton[];\n seamless?: boolean;\n transparent?: boolean;\n waitCursor?: boolean;\n maxHeight?: string;\n width?: number;\n customTransitionTimeout?: number;\n }): Promise<any>;\n}\n\ndeclare enum ButtonText {\n Cancel = 'Abbrechen',\n No = 'Nein',\n Ok = 'OK',\n Yes = 'Ja',\n}\n\nexport enum ButtonType {\n Cancel = -1,\n Negative = 0,\n Positive = 1,\n}\n\nexport interface DialogButton {\n text: ButtonText | string;\n buttonType: ButtonType | number;\n collapseTime?: number;\n textColor?: string;\n backgroundColor?: string;\n}\n\nexport interface SelectDialogItem {\n name: string;\n value: string | number;\n isSelected?: boolean;\n}\n\nexport interface SelectDialogResult {\n buttonType: ButtonType | number;\n selection: Array<SelectDialogItem>;\n}\n\ndeclare enum SelectType {\n Default = 0,\n Icon = 1,\n IconAndText,\n}\n\nexport interface Group {\n id: number;\n isActive: boolean;\n}\n\nexport interface User {\n name: string;\n firstName: string;\n gender: number;\n lastName: string;\n id: number;\n personId: string;\n tobitAccessToken: string;\n groups: Group[];\n isAuthenticated: boolean;\n adminMode: boolean;\n isAdmin: boolean;\n}\n\nexport interface Site {\n id: string;\n}\n\nexport interface Env {\n site: Site;\n user: User;\n language: any;\n parameters: any;\n isApp: boolean;\n isMobile: boolean;\n isTablet: boolean;\n}\n"],"mappings":";;;;;;IA8CYA,UAAU,GAAAC,OAAA,CAAAD,UAAA,0BAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA","ignoreList":[]}
|
package/lib/esm/types/chayns.js
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export let ButtonType = /*#__PURE__*/function (ButtonType) {
|
|
2
|
-
ButtonType[ButtonType["Cancel"] = -1] = "Cancel";
|
|
3
|
-
ButtonType[ButtonType["Negative"] = 0] = "Negative";
|
|
4
|
-
ButtonType[ButtonType["Positive"] = 1] = "Positive";
|
|
5
|
-
return ButtonType;
|
|
6
|
-
}({});
|
|
7
|
-
//# sourceMappingURL=chayns.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chayns.js","names":["ButtonType"],"sources":["../../../src/types/chayns.ts"],"sourcesContent":["declare global {\n let chayns: Chayns;\n}\n\nexport interface Chayns {\n dialog: Dialog;\n env: Env;\n openImage(urls: string | string[], start?: number): Promise<undefined>;\n openVideo(url: string): Promise<void>;\n register(config: object): any;\n}\n\nexport interface Dialog {\n select(config: {\n title?: string;\n message?: string;\n list: Array<SelectDialogItem>;\n multiselect?: boolean;\n type?: SelectType;\n preventCloseOnClick?: boolean;\n buttons?: DialogButton[];\n selectAllButton?: string;\n }): Promise<SelectDialogResult>;\n alert(headline: string, text: string): Promise<ButtonType>;\n iFrame(config: {\n url: string;\n input?: object;\n title?: string;\n message?: string;\n buttons?: DialogButton[];\n seamless?: boolean;\n transparent?: boolean;\n waitCursor?: boolean;\n maxHeight?: string;\n width?: number;\n customTransitionTimeout?: number;\n }): Promise<any>;\n}\n\ndeclare enum ButtonText {\n Cancel = 'Abbrechen',\n No = 'Nein',\n Ok = 'OK',\n Yes = 'Ja',\n}\n\nexport enum ButtonType {\n Cancel = -1,\n Negative = 0,\n Positive = 1,\n}\n\nexport interface DialogButton {\n text: ButtonText | string;\n buttonType: ButtonType | number;\n collapseTime?: number;\n textColor?: string;\n backgroundColor?: string;\n}\n\nexport interface SelectDialogItem {\n name: string;\n value: string | number;\n isSelected?: boolean;\n}\n\nexport interface SelectDialogResult {\n buttonType: ButtonType | number;\n selection: Array<SelectDialogItem>;\n}\n\ndeclare enum SelectType {\n Default = 0,\n Icon = 1,\n IconAndText,\n}\n\nexport interface Group {\n id: number;\n isActive: boolean;\n}\n\nexport interface User {\n name: string;\n firstName: string;\n gender: number;\n lastName: string;\n id: number;\n personId: string;\n tobitAccessToken: string;\n groups: Group[];\n isAuthenticated: boolean;\n adminMode: boolean;\n isAdmin: boolean;\n}\n\nexport interface Site {\n id: string;\n}\n\nexport interface Env {\n site: Site;\n user: User;\n language: any;\n parameters: any;\n isApp: boolean;\n isMobile: boolean;\n isTablet: boolean;\n}\n"],"mappings":"AA8CA,WAAYA,UAAU,0BAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAVA,UAAU,CAAVA,UAAU;EAAA,OAAVA,UAAU;AAAA","ignoreList":[]}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
declare global {
|
|
2
|
-
let chayns: Chayns;
|
|
3
|
-
}
|
|
4
|
-
export interface Chayns {
|
|
5
|
-
dialog: Dialog;
|
|
6
|
-
env: Env;
|
|
7
|
-
openImage(urls: string | string[], start?: number): Promise<undefined>;
|
|
8
|
-
openVideo(url: string): Promise<void>;
|
|
9
|
-
register(config: object): any;
|
|
10
|
-
}
|
|
11
|
-
export interface Dialog {
|
|
12
|
-
select(config: {
|
|
13
|
-
title?: string;
|
|
14
|
-
message?: string;
|
|
15
|
-
list: Array<SelectDialogItem>;
|
|
16
|
-
multiselect?: boolean;
|
|
17
|
-
type?: SelectType;
|
|
18
|
-
preventCloseOnClick?: boolean;
|
|
19
|
-
buttons?: DialogButton[];
|
|
20
|
-
selectAllButton?: string;
|
|
21
|
-
}): Promise<SelectDialogResult>;
|
|
22
|
-
alert(headline: string, text: string): Promise<ButtonType>;
|
|
23
|
-
iFrame(config: {
|
|
24
|
-
url: string;
|
|
25
|
-
input?: object;
|
|
26
|
-
title?: string;
|
|
27
|
-
message?: string;
|
|
28
|
-
buttons?: DialogButton[];
|
|
29
|
-
seamless?: boolean;
|
|
30
|
-
transparent?: boolean;
|
|
31
|
-
waitCursor?: boolean;
|
|
32
|
-
maxHeight?: string;
|
|
33
|
-
width?: number;
|
|
34
|
-
customTransitionTimeout?: number;
|
|
35
|
-
}): Promise<any>;
|
|
36
|
-
}
|
|
37
|
-
declare enum ButtonText {
|
|
38
|
-
Cancel = "Abbrechen",
|
|
39
|
-
No = "Nein",
|
|
40
|
-
Ok = "OK",
|
|
41
|
-
Yes = "Ja"
|
|
42
|
-
}
|
|
43
|
-
export declare enum ButtonType {
|
|
44
|
-
Cancel = -1,
|
|
45
|
-
Negative = 0,
|
|
46
|
-
Positive = 1
|
|
47
|
-
}
|
|
48
|
-
export interface DialogButton {
|
|
49
|
-
text: ButtonText | string;
|
|
50
|
-
buttonType: ButtonType | number;
|
|
51
|
-
collapseTime?: number;
|
|
52
|
-
textColor?: string;
|
|
53
|
-
backgroundColor?: string;
|
|
54
|
-
}
|
|
55
|
-
export interface SelectDialogItem {
|
|
56
|
-
name: string;
|
|
57
|
-
value: string | number;
|
|
58
|
-
isSelected?: boolean;
|
|
59
|
-
}
|
|
60
|
-
export interface SelectDialogResult {
|
|
61
|
-
buttonType: ButtonType | number;
|
|
62
|
-
selection: Array<SelectDialogItem>;
|
|
63
|
-
}
|
|
64
|
-
declare enum SelectType {
|
|
65
|
-
Default = 0,
|
|
66
|
-
Icon = 1,
|
|
67
|
-
IconAndText
|
|
68
|
-
}
|
|
69
|
-
export interface Group {
|
|
70
|
-
id: number;
|
|
71
|
-
isActive: boolean;
|
|
72
|
-
}
|
|
73
|
-
export interface User {
|
|
74
|
-
name: string;
|
|
75
|
-
firstName: string;
|
|
76
|
-
gender: number;
|
|
77
|
-
lastName: string;
|
|
78
|
-
id: number;
|
|
79
|
-
personId: string;
|
|
80
|
-
tobitAccessToken: string;
|
|
81
|
-
groups: Group[];
|
|
82
|
-
isAuthenticated: boolean;
|
|
83
|
-
adminMode: boolean;
|
|
84
|
-
isAdmin: boolean;
|
|
85
|
-
}
|
|
86
|
-
export interface Site {
|
|
87
|
-
id: string;
|
|
88
|
-
}
|
|
89
|
-
export interface Env {
|
|
90
|
-
site: Site;
|
|
91
|
-
user: User;
|
|
92
|
-
language: any;
|
|
93
|
-
parameters: any;
|
|
94
|
-
isApp: boolean;
|
|
95
|
-
isMobile: boolean;
|
|
96
|
-
isTablet: boolean;
|
|
97
|
-
}
|
|
98
|
-
export {};
|