@pie-element/math-templated 3.3.1-next.9 → 3.3.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 CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.3.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated@3.3.0...@pie-element/math-templated@3.3.1) (2024-11-29)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update pie-lib/pie-toolbox PD-4387, PD-4388 ([0416caf](https://github.com/pie-framework/pie-elements/commit/0416caf1188a62367a893c1e2bcfd138303c1d6d))
12
+
13
+
14
+
15
+
16
+
6
17
  # [3.3.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated@3.2.2...@pie-element/math-templated@3.3.0) (2024-11-15)
7
18
 
8
19
 
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [2.2.1](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-configure@2.2.0...@pie-element/math-templated-configure@2.2.1) (2024-11-29)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update pie-lib/pie-toolbox PD-4387, PD-4388 ([0416caf](https://github.com/pie-framework/pie-elements/commit/0416caf1188a62367a893c1e2bcfd138303c1d6d))
12
+
13
+
14
+
15
+
16
+
6
17
  # [2.2.0](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-configure@2.1.1...@pie-element/math-templated-configure@2.2.0) (2024-11-15)
7
18
 
8
19
 
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@pie-element/math-templated-configure",
3
3
  "private": true,
4
- "version": "2.2.0",
4
+ "version": "2.2.1",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
8
8
  "dependencies": {
9
9
  "@material-ui/core": "^3.9.2",
10
10
  "@pie-framework/pie-configure-events": "^1.3.0",
11
- "@pie-lib/pie-toolbox": "2.2.0",
11
+ "@pie-lib/pie-toolbox": "2.3.0",
12
12
  "debug": "^3.1.0",
13
13
  "lodash": "^4.17.15",
14
14
  "prop-types": "^15.6.2",
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [3.1.3](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-controller@3.1.2...@pie-element/math-templated-controller@3.1.3) (2024-11-29)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * update pie-lib/pie-toolbox PD-4387, PD-4388 ([0416caf](https://github.com/pie-framework/pie-elements/commit/0416caf1188a62367a893c1e2bcfd138303c1d6d))
12
+
13
+
14
+
15
+
16
+
6
17
  ## [3.1.2](https://github.com/pie-framework/pie-elements/compare/@pie-element/math-templated-controller@3.1.1...@pie-element/math-templated-controller@3.1.2) (2024-11-15)
7
18
 
8
19
 
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@pie-element/math-templated-controller",
3
3
  "private": true,
4
- "version": "3.1.2",
4
+ "version": "3.1.3",
5
5
  "description": "",
6
6
  "main": "lib/index.js",
7
7
  "module": "src/index.js",
8
8
  "dependencies": {
9
9
  "@pie-framework/math-validation": "^1.2.2",
10
- "@pie-lib/pie-toolbox": "2.2.0",
10
+ "@pie-lib/pie-toolbox": "2.3.0",
11
11
  "debug": "^3.1.0",
12
12
  "lodash": "^4.17.15"
13
13
  },
@@ -1,5 +1,5 @@
1
- import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash} from "../../../@pie-lib/pie-toolbox-math-rendering-module@2.2.0/module/index.js";
2
- import {_dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_math_toolbar, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_editable_html} from "../../../@pie-lib/pie-toolbox-module@5.2.0/module/index.js";
1
+ import {_dll_react, _dll_prop_types, _dll_classnames, _dll_react_dom, _dll_debug, _dll_lodash} from "../../../@pie-lib/pie-toolbox-math-rendering-module@2.2.1/module/index.js";
2
+ import {_dll_pie_lib__pie_toolbox_config_ui, _dll_pie_lib__pie_toolbox_math_toolbar, _dll_pie_lib__pie_toolbox_render_ui, _dll_pie_lib__pie_toolbox_editable_html} from "../../../@pie-lib/pie-toolbox-module@5.2.1/module/index.js";
3
3
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
4
4
  function getDefaultExportFromCjs(x) {
5
5
  return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
@@ -42541,7 +42541,6 @@ const require$$12$5 = _dll_prop_types;
42541
42541
  backgroundColor: ("var(--feedback-bg-color, ").concat(color.disabled(), ")"),
42542
42542
  borderRadius: '4px',
42543
42543
  fontFamily: '"Roboto", "Noto", sans-serif',
42544
- fontSize: '12px',
42545
42544
  lineHeight: '25px',
42546
42545
  margin: '0px',
42547
42546
  padding: '10px',
@@ -59914,7 +59913,7 @@ const {omit: require$$13$1} = _dll_lodash;
59914
59913
  var _classnames = _interopRequireDefault(require$$12$2);
59915
59914
  var _omit = _interopRequireDefault(require$$13$1);
59916
59915
  var _appendCssRules = _interopRequireDefault(appendCssRules);
59917
- var _excluded = ["children", "className", "classes"];
59916
+ var _excluded = ["children", "className", "classes", "fontSizeFactor"];
59918
59917
  function _createSuper(Derived) {
59919
59918
  var hasNativeReflectConstruct = _isNativeReflectConstruct();
59920
59919
  return function _createSuperInternal() {
@@ -59950,14 +59949,24 @@ const {omit: require$$13$1} = _dll_lodash;
59950
59949
  return _this;
59951
59950
  }
59952
59951
  (0, _createClass2["default"])(UiLayout, [{
59952
+ key: "computeStyle",
59953
+ value: function computeStyle(fontSizeFactor) {
59954
+ var rootFontSize = parseFloat(getComputedStyle(document.documentElement).fontSize);
59955
+ return {
59956
+ fontSize: ("").concat(rootFontSize * fontSizeFactor, "px")
59957
+ };
59958
+ }
59959
+ }, {
59953
59960
  key: "render",
59954
59961
  value: function render() {
59955
- var _this$props = this.props, children = _this$props.children, className = _this$props.className, classes = _this$props.classes, rest = (0, _objectWithoutProperties2["default"])(_this$props, _excluded);
59962
+ var _this$props = this.props, children = _this$props.children, className = _this$props.className, classes = _this$props.classes, fontSizeFactor = _this$props.fontSizeFactor, rest = (0, _objectWithoutProperties2["default"])(_this$props, _excluded);
59956
59963
  var finalClass = (0, _classnames["default"])(className, classes.extraCSSRules);
59957
59964
  var restProps = (0, _omit["default"])(rest, 'extraCSSRules');
59958
59965
  return _react["default"].createElement("div", (0, _extends2["default"])({
59959
59966
  className: finalClass
59960
- }, restProps), children);
59967
+ }, restProps, {
59968
+ style: this.computeStyle(fontSizeFactor)
59969
+ }), children);
59961
59970
  }
59962
59971
  }]);
59963
59972
  return UiLayout;
@@ -59969,10 +59978,12 @@ const {omit: require$$13$1} = _dll_lodash;
59969
59978
  extraCSSRules: _propTypes["default"].shape({
59970
59979
  names: _propTypes["default"].arrayOf(_propTypes["default"].string),
59971
59980
  rules: _propTypes["default"].string
59972
- })
59981
+ }),
59982
+ fontSizeFactor: _propTypes["default"].number
59973
59983
  });
59974
59984
  (0, _defineProperty2["default"])(UiLayout, "defaultProps", {
59975
- extraCSSRules: {}
59985
+ extraCSSRules: {},
59986
+ fontSizeFactor: 1
59976
59987
  });
59977
59988
  var styles = {
59978
59989
  extraCSSRules: {}
@@ -60035,7 +60046,7 @@ const require$$10$1 = _dll_prop_types;
60035
60046
  (0, _createClass2["default"])(PreviewLayout, [{
60036
60047
  key: "render",
60037
60048
  value: function render() {
60038
- var _this$props = this.props, children = _this$props.children, classes = _this$props.classes, ariaLabel = _this$props.ariaLabel, role = _this$props.role, extraCSSRules = _this$props.extraCSSRules;
60049
+ var _this$props = this.props, children = _this$props.children, classes = _this$props.classes, ariaLabel = _this$props.ariaLabel, role = _this$props.role, extraCSSRules = _this$props.extraCSSRules, fontSizeFactor = _this$props.fontSizeFactor;
60039
60050
  var accessibility = ariaLabel ? {
60040
60051
  'aria-label': ariaLabel,
60041
60052
  role: role
@@ -60043,7 +60054,8 @@ const require$$10$1 = _dll_prop_types;
60043
60054
  return _react["default"].createElement(_uiLayout["default"], (0, _extends2["default"])({
60044
60055
  className: classes.container
60045
60056
  }, accessibility, {
60046
- extraCSSRules: extraCSSRules
60057
+ extraCSSRules: extraCSSRules,
60058
+ fontSizeFactor: fontSizeFactor
60047
60059
  }), children);
60048
60060
  }
60049
60061
  }]);
@@ -60057,7 +60069,8 @@ const require$$10$1 = _dll_prop_types;
60057
60069
  extraCSSRules: _propTypes["default"].shape({
60058
60070
  names: _propTypes["default"].arrayOf(_propTypes["default"].string),
60059
60071
  rules: _propTypes["default"].string
60060
- })
60072
+ }),
60073
+ fontSizeFactor: _propTypes["default"].number
60061
60074
  });
60062
60075
  var styles = function styles() {
60063
60076
  return {