tosijs-ui 1.0.1 → 1.0.2
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 +4 -2
- package/dist/iife.js +70 -60
- package/dist/iife.js.map +42 -42
- package/dist/index.js +15 -37
- package/dist/index.js.map +39 -39
- package/dist/version.d.ts +1 -1
- package/package.json +2 -2
- package/dist/ab-test.js +0 -116
- package/dist/babylon-3d.js +0 -292
- package/dist/bodymovin-player.js +0 -172
- package/dist/bp-loader.js +0 -26
- package/dist/carousel.js +0 -308
- package/dist/code-editor.js +0 -102
- package/dist/color-input.js +0 -112
- package/dist/data-table.js +0 -774
- package/dist/drag-and-drop.js +0 -386
- package/dist/editable-rect.js +0 -450
- package/dist/filter-builder.js +0 -468
- package/dist/float.js +0 -170
- package/dist/form.js +0 -466
- package/dist/gamepad.js +0 -115
- package/dist/icon-data.js +0 -308
- package/dist/icon-types.js +0 -1
- package/dist/icons.js +0 -374
- package/dist/index-iife.js +0 -4
- package/dist/live-example.js +0 -611
- package/dist/localize.js +0 -381
- package/dist/make-sorter.js +0 -119
- package/dist/make-sorter.test.d.ts +0 -1
- package/dist/make-sorter.test.js +0 -48
- package/dist/mapbox.js +0 -161
- package/dist/markdown-viewer.js +0 -173
- package/dist/match-shortcut.js +0 -13
- package/dist/match-shortcut.test.d.ts +0 -1
- package/dist/match-shortcut.test.js +0 -194
- package/dist/menu.js +0 -614
- package/dist/notifications.js +0 -308
- package/dist/password-strength.js +0 -302
- package/dist/playwright.config.d.ts +0 -9
- package/dist/playwright.config.js +0 -73
- package/dist/pop-float.js +0 -231
- package/dist/rating.js +0 -192
- package/dist/rich-text.js +0 -296
- package/dist/segmented.js +0 -298
- package/dist/select.js +0 -427
- package/dist/side-nav.js +0 -106
- package/dist/size-break.js +0 -118
- package/dist/sizer.js +0 -92
- package/dist/src/ab-test.d.ts +0 -14
- package/dist/src/babylon-3d.d.ts +0 -53
- package/dist/src/bodymovin-player.d.ts +0 -32
- package/dist/src/bp-loader.d.ts +0 -0
- package/dist/src/carousel.d.ts +0 -113
- package/dist/src/code-editor.d.ts +0 -27
- package/dist/src/color-input.d.ts +0 -41
- package/dist/src/data-table.d.ts +0 -79
- package/dist/src/drag-and-drop.d.ts +0 -2
- package/dist/src/editable-rect.d.ts +0 -97
- package/dist/src/filter-builder.d.ts +0 -64
- package/dist/src/float.d.ts +0 -18
- package/dist/src/form.d.ts +0 -68
- package/dist/src/gamepad.d.ts +0 -34
- package/dist/src/icon-data.d.ts +0 -309
- package/dist/src/icon-types.d.ts +0 -7
- package/dist/src/icons.d.ts +0 -17
- package/dist/src/index.d.ts +0 -37
- package/dist/src/live-example.d.ts +0 -51
- package/dist/src/localize.d.ts +0 -30
- package/dist/src/make-sorter.d.ts +0 -3
- package/dist/src/mapbox.d.ts +0 -24
- package/dist/src/markdown-viewer.d.ts +0 -15
- package/dist/src/match-shortcut.d.ts +0 -9
- package/dist/src/menu.d.ts +0 -60
- package/dist/src/notifications.d.ts +0 -106
- package/dist/src/password-strength.d.ts +0 -35
- package/dist/src/pop-float.d.ts +0 -10
- package/dist/src/rating.d.ts +0 -62
- package/dist/src/rich-text.d.ts +0 -28
- package/dist/src/segmented.d.ts +0 -80
- package/dist/src/select.d.ts +0 -43
- package/dist/src/side-nav.d.ts +0 -36
- package/dist/src/size-break.d.ts +0 -18
- package/dist/src/sizer.d.ts +0 -34
- package/dist/src/tab-selector.d.ts +0 -91
- package/dist/src/tag-list.d.ts +0 -37
- package/dist/src/track-drag.d.ts +0 -5
- package/dist/src/version.d.ts +0 -1
- package/dist/src/via-tag.d.ts +0 -2
- package/dist/tab-selector.js +0 -326
- package/dist/tag-list.js +0 -375
- package/dist/track-drag.js +0 -143
- package/dist/version.js +0 -1
- package/dist/via-tag.js +0 -102
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { Component, ElementCreator } from 'xinjs';
|
|
2
|
-
interface NotificationSpec {
|
|
3
|
-
message: string;
|
|
4
|
-
type?: 'success' | 'info' | 'log' | 'warn' | 'error' | 'progress';
|
|
5
|
-
icon?: SVGElement | string;
|
|
6
|
-
duration?: number;
|
|
7
|
-
progress?: () => number;
|
|
8
|
-
close?: () => void;
|
|
9
|
-
}
|
|
10
|
-
type callback = () => void;
|
|
11
|
-
export declare class XinNotification extends Component {
|
|
12
|
-
private static singleton?;
|
|
13
|
-
static styleSpec: {
|
|
14
|
-
':host': {
|
|
15
|
-
_notificationSpacing: number;
|
|
16
|
-
_notificationWidth: number;
|
|
17
|
-
_notificationPadding: string;
|
|
18
|
-
_notificationBg: string;
|
|
19
|
-
_notificationAccentColor: string;
|
|
20
|
-
_notificationTextColor: string;
|
|
21
|
-
_notificationIconSize: any;
|
|
22
|
-
_notificationButtonSize: number;
|
|
23
|
-
_notificationBorderWidth: string;
|
|
24
|
-
_notificationBorderRadius: any;
|
|
25
|
-
position: string;
|
|
26
|
-
left: number;
|
|
27
|
-
right: number;
|
|
28
|
-
bottom: number;
|
|
29
|
-
paddingBottom: any;
|
|
30
|
-
width: any;
|
|
31
|
-
display: string;
|
|
32
|
-
flexDirection: string;
|
|
33
|
-
margin: string;
|
|
34
|
-
gap: any;
|
|
35
|
-
maxHeight: string;
|
|
36
|
-
overflow: string;
|
|
37
|
-
boxShadow: string;
|
|
38
|
-
};
|
|
39
|
-
':host *': {
|
|
40
|
-
color: any;
|
|
41
|
-
};
|
|
42
|
-
':host .note': {
|
|
43
|
-
display: string;
|
|
44
|
-
background: any;
|
|
45
|
-
padding: any;
|
|
46
|
-
gridTemplateColumns: string;
|
|
47
|
-
gap: any;
|
|
48
|
-
alignItems: string;
|
|
49
|
-
borderRadius: any;
|
|
50
|
-
boxShadow: string;
|
|
51
|
-
borderColor: any;
|
|
52
|
-
borderWidth: any;
|
|
53
|
-
borderStyle: string;
|
|
54
|
-
transition: string;
|
|
55
|
-
transitionProperty: string;
|
|
56
|
-
zIndex: number;
|
|
57
|
-
};
|
|
58
|
-
':host .note .icon': {
|
|
59
|
-
stroke: any;
|
|
60
|
-
};
|
|
61
|
-
':host .note button': {
|
|
62
|
-
display: string;
|
|
63
|
-
lineHeight: any;
|
|
64
|
-
padding: number;
|
|
65
|
-
margin: number;
|
|
66
|
-
height: any;
|
|
67
|
-
width: any;
|
|
68
|
-
background: string;
|
|
69
|
-
alignItems: string;
|
|
70
|
-
justifyContent: string;
|
|
71
|
-
boxShadow: string;
|
|
72
|
-
border: string;
|
|
73
|
-
position: string;
|
|
74
|
-
};
|
|
75
|
-
':host .note button:hover svg': {
|
|
76
|
-
stroke: any;
|
|
77
|
-
};
|
|
78
|
-
':host .note button:active svg': {
|
|
79
|
-
borderRadius: number;
|
|
80
|
-
stroke: any;
|
|
81
|
-
background: any;
|
|
82
|
-
padding: any;
|
|
83
|
-
};
|
|
84
|
-
':host .note svg': {
|
|
85
|
-
height: any;
|
|
86
|
-
width: any;
|
|
87
|
-
pointerEvents: string;
|
|
88
|
-
};
|
|
89
|
-
':host .message': {
|
|
90
|
-
display: string;
|
|
91
|
-
flexDirection: string;
|
|
92
|
-
alignItems: string;
|
|
93
|
-
gap: any;
|
|
94
|
-
};
|
|
95
|
-
':host .note.closing': {
|
|
96
|
-
opacity: number;
|
|
97
|
-
zIndex: number;
|
|
98
|
-
};
|
|
99
|
-
};
|
|
100
|
-
static removeNote(note: HTMLElement): void;
|
|
101
|
-
static post(spec: NotificationSpec | string): callback;
|
|
102
|
-
content: any;
|
|
103
|
-
}
|
|
104
|
-
export declare const xinNotification: ElementCreator<XinNotification>;
|
|
105
|
-
export declare function postNotification(spec: NotificationSpec | string): callback;
|
|
106
|
-
export {};
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { Component } from 'xinjs';
|
|
2
|
-
export declare const digest: (s: string, method?: string) => Promise<string>;
|
|
3
|
-
export declare const isBreached: (password: string) => Promise<boolean>;
|
|
4
|
-
export declare class XinPasswordStrength extends Component {
|
|
5
|
-
minLength: number;
|
|
6
|
-
goodLength: number;
|
|
7
|
-
indicatorColors: string;
|
|
8
|
-
descriptionColors: string;
|
|
9
|
-
issues: {
|
|
10
|
-
tooShort: boolean;
|
|
11
|
-
short: boolean;
|
|
12
|
-
noUpper: boolean;
|
|
13
|
-
noLower: boolean;
|
|
14
|
-
noNumber: boolean;
|
|
15
|
-
noSpecial: boolean;
|
|
16
|
-
};
|
|
17
|
-
issueDescriptions: {
|
|
18
|
-
tooShort: string;
|
|
19
|
-
short: string;
|
|
20
|
-
noUpper: string;
|
|
21
|
-
noLower: string;
|
|
22
|
-
noNumber: string;
|
|
23
|
-
noSpecial: string;
|
|
24
|
-
};
|
|
25
|
-
value: number;
|
|
26
|
-
strengthDescriptions: string[];
|
|
27
|
-
constructor();
|
|
28
|
-
strength(password: string): number;
|
|
29
|
-
isBreached(): Promise<boolean>;
|
|
30
|
-
updateIndicator: (password: string) => void;
|
|
31
|
-
update: (event: Event) => void;
|
|
32
|
-
content: () => any[];
|
|
33
|
-
render(): void;
|
|
34
|
-
}
|
|
35
|
-
export declare const xinPasswordStrength: any;
|
package/dist/src/pop-float.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ElementPart } from 'xinjs';
|
|
2
|
-
import { XinFloat } from './float';
|
|
3
|
-
export type FloatPosition = 'n' | 's' | 'e' | 'w' | 'ne' | 'nw' | 'se' | 'sw' | 'en' | 'wn' | 'es' | 'ws' | 'side' | 'auto';
|
|
4
|
-
export interface PopFloatOptions {
|
|
5
|
-
content: HTMLElement | ElementPart[];
|
|
6
|
-
target: HTMLElement;
|
|
7
|
-
position?: FloatPosition;
|
|
8
|
-
}
|
|
9
|
-
export declare const popFloat: (options: PopFloatOptions) => XinFloat;
|
|
10
|
-
export declare const positionFloat: (element: HTMLElement, target: HTMLElement, position?: FloatPosition) => void;
|
package/dist/src/rating.d.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import { Component, ElementCreator } from 'xinjs';
|
|
2
|
-
export declare class XinRating extends Component {
|
|
3
|
-
iconSize: number;
|
|
4
|
-
min: 0 | 1;
|
|
5
|
-
max: number;
|
|
6
|
-
step: number;
|
|
7
|
-
value: number | null;
|
|
8
|
-
icon: string;
|
|
9
|
-
ratingFill: string;
|
|
10
|
-
ratingStroke: string;
|
|
11
|
-
emptyFill: string;
|
|
12
|
-
emptyStroke: string;
|
|
13
|
-
readonly: boolean;
|
|
14
|
-
hollow: boolean;
|
|
15
|
-
static styleSpec: {
|
|
16
|
-
':host': {
|
|
17
|
-
display: string;
|
|
18
|
-
position: string;
|
|
19
|
-
width: string;
|
|
20
|
-
};
|
|
21
|
-
':host::part(container)': {
|
|
22
|
-
position: string;
|
|
23
|
-
display: string;
|
|
24
|
-
};
|
|
25
|
-
':host::part(empty), :host::part(filled)': {
|
|
26
|
-
height: string;
|
|
27
|
-
whiteSpace: string;
|
|
28
|
-
overflow: string;
|
|
29
|
-
};
|
|
30
|
-
':host::part(empty)': {
|
|
31
|
-
pointerEvents: string;
|
|
32
|
-
_xinIconFill: any;
|
|
33
|
-
_xinIconStroke: any;
|
|
34
|
-
};
|
|
35
|
-
':host::part(filled)': {
|
|
36
|
-
position: string;
|
|
37
|
-
left: number;
|
|
38
|
-
_xinIconFill: any;
|
|
39
|
-
_xinIconStroke: any;
|
|
40
|
-
};
|
|
41
|
-
':host svg': {
|
|
42
|
-
transform: string;
|
|
43
|
-
pointerEvents: string;
|
|
44
|
-
transition: string;
|
|
45
|
-
};
|
|
46
|
-
':host svg:hover': {
|
|
47
|
-
transform: string;
|
|
48
|
-
};
|
|
49
|
-
':host svg:active': {
|
|
50
|
-
transform: string;
|
|
51
|
-
};
|
|
52
|
-
};
|
|
53
|
-
constructor();
|
|
54
|
-
content: () => any;
|
|
55
|
-
displayValue(value: number | null): void;
|
|
56
|
-
update: (event: Event) => void;
|
|
57
|
-
handleKey: (event: KeyboardEvent) => void;
|
|
58
|
-
connectedCallback(): void;
|
|
59
|
-
private _renderedIcon;
|
|
60
|
-
render(): void;
|
|
61
|
-
}
|
|
62
|
-
export declare const xinRating: ElementCreator<XinRating>;
|
package/dist/src/rich-text.d.ts
DELETED
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { Component as WebComponent, ElementCreator } from 'xinjs';
|
|
2
|
-
export declare function blockStyle(options?: {
|
|
3
|
-
caption: string;
|
|
4
|
-
tagType: string;
|
|
5
|
-
}[]): any;
|
|
6
|
-
export declare function spacer(width?: string): any;
|
|
7
|
-
export declare function elastic(width?: string): any;
|
|
8
|
-
export declare function commandButton(title: string, dataCommand: string, icon: SVGElement): any;
|
|
9
|
-
export declare const richTextWidgets: () => any[];
|
|
10
|
-
export declare class RichText extends WebComponent {
|
|
11
|
-
widgets: 'none' | 'minimal' | 'default';
|
|
12
|
-
private isInitialized;
|
|
13
|
-
get value(): string;
|
|
14
|
-
set value(docHtml: string);
|
|
15
|
-
blockElement(elt: Node): Element | undefined;
|
|
16
|
-
get selectedBlocks(): any[];
|
|
17
|
-
get selectedText(): string;
|
|
18
|
-
selectionChange: (event: Event, editor: RichText) => void;
|
|
19
|
-
handleSelectChange: (event: Event) => void;
|
|
20
|
-
handleButtonClick: (event: Event) => void;
|
|
21
|
-
content: any[];
|
|
22
|
-
constructor();
|
|
23
|
-
doCommand(command?: string): void;
|
|
24
|
-
updateBlockStyle(): void;
|
|
25
|
-
connectedCallback(): void;
|
|
26
|
-
render(): void;
|
|
27
|
-
}
|
|
28
|
-
export declare const richText: ElementCreator<RichText>;
|
package/dist/src/segmented.d.ts
DELETED
|
@@ -1,80 +0,0 @@
|
|
|
1
|
-
import { Component as WebComponent, ElementCreator } from 'xinjs';
|
|
2
|
-
interface Choice {
|
|
3
|
-
icon?: string | SVGElement;
|
|
4
|
-
value: string;
|
|
5
|
-
caption: string;
|
|
6
|
-
}
|
|
7
|
-
export declare class XinSegmented extends WebComponent {
|
|
8
|
-
choices: string | Choice[];
|
|
9
|
-
other: string;
|
|
10
|
-
multiple: boolean;
|
|
11
|
-
name: string;
|
|
12
|
-
placeholder: string;
|
|
13
|
-
localized: boolean;
|
|
14
|
-
value: null | string;
|
|
15
|
-
get values(): string[];
|
|
16
|
-
content: () => any[];
|
|
17
|
-
static styleSpec: {
|
|
18
|
-
':host': {
|
|
19
|
-
display: string;
|
|
20
|
-
gap: any;
|
|
21
|
-
alignItems: any;
|
|
22
|
-
};
|
|
23
|
-
':host, :host::part(options)': {
|
|
24
|
-
flexDirection: any;
|
|
25
|
-
};
|
|
26
|
-
':host label': {
|
|
27
|
-
display: string;
|
|
28
|
-
alignItems: string;
|
|
29
|
-
gap: any;
|
|
30
|
-
gridTemplateColumns: any;
|
|
31
|
-
padding: any;
|
|
32
|
-
font: any;
|
|
33
|
-
};
|
|
34
|
-
':host label:has(:checked)': {
|
|
35
|
-
color: any;
|
|
36
|
-
background: any;
|
|
37
|
-
};
|
|
38
|
-
':host svg': {
|
|
39
|
-
height: any;
|
|
40
|
-
stroke: any;
|
|
41
|
-
};
|
|
42
|
-
':host label.no-icon': {
|
|
43
|
-
gap: number;
|
|
44
|
-
gridTemplateColumns: any;
|
|
45
|
-
};
|
|
46
|
-
':host input[type="radio"], :host input[type="checkbox"]': {
|
|
47
|
-
visibility: any;
|
|
48
|
-
};
|
|
49
|
-
':host::part(options)': {
|
|
50
|
-
display: string;
|
|
51
|
-
borderRadius: any;
|
|
52
|
-
background: any;
|
|
53
|
-
color: any;
|
|
54
|
-
overflow: string;
|
|
55
|
-
alignItems: any;
|
|
56
|
-
};
|
|
57
|
-
':host::part(custom)': {
|
|
58
|
-
padding: any;
|
|
59
|
-
color: any;
|
|
60
|
-
background: any;
|
|
61
|
-
font: any;
|
|
62
|
-
border: string;
|
|
63
|
-
outline: string;
|
|
64
|
-
};
|
|
65
|
-
':host::part(custom)::placeholder': {
|
|
66
|
-
color: any;
|
|
67
|
-
opacity: any;
|
|
68
|
-
};
|
|
69
|
-
};
|
|
70
|
-
constructor();
|
|
71
|
-
private valueChanged;
|
|
72
|
-
handleChange: () => void;
|
|
73
|
-
handleKey: (event: KeyboardEvent) => void;
|
|
74
|
-
connectedCallback(): void;
|
|
75
|
-
private get _choices();
|
|
76
|
-
get isOtherValue(): boolean;
|
|
77
|
-
render(): void;
|
|
78
|
-
}
|
|
79
|
-
export declare const xinSegmented: ElementCreator<XinSegmented>;
|
|
80
|
-
export {};
|
package/dist/src/select.d.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Component as WebComponent, ElementCreator } from 'xinjs';
|
|
2
|
-
import { MenuItem } from './menu';
|
|
3
|
-
type OptionRequest = () => Promise<string | undefined>;
|
|
4
|
-
export interface SelectOption {
|
|
5
|
-
icon?: string | HTMLElement;
|
|
6
|
-
caption: string;
|
|
7
|
-
value: string | OptionRequest;
|
|
8
|
-
}
|
|
9
|
-
export interface SelectOptionSubmenu {
|
|
10
|
-
icon?: string | HTMLElement;
|
|
11
|
-
caption: string;
|
|
12
|
-
options: SelectOptions;
|
|
13
|
-
}
|
|
14
|
-
export type SelectOptions = Array<string | null | SelectOption | SelectOptionSubmenu>;
|
|
15
|
-
export declare class XinSelect extends WebComponent {
|
|
16
|
-
editable: boolean;
|
|
17
|
-
showIcon: boolean;
|
|
18
|
-
hideCaption: boolean;
|
|
19
|
-
options: string | SelectOptions;
|
|
20
|
-
value: string;
|
|
21
|
-
placeholder: string;
|
|
22
|
-
filter: string;
|
|
23
|
-
localized: boolean;
|
|
24
|
-
private setValue;
|
|
25
|
-
private getValue;
|
|
26
|
-
get selectOptions(): SelectOptions;
|
|
27
|
-
private buildOptionMenuItem;
|
|
28
|
-
get optionsMenu(): MenuItem[];
|
|
29
|
-
handleChange: (event: Event) => void;
|
|
30
|
-
handleKey: (event: KeyboardEvent) => void;
|
|
31
|
-
filterMenu: any;
|
|
32
|
-
popOptions: (event?: Event) => void;
|
|
33
|
-
content: () => any[];
|
|
34
|
-
constructor();
|
|
35
|
-
get allOptions(): SelectOption[];
|
|
36
|
-
findOption(): SelectOption;
|
|
37
|
-
localeChanged: () => void;
|
|
38
|
-
connectedCallback(): void;
|
|
39
|
-
disconnectedCallback(): void;
|
|
40
|
-
render(): void;
|
|
41
|
-
}
|
|
42
|
-
export declare const xinSelect: ElementCreator<XinSelect>;
|
|
43
|
-
export {};
|
package/dist/src/side-nav.d.ts
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { Component, ElementCreator } from 'xinjs';
|
|
2
|
-
export declare class SideNav extends Component {
|
|
3
|
-
minSize: number;
|
|
4
|
-
navSize: number;
|
|
5
|
-
compact: boolean;
|
|
6
|
-
content: any[];
|
|
7
|
-
private _contentVisible;
|
|
8
|
-
get contentVisible(): boolean;
|
|
9
|
-
set contentVisible(visible: boolean);
|
|
10
|
-
static styleSpec: {
|
|
11
|
-
':host': {
|
|
12
|
-
display: string;
|
|
13
|
-
gridTemplateColumns: string;
|
|
14
|
-
gridTemplateRows: string;
|
|
15
|
-
position: string;
|
|
16
|
-
margin: any;
|
|
17
|
-
transition: any;
|
|
18
|
-
};
|
|
19
|
-
':host slot': {
|
|
20
|
-
position: string;
|
|
21
|
-
};
|
|
22
|
-
':host slot:not([name])': {
|
|
23
|
-
display: string;
|
|
24
|
-
};
|
|
25
|
-
':host slot[name="nav"]': {
|
|
26
|
-
display: string;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
29
|
-
onResize: () => void;
|
|
30
|
-
private observer;
|
|
31
|
-
connectedCallback(): void;
|
|
32
|
-
disconnectedCallback(): void;
|
|
33
|
-
constructor();
|
|
34
|
-
render(): void;
|
|
35
|
-
}
|
|
36
|
-
export declare const sideNav: ElementCreator<SideNav>;
|
package/dist/src/size-break.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Component as WebComponent, ElementCreator } from 'xinjs';
|
|
2
|
-
export declare class SizeBreak extends WebComponent {
|
|
3
|
-
minWidth: number;
|
|
4
|
-
minHeight: number;
|
|
5
|
-
value: 'normal' | 'small';
|
|
6
|
-
content: any[];
|
|
7
|
-
static styleSpec: {
|
|
8
|
-
':host': {
|
|
9
|
-
display: string;
|
|
10
|
-
position: string;
|
|
11
|
-
};
|
|
12
|
-
};
|
|
13
|
-
constructor();
|
|
14
|
-
onResize: () => void;
|
|
15
|
-
connectedCallback(): void;
|
|
16
|
-
disconnectedCallback(): void;
|
|
17
|
-
}
|
|
18
|
-
export declare const sizeBreak: ElementCreator<SizeBreak>;
|
package/dist/src/sizer.d.ts
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { Component as XinComponent, ElementCreator } from 'xinjs';
|
|
2
|
-
export declare class XinSizer extends XinComponent {
|
|
3
|
-
target?: HTMLElement | null;
|
|
4
|
-
static styleSpec: {
|
|
5
|
-
':host': {
|
|
6
|
-
_resizeIconFill: string;
|
|
7
|
-
display: string;
|
|
8
|
-
position: string;
|
|
9
|
-
bottom: number;
|
|
10
|
-
right: number;
|
|
11
|
-
padding: number;
|
|
12
|
-
width: number;
|
|
13
|
-
height: number;
|
|
14
|
-
opacity: number;
|
|
15
|
-
transition: string;
|
|
16
|
-
};
|
|
17
|
-
':host(:hover)': {
|
|
18
|
-
opacity: number;
|
|
19
|
-
};
|
|
20
|
-
':host svg': {
|
|
21
|
-
width: number;
|
|
22
|
-
height: number;
|
|
23
|
-
stroke: any;
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
content: any;
|
|
27
|
-
get minSize(): {
|
|
28
|
-
width: number;
|
|
29
|
-
height: number;
|
|
30
|
-
};
|
|
31
|
-
resizeTarget: (event: Event) => void;
|
|
32
|
-
connectedCallback(): void;
|
|
33
|
-
}
|
|
34
|
-
export declare const xinSizer: ElementCreator<XinSizer>;
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
import { Component as WebComponent, ElementCreator } from 'xinjs';
|
|
2
|
-
type TabCloseHandler = (tabBody: Element) => boolean | undefined | void;
|
|
3
|
-
export declare class TabSelector extends WebComponent {
|
|
4
|
-
value: number;
|
|
5
|
-
localized: boolean;
|
|
6
|
-
makeTab(tabs: TabSelector, tabBody: HTMLElement, bodyId: string): HTMLElement;
|
|
7
|
-
static styleSpec: {
|
|
8
|
-
':host': {
|
|
9
|
-
display: string;
|
|
10
|
-
flexDirection: string;
|
|
11
|
-
position: string;
|
|
12
|
-
overflow: string;
|
|
13
|
-
boxShadow: string;
|
|
14
|
-
};
|
|
15
|
-
slot: {
|
|
16
|
-
position: string;
|
|
17
|
-
display: string;
|
|
18
|
-
flex: string;
|
|
19
|
-
overflow: string;
|
|
20
|
-
overflowY: string;
|
|
21
|
-
};
|
|
22
|
-
'slot[name="after-tabs"]': {
|
|
23
|
-
flex: string;
|
|
24
|
-
};
|
|
25
|
-
'::slotted([hidden])': {
|
|
26
|
-
display: string;
|
|
27
|
-
};
|
|
28
|
-
':host::part(tabpanel)': {
|
|
29
|
-
display: string;
|
|
30
|
-
flexDirection: string;
|
|
31
|
-
overflowX: string;
|
|
32
|
-
};
|
|
33
|
-
':host::part(tabrow)': {
|
|
34
|
-
display: string;
|
|
35
|
-
};
|
|
36
|
-
':host .tabs': {
|
|
37
|
-
display: string;
|
|
38
|
-
userSelect: string;
|
|
39
|
-
whiteSpace: string;
|
|
40
|
-
};
|
|
41
|
-
':host .tabs > div': {
|
|
42
|
-
padding: string;
|
|
43
|
-
cursor: string;
|
|
44
|
-
display: string;
|
|
45
|
-
alignItems: string;
|
|
46
|
-
};
|
|
47
|
-
':host .tabs > [aria-selected="true"]': {
|
|
48
|
-
'--text-color': any;
|
|
49
|
-
color: any;
|
|
50
|
-
};
|
|
51
|
-
':host .elastic': {
|
|
52
|
-
flex: string;
|
|
53
|
-
};
|
|
54
|
-
':host .border': {
|
|
55
|
-
background: string;
|
|
56
|
-
};
|
|
57
|
-
':host .border > .selected': {
|
|
58
|
-
content: string;
|
|
59
|
-
width: number;
|
|
60
|
-
height: string;
|
|
61
|
-
background: any;
|
|
62
|
-
transition: string;
|
|
63
|
-
};
|
|
64
|
-
':host button.close': {
|
|
65
|
-
border: number;
|
|
66
|
-
background: string;
|
|
67
|
-
textAlign: string;
|
|
68
|
-
marginLeft: any;
|
|
69
|
-
padding: number;
|
|
70
|
-
};
|
|
71
|
-
':host button.close > svg': {
|
|
72
|
-
height: string;
|
|
73
|
-
};
|
|
74
|
-
};
|
|
75
|
-
onCloseTab: TabCloseHandler | null;
|
|
76
|
-
content: any[];
|
|
77
|
-
constructor();
|
|
78
|
-
addTabBody(body: HTMLElement, selectTab?: boolean): void;
|
|
79
|
-
removeTabBody(body: HTMLElement): void;
|
|
80
|
-
keyTab: (event: Event) => void;
|
|
81
|
-
get bodies(): Element[];
|
|
82
|
-
pickTab: (event: Event) => void;
|
|
83
|
-
setupTabs: () => void;
|
|
84
|
-
connectedCallback(): void;
|
|
85
|
-
disconnectedCallback(): void;
|
|
86
|
-
localeChanged: () => void;
|
|
87
|
-
onResize(): void;
|
|
88
|
-
render(): void;
|
|
89
|
-
}
|
|
90
|
-
export declare const tabSelector: ElementCreator<TabSelector>;
|
|
91
|
-
export {};
|
package/dist/src/tag-list.d.ts
DELETED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { Component as WebComponent, ElementCreator } from 'xinjs';
|
|
2
|
-
export declare class XinTag extends WebComponent {
|
|
3
|
-
caption: string;
|
|
4
|
-
removeable: boolean;
|
|
5
|
-
removeCallback: (event: Event) => void;
|
|
6
|
-
content: () => any[];
|
|
7
|
-
constructor();
|
|
8
|
-
}
|
|
9
|
-
export declare const xinTag: ElementCreator<XinTag>;
|
|
10
|
-
interface Tag {
|
|
11
|
-
value: string;
|
|
12
|
-
caption?: string;
|
|
13
|
-
color?: string;
|
|
14
|
-
background?: string;
|
|
15
|
-
icon?: string | HTMLElement;
|
|
16
|
-
}
|
|
17
|
-
type TagList = (string | Tag | null)[];
|
|
18
|
-
export declare class XinTagList extends WebComponent {
|
|
19
|
-
disabled: boolean;
|
|
20
|
-
name: string;
|
|
21
|
-
availableTags: string | TagList;
|
|
22
|
-
value: string | string[];
|
|
23
|
-
textEntry: boolean;
|
|
24
|
-
editable: boolean;
|
|
25
|
-
placeholder: string;
|
|
26
|
-
get tags(): string[];
|
|
27
|
-
constructor();
|
|
28
|
-
addTag: (tag: string) => void;
|
|
29
|
-
toggleTag: (toggled: string) => void;
|
|
30
|
-
enterTag: (event: KeyboardEvent) => void;
|
|
31
|
-
popSelectMenu: () => void;
|
|
32
|
-
content: () => any[];
|
|
33
|
-
removeTag: (event: Event) => void;
|
|
34
|
-
render(): void;
|
|
35
|
-
}
|
|
36
|
-
export declare const xinTagList: ElementCreator<XinTagList>;
|
|
37
|
-
export {};
|
package/dist/src/track-drag.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
type TrackerCallback = (dx: number, dy: number, event: PointerEvent) => boolean | undefined;
|
|
2
|
-
export declare const trackDrag: (event: PointerEvent, callback: TrackerCallback, cursor?: string) => void;
|
|
3
|
-
export declare const findHighestZ: (selector?: string) => number;
|
|
4
|
-
export declare const bringToFront: (element: HTMLElement, selector?: string) => void;
|
|
5
|
-
export {};
|
package/dist/src/version.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const version = "0.9.15";
|
package/dist/src/via-tag.d.ts
DELETED