@openremote/or-timeline 1.11.0-snapshot.20251103144513 → 1.11.0
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/custom-elements-jsx.d.ts +179 -0
- package/custom-elements.json +11 -3
- package/package.json +5 -2
|
@@ -0,0 +1,179 @@
|
|
|
1
|
+
|
|
2
|
+
import type { OrTimeline } from "./lib/index.d.ts";
|
|
3
|
+
|
|
4
|
+
/**
|
|
5
|
+
* This type can be used to create scoped tags for your components.
|
|
6
|
+
*
|
|
7
|
+
* Usage:
|
|
8
|
+
*
|
|
9
|
+
* ```ts
|
|
10
|
+
* import type { ScopedElements } from "path/to/library/jsx-integration";
|
|
11
|
+
*
|
|
12
|
+
* declare module "my-library" {
|
|
13
|
+
* namespace JSX {
|
|
14
|
+
* interface IntrinsicElements
|
|
15
|
+
* extends ScopedElements<'test-', ''> {}
|
|
16
|
+
* }
|
|
17
|
+
* }
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* @deprecated Runtime scoped elements result in duplicate types and can confusing for developers. It is recommended to use the `prefix` and `suffix` options to generate new types instead.
|
|
21
|
+
*/
|
|
22
|
+
export type ScopedElements<
|
|
23
|
+
Prefix extends string = "",
|
|
24
|
+
Suffix extends string = ""
|
|
25
|
+
> = {
|
|
26
|
+
[Key in keyof CustomElements as `${Prefix}${Key}${Suffix}`]: CustomElements[Key];
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
type BaseProps<T extends HTMLElement> = {
|
|
30
|
+
|
|
31
|
+
/** Content added between the opening and closing tags of the element */
|
|
32
|
+
children?: any;
|
|
33
|
+
/** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
|
|
34
|
+
class?: string;
|
|
35
|
+
/** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
|
|
36
|
+
className?: string;
|
|
37
|
+
/** Takes an object where the key is the class name(s) and the value is a boolean expression. When true, the class is applied, and when false, it is removed. */
|
|
38
|
+
classList?: Record<string, boolean | undefined>;
|
|
39
|
+
/** Specifies the text direction of the element. */
|
|
40
|
+
dir?: "ltr" | "rtl";
|
|
41
|
+
/** Contains a space-separated list of the part names of the element that should be exposed on the host element. */
|
|
42
|
+
exportparts?: string;
|
|
43
|
+
/** For <label> and <output>, lets you associate the label with some control. */
|
|
44
|
+
htmlFor?: string;
|
|
45
|
+
/** Specifies whether the element should be hidden. */
|
|
46
|
+
hidden?: boolean | string;
|
|
47
|
+
/** A unique identifier for the element. */
|
|
48
|
+
id?: string;
|
|
49
|
+
/** Keys tell React which array item each component corresponds to */
|
|
50
|
+
key?: string | number;
|
|
51
|
+
/** Specifies the language of the element. */
|
|
52
|
+
lang?: string;
|
|
53
|
+
/** Contains a space-separated list of the part names of the element. Part names allows CSS to select and style specific elements in a shadow tree via the ::part pseudo-element. */
|
|
54
|
+
part?: string;
|
|
55
|
+
/** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
|
|
56
|
+
ref?: T | ((e: T) => void);
|
|
57
|
+
/** Adds a reference for a custom element slot */
|
|
58
|
+
slot?: string;
|
|
59
|
+
/** Prop for setting inline styles */
|
|
60
|
+
style?: Record<string, string | number>;
|
|
61
|
+
/** Overrides the default Tab button behavior. Avoid using values other than -1 and 0. */
|
|
62
|
+
tabIndex?: number;
|
|
63
|
+
/** Specifies the tooltip text for the element. */
|
|
64
|
+
title?: string;
|
|
65
|
+
/** Passing 'no' excludes the element content from being translated. */
|
|
66
|
+
translate?: "yes" | "no";
|
|
67
|
+
/** The popover global attribute is used to designate an element as a popover element. */
|
|
68
|
+
popover?: "auto" | "hint" | "manual";
|
|
69
|
+
/** Turns an element element into a popover control button; takes the ID of the popover element to control as its value. */
|
|
70
|
+
popovertarget?: "top" | "bottom" | "left" | "right" | "auto";
|
|
71
|
+
/** Specifies the action to be performed on a popover element being controlled by a control element. */
|
|
72
|
+
popovertargetaction?: "show" | "hide" | "toggle";
|
|
73
|
+
|
|
74
|
+
} ;
|
|
75
|
+
|
|
76
|
+
type BaseEvents = {
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
export type OrTimelineProps = {
|
|
84
|
+
/** */
|
|
85
|
+
"current"?: OrTimeline['current'];
|
|
86
|
+
/** */
|
|
87
|
+
"onChange"?: OrTimeline['onChange'];
|
|
88
|
+
/** */
|
|
89
|
+
"value"?: OrTimeline['value'];
|
|
90
|
+
/** */
|
|
91
|
+
"maxRange"?: OrTimeline['maxRange'];
|
|
92
|
+
/** */
|
|
93
|
+
"minRange"?: OrTimeline['minRange'];
|
|
94
|
+
/** */
|
|
95
|
+
"step"?: OrTimeline['step'];
|
|
96
|
+
|
|
97
|
+
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export type CustomElements = {
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
*
|
|
105
|
+
*
|
|
106
|
+
* ## Attributes & Properties
|
|
107
|
+
*
|
|
108
|
+
* Component attributes and properties that can be applied to the element or by using JavaScript.
|
|
109
|
+
*
|
|
110
|
+
* - `current`: undefined
|
|
111
|
+
* - `onChange`: undefined
|
|
112
|
+
* - `value`: undefined
|
|
113
|
+
* - `maxRange`: undefined
|
|
114
|
+
* - `minRange`: undefined
|
|
115
|
+
* - `step`: undefined
|
|
116
|
+
*
|
|
117
|
+
* ## Methods
|
|
118
|
+
*
|
|
119
|
+
* Methods that can be called to access component functionality.
|
|
120
|
+
*
|
|
121
|
+
* - `moveBubble(e: any = null, value: string|null = null) => void`: undefined
|
|
122
|
+
* - `valueChange(e: any) => void`: undefined
|
|
123
|
+
*/
|
|
124
|
+
"or-timeline": Partial<OrTimelineProps & BaseProps<OrTimeline> & BaseEvents>;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export type CustomCssProperties = {
|
|
128
|
+
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
declare module 'react' {
|
|
133
|
+
namespace JSX {
|
|
134
|
+
interface IntrinsicElements extends CustomElements {}
|
|
135
|
+
}
|
|
136
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
declare module 'preact' {
|
|
140
|
+
namespace JSX {
|
|
141
|
+
interface IntrinsicElements extends CustomElements {}
|
|
142
|
+
}
|
|
143
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
declare module '@builder.io/qwik' {
|
|
147
|
+
namespace JSX {
|
|
148
|
+
interface IntrinsicElements extends CustomElements {}
|
|
149
|
+
}
|
|
150
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
declare module '@stencil/core' {
|
|
154
|
+
namespace JSX {
|
|
155
|
+
interface IntrinsicElements extends CustomElements {}
|
|
156
|
+
}
|
|
157
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
declare module 'hono/jsx' {
|
|
161
|
+
namespace JSX {
|
|
162
|
+
interface IntrinsicElements extends CustomElements {}
|
|
163
|
+
}
|
|
164
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
declare module 'react-native' {
|
|
168
|
+
namespace JSX {
|
|
169
|
+
interface IntrinsicElements extends CustomElements {}
|
|
170
|
+
}
|
|
171
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
declare global {
|
|
175
|
+
namespace JSX {
|
|
176
|
+
interface IntrinsicElements extends CustomElements {}
|
|
177
|
+
}
|
|
178
|
+
export interface CSSProperties extends CustomCssProperties {}
|
|
179
|
+
}
|
package/custom-elements.json
CHANGED
|
@@ -89,7 +89,10 @@
|
|
|
89
89
|
"text": "string|null"
|
|
90
90
|
}
|
|
91
91
|
}
|
|
92
|
-
]
|
|
92
|
+
],
|
|
93
|
+
"type": {
|
|
94
|
+
"text": "moveBubble(e: any = null, value: string|null = null) => void"
|
|
95
|
+
}
|
|
93
96
|
},
|
|
94
97
|
{
|
|
95
98
|
"kind": "method",
|
|
@@ -102,7 +105,10 @@
|
|
|
102
105
|
"text": "any"
|
|
103
106
|
}
|
|
104
107
|
}
|
|
105
|
-
]
|
|
108
|
+
],
|
|
109
|
+
"type": {
|
|
110
|
+
"text": "valueChange(e: any) => void"
|
|
111
|
+
}
|
|
106
112
|
}
|
|
107
113
|
],
|
|
108
114
|
"attributes": [
|
|
@@ -159,7 +165,9 @@
|
|
|
159
165
|
"package": "lit"
|
|
160
166
|
},
|
|
161
167
|
"tagName": "or-timeline",
|
|
162
|
-
"customElement": true
|
|
168
|
+
"customElement": true,
|
|
169
|
+
"modulePath": "src/index.ts",
|
|
170
|
+
"definitionPath": "src/index.ts"
|
|
163
171
|
}
|
|
164
172
|
],
|
|
165
173
|
"exports": [
|
package/package.json
CHANGED
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openremote/or-timeline",
|
|
3
|
-
"version": "1.11.0
|
|
3
|
+
"version": "1.11.0",
|
|
4
4
|
"description": "OpenRemote Timeline",
|
|
5
5
|
"customElements": "custom-elements.json",
|
|
6
6
|
"main": "dist/umd/index.bundle.js",
|
|
7
7
|
"module": "lib/index.js",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": "./lib/index.js",
|
|
10
|
-
"./*": "./lib/*.js"
|
|
10
|
+
"./*": "./lib/*.js",
|
|
11
|
+
"./jsx": {
|
|
12
|
+
"types": "./custom-elements-jsx.d.ts"
|
|
13
|
+
}
|
|
11
14
|
},
|
|
12
15
|
"types": "lib/index.d.ts",
|
|
13
16
|
"scripts": {
|