bitboss-ui 0.2.66 → 0.2.67

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 (141) hide show
  1. package/dist/index101.js +3 -3
  2. package/dist/index103.js +2 -2
  3. package/dist/index109.js +1 -1
  4. package/dist/index11.js +2 -2
  5. package/dist/index111.js +4 -4
  6. package/dist/index113.js +1 -1
  7. package/dist/index116.js +1 -1
  8. package/dist/index117.js +1 -1
  9. package/dist/index118.js +1 -1
  10. package/dist/index119.js +1 -1
  11. package/dist/index121.js +1 -1
  12. package/dist/index125.js +1 -1
  13. package/dist/index126.js +1 -1
  14. package/dist/index15.js +8 -8
  15. package/dist/index17.js +9 -9
  16. package/dist/index19.js +3 -3
  17. package/dist/index196.js +2 -235
  18. package/dist/index196.js.map +1 -1
  19. package/dist/index198.js +5 -2
  20. package/dist/index198.js.map +1 -1
  21. package/dist/index199.js +16 -4
  22. package/dist/index199.js.map +1 -1
  23. package/dist/index200.js +16 -5
  24. package/dist/index200.js.map +1 -1
  25. package/dist/index201.js +18 -15
  26. package/dist/index201.js.map +1 -1
  27. package/dist/index202.js +17 -13
  28. package/dist/index202.js.map +1 -1
  29. package/dist/index203.js +28 -18
  30. package/dist/index203.js.map +1 -1
  31. package/dist/index204.js +8 -20
  32. package/dist/index204.js.map +1 -1
  33. package/dist/index205.js +2 -29
  34. package/dist/index205.js.map +1 -1
  35. package/dist/index206.js +368 -8
  36. package/dist/index206.js.map +1 -1
  37. package/dist/index207.js +134 -2
  38. package/dist/index207.js.map +1 -1
  39. package/dist/index208.js +2 -2
  40. package/dist/index208.js.map +1 -1
  41. package/dist/index209.js +174 -3
  42. package/dist/index209.js.map +1 -1
  43. package/dist/index21.js +2 -2
  44. package/dist/index210.js +23 -3
  45. package/dist/index210.js.map +1 -1
  46. package/dist/index211.js +363 -111
  47. package/dist/index211.js.map +1 -1
  48. package/dist/index212.js +2 -2
  49. package/dist/index212.js.map +1 -1
  50. package/dist/index213.js +4 -6
  51. package/dist/index213.js.map +1 -1
  52. package/dist/index214.js +3 -368
  53. package/dist/index214.js.map +1 -1
  54. package/dist/index215.js +31 -369
  55. package/dist/index215.js.map +1 -1
  56. package/dist/index216.js +6 -2
  57. package/dist/index216.js.map +1 -1
  58. package/dist/index217.js +3 -2
  59. package/dist/index217.js.map +1 -1
  60. package/dist/index218.js +3 -134
  61. package/dist/index218.js.map +1 -1
  62. package/dist/index219.js +226 -165
  63. package/dist/index219.js.map +1 -1
  64. package/dist/index220.js +121 -23
  65. package/dist/index220.js.map +1 -1
  66. package/dist/index221.js +2 -3
  67. package/dist/index221.js.map +1 -1
  68. package/dist/index222.js +2 -35
  69. package/dist/index222.js.map +1 -1
  70. package/dist/index224.js +6 -79
  71. package/dist/index224.js.map +1 -1
  72. package/dist/index225.js +17 -6
  73. package/dist/index225.js.map +1 -1
  74. package/dist/index226.js +79 -17
  75. package/dist/index226.js.map +1 -1
  76. package/dist/index227.js +6 -2
  77. package/dist/index227.js.map +1 -1
  78. package/dist/index228.js +2 -160
  79. package/dist/index228.js.map +1 -1
  80. package/dist/index229.js +297 -1
  81. package/dist/index229.js.map +1 -1
  82. package/dist/index23.js +1 -1
  83. package/dist/index230.js +2 -69
  84. package/dist/index230.js.map +1 -1
  85. package/dist/index231.js +2 -5
  86. package/dist/index231.js.map +1 -1
  87. package/dist/index232.js +117 -2
  88. package/dist/index232.js.map +1 -1
  89. package/dist/index233.js +106 -4
  90. package/dist/index233.js.map +1 -1
  91. package/dist/index234.js +2 -295
  92. package/dist/index234.js.map +1 -1
  93. package/dist/index235.js +2 -6
  94. package/dist/index235.js.map +1 -1
  95. package/dist/index236.js +2 -2
  96. package/dist/index238.js +160 -2
  97. package/dist/index238.js.map +1 -1
  98. package/dist/index239.js +1 -4
  99. package/dist/index239.js.map +1 -1
  100. package/dist/index240.js +5 -2
  101. package/dist/index240.js.map +1 -1
  102. package/dist/index241.js +4 -2
  103. package/dist/index241.js.map +1 -1
  104. package/dist/index242.js +2 -224
  105. package/dist/index242.js.map +1 -1
  106. package/dist/index243.js +68 -257
  107. package/dist/index243.js.map +1 -1
  108. package/dist/index245.js +428 -99
  109. package/dist/index245.js.map +1 -1
  110. package/dist/index246.js +89 -2
  111. package/dist/index246.js.map +1 -1
  112. package/dist/index247.js +218 -111
  113. package/dist/index247.js.map +1 -1
  114. package/dist/index248.js +252 -429
  115. package/dist/index248.js.map +1 -1
  116. package/dist/index249.js +197 -86
  117. package/dist/index249.js.map +1 -1
  118. package/dist/index25.js +2 -2
  119. package/dist/index250.js +2 -200
  120. package/dist/index250.js.map +1 -1
  121. package/dist/index254.js +3 -2
  122. package/dist/index254.js.map +1 -1
  123. package/dist/index255.js +2 -3
  124. package/dist/index255.js.map +1 -1
  125. package/dist/index29.js +3 -3
  126. package/dist/index31.js +8 -8
  127. package/dist/index33.js +2 -2
  128. package/dist/index35.js +2 -2
  129. package/dist/index47.js +1 -1
  130. package/dist/index49.js +1 -1
  131. package/dist/index65.js +4 -4
  132. package/dist/index69.js +2 -2
  133. package/dist/index72.js +1 -1
  134. package/dist/index75.js +1 -1
  135. package/dist/index77.js +1 -1
  136. package/dist/index79.js +4 -4
  137. package/dist/index81.js +1 -1
  138. package/dist/index99.js +112 -101
  139. package/dist/index99.js.map +1 -1
  140. package/dist/style.css +1 -1
  141. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index243.js","sources":["../node_modules/lodash.snakecase/index.js"],"sourcesContent":["/**\n * lodash (Custom Build) <https://lodash.com/>\n * Build: `lodash modularize exports=\"npm\" -o ./`\n * Copyright jQuery Foundation and other contributors <https://jquery.org/>\n * Released under MIT license <https://lodash.com/license>\n * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>\n * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors\n */\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/** Used to match words composed of alphanumeric characters. */\nvar reAsciiWord = /[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g;\n\n/** Used to match Latin Unicode letters (excluding mathematical operators). */\nvar reLatin = /[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g;\n\n/** Used to compose unicode character classes. */\nvar rsAstralRange = '\\\\ud800-\\\\udfff',\n rsComboMarksRange = '\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe23',\n rsComboSymbolsRange = '\\\\u20d0-\\\\u20f0',\n rsDingbatRange = '\\\\u2700-\\\\u27bf',\n rsLowerRange = 'a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff',\n rsMathOpRange = '\\\\xac\\\\xb1\\\\xd7\\\\xf7',\n rsNonCharRange = '\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf',\n rsPunctuationRange = '\\\\u2000-\\\\u206f',\n rsSpaceRange = ' \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000',\n rsUpperRange = 'A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde',\n rsVarRange = '\\\\ufe0e\\\\ufe0f',\n rsBreakRange = rsMathOpRange + rsNonCharRange + rsPunctuationRange + rsSpaceRange;\n\n/** Used to compose unicode capture groups. */\nvar rsApos = \"['\\u2019]\",\n rsBreak = '[' + rsBreakRange + ']',\n rsCombo = '[' + rsComboMarksRange + rsComboSymbolsRange + ']',\n rsDigits = '\\\\d+',\n rsDingbat = '[' + rsDingbatRange + ']',\n rsLower = '[' + rsLowerRange + ']',\n rsMisc = '[^' + rsAstralRange + rsBreakRange + rsDigits + rsDingbatRange + rsLowerRange + rsUpperRange + ']',\n rsFitz = '\\\\ud83c[\\\\udffb-\\\\udfff]',\n rsModifier = '(?:' + rsCombo + '|' + rsFitz + ')',\n rsNonAstral = '[^' + rsAstralRange + ']',\n rsRegional = '(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}',\n rsSurrPair = '[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]',\n rsUpper = '[' + rsUpperRange + ']',\n rsZWJ = '\\\\u200d';\n\n/** Used to compose unicode regexes. */\nvar rsLowerMisc = '(?:' + rsLower + '|' + rsMisc + ')',\n rsUpperMisc = '(?:' + rsUpper + '|' + rsMisc + ')',\n rsOptLowerContr = '(?:' + rsApos + '(?:d|ll|m|re|s|t|ve))?',\n rsOptUpperContr = '(?:' + rsApos + '(?:D|LL|M|RE|S|T|VE))?',\n reOptMod = rsModifier + '?',\n rsOptVar = '[' + rsVarRange + ']?',\n rsOptJoin = '(?:' + rsZWJ + '(?:' + [rsNonAstral, rsRegional, rsSurrPair].join('|') + ')' + rsOptVar + reOptMod + ')*',\n rsSeq = rsOptVar + reOptMod + rsOptJoin,\n rsEmoji = '(?:' + [rsDingbat, rsRegional, rsSurrPair].join('|') + ')' + rsSeq;\n\n/** Used to match apostrophes. */\nvar reApos = RegExp(rsApos, 'g');\n\n/**\n * Used to match [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks) and\n * [combining diacritical marks for symbols](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks_for_Symbols).\n */\nvar reComboMark = RegExp(rsCombo, 'g');\n\n/** Used to match complex or compound words. */\nvar reUnicodeWord = RegExp([\n rsUpper + '?' + rsLower + '+' + rsOptLowerContr + '(?=' + [rsBreak, rsUpper, '$'].join('|') + ')',\n rsUpperMisc + '+' + rsOptUpperContr + '(?=' + [rsBreak, rsUpper + rsLowerMisc, '$'].join('|') + ')',\n rsUpper + '?' + rsLowerMisc + '+' + rsOptLowerContr,\n rsUpper + '+' + rsOptUpperContr,\n rsDigits,\n rsEmoji\n].join('|'), 'g');\n\n/** Used to detect strings that need a more robust regexp to match words. */\nvar reHasUnicodeWord = /[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;\n\n/** Used to map Latin Unicode letters to basic Latin letters. */\nvar deburredLetters = {\n // Latin-1 Supplement block.\n '\\xc0': 'A', '\\xc1': 'A', '\\xc2': 'A', '\\xc3': 'A', '\\xc4': 'A', '\\xc5': 'A',\n '\\xe0': 'a', '\\xe1': 'a', '\\xe2': 'a', '\\xe3': 'a', '\\xe4': 'a', '\\xe5': 'a',\n '\\xc7': 'C', '\\xe7': 'c',\n '\\xd0': 'D', '\\xf0': 'd',\n '\\xc8': 'E', '\\xc9': 'E', '\\xca': 'E', '\\xcb': 'E',\n '\\xe8': 'e', '\\xe9': 'e', '\\xea': 'e', '\\xeb': 'e',\n '\\xcc': 'I', '\\xcd': 'I', '\\xce': 'I', '\\xcf': 'I',\n '\\xec': 'i', '\\xed': 'i', '\\xee': 'i', '\\xef': 'i',\n '\\xd1': 'N', '\\xf1': 'n',\n '\\xd2': 'O', '\\xd3': 'O', '\\xd4': 'O', '\\xd5': 'O', '\\xd6': 'O', '\\xd8': 'O',\n '\\xf2': 'o', '\\xf3': 'o', '\\xf4': 'o', '\\xf5': 'o', '\\xf6': 'o', '\\xf8': 'o',\n '\\xd9': 'U', '\\xda': 'U', '\\xdb': 'U', '\\xdc': 'U',\n '\\xf9': 'u', '\\xfa': 'u', '\\xfb': 'u', '\\xfc': 'u',\n '\\xdd': 'Y', '\\xfd': 'y', '\\xff': 'y',\n '\\xc6': 'Ae', '\\xe6': 'ae',\n '\\xde': 'Th', '\\xfe': 'th',\n '\\xdf': 'ss',\n // Latin Extended-A block.\n '\\u0100': 'A', '\\u0102': 'A', '\\u0104': 'A',\n '\\u0101': 'a', '\\u0103': 'a', '\\u0105': 'a',\n '\\u0106': 'C', '\\u0108': 'C', '\\u010a': 'C', '\\u010c': 'C',\n '\\u0107': 'c', '\\u0109': 'c', '\\u010b': 'c', '\\u010d': 'c',\n '\\u010e': 'D', '\\u0110': 'D', '\\u010f': 'd', '\\u0111': 'd',\n '\\u0112': 'E', '\\u0114': 'E', '\\u0116': 'E', '\\u0118': 'E', '\\u011a': 'E',\n '\\u0113': 'e', '\\u0115': 'e', '\\u0117': 'e', '\\u0119': 'e', '\\u011b': 'e',\n '\\u011c': 'G', '\\u011e': 'G', '\\u0120': 'G', '\\u0122': 'G',\n '\\u011d': 'g', '\\u011f': 'g', '\\u0121': 'g', '\\u0123': 'g',\n '\\u0124': 'H', '\\u0126': 'H', '\\u0125': 'h', '\\u0127': 'h',\n '\\u0128': 'I', '\\u012a': 'I', '\\u012c': 'I', '\\u012e': 'I', '\\u0130': 'I',\n '\\u0129': 'i', '\\u012b': 'i', '\\u012d': 'i', '\\u012f': 'i', '\\u0131': 'i',\n '\\u0134': 'J', '\\u0135': 'j',\n '\\u0136': 'K', '\\u0137': 'k', '\\u0138': 'k',\n '\\u0139': 'L', '\\u013b': 'L', '\\u013d': 'L', '\\u013f': 'L', '\\u0141': 'L',\n '\\u013a': 'l', '\\u013c': 'l', '\\u013e': 'l', '\\u0140': 'l', '\\u0142': 'l',\n '\\u0143': 'N', '\\u0145': 'N', '\\u0147': 'N', '\\u014a': 'N',\n '\\u0144': 'n', '\\u0146': 'n', '\\u0148': 'n', '\\u014b': 'n',\n '\\u014c': 'O', '\\u014e': 'O', '\\u0150': 'O',\n '\\u014d': 'o', '\\u014f': 'o', '\\u0151': 'o',\n '\\u0154': 'R', '\\u0156': 'R', '\\u0158': 'R',\n '\\u0155': 'r', '\\u0157': 'r', '\\u0159': 'r',\n '\\u015a': 'S', '\\u015c': 'S', '\\u015e': 'S', '\\u0160': 'S',\n '\\u015b': 's', '\\u015d': 's', '\\u015f': 's', '\\u0161': 's',\n '\\u0162': 'T', '\\u0164': 'T', '\\u0166': 'T',\n '\\u0163': 't', '\\u0165': 't', '\\u0167': 't',\n '\\u0168': 'U', '\\u016a': 'U', '\\u016c': 'U', '\\u016e': 'U', '\\u0170': 'U', '\\u0172': 'U',\n '\\u0169': 'u', '\\u016b': 'u', '\\u016d': 'u', '\\u016f': 'u', '\\u0171': 'u', '\\u0173': 'u',\n '\\u0174': 'W', '\\u0175': 'w',\n '\\u0176': 'Y', '\\u0177': 'y', '\\u0178': 'Y',\n '\\u0179': 'Z', '\\u017b': 'Z', '\\u017d': 'Z',\n '\\u017a': 'z', '\\u017c': 'z', '\\u017e': 'z',\n '\\u0132': 'IJ', '\\u0133': 'ij',\n '\\u0152': 'Oe', '\\u0153': 'oe',\n '\\u0149': \"'n\", '\\u017f': 'ss'\n};\n\n/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\n/**\n * A specialized version of `_.reduce` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {*} [accumulator] The initial value.\n * @param {boolean} [initAccum] Specify using the first element of `array` as\n * the initial value.\n * @returns {*} Returns the accumulated value.\n */\nfunction arrayReduce(array, iteratee, accumulator, initAccum) {\n var index = -1,\n length = array ? array.length : 0;\n\n if (initAccum && length) {\n accumulator = array[++index];\n }\n while (++index < length) {\n accumulator = iteratee(accumulator, array[index], index, array);\n }\n return accumulator;\n}\n\n/**\n * Splits an ASCII `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\nfunction asciiWords(string) {\n return string.match(reAsciiWord) || [];\n}\n\n/**\n * The base implementation of `_.propertyOf` without support for deep paths.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyOf(object) {\n return function(key) {\n return object == null ? undefined : object[key];\n };\n}\n\n/**\n * Used by `_.deburr` to convert Latin-1 Supplement and Latin Extended-A\n * letters to basic Latin letters.\n *\n * @private\n * @param {string} letter The matched letter to deburr.\n * @returns {string} Returns the deburred letter.\n */\nvar deburrLetter = basePropertyOf(deburredLetters);\n\n/**\n * Checks if `string` contains a word composed of Unicode symbols.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {boolean} Returns `true` if a word is found, else `false`.\n */\nfunction hasUnicodeWord(string) {\n return reHasUnicodeWord.test(string);\n}\n\n/**\n * Splits a Unicode `string` into an array of its words.\n *\n * @private\n * @param {string} The string to inspect.\n * @returns {Array} Returns the words of `string`.\n */\nfunction unicodeWords(string) {\n return string.match(reUnicodeWord) || [];\n}\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar objectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n // Exit early for strings to avoid a performance hit in some environments.\n if (typeof value == 'string') {\n return value;\n }\n if (isSymbol(value)) {\n return symbolToString ? symbolToString.call(value) : '';\n }\n var result = (value + '');\n return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\n/**\n * Creates a function like `_.camelCase`.\n *\n * @private\n * @param {Function} callback The function to combine each word.\n * @returns {Function} Returns the new compounder function.\n */\nfunction createCompounder(callback) {\n return function(string) {\n return arrayReduce(words(deburr(string).replace(reApos, '')), callback, '');\n };\n}\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n return !!value && typeof value == 'object';\n}\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n return typeof value == 'symbol' ||\n (isObjectLike(value) && objectToString.call(value) == symbolTag);\n}\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n return value == null ? '' : baseToString(value);\n}\n\n/**\n * Deburrs `string` by converting\n * [Latin-1 Supplement](https://en.wikipedia.org/wiki/Latin-1_Supplement_(Unicode_block)#Character_table)\n * and [Latin Extended-A](https://en.wikipedia.org/wiki/Latin_Extended-A)\n * letters to basic Latin letters and removing\n * [combining diacritical marks](https://en.wikipedia.org/wiki/Combining_Diacritical_Marks).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to deburr.\n * @returns {string} Returns the deburred string.\n * @example\n *\n * _.deburr('déjà vu');\n * // => 'deja vu'\n */\nfunction deburr(string) {\n string = toString(string);\n return string && string.replace(reLatin, deburrLetter).replace(reComboMark, '');\n}\n\n/**\n * Converts `string` to\n * [snake case](https://en.wikipedia.org/wiki/Snake_case).\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to convert.\n * @returns {string} Returns the snake cased string.\n * @example\n *\n * _.snakeCase('Foo Bar');\n * // => 'foo_bar'\n *\n * _.snakeCase('fooBar');\n * // => 'foo_bar'\n *\n * _.snakeCase('--FOO-BAR--');\n * // => 'foo_bar'\n */\nvar snakeCase = createCompounder(function(result, word, index) {\n return result + (index ? '_' : '') + word.toLowerCase();\n});\n\n/**\n * Splits `string` into an array of its words.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category String\n * @param {string} [string=''] The string to inspect.\n * @param {RegExp|string} [pattern] The pattern to match words.\n * @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`.\n * @returns {Array} Returns the words of `string`.\n * @example\n *\n * _.words('fred, barney, & pebbles');\n * // => ['fred', 'barney', 'pebbles']\n *\n * _.words('fred, barney, & pebbles', /[^, ]+/g);\n * // => ['fred', 'barney', '&', 'pebbles']\n */\nfunction words(string, pattern, guard) {\n string = toString(string);\n pattern = guard ? undefined : pattern;\n\n if (pattern === undefined) {\n return hasUnicodeWord(string) ? unicodeWords(string) : asciiWords(string);\n }\n return string.match(pattern) || [];\n}\n\nmodule.exports = snakeCase;\n"],"names":["INFINITY","symbolTag","reAsciiWord","reLatin","rsAstralRange","rsComboMarksRange","rsComboSymbolsRange","rsDingbatRange","rsLowerRange","rsMathOpRange","rsNonCharRange","rsPunctuationRange","rsSpaceRange","rsUpperRange","rsVarRange","rsBreakRange","rsApos","rsBreak","rsCombo","rsDigits","rsDingbat","rsLower","rsMisc","rsFitz","rsModifier","rsNonAstral","rsRegional","rsSurrPair","rsUpper","rsZWJ","rsLowerMisc","rsUpperMisc","rsOptLowerContr","rsOptUpperContr","reOptMod","rsOptVar","rsOptJoin","rsSeq","rsEmoji","reApos","reComboMark","reUnicodeWord","reHasUnicodeWord","deburredLetters","freeGlobal","global","freeSelf","root","arrayReduce","array","iteratee","accumulator","initAccum","index","length","asciiWords","string","basePropertyOf","object","key","deburrLetter","hasUnicodeWord","unicodeWords","objectProto","objectToString","Symbol","symbolProto","symbolToString","baseToString","value","isSymbol","result","createCompounder","callback","words","deburr","isObjectLike","toString","snakeCase","word","pattern","guard","lodash_snakecase"],"mappings":";AAUA,IAAIA,IAAW,OAGXC,IAAY,mBAGZC,IAAc,6CAGdC,IAAU,+CAGVC,IAAgB,mBAChBC,IAAoB,kCACpBC,IAAsB,mBACtBC,IAAiB,mBACjBC,IAAe,6BACfC,IAAgB,wBAChBC,IAAiB,gDACjBC,IAAqB,mBACrBC,IAAe,gKACfC,IAAe,6BACfC,IAAa,kBACbC,IAAeN,IAAgBC,IAAiBC,IAAqBC,GAGrEI,IAAS,QACTC,IAAU,MAAMF,IAAe,KAC/BG,IAAU,MAAMb,IAAoBC,IAAsB,KAC1Da,IAAW,QACXC,IAAY,MAAMb,IAAiB,KACnCc,IAAU,MAAMb,IAAe,KAC/Bc,IAAS,OAAOlB,IAAgBW,IAAeI,IAAWZ,IAAiBC,IAAeK,IAAe,KACzGU,IAAS,4BACTC,IAAa,QAAQN,IAAU,MAAMK,IAAS,KAC9CE,IAAc,OAAOrB,IAAgB,KACrCsB,IAAa,mCACbC,IAAa,sCACbC,IAAU,MAAMf,IAAe,KAC/BgB,IAAQ,WAGRC,IAAc,QAAQT,IAAU,MAAMC,IAAS,KAC/CS,IAAc,QAAQH,IAAU,MAAMN,IAAS,KAC/CU,IAAkB,QAAQhB,IAAS,0BACnCiB,IAAkB,QAAQjB,IAAS,0BACnCkB,IAAWV,IAAa,KACxBW,IAAW,MAAMrB,IAAa,MAC9BsB,IAAY,QAAQP,IAAQ,QAAQ,CAACJ,GAAaC,GAAYC,CAAU,EAAE,KAAK,GAAG,IAAI,MAAMQ,IAAWD,IAAW,MAClHG,IAAQF,IAAWD,IAAWE,GAC9BE,IAAU,QAAQ,CAAClB,GAAWM,GAAYC,CAAU,EAAE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+ {"version":3,"file":"index243.js","sources":["../src/components/BbToast/BbToastMessage.vue"],"sourcesContent":["<template>\n\t<div\n\t\taria-atomic=\"true\"\n\t\taria-live=\"assertive\"\n\t\taria-role=\"alert\"\n\t\tclass=\"bb-toast-message\"\n\t\t:class=\"{ [`bb-toast-message--${theme}`]: theme }\"\n\t>\n\t\t<div class=\"bb-toast-message__icon-container\">\n\t\t\t<BbIcon v-if=\"icon\" class=\"bb-alert__icon\" :type=\"icon\" />\n\t\t</div>\n\n\t\t<div class=\"bb-toast-message__content\">\n\t\t\t<p v-if=\"title\" class=\"bb-toast-message__title\">{{ title }}</p>\n\t\t\t<p class=\"bb-toast-message__text\">{{ text }}</p>\n\t\t</div>\n\t\t<div class=\"bb-toast-message__close\">\n\t\t\t<BaseButton\n\t\t\t\tv-if=\"showClose\"\n\t\t\t\t:aria-label=\"'Chiudi'\"\n\t\t\t\tblock\n\t\t\t\tclass=\"bb-toast-message__close-btn\"\n\t\t\t\t@click=\"onClickClose\"\n\t\t\t>\n\t\t\t\t<svg fill=\"none\" viewBox=\"0 0 24 24\" xmlns=\"http://www.w3.org/2000/svg\">\n\t\t\t\t\t<path\n\t\t\t\t\t\td=\"M23 23L1 1M23 1L1 23\"\n\t\t\t\t\t\tstroke=\"currentColor\"\n\t\t\t\t\t\tstroke-linecap=\"round\"\n\t\t\t\t\t\tstroke-width=\"2\"\n\t\t\t\t\t/>\n\t\t\t\t</svg>\n\t\t\t</BaseButton>\n\t\t</div>\n\t</div>\n</template>\n\n<script setup lang=\"ts\">\nimport type { Message } from '../../composables/useToast';\nimport BaseButton from '../BaseButton/BaseButton.vue';\nimport BbIcon from '../BbIcon/BbIcon.vue';\n\nconst props = withDefaults(defineProps<Message>(), {\n\ttheme: 'default',\n});\ntype BbToastMessageEvents = {\n\t(e: 'click:close', id: Message['id']): void;\n};\nconst emit = defineEmits<BbToastMessageEvents>();\n\nconst onClickClose = () => {\n\temit('click:close', props.id);\n};\n</script>\n\n<style scoped></style>\n"],"names":["props","__props","emit","__emit","onClickClose"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0CA,UAAMA,IAAQC,GAMRC,IAAOC,GAEPC,IAAe,MAAM;AACrB,MAAAF,EAAA,eAAeF,EAAM,EAAE;AAAA,IAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
package/dist/index245.js CHANGED
@@ -1,109 +1,438 @@
1
- function l(n) {
2
- return a(n) ? (n.nodeName || "").toLowerCase() : "#document";
3
- }
4
- function i(n) {
5
- var t;
6
- return (n == null || (t = n.ownerDocument) == null ? void 0 : t.defaultView) || window;
7
- }
8
- function y(n) {
9
- var t;
10
- return (t = (a(n) ? n.ownerDocument : n.document) || window.document) == null ? void 0 : t.documentElement;
11
- }
12
- function a(n) {
13
- return n instanceof Node || n instanceof i(n).Node;
14
- }
15
- function S(n) {
16
- return n instanceof Element || n instanceof i(n).Element;
17
- }
18
- function d(n) {
19
- return n instanceof HTMLElement || n instanceof i(n).HTMLElement;
20
- }
21
- function s(n) {
22
- return typeof ShadowRoot > "u" ? !1 : n instanceof ShadowRoot || n instanceof i(n).ShadowRoot;
23
- }
24
- function m(n) {
25
- const {
26
- overflow: t,
27
- overflowX: e,
28
- overflowY: o,
29
- display: r
30
- } = p(n);
31
- return /auto|scroll|overlay|hidden|clip/.test(t + o + e) && !["inline", "contents"].includes(r);
32
- }
33
- function E(n) {
34
- return ["table", "td", "th"].includes(l(n));
35
- }
36
- function N(n) {
37
- const t = h(), e = p(n);
38
- return e.transform !== "none" || e.perspective !== "none" || (e.containerType ? e.containerType !== "normal" : !1) || !t && (e.backdropFilter ? e.backdropFilter !== "none" : !1) || !t && (e.filter ? e.filter !== "none" : !1) || ["transform", "perspective", "filter"].some((o) => (e.willChange || "").includes(o)) || ["paint", "layout", "strict", "content"].some((o) => (e.contain || "").includes(o));
1
+ import { isFocusable as G, tabbable as te, focusable as ae, isTabbable as T, getTabIndex as K } from "./index249.js";
2
+ /*!
3
+ * focus-trap 7.5.4
4
+ * @license MIT, https://github.com/focus-trap/focus-trap/blob/master/LICENSE
5
+ */
6
+ function z(u, a) {
7
+ var o = Object.keys(u);
8
+ if (Object.getOwnPropertySymbols) {
9
+ var i = Object.getOwnPropertySymbols(u);
10
+ a && (i = i.filter(function(m) {
11
+ return Object.getOwnPropertyDescriptor(u, m).enumerable;
12
+ })), o.push.apply(o, i);
13
+ }
14
+ return o;
39
15
  }
40
- function T(n) {
41
- let t = u(n);
42
- for (; d(t) && !w(t); ) {
43
- if (N(t))
44
- return t;
45
- t = u(t);
16
+ function J(u) {
17
+ for (var a = 1; a < arguments.length; a++) {
18
+ var o = arguments[a] != null ? arguments[a] : {};
19
+ a % 2 ? z(Object(o), !0).forEach(function(i) {
20
+ ne(u, i, o[i]);
21
+ }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(u, Object.getOwnPropertyDescriptors(o)) : z(Object(o)).forEach(function(i) {
22
+ Object.defineProperty(u, i, Object.getOwnPropertyDescriptor(o, i));
23
+ });
46
24
  }
47
- return null;
25
+ return u;
48
26
  }
49
- function h() {
50
- return typeof CSS > "u" || !CSS.supports ? !1 : CSS.supports("-webkit-backdrop-filter", "none");
27
+ function ne(u, a, o) {
28
+ return a = ie(a), a in u ? Object.defineProperty(u, a, {
29
+ value: o,
30
+ enumerable: !0,
31
+ configurable: !0,
32
+ writable: !0
33
+ }) : u[a] = o, u;
51
34
  }
52
- function w(n) {
53
- return ["html", "body", "#document"].includes(l(n));
35
+ function re(u, a) {
36
+ if (typeof u != "object" || u === null)
37
+ return u;
38
+ var o = u[Symbol.toPrimitive];
39
+ if (o !== void 0) {
40
+ var i = o.call(u, a || "default");
41
+ if (typeof i != "object")
42
+ return i;
43
+ throw new TypeError("@@toPrimitive must return a primitive value.");
44
+ }
45
+ return (a === "string" ? String : Number)(u);
54
46
  }
55
- function p(n) {
56
- return i(n).getComputedStyle(n);
47
+ function ie(u) {
48
+ var a = re(u, "string");
49
+ return typeof a == "symbol" ? a : String(a);
57
50
  }
58
- function C(n) {
59
- return S(n) ? {
60
- scrollLeft: n.scrollLeft,
61
- scrollTop: n.scrollTop
62
- } : {
63
- scrollLeft: n.pageXOffset,
64
- scrollTop: n.pageYOffset
51
+ var Q = {
52
+ activateTrap: function(a, o) {
53
+ if (a.length > 0) {
54
+ var i = a[a.length - 1];
55
+ i !== o && i.pause();
56
+ }
57
+ var m = a.indexOf(o);
58
+ m === -1 || a.splice(m, 1), a.push(o);
59
+ },
60
+ deactivateTrap: function(a, o) {
61
+ var i = a.indexOf(o);
62
+ i !== -1 && a.splice(i, 1), a.length > 0 && a[a.length - 1].unpause();
63
+ }
64
+ }, oe = function(a) {
65
+ return a.tagName && a.tagName.toLowerCase() === "input" && typeof a.select == "function";
66
+ }, ue = function(a) {
67
+ return (a == null ? void 0 : a.key) === "Escape" || (a == null ? void 0 : a.key) === "Esc" || (a == null ? void 0 : a.keyCode) === 27;
68
+ }, L = function(a) {
69
+ return (a == null ? void 0 : a.key) === "Tab" || (a == null ? void 0 : a.keyCode) === 9;
70
+ }, se = function(a) {
71
+ return L(a) && !a.shiftKey;
72
+ }, ce = function(a) {
73
+ return L(a) && a.shiftKey;
74
+ }, W = function(a) {
75
+ return setTimeout(a, 0);
76
+ }, X = function(a, o) {
77
+ var i = -1;
78
+ return a.every(function(m, s) {
79
+ return o(m) ? (i = s, !1) : !0;
80
+ }), i;
81
+ }, B = function(a) {
82
+ for (var o = arguments.length, i = new Array(o > 1 ? o - 1 : 0), m = 1; m < o; m++)
83
+ i[m - 1] = arguments[m];
84
+ return typeof a == "function" ? a.apply(void 0, i) : a;
85
+ }, C = function(a) {
86
+ return a.target.shadowRoot && typeof a.composedPath == "function" ? a.composedPath()[0] : a.target;
87
+ }, le = [], de = function(a, o) {
88
+ var i = (o == null ? void 0 : o.document) || document, m = (o == null ? void 0 : o.trapStack) || le, s = J({
89
+ returnFocusOnDeactivate: !0,
90
+ escapeDeactivates: !0,
91
+ delayInitialFocus: !0,
92
+ isKeyForward: se,
93
+ isKeyBackward: ce
94
+ }, o), n = {
95
+ // containers given to createFocusTrap()
96
+ // @type {Array<HTMLElement>}
97
+ containers: [],
98
+ // list of objects identifying tabbable nodes in `containers` in the trap
99
+ // NOTE: it's possible that a group has no tabbable nodes if nodes get removed while the trap
100
+ // is active, but the trap should never get to a state where there isn't at least one group
101
+ // with at least one tabbable node in it (that would lead to an error condition that would
102
+ // result in an error being thrown)
103
+ // @type {Array<{
104
+ // container: HTMLElement,
105
+ // tabbableNodes: Array<HTMLElement>, // empty if none
106
+ // focusableNodes: Array<HTMLElement>, // empty if none
107
+ // posTabIndexesFound: boolean,
108
+ // firstTabbableNode: HTMLElement|undefined,
109
+ // lastTabbableNode: HTMLElement|undefined,
110
+ // firstDomTabbableNode: HTMLElement|undefined,
111
+ // lastDomTabbableNode: HTMLElement|undefined,
112
+ // nextTabbableNode: (node: HTMLElement, forward: boolean) => HTMLElement|undefined
113
+ // }>}
114
+ containerGroups: [],
115
+ // same order/length as `containers` list
116
+ // references to objects in `containerGroups`, but only those that actually have
117
+ // tabbable nodes in them
118
+ // NOTE: same order as `containers` and `containerGroups`, but __not necessarily__
119
+ // the same length
120
+ tabbableGroups: [],
121
+ nodeFocusedBeforeActivation: null,
122
+ mostRecentlyFocusedNode: null,
123
+ active: !1,
124
+ paused: !1,
125
+ // timer ID for when delayInitialFocus is true and initial focus in this trap
126
+ // has been delayed during activation
127
+ delayInitialFocusTimer: void 0,
128
+ // the most recent KeyboardEvent for the configured nav key (typically [SHIFT+]TAB), if any
129
+ recentNavEvent: void 0
130
+ }, g, h = function(t, e, r) {
131
+ return t && t[e] !== void 0 ? t[e] : s[r || e];
132
+ }, F = function(t, e) {
133
+ var r = typeof (e == null ? void 0 : e.composedPath) == "function" ? e.composedPath() : void 0;
134
+ return n.containerGroups.findIndex(function(c) {
135
+ var l = c.container, d = c.tabbableNodes;
136
+ return l.contains(t) || // fall back to explicit tabbable search which will take into consideration any
137
+ // web components if the `tabbableOptions.getShadowRoot` option was used for
138
+ // the trap, enabling shadow DOM support in tabbable (`Node.contains()` doesn't
139
+ // look inside web components even if open)
140
+ (r == null ? void 0 : r.includes(l)) || d.find(function(v) {
141
+ return v === t;
142
+ });
143
+ });
144
+ }, E = function(t) {
145
+ var e = s[t];
146
+ if (typeof e == "function") {
147
+ for (var r = arguments.length, c = new Array(r > 1 ? r - 1 : 0), l = 1; l < r; l++)
148
+ c[l - 1] = arguments[l];
149
+ e = e.apply(void 0, c);
150
+ }
151
+ if (e === !0 && (e = void 0), !e) {
152
+ if (e === void 0 || e === !1)
153
+ return e;
154
+ throw new Error("`".concat(t, "` was specified but was not a node, or did not return a node"));
155
+ }
156
+ var d = e;
157
+ if (typeof e == "string" && (d = i.querySelector(e), !d))
158
+ throw new Error("`".concat(t, "` as selector refers to no known node"));
159
+ return d;
160
+ }, P = function() {
161
+ var t = E("initialFocus");
162
+ if (t === !1)
163
+ return !1;
164
+ if (t === void 0 || !G(t, s.tabbableOptions))
165
+ if (F(i.activeElement) >= 0)
166
+ t = i.activeElement;
167
+ else {
168
+ var e = n.tabbableGroups[0], r = e && e.firstTabbableNode;
169
+ t = r || E("fallbackFocus");
170
+ }
171
+ if (!t)
172
+ throw new Error("Your focus-trap needs to have at least one focusable element");
173
+ return t;
174
+ }, D = function() {
175
+ if (n.containerGroups = n.containers.map(function(t) {
176
+ var e = te(t, s.tabbableOptions), r = ae(t, s.tabbableOptions), c = e.length > 0 ? e[0] : void 0, l = e.length > 0 ? e[e.length - 1] : void 0, d = r.find(function(b) {
177
+ return T(b);
178
+ }), v = r.slice().reverse().find(function(b) {
179
+ return T(b);
180
+ }), p = !!e.find(function(b) {
181
+ return K(b) > 0;
182
+ });
183
+ return {
184
+ container: t,
185
+ tabbableNodes: e,
186
+ focusableNodes: r,
187
+ /** True if at least one node with positive `tabindex` was found in this container. */
188
+ posTabIndexesFound: p,
189
+ /** First tabbable node in container, __tabindex__ order; `undefined` if none. */
190
+ firstTabbableNode: c,
191
+ /** Last tabbable node in container, __tabindex__ order; `undefined` if none. */
192
+ lastTabbableNode: l,
193
+ // NOTE: DOM order is NOT NECESSARILY "document position" order, but figuring that out
194
+ // would require more than just https://developer.mozilla.org/en-US/docs/Web/API/Node/compareDocumentPosition
195
+ // because that API doesn't work with Shadow DOM as well as it should (@see
196
+ // https://github.com/whatwg/dom/issues/320) and since this first/last is only needed, so far,
197
+ // to address an edge case related to positive tabindex support, this seems like a much easier,
198
+ // "close enough most of the time" alternative for positive tabindexes which should generally
199
+ // be avoided anyway...
200
+ /** First tabbable node in container, __DOM__ order; `undefined` if none. */
201
+ firstDomTabbableNode: d,
202
+ /** Last tabbable node in container, __DOM__ order; `undefined` if none. */
203
+ lastDomTabbableNode: v,
204
+ /**
205
+ * Finds the __tabbable__ node that follows the given node in the specified direction,
206
+ * in this container, if any.
207
+ * @param {HTMLElement} node
208
+ * @param {boolean} [forward] True if going in forward tab order; false if going
209
+ * in reverse.
210
+ * @returns {HTMLElement|undefined} The next tabbable node, if any.
211
+ */
212
+ nextTabbableNode: function(N) {
213
+ var O = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !0, y = e.indexOf(N);
214
+ return y < 0 ? O ? r.slice(r.indexOf(N) + 1).find(function(R) {
215
+ return T(R);
216
+ }) : r.slice(0, r.indexOf(N)).reverse().find(function(R) {
217
+ return T(R);
218
+ }) : e[y + (O ? 1 : -1)];
219
+ }
220
+ };
221
+ }), n.tabbableGroups = n.containerGroups.filter(function(t) {
222
+ return t.tabbableNodes.length > 0;
223
+ }), n.tabbableGroups.length <= 0 && !E("fallbackFocus"))
224
+ throw new Error("Your focus-trap must have at least one container with at least one tabbable node in it at all times");
225
+ if (n.containerGroups.find(function(t) {
226
+ return t.posTabIndexesFound;
227
+ }) && n.containerGroups.length > 1)
228
+ throw new Error("At least one node with a positive tabindex was found in one of your focus-trap's multiple containers. Positive tabindexes are only supported in single-container focus-traps.");
229
+ }, Z = function f(t) {
230
+ var e = t.activeElement;
231
+ if (e)
232
+ return e.shadowRoot && e.shadowRoot.activeElement !== null ? f(e.shadowRoot) : e;
233
+ }, w = function f(t) {
234
+ if (t !== !1 && t !== Z(document)) {
235
+ if (!t || !t.focus) {
236
+ f(P());
237
+ return;
238
+ }
239
+ t.focus({
240
+ preventScroll: !!s.preventScroll
241
+ }), n.mostRecentlyFocusedNode = t, oe(t) && t.select();
242
+ }
243
+ }, S = function(t) {
244
+ var e = E("setReturnFocus", t);
245
+ return e || (e === !1 ? !1 : t);
246
+ }, U = function(t) {
247
+ var e = t.target, r = t.event, c = t.isBackward, l = c === void 0 ? !1 : c;
248
+ e = e || C(r), D();
249
+ var d = null;
250
+ if (n.tabbableGroups.length > 0) {
251
+ var v = F(e, r), p = v >= 0 ? n.containerGroups[v] : void 0;
252
+ if (v < 0)
253
+ l ? d = n.tabbableGroups[n.tabbableGroups.length - 1].lastTabbableNode : d = n.tabbableGroups[0].firstTabbableNode;
254
+ else if (l) {
255
+ var b = X(n.tabbableGroups, function(I) {
256
+ var x = I.firstTabbableNode;
257
+ return e === x;
258
+ });
259
+ if (b < 0 && (p.container === e || G(e, s.tabbableOptions) && !T(e, s.tabbableOptions) && !p.nextTabbableNode(e, !1)) && (b = v), b >= 0) {
260
+ var N = b === 0 ? n.tabbableGroups.length - 1 : b - 1, O = n.tabbableGroups[N];
261
+ d = K(e) >= 0 ? O.lastTabbableNode : O.lastDomTabbableNode;
262
+ } else
263
+ L(r) || (d = p.nextTabbableNode(e, !1));
264
+ } else {
265
+ var y = X(n.tabbableGroups, function(I) {
266
+ var x = I.lastTabbableNode;
267
+ return e === x;
268
+ });
269
+ if (y < 0 && (p.container === e || G(e, s.tabbableOptions) && !T(e, s.tabbableOptions) && !p.nextTabbableNode(e)) && (y = v), y >= 0) {
270
+ var R = y === n.tabbableGroups.length - 1 ? 0 : y + 1, $ = n.tabbableGroups[R];
271
+ d = K(e) >= 0 ? $.firstTabbableNode : $.firstDomTabbableNode;
272
+ } else
273
+ L(r) || (d = p.nextTabbableNode(e));
274
+ }
275
+ } else
276
+ d = E("fallbackFocus");
277
+ return d;
278
+ }, A = function(t) {
279
+ var e = C(t);
280
+ if (!(F(e, t) >= 0)) {
281
+ if (B(s.clickOutsideDeactivates, t)) {
282
+ g.deactivate({
283
+ // NOTE: by setting `returnFocus: false`, deactivate() will do nothing,
284
+ // which will result in the outside click setting focus to the node
285
+ // that was clicked (and if not focusable, to "nothing"); by setting
286
+ // `returnFocus: true`, we'll attempt to re-focus the node originally-focused
287
+ // on activation (or the configured `setReturnFocus` node), whether the
288
+ // outside click was on a focusable node or not
289
+ returnFocus: s.returnFocusOnDeactivate
290
+ });
291
+ return;
292
+ }
293
+ B(s.allowOutsideClick, t) || t.preventDefault();
294
+ }
295
+ }, q = function(t) {
296
+ var e = C(t), r = F(e, t) >= 0;
297
+ if (r || e instanceof Document)
298
+ r && (n.mostRecentlyFocusedNode = e);
299
+ else {
300
+ t.stopImmediatePropagation();
301
+ var c, l = !0;
302
+ if (n.mostRecentlyFocusedNode)
303
+ if (K(n.mostRecentlyFocusedNode) > 0) {
304
+ var d = F(n.mostRecentlyFocusedNode), v = n.containerGroups[d].tabbableNodes;
305
+ if (v.length > 0) {
306
+ var p = v.findIndex(function(b) {
307
+ return b === n.mostRecentlyFocusedNode;
308
+ });
309
+ p >= 0 && (s.isKeyForward(n.recentNavEvent) ? p + 1 < v.length && (c = v[p + 1], l = !1) : p - 1 >= 0 && (c = v[p - 1], l = !1));
310
+ }
311
+ } else
312
+ n.containerGroups.some(function(b) {
313
+ return b.tabbableNodes.some(function(N) {
314
+ return K(N) > 0;
315
+ });
316
+ }) || (l = !1);
317
+ else
318
+ l = !1;
319
+ l && (c = U({
320
+ // move FROM the MRU node, not event-related node (which will be the node that is
321
+ // outside the trap causing the focus escape we're trying to fix)
322
+ target: n.mostRecentlyFocusedNode,
323
+ isBackward: s.isKeyBackward(n.recentNavEvent)
324
+ })), w(c || n.mostRecentlyFocusedNode || P());
325
+ }
326
+ n.recentNavEvent = void 0;
327
+ }, _ = function(t) {
328
+ var e = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : !1;
329
+ n.recentNavEvent = t;
330
+ var r = U({
331
+ event: t,
332
+ isBackward: e
333
+ });
334
+ r && (L(t) && t.preventDefault(), w(r));
335
+ }, H = function(t) {
336
+ if (ue(t) && B(s.escapeDeactivates, t) !== !1) {
337
+ t.preventDefault(), g.deactivate();
338
+ return;
339
+ }
340
+ (s.isKeyForward(t) || s.isKeyBackward(t)) && _(t, s.isKeyBackward(t));
341
+ }, M = function(t) {
342
+ var e = C(t);
343
+ F(e, t) >= 0 || B(s.clickOutsideDeactivates, t) || B(s.allowOutsideClick, t) || (t.preventDefault(), t.stopImmediatePropagation());
344
+ }, Y = function() {
345
+ if (n.active)
346
+ return Q.activateTrap(m, g), n.delayInitialFocusTimer = s.delayInitialFocus ? W(function() {
347
+ w(P());
348
+ }) : w(P()), i.addEventListener("focusin", q, !0), i.addEventListener("mousedown", A, {
349
+ capture: !0,
350
+ passive: !1
351
+ }), i.addEventListener("touchstart", A, {
352
+ capture: !0,
353
+ passive: !1
354
+ }), i.addEventListener("click", M, {
355
+ capture: !0,
356
+ passive: !1
357
+ }), i.addEventListener("keydown", H, {
358
+ capture: !0,
359
+ passive: !1
360
+ }), g;
361
+ }, V = function() {
362
+ if (n.active)
363
+ return i.removeEventListener("focusin", q, !0), i.removeEventListener("mousedown", A, !0), i.removeEventListener("touchstart", A, !0), i.removeEventListener("click", M, !0), i.removeEventListener("keydown", H, !0), g;
364
+ }, ee = function(t) {
365
+ var e = t.some(function(r) {
366
+ var c = Array.from(r.removedNodes);
367
+ return c.some(function(l) {
368
+ return l === n.mostRecentlyFocusedNode;
369
+ });
370
+ });
371
+ e && w(P());
372
+ }, j = typeof window < "u" && "MutationObserver" in window ? new MutationObserver(ee) : void 0, k = function() {
373
+ j && (j.disconnect(), n.active && !n.paused && n.containers.map(function(t) {
374
+ j.observe(t, {
375
+ subtree: !0,
376
+ childList: !0
377
+ });
378
+ }));
65
379
  };
66
- }
67
- function u(n) {
68
- if (l(n) === "html")
69
- return n;
70
- const t = (
71
- // Step into the shadow DOM of the parent of a slotted node.
72
- n.assignedSlot || // DOM Element detected.
73
- n.parentNode || // ShadowRoot detected.
74
- s(n) && n.host || // Fallback.
75
- y(n)
76
- );
77
- return s(t) ? t.host : t;
78
- }
79
- function g(n) {
80
- const t = u(n);
81
- return w(t) ? n.ownerDocument ? n.ownerDocument.body : n.body : d(t) && m(t) ? t : g(t);
82
- }
83
- function f(n, t, e) {
84
- var o;
85
- t === void 0 && (t = []), e === void 0 && (e = !0);
86
- const r = g(n), b = r === ((o = n.ownerDocument) == null ? void 0 : o.body), c = i(r);
87
- return b ? t.concat(c, c.visualViewport || [], m(r) ? r : [], c.frameElement && e ? f(c.frameElement) : []) : t.concat(r, f(r, [], e));
88
- }
380
+ return g = {
381
+ get active() {
382
+ return n.active;
383
+ },
384
+ get paused() {
385
+ return n.paused;
386
+ },
387
+ activate: function(t) {
388
+ if (n.active)
389
+ return this;
390
+ var e = h(t, "onActivate"), r = h(t, "onPostActivate"), c = h(t, "checkCanFocusTrap");
391
+ c || D(), n.active = !0, n.paused = !1, n.nodeFocusedBeforeActivation = i.activeElement, e == null || e();
392
+ var l = function() {
393
+ c && D(), Y(), k(), r == null || r();
394
+ };
395
+ return c ? (c(n.containers.concat()).then(l, l), this) : (l(), this);
396
+ },
397
+ deactivate: function(t) {
398
+ if (!n.active)
399
+ return this;
400
+ var e = J({
401
+ onDeactivate: s.onDeactivate,
402
+ onPostDeactivate: s.onPostDeactivate,
403
+ checkCanReturnFocus: s.checkCanReturnFocus
404
+ }, t);
405
+ clearTimeout(n.delayInitialFocusTimer), n.delayInitialFocusTimer = void 0, V(), n.active = !1, n.paused = !1, k(), Q.deactivateTrap(m, g);
406
+ var r = h(e, "onDeactivate"), c = h(e, "onPostDeactivate"), l = h(e, "checkCanReturnFocus"), d = h(e, "returnFocus", "returnFocusOnDeactivate");
407
+ r == null || r();
408
+ var v = function() {
409
+ W(function() {
410
+ d && w(S(n.nodeFocusedBeforeActivation)), c == null || c();
411
+ });
412
+ };
413
+ return d && l ? (l(S(n.nodeFocusedBeforeActivation)).then(v, v), this) : (v(), this);
414
+ },
415
+ pause: function(t) {
416
+ if (n.paused || !n.active)
417
+ return this;
418
+ var e = h(t, "onPause"), r = h(t, "onPostPause");
419
+ return n.paused = !0, e == null || e(), V(), k(), r == null || r(), this;
420
+ },
421
+ unpause: function(t) {
422
+ if (!n.paused || !n.active)
423
+ return this;
424
+ var e = h(t, "onUnpause"), r = h(t, "onPostUnpause");
425
+ return n.paused = !1, e == null || e(), D(), Y(), k(), r == null || r(), this;
426
+ },
427
+ updateContainerElements: function(t) {
428
+ var e = [].concat(t).filter(Boolean);
429
+ return n.containers = e.map(function(r) {
430
+ return typeof r == "string" ? i.querySelector(r) : r;
431
+ }), n.active && D(), k(), this;
432
+ }
433
+ }, g.updateContainerElements(a), g;
434
+ };
89
435
  export {
90
- p as getComputedStyle,
91
- T as getContainingBlock,
92
- y as getDocumentElement,
93
- g as getNearestOverflowAncestor,
94
- l as getNodeName,
95
- C as getNodeScroll,
96
- f as getOverflowAncestors,
97
- u as getParentNode,
98
- i as getWindow,
99
- N as isContainingBlock,
100
- S as isElement,
101
- d as isHTMLElement,
102
- w as isLastTraversableNode,
103
- a as isNode,
104
- m as isOverflowElement,
105
- s as isShadowRoot,
106
- E as isTableElement,
107
- h as isWebKit
436
+ de as createFocusTrap
108
437
  };
109
438
  //# sourceMappingURL=index245.js.map