@ulb-darmstadt/shacl-form 1.7.4 → 1.8.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 (52) hide show
  1. package/README.md +13 -3
  2. package/dist/config.d.ts +4 -5
  3. package/dist/constants.d.ts +15 -13
  4. package/dist/constraints.d.ts +2 -2
  5. package/dist/exports.d.ts +2 -1
  6. package/dist/form-bootstrap.d.ts +1 -1
  7. package/dist/form-bootstrap.js +361 -2
  8. package/dist/form-default.d.ts +1 -1
  9. package/dist/form-default.js +350 -2
  10. package/dist/form-material.d.ts +1 -1
  11. package/dist/form-material.js +670 -2
  12. package/dist/form.d.ts +3 -2
  13. package/dist/node-template.d.ts +17 -0
  14. package/dist/node.d.ts +2 -1
  15. package/dist/plugins/leaflet.d.ts +2 -4
  16. package/dist/plugins/leaflet.js +720 -2
  17. package/dist/plugins/mapbox.d.ts +2 -2
  18. package/dist/plugins/mapbox.js +2764 -2
  19. package/dist/property-template.d.ts +1 -1
  20. package/dist/property.d.ts +6 -2
  21. package/dist/theme.d.ts +2 -2
  22. package/dist/themes/default.d.ts +3 -3
  23. package/dist/themes/material.d.ts +2 -3
  24. package/package.json +23 -11
  25. package/src/config.ts +11 -10
  26. package/src/constants.ts +3 -1
  27. package/src/constraints.ts +15 -18
  28. package/src/exports.ts +2 -1
  29. package/src/form.ts +32 -17
  30. package/src/group.ts +1 -1
  31. package/src/loader.ts +12 -13
  32. package/src/node-template.ts +82 -0
  33. package/src/node.ts +40 -38
  34. package/src/plugins/leaflet.ts +2 -2
  35. package/src/plugins/mapbox.ts +4 -4
  36. package/src/property-template.ts +4 -5
  37. package/src/property.ts +154 -56
  38. package/src/serialize.ts +14 -1
  39. package/src/styles.css +8 -10
  40. package/src/theme.ts +5 -5
  41. package/src/themes/bootstrap.ts +1 -1
  42. package/src/themes/default.css +2 -2
  43. package/src/themes/default.ts +12 -3
  44. package/src/themes/material.ts +12 -3
  45. package/src/util.ts +12 -14
  46. package/dist/form-bootstrap.js.LICENSE.txt +0 -69
  47. package/dist/form-default.js.LICENSE.txt +0 -69
  48. package/dist/form-material.js.LICENSE.txt +0 -69
  49. package/dist/plugins/file-upload.js +0 -1
  50. package/dist/plugins/fixed-list.js +0 -1
  51. package/dist/plugins/leaflet.js.LICENSE.txt +0 -4
  52. package/dist/plugins/mapbox.js.LICENSE.txt +0 -10
package/src/theme.ts CHANGED
@@ -20,7 +20,7 @@ export abstract class Theme {
20
20
  this.stylesheet.replaceSync(aggregatedStyles)
21
21
  }
22
22
 
23
- apply(root: HTMLFormElement) {
23
+ apply(_: HTMLFormElement) {
24
24
  // NOP
25
25
  }
26
26
 
@@ -35,7 +35,7 @@ export abstract class Theme {
35
35
  let name = value.value
36
36
  let lang: HTMLElement | null = null
37
37
  if (value instanceof NamedNode) {
38
- const quads = template.config.shapesGraph.getQuads(name, null, null, null)
38
+ const quads = template.config.store.getQuads(name, null, null, null)
39
39
  if (quads.length) {
40
40
  const s = findLabel(quads, template.config.languages)
41
41
  if (s) {
@@ -79,8 +79,8 @@ export abstract class Theme {
79
79
  abstract createButton(label: string, primary: boolean): HTMLElement
80
80
  }
81
81
 
82
- export function fieldFactory(template: ShaclPropertyTemplate, value: Term | null): HTMLElement {
83
- if (template.config.editMode) {
82
+ export function fieldFactory(template: ShaclPropertyTemplate, value: Term | null, editable: boolean): HTMLElement {
83
+ if (editable) {
84
84
  const required = template.minCount !== undefined && template.minCount > 0
85
85
  // if we have a class, find the instances and display them in a list
86
86
  if (template.class) {
@@ -91,7 +91,7 @@ export function fieldFactory(template: ShaclPropertyTemplate, value: Term | null
91
91
  if (template.shaclIn) {
92
92
  const list = template.config.lists[template.shaclIn]
93
93
  if (list?.length) {
94
- const listEntries = createInputListEntries(list, template.config.shapesGraph, template.config.languages)
94
+ const listEntries = createInputListEntries(list, template.config.store, template.config.languages)
95
95
  return template.config.theme.createListEditor(template.label, value, required, listEntries, template)
96
96
  }
97
97
  else {
@@ -2,7 +2,7 @@ import { DefaultTheme } from './default'
2
2
  import { Term } from '@rdfjs/types'
3
3
  import { ShaclPropertyTemplate } from '../property-template'
4
4
  import { Editor } from '../theme'
5
- import bootstrap from 'bootstrap/dist/css/bootstrap.min.css'
5
+ import bootstrap from 'bootstrap/dist/css/bootstrap.min.css?raw'
6
6
  import css from './bootstrap.css?raw'
7
7
 
8
8
  export class BootstrapTheme extends DefaultTheme {
@@ -1,4 +1,4 @@
1
1
  .editor:not([type='checkbox']) { border: 1px solid #DDD; padding: 2px 4px; }
2
- .property-instance label { display: inline-block; word-break: break-word; line-height: 1em; padding-top: 0.15em; padding-right: 1em; flex-shrink: 0; position: relative; }
3
- .property-instance:not(:first-child) > label { visibility: hidden; max-height: 0; }
2
+ .property-instance label { display: inline-flex; word-break: break-word; line-height: 1em; padding-top: 0.15em; padding-right: 1em; flex-shrink: 0; position: relative; }
3
+ .property-instance:not(:first-child) > label:not(.persistent) { visibility: hidden; max-height: 0; }
4
4
  .mode-edit .property-instance label { width: var(--label-width); }
@@ -3,6 +3,7 @@ import { ShaclPropertyTemplate } from "../property-template"
3
3
  import { Editor, InputListEntry, Theme } from "../theme"
4
4
  import { PREFIX_XSD } from '../constants'
5
5
  import { Literal } from 'n3'
6
+ import { Term as N3Term } from 'n3'
6
7
  import css from './default.css?raw'
7
8
 
8
9
  export class DefaultTheme extends Theme {
@@ -17,7 +18,9 @@ export class DefaultTheme extends Theme {
17
18
  editor.classList.add('editor')
18
19
  if (template?.datatype) {
19
20
  // store datatype on editor, this is used for RDF serialization
20
- editor['shaclDatatype'] = template.datatype
21
+ editor.shaclDatatype = template.datatype
22
+ } else if (value instanceof Literal) {
23
+ editor.shaclDatatype = value.datatype
21
24
  }
22
25
  if (template?.minCount !== undefined) {
23
26
  editor.dataset.minCount = String(template.minCount)
@@ -200,7 +203,13 @@ export class DefaultTheme extends Theme {
200
203
 
201
204
  for (const item of listEntries) {
202
205
  const option = document.createElement('option')
203
- const itemValue = (typeof item.value === 'string') ? item.value : item.value.value
206
+ let itemValue = ''
207
+ if (typeof item.value === 'string') {
208
+ itemValue = item.value
209
+ } else {
210
+ // this is needed for typed rdf literals
211
+ itemValue = (item.value as N3Term).id
212
+ }
204
213
  option.innerHTML = item.label ? item.label : itemValue
205
214
  option.value = itemValue
206
215
  if (item.indent) {
@@ -231,7 +240,7 @@ export class DefaultTheme extends Theme {
231
240
  return result
232
241
  }
233
242
 
234
- createButton(label: string, primary: boolean): HTMLElement {
243
+ createButton(label: string, _: boolean): HTMLElement {
235
244
  const button = document.createElement('button')
236
245
  button.type = 'button'
237
246
  button.innerHTML = label
@@ -4,6 +4,7 @@ import { Button, TextField, Select, MenuItem, Checkbox } from 'mdui'
4
4
  import { Theme } from '../theme'
5
5
  import { InputListEntry, Editor } from '../theme'
6
6
  import { Literal } from 'n3'
7
+ import { Term as N3Term } from 'n3'
7
8
  import css from './material.css?raw'
8
9
  import { PREFIX_XSD } from '../constants'
9
10
 
@@ -16,7 +17,9 @@ export class MaterialTheme extends Theme {
16
17
  editor.classList.add('editor')
17
18
  if (template?.datatype) {
18
19
  // store datatype on editor, this is used for RDF serialization
19
- editor['shaclDatatype'] = template.datatype
20
+ editor.shaclDatatype = template.datatype
21
+ } else if (value instanceof Literal) {
22
+ editor.shaclDatatype = value.datatype
20
23
  }
21
24
  if (template?.minCount !== undefined) {
22
25
  editor.dataset.minCount = String(template.minCount)
@@ -100,7 +103,13 @@ export class MaterialTheme extends Theme {
100
103
 
101
104
  for (const item of listEntries) {
102
105
  const option = new MenuItem()
103
- const itemValue = (typeof item.value === 'string') ? item.value : item.value.value
106
+ let itemValue = ''
107
+ if (typeof item.value === 'string') {
108
+ itemValue = item.value
109
+ } else {
110
+ // this is needed for typed rdf literals
111
+ itemValue = (item.value as N3Term).id
112
+ }
104
113
  const itemLabel = item.label ? item.label : itemValue
105
114
  option.value = itemValue
106
115
  option.textContent = itemLabel || itemValue
@@ -142,7 +151,7 @@ export class MaterialTheme extends Theme {
142
151
  return result
143
152
  }
144
153
 
145
- createDateEditor(label: string, value: Term | null, required: boolean, template: ShaclPropertyTemplate): HTMLElement {
154
+ createDateEditor(_: string, value: Term | null, required: boolean, template: ShaclPropertyTemplate): HTMLElement {
146
155
  const editor = new TextField()
147
156
  editor.variant = 'outlined'
148
157
  editor.helper = template?.description?.value || template?.label || ''
package/src/util.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Literal, NamedNode, Prefixes, Quad, Store } from 'n3'
2
- import { OWL_OBJECT_NAMED_INDIVIDUAL, PREFIX_RDFS, PREFIX_SHACL, PREFIX_SKOS, RDFS_PREDICATE_SUBCLASS_OF, RDF_PREDICATE_TYPE, SHAPES_GRAPH, SKOS_PREDICATE_BROADER } from './constants'
2
+ import { DATA_GRAPH, OWL_OBJECT_NAMED_INDIVIDUAL, PREFIX_FOAF, PREFIX_RDFS, PREFIX_SHACL, PREFIX_SKOS, RDFS_PREDICATE_SUBCLASS_OF, RDF_PREDICATE_TYPE, SHAPES_GRAPH, SKOS_PREDICATE_BROADER } from './constants'
3
3
  import { Term } from '@rdfjs/types'
4
4
  import { InputListEntry } from './theme'
5
5
  import { ShaclPropertyTemplate } from './property-template'
@@ -48,11 +48,9 @@ export function focusFirstInputElement(context: HTMLElement) {
48
48
  }
49
49
 
50
50
  export function findLabel(quads: Quad[], languages: string[]): string {
51
- let label = findObjectValueByPredicate(quads, 'prefLabel', PREFIX_SKOS, languages)
52
- if (label) {
53
- return label
54
- }
55
- return findObjectValueByPredicate(quads, 'label', PREFIX_RDFS, languages)
51
+ return findObjectValueByPredicate(quads, 'prefLabel', PREFIX_SKOS, languages) ||
52
+ findObjectValueByPredicate(quads, 'label', PREFIX_RDFS, languages) ||
53
+ findObjectValueByPredicate(quads, 'name', PREFIX_FOAF, languages)
56
54
  }
57
55
 
58
56
  export function createInputListEntries(subjects: Term[], shapesGraph: Store, languages: string[], indent?: number): InputListEntry[] {
@@ -92,22 +90,22 @@ export function findInstancesOf(clazz: NamedNode, template: ShaclPropertyTemplat
92
90
  instances = list?.length ? list : []
93
91
  } else {
94
92
  // find instances in the shapes graph
95
- instances = template.config.shapesGraph.getSubjects(RDF_PREDICATE_TYPE, clazz, SHAPES_GRAPH)
93
+ instances = template.config.store.getSubjects(RDF_PREDICATE_TYPE, clazz, SHAPES_GRAPH)
96
94
  // find instances in the data graph
97
- instances.push(...template.config.dataGraph.getSubjects(RDF_PREDICATE_TYPE, clazz, null))
95
+ instances.push(...template.config.store.getSubjects(RDF_PREDICATE_TYPE, clazz, DATA_GRAPH))
98
96
  // find instances in imported taxonomies
99
- findClassInstancesFromOwlImports(clazz, template, template.config.shapesGraph, instances)
97
+ findClassInstancesFromOwlImports(clazz, template, template.config.store, instances)
100
98
  }
101
99
 
102
- const entries = createInputListEntries(instances, template.config.shapesGraph, template.config.languages, indent)
100
+ const entries = createInputListEntries(instances, template.config.store, template.config.languages, indent)
103
101
  // build inheritance tree only if sh:in is not defined
104
102
  if (template.shaclIn === undefined) {
105
- for (const subClass of template.config.shapesGraph.getSubjects(RDFS_PREDICATE_SUBCLASS_OF, clazz, null)) {
103
+ for (const subClass of template.config.store.getSubjects(RDFS_PREDICATE_SUBCLASS_OF, clazz, null)) {
106
104
  entries.push(...findInstancesOf(subClass as NamedNode, template, indent + 1))
107
105
  }
108
- if (template.config.shapesGraph.getQuads(clazz, RDF_PREDICATE_TYPE, OWL_OBJECT_NAMED_INDIVIDUAL, null).length > 0) {
109
- entries.push(...createInputListEntries([ clazz ], template.config.shapesGraph, template.config.languages, indent))
110
- for (const subClass of template.config.shapesGraph.getSubjects(SKOS_PREDICATE_BROADER, clazz, null)) {
106
+ if (template.config.store.getQuads(clazz, RDF_PREDICATE_TYPE, OWL_OBJECT_NAMED_INDIVIDUAL, null).length > 0) {
107
+ entries.push(...createInputListEntries([ clazz ], template.config.store, template.config.languages, indent))
108
+ for (const subClass of template.config.store.getSubjects(SKOS_PREDICATE_BROADER, clazz, null)) {
111
109
  entries.push(...findInstancesOf(subClass as NamedNode, template, indent + 1))
112
110
  }
113
111
  }
@@ -1,69 +0,0 @@
1
- /*!
2
- * Copyright (c) 2016-2021 Digital Bazaar, Inc. All rights reserved.
3
- */
4
-
5
- /*!
6
- * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
7
- */
8
-
9
- /*!
10
- * The buffer module from node.js, for the browser.
11
- *
12
- * @author Feross Aboukhadijeh <https://feross.org>
13
- * @license MIT
14
- */
15
-
16
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
17
-
18
- /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
19
-
20
- /**
21
- * A JavaScript implementation of the JSON-LD API.
22
- *
23
- * @author Dave Longley
24
- *
25
- * @license BSD 3-Clause License
26
- * Copyright (c) 2011-2022 Digital Bazaar, Inc.
27
- * All rights reserved.
28
- *
29
- * Redistribution and use in source and binary forms, with or without
30
- * modification, are permitted provided that the following conditions are met:
31
- *
32
- * Redistributions of source code must retain the above copyright notice,
33
- * this list of conditions and the following disclaimer.
34
- *
35
- * Redistributions in binary form must reproduce the above copyright
36
- * notice, this list of conditions and the following disclaimer in the
37
- * documentation and/or other materials provided with the distribution.
38
- *
39
- * Neither the name of the Digital Bazaar, Inc. nor the names of its
40
- * contributors may be used to endorse or promote products derived from
41
- * this software without specific prior written permission.
42
- *
43
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
44
- * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
45
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
46
- * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
47
- * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
48
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
49
- * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
50
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
51
- * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
52
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
53
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54
- */
55
-
56
- /**
57
- * Removes the @preserve keywords from expanded result of framing.
58
- *
59
- * @param input the framed, framed output.
60
- * @param options the framing options used.
61
- *
62
- * @return the resulting output.
63
- */
64
-
65
- // disallow aliasing @context and @preserve
66
-
67
- // remove @preserve
68
-
69
- // remove @preserve from results
@@ -1,69 +0,0 @@
1
- /*!
2
- * Copyright (c) 2016-2021 Digital Bazaar, Inc. All rights reserved.
3
- */
4
-
5
- /*!
6
- * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
7
- */
8
-
9
- /*!
10
- * The buffer module from node.js, for the browser.
11
- *
12
- * @author Feross Aboukhadijeh <https://feross.org>
13
- * @license MIT
14
- */
15
-
16
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
17
-
18
- /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
19
-
20
- /**
21
- * A JavaScript implementation of the JSON-LD API.
22
- *
23
- * @author Dave Longley
24
- *
25
- * @license BSD 3-Clause License
26
- * Copyright (c) 2011-2022 Digital Bazaar, Inc.
27
- * All rights reserved.
28
- *
29
- * Redistribution and use in source and binary forms, with or without
30
- * modification, are permitted provided that the following conditions are met:
31
- *
32
- * Redistributions of source code must retain the above copyright notice,
33
- * this list of conditions and the following disclaimer.
34
- *
35
- * Redistributions in binary form must reproduce the above copyright
36
- * notice, this list of conditions and the following disclaimer in the
37
- * documentation and/or other materials provided with the distribution.
38
- *
39
- * Neither the name of the Digital Bazaar, Inc. nor the names of its
40
- * contributors may be used to endorse or promote products derived from
41
- * this software without specific prior written permission.
42
- *
43
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
44
- * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
45
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
46
- * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
47
- * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
48
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
49
- * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
50
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
51
- * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
52
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
53
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54
- */
55
-
56
- /**
57
- * Removes the @preserve keywords from expanded result of framing.
58
- *
59
- * @param input the framed, framed output.
60
- * @param options the framing options used.
61
- *
62
- * @return the resulting output.
63
- */
64
-
65
- // disallow aliasing @context and @preserve
66
-
67
- // remove @preserve
68
-
69
- // remove @preserve from results
@@ -1,69 +0,0 @@
1
- /*!
2
- * Copyright (c) 2016-2021 Digital Bazaar, Inc. All rights reserved.
3
- */
4
-
5
- /*!
6
- * Copyright (c) 2016-2022 Digital Bazaar, Inc. All rights reserved.
7
- */
8
-
9
- /*!
10
- * The buffer module from node.js, for the browser.
11
- *
12
- * @author Feross Aboukhadijeh <https://feross.org>
13
- * @license MIT
14
- */
15
-
16
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
17
-
18
- /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
19
-
20
- /**
21
- * A JavaScript implementation of the JSON-LD API.
22
- *
23
- * @author Dave Longley
24
- *
25
- * @license BSD 3-Clause License
26
- * Copyright (c) 2011-2022 Digital Bazaar, Inc.
27
- * All rights reserved.
28
- *
29
- * Redistribution and use in source and binary forms, with or without
30
- * modification, are permitted provided that the following conditions are met:
31
- *
32
- * Redistributions of source code must retain the above copyright notice,
33
- * this list of conditions and the following disclaimer.
34
- *
35
- * Redistributions in binary form must reproduce the above copyright
36
- * notice, this list of conditions and the following disclaimer in the
37
- * documentation and/or other materials provided with the distribution.
38
- *
39
- * Neither the name of the Digital Bazaar, Inc. nor the names of its
40
- * contributors may be used to endorse or promote products derived from
41
- * this software without specific prior written permission.
42
- *
43
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
44
- * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
45
- * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
46
- * PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
47
- * HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
48
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED
49
- * TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
50
- * PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
51
- * LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
52
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
53
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
54
- */
55
-
56
- /**
57
- * Removes the @preserve keywords from expanded result of framing.
58
- *
59
- * @param input the framed, framed output.
60
- * @param options the framing options used.
61
- *
62
- * @return the resulting output.
63
- */
64
-
65
- // disallow aliasing @context and @preserve
66
-
67
- // remove @preserve
68
-
69
- // remove @preserve from results
@@ -1 +0,0 @@
1
- class e{constructor(e,t){this.predicate=e.predicate,this.datatype=e.datatype,t&&(this.stylesheet=new CSSStyleSheet,this.stylesheet.replaceSync(t))}createViewer(e,t){return e.config.theme.createViewer(e.label,t,e)}}class t extends e{constructor(e,t,i){super(e),this.onChange=t,this.fileType=i}createEditor(e){var t;const i=void 0!==e.minCount&&e.minCount>0,r=e.config.theme.createFileEditor(e.label,null,i,e);return r.addEventListener("change",(e=>{e.stopPropagation(),this.onChange(e)})),this.fileType&&(null===(t=r.querySelector('input[type="file"]'))||void 0===t||t.setAttribute("accept",this.fileType)),r}}export{t as FileUploadPlugin};
@@ -1 +0,0 @@
1
- class e{constructor(e,t){this.predicate=e.predicate,this.datatype=e.datatype,t&&(this.stylesheet=new CSSStyleSheet,this.stylesheet.replaceSync(t))}createViewer(e,t){return e.config.theme.createViewer(e.label,t,e)}}class t extends e{constructor(e,t){super(e),this.entries=t}createEditor(e,t){const r=void 0!==e.minCount&&e.minCount>0;return e.config.theme.createListEditor(e.label,t||null,r,this.entries,e)}}export{t as FixedListPlugin};
@@ -1,4 +0,0 @@
1
- /* @preserve
2
- * Leaflet 1.9.4, a JS library for interactive maps. https://leafletjs.com
3
- * (c) 2010-2023 Vladimir Agafonkin, (c) 2010-2011 CloudMade
4
- */
@@ -1,10 +0,0 @@
1
- /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
2
-
3
- /**
4
- * martinez v0.7.4
5
- * Martinez polygon clipping algorithm, does boolean operation on polygons (multipolygons, polygons with holes etc): intersection, union, difference, xor
6
- *
7
- * @author Alex Milevski <info@w8r.name>
8
- * @license MIT
9
- * @preserve
10
- */