@mhmo91/schmancy 0.2.107 → 0.2.109

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/area.cjs +1 -1
  2. package/dist/area.component--h6lcDbh.cjs +8 -0
  3. package/dist/area.component--h6lcDbh.cjs.map +1 -0
  4. package/dist/{area.component-8AQUkma0.js → area.component-D9jjR4-z.js} +32 -32
  5. package/dist/area.component-D9jjR4-z.js.map +1 -0
  6. package/dist/area.js +1 -1
  7. package/dist/card.cjs +1 -1
  8. package/dist/card.js +1 -1
  9. package/dist/content-drawer.cjs +1 -1
  10. package/dist/content-drawer.js +1 -1
  11. package/dist/index.cjs +1 -1
  12. package/dist/index.js +3 -3
  13. package/dist/nav-drawer.cjs +1 -1
  14. package/dist/nav-drawer.js +1 -1
  15. package/dist/notification.cjs +1 -1
  16. package/dist/notification.js +1 -1
  17. package/dist/outlet-BLqhyQ8l.cjs +30 -0
  18. package/dist/outlet-BLqhyQ8l.cjs.map +1 -0
  19. package/dist/{outlet-Us3Wi-TE.js → outlet-C_zQSPJ5.js} +25 -25
  20. package/dist/outlet-C_zQSPJ5.js.map +1 -0
  21. package/dist/teleport.cjs +1 -1
  22. package/dist/{teleport.component-CH--tF4H.cjs → teleport.component-C0_49--j.cjs} +2 -2
  23. package/dist/{teleport.component-CH--tF4H.cjs.map → teleport.component-C0_49--j.cjs.map} +1 -1
  24. package/dist/{teleport.component-Kcn8tqQF.js → teleport.component-DgMoPN3L.js} +3 -3
  25. package/dist/{teleport.component-Kcn8tqQF.js.map → teleport.component-DgMoPN3L.js.map} +1 -1
  26. package/dist/teleport.js +1 -1
  27. package/package.json +1 -1
  28. package/types/src/area/area.component.d.ts +17 -8
  29. package/dist/area.component-8AQUkma0.js.map +0 -1
  30. package/dist/area.component-nkE9S6b3.cjs +0 -8
  31. package/dist/area.component-nkE9S6b3.cjs.map +0 -1
  32. package/dist/outlet-IKjizKaN.cjs +0 -30
  33. package/dist/outlet-IKjizKaN.cjs.map +0 -1
  34. package/dist/outlet-Us3Wi-TE.js.map +0 -1
package/dist/area.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./area.component-nkE9S6b3.cjs");exports.FINDING_MORTIES=e.FINDING_MORTIES,exports.HERE_RICKY=e.HERE_RICKY,exports.HISTORY_STRATEGY=e.HISTORY_STRATEGY,Object.defineProperty(exports,"SchmancyArea",{enumerable:!0,get:()=>e.SchmancyArea}),exports.area=e.area,exports.routerHistory=e.routerHistory;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./area.component--h6lcDbh.cjs");exports.FINDING_MORTIES=e.FINDING_MORTIES,exports.HERE_RICKY=e.HERE_RICKY,exports.HISTORY_STRATEGY=e.HISTORY_STRATEGY,Object.defineProperty(exports,"SchmancyArea",{enumerable:!0,get:()=>e.SchmancyArea}),exports.area=e.area,exports.routerHistory=e.routerHistory;
2
2
  //# sourceMappingURL=area.cjs.map
@@ -0,0 +1,8 @@
1
+ "use strict";const e=require("rxjs");require("lit/directives/class-map.js"),require("lit/directives/style-map.js");const y=require("./litElement.mixin-9sOZ1KTq.cjs");require("./tailwind.mixin-DFM3jd9q.cjs");const l=require("lit"),c=require("lit/decorators.js"),g=require("./index-DyJ0oDpR.cjs"),S=new e.Subject,d="FINDING_MORTIES",f="HERE_RICKY";class p{constructor(){this.prettyURL=!1,this.mode="HISTORY",this.request=new e.ReplaySubject(1),this.current=new Map,this.$current=new e.ReplaySubject(1),this.enableHistoryMode=!0,this.findingMortiesEvent=new CustomEvent(d),this.$current.next(this.current)}find(){return e.zip([e.fromEvent(window,f).pipe(e.map(t=>t.detail),e.bufferTime(0),e.tap(console.log)),e.of(1).pipe(e.tap(()=>window.dispatchEvent(this.findingMortiesEvent)))]).pipe(e.map(([t])=>t),e.timeout(1))}push(t){this.request.next(t)}pop(t){const o=JSON.parse(JSON.stringify(s.state));delete o[t],history.replaceState(null,"",encodeURIComponent(JSON.stringify(o)))}static getInstance(){return p.instance||(p.instance=new p),p.instance}get state(){const t=location.pathname.split("/").pop();let o={};try{o=t?JSON.parse(decodeURIComponent(t)):{}}catch{o={}}return o}}const s=p.getInstance();var h=(n=>(n.push="push",n.replace="replace",n.pop="pop",n.silent="silent",n))(h||{}),w=Object.defineProperty,E=Object.getOwnPropertyDescriptor,m=(n,t,o,r)=>{for(var i,a=r>1?void 0:r?E(t,o):t,u=n.length-1;u>=0;u--)(i=n[u])&&(a=(r?i(t,o,a):i(a))||a);return r&&a&&w(t,o,a),a};exports.SchmancyArea=class extends y.$LitElement(l.css`
2
+ :host {
3
+ position: relative;
4
+ display: block;
5
+ inset: 0;
6
+ }
7
+ `){constructor(){super(...arguments),this.mappings=[]}getComponentFromMappings(n,t){return e.of(location.pathname).pipe(e.map(o=>{const r=n.find(a=>a.pathname===o);if(!r)throw new Error(`No mapping found for pathname: ${o}`);const i=r.routes.find(a=>a.area===this.name);if(!i)throw new Error(`No route found for area: ${this.name} in pathname: ${o}`);return i}),e.map(o=>({area:this.name,component:o.component||this.default,state:o.state,historyStrategy:t})),e.catchError(()=>this.default?e.of({area:this.name,component:this.default,historyStrategy:t}):e.EMPTY))}getComponentFromPathname(n,t){return e.of(n).pipe(e.map(o=>o.split("/").pop()??""),e.map(o=>decodeURIComponent(o)),e.map(o=>JSON.parse(o)),e.map(o=>o[this.name]),e.map(o=>!o&&this.default?{component:this.default,state:void 0}:o),e.filter(o=>g.libExports.isPresent(o)),e.map(o=>({area:this.name,component:o.component??this.default,state:o.state,historyStrategy:t})),e.map(o=>o),e.catchError(()=>this.default?e.of({area:this.name,component:this.default,historyStrategy:t}):e.EMPTY))}firstUpdated(){if(!this.name)throw new Error("Area name or default component not set");e.merge(e.of(location.pathname).pipe(e.switchMap(n=>this.getComponentFromPathname(n,h.silent)),e.take(1)),s.request.pipe(e.filter(({area:n})=>n===this.name)),e.fromEvent(window,"popstate").pipe(e.map(n=>n.target.location.pathname),e.switchMap(n=>this.getComponentFromPathname(n,h.silent)))).pipe(e.filter(n=>!!n.component),e.takeUntil(this.disconnecting),e.distinctUntilChanged((n,t)=>{let o,r;return typeof n.component!="function"&&(typeof n.component=="string"&&(o=n.component),typeof t.component!="function"&&(typeof t.component=="string"&&(r=t.component),(r==null?void 0:r.replaceAll("-","").toLowerCase())===(o==null?void 0:o.replaceAll("-","").toLowerCase())))})).pipe(e.switchMap(n=>{const t=n.component;return t instanceof Promise?e.from(t).pipe(e.map(o=>({component:o.exports.default,route:n}))):e.of({component:t,route:n})}),e.map(({component:n,route:t})=>typeof n=="string"?{component:document.createElement(n),route:t}:n instanceof HTMLElement?{component:n,route:t}:typeof n=="function"?{component:new n,route:t}:void 0),e.distinctUntilChanged((n,t)=>n.component.tagName===t.component.tagName),e.map(({component:n,route:t})=>{var i,a;const o=(i=this.shadowRoot)==null?void 0:i.children[0],r=!!o;return o.remove(),n.classList.add("opacity-0"),(a=this.shadowRoot)==null||a.append(n),n.animate([{opacity:0},{opacity:1}],{duration:r?150:100,easing:"cubic-bezier(0.25, 0.8, 0.25, 1)",fill:"forwards"}),{component:n,route:t}}),e.tap(({component:n,route:t})=>{t.historyStrategy===void 0||t.historyStrategy==="push"?history.pushState(t.state,"",this.newPath(n.tagName,t)):t.historyStrategy&&["replace","pop"].includes(t.historyStrategy)&&history.replaceState(t.state,"",this.newPath(n.tagName,t)),s.current.set(this.name,{component:n.tagName,state:t.state,area:this.name}),s.$current.next(s.current)}),e.takeUntil(this.disconnecting)).subscribe()}newPath(n,t){const o=location.pathname.split("/").pop();let r={};try{r=o?JSON.parse(decodeURIComponent(o)):{}}catch{r={}}t.state=t.state??{};const i=t.clearQueryParams?this.queryParamClear(t.clearQueryParams):document.location.search;return encodeURIComponent(JSON.stringify({...r,[this.name]:{component:n.toLowerCase(),state:t.state}})).concat(`${i}`)}queryParamClear(n){if(!n)return"";const t=new URLSearchParams(location.search);return n.forEach(o=>t.delete(o)),t.toString()===""?"":`?${t.toString()}`}checkForTeleportationRequests(){return e.fromEvent(window,"FLIP_REQUEST").pipe(e.map(n=>n.detail),e.tap(()=>{this.dispatchEvent(new CustomEvent("FLIP_STARTED"))}),e.timeout(0),e.catchError(()=>e.of(null)),e.takeUntil(this.disconnecting))}disconnectedCallback(){super.disconnectedCallback(),this.disconnecting.next(!0)}render(){return l.html` <slot> </slot> `}},m([c.property()],exports.SchmancyArea.prototype,"name",2),m([c.property()],exports.SchmancyArea.prototype,"default",2),m([c.property({type:Array})],exports.SchmancyArea.prototype,"mappings",2),exports.SchmancyArea=m([c.customElement("schmancy-area")],exports.SchmancyArea),exports.FINDING_MORTIES=d,exports.HERE_RICKY=f,exports.HISTORY_STRATEGY=h,exports.area=s,exports.routerHistory=S;
8
+ //# sourceMappingURL=area.component--h6lcDbh.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"area.component--h6lcDbh.cjs","sources":["../src/area/area.service.ts","../src/area/router.types.ts","../src/area/area.component.ts"],"sourcesContent":["import { ReplaySubject, Subject, bufferTime, fromEvent, map, of, tap, timeout, zip } from 'rxjs'\nimport { SchmancyTeleportation } from '../teleport'\nimport { ActiveRoute, RouteAction } from './router.types'\n\nexport const routerHistory = new Subject<RouteAction>()\n\nexport const FINDING_MORTIES = 'FINDING_MORTIES'\nexport const HERE_RICKY = 'HERE_RICKY'\nexport type HERE_RICKY_EVENT = CustomEvent<{\n\tcomponent: SchmancyTeleportation\n}>\nexport type FINDING_MORTIES_EVENT = CustomEvent<{\n\tcomponent: SchmancyTeleportation\n}>\n\nclass AreaService {\n\tprivate static instance: AreaService\n\tpublic prettyURL = false\n\tpublic mode: 'SILENT' | 'HISTORY' = 'HISTORY'\n\tpublic request = new ReplaySubject<RouteAction>(1)\n\tpublic current = new Map<string, ActiveRoute>()\n\tpublic $current = new ReplaySubject<Map<string, ActiveRoute>>(1)\n\tpublic enableHistoryMode = true\n\tprivate findingMortiesEvent = new CustomEvent<FINDING_MORTIES_EVENT['detail']>(FINDING_MORTIES)\n\n\tconstructor() {\n\t\tthis.$current.next(this.current)\n\t}\n\n\tfind() {\n\t\treturn zip([\n\t\t\tfromEvent<HERE_RICKY_EVENT>(window, HERE_RICKY).pipe(\n\t\t\t\tmap(e => e.detail),\n\t\t\t\tbufferTime(0),\n\t\t\t\ttap(console.log),\n\t\t\t),\n\t\t\tof(1).pipe(tap(() => window.dispatchEvent(this.findingMortiesEvent))),\n\t\t]).pipe(\n\t\t\tmap(([component]) => component),\n\t\t\ttimeout(1),\n\t\t)\n\t}\n\n\tpush(r: RouteAction) {\n\t\tthis.request.next(r)\n\t}\n\n\tpop(name: string) {\n\t\tconst newState = JSON.parse(JSON.stringify(area.state))\n\t\tdelete newState[name]\n\t\tconsole.log(area.state, newState)\n\t\thistory.replaceState(null, '', encodeURIComponent(JSON.stringify(newState)))\n\t}\n\tstatic getInstance() {\n\t\tif (!AreaService.instance) {\n\t\t\tAreaService.instance = new AreaService()\n\t\t}\n\t\treturn AreaService.instance\n\t}\n\n\tget state() {\n\t\tconst pathname = location.pathname.split('/').pop()\n\t\tlet areaState = {}\n\t\ttry {\n\t\t\tareaState = pathname ? JSON.parse(decodeURIComponent(pathname)) : {}\n\t\t} catch {\n\t\t\tareaState = {}\n\t\t}\n\t\treturn areaState\n\t}\n}\n\nexport const area = AreaService.getInstance()\nexport default area\n","export type RouteAction = {\n\tcomponent: CustomElementConstructor | string | HTMLElement\n\tarea: string\n\tstate?: object\n\thistoryStrategy?: THistoryStrategy\n\tclearQueryParams?: string[] | null\n}\n\nexport type ActiveRoute = {\n\tcomponent: string\n\tarea: string\n\tstate?: object\n}\n\nexport type THistoryStrategy = 'push' | 'replace' | 'pop' | 'silent'\n\nexport enum HISTORY_STRATEGY {\n\tpush = 'push',\n\treplace = 'replace',\n\tpop = 'pop',\n\tsilent = 'silent',\n}\n","import { $LitElement } from '@mixins/index'\nimport { TemplateResult, css, html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport {\n\tEMPTY,\n\tcatchError,\n\tdistinctUntilChanged,\n\tfilter,\n\tfrom,\n\tfromEvent,\n\tmap,\n\tmerge,\n\tof,\n\tswitchMap,\n\ttake,\n\ttakeUntil,\n\ttap,\n\ttimeout,\n} from 'rxjs'\nimport { isPresent } from 'ts-is-present'\nimport area from './area.service'\nimport { HISTORY_STRATEGY, RouteAction } from './router.types'\n\n/**\n * Type describing the route for an area.\n */\ntype TRouteArea = {\n\tcomponent: string\n\tstate: object | undefined\n}\n\n/**\n * Type for a mapping entry. Each mapping specifies a pathname and an array of route definitions.\n * Each route definition contains an area name, a component (or promise/constructor/template),\n * and optionally, a state.\n */\nexport type AreaPathnames = {\n\tpathname: string\n\troutes: Array<{\n\t\tarea: string\n\t\tcomponent: string | Promise<NodeModule> | CustomElementConstructor | TemplateResult<1>\n\t\tstate?: object\n\t}>\n}\n\n@customElement('schmancy-area')\nexport class SchmancyArea extends $LitElement(css`\n\t:host {\n\t\tposition: relative;\n\t\tdisplay: block;\n\t\tinset: 0;\n\t}\n`) {\n\t/**\n\t * The name of the router outlet.\n\t * @attr\n\t * @type {string}\n\t * @public\n\t * @required\n\t */\n\t@property() name!: string\n\n\t/**\n\t * The default component to use if no matching route is found.\n\t */\n\t@property() default!: string | Promise<NodeModule> | CustomElementConstructor | TemplateResult<1>\n\n\t/**\n\t * (Optional) A mappings property that can be set on the element.\n\t * This property is only available for external use and does not alter\n\t * the component's built-in routing behavior.\n\t *\n\t * Example:\n\t * [\n\t * {\n\t * pathname: '/home',\n\t * routes: [\n\t * { area: 'main', component: 'home-view', state: { foo: 'bar' } },\n\t * { area: 'sidebar', component: 'menu-view' }\n\t * ]\n\t * },\n\t * {\n\t * pathname: '/about',\n\t * routes: [\n\t * { area: 'main', component: 'about-view' },\n\t * { area: 'sidebar', component: 'info-view' }\n\t * ]\n\t * }\n\t * ]\n\t */\n\t@property({ type: Array }) mappings: AreaPathnames[] = []\n\n\t/**\n\t * NEW PUBLIC API:\n\t * Accepts an array of route mappings and returns an observable emitting\n\t * the RouteAction for this area (if found) based on the current location's pathname.\n\t *\n\t * Note: This method does not affect the component's built-in logic.\n\t *\n\t * @param mappings - Array of route mapping objects.\n\t * @param historyStrategy - The history strategy to use (e.g. PUSH, REPLACE, SILENT).\n\t * @returns An RxJS Observable that emits a RouteAction.\n\t */\n\tpublic getComponentFromMappings(mappings: AreaPathnames[], historyStrategy: HISTORY_STRATEGY) {\n\t\treturn of(location.pathname).pipe(\n\t\t\tmap(currentPath => {\n\t\t\t\tconst mapping = mappings.find(m => m.pathname === currentPath)\n\t\t\t\tif (!mapping) {\n\t\t\t\t\tthrow new Error(`No mapping found for pathname: ${currentPath}`)\n\t\t\t\t}\n\t\t\t\tconst routeForArea = mapping.routes.find(route => route.area === this.name)\n\t\t\t\tif (!routeForArea) {\n\t\t\t\t\tthrow new Error(`No route found for area: ${this.name} in pathname: ${currentPath}`)\n\t\t\t\t}\n\t\t\t\treturn routeForArea\n\t\t\t}),\n\t\t\tmap(\n\t\t\t\troute =>\n\t\t\t\t\t({\n\t\t\t\t\t\tarea: this.name,\n\t\t\t\t\t\tcomponent: route.component || this.default,\n\t\t\t\t\t\tstate: route.state,\n\t\t\t\t\t\thistoryStrategy,\n\t\t\t\t\t}) as RouteAction,\n\t\t\t),\n\t\t\tcatchError(() =>\n\t\t\t\tthis.default\n\t\t\t\t\t? of({\n\t\t\t\t\t\t\tarea: this.name,\n\t\t\t\t\t\t\tcomponent: this.default,\n\t\t\t\t\t\t\thistoryStrategy,\n\t\t\t\t\t\t} as RouteAction)\n\t\t\t\t\t: EMPTY,\n\t\t\t),\n\t\t)\n\t}\n\n\t/**\n\t * ORIGINAL API:\n\t * Returns an observable that emits a RouteAction based on the provided pathname.\n\t *\n\t * This method retains the original logic that parses the URL.\n\t *\n\t * @param pathname - Pathname from the browser location API.\n\t * @param historyStrategy - The history strategy to use for the route (PUSH, REPLACE, SILENT).\n\t * @returns An observable emitting the RouteAction.\n\t */\n\tgetComponentFromPathname(pathname: string, historyStrategy: HISTORY_STRATEGY) {\n\t\treturn of(pathname).pipe(\n\t\t\tmap(path => path.split('/').pop() ?? ''),\n\t\t\tmap(path => decodeURIComponent(path)),\n\t\t\tmap(path => JSON.parse(path)),\n\t\t\tmap(routes => routes[this.name] as TRouteArea),\n\t\t\tmap(component =>\n\t\t\t\t!component && this.default\n\t\t\t\t\t? {\n\t\t\t\t\t\t\tcomponent: this.default,\n\t\t\t\t\t\t\tstate: undefined,\n\t\t\t\t\t\t}\n\t\t\t\t\t: component,\n\t\t\t),\n\t\t\tfilter(x => isPresent(x)),\n\t\t\tmap((component: TRouteArea) => ({\n\t\t\t\tarea: this.name,\n\t\t\t\tcomponent: component.component ?? this.default,\n\t\t\t\tstate: component.state,\n\t\t\t\thistoryStrategy,\n\t\t\t})),\n\t\t\tmap(x => x as RouteAction),\n\t\t\tcatchError(() => {\n\t\t\t\treturn this.default\n\t\t\t\t\t? of({\n\t\t\t\t\t\t\tarea: this.name,\n\t\t\t\t\t\t\tcomponent: this.default,\n\t\t\t\t\t\t\thistoryStrategy,\n\t\t\t\t\t\t} as RouteAction)\n\t\t\t\t\t: EMPTY\n\t\t\t}),\n\t\t)\n\t}\n\n\t/**\n\t * The original routing pipeline remains intact.\n\t * It uses getComponentFromPathname to resolve the route based on the URL.\n\t */\n\tprotected firstUpdated(): void {\n\t\tif (!this.name) {\n\t\t\t// TODO: maybe enforce this to be unique\n\t\t\tthrow new Error('Area name or default component not set')\n\t\t}\n\n\t\tmerge(\n\t\t\t// 1) Initial load from location.pathname.\n\t\t\tof(location.pathname).pipe(\n\t\t\t\tswitchMap(pathname => this.getComponentFromPathname(pathname, HISTORY_STRATEGY.silent)),\n\t\t\t\ttake(1),\n\t\t\t),\n\t\t\t// 2) Requests to change the route for this area.\n\t\t\tarea.request.pipe(filter(({ area }) => area === this.name)),\n\t\t\t// 3) Popstate events (back, forward).\n\t\t\tfromEvent<PopStateEvent>(window, 'popstate').pipe(\n\t\t\t\tmap(e => (e.target as Window).location.pathname),\n\t\t\t\tswitchMap(pathname => this.getComponentFromPathname(pathname, HISTORY_STRATEGY.silent)),\n\t\t\t),\n\t\t)\n\t\t\t.pipe(\n\t\t\t\tfilter(request => !!request.component),\n\t\t\t\ttakeUntil(this.disconnecting),\n\t\t\t\tdistinctUntilChanged((a, b) => {\n\t\t\t\t\tlet aComponent, bComponent\n\t\t\t\t\tif (typeof a.component === 'function') return false\n\t\t\t\t\telse if (typeof a.component === 'string') aComponent = a.component\n\n\t\t\t\t\tif (typeof b.component === 'function') return false\n\t\t\t\t\telse if (typeof b.component === 'string') bComponent = b.component\n\n\t\t\t\t\treturn bComponent?.replaceAll('-', '').toLowerCase() === aComponent?.replaceAll('-', '').toLowerCase()\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.pipe(\n\t\t\t\tswitchMap(route => {\n\t\t\t\t\tconst c = route.component\n\t\t\t\t\tif (c instanceof Promise) {\n\t\t\t\t\t\t// Dynamic import module.\n\t\t\t\t\t\treturn from(c).pipe(\n\t\t\t\t\t\t\tmap(x => ({\n\t\t\t\t\t\t\t\tcomponent: x.exports.default as CustomElementConstructor,\n\t\t\t\t\t\t\t\troute,\n\t\t\t\t\t\t\t})),\n\t\t\t\t\t\t)\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Already a string, function, or element.\n\t\t\t\t\t\treturn of({ component: c, route })\n\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t\tmap(({ component, route }) => {\n\t\t\t\t\tif (typeof component === 'string') {\n\t\t\t\t\t\t// Tag name.\n\t\t\t\t\t\treturn { component: document.createElement(component), route }\n\t\t\t\t\t} else if (component instanceof HTMLElement) {\n\t\t\t\t\t\t// Already an element instance.\n\t\t\t\t\t\treturn { component, route }\n\t\t\t\t\t} else if (typeof component === 'function') {\n\t\t\t\t\t\t// Custom element constructor.\n\t\t\t\t\t\treturn { component: new component(), route }\n\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t\tdistinctUntilChanged((prev, curr) => prev.component.tagName === curr.component.tagName),\n\t\t\t\t// Create the new view and add it to the DOM.\n\t\t\t\tmap(({ component, route }) => {\n\t\t\t\t\tconst oldView = this.shadowRoot?.children[0]\n\t\t\t\t\tconst oldViewExists = !!oldView\n\n\t\t\t\t\t// Remove the old view (if any).\n\t\t\t\t\toldView.remove()\n\t\t\t\t\t// Native Web Animations API - fade in.\n\t\t\t\t\tcomponent.classList.add('opacity-0')\n\t\t\t\t\tthis.shadowRoot?.append(component)\n\t\t\t\t\tcomponent.animate([{ opacity: 0 }, { opacity: 1 }], {\n\t\t\t\t\t\tduration: oldViewExists ? 150 : 100,\n\t\t\t\t\t\teasing: 'cubic-bezier(0.25, 0.8, 0.25, 1)',\n\t\t\t\t\t\tfill: 'forwards',\n\t\t\t\t\t})\n\n\t\t\t\t\treturn { component, route }\n\t\t\t\t}),\n\t\t\t\ttap(({ component, route }) => {\n\t\t\t\t\t// Handle history updates.\n\t\t\t\t\tif (typeof route.historyStrategy === 'undefined' || route.historyStrategy === 'push') {\n\t\t\t\t\t\thistory.pushState(route.state, '', this.newPath(component.tagName, route))\n\t\t\t\t\t} else if (route.historyStrategy && ['replace', 'pop'].includes(route.historyStrategy)) {\n\t\t\t\t\t\thistory.replaceState(route.state, '', this.newPath(component.tagName, route))\n\t\t\t\t\t}\n\t\t\t\t\tarea.current.set(this.name, {\n\t\t\t\t\t\tcomponent: component.tagName,\n\t\t\t\t\t\tstate: route.state,\n\t\t\t\t\t\tarea: this.name,\n\t\t\t\t\t})\n\n\t\t\t\t\tarea.$current.next(area.current)\n\t\t\t\t}),\n\t\t\t\ttakeUntil(this.disconnecting),\n\t\t\t)\n\t\t\t.subscribe()\n\t}\n\n\t/**\n\t * Computes the new URL path for the given component and route.\n\t */\n\tnewPath(tag: string, route: RouteAction) {\n\t\tconst oldPathname = location.pathname.split('/').pop()\n\t\tlet oldAreaState = {}\n\t\ttry {\n\t\t\toldAreaState = oldPathname ? JSON.parse(decodeURIComponent(oldPathname)) : {}\n\t\t} catch {\n\t\t\toldAreaState = {}\n\t\t}\n\t\troute.state = route.state ?? {}\n\t\tconst queryParams = route.clearQueryParams ? this.queryParamClear(route.clearQueryParams) : document.location.search\n\n\t\treturn encodeURIComponent(\n\t\t\tJSON.stringify({\n\t\t\t\t...oldAreaState,\n\t\t\t\t[this.name]: { component: tag.toLowerCase(), state: route.state },\n\t\t\t}),\n\t\t).concat(`${queryParams}`)\n\t}\n\n\t/**\n\t * Removes specified query parameters from the current URL.\n\t */\n\tqueryParamClear(params?: string[]) {\n\t\tif (!params) {\n\t\t\treturn ''\n\t\t}\n\t\t// Get query params from URL.\n\t\tconst urlParams = new URLSearchParams(location.search)\n\t\t// Remove query params.\n\t\tparams.forEach(param => urlParams.delete(param))\n\t\tif (urlParams.toString() === '') return ''\n\t\treturn `?${urlParams.toString()}`\n\t}\n\n\t/**\n\t * Checks for teleportation requests (FLIP_REQUEST events) and dispatches a FLIP_STARTED event.\n\t */\n\tcheckForTeleportationRequests() {\n\t\treturn fromEvent<CustomEvent>(window, 'FLIP_REQUEST').pipe(\n\t\t\tmap(e => e.detail),\n\t\t\ttap(() => {\n\t\t\t\tthis.dispatchEvent(new CustomEvent('FLIP_STARTED'))\n\t\t\t}),\n\t\t\ttimeout(0),\n\t\t\tcatchError(() => of(null)),\n\t\t\ttakeUntil(this.disconnecting),\n\t\t)\n\t}\n\n\tdisconnectedCallback(): void {\n\t\tsuper.disconnectedCallback()\n\t\tthis.disconnecting.next(true)\n\t}\n\n\trender() {\n\t\treturn html` <slot> </slot> `\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-area': SchmancyArea\n\t}\n}\n"],"names":["routerHistory","Subject","FINDING_MORTIES","HERE_RICKY","AreaService","constructor","this","prettyURL","mode","request","ReplaySubject","current","Map","$current","enableHistoryMode","findingMortiesEvent","CustomEvent","next","zip","fromEvent","window","pipe","map","e","detail","bufferTime","tap","console","log","of","dispatchEvent","component","timeout","r","name","newState","JSON","parse","stringify","area","state","history","replaceState","encodeURIComponent","getInstance","instance","pathname","location","split","pop","areaState","decodeURIComponent","HISTORY_STRATEGY","SchmancyArea","$LitElement","css","super","arguments","mappings","historyStrategy","currentPath","mapping","find","m","Error","routeForArea","routes","route","default","catchError","EMPTY","path","filter","x","isPresent","libExports","merge","switchMap","getComponentFromPathname","silent","take","target","takeUntil","disconnecting","distinctUntilChanged","a","b","aComponent","bComponent","replaceAll","toLowerCase","c","Promise","from","exports","document","createElement","HTMLElement","prev","curr","tagName","oldView","shadowRoot","children","oldViewExists","remove","classList","add","append","animate","opacity","duration","easing","fill","pushState","newPath","includes","set","subscribe","tag","oldPathname","oldAreaState","queryParams","clearQueryParams","queryParamClear","search","concat","params","urlParams","URLSearchParams","forEach","param","delete","toString","disconnectedCallback","html","__decorateClass","property","prototype","type","Array","customElement"],"mappings":"qSAIaA,EAAAA,EAAgB,IAAIC,EAAqBA,QAEzCC,EAAkB,kBAClBC,EAAa,aAQ1B,MAAMC,CAAAA,CAUL,aAAAC,CARAC,KAAOC,UAAAA,GACPD,KAAOE,KAA6B,UAC7BF,KAAAG,QAAU,IAAIC,EAAAA,cAA2B,CACzCJ,EAAAA,KAAAK,YAAcC,IACdN,KAAAO,SAAW,IAAIH,EAAAA,cAAwC,CAAA,EAC9DJ,KAAOQ,kBAAAA,GACCR,KAAAS,oBAAsB,IAAIC,YAA6Cd,CAGzEI,EAAAA,KAAAO,SAASI,KAAKX,KAAKK,OAAAA,CAAO,CAGhC,MACC,CAAA,OAAOO,MAAI,CACVC,YAA4BC,OAAQjB,GAAYkB,KAC/CC,EAAAA,IAASC,GAAAA,EAAEC,MAAAA,EACXC,EAAAA,WAAW,CACXC,EAAAA,EAAAA,IAAIC,QAAQC,GAEbC,CAAAA,EAAAA,KAAG,CAAA,EAAGR,KAAKK,EAAAA,IAAI,IAAMN,OAAOU,cAAcxB,KAAKS,mBAC7CM,CAAAA,CAAAA,CAAAA,CAAAA,EAAAA,KACFC,EAAAA,IAAI,CAAES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A,EAEnDgB,EAAAA,QAAQ,GACRqC,aAAW,IAAMxC,KAAG,IACpBqD,CAAAA,EAAAA,EAAAA,UAAU5E,KAAK6E,eAChB,CAGD,uBACC3B,MAAM8E,qBAAAA,EACDhI,KAAA6E,cAAclE,KAAAA,EAAS,CAAA,CAG7B,QACQ,CAAA,OAAAsH,EAAAA,sBAAA,CA5RIC,EAAAA,EAAA,CAAXC,EAASA,YAdEpF,qBAcAqF,UAAA,OAAA,CAAA,EAKAF,EAAA,CAAXC,EAASA,SAnBEpF,CAAAA,EAAAA,qBAmBAqF,UAAA,UAAA,CAyBeF,EAAAA,EAAA,CAA1BC,WAAS,CAAEE,KAAMC,SA5CNvF,qBA4CeqF,UAAA,WAAA,CAAA,EA5CfrF,QAANA,aAAAmF,EAAA,CADNK,EAAAA,cAAc,eACFxF,CAAAA,EAAAA"}
@@ -1,18 +1,18 @@
1
- import { Subject as I, ReplaySubject as E, zip as b, fromEvent as C, of as i, map as a, bufferTime as N, tap as u, timeout as v, catchError as g, EMPTY as P, filter as f, merge as O, switchMap as y, take as F, takeUntil as w, distinctUntilChanged as R, from as U } from "rxjs";
1
+ import { Subject as v, ReplaySubject as C, zip as I, fromEvent as S, of as i, map as a, bufferTime as b, tap as l, timeout as N, catchError as d, EMPTY as P, filter as f, merge as O, switchMap as y, take as U, takeUntil as g, distinctUntilChanged as R, from as F } from "rxjs";
2
2
  import "lit/directives/class-map.js";
3
3
  import "lit/directives/style-map.js";
4
- import { $ as M } from "./litElement.mixin-B43tuAsM.js";
4
+ import { $ as T } from "./litElement.mixin-B43tuAsM.js";
5
5
  import "./tailwind.mixin-ECkyl80C.js";
6
- import { css as T, html as L } from "lit";
7
- import { property as S, customElement as $ } from "lit/decorators.js";
6
+ import { css as L, html as M } from "lit";
7
+ import { property as w, customElement as $ } from "lit/decorators.js";
8
8
  import { l as J } from "./index-CuY8m6ta.js";
9
- const B = new I(), x = "FINDING_MORTIES", k = "HERE_RICKY";
9
+ const B = new v(), x = "FINDING_MORTIES", k = "HERE_RICKY";
10
10
  class p {
11
11
  constructor() {
12
- this.prettyURL = !1, this.mode = "HISTORY", this.request = new E(1), this.current = /* @__PURE__ */ new Map(), this.$current = new E(1), this.enableHistoryMode = !0, this.findingMortiesEvent = new CustomEvent(x), this.$current.next(this.current);
12
+ this.prettyURL = !1, this.mode = "HISTORY", this.request = new C(1), this.current = /* @__PURE__ */ new Map(), this.$current = new C(1), this.enableHistoryMode = !0, this.findingMortiesEvent = new CustomEvent(x), this.$current.next(this.current);
13
13
  }
14
14
  find() {
15
- return b([C(window, k).pipe(a((t) => t.detail), N(0), u(console.log)), i(1).pipe(u(() => window.dispatchEvent(this.findingMortiesEvent)))]).pipe(a(([t]) => t), v(1));
15
+ return I([S(window, k).pipe(a((t) => t.detail), b(0), l(console.log)), i(1).pipe(l(() => window.dispatchEvent(this.findingMortiesEvent)))]).pipe(a(([t]) => t), N(1));
16
16
  }
17
17
  push(t) {
18
18
  this.request.next(t);
@@ -36,11 +36,11 @@ class p {
36
36
  }
37
37
  }
38
38
  const m = p.getInstance();
39
- var h = ((e) => (e.push = "push", e.replace = "replace", e.pop = "pop", e.silent = "silent", e))(h || {}), q = Object.defineProperty, A = Object.getOwnPropertyDescriptor, l = (e, t, n, o) => {
40
- for (var r, s = o > 1 ? void 0 : o ? A(t, n) : t, d = e.length - 1; d >= 0; d--) (r = e[d]) && (s = (o ? r(t, n, s) : r(s)) || s);
41
- return o && s && q(t, n, s), s;
39
+ var E = ((e) => (e.push = "push", e.replace = "replace", e.pop = "pop", e.silent = "silent", e))(E || {}), q = Object.defineProperty, A = Object.getOwnPropertyDescriptor, h = (e, t, n, o) => {
40
+ for (var s, r = o > 1 ? void 0 : o ? A(t, n) : t, u = e.length - 1; u >= 0; u--) (s = e[u]) && (r = (o ? s(t, n, r) : s(r)) || r);
41
+ return o && r && q(t, n, r), r;
42
42
  };
43
- let c = class extends M(T`
43
+ let c = class extends T(L`
44
44
  :host {
45
45
  position: relative;
46
46
  display: block;
@@ -52,31 +52,31 @@ let c = class extends M(T`
52
52
  }
53
53
  getComponentFromMappings(e, t) {
54
54
  return i(location.pathname).pipe(a((n) => {
55
- const o = e.find((s) => s.pathname === n);
55
+ const o = e.find((r) => r.pathname === n);
56
56
  if (!o) throw new Error(`No mapping found for pathname: ${n}`);
57
- const r = o.routes.find((s) => s.area === this.name);
58
- if (!r) throw new Error(`No route found for area: ${this.name} in pathname: ${n}`);
59
- return r;
60
- }), a((n) => ({ area: this.name, component: n.component || this.default, state: n.state, historyStrategy: t })), g(() => this.default ? i({ area: this.name, component: this.default, historyStrategy: t }) : P));
57
+ const s = o.routes.find((r) => r.area === this.name);
58
+ if (!s) throw new Error(`No route found for area: ${this.name} in pathname: ${n}`);
59
+ return s;
60
+ }), a((n) => ({ area: this.name, component: n.component || this.default, state: n.state, historyStrategy: t })), d(() => this.default ? i({ area: this.name, component: this.default, historyStrategy: t }) : P));
61
61
  }
62
62
  getComponentFromPathname(e, t) {
63
- return i(e).pipe(a((n) => n.split("/").pop() ?? ""), a((n) => decodeURIComponent(n)), a((n) => JSON.parse(n)), a((n) => n[this.name]), a((n) => !n && this.default ? { component: this.default, state: void 0 } : n), f((n) => J.isPresent(n)), a((n) => ({ area: this.name, component: n.component ?? this.default, state: n.state, historyStrategy: t })), a((n) => n), g(() => this.default ? i({ area: this.name, component: this.default, historyStrategy: t }) : P));
63
+ return i(e).pipe(a((n) => n.split("/").pop() ?? ""), a((n) => decodeURIComponent(n)), a((n) => JSON.parse(n)), a((n) => n[this.name]), a((n) => !n && this.default ? { component: this.default, state: void 0 } : n), f((n) => J.isPresent(n)), a((n) => ({ area: this.name, component: n.component ?? this.default, state: n.state, historyStrategy: t })), a((n) => n), d(() => this.default ? i({ area: this.name, component: this.default, historyStrategy: t }) : P));
64
64
  }
65
65
  firstUpdated() {
66
66
  if (!this.name) throw new Error("Area name or default component not set");
67
- O(i(location.pathname).pipe(y((e) => this.mappings && this.mappings.length ? this.getComponentFromMappings(this.mappings, h.silent) : this.getComponentFromPathname(e, h.silent)), F(1)), m.request.pipe(f(({ area: e }) => e === this.name)), C(window, "popstate").pipe(a((e) => e.target.location.pathname), y((e) => this.mappings && this.mappings.length ? this.getComponentFromMappings(this.mappings, h.silent) : this.getComponentFromPathname(e, h.silent)))).pipe(f((e) => !!e.component), w(this.disconnecting), R((e, t) => {
67
+ O(i(location.pathname).pipe(y((e) => this.getComponentFromPathname(e, E.silent)), U(1)), m.request.pipe(f(({ area: e }) => e === this.name)), S(window, "popstate").pipe(a((e) => e.target.location.pathname), y((e) => this.getComponentFromPathname(e, E.silent)))).pipe(f((e) => !!e.component), g(this.disconnecting), R((e, t) => {
68
68
  let n, o;
69
69
  return typeof e.component != "function" && (typeof e.component == "string" && (n = e.component), typeof t.component != "function" && (typeof t.component == "string" && (o = t.component), (o == null ? void 0 : o.replaceAll("-", "").toLowerCase()) === (n == null ? void 0 : n.replaceAll("-", "").toLowerCase())));
70
70
  })).pipe(y((e) => {
71
71
  const t = e.component;
72
- return t instanceof Promise ? U(t).pipe(a((n) => ({ component: n.exports.default, route: e }))) : i({ component: t, route: e });
72
+ return t instanceof Promise ? F(t).pipe(a((n) => ({ component: n.exports.default, route: e }))) : i({ component: t, route: e });
73
73
  }), a(({ component: e, route: t }) => typeof e == "string" ? { component: document.createElement(e), route: t } : e instanceof HTMLElement ? { component: e, route: t } : typeof e == "function" ? { component: new e(), route: t } : void 0), R((e, t) => e.component.tagName === t.component.tagName), a(({ component: e, route: t }) => {
74
- var r, s;
75
- const n = (r = this.shadowRoot) == null ? void 0 : r.children[0], o = !!n;
76
- return n.remove(), e.classList.add("opacity-0"), (s = this.shadowRoot) == null || s.append(e), e.animate([{ opacity: 0 }, { opacity: 1 }], { duration: o ? 150 : 100, easing: "cubic-bezier(0.25, 0.8, 0.25, 1)", fill: "forwards" }), { component: e, route: t };
77
- }), u(({ component: e, route: t }) => {
74
+ var s, r;
75
+ const n = (s = this.shadowRoot) == null ? void 0 : s.children[0], o = !!n;
76
+ return n.remove(), e.classList.add("opacity-0"), (r = this.shadowRoot) == null || r.append(e), e.animate([{ opacity: 0 }, { opacity: 1 }], { duration: o ? 150 : 100, easing: "cubic-bezier(0.25, 0.8, 0.25, 1)", fill: "forwards" }), { component: e, route: t };
77
+ }), l(({ component: e, route: t }) => {
78
78
  t.historyStrategy === void 0 || t.historyStrategy === "push" ? history.pushState(t.state, "", this.newPath(e.tagName, t)) : t.historyStrategy && ["replace", "pop"].includes(t.historyStrategy) && history.replaceState(t.state, "", this.newPath(e.tagName, t)), m.current.set(this.name, { component: e.tagName, state: t.state, area: this.name }), m.$current.next(m.current);
79
- }), w(this.disconnecting)).subscribe();
79
+ }), g(this.disconnecting)).subscribe();
80
80
  }
81
81
  newPath(e, t) {
82
82
  const n = location.pathname.split("/").pop();
@@ -87,8 +87,8 @@ let c = class extends M(T`
87
87
  o = {};
88
88
  }
89
89
  t.state = t.state ?? {};
90
- const r = t.clearQueryParams ? this.queryParamClear(t.clearQueryParams) : document.location.search;
91
- return encodeURIComponent(JSON.stringify({ ...o, [this.name]: { component: e.toLowerCase(), state: t.state } })).concat(`${r}`);
90
+ const s = t.clearQueryParams ? this.queryParamClear(t.clearQueryParams) : document.location.search;
91
+ return encodeURIComponent(JSON.stringify({ ...o, [this.name]: { component: e.toLowerCase(), state: t.state } })).concat(`${s}`);
92
92
  }
93
93
  queryParamClear(e) {
94
94
  if (!e) return "";
@@ -96,24 +96,24 @@ let c = class extends M(T`
96
96
  return e.forEach((n) => t.delete(n)), t.toString() === "" ? "" : `?${t.toString()}`;
97
97
  }
98
98
  checkForTeleportationRequests() {
99
- return C(window, "FLIP_REQUEST").pipe(a((e) => e.detail), N(0), u(() => {
99
+ return S(window, "FLIP_REQUEST").pipe(a((e) => e.detail), l(() => {
100
100
  this.dispatchEvent(new CustomEvent("FLIP_STARTED"));
101
- }), w(this.disconnecting), v(0), g(() => i(null)));
101
+ }), N(0), d(() => i(null)), g(this.disconnecting));
102
102
  }
103
103
  disconnectedCallback() {
104
104
  super.disconnectedCallback(), this.disconnecting.next(!0);
105
105
  }
106
106
  render() {
107
- return L` <slot> </slot> `;
107
+ return M` <slot> </slot> `;
108
108
  }
109
109
  };
110
- l([S()], c.prototype, "name", 2), l([S()], c.prototype, "default", 2), l([S({ type: Array })], c.prototype, "mappings", 2), c = l([$("schmancy-area")], c);
110
+ h([w()], c.prototype, "name", 2), h([w()], c.prototype, "default", 2), h([w({ type: Array })], c.prototype, "mappings", 2), c = h([$("schmancy-area")], c);
111
111
  export {
112
112
  x as F,
113
113
  k as H,
114
114
  c as S,
115
115
  m as a,
116
- h as b,
116
+ E as b,
117
117
  B as r
118
118
  };
119
- //# sourceMappingURL=area.component-8AQUkma0.js.map
119
+ //# sourceMappingURL=area.component-D9jjR4-z.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"area.component-D9jjR4-z.js","sources":["../src/area/area.service.ts","../src/area/router.types.ts","../src/area/area.component.ts"],"sourcesContent":["import { ReplaySubject, Subject, bufferTime, fromEvent, map, of, tap, timeout, zip } from 'rxjs'\nimport { SchmancyTeleportation } from '../teleport'\nimport { ActiveRoute, RouteAction } from './router.types'\n\nexport const routerHistory = new Subject<RouteAction>()\n\nexport const FINDING_MORTIES = 'FINDING_MORTIES'\nexport const HERE_RICKY = 'HERE_RICKY'\nexport type HERE_RICKY_EVENT = CustomEvent<{\n\tcomponent: SchmancyTeleportation\n}>\nexport type FINDING_MORTIES_EVENT = CustomEvent<{\n\tcomponent: SchmancyTeleportation\n}>\n\nclass AreaService {\n\tprivate static instance: AreaService\n\tpublic prettyURL = false\n\tpublic mode: 'SILENT' | 'HISTORY' = 'HISTORY'\n\tpublic request = new ReplaySubject<RouteAction>(1)\n\tpublic current = new Map<string, ActiveRoute>()\n\tpublic $current = new ReplaySubject<Map<string, ActiveRoute>>(1)\n\tpublic enableHistoryMode = true\n\tprivate findingMortiesEvent = new CustomEvent<FINDING_MORTIES_EVENT['detail']>(FINDING_MORTIES)\n\n\tconstructor() {\n\t\tthis.$current.next(this.current)\n\t}\n\n\tfind() {\n\t\treturn zip([\n\t\t\tfromEvent<HERE_RICKY_EVENT>(window, HERE_RICKY).pipe(\n\t\t\t\tmap(e => e.detail),\n\t\t\t\tbufferTime(0),\n\t\t\t\ttap(console.log),\n\t\t\t),\n\t\t\tof(1).pipe(tap(() => window.dispatchEvent(this.findingMortiesEvent))),\n\t\t]).pipe(\n\t\t\tmap(([component]) => component),\n\t\t\ttimeout(1),\n\t\t)\n\t}\n\n\tpush(r: RouteAction) {\n\t\tthis.request.next(r)\n\t}\n\n\tpop(name: string) {\n\t\tconst newState = JSON.parse(JSON.stringify(area.state))\n\t\tdelete newState[name]\n\t\tconsole.log(area.state, newState)\n\t\thistory.replaceState(null, '', encodeURIComponent(JSON.stringify(newState)))\n\t}\n\tstatic getInstance() {\n\t\tif (!AreaService.instance) {\n\t\t\tAreaService.instance = new AreaService()\n\t\t}\n\t\treturn AreaService.instance\n\t}\n\n\tget state() {\n\t\tconst pathname = location.pathname.split('/').pop()\n\t\tlet areaState = {}\n\t\ttry {\n\t\t\tareaState = pathname ? JSON.parse(decodeURIComponent(pathname)) : {}\n\t\t} catch {\n\t\t\tareaState = {}\n\t\t}\n\t\treturn areaState\n\t}\n}\n\nexport const area = AreaService.getInstance()\nexport default area\n","export type RouteAction = {\n\tcomponent: CustomElementConstructor | string | HTMLElement\n\tarea: string\n\tstate?: object\n\thistoryStrategy?: THistoryStrategy\n\tclearQueryParams?: string[] | null\n}\n\nexport type ActiveRoute = {\n\tcomponent: string\n\tarea: string\n\tstate?: object\n}\n\nexport type THistoryStrategy = 'push' | 'replace' | 'pop' | 'silent'\n\nexport enum HISTORY_STRATEGY {\n\tpush = 'push',\n\treplace = 'replace',\n\tpop = 'pop',\n\tsilent = 'silent',\n}\n","import { $LitElement } from '@mixins/index'\nimport { TemplateResult, css, html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\nimport {\n\tEMPTY,\n\tcatchError,\n\tdistinctUntilChanged,\n\tfilter,\n\tfrom,\n\tfromEvent,\n\tmap,\n\tmerge,\n\tof,\n\tswitchMap,\n\ttake,\n\ttakeUntil,\n\ttap,\n\ttimeout,\n} from 'rxjs'\nimport { isPresent } from 'ts-is-present'\nimport area from './area.service'\nimport { HISTORY_STRATEGY, RouteAction } from './router.types'\n\n/**\n * Type describing the route for an area.\n */\ntype TRouteArea = {\n\tcomponent: string\n\tstate: object | undefined\n}\n\n/**\n * Type for a mapping entry. Each mapping specifies a pathname and an array of route definitions.\n * Each route definition contains an area name, a component (or promise/constructor/template),\n * and optionally, a state.\n */\nexport type AreaPathnames = {\n\tpathname: string\n\troutes: Array<{\n\t\tarea: string\n\t\tcomponent: string | Promise<NodeModule> | CustomElementConstructor | TemplateResult<1>\n\t\tstate?: object\n\t}>\n}\n\n@customElement('schmancy-area')\nexport class SchmancyArea extends $LitElement(css`\n\t:host {\n\t\tposition: relative;\n\t\tdisplay: block;\n\t\tinset: 0;\n\t}\n`) {\n\t/**\n\t * The name of the router outlet.\n\t * @attr\n\t * @type {string}\n\t * @public\n\t * @required\n\t */\n\t@property() name!: string\n\n\t/**\n\t * The default component to use if no matching route is found.\n\t */\n\t@property() default!: string | Promise<NodeModule> | CustomElementConstructor | TemplateResult<1>\n\n\t/**\n\t * (Optional) A mappings property that can be set on the element.\n\t * This property is only available for external use and does not alter\n\t * the component's built-in routing behavior.\n\t *\n\t * Example:\n\t * [\n\t * {\n\t * pathname: '/home',\n\t * routes: [\n\t * { area: 'main', component: 'home-view', state: { foo: 'bar' } },\n\t * { area: 'sidebar', component: 'menu-view' }\n\t * ]\n\t * },\n\t * {\n\t * pathname: '/about',\n\t * routes: [\n\t * { area: 'main', component: 'about-view' },\n\t * { area: 'sidebar', component: 'info-view' }\n\t * ]\n\t * }\n\t * ]\n\t */\n\t@property({ type: Array }) mappings: AreaPathnames[] = []\n\n\t/**\n\t * NEW PUBLIC API:\n\t * Accepts an array of route mappings and returns an observable emitting\n\t * the RouteAction for this area (if found) based on the current location's pathname.\n\t *\n\t * Note: This method does not affect the component's built-in logic.\n\t *\n\t * @param mappings - Array of route mapping objects.\n\t * @param historyStrategy - The history strategy to use (e.g. PUSH, REPLACE, SILENT).\n\t * @returns An RxJS Observable that emits a RouteAction.\n\t */\n\tpublic getComponentFromMappings(mappings: AreaPathnames[], historyStrategy: HISTORY_STRATEGY) {\n\t\treturn of(location.pathname).pipe(\n\t\t\tmap(currentPath => {\n\t\t\t\tconst mapping = mappings.find(m => m.pathname === currentPath)\n\t\t\t\tif (!mapping) {\n\t\t\t\t\tthrow new Error(`No mapping found for pathname: ${currentPath}`)\n\t\t\t\t}\n\t\t\t\tconst routeForArea = mapping.routes.find(route => route.area === this.name)\n\t\t\t\tif (!routeForArea) {\n\t\t\t\t\tthrow new Error(`No route found for area: ${this.name} in pathname: ${currentPath}`)\n\t\t\t\t}\n\t\t\t\treturn routeForArea\n\t\t\t}),\n\t\t\tmap(\n\t\t\t\troute =>\n\t\t\t\t\t({\n\t\t\t\t\t\tarea: this.name,\n\t\t\t\t\t\tcomponent: route.component || this.default,\n\t\t\t\t\t\tstate: route.state,\n\t\t\t\t\t\thistoryStrategy,\n\t\t\t\t\t}) as RouteAction,\n\t\t\t),\n\t\t\tcatchError(() =>\n\t\t\t\tthis.default\n\t\t\t\t\t? of({\n\t\t\t\t\t\t\tarea: this.name,\n\t\t\t\t\t\t\tcomponent: this.default,\n\t\t\t\t\t\t\thistoryStrategy,\n\t\t\t\t\t\t} as RouteAction)\n\t\t\t\t\t: EMPTY,\n\t\t\t),\n\t\t)\n\t}\n\n\t/**\n\t * ORIGINAL API:\n\t * Returns an observable that emits a RouteAction based on the provided pathname.\n\t *\n\t * This method retains the original logic that parses the URL.\n\t *\n\t * @param pathname - Pathname from the browser location API.\n\t * @param historyStrategy - The history strategy to use for the route (PUSH, REPLACE, SILENT).\n\t * @returns An observable emitting the RouteAction.\n\t */\n\tgetComponentFromPathname(pathname: string, historyStrategy: HISTORY_STRATEGY) {\n\t\treturn of(pathname).pipe(\n\t\t\tmap(path => path.split('/').pop() ?? ''),\n\t\t\tmap(path => decodeURIComponent(path)),\n\t\t\tmap(path => JSON.parse(path)),\n\t\t\tmap(routes => routes[this.name] as TRouteArea),\n\t\t\tmap(component =>\n\t\t\t\t!component && this.default\n\t\t\t\t\t? {\n\t\t\t\t\t\t\tcomponent: this.default,\n\t\t\t\t\t\t\tstate: undefined,\n\t\t\t\t\t\t}\n\t\t\t\t\t: component,\n\t\t\t),\n\t\t\tfilter(x => isPresent(x)),\n\t\t\tmap((component: TRouteArea) => ({\n\t\t\t\tarea: this.name,\n\t\t\t\tcomponent: component.component ?? this.default,\n\t\t\t\tstate: component.state,\n\t\t\t\thistoryStrategy,\n\t\t\t})),\n\t\t\tmap(x => x as RouteAction),\n\t\t\tcatchError(() => {\n\t\t\t\treturn this.default\n\t\t\t\t\t? of({\n\t\t\t\t\t\t\tarea: this.name,\n\t\t\t\t\t\t\tcomponent: this.default,\n\t\t\t\t\t\t\thistoryStrategy,\n\t\t\t\t\t\t} as RouteAction)\n\t\t\t\t\t: EMPTY\n\t\t\t}),\n\t\t)\n\t}\n\n\t/**\n\t * The original routing pipeline remains intact.\n\t * It uses getComponentFromPathname to resolve the route based on the URL.\n\t */\n\tprotected firstUpdated(): void {\n\t\tif (!this.name) {\n\t\t\t// TODO: maybe enforce this to be unique\n\t\t\tthrow new Error('Area name or default component not set')\n\t\t}\n\n\t\tmerge(\n\t\t\t// 1) Initial load from location.pathname.\n\t\t\tof(location.pathname).pipe(\n\t\t\t\tswitchMap(pathname => this.getComponentFromPathname(pathname, HISTORY_STRATEGY.silent)),\n\t\t\t\ttake(1),\n\t\t\t),\n\t\t\t// 2) Requests to change the route for this area.\n\t\t\tarea.request.pipe(filter(({ area }) => area === this.name)),\n\t\t\t// 3) Popstate events (back, forward).\n\t\t\tfromEvent<PopStateEvent>(window, 'popstate').pipe(\n\t\t\t\tmap(e => (e.target as Window).location.pathname),\n\t\t\t\tswitchMap(pathname => this.getComponentFromPathname(pathname, HISTORY_STRATEGY.silent)),\n\t\t\t),\n\t\t)\n\t\t\t.pipe(\n\t\t\t\tfilter(request => !!request.component),\n\t\t\t\ttakeUntil(this.disconnecting),\n\t\t\t\tdistinctUntilChanged((a, b) => {\n\t\t\t\t\tlet aComponent, bComponent\n\t\t\t\t\tif (typeof a.component === 'function') return false\n\t\t\t\t\telse if (typeof a.component === 'string') aComponent = a.component\n\n\t\t\t\t\tif (typeof b.component === 'function') return false\n\t\t\t\t\telse if (typeof b.component === 'string') bComponent = b.component\n\n\t\t\t\t\treturn bComponent?.replaceAll('-', '').toLowerCase() === aComponent?.replaceAll('-', '').toLowerCase()\n\t\t\t\t}),\n\t\t\t)\n\t\t\t.pipe(\n\t\t\t\tswitchMap(route => {\n\t\t\t\t\tconst c = route.component\n\t\t\t\t\tif (c instanceof Promise) {\n\t\t\t\t\t\t// Dynamic import module.\n\t\t\t\t\t\treturn from(c).pipe(\n\t\t\t\t\t\t\tmap(x => ({\n\t\t\t\t\t\t\t\tcomponent: x.exports.default as CustomElementConstructor,\n\t\t\t\t\t\t\t\troute,\n\t\t\t\t\t\t\t})),\n\t\t\t\t\t\t)\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Already a string, function, or element.\n\t\t\t\t\t\treturn of({ component: c, route })\n\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t\tmap(({ component, route }) => {\n\t\t\t\t\tif (typeof component === 'string') {\n\t\t\t\t\t\t// Tag name.\n\t\t\t\t\t\treturn { component: document.createElement(component), route }\n\t\t\t\t\t} else if (component instanceof HTMLElement) {\n\t\t\t\t\t\t// Already an element instance.\n\t\t\t\t\t\treturn { component, route }\n\t\t\t\t\t} else if (typeof component === 'function') {\n\t\t\t\t\t\t// Custom element constructor.\n\t\t\t\t\t\treturn { component: new component(), route }\n\t\t\t\t\t}\n\t\t\t\t}),\n\t\t\t\tdistinctUntilChanged((prev, curr) => prev.component.tagName === curr.component.tagName),\n\t\t\t\t// Create the new view and add it to the DOM.\n\t\t\t\tmap(({ component, route }) => {\n\t\t\t\t\tconst oldView = this.shadowRoot?.children[0]\n\t\t\t\t\tconst oldViewExists = !!oldView\n\n\t\t\t\t\t// Remove the old view (if any).\n\t\t\t\t\toldView.remove()\n\t\t\t\t\t// Native Web Animations API - fade in.\n\t\t\t\t\tcomponent.classList.add('opacity-0')\n\t\t\t\t\tthis.shadowRoot?.append(component)\n\t\t\t\t\tcomponent.animate([{ opacity: 0 }, { opacity: 1 }], {\n\t\t\t\t\t\tduration: oldViewExists ? 150 : 100,\n\t\t\t\t\t\teasing: 'cubic-bezier(0.25, 0.8, 0.25, 1)',\n\t\t\t\t\t\tfill: 'forwards',\n\t\t\t\t\t})\n\n\t\t\t\t\treturn { component, route }\n\t\t\t\t}),\n\t\t\t\ttap(({ component, route }) => {\n\t\t\t\t\t// Handle history updates.\n\t\t\t\t\tif (typeof route.historyStrategy === 'undefined' || route.historyStrategy === 'push') {\n\t\t\t\t\t\thistory.pushState(route.state, '', this.newPath(component.tagName, route))\n\t\t\t\t\t} else if (route.historyStrategy && ['replace', 'pop'].includes(route.historyStrategy)) {\n\t\t\t\t\t\thistory.replaceState(route.state, '', this.newPath(component.tagName, route))\n\t\t\t\t\t}\n\t\t\t\t\tarea.current.set(this.name, {\n\t\t\t\t\t\tcomponent: component.tagName,\n\t\t\t\t\t\tstate: route.state,\n\t\t\t\t\t\tarea: this.name,\n\t\t\t\t\t})\n\n\t\t\t\t\tarea.$current.next(area.current)\n\t\t\t\t}),\n\t\t\t\ttakeUntil(this.disconnecting),\n\t\t\t)\n\t\t\t.subscribe()\n\t}\n\n\t/**\n\t * Computes the new URL path for the given component and route.\n\t */\n\tnewPath(tag: string, route: RouteAction) {\n\t\tconst oldPathname = location.pathname.split('/').pop()\n\t\tlet oldAreaState = {}\n\t\ttry {\n\t\t\toldAreaState = oldPathname ? JSON.parse(decodeURIComponent(oldPathname)) : {}\n\t\t} catch {\n\t\t\toldAreaState = {}\n\t\t}\n\t\troute.state = route.state ?? {}\n\t\tconst queryParams = route.clearQueryParams ? this.queryParamClear(route.clearQueryParams) : document.location.search\n\n\t\treturn encodeURIComponent(\n\t\t\tJSON.stringify({\n\t\t\t\t...oldAreaState,\n\t\t\t\t[this.name]: { component: tag.toLowerCase(), state: route.state },\n\t\t\t}),\n\t\t).concat(`${queryParams}`)\n\t}\n\n\t/**\n\t * Removes specified query parameters from the current URL.\n\t */\n\tqueryParamClear(params?: string[]) {\n\t\tif (!params) {\n\t\t\treturn ''\n\t\t}\n\t\t// Get query params from URL.\n\t\tconst urlParams = new URLSearchParams(location.search)\n\t\t// Remove query params.\n\t\tparams.forEach(param => urlParams.delete(param))\n\t\tif (urlParams.toString() === '') return ''\n\t\treturn `?${urlParams.toString()}`\n\t}\n\n\t/**\n\t * Checks for teleportation requests (FLIP_REQUEST events) and dispatches a FLIP_STARTED event.\n\t */\n\tcheckForTeleportationRequests() {\n\t\treturn fromEvent<CustomEvent>(window, 'FLIP_REQUEST').pipe(\n\t\t\tmap(e => e.detail),\n\t\t\ttap(() => {\n\t\t\t\tthis.dispatchEvent(new CustomEvent('FLIP_STARTED'))\n\t\t\t}),\n\t\t\ttimeout(0),\n\t\t\tcatchError(() => of(null)),\n\t\t\ttakeUntil(this.disconnecting),\n\t\t)\n\t}\n\n\tdisconnectedCallback(): void {\n\t\tsuper.disconnectedCallback()\n\t\tthis.disconnecting.next(true)\n\t}\n\n\trender() {\n\t\treturn html` <slot> </slot> `\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-area': SchmancyArea\n\t}\n}\n"],"names":["routerHistory","Subject","FINDING_MORTIES","HERE_RICKY","AreaService","constructor","this","prettyURL","mode","request","ReplaySubject","current","Map","$current","enableHistoryMode","findingMortiesEvent","CustomEvent","next","find","zip","fromEvent","window","pipe","map","e","detail","bufferTime","tap","console","log","of","dispatchEvent","component","timeout","r","name","newState","JSON","parse","stringify","area","state","history","replaceState","encodeURIComponent","instance","pathname","location","split","pop","areaState","decodeURIComponent","getInstance","HISTORY_STRATEGY","SchmancyArea","$LitElement","css","super","arguments","mappings","historyStrategy","currentPath","mapping","m","Error","routeForArea","routes","route","default","catchError","EMPTY","path","filter","x","isPresent","merge","switchMap","getComponentFromPathname","silent","take","target","takeUntil","disconnecting","distinctUntilChanged","a","b","aComponent","bComponent","replaceAll","toLowerCase","c","Promise","from","exports","t","o","document","createElement","HTMLElement","prev","curr","tagName","oldView","shadowRoot","children","oldViewExists","remove","classList","add","append","animate","opacity","duration","easing","fill","pushState","newPath","includes","set","subscribe","tag","oldPathname","oldAreaState","queryParams","clearQueryParams","queryParamClear","search","concat","params","urlParams","URLSearchParams","forEach","param","delete","toString","disconnectedCallback","html","__decorateClass","property","prototype","type","Array","customElement"],"mappings":";;;;;;;;AAIa,MAAAA,IAAgB,IAAIC,KAEpBC,IAAkB,mBAClBC,IAAa;AAQ1B,MAAMC,EAAAA;AAAAA,EAUL,cAAAC;AARAC,SAAOC,YAAAA,IACPD,KAAOE,OAA6B,WAC7BF,KAAAG,UAAU,IAAIC,EAA2B,CAAA,GACzCJ,KAAAK,8BAAcC,OACdN,KAAAO,WAAW,IAAIH,EAAwC,IAC9DJ,KAAOQ,oBAAAA,IACCR,KAAAS,sBAAsB,IAAIC,YAA6Cd,CAAAA,GAGzEI,KAAAO,SAASI,KAAKX,KAAKK,OAAO;AAAA,EAAA;AAAA,EAGhC,OAAAO;AACC,WAAOC,EAAI,CACVC,EAA4BC,QAAQlB,CAAYmB,EAAAA,KAC/CC,EAASC,OAAAA,EAAEC,MAAAA,GACXC,EAAW,CAAA,GACXC,EAAIC,QAAQC,GAEbC,CAAAA,GAAAA,EAAG,GAAGR,KAAKK,EAAI,MAAMN,OAAOU,cAAczB,KAAKS,mBAC7CO,CAAAA,CAAAA,CAAAA,CAAAA,EAAAA,KACFC,EAAI,CAAA,CAAES,CAAeA,MAAAA,CAAAA,GACrBC,EAAQ,CAAA,CAAA;AAAA,EACT;AAAA,EAGD,KAAKC,G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AAA,EAAEC,SACXE,EAAI,MAAA;AACHrB,WAAKyB,cAAc,IAAIf,YAAY,cAAA,CAAA;AAAA,IAAe,CAEnDiB,GAAAA,EAAQ,IACRoC,EAAW,MAAMvC,EAAG,IAAA,CAAA,GACpBmD,EAAU3E,KAAK4E,aAChB,CAAA;AAAA,EAAA;AAAA,EAGD,uBACCzB;AAAAA,UAAM8E,qBACDjI,GAAAA,KAAA4E,cAAcjE,KAAK,EAAA;AAAA,EAAI;AAAA,EAG7B;AACQ,WAAAuH;AAAAA,EAAA;AAAA;AA5RIC,EAAA,CAAXC,EAdWpF,CAAAA,GAAAA,EAcAqF,WAAA,QAAA,CAAA,GAKAF,EAAA,CAAXC,MAnBWpF,EAmBAqF,WAAA,WAAA,CAAA,GAyBeF,EAAA,CAA1BC,EAAS,EAAEE,MAAMC,MA5CNvF,CAAAA,CAAAA,GAAAA,EA4CeqF,WAAA,YAAA,IA5CfrF,IAANmF,EAAA,CADNK,EAAc,mBACFxF;"}
package/dist/area.js CHANGED
@@ -1,4 +1,4 @@
1
- import { F as s, H as I, b as R, S, a as e, r as o } from "./area.component-8AQUkma0.js";
1
+ import { F as s, H as I, b as R, S, a as e, r as o } from "./area.component-D9jjR4-z.js";
2
2
  export {
3
3
  s as FINDING_MORTIES,
4
4
  I as HERE_RICKY,
package/dist/card.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";require("./teleport.component-CH--tF4H.cjs");
1
+ "use strict";require("./teleport.component-C0_49--j.cjs");
2
2
  //# sourceMappingURL=card.cjs.map
package/dist/card.js CHANGED
@@ -1,2 +1,2 @@
1
- import "./teleport.component-Kcn8tqQF.js";
1
+ import "./teleport.component-DgMoPN3L.js";
2
2
  //# sourceMappingURL=card.js.map
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./teleport.component-CH--tF4H.cjs");Object.defineProperty(exports,"SchmancyContentDrawer",{enumerable:!0,get:()=>e.SchmancyContentDrawer}),exports.SchmancyContentDrawerID=e.SchmancyContentDrawerID,Object.defineProperty(exports,"SchmancyContentDrawerMain",{enumerable:!0,get:()=>e.SchmancyContentDrawerMain}),exports.SchmancyContentDrawerMaxHeight=e.SchmancyContentDrawerMaxHeight,exports.SchmancyContentDrawerMinWidth=e.SchmancyContentDrawerMinWidth,Object.defineProperty(exports,"SchmancyContentDrawerSheet",{enumerable:!0,get:()=>e.SchmancyContentDrawerSheet}),exports.SchmancyContentDrawerSheetMode=e.SchmancyContentDrawerSheetMode,exports.SchmancyContentDrawerSheetState=e.SchmancyContentDrawerSheetState,exports.schmancyContentDrawer=e.schmancyContentDrawer;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./teleport.component-C0_49--j.cjs");Object.defineProperty(exports,"SchmancyContentDrawer",{enumerable:!0,get:()=>e.SchmancyContentDrawer}),exports.SchmancyContentDrawerID=e.SchmancyContentDrawerID,Object.defineProperty(exports,"SchmancyContentDrawerMain",{enumerable:!0,get:()=>e.SchmancyContentDrawerMain}),exports.SchmancyContentDrawerMaxHeight=e.SchmancyContentDrawerMaxHeight,exports.SchmancyContentDrawerMinWidth=e.SchmancyContentDrawerMinWidth,Object.defineProperty(exports,"SchmancyContentDrawerSheet",{enumerable:!0,get:()=>e.SchmancyContentDrawerSheet}),exports.SchmancyContentDrawerSheetMode=e.SchmancyContentDrawerSheetMode,exports.SchmancyContentDrawerSheetState=e.SchmancyContentDrawerSheetState,exports.schmancyContentDrawer=e.schmancyContentDrawer;
2
2
  //# sourceMappingURL=content-drawer.cjs.map
@@ -1,4 +1,4 @@
1
- import { e as n, b as t, f as r, c, d as h, g as S, S as o, a as s, s as m } from "./teleport.component-Kcn8tqQF.js";
1
+ import { e as n, b as t, f as r, c, d as h, g as S, S as o, a as s, s as m } from "./teleport.component-DgMoPN3L.js";
2
2
  export {
3
3
  n as SchmancyContentDrawer,
4
4
  t as SchmancyContentDrawerID,
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("./animated-text-B-gRGTS2.cjs");const r=require("./area.component-nkE9S6b3.cjs");require("./autocomplete-Ct3zhedL.cjs"),require("./spinner-DisHMwJU.cjs");const o=require("./icon-button-Bj7wtydv.cjs"),e=require("./teleport.component-CH--tF4H.cjs"),u=require("./checkbox-VYAzANWi.cjs");require("./chips-SxuwP65D.cjs");const b=require("./payment-card-form-CQB_MKO_.cjs");require("./date-range-BKcjHwBs.cjs");const m=require("./delay-_tsTZ2IL.cjs"),a=require("./ripple-C2BHbhcS.cjs");require("./divider-DZ_aPVkO.cjs"),require("./form-CD_4LDVO.cjs"),require("./icon-CHArNkiO.cjs"),require("./input-jRmXX3rp.cjs");const t=require("./flex-BONU-PFy.cjs"),i=require("./list-BZ55pU5L.cjs");require("./menu-Bd6Yleqx.cjs");const n=require("./outlet-IKjizKaN.cjs");require("./option-CLhNC_i9.cjs");const l=require("./radio-group-BwJ-r3hy.cjs"),p=require("./rxjs-utils.cjs");require("rxjs"),require("./index-DyJ0oDpR.cjs");const d=require("./select-DOTwG1aT.cjs"),c=require("./sheet-C_gzbR0e.cjs"),S=require("./slider-uzR2YTuo.cjs"),h=require("./surface-jiFO8Fq-.cjs");require("./table-B2-vIMmg.cjs"),require("./tabs-group-DIkk0A7J.cjs"),require("./textarea-hbpsxkKy.cjs");const y=require("./theme.component-BYbrrqK3.cjs"),f=require("./theme.interface-Xg5Zi46a.cjs");require("./theme-button-CsWs0AS9.cjs");const g=require("./tree-OqMXhWak.cjs"),q=require("./types.cjs"),O=require("./typewriter-I6nigRrM.cjs"),w=require("./typography-CMNtjzZE.cjs"),D=require("./intersection-CVvaDv96.cjs");exports.FINDING_MORTIES=r.FINDING_MORTIES,exports.HERE_RICKY=r.HERE_RICKY,exports.HISTORY_STRATEGY=r.HISTORY_STRATEGY,Object.defineProperty(exports,"SchmancyArea",{enumerable:!0,get:()=>r.SchmancyArea}),exports.area=r.area,exports.routerHistory=r.routerHistory,Object.defineProperty(exports,"SchmancyButton",{enumerable:!0,get:()=>o.SchmancyButton}),Object.defineProperty(exports,"SchmnacyIconButton",{enumerable:!0,get:()=>o.SchmnacyIconButton}),exports.$drawer=e.$drawer,exports.HereMorty=e.HereMorty,Object.defineProperty(exports,"SchmancyContentDrawer",{enumerable:!0,get:()=>e.SchmancyContentDrawer}),exports.SchmancyContentDrawerID=e.SchmancyContentDrawerID,Object.defineProperty(exports,"SchmancyContentDrawerMain",{enumerable:!0,get:()=>e.SchmancyContentDrawerMain}),exports.SchmancyContentDrawerMaxHeight=e.SchmancyContentDrawerMaxHeight,exports.SchmancyContentDrawerMinWidth=e.SchmancyContentDrawerMinWidth,Object.defineProperty(exports,"SchmancyContentDrawerSheet",{enumerable:!0,get:()=>e.SchmancyContentDrawerSheet}),exports.SchmancyContentDrawerSheetMode=e.SchmancyContentDrawerSheetMode,exports.SchmancyContentDrawerSheetState=e.SchmancyContentDrawerSheetState,Object.defineProperty(exports,"SchmancyDrawerAppbar",{enumerable:!0,get:()=>e.SchmancyDrawerAppbar}),exports.SchmancyDrawerNavbarMode=e.SchmancyDrawerNavbarMode,exports.SchmancyDrawerNavbarState=e.SchmancyDrawerNavbarState,Object.defineProperty(exports,"SchmancyNavigationDrawer",{enumerable:!0,get:()=>e.SchmancyNavigationDrawer}),Object.defineProperty(exports,"SchmancyNavigationDrawerContent",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerContent}),Object.defineProperty(exports,"SchmancyNavigationDrawerSidebar",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerSidebar}),Object.defineProperty(exports,"SchmancyTeleportation",{enumerable:!0,get:()=>e.SchmancyTeleportation}),exports.WhereAreYouRicky=e.WhereAreYouRicky,exports.schmancyContentDrawer=e.schmancyContentDrawer,exports.schmancyNavDrawer=e.schmancyNavDrawer,exports.teleport=e.teleport,Object.defineProperty(exports,"SchmancyCheckbox",{enumerable:!0,get:()=>u.SchmancyCheckbox}),Object.defineProperty(exports,"SchmancyPaymentCardForm",{enumerable:!0,get:()=>b.SchmancyPaymentCardForm}),Object.defineProperty(exports,"SchmancyDelay",{enumerable:!0,get:()=>m.SchmancyDelay}),exports.delayContext=m.delayContext,exports.color=a.color,exports.fullHeight=a.fullHeight,exports.ripple=a.ripple,Object.defineProperty(exports,"SchmancyFlex",{enumerable:!0,get:()=>t.SchmancyFlex}),Object.defineProperty(exports,"SchmancyFlexV2",{enumerable:!0,get:()=>t.SchmancyFlexV2}),Object.defineProperty(exports,"SchmancyGrid",{enumerable:!0,get:()=>t.SchmancyGrid}),Object.defineProperty(exports,"SchmancyScroll",{enumerable:!0,get:()=>t.SchmancyScroll}),Object.defineProperty(exports,"List",{enumerable:!0,get:()=>i.List}),Object.defineProperty(exports,"SchmancyListItem",{enumerable:!0,get:()=>i.SchmancyListItem}),exports.SchmancyListTypeContext=i.SchmancyListTypeContext,exports.$notify=n.$notify,Object.defineProperty(exports,"SchmancyNotification",{enumerable:!0,get:()=>n.SchmancyNotification}),Object.defineProperty(exports,"SchmancyNotificationOutlet",{enumerable:!0,get:()=>n.SchmancyNotificationOutlet}),exports.notify=n.notify,Object.defineProperty(exports,"RadioGroup",{enumerable:!0,get:()=>l.RadioGroup}),exports.mutationObserver=p.mutationObserver,Object.defineProperty(exports,"SchmancySelect",{enumerable:!0,get:()=>d.SchmancySelect}),exports.SchmancySheetPosition=c.SchmancySheetPosition,exports.SheetHereMorty=c.SheetHereMorty,exports.SheetWhereAreYouRicky=c.SheetWhereAreYouRicky,exports.sheet=c.sheet,Object.defineProperty(exports,"SchmancySlide",{enumerable:!0,get:()=>S.SchmancySlide}),Object.defineProperty(exports,"SchmancySlider",{enumerable:!0,get:()=>S.SchmancySlider}),Object.defineProperty(exports,"SchmancySurface",{enumerable:!0,get:()=>h.SchmancySurface}),exports.SchmancySurfaceTypeContext=h.SchmancySurfaceTypeContext,Object.defineProperty(exports,"SchmancyThemeComponent",{enumerable:!0,get:()=>y.SchmancyThemeComponent}),exports.formateTheme=y.formateTheme,exports.tailwindStyles=y.tailwindStyles,exports.SchmancyTheme=f.SchmancyTheme,Object.defineProperty(exports,"SchmancyTree",{enumerable:!0,get:()=>g.SchmancyTree}),exports.SchmancyEvents=q.SchmancyEvents,Object.defineProperty(exports,"TypewriterElement",{enumerable:!0,get:()=>O.TypewriterElement}),Object.defineProperty(exports,"SchmancyTypography",{enumerable:!0,get:()=>w.SchmancyTypography}),exports.intersection$=D.intersection$;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"}),require("./animated-text-B-gRGTS2.cjs");const r=require("./area.component--h6lcDbh.cjs");require("./autocomplete-Ct3zhedL.cjs"),require("./spinner-DisHMwJU.cjs");const o=require("./icon-button-Bj7wtydv.cjs"),e=require("./teleport.component-C0_49--j.cjs"),u=require("./checkbox-VYAzANWi.cjs");require("./chips-SxuwP65D.cjs");const b=require("./payment-card-form-CQB_MKO_.cjs");require("./date-range-BKcjHwBs.cjs");const m=require("./delay-_tsTZ2IL.cjs"),a=require("./ripple-C2BHbhcS.cjs");require("./divider-DZ_aPVkO.cjs"),require("./form-CD_4LDVO.cjs"),require("./icon-CHArNkiO.cjs"),require("./input-jRmXX3rp.cjs");const t=require("./flex-BONU-PFy.cjs"),i=require("./list-BZ55pU5L.cjs");require("./menu-Bd6Yleqx.cjs");const n=require("./outlet-BLqhyQ8l.cjs");require("./option-CLhNC_i9.cjs");const l=require("./radio-group-BwJ-r3hy.cjs"),p=require("./rxjs-utils.cjs");require("rxjs"),require("./index-DyJ0oDpR.cjs");const d=require("./select-DOTwG1aT.cjs"),c=require("./sheet-C_gzbR0e.cjs"),S=require("./slider-uzR2YTuo.cjs"),h=require("./surface-jiFO8Fq-.cjs");require("./table-B2-vIMmg.cjs"),require("./tabs-group-DIkk0A7J.cjs"),require("./textarea-hbpsxkKy.cjs");const y=require("./theme.component-BYbrrqK3.cjs"),f=require("./theme.interface-Xg5Zi46a.cjs");require("./theme-button-CsWs0AS9.cjs");const g=require("./tree-OqMXhWak.cjs"),q=require("./types.cjs"),O=require("./typewriter-I6nigRrM.cjs"),w=require("./typography-CMNtjzZE.cjs"),D=require("./intersection-CVvaDv96.cjs");exports.FINDING_MORTIES=r.FINDING_MORTIES,exports.HERE_RICKY=r.HERE_RICKY,exports.HISTORY_STRATEGY=r.HISTORY_STRATEGY,Object.defineProperty(exports,"SchmancyArea",{enumerable:!0,get:()=>r.SchmancyArea}),exports.area=r.area,exports.routerHistory=r.routerHistory,Object.defineProperty(exports,"SchmancyButton",{enumerable:!0,get:()=>o.SchmancyButton}),Object.defineProperty(exports,"SchmnacyIconButton",{enumerable:!0,get:()=>o.SchmnacyIconButton}),exports.$drawer=e.$drawer,exports.HereMorty=e.HereMorty,Object.defineProperty(exports,"SchmancyContentDrawer",{enumerable:!0,get:()=>e.SchmancyContentDrawer}),exports.SchmancyContentDrawerID=e.SchmancyContentDrawerID,Object.defineProperty(exports,"SchmancyContentDrawerMain",{enumerable:!0,get:()=>e.SchmancyContentDrawerMain}),exports.SchmancyContentDrawerMaxHeight=e.SchmancyContentDrawerMaxHeight,exports.SchmancyContentDrawerMinWidth=e.SchmancyContentDrawerMinWidth,Object.defineProperty(exports,"SchmancyContentDrawerSheet",{enumerable:!0,get:()=>e.SchmancyContentDrawerSheet}),exports.SchmancyContentDrawerSheetMode=e.SchmancyContentDrawerSheetMode,exports.SchmancyContentDrawerSheetState=e.SchmancyContentDrawerSheetState,Object.defineProperty(exports,"SchmancyDrawerAppbar",{enumerable:!0,get:()=>e.SchmancyDrawerAppbar}),exports.SchmancyDrawerNavbarMode=e.SchmancyDrawerNavbarMode,exports.SchmancyDrawerNavbarState=e.SchmancyDrawerNavbarState,Object.defineProperty(exports,"SchmancyNavigationDrawer",{enumerable:!0,get:()=>e.SchmancyNavigationDrawer}),Object.defineProperty(exports,"SchmancyNavigationDrawerContent",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerContent}),Object.defineProperty(exports,"SchmancyNavigationDrawerSidebar",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerSidebar}),Object.defineProperty(exports,"SchmancyTeleportation",{enumerable:!0,get:()=>e.SchmancyTeleportation}),exports.WhereAreYouRicky=e.WhereAreYouRicky,exports.schmancyContentDrawer=e.schmancyContentDrawer,exports.schmancyNavDrawer=e.schmancyNavDrawer,exports.teleport=e.teleport,Object.defineProperty(exports,"SchmancyCheckbox",{enumerable:!0,get:()=>u.SchmancyCheckbox}),Object.defineProperty(exports,"SchmancyPaymentCardForm",{enumerable:!0,get:()=>b.SchmancyPaymentCardForm}),Object.defineProperty(exports,"SchmancyDelay",{enumerable:!0,get:()=>m.SchmancyDelay}),exports.delayContext=m.delayContext,exports.color=a.color,exports.fullHeight=a.fullHeight,exports.ripple=a.ripple,Object.defineProperty(exports,"SchmancyFlex",{enumerable:!0,get:()=>t.SchmancyFlex}),Object.defineProperty(exports,"SchmancyFlexV2",{enumerable:!0,get:()=>t.SchmancyFlexV2}),Object.defineProperty(exports,"SchmancyGrid",{enumerable:!0,get:()=>t.SchmancyGrid}),Object.defineProperty(exports,"SchmancyScroll",{enumerable:!0,get:()=>t.SchmancyScroll}),Object.defineProperty(exports,"List",{enumerable:!0,get:()=>i.List}),Object.defineProperty(exports,"SchmancyListItem",{enumerable:!0,get:()=>i.SchmancyListItem}),exports.SchmancyListTypeContext=i.SchmancyListTypeContext,exports.$notify=n.$notify,Object.defineProperty(exports,"SchmancyNotification",{enumerable:!0,get:()=>n.SchmancyNotification}),Object.defineProperty(exports,"SchmancyNotificationOutlet",{enumerable:!0,get:()=>n.SchmancyNotificationOutlet}),exports.notify=n.notify,Object.defineProperty(exports,"RadioGroup",{enumerable:!0,get:()=>l.RadioGroup}),exports.mutationObserver=p.mutationObserver,Object.defineProperty(exports,"SchmancySelect",{enumerable:!0,get:()=>d.SchmancySelect}),exports.SchmancySheetPosition=c.SchmancySheetPosition,exports.SheetHereMorty=c.SheetHereMorty,exports.SheetWhereAreYouRicky=c.SheetWhereAreYouRicky,exports.sheet=c.sheet,Object.defineProperty(exports,"SchmancySlide",{enumerable:!0,get:()=>S.SchmancySlide}),Object.defineProperty(exports,"SchmancySlider",{enumerable:!0,get:()=>S.SchmancySlider}),Object.defineProperty(exports,"SchmancySurface",{enumerable:!0,get:()=>h.SchmancySurface}),exports.SchmancySurfaceTypeContext=h.SchmancySurfaceTypeContext,Object.defineProperty(exports,"SchmancyThemeComponent",{enumerable:!0,get:()=>y.SchmancyThemeComponent}),exports.formateTheme=y.formateTheme,exports.tailwindStyles=y.tailwindStyles,exports.SchmancyTheme=f.SchmancyTheme,Object.defineProperty(exports,"SchmancyTree",{enumerable:!0,get:()=>g.SchmancyTree}),exports.SchmancyEvents=q.SchmancyEvents,Object.defineProperty(exports,"TypewriterElement",{enumerable:!0,get:()=>O.TypewriterElement}),Object.defineProperty(exports,"SchmancyTypography",{enumerable:!0,get:()=>w.SchmancyTypography}),exports.intersection$=D.intersection$;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -1,9 +1,9 @@
1
1
  import "./animated-text-gc7T0HLa.js";
2
- import { F as C, H as d, b as T, S as u, a as b, r as N } from "./area.component-8AQUkma0.js";
2
+ import { F as C, H as d, b as T, S as u, a as b, r as N } from "./area.component-D9jjR4-z.js";
3
3
  import "./autocomplete-DNypXTYG.js";
4
4
  import "./spinner-Ca50o0jU.js";
5
5
  import { S as R, a as v } from "./icon-button-DtoWe88O.js";
6
- import { $ as M, H as g, e as E, b as A, f as F, c as Y, d as $, g as k, S as G, a as L, i as O, k as W, l as _, m as B, j as P, n as j, o as K, W as V, s as q, h as z, t as J } from "./teleport.component-Kcn8tqQF.js";
6
+ import { $ as M, H as g, e as E, b as A, f as F, c as Y, d as $, g as k, S as G, a as L, i as O, k as W, l as _, m as B, j as P, n as j, o as K, W as V, s as q, h as z, t as J } from "./teleport.component-DgMoPN3L.js";
7
7
  import { S as U } from "./checkbox-DxHSWouk.js";
8
8
  import "./chips-BL6vlm9-.js";
9
9
  import { S as Z } from "./payment-card-form-BwmcjAMM.js";
@@ -17,7 +17,7 @@ import "./input-Ctt6mtZc.js";
17
17
  import { S as sa, c as Sa, a as ha, b as ia } from "./flex-CxlUwIat.js";
18
18
  import { L as pa, a as fa, S as xa } from "./list-6C-kQqCi.js";
19
19
  import "./menu-D0izP8_9.js";
20
- import { $ as wa, S as Da, a as Ca, n as da } from "./outlet-Us3Wi-TE.js";
20
+ import { $ as wa, S as Da, a as Ca, n as da } from "./outlet-C_zQSPJ5.js";
21
21
  import "./option-CxIpiUcJ.js";
22
22
  import { R as ua } from "./radio-group-BvtrNylW.js";
23
23
  import { mutationObserver as Na } from "./rxjs-utils.js";
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./teleport.component-CH--tF4H.cjs");exports.$drawer=e.$drawer,Object.defineProperty(exports,"SchmancyDrawerAppbar",{enumerable:!0,get:()=>e.SchmancyDrawerAppbar}),exports.SchmancyDrawerNavbarMode=e.SchmancyDrawerNavbarMode,exports.SchmancyDrawerNavbarState=e.SchmancyDrawerNavbarState,Object.defineProperty(exports,"SchmancyNavigationDrawer",{enumerable:!0,get:()=>e.SchmancyNavigationDrawer}),Object.defineProperty(exports,"SchmancyNavigationDrawerContent",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerContent}),Object.defineProperty(exports,"SchmancyNavigationDrawerSidebar",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerSidebar}),exports.schmancyNavDrawer=e.schmancyNavDrawer;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./teleport.component-C0_49--j.cjs");exports.$drawer=e.$drawer,Object.defineProperty(exports,"SchmancyDrawerAppbar",{enumerable:!0,get:()=>e.SchmancyDrawerAppbar}),exports.SchmancyDrawerNavbarMode=e.SchmancyDrawerNavbarMode,exports.SchmancyDrawerNavbarState=e.SchmancyDrawerNavbarState,Object.defineProperty(exports,"SchmancyNavigationDrawer",{enumerable:!0,get:()=>e.SchmancyNavigationDrawer}),Object.defineProperty(exports,"SchmancyNavigationDrawerContent",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerContent}),Object.defineProperty(exports,"SchmancyNavigationDrawerSidebar",{enumerable:!0,get:()=>e.SchmancyNavigationDrawerSidebar}),exports.schmancyNavDrawer=e.schmancyNavDrawer;
2
2
  //# sourceMappingURL=nav-drawer.cjs.map
@@ -1,4 +1,4 @@
1
- import { $ as c, i as e, k as n, l as m, m as s, j as h, n as i, h as t } from "./teleport.component-Kcn8tqQF.js";
1
+ import { $ as c, i as e, k as n, l as m, m as s, j as h, n as i, h as t } from "./teleport.component-DgMoPN3L.js";
2
2
  export {
3
3
  c as $drawer,
4
4
  e as SchmancyDrawerAppbar,
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./outlet-IKjizKaN.cjs");exports.$notify=t.$notify,Object.defineProperty(exports,"SchmancyNotification",{enumerable:!0,get:()=>t.SchmancyNotification}),Object.defineProperty(exports,"SchmancyNotificationOutlet",{enumerable:!0,get:()=>t.SchmancyNotificationOutlet}),exports.notify=t.notify;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./outlet-BLqhyQ8l.cjs");exports.$notify=t.$notify,Object.defineProperty(exports,"SchmancyNotification",{enumerable:!0,get:()=>t.SchmancyNotification}),Object.defineProperty(exports,"SchmancyNotificationOutlet",{enumerable:!0,get:()=>t.SchmancyNotificationOutlet}),exports.notify=t.notify;
2
2
  //# sourceMappingURL=notification.cjs.map
@@ -1,4 +1,4 @@
1
- import { $ as i, S as o, a as n, n as c } from "./outlet-Us3Wi-TE.js";
1
+ import { $ as i, S as o, a as n, n as c } from "./outlet-C_zQSPJ5.js";
2
2
  export {
3
3
  i as $notify,
4
4
  o as SchmancyNotification,
@@ -0,0 +1,30 @@
1
+ "use strict";const u=require("@floating-ui/dom"),l=require("rxjs");require("lit/directives/class-map.js"),require("lit/directives/style-map.js");const p=require("./tailwind.mixin-DFM3jd9q.cjs"),h=require("lit"),y=require("lit/decorators.js");let d=window.innerWidth/2,m=window.innerHeight/2;async function a(e,t,r){const o=await async function(s,n,i){const c=document.createElement("schmancy-notification");c.type=n,c.innerHTML=s,c.style.visibility="hidden",document.body.appendChild(c);const v=(i==null?void 0:i.referenceElement)||{getBoundingClientRect:()=>({width:0,height:0,x:d,y:m,top:m,right:d,bottom:m,left:d,toJSON:()=>({})})},{x:g,y:w}=await u.computePosition(v,c,{strategy:"fixed",placement:i!=null&&i.referenceElement?"top":"right-start",middleware:[u.offset(8),u.flip(),u.shift({padding:5})]});return c.style.position="fixed",c.style.left=`${g}px`,c.style.top=`${w}px`,c.style.visibility="visible",c.style.zIndex="9999",c}(t,e,r);return l.race(l.fromEvent(o,"close"),l.timer((r==null?void 0:r.duration)??1e3)).subscribe(()=>{o.remove()}),o}l.fromEvent(document,"mousemove").pipe(l.debounceTime(100)).subscribe(e=>{d=e.clientX,m=e.clientY});const b={success:(e,t)=>a("success",e,t),error:(e,t)=>a("error",e,t),warning:(e,t)=>a("warning",e,t),info:(e,t)=>a("info",e,t)};var x=Object.defineProperty,E=Object.getOwnPropertyDescriptor,f=(e,t,r,o)=>{for(var s,n=o>1?void 0:o?E(t,r):t,i=e.length-1;i>=0;i--)(s=e[i])&&(n=(o?s(t,r,n):s(n))||n);return o&&n&&x(t,r,n),n};exports.SchmancyNotification=class extends p.TailwindElement(){constructor(){super(...arguments),this.type="success"}render(){return h.html`
2
+ <div
3
+ class="pointer-events-auto w-full max-w-sm
4
+ rounded-lg bg-surface-container shadow-lg
5
+ ring-1 ring-outlineVariant ring-opacity-5 p-3"
6
+ >
7
+ <!-- Icon + Text + Close Button, etc. -->
8
+ <div class="flex items-center">
9
+ <!-- Icon -->
10
+ <div class="shrink-0 mr-2">
11
+ <!-- Show different icons depending on this.type -->
12
+ <!-- e.g., success, error, etc. -->
13
+ </div>
14
+
15
+ <!-- Text slot -->
16
+ <div class="flex-1">
17
+ <slot></slot>
18
+ </div>
19
+
20
+ <!-- Close -->
21
+ <schmancy-icon-button
22
+ @click=${()=>this.dispatchEvent(new CustomEvent("close"))}
23
+ variant="outlined"
24
+ class="ml-2 text-sm"
25
+ >Close</schmancy-icon-button
26
+ >
27
+ </div>
28
+ </div>
29
+ `}},f([y.property({type:String})],exports.SchmancyNotification.prototype,"type",2),exports.SchmancyNotification=f([y.customElement("schmancy-notification")],exports.SchmancyNotification);var S=Object.getOwnPropertyDescriptor;exports.SchmancyNotificationOutlet=class extends p.TailwindElement(){render(){return h.html` <slot></slot> `}},exports.SchmancyNotificationOutlet=((e,t,r,o)=>{for(var s,n=o>1?void 0:o?S(t,r):t,i=e.length-1;i>=0;i--)(s=e[i])&&(n=s(n)||n);return n})([y.customElement("schmancy-notification-outlet")],exports.SchmancyNotificationOutlet),exports.$notify=b,exports.notify=a;
30
+ //# sourceMappingURL=outlet-BLqhyQ8l.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outlet-BLqhyQ8l.cjs","sources":["../src/notification/$notification.ts","../src/notification/notification.ts","../src/notification/outlet.ts"],"sourcesContent":["import { computePosition, flip, offset, shift } from '@floating-ui/dom'\nimport { debounceTime, fromEvent, race, timer } from 'rxjs'\nimport { SchmancyNotification } from './notification'\n\nexport type TNotification = 'success' | 'error' | 'warning' | 'info'\nexport type TNotificationConfig = {\n\tduration?: number\n\treferenceElement?: HTMLElement\n}\n\n// Track cursor position globally\nlet lastMouseX = window.innerWidth / 2\nlet lastMouseY = window.innerHeight / 2\n\nfromEvent(document, 'mousemove')\n\t.pipe(\n\t\tdebounceTime(100), // Throttle to 10fps\n\t)\n\t.subscribe((e: MouseEvent) => {\n\t\tconsole.count()\n\t\tlastMouseX = e.clientX\n\t\tlastMouseY = e.clientY\n\t})\n\nasync function createNotification(\n\tmessage: string,\n\ttype: TNotification,\n\tconfig?: TNotificationConfig,\n): Promise<SchmancyNotification> {\n\tconst notification = document.createElement('schmancy-notification') as SchmancyNotification\n\tnotification.type = type\n\tnotification.innerHTML = message\n\n\t// Temporarily hide the notification and add to DOM to calculate dimensions\n\tnotification.style.visibility = 'hidden'\n\tdocument.body.appendChild(notification)\n\n\t// Determine reference element (same as before)\n\tconst referenceElement = config?.referenceElement || {\n\t\tgetBoundingClientRect: () => ({\n\t\t\twidth: 0,\n\t\t\theight: 0,\n\t\t\tx: lastMouseX,\n\t\t\ty: lastMouseY,\n\t\t\ttop: lastMouseY,\n\t\t\tright: lastMouseX,\n\t\t\tbottom: lastMouseY,\n\t\t\tleft: lastMouseX,\n\t\t\ttoJSON: () => ({}),\n\t\t}),\n\t}\n\n\t// Compute position with accurate dimensions\n\tconst { x, y } = await computePosition(referenceElement, notification, {\n\t\tstrategy: 'fixed',\n\t\tplacement: config?.referenceElement ? 'top' : 'right-start',\n\t\tmiddleware: [offset(8), flip(), shift({ padding: 5 })],\n\t})\n\n\t// Apply positioning and make visible\n\tnotification.style.position = 'fixed'\n\tnotification.style.left = `${x}px`\n\tnotification.style.top = `${y}px`\n\tnotification.style.visibility = 'visible' // Make visible after positioning\n\tnotification.style.zIndex = '9999'\n\n\treturn notification\n}\n\n// Rest of your existing code remains the same...\nexport async function notify(type: TNotification, message: string, config?: TNotificationConfig) {\n\tconst notification = await createNotification(message, type, config)\n\n\t// Remove after duration or close event\n\trace(fromEvent(notification, 'close'), timer(config?.duration ?? 1000)).subscribe(() => {\n\t\tnotification.remove()\n\t})\n\n\treturn notification\n}\n\n// Shorthand API\nexport const $notify = {\n\tsuccess: (message: string, config?: TNotificationConfig) => notify('success', message, config),\n\terror: (message: string, config?: TNotificationConfig) => notify('error', message, config),\n\twarning: (message: string, config?: TNotificationConfig) => notify('warning', message, config),\n\tinfo: (message: string, config?: TNotificationConfig) => notify('info', message, config),\n}\n","import { TailwindElement } from '@mixins/index'\nimport { html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\n\n@customElement('schmancy-notification')\nexport class SchmancyNotification extends TailwindElement() {\n\t@property({ type: String })\n\ttype: 'success' | 'error' | 'warning' | 'info' = 'success'\n\n\trender() {\n\t\treturn html`\n\t\t\t<div\n\t\t\t\tclass=\"pointer-events-auto w-full max-w-sm\n rounded-lg bg-surface-container shadow-lg\n ring-1 ring-outlineVariant ring-opacity-5 p-3\"\n\t\t\t>\n\t\t\t\t<!-- Icon + Text + Close Button, etc. -->\n\t\t\t\t<div class=\"flex items-center\">\n\t\t\t\t\t<!-- Icon -->\n\t\t\t\t\t<div class=\"shrink-0 mr-2\">\n\t\t\t\t\t\t<!-- Show different icons depending on this.type -->\n\t\t\t\t\t\t<!-- e.g., success, error, etc. -->\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- Text slot -->\n\t\t\t\t\t<div class=\"flex-1\">\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- Close -->\n\t\t\t\t\t<schmancy-icon-button\n\t\t\t\t\t\t@click=${() => this.dispatchEvent(new CustomEvent('close'))}\n\t\t\t\t\t\tvariant=\"outlined\"\n\t\t\t\t\t\tclass=\"ml-2 text-sm\"\n\t\t\t\t\t\t>Close</schmancy-icon-button\n\t\t\t\t\t>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-notification': SchmancyNotification\n\t}\n}\n","import { TailwindElement } from '@mixins/index'\nimport { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\n@customElement('schmancy-notification-outlet')\nexport class SchmancyNotificationOutlet extends TailwindElement() {\n\trender() {\n\t\treturn html` <slot></slot> `\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-notification-outlet': SchmancyNotificationOutlet\n\t}\n}\n"],"names":["lastMouseX","window","innerWidth","lastMouseY","innerHeight","async","notify","type","message","config","notification","document","createElement","innerHTML","style","visibility","body","appendChild","referenceElement","getBoundingClientRect","width","height","x","y","top","right","bottom","left","toJSON","computePosition","strategy","placement","middleware","offset","flip","shift","padding","position","zIndex","race","fromEvent","timer","duration","subscribe","remove","pipe","debounceTime","e","clientX","clientY","$notify","success","error","warning","info","SchmancyNotification","TailwindElement","super","arguments","this","html","dispatchEvent","CustomEvent","__decorateClass","property","String","prototype","customElement","SchmancyNotificationOutlet"],"mappings":"gPAWA,EAAA,IAAIA,EAAaC,OAAOC,WAAa,EACjCC,EAAaF,OAAOG,YAAc,EA0DhBC,eAAAC,EAAOC,EAAqBC,EAAiBC,EAClE,CAAA,MAAMC,EA/CPL,MAAAA,eACCG,EACAD,EACAE,GAEM,MAAAC,EAAeC,SAASC,cAAc,uBAC5CF,EAAAA,EAAaH,KAAOA,EACpBG,EAAaG,UAAYL,EAGzBE,EAAaI,MAAMC,WAAa,SACvBJ,SAAAK,KAAKC,YAAYP,CAGpB,EAAA,MAAAQ,GAAmBT,iBAAQS,mBAAoB,CACpDC,sBAAuB,KAAO,CAC7BC,MAAO,EACPC,OAAQ,EACRC,EAAGtB,EACHuB,EAAGpB,EACHqB,IAAKrB,EACLsB,MAAOzB,EACP0B,OAAQvB,EACRwB,KAAM3B,EACN4B,OAAQ,KAAA,CAAQ,EAAA,EAAA,EAAA,CAKZN,EAAEA,EAAGC,EAAAA,CAAAA,EAAAA,MAAYM,EAAAA,gBAAgBX,EAAkBR,EAAc,CACtEoB,SAAU,QACVC,UAAWtB,WAAQS,iBAAmB,MAAQ,cAC9Cc,WAAY,CAACC,SAAO,CAAIC,EAAAA,EAAAA,KAAQC,EAAAA,QAAM,CAAEC,QAAS,CAU3C,CAAA,CAAA,CAAA,CAAA,EAAA,OANP1B,EAAaI,MAAMuB,SAAW,QACjB3B,EAAAI,MAAMa,KAAO,GAAGL,CAAAA,KAChBZ,EAAAI,MAAMU,IAAM,GAAGD,MAC5Bb,EAAaI,MAAMC,WAAa,UAChCL,EAAaI,MAAMwB,OAAS,OAErB5B,CACR,EAI+CF,EAASD,EAAME,CAAAA,EAOtD,OAJF8B,EAAAA,KAAAC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,QAANA,iIAAA,CADND,EAAAA,cAAc,iCACFC"}
@@ -1,36 +1,36 @@
1
- import { computePosition as b, offset as E, flip as C, shift as O } from "@floating-ui/dom";
2
- import { fromEvent as f, debounceTime as T, race as j, timer as P } from "rxjs";
1
+ import { computePosition as x, offset as E, flip as C, shift as O } from "@floating-ui/dom";
2
+ import { fromEvent as f, debounceTime as T, race as P, timer as S } from "rxjs";
3
3
  import "lit/directives/class-map.js";
4
4
  import "lit/directives/style-map.js";
5
5
  import { T as y } from "./tailwind.mixin-ECkyl80C.js";
6
- import { html as g } from "lit";
7
- import { property as S, customElement as h } from "lit/decorators.js";
6
+ import { html as h } from "lit";
7
+ import { property as $, customElement as g } from "lit/decorators.js";
8
8
  let l = window.innerWidth / 2, d = window.innerHeight / 2;
9
- async function a(e, t, i) {
10
- const s = await async function(c, o, n) {
11
- const r = document.createElement("schmancy-notification");
12
- r.type = o, r.innerHTML = c;
13
- const v = (n == null ? void 0 : n.referenceElement) || { getBoundingClientRect: () => ({ width: 0, height: 0, x: l, y: d, top: d, right: l, bottom: d, left: l, toJSON: () => ({}) }) }, { x: w, y: x } = await b(v, r, { strategy: "fixed", placement: n != null && n.referenceElement ? "top" : "right-start", middleware: [E(8), C(), O({ padding: 5 })] });
14
- return r.style.position = "fixed", r.style.left = `${w}px`, r.style.top = `${x}px`, r.style.zIndex = "9999", document.body.appendChild(r), r;
15
- }(t, e, i);
16
- return j(f(s, "close"), P((i == null ? void 0 : i.duration) ?? 1e3)).subscribe(() => {
17
- s.remove();
18
- }), s;
9
+ async function a(e, t, r) {
10
+ const n = await async function(c, i, s) {
11
+ const o = document.createElement("schmancy-notification");
12
+ o.type = i, o.innerHTML = c, o.style.visibility = "hidden", document.body.appendChild(o);
13
+ const v = (s == null ? void 0 : s.referenceElement) || { getBoundingClientRect: () => ({ width: 0, height: 0, x: l, y: d, top: d, right: l, bottom: d, left: l, toJSON: () => ({}) }) }, { x: w, y: b } = await x(v, o, { strategy: "fixed", placement: s != null && s.referenceElement ? "top" : "right-start", middleware: [E(8), C(), O({ padding: 5 })] });
14
+ return o.style.position = "fixed", o.style.left = `${w}px`, o.style.top = `${b}px`, o.style.visibility = "visible", o.style.zIndex = "9999", o;
15
+ }(t, e, r);
16
+ return P(f(n, "close"), S((r == null ? void 0 : r.duration) ?? 1e3)).subscribe(() => {
17
+ n.remove();
18
+ }), n;
19
19
  }
20
20
  f(document, "mousemove").pipe(T(100)).subscribe((e) => {
21
21
  l = e.clientX, d = e.clientY;
22
22
  });
23
23
  const N = { success: (e, t) => a("success", e, t), error: (e, t) => a("error", e, t), warning: (e, t) => a("warning", e, t), info: (e, t) => a("info", e, t) };
24
- var $ = Object.defineProperty, I = Object.getOwnPropertyDescriptor, p = (e, t, i, s) => {
25
- for (var c, o = s > 1 ? void 0 : s ? I(t, i) : t, n = e.length - 1; n >= 0; n--) (c = e[n]) && (o = (s ? c(t, i, o) : c(o)) || o);
26
- return s && o && $(t, i, o), o;
24
+ var j = Object.defineProperty, I = Object.getOwnPropertyDescriptor, p = (e, t, r, n) => {
25
+ for (var c, i = n > 1 ? void 0 : n ? I(t, r) : t, s = e.length - 1; s >= 0; s--) (c = e[s]) && (i = (n ? c(t, r, i) : c(i)) || i);
26
+ return n && i && j(t, r, i), i;
27
27
  };
28
28
  let m = class extends y() {
29
29
  constructor() {
30
30
  super(...arguments), this.type = "success";
31
31
  }
32
32
  render() {
33
- return g`
33
+ return h`
34
34
  <div
35
35
  class="pointer-events-auto w-full max-w-sm
36
36
  rounded-lg bg-surface-container shadow-lg
@@ -61,21 +61,21 @@ let m = class extends y() {
61
61
  `;
62
62
  }
63
63
  };
64
- p([S({ type: String })], m.prototype, "type", 2), m = p([h("schmancy-notification")], m);
64
+ p([$({ type: String })], m.prototype, "type", 2), m = p([g("schmancy-notification")], m);
65
65
  var k = Object.getOwnPropertyDescriptor;
66
66
  let u = class extends y() {
67
67
  render() {
68
- return g` <slot></slot> `;
68
+ return h` <slot></slot> `;
69
69
  }
70
70
  };
71
- u = ((e, t, i, s) => {
72
- for (var c, o = s > 1 ? void 0 : s ? k(t, i) : t, n = e.length - 1; n >= 0; n--) (c = e[n]) && (o = c(o) || o);
73
- return o;
74
- })([h("schmancy-notification-outlet")], u);
71
+ u = ((e, t, r, n) => {
72
+ for (var c, i = n > 1 ? void 0 : n ? k(t, r) : t, s = e.length - 1; s >= 0; s--) (c = e[s]) && (i = c(i) || i);
73
+ return i;
74
+ })([g("schmancy-notification-outlet")], u);
75
75
  export {
76
76
  N as $,
77
77
  m as S,
78
78
  u as a,
79
79
  a as n
80
80
  };
81
- //# sourceMappingURL=outlet-Us3Wi-TE.js.map
81
+ //# sourceMappingURL=outlet-C_zQSPJ5.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"outlet-C_zQSPJ5.js","sources":["../src/notification/$notification.ts","../src/notification/notification.ts","../src/notification/outlet.ts"],"sourcesContent":["import { computePosition, flip, offset, shift } from '@floating-ui/dom'\nimport { debounceTime, fromEvent, race, timer } from 'rxjs'\nimport { SchmancyNotification } from './notification'\n\nexport type TNotification = 'success' | 'error' | 'warning' | 'info'\nexport type TNotificationConfig = {\n\tduration?: number\n\treferenceElement?: HTMLElement\n}\n\n// Track cursor position globally\nlet lastMouseX = window.innerWidth / 2\nlet lastMouseY = window.innerHeight / 2\n\nfromEvent(document, 'mousemove')\n\t.pipe(\n\t\tdebounceTime(100), // Throttle to 10fps\n\t)\n\t.subscribe((e: MouseEvent) => {\n\t\tconsole.count()\n\t\tlastMouseX = e.clientX\n\t\tlastMouseY = e.clientY\n\t})\n\nasync function createNotification(\n\tmessage: string,\n\ttype: TNotification,\n\tconfig?: TNotificationConfig,\n): Promise<SchmancyNotification> {\n\tconst notification = document.createElement('schmancy-notification') as SchmancyNotification\n\tnotification.type = type\n\tnotification.innerHTML = message\n\n\t// Temporarily hide the notification and add to DOM to calculate dimensions\n\tnotification.style.visibility = 'hidden'\n\tdocument.body.appendChild(notification)\n\n\t// Determine reference element (same as before)\n\tconst referenceElement = config?.referenceElement || {\n\t\tgetBoundingClientRect: () => ({\n\t\t\twidth: 0,\n\t\t\theight: 0,\n\t\t\tx: lastMouseX,\n\t\t\ty: lastMouseY,\n\t\t\ttop: lastMouseY,\n\t\t\tright: lastMouseX,\n\t\t\tbottom: lastMouseY,\n\t\t\tleft: lastMouseX,\n\t\t\ttoJSON: () => ({}),\n\t\t}),\n\t}\n\n\t// Compute position with accurate dimensions\n\tconst { x, y } = await computePosition(referenceElement, notification, {\n\t\tstrategy: 'fixed',\n\t\tplacement: config?.referenceElement ? 'top' : 'right-start',\n\t\tmiddleware: [offset(8), flip(), shift({ padding: 5 })],\n\t})\n\n\t// Apply positioning and make visible\n\tnotification.style.position = 'fixed'\n\tnotification.style.left = `${x}px`\n\tnotification.style.top = `${y}px`\n\tnotification.style.visibility = 'visible' // Make visible after positioning\n\tnotification.style.zIndex = '9999'\n\n\treturn notification\n}\n\n// Rest of your existing code remains the same...\nexport async function notify(type: TNotification, message: string, config?: TNotificationConfig) {\n\tconst notification = await createNotification(message, type, config)\n\n\t// Remove after duration or close event\n\trace(fromEvent(notification, 'close'), timer(config?.duration ?? 1000)).subscribe(() => {\n\t\tnotification.remove()\n\t})\n\n\treturn notification\n}\n\n// Shorthand API\nexport const $notify = {\n\tsuccess: (message: string, config?: TNotificationConfig) => notify('success', message, config),\n\terror: (message: string, config?: TNotificationConfig) => notify('error', message, config),\n\twarning: (message: string, config?: TNotificationConfig) => notify('warning', message, config),\n\tinfo: (message: string, config?: TNotificationConfig) => notify('info', message, config),\n}\n","import { TailwindElement } from '@mixins/index'\nimport { html } from 'lit'\nimport { customElement, property } from 'lit/decorators.js'\n\n@customElement('schmancy-notification')\nexport class SchmancyNotification extends TailwindElement() {\n\t@property({ type: String })\n\ttype: 'success' | 'error' | 'warning' | 'info' = 'success'\n\n\trender() {\n\t\treturn html`\n\t\t\t<div\n\t\t\t\tclass=\"pointer-events-auto w-full max-w-sm\n rounded-lg bg-surface-container shadow-lg\n ring-1 ring-outlineVariant ring-opacity-5 p-3\"\n\t\t\t>\n\t\t\t\t<!-- Icon + Text + Close Button, etc. -->\n\t\t\t\t<div class=\"flex items-center\">\n\t\t\t\t\t<!-- Icon -->\n\t\t\t\t\t<div class=\"shrink-0 mr-2\">\n\t\t\t\t\t\t<!-- Show different icons depending on this.type -->\n\t\t\t\t\t\t<!-- e.g., success, error, etc. -->\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- Text slot -->\n\t\t\t\t\t<div class=\"flex-1\">\n\t\t\t\t\t\t<slot></slot>\n\t\t\t\t\t</div>\n\n\t\t\t\t\t<!-- Close -->\n\t\t\t\t\t<schmancy-icon-button\n\t\t\t\t\t\t@click=${() => this.dispatchEvent(new CustomEvent('close'))}\n\t\t\t\t\t\tvariant=\"outlined\"\n\t\t\t\t\t\tclass=\"ml-2 text-sm\"\n\t\t\t\t\t\t>Close</schmancy-icon-button\n\t\t\t\t\t>\n\t\t\t\t</div>\n\t\t\t</div>\n\t\t`\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-notification': SchmancyNotification\n\t}\n}\n","import { TailwindElement } from '@mixins/index'\nimport { html } from 'lit'\nimport { customElement } from 'lit/decorators.js'\n\n@customElement('schmancy-notification-outlet')\nexport class SchmancyNotificationOutlet extends TailwindElement() {\n\trender() {\n\t\treturn html` <slot></slot> `\n\t}\n}\n\ndeclare global {\n\tinterface HTMLElementTagNameMap {\n\t\t'schmancy-notification-outlet': SchmancyNotificationOutlet\n\t}\n}\n"],"names":["lastMouseX","window","innerWidth","lastMouseY","innerHeight","async","notify","type","message","config","notification","document","createElement","innerHTML","style","visibility","body","appendChild","referenceElement","getBoundingClientRect","width","height","x","y","top","right","bottom","left","toJSON","computePosition","strategy","placement","middleware","offset","flip","shift","padding","position","zIndex","race","fromEvent","timer","duration","subscribe","remove","pipe","debounceTime","e","clientX","clientY","$notify","success","error","warning","info","SchmancyNotification","TailwindElement","super","arguments","this","render","html","dispatchEvent","Cust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(exports,Symbol.toStringTag,{value:"Module"});const e=require("./teleport.component-CH--tF4H.cjs");exports.HereMorty=e.HereMorty,Object.defineProperty(exports,"SchmancyTeleportation",{enumerable:!0,get:()=>e.SchmancyTeleportation}),exports.WhereAreYouRicky=e.WhereAreYouRicky,exports.teleport=e.teleport;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./teleport.component-C0_49--j.cjs");exports.HereMorty=e.HereMorty,Object.defineProperty(exports,"SchmancyTeleportation",{enumerable:!0,get:()=>e.SchmancyTeleportation}),exports.WhereAreYouRicky=e.WhereAreYouRicky,exports.teleport=e.teleport;
2
2
  //# sourceMappingURL=teleport.cjs.map