@entryscape/rdforms 10.13.4 → 10.14.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.
@@ -0,0 +1,104 @@
1
+ /*!
2
+ * Determine if an object is a Buffer
3
+ *
4
+ * @author Feross Aboukhadijeh <https://feross.org>
5
+ * @license MIT
6
+ */
7
+
8
+ /*!
9
+ * The buffer module from node.js, for the browser.
10
+ *
11
+ * @author Feross Aboukhadijeh <https://feross.org>
12
+ * @license MIT
13
+ */
14
+
15
+ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */
16
+
17
+ /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
18
+
19
+ /*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */
20
+
21
+ /**
22
+ * @license React
23
+ * react-dom.production.min.js
24
+ *
25
+ * Copyright (c) Facebook, Inc. and its affiliates.
26
+ *
27
+ * This source code is licensed under the MIT license found in the
28
+ * LICENSE file in the root directory of this source tree.
29
+ */
30
+
31
+ /**
32
+ * @license React
33
+ * react-is.production.js
34
+ *
35
+ * Copyright (c) Meta Platforms, Inc. and affiliates.
36
+ *
37
+ * This source code is licensed under the MIT license found in the
38
+ * LICENSE file in the root directory of this source tree.
39
+ */
40
+
41
+ /**
42
+ * @license React
43
+ * react-jsx-runtime.production.min.js
44
+ *
45
+ * Copyright (c) Facebook, Inc. and its affiliates.
46
+ *
47
+ * This source code is licensed under the MIT license found in the
48
+ * LICENSE file in the root directory of this source tree.
49
+ */
50
+
51
+ /**
52
+ * @license React
53
+ * react.production.min.js
54
+ *
55
+ * Copyright (c) Facebook, Inc. and its affiliates.
56
+ *
57
+ * This source code is licensed under the MIT license found in the
58
+ * LICENSE file in the root directory of this source tree.
59
+ */
60
+
61
+ /**
62
+ * @license React
63
+ * scheduler.production.min.js
64
+ *
65
+ * Copyright (c) Facebook, Inc. and its affiliates.
66
+ *
67
+ * This source code is licensed under the MIT license found in the
68
+ * LICENSE file in the root directory of this source tree.
69
+ */
70
+
71
+ /**
72
+ * Character class utilities for XML NS 1.0 edition 3.
73
+ *
74
+ * @author Louis-Dominique Dubeau
75
+ * @license MIT
76
+ * @copyright Louis-Dominique Dubeau
77
+ */
78
+
79
+ /**
80
+ * Character classes and associated utilities for the 2nd edition of XML 1.1.
81
+ *
82
+ * @author Louis-Dominique Dubeau
83
+ * @license MIT
84
+ * @copyright Louis-Dominique Dubeau
85
+ */
86
+
87
+ /**
88
+ * Character classes and associated utilities for the 5th edition of XML 1.0.
89
+ *
90
+ * @author Louis-Dominique Dubeau
91
+ * @license MIT
92
+ * @copyright Louis-Dominique Dubeau
93
+ */
94
+
95
+ /** @license React v16.13.1
96
+ * react-is.production.min.js
97
+ *
98
+ * Copyright (c) Facebook, Inc. and its affiliates.
99
+ *
100
+ * This source code is licensed under the MIT license found in the
101
+ * LICENSE file in the root directory of this source tree.
102
+ */
103
+
104
+ //! moment.js
package/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "application profile",
9
9
  "linked data"
10
10
  ],
11
- "version": "10.13.4",
11
+ "version": "10.14.0",
12
12
  "main": "dist/rdforms.node.js",
13
13
  "browser": "dist/rdforms.react.js",
14
14
  "module": "main.js",
@@ -19,13 +19,12 @@
19
19
  "@entryscape/rdfjson": "2.7.7"
20
20
  },
21
21
  "dependencies": {
22
+ "@emotion/react": "^11.14.0",
23
+ "@emotion/styled": "^11.14.0",
22
24
  "@entryscape/rdfjson": "2.7.7",
23
- "@emotion/react": "^11.4.1",
24
- "@emotion/styled": "^11.3.0",
25
25
  "@fortawesome/fontawesome-free": "^5.8.1",
26
- "@mui/icons-material": "^5.0.3",
27
- "@mui/material": "^5.0.3",
28
- "@mui/styles": "^5.0.1",
26
+ "@mui/icons-material": "^7.1.0",
27
+ "@mui/material": "^7.1.0",
29
28
  "@mui/x-date-pickers": "^5.0.0-beta.7",
30
29
  "@selectize/selectize": "^0.13.5",
31
30
  "arrive": "^2.4.1",
@@ -50,7 +49,7 @@
50
49
  "select2": "4.0.8",
51
50
  "selectize-bootstrap4-theme": "^2.0.2",
52
51
  "sizzle": "^2.3.3",
53
- "terser-webpack-plugin": "^1.3.0",
52
+ "terser-webpack-plugin": "^5.3.14",
54
53
  "whatwg-fetch": "^3.0.0"
55
54
  },
56
55
  "devDependencies": {
@@ -86,7 +85,7 @@
86
85
  "ttf-loader": "^1.0.2",
87
86
  "webpack": "^5.88.2",
88
87
  "webpack-cli": "^5.1.4",
89
- "webpack-dev-server": "^4.15.2",
88
+ "webpack-dev-server": "^5.2.1",
90
89
  "webpack-merge": "^5.8.0"
91
90
  },
92
91
  "files": [
@@ -554,6 +554,10 @@ export default class Item {
554
554
  return `'${this.getLabel()}' (${detailsArr.join(', ')})`;
555
555
  }
556
556
 
557
+ getHash() {
558
+ return `i_${this._internalId}`;
559
+ }
560
+
557
561
  //= ==================================================
558
562
  // Inherited methods
559
563
  //= ==================================================
@@ -2,7 +2,7 @@
2
2
  import React, { Fragment, useState, useEffect, forwardRef } from 'react';
3
3
  import Tooltip, { tooltipClasses } from '@mui/material/Tooltip';
4
4
  import { styled } from '@mui/material/styles';
5
- import { ClickAwayListener } from '@mui/base/ClickAwayListener';
5
+ import ClickAwayListener from '@mui/material/ClickAwayListener';
6
6
  import renderingContext from '../renderingContext';
7
7
  import utils from '../../utils';
8
8
  import { Editor } from './Wrappers';
@@ -73,7 +73,7 @@ const ItemTooltip = (props) => {
73
73
  props.item.getEditDescriptionMap() || props.item.getDescriptionMap() : props.item.getDescriptionMap()
74
74
  || (property ? '' : props.context.view.messages.info_missing || '');
75
75
  const description = utils.getLocalizedValue(descriptionMap, props.context.view.getLocale()).value;
76
- const tooltipId = `tt_${props.binding.getHash()}`;
76
+ const tooltipId = `tt_${props.binding ? props.binding.getHash() : props.item.getHash()}`;
77
77
 
78
78
  return (
79
79
  <ClickAwayListener onClickAway={handleTooltipClose}>
@@ -136,10 +136,10 @@ renderingContext.renderPresenterLabel = (rowNode, binding, item, context) => {
136
136
  <h2 tabIndex="0" id={labelId} className="rdformsLabelRow"><span className={rdformsLabel} role={role}>{label}</span></h2> :
137
137
  <span tabIndex="0" id={labelId} className="rdformsLabelRow"><span className={rdformsLabel} role={role}>{label}</span></span>;
138
138
  if (context.view.popupOnLabel) {
139
- rowNode.appendChild(<Fragment key={`${binding ? binding.getHash() : item._internalId}_label` }><ItemTooltip
139
+ rowNode.appendChild(<Fragment key={`${binding ? binding.getHash() : item.getHash()}_label` }><ItemTooltip
140
140
  context={context} item={item} binding={binding}>{label}</ItemTooltip>{description}</Fragment>);
141
141
  } else {
142
- rowNode.appendChild(<Fragment key={`${binding ? binding.getHash() : item._internalId}_label` }>{label}{description}</Fragment>);
142
+ rowNode.appendChild(<Fragment key={`${binding ? binding.getHash() : item.getHash()}_label` }>{label}{description}</Fragment>);
143
143
  }
144
144
  };
145
145