@blukavantui/community 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/build-audit.json +127 -65
- package/dist/checkbox.js +1 -1
- package/dist/chunk-4LHIQROI.js +0 -0
- package/dist/chunk-6T677NSC.js +1 -0
- package/dist/chunk-7CEOCZ5L.js +0 -0
- package/dist/chunk-7DXFNK7C.js +1 -0
- package/dist/chunk-CNIIMGT3.js +0 -0
- package/dist/chunk-CSTCEBEK.js +1 -0
- package/dist/chunk-DRZM2AL3.js +0 -0
- package/dist/{chunk-JVE6CXCJ.js → chunk-EPPETNK6.js} +1 -1
- package/dist/chunk-EPPSBHZR.js +1 -0
- package/dist/{chunk-NTFHNL7T.js → chunk-G6OW4OZM.js} +1 -1
- package/dist/chunk-GS67ZBLI.js +1 -0
- package/dist/{chunk-6EHKOVZK.js → chunk-HVR2UDFX.js} +1 -1
- package/dist/chunk-IKYBFMHI.js +1 -0
- package/dist/chunk-KVOA55NE.js +0 -0
- package/dist/{chunk-MZBB5ROJ.js → chunk-LF2HELEZ.js} +1 -1
- package/dist/{chunk-UEOCR2C3.js → chunk-OLDA73XG.js} +2 -2
- package/dist/{chunk-IZJN3EF7.js → chunk-T45FJNEQ.js} +1 -1
- package/dist/chunk-TZSX4OTV.js +1 -0
- package/dist/{chunk-GK3INPAZ.js → chunk-V2YPIC6Z.js} +1 -1
- package/dist/chunk-V4ZQLQ7L.js +0 -0
- package/dist/chunk-VAM3FPCS.js +0 -0
- package/dist/chunk-VSTKXZYY.js +0 -0
- package/dist/chunk-WG4US4JH.js +1 -0
- package/dist/chunk-WGSTNXAQ.js +0 -0
- package/dist/chunk-WJHCVECU.js +1 -0
- package/dist/chunk-Y4AXWTAD.js +0 -0
- package/dist/chunk-YLFXSHKZ.js +0 -0
- package/dist/chunk-ZDGZGAYG.js +0 -0
- package/dist/command-palette.js +1 -1
- package/dist/component-motion.css +39 -0
- package/dist/component-motion.d.ts +45 -0
- package/dist/component-motion.js +1 -0
- package/dist/content.js +1 -1
- package/dist/core.css +8 -0
- package/dist/core.js +1 -1
- package/dist/data-motion.css +4 -0
- package/dist/data-motion.d.ts +23 -0
- package/dist/data-motion.js +1 -0
- package/dist/data.js +1 -1
- package/dist/date-picker.js +1 -1
- package/dist/date-range-picker.js +1 -1
- package/dist/date-time-picker.js +1 -1
- package/dist/drawer.js +1 -1
- package/dist/essentials.css +8 -0
- package/dist/feedback.js +1 -1
- package/dist/form-layout.js +1 -1
- package/dist/index.js +1 -1
- package/dist/inputs.js +1 -1
- package/dist/layout.js +1 -1
- package/dist/modal.js +1 -1
- package/dist/motion/action-feedback.d.ts +14 -0
- package/dist/motion/border-glow.d.ts +12 -0
- package/dist/motion/button.d.ts +11 -0
- package/dist/motion/component-settings.d.ts +51 -0
- package/dist/motion/controller.d.ts +33 -0
- package/dist/motion/effects.d.ts +30 -0
- package/dist/motion/feedback.d.ts +6 -0
- package/dist/motion/loading.d.ts +9 -0
- package/dist/motion/optional.d.ts +35 -0
- package/dist/motion/photo.d.ts +7 -0
- package/dist/motion/presence.d.ts +12 -0
- package/dist/motion/scene.d.ts +10 -0
- package/dist/motion/screen.d.ts +6 -0
- package/dist/motion/scroll-reveal.d.ts +13 -0
- package/dist/motion/settings-group.d.ts +14 -0
- package/dist/motion/stagger.d.ts +12 -0
- package/dist/motion/structure.d.ts +18 -0
- package/dist/motion/tabs.d.ts +19 -0
- package/dist/motion/tokens.d.ts +11 -0
- package/dist/motion/value.d.ts +21 -0
- package/dist/motion/view-transition.d.ts +14 -0
- package/dist/motion-enhancers.d.ts +12 -0
- package/dist/motion-enhancers.js +1 -0
- package/dist/motion-settings.d.ts +3 -0
- package/dist/motion-settings.js +1 -0
- package/dist/motion.css +1076 -0
- package/dist/motion.d.ts +20 -0
- package/dist/motion.js +1 -0
- package/dist/native/form-layout.js +1 -1
- package/dist/native-motion-components.d.ts +3 -0
- package/dist/native-motion-content.d.ts +1 -0
- package/dist/native-motion-foundations.d.ts +3 -0
- package/dist/native-motion-layout.d.ts +3 -0
- package/dist/native-motion-pilot.d.ts +34 -0
- package/dist/native-motion.d.ts +71 -0
- package/dist/notification.js +1 -1
- package/dist/pagination.js +1 -1
- package/dist/radio-button.js +1 -1
- package/dist/radio-group.js +1 -1
- package/dist/sidebar.js +1 -1
- package/dist/sizes.json +273 -151
- package/dist/skeleton.css +8 -0
- package/dist/styles.css +1130 -0
- package/dist/switch.js +1 -1
- package/dist/table.js +1 -1
- package/dist/time-picker.js +1 -1
- package/dist/tree-view.js +1 -1
- package/dist/web-motion/chip-ripple.d.ts +6 -0
- package/dist/web-motion/choice-ripple.d.ts +6 -0
- package/dist/web-motion/content.d.ts +9 -0
- package/dist/web-motion/data-rows.d.ts +12 -0
- package/dist/web-motion/fields.d.ts +6 -0
- package/dist/web-motion/navigation.d.ts +6 -0
- package/dist/web-motion/notifications.d.ts +6 -0
- package/dist/web-motion/select-ripple.d.ts +6 -0
- package/dist/web-motion/statistic.d.ts +13 -0
- package/dist/web-motion/surfaces.d.ts +10 -0
- package/dist/web-motion/tree.d.ts +6 -0
- package/docs/FORM-LAYOUT-ESSENTIALS.md +4 -4
- package/edition.json +1 -1
- package/npm-shrinkwrap.json +2 -2
- package/package.json +29 -3
- package/scripts/build-motion-css.mjs +36 -0
- package/scripts/build-motion-styles.mjs +29 -0
- package/scripts/build.mjs +5 -1
- package/scripts/motion-entries.mjs +2 -0
- package/src/component-motion.ts +101 -0
- package/src/data-motion.ts +60 -0
- package/src/form-layout/choice.ts +17 -1
- package/src/motion/action-feedback.ts +38 -0
- package/src/motion/border-glow.ts +41 -0
- package/src/motion/button.ts +56 -0
- package/src/motion/component-settings.ts +147 -0
- package/src/motion/controller.ts +191 -0
- package/src/motion/effects.ts +75 -0
- package/src/motion/feedback.ts +41 -0
- package/src/motion/loading.ts +40 -0
- package/src/motion/optional.ts +123 -0
- package/src/motion/photo.ts +19 -0
- package/src/motion/presence.ts +44 -0
- package/src/motion/scene.ts +103 -0
- package/src/motion/screen.ts +15 -0
- package/src/motion/scroll-reveal.ts +49 -0
- package/src/motion/settings-group.ts +28 -0
- package/src/motion/stagger.ts +26 -0
- package/src/motion/structure.ts +75 -0
- package/src/motion/tabs.ts +105 -0
- package/src/motion/tokens.ts +2 -0
- package/src/motion/value.ts +61 -0
- package/src/motion/view-transition.ts +57 -0
- package/src/motion-enhancers.ts +12 -0
- package/src/motion-settings.ts +3 -0
- package/src/motion.ts +20 -0
- package/src/native-motion-components.ts +76 -0
- package/src/native-motion-content.ts +10 -0
- package/src/native-motion-foundations.ts +56 -0
- package/src/native-motion-layout.ts +35 -0
- package/src/native-motion-pilot.ts +151 -0
- package/src/native-motion.ts +188 -0
- package/src/web-motion/chip-ripple.ts +31 -0
- package/src/web-motion/choice-ripple.ts +30 -0
- package/src/web-motion/content.ts +74 -0
- package/src/web-motion/data-rows.ts +106 -0
- package/src/web-motion/fields.ts +52 -0
- package/src/web-motion/navigation.ts +62 -0
- package/src/web-motion/notifications.ts +67 -0
- package/src/web-motion/select-ripple.ts +23 -0
- package/src/web-motion/statistic.ts +23 -0
- package/src/web-motion/surfaces.ts +137 -0
- package/src/web-motion/tree.ts +44 -0
- package/styles/component-motion.css +39 -0
- package/styles/data-motion.css +4 -0
- package/styles/motion-optional.css +15 -0
- package/styles/motion-presets.css +92 -0
- package/styles/motion-tokens.css +6 -0
- package/styles/motion.css +125 -0
- package/styles/skeleton.css +8 -0
- package/test/component-motion-settings.test.mjs +35 -0
- package/test/content-overlay-motion.test.mjs +36 -0
- package/test/isolation.test.mjs +1 -1
- package/test/motion.test.mjs +215 -0
- package/dist/chunk-GXHANADL.js +0 -1
- /package/dist/{chunk-3PNBQVYS.js → chunk-2BSBXDOT.js} +0 -0
- /package/dist/{chunk-H7ETPJVW.js → chunk-3PODK22R.js} +0 -0
- /package/dist/{chunk-SIU7DSOA.js → chunk-KBWB4OIF.js} +0 -0
- /package/dist/{chunk-OPMD7QNV.js → chunk-W3H7XTA7.js} +0 -0
- /package/dist/{chunk-XWXEH3SW.js → chunk-XVMJG26X.js} +0 -0
|
File without changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as L,d as O}from"./chunk-5TEIXA4R.js";import{c as k}from"./chunk-SDMH2EVD.js";var p=L("interactive",()=>({instances:new Map,nextId:0}));function u(e,t,o){var r=document.createElement(e);return t&&(r.className=t),o!==void 0&&(r.textContent=o),r}function c(e,t,o){return e.setAttribute(t,String(o)),e}function C(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function P(e,t,o,r){var n=u("button","blu-control "+(o||""),e);return n.type="button",n.disabled=!!r,n.addEventListener("click",t),n}function T(e,t,o,r){var n=u("input","blu-input");return n.type=e,n.value=t===void 0?"":String(t),c(n,"aria-label",o),r&&n.addEventListener("change",function(){r(n.value)}),n}function F(e,t){var o=typeof e=="string"?JSON.parse(e||"[]"):e;if(!Array.isArray(o))throw new Error(t+" must be a JSON array.");return o}function M(e,t){var o=new Map;if(e.length>2e3)throw new Error(t+" supports up to 2,000 local items.");return e.forEach(function(r){if(!r||typeof r.Key!="string"||!r.Key.trim()||typeof r.Label!="string"||!r.Label.trim())throw new Error(t+": every item needs a Key and Label.");if(o.has(r.Key))throw new Error("Duplicate key: "+r.Key);o.set(r.Key,r)}),o}function h(e,t){if(!(e.disposed||!e.events[t])){var o=Array.prototype.slice.call(arguments,2);try{Promise.resolve(e.events[t].apply(null,o)).catch(function(r){t!=="Error"&&h(e,"Error",r.message||String(r))})}catch(r){t!=="Error"&&h(e,"Error",r.message||String(r))}}}function S(e,t){e.error.textContent=t,e.error.hidden=!t,t&&h(e,"Error",t)}function _(e,t){e.root=u("div",t),e.error=c(u("div","blu-component-error"),"role","alert"),e.error.hidden=!0,C(e.host),e.host.appendChild(e.root),e.host.appendChild(e.error)}function f(e,t,o,r,n){t.addEventListener(o,r,n),e.cleanup.push(function(){t.removeEventListener(o,r,n)})}function D(e,t,o,r,n){var i=n||e,d=document.getElementById(e);if(!d)throw new Error(t+" host was not found.");var a=p.instances.get(i);a&&(a.kind!==t||a.host!==d)&&v(i);var l=p.instances.get(i);return l||(l={host:d,id:e,key:i,uid:"blu-interactive-"+ ++p.nextId,kind:t,cleanup:[],options:{},events:r||{},disposed:!1},p.instances.set(i,l)),d._bluOwnerKey=i,l.events=r||l.events,l}function v(e){var t=p.instances.get(e);t&&(t.disposed=!0,t.dispose&&t.dispose(),t.cleanup.forEach(function(o){o()}),t.host._bluOwnerKey===t.key&&(C(t.host),delete t.host._bluOwnerKey),p.instances.delete(e))}function N(e,t){return Object.freeze({sync:function(o,r,n,i){var d=i||o,a=D(o,e,r,n,i);try{return t(a,r),""}catch(l){return v(d),a=D(o,e,r,n,i),_(a,"blu-interactive"),S(a,l.message),l.message}},destroy:function(o){var r=p.instances.get(o);r&&r.kind===e&&v(o)}})}function s(e,t){e.options.IsDisabled&&(t=!1),t!==e.open&&(e.open=t,e.lastOpen=t,t?(e.returnFocus=document.activeElement,e.dialog.showModal(),e.search.value="",y(e),e.search.focus()):(e.dialog.close(),e.returnFocus&&e.returnFocus.isConnected&&e.returnFocus.focus()),h(e,"OpenChanged",t))}function I(e,t){!t||t.IsDisabled||e.options.IsDisabled||(s(e,!1),h(e,"Command",t.Key))}function y(e){var t=e.search.value.trim().toLocaleLowerCase();e.results=e.items.filter(function(n){return(n.Label+" "+(n.Description||"")+" "+(n.Keywords||"")+" "+(n.Group||"")).toLocaleLowerCase().indexOf(t)>=0}).slice(0,100),C(e.list);var o="",r=[];e.results.forEach(function(n,i){if(n.Group&&n.Group!==o){o=n.Group;var d=u("li","blu-command__group",o);c(d,"role","presentation"),e.list.appendChild(d)}var a=u("li","blu-command__option");a.id=e.uid+"-command-"+i,c(a,"role","option"),c(a,"aria-disabled",!!n.IsDisabled),a.dataset.index=i;var l=u("span","blu-command__copy");l.appendChild(u("strong","",n.Label)),n.Description&&l.appendChild(u("small","",n.Description)),a.appendChild(l),n.Shortcut&&a.appendChild(u("kbd","",n.Shortcut)),a.addEventListener("click",function(){I(e,n)}),e.list.appendChild(a),n.IsDisabled||r.push(i)}),e.enabled=r,e.active=r.length?r[0]:-1,e.results.length||e.list.appendChild(c(u("li","blu-interactive__empty",e.options.EmptyText||"No commands found."),"role","presentation")),e.count.textContent=e.results.length+" commands",K(e)}function K(e){Array.from(e.list.querySelectorAll('[role="option"]')).forEach(function(o){c(o,"aria-selected",Number(o.dataset.index)===e.active)});var t=e.list.querySelector('[data-index="'+e.active+'"]');t?(c(e.search,"aria-activedescendant",t.id),t.scrollIntoView({block:"nearest"})):e.search.removeAttribute("aria-activedescendant")}function
|
|
1
|
+
import{c as L,d as O}from"./chunk-5TEIXA4R.js";import{c as k}from"./chunk-SDMH2EVD.js";var p=L("interactive",()=>({instances:new Map,nextId:0}));function u(e,t,o){var r=document.createElement(e);return t&&(r.className=t),o!==void 0&&(r.textContent=o),r}function c(e,t,o){return e.setAttribute(t,String(o)),e}function C(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function P(e,t,o,r){var n=u("button","blu-control "+(o||""),e);return n.type="button",n.disabled=!!r,n.addEventListener("click",t),n}function T(e,t,o,r){var n=u("input","blu-input");return n.type=e,n.value=t===void 0?"":String(t),c(n,"aria-label",o),r&&n.addEventListener("change",function(){r(n.value)}),n}function F(e,t){var o=typeof e=="string"?JSON.parse(e||"[]"):e;if(!Array.isArray(o))throw new Error(t+" must be a JSON array.");return o}function M(e,t){var o=new Map;if(e.length>2e3)throw new Error(t+" supports up to 2,000 local items.");return e.forEach(function(r){if(!r||typeof r.Key!="string"||!r.Key.trim()||typeof r.Label!="string"||!r.Label.trim())throw new Error(t+": every item needs a Key and Label.");if(o.has(r.Key))throw new Error("Duplicate key: "+r.Key);o.set(r.Key,r)}),o}function h(e,t){if(!(e.disposed||!e.events[t])){var o=Array.prototype.slice.call(arguments,2);try{Promise.resolve(e.events[t].apply(null,o)).catch(function(r){t!=="Error"&&h(e,"Error",r.message||String(r))})}catch(r){t!=="Error"&&h(e,"Error",r.message||String(r))}}}function S(e,t){e.error.textContent=t,e.error.hidden=!t,t&&h(e,"Error",t)}function _(e,t){e.root=u("div",t),e.error=c(u("div","blu-component-error"),"role","alert"),e.error.hidden=!0,C(e.host),e.host.appendChild(e.root),e.host.appendChild(e.error)}function f(e,t,o,r,n){t.addEventListener(o,r,n),e.cleanup.push(function(){t.removeEventListener(o,r,n)})}function D(e,t,o,r,n){var i=n||e,d=document.getElementById(e);if(!d)throw new Error(t+" host was not found.");var a=p.instances.get(i);a&&(a.kind!==t||a.host!==d)&&v(i);var l=p.instances.get(i);return l||(l={host:d,id:e,key:i,uid:"blu-interactive-"+ ++p.nextId,kind:t,cleanup:[],options:{},events:r||{},disposed:!1},p.instances.set(i,l)),d._bluOwnerKey=i,l.events=r||l.events,l}function v(e){var t=p.instances.get(e);t&&(t.disposed=!0,t.dispose&&t.dispose(),t.cleanup.forEach(function(o){o()}),t.host._bluOwnerKey===t.key&&(C(t.host),delete t.host._bluOwnerKey),p.instances.delete(e))}function N(e,t){return Object.freeze({sync:function(o,r,n,i){var d=i||o,a=D(o,e,r,n,i);try{return t(a,r),""}catch(l){return v(d),a=D(o,e,r,n,i),_(a,"blu-interactive"),S(a,l.message),l.message}},destroy:function(o){var r=p.instances.get(o);r&&r.kind===e&&v(o)}})}function s(e,t){e.options.IsDisabled&&(t=!1),t!==e.open&&(e.open=t,e.lastOpen=t,t?(e.returnFocus=document.activeElement,e.dialog.showModal(),e.search.value="",y(e),e.search.focus()):(e.dialog.close(),e.returnFocus&&e.returnFocus.isConnected&&e.returnFocus.focus()),h(e,"OpenChanged",t))}function I(e,t){!t||t.IsDisabled||e.options.IsDisabled||(s(e,!1),h(e,"Command",t.Key))}function y(e){var t=e.search.value.trim().toLocaleLowerCase();e.results=e.items.filter(function(n){return(n.Label+" "+(n.Description||"")+" "+(n.Keywords||"")+" "+(n.Group||"")).toLocaleLowerCase().indexOf(t)>=0}).slice(0,100),C(e.list);var o="",r=[];e.results.forEach(function(n,i){if(n.Group&&n.Group!==o){o=n.Group;var d=u("li","blu-command__group",o);c(d,"role","presentation"),e.list.appendChild(d)}var a=u("li","blu-command__option");a.id=e.uid+"-command-"+i,c(a,"role","option"),c(a,"aria-disabled",!!n.IsDisabled),a.dataset.index=i;var l=u("span","blu-command__copy");l.appendChild(u("strong","",n.Label)),n.Description&&l.appendChild(u("small","",n.Description)),a.appendChild(l),n.Shortcut&&a.appendChild(u("kbd","",n.Shortcut)),a.addEventListener("click",function(){I(e,n)}),e.list.appendChild(a),n.IsDisabled||r.push(i)}),e.enabled=r,e.active=r.length?r[0]:-1,e.results.length||e.list.appendChild(c(u("li","blu-interactive__empty",e.options.EmptyText||"No commands found."),"role","presentation")),e.count.textContent=e.results.length+" commands",K(e)}function K(e){Array.from(e.list.querySelectorAll('[role="option"]')).forEach(function(o){c(o,"aria-selected",Number(o.dataset.index)===e.active)});var t=e.list.querySelector('[data-index="'+e.active+'"]');t?(c(e.search,"aria-activedescendant",t.id),t.scrollIntoView({block:"nearest"})):e.search.removeAttribute("aria-activedescendant")}function q(e,t){var o=F(t.CommandsJson,"Commands");if(M(o,"Commands"),e.items=o,e.options=t,!e.ready){_(e,"blu-command"),e.open=!1,e.trigger=P(t.TriggerLabel||"Open command palette",function(){s(e,!0)}),e.root.appendChild(e.trigger),e.dialog=u("dialog","blu-command__dialog"),c(e.dialog,"aria-label",t.AccessibleLabel||"Command palette"),e.search=T("search","","Search commands"),e.search.placeholder="Search commands, pages, and actions\u2026",c(e.search,"role","combobox"),c(e.search,"aria-autocomplete","list"),c(e.search,"aria-expanded",!0),c(e.search,"aria-controls",e.uid+"-commands"),e.dialog.appendChild(e.search),e.list=c(u("ul","blu-command__list"),"role","listbox"),e.list.id=e.uid+"-commands",c(e.list,"aria-label","Commands"),e.dialog.appendChild(e.list);var r=u("div","blu-command__footer");e.count=c(u("span"),"aria-live","polite"),r.appendChild(e.count),r.appendChild(u("span","","\u2191 \u2193 Navigate \u21B5 Select Esc Close")),r.appendChild(P("Close",function(){s(e,!1)},"blu-control--quiet")),e.dialog.appendChild(r),e.root.appendChild(e.dialog),f(e,e.search,"input",function(){y(e)}),f(e,e.dialog,"cancel",function(n){n.preventDefault(),s(e,!1)}),f(e,e.dialog,"keydown",function(n){if(n.key==="Tab"){var i=Array.from(e.dialog.querySelectorAll('button:not(:disabled),input:not(:disabled),select:not(:disabled),a[href],[tabindex="0"]')).filter(function(l){return l.getClientRects().length}),d=i[0],a=i[i.length-1];n.shiftKey&&document.activeElement===d?(n.preventDefault(),a.focus()):!n.shiftKey&&document.activeElement===a&&(n.preventDefault(),d.focus())}}),f(e,e.dialog,"click",function(n){if(n.target===e.dialog){var i=e.dialog.getBoundingClientRect();(n.clientX<i.left||n.clientX>i.right||n.clientY<i.top||n.clientY>i.bottom)&&s(e,!1)}}),f(e,e.search,"keydown",function(n){if(n.key==="Enter"){n.preventDefault(),I(e,e.results[e.active]);return}var i=e.enabled.indexOf(e.active);if(n.key==="ArrowDown")i=(i+1)%e.enabled.length;else if(n.key==="ArrowUp")i=(i-1+e.enabled.length)%e.enabled.length;else if(n.key==="Home")i=0;else if(n.key==="End")i=e.enabled.length-1;else return;n.preventDefault(),e.active=e.enabled[i]===void 0?-1:e.enabled[i],K(e)}),f(e,document,"keydown",function(n){!e.options.EnableShortcut||e.options.IsDisabled||!e.host.getClientRects().length||n.repeat||(n.ctrlKey||n.metaKey)&&n.key.toLowerCase()==="k"&&(n.preventDefault(),n.stopImmediatePropagation(),s(e,!e.open))},!0),e.dispose=function(){e.open&&(e.dialog.close(),e.returnFocus&&e.returnFocus.isConnected&&e.returnFocus.focus())},e.ready=!0}e.trigger.textContent=t.TriggerLabel||"Open command palette",e.trigger.hidden=t.ShowTrigger===!1,e.trigger.disabled=!!t.IsDisabled,c(e.dialog,"aria-label",t.AccessibleLabel||"Command palette"),y(e),t.IsDisabled?s(e,!1):t.IsOpen!==e.lastOpen&&s(e,!!t.IsOpen),S(e,"")}function R(){return O("CommandPalette",()=>N("CommandPalette",q))}function B(){if(typeof window>"u")throw new Error("Mount BluKavantUI in a browser, after the host is connected.");return window.BluUICommunityRuntime}function j(e,t,o,r,n,i){let d=k(e),a=d.id,l={...o},g=!1,b=B()[t],A=n(m=>{l={...l,...m}}),w=m=>{if(g)throw new Error("Component is destroyed.");l={...l,...m},i?.(d,l);let E=b.sync(d.id,r(l),A,a);if(E)throw new Error(E)};try{w({})}catch(m){throw b.destroy(a),d.remove(),m}return{element:d,update:w,destroy(){g||(g=!0,b.destroy(a),d.remove())}}}function Q(e,t,o={}){return R(),j(e,"CommandPalette",t,r=>{let{Commands:n,...i}=r;return{...i,CommandsJson:JSON.stringify(n)}},r=>({OpenChanged:n=>(r({IsOpen:n}),o.OpenChanged?.(n)),Command:n=>o.Command?.(n),Error:n=>o.Error?.(n)}))}export{Q as a};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{a as K}from"./chunk-MEEQNPGM.js";import{c as T,d as x}from"./chunk-5TEIXA4R.js";var a=T("common",()=>({instances:new Map,hosts:new Map,serial:0,overlays:[],inertState:new Map,oldOverflow:void 0})),A="default primary secondary success processing warning error danger magenta red volcano orange gold lime green cyan blue geekblue purple".split(" ");function f(e,t,n){var o=document.createElement(e);return t&&(o.className=t),n!==void 0&&(o.textContent=n),o}function d(e,t,n){return e.setAttribute(t,String(n)),e}function D(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function B(e,t,n,o,
|
|
2
|
-
`),
|
|
1
|
+
import{a as K}from"./chunk-MEEQNPGM.js";import{c as T,d as x}from"./chunk-5TEIXA4R.js";var a=T("common",()=>({instances:new Map,hosts:new Map,serial:0,overlays:[],inertState:new Map,oldOverflow:void 0})),A="default primary secondary success processing warning error danger magenta red volcano orange gold lime green cyan blue geekblue purple".split(" ");function f(e,t,n){var o=document.createElement(e);return t&&(o.className=t),n!==void 0&&(o.textContent=n),o}function d(e,t,n){return e.setAttribute(t,String(n)),e}function D(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function B(e,t,n,o,i){t.addEventListener(n,o,i),e.cleanup.push(function(){t.removeEventListener(n,o,i)})}function C(e,t,n){var o=f("button","blu-common-button"+(n?" blu-common-button--primary":""),e);return o.type="button",o.addEventListener("click",t),o}function S(e,t,n,o){if(e=e===void 0?t:Number(e),!Number.isInteger(e)||e<n||e>o)throw Error("Expected an integer between "+n+" and "+o+".");return e}function F(e,t,n){if(e=e||n,t.indexOf(e)<0)throw Error("Expected one of: "+t.join(", ")+".");return e}function L(e){if(e=String(e||"Default").toLowerCase(),A.indexOf(e)<0)throw Error("Unknown ComponentColor: "+e);return e}function P(e,t){t=L(t),e.style.setProperty("--blu-common-color","var(--bluui-color-"+t+"-text)"),e.style.setProperty("--blu-common-soft","var(--bluui-color-"+t+"-soft)"),e.style.setProperty("--blu-common-solid","var(--bluui-color-"+t+"-solid)")}function b(e,t){if(!(e.dead||e.host._bluCommonOwner!==e.key||!e.events[t])){var n=Array.prototype.slice.call(arguments,2);try{Promise.resolve(e.events[t].apply(null,n)).catch(function(o){t!=="Error"&&h(e,o.message||String(o))})}catch(o){t!=="Error"&&h(e,o.message||String(o))}}}function h(e,t){e.error||(e.error=d(f("p","blu-common-error"),"role","alert"),e.host.append(e.error)),e.error.textContent=t,e.error.hidden=!t,t&&t!==e.lastError&&b(e,"Error",t),e.lastError=t}function R(e,t,n,o,i){var r=document.getElementById(e);if(!r)return null;o=o||e;var u=a.instances.get(o);return u&&u.host!==r&&(v(o),u=null),r._bluCommonOwner&&r._bluCommonOwner!==o&&v(r._bluCommonOwner),u||(u={host:r,key:o,kind:i,uid:"blu-common-"+ ++a.serial,cleanup:[],events:{},options:{}},a.instances.set(o,u)),r._bluCommonOwner=o,u.options=t||{},u.events=n||{},d(r,"data-blu-ready","true"),u}function v(e){var t=a.instances.get(e);t&&(t.dead=!0,M(t),t.dispose&&t.dispose(),t.cleanup.forEach(function(n){n()}),t.host._bluCommonOwner===e&&(delete t.host._bluCommonOwner,t.host.removeAttribute("data-blu-ready"),t.preserve||D(t.host)),a.instances.delete(e))}function I(e,t){return e.body||(e.body=f("div",t),e.host.append(e.body)),e.body}function j(){a.inertState.forEach(function(n,o){o.inert=n}),a.inertState.clear();var e=a.overlays[a.overlays.length-1];if(!e){a.oldOverflow!==void 0&&(document.body.style.overflow=a.oldOverflow),a.oldOverflow=void 0;return}a.oldOverflow===void 0&&(a.oldOverflow=document.body.style.overflow),document.body.style.overflow="hidden";for(var t=e.layer;t&&t.parentElement&&(Array.from(t.parentElement.children).forEach(function(n){n!==t&&n instanceof HTMLElement&&(a.inertState.set(n,n.inert),n.inert=!0)}),t=t.parentElement,t!==document.body););}function M(e){if(e.stopTracking&&e.stopTracking(),!!e.overlayOpen){e.overlayOpen=!1;var t=a.overlays[a.overlays.length-1]===e;if(a.overlays=a.overlays.filter(function(n){return n!==e}),document.removeEventListener("keydown",e.overlayKey,!0),document.removeEventListener("focusin",e.overlayFocus,!0),e.layer.hidePopover)try{e.layer.hidePopover()}catch{}e.layer.hidden=!0,j(),t&&e.returnFocus&&e.returnFocus.isConnected&&!e.returnFocus.closest("[inert],[hidden]")&&e.returnFocus.focus()}}function H(e){var t=e.options,n=t.HostKey||"global",o=a.hosts.get(n);if(o&&o!==e)throw Error("Notification HostKey is already in use: "+n);var i=F(t.Placement,["TopRight","TopLeft","BottomRight","BottomLeft"],"TopRight");S(t.MaxVisible,4,1,10),e.notificationKey&&e.notificationKey!==n&&a.hosts.delete(e.notificationKey),a.hosts.set(n,e),e.notificationKey=n;var r=I(e,"blu-notifications");for(d(r,"data-placement",i),d(r,"aria-label",t.AccessibleLabel||"Notifications"),d(r,"role","region"),e.messages||(e.messages=new Map,e.announcers=["status","alert"].map(function(u){var c=[0,1].map(function(){var s=d(f("div","blu-notification__announcer"),"role",u);return d(s,"aria-atomic","true"),e.host.append(s),s});return{nodes:c,next:0,pending:new Map,timer:0}}),B(e,document,"visibilitychange",function(){e.messages.forEach(function(u){g(e,u)})}),e.dispose=function(){e.messages.forEach(function(u){clearTimeout(u.timer)}),e.announcers.forEach(function(u){clearTimeout(u.timer),u.pending.clear()}),a.hosts.get(e.notificationKey)===e&&a.hosts.delete(e.notificationKey)});e.messages.size>(t.MaxVisible||4);)m(e,e.messages.keys().next().value,"Limit")}function k(e,t,n,o){e.announcers.forEach(function(r){r.pending.delete(t)});var i=e.announcers[o?1:0];i.pending.set(t,n),i.nodes.forEach(function(r){r.textContent=""}),i.timer||(i.timer=setTimeout(function(){i.timer=0,e.dead||(i.nodes[i.next].textContent=Array.from(i.pending.values()).join(`
|
|
2
|
+
`),i.next=1-i.next),i.pending.clear()},100))}function g(e,t){clearTimeout(t.timer),t.started&&(t.remaining-=Date.now()-t.started,t.started=0),t.duration&&!t.hover&&!t.focus&&!document.hidden&&(t.started=Date.now(),t.timer=setTimeout(function(){m(e,t.key,"Timeout")},Math.max(0,t.remaining)))}function m(e,t,n){var o=e.messages.get(t);if(o){clearTimeout(o.timer),e.announcers.forEach(function(u){u.pending.delete(t)});var i=o.element.contains(document.activeElement);if(e.messages.delete(t),o.element.remove(),i){var r=e.body.querySelector("button");r?r.focus():o.returnFocus&&o.returnFocus.isConnected&&o.returnFocus.focus()}b(e,"Dismissed",t,n)}}function O(e,t,n){var o=a.hosts.get(e||"global");if(!o)throw Error("Notification host is not mounted: "+(e||"global"));var i=typeof t=="string"?JSON.parse(t):t;if(!i||typeof i.Key!="string"||!i.Key.trim())throw Error("Notification requires a nonempty Key.");var r=L(i.Color),u=S(i.Duration,0,0,86400),c=o.messages.get(i.Key);if(n&&!c)throw Error("Notification key was not found: "+i.Key);c&&(clearTimeout(c.timer),c.element.remove(),o.messages.delete(i.Key));var s=f("article","blu-notification");P(s,r);var p=d(f("span","blu-notification__icon",r==="success"?"\u2713":r==="error"||r==="danger"||r==="warning"?"!":"i"),"aria-hidden","true"),y=f("div","blu-notification__copy");y.append(f("strong","",i.Title||"")),i.Description&&y.append(f("p","",i.Description));var l={key:i.Key,element:s,duration:u,remaining:u*1e3,returnFocus:c?c.returnFocus:document.activeElement},N=C("\xD7",function(){m(o,i.Key,"Close")});for(d(N,"aria-label","Dismiss "+(i.Title||"notification")),s.append(p,y,N),i.ActionLabel&&y.append(C(i.ActionLabel,function(){b(o,"Action",i.Key),m(o,i.Key,"Action")})),s.onmouseenter=function(){l.hover=!0,g(o,l)},s.onmouseleave=function(){l.hover=!1,g(o,l)},s.onfocusin=function(){l.focus=!0,g(o,l)},s.onfocusout=function(_){s.contains(_.relatedTarget)||(l.focus=!1,g(o,l))},o.messages.set(i.Key,l),o.body.append(s),k(o,i.Key,[i.Title,i.Description].filter(Boolean).join(". "),r==="error"||r==="danger"),g(o,l);o.messages.size>(o.options.MaxVisible||4);)m(o,o.messages.keys().next().value,"Limit");return i.Key}function U(e,t,n){return{sync:function(o,i,r,u){var c=R(o,i,r,u,e);if(c)try{var s=n?JSON.stringify(c.options):null;return(!n||c.renderSignature!==s)&&(t(c),c.renderSignature=s),h(c,""),""}catch(p){return c.renderSignature=void 0,c.cascaderSignature=null,M(c),h(c,p.message||String(p)),p.message||String(p)}},destroy:v}}function w(){return x("Notification",()=>{var e=U("Notification",H,!1);return e.show=function(t,n){return O(t,n,!1)},e.update=function(t,n){return O(t,n,!0)},e.dismiss=function(t,n){var o=a.hosts.get(t||"global");if(!o)throw Error("Notification host is not mounted.");n?m(o,n,"Programmatic"):Array.from(o.messages.keys()).forEach(function(i){m(o,i,"Programmatic")})},e})}function E(){return w(),window.BluUICommunityRuntime.Notification}function W(e,t,n={}){return w(),K(e,"Notification",t,o=>({Action:i=>n.Action?.(i),Dismissed:(i,r)=>n.Dismissed?.(i,r),Error:i=>n.Error?.(i)}),[],[])}function X(e,t="global"){return E().show(t,e)}function Y(e,t="global"){return E().update(t,e)}function Z(e="",t="global"){E().dismiss(t,e)}export{W as a,X as b,Y as c,Z as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as o,b as v,g as P}from"./chunk-EOKNLCNS.js";function M(g){let f=[...g.Rows],y=g.SortKey;y&&g.Columns.some(s=>s.Key===y&&s.Sortable)&&f.sort((s,C)=>{let u=s[y],b=C[y];if(u==null||b==null)return u==null?b==null?0:1:-1;let h=typeof u=="number"&&typeof b=="number"?u-b:String(u).localeCompare(String(b),void 0,{numeric:!0,sensitivity:"base"});return g.SortDirection==="Descending"?-h:h});let e=g.PageSize?Math.floor(P(g.PageSize,10,1,1e4)):Math.max(1,f.length),S=Math.max(1,Math.ceil(f.length/e)),a=Math.floor(P(g.Page,1,1,S));return{rows:f.slice((a-1)*e,a*e),page:a,pages:S,total:f.length,start:f.length?(a-1)*e+1:0,end:Math.min(a*e,f.length)}}function
|
|
1
|
+
import{a as o,b as v,g as P}from"./chunk-EOKNLCNS.js";function M(g){let f=[...g.Rows],y=g.SortKey;y&&g.Columns.some(s=>s.Key===y&&s.Sortable)&&f.sort((s,C)=>{let u=s[y],b=C[y];if(u==null||b==null)return u==null?b==null?0:1:-1;let h=typeof u=="number"&&typeof b=="number"?u-b:String(u).localeCompare(String(b),void 0,{numeric:!0,sensitivity:"base"});return g.SortDirection==="Descending"?-h:h});let e=g.PageSize?Math.floor(P(g.PageSize,10,1,1e4)):Math.max(1,f.length),S=Math.max(1,Math.ceil(f.length/e)),a=Math.floor(P(g.Page,1,1,S));return{rows:f.slice((a-1)*e,a*e),page:a,pages:S,total:f.length,start:f.length?(a-1)*e+1:0,end:Math.min(a*e,f.length)}}function O(g,f,y={}){let e={...f},S=!1,a=o("div","blu-table"),s=o("div","blu-table__scroll"),C=o("table"),u=o("caption"),b=o("thead"),h=o("tbody"),L=o("div","blu-table__footer"),A=o("span"),l=o("button","blu-table-button","Previous"),d=o("button","blu-table-button","Next"),E="";u.id=v(),s.tabIndex=0,s.setAttribute("role","region"),s.setAttribute("aria-labelledby",u.id),l.type=d.type="button",A.setAttribute("role","status"),L.append(A,l,d),C.append(u,b,h),s.append(C),a.append(s,L),g.append(a);function K(x){if(S)throw Error("Component is destroyed.");if(e={...e,...x},!e.Columns.length)throw Error("Table needs at least one column.");if(new Set(e.Columns.map(n=>n.Key)).size!==e.Columns.length)throw Error("Table column keys must be unique.");a.className="blu-table"+(e.ExtendedClass?" "+e.ExtendedClass:""),a.dataset.density=e.Density||"Comfortable",a.dataset.striped=String(!!e.Striped),C.setAttribute("aria-busy",String(!!e.Loading)),u.textContent=e.Caption;let R=document.activeElement instanceof HTMLElement&&a.contains(document.activeElement)?document.activeElement.dataset.focusKey:void 0,D=document.activeElement===d?d:document.activeElement===l?l:void 0,T=JSON.stringify([e.Columns.map(n=>[n.Key,n.Header,!!n.Sortable,n.Align||"Left"]),!!e.Actions?.length]);if(T!==E){E=T,b.replaceChildren();let n=o("tr");b.append(n);for(let t of e.Columns){let i=o("th");if(i.scope="col",i.style.textAlign=(t.Align||"Left").toLowerCase(),t.Sortable){let r=o("button","blu-table__sort",t.Header);r.type="button",r.dataset.focusKey="sort-"+t.Key;let m=o("span");m.setAttribute("aria-hidden","true"),r.append(m),r.onclick=()=>{let p=e.SortKey===t.Key&&e.SortDirection!=="Descending"?"Descending":"Ascending";K({SortKey:t.Key,SortDirection:p,Page:1}),y.SortChanged?.(t.Key,p)},i.append(r)}else i.textContent=t.Header;n.append(i)}if(e.Actions?.length){let t=o("th","","Actions");t.scope="col",n.append(t)}}e.Columns.forEach((n,t)=>{if(!n.Sortable)return;let i=b.rows[0].cells[t];i.setAttribute("aria-sort",e.SortKey===n.Key?(e.SortDirection||"Ascending").toLowerCase():"none"),i.querySelector("span").textContent=e.SortKey===n.Key?e.SortDirection==="Descending"?"\u2193":"\u2191":"\u2195"});let c=M(e);if(e.Page=c.page,h.replaceChildren(),e.Loading||!c.rows.length){let n=o("tr"),t=o("td","blu-table__empty",e.Loading?"Loading records\u2026":e.EmptyMessage||"No records yet.");t.colSpan=e.Columns.length+(e.Actions?.length?1:0),n.append(t),h.append(n)}else for(let[n,t]of c.rows.entries()){let i=o("tr");for(let r of e.Columns){let m=o("td");m.style.textAlign=(r.Align||"Left").toLowerCase(),m.textContent=r.Format?r.Format(t[r.Key],t):String(t[r.Key]??"\u2014"),i.append(m)}if(e.Actions?.length){let r=o("td"),m=o("div","blu-table__actions");for(let p of e.Actions){let w=o("button","blu-table-button",p.Label);w.type="button",w.disabled=typeof p.Disabled=="function"?p.Disabled(t):!!p.Disabled,w.dataset.focusKey="row-"+String(e.RowKey?t[e.RowKey]:n)+"-"+p.Key,e.RowKey&&w.setAttribute("aria-label",p.Label+" "+String(t[e.RowKey])),w.onclick=()=>y.RowAction?.(p.Key,t),m.append(w)}r.append(m),i.append(r)}h.append(i)}A.textContent=e.Loading?"Loading records\u2026":`${c.start}\u2013${c.end} of ${c.total} records`,l.hidden=d.hidden=!e.PageSize,l.disabled=!!e.Loading||c.page<=1,d.disabled=!!e.Loading||c.page>=c.pages,l.onclick=()=>{K({Page:c.page-1}),y.PageChanged?.(e.Page)},d.onclick=()=>{K({Page:c.page+1}),y.PageChanged?.(e.Page)},R&&Array.from(a.querySelectorAll("[data-focus-key]")).find(n=>n.dataset.focusKey===R)?.focus(),!e.Loading&&e.PageSize&&(D===d&&d.disabled?(l.disabled?s:l).focus():D===l&&l.disabled&&(d.disabled?s:d).focus())}try{K({})}catch(x){throw a.remove(),x}return{element:a,update:K,getState:()=>({Page:e.Page||1,SortKey:e.SortKey,SortDirection:e.SortDirection||"Ascending"}),destroy(){S||(S=!0,a.remove())}}}export{M as a,O as b};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as d,b as R,c as k,d as w,e as x,f as C}from"./chunk-EOKNLCNS.js";function E(u,l,c,i){let t={...l},s=!1,f=w(u,t),O=d("label","blu-choice"),n=d("input","blu-choice__input"),g=d("span","blu-choice__mark"),o=d("span"),h=d("span","blu-choice__state");n.type=i==="radio"?"radio":"checkbox",i==="switch"&&n.setAttribute("role","switch"),O.classList.add("blu-choice--"+i),g.setAttribute("aria-hidden","true"),h.setAttribute("aria-hidden","true"),O.append(n,g,o,h),f.body.append(O);let p=x(f.root,b);function e(a){p.check(),s&&i==="radio"&&!("Checked"in a)&&(t.Checked=n.checked),t={...t,...a},f.paint(t,[n]),f.label.hidden=!0,f.label.removeAttribute("for"),C(n,t),n.checked=!!t.Checked,n.indeterminate=i==="checkbox"&&!!t.Indeterminate,n.value=t.Value||"on",k(n,"aria-readonly",t.ReadOnly?"true":void 0),o.textContent=(t.Label||"")+(t.Required?" *":""),h.textContent=n.checked?t.OnText||"":t.OffText||"",s=!0}function b(){e({Checked:!!l.Checked,Indeterminate:!!l.Indeterminate})}return n.addEventListener("click",a=>{t.ReadOnly&&a.preventDefault()},{signal:p.signal}),n.addEventListener("keydown",a=>{t.ReadOnly&&["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"," "].includes(a.key)&&a.preventDefault()},{signal:p.signal}),n.addEventListener("change",()=>{t.Checked=n.checked,t.Indeterminate=!1,h.textContent=n.checked?t.OnText||"":t.OffText||"",c.Change?.(n.checked)},{signal:p.signal}),n.addEventListener("blur",()=>c.Blur?.(),{signal:p.signal}),e({}),{element:f.root,control:n,update:e,reset:b,getValue:()=>n.checked,focus:()=>n.focus(),validate:()=>n.reportValidity(),destroy:p.destroy}}function A(u,l={},c={}){return E(u,l,c,"checkbox")}function V(u,l={},c={}){return E(u,l,c,"switch")}function T(u,l,c={}){return E(u,l,c,"radio")}function _(u,l,c={}){let i={...l},t=[],s=w(u,i,!0),f=i.Name||R(),O=x(s.root,g);function n(o){O.check();let h=!t.length||!!o.Options&&(o.Options.length!==i.Options.length||o.Options.some((e,b)=>{let a=i.Options[b];return e.Value!==a.Value||e.Label!==a.Label||e.Description!==a.Description||e.Disabled!==a.Disabled})),p=t.find(e=>e===document.activeElement)?.value;if(i={...i,...o},new Set(i.Options.map(e=>e.Value)).size!==i.Options.length)throw Error("Radio option values must be unique.");s.body.className="blu-radio-group blu-radio-group--"+(i.Direction||"Vertical").toLowerCase(),h&&(s.body.replaceChildren(),t=i.Options.map((e,b)=>{let a=d("label","blu-choice blu-choice--radio"),r=d("input","blu-choice__input"),L=d("span","blu-choice__mark"),y=d("span");r.type="radio",r.id=s.id+"-"+b,r.value=e.Value,L.setAttribute("aria-hidden","true");let v=d("span","",e.Label);if(v.id=r.id+"-label",y.append(v),r.setAttribute("aria-labelledby",v.id),e.Description){let m=d("small","blu-choice__description",e.Description);m.id=r.id+"-description",y.append(m)}return a.append(r,L,y),s.body.append(a),r.onchange=()=>{r.checked&&(i.Value=r.value,c.Change?.(r.value))},r.onclick=m=>{i.ReadOnly&&m.preventDefault()},r.onkeydown=m=>{i.ReadOnly&&["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"," "].includes(m.key)&&m.preventDefault()},r.onblur=()=>c.Blur?.(),r})),s.paint(i,t),t.forEach((e,b)=>{C(e,i),e.name=i.Name||f,e.disabled=!!i.Disabled||!!i.Options[b].Disabled,e.checked=e.value===i.Value,k(e,"aria-readonly",i.ReadOnly?"true":void 0),i.Options[b].Description&&k(e,"aria-describedby",[e.getAttribute("aria-describedby"),e.id+"-description"].filter(Boolean).join(" "))}),h&&p!==void 0&&(t.find(e=>e.value===p&&!e.disabled)||t.find(e=>e.checked&&!e.disabled)||t.find(e=>!e.disabled))?.focus()}function g(){n({Value:l.Value||""})}return n({}),{element:s.root,update:n,reset:g,getValue:()=>t.find(o=>o.checked)?.value||"",focus:()=>(t.find(o=>o.checked&&!o.disabled)||t.find(o=>!o.disabled))?.focus(),validate:()=>t.filter(o=>!o.disabled).every(o=>o.reportValidity()),destroy:O.destroy}}export{A as a,V as b,T as c,_ as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as E}from"./chunk-MEEQNPGM.js";import{c as w,d as C}from"./chunk-5TEIXA4R.js";var i=w("common",()=>({instances:new Map,hosts:new Map,serial:0,overlays:[],inertState:new Map,oldOverflow:void 0}));function d(e,t,r){var o=document.createElement(e);return t&&(o.className=t),r!==void 0&&(o.textContent=r),o}function u(e,t,r){return e.setAttribute(t,String(r)),e}function D(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function
|
|
1
|
+
import{a as E}from"./chunk-MEEQNPGM.js";import{c as w,d as C}from"./chunk-5TEIXA4R.js";var i=w("common",()=>({instances:new Map,hosts:new Map,serial:0,overlays:[],inertState:new Map,oldOverflow:void 0}));function d(e,t,r){var o=document.createElement(e);return t&&(o.className=t),r!==void 0&&(o.textContent=r),o}function u(e,t,r){return e.setAttribute(t,String(r)),e}function D(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function F(e,t,r,o,n){t.addEventListener(r,o,n),e.cleanup.push(function(){t.removeEventListener(r,o,n)})}function v(e,t,r){var o=d("button","blu-common-button"+(r?" blu-common-button--primary":""),e);return o.type="button",o.addEventListener("click",t),o}function O(e,t,r){if(e=e||r,t.indexOf(e)<0)throw Error("Expected one of: "+t.join(", ")+".");return e}function b(e,t){if(!(e.dead||e.host._bluCommonOwner!==e.key||!e.events[t])){var r=Array.prototype.slice.call(arguments,2);try{Promise.resolve(e.events[t].apply(null,r)).catch(function(o){t!=="Error"&&p(e,o.message||String(o))})}catch(o){t!=="Error"&&p(e,o.message||String(o))}}}function p(e,t){e.error||(e.error=u(d("p","blu-common-error"),"role","alert"),e.host.append(e.error)),e.error.textContent=t,e.error.hidden=!t,t&&t!==e.lastError&&b(e,"Error",t),e.lastError=t}function x(e,t,r,o,n){var a=document.getElementById(e);if(!a)return null;o=o||e;var l=i.instances.get(o);return l&&l.host!==a&&(h(o),l=null),a._bluCommonOwner&&a._bluCommonOwner!==o&&h(a._bluCommonOwner),l||(l={host:a,key:o,kind:n,uid:"blu-common-"+ ++i.serial,cleanup:[],events:{},options:{}},i.instances.set(o,l)),a._bluCommonOwner=o,l.options=t||{},l.events=r||{},u(a,"data-blu-ready","true"),l}function h(e){var t=i.instances.get(e);t&&(t.dead=!0,m(t),t.dispose&&t.dispose(),t.cleanup.forEach(function(r){r()}),t.host._bluCommonOwner===e&&(delete t.host._bluCommonOwner,t.host.removeAttribute("data-blu-ready"),t.preserve||D(t.host)),i.instances.delete(e))}function y(e){return Array.from(e.querySelectorAll('button,a[href],input,select,textarea,[tabindex]:not([tabindex="-1"])')).filter(function(t){return!t.disabled&&!t.closest("[hidden],[inert]")&&t.getClientRects().length})}function L(){i.inertState.forEach(function(r,o){o.inert=r}),i.inertState.clear();var e=i.overlays[i.overlays.length-1];if(!e){i.oldOverflow!==void 0&&(document.body.style.overflow=i.oldOverflow),i.oldOverflow=void 0;return}i.oldOverflow===void 0&&(i.oldOverflow=document.body.style.overflow),document.body.style.overflow="hidden";for(var t=e.layer;t&&t.parentElement&&(Array.from(t.parentElement.children).forEach(function(r){r!==t&&r instanceof HTMLElement&&(i.inertState.set(r,r.inert),r.inert=!0)}),t=t.parentElement,t!==document.body););}function I(e,t,r,o){if(!e.overlayOpen){if(e.overlayOpen=!0,e.layer=t,e.panel=r,e.returnFocus=document.activeElement,t.hidden=!1,u(t,"popover","manual"),t.showPopover)try{t.showPopover()}catch{}i.overlays.push(e),L(),r.tabIndex=-1,e.overlayKey=function(n){if(i.overlays[i.overlays.length-1]===e){if(n.key==="Escape")n.preventDefault(),n.stopImmediatePropagation(),o();else if(n.key==="Tab"){var a=y(r),l=a[0]||r,c=a[a.length-1]||r;n.shiftKey&&(document.activeElement===l||!r.contains(document.activeElement))?(n.preventDefault(),c.focus()):!n.shiftKey&&(document.activeElement===c||!r.contains(document.activeElement))&&(n.preventDefault(),l.focus())}}},e.overlayFocus=function(n){i.overlays[i.overlays.length-1]===e&&!r.contains(n.target)&&(y(r)[0]||r).focus()},document.addEventListener("keydown",e.overlayKey,!0),document.addEventListener("focusin",e.overlayFocus,!0),(y(r)[0]||r).focus()}}function m(e){if(e.stopTracking&&e.stopTracking(),!!e.overlayOpen){e.overlayOpen=!1;var t=i.overlays[i.overlays.length-1]===e;if(i.overlays=i.overlays.filter(function(r){return r!==e}),document.removeEventListener("keydown",e.overlayKey,!0),document.removeEventListener("focusin",e.overlayFocus,!0),e.layer.hidePopover)try{e.layer.hidePopover()}catch{}e.layer.hidden=!0,L(),t&&e.returnFocus&&e.returnFocus.isConnected&&!e.returnFocus.closest("[inert],[hidden]")&&e.returnFocus.focus()}}function _(e,t){return e.host.querySelector('[data-blu-slot="'+t+'"],.blu-common-slot--'+t.toLowerCase())}function T(e){var t=e.options,r=O(t.Size,["Small","Medium","Large"],"Medium"),o=O(t.Placement,["Left","Right","Bottom"],"Right");if(e.preserve=!0,!e.layer){var n=_(e,"Content"),a=_(e,"Footer");e.layer=e.host,e.layer.classList.add("blu-overlay"),e.layer.classList.add("blu-overlay--"+e.kind.toLowerCase()),e.panel=u(d("section","blu-overlay__panel"),"role","dialog"),u(e.panel,"aria-modal","true"),e.heading=d("h2"),e.heading.id=e.uid+"-title",e.description=d("p","blu-overlay__description"),e.description.id=e.uid+"-description",e.close=v("\xD7",function(){s(e,"CloseButton")}),u(e.close,"aria-label","Close dialog"),e.close.classList.add("blu-overlay__close");var l=d("header","blu-overlay__header");l.append(e.heading,e.description,e.close),e.content=n||d("div","blu-common-slot--content"),e.content.classList.add("blu-overlay__content"),e.footer=d("footer","blu-overlay__footer"),e.customFooter=a||d("div"),e.actions=d("div","blu-overlay__actions"),e.cancel=v("Cancel",function(){s(e,"Cancel")}),e.confirm=v("Confirm",function(){e.options.IsBusy||b(e,"Confirm",e.options.InstanceKey||"")},!0),e.actions.append(e.cancel,e.confirm),e.footer.append(e.customFooter,e.actions),e.panel.append(l,e.content,e.footer),e.layer.append(e.panel),F(e,e.layer,"click",function(c){c.target===e.layer&&e.options.CloseOnBackdrop!==!1&&s(e,"Backdrop")}),e.dispose=function(){n&&e.host.append(n),a&&e.host.append(a),e.panel.remove()}}u(e.layer,"data-size",r.toLowerCase()),u(e.layer,"data-placement",o.toLowerCase()),e.heading.textContent=t.Title||"Details",e.description.textContent=t.Description||"",e.description.hidden=!t.Description,u(e.panel,"aria-labelledby",e.heading.id),t.Description?u(e.panel,"aria-describedby",e.description.id):e.panel.removeAttribute("aria-describedby"),u(e.panel,"aria-busy",!!t.IsBusy),e.close.disabled=e.cancel.disabled=!1,e.confirm.disabled=!!t.IsBusy,e.cancel.textContent=t.CancelLabel||"Cancel",e.confirm.textContent=t.IsBusy?"Working\u2026":t.ConfirmLabel||"Confirm",e.footer.hidden=t.ShowFooter===!1,e.actions.hidden=t.ShowDefaultActions===!1,t.IsOpen?I(e,e.layer,e.panel,function(){e.options.CloseOnEscape!==!1&&s(e,"Escape")}):(m(e),e.layer.hidden=!0)}function s(e,t){e.options.IsOpen=!1,m(e),b(e,"OpenChanged",!1,t)}function B(e,t,r){return{sync:function(o,n,a,l){var c=x(o,n,a,l,e);if(c)try{var g=r?JSON.stringify(c.options):null;return(!r||c.renderSignature!==g)&&(t(c),c.renderSignature=g),p(c,""),""}catch(f){return c.renderSignature=void 0,c.cascaderSignature=null,m(c),p(c,f.message||String(f)),f.message||String(f)}},destroy:h}}function S(){return C("Drawer",()=>B("Drawer",T,!1))}function R(e,t,r={}){return S(),E(e,"Drawer",t,o=>({OpenChanged:(n,a)=>(o({IsOpen:n}),r.OpenChanged?.(n,a)),Confirm:n=>r.Confirm?.(n),Error:n=>r.Error?.(n)}),[],["Content","Footer"])}export{R as a};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function K(s,c,z){let g=!1,u=0,b=0,L=0,k=0,x=!1,l=new Set,h=new Map,j=s.style.position;getComputedStyle(s).position==="static"&&(s.style.position="relative");let f=document.createElement("div");f.className="blu-data-motion-exits",f.inert=!0,f.setAttribute("aria-hidden","true"),s.append(f);function w(){let e=z(),o=s.getBoundingClientRect();return x=e.length>80||new Set(e.map(r=>r.key)).size!==e.length,x?new Map:new Map(e.map(r=>{let a=r.element.getBoundingClientRect(),p=l.has(r.element)?getComputedStyle(r.element).translate.split(/\s+/).map(Number.parseFloat):[];return[r.key,{row:r,top:a.top-o.top-(p[1]||0),left:a.left-o.left-(p[0]||0),width:a.width,height:a.height,text:r.cells.map(i=>i.textContent||""),widths:r.cells.map(i=>i.getBoundingClientRect().width)}]}))}let d=w();function M(e,o,r,a=!1){l.add(e),c.animate(e,o,{duration:r,easing:"ease-in-out"},a?"fade":"instant").then(()=>{e.getAnimations().length||l.delete(e)})}function E(){for(let{element:e,timer:o}of h.values())clearTimeout(o),c.cancel(e),l.delete(e),e.remove();h.clear()}function T(){g||(u&&(cancelAnimationFrame(u),u=0,R()),d=w())}function R(){if(g)return;u=0;let e=w();if(e.size===d.size&&[...e].every(([i,n])=>{let t=d.get(i);return t&&t.row.element===n.row.element&&Math.abs(t.top-n.top)<1&&Math.abs(t.left-n.left)<1&&t.width===n.width&&t.height===n.height&&t.text.join("\0")===n.text.join("\0")}))return;let r=++L;clearTimeout(b),E();for(let i of l)c.cancel(i);if(l.clear(),x||performance.now()<k){d=e;return}let a=s.getBoundingClientRect(),p=e.size<=30&&d.size<=30;for(let[i,n]of e){let t=d.get(i),y=n.row.element;if(!t)M(y,[{opacity:0},{opacity:1}],450,!0);else{let m=t.top-n.top;p&&Math.abs(m)>1&&Math.abs(m)<a.height&&M(y,[{translate:`0 ${m}px`},{translate:"0 0"}],650),n.row.cells.forEach((v,A)=>{let F=t.row.cellKeys.indexOf(n.row.cellKeys[A]);if(F>=0&&t.text[F]!==n.text[A]){let H=getComputedStyle(v).backgroundColor;M(v,[{backgroundColor:H},{backgroundColor:"rgba(105, 88, 240, .18)",offset:.35},{backgroundColor:H}],1400)}})}}if(p&&c.mode!=="off")for(let[i,n]of d){if(e.has(i)||!n.width||n.top+n.height<0||n.top>a.height)continue;let t=document.createElement("div");t.className="blu-data-motion-exit",t.style.cssText=`left:${n.left}px;top:${n.top}px;width:${n.width}px;height:${n.height}px;grid-template-columns:${n.widths.map(m=>m+"px").join(" ")};`;for(let m of n.text){let v=document.createElement("span");v.textContent=m,t.append(v)}f.append(t);let y=()=>{h.get(i)?.element===t&&(clearTimeout(h.get(i).timer),c.cancel(t),l.delete(t),t.remove(),h.delete(i))};h.set(i,{element:t,timer:setTimeout(y,(c.resolveOptions?.({duration:450}).duration??450)+250)}),l.add(t),c.play(t,"fade",{phase:"exit",duration:450,easing:"ease-in-out"}).then(y)}d=e,b=window.setTimeout(()=>{!g&&L===r&&(d=w())},(c.resolveOptions?.({duration:650}).duration??650)+50)}function B(e){e.every(o=>f.contains(o.target)||o.target===f)||u||(u=requestAnimationFrame(R))}let $=new MutationObserver(B);$.observe(s,{subtree:!0,childList:!0,characterData:!0,attributes:!0,attributeFilter:["row-index","row-id","style"]}),s.addEventListener("click",T,!0);let C=new WeakMap;for(let e of[s,...s.querySelectorAll("*")])C.set(e,`${e.scrollLeft},${e.scrollTop}`);let S=e=>{let o=e.target;if(!(o instanceof Element))return;let r=`${o.scrollLeft},${o.scrollTop}`,a=C.get(o)||"0,0";if(C.set(o,r),a!==r){k=performance.now()+150,u&&cancelAnimationFrame(u),u=0,E();for(let p of l)c.cancel(p);l.clear(),d=w()}};return s.addEventListener("scroll",S,!0),{capture:T,destroy(){if(!g){g=!0,$.disconnect(),cancelAnimationFrame(u),clearTimeout(b),E();for(let e of l)c.cancel(e);l.clear(),s.removeEventListener("click",T,!0),s.removeEventListener("scroll",S,!0),f.remove(),s.style.position=j}}}}export{K as a};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as W,f as Y}from"./chunk-6T677NSC.js";function Q(e,r,i){let d=e.getAttribute("data-blu-surface-motion");e.setAttribute("data-blu-surface-motion",i);let M=i==="cascader"?".blu-cascader__popup":i==="tree-select"?".blu-tree-select__popup":i==="picker"?".blu-picker__popup":i==="select"?".blu-select__popup":i==="palette"?".blu-command__dialog":".blu-overlay",n=null,h=!1,b=!1,t=0,o=0,c=0,E=0,x=!1,a=null,m=[],L,T,s="",u="",y="",w="#18223066",p="none",H="1",F="1",R=[],g=e.ownerDocument.defaultView;function I(l){return i==="palette"?l.open:!l.hidden}function J(){return i!=="drawer"?i==="modal"?"scale":"slide-down":n?.dataset.placement==="left"?"slide-right":n?.dataset.placement==="bottom"?"slide-up":"slide-left"}function q(){if(!n||!I(n))return;let l=n.querySelector(".blu-overlay__panel")||n;L=n.getBoundingClientRect(),T=l.getBoundingClientRect();let f=g.getComputedStyle(n);if(s=f.font,u=f.backgroundColor,y=f.color,H=l===n?"1":f.opacity,F=g.getComputedStyle(l).opacity,i==="palette"){let A=g.getComputedStyle(n,"::backdrop");w=A.backgroundColor,p=A.backdropFilter}R=[n,...Array.from(n.querySelectorAll("*"))].map(A=>A.scrollTop)}function P(){g.cancelAnimationFrame(o),o=0}function V(){g.cancelAnimationFrame(E),E=0}function N(){++t,g.clearTimeout(c),c=0;for(let l of m)r.cancel(l);m=[],a?.remove(),a=null}function j(l,f){Object.assign(l.style,{position:"fixed",boxSizing:"border-box",inset:"auto",left:f.left+"px",top:f.top+"px",width:f.width+"px",height:f.height+"px",maxWidth:"none",maxHeight:"none",margin:"0",transform:"none"})}function K(l){if(l.ownerDocument.querySelector(".blu-overlay:not([hidden]):not([data-blu-exit-visual]), dialog[open]")||!L?.width||!L.height||!l.isConnected||l.querySelector("video,canvas,iframe"))return;let f=l.cloneNode(!0),A=[l,...Array.from(l.querySelectorAll("*"))],O=[f,...Array.from(f.querySelectorAll("*"))];O.forEach((v,_)=>{_&&v.hasAttribute("popover")&&(v.hidden=!0);for(let B of["id","name","autofocus","popover","aria-live","aria-labelledby","aria-describedby","aria-controls"])v.removeAttribute(B);if(v instanceof HTMLInputElement){let B=A[_];v.value=B.type==="password"?"":B.value,v.checked=B.checked}else(v instanceof HTMLTextAreaElement||v instanceof HTMLSelectElement)&&(v.value=A[_].value);v.style.pointerEvents="none"}),f.hidden=!1,f.inert=!0,f.setAttribute("aria-hidden","true");let D=l.parentElement;if(i==="modal"||i==="drawer")a=f,D.append(f);else{let v=l.ownerDocument.createElement("div");if(v.className=i==="palette"?"blu-command blu-motion-exit-surface":"blu-motion-exit-surface",v.style.cssText=`position:fixed;inset:0;width:100vw;height:100dvh;margin:0;padding:0;border:0;max-width:none;max-height:none;background:${i==="palette"?w:"transparent"};backdrop-filter:${i==="palette"?p:"none"};overflow:visible;pointer-events:none;`,i==="palette"){let _=l.ownerDocument.createElement("div");_.className=f.className,_.append(...Array.from(f.childNodes)),j(_,L),Object.assign(_.style,{background:u,color:y,font:s}),v.append(_)}else j(f,L),f.style.font=s,v.append(f);a=v,D.append(v)}if(a.dataset.bluExitVisual=i,a.inert=!0,a.setAttribute("aria-hidden","true"),a.style.pointerEvents="none",a.setAttribute("popover","manual"),a.showPopover)try{a.showPopover()}catch{a.removeAttribute("popover")}let C=a.querySelector(".blu-overlay__panel, .blu-command__dialog, .blu-select__popup, .blu-picker__popup")||a;T&&(i==="modal"||i==="drawer")&&j(C,T),C.style.opacity=F,O.forEach((v,_)=>{v.scrollTop=R[_]||0});let z=t,G=[r.animate(a,[{opacity:H},{opacity:0}],{phase:"exit",duration:450,easing:"ease-in-out"},"fade")];if(m=[a],i==="drawer"){let v=l.dataset.placement==="left"?"translateX(-18px)":l.dataset.placement==="bottom"?"translateY(18px)":"translateX(18px)";m.push(C),G.push(r.animate(C,[{transform:"none"},{transform:v}],{duration:450,easing:"ease-in-out"}))}c=g.setTimeout(()=>{!b&&z===t&&N()},(r.resolveOptions?.({duration:450}).duration??(r.mode==="full"?450:200))+250),Promise.all(G).finally(()=>{!b&&z===t&&N()})}let k=new ResizeObserver(()=>{h&&q()});function X(){if(b)return;let l=e.matches(M)?e:e.querySelector(M);if(n!==l&&(n&&k.unobserve(n),n=l,h=!1,n&&k.observe(n)),!n)return;let f=I(n);if(f===h)return;h=f,P(),V(),N();let A=n.querySelector(".blu-overlay__panel")||n;if(r.cancel(A),r.cancel(n),f){q();let O=t;if((i==="modal"||i==="drawer")&&!x){let z=e.ownerDocument.activeElement;E=g.requestAnimationFrame(()=>{E=g.requestAnimationFrame(()=>{E=0,!(b||!h||O!==t)&&(x=!0,A.contains(z)&&e.ownerDocument.activeElement===z&&A.focus({preventScroll:!0}))})})}let D=[r.play(A,J(),{duration:i==="drawer"?450:350,easing:"ease-out"})];A!==n&&D.push(r.play(n,"fade",{duration:280}));let C=()=>{b||!h||O!==t||(q(),o=g.requestAnimationFrame(C))};o=g.requestAnimationFrame(C),Promise.all(D).then(()=>{!b&&h&&O===t&&(P(),q())})}else r.mode!=="off"&&!e.closest('.blu-motion-off, [data-blu-motion="off"]')&&K(n)}let $=new MutationObserver(X);$.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["hidden","open"]});let S=()=>{h&&q()};return g.addEventListener("resize",S),g.addEventListener("scroll",S,!0),e.ownerDocument.addEventListener("pointerdown",S,!0),e.ownerDocument.addEventListener("keydown",S,!0),X(),{sync:X,capture:q,destroy(){if(!b&&(b=!0,P(),V(),$.disconnect(),k.disconnect(),N(),d===null?e.removeAttribute("data-blu-surface-motion"):e.setAttribute("data-blu-surface-motion",d),g.removeEventListener("resize",S),g.removeEventListener("scroll",S,!0),e.ownerDocument.removeEventListener("pointerdown",S,!0),e.ownerDocument.removeEventListener("keydown",S,!0),n)){r.cancel(n);let l=n.querySelector(".blu-overlay__panel");l&&r.cancel(l)}}}}function ee(e,r){let i=e.getAttribute("data-blu-component-motion");e.setAttribute("data-blu-component-motion","tree");let d=new Map,M=!1,n=new ResizeObserver(t=>{for(let o of t){let c=o.target,E=d.get(c);E&&(!c.hidden||c.style.display==="block")&&(E.height=c.getBoundingClientRect().height)}});function h(){if(!M){for(let[t,o]of d)e.contains(t)||(++o.revision,r.cancel(t),o.release(),n.unobserve(t),d.delete(t));for(let t of e.querySelectorAll(".blu-tree__group")){let o=d.get(t);if(!o){o={open:!t.hidden,height:t.getBoundingClientRect().height,revision:0,release(){}},d.set(t,o),n.observe(t);continue}let c=!t.hidden;if(o.open===c)continue;let E=o.height,x=++o.revision;if(o.open=c,r.cancel(t),o.release(),o.release=()=>{},t.parentElement?.closest("[hidden]"))continue;if(!(r.mode==="full"&&!t.closest(".blu-motion-off,[data-blu-motion=off],[data-blu-motion=reduced]"))){c&&r.play(t,"fade",{duration:350});continue}let m=W(t,["display","overflow","height"]),L=t.inert,T=t.getAttribute("aria-hidden");o.release=()=>{m(),t.inert=L,T===null?t.removeAttribute("aria-hidden"):t.setAttribute("aria-hidden",T)},c||(t.inert=!0,t.setAttribute("aria-hidden","true"),t.style.setProperty("display","block","important"));let s=c?t.scrollHeight:0;t.style.overflow="hidden",t.style.height=s+"px",r.animate(t,[{height:E+"px"},{height:s+"px"}],{duration:650,easing:"ease-in-out"}).then(()=>{!M&&o.revision===x&&(o.release(),o.release=()=>{},o.height=t.getBoundingClientRect().height)})}}}let b=new MutationObserver(h);return h(),b.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["hidden"]}),{destroy(){if(!M){M=!0,b.disconnect(),n.disconnect();for(let[t,o]of d)++o.revision,r.cancel(t),o.release();d.clear(),i===null?e.removeAttribute("data-blu-component-motion"):e.setAttribute("data-blu-component-motion",i)}}}}function ne(e,r){let i=e.getAttribute("data-blu-component-motion");e.setAttribute("data-blu-component-motion","notifications");let d=new Map,M=new Set,n=!1,h=0,b=0,t=e.ownerDocument.defaultView,o=s=>{let u=s.target.closest(".blu-notifications > .blu-notification");!u||!e.contains(u)||(s.type==="focusin"?u.onfocusin?.call(u,s):u.onfocusout?.call(u,s))},c=!("onfocusin"in e),E=!("onfocusout"in e);c&&e.addEventListener("focusin",o),E&&e.addEventListener("focusout",o);let x=()=>{for(let[s,u]of d)s.isConnected&&(u.rect=s.getBoundingClientRect(),u.opacity=t.getComputedStyle(s).opacity)},a=new ResizeObserver(x);function m(s,u){if(!u.rect.width||r.mode==="off"||e.closest(".blu-motion-off,[data-blu-motion=off]"))return;let y=s.cloneNode(!0);for(let p of[y,...y.querySelectorAll("*")])for(let H of["id","name","role","aria-live","aria-labelledby","aria-describedby","aria-controls","tabindex","autofocus"])p.removeAttribute(H);y.dataset.bluExitVisual="notification",y.inert=!0,y.setAttribute("aria-hidden","true");let w=u.rect;Object.assign(y.style,{position:"fixed",left:w.left+"px",top:w.top+"px",width:w.width+"px",height:w.height+"px",boxSizing:"border-box",margin:"0",zIndex:"1300",pointerEvents:"none",animation:"none",opacity:u.opacity}),e.append(y),M.add(y),r.animate(y,[{opacity:u.opacity},{opacity:0}],{phase:"exit",duration:450,easing:"ease-in-out"},"fade").then(()=>{y.remove(),M.delete(y)})}function L(){if(n)return;let s=Array.from(e.querySelectorAll(".blu-notifications > .blu-notification"));if(s.length===d.size&&s.every(p=>d.has(p)))return;let u=++b;t.cancelAnimationFrame(h);let y=[];for(let[p,H]of d)s.includes(p)||(r.cancel(p),a.unobserve(p),d.delete(p),m(p,H));for(let p of s){let H=d.get(p);r.cancel(p);let F=p.getBoundingClientRect();if(d.set(p,{rect:F,opacity:t.getComputedStyle(p).opacity}),a.observe(p),!H)y.push(r.play(p,"slide-up",{duration:450,easing:"ease-out"}));else{let R=H.rect.left-F.left,g=H.rect.top-F.top;(Math.abs(R)>.5||Math.abs(g)>.5||Number(H.opacity)<.99)&&y.push(r.animate(p,[{transform:`translate(${R}px,${g}px)`,opacity:H.opacity},{transform:"none",opacity:1}],{duration:450,easing:"ease-in-out"}))}}let w=()=>{n||u!==b||(x(),h=t.requestAnimationFrame(w))};h=t.requestAnimationFrame(w),Promise.all(y).then(()=>{!n&&u===b&&(t.cancelAnimationFrame(h),x())})}let T=new MutationObserver(L);return T.observe(e,{childList:!0,subtree:!0}),L(),t.addEventListener("resize",x),t.addEventListener("scroll",x,!0),{destroy(){if(!n){n=!0,++b,T.disconnect(),a.disconnect(),t.cancelAnimationFrame(h),t.removeEventListener("resize",x),t.removeEventListener("scroll",x,!0),c&&e.removeEventListener("focusin",o),E&&e.removeEventListener("focusout",o);for(let s of d.keys())r.cancel(s);d.clear();for(let s of M)r.cancel(s),s.remove();M.clear(),i===null?e.removeAttribute("data-blu-component-motion"):e.setAttribute("data-blu-component-motion",i)}}}}function ie(e,r){let i=e.getAttribute("data-blu-component-motion");e.setAttribute("data-blu-component-motion","field");let d=!1,M=0,n="",h="",b=e.getBoundingClientRect().height,t=new Map,o=e.style.overflow,c=null;function E(a=!1){if(d)return;for(let[w,p]of t)e.contains(w)||(p.destroy(),t.delete(w));for(let w of Array.from(e.querySelectorAll(".blu-text__action")))t.has(w)||t.set(w,Y(w,r));let m=e.querySelector(".blu-field__error"),L=m&&!m.hidden&&m.textContent||"",T=[e.textContent,L,e.querySelector("textarea")?.style.height].join("|");if(!a&&T===h)return;h=T;let s=e.getBoundingClientRect().height;r.cancel(e),e.style.overflow=o;let u=e.getBoundingClientRect().height,y=++M;!a&&b>0&&u>0&&Math.abs(b-u)>1&&(e.style.overflow="visible",r.animate(e,[{height:s===u?b+"px":s+"px"},{height:u+"px"}],{duration:280,easing:"ease-in-out"}).finally(()=>{!d&&y===M&&(e.style.overflow=o)})),b=u,!a&&L&&!n&&m&&(r.play(m,"fade",{duration:350}),c=e.querySelector(".blu-text, .blu-textarea, .blu-select__trigger, .blu-radio-group, .blu-choice"),c&&r.animate(c,[{transform:"translateX(0)"},{transform:"translateX(-3px)",offset:.22},{transform:"translateX(2px)",offset:.5},{transform:"translateX(-1px)",offset:.75},{transform:"translateX(0)"}],{duration:550,easing:"ease-in-out"})),!L&&c&&(r.cancel(c),c=null),!L&&m&&r.cancel(m),n=L}E(!0);let x=new MutationObserver(a=>{a.some(m=>m.type==="childList"||m.attributeName!=="style"||m.target.matches("textarea"))&&E()});return x.observe(e,{subtree:!0,childList:!0,attributes:!0,attributeFilter:["hidden","aria-invalid","data-invalid","disabled","style"]}),{sync:()=>E(),destroy(){if(d)return;d=!0,++M,x.disconnect(),r.cancel(e),e.style.overflow=o,c&&r.cancel(c);let a=e.querySelector(".blu-field__error");a&&r.cancel(a);for(let m of t.values())m.destroy();t.clear(),i===null?e.removeAttribute("data-blu-component-motion"):e.setAttribute("data-blu-component-motion",i)}}}export{Q as a,ee as b,ne as c,ie as d};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/dist/command-palette.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import"./chunk-CNIIMGT3.js";import{a}from"./chunk-LF2HELEZ.js";import"./chunk-5TEIXA4R.js";import"./chunk-SDMH2EVD.js";export{a as createCommandPalette};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/* Opt-in web motion. Existing components remain unchanged without the integration. */
|
|
2
|
+
[data-blu-component-motion=field] :is(.blu-text,.blu-textarea,.blu-select__trigger,.blu-choice__mark,.blu-text__action){transition:background-color var(--blu-component-motion-duration,280ms) var(--blu-component-motion-ease,ease),border-color var(--blu-component-motion-duration,280ms) var(--blu-component-motion-ease,ease),box-shadow var(--blu-component-motion-duration,280ms) var(--blu-component-motion-ease,ease),color var(--blu-component-motion-duration,280ms) var(--blu-component-motion-ease,ease)}
|
|
3
|
+
[data-blu-component-motion=field] .blu-choice--switch .blu-choice__mark::after{transition:transform var(--blu-component-motion-duration,320ms) var(--blu-component-motion-ease,cubic-bezier(.2,.8,.2,1))}
|
|
4
|
+
[data-blu-component-motion=field] .blu-choice--radio .blu-choice__mark::after{content:'';width:7px;height:7px;border-radius:50%;background:currentColor;transform:scale(0);transition:transform var(--blu-component-motion-duration,280ms) var(--blu-component-motion-ease,ease-out)}
|
|
5
|
+
[data-blu-component-motion=field] .blu-choice--radio input:checked+.blu-choice__mark::after{transform:scale(1)}
|
|
6
|
+
[data-blu-component-motion=field] .blu-select__trigger::after{transition:transform var(--blu-component-motion-duration,280ms) var(--blu-component-motion-ease,ease-out)}
|
|
7
|
+
[data-blu-component-motion=field] .blu-select__trigger[aria-expanded=true]::after{transform:translateY(2px) rotate(225deg)}
|
|
8
|
+
[data-blu-exit-visual] :disabled{opacity:1!important}
|
|
9
|
+
/* Focus rings and validation semantics stay immediate; only decorative feedback moves. */
|
|
10
|
+
:is([data-blu-motion=reduced],[data-blu-motion=off],.blu-motion-off) [data-blu-component-motion=field] *,
|
|
11
|
+
:is([data-blu-motion=reduced],[data-blu-motion=off],.blu-motion-off) [data-blu-component-motion=field] *::after{transition:none!important;animation:none!important}
|
|
12
|
+
@media(prefers-reduced-motion:reduce){[data-blu-component-motion=field] *,[data-blu-component-motion=field] *::after{transition:none!important;animation:none!important}}
|
|
13
|
+
[data-blu-surface-motion] :is(.blu-select__option,.blu-command__option,.blu-control){transition:background-color var(--blu-component-motion-duration,280ms) var(--blu-component-motion-ease,ease),color var(--blu-component-motion-duration,280ms) var(--blu-component-motion-ease,ease),border-color var(--blu-component-motion-duration,280ms) var(--blu-component-motion-ease,ease)}
|
|
14
|
+
:is([data-blu-motion=reduced],[data-blu-motion=off],.blu-motion-off) [data-blu-surface-motion] *{transition:none!important}
|
|
15
|
+
@media(prefers-reduced-motion:reduce){[data-blu-surface-motion] *{transition:none!important}}
|
|
16
|
+
/* Side drawers meet both viewport edges; the content scrolls between fixed header/footer. */
|
|
17
|
+
[data-blu-surface-motion=drawer].blu-overlay:is([data-placement=left],[data-placement=right]){padding:0;align-items:stretch}
|
|
18
|
+
[data-blu-surface-motion=drawer].blu-overlay:is([data-placement=left],[data-placement=right])>.blu-overlay__panel{margin:0;height:100dvh;max-height:100dvh;min-height:0;border-radius:0}
|
|
19
|
+
[data-blu-surface-motion=drawer] :is(.blu-overlay__header,.blu-overlay__footer){flex-shrink:0}
|
|
20
|
+
/* Existing notification keyframes are replaced by the scoped controller. */
|
|
21
|
+
[data-blu-component-motion=notifications] .blu-notification{animation:none}
|
|
22
|
+
[data-blu-component-motion=tree] .blu-tree__row{transition:background-color var(--blu-component-motion-duration,280ms) var(--blu-component-motion-ease,ease),color var(--blu-component-motion-duration,280ms) var(--blu-component-motion-ease,ease)}
|
|
23
|
+
[data-blu-surface-motion=picker] :is(.blu-picker__button,.blu-picker__input,.blu-picker__day){transition:background-color var(--blu-component-motion-duration,280ms) var(--blu-component-motion-ease,ease),border-color var(--blu-component-motion-duration,280ms) var(--blu-component-motion-ease,ease),color var(--blu-component-motion-duration,280ms) var(--blu-component-motion-ease,ease)}
|
|
24
|
+
:is([data-blu-motion=reduced],[data-blu-motion=off],.blu-motion-off) [data-blu-component-motion=tree] *{transition:none!important}
|
|
25
|
+
@media(prefers-reduced-motion:reduce){[data-blu-component-motion=tree] *{transition:none!important}}
|
|
26
|
+
/* Web-only active-location markers: existing links retain focus and behavior. */
|
|
27
|
+
.blu-motion-navigation-marker{position:absolute;display:block;border-radius:3px;background:var(--bluui-primary,#5144ed);pointer-events:none;transform-origin:top left;z-index:1}
|
|
28
|
+
.blu-motion-navigation-marker[hidden]{display:none}
|
|
29
|
+
.blu-motion-navigation-marker[data-kind=pagination]{box-sizing:border-box;border:2px solid var(--bluui-primary,#5144ed);border-radius:8px;background:transparent}
|
|
30
|
+
[data-blu-navigation-motion] .blu-navigation-menu .blu-navigation-menu__link--active{color:var(--bluui-primary,#5144ed);background:var(--bluui-color-primary-soft,#efedff)}
|
|
31
|
+
@media(forced-colors:active){.blu-motion-navigation-marker{background:Highlight}}
|
|
32
|
+
@media(forced-colors:active){.blu-motion-navigation-marker[data-kind=pagination]{background:transparent;border-color:Highlight}}
|
|
33
|
+
|
|
34
|
+
/* Shared finite transition settings; continuous loading keeps its own cadence. */
|
|
35
|
+
.blu-motion-button.blu-button{transition-duration:var(--blu-component-motion-duration,var(--blu-motion-duration));transition-timing-function:var(--blu-component-motion-ease,var(--blu-motion-ease))}
|
|
36
|
+
/* A preference may sit on the component root itself, not only its parent. */
|
|
37
|
+
:is([data-blu-component-motion],[data-blu-surface-motion],[data-blu-navigation-motion]):is([data-blu-motion=reduced],[data-blu-motion=off],.blu-motion-off) *,
|
|
38
|
+
:is([data-blu-component-motion],[data-blu-surface-motion],[data-blu-navigation-motion]):is([data-blu-motion=reduced],[data-blu-motion=off],.blu-motion-off) *::before,
|
|
39
|
+
:is([data-blu-component-motion],[data-blu-surface-motion],[data-blu-navigation-motion]):is([data-blu-motion=reduced],[data-blu-motion=off],.blu-motion-off) *::after{transition:none!important;animation:none!important}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/** Local, opt-in web integration. Import after the component styles plus component-motion.css.
|
|
2
|
+
* Create the controller on a scope containing every component host (normally document.body).
|
|
3
|
+
* Dispose this collection before disposing its controller. No native entry points import this file.
|
|
4
|
+
*/
|
|
5
|
+
import type { MotionController } from './motion/controller.js';
|
|
6
|
+
import type { ComponentMotionSettings, ComponentMotionHandle } from './motion/component-settings.js';
|
|
7
|
+
export type { ComponentMotionSettings, ComponentMotionHandle } from './motion/component-settings.js';
|
|
8
|
+
export declare function createMotionComponents(motion: MotionController, initial?: ComponentMotionSettings): {
|
|
9
|
+
createSidebar: (host: HTMLElement, options: import("./types.js").SidebarOptions, events?: import("./types.js").SidebarEvents | undefined) => import("./types.js").Component<import("./types.js").SidebarOptions> & ComponentMotionHandle;
|
|
10
|
+
createPagination: (host: HTMLElement, options: import("./types.js").PaginationOptions, events?: import("./types.js").PaginationEvents | undefined) => import("./types.js").Component<import("./types.js").PaginationOptions> & ComponentMotionHandle;
|
|
11
|
+
createDatePicker: (host: HTMLElement, options?: import("./types.js").DatePickerOptions | undefined, events?: import("./types.js").PickerEvents | undefined) => import("./types.js").Component<import("./types.js").DatePickerOptions> & ComponentMotionHandle;
|
|
12
|
+
createTimePicker: (host: HTMLElement, options?: import("./types.js").TimePickerOptions | undefined, events?: import("./types.js").PickerEvents | undefined) => import("./types.js").Component<import("./types.js").TimePickerOptions> & ComponentMotionHandle;
|
|
13
|
+
createDateTimePicker: (host: HTMLElement, options?: import("./types.js").DateTimePickerOptions | undefined, events?: import("./types.js").PickerEvents | undefined) => import("./types.js").Component<import("./types.js").DateTimePickerOptions> & ComponentMotionHandle;
|
|
14
|
+
createDateRangePicker: (host: HTMLElement, options?: import("./types.js").DateRangePickerOptions | undefined, events?: import("./types.js").DateRangePickerEvents | undefined) => import("./types.js").Component<import("./types.js").DateRangePickerOptions> & ComponentMotionHandle;
|
|
15
|
+
createTreeView: (host: HTMLElement, options: import("./types.js").TreeViewOptions, events?: import("./types.js").TreeViewEvents | undefined) => import("./types.js").Component<import("./types.js").TreeViewOptions> & ComponentMotionHandle;
|
|
16
|
+
createNotification: (host: HTMLElement, options: import("./types.js").NotificationOptions, events?: import("./types.js").NotificationEvents | undefined) => import("./types.js").Component<import("./types.js").NotificationOptions> & ComponentMotionHandle;
|
|
17
|
+
createButton: (host: HTMLElement, initial: import("./motion/button.js").MotionButtonOptions, events?: import("./types.js").ButtonEvents | undefined) => import("./types.js").Component<import("./motion/button.js").MotionButtonOptions> & ComponentMotionHandle;
|
|
18
|
+
createModal: (host: HTMLElement, options: import("./types.js").ModalOptions, events?: import("./types.js").ModalEvents | undefined) => import("./types.js").Component<import("./types.js").ModalOptions> & ComponentMotionHandle;
|
|
19
|
+
createDrawer: (host: HTMLElement, options: import("./types.js").DrawerOptions, events?: import("./types.js").DrawerEvents | undefined) => import("./types.js").Component<import("./types.js").DrawerOptions> & ComponentMotionHandle;
|
|
20
|
+
createCommandPalette: (host: HTMLElement, options: import("./types.js").CommandPaletteOptions, events?: import("./types.js").CommandPaletteEvents | undefined) => import("./types.js").Component<import("./types.js").CommandPaletteOptions> & ComponentMotionHandle;
|
|
21
|
+
createTextInput: (host: HTMLElement, initial?: import("./text-input.js").TextInputOptions | undefined, events?: import("./text-input.js").TextInputEvents | undefined) => import("./text-input.js").FieldComponent<import("./text-input.js").TextInputOptions, string> & ComponentMotionHandle;
|
|
22
|
+
createTextArea: (host: HTMLElement, initial?: import("./text-input.js").TextAreaOptions | undefined, events?: import("./text-input.js").FieldEvents<string> | undefined) => import("./text-input.js").FieldComponent<import("./text-input.js").TextAreaOptions, string> & ComponentMotionHandle;
|
|
23
|
+
createCheckbox: (host: HTMLElement, options?: import("./text-input.js").CheckboxOptions | undefined, events?: import("./text-input.js").FieldEvents<boolean> | undefined) => import("./text-input.js").FieldComponent<import("./text-input.js").CheckboxOptions & import("./text-input.js").SwitchOptions, boolean> & ComponentMotionHandle;
|
|
24
|
+
createSwitch: (host: HTMLElement, options?: import("./text-input.js").SwitchOptions | undefined, events?: import("./text-input.js").FieldEvents<boolean> | undefined) => import("./text-input.js").FieldComponent<import("./text-input.js").CheckboxOptions & import("./text-input.js").SwitchOptions, boolean> & ComponentMotionHandle;
|
|
25
|
+
createRadioButton: (host: HTMLElement, options: import("./text-input.js").RadioButtonOptions, events?: import("./text-input.js").FieldEvents<boolean> | undefined) => import("./text-input.js").FieldComponent<import("./text-input.js").CheckboxOptions & import("./text-input.js").SwitchOptions, boolean> & ComponentMotionHandle;
|
|
26
|
+
createRadioGroup: (host: HTMLElement, initial: import("./text-input.js").RadioGroupOptions, events?: import("./text-input.js").FieldEvents<string> | undefined) => {
|
|
27
|
+
element: HTMLDivElement | HTMLFieldSetElement;
|
|
28
|
+
update: (patch: Partial<import("./text-input.js").RadioGroupOptions>) => void;
|
|
29
|
+
reset: () => void;
|
|
30
|
+
getValue: () => string;
|
|
31
|
+
focus: () => void | undefined;
|
|
32
|
+
validate: () => boolean;
|
|
33
|
+
destroy: () => void;
|
|
34
|
+
} & ComponentMotionHandle;
|
|
35
|
+
createFormField: (host: HTMLElement, initial?: import("./text-input.js").FormFieldOptions | undefined) => {
|
|
36
|
+
element: HTMLDivElement | HTMLFieldSetElement;
|
|
37
|
+
content: HTMLDivElement;
|
|
38
|
+
update: (patch: Partial<import("./text-input.js").FormFieldOptions>) => void;
|
|
39
|
+
destroy(): void;
|
|
40
|
+
} & ComponentMotionHandle;
|
|
41
|
+
createSelect: (host: HTMLElement, initial: import("./text-input.js").SelectOptions, events?: import("./text-input.js").FieldEvents<string> | undefined) => import("./text-input.js").FieldComponent<import("./text-input.js").SelectOptions, string> & ComponentMotionHandle;
|
|
42
|
+
/** Replace collection defaults. Existing per-component overrides stay in place. */
|
|
43
|
+
configure(settings?: ComponentMotionSettings): void;
|
|
44
|
+
destroy(): void;
|
|
45
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as v}from"./chunk-G6OW4OZM.js";import{a as x}from"./chunk-OLDA73XG.js";import{a as b}from"./chunk-3PODK22R.js";import{a as I}from"./chunk-2BSBXDOT.js";import{a as D}from"./chunk-EPPETNK6.js";import{a as E}from"./chunk-W3H7XTA7.js";import{a as A}from"./chunk-XVMJG26X.js";import{a as w}from"./chunk-LF2HELEZ.js";import{a as P}from"./chunk-HVR2UDFX.js";import{a as T}from"./chunk-V2YPIC6Z.js";import{a as k}from"./chunk-KBWB4OIF.js";import"./chunk-MEEQNPGM.js";import"./chunk-5TEIXA4R.js";import{a as G}from"./chunk-MYVLBALF.js";import"./chunk-RYD6RHRX.js";import{a as L}from"./chunk-UN2SLVFG.js";import"./chunk-HO6CYWED.js";import"./chunk-RWBLICYX.js";import"./chunk-YCLR3IE3.js";import{a as H,b as N}from"./chunk-AL2ETLJV.js";import"./chunk-FNX33PDD.js";import"./chunk-IO22GWON.js";import"./chunk-EPZGLHPD.js";import{a as F,b as R,c as j,d as B}from"./chunk-TZSX4OTV.js";import"./chunk-EOKNLCNS.js";import{a as V}from"./chunk-7DXFNK7C.js";import"./chunk-SDMH2EVD.js";import{a as d,d as O}from"./chunk-EPPSBHZR.js";import"./chunk-CSTCEBEK.js";import{a as l,b as z,c as J,d as K}from"./chunk-WJHCVECU.js";import{f as q,g as h}from"./chunk-6T677NSC.js";function be(Q,U={}){let f=d(U),c=!1,u=new Set,y=new Map;function o(e,t){return(...i)=>{if(c)throw Error("Motion components are destroyed.");let r=e(...i),a=O(r.element,Q,f),s;try{s=t(r,a.motion)}catch(g){throw a.destroy(),r.destroy(),g}let W=r.destroy.bind(r),M=!1,p={},S=()=>a.update({...f,...p}),X=Object.assign(r,{setMotion(g={}){if(M)throw Error("Component is destroyed.");p=d(g),p.mode==="inherit"&&delete p.mode,S()}});return r.destroy=()=>{M||(M=!0,s.destroy(),a.destroy(),W(),u.delete(r),y.delete(r))},y.set(r,S),u.add(r),X}}let n=(e,t)=>K(e.element,t),C=e=>(t,i)=>l(t.element,i,e),m=(e,t)=>l(e.element,t,"picker");return{createSidebar:o(k,(e,t)=>h(e.element,t,"sidebar")),createPagination:o(v,(e,t)=>h(e.element,t,"pagination")),createDatePicker:o(I,m),createTimePicker:o(D,m),createDateTimePicker:o(E,m),createDateRangePicker:o(A,m),createTreeView:o(b,(e,t)=>z(e.element,t)),createNotification:o(x,(e,t)=>J(e.element,t)),createButton:o(V,(e,t)=>{let i=e.element.querySelector("button"),r=q(i,t),a=e.update.bind(e);return e.update=s=>{a(s),i.classList.add("blu-motion-press")},r}),createModal:o(P,C("modal")),createDrawer:o(T,C("drawer")),createCommandPalette:o(w,C("palette")),createTextInput:o(H,n),createTextArea:o(N,n),createCheckbox:o(F,n),createSwitch:o(R,n),createRadioButton:o(j,n),createRadioGroup:o(B,n),createFormField:o(L,n),createSelect:o(G,(e,t)=>{let i=n(e,t),r=l(e.element,t,"select");return{destroy(){r.destroy(),i.destroy()}}}),configure(e={}){if(c)throw Error("Motion components are destroyed.");f=d(e);for(let t of y.values())t()},destroy(){if(!c){c=!0;for(let e of Array.from(u).reverse())e.destroy()}}}}export{be as createMotionComponents};
|
package/dist/content.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as b}from"./chunk-75BQYII5.js";import{a as c}from"./chunk-CZXYS6CY.js";import{a as d}from"./chunk-4RM3B4L7.js";import{a as g}from"./chunk-NB5PGEDY.js";import{a as r}from"./chunk-W27NAI62.js";import{a as e}from"./chunk-IIKSMXQE.js";import{a as f}from"./chunk-3ZS5YITP.js";import{a as m}from"./chunk-SEJUHKS5.js";import{a as p}from"./chunk-WHA6UO5X.js";import{a as t}from"./chunk-KR3UUTB2.js";import{a as x}from"./chunk-VBRSAI3K.js";import{a}from"./chunk-IHKCC6WJ.js";import{a as o}from"./chunk-U4ZP73V4.js";import"./chunk-MEEQNPGM.js";import"./chunk-5TEIXA4R.js";import"./chunk-SDMH2EVD.js";export{b as createCollectionLayout,t as createContentCarousel,c as createHeroSection,m as createImageCompare,g as createLogoCloud,f as createMediaCard,e as createMediaImage,x as createProfileCard,a as createQuoteCard,d as createSplitSection,p as createTextHighlight,r as createVideoLightbox,o as createVideoPlayer};
|
package/dist/core.css
CHANGED
|
@@ -1018,6 +1018,14 @@ The base shape remains visible when the animated overlay is removed. */
|
|
|
1018
1018
|
-servicestudio-height: 20px;
|
|
1019
1019
|
}
|
|
1020
1020
|
|
|
1021
|
+
/* The opt-in native motion adapter owns the shimmer. Avoid a second legacy
|
|
1022
|
+
wave, including when the adapter is Reduced or Off. Removing the adapter
|
|
1023
|
+
restores the existing IsAnimated behavior without changing its contract. */
|
|
1024
|
+
.blu-skeleton[data-blu-native-motion="loading-skeleton"]::after {
|
|
1025
|
+
animation: none !important;
|
|
1026
|
+
display: none !important;
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1021
1029
|
/* Font loading is headless; the scope supplies shared body and heading tokens. */
|
|
1022
1030
|
.blu-font-provider-block .blu-component-preview {display:none;}
|
|
1023
1031
|
[data-blu-font-scope] :is(h1,h2,h3,h4,h5,h6) {font-family:var(--blu-font-heading-family,var(--blu-font-family,inherit));}
|
package/dist/core.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import"./chunk-TIXCZTJ7.js";import"./chunk-RZ5YSY7Y.js";import"./chunk-UUZ4HU7L.js";import{a as t}from"./chunk-6XOMFIPU.js";import"./chunk-7KMRDQZG.js";import"./chunk-Y4WEMSE4.js";import{b as o,c as r,d as e,e as f,g as m,h as p}from"./chunk-O3MRWAI5.js";import"./chunk-MEEQNPGM.js";import"./chunk-5TEIXA4R.js";import"./chunk-SDMH2EVD.js";export{o as buttonElement,e as createBadge,r as createButton,f as createChip,p as createChipGroup,t as createFontProvider,m as createSkeleton};
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
.blu-data-motion-exits { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 3; border-radius: inherit; }
|
|
2
|
+
.blu-data-motion-exit { position: absolute; display: grid; background: var(--bluui-surface, #fff); color: var(--bluui-text-muted, #68758b); font-size: 13px; align-items: center; border-bottom: 1px solid var(--bluui-border, #dce3ed); pointer-events: none; }
|
|
3
|
+
.blu-data-motion-exit > span { padding: 10px 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
|
|
4
|
+
@media (forced-colors: active) { .blu-data-motion-exits { display: none; } }
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import type { TableOptions, TableEvents } from './form-layout/types.js';
|
|
2
|
+
import type { GridBasicOptions, GridBasicEvents } from './grid-basic.js';
|
|
3
|
+
import type { MotionController } from './motion/controller.js';
|
|
4
|
+
import { type ComponentMotionSettings } from './motion/component-settings.js';
|
|
5
|
+
export declare function createMotionData(motion: MotionController, defaults?: ComponentMotionSettings): {
|
|
6
|
+
configure(next?: ComponentMotionSettings): void;
|
|
7
|
+
createTable<Row extends object>(host: HTMLElement, initial: TableOptions<Row>, events?: TableEvents<Row>): {
|
|
8
|
+
element: HTMLDivElement;
|
|
9
|
+
update: (patch: Partial<TableOptions<Row>>) => void;
|
|
10
|
+
getState: () => {
|
|
11
|
+
Page: number;
|
|
12
|
+
SortKey: Extract<keyof Row, string> | undefined;
|
|
13
|
+
SortDirection: "Ascending" | "Descending";
|
|
14
|
+
};
|
|
15
|
+
destroy(): void;
|
|
16
|
+
} & {
|
|
17
|
+
setMotion: (next?: ComponentMotionSettings) => void;
|
|
18
|
+
};
|
|
19
|
+
createGridBasic(host: HTMLElement, initial: GridBasicOptions, events?: GridBasicEvents): import("./grid-basic.js").GridBasic & {
|
|
20
|
+
setMotion: (next?: ComponentMotionSettings) => void;
|
|
21
|
+
};
|
|
22
|
+
destroy(): void;
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as E}from"./chunk-H5IEGCAK.js";import{a as S,b as T}from"./chunk-T45FJNEQ.js";import"./chunk-EOKNLCNS.js";import{a as v}from"./chunk-GS67ZBLI.js";import{d as f}from"./chunk-EPPSBHZR.js";import"./chunk-CSTCEBEK.js";import{a as b}from"./chunk-WG4US4JH.js";function K(g,R={}){let u=v(R),y=new Set,d=!1;function w(o,a,l){let e=u.bind(l.update),c=o.destroy.bind(o),t=!1;return o.destroy=()=>{t||(t=!0,e.destroy(),a.destroy(),l.destroy(),c(),y.delete(o))},y.add(o),Object.assign(o,{setMotion:e.setMotion})}return{configure(o={}){if(d)throw Error("Motion data components are destroyed.");u.configure(o)},createTable(o,a,l={}){if(d)throw Error("Motion data components are destroyed.");let e=a;function c(n){if(!n.RowKey)throw Error("Animated tables require a stable RowKey.");let r=n.Rows.map(s=>s[n.RowKey]);if(r.some(s=>!["string","number"].includes(typeof s)||String(s)==="")||new Set(r.map(String)).size!==r.length)throw Error("Animated tables require unique, nonempty row keys.")}c(e);let t=T(o,a,l),p=t.update,i=f(t.element,g,u.settings),m=b(t.element,i.motion,()=>{let n=e.Loading?[]:S({...e,...t.getState()}).rows,r=[...t.element.querySelectorAll("tbody > tr")];return n.map((s,M)=>({key:String(s[e.RowKey]),element:r[M],cells:[...r[M].cells],cellKeys:[...e.Columns.map(C=>C.Key),"__actions"]}))});return t.update=n=>{let r={...e,...n};c(r),m.capture();let s=document.activeElement instanceof HTMLElement&&t.element.contains(document.activeElement)?document.activeElement:null;p(n),e=r,s&&!s.isConnected&&document.activeElement===document.body&&t.element.querySelector(".blu-table__scroll").focus({preventScroll:!0})},w(t,m,i)},createGridBasic(o,a,l={}){if(d)throw Error("Motion data components are destroyed.");let e=E(o,a,l),c=e.update,t=f(e.element,g,u.settings),p=b(e.element,t.motion,()=>[...e.element.querySelectorAll(".ag-center-cols-container > .ag-row[row-id], .ag-grid-scrolling-container > .ag-row[row-id]")].map(i=>{let m=[...i.querySelectorAll(".ag-cell")];return{key:i.getAttribute("row-id"),element:i,cells:m,cellKeys:m.map(n=>n.getAttribute("col-id"))}}));return e.update=i=>{p.capture(),c(i)},w(e,p,t)},destroy(){if(!d){d=!0;for(let o of[...y])o.destroy()}}}}export{K as createMotionData};
|
package/dist/data.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import"./chunk-4LHIQROI.js";import{a as f}from"./chunk-AICXIQKD.js";import{a as m}from"./chunk-RGTLYBOY.js";import{a as p}from"./chunk-J7BV4KHG.js";import{a as t}from"./chunk-W4SW4RWX.js";import{a as x}from"./chunk-BLDXIO7P.js";import{a}from"./chunk-KBOMPMSI.js";import"./chunk-ZDGZGAYG.js";import{a as r}from"./chunk-MCVO25PZ.js";import{a as e}from"./chunk-G6OW4OZM.js";import{a as o}from"./chunk-3PODK22R.js";import"./chunk-MEEQNPGM.js";import"./chunk-5TEIXA4R.js";import"./chunk-YLFXSHKZ.js";import{b}from"./chunk-T45FJNEQ.js";import"./chunk-EOKNLCNS.js";import"./chunk-SDMH2EVD.js";export{x as createDashboardCanvas,a as createDashboardPanel,p as createDescriptions,e as createPagination,m as createQRCode,t as createSparkline,f as createStatistic,b as createTable,r as createTimeline,o as createTreeView};
|
package/dist/date-picker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import"./chunk-KVOA55NE.js";import{a}from"./chunk-2BSBXDOT.js";import"./chunk-MEEQNPGM.js";import"./chunk-5TEIXA4R.js";import"./chunk-SDMH2EVD.js";export{a as createDatePicker};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import"./chunk-WGSTNXAQ.js";import{a}from"./chunk-XVMJG26X.js";import"./chunk-MEEQNPGM.js";import"./chunk-5TEIXA4R.js";import"./chunk-SDMH2EVD.js";export{a as createDateRangePicker};
|
package/dist/date-time-picker.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import"./chunk-Y4AXWTAD.js";import{a}from"./chunk-W3H7XTA7.js";import"./chunk-MEEQNPGM.js";import"./chunk-5TEIXA4R.js";import"./chunk-SDMH2EVD.js";export{a as createDateTimePicker};
|
package/dist/drawer.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import"./chunk-VSTKXZYY.js";import{a}from"./chunk-V2YPIC6Z.js";import"./chunk-MEEQNPGM.js";import"./chunk-5TEIXA4R.js";import"./chunk-SDMH2EVD.js";export{a as createDrawer};
|
package/dist/essentials.css
CHANGED
|
@@ -1183,6 +1183,14 @@ The base shape remains visible when the animated overlay is removed. */
|
|
|
1183
1183
|
-servicestudio-height: 20px;
|
|
1184
1184
|
}
|
|
1185
1185
|
|
|
1186
|
+
/* The opt-in native motion adapter owns the shimmer. Avoid a second legacy
|
|
1187
|
+
wave, including when the adapter is Reduced or Off. Removing the adapter
|
|
1188
|
+
restores the existing IsAnimated behavior without changing its contract. */
|
|
1189
|
+
.blu-skeleton[data-blu-native-motion="loading-skeleton"]::after {
|
|
1190
|
+
animation: none !important;
|
|
1191
|
+
display: none !important;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1186
1194
|
/* Shared controls used by this Block. Colors resolve through BluUITheme. */
|
|
1187
1195
|
.blu-common-button{
|
|
1188
1196
|
appearance:none;
|
package/dist/feedback.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import"./chunk-VAM3FPCS.js";import{a}from"./chunk-LGJVLEAH.js";import{a as b}from"./chunk-MBC4UVTS.js";import{a as c}from"./chunk-T45UAWNI.js";import{a as d}from"./chunk-7HXX66DB.js";import{a as g}from"./chunk-6EJIIQNF.js";import"./chunk-CNIIMGT3.js";import"./chunk-DRZM2AL3.js";import"./chunk-VSTKXZYY.js";import"./chunk-2HFI6CC6.js";import{a as m,b as p,c as t,d as x}from"./chunk-OLDA73XG.js";import{a as r}from"./chunk-LF2HELEZ.js";import{a as e}from"./chunk-HVR2UDFX.js";import{a as f}from"./chunk-V2YPIC6Z.js";import{i as o}from"./chunk-O3MRWAI5.js";import"./chunk-MEEQNPGM.js";import"./chunk-5TEIXA4R.js";import"./chunk-SDMH2EVD.js";export{c as createChat,d as createChatWidget,r as createCommandPalette,f as createDrawer,o as createEmptyState,g as createFloatButton,e as createModal,m as createNotification,b as createNotificationCenter,a as createTour,x as dismissNotification,p as showNotification,t as updateNotification};
|
package/dist/form-layout.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./chunk-5ENZVZGF.js";import
|
|
1
|
+
import"./chunk-5ENZVZGF.js";import"./chunk-BN3PDE5G.js";import"./chunk-VJVFHL6P.js";import"./chunk-IJ62ILKE.js";import"./chunk-YLFXSHKZ.js";import{a as g}from"./chunk-MYVLBALF.js";import"./chunk-RYD6RHRX.js";import{a as h,b as i,c as j,d as k}from"./chunk-UN2SLVFG.js";import{b as l}from"./chunk-T45FJNEQ.js";import"./chunk-HO6CYWED.js";import"./chunk-RWBLICYX.js";import"./chunk-YCLR3IE3.js";import{a as e,b as f}from"./chunk-AL2ETLJV.js";import"./chunk-FNX33PDD.js";import"./chunk-IO22GWON.js";import"./chunk-EPZGLHPD.js";import{a,b,c,d}from"./chunk-TZSX4OTV.js";import"./chunk-EOKNLCNS.js";export{a as createCheckbox,i as createColumns2,j as createColumns3,k as createColumns4,h as createFormField,c as createRadioButton,d as createRadioGroup,g as createSelect,b as createSwitch,l as createTable,f as createTextArea,e as createTextInput};
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as W}from"./chunk-75BQYII5.js";import{a as X}from"./chunk-CZXYS6CY.js";import{a as Y}from"./chunk-4RM3B4L7.js";import{a as Z}from"./chunk-NB5PGEDY.js";import{a as O}from"./chunk-W27NAI62.js";import{a as P}from"./chunk-IIKSMXQE.js";import{a as Q}from"./chunk-3ZS5YITP.js";import{a as R}from"./chunk-SEJUHKS5.js";import{a as S}from"./chunk-WHA6UO5X.js";import{a as T}from"./chunk-KR3UUTB2.js";import{a as U}from"./chunk-VBRSAI3K.js";import{a as V}from"./chunk-IHKCC6WJ.js";import"./chunk-4LHIQROI.js";import{a as D}from"./chunk-AICXIQKD.js";import{a as E}from"./chunk-RGTLYBOY.js";import{a as G}from"./chunk-J7BV4KHG.js";import{a as H}from"./chunk-W4SW4RWX.js";import{a as K}from"./chunk-BLDXIO7P.js";import{a as M}from"./chunk-KBOMPMSI.js";import{a as N}from"./chunk-U4ZP73V4.js";import"./chunk-VAM3FPCS.js";import{a as F}from"./chunk-LGJVLEAH.js";import{a as L}from"./chunk-MBC4UVTS.js";import{a as _}from"./chunk-T45UAWNI.js";import{a as $}from"./chunk-7HXX66DB.js";import{a as oo}from"./chunk-6EJIIQNF.js";import"./chunk-ZDGZGAYG.js";import{a as s}from"./chunk-MCVO25PZ.js";import{a as C}from"./chunk-2MQNFEGJ.js";import"./chunk-KVOA55NE.js";import"./chunk-V4ZQLQ7L.js";import"./chunk-Y4AXWTAD.js";import"./chunk-WGSTNXAQ.js";import"./chunk-CNIIMGT3.js";import"./chunk-DRZM2AL3.js";import"./chunk-VSTKXZYY.js";import"./chunk-7CEOCZ5L.js";import{a as l}from"./chunk-K2P2BHV5.js";import{a as I}from"./chunk-XIOI5PKM.js";import{a as J}from"./chunk-Y4TCT2K6.js";import{a as to}from"./chunk-3LWXPCWY.js";import{a as i}from"./chunk-C3CLLZH2.js";import{a as k}from"./chunk-4USJBOSC.js";import{a as q}from"./chunk-GEG3TNB4.js";import"./chunk-TIXCZTJ7.js";import"./chunk-RZ5YSY7Y.js";import"./chunk-MSMNEIWA.js";import"./chunk-UUZ4HU7L.js";import"./chunk-2HFI6CC6.js";import{a as po}from"./chunk-6XOMFIPU.js";import{a as d}from"./chunk-U73BNLZ3.js";import{a as g}from"./chunk-LJ4O6YTN.js";import"./chunk-7KMRDQZG.js";import"./chunk-Y4WEMSE4.js";import{a as B}from"./chunk-G6OW4OZM.js";import{a as w,b as y,c as z,d as A}from"./chunk-OLDA73XG.js";import{a as n}from"./chunk-3PODK22R.js";import{a as ro}from"./chunk-2BSBXDOT.js";import{a as eo}from"./chunk-EPPETNK6.js";import{a as fo}from"./chunk-W3H7XTA7.js";import{a as mo}from"./chunk-XVMJG26X.js";import{a as j}from"./chunk-LF2HELEZ.js";import{a as u}from"./chunk-HVR2UDFX.js";import{a as v}from"./chunk-V2YPIC6Z.js";import{a as h}from"./chunk-KBWB4OIF.js";import{a as xo}from"./chunk-H5IEGCAK.js";import{b as f,c as m,d as p,e as t,f as x,g as a,h as b,i as c}from"./chunk-O3MRWAI5.js";import"./chunk-MEEQNPGM.js";import"./chunk-5TEIXA4R.js";import{a as o,b as r,c as e}from"./chunk-64LOE3FU.js";import"./chunk-5ENZVZGF.js";import"./chunk-BN3PDE5G.js";import"./chunk-VJVFHL6P.js";import"./chunk-IJ62ILKE.js";import"./chunk-YLFXSHKZ.js";import{a as jo}from"./chunk-MYVLBALF.js";import"./chunk-RYD6RHRX.js";import{a as ko,b as lo,c as no,d as qo}from"./chunk-UN2SLVFG.js";import{b as so}from"./chunk-T45FJNEQ.js";import"./chunk-HO6CYWED.js";import"./chunk-RWBLICYX.js";import"./chunk-YCLR3IE3.js";import{a as ho,b as io}from"./chunk-AL2ETLJV.js";import"./chunk-FNX33PDD.js";import"./chunk-IO22GWON.js";import"./chunk-EPZGLHPD.js";import{a as ao,b as bo,c as co,d as go}from"./chunk-TZSX4OTV.js";import"./chunk-EOKNLCNS.js";import"./chunk-SDMH2EVD.js";export{f as buttonElement,I as createAppLayout,p as createBadge,d as createBreadcrumbs,m as createButton,x as createCard,C as createCascader,_ as createChat,$ as createChatWidget,ao as createCheckbox,t as createChip,b as createChipGroup,W as createCollectionLayout,lo as createColumns2,no as createColumns3,qo as createColumns4,j as createCommandPalette,T as createContentCarousel,K as createDashboardCanvas,M as createDashboardPanel,ro as createDatePicker,mo as createDateRangePicker,fo as createDateTimePicker,G as createDescriptions,v as createDrawer,c as createEmptyState,oo as createFloatButton,po as createFontProvider,ko as createFormField,xo as createGridBasic,X as createHeroSection,R as createImageCompare,Z as createLogoCloud,Q as createMediaCard,P as createMediaImage,u as createModal,w as createNotification,L as createNotificationCenter,g as createPageHeader,J as createPageLayout,B as createPagination,U as createProfileCard,E as createQRCode,V as createQuoteCard,co as createRadioButton,go as createRadioGroup,jo as createSelect,to as createShapeMask,h as createSidebar,a as createSkeleton,H as createSparkline,Y as createSplitSection,l as createSplitter,D as createStatistic,bo as createSwitch,so as createTable,io as createTextArea,S as createTextHighlight,ho as createTextInput,eo as createTimePicker,s as createTimeline,F as createTour,q as createTransferList,i as createTreeSelect,n as createTreeView,k as createUploadManager,O as createVideoLightbox,N as createVideoPlayer,A as dismissNotification,r as getAppearance,e as mountAppearanceSelector,o as setAppearance,y as showNotification,z as updateNotification};
|
package/dist/inputs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as
|
|
1
|
+
import{a as f}from"./chunk-2MQNFEGJ.js";import"./chunk-KVOA55NE.js";import"./chunk-V4ZQLQ7L.js";import"./chunk-Y4AXWTAD.js";import"./chunk-WGSTNXAQ.js";import{a as o}from"./chunk-C3CLLZH2.js";import{a as r}from"./chunk-4USJBOSC.js";import{a as e}from"./chunk-GEG3TNB4.js";import{a as m}from"./chunk-2BSBXDOT.js";import{a as p}from"./chunk-EPPETNK6.js";import{a as t}from"./chunk-W3H7XTA7.js";import{a as x}from"./chunk-XVMJG26X.js";import"./chunk-O3MRWAI5.js";import"./chunk-MEEQNPGM.js";import"./chunk-5TEIXA4R.js";import{a as i}from"./chunk-MYVLBALF.js";import"./chunk-RYD6RHRX.js";import{a as j}from"./chunk-UN2SLVFG.js";import"./chunk-HO6CYWED.js";import"./chunk-RWBLICYX.js";import"./chunk-YCLR3IE3.js";import{a as g,b as h}from"./chunk-AL2ETLJV.js";import"./chunk-FNX33PDD.js";import"./chunk-IO22GWON.js";import"./chunk-EPZGLHPD.js";import{a,b,c,d}from"./chunk-TZSX4OTV.js";import"./chunk-EOKNLCNS.js";import"./chunk-SDMH2EVD.js";export{f as createCascader,a as createCheckbox,m as createDatePicker,x as createDateRangePicker,t as createDateTimePicker,j as createFormField,c as createRadioButton,d as createRadioGroup,i as createSelect,b as createSwitch,h as createTextArea,g as createTextInput,p as createTimePicker,e as createTransferList,o as createTreeSelect,r as createUploadManager};
|
package/dist/layout.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import
|
|
1
|
+
import"./chunk-7CEOCZ5L.js";import{a as m}from"./chunk-K2P2BHV5.js";import{a as p}from"./chunk-XIOI5PKM.js";import{a as t}from"./chunk-Y4TCT2K6.js";import{a as x}from"./chunk-3LWXPCWY.js";import"./chunk-MSMNEIWA.js";import{a as r}from"./chunk-U73BNLZ3.js";import{a as e}from"./chunk-LJ4O6YTN.js";import{a as f}from"./chunk-KBWB4OIF.js";import{f as o}from"./chunk-O3MRWAI5.js";import"./chunk-MEEQNPGM.js";import"./chunk-5TEIXA4R.js";import"./chunk-BN3PDE5G.js";import"./chunk-VJVFHL6P.js";import"./chunk-IJ62ILKE.js";import{b as a,c as b,d as c}from"./chunk-UN2SLVFG.js";import"./chunk-EOKNLCNS.js";import"./chunk-SDMH2EVD.js";export{p as createAppLayout,r as createBreadcrumbs,o as createCard,a as createColumns2,b as createColumns3,c as createColumns4,e as createPageHeader,t as createPageLayout,x as createShapeMask,f as createSidebar,m as createSplitter};
|
package/dist/modal.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a}from"./chunk-
|
|
1
|
+
import"./chunk-DRZM2AL3.js";import{a}from"./chunk-HVR2UDFX.js";import"./chunk-MEEQNPGM.js";import"./chunk-5TEIXA4R.js";import"./chunk-SDMH2EVD.js";export{a as createModal};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { MotionController } from './controller.js';
|
|
2
|
+
export interface ActionMessages {
|
|
3
|
+
pending: string;
|
|
4
|
+
success: string;
|
|
5
|
+
error: string;
|
|
6
|
+
}
|
|
7
|
+
export type ActionResult = 'success' | 'error' | 'busy' | 'cancelled';
|
|
8
|
+
/** Feedback follows an actual action promise. No simulated success, timed reset,
|
|
9
|
+
* duplicated live region or overlapping action. The caller owns data and controls. */
|
|
10
|
+
export declare function createActionFeedback(status: HTMLElement, motion: MotionController): {
|
|
11
|
+
readonly pending: boolean;
|
|
12
|
+
run(action: () => unknown | Promise<unknown>, messages: ActionMessages): Promise<ActionResult>;
|
|
13
|
+
destroy(): void;
|
|
14
|
+
};
|