@rio-cloud/rio-uikit 0.16.2-beta.6 → 0.16.2-beta.8

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.
@@ -44,7 +44,7 @@ var MapClusterSettings = function MapClusterSettings(props) {
44
44
  },
45
45
  isActive: !showCluster,
46
46
  activeIcon: /*#__PURE__*/React.createElement(MapIcon, {
47
- name: CLUSTER_ACTIVE,
47
+ name: NO_CLUSTER_ACTIVE,
48
48
  className: "MapNoClusterIcon"
49
49
  }),
50
50
  inactiveIcon: /*#__PURE__*/React.createElement(MapIcon, {
@@ -4,9 +4,12 @@ import flatMap from 'lodash/fp/flatMap';
4
4
  import filter from 'lodash/fp/filter';
5
5
  import flow from 'lodash/fp/flow';
6
6
  import first from 'lodash/fp/first';
7
+
8
+ // Note: higher PPI image tiles result in larger label size and show more label on the map
7
9
  export var getPPI = function getPPI() {
8
- return window.devicePixelRatio > 1 ? HIGH_RES_PPI : undefined;
9
- };
10
+ return undefined;
11
+ }; //window.devicePixelRatio > 1 ? HIGH_RES_PPI : undefined;
12
+
10
13
  var latLngFilterFunction = function latLngFilterFunction(lat, lng) {
11
14
  return function (obj) {
12
15
  return obj.getGeometry && obj.getGeometry().lat === lat && obj.getGeometry().lng === lng;
@@ -51,7 +51,7 @@ var MapClusterSettings = function MapClusterSettings(props) {
51
51
  },
52
52
  isActive: !showCluster,
53
53
  activeIcon: /*#__PURE__*/_react["default"].createElement(_MapIcon.MapIcon, {
54
- name: _MapIcon.CLUSTER_ACTIVE,
54
+ name: _MapIcon.NO_CLUSTER_ACTIVE,
55
55
  className: "MapNoClusterIcon"
56
56
  }),
57
57
  inactiveIcon: /*#__PURE__*/_react["default"].createElement(_MapIcon.MapIcon, {
@@ -11,9 +11,10 @@ var _flatMap = _interopRequireDefault(require("lodash/fp/flatMap"));
11
11
  var _filter = _interopRequireDefault(require("lodash/fp/filter"));
12
12
  var _flow = _interopRequireDefault(require("lodash/fp/flow"));
13
13
  var _first = _interopRequireDefault(require("lodash/fp/first"));
14
+ // Note: higher PPI image tiles result in larger label size and show more label on the map
14
15
  var getPPI = function getPPI() {
15
- return window.devicePixelRatio > 1 ? _constants.HIGH_RES_PPI : undefined;
16
- };
16
+ return undefined;
17
+ }; //window.devicePixelRatio > 1 ? HIGH_RES_PPI : undefined;
17
18
  exports.getPPI = getPPI;
18
19
  var latLngFilterFunction = function latLngFilterFunction(lat, lng) {
19
20
  return function (obj) {
@@ -60,7 +60,8 @@ var readColorSchemeFromCookie = function readColorSchemeFromCookie() {
60
60
  // This should be done by a RIO service like User Profile SPA using a theme switcher component from the uikit
61
61
  // where this function is referenced
62
62
  var writeColorSchemeToCookie = function writeColorSchemeToCookie(scheme) {
63
- var isDevEnv = import.meta.env.DEV;
63
+ var _window;
64
+ var isDevEnv = (_window = window) === null || _window === void 0 ? void 0 : _window.location.host.startsWith('localhost');
64
65
  var newCookieValues = encodeURIComponent(scheme);
65
66
  var cookie = "".concat(COOKIE_NAME, "=").concat(newCookieValues, ";domain=").concat(isDevEnv ? 'localhost' : DOMAIN, ";expires=").concat(EXPIRATION_DATE, ";path=").concat(PATH);
66
67
  console.log("writeColorSchemeToCookie: ".concat(cookie));
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "0.16.2-beta.5"
2
+ "version": "0.16.2-beta.8"
3
3
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rio-cloud/rio-uikit",
3
- "version": "0.16.2-beta.6",
3
+ "version": "0.16.2-beta.8",
4
4
  "description": "The RIO UIKIT component library",
5
5
  "repository": "https://collaboration.msi.audi.com/stash/projects/RIOFRONT/repos/uikit-web/browse",
6
6
  "scripts": {
@@ -46,7 +46,8 @@ var readColorSchemeFromCookie = function readColorSchemeFromCookie() {
46
46
  // This should be done by a RIO service like User Profile SPA using a theme switcher component from the uikit
47
47
  // where this function is referenced
48
48
  var writeColorSchemeToCookie = function writeColorSchemeToCookie(scheme) {
49
- var isDevEnv = import.meta.env.DEV;
49
+ var _window;
50
+ var isDevEnv = (_window = window) === null || _window === void 0 ? void 0 : _window.location.host.startsWith('localhost');
50
51
  var newCookieValues = encodeURIComponent(scheme);
51
52
  var cookie = "".concat(COOKIE_NAME, "=").concat(newCookieValues, ";domain=").concat(isDevEnv ? 'localhost' : DOMAIN, ";expires=").concat(EXPIRATION_DATE, ";path=").concat(PATH);
52
53
  console.log("writeColorSchemeToCookie: ".concat(cookie));
package/version.json CHANGED
@@ -1,3 +1,3 @@
1
1
  {
2
- "version": "0.16.2-beta.5"
2
+ "version": "0.16.2-beta.8"
3
3
  }