tosijs-ui 1.3.3 → 1.3.5

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/dist/ab-test.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { Component } from 'tosijs';
2
2
  export declare class AbTest extends Component {
3
+ static preferredTagName: string;
3
4
  static set conditions(context: {
4
5
  [key: string]: any;
5
6
  });
@@ -8,9 +8,10 @@ interface B3dUIOptions {
8
8
  }
9
9
  type MeshProcessCallback = (meshes: any[]) => void;
10
10
  export declare class B3d extends WebComponent {
11
+ static preferredTagName: string;
11
12
  babylonReady: Promise<any>;
12
13
  BABYLON?: any;
13
- static styleSpec: {
14
+ static shadowStyleSpec: {
14
15
  ':host': {
15
16
  display: string;
16
17
  position: string;
@@ -9,6 +9,7 @@ export interface LottieConfig {
9
9
  [key: string]: any;
10
10
  }
11
11
  export declare class BodymovinPlayer extends WebComponent {
12
+ static preferredTagName: string;
12
13
  static initAttributes: {
13
14
  src: string;
14
15
  json: string;
@@ -17,7 +18,7 @@ export declare class BodymovinPlayer extends WebComponent {
17
18
  config: LottieConfig;
18
19
  static bodymovinAvailable?: Promise<any>;
19
20
  animation: any;
20
- static styleSpec: {
21
+ static shadowStyleSpec: {
21
22
  ':host': {
22
23
  width: number;
23
24
  height: number;
@@ -1,5 +1,6 @@
1
1
  import { Component as WebComponent, ElementCreator } from 'tosijs';
2
2
  export declare class TosiCarousel extends WebComponent {
3
+ static preferredTagName: string;
3
4
  static initAttributes: {
4
5
  dots: boolean;
5
6
  arrows: boolean;
@@ -17,12 +18,26 @@ export declare class TosiCarousel extends WebComponent {
17
18
  set page(p: number);
18
19
  get visibleItems(): HTMLElement[];
19
20
  get lastPage(): number;
20
- static styleSpec: {
21
+ static shadowStyleSpec: {
21
22
  ':host': {
23
+ _carouselIconSize: number;
24
+ _carouselButtonColor: string;
25
+ _carouselButtonHoverColor: string;
26
+ _carouselButtonActiveColor: string;
27
+ _carouseButtonWidth: number;
28
+ _carouselDotCurrentColor: string;
29
+ _carouselDotSize: number;
30
+ _carouselDotSpacing: string;
31
+ _carouselProgressPadding: number;
32
+ _carouselDotTransition: string;
22
33
  display: string;
23
34
  flexDirection: string;
24
35
  position: string;
25
36
  };
37
+ ':host:focus': {
38
+ outline: string;
39
+ boxShadow: string;
40
+ };
26
41
  ':host svg': {
27
42
  height: string;
28
43
  };
@@ -1,5 +1,6 @@
1
1
  import { Component as WebComponent, ElementCreator } from 'tosijs';
2
2
  export declare class CodeEditor extends WebComponent {
3
+ static preferredTagName: string;
3
4
  private source;
4
5
  get value(): string;
5
6
  set value(text: string);
@@ -15,7 +16,7 @@ export declare class CodeEditor extends WebComponent {
15
16
  options: any;
16
17
  get ace(): any;
17
18
  get editor(): any;
18
- static styleSpec: {
19
+ static shadowStyleSpec: {
19
20
  ':host': {
20
21
  display: string;
21
22
  position: string;
@@ -5,9 +5,10 @@ interface ColorParts extends PartsMap {
5
5
  css: HTMLInputElement;
6
6
  }
7
7
  declare class ColorInput extends Component<ColorParts> {
8
+ static preferredTagName: string;
8
9
  value: string;
9
10
  color: Color;
10
- static styleSpec: {
11
+ static shadowStyleSpec: {
11
12
  ':host': {
12
13
  _gap: number;
13
14
  _swatchSize: number;
@@ -18,6 +18,56 @@ export interface TableData {
18
18
  export type ArrayFilter = (array: any[]) => any[];
19
19
  export type SelectCallback = (selected: any[]) => void;
20
20
  export declare class TosiTable extends WebComponent {
21
+ static preferredTagName: string;
22
+ static lightStyleSpec: {
23
+ ':host': {
24
+ '--tosi-table-row-height': string;
25
+ '--tosi-table-touch-size': string;
26
+ '--tosi-table-dragged-header-bg': string;
27
+ '--tosi-table-dragged-header-color': string;
28
+ '--tosi-table-drop-header-bg': string;
29
+ '--row-height': string;
30
+ '--touch-size': string;
31
+ '--dragged-header-bg': string;
32
+ '--dragged-header-color': string;
33
+ '--drop-header-bg': string;
34
+ overflow: string;
35
+ };
36
+ ':host .thead, :host .tbody': {
37
+ width: string;
38
+ };
39
+ ':host .tr': {
40
+ display: string;
41
+ gridTemplateColumns: string;
42
+ height: string;
43
+ lineHeight: string;
44
+ };
45
+ ':host .td, :host .th': {
46
+ overflow: string;
47
+ whiteSpace: string;
48
+ textOverflow: string;
49
+ display: string;
50
+ alignItems: string;
51
+ };
52
+ ':host .th .menu-trigger': {
53
+ color: string;
54
+ background: string;
55
+ padding: number;
56
+ lineHeight: string;
57
+ height: string;
58
+ width: string;
59
+ };
60
+ ':host [draggable="true"]': {
61
+ cursor: string;
62
+ };
63
+ ':host [draggable="true"]:active': {
64
+ background: string;
65
+ color: string;
66
+ };
67
+ ':host .drag-over': {
68
+ background: string;
69
+ };
70
+ };
21
71
  static initAttributes: {
22
72
  rowHeight: number;
23
73
  charWidth: number;
package/dist/dialog.d.ts CHANGED
@@ -5,6 +5,46 @@ interface DialogParts extends PartsMap {
5
5
  }
6
6
  export declare class TosiDialog extends Component<DialogParts> {
7
7
  #private;
8
+ static preferredTagName: string;
9
+ static lightStyleSpec: {
10
+ ':host > dialog::backdrop': {
11
+ backdropFilter: string;
12
+ };
13
+ ':host > dialog:not([open])': {
14
+ display: string;
15
+ };
16
+ ':host > dialog[open]': {
17
+ minWidth: number;
18
+ border: number;
19
+ borderRadius: number;
20
+ overflow: string;
21
+ maxHeight: string;
22
+ padding: number;
23
+ display: string;
24
+ flexDirection: string;
25
+ gap: number;
26
+ _dialogShadow: string;
27
+ _dialogBackground: string;
28
+ _dialogColor: string;
29
+ boxShadow: string;
30
+ background: string;
31
+ color: string;
32
+ };
33
+ ':host > dialog > *': {
34
+ padding: string;
35
+ };
36
+ ':host > dialog > header': {
37
+ display: string;
38
+ justifyContent: string;
39
+ gap: number;
40
+ };
41
+ ':host > dialog > footer': {
42
+ display: string;
43
+ justifyContent: string;
44
+ gap: number;
45
+ paddingBottom: number;
46
+ };
47
+ };
8
48
  static alert(message: string, title?: string): Promise<void>;
9
49
  static confirm(message: string, title?: string): Promise<boolean>;
10
50
  static prompt(message: string, title?: string, currentValue?: string): Promise<string | null>;
@@ -6,6 +6,7 @@ interface Locks {
6
6
  bottom: boolean;
7
7
  }
8
8
  export declare class EditableRect extends Component {
9
+ static preferredTagName: string;
9
10
  static initAttributes: {
10
11
  rotationSnap: number;
11
12
  positionSnap: number;
@@ -14,7 +15,7 @@ export declare class EditableRect extends Component {
14
15
  static gridSize: number;
15
16
  static snapAngle: boolean;
16
17
  static snapToGrid: boolean;
17
- static styleSpec: {
18
+ static shadowStyleSpec: {
18
19
  ':host': {
19
20
  '--handle-bg': string;
20
21
  '--handle-color': string;
@@ -31,6 +31,27 @@ interface FilterPartParts extends PartsMap {
31
31
  remove: HTMLButtonElement;
32
32
  }
33
33
  export declare class FilterPart extends WebComponent<FilterPartParts> {
34
+ static preferredTagName: string;
35
+ static lightStyleSpec: {
36
+ ':host': {
37
+ display: string;
38
+ };
39
+ ':host .tosi-icon:': {
40
+ verticalAlign: string;
41
+ pointerEvents: string;
42
+ };
43
+ ':host [part="haystack"], :host [part="condition"]': {
44
+ flex: string;
45
+ };
46
+ ':host [part="needle"]': {
47
+ flex: number;
48
+ };
49
+ ':host [hidden]+[part="padding"]': {
50
+ display: string;
51
+ content: string;
52
+ flex: string;
53
+ };
54
+ };
34
55
  static initAttributes: {
35
56
  haystack: string;
36
57
  condition: string;
@@ -55,6 +76,41 @@ export interface FilterBuilderParts extends PartsMap {
55
76
  resent: HTMLButtonElement;
56
77
  }
57
78
  export declare class FilterBuilder extends WebComponent<FilterBuilderParts> {
79
+ static preferredTagName: string;
80
+ static lightStyleSpec: {
81
+ ':host': {
82
+ height: string;
83
+ display: string;
84
+ gridTemplateColumns: string;
85
+ alignItems: string;
86
+ };
87
+ ':host [part="filterContainer"]': {
88
+ display: string;
89
+ flexDirection: string;
90
+ alignItems: string;
91
+ flex: string;
92
+ };
93
+ ':host [part="haystack"]': {
94
+ _fieldWidth: string;
95
+ };
96
+ ':host [part="condition"]': {
97
+ _fieldWidth: string;
98
+ };
99
+ ':host [part="needle"]': {
100
+ _fieldWidth: string;
101
+ };
102
+ ':host [part="add"], :host [part="reset"]': {
103
+ '--button-size': string;
104
+ borderRadius: string;
105
+ height: string;
106
+ lineHeight: string;
107
+ margin: string;
108
+ padding: string;
109
+ textAlign: string;
110
+ width: string;
111
+ flex: string;
112
+ };
113
+ };
58
114
  private _fields;
59
115
  get fields(): Fields;
60
116
  set fields(_fields: Fields);
package/dist/float.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import { Component as WebComponent, ElementCreator } from 'tosijs';
2
2
  export declare class TosiFloat extends WebComponent {
3
+ static preferredTagName: string;
3
4
  static floats: Set<TosiFloat>;
4
5
  static initAttributes: {
5
6
  drag: boolean;
@@ -7,7 +8,7 @@ export declare class TosiFloat extends WebComponent {
7
8
  remainOnScroll: "hide" | "remove" | "remain";
8
9
  };
9
10
  content: HTMLSlotElement;
10
- static styleSpec: {
11
+ static shadowStyleSpec: {
11
12
  ':host': {
12
13
  position: string;
13
14
  };
package/dist/form.d.ts CHANGED
@@ -1,5 +1,34 @@
1
1
  import { Component as XinComponent, ElementCreator } from 'tosijs';
2
2
  export declare class TosiField extends XinComponent {
3
+ static preferredTagName: string;
4
+ static lightStyleSpec: {
5
+ ':host [part="field"]': {
6
+ position: string;
7
+ display: string;
8
+ alignItems: string;
9
+ gap: string;
10
+ };
11
+ ':host [part="field"][prefix]::before': {
12
+ content: string;
13
+ };
14
+ ':host [part="field"][suffix]::after': {
15
+ content: string;
16
+ };
17
+ ':host [part="field"] > *, :host [part="input"] > *': {
18
+ width: string;
19
+ };
20
+ ':host textarea': {
21
+ resize: string;
22
+ };
23
+ ':host input[type="checkbox"]': {
24
+ width: string;
25
+ };
26
+ ':host .hidden': {
27
+ position: string;
28
+ pointerEvents: string;
29
+ opacity: number;
30
+ };
31
+ };
3
32
  static initAttributes: {
4
33
  caption: string;
5
34
  key: string;
@@ -22,6 +51,7 @@ export declare class TosiField extends XinComponent {
22
51
  render(): void;
23
52
  }
24
53
  export declare class TosiForm extends XinComponent {
54
+ static preferredTagName: string;
25
55
  context: {
26
56
  [key: string]: any;
27
57
  };
@@ -29,7 +59,7 @@ export declare class TosiForm extends XinComponent {
29
59
  [key: string]: any;
30
60
  };
31
61
  get isValid(): boolean;
32
- static styleSpec: {
62
+ static shadowStyleSpec: {
33
63
  ':host': {
34
64
  display: string;
35
65
  flexDirection: string;
package/dist/icons.d.ts CHANGED
@@ -6,6 +6,25 @@ export declare const defineIcons: (newIcons: {
6
6
  export declare const svg2DataUrl: (svg: SVGElement, fill?: string, stroke?: string, strokeWidth?: number) => string;
7
7
  export declare const icons: SVGIconMap;
8
8
  export declare class SvgIcon extends WebComponent {
9
+ static preferredTagName: string;
10
+ static lightStyleSpec: {
11
+ ':host': {
12
+ '--tosi-icon-size': string;
13
+ '--tosi-icon-stroke-width': string;
14
+ '--tosi-icon-stroke-linejoin': string;
15
+ '--tosi-icon-stroke-linecap': string;
16
+ '--tosi-icon-fill': string;
17
+ display: string;
18
+ stroke: string;
19
+ strokeWidth: string;
20
+ strokeLinejoin: string;
21
+ strokeLinecap: string;
22
+ fill: string;
23
+ };
24
+ ':host, :host svg': {
25
+ height: string;
26
+ };
27
+ };
9
28
  static initAttributes: {
10
29
  icon: string;
11
30
  size: number;