@carbon/ibmdotcom-web-components 1.44.0 → 1.45.0
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/custom-elements.json +10 -0
- package/dist/{20-dc3254c6.js → 20-2b2408d2.js} +1 -1
- package/dist/{20-fac427b6.js → 20-3a5336f7.js} +1 -1
- package/dist/{20-87b91a10.js → 20-8a4fd671.js} +1 -1
- package/dist/{20-f8c7b26b.js → 20-b23df4bc.js} +1 -1
- package/dist/cloud-masthead.js +2 -2
- package/dist/cloud-masthead.min.js +1 -1
- package/dist/cloud-masthead.rtl.js +2 -2
- package/dist/cloud-masthead.rtl.min.js +1 -1
- package/dist/dotcom-shell.js +2 -2
- package/dist/dotcom-shell.min.js +1 -1
- package/dist/dotcom-shell.rtl.js +2 -2
- package/dist/dotcom-shell.rtl.min.js +1 -1
- package/dist/ibmdotcom-web-components-dotcom-shell.js +4 -4
- package/dist/ibmdotcom-web-components-dotcom-shell.min.js +2 -2
- package/dist/ibmdotcom-web-components-dotcom-shell.rtl.js +4 -4
- package/dist/ibmdotcom-web-components-dotcom-shell.rtl.min.js +2 -2
- package/dist/{left-nav-menu-5d0ff2d7.js → left-nav-menu-4fd9cd2d.js} +1 -1
- package/dist/{left-nav-menu-e97f14f5.js → left-nav-menu-64e20f32.js} +1 -1
- package/dist/{left-nav-menu-d0f2ceed.js → left-nav-menu-99d538a2.js} +1 -1
- package/dist/{left-nav-menu-category-heading-b2512d71.js → left-nav-menu-category-heading-10685d87.js} +1 -1
- package/dist/{left-nav-menu-category-heading-d072e8be.js → left-nav-menu-category-heading-3cad8410.js} +1 -1
- package/dist/{left-nav-menu-category-heading-15bd7cc1.js → left-nav-menu-category-heading-afe9b715.js} +1 -1
- package/dist/{left-nav-menu-category-heading-08bcc226.js → left-nav-menu-category-heading-ff2e3512.js} +1 -1
- package/dist/{left-nav-menu-b2cf85ef.js → left-nav-menu-d3380036.js} +2 -2
- package/dist/{left-nav-menu-item-2c76d16d.js → left-nav-menu-item-422d0d6d.js} +1 -1
- package/dist/{left-nav-menu-item-09b9c769.js → left-nav-menu-item-78e4d2a5.js} +1 -1
- package/dist/{left-nav-menu-item-48dfedcd.js → left-nav-menu-item-f5f3a7e8.js} +1 -1
- package/dist/{left-nav-menu-item-52f3deed.js → left-nav-menu-item-f9438da4.js} +1 -1
- package/dist/{left-nav-menu-section-78317ba8.js → left-nav-menu-section-00c7ce54.js} +2 -2
- package/dist/{left-nav-menu-section-def59e81.js → left-nav-menu-section-3c4881da.js} +2 -2
- package/dist/{left-nav-menu-section-091ae115.js → left-nav-menu-section-40ddf1a3.js} +1 -1
- package/dist/{left-nav-menu-section-d9155b33.js → left-nav-menu-section-d6a3caaa.js} +1 -1
- package/dist/{left-nav-overlay-1e839432.js → left-nav-overlay-07a377fe.js} +1 -1
- package/dist/{left-nav-overlay-bec16b74.js → left-nav-overlay-25969a33.js} +1 -1
- package/dist/{left-nav-overlay-cd19ea18.js → left-nav-overlay-3f64a7cc.js} +1 -1
- package/dist/{left-nav-overlay-f5bfe9f7.js → left-nav-overlay-4f8e2088.js} +1 -1
- package/dist/{masthead-composite-0b3e76ae.js → masthead-composite-0430ab6c.js} +37 -37
- package/dist/{masthead-composite-73ff8be3.js → masthead-composite-21baf794.js} +37 -37
- package/dist/{masthead-composite-616cc82c.js → masthead-composite-25fa2353.js} +121 -28
- package/dist/{masthead-composite-40232e01.js → masthead-composite-ed75e8d9.js} +121 -28
- package/dist/{megamenu-category-group-38c3ad64.js → megamenu-category-group-729ee17b.js} +1 -1
- package/dist/{megamenu-category-group-69528b5c.js → megamenu-category-group-87e84c72.js} +1 -1
- package/dist/{megamenu-category-group-add45fab.js → megamenu-category-group-ae916726.js} +1 -1
- package/dist/{megamenu-category-group-copy-4f4f1a02.js → megamenu-category-group-copy-04637781.js} +1 -1
- package/dist/{megamenu-category-group-copy-273e5906.js → megamenu-category-group-copy-1640ad73.js} +1 -1
- package/dist/{megamenu-category-group-copy-721b68b8.js → megamenu-category-group-copy-1c7ee39a.js} +1 -1
- package/dist/{megamenu-category-group-copy-6614c561.js → megamenu-category-group-copy-af0d6014.js} +1 -1
- package/dist/{megamenu-category-group-c57717e0.js → megamenu-category-group-f405cd7c.js} +1 -1
- package/dist/{megamenu-category-link-2e3abe94.js → megamenu-category-link-1a7720d4.js} +1 -1
- package/dist/{megamenu-category-link-472ccfd8.js → megamenu-category-link-90c44442.js} +1 -1
- package/dist/{megamenu-category-link-40438975.js → megamenu-category-link-9534b740.js} +1 -1
- package/dist/{megamenu-category-link-7a71fdd7.js → megamenu-category-link-d0962e43.js} +1 -1
- package/dist/{megamenu-left-navigation-7b5602b2.js → megamenu-left-navigation-95dfe37e.js} +1 -1
- package/dist/{megamenu-left-navigation-58005fa6.js → megamenu-left-navigation-ab5fa05f.js} +1 -1
- package/dist/{megamenu-left-navigation-76c5f3d5.js → megamenu-left-navigation-c8766218.js} +1 -1
- package/dist/{megamenu-left-navigation-bf2d2d80.js → megamenu-left-navigation-da0b8e07.js} +1 -1
- package/dist/{megamenu-overlay-015eefe0.js → megamenu-overlay-3ea916d7.js} +1 -1
- package/dist/{megamenu-overlay-2f51e322.js → megamenu-overlay-7004d7c3.js} +1 -1
- package/dist/{megamenu-overlay-4fc1c16b.js → megamenu-overlay-7e378bee.js} +1 -1
- package/dist/{megamenu-overlay-2dd9bbda.js → megamenu-overlay-af7ca34d.js} +1 -1
- package/es/components/cta-block/cta-block-item-row.d.ts +12 -4
- package/es/components/cta-block/cta-block-item-row.js +29 -3
- package/es/components/cta-block/cta-block-item-row.js.map +1 -1
- package/es/components/pricing-table/pricing-table.css.js +1 -1
- package/es/components/pricing-table/pricing-table.rtl.css.js +1 -1
- package/es/components/structured-list/structured-list.css.js +1 -1
- package/es/components/structured-list/structured-list.rtl.css.js +1 -1
- package/es/components/tabs-extended/tabs-extended.d.ts +19 -351
- package/es/components/tabs-extended/tabs-extended.js +31 -23
- package/es/components/tabs-extended/tabs-extended.js.map +1 -1
- package/es/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js +105 -12
- package/es/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js +105 -12
- package/es/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
- package/es/internal/vendor/@carbon/web-components/components/code-snippet/code-snippet.css.js +1 -1
- package/es/internal/vendor/@carbon/web-components/components/code-snippet/code-snippet.d.ts +25 -2
- package/es/internal/vendor/@carbon/web-components/components/code-snippet/code-snippet.js +132 -74
- package/es/internal/vendor/@carbon/web-components/components/code-snippet/code-snippet.js.map +1 -1
- package/es/internal/vendor/@carbon/web-components/components/code-snippet/code-snippet.rtl.css.js +1 -1
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js +105 -12
- package/lib/internal/vendor/@carbon/ibmdotcom-services/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/StickyHeader/StickyHeader.js +105 -12
- package/lib/internal/vendor/@carbon/ibmdotcom-utilities/utilities/settings/settings.js +2 -2
- package/package.json +6 -6
package/custom-elements.json
CHANGED
|
@@ -24006,6 +24006,16 @@
|
|
|
24006
24006
|
"description": "The context content for the expand button.",
|
|
24007
24007
|
"type": "string"
|
|
24008
24008
|
},
|
|
24009
|
+
{
|
|
24010
|
+
"name": "hasOverflowLeft",
|
|
24011
|
+
"description": "Whether or not the content is scrollable left.",
|
|
24012
|
+
"type": "boolean"
|
|
24013
|
+
},
|
|
24014
|
+
{
|
|
24015
|
+
"name": "hasOverflowRight",
|
|
24016
|
+
"description": "Whether or not the content is scrollable right.",
|
|
24017
|
+
"type": "boolean"
|
|
24018
|
+
},
|
|
24009
24019
|
{
|
|
24010
24020
|
"name": "type",
|
|
24011
24021
|
"description": "The type of code snippet.",
|
package/dist/cloud-masthead.js
CHANGED
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
*/
|
|
77
77
|
|
|
78
78
|
let process = { env: {} };
|
|
79
|
-
import { a6 as _createClass, K as Cookies, a7 as _asyncToGenerator, a8 as regenerator, a9 as axios, aa as _classCallCheck, ae as CLOUD_ACCOUNT_AUTH_API_ACTION, c as css, F as FocusMixin, S as StableSelectorMixin, t as state, a as classMap, h as html, p as property, y as ifNonNull, d as carbonElement, s as settings_1, e as settings, L as LitElement, _ as _decorate$g, q as query, P as _get, Q as _getPrototypeOf, af as styles$4, ag as DDSMastheadGlobalBar, ah as DDSMastheadProfile, n as ifDefined, ai as svgResultCarbonIcon$1, aj as DDSTopNavName, ak as DDSMegaMenu, al as indexOf, am as forEach, an as _objectSpread2, H as HostListenerMixin, u as HostListener, D as FORM_ELEMENT_COLOR_SCHEME, ao as find, m as svgResultCarbonIcon$2, ap as DDSMegaMenuRightNavigation, f as svg, g as spread, z as BXLink, ac as DDSMastheadComposite, aq as UNAUTHENTICATED_STATUS, W as globalInit, ar as NAV_ITEMS_RENDER_TARGET, X as ConnectMixin, Y as store, Z as pickBy, $ as bindActionCreators, a0 as loadLanguage, a1 as setLanguage, a4 as loadTranslation } from './masthead-composite-
|
|
80
|
-
import DDSMegaMenuLeftNavigation from './megamenu-left-navigation-
|
|
79
|
+
import { a6 as _createClass, K as Cookies, a7 as _asyncToGenerator, a8 as regenerator, a9 as axios, aa as _classCallCheck, ae as CLOUD_ACCOUNT_AUTH_API_ACTION, c as css, F as FocusMixin, S as StableSelectorMixin, t as state, a as classMap, h as html, p as property, y as ifNonNull, d as carbonElement, s as settings_1, e as settings, L as LitElement, _ as _decorate$g, q as query, P as _get, Q as _getPrototypeOf, af as styles$4, ag as DDSMastheadGlobalBar, ah as DDSMastheadProfile, n as ifDefined, ai as svgResultCarbonIcon$1, aj as DDSTopNavName, ak as DDSMegaMenu, al as indexOf, am as forEach, an as _objectSpread2, H as HostListenerMixin, u as HostListener, D as FORM_ELEMENT_COLOR_SCHEME, ao as find, m as svgResultCarbonIcon$2, ap as DDSMegaMenuRightNavigation, f as svg, g as spread, z as BXLink, ac as DDSMastheadComposite, aq as UNAUTHENTICATED_STATUS, W as globalInit, ar as NAV_ITEMS_RENDER_TARGET, X as ConnectMixin, Y as store, Z as pickBy, $ as bindActionCreators, a0 as loadLanguage, a1 as setLanguage, a4 as loadTranslation } from './masthead-composite-ed75e8d9.js';
|
|
80
|
+
import DDSMegaMenuLeftNavigation from './megamenu-left-navigation-da0b8e07.js';
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
83
|
* The cookie name for determining user login status for cloud.ibm.com.
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
* https://www.npmjs.com/package/axios
|
|
76
76
|
*/
|
|
77
77
|
|
|
78
|
-
import{a6 as t,K as e,a7 as o,a8 as i,a9 as r,aa as n,ae as s,c as a,F as d,S as l,t as b,a as c,h as x,p,y as h,d as g,s as m,e as f,L as _,_ as v,q as u,P as y,Q as w,af as k,ag as z,ah as E,n as T,ai as P,aj as A,ak as C,al as S,am as D,an as I,H as j,u as $,D as q,ao as O,m as M,ap as F,f as B,g as R,z as N,ac as G,aq as U,W as X,ar as Y,X as L,Y as V,Z as H,$ as K,a0 as Z,a1 as Q,a4 as W}from"./masthead-composite-
|
|
78
|
+
import{a6 as t,K as e,a7 as o,a8 as i,a9 as r,aa as n,ae as s,c as a,F as d,S as l,t as b,a as c,h as x,p,y as h,d as g,s as m,e as f,L as _,_ as v,q as u,P as y,Q as w,af as k,ag as z,ah as E,n as T,ai as P,aj as A,ak as C,al as S,am as D,an as I,H as j,u as $,D as q,ao as O,m as M,ap as F,f as B,g as R,z as N,ac as G,aq as U,W as X,ar as Y,X as L,Y as V,Z as H,$ as K,a0 as Z,a1 as Q,a4 as W}from"./masthead-composite-21baf794.js";import J from"./megamenu-left-navigation-c8766218.js";var tt=function(){function s(){n(this,s)}var a;return t(s,null,[{key:"checkCookie",value:function(){return{user:"1"===e.get("com.ibm.cloud.iam.LoggedIn.prod")?"authenticated":"anonymous"}}},{key:"checkAPI",value:(a=o(i.mark((function t(){var e;return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.get("/api/v6/selected-account?profile=true",{headers:{Accept:"application/json"}}).then((function(t){return 200===t.status?"authenticated":"anonymous"})).catch((function(t){return console.error(t),"anonymous"}));case 2:return e=t.sent,t.abrupt("return",{user:e});case 4:case"end":return t.stop()}}),t)}))),function(){return a.apply(this,arguments)})}]),s}();function et(t){return async e=>{const o="cookie"===t?tt.checkCookie():tt.checkAPI();var i;e((i=o,{type:s.SET_REQUEST_USER_STATUS_IN_PROGRESS,request:i}));try{e(function(t){return{type:s.SET_USER_STATUS,request:t}}(await o))}catch(t){throw e(
|
|
79
79
|
/**
|
|
80
80
|
* @license
|
|
81
81
|
*
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
*/
|
|
77
77
|
|
|
78
78
|
let process = { env: {} };
|
|
79
|
-
import { a6 as _createClass, K as Cookies, a7 as _asyncToGenerator, a8 as regenerator, a9 as axios, aa as _classCallCheck, ae as CLOUD_ACCOUNT_AUTH_API_ACTION, c as css, F as FocusMixin, S as StableSelectorMixin, t as state, a as classMap, h as html, p as property, y as ifNonNull, d as carbonElement, s as settings_1, e as settings, L as LitElement, _ as _decorate$g, q as query, P as _get, Q as _getPrototypeOf, af as styles$4, ag as DDSMastheadGlobalBar, ah as DDSMastheadProfile, n as ifDefined, ai as svgResultCarbonIcon$1, aj as DDSTopNavName, ak as DDSMegaMenu, al as indexOf, am as forEach, an as _objectSpread2, H as HostListenerMixin, u as HostListener, D as FORM_ELEMENT_COLOR_SCHEME, ao as find, m as svgResultCarbonIcon$2, ap as DDSMegaMenuRightNavigation, f as svg, g as spread, z as BXLink, ac as DDSMastheadComposite, aq as UNAUTHENTICATED_STATUS, W as globalInit, ar as NAV_ITEMS_RENDER_TARGET, X as ConnectMixin, Y as store, Z as pickBy, $ as bindActionCreators, a0 as loadLanguage, a1 as setLanguage, a4 as loadTranslation } from './masthead-composite-
|
|
80
|
-
import DDSMegaMenuLeftNavigation from './megamenu-left-navigation-
|
|
79
|
+
import { a6 as _createClass, K as Cookies, a7 as _asyncToGenerator, a8 as regenerator, a9 as axios, aa as _classCallCheck, ae as CLOUD_ACCOUNT_AUTH_API_ACTION, c as css, F as FocusMixin, S as StableSelectorMixin, t as state, a as classMap, h as html, p as property, y as ifNonNull, d as carbonElement, s as settings_1, e as settings, L as LitElement, _ as _decorate$g, q as query, P as _get, Q as _getPrototypeOf, af as styles$4, ag as DDSMastheadGlobalBar, ah as DDSMastheadProfile, n as ifDefined, ai as svgResultCarbonIcon$1, aj as DDSTopNavName, ak as DDSMegaMenu, al as indexOf, am as forEach, an as _objectSpread2, H as HostListenerMixin, u as HostListener, D as FORM_ELEMENT_COLOR_SCHEME, ao as find, m as svgResultCarbonIcon$2, ap as DDSMegaMenuRightNavigation, f as svg, g as spread, z as BXLink, ac as DDSMastheadComposite, aq as UNAUTHENTICATED_STATUS, W as globalInit, ar as NAV_ITEMS_RENDER_TARGET, X as ConnectMixin, Y as store, Z as pickBy, $ as bindActionCreators, a0 as loadLanguage, a1 as setLanguage, a4 as loadTranslation } from './masthead-composite-25fa2353.js';
|
|
80
|
+
import DDSMegaMenuLeftNavigation from './megamenu-left-navigation-95dfe37e.js';
|
|
81
81
|
|
|
82
82
|
/**
|
|
83
83
|
* The cookie name for determining user login status for cloud.ibm.com.
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
* https://www.npmjs.com/package/axios
|
|
76
76
|
*/
|
|
77
77
|
|
|
78
|
-
import{a6 as t,K as e,a7 as o,a8 as i,a9 as r,aa as n,ae as s,c as a,F as d,S as l,t as b,a as c,h as x,p as h,y as p,d as g,s as m,e as f,L as _,_ as v,q as u,P as y,Q as w,af as k,ag as z,ah as E,n as T,ai as P,aj as A,ak as C,al as S,am as D,an as I,H as j,u as $,D as q,ao as O,m as M,ap as F,f as B,g as R,z as N,ac as G,aq as U,W as X,ar as Y,X as L,Y as V,Z as H,$ as K,a0 as Z,a1 as Q,a4 as W}from"./masthead-composite-
|
|
78
|
+
import{a6 as t,K as e,a7 as o,a8 as i,a9 as r,aa as n,ae as s,c as a,F as d,S as l,t as b,a as c,h as x,p as h,y as p,d as g,s as m,e as f,L as _,_ as v,q as u,P as y,Q as w,af as k,ag as z,ah as E,n as T,ai as P,aj as A,ak as C,al as S,am as D,an as I,H as j,u as $,D as q,ao as O,m as M,ap as F,f as B,g as R,z as N,ac as G,aq as U,W as X,ar as Y,X as L,Y as V,Z as H,$ as K,a0 as Z,a1 as Q,a4 as W}from"./masthead-composite-0430ab6c.js";import J from"./megamenu-left-navigation-ab5fa05f.js";var tt=function(){function s(){n(this,s)}var a;return t(s,null,[{key:"checkCookie",value:function(){return{user:"1"===e.get("com.ibm.cloud.iam.LoggedIn.prod")?"authenticated":"anonymous"}}},{key:"checkAPI",value:(a=o(i.mark((function t(){var e;return i.wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,r.get("/api/v6/selected-account?profile=true",{headers:{Accept:"application/json"}}).then((function(t){return 200===t.status?"authenticated":"anonymous"})).catch((function(t){return console.error(t),"anonymous"}));case 2:return e=t.sent,t.abrupt("return",{user:e});case 4:case"end":return t.stop()}}),t)}))),function(){return a.apply(this,arguments)})}]),s}();function et(t){return async e=>{const o="cookie"===t?tt.checkCookie():tt.checkAPI();var i;e((i=o,{type:s.SET_REQUEST_USER_STATUS_IN_PROGRESS,request:i}));try{e(function(t){return{type:s.SET_USER_STATUS,request:t}}(await o))}catch(t){throw e(
|
|
79
79
|
/**
|
|
80
80
|
* @license
|
|
81
81
|
*
|
package/dist/dotcom-shell.js
CHANGED
package/dist/dotcom-shell.min.js
CHANGED
|
@@ -75,4 +75,4 @@
|
|
|
75
75
|
* https://www.npmjs.com/package/axios
|
|
76
76
|
*/
|
|
77
77
|
|
|
78
|
-
import"./ibmdotcom-web-components-dotcom-shell.min.js";import"./masthead-composite-
|
|
78
|
+
import"./ibmdotcom-web-components-dotcom-shell.min.js";import"./masthead-composite-21baf794.js";import"./20-b23df4bc.js";
|
package/dist/dotcom-shell.rtl.js
CHANGED
|
@@ -75,4 +75,4 @@
|
|
|
75
75
|
* https://www.npmjs.com/package/axios
|
|
76
76
|
*/
|
|
77
77
|
|
|
78
|
-
import"./ibmdotcom-web-components-dotcom-shell.rtl.min.js";import"./masthead-composite-
|
|
78
|
+
import"./ibmdotcom-web-components-dotcom-shell.rtl.min.js";import"./masthead-composite-0430ab6c.js";import"./20-8a4fd671.js";
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
*/
|
|
77
77
|
|
|
78
78
|
let process = { env: {} };
|
|
79
|
-
import { l as lib, b as breakpoints, r as render, c as css, S as StableSelectorMixin, p as property, h as html, a as classMap, d as carbonElement, s as settings_1, e as settings$1, L as LitElement, f as svg, g as spread, B as BXDropdown, q as query, i as indexOf, j as forEach, k as svgResultCarbonIcon$k, m as svgResultCarbonIcon$l, n as ifDefined, o as findIndex, H as HostListenerMixin, t as state, u as HostListener, v as on, w as selectorTabbable, _ as _decorate$v, F as FocusMixin, x as svgResultCarbonIcon$m, y as ifNonNull, C as CTA_TYPE, z as BXLink, A as StickyHeader, V as ValidityMixin, D as FORM_ELEMENT_COLOR_SCHEME, E as FormMixin, G as root, I as toNumber, J as isObject, K as Cookies, M as LocaleAPI, N as spread$1, O as filter, P as _get$d, Q as _getPrototypeOf$d, R as DROPDOWN_SIZE$1, T as styles$d, U as LocaleAPI$1, W as globalInit, X as ConnectMixin, Y as store, Z as pickBy, $ as bindActionCreators, a0 as loadLanguage, a1 as setLanguage, a2 as loadLocaleList, a3 as setLocaleList, a4 as loadTranslation, a5 as setTranslation, a6 as _createClass$1, a7 as _asyncToGenerator, a8 as regenerator, a9 as axios, aa as _classCallCheck$1, ab as PROFILE_API_ACTION, ac as DDSMastheadComposite, ad as UNAUTHENTICATED_STATUS } from './masthead-composite-
|
|
80
|
-
import { s as svgResultCarbonIcon$n } from './20-
|
|
79
|
+
import { l as lib, b as breakpoints, r as render, c as css, S as StableSelectorMixin, p as property, h as html, a as classMap, d as carbonElement, s as settings_1, e as settings$1, L as LitElement, f as svg, g as spread, B as BXDropdown, q as query, i as indexOf, j as forEach, k as svgResultCarbonIcon$k, m as svgResultCarbonIcon$l, n as ifDefined, o as findIndex, H as HostListenerMixin, t as state, u as HostListener, v as on, w as selectorTabbable, _ as _decorate$v, F as FocusMixin, x as svgResultCarbonIcon$m, y as ifNonNull, C as CTA_TYPE, z as BXLink, A as StickyHeader, V as ValidityMixin, D as FORM_ELEMENT_COLOR_SCHEME, E as FormMixin, G as root, I as toNumber, J as isObject, K as Cookies, M as LocaleAPI, N as spread$1, O as filter, P as _get$d, Q as _getPrototypeOf$d, R as DROPDOWN_SIZE$1, T as styles$d, U as LocaleAPI$1, W as globalInit, X as ConnectMixin, Y as store, Z as pickBy, $ as bindActionCreators, a0 as loadLanguage, a1 as setLanguage, a2 as loadLocaleList, a3 as setLocaleList, a4 as loadTranslation, a5 as setTranslation, a6 as _createClass$1, a7 as _asyncToGenerator, a8 as regenerator, a9 as axios, aa as _classCallCheck$1, ab as PROFILE_API_ACTION, ac as DDSMastheadComposite, ad as UNAUTHENTICATED_STATUS } from './masthead-composite-ed75e8d9.js';
|
|
80
|
+
import { s as svgResultCarbonIcon$n } from './20-2b2408d2.js';
|
|
81
81
|
|
|
82
82
|
function _defineProperty$5(obj, key, value) { key = _toPropertyKey$z(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
83
83
|
function _toPropertyKey$z(arg) { var key = _toPrimitive$z(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
@@ -560,10 +560,10 @@ const svgResultCarbonIcon$j = ({ children, ...attrs } = {}) =>
|
|
|
560
560
|
* @exports ibmdotcom.settings
|
|
561
561
|
* @type {object} Settings object
|
|
562
562
|
* @property {string} [prefix=dds]
|
|
563
|
-
* Carbon for IBM.com v1.
|
|
563
|
+
* Carbon for IBM.com v1.60.0',
|
|
564
564
|
*/
|
|
565
565
|
var settings = {
|
|
566
|
-
version: 'Carbon for IBM.com v1.
|
|
566
|
+
version: 'Carbon for IBM.com v1.60.0',
|
|
567
567
|
stablePrefix: 'dds'
|
|
568
568
|
};
|
|
569
569
|
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
* https://www.npmjs.com/package/axios
|
|
76
76
|
*/
|
|
77
77
|
|
|
78
|
-
let t,e,o={env:{}};import{l as i,b as r,r as n,c as s,S as a,p as d,h as l,a as c,d as b,s as x,e as g,L as p,f as h,g as f,B as m,q as _,i as u,j as v,k as y,m as w,n as k,o as z,H as E,t as P,u as C,v as T,w as S,_ as A,F as q,x as D,y as M,C as j,z as $,A as I,V as O,D as L,E as B,G as R,I as F,J as V,K as X,M as N,N as G,O as H,P as U,Q as Y,R as Z,T as W,U as Q,W as K,X as J,Y as tt,Z as et,$ as ot,a0 as it,a1 as rt,a2 as nt,a3 as st,a4 as at,a5 as dt,a6 as lt,a7 as ct,a8 as bt,a9 as xt,aa as gt,ab as pt,ac as ht,ad as ft}from"./masthead-composite-
|
|
78
|
+
let t,e,o={env:{}};import{l as i,b as r,r as n,c as s,S as a,p as d,h as l,a as c,d as b,s as x,e as g,L as p,f as h,g as f,B as m,q as _,i as u,j as v,k as y,m as w,n as k,o as z,H as E,t as P,u as C,v as T,w as S,_ as A,F as q,x as D,y as M,C as j,z as $,A as I,V as O,D as L,E as B,G as R,I as F,J as V,K as X,M as N,N as G,O as H,P as U,Q as Y,R as Z,T as W,U as Q,W as K,X as J,Y as tt,Z as et,$ as ot,a0 as it,a1 as rt,a2 as nt,a3 as st,a4 as at,a5 as dt,a6 as lt,a7 as ct,a8 as bt,a9 as xt,aa as gt,ab as pt,ac as ht,ad as ft}from"./masthead-composite-21baf794.js";import{s as mt}from"./20-b23df4bc.js";function _t(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}!function(t){t.SM="sm",t.MD="md",t.LG="lg",t.XLG="xlg",t.MAX="max"}(t||(t={})),function(t){t.MIN="min",t.MAX="max"}(e||(e={}));const ut=(t,o)=>class extends t{constructor(...t){super(...t),_t(this,"_mqConfig",o),_t(this,"carbonBreakpoints",this._generateMediaQueriesByBreakpoint())}_generateMediaQueriesByBreakpoint(){const{_mqConfig:t}=this,e=Object.keys(t),o={};return e.forEach((e=>{o[e]=i.matchMedia(`(${t[e]}-width: ${r[e].width})`)})),o}_attachMediaQueryEventListeners(){const{_mqConfig:t,carbonBreakpoints:o}=this;Object.keys(o).forEach((o=>{const i=`mediaQueryCallback${t[o]===e.MAX?`${t[o][0].toUpperCase()}${t[o].slice(1)}`:""}${o.toUpperCase()}`;"function"==typeof this[i]?this.carbonBreakpoints[o].addEventListener("change",this[i].bind(this)):console.warn(`MediaQueryMixin: Element ${this.nodeName} has not defined a callback for the "${o}" breakpoint. Please remove the breakpoint from the mixin configuration or implement the following method: ${i}`)}))}firstUpdated(){this._attachMediaQueryEventListeners(),super.firstUpdated()}};function vt(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const yt=t=>class extends t{constructor(...t){super(...t),vt(this,"lightRenderRoot",null)}createLightRenderRoot(){return this}update(t){super.update(t),this.lightRenderRoot||(this.lightRenderRoot=this.createLightRenderRoot());const{lightRenderRoot:e}=this;e&&n(this.renderLightDOM(),e,{eventContext:this})}};function wt(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const kt=(t,e)=>{const o=t.closest(e);if(o)return o;const{host:i}=t.getRootNode();return i?kt(i,e):null};
|
|
79
79
|
/**
|
|
80
80
|
* @license
|
|
81
81
|
*
|
|
@@ -93,7 +93,7 @@ let zt,Et,Pt,Ct,Tt;!function(t){t.REGULAR="",t.SHORT="short",t.MICRO="micro"}(zt
|
|
|
93
93
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
94
94
|
* LICENSE file in the root directory of this source tree.
|
|
95
95
|
*/
|
|
96
|
-
const Nt=({children:t,...e}={})=>h`<svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" fill="currentColor" ...="${f(e)}" aria-hidden="true" width="16" height="16" viewBox="0 0 32 32">${t}${t}${t}<path d="M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"></path></svg>`;let Gt,Ht,Ut,Yt,Zt=t=>t;function Wt(){Wt=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach((function(o){e.forEach((function(e){e.kind===o&&"own"===e.placement&&this.defineClassElement(t,e)}),this)}),this)},initializeClassElements:function(t,e){var o=t.prototype;["method","field"].forEach((function(i){e.forEach((function(e){var r=e.placement;if(e.kind===i&&("static"===r||"prototype"===r)){var n="static"===r?t:o;this.defineClassElement(n,e)}}),this)}),this)},defineClassElement:function(t,e){var o=e.descriptor;if("field"===e.kind){var i=e.initializer;o={enumerable:o.enumerable,writable:o.writable,configurable:o.configurable,value:void 0===i?void 0:i.call(t)}}Object.defineProperty(t,e.key,o)},decorateClass:function(t,e){var o=[],i=[],r={static:[],prototype:[],own:[]};if(t.forEach((function(t){this.addElementPlacement(t,r)}),this),t.forEach((function(t){if(!Jt(t))return o.push(t);var e=this.decorateElement(t,r);o.push(e.element),o.push.apply(o,e.extras),i.push.apply(i,e.finishers)}),this),!e)return{elements:o,finishers:i};var n=this.decorateConstructor(o,e);return i.push.apply(i,n.finishers),n.finishers=i,n},addElementPlacement:function(t,e,o){var i=e[t.placement];if(!o&&-1!==i.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");i.push(t.key)},decorateElement:function(t,e){for(var o=[],i=[],r=t.decorators,n=r.length-1;n>=0;n--){var s=e[t.placement];s.splice(s.indexOf(t.key),1);var a=this.fromElementDescriptor(t),d=this.toElementFinisherExtras((0,r[n])(a)||a);t=d.element,this.addElementPlacement(t,e),d.finisher&&i.push(d.finisher);var l=d.extras;if(l){for(var c=0;c<l.length;c++)this.addElementPlacement(l[c],e);o.push.apply(o,l)}}return{element:t,finishers:i,extras:o}},decorateConstructor:function(t,e){for(var o=[],i=e.length-1;i>=0;i--){var r=this.fromClassDescriptor(t),n=this.toClassDescriptor((0,e[i])(r)||r);if(void 0!==n.finisher&&o.push(n.finisher),void 0!==n.elements){t=n.elements;for(var s=0;s<t.length-1;s++)for(var a=s+1;a<t.length;a++)if(t[s].key===t[a].key&&t[s].placement===t[a].placement)throw new TypeError("Duplicated element ("+t[s].key+")")}}return{elements:t,finishers:o}},fromElementDescriptor:function(t){var e={kind:t.kind,key:t.key,placement:t.placement,descriptor:t.descriptor};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===t.kind&&(e.initializer=t.initializer),e},toElementDescriptors:function(t){var e;if(void 0!==t)return(e=t,function(t){if(Array.isArray(t))return t}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return ie(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ie(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(t){var e=this.toElementDescriptor(t);return this.disallowProperty(t,"finisher","An element descriptor"),this.disallowProperty(t,"extras","An element descriptor"),e}),this)},toElementDescriptor:function(t){var e=String(t.kind);if("method"!==e&&"field"!==e)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+e+'"');var o=oe(t.key),i=String(t.placement);if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+i+'"');var r=t.descriptor;this.disallowProperty(t,"elements","An element descriptor");var n={kind:e,key:o,placement:i,descriptor:Object.assign({},r)};return"field"!==e?this.disallowProperty(t,"initializer","A method descriptor"):(this.disallowProperty(r,"get","The property descriptor of a field descriptor"),this.disallowProperty(r,"set","The property descriptor of a field descriptor"),this.disallowProperty(r,"value","The property descriptor of a field descriptor"),n.initializer=t.initializer),n},toElementFinisherExtras:function(t){return{element:this.toElementDescriptor(t),finisher:ee(t,"finisher"),extras:this.toElementDescriptors(t.extras)}},fromClassDescriptor:function(t){var e={kind:"class",elements:t.map(this.fromElementDescriptor,this)};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),e},toClassDescriptor:function(t){var e=String(t.kind);if("class"!==e)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+e+'"');this.disallowProperty(t,"key","A class descriptor"),this.disallowProperty(t,"placement","A class descriptor"),this.disallowProperty(t,"descriptor","A class descriptor"),this.disallowProperty(t,"initializer","A class descriptor"),this.disallowProperty(t,"extras","A class descriptor");var o=ee(t,"finisher");return{elements:this.toElementDescriptors(t.elements),finisher:o}},runClassFinishers:function(t,e){for(var o=0;o<e.length;o++){var i=(0,e[o])(t);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");t=i}}return t},disallowProperty:function(t,e,o){if(void 0!==t[e])throw new TypeError(o+" can't have a ."+e+" property.")}};return t}function Qt(t){var e,o=oe(t.key);"method"===t.kind?e={value:t.value,writable:!0,configurable:!0,enumerable:!1}:"get"===t.kind?e={get:t.value,configurable:!0,enumerable:!1}:"set"===t.kind?e={set:t.value,configurable:!0,enumerable:!1}:"field"===t.kind&&(e={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===t.kind?"field":"method",key:o,placement:t.static?"static":"field"===t.kind?"own":"prototype",descriptor:e};return t.decorators&&(i.decorators=t.decorators),"field"===t.kind&&(i.initializer=t.value),i}function Kt(t,e){void 0!==t.descriptor.get?e.descriptor.get=t.descriptor.get:e.descriptor.set=t.descriptor.set}function Jt(t){return t.decorators&&t.decorators.length}function te(t){return void 0!==t&&!(void 0===t.value&&void 0===t.writable)}function ee(t,e){var o=t[e];if(void 0!==o&&"function"!=typeof o)throw new TypeError("Expected '"+e+"' to be a function");return o}function oe(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function ie(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,i=new Array(e);o<e;o++)i[o]=t[o];return i}const{stablePrefix:re}={version:"Carbon for IBM.com v1.59.0",stablePrefix:"dds"},{prefix:ne}=x;let se,ae,de=function(t,e,o,i){var r=Wt();if(i)for(var n=0;n<i.length;n++)r=i[n](r);var s=e((function(t){r.initializeInstanceElements(t,a.elements)}),o),a=r.decorateClass(function(t){for(var e=[],o=function(t){return"method"===t.kind&&t.key===n.key&&t.placement===n.placement},i=0;i<t.length;i++){var r,n=t[i];if("method"===n.kind&&(r=e.find(o)))if(te(n.descriptor)||te(r.descriptor)){if(Jt(n)||Jt(r))throw new ReferenceError("Duplicated methods ("+n.key+") can't be decorated.");r.descriptor=n.descriptor}else{if(Jt(n)){if(Jt(r))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+n.key+").");r.decorators=n.decorators}Kt(n,r)}else e.push(n)}return e}(s.d.map(Qt)),t);return r.initializeClassElements(s.F,a.elements),r.runClassFinishers(s.F,a.finishers)}([b(`${re}-dropdown`)],(function(t,e){return{F:class extends e{constructor(...e){super(...e),t(this)}},d:[{kind:"field",decorators:[_("input")],key:"_inputNode",value:void 0},{kind:"field",decorators:[d({attribute:!1})],key:"formatSelectedItemStatusText",value:()=>({latestSelection:t,currentItem:e})=>""===e?`${t}`:`${t}, Current input is: ${e}`},{kind:"method",key:"_navigate",value:function(t){const e=this.constructor,o=this.querySelectorAll(e.selectorItem),i=this.querySelector(e.selectorItemHighlighted);let r=u(o,i)+t;r<0&&(r=o.length-1),r>=o.length&&(r=0),v(o,((t,e)=>{t.highlighted=e===r}));const n=o[r];n.scrollIntoView({block:"nearest"});const s=n.textContent;s&&(this._assistiveStatusText=this.formatSelectedItemStatusText({latestSelection:`${s}`,currentItem:`${this._inputNode.value}`})),this.requestUpdate()}},{kind:"method",key:"render",value:function(){const{colorScheme:t,disabled:e,helperText:o,invalid:i,labelText:r,open:n,toggleLabelClosed:s,toggleLabelOpen:a,size:d,type:b,validityMessage:x,_assistiveStatusText:g,_shouldTriggerBeFocusable:p,_handleClickInner:h,_handleKeydownInner:f,_handleKeypressInner:m,_handleSlotchangeHelperText:_,_handleSlotchangeLabelText:u,_slotHelperTextNode:v,_slotLabelTextNode:z}=this,E=b===Tt.INLINE,P=this.querySelectorAll(this.constructor.selectorItemSelected).length,C=c({[`${ne}--dropdown`]:!0,[`${ne}--list-box`]:!0,[`${ne}--list-box--${t}`]:t,[`${ne}--list-box--disabled`]:e,[`${ne}--list-box--inline`]:E,[`${ne}--list-box--expanded`]:n,[`${ne}--list-box--${d}`]:d,[`${ne}--dropdown--invalid`]:i,[`${ne}--dropdown--inline`]:E,[`${ne}--dropdown--selected`]:P>0}),T=c({[`${ne}--label`]:!0,[`${ne}--label-visually-hidden`]:!0,[`${ne}--label--disabled`]:e}),S=c({[`${ne}--form__helper-text`]:!0,[`${ne}--form__helper-text--disabled`]:e}),A=c({[`${ne}--list-box__menu-icon`]:!0,[`${ne}--list-box__menu-icon--open`]:n}),q=(n?a:s)||void 0,D=o||v&&v.assignedNodes().length>0,M=r||z&&z.assignedNodes().length>0,j=i?l(Ht||(Ht=Zt`<div part="validity-message" class="${0}"><slot name="validity-message">${0}</slot></div>`),`${ne}--form-requirement`,x):l(Gt||(Gt=Zt`<div part="helper-text" class="${0}" ?hidden="${0}"><slot name="helper-text" @slotchange="${0}">${0}</slot></div>`),S,E||!D,_,o),$=i?y({class:`${ne}--list-box__invalid-icon`,"aria-label":q}):void 0,I=n?l(Ut||(Ut=Zt`<div id="menu-body" part="menu-body" class="${0}--list-box__menu" role="listbox" tabindex="-1"><slot></slot></div>`),ne):void 0;return l(Yt||(Yt=Zt`<label part="label-text" class="${0}" ?hidden="${0}"><slot name="label-text" @slotchange="${0}">${0}</slot></label><div class="${0}" ?data-invalid="${0}" @click="${0}" @keydown="${0}" @keypress="${0}">${0}<div part="trigger-button" role="button" class="${0}--list-box__field" tabindex="${0}" aria-labelledby="trigger-label" aria-expanded="${0}" aria-haspopup="listbox" aria-owns="menu-body" aria-controls="menu-body">${0}${0}${0}<div class="${0}">${0}</div></div>${0}</div>${0}<div id="assistiveStatus" class="${0}--assistive-text" role="status" aria-live="assertive" aria-relevant="additions text">${0}</div>`),T,!M,u,r,C,i,h,f,m,$,ne,k(p?"0":void 0),String(n),this._renderPrecedingTriggerContent(),this._renderTriggerContent(),this._renderFollowingTriggerContent(),A,w({"aria-label":q}),I,j,ne,g)}}]}}),m),le=t=>t;function ce(){ce=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach((function(o){e.forEach((function(e){e.kind===o&&"own"===e.placement&&this.defineClassElement(t,e)}),this)}),this)},initializeClassElements:function(t,e){var o=t.prototype;["method","field"].forEach((function(i){e.forEach((function(e){var r=e.placement;if(e.kind===i&&("static"===r||"prototype"===r)){var n="static"===r?t:o;this.defineClassElement(n,e)}}),this)}),this)},defineClassElement:function(t,e){var o=e.descriptor;if("field"===e.kind){var i=e.initializer;o={enumerable:o.enumerable,writable:o.writable,configurable:o.configurable,value:void 0===i?void 0:i.call(t)}}Object.defineProperty(t,e.key,o)},decorateClass:function(t,e){var o=[],i=[],r={static:[],prototype:[],own:[]};if(t.forEach((function(t){this.addElementPlacement(t,r)}),this),t.forEach((function(t){if(!ge(t))return o.push(t);var e=this.decorateElement(t,r);o.push(e.element),o.push.apply(o,e.extras),i.push.apply(i,e.finishers)}),this),!e)return{elements:o,finishers:i};var n=this.decorateConstructor(o,e);return i.push.apply(i,n.finishers),n.finishers=i,n},addElementPlacement:function(t,e,o){var i=e[t.placement];if(!o&&-1!==i.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");i.push(t.key)},decorateElement:function(t,e){for(var o=[],i=[],r=t.decorators,n=r.length-1;n>=0;n--){var s=e[t.placement];s.splice(s.indexOf(t.key),1);var a=this.fromElementDescriptor(t),d=this.toElementFinisherExtras((0,r[n])(a)||a);t=d.element,this.addElementPlacement(t,e),d.finisher&&i.push(d.finisher);var l=d.extras;if(l){for(var c=0;c<l.length;c++)this.addElementPlacement(l[c],e);o.push.apply(o,l)}}return{element:t,finishers:i,extras:o}},decorateConstructor:function(t,e){for(var o=[],i=e.length-1;i>=0;i--){var r=this.fromClassDescriptor(t),n=this.toClassDescriptor((0,e[i])(r)||r);if(void 0!==n.finisher&&o.push(n.finisher),void 0!==n.elements){t=n.elements;for(var s=0;s<t.length-1;s++)for(var a=s+1;a<t.length;a++)if(t[s].key===t[a].key&&t[s].placement===t[a].placement)throw new TypeError("Duplicated element ("+t[s].key+")")}}return{elements:t,finishers:o}},fromElementDescriptor:function(t){var e={kind:t.kind,key:t.key,placement:t.placement,descriptor:t.descriptor};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===t.kind&&(e.initializer=t.initializer),e},toElementDescriptors:function(t){var e;if(void 0!==t)return(e=t,function(t){if(Array.isArray(t))return t}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return me(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?me(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(t){var e=this.toElementDescriptor(t);return this.disallowProperty(t,"finisher","An element descriptor"),this.disallowProperty(t,"extras","An element descriptor"),e}),this)},toElementDescriptor:function(t){var e=String(t.kind);if("method"!==e&&"field"!==e)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+e+'"');var o=fe(t.key),i=String(t.placement);if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+i+'"');var r=t.descriptor;this.disallowProperty(t,"elements","An element descriptor");var n={kind:e,key:o,placement:i,descriptor:Object.assign({},r)};return"field"!==e?this.disallowProperty(t,"initializer","A method descriptor"):(this.disallowProperty(r,"get","The property descriptor of a field descriptor"),this.disallowProperty(r,"set","The property descriptor of a field descriptor"),this.disallowProperty(r,"value","The property descriptor of a field descriptor"),n.initializer=t.initializer),n},toElementFinisherExtras:function(t){return{element:this.toElementDescriptor(t),finisher:he(t,"finisher"),extras:this.toElementDescriptors(t.extras)}},fromClassDescriptor:function(t){var e={kind:"class",elements:t.map(this.fromElementDescriptor,this)};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),e},toClassDescriptor:function(t){var e=String(t.kind);if("class"!==e)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+e+'"');this.disallowProperty(t,"key","A class descriptor"),this.disallowProperty(t,"placement","A class descriptor"),this.disallowProperty(t,"descriptor","A class descriptor"),this.disallowProperty(t,"initializer","A class descriptor"),this.disallowProperty(t,"extras","A class descriptor");var o=he(t,"finisher");return{elements:this.toElementDescriptors(t.elements),finisher:o}},runClassFinishers:function(t,e){for(var o=0;o<e.length;o++){var i=(0,e[o])(t);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");t=i}}return t},disallowProperty:function(t,e,o){if(void 0!==t[e])throw new TypeError(o+" can't have a ."+e+" property.")}};return t}function be(t){var e,o=fe(t.key);"method"===t.kind?e={value:t.value,writable:!0,configurable:!0,enumerable:!1}:"get"===t.kind?e={get:t.value,configurable:!0,enumerable:!1}:"set"===t.kind?e={set:t.value,configurable:!0,enumerable:!1}:"field"===t.kind&&(e={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===t.kind?"field":"method",key:o,placement:t.static?"static":"field"===t.kind?"own":"prototype",descriptor:e};return t.decorators&&(i.decorators=t.decorators),"field"===t.kind&&(i.initializer=t.value),i}function xe(t,e){void 0!==t.descriptor.get?e.descriptor.get=t.descriptor.get:e.descriptor.set=t.descriptor.set}function ge(t){return t.decorators&&t.decorators.length}function pe(t){return void 0!==t&&!(void 0===t.value&&void 0===t.writable)}function he(t,e){var o=t[e];if(void 0!==o&&"function"!=typeof o)throw new TypeError("Expected '"+e+"' to be a function");return o}function fe(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function me(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,i=new Array(e);o<e;o++)i[o]=t[o];return i}function _e(){return _e="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,o){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ue(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:o):r.value}},_e.apply(this,arguments)}function ue(t){return ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ue(t)}const{stablePrefix:ve}=g,{prefix:ye}=x;let we=function(t,e,o,i){var r=ce();if(i)for(var n=0;n<i.length;n++)r=i[n](r);var s=e((function(t){r.initializeInstanceElements(t,a.elements)}),o),a=r.decorateClass(function(t){for(var e=[],o=function(t){return"method"===t.kind&&t.key===n.key&&t.placement===n.placement},i=0;i<t.length;i++){var r,n=t[i];if("method"===n.kind&&(r=e.find(o)))if(pe(n.descriptor)||pe(r.descriptor)){if(ge(n)||ge(r))throw new ReferenceError("Duplicated methods ("+n.key+") can't be decorated.");r.descriptor=n.descriptor}else{if(ge(n)){if(ge(r))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+n.key+").");r.decorators=n.decorators}xe(n,r)}else e.push(n)}return e}(s.d.map(be)),t);return r.initializeClassElements(s.F,a.elements),r.runClassFinishers(s.F,a.finishers)}([b(`${ve}-combo-box`)],(function(t,e){class o extends e{constructor(...e){super(...e),t(this)}}return{F:o,d:[{kind:"field",key:"_filterInputValue",value:()=>""},{kind:"field",key:"_shouldTriggerBeFocusable",value:()=>!1},{kind:"field",decorators:[_("#selection-button")],key:"_selectionButtonNode",value:void 0},{kind:"field",decorators:[_("input")],key:"_filterInputNode",value:void 0},{kind:"method",key:"_testItemWithQueryText",value:function(t){return(this.itemMatches||this._defaultItemMatches)(t,this._filterInputNode.value)}},{kind:"method",key:"_defaultItemMatches",value:function(t,e){return t.textContent.toLowerCase().indexOf(e.toLowerCase())>=0}},{kind:"method",key:"_handleInput",value:function(){const t=this.querySelectorAll(this.constructor.selectorItem),e=this._filterInputNode.value?z(t,this._testItemWithQueryText,this):-1;v(t,((t,o)=>{t.highlighted=o===e}));const{_filterInputNode:o}=this;this._filterInputValue=o?o.value:"",this.open=!0,this.requestUpdate()}},{kind:"method",key:"_handleClickInner",value:function(t){var e;null!==(e=this._selectionButtonNode)&&void 0!==e&&e.contains(t.target)?this._handleUserInitiatedClearInput():_e(ue(o.prototype),"_handleClickInner",this).call(this,t)}},{kind:"method",key:"_handleKeypressInner",value:function(t){var e;const{key:i}=t,r=this.constructor.getAction(i),{TRIGGERING:n}=Pt;null===(e=this._selectionButtonNode)||void 0===e||!e.contains(t.target)||r!==n&&" "!==i?_e(ue(o.prototype),"_handleKeypressInner",this).call(this,t):this._handleUserInitiatedClearInput()}},{kind:"method",key:"_handleUserInitiatedClearInput",value:function(){v(this.querySelectorAll(this.constructor.selectorItem),(t=>{t.highlighted=!1})),this._filterInputValue="",this._filterInputNode.focus(),this.open=!1,this.requestUpdate()}},{kind:"method",key:"_handleUserInitiatedSelectItem",value:function(t){t&&!this._selectionShouldChange(t)&&(this._filterInputValue=t.textContent||"",this.open=!1,this.requestUpdate()),_e(ue(o.prototype),"_handleUserInitiatedSelectItem",this).call(this,t)}},{kind:"method",key:"_renderTriggerContent",value:function(){const{disabled:t,triggerContent:e,_filterInputValue:o,_handleInput:i}=this;return l(se||(se=le`<input id="trigger-label" class="${0}--text-input" ?disabled="${0}" placeholder="${0}" .value="${0}" role="combobox" aria-expanded="${0}" aria-labelledby="assistiveStatus" aria-controls="menu-body" aria-autocomplete="list" @input="${0}">`),ye,t,e,o,this.open,i)}},{kind:"method",key:"_renderFollowingTriggerContent",value:function(){const{clearSelectionLabel:t,_filterInputValue:e}=this;return 0===e.length?void 0:l(ae||(ae=le`<div id="selection-button" role="button" class="${0}--list-box__selection" tabindex="0" title="${0}">${0}</div>`),ye,t,Nt({"aria-label":t}))}},{kind:"field",decorators:[d({attribute:"clear-selection-label"})],key:"clearSelectionLabel",value:()=>""},{kind:"field",decorators:[d({attribute:!1})],key:"itemMatches",value:void 0},{kind:"method",key:"shouldUpdate",value:function(t){_e(ue(o.prototype),"shouldUpdate",this).call(this,t);const{_selectedItemContent:e}=this;return e&&t.has("value")&&(this._filterInputValue=(null==e?void 0:e.textContent)||""),!0}},{kind:"method",key:"updated",value:function(t){_e(ue(o.prototype),"updated",this).call(this,t);const{_listBoxNode:e}=this;e&&e.classList.add(`${ye}--combo-box`)}},{kind:"field",static:!0,key:"TRIGGER_KEYS",value:()=>new Set(["Enter"])},{kind:"get",static:!0,key:"selectorItemHighlighted",value:function(){return`${ye}-combo-box-item[highlighted]`}},{kind:"get",static:!0,key:"selectorItem",value:function(){return`${ye}-combo-box-item`}},{kind:"get",static:!0,key:"selectorItemSelected",value:function(){return`${ye}-combo-box-item[selected]`}},{kind:"get",static:!0,key:"eventBeforeToggle",value:function(){return`${ye}-combo-box-beingtoggled`}},{kind:"get",static:!0,key:"eventToggle",value:function(){return`${ye}-combo-box-toggled`}},{kind:"get",static:!0,key:"eventBeforeSelect",value:function(){return`${ye}-combo-box-beingselected`}},{kind:"get",static:!0,key:"eventSelect",value:function(){return`${ye}-combo-box-selected`}}]}}),de);
|
|
96
|
+
const Nt=({children:t,...e}={})=>h`<svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" fill="currentColor" ...="${f(e)}" aria-hidden="true" width="16" height="16" viewBox="0 0 32 32">${t}${t}${t}<path d="M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"></path></svg>`;let Gt,Ht,Ut,Yt,Zt=t=>t;function Wt(){Wt=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach((function(o){e.forEach((function(e){e.kind===o&&"own"===e.placement&&this.defineClassElement(t,e)}),this)}),this)},initializeClassElements:function(t,e){var o=t.prototype;["method","field"].forEach((function(i){e.forEach((function(e){var r=e.placement;if(e.kind===i&&("static"===r||"prototype"===r)){var n="static"===r?t:o;this.defineClassElement(n,e)}}),this)}),this)},defineClassElement:function(t,e){var o=e.descriptor;if("field"===e.kind){var i=e.initializer;o={enumerable:o.enumerable,writable:o.writable,configurable:o.configurable,value:void 0===i?void 0:i.call(t)}}Object.defineProperty(t,e.key,o)},decorateClass:function(t,e){var o=[],i=[],r={static:[],prototype:[],own:[]};if(t.forEach((function(t){this.addElementPlacement(t,r)}),this),t.forEach((function(t){if(!Jt(t))return o.push(t);var e=this.decorateElement(t,r);o.push(e.element),o.push.apply(o,e.extras),i.push.apply(i,e.finishers)}),this),!e)return{elements:o,finishers:i};var n=this.decorateConstructor(o,e);return i.push.apply(i,n.finishers),n.finishers=i,n},addElementPlacement:function(t,e,o){var i=e[t.placement];if(!o&&-1!==i.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");i.push(t.key)},decorateElement:function(t,e){for(var o=[],i=[],r=t.decorators,n=r.length-1;n>=0;n--){var s=e[t.placement];s.splice(s.indexOf(t.key),1);var a=this.fromElementDescriptor(t),d=this.toElementFinisherExtras((0,r[n])(a)||a);t=d.element,this.addElementPlacement(t,e),d.finisher&&i.push(d.finisher);var l=d.extras;if(l){for(var c=0;c<l.length;c++)this.addElementPlacement(l[c],e);o.push.apply(o,l)}}return{element:t,finishers:i,extras:o}},decorateConstructor:function(t,e){for(var o=[],i=e.length-1;i>=0;i--){var r=this.fromClassDescriptor(t),n=this.toClassDescriptor((0,e[i])(r)||r);if(void 0!==n.finisher&&o.push(n.finisher),void 0!==n.elements){t=n.elements;for(var s=0;s<t.length-1;s++)for(var a=s+1;a<t.length;a++)if(t[s].key===t[a].key&&t[s].placement===t[a].placement)throw new TypeError("Duplicated element ("+t[s].key+")")}}return{elements:t,finishers:o}},fromElementDescriptor:function(t){var e={kind:t.kind,key:t.key,placement:t.placement,descriptor:t.descriptor};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===t.kind&&(e.initializer=t.initializer),e},toElementDescriptors:function(t){var e;if(void 0!==t)return(e=t,function(t){if(Array.isArray(t))return t}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return ie(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ie(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(t){var e=this.toElementDescriptor(t);return this.disallowProperty(t,"finisher","An element descriptor"),this.disallowProperty(t,"extras","An element descriptor"),e}),this)},toElementDescriptor:function(t){var e=String(t.kind);if("method"!==e&&"field"!==e)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+e+'"');var o=oe(t.key),i=String(t.placement);if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+i+'"');var r=t.descriptor;this.disallowProperty(t,"elements","An element descriptor");var n={kind:e,key:o,placement:i,descriptor:Object.assign({},r)};return"field"!==e?this.disallowProperty(t,"initializer","A method descriptor"):(this.disallowProperty(r,"get","The property descriptor of a field descriptor"),this.disallowProperty(r,"set","The property descriptor of a field descriptor"),this.disallowProperty(r,"value","The property descriptor of a field descriptor"),n.initializer=t.initializer),n},toElementFinisherExtras:function(t){return{element:this.toElementDescriptor(t),finisher:ee(t,"finisher"),extras:this.toElementDescriptors(t.extras)}},fromClassDescriptor:function(t){var e={kind:"class",elements:t.map(this.fromElementDescriptor,this)};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),e},toClassDescriptor:function(t){var e=String(t.kind);if("class"!==e)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+e+'"');this.disallowProperty(t,"key","A class descriptor"),this.disallowProperty(t,"placement","A class descriptor"),this.disallowProperty(t,"descriptor","A class descriptor"),this.disallowProperty(t,"initializer","A class descriptor"),this.disallowProperty(t,"extras","A class descriptor");var o=ee(t,"finisher");return{elements:this.toElementDescriptors(t.elements),finisher:o}},runClassFinishers:function(t,e){for(var o=0;o<e.length;o++){var i=(0,e[o])(t);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");t=i}}return t},disallowProperty:function(t,e,o){if(void 0!==t[e])throw new TypeError(o+" can't have a ."+e+" property.")}};return t}function Qt(t){var e,o=oe(t.key);"method"===t.kind?e={value:t.value,writable:!0,configurable:!0,enumerable:!1}:"get"===t.kind?e={get:t.value,configurable:!0,enumerable:!1}:"set"===t.kind?e={set:t.value,configurable:!0,enumerable:!1}:"field"===t.kind&&(e={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===t.kind?"field":"method",key:o,placement:t.static?"static":"field"===t.kind?"own":"prototype",descriptor:e};return t.decorators&&(i.decorators=t.decorators),"field"===t.kind&&(i.initializer=t.value),i}function Kt(t,e){void 0!==t.descriptor.get?e.descriptor.get=t.descriptor.get:e.descriptor.set=t.descriptor.set}function Jt(t){return t.decorators&&t.decorators.length}function te(t){return void 0!==t&&!(void 0===t.value&&void 0===t.writable)}function ee(t,e){var o=t[e];if(void 0!==o&&"function"!=typeof o)throw new TypeError("Expected '"+e+"' to be a function");return o}function oe(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function ie(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,i=new Array(e);o<e;o++)i[o]=t[o];return i}const{stablePrefix:re}={version:"Carbon for IBM.com v1.60.0",stablePrefix:"dds"},{prefix:ne}=x;let se,ae,de=function(t,e,o,i){var r=Wt();if(i)for(var n=0;n<i.length;n++)r=i[n](r);var s=e((function(t){r.initializeInstanceElements(t,a.elements)}),o),a=r.decorateClass(function(t){for(var e=[],o=function(t){return"method"===t.kind&&t.key===n.key&&t.placement===n.placement},i=0;i<t.length;i++){var r,n=t[i];if("method"===n.kind&&(r=e.find(o)))if(te(n.descriptor)||te(r.descriptor)){if(Jt(n)||Jt(r))throw new ReferenceError("Duplicated methods ("+n.key+") can't be decorated.");r.descriptor=n.descriptor}else{if(Jt(n)){if(Jt(r))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+n.key+").");r.decorators=n.decorators}Kt(n,r)}else e.push(n)}return e}(s.d.map(Qt)),t);return r.initializeClassElements(s.F,a.elements),r.runClassFinishers(s.F,a.finishers)}([b(`${re}-dropdown`)],(function(t,e){return{F:class extends e{constructor(...e){super(...e),t(this)}},d:[{kind:"field",decorators:[_("input")],key:"_inputNode",value:void 0},{kind:"field",decorators:[d({attribute:!1})],key:"formatSelectedItemStatusText",value:()=>({latestSelection:t,currentItem:e})=>""===e?`${t}`:`${t}, Current input is: ${e}`},{kind:"method",key:"_navigate",value:function(t){const e=this.constructor,o=this.querySelectorAll(e.selectorItem),i=this.querySelector(e.selectorItemHighlighted);let r=u(o,i)+t;r<0&&(r=o.length-1),r>=o.length&&(r=0),v(o,((t,e)=>{t.highlighted=e===r}));const n=o[r];n.scrollIntoView({block:"nearest"});const s=n.textContent;s&&(this._assistiveStatusText=this.formatSelectedItemStatusText({latestSelection:`${s}`,currentItem:`${this._inputNode.value}`})),this.requestUpdate()}},{kind:"method",key:"render",value:function(){const{colorScheme:t,disabled:e,helperText:o,invalid:i,labelText:r,open:n,toggleLabelClosed:s,toggleLabelOpen:a,size:d,type:b,validityMessage:x,_assistiveStatusText:g,_shouldTriggerBeFocusable:p,_handleClickInner:h,_handleKeydownInner:f,_handleKeypressInner:m,_handleSlotchangeHelperText:_,_handleSlotchangeLabelText:u,_slotHelperTextNode:v,_slotLabelTextNode:z}=this,E=b===Tt.INLINE,P=this.querySelectorAll(this.constructor.selectorItemSelected).length,C=c({[`${ne}--dropdown`]:!0,[`${ne}--list-box`]:!0,[`${ne}--list-box--${t}`]:t,[`${ne}--list-box--disabled`]:e,[`${ne}--list-box--inline`]:E,[`${ne}--list-box--expanded`]:n,[`${ne}--list-box--${d}`]:d,[`${ne}--dropdown--invalid`]:i,[`${ne}--dropdown--inline`]:E,[`${ne}--dropdown--selected`]:P>0}),T=c({[`${ne}--label`]:!0,[`${ne}--label-visually-hidden`]:!0,[`${ne}--label--disabled`]:e}),S=c({[`${ne}--form__helper-text`]:!0,[`${ne}--form__helper-text--disabled`]:e}),A=c({[`${ne}--list-box__menu-icon`]:!0,[`${ne}--list-box__menu-icon--open`]:n}),q=(n?a:s)||void 0,D=o||v&&v.assignedNodes().length>0,M=r||z&&z.assignedNodes().length>0,j=i?l(Ht||(Ht=Zt`<div part="validity-message" class="${0}"><slot name="validity-message">${0}</slot></div>`),`${ne}--form-requirement`,x):l(Gt||(Gt=Zt`<div part="helper-text" class="${0}" ?hidden="${0}"><slot name="helper-text" @slotchange="${0}">${0}</slot></div>`),S,E||!D,_,o),$=i?y({class:`${ne}--list-box__invalid-icon`,"aria-label":q}):void 0,I=n?l(Ut||(Ut=Zt`<div id="menu-body" part="menu-body" class="${0}--list-box__menu" role="listbox" tabindex="-1"><slot></slot></div>`),ne):void 0;return l(Yt||(Yt=Zt`<label part="label-text" class="${0}" ?hidden="${0}"><slot name="label-text" @slotchange="${0}">${0}</slot></label><div class="${0}" ?data-invalid="${0}" @click="${0}" @keydown="${0}" @keypress="${0}">${0}<div part="trigger-button" role="button" class="${0}--list-box__field" tabindex="${0}" aria-labelledby="trigger-label" aria-expanded="${0}" aria-haspopup="listbox" aria-owns="menu-body" aria-controls="menu-body">${0}${0}${0}<div class="${0}">${0}</div></div>${0}</div>${0}<div id="assistiveStatus" class="${0}--assistive-text" role="status" aria-live="assertive" aria-relevant="additions text">${0}</div>`),T,!M,u,r,C,i,h,f,m,$,ne,k(p?"0":void 0),String(n),this._renderPrecedingTriggerContent(),this._renderTriggerContent(),this._renderFollowingTriggerContent(),A,w({"aria-label":q}),I,j,ne,g)}}]}}),m),le=t=>t;function ce(){ce=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach((function(o){e.forEach((function(e){e.kind===o&&"own"===e.placement&&this.defineClassElement(t,e)}),this)}),this)},initializeClassElements:function(t,e){var o=t.prototype;["method","field"].forEach((function(i){e.forEach((function(e){var r=e.placement;if(e.kind===i&&("static"===r||"prototype"===r)){var n="static"===r?t:o;this.defineClassElement(n,e)}}),this)}),this)},defineClassElement:function(t,e){var o=e.descriptor;if("field"===e.kind){var i=e.initializer;o={enumerable:o.enumerable,writable:o.writable,configurable:o.configurable,value:void 0===i?void 0:i.call(t)}}Object.defineProperty(t,e.key,o)},decorateClass:function(t,e){var o=[],i=[],r={static:[],prototype:[],own:[]};if(t.forEach((function(t){this.addElementPlacement(t,r)}),this),t.forEach((function(t){if(!ge(t))return o.push(t);var e=this.decorateElement(t,r);o.push(e.element),o.push.apply(o,e.extras),i.push.apply(i,e.finishers)}),this),!e)return{elements:o,finishers:i};var n=this.decorateConstructor(o,e);return i.push.apply(i,n.finishers),n.finishers=i,n},addElementPlacement:function(t,e,o){var i=e[t.placement];if(!o&&-1!==i.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");i.push(t.key)},decorateElement:function(t,e){for(var o=[],i=[],r=t.decorators,n=r.length-1;n>=0;n--){var s=e[t.placement];s.splice(s.indexOf(t.key),1);var a=this.fromElementDescriptor(t),d=this.toElementFinisherExtras((0,r[n])(a)||a);t=d.element,this.addElementPlacement(t,e),d.finisher&&i.push(d.finisher);var l=d.extras;if(l){for(var c=0;c<l.length;c++)this.addElementPlacement(l[c],e);o.push.apply(o,l)}}return{element:t,finishers:i,extras:o}},decorateConstructor:function(t,e){for(var o=[],i=e.length-1;i>=0;i--){var r=this.fromClassDescriptor(t),n=this.toClassDescriptor((0,e[i])(r)||r);if(void 0!==n.finisher&&o.push(n.finisher),void 0!==n.elements){t=n.elements;for(var s=0;s<t.length-1;s++)for(var a=s+1;a<t.length;a++)if(t[s].key===t[a].key&&t[s].placement===t[a].placement)throw new TypeError("Duplicated element ("+t[s].key+")")}}return{elements:t,finishers:o}},fromElementDescriptor:function(t){var e={kind:t.kind,key:t.key,placement:t.placement,descriptor:t.descriptor};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===t.kind&&(e.initializer=t.initializer),e},toElementDescriptors:function(t){var e;if(void 0!==t)return(e=t,function(t){if(Array.isArray(t))return t}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return me(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?me(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(t){var e=this.toElementDescriptor(t);return this.disallowProperty(t,"finisher","An element descriptor"),this.disallowProperty(t,"extras","An element descriptor"),e}),this)},toElementDescriptor:function(t){var e=String(t.kind);if("method"!==e&&"field"!==e)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+e+'"');var o=fe(t.key),i=String(t.placement);if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+i+'"');var r=t.descriptor;this.disallowProperty(t,"elements","An element descriptor");var n={kind:e,key:o,placement:i,descriptor:Object.assign({},r)};return"field"!==e?this.disallowProperty(t,"initializer","A method descriptor"):(this.disallowProperty(r,"get","The property descriptor of a field descriptor"),this.disallowProperty(r,"set","The property descriptor of a field descriptor"),this.disallowProperty(r,"value","The property descriptor of a field descriptor"),n.initializer=t.initializer),n},toElementFinisherExtras:function(t){return{element:this.toElementDescriptor(t),finisher:he(t,"finisher"),extras:this.toElementDescriptors(t.extras)}},fromClassDescriptor:function(t){var e={kind:"class",elements:t.map(this.fromElementDescriptor,this)};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),e},toClassDescriptor:function(t){var e=String(t.kind);if("class"!==e)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+e+'"');this.disallowProperty(t,"key","A class descriptor"),this.disallowProperty(t,"placement","A class descriptor"),this.disallowProperty(t,"descriptor","A class descriptor"),this.disallowProperty(t,"initializer","A class descriptor"),this.disallowProperty(t,"extras","A class descriptor");var o=he(t,"finisher");return{elements:this.toElementDescriptors(t.elements),finisher:o}},runClassFinishers:function(t,e){for(var o=0;o<e.length;o++){var i=(0,e[o])(t);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");t=i}}return t},disallowProperty:function(t,e,o){if(void 0!==t[e])throw new TypeError(o+" can't have a ."+e+" property.")}};return t}function be(t){var e,o=fe(t.key);"method"===t.kind?e={value:t.value,writable:!0,configurable:!0,enumerable:!1}:"get"===t.kind?e={get:t.value,configurable:!0,enumerable:!1}:"set"===t.kind?e={set:t.value,configurable:!0,enumerable:!1}:"field"===t.kind&&(e={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===t.kind?"field":"method",key:o,placement:t.static?"static":"field"===t.kind?"own":"prototype",descriptor:e};return t.decorators&&(i.decorators=t.decorators),"field"===t.kind&&(i.initializer=t.value),i}function xe(t,e){void 0!==t.descriptor.get?e.descriptor.get=t.descriptor.get:e.descriptor.set=t.descriptor.set}function ge(t){return t.decorators&&t.decorators.length}function pe(t){return void 0!==t&&!(void 0===t.value&&void 0===t.writable)}function he(t,e){var o=t[e];if(void 0!==o&&"function"!=typeof o)throw new TypeError("Expected '"+e+"' to be a function");return o}function fe(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function me(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,i=new Array(e);o<e;o++)i[o]=t[o];return i}function _e(){return _e="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,o){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ue(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:o):r.value}},_e.apply(this,arguments)}function ue(t){return ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ue(t)}const{stablePrefix:ve}=g,{prefix:ye}=x;let we=function(t,e,o,i){var r=ce();if(i)for(var n=0;n<i.length;n++)r=i[n](r);var s=e((function(t){r.initializeInstanceElements(t,a.elements)}),o),a=r.decorateClass(function(t){for(var e=[],o=function(t){return"method"===t.kind&&t.key===n.key&&t.placement===n.placement},i=0;i<t.length;i++){var r,n=t[i];if("method"===n.kind&&(r=e.find(o)))if(pe(n.descriptor)||pe(r.descriptor)){if(ge(n)||ge(r))throw new ReferenceError("Duplicated methods ("+n.key+") can't be decorated.");r.descriptor=n.descriptor}else{if(ge(n)){if(ge(r))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+n.key+").");r.decorators=n.decorators}xe(n,r)}else e.push(n)}return e}(s.d.map(be)),t);return r.initializeClassElements(s.F,a.elements),r.runClassFinishers(s.F,a.finishers)}([b(`${ve}-combo-box`)],(function(t,e){class o extends e{constructor(...e){super(...e),t(this)}}return{F:o,d:[{kind:"field",key:"_filterInputValue",value:()=>""},{kind:"field",key:"_shouldTriggerBeFocusable",value:()=>!1},{kind:"field",decorators:[_("#selection-button")],key:"_selectionButtonNode",value:void 0},{kind:"field",decorators:[_("input")],key:"_filterInputNode",value:void 0},{kind:"method",key:"_testItemWithQueryText",value:function(t){return(this.itemMatches||this._defaultItemMatches)(t,this._filterInputNode.value)}},{kind:"method",key:"_defaultItemMatches",value:function(t,e){return t.textContent.toLowerCase().indexOf(e.toLowerCase())>=0}},{kind:"method",key:"_handleInput",value:function(){const t=this.querySelectorAll(this.constructor.selectorItem),e=this._filterInputNode.value?z(t,this._testItemWithQueryText,this):-1;v(t,((t,o)=>{t.highlighted=o===e}));const{_filterInputNode:o}=this;this._filterInputValue=o?o.value:"",this.open=!0,this.requestUpdate()}},{kind:"method",key:"_handleClickInner",value:function(t){var e;null!==(e=this._selectionButtonNode)&&void 0!==e&&e.contains(t.target)?this._handleUserInitiatedClearInput():_e(ue(o.prototype),"_handleClickInner",this).call(this,t)}},{kind:"method",key:"_handleKeypressInner",value:function(t){var e;const{key:i}=t,r=this.constructor.getAction(i),{TRIGGERING:n}=Pt;null===(e=this._selectionButtonNode)||void 0===e||!e.contains(t.target)||r!==n&&" "!==i?_e(ue(o.prototype),"_handleKeypressInner",this).call(this,t):this._handleUserInitiatedClearInput()}},{kind:"method",key:"_handleUserInitiatedClearInput",value:function(){v(this.querySelectorAll(this.constructor.selectorItem),(t=>{t.highlighted=!1})),this._filterInputValue="",this._filterInputNode.focus(),this.open=!1,this.requestUpdate()}},{kind:"method",key:"_handleUserInitiatedSelectItem",value:function(t){t&&!this._selectionShouldChange(t)&&(this._filterInputValue=t.textContent||"",this.open=!1,this.requestUpdate()),_e(ue(o.prototype),"_handleUserInitiatedSelectItem",this).call(this,t)}},{kind:"method",key:"_renderTriggerContent",value:function(){const{disabled:t,triggerContent:e,_filterInputValue:o,_handleInput:i}=this;return l(se||(se=le`<input id="trigger-label" class="${0}--text-input" ?disabled="${0}" placeholder="${0}" .value="${0}" role="combobox" aria-expanded="${0}" aria-labelledby="assistiveStatus" aria-controls="menu-body" aria-autocomplete="list" @input="${0}">`),ye,t,e,o,this.open,i)}},{kind:"method",key:"_renderFollowingTriggerContent",value:function(){const{clearSelectionLabel:t,_filterInputValue:e}=this;return 0===e.length?void 0:l(ae||(ae=le`<div id="selection-button" role="button" class="${0}--list-box__selection" tabindex="0" title="${0}">${0}</div>`),ye,t,Nt({"aria-label":t}))}},{kind:"field",decorators:[d({attribute:"clear-selection-label"})],key:"clearSelectionLabel",value:()=>""},{kind:"field",decorators:[d({attribute:!1})],key:"itemMatches",value:void 0},{kind:"method",key:"shouldUpdate",value:function(t){_e(ue(o.prototype),"shouldUpdate",this).call(this,t);const{_selectedItemContent:e}=this;return e&&t.has("value")&&(this._filterInputValue=(null==e?void 0:e.textContent)||""),!0}},{kind:"method",key:"updated",value:function(t){_e(ue(o.prototype),"updated",this).call(this,t);const{_listBoxNode:e}=this;e&&e.classList.add(`${ye}--combo-box`)}},{kind:"field",static:!0,key:"TRIGGER_KEYS",value:()=>new Set(["Enter"])},{kind:"get",static:!0,key:"selectorItemHighlighted",value:function(){return`${ye}-combo-box-item[highlighted]`}},{kind:"get",static:!0,key:"selectorItem",value:function(){return`${ye}-combo-box-item`}},{kind:"get",static:!0,key:"selectorItemSelected",value:function(){return`${ye}-combo-box-item[selected]`}},{kind:"get",static:!0,key:"eventBeforeToggle",value:function(){return`${ye}-combo-box-beingtoggled`}},{kind:"get",static:!0,key:"eventToggle",value:function(){return`${ye}-combo-box-toggled`}},{kind:"get",static:!0,key:"eventBeforeSelect",value:function(){return`${ye}-combo-box-beingselected`}},{kind:"get",static:!0,key:"eventSelect",value:function(){return`${ye}-combo-box-selected`}}]}}),de);
|
|
97
97
|
/**
|
|
98
98
|
* @license
|
|
99
99
|
*
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
*/
|
|
77
77
|
|
|
78
78
|
let process = { env: {} };
|
|
79
|
-
import { l as lib, b as breakpoints, r as render, c as css, S as StableSelectorMixin, p as property, h as html, a as classMap, d as carbonElement, s as settings_1, e as settings$1, L as LitElement, f as svg, g as spread, B as BXDropdown, q as query, i as indexOf, j as forEach, k as svgResultCarbonIcon$k, m as svgResultCarbonIcon$l, n as ifDefined, o as findIndex, H as HostListenerMixin, t as state, u as HostListener, v as on, w as selectorTabbable, _ as _decorate$v, F as FocusMixin, x as svgResultCarbonIcon$m, y as ifNonNull, C as CTA_TYPE, z as BXLink, A as StickyHeader, V as ValidityMixin, D as FORM_ELEMENT_COLOR_SCHEME, E as FormMixin, G as root, I as toNumber, J as isObject, K as Cookies, M as LocaleAPI, N as spread$1, O as filter, P as _get$d, Q as _getPrototypeOf$d, R as DROPDOWN_SIZE$1, T as styles$d, U as LocaleAPI$1, W as globalInit, X as ConnectMixin, Y as store, Z as pickBy, $ as bindActionCreators, a0 as loadLanguage, a1 as setLanguage, a2 as loadLocaleList, a3 as setLocaleList, a4 as loadTranslation, a5 as setTranslation, a6 as _createClass$1, a7 as _asyncToGenerator, a8 as regenerator, a9 as axios, aa as _classCallCheck$1, ab as PROFILE_API_ACTION, ac as DDSMastheadComposite, ad as UNAUTHENTICATED_STATUS } from './masthead-composite-
|
|
80
|
-
import { s as svgResultCarbonIcon$n } from './20-
|
|
79
|
+
import { l as lib, b as breakpoints, r as render, c as css, S as StableSelectorMixin, p as property, h as html, a as classMap, d as carbonElement, s as settings_1, e as settings$1, L as LitElement, f as svg, g as spread, B as BXDropdown, q as query, i as indexOf, j as forEach, k as svgResultCarbonIcon$k, m as svgResultCarbonIcon$l, n as ifDefined, o as findIndex, H as HostListenerMixin, t as state, u as HostListener, v as on, w as selectorTabbable, _ as _decorate$v, F as FocusMixin, x as svgResultCarbonIcon$m, y as ifNonNull, C as CTA_TYPE, z as BXLink, A as StickyHeader, V as ValidityMixin, D as FORM_ELEMENT_COLOR_SCHEME, E as FormMixin, G as root, I as toNumber, J as isObject, K as Cookies, M as LocaleAPI, N as spread$1, O as filter, P as _get$d, Q as _getPrototypeOf$d, R as DROPDOWN_SIZE$1, T as styles$d, U as LocaleAPI$1, W as globalInit, X as ConnectMixin, Y as store, Z as pickBy, $ as bindActionCreators, a0 as loadLanguage, a1 as setLanguage, a2 as loadLocaleList, a3 as setLocaleList, a4 as loadTranslation, a5 as setTranslation, a6 as _createClass$1, a7 as _asyncToGenerator, a8 as regenerator, a9 as axios, aa as _classCallCheck$1, ab as PROFILE_API_ACTION, ac as DDSMastheadComposite, ad as UNAUTHENTICATED_STATUS } from './masthead-composite-25fa2353.js';
|
|
80
|
+
import { s as svgResultCarbonIcon$n } from './20-3a5336f7.js';
|
|
81
81
|
|
|
82
82
|
function _defineProperty$5(obj, key, value) { key = _toPropertyKey$z(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
83
83
|
function _toPropertyKey$z(arg) { var key = _toPrimitive$z(arg, "string"); return typeof key === "symbol" ? key : String(key); }
|
|
@@ -560,10 +560,10 @@ const svgResultCarbonIcon$j = ({ children, ...attrs } = {}) =>
|
|
|
560
560
|
* @exports ibmdotcom.settings
|
|
561
561
|
* @type {object} Settings object
|
|
562
562
|
* @property {string} [prefix=dds]
|
|
563
|
-
* Carbon for IBM.com v1.
|
|
563
|
+
* Carbon for IBM.com v1.60.0',
|
|
564
564
|
*/
|
|
565
565
|
var settings = {
|
|
566
|
-
version: 'Carbon for IBM.com v1.
|
|
566
|
+
version: 'Carbon for IBM.com v1.60.0',
|
|
567
567
|
stablePrefix: 'dds'
|
|
568
568
|
};
|
|
569
569
|
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
* https://www.npmjs.com/package/axios
|
|
76
76
|
*/
|
|
77
77
|
|
|
78
|
-
let t,e,o={env:{}};import{l as i,b as r,r as n,c as s,S as a,p as d,h as l,a as c,d as b,s as x,e as g,L as p,f as h,g as f,B as m,q as _,i as u,j as v,k as y,m as w,n as k,o as z,H as E,t as P,u as C,v as T,w as S,_ as A,F as q,x as D,y as M,C as j,z as $,A as I,V as O,D as L,E as B,G as R,I as F,J as V,K as X,M as N,N as G,O as H,P as U,Q as Y,R as Z,T as W,U as Q,W as K,X as J,Y as tt,Z as et,$ as ot,a0 as it,a1 as rt,a2 as nt,a3 as st,a4 as at,a5 as dt,a6 as lt,a7 as ct,a8 as bt,a9 as xt,aa as gt,ab as pt,ac as ht,ad as ft}from"./masthead-composite-
|
|
78
|
+
let t,e,o={env:{}};import{l as i,b as r,r as n,c as s,S as a,p as d,h as l,a as c,d as b,s as x,e as g,L as p,f as h,g as f,B as m,q as _,i as u,j as v,k as y,m as w,n as k,o as z,H as E,t as P,u as C,v as T,w as S,_ as A,F as q,x as D,y as M,C as j,z as $,A as I,V as O,D as L,E as B,G as R,I as F,J as V,K as X,M as N,N as G,O as H,P as U,Q as Y,R as Z,T as W,U as Q,W as K,X as J,Y as tt,Z as et,$ as ot,a0 as it,a1 as rt,a2 as nt,a3 as st,a4 as at,a5 as dt,a6 as lt,a7 as ct,a8 as bt,a9 as xt,aa as gt,ab as pt,ac as ht,ad as ft}from"./masthead-composite-0430ab6c.js";import{s as mt}from"./20-8a4fd671.js";function _t(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}!function(t){t.SM="sm",t.MD="md",t.LG="lg",t.XLG="xlg",t.MAX="max"}(t||(t={})),function(t){t.MIN="min",t.MAX="max"}(e||(e={}));const ut=(t,o)=>class extends t{constructor(...t){super(...t),_t(this,"_mqConfig",o),_t(this,"carbonBreakpoints",this._generateMediaQueriesByBreakpoint())}_generateMediaQueriesByBreakpoint(){const{_mqConfig:t}=this,e=Object.keys(t),o={};return e.forEach((e=>{o[e]=i.matchMedia(`(${t[e]}-width: ${r[e].width})`)})),o}_attachMediaQueryEventListeners(){const{_mqConfig:t,carbonBreakpoints:o}=this;Object.keys(o).forEach((o=>{const i=`mediaQueryCallback${t[o]===e.MAX?`${t[o][0].toUpperCase()}${t[o].slice(1)}`:""}${o.toUpperCase()}`;"function"==typeof this[i]?this.carbonBreakpoints[o].addEventListener("change",this[i].bind(this)):console.warn(`MediaQueryMixin: Element ${this.nodeName} has not defined a callback for the "${o}" breakpoint. Please remove the breakpoint from the mixin configuration or implement the following method: ${i}`)}))}firstUpdated(){this._attachMediaQueryEventListeners(),super.firstUpdated()}};function vt(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const yt=t=>class extends t{constructor(...t){super(...t),vt(this,"lightRenderRoot",null)}createLightRenderRoot(){return this}update(t){super.update(t),this.lightRenderRoot||(this.lightRenderRoot=this.createLightRenderRoot());const{lightRenderRoot:e}=this;e&&n(this.renderLightDOM(),e,{eventContext:this})}};function wt(t,e,o){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}const kt=(t,e)=>{const o=t.closest(e);if(o)return o;const{host:i}=t.getRootNode();return i?kt(i,e):null};
|
|
79
79
|
/**
|
|
80
80
|
* @license
|
|
81
81
|
*
|
|
@@ -93,7 +93,7 @@ let zt,Et,Pt,Ct,Tt;!function(t){t.REGULAR="",t.SHORT="short",t.MICRO="micro"}(zt
|
|
|
93
93
|
* This source code is licensed under the Apache-2.0 license found in the
|
|
94
94
|
* LICENSE file in the root directory of this source tree.
|
|
95
95
|
*/
|
|
96
|
-
const Nt=({children:t,...e}={})=>h`<svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" fill="currentColor" ...="${f(e)}" aria-hidden="true" width="16" height="16" viewBox="0 0 32 32">${t}${t}${t}<path d="M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"></path></svg>`;let Gt,Ht,Ut,Yt,Zt=t=>t;function Wt(){Wt=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach((function(o){e.forEach((function(e){e.kind===o&&"own"===e.placement&&this.defineClassElement(t,e)}),this)}),this)},initializeClassElements:function(t,e){var o=t.prototype;["method","field"].forEach((function(i){e.forEach((function(e){var r=e.placement;if(e.kind===i&&("static"===r||"prototype"===r)){var n="static"===r?t:o;this.defineClassElement(n,e)}}),this)}),this)},defineClassElement:function(t,e){var o=e.descriptor;if("field"===e.kind){var i=e.initializer;o={enumerable:o.enumerable,writable:o.writable,configurable:o.configurable,value:void 0===i?void 0:i.call(t)}}Object.defineProperty(t,e.key,o)},decorateClass:function(t,e){var o=[],i=[],r={static:[],prototype:[],own:[]};if(t.forEach((function(t){this.addElementPlacement(t,r)}),this),t.forEach((function(t){if(!Jt(t))return o.push(t);var e=this.decorateElement(t,r);o.push(e.element),o.push.apply(o,e.extras),i.push.apply(i,e.finishers)}),this),!e)return{elements:o,finishers:i};var n=this.decorateConstructor(o,e);return i.push.apply(i,n.finishers),n.finishers=i,n},addElementPlacement:function(t,e,o){var i=e[t.placement];if(!o&&-1!==i.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");i.push(t.key)},decorateElement:function(t,e){for(var o=[],i=[],r=t.decorators,n=r.length-1;n>=0;n--){var s=e[t.placement];s.splice(s.indexOf(t.key),1);var a=this.fromElementDescriptor(t),d=this.toElementFinisherExtras((0,r[n])(a)||a);t=d.element,this.addElementPlacement(t,e),d.finisher&&i.push(d.finisher);var l=d.extras;if(l){for(var c=0;c<l.length;c++)this.addElementPlacement(l[c],e);o.push.apply(o,l)}}return{element:t,finishers:i,extras:o}},decorateConstructor:function(t,e){for(var o=[],i=e.length-1;i>=0;i--){var r=this.fromClassDescriptor(t),n=this.toClassDescriptor((0,e[i])(r)||r);if(void 0!==n.finisher&&o.push(n.finisher),void 0!==n.elements){t=n.elements;for(var s=0;s<t.length-1;s++)for(var a=s+1;a<t.length;a++)if(t[s].key===t[a].key&&t[s].placement===t[a].placement)throw new TypeError("Duplicated element ("+t[s].key+")")}}return{elements:t,finishers:o}},fromElementDescriptor:function(t){var e={kind:t.kind,key:t.key,placement:t.placement,descriptor:t.descriptor};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===t.kind&&(e.initializer=t.initializer),e},toElementDescriptors:function(t){var e;if(void 0!==t)return(e=t,function(t){if(Array.isArray(t))return t}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return ie(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ie(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(t){var e=this.toElementDescriptor(t);return this.disallowProperty(t,"finisher","An element descriptor"),this.disallowProperty(t,"extras","An element descriptor"),e}),this)},toElementDescriptor:function(t){var e=String(t.kind);if("method"!==e&&"field"!==e)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+e+'"');var o=oe(t.key),i=String(t.placement);if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+i+'"');var r=t.descriptor;this.disallowProperty(t,"elements","An element descriptor");var n={kind:e,key:o,placement:i,descriptor:Object.assign({},r)};return"field"!==e?this.disallowProperty(t,"initializer","A method descriptor"):(this.disallowProperty(r,"get","The property descriptor of a field descriptor"),this.disallowProperty(r,"set","The property descriptor of a field descriptor"),this.disallowProperty(r,"value","The property descriptor of a field descriptor"),n.initializer=t.initializer),n},toElementFinisherExtras:function(t){return{element:this.toElementDescriptor(t),finisher:ee(t,"finisher"),extras:this.toElementDescriptors(t.extras)}},fromClassDescriptor:function(t){var e={kind:"class",elements:t.map(this.fromElementDescriptor,this)};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),e},toClassDescriptor:function(t){var e=String(t.kind);if("class"!==e)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+e+'"');this.disallowProperty(t,"key","A class descriptor"),this.disallowProperty(t,"placement","A class descriptor"),this.disallowProperty(t,"descriptor","A class descriptor"),this.disallowProperty(t,"initializer","A class descriptor"),this.disallowProperty(t,"extras","A class descriptor");var o=ee(t,"finisher");return{elements:this.toElementDescriptors(t.elements),finisher:o}},runClassFinishers:function(t,e){for(var o=0;o<e.length;o++){var i=(0,e[o])(t);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");t=i}}return t},disallowProperty:function(t,e,o){if(void 0!==t[e])throw new TypeError(o+" can't have a ."+e+" property.")}};return t}function Qt(t){var e,o=oe(t.key);"method"===t.kind?e={value:t.value,writable:!0,configurable:!0,enumerable:!1}:"get"===t.kind?e={get:t.value,configurable:!0,enumerable:!1}:"set"===t.kind?e={set:t.value,configurable:!0,enumerable:!1}:"field"===t.kind&&(e={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===t.kind?"field":"method",key:o,placement:t.static?"static":"field"===t.kind?"own":"prototype",descriptor:e};return t.decorators&&(i.decorators=t.decorators),"field"===t.kind&&(i.initializer=t.value),i}function Kt(t,e){void 0!==t.descriptor.get?e.descriptor.get=t.descriptor.get:e.descriptor.set=t.descriptor.set}function Jt(t){return t.decorators&&t.decorators.length}function te(t){return void 0!==t&&!(void 0===t.value&&void 0===t.writable)}function ee(t,e){var o=t[e];if(void 0!==o&&"function"!=typeof o)throw new TypeError("Expected '"+e+"' to be a function");return o}function oe(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function ie(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,i=new Array(e);o<e;o++)i[o]=t[o];return i}const{stablePrefix:re}={version:"Carbon for IBM.com v1.59.0",stablePrefix:"dds"},{prefix:ne}=x;let se,ae,de=function(t,e,o,i){var r=Wt();if(i)for(var n=0;n<i.length;n++)r=i[n](r);var s=e((function(t){r.initializeInstanceElements(t,a.elements)}),o),a=r.decorateClass(function(t){for(var e=[],o=function(t){return"method"===t.kind&&t.key===n.key&&t.placement===n.placement},i=0;i<t.length;i++){var r,n=t[i];if("method"===n.kind&&(r=e.find(o)))if(te(n.descriptor)||te(r.descriptor)){if(Jt(n)||Jt(r))throw new ReferenceError("Duplicated methods ("+n.key+") can't be decorated.");r.descriptor=n.descriptor}else{if(Jt(n)){if(Jt(r))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+n.key+").");r.decorators=n.decorators}Kt(n,r)}else e.push(n)}return e}(s.d.map(Qt)),t);return r.initializeClassElements(s.F,a.elements),r.runClassFinishers(s.F,a.finishers)}([b(`${re}-dropdown`)],(function(t,e){return{F:class extends e{constructor(...e){super(...e),t(this)}},d:[{kind:"field",decorators:[_("input")],key:"_inputNode",value:void 0},{kind:"field",decorators:[d({attribute:!1})],key:"formatSelectedItemStatusText",value:()=>({latestSelection:t,currentItem:e})=>""===e?`${t}`:`${t}, Current input is: ${e}`},{kind:"method",key:"_navigate",value:function(t){const e=this.constructor,o=this.querySelectorAll(e.selectorItem),i=this.querySelector(e.selectorItemHighlighted);let r=u(o,i)+t;r<0&&(r=o.length-1),r>=o.length&&(r=0),v(o,((t,e)=>{t.highlighted=e===r}));const n=o[r];n.scrollIntoView({block:"nearest"});const s=n.textContent;s&&(this._assistiveStatusText=this.formatSelectedItemStatusText({latestSelection:`${s}`,currentItem:`${this._inputNode.value}`})),this.requestUpdate()}},{kind:"method",key:"render",value:function(){const{colorScheme:t,disabled:e,helperText:o,invalid:i,labelText:r,open:n,toggleLabelClosed:s,toggleLabelOpen:a,size:d,type:b,validityMessage:x,_assistiveStatusText:g,_shouldTriggerBeFocusable:p,_handleClickInner:h,_handleKeydownInner:f,_handleKeypressInner:m,_handleSlotchangeHelperText:_,_handleSlotchangeLabelText:u,_slotHelperTextNode:v,_slotLabelTextNode:z}=this,E=b===Tt.INLINE,P=this.querySelectorAll(this.constructor.selectorItemSelected).length,C=c({[`${ne}--dropdown`]:!0,[`${ne}--list-box`]:!0,[`${ne}--list-box--${t}`]:t,[`${ne}--list-box--disabled`]:e,[`${ne}--list-box--inline`]:E,[`${ne}--list-box--expanded`]:n,[`${ne}--list-box--${d}`]:d,[`${ne}--dropdown--invalid`]:i,[`${ne}--dropdown--inline`]:E,[`${ne}--dropdown--selected`]:P>0}),T=c({[`${ne}--label`]:!0,[`${ne}--label-visually-hidden`]:!0,[`${ne}--label--disabled`]:e}),S=c({[`${ne}--form__helper-text`]:!0,[`${ne}--form__helper-text--disabled`]:e}),A=c({[`${ne}--list-box__menu-icon`]:!0,[`${ne}--list-box__menu-icon--open`]:n}),q=(n?a:s)||void 0,D=o||v&&v.assignedNodes().length>0,M=r||z&&z.assignedNodes().length>0,j=i?l(Ht||(Ht=Zt`<div part="validity-message" class="${0}"><slot name="validity-message">${0}</slot></div>`),`${ne}--form-requirement`,x):l(Gt||(Gt=Zt`<div part="helper-text" class="${0}" ?hidden="${0}"><slot name="helper-text" @slotchange="${0}">${0}</slot></div>`),S,E||!D,_,o),$=i?y({class:`${ne}--list-box__invalid-icon`,"aria-label":q}):void 0,I=n?l(Ut||(Ut=Zt`<div id="menu-body" part="menu-body" class="${0}--list-box__menu" role="listbox" tabindex="-1"><slot></slot></div>`),ne):void 0;return l(Yt||(Yt=Zt`<label part="label-text" class="${0}" ?hidden="${0}"><slot name="label-text" @slotchange="${0}">${0}</slot></label><div class="${0}" ?data-invalid="${0}" @click="${0}" @keydown="${0}" @keypress="${0}">${0}<div part="trigger-button" role="button" class="${0}--list-box__field" tabindex="${0}" aria-labelledby="trigger-label" aria-expanded="${0}" aria-haspopup="listbox" aria-owns="menu-body" aria-controls="menu-body">${0}${0}${0}<div class="${0}">${0}</div></div>${0}</div>${0}<div id="assistiveStatus" class="${0}--assistive-text" role="status" aria-live="assertive" aria-relevant="additions text">${0}</div>`),T,!M,u,r,C,i,h,f,m,$,ne,k(p?"0":void 0),String(n),this._renderPrecedingTriggerContent(),this._renderTriggerContent(),this._renderFollowingTriggerContent(),A,w({"aria-label":q}),I,j,ne,g)}}]}}),m),le=t=>t;function ce(){ce=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach((function(o){e.forEach((function(e){e.kind===o&&"own"===e.placement&&this.defineClassElement(t,e)}),this)}),this)},initializeClassElements:function(t,e){var o=t.prototype;["method","field"].forEach((function(i){e.forEach((function(e){var r=e.placement;if(e.kind===i&&("static"===r||"prototype"===r)){var n="static"===r?t:o;this.defineClassElement(n,e)}}),this)}),this)},defineClassElement:function(t,e){var o=e.descriptor;if("field"===e.kind){var i=e.initializer;o={enumerable:o.enumerable,writable:o.writable,configurable:o.configurable,value:void 0===i?void 0:i.call(t)}}Object.defineProperty(t,e.key,o)},decorateClass:function(t,e){var o=[],i=[],r={static:[],prototype:[],own:[]};if(t.forEach((function(t){this.addElementPlacement(t,r)}),this),t.forEach((function(t){if(!ge(t))return o.push(t);var e=this.decorateElement(t,r);o.push(e.element),o.push.apply(o,e.extras),i.push.apply(i,e.finishers)}),this),!e)return{elements:o,finishers:i};var n=this.decorateConstructor(o,e);return i.push.apply(i,n.finishers),n.finishers=i,n},addElementPlacement:function(t,e,o){var i=e[t.placement];if(!o&&-1!==i.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");i.push(t.key)},decorateElement:function(t,e){for(var o=[],i=[],r=t.decorators,n=r.length-1;n>=0;n--){var s=e[t.placement];s.splice(s.indexOf(t.key),1);var a=this.fromElementDescriptor(t),d=this.toElementFinisherExtras((0,r[n])(a)||a);t=d.element,this.addElementPlacement(t,e),d.finisher&&i.push(d.finisher);var l=d.extras;if(l){for(var c=0;c<l.length;c++)this.addElementPlacement(l[c],e);o.push.apply(o,l)}}return{element:t,finishers:i,extras:o}},decorateConstructor:function(t,e){for(var o=[],i=e.length-1;i>=0;i--){var r=this.fromClassDescriptor(t),n=this.toClassDescriptor((0,e[i])(r)||r);if(void 0!==n.finisher&&o.push(n.finisher),void 0!==n.elements){t=n.elements;for(var s=0;s<t.length-1;s++)for(var a=s+1;a<t.length;a++)if(t[s].key===t[a].key&&t[s].placement===t[a].placement)throw new TypeError("Duplicated element ("+t[s].key+")")}}return{elements:t,finishers:o}},fromElementDescriptor:function(t){var e={kind:t.kind,key:t.key,placement:t.placement,descriptor:t.descriptor};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===t.kind&&(e.initializer=t.initializer),e},toElementDescriptors:function(t){var e;if(void 0!==t)return(e=t,function(t){if(Array.isArray(t))return t}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return me(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?me(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(t){var e=this.toElementDescriptor(t);return this.disallowProperty(t,"finisher","An element descriptor"),this.disallowProperty(t,"extras","An element descriptor"),e}),this)},toElementDescriptor:function(t){var e=String(t.kind);if("method"!==e&&"field"!==e)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+e+'"');var o=fe(t.key),i=String(t.placement);if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+i+'"');var r=t.descriptor;this.disallowProperty(t,"elements","An element descriptor");var n={kind:e,key:o,placement:i,descriptor:Object.assign({},r)};return"field"!==e?this.disallowProperty(t,"initializer","A method descriptor"):(this.disallowProperty(r,"get","The property descriptor of a field descriptor"),this.disallowProperty(r,"set","The property descriptor of a field descriptor"),this.disallowProperty(r,"value","The property descriptor of a field descriptor"),n.initializer=t.initializer),n},toElementFinisherExtras:function(t){return{element:this.toElementDescriptor(t),finisher:he(t,"finisher"),extras:this.toElementDescriptors(t.extras)}},fromClassDescriptor:function(t){var e={kind:"class",elements:t.map(this.fromElementDescriptor,this)};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),e},toClassDescriptor:function(t){var e=String(t.kind);if("class"!==e)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+e+'"');this.disallowProperty(t,"key","A class descriptor"),this.disallowProperty(t,"placement","A class descriptor"),this.disallowProperty(t,"descriptor","A class descriptor"),this.disallowProperty(t,"initializer","A class descriptor"),this.disallowProperty(t,"extras","A class descriptor");var o=he(t,"finisher");return{elements:this.toElementDescriptors(t.elements),finisher:o}},runClassFinishers:function(t,e){for(var o=0;o<e.length;o++){var i=(0,e[o])(t);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");t=i}}return t},disallowProperty:function(t,e,o){if(void 0!==t[e])throw new TypeError(o+" can't have a ."+e+" property.")}};return t}function be(t){var e,o=fe(t.key);"method"===t.kind?e={value:t.value,writable:!0,configurable:!0,enumerable:!1}:"get"===t.kind?e={get:t.value,configurable:!0,enumerable:!1}:"set"===t.kind?e={set:t.value,configurable:!0,enumerable:!1}:"field"===t.kind&&(e={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===t.kind?"field":"method",key:o,placement:t.static?"static":"field"===t.kind?"own":"prototype",descriptor:e};return t.decorators&&(i.decorators=t.decorators),"field"===t.kind&&(i.initializer=t.value),i}function xe(t,e){void 0!==t.descriptor.get?e.descriptor.get=t.descriptor.get:e.descriptor.set=t.descriptor.set}function ge(t){return t.decorators&&t.decorators.length}function pe(t){return void 0!==t&&!(void 0===t.value&&void 0===t.writable)}function he(t,e){var o=t[e];if(void 0!==o&&"function"!=typeof o)throw new TypeError("Expected '"+e+"' to be a function");return o}function fe(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function me(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,i=new Array(e);o<e;o++)i[o]=t[o];return i}function _e(){return _e="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,o){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ue(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:o):r.value}},_e.apply(this,arguments)}function ue(t){return ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ue(t)}const{stablePrefix:ve}=g,{prefix:ye}=x;let we=function(t,e,o,i){var r=ce();if(i)for(var n=0;n<i.length;n++)r=i[n](r);var s=e((function(t){r.initializeInstanceElements(t,a.elements)}),o),a=r.decorateClass(function(t){for(var e=[],o=function(t){return"method"===t.kind&&t.key===n.key&&t.placement===n.placement},i=0;i<t.length;i++){var r,n=t[i];if("method"===n.kind&&(r=e.find(o)))if(pe(n.descriptor)||pe(r.descriptor)){if(ge(n)||ge(r))throw new ReferenceError("Duplicated methods ("+n.key+") can't be decorated.");r.descriptor=n.descriptor}else{if(ge(n)){if(ge(r))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+n.key+").");r.decorators=n.decorators}xe(n,r)}else e.push(n)}return e}(s.d.map(be)),t);return r.initializeClassElements(s.F,a.elements),r.runClassFinishers(s.F,a.finishers)}([b(`${ve}-combo-box`)],(function(t,e){class o extends e{constructor(...e){super(...e),t(this)}}return{F:o,d:[{kind:"field",key:"_filterInputValue",value:()=>""},{kind:"field",key:"_shouldTriggerBeFocusable",value:()=>!1},{kind:"field",decorators:[_("#selection-button")],key:"_selectionButtonNode",value:void 0},{kind:"field",decorators:[_("input")],key:"_filterInputNode",value:void 0},{kind:"method",key:"_testItemWithQueryText",value:function(t){return(this.itemMatches||this._defaultItemMatches)(t,this._filterInputNode.value)}},{kind:"method",key:"_defaultItemMatches",value:function(t,e){return t.textContent.toLowerCase().indexOf(e.toLowerCase())>=0}},{kind:"method",key:"_handleInput",value:function(){const t=this.querySelectorAll(this.constructor.selectorItem),e=this._filterInputNode.value?z(t,this._testItemWithQueryText,this):-1;v(t,((t,o)=>{t.highlighted=o===e}));const{_filterInputNode:o}=this;this._filterInputValue=o?o.value:"",this.open=!0,this.requestUpdate()}},{kind:"method",key:"_handleClickInner",value:function(t){var e;null!==(e=this._selectionButtonNode)&&void 0!==e&&e.contains(t.target)?this._handleUserInitiatedClearInput():_e(ue(o.prototype),"_handleClickInner",this).call(this,t)}},{kind:"method",key:"_handleKeypressInner",value:function(t){var e;const{key:i}=t,r=this.constructor.getAction(i),{TRIGGERING:n}=Pt;null===(e=this._selectionButtonNode)||void 0===e||!e.contains(t.target)||r!==n&&" "!==i?_e(ue(o.prototype),"_handleKeypressInner",this).call(this,t):this._handleUserInitiatedClearInput()}},{kind:"method",key:"_handleUserInitiatedClearInput",value:function(){v(this.querySelectorAll(this.constructor.selectorItem),(t=>{t.highlighted=!1})),this._filterInputValue="",this._filterInputNode.focus(),this.open=!1,this.requestUpdate()}},{kind:"method",key:"_handleUserInitiatedSelectItem",value:function(t){t&&!this._selectionShouldChange(t)&&(this._filterInputValue=t.textContent||"",this.open=!1,this.requestUpdate()),_e(ue(o.prototype),"_handleUserInitiatedSelectItem",this).call(this,t)}},{kind:"method",key:"_renderTriggerContent",value:function(){const{disabled:t,triggerContent:e,_filterInputValue:o,_handleInput:i}=this;return l(se||(se=le`<input id="trigger-label" class="${0}--text-input" ?disabled="${0}" placeholder="${0}" .value="${0}" role="combobox" aria-expanded="${0}" aria-labelledby="assistiveStatus" aria-controls="menu-body" aria-autocomplete="list" @input="${0}">`),ye,t,e,o,this.open,i)}},{kind:"method",key:"_renderFollowingTriggerContent",value:function(){const{clearSelectionLabel:t,_filterInputValue:e}=this;return 0===e.length?void 0:l(ae||(ae=le`<div id="selection-button" role="button" class="${0}--list-box__selection" tabindex="0" title="${0}">${0}</div>`),ye,t,Nt({"aria-label":t}))}},{kind:"field",decorators:[d({attribute:"clear-selection-label"})],key:"clearSelectionLabel",value:()=>""},{kind:"field",decorators:[d({attribute:!1})],key:"itemMatches",value:void 0},{kind:"method",key:"shouldUpdate",value:function(t){_e(ue(o.prototype),"shouldUpdate",this).call(this,t);const{_selectedItemContent:e}=this;return e&&t.has("value")&&(this._filterInputValue=(null==e?void 0:e.textContent)||""),!0}},{kind:"method",key:"updated",value:function(t){_e(ue(o.prototype),"updated",this).call(this,t);const{_listBoxNode:e}=this;e&&e.classList.add(`${ye}--combo-box`)}},{kind:"field",static:!0,key:"TRIGGER_KEYS",value:()=>new Set(["Enter"])},{kind:"get",static:!0,key:"selectorItemHighlighted",value:function(){return`${ye}-combo-box-item[highlighted]`}},{kind:"get",static:!0,key:"selectorItem",value:function(){return`${ye}-combo-box-item`}},{kind:"get",static:!0,key:"selectorItemSelected",value:function(){return`${ye}-combo-box-item[selected]`}},{kind:"get",static:!0,key:"eventBeforeToggle",value:function(){return`${ye}-combo-box-beingtoggled`}},{kind:"get",static:!0,key:"eventToggle",value:function(){return`${ye}-combo-box-toggled`}},{kind:"get",static:!0,key:"eventBeforeSelect",value:function(){return`${ye}-combo-box-beingselected`}},{kind:"get",static:!0,key:"eventSelect",value:function(){return`${ye}-combo-box-selected`}}]}}),de);
|
|
96
|
+
const Nt=({children:t,...e}={})=>h`<svg focusable="false" preserveAspectRatio="xMidYMid meet" xmlns="http://www.w3.org/2000/svg" fill="currentColor" ...="${f(e)}" aria-hidden="true" width="16" height="16" viewBox="0 0 32 32">${t}${t}${t}<path d="M24 9.4L22.6 8 16 14.6 9.4 8 8 9.4 14.6 16 8 22.6 9.4 24 16 17.4 22.6 24 24 22.6 17.4 16 24 9.4z"></path></svg>`;let Gt,Ht,Ut,Yt,Zt=t=>t;function Wt(){Wt=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach((function(o){e.forEach((function(e){e.kind===o&&"own"===e.placement&&this.defineClassElement(t,e)}),this)}),this)},initializeClassElements:function(t,e){var o=t.prototype;["method","field"].forEach((function(i){e.forEach((function(e){var r=e.placement;if(e.kind===i&&("static"===r||"prototype"===r)){var n="static"===r?t:o;this.defineClassElement(n,e)}}),this)}),this)},defineClassElement:function(t,e){var o=e.descriptor;if("field"===e.kind){var i=e.initializer;o={enumerable:o.enumerable,writable:o.writable,configurable:o.configurable,value:void 0===i?void 0:i.call(t)}}Object.defineProperty(t,e.key,o)},decorateClass:function(t,e){var o=[],i=[],r={static:[],prototype:[],own:[]};if(t.forEach((function(t){this.addElementPlacement(t,r)}),this),t.forEach((function(t){if(!Jt(t))return o.push(t);var e=this.decorateElement(t,r);o.push(e.element),o.push.apply(o,e.extras),i.push.apply(i,e.finishers)}),this),!e)return{elements:o,finishers:i};var n=this.decorateConstructor(o,e);return i.push.apply(i,n.finishers),n.finishers=i,n},addElementPlacement:function(t,e,o){var i=e[t.placement];if(!o&&-1!==i.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");i.push(t.key)},decorateElement:function(t,e){for(var o=[],i=[],r=t.decorators,n=r.length-1;n>=0;n--){var s=e[t.placement];s.splice(s.indexOf(t.key),1);var a=this.fromElementDescriptor(t),d=this.toElementFinisherExtras((0,r[n])(a)||a);t=d.element,this.addElementPlacement(t,e),d.finisher&&i.push(d.finisher);var l=d.extras;if(l){for(var c=0;c<l.length;c++)this.addElementPlacement(l[c],e);o.push.apply(o,l)}}return{element:t,finishers:i,extras:o}},decorateConstructor:function(t,e){for(var o=[],i=e.length-1;i>=0;i--){var r=this.fromClassDescriptor(t),n=this.toClassDescriptor((0,e[i])(r)||r);if(void 0!==n.finisher&&o.push(n.finisher),void 0!==n.elements){t=n.elements;for(var s=0;s<t.length-1;s++)for(var a=s+1;a<t.length;a++)if(t[s].key===t[a].key&&t[s].placement===t[a].placement)throw new TypeError("Duplicated element ("+t[s].key+")")}}return{elements:t,finishers:o}},fromElementDescriptor:function(t){var e={kind:t.kind,key:t.key,placement:t.placement,descriptor:t.descriptor};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===t.kind&&(e.initializer=t.initializer),e},toElementDescriptors:function(t){var e;if(void 0!==t)return(e=t,function(t){if(Array.isArray(t))return t}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return ie(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?ie(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(t){var e=this.toElementDescriptor(t);return this.disallowProperty(t,"finisher","An element descriptor"),this.disallowProperty(t,"extras","An element descriptor"),e}),this)},toElementDescriptor:function(t){var e=String(t.kind);if("method"!==e&&"field"!==e)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+e+'"');var o=oe(t.key),i=String(t.placement);if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+i+'"');var r=t.descriptor;this.disallowProperty(t,"elements","An element descriptor");var n={kind:e,key:o,placement:i,descriptor:Object.assign({},r)};return"field"!==e?this.disallowProperty(t,"initializer","A method descriptor"):(this.disallowProperty(r,"get","The property descriptor of a field descriptor"),this.disallowProperty(r,"set","The property descriptor of a field descriptor"),this.disallowProperty(r,"value","The property descriptor of a field descriptor"),n.initializer=t.initializer),n},toElementFinisherExtras:function(t){return{element:this.toElementDescriptor(t),finisher:ee(t,"finisher"),extras:this.toElementDescriptors(t.extras)}},fromClassDescriptor:function(t){var e={kind:"class",elements:t.map(this.fromElementDescriptor,this)};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),e},toClassDescriptor:function(t){var e=String(t.kind);if("class"!==e)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+e+'"');this.disallowProperty(t,"key","A class descriptor"),this.disallowProperty(t,"placement","A class descriptor"),this.disallowProperty(t,"descriptor","A class descriptor"),this.disallowProperty(t,"initializer","A class descriptor"),this.disallowProperty(t,"extras","A class descriptor");var o=ee(t,"finisher");return{elements:this.toElementDescriptors(t.elements),finisher:o}},runClassFinishers:function(t,e){for(var o=0;o<e.length;o++){var i=(0,e[o])(t);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");t=i}}return t},disallowProperty:function(t,e,o){if(void 0!==t[e])throw new TypeError(o+" can't have a ."+e+" property.")}};return t}function Qt(t){var e,o=oe(t.key);"method"===t.kind?e={value:t.value,writable:!0,configurable:!0,enumerable:!1}:"get"===t.kind?e={get:t.value,configurable:!0,enumerable:!1}:"set"===t.kind?e={set:t.value,configurable:!0,enumerable:!1}:"field"===t.kind&&(e={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===t.kind?"field":"method",key:o,placement:t.static?"static":"field"===t.kind?"own":"prototype",descriptor:e};return t.decorators&&(i.decorators=t.decorators),"field"===t.kind&&(i.initializer=t.value),i}function Kt(t,e){void 0!==t.descriptor.get?e.descriptor.get=t.descriptor.get:e.descriptor.set=t.descriptor.set}function Jt(t){return t.decorators&&t.decorators.length}function te(t){return void 0!==t&&!(void 0===t.value&&void 0===t.writable)}function ee(t,e){var o=t[e];if(void 0!==o&&"function"!=typeof o)throw new TypeError("Expected '"+e+"' to be a function");return o}function oe(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function ie(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,i=new Array(e);o<e;o++)i[o]=t[o];return i}const{stablePrefix:re}={version:"Carbon for IBM.com v1.60.0",stablePrefix:"dds"},{prefix:ne}=x;let se,ae,de=function(t,e,o,i){var r=Wt();if(i)for(var n=0;n<i.length;n++)r=i[n](r);var s=e((function(t){r.initializeInstanceElements(t,a.elements)}),o),a=r.decorateClass(function(t){for(var e=[],o=function(t){return"method"===t.kind&&t.key===n.key&&t.placement===n.placement},i=0;i<t.length;i++){var r,n=t[i];if("method"===n.kind&&(r=e.find(o)))if(te(n.descriptor)||te(r.descriptor)){if(Jt(n)||Jt(r))throw new ReferenceError("Duplicated methods ("+n.key+") can't be decorated.");r.descriptor=n.descriptor}else{if(Jt(n)){if(Jt(r))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+n.key+").");r.decorators=n.decorators}Kt(n,r)}else e.push(n)}return e}(s.d.map(Qt)),t);return r.initializeClassElements(s.F,a.elements),r.runClassFinishers(s.F,a.finishers)}([b(`${re}-dropdown`)],(function(t,e){return{F:class extends e{constructor(...e){super(...e),t(this)}},d:[{kind:"field",decorators:[_("input")],key:"_inputNode",value:void 0},{kind:"field",decorators:[d({attribute:!1})],key:"formatSelectedItemStatusText",value:()=>({latestSelection:t,currentItem:e})=>""===e?`${t}`:`${t}, Current input is: ${e}`},{kind:"method",key:"_navigate",value:function(t){const e=this.constructor,o=this.querySelectorAll(e.selectorItem),i=this.querySelector(e.selectorItemHighlighted);let r=u(o,i)+t;r<0&&(r=o.length-1),r>=o.length&&(r=0),v(o,((t,e)=>{t.highlighted=e===r}));const n=o[r];n.scrollIntoView({block:"nearest"});const s=n.textContent;s&&(this._assistiveStatusText=this.formatSelectedItemStatusText({latestSelection:`${s}`,currentItem:`${this._inputNode.value}`})),this.requestUpdate()}},{kind:"method",key:"render",value:function(){const{colorScheme:t,disabled:e,helperText:o,invalid:i,labelText:r,open:n,toggleLabelClosed:s,toggleLabelOpen:a,size:d,type:b,validityMessage:x,_assistiveStatusText:g,_shouldTriggerBeFocusable:p,_handleClickInner:h,_handleKeydownInner:f,_handleKeypressInner:m,_handleSlotchangeHelperText:_,_handleSlotchangeLabelText:u,_slotHelperTextNode:v,_slotLabelTextNode:z}=this,E=b===Tt.INLINE,P=this.querySelectorAll(this.constructor.selectorItemSelected).length,C=c({[`${ne}--dropdown`]:!0,[`${ne}--list-box`]:!0,[`${ne}--list-box--${t}`]:t,[`${ne}--list-box--disabled`]:e,[`${ne}--list-box--inline`]:E,[`${ne}--list-box--expanded`]:n,[`${ne}--list-box--${d}`]:d,[`${ne}--dropdown--invalid`]:i,[`${ne}--dropdown--inline`]:E,[`${ne}--dropdown--selected`]:P>0}),T=c({[`${ne}--label`]:!0,[`${ne}--label-visually-hidden`]:!0,[`${ne}--label--disabled`]:e}),S=c({[`${ne}--form__helper-text`]:!0,[`${ne}--form__helper-text--disabled`]:e}),A=c({[`${ne}--list-box__menu-icon`]:!0,[`${ne}--list-box__menu-icon--open`]:n}),q=(n?a:s)||void 0,D=o||v&&v.assignedNodes().length>0,M=r||z&&z.assignedNodes().length>0,j=i?l(Ht||(Ht=Zt`<div part="validity-message" class="${0}"><slot name="validity-message">${0}</slot></div>`),`${ne}--form-requirement`,x):l(Gt||(Gt=Zt`<div part="helper-text" class="${0}" ?hidden="${0}"><slot name="helper-text" @slotchange="${0}">${0}</slot></div>`),S,E||!D,_,o),$=i?y({class:`${ne}--list-box__invalid-icon`,"aria-label":q}):void 0,I=n?l(Ut||(Ut=Zt`<div id="menu-body" part="menu-body" class="${0}--list-box__menu" role="listbox" tabindex="-1"><slot></slot></div>`),ne):void 0;return l(Yt||(Yt=Zt`<label part="label-text" class="${0}" ?hidden="${0}"><slot name="label-text" @slotchange="${0}">${0}</slot></label><div class="${0}" ?data-invalid="${0}" @click="${0}" @keydown="${0}" @keypress="${0}">${0}<div part="trigger-button" role="button" class="${0}--list-box__field" tabindex="${0}" aria-labelledby="trigger-label" aria-expanded="${0}" aria-haspopup="listbox" aria-owns="menu-body" aria-controls="menu-body">${0}${0}${0}<div class="${0}">${0}</div></div>${0}</div>${0}<div id="assistiveStatus" class="${0}--assistive-text" role="status" aria-live="assertive" aria-relevant="additions text">${0}</div>`),T,!M,u,r,C,i,h,f,m,$,ne,k(p?"0":void 0),String(n),this._renderPrecedingTriggerContent(),this._renderTriggerContent(),this._renderFollowingTriggerContent(),A,w({"aria-label":q}),I,j,ne,g)}}]}}),m),le=t=>t;function ce(){ce=function(){return t};var t={elementsDefinitionOrder:[["method"],["field"]],initializeInstanceElements:function(t,e){["method","field"].forEach((function(o){e.forEach((function(e){e.kind===o&&"own"===e.placement&&this.defineClassElement(t,e)}),this)}),this)},initializeClassElements:function(t,e){var o=t.prototype;["method","field"].forEach((function(i){e.forEach((function(e){var r=e.placement;if(e.kind===i&&("static"===r||"prototype"===r)){var n="static"===r?t:o;this.defineClassElement(n,e)}}),this)}),this)},defineClassElement:function(t,e){var o=e.descriptor;if("field"===e.kind){var i=e.initializer;o={enumerable:o.enumerable,writable:o.writable,configurable:o.configurable,value:void 0===i?void 0:i.call(t)}}Object.defineProperty(t,e.key,o)},decorateClass:function(t,e){var o=[],i=[],r={static:[],prototype:[],own:[]};if(t.forEach((function(t){this.addElementPlacement(t,r)}),this),t.forEach((function(t){if(!ge(t))return o.push(t);var e=this.decorateElement(t,r);o.push(e.element),o.push.apply(o,e.extras),i.push.apply(i,e.finishers)}),this),!e)return{elements:o,finishers:i};var n=this.decorateConstructor(o,e);return i.push.apply(i,n.finishers),n.finishers=i,n},addElementPlacement:function(t,e,o){var i=e[t.placement];if(!o&&-1!==i.indexOf(t.key))throw new TypeError("Duplicated element ("+t.key+")");i.push(t.key)},decorateElement:function(t,e){for(var o=[],i=[],r=t.decorators,n=r.length-1;n>=0;n--){var s=e[t.placement];s.splice(s.indexOf(t.key),1);var a=this.fromElementDescriptor(t),d=this.toElementFinisherExtras((0,r[n])(a)||a);t=d.element,this.addElementPlacement(t,e),d.finisher&&i.push(d.finisher);var l=d.extras;if(l){for(var c=0;c<l.length;c++)this.addElementPlacement(l[c],e);o.push.apply(o,l)}}return{element:t,finishers:i,extras:o}},decorateConstructor:function(t,e){for(var o=[],i=e.length-1;i>=0;i--){var r=this.fromClassDescriptor(t),n=this.toClassDescriptor((0,e[i])(r)||r);if(void 0!==n.finisher&&o.push(n.finisher),void 0!==n.elements){t=n.elements;for(var s=0;s<t.length-1;s++)for(var a=s+1;a<t.length;a++)if(t[s].key===t[a].key&&t[s].placement===t[a].placement)throw new TypeError("Duplicated element ("+t[s].key+")")}}return{elements:t,finishers:o}},fromElementDescriptor:function(t){var e={kind:t.kind,key:t.key,placement:t.placement,descriptor:t.descriptor};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),"field"===t.kind&&(e.initializer=t.initializer),e},toElementDescriptors:function(t){var e;if(void 0!==t)return(e=t,function(t){if(Array.isArray(t))return t}(e)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(e)||function(t,e){if(t){if("string"==typeof t)return me(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);return"Object"===o&&t.constructor&&(o=t.constructor.name),"Map"===o||"Set"===o?Array.from(t):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?me(t,e):void 0}}(e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()).map((function(t){var e=this.toElementDescriptor(t);return this.disallowProperty(t,"finisher","An element descriptor"),this.disallowProperty(t,"extras","An element descriptor"),e}),this)},toElementDescriptor:function(t){var e=String(t.kind);if("method"!==e&&"field"!==e)throw new TypeError('An element descriptor\'s .kind property must be either "method" or "field", but a decorator created an element descriptor with .kind "'+e+'"');var o=fe(t.key),i=String(t.placement);if("static"!==i&&"prototype"!==i&&"own"!==i)throw new TypeError('An element descriptor\'s .placement property must be one of "static", "prototype" or "own", but a decorator created an element descriptor with .placement "'+i+'"');var r=t.descriptor;this.disallowProperty(t,"elements","An element descriptor");var n={kind:e,key:o,placement:i,descriptor:Object.assign({},r)};return"field"!==e?this.disallowProperty(t,"initializer","A method descriptor"):(this.disallowProperty(r,"get","The property descriptor of a field descriptor"),this.disallowProperty(r,"set","The property descriptor of a field descriptor"),this.disallowProperty(r,"value","The property descriptor of a field descriptor"),n.initializer=t.initializer),n},toElementFinisherExtras:function(t){return{element:this.toElementDescriptor(t),finisher:he(t,"finisher"),extras:this.toElementDescriptors(t.extras)}},fromClassDescriptor:function(t){var e={kind:"class",elements:t.map(this.fromElementDescriptor,this)};return Object.defineProperty(e,Symbol.toStringTag,{value:"Descriptor",configurable:!0}),e},toClassDescriptor:function(t){var e=String(t.kind);if("class"!==e)throw new TypeError('A class descriptor\'s .kind property must be "class", but a decorator created a class descriptor with .kind "'+e+'"');this.disallowProperty(t,"key","A class descriptor"),this.disallowProperty(t,"placement","A class descriptor"),this.disallowProperty(t,"descriptor","A class descriptor"),this.disallowProperty(t,"initializer","A class descriptor"),this.disallowProperty(t,"extras","A class descriptor");var o=he(t,"finisher");return{elements:this.toElementDescriptors(t.elements),finisher:o}},runClassFinishers:function(t,e){for(var o=0;o<e.length;o++){var i=(0,e[o])(t);if(void 0!==i){if("function"!=typeof i)throw new TypeError("Finishers must return a constructor.");t=i}}return t},disallowProperty:function(t,e,o){if(void 0!==t[e])throw new TypeError(o+" can't have a ."+e+" property.")}};return t}function be(t){var e,o=fe(t.key);"method"===t.kind?e={value:t.value,writable:!0,configurable:!0,enumerable:!1}:"get"===t.kind?e={get:t.value,configurable:!0,enumerable:!1}:"set"===t.kind?e={set:t.value,configurable:!0,enumerable:!1}:"field"===t.kind&&(e={configurable:!0,writable:!0,enumerable:!0});var i={kind:"field"===t.kind?"field":"method",key:o,placement:t.static?"static":"field"===t.kind?"own":"prototype",descriptor:e};return t.decorators&&(i.decorators=t.decorators),"field"===t.kind&&(i.initializer=t.value),i}function xe(t,e){void 0!==t.descriptor.get?e.descriptor.get=t.descriptor.get:e.descriptor.set=t.descriptor.set}function ge(t){return t.decorators&&t.decorators.length}function pe(t){return void 0!==t&&!(void 0===t.value&&void 0===t.writable)}function he(t,e){var o=t[e];if(void 0!==o&&"function"!=typeof o)throw new TypeError("Expected '"+e+"' to be a function");return o}function fe(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var o=t[Symbol.toPrimitive];if(void 0!==o){var i=o.call(t,e||"default");if("object"!=typeof i)return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}function me(t,e){(null==e||e>t.length)&&(e=t.length);for(var o=0,i=new Array(e);o<e;o++)i[o]=t[o];return i}function _e(){return _e="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,o){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=ue(t)););return t}(t,e);if(i){var r=Object.getOwnPropertyDescriptor(i,e);return r.get?r.get.call(arguments.length<3?t:o):r.value}},_e.apply(this,arguments)}function ue(t){return ue=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},ue(t)}const{stablePrefix:ve}=g,{prefix:ye}=x;let we=function(t,e,o,i){var r=ce();if(i)for(var n=0;n<i.length;n++)r=i[n](r);var s=e((function(t){r.initializeInstanceElements(t,a.elements)}),o),a=r.decorateClass(function(t){for(var e=[],o=function(t){return"method"===t.kind&&t.key===n.key&&t.placement===n.placement},i=0;i<t.length;i++){var r,n=t[i];if("method"===n.kind&&(r=e.find(o)))if(pe(n.descriptor)||pe(r.descriptor)){if(ge(n)||ge(r))throw new ReferenceError("Duplicated methods ("+n.key+") can't be decorated.");r.descriptor=n.descriptor}else{if(ge(n)){if(ge(r))throw new ReferenceError("Decorators can't be placed on different accessors with for the same property ("+n.key+").");r.decorators=n.decorators}xe(n,r)}else e.push(n)}return e}(s.d.map(be)),t);return r.initializeClassElements(s.F,a.elements),r.runClassFinishers(s.F,a.finishers)}([b(`${ve}-combo-box`)],(function(t,e){class o extends e{constructor(...e){super(...e),t(this)}}return{F:o,d:[{kind:"field",key:"_filterInputValue",value:()=>""},{kind:"field",key:"_shouldTriggerBeFocusable",value:()=>!1},{kind:"field",decorators:[_("#selection-button")],key:"_selectionButtonNode",value:void 0},{kind:"field",decorators:[_("input")],key:"_filterInputNode",value:void 0},{kind:"method",key:"_testItemWithQueryText",value:function(t){return(this.itemMatches||this._defaultItemMatches)(t,this._filterInputNode.value)}},{kind:"method",key:"_defaultItemMatches",value:function(t,e){return t.textContent.toLowerCase().indexOf(e.toLowerCase())>=0}},{kind:"method",key:"_handleInput",value:function(){const t=this.querySelectorAll(this.constructor.selectorItem),e=this._filterInputNode.value?z(t,this._testItemWithQueryText,this):-1;v(t,((t,o)=>{t.highlighted=o===e}));const{_filterInputNode:o}=this;this._filterInputValue=o?o.value:"",this.open=!0,this.requestUpdate()}},{kind:"method",key:"_handleClickInner",value:function(t){var e;null!==(e=this._selectionButtonNode)&&void 0!==e&&e.contains(t.target)?this._handleUserInitiatedClearInput():_e(ue(o.prototype),"_handleClickInner",this).call(this,t)}},{kind:"method",key:"_handleKeypressInner",value:function(t){var e;const{key:i}=t,r=this.constructor.getAction(i),{TRIGGERING:n}=Pt;null===(e=this._selectionButtonNode)||void 0===e||!e.contains(t.target)||r!==n&&" "!==i?_e(ue(o.prototype),"_handleKeypressInner",this).call(this,t):this._handleUserInitiatedClearInput()}},{kind:"method",key:"_handleUserInitiatedClearInput",value:function(){v(this.querySelectorAll(this.constructor.selectorItem),(t=>{t.highlighted=!1})),this._filterInputValue="",this._filterInputNode.focus(),this.open=!1,this.requestUpdate()}},{kind:"method",key:"_handleUserInitiatedSelectItem",value:function(t){t&&!this._selectionShouldChange(t)&&(this._filterInputValue=t.textContent||"",this.open=!1,this.requestUpdate()),_e(ue(o.prototype),"_handleUserInitiatedSelectItem",this).call(this,t)}},{kind:"method",key:"_renderTriggerContent",value:function(){const{disabled:t,triggerContent:e,_filterInputValue:o,_handleInput:i}=this;return l(se||(se=le`<input id="trigger-label" class="${0}--text-input" ?disabled="${0}" placeholder="${0}" .value="${0}" role="combobox" aria-expanded="${0}" aria-labelledby="assistiveStatus" aria-controls="menu-body" aria-autocomplete="list" @input="${0}">`),ye,t,e,o,this.open,i)}},{kind:"method",key:"_renderFollowingTriggerContent",value:function(){const{clearSelectionLabel:t,_filterInputValue:e}=this;return 0===e.length?void 0:l(ae||(ae=le`<div id="selection-button" role="button" class="${0}--list-box__selection" tabindex="0" title="${0}">${0}</div>`),ye,t,Nt({"aria-label":t}))}},{kind:"field",decorators:[d({attribute:"clear-selection-label"})],key:"clearSelectionLabel",value:()=>""},{kind:"field",decorators:[d({attribute:!1})],key:"itemMatches",value:void 0},{kind:"method",key:"shouldUpdate",value:function(t){_e(ue(o.prototype),"shouldUpdate",this).call(this,t);const{_selectedItemContent:e}=this;return e&&t.has("value")&&(this._filterInputValue=(null==e?void 0:e.textContent)||""),!0}},{kind:"method",key:"updated",value:function(t){_e(ue(o.prototype),"updated",this).call(this,t);const{_listBoxNode:e}=this;e&&e.classList.add(`${ye}--combo-box`)}},{kind:"field",static:!0,key:"TRIGGER_KEYS",value:()=>new Set(["Enter"])},{kind:"get",static:!0,key:"selectorItemHighlighted",value:function(){return`${ye}-combo-box-item[highlighted]`}},{kind:"get",static:!0,key:"selectorItem",value:function(){return`${ye}-combo-box-item`}},{kind:"get",static:!0,key:"selectorItemSelected",value:function(){return`${ye}-combo-box-item[selected]`}},{kind:"get",static:!0,key:"eventBeforeToggle",value:function(){return`${ye}-combo-box-beingtoggled`}},{kind:"get",static:!0,key:"eventToggle",value:function(){return`${ye}-combo-box-toggled`}},{kind:"get",static:!0,key:"eventBeforeSelect",value:function(){return`${ye}-combo-box-beingselected`}},{kind:"get",static:!0,key:"eventSelect",value:function(){return`${ye}-combo-box-selected`}}]}}),de);
|
|
97
97
|
/**
|
|
98
98
|
* @license
|
|
99
99
|
*
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
*/
|
|
77
77
|
|
|
78
78
|
let process = { env: {} };
|
|
79
|
-
import { f as svg, g as spread, F as FocusMixin, L as LitElement, p as property, a as classMap, h as html, as as styles, d as carbonElement, s as settings_1, e as settings } from './masthead-composite-
|
|
79
|
+
import { f as svg, g as spread, F as FocusMixin, L as LitElement, p as property, a as classMap, h as html, as as styles, d as carbonElement, s as settings_1, e as settings } from './masthead-composite-25fa2353.js';
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
82
|
* @license
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
*/
|
|
77
77
|
|
|
78
78
|
let process = { env: {} };
|
|
79
|
-
import { f as svg, g as spread, F as FocusMixin, L as LitElement, p as property, a as classMap, h as html, as as styles, d as carbonElement, s as settings_1, e as settings } from './masthead-composite-
|
|
79
|
+
import { f as svg, g as spread, F as FocusMixin, L as LitElement, p as property, a as classMap, h as html, as as styles, d as carbonElement, s as settings_1, e as settings } from './masthead-composite-ed75e8d9.js';
|
|
80
80
|
|
|
81
81
|
/**
|
|
82
82
|
* @license
|
|
@@ -75,7 +75,7 @@
|
|
|
75
75
|
* https://www.npmjs.com/package/axios
|
|
76
76
|
*/
|
|
77
77
|
|
|
78
|
-
import{f as e,g as t,F as r,L as i,p as n,a as o,h as s,as as a,d as l,s as c,e as d}from"./masthead-composite-
|
|
78
|
+
import{f as e,g as t,F as r,L as i,p as n,a as o,h as s,as as a,d as l,s as c,e as d}from"./masthead-composite-21baf794.js";
|
|
79
79
|
/**
|
|
80
80
|
* @license
|
|
81
81
|
*
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
*/
|
|
77
77
|
|
|
78
78
|
let process = { env: {} };
|
|
79
|
-
import { L as LitElement, h as html, as as styles, d as carbonElement, e as settings } from './masthead-composite-
|
|
79
|
+
import { L as LitElement, h as html, as as styles, d as carbonElement, e as settings } from './masthead-composite-25fa2353.js';
|
|
80
80
|
|
|
81
81
|
let _ = t => t,
|
|
82
82
|
_t;
|