@ukic/canary-web-components 2.0.0-canary.26 → 2.0.0-canary.27
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cjs/core.cjs.js +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js +1 -1
- package/dist/cjs/ic-alert.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-data-table.cjs.entry.js +5 -3
- package/dist/cjs/ic-data-table.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-empty-state_2.cjs.entry.js +15 -9
- package/dist/cjs/ic-empty-state_2.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-pagination_4.cjs.entry.js +6 -6
- package/dist/cjs/ic-pagination_4.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-popover-menu.cjs.entry.js +18 -12
- package/dist/cjs/ic-popover-menu.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-search-bar.cjs.entry.js +14 -27
- package/dist/cjs/ic-search-bar.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-context.cjs.entry.js +68 -145
- package/dist/cjs/ic-tab-context.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab-panel.cjs.entry.js +5 -13
- package/dist/cjs/ic-tab-panel.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-tab.cjs.entry.js +9 -10
- package/dist/cjs/ic-tab.cjs.entry.js.map +1 -1
- package/dist/cjs/ic-typography.cjs.entry.js +3 -1
- package/dist/cjs/ic-typography.cjs.entry.js.map +1 -1
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/collection/components/ic-data-table/ic-data-table.css +5 -1
- package/dist/collection/components/ic-data-table/ic-data-table.js +4 -2
- package/dist/collection/components/ic-data-table/ic-data-table.js.map +1 -1
- package/dist/collection/components/ic-data-table/story-data.js +46 -5
- package/dist/collection/components/ic-data-table/story-data.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js +46 -14
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.js.map +1 -1
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.types.js +2 -0
- package/dist/collection/components/ic-pagination-bar/ic-pagination-bar.types.js.map +1 -0
- package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js +20 -2
- package/dist/collection/components/ic-pagination-bar/test/basic/ic-pagination-bar.spec.js.map +1 -1
- package/dist/components/ic-alert2.js +1 -1
- package/dist/components/ic-alert2.js.map +1 -1
- package/dist/components/ic-data-table.js +5 -3
- package/dist/components/ic-data-table.js.map +1 -1
- package/dist/components/ic-pagination-bar2.js +18 -10
- package/dist/components/ic-pagination-bar2.js.map +1 -1
- package/dist/components/ic-popover-menu.js +20 -13
- package/dist/components/ic-popover-menu.js.map +1 -1
- package/dist/components/ic-search-bar.js +14 -27
- package/dist/components/ic-search-bar.js.map +1 -1
- package/dist/components/ic-select2.js +5 -5
- package/dist/components/ic-select2.js.map +1 -1
- package/dist/components/ic-tab-context.js +68 -145
- package/dist/components/ic-tab-context.js.map +1 -1
- package/dist/components/ic-tab-panel.js +6 -17
- package/dist/components/ic-tab-panel.js.map +1 -1
- package/dist/components/ic-tab.js +9 -10
- package/dist/components/ic-tab.js.map +1 -1
- package/dist/components/ic-text-field2.js +1 -1
- package/dist/components/ic-text-field2.js.map +1 -1
- package/dist/components/ic-typography2.js +3 -1
- package/dist/components/ic-typography2.js.map +1 -1
- package/dist/core/core.esm.js +1 -1
- package/dist/core/core.esm.js.map +1 -1
- package/dist/core/p-05ae9a59.entry.js +2 -0
- package/dist/core/p-05ae9a59.entry.js.map +1 -0
- package/dist/core/{p-989310a8.entry.js → p-0cf856e4.entry.js} +2 -2
- package/dist/core/p-0cf856e4.entry.js.map +1 -0
- package/dist/core/{p-2ee5d3fb.entry.js → p-34b333de.entry.js} +2 -2
- package/dist/core/p-34b333de.entry.js.map +1 -0
- package/dist/core/{p-6b1fcf87.entry.js → p-383ba7e8.entry.js} +2 -2
- package/dist/core/p-383ba7e8.entry.js.map +1 -0
- package/dist/core/p-6ca98c5d.entry.js +2 -0
- package/dist/core/p-6ca98c5d.entry.js.map +1 -0
- package/dist/core/{p-0ec04c16.entry.js → p-a7331e7c.entry.js} +2 -2
- package/dist/core/p-a7331e7c.entry.js.map +1 -0
- package/dist/core/p-b535c802.entry.js +2 -0
- package/dist/core/p-b535c802.entry.js.map +1 -0
- package/dist/core/{p-fa77211d.entry.js → p-cb156309.entry.js} +2 -2
- package/dist/core/p-cb156309.entry.js.map +1 -0
- package/dist/core/p-e50af3df.entry.js +2 -0
- package/dist/core/p-e50af3df.entry.js.map +1 -0
- package/dist/core/p-fc007ce4.entry.js +2 -0
- package/dist/core/p-fc007ce4.entry.js.map +1 -0
- package/dist/esm/core.js +1 -1
- package/dist/esm/ic-alert.entry.js +1 -1
- package/dist/esm/ic-alert.entry.js.map +1 -1
- package/dist/esm/ic-data-table.entry.js +5 -3
- package/dist/esm/ic-data-table.entry.js.map +1 -1
- package/dist/esm/ic-empty-state_2.entry.js +15 -9
- package/dist/esm/ic-empty-state_2.entry.js.map +1 -1
- package/dist/esm/ic-pagination_4.entry.js +6 -6
- package/dist/esm/ic-pagination_4.entry.js.map +1 -1
- package/dist/esm/ic-popover-menu.entry.js +18 -12
- package/dist/esm/ic-popover-menu.entry.js.map +1 -1
- package/dist/esm/ic-search-bar.entry.js +14 -27
- package/dist/esm/ic-search-bar.entry.js.map +1 -1
- package/dist/esm/ic-tab-context.entry.js +68 -145
- package/dist/esm/ic-tab-context.entry.js.map +1 -1
- package/dist/esm/ic-tab-panel.entry.js +5 -13
- package/dist/esm/ic-tab-panel.entry.js.map +1 -1
- package/dist/esm/ic-tab.entry.js +9 -10
- package/dist/esm/ic-tab.entry.js.map +1 -1
- package/dist/esm/ic-typography.entry.js +3 -1
- package/dist/esm/ic-typography.entry.js.map +1 -1
- package/dist/esm/loader.js +1 -1
- package/dist/types/components/ic-data-table/story-data.d.ts +15 -0
- package/dist/types/components/ic-pagination-bar/ic-pagination-bar.d.ts +9 -4
- package/dist/types/components/ic-pagination-bar/ic-pagination-bar.types.d.ts +4 -0
- package/dist/types/components.d.ts +13 -3
- package/hydrate/index.js +150 -233
- package/package.json +3 -3
- package/dist/core/p-0ec04c16.entry.js.map +0 -1
- package/dist/core/p-216fbd5e.entry.js +0 -2
- package/dist/core/p-216fbd5e.entry.js.map +0 -1
- package/dist/core/p-2ee5d3fb.entry.js.map +0 -1
- package/dist/core/p-3ba4335c.entry.js +0 -2
- package/dist/core/p-3ba4335c.entry.js.map +0 -1
- package/dist/core/p-40e5fa80.entry.js +0 -2
- package/dist/core/p-40e5fa80.entry.js.map +0 -1
- package/dist/core/p-6af080d3.entry.js +0 -2
- package/dist/core/p-6af080d3.entry.js.map +0 -1
- package/dist/core/p-6b1fcf87.entry.js.map +0 -1
- package/dist/core/p-989310a8.entry.js.map +0 -1
- package/dist/core/p-c98ce508.entry.js +0 -2
- package/dist/core/p-c98ce508.entry.js.map +0 -1
- package/dist/core/p-fa77211d.entry.js.map +0 -1
package/hydrate/index.js
CHANGED
@@ -8345,7 +8345,7 @@ var closeIcon = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fil
|
|
8345
8345
|
</svg>
|
8346
8346
|
`;
|
8347
8347
|
|
8348
|
-
const icAlertCss = "/*!@html*/html.sc-ic-alert{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-alert{margin:0}/*!@main*/main.sc-ic-alert{display:block}/*!@h1*/h1.sc-ic-alert{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-alert{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-alert{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-alert{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-alert{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-alert,strong.sc-ic-alert{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-alert,kbd.sc-ic-alert,samp.sc-ic-alert{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-alert{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-alert,sup.sc-ic-alert{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-alert{bottom:-0.25em}/*!@sup*/sup.sc-ic-alert{top:-0.5em}/*!@img*/img.sc-ic-alert{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-alert,input.sc-ic-alert,optgroup.sc-ic-alert,select.sc-ic-alert,textarea.sc-ic-alert{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-alert,input.sc-ic-alert{overflow:visible}/*!@button,\nselect*/button.sc-ic-alert,select.sc-ic-alert{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-alert,[type=\"button\"].sc-ic-alert,[type=\"reset\"].sc-ic-alert,[type=\"submit\"].sc-ic-alert{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-alert::-moz-focus-inner,[type=\"button\"].sc-ic-alert::-moz-focus-inner,[type=\"reset\"].sc-ic-alert::-moz-focus-inner,[type=\"submit\"].sc-ic-alert::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-alert:-moz-focusring,[type=\"button\"].sc-ic-alert:-moz-focusring,[type=\"reset\"].sc-ic-alert:-moz-focusring,[type=\"submit\"].sc-ic-alert:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-alert{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-alert{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-alert{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-alert{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-alert,[type=\"radio\"].sc-ic-alert{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-alert::-webkit-inner-spin-button,[type=\"number\"].sc-ic-alert::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-alert{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-alert::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-alert::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-alert{display:block}/*!@summary*/summary.sc-ic-alert{display:list-item}/*!@template*/template.sc-ic-alert{display:none}/*!@[hidden]*/[hidden].sc-ic-alert{display:none}/*!@html,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo*/html.sc-ic-alert,body.sc-ic-alert,div.sc-ic-alert,span.sc-ic-alert,applet.sc-ic-alert,object.sc-ic-alert,iframe.sc-ic-alert,h1.sc-ic-alert,h2.sc-ic-alert,h3.sc-ic-alert,h4.sc-ic-alert,h5.sc-ic-alert,h6.sc-ic-alert,p.sc-ic-alert,blockquote.sc-ic-alert,pre.sc-ic-alert,a.sc-ic-alert,abbr.sc-ic-alert,acronym.sc-ic-alert,address.sc-ic-alert,big.sc-ic-alert,cite.sc-ic-alert,code.sc-ic-alert,del.sc-ic-alert,dfn.sc-ic-alert,em.sc-ic-alert,img.sc-ic-alert,ins.sc-ic-alert,kbd.sc-ic-alert,q.sc-ic-alert,s.sc-ic-alert,samp.sc-ic-alert,small.sc-ic-alert,strike.sc-ic-alert,strong.sc-ic-alert,sub.sc-ic-alert,sup.sc-ic-alert,tt.sc-ic-alert,var.sc-ic-alert,b.sc-ic-alert,u.sc-ic-alert,i.sc-ic-alert,center.sc-ic-alert,dl.sc-ic-alert,dt.sc-ic-alert,dd.sc-ic-alert,ol.sc-ic-alert,ul.sc-ic-alert,li.sc-ic-alert,fieldset.sc-ic-alert,form.sc-ic-alert,label.sc-ic-alert,legend.sc-ic-alert,table.sc-ic-alert,caption.sc-ic-alert,tbody.sc-ic-alert,tfoot.sc-ic-alert,thead.sc-ic-alert,tr.sc-ic-alert,th.sc-ic-alert,td.sc-ic-alert,article.sc-ic-alert,aside.sc-ic-alert,canvas.sc-ic-alert,details.sc-ic-alert,embed.sc-ic-alert,figure.sc-ic-alert,figcaption.sc-ic-alert,footer.sc-ic-alert,header.sc-ic-alert,hgroup.sc-ic-alert,menu.sc-ic-alert,nav.sc-ic-alert,output.sc-ic-alert,ruby.sc-ic-alert,section.sc-ic-alert,summary.sc-ic-alert,time.sc-ic-alert,mark.sc-ic-alert,audio.sc-ic-alert,video.sc-ic-alert{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host*/.sc-ic-alert-h{display:block}/*!@.container*/.container.sc-ic-alert{min-height:3.5rem;border-radius:var(--ic-border-radius);position:relative;display:flex;align-items:center}/*!@.container-neutral*/.container-neutral.sc-ic-alert{background-color:var(--ic-status-unknown-light)}/*!@.container-info*/.container-info.sc-ic-alert{background-color:var(--ic-status-info-light)}/*!@.container-warning*/.container-warning.sc-ic-alert{background-color:var(--ic-status-warning-light)}/*!@.container-error*/.container-error.sc-ic-alert{background-color:var(--ic-status-error-light)}/*!@.container-success*/.container-success.sc-ic-alert{background-color:var(--ic-status-success-light)}/*!@.alert-icon-container*/.alert-icon-container.sc-ic-alert{height:100%;display:flex;align-items:center}/*!@.divider*/.divider.sc-ic-alert{height:100%;width:var(--ic-space-xs);border-radius:var(--ic-space-xxxs) 0 0 var(--ic-space-xxxs);position:absolute}/*!@.divider-neutral*/.divider-neutral.sc-ic-alert{background-color:var(--ic-status-unknown)}/*!@.divider-info*/.divider-info.sc-ic-alert{background-color:var(--ic-status-info)}/*!@.divider-warning*/.divider-warning.sc-ic-alert{background-color:var(--ic-status-warning)}/*!@.divider-error*/.divider-error.sc-ic-alert{background-color:var(--ic-status-error)}/*!@.divider-success*/.divider-success.sc-ic-alert{background-color:var(--ic-status-success)}/*!@.alert-icon*/.alert-icon.sc-ic-alert{height:var(--ic-space-lg);width:1.375rem;margin-left:1.125rem}/*!@.icon-placeholder*/.icon-placeholder.sc-ic-alert{margin-left:var(--ic-space-xs)}/*!@.alert-icon > svg*/.alert-icon.sc-ic-alert>svg.sc-ic-alert{height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block}/*!@.icon-neutral > svg,\n::slotted(svg)*/.icon-neutral.sc-ic-alert>svg.sc-ic-alert,.sc-ic-alert-s>svg{height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block;fill:var(--ic-status-unknown)}/*!@:host([variant=\"info\"]) .alert-icon svg*/[variant=\"info\"].sc-ic-alert-h .alert-icon.sc-ic-alert svg.sc-ic-alert{fill:var(--ic-status-info)}/*!@:host([variant=\"warning\"]) .alert-icon svg*/[variant=\"warning\"].sc-ic-alert-h .alert-icon.sc-ic-alert svg.sc-ic-alert{fill:var(--ic-status-warning)}/*!@:host([variant=\"error\"]) .alert-icon svg*/[variant=\"error\"].sc-ic-alert-h .alert-icon.sc-ic-alert svg.sc-ic-alert{fill:var(--ic-status-error)}/*!@:host([variant=\"success\"]) .alert-icon svg*/[variant=\"success\"].sc-ic-alert-h .alert-icon.sc-ic-alert svg.sc-ic-alert{fill:var(--ic-status-success)}/*!@.alert-content*/.alert-content.sc-ic-alert{display:flex;align-items:center;margin-left:0.625rem;width:100%}/*!@.alert-message*/.alert-message.sc-ic-alert{display:flex;align-items:center;padding:var(--ic-space-xs) var(--ic-space-xs) var(--ic-space-xs) 0;flex:1}/*!@.alert-message-title-above*/.alert-message-title-above.sc-ic-alert{display:inline}/*!@.alert-title*/.alert-title.sc-ic-alert{margin-right:var(--ic-space-xs)}/*!@.alert-title-above*/.alert-title-above.sc-ic-alert{white-space:normal}/*!@.alert-action-container*/.alert-action-container.sc-ic-alert{margin-right:var(--ic-space-xs);display:flex;align-items:center}/*!@.dismiss-icon*/.dismiss-icon.sc-ic-alert{margin-right:var(--ic-space-xxxs);margin-left:-0.375rem;padding:0.375rem;border:none;border-radius:50%;background-color:inherit;display:flex;align-items:center;justify-content:center}/*!@.dismiss-icon:hover*/.dismiss-icon.sc-ic-alert:hover{cursor:pointer}@media (max-width: 628px){/*!@.alert-content*/.alert-content.sc-ic-alert{display:flex;flex-direction:column;align-items:flex-start}/*!@.alert-message*/.alert-message.sc-ic-alert{display:flex;flex-direction:column;align-items:flex-start}/*!@.alert-title*/.alert-title.sc-ic-alert{white-space:normal}/*!@.alert-action-container*/.alert-action-container.sc-ic-alert{margin-bottom:var(--ic-space-xs)}}@media (forced-colors: active){/*!@.container*/.container.sc-ic-alert{border:var(--ic-hc-border)}}";
|
8348
|
+
const icAlertCss = "/*!@html*/html.sc-ic-alert{line-height:1.15;-webkit-text-size-adjust:100%}/*!@body*/body.sc-ic-alert{margin:0}/*!@main*/main.sc-ic-alert{display:block}/*!@h1*/h1.sc-ic-alert{font-size:2em;margin:0.67em 0}/*!@hr*/hr.sc-ic-alert{box-sizing:content-box;height:0;overflow:visible}/*!@pre*/pre.sc-ic-alert{font-family:monospace, monospace;font-size:1em}/*!@a*/a.sc-ic-alert{background-color:transparent}/*!@abbr[title]*/abbr[title].sc-ic-alert{border-bottom:none;text-decoration:underline;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}/*!@b,\nstrong*/b.sc-ic-alert,strong.sc-ic-alert{font-weight:bolder}/*!@code,\nkbd,\nsamp*/code.sc-ic-alert,kbd.sc-ic-alert,samp.sc-ic-alert{font-family:monospace, monospace;font-size:1em}/*!@small*/small.sc-ic-alert{font-size:80%}/*!@sub,\nsup*/sub.sc-ic-alert,sup.sc-ic-alert{font-size:75%;line-height:0;position:relative;vertical-align:baseline}/*!@sub*/sub.sc-ic-alert{bottom:-0.25em}/*!@sup*/sup.sc-ic-alert{top:-0.5em}/*!@img*/img.sc-ic-alert{border-style:none}/*!@button,\ninput,\noptgroup,\nselect,\ntextarea*/button.sc-ic-alert,input.sc-ic-alert,optgroup.sc-ic-alert,select.sc-ic-alert,textarea.sc-ic-alert{font-family:inherit;font-size:100%;line-height:1.15;margin:0}/*!@button,\ninput*/button.sc-ic-alert,input.sc-ic-alert{overflow:visible}/*!@button,\nselect*/button.sc-ic-alert,select.sc-ic-alert{text-transform:none}/*!@button,\n[type=\"button\"],\n[type=\"reset\"],\n[type=\"submit\"]*/button.sc-ic-alert,[type=\"button\"].sc-ic-alert,[type=\"reset\"].sc-ic-alert,[type=\"submit\"].sc-ic-alert{-webkit-appearance:button}/*!@button::-moz-focus-inner,\n[type=\"button\"]::-moz-focus-inner,\n[type=\"reset\"]::-moz-focus-inner,\n[type=\"submit\"]::-moz-focus-inner*/button.sc-ic-alert::-moz-focus-inner,[type=\"button\"].sc-ic-alert::-moz-focus-inner,[type=\"reset\"].sc-ic-alert::-moz-focus-inner,[type=\"submit\"].sc-ic-alert::-moz-focus-inner{border-style:none;padding:0}/*!@button:-moz-focusring,\n[type=\"button\"]:-moz-focusring,\n[type=\"reset\"]:-moz-focusring,\n[type=\"submit\"]:-moz-focusring*/button.sc-ic-alert:-moz-focusring,[type=\"button\"].sc-ic-alert:-moz-focusring,[type=\"reset\"].sc-ic-alert:-moz-focusring,[type=\"submit\"].sc-ic-alert:-moz-focusring{outline:1px dotted ButtonText}/*!@fieldset*/fieldset.sc-ic-alert{padding:0.35em 0.75em 0.625em}/*!@legend*/legend.sc-ic-alert{box-sizing:border-box;color:inherit;display:table;max-width:100%;padding:0;white-space:normal}/*!@progress*/progress.sc-ic-alert{vertical-align:baseline}/*!@textarea*/textarea.sc-ic-alert{overflow:auto}/*!@[type=\"checkbox\"],\n[type=\"radio\"]*/[type=\"checkbox\"].sc-ic-alert,[type=\"radio\"].sc-ic-alert{box-sizing:border-box;padding:0}/*!@[type=\"number\"]::-webkit-inner-spin-button,\n[type=\"number\"]::-webkit-outer-spin-button*/[type=\"number\"].sc-ic-alert::-webkit-inner-spin-button,[type=\"number\"].sc-ic-alert::-webkit-outer-spin-button{height:auto}/*!@[type=\"search\"]*/[type=\"search\"].sc-ic-alert{-webkit-appearance:textfield;outline-offset:-2px}/*!@[type=\"search\"]::-webkit-search-decoration*/[type=\"search\"].sc-ic-alert::-webkit-search-decoration{-webkit-appearance:none}/*!@::-webkit-file-upload-button*/.sc-ic-alert::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}/*!@details*/details.sc-ic-alert{display:block}/*!@summary*/summary.sc-ic-alert{display:list-item}/*!@template*/template.sc-ic-alert{display:none}/*!@[hidden]*/[hidden].sc-ic-alert{display:none}/*!@html,\nbody,\ndiv,\nspan,\napplet,\nobject,\niframe,\nh1,\nh2,\nh3,\nh4,\nh5,\nh6,\np,\nblockquote,\npre,\na,\nabbr,\nacronym,\naddress,\nbig,\ncite,\ncode,\ndel,\ndfn,\nem,\nimg,\nins,\nkbd,\nq,\ns,\nsamp,\nsmall,\nstrike,\nstrong,\nsub,\nsup,\ntt,\nvar,\nb,\nu,\ni,\ncenter,\ndl,\ndt,\ndd,\nol,\nul,\nli,\nfieldset,\nform,\nlabel,\nlegend,\ntable,\ncaption,\ntbody,\ntfoot,\nthead,\ntr,\nth,\ntd,\narticle,\naside,\ncanvas,\ndetails,\nembed,\nfigure,\nfigcaption,\nfooter,\nheader,\nhgroup,\nmenu,\nnav,\noutput,\nruby,\nsection,\nsummary,\ntime,\nmark,\naudio,\nvideo*/html.sc-ic-alert,body.sc-ic-alert,div.sc-ic-alert,span.sc-ic-alert,applet.sc-ic-alert,object.sc-ic-alert,iframe.sc-ic-alert,h1.sc-ic-alert,h2.sc-ic-alert,h3.sc-ic-alert,h4.sc-ic-alert,h5.sc-ic-alert,h6.sc-ic-alert,p.sc-ic-alert,blockquote.sc-ic-alert,pre.sc-ic-alert,a.sc-ic-alert,abbr.sc-ic-alert,acronym.sc-ic-alert,address.sc-ic-alert,big.sc-ic-alert,cite.sc-ic-alert,code.sc-ic-alert,del.sc-ic-alert,dfn.sc-ic-alert,em.sc-ic-alert,img.sc-ic-alert,ins.sc-ic-alert,kbd.sc-ic-alert,q.sc-ic-alert,s.sc-ic-alert,samp.sc-ic-alert,small.sc-ic-alert,strike.sc-ic-alert,strong.sc-ic-alert,sub.sc-ic-alert,sup.sc-ic-alert,tt.sc-ic-alert,var.sc-ic-alert,b.sc-ic-alert,u.sc-ic-alert,i.sc-ic-alert,center.sc-ic-alert,dl.sc-ic-alert,dt.sc-ic-alert,dd.sc-ic-alert,ol.sc-ic-alert,ul.sc-ic-alert,li.sc-ic-alert,fieldset.sc-ic-alert,form.sc-ic-alert,label.sc-ic-alert,legend.sc-ic-alert,table.sc-ic-alert,caption.sc-ic-alert,tbody.sc-ic-alert,tfoot.sc-ic-alert,thead.sc-ic-alert,tr.sc-ic-alert,th.sc-ic-alert,td.sc-ic-alert,article.sc-ic-alert,aside.sc-ic-alert,canvas.sc-ic-alert,details.sc-ic-alert,embed.sc-ic-alert,figure.sc-ic-alert,figcaption.sc-ic-alert,footer.sc-ic-alert,header.sc-ic-alert,hgroup.sc-ic-alert,menu.sc-ic-alert,nav.sc-ic-alert,output.sc-ic-alert,ruby.sc-ic-alert,section.sc-ic-alert,summary.sc-ic-alert,time.sc-ic-alert,mark.sc-ic-alert,audio.sc-ic-alert,video.sc-ic-alert{margin:0;padding:0;border:0;font-size:100%;font-style:inherit;vertical-align:baseline}/*!@:host*/.sc-ic-alert-h{display:block}/*!@.container*/.container.sc-ic-alert{min-height:3.5rem;border-radius:var(--ic-border-radius);position:relative;display:flex;align-items:center}/*!@.container-neutral*/.container-neutral.sc-ic-alert{background-color:var(--ic-status-unknown-light)}/*!@.container-info*/.container-info.sc-ic-alert{background-color:var(--ic-status-info-light)}/*!@.container-warning*/.container-warning.sc-ic-alert{background-color:var(--ic-status-warning-light)}/*!@.container-error*/.container-error.sc-ic-alert{background-color:var(--ic-status-error-light)}/*!@.container-success*/.container-success.sc-ic-alert{background-color:var(--ic-status-success-light)}/*!@.alert-icon-container*/.alert-icon-container.sc-ic-alert{height:100%;display:flex;align-items:center}/*!@.divider*/.divider.sc-ic-alert{height:100%;width:var(--ic-space-xs);border-radius:var(--ic-space-xxxs) 0 0 var(--ic-space-xxxs);position:absolute}/*!@.divider-neutral*/.divider-neutral.sc-ic-alert{background-color:var(--ic-status-unknown)}/*!@.divider-info*/.divider-info.sc-ic-alert{background-color:var(--ic-status-info)}/*!@.divider-warning*/.divider-warning.sc-ic-alert{background-color:var(--ic-status-warning)}/*!@.divider-error*/.divider-error.sc-ic-alert{background-color:var(--ic-status-error)}/*!@.divider-success*/.divider-success.sc-ic-alert{background-color:var(--ic-status-success)}/*!@.alert-icon*/.alert-icon.sc-ic-alert{height:var(--ic-space-lg);width:1.375rem;margin-left:1.125rem}/*!@.icon-placeholder*/.icon-placeholder.sc-ic-alert{margin-left:var(--ic-space-xs)}/*!@.alert-icon > svg*/.alert-icon.sc-ic-alert>svg.sc-ic-alert{height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block}/*!@:host([showdefaulticon=\"false\"]) .icon-neutral*/[showdefaulticon=\"false\"].sc-ic-alert-h .icon-neutral.sc-ic-alert{display:none}/*!@.icon-neutral > svg,\n::slotted(svg)*/.icon-neutral.sc-ic-alert>svg.sc-ic-alert,.sc-ic-alert-s>svg{height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block;fill:var(--ic-status-unknown)}/*!@:host([variant=\"info\"]) .alert-icon svg*/[variant=\"info\"].sc-ic-alert-h .alert-icon.sc-ic-alert svg.sc-ic-alert{fill:var(--ic-status-info)}/*!@:host([variant=\"warning\"]) .alert-icon svg*/[variant=\"warning\"].sc-ic-alert-h .alert-icon.sc-ic-alert svg.sc-ic-alert{fill:var(--ic-status-warning)}/*!@:host([variant=\"error\"]) .alert-icon svg*/[variant=\"error\"].sc-ic-alert-h .alert-icon.sc-ic-alert svg.sc-ic-alert{fill:var(--ic-status-error)}/*!@:host([variant=\"success\"]) .alert-icon svg*/[variant=\"success\"].sc-ic-alert-h .alert-icon.sc-ic-alert svg.sc-ic-alert{fill:var(--ic-status-success)}/*!@.alert-content*/.alert-content.sc-ic-alert{display:flex;align-items:center;margin-left:0.625rem;width:100%}/*!@.alert-message*/.alert-message.sc-ic-alert{display:flex;align-items:center;padding:var(--ic-space-xs) var(--ic-space-xs) var(--ic-space-xs) 0;flex:1}/*!@.alert-message-title-above*/.alert-message-title-above.sc-ic-alert{display:inline}/*!@.alert-title*/.alert-title.sc-ic-alert{margin-right:var(--ic-space-xs)}/*!@.alert-title-above*/.alert-title-above.sc-ic-alert{white-space:normal}/*!@.alert-action-container*/.alert-action-container.sc-ic-alert{margin-right:var(--ic-space-xs);display:flex;align-items:center}/*!@.dismiss-icon*/.dismiss-icon.sc-ic-alert{margin-right:var(--ic-space-xxxs);margin-left:-0.375rem;padding:0.375rem;border:none;border-radius:50%;background-color:inherit;display:flex;align-items:center;justify-content:center}/*!@.dismiss-icon:hover*/.dismiss-icon.sc-ic-alert:hover{cursor:pointer}@media (max-width: 628px){/*!@.alert-content*/.alert-content.sc-ic-alert{display:flex;flex-direction:column;align-items:flex-start}/*!@.alert-message*/.alert-message.sc-ic-alert{display:flex;flex-direction:column;align-items:flex-start}/*!@.alert-title*/.alert-title.sc-ic-alert{white-space:normal}/*!@.alert-action-container*/.alert-action-container.sc-ic-alert{margin-bottom:var(--ic-space-xs)}}@media (forced-colors: active){/*!@.container*/.container.sc-ic-alert{border:var(--ic-hc-border)}}";
|
8349
8349
|
|
8350
8350
|
/**
|
8351
8351
|
* @slot message - Content is placed to the right of the title.
|
@@ -10654,7 +10654,7 @@ var descendingIcon = `<svg focusable="false" aria-hidden="true" viewBox="0 0 24
|
|
10654
10654
|
<path d="M16.01 11H4v2h12.01v3L20 12l-3.99-4z"></path>
|
10655
10655
|
</svg>`;
|
10656
10656
|
|
10657
|
-
const icDataTableCss = "/*!@:host*/.sc-ic-data-table-h{position:relative;display:inline-flex;max-height:100%;width:var(--table-width, 100%);height:100%;min-width:var(--table-min-width);max-width:var(--table-max-width)}/*!@tbody*/tbody.sc-ic-data-table{vertical-align:top}/*!@.table-container*/.table-container.sc-ic-data-table{position:relative;height:calc(100% - var(--ic-space-xxxs));display:flex;flex-direction:column;width:100%}/*!@.cell-container*/.cell-container.sc-ic-data-table{display:flex;min-height:1.5rem;overflow-y:hidden;height:var(--row-height)}/*!@.truncation-show-hide*/.truncation-show-hide.sc-ic-data-table{overflow:visible;display:block}/*!@.cell-icon.truncation-show-hide*/.cell-icon.truncation-show-hide.sc-ic-data-table{display:flex}/*!@.cell-container:not(.data-type-element, .truncation-show-hide)*/.cell-container.sc-ic-data-table:not(.data-type-element,.truncation-show-hide).sc-ic-data-table{overflow-x:hidden}/*!@ic-loading-indicator*/ic-loading-indicator.sc-ic-data-table{position:sticky;top:20px}/*!@.table-row-container*/.table-row-container.sc-ic-data-table{position:relative;height:100%;overflow:auto;transition:var(--ic-easing-transition-fast);overflow-anchor:none}/*!@:host([show-pagination=\"true\"]) .table-row-container*/[show-pagination=\"true\"].sc-ic-data-table-h .table-row-container.sc-ic-data-table{height:calc(100% - 3.5625rem)}/*!@table*/table.sc-ic-data-table{table-layout:var(--table-layout, \"fixed\");border-spacing:0;width:100%;height:var(--table-height, auto)}/*!@.table-row-container:focus*/.table-row-container.sc-ic-data-table:focus{outline:none;box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast);z-index:1}/*!@:host([embedded=\"true\"]) .table-row-container*/[embedded=\"true\"].sc-ic-data-table-h .table-row-container.sc-ic-data-table{border:var(--ic-border-light)}/*!@.column-header-inner-container*/.column-header-inner-container.sc-ic-data-table{padding:var(--ic-space-xs);box-sizing:border-box}/*!@.column-header-sticky*/.column-header-sticky.sc-ic-data-table{position:sticky;top:0;z-index:1}/*!@.column-header-overlay*/.column-header-overlay.sc-ic-data-table{position:sticky;top:0;z-index:1;box-shadow:0 0.375rem var(--ic-space-xs) calc(var(--ic-space-xxs * -1))\n rgb(0 0 0 / 20%)}/*!@.row-header-sticky*/.row-header-sticky.sc-ic-data-table{position:sticky;left:0}/*!@.column-header,\n.table-row*/.column-header.sc-ic-data-table,.table-row.sc-ic-data-table{box-sizing:border-box}/*!@.table-row-selected*/.table-row-selected.sc-ic-data-table{background-color:var(--ic-table-row-selected) !important}/*!@.sort-button*/.sort-button.sc-ic-data-table{margin-left:auto}/*!@.sort-button:hover*/.sort-button.sc-ic-data-table:hover{background-color:var(--ic-action-dark-bg-hover)}/*!@.sort-button:active*/.sort-button.sc-ic-data-table:active{background-color:var(--ic-action-dark-bg-active)}/*!@.sort-button svg*/.sort-button.sc-ic-data-table svg.sc-ic-data-table{color:var(--ic-architectural-black)}/*!@.sort-button-unsorted svg*/.sort-button-unsorted.sc-ic-data-table svg.sc-ic-data-table{color:var(--ic-color-tertiary-text)}/*!@.table-density-dense .column-header-inner-container,\ntd.table-density-dense*/.table-density-dense.sc-ic-data-table .column-header-inner-container.sc-ic-data-table,td.table-density-dense.sc-ic-data-table{padding:var(--ic-space-xxs) var(--ic-space-xs) !important}/*!@.text-dense*/.text-dense.sc-ic-data-table{font-size:var(--ic-font-size-label)}/*!@.table-density-spacious .column-header-inner-container,\ntd.table-density-spacious*/.table-density-spacious.sc-ic-data-table .column-header-inner-container.sc-ic-data-table,td.table-density-spacious.sc-ic-data-table{padding:0.625rem var(--ic-space-xs) !important}/*!@.text-spacious*/.text-spacious.sc-ic-data-table{font-size:1.125rem}/*!@.column-header-text*/.column-header-text.sc-ic-data-table{font-weight:var(--ic-font-weight-bold)}/*!@.row-header,\n.column-header*/.row-header.sc-ic-data-table,.column-header.sc-ic-data-table{text-align:left;padding:var(--ic-space-xs);background-color:var(--ic-architectural-40);border-right:var(--ic-border-light);border-bottom:var(--ic-border-light)}/*!@.column-header*/.column-header.sc-ic-data-table{padding:0;width:var(--column-width);min-width:var(--column-min-width, 4rem);max-width:var(--column-max-width)}/*!@.column-header:last-child*/.column-header.sc-ic-data-table:last-child{border-right:none}/*!@.scrollable .column-header:last-child*/.scrollable.sc-ic-data-table .column-header.sc-ic-data-table:last-child{border-right:var(--ic-border-light) !important}/*!@:host([embedded=\"true\"]) tr:last-child .table-cell,\n:host([embedded=\"true\"]) tr:last-child .row-header*/[embedded=\"true\"].sc-ic-data-table-h tr.sc-ic-data-table:last-child .table-cell.sc-ic-data-table,[embedded=\"true\"].sc-ic-data-table-h tr.sc-ic-data-table:last-child .row-header.sc-ic-data-table{border-bottom:none}/*!@.column-header-alignment-left,\n.row-header-alignment-left,\n.cell-alignment-left*/.column-header-alignment-left.sc-ic-data-table,.row-header-alignment-left.sc-ic-data-table,.cell-alignment-left.sc-ic-data-table{text-align:left !important;justify-content:start !important}/*!@.column-header-alignment-right,\n.row-header-alignment-right,\n.cell-alignment-right*/.column-header-alignment-right.sc-ic-data-table,.row-header-alignment-right.sc-ic-data-table,.cell-alignment-right.sc-ic-data-table{text-align:right !important;justify-content:end !important}/*!@.cell-alignment-right.truncation-tooltip ic-tooltip ic-typography*/.cell-alignment-right.truncation-tooltip.sc-ic-data-table ic-tooltip.sc-ic-data-table ic-typography.sc-ic-data-table{padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}/*!@.cell-alignment-right.truncation-show-hide ic-typography*/.cell-alignment-right.truncation-show-hide.sc-ic-data-table ic-typography.sc-ic-data-table{--ellipsis-padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}/*!@.column-header-alignment-center,\n.row-header-alignment-center,\n.cell-alignment-center*/.column-header-alignment-center.sc-ic-data-table,.row-header-alignment-center.sc-ic-data-table,.cell-alignment-center.sc-ic-data-table{text-align:center !important;justify-content:center !important}/*!@.table-row:nth-child(even)*/.table-row.sc-ic-data-table:nth-child(even){background-color:var(--ic-architectural-20)}/*!@.table-cell*/.table-cell.sc-ic-data-table{padding:var(--ic-space-xs);border-bottom:solid var(--ic-architectural-100) var(--ic-space-1px);overflow:hidden;box-sizing:border-box;max-width:var(--column-max-width);min-width:var(--column-min-width)}/*!@.data-type-string,\n.data-type-address*/.data-type-string.sc-ic-data-table,.data-type-address.sc-ic-data-table{text-align:left;vertical-align:top}/*!@.data-type-number,\n.data-type-date*/.data-type-number.sc-ic-data-table,.data-type-date.sc-ic-data-table{text-align:right;justify-content:end;vertical-align:top}/*!@.cell-alignment-top*/.cell-alignment-top.sc-ic-data-table{vertical-align:top;align-items:flex-start}/*!@.cell-alignment-middle*/.cell-alignment-middle.sc-ic-data-table{vertical-align:middle;align-items:center}/*!@.cell-alignment-bottom*/.cell-alignment-bottom.sc-ic-data-table{vertical-align:bottom;align-items:flex-end}/*!@.cell-emphasis-low*/.cell-emphasis-low.sc-ic-data-table{color:var(--ic-color-secondary-text)}/*!@.cell-emphasis-high*/.cell-emphasis-high.sc-ic-data-table{font-weight:var(--ic-font-weight-bold)}/*!@.pagination-container*/.pagination-container.sc-ic-data-table{background-color:var(--ic-architectural-40);border-top:var(--ic-border-light)}/*!@.screen-reader-sort-text,\n.table-caption*/.screen-reader-sort-text.sc-ic-data-table,.table-caption.sc-ic-data-table{position:absolute;left:-100rem}/*!@.table-cell,\n.column-header,\n.row-header*/.table-cell.sc-ic-data-table,.column-header.sc-ic-data-table,.row-header.sc-ic-data-table{word-wrap:break-word;white-space:pre-wrap}/*!@.loading-empty*/.loading-empty.sc-ic-data-table{padding:var(--ic-space-xl) var(--ic-space-xxl);margin-top:var(--ic-space-xl)}/*!@.updating-state*/.updating-state.sc-ic-data-table{padding:0;border-bottom:var(--ic-border-light)}/*!@.updating-state-headers*/.updating-state-headers.sc-ic-data-table{border-bottom:none}/*!@.loading*/.loading.sc-ic-data-table{position:absolute;left:calc(50% - 5.9741rem);opacity:0;transition:opacity var(--ic-transition-duration-slow)}/*!@.loading.show-background*/.loading.show-background.sc-ic-data-table{background-color:var(--ic-architectural-white);border:var(--ic-border-light)}/*!@.loading.show*/.loading.show.sc-ic-data-table{opacity:1}/*!@.icon,\n::slotted(svg)*/.icon.sc-ic-data-table,.sc-ic-data-table-s>svg{height:var(--ic-space-lg);width:var(--ic-space-lg);margin-right:var(--ic-space-xxs)}/*!@.column-header-alignment-right > .icon,\n.row-header-alignment-right > .icon,\n.cell-alignment-right > .icon,\n.column-header-alignment-right > ::slotted(svg),\n.row-header-alignment-right > ::slotted(svg),\n.cell-alignment-right > ::slotted(svg)*/.column-header-alignment-right.sc-ic-data-table>.icon.sc-ic-data-table,.row-header-alignment-right.sc-ic-data-table>.icon.sc-ic-data-table,.cell-alignment-right.sc-ic-data-table>.icon.sc-ic-data-table,.column-header-alignment-right>.sc-ic-data-table-s>svg,.row-header-alignment-right>.sc-ic-data-table-s>svg,.cell-alignment-right>.sc-ic-data-table-s>svg{margin-right:auto}/*!@.column-header-alignment-center > ic-typography,\n.row-header-alignment-right > ic-typography,\n.cell-alignment-center > ic-typography*/.column-header-alignment-center.sc-ic-data-table>ic-typography.sc-ic-data-table,.row-header-alignment-right.sc-ic-data-table>ic-typography.sc-ic-data-table,.cell-alignment-center.sc-ic-data-table>ic-typography.sc-ic-data-table{flex:1}/*!@.icon > svg*/.icon.sc-ic-data-table>svg.sc-ic-data-table{height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block}/*!@.truncation-tooltip ic-typography*/.truncation-tooltip.sc-ic-data-table ic-typography.sc-ic-data-table{display:-webkit-box;-webkit-line-clamp:var(--ic-line-clamp, 0);-webkit-box-orient:vertical;overflow:hidden}/*!@.truncation-tooltip ic-typography,\n.truncation-show-hide ic-typography*/.truncation-tooltip.sc-ic-data-table ic-typography.sc-ic-data-table,.truncation-show-hide.sc-ic-data-table ic-typography.sc-ic-data-table{white-space:normal}/*!@.ic-tooltip-overflow*/.ic-tooltip-overflow.sc-ic-data-table{overflow:hidden;width:100%}@media screen and (min-width: 576px){/*!@.column-header-inner-container*/.column-header-inner-container.sc-ic-data-table{display:flex;align-items:center}}";
|
10657
|
+
const icDataTableCss = "/*!@:host*/.sc-ic-data-table-h{position:relative;display:inline-flex;max-height:100%;width:var(--table-width, 100%);height:100%;min-width:var(--table-min-width);max-width:var(--table-max-width)}/*!@tbody*/tbody.sc-ic-data-table{vertical-align:top}/*!@.table-container*/.table-container.sc-ic-data-table{position:relative;height:calc(100% - var(--ic-space-xxxs));display:flex;flex-direction:column;width:100%}/*!@.cell-container*/.cell-container.sc-ic-data-table{display:flex;min-height:1.5rem;overflow-y:hidden;height:var(--row-height)}/*!@.truncation-show-hide*/.truncation-show-hide.sc-ic-data-table{overflow:visible;display:block}/*!@.cell-icon.truncation-show-hide*/.cell-icon.truncation-show-hide.sc-ic-data-table{display:flex}/*!@.cell-container:not(.data-type-element, .truncation-show-hide)*/.cell-container.sc-ic-data-table:not(.data-type-element,.truncation-show-hide).sc-ic-data-table{overflow-x:hidden}/*!@ic-loading-indicator*/ic-loading-indicator.sc-ic-data-table{position:sticky;top:20px}/*!@.table-row-container*/.table-row-container.sc-ic-data-table{position:relative;height:100%;overflow:auto;transition:var(--ic-easing-transition-fast);overflow-anchor:none}/*!@:host([show-pagination=\"true\"]) .table-row-container*/[show-pagination=\"true\"].sc-ic-data-table-h .table-row-container.sc-ic-data-table{height:calc(100% - 3.5625rem)}/*!@table*/table.sc-ic-data-table{table-layout:var(--table-layout, \"fixed\");border-spacing:0;width:100%;height:var(--table-height, auto)}/*!@.table-row-container:focus*/.table-row-container.sc-ic-data-table:focus{outline:none;box-shadow:var(--ic-border-focus);border-radius:var(--ic-border-radius);transition:var(--ic-easing-transition-fast);z-index:1}/*!@:host([embedded=\"true\"]) .table-row-container*/[embedded=\"true\"].sc-ic-data-table-h .table-row-container.sc-ic-data-table{border:var(--ic-border-light)}/*!@.column-header-inner-container*/.column-header-inner-container.sc-ic-data-table{padding:var(--ic-space-xs);box-sizing:border-box}/*!@.column-header-sticky*/.column-header-sticky.sc-ic-data-table{position:sticky;top:0;z-index:1}/*!@.column-header-overlay*/.column-header-overlay.sc-ic-data-table{position:sticky;top:0;z-index:1;box-shadow:0 0.375rem var(--ic-space-xs) calc(var(--ic-space-xxs * -1))\n rgb(0 0 0 / 20%)}/*!@.row-header-sticky*/.row-header-sticky.sc-ic-data-table{position:sticky;left:0}/*!@.column-header,\n.table-row*/.column-header.sc-ic-data-table,.table-row.sc-ic-data-table{box-sizing:border-box}/*!@.table-row-selected*/.table-row-selected.sc-ic-data-table{background-color:var(--ic-table-row-selected) !important}/*!@.sort-button*/.sort-button.sc-ic-data-table{margin-left:auto}/*!@.sort-button:hover*/.sort-button.sc-ic-data-table:hover{background-color:var(--ic-action-dark-bg-hover)}/*!@.sort-button:active*/.sort-button.sc-ic-data-table:active{background-color:var(--ic-action-dark-bg-active)}/*!@.sort-button svg*/.sort-button.sc-ic-data-table svg.sc-ic-data-table{color:var(--ic-architectural-black)}/*!@.sort-button-unsorted svg*/.sort-button-unsorted.sc-ic-data-table svg.sc-ic-data-table{color:var(--ic-color-tertiary-text)}/*!@.table-density-dense .column-header-inner-container,\ntd.table-density-dense*/.table-density-dense.sc-ic-data-table .column-header-inner-container.sc-ic-data-table,td.table-density-dense.sc-ic-data-table{padding:var(--ic-space-xxs) var(--ic-space-xs) !important}/*!@.text-dense*/.text-dense.sc-ic-data-table{font-size:var(--ic-font-size-label)}/*!@.table-density-spacious .column-header-inner-container,\ntd.table-density-spacious*/.table-density-spacious.sc-ic-data-table .column-header-inner-container.sc-ic-data-table,td.table-density-spacious.sc-ic-data-table{padding:0.625rem var(--ic-space-xs) !important}/*!@.text-spacious*/.text-spacious.sc-ic-data-table{font-size:1.125rem}/*!@.column-header-text*/.column-header-text.sc-ic-data-table{font-weight:var(--ic-font-weight-bold)}/*!@.row-header,\n.column-header*/.row-header.sc-ic-data-table,.column-header.sc-ic-data-table{text-align:left;padding:var(--ic-space-xs);background-color:var(--ic-architectural-40);border-right:var(--ic-border-light);border-bottom:var(--ic-border-light)}/*!@.column-header*/.column-header.sc-ic-data-table{padding:0;width:var(--column-width);min-width:var(--column-min-width, 4rem);max-width:var(--column-max-width)}/*!@.column-header:last-child*/.column-header.sc-ic-data-table:last-child{border-right:none}/*!@.scrollable .column-header:last-child*/.scrollable.sc-ic-data-table .column-header.sc-ic-data-table:last-child{border-right:var(--ic-border-light) !important}/*!@:host([embedded=\"true\"]) tr:last-child .table-cell,\n:host([embedded=\"true\"]) tr:last-child .row-header*/[embedded=\"true\"].sc-ic-data-table-h tr.sc-ic-data-table:last-child .table-cell.sc-ic-data-table,[embedded=\"true\"].sc-ic-data-table-h tr.sc-ic-data-table:last-child .row-header.sc-ic-data-table{border-bottom:none}/*!@.column-header-alignment-left,\n.row-header-alignment-left,\n.cell-alignment-left*/.column-header-alignment-left.sc-ic-data-table,.row-header-alignment-left.sc-ic-data-table,.cell-alignment-left.sc-ic-data-table{text-align:left !important;justify-content:start !important}/*!@.column-header-alignment-right,\n.row-header-alignment-right,\n.cell-alignment-right*/.column-header-alignment-right.sc-ic-data-table,.row-header-alignment-right.sc-ic-data-table,.cell-alignment-right.sc-ic-data-table{text-align:right !important;justify-content:end !important}/*!@.cell-alignment-right.truncation-tooltip ic-tooltip ic-typography*/.cell-alignment-right.truncation-tooltip.sc-ic-data-table ic-tooltip.sc-ic-data-table ic-typography.sc-ic-data-table{padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}/*!@.cell-alignment-right.truncation-show-hide ic-typography*/.cell-alignment-right.truncation-show-hide.sc-ic-data-table ic-typography.sc-ic-data-table{--ellipsis-padding-right:calc(var(--ic-space-xxs) + var(--ic-space-xs))}/*!@.column-header-alignment-center,\n.row-header-alignment-center,\n.cell-alignment-center*/.column-header-alignment-center.sc-ic-data-table,.row-header-alignment-center.sc-ic-data-table,.cell-alignment-center.sc-ic-data-table{text-align:center !important;justify-content:center !important}/*!@.table-row:nth-child(even)*/.table-row.sc-ic-data-table:nth-child(even){background-color:var(--ic-architectural-20)}/*!@.table-cell*/.table-cell.sc-ic-data-table{padding:var(--ic-space-xs);border-bottom:solid var(--ic-architectural-100) var(--ic-space-1px);overflow:hidden;box-sizing:border-box;max-width:var(--column-max-width);min-width:var(--column-min-width)}/*!@.table-cell.with-overflow*/.table-cell.with-overflow.sc-ic-data-table{overflow:visible}/*!@.data-type-string,\n.data-type-address*/.data-type-string.sc-ic-data-table,.data-type-address.sc-ic-data-table{text-align:left;vertical-align:top}/*!@.data-type-number,\n.data-type-date*/.data-type-number.sc-ic-data-table,.data-type-date.sc-ic-data-table{text-align:right;justify-content:end;vertical-align:top}/*!@.cell-alignment-top*/.cell-alignment-top.sc-ic-data-table{vertical-align:top;align-items:flex-start}/*!@.cell-alignment-middle*/.cell-alignment-middle.sc-ic-data-table{vertical-align:middle;align-items:center}/*!@.cell-alignment-bottom*/.cell-alignment-bottom.sc-ic-data-table{vertical-align:bottom;align-items:flex-end}/*!@.cell-emphasis-low*/.cell-emphasis-low.sc-ic-data-table{color:var(--ic-color-secondary-text)}/*!@.cell-emphasis-high*/.cell-emphasis-high.sc-ic-data-table{font-weight:var(--ic-font-weight-bold)}/*!@.pagination-container*/.pagination-container.sc-ic-data-table{background-color:var(--ic-architectural-40);border-top:var(--ic-border-light)}/*!@.screen-reader-sort-text,\n.table-caption*/.screen-reader-sort-text.sc-ic-data-table,.table-caption.sc-ic-data-table{position:absolute;left:-100rem}/*!@.table-cell,\n.column-header,\n.row-header*/.table-cell.sc-ic-data-table,.column-header.sc-ic-data-table,.row-header.sc-ic-data-table{word-wrap:break-word;white-space:pre-wrap}/*!@.loading-empty*/.loading-empty.sc-ic-data-table{padding:var(--ic-space-xl) var(--ic-space-xxl);margin-top:var(--ic-space-xl)}/*!@.updating-state*/.updating-state.sc-ic-data-table{padding:0;border-bottom:var(--ic-border-light)}/*!@.updating-state-headers*/.updating-state-headers.sc-ic-data-table{border-bottom:none}/*!@.loading*/.loading.sc-ic-data-table{position:absolute;left:calc(50% - 5.9741rem);opacity:0;transition:opacity var(--ic-transition-duration-slow)}/*!@.loading.show-background*/.loading.show-background.sc-ic-data-table{background-color:var(--ic-architectural-white);border:var(--ic-border-light)}/*!@.loading.show*/.loading.show.sc-ic-data-table{opacity:1}/*!@.icon,\n::slotted(svg)*/.icon.sc-ic-data-table,.sc-ic-data-table-s>svg{height:var(--ic-space-lg);width:var(--ic-space-lg);margin-right:var(--ic-space-xxs)}/*!@.column-header-alignment-right > .icon,\n.row-header-alignment-right > .icon,\n.cell-alignment-right > .icon,\n.column-header-alignment-right > ::slotted(svg),\n.row-header-alignment-right > ::slotted(svg),\n.cell-alignment-right > ::slotted(svg)*/.column-header-alignment-right.sc-ic-data-table>.icon.sc-ic-data-table,.row-header-alignment-right.sc-ic-data-table>.icon.sc-ic-data-table,.cell-alignment-right.sc-ic-data-table>.icon.sc-ic-data-table,.column-header-alignment-right>.sc-ic-data-table-s>svg,.row-header-alignment-right>.sc-ic-data-table-s>svg,.cell-alignment-right>.sc-ic-data-table-s>svg{margin-right:auto}/*!@.column-header-alignment-center > ic-typography,\n.row-header-alignment-right > ic-typography,\n.cell-alignment-center > ic-typography*/.column-header-alignment-center.sc-ic-data-table>ic-typography.sc-ic-data-table,.row-header-alignment-right.sc-ic-data-table>ic-typography.sc-ic-data-table,.cell-alignment-center.sc-ic-data-table>ic-typography.sc-ic-data-table{flex:1}/*!@.icon > svg*/.icon.sc-ic-data-table>svg.sc-ic-data-table{height:var(--ic-space-lg);width:var(--ic-space-lg);display:inline-block}/*!@.truncation-tooltip ic-typography*/.truncation-tooltip.sc-ic-data-table ic-typography.sc-ic-data-table{display:-webkit-box;-webkit-line-clamp:var(--ic-line-clamp, 0);-webkit-box-orient:vertical;overflow:hidden}/*!@.truncation-tooltip ic-typography,\n.truncation-show-hide ic-typography*/.truncation-tooltip.sc-ic-data-table ic-typography.sc-ic-data-table,.truncation-show-hide.sc-ic-data-table ic-typography.sc-ic-data-table{white-space:normal}/*!@.ic-tooltip-overflow*/.ic-tooltip-overflow.sc-ic-data-table{overflow:hidden;width:100%}@media screen and (min-width: 577px){/*!@.column-header-inner-container*/.column-header-inner-container.sc-ic-data-table{display:flex;align-items:center}}";
|
10658
10658
|
|
10659
10659
|
/**
|
10660
10660
|
* @slot empty-state - Content is slotted below the table header when there is no data and the table is not loading.
|
@@ -10918,7 +10918,7 @@ class DataTable {
|
|
10918
10918
|
? variableRowHeightVal !== "auto" && variableRowHeightVal
|
10919
10919
|
: this.globalRowHeight !== "auto" && this.globalRowHeight;
|
10920
10920
|
return rowValues.map((cell, index) => {
|
10921
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
10921
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
10922
10922
|
const columnProps = this.columns[index];
|
10923
10923
|
const cellSlotName = `${columnProps === null || columnProps === void 0 ? void 0 : columnProps.key}-${rowIndex}`;
|
10924
10924
|
const hasIcon = this.isObject(cell) && Object.keys(cell).includes("icon");
|
@@ -10934,6 +10934,7 @@ class DataTable {
|
|
10934
10934
|
return (hAsync("td", { class: {
|
10935
10935
|
["table-cell"]: true,
|
10936
10936
|
[`table-density-${this.density}`]: this.notDefaultDensity(),
|
10937
|
+
["with-overflow"]: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) === "element",
|
10937
10938
|
}, style: Object.assign({}, this.getColumnWidth(columnProps.columnWidth)) }, hAsync("div", { innerHTML: (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) === "element" &&
|
10938
10939
|
!isSlotUsed(this.el, cellSlotName)
|
10939
10940
|
? cell
|
@@ -10951,7 +10952,8 @@ class DataTable {
|
|
10951
10952
|
(rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.textWrap) ||
|
10952
10953
|
!!this.getCellOptions(cell, "textWrap"), ["cell-icon"]: hasIcon || !!((_j = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _j === void 0 ? void 0 : _j.icon) }, this.setTruncationClass()), style: Object.assign(Object.assign({}, this.getRowHeight(currentRowHeight, columnProps, rowOptions === null || rowOptions === void 0 ? void 0 : rowOptions.textWrap, cell)), this.getColumnWidth(columnProps === null || columnProps === void 0 ? void 0 : columnProps.columnWidth)), "data-row-height": this.truncationPattern || currentRowHeight
|
10953
10954
|
? this.setRowHeight(currentRowHeight)
|
10954
|
-
: null }, isSlotUsed(this.el, cellSlotName) ? (hAsync("slot", { name: cellSlotName })) : (hAsync(Fragment, null, isSlotUsed(this.el, `${cellSlotName}-icon`) ? (hAsync("slot", { name: `${cellSlotName}-icon` })) : ((hasIcon || ((_k = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _k === void 0 ? void 0 : _k.onAllCells)) &&
|
10955
|
+
: null }, isSlotUsed(this.el, cellSlotName) ? (hAsync("slot", { name: cellSlotName })) : (hAsync(Fragment, null, isSlotUsed(this.el, `${cellSlotName}-icon`) ? (hAsync("slot", { name: `${cellSlotName}-icon` })) : ((hasIcon || ((_k = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _k === void 0 ? void 0 : _k.onAllCells)) &&
|
10956
|
+
(cellValue("icon") || ((_l = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _l === void 0 ? void 0 : _l.icon)) && (hAsync("span", { class: "icon", innerHTML: cellValue("icon") || ((_m = columnProps === null || columnProps === void 0 ? void 0 : columnProps.icon) === null || _m === void 0 ? void 0 : _m.icon) }))), (columnProps === null || columnProps === void 0 ? void 0 : columnProps.dataType) !== "element" &&
|
10955
10957
|
!isSlotUsed(this.el, cellSlotName) && (hAsync("ic-typography", { variant: "body", class: {
|
10956
10958
|
[`cell-emphasis-${(this.isObject(cell) && cellValue("emphasis")) ||
|
10957
10959
|
(columnProps === null || columnProps === void 0 ? void 0 : columnProps.emphasis) ||
|
@@ -22283,7 +22285,7 @@ class PaginationBar {
|
|
22283
22285
|
this.setItemsPerPage(Number(this.pageDropdownEl.value));
|
22284
22286
|
};
|
22285
22287
|
this.changePage = (page) => {
|
22286
|
-
this.
|
22288
|
+
this.activePage = page;
|
22287
22289
|
this.lowerBound = page !== 1 ? (page - 1) * this.itemsPerPage + 1 : page;
|
22288
22290
|
this.setUpperBound();
|
22289
22291
|
};
|
@@ -22297,7 +22299,7 @@ class PaginationBar {
|
|
22297
22299
|
if (page <= this.totalPages && page > 0) {
|
22298
22300
|
this.changePage(page);
|
22299
22301
|
this.paginationEl.setCurrentPage(page);
|
22300
|
-
this.
|
22302
|
+
this.activePage = page;
|
22301
22303
|
input.value = "";
|
22302
22304
|
this.icPageChange.emit({ value: page });
|
22303
22305
|
this.pageInputTooltipEl.displayTooltip(false, false);
|
@@ -22391,11 +22393,11 @@ class PaginationBar {
|
|
22391
22393
|
? Math.ceil(this.totalItems / this.itemsPerPage)
|
22392
22394
|
: 1;
|
22393
22395
|
this.setUpperBound();
|
22394
|
-
if (this.
|
22396
|
+
if (this.activePage > this.totalPages) {
|
22395
22397
|
this.paginationEl.setCurrentPage(this.totalPages);
|
22396
|
-
this.
|
22398
|
+
this.activePage = this.totalPages;
|
22397
22399
|
}
|
22398
|
-
this.icPageChange.emit({ value: this.
|
22400
|
+
this.icPageChange.emit({ value: this.activePage, fromItemsPerPage: true });
|
22399
22401
|
};
|
22400
22402
|
this.setPaginationBarContent = () => {
|
22401
22403
|
var _a;
|
@@ -22430,7 +22432,7 @@ class PaginationBar {
|
|
22430
22432
|
};
|
22431
22433
|
this.capitalizedItemLabel = undefined;
|
22432
22434
|
this.capitalizedPageLabel = undefined;
|
22433
|
-
this.
|
22435
|
+
this.activePage = 1;
|
22434
22436
|
this.displayedItemsPerPageOptions = undefined;
|
22435
22437
|
this.inputError = "Please enter a valid page";
|
22436
22438
|
this.itemsPerPage = 0;
|
@@ -22444,6 +22446,7 @@ class PaginationBar {
|
|
22444
22446
|
this.upperBound = undefined;
|
22445
22447
|
this.alignment = "right";
|
22446
22448
|
this.appearance = "default";
|
22449
|
+
this.currentPage = 1;
|
22447
22450
|
this.itemLabel = "Item";
|
22448
22451
|
this.itemsPerPageOptions = undefined;
|
22449
22452
|
this.type = "simple";
|
@@ -22454,6 +22457,9 @@ class PaginationBar {
|
|
22454
22457
|
this.showItemsPerPageControl = false;
|
22455
22458
|
this.totalItems = undefined;
|
22456
22459
|
}
|
22460
|
+
watchPageNumberHandler() {
|
22461
|
+
this.activePage = this.currentPage;
|
22462
|
+
}
|
22457
22463
|
watchItemLabelHandler() {
|
22458
22464
|
this.capitalizedItemLabel = capitalize(this.itemLabel);
|
22459
22465
|
this.lowerCaseItemLabel = this.itemLabel.toLowerCase();
|
@@ -22475,6 +22481,7 @@ class PaginationBar {
|
|
22475
22481
|
(_a = this.resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();
|
22476
22482
|
}
|
22477
22483
|
componentWillLoad() {
|
22484
|
+
this.watchPageNumberHandler();
|
22478
22485
|
this.watchPageLabelHandler();
|
22479
22486
|
this.watchItemLabelHandler();
|
22480
22487
|
this.setPaginationBarContent();
|
@@ -22498,7 +22505,7 @@ class PaginationBar {
|
|
22498
22505
|
this.changePage(page);
|
22499
22506
|
}
|
22500
22507
|
render() {
|
22501
|
-
const { appearance, alignment, displayedItemsPerPageOptions, PAGE_INPUT_FIELD_ID, type, rangeLabelType, hideRangeLabel, showItemsPerPageControl, showGoToPageControl, pageLabel, capitalizedPageLabel, lowerCasePageLabel, capitalizedItemLabel, lowerCaseItemLabel, totalPages,
|
22508
|
+
const { appearance, alignment, displayedItemsPerPageOptions, PAGE_INPUT_FIELD_ID, type, rangeLabelType, hideRangeLabel, showItemsPerPageControl, showGoToPageControl, pageLabel, capitalizedPageLabel, lowerCasePageLabel, capitalizedItemLabel, lowerCaseItemLabel, totalPages, activePage, itemsPerPageString, } = this;
|
22502
22509
|
return (hAsync("div", { class: {
|
22503
22510
|
["pagination-bar"]: true,
|
22504
22511
|
[`pagination-bar-${alignment}`]: true,
|
@@ -22513,13 +22520,14 @@ class PaginationBar {
|
|
22513
22520
|
`${this.lowerBound} - ${this.upperBound} of ${this.totalItems} ${lowerCaseItemLabel}${this.totalItems > 1 ? "s" : ""}`)) : (hAsync("ic-typography", { class: {
|
22514
22521
|
[`pagination-text-${appearance}`]: true,
|
22515
22522
|
["page-pagination-label"]: true,
|
22516
|
-
}, variant: "label", "aria-live": "polite" }, capitalizedPageLabel, " ",
|
22523
|
+
}, variant: "label", "aria-live": "polite" }, capitalizedPageLabel, " ", activePage, " of ", totalPages))))), hAsync("div", { class: {
|
22517
22524
|
["pagination-controls"]: true,
|
22518
22525
|
["pagination-controls-wrap"]: this.paginationWrapped,
|
22519
|
-
} }, hAsync("div", { class: "pagination-holder" }, hAsync("ic-pagination", { appearance: appearance, type: type, pages: totalPages, label: pageLabel, ref: (el) => (this.paginationEl = el) })), showGoToPageControl && (hAsync("div", { class: "go-to-page-holder" }, hAsync("ic-typography", { class: { [`pagination-text-${appearance}`]: true }, variant: "label", onClick: this.goToPageLabelClickHandler }, "Go to ", lowerCasePageLabel), hAsync("ic-tooltip", { label: this.inputError, target: `#${PAGE_INPUT_FIELD_ID}`, disableHover: true, disableClick: true, ref: (el) => (this.pageInputTooltipEl = el) }, hAsync("ic-text-field", { type: "number", size: "small", label: PAGE_INPUT_FIELD_ID, class: PAGE_INPUT_FIELD_ID, id: PAGE_INPUT_FIELD_ID, hideLabel: true, onKeyDown: this.handleKeydown, onKeyUp: this.handleKeyUp, onInput: this.handleInputChange, max: totalPages, min: "1", validationInlineInternal: true, onBlur: this.handleBlur, onFocus: this.handleFocus, ref: (el) => (this.pageInputEl = el) })), hAsync("ic-button", { appearance: appearance, variant: "secondary", onClick: this.goToPage, size: "small", class: "go-to-page-button" }, "Go"))))));
|
22526
|
+
} }, hAsync("div", { class: "pagination-holder" }, hAsync("ic-pagination", { appearance: appearance, type: type, pages: totalPages, label: pageLabel, ref: (el) => (this.paginationEl = el), currentPage: activePage })), showGoToPageControl && (hAsync("div", { class: "go-to-page-holder" }, hAsync("ic-typography", { class: { [`pagination-text-${appearance}`]: true }, variant: "label", onClick: this.goToPageLabelClickHandler }, "Go to ", lowerCasePageLabel), hAsync("ic-tooltip", { label: this.inputError, target: `#${PAGE_INPUT_FIELD_ID}`, disableHover: true, disableClick: true, ref: (el) => (this.pageInputTooltipEl = el) }, hAsync("ic-text-field", { type: "number", size: "small", label: PAGE_INPUT_FIELD_ID, class: PAGE_INPUT_FIELD_ID, id: PAGE_INPUT_FIELD_ID, hideLabel: true, onKeyDown: this.handleKeydown, onKeyUp: this.handleKeyUp, onInput: this.handleInputChange, max: totalPages, min: "1", validationInlineInternal: true, onBlur: this.handleBlur, onFocus: this.handleFocus, ref: (el) => (this.pageInputEl = el) })), hAsync("ic-button", { appearance: appearance, variant: "secondary", onClick: this.goToPage, size: "small", class: "go-to-page-button" }, "Go"))))));
|
22520
22527
|
}
|
22521
22528
|
get el() { return getElement(this); }
|
22522
22529
|
static get watchers() { return {
|
22530
|
+
"currentPage": ["watchPageNumberHandler"],
|
22523
22531
|
"itemLabel": ["watchItemLabelHandler"],
|
22524
22532
|
"itemsPerPageOptions": ["watchItemsPerPageOptionsHandler"],
|
22525
22533
|
"pageLabel": ["watchPageLabelHandler"],
|
@@ -22532,6 +22540,7 @@ class PaginationBar {
|
|
22532
22540
|
"$members$": {
|
22533
22541
|
"alignment": [1],
|
22534
22542
|
"appearance": [1],
|
22543
|
+
"currentPage": [2, "current-page"],
|
22535
22544
|
"itemLabel": [1, "item-label"],
|
22536
22545
|
"itemsPerPageOptions": [16],
|
22537
22546
|
"type": [1],
|
@@ -22543,7 +22552,7 @@ class PaginationBar {
|
|
22543
22552
|
"totalItems": [2, "total-items"],
|
22544
22553
|
"capitalizedItemLabel": [32],
|
22545
22554
|
"capitalizedPageLabel": [32],
|
22546
|
-
"
|
22555
|
+
"activePage": [32],
|
22547
22556
|
"displayedItemsPerPageOptions": [32],
|
22548
22557
|
"inputError": [32],
|
22549
22558
|
"itemsPerPage": [32],
|
@@ -22666,18 +22675,6 @@ class PopoverMenu {
|
|
22666
22675
|
tagName !== "IC-MENU-GROUP" &&
|
22667
22676
|
tagName !== "IC-POPOVER-MENU");
|
22668
22677
|
};
|
22669
|
-
/**
|
22670
|
-
* Close the popover menu, emit isPopoverClosed event
|
22671
|
-
* @param setFocusToAnchor when true return focus to anchor element when menu is closed
|
22672
|
-
*/
|
22673
|
-
this.closeMenu = (setFocusToAnchor = false) => {
|
22674
|
-
var _a;
|
22675
|
-
this.open = false;
|
22676
|
-
if (setFocusToAnchor) {
|
22677
|
-
(_a = this.anchorEl) === null || _a === void 0 ? void 0 : _a.focus();
|
22678
|
-
}
|
22679
|
-
this.icPopoverClosed.emit();
|
22680
|
-
};
|
22681
22678
|
this.getNextItemToSelect = (currentItem, movingDown) => {
|
22682
22679
|
const numButtons = this.popoverMenuEls.length - 1;
|
22683
22680
|
if (currentItem < 1) {
|
@@ -22836,6 +22833,7 @@ class PopoverMenu {
|
|
22836
22833
|
break;
|
22837
22834
|
case "Escape":
|
22838
22835
|
case "Tab":
|
22836
|
+
ev.preventDefault();
|
22839
22837
|
if (this.open) {
|
22840
22838
|
this.closeMenu(true);
|
22841
22839
|
this.el.blur();
|
@@ -22859,6 +22857,23 @@ class PopoverMenu {
|
|
22859
22857
|
this.openingFromParent = true;
|
22860
22858
|
setTimeout(() => (this.openingFromParent = false), 1000);
|
22861
22859
|
}
|
22860
|
+
/**
|
22861
|
+
* @internal Close the menu, emit icPopoverClosed of the root popover
|
22862
|
+
* @param setFocusToAnchor when true return focus to anchor element when menu is closed
|
22863
|
+
*/
|
22864
|
+
async closeMenu(setFocusToAnchor = false) {
|
22865
|
+
var _a;
|
22866
|
+
this.open = false;
|
22867
|
+
if (this.parentPopover) {
|
22868
|
+
this.parentPopover.closeMenu(setFocusToAnchor);
|
22869
|
+
}
|
22870
|
+
else {
|
22871
|
+
if (setFocusToAnchor) {
|
22872
|
+
(_a = this.anchorEl) === null || _a === void 0 ? void 0 : _a.focus();
|
22873
|
+
}
|
22874
|
+
this.icPopoverClosed.emit();
|
22875
|
+
}
|
22876
|
+
}
|
22862
22877
|
render() {
|
22863
22878
|
return (hAsync(Host, { class: { open: this.open } }, hAsync("div", { id: this.parentPopover === undefined
|
22864
22879
|
? `ic-popover-submenu-${this.submenuId}`
|
@@ -22892,7 +22907,8 @@ class PopoverMenu {
|
|
22892
22907
|
"openingFromChild": [32],
|
22893
22908
|
"openingFromParent": [32],
|
22894
22909
|
"openFromChild": [64],
|
22895
|
-
"openFromParent": [64]
|
22910
|
+
"openFromParent": [64],
|
22911
|
+
"closeMenu": [64]
|
22896
22912
|
},
|
22897
22913
|
"$listeners$": [[0, "handleMenuItemClick", "handleMenuItemClick"], [2, "triggerPopoverMenuInstance", "handleSubmenuChange"], [4, "click", "handleClick"], [0, "keydown", "handleKeyDown"]],
|
22898
22914
|
"$lazyBundleId$": "-",
|
@@ -23726,7 +23742,7 @@ class SearchBar {
|
|
23726
23742
|
}
|
23727
23743
|
render() {
|
23728
23744
|
const { inputId, name, label, required, small, size, placeholder, helperText, disabled, value, readonly, spellcheck, fullWidth, options, open, hideLabel, menuId, ariaActiveDescendant, truncateValue, autofocus, autocapitalize, autocomplete, filteredOptions, } = this;
|
23729
|
-
const disabledMode = readonly || disabled
|
23745
|
+
const disabledMode = readonly || disabled;
|
23730
23746
|
const describedBy = getInputDescribedByText$1(inputId, helperText !== "", false).trim();
|
23731
23747
|
let describedById;
|
23732
23748
|
if (describedBy !== "" && this.hasOptionsOrFilterDisabled()) {
|
@@ -23741,35 +23757,17 @@ class SearchBar {
|
|
23741
23757
|
else {
|
23742
23758
|
describedById = undefined;
|
23743
23759
|
}
|
23744
|
-
const
|
23745
|
-
const hasSuggestedSearch = value && this.hasOptionsOrFilterDisabled();
|
23760
|
+
const hasSuggestedSearch = !!value && this.hasOptionsOrFilterDisabled();
|
23746
23761
|
const menuOpen = hasSuggestedSearch && open && filteredOptions.length > 0;
|
23747
23762
|
const menuRendered = menuOpen && value.length >= this.charactersUntilSuggestion;
|
23748
|
-
const
|
23749
|
-
(this.filteredOptions[0][this.labelField] === this.loadingLabel ||
|
23750
|
-
filteredOptions[0][this.labelField] === this.loadingErrorLabel);
|
23751
|
-
let expanded;
|
23752
|
-
if (options.length > 0) {
|
23753
|
-
if (menuOpen) {
|
23754
|
-
expanded = "true";
|
23755
|
-
}
|
23756
|
-
else {
|
23757
|
-
expanded = "false";
|
23758
|
-
}
|
23759
|
-
}
|
23760
|
-
else {
|
23761
|
-
expanded = undefined;
|
23762
|
-
}
|
23763
|
+
const labelValue = getLabelFromValue$1(value, options, this.valueField, this.labelField);
|
23763
23764
|
renderHiddenInput$1(true, this.el, name, value, disabledMode);
|
23764
23765
|
return (hAsync(Host, { class: {
|
23765
|
-
|
23766
|
-
|
23767
|
-
|
23768
|
-
|
23769
|
-
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, hAsync("ic-text-field", { ref: (el) => (this.inputEl = el), inputId: inputId, label: label, helperText: helperText, required: required, disabled:
|
23770
|
-
!!getLabelFromValue$1(value, options, this.valueField, this.labelField)
|
23771
|
-
? getLabelFromValue$1(value, options, this.valueField, this.labelField)
|
23772
|
-
: value, placeholder: placeholder, onInput: this.onInput, onBlur: this.onInputBlur, onFocus: this.onInputFocus, "aria-label": hideLabel ? label : "", "aria-describedby": describedById, "aria-owns": menuRendered ? menuId : undefined, "aria-haspopup": options.length > 0 ? "listbox" : undefined, ariaExpanded: expanded, ariaActiveDescendant: ariaActiveDescendant, "aria-autocomplete": hasSuggestedSearch ? "list" : undefined, role: hasSuggestedSearch ? "combobox" : undefined, autocomplete: autocomplete, autocapitalize: autocapitalize, autoFocus: autofocus, spellcheck: spellcheck, inputmode: "search", debounce: this.debounce }, hAsync("div", { class: {
|
23766
|
+
search: true,
|
23767
|
+
fullwidth: fullWidth,
|
23768
|
+
disabled,
|
23769
|
+
small: size === "small",
|
23770
|
+
}, onFocus: this.handleHostFocus, onBlur: this.handleHostBlur }, hAsync("ic-text-field", { ref: (el) => (this.inputEl = el), inputId: inputId, label: label, helperText: helperText, required: required, disabled: disabledMode && !readonly, readonly: readonly, size: size, hideLabel: hideLabel, fullWidth: fullWidth, name: name, truncateValue: truncateValue, value: options && !!labelValue ? labelValue : value, placeholder: placeholder, onInput: this.onInput, onBlur: this.onInputBlur, onFocus: this.onInputFocus, "aria-label": hideLabel ? label : "", "aria-describedby": describedById, "aria-owns": menuRendered ? menuId : undefined, "aria-controls": menuRendered ? menuId : undefined, "aria-haspopup": options.length > 0 ? "listbox" : undefined, ariaExpanded: options.length > 0 ? `${menuOpen}` : undefined, ariaActiveDescendant: ariaActiveDescendant, "aria-autocomplete": hasSuggestedSearch ? "list" : undefined, role: options.length > 0 ? "combobox" : undefined, autocomplete: autocomplete, autocapitalize: autocapitalize, autoFocus: autofocus, spellcheck: spellcheck, inputmode: "search", debounce: this.debounce }, hAsync("div", { class: {
|
23773
23771
|
"clear-button-container": true,
|
23774
23772
|
"clear-button-visible": value && !disabledMode && this.showClearButton,
|
23775
23773
|
}, slot: "clear-button" }, hAsync("ic-button", { id: "clear-button", class: "clear-button", "aria-label": "Clear", innerHTML: clearIcon, onClick: this.handleClear, onMouseDown: this.handleMouseDown, size: size, onFocus: this.handleFocusClearButton, onBlur: this.handleClearBlur, onKeyDown: this.handleClear, type: "submit", variant: "icon", appearance: this.clearButtonFocused
|
@@ -23786,7 +23784,12 @@ class SearchBar {
|
|
23786
23784
|
"menu-container": true,
|
23787
23785
|
fullwidth: fullWidth,
|
23788
23786
|
}, slot: "menu" }, menuRendered && (hAsync("ic-menu", { class: {
|
23789
|
-
"no-results": this.hadNoOptions() ||
|
23787
|
+
"no-results": this.hadNoOptions() ||
|
23788
|
+
(filteredOptions.length === 1 &&
|
23789
|
+
(filteredOptions[0][this.labelField] ===
|
23790
|
+
this.loadingLabel ||
|
23791
|
+
filteredOptions[0][this.labelField] ===
|
23792
|
+
this.loadingErrorLabel)),
|
23790
23793
|
}, activationType: "manual", anchorEl: this.anchorEl, autoFocusOnSelected: false, searchMode: this.searchMode, inputEl: this.inputEl, inputLabel: label, ref: (el) => (this.menu = el), small: size === "small", fullWidth: fullWidth, menuId: menuId, open: !!menuRendered, options: filteredOptions, onMenuOptionSelect: this.handleOptionSelect, onMenuStateChange: this.handleMenuChange, onMenuOptionId: this.handleMenuOptionHighlight, onRetryButtonClicked: this.handleRetry, parentEl: this.el, value: value, labelField: this.labelField, valueField: this.valueField })))), hAsync("div", { "aria-live": "polite", role: "status", class: "search-results-status" })));
|
23791
23794
|
}
|
23792
23795
|
static get delegatesFocus() { return true; }
|
@@ -24531,16 +24534,16 @@ class Select$1 {
|
|
24531
24534
|
render() {
|
24532
24535
|
const { small, size, disabled, fullWidth, helperText, hideLabel, label, menuId, name, options, placeholder, readonly, required, searchable, showClearButton, validationStatus, validationText, currValue, } = this;
|
24533
24536
|
renderHiddenInput$1(true, this.el, name, this.searchable ? this.hiddenInputValue : currValue, disabled);
|
24534
|
-
const invalid = validationStatus === IcInformationStatus$1.Error
|
24537
|
+
const invalid = `${validationStatus === IcInformationStatus$1.Error}`;
|
24535
24538
|
const describedBy = getInputDescribedByText$1(this.inputId, helperText !== "", hasValidationStatus$1(this.validationStatus, this.disabled)).trim();
|
24536
24539
|
let showLeftIcon = !!this.el.querySelector(`[slot="icon"]`);
|
24537
24540
|
if (showLeftIcon && (disabled || (readonly && !this.value))) {
|
24538
24541
|
showLeftIcon = false;
|
24539
24542
|
}
|
24540
24543
|
return (hAsync(Host, { class: {
|
24541
|
-
disabled
|
24542
|
-
searchable
|
24543
|
-
small
|
24544
|
+
disabled,
|
24545
|
+
searchable,
|
24546
|
+
small,
|
24544
24547
|
[size]: size !== "default",
|
24545
24548
|
"full-width": fullWidth,
|
24546
24549
|
}, onBlur: this.onBlur }, hAsync("ic-input-container", { readonly: readonly }, !hideLabel && (hAsync("ic-input-label", { for: this.inputId, label: label, helperText: helperText, required: required, disabled: disabled, readonly: readonly })), hAsync("ic-input-component-container", { ref: (el) => (this.anchorEl = el), class: { "menu-open": this.open }, small: small, size: size, fullWidth: fullWidth, disabled: disabled, readonly: readonly, validationStatus: validationStatus }, showLeftIcon && (hAsync("span", { slot: "left-icon", class: {
|
@@ -24553,7 +24556,7 @@ class Select$1 {
|
|
24553
24556
|
else {
|
24554
24557
|
return (hAsync("option", { value: option.value, disabled: option.disabled, selected: option.value === currValue }, option.label));
|
24555
24558
|
}
|
24556
|
-
}))) : searchable ? (hAsync("div", { class: "searchable-select-container" }, hAsync("input", { class: "select-input", role: "combobox", autocomplete: "off", "aria-label": label, "aria-describedby": describedBy, "aria-activedescendant": this.ariaActiveDescendant, "aria-autocomplete": "list", "aria-expanded": this.open
|
24559
|
+
}))) : searchable ? (hAsync("div", { class: "searchable-select-container" }, hAsync("input", { class: "select-input", role: "combobox", autocomplete: "off", "aria-label": label, "aria-describedby": describedBy, "aria-activedescendant": this.ariaActiveDescendant, "aria-autocomplete": "list", "aria-expanded": `${this.open}`, "aria-invalid": invalid, "aria-required": `${required}`, "aria-controls": menuId, ref: (el) => (this.searchableSelectElement = el), id: this.inputId, value: this.searchableSelectInputValue, placeholder: placeholder, disabled: disabled, onInput: this.handleSearchableSelectInput, onClick: this.handleClick, onKeyDown: this.handleKeyDown, onFocus: this.onFocus, onBlur: this.onBlur, form: this.form, formaction: this.formaction, formenctype: this.formenctype, formmethod: this.formmethod, formnovalidate: this.formnovalidate, formtarget: this.formtarget }), this.searchableSelectInputValue &&
|
24557
24560
|
(showClearButton || searchable) && (hAsync("div", { class: "clear-button-container" }, hAsync("ic-button", { id: "clear-button", ref: (el) => (this.clearButton = el), "aria-label": this.searchableSelectInputValue && currValue === null
|
24558
24561
|
? "Clear input"
|
24559
24562
|
: "Clear selection", class: "clear-button", innerHTML: Clear$1, onClick: this.handleClear, onFocus: this.handleClearButtonFocus, onBlur: this.handleClearButtonBlur, size: size, variant: "icon", appearance: this.clearButtonFocused
|
@@ -26621,10 +26624,9 @@ class Tab {
|
|
26621
26624
|
this.tabCreated.emit(this.el);
|
26622
26625
|
}
|
26623
26626
|
disconnectedCallback() {
|
26624
|
-
|
26625
|
-
|
26626
|
-
|
26627
|
-
}
|
26627
|
+
var _a;
|
26628
|
+
(_a = document
|
26629
|
+
.querySelector(`ic-tab-context[context-id=${this.contextId}]`)) === null || _a === void 0 ? void 0 : _a.tabRemovedHandler(!!this.focusTabId);
|
26628
26630
|
}
|
26629
26631
|
componentWillLoad() {
|
26630
26632
|
removeDisabledFalse$1(this.disabled, this.el);
|
@@ -26641,13 +26643,13 @@ class Tab {
|
|
26641
26643
|
}
|
26642
26644
|
}
|
26643
26645
|
render() {
|
26644
|
-
const { disabled, selected, appearance } = this;
|
26646
|
+
const { disabled, selected, appearance, isInitialRender, handleClick, handleFocus, handleMouseDown, } = this;
|
26645
26647
|
return (hAsync(Host, { class: {
|
26646
|
-
|
26647
|
-
|
26648
|
-
|
26649
|
-
|
26650
|
-
}, role: "tab", "aria-selected": selected
|
26648
|
+
"with-transition": !isInitialRender,
|
26649
|
+
"ic-tab-light": appearance === IcThemeForegroundEnum$1.Light,
|
26650
|
+
selected,
|
26651
|
+
disabled,
|
26652
|
+
}, role: "tab", "aria-selected": `${selected}`, onClick: handleClick, onFocus: handleFocus, onMouseDown: handleMouseDown, "aria-disabled": `${disabled}`, tabindex: selected ? 0 : -1 }, isSlotUsed$1(this.el, "icon") && hAsync("slot", { name: "icon" }), hAsync("ic-typography", { class: "ic-tab-label", variant: "label" }, hAsync("span", null, hAsync("slot", null))), isSlotUsed$1(this.el, "badge") && hAsync("slot", { name: "badge" })));
|
26651
26653
|
}
|
26652
26654
|
get el() { return getElement(this); }
|
26653
26655
|
static get watchers() { return {
|
@@ -26672,6 +26674,7 @@ class Tab {
|
|
26672
26674
|
}; }
|
26673
26675
|
}
|
26674
26676
|
|
26677
|
+
const CONTEXT_ID_ATTR = "context-id";
|
26675
26678
|
class TabContext {
|
26676
26679
|
constructor(hostRef) {
|
26677
26680
|
registerInstance(this, hostRef);
|
@@ -26679,24 +26682,28 @@ class TabContext {
|
|
26679
26682
|
this.tabSelect = createEvent(this, "tabSelect", 3);
|
26680
26683
|
this.newTabPanels = [];
|
26681
26684
|
this.newTabs = [];
|
26682
|
-
|
26685
|
+
this.emitEvents = (tabIndex) => {
|
26686
|
+
const tabLabel = this.el
|
26687
|
+
.querySelectorAll("ic-tab")
|
26688
|
+
// eslint-disable-next-line no-unexpected-multiline
|
26689
|
+
[tabIndex].textContent.trim();
|
26690
|
+
this.icTabSelect.emit({ tabIndex, tabLabel });
|
26691
|
+
this.tabSelect.emit({ tabIndex, tabLabel });
|
26692
|
+
};
|
26693
|
+
/** Sets attributes to link tab-group, tabs and tab-panels */
|
26683
26694
|
this.linkTabs = () => {
|
26684
26695
|
this.tabs.forEach((tab, index) => {
|
26685
26696
|
const tabId = `ic-tab-${index}-context-${this.contextId}`;
|
26686
26697
|
const tabPanelId = `ic-tab-panel-${index}-context-${this.contextId}`;
|
26687
|
-
const shared = `ic-tab--${index}-context-${this.contextId}`;
|
26688
|
-
const contextIdAttr = "context-id";
|
26689
26698
|
tab.setAttribute("id", tabId);
|
26690
|
-
tab.tabId =
|
26699
|
+
tab.tabId = `ic-tab--${index}-context-${this.contextId}`;
|
26691
26700
|
tab.tabPosition = index;
|
26692
26701
|
tab.setAttribute("aria-controls", tabPanelId);
|
26693
|
-
tab.setAttribute(
|
26694
|
-
this.tabGroup.setAttribute(
|
26702
|
+
tab.setAttribute(CONTEXT_ID_ATTR, this.contextId);
|
26703
|
+
this.tabGroup.setAttribute(CONTEXT_ID_ATTR, this.contextId);
|
26695
26704
|
this.tabPanels[index].setAttribute("id", tabPanelId);
|
26696
|
-
this.tabPanels[index].panelId = shared;
|
26697
|
-
this.tabPanels[index].tabPosition = index;
|
26698
26705
|
this.tabPanels[index].setAttribute("aria-labelledby", tabId);
|
26699
|
-
this.tabPanels[index].setAttribute(
|
26706
|
+
this.tabPanels[index].setAttribute(CONTEXT_ID_ATTR, this.contextId);
|
26700
26707
|
if (this.appearance === IcThemeForegroundEnum$1.Light) {
|
26701
26708
|
tab.appearance = this.appearance;
|
26702
26709
|
this.tabPanels[index].appearance = this.appearance;
|
@@ -26706,8 +26713,9 @@ class TabContext {
|
|
26706
26713
|
this.tabGroup.appearance = this.appearance;
|
26707
26714
|
}
|
26708
26715
|
};
|
26709
|
-
|
26710
|
-
|
26716
|
+
/**
|
26717
|
+
* Gets tabs and tabpanels with the same context ID using querySelector to selector the children in relation to the host
|
26718
|
+
*/
|
26711
26719
|
this.getChildren = () => {
|
26712
26720
|
this.tabGroup = this.el.querySelector("ic-tab-group");
|
26713
26721
|
this.tabs = Array.from(this.tabGroup.querySelectorAll("ic-tab"));
|
@@ -26715,28 +26723,42 @@ class TabContext {
|
|
26715
26723
|
this.enabledTabs = this.getEnabledTabs();
|
26716
26724
|
};
|
26717
26725
|
this.keydownHandler = (event) => {
|
26718
|
-
|
26719
|
-
|
26720
|
-
|
26721
|
-
|
26722
|
-
this.
|
26723
|
-
|
26724
|
-
|
26725
|
-
|
26726
|
-
|
26727
|
-
|
26728
|
-
|
26729
|
-
|
26730
|
-
|
26731
|
-
|
26732
|
-
|
26733
|
-
|
26734
|
-
|
26726
|
+
const isManual = this.activationType === "manual";
|
26727
|
+
const enabledTabIndex = this.enabledTabs.findIndex((tab) => tab.tabId ===
|
26728
|
+
this.tabs[isManual ? this.focusedTabIndex : this.selectedTab].tabId);
|
26729
|
+
const keyboardFunction = isManual
|
26730
|
+
? this.keyboardFocusTab
|
26731
|
+
: this.keyboardSelectTab;
|
26732
|
+
let preventDefault = true;
|
26733
|
+
switch (event.key) {
|
26734
|
+
case "Home":
|
26735
|
+
keyboardFunction(0);
|
26736
|
+
break;
|
26737
|
+
case "End":
|
26738
|
+
keyboardFunction(this.enabledTabs.length - 1);
|
26739
|
+
break;
|
26740
|
+
case "ArrowRight":
|
26741
|
+
keyboardFunction(enabledTabIndex < this.enabledTabs.length - 1
|
26742
|
+
? enabledTabIndex + 1
|
26743
|
+
: 0);
|
26744
|
+
break;
|
26745
|
+
case "ArrowLeft":
|
26746
|
+
keyboardFunction((enabledTabIndex > 0 ? enabledTabIndex : this.enabledTabs.length) - 1);
|
26747
|
+
break;
|
26748
|
+
default:
|
26749
|
+
if (isManual && (event.key === "Enter" || event.key === " ")) {
|
26750
|
+
this.keyboardSelectTab(this.focusedTabIndex);
|
26751
|
+
}
|
26752
|
+
else {
|
26753
|
+
preventDefault = false;
|
26754
|
+
}
|
26735
26755
|
}
|
26756
|
+
if (preventDefault)
|
26757
|
+
event.preventDefault();
|
26736
26758
|
};
|
26737
|
-
|
26759
|
+
/** Sets the tab that is selected on initial render */
|
26738
26760
|
this.setInitialTab = () => {
|
26739
|
-
if (this.
|
26761
|
+
if (this.selectedTabIndex !== undefined) {
|
26740
26762
|
this.selectedTab = this.selectedTabIndex;
|
26741
26763
|
this.focusedTabIndex = this.selectedTabIndex;
|
26742
26764
|
}
|
@@ -26746,120 +26768,31 @@ class TabContext {
|
|
26746
26768
|
this.focusedTabIndex = firstEnabledTabIndex;
|
26747
26769
|
}
|
26748
26770
|
};
|
26749
|
-
|
26771
|
+
/** Passes the selected tab to the tab and tab panel components */
|
26750
26772
|
this.configureTabs = () => {
|
26751
26773
|
this.enabledTabs.forEach((tab) => {
|
26752
26774
|
tab.selected = tab.tabPosition === this.selectedTab;
|
26753
26775
|
});
|
26754
|
-
this.tabPanels.forEach((tabPanel) => {
|
26755
|
-
tabPanel.
|
26776
|
+
this.tabPanels.forEach((tabPanel, index) => {
|
26777
|
+
tabPanel.hidden = index !== this.selectedTab;
|
26756
26778
|
});
|
26757
26779
|
};
|
26758
|
-
this.getEnabledTabs = () =>
|
26759
|
-
|
26760
|
-
};
|
26761
|
-
this.getIndexOfEnabledTab = (allTabsIndex) => {
|
26762
|
-
return this.enabledTabs.findIndex((tab) => tab.tabId === this.tabs[allTabsIndex].tabId);
|
26763
|
-
};
|
26764
|
-
// Sets focus on tab and selects it
|
26780
|
+
this.getEnabledTabs = () => Array.from(this.tabs).filter((child) => !child.disabled);
|
26781
|
+
/** Sets focus on tab and selects it */
|
26765
26782
|
this.keyboardSelectTab = (enabledTabIndex) => {
|
26766
26783
|
const newIndex = this.tabs.findIndex((tab) => tab.tabId === this.enabledTabs[enabledTabIndex].tabId);
|
26767
26784
|
this.enabledTabs[enabledTabIndex].focus();
|
26768
|
-
if (
|
26785
|
+
if (this.selectedTabIndex === undefined) {
|
26769
26786
|
this.selectedTab = newIndex;
|
26770
26787
|
}
|
26771
26788
|
else {
|
26772
|
-
|
26773
|
-
this.icTabSelect.emit({
|
26774
|
-
tabIndex: newIndex,
|
26775
|
-
tabLabel: this.el
|
26776
|
-
.querySelectorAll("ic-tab")[newIndex].textContent.trim(),
|
26777
|
-
});
|
26778
|
-
this.tabSelect.emit({
|
26779
|
-
tabIndex: newIndex,
|
26780
|
-
tabLabel: this.el
|
26781
|
-
.querySelectorAll("ic-tab")[newIndex].textContent.trim(),
|
26782
|
-
});
|
26789
|
+
this.emitEvents(newIndex);
|
26783
26790
|
}
|
26784
|
-
/* eslint-enable no-unexpected-multiline */
|
26785
26791
|
};
|
26786
|
-
|
26792
|
+
/** Sets focus on tab without selecting it (for manual activation) */
|
26787
26793
|
this.keyboardFocusTab = (enabledTabIndex) => {
|
26788
|
-
const newIndex = this.tabs.findIndex((tab) => tab.tabId === this.enabledTabs[enabledTabIndex].tabId);
|
26789
26794
|
this.enabledTabs[enabledTabIndex].focus();
|
26790
|
-
this.focusedTabIndex =
|
26791
|
-
};
|
26792
|
-
this.handleKeyBoardNavAutomatic = (event) => {
|
26793
|
-
const key = event.key;
|
26794
|
-
const enabledTabIndex = this.getIndexOfEnabledTab(this.selectedTab);
|
26795
|
-
let preventDefault = true;
|
26796
|
-
switch (key) {
|
26797
|
-
case "Home":
|
26798
|
-
this.keyboardSelectTab(0);
|
26799
|
-
break;
|
26800
|
-
case "End":
|
26801
|
-
this.keyboardSelectTab(this.enabledTabs.length - 1);
|
26802
|
-
break;
|
26803
|
-
case "ArrowRight":
|
26804
|
-
if (enabledTabIndex < this.enabledTabs.length - 1) {
|
26805
|
-
this.keyboardSelectTab(enabledTabIndex + 1);
|
26806
|
-
}
|
26807
|
-
else {
|
26808
|
-
this.keyboardSelectTab(0);
|
26809
|
-
}
|
26810
|
-
break;
|
26811
|
-
case "ArrowLeft":
|
26812
|
-
if (enabledTabIndex > 0) {
|
26813
|
-
this.keyboardSelectTab(enabledTabIndex - 1);
|
26814
|
-
}
|
26815
|
-
else {
|
26816
|
-
this.keyboardSelectTab(this.enabledTabs.length - 1);
|
26817
|
-
}
|
26818
|
-
break;
|
26819
|
-
default:
|
26820
|
-
preventDefault = false;
|
26821
|
-
}
|
26822
|
-
if (preventDefault)
|
26823
|
-
event.preventDefault();
|
26824
|
-
};
|
26825
|
-
this.handleKeyBoardNavManual = (event) => {
|
26826
|
-
const key = event.key;
|
26827
|
-
const enabledTabIndex = this.getIndexOfEnabledTab(this.focusedTabIndex);
|
26828
|
-
let preventDefault = true;
|
26829
|
-
switch (key) {
|
26830
|
-
case "Home":
|
26831
|
-
this.keyboardFocusTab(0);
|
26832
|
-
break;
|
26833
|
-
case "End":
|
26834
|
-
this.keyboardFocusTab(this.enabledTabs.length - 1);
|
26835
|
-
break;
|
26836
|
-
case "ArrowRight":
|
26837
|
-
if (enabledTabIndex < this.enabledTabs.length - 1) {
|
26838
|
-
this.keyboardFocusTab(enabledTabIndex + 1);
|
26839
|
-
}
|
26840
|
-
else {
|
26841
|
-
this.keyboardFocusTab(0);
|
26842
|
-
}
|
26843
|
-
break;
|
26844
|
-
case "ArrowLeft":
|
26845
|
-
if (enabledTabIndex > 0) {
|
26846
|
-
this.keyboardFocusTab(enabledTabIndex - 1);
|
26847
|
-
}
|
26848
|
-
else {
|
26849
|
-
this.keyboardFocusTab(this.enabledTabs.length - 1);
|
26850
|
-
}
|
26851
|
-
break;
|
26852
|
-
case "Enter":
|
26853
|
-
this.keyboardSelectTab(this.focusedTabIndex);
|
26854
|
-
break;
|
26855
|
-
case " ":
|
26856
|
-
this.keyboardSelectTab(this.focusedTabIndex);
|
26857
|
-
break;
|
26858
|
-
default:
|
26859
|
-
preventDefault = false;
|
26860
|
-
}
|
26861
|
-
if (preventDefault)
|
26862
|
-
event.preventDefault();
|
26795
|
+
this.focusedTabIndex = this.tabs.findIndex((tab) => tab.tabId === this.enabledTabs[enabledTabIndex].tabId);
|
26863
26796
|
};
|
26864
26797
|
this.selectedTab = undefined;
|
26865
26798
|
this.activationType = "automatic";
|
@@ -26878,10 +26811,12 @@ class TabContext {
|
|
26878
26811
|
this.selectedTab = newValue;
|
26879
26812
|
}
|
26880
26813
|
componentDidLoad() {
|
26881
|
-
this.
|
26814
|
+
if (this.selectedTabIndex !== undefined) {
|
26815
|
+
this.selectedTab = this.selectedTabIndex;
|
26816
|
+
}
|
26882
26817
|
this.getChildren();
|
26883
26818
|
this.linkTabs();
|
26884
|
-
this.
|
26819
|
+
this.tabGroup.addEventListener("keydown", this.keydownHandler);
|
26885
26820
|
this.setInitialTab();
|
26886
26821
|
this.configureTabs();
|
26887
26822
|
}
|
@@ -26896,18 +26831,7 @@ class TabContext {
|
|
26896
26831
|
event.detail.contextId === this.contextId) {
|
26897
26832
|
this.selectedTab = event.detail.position;
|
26898
26833
|
}
|
26899
|
-
|
26900
|
-
this.icTabSelect.emit({
|
26901
|
-
tabIndex: event.detail.position,
|
26902
|
-
tabLabel: this.el
|
26903
|
-
.querySelectorAll("ic-tab")[event.detail.position].textContent.trim(),
|
26904
|
-
});
|
26905
|
-
this.tabSelect.emit({
|
26906
|
-
tabIndex: event.detail.position,
|
26907
|
-
tabLabel: this.el
|
26908
|
-
.querySelectorAll("ic-tab")[event.detail.position].textContent.trim(),
|
26909
|
-
});
|
26910
|
-
/* eslint-enable no-unexpected-multiline */
|
26834
|
+
this.emitEvents(event.detail.position);
|
26911
26835
|
event.stopImmediatePropagation();
|
26912
26836
|
}
|
26913
26837
|
tabCreatedHandler(ev) {
|
@@ -26918,6 +26842,9 @@ class TabContext {
|
|
26918
26842
|
this.tabPanels.push(...this.newTabPanels);
|
26919
26843
|
this.enabledTabs = this.getEnabledTabs();
|
26920
26844
|
this.linkTabs();
|
26845
|
+
if (!this.tabs[this.selectedTab] || !this.tabPanels[this.selectedTab])
|
26846
|
+
this.setInitialTab();
|
26847
|
+
this.configureTabs();
|
26921
26848
|
this.newTabs = [];
|
26922
26849
|
this.newTabPanels = [];
|
26923
26850
|
}
|
@@ -26931,12 +26858,10 @@ class TabContext {
|
|
26931
26858
|
*/
|
26932
26859
|
async tabRemovedHandler(hadFocus) {
|
26933
26860
|
this.getChildren();
|
26934
|
-
this.enabledTabs = this.getEnabledTabs();
|
26935
26861
|
this.linkTabs();
|
26936
26862
|
if (this.tabs[this.selectedTab] && this.tabPanels[this.selectedTab]) {
|
26937
26863
|
this.tabs[this.selectedTab].selected = true;
|
26938
|
-
this.tabPanels[this.selectedTab].
|
26939
|
-
this.tabs[this.selectedTab].tabId;
|
26864
|
+
this.tabPanels[this.selectedTab].hidden = false;
|
26940
26865
|
}
|
26941
26866
|
else {
|
26942
26867
|
this.setInitialTab();
|
@@ -27018,26 +26943,19 @@ class TabPanel {
|
|
27018
26943
|
this.tabPanelRemoved = createEvent(this, "tabPanelRemoved", 7);
|
27019
26944
|
this.appearance = "dark";
|
27020
26945
|
this.contextId = "default";
|
27021
|
-
this.panelId = undefined;
|
27022
|
-
this.selectedTab = undefined;
|
27023
|
-
this.tabPosition = undefined;
|
27024
26946
|
}
|
27025
26947
|
connectedCallback() {
|
27026
26948
|
this.tabPanelCreated.emit(this.el);
|
27027
26949
|
}
|
27028
26950
|
disconnectedCallback() {
|
27029
|
-
|
27030
|
-
|
27031
|
-
|
27032
|
-
}
|
26951
|
+
var _a;
|
26952
|
+
(_a = document
|
26953
|
+
.querySelector(`ic-tab-context[context-id=${this.contextId}]`)) === null || _a === void 0 ? void 0 : _a.tabRemovedHandler();
|
27033
26954
|
}
|
27034
26955
|
render() {
|
27035
|
-
const { panelId, selectedTab, appearance } = this;
|
27036
26956
|
return (hAsync(Host, { class: {
|
27037
|
-
|
27038
|
-
}, role: "tabpanel",
|
27039
|
-
? !(panelId === selectedTab)
|
27040
|
-
: true }, hAsync("div", null, hAsync("slot", null))));
|
26957
|
+
"ic-tab-panel-light": this.appearance === IcThemeForegroundEnum$1.Light,
|
26958
|
+
}, role: "tabpanel" }, hAsync("div", null, hAsync("slot", null))));
|
27041
26959
|
}
|
27042
26960
|
get el() { return getElement(this); }
|
27043
26961
|
static get style() { return icTabPanelCss; }
|
@@ -27046,14 +26964,11 @@ class TabPanel {
|
|
27046
26964
|
"$tagName$": "ic-tab-panel",
|
27047
26965
|
"$members$": {
|
27048
26966
|
"appearance": [1],
|
27049
|
-
"contextId": [513, "context-id"]
|
27050
|
-
"panelId": [513, "panel-id"],
|
27051
|
-
"selectedTab": [1, "selected-tab"],
|
27052
|
-
"tabPosition": [514, "tab-position"]
|
26967
|
+
"contextId": [513, "context-id"]
|
27053
26968
|
},
|
27054
26969
|
"$listeners$": undefined,
|
27055
26970
|
"$lazyBundleId$": "-",
|
27056
|
-
"$attrsToReflect$": [["contextId", "context-id"]
|
26971
|
+
"$attrsToReflect$": [["contextId", "context-id"]]
|
27057
26972
|
}; }
|
27058
26973
|
}
|
27059
26974
|
|
@@ -27230,7 +27145,7 @@ class TextField {
|
|
27230
27145
|
}
|
27231
27146
|
render() {
|
27232
27147
|
const { inputId, name, label, required, size, small, placeholder, helperText, rows, resize, disabled, value, min, max, maxLength, numChars, readonly, maxLengthExceeded, maxCharacters, maxCharactersError, maxCharactersReached, minCharacters, minCharactersUnattained, minValueUnattained, maxValueExceeded, validationStatus, validationText, validationInline, validationInlineInternal, spellcheck, inputmode, fullWidth, truncateValue, hiddenInput, } = this;
|
27233
|
-
const disabledMode = readonly
|
27148
|
+
const disabledMode = readonly || disabled;
|
27234
27149
|
const currentStatus = maxLengthExceeded ||
|
27235
27150
|
maxValueExceeded ||
|
27236
27151
|
minValueUnattained ||
|
@@ -28906,7 +28821,9 @@ class Typography {
|
|
28906
28821
|
}
|
28907
28822
|
};
|
28908
28823
|
this.getElementTop = (el) => {
|
28909
|
-
return el.getClientRects
|
28824
|
+
return el.getClientRects && el.getClientRects()[0]
|
28825
|
+
? el.getClientRects()[0].top
|
28826
|
+
: 0;
|
28910
28827
|
};
|
28911
28828
|
this.runResizeObserver = () => {
|
28912
28829
|
this.resizeObserver = new ResizeObserver(() => {
|