@teipublisher/pb-components 1.41.2 → 1.42.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/css/pagedjs/interface.css +180 -0
- package/dist/demo/demos.json +3 -0
- package/dist/demo/pb-print-preview.html +32 -0
- package/dist/pb-components-bundle.js +2 -2
- package/dist/pb-elements.json +98 -2
- package/dist/pb-odd-editor.js +1 -1
- package/dist/pb-print-preview.js +6 -0
- package/package.json +2 -1
- package/pb-elements.json +98 -2
- package/src/assets/pagedjs/interface.css +180 -0
- package/src/pb-document.js +4 -0
- package/src/pb-odd-model-editor.js +1 -0
- package/src/pb-print-preview.js +111 -0
package/dist/pb-elements.json
CHANGED
|
@@ -7267,7 +7267,7 @@
|
|
|
7267
7267
|
{
|
|
7268
7268
|
"name": "outputs",
|
|
7269
7269
|
"type": "array",
|
|
7270
|
-
"default": "[\"\",\"web\",\"print\",\"epub\",\"fo\",\"latex\",\"plain\"]"
|
|
7270
|
+
"default": "[\"\",\"web\",\"printcss\",\"print\",\"epub\",\"fo\",\"latex\",\"plain\"]"
|
|
7271
7271
|
},
|
|
7272
7272
|
{
|
|
7273
7273
|
"name": "behaviours",
|
|
@@ -7390,7 +7390,7 @@
|
|
|
7390
7390
|
"name": "outputs",
|
|
7391
7391
|
"attribute": "outputs",
|
|
7392
7392
|
"type": "array",
|
|
7393
|
-
"default": "[\"\",\"web\",\"print\",\"epub\",\"fo\",\"latex\",\"plain\"]"
|
|
7393
|
+
"default": "[\"\",\"web\",\"printcss\",\"print\",\"epub\",\"fo\",\"latex\",\"plain\"]"
|
|
7394
7394
|
},
|
|
7395
7395
|
{
|
|
7396
7396
|
"name": "parentModel",
|
|
@@ -8390,6 +8390,102 @@
|
|
|
8390
8390
|
}
|
|
8391
8391
|
]
|
|
8392
8392
|
},
|
|
8393
|
+
{
|
|
8394
|
+
"name": "pb-print-preview",
|
|
8395
|
+
"path": "./src/pb-print-preview.js",
|
|
8396
|
+
"attributes": [
|
|
8397
|
+
{
|
|
8398
|
+
"name": "src",
|
|
8399
|
+
"description": "ID of the pb-document this element is connected to. The document path to\nload will be taken from the pb-document.",
|
|
8400
|
+
"type": "string"
|
|
8401
|
+
},
|
|
8402
|
+
{
|
|
8403
|
+
"name": "styles",
|
|
8404
|
+
"type": "string"
|
|
8405
|
+
},
|
|
8406
|
+
{
|
|
8407
|
+
"name": "subscribe",
|
|
8408
|
+
"description": "The name of the channel to subscribe to. Only events on a channel corresponding\nto this property are listened to.",
|
|
8409
|
+
"type": "string"
|
|
8410
|
+
},
|
|
8411
|
+
{
|
|
8412
|
+
"name": "subscribe-config",
|
|
8413
|
+
"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.",
|
|
8414
|
+
"type": "object"
|
|
8415
|
+
},
|
|
8416
|
+
{
|
|
8417
|
+
"name": "emit",
|
|
8418
|
+
"description": "The name of the channel to send events to.",
|
|
8419
|
+
"type": "string"
|
|
8420
|
+
},
|
|
8421
|
+
{
|
|
8422
|
+
"name": "emit-config",
|
|
8423
|
+
"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.",
|
|
8424
|
+
"type": "object"
|
|
8425
|
+
},
|
|
8426
|
+
{
|
|
8427
|
+
"name": "wait-for",
|
|
8428
|
+
"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.",
|
|
8429
|
+
"type": "string"
|
|
8430
|
+
},
|
|
8431
|
+
{
|
|
8432
|
+
"name": "disabled",
|
|
8433
|
+
"description": "Common property to disable the functionality associated with a component.\n`pb-highlight` and `pb-popover` react to this.",
|
|
8434
|
+
"type": "boolean",
|
|
8435
|
+
"default": "false"
|
|
8436
|
+
}
|
|
8437
|
+
],
|
|
8438
|
+
"properties": [
|
|
8439
|
+
{
|
|
8440
|
+
"name": "src",
|
|
8441
|
+
"attribute": "src",
|
|
8442
|
+
"description": "ID of the pb-document this element is connected to. The document path to\nload will be taken from the pb-document.",
|
|
8443
|
+
"type": "string"
|
|
8444
|
+
},
|
|
8445
|
+
{
|
|
8446
|
+
"name": "styles",
|
|
8447
|
+
"attribute": "styles",
|
|
8448
|
+
"type": "string"
|
|
8449
|
+
},
|
|
8450
|
+
{
|
|
8451
|
+
"name": "subscribe",
|
|
8452
|
+
"attribute": "subscribe",
|
|
8453
|
+
"description": "The name of the channel to subscribe to. Only events on a channel corresponding\nto this property are listened to.",
|
|
8454
|
+
"type": "string"
|
|
8455
|
+
},
|
|
8456
|
+
{
|
|
8457
|
+
"name": "subscribeConfig",
|
|
8458
|
+
"attribute": "subscribe-config",
|
|
8459
|
+
"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.",
|
|
8460
|
+
"type": "object"
|
|
8461
|
+
},
|
|
8462
|
+
{
|
|
8463
|
+
"name": "emit",
|
|
8464
|
+
"attribute": "emit",
|
|
8465
|
+
"description": "The name of the channel to send events to.",
|
|
8466
|
+
"type": "string"
|
|
8467
|
+
},
|
|
8468
|
+
{
|
|
8469
|
+
"name": "emitConfig",
|
|
8470
|
+
"attribute": "emit-config",
|
|
8471
|
+
"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.",
|
|
8472
|
+
"type": "object"
|
|
8473
|
+
},
|
|
8474
|
+
{
|
|
8475
|
+
"name": "waitFor",
|
|
8476
|
+
"attribute": "wait-for",
|
|
8477
|
+
"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.",
|
|
8478
|
+
"type": "string"
|
|
8479
|
+
},
|
|
8480
|
+
{
|
|
8481
|
+
"name": "disabled",
|
|
8482
|
+
"attribute": "disabled",
|
|
8483
|
+
"description": "Common property to disable the functionality associated with a component.\n`pb-highlight` and `pb-popover` react to this.",
|
|
8484
|
+
"type": "boolean",
|
|
8485
|
+
"default": "false"
|
|
8486
|
+
}
|
|
8487
|
+
]
|
|
8488
|
+
},
|
|
8393
8489
|
{
|
|
8394
8490
|
"name": "pb-progress",
|
|
8395
8491
|
"path": "./src/pb-progress.js",
|
package/dist/pb-odd-editor.js
CHANGED
|
@@ -865,7 +865,7 @@ This program is available under Apache License Version 2.0, available at https:/
|
|
|
865
865
|
#mode {
|
|
866
866
|
min-width: 18em;
|
|
867
867
|
}
|
|
868
|
-
`}static get properties(){return{behaviour:{type:String},predicate:{type:String,reflect:!0,converter:(e,t)=>"null"===e.toLowerCase()?"":e},type:{type:String,reflect:!0},template:{type:String,reflect:!0,converter:(e,t)=>"null"===e.toLowerCase()?"":e},output:{type:String,reflect:!0,converter:(e,t)=>"null"===e.toLowerCase()?"":e},css:{type:String,converter:(e,t)=>"null"===e.toLowerCase()?"":e},mode:{type:String},model:{type:Object},models:{type:Array},parameters:{type:Array},renditions:{type:Array},desc:{type:String,converter:(e,t)=>"null"===e.toLowerCase()?"":e},sourcerend:{type:String},show:{type:Boolean,reflect:!0},outputs:{type:Array},behaviours:{type:Array},icon:{type:String},open:{type:String},hasCustomBehaviour:{type:Boolean},endpoint:{type:String},apiVersion:{type:String}}}constructor(){super(),this.behaviour="inline",this.predicate="",this.type="",this.template="",this.output="",this.css="",this.mode="",this.model={},this.model.models=[],this.parameters=[],this.renditions=[],this.desc="",this.sourcerend="",this.show=!1,this.outputs=["","web","print","epub","fo","latex","plain"],this.parentModel=[],this.behaviours=["alternate","anchor","block","body","break","cell","cit","document","figure","graphic","heading","inline","link","list","listItem","metadata","note","omit","paragraph","pass-through","row","section","table","text","title","webcomponent"],this.icon="expand-more",this.hasCustomBehaviour=!1}render(){let e;switch(this.output){case"web":case"epub":e="html";break;case"latex":e="tex";break;case"plain":e="default";break;case"fo":case"print":e="xml";break;default:e="html"}return y`
|
|
868
|
+
`}static get properties(){return{behaviour:{type:String},predicate:{type:String,reflect:!0,converter:(e,t)=>"null"===e.toLowerCase()?"":e},type:{type:String,reflect:!0},template:{type:String,reflect:!0,converter:(e,t)=>"null"===e.toLowerCase()?"":e},output:{type:String,reflect:!0,converter:(e,t)=>"null"===e.toLowerCase()?"":e},css:{type:String,converter:(e,t)=>"null"===e.toLowerCase()?"":e},mode:{type:String},model:{type:Object},models:{type:Array},parameters:{type:Array},renditions:{type:Array},desc:{type:String,converter:(e,t)=>"null"===e.toLowerCase()?"":e},sourcerend:{type:String},show:{type:Boolean,reflect:!0},outputs:{type:Array},behaviours:{type:Array},icon:{type:String},open:{type:String},hasCustomBehaviour:{type:Boolean},endpoint:{type:String},apiVersion:{type:String}}}constructor(){super(),this.behaviour="inline",this.predicate="",this.type="",this.template="",this.output="",this.css="",this.mode="",this.model={},this.model.models=[],this.parameters=[],this.renditions=[],this.desc="",this.sourcerend="",this.show=!1,this.outputs=["","web","printcss","print","epub","fo","latex","plain"],this.parentModel=[],this.behaviours=["alternate","anchor","block","body","break","cell","cit","document","figure","graphic","heading","inline","link","list","listItem","metadata","note","omit","paragraph","pass-through","row","section","table","text","title","webcomponent"],this.icon="expand-more",this.hasCustomBehaviour=!1}render(){let e;switch(this.output){case"web":case"epub":e="html";break;case"latex":e="tex";break;case"plain":e="default";break;case"fo":case"print":e="xml";break;default:e="html"}return y`
|
|
869
869
|
<form>
|
|
870
870
|
<header>
|
|
871
871
|
<h4>
|