@openremote/or-attribute-history 1.24.0 → 1.24.1

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.
@@ -1,5 +1,7 @@
1
-
2
- import type { OrAttributeHistoryEvent, OrAttributeHistory } from "./lib/index.d.ts";
1
+ import type {
2
+ OrAttributeHistoryEvent,
3
+ OrAttributeHistory,
4
+ } from "./lib/index.d.ts";
3
5
 
4
6
  /**
5
7
  * This type can be used to create scoped tags for your components.
@@ -27,7 +29,6 @@ export type ScopedElements<
27
29
  };
28
30
 
29
31
  type BaseProps<T extends HTMLElement> = {
30
-
31
32
  /** Content added between the opening and closing tags of the element */
32
33
  children?: any;
33
34
  /** Used for declaratively styling one or more elements using CSS (Cascading Stylesheets) */
@@ -50,6 +51,8 @@ type BaseProps<T extends HTMLElement> = {
50
51
  key?: string | number;
51
52
  /** Specifies the language of the element. */
52
53
  lang?: string;
54
+ /** Defines the element's semantic role for accessibility APIs. */
55
+ role?: string;
53
56
  /** 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
57
  part?: string;
55
58
  /** Use the ref attribute with a variable to assign a DOM element to the variable once the element is rendered. */
@@ -70,121 +73,188 @@ type BaseProps<T extends HTMLElement> = {
70
73
  popovertarget?: "top" | "bottom" | "left" | "right" | "auto";
71
74
  /** Specifies the action to be performed on a popover element being controlled by a control element. */
72
75
  popovertargetaction?: "show" | "hide" | "toggle";
73
-
74
- } ;
75
-
76
- type BaseEvents = {
77
-
78
-
79
76
  };
80
77
 
81
-
78
+ type BaseEvents = {};
82
79
 
83
80
  export type OrAttributeHistoryProps = {
84
81
  /** */
85
- "assetType"?: OrAttributeHistory['assetType'];
82
+ assetType?: OrAttributeHistory["assetType"];
86
83
  /** */
87
- "assetId"?: OrAttributeHistory['assetId'];
84
+ assetId?: OrAttributeHistory["assetId"];
88
85
  /** */
89
- "attribute"?: OrAttributeHistory['attribute'];
86
+ attribute?: OrAttributeHistory["attribute"];
90
87
  /** */
91
- "attributeRef"?: OrAttributeHistory['attributeRef'];
88
+ attributeRef?: OrAttributeHistory["attributeRef"];
92
89
  /** */
93
- "period"?: OrAttributeHistory['period'];
90
+ period?: OrAttributeHistory["period"];
94
91
  /** */
95
- "toTimestamp"?: OrAttributeHistory['toTimestamp'];
92
+ toTimestamp?: OrAttributeHistory["toTimestamp"];
96
93
  /** */
97
- "config"?: OrAttributeHistory['config'];
94
+ config?: OrAttributeHistory["config"];
98
95
  /** */
99
- "_loading"?: OrAttributeHistory['_loading'];
96
+ _loading?: OrAttributeHistory["_loading"];
100
97
  /** */
101
- "_data"?: OrAttributeHistory['_data'];
98
+ _data?: OrAttributeHistory["_data"];
102
99
  /** */
103
- "_tableTemplate"?: OrAttributeHistory['_tableTemplate'];
100
+ _tableTemplate?: OrAttributeHistory["_tableTemplate"];
104
101
 
105
102
  /** */
106
- "onrendered"?: (e: CustomEvent<OrAttributeHistoryEvent>) => void;
107
- }
103
+ onrendered?: (e: OrAttributeHistoryEvent) => void;
104
+ };
105
+
106
+ export type OrAttributeHistorySolidJsProps = {
107
+ /** */
108
+ "prop:assetType"?: OrAttributeHistory["assetType"];
109
+ /** */
110
+ "prop:assetId"?: OrAttributeHistory["assetId"];
111
+ /** */
112
+ "prop:attribute"?: OrAttributeHistory["attribute"];
113
+ /** */
114
+ "prop:attributeRef"?: OrAttributeHistory["attributeRef"];
115
+ /** */
116
+ "prop:period"?: OrAttributeHistory["period"];
117
+ /** */
118
+ "prop:toTimestamp"?: OrAttributeHistory["toTimestamp"];
119
+ /** */
120
+ "prop:config"?: OrAttributeHistory["config"];
121
+ /** */
122
+ "prop:_loading"?: OrAttributeHistory["_loading"];
123
+ /** */
124
+ "prop:_data"?: OrAttributeHistory["_data"];
125
+ /** */
126
+ "prop:_tableTemplate"?: OrAttributeHistory["_tableTemplate"];
127
+ /** */
128
+ "on:rendered"?: (e: OrAttributeHistoryEvent) => void;
108
129
 
109
- export type CustomElements = {
130
+ /** Set the innerHTML of the element */
131
+ innerHTML?: string;
132
+ /** Set the textContent of the element */
133
+ textContent?: string | number;
134
+ };
110
135
 
136
+ export type CustomElements = {
137
+ /**
138
+ *
139
+ *
140
+ * ## Attributes & Properties
141
+ *
142
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
143
+ *
144
+ * - `assetType`: undefined
145
+ * - `assetId`: undefined
146
+ * - `attribute`: undefined
147
+ * - `attributeRef`: undefined
148
+ * - `period`: undefined
149
+ * - `toTimestamp`: undefined
150
+ * - `config`: undefined
151
+ * - `_loading`: undefined
152
+ * - `_data`: undefined
153
+ * - `_tableTemplate`: undefined
154
+ *
155
+ * ## Events
156
+ *
157
+ * Events that will be emitted by the component.
158
+ *
159
+ * - `rendered`: undefined
160
+ *
161
+ * ## Methods
162
+ *
163
+ * Methods that can be called to access component functionality.
164
+ *
165
+ * - `onCompleted() => void`: undefined
166
+ */
167
+ "or-attribute-history": Partial<
168
+ OrAttributeHistoryProps & BaseProps<OrAttributeHistory> & BaseEvents
169
+ >;
170
+ };
111
171
 
172
+ export type CustomElementsSolidJs = {
112
173
  /**
113
- *
114
- *
115
- * ## Attributes & Properties
116
- *
117
- * Component attributes and properties that can be applied to the element or by using JavaScript.
118
- *
119
- * - `assetType`: undefined
120
- * - `assetId`: undefined
121
- * - `attribute`: undefined
122
- * - `attributeRef`: undefined
123
- * - `period`: undefined
124
- * - `toTimestamp`: undefined
125
- * - `config`: undefined
126
- * - `_loading`: undefined
127
- * - `_data`: undefined
128
- * - `_tableTemplate`: undefined
129
- *
130
- * ## Events
131
- *
132
- * Events that will be emitted by the component.
133
- *
134
- * - `rendered`: undefined
135
- *
136
- * ## Methods
137
- *
138
- * Methods that can be called to access component functionality.
139
- *
140
- * - `onCompleted() => void`: undefined
141
- */
142
- "or-attribute-history": Partial<OrAttributeHistoryProps & BaseProps<OrAttributeHistory> & BaseEvents>;
143
- }
174
+ *
175
+ *
176
+ * ## Attributes & Properties
177
+ *
178
+ * Component attributes and properties that can be applied to the element or by using JavaScript.
179
+ *
180
+ * - `assetType`: undefined
181
+ * - `assetId`: undefined
182
+ * - `attribute`: undefined
183
+ * - `attributeRef`: undefined
184
+ * - `period`: undefined
185
+ * - `toTimestamp`: undefined
186
+ * - `config`: undefined
187
+ * - `_loading`: undefined
188
+ * - `_data`: undefined
189
+ * - `_tableTemplate`: undefined
190
+ *
191
+ * ## Events
192
+ *
193
+ * Events that will be emitted by the component.
194
+ *
195
+ * - `rendered`: undefined
196
+ *
197
+ * ## Methods
198
+ *
199
+ * Methods that can be called to access component functionality.
200
+ *
201
+ * - `onCompleted() => void`: undefined
202
+ */
203
+ "or-attribute-history": Partial<
204
+ OrAttributeHistoryProps &
205
+ OrAttributeHistorySolidJsProps &
206
+ BaseProps<OrAttributeHistory> &
207
+ BaseEvents
208
+ >;
209
+ };
144
210
 
145
- export type CustomCssProperties = {
211
+ export type CustomCssProperties = {};
146
212
 
213
+ declare module "react" {
214
+ namespace JSX {
215
+ interface IntrinsicElements extends CustomElements {}
216
+ }
217
+ export interface CSSProperties extends CustomCssProperties {}
147
218
  }
148
219
 
149
-
150
- declare module 'react' {
220
+ declare module "preact" {
151
221
  namespace JSX {
152
222
  interface IntrinsicElements extends CustomElements {}
153
223
  }
154
224
  export interface CSSProperties extends CustomCssProperties {}
155
225
  }
156
226
 
157
- declare module 'preact' {
227
+ declare module "@builder.io/qwik" {
158
228
  namespace JSX {
159
229
  interface IntrinsicElements extends CustomElements {}
160
230
  }
161
231
  export interface CSSProperties extends CustomCssProperties {}
162
232
  }
163
233
 
164
- declare module '@builder.io/qwik' {
234
+ declare module "@stencil/core" {
165
235
  namespace JSX {
166
236
  interface IntrinsicElements extends CustomElements {}
167
237
  }
168
238
  export interface CSSProperties extends CustomCssProperties {}
169
239
  }
170
240
 
171
- declare module '@stencil/core' {
241
+ declare module "hono/jsx" {
172
242
  namespace JSX {
173
243
  interface IntrinsicElements extends CustomElements {}
174
244
  }
175
245
  export interface CSSProperties extends CustomCssProperties {}
176
246
  }
177
247
 
178
- declare module 'hono/jsx' {
248
+ declare module "react-native" {
179
249
  namespace JSX {
180
250
  interface IntrinsicElements extends CustomElements {}
181
251
  }
182
252
  export interface CSSProperties extends CustomCssProperties {}
183
253
  }
184
254
 
185
- declare module 'react-native' {
255
+ declare module "solid-js" {
186
256
  namespace JSX {
187
- interface IntrinsicElements extends CustomElements {}
257
+ interface IntrinsicElements extends CustomElementsSolidJs {}
188
258
  }
189
259
  export interface CSSProperties extends CustomCssProperties {}
190
260
  }