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.
Files changed (93) hide show
  1. package/README.md +4 -2
  2. package/dist/iife.js +70 -60
  3. package/dist/iife.js.map +42 -42
  4. package/dist/index.js +15 -37
  5. package/dist/index.js.map +39 -39
  6. package/dist/version.d.ts +1 -1
  7. package/package.json +2 -2
  8. package/dist/ab-test.js +0 -116
  9. package/dist/babylon-3d.js +0 -292
  10. package/dist/bodymovin-player.js +0 -172
  11. package/dist/bp-loader.js +0 -26
  12. package/dist/carousel.js +0 -308
  13. package/dist/code-editor.js +0 -102
  14. package/dist/color-input.js +0 -112
  15. package/dist/data-table.js +0 -774
  16. package/dist/drag-and-drop.js +0 -386
  17. package/dist/editable-rect.js +0 -450
  18. package/dist/filter-builder.js +0 -468
  19. package/dist/float.js +0 -170
  20. package/dist/form.js +0 -466
  21. package/dist/gamepad.js +0 -115
  22. package/dist/icon-data.js +0 -308
  23. package/dist/icon-types.js +0 -1
  24. package/dist/icons.js +0 -374
  25. package/dist/index-iife.js +0 -4
  26. package/dist/live-example.js +0 -611
  27. package/dist/localize.js +0 -381
  28. package/dist/make-sorter.js +0 -119
  29. package/dist/make-sorter.test.d.ts +0 -1
  30. package/dist/make-sorter.test.js +0 -48
  31. package/dist/mapbox.js +0 -161
  32. package/dist/markdown-viewer.js +0 -173
  33. package/dist/match-shortcut.js +0 -13
  34. package/dist/match-shortcut.test.d.ts +0 -1
  35. package/dist/match-shortcut.test.js +0 -194
  36. package/dist/menu.js +0 -614
  37. package/dist/notifications.js +0 -308
  38. package/dist/password-strength.js +0 -302
  39. package/dist/playwright.config.d.ts +0 -9
  40. package/dist/playwright.config.js +0 -73
  41. package/dist/pop-float.js +0 -231
  42. package/dist/rating.js +0 -192
  43. package/dist/rich-text.js +0 -296
  44. package/dist/segmented.js +0 -298
  45. package/dist/select.js +0 -427
  46. package/dist/side-nav.js +0 -106
  47. package/dist/size-break.js +0 -118
  48. package/dist/sizer.js +0 -92
  49. package/dist/src/ab-test.d.ts +0 -14
  50. package/dist/src/babylon-3d.d.ts +0 -53
  51. package/dist/src/bodymovin-player.d.ts +0 -32
  52. package/dist/src/bp-loader.d.ts +0 -0
  53. package/dist/src/carousel.d.ts +0 -113
  54. package/dist/src/code-editor.d.ts +0 -27
  55. package/dist/src/color-input.d.ts +0 -41
  56. package/dist/src/data-table.d.ts +0 -79
  57. package/dist/src/drag-and-drop.d.ts +0 -2
  58. package/dist/src/editable-rect.d.ts +0 -97
  59. package/dist/src/filter-builder.d.ts +0 -64
  60. package/dist/src/float.d.ts +0 -18
  61. package/dist/src/form.d.ts +0 -68
  62. package/dist/src/gamepad.d.ts +0 -34
  63. package/dist/src/icon-data.d.ts +0 -309
  64. package/dist/src/icon-types.d.ts +0 -7
  65. package/dist/src/icons.d.ts +0 -17
  66. package/dist/src/index.d.ts +0 -37
  67. package/dist/src/live-example.d.ts +0 -51
  68. package/dist/src/localize.d.ts +0 -30
  69. package/dist/src/make-sorter.d.ts +0 -3
  70. package/dist/src/mapbox.d.ts +0 -24
  71. package/dist/src/markdown-viewer.d.ts +0 -15
  72. package/dist/src/match-shortcut.d.ts +0 -9
  73. package/dist/src/menu.d.ts +0 -60
  74. package/dist/src/notifications.d.ts +0 -106
  75. package/dist/src/password-strength.d.ts +0 -35
  76. package/dist/src/pop-float.d.ts +0 -10
  77. package/dist/src/rating.d.ts +0 -62
  78. package/dist/src/rich-text.d.ts +0 -28
  79. package/dist/src/segmented.d.ts +0 -80
  80. package/dist/src/select.d.ts +0 -43
  81. package/dist/src/side-nav.d.ts +0 -36
  82. package/dist/src/size-break.d.ts +0 -18
  83. package/dist/src/sizer.d.ts +0 -34
  84. package/dist/src/tab-selector.d.ts +0 -91
  85. package/dist/src/tag-list.d.ts +0 -37
  86. package/dist/src/track-drag.d.ts +0 -5
  87. package/dist/src/version.d.ts +0 -1
  88. package/dist/src/via-tag.d.ts +0 -2
  89. package/dist/tab-selector.js +0 -326
  90. package/dist/tag-list.js +0 -375
  91. package/dist/track-drag.js +0 -143
  92. package/dist/version.js +0 -1
  93. package/dist/via-tag.js +0 -102
@@ -1,68 +0,0 @@
1
- import { Component as XinComponent, ElementCreator } from 'xinjs';
2
- export declare class XinField extends XinComponent {
3
- caption: string;
4
- key: string;
5
- type: '' | 'checkbox' | 'number' | 'range' | 'date' | 'text' | 'color';
6
- optional: boolean;
7
- pattern: string;
8
- placeholder: string;
9
- min: string;
10
- max: string;
11
- step: string;
12
- fixedPrecision: number;
13
- value: any;
14
- content: any;
15
- constructor();
16
- private valueChanged;
17
- handleChange: () => void;
18
- initialize(form: XinForm): void;
19
- connectedCallback(): void;
20
- render(): void;
21
- }
22
- export declare class XinForm extends XinComponent {
23
- context: {
24
- [key: string]: any;
25
- };
26
- value: {
27
- [key: string]: any;
28
- };
29
- get isValid(): boolean;
30
- static styleSpec: {
31
- ':host': {
32
- display: string;
33
- flexDirection: string;
34
- };
35
- ':host::part(header), :host::part(footer)': {
36
- display: string;
37
- };
38
- ':host::part(content)': {
39
- display: string;
40
- flexDirection: string;
41
- overflow: string;
42
- height: string;
43
- width: string;
44
- position: string;
45
- boxSizing: string;
46
- };
47
- ':host form': {
48
- display: string;
49
- flex: string;
50
- position: string;
51
- overflow: string;
52
- };
53
- };
54
- content: any[];
55
- getField: (key: string) => XinField | null;
56
- get fields(): any;
57
- set fields(values: {
58
- [key: string]: any;
59
- });
60
- submit: () => void;
61
- handleSubmit: (event: SubmitEvent) => void;
62
- submitCallback: (value: {
63
- [key: string]: any;
64
- }, isValid: boolean) => void;
65
- connectedCallback(): void;
66
- }
67
- export declare const xinField: ElementCreator<XinField>;
68
- export declare const xinForm: ElementCreator<XinForm>;
@@ -1,34 +0,0 @@
1
- export interface XinButton {
2
- index: number;
3
- pressed: boolean;
4
- value: number;
5
- }
6
- export interface XinGamepad {
7
- id: string;
8
- axes: number[];
9
- buttons: {
10
- [key: number]: number;
11
- };
12
- }
13
- export declare function gamepadState(): {
14
- id: string;
15
- axes: readonly number[];
16
- buttons: {
17
- [key: number]: number;
18
- };
19
- }[];
20
- export declare function gamepadText(): string;
21
- export interface XinXRControllerComponentState {
22
- pressed: boolean;
23
- axes?: number[];
24
- }
25
- export interface XinXRControllerState {
26
- [key: string]: XinXRControllerComponentState;
27
- }
28
- export interface XinXRControllerMap {
29
- [key: string]: XinXRControllerState;
30
- }
31
- export declare function xrControllers(xrHelper: any): {
32
- [key: string]: XinXRControllerState;
33
- };
34
- export declare function xrControllersText(controllers?: XinXRControllerMap): string;
@@ -1,309 +0,0 @@
1
- declare const _default: {
2
- earth: string;
3
- blueprint: string;
4
- tosiXr: string;
5
- cmy: string;
6
- rgb: string;
7
- xrColor: string;
8
- tosiUi: string;
9
- tosiFavicon: string;
10
- tosiPlatform: string;
11
- tosi: string;
12
- sortDescending: string;
13
- columns: string;
14
- underline: string;
15
- grid: string;
16
- triangle: string;
17
- search: string;
18
- volume2: string;
19
- arrowUpCircle: string;
20
- pauseCircle: string;
21
- checkSquare: string;
22
- arrowDown: string;
23
- figma: string;
24
- cornerRightUp: string;
25
- chevronsRight: string;
26
- list: string;
27
- chevronsDown: string;
28
- wind: string;
29
- cornerUpRight: string;
30
- target: string;
31
- scissors: string;
32
- minimize2: string;
33
- playCircle: string;
34
- crosshair: string;
35
- airplay: string;
36
- xOctagon: string;
37
- repeat: string;
38
- edit3: string;
39
- volume1: string;
40
- sunrise: string;
41
- toggleRight: string;
42
- umbrella: string;
43
- user: string;
44
- fileMinus: string;
45
- xCircle: string;
46
- circle: string;
47
- phoneMissed: string;
48
- edit2: string;
49
- cornerLeftUp: string;
50
- home: string;
51
- gitlab: string;
52
- music: string;
53
- smartphone: string;
54
- moreHorizontal: string;
55
- sliders: string;
56
- arrowUpLeft: string;
57
- chevronDown: string;
58
- hexagon: string;
59
- github: string;
60
- crop: string;
61
- tag: string;
62
- briefcase: string;
63
- rotateCw: string;
64
- map: string;
65
- inbox: string;
66
- alignJustify: string;
67
- plusSquare: string;
68
- power: string;
69
- database: string;
70
- cameraOff: string;
71
- toggleLeft: string;
72
- file: string;
73
- messageCircle: string;
74
- voicemail: string;
75
- terminal: string;
76
- move: string;
77
- maximize: string;
78
- chevronUp: string;
79
- arrowDownLeft: string;
80
- fileText: string;
81
- droplet: string;
82
- zapOff: string;
83
- x: string;
84
- barChart: string;
85
- lock: string;
86
- logIn: string;
87
- shoppingBag: string;
88
- divide: string;
89
- cloudDrizzle: string;
90
- refreshCw: string;
91
- chevronRight: string;
92
- clipboard: string;
93
- package: string;
94
- instagram: string;
95
- link: string;
96
- videoOff: string;
97
- key: string;
98
- meh: string;
99
- cornerDownRight: string;
100
- arrowRight: string;
101
- aperture: string;
102
- stopCircle: string;
103
- logOut: string;
104
- arrowLeftCircle: string;
105
- barChart2: string;
106
- gitPullRequest: string;
107
- minimize: string;
108
- minusSquare: string;
109
- settings: string;
110
- cloudSnow: string;
111
- thumbsDown: string;
112
- type: string;
113
- archive: string;
114
- phoneOutgoing: string;
115
- pocket: string;
116
- mail: string;
117
- shield: string;
118
- download: string;
119
- phoneForwarded: string;
120
- cornerRightDown: string;
121
- bookOpen: string;
122
- divideSquare: string;
123
- server: string;
124
- tv: string;
125
- skipForward: string;
126
- volume: string;
127
- userPlus: string;
128
- batteryCharging: string;
129
- layers: string;
130
- slash: string;
131
- radio: string;
132
- book: string;
133
- userMinus: string;
134
- bell: string;
135
- gitBranch: string;
136
- coffee: string;
137
- code: string;
138
- thermometer: string;
139
- cast: string;
140
- flag: string;
141
- eyeOff: string;
142
- battery: string;
143
- disc: string;
144
- frown: string;
145
- tool: string;
146
- cpu: string;
147
- bold: string;
148
- hash: string;
149
- share2: string;
150
- plus: string;
151
- check: string;
152
- rotateCcw: string;
153
- hardDrive: string;
154
- bluetooth: string;
155
- pieChart: string;
156
- headphones: string;
157
- rss: string;
158
- wifi: string;
159
- cornerUpLeft: string;
160
- watch: string;
161
- info: string;
162
- userX: string;
163
- loader: string;
164
- refreshCcw: string;
165
- folderPlus: string;
166
- gitMerge: string;
167
- mic: string;
168
- copy: string;
169
- zoomIn: string;
170
- arrowRightCircle: string;
171
- alignRight: string;
172
- image: string;
173
- maximize2: string;
174
- checkCircle: string;
175
- sunset: string;
176
- save: string;
177
- smile: string;
178
- navigation: string;
179
- cloudLightning: string;
180
- paperclip: string;
181
- fastForward: string;
182
- xSquare: string;
183
- award: string;
184
- zoomOut: string;
185
- box: string;
186
- thumbsUp: string;
187
- percent: string;
188
- sidebar: string;
189
- square: string;
190
- play: string;
191
- gitCommit: string;
192
- table: string;
193
- send: string;
194
- phoneCall: string;
195
- speaker: string;
196
- facebook: string;
197
- codesandbox: string;
198
- camera: string;
199
- link2: string;
200
- printer: string;
201
- folderMinus: string;
202
- arrowUpRight: string;
203
- truck: string;
204
- lifeBuoy: string;
205
- penTool: string;
206
- atSign: string;
207
- feather: string;
208
- trash: string;
209
- wifiOff: string;
210
- cornerLeftDown: string;
211
- dollarSign: string;
212
- star: string;
213
- cloudOff: string;
214
- sun: string;
215
- messageSquare: string;
216
- edit: string;
217
- anchor: string;
218
- alertCircle: string;
219
- chevronsUp: string;
220
- uploadCloud: string;
221
- twitch: string;
222
- youtube: string;
223
- unlock: string;
224
- compass: string;
225
- plusCircle: string;
226
- creditCard: string;
227
- cloudRain: string;
228
- trash2: string;
229
- skipBack: string;
230
- filePlus: string;
231
- delete: string;
232
- command: string;
233
- clock: string;
234
- octagon: string;
235
- phone: string;
236
- eye: string;
237
- phoneOff: string;
238
- codepen: string;
239
- dribbble: string;
240
- gift: string;
241
- externalLink: string;
242
- zap: string;
243
- trello: string;
244
- moreVertical: string;
245
- micOff: string;
246
- share: string;
247
- arrowUp: string;
248
- bellOff: string;
249
- linkedin: string;
250
- video: string;
251
- divideCircle: string;
252
- activity: string;
253
- twitter: string;
254
- mapPin: string;
255
- filter: string;
256
- phoneIncoming: string;
257
- italic: string;
258
- chevronsLeft: string;
259
- calendar: string;
260
- globe: string;
261
- arrowLeft: string;
262
- alignCenter: string;
263
- minusCircle: string;
264
- arrowDownRight: string;
265
- framer: string;
266
- volumeX: string;
267
- slack: string;
268
- cloud: string;
269
- downloadCloud: string;
270
- shuffle: string;
271
- rewind: string;
272
- upload: string;
273
- trendingDown: string;
274
- pause: string;
275
- arrowDownCircle: string;
276
- bookmark: string;
277
- alertTriangle: string;
278
- userCheck: string;
279
- tablet: string;
280
- alertOctagon: string;
281
- menu: string;
282
- chrome: string;
283
- shoppingCart: string;
284
- folder: string;
285
- users: string;
286
- cornerDownLeft: string;
287
- monitor: string;
288
- minus: string;
289
- helpCircle: string;
290
- navigation2: string;
291
- chevronLeft: string;
292
- film: string;
293
- moon: string;
294
- shieldOff: string;
295
- layout: string;
296
- mousePointer: string;
297
- alignLeft: string;
298
- heart: string;
299
- trendingUp: string;
300
- resize: string;
301
- bug: string;
302
- blog: string;
303
- sortAscending: string;
304
- npm: string;
305
- game: string;
306
- google: string;
307
- discord: string;
308
- };
309
- export default _default;
@@ -1,7 +0,0 @@
1
- import { ElementCreator } from 'xinjs';
2
- export type IconData = {
3
- [key: string]: string;
4
- };
5
- export type SVGIconMap = {
6
- [key: string]: ElementCreator<SVGElement>;
7
- };
@@ -1,17 +0,0 @@
1
- import { Component as WebComponent } from 'xinjs';
2
- import { SVGIconMap } from './icon-types';
3
- export declare const defineIcons: (newIcons: {
4
- [key: string]: string;
5
- }) => void;
6
- export declare const svg2DataUrl: (svg: SVGElement, fill?: string | false, stroke?: string | false, strokeWidth?: number | string) => string;
7
- export declare const icons: SVGIconMap;
8
- export declare class SvgIcon extends WebComponent {
9
- icon: string;
10
- size: number;
11
- fill: string;
12
- stroke: string;
13
- strokeWidth: number;
14
- constructor();
15
- render(): void;
16
- }
17
- export declare const svgIcon: any;
@@ -1,37 +0,0 @@
1
- export * from './ab-test';
2
- export * from './babylon-3d';
3
- export * from './bp-loader';
4
- export * from './bodymovin-player';
5
- export * from './carousel';
6
- export * from './code-editor';
7
- export * from './color-input';
8
- export * from './data-table';
9
- export * as dragAndDrop from './drag-and-drop';
10
- export * from './editable-rect';
11
- export * from './filter-builder';
12
- export * from './float';
13
- export * from './form';
14
- export * from './gamepad';
15
- export * from './icons';
16
- export * from './live-example';
17
- export * from './localize';
18
- export { makeSorter } from './make-sorter';
19
- export * from './mapbox';
20
- export * from './markdown-viewer';
21
- export * from './menu';
22
- export * from './notifications';
23
- export * from './password-strength';
24
- export * from './pop-float';
25
- export * from './rating';
26
- export * from './rich-text';
27
- export * from './segmented';
28
- export * from './select';
29
- export * from './side-nav';
30
- export * from './size-break';
31
- export * from './sizer';
32
- export * from './tab-selector';
33
- export * from './tag-list';
34
- export { trackDrag, bringToFront, findHighestZ } from './track-drag';
35
- export { version } from './version';
36
- export { scriptTag, styleSheet } from './via-tag';
37
- export * as xinjs from 'xinjs';
@@ -1,51 +0,0 @@
1
- import { Component, ElementCreator } from 'xinjs';
2
- interface ExampleContext {
3
- [key: string]: any;
4
- }
5
- export declare class LiveExample extends Component {
6
- persistToDom: boolean;
7
- prettier: boolean;
8
- prefix: string;
9
- storageKey: string;
10
- context: ExampleContext;
11
- uuid: string;
12
- remoteId: string;
13
- lastUpdate: number;
14
- interval?: any;
15
- static insertExamples(element: HTMLElement, context?: ExampleContext): void;
16
- constructor();
17
- get activeTab(): Element | undefined;
18
- private getEditorValue;
19
- private setEditorValue;
20
- get css(): string;
21
- set css(code: string);
22
- get html(): string;
23
- set html(code: string);
24
- get js(): string;
25
- set js(code: string);
26
- updateUndo: () => void;
27
- undo: () => void;
28
- redo: () => void;
29
- get isMaximized(): boolean;
30
- flipLayout: () => void;
31
- exampleMenu: () => void;
32
- content: () => any[];
33
- connectedCallback(): void;
34
- disconnectedCallback(): void;
35
- copy: () => void;
36
- toggleMaximize: () => void;
37
- get remoteKey(): string;
38
- remoteChange: (event?: StorageEvent) => void;
39
- showCode: () => void;
40
- closeCode: () => void;
41
- openEditorWindow: () => void;
42
- refreshRemote: () => void;
43
- updateSources: () => void;
44
- refresh: () => void;
45
- initFromElements(elements: HTMLElement[]): void;
46
- showDefaultTab(): void;
47
- render(): void;
48
- }
49
- export declare const liveExample: ElementCreator<LiveExample>;
50
- export declare function makeExamplesLive(element: HTMLElement): void;
51
- export {};
@@ -1,30 +0,0 @@
1
- import { Component } from 'xinjs';
2
- export declare const i18n: any;
3
- export declare const setLocale: (language: string) => void;
4
- export declare const updateLocalized: () => void;
5
- export declare function initLocalization(localizedStrings: string): void;
6
- export declare function localize(ref: string): string;
7
- export declare class LocalePicker extends Component {
8
- hideCaption: boolean;
9
- content: () => any;
10
- constructor();
11
- render(): void;
12
- }
13
- export declare const localePicker: any;
14
- interface AbstractLocalized {
15
- localeChanged: () => {};
16
- connectedCallback: () => {};
17
- disconnectedCallback: () => {};
18
- }
19
- export declare class XinLocalized extends Component {
20
- static allInstances: Set<AbstractLocalized>;
21
- contents: () => any;
22
- refString: string;
23
- constructor();
24
- connectedCallback(): void;
25
- disconnectedCallback(): void;
26
- localeChanged(): void;
27
- render(): void;
28
- }
29
- export declare const xinLocalized: any;
30
- export {};
@@ -1,3 +0,0 @@
1
- export type SortValuator<T = object> = (f: T) => (string | number)[];
2
- export type SortCallback<T = object> = (p: T, q: T) => number;
3
- export declare function makeSorter<T>(sortValuator: SortValuator<T>, ascending?: boolean | boolean[]): SortCallback<T>;
@@ -1,24 +0,0 @@
1
- import { Component as WebComponent, ElementCreator } from 'xinjs';
2
- export declare class MapBox extends WebComponent {
3
- coords: string;
4
- content: any;
5
- get map(): any;
6
- mapStyle: string;
7
- token: string;
8
- static mapboxCSSAvailable: Promise<void>;
9
- static mapboxAvailable?: Promise<any>;
10
- private _map;
11
- static styleSpec: {
12
- ':host': {
13
- display: string;
14
- position: string;
15
- width: string;
16
- height: string;
17
- textAlign: string;
18
- };
19
- };
20
- constructor();
21
- connectedCallback(): void;
22
- render(): void;
23
- }
24
- export declare const mapBox: ElementCreator<MapBox>;
@@ -1,15 +0,0 @@
1
- import { Component, ElementCreator } from 'xinjs';
2
- export declare class MarkdownViewer extends Component {
3
- src: string;
4
- value: string;
5
- content: any;
6
- elements: boolean;
7
- context: {
8
- [key: string]: any;
9
- };
10
- constructor();
11
- connectedCallback(): void;
12
- didRender: (() => void) | (() => Promise<void>);
13
- render(): void;
14
- }
15
- export declare const markdownViewer: ElementCreator<MarkdownViewer>;
@@ -1,9 +0,0 @@
1
- interface KeyboardEventLike {
2
- key: string;
3
- ctrlKey: boolean;
4
- metaKey: boolean;
5
- altKey: boolean;
6
- shiftKey: boolean;
7
- }
8
- export declare const matchShortcut: (keystroke: KeyboardEventLike, shortcut: string) => boolean;
9
- export {};
@@ -1,60 +0,0 @@
1
- import { Component, PartsMap } from 'xinjs';
2
- import { FloatPosition } from './pop-float';
3
- import { SvgIcon } from './icons';
4
- export type ActionCallback = () => void | Promise<void>;
5
- export interface MenuAction {
6
- caption: string;
7
- shortcut?: string;
8
- checked?: () => boolean;
9
- enabled?: () => boolean;
10
- action: ActionCallback | string;
11
- icon?: string | Element;
12
- }
13
- export interface SubMenu {
14
- caption: string;
15
- checked?: () => boolean;
16
- enabled?: () => boolean;
17
- menuItems: MenuItem[];
18
- icon?: string | Element;
19
- }
20
- export type MenuSeparator = null;
21
- export type MenuItem = MenuAction | SubMenu | MenuSeparator;
22
- export declare const createMenuAction: (item: MenuAction, options: PopMenuOptions) => HTMLElement;
23
- export declare const createSubMenu: (item: SubMenu, options: PopMenuOptions) => HTMLElement;
24
- export declare const createMenuItem: (item: MenuItem, options: PopMenuOptions) => HTMLElement;
25
- export declare const menu: (options: PopMenuOptions) => HTMLDivElement;
26
- interface PoppedMenu {
27
- target: HTMLElement;
28
- menu: HTMLElement;
29
- }
30
- export declare const removeLastMenu: (depth?: number) => PoppedMenu | undefined;
31
- export interface PopMenuOptions {
32
- target: HTMLElement;
33
- menuItems: MenuItem[];
34
- width?: string | number;
35
- position?: FloatPosition;
36
- submenuDepth?: number;
37
- submenuOffset?: {
38
- x: number;
39
- y: number;
40
- };
41
- localized?: boolean;
42
- }
43
- export declare const popMenu: (options: PopMenuOptions) => void;
44
- interface XinMenuParts extends PartsMap {
45
- trigger: HTMLButtonElement;
46
- icon: SvgIcon;
47
- }
48
- export declare class XinMenu extends Component<XinMenuParts> {
49
- menuItems: MenuItem[];
50
- menuWidth: string;
51
- localized: boolean;
52
- showMenu: (event: Event) => void;
53
- content: () => any;
54
- handleShortcut: (event: KeyboardEvent) => Promise<void>;
55
- constructor();
56
- connectedCallback(): void;
57
- disconnectedCallback(): void;
58
- }
59
- export declare const xinMenu: any;
60
- export {};