@arcgis/common-components 5.2.0-next.16 → 5.2.0-next.18
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.
- package/dist/cdn/{3V5M7OHL.js → V5SIP2PW.js} +1 -1
- package/dist/cdn/index.js +1 -1
- package/dist/cdn/main.css +1 -1
- package/dist/components/arcgis-ckeditor5/customElement.d.ts +6 -1
- package/dist/components/arcgis-ckeditor5/customElement.js +1 -1
- package/dist/components/arcgis-coordinate-system-picker/customElement.d.ts +6 -1
- package/dist/docs/api.json +1 -1
- package/dist/docs/docs.json +1 -1
- package/dist/docs/vscode.css-custom-data.json +1 -1
- package/dist/docs/vscode.html-custom-data.json +1 -1
- package/dist/docs/web-types.json +1 -1
- package/package.json +3 -3
|
@@ -8205,4 +8205,4 @@ Please report this to https://github.com/markedjs/marked.`,e.silent)return"<p>An
|
|
|
8205
8205
|
`))+`
|
|
8206
8206
|
|
|
8207
8207
|
`}},en.tableSection={filter:["thead","tbody","tfoot"],replacement:function(n){return n}};let e4=ud.prototype.escape;function J0(n){return n=(n=e4(n)).replace(/</g,"\\<")}ud.prototype.escape=function(n){let e="",t=0;for(let o of(function*(i){for(let r of i.matchAll(t4)){let s=r[0],a=o4(s);yield Object.assign([s.substring(0,a)],{index:r.index})}})(n)){let i=o.index;i>t&&(e+=J0(n.substring(t,i)));let r=o[0];e+=r,t=i+r.length}return t<n.length&&(e+=J0(n.substring(t,n.length))),e};let md=new ud({codeBlockStyle:"fenced",hr:"---",headingStyle:"atx"});md.use([function(n){n.use([ZB,KB,JB,XB])},function(n){n.addRule("taskListItems",{filter:e=>e.type==="checkbox"&&(e.parentNode.nodeName==="LI"||e.parentNode.parentNode.nodeName==="LI"),replacement:(e,t)=>(t.checked?"[x]":"[ ]")+" "})}]);let t4=new RegExp(/\b(?:(?:https?|ftp):\/\/|www\.)/.source+/(?![-_])(?:[-_a-z0-9\u00a1-\uffff]{1,63}\.)+(?:[a-z\u00a1-\uffff]{2,63})/.source+/(?:[^\s<>]*)/.source,"gi");function o4(n){let e=n.length;for(;e>0;){let t=n[e-1];if(`?!.,:*_~'"`.includes(t))e--;else{if(t!=")")break;{let o=0;for(let i=0;i<e;i++)n[i]=="("?o++:n[i]==")"&&o--;if(!(o<0))break;e--}}}return e}class X0{constructor(e){this._htmlDP=new lm(e)}keepHtml(e){md.keep([e])}toView(e){let t=(function(o){return de.parse(o,{gfm:!0,breaks:!0,tables:!0,xhtml:!0,headerIds:!1})})(e);return this._htmlDP.toView(t)}toData(e){return(function(t){return md.turndown(t)})(this._htmlDP.toData(e))}registerRawContentMatcher(e){this._htmlDP.registerRawContentMatcher(e)}useFillerType(){}}let i4=["SPAN","BR","PRE","CODE"];class gd extends Dp{}gd.builtinPlugins=[u0,class extends L{static get requires(){return[lo]}static get pluginName(){return"Autoformat"}afterInit(){let n=this.editor,e=this.editor.t;this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats(),n.accessibility.addKeystrokeInfos({keystrokes:[{label:e("Revert autoformatting action"),keystroke:"Backspace"}]})}_addListAutoformats(){let n=this.editor.commands;n.get("bulletedList")&&To(this.editor,this,/^[*-]\s$/,"bulletedList"),n.get("numberedList")&&To(this.editor,this,/^1[.|)]\s$/,"numberedList"),n.get("todoList")&&To(this.editor,this,/^\[\s?\]\s$/,"todoList"),n.get("checkTodoList")&&To(this.editor,this,/^\[\s?x\s?\]\s$/,(()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")}))}_addBasicStylesAutoformats(){let n=this.editor.commands;if(n.get("bold")){let e=aa(this.editor,"bold");Ji(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,e),Ji(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,e)}if(n.get("italic")){let e=aa(this.editor,"italic");Ji(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,e),Ji(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,e)}if(n.get("code")){let e=aa(this.editor,"code");Ji(this.editor,this,/(`)([^`]+)(`)$/g,e)}if(n.get("strikethrough")){let e=aa(this.editor,"strikethrough");Ji(this.editor,this,/(~~)([^~]+)(~~)$/g,e)}}_addHeadingAutoformats(){let n=this.editor.commands.get("heading");n&&n.modelElements.filter((e=>e.match(/^heading[1-6]$/))).forEach((e=>{let t=e[7],o=new RegExp(`^(#{${t}})\\s$`);To(this.editor,this,o,(()=>{if(!n.isEnabled||n.value===e)return!1;this.editor.execute("heading",{value:e})}))}))}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&To(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){let n=this.editor,e=n.model.document.selection;n.commands.get("codeBlock")&&To(n,this,/^```$/,(()=>{if(e.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})}))}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&To(this.editor,this,/^---$/,"horizontalLine")}},Qw,class extends L{static get requires(){return[TI,II]}static get pluginName(){return"Code"}},class extends L{static get requires(){return[kB,wB]}static get pluginName(){return"CodeBlock"}},class extends L{static get requires(){return[Gk]}static get pluginName(){return"DocumentList"}constructor(n){super(n),te("plugin-obsolete-documentlist",{pluginName:"DocumentList"})}},Sf,f0,qf,Xw,m0,class extends L{constructor(n){super(n),n.data.processor=new X0(n.data.viewDocument)}static get pluginName(){return"Markdown"}},db,class extends L{constructor(n){super(n),this._gfmDataProcessor=new X0(n.data.viewDocument)}static get pluginName(){return"PasteFromMarkdownExperimental"}static get requires(){return[Lt]}init(){let n=this.editor,e=n.editing.view.document,t=n.plugins.get("ClipboardPipeline"),o=!1;this.listenTo(e,"keydown",((i,r)=>{o=r.shiftKey})),this.listenTo(t,"inputTransformation",((i,r)=>{if(o)return;let s=r.dataTransfer.getData("text/html");if(!s){let l=r.dataTransfer.getData("text/plain");return void(r.content=this._gfmDataProcessor.toView(l))}let a=this._parseMarkdownFromHtml(s);a&&(r.content=this._gfmDataProcessor.toView(a))}))}_parseMarkdownFromHtml(n){let e=this._removeOsSpecificTags(n);if(!this._containsOnlyAllowedFirstLevelTags(e))return null;let t=this._removeFirstLevelWrapperTagsAndBrs(e);return this._containsAnyRemainingHtmlTags(t)?null:this._replaceHtmlReservedEntitiesWithCharacters(t)}_removeOsSpecificTags(n){return n.replace(/^<meta\b[^>]*>/,"").trim().replace(/^<html>/,"").replace(/<\/html>$/,"").trim().replace(/^<body>/,"").replace(/<\/body>$/,"").trim().replace(/^<!--StartFragment-->/,"").replace(/<!--EndFragment-->$/,"").trim()}_containsOnlyAllowedFirstLevelTags(n){let e=new DOMParser,{body:t}=e.parseFromString(n,"text/html");return Array.from(t.children).map((o=>o.tagName)).every((o=>i4.includes(o)))}_removeFirstLevelWrapperTagsAndBrs(n){let e=new DOMParser,{body:t}=e.parseFromString(n,"text/html"),o=t.querySelectorAll("br");for(let r of o)r.replaceWith(`
|
|
8208
|
-
`);let i=t.querySelectorAll(":scope > *");for(let r of i){let s=r.cloneNode(!0);r.replaceWith(...s.childNodes)}return t.innerHTML}_containsAnyRemainingHtmlTags(n){return n.includes("<")}_replaceHtmlReservedEntitiesWithCharacters(n){return n.replace(/>/g,">").replace(/</g,"<").replace(/ /g," ")}},fb,class extends L{static get requires(){return[NI,PI]}static get pluginName(){return"Strikethrough"}},Wb],gd.defaultConfig={licenseKey:"WlZCOVRvK1lBTUdYRG13dnQ3L1krYTlycHc5dTVZbm5kWmRoMkpIRS9ETHBGbzd1YzBYUGNxcTZVbVljTkprQldwTjlqbzJIa3Jidmd6SXBtdUU9LU1qQXlOREE1TWpRPQ==",codeBlock:{languages:[{language:"plaintext",label:""}]},link:{defaultProtocol:"https://"},toolbar:{items:["sourceEditing","heading","|","bold","italic","strikethrough","|","bulletedList","numberedList","insertTable","|","code","codeBlock","link","arcgis-field-expression"]},table:{defaultHeadings:{rows:1}},language:"en"};let n4={HTMLEditor:mB,MarkdownEditor:gd}})(),oe=oe.default})()))})(Aa,Aa.exports)),Aa.exports}var J4=Q4(),_a=Y4(J4),X4=i_`@layer{.arcgis-app-ckeditor{max-width:var(--arcgis-ckeditor5-max-width);font-family:var(--calcite-font-family);background:var(--calcite-color-foreground-1);border-radius:3px;.ck-source-editing-area,.ck-editor__editable_inline{height:var(--arcgis-ckeditor5-initial-height)}&.readOnly{.ck.ck-content.ck-editor__editable{border-radius:0}}&.resizable{.ck.ck-content.ck-editor__editable,.ck-source-editing-area textarea{resize:vertical}}&.generic-code-blocks{.ck.ck-editor__editable pre[data-language]:after,.ck-code-block-dropdown .ck-splitbutton__arrow{display:none}}.ck.ck-toolbar{background-color:#f3f3f3;border-color:var(--calcite-color-border-1)}.ck-editor__editable_inline{overflow-y:scroll;box-sizing:border-box}.ck-content{font-size:var(--calcite-font-size-0);h2{font-size:var(--calcite-font-size-3)}h3{font-size:var(--calcite-font-size-2)}h4{font-size:var(--calcite-font-size-1)}span.mention{background-color:inherit!important;color:inherit!important}ul,ol{padding-inline-start:2rem}}.ck-editor .ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--calcite-color-border-1)}.ck-source-editing-area{overflow:hidden;textarea{overflow:unset!important}}.ck-editor .ck-source-editing-button{.ck-button__label{display:none!important}}}.ck-body .ck.ck-balloon-panel{box-shadow:val(--calcite-shadow-1);border:1px solid var(--calcite-color-border-1);border-radius:3px;.ck.ck-reset.ck-list.ck-mentions{max-width:var(--arcgis-ckeditor5-mentions-max-width)}.arcgis-app-ckeditor-mention-header{font-weight:500;line-height:1.25rem;padding-left:var(--calcite-space-lg);padding-top:var(--calcite-space-sm);padding-bottom:var(--calcite-space-sm);padding-right:var(--calcite-space-lg);width:100%;display:block;background-color:var(--calcite-color-background);font-family:var(--calcite-font-family)}}.ck.ck-balloon-panel.ck-tooltip{min-width:auto}.ck.ck-list__item .arcgis-app-ckeditor-mention-item-container.ck-button{--ck-list-button-padding: 0px;padding:0;position:relative!important;border-bottom:1px solid var(--calcite-color-foreground-3)!important;.arcgis-app-ckeditor-mention-item{cursor:pointer!important;display:flex!important;background-color:var(--calcite-color-foreground-1)!important;flex-flow:column!important;padding:var(--calcite-space-sm) var(--calcite-space-md)!important;transition:background-color calc(.25s / 3) ease-in-out!important;&:hover,&:focus{background-color:var(--calcite-color-foreground-3)!important}.heading{overflow:hidden!important;pointer-events:none!important;text-overflow:ellipsis!important;color:var(--calcite-color-neutral-blk-180)!important;font-family:var(--calcite-font-family)!important}.summary{overflow:hidden!important;pointer-events:none!important;text-overflow:ellipsis!important;color:var(--calcite-color-neutral-blk-180)!important;font-size:var(--calcite-font-size-sm)!important;font-family:var(--calcite-code-family)!important}}&.ck-on .arcgis-app-ckeditor-mention-item{background-color:var(--calcite-color-foreground-3)!important;border-color:#00619b!important;z-index:1!important}}arcgis-ckeditor5-popover{.arcgis-app-ckeditor{box-shadow:0 0 #0000;padding:var(--calcite-space-lg) var(--calcite-space-lg) 0 var(--calcite-space-lg)}}}`,wd=class extends l_{constructor(){super(),this.textAreaElement=s_(),this.actualLanguage="en",this.sanitizer=new M_({whiteList:{figure:["style","class"],thead:[]},onTagAttr:(I,E,O)=>{if((E==="src"&&I==="img"||I==="a"&&E==="href"||I==="source"&&E==="src")&&this.mentionFields?.some(H=>H.id===O))return`${E}="${O}"`}},!0),this.resizeObserver=new ResizeObserver(I=>{let E=I[0];this.currentEditableAreaHeight=E.borderBoxSize[0].blockSize}),this.sourceResizeObserver=new ResizeObserver(I=>{let E=I[0];this.currentSourceAreaHeight=E.borderBoxSize[0].blockSize,this.editor.editing.view.getDomRoot().nextSibling.style.height=`${E.borderBoxSize[0].blockSize}px`}),this.mutationObserver=new MutationObserver(I=>{for(let E of I){let O=E.addedNodes;if(O?.length){let H=Array.from(O).find(q=>q.classList.contains("ck-alignment-dropdown"));H&&this.configureAlignmentTooltips(H.parentElement)}}}),this.editorType="html",this.mentionFields=[],this.intlTextPlaceHolder="",this.intlExpressionsGroupHeading="",this.intlFieldsGroupHeading="",this.currentLanguage="en",this.canResizeVertically=!1,this.groupFieldsAndExpressions=!1,this.arcgisCkeditor5Created=hi(),this.arcgisCkeditor5DataUpdated=hi(),this.arcgisCkeditor5SourceEditingChanged=hi(),this.arcgisCreated=hi(),this.arcgisDataUpdated=hi(),this.arcgisSourceEditingChanged=hi(),this.listen("input",I=>{I.target===this.sourceTextarea&&this.editor.plugins.get("SourceEditing").updateEditorData()})}static{this.properties={editor:16,editorType:1,customConfig:1,textData:1,readOnly:5,mentionFields:0,intlTextPlaceHolder:1,intlExpressionsGroupHeading:1,intlFieldsGroupHeading:1,currentLanguage:1,canResizeVertically:5,groupFieldsAndExpressions:5,customExpressionCheck:0}}static{this.styles=X4}static{this.shadowRootOptions=r_}get propClass(){let I=this.readOnly?"readOnly":this.canResizeVertically?"resizable":"",E=this.editor?.config.codeBlock?.languages,O=E?.length===1&&E[0].language==="plaintext"?"generic-code-blocks":"";return[I,O].join(" ").trim()}get baseEditor(){return this.editorType==="html"?_a.HTMLEditor:_a.MarkdownEditor}get baseConfig(){return this.baseEditor.defaultConfig}get additionalConfig(){let I=this.getFields.bind(this),E=this.customItemRenderer.bind(this);return{language:this.actualLanguage,mention:{dropdownLimit:this.mentionFields?.length,feeds:[{marker:"{",feed:I,itemRenderer:E}]}}}async getData(){return this.editorType==="html"?this.postProcessCkeditorHtml():this.editor.getData()}async setFocus(){setTimeout(()=>{this.textAreaElement.value?.focus()},100)}async load(){let I=this.currentLanguage.toLowerCase(),E=P_.find(O=>O===I);if(!E&&I.includes("-")&&(I=I.substring(0,I.indexOf("-")),E=P_.find(O=>O===I)),this.actualLanguage=E||"en",this.actualLanguage!=="en"){let O=u_(`./assets/ckeditor5/translations/${this.actualLanguage}.js`);try{let H=await fetch(O);H.ok&&(this.languageScript=document.createElement("script"),this.languageScript.type="text/javascript",this.languageScript.text=await H.text())}catch(H){console.error("Error loading language file:",H)}}}willUpdate(I){I.has("textData")&&this.updateData(this.textData),I.has("readOnly")&&this.readOnlyWatcher(),!this.hasUpdated&&this.editor&&(this.editor.config._config.FieldExpression=this.customConfig.FieldExpression,this.editor.config._config.ArcgisColorPicker=this.customConfig.ArcgisColorPicker)}loaded(){(this.actualLanguage==="en"||this.languageScript)&&this.createEditor()}disconnectedCallback(){super.disconnectedCallback(),this.canResizeVertically&&(this.resizeObserver.unobserve(this.editor.ui.view.editable.element),this.sourceResizeObserver.disconnect()),this.mutationObserver.disconnect()}updateData(I){this.editor?.setData(I)}readOnlyWatcher(){this.updateReadOnlyStatus()}async createEditor(){let I=this.editorType==="html"?_a.HTMLEditor:_a.MarkdownEditor,E={...this.baseConfig,...this.additionalConfig,...this.customConfig};try{let O=await I.create(this.textAreaElement.value,E);this.editor=O,this.editor.model.document.on("change:data",async()=>{this.arcgisCkeditor5DataUpdated.emit(await this.getData()),this.arcgisDataUpdated.emit(await this.getData())}),this.editor.setData(this.textData??""),this.configureReadOnlySettings(),this.configureSourceEditing(),this.canResizeVertically&&this.configureResizing(),this.arcgisCkeditor5Created.emit(this.el),this.arcgisCreated.emit(this.el),this.setUpTooltipReconfiguring()}catch(O){console.error(O.stack)}}configureResizing(){this.resizeObserver.observe(this.editor.ui.view.editable.element),this.editor.ui.focusTracker.on("change:isFocused",()=>{this.editor.ui.view.editable.element.style.height=`${this.currentEditableAreaHeight}px`})}configureReadOnlySettings(){let I=this.editor.ui.view.toolbar.element;this.editor.on("change:isReadOnly",(E,O,H)=>{I.style.display=H?"none":"flex"}),this.updateReadOnlyStatus()}setUpTooltipReconfiguring(){this.configureAlignmentTooltips(this.el);let I=this.el.querySelector(".ck-toolbar__grouped-dropdown");I&&I.addEventListener("click",()=>this.configureAlignmentTooltips(I));let E=this.el.querySelector(".ck-toolbar__items");E&&this.mutationObserver.observe(E,{childList:!0})}configureAlignmentTooltips(I){let E=h_(this.el),O=I?.querySelector(".ck-alignment-dropdown");O&&O.addEventListener("click",()=>{O.querySelectorAll(".ck-button").forEach(H=>{let q=window.innerWidth-O.getBoundingClientRect().right,z=O.getBoundingClientRect().left;E==="ltr"&&H.dataset.ckeTooltipPosition==="e"?z>q&&(H.dataset.ckeTooltipPosition="w"):E==="rtl"&&H.dataset.ckeTooltipPosition==="w"&&q>z&&(H.dataset.ckeTooltipPosition="e")})})}updateReadOnlyStatus(){this.readOnly?this.editor?.enableReadOnlyMode("isReadOnlyProp"):this.editor?.disableReadOnlyMode("isReadOnlyProp")}configureSourceEditing(){let I=this.editor.plugins.get("SourceEditing");I&&I?.on("change:isSourceEditingMode",()=>{let E=I?.isSourceEditingMode;if(this.arcgisCkeditor5SourceEditingChanged.emit(E),this.arcgisSourceEditingChanged.emit(E),E){let O=this.editor.editing.view.getDomRoot()?.nextSibling;this.sourceTextarea=this.editor.editing.view.getDomRoot()?.nextSibling?.firstChild,this.canResizeVertically&&(O.style.height=`${this.currentEditableAreaHeight}px`,this.sourceTextarea.style.height=`${this.currentEditableAreaHeight}px`,this.sourceResizeObserver.observe(this.editor.editing.view.getDomRoot()?.nextSibling?.firstChild))}else this.canResizeVertically&&(this.sourceResizeObserver.disconnect(),this.editor.ui.view.editable.element.style.height=`${this.currentSourceAreaHeight}px`)})}updateMentionHeadings(){this.removeMentionHeadings();let I=this.intlExpressionsGroupHeading,E=this.intlFieldsGroupHeading;this.addMentionHeading("[data-first-expression]",I),this.addMentionHeading("[data-first-field]",E)}removeMentionHeadings(){document.querySelectorAll(`.${tn.arcgisAppCkeditorMentionHeader}`).forEach(I=>I.remove())}addMentionHeading(I,E){let O=document.querySelector(I);if(O){let H=document.createElement("div");H.setAttribute("class",tn.arcgisAppCkeditorMentionHeader),H.textContent=E,O.parentElement?.insertAdjacentElement("beforebegin",H)}}getFields(I){let E=this.isItemMatching.bind(this,I);return new Promise(O=>{setTimeout(()=>{let H=this.mentionFields?.filter(E),q=H?.filter(v=>this.isExpression(v)),z=H?.filter(v=>!this.isExpression(v));q.length&&(q[0].isFirstExpression=!0),z.length&&(z[0].isFirstField=!0);let oe=q.concat(z);this.groupFieldsAndExpressions&&setTimeout(()=>this.updateMentionHeadings(),10),O(oe)},100)})}isItemMatching(I,E){let O=I.toLowerCase();return E.name.toLowerCase().includes(O)||E.id.toLowerCase().includes(O)}customItemRenderer(I){let E=document.createElement("div");E.setAttribute("class",`custom-item ${tn.arcgisAppCkeditorMentionItemContainer}`),I.isFirstExpression&&E.setAttribute("data-first-expression",""),I.isFirstField&&E.setAttribute("data-first-field","");let O=document.createElement("div");return O.setAttribute("class",tn.arcgisAppCkeditorMentionItem),E.appendChild(O),O.innerHTML=`<span class="heading">${I.name}</span><span class="summary">${I.id}</span>`,E.id=`mention-list-item-id-${I.id}`,E.appendChild(O),E}postProcessCkeditorHtml(){let I=this.editor.getData(),E=this.sanitizer.sanitize(I),O=document.createElement("div");O.innerHTML=E;let H=O.querySelectorAll("span.mention");for(let q=0;q<H.length;++q){let z=document.createTextNode(H[q].textContent??"");H[q].parentNode?.replaceChild(z,H[q])}return O.innerHTML}isExpression(I){return this.customExpressionCheck?this.customExpressionCheck(I):this.defaultExpressionCheck(I)}defaultExpressionCheck(I){return I.id.includes(m_.expression)}render(){return n_`${this.actualLanguage!=="en"&&this.languageScript||""}<div class=${`${tn.arcgisAppCkeditor} ${this.propClass}`}><textarea placeholder=${(this.readOnly?void 0:this.intlTextPlaceHolder)??c_} ${a_(this.textAreaElement)}></textarea></div>`}},P_=["af","ar","ast","az","bg","bn","bs","ca","cs","da","de-ch","de","el","en-au","en-gb","eo","es-co","es","et","eu","fa","fi","fr","gl","gu","he","hi","hr","hu","hy","id","it","ja","jv","kk","km","kn","ko","ku","lt","lv","ms","nb","ne","nl","no","oc","pl","pt-br","pt","ro","ru","si","sk","sl","sq","sr-latn","sr","sv","th","tk","tr","tt","ug","uk","ur","uz","vi","zh-cn","zh"];d_("arcgis-ckeditor5",wd);export{wd as ArcgisCkeditor5};
|
|
8208
|
+
`);let i=t.querySelectorAll(":scope > *");for(let r of i){let s=r.cloneNode(!0);r.replaceWith(...s.childNodes)}return t.innerHTML}_containsAnyRemainingHtmlTags(n){return n.includes("<")}_replaceHtmlReservedEntitiesWithCharacters(n){return n.replace(/>/g,">").replace(/</g,"<").replace(/ /g," ")}},fb,class extends L{static get requires(){return[NI,PI]}static get pluginName(){return"Strikethrough"}},Wb],gd.defaultConfig={licenseKey:"WlZCOVRvK1lBTUdYRG13dnQ3L1krYTlycHc5dTVZbm5kWmRoMkpIRS9ETHBGbzd1YzBYUGNxcTZVbVljTkprQldwTjlqbzJIa3Jidmd6SXBtdUU9LU1qQXlOREE1TWpRPQ==",codeBlock:{languages:[{language:"plaintext",label:""}]},link:{defaultProtocol:"https://"},toolbar:{items:["sourceEditing","heading","|","bold","italic","strikethrough","|","bulletedList","numberedList","insertTable","|","code","codeBlock","link","arcgis-field-expression"]},table:{defaultHeadings:{rows:1}},language:"en"};let n4={HTMLEditor:mB,MarkdownEditor:gd}})(),oe=oe.default})()))})(Aa,Aa.exports)),Aa.exports}var J4=Q4(),_a=Y4(J4),X4=i_`@layer{.arcgis-app-ckeditor{max-width:var(--arcgis-ckeditor5-max-width, 35vw);font-family:var(--calcite-font-family);background:var(--calcite-color-foreground-1);border-radius:3px;.ck-source-editing-area,.ck-editor__editable_inline{height:var(--arcgis-ckeditor5-initial-height, 30vh)}&.readOnly{.ck.ck-content.ck-editor__editable{border-radius:0}}&.resizable{.ck.ck-content.ck-editor__editable,.ck-source-editing-area textarea{resize:vertical}}&.generic-code-blocks{.ck.ck-editor__editable pre[data-language]:after,.ck-code-block-dropdown .ck-splitbutton__arrow{display:none}}.ck.ck-toolbar{background-color:#f3f3f3;border-color:var(--calcite-color-border-1)}.ck-editor__editable_inline{overflow-y:scroll;box-sizing:border-box}.ck-content{font-size:var(--calcite-font-size-0);h2{font-size:var(--calcite-font-size-3)}h3{font-size:var(--calcite-font-size-2)}h4{font-size:var(--calcite-font-size-1)}span.mention{background-color:inherit!important;color:inherit!important}ul,ol{padding-inline-start:2rem}}.ck-editor .ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--calcite-color-border-1)}.ck-source-editing-area{overflow:hidden;textarea{overflow:unset!important}}.ck-editor .ck-source-editing-button{.ck-button__label{display:none!important}}}.ck-body .ck.ck-balloon-panel{box-shadow:val(--calcite-shadow-1);border:1px solid var(--calcite-color-border-1);border-radius:3px;.ck.ck-reset.ck-list.ck-mentions{max-width:var(--arcgis-ckeditor5-mentions-max-width, 33vw)}.arcgis-app-ckeditor-mention-header{font-weight:500;line-height:1.25rem;padding-left:var(--calcite-space-lg);padding-top:var(--calcite-space-sm);padding-bottom:var(--calcite-space-sm);padding-right:var(--calcite-space-lg);width:100%;display:block;background-color:var(--calcite-color-background);font-family:var(--calcite-font-family)}}.ck.ck-balloon-panel.ck-tooltip{min-width:auto}.ck.ck-list__item .arcgis-app-ckeditor-mention-item-container.ck-button{--ck-list-button-padding: 0px;padding:0;position:relative!important;border-bottom:1px solid var(--calcite-color-foreground-3)!important;.arcgis-app-ckeditor-mention-item{cursor:pointer!important;display:flex!important;background-color:var(--calcite-color-foreground-1)!important;flex-flow:column!important;padding:var(--calcite-space-sm) var(--calcite-space-md)!important;transition:background-color calc(.25s / 3) ease-in-out!important;&:hover,&:focus{background-color:var(--calcite-color-foreground-3)!important}.heading{overflow:hidden!important;pointer-events:none!important;text-overflow:ellipsis!important;color:var(--calcite-color-neutral-blk-180)!important;font-family:var(--calcite-font-family)!important}.summary{overflow:hidden!important;pointer-events:none!important;text-overflow:ellipsis!important;color:var(--calcite-color-neutral-blk-180)!important;font-size:var(--calcite-font-size-sm)!important;font-family:var(--calcite-code-family)!important}}&.ck-on .arcgis-app-ckeditor-mention-item{background-color:var(--calcite-color-foreground-3)!important;border-color:#00619b!important;z-index:1!important}}arcgis-ckeditor5-popover{.arcgis-app-ckeditor{box-shadow:0 0 #0000;padding:var(--calcite-space-lg) var(--calcite-space-lg) 0 var(--calcite-space-lg)}}}`,wd=class extends l_{constructor(){super(),this.textAreaElement=s_(),this.actualLanguage="en",this.sanitizer=new M_({whiteList:{figure:["style","class"],thead:[]},onTagAttr:(I,E,O)=>{if((E==="src"&&I==="img"||I==="a"&&E==="href"||I==="source"&&E==="src")&&this.mentionFields?.some(H=>H.id===O))return`${E}="${O}"`}},!0),this.resizeObserver=new ResizeObserver(I=>{let E=I[0];this.currentEditableAreaHeight=E.borderBoxSize[0].blockSize}),this.sourceResizeObserver=new ResizeObserver(I=>{let E=I[0];this.currentSourceAreaHeight=E.borderBoxSize[0].blockSize,this.editor.editing.view.getDomRoot().nextSibling.style.height=`${E.borderBoxSize[0].blockSize}px`}),this.mutationObserver=new MutationObserver(I=>{for(let E of I){let O=E.addedNodes;if(O?.length){let H=Array.from(O).find(q=>q.classList.contains("ck-alignment-dropdown"));H&&this.configureAlignmentTooltips(H.parentElement)}}}),this.editorType="html",this.mentionFields=[],this.intlTextPlaceHolder="",this.intlExpressionsGroupHeading="",this.intlFieldsGroupHeading="",this.currentLanguage="en",this.canResizeVertically=!1,this.groupFieldsAndExpressions=!1,this.arcgisCkeditor5Created=hi(),this.arcgisCkeditor5DataUpdated=hi(),this.arcgisCkeditor5SourceEditingChanged=hi(),this.arcgisCreated=hi(),this.arcgisDataUpdated=hi(),this.arcgisSourceEditingChanged=hi(),this.listen("input",I=>{I.target===this.sourceTextarea&&this.editor.plugins.get("SourceEditing").updateEditorData()})}static{this.properties={editor:16,editorType:1,customConfig:1,textData:1,readOnly:5,mentionFields:0,intlTextPlaceHolder:1,intlExpressionsGroupHeading:1,intlFieldsGroupHeading:1,currentLanguage:1,canResizeVertically:5,groupFieldsAndExpressions:5,customExpressionCheck:0}}static{this.styles=X4}static{this.shadowRootOptions=r_}get propClass(){let I=this.readOnly?"readOnly":this.canResizeVertically?"resizable":"",E=this.editor?.config.codeBlock?.languages,O=E?.length===1&&E[0].language==="plaintext"?"generic-code-blocks":"";return[I,O].join(" ").trim()}get baseEditor(){return this.editorType==="html"?_a.HTMLEditor:_a.MarkdownEditor}get baseConfig(){return this.baseEditor.defaultConfig}get additionalConfig(){let I=this.getFields.bind(this),E=this.customItemRenderer.bind(this);return{language:this.actualLanguage,mention:{dropdownLimit:this.mentionFields?.length,feeds:[{marker:"{",feed:I,itemRenderer:E}]}}}async getData(){return this.editorType==="html"?this.postProcessCkeditorHtml():this.editor.getData()}async setFocus(){setTimeout(()=>{this.textAreaElement.value?.focus()},100)}async load(){let I=this.currentLanguage.toLowerCase(),E=P_.find(O=>O===I);if(!E&&I.includes("-")&&(I=I.substring(0,I.indexOf("-")),E=P_.find(O=>O===I)),this.actualLanguage=E||"en",this.actualLanguage!=="en"){let O=u_(`./assets/ckeditor5/translations/${this.actualLanguage}.js`);try{let H=await fetch(O);H.ok&&(this.languageScript=document.createElement("script"),this.languageScript.type="text/javascript",this.languageScript.text=await H.text())}catch(H){console.error("Error loading language file:",H)}}}willUpdate(I){I.has("textData")&&this.updateData(this.textData),I.has("readOnly")&&this.readOnlyWatcher(),!this.hasUpdated&&this.editor&&(this.editor.config._config.FieldExpression=this.customConfig.FieldExpression,this.editor.config._config.ArcgisColorPicker=this.customConfig.ArcgisColorPicker)}loaded(){(this.actualLanguage==="en"||this.languageScript)&&this.createEditor()}disconnectedCallback(){super.disconnectedCallback(),this.canResizeVertically&&(this.resizeObserver.unobserve(this.editor.ui.view.editable.element),this.sourceResizeObserver.disconnect()),this.mutationObserver.disconnect()}updateData(I){this.editor?.setData(I)}readOnlyWatcher(){this.updateReadOnlyStatus()}async createEditor(){let I=this.editorType==="html"?_a.HTMLEditor:_a.MarkdownEditor,E={...this.baseConfig,...this.additionalConfig,...this.customConfig};try{let O=await I.create(this.textAreaElement.value,E);this.editor=O,this.editor.model.document.on("change:data",async()=>{this.arcgisCkeditor5DataUpdated.emit(await this.getData()),this.arcgisDataUpdated.emit(await this.getData())}),this.editor.setData(this.textData??""),this.configureReadOnlySettings(),this.configureSourceEditing(),this.canResizeVertically&&this.configureResizing(),this.arcgisCkeditor5Created.emit(this.el),this.arcgisCreated.emit(this.el),this.setUpTooltipReconfiguring()}catch(O){console.error(O.stack)}}configureResizing(){this.resizeObserver.observe(this.editor.ui.view.editable.element),this.editor.ui.focusTracker.on("change:isFocused",()=>{this.editor.ui.view.editable.element.style.height=`${this.currentEditableAreaHeight}px`})}configureReadOnlySettings(){let I=this.editor.ui.view.toolbar.element;this.editor.on("change:isReadOnly",(E,O,H)=>{I.style.display=H?"none":"flex"}),this.updateReadOnlyStatus()}setUpTooltipReconfiguring(){this.configureAlignmentTooltips(this.el);let I=this.el.querySelector(".ck-toolbar__grouped-dropdown");I&&I.addEventListener("click",()=>this.configureAlignmentTooltips(I));let E=this.el.querySelector(".ck-toolbar__items");E&&this.mutationObserver.observe(E,{childList:!0})}configureAlignmentTooltips(I){let E=h_(this.el),O=I?.querySelector(".ck-alignment-dropdown");O&&O.addEventListener("click",()=>{O.querySelectorAll(".ck-button").forEach(H=>{let q=window.innerWidth-O.getBoundingClientRect().right,z=O.getBoundingClientRect().left;E==="ltr"&&H.dataset.ckeTooltipPosition==="e"?z>q&&(H.dataset.ckeTooltipPosition="w"):E==="rtl"&&H.dataset.ckeTooltipPosition==="w"&&q>z&&(H.dataset.ckeTooltipPosition="e")})})}updateReadOnlyStatus(){this.readOnly?this.editor?.enableReadOnlyMode("isReadOnlyProp"):this.editor?.disableReadOnlyMode("isReadOnlyProp")}configureSourceEditing(){let I=this.editor.plugins.get("SourceEditing");I&&I?.on("change:isSourceEditingMode",()=>{let E=I?.isSourceEditingMode;if(this.arcgisCkeditor5SourceEditingChanged.emit(E),this.arcgisSourceEditingChanged.emit(E),E){let O=this.editor.editing.view.getDomRoot()?.nextSibling;this.sourceTextarea=this.editor.editing.view.getDomRoot()?.nextSibling?.firstChild,this.canResizeVertically&&(O.style.height=`${this.currentEditableAreaHeight}px`,this.sourceTextarea.style.height=`${this.currentEditableAreaHeight}px`,this.sourceResizeObserver.observe(this.editor.editing.view.getDomRoot()?.nextSibling?.firstChild))}else this.canResizeVertically&&(this.sourceResizeObserver.disconnect(),this.editor.ui.view.editable.element.style.height=`${this.currentSourceAreaHeight}px`)})}updateMentionHeadings(){this.removeMentionHeadings();let I=this.intlExpressionsGroupHeading,E=this.intlFieldsGroupHeading;this.addMentionHeading("[data-first-expression]",I),this.addMentionHeading("[data-first-field]",E)}removeMentionHeadings(){document.querySelectorAll(`.${tn.arcgisAppCkeditorMentionHeader}`).forEach(I=>I.remove())}addMentionHeading(I,E){let O=document.querySelector(I);if(O){let H=document.createElement("div");H.setAttribute("class",tn.arcgisAppCkeditorMentionHeader),H.textContent=E,O.parentElement?.insertAdjacentElement("beforebegin",H)}}getFields(I){let E=this.isItemMatching.bind(this,I);return new Promise(O=>{setTimeout(()=>{let H=this.mentionFields?.filter(E),q=H?.filter(v=>this.isExpression(v)),z=H?.filter(v=>!this.isExpression(v));q.length&&(q[0].isFirstExpression=!0),z.length&&(z[0].isFirstField=!0);let oe=q.concat(z);this.groupFieldsAndExpressions&&setTimeout(()=>this.updateMentionHeadings(),10),O(oe)},100)})}isItemMatching(I,E){let O=I.toLowerCase();return E.name.toLowerCase().includes(O)||E.id.toLowerCase().includes(O)}customItemRenderer(I){let E=document.createElement("div");E.setAttribute("class",`custom-item ${tn.arcgisAppCkeditorMentionItemContainer}`),I.isFirstExpression&&E.setAttribute("data-first-expression",""),I.isFirstField&&E.setAttribute("data-first-field","");let O=document.createElement("div");return O.setAttribute("class",tn.arcgisAppCkeditorMentionItem),E.appendChild(O),O.innerHTML=`<span class="heading">${I.name}</span><span class="summary">${I.id}</span>`,E.id=`mention-list-item-id-${I.id}`,E.appendChild(O),E}postProcessCkeditorHtml(){let I=this.editor.getData(),E=this.sanitizer.sanitize(I),O=document.createElement("div");O.innerHTML=E;let H=O.querySelectorAll("span.mention");for(let q=0;q<H.length;++q){let z=document.createTextNode(H[q].textContent??"");H[q].parentNode?.replaceChild(z,H[q])}return O.innerHTML}isExpression(I){return this.customExpressionCheck?this.customExpressionCheck(I):this.defaultExpressionCheck(I)}defaultExpressionCheck(I){return I.id.includes(m_.expression)}render(){return n_`${this.actualLanguage!=="en"&&this.languageScript||""}<div class=${`${tn.arcgisAppCkeditor} ${this.propClass}`}><textarea placeholder=${(this.readOnly?void 0:this.intlTextPlaceHolder)??c_} ${a_(this.textAreaElement)}></textarea></div>`}},P_=["af","ar","ast","az","bg","bn","bs","ca","cs","da","de-ch","de","el","en-au","en-gb","eo","es-co","es","et","eu","fa","fi","fr","gl","gu","he","hi","hr","hu","hy","id","it","ja","jv","kk","km","kn","ko","ku","lt","lv","ms","nb","ne","nl","no","oc","pl","pt-br","pt","ro","ru","si","sk","sl","sq","sr-latn","sr","sv","th","tk","tr","tt","ug","uk","ur","uz","vi","zh-cn","zh"];d_("arcgis-ckeditor5",wd);export{wd as ArcgisCkeditor5};
|
package/dist/cdn/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/* COPYRIGHT Esri - https://js.arcgis.com/5.2/LICENSE.txt */
|
|
2
|
-
import{I as i,x as e}from"./AFBKMYU6.js";var a=e(i,{"arcgis-ckeditor5":[()=>import("./
|
|
2
|
+
import{I as i,x as e}from"./AFBKMYU6.js";var a=e(i,{"arcgis-ckeditor5":[()=>import("./V5SIP2PW.js"),"canResizeVertically,currentLanguage,customConfig,customExpressionCheck:,editorType,groupFieldsAndExpressions,intlExpressionsGroupHeading,intlFieldsGroupHeading,intlTextPlaceHolder,mentionFields:,readOnly,textData;getData,setFocus"],"arcgis-ckeditor5-popover":[()=>import("./LBD3GPSD.js"),"guid,intlCancel,intlLabel,intlOk,refElement:;reposition"],"arcgis-color-input":[()=>import("./PSITQBDP.js"),"_messages:,clearable,color,compact,disabled,hideRecentColors,messageOverrides:,placement,popoverProps:,showTransparency,storageId;close,setFocus;isOpen"],"arcgis-coordinate-system-picker":[()=>import("./77HZGUSC.js"),"_messages:,autoFilterToDefault,defaultWkid,filterEnabled,hideCategories:,value:;getSRDescription"],"arcgis-coordinate-system-picker-tree":[()=>import("./L5RMOAO3.js"),"data:,value"],"arcgis-field-info":[()=>import("./MCH3WQ4X.js"),"_messages:,fieldName,hideAlias,hideNumericFormat,hideStatistics,layer:,view:;refresh"],"arcgis-field-pick-list":[()=>import("./ZDMNUSIJ.js"),"_messages:,customExpressionCheck:,expressionsGroupHeading,fields:,fieldsGroupHeading,filterNoResultsText,filterPlaceholderText,groupFieldsAndExpressions,heading,hideCancel,hideSort,layer:,listOnly,mapView:,multiple,okBtnText,popoverProps:,selectedFields:,showCancel,showDescription,showFieldInfo,showFieldName,showFieldTypeIcon,showFilterLength,showSelectionAll,showSort,sortBy,view:;reposition,setDisabled,setFocus"],"arcgis-histogram":[()=>import("./JPD7Z3MB.js"),"_messages:,average,bins:,colorBlendingEnabled,colorStops:,dataLines:,icon,label,layout,max,messageOverrides:,min,standardDeviation"],"arcgis-label-input":[()=>import("./2XA6O2MP.js"),"alignment,editing,labelFormatter:,readOnly,value;edit;getLabelBoundingClientRect"],"arcgis-picker-input":[()=>import("./XRARFMJ7.js"),"disabled,heading,iconEnd,intlDone,label,popoverProps:;close,setFocus"],"arcgis-ramp-color":[()=>import("./WEKRF34E.js"),"layout,max,min,stops:"],"arcgis-ramp-color-break":[()=>import("./VQLI4IE7.js"),"layout,max,min,stops:"],"arcgis-ramp-opacity":[()=>import("./MCZBUYS5.js"),"fillColor,layout,max,min,stops:"],"arcgis-slider":[()=>import("./LB7I345F.js"),"activeValue:,allowValuesOverlap,autoDestroyDisabled,disabled,fillPlacement,fullRangeMax,fullRangeMin,keyboardLargeStep,labelFormatter:,layout,max,messageOverrides:,messages:,min,mirrored,popoverLabel,popoverPlacement,precision,rangeLabelsEditingEnabled,rangeLabelsPlacement,segmentsDraggingDisabled,showRangeLabels,steps,valueLabelsDisplay,valueLabelsEditingEnabled,valueLabelsPlacement,values;destroy"],"arcgis-slider-input":[()=>import("./OBIWQRXY.js"),"disabled,flipLabels,label,max,min,scale,step,unitsLabel,value,withSteppers"],"arcgis-ticks":[()=>import("./TXYPZ6MB.js"),"interactive,interpolationExponent,labelFormatter:,labelPlacement,layout,max,min,mirrored,mode,showBaseline,showLabels,values"],"arcgis-unique-values-list":[()=>import("./5U5NQ3F5.js"),"_messages:,fieldName,layer:,maxHeight,multiple,numberFormatOptions:,partialUniqueValues,selectedValues:,showFilterLength,sortBy,uniqueValues:,view:,visualizationSource;getUniqueValues,setFocus"],"arcgis-value-picker":[()=>import("./4W7JZPB6.js"),"autoDestroyDisabled,disabled,hideNextButton,hidePlayButton,hidePreviousButton,icon,label,layout,loop,messages:,playRate,state:;destroy;next,pause,play,previous"],"arcgis-value-picker-collection":[()=>import("./3P53QRGS.js"),"autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue:,items:;destroy;reset,step"],"arcgis-value-picker-combobox":[()=>import("./L2JNUMXB.js"),"autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue:,disabled,items:,messages:;destroy;reset,step"],"arcgis-value-picker-label":[()=>import("./LKUOAV7B.js"),"autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue:,items:;destroy;reset,step"],"arcgis-value-picker-slider":[()=>import("./GVOQ2CB7.js"),"autoDestroyDisabled,canNext,canPlay,canPrevious,currentValue,disabled,labelFormatter:,labels:,layout,majorTicks:,max,min,minorTicks:,mirrored,steps:;destroy;reset,step"]});a({resourcesUrl:import.meta.url});var s=new CSSStyleSheet;s.replaceSync("@layer{:not([hydrated]):is(arcgis-ckeditor5,arcgis-ckeditor5-popover,arcgis-color-input,arcgis-coordinate-system-picker,arcgis-coordinate-system-picker-tree,arcgis-field-info,arcgis-field-pick-list,arcgis-histogram,arcgis-label-input,arcgis-picker-input,arcgis-ramp-color,arcgis-ramp-color-break,arcgis-ramp-opacity,arcgis-slider,arcgis-slider-input,arcgis-ticks,arcgis-unique-values-list,arcgis-value-picker,arcgis-value-picker-collection,arcgis-value-picker-combobox,arcgis-value-picker-label,arcgis-value-picker-slider){visibility:hidden}}");document.adoptedStyleSheets=[...document.adoptedStyleSheets,s];window.$arcgis||Object.defineProperty(window,"$arcgis",{configurable:!1,enumerable:!0,writable:!1,value:{}}),((a,r)=>{a.t=(c,...x)=>Promise.all(x.map(x=>x.then?x:(!a?.forceESM&&a?.import||(x=>import(x+".js").then(m=>m.default??m)))("@arcgis/core/"+x))).then(c);r.p=a.t(([m])=>{r.t=m.trackAccess;r.o=m.createObservable;r.c=m.createTrackingTarget;r.r=m.runTracked},"applications/Components/reactiveUtils")})($arcgis,i)
|
package/dist/cdn/main.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@layer{:not([hydrated]):is(arcgis-ckeditor5,arcgis-ckeditor5-popover,arcgis-color-input,arcgis-coordinate-system-picker,arcgis-coordinate-system-picker-tree,arcgis-field-info,arcgis-field-pick-list,arcgis-histogram,arcgis-label-input,arcgis-picker-input,arcgis-ramp-color,arcgis-ramp-color-break,arcgis-ramp-opacity,arcgis-slider,arcgis-slider-input,arcgis-ticks,arcgis-unique-values-list,arcgis-value-picker,arcgis-value-picker-collection,arcgis-value-picker-combobox,arcgis-value-picker-label,arcgis-value-picker-slider){visibility:hidden}
|
|
1
|
+
@layer{:not([hydrated]):is(arcgis-ckeditor5,arcgis-ckeditor5-popover,arcgis-color-input,arcgis-coordinate-system-picker,arcgis-coordinate-system-picker-tree,arcgis-field-info,arcgis-field-pick-list,arcgis-histogram,arcgis-label-input,arcgis-picker-input,arcgis-ramp-color,arcgis-ramp-color-break,arcgis-ramp-opacity,arcgis-slider,arcgis-slider-input,arcgis-ticks,arcgis-unique-values-list,arcgis-value-picker,arcgis-value-picker-collection,arcgis-value-picker-combobox,arcgis-value-picker-label,arcgis-value-picker-slider){visibility:hidden}}
|
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
3
|
import type { EditorType, InputMentionField } from "./types.js";
|
|
4
4
|
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* @cssproperty [--arcgis-ckeditor5-initial-height] - Specifies the initial height of the component.
|
|
7
|
+
* @cssproperty [--arcgis-ckeditor5-max-width] - Specifies the maximum width of the component.
|
|
8
|
+
* @cssproperty [--arcgis-ckeditor5-mentions-max-width] - Specifies the maximum width of the mention popover.
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
6
11
|
export abstract class ArcgisCkeditor5 extends LitElement {
|
|
7
12
|
/**
|
|
8
13
|
* The editor's text area will have a vertical resize handle if set to true
|
|
@@ -35672,7 +35672,7 @@ Please report this to https://github.com/markedjs/marked.`, e.silent) return "<p
|
|
|
35672
35672
|
})(ar, ar.exports)), ar.exports;
|
|
35673
35673
|
}
|
|
35674
35674
|
var xB = yB();
|
|
35675
|
-
const la = /* @__PURE__ */ vB(xB), EB = bB`@layer{.arcgis-app-ckeditor{max-width:var(--arcgis-ckeditor5-max-width);font-family:var(--calcite-font-family);background:var(--calcite-color-foreground-1);border-radius:3px;.ck-source-editing-area,.ck-editor__editable_inline{height:var(--arcgis-ckeditor5-initial-height)}&.readOnly{.ck.ck-content.ck-editor__editable{border-radius:0}}&.resizable{.ck.ck-content.ck-editor__editable,.ck-source-editing-area textarea{resize:vertical}}&.generic-code-blocks{.ck.ck-editor__editable pre[data-language]:after,.ck-code-block-dropdown .ck-splitbutton__arrow{display:none}}.ck.ck-toolbar{background-color:#f3f3f3;border-color:var(--calcite-color-border-1)}.ck-editor__editable_inline{overflow-y:scroll;box-sizing:border-box}.ck-content{font-size:var(--calcite-font-size-0);h2{font-size:var(--calcite-font-size-3)}h3{font-size:var(--calcite-font-size-2)}h4{font-size:var(--calcite-font-size-1)}span.mention{background-color:inherit!important;color:inherit!important}ul,ol{padding-inline-start:2rem}}.ck-editor .ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--calcite-color-border-1)}.ck-source-editing-area{overflow:hidden;textarea{overflow:unset!important}}.ck-editor .ck-source-editing-button{.ck-button__label{display:none!important}}}.ck-body .ck.ck-balloon-panel{box-shadow:val(--calcite-shadow-1);border:1px solid var(--calcite-color-border-1);border-radius:3px;.ck.ck-reset.ck-list.ck-mentions{max-width:var(--arcgis-ckeditor5-mentions-max-width)}.arcgis-app-ckeditor-mention-header{font-weight:500;line-height:1.25rem;padding-left:var(--calcite-space-lg);padding-top:var(--calcite-space-sm);padding-bottom:var(--calcite-space-sm);padding-right:var(--calcite-space-lg);width:100%;display:block;background-color:var(--calcite-color-background);font-family:var(--calcite-font-family)}}.ck.ck-balloon-panel.ck-tooltip{min-width:auto}.ck.ck-list__item .arcgis-app-ckeditor-mention-item-container.ck-button{--ck-list-button-padding: 0px;padding:0;position:relative!important;border-bottom:1px solid var(--calcite-color-foreground-3)!important;.arcgis-app-ckeditor-mention-item{cursor:pointer!important;display:flex!important;background-color:var(--calcite-color-foreground-1)!important;flex-flow:column!important;padding:var(--calcite-space-sm) var(--calcite-space-md)!important;transition:background-color calc(.25s / 3) ease-in-out!important;&:hover,&:focus{background-color:var(--calcite-color-foreground-3)!important}.heading{overflow:hidden!important;pointer-events:none!important;text-overflow:ellipsis!important;color:var(--calcite-color-neutral-blk-180)!important;font-family:var(--calcite-font-family)!important}.summary{overflow:hidden!important;pointer-events:none!important;text-overflow:ellipsis!important;color:var(--calcite-color-neutral-blk-180)!important;font-size:var(--calcite-font-size-sm)!important;font-family:var(--calcite-code-family)!important}}&.ck-on .arcgis-app-ckeditor-mention-item{background-color:var(--calcite-color-foreground-3)!important;border-color:#00619b!important;z-index:1!important}}arcgis-ckeditor5-popover{.arcgis-app-ckeditor{box-shadow:0 0 #0000;padding:var(--calcite-space-lg) var(--calcite-space-lg) 0 var(--calcite-space-lg)}}}`;
|
|
35675
|
+
const la = /* @__PURE__ */ vB(xB), EB = bB`@layer{.arcgis-app-ckeditor{max-width:var(--arcgis-ckeditor5-max-width, 35vw);font-family:var(--calcite-font-family);background:var(--calcite-color-foreground-1);border-radius:3px;.ck-source-editing-area,.ck-editor__editable_inline{height:var(--arcgis-ckeditor5-initial-height, 30vh)}&.readOnly{.ck.ck-content.ck-editor__editable{border-radius:0}}&.resizable{.ck.ck-content.ck-editor__editable,.ck-source-editing-area textarea{resize:vertical}}&.generic-code-blocks{.ck.ck-editor__editable pre[data-language]:after,.ck-code-block-dropdown .ck-splitbutton__arrow{display:none}}.ck.ck-toolbar{background-color:#f3f3f3;border-color:var(--calcite-color-border-1)}.ck-editor__editable_inline{overflow-y:scroll;box-sizing:border-box}.ck-content{font-size:var(--calcite-font-size-0);h2{font-size:var(--calcite-font-size-3)}h3{font-size:var(--calcite-font-size-2)}h4{font-size:var(--calcite-font-size-1)}span.mention{background-color:inherit!important;color:inherit!important}ul,ol{padding-inline-start:2rem}}.ck-editor .ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--calcite-color-border-1)}.ck-source-editing-area{overflow:hidden;textarea{overflow:unset!important}}.ck-editor .ck-source-editing-button{.ck-button__label{display:none!important}}}.ck-body .ck.ck-balloon-panel{box-shadow:val(--calcite-shadow-1);border:1px solid var(--calcite-color-border-1);border-radius:3px;.ck.ck-reset.ck-list.ck-mentions{max-width:var(--arcgis-ckeditor5-mentions-max-width, 33vw)}.arcgis-app-ckeditor-mention-header{font-weight:500;line-height:1.25rem;padding-left:var(--calcite-space-lg);padding-top:var(--calcite-space-sm);padding-bottom:var(--calcite-space-sm);padding-right:var(--calcite-space-lg);width:100%;display:block;background-color:var(--calcite-color-background);font-family:var(--calcite-font-family)}}.ck.ck-balloon-panel.ck-tooltip{min-width:auto}.ck.ck-list__item .arcgis-app-ckeditor-mention-item-container.ck-button{--ck-list-button-padding: 0px;padding:0;position:relative!important;border-bottom:1px solid var(--calcite-color-foreground-3)!important;.arcgis-app-ckeditor-mention-item{cursor:pointer!important;display:flex!important;background-color:var(--calcite-color-foreground-1)!important;flex-flow:column!important;padding:var(--calcite-space-sm) var(--calcite-space-md)!important;transition:background-color calc(.25s / 3) ease-in-out!important;&:hover,&:focus{background-color:var(--calcite-color-foreground-3)!important}.heading{overflow:hidden!important;pointer-events:none!important;text-overflow:ellipsis!important;color:var(--calcite-color-neutral-blk-180)!important;font-family:var(--calcite-font-family)!important}.summary{overflow:hidden!important;pointer-events:none!important;text-overflow:ellipsis!important;color:var(--calcite-color-neutral-blk-180)!important;font-size:var(--calcite-font-size-sm)!important;font-family:var(--calcite-code-family)!important}}&.ck-on .arcgis-app-ckeditor-mention-item{background-color:var(--calcite-color-foreground-3)!important;border-color:#00619b!important;z-index:1!important}}arcgis-ckeditor5-popover{.arcgis-app-ckeditor{box-shadow:0 0 #0000;padding:var(--calcite-space-lg) var(--calcite-space-lg) 0 var(--calcite-space-lg)}}}`;
|
|
35676
35676
|
class DB extends mB {
|
|
35677
35677
|
constructor() {
|
|
35678
35678
|
super(), this.textAreaElement = fB(), this.actualLanguage = "en", this.sanitizer = new AB({
|
|
@@ -2,7 +2,12 @@
|
|
|
2
2
|
import type { PublicLitElement as LitElement } from "@arcgis/lumina";
|
|
3
3
|
import type { T9nMeta } from "@arcgis/lumina/controllers";
|
|
4
4
|
|
|
5
|
-
/**
|
|
5
|
+
/**
|
|
6
|
+
* @cssproperty [--arcgis-coordinate-system-picker-height] - Specifies the height of the component.
|
|
7
|
+
* @cssproperty [--arcgis-coordinate-system-picker-min-width] - Specifies the minimum width of the component.
|
|
8
|
+
* @cssproperty [--arcgis-coordinate-system-picker-max-width] - Specifies the maximum width of the component.
|
|
9
|
+
* @internal
|
|
10
|
+
*/
|
|
6
11
|
export abstract class ArcgisCoordinateSystemPicker extends LitElement {
|
|
7
12
|
/**
|
|
8
13
|
* Contains the translations for this component.
|