@openremote/or-scheduler 1.13.0 → 1.14.0-snapshot

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