@teipublisher/pb-components 1.32.2 → 1.34.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.
@@ -1328,6 +1328,12 @@
1328
1328
  "type": "string",
1329
1329
  "default": "\"title\""
1330
1330
  },
1331
+ {
1332
+ "name": "static",
1333
+ "description": "If set, rewrite URLs to load pages as static HTML files,\nso no TEI Publisher instance is required",
1334
+ "type": "boolean",
1335
+ "default": "false"
1336
+ },
1331
1337
  {
1332
1338
  "name": "url",
1333
1339
  "description": "The URL for the AJAX request. If a relative URL is passed, it will be resolved\nagainst the current API endpoint.",
@@ -1497,6 +1503,13 @@
1497
1503
  "type": "string",
1498
1504
  "default": "\"title\""
1499
1505
  },
1506
+ {
1507
+ "name": "static",
1508
+ "attribute": "static",
1509
+ "description": "If set, rewrite URLs to load pages as static HTML files,\nso no TEI Publisher instance is required",
1510
+ "type": "boolean",
1511
+ "default": "false"
1512
+ },
1500
1513
  {
1501
1514
  "name": "url",
1502
1515
  "attribute": "url",
@@ -9471,6 +9484,254 @@
9471
9484
  }
9472
9485
  ]
9473
9486
  },
9487
+ {
9488
+ "name": "pb-timeline",
9489
+ "path": "./src/pb-timeline.js",
9490
+ "description": "A timeline component to display time series data in a bar chart like view.\n\nTime series data can be displayed in one of 6 different scales:\n\n- by decade (10Y)\n- by 5 years (5Y)\n- by years (Y)\n- by month (M)\n- by week (W)\n- by day (D)\n\nThe endpoint is expected to return a JSON object. Each property should either be a date or the special\nmarker `?`, which indicates undated resources.\nThe value associated with each entry\nshould either correspond to a count of resources or an object with properties `count` and `info`. \n`info` should be an array, containing HTML to be shown in a list within the tooltips.",
9491
+ "attributes": [
9492
+ {
9493
+ "name": "start-date",
9494
+ "description": "start date for timeline to display",
9495
+ "type": "string",
9496
+ "default": "\"\""
9497
+ },
9498
+ {
9499
+ "name": "end-date",
9500
+ "description": "endDate for timeline to display",
9501
+ "type": "string",
9502
+ "default": "\"\""
9503
+ },
9504
+ {
9505
+ "name": "scope",
9506
+ "description": "The scope for the timeline. Must be one of the pre-defined scopes.\nIf not set, the component automatically tries to determine the best scope fitting the\ngiven time series.",
9507
+ "type": "string",
9508
+ "default": "\"\""
9509
+ },
9510
+ {
9511
+ "name": "scopes",
9512
+ "description": "The scopes to consider for automatic scoping.\n\nDefaults to [\"D\", \"W\", \"M\", \"Y\", \"5Y\", \"10Y\"]",
9513
+ "type": "array",
9514
+ "default": "[\"D\",\"W\",\"M\",\"Y\",\"5Y\",\"10Y\"]"
9515
+ },
9516
+ {
9517
+ "name": "url",
9518
+ "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.",
9519
+ "type": "string",
9520
+ "default": "\"\""
9521
+ },
9522
+ {
9523
+ "name": "auto",
9524
+ "description": "If set, data will be retrieved automatically on first load.",
9525
+ "type": "boolean",
9526
+ "default": "false"
9527
+ },
9528
+ {
9529
+ "name": "resettable",
9530
+ "type": "boolean",
9531
+ "default": "false"
9532
+ },
9533
+ {
9534
+ "name": "subscribe",
9535
+ "description": "The name of the channel to subscribe to. Only events on a channel corresponding\nto this property are listened to.",
9536
+ "type": "string"
9537
+ },
9538
+ {
9539
+ "name": "subscribe-config",
9540
+ "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.",
9541
+ "type": "object"
9542
+ },
9543
+ {
9544
+ "name": "emit",
9545
+ "description": "The name of the channel to send events to.",
9546
+ "type": "string"
9547
+ },
9548
+ {
9549
+ "name": "emit-config",
9550
+ "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.",
9551
+ "type": "object"
9552
+ },
9553
+ {
9554
+ "name": "wait-for",
9555
+ "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.",
9556
+ "type": "string"
9557
+ },
9558
+ {
9559
+ "name": "disabled",
9560
+ "description": "Common property to disable the functionality associated with a component.\n`pb-highlight` and `pb-popover` react to this.",
9561
+ "type": "boolean",
9562
+ "default": "false"
9563
+ }
9564
+ ],
9565
+ "properties": [
9566
+ {
9567
+ "name": "label"
9568
+ },
9569
+ {
9570
+ "name": "maxHeight",
9571
+ "type": "number",
9572
+ "default": "80"
9573
+ },
9574
+ {
9575
+ "name": "multiplier",
9576
+ "type": "number",
9577
+ "default": "0.75"
9578
+ },
9579
+ {
9580
+ "name": "mousedown",
9581
+ "type": "boolean",
9582
+ "default": "false"
9583
+ },
9584
+ {
9585
+ "name": "startDate",
9586
+ "attribute": "start-date",
9587
+ "description": "start date for timeline to display",
9588
+ "type": "string",
9589
+ "default": "\"\""
9590
+ },
9591
+ {
9592
+ "name": "endDate",
9593
+ "attribute": "end-date",
9594
+ "description": "endDate for timeline to display",
9595
+ "type": "string",
9596
+ "default": "\"\""
9597
+ },
9598
+ {
9599
+ "name": "scope",
9600
+ "attribute": "scope",
9601
+ "description": "The scope for the timeline. Must be one of the pre-defined scopes.\nIf not set, the component automatically tries to determine the best scope fitting the\ngiven time series.",
9602
+ "type": "string",
9603
+ "default": "\"\""
9604
+ },
9605
+ {
9606
+ "name": "scopes",
9607
+ "attribute": "scopes",
9608
+ "description": "The scopes to consider for automatic scoping.\n\nDefaults to [\"D\", \"W\", \"M\", \"Y\", \"5Y\", \"10Y\"]",
9609
+ "type": "array",
9610
+ "default": "[\"D\",\"W\",\"M\",\"Y\",\"5Y\",\"10Y\"]"
9611
+ },
9612
+ {
9613
+ "name": "url",
9614
+ "attribute": "url",
9615
+ "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.",
9616
+ "type": "string",
9617
+ "default": "\"\""
9618
+ },
9619
+ {
9620
+ "name": "auto",
9621
+ "attribute": "auto",
9622
+ "description": "If set, data will be retrieved automatically on first load.",
9623
+ "type": "boolean",
9624
+ "default": "false"
9625
+ },
9626
+ {
9627
+ "name": "resettable",
9628
+ "attribute": "resettable",
9629
+ "type": "boolean",
9630
+ "default": "false"
9631
+ },
9632
+ {
9633
+ "name": "subscribe",
9634
+ "attribute": "subscribe",
9635
+ "description": "The name of the channel to subscribe to. Only events on a channel corresponding\nto this property are listened to.",
9636
+ "type": "string"
9637
+ },
9638
+ {
9639
+ "name": "subscribeConfig",
9640
+ "attribute": "subscribe-config",
9641
+ "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.",
9642
+ "type": "object"
9643
+ },
9644
+ {
9645
+ "name": "emit",
9646
+ "attribute": "emit",
9647
+ "description": "The name of the channel to send events to.",
9648
+ "type": "string"
9649
+ },
9650
+ {
9651
+ "name": "emitConfig",
9652
+ "attribute": "emit-config",
9653
+ "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.",
9654
+ "type": "object"
9655
+ },
9656
+ {
9657
+ "name": "waitFor",
9658
+ "attribute": "wait-for",
9659
+ "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.",
9660
+ "type": "string"
9661
+ },
9662
+ {
9663
+ "name": "disabled",
9664
+ "attribute": "disabled",
9665
+ "description": "Common property to disable the functionality associated with a component.\n`pb-highlight` and `pb-popover` react to this.",
9666
+ "type": "boolean",
9667
+ "default": "false"
9668
+ }
9669
+ ],
9670
+ "events": [
9671
+ {
9672
+ "name": "pb-timeline-date-changed",
9673
+ "description": "Triggered when user clicks on a single entry"
9674
+ },
9675
+ {
9676
+ "name": "pb-timeline-daterange-changed",
9677
+ "description": "Triggered when user selects a range of entries"
9678
+ },
9679
+ {
9680
+ "name": "pb-timeline-reset-selection",
9681
+ "description": "Requests that the timeline is reset to initial state"
9682
+ },
9683
+ {
9684
+ "name": "pb-timeline-loaded",
9685
+ "description": "Timeline was loaded"
9686
+ }
9687
+ ],
9688
+ "slots": [
9689
+ {
9690
+ "name": "label",
9691
+ "description": "Inserted before the label showing the currently displayed time range"
9692
+ }
9693
+ ],
9694
+ "cssProperties": [
9695
+ {
9696
+ "name": "--pb-timeline-height"
9697
+ },
9698
+ {
9699
+ "name": "--pb-timeline-padding"
9700
+ },
9701
+ {
9702
+ "name": "--pb-timeline-color-highlight"
9703
+ },
9704
+ {
9705
+ "name": "--pb-timeline-color-light"
9706
+ },
9707
+ {
9708
+ "name": "--pb-timeline-color-dark"
9709
+ },
9710
+ {
9711
+ "name": "--pb-timeline-color-selected"
9712
+ },
9713
+ {
9714
+ "name": "--pb-timeline-color-bin"
9715
+ },
9716
+ {
9717
+ "name": "--pb-timeline-title-font-size"
9718
+ },
9719
+ {
9720
+ "name": "--pb-timeline-tooltip-font-size"
9721
+ }
9722
+ ],
9723
+ "cssParts": [
9724
+ {
9725
+ "name": "label"
9726
+ },
9727
+ {
9728
+ "name": "tooltip"
9729
+ },
9730
+ {
9731
+ "name": "title"
9732
+ }
9733
+ ]
9734
+ },
9474
9735
  {
9475
9736
  "name": "pb-toggle-feature",
9476
9737
  "path": "./src/pb-toggle-feature.js",
@@ -9961,6 +10222,12 @@
9961
10222
  "description": "If set to the name of an event, the content of the pb-view will not be replaced\nimmediately upon updates. Instead, an event is emitted, which contains the new content\nin property `root`. An event handler intercepting the event can thus modify the content.\nOnce it is done, it should pass the modified content to the callback function provided\nin the event detail under the name `render`. See the demo for an example.",
9962
10223
  "type": "string"
9963
10224
  },
10225
+ {
10226
+ "name": "static",
10227
+ "description": "If set, rewrite URLs to load pages as static HTML files,\nso no TEI Publisher instance is required. Use this in combination with\n[tei-publisher-static](https://github.com/eeditiones/tei-publisher-static).",
10228
+ "type": "boolean",
10229
+ "default": "false"
10230
+ },
9964
10231
  {
9965
10232
  "name": "subscribe",
9966
10233
  "description": "The name of the channel to subscribe to. Only events on a channel corresponding\nto this property are listened to.",
@@ -10156,6 +10423,13 @@
10156
10423
  "description": "If set to the name of an event, the content of the pb-view will not be replaced\nimmediately upon updates. Instead, an event is emitted, which contains the new content\nin property `root`. An event handler intercepting the event can thus modify the content.\nOnce it is done, it should pass the modified content to the callback function provided\nin the event detail under the name `render`. See the demo for an example.",
10157
10424
  "type": "string"
10158
10425
  },
10426
+ {
10427
+ "name": "static",
10428
+ "attribute": "static",
10429
+ "description": "If set, rewrite URLs to load pages as static HTML files,\nso no TEI Publisher instance is required. Use this in combination with\n[tei-publisher-static](https://github.com/eeditiones/tei-publisher-static).",
10430
+ "type": "boolean",
10431
+ "default": "false"
10432
+ },
10159
10433
  {
10160
10434
  "name": "subscribe",
10161
10435
  "attribute": "subscribe",
@@ -10412,6 +10686,12 @@
10412
10686
  "description": "If set to the name of an event, the content of the pb-view will not be replaced\nimmediately upon updates. Instead, an event is emitted, which contains the new content\nin property `root`. An event handler intercepting the event can thus modify the content.\nOnce it is done, it should pass the modified content to the callback function provided\nin the event detail under the name `render`. See the demo for an example.",
10413
10687
  "type": "string"
10414
10688
  },
10689
+ {
10690
+ "name": "static",
10691
+ "description": "If set, rewrite URLs to load pages as static HTML files,\nso no TEI Publisher instance is required. Use this in combination with\n[tei-publisher-static](https://github.com/eeditiones/tei-publisher-static).",
10692
+ "type": "boolean",
10693
+ "default": "false"
10694
+ },
10415
10695
  {
10416
10696
  "name": "subscribe",
10417
10697
  "description": "The name of the channel to subscribe to. Only events on a channel corresponding\nto this property are listened to.",
@@ -10590,6 +10870,13 @@
10590
10870
  "description": "If set to the name of an event, the content of the pb-view will not be replaced\nimmediately upon updates. Instead, an event is emitted, which contains the new content\nin property `root`. An event handler intercepting the event can thus modify the content.\nOnce it is done, it should pass the modified content to the callback function provided\nin the event detail under the name `render`. See the demo for an example.",
10591
10871
  "type": "string"
10592
10872
  },
10873
+ {
10874
+ "name": "static",
10875
+ "attribute": "static",
10876
+ "description": "If set, rewrite URLs to load pages as static HTML files,\nso no TEI Publisher instance is required. Use this in combination with\n[tei-publisher-static](https://github.com/eeditiones/tei-publisher-static).",
10877
+ "type": "boolean",
10878
+ "default": "false"
10879
+ },
10593
10880
  {
10594
10881
  "name": "subscribe",
10595
10882
  "attribute": "subscribe",
@@ -274,5 +274,9 @@
274
274
  "output": "Trainingsausgabe",
275
275
  "prepare": "Trainingsdaten vorbereiten",
276
276
  "start": "Ausführen"
277
+ },
278
+ "timeline": {
279
+ "unknown": "undatiert",
280
+ "clear": "Zeitraum zurücksetzen"
277
281
  }
278
282
  }
@@ -274,5 +274,9 @@
274
274
  "output": "Training Output",
275
275
  "prepare": "Preparing training data",
276
276
  "start": "Run"
277
+ },
278
+ "timeline": {
279
+ "unknown": "undated",
280
+ "clear": "Clear date selection"
277
281
  }
278
282
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@teipublisher/pb-components",
3
- "version": "1.32.2",
3
+ "version": "1.34.1",
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",