-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.xsd
527 lines (504 loc) · 18.2 KB
/
common.xsd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
<schema
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:tns="https://geocortex.com/layout/v1"
targetNamespace="https://geocortex.com/layout/v1"
elementFormDefault="qualified"
xmlns:xs="http://www.w3.org/2001/XMLSchema">
<element name="layout">
<complexType>
<sequence>
<element ref="tns:component" minOccurs="0" maxOccurs="unbounded"/>
</sequence>
</complexType>
</element>
<complexType name="ComponentWithChildren" abstract="true">
<complexContent mixed="true">
<extension base="tns:Component">
<choice>
<element ref="tns:component" minOccurs="0" maxOccurs="unbounded"/>
</choice>
</extension>
</complexContent>
</complexType>
<element name="component" type="tns:Component" abstract="true"/>
<complexType name="Component" abstract="true">
<annotation>
<documentation xml:lang="en">
A visual element of an application's UI, e.g. a button, a map, a
a dialog box, a panel, etc.
</documentation>
</annotation>
<sequence/>
<attribute name="id" type="ID">
<annotation>
<documentation xml:lang="en">
A unique ID for the component.
</documentation>
</annotation>
</attribute>
<attribute name="title" type="string">
<annotation>
<documentation xml:lang="en">
A human-readable title for the component. Where the title
appears (or whether it appears at all) varies with each type
of component.
</documentation>
</annotation>
</attribute>
<attribute name="icon" type="string">
<annotation>
<documentation xml:lang="en">
A resource key that can be mapped to an image for the icon.
Where the icon appears (or whether it appears at all) varies
with each type of component.
</documentation>
</annotation>
</attribute>
<attribute name="config" type="string">
<annotation>
<documentation xml:lang="en">
The ID of a corresponding item in a Geocortex App that
contains this component's configuration and state.
</documentation>
</annotation>
</attribute>
<attribute name="width">
<annotation>
<documentation xml:lang="en">
The width of the component, in em units.
</documentation>
</annotation>
<simpleType>
<restriction base="double">
<minInclusive value="0" />
</restriction>
</simpleType>
</attribute>
<attribute name="height">
<annotation>
<documentation xml:lang="en">
The height of the component, in em units.
</documentation>
</annotation>
<simpleType>
<restriction base="double">
<minInclusive value="0" />
</restriction>
</simpleType>
</attribute>
<attribute name="margin" type="double">
<annotation>
<documentation xml:lang="en">
The margin around the component, in em units.
</documentation>
</annotation>
</attribute>
<attribute name="padding" type="double">
<annotation>
<documentation xml:lang="en">
The padding within the component, in em units.
</documentation>
</annotation>
</attribute>
<attribute name="halign" default="start">
<annotation>
<documentation xml:lang="en">
Describes how the content of a component is horizontally
aligned. For stacks and splits, the content is the child
components. For a component like text, the content is the
text itself.
</documentation>
</annotation>
<simpleType>
<restriction base="string">
<enumeration value="start"/>
<enumeration value="center"/>
<enumeration value="end"/>
</restriction>
</simpleType>
</attribute>
<attribute name="valign" default="start">
<annotation>
<documentation xml:lang="en">
Describes how the content of a component is vertically
aligned. For stacks and splits, the content is the child
components. For a component like text, the content is the
text itself.
</documentation>
</annotation>
<simpleType>
<restriction base="string">
<enumeration value="start"/>
<enumeration value="center"/>
<enumeration value="end"/>
</restriction>
</simpleType>
</attribute>
<attribute name="grow" default="0">
<annotation>
<documentation xml:lang="en">
Sets whether or not a component's width or height will grow
over its parents primary axis. Components with a grow of 0
will fill to their natural or requested width/height.
Components with a specified grow will fill up a percentage
of the remaining space equal to their grow value divided by
the total grow of all sibling components (including the
component in question).
</documentation>
</annotation>
<simpleType>
<restriction base="double">
<minInclusive value="0" />
</restriction>
</simpleType>
</attribute>
<attribute name="slot" type="string">
<annotation>
<documentation xml:lang="en">
When a component is nested inside of another component, it
may explicilty reference a named "slot" in the parent
component to indicate where the child should appear.
</documentation>
</annotation>
</attribute>
<attribute name="active" type="boolean">
<annotation>
<documentation xml:lang="en">
Specifies whether a component is active by default or not. When this
attribute is not defined, the parent component decides the child's
behavior. In Web, an inactive component means that the component is
initially not visible. An active component means the component is
initially visible. In Mobile, inactive and active components are up to
the interpretation of the parent to decide on how to render.
</documentation>
</annotation>
</attribute>
<attribute name="models" type="string">
<annotation>
<documentation xml:lang="en">
Some components import the models of other components (for
example, a scalebar component might need access to a map
component's model). When these relationships cannot be
determined implicitly from the layout, then the layout
author can explicitly specify these dependencies via this
attribute. The value is a comma-separated list of CSS-style
selectors indiciating which components to import models
from. For example, "map,#primary-scene" would specify all
map components and a component with ID "primary-scene".
</documentation>
</annotation>
</attribute>
</complexType>
<!-- Basic Components -->
<element name="button" substitutionGroup="tns:component">
<annotation>
<documentation xml:lang="en">
A button that executes a command when clicked. The caption will be
the contained text, e.g. "Click Me!" in the case of
<![CDATA[<button>Click Me!</button>]]>.
</documentation>
</annotation>
<complexType>
<complexContent mixed="true">
<extension base="tns:Component">
<attribute name="command" type="string">
<annotation>
<documentation xml:lang="en">
The name of the command to execute.
</documentation>
</annotation>
</attribute>
<attribute name="arguments" type="string">
<annotation>
<documentation xml:lang="en">
The arguments for the command (optional).
</documentation>
</annotation>
</attribute>
</extension>
</complexContent>
</complexType>
</element>
<element name="iwtm" substitutionGroup="tns:component">
<annotation>
<documentation xml:lang="en">
An "I Want To..." menu (the actual title can be specified via the
"title" attribute). Has a single slot called "top", used to house
the user component, for example.
</documentation>
</annotation>
<complexType>
<complexContent>
<extension base="tns:ComponentWithChildren" />
</complexContent>
</complexType>
</element>
<element name="split" substitutionGroup="tns:component">
<annotation>
<documentation xml:lang="en">
A container for other components that organizes its children
horizontally.
</documentation>
</annotation>
<complexType>
<complexContent mixed="true">
<extension base="tns:Component">
<choice>
<element ref="tns:component" minOccurs="0" maxOccurs="unbounded"/>
</choice>
<attribute name="resizable" type="boolean" default="false">
<annotation>
<documentation xml:lang="en">
Whether the user can interactively resize the
contained components. Not supported on all
platforms.
</documentation>
</annotation>
</attribute>
</extension>
</complexContent>
</complexType>
</element>
<element name="stack" substitutionGroup="tns:component">
<annotation>
<documentation xml:lang="en">
A container for other components that organizes its children
vertically.
</documentation>
</annotation>
<complexType>
<complexContent mixed="true">
<extension base="tns:Component">
<choice>
<element ref="tns:component" minOccurs="0" maxOccurs="unbounded"/>
</choice>
<attribute name="resizable" type="boolean" default="false">
<annotation>
<documentation xml:lang="en">
Whether the user can interactively resize the
contained components. Not supported on all
platforms.
</documentation>
</annotation>
</attribute>
</extension>
</complexContent>
</complexType>
</element>
<element name="panel" substitutionGroup="tns:component">
<annotation>
<documentation xml:lang="en">
A container that enables hierarchical navigation between its
child components. The user can navigate backwards to
components that were activated prior to the currently active
component and are ordered above the current component in
configuration. The last component that is marked as active
will be initially displayed, with all other components
configured above that last component as active being
accessible via navigating backwards.
For example, if a panel has child components A, B, and C
(configured in that order), and initially A is active, then
activating C would display the C component but allow the user
to navigate back to A. If the user then activated B while C
is active, then C would be popped, and B would be shown,
again with a back button to navigate to A but with no way of
navigating to C because the configured order is maintained.
</documentation>
</annotation>
<complexType>
<complexContent mixed="true">
<extension base="tns:ComponentWithChildren" />
</complexContent>
</complexType>
</element>
<element name="text" substitutionGroup="tns:component">
<annotation>
<documentation xml:lang="en">
A component that displays text.
</documentation>
</annotation>
<complexType>
<complexContent mixed="true">
<extension base="tns:Component" />
</complexContent>
</complexType>
</element>
<element name="workflow" substitutionGroup="tns:component">
<annotation>
<documentation xml:lang="en">
A component that hosts workflow forms. When a workflow item config is
specified, the workflow will be run when the component is activated. Any
command to run a workflow can use the component by adding
'#{componentId}' to its target. If the component is activated outside
the context of running a workflow, and does not have a workflow item
config, it will appear empty. Only one workflow can use the component at
a time. If a second workflow attempts to use the component, the user
will be asked to cancel one of the workflows in Mobile. In Web, the
first workflow is canceled automatically.
</documentation>
</annotation>
<complexType>
<complexContent mixed="true">
<extension base="tns:Component" />
</complexContent>
</complexType>
</element>
<element name="user" substitutionGroup="tns:component">
<annotation>
<documentation xml:lang="en">
Shows information about the current user (if there is one), and
allows the user to sign in or out as appropriate.
</documentation>
</annotation>
<complexType>
<complexContent>
<extension base="tns:Component" />
</complexContent>
</complexType>
</element>
<!-- GIS Components -->
<element name="layer-list" substitutionGroup="tns:component">
<annotation>
<documentation xml:lang="en">
Allows users to see the structure of layers on the map and
change their visibility. Requires an associated map or scene
component (see the "models" attribute).
</documentation>
</annotation>
<complexType>
<complexContent>
<extension base="tns:Component" />
</complexContent>
</complexType>
</element>
<element name="map" substitutionGroup="tns:component">
<annotation>
<documentation xml:lang="en">
A 2D map and or a 3D scene in Web. A map can host child components and
has the following slots: "top-left", "top-right", "bottom-left",
"bottom-right". "top-center-visible" and "bottom-center-visible" are
special slots only implemented in Mobile. A child component in a
"center-visible" slot will be centered in the visible area of the map,
factoring in other components that are overlapping the map.
"context-menu" is a special slot only implemented in Web.
</documentation>
</annotation>
<complexType>
<complexContent mixed="true">
<extension base="tns:ComponentWithChildren" />
</complexContent>
</complexType>
</element>
<element name="zoom" substitutionGroup="tns:component">
<annotation>
<documentation xml:lang="en">
Displays a pair of buttons that allow the user to zoom the map in or out.
</documentation>
</annotation>
<complexType>
<complexContent>
<extension base="tns:Component" />
</complexContent>
</complexType>
</element>
<element name="compass" substitutionGroup="tns:component">
<annotation>
<documentation xml:lang="en">
Displays a North-pointing compass that rotates with the rotation of the map to which it is associated.
</documentation>
</annotation>
<complexType>
<complexContent>
<extension base="tns:Component" />
</complexContent>
</complexType>
</element>
<element name="geolocate" substitutionGroup="tns:component">
<annotation>
<documentation xml:lang="en">
Displays a clickable/tappable indicator that toggles GPS geolocation behavior.
</documentation>
</annotation>
<complexType>
<complexContent>
<extension base="tns:Component" />
</complexContent>
</complexType>
</element>
<element name="search" substitutionGroup="tns:component">
<annotation>
<documentation xml:lang="en">
A component that allows the user to search one ore more sources
(maps, scenes, tables, geocoders, etc.).
</documentation>
</annotation>
<complexType>
<complexContent>
<extension base="tns:Component" />
</complexContent>
</complexType>
</element>
<element name="results-list" substitutionGroup="tns:component">
<annotation>
<documentation xml:lang="en">
A component that allows the user to view results from a search,
identify, query, or any other activity that produces features.
</documentation>
</annotation>
<complexType>
<complexContent>
<extension base="tns:Component" />
</complexContent>
</complexType>
</element>
<element name="feature-details" substitutionGroup="tns:component">
<annotation>
<documentation xml:lang="en">
A component that allows the user to view feature details.
</documentation>
</annotation>
<complexType>
<complexContent>
<extension base="tns:Component" />
</complexContent>
</complexType>
</element>
<element name="dialog" substitutionGroup="tns:component">
<annotation>
<documentation xml:lang="en">
Displays a single child component in a dialog. Initially hidden. Displayed when
the dialog component is activated.
</documentation>
</annotation>
<complexType>
<complexContent>
<extension base="tns:Component">
<choice>
<element ref="tns:component" minOccurs="1" maxOccurs="1"/>
</choice>
<attribute name="is-modal" type="boolean">
<annotation>
<documentation xml:lang="en">
Whether or not the dialog is modal. If the dialog is modal, then you cannot interact with anything outside of the dialog.
</documentation>
</annotation>
</attribute>
<attribute name="has-close-button" type="boolean">
<annotation>
<documentation xml:lang="en">
Whether or not the dialog shows a close button.
</documentation>
</annotation>
</attribute>
</extension>
</complexContent>
</complexType>
</element>
<element name="print-form" substitutionGroup="tns:component">
<annotation>
<documentation xml:lang="en">
A component that presents configurable options for printing a map.
</documentation>
</annotation>
</element>
</schema>