@teipublisher/pb-components 1.30.1 → 1.31.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 +34 -0
- package/Dockerfile +1 -1
- package/dist/demo/demos.json +3 -0
- package/dist/demo/pb-custom-form.html +61 -0
- package/dist/demo/pb-leaflet-map3.html +12 -17
- package/dist/pb-components-bundle.js +159 -112
- package/dist/pb-elements.json +163 -2
- package/dist/pb-leaflet-map.js +1 -1
- package/i18n/common/de.json +20 -0
- package/i18n/common/en.json +20 -0
- package/package.json +1 -1
- package/pb-elements.json +163 -2
- package/src/pb-components.js +1 -0
- package/src/pb-custom-form.js +49 -7
- package/src/pb-geolocation.js +30 -11
- package/src/pb-leaflet-map.js +5 -4
- package/src/pb-select-feature.js +6 -0
- package/src/pb-split-list.js +196 -0
- package/src/pb-view-annotate.js +7 -4
package/dist/pb-elements.json
CHANGED
|
@@ -2249,8 +2249,13 @@
|
|
|
2249
2249
|
{
|
|
2250
2250
|
"name": "pb-custom-form",
|
|
2251
2251
|
"path": "./src/pb-custom-form.js",
|
|
2252
|
-
"description": "A custom form element which loads the actual form from a server-side script using AJAX.\nEmits
|
|
2252
|
+
"description": "A custom form element which loads the actual form from a server-side script using AJAX.\nEmits `pb-search-resubmit` and `pb-submit` events, signalling the receiver that it should\nrefresh.\n\nThe component is currently used to implement the additional search facets on the start and\nsearch result page. It can also be combined with `pb-split-list` to contain an additional form\nwith options.",
|
|
2253
2253
|
"attributes": [
|
|
2254
|
+
{
|
|
2255
|
+
"name": "auto-submit",
|
|
2256
|
+
"description": "Register event handlers on all inputs and submit the form\nautomatically if any of those changes. For button-like controls,\na submit is triggered on click, for text input on keyUp, and for\nall other form components on change.",
|
|
2257
|
+
"type": "string"
|
|
2258
|
+
},
|
|
2254
2259
|
{
|
|
2255
2260
|
"name": "url",
|
|
2256
2261
|
"description": "The URL for the AJAX request. If a relative URL is passed, it will be resolved\nagainst the current API endpoint.",
|
|
@@ -2345,6 +2350,12 @@
|
|
|
2345
2350
|
}
|
|
2346
2351
|
],
|
|
2347
2352
|
"properties": [
|
|
2353
|
+
{
|
|
2354
|
+
"name": "autoSubmit",
|
|
2355
|
+
"attribute": "auto-submit",
|
|
2356
|
+
"description": "Register event handlers on all inputs and submit the form\nautomatically if any of those changes. For button-like controls,\na submit is triggered on click, for text input on keyUp, and for\nall other form components on change.",
|
|
2357
|
+
"type": "string"
|
|
2358
|
+
},
|
|
2348
2359
|
{
|
|
2349
2360
|
"name": "url",
|
|
2350
2361
|
"attribute": "url",
|
|
@@ -2466,7 +2477,16 @@
|
|
|
2466
2477
|
],
|
|
2467
2478
|
"events": [
|
|
2468
2479
|
{
|
|
2469
|
-
"name": "pb-custom-form-loaded"
|
|
2480
|
+
"name": "pb-custom-form-loaded",
|
|
2481
|
+
"description": "Fired before the element updates its content"
|
|
2482
|
+
},
|
|
2483
|
+
{
|
|
2484
|
+
"name": "pb-search-resubmit",
|
|
2485
|
+
"description": "Fired when the form is submitted"
|
|
2486
|
+
},
|
|
2487
|
+
{
|
|
2488
|
+
"name": "pb-submit",
|
|
2489
|
+
"description": "Fired when the form is submitted"
|
|
2470
2490
|
},
|
|
2471
2491
|
{
|
|
2472
2492
|
"name": "pb-start-update",
|
|
@@ -3738,6 +3758,11 @@
|
|
|
3738
3758
|
"type": "string",
|
|
3739
3759
|
"default": "\"mouseover\""
|
|
3740
3760
|
},
|
|
3761
|
+
{
|
|
3762
|
+
"name": "auto",
|
|
3763
|
+
"type": "boolean",
|
|
3764
|
+
"default": "false"
|
|
3765
|
+
},
|
|
3741
3766
|
{
|
|
3742
3767
|
"name": "key",
|
|
3743
3768
|
"description": "The key to which this element is connected.",
|
|
@@ -3819,6 +3844,12 @@
|
|
|
3819
3844
|
"type": "string",
|
|
3820
3845
|
"default": "\"mouseover\""
|
|
3821
3846
|
},
|
|
3847
|
+
{
|
|
3848
|
+
"name": "auto",
|
|
3849
|
+
"attribute": "auto",
|
|
3850
|
+
"type": "boolean",
|
|
3851
|
+
"default": "false"
|
|
3852
|
+
},
|
|
3822
3853
|
{
|
|
3823
3854
|
"name": "key",
|
|
3824
3855
|
"attribute": "key",
|
|
@@ -8841,6 +8872,136 @@
|
|
|
8841
8872
|
}
|
|
8842
8873
|
]
|
|
8843
8874
|
},
|
|
8875
|
+
{
|
|
8876
|
+
"name": "pb-split-list",
|
|
8877
|
+
"path": "./src/pb-split-list.js",
|
|
8878
|
+
"description": "Implements a list which is split into different categories \n(e.g. letters of the alphabet, countries ...).\nOnly one category is shown at a time unless the server reports\nno categories (e.g. if the number of items to display goes below\na defined threshold).\n\nThe server-side API endpoint should return a JSON object with two\nproperties:\n\n+ `categories`: an array of category descriptions: each item should \n be an object with two properties: `category` - containing the name of the category\n and `count` - containing a count of items available under this category.\n+ `items`: an array with the items to be shown for the currently selected\n category. Those may contain HTML markup.",
|
|
8879
|
+
"attributes": [
|
|
8880
|
+
{
|
|
8881
|
+
"name": "url",
|
|
8882
|
+
"description": "Server-side API endpoint to retrieve items from",
|
|
8883
|
+
"type": "string"
|
|
8884
|
+
},
|
|
8885
|
+
{
|
|
8886
|
+
"name": "selected",
|
|
8887
|
+
"description": "The initially selected category",
|
|
8888
|
+
"type": "string"
|
|
8889
|
+
},
|
|
8890
|
+
{
|
|
8891
|
+
"name": "subforms",
|
|
8892
|
+
"description": "A CSS selector pointing to one or more `pb-custom-form`\ninstances. The element will collect additional parameters\nfrom those forms and includes them in the request to the server",
|
|
8893
|
+
"type": "string"
|
|
8894
|
+
},
|
|
8895
|
+
{
|
|
8896
|
+
"name": "subscribe",
|
|
8897
|
+
"description": "The name of the channel to subscribe to. Only events on a channel corresponding\nto this property are listened to.",
|
|
8898
|
+
"type": "string"
|
|
8899
|
+
},
|
|
8900
|
+
{
|
|
8901
|
+
"name": "subscribe-config",
|
|
8902
|
+
"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.",
|
|
8903
|
+
"type": "object"
|
|
8904
|
+
},
|
|
8905
|
+
{
|
|
8906
|
+
"name": "emit",
|
|
8907
|
+
"description": "The name of the channel to send events to.",
|
|
8908
|
+
"type": "string"
|
|
8909
|
+
},
|
|
8910
|
+
{
|
|
8911
|
+
"name": "emit-config",
|
|
8912
|
+
"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.",
|
|
8913
|
+
"type": "object"
|
|
8914
|
+
},
|
|
8915
|
+
{
|
|
8916
|
+
"name": "wait-for",
|
|
8917
|
+
"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.",
|
|
8918
|
+
"type": "string"
|
|
8919
|
+
},
|
|
8920
|
+
{
|
|
8921
|
+
"name": "disabled",
|
|
8922
|
+
"description": "Common property to disable the functionality associated with a component.\n`pb-highlight` and `pb-popover` react to this.",
|
|
8923
|
+
"type": "boolean",
|
|
8924
|
+
"default": "false"
|
|
8925
|
+
}
|
|
8926
|
+
],
|
|
8927
|
+
"properties": [
|
|
8928
|
+
{
|
|
8929
|
+
"name": "url",
|
|
8930
|
+
"attribute": "url",
|
|
8931
|
+
"description": "Server-side API endpoint to retrieve items from",
|
|
8932
|
+
"type": "string"
|
|
8933
|
+
},
|
|
8934
|
+
{
|
|
8935
|
+
"name": "selected",
|
|
8936
|
+
"attribute": "selected",
|
|
8937
|
+
"description": "The initially selected category",
|
|
8938
|
+
"type": "string"
|
|
8939
|
+
},
|
|
8940
|
+
{
|
|
8941
|
+
"name": "subforms",
|
|
8942
|
+
"attribute": "subforms",
|
|
8943
|
+
"description": "A CSS selector pointing to one or more `pb-custom-form`\ninstances. The element will collect additional parameters\nfrom those forms and includes them in the request to the server",
|
|
8944
|
+
"type": "string"
|
|
8945
|
+
},
|
|
8946
|
+
{
|
|
8947
|
+
"name": "subscribe",
|
|
8948
|
+
"attribute": "subscribe",
|
|
8949
|
+
"description": "The name of the channel to subscribe to. Only events on a channel corresponding\nto this property are listened to.",
|
|
8950
|
+
"type": "string"
|
|
8951
|
+
},
|
|
8952
|
+
{
|
|
8953
|
+
"name": "subscribeConfig",
|
|
8954
|
+
"attribute": "subscribe-config",
|
|
8955
|
+
"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.",
|
|
8956
|
+
"type": "object"
|
|
8957
|
+
},
|
|
8958
|
+
{
|
|
8959
|
+
"name": "emit",
|
|
8960
|
+
"attribute": "emit",
|
|
8961
|
+
"description": "The name of the channel to send events to.",
|
|
8962
|
+
"type": "string"
|
|
8963
|
+
},
|
|
8964
|
+
{
|
|
8965
|
+
"name": "emitConfig",
|
|
8966
|
+
"attribute": "emit-config",
|
|
8967
|
+
"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.",
|
|
8968
|
+
"type": "object"
|
|
8969
|
+
},
|
|
8970
|
+
{
|
|
8971
|
+
"name": "waitFor",
|
|
8972
|
+
"attribute": "wait-for",
|
|
8973
|
+
"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.",
|
|
8974
|
+
"type": "string"
|
|
8975
|
+
},
|
|
8976
|
+
{
|
|
8977
|
+
"name": "disabled",
|
|
8978
|
+
"attribute": "disabled",
|
|
8979
|
+
"description": "Common property to disable the functionality associated with a component.\n`pb-highlight` and `pb-popover` react to this.",
|
|
8980
|
+
"type": "boolean",
|
|
8981
|
+
"default": "false"
|
|
8982
|
+
}
|
|
8983
|
+
],
|
|
8984
|
+
"events": [
|
|
8985
|
+
{
|
|
8986
|
+
"name": "pb-submit",
|
|
8987
|
+
"description": "when received, submit a request to the server and refresh"
|
|
8988
|
+
},
|
|
8989
|
+
{
|
|
8990
|
+
"name": "pb-start-update",
|
|
8991
|
+
"description": "sent before the element sends the request to the server"
|
|
8992
|
+
},
|
|
8993
|
+
{
|
|
8994
|
+
"name": "pb-end-update",
|
|
8995
|
+
"description": "sent after new content has been received"
|
|
8996
|
+
}
|
|
8997
|
+
],
|
|
8998
|
+
"cssProperties": [
|
|
8999
|
+
{
|
|
9000
|
+
"name": "--pb-categorized-list-columns",
|
|
9001
|
+
"description": "the number of columns to display (default: 2)"
|
|
9002
|
+
}
|
|
9003
|
+
]
|
|
9004
|
+
},
|
|
8844
9005
|
{
|
|
8845
9006
|
"name": "pb-svg",
|
|
8846
9007
|
"path": "./src/pb-svg.js",
|