@teipublisher/pb-components 2.0.0 → 2.1.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/.github/workflows/main.yml +1 -1
- package/.github/workflows/release.js.yml +0 -2
- package/CHANGELOG.md +23 -0
- package/dist/demo/demos.json +4 -0
- package/dist/demo/pb-image-strip-standalone.html +94 -0
- package/dist/demo/pb-image-strip-view.html +92 -0
- package/dist/pb-components-bundle.js +205 -195
- package/dist/pb-elements.json +155 -2
- package/lib/openseadragon.min.js +4 -4
- package/package.json +3 -3
- package/pb-elements.json +155 -2
- package/src/pb-components.js +1 -0
- package/src/pb-facs-link.js +33 -9
- package/src/pb-facsimile.js +34 -31
- package/src/pb-image-strip.js +97 -0
package/dist/pb-elements.json
CHANGED
|
@@ -3912,6 +3912,16 @@
|
|
|
3912
3912
|
"type": "string",
|
|
3913
3913
|
"default": "\"mouseover\""
|
|
3914
3914
|
},
|
|
3915
|
+
{
|
|
3916
|
+
"name": "label",
|
|
3917
|
+
"type": "string",
|
|
3918
|
+
"default": "\"\""
|
|
3919
|
+
},
|
|
3920
|
+
{
|
|
3921
|
+
"name": "order",
|
|
3922
|
+
"type": "number",
|
|
3923
|
+
"default": "\"POSITIVE_INFINITY\""
|
|
3924
|
+
},
|
|
3915
3925
|
{
|
|
3916
3926
|
"name": "subscribe",
|
|
3917
3927
|
"description": "The name of the channel to subscribe to. Only events on a channel corresponding\nto this property are listened to.",
|
|
@@ -3935,7 +3945,8 @@
|
|
|
3935
3945
|
{
|
|
3936
3946
|
"name": "wait-for",
|
|
3937
3947
|
"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.",
|
|
3938
|
-
"type": "string"
|
|
3948
|
+
"type": "string",
|
|
3949
|
+
"default": "\"pb-facsimile,pb-image-strip\""
|
|
3939
3950
|
},
|
|
3940
3951
|
{
|
|
3941
3952
|
"name": "disabled",
|
|
@@ -3970,6 +3981,23 @@
|
|
|
3970
3981
|
"type": "string",
|
|
3971
3982
|
"default": "\"mouseover\""
|
|
3972
3983
|
},
|
|
3984
|
+
{
|
|
3985
|
+
"name": "label",
|
|
3986
|
+
"attribute": "label",
|
|
3987
|
+
"type": "string",
|
|
3988
|
+
"default": "\"\""
|
|
3989
|
+
},
|
|
3990
|
+
{
|
|
3991
|
+
"name": "order",
|
|
3992
|
+
"attribute": "order",
|
|
3993
|
+
"type": "number",
|
|
3994
|
+
"default": "\"POSITIVE_INFINITY\""
|
|
3995
|
+
},
|
|
3996
|
+
{
|
|
3997
|
+
"name": "default",
|
|
3998
|
+
"type": "string",
|
|
3999
|
+
"default": "\"\""
|
|
4000
|
+
},
|
|
3973
4001
|
{
|
|
3974
4002
|
"name": "subscribe",
|
|
3975
4003
|
"attribute": "subscribe",
|
|
@@ -3998,7 +4026,8 @@
|
|
|
3998
4026
|
"name": "waitFor",
|
|
3999
4027
|
"attribute": "wait-for",
|
|
4000
4028
|
"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.",
|
|
4001
|
-
"type": "string"
|
|
4029
|
+
"type": "string",
|
|
4030
|
+
"default": "\"pb-facsimile,pb-image-strip\""
|
|
4002
4031
|
},
|
|
4003
4032
|
{
|
|
4004
4033
|
"name": "disabled",
|
|
@@ -5089,6 +5118,130 @@
|
|
|
5089
5118
|
}
|
|
5090
5119
|
]
|
|
5091
5120
|
},
|
|
5121
|
+
{
|
|
5122
|
+
"name": "pb-image-strip",
|
|
5123
|
+
"path": "./src/pb-image-strip.js",
|
|
5124
|
+
"attributes": [
|
|
5125
|
+
{
|
|
5126
|
+
"name": "base-uri",
|
|
5127
|
+
"type": "string"
|
|
5128
|
+
},
|
|
5129
|
+
{
|
|
5130
|
+
"name": "items",
|
|
5131
|
+
"description": "Array of image",
|
|
5132
|
+
"type": "array",
|
|
5133
|
+
"default": "[]"
|
|
5134
|
+
},
|
|
5135
|
+
{
|
|
5136
|
+
"name": "image-height",
|
|
5137
|
+
"type": "number",
|
|
5138
|
+
"default": "80"
|
|
5139
|
+
},
|
|
5140
|
+
{
|
|
5141
|
+
"name": "image-width",
|
|
5142
|
+
"type": "number",
|
|
5143
|
+
"default": "64"
|
|
5144
|
+
},
|
|
5145
|
+
{
|
|
5146
|
+
"name": "subscribe",
|
|
5147
|
+
"description": "The name of the channel to subscribe to. Only events on a channel corresponding\nto this property are listened to.",
|
|
5148
|
+
"type": "string"
|
|
5149
|
+
},
|
|
5150
|
+
{
|
|
5151
|
+
"name": "subscribe-config",
|
|
5152
|
+
"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.",
|
|
5153
|
+
"type": "object"
|
|
5154
|
+
},
|
|
5155
|
+
{
|
|
5156
|
+
"name": "emit",
|
|
5157
|
+
"description": "The name of the channel to send events to.",
|
|
5158
|
+
"type": "string"
|
|
5159
|
+
},
|
|
5160
|
+
{
|
|
5161
|
+
"name": "emit-config",
|
|
5162
|
+
"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.",
|
|
5163
|
+
"type": "object"
|
|
5164
|
+
},
|
|
5165
|
+
{
|
|
5166
|
+
"name": "wait-for",
|
|
5167
|
+
"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.",
|
|
5168
|
+
"type": "string"
|
|
5169
|
+
},
|
|
5170
|
+
{
|
|
5171
|
+
"name": "disabled",
|
|
5172
|
+
"description": "Common property to disable the functionality associated with a component.\n`pb-highlight` and `pb-popover` react to this.",
|
|
5173
|
+
"type": "boolean",
|
|
5174
|
+
"default": "false"
|
|
5175
|
+
}
|
|
5176
|
+
],
|
|
5177
|
+
"properties": [
|
|
5178
|
+
{
|
|
5179
|
+
"name": "baseUri",
|
|
5180
|
+
"attribute": "base-uri",
|
|
5181
|
+
"type": "string"
|
|
5182
|
+
},
|
|
5183
|
+
{
|
|
5184
|
+
"name": "items",
|
|
5185
|
+
"attribute": "items",
|
|
5186
|
+
"description": "Array of image",
|
|
5187
|
+
"type": "array",
|
|
5188
|
+
"default": "[]"
|
|
5189
|
+
},
|
|
5190
|
+
{
|
|
5191
|
+
"name": "urls",
|
|
5192
|
+
"type": "Set<any>"
|
|
5193
|
+
},
|
|
5194
|
+
{
|
|
5195
|
+
"name": "imageHeight",
|
|
5196
|
+
"attribute": "image-height",
|
|
5197
|
+
"type": "number",
|
|
5198
|
+
"default": "80"
|
|
5199
|
+
},
|
|
5200
|
+
{
|
|
5201
|
+
"name": "imageWidth",
|
|
5202
|
+
"attribute": "image-width",
|
|
5203
|
+
"type": "number",
|
|
5204
|
+
"default": "64"
|
|
5205
|
+
},
|
|
5206
|
+
{
|
|
5207
|
+
"name": "subscribe",
|
|
5208
|
+
"attribute": "subscribe",
|
|
5209
|
+
"description": "The name of the channel to subscribe to. Only events on a channel corresponding\nto this property are listened to.",
|
|
5210
|
+
"type": "string"
|
|
5211
|
+
},
|
|
5212
|
+
{
|
|
5213
|
+
"name": "subscribeConfig",
|
|
5214
|
+
"attribute": "subscribe-config",
|
|
5215
|
+
"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.",
|
|
5216
|
+
"type": "object"
|
|
5217
|
+
},
|
|
5218
|
+
{
|
|
5219
|
+
"name": "emit",
|
|
5220
|
+
"attribute": "emit",
|
|
5221
|
+
"description": "The name of the channel to send events to.",
|
|
5222
|
+
"type": "string"
|
|
5223
|
+
},
|
|
5224
|
+
{
|
|
5225
|
+
"name": "emitConfig",
|
|
5226
|
+
"attribute": "emit-config",
|
|
5227
|
+
"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.",
|
|
5228
|
+
"type": "object"
|
|
5229
|
+
},
|
|
5230
|
+
{
|
|
5231
|
+
"name": "waitFor",
|
|
5232
|
+
"attribute": "wait-for",
|
|
5233
|
+
"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.",
|
|
5234
|
+
"type": "string"
|
|
5235
|
+
},
|
|
5236
|
+
{
|
|
5237
|
+
"name": "disabled",
|
|
5238
|
+
"attribute": "disabled",
|
|
5239
|
+
"description": "Common property to disable the functionality associated with a component.\n`pb-highlight` and `pb-popover` react to this.",
|
|
5240
|
+
"type": "boolean",
|
|
5241
|
+
"default": "false"
|
|
5242
|
+
}
|
|
5243
|
+
]
|
|
5244
|
+
},
|
|
5092
5245
|
{
|
|
5093
5246
|
"name": "pb-lang",
|
|
5094
5247
|
"path": "./src/pb-lang.js",
|