@jsonforms/core 3.0.0 → 3.1.0-alpha.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.
- package/lib/Helpers.d.ts +1 -1
- package/lib/actions/actions.d.ts +6 -5
- package/lib/generators/Generate.d.ts +1 -1
- package/lib/generators/schema.d.ts +1 -1
- package/lib/i18n/i18nTypes.d.ts +3 -2
- package/lib/i18n/i18nUtil.d.ts +2 -2
- package/lib/jsonforms-core.cjs.js +3 -3
- package/lib/jsonforms-core.cjs.js.map +1 -1
- package/lib/jsonforms-core.esm.js +2 -2
- package/lib/jsonforms-core.esm.js.map +1 -1
- package/lib/models/jsonSchema.d.ts +2 -2
- package/lib/models/uischema.d.ts +1 -1
- package/lib/reducers/cells.d.ts +2 -2
- package/lib/reducers/config.d.ts +1 -1
- package/lib/reducers/core.d.ts +3 -2
- package/lib/reducers/default-data.d.ts +1 -1
- package/lib/reducers/i18n.d.ts +1 -1
- package/lib/reducers/reducers.d.ts +4 -4
- package/lib/reducers/renderers.d.ts +2 -2
- package/lib/reducers/selectors.d.ts +6 -6
- package/lib/reducers/uischemas.d.ts +2 -2
- package/lib/store.d.ts +3 -3
- package/lib/testers/testers.d.ts +1 -1
- package/lib/util/cell.d.ts +3 -3
- package/lib/util/combinators.d.ts +1 -1
- package/lib/util/label.d.ts +1 -1
- package/lib/util/path.d.ts +6 -3
- package/lib/util/renderer.d.ts +5 -5
- package/lib/util/resolvers.d.ts +1 -1
- package/lib/util/runtime.d.ts +2 -2
- package/lib/util/util.d.ts +2 -2
- package/lib/util/validator.d.ts +1 -1
- package/package.json +7 -3
- package/src/Helpers.ts +1 -1
- package/src/actions/actions.ts +6 -5
- package/src/generators/Generate.ts +1 -1
- package/src/generators/schema.ts +1 -1
- package/src/i18n/i18nTypes.ts +3 -2
- package/src/i18n/i18nUtil.ts +2 -2
- package/src/models/jsonSchema.ts +2 -2
- package/src/models/uischema.ts +1 -1
- package/src/reducers/cells.ts +2 -2
- package/src/reducers/config.ts +1 -1
- package/src/reducers/core.ts +4 -3
- package/src/reducers/default-data.ts +1 -1
- package/src/reducers/i18n.ts +1 -1
- package/src/reducers/reducers.ts +4 -4
- package/src/reducers/renderers.ts +2 -2
- package/src/reducers/selectors.ts +6 -6
- package/src/reducers/uischemas.ts +2 -2
- package/src/store.ts +3 -3
- package/src/testers/testers.ts +2 -2
- package/src/util/cell.ts +3 -3
- package/src/util/combinators.ts +1 -1
- package/src/util/label.ts +1 -1
- package/src/util/path.ts +6 -3
- package/src/util/renderer.ts +5 -5
- package/src/util/resolvers.ts +2 -2
- package/src/util/runtime.ts +2 -2
- package/src/util/util.ts +2 -2
- package/src/util/validator.ts +1 -1
- package/.nycrc +0 -6
- package/docs/assets/css/main.css +0 -1
- package/docs/assets/images/icons.png +0 -0
- package/docs/assets/images/icons@2x.png +0 -0
- package/docs/assets/images/widgets.png +0 -0
- package/docs/assets/images/widgets@2x.png +0 -0
- package/docs/assets/js/main.js +0 -51
- package/docs/assets/js/search.json +0 -1
- package/docs/classes/gen.html +0 -406
- package/docs/enums/ruleeffect.html +0 -214
- package/docs/globals.html +0 -10568
- package/docs/index.html +0 -1297
- package/docs/interfaces/action.html +0 -166
- package/docs/interfaces/addcellrendereraction.html +0 -181
- package/docs/interfaces/addrendereraction.html +0 -181
- package/docs/interfaces/adduischemaaction.html +0 -181
- package/docs/interfaces/andcondition.html +0 -181
- package/docs/interfaces/anyaction.html +0 -189
- package/docs/interfaces/arraycontrolprops.html +0 -653
- package/docs/interfaces/arraylayoutprops.html +0 -648
- package/docs/interfaces/categorization.html +0 -281
- package/docs/interfaces/category.html +0 -279
- package/docs/interfaces/cellprops.html +0 -452
- package/docs/interfaces/combinatorrendererprops.html +0 -503
- package/docs/interfaces/combinatorsubschemarenderinfo.html +0 -181
- package/docs/interfaces/composablecondition.html +0 -193
- package/docs/interfaces/condition.html +0 -176
- package/docs/interfaces/controlelement.html +0 -280
- package/docs/interfaces/controlprops.html +0 -497
- package/docs/interfaces/controlstate.html +0 -184
- package/docs/interfaces/controlwithdetailprops.html +0 -501
- package/docs/interfaces/dispatchcellprops.html +0 -388
- package/docs/interfaces/dispatchcellstateprops.html +0 -408
- package/docs/interfaces/dispatchpropsofarraycontrol.html +0 -322
- package/docs/interfaces/dispatchpropsofcontrol.html +0 -204
- package/docs/interfaces/dispatchpropsofmultienumcontrol.html +0 -215
- package/docs/interfaces/enumcellprops.html +0 -467
- package/docs/interfaces/enumoption.html +0 -167
- package/docs/interfaces/formatted.html +0 -226
- package/docs/interfaces/grouplayout.html +0 -284
- package/docs/interfaces/horizontallayout.html +0 -234
- package/docs/interfaces/initaction.html +0 -209
- package/docs/interfaces/initactionoptions.html +0 -181
- package/docs/interfaces/internationalizable.html +0 -170
- package/docs/interfaces/jsonformscellrendererregistryentry.html +0 -167
- package/docs/interfaces/jsonformscore.html +0 -251
- package/docs/interfaces/jsonformsdefaultdataregistryentry.html +0 -167
- package/docs/interfaces/jsonformsextendedstate.html +0 -175
- package/docs/interfaces/jsonformsi18nstate.html +0 -181
- package/docs/interfaces/jsonformsprops.html +0 -321
- package/docs/interfaces/jsonformsrendererregistryentry.html +0 -167
- package/docs/interfaces/jsonformsstate.html +0 -170
- package/docs/interfaces/jsonformsstore.html +0 -376
- package/docs/interfaces/jsonformssubstates.html +0 -276
- package/docs/interfaces/jsonformsuischemaregistryentry.html +0 -167
- package/docs/interfaces/jsonschema4.html +0 -758
- package/docs/interfaces/jsonschema7.html +0 -884
- package/docs/interfaces/labelable.html +0 -184
- package/docs/interfaces/labeldescription.html +0 -184
- package/docs/interfaces/labeled.html +0 -182
- package/docs/interfaces/labelelement.html +0 -251
- package/docs/interfaces/labelprops.html +0 -339
- package/docs/interfaces/layout.html +0 -253
- package/docs/interfaces/layoutprops.html +0 -359
- package/docs/interfaces/leafcondition.html +0 -209
- package/docs/interfaces/orcondition.html +0 -181
- package/docs/interfaces/ownpropsofcell.html +0 -321
- package/docs/interfaces/ownpropsofcontrol.html +0 -305
- package/docs/interfaces/ownpropsofenum.html +0 -161
- package/docs/interfaces/ownpropsofenumcell.html +0 -335
- package/docs/interfaces/ownpropsofjsonformsrenderer.html +0 -296
- package/docs/interfaces/ownpropsoflabel.html +0 -286
- package/docs/interfaces/ownpropsoflayout.html +0 -305
- package/docs/interfaces/ownpropsofmasterlistitem.html +0 -289
- package/docs/interfaces/ownpropsofrenderer.html +0 -292
- package/docs/interfaces/referenceschemamap.html +0 -138
- package/docs/interfaces/registerdefaultdataaction.html +0 -181
- package/docs/interfaces/removecellrendereraction.html +0 -181
- package/docs/interfaces/removerendereraction.html +0 -181
- package/docs/interfaces/removeuischemaaction.html +0 -167
- package/docs/interfaces/rendererprops.html +0 -331
- package/docs/interfaces/rule.html +0 -185
- package/docs/interfaces/schemabasedcondition.html +0 -202
- package/docs/interfaces/scopable.html +0 -171
- package/docs/interfaces/scoped.html +0 -183
- package/docs/interfaces/setajvaction.html +0 -167
- package/docs/interfaces/setconfigaction.html +0 -167
- package/docs/interfaces/setlocaleaction.html +0 -167
- package/docs/interfaces/setschemaaction.html +0 -167
- package/docs/interfaces/settranslatoraction.html +0 -181
- package/docs/interfaces/setuischemaaction.html +0 -167
- package/docs/interfaces/setvalidationmodeaction.html +0 -167
- package/docs/interfaces/statepropsofarraycontrol.html +0 -474
- package/docs/interfaces/statepropsofarraylayout.html +0 -461
- package/docs/interfaces/statepropsofcell.html +0 -408
- package/docs/interfaces/statepropsofcombinator.html +0 -449
- package/docs/interfaces/statepropsofcontrol.html +0 -451
- package/docs/interfaces/statepropsofcontrolwithdetail.html +0 -463
- package/docs/interfaces/statepropsofenumcell.html +0 -422
- package/docs/interfaces/statepropsofjsonformsrenderer.html +0 -324
- package/docs/interfaces/statepropsoflabel.html +0 -343
- package/docs/interfaces/statepropsoflayout.html +0 -369
- package/docs/interfaces/statepropsofmasteritem.html +0 -309
- package/docs/interfaces/statepropsofrenderer.html +0 -331
- package/docs/interfaces/statepropsofscopedrenderer.html +0 -391
- package/docs/interfaces/store.html +0 -386
- package/docs/interfaces/testercontext.html +0 -184
- package/docs/interfaces/uischemaelement.html +0 -225
- package/docs/interfaces/unregisterdefaultdataaction.html +0 -167
- package/docs/interfaces/updateaction.html +0 -202
- package/docs/interfaces/updatecoreaction.html +0 -209
- package/docs/interfaces/updateerrorsaction.html +0 -167
- package/docs/interfaces/updatei18naction.html +0 -195
- package/docs/interfaces/verticallayout.html +0 -234
- package/docs/interfaces/withclassname.html +0 -153
- package/rollup.config.js +0 -44
- package/stats.html +0 -3279
- package/test/actions/actions.test.ts +0 -93
- package/test/generators/schema.test.ts +0 -224
- package/test/generators/uischema.test.ts +0 -576
- package/test/i18n/i18nUtil.test.ts +0 -88
- package/test/reducers/core.test.ts +0 -1682
- package/test/reducers/uischemas.test.ts +0 -173
- package/test/testers.test.ts +0 -948
- package/test/util/array.test.ts +0 -28
- package/test/util/cell.test.ts +0 -354
- package/test/util/derivetype.test.ts +0 -101
- package/test/util/label.test.ts +0 -364
- package/test/util/path.test.ts +0 -259
- package/test/util/renderer.test.ts +0 -1830
- package/test/util/resolvers.test.ts +0 -157
- package/test/util/runtime.test.ts +0 -779
- package/tsconfig.json +0 -13
|
@@ -1,386 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html class="default no-js">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<title>Store | JSON Forms Core</title>
|
|
7
|
-
<meta name="description" content="Documentation for JSON Forms Core">
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
-
<link rel="stylesheet" href="../assets/css/main.css">
|
|
10
|
-
</head>
|
|
11
|
-
<body>
|
|
12
|
-
<header>
|
|
13
|
-
<div class="tsd-page-toolbar">
|
|
14
|
-
<div class="container">
|
|
15
|
-
<div class="table-wrap">
|
|
16
|
-
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
|
|
17
|
-
<div class="field">
|
|
18
|
-
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
|
|
19
|
-
<input id="tsd-search-field" type="text" />
|
|
20
|
-
</div>
|
|
21
|
-
<ul class="results">
|
|
22
|
-
<li class="state loading">Preparing search index...</li>
|
|
23
|
-
<li class="state failure">The search index is not available</li>
|
|
24
|
-
</ul>
|
|
25
|
-
<a href="../index.html" class="title">JSON Forms Core</a>
|
|
26
|
-
</div>
|
|
27
|
-
<div class="table-cell" id="tsd-widgets">
|
|
28
|
-
<div id="tsd-filter">
|
|
29
|
-
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
|
|
30
|
-
<div class="tsd-filter-group">
|
|
31
|
-
<div class="tsd-select" id="tsd-filter-visibility">
|
|
32
|
-
<span class="tsd-select-label">All</span>
|
|
33
|
-
<ul class="tsd-select-list">
|
|
34
|
-
<li data-value="public">Public</li>
|
|
35
|
-
<li data-value="protected">Public/Protected</li>
|
|
36
|
-
<li data-value="private" class="selected">All</li>
|
|
37
|
-
</ul>
|
|
38
|
-
</div>
|
|
39
|
-
<input type="checkbox" id="tsd-filter-inherited" checked />
|
|
40
|
-
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
|
|
41
|
-
<input type="checkbox" id="tsd-filter-only-exported" />
|
|
42
|
-
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
<div class="tsd-page-title">
|
|
51
|
-
<div class="container">
|
|
52
|
-
<ul class="tsd-breadcrumb">
|
|
53
|
-
<li>
|
|
54
|
-
<a href="../globals.html">Globals</a>
|
|
55
|
-
</li>
|
|
56
|
-
<li>
|
|
57
|
-
<a href="store.html">Store</a>
|
|
58
|
-
</li>
|
|
59
|
-
</ul>
|
|
60
|
-
<h1>Interface Store<S, A></h1>
|
|
61
|
-
</div>
|
|
62
|
-
</div>
|
|
63
|
-
</header>
|
|
64
|
-
<div class="container container-main">
|
|
65
|
-
<div class="row">
|
|
66
|
-
<div class="col-8 col-content">
|
|
67
|
-
<section class="tsd-panel tsd-comment">
|
|
68
|
-
<div class="tsd-comment tsd-typography">
|
|
69
|
-
<div class="lead">
|
|
70
|
-
<p>A store is an object that holds the application's state tree.
|
|
71
|
-
There should only be a single store in a Redux app, as the composition
|
|
72
|
-
happens on the reducer level.</p>
|
|
73
|
-
</div>
|
|
74
|
-
</div>
|
|
75
|
-
</section>
|
|
76
|
-
<section class="tsd-panel tsd-type-parameters">
|
|
77
|
-
<h3>Type parameters</h3>
|
|
78
|
-
<ul class="tsd-type-parameters">
|
|
79
|
-
<li>
|
|
80
|
-
<h4>S = <span class="tsd-signature-type">any</span></h4>
|
|
81
|
-
<div class="tsd-comment tsd-typography">
|
|
82
|
-
<div class="lead">
|
|
83
|
-
<p>The type of state held by this store.</p>
|
|
84
|
-
</div>
|
|
85
|
-
</div>
|
|
86
|
-
</li>
|
|
87
|
-
<li>
|
|
88
|
-
<h4>A<span class="tsd-signature-symbol">: </span><a href="action.html" class="tsd-signature-type">Action</a> = <span class="tsd-signature-type">AnyAction</span></h4>
|
|
89
|
-
<div class="tsd-comment tsd-typography">
|
|
90
|
-
<div class="lead">
|
|
91
|
-
<p>the type of actions which may be dispatched by this store.</p>
|
|
92
|
-
</div>
|
|
93
|
-
</div>
|
|
94
|
-
</li>
|
|
95
|
-
</ul>
|
|
96
|
-
</section>
|
|
97
|
-
<section class="tsd-panel tsd-hierarchy">
|
|
98
|
-
<h3>Hierarchy</h3>
|
|
99
|
-
<ul class="tsd-hierarchy">
|
|
100
|
-
<li>
|
|
101
|
-
<span class="target">Store</span>
|
|
102
|
-
<ul class="tsd-hierarchy">
|
|
103
|
-
<li>
|
|
104
|
-
<a href="jsonformsstore.html" class="tsd-signature-type">JsonFormsStore</a>
|
|
105
|
-
</li>
|
|
106
|
-
</ul>
|
|
107
|
-
</li>
|
|
108
|
-
</ul>
|
|
109
|
-
</section>
|
|
110
|
-
<section class="tsd-panel-group tsd-index-group">
|
|
111
|
-
<h2>Index</h2>
|
|
112
|
-
<section class="tsd-panel tsd-index-panel">
|
|
113
|
-
<div class="tsd-index-content">
|
|
114
|
-
<section class="tsd-index-section ">
|
|
115
|
-
<h3>Properties</h3>
|
|
116
|
-
<ul class="tsd-index-list">
|
|
117
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="store.html#dispatch" class="tsd-kind-icon">dispatch</a></li>
|
|
118
|
-
</ul>
|
|
119
|
-
</section>
|
|
120
|
-
<section class="tsd-index-section ">
|
|
121
|
-
<h3>Methods</h3>
|
|
122
|
-
<ul class="tsd-index-list">
|
|
123
|
-
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="store.html#_symbol_observable_" class="tsd-kind-icon">[<wbr>Symbol.observable]</a></li>
|
|
124
|
-
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="store.html#getstate" class="tsd-kind-icon">get<wbr>State</a></li>
|
|
125
|
-
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="store.html#replacereducer" class="tsd-kind-icon">replace<wbr>Reducer</a></li>
|
|
126
|
-
<li class="tsd-kind-method tsd-parent-kind-interface"><a href="store.html#subscribe" class="tsd-kind-icon">subscribe</a></li>
|
|
127
|
-
</ul>
|
|
128
|
-
</section>
|
|
129
|
-
</div>
|
|
130
|
-
</section>
|
|
131
|
-
</section>
|
|
132
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
133
|
-
<h2>Properties</h2>
|
|
134
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
|
|
135
|
-
<a name="dispatch" class="tsd-anchor"></a>
|
|
136
|
-
<h3>dispatch</h3>
|
|
137
|
-
<div class="tsd-signature tsd-kind-icon">dispatch<span class="tsd-signature-symbol">:</span> <a href="../globals.html#dispatch" class="tsd-signature-type">Dispatch</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">A</span><span class="tsd-signature-symbol">></span></div>
|
|
138
|
-
<aside class="tsd-sources">
|
|
139
|
-
<ul>
|
|
140
|
-
<li>Defined in packages/core/src/util/type.ts:103</li>
|
|
141
|
-
</ul>
|
|
142
|
-
</aside>
|
|
143
|
-
<div class="tsd-comment tsd-typography">
|
|
144
|
-
<div class="lead">
|
|
145
|
-
<p>Dispatches an action. It is the only way to trigger a state change.</p>
|
|
146
|
-
</div>
|
|
147
|
-
<p>The <code>reducer</code> function, used to create the store, will be called with the
|
|
148
|
-
current state tree and the given <code>action</code>. Its return value will be
|
|
149
|
-
considered the <strong>next</strong> state of the tree, and the change listeners will
|
|
150
|
-
be notified.</p>
|
|
151
|
-
<p>The base implementation only supports plain object actions. If you want
|
|
152
|
-
to dispatch a Promise, an Observable, a thunk, or something else, you
|
|
153
|
-
need to wrap your store creating function into the corresponding
|
|
154
|
-
middleware. For example, see the documentation for the <code>redux-thunk</code>
|
|
155
|
-
package. Even the middleware will eventually dispatch plain object
|
|
156
|
-
actions using this method.</p>
|
|
157
|
-
<dl class="tsd-comment-tags">
|
|
158
|
-
<dt>param</dt>
|
|
159
|
-
<dd><p>A plain object representing “what changed”. It is a good
|
|
160
|
-
idea to keep actions serializable so you can record and replay user
|
|
161
|
-
sessions, or use the time travelling <code>redux-devtools</code>. An action must
|
|
162
|
-
have a <code>type</code> property which may not be <code>undefined</code>. It is a good idea
|
|
163
|
-
to use string constants for action types.</p>
|
|
164
|
-
</dd>
|
|
165
|
-
<dt>returns</dt>
|
|
166
|
-
<dd><p>For convenience, the same action object you dispatched.</p>
|
|
167
|
-
<p>Note that, if you use a custom middleware, it may wrap <code>dispatch()</code> to
|
|
168
|
-
return something else (for example, a Promise you can await).</p>
|
|
169
|
-
</dd>
|
|
170
|
-
</dl>
|
|
171
|
-
</div>
|
|
172
|
-
</section>
|
|
173
|
-
</section>
|
|
174
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
175
|
-
<h2>Methods</h2>
|
|
176
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
|
|
177
|
-
<a name="_symbol_observable_" class="tsd-anchor"></a>
|
|
178
|
-
<h3>[<wbr>Symbol.observable]</h3>
|
|
179
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
180
|
-
<li class="tsd-signature tsd-kind-icon">[<wbr>Symbol.observable]<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../globals.html#observable" class="tsd-signature-type">Observable</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">S</span><span class="tsd-signature-symbol">></span></li>
|
|
181
|
-
</ul>
|
|
182
|
-
<ul class="tsd-descriptions">
|
|
183
|
-
<li class="tsd-description">
|
|
184
|
-
<aside class="tsd-sources">
|
|
185
|
-
<ul>
|
|
186
|
-
<li>Defined in packages/core/src/util/type.ts:155</li>
|
|
187
|
-
</ul>
|
|
188
|
-
</aside>
|
|
189
|
-
<div class="tsd-comment tsd-typography">
|
|
190
|
-
<div class="lead">
|
|
191
|
-
<p>Interoperability point for observable/reactive libraries.</p>
|
|
192
|
-
</div>
|
|
193
|
-
</div>
|
|
194
|
-
<h4 class="tsd-returns-title">Returns <a href="../globals.html#observable" class="tsd-signature-type">Observable</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">S</span><span class="tsd-signature-symbol">></span></h4>
|
|
195
|
-
<p>A minimal observable of state changes.
|
|
196
|
-
For more information, see the observable proposal:
|
|
197
|
-
<a href="https://github.com/tc39/proposal-observable">https://github.com/tc39/proposal-observable</a></p>
|
|
198
|
-
</li>
|
|
199
|
-
</ul>
|
|
200
|
-
</section>
|
|
201
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
|
|
202
|
-
<a name="getstate" class="tsd-anchor"></a>
|
|
203
|
-
<h3>get<wbr>State</h3>
|
|
204
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
205
|
-
<li class="tsd-signature tsd-kind-icon">get<wbr>State<span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">S</span></li>
|
|
206
|
-
</ul>
|
|
207
|
-
<ul class="tsd-descriptions">
|
|
208
|
-
<li class="tsd-description">
|
|
209
|
-
<aside class="tsd-sources">
|
|
210
|
-
<ul>
|
|
211
|
-
<li>Defined in packages/core/src/util/type.ts:110</li>
|
|
212
|
-
</ul>
|
|
213
|
-
</aside>
|
|
214
|
-
<div class="tsd-comment tsd-typography">
|
|
215
|
-
<div class="lead">
|
|
216
|
-
<p>Reads the state tree managed by the store.</p>
|
|
217
|
-
</div>
|
|
218
|
-
</div>
|
|
219
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">S</span></h4>
|
|
220
|
-
<p>The current state tree of your application.</p>
|
|
221
|
-
</li>
|
|
222
|
-
</ul>
|
|
223
|
-
</section>
|
|
224
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
|
|
225
|
-
<a name="replacereducer" class="tsd-anchor"></a>
|
|
226
|
-
<h3>replace<wbr>Reducer</h3>
|
|
227
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
228
|
-
<li class="tsd-signature tsd-kind-icon">replace<wbr>Reducer<span class="tsd-signature-symbol">(</span>nextReducer<span class="tsd-signature-symbol">: </span><a href="../globals.html#reducer" class="tsd-signature-type">Reducer</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">S</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">A</span><span class="tsd-signature-symbol">></span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
229
|
-
</ul>
|
|
230
|
-
<ul class="tsd-descriptions">
|
|
231
|
-
<li class="tsd-description">
|
|
232
|
-
<aside class="tsd-sources">
|
|
233
|
-
<ul>
|
|
234
|
-
<li>Defined in packages/core/src/util/type.ts:147</li>
|
|
235
|
-
</ul>
|
|
236
|
-
</aside>
|
|
237
|
-
<div class="tsd-comment tsd-typography">
|
|
238
|
-
<div class="lead">
|
|
239
|
-
<p>Replaces the reducer currently used by the store to calculate the state.</p>
|
|
240
|
-
</div>
|
|
241
|
-
<p>You might need this if your app implements code splitting and you want to
|
|
242
|
-
load some of the reducers dynamically. You might also need this if you
|
|
243
|
-
implement a hot reloading mechanism for Redux.</p>
|
|
244
|
-
</div>
|
|
245
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
246
|
-
<ul class="tsd-parameters">
|
|
247
|
-
<li>
|
|
248
|
-
<h5>nextReducer: <a href="../globals.html#reducer" class="tsd-signature-type">Reducer</a><span class="tsd-signature-symbol"><</span><span class="tsd-signature-type">S</span><span class="tsd-signature-symbol">, </span><span class="tsd-signature-type">A</span><span class="tsd-signature-symbol">></span></h5>
|
|
249
|
-
<div class="tsd-comment tsd-typography">
|
|
250
|
-
<p>The reducer for the store to use instead.</p>
|
|
251
|
-
</div>
|
|
252
|
-
</li>
|
|
253
|
-
</ul>
|
|
254
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
255
|
-
</li>
|
|
256
|
-
</ul>
|
|
257
|
-
</section>
|
|
258
|
-
<section class="tsd-panel tsd-member tsd-kind-method tsd-parent-kind-interface">
|
|
259
|
-
<a name="subscribe" class="tsd-anchor"></a>
|
|
260
|
-
<h3>subscribe</h3>
|
|
261
|
-
<ul class="tsd-signatures tsd-kind-method tsd-parent-kind-interface">
|
|
262
|
-
<li class="tsd-signature tsd-kind-icon">subscribe<span class="tsd-signature-symbol">(</span>listener<span class="tsd-signature-symbol">: </span><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><a href="../globals.html#unsubscribe" class="tsd-signature-type">Unsubscribe</a></li>
|
|
263
|
-
</ul>
|
|
264
|
-
<ul class="tsd-descriptions">
|
|
265
|
-
<li class="tsd-description">
|
|
266
|
-
<aside class="tsd-sources">
|
|
267
|
-
<ul>
|
|
268
|
-
<li>Defined in packages/core/src/util/type.ts:136</li>
|
|
269
|
-
</ul>
|
|
270
|
-
</aside>
|
|
271
|
-
<div class="tsd-comment tsd-typography">
|
|
272
|
-
<div class="lead">
|
|
273
|
-
<p>Adds a change listener. It will be called any time an action is
|
|
274
|
-
dispatched, and some part of the state tree may potentially have changed.
|
|
275
|
-
You may then call <code>getState()</code> to read the current state tree inside the
|
|
276
|
-
callback.</p>
|
|
277
|
-
</div>
|
|
278
|
-
<p>You may call <code>dispatch()</code> from a change listener, with the following
|
|
279
|
-
caveats:</p>
|
|
280
|
-
<ol>
|
|
281
|
-
<li><p>The subscriptions are snapshotted just before every <code>dispatch()</code> call.
|
|
282
|
-
If you subscribe or unsubscribe while the listeners are being invoked,
|
|
283
|
-
this will not have any effect on the <code>dispatch()</code> that is currently in
|
|
284
|
-
progress. However, the next <code>dispatch()</code> call, whether nested or not,
|
|
285
|
-
will use a more recent snapshot of the subscription list.</p>
|
|
286
|
-
</li>
|
|
287
|
-
<li><p>The listener should not expect to see all states changes, as the state
|
|
288
|
-
might have been updated multiple times during a nested <code>dispatch()</code> before
|
|
289
|
-
the listener is called. It is, however, guaranteed that all subscribers
|
|
290
|
-
registered before the <code>dispatch()</code> started will be called with the latest
|
|
291
|
-
state by the time it exits.</p>
|
|
292
|
-
</li>
|
|
293
|
-
</ol>
|
|
294
|
-
</div>
|
|
295
|
-
<h4 class="tsd-parameters-title">Parameters</h4>
|
|
296
|
-
<ul class="tsd-parameters">
|
|
297
|
-
<li>
|
|
298
|
-
<h5>listener: <span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol"> => </span><span class="tsd-signature-type">void</span></h5>
|
|
299
|
-
<div class="tsd-comment tsd-typography">
|
|
300
|
-
<p>A callback to be invoked on every dispatch.</p>
|
|
301
|
-
</div>
|
|
302
|
-
<ul class="tsd-parameters">
|
|
303
|
-
<li class="tsd-parameter-signature">
|
|
304
|
-
<ul class="tsd-signatures tsd-kind-type-literal">
|
|
305
|
-
<li class="tsd-signature tsd-kind-icon"><span class="tsd-signature-symbol">(</span><span class="tsd-signature-symbol">)</span><span class="tsd-signature-symbol">: </span><span class="tsd-signature-type">void</span></li>
|
|
306
|
-
</ul>
|
|
307
|
-
<ul class="tsd-descriptions">
|
|
308
|
-
<li class="tsd-description">
|
|
309
|
-
<h4 class="tsd-returns-title">Returns <span class="tsd-signature-type">void</span></h4>
|
|
310
|
-
</li>
|
|
311
|
-
</ul>
|
|
312
|
-
</li>
|
|
313
|
-
</ul>
|
|
314
|
-
</li>
|
|
315
|
-
</ul>
|
|
316
|
-
<h4 class="tsd-returns-title">Returns <a href="../globals.html#unsubscribe" class="tsd-signature-type">Unsubscribe</a></h4>
|
|
317
|
-
<p>A function to remove this change listener.</p>
|
|
318
|
-
</li>
|
|
319
|
-
</ul>
|
|
320
|
-
</section>
|
|
321
|
-
</section>
|
|
322
|
-
</div>
|
|
323
|
-
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
324
|
-
<nav class="tsd-navigation primary">
|
|
325
|
-
<ul>
|
|
326
|
-
<li class="globals ">
|
|
327
|
-
<a href="../globals.html"><em>Globals</em></a>
|
|
328
|
-
</li>
|
|
329
|
-
</ul>
|
|
330
|
-
</nav>
|
|
331
|
-
<nav class="tsd-navigation secondary menu-sticky">
|
|
332
|
-
<ul class="before-current">
|
|
333
|
-
</ul>
|
|
334
|
-
<ul class="current">
|
|
335
|
-
<li class="current tsd-kind-interface tsd-has-type-parameter">
|
|
336
|
-
<a href="store.html" class="tsd-kind-icon">Store</a>
|
|
337
|
-
<ul>
|
|
338
|
-
<li class=" tsd-kind-property tsd-parent-kind-interface">
|
|
339
|
-
<a href="store.html#dispatch" class="tsd-kind-icon">dispatch</a>
|
|
340
|
-
</li>
|
|
341
|
-
<li class=" tsd-kind-method tsd-parent-kind-interface">
|
|
342
|
-
<a href="store.html#_symbol_observable_" class="tsd-kind-icon">[<wbr>Symbol.observable]</a>
|
|
343
|
-
</li>
|
|
344
|
-
<li class=" tsd-kind-method tsd-parent-kind-interface">
|
|
345
|
-
<a href="store.html#getstate" class="tsd-kind-icon">get<wbr>State</a>
|
|
346
|
-
</li>
|
|
347
|
-
<li class=" tsd-kind-method tsd-parent-kind-interface">
|
|
348
|
-
<a href="store.html#replacereducer" class="tsd-kind-icon">replace<wbr>Reducer</a>
|
|
349
|
-
</li>
|
|
350
|
-
<li class=" tsd-kind-method tsd-parent-kind-interface">
|
|
351
|
-
<a href="store.html#subscribe" class="tsd-kind-icon">subscribe</a>
|
|
352
|
-
</li>
|
|
353
|
-
</ul>
|
|
354
|
-
</li>
|
|
355
|
-
</ul>
|
|
356
|
-
<ul class="after-current">
|
|
357
|
-
</ul>
|
|
358
|
-
</nav>
|
|
359
|
-
</div>
|
|
360
|
-
</div>
|
|
361
|
-
</div>
|
|
362
|
-
<footer class="with-border-bottom">
|
|
363
|
-
<div class="container">
|
|
364
|
-
<h2>Legend</h2>
|
|
365
|
-
<div class="tsd-legend-group">
|
|
366
|
-
<ul class="tsd-legend">
|
|
367
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
|
368
|
-
<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
|
|
369
|
-
</ul>
|
|
370
|
-
<ul class="tsd-legend">
|
|
371
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
|
|
372
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
|
373
|
-
</ul>
|
|
374
|
-
<ul class="tsd-legend">
|
|
375
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
|
|
376
|
-
</ul>
|
|
377
|
-
</div>
|
|
378
|
-
</div>
|
|
379
|
-
</footer>
|
|
380
|
-
<div class="container tsd-generator">
|
|
381
|
-
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
|
|
382
|
-
</div>
|
|
383
|
-
<div class="overlay"></div>
|
|
384
|
-
<script src="../assets/js/main.js"></script>
|
|
385
|
-
</body>
|
|
386
|
-
</html>
|
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
<!doctype html>
|
|
2
|
-
<html class="default no-js">
|
|
3
|
-
<head>
|
|
4
|
-
<meta charset="utf-8">
|
|
5
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
6
|
-
<title>TesterContext | JSON Forms Core</title>
|
|
7
|
-
<meta name="description" content="Documentation for JSON Forms Core">
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
9
|
-
<link rel="stylesheet" href="../assets/css/main.css">
|
|
10
|
-
</head>
|
|
11
|
-
<body>
|
|
12
|
-
<header>
|
|
13
|
-
<div class="tsd-page-toolbar">
|
|
14
|
-
<div class="container">
|
|
15
|
-
<div class="table-wrap">
|
|
16
|
-
<div class="table-cell" id="tsd-search" data-index="../assets/js/search.json" data-base="..">
|
|
17
|
-
<div class="field">
|
|
18
|
-
<label for="tsd-search-field" class="tsd-widget search no-caption">Search</label>
|
|
19
|
-
<input id="tsd-search-field" type="text" />
|
|
20
|
-
</div>
|
|
21
|
-
<ul class="results">
|
|
22
|
-
<li class="state loading">Preparing search index...</li>
|
|
23
|
-
<li class="state failure">The search index is not available</li>
|
|
24
|
-
</ul>
|
|
25
|
-
<a href="../index.html" class="title">JSON Forms Core</a>
|
|
26
|
-
</div>
|
|
27
|
-
<div class="table-cell" id="tsd-widgets">
|
|
28
|
-
<div id="tsd-filter">
|
|
29
|
-
<a href="#" class="tsd-widget options no-caption" data-toggle="options">Options</a>
|
|
30
|
-
<div class="tsd-filter-group">
|
|
31
|
-
<div class="tsd-select" id="tsd-filter-visibility">
|
|
32
|
-
<span class="tsd-select-label">All</span>
|
|
33
|
-
<ul class="tsd-select-list">
|
|
34
|
-
<li data-value="public">Public</li>
|
|
35
|
-
<li data-value="protected">Public/Protected</li>
|
|
36
|
-
<li data-value="private" class="selected">All</li>
|
|
37
|
-
</ul>
|
|
38
|
-
</div>
|
|
39
|
-
<input type="checkbox" id="tsd-filter-inherited" checked />
|
|
40
|
-
<label class="tsd-widget" for="tsd-filter-inherited">Inherited</label>
|
|
41
|
-
<input type="checkbox" id="tsd-filter-only-exported" />
|
|
42
|
-
<label class="tsd-widget" for="tsd-filter-only-exported">Only exported</label>
|
|
43
|
-
</div>
|
|
44
|
-
</div>
|
|
45
|
-
<a href="#" class="tsd-widget menu no-caption" data-toggle="menu">Menu</a>
|
|
46
|
-
</div>
|
|
47
|
-
</div>
|
|
48
|
-
</div>
|
|
49
|
-
</div>
|
|
50
|
-
<div class="tsd-page-title">
|
|
51
|
-
<div class="container">
|
|
52
|
-
<ul class="tsd-breadcrumb">
|
|
53
|
-
<li>
|
|
54
|
-
<a href="../globals.html">Globals</a>
|
|
55
|
-
</li>
|
|
56
|
-
<li>
|
|
57
|
-
<a href="testercontext.html">TesterContext</a>
|
|
58
|
-
</li>
|
|
59
|
-
</ul>
|
|
60
|
-
<h1>Interface TesterContext</h1>
|
|
61
|
-
</div>
|
|
62
|
-
</div>
|
|
63
|
-
</header>
|
|
64
|
-
<div class="container container-main">
|
|
65
|
-
<div class="row">
|
|
66
|
-
<div class="col-8 col-content">
|
|
67
|
-
<section class="tsd-panel tsd-comment">
|
|
68
|
-
<div class="tsd-comment tsd-typography">
|
|
69
|
-
<div class="lead">
|
|
70
|
-
<p>Additional context given to a tester in addition to UISchema and JsonSchema.</p>
|
|
71
|
-
</div>
|
|
72
|
-
</div>
|
|
73
|
-
</section>
|
|
74
|
-
<section class="tsd-panel tsd-hierarchy">
|
|
75
|
-
<h3>Hierarchy</h3>
|
|
76
|
-
<ul class="tsd-hierarchy">
|
|
77
|
-
<li>
|
|
78
|
-
<span class="target">TesterContext</span>
|
|
79
|
-
</li>
|
|
80
|
-
</ul>
|
|
81
|
-
</section>
|
|
82
|
-
<section class="tsd-panel-group tsd-index-group">
|
|
83
|
-
<h2>Index</h2>
|
|
84
|
-
<section class="tsd-panel tsd-index-panel">
|
|
85
|
-
<div class="tsd-index-content">
|
|
86
|
-
<section class="tsd-index-section ">
|
|
87
|
-
<h3>Properties</h3>
|
|
88
|
-
<ul class="tsd-index-list">
|
|
89
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="testercontext.html#config" class="tsd-kind-icon">config</a></li>
|
|
90
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><a href="testercontext.html#rootschema" class="tsd-kind-icon">root<wbr>Schema</a></li>
|
|
91
|
-
</ul>
|
|
92
|
-
</section>
|
|
93
|
-
</div>
|
|
94
|
-
</section>
|
|
95
|
-
</section>
|
|
96
|
-
<section class="tsd-panel-group tsd-member-group ">
|
|
97
|
-
<h2>Properties</h2>
|
|
98
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
|
|
99
|
-
<a name="config" class="tsd-anchor"></a>
|
|
100
|
-
<h3>config</h3>
|
|
101
|
-
<div class="tsd-signature tsd-kind-icon">config<span class="tsd-signature-symbol">:</span> <span class="tsd-signature-type">any</span></div>
|
|
102
|
-
<aside class="tsd-sources">
|
|
103
|
-
<ul>
|
|
104
|
-
<li>Defined in packages/core/src/testers/testers.ts:70</li>
|
|
105
|
-
</ul>
|
|
106
|
-
</aside>
|
|
107
|
-
<div class="tsd-comment tsd-typography">
|
|
108
|
-
<div class="lead">
|
|
109
|
-
<p>The form wide configuration object given to JsonForms.</p>
|
|
110
|
-
</div>
|
|
111
|
-
</div>
|
|
112
|
-
</section>
|
|
113
|
-
<section class="tsd-panel tsd-member tsd-kind-property tsd-parent-kind-interface">
|
|
114
|
-
<a name="rootschema" class="tsd-anchor"></a>
|
|
115
|
-
<h3>root<wbr>Schema</h3>
|
|
116
|
-
<div class="tsd-signature tsd-kind-icon">root<wbr>Schema<span class="tsd-signature-symbol">:</span> <a href="../globals.html#jsonschema" class="tsd-signature-type">JsonSchema</a></div>
|
|
117
|
-
<aside class="tsd-sources">
|
|
118
|
-
<ul>
|
|
119
|
-
<li>Defined in packages/core/src/testers/testers.ts:68</li>
|
|
120
|
-
</ul>
|
|
121
|
-
</aside>
|
|
122
|
-
<div class="tsd-comment tsd-typography">
|
|
123
|
-
<div class="lead">
|
|
124
|
-
<p>The root JsonSchema of the form. Can be used to resolve references.</p>
|
|
125
|
-
</div>
|
|
126
|
-
</div>
|
|
127
|
-
</section>
|
|
128
|
-
</section>
|
|
129
|
-
</div>
|
|
130
|
-
<div class="col-4 col-menu menu-sticky-wrap menu-highlight">
|
|
131
|
-
<nav class="tsd-navigation primary">
|
|
132
|
-
<ul>
|
|
133
|
-
<li class="globals ">
|
|
134
|
-
<a href="../globals.html"><em>Globals</em></a>
|
|
135
|
-
</li>
|
|
136
|
-
</ul>
|
|
137
|
-
</nav>
|
|
138
|
-
<nav class="tsd-navigation secondary menu-sticky">
|
|
139
|
-
<ul class="before-current">
|
|
140
|
-
</ul>
|
|
141
|
-
<ul class="current">
|
|
142
|
-
<li class="current tsd-kind-interface">
|
|
143
|
-
<a href="testercontext.html" class="tsd-kind-icon">Tester<wbr>Context</a>
|
|
144
|
-
<ul>
|
|
145
|
-
<li class=" tsd-kind-property tsd-parent-kind-interface">
|
|
146
|
-
<a href="testercontext.html#config" class="tsd-kind-icon">config</a>
|
|
147
|
-
</li>
|
|
148
|
-
<li class=" tsd-kind-property tsd-parent-kind-interface">
|
|
149
|
-
<a href="testercontext.html#rootschema" class="tsd-kind-icon">root<wbr>Schema</a>
|
|
150
|
-
</li>
|
|
151
|
-
</ul>
|
|
152
|
-
</li>
|
|
153
|
-
</ul>
|
|
154
|
-
<ul class="after-current">
|
|
155
|
-
</ul>
|
|
156
|
-
</nav>
|
|
157
|
-
</div>
|
|
158
|
-
</div>
|
|
159
|
-
</div>
|
|
160
|
-
<footer class="with-border-bottom">
|
|
161
|
-
<div class="container">
|
|
162
|
-
<h2>Legend</h2>
|
|
163
|
-
<div class="tsd-legend-group">
|
|
164
|
-
<ul class="tsd-legend">
|
|
165
|
-
<li class="tsd-kind-property tsd-parent-kind-interface"><span class="tsd-kind-icon">Property</span></li>
|
|
166
|
-
<li class="tsd-kind-method tsd-parent-kind-interface"><span class="tsd-kind-icon">Method</span></li>
|
|
167
|
-
</ul>
|
|
168
|
-
<ul class="tsd-legend">
|
|
169
|
-
<li class="tsd-kind-constructor tsd-parent-kind-class"><span class="tsd-kind-icon">Constructor</span></li>
|
|
170
|
-
<li class="tsd-kind-method tsd-parent-kind-class"><span class="tsd-kind-icon">Method</span></li>
|
|
171
|
-
</ul>
|
|
172
|
-
<ul class="tsd-legend">
|
|
173
|
-
<li class="tsd-kind-property tsd-parent-kind-class tsd-is-private"><span class="tsd-kind-icon">Private property</span></li>
|
|
174
|
-
</ul>
|
|
175
|
-
</div>
|
|
176
|
-
</div>
|
|
177
|
-
</footer>
|
|
178
|
-
<div class="container tsd-generator">
|
|
179
|
-
<p>Generated using <a href="https://typedoc.org/" target="_blank">TypeDoc</a></p>
|
|
180
|
-
</div>
|
|
181
|
-
<div class="overlay"></div>
|
|
182
|
-
<script src="../assets/js/main.js"></script>
|
|
183
|
-
</body>
|
|
184
|
-
</html>
|