@dreamcommerce/aurora 3.0.0-278 → 3.0.0-279

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.
@@ -10,7 +10,10 @@ var MultiSelectUtils = /*#__PURE__*/_rollupPluginBabelHelpers.createClass(functi
10
10
  });
11
11
  _MultiSelectUtils = MultiSelectUtils;
12
12
  _rollupPluginBabelHelpers.defineProperty(MultiSelectUtils, "isOptionVisible", function (option, search) {
13
- return option.text.toLocaleLowerCase().includes(search.toLocaleLowerCase());
13
+ var normalizePolish = function normalizePolish(str) {
14
+ return str.normalize('NFD').replace(/[\u0300-\u036f]/g, '').replace(/[\u0141-\u0142]/g, 'l').toLowerCase();
15
+ };
16
+ return normalizePolish(option.text).includes(normalizePolish(search));
14
17
  });
15
18
  _rollupPluginBabelHelpers.defineProperty(MultiSelectUtils, "isHeaderVisible", function (search, options, index) {
16
19
  var visible = false;
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -10,7 +10,10 @@ var SelectUtils = /*#__PURE__*/_rollupPluginBabelHelpers.createClass(function Se
10
10
  });
11
11
  _SelectUtils = SelectUtils;
12
12
  _rollupPluginBabelHelpers.defineProperty(SelectUtils, "localSearchIsOptionVisible", function (option, search) {
13
- return option.text.toLocaleLowerCase().includes(search.toLocaleLowerCase());
13
+ var normalizePolish = function normalizePolish(str) {
14
+ return str.normalize('NFD').replace(/[\u0300-\u036f]/g, '').replace(/[\u0141-\u0142]/g, 'l').toLowerCase();
15
+ };
16
+ return normalizePolish(option.text).includes(normalizePolish(search));
14
17
  });
15
18
  _rollupPluginBabelHelpers.defineProperty(SelectUtils, "localSearchIsHeaderVisible", function (search, options, index) {
16
19
  var visible = false;
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -6,7 +6,10 @@ var MultiSelectUtils = /*#__PURE__*/_createClass(function MultiSelectUtils() {
6
6
  });
7
7
  _MultiSelectUtils = MultiSelectUtils;
8
8
  _defineProperty(MultiSelectUtils, "isOptionVisible", function (option, search) {
9
- return option.text.toLocaleLowerCase().includes(search.toLocaleLowerCase());
9
+ var normalizePolish = function normalizePolish(str) {
10
+ return str.normalize('NFD').replace(/[\u0300-\u036f]/g, '').replace(/[\u0141-\u0142]/g, 'l').toLowerCase();
11
+ };
12
+ return normalizePolish(option.text).includes(normalizePolish(search));
10
13
  });
11
14
  _defineProperty(MultiSelectUtils, "isHeaderVisible", function (search, options, index) {
12
15
  var visible = false;
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
@@ -6,7 +6,10 @@ var SelectUtils = /*#__PURE__*/_createClass(function SelectUtils() {
6
6
  });
7
7
  _SelectUtils = SelectUtils;
8
8
  _defineProperty(SelectUtils, "localSearchIsOptionVisible", function (option, search) {
9
- return option.text.toLocaleLowerCase().includes(search.toLocaleLowerCase());
9
+ var normalizePolish = function normalizePolish(str) {
10
+ return str.normalize('NFD').replace(/[\u0300-\u036f]/g, '').replace(/[\u0141-\u0142]/g, 'l').toLowerCase();
11
+ };
12
+ return normalizePolish(option.text).includes(normalizePolish(search));
10
13
  });
11
14
  _defineProperty(SelectUtils, "localSearchIsHeaderVisible", function (search, options, index) {
12
15
  var visible = false;
@@ -1 +1 @@
1
- {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
1
+ {"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}