@pie-element/complex-rubric 2.3.4-next.10 → 2.3.4-next.14

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.
@@ -112700,12 +112700,13 @@ const require$$17$3 = _dll_pie_lib__pie_toolbox_config_ui;
112700
112700
  showExcludeZeroDialog: false,
112701
112701
  showInfoDialog: false,
112702
112702
  infoDialogText: '',
112703
- adjustedWidth: MIN_WIDTH
112703
+ adjustedWidth: MIN_WIDTH,
112704
+ initialUpdateCompleted: false
112704
112705
  });
112705
112706
  (0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "onScaleAdded", function () {
112706
112707
  var _scales$;
112707
112708
  var _this$props = _this.props, model = _this$props.model, onModelChanged = _this$props.onModelChanged, configuration = _this$props.configuration;
112708
- var _ref2 = model || ({}), scales = _ref2.scales;
112709
+ var _ref2 = model || ({}), scales = _ref2.scales, excludeZero = _ref2.excludeZero;
112709
112710
  var _ref3 = configuration || ({}), maxNoOfScales = _ref3.maxNoOfScales;
112710
112711
  var _ref4 = configuration || '', defaultTraitLabel = _ref4.defaultTraitLabel;
112711
112712
  if (!scales.length) {
@@ -112720,9 +112721,8 @@ const require$$17$3 = _dll_pie_lib__pie_toolbox_config_ui;
112720
112721
  return false;
112721
112722
  }
112722
112723
  scales.push({
112723
- excludeZero: false,
112724
112724
  maxPoints: 1,
112725
- scorePointsLabels: ['', ''],
112725
+ scorePointsLabels: excludeZero ? [''] : ['', ''],
112726
112726
  traitLabel: defaultTraitLabel,
112727
112727
  traits: []
112728
112728
  });
@@ -112906,6 +112906,16 @@ const require$$17$3 = _dll_pie_lib__pie_toolbox_config_ui;
112906
112906
  window.removeEventListener('resize', this.updateDivWidth);
112907
112907
  window.removeEventListener('load', this.updateDivWidth);
112908
112908
  }
112909
+ }, {
112910
+ key: "componentDidUpdate",
112911
+ value: function componentDidUpdate() {
112912
+ if (!this.state.initialUpdateCompleted) {
112913
+ this.updateDivWidth();
112914
+ this.setState({
112915
+ initialUpdateCompleted: true
112916
+ });
112917
+ }
112918
+ }
112909
112919
  }, {
112910
112920
  key: "updateDivWidth",
112911
112921
  value: function updateDivWidth() {
package/package.json CHANGED
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "@pie-element/complex-rubric",
3
3
  "repository": "pie-framework/pie-elements",
4
- "version": "2.3.4-next.10+2b10227bc",
4
+ "version": "2.3.4-next.14+79eaa0f57",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
8
8
  "dependencies": {
9
9
  "@material-ui/core": "^3.9.2",
10
- "@pie-element/multi-trait-rubric": "^3.3.3-next.10+2b10227bc",
11
- "@pie-element/rubric": "^3.2.3-next.10+2b10227bc",
10
+ "@pie-element/multi-trait-rubric": "^3.3.3-next.14+79eaa0f57",
11
+ "@pie-element/rubric": "^3.2.3-next.14+79eaa0f57",
12
12
  "@pie-framework/pie-player-events": "^0.1.0",
13
13
  "classnames": "^2.2.5",
14
14
  "debug": "^4.1.1",
15
15
  "lodash": "^4.17.11",
16
16
  "prop-types": "^15.7.2"
17
17
  },
18
- "gitHead": "2b10227bc36379a6823fd2573af39a5e725b417f",
18
+ "gitHead": "79eaa0f57f51752d67de3b05775decf4debd8831",
19
19
  "scripts": {
20
20
  "postpublish": "../../scripts/postpublish"
21
21
  },