ably-ui 8.7.0.dev.7072b07 → 8.7.0.dev.7456b53

Sign up to get free protection for your applications and to get access to all the features.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +6 -6
  3. data/README.md +3 -7
  4. data/lib/ably_ui/core/code/component.css +0 -2
  5. data/lib/ably_ui/core/code/component.js +1 -739
  6. data/lib/ably_ui/core/company_autocomplete/component.css +0 -2
  7. data/lib/ably_ui/core/company_autocomplete/component.js +1 -1161
  8. data/lib/ably_ui/core/connect_state_wrapper/component.js +1 -22
  9. data/lib/ably_ui/core/contact_footer/component.css +0 -2
  10. data/lib/ably_ui/core/contact_footer/component.js +1 -211
  11. data/lib/ably_ui/core/cookie_message/component.css +0 -2
  12. data/lib/ably_ui/core/cookie_message/component.js +1 -82
  13. data/lib/ably_ui/core/core.rb +4 -8
  14. data/lib/ably_ui/core/customer_logos/component.js +1 -22
  15. data/lib/ably_ui/core/dropdown_menu/component.js +1 -22
  16. data/lib/ably_ui/core/feature_footer/component.css +0 -2
  17. data/lib/ably_ui/core/feature_footer/component.js +1 -211
  18. data/lib/ably_ui/core/featured_link/component.css +0 -2
  19. data/lib/ably_ui/core/featured_link/component.js +1 -82
  20. data/lib/ably_ui/core/flash/component.css +0 -2
  21. data/lib/ably_ui/core/flash/component.js +1 -82
  22. data/lib/ably_ui/core/footer/component.css +1 -3
  23. data/lib/ably_ui/core/footer/component.js +1 -82
  24. data/lib/ably_ui/core/footer/footer.html.erb +23 -18
  25. data/lib/ably_ui/core/icon/component.js +1 -22
  26. data/lib/ably_ui/core/loader/component.js +1 -22
  27. data/lib/ably_ui/core/logo/component.js +1 -22
  28. data/lib/ably_ui/core/meganav/component.css +3 -3
  29. data/lib/ably_ui/core/meganav/component.js +1 -992
  30. data/lib/ably_ui/core/meganav/component.json +1 -1
  31. data/lib/ably_ui/core/meganav/meganav.rb +4 -4
  32. data/lib/ably_ui/core/meganav_blog_posts_list/component.js +1 -1159
  33. data/lib/ably_ui/core/meganav_content_company/component.js +1 -22
  34. data/lib/ably_ui/core/meganav_content_company/meganav_content_company.html.erb +0 -9
  35. data/lib/ably_ui/core/meganav_content_developers/component.js +1 -22
  36. data/lib/ably_ui/core/meganav_content_developers/meganav_content_developers.html.erb +2 -18
  37. data/lib/ably_ui/core/meganav_content_platform/component.js +1 -0
  38. data/lib/ably_ui/core/{meganav_content_products/meganav_content_products.html.erb → meganav_content_platform/meganav_content_platform.html.erb} +33 -15
  39. data/lib/ably_ui/core/{meganav_content_products/meganav_content_products.rb → meganav_content_platform/meganav_content_platform.rb} +1 -1
  40. data/lib/ably_ui/core/meganav_content_use_cases/component.js +1 -22
  41. data/lib/ably_ui/core/meganav_content_use_cases/meganav_content_use_cases.html.erb +38 -42
  42. data/lib/ably_ui/core/meganav_control/component.js +1 -241
  43. data/lib/ably_ui/core/meganav_control_mobile_dropdown/component.js +1 -180
  44. data/lib/ably_ui/core/meganav_control_mobile_panel_close/component.js +1 -142
  45. data/lib/ably_ui/core/meganav_control_mobile_panel_open/component.js +1 -170
  46. data/lib/ably_ui/core/meganav_items_desktop/component.js +1 -22
  47. data/lib/ably_ui/core/meganav_items_desktop/meganav_items_desktop.rb +1 -1
  48. data/lib/ably_ui/core/meganav_items_mobile/component.js +1 -22
  49. data/lib/ably_ui/core/meganav_items_signed_in/component.js +1 -22
  50. data/lib/ably_ui/core/meganav_search/component.js +1 -22
  51. data/lib/ably_ui/core/meganav_search_autocomplete/component.js +1 -295
  52. data/lib/ably_ui/core/meganav_search_panel/component.js +1 -22
  53. data/lib/ably_ui/core/meganav_search_suggestions/component.js +1 -258
  54. data/lib/ably_ui/core/notice/component.css +0 -2
  55. data/lib/ably_ui/core/notice/component.js +1 -872
  56. data/lib/ably_ui/core/scripts.js +1 -1465
  57. data/lib/ably_ui/core/showcase/component.css +0 -2
  58. data/lib/ably_ui/core/showcase/component.js +1 -343
  59. data/lib/ably_ui/core/sign_out_link/component.js +1 -22
  60. data/lib/ably_ui/core/slider/component.css +0 -2
  61. data/lib/ably_ui/core/slider/component.js +1 -255
  62. data/lib/ably_ui/core/sprites.svg +0 -93
  63. data/lib/ably_ui/core/styles.css +7 -3
  64. data/lib/ably_ui/core/uptime/component.css +0 -2
  65. data/lib/ably_ui/core/uptime/component.js +1 -82
  66. data/lib/ably_ui/reset/scripts.js +1 -1
  67. data/lib/ably_ui/reset/styles.css +11 -1
  68. data/lib/ably_ui/version.rb +1 -1
  69. metadata +5 -9
  70. data/lib/ably_ui/core/images/best-support-2023.svg +0 -1
  71. data/lib/ably_ui/core/images/fastest-implementation-2023.svg +0 -1
  72. data/lib/ably_ui/core/images/high-performer-2023.svg +0 -1
  73. data/lib/ably_ui/core/images/highest-user-adoption-2023.svg +0 -1
  74. data/lib/ably_ui/core/meganav_content_products/component.js +0 -22
@@ -1,180 +1 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory(require("scroll-lock"));
4
- else if(typeof define === 'function' && define.amd)
5
- define([], factory);
6
- else if(typeof exports === 'object')
7
- exports["AblyUi"] = factory(require("scroll-lock"));
8
- else
9
- root["AblyUi"] = root["AblyUi"] || {}, root["AblyUi"]["Core"] = root["AblyUi"]["Core"] || {}, root["AblyUi"]["Core"]["MeganavControlMobileDropdown"] = factory(root[undefined]);
10
- })(this, (__WEBPACK_EXTERNAL_MODULE_scroll_lock__) => {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ "use strict";
13
- /******/ var __webpack_modules__ = ({
14
-
15
- /***/ "./src/core/dom-query.js":
16
- /*!*******************************!*\
17
- !*** ./src/core/dom-query.js ***!
18
- \*******************************/
19
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
20
-
21
- __webpack_require__.r(__webpack_exports__);
22
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23
- /* harmony export */ "queryId": () => (/* binding */ queryId),
24
- /* harmony export */ "queryIdAll": () => (/* binding */ queryIdAll)
25
- /* harmony export */ });
26
- var queryId = function queryId(val) {
27
- var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
28
- return root.querySelector("[data-id=".concat(val, "]"));
29
- };
30
- var queryIdAll = function queryIdAll(val) {
31
- var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
32
- return root.querySelectorAll("[data-id=".concat(val, "]"));
33
- };
34
-
35
- /***/ }),
36
-
37
- /***/ "scroll-lock":
38
- /*!*********************************************************************!*\
39
- !*** external {"commonjs":"scroll-lock","commonjs2":"scroll-lock"} ***!
40
- \*********************************************************************/
41
- /***/ ((module) => {
42
-
43
- module.exports = __WEBPACK_EXTERNAL_MODULE_scroll_lock__;
44
-
45
- /***/ })
46
-
47
- /******/ });
48
- /************************************************************************/
49
- /******/ // The module cache
50
- /******/ var __webpack_module_cache__ = {};
51
- /******/
52
- /******/ // The require function
53
- /******/ function __webpack_require__(moduleId) {
54
- /******/ // Check if module is in cache
55
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
56
- /******/ if (cachedModule !== undefined) {
57
- /******/ return cachedModule.exports;
58
- /******/ }
59
- /******/ // Create a new module (and put it into the cache)
60
- /******/ var module = __webpack_module_cache__[moduleId] = {
61
- /******/ // no module.id needed
62
- /******/ // no module.loaded needed
63
- /******/ exports: {}
64
- /******/ };
65
- /******/
66
- /******/ // Execute the module function
67
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
68
- /******/
69
- /******/ // Return the exports of the module
70
- /******/ return module.exports;
71
- /******/ }
72
- /******/
73
- /************************************************************************/
74
- /******/ /* webpack/runtime/compat get default export */
75
- /******/ (() => {
76
- /******/ // getDefaultExport function for compatibility with non-harmony modules
77
- /******/ __webpack_require__.n = (module) => {
78
- /******/ var getter = module && module.__esModule ?
79
- /******/ () => (module['default']) :
80
- /******/ () => (module);
81
- /******/ __webpack_require__.d(getter, { a: getter });
82
- /******/ return getter;
83
- /******/ };
84
- /******/ })();
85
- /******/
86
- /******/ /* webpack/runtime/define property getters */
87
- /******/ (() => {
88
- /******/ // define getter functions for harmony exports
89
- /******/ __webpack_require__.d = (exports, definition) => {
90
- /******/ for(var key in definition) {
91
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
92
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
93
- /******/ }
94
- /******/ }
95
- /******/ };
96
- /******/ })();
97
- /******/
98
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
99
- /******/ (() => {
100
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
101
- /******/ })();
102
- /******/
103
- /******/ /* webpack/runtime/make namespace object */
104
- /******/ (() => {
105
- /******/ // define __esModule on exports
106
- /******/ __webpack_require__.r = (exports) => {
107
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
108
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
109
- /******/ }
110
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
111
- /******/ };
112
- /******/ })();
113
- /******/
114
- /************************************************************************/
115
- var __webpack_exports__ = {};
116
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
117
- (() => {
118
- /*!************************************************************!*\
119
- !*** ./src/core/MeganavControlMobileDropdown/component.js ***!
120
- \************************************************************/
121
- __webpack_require__.r(__webpack_exports__);
122
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
123
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
124
- /* harmony export */ });
125
- /* harmony import */ var scroll_lock__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! scroll-lock */ "scroll-lock");
126
- /* harmony import */ var scroll_lock__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(scroll_lock__WEBPACK_IMPORTED_MODULE_0__);
127
- /* harmony import */ var _dom_query__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../dom-query */ "./src/core/dom-query.js");
128
-
129
-
130
-
131
- var MeganavControlMobileDropdown = function MeganavControlMobileDropdown(_ref) {
132
- var clearPanels = _ref.clearPanels;
133
- var control = (0,_dom_query__WEBPACK_IMPORTED_MODULE_1__.queryId)("meganav-control-mobile-dropdown");
134
- var dropdown = (0,_dom_query__WEBPACK_IMPORTED_MODULE_1__.queryId)("meganav-mobile-dropdown");
135
- var menuIcon = (0,_dom_query__WEBPACK_IMPORTED_MODULE_1__.queryId)("meganav-control-mobile-dropdown-menu");
136
- var closeIcon = (0,_dom_query__WEBPACK_IMPORTED_MODULE_1__.queryId)("meganav-control-mobile-dropdown-close");
137
-
138
- var clickHandler = function clickHandler() {
139
- var ariaExpanded = control.getAttribute("aria-expanded");
140
-
141
- if (ariaExpanded === "false") {
142
- dropdown.classList.replace("invisible", "visible");
143
- control.setAttribute("aria-expanded", true);
144
- scroll_lock__WEBPACK_IMPORTED_MODULE_0___default().disablePageScroll();
145
- } else {
146
- dropdown.classList.replace("visible", "invisible");
147
- control.setAttribute("aria-expanded", false);
148
- scroll_lock__WEBPACK_IMPORTED_MODULE_0___default().enablePageScroll();
149
- clearPanels();
150
- }
151
-
152
- menuIcon.classList.toggle("hidden");
153
- closeIcon.classList.toggle("hidden");
154
- };
155
-
156
- control.addEventListener("click", clickHandler);
157
- return {
158
- teardown: function teardown() {
159
- control.removeEventListener("click", clickHandler);
160
- scroll_lock__WEBPACK_IMPORTED_MODULE_0___default().enablePageScroll();
161
- },
162
- clear: function clear() {
163
- dropdown.classList.replace("visible", "invisible");
164
- control.setAttribute("aria-expanded", false);
165
- menuIcon.classList.remove("hidden");
166
- closeIcon.classList.add("hidden");
167
- scroll_lock__WEBPACK_IMPORTED_MODULE_0___default().enablePageScroll();
168
- }
169
- };
170
- };
171
-
172
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (MeganavControlMobileDropdown);
173
- })();
174
-
175
- __webpack_exports__ = __webpack_exports__["default"];
176
- /******/ return __webpack_exports__;
177
- /******/ })()
178
- ;
179
- });
180
- //# sourceMappingURL=data:application/json;char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XN0ZW5lciIsImNsZWFyIiwicmVtb3ZlIiwiYWRkIl0sInNvdXJjZVJvb3QiOiIifQ==
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("scroll-lock")):"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AblyUi=t(require("scroll-lock")):(e.AblyUi=e.AblyUi||{},e.AblyUi.Core=e.AblyUi.Core||{},e.AblyUi.Core.MeganavControlMobileDropdown=t(e[void 0]))}(this,(function(e){return(()=>{"use strict";var t={9581:(e,t,o)=>{o.d(t,{A:()=>r});var r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return t.querySelector("[data-id=".concat(e,"]"))}},6833:t=>{t.exports=e}},o={};function r(e){var i=o[e];if(void 0!==i)return i.exports;var n=o[e]={exports:{}};return t[e](n,n.exports,r),n.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var i={};return(()=>{r.d(i,{default:()=>n});var e=r(6833),t=r.n(e),o=r(9581);const n=function(e){var r=e.clearPanels,i=(0,o.A)("meganav-control-mobile-dropdown"),n=(0,o.A)("meganav-mobile-dropdown"),l=(0,o.A)("meganav-control-mobile-dropdown-menu"),a=(0,o.A)("meganav-control-mobile-dropdown-close"),s=function(){"false"===i.getAttribute("aria-expanded")?(n.classList.replace("invisible","visible"),i.setAttribute("aria-expanded",!0),t().disablePageScroll()):(n.classList.replace("visible","invisible"),i.setAttribute("aria-expanded",!1),t().enablePageScroll(),r()),l.classList.toggle("hidden"),a.classList.toggle("hidden")};return i.addEventListener("click",s),{teardown:function(){i.removeEventListener("click",s),t().enablePageScroll()},clear:function(){n.classList.replace("visible","invisible"),i.setAttribute("aria-expanded",!1),l.classList.remove("hidden"),a.classList.add("hidden"),t().enablePageScroll()}}}})(),i.default})()}));
@@ -1,142 +1 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory();
4
- else if(typeof define === 'function' && define.amd)
5
- define([], factory);
6
- else if(typeof exports === 'object')
7
- exports["AblyUi"] = factory();
8
- else
9
- root["AblyUi"] = root["AblyUi"] || {}, root["AblyUi"]["Core"] = root["AblyUi"]["Core"] || {}, root["AblyUi"]["Core"]["MeganavControlMobilePanelClose"] = factory();
10
- })(this, () => {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ "use strict";
13
- /******/ var __webpack_modules__ = ({
14
-
15
- /***/ "./src/core/dom-query.js":
16
- /*!*******************************!*\
17
- !*** ./src/core/dom-query.js ***!
18
- \*******************************/
19
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
20
-
21
- __webpack_require__.r(__webpack_exports__);
22
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23
- /* harmony export */ "queryId": () => (/* binding */ queryId),
24
- /* harmony export */ "queryIdAll": () => (/* binding */ queryIdAll)
25
- /* harmony export */ });
26
- var queryId = function queryId(val) {
27
- var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
28
- return root.querySelector("[data-id=".concat(val, "]"));
29
- };
30
- var queryIdAll = function queryIdAll(val) {
31
- var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
32
- return root.querySelectorAll("[data-id=".concat(val, "]"));
33
- };
34
-
35
- /***/ })
36
-
37
- /******/ });
38
- /************************************************************************/
39
- /******/ // The module cache
40
- /******/ var __webpack_module_cache__ = {};
41
- /******/
42
- /******/ // The require function
43
- /******/ function __webpack_require__(moduleId) {
44
- /******/ // Check if module is in cache
45
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
46
- /******/ if (cachedModule !== undefined) {
47
- /******/ return cachedModule.exports;
48
- /******/ }
49
- /******/ // Create a new module (and put it into the cache)
50
- /******/ var module = __webpack_module_cache__[moduleId] = {
51
- /******/ // no module.id needed
52
- /******/ // no module.loaded needed
53
- /******/ exports: {}
54
- /******/ };
55
- /******/
56
- /******/ // Execute the module function
57
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
58
- /******/
59
- /******/ // Return the exports of the module
60
- /******/ return module.exports;
61
- /******/ }
62
- /******/
63
- /************************************************************************/
64
- /******/ /* webpack/runtime/define property getters */
65
- /******/ (() => {
66
- /******/ // define getter functions for harmony exports
67
- /******/ __webpack_require__.d = (exports, definition) => {
68
- /******/ for(var key in definition) {
69
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
70
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
71
- /******/ }
72
- /******/ }
73
- /******/ };
74
- /******/ })();
75
- /******/
76
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
77
- /******/ (() => {
78
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
79
- /******/ })();
80
- /******/
81
- /******/ /* webpack/runtime/make namespace object */
82
- /******/ (() => {
83
- /******/ // define __esModule on exports
84
- /******/ __webpack_require__.r = (exports) => {
85
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
86
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
87
- /******/ }
88
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
89
- /******/ };
90
- /******/ })();
91
- /******/
92
- /************************************************************************/
93
- var __webpack_exports__ = {};
94
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
95
- (() => {
96
- /*!**************************************************************!*\
97
- !*** ./src/core/MeganavControlMobilePanelClose/component.js ***!
98
- \**************************************************************/
99
- __webpack_require__.r(__webpack_exports__);
100
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
101
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
102
- /* harmony export */ });
103
- /* harmony import */ var _dom_query__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dom-query */ "./src/core/dom-query.js");
104
-
105
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (function () {
106
- var closeControls = Array.from((0,_dom_query__WEBPACK_IMPORTED_MODULE_0__.queryIdAll)("meganav-control-mobile-panel-close"));
107
- var openControls = Array.from((0,_dom_query__WEBPACK_IMPORTED_MODULE_0__.queryIdAll)("meganav-control-mobile-panel-open"));
108
-
109
- var clickHandler = function clickHandler(btn, openBtn, panel) {
110
- return function () {
111
- btn.setAttribute("aria-expanded", false);
112
- openBtn.setAttribute("aria-expanded", false);
113
- panel.classList.replace("block", "hidden");
114
- panel.style.height = null;
115
- };
116
- };
117
-
118
- return closeControls.map(function (btn) {
119
- var openBtn = openControls.find(function (open) {
120
- return open.getAttribute("aria-controls") === btn.getAttribute("aria-controls");
121
- });
122
- var panel = document.querySelector("#".concat(btn.getAttribute("aria-controls")));
123
- var handler = clickHandler(btn, openBtn, panel);
124
- btn.addEventListener("click", handler);
125
- return {
126
- teardown: function teardown() {
127
- return btn.removeEventListener("click", handler);
128
- },
129
- clear: function clear() {
130
- return btn.setAttribute("aria-expanded", false);
131
- }
132
- };
133
- });
134
- });
135
- })();
136
-
137
- __webpack_exports__ = __webpack_exports__["default"];
138
- /******/ return __webpack_exports__;
139
- /******/ })()
140
- ;
141
- });
142
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29yZS9NZWdhbmF2Q29udHJvbE1vYmlsZVBhbmVsQ2xvc2UvY29tcG9uZW50LmpzIiwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSx1Q0FBdUMsdURBQXVEO0FBQzlGLENBQUM7QUFDRCxPOzs7Ozs7Ozs7Ozs7Ozs7QUNWTyxJQUFNQSxPQUFPLEdBQUcsU0FBVkEsT0FBVSxDQUFDQyxHQUFEO0FBQUEsTUFBTUMsSU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n0=
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AblyUi=t():(e.AblyUi=e.AblyUi||{},e.AblyUi.Core=e.AblyUi.Core||{},e.AblyUi.Core.MeganavControlMobilePanelClose=t())}(this,(function(){return(()=>{"use strict";var e={9581:(e,t,r)=>{r.d(t,{n:()=>n});var n=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return t.querySelectorAll("[data-id=".concat(e,"]"))}}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var a=t[n]={exports:{}};return e[n](a,a.exports,r),a.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var n={};return(()=>{r.d(n,{default:()=>t});var e=r(9581);const t=function(){var t=Array.from((0,e.n)("meganav-control-mobile-panel-close")),r=Array.from((0,e.n)("meganav-control-mobile-panel-open"));return t.map((function(e){var t=r.find((function(t){return t.getAttribute("aria-controls")===e.getAttribute("aria-controls")})),n=document.querySelector("#".concat(e.getAttribute("aria-controls"))),o=function(e,t,r){return function(){e.setAttribute("aria-expanded",!1),t.setAttribute("aria-expanded",!1),r.classList.replace("block","hidden"),r.style.height=null}}(e,t,n);return e.addEventListener("click",o),{teardown:function(){return e.removeEventListener("click",o)},clear:function(){return e.setAttribute("aria-expanded",!1)}}}))}})(),n.default})()}));
@@ -1,170 +1 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory();
4
- else if(typeof define === 'function' && define.amd)
5
- define([], factory);
6
- else if(typeof exports === 'object')
7
- exports["AblyUi"] = factory();
8
- else
9
- root["AblyUi"] = root["AblyUi"] || {}, root["AblyUi"]["Core"] = root["AblyUi"]["Core"] || {}, root["AblyUi"]["Core"]["MeganavControlMobilePanelOpen"] = factory();
10
- })(this, () => {
11
- return /******/ (() => { // webpackBootstrap
12
- /******/ "use strict";
13
- /******/ var __webpack_modules__ = ({
14
-
15
- /***/ "./src/core/css.js":
16
- /*!*************************!*\
17
- !*** ./src/core/css.js ***!
18
- \*************************/
19
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
20
-
21
- __webpack_require__.r(__webpack_exports__);
22
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
23
- /* harmony export */ "remsToPixelValue": () => (/* binding */ remsToPixelValue)
24
- /* harmony export */ });
25
- var remsToPixelValue = function remsToPixelValue(remString) {
26
- return parseFloat(remString) * parseFloat(getComputedStyle(document.documentElement).fontSize);
27
- };
28
-
29
- /***/ }),
30
-
31
- /***/ "./src/core/dom-query.js":
32
- /*!*******************************!*\
33
- !*** ./src/core/dom-query.js ***!
34
- \*******************************/
35
- /***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
36
-
37
- __webpack_require__.r(__webpack_exports__);
38
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
39
- /* harmony export */ "queryId": () => (/* binding */ queryId),
40
- /* harmony export */ "queryIdAll": () => (/* binding */ queryIdAll)
41
- /* harmony export */ });
42
- var queryId = function queryId(val) {
43
- var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
44
- return root.querySelector("[data-id=".concat(val, "]"));
45
- };
46
- var queryIdAll = function queryIdAll(val) {
47
- var root = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : document;
48
- return root.querySelectorAll("[data-id=".concat(val, "]"));
49
- };
50
-
51
- /***/ })
52
-
53
- /******/ });
54
- /************************************************************************/
55
- /******/ // The module cache
56
- /******/ var __webpack_module_cache__ = {};
57
- /******/
58
- /******/ // The require function
59
- /******/ function __webpack_require__(moduleId) {
60
- /******/ // Check if module is in cache
61
- /******/ var cachedModule = __webpack_module_cache__[moduleId];
62
- /******/ if (cachedModule !== undefined) {
63
- /******/ return cachedModule.exports;
64
- /******/ }
65
- /******/ // Create a new module (and put it into the cache)
66
- /******/ var module = __webpack_module_cache__[moduleId] = {
67
- /******/ // no module.id needed
68
- /******/ // no module.loaded needed
69
- /******/ exports: {}
70
- /******/ };
71
- /******/
72
- /******/ // Execute the module function
73
- /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
74
- /******/
75
- /******/ // Return the exports of the module
76
- /******/ return module.exports;
77
- /******/ }
78
- /******/
79
- /************************************************************************/
80
- /******/ /* webpack/runtime/define property getters */
81
- /******/ (() => {
82
- /******/ // define getter functions for harmony exports
83
- /******/ __webpack_require__.d = (exports, definition) => {
84
- /******/ for(var key in definition) {
85
- /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
86
- /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
87
- /******/ }
88
- /******/ }
89
- /******/ };
90
- /******/ })();
91
- /******/
92
- /******/ /* webpack/runtime/hasOwnProperty shorthand */
93
- /******/ (() => {
94
- /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop))
95
- /******/ })();
96
- /******/
97
- /******/ /* webpack/runtime/make namespace object */
98
- /******/ (() => {
99
- /******/ // define __esModule on exports
100
- /******/ __webpack_require__.r = (exports) => {
101
- /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
102
- /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
103
- /******/ }
104
- /******/ Object.defineProperty(exports, '__esModule', { value: true });
105
- /******/ };
106
- /******/ })();
107
- /******/
108
- /************************************************************************/
109
- var __webpack_exports__ = {};
110
- // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
111
- (() => {
112
- /*!*************************************************************!*\
113
- !*** ./src/core/MeganavControlMobilePanelOpen/component.js ***!
114
- \*************************************************************/
115
- __webpack_require__.r(__webpack_exports__);
116
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
117
- /* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
118
- /* harmony export */ });
119
- /* harmony import */ var _dom_query__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../dom-query */ "./src/core/dom-query.js");
120
- /* harmony import */ var _css__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ../css */ "./src/core/css.js");
121
-
122
-
123
- /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (function () {
124
- var closeControls = Array.from((0,_dom_query__WEBPACK_IMPORTED_MODULE_0__.queryIdAll)("meganav-control-mobile-panel-close"));
125
- var openControls = Array.from((0,_dom_query__WEBPACK_IMPORTED_MODULE_0__.queryIdAll)("meganav-control-mobile-panel-open"));
126
- var dropdown = (0,_dom_query__WEBPACK_IMPORTED_MODULE_0__.queryId)("meganav-mobile-dropdown"); // Height is defined in rem's so to get the pixel value we need to find the fontSize on root
127
-
128
- var meganavHeight = (0,_css__WEBPACK_IMPORTED_MODULE_1__.remsToPixelValue)(getComputedStyle(document.documentElement).getPropertyValue("--ui-meganav-height"));
129
-
130
- var clickHandler = function clickHandler(btn, closeBtn, panel) {
131
- return function () {
132
- btn.setAttribute("aria-expanded", true);
133
- closeBtn.setAttribute("aria-expanded", true);
134
- panel.classList.replace("hidden", "block"); // On devices where we don't have enough space for the panel, set it's height to
135
- // the height of the viewport (minus the meganav height) - this will trigger a scroll.
136
- // Otherwise just set it to the panel height. This handles the case where the ratio of vertical
137
- // space to horizontal is especially high (think tablets, but not only).
138
-
139
- panel.style.height = "".concat(window.innerHeight - meganavHeight > panel.offsetHeight ? panel.offsetHeight : window.innerHeight - meganavHeight, "px");
140
- };
141
- };
142
-
143
- return openControls.map(function (btn) {
144
- var closeBtn = closeControls.find(function (node) {
145
- return node.getAttribute("aria-controls") === btn.getAttribute("aria-controls");
146
- });
147
- var panel = document.querySelector("#".concat(btn.getAttribute("aria-controls")));
148
- var handler = clickHandler(btn, closeBtn, panel);
149
- btn.addEventListener("click", handler);
150
- return {
151
- teardown: function teardown() {
152
- return btn.removeEventListener("click", handler);
153
- },
154
- clear: function clear() {
155
- panel.classList.replace("block", "hidden");
156
- dropdown.classList.remove("ui-meganav-mobile-dropdown-expand");
157
- btn.setAttribute("aria-expanded", false);
158
- panel.style.height = null;
159
- }
160
- };
161
- });
162
- });
163
- })();
164
-
165
- __webpack_exports__ = __webpack_exports__["default"];
166
- /******/ return __webpack_exports__;
167
- /******/ })()
168
- ;
169
- });
170
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29yZS9NZWdhbmF2Q29udHJvbE1vYmlsZVBhbmVsT3Blbi9jb21wb25lbnQuanMiLCJtYXBwaW5ncyI6IkFBQUE7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBLHVDQUF1Qyx1REFBdUQ7QUFDOUYsQ0FBQztBQUNELE87Ozs7Ozs7Ozs7Ozs7O0FDVk8sSUFBTUEsZ0JBQWdCLEdBQUcsU0FBbkJBLGdCQUFtQixDQUFDQyxTQUFEO0FBQUEsU0FDOUJDLFVBQVUsQ0FBQ0QsU0FBRCxDQUFWLEdBQ0FDLFVBQVUsQ0FBQ0MsZ0JBQWdCLENBQUNDLFFBQVEsQ0FBQ0MsZUFBVixDQUFoQixDQUEyQ0MsUUFBNUMsQ0FGb0I7QUFBQSxDQUF6Qjs7Ozs7Ozs7Ozs7Ozs7O0FDQUEsSUFBTUMsT0FBTyxHQUFHLFNBQVZBLE9BQVUsQ0FBQ0MsR0FBRDtBQUFBLE1BQU1DLElBQU4sdUVBQWFMLFFBQWI7QUFBQSxTQUNyQkssSUFBSSxDQUFDQyxhQUFMLG9CQUErQkYsR0FBL0IsT0FEcUI7QUFBQSxDQUFoQjtBQUdBLElBQU1HLFVBQVUsR0FBRyxTQUFiQSxVQUFhLENBQUNILEdBQUQ7QUFBQSxNQUFNQyxJQUFOLHVFQUFhTCxRQUFiO0FBQUEsU0FDeEJLLElBQUksQ0FBQ0csZ0JBQUwsb0JBQWtDSixHQUFsQyxP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9mZnNldEhlaWdodCIsIm1hcCIsImZpbmQiLCJub2RlIiwiZ2V0QXR0cmlidXRlIiwiaGFuZGxlciIsImFkZEV2ZW50TGlzdGVuZXIiLCJ0ZWFyZG93biIsInJlbW92ZUV2ZW50TGlzdGVuZXIiLCJjbGVhciIsInJlbW92ZSJdLCJzb3VyY2VSb290IjoiIn0=
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.AblyUi=t():(e.AblyUi=e.AblyUi||{},e.AblyUi.Core=e.AblyUi.Core||{},e.AblyUi.Core.MeganavControlMobilePanelOpen=t())}(this,(function(){return(()=>{"use strict";var e={9581:(e,t,n)=>{n.d(t,{A:()=>o,n:()=>r});var o=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return t.querySelector("[data-id=".concat(e,"]"))},r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document;return t.querySelectorAll("[data-id=".concat(e,"]"))}}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var i=t[o]={exports:{}};return e[o](i,i.exports,n),i.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t);var o={};return(()=>{n.d(o,{default:()=>t});var e=n(9581);const t=function(){var t,n=Array.from((0,e.n)("meganav-control-mobile-panel-close")),o=Array.from((0,e.n)("meganav-control-mobile-panel-open")),r=(0,e.A)("meganav-mobile-dropdown"),i=(t=getComputedStyle(document.documentElement).getPropertyValue("--ui-meganav-height"),parseFloat(t)*parseFloat(getComputedStyle(document.documentElement).fontSize));return o.map((function(e){var t=n.find((function(t){return t.getAttribute("aria-controls")===e.getAttribute("aria-controls")})),o=document.querySelector("#".concat(e.getAttribute("aria-controls"))),a=function(e,t,n){return function(){e.setAttribute("aria-expanded",!0),t.setAttribute("aria-expanded",!0),n.classList.replace("hidden","block"),n.style.height="".concat(window.innerHeight-i>n.offsetHeight?n.offsetHeight:window.innerHeight-i,"px")}}(e,t,o);return e.addEventListener("click",a),{teardown:function(){return e.removeEventListener("click",a)},clear:function(){o.classList.replace("block","hidden"),r.classList.remove("ui-meganav-mobile-dropdown-expand"),e.setAttribute("aria-expanded",!1),o.style.height=null}}}))}})(),o.default})()}));
@@ -1,22 +1 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory();
4
- else if(typeof define === 'function' && define.amd)
5
- define([], factory);
6
- else if(typeof exports === 'object')
7
- exports["AblyUi"] = factory();
8
- else
9
- root["AblyUi"] = root["AblyUi"] || {}, root["AblyUi"]["Core"] = root["AblyUi"]["Core"] || {}, root["AblyUi"]["Core"]["MeganavItemsDesktop"] = factory();
10
- })(this, () => {
11
- return /******/ (() => { // webpackBootstrap
12
- var __webpack_exports__ = {};
13
- /*!***************************************************!*\
14
- !*** ./src/core/MeganavItemsDesktop/component.js ***!
15
- \***************************************************/
16
-
17
- __webpack_exports__ = __webpack_exports__["default"];
18
- /******/ return __webpack_exports__;
19
- /******/ })()
20
- ;
21
- });
22
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29yZS9NZWdhbmF2SXRlbXNEZXNrdG9wL2NvbXBvbmVudC5qcyIsIm1hcHBpbmdzIjoiQUFBQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0EsdUNBQXVDLHVEQUF1RDtBQUM5RixDQUFDO0FBQ0QsTyIsInNvdXJjZXMiOlsid2VicGFjazovL0FibHlVaS5Db3JlL3dlYnBhY2svdW5pdmVyc2FsTW9kdWxlRGVmaW5pdGlvbiJdLCJzb3VyY2VzQ29udGVudCI6WyIoZnVuY3Rpb24gd2VicGFja1VuaXZlcnNhbE1vZHVsZURlZmluaXRpb24ocm9vdCwgZmFjdG9yeSkge1xuXHRpZih0eXBlb2YgZXhwb3J0cyA9PT0gJ29iamVjdCcgJiYgdHlwZW9mIG1vZHVsZSA9PT0gJ29iamVjdCcpXG5cdFx0bW9kdWxlLmV4cG9ydHMgPSBmYWN0b3J5KCk7XG5cdGVsc2UgaWYodHlwZW9mIGRlZmluZSA9PT0gJ2Z1bmN0aW9uJyAmJiBkZWZpbmUuYW1kKVxuXHRcdGRlZmluZShbXSwgZmFjdG9yeSk7XG5cdGVsc2UgaWYodHlwZW9mIGV4cG9ydHMgPT09ICdvYmplY3QnKVxuXHRcdGV4cG9ydHNbXCJBYmx5VWlcIl0gPSBmYWN0b3J5KCk7XG5cdGVsc2Vcblx0XHRyb290W1wiQWJseVVpXCJdID0gcm9vdFtcIkFibHlVaVwiXSB8fCB7fSwgcm9vdFtcIkFibHlVaVwiXVtcIkNvcmVcIl0gPSByb290W1wiQWJseVVpXCJdW1wiQ29yZVwiXSB8fCB7fSwgcm9vdFtcIkFibHlVaVwiXVtcIkNvcmVcIl1bXCJNZWdhbmF2SXRlbXNEZXNrdG9wXCJdID0gZmFjdG9yeSgpO1xufSkodGhpcywgKCkgPT4ge1xucmV0dXJuICJdLCJuYW1lcyI6W10sInNvdXJjZVJvb3QiOiIifQ==
1
+ !function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.AblyUi=o():(e.AblyUi=e.AblyUi||{},e.AblyUi.Core=e.AblyUi.Core||{},e.AblyUi.Core.MeganavItemsDesktop=o())}(this,(function(){return{}.default}));
@@ -12,7 +12,7 @@ module AblyUi
12
12
  end
13
13
 
14
14
  def bg_css(panel_id)
15
- if %w[products-panel use-cases-panel].include?(panel_id)
15
+ if %w[platform-panel use-cases-panel].include?(panel_id)
16
16
  'ui-meganav-panel-split-bg'
17
17
  else
18
18
  ''
@@ -1,22 +1 @@
1
- (function webpackUniversalModuleDefinition(root, factory) {
2
- if(typeof exports === 'object' && typeof module === 'object')
3
- module.exports = factory();
4
- else if(typeof define === 'function' && define.amd)
5
- define([], factory);
6
- else if(typeof exports === 'object')
7
- exports["AblyUi"] = factory();
8
- else
9
- root["AblyUi"] = root["AblyUi"] || {}, root["AblyUi"]["Core"] = root["AblyUi"]["Core"] || {}, root["AblyUi"]["Core"]["MeganavItemsMobile"] = factory();
10
- })(this, () => {
11
- return /******/ (() => { // webpackBootstrap
12
- var __webpack_exports__ = {};
13
- /*!**************************************************!*\
14
- !*** ./src/core/MeganavItemsMobile/component.js ***!
15
- \**************************************************/
16
-
17
- __webpack_exports__ = __webpack_exports__["default"];
18
- /******/ return __webpack_exports__;
19
- /******/ })()
20
- ;
21
- });
22
- //# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY29yZS9NZWdhbmF2SXRlbXNNb2JpbGUvY29tcG9uZW50LmpzIiwibWFwcGluZ3MiOiJBQUFBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQTtBQUNBO0FBQ0E7QUFDQSx1Q0FBdUMsdURBQXVEO0FBQzlGLENBQUM7QUFDRCxPIiwic291cmNlcyI6WyJ3ZWJwYWNrOi8vQWJseVVpLkNvcmUvd2VicGFjay91bml2ZXJzYWxNb2R1bGVEZWZpbml0aW9uIl0sInNvdXJjZXNDb250ZW50IjpbIihmdW5jdGlvbiB3ZWJwYWNrVW5pdmVyc2FsTW9kdWxlRGVmaW5pdGlvbihyb290LCBmYWN0b3J5KSB7XG5cdGlmKHR5cGVvZiBleHBvcnRzID09PSAnb2JqZWN0JyAmJiB0eXBlb2YgbW9kdWxlID09PSAnb2JqZWN0Jylcblx0XHRtb2R1bGUuZXhwb3J0cyA9IGZhY3RvcnkoKTtcblx0ZWxzZSBpZih0eXBlb2YgZGVmaW5lID09PSAnZnVuY3Rpb24nICYmIGRlZmluZS5hbWQpXG5cdFx0ZGVmaW5lKFtdLCBmYWN0b3J5KTtcblx0ZWxzZSBpZih0eXBlb2YgZXhwb3J0cyA9PT0gJ29iamVjdCcpXG5cdFx0ZXhwb3J0c1tcIkFibHlVaVwiXSA9IGZhY3RvcnkoKTtcblx0ZWxzZVxuXHRcdHJvb3RbXCJBYmx5VWlcIl0gPSByb290W1wiQWJseVVpXCJdIHx8IHt9LCByb290W1wiQWJseVVpXCJdW1wiQ29yZVwiXSA9IHJvb3RbXCJBYmx5VWlcIl1bXCJDb3JlXCJdIHx8IHt9LCByb290W1wiQWJseVVpXCJdW1wiQ29yZVwiXVtcIk1lZ2FuYXZJdGVtc01vYmlsZVwiXSA9IGZhY3RvcnkoKTtcbn0pKHRoaXMsICgpID0+IHtcbnJldHVybiAiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=
1
+ !function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o():"function"==typeof define&&define.amd?define([],o):"object"==typeof exports?exports.AblyUi=o():(e.AblyUi=e.AblyUi||{},e.AblyUi.Core=e.AblyUi.Core||{},e.AblyUi.Core.MeganavItemsMobile=o())}(this,(function(){return{}.default}));