@fluid-topics/ft-in-product-help 2.2.41 → 2.2.43
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.
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";(()=>{var Xl=Object.create;var Mi=Object.defineProperty;var Yl=Object.getOwnPropertyDescriptor;var Zl=Object.getOwnPropertyNames;var Jl=Object.getPrototypeOf,Ql=Object.prototype.hasOwnProperty;var Vt=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var ec=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of Zl(t))!Ql.call(e,i)&&i!==r&&Mi(e,i,{get:()=>t[i],enumerable:!(n=Yl(t,i))||n.enumerable});return e};var h=(e,t,r)=>(r=e!=null?Xl(Jl(e)):{},ec(t||!e||!e.__esModule?Mi(r,"default",{value:e,enumerable:!0}):r,e));var w=Vt((Uu,ki)=>{ki.exports=ftGlobals.wcUtils});var H=Vt(($u,Ii)=>{Ii.exports=ftGlobals.lit});var Q=Vt((Bu,Ui)=>{Ui.exports=ftGlobals.litDecorators});var fs=Vt((Qu,ps)=>{ps.exports=ftGlobals.litUnsafeHTML});var wr=Vt((yd,xs)=>{xs.exports=ftGlobals.litClassMap});var Kl=h(w());var ue=h(H()),B=h(Q()),zl=h(w());var F;(function(e){e.STANDARD="standard",e.THEATER="theater",e.FULLSCREEN="fullscreen"})(F||(F={}));var Sr=class extends CustomEvent{constructor(t,r){super("visibility-change",{detail:{opened:t,displayMode:r}})}};var us=h(H()),R=h(w());var _r=h(H()),S=h(w());var zi=h(H()),V=h(w()),$i=V.FtCssVariableFactory.extend("--ft-ripple-color","",V.designSystemVariables.colorContent),re={color:$i,backgroundColor:V.FtCssVariableFactory.extend("--ft-ripple-background-color","",$i),opacityContentOnSurfacePressed:V.FtCssVariableFactory.external(V.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:V.FtCssVariableFactory.external(V.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:V.FtCssVariableFactory.external(V.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:V.FtCssVariableFactory.external(V.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:V.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Bi=V.FtCssVariableFactory.extend("--ft-ripple-color","",V.designSystemVariables.colorPrimary),Hi={color:Bi,backgroundColor:V.FtCssVariableFactory.extend("--ft-ripple-background-color","",Bi)},Fi=V.FtCssVariableFactory.extend("--ft-ripple-color","",V.designSystemVariables.colorSecondary),Vi={color:Fi,backgroundColor:V.FtCssVariableFactory.extend("--ft-ripple-background-color","",Fi)},ji=zi.css`
|
|
2
2
|
:host {
|
|
3
3
|
display: contents;
|
|
4
|
+
/* Chrome 153+ UA stylesheet hides [unbounded]:not(:unbounded) elements (crbug.com/579043456) */
|
|
5
|
+
visibility: inherit;
|
|
4
6
|
}
|
|
5
7
|
|
|
6
8
|
.ft-ripple {
|
|
@@ -84,6 +84,8 @@ Also for action icons.`,c.colorGray200),contentGlobalSubtle:o.extend("--ftds-con
|
|
|
84
84
|
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?lt.error:this.warningMessages.length?lt.warning:lt.default}}return ie([b()],e.prototype,"warningRules",void 0),ie([b()],e.prototype,"errorRules",void 0),ie([b()],e.prototype,"validateOn",void 0),ie([b({type:Boolean})],e.prototype,"validateAtRender",void 0),ie([b()],e.prototype,"label",void 0),ie([b({type:Boolean})],e.prototype,"hideLabel",void 0),ie([b()],e.prototype,"name",void 0),ie([b({type:Boolean})],e.prototype,"disabled",void 0),ie([b()],e.prototype,"helperText",void 0),ie([b()],e.prototype,"forceStatus",void 0),ie([b({reflect:!0})],e.prototype,"value",void 0),ie([$()],e.prototype,"errorMessages",void 0),ie([$()],e.prototype,"warningMessages",void 0),ie([$()],e.prototype,"status",void 0),ie([$()],e.prototype,"focused",void 0),ie([$()],e.prototype,"additionalWarningRules",void 0),ie([$()],e.prototype,"additionalErrorRules",void 0),ie([$()],e.prototype,"forceErrorMessages",void 0),e});var eo=(t,e)=>{let r=t._$AN;if(r===void 0)return!1;for(let n of r)n._$AO?.(e,!1),eo(n,e);return!0},tn=t=>{let e,r;do{if((e=t._$AM)===void 0)break;r=e._$AN,r.delete(t),t=e}while(r?.size===0)},rd=t=>{for(let e;e=t._$AM;t=e){let r=e._$AN;if(r===void 0)e._$AN=r=new Set;else if(r.has(t))break;r.add(t),yh(e)}};function hh(t){this._$AN!==void 0?(tn(this),this._$AM=t,rd(this)):this._$AM=t}function mh(t,e=!1,r=0){let n=this._$AH,i=this._$AN;if(i!==void 0&&i.size!==0)if(e)if(Array.isArray(n))for(let a=r;a<n.length;a++)eo(n[a],!1),tn(n[a]);else n!=null&&(eo(n,!1),tn(n));else eo(this,t)}var yh=t=>{t.type==Be.CHILD&&(t._$AP??=mh,t._$AQ??=hh)},mr=class extends Oe{constructor(){super(...arguments),this._$AN=void 0}_$AT(e,r,n){super._$AT(e,r,n),rd(this),this.isConnected=e._$AU}_$AO(e,r=!0){e!==this.isConnected&&(this.isConnected=e,e?this.reconnected?.():this.disconnected?.()),r&&(eo(this,e),tn(this))}setValue(e){if(us(this._$Ct))this._$Ct._$AI(e,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=e,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var va=class extends mr{get element(){var e;return(e=this.part)===null||e===void 0?void 0:e.element}constructor(e){super(e),this.onFirstTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let n=r.relatedTarget;this.isInsideElement(n,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let n=r.relatedTarget;this.isInsideElement(n,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return ee}update(e){return this.part=e,this.ensureFocusTrap(e.element),ee}reconnected(){var e;this.ensureFocusTrap((e=this.part)===null||e===void 0?void 0:e.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(e){var r,n;this.isElementTrappable(e)&&(((r=this.firstTrap)===null||r===void 0?void 0:r.parentElement)===e&&((n=this.lastTrap)===null||n===void 0?void 0:n.parentElement)===e||(this.removeFocusTrap(),this.createFocusTrap(e)))}removeFocusTrap(){var e,r,n,i;(e=this.firstTrap)===null||e===void 0||e.removeEventListener("focus",this.onFirstTrapFocus),(r=this.lastTrap)===null||r===void 0||r.removeEventListener("focus",this.onLastTrapFocus),(n=this.firstTrap)===null||n===void 0||n.remove(),(i=this.lastTrap)===null||i===void 0||i.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 r=this.getChildren(e);for(let n=0;n<r.length;n++){let i=r[n];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusFirstDescendant(i)))return!0}return!1}async focusLastDescendant(e){await this.updateCompleteIfNecessary(e);let r=this.getChildren(e);for(let n=r.length-1;n>=0;n--){let i=r[n];if(i instanceof HTMLElement&&(this.attemptFocus(i)||await this.focusLastDescendant(i)))return!0}return!1}async updateCompleteIfNecessary(e){e instanceof Ce&&await e.updateComplete}isInsideElement(e,r){return nt(e).includes(r)}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}},xS=ye(va);var od;(function(t){t.sm="sm",t.md="md",t.lg="lg",t.xl="xl"})(od||(od={}));var gh={sm:640,md:768,lg:1024,xl:1280},Sa=class extends mr{constructor(e){super(e),this.size=0,this.onResize=()=>{let r=window.innerWidth;this.size!==r&&(this.size=r,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,[r,n,i]){return this.lastArgs=[r,n,i],this.render(r,n,i)}render(e,r,n){let i=this.resolveThreshold(e),a=n??(()=>M);return this.size>i?r():a()}resolveThreshold(e){return typeof e=="number"?e:gh[e]}},CS=ye(Sa);var Ea,Nt=class{static compareDeepPosition(e,r){if(e===r)return 0;let n=nt(e).reverse(),i=nt(r).reverse();if(n[0]!==i[0])return Node.DOCUMENT_POSITION_DISCONNECTED|Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC|Node.DOCUMENT_POSITION_PRECEDING;let a=0;for(;(n[a]||i[a])&&n[a]===i[a];)a++;return n[a]==null?Node.DOCUMENT_POSITION_CONTAINED_BY|Node.DOCUMENT_POSITION_FOLLOWING:i[a]==null?Node.DOCUMENT_POSITION_CONTAINS|Node.DOCUMENT_POSITION_PRECEDING:n[a].compareDocumentPosition(i[a])}static compareDocumentPosition(e,r){let n=Ea.compareDeepPosition(e,r);return{equal:n===0,disconnected:(n&Node.DOCUMENT_POSITION_DISCONNECTED)!==0,implementationSpecific:(n&Node.DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC)!==0,preceding:(n&Node.DOCUMENT_POSITION_PRECEDING)!==0,following:(n&Node.DOCUMENT_POSITION_FOLLOWING)!==0,contains:(n&Node.DOCUMENT_POSITION_CONTAINS)!==0,containedBy:(n&Node.DOCUMENT_POSITION_CONTAINED_BY)!==0}}static findFirstInDOM(e){let r=0;for(let n=1;n<e.length;n++)this.domOrderSorter(e[r],e[n])>0&&(r=n);return e[r]}static getDeepActiveElement(){var e;if(!document.activeElement)return null;let r=document.activeElement;for(;!((e=r.shadowRoot)===null||e===void 0)&&e.activeElement;)r=r.shadowRoot.activeElement;return r}};Ea=Nt;Nt.domOrderSorter=(t,e)=>{if(t===e||!t?.isConnected&&!e?.isConnected)return 0;if(!e?.isConnected)return-1;if(!t?.isConnected)return 1;let{preceding:r,following:n,contains:i,containedBy:a}=Ea.compareDocumentPosition(t,e);return r||i?1:n||a?-1:0};var Ca=class t{static autoFocus(e){t.allowAutoFocus(e)&&e.focus()}static allowAutoFocus(e){if(Oa)return!1;let r=Nt.getDeepActiveElement();if(!r)return!0;let n=Nt.compareDocumentPosition(r,e);return n.disconnected||n.implementationSpecific?!1:n.preceding&&!n.contains||n.containedBy}};window.FluidTopicsFocusHelper=Ca;var Aa,wa,Ra,_a,Ta=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((Ra=(wa=(Aa=window.safari)===null||Aa===void 0?void 0:Aa.pushNotification)===null||wa===void 0?void 0:wa.toString())!==null&&Ra!==void 0?Ra:"")==="[object SafariRemoteNotification]",Oa="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(_a=window.ftGlobals)!==null&&_a!==void 0?_a:{lit:_n,litDecorators:Ln,litRepeat:In,litClassMap:Nn,litStyleMap:Pn,litUnsafeHTML:Mn,wcUtils:{...Dn,...jn,...Fn,...ri,...sa,...oi,...Bn,...si,...Wn,...Si,...ua,...Jl,...oa,...Ei,...ai,..._i,...aa,...wi,...pa,...fa,...ul,...Hn,...Ii,...ga,...ci,...Pi,...Ql,...fl,...ki,...ea,...la,...Ci,...Ai,...Yn,...Qn,...ma,isSafari:Ta,isTouchScreen:Oa,setVariable:ne}};var X;(function(t){t.STANDARD="standard",t.THEATER="theater",t.FULLSCREEN="fullscreen"})(X||(X={}));var rn=class extends CustomEvent{constructor(e,r){super("visibility-change",{detail:{opened:e,displayMode:r}})}};var nd=o.extend("--ft-ripple-color","",F.colorContent),he={color:nd,backgroundColor:o.extend("--ft-ripple-background-color","",nd),opacityContentOnSurfacePressed:o.external(F.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:o.external(F.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:o.external(F.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:o.external(F.opacityContentOnSurfaceSelected,"Design system"),borderRadius:o.create("--ft-ripple-border-radius","","SIZE","0px")},id=o.extend("--ft-ripple-color","",F.colorPrimary),ad={color:id,backgroundColor:o.extend("--ft-ripple-background-color","",id)},sd=o.extend("--ft-ripple-color","",F.colorSecondary),cd={color:sd,backgroundColor:o.extend("--ft-ripple-background-color","",sd)},ld=_`
|
|
85
85
|
:host {
|
|
86
86
|
display: contents;
|
|
87
|
+
/* Chrome 153+ UA stylesheet hides [unbounded]:not(:unbounded) elements (crbug.com/579043456) */
|
|
88
|
+
visibility: inherit;
|
|
87
89
|
}
|
|
88
90
|
|
|
89
91
|
.ft-ripple {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-in-product-help",
|
|
3
|
-
"version": "2.2.
|
|
3
|
+
"version": "2.2.43",
|
|
4
4
|
"description": "Embeddable fluid-topics iframe",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Lit"
|
|
@@ -19,11 +19,11 @@
|
|
|
19
19
|
"url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@fluid-topics/ft-button": "2.2.
|
|
23
|
-
"@fluid-topics/ft-icon": "2.2.
|
|
24
|
-
"@fluid-topics/ft-size-watcher": "2.2.
|
|
25
|
-
"@fluid-topics/ft-wc-utils": "2.2.
|
|
22
|
+
"@fluid-topics/ft-button": "2.2.43",
|
|
23
|
+
"@fluid-topics/ft-icon": "2.2.43",
|
|
24
|
+
"@fluid-topics/ft-size-watcher": "2.2.43",
|
|
25
|
+
"@fluid-topics/ft-wc-utils": "2.2.43",
|
|
26
26
|
"lit": "3.3.3"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "aeec4ca489c4004e09f3eec48d999e4199566f9a"
|
|
29
29
|
}
|