@tectra-ng/editor 0.4.4 → 0.4.5
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.
|
@@ -456,7 +456,7 @@ var TxEditorProseStyles = class TxEditorProseStyles {
|
|
|
456
456
|
ngImport: i0,
|
|
457
457
|
template: "",
|
|
458
458
|
isInline: true,
|
|
459
|
-
styles: ["@charset \"UTF-8\";.tx-editor-prose{--_gap: var(--tx-editor-content-block-gap);--_paragraph-gap: var(--tx-editor-content-paragraph-gap);color:var(--tx-editor-content-color);font-family:var(--tx-font-family);font-size:var(--tx-editor-content-font-size);line-height:var(--tx-editor-content-line-height);overflow-wrap:break-word}.tx-editor-prose>:first-child{margin-top:0}.tx-editor-prose>:last-child{margin-bottom:0}.tx-editor-prose p,.tx-editor-prose ul,.tx-editor-prose ol,.tx-editor-prose blockquote{margin:0 0 var(--_paragraph-gap)}.tx-editor-prose pre,.tx-editor-prose table,.tx-editor-prose figure,.tx-editor-prose img,.tx-editor-prose iframe{margin-block:var(--_gap)}.tx-editor-prose h1,.tx-editor-prose h2,.tx-editor-prose h3,.tx-editor-prose h4,.tx-editor-prose h5,.tx-editor-prose h6{margin:var(--tx-editor-content-heading-space-before) 0 var(--tx-editor-content-heading-space-after);font-weight:var(--tx-editor-content-heading-font-weight);letter-spacing:-.01em;line-height:var(--tx-editor-content-heading-line-height)}.tx-editor-prose h1{font-size:var(--tx-editor-content-heading-h1-size);letter-spacing:-.02em}.tx-editor-prose h2{font-size:var(--tx-editor-content-heading-h2-size)}.tx-editor-prose h3{font-size:var(--tx-editor-content-heading-h3-size)}.tx-editor-prose h4{font-size:var(--tx-editor-content-heading-h4-size)}.tx-editor-prose h5{font-size:var(--tx-editor-content-heading-h5-size)}.tx-editor-prose h6{color:var(--tx-editor-content-heading-h6-color);font-size:var(--tx-editor-content-heading-h6-size);letter-spacing:.02em;text-transform:uppercase}.tx-editor-prose a{color:var(--tx-editor-content-link-color);text-decoration:underline;text-decoration-color:var(--tx-editor-content-link-underline-color);text-decoration-thickness:1px;text-underline-offset:.2em;cursor:pointer;transition:text-decoration-color var(--tx-motion-duration) var(--tx-motion-easing)}.tx-editor-prose a:hover{text-decoration-color:var(--tx-editor-content-link-hover-underline-color)}.tx-editor-prose ul,.tx-editor-prose ol{padding-left:var(--tx-editor-content-list-indent)}.tx-editor-prose ul ul,.tx-editor-prose ul ol,.tx-editor-prose ol ul,.tx-editor-prose ol ol{margin:var(--tx-editor-content-list-item-gap) 0 0}.tx-editor-prose ul{list-style:disc}.tx-editor-prose ul ul{list-style:circle}.tx-editor-prose ul ul ul{list-style:square}.tx-editor-prose ol{list-style:decimal}.tx-editor-prose ol ol{list-style:lower-alpha}.tx-editor-prose ol ol ol{list-style:lower-roman}.tx-editor-prose li{margin:0}.tx-editor-prose li+li{margin-top:var(--tx-editor-content-list-item-gap)}.tx-editor-prose li>p{margin:0}.tx-editor-prose li::marker{color:var(--tx-editor-content-list-marker-color)}.tx-editor-prose ul[data-type=taskList]{padding-left:0;list-style:none}.tx-editor-prose ul[data-type=taskList] li{display:flex;align-items:flex-start;gap:var(--tx-editor-content-task-gap)}.tx-editor-prose ul[data-type=taskList] li>label{display:inline-flex;flex-shrink:0;align-items:center;height:calc(1em * var(--tx-editor-content-line-height));margin:0;-webkit-user-select:none;user-select:none}.tx-editor-prose ul[data-type=taskList] li>div{flex:1 1 auto;min-width:0}.tx-editor-prose ul[data-type=taskList] li[data-checked=true]>div{color:var(--tx-editor-content-task-done-color);text-decoration:line-through;text-decoration-color:var(--tx-editor-content-task-done-color)}.tx-editor-prose ul[data-type=taskList] input[type=checkbox]{display:grid;place-content:center;width:var(--tx-editor-content-task-size);height:var(--tx-editor-content-task-size);margin:0;border:1.5px solid var(--tx-editor-content-task-border-color);border-radius:var(--tx-editor-content-task-border-radius);background:transparent;cursor:pointer;appearance:none;transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),border-color var(--tx-motion-duration) var(--tx-motion-easing)}.tx-editor-prose ul[data-type=taskList] input[type=checkbox]:after{width:4px;height:8px;margin-top:-2px;border:solid var(--tx-editor-content-task-checked-color);border-width:0 2px 2px 0;content:\"\";opacity:0;transform:rotate(45deg) scale(.6);transition:opacity var(--tx-motion-duration) var(--tx-motion-easing),transform var(--tx-motion-duration) var(--tx-motion-easing)}.tx-editor-prose ul[data-type=taskList] input[type=checkbox]:checked{border-color:var(--tx-editor-content-task-checked-background);background:var(--tx-editor-content-task-checked-background)}.tx-editor-prose ul[data-type=taskList] input[type=checkbox]:checked:after{opacity:1;transform:rotate(45deg) scale(1)}.tx-editor-prose ul[data-type=taskList] input[type=checkbox]:disabled{cursor:default}.tx-editor-prose blockquote{padding:var(--tx-editor-content-quote-padding);border-left:var(--tx-editor-content-quote-border-width) solid var(--tx-editor-content-quote-border-color);color:var(--tx-editor-content-quote-color)}.tx-editor-prose blockquote>:last-child{margin-bottom:0}.tx-editor-prose code{padding:var(--tx-editor-content-code-padding);border-radius:var(--tx-editor-content-code-border-radius);background:var(--tx-editor-content-code-background);color:var(--tx-editor-content-code-color);font-family:var(--tx-editor-content-code-font-family);font-size:var(--tx-editor-content-code-font-size);-webkit-box-decoration-break:clone;box-decoration-break:clone}.tx-editor-prose pre{overflow-x:auto;padding:var(--tx-editor-content-code-block-padding);border:1px solid var(--tx-editor-content-code-block-border-color);border-radius:var(--tx-editor-content-code-block-border-radius);background:var(--tx-editor-content-code-block-background);font-family:var(--tx-editor-content-code-font-family);font-size:var(--tx-editor-content-code-block-font-size);line-height:var(--tx-editor-content-code-block-line-height);tab-size:2;white-space:pre}.tx-editor-prose pre code{padding:0;border-radius:0;background:none;font-size:inherit}.tx-editor-prose hr{height:0;margin:var(--tx-editor-content-rule-spacing) 0;border:0;border-top:1px solid var(--tx-editor-content-rule-color)}.tx-editor-prose img{display:block;max-width:100%;height:auto;border-radius:var(--tx-editor-content-image-border-radius)}.tx-editor-prose iframe{display:block;width:100%;max-width:640px;height:auto;border:0;border-radius:var(--tx-editor-content-video-border-radius);aspect-ratio:var(--tx-editor-content-video-aspect-ratio)}.tx-editor-prose [data-type=mention]{padding:var(--tx-editor-content-mention-padding);border-radius:var(--tx-editor-content-mention-border-radius);background:var(--tx-editor-content-mention-background);color:var(--tx-editor-content-mention-color);font-weight:var(--tx-editor-content-mention-font-weight);white-space:nowrap;-webkit-box-decoration-break:clone;box-decoration-break:clone}.tx-editor-prose [data-type=callout]{--_tone: var(--tx-editor-content-callout-info-color);position:relative;margin-block:var(--_gap);padding:var(--tx-editor-content-callout-padding-block) var(--tx-editor-content-callout-padding-inline-end) var(--tx-editor-content-callout-padding-block) var(--tx-editor-content-callout-padding-inline-start);border-radius:var(--tx-editor-content-callout-border-radius);background:color-mix(in srgb,var(--_tone) var(--tx-editor-content-callout-tint),transparent)}.tx-editor-prose [data-type=callout]:before{position:absolute;inset-block-start:calc(var(--tx-editor-content-callout-padding-block) + (var(--tx-editor-content-font-size) * var(--tx-editor-content-line-height) - var(--tx-editor-content-callout-marker-size)) / 2);inset-inline-start:var(--tx-editor-content-callout-marker-start);display:grid;place-items:center;width:var(--tx-editor-content-callout-marker-size);height:var(--tx-editor-content-callout-marker-size);border-radius:var(--tx-radius-full);background:var(--_tone);color:var(--tx-editor-content-callout-marker-color);content:\"i\";font-size:var(--tx-editor-content-callout-marker-font-size);font-weight:var(--tx-font-weight-bold);line-height:1}.tx-editor-prose [data-type=callout]>:last-child{margin-bottom:0}.tx-editor-prose [data-type=callout][data-tone=success]{--_tone: var(--tx-editor-content-callout-success-color)}.tx-editor-prose [data-type=callout][data-tone=success]:before{content:\"\\2713\"}.tx-editor-prose [data-type=callout][data-tone=warn]{--_tone: var(--tx-editor-content-callout-warn-color)}.tx-editor-prose [data-type=callout][data-tone=warn]:before{content:\"!\"}.tx-editor-prose [data-type=callout][data-tone=danger]{--_tone: var(--tx-editor-content-callout-danger-color)}.tx-editor-prose [data-type=callout][data-tone=danger]:before{content:\"!\"}.tx-editor-prose table{width:100%;border-collapse:collapse;table-layout:fixed}.tx-editor-prose th,.tx-editor-prose td{padding:var(--tx-editor-content-table-cell-padding);border:1px solid var(--tx-editor-content-table-border-color);text-align:start;vertical-align:top}.tx-editor-prose th>p,.tx-editor-prose td>p{margin:0}.tx-editor-prose th{background:var(--tx-editor-content-table-header-background);font-weight:var(--tx-font-weight-semibold)}.tx-editor-prose .ql-align-center{text-align:center}.tx-editor-prose .ql-align-right{text-align:right}.tx-editor-prose .ql-align-justify{text-align:justify}.tx-editor-prose .ql-size-small{font-size:.75em}.tx-editor-prose .ql-size-large{font-size:1.5em}.tx-editor-prose .ql-size-huge{font-size:2.5em}.tx-editor-prose .ql-font-serif{font-family:serif}.tx-editor-prose .ql-font-monospace{font-family:var(--tx-font-mono)}.tx-editor-prose .ql-direction-rtl{direction:rtl;text-align:inherit}.tx-editor-prose .ql-indent-1:not(li){padding-left:3em}.tx-editor-prose .ql-indent-2:not(li){padding-left:6em}.tx-editor-prose .ql-indent-3:not(li){padding-left:9em}.tx-editor-prose .ql-indent-4:not(li){padding-left:12em}.tx-editor-prose .ql-indent-5:not(li){padding-left:15em}.tx-editor-prose .ql-indent-6:not(li){padding-left:18em}.tx-editor-prose .ql-indent-7:not(li){padding-left:21em}.tx-editor-prose .ql-indent-8:not(li){padding-left:24em}.tx-editor-prose ol:has(>li[data-list]){padding-left:var(--tx-editor-content-list-indent);list-style:none;counter-reset:tx-ql-0}.tx-editor-prose ol:has(>li[data-list])>li[data-list]{position:relative;counter-increment:tx-ql-0}.tx-editor-prose ol:has(>li[data-list])>li[data-list]:before{position:absolute;right:calc(100% + .5em);color:var(--tx-editor-content-list-marker-color);white-space:nowrap}.tx-editor-prose ol:has(>li[data-list])>li[data-list][data-list=bullet]:before{content:\"\\2022\"}.tx-editor-prose ol:has(>li[data-list])>li[data-list][data-list=ordered]:before{content:counter(tx-ql-0) \".\"}.tx-editor-prose ol:has(>li[data-list])>li[data-list][data-list=checked]:before{content:\"\\2611\"}.tx-editor-prose ol:has(>li[data-list])>li[data-list][data-list=unchecked]:before{content:\"\\2610\"}.tx-editor-prose ol:has(>li[data-list])>li[data-list][data-list=checked]{color:var(--tx-editor-content-task-done-color);text-decoration:line-through}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-1{padding-left:1.5em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-2{padding-left:3em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-3{padding-left:4.5em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-4{padding-left:6em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-5{padding-left:7.5em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-6{padding-left:9em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-7{padding-left:10.5em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-8{padding-left:12em}.tx-editor-prose .ql-code-block-container{margin-block:var(--_gap);padding:var(--tx-editor-content-code-block-padding);border:1px solid var(--tx-editor-content-code-block-border-color);border-radius:var(--tx-editor-content-code-block-border-radius);background:var(--tx-editor-content-code-block-background);font-family:var(--tx-editor-content-code-font-family);font-size:var(--tx-editor-content-code-block-font-size);line-height:var(--tx-editor-content-code-block-line-height);white-space:pre}@media(prefers-reduced-motion:reduce){.tx-editor-prose a,.tx-editor-prose input[type=checkbox],.tx-editor-prose input[type=checkbox]:after{transition:none}}\n"],
|
|
459
|
+
styles: ["@charset \"UTF-8\";.tx-editor-prose{--_gap: var(--tx-editor-content-block-gap);--_paragraph-gap: var(--tx-editor-content-paragraph-gap);color:var(--tx-editor-content-color);font-family:var(--tx-font-family);font-size:var(--tx-editor-content-font-size);line-height:var(--tx-editor-content-line-height);overflow-wrap:break-word}.tx-editor-prose>:first-child{margin-top:0}.tx-editor-prose>:last-child{margin-bottom:0}.tx-editor-prose p,.tx-editor-prose ul,.tx-editor-prose ol,.tx-editor-prose blockquote{margin:0 0 var(--_paragraph-gap)}.tx-editor-prose pre,.tx-editor-prose table,.tx-editor-prose figure,.tx-editor-prose img,.tx-editor-prose iframe{margin-block:var(--_gap)}.tx-editor-prose h1,.tx-editor-prose h2,.tx-editor-prose h3,.tx-editor-prose h4,.tx-editor-prose h5,.tx-editor-prose h6{margin:var(--tx-editor-content-heading-space-before) 0 var(--tx-editor-content-heading-space-after);font-weight:var(--tx-editor-content-heading-font-weight);letter-spacing:-.01em;line-height:var(--tx-editor-content-heading-line-height)}.tx-editor-prose h1{font-size:var(--tx-editor-content-heading-h1-size);letter-spacing:-.02em}.tx-editor-prose h2{font-size:var(--tx-editor-content-heading-h2-size)}.tx-editor-prose h3{font-size:var(--tx-editor-content-heading-h3-size)}.tx-editor-prose h4{font-size:var(--tx-editor-content-heading-h4-size)}.tx-editor-prose h5{font-size:var(--tx-editor-content-heading-h5-size)}.tx-editor-prose h6{color:var(--tx-editor-content-heading-h6-color);font-size:var(--tx-editor-content-heading-h6-size);letter-spacing:.02em;text-transform:uppercase}.tx-editor-prose a{color:var(--tx-editor-content-link-color);text-decoration:underline;text-decoration-color:var(--tx-editor-content-link-underline-color);text-decoration-thickness:1px;text-underline-offset:.2em;cursor:pointer;transition:text-decoration-color var(--tx-motion-duration) var(--tx-motion-easing)}.tx-editor-prose a:hover{text-decoration-color:var(--tx-editor-content-link-hover-underline-color)}.tx-editor-prose ul,.tx-editor-prose ol{padding-left:var(--tx-editor-content-list-indent)}.tx-editor-prose ul ul,.tx-editor-prose ul ol,.tx-editor-prose ol ul,.tx-editor-prose ol ol{margin:var(--tx-editor-content-list-item-gap) 0 0}.tx-editor-prose ul{list-style:disc}.tx-editor-prose ul ul{list-style:circle}.tx-editor-prose ul ul ul{list-style:square}.tx-editor-prose ol{list-style:decimal}.tx-editor-prose ol ol{list-style:lower-alpha}.tx-editor-prose ol ol ol{list-style:lower-roman}.tx-editor-prose li{margin:0}.tx-editor-prose li+li{margin-top:var(--tx-editor-content-list-item-gap)}.tx-editor-prose li>p{margin:0}.tx-editor-prose li::marker{color:var(--tx-editor-content-list-marker-color)}.tx-editor-prose ul[data-type=taskList]{padding-left:0;list-style:none}.tx-editor-prose ul[data-type=taskList] li{display:flex;align-items:flex-start;gap:var(--tx-editor-content-task-gap)}.tx-editor-prose ul[data-type=taskList] li>label{display:inline-flex;flex-shrink:0;align-items:center;height:calc(1em * var(--tx-editor-content-line-height));margin:0;-webkit-user-select:none;user-select:none}.tx-editor-prose ul[data-type=taskList] li>div{flex:1 1 auto;min-width:0}.tx-editor-prose ul[data-type=taskList] li[data-checked=true]>div{color:var(--tx-editor-content-task-done-color);text-decoration:line-through;text-decoration-color:var(--tx-editor-content-task-done-color)}.tx-editor-prose ul[data-type=taskList] input[type=checkbox]{display:grid;place-content:center;width:var(--tx-editor-content-task-size);height:var(--tx-editor-content-task-size);margin:0;border:1.5px solid var(--tx-editor-content-task-border-color);border-radius:var(--tx-editor-content-task-border-radius);background:transparent;cursor:pointer;appearance:none;transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),border-color var(--tx-motion-duration) var(--tx-motion-easing)}.tx-editor-prose ul[data-type=taskList] input[type=checkbox]:after{width:var(--tx-editor-content-task-check-width);height:var(--tx-editor-content-task-check-height);margin-top:-2px;border:solid var(--tx-editor-content-task-checked-color);border-width:0 2px 2px 0;content:\"\";opacity:0;transform:rotate(45deg) scale(.6);transition:opacity var(--tx-motion-duration) var(--tx-motion-easing),transform var(--tx-motion-duration) var(--tx-motion-easing)}.tx-editor-prose ul[data-type=taskList] input[type=checkbox]:checked{border-color:var(--tx-editor-content-task-checked-background);background:var(--tx-editor-content-task-checked-background)}.tx-editor-prose ul[data-type=taskList] input[type=checkbox]:checked:after{opacity:1;transform:rotate(45deg) scale(1)}.tx-editor-prose ul[data-type=taskList] input[type=checkbox]:disabled{cursor:default}.tx-editor-prose blockquote{padding:var(--tx-editor-content-quote-padding);border-left:var(--tx-editor-content-quote-border-width) solid var(--tx-editor-content-quote-border-color);color:var(--tx-editor-content-quote-color)}.tx-editor-prose blockquote>:last-child{margin-bottom:0}.tx-editor-prose code{padding:var(--tx-editor-content-code-padding);border-radius:var(--tx-editor-content-code-border-radius);background:var(--tx-editor-content-code-background);color:var(--tx-editor-content-code-color);font-family:var(--tx-editor-content-code-font-family);font-size:var(--tx-editor-content-code-font-size);-webkit-box-decoration-break:clone;box-decoration-break:clone}.tx-editor-prose pre{overflow-x:auto;padding:var(--tx-editor-content-code-block-padding);border:1px solid var(--tx-editor-content-code-block-border-color);border-radius:var(--tx-editor-content-code-block-border-radius);background:var(--tx-editor-content-code-block-background);font-family:var(--tx-editor-content-code-font-family);font-size:var(--tx-editor-content-code-block-font-size);line-height:var(--tx-editor-content-code-block-line-height);tab-size:2;white-space:pre}.tx-editor-prose pre code{padding:0;border-radius:0;background:none;font-size:inherit}.tx-editor-prose hr{height:0;margin:var(--tx-editor-content-rule-spacing) 0;border:0;border-top:1px solid var(--tx-editor-content-rule-color)}.tx-editor-prose img{display:block;max-width:100%;height:auto;border-radius:var(--tx-editor-content-image-border-radius)}.tx-editor-prose iframe{display:block;width:100%;max-width:var(--tx-editor-content-video-max-width);height:auto;border:0;border-radius:var(--tx-editor-content-video-border-radius);aspect-ratio:var(--tx-editor-content-video-aspect-ratio)}.tx-editor-prose [data-type=mention]{padding:var(--tx-editor-content-mention-padding);border-radius:var(--tx-editor-content-mention-border-radius);background:var(--tx-editor-content-mention-background);color:var(--tx-editor-content-mention-color);font-weight:var(--tx-editor-content-mention-font-weight);white-space:nowrap;-webkit-box-decoration-break:clone;box-decoration-break:clone}.tx-editor-prose [data-type=callout]{--_tone: var(--tx-editor-content-callout-info-color);position:relative;margin-block:var(--_gap);padding:var(--tx-editor-content-callout-padding-block) var(--tx-editor-content-callout-padding-inline-end) var(--tx-editor-content-callout-padding-block) var(--tx-editor-content-callout-padding-inline-start);border-radius:var(--tx-editor-content-callout-border-radius);background:color-mix(in srgb,var(--_tone) var(--tx-editor-content-callout-tint),transparent)}.tx-editor-prose [data-type=callout]:before{position:absolute;inset-block-start:calc(var(--tx-editor-content-callout-padding-block) + (var(--tx-editor-content-font-size) * var(--tx-editor-content-line-height) - var(--tx-editor-content-callout-marker-size)) / 2);inset-inline-start:var(--tx-editor-content-callout-marker-start);display:grid;place-items:center;width:var(--tx-editor-content-callout-marker-size);height:var(--tx-editor-content-callout-marker-size);border-radius:var(--tx-radius-full);background:var(--_tone);color:var(--tx-editor-content-callout-marker-color);content:\"i\";font-size:var(--tx-editor-content-callout-marker-font-size);font-weight:var(--tx-font-weight-bold);line-height:1}.tx-editor-prose [data-type=callout]>:last-child{margin-bottom:0}.tx-editor-prose [data-type=callout][data-tone=success]{--_tone: var(--tx-editor-content-callout-success-color)}.tx-editor-prose [data-type=callout][data-tone=success]:before{content:\"\\2713\"}.tx-editor-prose [data-type=callout][data-tone=warn]{--_tone: var(--tx-editor-content-callout-warn-color)}.tx-editor-prose [data-type=callout][data-tone=warn]:before{content:\"!\"}.tx-editor-prose [data-type=callout][data-tone=danger]{--_tone: var(--tx-editor-content-callout-danger-color)}.tx-editor-prose [data-type=callout][data-tone=danger]:before{content:\"!\"}.tx-editor-prose table{width:100%;border-collapse:collapse;table-layout:fixed}.tx-editor-prose th,.tx-editor-prose td{padding:var(--tx-editor-content-table-cell-padding);border:1px solid var(--tx-editor-content-table-border-color);text-align:start;vertical-align:top}.tx-editor-prose th>p,.tx-editor-prose td>p{margin:0}.tx-editor-prose th{background:var(--tx-editor-content-table-header-background);font-weight:var(--tx-font-weight-semibold)}.tx-editor-prose .ql-align-center{text-align:center}.tx-editor-prose .ql-align-right{text-align:right}.tx-editor-prose .ql-align-justify{text-align:justify}.tx-editor-prose .ql-size-small{font-size:.75em}.tx-editor-prose .ql-size-large{font-size:1.5em}.tx-editor-prose .ql-size-huge{font-size:2.5em}.tx-editor-prose .ql-font-serif{font-family:serif}.tx-editor-prose .ql-font-monospace{font-family:var(--tx-font-mono)}.tx-editor-prose .ql-direction-rtl{direction:rtl;text-align:inherit}.tx-editor-prose .ql-indent-1:not(li){padding-left:3em}.tx-editor-prose .ql-indent-2:not(li){padding-left:6em}.tx-editor-prose .ql-indent-3:not(li){padding-left:9em}.tx-editor-prose .ql-indent-4:not(li){padding-left:12em}.tx-editor-prose .ql-indent-5:not(li){padding-left:15em}.tx-editor-prose .ql-indent-6:not(li){padding-left:18em}.tx-editor-prose .ql-indent-7:not(li){padding-left:21em}.tx-editor-prose .ql-indent-8:not(li){padding-left:24em}.tx-editor-prose ol:has(>li[data-list]){padding-left:var(--tx-editor-content-list-indent);list-style:none;counter-reset:tx-ql-0}.tx-editor-prose ol:has(>li[data-list])>li[data-list]{position:relative;counter-increment:tx-ql-0}.tx-editor-prose ol:has(>li[data-list])>li[data-list]:before{position:absolute;right:calc(100% + .5em);color:var(--tx-editor-content-list-marker-color);white-space:nowrap}.tx-editor-prose ol:has(>li[data-list])>li[data-list][data-list=bullet]:before{content:\"\\2022\"}.tx-editor-prose ol:has(>li[data-list])>li[data-list][data-list=ordered]:before{content:counter(tx-ql-0) \".\"}.tx-editor-prose ol:has(>li[data-list])>li[data-list][data-list=checked]:before{content:\"\\2611\"}.tx-editor-prose ol:has(>li[data-list])>li[data-list][data-list=unchecked]:before{content:\"\\2610\"}.tx-editor-prose ol:has(>li[data-list])>li[data-list][data-list=checked]{color:var(--tx-editor-content-task-done-color);text-decoration:line-through}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-1{padding-left:1.5em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-2{padding-left:3em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-3{padding-left:4.5em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-4{padding-left:6em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-5{padding-left:7.5em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-6{padding-left:9em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-7{padding-left:10.5em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-8{padding-left:12em}.tx-editor-prose .ql-code-block-container{margin-block:var(--_gap);padding:var(--tx-editor-content-code-block-padding);border:1px solid var(--tx-editor-content-code-block-border-color);border-radius:var(--tx-editor-content-code-block-border-radius);background:var(--tx-editor-content-code-block-background);font-family:var(--tx-editor-content-code-font-family);font-size:var(--tx-editor-content-code-block-font-size);line-height:var(--tx-editor-content-code-block-line-height);white-space:pre}@media(prefers-reduced-motion:reduce){.tx-editor-prose a,.tx-editor-prose input[type=checkbox],.tx-editor-prose input[type=checkbox]:after{transition:none}}\n"],
|
|
460
460
|
viewProviders: [provideTxIconDefaults(CONTENT_ICON_DEFAULTS)],
|
|
461
461
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
462
462
|
encapsulation: i0.ViewEncapsulation.None
|
|
@@ -475,7 +475,7 @@ i0.ɵɵngDeclareClassMetadata({
|
|
|
475
475
|
encapsulation: ViewEncapsulation.None,
|
|
476
476
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
477
477
|
viewProviders: [provideTxIconDefaults(CONTENT_ICON_DEFAULTS)],
|
|
478
|
-
styles: ["@charset \"UTF-8\";.tx-editor-prose{--_gap: var(--tx-editor-content-block-gap);--_paragraph-gap: var(--tx-editor-content-paragraph-gap);color:var(--tx-editor-content-color);font-family:var(--tx-font-family);font-size:var(--tx-editor-content-font-size);line-height:var(--tx-editor-content-line-height);overflow-wrap:break-word}.tx-editor-prose>:first-child{margin-top:0}.tx-editor-prose>:last-child{margin-bottom:0}.tx-editor-prose p,.tx-editor-prose ul,.tx-editor-prose ol,.tx-editor-prose blockquote{margin:0 0 var(--_paragraph-gap)}.tx-editor-prose pre,.tx-editor-prose table,.tx-editor-prose figure,.tx-editor-prose img,.tx-editor-prose iframe{margin-block:var(--_gap)}.tx-editor-prose h1,.tx-editor-prose h2,.tx-editor-prose h3,.tx-editor-prose h4,.tx-editor-prose h5,.tx-editor-prose h6{margin:var(--tx-editor-content-heading-space-before) 0 var(--tx-editor-content-heading-space-after);font-weight:var(--tx-editor-content-heading-font-weight);letter-spacing:-.01em;line-height:var(--tx-editor-content-heading-line-height)}.tx-editor-prose h1{font-size:var(--tx-editor-content-heading-h1-size);letter-spacing:-.02em}.tx-editor-prose h2{font-size:var(--tx-editor-content-heading-h2-size)}.tx-editor-prose h3{font-size:var(--tx-editor-content-heading-h3-size)}.tx-editor-prose h4{font-size:var(--tx-editor-content-heading-h4-size)}.tx-editor-prose h5{font-size:var(--tx-editor-content-heading-h5-size)}.tx-editor-prose h6{color:var(--tx-editor-content-heading-h6-color);font-size:var(--tx-editor-content-heading-h6-size);letter-spacing:.02em;text-transform:uppercase}.tx-editor-prose a{color:var(--tx-editor-content-link-color);text-decoration:underline;text-decoration-color:var(--tx-editor-content-link-underline-color);text-decoration-thickness:1px;text-underline-offset:.2em;cursor:pointer;transition:text-decoration-color var(--tx-motion-duration) var(--tx-motion-easing)}.tx-editor-prose a:hover{text-decoration-color:var(--tx-editor-content-link-hover-underline-color)}.tx-editor-prose ul,.tx-editor-prose ol{padding-left:var(--tx-editor-content-list-indent)}.tx-editor-prose ul ul,.tx-editor-prose ul ol,.tx-editor-prose ol ul,.tx-editor-prose ol ol{margin:var(--tx-editor-content-list-item-gap) 0 0}.tx-editor-prose ul{list-style:disc}.tx-editor-prose ul ul{list-style:circle}.tx-editor-prose ul ul ul{list-style:square}.tx-editor-prose ol{list-style:decimal}.tx-editor-prose ol ol{list-style:lower-alpha}.tx-editor-prose ol ol ol{list-style:lower-roman}.tx-editor-prose li{margin:0}.tx-editor-prose li+li{margin-top:var(--tx-editor-content-list-item-gap)}.tx-editor-prose li>p{margin:0}.tx-editor-prose li::marker{color:var(--tx-editor-content-list-marker-color)}.tx-editor-prose ul[data-type=taskList]{padding-left:0;list-style:none}.tx-editor-prose ul[data-type=taskList] li{display:flex;align-items:flex-start;gap:var(--tx-editor-content-task-gap)}.tx-editor-prose ul[data-type=taskList] li>label{display:inline-flex;flex-shrink:0;align-items:center;height:calc(1em * var(--tx-editor-content-line-height));margin:0;-webkit-user-select:none;user-select:none}.tx-editor-prose ul[data-type=taskList] li>div{flex:1 1 auto;min-width:0}.tx-editor-prose ul[data-type=taskList] li[data-checked=true]>div{color:var(--tx-editor-content-task-done-color);text-decoration:line-through;text-decoration-color:var(--tx-editor-content-task-done-color)}.tx-editor-prose ul[data-type=taskList] input[type=checkbox]{display:grid;place-content:center;width:var(--tx-editor-content-task-size);height:var(--tx-editor-content-task-size);margin:0;border:1.5px solid var(--tx-editor-content-task-border-color);border-radius:var(--tx-editor-content-task-border-radius);background:transparent;cursor:pointer;appearance:none;transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),border-color var(--tx-motion-duration) var(--tx-motion-easing)}.tx-editor-prose ul[data-type=taskList] input[type=checkbox]:after{width:4px;height:8px;margin-top:-2px;border:solid var(--tx-editor-content-task-checked-color);border-width:0 2px 2px 0;content:\"\";opacity:0;transform:rotate(45deg) scale(.6);transition:opacity var(--tx-motion-duration) var(--tx-motion-easing),transform var(--tx-motion-duration) var(--tx-motion-easing)}.tx-editor-prose ul[data-type=taskList] input[type=checkbox]:checked{border-color:var(--tx-editor-content-task-checked-background);background:var(--tx-editor-content-task-checked-background)}.tx-editor-prose ul[data-type=taskList] input[type=checkbox]:checked:after{opacity:1;transform:rotate(45deg) scale(1)}.tx-editor-prose ul[data-type=taskList] input[type=checkbox]:disabled{cursor:default}.tx-editor-prose blockquote{padding:var(--tx-editor-content-quote-padding);border-left:var(--tx-editor-content-quote-border-width) solid var(--tx-editor-content-quote-border-color);color:var(--tx-editor-content-quote-color)}.tx-editor-prose blockquote>:last-child{margin-bottom:0}.tx-editor-prose code{padding:var(--tx-editor-content-code-padding);border-radius:var(--tx-editor-content-code-border-radius);background:var(--tx-editor-content-code-background);color:var(--tx-editor-content-code-color);font-family:var(--tx-editor-content-code-font-family);font-size:var(--tx-editor-content-code-font-size);-webkit-box-decoration-break:clone;box-decoration-break:clone}.tx-editor-prose pre{overflow-x:auto;padding:var(--tx-editor-content-code-block-padding);border:1px solid var(--tx-editor-content-code-block-border-color);border-radius:var(--tx-editor-content-code-block-border-radius);background:var(--tx-editor-content-code-block-background);font-family:var(--tx-editor-content-code-font-family);font-size:var(--tx-editor-content-code-block-font-size);line-height:var(--tx-editor-content-code-block-line-height);tab-size:2;white-space:pre}.tx-editor-prose pre code{padding:0;border-radius:0;background:none;font-size:inherit}.tx-editor-prose hr{height:0;margin:var(--tx-editor-content-rule-spacing) 0;border:0;border-top:1px solid var(--tx-editor-content-rule-color)}.tx-editor-prose img{display:block;max-width:100%;height:auto;border-radius:var(--tx-editor-content-image-border-radius)}.tx-editor-prose iframe{display:block;width:100%;max-width:640px;height:auto;border:0;border-radius:var(--tx-editor-content-video-border-radius);aspect-ratio:var(--tx-editor-content-video-aspect-ratio)}.tx-editor-prose [data-type=mention]{padding:var(--tx-editor-content-mention-padding);border-radius:var(--tx-editor-content-mention-border-radius);background:var(--tx-editor-content-mention-background);color:var(--tx-editor-content-mention-color);font-weight:var(--tx-editor-content-mention-font-weight);white-space:nowrap;-webkit-box-decoration-break:clone;box-decoration-break:clone}.tx-editor-prose [data-type=callout]{--_tone: var(--tx-editor-content-callout-info-color);position:relative;margin-block:var(--_gap);padding:var(--tx-editor-content-callout-padding-block) var(--tx-editor-content-callout-padding-inline-end) var(--tx-editor-content-callout-padding-block) var(--tx-editor-content-callout-padding-inline-start);border-radius:var(--tx-editor-content-callout-border-radius);background:color-mix(in srgb,var(--_tone) var(--tx-editor-content-callout-tint),transparent)}.tx-editor-prose [data-type=callout]:before{position:absolute;inset-block-start:calc(var(--tx-editor-content-callout-padding-block) + (var(--tx-editor-content-font-size) * var(--tx-editor-content-line-height) - var(--tx-editor-content-callout-marker-size)) / 2);inset-inline-start:var(--tx-editor-content-callout-marker-start);display:grid;place-items:center;width:var(--tx-editor-content-callout-marker-size);height:var(--tx-editor-content-callout-marker-size);border-radius:var(--tx-radius-full);background:var(--_tone);color:var(--tx-editor-content-callout-marker-color);content:\"i\";font-size:var(--tx-editor-content-callout-marker-font-size);font-weight:var(--tx-font-weight-bold);line-height:1}.tx-editor-prose [data-type=callout]>:last-child{margin-bottom:0}.tx-editor-prose [data-type=callout][data-tone=success]{--_tone: var(--tx-editor-content-callout-success-color)}.tx-editor-prose [data-type=callout][data-tone=success]:before{content:\"\\2713\"}.tx-editor-prose [data-type=callout][data-tone=warn]{--_tone: var(--tx-editor-content-callout-warn-color)}.tx-editor-prose [data-type=callout][data-tone=warn]:before{content:\"!\"}.tx-editor-prose [data-type=callout][data-tone=danger]{--_tone: var(--tx-editor-content-callout-danger-color)}.tx-editor-prose [data-type=callout][data-tone=danger]:before{content:\"!\"}.tx-editor-prose table{width:100%;border-collapse:collapse;table-layout:fixed}.tx-editor-prose th,.tx-editor-prose td{padding:var(--tx-editor-content-table-cell-padding);border:1px solid var(--tx-editor-content-table-border-color);text-align:start;vertical-align:top}.tx-editor-prose th>p,.tx-editor-prose td>p{margin:0}.tx-editor-prose th{background:var(--tx-editor-content-table-header-background);font-weight:var(--tx-font-weight-semibold)}.tx-editor-prose .ql-align-center{text-align:center}.tx-editor-prose .ql-align-right{text-align:right}.tx-editor-prose .ql-align-justify{text-align:justify}.tx-editor-prose .ql-size-small{font-size:.75em}.tx-editor-prose .ql-size-large{font-size:1.5em}.tx-editor-prose .ql-size-huge{font-size:2.5em}.tx-editor-prose .ql-font-serif{font-family:serif}.tx-editor-prose .ql-font-monospace{font-family:var(--tx-font-mono)}.tx-editor-prose .ql-direction-rtl{direction:rtl;text-align:inherit}.tx-editor-prose .ql-indent-1:not(li){padding-left:3em}.tx-editor-prose .ql-indent-2:not(li){padding-left:6em}.tx-editor-prose .ql-indent-3:not(li){padding-left:9em}.tx-editor-prose .ql-indent-4:not(li){padding-left:12em}.tx-editor-prose .ql-indent-5:not(li){padding-left:15em}.tx-editor-prose .ql-indent-6:not(li){padding-left:18em}.tx-editor-prose .ql-indent-7:not(li){padding-left:21em}.tx-editor-prose .ql-indent-8:not(li){padding-left:24em}.tx-editor-prose ol:has(>li[data-list]){padding-left:var(--tx-editor-content-list-indent);list-style:none;counter-reset:tx-ql-0}.tx-editor-prose ol:has(>li[data-list])>li[data-list]{position:relative;counter-increment:tx-ql-0}.tx-editor-prose ol:has(>li[data-list])>li[data-list]:before{position:absolute;right:calc(100% + .5em);color:var(--tx-editor-content-list-marker-color);white-space:nowrap}.tx-editor-prose ol:has(>li[data-list])>li[data-list][data-list=bullet]:before{content:\"\\2022\"}.tx-editor-prose ol:has(>li[data-list])>li[data-list][data-list=ordered]:before{content:counter(tx-ql-0) \".\"}.tx-editor-prose ol:has(>li[data-list])>li[data-list][data-list=checked]:before{content:\"\\2611\"}.tx-editor-prose ol:has(>li[data-list])>li[data-list][data-list=unchecked]:before{content:\"\\2610\"}.tx-editor-prose ol:has(>li[data-list])>li[data-list][data-list=checked]{color:var(--tx-editor-content-task-done-color);text-decoration:line-through}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-1{padding-left:1.5em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-2{padding-left:3em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-3{padding-left:4.5em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-4{padding-left:6em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-5{padding-left:7.5em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-6{padding-left:9em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-7{padding-left:10.5em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-8{padding-left:12em}.tx-editor-prose .ql-code-block-container{margin-block:var(--_gap);padding:var(--tx-editor-content-code-block-padding);border:1px solid var(--tx-editor-content-code-block-border-color);border-radius:var(--tx-editor-content-code-block-border-radius);background:var(--tx-editor-content-code-block-background);font-family:var(--tx-editor-content-code-font-family);font-size:var(--tx-editor-content-code-block-font-size);line-height:var(--tx-editor-content-code-block-line-height);white-space:pre}@media(prefers-reduced-motion:reduce){.tx-editor-prose a,.tx-editor-prose input[type=checkbox],.tx-editor-prose input[type=checkbox]:after{transition:none}}\n"]
|
|
478
|
+
styles: ["@charset \"UTF-8\";.tx-editor-prose{--_gap: var(--tx-editor-content-block-gap);--_paragraph-gap: var(--tx-editor-content-paragraph-gap);color:var(--tx-editor-content-color);font-family:var(--tx-font-family);font-size:var(--tx-editor-content-font-size);line-height:var(--tx-editor-content-line-height);overflow-wrap:break-word}.tx-editor-prose>:first-child{margin-top:0}.tx-editor-prose>:last-child{margin-bottom:0}.tx-editor-prose p,.tx-editor-prose ul,.tx-editor-prose ol,.tx-editor-prose blockquote{margin:0 0 var(--_paragraph-gap)}.tx-editor-prose pre,.tx-editor-prose table,.tx-editor-prose figure,.tx-editor-prose img,.tx-editor-prose iframe{margin-block:var(--_gap)}.tx-editor-prose h1,.tx-editor-prose h2,.tx-editor-prose h3,.tx-editor-prose h4,.tx-editor-prose h5,.tx-editor-prose h6{margin:var(--tx-editor-content-heading-space-before) 0 var(--tx-editor-content-heading-space-after);font-weight:var(--tx-editor-content-heading-font-weight);letter-spacing:-.01em;line-height:var(--tx-editor-content-heading-line-height)}.tx-editor-prose h1{font-size:var(--tx-editor-content-heading-h1-size);letter-spacing:-.02em}.tx-editor-prose h2{font-size:var(--tx-editor-content-heading-h2-size)}.tx-editor-prose h3{font-size:var(--tx-editor-content-heading-h3-size)}.tx-editor-prose h4{font-size:var(--tx-editor-content-heading-h4-size)}.tx-editor-prose h5{font-size:var(--tx-editor-content-heading-h5-size)}.tx-editor-prose h6{color:var(--tx-editor-content-heading-h6-color);font-size:var(--tx-editor-content-heading-h6-size);letter-spacing:.02em;text-transform:uppercase}.tx-editor-prose a{color:var(--tx-editor-content-link-color);text-decoration:underline;text-decoration-color:var(--tx-editor-content-link-underline-color);text-decoration-thickness:1px;text-underline-offset:.2em;cursor:pointer;transition:text-decoration-color var(--tx-motion-duration) var(--tx-motion-easing)}.tx-editor-prose a:hover{text-decoration-color:var(--tx-editor-content-link-hover-underline-color)}.tx-editor-prose ul,.tx-editor-prose ol{padding-left:var(--tx-editor-content-list-indent)}.tx-editor-prose ul ul,.tx-editor-prose ul ol,.tx-editor-prose ol ul,.tx-editor-prose ol ol{margin:var(--tx-editor-content-list-item-gap) 0 0}.tx-editor-prose ul{list-style:disc}.tx-editor-prose ul ul{list-style:circle}.tx-editor-prose ul ul ul{list-style:square}.tx-editor-prose ol{list-style:decimal}.tx-editor-prose ol ol{list-style:lower-alpha}.tx-editor-prose ol ol ol{list-style:lower-roman}.tx-editor-prose li{margin:0}.tx-editor-prose li+li{margin-top:var(--tx-editor-content-list-item-gap)}.tx-editor-prose li>p{margin:0}.tx-editor-prose li::marker{color:var(--tx-editor-content-list-marker-color)}.tx-editor-prose ul[data-type=taskList]{padding-left:0;list-style:none}.tx-editor-prose ul[data-type=taskList] li{display:flex;align-items:flex-start;gap:var(--tx-editor-content-task-gap)}.tx-editor-prose ul[data-type=taskList] li>label{display:inline-flex;flex-shrink:0;align-items:center;height:calc(1em * var(--tx-editor-content-line-height));margin:0;-webkit-user-select:none;user-select:none}.tx-editor-prose ul[data-type=taskList] li>div{flex:1 1 auto;min-width:0}.tx-editor-prose ul[data-type=taskList] li[data-checked=true]>div{color:var(--tx-editor-content-task-done-color);text-decoration:line-through;text-decoration-color:var(--tx-editor-content-task-done-color)}.tx-editor-prose ul[data-type=taskList] input[type=checkbox]{display:grid;place-content:center;width:var(--tx-editor-content-task-size);height:var(--tx-editor-content-task-size);margin:0;border:1.5px solid var(--tx-editor-content-task-border-color);border-radius:var(--tx-editor-content-task-border-radius);background:transparent;cursor:pointer;appearance:none;transition:background-color var(--tx-motion-duration) var(--tx-motion-easing),border-color var(--tx-motion-duration) var(--tx-motion-easing)}.tx-editor-prose ul[data-type=taskList] input[type=checkbox]:after{width:var(--tx-editor-content-task-check-width);height:var(--tx-editor-content-task-check-height);margin-top:-2px;border:solid var(--tx-editor-content-task-checked-color);border-width:0 2px 2px 0;content:\"\";opacity:0;transform:rotate(45deg) scale(.6);transition:opacity var(--tx-motion-duration) var(--tx-motion-easing),transform var(--tx-motion-duration) var(--tx-motion-easing)}.tx-editor-prose ul[data-type=taskList] input[type=checkbox]:checked{border-color:var(--tx-editor-content-task-checked-background);background:var(--tx-editor-content-task-checked-background)}.tx-editor-prose ul[data-type=taskList] input[type=checkbox]:checked:after{opacity:1;transform:rotate(45deg) scale(1)}.tx-editor-prose ul[data-type=taskList] input[type=checkbox]:disabled{cursor:default}.tx-editor-prose blockquote{padding:var(--tx-editor-content-quote-padding);border-left:var(--tx-editor-content-quote-border-width) solid var(--tx-editor-content-quote-border-color);color:var(--tx-editor-content-quote-color)}.tx-editor-prose blockquote>:last-child{margin-bottom:0}.tx-editor-prose code{padding:var(--tx-editor-content-code-padding);border-radius:var(--tx-editor-content-code-border-radius);background:var(--tx-editor-content-code-background);color:var(--tx-editor-content-code-color);font-family:var(--tx-editor-content-code-font-family);font-size:var(--tx-editor-content-code-font-size);-webkit-box-decoration-break:clone;box-decoration-break:clone}.tx-editor-prose pre{overflow-x:auto;padding:var(--tx-editor-content-code-block-padding);border:1px solid var(--tx-editor-content-code-block-border-color);border-radius:var(--tx-editor-content-code-block-border-radius);background:var(--tx-editor-content-code-block-background);font-family:var(--tx-editor-content-code-font-family);font-size:var(--tx-editor-content-code-block-font-size);line-height:var(--tx-editor-content-code-block-line-height);tab-size:2;white-space:pre}.tx-editor-prose pre code{padding:0;border-radius:0;background:none;font-size:inherit}.tx-editor-prose hr{height:0;margin:var(--tx-editor-content-rule-spacing) 0;border:0;border-top:1px solid var(--tx-editor-content-rule-color)}.tx-editor-prose img{display:block;max-width:100%;height:auto;border-radius:var(--tx-editor-content-image-border-radius)}.tx-editor-prose iframe{display:block;width:100%;max-width:var(--tx-editor-content-video-max-width);height:auto;border:0;border-radius:var(--tx-editor-content-video-border-radius);aspect-ratio:var(--tx-editor-content-video-aspect-ratio)}.tx-editor-prose [data-type=mention]{padding:var(--tx-editor-content-mention-padding);border-radius:var(--tx-editor-content-mention-border-radius);background:var(--tx-editor-content-mention-background);color:var(--tx-editor-content-mention-color);font-weight:var(--tx-editor-content-mention-font-weight);white-space:nowrap;-webkit-box-decoration-break:clone;box-decoration-break:clone}.tx-editor-prose [data-type=callout]{--_tone: var(--tx-editor-content-callout-info-color);position:relative;margin-block:var(--_gap);padding:var(--tx-editor-content-callout-padding-block) var(--tx-editor-content-callout-padding-inline-end) var(--tx-editor-content-callout-padding-block) var(--tx-editor-content-callout-padding-inline-start);border-radius:var(--tx-editor-content-callout-border-radius);background:color-mix(in srgb,var(--_tone) var(--tx-editor-content-callout-tint),transparent)}.tx-editor-prose [data-type=callout]:before{position:absolute;inset-block-start:calc(var(--tx-editor-content-callout-padding-block) + (var(--tx-editor-content-font-size) * var(--tx-editor-content-line-height) - var(--tx-editor-content-callout-marker-size)) / 2);inset-inline-start:var(--tx-editor-content-callout-marker-start);display:grid;place-items:center;width:var(--tx-editor-content-callout-marker-size);height:var(--tx-editor-content-callout-marker-size);border-radius:var(--tx-radius-full);background:var(--_tone);color:var(--tx-editor-content-callout-marker-color);content:\"i\";font-size:var(--tx-editor-content-callout-marker-font-size);font-weight:var(--tx-font-weight-bold);line-height:1}.tx-editor-prose [data-type=callout]>:last-child{margin-bottom:0}.tx-editor-prose [data-type=callout][data-tone=success]{--_tone: var(--tx-editor-content-callout-success-color)}.tx-editor-prose [data-type=callout][data-tone=success]:before{content:\"\\2713\"}.tx-editor-prose [data-type=callout][data-tone=warn]{--_tone: var(--tx-editor-content-callout-warn-color)}.tx-editor-prose [data-type=callout][data-tone=warn]:before{content:\"!\"}.tx-editor-prose [data-type=callout][data-tone=danger]{--_tone: var(--tx-editor-content-callout-danger-color)}.tx-editor-prose [data-type=callout][data-tone=danger]:before{content:\"!\"}.tx-editor-prose table{width:100%;border-collapse:collapse;table-layout:fixed}.tx-editor-prose th,.tx-editor-prose td{padding:var(--tx-editor-content-table-cell-padding);border:1px solid var(--tx-editor-content-table-border-color);text-align:start;vertical-align:top}.tx-editor-prose th>p,.tx-editor-prose td>p{margin:0}.tx-editor-prose th{background:var(--tx-editor-content-table-header-background);font-weight:var(--tx-font-weight-semibold)}.tx-editor-prose .ql-align-center{text-align:center}.tx-editor-prose .ql-align-right{text-align:right}.tx-editor-prose .ql-align-justify{text-align:justify}.tx-editor-prose .ql-size-small{font-size:.75em}.tx-editor-prose .ql-size-large{font-size:1.5em}.tx-editor-prose .ql-size-huge{font-size:2.5em}.tx-editor-prose .ql-font-serif{font-family:serif}.tx-editor-prose .ql-font-monospace{font-family:var(--tx-font-mono)}.tx-editor-prose .ql-direction-rtl{direction:rtl;text-align:inherit}.tx-editor-prose .ql-indent-1:not(li){padding-left:3em}.tx-editor-prose .ql-indent-2:not(li){padding-left:6em}.tx-editor-prose .ql-indent-3:not(li){padding-left:9em}.tx-editor-prose .ql-indent-4:not(li){padding-left:12em}.tx-editor-prose .ql-indent-5:not(li){padding-left:15em}.tx-editor-prose .ql-indent-6:not(li){padding-left:18em}.tx-editor-prose .ql-indent-7:not(li){padding-left:21em}.tx-editor-prose .ql-indent-8:not(li){padding-left:24em}.tx-editor-prose ol:has(>li[data-list]){padding-left:var(--tx-editor-content-list-indent);list-style:none;counter-reset:tx-ql-0}.tx-editor-prose ol:has(>li[data-list])>li[data-list]{position:relative;counter-increment:tx-ql-0}.tx-editor-prose ol:has(>li[data-list])>li[data-list]:before{position:absolute;right:calc(100% + .5em);color:var(--tx-editor-content-list-marker-color);white-space:nowrap}.tx-editor-prose ol:has(>li[data-list])>li[data-list][data-list=bullet]:before{content:\"\\2022\"}.tx-editor-prose ol:has(>li[data-list])>li[data-list][data-list=ordered]:before{content:counter(tx-ql-0) \".\"}.tx-editor-prose ol:has(>li[data-list])>li[data-list][data-list=checked]:before{content:\"\\2611\"}.tx-editor-prose ol:has(>li[data-list])>li[data-list][data-list=unchecked]:before{content:\"\\2610\"}.tx-editor-prose ol:has(>li[data-list])>li[data-list][data-list=checked]{color:var(--tx-editor-content-task-done-color);text-decoration:line-through}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-1{padding-left:1.5em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-2{padding-left:3em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-3{padding-left:4.5em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-4{padding-left:6em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-5{padding-left:7.5em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-6{padding-left:9em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-7{padding-left:10.5em}.tx-editor-prose ol:has(>li[data-list])>li.ql-indent-8{padding-left:12em}.tx-editor-prose .ql-code-block-container{margin-block:var(--_gap);padding:var(--tx-editor-content-code-block-padding);border:1px solid var(--tx-editor-content-code-block-border-color);border-radius:var(--tx-editor-content-code-block-border-radius);background:var(--tx-editor-content-code-block-background);font-family:var(--tx-editor-content-code-font-family);font-size:var(--tx-editor-content-code-block-font-size);line-height:var(--tx-editor-content-code-block-line-height);white-space:pre}@media(prefers-reduced-motion:reduce){.tx-editor-prose a,.tx-editor-prose input[type=checkbox],.tx-editor-prose input[type=checkbox]:after{transition:none}}\n"]
|
|
479
479
|
}]
|
|
480
480
|
}]
|
|
481
481
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tectra-ng-editor-content.mjs","names":[],"sources":["../../../../packages/editor/content/src/parse-html.ts","../../../../packages/editor/content/src/editor-html.ts","../../../../packages/editor/content/src/editor-sanitizer.ts","../../../../packages/editor/content/src/content.icons.ts","../../../../packages/editor/content/src/content.theme.ts","../../../../packages/editor/content/src/editor-prose-styles.component.ts","../../../../packages/editor/content/src/editor-content.component.ts"],"sourcesContent":["export function parseHtmlBody(html: string, document?: Document | null): HTMLElement | null {\n const Parser = globalThis.DOMParser;\n if (Parser) {\n return new Parser().parseFromString(`<body>${html}</body>`, 'text/html').body;\n }\n const inert = document?.implementation.createHTMLDocument('');\n if (!inert) {\n return null;\n }\n inert.body.innerHTML = html;\n return inert.body;\n}\n\nexport function appendNodes(parent: Node, nodes: Iterable<Node>): void {\n for (const node of Array.from(nodes)) {\n parent.appendChild(node);\n }\n}\n\nexport function replaceNode(node: Node, replacement: Node): void {\n node.parentNode?.replaceChild(replacement, node);\n}\n\nexport function unwrapNode(node: Node): void {\n const parent = node.parentNode as Node;\n for (const child of Array.from(node.childNodes)) {\n parent.insertBefore(child, node);\n }\n parent.removeChild(node);\n}\n","import { TxEditorFormat } from './editor-content.types';\nimport { appendNodes, parseHtmlBody, replaceNode } from './parse-html';\n\nconst QUILL_SIZES: Record<string, string> = { small: '0.75em', large: '1.5em', huge: '2.5em' };\nconst QUILL_FONTS: Record<string, string> = { serif: 'serif', monospace: 'monospace' };\nconst INDENT_STEP_EM = 3;\nconst ALIGNMENTS = ['left', 'center', 'right', 'justify'];\nconst QUILL_MARKERS = /data-list=|class=\"[^\"]*\\bql-|ql-code-block|ql-video/;\n\ntype TxListKind = 'bullet' | 'ordered' | 'checked' | 'unchecked';\n\nfunction classValue(element: Element, prefix: string): string | null {\n const match = Array.from(element.classList).find((name) => name.startsWith(prefix));\n if (!match) {\n return null;\n }\n element.classList.remove(match);\n return match.slice(prefix.length);\n}\n\nfunction cleanClassAttribute(element: Element): void {\n if (element.getAttribute('class') === '') {\n element.removeAttribute('class');\n }\n}\n\nfunction styleOf(element: Element): CSSStyleDeclaration | null {\n return (element as HTMLElement).style ?? null;\n}\n\nfunction indentLevel(element: Element): number {\n const value = Number(element.getAttribute('data-indent') ?? NaN);\n if (!Number.isNaN(value)) {\n return value;\n }\n const margin = styleOf(element)?.marginLeft ?? '';\n return margin.endsWith('em') ? Math.round(parseFloat(margin) / INDENT_STEP_EM) : 0;\n}\n\nfunction quillListKind(item: Element, list: Element): TxListKind {\n const data = item.getAttribute('data-list');\n if (data === 'bullet' || data === 'ordered' || data === 'checked' || data === 'unchecked') {\n return data;\n }\n return list.tagName === 'UL' ? 'bullet' : 'ordered';\n}\n\nfunction createList(document: Document, kind: TxListKind): HTMLElement {\n const list = document.createElement(kind === 'ordered' ? 'ol' : 'ul');\n if (kind === 'checked' || kind === 'unchecked') {\n list.setAttribute('data-type', 'taskList');\n }\n return list;\n}\n\nfunction sameListKind(a: TxListKind, b: TxListKind): boolean {\n const task = (kind: TxListKind) => kind === 'checked' || kind === 'unchecked';\n return a === b || (task(a) && task(b));\n}\n\nfunction convertQuillList(list: Element): void {\n const document = list.ownerDocument;\n const items = Array.from(list.children).filter((child) => child.tagName === 'LI');\n const fragment = document.createDocumentFragment();\n const stack: { level: number; kind: TxListKind; element: HTMLElement }[] = [];\n for (const item of items) {\n const kind = quillListKind(item, list);\n const level = Number(classValue(item, 'ql-indent-') ?? 0);\n while (stack.length && stack[stack.length - 1].level > level) {\n stack.pop();\n }\n const top = stack[stack.length - 1];\n if (top && top.level === level && !sameListKind(top.kind, kind)) {\n stack.pop();\n }\n if (!stack.length || stack[stack.length - 1].level < level) {\n const element = createList(document, kind);\n const parent = stack[stack.length - 1];\n if (parent) {\n const lastItem = parent.element.lastElementChild ?? parent.element.appendChild(document.createElement('li'));\n lastItem.appendChild(element);\n } else {\n fragment.appendChild(element);\n }\n stack.push({ level, kind, element });\n }\n const current = stack[stack.length - 1];\n const next = document.createElement('li');\n const paragraph = document.createElement('p');\n const align = classValue(item, 'ql-align-');\n if (align && ALIGNMENTS.includes(align)) {\n paragraph.style.textAlign = align;\n }\n appendNodes(paragraph, item.childNodes);\n if (kind === 'checked' || kind === 'unchecked') {\n next.setAttribute('data-type', 'taskItem');\n next.setAttribute('data-checked', String(kind === 'checked'));\n }\n next.appendChild(paragraph);\n current.element.appendChild(next);\n }\n replaceNode(list, fragment);\n}\n\nfunction convertQuillCode(container: Element): void {\n const document = container.ownerDocument;\n const lines = Array.from(container.querySelectorAll('.ql-code-block'));\n const pre = document.createElement('pre');\n const code = document.createElement('code');\n const language = lines[0]?.getAttribute('data-language');\n if (language && language !== 'plain') {\n code.className = `language-${language}`;\n }\n code.textContent = lines.map((line) => line.textContent ?? '').join('\\n');\n pre.appendChild(code);\n replaceNode(container, pre);\n}\n\n/** Tells whether the HTML carries Quill 2 markup. */\nexport function isQuillHtml(html: string | null | undefined): boolean {\n return !!html && QUILL_MARKERS.test(html);\n}\n\n/** Converts Quill 2 markup to the clean HTML of the editor; other HTML passes through. */\nexport function fromQuillHtml(html: string | null | undefined, document?: Document | null): string {\n if (!html) {\n return '';\n }\n if (!isQuillHtml(html)) {\n return html;\n }\n const body = parseHtmlBody(html, document);\n if (!body) {\n return html;\n }\n body.querySelectorAll('.ql-cursor, .ql-ui').forEach((node) => node.remove());\n body.querySelectorAll('.ql-code-block-container').forEach(convertQuillCode);\n body.querySelectorAll('pre.ql-syntax').forEach((pre) => {\n const code = body.ownerDocument.createElement('code');\n code.textContent = pre.textContent ?? '';\n pre.textContent = '';\n pre.appendChild(code);\n pre.classList.remove('ql-syntax');\n cleanClassAttribute(pre);\n });\n Array.from(body.querySelectorAll('ol, ul'))\n .filter((list) => Array.from(list.children).some((item) => item.hasAttribute('data-list') || /\\bql-indent-/.test(item.className)))\n .filter((list) => !list.parentElement?.closest('ol, ul'))\n .forEach(convertQuillList);\n body.querySelectorAll('[class*=\"ql-\"]').forEach((element) => {\n const style = styleOf(element);\n const align = classValue(element, 'ql-align-');\n if (align && ALIGNMENTS.includes(align) && style) {\n style.textAlign = align;\n }\n const indent = Number(classValue(element, 'ql-indent-') ?? 0);\n if (indent > 0 && style) {\n element.setAttribute('data-indent', String(indent));\n style.marginLeft = `${indent * INDENT_STEP_EM}em`;\n }\n const size = classValue(element, 'ql-size-');\n if (size && QUILL_SIZES[size] && style) {\n style.fontSize = QUILL_SIZES[size];\n }\n const font = classValue(element, 'ql-font-');\n if (font && QUILL_FONTS[font] && style) {\n style.fontFamily = QUILL_FONTS[font];\n }\n if (classValue(element, 'ql-direction-') === 'rtl') {\n element.setAttribute('dir', 'rtl');\n }\n if (element.tagName === 'IFRAME' && element.classList.contains('ql-video')) {\n element.classList.remove('ql-video');\n element.setAttribute('data-type', 'video');\n }\n cleanClassAttribute(element);\n });\n return body.innerHTML;\n}\n\nfunction flattenList(list: Element, level: number, out: HTMLElement): void {\n const document = list.ownerDocument;\n const task = list.getAttribute('data-type') === 'taskList';\n for (const item of Array.from(list.children).filter((child) => child.tagName === 'LI')) {\n const kind: TxListKind = task ? (item.getAttribute('data-checked') === 'true' ? 'checked' : 'unchecked') : list.tagName === 'OL' ? 'ordered' : 'bullet';\n const next = document.createElement('li');\n next.setAttribute('data-list', kind);\n if (level > 0) {\n next.classList.add(`ql-indent-${level}`);\n }\n const nested: Element[] = [];\n const blocks = task ? Array.from(item.querySelector(':scope > div')?.children ?? item.children) : Array.from(item.children);\n const inline: Node[] = [];\n for (const child of blocks) {\n if (child.tagName === 'UL' || child.tagName === 'OL') {\n nested.push(child);\n } else if (child.tagName === 'LABEL') {\n continue;\n } else {\n const align = styleOf(child)?.textAlign;\n if (align && ALIGNMENTS.includes(align) && align !== 'left') {\n next.classList.add(`ql-align-${align}`);\n }\n if (inline.length) {\n inline.push(document.createElement('br'));\n }\n inline.push(...Array.from(child.childNodes));\n }\n }\n appendNodes(next, inline);\n out.appendChild(next);\n nested.forEach((child) => flattenList(child, level + 1, out));\n }\n}\n\n/** Converts the clean HTML of the editor to Quill 2 markup. */\nexport function toQuillHtml(html: string | null | undefined, document?: Document | null): string {\n if (!html) {\n return '';\n }\n const body = parseHtmlBody(html, document);\n if (!body) {\n return html;\n }\n const owner = body.ownerDocument;\n const topLists = Array.from(body.querySelectorAll('ol, ul')).filter((list) => !list.parentElement?.closest('ol, ul'));\n let previous: HTMLElement | null = null;\n for (const list of topLists) {\n const target: HTMLElement = previous && previous.nextSibling === list ? previous : owner.createElement('ol');\n flattenList(list, 0, target);\n if (target === previous) {\n list.remove();\n } else {\n replaceNode(list, target);\n }\n previous = target;\n }\n body.querySelectorAll('pre').forEach((pre) => {\n const code = pre.querySelector('code');\n const language = Array.from(code?.classList ?? []).find((name) => name.startsWith('language-'))?.slice(9) ?? 'plain';\n const container = owner.createElement('div');\n container.className = 'ql-code-block-container';\n container.setAttribute('spellcheck', 'false');\n for (const line of (code?.textContent ?? pre.textContent ?? '').split('\\n')) {\n const block = owner.createElement('div');\n block.className = 'ql-code-block';\n block.setAttribute('data-language', language);\n block.textContent = line;\n if (!line) {\n block.appendChild(owner.createElement('br'));\n }\n container.appendChild(block);\n }\n replaceNode(pre, container);\n });\n body.querySelectorAll('[style], [data-indent], [dir], iframe[data-type=\"video\"]').forEach((element) => {\n const style = styleOf(element);\n if (style?.textAlign && ALIGNMENTS.includes(style.textAlign)) {\n if (style.textAlign !== 'left') {\n element.classList.add(`ql-align-${style.textAlign}`);\n }\n style.removeProperty('text-align');\n }\n const indent = indentLevel(element);\n if (indent > 0) {\n element.classList.add(`ql-indent-${indent}`);\n }\n element.removeAttribute('data-indent');\n style?.removeProperty('margin-left');\n const size = Object.entries(QUILL_SIZES).find(([, value]) => value === style?.fontSize)?.[0];\n if (size) {\n element.classList.add(`ql-size-${size}`);\n style?.removeProperty('font-size');\n }\n const font = Object.entries(QUILL_FONTS).find(([, value]) => value === style?.fontFamily)?.[0];\n if (font) {\n element.classList.add(`ql-font-${font}`);\n style?.removeProperty('font-family');\n }\n if (element.getAttribute('dir') === 'rtl') {\n element.classList.add('ql-direction-rtl');\n element.removeAttribute('dir');\n }\n if (element.tagName === 'IFRAME') {\n element.removeAttribute('data-type');\n element.classList.add('ql-video');\n element.setAttribute('frameborder', '0');\n element.setAttribute('allowfullscreen', 'true');\n }\n if (element.getAttribute('style') === '') {\n element.removeAttribute('style');\n }\n });\n body.querySelectorAll('p:empty, h1:empty, h2:empty, h3:empty, h4:empty, h5:empty, h6:empty').forEach((block) => block.appendChild(owner.createElement('br')));\n return body.innerHTML;\n}\n\n/** Brings saved text, from the editor or from Quill, to the clean HTML the editor reads. */\nexport function toEditorHtml(html: string | null | undefined, document?: Document | null): string {\n return fromQuillHtml(html, document);\n}\n\n/** Writes the editor HTML in the chosen format: unchanged for `html`, converted for `quill`. */\nexport function formatEditorHtml(html: string, format: TxEditorFormat, document?: Document | null): string {\n return format === 'quill' ? toQuillHtml(html, document) : html;\n}\n","import { parseHtmlBody, unwrapNode } from './parse-html';\n\nconst ALLOWED_TAGS = new Set([\n 'p', 'br', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'strong', 'b', 'em', 'i', 'u', 's', 'strike', 'del', 'code', 'pre',\n 'blockquote', 'ul', 'ol', 'li', 'a', 'img', 'span', 'sub', 'sup', 'hr', 'mark', 'div', 'label', 'input',\n 'table', 'thead', 'tbody', 'tfoot', 'tr', 'th', 'td', 'colgroup', 'col', 'iframe',\n]);\n\nconst DROP_WITH_CONTENT = new Set(['script', 'style', 'template', 'noscript', 'object', 'embed', 'svg', 'math', 'textarea', 'select', 'button', 'form']);\n\nconst ALLOWED_ATTRIBUTES = new Set([\n 'class', 'style', 'href', 'target', 'rel', 'src', 'alt', 'title', 'width', 'height', 'colspan', 'rowspan', 'start', 'dir',\n 'data-list', 'data-type', 'data-checked', 'data-indent', 'data-language', 'data-id', 'data-label', 'data-mention-suggestion-char',\n 'colwidth', 'data-colwidth', 'data-tone', 'type', 'checked', 'disabled', 'frameborder', 'allowfullscreen', 'spellcheck',\n]);\n\nconst ALLOWED_STYLES = new Set(['color', 'background-color', 'text-align', 'font-size', 'font-family', 'margin-left', 'padding-left', 'width', 'min-width']);\n\nconst SAFE_STYLE_VALUE = /^[#(),.%\\w\\s'\"-]+$/;\nconst SAFE_CLASS = /^(ql-[\\w-]+|tx-[\\w-]+|language-[\\w-]+)$/;\nconst SAFE_LINK = /^(https?:|mailto:|tel:|sms:|#|\\/(?!\\/))/i;\nconst SAFE_IMAGE = /^(https?:|data:image\\/(png|jpe?g|gif|webp|avif|bmp|svg\\+xml);base64,|blob:|\\/(?!\\/))/i;\nconst SAFE_FRAME = /^https:\\/\\//i;\n\nfunction cleanStyle(value: string): string {\n return value\n .split(';')\n .map((declaration) => declaration.split(':'))\n .filter(([property, ...rest]) => property && rest.length)\n .map(([property, ...rest]) => [property.trim().toLowerCase(), rest.join(':').trim()])\n .filter(([property, propertyValue]) => ALLOWED_STYLES.has(property) && SAFE_STYLE_VALUE.test(propertyValue) && !/url\\s*\\(|expression\\s*\\(/i.test(propertyValue))\n .map(([property, propertyValue]) => `${property}: ${propertyValue}`)\n .join('; ');\n}\n\nfunction cleanAttribute(element: Element, name: string, value: string): string | null {\n const tag = element.tagName.toLowerCase();\n switch (name) {\n case 'style': {\n const style = cleanStyle(value);\n return style || null;\n }\n case 'class': {\n const classes = value.split(/\\s+/).filter((item) => SAFE_CLASS.test(item));\n return classes.length ? classes.join(' ') : null;\n }\n case 'href':\n return tag === 'a' && SAFE_LINK.test(value.trim()) ? value.trim() : null;\n case 'src':\n if (tag === 'img') {\n return SAFE_IMAGE.test(value.trim()) ? value.trim() : null;\n }\n return tag === 'iframe' && SAFE_FRAME.test(value.trim()) ? value.trim() : null;\n case 'target':\n return value === '_blank' ? value : null;\n case 'type':\n return tag === 'input' && value === 'checkbox' ? value : null;\n default:\n return value;\n }\n}\n\nfunction cleanNode(node: Node): void {\n for (const child of Array.from(node.childNodes)) {\n if (child.nodeType === 3) {\n continue;\n }\n if (child.nodeType !== 1) {\n child.remove();\n continue;\n }\n const element = child as Element;\n const tag = element.tagName.toLowerCase();\n if (DROP_WITH_CONTENT.has(tag)) {\n element.remove();\n continue;\n }\n if (!ALLOWED_TAGS.has(tag)) {\n cleanNode(element);\n unwrapNode(element);\n continue;\n }\n for (const attribute of Array.from(element.attributes)) {\n const name = attribute.name.toLowerCase();\n const cleaned = ALLOWED_ATTRIBUTES.has(name) ? cleanAttribute(element, name, attribute.value) : null;\n if (cleaned === null) {\n element.removeAttribute(attribute.name);\n } else if (cleaned !== attribute.value) {\n element.setAttribute(attribute.name, cleaned);\n }\n }\n if (tag === 'a' && element.getAttribute('target') === '_blank') {\n element.setAttribute('rel', 'noopener noreferrer nofollow');\n }\n if (tag === 'input') {\n element.setAttribute('disabled', '');\n }\n if (tag === 'iframe') {\n if (!element.getAttribute('src')) {\n element.remove();\n continue;\n }\n element.setAttribute('sandbox', 'allow-scripts allow-same-origin allow-presentation allow-popups');\n element.setAttribute('loading', 'lazy');\n }\n cleanNode(element);\n }\n}\n\n/**\n * Cleans HTML with an allowlist: keeps colours, alignment and indents, drops scripts, handlers and unsafe links.\n */\nexport function sanitizeEditorHtml(html: string | null | undefined, document?: Document | null): string {\n if (!html) {\n return '';\n }\n const body = parseHtmlBody(html, document);\n if (!body) {\n return '';\n }\n cleanNode(body);\n return body.innerHTML;\n}\n","import { TxIconSet, txIconCode, txIconTable, txIconVideo } from '@tectra-ng/icons';\n\nexport const CONTENT_ICON_DEFAULTS: TxIconSet = {\n code: txIconCode,\n table: txIconTable,\n video: txIconVideo,\n};\n","import { editorContentTokens } from '@tectra-ng/themes';\n\nexport const CONTENT_THEME = {\n editorContent: editorContentTokens,\n};\n","import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { CONTENT_ICON_DEFAULTS } from './content.icons';\nimport { injectTokens } from '@tectra-ng/core/config';\nimport { CONTENT_THEME } from './content.theme';\n\n/**\n * Loads the typography of editor text (`tx-editor-prose`); add it once where saved text is shown without `tx-editor-content`.\n */\n@Component({\n selector: 'tx-editor-prose-styles',\n template: '',\n styleUrl: './editor-prose.styles.scss',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n viewProviders: [provideTxIconDefaults(CONTENT_ICON_DEFAULTS)],\n})\nexport class TxEditorProseStyles {\n private readonly contentTheme = injectTokens(CONTENT_THEME);\n}\n","import { ChangeDetectionStrategy, Component, DOCUMENT, ElementRef, afterRenderEffect, booleanAttribute, computed, inject, input, output, signal, viewChild } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { TxStyleLoader } from '@tectra-ng/core/styles';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraEditorContentTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxDialog } from '@tectra-ng/ui/dialog';\nimport { TxEditorContentPart, TxEditorImageClickEvent } from './editor-content.types';\nimport { fromQuillHtml } from './editor-html';\nimport { TxEditorProseStyles } from './editor-prose-styles.component';\nimport { sanitizeEditorHtml } from './editor-sanitizer';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { CONTENT_ICON_DEFAULTS } from './content.icons';\nimport { CONTENT_THEME } from './content.theme';\n\n@Component({\n selector: 'tx-editor-content',\n imports: [TxDialog],\n template: `\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- clicks and keys come from the images inside, which get a tab stop -->\n <div\n #body\n class=\"tx-editor-content__body\"\n [class.tx-editor-prose]=\"!isUnstyled()\"\n [class]=\"passThrough().body?.class\"\n [style]=\"passThrough().body?.style\"\n [innerHTML]=\"safeHtml()\"\n (click)=\"onClick($event)\"\n (keydown)=\"onKeydown($event)\"\n ></div>\n @if (previewImages()) {\n <tx-dialog\n size=\"large\"\n [header]=\"preview()?.alt || translations().editorImagePreview\"\n [visible]=\"previewOpen()\"\n (visibleChange)=\"previewOpen.set($event)\"\n >\n @if (preview(); as image) {\n <img class=\"tx-editor-content__preview\" [src]=\"image.src\" [alt]=\"image.alt\" />\n }\n </tx-dialog>\n }\n `,\n styleUrl: './editor-content.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-editor-content',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-editor-content--zoom]': 'previewImages()',\n },\n viewProviders: [provideTxIconDefaults(CONTENT_ICON_DEFAULTS)],\n})\nexport class TxEditorContent {\n private readonly contentTheme = injectTokens(CONTENT_THEME);\n\n private sanitizer = inject(DomSanitizer);\n private document = inject(DOCUMENT);\n\n readonly html = input<string | null | undefined>(null);\n readonly previewImages = input(true, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraEditorContentTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxEditorContentPart, TxEditorContent> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly imageClick = output<TxEditorImageClickEvent>();\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('editorContent', this, this.pt, this.ptOptions);\n private readonly body = viewChild<ElementRef<HTMLElement>>('body');\n protected readonly preview = signal<{ src: string; alt: string } | null>(null);\n protected readonly previewOpen = signal(false);\n protected readonly safeHtml = computed(() => this.sanitizer.bypassSecurityTrustHtml(sanitizeEditorHtml(fromQuillHtml(this.html(), this.document), this.document)));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-editor-content'), ...this.passThrough().root?.style }));\n\n constructor() {\n inject(TxStyleLoader).load(TxEditorProseStyles);\n afterRenderEffect(() => {\n this.safeHtml();\n const preview = this.previewImages();\n this.body()\n ?.nativeElement.querySelectorAll('img')\n .forEach((image) => {\n if (preview) {\n image.setAttribute('tabindex', '0');\n image.setAttribute('role', 'button');\n } else {\n image.removeAttribute('tabindex');\n image.removeAttribute('role');\n }\n });\n });\n }\n\n protected onClick(event: MouseEvent): void {\n const target = event.target as HTMLElement | null;\n if (target instanceof HTMLImageElement) {\n this.open(target, event);\n }\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const target = event.target as HTMLElement | null;\n if (target instanceof HTMLImageElement && (event.key === 'Enter' || event.key === ' ')) {\n event.preventDefault();\n this.open(target, event);\n }\n }\n\n private open(target: HTMLImageElement, event: Event): void {\n const image = { src: target.currentSrc || target.src, alt: target.alt };\n this.imageClick.emit({ originalEvent: event as MouseEvent | KeyboardEvent, ...image });\n if (this.previewImages()) {\n this.preview.set(image);\n this.previewOpen.set(true);\n }\n }\n}\n"],"mappings":";;;;;;;;;;AAAA,SAAgB,cAAc,MAAc,UAA0B;CACpE,MA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,CAAA;EAAA,CAAA;EAAA,eAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,IAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,WAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,UAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA;IAAA,UAAA;IAAA,OAAA;IAAA,UAAA;GAAA,CAAA;EAAA,CAAA;EAAA,YAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,YAAA;EAAA,CAAA;EAAA,MAAA,CAAA;GAAA,MAAA,GAAA;GAAA,MAAA,CAAA,QAAM,EAAA,UAAA,KAAA,CAAA;EAAA,CAAA;CAAA;AAAA,CAAA"}
|
|
1
|
+
{"version":3,"file":"tectra-ng-editor-content.mjs","names":[],"sources":["../../../../packages/editor/content/src/parse-html.ts","../../../../packages/editor/content/src/editor-html.ts","../../../../packages/editor/content/src/editor-sanitizer.ts","../../../../packages/editor/content/src/content.icons.ts","../../../../packages/editor/content/src/content.theme.ts","../../../../packages/editor/content/src/editor-prose-styles.component.ts","../../../../packages/editor/content/src/editor-content.component.ts"],"sourcesContent":["export function parseHtmlBody(html: string, document?: Document | null): HTMLElement | null {\n const Parser = globalThis.DOMParser;\n if (Parser) {\n return new Parser().parseFromString(`<body>${html}</body>`, 'text/html').body;\n }\n const inert = document?.implementation.createHTMLDocument('');\n if (!inert) {\n return null;\n }\n inert.body.innerHTML = html;\n return inert.body;\n}\n\nexport function appendNodes(parent: Node, nodes: Iterable<Node>): void {\n for (const node of Array.from(nodes)) {\n parent.appendChild(node);\n }\n}\n\nexport function replaceNode(node: Node, replacement: Node): void {\n node.parentNode?.replaceChild(replacement, node);\n}\n\nexport function unwrapNode(node: Node): void {\n const parent = node.parentNode as Node;\n for (const child of Array.from(node.childNodes)) {\n parent.insertBefore(child, node);\n }\n parent.removeChild(node);\n}\n","import { TxEditorFormat } from './editor-content.types';\nimport { appendNodes, parseHtmlBody, replaceNode } from './parse-html';\n\nconst QUILL_SIZES: Record<string, string> = { small: '0.75em', large: '1.5em', huge: '2.5em' };\nconst QUILL_FONTS: Record<string, string> = { serif: 'serif', monospace: 'monospace' };\nconst INDENT_STEP_EM = 3;\nconst ALIGNMENTS = ['left', 'center', 'right', 'justify'];\nconst QUILL_MARKERS = /data-list=|class=\"[^\"]*\\bql-|ql-code-block|ql-video/;\n\ntype TxListKind = 'bullet' | 'ordered' | 'checked' | 'unchecked';\n\nfunction classValue(element: Element, prefix: string): string | null {\n const match = Array.from(element.classList).find((name) => name.startsWith(prefix));\n if (!match) {\n return null;\n }\n element.classList.remove(match);\n return match.slice(prefix.length);\n}\n\nfunction cleanClassAttribute(element: Element): void {\n if (element.getAttribute('class') === '') {\n element.removeAttribute('class');\n }\n}\n\nfunction styleOf(element: Element): CSSStyleDeclaration | null {\n return (element as HTMLElement).style ?? null;\n}\n\nfunction indentLevel(element: Element): number {\n const value = Number(element.getAttribute('data-indent') ?? NaN);\n if (!Number.isNaN(value)) {\n return value;\n }\n const margin = styleOf(element)?.marginLeft ?? '';\n return margin.endsWith('em') ? Math.round(parseFloat(margin) / INDENT_STEP_EM) : 0;\n}\n\nfunction quillListKind(item: Element, list: Element): TxListKind {\n const data = item.getAttribute('data-list');\n if (data === 'bullet' || data === 'ordered' || data === 'checked' || data === 'unchecked') {\n return data;\n }\n return list.tagName === 'UL' ? 'bullet' : 'ordered';\n}\n\nfunction createList(document: Document, kind: TxListKind): HTMLElement {\n const list = document.createElement(kind === 'ordered' ? 'ol' : 'ul');\n if (kind === 'checked' || kind === 'unchecked') {\n list.setAttribute('data-type', 'taskList');\n }\n return list;\n}\n\nfunction sameListKind(a: TxListKind, b: TxListKind): boolean {\n const task = (kind: TxListKind) => kind === 'checked' || kind === 'unchecked';\n return a === b || (task(a) && task(b));\n}\n\nfunction convertQuillList(list: Element): void {\n const document = list.ownerDocument;\n const items = Array.from(list.children).filter((child) => child.tagName === 'LI');\n const fragment = document.createDocumentFragment();\n const stack: { level: number; kind: TxListKind; element: HTMLElement }[] = [];\n for (const item of items) {\n const kind = quillListKind(item, list);\n const level = Number(classValue(item, 'ql-indent-') ?? 0);\n while (stack.length && stack[stack.length - 1].level > level) {\n stack.pop();\n }\n const top = stack[stack.length - 1];\n if (top && top.level === level && !sameListKind(top.kind, kind)) {\n stack.pop();\n }\n if (!stack.length || stack[stack.length - 1].level < level) {\n const element = createList(document, kind);\n const parent = stack[stack.length - 1];\n if (parent) {\n const lastItem = parent.element.lastElementChild ?? parent.element.appendChild(document.createElement('li'));\n lastItem.appendChild(element);\n } else {\n fragment.appendChild(element);\n }\n stack.push({ level, kind, element });\n }\n const current = stack[stack.length - 1];\n const next = document.createElement('li');\n const paragraph = document.createElement('p');\n const align = classValue(item, 'ql-align-');\n if (align && ALIGNMENTS.includes(align)) {\n paragraph.style.textAlign = align;\n }\n appendNodes(paragraph, item.childNodes);\n if (kind === 'checked' || kind === 'unchecked') {\n next.setAttribute('data-type', 'taskItem');\n next.setAttribute('data-checked', String(kind === 'checked'));\n }\n next.appendChild(paragraph);\n current.element.appendChild(next);\n }\n replaceNode(list, fragment);\n}\n\nfunction convertQuillCode(container: Element): void {\n const document = container.ownerDocument;\n const lines = Array.from(container.querySelectorAll('.ql-code-block'));\n const pre = document.createElement('pre');\n const code = document.createElement('code');\n const language = lines[0]?.getAttribute('data-language');\n if (language && language !== 'plain') {\n code.className = `language-${language}`;\n }\n code.textContent = lines.map((line) => line.textContent ?? '').join('\\n');\n pre.appendChild(code);\n replaceNode(container, pre);\n}\n\n/** Tells whether the HTML carries Quill 2 markup. */\nexport function isQuillHtml(html: string | null | undefined): boolean {\n return !!html && QUILL_MARKERS.test(html);\n}\n\n/** Converts Quill 2 markup to the clean HTML of the editor; other HTML passes through. */\nexport function fromQuillHtml(html: string | null | undefined, document?: Document | null): string {\n if (!html) {\n return '';\n }\n if (!isQuillHtml(html)) {\n return html;\n }\n const body = parseHtmlBody(html, document);\n if (!body) {\n return html;\n }\n body.querySelectorAll('.ql-cursor, .ql-ui').forEach((node) => node.remove());\n body.querySelectorAll('.ql-code-block-container').forEach(convertQuillCode);\n body.querySelectorAll('pre.ql-syntax').forEach((pre) => {\n const code = body.ownerDocument.createElement('code');\n code.textContent = pre.textContent ?? '';\n pre.textContent = '';\n pre.appendChild(code);\n pre.classList.remove('ql-syntax');\n cleanClassAttribute(pre);\n });\n Array.from(body.querySelectorAll('ol, ul'))\n .filter((list) => Array.from(list.children).some((item) => item.hasAttribute('data-list') || /\\bql-indent-/.test(item.className)))\n .filter((list) => !list.parentElement?.closest('ol, ul'))\n .forEach(convertQuillList);\n body.querySelectorAll('[class*=\"ql-\"]').forEach((element) => {\n const style = styleOf(element);\n const align = classValue(element, 'ql-align-');\n if (align && ALIGNMENTS.includes(align) && style) {\n style.textAlign = align;\n }\n const indent = Number(classValue(element, 'ql-indent-') ?? 0);\n if (indent > 0 && style) {\n element.setAttribute('data-indent', String(indent));\n style.marginLeft = `${indent * INDENT_STEP_EM}em`;\n }\n const size = classValue(element, 'ql-size-');\n if (size && QUILL_SIZES[size] && style) {\n style.fontSize = QUILL_SIZES[size];\n }\n const font = classValue(element, 'ql-font-');\n if (font && QUILL_FONTS[font] && style) {\n style.fontFamily = QUILL_FONTS[font];\n }\n if (classValue(element, 'ql-direction-') === 'rtl') {\n element.setAttribute('dir', 'rtl');\n }\n if (element.tagName === 'IFRAME' && element.classList.contains('ql-video')) {\n element.classList.remove('ql-video');\n element.setAttribute('data-type', 'video');\n }\n cleanClassAttribute(element);\n });\n return body.innerHTML;\n}\n\nfunction flattenList(list: Element, level: number, out: HTMLElement): void {\n const document = list.ownerDocument;\n const task = list.getAttribute('data-type') === 'taskList';\n for (const item of Array.from(list.children).filter((child) => child.tagName === 'LI')) {\n const kind: TxListKind = task ? (item.getAttribute('data-checked') === 'true' ? 'checked' : 'unchecked') : list.tagName === 'OL' ? 'ordered' : 'bullet';\n const next = document.createElement('li');\n next.setAttribute('data-list', kind);\n if (level > 0) {\n next.classList.add(`ql-indent-${level}`);\n }\n const nested: Element[] = [];\n const blocks = task ? Array.from(item.querySelector(':scope > div')?.children ?? item.children) : Array.from(item.children);\n const inline: Node[] = [];\n for (const child of blocks) {\n if (child.tagName === 'UL' || child.tagName === 'OL') {\n nested.push(child);\n } else if (child.tagName === 'LABEL') {\n continue;\n } else {\n const align = styleOf(child)?.textAlign;\n if (align && ALIGNMENTS.includes(align) && align !== 'left') {\n next.classList.add(`ql-align-${align}`);\n }\n if (inline.length) {\n inline.push(document.createElement('br'));\n }\n inline.push(...Array.from(child.childNodes));\n }\n }\n appendNodes(next, inline);\n out.appendChild(next);\n nested.forEach((child) => flattenList(child, level + 1, out));\n }\n}\n\n/** Converts the clean HTML of the editor to Quill 2 markup. */\nexport function toQuillHtml(html: string | null | undefined, document?: Document | null): string {\n if (!html) {\n return '';\n }\n const body = parseHtmlBody(html, document);\n if (!body) {\n return html;\n }\n const owner = body.ownerDocument;\n const topLists = Array.from(body.querySelectorAll('ol, ul')).filter((list) => !list.parentElement?.closest('ol, ul'));\n let previous: HTMLElement | null = null;\n for (const list of topLists) {\n const target: HTMLElement = previous && previous.nextSibling === list ? previous : owner.createElement('ol');\n flattenList(list, 0, target);\n if (target === previous) {\n list.remove();\n } else {\n replaceNode(list, target);\n }\n previous = target;\n }\n body.querySelectorAll('pre').forEach((pre) => {\n const code = pre.querySelector('code');\n const language = Array.from(code?.classList ?? []).find((name) => name.startsWith('language-'))?.slice(9) ?? 'plain';\n const container = owner.createElement('div');\n container.className = 'ql-code-block-container';\n container.setAttribute('spellcheck', 'false');\n for (const line of (code?.textContent ?? pre.textContent ?? '').split('\\n')) {\n const block = owner.createElement('div');\n block.className = 'ql-code-block';\n block.setAttribute('data-language', language);\n block.textContent = line;\n if (!line) {\n block.appendChild(owner.createElement('br'));\n }\n container.appendChild(block);\n }\n replaceNode(pre, container);\n });\n body.querySelectorAll('[style], [data-indent], [dir], iframe[data-type=\"video\"]').forEach((element) => {\n const style = styleOf(element);\n if (style?.textAlign && ALIGNMENTS.includes(style.textAlign)) {\n if (style.textAlign !== 'left') {\n element.classList.add(`ql-align-${style.textAlign}`);\n }\n style.removeProperty('text-align');\n }\n const indent = indentLevel(element);\n if (indent > 0) {\n element.classList.add(`ql-indent-${indent}`);\n }\n element.removeAttribute('data-indent');\n style?.removeProperty('margin-left');\n const size = Object.entries(QUILL_SIZES).find(([, value]) => value === style?.fontSize)?.[0];\n if (size) {\n element.classList.add(`ql-size-${size}`);\n style?.removeProperty('font-size');\n }\n const font = Object.entries(QUILL_FONTS).find(([, value]) => value === style?.fontFamily)?.[0];\n if (font) {\n element.classList.add(`ql-font-${font}`);\n style?.removeProperty('font-family');\n }\n if (element.getAttribute('dir') === 'rtl') {\n element.classList.add('ql-direction-rtl');\n element.removeAttribute('dir');\n }\n if (element.tagName === 'IFRAME') {\n element.removeAttribute('data-type');\n element.classList.add('ql-video');\n element.setAttribute('frameborder', '0');\n element.setAttribute('allowfullscreen', 'true');\n }\n if (element.getAttribute('style') === '') {\n element.removeAttribute('style');\n }\n });\n body.querySelectorAll('p:empty, h1:empty, h2:empty, h3:empty, h4:empty, h5:empty, h6:empty').forEach((block) => block.appendChild(owner.createElement('br')));\n return body.innerHTML;\n}\n\n/** Brings saved text, from the editor or from Quill, to the clean HTML the editor reads. */\nexport function toEditorHtml(html: string | null | undefined, document?: Document | null): string {\n return fromQuillHtml(html, document);\n}\n\n/** Writes the editor HTML in the chosen format: unchanged for `html`, converted for `quill`. */\nexport function formatEditorHtml(html: string, format: TxEditorFormat, document?: Document | null): string {\n return format === 'quill' ? toQuillHtml(html, document) : html;\n}\n","import { parseHtmlBody, unwrapNode } from './parse-html';\n\nconst ALLOWED_TAGS = new Set([\n 'p', 'br', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'strong', 'b', 'em', 'i', 'u', 's', 'strike', 'del', 'code', 'pre',\n 'blockquote', 'ul', 'ol', 'li', 'a', 'img', 'span', 'sub', 'sup', 'hr', 'mark', 'div', 'label', 'input',\n 'table', 'thead', 'tbody', 'tfoot', 'tr', 'th', 'td', 'colgroup', 'col', 'iframe',\n]);\n\nconst DROP_WITH_CONTENT = new Set(['script', 'style', 'template', 'noscript', 'object', 'embed', 'svg', 'math', 'textarea', 'select', 'button', 'form']);\n\nconst ALLOWED_ATTRIBUTES = new Set([\n 'class', 'style', 'href', 'target', 'rel', 'src', 'alt', 'title', 'width', 'height', 'colspan', 'rowspan', 'start', 'dir',\n 'data-list', 'data-type', 'data-checked', 'data-indent', 'data-language', 'data-id', 'data-label', 'data-mention-suggestion-char',\n 'colwidth', 'data-colwidth', 'data-tone', 'type', 'checked', 'disabled', 'frameborder', 'allowfullscreen', 'spellcheck',\n]);\n\nconst ALLOWED_STYLES = new Set(['color', 'background-color', 'text-align', 'font-size', 'font-family', 'margin-left', 'padding-left', 'width', 'min-width']);\n\nconst SAFE_STYLE_VALUE = /^[#(),.%\\w\\s'\"-]+$/;\nconst SAFE_CLASS = /^(ql-[\\w-]+|tx-[\\w-]+|language-[\\w-]+)$/;\nconst SAFE_LINK = /^(https?:|mailto:|tel:|sms:|#|\\/(?!\\/))/i;\nconst SAFE_IMAGE = /^(https?:|data:image\\/(png|jpe?g|gif|webp|avif|bmp|svg\\+xml);base64,|blob:|\\/(?!\\/))/i;\nconst SAFE_FRAME = /^https:\\/\\//i;\n\nfunction cleanStyle(value: string): string {\n return value\n .split(';')\n .map((declaration) => declaration.split(':'))\n .filter(([property, ...rest]) => property && rest.length)\n .map(([property, ...rest]) => [property.trim().toLowerCase(), rest.join(':').trim()])\n .filter(([property, propertyValue]) => ALLOWED_STYLES.has(property) && SAFE_STYLE_VALUE.test(propertyValue) && !/url\\s*\\(|expression\\s*\\(/i.test(propertyValue))\n .map(([property, propertyValue]) => `${property}: ${propertyValue}`)\n .join('; ');\n}\n\nfunction cleanAttribute(element: Element, name: string, value: string): string | null {\n const tag = element.tagName.toLowerCase();\n switch (name) {\n case 'style': {\n const style = cleanStyle(value);\n return style || null;\n }\n case 'class': {\n const classes = value.split(/\\s+/).filter((item) => SAFE_CLASS.test(item));\n return classes.length ? classes.join(' ') : null;\n }\n case 'href':\n return tag === 'a' && SAFE_LINK.test(value.trim()) ? value.trim() : null;\n case 'src':\n if (tag === 'img') {\n return SAFE_IMAGE.test(value.trim()) ? value.trim() : null;\n }\n return tag === 'iframe' && SAFE_FRAME.test(value.trim()) ? value.trim() : null;\n case 'target':\n return value === '_blank' ? value : null;\n case 'type':\n return tag === 'input' && value === 'checkbox' ? value : null;\n default:\n return value;\n }\n}\n\nfunction cleanNode(node: Node): void {\n for (const child of Array.from(node.childNodes)) {\n if (child.nodeType === 3) {\n continue;\n }\n if (child.nodeType !== 1) {\n child.remove();\n continue;\n }\n const element = child as Element;\n const tag = element.tagName.toLowerCase();\n if (DROP_WITH_CONTENT.has(tag)) {\n element.remove();\n continue;\n }\n if (!ALLOWED_TAGS.has(tag)) {\n cleanNode(element);\n unwrapNode(element);\n continue;\n }\n for (const attribute of Array.from(element.attributes)) {\n const name = attribute.name.toLowerCase();\n const cleaned = ALLOWED_ATTRIBUTES.has(name) ? cleanAttribute(element, name, attribute.value) : null;\n if (cleaned === null) {\n element.removeAttribute(attribute.name);\n } else if (cleaned !== attribute.value) {\n element.setAttribute(attribute.name, cleaned);\n }\n }\n if (tag === 'a' && element.getAttribute('target') === '_blank') {\n element.setAttribute('rel', 'noopener noreferrer nofollow');\n }\n if (tag === 'input') {\n element.setAttribute('disabled', '');\n }\n if (tag === 'iframe') {\n if (!element.getAttribute('src')) {\n element.remove();\n continue;\n }\n element.setAttribute('sandbox', 'allow-scripts allow-same-origin allow-presentation allow-popups');\n element.setAttribute('loading', 'lazy');\n }\n cleanNode(element);\n }\n}\n\n/**\n * Cleans HTML with an allowlist: keeps colours, alignment and indents, drops scripts, handlers and unsafe links.\n */\nexport function sanitizeEditorHtml(html: string | null | undefined, document?: Document | null): string {\n if (!html) {\n return '';\n }\n const body = parseHtmlBody(html, document);\n if (!body) {\n return '';\n }\n cleanNode(body);\n return body.innerHTML;\n}\n","import { TxIconSet, txIconCode, txIconTable, txIconVideo } from '@tectra-ng/icons';\n\nexport const CONTENT_ICON_DEFAULTS: TxIconSet = {\n code: txIconCode,\n table: txIconTable,\n video: txIconVideo,\n};\n","import { editorContentTokens } from '@tectra-ng/themes';\n\nexport const CONTENT_THEME = {\n editorContent: editorContentTokens,\n};\n","import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { CONTENT_ICON_DEFAULTS } from './content.icons';\nimport { injectTokens } from '@tectra-ng/core/config';\nimport { CONTENT_THEME } from './content.theme';\n\n/**\n * Loads the typography of editor text (`tx-editor-prose`); add it once where saved text is shown without `tx-editor-content`.\n */\n@Component({\n selector: 'tx-editor-prose-styles',\n template: '',\n styleUrl: './editor-prose.styles.scss',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n viewProviders: [provideTxIconDefaults(CONTENT_ICON_DEFAULTS)],\n})\nexport class TxEditorProseStyles {\n private readonly contentTheme = injectTokens(CONTENT_THEME);\n}\n","import { ChangeDetectionStrategy, Component, DOCUMENT, ElementRef, afterRenderEffect, booleanAttribute, computed, inject, input, output, signal, viewChild } from '@angular/core';\nimport { DomSanitizer } from '@angular/platform-browser';\nimport { injectPassThrough, injectTokens, injectUnstyled, TxPassThrough, TxPassThroughOptions } from '@tectra-ng/core/config';\nimport { injectTranslations } from '@tectra-ng/core/i18n';\nimport { TxStyleLoader } from '@tectra-ng/core/styles';\nimport { optionalBoolean } from '@tectra-ng/core/utils';\nimport { TectraDeepPartial, TectraEditorContentTokens, toStyleObject } from '@tectra-ng/themes';\nimport { TxDialog } from '@tectra-ng/ui/dialog';\nimport { TxEditorContentPart, TxEditorImageClickEvent } from './editor-content.types';\nimport { fromQuillHtml } from './editor-html';\nimport { TxEditorProseStyles } from './editor-prose-styles.component';\nimport { sanitizeEditorHtml } from './editor-sanitizer';\nimport { provideTxIconDefaults } from '@tectra-ng/icons';\nimport { CONTENT_ICON_DEFAULTS } from './content.icons';\nimport { CONTENT_THEME } from './content.theme';\n\n@Component({\n selector: 'tx-editor-content',\n imports: [TxDialog],\n template: `\n <!-- eslint-disable-next-line @angular-eslint/template/interactive-supports-focus -- clicks and keys come from the images inside, which get a tab stop -->\n <div\n #body\n class=\"tx-editor-content__body\"\n [class.tx-editor-prose]=\"!isUnstyled()\"\n [class]=\"passThrough().body?.class\"\n [style]=\"passThrough().body?.style\"\n [innerHTML]=\"safeHtml()\"\n (click)=\"onClick($event)\"\n (keydown)=\"onKeydown($event)\"\n ></div>\n @if (previewImages()) {\n <tx-dialog\n size=\"large\"\n [header]=\"preview()?.alt || translations().editorImagePreview\"\n [visible]=\"previewOpen()\"\n (visibleChange)=\"previewOpen.set($event)\"\n >\n @if (preview(); as image) {\n <img class=\"tx-editor-content__preview\" [src]=\"image.src\" [alt]=\"image.alt\" />\n }\n </tx-dialog>\n }\n `,\n styleUrl: './editor-content.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n class: 'tx-editor-content',\n '[class]': 'passThrough().root?.class',\n '[style]': 'hostStyle()',\n '[attr.data-styled]': '!isUnstyled() || null',\n '[class.tx-editor-content--zoom]': 'previewImages()',\n },\n viewProviders: [provideTxIconDefaults(CONTENT_ICON_DEFAULTS)],\n})\nexport class TxEditorContent {\n private readonly contentTheme = injectTokens(CONTENT_THEME);\n\n private sanitizer = inject(DomSanitizer);\n private document = inject(DOCUMENT);\n\n readonly html = input<string | null | undefined>(null);\n readonly previewImages = input(true, { transform: booleanAttribute });\n readonly dt = input<TectraDeepPartial<TectraEditorContentTokens> | undefined>(undefined);\n readonly pt = input<TxPassThrough<TxEditorContentPart, TxEditorContent> | undefined>(undefined);\n readonly ptOptions = input<TxPassThroughOptions | undefined>(undefined);\n readonly unstyled = input<boolean | undefined, unknown>(undefined, { transform: optionalBoolean });\n\n readonly imageClick = output<TxEditorImageClickEvent>();\n\n readonly translations = injectTranslations();\n readonly isUnstyled = injectUnstyled(this.unstyled);\n readonly passThrough = injectPassThrough('editorContent', this, this.pt, this.ptOptions);\n private readonly body = viewChild<ElementRef<HTMLElement>>('body');\n protected readonly preview = signal<{ src: string; alt: string } | null>(null);\n protected readonly previewOpen = signal(false);\n protected readonly safeHtml = computed(() => this.sanitizer.bypassSecurityTrustHtml(sanitizeEditorHtml(fromQuillHtml(this.html(), this.document), this.document)));\n readonly hostStyle = computed(() => ({ ...toStyleObject(this.dt(), '--tx-editor-content'), ...this.passThrough().root?.style }));\n\n constructor() {\n inject(TxStyleLoader).load(TxEditorProseStyles);\n afterRenderEffect(() => {\n this.safeHtml();\n const preview = this.previewImages();\n this.body()\n ?.nativeElement.querySelectorAll('img')\n .forEach((image) => {\n if (preview) {\n image.setAttribute('tabindex', '0');\n image.setAttribute('role', 'button');\n } else {\n image.removeAttribute('tabindex');\n image.removeAttribute('role');\n }\n });\n });\n }\n\n protected onClick(event: MouseEvent): void {\n const target = event.target as HTMLElement | null;\n if (target instanceof HTMLImageElement) {\n this.open(target, event);\n }\n }\n\n protected onKeydown(event: KeyboardEvent): void {\n const target = event.target as HTMLElement | null;\n if (target instanceof HTMLImageElement && (event.key === 'Enter' || event.key === ' ')) {\n event.preventDefault();\n this.open(target, event);\n }\n }\n\n private open(target: HTMLImageElement, event: Event): void {\n const image = { src: target.currentSrc || target.src, alt: target.alt };\n this.imageClick.emit({ originalEvent: event as MouseEvent | KeyboardEv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