@entryscape/rdforms 10.11.0 → 10.11.2

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/package.json CHANGED
@@ -8,7 +8,7 @@
8
8
  "application profile",
9
9
  "linked data"
10
10
  ],
11
- "version": "10.11.0",
11
+ "version": "10.11.2",
12
12
  "main": "dist/rdforms.node.js",
13
13
  "browser": "dist/rdforms.react.js",
14
14
  "module": "main.js",
@@ -53,9 +53,9 @@
53
53
  "devDependencies": {
54
54
  "@babel/cli": "^7.16.0",
55
55
  "@babel/core": "^7.16.0",
56
- "@babel/plugin-transform-class-properties": "^7.23.3",
57
56
  "@babel/plugin-proposal-object-rest-spread": "^7.16.0",
58
57
  "@babel/plugin-syntax-dynamic-import": "^7.2.0",
58
+ "@babel/plugin-transform-class-properties": "^7.23.3",
59
59
  "@babel/plugin-transform-modules-commonjs": "^7.16.0",
60
60
  "@babel/plugin-transform-react-jsx": "^7.16.0",
61
61
  "@babel/preset-env": "^7.18.6",
@@ -76,7 +76,6 @@
76
76
  "mini-css-extract-plugin": "^0.4.1",
77
77
  "optimize-css-assets-webpack-plugin": "^6.0.1",
78
78
  "parallel-webpack": "^2.6.0",
79
- "print-licenses": "https://bitbucket.org/metasolutions/print-licenses#master",
80
79
  "q": "^1.5.0",
81
80
  "raw-loader": "^4.0.2",
82
81
  "style-loader": "^3.3.1",
@@ -102,8 +101,7 @@
102
101
  "dev:bootstrap": "webpack serve --config webpack.dev.js --env type=bootstrap",
103
102
  "dev:jquery": "webpack serve --config webpack.dev.js --env type=jquery",
104
103
  "dev:react": "webpack serve --config webpack.dev.js --env type=react",
105
- "serve:samples": "webpack serve --config webpack.samples.serve.js",
106
- "print-licenses": "print-licenses"
104
+ "serve:samples": "webpack serve --config webpack.samples.serve.js"
107
105
  },
108
106
  "author": {
109
107
  "name": "Matthias Palmér",
@@ -38,7 +38,7 @@ renderingContext.renderSelect = function (fieldDiv, binding, context) {
38
38
  } else if (context.chooser && typeof context.chooser.search === 'function') {
39
39
  disable = false;
40
40
  settings.load = (query, callback) => {
41
- context.chooser.search(binding.getItem(), query).then((choices) => {
41
+ context.chooser.search(binding, query).then((choices) => {
42
42
  callback(choices.map(c => ({
43
43
  id: c.value,
44
44
  text: utils.getLocalizedValue(c.label).value || '',
@@ -15,6 +15,7 @@ renderingContext.renderSelect = (fieldDiv, binding, context) => {
15
15
  const options = {
16
16
  placeholder: binding.getItem().getPlaceholder() || '',
17
17
  rdformsItem: binding.getItem(),
18
+ binding,
18
19
  chooser: context.chooser,
19
20
  };
20
21
  if (choices && choices.length > 0) {
@@ -12,7 +12,7 @@ Utils.Extend(AjaxAdapter, ArrayAdapter);
12
12
 
13
13
  AjaxAdapter.prototype.query = function (params, callback) {
14
14
  const request = () => {
15
- this.chooser.search(this.rdformsItem, params.term).then((choices) => {
15
+ this.chooser.search(this.binding, params.term).then((choices) => {
16
16
  callback({ results: choices.map(c => ({
17
17
  id: c.value,
18
18
  text: utils.getLocalizedValue(c.label).value || '',
@@ -49,7 +49,7 @@ export default (props) => {
49
49
  }
50
50
  globalChoiceQueryThrottle = setTimeout(() => {
51
51
  globalChoiceQueryThrottle = undefined;
52
- props.context.chooser.search(binding.getItem(), inputValue.trimStart()).then((results) => {
52
+ props.context.chooser.search(binding, inputValue.trimStart()).then((results) => {
53
53
  if (active) {
54
54
  setOptions(results.map(editLocalizedChoice));
55
55
  }