@teipublisher/pb-components 1.40.2 → 1.41.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 +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-cc5827eb.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 +61 -16
- package/dist/pb-i18n-6ad23bcf.js +1 -0
- package/dist/pb-message-0fb0b538.js +911 -0
- package/dist/pb-odd-editor.js +125 -82
- package/package.json +4 -5
- package/pb-elements.json +61 -16
- package/src/pb-code-editor.js +51 -663
- package/src/pb-components.js +0 -1
- package/src/pb-odd-model-editor.js +68 -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.1",
|
|
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.11.1",
|
|
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
|
@@ -1875,7 +1875,7 @@
|
|
|
1875
1875
|
{
|
|
1876
1876
|
"name": "pb-code-editor",
|
|
1877
1877
|
"path": "./src/pb-code-editor.js",
|
|
1878
|
-
"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.",
|
|
1879
1879
|
"attributes": [
|
|
1880
1880
|
{
|
|
1881
1881
|
"name": "code",
|
|
@@ -1887,7 +1887,7 @@
|
|
|
1887
1887
|
"name": "mode",
|
|
1888
1888
|
"description": "the language mode e.g. 'javascript' or 'xquery'.",
|
|
1889
1889
|
"type": "string",
|
|
1890
|
-
"default": "\"
|
|
1890
|
+
"default": "\"xml\""
|
|
1891
1891
|
},
|
|
1892
1892
|
{
|
|
1893
1893
|
"name": "placeholder",
|
|
@@ -1912,13 +1912,35 @@
|
|
|
1912
1912
|
"default": "\"\""
|
|
1913
1913
|
},
|
|
1914
1914
|
{
|
|
1915
|
-
"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.",
|
|
1916
1917
|
"type": "string"
|
|
1917
1918
|
},
|
|
1918
1919
|
{
|
|
1919
|
-
"name": "
|
|
1920
|
-
"
|
|
1921
|
-
"
|
|
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"
|
|
1922
1944
|
}
|
|
1923
1945
|
],
|
|
1924
1946
|
"properties": [
|
|
@@ -1934,7 +1956,7 @@
|
|
|
1934
1956
|
"attribute": "mode",
|
|
1935
1957
|
"description": "the language mode e.g. 'javascript' or 'xquery'.",
|
|
1936
1958
|
"type": "string",
|
|
1937
|
-
"default": "\"
|
|
1959
|
+
"default": "\"xml\""
|
|
1938
1960
|
},
|
|
1939
1961
|
{
|
|
1940
1962
|
"name": "placeholder",
|
|
@@ -1963,23 +1985,46 @@
|
|
|
1963
1985
|
"default": "\"\""
|
|
1964
1986
|
},
|
|
1965
1987
|
{
|
|
1966
|
-
"name": "
|
|
1967
|
-
"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.",
|
|
1968
1991
|
"type": "string"
|
|
1969
1992
|
},
|
|
1970
1993
|
{
|
|
1971
|
-
"name": "
|
|
1972
|
-
"attribute": "
|
|
1973
|
-
"
|
|
1974
|
-
"
|
|
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"
|
|
1975
2023
|
}
|
|
1976
2024
|
],
|
|
1977
2025
|
"events": [
|
|
1978
2026
|
{
|
|
1979
2027
|
"name": "code-changed"
|
|
1980
|
-
},
|
|
1981
|
-
{
|
|
1982
|
-
"name": "linting-error"
|
|
1983
2028
|
}
|
|
1984
2029
|
]
|
|
1985
2030
|
},
|