@teipublisher/pb-components 2.26.1-next.3 → 3.0.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.
Files changed (154) hide show
  1. package/.github/workflows/main.yml +3 -3
  2. package/.github/workflows/node.js.yml +3 -3
  3. package/.github/workflows/release.js.yml +4 -4
  4. package/.releaserc.json +2 -2
  5. package/CHANGELOG.md +262 -11
  6. package/Dockerfile +78 -70
  7. package/css/components.css +5 -5
  8. package/css/leaflet/images/layers.png +0 -0
  9. package/dist/demo/components.css +46 -1
  10. package/dist/demo/pb-browse-docs2.html +1 -1
  11. package/dist/demo/pb-dialog.html +3 -5
  12. package/dist/demo/pb-drawer2.html +1 -1
  13. package/dist/demo/pb-facsimile.html +2 -2
  14. package/dist/demo/pb-grid.html +19 -6
  15. package/dist/demo/pb-leaflet-map.html +1 -1
  16. package/dist/demo/pb-login.html +0 -2
  17. package/dist/demo/pb-message.html +1 -2
  18. package/dist/demo/pb-progress.html +2 -2
  19. package/dist/demo/pb-repeat.html +1 -3
  20. package/dist/demo/pb-search.html +7 -4
  21. package/dist/demo/pb-search3.html +1 -1
  22. package/dist/demo/pb-search4.html +2 -2
  23. package/dist/demo/pb-view3.html +1 -1
  24. package/dist/{iron-form-3b8dcaa7.js → iron-form-dfb3e3b1.js} +95 -95
  25. package/dist/paper-checkbox-645e1077.js +200 -0
  26. package/dist/{paper-icon-button-b1d31571.js → paper-icon-button-984162bd.js} +1 -1
  27. package/dist/{paper-checkbox-515a5284.js → paper-inky-focus-behavior-fa16796b.js} +58 -247
  28. package/dist/{paper-listbox-a3b7175c.js → paper-listbox-5f5d1cec.js} +152 -162
  29. package/dist/pb-code-editor.js +25 -20
  30. package/dist/pb-component-docs.js +68 -64
  31. package/dist/pb-components-bundle.js +1983 -2293
  32. package/dist/pb-edit-app.js +167 -107
  33. package/dist/pb-elements.json +176 -120
  34. package/dist/{pb-i18n-0611135a.js → pb-i18n-4cc00bfe.js} +1 -1
  35. package/dist/pb-leaflet-map.js +23 -23
  36. package/dist/pb-mei.js +56 -41
  37. package/dist/{pb-mixin-b1caa22e.js → pb-mixin-886ece32.js} +1 -1
  38. package/dist/pb-odd-editor.js +1023 -782
  39. package/dist/pb-tify.js +2 -2
  40. package/dist/vaadin-element-mixin-beb74ffd.js +545 -0
  41. package/gh-pages.js +5 -3
  42. package/i18n/common/en.json +6 -0
  43. package/i18n/common/pl.json +2 -2
  44. package/lib/openseadragon.min.js +6 -6
  45. package/package.json +3 -3
  46. package/pb-elements.json +176 -120
  47. package/src/assets/components.css +5 -5
  48. package/src/authority/airtable.js +20 -21
  49. package/src/authority/anton.js +129 -129
  50. package/src/authority/custom.js +23 -21
  51. package/src/authority/geonames.js +38 -32
  52. package/src/authority/gnd.js +50 -42
  53. package/src/authority/kbga.js +137 -134
  54. package/src/authority/metagrid.js +44 -46
  55. package/src/authority/reconciliation.js +66 -67
  56. package/src/authority/registry.js +4 -4
  57. package/src/docs/pb-component-docs.js +2 -2
  58. package/src/docs/pb-component-view.js +5 -5
  59. package/src/docs/pb-components-list.js +2 -2
  60. package/src/docs/pb-demo-snippet.js +2 -2
  61. package/src/dts-client.js +299 -297
  62. package/src/dts-select-endpoint.js +90 -82
  63. package/src/parse-date-service.js +184 -135
  64. package/src/pb-ajax.js +158 -171
  65. package/src/pb-authority-lookup.js +191 -156
  66. package/src/pb-autocomplete.js +292 -280
  67. package/src/pb-blacklab-highlight.js +264 -259
  68. package/src/pb-blacklab-results.js +236 -221
  69. package/src/pb-browse-docs.js +540 -475
  70. package/src/pb-browse.js +68 -65
  71. package/src/pb-clipboard.js +79 -76
  72. package/src/pb-code-editor.js +110 -102
  73. package/src/pb-code-highlight.js +209 -204
  74. package/src/pb-codepen.js +79 -72
  75. package/src/pb-collapse.js +211 -151
  76. package/src/pb-combo-box.js +190 -190
  77. package/src/pb-components-bundle.js +1 -1
  78. package/src/pb-components.js +1 -0
  79. package/src/pb-custom-form.js +173 -153
  80. package/src/pb-dialog.js +98 -62
  81. package/src/pb-document.js +89 -90
  82. package/src/pb-download.js +212 -196
  83. package/src/pb-drawer.js +145 -148
  84. package/src/pb-edit-app.js +301 -229
  85. package/src/pb-edit-xml.js +100 -97
  86. package/src/pb-events.js +114 -107
  87. package/src/pb-facs-link.js +104 -102
  88. package/src/pb-facsimile.js +474 -410
  89. package/src/pb-formula.js +151 -153
  90. package/src/pb-geolocation.js +129 -131
  91. package/src/pb-grid-action.js +53 -56
  92. package/src/pb-grid.js +231 -228
  93. package/src/pb-highlight.js +140 -140
  94. package/src/pb-hotkeys.js +40 -42
  95. package/src/pb-i18n.js +101 -104
  96. package/src/pb-image-strip.js +84 -78
  97. package/src/pb-lang.js +142 -57
  98. package/src/pb-leaflet-map.js +488 -485
  99. package/src/pb-link.js +126 -124
  100. package/src/pb-load.js +431 -429
  101. package/src/pb-login.js +299 -244
  102. package/src/pb-manage-odds.js +352 -336
  103. package/src/pb-map-icon.js +89 -89
  104. package/src/pb-map-layer.js +85 -85
  105. package/src/pb-markdown.js +90 -99
  106. package/src/pb-media-query.js +74 -72
  107. package/src/pb-mei.js +306 -295
  108. package/src/pb-message.js +139 -97
  109. package/src/pb-mixin.js +269 -264
  110. package/src/pb-navigation.js +80 -95
  111. package/src/pb-observable.js +38 -38
  112. package/src/pb-odd-editor.js +1054 -958
  113. package/src/pb-odd-elementspec-editor.js +349 -298
  114. package/src/pb-odd-model-editor.js +1075 -909
  115. package/src/pb-odd-parameter-editor.js +200 -178
  116. package/src/pb-odd-rendition-editor.js +136 -124
  117. package/src/pb-page.js +431 -422
  118. package/src/pb-paginate.js +228 -179
  119. package/src/pb-panel.js +198 -182
  120. package/src/pb-popover-themes.js +15 -8
  121. package/src/pb-popover.js +296 -287
  122. package/src/pb-print-preview.js +127 -127
  123. package/src/pb-progress.js +51 -51
  124. package/src/pb-repeat.js +105 -104
  125. package/src/pb-restricted.js +84 -77
  126. package/src/pb-search.js +256 -228
  127. package/src/pb-select-feature.js +127 -120
  128. package/src/pb-select-odd.js +132 -124
  129. package/src/pb-select-template.js +89 -78
  130. package/src/pb-select.js +251 -227
  131. package/src/pb-split-list.js +179 -174
  132. package/src/pb-svg.js +80 -79
  133. package/src/pb-table-column.js +54 -54
  134. package/src/pb-table-grid.js +221 -203
  135. package/src/pb-tabs.js +61 -63
  136. package/src/pb-tify.js +154 -154
  137. package/src/pb-timeline.js +382 -249
  138. package/src/pb-toggle-feature.js +195 -187
  139. package/src/pb-upload.js +184 -174
  140. package/src/pb-version.js +30 -30
  141. package/src/pb-view-annotate.js +135 -98
  142. package/src/pb-view.js +1282 -1270
  143. package/src/pb-zoom.js +127 -45
  144. package/src/polymer-hack.js +1 -1
  145. package/src/search-result-service.js +256 -223
  146. package/src/seed-element.js +13 -20
  147. package/src/settings.js +4 -4
  148. package/src/theming.js +98 -91
  149. package/src/urls.js +289 -289
  150. package/src/utils.js +53 -51
  151. package/css/pb-styles.css +0 -51
  152. package/dist/vaadin-element-mixin-fe4a4883.js +0 -527
  153. package/src/assets/pb-styles.css +0 -51
  154. package/src/pb-light-dom.js +0 -41
@@ -0,0 +1,200 @@
1
+ import{g as e,f as a,v as c,b as r,h as o,P as t,z as i}from"./paper-inky-focus-behavior-fa16796b.js";
2
+ /**
3
+ @license
4
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
5
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
6
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
8
+ Code distributed by Google as part of the polymer project is also
9
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
10
+ */let n=!1,l=[],h=[];function p(){n=!0,requestAnimationFrame((function(){n=!1,s(l),setTimeout((function(){d(h)}))}))}function s(e){for(;e.length;)k(e.shift())}function d(e){for(let a=0,c=e.length;a<c;a++)k(e.shift())}function k(e){const a=e[0],c=e[1],r=e[2];try{c.apply(a,r)}catch(e){setTimeout(()=>{throw e})}}function b(e,a,c){n||p(),h.push([e,a,c])}
11
+ /**
12
+ @license
13
+ Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
14
+ This code may only be used under the BSD style license found at
15
+ http://polymer.github.io/LICENSE.txt The complete set of authors may be found at
16
+ http://polymer.github.io/AUTHORS.txt The complete set of contributors may be
17
+ found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by Google as
18
+ part of the polymer project is also subject to an additional IP rights grant
19
+ found at http://polymer.github.io/PATENTS.txt
20
+ */const u={properties:{checked:{type:Boolean,value:!1,reflectToAttribute:!0,notify:!0,observer:"_checkedChanged"},toggles:{type:Boolean,value:!0,reflectToAttribute:!0},value:{type:String,value:"on",observer:"_valueChanged"}},observers:["_requiredChanged(required)"],created:function(){this._hasIronCheckedElementBehavior=!0},_getValidity:function(e){return this.disabled||!this.required||this.checked},_requiredChanged:function(){this.required?this.setAttribute("aria-required","true"):this.removeAttribute("aria-required")},_checkedChanged:function(){this.active=this.checked,this.fire("iron-change")},_valueChanged:function(){void 0!==this.value&&null!==this.value||(this.value="on")}},x=[c,[e,a,u],{_checkedChanged:function(){u._checkedChanged.call(this),this.hasRipple()&&(this.checked?this._ripple.setAttribute("checked",""):this._ripple.removeAttribute("checked"))},_buttonStateChanged:function(){r._buttonStateChanged.call(this),this.disabled||this.isAttached&&(this.checked=this.active)}}],v=o`<style>
21
+ :host {
22
+ display: inline-block;
23
+ white-space: nowrap;
24
+ cursor: pointer;
25
+ --calculated-paper-checkbox-size: var(--paper-checkbox-size, 18px);
26
+ /* -1px is a sentinel for the default and is replaced in \`attached\`. */
27
+ --calculated-paper-checkbox-ink-size: var(--paper-checkbox-ink-size, -1px);
28
+ @apply --paper-font-common-base;
29
+ line-height: 0;
30
+ -webkit-tap-highlight-color: transparent;
31
+ }
32
+
33
+ :host([hidden]) {
34
+ display: none !important;
35
+ }
36
+
37
+ :host(:focus) {
38
+ outline: none;
39
+ }
40
+
41
+ .hidden {
42
+ display: none;
43
+ }
44
+
45
+ #checkboxContainer {
46
+ display: inline-block;
47
+ position: relative;
48
+ width: var(--calculated-paper-checkbox-size);
49
+ height: var(--calculated-paper-checkbox-size);
50
+ min-width: var(--calculated-paper-checkbox-size);
51
+ margin: var(--paper-checkbox-margin, initial);
52
+ vertical-align: var(--paper-checkbox-vertical-align, middle);
53
+ background-color: var(--paper-checkbox-unchecked-background-color, transparent);
54
+ }
55
+
56
+ #ink {
57
+ position: absolute;
58
+
59
+ /* Center the ripple in the checkbox by negative offsetting it by
60
+ * (inkWidth - rippleWidth) / 2 */
61
+ top: calc(0px - (var(--calculated-paper-checkbox-ink-size) - var(--calculated-paper-checkbox-size)) / 2);
62
+ left: calc(0px - (var(--calculated-paper-checkbox-ink-size) - var(--calculated-paper-checkbox-size)) / 2);
63
+ width: var(--calculated-paper-checkbox-ink-size);
64
+ height: var(--calculated-paper-checkbox-ink-size);
65
+ color: var(--paper-checkbox-unchecked-ink-color, var(--primary-text-color));
66
+ opacity: 0.6;
67
+ pointer-events: none;
68
+ }
69
+
70
+ #ink:dir(rtl) {
71
+ right: calc(0px - (var(--calculated-paper-checkbox-ink-size) - var(--calculated-paper-checkbox-size)) / 2);
72
+ left: auto;
73
+ }
74
+
75
+ #ink[checked] {
76
+ color: var(--paper-checkbox-checked-ink-color, var(--primary-color));
77
+ }
78
+
79
+ #checkbox {
80
+ position: relative;
81
+ box-sizing: border-box;
82
+ height: 100%;
83
+ border: solid 2px;
84
+ border-color: var(--paper-checkbox-unchecked-color, var(--primary-text-color));
85
+ border-radius: 2px;
86
+ pointer-events: none;
87
+ -webkit-transition: background-color 140ms, border-color 140ms;
88
+ transition: background-color 140ms, border-color 140ms;
89
+
90
+ -webkit-transition-duration: var(--paper-checkbox-animation-duration, 140ms);
91
+ transition-duration: var(--paper-checkbox-animation-duration, 140ms);
92
+ }
93
+
94
+ /* checkbox checked animations */
95
+ #checkbox.checked #checkmark {
96
+ -webkit-animation: checkmark-expand 140ms ease-out forwards;
97
+ animation: checkmark-expand 140ms ease-out forwards;
98
+
99
+ -webkit-animation-duration: var(--paper-checkbox-animation-duration, 140ms);
100
+ animation-duration: var(--paper-checkbox-animation-duration, 140ms);
101
+ }
102
+
103
+ @-webkit-keyframes checkmark-expand {
104
+ 0% {
105
+ -webkit-transform: scale(0, 0) rotate(45deg);
106
+ }
107
+ 100% {
108
+ -webkit-transform: scale(1, 1) rotate(45deg);
109
+ }
110
+ }
111
+
112
+ @keyframes checkmark-expand {
113
+ 0% {
114
+ transform: scale(0, 0) rotate(45deg);
115
+ }
116
+ 100% {
117
+ transform: scale(1, 1) rotate(45deg);
118
+ }
119
+ }
120
+
121
+ #checkbox.checked {
122
+ background-color: var(--paper-checkbox-checked-color, var(--primary-color));
123
+ border-color: var(--paper-checkbox-checked-color, var(--primary-color));
124
+ }
125
+
126
+ #checkmark {
127
+ position: absolute;
128
+ width: 36%;
129
+ height: 70%;
130
+ border-style: solid;
131
+ border-top: none;
132
+ border-left: none;
133
+ border-right-width: calc(2/15 * var(--calculated-paper-checkbox-size));
134
+ border-bottom-width: calc(2/15 * var(--calculated-paper-checkbox-size));
135
+ border-color: var(--paper-checkbox-checkmark-color, white);
136
+ -webkit-transform-origin: 97% 86%;
137
+ transform-origin: 97% 86%;
138
+ box-sizing: content-box; /* protect against page-level box-sizing */
139
+ }
140
+
141
+ #checkmark:dir(rtl) {
142
+ -webkit-transform-origin: 50% 14%;
143
+ transform-origin: 50% 14%;
144
+ }
145
+
146
+ /* label */
147
+ #checkboxLabel {
148
+ position: relative;
149
+ display: inline-block;
150
+ vertical-align: middle;
151
+ padding-left: var(--paper-checkbox-label-spacing, 8px);
152
+ white-space: normal;
153
+ line-height: normal;
154
+ color: var(--paper-checkbox-label-color, var(--primary-text-color));
155
+ @apply --paper-checkbox-label;
156
+ }
157
+
158
+ :host([checked]) #checkboxLabel {
159
+ color: var(--paper-checkbox-label-checked-color, var(--paper-checkbox-label-color, var(--primary-text-color)));
160
+ @apply --paper-checkbox-label-checked;
161
+ }
162
+
163
+ #checkboxLabel:dir(rtl) {
164
+ padding-right: var(--paper-checkbox-label-spacing, 8px);
165
+ padding-left: 0;
166
+ }
167
+
168
+ #checkboxLabel[hidden] {
169
+ display: none;
170
+ }
171
+
172
+ /* disabled state */
173
+
174
+ :host([disabled]) #checkbox {
175
+ opacity: 0.5;
176
+ border-color: var(--paper-checkbox-unchecked-color, var(--primary-text-color));
177
+ }
178
+
179
+ :host([disabled][checked]) #checkbox {
180
+ background-color: var(--paper-checkbox-unchecked-color, var(--primary-text-color));
181
+ opacity: 0.5;
182
+ }
183
+
184
+ :host([disabled]) #checkboxLabel {
185
+ opacity: 0.65;
186
+ }
187
+
188
+ /* invalid state */
189
+ #checkbox.invalid:not(.checked) {
190
+ border-color: var(--paper-checkbox-error-color, var(--error-color));
191
+ }
192
+ </style>
193
+
194
+ <div id="checkboxContainer">
195
+ <div id="checkbox" class$="[[_computeCheckboxClass(checked, invalid)]]">
196
+ <div id="checkmark" class$="[[_computeCheckmarkClass(checked)]]"></div>
197
+ </div>
198
+ </div>
199
+
200
+ <div id="checkboxLabel"><slot></slot></div>`;v.setAttribute("strip-whitespace",""),t({_template:v,is:"paper-checkbox",behaviors:[x],hostAttributes:{role:"checkbox","aria-checked":!1,tabindex:0},properties:{ariaActiveAttribute:{type:String,value:"aria-checked"}},attached:function(){b(this,(function(){if("-1px"===this.getComputedStyleValue("--calculated-paper-checkbox-ink-size").trim()){var e=this.getComputedStyleValue("--calculated-paper-checkbox-size").trim(),a="px",c=e.match(/[A-Za-z]+$/);null!==c&&(a=c[0]);var r=parseFloat(e),o=8/3*r;"px"===a&&(o=Math.floor(o))%2!=r%2&&o++,this.updateStyles({"--paper-checkbox-ink-size":o+a})}}))},_computeCheckboxClass:function(e,a){var c="";return e&&(c+="checked "),a&&(c+="invalid"),c},_computeCheckmarkClass:function(e){return e?"":"hidden"},_createRipple:function(){return this._rippleContainer=this.$.checkboxContainer,i._createRipple.call(this)}});export{b as a};
@@ -1,4 +1,4 @@
1
- import{f as h,N as c,i as v}from"./pb-mixin-b1caa22e.js";import{h as t,P as z,y as a}from"./paper-checkbox-515a5284.js";
1
+ import{f as h,N as c,i as v}from"./pb-mixin-886ece32.js";import{h as t,P as z,v as a}from"./paper-inky-focus-behavior-fa16796b.js";
2
2
  /**
3
3
  * @license
4
4
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.