@getflip/swirl-components 0.208.0 → 0.208.2

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.
package/components.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "timestamp": "2024-06-11T13:56:15",
2
+ "timestamp": "2024-06-13T09:16:29",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
5
  "version": "4.18.1",
@@ -110,7 +110,7 @@ const SwirlAvatar = class {
110
110
  });
111
111
  const badgeClassName = index$1.classnames("avatar__badge", `avatar__badge--position-${this.badgePosition}`);
112
112
  const toolClassName = index$1.classnames("avatar__tool", `avatar__tool--position-${this.toolPosition}`);
113
- return (index.h(index.Host, { key: '6e71cf7f05ca78c5d2dbc3180fce8bb0bee5e18c', "aria-label": this.label, onKeydown: this.interactive ? this.onKeydown : undefined, onKeyup: this.interactive ? this.onKeyup : undefined, role: role, tabIndex: this.interactive ? 0 : undefined }, index.h("span", { key: '0d7b2870ae59e6628e96c38a18c747ef8ee09c54', class: className, part: "avatar" }, showImage && (index.h("span", { key: '8cf1235dfb9e3b30262f61f6aeef2d251db1fc08', class: "avatar__image" }, index.h("img", { key: '83eb8aa8d9c16116440e2a50c3a921109e96a812', alt: "", height: swirlAvatarSizeMappings[this.size], loading: this.loading !== "intersecting" ? this.loading : undefined, onError: this.setImageUnavailable, onLoad: this.setImageAvailable, src: this.src, width: swirlAvatarSizeMappings[this.size] }))), showInitials && (index.h("span", { key: '4dffa0b362fbbc7413000f5fc5006d3566daf0c8', class: "avatar__initials" }, index.h("span", { key: 'b0e1479398b0f8ac0304fba2c38fdfa66e072fde' }, this.initials))), showIcon && index.h("span", { key: '13640b63ff186ca7fbe6d72eca77359cdb0eb4bb', class: "avatar__icon", innerHTML: this.icon }), showFallbackIcon && (index.h("span", { key: '1bba16d3de264381aff4009ae5d2dfee9eb5f638', class: "avatar__icon" }, index.h("swirl-icon-person", { key: '004689c1bcd3d51b9cf8f8fce93a6923f8f41f6a' }))), showBadge && (index.h("span", { key: 'b2f9cd9ee49a3bf77781473a94ca68848f6299a4', class: badgeClassName, innerHTML: this.badge })), index.h("span", { key: '29c112792ac8effec07fffadbf2b6997af304cfe', class: toolClassName }, index.h("slot", { key: 'a8e2bb8f60e382e86a0cb969af91ffc7195e5204', name: "tool" }))), this.showLabel && (index.h("span", { key: '4daf80748cdb5a3bacf5405e5ff58fd21febb37d', "aria-hidden": true, class: "avatar__label" }, this.label))));
113
+ return (index.h(index.Host, { key: 'a846927adb4c374f3663f856b05d50603915502d', "aria-label": this.interactive ? this.label : undefined, onKeydown: this.interactive ? this.onKeydown : undefined, onKeyup: this.interactive ? this.onKeyup : undefined, role: role, tabIndex: this.interactive ? 0 : undefined }, index.h("span", { key: 'db1b5a6ae753350cb74562ebbcaffdcd1fe9b73a', class: className, part: "avatar" }, showImage && (index.h("span", { key: '92421d372f10ca75f3a4d40b5318ab88073f05ef', class: "avatar__image" }, index.h("img", { key: '7003338128d40de0ed8a97ed92c84d17d2b886f1', alt: "", height: swirlAvatarSizeMappings[this.size], loading: this.loading !== "intersecting" ? this.loading : undefined, onError: this.setImageUnavailable, onLoad: this.setImageAvailable, src: this.src, width: swirlAvatarSizeMappings[this.size] }))), showInitials && (index.h("span", { key: '1b9fbbcee47c46c1264dbdefe20b71fe6edc91d7', class: "avatar__initials" }, index.h("span", { key: 'a41ef5f739b738726027bb0ba6cf9f6aca9808c8' }, this.initials))), showIcon && index.h("span", { key: '8b1933c8be2d2072824aeda245a771f84d7a9707', class: "avatar__icon", innerHTML: this.icon }), showFallbackIcon && (index.h("span", { key: 'afc1c2e68873784d757587881cc05cfbb98f848a', class: "avatar__icon" }, index.h("swirl-icon-person", { key: '40a6e6fdc13ae07cb18ab9d0ac1fecfb092217f4' }))), showBadge && (index.h("span", { key: '69dc8a86df183237882c7241b0b73d7babfcf9fe', class: badgeClassName, innerHTML: this.badge })), index.h("span", { key: '822c6123a6984406e709cfc6083070eaf35044e5', class: toolClassName }, index.h("slot", { key: 'd5e8246097832bf808fcb91dc5a822d1923db2a4', name: "tool" }))), this.showLabel && (index.h("span", { key: '10e6e09526bf6f3818ff5e54b270695adaf29e15', "aria-hidden": true, class: "avatar__label" }, this.label))));
114
114
  }
115
115
  get element() { return index.getElement(this); }
116
116
  static get watchers() { return {
@@ -16,12 +16,6 @@ const SwirlShellLayout = class {
16
16
  index.registerInstance(this, hostRef);
17
17
  this.sidebarToggleClick = index.createEvent(this, "sidebarToggleClick", 7);
18
18
  this.skipLinkClick = index.createEvent(this, "skipLinkClick", 7);
19
- this.onBrowserBackClick = () => {
20
- history.back();
21
- };
22
- this.onBrowserForwardClick = () => {
23
- history.forward();
24
- };
25
19
  this.onNavigationToggleClick = () => {
26
20
  this.navigationCollapsed = !this.navigationCollapsed;
27
21
  };
@@ -110,9 +104,9 @@ const SwirlShellLayout = class {
110
104
  "shell-layout--navigation-collapsed": this.navigationCollapsed,
111
105
  "shell-layout--sidebar-active": this.sidebarActive,
112
106
  });
113
- return (index.h(index.Host, { key: '006788ec30a11e1bd1cc527e2aec9e5225154b2a' }, index.h("div", { key: '3c3ea2fa9dd64c8309dabb976f591c4ba933eb48', class: className }, index.h("header", { key: 'f42c377eea3fcedc3c8746262e3bee9957a06a09', class: "shell-layout__header", "data-tauri-drag-region": "true" }, index.h("button", { key: '6de17ff7e7576a9f3f712db30945673900b05640', class: "shell-layout__skip-link", onClick: this.skipLinkClick.emit, type: "button" }, this.skipLinkLabel), index.h("div", { key: '7282c3e4b6cbec3953b94c311314555064a7603c', class: "shell-layout__header-left" }, index.h("button", { key: '99e231c52d5414029aca69e0be4e08d09cab16ea', class: "shell-layout__header-tool", onClick: this.onNavigationToggleClick, type: "button" }, index.h("swirl-icon-dock-left", { key: '8783d2c5297f41515665cb2fc8b2e36fdc6e9c8c', size: 20 }), index.h("swirl-visually-hidden", { key: 'bc85d4e5edf17ccbfc33f5fe95fa201e815badb6' }, this.navigationToggleLabel)), index.h("button", { key: '3799d7ab4b7618eac6949ae9c8affbe505ed9016', class: "shell-layout__header-tool", onClick: this.onBrowserBackClick, type: "button" }, index.h("swirl-icon-arrow-back", { key: '42d923b46e12a6621e40c2c969d7e321af70d29d', size: 20 }), index.h("swirl-visually-hidden", { key: 'e7b8f6e7d2b1ba3045d3f6ccf821e1c8f570c43c' }, this.browserBackButtonLabel)), index.h("button", { key: 'b448b27d09de5c8dee0c7bbcfcfe49c243f7f82f', class: "shell-layout__header-tool", onClick: this.onBrowserForwardClick, type: "button" }, index.h("swirl-icon-arrow-forward", { key: '40404fad38a2e8518d2755cfa56675d1a8101a31', size: 20 }), index.h("swirl-visually-hidden", { key: 'c31d64b3bde39c4d9aeaaa57b4ef2aa12a6533c9' }, this.browserForwardButtonLabel)), index.h("slot", { key: '2c814c69caaf7d9169745bfe69693c50b1269121', name: "left-header-tools" })), index.h("div", { key: '7fb8ad582278eae55e6bec0f19dec4aa5b1c32fa', class: "shell-layout__logo" }, index.h("slot", { key: '8d2baaba77fbfac66a4ae7bc31997c719816af3d', name: "logo" })), index.h("div", { key: '5090fe93f98472a3899ccdfd6ae8aa9700fe6300', class: "shell-layout__header-right" }, index.h("slot", { key: 'd3322f829a63d7010d13aa7883b7066ba69af3b5', name: "right-header-tools" }), index.h("button", { key: '3361ae39934a904353d3c6f536f1848a6794cc3c', class: "shell-layout__header-tool shell-layout__sidebar-toggle", onClick: this.sidebarToggleClick.emit, type: "button" }, index.h("swirl-icon", { key: 'bd09a1b54ded4cd520cf624b9343ad00d41dd259', glyph: this.sidebarToggleIcon, size: 20 }), index.h("swirl-visually-hidden", { key: '150fbf1a7d9ad69c75464ade1942fed45587b5d6' }, this.sidebarToggleLabel), this.sidebarToggleBadge && (index.h("swirl-badge", { key: 'c8b616faf20c928ba2c2cf2cf20ef40f3a662646', "aria-label": this.sidebarToggleBadgeAriaLabel, label: !hasSidebarToggleBadgeWithLabel
107
+ return (index.h(index.Host, { key: '464237ff27f267ca7d43c1a7d515b5df750ba149' }, index.h("div", { key: '94d0ba7a2922df9e90fc36c840ed96544bfb2ca5', class: className }, index.h("header", { key: '7ca4ceef9c5e03c052a234b44c35745bb82c3e0e', class: "shell-layout__header", "data-tauri-drag-region": "true" }, index.h("button", { key: '2b937db7d0b7d6351238a3560c4a8409f1a14e4c', class: "shell-layout__skip-link", onClick: this.skipLinkClick.emit, type: "button" }, this.skipLinkLabel), index.h("div", { key: '9e9a3eee3459f8b41ace84a7f0f4c9e4f1b6f20f', class: "shell-layout__header-left" }, index.h("button", { key: 'd04a5e5411e7caf5741b03b5188db78006192c9e', class: "shell-layout__header-tool", onClick: this.onNavigationToggleClick, type: "button" }, index.h("swirl-icon-dock-left", { key: 'a7eb33ad7fda7d2bb136213439fad7b647bd873d', size: 20 }), index.h("swirl-visually-hidden", { key: '336514402f77dd81781b3b2d1ecda84864e561d3' }, this.navigationToggleLabel)), index.h("a", { key: 'c42c929fd46778b05ee297cf3189e87719d4a9d9', class: "shell-layout__header-tool", href: "javascript:history.back()" }, index.h("swirl-icon-arrow-back", { key: 'e89570f80be08d54e11a3b21ae886def0d0dbf5a', size: 20 }), index.h("swirl-visually-hidden", { key: '7289a96d73cdba0311b167bc796d093a31880ae4' }, this.browserBackButtonLabel)), index.h("a", { key: '31a3bf3ca9e2f98ac9ae9f3778aae645ee2fb5df', class: "shell-layout__header-tool", href: "javascript:history.forward()" }, index.h("swirl-icon-arrow-forward", { key: '10882694de8baf892423e288e8f511e73ecc175d', size: 20 }), index.h("swirl-visually-hidden", { key: 'a08bce73329c768834c34c37b02b111c39f19253' }, this.browserForwardButtonLabel)), index.h("slot", { key: '1792f7b543ad684c4af2da2171d946ff2d3d5d89', name: "left-header-tools" })), index.h("div", { key: 'b07250aa82b117141f2484d512fbade5a8dc702e', class: "shell-layout__logo" }, index.h("slot", { key: '34c9efaebee073f832bfcb8e7812db814df2cf74', name: "logo" })), index.h("div", { key: '54bfbe68d09e7cdf8027f02a625e906b2de8af1d', class: "shell-layout__header-right" }, index.h("slot", { key: 'dc0bd8a4aab7a79e49706b81ff694e6c2af81879', name: "right-header-tools" }), index.h("button", { key: '1c77d8e6d1345303e3ea6ff2f45ef6722862ded8', class: "shell-layout__header-tool shell-layout__sidebar-toggle", onClick: this.sidebarToggleClick.emit, type: "button" }, index.h("swirl-icon", { key: 'ab806d5820d51a38ef5fd6f92f87bd51ee027422', glyph: this.sidebarToggleIcon, size: 20 }), index.h("swirl-visually-hidden", { key: 'a185fd254ce2493b3614b9a8bdc5bc14e6f0c4ca' }, this.sidebarToggleLabel), this.sidebarToggleBadge && (index.h("swirl-badge", { key: '51929778525a0f6b1dc5fde3254eb93f31e6ba07', "aria-label": this.sidebarToggleBadgeAriaLabel, label: !hasSidebarToggleBadgeWithLabel
114
108
  ? this.sidebarToggleBadgeAriaLabel
115
- : String(this.sidebarToggleBadge), size: "xs", variant: !hasSidebarToggleBadgeWithLabel ? "dot" : "default" }))), index.h("slot", { key: '7cd1093ee1de91b3e9647af6af744195ad8aa577', name: "avatar" }))), index.h("div", { key: '1fc055212806b72ff0aa395af0f27269215ad5b1', class: "shell-layout__mobile-nav-backdrop", onClick: this.onNavigationClick }), index.h("nav", { key: '7297b447f8e9b24bdf31b560d846098c124a14f0', "aria-labelledby": "main-navigation-label", class: "shell-layout__nav", onClick: this.onNavigationClick, ref: (el) => (this.navElement = el) }, index.h("div", { key: 'bb2262fc5d4acb5621718800668254e620496a40', class: "shell-layout__mobile-header" }, index.h("slot", { key: '36199dedf81771fc24195225eb8f76400a28656e', name: "mobile-logo" }), index.h("div", { key: '55b0163f924189037b7f1caefe9661a9dc6b13ea', class: "shell-layout__mobile-header-tools" }, index.h("slot", { key: 'e867fbf39597b522a4eb35e36fc86685849ac164', name: "mobile-header-tools" }), index.h("button", { key: 'b223c8a0d2c17ce2195f000ac56240d42d7cc8db', class: "shell-layout__header-tool", type: "button" }, index.h("swirl-icon-double-arrow-left", { key: '908a4dd3b4ac6efc03c89dbf45e64d3468840bd7', size: 20 }), index.h("swirl-visually-hidden", { key: '48e66b39ac9a95d78bdeb58bba80e7a51848ff51' }, this.hideMobileNavigationButtonLabel)))), index.h("div", { key: '45146321187e41eae8467851e55a71f3fccd09f6', class: "shell-layout__nav-body" }, index.h("swirl-visually-hidden", { key: 'ff0bb7d033d74cd5f4132e349bddb04b8cfaf4ae' }, index.h("span", { key: '76d30927eb616aa32284aa0cc09760d2a1e2031a', id: "main-navigation-label" }, this.navigationLabel)), index.h("slot", { key: '512d9e8457096c210213630b40bddb303360690a', name: "nav" }))), index.h("main", { key: 'f5e95eb9a23106b8d69a4f5744c43f95639edf1e', class: "shell-layout__main", id: "main-content" }, index.h("slot", { key: '58eef5b276fc04ed7b657a1ad51f059a995285a2' })), index.h("aside", { key: 'd4a73ce5df8674037f7188812e8ad4327ad3915c', class: "shell-layout__sidebar", inert: this.sidebarActive ? undefined : true }, index.h("div", { key: '3c2c0b68e07a38bd4460fb2116413e42ea9b2862', class: "shell-layout__sidebar-body" }, index.h("div", { key: '62bbc52716d45b4d276dade8111c70c1d5e3286b', class: "shell-layout__sidebar-app-bar" }, index.h("slot", { key: '0a2a44046390cf057a055d28d38a23db243f8bf6', name: "sidebar-app-bar" })), index.h("div", { key: 'f1bac0f7232b4e7bf1e9b920fc66a52c5a20d2eb', class: "shell-layout__sidebar-content" }, index.h("slot", { key: '387c99b253dcec2b3a63d3bd57ade483f2909ea7', name: "sidebar" })))))));
109
+ : String(this.sidebarToggleBadge), size: "xs", variant: !hasSidebarToggleBadgeWithLabel ? "dot" : "default" }))), index.h("slot", { key: '9ffa0a976c0578f97f48d6a489ab0b0efb7e84a4', name: "avatar" }))), index.h("div", { key: 'cd9655eb2d726369ab9c810200210c63a32265f4', class: "shell-layout__mobile-nav-backdrop", onClick: this.onNavigationClick }), index.h("nav", { key: '02662d0fd1c3a63e369e8b37e702f85c1875ccf9', "aria-labelledby": "main-navigation-label", class: "shell-layout__nav", onClick: this.onNavigationClick, ref: (el) => (this.navElement = el) }, index.h("div", { key: 'cb073312c3a3d0d45dee547cff81f902381c7296', class: "shell-layout__mobile-header" }, index.h("slot", { key: '52088b3080930e99763c85093a094db5f6cf3b7c', name: "mobile-logo" }), index.h("div", { key: '197224a2ddd62d60e5a08b8516d5867c9bbc72a8', class: "shell-layout__mobile-header-tools" }, index.h("slot", { key: '300875c929f28466927b8152f9214d01552252a4', name: "mobile-header-tools" }), index.h("button", { key: '1cde22038878a7d278cd28c8377147588d5a6e13', class: "shell-layout__header-tool", type: "button" }, index.h("swirl-icon-double-arrow-left", { key: '66e9c165653f520511a8c5a9ee508d8b07084243', size: 20 }), index.h("swirl-visually-hidden", { key: '15574abbce4cb4aaea9029e2a501d1909d9b40e4' }, this.hideMobileNavigationButtonLabel)))), index.h("div", { key: 'accaa43b86c4424f55b3ce5aab04c7c1e1d2d362', class: "shell-layout__nav-body" }, index.h("swirl-visually-hidden", { key: 'a7b696ed5646ed85a46021387128664f88d443e0' }, index.h("span", { key: 'e18dc4dd5104edb6f5a4fc27b8cba94949b73c2d', id: "main-navigation-label" }, this.navigationLabel)), index.h("slot", { key: '6ea26a3132c76edb7add3aec2108d856c058a495', name: "nav" }))), index.h("main", { key: '9e675e4700b257523d647f9b460d69c91bf32625', class: "shell-layout__main", id: "main-content" }, index.h("slot", { key: '966936fb351ced9de4691ace12ed37054f3aabd8' })), index.h("aside", { key: '3f76cf8d267725fb9909e19f27808f9173389a23', class: "shell-layout__sidebar", inert: this.sidebarActive ? undefined : true }, index.h("div", { key: 'd316a4a82f621b3eaf218b1f75cef085be00849f', class: "shell-layout__sidebar-body" }, index.h("div", { key: 'a96f59a7edd1c2da969c6a30abfc5823c3da3128', class: "shell-layout__sidebar-app-bar" }, index.h("slot", { key: '8f08883a3709fd8bd9619085844cc4ebf50e49b4', name: "sidebar-app-bar" })), index.h("div", { key: 'f4fc1541b95c50a524a6a6e390529060ebb4d136', class: "shell-layout__sidebar-content" }, index.h("slot", { key: 'c4ea005657a58f2dbf178adb72bc82f1ac5c03b3', name: "sidebar" })))))));
116
110
  }
117
111
  static get watchers() { return {
118
112
  "mobileNavigationActive": ["watchMobileNavigationState"],