@fluid-topics/ft-announcement 2.0.23 → 2.0.25

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.
@@ -82,7 +82,7 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:r.extend("--ftds-con
82
82
  <li>${this.helperText}</li>
83
83
  `)}
84
84
  </ul>
85
- `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?tt.error:this.warningMessages.length?tt.warning:tt.default}processRules(n){return n.map(a=>a(this.value)).filter(a=>a!==!0).map(a=>a)}}return K([L()],e.prototype,"warningRules",void 0),K([L()],e.prototype,"errorRules",void 0),K([L()],e.prototype,"validateOn",void 0),K([L({type:Boolean})],e.prototype,"validateAtRender",void 0),K([L()],e.prototype,"label",void 0),K([L({type:Boolean})],e.prototype,"hideLabel",void 0),K([L()],e.prototype,"name",void 0),K([L({type:Boolean})],e.prototype,"disabled",void 0),K([L()],e.prototype,"helperText",void 0),K([L()],e.prototype,"forceStatus",void 0),K([L({reflect:!0})],e.prototype,"value",void 0),K([ue()],e.prototype,"errorMessages",void 0),K([ue()],e.prototype,"warningMessages",void 0),K([ue()],e.prototype,"status",void 0),K([ue()],e.prototype,"focused",void 0),K([ue()],e.prototype,"additionalWarningRules",void 0),K([ue()],e.prototype,"additionalErrorRules",void 0),e});var yr=(t,e)=>{let o=t._$AN;if(o===void 0)return!1;for(let n of o)n._$AO?.(e,!1),yr(n,e);return!0},Yr=t=>{let e,o;do{if((e=t._$AM)===void 0)break;o=e._$AN,o.delete(t),t=e}while(o?.size===0)},mc=t=>{for(let e;e=t._$AM;t=e){let o=e._$AN;if(o===void 0)e._$AN=o=new Set;else if(o.has(t))break;o.add(t),$u(e)}};function Uu(t){this._$AN!==void 0?(Yr(this),this._$AM=t,mc(this)):this._$AM=t}function Bu(t,e=!1,o=0){let n=this._$AH,a=this._$AN;if(a!==void 0&&a.size!==0)if(e)if(Array.isArray(n))for(let i=o;i<n.length;i++)yr(n[i],!1),Yr(n[i]);else n!=null&&(yr(n,!1),Yr(n));else yr(this,t)}var $u=t=>{t.type==fe.CHILD&&(t._$AP??=Bu,t._$AQ??=Uu)},At=class extends re{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,o,n){super._$AT(e,o,n),mc(this),this.isConnected=e._$AU}_$AO(e,o=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),o&&(yr(this,e),Yr(this))}setValue(e){if(Va(this._$Ct))this._$Ct._$AI(e,this);else{let o=[...this._$Ct._$AH];o[this._$Ci]=e,this._$Ct._$AI(o,this,0)}}disconnected(){}reconnected(){}};var xa=class extends At{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async o=>{if(!this.element||!o.relatedTarget)return;let n=o.relatedTarget;this.isInsideElement(n,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async o=>{if(!this.element||!o.relatedTarget)return;let n=o.relatedTarget;this.isInsideElement(n,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return G}update(e){return this.part=e,this.isElementTrappable(e.element)&&this.createFocusTrap(e.element),G}reconnected(){var e;this.isElementTrappable((e=this.part)===null||e===void 0?void 0:e.element)&&this.createFocusTrap(this.part.element)}disconnected(){var e,o,n,a;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(o=this.lastTrap)===null||o===void 0||o.removeEventListener("focus",this.onLastTrapFocus),(n=this.firstTrap)===null||n===void 0||n.remove(),(a=this.lastTrap)===null||a===void 0||a.remove(),this.firstTrap=void 0,this.lastTrap=void 0}isElementTrappable(e){return!!e&&e instanceof HTMLElement&&e.childElementCount>0}createFocusTrap(e){this.firstTrap=this.createTrap(),this.lastTrap=this.createTrap(),e.insertBefore(this.firstTrap,e.firstChild),e.appendChild(this.lastTrap),this.lastTrap.addEventListener("focus",this.onLastTrapFocus),this.firstTrap.addEventListener("focus",this.onFirstTrapFocus)}createTrap(){let e=document.createElement("div");return e.tabIndex=0,e}getChildren(e){return e instanceof HTMLSlotElement?e.assignedElements():e.shadowRoot?e.shadowRoot.children:e.children}async focusFirstDescendant(e){await this.updateCompleteIfNecessary(e);let o=this.getChildren(e);for(let n=0;n<o.length;n++){let a=o[n];if(a instanceof HTMLElement&&(this.attemptFocus(a)||await this.focusFirstDescendant(a)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let o=this.getChildren(e);for(let n=o.length-1;n>=0;n--){let a=o[n];if(a instanceof HTMLElement&&(this.attemptFocus(a)||await this.focusLastDescendant(a)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof te&&await e.updateComplete}isInsideElement(e,o){for(let n=e;n;n=n.parentNode){if(n===o)return!0;n instanceof ShadowRoot?n=n.host:n.assignedSlot&&(n=n.assignedSlot)}return!1}attemptFocus(e){return e===this.firstTrap||e===this.lastTrap||!this.isFocusable(e)?!1:(e.focus(),!0)}isFocusable(e){return!e.checkVisibility()||this.isElementDisabled(e)?!1:e instanceof HTMLAnchorElement?!!e.href&&e.rel!=="ignore":e instanceof HTMLInputElement?e.type!=="hidden":e.tabIndex>=0}isElementDisabled(e){return"disabled"in e&&!!e.disabled}},_x=J(xa);var gc;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(gc||(gc={}));var Hu={sm:640,md:768,lg:1024,xl:1280},va=class extends At{constructor(e){super(e),this.size=0,this.onResize=()=>{let o=window.innerWidth;this.size!==o&&(this.size=o,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[o,n,a]){return this.lastArgs=[o,n,a],this.render(o,n,a)}render(e,o,n){let a=this.resolveThreshold(e),i=n??(()=>H);return this.size>a?o():i()}resolveThreshold(e){return typeof e=="number"?e:Hu[e]}},Nx=J(va);var Sa,Oa,Ea,Ca,zu=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ea=(Oa=(Sa=window.safari)===null||Sa===void 0?void 0:Sa.pushNotification)===null||Oa===void 0?void 0:Oa.toString())!==null&&Ea!==void 0?Ea:"")==="[object SafariRemoteNotification]",Wu="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ca=window.ftGlobals)!==null&&Ca!==void 0?Ca:{lit:yo,litDecorators:mo,litRepeat:go,litClassMap:bo,litStyleMap:xo,litUnsafeHTML:vo,wcUtils:{..._o,...Oo,...Fo,...fa,...Do,...Uo,...on,...To,...bn,...ma,...pc,...ia,...xn,...rn,...wn,...da,...En,...ga,...Gi,...wo,...Rn,...nn,...Tn,...hc,...Vi,..._n,...oa,...ha,...vn,...On,...ca,...Lo,isSafari:zu,isTouchScreen:Wu,setVariable:ct}};var ke=class extends Event{constructor(e,o,n,a){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=o,this.callback=n,this.subscribe=a??!1}};var Rt=class{constructor(e,o,n,a){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(i,s)=>{this.unsubscribe&&(this.unsubscribe!==s&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=i,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(i,s)),this.unsubscribe=s},this.host=e,o.context!==void 0){let i=o;this.context=i.context,this.callback=i.callback,this.subscribe=i.subscribe??!1}else this.context=o,this.callback=n,this.subscribe=a??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new ke(this.context,this.host,this.t,this.subscribe))}};var Xr=class{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,o=!1){let n=o||!Object.is(e,this.o);this.o=e,n&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[o,{disposer:n}]of this.subscriptions)o(this.o,n)},e!==void 0&&(this.value=e)}addCallback(e,o,n){if(!n)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:o});let{disposer:a}=this.subscriptions.get(e);e(this.value,a)}clearCallbacks(){this.subscriptions.clear()}};var wa=class extends Event{constructor(e,o){super("context-provider",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=o}},Tt=class extends Xr{constructor(e,o,n){super(o.context!==void 0?o.initialValue:n),this.onContextRequest=a=>{if(a.context!==this.context)return;let i=a.contextTarget??a.composedPath()[0];i!==this.host&&(a.stopPropagation(),this.addCallback(a.callback,i,a.subscribe))},this.onProviderRequest=a=>{if(a.context!==this.context||(a.contextTarget??a.composedPath()[0])===this.host)return;let i=new Set;for(let[s,{consumerHost:l}]of this.subscriptions)i.has(s)||(i.add(s),l.dispatchEvent(new ke(this.context,l,s,!0)));a.stopPropagation()},this.host=e,o.context!==void 0?this.context=o.context:this.context=o,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new wa(this.context,this.host))}};function Aa({context:t}){return(e,o)=>{let n=new WeakMap;if(typeof o=="object")return{get(){return e.get.call(this)},set(a){return n.get(this).setValue(a),e.set.call(this,a)},init(a){return n.set(this,new Tt(this,{context:t,initialValue:a})),a}};{e.constructor.addInitializer(s=>{n.set(s,new Tt(s,{context:t}))});let a=Object.getOwnPropertyDescriptor(e,o),i;if(a===void 0){let s=new WeakMap;i={get(){return s.get(this)},set(l){n.get(this).setValue(l),s.set(this,l)},configurable:!0,enumerable:!0}}else{let s=a.set;i={...a,set(l){n.get(this).setValue(l),s?.call(this,l)}}}return void Object.defineProperty(e,o,i)}}}function Ra({context:t,subscribe:e}){return(o,n)=>{typeof n=="object"?n.addInitializer(function(){new Rt(this,{context:t,callback:a=>{o.set.call(this,a)},subscribe:e})}):o.constructor.addInitializer(a=>{new Rt(a,{context:t,callback:i=>{a[n]=i},subscribe:e})})}}var Jr=Symbol("announcement-context");var ju=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},mr=class extends W{render(){return Z`
85
+ `}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?tt.error:this.warningMessages.length?tt.warning:tt.default}processRules(n){return n.map(a=>a(this.value)).filter(a=>a!==!0).map(a=>a)}}return K([L()],e.prototype,"warningRules",void 0),K([L()],e.prototype,"errorRules",void 0),K([L()],e.prototype,"validateOn",void 0),K([L({type:Boolean})],e.prototype,"validateAtRender",void 0),K([L()],e.prototype,"label",void 0),K([L({type:Boolean})],e.prototype,"hideLabel",void 0),K([L()],e.prototype,"name",void 0),K([L({type:Boolean})],e.prototype,"disabled",void 0),K([L()],e.prototype,"helperText",void 0),K([L()],e.prototype,"forceStatus",void 0),K([L({reflect:!0})],e.prototype,"value",void 0),K([ue()],e.prototype,"errorMessages",void 0),K([ue()],e.prototype,"warningMessages",void 0),K([ue()],e.prototype,"status",void 0),K([ue()],e.prototype,"focused",void 0),K([ue()],e.prototype,"additionalWarningRules",void 0),K([ue()],e.prototype,"additionalErrorRules",void 0),e});var yr=(t,e)=>{let o=t._$AN;if(o===void 0)return!1;for(let n of o)n._$AO?.(e,!1),yr(n,e);return!0},Yr=t=>{let e,o;do{if((e=t._$AM)===void 0)break;o=e._$AN,o.delete(t),t=e}while(o?.size===0)},mc=t=>{for(let e;e=t._$AM;t=e){let o=e._$AN;if(o===void 0)e._$AN=o=new Set;else if(o.has(t))break;o.add(t),$u(e)}};function Uu(t){this._$AN!==void 0?(Yr(this),this._$AM=t,mc(this)):this._$AM=t}function Bu(t,e=!1,o=0){let n=this._$AH,a=this._$AN;if(a!==void 0&&a.size!==0)if(e)if(Array.isArray(n))for(let i=o;i<n.length;i++)yr(n[i],!1),Yr(n[i]);else n!=null&&(yr(n,!1),Yr(n));else yr(this,t)}var $u=t=>{t.type==fe.CHILD&&(t._$AP??=Bu,t._$AQ??=Uu)},At=class extends re{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,o,n){super._$AT(e,o,n),mc(this),this.isConnected=e._$AU}_$AO(e,o=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),o&&(yr(this,e),Yr(this))}setValue(e){if(Va(this._$Ct))this._$Ct._$AI(e,this);else{let o=[...this._$Ct._$AH];o[this._$Ci]=e,this._$Ct._$AI(o,this,0)}}disconnected(){}reconnected(){}};var xa=class extends At{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async o=>{if(!this.element||!o.relatedTarget)return;let n=o.relatedTarget;this.isInsideElement(n,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async o=>{if(!this.element||!o.relatedTarget)return;let n=o.relatedTarget;this.isInsideElement(n,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return G}update(e){return this.part=e,this.ensureFocusTrap(e.element),G}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var o,n;this.isElementTrappable(e)&&(((o=this.firstTrap)===null||o===void 0?void 0:o.parentElement)===e&&((n=this.lastTrap)===null||n===void 0?void 0:n.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,o,n,a;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(o=this.lastTrap)===null||o===void 0||o.removeEventListener("focus",this.onLastTrapFocus),(n=this.firstTrap)===null||n===void 0||n.remove(),(a=this.lastTrap)===null||a===void 0||a.remove(),this.firstTrap=void 0,this.lastTrap=void 0}isElementTrappable(e){return!!e&&e instanceof HTMLElement&&e.childElementCount>0}createFocusTrap(e){this.firstTrap=this.createTrap(),this.lastTrap=this.createTrap(),e.insertBefore(this.firstTrap,e.firstChild),e.appendChild(this.lastTrap),this.lastTrap.addEventListener("focus",this.onLastTrapFocus),this.firstTrap.addEventListener("focus",this.onFirstTrapFocus)}createTrap(){let e=document.createElement("div");return e.tabIndex=0,e}getChildren(e){return e instanceof HTMLSlotElement?e.assignedElements():e.shadowRoot?e.shadowRoot.children:e.children}async focusFirstDescendant(e){await this.updateCompleteIfNecessary(e);let o=this.getChildren(e);for(let n=0;n<o.length;n++){let a=o[n];if(a instanceof HTMLElement&&(this.attemptFocus(a)||await this.focusFirstDescendant(a)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let o=this.getChildren(e);for(let n=o.length-1;n>=0;n--){let a=o[n];if(a instanceof HTMLElement&&(this.attemptFocus(a)||await this.focusLastDescendant(a)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof te&&await e.updateComplete}isInsideElement(e,o){for(let n=e;n;n=n.parentNode){if(n===o)return!0;n instanceof ShadowRoot?n=n.host:n.assignedSlot&&(n=n.assignedSlot)}return!1}attemptFocus(e){return e===this.firstTrap||e===this.lastTrap||!this.isFocusable(e)?!1:(e.focus(),!0)}isFocusable(e){return!e.checkVisibility()||this.isElementDisabled(e)?!1:e instanceof HTMLAnchorElement?!!e.href&&e.rel!=="ignore":e instanceof HTMLInputElement?e.type!=="hidden":e.tabIndex>=0}isElementDisabled(e){return"disabled"in e&&!!e.disabled}},_x=J(xa);var gc;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(gc||(gc={}));var Hu={sm:640,md:768,lg:1024,xl:1280},va=class extends At{constructor(e){super(e),this.size=0,this.onResize=()=>{let o=window.innerWidth;this.size!==o&&(this.size=o,this.lastArgs&&this.setValue(this.render(...this.lastArgs)))},this.size=window.innerWidth,window.addEventListener("resize",this.onResize)}disconnected(){window.removeEventListener("resize",this.onResize)}reconnected(){window.addEventListener("resize",this.onResize)}update(e,[o,n,a]){return this.lastArgs=[o,n,a],this.render(o,n,a)}render(e,o,n){let a=this.resolveThreshold(e),i=n??(()=>H);return this.size>a?o():i()}resolveThreshold(e){return typeof e=="number"?e:Hu[e]}},Nx=J(va);var Sa,Oa,Ea,Ca,zu=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ea=(Oa=(Sa=window.safari)===null||Sa===void 0?void 0:Sa.pushNotification)===null||Oa===void 0?void 0:Oa.toString())!==null&&Ea!==void 0?Ea:"")==="[object SafariRemoteNotification]",Wu="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(Ca=window.ftGlobals)!==null&&Ca!==void 0?Ca:{lit:yo,litDecorators:mo,litRepeat:go,litClassMap:bo,litStyleMap:xo,litUnsafeHTML:vo,wcUtils:{..._o,...Oo,...Fo,...fa,...Do,...Uo,...on,...To,...bn,...ma,...pc,...ia,...xn,...rn,...wn,...da,...En,...ga,...Gi,...wo,...Rn,...nn,...Tn,...hc,...Vi,..._n,...oa,...ha,...vn,...On,...ca,...Lo,isSafari:zu,isTouchScreen:Wu,setVariable:ct}};var ke=class extends Event{constructor(e,o,n,a){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=o,this.callback=n,this.subscribe=a??!1}};var Rt=class{constructor(e,o,n,a){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(i,s)=>{this.unsubscribe&&(this.unsubscribe!==s&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=i,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(i,s)),this.unsubscribe=s},this.host=e,o.context!==void 0){let i=o;this.context=i.context,this.callback=i.callback,this.subscribe=i.subscribe??!1}else this.context=o,this.callback=n,this.subscribe=a??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new ke(this.context,this.host,this.t,this.subscribe))}};var Xr=class{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,o=!1){let n=o||!Object.is(e,this.o);this.o=e,n&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[o,{disposer:n}]of this.subscriptions)o(this.o,n)},e!==void 0&&(this.value=e)}addCallback(e,o,n){if(!n)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:o});let{disposer:a}=this.subscriptions.get(e);e(this.value,a)}clearCallbacks(){this.subscriptions.clear()}};var wa=class extends Event{constructor(e,o){super("context-provider",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=o}},Tt=class extends Xr{constructor(e,o,n){super(o.context!==void 0?o.initialValue:n),this.onContextRequest=a=>{if(a.context!==this.context)return;let i=a.contextTarget??a.composedPath()[0];i!==this.host&&(a.stopPropagation(),this.addCallback(a.callback,i,a.subscribe))},this.onProviderRequest=a=>{if(a.context!==this.context||(a.contextTarget??a.composedPath()[0])===this.host)return;let i=new Set;for(let[s,{consumerHost:l}]of this.subscriptions)i.has(s)||(i.add(s),l.dispatchEvent(new ke(this.context,l,s,!0)));a.stopPropagation()},this.host=e,o.context!==void 0?this.context=o.context:this.context=o,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new wa(this.context,this.host))}};function Aa({context:t}){return(e,o)=>{let n=new WeakMap;if(typeof o=="object")return{get(){return e.get.call(this)},set(a){return n.get(this).setValue(a),e.set.call(this,a)},init(a){return n.set(this,new Tt(this,{context:t,initialValue:a})),a}};{e.constructor.addInitializer(s=>{n.set(s,new Tt(s,{context:t}))});let a=Object.getOwnPropertyDescriptor(e,o),i;if(a===void 0){let s=new WeakMap;i={get(){return s.get(this)},set(l){n.get(this).setValue(l),s.set(this,l)},configurable:!0,enumerable:!0}}else{let s=a.set;i={...a,set(l){n.get(this).setValue(l),s?.call(this,l)}}}return void Object.defineProperty(e,o,i)}}}function Ra({context:t,subscribe:e}){return(o,n)=>{typeof n=="object"?n.addInitializer(function(){new Rt(this,{context:t,callback:a=>{o.set.call(this,a)},subscribe:e})}):o.constructor.addInitializer(a=>{new Rt(a,{context:t,callback:i=>{a[n]=i},subscribe:e})})}}var Jr=Symbol("announcement-context");var ju=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},mr=class extends W{render(){return Z`
86
86
  <slot></slot>
87
87
  `}};ju([Aa({context:Jr}),L({attribute:!1})],mr.prototype,"announcement",void 0);var Vu=function(t,e,o,n){var a=arguments.length,i=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,o):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,o,n);else for(var l=t.length-1;l>=0;l--)(s=t[l])&&(i=(a<3?s(i):a>3?s(e,o,i):s(e,o))||i);return a>3&&i&&Object.defineProperty(e,o,i),i},Se=class extends W{};Vu([Ra({context:Jr,subscribe:!0})],Se.prototype,"announcement",void 0);var xc=Symbol.for(""),Ku=t=>{if(t?.r===xc)return t?._$litStatic$},It=t=>({_$litStatic$:t,r:xc});var bc=new Map,Ta=t=>(e,...o)=>{let n=o.length,a,i,s=[],l=[],d,f=0,h=!1;for(;f<n;){for(d=e[f];f<n&&(i=o[f],(a=Ku(i))!==void 0);)d+=a+e[++f],h=!0;f!==n&&l.push(i),s.push(d),f++}if(f===n&&s.push(e[n]),h){let p=s.join("$$lit$$");(e=bc.get(p))===void 0&&(s.raw=s,bc.set(p,e=s)),o=l}return t(e,...o)},_t=Ta(Z),iv=Ta(lo),sv=Ta(uo);var Ne;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(Ne||(Ne={}));var vc=r.extend("--ft-typography-font-family","",kr.titleFont),Oe=r.extend("--ft-typography-font-family","",kr.contentFont),_={fontFamily:Oe,fontSize:r.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:r.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:r.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:r.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:r.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Pt={fontFamily:r.extend("--ft-typography-title-font-family","",vc),fontSize:r.extend("--ft-typography-title-font-size","",_.fontSize,"20px"),fontWeight:r.extend("--ft-typography-title-font-weight","",_.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-title-letter-spacing","",_.letterSpacing,"0.15px"),lineHeight:r.extend("--ft-typography-title-line-height","",_.lineHeight,"1.2"),textTransform:r.extend("--ft-typography-title-text-transform","",_.textTransform,"inherit")},Lt={fontFamily:r.extend("--ft-typography-title-dense-font-family","",vc),fontSize:r.extend("--ft-typography-title-dense-font-size","",_.fontSize,"14px"),fontWeight:r.extend("--ft-typography-title-dense-font-weight","",_.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-title-dense-letter-spacing","",_.letterSpacing,"0.105px"),lineHeight:r.extend("--ft-typography-title-dense-line-height","",_.lineHeight,"1.7"),textTransform:r.extend("--ft-typography-title-dense-text-transform","",_.textTransform,"inherit")},kt={fontFamily:r.extend("--ft-typography-subtitle1-font-family","",Oe),fontSize:r.extend("--ft-typography-subtitle1-font-size","",_.fontSize,"16px"),fontWeight:r.extend("--ft-typography-subtitle1-font-weight","",_.fontWeight,"600"),letterSpacing:r.extend("--ft-typography-subtitle1-letter-spacing","",_.letterSpacing,"0.144px"),lineHeight:r.extend("--ft-typography-subtitle1-line-height","",_.lineHeight,"1.5"),textTransform:r.extend("--ft-typography-subtitle1-text-transform","",_.textTransform,"inherit")},Nt={fontFamily:r.extend("--ft-typography-subtitle2-font-family","",Oe),fontSize:r.extend("--ft-typography-subtitle2-font-size","",_.fontSize,"14px"),fontWeight:r.extend("--ft-typography-subtitle2-font-weight","",_.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-subtitle2-letter-spacing","",_.letterSpacing,"0.098px"),lineHeight:r.extend("--ft-typography-subtitle2-line-height","",_.lineHeight,"1.7"),textTransform:r.extend("--ft-typography-subtitle2-text-transform","",_.textTransform,"inherit")},Ft={fontFamily:r.extend("--ft-typography-body1-font-family","",Oe),fontSize:r.extend("--ft-typography-body1-font-size","",_.fontSize,"16px"),fontWeight:r.extend("--ft-typography-body1-font-weight","",_.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-body1-letter-spacing","",_.letterSpacing,"0.496px"),lineHeight:r.extend("--ft-typography-body1-line-height","",_.lineHeight,"1.5"),textTransform:r.extend("--ft-typography-body1-text-transform","",_.textTransform,"inherit")},Dt={fontFamily:r.extend("--ft-typography-body2-font-family","",Oe),fontSize:r.extend("--ft-typography-body2-font-size","",_.fontSize,"14px"),fontWeight:r.extend("--ft-typography-body2-font-weight","",_.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-body2-letter-spacing","",_.letterSpacing,"0.252px"),lineHeight:r.extend("--ft-typography-body2-line-height","",_.lineHeight,"1.4"),textTransform:r.extend("--ft-typography-body2-text-transform","",_.textTransform,"inherit")},Mt={fontFamily:r.extend("--ft-typography-caption-font-family","",Oe),fontSize:r.extend("--ft-typography-caption-font-size","",_.fontSize,"12px"),fontWeight:r.extend("--ft-typography-caption-font-weight","",_.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-caption-letter-spacing","",_.letterSpacing,"0.396px"),lineHeight:r.extend("--ft-typography-caption-line-height","",_.lineHeight,"1.33"),textTransform:r.extend("--ft-typography-caption-text-transform","",_.textTransform,"inherit")},Ut={fontFamily:r.extend("--ft-typography-breadcrumb-font-family","",Oe),fontSize:r.extend("--ft-typography-breadcrumb-font-size","",_.fontSize,"10px"),fontWeight:r.extend("--ft-typography-breadcrumb-font-weight","",_.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-breadcrumb-letter-spacing","",_.letterSpacing,"0.33px"),lineHeight:r.extend("--ft-typography-breadcrumb-line-height","",_.lineHeight,"1.6"),textTransform:r.extend("--ft-typography-breadcrumb-text-transform","",_.textTransform,"inherit")},Bt={fontFamily:r.extend("--ft-typography-overline-font-family","",Oe),fontSize:r.extend("--ft-typography-overline-font-size","",_.fontSize,"10px"),fontWeight:r.extend("--ft-typography-overline-font-weight","",_.fontWeight,"normal"),letterSpacing:r.extend("--ft-typography-overline-letter-spacing","",_.letterSpacing,"1.5px"),lineHeight:r.extend("--ft-typography-overline-line-height","",_.lineHeight,"1.6"),textTransform:r.extend("--ft-typography-overline-text-transform","",_.textTransform,"uppercase")},$t={fontFamily:r.extend("--ft-typography-button-font-family","",Oe),fontSize:r.extend("--ft-typography-button-font-size","",_.fontSize,"14px"),fontWeight:r.extend("--ft-typography-button-font-weight","",_.fontWeight,"600"),letterSpacing:r.extend("--ft-typography-button-letter-spacing","",_.letterSpacing,"1.246px"),lineHeight:r.extend("--ft-typography-button-line-height","",_.lineHeight,"1.15"),textTransform:r.extend("--ft-typography-button-text-transform","",_.textTransform,"uppercase")},Sc=F`
88
88
  .ft-typography--title {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-announcement",
3
- "version": "2.0.23",
3
+ "version": "2.0.25",
4
4
  "description": "Components related to announcements",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,13 +19,13 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-wc-utils": "2.0.23",
22
+ "@fluid-topics/ft-wc-utils": "2.0.25",
23
23
  "@fluid-topics/public-api": "1.0.122",
24
24
  "@lit/context": "1.1.6",
25
25
  "lit": "3.1.0"
26
26
  },
27
27
  "devDependencies": {
28
- "@fluid-topics/ft-wc-test-utils": "2.0.23"
28
+ "@fluid-topics/ft-wc-test-utils": "2.0.25"
29
29
  },
30
- "gitHead": "e441ae21f5027730992e39b7dc728ac0f7b17dc0"
30
+ "gitHead": "f7582c9f28ac8fb59807834b4cbdcf09144478cf"
31
31
  }