@heartlandone/vega 2.69.0 → 2.70.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{app-globals-2dfd2b65.js → app-globals-837be7a6.js} +6 -6
- package/dist/cjs/{code-block-39074880.js → code-block-bb4cbafa.js} +1 -1
- package/dist/cjs/{component-global-style-slimmer-d5216fa7.js → component-global-style-slimmer-adfa2e59.js} +1 -1
- package/dist/cjs/{component-value-history-controller-slimmer.abstract-ddedf543.js → component-value-history-controller-slimmer.abstract-cf7b4bda.js} +2 -2
- package/dist/cjs/{dark-mode-style-controller-27809ff8.js → dark-mode-style-controller-c21172aa.js} +1 -1
- package/dist/cjs/{design-token-bab85370.js → design-token-00fe8d2f.js} +1 -1
- package/dist/cjs/{dto-renderer-manager-b7969d6c.js → dto-renderer-manager-c917dade.js} +1 -1
- package/dist/cjs/{element-appender-slimmer-2b4eccdc.js → element-appender-slimmer-f8e89f37.js} +2 -2
- package/dist/cjs/{function-extension-7c4f55ab.js → function-extension-28a4d781.js} +6 -4
- package/dist/cjs/{image-annotation-action-7f0626c8.js → image-annotation-action-8843adbf.js} +3 -3
- package/dist/cjs/index.cjs.js +10 -10
- package/dist/cjs/{language-extension-9f771818.js → language-extension-99c6fb40.js} +2 -2
- package/dist/cjs/loader.cjs.js +7 -7
- package/dist/cjs/{public-rules-8b67eaba.js → public-rules-759c745b.js} +5 -5
- package/dist/cjs/{range-002671b6.js → range-0b597850.js} +1 -1
- package/dist/cjs/{responsive-format-facade-d673f4bd.js → responsive-format-facade-1d9c13a9.js} +4 -4
- package/dist/cjs/{rich-text-editor-required-rule-5392bd8a.js → rich-text-editor-required-rule-92d0640e.js} +1 -1
- package/dist/cjs/{style-formatter-72a8b6ac.js → style-formatter-1daa8371.js} +1 -1
- package/dist/cjs/vega-accordion.cjs.entry.js +7 -7
- package/dist/cjs/vega-app-footer.cjs.entry.js +2 -2
- package/dist/cjs/vega-app-header-button.cjs.entry.js +7 -7
- package/dist/cjs/vega-box.cjs.entry.js +8 -8
- package/dist/cjs/vega-brand-logo.cjs.entry.js +2 -2
- package/dist/cjs/vega-breadcrumb.cjs.entry.js +2 -2
- package/dist/cjs/vega-button-circle.cjs.entry.js +7 -7
- package/dist/cjs/vega-button.cjs.entry.js +7 -7
- package/dist/cjs/vega-calendar_4.cjs.entry.js +1 -1
- package/dist/cjs/vega-card.cjs.entry.js +7 -7
- package/dist/cjs/vega-carousel.cjs.entry.js +6 -6
- package/dist/cjs/vega-chip.cjs.entry.js +7 -7
- package/dist/cjs/vega-code-block.cjs.entry.js +6 -6
- package/dist/cjs/vega-date-picker_2.cjs.entry.js +7 -7
- package/dist/cjs/vega-dialog_2.cjs.entry.js +8 -8
- package/dist/cjs/vega-divider.cjs.entry.js +7 -7
- package/dist/cjs/vega-dropdown_5.cjs.entry.js +8 -8
- package/dist/cjs/vega-env-manager-23b8b23c.js +2 -2
- package/dist/cjs/vega-flag-icon.cjs.entry.js +7 -7
- package/dist/cjs/vega-flex.cjs.entry.js +8 -8
- package/dist/cjs/vega-font.cjs.entry.js +7 -7
- package/dist/cjs/vega-grid.cjs.entry.js +7 -7
- package/dist/cjs/vega-icon.cjs.entry.js +7 -7
- package/dist/cjs/vega-image-uploader.cjs.entry.js +6 -6
- package/dist/cjs/vega-input-phone-number.cjs.entry.js +5 -5
- package/dist/cjs/vega-input-select.cjs.entry.js +6 -6
- package/dist/cjs/vega-left-nav_5.cjs.entry.js +8 -8
- package/dist/cjs/vega-loader-wrapper_2.cjs.entry.js +6 -6
- package/dist/cjs/{vega-nonce-manager-f927497f.js → vega-nonce-manager-df69d3ed.js} +2 -2
- package/dist/cjs/vega-pagination.cjs.entry.js +6 -6
- package/dist/cjs/vega-popover_2.cjs.entry.js +8 -8
- package/dist/cjs/vega-rich-text-content.cjs.entry.js +5 -5
- package/dist/cjs/vega-rich-text-editor_4.cjs.entry.js +8 -8
- package/dist/cjs/vega-selection-chip_2.cjs.entry.js +6 -6
- package/dist/cjs/vega-sidenav_3.cjs.entry.js +6 -6
- package/dist/cjs/vega-signature-capture.cjs.entry.js +7 -7
- package/dist/cjs/vega-table_11.cjs.entry.js +6 -6
- package/dist/cjs/vega-time-picker_2.cjs.entry.js +7 -7
- package/dist/cjs/vega-tooltip_2.cjs.entry.js +7 -7
- package/dist/cjs/vega.cjs.js +7 -7
- package/dist/collection/components/vega-button/vega-button.css +20 -12
- package/dist/collection/components/vega-rich-text-editor/extensions/base-extension-renderer.js +3 -1
- package/dist/collection/helpers/csp/test/vega-nonce-manager.test.js +11 -0
- package/dist/collection/helpers/csp/vega-nonce-manager.js +2 -2
- package/dist/esm/{app-globals-92d24d99.js → app-globals-fd4b7d97.js} +6 -6
- package/dist/esm/{code-block-e8839202.js → code-block-ecb4491b.js} +1 -1
- package/dist/esm/{component-global-style-slimmer-5d437fdf.js → component-global-style-slimmer-08046b38.js} +1 -1
- package/dist/esm/{component-value-history-controller-slimmer.abstract-c6f94113.js → component-value-history-controller-slimmer.abstract-5d618b88.js} +2 -2
- package/dist/esm/{dark-mode-style-controller-b7e85b6a.js → dark-mode-style-controller-de88a117.js} +1 -1
- package/dist/esm/{design-token-64e09c2a.js → design-token-2d77e8f5.js} +1 -1
- package/dist/esm/{dto-renderer-manager-7abc53bf.js → dto-renderer-manager-d862ae78.js} +1 -1
- package/dist/esm/{element-appender-slimmer-5c85b48f.js → element-appender-slimmer-6791c332.js} +2 -2
- package/dist/esm/{function-extension-7ce27a8e.js → function-extension-8d39db56.js} +6 -4
- package/dist/esm/{image-annotation-action-7957653a.js → image-annotation-action-d0af138c.js} +3 -3
- package/dist/esm/index.js +10 -10
- package/dist/esm/{language-extension-44413556.js → language-extension-8f51f5ff.js} +2 -2
- package/dist/esm/loader.js +7 -7
- package/dist/esm/{public-rules-e613dead.js → public-rules-d10e76f4.js} +5 -5
- package/dist/esm/{range-adf206fd.js → range-f7b9e2fb.js} +1 -1
- package/dist/esm/{responsive-format-facade-f88850c5.js → responsive-format-facade-267935ae.js} +4 -4
- package/dist/esm/{rich-text-editor-required-rule-43857573.js → rich-text-editor-required-rule-774b822b.js} +1 -1
- package/dist/esm/{style-formatter-7dd2c026.js → style-formatter-3f88c491.js} +1 -1
- package/dist/esm/vega-accordion.entry.js +7 -7
- package/dist/esm/vega-app-footer.entry.js +2 -2
- package/dist/esm/vega-app-header-button.entry.js +7 -7
- package/dist/esm/vega-box.entry.js +8 -8
- package/dist/esm/vega-brand-logo.entry.js +2 -2
- package/dist/esm/vega-breadcrumb.entry.js +2 -2
- package/dist/esm/vega-button-circle.entry.js +7 -7
- package/dist/esm/vega-button.entry.js +7 -7
- package/dist/esm/vega-calendar_4.entry.js +1 -1
- package/dist/esm/vega-card.entry.js +7 -7
- package/dist/esm/vega-carousel.entry.js +6 -6
- package/dist/esm/vega-chip.entry.js +7 -7
- package/dist/esm/vega-code-block.entry.js +6 -6
- package/dist/esm/vega-date-picker_2.entry.js +7 -7
- package/dist/esm/vega-dialog_2.entry.js +8 -8
- package/dist/esm/vega-divider.entry.js +7 -7
- package/dist/esm/vega-dropdown_5.entry.js +8 -8
- package/dist/esm/vega-env-manager-8f8dc473.js +2 -2
- package/dist/esm/vega-flag-icon.entry.js +7 -7
- package/dist/esm/vega-flex.entry.js +8 -8
- package/dist/esm/vega-font.entry.js +7 -7
- package/dist/esm/vega-grid.entry.js +7 -7
- package/dist/esm/vega-icon.entry.js +7 -7
- package/dist/esm/vega-image-uploader.entry.js +6 -6
- package/dist/esm/vega-input-phone-number.entry.js +5 -5
- package/dist/esm/vega-input-select.entry.js +6 -6
- package/dist/esm/vega-left-nav_5.entry.js +8 -8
- package/dist/esm/vega-loader-wrapper_2.entry.js +6 -6
- package/dist/esm/{vega-nonce-manager-87615d3c.js → vega-nonce-manager-497e5eb5.js} +2 -2
- package/dist/esm/vega-pagination.entry.js +6 -6
- package/dist/esm/vega-popover_2.entry.js +8 -8
- package/dist/esm/vega-rich-text-content.entry.js +5 -5
- package/dist/esm/vega-rich-text-editor_4.entry.js +8 -8
- package/dist/esm/vega-selection-chip_2.entry.js +6 -6
- package/dist/esm/vega-sidenav_3.entry.js +6 -6
- package/dist/esm/vega-signature-capture.entry.js +7 -7
- package/dist/esm/vega-table_11.entry.js +6 -6
- package/dist/esm/vega-time-picker_2.entry.js +7 -7
- package/dist/esm/vega-tooltip_2.entry.js +7 -7
- package/dist/esm/vega.js +7 -7
- package/dist/sri/vega-sri-manifest.json +198 -198
- package/dist/vega/index.esm.js +1 -1
- package/dist/vega/{p-8506e8c3.js → p-0cdb38d3.js} +1 -1
- package/dist/vega/{p-9a507d97.entry.js → p-0e5297b9.entry.js} +1 -1
- package/dist/vega/{p-f6d84ffc.entry.js → p-0feceaac.entry.js} +1 -1
- package/dist/vega/{p-e9c323a4.js → p-1372b984.js} +1 -1
- package/dist/vega/{p-bcdd3495.entry.js → p-1739a877.entry.js} +1 -1
- package/dist/vega/{p-dbcd70cc.entry.js → p-1a59703b.entry.js} +1 -1
- package/dist/vega/{p-2c8e5ecb.js → p-1bb0c934.js} +1 -1
- package/dist/vega/{p-0cefecb6.entry.js → p-1e92737c.entry.js} +1 -1
- package/dist/vega/{p-560d29f8.entry.js → p-257ff60b.entry.js} +1 -1
- package/dist/vega/{p-3ad87199.entry.js → p-25a3fad7.entry.js} +1 -1
- package/dist/vega/{p-1d5f57ec.entry.js → p-2622f0a8.entry.js} +1 -1
- package/dist/vega/{p-a5ec6ca4.entry.js → p-26c4f07c.entry.js} +1 -1
- package/dist/vega/{p-c73aeafc.entry.js → p-2ec7e020.entry.js} +1 -1
- package/dist/vega/{p-895560eb.js → p-2f09c6aa.js} +1 -1
- package/dist/vega/{p-001a56b3.entry.js → p-330c224f.entry.js} +1 -1
- package/dist/vega/{p-369810ae.js → p-33f3f306.js} +1 -1
- package/dist/vega/{p-2f04d2ac.js → p-35252108.js} +1 -1
- package/dist/vega/{p-85935dd4.entry.js → p-37020002.entry.js} +1 -1
- package/dist/vega/{p-7cd09051.entry.js → p-379f1b40.entry.js} +1 -1
- package/dist/vega/{p-dda5a984.js → p-38cb2b40.js} +1 -1
- package/dist/vega/{p-54ae02db.js → p-4866e390.js} +1 -1
- package/dist/vega/{p-79e6e12c.js → p-4a467973.js} +1 -1
- package/dist/vega/{p-d4893487.js → p-4e13a26f.js} +1 -1
- package/dist/vega/{p-04134522.entry.js → p-54e56f0d.entry.js} +1 -1
- package/dist/vega/{p-3d13b234.js → p-5d827fe5.js} +1 -1
- package/dist/vega/{p-304275ae.entry.js → p-5e708ad5.entry.js} +1 -1
- package/dist/vega/p-5f377954.js +1 -1
- package/dist/vega/{p-71e36fae.entry.js → p-65a9af84.entry.js} +1 -1
- package/dist/vega/{p-cdac385a.entry.js → p-67eb405d.entry.js} +1 -1
- package/dist/vega/{p-df58f29b.entry.js → p-69aec6af.entry.js} +1 -1
- package/dist/vega/{p-69335c91.entry.js → p-71ddccf2.entry.js} +1 -1
- package/dist/vega/{p-05d64537.entry.js → p-785d9ac3.entry.js} +1 -1
- package/dist/vega/{p-54776c23.entry.js → p-8ac2f43f.entry.js} +1 -1
- package/dist/vega/{p-a31e6ff6.entry.js → p-8c6b6ad7.entry.js} +1 -1
- package/dist/vega/{p-97e2b6c8.entry.js → p-8ff96b8c.entry.js} +2 -2
- package/dist/vega/{p-cebd6896.entry.js → p-9794fd88.entry.js} +1 -1
- package/dist/vega/{p-d6934517.entry.js → p-9e59345f.entry.js} +1 -1
- package/dist/vega/{p-6ce1e9d4.entry.js → p-9fd503e9.entry.js} +1 -1
- package/dist/vega/{p-997308b1.entry.js → p-a630ce73.entry.js} +1 -1
- package/dist/vega/{p-67db4cea.entry.js → p-b27fcac4.entry.js} +1 -1
- package/dist/vega/{p-a211ae63.js → p-b5ba0c11.js} +1 -1
- package/dist/vega/{p-0fe9cff6.js → p-b8b9ed2c.js} +1 -1
- package/dist/vega/{p-bb37a401.js → p-b9798158.js} +1 -1
- package/dist/vega/{p-ed111a57.entry.js → p-bcc396c2.entry.js} +1 -1
- package/dist/vega/{p-4fe4d946.entry.js → p-bfb86c3e.entry.js} +1 -1
- package/dist/vega/p-c224b44c.js +1 -0
- package/dist/vega/{p-54ddd06f.entry.js → p-c2f21426.entry.js} +1 -1
- package/dist/vega/{p-117be41b.js → p-c616c592.js} +1 -1
- package/dist/vega/{p-6078bbac.entry.js → p-c6ae78f2.entry.js} +1 -1
- package/dist/vega/{p-c4b9fbc8.entry.js → p-cbabb07a.entry.js} +1 -1
- package/dist/vega/{p-719354e7.entry.js → p-ea04a387.entry.js} +1 -1
- package/dist/vega/{p-4c192985.js → p-ef9cbad1.js} +1 -1
- package/dist/vega/{p-e2ab52cd.entry.js → p-f21b893b.entry.js} +1 -1
- package/dist/vega/{p-45dd1adf.entry.js → p-fb320b50.entry.js} +1 -1
- package/dist/vega/{p-fd43d473.entry.js → p-ff470366.entry.js} +1 -1
- package/dist/vega/vega.esm.js +1 -1
- package/package.json +2 -1
- package/dist/vega/p-d70e178a.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{r as t,h as e,H as i,g as r}from"./p-6b2342e0.js";import{g as o,I as s}from"./p-16493e5b.js";import{h as a}from"./p-b1faebe0.js";import{s as v}from"./p-519a7d55.js";import{i as n}from"./p-e9c323a4.js";import{a as h}from"./p-d9671d27.js";import{V as c}from"./p-8c9ea6f4.js";import{L as p,I as l}from"./p-6e1ab235.js";import{V as x,I as d}from"./p-d849e0f5.js";import{t as m}from"./p-b75ee3ba.js";import"./p-ed45b3b6.js";import"./p-74168615.js";import"./p-d884c644.js";import"./p-2c8e5ecb.js";import"./p-7d9cd9c8.js";import"./p-262ec334.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-5f377954.js";import"./p-0fe9cff6.js";import"./p-a4670e23.js";import"./p-6a334573.js";import"./p-4c192985.js";import"./p-a528714c.js";import"./p-2d0d575f.js";import"./p-331a62d5.js";import"./p-112455b1.js";import"./p-54ae02db.js";import"./p-bccee21e.js";import"./p-447c7590.js";import"./p-d4893487.js";import"./p-8506e8c3.js";import"./p-308aa2e3.js";import"./p-02841589.js";import"./p-bf19682d.js";import"./p-a7b5f497.js";import"./p-e77a83e4.js";import"./p-db8cdba6.js";import"./p-5d676a94.js";import"./p-f69f84a7.js";import"./p-824a06ba.js";var g=function(t,e,i,r){var o,s=arguments.length,a=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var v=t.length-1;v>=0;v--)(o=t[v])&&(a=(s<3?o(a):s>3?o(e,i,a):o(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a};const b=class{constructor(e){t(this,e),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new x,this.size="size-16",this.cloneFAIconStyles=()=>{if(this.isThirdPartyIcon(this.icon)){const t=this.getIconStyleHTML();t&&this.appendStyles(t);let e=0;const i=window.setInterval((()=>{if(!(e<10))return p.warn("[Vega] Loading Font Awesome timeout.",this.icon),void clearInterval(i);{e++;const t=this.getIconStyleHTML();if(t)return this.appendStyles(t),void clearInterval(i)}}),300)}}}watchIcon(){this.cloneFAIconStyles()}componentWillLoad(){this.cloneFAIconStyles()}render(){const t=s.findIndex((t=>t===this.icon));if(c.hasIcon(this.icon)){const{icon:t,autoSize:e}=c.getIcon(this.icon);return this.renderForVegaIconToken(t,e?null:this.size,e)}return t>-1?this.renderForVegaIconToken(o(this.icon),this.size):this.renderForThirdPartyIcon()}isThirdPartyIcon(t){return!c.hasIcon(t)&&!s.find((e=>e===t))}renderForVegaIconToken(t,r,o=!1){const s=r?this.formatAndValidSize(this.size):null;return v(e(i,{class:h([s,this.color&&n(this.color),o&&"vega-auto-size"]),innerHTML:t},e("slot",null)),this.host)}renderForThirdPartyIcon(){return v(e(i,{class:h([this.color&&n(this.color)]),style:this.formatThirdPartyIconSize(this.size)},e("i",{part:"icon",class:this.icon})),this.host)}formatAndValidSize(t){return`v-w-${t} v-h-${t}`}formatThirdPartyIconSize(t){return{"font-size":`${a[t]}px`}}appendStyles(t){var e;if(t&&m()){const i=null!==(e=this.host.shadowRoot.querySelector("#fa-icon-styles"))&&void 0!==e?e:m().createElement("style");i.id="fa-icon-styles",i.innerHTML=t,this.host.shadowRoot.appendChild(i)}}getIconStyleHTML(){var t;if(b.iconStyleCache.has(this.icon))return b.iconStyleCache.get(this.icon);if(m()){const e=m().createElement("i");e.className=this.icon,e.style.display="none",m().body.appendChild(e);const i=getComputedStyle(e);if(null===(t=i.fontFamily)||void 0===t?void 0:t.includes("Font Awesome")){const t=getComputedStyle(e,"::before"),r=getComputedStyle(e,"::after"),o=`\n\t\t\t\ti {\n\t\t\t\t\tfont-weight: ${i.fontWeight};\n\t\t\t\t\tfont-family: ${i.fontFamily};\n\t\t\t\t\tfont-style: ${i.fontStyle};\n\t\t\t\t\tposition: ${i.position};\n\t\t\t\t\tletter-spacing: ${i.letterSpacing};\n\t\t\t\t}\n\t\t\t\ti::before {\n\t\t\t\t\tcontent: ${t.content};\n\t\t\t\t\tposition: ${t.position};\n\t\t\t\t\topacity: ${t.opacity};\n\t\t\t\t}\n\t\t\t\ti::after {\n\t\t\t\t\tcontent: ${r.content};\n\t\t\t\t\tposition: ${r.position};\n\t\t\t\t\topacity: ${r.opacity};\n\t\t\t\t}\n\t\t\t`.replace(/[\n\t]/gi,"");return b.iconStyleCache.set(this.icon,o),m().body.removeChild(e),o}return m().body.removeChild(e),null}}get host(){return r(this)}static get watchers(){return{icon:["watchIcon"]}}};b.iconStyleCache=new Map,g([d()],b.prototype,"globalSlimmers",void 0),g([l()],b.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),b.style=":host(.v-text-primary),.v-text-primary{color:rgba(var(--v-text-primary, 32, 54, 69, 1))}:host(.v-text-secondary),.v-text-secondary{color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}:host(.v-text-inverted-primary),.v-text-inverted-primary{color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1))}:host(.v-text-inverted-secondary),.v-text-inverted-secondary{color:rgba(var(--v-text-inverted-secondary, 188, 186, 213, 1))}:host(.v-text-black),.v-text-black{color:rgba(var(--v-text-black, 32, 54, 69, 1))}:host(.v-text-white),.v-text-white{color:rgba(var(--v-text-white, 252, 252, 252, 1))}:host(.v-text-brand),.v-text-brand{color:rgba(var(--v-text-brand, 51, 57, 61, 1))}:host(.v-text-danger-link),.v-text-danger-link{color:rgba(var(--v-text-danger-link, 230, 50, 87, 1))}:host(.v-text-danger-link-hover),.v-text-danger-link-hover{color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}:host(.v-text-danger-link-active),.v-text-danger-link-active{color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1))}:host(.v-text-danger-link-focus),.v-text-danger-link-focus{color:rgba(var(--v-text-danger-link-focus, 240, 52, 91, 1))}:host(.v-text-danger-link-visited),.v-text-danger-link-visited{color:rgba(var(--v-text-danger-link-visited, 230, 50, 87, 1))}:host(.v-text-disabled),.v-text-disabled{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}:host(.v-text-error),.v-text-error{color:rgba(var(--v-text-error, 189, 41, 71, 1))}:host(.v-text-input-disabled),.v-text-input-disabled{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1))}:host(.v-text-input-placeholder),.v-text-input-placeholder{color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}:host(.v-text-link),.v-text-link{color:rgba(var(--v-text-link, 19, 98, 226, 1))}:host(.v-text-link-hover),.v-text-link-hover{color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}:host(.v-text-link-active),.v-text-link-active{color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}:host(.v-text-link-focus),.v-text-link-focus{color:rgba(var(--v-text-link-focus, 4, 112, 236, 1))}:host(.v-text-link-visited),.v-text-link-visited{color:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}:host(.v-text-on-action),.v-text-on-action{color:rgba(var(--v-text-on-action, 252, 252, 252, 1))}:host(.v-text-on-danger),.v-text-on-danger{color:rgba(var(--v-text-on-danger, 252, 252, 252, 1))}:host(.v-text-on-disabled),.v-text-on-disabled{color:rgba(var(--v-text-on-disabled, 252, 252, 252, 1))}:host(.v-text-sidebar-link),.v-text-sidebar-link{color:rgba(var(--v-text-sidebar-link, 188, 186, 213, 1))}:host(.v-text-sidebar-link-hover),.v-text-sidebar-link-hover{color:rgba(var(--v-text-sidebar-link-hover, 18, 18, 39, 1))}:host(.v-text-sidebar-link-selected),.v-text-sidebar-link-selected{color:rgba(var(--v-text-sidebar-link-selected, 252, 252, 252, 1))}:host(.v-text-site-footer-link),.v-text-site-footer-link{color:rgba(var(--v-text-site-footer-link, 171, 198, 216, 1))}:host(.v-text-site-footer-link-hover),.v-text-site-footer-link-hover{color:rgba(var(--v-text-site-footer-link-hover, 199, 217, 229, 1))}:host(.v-text-site-footer-link-active),.v-text-site-footer-link-active{color:rgba(var(--v-text-site-footer-link-active, 143, 179, 203, 1))}:host(.v-text-success),.v-text-success{color:rgba(var(--v-text-success, 1, 128, 31, 1))}:host(.v-text-inverted-success),.v-text-inverted-success{color:rgba(var(--v-text-inverted-success, 89, 217, 119, 1))}:host(.v-text-accent1-primary),.v-text-accent1-primary{color:rgba(var(--v-text-accent1-primary, 115, 230, 220, 1))}:host(.v-text-accent2-primary),.v-text-accent2-primary{color:rgba(var(--v-text-accent2-primary, 128, 107, 255, 1))}:host(.v-text-accent3-primary),.v-text-accent3-primary{color:rgba(var(--v-text-accent3-primary, 255, 220, 131, 1))}:host(.v-text-accent4-primary),.v-text-accent4-primary{color:rgba(var(--v-text-accent4-primary, 255, 149, 113, 1))}:host(.v-text-accent5-primary),.v-text-accent5-primary{color:rgba(var(--v-text-accent5-primary, 0, 187, 255, 1))}:host(.v-text-accent6-primary),.v-text-accent6-primary{color:rgba(var(--v-text-accent6-primary, 240, 52, 91, 1))}:host(.v-text-accent7-primary),.v-text-accent7-primary{color:rgba(var(--v-text-accent7-primary, 37, 159, 159, 1))}:host(.v-text-accent8-primary),.v-text-accent8-primary{color:rgba(var(--v-text-accent8-primary, 86, 61, 130, 1))}:host(.v-text-accent9-primary),.v-text-accent9-primary{color:rgba(var(--v-text-accent9-primary, 255, 191, 63, 1))}:host(.v-text-accent10-primary),.v-text-accent10-primary{color:rgba(var(--v-text-accent10-primary, 237, 122, 35, 1))}:host(.v-w-0),.v-w-0{width:0px}:host(.v-w-size-0),.v-w-size-0{width:0px}:host(.v-w-size-4),.v-w-size-4{width:4px}:host(.v-w-size-8),.v-w-size-8{width:8px}:host(.v-w-size-12),.v-w-size-12{width:12px}:host(.v-w-size-16),.v-w-size-16{width:16px}:host(.v-w-size-20),.v-w-size-20{width:20px}:host(.v-w-size-24),.v-w-size-24{width:24px}:host(.v-w-size-32),.v-w-size-32{width:32px}:host(.v-w-size-40),.v-w-size-40{width:40px}:host(.v-w-size-48),.v-w-size-48{width:48px}:host(.v-w-size-64),.v-w-size-64{width:64px}:host(.v-w-size-72),.v-w-size-72{width:72px}:host(.v-w-size-80),.v-w-size-80{width:80px}:host(.v-w-size-112),.v-w-size-112{width:112px}:host(.v-w-size-2),.v-w-size-2{width:2px}:host(.v-h-0),.v-h-0{height:0px}:host(.v-h-size-0),.v-h-size-0{height:0px}:host(.v-h-size-4),.v-h-size-4{height:4px}:host(.v-h-size-8),.v-h-size-8{height:8px}:host(.v-h-size-12),.v-h-size-12{height:12px}:host(.v-h-size-16),.v-h-size-16{height:16px}:host(.v-h-size-20),.v-h-size-20{height:20px}:host(.v-h-size-24),.v-h-size-24{height:24px}:host(.v-h-size-32),.v-h-size-32{height:32px}:host(.v-h-size-40),.v-h-size-40{height:40px}:host(.v-h-size-48),.v-h-size-48{height:48px}:host(.v-h-size-64),.v-h-size-64{height:64px}:host(.v-h-size-72),.v-h-size-72{height:72px}:host(.v-h-size-80),.v-h-size-80{height:80px}:host(.v-h-size-112),.v-h-size-112{height:112px}:host(.v-h-size-2),.v-h-size-2{height:2px}:host{display:inline-flex;user-select:none}i{line-height:1}:host(:not(.vega-auto-size)) ::slotted(svg){width:100%;height:100%}";export{b as vega_icon}
|
|
1
|
+
import{r as t,h as e,H as i,g as r}from"./p-6b2342e0.js";import{g as o,I as s}from"./p-16493e5b.js";import{h as a}from"./p-b1faebe0.js";import{s as v}from"./p-519a7d55.js";import{i as n}from"./p-1372b984.js";import{a as h}from"./p-d9671d27.js";import{V as c}from"./p-8c9ea6f4.js";import{L as p,I as l}from"./p-6e1ab235.js";import{V as x,I as d}from"./p-d849e0f5.js";import{t as m}from"./p-b75ee3ba.js";import"./p-ed45b3b6.js";import"./p-74168615.js";import"./p-d884c644.js";import"./p-1bb0c934.js";import"./p-7d9cd9c8.js";import"./p-262ec334.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-5f377954.js";import"./p-b8b9ed2c.js";import"./p-a4670e23.js";import"./p-6a334573.js";import"./p-ef9cbad1.js";import"./p-a528714c.js";import"./p-2d0d575f.js";import"./p-331a62d5.js";import"./p-112455b1.js";import"./p-4866e390.js";import"./p-bccee21e.js";import"./p-447c7590.js";import"./p-4e13a26f.js";import"./p-0cdb38d3.js";import"./p-308aa2e3.js";import"./p-02841589.js";import"./p-bf19682d.js";import"./p-a7b5f497.js";import"./p-e77a83e4.js";import"./p-db8cdba6.js";import"./p-5d676a94.js";import"./p-f69f84a7.js";import"./p-824a06ba.js";var g=function(t,e,i,r){var o,s=arguments.length,a=s<3?e:null===r?r=Object.getOwnPropertyDescriptor(e,i):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,i,r);else for(var v=t.length-1;v>=0;v--)(o=t[v])&&(a=(s<3?o(a):s>3?o(e,i,a):o(e,i))||a);return s>3&&a&&Object.defineProperty(e,i,a),a};const b=class{constructor(e){t(this,e),this.globalSlimmers={},this.vegaComponentUsageRuntimeMetricsSlimmer=new x,this.size="size-16",this.cloneFAIconStyles=()=>{if(this.isThirdPartyIcon(this.icon)){const t=this.getIconStyleHTML();t&&this.appendStyles(t);let e=0;const i=window.setInterval((()=>{if(!(e<10))return p.warn("[Vega] Loading Font Awesome timeout.",this.icon),void clearInterval(i);{e++;const t=this.getIconStyleHTML();if(t)return this.appendStyles(t),void clearInterval(i)}}),300)}}}watchIcon(){this.cloneFAIconStyles()}componentWillLoad(){this.cloneFAIconStyles()}render(){const t=s.findIndex((t=>t===this.icon));if(c.hasIcon(this.icon)){const{icon:t,autoSize:e}=c.getIcon(this.icon);return this.renderForVegaIconToken(t,e?null:this.size,e)}return t>-1?this.renderForVegaIconToken(o(this.icon),this.size):this.renderForThirdPartyIcon()}isThirdPartyIcon(t){return!c.hasIcon(t)&&!s.find((e=>e===t))}renderForVegaIconToken(t,r,o=!1){const s=r?this.formatAndValidSize(this.size):null;return v(e(i,{class:h([s,this.color&&n(this.color),o&&"vega-auto-size"]),innerHTML:t},e("slot",null)),this.host)}renderForThirdPartyIcon(){return v(e(i,{class:h([this.color&&n(this.color)]),style:this.formatThirdPartyIconSize(this.size)},e("i",{part:"icon",class:this.icon})),this.host)}formatAndValidSize(t){return`v-w-${t} v-h-${t}`}formatThirdPartyIconSize(t){return{"font-size":`${a[t]}px`}}appendStyles(t){var e;if(t&&m()){const i=null!==(e=this.host.shadowRoot.querySelector("#fa-icon-styles"))&&void 0!==e?e:m().createElement("style");i.id="fa-icon-styles",i.innerHTML=t,this.host.shadowRoot.appendChild(i)}}getIconStyleHTML(){var t;if(b.iconStyleCache.has(this.icon))return b.iconStyleCache.get(this.icon);if(m()){const e=m().createElement("i");e.className=this.icon,e.style.display="none",m().body.appendChild(e);const i=getComputedStyle(e);if(null===(t=i.fontFamily)||void 0===t?void 0:t.includes("Font Awesome")){const t=getComputedStyle(e,"::before"),r=getComputedStyle(e,"::after"),o=`\n\t\t\t\ti {\n\t\t\t\t\tfont-weight: ${i.fontWeight};\n\t\t\t\t\tfont-family: ${i.fontFamily};\n\t\t\t\t\tfont-style: ${i.fontStyle};\n\t\t\t\t\tposition: ${i.position};\n\t\t\t\t\tletter-spacing: ${i.letterSpacing};\n\t\t\t\t}\n\t\t\t\ti::before {\n\t\t\t\t\tcontent: ${t.content};\n\t\t\t\t\tposition: ${t.position};\n\t\t\t\t\topacity: ${t.opacity};\n\t\t\t\t}\n\t\t\t\ti::after {\n\t\t\t\t\tcontent: ${r.content};\n\t\t\t\t\tposition: ${r.position};\n\t\t\t\t\topacity: ${r.opacity};\n\t\t\t\t}\n\t\t\t`.replace(/[\n\t]/gi,"");return b.iconStyleCache.set(this.icon,o),m().body.removeChild(e),o}return m().body.removeChild(e),null}}get host(){return r(this)}static get watchers(){return{icon:["watchIcon"]}}};b.iconStyleCache=new Map,g([d()],b.prototype,"globalSlimmers",void 0),g([l()],b.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),b.style=":host(.v-text-primary),.v-text-primary{color:rgba(var(--v-text-primary, 32, 54, 69, 1))}:host(.v-text-secondary),.v-text-secondary{color:rgba(var(--v-text-secondary, 107, 116, 125, 1))}:host(.v-text-inverted-primary),.v-text-inverted-primary{color:rgba(var(--v-text-inverted-primary, 252, 252, 252, 1))}:host(.v-text-inverted-secondary),.v-text-inverted-secondary{color:rgba(var(--v-text-inverted-secondary, 188, 186, 213, 1))}:host(.v-text-black),.v-text-black{color:rgba(var(--v-text-black, 32, 54, 69, 1))}:host(.v-text-white),.v-text-white{color:rgba(var(--v-text-white, 252, 252, 252, 1))}:host(.v-text-brand),.v-text-brand{color:rgba(var(--v-text-brand, 51, 57, 61, 1))}:host(.v-text-danger-link),.v-text-danger-link{color:rgba(var(--v-text-danger-link, 230, 50, 87, 1))}:host(.v-text-danger-link-hover),.v-text-danger-link-hover{color:rgba(var(--v-text-danger-link-hover, 233, 71, 104, 1))}:host(.v-text-danger-link-active),.v-text-danger-link-active{color:rgba(var(--v-text-danger-link-active, 189, 41, 71, 1))}:host(.v-text-danger-link-focus),.v-text-danger-link-focus{color:rgba(var(--v-text-danger-link-focus, 240, 52, 91, 1))}:host(.v-text-danger-link-visited),.v-text-danger-link-visited{color:rgba(var(--v-text-danger-link-visited, 230, 50, 87, 1))}:host(.v-text-disabled),.v-text-disabled{color:rgba(var(--v-text-disabled, 176, 180, 181, 1))}:host(.v-text-error),.v-text-error{color:rgba(var(--v-text-error, 189, 41, 71, 1))}:host(.v-text-input-disabled),.v-text-input-disabled{color:rgba(var(--v-text-input-disabled, 107, 116, 125, 1))}:host(.v-text-input-placeholder),.v-text-input-placeholder{color:rgba(var(--v-text-input-placeholder, 176, 180, 181, 1))}:host(.v-text-link),.v-text-link{color:rgba(var(--v-text-link, 19, 98, 226, 1))}:host(.v-text-link-hover),.v-text-link-hover{color:rgba(var(--v-text-link-hover, 4, 112, 236, 1))}:host(.v-text-link-active),.v-text-link-active{color:rgba(var(--v-text-link-active, 29, 65, 195, 1))}:host(.v-text-link-focus),.v-text-link-focus{color:rgba(var(--v-text-link-focus, 4, 112, 236, 1))}:host(.v-text-link-visited),.v-text-link-visited{color:rgba(var(--v-text-link-visited, 95, 56, 206, 1))}:host(.v-text-on-action),.v-text-on-action{color:rgba(var(--v-text-on-action, 252, 252, 252, 1))}:host(.v-text-on-danger),.v-text-on-danger{color:rgba(var(--v-text-on-danger, 252, 252, 252, 1))}:host(.v-text-on-disabled),.v-text-on-disabled{color:rgba(var(--v-text-on-disabled, 252, 252, 252, 1))}:host(.v-text-sidebar-link),.v-text-sidebar-link{color:rgba(var(--v-text-sidebar-link, 188, 186, 213, 1))}:host(.v-text-sidebar-link-hover),.v-text-sidebar-link-hover{color:rgba(var(--v-text-sidebar-link-hover, 18, 18, 39, 1))}:host(.v-text-sidebar-link-selected),.v-text-sidebar-link-selected{color:rgba(var(--v-text-sidebar-link-selected, 252, 252, 252, 1))}:host(.v-text-site-footer-link),.v-text-site-footer-link{color:rgba(var(--v-text-site-footer-link, 171, 198, 216, 1))}:host(.v-text-site-footer-link-hover),.v-text-site-footer-link-hover{color:rgba(var(--v-text-site-footer-link-hover, 199, 217, 229, 1))}:host(.v-text-site-footer-link-active),.v-text-site-footer-link-active{color:rgba(var(--v-text-site-footer-link-active, 143, 179, 203, 1))}:host(.v-text-success),.v-text-success{color:rgba(var(--v-text-success, 1, 128, 31, 1))}:host(.v-text-inverted-success),.v-text-inverted-success{color:rgba(var(--v-text-inverted-success, 89, 217, 119, 1))}:host(.v-text-accent1-primary),.v-text-accent1-primary{color:rgba(var(--v-text-accent1-primary, 115, 230, 220, 1))}:host(.v-text-accent2-primary),.v-text-accent2-primary{color:rgba(var(--v-text-accent2-primary, 128, 107, 255, 1))}:host(.v-text-accent3-primary),.v-text-accent3-primary{color:rgba(var(--v-text-accent3-primary, 255, 220, 131, 1))}:host(.v-text-accent4-primary),.v-text-accent4-primary{color:rgba(var(--v-text-accent4-primary, 255, 149, 113, 1))}:host(.v-text-accent5-primary),.v-text-accent5-primary{color:rgba(var(--v-text-accent5-primary, 0, 187, 255, 1))}:host(.v-text-accent6-primary),.v-text-accent6-primary{color:rgba(var(--v-text-accent6-primary, 240, 52, 91, 1))}:host(.v-text-accent7-primary),.v-text-accent7-primary{color:rgba(var(--v-text-accent7-primary, 37, 159, 159, 1))}:host(.v-text-accent8-primary),.v-text-accent8-primary{color:rgba(var(--v-text-accent8-primary, 86, 61, 130, 1))}:host(.v-text-accent9-primary),.v-text-accent9-primary{color:rgba(var(--v-text-accent9-primary, 255, 191, 63, 1))}:host(.v-text-accent10-primary),.v-text-accent10-primary{color:rgba(var(--v-text-accent10-primary, 237, 122, 35, 1))}:host(.v-w-0),.v-w-0{width:0px}:host(.v-w-size-0),.v-w-size-0{width:0px}:host(.v-w-size-4),.v-w-size-4{width:4px}:host(.v-w-size-8),.v-w-size-8{width:8px}:host(.v-w-size-12),.v-w-size-12{width:12px}:host(.v-w-size-16),.v-w-size-16{width:16px}:host(.v-w-size-20),.v-w-size-20{width:20px}:host(.v-w-size-24),.v-w-size-24{width:24px}:host(.v-w-size-32),.v-w-size-32{width:32px}:host(.v-w-size-40),.v-w-size-40{width:40px}:host(.v-w-size-48),.v-w-size-48{width:48px}:host(.v-w-size-64),.v-w-size-64{width:64px}:host(.v-w-size-72),.v-w-size-72{width:72px}:host(.v-w-size-80),.v-w-size-80{width:80px}:host(.v-w-size-112),.v-w-size-112{width:112px}:host(.v-w-size-2),.v-w-size-2{width:2px}:host(.v-h-0),.v-h-0{height:0px}:host(.v-h-size-0),.v-h-size-0{height:0px}:host(.v-h-size-4),.v-h-size-4{height:4px}:host(.v-h-size-8),.v-h-size-8{height:8px}:host(.v-h-size-12),.v-h-size-12{height:12px}:host(.v-h-size-16),.v-h-size-16{height:16px}:host(.v-h-size-20),.v-h-size-20{height:20px}:host(.v-h-size-24),.v-h-size-24{height:24px}:host(.v-h-size-32),.v-h-size-32{height:32px}:host(.v-h-size-40),.v-h-size-40{height:40px}:host(.v-h-size-48),.v-h-size-48{height:48px}:host(.v-h-size-64),.v-h-size-64{height:64px}:host(.v-h-size-72),.v-h-size-72{height:72px}:host(.v-h-size-80),.v-h-size-80{height:80px}:host(.v-h-size-112),.v-h-size-112{height:112px}:host(.v-h-size-2),.v-h-size-2{height:2px}:host{display:inline-flex;user-select:none}i{line-height:1}:host(:not(.vega-auto-size)) ::slotted(svg){width:100%;height:100%}";export{b as vega_icon}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e,r as t,c as i,H as a,g as n}from"./p-6b2342e0.js";import{s as o}from"./p-519a7d55.js";import{n as s,c as r}from"./p-262ec334.js";import{D as p,y as g,E as l,f as h,a as c,Q as m}from"./p-447c7590.js";import{a as f}from"./p-d9671d27.js";import{C as u}from"./p-db57dddc.js";import{c as v}from"./p-de97c6d9.js";import{c as d,M as b,V as x,I as w}from"./p-6e1ab235.js";import{V as S,I as j}from"./p-d849e0f5.js";import{T as y}from"./p-75f981ce.js";import{R as C}from"./p-2c8e5ecb.js";import{P as z,g as P}from"./p-7d9cd9c8.js";import{n as O,o as k}from"./p-308aa2e3.js";import"./p-5f377954.js";import"./p-0fe9cff6.js";import{F as I}from"./p-e77a83e4.js";import"./p-8c9ea6f4.js";import"./p-5d676a94.js";import"./p-f69f84a7.js";import"./p-d4893487.js";import"./p-54ae02db.js";import"./p-8506e8c3.js";import"./p-2d0d575f.js";import"./p-331a62d5.js";import"./p-bccee21e.js";import"./p-6a334573.js";import"./p-b75ee3ba.js";import"./p-b1faebe0.js";import"./p-ed45b3b6.js";import"./p-74168615.js";import"./p-d884c644.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-a4670e23.js";import"./p-4c192985.js";import"./p-a528714c.js";import"./p-112455b1.js";import"./p-a7b5f497.js";import"./p-db8cdba6.js";import"./p-02841589.js";import"./p-bf19682d.js";const M=({pageSize:t,current:i,total:a,translationSlimmer:n})=>{const o=a>0?t*(i-1)+1:0,s=Math.min(i*t,a);return e("vega-field-label",{label:n.t("Viewing {0}-{1} of {2}",o,s,a)})},L=({onChange:t,pageCount:i,translationSlimmer:a})=>{let n;const o=()=>{if(n.value){const e=s(r(n.value,1),1,i);t(e),n.value=""}},h=e=>{e.stopPropagation()};return e("vega-flex",{alignItems:"center",justifyContent:"center",gap:"size-8"},e("vega-field-label",{label:a.t("Go To")}),e("vega-form",{ref:e=>{p.addUniqueObserverToNode(e,g,o)}},e("vega-input",{"data-vega-form":"paginationGoTo",type:"number",size:"small",showClearIcon:!1,style:{width:"60px"},maskConfig:{type:"number",options:{allowNegative:!1,precision:0}},onVegaChange:h,onChange:h,ref:e=>{n=e,p.addUniqueObserverToNode(e,l,o)}})))},E=({pageSize:t,pageSizeSelectorOptions:i,dropdownProps:a,onChange:n,translationSlimmer:o})=>{const s=i.sort(((e,t)=>e-t)),r=e=>{const t=Number(e.detail);n(t)};return e("vega-flex",{alignItems:"center",justifyContent:"center",gap:"size-8"},e("vega-field-label",{label:o.t("Show")}),e("div",null,e("vega-input-select",{size:"small",source:s.map((e=>({id:e.toString(),displayName:e.toString()}))),value:t.toString(),placeholder:"Page Size",vegaDropdownProps:Object.assign({matchTargetWidth:!1,searchable:!1},a),ref:e=>{p.addUniqueObserverToNode(e,h,r)}})))},R=({total:t,current:i,onChange:a,pageCount:n})=>{const o=t=>{const n=i!==t;return e("li",{key:t,class:f(["vega-pagination-item",i===t?"active":""])},e("button",{onClick:()=>n&&a(t)},t))},s=(t,i,a)=>e("li",{class:f(["vega-pagination-button",i&&"disabled"])},e("vega-button-circle",{variant:"icon-only",icon:t,iconColor:"text-link",size:"small",disabled:i,ref:e=>{p.addUniqueObserverToNode(e,c,a)}}));return e("ul",{class:"vega-pagination"},s("chevron-left",0===t||1===i,(()=>{a(i-1)})),0===t?[o(1)]:((e,t,i=7)=>{if(i<7)throw new Error("Must allow at least 7 pager items");if(i%2==0)throw new Error("Must allow odd number of pager items");if(t<i)return Array(t).fill(0).map(((e,t)=>t+1));const a=Math.max(1,Math.min(t-i+1,e-Math.floor(i/2))),n=new Array(i);for(let e=0;e<i;e+=1)n[e]=e+a;return Number(n[0])>1&&(n[0]=1,n[1]="..."),Number(n[n.length-1])<=t-1&&(n[n.length-1]=t,n[n.length-2]="..."),n})(i,n).map((t=>"string"==typeof t?e("li",{class:"vega-pagination-item pager-ellipsis"},"..."):o(t))),s("chevron-right",0===t||i===n,(()=>{a(i+1)})))};var T=function(e,t,i,a){var n,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class N extends x{registerPaginationPageSizeChangeObserver(){p.addUniqueObserverToNode(this.host,O,(e=>{this.pageSize=Number(e.detail)}))}unregisterPaginationPageSizeChangeObserver(){p.removeUniqueObserverFromNode(this.host,O)}}T([d()],N.prototype,"host",void 0),T([d({writable:!0})],N.prototype,"pageSize",void 0),T([b("connectedCallback")],N.prototype,"registerPaginationPageSizeChangeObserver",null),T([b("disconnectedCallback")],N.prototype,"unregisterPaginationPageSizeChangeObserver",null);var _=function(e,t,i,a){var n,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class A extends x{registerPaginationCurrentChangeObserver(){p.addUniqueObserverToNode(this.host,k,(e=>{this.current=Number(e.detail)}))}unregisterPaginationCurrentChangeObserver(){p.removeUniqueObserverFromNode(this.host,k)}}_([d()],A.prototype,"host",void 0),_([d({writable:!0})],A.prototype,"current",void 0),_([b("connectedCallback")],A.prototype,"registerPaginationCurrentChangeObserver",null),_([b("disconnectedCallback")],A.prototype,"unregisterPaginationCurrentChangeObserver",null);var V=function(e,t,i,a){var n,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class B extends z{constructor(){super({callback:()=>{this.calculatePaginationLayout()}}),this.calculatePaginationLayout=()=>{if("vertical"===this.currentLayout)this.host.classList.add("vega-pagination-vertical"),this.host.classList.remove("vega-pagination-horizontal");else{this.host.classList.remove("vega-pagination-vertical"),this.host.classList.add("vega-pagination-horizontal");const e=this.host.offsetHeight;Array.from(this.host.shadowRoot.children).filter((e=>"VEGA-FLEX"===e.tagName)).every((t=>e>t.offsetHeight))&&(this.host.classList.add("vega-pagination-vertical"),this.host.classList.remove("vega-pagination-horizontal"))}}}componentWillLoad(){this.setCurrentLayout()}watchCurrentBreakpoint(){this.setCurrentLayout()}watchLayout(){this.setCurrentLayout(),this.calculatePaginationLayout()}setCurrentLayout(){this.currentLayout=C.formatCustom(this.layout)}}V([d()],B.prototype,"host",void 0),V([d()],B.prototype,"layout",void 0),V([b("componentWillLoad")],B.prototype,"componentWillLoad",null),V([b("watchCurrentBreakpoint")],B.prototype,"watchCurrentBreakpoint",null),V([b("watchLayout")],B.prototype,"watchLayout",null);var W=function(e,t,i,a){var n,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};const G=class{constructor(a){t(this,a),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.vegaPageSizeChange=i(this,"vegaPageSizeChange",7),this.pageSizeChange=i(this,"pageSizeChange",7),this.globalSlimmers={},this.translationSlimmer=new y,this.childEventPrevent=new u([g],(()=>this.host)),this.childValueChangePrevent=new u([h],(()=>this.host),!0),this.vegaChangeEventEmitter=v(G,h),this.vegaPageSizeChangeEventEmitter=v(G,m),this.vegaComponentUsageRuntimeMetricsSlimmer=new S,this.vegaPaginationPageSizeObserverController=new N,this.vegaPaginationCurrentPageObserverController=new A,this.breakpointPageResizeObserverSlimmer=new z,this.vegaPaginationLayoutController=new B,this.vegaPaginationItemTypes=["currentPageLabel","pageSizeSelector","pageSelector","goTo","pageSelectorMobile","pageSizeSelectorMobile","pageSelectorMobile_goTo","pageSizeSelectorMobile_currentPageLabel"],this.currentBreakpoint=P(),this.pageCount=0,this.current=1,this.total=0,this.pageSize=10,this.extensions=I.isEnabled("VEGA_PAGINATION.ENABLE_EXTENSIONS_RESPONSIVE_DEFAULT_VALUE")?{default:[["pageSizeSelectorMobile_currentPageLabel"],["pageSelectorMobile_goTo"]],M:[["pageSelector"]]}:[["pageSelector"]],this.layout="horizontal",this.pageSizeSelectorOptions=[10,20,50,100],this.renderPaginationItemsWrapper=t=>e("vega-flex",{gap:{default:"size-4",M:"size-24"},flexWrap:"wrap",alignItems:"center",justifyContent:"center",key:this.generateWrapperKey(t)},t.map((t=>e("div",{key:t},this.renderPaginationItem(t))))),this.renderPaginationItem=t=>{switch(t){case"currentPageLabel":return e(M,{total:this.total,current:this.current,pageSize:this.pageSize,translationSlimmer:this.translationSlimmer});case"pageSizeSelector":{const t=this.pageSizeSelectorOptions.includes(this.pageSize)?this.pageSizeSelectorOptions:[...this.pageSizeSelectorOptions,this.pageSize];return e(E,{pageSize:this.pageSize,pageSizeSelectorOptions:t,dropdownProps:this.dropdownProps,onChange:this.onPageSizeSelectorChange,translationSlimmer:this.translationSlimmer})}case"pageSelector":return e(R,{current:this.current,total:this.total,onChange:this.onPageSelectorChange,pageCount:this.pageCount});case"goTo":return e(L,{onChange:this.handlePaginationGoToChange,pageCount:this.pageCount,translationSlimmer:this.translationSlimmer});case"pageSelectorMobile":case"pageSelectorMobile_goTo":return e("vega-pagination-page-selector-mobile",{type:t,pageCount:this.pageCount,current:this.current,total:this.total});case"pageSizeSelectorMobile":case"pageSizeSelectorMobile_currentPageLabel":return e("vega-pagination-page-size-selector-mobile",{type:t,pageSize:this.pageSize,current:this.current,total:this.total,pageSizeSelectorOptions:this.pageSizeSelectorOptions,dropdownProps:this.dropdownProps})}},this.handlePaginationGoToChange=e=>{this.current=e},this.onPageSizeSelectorChange=e=>{this.pageSize=e},this.calculatePages=()=>this.total?Math.floor((this.total-1)/this.pageSize)+1:0,this.onPageSelectorChange=e=>{this.current=e},this.removeDuplicateItems=e=>{const t=[...this.vegaPaginationItemTypes];return[...e].map((e=>e.filter(((i,a)=>{const n=t.indexOf(i);return n>=0?(t.splice(n,1),!0):(e.splice(a,1),!1)})))).filter((e=>e.length>0))},this.generateWrapperKey=e=>e.map(String).reduce(((e,t)=>`${e}-${t}`)),this.currentValueGuard=()=>{0===this.pageCount?this.current=1:this.current>this.pageCount&&(this.current=this.pageCount)}}watchCurrentBreakpoint(){}watchPageCount(){this.currentValueGuard()}watchCurrent(){this.currentValueGuard(),this.vegaChangeEventEmitter.emit(this.current)}watchTotal(){this.pageCount=this.calculatePages()}watchPageSize(){this.vegaPageSizeChangeEventEmitter.emit(this.pageSize),this.pageCount=this.calculatePages()}watchLayout(){}componentWillLoad(){this.pageCount=this.calculatePages(),this.currentValueGuard(),this.pageSizeSelectorOptions.includes(this.pageSize)||(this.pageSizeSelectorOptions=[...this.pageSizeSelectorOptions,this.pageSize])}render(){const t=C.formatCustom(this.extensions);return o(e(a,null,this.removeDuplicateItems(t).map(this.renderPaginationItemsWrapper)),this.host)}get host(){return n(this)}static get watchers(){return{currentBreakpoint:["watchCurrentBreakpoint"],pageCount:["watchPageCount"],current:["watchCurrent"],total:["watchTotal"],pageSize:["watchPageSize"],layout:["watchLayout"]}}};W([j()],G.prototype,"globalSlimmers",void 0),W([w()],G.prototype,"translationSlimmer",void 0),W([w()],G.prototype,"childEventPrevent",void 0),W([w()],G.prototype,"childValueChangePrevent",void 0),W([w()],G.prototype,"vegaChangeEventEmitter",void 0),W([w()],G.prototype,"vegaPageSizeChangeEventEmitter",void 0),W([w()],G.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),W([w()],G.prototype,"vegaPaginationPageSizeObserverController",void 0),W([w()],G.prototype,"vegaPaginationCurrentPageObserverController",void 0),W([w()],G.prototype,"breakpointPageResizeObserverSlimmer",void 0),W([w()],G.prototype,"vegaPaginationLayoutController",void 0),G.style=':host{display:flex;align-items:center;line-height:normal;flex-wrap:wrap}:host(.vega-pagination-horizontal){flex-direction:row;justify-content:space-between}:host(.vega-pagination-vertical){flex-direction:column;gap:16px;justify-content:center}@media (min-width: 320px){:host(.vega-pagination-horizontal){gap:4px}}@media (min-width: 768px){:host(.vega-pagination-horizontal){gap:24px}}.vega-pagination{display:flex;padding:0px;margin:0px}.vega-pagination .vega-pagination-item{list-style-type:none;display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;color:rgba(var(--v-text-link, 19, 98, 226, 1));cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-pagination .vega-pagination-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-pagination .vega-pagination-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-pagination .vega-pagination-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.vega-pagination .vega-pagination-item button{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));border-width:0px;outline:2px solid transparent;outline-offset:2px;width:100%;height:100%;cursor:pointer;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;color:rgba(var(--v-text-link, 19, 98, 226, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-pagination .vega-pagination-item button{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-pagination .vega-pagination-item button{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-pagination .vega-pagination-item button{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.vega-pagination .vega-pagination-item.pager-ellipsis{cursor:default}.vega-pagination .vega-pagination-item:not(.pager-ellipsis):not(:active):hover{text-decoration:underline;text-underline-offset:2px}.vega-pagination .vega-pagination-item button:active,.vega-pagination .vega-pagination-item.active button{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-pagination .vega-pagination-item button:active,.vega-pagination .vega-pagination-item.active button{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-pagination .vega-pagination-item button:active,.vega-pagination .vega-pagination-item.active button{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-pagination .vega-pagination-item button:active,.vega-pagination .vega-pagination-item.active button{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}.vega-pagination .vega-pagination-item button:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px;border-radius:9999px}.vega-pagination .vega-pagination-button{list-style-type:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}';export{G as vega_pagination}
|
|
1
|
+
import{h as e,r as t,c as i,H as a,g as n}from"./p-6b2342e0.js";import{s as o}from"./p-519a7d55.js";import{n as s,c as r}from"./p-262ec334.js";import{D as p,y as g,E as l,f as h,a as c,Q as m}from"./p-447c7590.js";import{a as f}from"./p-d9671d27.js";import{C as u}from"./p-db57dddc.js";import{c as d}from"./p-de97c6d9.js";import{c as v,M as b,V as x,I as w}from"./p-6e1ab235.js";import{V as S,I as j}from"./p-d849e0f5.js";import{T as y}from"./p-75f981ce.js";import{R as C}from"./p-1bb0c934.js";import{P as z,g as P}from"./p-7d9cd9c8.js";import{n as O,o as k}from"./p-308aa2e3.js";import"./p-5f377954.js";import"./p-b8b9ed2c.js";import{F as I}from"./p-e77a83e4.js";import"./p-8c9ea6f4.js";import"./p-5d676a94.js";import"./p-f69f84a7.js";import"./p-4e13a26f.js";import"./p-4866e390.js";import"./p-0cdb38d3.js";import"./p-2d0d575f.js";import"./p-331a62d5.js";import"./p-bccee21e.js";import"./p-6a334573.js";import"./p-b75ee3ba.js";import"./p-b1faebe0.js";import"./p-ed45b3b6.js";import"./p-74168615.js";import"./p-d884c644.js";import"./p-0c667d6a.js";import"./p-d27ae9ff.js";import"./p-a4670e23.js";import"./p-ef9cbad1.js";import"./p-a528714c.js";import"./p-112455b1.js";import"./p-a7b5f497.js";import"./p-db8cdba6.js";import"./p-02841589.js";import"./p-bf19682d.js";const M=({pageSize:t,current:i,total:a,translationSlimmer:n})=>{const o=a>0?t*(i-1)+1:0,s=Math.min(i*t,a);return e("vega-field-label",{label:n.t("Viewing {0}-{1} of {2}",o,s,a)})},L=({onChange:t,pageCount:i,translationSlimmer:a})=>{let n;const o=()=>{if(n.value){const e=s(r(n.value,1),1,i);t(e),n.value=""}},h=e=>{e.stopPropagation()};return e("vega-flex",{alignItems:"center",justifyContent:"center",gap:"size-8"},e("vega-field-label",{label:a.t("Go To")}),e("vega-form",{ref:e=>{p.addUniqueObserverToNode(e,g,o)}},e("vega-input",{"data-vega-form":"paginationGoTo",type:"number",size:"small",showClearIcon:!1,style:{width:"60px"},maskConfig:{type:"number",options:{allowNegative:!1,precision:0}},onVegaChange:h,onChange:h,ref:e=>{n=e,p.addUniqueObserverToNode(e,l,o)}})))},E=({pageSize:t,pageSizeSelectorOptions:i,dropdownProps:a,onChange:n,translationSlimmer:o})=>{const s=i.sort(((e,t)=>e-t)),r=e=>{const t=Number(e.detail);n(t)};return e("vega-flex",{alignItems:"center",justifyContent:"center",gap:"size-8"},e("vega-field-label",{label:o.t("Show")}),e("div",null,e("vega-input-select",{size:"small",source:s.map((e=>({id:e.toString(),displayName:e.toString()}))),value:t.toString(),placeholder:"Page Size",vegaDropdownProps:Object.assign({matchTargetWidth:!1,searchable:!1},a),ref:e=>{p.addUniqueObserverToNode(e,h,r)}})))},R=({total:t,current:i,onChange:a,pageCount:n})=>{const o=t=>{const n=i!==t;return e("li",{key:t,class:f(["vega-pagination-item",i===t?"active":""])},e("button",{onClick:()=>n&&a(t)},t))},s=(t,i,a)=>e("li",{class:f(["vega-pagination-button",i&&"disabled"])},e("vega-button-circle",{variant:"icon-only",icon:t,iconColor:"text-link",size:"small",disabled:i,ref:e=>{p.addUniqueObserverToNode(e,c,a)}}));return e("ul",{class:"vega-pagination"},s("chevron-left",0===t||1===i,(()=>{a(i-1)})),0===t?[o(1)]:((e,t,i=7)=>{if(i<7)throw new Error("Must allow at least 7 pager items");if(i%2==0)throw new Error("Must allow odd number of pager items");if(t<i)return Array(t).fill(0).map(((e,t)=>t+1));const a=Math.max(1,Math.min(t-i+1,e-Math.floor(i/2))),n=new Array(i);for(let e=0;e<i;e+=1)n[e]=e+a;return Number(n[0])>1&&(n[0]=1,n[1]="..."),Number(n[n.length-1])<=t-1&&(n[n.length-1]=t,n[n.length-2]="..."),n})(i,n).map((t=>"string"==typeof t?e("li",{class:"vega-pagination-item pager-ellipsis"},"..."):o(t))),s("chevron-right",0===t||i===n,(()=>{a(i+1)})))};var T=function(e,t,i,a){var n,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class N extends x{registerPaginationPageSizeChangeObserver(){p.addUniqueObserverToNode(this.host,O,(e=>{this.pageSize=Number(e.detail)}))}unregisterPaginationPageSizeChangeObserver(){p.removeUniqueObserverFromNode(this.host,O)}}T([v()],N.prototype,"host",void 0),T([v({writable:!0})],N.prototype,"pageSize",void 0),T([b("connectedCallback")],N.prototype,"registerPaginationPageSizeChangeObserver",null),T([b("disconnectedCallback")],N.prototype,"unregisterPaginationPageSizeChangeObserver",null);var _=function(e,t,i,a){var n,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class A extends x{registerPaginationCurrentChangeObserver(){p.addUniqueObserverToNode(this.host,k,(e=>{this.current=Number(e.detail)}))}unregisterPaginationCurrentChangeObserver(){p.removeUniqueObserverFromNode(this.host,k)}}_([v()],A.prototype,"host",void 0),_([v({writable:!0})],A.prototype,"current",void 0),_([b("connectedCallback")],A.prototype,"registerPaginationCurrentChangeObserver",null),_([b("disconnectedCallback")],A.prototype,"unregisterPaginationCurrentChangeObserver",null);var V=function(e,t,i,a){var n,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};class B extends z{constructor(){super({callback:()=>{this.calculatePaginationLayout()}}),this.calculatePaginationLayout=()=>{if("vertical"===this.currentLayout)this.host.classList.add("vega-pagination-vertical"),this.host.classList.remove("vega-pagination-horizontal");else{this.host.classList.remove("vega-pagination-vertical"),this.host.classList.add("vega-pagination-horizontal");const e=this.host.offsetHeight;Array.from(this.host.shadowRoot.children).filter((e=>"VEGA-FLEX"===e.tagName)).every((t=>e>t.offsetHeight))&&(this.host.classList.add("vega-pagination-vertical"),this.host.classList.remove("vega-pagination-horizontal"))}}}componentWillLoad(){this.setCurrentLayout()}watchCurrentBreakpoint(){this.setCurrentLayout()}watchLayout(){this.setCurrentLayout(),this.calculatePaginationLayout()}setCurrentLayout(){this.currentLayout=C.formatCustom(this.layout)}}V([v()],B.prototype,"host",void 0),V([v()],B.prototype,"layout",void 0),V([b("componentWillLoad")],B.prototype,"componentWillLoad",null),V([b("watchCurrentBreakpoint")],B.prototype,"watchCurrentBreakpoint",null),V([b("watchLayout")],B.prototype,"watchLayout",null);var W=function(e,t,i,a){var n,o=arguments.length,s=o<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,i,a);else for(var r=e.length-1;r>=0;r--)(n=e[r])&&(s=(o<3?n(s):o>3?n(t,i,s):n(t,i))||s);return o>3&&s&&Object.defineProperty(t,i,s),s};const G=class{constructor(a){t(this,a),this.vegaChange=i(this,"vegaChange",7),this.change=i(this,"change",7),this.vegaPageSizeChange=i(this,"vegaPageSizeChange",7),this.pageSizeChange=i(this,"pageSizeChange",7),this.globalSlimmers={},this.translationSlimmer=new y,this.childEventPrevent=new u([g],(()=>this.host)),this.childValueChangePrevent=new u([h],(()=>this.host),!0),this.vegaChangeEventEmitter=d(G,h),this.vegaPageSizeChangeEventEmitter=d(G,m),this.vegaComponentUsageRuntimeMetricsSlimmer=new S,this.vegaPaginationPageSizeObserverController=new N,this.vegaPaginationCurrentPageObserverController=new A,this.breakpointPageResizeObserverSlimmer=new z,this.vegaPaginationLayoutController=new B,this.vegaPaginationItemTypes=["currentPageLabel","pageSizeSelector","pageSelector","goTo","pageSelectorMobile","pageSizeSelectorMobile","pageSelectorMobile_goTo","pageSizeSelectorMobile_currentPageLabel"],this.currentBreakpoint=P(),this.pageCount=0,this.current=1,this.total=0,this.pageSize=10,this.extensions=I.isEnabled("VEGA_PAGINATION.ENABLE_EXTENSIONS_RESPONSIVE_DEFAULT_VALUE")?{default:[["pageSizeSelectorMobile_currentPageLabel"],["pageSelectorMobile_goTo"]],M:[["pageSelector"]]}:[["pageSelector"]],this.layout="horizontal",this.pageSizeSelectorOptions=[10,20,50,100],this.renderPaginationItemsWrapper=t=>e("vega-flex",{gap:{default:"size-4",M:"size-24"},flexWrap:"wrap",alignItems:"center",justifyContent:"center",key:this.generateWrapperKey(t)},t.map((t=>e("div",{key:t},this.renderPaginationItem(t))))),this.renderPaginationItem=t=>{switch(t){case"currentPageLabel":return e(M,{total:this.total,current:this.current,pageSize:this.pageSize,translationSlimmer:this.translationSlimmer});case"pageSizeSelector":{const t=this.pageSizeSelectorOptions.includes(this.pageSize)?this.pageSizeSelectorOptions:[...this.pageSizeSelectorOptions,this.pageSize];return e(E,{pageSize:this.pageSize,pageSizeSelectorOptions:t,dropdownProps:this.dropdownProps,onChange:this.onPageSizeSelectorChange,translationSlimmer:this.translationSlimmer})}case"pageSelector":return e(R,{current:this.current,total:this.total,onChange:this.onPageSelectorChange,pageCount:this.pageCount});case"goTo":return e(L,{onChange:this.handlePaginationGoToChange,pageCount:this.pageCount,translationSlimmer:this.translationSlimmer});case"pageSelectorMobile":case"pageSelectorMobile_goTo":return e("vega-pagination-page-selector-mobile",{type:t,pageCount:this.pageCount,current:this.current,total:this.total});case"pageSizeSelectorMobile":case"pageSizeSelectorMobile_currentPageLabel":return e("vega-pagination-page-size-selector-mobile",{type:t,pageSize:this.pageSize,current:this.current,total:this.total,pageSizeSelectorOptions:this.pageSizeSelectorOptions,dropdownProps:this.dropdownProps})}},this.handlePaginationGoToChange=e=>{this.current=e},this.onPageSizeSelectorChange=e=>{this.pageSize=e},this.calculatePages=()=>this.total?Math.floor((this.total-1)/this.pageSize)+1:0,this.onPageSelectorChange=e=>{this.current=e},this.removeDuplicateItems=e=>{const t=[...this.vegaPaginationItemTypes];return[...e].map((e=>e.filter(((i,a)=>{const n=t.indexOf(i);return n>=0?(t.splice(n,1),!0):(e.splice(a,1),!1)})))).filter((e=>e.length>0))},this.generateWrapperKey=e=>e.map(String).reduce(((e,t)=>`${e}-${t}`)),this.currentValueGuard=()=>{0===this.pageCount?this.current=1:this.current>this.pageCount&&(this.current=this.pageCount)}}watchCurrentBreakpoint(){}watchPageCount(){this.currentValueGuard()}watchCurrent(){this.currentValueGuard(),this.vegaChangeEventEmitter.emit(this.current)}watchTotal(){this.pageCount=this.calculatePages()}watchPageSize(){this.vegaPageSizeChangeEventEmitter.emit(this.pageSize),this.pageCount=this.calculatePages()}watchLayout(){}componentWillLoad(){this.pageCount=this.calculatePages(),this.currentValueGuard(),this.pageSizeSelectorOptions.includes(this.pageSize)||(this.pageSizeSelectorOptions=[...this.pageSizeSelectorOptions,this.pageSize])}render(){const t=C.formatCustom(this.extensions);return o(e(a,null,this.removeDuplicateItems(t).map(this.renderPaginationItemsWrapper)),this.host)}get host(){return n(this)}static get watchers(){return{currentBreakpoint:["watchCurrentBreakpoint"],pageCount:["watchPageCount"],current:["watchCurrent"],total:["watchTotal"],pageSize:["watchPageSize"],layout:["watchLayout"]}}};W([j()],G.prototype,"globalSlimmers",void 0),W([w()],G.prototype,"translationSlimmer",void 0),W([w()],G.prototype,"childEventPrevent",void 0),W([w()],G.prototype,"childValueChangePrevent",void 0),W([w()],G.prototype,"vegaChangeEventEmitter",void 0),W([w()],G.prototype,"vegaPageSizeChangeEventEmitter",void 0),W([w()],G.prototype,"vegaComponentUsageRuntimeMetricsSlimmer",void 0),W([w()],G.prototype,"vegaPaginationPageSizeObserverController",void 0),W([w()],G.prototype,"vegaPaginationCurrentPageObserverController",void 0),W([w()],G.prototype,"breakpointPageResizeObserverSlimmer",void 0),W([w()],G.prototype,"vegaPaginationLayoutController",void 0),G.style=':host{display:flex;align-items:center;line-height:normal;flex-wrap:wrap}:host(.vega-pagination-horizontal){flex-direction:row;justify-content:space-between}:host(.vega-pagination-vertical){flex-direction:column;gap:16px;justify-content:center}@media (min-width: 320px){:host(.vega-pagination-horizontal){gap:4px}}@media (min-width: 768px){:host(.vega-pagination-horizontal){gap:24px}}.vega-pagination{display:flex;padding:0px;margin:0px}.vega-pagination .vega-pagination-item{list-style-type:none;display:inline-flex;align-items:center;justify-content:center;min-width:32px;height:32px;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;color:rgba(var(--v-text-link, 19, 98, 226, 1));cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-pagination .vega-pagination-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-pagination .vega-pagination-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-pagination .vega-pagination-item{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.vega-pagination .vega-pagination-item button{background-color:rgba(var(--v-bg-transparent, 0, 0, 0, 0));border-width:0px;outline:2px solid transparent;outline-offset:2px;width:100%;height:100%;cursor:pointer;font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px;color:rgba(var(--v-text-link, 19, 98, 226, 1))}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-pagination .vega-pagination-item button{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-pagination .vega-pagination-item button{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-pagination .vega-pagination-item button{font-family:"Inter", sans-serif;font-size:14px;font-weight:400;line-height:18px}}.vega-pagination .vega-pagination-item.pager-ellipsis{cursor:default}.vega-pagination .vega-pagination-item:not(.pager-ellipsis):not(:active):hover{text-decoration:underline;text-underline-offset:2px}.vega-pagination .vega-pagination-item button:active,.vega-pagination .vega-pagination-item.active button{color:rgba(var(--v-text-primary, 32, 54, 69, 1));font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}@media screen and (min-width: 768px) and (max-width: 1023px){.vega-pagination .vega-pagination-item button:active,.vega-pagination .vega-pagination-item.active button{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1024px) and (max-width: 1439px){.vega-pagination .vega-pagination-item button:active,.vega-pagination .vega-pagination-item.active button{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}@media screen and (min-width: 1440px) and (max-width: 9999px){.vega-pagination .vega-pagination-item button:active,.vega-pagination .vega-pagination-item.active button{font-family:"Inter", sans-serif;font-size:14px;font-weight:700;line-height:18px}}.vega-pagination .vega-pagination-item button:focus-visible{outline:2px solid rgba(var(--v-border-color-action, 19, 98, 226, 1));outline-offset:0px;border-radius:9999px}.vega-pagination .vega-pagination-button{list-style-type:none;display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}';export{G as vega_pagination}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as t}from"./p-6b2342e0.js";import{a as e}from"./p-8c9ea6f4.js";import{c as o,V as s}from"./p-6e1ab235.js";import{A as r,O as i,b as n,$ as c,y as l,F as
|
|
1
|
+
import{h as t}from"./p-6b2342e0.js";import{a as e}from"./p-8c9ea6f4.js";import{c as o,V as s}from"./p-6e1ab235.js";import{A as r,O as i,b as n,$ as c,y as l,F as a}from"./p-0cdb38d3.js";import{D as h,a as u,R as d,S as p,f}from"./p-447c7590.js";import{a as v}from"./p-ef9cbad1.js";import{g as b}from"./p-4e13a26f.js";var m=function(t,e,o,s){var r,i=arguments.length,n=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,o,s);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(n=(i<3?r(n):i>3?r(e,o,n):r(e,o))||n);return i>3&&n&&Object.defineProperty(e,o,n),n};class C extends s{constructor({icon:e,tooltip:o,autoFocusOnClick:s=!0}){super(),this.renderBtn=({showArrowIcon:e,iconColor:o}={})=>{var s;return t("vega-tooltip",{text:this.translationSlimmer.t(this.tooltip.text),placement:["bottom","top"]},t("vega-rich-text-editor-toolbar-button",Object.assign({showArrowIcon:e,icon:this.icon,iconColor:o,ref:t=>{h.addUniqueObserverToNode(t,u,(()=>{this.handleClick()}))},selected:this.isSelected(),disabled:this.isDisabled(),hidden:this.isHidden()},this.preventLostFocus()),null===(s=this.renderSlotContent)||void 0===s?void 0:s.call(this)))},this.handleClick=()=>{"function"==typeof this.onClick&&(!this.selectionController.getSelectedNodes().length&&this.autoFocusOnClick?this.focusController.focusOnLastTextNode().then((()=>{this.onClick()})):this.onClick())},this.icon=e,this.tooltip=o,this.autoFocusOnClick=s}setIcon(t){this.icon=t}isHidden(){return!1}render(){return"function"==typeof this.renderBtnWrapper?this.renderBtnWrapper(this.renderBtn):this.renderBtn()}isDisabled(){return this.disabled}preventLostFocus(){return{onMouseDown:t=>t.preventDefault()}}}m([o()],C.prototype,"translationSlimmer",void 0),m([o()],C.prototype,"selectionController",void 0),m([o()],C.prototype,"focusController",void 0),m([o()],C.prototype,"disabled",void 0);class w extends C{constructor(t){super(t)}isHidden(){return this.sourceView}isDisabled(){return super.isDisabled()&&!this.sourceView}shouldDisabledToolbar(t,e){return t&&!r.canHandle(e,t)}}!function(t,e,o,s){var r,i=arguments.length,n=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,o,s);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(n=(i<3?r(n):i>3?r(e,o,n):r(e,o))||n);i>3&&n&&Object.defineProperty(e,o,n)}([o()],w.prototype,"sourceView",void 0);var g=function(t,e,o,s){var r,i=arguments.length,n=i<3?e:null===s?s=Object.getOwnPropertyDescriptor(e,o):s;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)n=Reflect.decorate(t,e,o,s);else for(var c=t.length-1;c>=0;c--)(r=t[c])&&(n=(i<3?r(n):i>3?r(e,o,n):r(e,o))||n);return i>3&&n&&Object.defineProperty(e,o,n),n};class x extends w{constructor(){super({icon:"text",tooltip:{text:"Text Color"}}),this.popoverShow=!1,v.registerCustomDarkModeColor(x.formatDarkModeColor())}static formatDarkModeColor(){return i.reduce(((t,e)=>(e.dark&&(t[`rich-text-editor-${e.key}`]=e.dark),t)),{})}renderSlotContent(){return t("div",{class:{"toolbar-btn-color-preview-box":!0,disabled:this.isDisabled()},style:{backgroundColor:this.getCurrentColor()}})}handlePopoverShowChange(){this.popoverShow=!0}handlePopoverHideChange(){this.popoverShow=!1}renderBtnWrapper(e){return t("vega-popover",{placement:"bottom",alignment:"center",ref:t=>{this.popoverRef=t,h.addUniqueObserverToNode(t,d,this.handlePopoverShowChange.bind(this)),h.addUniqueObserverToNode(t,p,this.handlePopoverHideChange.bind(this))}},t("div",{slot:"popover-content"},e({showArrowIcon:!1})),t("div",Object.assign({slot:"popover",style:{userSelect:"none"}},super.preventLostFocus()),this.renderPopoverContent()))}renderPopoverContent(){return t("vega-color-picker",{isInline:!0,colors:i.map((t=>t[this.isInDarkMode?"dark":"light"])),ref:t=>{h.addUniqueObserverToNode(t,f,this.handleChange.bind(this))},value:this.getCurrentColor()})}async handleChange(t){this.popoverShow&&(this.selectionController.getSelectedNodes().length||await this.focusController.focusOnLastTextNode(),this.selectionController.getSelectedNodes().filter((t=>t instanceof n)).forEach((e=>e.apply(new c(this.matchColor(t.detail).key))))),this.popoverRef.hide()}matchColor(t){return i.find((e=>e[this.isInDarkMode?"dark":"light"]===t))}getCurrentColor(){let t=i[0];const e=this.selectionController.getSelectedNodes();return e.length>1&&(t=this.isSelectedSameColor(e)?this.getTextColor(e[0]):null),1===e.length&&(t=this.getTextColor(e[0])),t?t[this.isInDarkMode?"dark":"light"]:null}isSelected(){return!1}isSelectedSameColor(t){return t.every((e=>this.getTextColor(e).key===this.getTextColor(t[0]).key))}getTextColor(t){var e;return(null===(e=t.getAnnotationByType("TEXT_COLOR"))||void 0===e?void 0:e.textColor)||i[0]}isDisabled(){const t=this.selectionController.getSelectedNodes();return super.isDisabled()||t.some((t=>{var e;return(null===(e=t.getAnnotationByType(l.CODE))||void 0===e?void 0:e.code)||t.getAnnotationByType(l.LINK)||this.shouldDisabledToolbar(t,c.name)}))}}e.register({text:{icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512">\x3c!--! Font Awesome Pro 6.3.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. --\x3e<path fill="currentColor" d="M64 96v32c0 17.7-14.3 32-32 32s-32-14.3-32-32V80C0 53.5 21.5 32 48 32H224 400c26.5 0 48 21.5 48 48v48c0 17.7-14.3 32-32 32s-32-14.3-32-32V96H256l0 320h48c17.7 0 32 14.3 32 32s-14.3 32-32 32H144c-17.7 0-32-14.3-32-32s14.3-32 32-32h48l0-320H64z"/></svg>'}}),g([o()],x.prototype,"host",void 0),g([o()],x.prototype,"isInDarkMode",void 0),g([o()],x.prototype,"selectionController",void 0),g([o()],x.prototype,"focusController",void 0);const j=new class{constructor(){this.textNodeElements=new Map}register(t,e){this.textNodeElements.set(t,e)}getTextNodeElements(){return this.textNodeElements}};class y extends a{constructor(t,e){super(),this.isFlushable=!0,this.size=t,this.alt=e}toAnnotation(){return new b(this.size,this.alt)}}export{y as I,j as T,w as V,x as a,C as b}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{I as e,c as t,g as n}from"./p-a4670e23.js";import{a as o,g as s,D as a}from"./p-d9671d27.js";import{L as i,I as r}from"./p-6e1ab235.js";import{c}from"./p-6a334573.js";import{P as l}from"./p-7d9cd9c8.js";import{V as d}from"./p-4c192985.js";import{i as h}from"./p-bccee21e.js";import{c as p}from"./p-262ec334.js";import{R as u,a as f,E as g,U as y,b as m,h as b,c as v,V as E,B as I,I as T,d as C}from"./p-d4893487.js";import{s as k,A as O,a as x,R as A,M as D,b as L,c as R,d as S,e as w,f as N,g as V,I as _,h as j,i as B,j as M,k as P}from"./p-8506e8c3.js";import{a as K}from"./p-8c9ea6f4.js";import{i as H}from"./p-b1faebe0.js";import{V as F}from"./p-a7b5f497.js";import{D as $,V as z,a as Z}from"./p-447c7590.js";const U=[{payloadKey:"IS_LOAD_METHOD_CALLED",payloadDescription:"Indicate if the method load of public API VegaLoaderController is called",canAccept:(e,t)=>"VegaLoaderController"===e&&"load"===t,payloadValue:()=>!0},{payloadKey:"IS_CLOSE_METHOD_CALLED",payloadDescription:"Indicate if the method close of public API VegaLoaderController is called",canAccept:(e,t)=>"VegaLoaderController"===e&&"close"===t,payloadValue:()=>!0}];class G{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=t(G,["load","close"],U)}load(e={}){let t=e.containerSelector||"body",n=document.querySelector(t);if(n&&G.SPECIAL_ELEMENT_TO_WRAP_FULL_BODY.includes(n.tagName)&&(t="body",n=document.querySelector("body")),!n)return i.error("Container is not found by selector: ",t),null;const o=this.createLoadingIndicator(e.indicatorOptions),s=this.createLoader(t);return s.append(o),this.appendLoader(s,n)}close(e){const t=this.findLoader(e);if(t){if(t.dataset.container){const e=document.querySelector(t.dataset.container);e&&e.dataset.vegaLoaderOriginPosition&&(e.style.position=e.dataset.vegaLoaderOriginPosition)}t.remove()}}findLoader(e){var t,n;let o;if(e.includes(">>>")){const[s,a]=e.split(">>>");o=null===(n=null===(t=document.querySelector(s))||void 0===t?void 0:t.shadowRoot)||void 0===n?void 0:n.getElementById(a)}else o=document.getElementById(e);return o}createLoader(e){const t=document.createElement("vega-loader-wrapper");return t.className=o(["body"===e?"fixed-wrapper":"absolute-wrapper"]),t.dataset.container=e,t.id=`vega-loader-${n()}`,t}createLoadingIndicator(e={}){const t=document.createElement("vega-loading-indicator");return Object.assign(t,e),t}appendLoader(e,t){return t.dataset.vegaLoaderOriginPosition=t.style.position,t.style.position="relative",t.shadowRoot?(t.shadowRoot.append(e),`${e.dataset.container}>>>${e.id}`):(t.append(e),e.id)}}G.SPECIAL_ELEMENT_TO_WRAP_FULL_BODY=["VEGA-MODAL"],function(e,t,n,o){var s,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(i=(a<3?s(i):a>3?s(t,n,i):s(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([e()],G.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const J=new G,X=new class{constructor(){this.baseBasicZIndex=1e4,this.topBasicZIndex=11e3,this.levelEntry={base:{zIndex:this.baseBasicZIndex,elements:[]},top:{zIndex:this.topBasicZIndex,elements:[]}}}setZIndex(e,t="base"){if(null===e)return;this.removeZIndex(e,t);const n=this.levelEntry[t];e&&n&&("base"===t&&this.isBaseLevelOver()&&(i.warn("The max 'z-index' of base level is '11000', but the current 'z-index' is over, Please optimize the use of 'z-index', otherwise there will be some performance overhead."),this.increaseTopEntry()),n.elements.push(e),n.zIndex+=1,e.style.zIndex=n.zIndex.toString())}removeZIndex(e,t="base"){if(null===e)return;const n=this.levelEntry[t];if(e&&n){let t=-1;n.elements.forEach(((n,o)=>{n===e&&(t=o),t>=0&&o>t&&(n.style.zIndex=""+(p(n.style.zIndex)-1))})),t>=0&&(e.style.removeProperty("z-index"),n.elements.splice(t,1),n.zIndex-=1)}}overrideZIndexBasicValues(e){const t=this.formatZIndexBasicValues(e);this.validBasicValues(t)&&this.updateBasicValues(t)}formatZIndexBasicValues(e){return Object.assign({base:this.baseBasicZIndex,top:this.topBasicZIndex},e)}validBasicValues(e){return"number"!=typeof e.base||"number"!=typeof e.top?(i.error("Change z-index basic value failed, both base level and top level should be of type number!"),!1):!(e.base>=e.top&&(i.error("Change z-index basic value failed, the base level should be smaller than the top level!"),1))}updateBasicValues(e){this.baseBasicZIndex=e.base,this.topBasicZIndex=e.top;const t=this.levelEntry.base;t.elements.forEach(((e,t)=>{e.style.zIndex=`${this.baseBasicZIndex+t+1}`})),t.zIndex=this.baseBasicZIndex+t.elements.length;const n=this.levelEntry.top;n.elements.forEach(((e,t)=>{e.style.zIndex=`${this.topBasicZIndex+t+1}`})),n.zIndex=this.topBasicZIndex+n.elements.length}increaseTopEntry(){const e=this.levelEntry.top;e.elements.forEach((e=>{e.style.zIndex=`${p(e.style.zIndex)+1}`})),e.zIndex+=1}isBaseLevelOver(){return this.levelEntry.base.zIndex>=this.topBasicZIndex}},q=[{payloadKey:"IS_OPEN_METHOD_CALLED",payloadDescription:"Indicate if the method open of public API VegaNotifyController is called",canAccept:(e,t)=>"VegaNotifyController"===e&&"open"===t,payloadValue:()=>!0},{payloadKey:"IS_CLOSE_METHOD_CALLED",payloadDescription:"Indicate if the method close of public API VegaNotifyController is called",canAccept:(e,t)=>"VegaNotifyController"===e&&"close"===t,payloadValue:()=>!0},{payloadKey:"IS_CLOSEALL_METHOD_CALLED",payloadDescription:"Indicate if the method closeAll of public API VegaNotifyController is called",canAccept:(e,t)=>"VegaNotifyController"===e&&"closeAll"===t,payloadValue:()=>!0}];var Q=function(e,t,n,o){var s,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(i=(a<3?s(i):a>3?s(t,n,i):s(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i};class Y{constructor(){this.resizeObserverSlimmer=c(Y,l,[],[{mapFrom:"connectResizeObserver",mapTo:"connectResizeObserver"}],[{callback:e=>{var t;!(e[0].contentRect.height>0)&&(null===(t=this.container)||void 0===t?void 0:t.classList.contains("hydrated"))&&(X.removeZIndex(this.container,"top"),this.container.remove(),this.container=null)},target:()=>this.container}]),this.vegaPublicAPIRuntimeMetricsSlimmer=t(Y,["open","close","closeAll"],q)}async open(e){const t=this.createPageNotification(e);return this.getContainer().append(t),t.id}async closeAll(){this.container&&Array.from(this.container.children).forEach((e=>{e.close()}))}async close(e){await document.getElementById(e).close()}connectResizeObserver(){}createPageNotification(e){const t=document.createElement("vega-page-notification");return Object.keys(e).forEach((n=>{void 0!==e[n]&&(t[n]=e[n])})),t.style.marginBottom=s()===a.MOBILE?"12px":"16px",t.id=`vega-page-notification-${n()}`,t}getContainer(){return this.container||(this.container=document.createElement("vega-page-notification-list"),X.setZIndex(this.container,"top"),s()===a.MOBILE?this.container.classList.add("vega-page-notification-list-bottom"):this.container.classList.add("vega-page-notification-list-topRight"),document.body.append(this.container),this.connectResizeObserver()),this.container}}Q([r()],Y.prototype,"resizeObserverSlimmer",void 0),Q([e()],Y.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const W=new Y,ee=[{payloadKey:"IS_OVERRIDECOLORS_METHOD_CALLED",payloadDescription:"Indicate if the method overrideColors of public API ThemeManager is called",canAccept:(e,t)=>"ThemeManager"===e&&"overrideColors"===t,payloadValue:()=>!0},{payloadKey:"IS_RESET_METHOD_CALLED",payloadDescription:"Indicate if the method reset of public API ThemeManager is called",canAccept:(e,t)=>"ThemeManager"===e&&"reset"===t,payloadValue:()=>!0},{payloadKey:"IS_TOGGLEDARKMODE_METHOD_CALLED",payloadDescription:"Indicate if the method toggleDarkMode of public API ThemeManager is called",canAccept:(e,t)=>"ThemeManager"===e&&"toggleDarkMode"===t,payloadValue:()=>!0},{payloadKey:"IS_ISDARKMODE_METHOD_CALLED",payloadDescription:"Indicate if the method isDarkMode of public API ThemeManager is called",canAccept:(e,t)=>"ThemeManager"===e&&"isDarkMode"===t,payloadValue:()=>!0},{payloadKey:"IS_APPLY_BRANDING_METHOD_CALLED",payloadDescription:"Indicate if the method applyBranding of public API ThemeManager is called",canAccept:(e,t)=>"ThemeManager"===e&&"applyBranding"===t,payloadValue:()=>!0}];class te{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=t(te,["overrideColors","reset","toggleDarkMode","isDarkMode","applyBranding"],ee)}async overrideColors(e){d.overrideColors(e)}async reset(){d.reset()}toggleDarkMode(e){d.toggleDarkMode(e)}isDarkMode(){return d.isDarkMode()}applyBranding(e){d.applyBranding(e)}}!function(e,t,n,o){var s,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(i=(a<3?s(i):a>3?s(t,n,i):s(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([e()],te.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const ne=new te,oe=[{payloadKey:"IS_OPEN_METHOD_CALLED",payloadDescription:"Indicate if the method open of public API VegaDialogController is called",canAccept:(e,t)=>"VegaDialogController"===e&&"open"===t,payloadValue:()=>!0}];class se{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=t(se,["open"],oe)}open(e){const t=document.createElement("vega-dialog"),{isVerticallyCenter:o,isVerticallyCentered:s,showCloseButton:a,size:i,title:r,handleClose:c}=e,l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(n[o[s]]=e[o[s]])}return n}(e,["isVerticallyCenter","isVerticallyCentered","showCloseButton","size","title","handleClose"]);return t.id=`vega-dialog-${n()}`,t.dialogTitle=r,t.modalProps={isVerticallyCenter:o,isVerticallyCentered:s,showCloseButton:a,size:i,handleClose:c},Object.keys(l).forEach((e=>{void 0!==l[e]&&(t[e]=l[e])})),document.body.append(t),t}}!function(e,t,n,o){var s,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(i=(a<3?s(i):a>3?s(t,n,i):s(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([e()],se.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const ae=new se,ie=[{payloadKey:"IS_SETSEMANTICS_METHOD_CALLED",payloadDescription:"Indicate if the method setSemantics of public API VegaEventManager is called",canAccept:(e,t)=>"VegaEventManager"===e&&"setSemantics"===t,payloadValue:()=>!0},{payloadKey:"IS_GETSEMANTICS_METHOD_CALLED",payloadDescription:"Indicate if the method getSemantics of public API VegaEventManager is called",canAccept:(e,t)=>"VegaEventManager"===e&&"getSemantics"===t,payloadValue:()=>!0},{payloadKey:"IS_GETENABLEDEVENTIDSBYCOMPONENT_METHOD_CALLED",payloadDescription:"Indicate if the method getEnabledEventIdsByComponent of public API VegaEventManager is called",canAccept:(e,t)=>"VegaEventManager"===e&&"getEnabledEventIdsByComponent"===t,payloadValue:()=>!0},{payloadKey:"globalEventIsNative",payloadDescription:"Indicate if the vega components will emit events without the vega prefix",canAccept:(e,t)=>"VegaEventManager"===e&&"setSemantics"===t,payloadValue:e=>!(!e.global||"native"!==e.global.namespace)},{payloadKey:"eventOfSpecificComponentsIsNative",payloadDescription:"Indicate if the vega components will emit events with the vega prefix, but special components will emit events without vega prefix",canAccept:(e,t)=>"VegaEventManager"===e&&"setSemantics"===t,payloadValue:e=>{const t=e;if(t.components){const e=Object.keys(t.components);return!!(e.length>0&&"native"===t.components[e[0]].namespace)}return!1}},{payloadKey:"eventOfSpecificComponentsIsVega",payloadDescription:"Indicate if the vega components will emit events without the vega prefix, but special components will emit events with vega prefix",canAccept:(e,t)=>"VegaEventManager"===e&&"setSemantics"===t,payloadValue:e=>{const t=e;if(t.global&&t.components){const e=Object.keys(t.components);return!!("native"===t.global.namespace&&e.length>0&&"vega"===t.components[e[0]].namespace)}return!1}},{payloadKey:"globalJqueryDelegatedEventIsTrue",payloadDescription:"Indicate if the use jQuery with event delegation",canAccept:(e,t)=>"VegaEventManager"===e&&"setSemantics"===t,payloadValue:e=>!(!e.global||!0!==e.global.jqueryDelegatedEvent)},{payloadKey:"jqueryDelegatedEventIsCustomStrategy",payloadDescription:"Indicate if the use jQuery with event delegation",canAccept:(e,t)=>"VegaEventManager"===e&&"setSemantics"===t,payloadValue:e=>{const t=e;return!!(t.global&&Array.isArray(t.global.jqueryDelegatedEvent)&&t.global.jqueryDelegatedEvent.length>0)}},{payloadKey:"jqueryDelegatedEventOfSpecialComponentsIsTrue",payloadDescription:"Indicate if the use jQuery with event delegation",canAccept:(e,t)=>"VegaEventManager"===e&&"setSemantics"===t,payloadValue:e=>{const t=e;if(t.components){const e=Object.keys(t.components);return!!(e.length>0&&!0===t.components[e[0]].jqueryDelegatedEvent)}return!1}}];class re{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=t(re,["setSemantics","getSemantics","getEnabledEventIdsByComponent"],ie)}setSemantics(e){h.setSemantics(e)}getSemantics(e){return h.getSemantics(e)}getEnabledEventIdsByComponent(e){return h.getEnabledEventIdsByComponent(e)}}!function(e,t,n,o){var s,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(i=(a<3?s(i):a>3?s(t,n,i):s(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([e()],re.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const ce=new re,le=[{payloadKey:"IS_OVERRIDEZINDEXBASICVALUES_METHOD_CALLED",payloadDescription:"Indicate if the method overrideZIndexBasicValues of public API ZIndexManager is called",canAccept:(e,t)=>"VegaZIndexManager"===e&&"overrideZIndexBasicValues"===t,payloadValue:()=>!0},{payloadKey:"zIndexBasicValuesGreatThanTenThousand",payloadDescription:"Indicate if the basic z-index value is great than ten thousand",canAccept:(e,t)=>"VegaZIndexManager"===e&&"overrideZIndexBasicValues"===t,payloadValue:e=>e.base>1e4}];class de{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=t(de,["overrideZIndexBasicValues"],le)}overrideZIndexBasicValues(e){X.overrideZIndexBasicValues(e)}}!function(e,t,n,o){var s,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(i=(a<3?s(i):a>3?s(t,n,i):s(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([e()],de.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const he=new de,pe=[{payloadKey:"IS_LOAD_METHOD_CALLED",payloadDescription:"Indicate if the method load of public API VegaSkeletonLoaderController is called",canAccept:(e,t)=>"VegaSkeletonLoaderController"===e&&"load"===t,payloadValue:()=>!0},{payloadKey:"IS_UNLOAD_METHOD_CALLED",payloadDescription:"Indicate if the method unLoad of public API VegaSkeletonLoaderController is called",canAccept:(e,t)=>"VegaSkeletonLoaderController"===e&&"unLoad"===t,payloadValue:()=>!0},{payloadKey:"IS_UNLOADALL_METHOD_CALLED",payloadDescription:"Indicate if the method unLoadAll of public API VegaSkeletonLoaderController is called",canAccept:(e,t)=>"VegaSkeletonLoaderController"===e&&"unLoadAll"===t,payloadValue:()=>!0}];class ue{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=t(ue,["load","unLoad","unLoadAll"],pe),this.loaderMap=new Map}load({target:e,type:t="text",width:o,height:s,items:a,layout:i}){const r=Array.from(document.body.querySelectorAll(e)),c=`vega-skeleton-loader-${n()}`,l=[];return r.forEach((e=>{const n=a?a.map(this.createSkeleton):[this.createSkeleton({type:t,width:o,height:s})],r=(i?[this.wrapLayout(n,i)]:n).map((e=>(e.dataset[ue.LOADER_DATA_SET_KEY]=c,e)));l.push(...r),e.append(...r)})),this.loaderMap.set(c,l),c}unLoad(e){this.loaderMap.has(e)&&(this.loaderMap.get(e).forEach((e=>e.remove())),this.loaderMap.delete(e))}unLoadAll(){for(const e of this.loaderMap.values())e.forEach((e=>e.remove()));this.loaderMap.clear()}createSkeleton(e){const{type:t,width:n,height:o}=e,s=document.createElement("vega-skeleton");return Object.assign(s,{animated:!0,type:t,width:n,height:o}),s}wrapLayout(e,t){const n=document.createElement("vega-flex");return Object.assign(n,Object.assign({className:"vega-skeleton-loader-template-container"},t.props)),Object.assign(n.style,t.style),n.append(...e),n}}ue.LOADER_DATA_SET_KEY="vegaSkeletonLoaderKey",function(e,t,n,o){var s,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(i=(a<3?s(i):a>3?s(t,n,i):s(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([e()],ue.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const fe=new ue;class ge extends F{injectRTEScopeStyles(){return""}render(e,t,n){const o=this.doRender(n,e,t);return this.fallbackRegisterRef(o,e),this.appendChildren(o,e,t,n),o}useRef(e){return e[ge.REGISTER_REF_FLAG]=!0,function(t){t&&k.register(t,e)}}getDTORenderer(e){return u.getRTERenderer(e)}appendChildren(e,t,n,o){Array.isArray(t.children)&&t.children.length&&!e.t&&(e.t=t.children.map((e=>this.renderChildren(e,n,o))).filter(H))}renderChildren(e,t,n){const o=this.getDTORenderer(e.type);if(o)return o.render(e,t,n)}fallbackRegisterRef(e,t){!t[ge.REGISTER_REF_FLAG]&&e.o&&(e.o.ref=this.useRef(t))}}ge.REGISTER_REF_FLAG="__registeredRef__";class ye{constructor(){this.extensionContext=null,this.hasCustomStylesRenderers=new Set}static registerActionHandleStrategy(e,t,n){O.register(t,e,n)}static registerActionHandlerInterceptor(e,t,n){x.register(t,e,n)}initialExtension(e){this.extensionContext=e}collectExtensionRendererStyles(){let e="";return this.hasCustomStylesRenderers.size>0&&this.hasCustomStylesRenderers.forEach((t=>{e+=`${t.injectRTEScopeStyles()}\n`})),e}registerNode(e,t){A.registerRTEDTOClass(e,t)}registerRenderer(e,t){u.registerRTEDTORenderer(e,t),t instanceof ge&&t.injectRTEScopeStyles()&&this.hasCustomStylesRenderers.add(t)}registerToolbarButtonRenderer(e,t){u.registerRTEToolbarButtonRenderer(e,t)}registerBlockBasicStrategies(e){f.registerBlockBasicStrategies(e)}unRegisterStrategy(e,t){O.unregister(e,t)}unRegisterInterceptor(e,t,n){x.unregister(e,t,n)}registerElementToBlockDTOClassStrategy(e){g.registerElementToBlockStrategy(e)}registerElementToNodeDTOClassStrategy(e){g.registerElementToNodeStrategy(e)}getElementToNodeDTOClassStrategies(){return g.getElementToNodeStrategies()}}class me{isHidden(e){return e.sourceEditMode}renderDropdown(e,t,n,o){return e("vega-dropdown",Object.assign({trigger:"click",searchable:!1,maxWidth:"200",itemDisplayRule:"ellipsis",ref:e=>{$.addUniqueObserverToNode(e,z,(e=>this.handleDropdownClick(e.detail,t)))}},n),o)}renderDropdownListTemplate(e,t){return e("div",{slot:"items",onMouseDown:this.preventDefault},t.map((t=>"children"in t?this.renderDropdownGroup(e,t):this.renderDropdownItem(e,t))))}renderDropdownItem(e,t){return e("vega-dropdown-item",{key:t.key,itemKey:t.key,label:t.label,prefixIcon:t.icon})}renderDropdownGroup(e,t){return e("vega-dropdown-group",{key:t.key,label:t.label,divide:!1},t.children.map((t=>"children"in t?this.renderDropdownGroup(e,t):this.renderDropdownItem(e,t))))}renderButton(e,t,n){const{icon:o,label:s,showArrowIcon:a}=n,i=this.isDisabled(t);return e("vega-rich-text-editor-toolbar-button",{disabled:i,icon:o,hidden:this.isHidden(t),selected:this.isSelected(t),ref:e=>{$.addUniqueObserverToNode(e,Z,(()=>this.handleButtonClick(t)))},onMouseDown:this.preventDefault},[this.renderButtonLabel(e,t,s),a?e("vega-icon",{size:"size-8",color:i?"text-disabled":"text-secondary",style:{marginLeft:"8px"},icon:K.getIconKey("chevron-down")}):null].filter(H))}renderButtonLabel(e,t,n){return n?e("vega-font",{variant:"font-field-label-sm",color:this.isDisabled(t)?"text-disabled":"text-primary"},n):null}isDisabled(e){return e.host.disabled}isSelected(e){return!1}preventDefault(e){e.preventDefault()}getListItemByKey(e,t){for(const n of e)if("children"in n){const e=this.getListItemByKey(n.children,t);if(e)return e}else if(n.key===t)return n;return null}}class be extends D{constructor(e,t){super(),this.type="INSERT_TOKEN_NODE",this.rteRange=null,this.actionHandleResult=!1,this.rteRange=e,this.token=t}}class ve extends me{constructor(e){super(),this.tokenList=[],this.extensionContext=null,this.tokenList=e}injectExtensionContext(e){this.extensionContext=e}render(e,t){return this.renderDropdown(e,t,{},[this.renderButton(e,t,{label:"Tokens",showArrowIcon:!0}),this.renderDropdownListTemplate(e,this.tokenList)])}isDisabled(){if(this.extensionContext){const{host:e,getSelectedNodes:t}=this.extensionContext,[n]=t();return n?e.disabled||!O.canHandle("INSERT_TOKEN_NODE",n.parent):e.disabled}return!1}handleButtonClick(e){}handleDropdownClick(e,t){const n=this.getListItemByKey(this.tokenList,e),{rteRange:o}=t,{startNode:s}=o;if(s&&s.parent){const e=new be(o,n);s.parent.apply(e),e.actionHandleResult&&this.flushEditorUI()}}flushEditorUI(){if(this.extensionContext){const{host:e,flushValue:t}=this.extensionContext;t(e.value)}}}class RTETokenNode extends L{constructor(e,t,n,o,s){super(e,n,o,s),this.type="token",this.token=t,this.text=n}static from(e,t){const n=new RTETokenNode(e.id,e.token,e.text,t);return e.annotations&&(n.annotationMap=this.generateTextAnnotationMap(e.annotations)),n}toJSON(){const e=super.toJSON();return Object.assign({id:this.id,type:this.type,text:this.text,token:this.token},e.annotations?{annotations:e.annotations}:{})}isContentEditable(){return!1}clone(e){return new RTETokenNode(this.id,this.token,this.text,e,this.annotationMap)}toHtml(){return`<span class="token" contenteditable="false" template-token-key="${this.token}" token-key="${this.token}" ${super.generateAttributeString()}>${this.text}</span>`}}class Ee extends ge{constructor(){super(...arguments),this.extensionContext=null}doRender(e,t,n){const{id:o,token:s}=t;return e("span",{key:o,"template-token-key":s,"token-key":s,contenteditable:"false",style:t.getStyles(),class:`token ${t.getClasses()}`,ref:this.useRef(t),onClick:e=>{e.preventDefault(),n&&!1!==n.editable&&this.handleTokenElementClick(e,t)}},t.text)}injectExtensionContext(e){this.extensionContext=e}injectRTEScopeStyles(){return"span[token-key]{padding: 0 2px; margin: 0 1px; background-color: rgba(var(--v-bg-status-info, 205,209,211))}"}handleTokenElementClick(e,t){e.preventDefault(),this.extensionContext&&this.extensionContext.host.value.apply(new y(t,void 0,!0))}}class Ie extends D{constructor(e,t){super(),this.type=R.INSERT_NODE_TO_NEAREST_ROOT,this.rteRange=e,this.nodeToBeInserted=t}}class Te extends S{handleAction(e,t){const{rteRange:o,token:s}=e;if(o&&o.startNode){const a=new RTETokenNode(n(),s.key,s.label,t);t.apply(new Ie(o,a)),e.actionHandleResult=!0}}}const Ce=new class extends m{canHandle(e,t){const n=e[t];return"SPAN"===n.nodeName&&n.classList.contains("token")&&n.hasAttribute("token-key")?1:0}handle(e){const t=e[0],o=t.getAttribute("token-key"),s=t.textContent,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(n[o[s]]=e[o[s]])}return n}(b.generate(L,t),["customAttribute","customClass"]);return{id:n(),type:"token",token:o,text:s,annotations:Object.assign({},a)}}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}};class ke extends ye{constructor(e=[]){super(),this.tokenRenderer=new Ee,this.registerNode("token",RTETokenNode),this.registerRenderer("token",this.tokenRenderer),this.tokenToolbarButtonRenderer=new ve(e),this.registerToolbarButtonRenderer("token",this.tokenToolbarButtonRenderer),this.registerElementToNodeDTOClassStrategy(Ce)}initialExtension(e){super.initialExtension(e),this.tokenRenderer.injectExtensionContext(e),this.tokenToolbarButtonRenderer&&this.tokenToolbarButtonRenderer.injectExtensionContext(e)}}(()=>{const e=new Te;ye.registerActionHandleStrategy(w.name,"INSERT_TOKEN_NODE",e),ye.registerActionHandleStrategy(v.name,"INSERT_TOKEN_NODE",e)})();class Oe extends D{constructor(e){super(),this.type="INSERT_FUNCTION_BLOCK",this.functionType=e}}class RTEFunctionBlock extends N{constructor(e){super(e),this.type="function-block",this.children=[]}static from(e,t){const n=new RTEFunctionBlock(e.id),o={customClass:["statement"]};let{annotations:s}=e;return s=s?Object.assign(Object.assign({},s),o):o,super.convertAnnotationsToMap(n.annotationMap,s),n.children=this.generateBlockChildren(e.children,t,n),n}toHtml(){return`<div class="statement">${this.children.map((e=>e instanceof w?`<div class="statementelement"${this.getFunctionContentStyle(e)}>${e.getChildrenHtml()}</div>`:e.toHtml())).join("")}</div>`}clone(e){const t=new RTEFunctionBlock(n());return t.parent=e,t.children=this.children.map((e=>e.clone(t))),t.annotationMap=super.cloneAnnotations(),t}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return this.children.length>0}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,children:this.children.map((e=>e.toJSON()))})}getFunctionContentStyle(e){const t=new V(e);let n=t.toCssText({standalone:!0});const o=e.getAnnotationByType("TEXT_STYLE");if(o&&"paragraph"===o.textStyle){const e=t.toCssText(void 0,void 0,o.renderStyle({standalone:!0}));n=n.replace(e,"").trim()}return n?` style="${n}"`:""}}class xe extends S{handleAction(e,t){const{functionType:n}=e,o=this.getFunctionBlock(n),s=this.createNewParagraph(""),a=this.getReferenceBlock(t);a?a.parent.apply(new _(a,o,s)):t.apply(new j([o,s])),s&&(e.nextFocusNode=s.children[0])}getFunctionBlock(e){const t=n();return RTEFunctionBlock.from({id:t,type:"function-block",children:[{id:`${t}-1`,type:"logic-control-block",statementText:e.toUpperCase()},{id:`${t}-2`,annotations:{customClass:["statementelement"]},type:"paragraph",nodes:[{id:`${t}-2-1`,type:"text",text:" "}]},{id:`${t}-3`,type:"logic-control-block",statementText:"SHOW"},{id:`${t}-4`,annotations:{customClass:["statementelement"]},type:"paragraph",nodes:[{id:`${t}-4-1`,type:"text",text:" "}]}]})}getReferenceBlock(e){if(!(e instanceof E)){const t=e.parent;return t instanceof RTEFunctionBlock?t:e}}}class RTELogicControlNode extends B{constructor(e,t,n){super(e),this.type="logic-control-node",this.text="",this.text=t,this.parent=n}clone(){return new RTELogicControlNode(this.id,this.text,this.parent)}toHtml(){return this.text}toJSON(){return{id:this.id,type:this.type,text:this.text}}getRangeEndOffset(){return 1}getRangeContainer(){const e=k.getDOMByEntity(this);if(e)return e.parentElement}isContentEditable(){return!1}}class RTELogicControlBlock extends N{constructor(e,t,n){super(e),this.type="logic-control-block",this.children=[],this.statementText="",this.statementText=t,this.children=[new RTELogicControlNode(`${e}-node-1`,t,this)],n&&(this.parent=n)}static from(e){return new RTELogicControlBlock(e.id,e.statementText)}isNotEmpty(){return!0}getLastNode(){return this.children[this.children.length-1]}toHtml(){return`<div class='statementsyntax' contenteditable='false'>${this.statementText}</div>`}clone(e){return new RTELogicControlBlock(this.id,this.statementText,e)}toJSON(){return{id:this.id,type:this.type,statementText:this.statementText}}}class Ae extends me{injectExtensionContext(e){this.extensionContext=e}render(e,t){return this.renderDropdown(e,t,{},[this.renderButton(e,t,{label:"Functions",showArrowIcon:!0}),this.renderDropdownListTemplate(e,Ae.FUNCTION_LIST)])}isDisabled(){if(this.extensionContext){const{host:e,getSelectedNodes:t}=this.extensionContext,n=t()[0];let o=!0;return n&&(o=O.canHandle("INSERT_FUNCTION_BLOCK",n.parent)),e.disabled||!o}return!1}handleButtonClick(){throw new Error("Method not implemented.")}handleDropdownClick(e){const{host:t,getSelectedNodes:n}=this.extensionContext,o=n()[0],s=new Oe(e);o?o.parent&&o.parent.apply(s):t.value.apply(s),s.nextFocusNode&&t.value.apply(new y(s.nextFocusNode,1))}}Ae.FUNCTION_LIST=[{key:"IF",label:"Conditional"},{key:"FOREACH",label:"Foreach"}];class De extends ge{doRender(e,t){return e("div",{key:t.id,class:"statementsyntax",ref:this.useRef(t)},e("span",{key:`${t.id}-1`,contenteditable:"false",ref:this.useRef(t.children[0])},t.statementText))}}class Le extends I{constructor(){super(...arguments),this.blockClassName="statementsyntax"}canHandle(e,t){const n=e[t];return n&&n.nodeType===Node.ELEMENT_NODE&&n.classList.contains(this.blockClassName)&&this.isFunctionBlockChild(n)?1:0}handle(e){const t=e[0];return RTELogicControlBlock.from({id:n(),type:"logic-control-block",statementText:t.innerText})}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}isFunctionBlockChild(e){return!(!e.parentElement||!e.parentElement.classList.contains("statement"))}}class Re extends ge{doRender(e,t){return e("div",{key:t.id,class:this.getElementClassName(t),ref:this.useRef(t)})}injectRTEScopeStyles(){return"div.statement{padding:2px 4px;background:rgba(var(--v-bg-accent3-secondary, 255, 239, 200));border:1px solid rgba(var(--v-bg-accent3-primary, 255, 220, 131));border-radius:4px;display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch;gap:4px}div.statement .statementsyntax{padding:3px 0;line-height:22px}.rich-text-content div.statement .statementsyntax,.rich-text-content div.statement .statementelement{display:inline-block}div.statement+div.statement{margin-top:2px}div.statement .statementsyntax span{color:rgb(38, 42, 255);font-weight:bold}div.statement .statementelement{padding:2px 4px;background:rgba(var(--v-bg-secondary, 245, 247, 247));border:1px solid rgba(var(--v-border-color-input-field, 171, 198, 216));border-radius:4px;margin:0;min-width:8px}"}getElementClassName(e){let t=e.getClasses();return t.indexOf("statement")<0&&(t="statement "+t),t.trim()}}class Se{}class we extends Se{canIntercept(e,t){return t.parent&&t.parent instanceof RTEFunctionBlock}intercept(e,t,n){const o=new T(n.children[0],0);o.isFlushable=!0,n.parent.apply(o)}}class Ne extends S{handleAction(e,t){const n=this.createNewParagraph("");n&&(t.parent.apply(new _(t,n)),e.newBlock=n,this.focusToNextLine(n))}focusToNextLine(e){const t=this.getRootContent(e);t&&t.apply(new y(e.children[0],1))}}class Ve extends D{constructor(e,t,n){super(),this.type="PASTE_PLAIN_TEXT",this.blocksToBeInserted=e,this.startNode=t,this.startOffset=n}}class _e extends we{intercept(e,t,n){const{blocksToBeInserted:o,rteRange:s}=t;let{startNode:a,startOffset:i}=t;s&&(a=s.startNode,i=s.startOffset);const r=new Ve(o,a,i);n.apply(r)}}class je extends S{handleAction(e,t){const{blocksToBeInserted:n,startNode:o,startOffset:s}=e;if(o instanceof L){const e=n.flatMap((e=>e instanceof w?(this.copyLinkGroupAnnotations(t.annotationMap,e.annotationMap),e.children):[]));e.length>0&&(t.apply(s>0?new _(o,...e):new M(o,...e)),this.focusToNextLine(e[e.length-1],e[e.length-1].getRangeEndOffset()))}}focusToNextLine(e,t){const n=this.getRootContent(e);n&&n.apply(new y(e,t))}copyLinkGroupAnnotations(e,t){if(t&&t.has(P.LINK_GROUP)){const n=t.get(P.LINK_GROUP);e.has(P.LINK_GROUP)?n.linkGroups.forEach(((t,n)=>{e.get(P.LINK_GROUP).linkGroups.set(n,t)})):e.set(P.LINK_GROUP,t.get(P.LINK_GROUP))}}}const Be=new Le,Me=new class extends Le{constructor(){super(...arguments),this.blockClassName="statementelement"}handle(e,t){const o=b.generate(w,e[0]),s=Array.from(e[0].childNodes);return w.from({id:n(),type:"paragraph",annotations:Object.assign({customClass:[this.blockClassName]},o),nodes:this.generateChildNodes(s,void 0,t)})}},Pe=new class extends m{canHandle(e,t){const n=e[t];return n&&"DIV"===n.tagName&&n.classList.contains("statement")&&n.childNodes.length&&n.querySelector(".statementsyntax")?1:0}handle(){return RTEFunctionBlock.from({id:n(),type:"function-block",annotations:{customClass:["statement"]},children:[]})}appendChildBlocks(e,t){e.children=t.map((t=>(t.parent=e,t)))}shouldProceedToElementChildren(){return!0}};class Ke extends ye{constructor(){super(),this.toolbarButtonRenderer=new Ae,this.registerBlockBasicStrategies(RTELogicControlBlock.name),this.registerBlockBasicStrategies(RTEFunctionBlock.name),this.preventFunctionBlockDefaultInsertNewParagraph(),this.registerNode("logic-control-block",RTELogicControlBlock),this.registerRenderer("logic-control-block",new De),this.registerNode("function-block",RTEFunctionBlock),this.registerRenderer("function-block",new Re),this.registerToolbarButtonRenderer("functions",this.toolbarButtonRenderer),this.registerElementToBlockDTOClassStrategy(Be),this.registerElementToBlockDTOClassStrategy(Me),this.registerElementToBlockDTOClassStrategy(Pe)}initialExtension(e){super.initialExtension(e),this.toolbarButtonRenderer&&this.toolbarButtonRenderer.injectExtensionContext(e)}preventFunctionBlockDefaultInsertNewParagraph(){this.unRegisterStrategy(R.INSERT_NEW_PARAGRAPH,RTELogicControlBlock.name),this.unRegisterStrategy(R.APPEND_CHILDREN,RTEFunctionBlock.name),this.unRegisterStrategy(R.INSERT_CHILDREN_AFTER,RTEFunctionBlock.name),this.unRegisterStrategy(R.INSERT_CHILDREN_BEFORE,RTEFunctionBlock.name),this.unRegisterStrategy(R.PASTE_CONTENT,RTELogicControlBlock.name),ye.registerActionHandleStrategy(RTEFunctionBlock.name,R.INSERT_NEW_PARAGRAPH,new Ne)}}(()=>{const e=new xe;ye.registerActionHandleStrategy(E.name,"INSERT_FUNCTION_BLOCK",e),ye.registerActionHandleStrategy(w.name,"INSERT_FUNCTION_BLOCK",e),ye.registerActionHandleStrategy(C.name,"INSERT_FUNCTION_BLOCK",e),ye.registerActionHandleStrategy(RTELogicControlBlock.name,"INSERT_FUNCTION_BLOCK",e),ye.registerActionHandleStrategy(w.name,"PASTE_PLAIN_TEXT",new je),ye.registerActionHandlerInterceptor(w.name,R.INSERT_NEW_PARAGRAPH,new we),ye.registerActionHandlerInterceptor(w.name,R.PASTE_CONTENT,new _e)})();export{Se as A,Ie as I,ve as R,J as V,W as a,ne as b,ae as c,ce as d,he as e,fe as f,ke as g,Ke as h,me as i,ye as j,ge as k,RTETokenNode as l,Ee as m,X as n}
|
|
1
|
+
import{I as e,c as t,g as n}from"./p-a4670e23.js";import{a as o,g as s,D as a}from"./p-d9671d27.js";import{L as i,I as r}from"./p-6e1ab235.js";import{c}from"./p-6a334573.js";import{P as l}from"./p-7d9cd9c8.js";import{V as d}from"./p-ef9cbad1.js";import{i as h}from"./p-bccee21e.js";import{c as p}from"./p-262ec334.js";import{R as u,a as f,E as g,U as y,b as m,h as b,c as v,V as E,B as I,I as T,d as C}from"./p-4e13a26f.js";import{s as k,A as O,a as x,R as A,M as D,b as L,c as R,d as S,e as w,f as N,g as V,I as _,h as j,i as B,j as M,k as P}from"./p-0cdb38d3.js";import{a as K}from"./p-8c9ea6f4.js";import{i as H}from"./p-b1faebe0.js";import{V as F}from"./p-a7b5f497.js";import{D as $,V as z,a as Z}from"./p-447c7590.js";const U=[{payloadKey:"IS_LOAD_METHOD_CALLED",payloadDescription:"Indicate if the method load of public API VegaLoaderController is called",canAccept:(e,t)=>"VegaLoaderController"===e&&"load"===t,payloadValue:()=>!0},{payloadKey:"IS_CLOSE_METHOD_CALLED",payloadDescription:"Indicate if the method close of public API VegaLoaderController is called",canAccept:(e,t)=>"VegaLoaderController"===e&&"close"===t,payloadValue:()=>!0}];class G{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=t(G,["load","close"],U)}load(e={}){let t=e.containerSelector||"body",n=document.querySelector(t);if(n&&G.SPECIAL_ELEMENT_TO_WRAP_FULL_BODY.includes(n.tagName)&&(t="body",n=document.querySelector("body")),!n)return i.error("Container is not found by selector: ",t),null;const o=this.createLoadingIndicator(e.indicatorOptions),s=this.createLoader(t);return s.append(o),this.appendLoader(s,n)}close(e){const t=this.findLoader(e);if(t){if(t.dataset.container){const e=document.querySelector(t.dataset.container);e&&e.dataset.vegaLoaderOriginPosition&&(e.style.position=e.dataset.vegaLoaderOriginPosition)}t.remove()}}findLoader(e){var t,n;let o;if(e.includes(">>>")){const[s,a]=e.split(">>>");o=null===(n=null===(t=document.querySelector(s))||void 0===t?void 0:t.shadowRoot)||void 0===n?void 0:n.getElementById(a)}else o=document.getElementById(e);return o}createLoader(e){const t=document.createElement("vega-loader-wrapper");return t.className=o(["body"===e?"fixed-wrapper":"absolute-wrapper"]),t.dataset.container=e,t.id=`vega-loader-${n()}`,t}createLoadingIndicator(e={}){const t=document.createElement("vega-loading-indicator");return Object.assign(t,e),t}appendLoader(e,t){return t.dataset.vegaLoaderOriginPosition=t.style.position,t.style.position="relative",t.shadowRoot?(t.shadowRoot.append(e),`${e.dataset.container}>>>${e.id}`):(t.append(e),e.id)}}G.SPECIAL_ELEMENT_TO_WRAP_FULL_BODY=["VEGA-MODAL"],function(e,t,n,o){var s,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(i=(a<3?s(i):a>3?s(t,n,i):s(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([e()],G.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const J=new G,X=new class{constructor(){this.baseBasicZIndex=1e4,this.topBasicZIndex=11e3,this.levelEntry={base:{zIndex:this.baseBasicZIndex,elements:[]},top:{zIndex:this.topBasicZIndex,elements:[]}}}setZIndex(e,t="base"){if(null===e)return;this.removeZIndex(e,t);const n=this.levelEntry[t];e&&n&&("base"===t&&this.isBaseLevelOver()&&(i.warn("The max 'z-index' of base level is '11000', but the current 'z-index' is over, Please optimize the use of 'z-index', otherwise there will be some performance overhead."),this.increaseTopEntry()),n.elements.push(e),n.zIndex+=1,e.style.zIndex=n.zIndex.toString())}removeZIndex(e,t="base"){if(null===e)return;const n=this.levelEntry[t];if(e&&n){let t=-1;n.elements.forEach(((n,o)=>{n===e&&(t=o),t>=0&&o>t&&(n.style.zIndex=""+(p(n.style.zIndex)-1))})),t>=0&&(e.style.removeProperty("z-index"),n.elements.splice(t,1),n.zIndex-=1)}}overrideZIndexBasicValues(e){const t=this.formatZIndexBasicValues(e);this.validBasicValues(t)&&this.updateBasicValues(t)}formatZIndexBasicValues(e){return Object.assign({base:this.baseBasicZIndex,top:this.topBasicZIndex},e)}validBasicValues(e){return"number"!=typeof e.base||"number"!=typeof e.top?(i.error("Change z-index basic value failed, both base level and top level should be of type number!"),!1):!(e.base>=e.top&&(i.error("Change z-index basic value failed, the base level should be smaller than the top level!"),1))}updateBasicValues(e){this.baseBasicZIndex=e.base,this.topBasicZIndex=e.top;const t=this.levelEntry.base;t.elements.forEach(((e,t)=>{e.style.zIndex=`${this.baseBasicZIndex+t+1}`})),t.zIndex=this.baseBasicZIndex+t.elements.length;const n=this.levelEntry.top;n.elements.forEach(((e,t)=>{e.style.zIndex=`${this.topBasicZIndex+t+1}`})),n.zIndex=this.topBasicZIndex+n.elements.length}increaseTopEntry(){const e=this.levelEntry.top;e.elements.forEach((e=>{e.style.zIndex=`${p(e.style.zIndex)+1}`})),e.zIndex+=1}isBaseLevelOver(){return this.levelEntry.base.zIndex>=this.topBasicZIndex}},q=[{payloadKey:"IS_OPEN_METHOD_CALLED",payloadDescription:"Indicate if the method open of public API VegaNotifyController is called",canAccept:(e,t)=>"VegaNotifyController"===e&&"open"===t,payloadValue:()=>!0},{payloadKey:"IS_CLOSE_METHOD_CALLED",payloadDescription:"Indicate if the method close of public API VegaNotifyController is called",canAccept:(e,t)=>"VegaNotifyController"===e&&"close"===t,payloadValue:()=>!0},{payloadKey:"IS_CLOSEALL_METHOD_CALLED",payloadDescription:"Indicate if the method closeAll of public API VegaNotifyController is called",canAccept:(e,t)=>"VegaNotifyController"===e&&"closeAll"===t,payloadValue:()=>!0}];var Q=function(e,t,n,o){var s,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(i=(a<3?s(i):a>3?s(t,n,i):s(t,n))||i);return a>3&&i&&Object.defineProperty(t,n,i),i};class Y{constructor(){this.resizeObserverSlimmer=c(Y,l,[],[{mapFrom:"connectResizeObserver",mapTo:"connectResizeObserver"}],[{callback:e=>{var t;!(e[0].contentRect.height>0)&&(null===(t=this.container)||void 0===t?void 0:t.classList.contains("hydrated"))&&(X.removeZIndex(this.container,"top"),this.container.remove(),this.container=null)},target:()=>this.container}]),this.vegaPublicAPIRuntimeMetricsSlimmer=t(Y,["open","close","closeAll"],q)}async open(e){const t=this.createPageNotification(e);return this.getContainer().append(t),t.id}async closeAll(){this.container&&Array.from(this.container.children).forEach((e=>{e.close()}))}async close(e){await document.getElementById(e).close()}connectResizeObserver(){}createPageNotification(e){const t=document.createElement("vega-page-notification");return Object.keys(e).forEach((n=>{void 0!==e[n]&&(t[n]=e[n])})),t.style.marginBottom=s()===a.MOBILE?"12px":"16px",t.id=`vega-page-notification-${n()}`,t}getContainer(){return this.container||(this.container=document.createElement("vega-page-notification-list"),X.setZIndex(this.container,"top"),s()===a.MOBILE?this.container.classList.add("vega-page-notification-list-bottom"):this.container.classList.add("vega-page-notification-list-topRight"),document.body.append(this.container),this.connectResizeObserver()),this.container}}Q([r()],Y.prototype,"resizeObserverSlimmer",void 0),Q([e()],Y.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const W=new Y,ee=[{payloadKey:"IS_OVERRIDECOLORS_METHOD_CALLED",payloadDescription:"Indicate if the method overrideColors of public API ThemeManager is called",canAccept:(e,t)=>"ThemeManager"===e&&"overrideColors"===t,payloadValue:()=>!0},{payloadKey:"IS_RESET_METHOD_CALLED",payloadDescription:"Indicate if the method reset of public API ThemeManager is called",canAccept:(e,t)=>"ThemeManager"===e&&"reset"===t,payloadValue:()=>!0},{payloadKey:"IS_TOGGLEDARKMODE_METHOD_CALLED",payloadDescription:"Indicate if the method toggleDarkMode of public API ThemeManager is called",canAccept:(e,t)=>"ThemeManager"===e&&"toggleDarkMode"===t,payloadValue:()=>!0},{payloadKey:"IS_ISDARKMODE_METHOD_CALLED",payloadDescription:"Indicate if the method isDarkMode of public API ThemeManager is called",canAccept:(e,t)=>"ThemeManager"===e&&"isDarkMode"===t,payloadValue:()=>!0},{payloadKey:"IS_APPLY_BRANDING_METHOD_CALLED",payloadDescription:"Indicate if the method applyBranding of public API ThemeManager is called",canAccept:(e,t)=>"ThemeManager"===e&&"applyBranding"===t,payloadValue:()=>!0}];class te{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=t(te,["overrideColors","reset","toggleDarkMode","isDarkMode","applyBranding"],ee)}async overrideColors(e){d.overrideColors(e)}async reset(){d.reset()}toggleDarkMode(e){d.toggleDarkMode(e)}isDarkMode(){return d.isDarkMode()}applyBranding(e){d.applyBranding(e)}}!function(e,t,n,o){var s,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(i=(a<3?s(i):a>3?s(t,n,i):s(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([e()],te.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const ne=new te,oe=[{payloadKey:"IS_OPEN_METHOD_CALLED",payloadDescription:"Indicate if the method open of public API VegaDialogController is called",canAccept:(e,t)=>"VegaDialogController"===e&&"open"===t,payloadValue:()=>!0}];class se{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=t(se,["open"],oe)}open(e){const t=document.createElement("vega-dialog"),{isVerticallyCenter:o,isVerticallyCentered:s,showCloseButton:a,size:i,title:r,handleClose:c}=e,l=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(n[o[s]]=e[o[s]])}return n}(e,["isVerticallyCenter","isVerticallyCentered","showCloseButton","size","title","handleClose"]);return t.id=`vega-dialog-${n()}`,t.dialogTitle=r,t.modalProps={isVerticallyCenter:o,isVerticallyCentered:s,showCloseButton:a,size:i,handleClose:c},Object.keys(l).forEach((e=>{void 0!==l[e]&&(t[e]=l[e])})),document.body.append(t),t}}!function(e,t,n,o){var s,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(i=(a<3?s(i):a>3?s(t,n,i):s(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([e()],se.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const ae=new se,ie=[{payloadKey:"IS_SETSEMANTICS_METHOD_CALLED",payloadDescription:"Indicate if the method setSemantics of public API VegaEventManager is called",canAccept:(e,t)=>"VegaEventManager"===e&&"setSemantics"===t,payloadValue:()=>!0},{payloadKey:"IS_GETSEMANTICS_METHOD_CALLED",payloadDescription:"Indicate if the method getSemantics of public API VegaEventManager is called",canAccept:(e,t)=>"VegaEventManager"===e&&"getSemantics"===t,payloadValue:()=>!0},{payloadKey:"IS_GETENABLEDEVENTIDSBYCOMPONENT_METHOD_CALLED",payloadDescription:"Indicate if the method getEnabledEventIdsByComponent of public API VegaEventManager is called",canAccept:(e,t)=>"VegaEventManager"===e&&"getEnabledEventIdsByComponent"===t,payloadValue:()=>!0},{payloadKey:"globalEventIsNative",payloadDescription:"Indicate if the vega components will emit events without the vega prefix",canAccept:(e,t)=>"VegaEventManager"===e&&"setSemantics"===t,payloadValue:e=>!(!e.global||"native"!==e.global.namespace)},{payloadKey:"eventOfSpecificComponentsIsNative",payloadDescription:"Indicate if the vega components will emit events with the vega prefix, but special components will emit events without vega prefix",canAccept:(e,t)=>"VegaEventManager"===e&&"setSemantics"===t,payloadValue:e=>{const t=e;if(t.components){const e=Object.keys(t.components);return!!(e.length>0&&"native"===t.components[e[0]].namespace)}return!1}},{payloadKey:"eventOfSpecificComponentsIsVega",payloadDescription:"Indicate if the vega components will emit events without the vega prefix, but special components will emit events with vega prefix",canAccept:(e,t)=>"VegaEventManager"===e&&"setSemantics"===t,payloadValue:e=>{const t=e;if(t.global&&t.components){const e=Object.keys(t.components);return!!("native"===t.global.namespace&&e.length>0&&"vega"===t.components[e[0]].namespace)}return!1}},{payloadKey:"globalJqueryDelegatedEventIsTrue",payloadDescription:"Indicate if the use jQuery with event delegation",canAccept:(e,t)=>"VegaEventManager"===e&&"setSemantics"===t,payloadValue:e=>!(!e.global||!0!==e.global.jqueryDelegatedEvent)},{payloadKey:"jqueryDelegatedEventIsCustomStrategy",payloadDescription:"Indicate if the use jQuery with event delegation",canAccept:(e,t)=>"VegaEventManager"===e&&"setSemantics"===t,payloadValue:e=>{const t=e;return!!(t.global&&Array.isArray(t.global.jqueryDelegatedEvent)&&t.global.jqueryDelegatedEvent.length>0)}},{payloadKey:"jqueryDelegatedEventOfSpecialComponentsIsTrue",payloadDescription:"Indicate if the use jQuery with event delegation",canAccept:(e,t)=>"VegaEventManager"===e&&"setSemantics"===t,payloadValue:e=>{const t=e;if(t.components){const e=Object.keys(t.components);return!!(e.length>0&&!0===t.components[e[0]].jqueryDelegatedEvent)}return!1}}];class re{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=t(re,["setSemantics","getSemantics","getEnabledEventIdsByComponent"],ie)}setSemantics(e){h.setSemantics(e)}getSemantics(e){return h.getSemantics(e)}getEnabledEventIdsByComponent(e){return h.getEnabledEventIdsByComponent(e)}}!function(e,t,n,o){var s,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(i=(a<3?s(i):a>3?s(t,n,i):s(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([e()],re.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const ce=new re,le=[{payloadKey:"IS_OVERRIDEZINDEXBASICVALUES_METHOD_CALLED",payloadDescription:"Indicate if the method overrideZIndexBasicValues of public API ZIndexManager is called",canAccept:(e,t)=>"VegaZIndexManager"===e&&"overrideZIndexBasicValues"===t,payloadValue:()=>!0},{payloadKey:"zIndexBasicValuesGreatThanTenThousand",payloadDescription:"Indicate if the basic z-index value is great than ten thousand",canAccept:(e,t)=>"VegaZIndexManager"===e&&"overrideZIndexBasicValues"===t,payloadValue:e=>e.base>1e4}];class de{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=t(de,["overrideZIndexBasicValues"],le)}overrideZIndexBasicValues(e){X.overrideZIndexBasicValues(e)}}!function(e,t,n,o){var s,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(i=(a<3?s(i):a>3?s(t,n,i):s(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([e()],de.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const he=new de,pe=[{payloadKey:"IS_LOAD_METHOD_CALLED",payloadDescription:"Indicate if the method load of public API VegaSkeletonLoaderController is called",canAccept:(e,t)=>"VegaSkeletonLoaderController"===e&&"load"===t,payloadValue:()=>!0},{payloadKey:"IS_UNLOAD_METHOD_CALLED",payloadDescription:"Indicate if the method unLoad of public API VegaSkeletonLoaderController is called",canAccept:(e,t)=>"VegaSkeletonLoaderController"===e&&"unLoad"===t,payloadValue:()=>!0},{payloadKey:"IS_UNLOADALL_METHOD_CALLED",payloadDescription:"Indicate if the method unLoadAll of public API VegaSkeletonLoaderController is called",canAccept:(e,t)=>"VegaSkeletonLoaderController"===e&&"unLoadAll"===t,payloadValue:()=>!0}];class ue{constructor(){this.vegaPublicAPIRuntimeMetricsSlimmer=t(ue,["load","unLoad","unLoadAll"],pe),this.loaderMap=new Map}load({target:e,type:t="text",width:o,height:s,items:a,layout:i}){const r=Array.from(document.body.querySelectorAll(e)),c=`vega-skeleton-loader-${n()}`,l=[];return r.forEach((e=>{const n=a?a.map(this.createSkeleton):[this.createSkeleton({type:t,width:o,height:s})],r=(i?[this.wrapLayout(n,i)]:n).map((e=>(e.dataset[ue.LOADER_DATA_SET_KEY]=c,e)));l.push(...r),e.append(...r)})),this.loaderMap.set(c,l),c}unLoad(e){this.loaderMap.has(e)&&(this.loaderMap.get(e).forEach((e=>e.remove())),this.loaderMap.delete(e))}unLoadAll(){for(const e of this.loaderMap.values())e.forEach((e=>e.remove()));this.loaderMap.clear()}createSkeleton(e){const{type:t,width:n,height:o}=e,s=document.createElement("vega-skeleton");return Object.assign(s,{animated:!0,type:t,width:n,height:o}),s}wrapLayout(e,t){const n=document.createElement("vega-flex");return Object.assign(n,Object.assign({className:"vega-skeleton-loader-template-container"},t.props)),Object.assign(n.style,t.style),n.append(...e),n}}ue.LOADER_DATA_SET_KEY="vegaSkeletonLoaderKey",function(e,t,n,o){var s,a=arguments.length,i=a<3?t:null===o?o=Object.getOwnPropertyDescriptor(t,n):o;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)i=Reflect.decorate(e,t,n,o);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(i=(a<3?s(i):a>3?s(t,n,i):s(t,n))||i);a>3&&i&&Object.defineProperty(t,n,i)}([e()],ue.prototype,"vegaPublicAPIRuntimeMetricsSlimmer",void 0);const fe=new ue;class ge extends F{injectRTEScopeStyles(){return""}render(e,t,n){const o=this.doRender(n,e,t);return this.fallbackRegisterRef(o,e),this.appendChildren(o,e,t,n),o}useRef(e){return e[ge.REGISTER_REF_FLAG]=!0,function(t){t&&k.register(t,e)}}getDTORenderer(e){return u.getRTERenderer(e)}appendChildren(e,t,n,o){Array.isArray(t.children)&&t.children.length&&!e.t&&(e.t=t.children.map((e=>this.renderChildren(e,n,o))).filter(H))}renderChildren(e,t,n){const o=this.getDTORenderer(e.type);if(o)return o.render(e,t,n)}fallbackRegisterRef(e,t){t[ge.REGISTER_REF_FLAG]||!e.o||e.o.ref||(e.o.ref=this.useRef(t))}}ge.REGISTER_REF_FLAG="__registeredRef__";class ye{constructor(){this.extensionContext=null,this.hasCustomStylesRenderers=new Set}static registerActionHandleStrategy(e,t,n){O.register(t,e,n)}static registerActionHandlerInterceptor(e,t,n){x.register(t,e,n)}initialExtension(e){this.extensionContext=e}collectExtensionRendererStyles(){let e="";return this.hasCustomStylesRenderers.size>0&&this.hasCustomStylesRenderers.forEach((t=>{e+=`${t.injectRTEScopeStyles()}\n`})),e}registerNode(e,t){A.registerRTEDTOClass(e,t)}registerRenderer(e,t){u.registerRTEDTORenderer(e,t),t instanceof ge&&t.injectRTEScopeStyles()&&this.hasCustomStylesRenderers.add(t)}registerToolbarButtonRenderer(e,t){u.registerRTEToolbarButtonRenderer(e,t)}registerBlockBasicStrategies(e){f.registerBlockBasicStrategies(e)}unRegisterStrategy(e,t){O.unregister(e,t)}unRegisterInterceptor(e,t,n){x.unregister(e,t,n)}registerElementToBlockDTOClassStrategy(e){g.registerElementToBlockStrategy(e)}registerElementToNodeDTOClassStrategy(e){g.registerElementToNodeStrategy(e)}getElementToNodeDTOClassStrategies(){return g.getElementToNodeStrategies()}}class me{isHidden(e){return e.sourceEditMode}renderDropdown(e,t,n,o){return e("vega-dropdown",Object.assign({trigger:"click",searchable:!1,maxWidth:"200",itemDisplayRule:"ellipsis",ref:e=>{$.addUniqueObserverToNode(e,z,(e=>this.handleDropdownClick(e.detail,t)))}},n),o)}renderDropdownListTemplate(e,t){return e("div",{slot:"items",onMouseDown:this.preventDefault},t.map((t=>"children"in t?this.renderDropdownGroup(e,t):this.renderDropdownItem(e,t))))}renderDropdownItem(e,t){return e("vega-dropdown-item",{key:t.key,itemKey:t.key,label:t.label,prefixIcon:t.icon})}renderDropdownGroup(e,t){return e("vega-dropdown-group",{key:t.key,label:t.label,divide:!1},t.children.map((t=>"children"in t?this.renderDropdownGroup(e,t):this.renderDropdownItem(e,t))))}renderButton(e,t,n){const{icon:o,label:s,showArrowIcon:a}=n,i=this.isDisabled(t);return e("vega-rich-text-editor-toolbar-button",{disabled:i,icon:o,hidden:this.isHidden(t),selected:this.isSelected(t),ref:e=>{$.addUniqueObserverToNode(e,Z,(()=>this.handleButtonClick(t)))},onMouseDown:this.preventDefault},[this.renderButtonLabel(e,t,s),a?e("vega-icon",{size:"size-8",color:i?"text-disabled":"text-secondary",style:{marginLeft:"8px"},icon:K.getIconKey("chevron-down")}):null].filter(H))}renderButtonLabel(e,t,n){return n?e("vega-font",{variant:"font-field-label-sm",color:this.isDisabled(t)?"text-disabled":"text-primary"},n):null}isDisabled(e){return e.host.disabled}isSelected(e){return!1}preventDefault(e){e.preventDefault()}getListItemByKey(e,t){for(const n of e)if("children"in n){const e=this.getListItemByKey(n.children,t);if(e)return e}else if(n.key===t)return n;return null}}class be extends D{constructor(e,t){super(),this.type="INSERT_TOKEN_NODE",this.rteRange=null,this.actionHandleResult=!1,this.rteRange=e,this.token=t}}class ve extends me{constructor(e){super(),this.tokenList=[],this.extensionContext=null,this.tokenList=e}injectExtensionContext(e){this.extensionContext=e}render(e,t){return this.renderDropdown(e,t,{},[this.renderButton(e,t,{label:"Tokens",showArrowIcon:!0}),this.renderDropdownListTemplate(e,this.tokenList)])}isDisabled(){if(this.extensionContext){const{host:e,getSelectedNodes:t}=this.extensionContext,[n]=t();return n?e.disabled||!O.canHandle("INSERT_TOKEN_NODE",n.parent):e.disabled}return!1}handleButtonClick(e){}handleDropdownClick(e,t){const n=this.getListItemByKey(this.tokenList,e),{rteRange:o}=t,{startNode:s}=o;if(s&&s.parent){const e=new be(o,n);s.parent.apply(e),e.actionHandleResult&&this.flushEditorUI()}}flushEditorUI(){if(this.extensionContext){const{host:e,flushValue:t}=this.extensionContext;t(e.value)}}}class RTETokenNode extends L{constructor(e,t,n,o,s){super(e,n,o,s),this.type="token",this.token=t,this.text=n}static from(e,t){const n=new RTETokenNode(e.id,e.token,e.text,t);return e.annotations&&(n.annotationMap=this.generateTextAnnotationMap(e.annotations)),n}toJSON(){const e=super.toJSON();return Object.assign({id:this.id,type:this.type,text:this.text,token:this.token},e.annotations?{annotations:e.annotations}:{})}isContentEditable(){return!1}clone(e){return new RTETokenNode(this.id,this.token,this.text,e,this.annotationMap)}toHtml(){return`<span class="token" contenteditable="false" template-token-key="${this.token}" token-key="${this.token}" ${super.generateAttributeString()}>${this.text}</span>`}}class Ee extends ge{constructor(){super(...arguments),this.extensionContext=null}doRender(e,t,n){const{id:o,token:s}=t;return e("span",{key:o,"template-token-key":s,"token-key":s,contenteditable:"false",style:t.getStyles(),class:`token ${t.getClasses()}`,ref:this.useRef(t),onClick:e=>{e.preventDefault(),n&&!1!==n.editable&&this.handleTokenElementClick(e,t)}},t.text)}injectExtensionContext(e){this.extensionContext=e}injectRTEScopeStyles(){return"span[token-key]{padding: 0 2px; margin: 0 1px; background-color: rgba(var(--v-bg-status-info, 205,209,211))}"}handleTokenElementClick(e,t){e.preventDefault(),this.extensionContext&&this.extensionContext.host.value.apply(new y(t,void 0,!0))}}class Ie extends D{constructor(e,t){super(),this.type=R.INSERT_NODE_TO_NEAREST_ROOT,this.rteRange=e,this.nodeToBeInserted=t}}class Te extends S{handleAction(e,t){const{rteRange:o,token:s}=e;if(o&&o.startNode){const a=new RTETokenNode(n(),s.key,s.label,t);t.apply(new Ie(o,a)),e.actionHandleResult=!0}}}const Ce=new class extends m{canHandle(e,t){const n=e[t];return"SPAN"===n.nodeName&&n.classList.contains("token")&&n.hasAttribute("token-key")?1:0}handle(e){const t=e[0],o=t.getAttribute("token-key"),s=t.textContent,a=function(e,t){var n={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(o=Object.getOwnPropertySymbols(e);s<o.length;s++)t.indexOf(o[s])<0&&Object.prototype.propertyIsEnumerable.call(e,o[s])&&(n[o[s]]=e[o[s]])}return n}(b.generate(L,t),["customAttribute","customClass"]);return{id:n(),type:"token",token:o,text:s,annotations:Object.assign({},a)}}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}};class ke extends ye{constructor(e=[]){super(),this.tokenRenderer=new Ee,this.registerNode("token",RTETokenNode),this.registerRenderer("token",this.tokenRenderer),this.tokenToolbarButtonRenderer=new ve(e),this.registerToolbarButtonRenderer("token",this.tokenToolbarButtonRenderer),this.registerElementToNodeDTOClassStrategy(Ce)}initialExtension(e){super.initialExtension(e),this.tokenRenderer.injectExtensionContext(e),this.tokenToolbarButtonRenderer&&this.tokenToolbarButtonRenderer.injectExtensionContext(e)}}(()=>{const e=new Te;ye.registerActionHandleStrategy(w.name,"INSERT_TOKEN_NODE",e),ye.registerActionHandleStrategy(v.name,"INSERT_TOKEN_NODE",e)})();class Oe extends D{constructor(e){super(),this.type="INSERT_FUNCTION_BLOCK",this.functionType=e}}class RTEFunctionBlock extends N{constructor(e){super(e),this.type="function-block",this.children=[]}static from(e,t){const n=new RTEFunctionBlock(e.id),o={customClass:["statement"]};let{annotations:s}=e;return s=s?Object.assign(Object.assign({},s),o):o,super.convertAnnotationsToMap(n.annotationMap,s),n.children=this.generateBlockChildren(e.children,t,n),n}toHtml(){return`<div class="statement">${this.children.map((e=>e instanceof w?`<div class="statementelement"${this.getFunctionContentStyle(e)}>${e.getChildrenHtml()}</div>`:e.toHtml())).join("")}</div>`}clone(e){const t=new RTEFunctionBlock(n());return t.parent=e,t.children=this.children.map((e=>e.clone(t))),t.annotationMap=super.cloneAnnotations(),t}getLastNode(){return this.children[this.children.length-1].getLastNode()}isNotEmpty(){return this.children.length>0}toJSON(){return Object.assign(Object.assign({},super.toJSON()),{id:this.id,type:this.type,children:this.children.map((e=>e.toJSON()))})}getFunctionContentStyle(e){const t=new V(e);let n=t.toCssText({standalone:!0});const o=e.getAnnotationByType("TEXT_STYLE");if(o&&"paragraph"===o.textStyle){const e=t.toCssText(void 0,void 0,o.renderStyle({standalone:!0}));n=n.replace(e,"").trim()}return n?` style="${n}"`:""}}class xe extends S{handleAction(e,t){const{functionType:n}=e,o=this.getFunctionBlock(n),s=this.createNewParagraph(""),a=this.getReferenceBlock(t);a?a.parent.apply(new _(a,o,s)):t.apply(new j([o,s])),s&&(e.nextFocusNode=s.children[0])}getFunctionBlock(e){const t=n();return RTEFunctionBlock.from({id:t,type:"function-block",children:[{id:`${t}-1`,type:"logic-control-block",statementText:e.toUpperCase()},{id:`${t}-2`,annotations:{customClass:["statementelement"]},type:"paragraph",nodes:[{id:`${t}-2-1`,type:"text",text:" "}]},{id:`${t}-3`,type:"logic-control-block",statementText:"SHOW"},{id:`${t}-4`,annotations:{customClass:["statementelement"]},type:"paragraph",nodes:[{id:`${t}-4-1`,type:"text",text:" "}]}]})}getReferenceBlock(e){if(!(e instanceof E)){const t=e.parent;return t instanceof RTEFunctionBlock?t:e}}}class RTELogicControlNode extends B{constructor(e,t,n){super(e),this.type="logic-control-node",this.text="",this.text=t,this.parent=n}clone(){return new RTELogicControlNode(this.id,this.text,this.parent)}toHtml(){return this.text}toJSON(){return{id:this.id,type:this.type,text:this.text}}getRangeEndOffset(){return 1}getRangeContainer(){const e=k.getDOMByEntity(this);if(e)return e.parentElement}isContentEditable(){return!1}}class RTELogicControlBlock extends N{constructor(e,t,n){super(e),this.type="logic-control-block",this.children=[],this.statementText="",this.statementText=t,this.children=[new RTELogicControlNode(`${e}-node-1`,t,this)],n&&(this.parent=n)}static from(e){return new RTELogicControlBlock(e.id,e.statementText)}isNotEmpty(){return!0}getLastNode(){return this.children[this.children.length-1]}toHtml(){return`<div class='statementsyntax' contenteditable='false'>${this.statementText}</div>`}clone(e){return new RTELogicControlBlock(this.id,this.statementText,e)}toJSON(){return{id:this.id,type:this.type,statementText:this.statementText}}}class Ae extends me{injectExtensionContext(e){this.extensionContext=e}render(e,t){return this.renderDropdown(e,t,{},[this.renderButton(e,t,{label:"Functions",showArrowIcon:!0}),this.renderDropdownListTemplate(e,Ae.FUNCTION_LIST)])}isDisabled(){if(this.extensionContext){const{host:e,getSelectedNodes:t}=this.extensionContext,n=t()[0];let o=!0;return n&&(o=O.canHandle("INSERT_FUNCTION_BLOCK",n.parent)),e.disabled||!o}return!1}handleButtonClick(){throw new Error("Method not implemented.")}handleDropdownClick(e){const{host:t,getSelectedNodes:n}=this.extensionContext,o=n()[0],s=new Oe(e);o?o.parent&&o.parent.apply(s):t.value.apply(s),s.nextFocusNode&&t.value.apply(new y(s.nextFocusNode,1))}}Ae.FUNCTION_LIST=[{key:"IF",label:"Conditional"},{key:"FOREACH",label:"Foreach"}];class De extends ge{doRender(e,t){return e("div",{key:t.id,class:"statementsyntax",ref:this.useRef(t)},e("span",{key:`${t.id}-1`,contenteditable:"false",ref:this.useRef(t.children[0])},t.statementText))}}class Le extends I{constructor(){super(...arguments),this.blockClassName="statementsyntax"}canHandle(e,t){const n=e[t];return n&&n.nodeType===Node.ELEMENT_NODE&&n.classList.contains(this.blockClassName)&&this.isFunctionBlockChild(n)?1:0}handle(e){const t=e[0];return RTELogicControlBlock.from({id:n(),type:"logic-control-block",statementText:t.innerText})}appendChildBlocks(){}shouldProceedToElementChildren(){return!1}isFunctionBlockChild(e){return!(!e.parentElement||!e.parentElement.classList.contains("statement"))}}class Re extends ge{doRender(e,t){return e("div",{key:t.id,class:this.getElementClassName(t),ref:this.useRef(t)})}injectRTEScopeStyles(){return"div.statement{padding:2px 4px;background:rgba(var(--v-bg-accent3-secondary, 255, 239, 200));border:1px solid rgba(var(--v-bg-accent3-primary, 255, 220, 131));border-radius:4px;display:flex;flex-direction:row;justify-content:flex-start;align-items:stretch;gap:4px}div.statement .statementsyntax{padding:3px 0;line-height:22px}.rich-text-content div.statement .statementsyntax,.rich-text-content div.statement .statementelement{display:inline-block}div.statement+div.statement{margin-top:2px}div.statement .statementsyntax span{color:rgb(38, 42, 255);font-weight:bold}div.statement .statementelement{padding:2px 4px;background:rgba(var(--v-bg-secondary, 245, 247, 247));border:1px solid rgba(var(--v-border-color-input-field, 171, 198, 216));border-radius:4px;margin:0;min-width:8px}"}getElementClassName(e){let t=e.getClasses();return t.indexOf("statement")<0&&(t="statement "+t),t.trim()}}class Se{}class we extends Se{canIntercept(e,t){return t.parent&&t.parent instanceof RTEFunctionBlock}intercept(e,t,n){const o=new T(n.children[0],0);o.isFlushable=!0,n.parent.apply(o)}}class Ne extends S{handleAction(e,t){const n=this.createNewParagraph("");n&&(t.parent.apply(new _(t,n)),e.newBlock=n,this.focusToNextLine(n))}focusToNextLine(e){const t=this.getRootContent(e);t&&t.apply(new y(e.children[0],1))}}class Ve extends D{constructor(e,t,n){super(),this.type="PASTE_PLAIN_TEXT",this.blocksToBeInserted=e,this.startNode=t,this.startOffset=n}}class _e extends we{intercept(e,t,n){const{blocksToBeInserted:o,rteRange:s}=t;let{startNode:a,startOffset:i}=t;s&&(a=s.startNode,i=s.startOffset);const r=new Ve(o,a,i);n.apply(r)}}class je extends S{handleAction(e,t){const{blocksToBeInserted:n,startNode:o,startOffset:s}=e;if(o instanceof L){const e=n.flatMap((e=>e instanceof w?(this.copyLinkGroupAnnotations(t.annotationMap,e.annotationMap),e.children):[]));e.length>0&&(t.apply(s>0?new _(o,...e):new M(o,...e)),this.focusToNextLine(e[e.length-1],e[e.length-1].getRangeEndOffset()))}}focusToNextLine(e,t){const n=this.getRootContent(e);n&&n.apply(new y(e,t))}copyLinkGroupAnnotations(e,t){if(t&&t.has(P.LINK_GROUP)){const n=t.get(P.LINK_GROUP);e.has(P.LINK_GROUP)?n.linkGroups.forEach(((t,n)=>{e.get(P.LINK_GROUP).linkGroups.set(n,t)})):e.set(P.LINK_GROUP,t.get(P.LINK_GROUP))}}}const Be=new Le,Me=new class extends Le{constructor(){super(...arguments),this.blockClassName="statementelement"}handle(e,t){const o=b.generate(w,e[0]),s=Array.from(e[0].childNodes);return w.from({id:n(),type:"paragraph",annotations:Object.assign({customClass:[this.blockClassName]},o),nodes:this.generateChildNodes(s,void 0,t)})}},Pe=new class extends m{canHandle(e,t){const n=e[t];return n&&"DIV"===n.tagName&&n.classList.contains("statement")&&n.childNodes.length&&n.querySelector(".statementsyntax")?1:0}handle(){return RTEFunctionBlock.from({id:n(),type:"function-block",annotations:{customClass:["statement"]},children:[]})}appendChildBlocks(e,t){e.children=t.map((t=>(t.parent=e,t)))}shouldProceedToElementChildren(){return!0}};class Ke extends ye{constructor(){super(),this.toolbarButtonRenderer=new Ae,this.registerBlockBasicStrategies(RTELogicControlBlock.name),this.registerBlockBasicStrategies(RTEFunctionBlock.name),this.preventFunctionBlockDefaultInsertNewParagraph(),this.registerNode("logic-control-block",RTELogicControlBlock),this.registerRenderer("logic-control-block",new De),this.registerNode("function-block",RTEFunctionBlock),this.registerRenderer("function-block",new Re),this.registerToolbarButtonRenderer("functions",this.toolbarButtonRenderer),this.registerElementToBlockDTOClassStrategy(Be),this.registerElementToBlockDTOClassStrategy(Me),this.registerElementToBlockDTOClassStrategy(Pe)}initialExtension(e){super.initialExtension(e),this.toolbarButtonRenderer&&this.toolbarButtonRenderer.injectExtensionContext(e)}preventFunctionBlockDefaultInsertNewParagraph(){this.unRegisterStrategy(R.INSERT_NEW_PARAGRAPH,RTELogicControlBlock.name),this.unRegisterStrategy(R.APPEND_CHILDREN,RTEFunctionBlock.name),this.unRegisterStrategy(R.INSERT_CHILDREN_AFTER,RTEFunctionBlock.name),this.unRegisterStrategy(R.INSERT_CHILDREN_BEFORE,RTEFunctionBlock.name),this.unRegisterStrategy(R.PASTE_CONTENT,RTELogicControlBlock.name),ye.registerActionHandleStrategy(RTEFunctionBlock.name,R.INSERT_NEW_PARAGRAPH,new Ne)}}(()=>{const e=new xe;ye.registerActionHandleStrategy(E.name,"INSERT_FUNCTION_BLOCK",e),ye.registerActionHandleStrategy(w.name,"INSERT_FUNCTION_BLOCK",e),ye.registerActionHandleStrategy(C.name,"INSERT_FUNCTION_BLOCK",e),ye.registerActionHandleStrategy(RTELogicControlBlock.name,"INSERT_FUNCTION_BLOCK",e),ye.registerActionHandleStrategy(w.name,"PASTE_PLAIN_TEXT",new je),ye.registerActionHandlerInterceptor(w.name,R.INSERT_NEW_PARAGRAPH,new we),ye.registerActionHandlerInterceptor(w.name,R.PASTE_CONTENT,new _e)})();export{Se as A,Ie as I,ve as R,J as V,W as a,ne as b,ae as c,ce as d,he as e,fe as f,ke as g,Ke as h,me as i,ye as j,ge as k,RTETokenNode as l,Ee as m,X as n}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as t,z as s,s as i}from"./p-
|
|
1
|
+
import{i as t,z as s,s as i}from"./p-0cdb38d3.js";import{i as h}from"./p-d9671d27.js";class e{constructor(t,s,i=0,h=0,e,n,r){this._startOffset=0,this._endOffset=0,this._startContainer=t,this._endContainer=s,this._startOffset=i,this._endOffset=h,this._startNode=e,this._endNode=n,r&&(this._oldNativeRange=r)}get startContainer(){return this._startContainer}get endContainer(){return this._endContainer}get startNode(){return this._startNode}get endNode(){return this._endNode}get startOffset(){return this._startOffset}get endOffset(){return this._endOffset}updateRTERange(s,i){const{startOffset:h,endOffset:n}=s;this._startOffset=h,this._endOffset=n;const r=s.startNode,o=s.endNode;if(r instanceof t){this._startNode=r,this._endNode=o;const t=this._startNode.getRangeContainer(),s=this._startNode===this._endNode?t:this._endNode.getRangeContainer();t&&(this._startContainer=t,this._endContainer=s)}else this._startContainer=r,this._endContainer=o,this._startNode=this.getRTENodeByElement(this._startContainer),this._endNode=this._startContainer===this._endContainer?this._startNode:this.getRTENodeByElement(this._endContainer),i&&(this._oldNativeRange=i);return new e(this._startContainer,this._endContainer,this._startOffset,this._endOffset,this._startNode,this._endNode,this._oldNativeRange)}clone(){return new e(this._startContainer,this._endContainer,this._startOffset,this._endOffset,this._startNode,this._endNode,this._oldNativeRange)}toNativeRange(){let t=null;if(this._startNode){const s=this._startNode.getRangeContainer(),i=this._startNode===this._endNode?s:this._endNode.getRangeContainer();if(s&&i)return t=new Range,t.setStart(s,this._startOffset),t.setEnd(i,this._endOffset),this._startContainer=s,this._endContainer=i,this._oldNativeRange=t,t}if(!t&&this._oldNativeRange)return this._oldNativeRange}getRTENodeByElement(t){if(t){const e=t.nodeType===Node.TEXT_NODE?t.parentElement:h(t)&&s.isDecoratorNodeContainerElement(t)?s.getDecoratorNodeElement(t):t;return i.getEntityByDOM(e)}}}export{e as R}
|