@teipublisher/pb-components 1.40.1 → 1.41.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.
- package/CHANGELOG.md +20 -0
- package/dist/demo/pb-code-editor.html +12 -9
- package/dist/{iron-form-f540b15b.js → iron-form-9e72ac45.js} +1 -1
- package/dist/jinn-codemirror-c1a4b755.js +1 -0
- package/dist/{paper-checkbox-f6a70487.js → paper-checkbox-102e3b43.js} +120 -120
- package/dist/pb-code-editor.js +22 -0
- package/dist/pb-components-bundle.js +234 -234
- package/dist/pb-edit-app.js +33 -33
- package/dist/pb-elements.json +100 -16
- package/dist/pb-i18n-6ad23bcf.js +1 -0
- package/dist/pb-message-0fb0b538.js +911 -0
- package/dist/pb-odd-editor.js +110 -82
- package/package.json +4 -5
- package/pb-elements.json +100 -16
- package/src/pb-code-editor.js +51 -663
- package/src/pb-components.js +0 -1
- package/src/pb-load.js +11 -0
- package/src/pb-odd-model-editor.js +33 -23
- package/src/pb-odd-parameter-editor.js +17 -9
- package/src/pb-odd-rendition-editor.js +19 -9
- package/css/codemirror/3024-day.css +0 -41
- package/css/codemirror/3024-night.css +0 -39
- package/css/codemirror/abbott.css +0 -268
- package/css/codemirror/abcdef.css +0 -32
- package/css/codemirror/ambiance-mobile.css +0 -5
- package/css/codemirror/ambiance.css +0 -74
- package/css/codemirror/ayu-dark.css +0 -44
- package/css/codemirror/ayu-mirage.css +0 -45
- package/css/codemirror/base16-dark.css +0 -40
- package/css/codemirror/base16-light.css +0 -38
- package/css/codemirror/bespin.css +0 -34
- package/css/codemirror/blackboard.css +0 -32
- package/css/codemirror/cobalt.css +0 -25
- package/css/codemirror/colorforth.css +0 -33
- package/css/codemirror/darcula.css +0 -53
- package/css/codemirror/dracula.css +0 -40
- package/css/codemirror/duotone-dark.css +0 -35
- package/css/codemirror/duotone-light.css +0 -36
- package/css/codemirror/eclipse.css +0 -23
- package/css/codemirror/elegant.css +0 -13
- package/css/codemirror/erlang-dark.css +0 -34
- package/css/codemirror/gruvbox-dark.css +0 -39
- package/css/codemirror/hopscotch.css +0 -34
- package/css/codemirror/icecoder.css +0 -43
- package/css/codemirror/idea.css +0 -42
- package/css/codemirror/isotope.css +0 -34
- package/css/codemirror/juejin.css +0 -30
- package/css/codemirror/lesser-dark.css +0 -47
- package/css/codemirror/liquibyte.css +0 -95
- package/css/codemirror/lucario.css +0 -37
- package/css/codemirror/material-darker.css +0 -135
- package/css/codemirror/material-ocean.css +0 -141
- package/css/codemirror/material-palenight.css +0 -141
- package/css/codemirror/material.css +0 -141
- package/css/codemirror/mbo.css +0 -37
- package/css/codemirror/mdn-like.css +0 -46
- package/css/codemirror/midnight.css +0 -39
- package/css/codemirror/monokai.css +0 -41
- package/css/codemirror/moxer.css +0 -143
- package/css/codemirror/neat.css +0 -12
- package/css/codemirror/neo.css +0 -43
- package/css/codemirror/night.css +0 -27
- package/css/codemirror/nord.css +0 -42
- package/css/codemirror/oceanic-next.css +0 -46
- package/css/codemirror/panda-syntax.css +0 -85
- package/css/codemirror/paraiso-dark.css +0 -38
- package/css/codemirror/paraiso-light.css +0 -38
- package/css/codemirror/pastel-on-dark.css +0 -52
- package/css/codemirror/railscasts.css +0 -34
- package/css/codemirror/rubyblue.css +0 -25
- package/css/codemirror/seti.css +0 -44
- package/css/codemirror/shadowfox.css +0 -52
- package/css/codemirror/solarized.css +0 -168
- package/css/codemirror/ssms.css +0 -16
- package/css/codemirror/the-matrix.css +0 -30
- package/css/codemirror/tomorrow-night-bright.css +0 -35
- package/css/codemirror/tomorrow-night-eighties.css +0 -38
- package/css/codemirror/ttcn.css +0 -64
- package/css/codemirror/twilight.css +0 -32
- package/css/codemirror/vibrant-ink.css +0 -34
- package/css/codemirror/xq-dark.css +0 -53
- package/css/codemirror/xq-light.css +0 -43
- package/css/codemirror/yeti.css +0 -44
- package/css/codemirror/yonce.css +0 -59
- package/css/codemirror/zenburn.css +0 -37
- package/dist/pb-message-1a0c0c52.js +0 -1360
- package/lib/codemirror/addon/display/placeholder.js +0 -70
- package/lib/codemirror/addon/edit/matchbrackets.js +0 -152
- package/lib/codemirror/addon/lint/lint.js +0 -282
- package/lib/codemirror/mode/css/css.js +0 -855
- package/lib/codemirror/mode/stex/stex.js +0 -249
- package/lib/codemirror/mode/xml/xml.js +0 -404
- package/lib/codemirror/mode/xquery/xquery.js +0 -434
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@teipublisher/pb-components",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.41.0",
|
|
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",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"litelement"
|
|
14
14
|
],
|
|
15
15
|
"scripts": {
|
|
16
|
-
"build": "npm run clean &&
|
|
17
|
-
"build:production": "npm run clean &&
|
|
16
|
+
"build": "npm run clean && rollup -c rollup.config.js",
|
|
17
|
+
"build:production": "npm run clean && rollup -c rollup.config.js --environment BUILD:production",
|
|
18
18
|
"start": "npm run build && npm run docs && es-dev-server",
|
|
19
19
|
"test": "karma start",
|
|
20
20
|
"test:watch": "karma start --auto-watch=true --single-run=false",
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
"format": "npm run format:eslint && npm run format:prettier",
|
|
30
30
|
"clean": "rimraf dist lib css images/leaflet images/openseadragon demo/build",
|
|
31
31
|
"prepare": "npm run docs && npm run build:production",
|
|
32
|
-
"codemirror": "rollup -c codemirror.rollup.config.js",
|
|
33
32
|
"semantic-release": "semantic-release"
|
|
34
33
|
},
|
|
35
34
|
"author": "Wolfgang Meier",
|
|
@@ -37,6 +36,7 @@
|
|
|
37
36
|
"dependencies": {
|
|
38
37
|
"@babel/runtime": "7.11.2",
|
|
39
38
|
"@cwmr/paper-autocomplete": "^4.0.0",
|
|
39
|
+
"@jinntec/jinn-codemirror": "^1.8.0",
|
|
40
40
|
"@lrnwebcomponents/es-global-bridge": "^2.7.10",
|
|
41
41
|
"@polymer/app-layout": "^3.1.0",
|
|
42
42
|
"@polymer/iron-ajax": "^3.0.1",
|
|
@@ -67,7 +67,6 @@
|
|
|
67
67
|
"@vaadin/vaadin-upload": "^4.4.0",
|
|
68
68
|
"@webcomponents/webcomponentsjs": "latest",
|
|
69
69
|
"animejs": "^3.2.0",
|
|
70
|
-
"codemirror": "^5.58.1",
|
|
71
70
|
"gridjs": "^5.0.2",
|
|
72
71
|
"hotkeys-js": "^3.8.1",
|
|
73
72
|
"i18next": "19.8.1",
|
package/pb-elements.json
CHANGED
|
@@ -1430,6 +1430,12 @@
|
|
|
1430
1430
|
"type": "boolean",
|
|
1431
1431
|
"default": "true"
|
|
1432
1432
|
},
|
|
1433
|
+
{
|
|
1434
|
+
"name": "silent",
|
|
1435
|
+
"description": "If set, silently ignore errors when sending the request.",
|
|
1436
|
+
"type": "boolean",
|
|
1437
|
+
"default": "false"
|
|
1438
|
+
},
|
|
1433
1439
|
{
|
|
1434
1440
|
"name": "subscribe",
|
|
1435
1441
|
"description": "The name of the channel to subscribe to. Only events on a channel corresponding\nto this property are listened to.",
|
|
@@ -1636,6 +1642,13 @@
|
|
|
1636
1642
|
"type": "boolean",
|
|
1637
1643
|
"default": "true"
|
|
1638
1644
|
},
|
|
1645
|
+
{
|
|
1646
|
+
"name": "silent",
|
|
1647
|
+
"attribute": "silent",
|
|
1648
|
+
"description": "If set, silently ignore errors when sending the request.",
|
|
1649
|
+
"type": "boolean",
|
|
1650
|
+
"default": "false"
|
|
1651
|
+
},
|
|
1639
1652
|
{
|
|
1640
1653
|
"name": "subscribe",
|
|
1641
1654
|
"attribute": "subscribe",
|
|
@@ -1862,7 +1875,7 @@
|
|
|
1862
1875
|
{
|
|
1863
1876
|
"name": "pb-code-editor",
|
|
1864
1877
|
"path": "./src/pb-code-editor.js",
|
|
1865
|
-
"description": "A
|
|
1878
|
+
"description": "A code editor based on codemirror 6. Provides a wrapper around\n[@jinntec/jinn-codemirror](https://github.com/JinnElements/jinn-codemirror),\nmainly for backwards compatibility.",
|
|
1866
1879
|
"attributes": [
|
|
1867
1880
|
{
|
|
1868
1881
|
"name": "code",
|
|
@@ -1874,7 +1887,7 @@
|
|
|
1874
1887
|
"name": "mode",
|
|
1875
1888
|
"description": "the language mode e.g. 'javascript' or 'xquery'.",
|
|
1876
1889
|
"type": "string",
|
|
1877
|
-
"default": "\"
|
|
1890
|
+
"default": "\"xml\""
|
|
1878
1891
|
},
|
|
1879
1892
|
{
|
|
1880
1893
|
"name": "placeholder",
|
|
@@ -1899,13 +1912,35 @@
|
|
|
1899
1912
|
"default": "\"\""
|
|
1900
1913
|
},
|
|
1901
1914
|
{
|
|
1902
|
-
"name": "
|
|
1915
|
+
"name": "subscribe",
|
|
1916
|
+
"description": "The name of the channel to subscribe to. Only events on a channel corresponding\nto this property are listened to.",
|
|
1903
1917
|
"type": "string"
|
|
1904
1918
|
},
|
|
1905
1919
|
{
|
|
1906
|
-
"name": "
|
|
1907
|
-
"
|
|
1908
|
-
"
|
|
1920
|
+
"name": "subscribe-config",
|
|
1921
|
+
"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.",
|
|
1922
|
+
"type": "object"
|
|
1923
|
+
},
|
|
1924
|
+
{
|
|
1925
|
+
"name": "emit",
|
|
1926
|
+
"description": "The name of the channel to send events to.",
|
|
1927
|
+
"type": "string"
|
|
1928
|
+
},
|
|
1929
|
+
{
|
|
1930
|
+
"name": "emit-config",
|
|
1931
|
+
"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.",
|
|
1932
|
+
"type": "object"
|
|
1933
|
+
},
|
|
1934
|
+
{
|
|
1935
|
+
"name": "wait-for",
|
|
1936
|
+
"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.",
|
|
1937
|
+
"type": "string"
|
|
1938
|
+
},
|
|
1939
|
+
{
|
|
1940
|
+
"name": "disabled",
|
|
1941
|
+
"description": "Common property to disable the functionality associated with a component.\n`pb-highlight` and `pb-popover` react to this.",
|
|
1942
|
+
"type": "boolean",
|
|
1943
|
+
"default": "false"
|
|
1909
1944
|
}
|
|
1910
1945
|
],
|
|
1911
1946
|
"properties": [
|
|
@@ -1921,7 +1956,7 @@
|
|
|
1921
1956
|
"attribute": "mode",
|
|
1922
1957
|
"description": "the language mode e.g. 'javascript' or 'xquery'.",
|
|
1923
1958
|
"type": "string",
|
|
1924
|
-
"default": "\"
|
|
1959
|
+
"default": "\"xml\""
|
|
1925
1960
|
},
|
|
1926
1961
|
{
|
|
1927
1962
|
"name": "placeholder",
|
|
@@ -1950,23 +1985,46 @@
|
|
|
1950
1985
|
"default": "\"\""
|
|
1951
1986
|
},
|
|
1952
1987
|
{
|
|
1953
|
-
"name": "
|
|
1954
|
-
"attribute": "
|
|
1988
|
+
"name": "subscribe",
|
|
1989
|
+
"attribute": "subscribe",
|
|
1990
|
+
"description": "The name of the channel to subscribe to. Only events on a channel corresponding\nto this property are listened to.",
|
|
1955
1991
|
"type": "string"
|
|
1956
1992
|
},
|
|
1957
1993
|
{
|
|
1958
|
-
"name": "
|
|
1959
|
-
"attribute": "
|
|
1960
|
-
"
|
|
1961
|
-
"
|
|
1994
|
+
"name": "subscribeConfig",
|
|
1995
|
+
"attribute": "subscribe-config",
|
|
1996
|
+
"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.",
|
|
1997
|
+
"type": "object"
|
|
1998
|
+
},
|
|
1999
|
+
{
|
|
2000
|
+
"name": "emit",
|
|
2001
|
+
"attribute": "emit",
|
|
2002
|
+
"description": "The name of the channel to send events to.",
|
|
2003
|
+
"type": "string"
|
|
2004
|
+
},
|
|
2005
|
+
{
|
|
2006
|
+
"name": "emitConfig",
|
|
2007
|
+
"attribute": "emit-config",
|
|
2008
|
+
"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.",
|
|
2009
|
+
"type": "object"
|
|
2010
|
+
},
|
|
2011
|
+
{
|
|
2012
|
+
"name": "waitFor",
|
|
2013
|
+
"attribute": "wait-for",
|
|
2014
|
+
"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.",
|
|
2015
|
+
"type": "string"
|
|
2016
|
+
},
|
|
2017
|
+
{
|
|
2018
|
+
"name": "disabled",
|
|
2019
|
+
"attribute": "disabled",
|
|
2020
|
+
"description": "Common property to disable the functionality associated with a component.\n`pb-highlight` and `pb-popover` react to this.",
|
|
2021
|
+
"type": "boolean",
|
|
2022
|
+
"default": "false"
|
|
1962
2023
|
}
|
|
1963
2024
|
],
|
|
1964
2025
|
"events": [
|
|
1965
2026
|
{
|
|
1966
2027
|
"name": "code-changed"
|
|
1967
|
-
},
|
|
1968
|
-
{
|
|
1969
|
-
"name": "linting-error"
|
|
1970
2028
|
}
|
|
1971
2029
|
]
|
|
1972
2030
|
},
|
|
@@ -2544,6 +2602,12 @@
|
|
|
2544
2602
|
"type": "boolean",
|
|
2545
2603
|
"default": "true"
|
|
2546
2604
|
},
|
|
2605
|
+
{
|
|
2606
|
+
"name": "silent",
|
|
2607
|
+
"description": "If set, silently ignore errors when sending the request.",
|
|
2608
|
+
"type": "boolean",
|
|
2609
|
+
"default": "false"
|
|
2610
|
+
},
|
|
2547
2611
|
{
|
|
2548
2612
|
"name": "subscribe",
|
|
2549
2613
|
"description": "The name of the channel to subscribe to. Only events on a channel corresponding\nto this property are listened to.",
|
|
@@ -2674,6 +2738,13 @@
|
|
|
2674
2738
|
"type": "boolean",
|
|
2675
2739
|
"default": "true"
|
|
2676
2740
|
},
|
|
2741
|
+
{
|
|
2742
|
+
"name": "silent",
|
|
2743
|
+
"attribute": "silent",
|
|
2744
|
+
"description": "If set, silently ignore errors when sending the request.",
|
|
2745
|
+
"type": "boolean",
|
|
2746
|
+
"default": "false"
|
|
2747
|
+
},
|
|
2677
2748
|
{
|
|
2678
2749
|
"name": "subscribe",
|
|
2679
2750
|
"attribute": "subscribe",
|
|
@@ -5272,6 +5343,12 @@
|
|
|
5272
5343
|
"type": "boolean",
|
|
5273
5344
|
"default": "true"
|
|
5274
5345
|
},
|
|
5346
|
+
{
|
|
5347
|
+
"name": "silent",
|
|
5348
|
+
"description": "If set, silently ignore errors when sending the request.",
|
|
5349
|
+
"type": "boolean",
|
|
5350
|
+
"default": "false"
|
|
5351
|
+
},
|
|
5275
5352
|
{
|
|
5276
5353
|
"name": "subscribe",
|
|
5277
5354
|
"description": "The name of the channel to subscribe to. Only events on a channel corresponding\nto this property are listened to.",
|
|
@@ -5396,6 +5473,13 @@
|
|
|
5396
5473
|
"type": "boolean",
|
|
5397
5474
|
"default": "true"
|
|
5398
5475
|
},
|
|
5476
|
+
{
|
|
5477
|
+
"name": "silent",
|
|
5478
|
+
"attribute": "silent",
|
|
5479
|
+
"description": "If set, silently ignore errors when sending the request.",
|
|
5480
|
+
"type": "boolean",
|
|
5481
|
+
"default": "false"
|
|
5482
|
+
},
|
|
5399
5483
|
{
|
|
5400
5484
|
"name": "subscribe",
|
|
5401
5485
|
"attribute": "subscribe",
|