pollination-react-io 0.0.2 → 0.0.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/build/Dropdown/Dropdown.d.ts +22 -0
- package/build/Dropdown/Dropdown.types.d.ts +3 -0
- package/build/GetGeometry/GetGeometry.d.ts +3 -0
- package/build/GetGeometry/GetGeometry.types.d.ts +3 -0
- package/build/GetHbjson/GetHbjson.d.ts +3 -0
- package/build/GetHbjson/GetHbjson.types.d.ts +3 -0
- package/build/Logo/index.d.ts +2 -0
- package/build/ManageSettings/ManageSettings.d.ts +2 -0
- package/build/ManageSettings/ManageSettings.types.d.ts +3 -0
- package/build/SendGeometry/SendGeometry.d.ts +3 -0
- package/build/SendGeometry/SendGeometry.types.d.ts +3 -0
- package/build/SendGeometry/geometry.d.ts +1 -0
- package/build/SendHbjson/SendHbjson.d.ts +3 -0
- package/build/SendHbjson/SendHbjson.types.d.ts +3 -0
- package/build/SendHbjson/hbjson.d.ts +282 -0
- package/build/SettingsButton/index.d.ts +10 -0
- package/build/hooks/index.d.ts +9 -9
- package/build/hooks/useGetGeometry.d.ts +1 -1
- package/build/hooks/useGetHBJSON.d.ts +1 -1
- package/build/hooks/useSendHBJSON.d.ts +1 -1
- package/build/hooks/utilities.d.ts +2 -2
- package/build/index.d.ts +4 -0
- package/build/index.esm.js +2549 -162
- package/build/index.esm.js.map +1 -1
- package/build/index.js +2589 -175
- package/build/index.js.map +1 -1
- package/build/typography.scss +2 -2
- package/build/variables.scss +8 -7
- package/package.json +29 -8
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { FC } from 'react';
|
|
2
|
+
import * as DropdownMenu from '@radix-ui/react-dropdown-menu';
|
|
3
|
+
import "./Dropdown.scss";
|
|
4
|
+
export declare type Option = {
|
|
5
|
+
type: 'checkbox' | 'radio' | 'button' | 'label' | 'link';
|
|
6
|
+
id: string;
|
|
7
|
+
label: React.ReactNode;
|
|
8
|
+
checked?: boolean;
|
|
9
|
+
disabled?: boolean;
|
|
10
|
+
onSelect?: (option: Option) => void;
|
|
11
|
+
to?: string;
|
|
12
|
+
};
|
|
13
|
+
interface DropdownProps {
|
|
14
|
+
options: Option[][];
|
|
15
|
+
trigger: React.ReactNode;
|
|
16
|
+
contentProps?: DropdownMenu.DropdownMenuContentProps;
|
|
17
|
+
itemProps?: DropdownMenu.DropdownMenuItemProps;
|
|
18
|
+
arrow?: boolean;
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare const Dropdown: FC<DropdownProps>;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const geometry: string[];
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
export declare const hbjson: {
|
|
2
|
+
type: string;
|
|
3
|
+
identifier: string;
|
|
4
|
+
display_name: string;
|
|
5
|
+
units: string;
|
|
6
|
+
properties: {
|
|
7
|
+
type: string;
|
|
8
|
+
energy: {
|
|
9
|
+
type: string;
|
|
10
|
+
construction_sets: any[];
|
|
11
|
+
constructions: any[];
|
|
12
|
+
materials: any[];
|
|
13
|
+
hvacs: {
|
|
14
|
+
type: string;
|
|
15
|
+
identifier: string;
|
|
16
|
+
economizer_type: string;
|
|
17
|
+
demand_controlled_ventilation: boolean;
|
|
18
|
+
sensible_heat_recovery: number;
|
|
19
|
+
latent_heat_recovery: number;
|
|
20
|
+
heating_air_temperature: number;
|
|
21
|
+
cooling_air_temperature: number;
|
|
22
|
+
heating_limit: {
|
|
23
|
+
type: string;
|
|
24
|
+
};
|
|
25
|
+
cooling_limit: {
|
|
26
|
+
type: string;
|
|
27
|
+
};
|
|
28
|
+
}[];
|
|
29
|
+
program_types: {
|
|
30
|
+
type: string;
|
|
31
|
+
identifier: string;
|
|
32
|
+
people: {
|
|
33
|
+
type: string;
|
|
34
|
+
identifier: string;
|
|
35
|
+
people_per_area: number;
|
|
36
|
+
radiant_fraction: number;
|
|
37
|
+
latent_fraction: {
|
|
38
|
+
type: string;
|
|
39
|
+
};
|
|
40
|
+
occupancy_schedule: string;
|
|
41
|
+
activity_schedule: string;
|
|
42
|
+
};
|
|
43
|
+
lighting: {
|
|
44
|
+
type: string;
|
|
45
|
+
identifier: string;
|
|
46
|
+
watts_per_area: number;
|
|
47
|
+
return_air_fraction: number;
|
|
48
|
+
radiant_fraction: number;
|
|
49
|
+
visible_fraction: number;
|
|
50
|
+
schedule: string;
|
|
51
|
+
};
|
|
52
|
+
electric_equipment: {
|
|
53
|
+
type: string;
|
|
54
|
+
identifier: string;
|
|
55
|
+
watts_per_area: number;
|
|
56
|
+
radiant_fraction: number;
|
|
57
|
+
latent_fraction: number;
|
|
58
|
+
lost_fraction: number;
|
|
59
|
+
schedule: string;
|
|
60
|
+
};
|
|
61
|
+
infiltration: {
|
|
62
|
+
type: string;
|
|
63
|
+
identifier: string;
|
|
64
|
+
flow_per_exterior_area: number;
|
|
65
|
+
schedule: string;
|
|
66
|
+
};
|
|
67
|
+
ventilation: {
|
|
68
|
+
type: string;
|
|
69
|
+
identifier: string;
|
|
70
|
+
air_changes_per_hour: number;
|
|
71
|
+
};
|
|
72
|
+
setpoint: {
|
|
73
|
+
type: string;
|
|
74
|
+
identifier: string;
|
|
75
|
+
heating_schedule: string;
|
|
76
|
+
cooling_schedule: string;
|
|
77
|
+
};
|
|
78
|
+
}[];
|
|
79
|
+
schedules: ({
|
|
80
|
+
type: string;
|
|
81
|
+
identifier: string;
|
|
82
|
+
day_schedules: {
|
|
83
|
+
type: string;
|
|
84
|
+
identifier: string;
|
|
85
|
+
values: number[];
|
|
86
|
+
times: number[][];
|
|
87
|
+
interpolate: boolean;
|
|
88
|
+
}[];
|
|
89
|
+
default_day_schedule: string;
|
|
90
|
+
schedule_type_limit: string;
|
|
91
|
+
summer_designday_schedule?: undefined;
|
|
92
|
+
winter_designday_schedule?: undefined;
|
|
93
|
+
schedule_rules?: undefined;
|
|
94
|
+
} | {
|
|
95
|
+
type: string;
|
|
96
|
+
identifier: string;
|
|
97
|
+
day_schedules: {
|
|
98
|
+
type: string;
|
|
99
|
+
identifier: string;
|
|
100
|
+
values: number[];
|
|
101
|
+
times: number[][];
|
|
102
|
+
interpolate: boolean;
|
|
103
|
+
}[];
|
|
104
|
+
default_day_schedule: string;
|
|
105
|
+
summer_designday_schedule: string;
|
|
106
|
+
winter_designday_schedule: string;
|
|
107
|
+
schedule_type_limit: string;
|
|
108
|
+
schedule_rules?: undefined;
|
|
109
|
+
} | {
|
|
110
|
+
type: string;
|
|
111
|
+
identifier: string;
|
|
112
|
+
day_schedules: {
|
|
113
|
+
type: string;
|
|
114
|
+
identifier: string;
|
|
115
|
+
values: number[];
|
|
116
|
+
times: number[][];
|
|
117
|
+
interpolate: boolean;
|
|
118
|
+
}[];
|
|
119
|
+
default_day_schedule: string;
|
|
120
|
+
schedule_rules: {
|
|
121
|
+
type: string;
|
|
122
|
+
schedule_day: string;
|
|
123
|
+
apply_sunday: boolean;
|
|
124
|
+
apply_monday: boolean;
|
|
125
|
+
apply_tuesday: boolean;
|
|
126
|
+
apply_wednesday: boolean;
|
|
127
|
+
apply_thursday: boolean;
|
|
128
|
+
apply_friday: boolean;
|
|
129
|
+
apply_saturday: boolean;
|
|
130
|
+
start_date: number[];
|
|
131
|
+
end_date: number[];
|
|
132
|
+
}[];
|
|
133
|
+
summer_designday_schedule: string;
|
|
134
|
+
winter_designday_schedule: string;
|
|
135
|
+
schedule_type_limit: string;
|
|
136
|
+
})[];
|
|
137
|
+
schedule_type_limits: ({
|
|
138
|
+
type: string;
|
|
139
|
+
identifier: string;
|
|
140
|
+
lower_limit: number;
|
|
141
|
+
upper_limit: number;
|
|
142
|
+
numeric_type: string;
|
|
143
|
+
unit_type: string;
|
|
144
|
+
} | {
|
|
145
|
+
type: string;
|
|
146
|
+
identifier: string;
|
|
147
|
+
lower_limit: number;
|
|
148
|
+
upper_limit: {
|
|
149
|
+
type: string;
|
|
150
|
+
};
|
|
151
|
+
numeric_type: string;
|
|
152
|
+
unit_type: string;
|
|
153
|
+
})[];
|
|
154
|
+
};
|
|
155
|
+
radiance: {
|
|
156
|
+
type: string;
|
|
157
|
+
modifier_sets: any[];
|
|
158
|
+
modifiers: any[];
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
rooms: {
|
|
162
|
+
type: string;
|
|
163
|
+
identifier: string;
|
|
164
|
+
display_name: string;
|
|
165
|
+
properties: {
|
|
166
|
+
type: string;
|
|
167
|
+
energy: {
|
|
168
|
+
type: string;
|
|
169
|
+
program_type: string;
|
|
170
|
+
hvac: string;
|
|
171
|
+
setpoint: {
|
|
172
|
+
type: string;
|
|
173
|
+
identifier: string;
|
|
174
|
+
heating_schedule: string;
|
|
175
|
+
cooling_schedule: string;
|
|
176
|
+
humidifying_schedule: string;
|
|
177
|
+
dehumidifying_schedule: string;
|
|
178
|
+
};
|
|
179
|
+
};
|
|
180
|
+
radiance: {
|
|
181
|
+
type: string;
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
faces: ({
|
|
185
|
+
type: string;
|
|
186
|
+
identifier: string;
|
|
187
|
+
display_name: string;
|
|
188
|
+
properties: {
|
|
189
|
+
type: string;
|
|
190
|
+
energy: {
|
|
191
|
+
type: string;
|
|
192
|
+
};
|
|
193
|
+
radiance: {
|
|
194
|
+
type: string;
|
|
195
|
+
};
|
|
196
|
+
};
|
|
197
|
+
geometry: {
|
|
198
|
+
type: string;
|
|
199
|
+
boundary: number[][];
|
|
200
|
+
};
|
|
201
|
+
face_type: string;
|
|
202
|
+
boundary_condition: {
|
|
203
|
+
type: string;
|
|
204
|
+
sun_exposure?: undefined;
|
|
205
|
+
wind_exposure?: undefined;
|
|
206
|
+
view_factor?: undefined;
|
|
207
|
+
};
|
|
208
|
+
apertures?: undefined;
|
|
209
|
+
} | {
|
|
210
|
+
type: string;
|
|
211
|
+
identifier: string;
|
|
212
|
+
display_name: string;
|
|
213
|
+
properties: {
|
|
214
|
+
type: string;
|
|
215
|
+
energy: {
|
|
216
|
+
type: string;
|
|
217
|
+
};
|
|
218
|
+
radiance: {
|
|
219
|
+
type: string;
|
|
220
|
+
};
|
|
221
|
+
};
|
|
222
|
+
geometry: {
|
|
223
|
+
type: string;
|
|
224
|
+
boundary: number[][];
|
|
225
|
+
};
|
|
226
|
+
face_type: string;
|
|
227
|
+
boundary_condition: {
|
|
228
|
+
type: string;
|
|
229
|
+
sun_exposure: boolean;
|
|
230
|
+
wind_exposure: boolean;
|
|
231
|
+
view_factor: {
|
|
232
|
+
type: string;
|
|
233
|
+
};
|
|
234
|
+
};
|
|
235
|
+
apertures: {
|
|
236
|
+
type: string;
|
|
237
|
+
identifier: string;
|
|
238
|
+
display_name: string;
|
|
239
|
+
properties: {
|
|
240
|
+
type: string;
|
|
241
|
+
energy: {
|
|
242
|
+
type: string;
|
|
243
|
+
};
|
|
244
|
+
radiance: {
|
|
245
|
+
type: string;
|
|
246
|
+
};
|
|
247
|
+
};
|
|
248
|
+
geometry: {
|
|
249
|
+
type: string;
|
|
250
|
+
boundary: number[][];
|
|
251
|
+
};
|
|
252
|
+
is_operable: boolean;
|
|
253
|
+
boundary_condition: {
|
|
254
|
+
type: string;
|
|
255
|
+
sun_exposure: boolean;
|
|
256
|
+
wind_exposure: boolean;
|
|
257
|
+
view_factor: {
|
|
258
|
+
type: string;
|
|
259
|
+
};
|
|
260
|
+
};
|
|
261
|
+
outdoor_shades: {
|
|
262
|
+
type: string;
|
|
263
|
+
identifier: string;
|
|
264
|
+
display_name: string;
|
|
265
|
+
properties: {
|
|
266
|
+
type: string;
|
|
267
|
+
energy: {
|
|
268
|
+
type: string;
|
|
269
|
+
};
|
|
270
|
+
radiance: {
|
|
271
|
+
type: string;
|
|
272
|
+
};
|
|
273
|
+
};
|
|
274
|
+
geometry: {
|
|
275
|
+
type: string;
|
|
276
|
+
boundary: number[][];
|
|
277
|
+
};
|
|
278
|
+
}[];
|
|
279
|
+
}[];
|
|
280
|
+
})[];
|
|
281
|
+
}[];
|
|
282
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { FC } from 'react';
|
|
2
|
+
import { Option } from '../Dropdown/Dropdown';
|
|
3
|
+
import '../buttons.scss';
|
|
4
|
+
export interface SettingsButtonProps {
|
|
5
|
+
options: Option[][];
|
|
6
|
+
disabled: boolean;
|
|
7
|
+
onClick: () => void;
|
|
8
|
+
label: string;
|
|
9
|
+
}
|
|
10
|
+
export declare const SettingsButton: FC<SettingsButtonProps>;
|
package/build/hooks/index.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export type { Options, Message, Coordinates, SettingsOptions } from './types';
|
|
2
|
-
export * from
|
|
3
|
-
export * from
|
|
4
|
-
export * from
|
|
5
|
-
export * from
|
|
6
|
-
export * from
|
|
7
|
-
export * from
|
|
8
|
-
export * from
|
|
9
|
-
export * from
|
|
1
|
+
export type { Options, Message, Coordinates, SettingsOptions, } from './types';
|
|
2
|
+
export * from './useGetHbjson';
|
|
3
|
+
export * from './useGetGeometry';
|
|
4
|
+
export * from './useSendHbjson';
|
|
5
|
+
export * from './useSendGeometry';
|
|
6
|
+
export * from './useRunCommand';
|
|
7
|
+
export * from './useManageSettings';
|
|
8
|
+
export * from './useHbjsontoVTK';
|
|
9
|
+
export * from './utilities';
|
|
@@ -11,6 +11,6 @@ declare type SendGeometryMessage = Message & SendGeometry;
|
|
|
11
11
|
export declare const useSendHbjson: () => {
|
|
12
12
|
host: any;
|
|
13
13
|
state: {};
|
|
14
|
-
|
|
14
|
+
sendHbjson: (message: SendGeometryMessage, preview?: any) => Message;
|
|
15
15
|
};
|
|
16
16
|
export {};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/// <reference types="node" />
|
|
2
|
-
import { Message } from
|
|
2
|
+
import { Message } from './types';
|
|
3
3
|
export declare function checkDotNet(): boolean;
|
|
4
4
|
export declare function checkRuby(): boolean;
|
|
5
5
|
export declare function sendMessageDotNet(message: Message): Message;
|
|
6
6
|
export declare function sendMessageRuby(message: Message): Message;
|
|
7
|
-
export declare function subscribeDotNet(interval?: number): (setState: any) => NodeJS.
|
|
7
|
+
export declare function subscribeDotNet(interval?: number): (setState: any) => NodeJS.Timer;
|
|
8
8
|
export declare function getHost(key?: string, defaultValue?: string): any;
|