@fluid-topics/ft-reader-saved-bookmarks 2.0.23 → 2.0.24
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.`,l.colorGray200),contentGlobalSubtle:n.extend("--ftds-con
|
|
|
82
82
|
<li>${this.helperText}</li>
|
|
83
83
|
`)}
|
|
84
84
|
</ul>
|
|
85
|
-
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Vt.error:this.warningMessages.length?Vt.warning:Vt.default}processRules(o){return o.map(a=>a(this.value)).filter(a=>a!==!0).map(a=>a)}}return ce([T()],t.prototype,"warningRules",void 0),ce([T()],t.prototype,"errorRules",void 0),ce([T()],t.prototype,"validateOn",void 0),ce([T({type:Boolean})],t.prototype,"validateAtRender",void 0),ce([T()],t.prototype,"label",void 0),ce([T({type:Boolean})],t.prototype,"hideLabel",void 0),ce([T()],t.prototype,"name",void 0),ce([T({type:Boolean})],t.prototype,"disabled",void 0),ce([T()],t.prototype,"helperText",void 0),ce([T()],t.prototype,"forceStatus",void 0),ce([T({reflect:!0})],t.prototype,"value",void 0),ce([Q()],t.prototype,"errorMessages",void 0),ce([Q()],t.prototype,"warningMessages",void 0),ce([Q()],t.prototype,"status",void 0),ce([Q()],t.prototype,"focused",void 0),ce([Q()],t.prototype,"additionalWarningRules",void 0),ce([Q()],t.prototype,"additionalErrorRules",void 0),t});var Co=(e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let o of r)o._$AO?.(t,!1),Co(o,t);return!0},Sn=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},s2=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),pp(t)}};function up(e){this._$AN!==void 0?(Sn(this),this._$AM=e,s2(this)):this._$AM=e}function fp(e,t=!1,r=0){let o=this._$AH,a=this._$AN;if(a!==void 0&&a.size!==0)if(t)if(Array.isArray(o))for(let i=r;i<o.length;i++)Co(o[i],!1),Sn(o[i]);else o!=null&&(Co(o,!1),Sn(o));else Co(this,e)}var pp=e=>{e.type==Be.CHILD&&(e._$AP??=fp,e._$AQ??=up)},Lr=class extends Ae{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,o){super._$AT(t,r,o),s2(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(Co(this,t),Sn(this))}setValue(t){if(Gc(this._$Ct))this._$Ct._$AI(t,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var us=class extends Lr{get element(){var t;return(t=this.part)===null||t===void 0?void 0:t.element}constructor(t){super(t),this.onFirstTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let o=r.relatedTarget;this.isInsideElement(o,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let o=r.relatedTarget;this.isInsideElement(o,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return oe}update(t){return this.part=t,this.
|
|
85
|
+
`}resolveStatus(){return this.forceStatus?this.forceStatus:this.errorMessages.length?Vt.error:this.warningMessages.length?Vt.warning:Vt.default}processRules(o){return o.map(a=>a(this.value)).filter(a=>a!==!0).map(a=>a)}}return ce([T()],t.prototype,"warningRules",void 0),ce([T()],t.prototype,"errorRules",void 0),ce([T()],t.prototype,"validateOn",void 0),ce([T({type:Boolean})],t.prototype,"validateAtRender",void 0),ce([T()],t.prototype,"label",void 0),ce([T({type:Boolean})],t.prototype,"hideLabel",void 0),ce([T()],t.prototype,"name",void 0),ce([T({type:Boolean})],t.prototype,"disabled",void 0),ce([T()],t.prototype,"helperText",void 0),ce([T()],t.prototype,"forceStatus",void 0),ce([T({reflect:!0})],t.prototype,"value",void 0),ce([Q()],t.prototype,"errorMessages",void 0),ce([Q()],t.prototype,"warningMessages",void 0),ce([Q()],t.prototype,"status",void 0),ce([Q()],t.prototype,"focused",void 0),ce([Q()],t.prototype,"additionalWarningRules",void 0),ce([Q()],t.prototype,"additionalErrorRules",void 0),t});var Co=(e,t)=>{let r=e._$AN;if(r===void 0)return!1;for(let o of r)o._$AO?.(t,!1),Co(o,t);return!0},Sn=e=>{let t,r;do{if((t=e._$AM)===void 0)break;r=t._$AN,r.delete(e),e=t}while(r?.size===0)},s2=e=>{for(let t;t=e._$AM;e=t){let r=t._$AN;if(r===void 0)t._$AN=r=new Set;else if(r.has(e))break;r.add(e),pp(t)}};function up(e){this._$AN!==void 0?(Sn(this),this._$AM=e,s2(this)):this._$AM=e}function fp(e,t=!1,r=0){let o=this._$AH,a=this._$AN;if(a!==void 0&&a.size!==0)if(t)if(Array.isArray(o))for(let i=r;i<o.length;i++)Co(o[i],!1),Sn(o[i]);else o!=null&&(Co(o,!1),Sn(o));else Co(this,e)}var pp=e=>{e.type==Be.CHILD&&(e._$AP??=fp,e._$AQ??=up)},Lr=class extends Ae{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,r,o){super._$AT(t,r,o),s2(this),this.isConnected=t._$AU}_$AO(t,r=!0){t!==this.isConnected&&(this.isConnected=t,t?this.reconnected?.():this.disconnected?.()),r&&(Co(this,t),Sn(this))}setValue(t){if(Gc(this._$Ct))this._$Ct._$AI(t,this);else{let r=[...this._$Ct._$AH];r[this._$Ci]=t,this._$Ct._$AI(r,this,0)}}disconnected(){}reconnected(){}};var us=class extends Lr{get element(){var t;return(t=this.part)===null||t===void 0?void 0:t.element}constructor(t){super(t),this.onFirstTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let o=r.relatedTarget;this.isInsideElement(o,this.element)?await this.focusLastDescendant(this.element):await this.focusFirstDescendant(this.element)},this.onLastTrapFocus=async r=>{if(!this.element||!r.relatedTarget)return;let o=r.relatedTarget;this.isInsideElement(o,this.element)?await this.focusFirstDescendant(this.element):await this.focusLastDescendant(this.element)}}render(){return oe}update(t){return this.part=t,this.ensureFocusTrap(t.element),oe}reconnected(){var t;this.ensureFocusTrap((t=this.part)===null||t===void 0?void 0:t.element)}disconnected(){this.removeFocusTrap()}ensureFocusTrap(t){var r,o;this.isElementTrappable(t)&&(((r=this.firstTrap)===null||r===void 0?void 0:r.parentElement)===t&&((o=this.lastTrap)===null||o===void 0?void 0:o.parentElement)===t||(this.removeFocusTrap(),this.createFocusTrap(t)))}removeFocusTrap(){var t,r,o,a;(t=this.firstTrap)===null||t===void 0||t.removeEventListener("focus",this.onFirstTrapFocus),(r=this.lastTrap)===null||r===void 0||r.removeEventListener("focus",this.onLastTrapFocus),(o=this.firstTrap)===null||o===void 0||o.remove(),(a=this.lastTrap)===null||a===void 0||a.remove(),this.firstTrap=void 0,this.lastTrap=void 0}isElementTrappable(t){return!!t&&t instanceof HTMLElement&&t.childElementCount>0}createFocusTrap(t){this.firstTrap=this.createTrap(),this.lastTrap=this.createTrap(),t.insertBefore(this.firstTrap,t.firstChild),t.appendChild(this.lastTrap),this.lastTrap.addEventListener("focus",this.onLastTrapFocus),this.firstTrap.addEventListener("focus",this.onFirstTrapFocus)}createTrap(){let t=document.createElement("div");return t.tabIndex=0,t}getChildren(t){return t instanceof HTMLSlotElement?t.assignedElements():t.shadowRoot?t.shadowRoot.children:t.children}async focusFirstDescendant(t){await this.updateCompleteIfNecessary(t);let r=this.getChildren(t);for(let o=0;o<r.length;o++){let a=r[o];if(a instanceof HTMLElement&&(this.attemptFocus(a)||await this.focusFirstDescendant(a)))return!0}return!1}async focusLastDescendant(t){await this.updateCompleteIfNecessary(t);let r=this.getChildren(t);for(let o=r.length-1;o>=0;o--){let a=r[o];if(a instanceof HTMLElement&&(this.attemptFocus(a)||await this.focusLastDescendant(a)))return!0}return!1}async updateCompleteIfNecessary(t){t instanceof Ee&&await t.updateComplete}isInsideElement(t,r){for(let o=t;o;o=o.parentNode){if(o===r)return!0;o instanceof ShadowRoot?o=o.host:o.assignedSlot&&(o=o.assignedSlot)}return!1}attemptFocus(t){return t===this.firstTrap||t===this.lastTrap||!this.isFocusable(t)?!1:(t.focus(),!0)}isFocusable(t){return!t.checkVisibility()||this.isElementDisabled(t)?!1:t instanceof HTMLAnchorElement?!!t.href&&t.rel!=="ignore":t instanceof HTMLInputElement?t.type!=="hidden":t.tabIndex>=0}isElementDisabled(t){return"disabled"in t&&!!t.disabled}},aC=ye(us);var c2;(function(e){e.sm="sm",e.md="md",e.lg="lg",e.xl="xl"})(c2||(c2={}));var hp={sm:640,md:768,lg:1024,xl:1280},fs=class extends Lr{constructor(t){super(t),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(t,[r,o,a]){return this.lastArgs=[r,o,a],this.render(r,o,a)}render(t,r,o){let a=this.resolveThreshold(t),i=o??(()=>V);return this.size>a?r():i()}resolveThreshold(t){return typeof t=="number"?t:hp[t]}},lC=ye(fs);var ps,hs,ms,gs,mp=navigator.vendor&&!!navigator.vendor.match(/apple/i)||((ms=(hs=(ps=window.safari)===null||ps===void 0?void 0:ps.pushNotification)===null||hs===void 0?void 0:hs.toString())!==null&&ms!==void 0?ms:"")==="[object SafariRemoteNotification]",gp="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0;window.ftGlobals=(gs=window.ftGlobals)!==null&&gs!==void 0?gs:{lit:fa,litDecorators:ha,litRepeat:ma,litClassMap:ga,litStyleMap:ya,litUnsafeHTML:ba,wcUtils:{...Ra,...va,...Ma,...ns,...ka,...Pa,...Ja,...Oa,...hi,...cs,...i2,...Ji,...mi,...Qa,...Si,...os,...xi,...ls,...zl,...Ea,...Ai,...ei,...Li,...xn,...Ul,...Oi,...qi,...is,...gi,...bi,...ts,..._a,isSafari:mp,isTouchScreen:gp,setVariable:ir}};var tt={containerGap:n.create("--ft-reader-saved-bookmarks-container-gap","","SIZE","16px"),containerPadding:n.create("--ft-reader-saved-bookmarks-container-padding","","SIZE","16px"),itemPadding:n.create("--ft-reader-saved-bookmarks-item-padding","","SIZE","12px"),itemBorderWidth:n.create("--ft-reader-saved-bookmarks-item-border-width","","SIZE","1px"),itemBorderColor:n.extend("--ft-reader-saved-bookmarks-item-border-color","",J.colorPrimary),itemBorderRadius:n.extend("--ft-reader-saved-bookmarks-item-border-radius","",J.borderRadiusS),itemBackgroundColor:n.extend("--ft-reader-saved-bookmarks-item-background-color","",J.colorSurface),itemLinkColor:n.extend("--ft-reader-saved-bookmarks-item-background-color","",J.colorOnSurface)},l2=D`
|
|
86
86
|
[part="container"] {
|
|
87
87
|
display: flex;
|
|
88
88
|
flex-direction: column;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fluid-topics/ft-reader-saved-bookmarks",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.24",
|
|
4
4
|
"description": "Display the list of saved bookmarks",
|
|
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-wc-utils": "2.0.
|
|
22
|
+
"@fluid-topics/ft-wc-utils": "2.0.24",
|
|
23
23
|
"lit": "3.1.0"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
|
-
"@fluid-topics/ft-wc-test-utils": "2.0.
|
|
26
|
+
"@fluid-topics/ft-wc-test-utils": "2.0.24"
|
|
27
27
|
},
|
|
28
|
-
"gitHead": "
|
|
28
|
+
"gitHead": "5407e83b63be10ccc5bdeb3551c9f798b9559ae0"
|
|
29
29
|
}
|