ode-csslib-openent-na 3.4.21 → 3.4.23-develop-integration.202610050936

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.
@@ -47,6 +47,26 @@ var addDirectives = function (module, done) {
47
47
  };
48
48
  });
49
49
 
50
+ // Same link as the React header (@edifice.io/react/homepage): open the
51
+ // customization page, which redirects back to the current page on save.
52
+ module.directive("customizeLink", function () {
53
+ return {
54
+ restrict: "A",
55
+ link: function (scope, element) {
56
+ var updateHref = function () {
57
+ element.attr(
58
+ "href",
59
+ "/timeline/customize?callback=" +
60
+ encodeURIComponent(window.location.pathname + window.location.search)
61
+ );
62
+ };
63
+ updateHref();
64
+ // The current URL can change after link time (client-side routing).
65
+ element.on("mousedown focus", updateHref);
66
+ },
67
+ };
68
+ });
69
+
50
70
  module.directive("adminPortal", function ($compile) {
51
71
  skin.skin = "admin";
52
72
  skin.theme = "/public/admin/default/";
@@ -167,6 +167,21 @@
167
167
  <div aria-labelledby="header-user-menu" class="popover position-absolute top-100 start-50 translate-middle-x"
168
168
  role="tooltip">
169
169
  <div class="popover-body">
170
+ <a customize-link href="/timeline/customize" class="nav-link dropdown-item" data-testid="header-customize-button">
171
+ <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"
172
+ aria-hidden="true" class="icon customize">
173
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M21 6H7V4H21C22.6569 4 24 5.34315 24 7V19C24 20.6569 22.6569 22 21 22H4V20H21C21.5523 20 22 19.5523 22 19V7C22 6.44772 21.5523 6 21 6Z" fill="currentColor"></path>
174
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M17.703 11.5015C17.9759 11.4865 18.2432 11.5838 18.4425 11.7709L23.6844 16.692C24.0871 17.07 24.1071 17.7028 23.7291 18.1055C23.3511 18.5081 22.7182 18.5281 22.3155 18.1501L17.8378 13.9465L11.2605 21.6494C10.9018 22.0694 10.2706 22.1191 9.85062 21.7605C9.43062 21.4018 9.38088 20.7706 9.73951 20.3506L16.9976 11.8506C17.1751 11.6427 17.43 11.5166 17.703 11.5015Z" fill="currentColor"></path>
175
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M12.5 9C11.9477 9 11.5 9.44772 11.5 10C11.5 10.5523 11.9477 11 12.5 11C13.0523 11 13.5 10.5523 13.5 10C13.5 9.44772 13.0523 9 12.5 9ZM9.5 10C9.5 8.34315 10.8431 7 12.5 7C14.1569 7 15.5 8.34315 15.5 10C15.5 11.6569 14.1569 13 12.5 13C10.8431 13 9.5 11.6569 9.5 10Z" fill="currentColor"></path>
176
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M4 16C2.89543 16 2 16.8954 2 18C2 19.1046 2.89543 20 4 20V22C1.79086 22 0 20.2091 0 18C0 15.7909 1.79086 14 4 14C5.74319 14 7.2235 15.1145 7.77213 16.6668C7.95618 17.1875 7.68326 17.7588 7.16254 17.9428C6.64182 18.1269 6.0705 17.854 5.88645 17.3332C5.61142 16.5551 4.86925 16 4 16Z" fill="currentColor"></path>
177
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M4 2C2.89543 2 2 2.89543 2 4H0C0 1.79086 1.79086 0 4 0C6.20914 0 8 1.79086 8 4H6C6 2.89543 5.10457 2 4 2Z" fill="currentColor"></path>
178
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M8 4V17C8 17.5523 7.55228 18 7 18C6.44772 18 6 17.5523 6 17V4H8Z" fill="currentColor"></path>
179
+ <path fill-rule="evenodd" clip-rule="evenodd" d="M0 18V4H2V18H0Z" fill="currentColor"></path>
180
+ </svg>
181
+ <span class="nav-text">
182
+ <i18n>navbar.customize</i18n>
183
+ </span>
184
+ </a>
170
185
  <a logout class="nav-link dropdown-item" data-testid="header-logout-button">
171
186
  <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"
172
187
  aria-hidden="true" class="icon logout">