xv-webcomponents 1.20.2-staging.0 → 1.21.1-dev.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 (70) hide show
  1. package/dist/cjs/{index-DwneAp1a.js → index-Cb30DBqk.js} +16 -0
  2. package/dist/cjs/index.cjs.js +1 -1
  3. package/dist/cjs/loader.cjs.js +1 -1
  4. package/dist/cjs/xv-accordion-v2_48.cjs.entry.js +83 -50
  5. package/dist/cjs/xv-header-next.cjs.entry.js +2 -2
  6. package/dist/cjs/xv-mega-menu-next.cjs.entry.js +3 -3
  7. package/dist/cjs/xv-webcomponents.cjs.js +1 -1
  8. package/dist/collection/components/xv-datepicker/xv-datepicker.css +3 -0
  9. package/dist/collection/components/xv-datepicker/xv-datepicker.js +8 -2
  10. package/dist/collection/components/xv-dropdown/xv-dropdown-item/xv-dropdown-item.js +1 -1
  11. package/dist/collection/components/xv-dropdown/xv-dropdown.css +16 -12
  12. package/dist/collection/components/xv-dropdown/xv-dropdown.js +5 -4
  13. package/dist/collection/components/xv-file-uploader/xv-file-uploader.js +1 -1
  14. package/dist/collection/components/xv-footer/xv-footer.js +1 -1
  15. package/dist/collection/components/xv-header/xv-header.js +1 -1
  16. package/dist/collection/components/xv-header-next/xv-header-next.js +1 -1
  17. package/dist/collection/components/xv-image-viewer/xv-image-viewer.css +14 -8
  18. package/dist/collection/components/xv-image-viewer/xv-image-viewer.js +18 -1
  19. package/dist/collection/components/xv-link/xv-link.js +1 -1
  20. package/dist/collection/components/xv-mega-menu/xv-mega-menu.js +2 -2
  21. package/dist/collection/components/xv-mega-menu-next/xv-mega-menu-next.js +2 -2
  22. package/dist/collection/components/xv-modal/xv-modal.css +2 -1
  23. package/dist/collection/components/xv-modal/xv-modal.js +1 -1
  24. package/dist/collection/components/xv-notification/xv-notification.js +1 -1
  25. package/dist/collection/components/xv-number-input/xv-number-input.js +4 -2
  26. package/dist/collection/components/xv-pagination/xv-pagination.js +1 -1
  27. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator-item/xv-progress-indicator-item.js +1 -1
  28. package/dist/collection/components/xv-progress-indicator/xv-progress-indicator.js +1 -1
  29. package/dist/collection/components/xv-radio/xv-radio.css +3 -0
  30. package/dist/collection/components/xv-radio/xv-radio.js +23 -2
  31. package/dist/collection/components/xv-slider/xv-slider.js +1 -1
  32. package/dist/collection/components/xv-table/xv-table-cell/xv-table-cell.js +1 -1
  33. package/dist/collection/components/xv-table/xv-table-expand/xv-table-expand.js +1 -1
  34. package/dist/collection/components/xv-table/xv-table-row/xv-table-row.js +1 -1
  35. package/dist/collection/components/xv-table/xv-table.js +1 -1
  36. package/dist/collection/components/xv-tabs/xv-tab/xv-tab.js +1 -1
  37. package/dist/collection/components/xv-tag/xv-tag.js +1 -1
  38. package/dist/collection/components/xv-tag-combobox/xv-tag-combobox.css +2 -2
  39. package/dist/collection/components/xv-tag-combobox/xv-tag-combobox.js +23 -2
  40. package/dist/collection/components/xv-text-input/xv-text-input.css +7 -0
  41. package/dist/collection/components/xv-text-input/xv-text-input.js +28 -2
  42. package/dist/collection/components/xv-textarea/xv-textarea.css +11 -1
  43. package/dist/collection/components/xv-textarea/xv-textarea.js +4 -2
  44. package/dist/collection/components/xv-tile/xv-tile.js +2 -2
  45. package/dist/collection/components/xv-toggle/xv-toggle.js +1 -1
  46. package/dist/collection/components/xv-toggle-tip/xv-toggle-tip.js +1 -1
  47. package/dist/collection/components/xv-tooltip/xv-tooltip.js +2 -2
  48. package/dist/collection/utils/utils.js +15 -0
  49. package/dist/esm/{index-OqHMuwQF.js → index-CQm2sRKT.js} +16 -1
  50. package/dist/esm/index.js +1 -1
  51. package/dist/esm/loader.js +1 -1
  52. package/dist/esm/xv-accordion-v2_48.entry.js +83 -50
  53. package/dist/esm/xv-header-next.entry.js +2 -2
  54. package/dist/esm/xv-mega-menu-next.entry.js +3 -3
  55. package/dist/esm/xv-webcomponents.js +1 -1
  56. package/dist/types/components/xv-image-viewer/xv-image-viewer.d.ts +3 -0
  57. package/dist/types/components/xv-radio/xv-radio.d.ts +1 -0
  58. package/dist/types/components/xv-tag-combobox/xv-tag-combobox.d.ts +1 -0
  59. package/dist/types/components/xv-text-input/xv-text-input.d.ts +2 -0
  60. package/dist/types/components.d.ts +6 -0
  61. package/dist/types/utils/utils.d.ts +9 -0
  62. package/dist/xv-webcomponents/index.esm.js +1 -1
  63. package/dist/xv-webcomponents/{p-fa1779f0.entry.js → p-4ad13642.entry.js} +1 -1
  64. package/dist/xv-webcomponents/{p-0b0ce8e2.entry.js → p-8eca98c5.entry.js} +1 -1
  65. package/dist/xv-webcomponents/p-CQm2sRKT.js +1 -0
  66. package/dist/xv-webcomponents/p-d485057e.entry.js +8 -0
  67. package/dist/xv-webcomponents/xv-webcomponents.esm.js +1 -1
  68. package/package.json +1 -1
  69. package/dist/xv-webcomponents/p-9edaba20.entry.js +0 -8
  70. package/dist/xv-webcomponents/p-OqHMuwQF.js +0 -1
@@ -1 +0,0 @@
1
- function t(t,e,o){return(t||"")+(e?` ${e}`:"")+(o?` ${o}`:"")}function e(){return"10000000-1000-4000-8000-100000000000".replace(/[018]/g,(t=>(+t^crypto.getRandomValues(new Uint8Array(1))[0]&15>>+t/4).toString(16)))}const o=(t,e,o)=>Array.prototype.forEach.call(t,e,o),r=(t,e=500)=>{let o;return function(...r){clearTimeout(o),o=setTimeout((()=>{t.apply(this,r)}),e)}},n=(t,e,o)=>"string"==typeof o?(!t.hasAttribute(e)&&t.setAttribute(e,o),t):(o?!t.hasAttribute(e)&&t.setAttribute(e,""):t.hasAttribute(e)&&t.removeAttribute(e),t),i=()=>{try{const t=localStorage.getItem("metaNav");return t?JSON.parse(t):{}}catch(t){return console.warn("Could not parse metaNav from localStorage:",t),{}}},c=()=>{var t;return window.__xvWhitelabelOverride||(()=>{var t;if("undefined"==typeof document)return;const e="ApplicationContext=";return null===(t=document.cookie.split(";").map((t=>t.trim())).find((t=>t.startsWith(e))))||void 0===t?void 0:t.slice(19)})()||(null===(t=i())||void 0===t?void 0:t.WhitelabelName)||void 0},s=(t="")=>{var e;return`${null!==(e={"sitefinity-qa.crossvertise.com":"https://qa.crossvertise.com","www.crossvertise.com":"https://market.crossvertise.com","sitefinity-staging.crossvertise.com":"https://staging.crossvertise.com",localhost:"https://qa.crossvertise.com"}[window.location.hostname])&&void 0!==e?e:window.location.origin}${t}`},a=async(t,e)=>{const o=e||{},{awaitWl:r,raw:n}=o,i=function(t,e){var o={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(o[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(r=Object.getOwnPropertySymbols(t);n<r.length;n++)e.indexOf(r[n])<0&&Object.prototype.propertyIsEnumerable.call(t,r[n])&&(o[r[n]]=t[r[n]])}return o}(o,["awaitWl","raw"]),a=r?await((t=2e3,e=100)=>{const o=c();return o?Promise.resolve(o):new Promise((o=>{const r=Date.now(),n=()=>{const i=c();return i?o(i):Date.now()-r>=t?o("Xv"):void setTimeout(n,e)};n()}))})():c()||"Xv",d=/^https?:\/\//i.test(t)?t:`${s()}/${t.replace(/^\//,"")}`,u=Object.assign(Object.assign({},n?{}:{"Content-Type":"application/json","Application-Context":a}),null==i?void 0:i.headers);return fetch(d,Object.assign(Object.assign({},i),{headers:u})).then((t=>{var e;if(!t.ok)throw new Error(`${t.status} ${t.statusText}`);return(null!==(e=t.headers.get("Content-Type"))&&void 0!==e?e:"").includes("application/json")?t.json():t.text()}))},d={get:(t,e)=>a(t,Object.assign(Object.assign({},e),{method:"GET"})),post:(t,e,o)=>a(t,Object.assign(Object.assign({},o),{method:"POST",body:void 0!==e?JSON.stringify(e):void 0})),put:(t,e,o)=>a(t,Object.assign(Object.assign({},o),{method:"PUT",body:void 0!==e?JSON.stringify(e):void 0})),patch:(t,e,o)=>a(t,Object.assign(Object.assign({},o),{method:"PATCH",body:void 0!==e?JSON.stringify(e):void 0})),delete:(t,e)=>a(t,Object.assign(Object.assign({},e),{method:"DELETE"}))};export{d as a,s as b,t as c,r as d,o as f,i as g,c as r,n as s,e as u}