smoothly 0.3.46 → 0.3.48

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.
Files changed (37) hide show
  1. package/dist/cjs/{Listenable-f6012fc2.js → Listenable-0b92b362.js} +33 -1
  2. package/dist/cjs/{getLanguage-430ecf04.js → getLanguage-7e53766b.js} +1013 -915
  3. package/dist/cjs/{index-879bbabb.js → index-45c42c7c.js} +2 -2
  4. package/dist/cjs/index.cjs.js +2 -2
  5. package/dist/cjs/smoothly-accordion_53.cjs.entry.js +4 -4
  6. package/dist/cjs/smoothly-country.cjs.entry.js +1 -1
  7. package/dist/cjs/smoothly-trigger-sink.cjs.entry.js +1 -1
  8. package/dist/cjs/smoothly-trigger-source.cjs.entry.js +1 -1
  9. package/dist/collection/components/App.js +2 -2
  10. package/dist/collection/components/app/index.js +1 -1
  11. package/dist/collection/components/country/index.js +1 -1
  12. package/dist/collection/components/display/index.js +2 -2
  13. package/dist/collection/components/display-amount/index.js +1 -1
  14. package/dist/collection/components/input/index.js +1 -1
  15. package/dist/custom-elements/index.js +1037 -907
  16. package/dist/esm/{Listenable-34b047d8.js → Listenable-79ce5567.js} +33 -1
  17. package/dist/esm/{getLanguage-cccb8418.js → getLanguage-9c833eef.js} +1013 -915
  18. package/dist/esm/{index-d7a4e405.js → index-9594f9bc.js} +2 -2
  19. package/dist/esm/index.js +3 -3
  20. package/dist/esm/smoothly-accordion_53.entry.js +4 -4
  21. package/dist/esm/smoothly-country.entry.js +1 -1
  22. package/dist/esm/smoothly-trigger-sink.entry.js +1 -1
  23. package/dist/esm/smoothly-trigger-source.entry.js +1 -1
  24. package/dist/smoothly/index.esm.js +1 -1
  25. package/dist/smoothly/p-03c10101.js +1 -0
  26. package/dist/smoothly/p-1b714a63.js +1 -0
  27. package/dist/smoothly/{p-41bd21da.entry.js → p-68919b0f.entry.js} +1 -1
  28. package/dist/smoothly/p-8f1d86ff.js +1 -0
  29. package/dist/smoothly/{p-6630d923.entry.js → p-bb508923.entry.js} +1 -1
  30. package/dist/smoothly/p-e39602bd.entry.js +1 -0
  31. package/dist/smoothly/{p-e7b088e6.entry.js → p-f446ca1a.entry.js} +1 -1
  32. package/dist/smoothly/smoothly.esm.js +1 -1
  33. package/package.json +4 -4
  34. package/dist/smoothly/p-5b6351f6.js +0 -1
  35. package/dist/smoothly/p-94e08cee.js +0 -1
  36. package/dist/smoothly/p-9bf79e04.entry.js +0 -1
  37. package/dist/smoothly/p-e6cb38de.js +0 -1
@@ -45,6 +45,15 @@ function decode(value, standard = "standard") {
45
45
  }
46
46
  return result;
47
47
  }
48
+ function next(value, increment = 1, standard = "standard") {
49
+ const table = tables[standard];
50
+ const rest = value.length > 1 ? value.substring(0, value.length - 1) : increment > 0 ? "" : table[63];
51
+ const number = (value.length == 0 ? 0 : table.indexOf(value[value.length - 1])) + increment;
52
+ return ((number > 63 || number < 0 ? next(rest, Math.floor(number / 63), standard) : rest) + table[remainder(number, 64)]);
53
+ }
54
+ function remainder(left, right) {
55
+ return left >= 0 ? left % right : remainder(left + right, right);
56
+ }
48
57
 
49
58
  const crypto = typeof window != "undefined"
50
59
  ? window.crypto || window.msCrypto
@@ -151,6 +160,23 @@ var Identifier;
151
160
  return result.join("");
152
161
  }
153
162
  Identifier.toHexadecimal = toHexadecimal;
163
+ function min(length) {
164
+ return "".padStart(length, "A");
165
+ }
166
+ Identifier.min = min;
167
+ function max(length) {
168
+ return "".padStart(length, "_");
169
+ }
170
+ Identifier.max = max;
171
+ function next$1(identifier, increment = 1) {
172
+ const result = next(identifier, increment, "url");
173
+ return result.length == identifier.length ? result : result.substring(result.length - identifier.length);
174
+ }
175
+ Identifier.next = next$1;
176
+ function previous(identifier, decrement = 1) {
177
+ return next$1(identifier, -decrement);
178
+ }
179
+ Identifier.previous = previous;
154
180
  Identifier.length = [
155
181
  4, 8, 12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 100, 104, 108, 112,
156
182
  116, 120, 124, 128,
@@ -436,7 +462,13 @@ if (!Uint8Array.__proto__.from) {
436
462
  var Converter;
437
463
  (function (Converter) {
438
464
  function is(value) {
439
- return typeof value == "object" && Object.entries(value).every(v => typeof v == "function");
465
+ return (typeof value == "object" &&
466
+ Object.values(value).every(v => v &&
467
+ typeof v == "object" &&
468
+ "forward" in v &&
469
+ typeof v.forward == "function" &&
470
+ "backward" in v &&
471
+ typeof v.backward == "function"));
440
472
  }
441
473
  Converter.is = is;
442
474
  })(Converter || (Converter = {}));