@fluxhub/fluxhub-lib 1.0.324 → 1.0.326
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/bundles/fluxhub-fluxhub-lib.umd.js +13721 -13264
- package/bundles/fluxhub-fluxhub-lib.umd.js.map +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js +1 -1
- package/bundles/fluxhub-fluxhub-lib.umd.min.js.map +1 -1
- package/docs/classes/CustomEvent.html +2 -2
- package/docs/classes/FHValueAccessor.html +226 -223
- package/docs/classes/MomentDateAdapter.html +1674 -1675
- package/docs/classes/OfficeOperation.html +4 -4
- package/docs/classes/OfficeResult.html +2 -2
- package/docs/classes/dati_aggiuntivi.html +2811 -2813
- package/docs/classes/dt.html +6 -6
- package/docs/classes/wkfapp.html +907 -908
- package/docs/components/ApprovaGridComponent.html +276 -277
- package/docs/components/ComboBoxEditor.html +227 -228
- package/docs/components/CurrencyComponent.html +88 -89
- package/docs/components/DateComponent.html +226 -227
- package/docs/components/DtPick.html +344 -345
- package/docs/components/FHAutoCompleteComponent.html +1150 -1151
- package/docs/components/FHComboboxComponent.html +712 -713
- package/docs/components/FHConfirmComponent.html +143 -144
- package/docs/components/FHCurrencyFieldComponent.html +619 -620
- package/docs/components/FHDatePickerComponent.html +699 -700
- package/docs/components/FHFieldPickListComponent.html +323 -324
- package/docs/components/FHGridComponent.html +1825 -1827
- package/docs/components/FHGridJSONComponent.html +2110 -2111
- package/docs/components/FHGridToolBarComponent.html +260 -261
- package/docs/components/FHListComponent.html +683 -684
- package/docs/components/FHListPick.html +116 -117
- package/docs/components/FHLogPanelComponent.html +136 -137
- package/docs/components/FHMdReader.html +58 -59
- package/docs/components/FHNumericFieldComponent.html +486 -487
- package/docs/components/FHPickListComponent.html +454 -455
- package/docs/components/FHRichText.html +319 -320
- package/docs/components/FHRoleManager.html +524 -0
- package/docs/components/FHTableManager.html +524 -0
- package/docs/components/FHTimePickerComponent.html +1038 -1039
- package/docs/components/FHUploadComponent.html +286 -287
- package/docs/components/FHUploadPanelComponent.html +301 -302
- package/docs/components/FHUserFieldComponent.html +493 -494
- package/docs/components/FHUserPickerComponent.html +255 -256
- package/docs/components/FHViewerComponent.html +563 -565
- package/docs/components/FHWinComboSelect.html +153 -154
- package/docs/components/FSInput.html +4 -4
- package/docs/components/FSResult.html +3 -3
- package/docs/components/FormBuilderComponent.html +275 -276
- package/docs/components/FormExecuterComponent.html +172 -173
- package/docs/components/NumericEditorComponent.html +219 -220
- package/docs/components/QGParam.html +9 -9
- package/docs/components/QGResult.html +4 -4
- package/docs/components/QParam.html +2 -2
- package/docs/components/QResult.html +3 -3
- package/docs/components/TextAreaEditor.html +225 -226
- package/docs/components/WinAskButtonsComponent.html +87 -88
- package/docs/components/WinAskNumberComponent.html +145 -146
- package/docs/components/WinAskTextBigComponent.html +174 -152
- package/docs/components/WinAskTextComponent.html +145 -146
- package/docs/components/WinOutputComponent.html +120 -121
- package/docs/components/WinWait.html +93 -94
- package/docs/components/fhimagepreview.html +228 -229
- package/docs/components/win_assegna.html +89 -90
- package/docs/components/win_commenti.html +490 -491
- package/docs/components/win_commento_sel_notif.html +146 -147
- package/docs/components/win_conferma.html +90 -91
- package/docs/components/win_grid_help.html +34 -35
- package/docs/components/win_info_doc.html +43 -44
- package/docs/components/win_log.html +545 -546
- package/docs/components/win_manage_roles.html +936 -0
- package/docs/components/win_manage_values.html +1009 -0
- package/docs/components/win_mappa.html +178 -179
- package/docs/components/win_recupera_doc.html +178 -179
- package/docs/components/win_riassegna_select_level.html +145 -146
- package/docs/components/win_riassegna_select_user.html +91 -92
- package/docs/components/win_salva_annulla.html +83 -84
- package/docs/components/win_select_canale.html +61 -62
- package/docs/components/win_select_level.html +168 -169
- package/docs/components/win_show_image.html +33 -34
- package/docs/components/win_time_slider.html +87 -88
- package/docs/components/win_uploads.html +321 -322
- package/docs/components/wkf_header_bar.html +235 -236
- package/docs/coverage.html +49 -1
- package/docs/dependencies.html +39 -39
- package/docs/directives/DecimalMask.html +64 -65
- package/docs/directives/FHCurrencyFormatterDirective.html +76 -78
- package/docs/graph/dependencies.svg +761 -689
- package/docs/guards/FHGuard.html +82 -83
- package/docs/injectables/AppMakerService.html +87 -87
- package/docs/injectables/AppService.html +275 -275
- package/docs/injectables/AuthenticationService.html +512 -512
- package/docs/injectables/FileService.html +87 -87
- package/docs/injectables/GridService.html +101 -101
- package/docs/injectables/HighlightService.html +30 -30
- package/docs/injectables/LocalDBService.html +289 -289
- package/docs/injectables/OdbcService.html +87 -87
- package/docs/injectables/OfficeAutomatorService.html +197 -197
- package/docs/injectables/QueryService.html +110 -110
- package/docs/injectables/UtilityService.html +2467 -2467
- package/docs/injectables/WkfService.html +87 -87
- package/docs/interfaces/FHGridColumn.html +12 -12
- package/docs/interfaces/ImageViewerConfig.html +12 -12
- package/docs/js/libs/lit-html.js +1 -2
- package/docs/js/libs/svg-pan-zoom.min.js +2 -2
- package/docs/js/libs/tablesort.min.js +4 -3
- package/docs/js/libs/tablesort.number.min.js +4 -3
- package/docs/js/libs/vis.min.js +1 -1
- package/docs/js/menu-wc.js +28 -12
- package/docs/js/search/lunr.min.js +6 -1
- package/docs/js/search/search_index.js +2 -2
- package/docs/miscellaneous/variables.html +8 -8
- package/docs/modules/FluxhubLibModule/dependencies.svg +761 -689
- package/docs/modules/FluxhubLibModule.html +844 -749
- package/docs/overview.html +762 -690
- package/docs/pipes/FHCurrencyPipe.html +163 -164
- package/docs/pipes/ReplaceLineBreaks.html +65 -66
- package/docs/pipes/SafePipe.html +80 -81
- package/esm2015/fluxhub-fluxhub-lib.js +4 -2
- package/esm2015/lib/controls/app_manager/fhrolemanager.js +110 -0
- package/esm2015/lib/controls/app_manager/fhtablevaluesmanager.js +110 -0
- package/esm2015/lib/controls/app_manager/win_manage_roles.js +230 -0
- package/esm2015/lib/controls/app_manager/win_manage_values.js +263 -0
- package/esm2015/lib/controls/fhautocomplete.js +1 -1
- package/esm2015/lib/controls/fhuserpicker.js +3 -3
- package/esm2015/lib/controls/win_ask_textbig.js +10 -7
- package/esm2015/lib/fluxhub-lib.module.js +10 -6
- package/esm2015/lib/services/app_maker.service.js +6 -4
- package/esm2015/lib/services/dofile.service.js +5 -3
- package/esm2015/lib/wkf_engine/win_riassegna_select_user.js +2 -2
- package/esm2015/public_api.js +3 -1
- package/esm5/fluxhub-fluxhub-lib.js +4 -2
- package/esm5/lib/controls/app_manager/fhrolemanager.js +97 -0
- package/esm5/lib/controls/app_manager/fhtablevaluesmanager.js +97 -0
- package/esm5/lib/controls/app_manager/win_manage_roles.js +189 -0
- package/esm5/lib/controls/app_manager/win_manage_values.js +214 -0
- package/esm5/lib/controls/fhautocomplete.js +1 -1
- package/esm5/lib/controls/fhuserpicker.js +2 -2
- package/esm5/lib/controls/win_ask_textbig.js +7 -3
- package/esm5/lib/fluxhub-lib.module.js +10 -6
- package/esm5/lib/services/app_maker.service.js +6 -4
- package/esm5/lib/services/dofile.service.js +5 -3
- package/esm5/lib/wkf_engine/win_riassegna_select_user.js +2 -2
- package/esm5/public_api.js +3 -1
- package/fesm2015/fluxhub-fluxhub-lib.js +605 -41
- package/fesm2015/fluxhub-fluxhub-lib.js.map +1 -1
- package/fesm5/fluxhub-fluxhub-lib.js +482 -37
- package/fesm5/fluxhub-fluxhub-lib.js.map +1 -1
- package/fluxhub-fluxhub-lib.d.ts +2 -0
- package/fluxhub-fluxhub-lib.metadata.json +1 -1
- package/lib/controls/app_manager/fhrolemanager.d.ts +16 -0
- package/lib/controls/app_manager/fhtablevaluesmanager.d.ts +16 -0
- package/lib/controls/app_manager/win_manage_roles.d.ts +27 -0
- package/lib/controls/app_manager/win_manage_values.d.ts +27 -0
- package/lib/controls/fhautocomplete.d.ts +1 -1
- package/lib/controls/win_ask_textbig.d.ts +1 -0
- package/package.json +32 -32
- package/public_api.d.ts +2 -0
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
|
|
60
60
|
|
|
61
61
|
|
|
62
|
+
|
|
62
63
|
<section>
|
|
63
64
|
<h3 id="index">Index</h3>
|
|
64
65
|
<table class="table table-sm table-bordered index-table">
|
|
@@ -132,7 +133,7 @@
|
|
|
132
133
|
<td>http</td>
|
|
133
134
|
|
|
134
135
|
<td>
|
|
135
|
-
|
|
136
|
+
<code><a href="https://angular.io/api/common/http/HttpClient" target="_blank" >HttpClient</a></code>
|
|
136
137
|
</td>
|
|
137
138
|
|
|
138
139
|
<td>
|
|
@@ -144,7 +145,7 @@
|
|
|
144
145
|
<td>app_s</td>
|
|
145
146
|
|
|
146
147
|
<td>
|
|
147
|
-
|
|
148
|
+
<code><a href="../injectables/AppService.html" target="_self" >AppService</a></code>
|
|
148
149
|
</td>
|
|
149
150
|
|
|
150
151
|
<td>
|
|
@@ -175,93 +176,92 @@
|
|
|
175
176
|
|
|
176
177
|
<section>
|
|
177
178
|
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
179
|
+
<h3 id="methods">
|
|
180
|
+
Methods
|
|
181
|
+
</h3>
|
|
182
|
+
<table class="table table-sm table-bordered">
|
|
183
|
+
<tbody>
|
|
184
|
+
<tr>
|
|
185
|
+
<td class="col-md-4">
|
|
186
|
+
<a name="doQuery"></a>
|
|
187
|
+
<span class="name">
|
|
188
|
+
<b>
|
|
188
189
|
doQuery
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
190
|
+
</b>
|
|
191
|
+
<a href="#doQuery"><span class="icon ion-ios-link"></span></a>
|
|
192
|
+
</span>
|
|
193
|
+
</td>
|
|
194
|
+
</tr>
|
|
195
|
+
<tr>
|
|
196
|
+
<td class="col-md-4">
|
|
196
197
|
<code>doQuery(queryp: <a href="../components/QParam.html">QParam</a>, displayError: <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank">boolean</a>)</code>
|
|
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
|
-
|
|
198
|
+
</td>
|
|
199
|
+
</tr>
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
|
|
204
|
+
<tr>
|
|
205
|
+
<td class="col-md-4">
|
|
206
|
+
|
|
207
|
+
<div class="io-description">
|
|
208
|
+
<b>Parameters :</b>
|
|
209
|
+
<table class="params">
|
|
210
|
+
<thead>
|
|
211
|
+
<tr>
|
|
212
|
+
<td>Name</td>
|
|
213
|
+
<td>Type</td>
|
|
214
|
+
<td>Optional</td>
|
|
215
|
+
<td>Default value</td>
|
|
216
|
+
</tr>
|
|
217
|
+
</thead>
|
|
218
|
+
<tbody>
|
|
219
|
+
<tr>
|
|
220
|
+
<td>queryp</td>
|
|
221
|
+
<td>
|
|
222
|
+
<code><a href="../components/QParam.html" target="_self" >QParam</a></code>
|
|
223
|
+
</td>
|
|
224
|
+
|
|
225
|
+
<td>
|
|
226
|
+
No
|
|
227
|
+
</td>
|
|
228
|
+
|
|
229
|
+
<td>
|
|
230
|
+
</td>
|
|
231
|
+
|
|
232
|
+
</tr>
|
|
233
|
+
<tr>
|
|
234
|
+
<td>displayError</td>
|
|
235
|
+
<td>
|
|
236
|
+
<code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
237
|
+
</td>
|
|
238
|
+
|
|
239
|
+
<td>
|
|
240
|
+
No
|
|
241
|
+
</td>
|
|
242
|
+
|
|
243
|
+
<td>
|
|
244
|
+
<code>true</code>
|
|
245
|
+
</td>
|
|
246
|
+
|
|
247
|
+
</tr>
|
|
248
|
+
</tbody>
|
|
249
|
+
</table>
|
|
250
|
+
</div>
|
|
251
|
+
<div>
|
|
252
|
+
</div>
|
|
253
|
+
<div class="io-description">
|
|
254
|
+
<b>Returns : </b> <code><a href="../components/QResult.html" target="_self" >Observable<QResult></a></code>
|
|
255
|
+
|
|
256
|
+
</div>
|
|
257
|
+
<div class="io-description">
|
|
258
|
+
|
|
259
|
+
</div>
|
|
260
|
+
</td>
|
|
261
|
+
</tr>
|
|
262
|
+
</tbody>
|
|
263
|
+
</table>
|
|
263
264
|
</section>
|
|
264
|
-
|
|
265
265
|
<section>
|
|
266
266
|
|
|
267
267
|
<h3 id="inputs">
|
|
@@ -281,7 +281,7 @@
|
|
|
281
281
|
</tr>
|
|
282
282
|
<tr>
|
|
283
283
|
<td class="col-md-4">
|
|
284
|
-
<i>Type : </i>
|
|
284
|
+
<i>Type : </i> <code><a href="https://angular.io/api/common/http/HttpHeaders" target="_blank" >HttpHeaders</a></code>
|
|
285
285
|
|
|
286
286
|
</td>
|
|
287
287
|
</tr>
|
|
@@ -123,7 +123,7 @@
|
|
|
123
123
|
</tr>
|
|
124
124
|
<tr>
|
|
125
125
|
<td class="col-md-4">
|
|
126
|
-
<code>cellRenderer:
|
|
126
|
+
<code>cellRenderer: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/function" target="_blank" >function</a></code>
|
|
127
127
|
</code>
|
|
128
128
|
</td>
|
|
129
129
|
</tr>
|
|
@@ -131,7 +131,7 @@
|
|
|
131
131
|
|
|
132
132
|
<tr>
|
|
133
133
|
<td class="col-md-4">
|
|
134
|
-
<i>Type : </i>
|
|
134
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/function" target="_blank" >function</a></code>
|
|
135
135
|
|
|
136
136
|
</td>
|
|
137
137
|
</tr>
|
|
@@ -157,7 +157,7 @@
|
|
|
157
157
|
</tr>
|
|
158
158
|
<tr>
|
|
159
159
|
<td class="col-md-4">
|
|
160
|
-
<code>cellStyle:
|
|
160
|
+
<code>cellStyle: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/function" target="_blank" >function</a></code>
|
|
161
161
|
</code>
|
|
162
162
|
</td>
|
|
163
163
|
</tr>
|
|
@@ -165,7 +165,7 @@
|
|
|
165
165
|
|
|
166
166
|
<tr>
|
|
167
167
|
<td class="col-md-4">
|
|
168
|
-
<i>Type : </i>
|
|
168
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/function" target="_blank" >function</a></code>
|
|
169
169
|
|
|
170
170
|
</td>
|
|
171
171
|
</tr>
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
</tr>
|
|
192
192
|
<tr>
|
|
193
193
|
<td class="col-md-4">
|
|
194
|
-
<code>editable:
|
|
194
|
+
<code>editable: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
195
195
|
</code>
|
|
196
196
|
</td>
|
|
197
197
|
</tr>
|
|
@@ -199,7 +199,7 @@
|
|
|
199
199
|
|
|
200
200
|
<tr>
|
|
201
201
|
<td class="col-md-4">
|
|
202
|
-
<i>Type : </i>
|
|
202
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
203
203
|
|
|
204
204
|
</td>
|
|
205
205
|
</tr>
|
|
@@ -225,7 +225,7 @@
|
|
|
225
225
|
</tr>
|
|
226
226
|
<tr>
|
|
227
227
|
<td class="col-md-4">
|
|
228
|
-
<code>field:
|
|
228
|
+
<code>field: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
229
229
|
</code>
|
|
230
230
|
</td>
|
|
231
231
|
</tr>
|
|
@@ -233,7 +233,7 @@
|
|
|
233
233
|
|
|
234
234
|
<tr>
|
|
235
235
|
<td class="col-md-4">
|
|
236
|
-
<i>Type : </i>
|
|
236
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
237
237
|
|
|
238
238
|
</td>
|
|
239
239
|
</tr>
|
|
@@ -254,7 +254,7 @@
|
|
|
254
254
|
</tr>
|
|
255
255
|
<tr>
|
|
256
256
|
<td class="col-md-4">
|
|
257
|
-
<code>filter:
|
|
257
|
+
<code>filter: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
258
258
|
</code>
|
|
259
259
|
</td>
|
|
260
260
|
</tr>
|
|
@@ -262,7 +262,7 @@
|
|
|
262
262
|
|
|
263
263
|
<tr>
|
|
264
264
|
<td class="col-md-4">
|
|
265
|
-
<i>Type : </i>
|
|
265
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
266
266
|
|
|
267
267
|
</td>
|
|
268
268
|
</tr>
|
|
@@ -322,7 +322,7 @@
|
|
|
322
322
|
</tr>
|
|
323
323
|
<tr>
|
|
324
324
|
<td class="col-md-4">
|
|
325
|
-
<code>headerName:
|
|
325
|
+
<code>headerName: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
326
326
|
</code>
|
|
327
327
|
</td>
|
|
328
328
|
</tr>
|
|
@@ -330,7 +330,7 @@
|
|
|
330
330
|
|
|
331
331
|
<tr>
|
|
332
332
|
<td class="col-md-4">
|
|
333
|
-
<i>Type : </i>
|
|
333
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
334
334
|
|
|
335
335
|
</td>
|
|
336
336
|
</tr>
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
</tr>
|
|
134
134
|
<tr>
|
|
135
135
|
<td class="col-md-4">
|
|
136
|
-
<code>allowFullscreen:
|
|
136
|
+
<code>allowFullscreen: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
137
137
|
</code>
|
|
138
138
|
</td>
|
|
139
139
|
</tr>
|
|
@@ -141,7 +141,7 @@
|
|
|
141
141
|
|
|
142
142
|
<tr>
|
|
143
143
|
<td class="col-md-4">
|
|
144
|
-
<i>Type : </i>
|
|
144
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
145
145
|
|
|
146
146
|
</td>
|
|
147
147
|
</tr>
|
|
@@ -167,7 +167,7 @@
|
|
|
167
167
|
</tr>
|
|
168
168
|
<tr>
|
|
169
169
|
<td class="col-md-4">
|
|
170
|
-
<code>allowKeyboardNavigation:
|
|
170
|
+
<code>allowKeyboardNavigation: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
171
171
|
</code>
|
|
172
172
|
</td>
|
|
173
173
|
</tr>
|
|
@@ -175,7 +175,7 @@
|
|
|
175
175
|
|
|
176
176
|
<tr>
|
|
177
177
|
<td class="col-md-4">
|
|
178
|
-
<i>Type : </i>
|
|
178
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
179
179
|
|
|
180
180
|
</td>
|
|
181
181
|
</tr>
|
|
@@ -201,7 +201,7 @@
|
|
|
201
201
|
</tr>
|
|
202
202
|
<tr>
|
|
203
203
|
<td class="col-md-4">
|
|
204
|
-
<code>btnClass:
|
|
204
|
+
<code>btnClass: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
205
205
|
</code>
|
|
206
206
|
</td>
|
|
207
207
|
</tr>
|
|
@@ -209,7 +209,7 @@
|
|
|
209
209
|
|
|
210
210
|
<tr>
|
|
211
211
|
<td class="col-md-4">
|
|
212
|
-
<i>Type : </i>
|
|
212
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
213
213
|
|
|
214
214
|
</td>
|
|
215
215
|
</tr>
|
|
@@ -303,7 +303,7 @@
|
|
|
303
303
|
</tr>
|
|
304
304
|
<tr>
|
|
305
305
|
<td class="col-md-4">
|
|
306
|
-
<code>containerBackgroundColor:
|
|
306
|
+
<code>containerBackgroundColor: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
307
307
|
</code>
|
|
308
308
|
</td>
|
|
309
309
|
</tr>
|
|
@@ -311,7 +311,7 @@
|
|
|
311
311
|
|
|
312
312
|
<tr>
|
|
313
313
|
<td class="col-md-4">
|
|
314
|
-
<i>Type : </i>
|
|
314
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/string" target="_blank" >string</a></code>
|
|
315
315
|
|
|
316
316
|
</td>
|
|
317
317
|
</tr>
|
|
@@ -371,7 +371,7 @@
|
|
|
371
371
|
</tr>
|
|
372
372
|
<tr>
|
|
373
373
|
<td class="col-md-4">
|
|
374
|
-
<code>wheelZoom:
|
|
374
|
+
<code>wheelZoom: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
375
375
|
</code>
|
|
376
376
|
</td>
|
|
377
377
|
</tr>
|
|
@@ -379,7 +379,7 @@
|
|
|
379
379
|
|
|
380
380
|
<tr>
|
|
381
381
|
<td class="col-md-4">
|
|
382
|
-
<i>Type : </i>
|
|
382
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/boolean" target="_blank" >boolean</a></code>
|
|
383
383
|
|
|
384
384
|
</td>
|
|
385
385
|
</tr>
|
|
@@ -405,7 +405,7 @@
|
|
|
405
405
|
</tr>
|
|
406
406
|
<tr>
|
|
407
407
|
<td class="col-md-4">
|
|
408
|
-
<code>zoomFactor:
|
|
408
|
+
<code>zoomFactor: <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code>
|
|
409
409
|
</code>
|
|
410
410
|
</td>
|
|
411
411
|
</tr>
|
|
@@ -413,7 +413,7 @@
|
|
|
413
413
|
|
|
414
414
|
<tr>
|
|
415
415
|
<td class="col-md-4">
|
|
416
|
-
<i>Type : </i>
|
|
416
|
+
<i>Type : </i> <code><a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/number" target="_blank" >number</a></code>
|
|
417
417
|
|
|
418
418
|
</td>
|
|
419
419
|
</tr>
|
package/docs/js/libs/lit-html.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
// lit-html v0.10.0 | © Polymer team
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.lithtml={})}(this,function(e){"use strict";var t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n=function e(t,n,r){null===t&&(t=Function.prototype);var i=Object.getOwnPropertyDescriptor(t,n);if(void 0===i){var o=Object.getPrototypeOf(t);return null===o?void 0:e(o,n,r)}if("value"in i)return i.value;var a=i.get;return void 0!==a?a.call(r):void 0},r=function(){function e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}return function(t,n,r){return n&&e(t.prototype,n),r&&e(t,r),t}}();function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var o=new Map,a=function(){function e(t,n,r){var o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:x;i(this,e),this.strings=t,this.values=n,this.type=r,this.partCallback=o}return r(e,[{key:"getHTML",value:function(){for(var e,t,n=this.strings.length-1,r="",i=!0,o=0;o<n;o++){var a=this.strings[o];r+=a;var s=(void 0,void 0,t=(e=a).lastIndexOf(">"),e.indexOf("<",t+1)>-1?e.length:t);r+=(i=s>-1?s<a.length:i)?c:u}return r+=this.strings[n]}},{key:"getTemplateElement",value:function(){var e=document.createElement("template");return e.innerHTML=this.getHTML(),e}}]),e}(),s=function(e){function t(){return i(this,t),function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,a),r(t,[{key:"getHTML",value:function(){return"<svg>"+n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getHTML",this).call(this)+"</svg>"}},{key:"getTemplateElement",value:function(){var e=n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"getTemplateElement",this).call(this),r=e.content,i=r.firstChild;return r.removeChild(i),T(r,i.firstChild),e}}]),t}();function l(e){var t=o.get(e.type);void 0===t&&(t=new Map,o.set(e.type,t));var n=t.get(e.strings);return void 0===n&&(n=new v(e,e.getTemplateElement()),t.set(e.strings,n)),n}var u="{{lit-"+String(Math.random()).slice(2)+"}}",c="\x3c!--"+u+"--\x3e",h=new RegExp(u+"|"+c),f=/[ \x09\x0a\x0c\x0d]([^\0-\x1F\x7F-\x9F \x09\x0a\x0c\x0d"'>=/]+)[ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*)$/;var p=function e(t,n,r,o,a){i(this,e),this.type=t,this.index=n,this.name=r,this.rawName=o,this.strings=a},v=function e(t,n){i(this,e),this.parts=[],this.element=n;for(var r=this.element.content,o=document.createTreeWalker(r,133,null,!1),a=-1,s=0,l=[],c=void 0,v=void 0;o.nextNode();){a++,c=v;var d=v=o.currentNode;if(1===d.nodeType){if(!d.hasAttributes())continue;for(var y=d.attributes,m=0,_=0;_<y.length;_++)y[_].value.indexOf(u)>=0&&m++;for(;m-- >0;){var g=t.strings[s],b=f.exec(g)[1],x=y.getNamedItem(b),N=x.value.split(h);this.parts.push(new p("attribute",a,x.name,b,N)),d.removeAttribute(x.name),s+=N.length-1}}else if(3===d.nodeType){var T=d.nodeValue;if(T.indexOf(u)<0)continue;var w=d.parentNode,V=T.split(h),k=V.length-1;s+=k;for(var O=0;O<k;O++)w.insertBefore(""===V[O]?document.createComment(""):document.createTextNode(V[O]),d),this.parts.push(new p("node",a++));w.insertBefore(""===V[k]?document.createComment(""):document.createTextNode(V[k]),d),l.push(d)}else if(8===d.nodeType&&d.nodeValue===u){var S=d.parentNode,C=d.previousSibling;null===C||C!==c||C.nodeType!==Node.TEXT_NODE?S.insertBefore(document.createComment(""),d):a--,this.parts.push(new p("node",a++)),l.push(d),null===d.nextSibling?S.insertBefore(document.createComment(""),d):a--,v=c,s++}}var P=!0,j=!1,A=void 0;try{for(var E,M=l[Symbol.iterator]();!(P=(E=M.next()).done);P=!0){var I=E.value;I.parentNode.removeChild(I)}}catch(e){j=!0,A=e}finally{try{!P&&M.return&&M.return()}finally{if(j)throw A}}},d=function(e,t){return y(t)?(t=t(e),m):null===t?void 0:t},y=function(e){return"function"==typeof e&&!0===e.__litDirective},m={},_=function(e){return null===e||!("object"===(void 0===e?"undefined":t(e))||"function"==typeof e)},g=function(){function e(t,n,r,o){i(this,e),this.instance=t,this.element=n,this.name=r,this.strings=o,this.size=o.length-1,this._previousValues=[]}return r(e,[{key:"_interpolate",value:function(e,t){for(var n=this.strings,r=n.length-1,i="",o=0;o<r;o++){i+=n[o];var a=d(this,e[t+o]);if(a&&a!==m&&(Array.isArray(a)||"string"!=typeof a&&a[Symbol.iterator])){var s=!0,l=!1,u=void 0;try{for(var c,h=a[Symbol.iterator]();!(s=(c=h.next()).done);s=!0){i+=c.value}}catch(e){l=!0,u=e}finally{try{!s&&h.return&&h.return()}finally{if(l)throw u}}}else i+=a}return i+n[r]}},{key:"_equalToPreviousValues",value:function(e,t){for(var n=t;n<t+this.size;n++)if(this._previousValues[n]!==e[n]||!_(e[n]))return!1;return!0}},{key:"setValue",value:function(e,t){if(!this._equalToPreviousValues(e,t)){var n=this.strings,r=void 0;2===n.length&&""===n[0]&&""===n[1]?(r=d(this,e[t]),Array.isArray(r)&&(r=r.join(""))):r=this._interpolate(e,t),r!==m&&this.element.setAttribute(this.name,r),this._previousValues=e}}}]),e}(),b=function(){function e(t,n,r){i(this,e),this.instance=t,this.startNode=n,this.endNode=r,this._previousValue=void 0}return r(e,[{key:"setValue",value:function(e){if((e=d(this,e))!==m)if(_(e)){if(e===this._previousValue)return;this._setText(e)}else e instanceof a?this._setTemplateResult(e):Array.isArray(e)||e[Symbol.iterator]?this._setIterable(e):e instanceof Node?this._setNode(e):void 0!==e.then?this._setPromise(e):this._setText(e)}},{key:"_insert",value:function(e){this.endNode.parentNode.insertBefore(e,this.endNode)}},{key:"_setNode",value:function(e){this._previousValue!==e&&(this.clear(),this._insert(e),this._previousValue=e)}},{key:"_setText",value:function(e){var t=this.startNode.nextSibling;e=void 0===e?"":e,t===this.endNode.previousSibling&&t.nodeType===Node.TEXT_NODE?t.textContent=e:this._setNode(document.createTextNode(e)),this._previousValue=e}},{key:"_setTemplateResult",value:function(e){var t=this.instance._getTemplate(e),n=void 0;this._previousValue&&this._previousValue.template===t?n=this._previousValue:(n=new N(t,this.instance._partCallback,this.instance._getTemplate),this._setNode(n._clone()),this._previousValue=n),n.update(e.values)}},{key:"_setIterable",value:function(t){Array.isArray(this._previousValue)||(this.clear(),this._previousValue=[]);var n=this._previousValue,r=0,i=!0,o=!1,a=void 0;try{for(var s,l=t[Symbol.iterator]();!(i=(s=l.next()).done);i=!0){var u=s.value,c=n[r];if(void 0===c){var h=this.startNode;if(r>0)h=n[r-1].endNode=document.createTextNode(""),this._insert(h);c=new e(this.instance,h,this.endNode),n.push(c)}c.setValue(u),r++}}catch(e){o=!0,a=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw a}}if(0===r)this.clear(),this._previousValue=void 0;else if(r<n.length){var f=n[r-1];n.length=r,this.clear(f.endNode.previousSibling),f.endNode=this.endNode}}},{key:"_setPromise",value:function(e){var t=this;this._previousValue=e,e.then(function(n){t._previousValue===e&&t.setValue(n)})}},{key:"clear",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.startNode;w(this.startNode.parentNode,e.nextSibling,this.endNode)}}]),e}(),x=function(e,t,n){if("attribute"===t.type)return new g(e,n,t.name,t.strings);if("node"===t.type)return new b(e,n,n.nextSibling);throw new Error("Unknown part type "+t.type)},N=function(){function e(t,n,r){i(this,e),this._parts=[],this.template=t,this._partCallback=n,this._getTemplate=r}return r(e,[{key:"update",value:function(e){var t=0,n=!0,r=!1,i=void 0;try{for(var o,a=this._parts[Symbol.iterator]();!(n=(o=a.next()).done);n=!0){var s=o.value;void 0===s.size?(s.setValue(e[t]),t++):(s.setValue(e,t),t+=s.size)}}catch(e){r=!0,i=e}finally{try{!n&&a.return&&a.return()}finally{if(r)throw i}}}},{key:"_clone",value:function(){var e=document.importNode(this.template.element.content,!0),t=this.template.parts;if(t.length>0)for(var n=document.createTreeWalker(e,133,null,!1),r=-1,i=0;i<t.length;i++){for(var o=t[i];r<o.index;)r++,n.nextNode();this._parts.push(this._partCallback(this,o,n.currentNode))}return e}}]),e}(),T=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,i=t;i!==n;){var o=i.nextSibling;e.insertBefore(i,r),i=o}},w=function(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=t;r!==n;){var i=r.nextSibling;e.removeChild(r),r=i}};e.templateCaches=o,e.html=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new a(e,n,"html")},e.svg=function(e){for(var t=arguments.length,n=Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new s(e,n,"svg")},e.TemplateResult=a,e.SVGTemplateResult=s,e.defaultTemplateFactory=l,e.render=function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,r=n(e),i=t.__templateInstance;if(void 0===i||i.template!==r||i._partCallback!==e.partCallback){i=new N(r,e.partCallback,n),t.__templateInstance=i;var o=i._clone();i.update(e.values),w(t,t.firstChild),t.appendChild(o)}else i.update(e.values)},e.TemplatePart=p,e.Template=v,e.getValue=d,e.directive=function(e){return e.__litDirective=!0,e},e.directiveValue=m,e.AttributePart=g,e.NodePart=b,e.defaultPartCallback=x,e.TemplateInstance=N,e.reparentNodes=T,e.removeNodes=w,Object.defineProperty(e,"__esModule",{value:!0})});
|
|
1
|
+
"use strict";function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call}return _assertThisInitialized(self)}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called")}return self}function _get(target,property,receiver){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(receiver)}return desc.value}}return _get(target,property,receiver||target)}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break}return object}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o)};return _getPrototypeOf(o)}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function")}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});if(superClass)_setPrototypeOf(subClass,superClass)}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf||function _setPrototypeOf(o,p){o.__proto__=p;return o};return _setPrototypeOf(o,p)}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function _iterableToArray(iter){if(Symbol.iterator in Object(iter)||Object.prototype.toString.call(iter)==="[object Arguments]")return Array.from(iter)}function _arrayWithoutHoles(arr){if(Array.isArray(arr)){for(var i=0,arr2=new Array(arr.length);i<arr.length;i++){arr2[i]=arr[i]}return arr2}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,descriptor.key,descriptor)}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);return Constructor}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function")}}function _typeof(obj){if(typeof Symbol==="function"&&typeof Symbol.iterator==="symbol"){_typeof=function _typeof(obj){return typeof obj}}else{_typeof=function _typeof(obj){return obj&&typeof Symbol==="function"&&obj.constructor===Symbol&&obj!==Symbol.prototype?"symbol":typeof obj}}return _typeof(obj)}!function(t,e){"object"==(typeof exports==="undefined"?"undefined":_typeof(exports))&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t=t||self).lithtml={})}(void 0,function(t){"use strict";var e=new WeakMap,s=function s(t){return"function"==typeof t&&e.has(t)},i=void 0!==window.customElements&&void 0!==window.customElements.polyfillWrapFlushCallback,n=function n(t,e){var s=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var i=arguments.length>3&&arguments[3]!==undefined?arguments[3]:null;var n=e;for(;n!==s;){var _e=n.nextSibling;t.insertBefore(n,i),n=_e}},o=function o(t,e){var s=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var i=e;for(;i!==s;){var _e2=i.nextSibling;t.removeChild(i),i=_e2}},r={},a={},l="{{lit-".concat(String(Math.random()).slice(2),"}}"),h="\x3c!--".concat(l,"--\x3e"),d=new RegExp("".concat(l,"|").concat(h)),c="$lit$";var u=function u(t,e){var _this=this;_classCallCheck(this,u);this.parts=[],this.element=e;var s=-1,i=0;var n=[],o=function o(e){var r=e.content,a=document.createTreeWalker(r,133,null,!1);var h=0;for(;a.nextNode();){s++;var _e3=a.currentNode;if(1===_e3.nodeType){if(_e3.hasAttributes()){var _n=_e3.attributes;var _o=0;for(var _t=0;_t<_n.length;_t++){_n[_t].value.indexOf(l)>=0&&_o++}for(;_o-- >0;){var _n2=t.strings[i],_o2=g.exec(_n2)[2],_r=_o2.toLowerCase()+c,_a=_e3.getAttribute(_r).split(d);_this.parts.push({type:"attribute",index:s,name:_o2,strings:_a}),_e3.removeAttribute(_r),i+=_a.length-1}}"TEMPLATE"===_e3.tagName&&o(_e3)}else if(3===_e3.nodeType){var _t2=_e3.data;if(_t2.indexOf(l)>=0){var _o3=_e3.parentNode,_r2=_t2.split(d),_a2=_r2.length-1;for(var _t3=0;_t3<_a2;_t3++){_o3.insertBefore(""===_r2[_t3]?m():document.createTextNode(_r2[_t3]),_e3),_this.parts.push({type:"node",index:++s})}""===_r2[_a2]?(_o3.insertBefore(m(),_e3),n.push(_e3)):_e3.data=_r2[_a2],i+=_a2}}else if(8===_e3.nodeType)if(_e3.data===l){var _t4=_e3.parentNode;null!==_e3.previousSibling&&s!==h||(s++,_t4.insertBefore(m(),_e3)),h=s,_this.parts.push({type:"node",index:s}),null===_e3.nextSibling?_e3.data="":(n.push(_e3),s--),i++}else{var _t5=-1;for(;-1!==(_t5=_e3.data.indexOf(l,_t5+1));){_this.parts.push({type:"node",index:-1})}}}};o(e);for(var _i=0;_i<n.length;_i++){var _t6=n[_i];_t6.parentNode.removeChild(_t6)}};var p=function p(t){return-1!==t.index},m=function m(){return document.createComment("")},g=/([ \x09\x0a\x0c\x0d])([^\0-\x1F\x7F-\x9F \x09\x0a\x0c\x0d"'>=\/]+)([ \x09\x0a\x0c\x0d]*=[ \x09\x0a\x0c\x0d]*(?:[^ \x09\x0a\x0c\x0d"'`<>=]*|"[^"]*|'[^']*))$/;var v=function(){function v(t,e,s){_classCallCheck(this,v);this._parts=[],this.template=t,this.processor=e,this.options=s}_createClass(v,[{key:"update",value:function update(t){var e=0;var _iteratorNormalCompletion=true;var _didIteratorError=false;var _iteratorError=undefined;try{for(var _iterator=this._parts[Symbol.iterator](),_step;!(_iteratorNormalCompletion=(_step=_iterator.next()).done);_iteratorNormalCompletion=true){var _s=_step.value;void 0!==_s&&_s.setValue(t[e]),e++}}catch(err){_didIteratorError=true;_iteratorError=err}finally{try{if(!_iteratorNormalCompletion&&_iterator.return!=null){_iterator.return()}}finally{if(_didIteratorError){throw _iteratorError}}}var _iteratorNormalCompletion2=true;var _didIteratorError2=false;var _iteratorError2=undefined;try{for(var _iterator2=this._parts[Symbol.iterator](),_step2;!(_iteratorNormalCompletion2=(_step2=_iterator2.next()).done);_iteratorNormalCompletion2=true){var _t7=_step2.value;void 0!==_t7&&_t7.commit()}}catch(err){_didIteratorError2=true;_iteratorError2=err}finally{try{if(!_iteratorNormalCompletion2&&_iterator2.return!=null){_iterator2.return()}}finally{if(_didIteratorError2){throw _iteratorError2}}}}},{key:"_clone",value:function _clone(){var _this2=this;var t=i?this.template.element.content.cloneNode(!0):document.importNode(this.template.element.content,!0),e=this.template.parts;var s=0,n=0;var o=function o(t){var i=document.createTreeWalker(t,133,null,!1);var r=i.nextNode();for(;s<e.length&&null!==r;){var _t8=e[s];if(p(_t8)){if(n===_t8.index){var _this2$_parts;if("node"===_t8.type){var _t9=_this2.processor.handleTextExpression(_this2.options);_t9.insertAfterNode(r.previousSibling),_this2._parts.push(_t9)}else(_this2$_parts=_this2._parts).push.apply(_this2$_parts,_toConsumableArray(_this2.processor.handleAttributeExpressions(r,_t8.name,_t8.strings,_this2.options)));s++}else n++,"TEMPLATE"===r.nodeName&&o(r.content),r=i.nextNode()}else _this2._parts.push(void 0),s++}};return o(t),i&&(document.adoptNode(t),customElements.upgrade(t)),t}}]);return v}();var f=function(){function f(t,e,s,i){_classCallCheck(this,f);this.strings=t,this.values=e,this.type=s,this.processor=i}_createClass(f,[{key:"getHTML",value:function getHTML(){var t=this.strings.length-1;var e="";for(var _s2=0;_s2<t;_s2++){var _t10=this.strings[_s2],_i2=g.exec(_t10);e+=_i2?_t10.substr(0,_i2.index)+_i2[1]+_i2[2]+c+_i2[3]+l:_t10+h}return e+this.strings[t]}},{key:"getTemplateElement",value:function getTemplateElement(){var t=document.createElement("template");return t.innerHTML=this.getHTML(),t}}]);return f}();var x=function(_f){_inherits(x,_f);function x(){_classCallCheck(this,x);return _possibleConstructorReturn(this,_getPrototypeOf(x).apply(this,arguments))}_createClass(x,[{key:"getHTML",value:function getHTML(){return"<svg>".concat(_get(_getPrototypeOf(x.prototype),"getHTML",this).call(this),"</svg>")}},{key:"getTemplateElement",value:function getTemplateElement(){var t=_get(_getPrototypeOf(x.prototype),"getTemplateElement",this).call(this),e=t.content,s=e.firstChild;return e.removeChild(s),n(e,s.firstChild),t}}]);return x}(f);var _=function _(t){return null===t||!("object"==_typeof(t)||"function"==typeof t)};var y=function(){function y(t,e,s){_classCallCheck(this,y);this.dirty=!0,this.element=t,this.name=e,this.strings=s,this.parts=[];for(var _t11=0;_t11<s.length-1;_t11++){this.parts[_t11]=this._createPart()}}_createClass(y,[{key:"_createPart",value:function _createPart(){return new N(this)}},{key:"_getValue",value:function _getValue(){var t=this.strings,e=t.length-1;var s="";for(var _i3=0;_i3<e;_i3++){s+=t[_i3];var _e4=this.parts[_i3];if(void 0!==_e4){var _t12=_e4.value;if(null!=_t12&&(Array.isArray(_t12)||"string"!=typeof _t12&&_t12[Symbol.iterator])){var _iteratorNormalCompletion3=true;var _didIteratorError3=false;var _iteratorError3=undefined;try{for(var _iterator3=_t12[Symbol.iterator](),_step3;!(_iteratorNormalCompletion3=(_step3=_iterator3.next()).done);_iteratorNormalCompletion3=true){var _e5=_step3.value;s+="string"==typeof _e5?_e5:String(_e5)}}catch(err){_didIteratorError3=true;_iteratorError3=err}finally{try{if(!_iteratorNormalCompletion3&&_iterator3.return!=null){_iterator3.return()}}finally{if(_didIteratorError3){throw _iteratorError3}}}}else s+="string"==typeof _t12?_t12:String(_t12)}}return s+=t[e]}},{key:"commit",value:function commit(){this.dirty&&(this.dirty=!1,this.element.setAttribute(this.name,this._getValue()))}}]);return y}();var N=function(){function N(t){_classCallCheck(this,N);this.value=void 0,this.committer=t}_createClass(N,[{key:"setValue",value:function setValue(t){t===r||_(t)&&t===this.value||(this.value=t,s(t)||(this.committer.dirty=!0))}},{key:"commit",value:function commit(){for(;s(this.value);){var _t13=this.value;this.value=r,_t13(this)}this.value!==r&&this.committer.commit()}}]);return N}();var V=function(){function V(t){_classCallCheck(this,V);this.value=void 0,this._pendingValue=void 0,this.options=t}_createClass(V,[{key:"appendInto",value:function appendInto(t){this.startNode=t.appendChild(m()),this.endNode=t.appendChild(m())}},{key:"insertAfterNode",value:function insertAfterNode(t){this.startNode=t,this.endNode=t.nextSibling}},{key:"appendIntoPart",value:function appendIntoPart(t){t._insert(this.startNode=m()),t._insert(this.endNode=m())}},{key:"insertAfterPart",value:function insertAfterPart(t){t._insert(this.startNode=m()),this.endNode=t.endNode,t.endNode=this.startNode}},{key:"setValue",value:function setValue(t){this._pendingValue=t}},{key:"commit",value:function commit(){for(;s(this._pendingValue);){var _t14=this._pendingValue;this._pendingValue=r,_t14(this)}var t=this._pendingValue;t!==r&&(_(t)?t!==this.value&&this._commitText(t):t instanceof f?this._commitTemplateResult(t):t instanceof Node?this._commitNode(t):Array.isArray(t)||t[Symbol.iterator]?this._commitIterable(t):t===a?(this.value=a,this.clear()):this._commitText(t))}},{key:"_insert",value:function _insert(t){this.endNode.parentNode.insertBefore(t,this.endNode)}},{key:"_commitNode",value:function _commitNode(t){this.value!==t&&(this.clear(),this._insert(t),this.value=t)}},{key:"_commitText",value:function _commitText(t){var e=this.startNode.nextSibling;t=null==t?"":t,e===this.endNode.previousSibling&&3===e.nodeType?e.data=t:this._commitNode(document.createTextNode("string"==typeof t?t:String(t))),this.value=t}},{key:"_commitTemplateResult",value:function _commitTemplateResult(t){var e=this.options.templateFactory(t);if(this.value instanceof v&&this.value.template===e)this.value.update(t.values);else{var _s3=new v(e,t.processor,this.options),_i4=_s3._clone();_s3.update(t.values),this._commitNode(_i4),this.value=_s3}}},{key:"_commitIterable",value:function _commitIterable(t){Array.isArray(this.value)||(this.value=[],this.clear());var e=this.value;var s,i=0;var _iteratorNormalCompletion4=true;var _didIteratorError4=false;var _iteratorError4=undefined;try{for(var _iterator4=t[Symbol.iterator](),_step4;!(_iteratorNormalCompletion4=(_step4=_iterator4.next()).done);_iteratorNormalCompletion4=true){var _n3=_step4.value;void 0===(s=e[i])&&(s=new V(this.options),e.push(s),0===i?s.appendIntoPart(this):s.insertAfterPart(e[i-1])),s.setValue(_n3),s.commit(),i++}}catch(err){_didIteratorError4=true;_iteratorError4=err}finally{try{if(!_iteratorNormalCompletion4&&_iterator4.return!=null){_iterator4.return()}}finally{if(_didIteratorError4){throw _iteratorError4}}}i<e.length&&(e.length=i,this.clear(s&&s.endNode))}},{key:"clear",value:function clear(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.startNode;o(this.startNode.parentNode,t.nextSibling,this.endNode)}}]);return V}();var b=function(){function b(t,e,s){_classCallCheck(this,b);if(this.value=void 0,this._pendingValue=void 0,2!==s.length||""!==s[0]||""!==s[1])throw new Error("Boolean attributes can only contain a single expression");this.element=t,this.name=e,this.strings=s}_createClass(b,[{key:"setValue",value:function setValue(t){this._pendingValue=t}},{key:"commit",value:function commit(){for(;s(this._pendingValue);){var _t15=this._pendingValue;this._pendingValue=r,_t15(this)}if(this._pendingValue===r)return;var t=!!this._pendingValue;this.value!==t&&(t?this.element.setAttribute(this.name,""):this.element.removeAttribute(this.name)),this.value=t,this._pendingValue=r}}]);return b}();var w=function(_y){_inherits(w,_y);function w(t,e,s){var _this3;_classCallCheck(this,w);_this3=_possibleConstructorReturn(this,_getPrototypeOf(w).call(this,t,e,s)),_this3.single=2===s.length&&""===s[0]&&""===s[1];return _this3}_createClass(w,[{key:"_createPart",value:function _createPart(){return new T(this)}},{key:"_getValue",value:function _getValue(){return this.single?this.parts[0].value:_get(_getPrototypeOf(w.prototype),"_getValue",this).call(this)}},{key:"commit",value:function commit(){this.dirty&&(this.dirty=!1,this.element[this.name]=this._getValue())}}]);return w}(y);var T=function(_N){_inherits(T,_N);function T(){_classCallCheck(this,T);return _possibleConstructorReturn(this,_getPrototypeOf(T).apply(this,arguments))}return T}(N);var E=!1;try{var _t16={get capture(){return E=!0,!1}};window.addEventListener("test",_t16,_t16),window.removeEventListener("test",_t16,_t16)}catch(t){}var A=function(){function A(t,e,s){var _this4=this;_classCallCheck(this,A);this.value=void 0,this._pendingValue=void 0,this.element=t,this.eventName=e,this.eventContext=s,this._boundHandleEvent=function(t){return _this4.handleEvent(t)}}_createClass(A,[{key:"setValue",value:function setValue(t){this._pendingValue=t}},{key:"commit",value:function commit(){for(;s(this._pendingValue);){var _t17=this._pendingValue;this._pendingValue=r,_t17(this)}if(this._pendingValue===r)return;var t=this._pendingValue,e=this.value,i=null==t||null!=e&&(t.capture!==e.capture||t.once!==e.once||t.passive!==e.passive),n=null!=t&&(null==e||i);i&&this.element.removeEventListener(this.eventName,this._boundHandleEvent,this._options),n&&(this._options=P(t),this.element.addEventListener(this.eventName,this._boundHandleEvent,this._options)),this.value=t,this._pendingValue=r}},{key:"handleEvent",value:function handleEvent(t){"function"==typeof this.value?this.value.call(this.eventContext||this.element,t):this.value.handleEvent(t)}}]);return A}();var P=function P(t){return t&&(E?{capture:t.capture,passive:t.passive,once:t.once}:t.capture)};var S=function(){function S(){_classCallCheck(this,S)}_createClass(S,[{key:"handleAttributeExpressions",value:function handleAttributeExpressions(t,e,s,i){var n=e[0];if("."===n){return new w(t,e.slice(1),s).parts}return"@"===n?[new A(t,e.slice(1),i.eventContext)]:"?"===n?[new b(t,e.slice(1),s)]:new y(t,e,s).parts}},{key:"handleTextExpression",value:function handleTextExpression(t){return new V(t)}}]);return S}();var C=new S;function M(t){var e=L.get(t.type);void 0===e&&(e={stringsArray:new WeakMap,keyString:new Map},L.set(t.type,e));var s=e.stringsArray.get(t.strings);if(void 0!==s)return s;var i=t.strings.join(l);return void 0===(s=e.keyString.get(i))&&(s=new u(t,t.getTemplateElement()),e.keyString.set(i,s)),e.stringsArray.set(t.strings,s),s}var L=new Map,k=new WeakMap;(window.litHtmlVersions||(window.litHtmlVersions=[])).push("1.0.0");t.html=function(t){for(var _len=arguments.length,e=new Array(_len>1?_len-1:0),_key=1;_key<_len;_key++){e[_key-1]=arguments[_key]}return new f(t,e,"html",C)},t.svg=function(t){for(var _len2=arguments.length,e=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){e[_key2-1]=arguments[_key2]}return new x(t,e,"svg",C)},t.DefaultTemplateProcessor=S,t.defaultTemplateProcessor=C,t.directive=function(t){return function(){var i=t.apply(void 0,arguments);return e.set(i,!0),i}},t.isDirective=s,t.removeNodes=o,t.reparentNodes=n,t.noChange=r,t.nothing=a,t.AttributeCommitter=y,t.AttributePart=N,t.BooleanAttributePart=b,t.EventPart=A,t.isPrimitive=_,t.NodePart=V,t.PropertyCommitter=w,t.PropertyPart=T,t.parts=k,t.render=function(t,e,s){var i=k.get(e);void 0===i&&(o(e,e.firstChild),k.set(e,i=new V(Object.assign({templateFactory:M},s))),i.appendInto(e)),i.setValue(t),i.commit()},t.templateCaches=L,t.templateFactory=M,t.TemplateInstance=v,t.SVGTemplateResult=x,t.TemplateResult=f,t.createMarker=m,t.isTemplatePartActive=p,t.Template=u,Object.defineProperty(t,"__esModule",{value:!0})});
|