@ni/spright-components 6.15.2 → 6.15.4
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.
|
@@ -1877,6 +1877,7 @@ e&&Ma.unsubscribe(e)}}const vh=(t,e)=>new gh(t,e),bh=Mt`
|
|
|
1877
1877
|
:host([selected]) .control {
|
|
1878
1878
|
--ni-private-step-icon-color: ${cc};
|
|
1879
1879
|
--ni-private-step-icon-border-color: ${cc};
|
|
1880
|
+
--ni-private-step-icon-border-width: 2px;
|
|
1880
1881
|
--ni-private-step-icon-background-color: rgb(from ${cc} r g b / 30%);
|
|
1881
1882
|
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-none-size);
|
|
1882
1883
|
--ni-private-step-line-color: ${cc};
|
|
@@ -1916,10 +1917,6 @@ e&&Ma.unsubscribe(e)}}const vh=(t,e)=>new gh(t,e),bh=Mt`
|
|
|
1916
1917
|
box-shadow ${Hd} ease-in-out;
|
|
1917
1918
|
}
|
|
1918
1919
|
|
|
1919
|
-
:host([selected]) .icon {
|
|
1920
|
-
--ni-private-step-icon-border-width: 2px;
|
|
1921
|
-
}
|
|
1922
|
-
|
|
1923
1920
|
.icon::before {
|
|
1924
1921
|
content: '';
|
|
1925
1922
|
position: absolute;
|
|
@@ -1929,7 +1926,8 @@ e&&Ma.unsubscribe(e)}}const vh=(t,e)=>new gh(t,e),bh=Mt`
|
|
|
1929
1926
|
outline-color: var(--ni-private-step-icon-outline-inset-color);
|
|
1930
1927
|
outline-style: solid;
|
|
1931
1928
|
outline-width: 0px;
|
|
1932
|
-
|
|
1929
|
+
${""}
|
|
1930
|
+
outline-offset: -1px;
|
|
1933
1931
|
border: none;
|
|
1934
1932
|
border-radius: 100%;
|
|
1935
1933
|
color: transparent;
|
|
@@ -2007,9 +2005,9 @@ e&&Ma.unsubscribe(e)}}const vh=(t,e)=>new gh(t,e),bh=Mt`
|
|
|
2007
2005
|
min-width: ${Tc};
|
|
2008
2006
|
height: 1px;
|
|
2009
2007
|
min-height: 1px;
|
|
2008
|
+
transform: scale(1, 1);
|
|
2010
2009
|
background: var(--ni-private-step-line-color);
|
|
2011
2010
|
background-clip: content-box;
|
|
2012
|
-
transform: scale(1, 1);
|
|
2013
2011
|
transition:
|
|
2014
2012
|
background-color ${Hd} ease-in-out,
|
|
2015
2013
|
transform ${Hd} ease-in-out;
|
|
@@ -2023,8 +2021,8 @@ e&&Ma.unsubscribe(e)}}const vh=(t,e)=>new gh(t,e),bh=Mt`
|
|
|
2023
2021
|
width: 1px;
|
|
2024
2022
|
min-width: 1px;
|
|
2025
2023
|
height: 100%;
|
|
2026
|
-
padding-top: ${Ec};
|
|
2027
2024
|
min-height: ${Tc};
|
|
2025
|
+
padding-top: ${Ec};
|
|
2028
2026
|
}
|
|
2029
2027
|
|
|
2030
2028
|
.subtitle {
|
|
@@ -2053,6 +2051,7 @@ e&&Ma.unsubscribe(e)}}const vh=(t,e)=>new gh(t,e),bh=Mt`
|
|
|
2053
2051
|
@layer hover {
|
|
2054
2052
|
.control:hover {
|
|
2055
2053
|
--ni-private-step-icon-border-color: ${cc};
|
|
2054
|
+
--ni-private-step-icon-border-width: 2px;
|
|
2056
2055
|
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-inset-size);
|
|
2057
2056
|
--ni-private-step-line-color: ${cc};
|
|
2058
2057
|
}
|
|
@@ -2083,8 +2082,12 @@ e&&Ma.unsubscribe(e)}}const vh=(t,e)=>new gh(t,e),bh=Mt`
|
|
|
2083
2082
|
--ni-private-step-line-color: ${cc};
|
|
2084
2083
|
}
|
|
2085
2084
|
|
|
2086
|
-
.control:hover
|
|
2087
|
-
--ni-private-step-icon-
|
|
2085
|
+
:host([readonly]) .control:hover {
|
|
2086
|
+
--ni-private-step-icon-color: revert-layer;
|
|
2087
|
+
--ni-private-step-icon-border-color: revert-layer;
|
|
2088
|
+
--ni-private-step-icon-border-width: revert-layer;
|
|
2089
|
+
--ni-private-step-icon-background-size: revert-layer;
|
|
2090
|
+
--ni-private-step-line-color: revert-layer;
|
|
2088
2091
|
}
|
|
2089
2092
|
|
|
2090
2093
|
.control:hover .line {
|
|
@@ -2094,11 +2097,16 @@ e&&Ma.unsubscribe(e)}}const vh=(t,e)=>new gh(t,e),bh=Mt`
|
|
|
2094
2097
|
.container.vertical .control:hover .line {
|
|
2095
2098
|
transform: scale(2, 1);
|
|
2096
2099
|
}
|
|
2100
|
+
|
|
2101
|
+
:host([readonly]) .container .control:hover .line {
|
|
2102
|
+
transform: revert-layer;
|
|
2103
|
+
}
|
|
2097
2104
|
}
|
|
2098
2105
|
|
|
2099
2106
|
@layer focusVisible {
|
|
2100
2107
|
.control${qo} {
|
|
2101
2108
|
--ni-private-step-icon-border-color: ${cc};
|
|
2109
|
+
--ni-private-step-icon-border-width: 2px;
|
|
2102
2110
|
--ni-private-step-icon-outline-inset-color: ${cc};
|
|
2103
2111
|
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-inset-size);
|
|
2104
2112
|
--ni-private-step-line-color: ${cc};
|
|
@@ -2134,10 +2142,6 @@ e&&Ma.unsubscribe(e)}}const vh=(t,e)=>new gh(t,e),bh=Mt`
|
|
|
2134
2142
|
--ni-private-step-line-color: ${cc};
|
|
2135
2143
|
}
|
|
2136
2144
|
|
|
2137
|
-
.control${qo} .icon {
|
|
2138
|
-
--ni-private-step-icon-border-width: 2px;
|
|
2139
|
-
}
|
|
2140
|
-
|
|
2141
2145
|
.control${qo} .icon::before {
|
|
2142
2146
|
outline-width: ${Oc};
|
|
2143
2147
|
${""}
|
|
@@ -2156,6 +2160,7 @@ e&&Ma.unsubscribe(e)}}const vh=(t,e)=>new gh(t,e),bh=Mt`
|
|
|
2156
2160
|
@layer active {
|
|
2157
2161
|
.control:active {
|
|
2158
2162
|
--ni-private-step-icon-border-color: ${cc};
|
|
2163
|
+
--ni-private-step-icon-border-width: 2px;
|
|
2159
2164
|
--ni-private-step-icon-background-color: ${Jl};
|
|
2160
2165
|
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-full-size);
|
|
2161
2166
|
--ni-private-step-line-color: ${cc};
|
|
@@ -2187,26 +2192,45 @@ e&&Ma.unsubscribe(e)}}const vh=(t,e)=>new gh(t,e),bh=Mt`
|
|
|
2187
2192
|
--ni-private-step-line-color: ${cc};
|
|
2188
2193
|
}
|
|
2189
2194
|
|
|
2190
|
-
.control:active
|
|
2191
|
-
--ni-private-step-icon-
|
|
2195
|
+
:host([readonly]) .control:active {
|
|
2196
|
+
--ni-private-step-icon-color: revert-layer;
|
|
2197
|
+
--ni-private-step-icon-border-color: revert-layer;
|
|
2198
|
+
--ni-private-step-icon-border-width: revert-layer;
|
|
2199
|
+
--ni-private-step-icon-background-color: revert-layer;
|
|
2200
|
+
--ni-private-step-icon-background-size: revert-layer;
|
|
2201
|
+
--ni-private-step-line-color: revert-layer;
|
|
2192
2202
|
}
|
|
2193
2203
|
|
|
2194
2204
|
.control:active .icon::before {
|
|
2195
2205
|
outline-width: 0px;
|
|
2196
|
-
outline-offset:
|
|
2206
|
+
outline-offset: -1px;
|
|
2207
|
+
}
|
|
2208
|
+
|
|
2209
|
+
:host([readonly]) .control:active .icon::before {
|
|
2210
|
+
outline-width: revert-layer;
|
|
2211
|
+
outline-offset: revert-layer;
|
|
2197
2212
|
}
|
|
2198
2213
|
|
|
2199
2214
|
.control:active .line {
|
|
2200
2215
|
transform: scale(1, 1);
|
|
2201
2216
|
}
|
|
2217
|
+
|
|
2218
|
+
:host([readonly]) .control:active .line {
|
|
2219
|
+
transform: revert-layer;
|
|
2220
|
+
}
|
|
2202
2221
|
}
|
|
2203
2222
|
|
|
2204
2223
|
@layer disabled {
|
|
2224
|
+
:host([readonly]) .control {
|
|
2225
|
+
cursor: default;
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2205
2228
|
:host([disabled]) .control {
|
|
2206
2229
|
cursor: default;
|
|
2207
2230
|
color: ${Ed};
|
|
2208
2231
|
--ni-private-step-icon-color: rgb(from ${Id} r g b / 30%);
|
|
2209
2232
|
--ni-private-step-icon-border-color: transparent;
|
|
2233
|
+
--ni-private-step-icon-border-width: 1px;
|
|
2210
2234
|
--ni-private-step-icon-background-color: rgba(${ic}, 0.1);
|
|
2211
2235
|
--ni-private-step-icon-background-size: var(--ni-private-step-icon-background-full-size);
|
|
2212
2236
|
--ni-private-step-icon-outline-inset-color: transparent;
|
|
@@ -2317,7 +2341,7 @@ Km("icon-check",class extends Zm{constructor(){super(Tu)}})
|
|
|
2317
2341
|
const Jm="nimble-icon-check",Qm="Close",tg="Increment",eg="Decrement",ng="Error",ig="Warning",og="Completed",rg="Current",sg="Information",ag="Search",lg="No items found",cg="Loading…",dg="Scroll backward",hg="Scroll forward",ug="Remove",pg=Ci.create({name:"popup-dismiss-label",cssCustomPropertyName:null}).withDefault(Qm),fg=Ci.create({name:"numeric-decrement-label",cssCustomPropertyName:null}).withDefault(eg),mg=Ci.create({name:"numeric-increment-label",cssCustomPropertyName:null}).withDefault(tg),gg=Ci.create({name:"popup-icon-error-label",cssCustomPropertyName:null}).withDefault(ng),vg=Ci.create({name:"popup-icon-warning-label",cssCustomPropertyName:null}).withDefault(ig),bg=Ci.create({name:"popup-icon-completed-label",cssCustomPropertyName:null}).withDefault(og),yg=Ci.create({name:"popup-icon-current-label",cssCustomPropertyName:null}).withDefault(rg),wg=Ci.create({name:"popup-icon-information-label",cssCustomPropertyName:null}).withDefault(sg),xg=Ci.create({name:"filter-search-label",cssCustomPropertyName:null}).withDefault(ag),Cg=Ci.create({name:"filter-no-results-label",cssCustomPropertyName:null}).withDefault(lg),kg=Ci.create({name:"loading-label",cssCustomPropertyName:null}).withDefault(cg),Sg=Ci.create({name:"scroll-backward-label",cssCustomPropertyName:null}).withDefault(dg),_g=Ci.create({name:"scroll-forward-label",cssCustomPropertyName:null}).withDefault(hg),$g=Ci.create({name:"item-remove-label",cssCustomPropertyName:null}).withDefault(ug),Mg=Ge
|
|
2318
2342
|
class Ig{constructor(){this.orientation=Mg.horizontal,this.last=!1,this.position=1}}t([C],Ig.prototype,"orientation",void 0),t([C],Ig.prototype,"last",void 0),t([C],Ig.prototype,"position",void 0)
|
|
2319
2343
|
const Eg=kh
|
|
2320
|
-
class Ag extends(Sh(Ho)){constructor(){super(...arguments),this.severity=Eg.default,this.disabled=!1,this.readOnly=!1,this.selected=!1,this.stepInternals=new Ig}}t([ft()],Ag.prototype,"severity",void 0),t([ft({mode:"boolean"})],Ag.prototype,"disabled",void 0),t([ft({attribute:"readonly",mode:"boolean"})],Ag.prototype,"readOnly",void 0),t([ft({mode:"boolean"})],Ag.prototype,"selected",void 0),t([ft({attribute:"tabindex",converter:ut})],Ag.prototype,"tabIndex",void 0)
|
|
2344
|
+
class Ag extends(Sh(Ho)){constructor(){super(...arguments),this.severity=Eg.default,this.disabled=!1,this.readOnly=!1,this.selected=!1,this.stepInternals=new Ig}onClick(t){(this.disabled||this.readOnly)&&(t.preventDefault(),t.stopImmediatePropagation())}}t([ft()],Ag.prototype,"severity",void 0),t([ft({mode:"boolean"})],Ag.prototype,"disabled",void 0),t([ft({attribute:"readonly",mode:"boolean"})],Ag.prototype,"readOnly",void 0),t([ft({mode:"boolean"})],Ag.prototype,"selected",void 0),t([ft({attribute:"tabindex",converter:ut})],Ag.prototype,"tabIndex",void 0)
|
|
2321
2345
|
const Tg=Ag.compose({baseName:"anchor-step",template:(t,e)=>Q`
|
|
2322
2346
|
<template slot="step">
|
|
2323
2347
|
<li class="
|
|
@@ -2357,6 +2381,7 @@ const Tg=Ag.compose({baseName:"anchor-step",template:(t,e)=>Q`
|
|
|
2357
2381
|
aria-owns="${t=>t.ariaOwns}"
|
|
2358
2382
|
aria-relevant="${t=>t.ariaRelevant}"
|
|
2359
2383
|
aria-roledescription="${t=>t.ariaRoledescription}"
|
|
2384
|
+
@click="${(t,e)=>t.onClick(e.event)}"
|
|
2360
2385
|
${zt("control")}
|
|
2361
2386
|
>
|
|
2362
2387
|
<div class="icon-background"></div>
|
|
@@ -6394,14 +6419,14 @@ return ux.fromReplace(t,this.pos,this.pos+1,new iw(Xy.from(n),0,e.isLeaf?0:1))}i
|
|
|
6394
6419
|
return e&&this.mark.isInSet(e.marks)?new gx(this.pos,this.mark):this}map(t){let e=t.mapResult(this.pos,1)
|
|
6395
6420
|
return e.deletedAfter?null:new vx(e.pos,this.mark)}toJSON(){return{stepType:"removeNodeMark",pos:this.pos,mark:this.mark.toJSON()}}static fromJSON(t,e){if("number"!=typeof e.pos)throw new RangeError("Invalid input for RemoveNodeMarkStep.fromJSON")
|
|
6396
6421
|
return new vx(e.pos,t.markFromJSON(e.mark))}}hx.jsonID("removeNodeMark",vx)
|
|
6397
|
-
class bx extends hx{constructor(t,e,n,i=!1){super(),this.from=t,this.to=e,this.slice=n,this.structure=i}apply(t){return this.structure&&wx(t,this.from,this.to)?ux.fail("Structure replace would overwrite content"):ux.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new lx([this.from,this.to-this.from,this.slice.size])}invert(t){return new bx(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let e=t.mapResult(this.
|
|
6398
|
-
return
|
|
6422
|
+
class bx extends hx{constructor(t,e,n,i=!1){super(),this.from=t,this.to=e,this.slice=n,this.structure=i}apply(t){return this.structure&&wx(t,this.from,this.to)?ux.fail("Structure replace would overwrite content"):ux.fromReplace(t,this.from,this.to,this.slice)}getMap(){return new lx([this.from,this.to-this.from,this.slice.size])}invert(t){return new bx(this.from,this.from+this.slice.size,t.slice(this.from,this.to))}map(t){let e=t.mapResult(this.to,-1),n=this.from==this.to&&bx.MAP_BIAS<0?e:t.mapResult(this.from,1)
|
|
6423
|
+
return n.deletedAcross&&e.deletedAcross?null:new bx(n.pos,Math.max(n.pos,e.pos),this.slice,this.structure)}merge(t){if(!(t instanceof bx)||t.structure||this.structure)return null
|
|
6399
6424
|
if(this.from+this.slice.size!=t.from||this.slice.openEnd||t.slice.openStart){if(t.to!=this.from||this.slice.openStart||t.slice.openEnd)return null
|
|
6400
6425
|
{let e=this.slice.size+t.slice.size==0?iw.empty:new iw(t.slice.content.append(this.slice.content),t.slice.openStart,this.slice.openEnd)
|
|
6401
6426
|
return new bx(t.from,this.to,e,this.structure)}}{let e=this.slice.size+t.slice.size==0?iw.empty:new iw(this.slice.content.append(t.slice.content),this.slice.openStart,t.slice.openEnd)
|
|
6402
6427
|
return new bx(this.from,this.to+(t.to-t.from),e,this.structure)}}toJSON(){let t={stepType:"replace",from:this.from,to:this.to}
|
|
6403
6428
|
return this.slice.size&&(t.slice=this.slice.toJSON()),this.structure&&(t.structure=!0),t}static fromJSON(t,e){if("number"!=typeof e.from||"number"!=typeof e.to)throw new RangeError("Invalid input for ReplaceStep.fromJSON")
|
|
6404
|
-
return new bx(e.from,e.to,iw.fromJSON(t,e.slice),!!e.structure)}}hx.jsonID("replace",bx)
|
|
6429
|
+
return new bx(e.from,e.to,iw.fromJSON(t,e.slice),!!e.structure)}}bx.MAP_BIAS=1,hx.jsonID("replace",bx)
|
|
6405
6430
|
class yx extends hx{constructor(t,e,n,i,o,r,s=!1){super(),this.from=t,this.to=e,this.gapFrom=n,this.gapTo=i,this.slice=o,this.insert=r,this.structure=s}apply(t){if(this.structure&&(wx(t,this.from,this.gapFrom)||wx(t,this.gapTo,this.to)))return ux.fail("Structure gap-replace would overwrite content")
|
|
6406
6431
|
let e=t.slice(this.gapFrom,this.gapTo)
|
|
6407
6432
|
if(e.openStart||e.openEnd)return ux.fail("Gap is not a flat range")
|
|
@@ -6569,7 +6594,13 @@ if(i.node(t).canReplaceWith(e,e,n))return i.before(t+1)
|
|
|
6569
6594
|
if(e>0)return null}if(i.parentOffset==i.parent.content.size)for(let t=i.depth-1;t>=0;t--){let e=i.indexAfter(t)
|
|
6570
6595
|
if(i.node(t).canReplaceWith(e,e,n))return i.after(t+1)
|
|
6571
6596
|
if(e<i.node(t).childCount)return null}return null}(t.doc,e,i.type)
|
|
6572
|
-
null!=o&&(e=n=o)}t.replaceRange(e,n,new iw(Xy.from(i),0,0))}(this,t,e,n),this}deleteRange(t,e){return function(t,e,n){let i=t.doc.resolve(e),o=t.doc.resolve(n)
|
|
6597
|
+
null!=o&&(e=n=o)}t.replaceRange(e,n,new iw(Xy.from(i),0,0))}(this,t,e,n),this}deleteRange(t,e){return function(t,e,n){let i=t.doc.resolve(e),o=t.doc.resolve(n)
|
|
6598
|
+
if(i.parent.isTextblock&&o.parent.isTextblock&&i.start()!=o.start()&&0==i.parentOffset&&0==o.parentOffset){let r=i.sharedDepth(n),s=!1
|
|
6599
|
+
for(let t=i.depth;t>r;t--)i.node(t).type.spec.isolating&&(s=!0)
|
|
6600
|
+
for(let t=o.depth;t>r;t--)o.node(t).type.spec.isolating&&(s=!0)
|
|
6601
|
+
if(!s){for(let t=i.depth;t>0&&e==i.start(t);t--)e=i.before(t)
|
|
6602
|
+
for(let t=o.depth;t>0&&n==o.start(t);t--)n=o.before(t)
|
|
6603
|
+
i=t.doc.resolve(e),o=t.doc.resolve(n)}}let r=Ux(i,o)
|
|
6573
6604
|
for(let e=0;e<r.length;e++){let n=r[e],s=e==r.length-1
|
|
6574
6605
|
if(s&&0==n||i.node(n).type.contentMatch.validEnd)return t.delete(i.start(n),o.end(n))
|
|
6575
6606
|
if(n>0&&(s||i.node(n-1).canReplace(i.index(n-1),o.indexAfter(n-1))))return t.delete(i.before(n),o.after(n))}for(let r=1;r<=i.depth&&r<=o.depth;r++)if(e-i.start(r)==i.depth-r&&n>i.end(r)&&o.end(r)-n!=o.depth-r&&i.start(r-1)==o.start(r-1)&&i.node(r-1).canReplace(i.index(r-1),o.index(r-1)))return t.delete(i.before(r),n)
|
|
@@ -7777,17 +7808,16 @@ if(!s||!o.canReplaceWith(r,r,s))return!1
|
|
|
7777
7808
|
if(e){let i=n.after(),o=t.tr.replaceWith(i,i,s.createAndFill())
|
|
7778
7809
|
o.setSelection(Kx.near(o.doc.resolve(i),1)),e(o.scrollIntoView())}return!0})(t,e)
|
|
7779
7810
|
function O$(t){return"[object RegExp]"===Object.prototype.toString.call(t)}function R$(t,e,n={strict:!0}){const i=Object.keys(e)
|
|
7780
|
-
return!i.length||i.every(i=>n.strict?e[i]===t[i]:O$(e[i])?e[i].test(t[i]):e[i]===t[i])}function F$(t,e,n={}){return t.find(t=>t.type===e&&R$(Object.fromEntries(Object.keys(n).map(e=>[e,t.attrs[e]])),n))}function N$(t,e,n={}){return!!F$(t,e,n)}function L$(t,e,n){
|
|
7781
|
-
|
|
7782
|
-
|
|
7783
|
-
if(
|
|
7784
|
-
n=
|
|
7785
|
-
|
|
7786
|
-
|
|
7787
|
-
for(;
|
|
7788
|
-
|
|
7789
|
-
return
|
|
7790
|
-
return e.marks[t]}return t}var P$=(t,e={})=>({tr:n,state:i,dispatch:o})=>{const r=B$(t,i.schema),{doc:s,selection:a}=n,{$from:l,from:c,to:d}=a
|
|
7811
|
+
return!i.length||i.every(i=>n.strict?e[i]===t[i]:O$(e[i])?e[i].test(t[i]):e[i]===t[i])}function F$(t,e,n={}){return t.find(t=>t.type===e&&R$(Object.fromEntries(Object.keys(n).map(e=>[e,t.attrs[e]])),n))}function N$(t,e,n={}){return!!F$(t,e,n)}function L$(t,e,n){if(!t||!e)return
|
|
7812
|
+
let i=t.parent.childAfter(t.parentOffset)
|
|
7813
|
+
if(i.node&&i.node.marks.some(t=>t.type===e)||(i=t.parent.childBefore(t.parentOffset)),!i.node||!i.node.marks.some(t=>t.type===e))return
|
|
7814
|
+
if(!n){const t=i.node.marks.find(t=>t.type===e)
|
|
7815
|
+
t&&(n=t.attrs)}if(!F$([...i.node.marks],e,n))return
|
|
7816
|
+
let o=i.index,r=t.start()+i.offset,s=o+1,a=r+i.node.nodeSize
|
|
7817
|
+
for(;o>0&&N$([...t.parent.child(o-1).marks],e,n);)o-=1,r-=t.parent.child(o).nodeSize
|
|
7818
|
+
for(;s<t.parent.childCount&&N$([...t.parent.child(s).marks],e,n);)a+=t.parent.child(s).nodeSize,s+=1
|
|
7819
|
+
return{from:r,to:a}}function B$(t,e){if("string"==typeof t){if(!e.marks[t])throw Error(`There is no mark type named '${t}'. Maybe you forgot to add the extension?`)
|
|
7820
|
+
return e.marks[t]}return t}var P$=(t,e)=>({tr:n,state:i,dispatch:o})=>{const r=B$(t,i.schema),{doc:s,selection:a}=n,{$from:l,from:c,to:d}=a
|
|
7791
7821
|
if(o){const t=L$(l,r,e)
|
|
7792
7822
|
if(t&&t.from<=c&&t.to>=d){const e=Qx.create(s,t.from,t.to)
|
|
7793
7823
|
n.setSelection(e)}}return!0},z$=t=>e=>{const n="function"==typeof t?t(e):t
|
|
@@ -8215,7 +8245,7 @@ ZM(s).forEach(e=>{s.mapping.mapResult(e.oldRange.from).deletedAfter&&s.mapping.m
|
|
|
8215
8245
|
this.editor.emit("delete",{type:"node",node:n,from:i,to:o,newFrom:s.mapping.map(i),newTo:s.mapping.map(o),deletedRange:e.oldRange,newRange:e.newRange,partial:!r,editor:this.editor,transaction:t,combinedTransform:s})})})
|
|
8216
8246
|
const a=s.mapping
|
|
8217
8247
|
s.steps.forEach((e,n)=>{var i,o
|
|
8218
|
-
if(e instanceof mx){const r=a.slice(n).map(e.from,-1),l=a.slice(n).map(e.to),c=a.invert().map(r,-1),d=a.invert().map(l),h=null==(i=s.doc.nodeAt(r-1))?void 0:i.marks.some(t=>t.eq(e.mark)),u=null==(o=s.doc.nodeAt(l))?void 0:o.marks.some(t=>t.eq(e.mark))
|
|
8248
|
+
if(e instanceof mx){const r=a.slice(n).map(e.from,-1),l=a.slice(n).map(e.to),c=a.invert().map(r,-1),d=a.invert().map(l),h=r>0&&(null==(i=s.doc.nodeAt(r-1))?void 0:i.marks.some(t=>t.eq(e.mark))),u=null==(o=s.doc.nodeAt(l))?void 0:o.marks.some(t=>t.eq(e.mark))
|
|
8219
8249
|
this.editor.emit("delete",{type:"mark",mark:e.mark,from:e.from,to:e.to,deletedRange:{from:c,to:d},newRange:{from:r,to:l},partial:Boolean(u||h),editor:this.editor,transaction:t,combinedTransform:s})}})}
|
|
8220
8250
|
null==(o=null==(i=null==(n=this.editor.options.coreExtensionOptions)?void 0:n.delete)?void 0:i.async)||o?setTimeout(r,0):r()}}),qI=zI.create({name:"drop",addProseMirrorPlugins(){return[new fC({key:new vC("tiptapDrop"),props:{handleDrop:(t,e,n,i)=>{this.editor.emit("drop",{editor:this.editor,event:e,slice:n,moved:i})}}})]}}),jI=zI.create({name:"editable",addProseMirrorPlugins(){return[new fC({key:new vC("editable"),props:{editable:()=>this.editor.options.editable}})]}}),WI=new vC("focusEvents"),GI=zI.create({name:"focusEvents",addProseMirrorPlugins(){const{editor:t}=this
|
|
8221
8251
|
return[new fC({key:WI,props:{handleDOMEvents:{focus:(e,n)=>{t.isFocused=!0
|
|
@@ -10136,34 +10166,35 @@ let w=y+g[0].length
|
|
|
10136
10166
|
return l&&d.test(f.slice(w-1,w+1))&&(g[0]+=" ",w+=1),y<a.pos&&w>=a.pos?{range:{from:y,to:w},query:g[0].slice(n.length),text:g[0]}:null}zI.create({name:"listKit",addExtensions(){const t=[]
|
|
10137
10167
|
return!1!==this.options.bulletList&&t.push(yF.configure(this.options.bulletList)),!1!==this.options.listItem&&t.push(wF.configure(this.options.listItem)),!1!==this.options.listKeymap&&t.push(TF.configure(this.options.listKeymap)),!1!==this.options.orderedList&&t.push(LF.configure(this.options.orderedList)),!1!==this.options.taskItem&&t.push(PF.configure(this.options.taskItem)),!1!==this.options.taskList&&t.push(zF.configure(this.options.taskList)),t}})
|
|
10138
10168
|
var HF=new vC("suggestion")
|
|
10139
|
-
function UF({pluginKey:t=HF,editor:e,char:n="@",allowSpaces:i=!1,allowToIncludeChar:o=!1,allowedPrefixes:r=[" "],startOfLine:s=!1,decorationTag:a="span",decorationClass:l="suggestion",decorationContent:c="",decorationEmptyClass:d="is-empty",command:h=()=>null,items:u=()=>[],render:p=()=>({}),allow:f=()=>!0,findSuggestionMatch:m=VF,shouldShow:g}){let
|
|
10140
|
-
const
|
|
10141
|
-
try{return new DOMRect(s,i,o-s,r-i)}catch{return null}},
|
|
10142
|
-
return(null==r?void 0:r.getBoundingClientRect())||null}:
|
|
10143
|
-
const
|
|
10144
|
-
const d=null==(i=this.key)?void 0:i.getState(n),p=null==(o=this.key)?void 0:o.getState(t.state),f=d.active&&p.active&&d.range.from!==p.range.from,m=!d.active&&p.active,g=d.active&&!p.active,
|
|
10145
|
-
if(!x&&!
|
|
10146
|
-
const S=k&&!
|
|
10147
|
-
|
|
10148
|
-
|
|
10149
|
-
if(
|
|
10150
|
-
if(
|
|
10169
|
+
function UF({pluginKey:t=HF,editor:e,char:n="@",allowSpaces:i=!1,allowToIncludeChar:o=!1,allowedPrefixes:r=[" "],startOfLine:s=!1,decorationTag:a="span",decorationClass:l="suggestion",decorationContent:c="",decorationEmptyClass:d="is-empty",command:h=()=>null,items:u=()=>[],render:p=()=>({}),allow:f=()=>!0,findSuggestionMatch:m=VF,shouldShow:g,shouldResetDismissed:v}){let b
|
|
10170
|
+
const y=null==p?void 0:p(),w=i&&!o,x=()=>{const t=e.state.selection.$anchor.pos,n=e.view.coordsAtPos(t),{top:i,right:o,bottom:r,left:s}=n
|
|
10171
|
+
try{return new DOMRect(s,i,o-s,r-i)}catch{return null}},C=(n,i)=>i?()=>{const i=t.getState(e.state),o=null==i?void 0:i.decorationId,r=n.dom.querySelector(`[data-decoration-id="${o}"]`)
|
|
10172
|
+
return(null==r?void 0:r.getBoundingClientRect())||null}:x
|
|
10173
|
+
const k=new fC({key:t,view(){return{update:async(t,n)=>{var i,o,r,s,a,l,c
|
|
10174
|
+
const d=null==(i=this.key)?void 0:i.getState(n),p=null==(o=this.key)?void 0:o.getState(t.state),f=d.active&&p.active&&d.range.from!==p.range.from,m=!d.active&&p.active,g=d.active&&!p.active,v=!m&&!g&&d.query!==p.query,w=m||f&&v,x=v||f,k=g||f&&v
|
|
10175
|
+
if(!w&&!x&&!k)return
|
|
10176
|
+
const S=k&&!w?d:p,_=t.dom.querySelector(`[data-decoration-id="${S.decorationId}"]`)
|
|
10177
|
+
b={editor:e,range:S.range,query:S.query,text:S.text,items:[],command:t=>h({editor:e,range:S.range,props:t}),decorationNode:_,clientRect:C(t,_)},w&&(null==(r=null==y?void 0:y.onBeforeStart)||r.call(y,b)),x&&(null==(s=null==y?void 0:y.onBeforeUpdate)||s.call(y,b)),(x||w)&&(b.items=await u({editor:e,query:S.query})),k&&(null==(a=null==y?void 0:y.onExit)||a.call(y,b)),x&&(null==(l=null==y?void 0:y.onUpdate)||l.call(y,b)),w&&(null==(c=null==y?void 0:y.onStart)||c.call(y,b))},destroy:()=>{var t
|
|
10178
|
+
b&&(null==(t=null==y?void 0:y.onExit)||t.call(y,b))}}},state:{init:()=>({active:!1,range:{from:0,to:0},query:null,text:null,composing:!1,dismissedRange:null}),apply(a,l,c,d){const{isEditable:h}=e,{composing:u}=e.view,{selection:p}=a,{empty:b,from:y}=p,x={...l},C=a.getMeta(t)
|
|
10179
|
+
if(C&&C.exit)return x.active=!1,x.decorationId=null,x.range={from:0,to:0},x.query=null,x.text=null,x.dismissedRange=l.active?{...l.range}:l.dismissedRange,x
|
|
10180
|
+
if(x.composing=u,a.docChanged&&null!==x.dismissedRange&&(x.dismissedRange={from:a.mapping.map(x.dismissedRange.from),to:a.mapping.map(x.dismissedRange.to)}),h&&(b||e.view.composing)){!(y<l.range.from||y>l.range.to)||u||l.composing||(x.active=!1)
|
|
10151
10181
|
const t=m({char:n,allowSpaces:i,allowToIncludeChar:o,allowedPrefixes:r,startOfLine:s,$position:p.$from}),c=`id_${Math.floor(4294967295*Math.random())}`
|
|
10152
|
-
t&&f({editor:e,state:d,range:t.range,isActive:l.active})&&(!g||g({editor:e,range:t.range,query:t.query,text:t.text,transaction:a}))?(
|
|
10153
|
-
|
|
10154
|
-
const
|
|
10155
|
-
|
|
10156
|
-
|
|
10157
|
-
|
|
10158
|
-
|
|
10159
|
-
|
|
10160
|
-
|
|
10161
|
-
|
|
10162
|
-
|
|
10182
|
+
t&&f({editor:e,state:d,range:t.range,isActive:l.active})&&(!g||g({editor:e,range:t.range,query:t.query,text:t.text,transaction:a}))?(null===x.dismissedRange||(({match:t,dismissedRange:n,state:i,transaction:o})=>!(null==v?void 0:v({editor:e,state:i,range:n,match:t,transaction:o,allowSpaces:w}))&&(w?t.range.from===n.from:t.range.from===n.from&&!function(t){return!!t.docChanged&&t.steps.some(t=>{const e=t.slice
|
|
10183
|
+
if(!(null==e?void 0:e.content))return!1
|
|
10184
|
+
const n=e.content.textBetween(0,e.content.size,"\n")
|
|
10185
|
+
return/\s/.test(n)})}(o)))({match:t,dismissedRange:x.dismissedRange,state:d,transaction:a})||(x.dismissedRange=null),null===x.dismissedRange?(x.active=!0,x.decorationId=l.decorationId?l.decorationId:c,x.range=t.range,x.query=t.query,x.text=t.text):x.active=!1):(t||(x.dismissedRange=null),x.active=!1)}else x.active=!1
|
|
10186
|
+
return x.active||(x.decorationId=null,x.range={from:0,to:0},x.query=null,x.text=null),x}},props:{handleKeyDown(n,i){var o,r
|
|
10187
|
+
const{active:s,range:a}=k.getState(n.state)
|
|
10188
|
+
if(!s)return!1
|
|
10189
|
+
if("Escape"===i.key||"Esc"===i.key){const r=k.getState(n.state)
|
|
10190
|
+
return null==(o=null==y?void 0:y.onKeyDown)||o.call(y,{view:n,event:i,range:r.range}),function(n,i){var o
|
|
10191
|
+
try{const i=t.getState(n.state),r=(null==i?void 0:i.decorationId)?n.dom.querySelector(`[data-decoration-id="${i.decorationId}"]`):null,s={editor:e,range:(null==i?void 0:i.range)||{from:0,to:0},query:(null==i?void 0:i.query)||null,text:(null==i?void 0:i.text)||null,items:[],command:t=>h({editor:e,range:(null==i?void 0:i.range)||{from:0,to:0},props:t}),decorationNode:r,clientRect:C(n,r)}
|
|
10192
|
+
null==(o=null==y?void 0:y.onExit)||o.call(y,s)}catch{}const r=n.state.tr.setMeta(i,{exit:!0})
|
|
10193
|
+
n.dispatch(r)}(n,t),!0}return(null==(r=null==y?void 0:y.onKeyDown)?void 0:r.call(y,{view:n,event:i,range:a}))||!1},decorations(t){const{active:e,range:n,decorationId:i,query:o}=k.getState(t)
|
|
10163
10194
|
if(!e)return null
|
|
10164
10195
|
const r=!(null==o?void 0:o.length),s=[l]
|
|
10165
10196
|
return r&&s.push(d),M_.create(t.doc,[S_.inline(n.from,n.to,{nodeName:a,class:s.join(" "),"data-decoration-id":i,"data-decoration-content":c})])}}})
|
|
10166
|
-
return
|
|
10197
|
+
return k}function qF(t){return(t.options.suggestions.length?t.options.suggestions:[t.options.suggestion]).map(e=>function({editor:t,overrideSuggestionOptions:e,extensionName:n,char:i="@"}){const o=new vC
|
|
10167
10198
|
return{editor:t,char:i,pluginKey:o,command:({editor:t,range:e,props:o})=>{var r,s,a
|
|
10168
10199
|
const l=t.view.state.selection.$to.nodeAfter;(null==(r=null==l?void 0:l.text)?void 0:r.startsWith(" "))&&(e.to+=1),t.chain().focus().insertContentAt(e,[{type:n,attrs:{...o,mentionSuggestionChar:i}},{type:"text",text:" "}]).run(),null==(a=null==(s=t.view.dom.ownerDocument.defaultView)?void 0:s.getSelection())||a.collapseToEnd()},allow:({state:t,range:e})=>{const i=t.doc.resolve(e.from),o=t.schema.nodes[n]
|
|
10169
10200
|
return!!i.parent.type.contentMatch.matchType(o)},...e}}({editor:t.editor,overrideSuggestionOptions:e,extensionName:t.name,char:e.char}))}function jF(t,e){const n=qF(t),i=n.find(t=>t.char===e)
|
|
@@ -10185,7 +10216,7 @@ let s=new xw,a=0
|
|
|
10185
10216
|
return e.doc.nodesBetween(r-1,r,(t,e)=>{if(t.type.name===this.name)return n=!0,s=t,a=e,!1}),n&&t.insertText(this.options.deleteTriggerWithBackspace?"":s.attrs.mentionSuggestionChar,a,a+s.nodeSize),n})}},addProseMirrorPlugins(){return qF(this).map(UF)}}),GF=WF,ZF=" ",KF=hE.create({name:"paragraph",priority:1e3,addOptions:()=>({HTMLAttributes:{}}),group:"block",content:"inline*",parseHTML:()=>[{tag:"p"}],renderHTML({HTMLAttributes:t}){return["p",LM(this.options.HTMLAttributes,t),0]},parseMarkdown:(t,e)=>{const n=t.tokens||[]
|
|
10186
10217
|
if(1===n.length&&"image"===n[0].type)return e.parseChildren([n[0]])
|
|
10187
10218
|
const i=e.parseInline(n)
|
|
10188
|
-
return
|
|
10219
|
+
return!(1===n.length&&"text"===n[0].type&&(n[0].raw===ZF||n[0].text===ZF||" "===n[0].raw||" "===n[0].text))||1!==i.length||"text"!==i[0].type||i[0].text!==ZF&&" "!==i[0].text?e.createNode("paragraph",void 0,i):e.createNode("paragraph",void 0,[])},renderMarkdown:(t,e,n)=>{var i,o
|
|
10189
10220
|
if(!t)return""
|
|
10190
10221
|
const r=Array.isArray(t.content)?t.content:[]
|
|
10191
10222
|
if(0===r.length){const t=Array.isArray(null==(i=null==n?void 0:n.previousNode)?void 0:i.content)?n.previousNode.content:[]
|
|
@@ -10371,11 +10402,12 @@ if((i||!this.options.showOnlyCurrent)&&a){const o=[this.options.emptyNodeClass]
|
|
|
10371
10402
|
s&&o.push(this.options.emptyEditorClass)
|
|
10372
10403
|
const a=S_.node(n,n+e.nodeSize,{class:o.join(" "),[t]:"function"==typeof this.options.placeholder?this.options.placeholder({editor:this.editor,node:e,pos:n,hasAnchor:i}):this.options.placeholder})
|
|
10373
10404
|
r.push(a)}return this.options.includeChildren}),M_.create(e,r)}}})]}})
|
|
10374
|
-
|
|
10375
|
-
return[new fC({key:new vC("selection"),props:{decorations:n=>n.selection.empty||t.isFocused||!t.isEditable||n.selection instanceof eC||t.view.dragging?null:M_.create(n.doc,[S_.inline(n.selection.from,n.selection.to,{class:e.className})])}})]}})
|
|
10405
|
+
zI.create({name:"selection",addOptions:()=>({className:"selection"}),addProseMirrorPlugins(){const{editor:t,options:e}=this
|
|
10406
|
+
return[new fC({key:new vC("selection"),props:{decorations:n=>n.selection.empty||t.isFocused||!t.isEditable||n.selection instanceof eC||t.view.dragging?null:M_.create(n.doc,[S_.inline(n.selection.from,n.selection.to,{class:e.className})])}})]}})
|
|
10407
|
+
function EN({types:t,node:e}){return e&&Array.isArray(t)&&t.includes(e.type)||(null==e?void 0:e.type)===t}zI.create({name:"trailingNode",addOptions:()=>({node:void 0,notAfter:[]}),addProseMirrorPlugins(){var t
|
|
10376
10408
|
const e=new vC(this.name),n=this.options.node||(null==(t=this.editor.schema.topNodeType.contentMatch.defaultType)?void 0:t.name)||"paragraph",i=Object.entries(this.editor.schema.nodes).map(([,t])=>t).filter(t=>(this.options.notAfter||[]).concat(n).includes(t.name))
|
|
10377
10409
|
return[new fC({key:e,appendTransaction:(t,i,o)=>{const{doc:r,tr:s,schema:a}=o,l=e.getState(o),c=r.content.size,d=a.nodes[n]
|
|
10378
|
-
if(l)return s.insert(c,d.create())},state:{init:(t,e)=>!EN({node:e.tr.doc.lastChild,types:i}),apply:(t,e)=>{if(!t.docChanged)return e
|
|
10410
|
+
if(!t.some(t=>t.getMeta("skipTrailingNode"))&&l)return s.insert(c,d.create())},state:{init:(t,e)=>!EN({node:e.tr.doc.lastChild,types:i}),apply:(t,e)=>{if(!t.docChanged)return e
|
|
10379
10411
|
if(t.getMeta("__uniqueIDTransaction"))return e
|
|
10380
10412
|
return!EN({node:t.doc.lastChild,types:i})}}})]}})
|
|
10381
10413
|
var AN=zI.create({name:"undoRedo",addOptions:()=>({depth:100,newGroupDelay:500}),addCommands:()=>({undo:()=>({state:t,dispatch:e})=>_N(t,e),redo:()=>({state:t,dispatch:e})=>$N(t,e)}),addProseMirrorPlugins(){return[kN(this.options)]},addKeyboardShortcuts(){return{"Mod-z":()=>this.editor.commands.undo(),"Shift-Mod-z":()=>this.editor.commands.redo(),"Mod-y":()=>this.editor.commands.redo(),"Mod-я":()=>this.editor.commands.undo(),"Shift-Mod-я":()=>this.editor.commands.redo()}}})
|
|
@@ -11039,7 +11071,7 @@ const rL=Mt`
|
|
|
11039
11071
|
}
|
|
11040
11072
|
}
|
|
11041
11073
|
`,sL=kh
|
|
11042
|
-
class aL extends(Sh(Ln)){constructor(){super(...arguments),this.severity=sL.default,this.readOnly=!1,this.selected=!1,this.stepInternals=new Ig}}t([ft()],aL.prototype,"severity",void 0),t([ft({attribute:"readonly",mode:"boolean"})],aL.prototype,"readOnly",void 0),t([ft({mode:"boolean"})],aL.prototype,"selected",void 0),t([ft({attribute:"tabindex",converter:ut})],aL.prototype,"tabIndex",void 0)
|
|
11074
|
+
class aL extends(Sh(Ln)){constructor(){super(...arguments),this.severity=sL.default,this.readOnly=!1,this.selected=!1,this.stepInternals=new Ig}onClick(t){(this.disabled||this.readOnly)&&(t.preventDefault(),t.stopImmediatePropagation())}}t([ft()],aL.prototype,"severity",void 0),t([ft({attribute:"readonly",mode:"boolean"})],aL.prototype,"readOnly",void 0),t([ft({mode:"boolean"})],aL.prototype,"selected",void 0),t([ft({attribute:"tabindex",converter:ut})],aL.prototype,"tabIndex",void 0)
|
|
11043
11075
|
const lL=aL.compose({baseName:"step",template:(t,e)=>Q`
|
|
11044
11076
|
<template slot="step">
|
|
11045
11077
|
<li class="
|
|
@@ -11083,6 +11115,7 @@ const lL=aL.compose({baseName:"step",template:(t,e)=>Q`
|
|
|
11083
11115
|
aria-pressed="${t=>t.ariaPressed}"
|
|
11084
11116
|
aria-relevant="${t=>t.ariaRelevant}"
|
|
11085
11117
|
aria-roledescription="${t=>t.ariaRoledescription}"
|
|
11118
|
+
@click="${(t,e)=>t.onClick(e.event)}"
|
|
11086
11119
|
${zt("control")}
|
|
11087
11120
|
>
|
|
11088
11121
|
<div class="icon-background"></div>
|