@teipublisher/pb-components 1.36.1 → 1.37.0
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/CHANGELOG.md +29 -0
- package/Dockerfile +1 -1
- package/css/tom-select/tom-select.bootstrap4.min.css +2 -0
- package/css/tom-select/tom-select.bootstrap5.min.css +2 -0
- package/css/tom-select/tom-select.default.min.css +2 -0
- package/css/tom-select/tom-select.min.css +2 -0
- package/dist/demo/demos.json +3 -0
- package/dist/demo/pb-combo-box.html +102 -0
- package/dist/demo/pb-facsimile.html +1 -1
- package/dist/demo/select.json +22 -16
- package/dist/pb-components-bundle.js +182 -182
- package/dist/pb-elements.json +199 -7
- package/package.json +2 -1
- package/pb-elements.json +199 -7
- package/src/pb-combo-box.js +154 -0
- package/src/pb-components.js +1 -0
- package/src/pb-facsimile.js +24 -2
- package/src/pb-page.js +9 -0
- package/src/pb-popover.js +1 -1
- package/src/pb-timeline.js +22 -11
package/dist/pb-elements.json
CHANGED
|
@@ -2285,6 +2285,161 @@
|
|
|
2285
2285
|
}
|
|
2286
2286
|
]
|
|
2287
2287
|
},
|
|
2288
|
+
{
|
|
2289
|
+
"name": "pb-combo-box",
|
|
2290
|
+
"path": "./src/pb-combo-box.js",
|
|
2291
|
+
"description": "Provides a combo box, i.e. a combination of an input with a dropdown.\nItems to select from may be obtained from a remote data source.\n\nThe form control to be used (either a select or input) should be passed \nin the content of the element. If no control is provided, a simple `<input>`\nwill be created.",
|
|
2292
|
+
"attributes": [
|
|
2293
|
+
{
|
|
2294
|
+
"name": "source",
|
|
2295
|
+
"description": "A remote data source to use. The component will pass the text entered by the user\nin parameter `query`. It expects a JSON array of objects with each object describing\none item:\n\n```json\n{\n \"text\": \"Text to show as label\",\n \"value\": \"value-to-use\"\n}\n```",
|
|
2296
|
+
"type": "string"
|
|
2297
|
+
},
|
|
2298
|
+
{
|
|
2299
|
+
"name": "close-after-select",
|
|
2300
|
+
"description": "Automatically close the dropdown once the user made a selection",
|
|
2301
|
+
"type": "boolean",
|
|
2302
|
+
"default": "false"
|
|
2303
|
+
},
|
|
2304
|
+
{
|
|
2305
|
+
"name": "preload",
|
|
2306
|
+
"description": "Preload all items from the remote data source at startup",
|
|
2307
|
+
"type": "boolean",
|
|
2308
|
+
"default": "false"
|
|
2309
|
+
},
|
|
2310
|
+
{
|
|
2311
|
+
"name": "on-blur",
|
|
2312
|
+
"description": "Name of the event to be emitted when the user leaves the form control",
|
|
2313
|
+
"type": "string",
|
|
2314
|
+
"default": "\"pb-combo-box-blur\""
|
|
2315
|
+
},
|
|
2316
|
+
{
|
|
2317
|
+
"name": "on-change",
|
|
2318
|
+
"description": "Name of the event to be emitted when the value of the form control has changed",
|
|
2319
|
+
"type": "string",
|
|
2320
|
+
"default": "\"pb-combo-box-change\""
|
|
2321
|
+
},
|
|
2322
|
+
{
|
|
2323
|
+
"name": "subscribe",
|
|
2324
|
+
"description": "The name of the channel to subscribe to. Only events on a channel corresponding\nto this property are listened to.",
|
|
2325
|
+
"type": "string"
|
|
2326
|
+
},
|
|
2327
|
+
{
|
|
2328
|
+
"name": "subscribe-config",
|
|
2329
|
+
"description": "Configuration object to define a channel/event mapping. Every property\nin the object is interpreted as the name of a channel and its value should\nbe an array of event names to listen to.",
|
|
2330
|
+
"type": "object"
|
|
2331
|
+
},
|
|
2332
|
+
{
|
|
2333
|
+
"name": "emit",
|
|
2334
|
+
"description": "The name of the channel to send events to.",
|
|
2335
|
+
"type": "string"
|
|
2336
|
+
},
|
|
2337
|
+
{
|
|
2338
|
+
"name": "emit-config",
|
|
2339
|
+
"description": "Configuration object to define a channel/event mapping. Every property\nin the object is interpreted as the name of a channel and its value should\nbe an array of event names to be dispatched.",
|
|
2340
|
+
"type": "object"
|
|
2341
|
+
},
|
|
2342
|
+
{
|
|
2343
|
+
"name": "wait-for",
|
|
2344
|
+
"description": "A selector pointing to other components this component depends on.\nWhen method `wait` is called, it will wait until all referenced\ncomponents signal with a `pb-ready` event that they are ready and listening\nto events.",
|
|
2345
|
+
"type": "string"
|
|
2346
|
+
},
|
|
2347
|
+
{
|
|
2348
|
+
"name": "disabled",
|
|
2349
|
+
"description": "Common property to disable the functionality associated with a component.\n`pb-highlight` and `pb-popover` react to this.",
|
|
2350
|
+
"type": "boolean",
|
|
2351
|
+
"default": "false"
|
|
2352
|
+
}
|
|
2353
|
+
],
|
|
2354
|
+
"properties": [
|
|
2355
|
+
{
|
|
2356
|
+
"name": "renderItem",
|
|
2357
|
+
"description": "Set a javascript function to be called whenever an item\nneeds to be rendered. The function will be passed the data\nobject of the current item as argument.",
|
|
2358
|
+
"type": "Function"
|
|
2359
|
+
},
|
|
2360
|
+
{
|
|
2361
|
+
"name": "theme",
|
|
2362
|
+
"type": "string",
|
|
2363
|
+
"default": "\"default\""
|
|
2364
|
+
},
|
|
2365
|
+
{
|
|
2366
|
+
"name": "source",
|
|
2367
|
+
"attribute": "source",
|
|
2368
|
+
"description": "A remote data source to use. The component will pass the text entered by the user\nin parameter `query`. It expects a JSON array of objects with each object describing\none item:\n\n```json\n{\n \"text\": \"Text to show as label\",\n \"value\": \"value-to-use\"\n}\n```",
|
|
2369
|
+
"type": "string"
|
|
2370
|
+
},
|
|
2371
|
+
{
|
|
2372
|
+
"name": "closeAfterSelect",
|
|
2373
|
+
"attribute": "close-after-select",
|
|
2374
|
+
"description": "Automatically close the dropdown once the user made a selection",
|
|
2375
|
+
"type": "boolean",
|
|
2376
|
+
"default": "false"
|
|
2377
|
+
},
|
|
2378
|
+
{
|
|
2379
|
+
"name": "preload",
|
|
2380
|
+
"attribute": "preload",
|
|
2381
|
+
"description": "Preload all items from the remote data source at startup",
|
|
2382
|
+
"type": "boolean",
|
|
2383
|
+
"default": "false"
|
|
2384
|
+
},
|
|
2385
|
+
{
|
|
2386
|
+
"name": "renderFunction",
|
|
2387
|
+
"type": "object",
|
|
2388
|
+
"default": "\"renderDefault\""
|
|
2389
|
+
},
|
|
2390
|
+
{
|
|
2391
|
+
"name": "onBlur",
|
|
2392
|
+
"attribute": "on-blur",
|
|
2393
|
+
"description": "Name of the event to be emitted when the user leaves the form control",
|
|
2394
|
+
"type": "string",
|
|
2395
|
+
"default": "\"pb-combo-box-blur\""
|
|
2396
|
+
},
|
|
2397
|
+
{
|
|
2398
|
+
"name": "onChange",
|
|
2399
|
+
"attribute": "on-change",
|
|
2400
|
+
"description": "Name of the event to be emitted when the value of the form control has changed",
|
|
2401
|
+
"type": "string",
|
|
2402
|
+
"default": "\"pb-combo-box-change\""
|
|
2403
|
+
},
|
|
2404
|
+
{
|
|
2405
|
+
"name": "subscribe",
|
|
2406
|
+
"attribute": "subscribe",
|
|
2407
|
+
"description": "The name of the channel to subscribe to. Only events on a channel corresponding\nto this property are listened to.",
|
|
2408
|
+
"type": "string"
|
|
2409
|
+
},
|
|
2410
|
+
{
|
|
2411
|
+
"name": "subscribeConfig",
|
|
2412
|
+
"attribute": "subscribe-config",
|
|
2413
|
+
"description": "Configuration object to define a channel/event mapping. Every property\nin the object is interpreted as the name of a channel and its value should\nbe an array of event names to listen to.",
|
|
2414
|
+
"type": "object"
|
|
2415
|
+
},
|
|
2416
|
+
{
|
|
2417
|
+
"name": "emit",
|
|
2418
|
+
"attribute": "emit",
|
|
2419
|
+
"description": "The name of the channel to send events to.",
|
|
2420
|
+
"type": "string"
|
|
2421
|
+
},
|
|
2422
|
+
{
|
|
2423
|
+
"name": "emitConfig",
|
|
2424
|
+
"attribute": "emit-config",
|
|
2425
|
+
"description": "Configuration object to define a channel/event mapping. Every property\nin the object is interpreted as the name of a channel and its value should\nbe an array of event names to be dispatched.",
|
|
2426
|
+
"type": "object"
|
|
2427
|
+
},
|
|
2428
|
+
{
|
|
2429
|
+
"name": "waitFor",
|
|
2430
|
+
"attribute": "wait-for",
|
|
2431
|
+
"description": "A selector pointing to other components this component depends on.\nWhen method `wait` is called, it will wait until all referenced\ncomponents signal with a `pb-ready` event that they are ready and listening\nto events.",
|
|
2432
|
+
"type": "string"
|
|
2433
|
+
},
|
|
2434
|
+
{
|
|
2435
|
+
"name": "disabled",
|
|
2436
|
+
"attribute": "disabled",
|
|
2437
|
+
"description": "Common property to disable the functionality associated with a component.\n`pb-highlight` and `pb-popover` react to this.",
|
|
2438
|
+
"type": "boolean",
|
|
2439
|
+
"default": "false"
|
|
2440
|
+
}
|
|
2441
|
+
]
|
|
2442
|
+
},
|
|
2288
2443
|
{
|
|
2289
2444
|
"name": "pb-custom-form",
|
|
2290
2445
|
"path": "./src/pb-custom-form.js",
|
|
@@ -3487,6 +3642,18 @@
|
|
|
3487
3642
|
"type": "boolean",
|
|
3488
3643
|
"default": "false"
|
|
3489
3644
|
},
|
|
3645
|
+
{
|
|
3646
|
+
"name": "reference-strip",
|
|
3647
|
+
"description": "If set, thumbnails of all images are shown in a reference strip at the\nbottom of the viewer.",
|
|
3648
|
+
"type": "boolean",
|
|
3649
|
+
"default": "false"
|
|
3650
|
+
},
|
|
3651
|
+
{
|
|
3652
|
+
"name": "reference-strip-size-ratio",
|
|
3653
|
+
"description": "Size ratio for the reference strip thumbnails. 0.2 by default.",
|
|
3654
|
+
"type": "number",
|
|
3655
|
+
"default": "0.2"
|
|
3656
|
+
},
|
|
3490
3657
|
{
|
|
3491
3658
|
"name": "src",
|
|
3492
3659
|
"type": "string",
|
|
@@ -3610,6 +3777,20 @@
|
|
|
3610
3777
|
"type": "boolean",
|
|
3611
3778
|
"default": "false"
|
|
3612
3779
|
},
|
|
3780
|
+
{
|
|
3781
|
+
"name": "referenceStrip",
|
|
3782
|
+
"attribute": "reference-strip",
|
|
3783
|
+
"description": "If set, thumbnails of all images are shown in a reference strip at the\nbottom of the viewer.",
|
|
3784
|
+
"type": "boolean",
|
|
3785
|
+
"default": "false"
|
|
3786
|
+
},
|
|
3787
|
+
{
|
|
3788
|
+
"name": "referenceStripSizeRatio",
|
|
3789
|
+
"attribute": "reference-strip-size-ratio",
|
|
3790
|
+
"description": "Size ratio for the reference strip thumbnails. 0.2 by default.",
|
|
3791
|
+
"type": "number",
|
|
3792
|
+
"default": "0.2"
|
|
3793
|
+
},
|
|
3613
3794
|
{
|
|
3614
3795
|
"name": "src",
|
|
3615
3796
|
"attribute": "src",
|
|
@@ -7364,6 +7545,9 @@
|
|
|
7364
7545
|
{
|
|
7365
7546
|
"name": "pb-toggle",
|
|
7366
7547
|
"description": "when received, dispatch state changes to the elements on the page (see `pb-toggle-feature`, `pb-select-feature`)"
|
|
7548
|
+
},
|
|
7549
|
+
{
|
|
7550
|
+
"name": "pb-page-loaded"
|
|
7367
7551
|
}
|
|
7368
7552
|
],
|
|
7369
7553
|
"slots": [
|
|
@@ -7747,7 +7931,8 @@
|
|
|
7747
7931
|
},
|
|
7748
7932
|
{
|
|
7749
7933
|
"name": "popup-class",
|
|
7750
|
-
"
|
|
7934
|
+
"description": "Additional class names which will be added to the popup element.\nUse this to apply a specific style to certain popovers, but not others.",
|
|
7935
|
+
"type": "String"
|
|
7751
7936
|
},
|
|
7752
7937
|
{
|
|
7753
7938
|
"name": "subscribe",
|
|
@@ -7782,11 +7967,6 @@
|
|
|
7782
7967
|
}
|
|
7783
7968
|
],
|
|
7784
7969
|
"properties": [
|
|
7785
|
-
{
|
|
7786
|
-
"name": "poupClass",
|
|
7787
|
-
"description": "Additional class names which will be added to the popup element.\nUse this to apply a specific style to certain popovers, but not others.",
|
|
7788
|
-
"type": "String"
|
|
7789
|
-
},
|
|
7790
7970
|
{
|
|
7791
7971
|
"name": "remote",
|
|
7792
7972
|
"attribute": "remote",
|
|
@@ -7837,7 +8017,8 @@
|
|
|
7837
8017
|
{
|
|
7838
8018
|
"name": "popupClass",
|
|
7839
8019
|
"attribute": "popup-class",
|
|
7840
|
-
"
|
|
8020
|
+
"description": "Additional class names which will be added to the popup element.\nUse this to apply a specific style to certain popovers, but not others.",
|
|
8021
|
+
"type": "String"
|
|
7841
8022
|
},
|
|
7842
8023
|
{
|
|
7843
8024
|
"name": "subscribe",
|
|
@@ -9550,6 +9731,11 @@
|
|
|
9550
9731
|
"type": "array",
|
|
9551
9732
|
"default": "[\"D\",\"W\",\"M\",\"Y\",\"5Y\",\"10Y\"]"
|
|
9552
9733
|
},
|
|
9734
|
+
{
|
|
9735
|
+
"name": "max-interval",
|
|
9736
|
+
"type": "number",
|
|
9737
|
+
"default": "60"
|
|
9738
|
+
},
|
|
9553
9739
|
{
|
|
9554
9740
|
"name": "url",
|
|
9555
9741
|
"description": "Endpoint to load timeline data from. Expects response to be an\nobject with key value pairs for (date, hits).\n\nWill be reloaded whenever 'start-date' or 'end-date' attributes change.",
|
|
@@ -9646,6 +9832,12 @@
|
|
|
9646
9832
|
"type": "array",
|
|
9647
9833
|
"default": "[\"D\",\"W\",\"M\",\"Y\",\"5Y\",\"10Y\"]"
|
|
9648
9834
|
},
|
|
9835
|
+
{
|
|
9836
|
+
"name": "maxInterval",
|
|
9837
|
+
"attribute": "max-interval",
|
|
9838
|
+
"type": "number",
|
|
9839
|
+
"default": "60"
|
|
9840
|
+
},
|
|
9649
9841
|
{
|
|
9650
9842
|
"name": "url",
|
|
9651
9843
|
"attribute": "url",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teipublisher/pb-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.37.0",
|
|
4
4
|
"description": "Collection of webcomponents underlying TEI Publisher",
|
|
5
5
|
"repository": "https://github.com/eeditiones/tei-publisher-components.git",
|
|
6
6
|
"main": "index.html",
|
|
@@ -83,6 +83,7 @@
|
|
|
83
83
|
"openseadragon": "^2.4.2",
|
|
84
84
|
"prismjs": "^1.21.0",
|
|
85
85
|
"tippy.js": "^6.2.7",
|
|
86
|
+
"tom-select": "^2.0.2",
|
|
86
87
|
"uniqolor": "^1.0.1",
|
|
87
88
|
"web-animations-js": "^2.3.2"
|
|
88
89
|
},
|
package/pb-elements.json
CHANGED
|
@@ -2285,6 +2285,161 @@
|
|
|
2285
2285
|
}
|
|
2286
2286
|
]
|
|
2287
2287
|
},
|
|
2288
|
+
{
|
|
2289
|
+
"name": "pb-combo-box",
|
|
2290
|
+
"path": "./src/pb-combo-box.js",
|
|
2291
|
+
"description": "Provides a combo box, i.e. a combination of an input with a dropdown.\nItems to select from may be obtained from a remote data source.\n\nThe form control to be used (either a select or input) should be passed \nin the content of the element. If no control is provided, a simple `<input>`\nwill be created.",
|
|
2292
|
+
"attributes": [
|
|
2293
|
+
{
|
|
2294
|
+
"name": "source",
|
|
2295
|
+
"description": "A remote data source to use. The component will pass the text entered by the user\nin parameter `query`. It expects a JSON array of objects with each object describing\none item:\n\n```json\n{\n \"text\": \"Text to show as label\",\n \"value\": \"value-to-use\"\n}\n```",
|
|
2296
|
+
"type": "string"
|
|
2297
|
+
},
|
|
2298
|
+
{
|
|
2299
|
+
"name": "close-after-select",
|
|
2300
|
+
"description": "Automatically close the dropdown once the user made a selection",
|
|
2301
|
+
"type": "boolean",
|
|
2302
|
+
"default": "false"
|
|
2303
|
+
},
|
|
2304
|
+
{
|
|
2305
|
+
"name": "preload",
|
|
2306
|
+
"description": "Preload all items from the remote data source at startup",
|
|
2307
|
+
"type": "boolean",
|
|
2308
|
+
"default": "false"
|
|
2309
|
+
},
|
|
2310
|
+
{
|
|
2311
|
+
"name": "on-blur",
|
|
2312
|
+
"description": "Name of the event to be emitted when the user leaves the form control",
|
|
2313
|
+
"type": "string",
|
|
2314
|
+
"default": "\"pb-combo-box-blur\""
|
|
2315
|
+
},
|
|
2316
|
+
{
|
|
2317
|
+
"name": "on-change",
|
|
2318
|
+
"description": "Name of the event to be emitted when the value of the form control has changed",
|
|
2319
|
+
"type": "string",
|
|
2320
|
+
"default": "\"pb-combo-box-change\""
|
|
2321
|
+
},
|
|
2322
|
+
{
|
|
2323
|
+
"name": "subscribe",
|
|
2324
|
+
"description": "The name of the channel to subscribe to. Only events on a channel corresponding\nto this property are listened to.",
|
|
2325
|
+
"type": "string"
|
|
2326
|
+
},
|
|
2327
|
+
{
|
|
2328
|
+
"name": "subscribe-config",
|
|
2329
|
+
"description": "Configuration object to define a channel/event mapping. Every property\nin the object is interpreted as the name of a channel and its value should\nbe an array of event names to listen to.",
|
|
2330
|
+
"type": "object"
|
|
2331
|
+
},
|
|
2332
|
+
{
|
|
2333
|
+
"name": "emit",
|
|
2334
|
+
"description": "The name of the channel to send events to.",
|
|
2335
|
+
"type": "string"
|
|
2336
|
+
},
|
|
2337
|
+
{
|
|
2338
|
+
"name": "emit-config",
|
|
2339
|
+
"description": "Configuration object to define a channel/event mapping. Every property\nin the object is interpreted as the name of a channel and its value should\nbe an array of event names to be dispatched.",
|
|
2340
|
+
"type": "object"
|
|
2341
|
+
},
|
|
2342
|
+
{
|
|
2343
|
+
"name": "wait-for",
|
|
2344
|
+
"description": "A selector pointing to other components this component depends on.\nWhen method `wait` is called, it will wait until all referenced\ncomponents signal with a `pb-ready` event that they are ready and listening\nto events.",
|
|
2345
|
+
"type": "string"
|
|
2346
|
+
},
|
|
2347
|
+
{
|
|
2348
|
+
"name": "disabled",
|
|
2349
|
+
"description": "Common property to disable the functionality associated with a component.\n`pb-highlight` and `pb-popover` react to this.",
|
|
2350
|
+
"type": "boolean",
|
|
2351
|
+
"default": "false"
|
|
2352
|
+
}
|
|
2353
|
+
],
|
|
2354
|
+
"properties": [
|
|
2355
|
+
{
|
|
2356
|
+
"name": "renderItem",
|
|
2357
|
+
"description": "Set a javascript function to be called whenever an item\nneeds to be rendered. The function will be passed the data\nobject of the current item as argument.",
|
|
2358
|
+
"type": "Function"
|
|
2359
|
+
},
|
|
2360
|
+
{
|
|
2361
|
+
"name": "theme",
|
|
2362
|
+
"type": "string",
|
|
2363
|
+
"default": "\"default\""
|
|
2364
|
+
},
|
|
2365
|
+
{
|
|
2366
|
+
"name": "source",
|
|
2367
|
+
"attribute": "source",
|
|
2368
|
+
"description": "A remote data source to use. The component will pass the text entered by the user\nin parameter `query`. It expects a JSON array of objects with each object describing\none item:\n\n```json\n{\n \"text\": \"Text to show as label\",\n \"value\": \"value-to-use\"\n}\n```",
|
|
2369
|
+
"type": "string"
|
|
2370
|
+
},
|
|
2371
|
+
{
|
|
2372
|
+
"name": "closeAfterSelect",
|
|
2373
|
+
"attribute": "close-after-select",
|
|
2374
|
+
"description": "Automatically close the dropdown once the user made a selection",
|
|
2375
|
+
"type": "boolean",
|
|
2376
|
+
"default": "false"
|
|
2377
|
+
},
|
|
2378
|
+
{
|
|
2379
|
+
"name": "preload",
|
|
2380
|
+
"attribute": "preload",
|
|
2381
|
+
"description": "Preload all items from the remote data source at startup",
|
|
2382
|
+
"type": "boolean",
|
|
2383
|
+
"default": "false"
|
|
2384
|
+
},
|
|
2385
|
+
{
|
|
2386
|
+
"name": "renderFunction",
|
|
2387
|
+
"type": "object",
|
|
2388
|
+
"default": "\"renderDefault\""
|
|
2389
|
+
},
|
|
2390
|
+
{
|
|
2391
|
+
"name": "onBlur",
|
|
2392
|
+
"attribute": "on-blur",
|
|
2393
|
+
"description": "Name of the event to be emitted when the user leaves the form control",
|
|
2394
|
+
"type": "string",
|
|
2395
|
+
"default": "\"pb-combo-box-blur\""
|
|
2396
|
+
},
|
|
2397
|
+
{
|
|
2398
|
+
"name": "onChange",
|
|
2399
|
+
"attribute": "on-change",
|
|
2400
|
+
"description": "Name of the event to be emitted when the value of the form control has changed",
|
|
2401
|
+
"type": "string",
|
|
2402
|
+
"default": "\"pb-combo-box-change\""
|
|
2403
|
+
},
|
|
2404
|
+
{
|
|
2405
|
+
"name": "subscribe",
|
|
2406
|
+
"attribute": "subscribe",
|
|
2407
|
+
"description": "The name of the channel to subscribe to. Only events on a channel corresponding\nto this property are listened to.",
|
|
2408
|
+
"type": "string"
|
|
2409
|
+
},
|
|
2410
|
+
{
|
|
2411
|
+
"name": "subscribeConfig",
|
|
2412
|
+
"attribute": "subscribe-config",
|
|
2413
|
+
"description": "Configuration object to define a channel/event mapping. Every property\nin the object is interpreted as the name of a channel and its value should\nbe an array of event names to listen to.",
|
|
2414
|
+
"type": "object"
|
|
2415
|
+
},
|
|
2416
|
+
{
|
|
2417
|
+
"name": "emit",
|
|
2418
|
+
"attribute": "emit",
|
|
2419
|
+
"description": "The name of the channel to send events to.",
|
|
2420
|
+
"type": "string"
|
|
2421
|
+
},
|
|
2422
|
+
{
|
|
2423
|
+
"name": "emitConfig",
|
|
2424
|
+
"attribute": "emit-config",
|
|
2425
|
+
"description": "Configuration object to define a channel/event mapping. Every property\nin the object is interpreted as the name of a channel and its value should\nbe an array of event names to be dispatched.",
|
|
2426
|
+
"type": "object"
|
|
2427
|
+
},
|
|
2428
|
+
{
|
|
2429
|
+
"name": "waitFor",
|
|
2430
|
+
"attribute": "wait-for",
|
|
2431
|
+
"description": "A selector pointing to other components this component depends on.\nWhen method `wait` is called, it will wait until all referenced\ncomponents signal with a `pb-ready` event that they are ready and listening\nto events.",
|
|
2432
|
+
"type": "string"
|
|
2433
|
+
},
|
|
2434
|
+
{
|
|
2435
|
+
"name": "disabled",
|
|
2436
|
+
"attribute": "disabled",
|
|
2437
|
+
"description": "Common property to disable the functionality associated with a component.\n`pb-highlight` and `pb-popover` react to this.",
|
|
2438
|
+
"type": "boolean",
|
|
2439
|
+
"default": "false"
|
|
2440
|
+
}
|
|
2441
|
+
]
|
|
2442
|
+
},
|
|
2288
2443
|
{
|
|
2289
2444
|
"name": "pb-custom-form",
|
|
2290
2445
|
"path": "./src/pb-custom-form.js",
|
|
@@ -3487,6 +3642,18 @@
|
|
|
3487
3642
|
"type": "boolean",
|
|
3488
3643
|
"default": "false"
|
|
3489
3644
|
},
|
|
3645
|
+
{
|
|
3646
|
+
"name": "reference-strip",
|
|
3647
|
+
"description": "If set, thumbnails of all images are shown in a reference strip at the\nbottom of the viewer.",
|
|
3648
|
+
"type": "boolean",
|
|
3649
|
+
"default": "false"
|
|
3650
|
+
},
|
|
3651
|
+
{
|
|
3652
|
+
"name": "reference-strip-size-ratio",
|
|
3653
|
+
"description": "Size ratio for the reference strip thumbnails. 0.2 by default.",
|
|
3654
|
+
"type": "number",
|
|
3655
|
+
"default": "0.2"
|
|
3656
|
+
},
|
|
3490
3657
|
{
|
|
3491
3658
|
"name": "src",
|
|
3492
3659
|
"type": "string",
|
|
@@ -3610,6 +3777,20 @@
|
|
|
3610
3777
|
"type": "boolean",
|
|
3611
3778
|
"default": "false"
|
|
3612
3779
|
},
|
|
3780
|
+
{
|
|
3781
|
+
"name": "referenceStrip",
|
|
3782
|
+
"attribute": "reference-strip",
|
|
3783
|
+
"description": "If set, thumbnails of all images are shown in a reference strip at the\nbottom of the viewer.",
|
|
3784
|
+
"type": "boolean",
|
|
3785
|
+
"default": "false"
|
|
3786
|
+
},
|
|
3787
|
+
{
|
|
3788
|
+
"name": "referenceStripSizeRatio",
|
|
3789
|
+
"attribute": "reference-strip-size-ratio",
|
|
3790
|
+
"description": "Size ratio for the reference strip thumbnails. 0.2 by default.",
|
|
3791
|
+
"type": "number",
|
|
3792
|
+
"default": "0.2"
|
|
3793
|
+
},
|
|
3613
3794
|
{
|
|
3614
3795
|
"name": "src",
|
|
3615
3796
|
"attribute": "src",
|
|
@@ -7364,6 +7545,9 @@
|
|
|
7364
7545
|
{
|
|
7365
7546
|
"name": "pb-toggle",
|
|
7366
7547
|
"description": "when received, dispatch state changes to the elements on the page (see `pb-toggle-feature`, `pb-select-feature`)"
|
|
7548
|
+
},
|
|
7549
|
+
{
|
|
7550
|
+
"name": "pb-page-loaded"
|
|
7367
7551
|
}
|
|
7368
7552
|
],
|
|
7369
7553
|
"slots": [
|
|
@@ -7747,7 +7931,8 @@
|
|
|
7747
7931
|
},
|
|
7748
7932
|
{
|
|
7749
7933
|
"name": "popup-class",
|
|
7750
|
-
"
|
|
7934
|
+
"description": "Additional class names which will be added to the popup element.\nUse this to apply a specific style to certain popovers, but not others.",
|
|
7935
|
+
"type": "String"
|
|
7751
7936
|
},
|
|
7752
7937
|
{
|
|
7753
7938
|
"name": "subscribe",
|
|
@@ -7782,11 +7967,6 @@
|
|
|
7782
7967
|
}
|
|
7783
7968
|
],
|
|
7784
7969
|
"properties": [
|
|
7785
|
-
{
|
|
7786
|
-
"name": "poupClass",
|
|
7787
|
-
"description": "Additional class names which will be added to the popup element.\nUse this to apply a specific style to certain popovers, but not others.",
|
|
7788
|
-
"type": "String"
|
|
7789
|
-
},
|
|
7790
7970
|
{
|
|
7791
7971
|
"name": "remote",
|
|
7792
7972
|
"attribute": "remote",
|
|
@@ -7837,7 +8017,8 @@
|
|
|
7837
8017
|
{
|
|
7838
8018
|
"name": "popupClass",
|
|
7839
8019
|
"attribute": "popup-class",
|
|
7840
|
-
"
|
|
8020
|
+
"description": "Additional class names which will be added to the popup element.\nUse this to apply a specific style to certain popovers, but not others.",
|
|
8021
|
+
"type": "String"
|
|
7841
8022
|
},
|
|
7842
8023
|
{
|
|
7843
8024
|
"name": "subscribe",
|
|
@@ -9550,6 +9731,11 @@
|
|
|
9550
9731
|
"type": "array",
|
|
9551
9732
|
"default": "[\"D\",\"W\",\"M\",\"Y\",\"5Y\",\"10Y\"]"
|
|
9552
9733
|
},
|
|
9734
|
+
{
|
|
9735
|
+
"name": "max-interval",
|
|
9736
|
+
"type": "number",
|
|
9737
|
+
"default": "60"
|
|
9738
|
+
},
|
|
9553
9739
|
{
|
|
9554
9740
|
"name": "url",
|
|
9555
9741
|
"description": "Endpoint to load timeline data from. Expects response to be an\nobject with key value pairs for (date, hits).\n\nWill be reloaded whenever 'start-date' or 'end-date' attributes change.",
|
|
@@ -9646,6 +9832,12 @@
|
|
|
9646
9832
|
"type": "array",
|
|
9647
9833
|
"default": "[\"D\",\"W\",\"M\",\"Y\",\"5Y\",\"10Y\"]"
|
|
9648
9834
|
},
|
|
9835
|
+
{
|
|
9836
|
+
"name": "maxInterval",
|
|
9837
|
+
"attribute": "max-interval",
|
|
9838
|
+
"type": "number",
|
|
9839
|
+
"default": "60"
|
|
9840
|
+
},
|
|
9649
9841
|
{
|
|
9650
9842
|
"name": "url",
|
|
9651
9843
|
"attribute": "url",
|