@teipublisher/pb-components 2.10.1 → 2.10.3
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 +15 -0
- package/css/gridjs/mermaid.min.css +1 -1
- package/css/leaflet/leaflet.css +63 -42
- package/css/prismjs/prism-coy.css +4 -3
- package/css/prismjs/prism-coy.min.css +1 -0
- package/css/prismjs/prism-dark.min.css +1 -0
- package/css/prismjs/prism-funky.min.css +1 -0
- package/css/prismjs/prism-okaidia.min.css +1 -0
- package/css/prismjs/prism-solarizedlight.min.css +1 -0
- package/css/prismjs/prism-tomorrow.min.css +1 -0
- package/css/prismjs/prism-twilight.css +3 -33
- package/css/prismjs/prism-twilight.min.css +1 -0
- package/css/prismjs/prism.min.css +1 -0
- package/css/tom-select/tom-select.bootstrap4.min.css +1 -1
- package/css/tom-select/tom-select.bootstrap5.min.css +1 -1
- package/css/tom-select/tom-select.default.min.css +1 -1
- package/css/tom-select/tom-select.min.css +1 -1
- package/dist/{iron-form-9e72ac45.js → iron-form-89b60473.js} +1 -1
- package/dist/jinn-codemirror-dc6c3c7c.js +1 -0
- package/dist/{paper-checkbox-102e3b43.js → paper-checkbox-56ead3d4.js} +100 -109
- package/dist/pb-code-editor.js +1 -1
- package/dist/pb-component-docs.js +94 -103
- package/dist/pb-components-bundle.js +171 -162
- package/dist/pb-edit-app.js +29 -29
- package/dist/{pb-i18n-f7a50012.js → pb-i18n-9000294c.js} +1 -1
- package/dist/pb-leaflet-map.js +1 -1
- package/dist/pb-odd-editor.js +6 -7
- package/dist/pb-tify.js +1 -1
- package/dist/{vaadin-element-mixin-b6179444.js → vaadin-element-mixin-67c5648d.js} +17 -18
- package/gh-pages.js +6 -0
- package/lib/leaflet-src.js +1623 -1173
- package/lib/paged.polyfill.js +1335 -1124
- package/package.json +5 -4
- package/src/pb-odd-model-editor.js +11 -3
- package/src/pb-page.js +2 -1
- package/dist/jinn-codemirror-13c59456.js +0 -1
- /package/dist/{es-global-bridge-6abe3a88.js → es-global-bridge-5c039c0b.js} +0 -0
- /package/dist/{pb-mixin-ea2e9070.js → pb-mixin-d61c06b6.js} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teipublisher/pb-components",
|
|
3
|
-
"version": "2.10.
|
|
3
|
+
"version": "2.10.3",
|
|
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",
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@babel/runtime": "7.11.2",
|
|
40
40
|
"@cwmr/paper-autocomplete": "^4.0.0",
|
|
41
|
-
"@jinntec/jinn-codemirror": "^1.13.
|
|
41
|
+
"@jinntec/jinn-codemirror": "^1.13.5",
|
|
42
42
|
"@lrnwebcomponents/es-global-bridge": "^2.7.10",
|
|
43
43
|
"@polymer/app-layout": "^3.1.0",
|
|
44
44
|
"@polymer/iron-ajax": "^3.0.1",
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
"js-cookie": "^2.2.1",
|
|
80
80
|
"leaflet": "^1.7.1",
|
|
81
81
|
"leaflet.markercluster": "^1.5.3",
|
|
82
|
-
"lit-element": "
|
|
82
|
+
"lit-element": "^2.5.1",
|
|
83
83
|
"lit-html": "^1.3.0",
|
|
84
84
|
"marked": "^1.2.0",
|
|
85
85
|
"pagedjs": "^0.4.0",
|
|
@@ -88,11 +88,12 @@
|
|
|
88
88
|
"tify": "^0.28.1",
|
|
89
89
|
"tippy.js": "^6.2.7",
|
|
90
90
|
"tom-select": "^2.0.2",
|
|
91
|
-
"uniqolor": "^1.0
|
|
91
|
+
"uniqolor": "^1.1.0",
|
|
92
92
|
"web-animations-js": "^2.3.2"
|
|
93
93
|
},
|
|
94
94
|
"devDependencies": {
|
|
95
95
|
"@babel/plugin-proposal-object-rest-spread": "^7.11.0",
|
|
96
|
+
"@babel/plugin-transform-optional-chaining": "^7.22.6",
|
|
96
97
|
"@open-wc/eslint-config": "^4.2.0",
|
|
97
98
|
"@open-wc/prettier-config": "^1.1.0",
|
|
98
99
|
"@open-wc/testing": "^2.5.29",
|
|
@@ -440,8 +440,7 @@ export class PbOddModelEditor extends LitElement {
|
|
|
440
440
|
title="move up"></paper-icon-button>
|
|
441
441
|
<paper-icon-button @click="${this._requestRemoval}" icon="delete" title="remove"></paper-icon-button>
|
|
442
442
|
<paper-icon-button @click="${this._copy}" icon="content-copy" title="copy"></paper-icon-button>
|
|
443
|
-
<paper-icon-button @click="${this._paste}" icon="content-paste"
|
|
444
|
-
?hidden="${this._isModel}"></paper-icon-button>
|
|
443
|
+
<paper-icon-button @click="${this._paste}" icon="content-paste"></paper-icon-button>
|
|
445
444
|
|
|
446
445
|
${this._isGroupOrSequence() ?
|
|
447
446
|
html`
|
|
@@ -759,7 +758,7 @@ export class PbOddModelEditor extends LitElement {
|
|
|
759
758
|
css: '',
|
|
760
759
|
desc: '',
|
|
761
760
|
predicate: '',
|
|
762
|
-
type: e.detail.item.getAttribute('value'),
|
|
761
|
+
type: e instanceof Event ? e.detail.item.getAttribute('value') : e,
|
|
763
762
|
output: '',
|
|
764
763
|
sourcerend: false,
|
|
765
764
|
models: [],
|
|
@@ -783,6 +782,15 @@ export class PbOddModelEditor extends LitElement {
|
|
|
783
782
|
this.dispatchEvent(new CustomEvent('model-changed', { composed: true, bubbles: true, detail: { oldModel, newModel: this.model } }));
|
|
784
783
|
}
|
|
785
784
|
|
|
785
|
+
addModel(newModel) {
|
|
786
|
+
if (newModel.type !== 'model') {
|
|
787
|
+
console.error('only models can be added to modelSequence or modelGrp');
|
|
788
|
+
return;
|
|
789
|
+
}
|
|
790
|
+
this.model.models.unshift(newModel);
|
|
791
|
+
this.requestUpdate();
|
|
792
|
+
}
|
|
793
|
+
|
|
786
794
|
_removeModel(ev) {
|
|
787
795
|
console.log('_removeModel ', ev);
|
|
788
796
|
ev.stopPropagation();
|
package/src/pb-page.js
CHANGED
|
@@ -268,7 +268,8 @@ export class PbPage extends pbMixin(LitElement) {
|
|
|
268
268
|
}
|
|
269
269
|
|
|
270
270
|
const stylesheetURLs = [
|
|
271
|
-
|
|
271
|
+
// TODO: replace with this.toAbsoluteURL
|
|
272
|
+
this.toAbsoluteURL('resources/css/components.css', this.endpoint)
|
|
272
273
|
];
|
|
273
274
|
if (this.theme) {
|
|
274
275
|
stylesheetURLs.push(this.toAbsoluteURL(this.theme, this.endpoint));
|