tosijs-ui 1.0.4 → 1.0.7
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/README.md +19 -4
- package/dist/ab-test.d.ts +1 -1
- package/dist/code-editor.d.ts +3 -1
- package/dist/dialog.d.ts +1 -1
- package/dist/editable-rect.d.ts +1 -1
- package/dist/filter-builder.d.ts +15 -4
- package/dist/icons.d.ts +2 -2
- package/dist/iife.js +45 -42
- package/dist/iife.js.map +21 -21
- package/dist/index.js +6 -7
- package/dist/index.js.map +19 -19
- package/dist/live-example.d.ts +0 -1
- package/dist/localize.d.ts +28 -8
- package/dist/menu.d.ts +1 -1
- package/dist/month.d.ts +1 -1
- package/dist/password-strength.d.ts +1 -1
- package/dist/segmented.d.ts +8 -0
- package/dist/side-nav.d.ts +4 -3
- package/dist/version.d.ts +1 -1
- package/package.json +11 -9
package/dist/live-example.d.ts
CHANGED
package/dist/localize.d.ts
CHANGED
|
@@ -3,19 +3,39 @@ import { XinSelect } from './select';
|
|
|
3
3
|
interface TranslationMap {
|
|
4
4
|
[key: string]: string[];
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
export declare const i18n: {
|
|
7
|
+
locale: String & import("tosijs").XinProps<string>;
|
|
8
|
+
locales: (String & import("tosijs").XinProps<string>)[] & import("tosijs").XinProps<string[]>;
|
|
9
|
+
languages: (String & import("tosijs").XinProps<string>)[] & import("tosijs").XinProps<string[]>;
|
|
10
|
+
emoji: (String & import("tosijs").XinProps<string>)[] & import("tosijs").XinProps<string[]>;
|
|
11
|
+
stringMap: {
|
|
12
|
+
[x: string]: (String & import("tosijs").XinProps<string>)[] & import("tosijs").XinProps<string[]>;
|
|
13
|
+
} & import("tosijs").XinProps<TranslationMap>;
|
|
14
|
+
localeOptions: ({
|
|
15
|
+
icon: any;
|
|
16
|
+
caption: String & import("tosijs").XinProps<string>;
|
|
17
|
+
value: String & import("tosijs").XinProps<string>;
|
|
18
|
+
} & import("tosijs").XinProps<{
|
|
19
|
+
icon: any;
|
|
20
|
+
caption: string;
|
|
21
|
+
value: string;
|
|
22
|
+
}>)[] & import("tosijs").XinProps<{
|
|
23
|
+
icon: any;
|
|
24
|
+
caption: string;
|
|
25
|
+
value: string;
|
|
26
|
+
}[]>;
|
|
27
|
+
} & import("tosijs").XinProps<{
|
|
7
28
|
locale: string;
|
|
8
29
|
locales: string[];
|
|
9
30
|
languages: string[];
|
|
10
31
|
emoji: string[];
|
|
11
32
|
stringMap: TranslationMap;
|
|
12
|
-
localeOptions:
|
|
13
|
-
icon:
|
|
33
|
+
localeOptions: {
|
|
34
|
+
icon: any;
|
|
14
35
|
caption: string;
|
|
15
36
|
value: string;
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
export declare const i18n: I18nConfig;
|
|
37
|
+
}[];
|
|
38
|
+
}>;
|
|
19
39
|
export declare const setLocale: (language: string) => void;
|
|
20
40
|
export declare const updateLocalized: () => void;
|
|
21
41
|
export declare function initLocalization(localizedStrings: string): void;
|
|
@@ -26,7 +46,7 @@ export declare class LocalePicker extends Component {
|
|
|
26
46
|
constructor();
|
|
27
47
|
render(): void;
|
|
28
48
|
}
|
|
29
|
-
export declare const localePicker: import("tosijs").ElementCreator<
|
|
49
|
+
export declare const localePicker: import("tosijs").ElementCreator<LocalePicker>;
|
|
30
50
|
interface AbstractLocalized {
|
|
31
51
|
localeChanged: () => void;
|
|
32
52
|
connectedCallback: () => void;
|
|
@@ -42,5 +62,5 @@ export declare class XinLocalized extends Component {
|
|
|
42
62
|
localeChanged(): void;
|
|
43
63
|
render(): void;
|
|
44
64
|
}
|
|
45
|
-
export declare const xinLocalized: import("tosijs").ElementCreator<
|
|
65
|
+
export declare const xinLocalized: import("tosijs").ElementCreator<XinLocalized>;
|
|
46
66
|
export {};
|
package/dist/menu.d.ts
CHANGED
|
@@ -57,5 +57,5 @@ export declare class XinMenu extends Component<XinMenuParts> {
|
|
|
57
57
|
connectedCallback(): void;
|
|
58
58
|
disconnectedCallback(): void;
|
|
59
59
|
}
|
|
60
|
-
export declare const xinMenu: import("tosijs").ElementCreator<
|
|
60
|
+
export declare const xinMenu: import("tosijs").ElementCreator<XinMenu>;
|
|
61
61
|
export {};
|
package/dist/month.d.ts
CHANGED
|
@@ -57,5 +57,5 @@ export declare class TosiMonth extends Component<MonthParts> {
|
|
|
57
57
|
}>;
|
|
58
58
|
render(): void;
|
|
59
59
|
}
|
|
60
|
-
export declare const tosiMonth: import("tosijs").ElementCreator<
|
|
60
|
+
export declare const tosiMonth: import("tosijs").ElementCreator<TosiMonth>;
|
|
61
61
|
export {};
|
|
@@ -32,4 +32,4 @@ export declare class XinPasswordStrength extends Component {
|
|
|
32
32
|
content: () => any[];
|
|
33
33
|
render(): void;
|
|
34
34
|
}
|
|
35
|
-
export declare const xinPasswordStrength: import("tosijs").ElementCreator<
|
|
35
|
+
export declare const xinPasswordStrength: import("tosijs").ElementCreator<XinPasswordStrength>;
|
package/dist/segmented.d.ts
CHANGED
|
@@ -31,10 +31,18 @@ export declare class XinSegmented extends WebComponent {
|
|
|
31
31
|
padding: string;
|
|
32
32
|
font: string;
|
|
33
33
|
};
|
|
34
|
+
':host label:focus': {
|
|
35
|
+
outline: string;
|
|
36
|
+
boxShadow: string;
|
|
37
|
+
borderRadius: string;
|
|
38
|
+
};
|
|
34
39
|
':host label:has(:checked)': {
|
|
35
40
|
color: string;
|
|
36
41
|
background: string;
|
|
37
42
|
};
|
|
43
|
+
':host label:has(:checked):focus': {
|
|
44
|
+
boxShadow: string;
|
|
45
|
+
};
|
|
38
46
|
':host svg': {
|
|
39
47
|
height: string;
|
|
40
48
|
stroke: string;
|
package/dist/side-nav.d.ts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { Component, ElementCreator } from 'tosijs';
|
|
2
|
+
type NavState = 'normal' | 'compact/nav' | 'compact/content';
|
|
2
3
|
export declare class SideNav extends Component {
|
|
3
4
|
minSize: number;
|
|
4
5
|
navSize: number;
|
|
5
6
|
compact: boolean;
|
|
7
|
+
contentVisible: boolean;
|
|
8
|
+
value: NavState;
|
|
6
9
|
content: HTMLSlotElement[];
|
|
7
|
-
private _contentVisible;
|
|
8
|
-
get contentVisible(): boolean;
|
|
9
|
-
set contentVisible(visible: boolean);
|
|
10
10
|
static styleSpec: {
|
|
11
11
|
':host': {
|
|
12
12
|
display: string;
|
|
@@ -34,3 +34,4 @@ export declare class SideNav extends Component {
|
|
|
34
34
|
render(): void;
|
|
35
35
|
}
|
|
36
36
|
export declare const sideNav: ElementCreator<SideNav>;
|
|
37
|
+
export {};
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.0.
|
|
1
|
+
export declare const version = "1.0.7";
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tosijs-ui",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.7",
|
|
4
4
|
"description": "simple robust web-components for use with xinjs or anything else",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "bun --watch bin/dev.ts",
|
|
7
7
|
"format": "bun eslint src demo --fix && bun prettier --write .",
|
|
8
8
|
"tests": "bun test && bun playwright test",
|
|
9
|
-
"latest": "rm -rf node_modules && bun update"
|
|
9
|
+
"latest": "rm -rf node_modules bun.lock && bun update"
|
|
10
10
|
},
|
|
11
11
|
"keywords": [
|
|
12
12
|
"tosijs",
|
|
@@ -25,22 +25,21 @@
|
|
|
25
25
|
"url": "https://github.com/tonioloewald/xinjs-ui.git"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@playwright/test": "^1.
|
|
28
|
+
"@playwright/test": "^1.56.1",
|
|
29
29
|
"@types/jsdom": "^21.1.7",
|
|
30
|
-
"@types/node": "^22.18.
|
|
31
|
-
"@types/react": "^19.
|
|
30
|
+
"@types/node": "^22.18.13",
|
|
31
|
+
"@types/react": "^19.2.2",
|
|
32
32
|
"@typescript-eslint/eslint-plugin": "^5.62.0",
|
|
33
33
|
"@typescript-eslint/parser": "^5.62.0",
|
|
34
34
|
"bun-types": "latest",
|
|
35
|
-
"caniuse-lite": "^1.0.30001739",
|
|
36
35
|
"chokidar": "^4.0.3",
|
|
37
36
|
"eslint": "^8.57.1",
|
|
38
37
|
"prettier": "^2.8.8",
|
|
39
|
-
"typescript": "^5.9.
|
|
38
|
+
"typescript": "^5.9.3"
|
|
40
39
|
},
|
|
41
40
|
"peerDependencies": {
|
|
42
|
-
"marked": "^16.
|
|
43
|
-
"tosijs": "^1.0.
|
|
41
|
+
"marked": "^16.4.1",
|
|
42
|
+
"tosijs": "^1.0.9"
|
|
44
43
|
},
|
|
45
44
|
"files": [
|
|
46
45
|
"/dist",
|
|
@@ -54,5 +53,8 @@
|
|
|
54
53
|
"browser": "./dist/iife.js",
|
|
55
54
|
"default": "./dist/index.js",
|
|
56
55
|
"types": "./dist/index.d.ts"
|
|
56
|
+
},
|
|
57
|
+
"dependencies": {
|
|
58
|
+
"playwright": "^1.56.1"
|
|
57
59
|
}
|
|
58
60
|
}
|