@pine-ds/core 4.9.1 → 4.10.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.
Files changed (80) hide show
  1. package/components/pds-checkbox2.js +1 -1
  2. package/components/pds-chip2.js +1 -1
  3. package/components/pds-combobox.js +2 -2
  4. package/components/pds-dropdown-menu.js +1 -1
  5. package/components/truncation-tooltip.js +1 -1
  6. package/dist/cjs/loader.cjs.js +1 -1
  7. package/dist/cjs/pds-checkbox.cjs.entry.js +1 -1
  8. package/dist/cjs/pds-chip.cjs.entry.js +5 -3
  9. package/dist/cjs/pds-combobox.cjs.entry.js +101 -15
  10. package/dist/cjs/pds-copytext.cjs.entry.js +1 -1
  11. package/dist/cjs/pds-dropdown-menu.cjs.entry.js +58 -46
  12. package/dist/cjs/pds-table-cell.cjs.entry.js +1 -1
  13. package/dist/cjs/pds-text.cjs.entry.js +1 -1
  14. package/dist/cjs/pine-core.cjs.js +1 -1
  15. package/dist/cjs/{truncation-tooltip-DdB78RIe.js → truncation-tooltip-Bikp7n9I.js} +1 -1
  16. package/dist/collection/components/pds-checkbox/pds-checkbox.css +20 -14
  17. package/dist/collection/components/pds-chip/pds-chip.js +4 -2
  18. package/dist/collection/components/pds-combobox/grouped-options-panel.js +39 -1
  19. package/dist/collection/components/pds-combobox/pds-combobox.css +37 -1
  20. package/dist/collection/components/pds-combobox/pds-combobox.js +62 -14
  21. package/dist/collection/components/pds-combobox/stories/pds-combobox.stories.js +48 -0
  22. package/dist/collection/components/pds-dropdown-menu/pds-dropdown-menu.js +64 -46
  23. package/dist/collection/utils/truncation-tooltip.js +1 -1
  24. package/dist/docs.json +8 -2
  25. package/dist/esm/loader.js +1 -1
  26. package/dist/esm/pds-checkbox.entry.js +1 -1
  27. package/dist/esm/pds-chip.entry.js +5 -3
  28. package/dist/esm/pds-combobox.entry.js +101 -15
  29. package/dist/esm/pds-copytext.entry.js +1 -1
  30. package/dist/esm/pds-dropdown-menu.entry.js +58 -46
  31. package/dist/esm/pds-table-cell.entry.js +1 -1
  32. package/dist/esm/pds-text.entry.js +1 -1
  33. package/dist/esm/pine-core.js +1 -1
  34. package/dist/esm/{truncation-tooltip-CRSdYzpA.js → truncation-tooltip-DBcPipr9.js} +1 -1
  35. package/dist/esm-es5/loader.js +1 -1
  36. package/dist/esm-es5/pds-checkbox.entry.js +1 -1
  37. package/dist/esm-es5/pds-chip.entry.js +1 -1
  38. package/dist/esm-es5/pds-combobox.entry.js +1 -1
  39. package/dist/esm-es5/pds-copytext.entry.js +1 -1
  40. package/dist/esm-es5/pds-dropdown-menu.entry.js +1 -1
  41. package/dist/esm-es5/pds-table-cell.entry.js +1 -1
  42. package/dist/esm-es5/pds-text.entry.js +1 -1
  43. package/dist/esm-es5/pine-core.js +1 -1
  44. package/dist/esm-es5/truncation-tooltip-DBcPipr9.js +1 -0
  45. package/dist/pine-core/p-0b7b3fc2.system.entry.js +3 -0
  46. package/dist/pine-core/{p-9a776443.entry.js → p-124a0a24.entry.js} +1 -1
  47. package/dist/pine-core/p-128c04e7.entry.js +1 -0
  48. package/dist/pine-core/{p-3d34b967.system.entry.js → p-3a1dc752.system.entry.js} +1 -1
  49. package/dist/pine-core/{p-20079552.system.entry.js → p-639acef8.system.entry.js} +1 -1
  50. package/dist/pine-core/{p-beb7a430.entry.js → p-97356d4b.entry.js} +1 -1
  51. package/dist/pine-core/p-BZVUD2on.js +1 -0
  52. package/dist/pine-core/p-Dj-z_ugg.system.js +1 -0
  53. package/dist/pine-core/p-XK45dzWR.system.js +1 -1
  54. package/dist/pine-core/{p-4d1a8803.entry.js → p-afc2f165.entry.js} +1 -1
  55. package/dist/pine-core/p-c6a9e62c.system.entry.js +1 -0
  56. package/dist/pine-core/p-da8b864a.entry.js +2 -0
  57. package/dist/pine-core/p-dd7ded84.entry.js +1 -0
  58. package/dist/pine-core/p-de455073.system.entry.js +1 -0
  59. package/dist/pine-core/{p-1cc39908.system.entry.js → p-eb56af4a.system.entry.js} +1 -1
  60. package/dist/pine-core/p-f354dbac.entry.js +1 -0
  61. package/dist/pine-core/{p-93fd7dd8.system.entry.js → p-f834cb07.system.entry.js} +1 -1
  62. package/dist/pine-core/pine-core.esm.js +1 -1
  63. package/dist/types/components/pds-combobox/combobox-interface.d.ts +26 -0
  64. package/dist/types/components/pds-combobox/grouped-options-panel.d.ts +17 -0
  65. package/dist/types/components/pds-combobox/pds-combobox.d.ts +12 -2
  66. package/dist/types/components/pds-dropdown-menu/pds-dropdown-menu.d.ts +4 -0
  67. package/dist/types/utils/truncation-tooltip.d.ts +1 -1
  68. package/hydrate/index.js +166 -66
  69. package/hydrate/index.mjs +166 -66
  70. package/package.json +2 -2
  71. package/dist/esm-es5/truncation-tooltip-CRSdYzpA.js +0 -1
  72. package/dist/pine-core/p-37718637.entry.js +0 -1
  73. package/dist/pine-core/p-383d84f4.entry.js +0 -2
  74. package/dist/pine-core/p-3e30a761.entry.js +0 -1
  75. package/dist/pine-core/p-54f1e86f.system.entry.js +0 -1
  76. package/dist/pine-core/p-73efb1ed.system.entry.js +0 -1
  77. package/dist/pine-core/p-DQyF6v9Q.system.js +0 -1
  78. package/dist/pine-core/p-DwQ5Tjis.js +0 -1
  79. package/dist/pine-core/p-b3d4f97a.system.entry.js +0 -3
  80. package/dist/pine-core/p-f018af99.entry.js +0 -1
@@ -1 +1 @@
1
- import{__awaiter,__generator}from"tslib";import{r as registerInstance,c as createEvent,h,H as Host,a as getElement}from"./index-4_RRPJTO.js";import{H as HostStylingKeeper}from"./attributes-DkeVeN0g.js";import{a as copy}from"./index-DvN3tyZp.js";import{r as restoreReflectedDefault}from"./reflected-attribute-default-t3idJwV0.js";import{s as setupTruncationTooltip}from"./truncation-tooltip-CRSdYzpA.js";import"./keep-hydrated-BgNaWLoS.js";import"./floating-ui.dom-Cuc0DYlm.js";import"./portal-target-CKRzRKdO.js";var pdsCopytextCss=function(){return":host(.pds-copytext){--copytext-color-background-hover:var(--pine-color-background-inset)}:host(.pds-copytext) pds-button{-ms-flex-align:center;align-items:center;border-radius:var(--pine-border-radius-full);border-width:var(--pine-dimension-none);display:-ms-inline-flexbox;display:inline-flex;font-family:var(--pine-font-family-heading);font-size:var(--pine-font-size-body-md);font-weight:var(--pine-font-weight-body-medium);letter-spacing:var(--pine-letter-spacing);line-height:var(--pine-line-height-body);max-width:100%}:host(.pds-copytext) pds-button::part(button){padding-block:var(--pine-dimension-2xs);padding-inline:var(--pine-dimension-xs)}:host(.pds-copytext) pds-button::part(button):hover{background-color:var(--copytext-color-background-hover);color:var(--pine-color-text-secondary-hover)}:host(.pds-copytext) pds-button span{font-weight:var(--pine-font-weight-medium);-webkit-margin-end:var(--pine-dimension-xs);margin-inline-end:var(--pine-dimension-xs);white-space:nowrap}:host(.pds-copytext) pds-button :nth-child(2){-ms-flex-negative:0;flex-shrink:0}:host(.pds-copytext):host(.pds-copytext--bordered){border-width:var(--pine-dimension-none);padding:var(--pine-dimension-none)}:host(.pds-copytext):host(.pds-copytext--bordered) pds-button{padding:var(--pine-dimension-none)}:host(.pds-copytext):host(.pds-copytext--bordered) pds-button::part(button){padding:var(--pine-dimension-none)}:host(.pds-copytext):host(.pds-copytext--bordered) pds-button::part(button):hover{background-color:transparent}:host(.pds-copytext):host(.pds-copytext--bordered) span{background:var(--pine-color-secondary);border:var(--pine-border);border-radius:var(--pine-border-radius-full);-webkit-margin-end:var(--pine-dimension-sm);margin-inline-end:var(--pine-dimension-sm);padding-block:var(--pine-dimension-xs);padding-inline:var(--pine-dimension-sm)}:host(.pds-copytext):host(.pds-copytext--bordered) :hover span{border:var(--pine-border-hover)}:host(.pds-copytext):host(.pds-copytext--full-width) pds-button,:host(.pds-copytext):host(.pds-copytext--truncated) pds-button{display:-ms-inline-flexbox;display:inline-flex;min-width:auto;width:100%}:host(.pds-copytext):host(.pds-copytext--full-width) pds-button::part(button-content),:host(.pds-copytext):host(.pds-copytext--full-width) pds-button::part(button-text),:host(.pds-copytext):host(.pds-copytext--truncated) pds-button::part(button-content),:host(.pds-copytext):host(.pds-copytext--truncated) pds-button::part(button-text){-ms-flex-negative:1;flex-shrink:1;width:100%}:host(.pds-copytext):host(.pds-copytext--full-width) pds-button span,:host(.pds-copytext):host(.pds-copytext--truncated) pds-button span{text-align:start;width:100%}:host(.pds-copytext):host(.pds-copytext--full-width) pds-button{-ms-flex-pack:justify;justify-content:space-between}:host(.pds-copytext):host(.pds-copytext--truncated) pds-button span{overflow:hidden;text-overflow:ellipsis}"};var PdsCopytext=function(){function t(t){var e=this;registerInstance(this,t);this.pdsCopyTextClick=createEvent(this,"pdsCopyTextClick");this.hostKeeper=new HostStylingKeeper;this.truncationCleanup=null;this.border=true;this.fullWidth=false;this.truncate=false;this.copyToClipboard=function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,3,,4]);if(!(typeof navigator.clipboard!=="undefined"))return[3,2];return[4,navigator.clipboard.writeText(t)];case 1:o.sent();this.pdsCopyTextClick.emit("Copied to clipboard");o.label=2;case 2:return[3,4];case 3:e=o.sent();this.pdsCopyTextClick.emit("Error writing text to clipboard: ".concat(e));return[3,4];case 4:return[2]}}))}))};this.handleClick=function(){e.copyToClipboard(e.value)}}t.prototype.connectedCallback=function(){this.hostKeeper.connect(this.el);if(this.truncate&&this.valueSpanEl){this.initTruncationTooltip()}};t.prototype.restoreBorderDefault=function(t){this.border=restoreReflectedDefault(this.el,"border",t,true)};t.prototype.handleTruncateChange=function(t){if(t){this.initTruncationTooltip()}else{this.destroyTruncationTooltip()}};t.prototype.handleValueChange=function(){if(this.truncate){this.initTruncationTooltip()}};t.prototype.componentDidLoad=function(){if(this.truncate){this.initTruncationTooltip()}};t.prototype.disconnectedCallback=function(){this.hostKeeper.disconnect();this.destroyTruncationTooltip()};t.prototype.initTruncationTooltip=function(){var t=this;this.destroyTruncationTooltip();if(this.valueSpanEl){this.truncationCleanup=setupTruncationTooltip({hostEl:this.el,contentEl:this.valueSpanEl,getTooltipText:function(){return t.value||""},manageTabIndex:false})}};t.prototype.destroyTruncationTooltip=function(){if(this.truncationCleanup){this.truncationCleanup();this.truncationCleanup=null}};t.prototype.classNames=function(){var t=["pds-copytext"];if(this.border){t.push("pds-copytext--bordered")}if(this.fullWidth){t.push("pds-copytext--full-width")}if(this.truncate){t.push("pds-copytext--truncated")}return t.join(" ")};t.prototype.render=function(){var t=this;var e=this.classNames();this.hostKeeper.record(e);return h(Host,{key:"35d74eaecedd432f7852545522f9ce72396f9ab9",class:e,id:this.componentId},h("pds-button",{key:"9550ce2fb21166e9726b08b5928036244c7b729e",type:"button",variant:"unstyled",onClick:this.handleClick},h("span",{key:"47af45448759c911ca4ca03d0158088289b622e0",ref:function(e){return t.valueSpanEl=e}},this.value),h("pds-icon",{key:"3ddab7c3e7063843cd606ffb19481cae3792db43","aria-hidden":"true",icon:copy,size:"16px"})))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{border:[{restoreBorderDefault:0}],truncate:[{handleTruncateChange:0}],value:[{handleValueChange:0}]}},enumerable:false,configurable:true});return t}();PdsCopytext.style=pdsCopytextCss();export{PdsCopytext as pds_copytext};
1
+ import{__awaiter,__generator}from"tslib";import{r as registerInstance,c as createEvent,h,H as Host,a as getElement}from"./index-4_RRPJTO.js";import{H as HostStylingKeeper}from"./attributes-DkeVeN0g.js";import{a as copy}from"./index-DvN3tyZp.js";import{r as restoreReflectedDefault}from"./reflected-attribute-default-t3idJwV0.js";import{s as setupTruncationTooltip}from"./truncation-tooltip-DBcPipr9.js";import"./keep-hydrated-BgNaWLoS.js";import"./floating-ui.dom-Cuc0DYlm.js";import"./portal-target-CKRzRKdO.js";var pdsCopytextCss=function(){return":host(.pds-copytext){--copytext-color-background-hover:var(--pine-color-background-inset)}:host(.pds-copytext) pds-button{-ms-flex-align:center;align-items:center;border-radius:var(--pine-border-radius-full);border-width:var(--pine-dimension-none);display:-ms-inline-flexbox;display:inline-flex;font-family:var(--pine-font-family-heading);font-size:var(--pine-font-size-body-md);font-weight:var(--pine-font-weight-body-medium);letter-spacing:var(--pine-letter-spacing);line-height:var(--pine-line-height-body);max-width:100%}:host(.pds-copytext) pds-button::part(button){padding-block:var(--pine-dimension-2xs);padding-inline:var(--pine-dimension-xs)}:host(.pds-copytext) pds-button::part(button):hover{background-color:var(--copytext-color-background-hover);color:var(--pine-color-text-secondary-hover)}:host(.pds-copytext) pds-button span{font-weight:var(--pine-font-weight-medium);-webkit-margin-end:var(--pine-dimension-xs);margin-inline-end:var(--pine-dimension-xs);white-space:nowrap}:host(.pds-copytext) pds-button :nth-child(2){-ms-flex-negative:0;flex-shrink:0}:host(.pds-copytext):host(.pds-copytext--bordered){border-width:var(--pine-dimension-none);padding:var(--pine-dimension-none)}:host(.pds-copytext):host(.pds-copytext--bordered) pds-button{padding:var(--pine-dimension-none)}:host(.pds-copytext):host(.pds-copytext--bordered) pds-button::part(button){padding:var(--pine-dimension-none)}:host(.pds-copytext):host(.pds-copytext--bordered) pds-button::part(button):hover{background-color:transparent}:host(.pds-copytext):host(.pds-copytext--bordered) span{background:var(--pine-color-secondary);border:var(--pine-border);border-radius:var(--pine-border-radius-full);-webkit-margin-end:var(--pine-dimension-sm);margin-inline-end:var(--pine-dimension-sm);padding-block:var(--pine-dimension-xs);padding-inline:var(--pine-dimension-sm)}:host(.pds-copytext):host(.pds-copytext--bordered) :hover span{border:var(--pine-border-hover)}:host(.pds-copytext):host(.pds-copytext--full-width) pds-button,:host(.pds-copytext):host(.pds-copytext--truncated) pds-button{display:-ms-inline-flexbox;display:inline-flex;min-width:auto;width:100%}:host(.pds-copytext):host(.pds-copytext--full-width) pds-button::part(button-content),:host(.pds-copytext):host(.pds-copytext--full-width) pds-button::part(button-text),:host(.pds-copytext):host(.pds-copytext--truncated) pds-button::part(button-content),:host(.pds-copytext):host(.pds-copytext--truncated) pds-button::part(button-text){-ms-flex-negative:1;flex-shrink:1;width:100%}:host(.pds-copytext):host(.pds-copytext--full-width) pds-button span,:host(.pds-copytext):host(.pds-copytext--truncated) pds-button span{text-align:start;width:100%}:host(.pds-copytext):host(.pds-copytext--full-width) pds-button{-ms-flex-pack:justify;justify-content:space-between}:host(.pds-copytext):host(.pds-copytext--truncated) pds-button span{overflow:hidden;text-overflow:ellipsis}"};var PdsCopytext=function(){function t(t){var e=this;registerInstance(this,t);this.pdsCopyTextClick=createEvent(this,"pdsCopyTextClick");this.hostKeeper=new HostStylingKeeper;this.truncationCleanup=null;this.border=true;this.fullWidth=false;this.truncate=false;this.copyToClipboard=function(t){return __awaiter(e,void 0,void 0,(function(){var e;return __generator(this,(function(o){switch(o.label){case 0:o.trys.push([0,3,,4]);if(!(typeof navigator.clipboard!=="undefined"))return[3,2];return[4,navigator.clipboard.writeText(t)];case 1:o.sent();this.pdsCopyTextClick.emit("Copied to clipboard");o.label=2;case 2:return[3,4];case 3:e=o.sent();this.pdsCopyTextClick.emit("Error writing text to clipboard: ".concat(e));return[3,4];case 4:return[2]}}))}))};this.handleClick=function(){e.copyToClipboard(e.value)}}t.prototype.connectedCallback=function(){this.hostKeeper.connect(this.el);if(this.truncate&&this.valueSpanEl){this.initTruncationTooltip()}};t.prototype.restoreBorderDefault=function(t){this.border=restoreReflectedDefault(this.el,"border",t,true)};t.prototype.handleTruncateChange=function(t){if(t){this.initTruncationTooltip()}else{this.destroyTruncationTooltip()}};t.prototype.handleValueChange=function(){if(this.truncate){this.initTruncationTooltip()}};t.prototype.componentDidLoad=function(){if(this.truncate){this.initTruncationTooltip()}};t.prototype.disconnectedCallback=function(){this.hostKeeper.disconnect();this.destroyTruncationTooltip()};t.prototype.initTruncationTooltip=function(){var t=this;this.destroyTruncationTooltip();if(this.valueSpanEl){this.truncationCleanup=setupTruncationTooltip({hostEl:this.el,contentEl:this.valueSpanEl,getTooltipText:function(){return t.value||""},manageTabIndex:false})}};t.prototype.destroyTruncationTooltip=function(){if(this.truncationCleanup){this.truncationCleanup();this.truncationCleanup=null}};t.prototype.classNames=function(){var t=["pds-copytext"];if(this.border){t.push("pds-copytext--bordered")}if(this.fullWidth){t.push("pds-copytext--full-width")}if(this.truncate){t.push("pds-copytext--truncated")}return t.join(" ")};t.prototype.render=function(){var t=this;var e=this.classNames();this.hostKeeper.record(e);return h(Host,{key:"35d74eaecedd432f7852545522f9ce72396f9ab9",class:e,id:this.componentId},h("pds-button",{key:"9550ce2fb21166e9726b08b5928036244c7b729e",type:"button",variant:"unstyled",onClick:this.handleClick},h("span",{key:"47af45448759c911ca4ca03d0158088289b622e0",ref:function(e){return t.valueSpanEl=e}},this.value),h("pds-icon",{key:"3ddab7c3e7063843cd606ffb19481cae3792db43","aria-hidden":"true",icon:copy,size:"16px"})))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{border:[{restoreBorderDefault:0}],truncate:[{handleTruncateChange:0}],value:[{handleValueChange:0}]}},enumerable:false,configurable:true});return t}();PdsCopytext.style=pdsCopytextCss();export{PdsCopytext as pds_copytext};
@@ -1 +1 @@
1
- import{r as registerInstance,h,H as Host,a as getElement}from"./index-4_RRPJTO.js";import{s as setAttributesIfChanged}from"./attributes-DkeVeN0g.js";import{l as limitRestores}from"./keep-hydrated-BgNaWLoS.js";import{a as autoUpdate,c as computePosition,o as offset,f as flip,s as shift}from"./floating-ui.dom-Cuc0DYlm.js";var pdsDropdownMenuCss=function(){return":host{display:block}.is-hidden{display:none}.pds-dropdown-menu--panel{background-color:var(--pine-color-background-overlay);border-radius:var(--pine-dimension-xs);left:var(--pine-dimension-none);min-width:170px;padding:var(--pine-dimension-xs);position:fixed;z-index:var(--pine-z-index-overlay)}:host-context([data-theme=dark]) .pds-dropdown-menu--panel{border:var(--pine-border)}.pds-dropdown-menu__header{-webkit-border-after:var(--pine-border-width-thin) solid var(--pine-color-border);border-block-end:var(--pine-border-width-thin) solid var(--pine-color-border);-webkit-margin-after:var(--pine-dimension-xs);margin-block-end:var(--pine-dimension-xs);margin-inline:calc(var(--pine-dimension-xs) * -1);-webkit-padding-after:var(--pine-dimension-xs);padding-block-end:var(--pine-dimension-xs);padding-inline:calc(var(--pine-dimension-xs) * 2 + var(--pine-border-width) + 2px);text-align:start}.pds-dropdown-menu__items{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}::slotted(a:not([slot=header])),::slotted(button:not([slot=header])){-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:var(--pine-dimension-xs) !important;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--pine-color-text) !important;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;font:var(--pine-typography-body-medium) !important;gap:var(--pine-dimension-xs);margin:calc(var(--pine-border-width) + 2px) !important;padding:var(--pine-dimension-xs) !important;text-align:start;text-decoration:none !important;width:calc(100% - (var(--pine-border-width) + 2px) * 2)}::slotted(.destructive:not([slot=header])){color:var(--pine-color-danger) !important}::slotted([aria-disabled=true]:not([slot=header])),::slotted([disabled]:not([disabled=false]):not([slot=header])){cursor:not-allowed;opacity:0.5;pointer-events:none}"};var PdsDropdownMenu=function(){function i(i){var e=this;registerInstance(this,i);this.isOpen=false;this.menuItems=[];this.cleanupAutoUpdate=null;this.triggerObserver=null;this.currentFocusIndex=-1;this.hasHeader=false;this.placement="bottom-start";this.handleTriggerSlotChange=function(i){e.slotEl=i.target;var t=e.slotEl.assignedElements();e.triggerEl=t[0];if(e.triggerEl){e.triggerEl.onclick=e.handleClick;e.syncTriggerAria()}e.observeTrigger()};this.syncTriggerAria=function(){if(!e.triggerEl)return false;return setAttributesIfChanged(e.triggerEl,{"aria-haspopup":"menu","aria-expanded":String(e.isOpen)})};this.handleHeaderSlotChange=function(i){e.hasHeader=i.target.assignedElements().length>0};this.handleSlotChange=function(i){e.slotEl=i.target;var t=e.slotEl.assignedElements();var n=["pds-dropdown-menu-item","pds-dropdown-menu-separator","a","button"];var r=t.filter((function(i){return!n.includes(i.tagName.toLowerCase())}));if(r.length>0){var s=r.map((function(i){return i.tagName.toLowerCase()})).join(", ");console.warn("pds-dropdown-menu: Unexpected element(s) found: ".concat(s,". ")+"Expected: ".concat(n.join(", ")))}e.menuItems=t.filter((function(i){var e=i.tagName.toLowerCase();return e==="pds-dropdown-menu-item"||e==="a"||e==="button"}))};this.toggleDropdown=function(){e.isOpen=!e.isOpen;if(e.isOpen){e.openDropdown()}else{e.closeDropdown()}};this.openDropdown=function(){var i;var t=function(){computePosition(e.triggerEl,e.panelEl,{placement:e.placement,strategy:"fixed",middleware:[offset(6),flip(),shift({padding:5})]}).then((function(i){var t=i.x,n=i.y;Object.assign(e.panelEl.style,{left:"".concat(t,"px"),top:"".concat(n,"px")})}))};t();e.cleanupAutoUpdate=autoUpdate(e.triggerEl,e.panelEl,t);(i=e.host.shadowRoot)===null||i===void 0?void 0:i.querySelector("pds-box").classList.remove("is-hidden");e.isOpen=true;e.syncTriggerAria()};this.closeDropdown=function(){var i;(i=e.host.shadowRoot)===null||i===void 0?void 0:i.querySelector("pds-box").classList.add("is-hidden");e.isOpen=false;if(e.cleanupAutoUpdate){e.cleanupAutoUpdate();e.cleanupAutoUpdate=null}e.syncTriggerAria();e.currentFocusIndex=-1;if(e.isFocusInMenu()){e.triggerEl.focus()}};this.handleClick=function(){e.toggleDropdown()}}i.prototype.componentWillLoad=function(){this.hasHeader=Array.from(this.host.children).some((function(i){return i.getAttribute("slot")==="header"}))};i.prototype.componentDidRender=function(){var i;this.panelEl=(i=this.host.shadowRoot)===null||i===void 0?void 0:i.querySelector("pds-box")};i.prototype.connectedCallback=function(){this.observeTrigger();this.syncTriggerAria()};i.prototype.disconnectedCallback=function(){var i;if(this.cleanupAutoUpdate){this.cleanupAutoUpdate();this.cleanupAutoUpdate=null}(i=this.triggerObserver)===null||i===void 0?void 0:i.disconnect();this.triggerObserver=null};i.prototype.observeTrigger=function(){var i;(i=this.triggerObserver)===null||i===void 0?void 0:i.disconnect();this.triggerObserver=null;if(!this.triggerEl||typeof MutationObserver==="undefined")return;this.triggerObserver=new MutationObserver(limitRestores(this.syncTriggerAria,"pds-dropdown-menu: stopped restoring its trigger ARIA, as another script keeps changing it. It may be wrong until the menu opens or closes.",this.triggerEl));this.triggerObserver.observe(this.triggerEl,{attributes:true,attributeFilter:["aria-haspopup","aria-expanded"]})};i.prototype.isFocusInMenu=function(){var i=this.host.getRootNode().activeElement;return i!=null&&this.host.contains(i)};i.prototype.isItemDisabled=function(i){var e=i.tagName.toLowerCase();if(e==="pds-dropdown-menu-item"){return i.disabled}else if(e==="button"){return i.disabled}else if(e==="a"){return i.getAttribute("aria-disabled")==="true"}return false};i.prototype.getFocusedItemIndex=function(){var i=document.activeElement;if(!i)return-1;return this.menuItems.findIndex((function(e){if(e===i)return true;if(e.tagName.toLowerCase()==="pds-dropdown-menu-item"){var t=e.shadowRoot;if(t===null||t===void 0?void 0:t.contains(i))return true}return false}))};i.prototype.focusItemByIndex=function(i){var e,t,n,r,s;if(i>=0&&i<this.menuItems.length){this.currentFocusIndex=i;var o=this.menuItems[i];var a=o.tagName.toLowerCase();if(a==="pds-dropdown-menu-item"){var d=o;var l=(e=d.shadowRoot)===null||e===void 0?void 0:e.querySelector('button, [role="menuitem"]');var h=((r=(n=(t=d.shadowRoot)===null||t===void 0?void 0:t.querySelector("pds-link"))===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.querySelector("a"))||((s=d.shadowRoot)===null||s===void 0?void 0:s.querySelector("a"));if(l){l.focus()}else if(h){h.focus()}else{d.focus()}}else{o.focus()}}};i.prototype.focusNextItem=function(){var i=(this.currentFocusIndex+1)%this.menuItems.length;var e=0;var t=this.menuItems.length;while(e<t&&this.isItemDisabled(this.menuItems[i])){i=(i+1)%this.menuItems.length;e++}if(e<t){this.focusItemByIndex(i)}};i.prototype.focusPreviousItem=function(){var i=this.currentFocusIndex<=0?this.menuItems.length-1:this.currentFocusIndex-1;var e=0;var t=this.menuItems.length;while(e<t&&this.isItemDisabled(this.menuItems[i])){i=i<=0?this.menuItems.length-1:i-1;e++}if(e<t){this.focusItemByIndex(i)}};i.prototype.handleEscapeKeyDown=function(i){if(!this.isOpen||i.key!=="Escape"||i.defaultPrevented)return;i.preventDefault();this.closeDropdown()};i.prototype.handleKeyDown=function(i){if(!this.isOpen)return;switch(i.key){case"ArrowDown":i.preventDefault();this.focusNextItem();break;case"ArrowUp":i.preventDefault();this.focusPreviousItem();break;case"Home":i.preventDefault();if(this.menuItems.length>0){var e=0;while(e<this.menuItems.length&&this.isItemDisabled(this.menuItems[e])){e++}if(e<this.menuItems.length){this.focusItemByIndex(e)}}break;case"End":i.preventDefault();if(this.menuItems.length>0){var t=this.menuItems.length-1;while(t>=0&&this.isItemDisabled(this.menuItems[t])){t--}if(t>=0){this.focusItemByIndex(t)}}break;case"Tab":if(i.shiftKey){var n=this.getFocusedItemIndex();if(n>0){i.preventDefault();this.focusPreviousItem()}}else{var r=document.activeElement;var s=r===this.triggerEl;var n=this.getFocusedItemIndex();if(s&&this.menuItems.length>0){i.preventDefault();var o=0;while(o<this.menuItems.length&&this.isItemDisabled(this.menuItems[o])){o++}if(o<this.menuItems.length){this.focusItemByIndex(o)}}else if(n===-1&&this.menuItems.length>0){i.preventDefault();var o=0;while(o<this.menuItems.length&&this.isItemDisabled(this.menuItems[o])){o++}if(o<this.menuItems.length){this.focusItemByIndex(o)}}else if(n!==-1){i.preventDefault();this.focusNextItem()}}break}};i.prototype.handleWindowClick=function(i){if(this.isOpen&&!this.host.contains(i.target)&&i.target!==this.triggerEl){this.closeDropdown()}};i.prototype.render=function(){return h(Host,{key:"0ed3d8ee889a5423ca9de66a86791d084f75abf0",id:this.componentId},h("slot",{key:"6bab71652d6afe094075623d3a48641a4d89b232",name:"trigger",onSlotchange:this.handleTriggerSlotChange}),h("pds-box",{key:"fcef0667f999ae5b8cd03eb94a0db0be7be502cb","border-radius":"sm",display:"flex",direction:"column",class:"pds-dropdown-menu--panel is-hidden",shadow:"100",part:"menu-panel"},h("div",{key:"c78d5bd7e48c5483b12171341271f9132f4b2ff9",class:{"pds-dropdown-menu__header":true,"is-hidden":!this.hasHeader}},h("slot",{key:"6464994260720d6046da548f4aad0896965cc47c",name:"header",onSlotchange:this.handleHeaderSlotChange})),h("div",{key:"3e97dfc4e1911f91ce8917faf981d436e71e5c24",class:"pds-dropdown-menu__items",role:"menu","aria-orientation":"vertical"},h("slot",{key:"dfd77a8b73df5ce9eef3e661d3f9501cb8bfdba2",onSlotchange:this.handleSlotChange}))))};Object.defineProperty(i.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return i}();PdsDropdownMenu.style=pdsDropdownMenuCss();export{PdsDropdownMenu as pds_dropdown_menu};
1
+ import{r as registerInstance,h,H as Host,a as getElement}from"./index-4_RRPJTO.js";import{s as setAttributesIfChanged}from"./attributes-DkeVeN0g.js";import{l as limitRestores}from"./keep-hydrated-BgNaWLoS.js";import{a as autoUpdate,c as computePosition,o as offset,f as flip,s as shift}from"./floating-ui.dom-Cuc0DYlm.js";var pdsDropdownMenuCss=function(){return":host{display:block}.is-hidden{display:none}.pds-dropdown-menu--panel{background-color:var(--pine-color-background-overlay);border-radius:var(--pine-dimension-xs);left:var(--pine-dimension-none);min-width:170px;padding:var(--pine-dimension-xs);position:fixed;z-index:var(--pine-z-index-overlay)}:host-context([data-theme=dark]) .pds-dropdown-menu--panel{border:var(--pine-border)}.pds-dropdown-menu__header{-webkit-border-after:var(--pine-border-width-thin) solid var(--pine-color-border);border-block-end:var(--pine-border-width-thin) solid var(--pine-color-border);-webkit-margin-after:var(--pine-dimension-xs);margin-block-end:var(--pine-dimension-xs);margin-inline:calc(var(--pine-dimension-xs) * -1);-webkit-padding-after:var(--pine-dimension-xs);padding-block-end:var(--pine-dimension-xs);padding-inline:calc(var(--pine-dimension-xs) * 2 + var(--pine-border-width) + 2px);text-align:start}.pds-dropdown-menu__items{display:-ms-flexbox;display:flex;-ms-flex-direction:column;flex-direction:column}::slotted(a:not([slot=header])),::slotted(button:not([slot=header])){-ms-flex-align:center;align-items:center;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:transparent;border:0;border-radius:var(--pine-dimension-xs) !important;-webkit-box-sizing:border-box;box-sizing:border-box;color:var(--pine-color-text) !important;cursor:pointer;display:-ms-flexbox;display:flex;-ms-flex-positive:1;flex-grow:1;font:var(--pine-typography-body-medium) !important;gap:var(--pine-dimension-xs);margin:calc(var(--pine-border-width) + 2px) !important;padding:var(--pine-dimension-xs) !important;text-align:start;text-decoration:none !important;width:calc(100% - (var(--pine-border-width) + 2px) * 2)}::slotted(.destructive:not([slot=header])){color:var(--pine-color-danger) !important}::slotted([aria-disabled=true]:not([slot=header])),::slotted([disabled]:not([disabled=false]):not([slot=header])){cursor:not-allowed;opacity:0.5;pointer-events:none}"};var PdsDropdownMenu=function(){function i(i){var e=this;registerInstance(this,i);this.isOpen=false;this.menuItems=[];this.cleanupAutoUpdate=null;this.triggerObserver=null;this.currentFocusIndex=-1;this.hasHeader=false;this.placement="bottom-start";this.handleTriggerSlotChange=function(i){e.slotEl=i.target;var t=e.slotEl.assignedElements();e.triggerEl=t[0];if(e.triggerEl){e.triggerEl.onclick=e.handleClick;e.syncTriggerAria()}e.observeTrigger()};this.syncTriggerAria=function(){if(!e.triggerEl)return false;return setAttributesIfChanged(e.triggerEl,{"aria-haspopup":"menu","aria-expanded":String(e.isOpen)})};this.handleHeaderSlotChange=function(i){e.hasHeader=i.target.assignedElements().length>0};this.handleSlotChange=function(i){e.slotEl=i.target;var t=e.slotEl.assignedElements();var n=["pds-dropdown-menu-item","pds-dropdown-menu-separator","a","button"];var r=t.filter((function(i){return!n.includes(i.tagName.toLowerCase())}));if(r.length>0){var o=r.map((function(i){return i.tagName.toLowerCase()})).join(", ");console.warn("pds-dropdown-menu: Unexpected element(s) found: ".concat(o,". ")+"Expected: ".concat(n.join(", ")))}e.menuItems=t.filter((function(i){var e=i.tagName.toLowerCase();return e==="pds-dropdown-menu-item"||e==="a"||e==="button"}))};this.toggleDropdown=function(){e.isOpen=!e.isOpen;if(e.isOpen){e.openDropdown()}else{e.closeDropdown()}};this.openDropdown=function(){var i;var t=function(){computePosition(e.triggerEl,e.panelEl,{placement:e.placement,strategy:"fixed",middleware:[offset(6),flip(),shift({padding:5})]}).then((function(i){var t=i.x,n=i.y;Object.assign(e.panelEl.style,{left:"".concat(t,"px"),top:"".concat(n,"px")})}))};t();e.cleanupAutoUpdate=autoUpdate(e.triggerEl,e.panelEl,t);(i=e.host.shadowRoot)===null||i===void 0?void 0:i.querySelector("pds-box").classList.remove("is-hidden");e.isOpen=true;e.syncTriggerAria()};this.closeDropdown=function(){var i;(i=e.host.shadowRoot)===null||i===void 0?void 0:i.querySelector("pds-box").classList.add("is-hidden");e.isOpen=false;if(e.cleanupAutoUpdate){e.cleanupAutoUpdate();e.cleanupAutoUpdate=null}e.syncTriggerAria();e.currentFocusIndex=-1;if(e.isFocusInMenu()){e.focusTrigger()}};this.handleClick=function(){e.toggleDropdown()}}i.prototype.componentWillLoad=function(){this.hasHeader=Array.from(this.host.children).some((function(i){return i.getAttribute("slot")==="header"}))};i.prototype.componentDidRender=function(){var i;this.panelEl=(i=this.host.shadowRoot)===null||i===void 0?void 0:i.querySelector("pds-box")};i.prototype.connectedCallback=function(){this.observeTrigger();this.syncTriggerAria()};i.prototype.disconnectedCallback=function(){var i;if(this.cleanupAutoUpdate){this.cleanupAutoUpdate();this.cleanupAutoUpdate=null}(i=this.triggerObserver)===null||i===void 0?void 0:i.disconnect();this.triggerObserver=null};i.prototype.observeTrigger=function(){var i;(i=this.triggerObserver)===null||i===void 0?void 0:i.disconnect();this.triggerObserver=null;if(!this.triggerEl||typeof MutationObserver==="undefined")return;this.triggerObserver=new MutationObserver(limitRestores(this.syncTriggerAria,"pds-dropdown-menu: stopped restoring its trigger ARIA, as another script keeps changing it. It may be wrong until the menu opens or closes.",this.triggerEl));this.triggerObserver.observe(this.triggerEl,{attributes:true,attributeFilter:["aria-haspopup","aria-expanded"]})};i.prototype.isFocusInMenu=function(){var i=this.host.getRootNode().activeElement;return i!=null&&this.host.contains(i)};i.prototype.focusTrigger=function(){var i,e;this.triggerEl.focus();if(this.host.getRootNode().activeElement===this.triggerEl)return;(e=(i=this.triggerEl.shadowRoot)===null||i===void 0?void 0:i.querySelector('button, [href], [tabindex]:not([tabindex="-1"])'))===null||e===void 0?void 0:e.focus()};i.prototype.isItemDisabled=function(i){var e=i.tagName.toLowerCase();if(e==="pds-dropdown-menu-item"){return i.disabled}else if(e==="button"){return i.disabled}else if(e==="a"){return i.getAttribute("aria-disabled")==="true"}return false};i.prototype.getFocusedItemIndex=function(){var i=document.activeElement;if(!i)return-1;return this.menuItems.findIndex((function(e){if(e===i)return true;if(e.tagName.toLowerCase()==="pds-dropdown-menu-item"){var t=e.shadowRoot;if(t===null||t===void 0?void 0:t.contains(i))return true}return false}))};i.prototype.focusItemByIndex=function(i){var e,t,n,r,o;if(i>=0&&i<this.menuItems.length){this.currentFocusIndex=i;var s=this.menuItems[i];var a=s.tagName.toLowerCase();if(a==="pds-dropdown-menu-item"){var d=s;var u=(e=d.shadowRoot)===null||e===void 0?void 0:e.querySelector('button, [role="menuitem"]');var h=((r=(n=(t=d.shadowRoot)===null||t===void 0?void 0:t.querySelector("pds-link"))===null||n===void 0?void 0:n.shadowRoot)===null||r===void 0?void 0:r.querySelector("a"))||((o=d.shadowRoot)===null||o===void 0?void 0:o.querySelector("a"));if(u){u.focus()}else if(h){h.focus()}else{d.focus()}}else{s.focus()}}};i.prototype.focusNextItem=function(){var i=(this.currentFocusIndex+1)%this.menuItems.length;var e=0;var t=this.menuItems.length;while(e<t&&this.isItemDisabled(this.menuItems[i])){i=(i+1)%this.menuItems.length;e++}if(e<t){this.focusItemByIndex(i)}};i.prototype.focusPreviousItem=function(){var i=this.currentFocusIndex<=0?this.menuItems.length-1:this.currentFocusIndex-1;var e=0;var t=this.menuItems.length;while(e<t&&this.isItemDisabled(this.menuItems[i])){i=i<=0?this.menuItems.length-1:i-1;e++}if(e<t){this.focusItemByIndex(i)}};i.prototype.adjacentEnabledIndex=function(i,e){for(var t=i+e;t>=0&&t<this.menuItems.length;t+=e){if(!this.isItemDisabled(this.menuItems[t]))return t}return-1};i.prototype.focusAdjacentItem=function(i,e){for(var t=this.adjacentEnabledIndex(i,e);t!==-1;t=this.adjacentEnabledIndex(t,e)){this.focusItemByIndex(t);if(this.getFocusedItemIndex()===t)return true}return false};i.prototype.handleEscapeKeyDown=function(i){if(!this.isOpen||i.key!=="Escape"||i.defaultPrevented)return;i.preventDefault();this.closeDropdown()};i.prototype.handleTabKeyDown=function(i){if(!this.isOpen||i.key!=="Tab"||i.defaultPrevented)return;var e=this.getFocusedItemIndex();if(e===-1){if(i.shiftKey&&(document.activeElement===this.triggerEl||!this.isFocusInMenu()))this.closeDropdown();return}if(this.focusAdjacentItem(e,i.shiftKey?-1:1)){i.preventDefault();return}if(i.shiftKey)i.preventDefault();this.closeDropdown()};i.prototype.handleKeyDown=function(i){if(!this.isOpen)return;switch(i.key){case"ArrowDown":i.preventDefault();this.focusNextItem();break;case"ArrowUp":i.preventDefault();this.focusPreviousItem();break;case"Home":i.preventDefault();if(this.menuItems.length>0){var e=0;while(e<this.menuItems.length&&this.isItemDisabled(this.menuItems[e])){e++}if(e<this.menuItems.length){this.focusItemByIndex(e)}}break;case"End":i.preventDefault();if(this.menuItems.length>0){var t=this.menuItems.length-1;while(t>=0&&this.isItemDisabled(this.menuItems[t])){t--}if(t>=0){this.focusItemByIndex(t)}}break;case"Tab":{if(i.shiftKey||this.getFocusedItemIndex()!==-1)break;if(this.focusAdjacentItem(-1,1)){i.preventDefault()}else{this.closeDropdown()}break}}};i.prototype.handleWindowClick=function(i){if(this.isOpen&&!this.host.contains(i.target)&&i.target!==this.triggerEl){this.closeDropdown()}};i.prototype.render=function(){return h(Host,{key:"aa4ce84354cf87638ee46fd7ed69520228b7e656",id:this.componentId},h("slot",{key:"948800e67d18c8c6cc9e77ef3aeab635c5035453",name:"trigger",onSlotchange:this.handleTriggerSlotChange}),h("pds-box",{key:"3ce2a2879b14aad975cea8ae72fcbf8c3abcf20c","border-radius":"sm",display:"flex",direction:"column",class:"pds-dropdown-menu--panel is-hidden",shadow:"100",part:"menu-panel"},h("div",{key:"ad25fbf4f3c7a24653c229e64fe2ce893a92e4c8",class:{"pds-dropdown-menu__header":true,"is-hidden":!this.hasHeader}},h("slot",{key:"35a5903543e08577997b456bcd312bdd009fd8fc",name:"header",onSlotchange:this.handleHeaderSlotChange})),h("div",{key:"a9593adacf047918c1d87494f8c951a2a4a5f76f",class:"pds-dropdown-menu__items",role:"menu","aria-orientation":"vertical"},h("slot",{key:"8d2def1cc7020608220099f4ced0f44e9838cce8",onSlotchange:this.handleSlotChange}))))};Object.defineProperty(i.prototype,"host",{get:function(){return getElement(this)},enumerable:false,configurable:true});return i}();PdsDropdownMenu.style=pdsDropdownMenuCss();export{PdsDropdownMenu as pds_dropdown_menu};
@@ -1 +1 @@
1
- import{r as registerInstance,h,H as Host,a as getElement}from"./index-4_RRPJTO.js";import{a as isScrolledFromInlineStart}from"./scroll-DtgUQhjl.js";import{s as setupTruncationTooltip}from"./truncation-tooltip-CRSdYzpA.js";import"./keep-hydrated-BgNaWLoS.js";import"./floating-ui.dom-Cuc0DYlm.js";import"./portal-target-CKRzRKdO.js";var pdsTableCellCss=function(){return":host{--box-shadow-fixed:3px 3px 6px -2px rgba(0, 0, 0, 0.2);color:var(--pine-color-text);display:table-cell;font-family:var(--pine-font-family-body);font-size:var(--pine-font-size);font-weight:var(--pine-font-weight-regular);inset-inline-start:var(--pine-dimension-none);letter-spacing:var(--pine-letter-spacing);line-height:var(--pine-line-height-body);padding:var(--pine-dimension-sm);vertical-align:middle}:host(.is-compact){padding-block:var(--pine-dimension-2xs)}:host(.is-fixed){background:var(--pine-color-background-container);inset-inline-start:0;position:-webkit-sticky;position:sticky;z-index:var(--pine-z-index-raised)}:host-context([dir=rtl]){--box-shadow-fixed:-3px 3px 6px -2px rgba(0, 0, 0, 0.2)}:host(.has-scrolled.is-fixed){-webkit-box-shadow:var(--box-shadow-fixed);box-shadow:var(--box-shadow-fixed)}:host(.is-truncated){max-width:var(--pds-table-cell-truncate-max-width, 100px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.has-checkbox){vertical-align:middle;width:16px}:host(.pds-table-cell--align-start){text-align:start}:host(.pds-table-cell--align-center){text-align:center}:host(.pds-table-cell--align-end){text-align:end}:host(.pds-table-cell--align-justify){text-align:justify}"};var PdsTableCell=function(){function t(t){var i=this;registerInstance(this,t);this.scrollContainer=null;this.setupRetries=0;this.truncationCleanup=null;this.hasLoaded=false;this.tableScrolling=false;this.handleScroll=function(){if(!i.scrollContainer){return}try{i.tableScrolling=isScrolledFromInlineStart(i.scrollContainer)}catch(t){console.warn("Scroll handler error:",t)}}}t.prototype.componentWillRender=function(){this.tableRef=this.hostElement.closest("pds-table")};t.prototype.connectedCallback=function(){if(!this.hasLoaded)return;this.tableRef=this.hostElement.closest("pds-table");this.cleanupScrollListener();if(this.needsScrollShadow){this.setupScrollListener()}if(this.truncate){this.initTruncationTooltip()}};t.prototype.componentDidLoad=function(){this.hasLoaded=true;if(this.needsScrollShadow){this.setupScrollListener()}if(this.truncate){this.initTruncationTooltip()}};t.prototype.disconnectedCallback=function(){this.cleanupScrollListener();this.destroyTruncationTooltip()};Object.defineProperty(t.prototype,"needsScrollShadow",{get:function(){var t;return Boolean(((t=this.tableRef)===null||t===void 0?void 0:t.responsive)&&this.tableRef.fixedColumn)},enumerable:false,configurable:true});t.prototype.setupScrollListener=function(){var t=this;var i;if(!this.tableRef)return;var e=(i=this.tableRef.shadowRoot)===null||i===void 0?void 0:i.querySelector(".pds-table-responsive-container");if(e){this.scrollContainer=e;this.scrollContainer.addEventListener("scroll",this.handleScroll,{passive:true});this.handleScroll();this.setupRetries=0}else{this.setupTimer=window.setTimeout((function(){if(t.scrollContainer)return;t.setupRetries=(t.setupRetries||0)+1;if(t.setupRetries<=50){t.setupScrollListener()}else{console.warn("Failed to find responsive container after 50 attempts")}}),100)}};t.prototype.cleanupScrollListener=function(){if(this.scrollContainer){this.scrollContainer.removeEventListener("scroll",this.handleScroll);this.scrollContainer=null}if(this.setupTimer!==undefined){window.clearTimeout(this.setupTimer);this.setupTimer=undefined}this.setupRetries=0};t.prototype.handleTruncateChange=function(t){if(t){this.initTruncationTooltip()}else{this.destroyTruncationTooltip()}};t.prototype.initTruncationTooltip=function(){var t=this;this.destroyTruncationTooltip();this.truncationCleanup=setupTruncationTooltip({hostEl:this.hostElement,contentEl:this.hostElement,getTooltipText:function(){return t.hostElement.textContent||""}})};t.prototype.destroyTruncationTooltip=function(){if(this.truncationCleanup){this.truncationCleanup();this.truncationCleanup=null}};t.prototype.classNames=function(){var t=[];if(this.tableRef&&this.tableRef.compact){t.push("is-compact")}if(this.cellAlign){t.push("pds-table-cell--align-".concat(this.cellAlign))}if(this.truncate){t.push("is-truncated")}if(this.tableRef&&this.tableRef.fixedColumn&&this.tableScrolling){t.push("has-scrolled")}return t.join(" ")};t.prototype.render=function(){return h(Host,{key:"fd84150bcb9bd5d2029624394d4f69b0a7234bc0",class:this.classNames(),role:"gridcell",part:"cell",style:this.tableRef&&this.tableRef.fixedColumn&&this.tableRef.selectable?{"--fixed-cell-position":"40px"}:{}},h("slot",{key:"9256f033ec58b9cb2acc74d705acc9726507668b"}))};Object.defineProperty(t.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{truncate:[{handleTruncateChange:0}]}},enumerable:false,configurable:true});return t}();PdsTableCell.style=pdsTableCellCss();export{PdsTableCell as pds_table_cell};
1
+ import{r as registerInstance,h,H as Host,a as getElement}from"./index-4_RRPJTO.js";import{a as isScrolledFromInlineStart}from"./scroll-DtgUQhjl.js";import{s as setupTruncationTooltip}from"./truncation-tooltip-DBcPipr9.js";import"./keep-hydrated-BgNaWLoS.js";import"./floating-ui.dom-Cuc0DYlm.js";import"./portal-target-CKRzRKdO.js";var pdsTableCellCss=function(){return":host{--box-shadow-fixed:3px 3px 6px -2px rgba(0, 0, 0, 0.2);color:var(--pine-color-text);display:table-cell;font-family:var(--pine-font-family-body);font-size:var(--pine-font-size);font-weight:var(--pine-font-weight-regular);inset-inline-start:var(--pine-dimension-none);letter-spacing:var(--pine-letter-spacing);line-height:var(--pine-line-height-body);padding:var(--pine-dimension-sm);vertical-align:middle}:host(.is-compact){padding-block:var(--pine-dimension-2xs)}:host(.is-fixed){background:var(--pine-color-background-container);inset-inline-start:0;position:-webkit-sticky;position:sticky;z-index:var(--pine-z-index-raised)}:host-context([dir=rtl]){--box-shadow-fixed:-3px 3px 6px -2px rgba(0, 0, 0, 0.2)}:host(.has-scrolled.is-fixed){-webkit-box-shadow:var(--box-shadow-fixed);box-shadow:var(--box-shadow-fixed)}:host(.is-truncated){max-width:var(--pds-table-cell-truncate-max-width, 100px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host(.has-checkbox){vertical-align:middle;width:16px}:host(.pds-table-cell--align-start){text-align:start}:host(.pds-table-cell--align-center){text-align:center}:host(.pds-table-cell--align-end){text-align:end}:host(.pds-table-cell--align-justify){text-align:justify}"};var PdsTableCell=function(){function t(t){var i=this;registerInstance(this,t);this.scrollContainer=null;this.setupRetries=0;this.truncationCleanup=null;this.hasLoaded=false;this.tableScrolling=false;this.handleScroll=function(){if(!i.scrollContainer){return}try{i.tableScrolling=isScrolledFromInlineStart(i.scrollContainer)}catch(t){console.warn("Scroll handler error:",t)}}}t.prototype.componentWillRender=function(){this.tableRef=this.hostElement.closest("pds-table")};t.prototype.connectedCallback=function(){if(!this.hasLoaded)return;this.tableRef=this.hostElement.closest("pds-table");this.cleanupScrollListener();if(this.needsScrollShadow){this.setupScrollListener()}if(this.truncate){this.initTruncationTooltip()}};t.prototype.componentDidLoad=function(){this.hasLoaded=true;if(this.needsScrollShadow){this.setupScrollListener()}if(this.truncate){this.initTruncationTooltip()}};t.prototype.disconnectedCallback=function(){this.cleanupScrollListener();this.destroyTruncationTooltip()};Object.defineProperty(t.prototype,"needsScrollShadow",{get:function(){var t;return Boolean(((t=this.tableRef)===null||t===void 0?void 0:t.responsive)&&this.tableRef.fixedColumn)},enumerable:false,configurable:true});t.prototype.setupScrollListener=function(){var t=this;var i;if(!this.tableRef)return;var e=(i=this.tableRef.shadowRoot)===null||i===void 0?void 0:i.querySelector(".pds-table-responsive-container");if(e){this.scrollContainer=e;this.scrollContainer.addEventListener("scroll",this.handleScroll,{passive:true});this.handleScroll();this.setupRetries=0}else{this.setupTimer=window.setTimeout((function(){if(t.scrollContainer)return;t.setupRetries=(t.setupRetries||0)+1;if(t.setupRetries<=50){t.setupScrollListener()}else{console.warn("Failed to find responsive container after 50 attempts")}}),100)}};t.prototype.cleanupScrollListener=function(){if(this.scrollContainer){this.scrollContainer.removeEventListener("scroll",this.handleScroll);this.scrollContainer=null}if(this.setupTimer!==undefined){window.clearTimeout(this.setupTimer);this.setupTimer=undefined}this.setupRetries=0};t.prototype.handleTruncateChange=function(t){if(t){this.initTruncationTooltip()}else{this.destroyTruncationTooltip()}};t.prototype.initTruncationTooltip=function(){var t=this;this.destroyTruncationTooltip();this.truncationCleanup=setupTruncationTooltip({hostEl:this.hostElement,contentEl:this.hostElement,getTooltipText:function(){return t.hostElement.textContent||""}})};t.prototype.destroyTruncationTooltip=function(){if(this.truncationCleanup){this.truncationCleanup();this.truncationCleanup=null}};t.prototype.classNames=function(){var t=[];if(this.tableRef&&this.tableRef.compact){t.push("is-compact")}if(this.cellAlign){t.push("pds-table-cell--align-".concat(this.cellAlign))}if(this.truncate){t.push("is-truncated")}if(this.tableRef&&this.tableRef.fixedColumn&&this.tableScrolling){t.push("has-scrolled")}return t.join(" ")};t.prototype.render=function(){return h(Host,{key:"fd84150bcb9bd5d2029624394d4f69b0a7234bc0",class:this.classNames(),role:"gridcell",part:"cell",style:this.tableRef&&this.tableRef.fixedColumn&&this.tableRef.selectable?{"--fixed-cell-position":"40px"}:{}},h("slot",{key:"9256f033ec58b9cb2acc74d705acc9726507668b"}))};Object.defineProperty(t.prototype,"hostElement",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{truncate:[{handleTruncateChange:0}]}},enumerable:false,configurable:true});return t}();PdsTableCell.style=pdsTableCellCss();export{PdsTableCell as pds_table_cell};
@@ -1 +1 @@
1
- import{r as registerInstance,h,a as getElement}from"./index-4_RRPJTO.js";import{s as setColor}from"./utils-OYK5-nwe.js";import{F as FOCUSABLE_WRAPPER,s as setupTruncationTooltip}from"./truncation-tooltip-CRSdYzpA.js";import{TEXT_SIZES}from"./index.js";import"./keep-hydrated-BgNaWLoS.js";import"./floating-ui.dom-Cuc0DYlm.js";import"./portal-target-CKRzRKdO.js";var pdsTextCss=function(){return":host{display:inline}:host([decoration=underline-dotted])>*{-webkit-text-decoration-color:var(--pine-color-text-tertiary);text-decoration-color:var(--pine-color-text-tertiary);-webkit-text-decoration-line:underline;text-decoration-line:underline;-webkit-text-decoration-style:dotted;text-decoration-style:dotted;text-decoration-thickness:12%;text-underline-offset:0.3rem;text-underline-position:under}:host([decoration=strikethrough])>*{text-decoration:line-through}h1{font:var(--pine-typography-heading-1);letter-spacing:var(--pine-letter-spacing-heading-1)}h2{font:var(--pine-typography-heading-2);letter-spacing:var(--pine-letter-spacing-heading-2)}h3{font:var(--pine-typography-heading-3);letter-spacing:var(--pine-letter-spacing-heading-3)}h4{font:var(--pine-typography-heading-4);letter-spacing:var(--pine-letter-spacing-heading-4)}h5{font:var(--pine-typography-heading-5);letter-spacing:var(--pine-letter-spacing-heading-5)}h6{font:var(--pine-typography-heading-6);letter-spacing:var(--pine-letter-spacing-heading-6)}code,em,p,pre,strong{font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing)}code,pre{font-family:monospace;letter-spacing:0;line-height:1}em{font-style:normal}strong{font-weight:bolder}:host([truncate]){display:block;min-width:0}:host([truncate])>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([italic])>*{font-style:italic}.pds-text{color:var(--color, var(--pine-color-text));margin:var(--pine-dimension-none)}.pds-text--size-2xl{font-size:var(--pine-font-size-body-2xl)}.pds-text--size-xl{font-size:var(--pine-font-size-body-xl)}.pds-text--size-lg{font-size:var(--pine-font-size-body-lg)}.pds-text--size-md{font-size:var(--pine-font-size-body-md)}.pds-text--size-sm{font-size:var(--pine-font-size-body-sm)}.pds-text--size-xs{font-size:var(--pine-font-size-body-xs)}.pds-text--size-2xs{font-size:var(--pine-font-size-body-2xs)}.pds-text--size-h1{font-size:var(--pine-font-size-heading-1)}.pds-text--size-h2{font-size:var(--pine-font-size-heading-2)}.pds-text--size-h3{font-size:var(--pine-font-size-heading-3)}.pds-text--size-h4{font-size:var(--pine-font-size-heading-4)}.pds-text--size-h5{font-size:var(--pine-font-size-heading-5)}.pds-text--size-h6{font-size:var(--pine-font-size-heading-6)}.pds-text--weight-extra-light{font-weight:var(--pine-font-weight-extra-light)}.pds-text--weight-light{font-weight:var(--pine-font-weight-light)}.pds-text--weight-regular{font-weight:var(--pine-font-weight-regular)}.pds-text--weight-medium{font-weight:var(--pine-font-weight-medium)}.pds-text--weight-semibold{font-weight:var(--pine-font-weight-semi-bold)}.pds-text--weight-bold{font-weight:var(--pine-font-weight-bold)}.pds-text--gutter-2xl{-webkit-margin-after:var(--pine-dimension-2xl);margin-block-end:var(--pine-dimension-2xl)}.pds-text--gutter-xl{-webkit-margin-after:var(--pine-dimension-xl);margin-block-end:var(--pine-dimension-xl)}.pds-text--gutter-lg{-webkit-margin-after:var(--pine-dimension-lg);margin-block-end:var(--pine-dimension-lg)}.pds-text--gutter-md{-webkit-margin-after:var(--pine-dimension-md);margin-block-end:var(--pine-dimension-md)}.pds-text--gutter-sm{-webkit-margin-after:var(--pine-dimension-sm);margin-block-end:var(--pine-dimension-sm)}.pds-text--gutter-xs{-webkit-margin-after:var(--pine-dimension-xs);margin-block-end:var(--pine-dimension-xs)}.pds-text--gutter-2xs{-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}.pds-text--align-start{text-align:start}.pds-text--align-center{text-align:center}.pds-text--align-end{text-align:end}.pds-text--align-justify{text-align:justify}"};var textsUsingWrapper=new WeakMap;var PdsText=function(){function t(t){registerInstance(this,t);this.truncationCleanup=null;this.tag="p"}t.prototype.handleTruncateChange=function(t){if(t){this.initTruncationTooltip()}else{this.destroyTruncationTooltip()}};t.prototype.validateSize=function(t){if(t==null||t===""){return}if(!TEXT_SIZES.includes(t)){var e=t.length>80?"".concat(t.slice(0,80),"…"):t;console.warn('pds-text: invalid size "'.concat(e,'". Valid values are: ').concat(TEXT_SIZES.join(", "),"."))}};t.prototype.componentWillLoad=function(){this.validateSize(this.size)};t.prototype.connectedCallback=function(){if(this.truncate&&this.contentEl){this.initTruncationTooltip()}};t.prototype.componentDidLoad=function(){if(this.truncate){this.initTruncationTooltip()}};t.prototype.disconnectedCallback=function(){this.destroyTruncationTooltip()};t.prototype.initTruncationTooltip=function(){var t=this;var e;this.destroyTruncationTooltip();if(this.contentEl){var i=this.el.closest(FOCUSABLE_WRAPPER);var n=i===null?[]:i.querySelectorAll("pds-text, pds-chip");var s=false;for(var r=0;r<n.length;r++){var a=n[r];if(a!==this.el&&(a.truncate||a.maxWidth||a.hasAttribute("truncate")||a.hasAttribute("max-width"))){s=true;(e=textsUsingWrapper.get(a))===null||e===void 0?void 0:e()}}var o=i!==null&&!s;this.truncationCleanup=setupTruncationTooltip({hostEl:this.el,contentEl:this.contentEl,getTooltipText:function(){return t.el.textContent||""},manageTabIndex:!o,focusEl:o?i:this.el});if(o)textsUsingWrapper.set(this.el,(function(){return t.initTruncationTooltip()}))}};t.prototype.destroyTruncationTooltip=function(){textsUsingWrapper.delete(this.el);if(this.truncationCleanup){this.truncationCleanup();this.truncationCleanup=null}};t.prototype.render=function(){var t=this;var e=this.tag;var i="\n pds-text\n ".concat(this.align!=null&&this.align.trim()!==""?"pds-text--align-".concat(this.align):"","\n ").concat(this.gutter!=null&&this.gutter.trim()!==""?"pds-text--gutter-".concat(this.gutter):"","\n ").concat(this.size!=null&&this.size.trim()!==""?"pds-text--size-".concat(this.size):"","\n ").concat(this.weight!=null&&this.weight.trim()!==""?"pds-text--weight-".concat(this.weight):"","\n ").concat(this.decoration!=null&&this.decoration.trim()!==""?"pds-text--decoration-".concat(this.decoration):"","\n ");return h(e,{key:"30566c7810d3fd7f76ae281ae6d9a7e66803f0a3",ref:function(e){return t.contentEl=e},style:this.color&&setColor(this.color),class:i,part:"content"},h("slot",{key:"f5113458aa9295803fc1c0bc552f9f92602cacba"}))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{truncate:[{handleTruncateChange:0}],size:[{validateSize:0}]}},enumerable:false,configurable:true});return t}();PdsText.style=pdsTextCss();export{PdsText as pds_text};
1
+ import{r as registerInstance,h,a as getElement}from"./index-4_RRPJTO.js";import{s as setColor}from"./utils-OYK5-nwe.js";import{F as FOCUSABLE_WRAPPER,s as setupTruncationTooltip}from"./truncation-tooltip-DBcPipr9.js";import{TEXT_SIZES}from"./index.js";import"./keep-hydrated-BgNaWLoS.js";import"./floating-ui.dom-Cuc0DYlm.js";import"./portal-target-CKRzRKdO.js";var pdsTextCss=function(){return":host{display:inline}:host([decoration=underline-dotted])>*{-webkit-text-decoration-color:var(--pine-color-text-tertiary);text-decoration-color:var(--pine-color-text-tertiary);-webkit-text-decoration-line:underline;text-decoration-line:underline;-webkit-text-decoration-style:dotted;text-decoration-style:dotted;text-decoration-thickness:12%;text-underline-offset:0.3rem;text-underline-position:under}:host([decoration=strikethrough])>*{text-decoration:line-through}h1{font:var(--pine-typography-heading-1);letter-spacing:var(--pine-letter-spacing-heading-1)}h2{font:var(--pine-typography-heading-2);letter-spacing:var(--pine-letter-spacing-heading-2)}h3{font:var(--pine-typography-heading-3);letter-spacing:var(--pine-letter-spacing-heading-3)}h4{font:var(--pine-typography-heading-4);letter-spacing:var(--pine-letter-spacing-heading-4)}h5{font:var(--pine-typography-heading-5);letter-spacing:var(--pine-letter-spacing-heading-5)}h6{font:var(--pine-typography-heading-6);letter-spacing:var(--pine-letter-spacing-heading-6)}code,em,p,pre,strong{font:var(--pine-typography-body);letter-spacing:var(--pine-letter-spacing)}code,pre{font-family:monospace;letter-spacing:0;line-height:1}em{font-style:normal}strong{font-weight:bolder}:host([truncate]){display:block;min-width:0}:host([truncate])>*{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}:host([italic])>*{font-style:italic}.pds-text{color:var(--color, var(--pine-color-text));margin:var(--pine-dimension-none)}.pds-text--size-2xl{font-size:var(--pine-font-size-body-2xl)}.pds-text--size-xl{font-size:var(--pine-font-size-body-xl)}.pds-text--size-lg{font-size:var(--pine-font-size-body-lg)}.pds-text--size-md{font-size:var(--pine-font-size-body-md)}.pds-text--size-sm{font-size:var(--pine-font-size-body-sm)}.pds-text--size-xs{font-size:var(--pine-font-size-body-xs)}.pds-text--size-2xs{font-size:var(--pine-font-size-body-2xs)}.pds-text--size-h1{font-size:var(--pine-font-size-heading-1)}.pds-text--size-h2{font-size:var(--pine-font-size-heading-2)}.pds-text--size-h3{font-size:var(--pine-font-size-heading-3)}.pds-text--size-h4{font-size:var(--pine-font-size-heading-4)}.pds-text--size-h5{font-size:var(--pine-font-size-heading-5)}.pds-text--size-h6{font-size:var(--pine-font-size-heading-6)}.pds-text--weight-extra-light{font-weight:var(--pine-font-weight-extra-light)}.pds-text--weight-light{font-weight:var(--pine-font-weight-light)}.pds-text--weight-regular{font-weight:var(--pine-font-weight-regular)}.pds-text--weight-medium{font-weight:var(--pine-font-weight-medium)}.pds-text--weight-semibold{font-weight:var(--pine-font-weight-semi-bold)}.pds-text--weight-bold{font-weight:var(--pine-font-weight-bold)}.pds-text--gutter-2xl{-webkit-margin-after:var(--pine-dimension-2xl);margin-block-end:var(--pine-dimension-2xl)}.pds-text--gutter-xl{-webkit-margin-after:var(--pine-dimension-xl);margin-block-end:var(--pine-dimension-xl)}.pds-text--gutter-lg{-webkit-margin-after:var(--pine-dimension-lg);margin-block-end:var(--pine-dimension-lg)}.pds-text--gutter-md{-webkit-margin-after:var(--pine-dimension-md);margin-block-end:var(--pine-dimension-md)}.pds-text--gutter-sm{-webkit-margin-after:var(--pine-dimension-sm);margin-block-end:var(--pine-dimension-sm)}.pds-text--gutter-xs{-webkit-margin-after:var(--pine-dimension-xs);margin-block-end:var(--pine-dimension-xs)}.pds-text--gutter-2xs{-webkit-margin-after:var(--pine-dimension-2xs);margin-block-end:var(--pine-dimension-2xs)}.pds-text--align-start{text-align:start}.pds-text--align-center{text-align:center}.pds-text--align-end{text-align:end}.pds-text--align-justify{text-align:justify}"};var textsUsingWrapper=new WeakMap;var PdsText=function(){function t(t){registerInstance(this,t);this.truncationCleanup=null;this.tag="p"}t.prototype.handleTruncateChange=function(t){if(t){this.initTruncationTooltip()}else{this.destroyTruncationTooltip()}};t.prototype.validateSize=function(t){if(t==null||t===""){return}if(!TEXT_SIZES.includes(t)){var e=t.length>80?"".concat(t.slice(0,80),"…"):t;console.warn('pds-text: invalid size "'.concat(e,'". Valid values are: ').concat(TEXT_SIZES.join(", "),"."))}};t.prototype.componentWillLoad=function(){this.validateSize(this.size)};t.prototype.connectedCallback=function(){if(this.truncate&&this.contentEl){this.initTruncationTooltip()}};t.prototype.componentDidLoad=function(){if(this.truncate){this.initTruncationTooltip()}};t.prototype.disconnectedCallback=function(){this.destroyTruncationTooltip()};t.prototype.initTruncationTooltip=function(){var t=this;var e;this.destroyTruncationTooltip();if(this.contentEl){var i=this.el.closest(FOCUSABLE_WRAPPER);var n=i===null?[]:i.querySelectorAll("pds-text, pds-chip");var s=false;for(var r=0;r<n.length;r++){var a=n[r];if(a!==this.el&&(a.truncate||a.maxWidth||a.hasAttribute("truncate")||a.hasAttribute("max-width"))){s=true;(e=textsUsingWrapper.get(a))===null||e===void 0?void 0:e()}}var o=i!==null&&!s;this.truncationCleanup=setupTruncationTooltip({hostEl:this.el,contentEl:this.contentEl,getTooltipText:function(){return t.el.textContent||""},manageTabIndex:!o,focusEl:o?i:this.el});if(o)textsUsingWrapper.set(this.el,(function(){return t.initTruncationTooltip()}))}};t.prototype.destroyTruncationTooltip=function(){textsUsingWrapper.delete(this.el);if(this.truncationCleanup){this.truncationCleanup();this.truncationCleanup=null}};t.prototype.render=function(){var t=this;var e=this.tag;var i="\n pds-text\n ".concat(this.align!=null&&this.align.trim()!==""?"pds-text--align-".concat(this.align):"","\n ").concat(this.gutter!=null&&this.gutter.trim()!==""?"pds-text--gutter-".concat(this.gutter):"","\n ").concat(this.size!=null&&this.size.trim()!==""?"pds-text--size-".concat(this.size):"","\n ").concat(this.weight!=null&&this.weight.trim()!==""?"pds-text--weight-".concat(this.weight):"","\n ").concat(this.decoration!=null&&this.decoration.trim()!==""?"pds-text--decoration-".concat(this.decoration):"","\n ");return h(e,{key:"30566c7810d3fd7f76ae281ae6d9a7e66803f0a3",ref:function(e){return t.contentEl=e},style:this.color&&setColor(this.color),class:i,part:"content"},h("slot",{key:"f5113458aa9295803fc1c0bc552f9f92602cacba"}))};Object.defineProperty(t.prototype,"el",{get:function(){return getElement(this)},enumerable:false,configurable:true});Object.defineProperty(t,"watchers",{get:function(){return{truncate:[{handleTruncateChange:0}],size:[{validateSize:0}]}},enumerable:false,configurable:true});return t}();PdsText.style=pdsTextCss();export{PdsText as pds_text};
@@ -1 +1 @@
1
- import{__awaiter,__generator}from"tslib";import{p as promiseResolve,g as globalScripts,b as bootstrapLazy}from"./index-4_RRPJTO.js";export{s as setNonce}from"./index-4_RRPJTO.js";import"./keep-hydrated-BgNaWLoS.js";var patchBrowser=function(){var e=import.meta.url;var n={};if(e!==""){n.resourcesUrl=new URL(".",e).href}return promiseResolve(n)};patchBrowser().then((function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,globalScripts()];case 1:n.sent();return[2,bootstrapLazy(JSON.parse('[["pds-multiselect",[[321,"pds-multiselect",{"componentId":[1,"component-id"],"label":[1],"placeholder":[1],"searchPlaceholder":[1,"search-placeholder"],"searchOptionsLabel":[1,"search-options-label"],"selectedItemsLabel":[1,"selected-items-label"],"optionsLabel":[1,"options-label"],"noOptionsFoundLabel":[1,"no-options-found-label"],"createOptionLabel":[1,"create-option-label"],"createOptionAriaLabel":[1,"create-option-aria-label"],"itemRemovedLabel":[1,"item-removed-label"],"pillRemoveLabel":[1,"pill-remove-label"],"selectedCountLabelOne":[1,"selected-count-label-one"],"selectedCountLabelOther":[1,"selected-count-label-other"],"selectedCountLabels":[1,"selected-count-labels"],"closePanelOnSelect":[4,"close-panel-on-select"],"name":[1],"value":[1040],"disabled":[4],"asyncUrl":[1,"async-url"],"asyncMethod":[1,"async-method"],"debounce":[2],"fetchTimeout":[2,"fetch-timeout"],"maxSelections":[2,"max-selections"],"maxHeight":[1,"max-height"],"triggerWidth":[1,"trigger-width"],"minWidth":[1,"min-width"],"panelWidth":[1,"panel-width"],"hideLabel":[4,"hide-label"],"hideSelectedItems":[4,"hide-selected-items"],"selectedDisplay":[1,"selected-display"],"pillPosition":[1,"pill-position"],"maxInlinePills":[2,"max-inline-pills"],"optionDisplay":[1,"option-display"],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"invalid":[4],"required":[4],"loading":[1028],"options":[16],"formatResult":[16],"createUrl":[1,"create-url"],"csrfToken":[1,"csrf-token"],"csrfHeaderName":[1,"csrf-header-name"],"optionActions":[4,"option-actions"],"optionActionLabel":[1,"option-action-label"],"optionActionDescription":[1,"option-action-description"],"isOpen":[32],"searchQuery":[32],"highlightedIndex":[32],"internalOptions":[32],"selectedItems":[32],"currentPage":[32],"hasMore":[32],"creating":[32],"removalAnnouncement":[32],"slottedTriggerEl":[32],"setFocus":[64],"clear":[64],"refreshOptions":[64]},[[6,"keydown","handleWindowKeyDown"]],{"debounce":[{"setupDebounce":0}],"value":[{"valueChanged":0}],"options":[{"optionsChanged":0}],"internalOptions":[{"internalOptionsChanged":0}],"isOpen":[{"isOpenChanged":0}],"disabled":[{"disabledChanged":0}]}]]],["pds-combobox",[[321,"pds-combobox",{"componentId":[1,"component-id"],"name":[513],"customOptionLayouts":[4,"custom-option-layouts"],"customTriggerContent":[4,"custom-trigger-content"],"disabled":[4],"errorMessage":[1,"error-message"],"dropdownPlacement":[1,"dropdown-placement"],"dropdownWidth":[1,"dropdown-width"],"dropdownMount":[1,"dropdown-mount"],"drillInBackLabel":[1,"drill-in-back-label"],"noOptionsFoundLabel":[1,"no-options-found-label"],"flyoutMaxWidth":[1,"flyout-max-width"],"flyoutMinWidth":[1,"flyout-min-width"],"groupDisplay":[1,"group-display"],"helperMessage":[1,"helper-message"],"hideLabel":[4,"hide-label"],"invalid":[4],"label":[1],"maxHeight":[1,"max-height"],"mode":[1],"panelSearch":[4,"panel-search"],"placeholder":[1],"searchOptionsLabel":[1,"search-options-label"],"searchPlaceholder":[1,"search-placeholder"],"trigger":[1],"triggerWidth":[1,"trigger-width"],"triggerVariant":[1,"trigger-variant"],"triggerShape":[1,"trigger-shape"],"truncate":[516],"chipSentiment":[1,"chip-sentiment"],"chipLarge":[4,"chip-large"],"chipIcon":[1,"chip-icon"],"chipDot":[4,"chip-dot"],"value":[1025],"asyncUrl":[1,"async-url"],"asyncMethod":[1,"async-method"],"debounce":[2],"fetchTimeout":[2,"fetch-timeout"],"loading":[1028],"options":[16],"formatResult":[16],"displayText":[32],"filteredItems":[32],"highlightedIndex":[32],"isOpen":[32],"openGroup":[32],"drillDirection":[32],"highlightedGroup":[32],"keyboardNavigating":[32],"revealedGroupLabel":[32],"pointerCanHover":[32],"panelQuery":[32],"flyoutFallback":[32],"selectedOption":[32],"selectedOptionLayoutContent":[32],"selectedOptionChipProps":[32],"internalOptions":[32],"currentPage":[32],"hasMore":[32],"setFocus":[64],"getSelectedValue":[64],"clear":[64]},null,{"groupDisplay":[{"groupDisplayChanged":0}],"openGroup":[{"openGroupChanged":0}],"flyoutFallback":[{"flyoutFallbackChanged":0}],"disabled":[{"disabledChanged":0}],"isOpen":[{"isOpenChanged":0}],"debounce":[{"setupDebounce":0}],"options":[{"optionsChanged":0}],"value":[{"handleValueChange":0}],"selectedOption":[{"handleSelectedOptionChange":0}]}]]],["pds-alert",[[257,"pds-alert",{"componentId":[1,"component-id"],"heading":[1],"small":[4],"dismissible":[4],"hideIcon":[4,"hide-icon"],"variant":[1],"dismissLabel":[1,"dismiss-label"],"severityLabel":[1,"severity-label"],"hasActionsContent":[32]}]]],["pds-copytext",[[1,"pds-copytext",{"border":[1540],"componentId":[1,"component-id"],"fullWidth":[4,"full-width"],"truncate":[4],"value":[1]},null,{"border":[{"restoreBorderDefault":0}],"truncate":[{"handleTruncateChange":0}],"value":[{"handleValueChange":0}]}]]],["pds-table-head",[[257,"pds-table-head",{"indeterminate":[1028],"isSelected":[1028,"is-selected"],"border":[516],"background":[516]}]]],["pds-table-row",[[257,"pds-table-row",{"indeterminate":[1028],"isSelected":[1028,"is-selected"],"hasDivider":[32],"isLastRow":[32]}]]],["pds-datepicker",[[65,"pds-datepicker",{"applyLabel":[1,"apply-label"],"autoApply":[4,"auto-apply"],"cancelLabel":[1,"cancel-label"],"clearable":[4],"clearLabel":[1,"clear-label"],"componentId":[1,"component-id"],"customRangeLabel":[1,"custom-range-label"],"disabled":[4],"endTimeLabel":[1,"end-time-label"],"errorMessage":[1,"error-message"],"firstDayOfWeek":[2,"first-day-of-week"],"format":[1],"fullWidth":[4,"full-width"],"helperMessage":[1,"helper-message"],"hideLabel":[4,"hide-label"],"hourLabel":[1,"hour-label"],"invalid":[4],"invalidDateMessage":[1,"invalid-date-message"],"maxDateMessage":[1,"max-date-message"],"minDateMessage":[1,"min-date-message"],"label":[1],"locale":[1],"max":[1],"min":[1],"minuteIncrement":[2,"minute-increment"],"minuteLabel":[1,"minute-label"],"monthLabel":[1,"month-label"],"name":[1],"nextMonthLabel":[1,"next-month-label"],"periodLabel":[1,"period-label"],"placeholder":[1],"placement":[1],"presets":[1],"presetsLabel":[1,"presets-label"],"previousMonthLabel":[1,"previous-month-label"],"range":[4],"readonly":[4],"required":[4],"showDropdowns":[4,"show-dropdowns"],"startTimeLabel":[1,"start-time-label"],"timePicker":[4,"time-picker"],"timeLabel":[1,"time-label"],"triggerLabel":[1,"trigger-label"],"value":[1025],"yearLabel":[1,"year-label"],"isOpen":[32],"text":[32],"textError":[32],"activeDate":[32],"viewMonth":[32],"draftStart":[32],"draftEnd":[32],"startTime":[32],"endTime":[32],"previewDate":[32],"open":[64],"close":[64],"setFocus":[64]},null,{"value":[{"valueChanged":0}],"format":[{"contextChanged":0}],"locale":[{"contextChanged":0}],"timePicker":[{"contextChanged":0}],"range":[{"contextChanged":0}],"min":[{"contextChanged":0}],"max":[{"contextChanged":0}],"placement":[{"placementChanged":0}],"required":[{"requiredChanged":0}],"disabled":[{"interactivityChanged":0}],"readonly":[{"interactivityChanged":0}]}]]],["pds-dropdown-menu-item",[[257,"pds-dropdown-menu-item",{"componentId":[1,"component-id"],"destructive":[4],"disabled":[516],"download":[1],"href":[1],"informational":[516],"external":[516],"externalLabel":[1,"external-label"],"target":[513],"hasFocus":[32],"clickItem":[64]}]]],["pds-property",[[257,"pds-property",{"componentId":[1,"component-id"],"icon":[1]}]]],["pds-accordion",[[257,"pds-accordion",{"componentId":[1,"component-id"],"isOpen":[1540,"open"]},null,{"isOpen":[{"handleOpenState":0}]}]]],["pds-avatar",[[1,"pds-avatar",{"alt":[1],"badge":[4],"badgeLabel":[1,"badge-label"],"componentId":[1,"component-id"],"dropdown":[4],"image":[1],"initials":[1],"size":[1537],"status":[513],"statusLabel":[1,"status-label"],"statusRing":[4,"status-ring"],"variant":[1537],"triggerLabel":[1,"trigger-label"]},null,{"size":[{"restoreSizeDefault":0}],"variant":[{"restoreVariantDefault":0}]}]]],["pds-drawer",[[260,"pds-drawer",{"componentId":[1,"component-id"],"open":[1028],"side":[1],"size":[1],"scrollable":[4],"modal":[4],"lightDismiss":[4,"light-dismiss"],"initialFocus":[1,"initial-focus"]},[[0,"pdsModalClose","handleModalClose"],[0,"pdsModalOpen","handleModalOpen"],[5,"pointerdown","handleOutsidePointerDown"]]]]],["pds-dropdown-menu",[[257,"pds-dropdown-menu",{"componentId":[1,"component-id"],"placement":[1],"currentFocusIndex":[32],"hasHeader":[32]},[[6,"keydown","handleEscapeKeyDown"],[8,"keydown","handleKeyDown"],[8,"click","handleWindowClick"]]]]],["pds-filter",[[257,"pds-filter",{"componentId":[1,"component-id"],"variant":[1],"icon":[1],"text":[1],"isOpen":[32],"showFilter":[64],"hideFilter":[64]},[[9,"resize","handleWindowResize"],[9,"scroll","handleWindowScroll"],[4,"toggle","handlePopoverToggle"],[4,"click","handleDocumentClick"],[4,"keydown","handleEscapeKey"]]]]],["pds-radio",[[262,"pds-radio",{"checked":[4],"componentId":[1,"component-id"],"disabled":[4],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"hasBorder":[4,"has-border"],"invalid":[4],"label":[1],"hideLabel":[4,"hide-label"],"name":[1],"required":[4],"value":[1],"variant":[1],"_hasImage":[32]}]]],["pds-radio-group",[[262,"pds-radio-group",{"componentId":[1,"component-id"],"direction":[1],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"gap":[1],"disabled":[4],"invalid":[4],"groupLabel":[1,"group-label"],"name":[1],"required":[4]},[[0,"change","handleRadioChange"]],{"name":[{"handlePropsChange":0}],"disabled":[{"handlePropsChange":0}],"invalid":[{"handlePropsChange":0}],"required":[{"handlePropsChange":0}]}]]],["pds-select",[[321,"pds-select",{"autocomplete":[1],"componentId":[1,"component-id"],"disabled":[4],"errorMessage":[1,"error-message"],"hideLabel":[4,"hide-label"],"helperMessage":[1,"helper-message"],"invalid":[4],"label":[1],"multiple":[4],"name":[1],"required":[4],"highlight":[516],"value":[1025]},null,{"value":[{"valueChanged":0}],"multiple":[{"multipleChanged":0}]}]]],["pds-sortable-item",[[262,"pds-sortable-item",{"enableActions":[4,"enable-actions"],"componentId":[1,"component-id"],"showHandle":[1028,"show-handle"]}]]],["pds-switch",[[321,"pds-switch",{"componentId":[1,"component-id"],"checked":[1028],"disabled":[4],"errorMessage":[1,"error-message"],"hideLabel":[4,"hide-label"],"helperMessage":[1,"helper-message"],"invalid":[4],"label":[1],"name":[1],"required":[4],"value":[1],"hasLabelSlot":[32]},null,{"checked":[{"checkedChanged":0}]}]]],["pds-textarea",[[321,"pds-textarea",{"autocomplete":[1],"componentId":[1,"component-id"],"disabled":[4],"debounce":[2],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"invalid":[1028],"label":[1],"hideLabel":[4,"hide-label"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"maxLength":[514,"max-length"],"highlight":[516],"value":[1025],"characterCountLabel":[1,"character-count-label"],"hasFocus":[32],"hasAction":[32],"setFocus":[64]},null,{"debounce":[{"debounceChanged":0}],"value":[{"valueChanged":0}],"maxLength":[{"maxLengthChanged":0}]}]]],["pds-toast",[[257,"pds-toast",{"componentId":[1,"component-id"],"dismissible":[4],"duration":[2],"icon":[1],"type":[1],"dismissLabel":[1,"dismiss-label"],"severityLabel":[1,"severity-label"],"isVisible":[32],"isAnimatingOut":[32],"dismiss":[64]},null,{"duration":[{"handleDurationChange":0}]}]]],["mock-pds-modal",[[260,"mock-pds-modal",{"componentId":[1,"component-id"],"size":[1],"scrollable":[4],"backdropDismiss":[4,"backdrop-dismiss"],"open":[1028],"showModal":[64],"hideModal":[64]}]]],["pds-container",[[257,"pds-container",{"size":[1],"tag":[1],"centered":[4]}]]],["pds-divider",[[1,"pds-divider",{"componentId":[1,"component-id"],"label":[1],"offset":[1],"vertical":[4]}]]],["pds-drawer-content",[[260,"pds-drawer-content"]]],["pds-drawer-footer",[[260,"pds-drawer-footer"]]],["pds-drawer-header",[[260,"pds-drawer-header"]]],["pds-dropdown-menu-separator",[[1,"pds-dropdown-menu-separator",{"componentId":[1,"component-id"],"disabled":[4]}]]],["pds-filters",[[257,"pds-filters",{"componentId":[1,"component-id"]}]]],["pds-image",[[1,"pds-image",{"alt":[1],"componentId":[1,"component-id"],"height":[2],"loading":[1],"sizes":[1],"src":[1],"srcset":[1],"width":[2]}]]],["pds-modal-content",[[260,"pds-modal-content",{"border":[1537],"contentMaxHeight":[32]}]]],["pds-modal-footer",[[260,"pds-modal-footer"]]],["pds-modal-header",[[260,"pds-modal-header"]]],["pds-popover",[[257,"pds-popover",{"popoverTargetAction":[1,"popover-target-action"],"openOn":[1,"open-on"],"popoverType":[1,"popover-type"],"componentId":[1,"component-id"],"maxWidth":[2,"max-width"],"padding":[1],"placement":[1537],"active":[32],"show":[64],"hide":[64],"toggle":[64]},null,{"openOn":[{"openOnChanged":0}],"padding":[{"applyPadding":0}],"placement":[{"restorePlacementDefault":0}]}]]],["pds-progress",[[1,"pds-progress",{"animated":[4],"componentId":[1,"component-id"],"fillColor":[1,"fill-color"],"label":[1],"percent":[2],"showPercent":[4,"show-percent"]}]]],["pds-row",[[0,"pds-row",{"alignItems":[1,"align-items"],"border":[4],"colGap":[1,"col-gap"],"colGapBlock":[1,"col-gap-block"],"colGapInline":[1,"col-gap-inline"],"componentId":[1,"component-id"],"justifyContent":[1,"justify-content"],"minHeight":[1,"min-height"],"noWrap":[4,"no-wrap"]}]]],["pds-sortable",[[262,"pds-sortable",{"border":[516],"disabled":[516],"componentId":[1,"component-id"],"dividers":[516],"handleType":[1,"handle-type"]},null,{"disabled":[{"handleDisabledChange":0}]}]]],["pds-tab",[[260,"pds-tab",{"disabled":[4],"href":[1],"active":[4],"target":[1],"turboFrame":[1,"turbo-frame"],"turboAction":[1,"turbo-action"],"name":[1],"parentComponentId":[1,"parent-component-id"],"variant":[1],"index":[2],"selected":[4],"navMode":[4,"nav-mode"]}]]],["pds-table",[[257,"pds-table",{"compact":[4],"componentId":[1,"component-id"],"responsive":[4],"fixedColumn":[4,"fixed-column"],"selectable":[4],"disableSelectAll":[4,"disable-select-all"],"rowDividers":[516,"row-dividers"],"defaultSortColumn":[1,"default-sort-column"],"defaultSortDirection":[1,"default-sort-direction"],"sortingColumn":[32],"sortingDirection":[32]},[[0,"pdsTableSort","handleTableSort"],[0,"pdsTableSelectAll","handleTableSelectAll"],[0,"pdsTableRowSelected","handleTableSelect"]]]]],["pds-table-body",[[257,"pds-table-body"]]],["pds-tabpanel",[[260,"pds-tabpanel",{"name":[1],"parentComponentId":[1,"parent-component-id"],"variant":[1],"selected":[1028],"stretch":[4]}]]],["pds-tabs",[[257,"pds-tabs",{"tablistLabel":[1,"tablist-label"],"componentId":[1,"component-id"],"variant":[1],"divider":[4],"stretch":[4],"nav":[4],"activeTabName":[1025,"active-tab-name"],"activeTabIndex":[1026,"active-tab-index"]},[[16,"pdsTabClick","tabClickHandler"],[0,"keydown","handleKeyDown"]]]]],["pds-tooltip",[[260,"pds-tooltip",{"content":[1],"componentId":[1,"component-id"],"hasArrow":[4,"has-arrow"],"htmlContent":[4,"html-content"],"placement":[513],"maxWidth":[1,"max-width"],"opened":[1540],"_isInteractiveOpen":[32],"showTooltip":[64],"hideTooltip":[64]},null,{"opened":[{"handleOpenToggle":0}]}]]],["pds-button",[[273,"pds-button",{"componentId":[1,"component-id"],"download":[1],"disabled":[516],"fullWidth":[4,"full-width"],"href":[1],"icon":[1],"iconOnly":[4,"icon-only"],"loading":[4],"name":[1],"target":[1],"type":[1],"value":[1],"size":[1],"variant":[1],"hasStartContent":[32],"hasEndContent":[32],"forwardedAria":[32]},[[16,"keydown","handleFormKeyDown"]]]]],["pds-input",[[321,"pds-input",{"autocomplete":[1],"componentId":[1,"component-id"],"debounce":[2],"disabled":[4],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"invalid":[4],"label":[1],"hideLabel":[4,"hide-label"],"max":[1],"maxlength":[1],"min":[1],"minlength":[1],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"step":[1],"type":[1],"value":[1032],"fullWidth":[4,"full-width"],"highlight":[516],"hasPrefix":[32],"hasSuffix":[32],"hasPrepend":[32],"hasAppend":[32],"hasAction":[32],"hasFocus":[32],"setFocus":[64]},null,{"debounce":[{"debounceChanged":0}],"value":[{"valueChanged":0}]}]]],["pds-link",[[257,"pds-link",{"active":[516],"color":[1],"download":[1],"componentId":[1,"component-id"],"external":[4],"externalLabel":[1,"external-label"],"target":[1],"variant":[1],"fontSize":[1,"font-size"],"href":[1],"turbo":[1],"turboFrame":[1,"turbo-frame"],"turboAction":[1,"turbo-action"],"turboMethod":[1,"turbo-method"],"turboConfirm":[1,"turbo-confirm"],"turboStream":[1,"turbo-stream"],"turboPrefetch":[1,"turbo-prefetch"],"turboPreload":[1,"turbo-preload"]}]]],["pds-table-head-cell",[[257,"pds-table-head-cell",{"cellAlign":[1,"cell-align"],"sortable":[4],"sortingDirection":[32],"tableScrolling":[32],"isSelected":[32],"hasHeadBorder":[32],"hasHeadBackground":[32],"isActive":[32],"setActiveSort":[64],"clearActiveSort":[64]}]]],["pds-modal",[[260,"pds-modal",{"backdropDismiss":[4,"backdrop-dismiss"],"componentId":[1,"component-id"],"open":[1028],"size":[1],"scrollable":[4],"disableTopLayer":[4,"disable-top-layer"],"disableInitialFocus":[4,"disable-initial-focus"],"focusableElementsArray":[32],"showModal":[64],"hideModal":[64]},null,{"size":[{"sizeChanged":0}],"open":[{"handleOpenChange":0}]}]]],["pds-table-cell",[[257,"pds-table-cell",{"cellAlign":[1,"cell-align"],"truncate":[4],"tableScrolling":[32]},null,{"truncate":[{"handleTruncateChange":0}]}]]],["pds-chip",[[257,"pds-chip",{"componentId":[1,"component-id"],"dot":[4],"dotColor":[1,"dot-color"],"icon":[1],"iconColor":[1,"icon-color"],"size":[1],"sentiment":[1],"variant":[1],"removeUrl":[1,"remove-url"],"removeHttpMethod":[1,"remove-http-method"],"removeTarget":[1,"remove-target"],"dismissLabel":[1,"dismiss-label"],"maxWidth":[513,"max-width"]}]]],["pds-text",[[257,"pds-text",{"align":[1],"color":[1],"decoration":[1],"gutter":[1],"italic":[4],"size":[1],"weight":[1],"tag":[1],"truncate":[516]},null,{"truncate":[{"handleTruncateChange":0}],"size":[{"validateSize":0}]}]]],["pds-icon",[[1,"pds-icon",{"color":[1],"flipRtl":[4,"flip-rtl"],"icon":[8],"name":[513],"size":[513],"src":[1],"inheritedAttributes":[32],"isFocusable":[32],"isVisible":[32],"svgContent":[32]},null,{"size":[{"updateStyles":0}],"color":[{"updateStyles":0}],"name":[{"onIconPropertyChange":0}],"src":[{"onIconPropertyChange":0}],"icon":[{"onIconPropertyChange":0}]}]]],["pds-checkbox",[[321,"pds-checkbox",{"checked":[1028],"componentId":[1,"component-id"],"disabled":[4],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"indeterminate":[1028],"invalid":[4],"label":[1],"hideLabel":[4,"hide-label"],"name":[1],"required":[4],"value":[1],"variant":[1],"hasLabelSlot":[32]},null,{"checked":[{"updateIndeterminate":0},{"checkedChanged":0}]}]]],["pds-loader",[[257,"pds-loader",{"isLoading":[4,"is-loading"],"showLabel":[4,"show-label"],"size":[1537],"variant":[1]},null,{"size":[{"restoreSizeDefault":0}]}]]],["pds-box",[[0,"pds-box",{"alignItems":[1,"align-items"],"alignItemsXs":[1,"align-items-xs"],"alignItemsSm":[1,"align-items-sm"],"alignItemsMd":[1,"align-items-md"],"alignItemsLg":[1,"align-items-lg"],"alignItemsXl":[1,"align-items-xl"],"alignSelf":[1,"align-self"],"alignSelfXs":[1,"align-self-xs"],"alignSelfSm":[1,"align-self-sm"],"alignSelfMd":[1,"align-self-md"],"alignSelfLg":[1,"align-self-lg"],"alignSelfXl":[1,"align-self-xl"],"auto":[4],"autoXs":[4,"auto-xs"],"autoSm":[4,"auto-sm"],"autoMd":[4,"auto-md"],"autoLg":[4,"auto-lg"],"autoXl":[4,"auto-xl"],"backgroundColor":[1,"background-color"],"border":[4],"borderBlockEnd":[4,"border-block-end"],"borderBlockStart":[4,"border-block-start"],"borderColor":[1,"border-color"],"borderInlineEnd":[4,"border-inline-end"],"borderInlineStart":[4,"border-inline-start"],"borderRadius":[1,"border-radius"],"direction":[1],"display":[1],"fit":[4],"fitXs":[4,"fit-xs"],"fitSm":[4,"fit-sm"],"fitMd":[4,"fit-md"],"fitLg":[4,"fit-lg"],"fitXl":[4,"fit-xl"],"gap":[1],"gapXs":[1,"gap-xs"],"gapSm":[1,"gap-sm"],"gapMd":[1,"gap-md"],"gapLg":[1,"gap-lg"],"gapXl":[1,"gap-xl"],"wrap":[4],"wrapXs":[4,"wrap-xs"],"wrapSm":[4,"wrap-sm"],"wrapMd":[4,"wrap-md"],"wrapLg":[4,"wrap-lg"],"wrapXl":[4,"wrap-xl"],"flex":[1],"justifyContent":[1,"justify-content"],"justifyContentXs":[1,"justify-content-xs"],"justifyContentSm":[1,"justify-content-sm"],"justifyContentMd":[1,"justify-content-md"],"justifyContentLg":[1,"justify-content-lg"],"justifyContentXl":[1,"justify-content-xl"],"marginBlockStart":[1,"margin-block-start"],"marginBlockStartXs":[1,"margin-block-start-xs"],"marginBlockStartSm":[1,"margin-block-start-sm"],"marginBlockStartMd":[1,"margin-block-start-md"],"marginBlockStartLg":[1,"margin-block-start-lg"],"marginBlockStartXl":[1,"margin-block-start-xl"],"marginInlineStart":[1,"margin-inline-start"],"marginInlineStartXs":[1,"margin-inline-start-xs"],"marginInlineStartSm":[1,"margin-inline-start-sm"],"marginInlineStartMd":[1,"margin-inline-start-md"],"marginInlineStartLg":[1,"margin-inline-start-lg"],"marginInlineStartXl":[1,"margin-inline-start-xl"],"marginInlineEnd":[1,"margin-inline-end"],"marginInlineEndXs":[1,"margin-inline-end-xs"],"marginInlineEndSm":[1,"margin-inline-end-sm"],"marginInlineEndMd":[1,"margin-inline-end-md"],"marginInlineEndLg":[1,"margin-inline-end-lg"],"marginInlineEndXl":[1,"margin-inline-end-xl"],"marginBlockEnd":[1,"margin-block-end"],"marginBlockEndXs":[1,"margin-block-end-xs"],"marginBlockEndSm":[1,"margin-block-end-sm"],"marginBlockEndMd":[1,"margin-block-end-md"],"marginBlockEndLg":[1,"margin-block-end-lg"],"marginBlockEndXl":[1,"margin-block-end-xl"],"minHeight":[513,"min-height"],"minWidth":[513,"min-width"],"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"padding":[1],"paddingXs":[1,"padding-xs"],"paddingSm":[1,"padding-sm"],"paddingMd":[1,"padding-md"],"paddingLg":[1,"padding-lg"],"paddingXl":[1,"padding-xl"],"paddingBlockStart":[1,"padding-block-start"],"paddingBlockStartXs":[1,"padding-block-start-xs"],"paddingBlockStartSm":[1,"padding-block-start-sm"],"paddingBlockStartMd":[1,"padding-block-start-md"],"paddingBlockStartLg":[1,"padding-block-start-lg"],"paddingBlockStartXl":[1,"padding-block-start-xl"],"paddingBlockEnd":[1,"padding-block-end"],"paddingBlockEndXs":[1,"padding-block-end-xs"],"paddingBlockEndSm":[1,"padding-block-end-sm"],"paddingBlockEndMd":[1,"padding-block-end-md"],"paddingBlockEndLg":[1,"padding-block-end-lg"],"paddingBlockEndXl":[1,"padding-block-end-xl"],"paddingInlineStart":[1,"padding-inline-start"],"paddingInlineStartXs":[1,"padding-inline-start-xs"],"paddingInlineStartSm":[1,"padding-inline-start-sm"],"paddingInlineStartMd":[1,"padding-inline-start-md"],"paddingInlineStartLg":[1,"padding-inline-start-lg"],"paddingInlineStartXl":[1,"padding-inline-start-xl"],"paddingInlineEnd":[1,"padding-inline-end"],"paddingInlineEndXs":[1,"padding-inline-end-xs"],"paddingInlineEndSm":[1,"padding-inline-end-sm"],"paddingInlineEndMd":[1,"padding-inline-end-md"],"paddingInlineEndLg":[1,"padding-inline-end-lg"],"paddingInlineEndXl":[1,"padding-inline-end-xl"],"shadow":[1],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]}]]]]'),e)]}}))}))}));
1
+ import{__awaiter,__generator}from"tslib";import{p as promiseResolve,g as globalScripts,b as bootstrapLazy}from"./index-4_RRPJTO.js";export{s as setNonce}from"./index-4_RRPJTO.js";import"./keep-hydrated-BgNaWLoS.js";var patchBrowser=function(){var e=import.meta.url;var n={};if(e!==""){n.resourcesUrl=new URL(".",e).href}return promiseResolve(n)};patchBrowser().then((function(e){return __awaiter(void 0,void 0,void 0,(function(){return __generator(this,(function(n){switch(n.label){case 0:return[4,globalScripts()];case 1:n.sent();return[2,bootstrapLazy(JSON.parse('[["pds-multiselect",[[321,"pds-multiselect",{"componentId":[1,"component-id"],"label":[1],"placeholder":[1],"searchPlaceholder":[1,"search-placeholder"],"searchOptionsLabel":[1,"search-options-label"],"selectedItemsLabel":[1,"selected-items-label"],"optionsLabel":[1,"options-label"],"noOptionsFoundLabel":[1,"no-options-found-label"],"createOptionLabel":[1,"create-option-label"],"createOptionAriaLabel":[1,"create-option-aria-label"],"itemRemovedLabel":[1,"item-removed-label"],"pillRemoveLabel":[1,"pill-remove-label"],"selectedCountLabelOne":[1,"selected-count-label-one"],"selectedCountLabelOther":[1,"selected-count-label-other"],"selectedCountLabels":[1,"selected-count-labels"],"closePanelOnSelect":[4,"close-panel-on-select"],"name":[1],"value":[1040],"disabled":[4],"asyncUrl":[1,"async-url"],"asyncMethod":[1,"async-method"],"debounce":[2],"fetchTimeout":[2,"fetch-timeout"],"maxSelections":[2,"max-selections"],"maxHeight":[1,"max-height"],"triggerWidth":[1,"trigger-width"],"minWidth":[1,"min-width"],"panelWidth":[1,"panel-width"],"hideLabel":[4,"hide-label"],"hideSelectedItems":[4,"hide-selected-items"],"selectedDisplay":[1,"selected-display"],"pillPosition":[1,"pill-position"],"maxInlinePills":[2,"max-inline-pills"],"optionDisplay":[1,"option-display"],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"invalid":[4],"required":[4],"loading":[1028],"options":[16],"formatResult":[16],"createUrl":[1,"create-url"],"csrfToken":[1,"csrf-token"],"csrfHeaderName":[1,"csrf-header-name"],"optionActions":[4,"option-actions"],"optionActionLabel":[1,"option-action-label"],"optionActionDescription":[1,"option-action-description"],"isOpen":[32],"searchQuery":[32],"highlightedIndex":[32],"internalOptions":[32],"selectedItems":[32],"currentPage":[32],"hasMore":[32],"creating":[32],"removalAnnouncement":[32],"slottedTriggerEl":[32],"setFocus":[64],"clear":[64],"refreshOptions":[64]},[[6,"keydown","handleWindowKeyDown"]],{"debounce":[{"setupDebounce":0}],"value":[{"valueChanged":0}],"options":[{"optionsChanged":0}],"internalOptions":[{"internalOptionsChanged":0}],"isOpen":[{"isOpenChanged":0}],"disabled":[{"disabledChanged":0}]}]]],["pds-combobox",[[321,"pds-combobox",{"componentId":[1,"component-id"],"name":[513],"customOptionLayouts":[4,"custom-option-layouts"],"customTriggerContent":[4,"custom-trigger-content"],"disabled":[4],"errorMessage":[1,"error-message"],"dropdownPlacement":[1,"dropdown-placement"],"dropdownWidth":[1,"dropdown-width"],"dropdownMount":[1,"dropdown-mount"],"drillInBackLabel":[1,"drill-in-back-label"],"noOptionsFoundLabel":[1,"no-options-found-label"],"flyoutMaxWidth":[1,"flyout-max-width"],"flyoutMinWidth":[1,"flyout-min-width"],"groupDisplay":[1,"group-display"],"helperMessage":[1,"helper-message"],"hideLabel":[4,"hide-label"],"invalid":[4],"label":[1],"maxHeight":[1,"max-height"],"mode":[1],"panelSearch":[4,"panel-search"],"placeholder":[1],"searchOptionsLabel":[1,"search-options-label"],"searchPlaceholder":[1,"search-placeholder"],"trigger":[1],"triggerWidth":[1,"trigger-width"],"triggerVariant":[1,"trigger-variant"],"triggerShape":[1,"trigger-shape"],"truncate":[516],"chipSentiment":[1,"chip-sentiment"],"chipLarge":[4,"chip-large"],"chipIcon":[1,"chip-icon"],"chipDot":[4,"chip-dot"],"value":[1025],"asyncUrl":[1,"async-url"],"asyncMethod":[1,"async-method"],"debounce":[2],"fetchTimeout":[2,"fetch-timeout"],"loading":[1028],"options":[16],"formatResult":[16],"displayText":[32],"filteredItems":[32],"highlightedIndex":[32],"isOpen":[32],"openGroup":[32],"drillDirection":[32],"highlightedGroup":[32],"keyboardNavigating":[32],"revealedGroupLabel":[32],"pointerCanHover":[32],"panelQuery":[32],"flyoutFallback":[32],"selectedOption":[32],"selectedOptionLayoutContent":[32],"selectedOptionChipProps":[32],"internalOptions":[32],"currentPage":[32],"hasMore":[32],"setFocus":[64],"getSelectedValue":[64],"clear":[64]},null,{"groupDisplay":[{"groupDisplayChanged":0}],"openGroup":[{"openGroupChanged":0}],"flyoutFallback":[{"flyoutFallbackChanged":0}],"disabled":[{"disabledChanged":0}],"isOpen":[{"isOpenChanged":0}],"debounce":[{"setupDebounce":0}],"options":[{"optionsChanged":0}],"value":[{"handleValueChange":0}],"selectedOption":[{"handleSelectedOptionChange":0}]}]]],["pds-alert",[[257,"pds-alert",{"componentId":[1,"component-id"],"heading":[1],"small":[4],"dismissible":[4],"hideIcon":[4,"hide-icon"],"variant":[1],"dismissLabel":[1,"dismiss-label"],"severityLabel":[1,"severity-label"],"hasActionsContent":[32]}]]],["pds-copytext",[[1,"pds-copytext",{"border":[1540],"componentId":[1,"component-id"],"fullWidth":[4,"full-width"],"truncate":[4],"value":[1]},null,{"border":[{"restoreBorderDefault":0}],"truncate":[{"handleTruncateChange":0}],"value":[{"handleValueChange":0}]}]]],["pds-table-head",[[257,"pds-table-head",{"indeterminate":[1028],"isSelected":[1028,"is-selected"],"border":[516],"background":[516]}]]],["pds-table-row",[[257,"pds-table-row",{"indeterminate":[1028],"isSelected":[1028,"is-selected"],"hasDivider":[32],"isLastRow":[32]}]]],["pds-datepicker",[[65,"pds-datepicker",{"applyLabel":[1,"apply-label"],"autoApply":[4,"auto-apply"],"cancelLabel":[1,"cancel-label"],"clearable":[4],"clearLabel":[1,"clear-label"],"componentId":[1,"component-id"],"customRangeLabel":[1,"custom-range-label"],"disabled":[4],"endTimeLabel":[1,"end-time-label"],"errorMessage":[1,"error-message"],"firstDayOfWeek":[2,"first-day-of-week"],"format":[1],"fullWidth":[4,"full-width"],"helperMessage":[1,"helper-message"],"hideLabel":[4,"hide-label"],"hourLabel":[1,"hour-label"],"invalid":[4],"invalidDateMessage":[1,"invalid-date-message"],"maxDateMessage":[1,"max-date-message"],"minDateMessage":[1,"min-date-message"],"label":[1],"locale":[1],"max":[1],"min":[1],"minuteIncrement":[2,"minute-increment"],"minuteLabel":[1,"minute-label"],"monthLabel":[1,"month-label"],"name":[1],"nextMonthLabel":[1,"next-month-label"],"periodLabel":[1,"period-label"],"placeholder":[1],"placement":[1],"presets":[1],"presetsLabel":[1,"presets-label"],"previousMonthLabel":[1,"previous-month-label"],"range":[4],"readonly":[4],"required":[4],"showDropdowns":[4,"show-dropdowns"],"startTimeLabel":[1,"start-time-label"],"timePicker":[4,"time-picker"],"timeLabel":[1,"time-label"],"triggerLabel":[1,"trigger-label"],"value":[1025],"yearLabel":[1,"year-label"],"isOpen":[32],"text":[32],"textError":[32],"activeDate":[32],"viewMonth":[32],"draftStart":[32],"draftEnd":[32],"startTime":[32],"endTime":[32],"previewDate":[32],"open":[64],"close":[64],"setFocus":[64]},null,{"value":[{"valueChanged":0}],"format":[{"contextChanged":0}],"locale":[{"contextChanged":0}],"timePicker":[{"contextChanged":0}],"range":[{"contextChanged":0}],"min":[{"contextChanged":0}],"max":[{"contextChanged":0}],"placement":[{"placementChanged":0}],"required":[{"requiredChanged":0}],"disabled":[{"interactivityChanged":0}],"readonly":[{"interactivityChanged":0}]}]]],["pds-dropdown-menu-item",[[257,"pds-dropdown-menu-item",{"componentId":[1,"component-id"],"destructive":[4],"disabled":[516],"download":[1],"href":[1],"informational":[516],"external":[516],"externalLabel":[1,"external-label"],"target":[513],"hasFocus":[32],"clickItem":[64]}]]],["pds-property",[[257,"pds-property",{"componentId":[1,"component-id"],"icon":[1]}]]],["pds-accordion",[[257,"pds-accordion",{"componentId":[1,"component-id"],"isOpen":[1540,"open"]},null,{"isOpen":[{"handleOpenState":0}]}]]],["pds-avatar",[[1,"pds-avatar",{"alt":[1],"badge":[4],"badgeLabel":[1,"badge-label"],"componentId":[1,"component-id"],"dropdown":[4],"image":[1],"initials":[1],"size":[1537],"status":[513],"statusLabel":[1,"status-label"],"statusRing":[4,"status-ring"],"variant":[1537],"triggerLabel":[1,"trigger-label"]},null,{"size":[{"restoreSizeDefault":0}],"variant":[{"restoreVariantDefault":0}]}]]],["pds-drawer",[[260,"pds-drawer",{"componentId":[1,"component-id"],"open":[1028],"side":[1],"size":[1],"scrollable":[4],"modal":[4],"lightDismiss":[4,"light-dismiss"],"initialFocus":[1,"initial-focus"]},[[0,"pdsModalClose","handleModalClose"],[0,"pdsModalOpen","handleModalOpen"],[5,"pointerdown","handleOutsidePointerDown"]]]]],["pds-dropdown-menu",[[257,"pds-dropdown-menu",{"componentId":[1,"component-id"],"placement":[1],"currentFocusIndex":[32],"hasHeader":[32]},[[6,"keydown","handleEscapeKeyDown"],[6,"keydown","handleTabKeyDown"],[8,"keydown","handleKeyDown"],[8,"click","handleWindowClick"]]]]],["pds-filter",[[257,"pds-filter",{"componentId":[1,"component-id"],"variant":[1],"icon":[1],"text":[1],"isOpen":[32],"showFilter":[64],"hideFilter":[64]},[[9,"resize","handleWindowResize"],[9,"scroll","handleWindowScroll"],[4,"toggle","handlePopoverToggle"],[4,"click","handleDocumentClick"],[4,"keydown","handleEscapeKey"]]]]],["pds-radio",[[262,"pds-radio",{"checked":[4],"componentId":[1,"component-id"],"disabled":[4],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"hasBorder":[4,"has-border"],"invalid":[4],"label":[1],"hideLabel":[4,"hide-label"],"name":[1],"required":[4],"value":[1],"variant":[1],"_hasImage":[32]}]]],["pds-radio-group",[[262,"pds-radio-group",{"componentId":[1,"component-id"],"direction":[1],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"gap":[1],"disabled":[4],"invalid":[4],"groupLabel":[1,"group-label"],"name":[1],"required":[4]},[[0,"change","handleRadioChange"]],{"name":[{"handlePropsChange":0}],"disabled":[{"handlePropsChange":0}],"invalid":[{"handlePropsChange":0}],"required":[{"handlePropsChange":0}]}]]],["pds-select",[[321,"pds-select",{"autocomplete":[1],"componentId":[1,"component-id"],"disabled":[4],"errorMessage":[1,"error-message"],"hideLabel":[4,"hide-label"],"helperMessage":[1,"helper-message"],"invalid":[4],"label":[1],"multiple":[4],"name":[1],"required":[4],"highlight":[516],"value":[1025]},null,{"value":[{"valueChanged":0}],"multiple":[{"multipleChanged":0}]}]]],["pds-sortable-item",[[262,"pds-sortable-item",{"enableActions":[4,"enable-actions"],"componentId":[1,"component-id"],"showHandle":[1028,"show-handle"]}]]],["pds-switch",[[321,"pds-switch",{"componentId":[1,"component-id"],"checked":[1028],"disabled":[4],"errorMessage":[1,"error-message"],"hideLabel":[4,"hide-label"],"helperMessage":[1,"helper-message"],"invalid":[4],"label":[1],"name":[1],"required":[4],"value":[1],"hasLabelSlot":[32]},null,{"checked":[{"checkedChanged":0}]}]]],["pds-textarea",[[321,"pds-textarea",{"autocomplete":[1],"componentId":[1,"component-id"],"disabled":[4],"debounce":[2],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"invalid":[1028],"label":[1],"hideLabel":[4,"hide-label"],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"rows":[2],"maxLength":[514,"max-length"],"highlight":[516],"value":[1025],"characterCountLabel":[1,"character-count-label"],"hasFocus":[32],"hasAction":[32],"setFocus":[64]},null,{"debounce":[{"debounceChanged":0}],"value":[{"valueChanged":0}],"maxLength":[{"maxLengthChanged":0}]}]]],["pds-toast",[[257,"pds-toast",{"componentId":[1,"component-id"],"dismissible":[4],"duration":[2],"icon":[1],"type":[1],"dismissLabel":[1,"dismiss-label"],"severityLabel":[1,"severity-label"],"isVisible":[32],"isAnimatingOut":[32],"dismiss":[64]},null,{"duration":[{"handleDurationChange":0}]}]]],["mock-pds-modal",[[260,"mock-pds-modal",{"componentId":[1,"component-id"],"size":[1],"scrollable":[4],"backdropDismiss":[4,"backdrop-dismiss"],"open":[1028],"showModal":[64],"hideModal":[64]}]]],["pds-container",[[257,"pds-container",{"size":[1],"tag":[1],"centered":[4]}]]],["pds-divider",[[1,"pds-divider",{"componentId":[1,"component-id"],"label":[1],"offset":[1],"vertical":[4]}]]],["pds-drawer-content",[[260,"pds-drawer-content"]]],["pds-drawer-footer",[[260,"pds-drawer-footer"]]],["pds-drawer-header",[[260,"pds-drawer-header"]]],["pds-dropdown-menu-separator",[[1,"pds-dropdown-menu-separator",{"componentId":[1,"component-id"],"disabled":[4]}]]],["pds-filters",[[257,"pds-filters",{"componentId":[1,"component-id"]}]]],["pds-image",[[1,"pds-image",{"alt":[1],"componentId":[1,"component-id"],"height":[2],"loading":[1],"sizes":[1],"src":[1],"srcset":[1],"width":[2]}]]],["pds-modal-content",[[260,"pds-modal-content",{"border":[1537],"contentMaxHeight":[32]}]]],["pds-modal-footer",[[260,"pds-modal-footer"]]],["pds-modal-header",[[260,"pds-modal-header"]]],["pds-popover",[[257,"pds-popover",{"popoverTargetAction":[1,"popover-target-action"],"openOn":[1,"open-on"],"popoverType":[1,"popover-type"],"componentId":[1,"component-id"],"maxWidth":[2,"max-width"],"padding":[1],"placement":[1537],"active":[32],"show":[64],"hide":[64],"toggle":[64]},null,{"openOn":[{"openOnChanged":0}],"padding":[{"applyPadding":0}],"placement":[{"restorePlacementDefault":0}]}]]],["pds-progress",[[1,"pds-progress",{"animated":[4],"componentId":[1,"component-id"],"fillColor":[1,"fill-color"],"label":[1],"percent":[2],"showPercent":[4,"show-percent"]}]]],["pds-row",[[0,"pds-row",{"alignItems":[1,"align-items"],"border":[4],"colGap":[1,"col-gap"],"colGapBlock":[1,"col-gap-block"],"colGapInline":[1,"col-gap-inline"],"componentId":[1,"component-id"],"justifyContent":[1,"justify-content"],"minHeight":[1,"min-height"],"noWrap":[4,"no-wrap"]}]]],["pds-sortable",[[262,"pds-sortable",{"border":[516],"disabled":[516],"componentId":[1,"component-id"],"dividers":[516],"handleType":[1,"handle-type"]},null,{"disabled":[{"handleDisabledChange":0}]}]]],["pds-tab",[[260,"pds-tab",{"disabled":[4],"href":[1],"active":[4],"target":[1],"turboFrame":[1,"turbo-frame"],"turboAction":[1,"turbo-action"],"name":[1],"parentComponentId":[1,"parent-component-id"],"variant":[1],"index":[2],"selected":[4],"navMode":[4,"nav-mode"]}]]],["pds-table",[[257,"pds-table",{"compact":[4],"componentId":[1,"component-id"],"responsive":[4],"fixedColumn":[4,"fixed-column"],"selectable":[4],"disableSelectAll":[4,"disable-select-all"],"rowDividers":[516,"row-dividers"],"defaultSortColumn":[1,"default-sort-column"],"defaultSortDirection":[1,"default-sort-direction"],"sortingColumn":[32],"sortingDirection":[32]},[[0,"pdsTableSort","handleTableSort"],[0,"pdsTableSelectAll","handleTableSelectAll"],[0,"pdsTableRowSelected","handleTableSelect"]]]]],["pds-table-body",[[257,"pds-table-body"]]],["pds-tabpanel",[[260,"pds-tabpanel",{"name":[1],"parentComponentId":[1,"parent-component-id"],"variant":[1],"selected":[1028],"stretch":[4]}]]],["pds-tabs",[[257,"pds-tabs",{"tablistLabel":[1,"tablist-label"],"componentId":[1,"component-id"],"variant":[1],"divider":[4],"stretch":[4],"nav":[4],"activeTabName":[1025,"active-tab-name"],"activeTabIndex":[1026,"active-tab-index"]},[[16,"pdsTabClick","tabClickHandler"],[0,"keydown","handleKeyDown"]]]]],["pds-tooltip",[[260,"pds-tooltip",{"content":[1],"componentId":[1,"component-id"],"hasArrow":[4,"has-arrow"],"htmlContent":[4,"html-content"],"placement":[513],"maxWidth":[1,"max-width"],"opened":[1540],"_isInteractiveOpen":[32],"showTooltip":[64],"hideTooltip":[64]},null,{"opened":[{"handleOpenToggle":0}]}]]],["pds-button",[[273,"pds-button",{"componentId":[1,"component-id"],"download":[1],"disabled":[516],"fullWidth":[4,"full-width"],"href":[1],"icon":[1],"iconOnly":[4,"icon-only"],"loading":[4],"name":[1],"target":[1],"type":[1],"value":[1],"size":[1],"variant":[1],"hasStartContent":[32],"hasEndContent":[32],"forwardedAria":[32]},[[16,"keydown","handleFormKeyDown"]]]]],["pds-input",[[321,"pds-input",{"autocomplete":[1],"componentId":[1,"component-id"],"debounce":[2],"disabled":[4],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"invalid":[4],"label":[1],"hideLabel":[4,"hide-label"],"max":[1],"maxlength":[1],"min":[1],"minlength":[1],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[4],"required":[4],"step":[1],"type":[1],"value":[1032],"fullWidth":[4,"full-width"],"highlight":[516],"hasPrefix":[32],"hasSuffix":[32],"hasPrepend":[32],"hasAppend":[32],"hasAction":[32],"hasFocus":[32],"setFocus":[64]},null,{"debounce":[{"debounceChanged":0}],"value":[{"valueChanged":0}]}]]],["pds-link",[[257,"pds-link",{"active":[516],"color":[1],"download":[1],"componentId":[1,"component-id"],"external":[4],"externalLabel":[1,"external-label"],"target":[1],"variant":[1],"fontSize":[1,"font-size"],"href":[1],"turbo":[1],"turboFrame":[1,"turbo-frame"],"turboAction":[1,"turbo-action"],"turboMethod":[1,"turbo-method"],"turboConfirm":[1,"turbo-confirm"],"turboStream":[1,"turbo-stream"],"turboPrefetch":[1,"turbo-prefetch"],"turboPreload":[1,"turbo-preload"]}]]],["pds-table-head-cell",[[257,"pds-table-head-cell",{"cellAlign":[1,"cell-align"],"sortable":[4],"sortingDirection":[32],"tableScrolling":[32],"isSelected":[32],"hasHeadBorder":[32],"hasHeadBackground":[32],"isActive":[32],"setActiveSort":[64],"clearActiveSort":[64]}]]],["pds-modal",[[260,"pds-modal",{"backdropDismiss":[4,"backdrop-dismiss"],"componentId":[1,"component-id"],"open":[1028],"size":[1],"scrollable":[4],"disableTopLayer":[4,"disable-top-layer"],"disableInitialFocus":[4,"disable-initial-focus"],"focusableElementsArray":[32],"showModal":[64],"hideModal":[64]},null,{"size":[{"sizeChanged":0}],"open":[{"handleOpenChange":0}]}]]],["pds-table-cell",[[257,"pds-table-cell",{"cellAlign":[1,"cell-align"],"truncate":[4],"tableScrolling":[32]},null,{"truncate":[{"handleTruncateChange":0}]}]]],["pds-chip",[[257,"pds-chip",{"componentId":[1,"component-id"],"dot":[4],"dotColor":[1,"dot-color"],"icon":[1],"iconColor":[1,"icon-color"],"size":[1],"sentiment":[1],"variant":[1],"removeUrl":[1,"remove-url"],"removeHttpMethod":[1,"remove-http-method"],"removeTarget":[1,"remove-target"],"dismissLabel":[1,"dismiss-label"],"maxWidth":[513,"max-width"]}]]],["pds-text",[[257,"pds-text",{"align":[1],"color":[1],"decoration":[1],"gutter":[1],"italic":[4],"size":[1],"weight":[1],"tag":[1],"truncate":[516]},null,{"truncate":[{"handleTruncateChange":0}],"size":[{"validateSize":0}]}]]],["pds-icon",[[1,"pds-icon",{"color":[1],"flipRtl":[4,"flip-rtl"],"icon":[8],"name":[513],"size":[513],"src":[1],"inheritedAttributes":[32],"isFocusable":[32],"isVisible":[32],"svgContent":[32]},null,{"size":[{"updateStyles":0}],"color":[{"updateStyles":0}],"name":[{"onIconPropertyChange":0}],"src":[{"onIconPropertyChange":0}],"icon":[{"onIconPropertyChange":0}]}]]],["pds-checkbox",[[321,"pds-checkbox",{"checked":[1028],"componentId":[1,"component-id"],"disabled":[4],"errorMessage":[1,"error-message"],"helperMessage":[1,"helper-message"],"indeterminate":[1028],"invalid":[4],"label":[1],"hideLabel":[4,"hide-label"],"name":[1],"required":[4],"value":[1],"variant":[1],"hasLabelSlot":[32]},null,{"checked":[{"updateIndeterminate":0},{"checkedChanged":0}]}]]],["pds-loader",[[257,"pds-loader",{"isLoading":[4,"is-loading"],"showLabel":[4,"show-label"],"size":[1537],"variant":[1]},null,{"size":[{"restoreSizeDefault":0}]}]]],["pds-box",[[0,"pds-box",{"alignItems":[1,"align-items"],"alignItemsXs":[1,"align-items-xs"],"alignItemsSm":[1,"align-items-sm"],"alignItemsMd":[1,"align-items-md"],"alignItemsLg":[1,"align-items-lg"],"alignItemsXl":[1,"align-items-xl"],"alignSelf":[1,"align-self"],"alignSelfXs":[1,"align-self-xs"],"alignSelfSm":[1,"align-self-sm"],"alignSelfMd":[1,"align-self-md"],"alignSelfLg":[1,"align-self-lg"],"alignSelfXl":[1,"align-self-xl"],"auto":[4],"autoXs":[4,"auto-xs"],"autoSm":[4,"auto-sm"],"autoMd":[4,"auto-md"],"autoLg":[4,"auto-lg"],"autoXl":[4,"auto-xl"],"backgroundColor":[1,"background-color"],"border":[4],"borderBlockEnd":[4,"border-block-end"],"borderBlockStart":[4,"border-block-start"],"borderColor":[1,"border-color"],"borderInlineEnd":[4,"border-inline-end"],"borderInlineStart":[4,"border-inline-start"],"borderRadius":[1,"border-radius"],"direction":[1],"display":[1],"fit":[4],"fitXs":[4,"fit-xs"],"fitSm":[4,"fit-sm"],"fitMd":[4,"fit-md"],"fitLg":[4,"fit-lg"],"fitXl":[4,"fit-xl"],"gap":[1],"gapXs":[1,"gap-xs"],"gapSm":[1,"gap-sm"],"gapMd":[1,"gap-md"],"gapLg":[1,"gap-lg"],"gapXl":[1,"gap-xl"],"wrap":[4],"wrapXs":[4,"wrap-xs"],"wrapSm":[4,"wrap-sm"],"wrapMd":[4,"wrap-md"],"wrapLg":[4,"wrap-lg"],"wrapXl":[4,"wrap-xl"],"flex":[1],"justifyContent":[1,"justify-content"],"justifyContentXs":[1,"justify-content-xs"],"justifyContentSm":[1,"justify-content-sm"],"justifyContentMd":[1,"justify-content-md"],"justifyContentLg":[1,"justify-content-lg"],"justifyContentXl":[1,"justify-content-xl"],"marginBlockStart":[1,"margin-block-start"],"marginBlockStartXs":[1,"margin-block-start-xs"],"marginBlockStartSm":[1,"margin-block-start-sm"],"marginBlockStartMd":[1,"margin-block-start-md"],"marginBlockStartLg":[1,"margin-block-start-lg"],"marginBlockStartXl":[1,"margin-block-start-xl"],"marginInlineStart":[1,"margin-inline-start"],"marginInlineStartXs":[1,"margin-inline-start-xs"],"marginInlineStartSm":[1,"margin-inline-start-sm"],"marginInlineStartMd":[1,"margin-inline-start-md"],"marginInlineStartLg":[1,"margin-inline-start-lg"],"marginInlineStartXl":[1,"margin-inline-start-xl"],"marginInlineEnd":[1,"margin-inline-end"],"marginInlineEndXs":[1,"margin-inline-end-xs"],"marginInlineEndSm":[1,"margin-inline-end-sm"],"marginInlineEndMd":[1,"margin-inline-end-md"],"marginInlineEndLg":[1,"margin-inline-end-lg"],"marginInlineEndXl":[1,"margin-inline-end-xl"],"marginBlockEnd":[1,"margin-block-end"],"marginBlockEndXs":[1,"margin-block-end-xs"],"marginBlockEndSm":[1,"margin-block-end-sm"],"marginBlockEndMd":[1,"margin-block-end-md"],"marginBlockEndLg":[1,"margin-block-end-lg"],"marginBlockEndXl":[1,"margin-block-end-xl"],"minHeight":[513,"min-height"],"minWidth":[513,"min-width"],"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"padding":[1],"paddingXs":[1,"padding-xs"],"paddingSm":[1,"padding-sm"],"paddingMd":[1,"padding-md"],"paddingLg":[1,"padding-lg"],"paddingXl":[1,"padding-xl"],"paddingBlockStart":[1,"padding-block-start"],"paddingBlockStartXs":[1,"padding-block-start-xs"],"paddingBlockStartSm":[1,"padding-block-start-sm"],"paddingBlockStartMd":[1,"padding-block-start-md"],"paddingBlockStartLg":[1,"padding-block-start-lg"],"paddingBlockStartXl":[1,"padding-block-start-xl"],"paddingBlockEnd":[1,"padding-block-end"],"paddingBlockEndXs":[1,"padding-block-end-xs"],"paddingBlockEndSm":[1,"padding-block-end-sm"],"paddingBlockEndMd":[1,"padding-block-end-md"],"paddingBlockEndLg":[1,"padding-block-end-lg"],"paddingBlockEndXl":[1,"padding-block-end-xl"],"paddingInlineStart":[1,"padding-inline-start"],"paddingInlineStartXs":[1,"padding-inline-start-xs"],"paddingInlineStartSm":[1,"padding-inline-start-sm"],"paddingInlineStartMd":[1,"padding-inline-start-md"],"paddingInlineStartLg":[1,"padding-inline-start-lg"],"paddingInlineStartXl":[1,"padding-inline-start-xl"],"paddingInlineEnd":[1,"padding-inline-end"],"paddingInlineEndXs":[1,"padding-inline-end-xs"],"paddingInlineEndSm":[1,"padding-inline-end-sm"],"paddingInlineEndMd":[1,"padding-inline-end-md"],"paddingInlineEndLg":[1,"padding-inline-end-lg"],"paddingInlineEndXl":[1,"padding-inline-end-xl"],"shadow":[1],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]}]]]]'),e)]}}))}))}));
@@ -0,0 +1 @@
1
+ import{__awaiter,__generator}from"tslib";import{c as computePosition,o as offset,f as flip,s as shift}from"./floating-ui.dom-Cuc0DYlm.js";import{f as findPortalTarget,i as isTopLayerInDocument,o as onTopLayerClose}from"./portal-target-CKRzRKdO.js";var FOCUSABLE_WRAPPER='a[href], button, summary, pds-button, pds-link, pds-tab, pds-dropdown-menu-item, [role="option"], [role="treeitem"]';var TOOLTIP_CLASS="pds-truncation-tooltip";function injectStyles(){if(document.querySelector("[data-pds-truncation-tooltip]"))return;var n=document.createElement("style");n.setAttribute("data-pds-truncation-tooltip","");n.textContent="\n .".concat(TOOLTIP_CLASS," {\n position: fixed;\n z-index: var(--pine-z-index-nuclear, 9999);\n }\n .").concat(TOOLTIP_CLASS,"__content {\n background-color: var(--pine-color-primary, #1a1a2e);\n border-radius: calc(var(--pine-dimension-xs, 4px) * 1.25);\n box-shadow: var(--pine-box-shadow, 0 2px 8px rgba(0,0,0,0.15));\n color: var(--pine-color-text-primary, #fff);\n cursor: text;\n font-family: var(--pine-font-family-body, sans-serif);\n font-size: var(--pine-font-size-body-sm, 0.875rem);\n letter-spacing: var(--pine-letter-spacing, normal);\n line-height: var(--pine-line-height-body, 1.5);\n max-width: 320px;\n opacity: 0;\n padding: var(--pine-dimension-xs, 4px) calc(var(--pine-dimension-md, 12px) / 2);\n transition: opacity 0.15s ease-in-out, visibility 0.15s ease-in-out;\n user-select: text;\n visibility: hidden;\n width: max-content;\n word-break: break-word;\n }\n .").concat(TOOLTIP_CLASS,"--visible .").concat(TOOLTIP_CLASS,"__content {\n opacity: 1;\n visibility: visible;\n }\n :is(dialog, [popover]) > .").concat(TOOLTIP_CLASS," {\n font-style: normal;\n font-weight: normal;\n text-align: start;\n text-indent: 0;\n text-transform: none;\n white-space: normal;\n word-spacing: normal;\n }\n ");document.head.appendChild(n)}function isOverflowing(n){return n.scrollWidth>n.clientWidth}function isFocusVisible(n){try{return n.matches(":focus-visible")}catch(n){return true}}function setupTruncationTooltip(n){var e=n.hostEl,t=n.contentEl,i=n.getTooltipText,o=n.placement,r=o===void 0?"top":o,a=n.reference,u=a===void 0?e:a,s=n.manageTabIndex,f=s===void 0?true:s,l=n.focusEl,c=l===void 0?e:l;injectStyles();var d=null;var p=null;var m=false;var v=false;var T=false;var b=null;var x=null;var O=null;var y=false;var L=false;function _(){if(!f)return;if(isOverflowing(t)){if(!y&&t.hasAttribute("tabindex"))return;y=true;t.setAttribute("tabindex","0")}else if(y){y=false;t.removeAttribute("tabindex")}}if(typeof ResizeObserver!=="undefined"){x=new ResizeObserver((function(){if(O){clearTimeout(O)}O=setTimeout((function(){O=null;_();if(d&&d.isConnected&&!isOverflowing(t)){C()}}),100)}));x.observe(t)}_();if(typeof document!=="undefined"&&document.fonts!==undefined){document.fonts.ready.then((function(){if(!L)_()}))}function S(){if(d)return;var n=i();if(!n||n.trim()==="")return;d=document.createElement("div");d.className=TOOLTIP_CLASS;d.setAttribute("role","tooltip");d.setAttribute("aria-hidden","false");var t=document.createElement("div");t.className="".concat(TOOLTIP_CLASS,"__content");t.textContent=n.trim();d.appendChild(t);var o=findPortalTarget(e,isTopLayerInDocument);o.appendChild(d);if(o!==document.body)p=onTopLayerClose(o,A);d.addEventListener("mouseenter",k);d.addEventListener("mouseleave",j);g().then((function(){if(d){d.classList.add("".concat(TOOLTIP_CLASS,"--visible"))}}))}function g(){return __awaiter(this,void 0,void 0,(function(){var n,e,t,i,o,a,s,f,l;return __generator(this,(function(c){switch(c.label){case 0:if(!d)return[2];c.label=1;case 1:c.trys.push([1,3,,4]);return[4,computePosition(u,d,{placement:r,strategy:"fixed",middleware:[offset(4),flip(),shift({padding:5})]})];case 2:n=c.sent(),e=n.x,t=n.y;Object.assign(d.style,{left:"".concat(e,"px"),top:"".concat(t,"px")});return[3,4];case 3:i=c.sent();if(d){o=u.getBoundingClientRect();a=d.getBoundingClientRect();s=5;f=Math.max(s,Math.min(o.left,window.innerWidth-a.width-s));l=Math.max(s,o.top-a.height-8);d.style.left="".concat(f,"px");d.style.top="".concat(l,"px")}return[3,4];case 4:return[2]}}))}))}function h(){if(p!==null){p();p=null}if(d){d.removeEventListener("mouseenter",k);d.removeEventListener("mouseleave",j);d.classList.remove("".concat(TOOLTIP_CLASS,"--visible"));if(d.parentNode&&d.isConnected){try{d.parentNode.removeChild(d)}catch(n){}}d=null}}function w(){if(b!==null){clearTimeout(b);b=null}}function P(){w();if(!isOverflowing(t))return;S()}function C(){if(m||v||T)return;h()}function A(){m=false;v=false;T=false;w();h()}function I(){w();b=setTimeout((function(){b=null;C()}),100)}function R(){m=true;P()}function z(){m=false;I()}function k(){v=true;w()}function j(){v=false;I()}function E(n){return c===e||n===c||n.contains(e)||e.contains(n)}function F(n){if(!isFocusVisible(n.composedPath()[0]))return;if(!E(n.target))return;T=true;P()}function D(n){if(T||n.key==="Escape")return;F(n)}function M(){T=false;I()}e.addEventListener("mouseenter",R);e.addEventListener("mouseleave",z);c.addEventListener("focusin",F);c.addEventListener("focusout",M);c.addEventListener("keyup",D);return function(){L=true;w();if(O){clearTimeout(O);O=null}if(x){x.disconnect()}if(y){y=false;t.removeAttribute("tabindex")}e.removeEventListener("mouseenter",R);e.removeEventListener("mouseleave",z);c.removeEventListener("focusin",F);c.removeEventListener("focusout",M);c.removeEventListener("keyup",D);h()}}export{FOCUSABLE_WRAPPER as F,setupTruncationTooltip as s};