@sankhyalabs/ezui 6.1.0-dev.3 → 6.1.0-dev.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/RichToolbarHelper-438916fa.js +46 -0
- package/dist/cjs/_commonjsHelpers-537d719a.js +20 -0
- package/dist/cjs/ez-chart.cjs.entry.js +3 -18
- package/dist/cjs/{ez-combo-box-list_3.cjs.entry.js → ez-combo-box-list_4.cjs.entry.js} +269 -0
- package/dist/cjs/ez-filter-input.cjs.entry.js +129 -0
- package/dist/cjs/ez-form-view.cjs.entry.js +6 -0
- package/dist/cjs/ez-grid.cjs.entry.js +24 -0
- package/dist/cjs/ez-icon.cjs.entry.js +1 -1
- package/dist/cjs/ez-link-builder_6.cjs.entry.js +295 -0
- package/dist/cjs/ez-modal-container.cjs.entry.js +1 -1
- package/dist/cjs/ez-rich-toolbar-item.cjs.entry.js +27 -0
- package/dist/cjs/{ez-filter-input_2.cjs.entry.js → ez-tooltip.cjs.entry.js} +1 -123
- package/dist/cjs/ezui.cjs.js +1 -1
- package/dist/cjs/index-a7b0c73d.js +20 -8
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/purify-6de957d4.js +1351 -0
- package/dist/collection/collection-manifest.json +8 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/FieldBuilder.js +2 -0
- package/dist/collection/components/ez-form-view/fieldbuilder/templates/RichText.tpl.js +4 -0
- package/dist/collection/components/ez-grid/controller/ag-grid/AgGridController.js +24 -1
- package/dist/collection/components/ez-icon/ez-icon.css +147 -140
- package/dist/collection/components/ez-modal-container/ez-modal-container.css +2 -0
- package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.css +22 -0
- package/dist/collection/components/ez-rich-text/ez-link-builder/ez-link-builder.js +131 -0
- package/dist/collection/components/ez-rich-text/ez-rich-text.css +35 -0
- package/dist/collection/components/ez-rich-text/ez-rich-text.js +544 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.js +39 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.css +4 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.js +19 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.css +4 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.js +19 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.css +20 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.js +122 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.css +4 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.js +19 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.css +42 -0
- package/dist/collection/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.js +183 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.css +70 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.js +216 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.js +1 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.js +14 -0
- package/dist/collection/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.js +10 -0
- package/dist/collection/components/ez-tooltip/ez-tooltip.js +1 -1
- package/dist/custom-elements/index.d.ts +48 -0
- package/dist/custom-elements/index.js +2009 -4
- package/dist/esm/RichToolbarHelper-fd6427df.js +41 -0
- package/dist/esm/_commonjsHelpers-9943807e.js +17 -0
- package/dist/esm/ez-chart.entry.js +1 -16
- package/dist/esm/{ez-combo-box-list_3.entry.js → ez-combo-box-list_4.entry.js} +270 -2
- package/dist/esm/ez-filter-input.entry.js +125 -0
- package/dist/esm/ez-form-view.entry.js +6 -0
- package/dist/esm/ez-grid.entry.js +24 -0
- package/dist/esm/ez-icon.entry.js +1 -1
- package/dist/esm/ez-link-builder_6.entry.js +286 -0
- package/dist/esm/ez-modal-container.entry.js +1 -1
- package/dist/esm/ez-rich-toolbar-item.entry.js +23 -0
- package/dist/esm/{ez-filter-input_2.entry.js → ez-tooltip.entry.js} +3 -124
- package/dist/esm/ezui.js +1 -1
- package/dist/esm/index-baa5e267.js +20 -8
- package/dist/esm/loader.js +1 -1
- package/dist/esm/purify-aa3062c4.js +1349 -0
- package/dist/ezui/ezui.esm.js +1 -1
- package/dist/ezui/p-098594de.entry.js +1 -0
- package/dist/ezui/p-112455b1.js +1 -0
- package/dist/ezui/p-1cebdc92.js +1 -0
- package/dist/ezui/p-20c024f7.entry.js +1 -0
- package/dist/ezui/{p-26685c50.entry.js → p-454bba13.entry.js} +1 -1
- package/dist/ezui/p-566c809b.entry.js +1 -0
- package/dist/ezui/{p-4c01e506.entry.js → p-5f1e98da.entry.js} +46 -46
- package/dist/ezui/p-6369a0cd.entry.js +1 -0
- package/dist/ezui/p-79044c3e.entry.js +1 -0
- package/dist/ezui/p-80461324.entry.js +1 -0
- package/dist/ezui/p-91c9d50e.entry.js +1 -0
- package/dist/ezui/p-bcae530a.js +3 -0
- package/dist/ezui/p-ec0d8122.entry.js +1 -0
- package/dist/types/components/ez-form-view/fieldbuilder/templates/RichText.tpl.d.ts +2 -0
- package/dist/types/components/ez-grid/controller/ag-grid/AgGridController.d.ts +1 -0
- package/dist/types/components/ez-rich-text/ez-link-builder/ez-link-builder.d.ts +17 -0
- package/dist/types/components/ez-rich-text/ez-rich-text.d.ts +98 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/RichToolbarHelper.d.ts +43 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-arrows/ez-rich-toolbar-arrows.d.ts +3 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-configs/ez-rich-toolbar-configs.d.ts +3 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-item/ez-rich-toolbar-item.d.ts +11 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar-letters/ez-rich-toolbar-letters.d.ts +3 -0
- package/dist/types/components/ez-rich-text/ez-rich-toolbar/ez-rich-toolbar.d.ts +33 -0
- package/dist/types/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.d.ts +37 -0
- package/dist/types/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.d.ts +1 -0
- package/dist/types/components/ez-rich-text/ez-simple-image-uploader/utils/fileToBase64.d.ts +1 -0
- package/dist/types/components/ez-rich-text/ez-simple-image-uploader/utils/formatBytes.d.ts +1 -0
- package/dist/types/components.d.ts +291 -0
- package/package.json +2 -1
- package/react/components.d.ts +8 -0
- package/react/components.js +8 -0
- package/react/components.js.map +1 -1
- package/dist/ezui/p-2b42abbb.entry.js +0 -1
- package/dist/ezui/p-63cb493e.entry.js +0 -1
- package/dist/ezui/p-7ab19270.entry.js +0 -1
- package/dist/ezui/p-9567b31a.entry.js +0 -1
- package/dist/ezui/p-d47dabdf.entry.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,h as o,H as s,g as i}from"./p-23a36bb6.js";import{c as r,o as e,f as a,s as l,a as n}from"./p-e07e4671.js";import{ElementIDUtils as h}from"@sankhyalabs/core";const c=class{constructor(o){t(this,o),this._opened=!1,this.message=void 0,this.anchoringElement=void 0,this.placement="bottom",this.gapOptions={horizontalGap:0,verticalGap:0},this.type="default",this.debouncingTime=500,this.active=!0,this.maxWidth=200,this.useAnchorSize=!1}watchAnchoringElement(t,o){t&&(this.setEvents(t),this.removeEvents(o))}watchMessage(t){t?this.updatePosition():this.closeTooltip()}openTooltip(){this.message&&this.active&&(this._debouncingTimeout&&clearTimeout(this._debouncingTimeout),this._debouncingTimeout=setTimeout((()=>{this._opened=!0,this._tooltipElement.style.display="block",this.updatePosition()}),this.debouncingTime))}closeTooltip(){clearTimeout(this._debouncingTimeout),this._tooltipElement.style.display="none",this._opened=!1}async updatePosition(t=this.anchoringElement){if(t&&this._opened){if(this.useAnchorSize){const o=t.getBoundingClientRect().width;this._tooltipElement.style.width=`${o}px`}await r(t,this._tooltipElement,{placement:this.placement,middleware:[e(5),a(),l(),n({element:this._arrowElement})]}).then((({x:t,y:o,placement:s,middlewareData:i})=>{const r=s.includes("bottom")?o+this.gapOptions.verticalGap:o-this.gapOptions.verticalGap,e=s.includes("start")?t+this.gapOptions.horizontalGap:t-this.gapOptions.horizontalGap;if(Object.assign(this._tooltipElement.style,{top:`${r}px`,left:`${e}px`}),i.arrow){const{x:t}=i.arrow,o=s.includes("bottom");Object.assign(this._arrowElement.style,{left:`${t}px`,top:o?-this._arrowElement.offsetHeight/2+"px":"",bottom:o?"":-this._arrowElement.offsetHeight/2+"px"})}}))}}handleSlotChange(t){const o=t.target.assignedElements()[0];this.anchoringElement=o}setEvents(t=this.anchoringElement){t&&(t.addEventListener("mouseenter",(()=>{this.openTooltip()})),t.addEventListener("mouseleave",(()=>{this.closeTooltip()})))}removeEvents(t=this.anchoringElement){t&&(t.removeEventListener("mouseenter",(()=>{this.openTooltip()})),t.removeEventListener("mouseleave",(()=>{this.closeTooltip()})))}componentDidLoad(){this.setEvents()}render(){return o(s,null,o("div",Object.assign({ref:t=>this._tooltipElement=t},{inert:!0},{class:{tooltip:!0,[`${this.type}-tooltip`]:!0},style:{maxWidth:this.maxWidth&&!this.useAnchorSize?`${this.maxWidth}px`:void 0},role:"tooltip","data-element-id":h.getInternalIDInfo("tooltip")}),this.message,o("div",{ref:t=>this._arrowElement=t,class:"arrow"})),o("slot",{onSlotchange:t=>{this.handleSlotChange(t)}}))}get _element(){return i(this)}static get watchers(){return{anchoringElement:["watchAnchoringElement"],message:["watchMessage"]}}};c.style=":host{--triangle-size:8px;width:100%}.tooltip{position:absolute;z-index:var(--elevation--24);padding:var(--space--extra-small, 3px) var(--space--small, 6px);border-radius:var(--border--radius-small);box-sizing:border-box;font-family:var(--font-pattern\t, 'Roboto', sans-serif);font-size:var(--text--small, 12px);font-weight:var(--text-weight--medium, 400);text-align:center;width:max-content;display:none}.arrow{position:absolute;width:var(--triangle-size);height:var(--triangle-size);transform:rotate(45deg)}.default-tooltip{background:var(--title--primary, #2b3a54);color:var(--color--inverted)}.default-tooltip .arrow{background:var(--title--primary, #2b3a54)}.error-tooltip{background:var(--color-alert--error-800, #BD0025);color:var(--color--error-200, #F7E0E5)}.error-tooltip .arrow{background:var(--color-alert--error-800, #BD0025)}.success-tooltip{background:var(--color--success, #00cb94);color:var(--color--success-200, #EBFFFA)}.success-tooltip .arrow{background:var(--color--success, #00cb94)}.warning-tooltip{background:var(--color--warning, #f2d410);color:var(--color--warning-200, #FDF8D8)}.warning-tooltip .arrow{background:var(--color--warning, #f2d410)}";export{c as ez_tooltip}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,h as o,H as n,g as t}from"./p-23a36bb6.js";import{StringUtils as c,ElementIDUtils as i}from"@sankhyalabs/core";const a=class{constructor(o){e(this,o),this.size="medium",this.fontSize=void 0,this.href=void 0,this.iconName=void 0}isSprite(){return this.href&&this.href.indexOf("#")>-1}getIconClassName(){return`ez-icon-${this.iconName}`}getIconContent(){return this.isSprite()?o("svg",{class:this.size,role:"img"},o("use",{xlinkHref:this.href})):c.isEmpty(this.iconName)?o("img",{class:this.size,src:this.href}):o("span",{style:this.getStyle(),class:`icon-content ${this.getIconClassName()} ${this.size}--font`})}getStyle(){if(this.fontSize)return{fontSize:`${this.fontSize}px`}}componentDidLoad(){i.addIDInfo(this._hostElement,"icon")}render(){return o(n,null,this.getIconContent())}get _hostElement(){return t(this)}};a.style=':host{display:flex;overflow:hidden;position:relative;--ez-icon--color:var(--icon--color, #ffffff)}svg{display:flex;justify-content:center;align-items:center;fill:var(--ez-icon--color)}.x-small{width:12px;height:12px}.small{width:16px;height:16px}.medium{width:20px;height:20px}.large{width:24px;height:24px}.x-large{width:30px;height:30px}[class^="ez-icon-"],[class*=" ez-icon-"]{color:var(--ez-icon--color)}[class^="ez-icon-"],[class*=" ez-icon-"]{font-family:\'ez-icons\' !important;font-size:16px;font-style:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.ez-icon-2chevron-down:before{content:"\\ea01"}.ez-icon-2chevron-up:before{content:"\\ea02"}.ez-icon-acao:before{content:"\\ea03"}.ez-icon-account-outline:before{content:"\\ea04"}.ez-icon-account:before{content:"\\ea05"}.ez-icon-add-to-cart:before{content:"\\ea06"}.ez-icon-alert-circle-inverted:before{content:"\\ea07"}.ez-icon-alert-circle:before{content:"\\ea08"}.ez-icon-alert-mail:before{content:"\\ea09"}.ez-icon-alert-popup:before{content:"\\ea0a"}.ez-icon-anexo:before{content:"\\ea0b"}.ez-icon-antecipação:before{content:"\\ea0c"}.ez-icon-apps:before{content:"\\ea0d"}.ez-icon-arrow-forward:before{content:"\\ea0e"}.ez-icon-arrow-upward:before{content:"\\ea0f"}.ez-icon-arrow_back:before{content:"\\ea10"}.ez-icon-arrow_downward:before{content:"\\ea11"}.ez-icon-baixa:before{content:"\\ea12"}.ez-icon-balance:before{content:"\\ea13"}.ez-icon-bell-inverted:before{content:"\\ea14"}.ez-icon-bell:before{content:"\\ea15"}.ez-icon-bold:before{content:"\\ea16"}.ez-icon-boleto:before{content:"\\ea17"}.ez-icon-boolean:before{content:"\\ea18"}.ez-icon-business-center:before{content:"\\ea19"}.ez-icon-calendar-clock:before{content:"\\ea1a"}.ez-icon-calendar:before{content:"\\ea1b"}.ez-icon-cart-history:before{content:"\\ea1c"}.ez-icon-cash-remove:before{content:"\\ea1d"}.ez-icon-check-circle-inverted:before{content:"\\ea1e"}.ez-icon-check-circle:before{content:"\\ea1f"}.ez-icon-check:before{content:"\\ea20"}.ez-icon-chevron-down:before{content:"\\ea21"}.ez-icon-chevron-left:before{content:"\\ea22"}.ez-icon-chevron-right:before{content:"\\ea23"}.ez-icon-chevron-up:before{content:"\\ea24"}.ez-icon-circle--medium:before{content:"\\ea25"}.ez-icon-circle:before{content:"\\ea26"}.ez-icon-clean-cart:before{content:"\\ea27"}.ez-icon-cleaning:before{content:"\\ea28"}.ez-icon-clipboard:before{content:"\\ea29"}.ez-icon-clock-rotate-left:before{content:"\\ea2a"}.ez-icon-close:before{content:"\\ea2b"}.ez-icon-cobrar:before{content:"\\ea2c"}.ez-icon-code:before{content:"\\ea2d"}.ez-icon-configuration:before{content:"\\ea2e"}.ez-icon-content-cut:before{content:"\\ea2f"}.ez-icon-copy:before{content:"\\ea30"}.ez-icon-credit_card:before{content:"\\ea31"}.ez-icon-crop:before{content:"\\ea32"}.ez-icon-custom:before{content:"\\ea33"}.ez-icon-delete-file:before{content:"\\ea34"}.ez-icon-delete:before{content:"\\ea35"}.ez-icon-description:before{content:"\\ea36"}.ez-icon-dividir:before{content:"\\ea37"}.ez-icon-docx:before{content:"\\ea38"}.ez-icon-dot-notification:before{content:"\\ea39"}.ez-icon-dots-horizontal:before{content:"\\ea3a"}.ez-icon-dots-vertical:before{content:"\\ea3b"}.ez-icon-drag-indicator:before{content:"\\ea3c"}.ez-icon-dual-chevron-down:before{content:"\\ea3d"}.ez-icon-dual-chevron-left:before{content:"\\ea3e"}.ez-icon-dual-chevron-right:before{content:"\\ea3f"}.ez-icon-dual-chevron-up:before{content:"\\ea40"}.ez-icon-edit-file:before{content:"\\ea41"}.ez-icon-edit-table:before{content:"\\ea42"}.ez-icon-edit-time:before{content:"\\ea43"}.ez-icon-edit-value:before{content:"\\ea44"}.ez-icon-edit:before{content:"\\ea45"}.ez-icon-email:before{content:"\\ea46"}.ez-icon-estorno:before{content:"\\ea47"}.ez-icon-exe:before{content:"\\ea48"}.ez-icon-expand:before{content:"\\ea49"}.ez-icon-expandir_card:before{content:"\\ea4a"}.ez-icon-extrato:before{content:"\\ea4b"}.ez-icon-eye-off:before{content:"\\ea4c"}.ez-icon-eye:before{content:"\\ea4d"}.ez-icon-favorite:before{content:"\\ea4e"}.ez-icon-figma:before{content:"\\ea4f"}.ez-icon-file-download:before{content:"\\ea50"}.ez-icon-file-upload:before{content:"\\ea51"}.ez-icon-filter:before{content:"\\ea52"}.ez-icon-find-file:before{content:"\\ea53"}.ez-icon-find-page:before{content:"\\ea54"}.ez-icon-format-color-fill:before{content:"\\ea55"}.ez-icon-generic:before{content:"\\ea56"}.ez-icon-gif:before{content:"\\ea57"}.ez-icon-graph_bar:before{content:"\\ea58"}.ez-icon-handshake:before{content:"\\ea59"}.ez-icon-help-inverted:before{content:"\\ea5a"}.ez-icon-help:before{content:"\\ea5b"}.ez-icon-hide-list:before{content:"\\ea5c"}.ez-icon-hide_menu:before{content:"\\ea5d"}.ez-icon-hierarchical-tree:before{content:"\\ea5e"}.ez-icon-home:before{content:"\\ea5f"}.ez-icon-icons104:before{content:"\\ea60"}.ez-icon-image-plus:before{content:"\\ea61"}.ez-icon-italic:before{content:"\\ea62"}.ez-icon-language:before{content:"\\ea63"}.ez-icon-launch:before{content:"\\ea64"}.ez-icon-lightbulb:before{content:"\\ea65"}.ez-icon-link:before{content:"\\ea66"}.ez-icon-list:before{content:"\\ea67"}.ez-icon-location:before{content:"\\ea68"}.ez-icon-lock-outline:before{content:"\\ea69"}.ez-icon-lock:before{content:"\\ea6a"}.ez-icon-menu:before{content:"\\ea6b"}.ez-icon-mid:before{content:"\\ea6c"}.ez-icon-minus:before{content:"\\ea6d"}.ez-icon-money-off:before{content:"\\ea6e"}.ez-icon-money:before{content:"\\ea6f"}.ez-icon-more:before{content:"\\ea70"}.ez-icon-mp3:before{content:"\\ea71"}.ez-icon-mp4:before{content:"\\ea72"}.ez-icon-multiple-files:before{content:"\\ea73"}.ez-icon-north-west:before{content:"\\ea74"}.ez-icon-number:before{content:"\\ea75"}.ez-icon-ordem-ascendente:before{content:"\\ea76"}.ez-icon-ordem-descendente:before{content:"\\ea77"}.ez-icon-parcelar:before{content:"\\ea78"}.ez-icon-pause:before{content:"\\ea79"}.ez-icon-payments:before{content:"\\ea7a"}.ez-icon-pdf:before{content:"\\ea7b"}.ez-icon-play:before{content:"\\ea7c"}.ez-icon-plus:before{content:"\\ea7d"}.ez-icon-png:before{content:"\\ea7e"}.ez-icon-power:before{content:"\\ea7f"}.ez-icon-pptx:before{content:"\\ea80"}.ez-icon-preview:before{content:"\\ea81"}.ez-icon-print:before{content:"\\ea82"}.ez-icon-push-pin:before{content:"\\ea83"}.ez-icon-rateio:before{content:"\\ea84"}.ez-icon-receipt:before{content:"\\ea85"}.ez-icon-recolher_card:before{content:"\\ea86"}.ez-icon-redo:before{content:"\\ea87"}.ez-icon-remove-from-cart:before{content:"\\ea88"}.ez-icon-restore:before{content:"\\ea89"}.ez-icon-return:before{content:"\\ea8a"}.ez-icon-sankhya-place:before{content:"\\ea8b"}.ez-icon-save:before{content:"\\ea8c"}.ez-icon-search:before{content:"\\ea8d"}.ez-icon-settings-inverted:before{content:"\\ea8e"}.ez-icon-settings:before{content:"\\ea8f"}.ez-icon-share:before{content:"\\ea90"}.ez-icon-shield:before{content:"\\ea91"}.ez-icon-show-list:before{content:"\\ea92"}.ez-icon-show_menu:before{content:"\\ea93"}.ez-icon-south-east:before{content:"\\ea94"}.ez-icon-sync:before{content:"\\ea95"}.ez-icon-table:before{content:"\\ea96"}.ez-icon-tag_code:before{content:"\\ea97"}.ez-icon-text:before{content:"\\ea98"}.ez-icon-timeline:before{content:"\\ea99"}.ez-icon-timer-outline:before{content:"\\ea9a"}.ez-icon-trending-up:before{content:"\\ea9b"}.ez-icon-tune:before{content:"\\ea9c"}.ez-icon-txt:before{content:"\\ea9d"}.ez-icon-un-pin:before{content:"\\ea9e"}.ez-icon-underline:before{content:"\\ea9f"}.ez-icon-undo:before{content:"\\eaa0"}.ez-icon-unfold_less:before{content:"\\eaa1"}.ez-icon-unfold_more:before{content:"\\eaa2"}.ez-icon-user-circle:before{content:"\\eaa3"}.ez-icon-warning-outline:before{content:"\\eaa4"}.ez-icon-warning_triangle:before{content:"\\eaa5"}.ez-icon-whatshot:before{content:"\\eaa6"}.ez-icon-xlsx:before{content:"\\eaa7"}.ez-icon-zip:before{content:"\\eaa8"}.x-small--font{font-size:12px}.small--font{font-size:16px}.medium--font{font-size:20px}.large--font{font-size:24px}.x-large--font{font-size:30px}';export{a as ez_icon}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as i,c as t,h as o}from"./p-23a36bb6.js";const r=class{constructor(o){i(this,o),this.actionTriggered=t(this,"actionTriggered",7),this.icon=void 0,this.command=void 0,this.title=void 0,this.value=void 0}async triggerAction(){this.actionTriggered.emit({command:this.command,value:this.value})}render(){return o("div",{id:`rich-toolbar-item-${this.icon}`,class:"rich-toolbar-item",title:this.title,onClick:this.triggerAction.bind(this)},o("ez-icon",{class:"toolbar-item",iconName:this.icon}))}};r.style="ez-icon.sc-ez-rich-toolbar-item{--ez-icon--color:var(--color--secondary, #383c45)}.rich-toolbar-item.sc-ez-rich-toolbar-item{display:flex;align-items:center;justify-content:center;width:32px;height:32px;background:none;border:none;border-radius:4px;cursor:pointer;transition:0.3s all ease-in-out}.rich-toolbar-item.sc-ez-rich-toolbar-item:hover{background-color:#f5f5f5}";export{r as ez_rich_toolbar_item}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import{c as t,a as e}from"./p-112455b1.js";var n=t((function(t){
|
|
2
|
+
/*! @license DOMPurify 3.2.4 | (c) Cure53 and other contributors | Released under the Apache license 2.0 and Mozilla Public License 2.0 | github.com/cure53/DOMPurify/blob/3.2.4/LICENSE */
|
|
3
|
+
t.exports=function(){const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:o,getOwnPropertyDescriptor:i}=Object;let{freeze:r,seal:a,create:l}=Object,{apply:s,construct:c}="undefined"!=typeof Reflect&&Reflect;r||(r=function(t){return t}),a||(a=function(t){return t}),s||(s=function(t,e,n){return t.apply(e,n)}),c||(c=function(t,e){return new t(...e)});const u=A(Array.prototype.forEach),f=A(Array.prototype.lastIndexOf),p=A(Array.prototype.pop),m=A(Array.prototype.push),d=A(Array.prototype.splice),g=A(String.prototype.toLowerCase),h=A(String.prototype.toString),y=A(String.prototype.match),b=A(String.prototype.replace),w=A(String.prototype.indexOf),v=A(String.prototype.trim),x=A(Object.prototype.hasOwnProperty),T=A(RegExp.prototype.test),S=(k=TypeError,function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return c(k,e)});var k;function A(t){return function(e){for(var n=arguments.length,o=new Array(n>1?n-1:0),i=1;i<n;i++)o[i-1]=arguments[i];return s(t,e,o)}}function E(t,o){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:g;e&&e(t,null);let r=o.length;for(;r--;){let e=o[r];if("string"==typeof e){const t=i(e);t!==e&&(n(o)||(o[r]=t),e=t)}t[e]=!0}return t}function R(t){for(let e=0;e<t.length;e++)x(t,e)||(t[e]=null);return t}function _(e){const n=l(null);for(const[o,i]of t(e))x(e,o)&&(n[o]=Array.isArray(i)?R(i):i&&"object"==typeof i&&i.constructor===Object?_(i):i);return n}function z(t,e){for(;null!==t;){const n=i(t,e);if(n){if(n.get)return A(n.get);if("function"==typeof n.value)return A(n.value)}t=o(t)}return function(){return null}}const D=r(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),O=r(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),L=r(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),M=r(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),I=r(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),F=r(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),P=r(["#text"]),N=r(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),C=r(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),j=r(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),U=r(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),B=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),W=a(/<%[\w\W]*|[\w\W]*%>/gm),H=a(/\$\{[\w\W]*/gm),q=a(/^data-[\-\w.\u00B7-\uFFFF]+$/),Y=a(/^aria-[\-\w]+$/),X=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),$=a(/^(?:\w+script|data):/i),G=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),K=a(/^html$/i),V=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var J=Object.freeze({__proto__:null,ARIA_ATTR:Y,ATTR_WHITESPACE:G,CUSTOM_ELEMENT:V,DATA_ATTR:q,DOCTYPE_NAME:K,ERB_EXPR:W,IS_ALLOWED_URI:X,IS_SCRIPT_OR_DATA:$,MUSTACHE_EXPR:B,TMPLIT_EXPR:H});const Q=1,Z=3,tt=7,et=8,nt=9,ot=function(){return"undefined"==typeof window?null:window},it=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const o="data-tt-policy-suffix";e&&e.hasAttribute(o)&&(n=e.getAttribute(o));const i="dompurify"+(n?"#"+n:"");try{return t.createPolicy(i,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+i+" could not be created."),null}};var rt=function e(){let n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:ot();const o=t=>e(t);if(o.version="3.2.4",o.removed=[],!n||!n.document||n.document.nodeType!==nt||!n.Element)return o.isSupported=!1,o;let{document:i}=n;const a=i,s=a.currentScript,{DocumentFragment:c,HTMLTemplateElement:k,Node:A,Element:R,NodeFilter:B,NamedNodeMap:W=n.NamedNodeMap||n.MozNamedAttrMap,HTMLFormElement:H,DOMParser:q,trustedTypes:Y}=n,$=R.prototype,G=z($,"cloneNode"),V=z($,"remove"),rt=z($,"nextSibling"),at=z($,"childNodes"),lt=z($,"parentNode");if("function"==typeof k){const t=i.createElement("template");t.content&&t.content.ownerDocument&&(i=t.content.ownerDocument)}let st,ct="";const{implementation:ut,createNodeIterator:ft,createDocumentFragment:pt,getElementsByTagName:mt}=i,{importNode:dt}=a;let gt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};o.isSupported="function"==typeof t&&"function"==typeof lt&&ut&&void 0!==ut.createHTMLDocument;const{MUSTACHE_EXPR:ht,ERB_EXPR:yt,TMPLIT_EXPR:bt,DATA_ATTR:wt,ARIA_ATTR:vt,IS_SCRIPT_OR_DATA:xt,ATTR_WHITESPACE:Tt,CUSTOM_ELEMENT:St}=J;let{IS_ALLOWED_URI:kt}=J,At=null;const Et=E({},[...D,...O,...L,...I,...P]);let Rt=null;const _t=E({},[...N,...C,...j,...U]);let zt=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Dt=null,Ot=null,Lt=!0,Mt=!0,It=!1,Ft=!0,Pt=!1,Nt=!0,Ct=!1,jt=!1,Ut=!1,Bt=!1,Wt=!1,Ht=!1,qt=!0,Yt=!1;const Xt="user-content-";let $t=!0,Gt=!1,Kt={},Vt=null;const Jt=E({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let Qt=null;const Zt=E({},["audio","video","img","source","image","track"]);let te=null;const ee=E({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),ne="http://www.w3.org/1998/Math/MathML",oe="http://www.w3.org/2000/svg",ie="http://www.w3.org/1999/xhtml";let re=ie,ae=!1,le=null;const se=E({},[ne,oe,ie],h);let ce=E({},["mi","mo","mn","ms","mtext"]),ue=E({},["annotation-xml"]);const fe=E({},["title","style","font","a","script"]);let pe=null;const me=["application/xhtml+xml","text/html"],de="text/html";let ge=null,he=null;const ye=i.createElement("form"),be=function(t){return t instanceof RegExp||t instanceof Function},we=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!he||he!==t){if(t&&"object"==typeof t||(t={}),t=_(t),pe=-1===me.indexOf(t.PARSER_MEDIA_TYPE)?de:t.PARSER_MEDIA_TYPE,ge="application/xhtml+xml"===pe?h:g,At=x(t,"ALLOWED_TAGS")?E({},t.ALLOWED_TAGS,ge):Et,Rt=x(t,"ALLOWED_ATTR")?E({},t.ALLOWED_ATTR,ge):_t,le=x(t,"ALLOWED_NAMESPACES")?E({},t.ALLOWED_NAMESPACES,h):se,te=x(t,"ADD_URI_SAFE_ATTR")?E(_(ee),t.ADD_URI_SAFE_ATTR,ge):ee,Qt=x(t,"ADD_DATA_URI_TAGS")?E(_(Zt),t.ADD_DATA_URI_TAGS,ge):Zt,Vt=x(t,"FORBID_CONTENTS")?E({},t.FORBID_CONTENTS,ge):Jt,Dt=x(t,"FORBID_TAGS")?E({},t.FORBID_TAGS,ge):{},Ot=x(t,"FORBID_ATTR")?E({},t.FORBID_ATTR,ge):{},Kt=!!x(t,"USE_PROFILES")&&t.USE_PROFILES,Lt=!1!==t.ALLOW_ARIA_ATTR,Mt=!1!==t.ALLOW_DATA_ATTR,It=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Ft=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,Pt=t.SAFE_FOR_TEMPLATES||!1,Nt=!1!==t.SAFE_FOR_XML,Ct=t.WHOLE_DOCUMENT||!1,Bt=t.RETURN_DOM||!1,Wt=t.RETURN_DOM_FRAGMENT||!1,Ht=t.RETURN_TRUSTED_TYPE||!1,Ut=t.FORCE_BODY||!1,qt=!1!==t.SANITIZE_DOM,Yt=t.SANITIZE_NAMED_PROPS||!1,$t=!1!==t.KEEP_CONTENT,Gt=t.IN_PLACE||!1,kt=t.ALLOWED_URI_REGEXP||X,re=t.NAMESPACE||ie,ce=t.MATHML_TEXT_INTEGRATION_POINTS||ce,ue=t.HTML_INTEGRATION_POINTS||ue,zt=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&be(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(zt.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&be(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(zt.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(zt.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),Pt&&(Mt=!1),Wt&&(Bt=!0),Kt&&(At=E({},P),Rt=[],!0===Kt.html&&(E(At,D),E(Rt,N)),!0===Kt.svg&&(E(At,O),E(Rt,C),E(Rt,U)),!0===Kt.svgFilters&&(E(At,L),E(Rt,C),E(Rt,U)),!0===Kt.mathMl&&(E(At,I),E(Rt,j),E(Rt,U))),t.ADD_TAGS&&(At===Et&&(At=_(At)),E(At,t.ADD_TAGS,ge)),t.ADD_ATTR&&(Rt===_t&&(Rt=_(Rt)),E(Rt,t.ADD_ATTR,ge)),t.ADD_URI_SAFE_ATTR&&E(te,t.ADD_URI_SAFE_ATTR,ge),t.FORBID_CONTENTS&&(Vt===Jt&&(Vt=_(Vt)),E(Vt,t.FORBID_CONTENTS,ge)),$t&&(At["#text"]=!0),Ct&&E(At,["html","head","body"]),At.table&&(E(At,["tbody"]),delete Dt.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw S('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');st=t.TRUSTED_TYPES_POLICY,ct=st.createHTML("")}else void 0===st&&(st=it(Y,s)),null!==st&&"string"==typeof ct&&(ct=st.createHTML(""));r&&r(t),he=t}},ve=E({},[...O,...L,...M]),xe=E({},[...I,...F]),Te=function(t){let e=lt(t);e&&e.tagName||(e={namespaceURI:re,tagName:"template"});const n=g(t.tagName),o=g(e.tagName);return!!le[t.namespaceURI]&&(t.namespaceURI===oe?e.namespaceURI===ie?"svg"===n:e.namespaceURI===ne?"svg"===n&&("annotation-xml"===o||ce[o]):Boolean(ve[n]):t.namespaceURI===ne?e.namespaceURI===ie?"math"===n:e.namespaceURI===oe?"math"===n&&ue[o]:Boolean(xe[n]):t.namespaceURI===ie?!(e.namespaceURI===oe&&!ue[o])&&!(e.namespaceURI===ne&&!ce[o])&&!xe[n]&&(fe[n]||!ve[n]):!("application/xhtml+xml"!==pe||!le[t.namespaceURI]))},Se=function(t){m(o.removed,{element:t});try{lt(t).removeChild(t)}catch(e){V(t)}},ke=function(t,e){try{m(o.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){m(o.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t)if(Bt||Wt)try{Se(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},Ae=function(t){let e=null,n=null;if(Ut)t="<remove></remove>"+t;else{const e=y(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===pe&&re===ie&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=st?st.createHTML(t):t;if(re===ie)try{e=(new q).parseFromString(o,pe)}catch(t){}if(!e||!e.documentElement){e=ut.createDocument(re,"template",null);try{e.documentElement.innerHTML=ae?ct:o}catch(t){}}const r=e.body||e.documentElement;return t&&n&&r.insertBefore(i.createTextNode(n),r.childNodes[0]||null),re===ie?mt.call(e,Ct?"html":"body")[0]:Ct?e.documentElement:r},Ee=function(t){return ft.call(t.ownerDocument||t,t,B.SHOW_ELEMENT|B.SHOW_COMMENT|B.SHOW_TEXT|B.SHOW_PROCESSING_INSTRUCTION|B.SHOW_CDATA_SECTION,null)},Re=function(t){return t instanceof H&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof W)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},_e=function(t){return"function"==typeof A&&t instanceof A};function ze(t,e,n){u(t,(t=>{t.call(o,e,n,he)}))}const De=function(t){let e=null;if(ze(gt.beforeSanitizeElements,t,null),Re(t))return Se(t),!0;const n=ge(t.nodeName);if(ze(gt.uponSanitizeElement,t,{tagName:n,allowedTags:At}),t.hasChildNodes()&&!_e(t.firstElementChild)&&T(/<[/\w]/g,t.innerHTML)&&T(/<[/\w]/g,t.textContent))return Se(t),!0;if(t.nodeType===tt)return Se(t),!0;if(Nt&&t.nodeType===et&&T(/<[/\w]/g,t.data))return Se(t),!0;if(!At[n]||Dt[n]){if(!Dt[n]&&Le(n)){if(zt.tagNameCheck instanceof RegExp&&T(zt.tagNameCheck,n))return!1;if(zt.tagNameCheck instanceof Function&&zt.tagNameCheck(n))return!1}if($t&&!Vt[n]){const e=lt(t)||t.parentNode,n=at(t)||t.childNodes;if(n&&e)for(let o=n.length-1;o>=0;--o){const i=G(n[o],!0);i.__removalCount=(t.__removalCount||0)+1,e.insertBefore(i,rt(t))}}return Se(t),!0}return t instanceof R&&!Te(t)?(Se(t),!0):"noscript"!==n&&"noembed"!==n&&"noframes"!==n||!T(/<\/no(script|embed|frames)/i,t.innerHTML)?(Pt&&t.nodeType===Z&&(e=t.textContent,u([ht,yt,bt],(t=>{e=b(e,t," ")})),t.textContent!==e&&(m(o.removed,{element:t.cloneNode()}),t.textContent=e)),ze(gt.afterSanitizeElements,t,null),!1):(Se(t),!0)},Oe=function(t,e,n){if(qt&&("id"===e||"name"===e)&&(n in i||n in ye))return!1;if(Mt&&!Ot[e]&&T(wt,e));else if(Lt&&T(vt,e));else if(!Rt[e]||Ot[e]){if(!(Le(t)&&(zt.tagNameCheck instanceof RegExp&&T(zt.tagNameCheck,t)||zt.tagNameCheck instanceof Function&&zt.tagNameCheck(t))&&(zt.attributeNameCheck instanceof RegExp&&T(zt.attributeNameCheck,e)||zt.attributeNameCheck instanceof Function&&zt.attributeNameCheck(e))||"is"===e&&zt.allowCustomizedBuiltInElements&&(zt.tagNameCheck instanceof RegExp&&T(zt.tagNameCheck,n)||zt.tagNameCheck instanceof Function&&zt.tagNameCheck(n))))return!1}else if(te[e]);else if(T(kt,b(n,Tt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==w(n,"data:")||!Qt[t])if(It&&!T(xt,b(n,Tt,"")));else if(n)return!1;return!0},Le=function(t){return"annotation-xml"!==t&&y(t,St)},Me=function(t){ze(gt.beforeSanitizeAttributes,t,null);const{attributes:e}=t;if(!e||Re(t))return;const n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Rt,forceKeepAttr:void 0};let i=e.length;for(;i--;){const r=e[i],{name:a,namespaceURI:l,value:s}=r,c=ge(a);let f="value"===a?s:v(s);if(n.attrName=c,n.attrValue=f,n.keepAttr=!0,n.forceKeepAttr=void 0,ze(gt.uponSanitizeAttribute,t,n),f=n.attrValue,!Yt||"id"!==c&&"name"!==c||(ke(a,t),f=Xt+f),Nt&&T(/((--!?|])>)|<\/(style|title)/i,f)){ke(a,t);continue}if(n.forceKeepAttr)continue;if(ke(a,t),!n.keepAttr)continue;if(!Ft&&T(/\/>/i,f)){ke(a,t);continue}Pt&&u([ht,yt,bt],(t=>{f=b(f,t," ")}));const m=ge(t.nodeName);if(Oe(m,c,f)){if(st&&"object"==typeof Y&&"function"==typeof Y.getAttributeType)if(l);else switch(Y.getAttributeType(m,c)){case"TrustedHTML":f=st.createHTML(f);break;case"TrustedScriptURL":f=st.createScriptURL(f)}try{l?t.setAttributeNS(l,a,f):t.setAttribute(a,f),Re(t)?Se(t):p(o.removed)}catch(t){}}}ze(gt.afterSanitizeAttributes,t,null)},Ie=function t(e){let n=null;const o=Ee(e);for(ze(gt.beforeSanitizeShadowDOM,e,null);n=o.nextNode();)ze(gt.uponSanitizeShadowNode,n,null),De(n),Me(n),n.content instanceof c&&t(n.content);ze(gt.afterSanitizeShadowDOM,e,null)};return o.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=null,i=null,r=null,l=null;if(ae=!t,ae&&(t="\x3c!--\x3e"),"string"!=typeof t&&!_e(t)){if("function"!=typeof t.toString)throw S("toString is not a function");if("string"!=typeof(t=t.toString()))throw S("dirty is not a string, aborting")}if(!o.isSupported)return t;if(jt||we(e),o.removed=[],"string"==typeof t&&(Gt=!1),Gt){if(t.nodeName){const e=ge(t.nodeName);if(!At[e]||Dt[e])throw S("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof A)n=Ae("\x3c!----\x3e"),i=n.ownerDocument.importNode(t,!0),i.nodeType===Q&&"BODY"===i.nodeName||"HTML"===i.nodeName?n=i:n.appendChild(i);else{if(!Bt&&!Pt&&!Ct&&-1===t.indexOf("<"))return st&&Ht?st.createHTML(t):t;if(n=Ae(t),!n)return Bt?null:Ht?ct:""}n&&Ut&&Se(n.firstChild);const s=Ee(Gt?t:n);for(;r=s.nextNode();)De(r),Me(r),r.content instanceof c&&Ie(r.content);if(Gt)return t;if(Bt){if(Wt)for(l=pt.call(n.ownerDocument);n.firstChild;)l.appendChild(n.firstChild);else l=n;return(Rt.shadowroot||Rt.shadowrootmode)&&(l=dt.call(a,l,!0)),l}let f=Ct?n.outerHTML:n.innerHTML;return Ct&&At["!doctype"]&&n.ownerDocument&&n.ownerDocument.doctype&&n.ownerDocument.doctype.name&&T(K,n.ownerDocument.doctype.name)&&(f="<!DOCTYPE "+n.ownerDocument.doctype.name+">\n"+f),Pt&&u([ht,yt,bt],(t=>{f=b(f,t," ")})),st&&Ht?st.createHTML(f):f},o.setConfig=function(){we(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),jt=!0},o.clearConfig=function(){he=null,jt=!1},o.isValidAttribute=function(t,e,n){he||we({});const o=ge(t),i=ge(e);return Oe(o,i,n)},o.addHook=function(t,e){"function"==typeof e&&m(gt[t],e)},o.removeHook=function(t,e){if(void 0!==e){const n=f(gt[t],e);return-1===n?void 0:d(gt[t],n,1)[0]}return p(gt[t])},o.removeHooks=function(t){gt[t]=[]},o.removeAllHooks=function(){gt={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},o}();return rt}()}));export{n as p}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as e,c as t,h as i,H as a,F as o}from"./p-23a36bb6.js";import{a as s,b as r,c as n,R as l}from"./p-1cebdc92.js";const c=class{constructor(i){e(this,i),this.executeToolbarCommand=t(this,"executeToolbarCommand",7),this.textToShow=void 0,this.link=void 0,this.openInNewGuide=!1}async show(e){this._popupElement.opened=!0,e&&(this.textToShow=e)}async hide(){this._popupElement.opened=!1}async handleCancel(){this.clearValues(),this.executeToolbarCommand.emit({command:s.FOCUS}),await this.hide()}clearValues(){this.link="",this.textToShow="",this.openInNewGuide=!1}async handleCreateLink(){this.executeToolbarCommand.emit({command:s.FORMAT,value:`<a href="${this.link}" ${this.openInNewGuide?'target="_blank" rel="noopener noreferrer"':""}>${this.textToShow?this.textToShow:this.link}</a>`}),this.clearValues(),await this.hide()}async handleActionPopup(e){"OK"!==e.detail?"CANCEL"!==e.detail&&"CLOSE"!==e.detail||await this.handleCancel():await this.handleCreateLink()}getOkButtonStatus(){var e;return(null===(e=this.link)||void 0===e?void 0:e.trim())?"ENABLED":"DISABLED"}render(){return i("ez-popup",{heightMode:"auto",size:"small",useHeader:!1,ref:e=>this._popupElement=e,onEzClosePopup:()=>this.clearValues()},i("div",null,i("ez-modal-container",{modalTitle:"Adicionar link",modalSubTitle:"Insira um link no texto para abrir novas páginas.",okButtonLabel:"Enviar",cancelButtonLabel:"Cancelar",onEzModalAction:this.handleActionPopup.bind(this),okButtonStatus:this.getOkButtonStatus()},i("div",{class:"link-builder-container"},i("ez-text-input",{id:"link_url_input",label:"Insira a URL destino",value:this.link,onEzChange:e=>this.link=e.detail}),i("ez-text-input",{id:"link_text_input",label:"Insira o texto a ser exibido",value:this.textToShow,onEzChange:e=>this.textToShow=e.detail}),i("ez-check",{label:"Abrir em uma nova página.",value:this.openInNewGuide,onEzChange:e=>this.openInNewGuide=e.detail})))))}};c.style=".link-builder-container.sc-ez-link-builder{font-family:'Roboto';color:#2b3a54;display:flex;flex-direction:column;gap:10px;justify-content:space-between}.header.sc-ez-link-builder{display:flex;font-weight:500;font-size:16px}.actions.sc-ez-link-builder{display:flex;justify-content:flex-end;gap:12px;margin-top:12px;width:100%}";const h=class{constructor(i){e(this,i),this.executeToolbarCommand=t(this,"executeToolbarCommand",7),this.showPreview=!0,this.isPreviewMode=!1,this.showConfigs=!0,this.showTextFormat=!0,this.showUndoRedo=!0}handleActionTriggered(e){this.executeToolbarCommand.emit({command:e.detail.command,value:e.detail.value})}handleClickPreview(){this.executeToolbarCommand.emit({command:s.PREVIEW})}renderArrows(){if(this.showUndoRedo)return i("div",{id:"rich-toolbar-undo-redo",class:"taskbar-group"},i("ez-rich-toolbar-arrows",null))}renderLetters(){if(this.showTextFormat)return i("div",{id:"rich-toolbar-text-format",class:"taskbar-group"},i("ez-rich-toolbar-letters",null))}renderConfigs(){if(this.showConfigs)return i("div",{id:"rich-toolbar-options-configs",class:"taskbar-group"},i("ez-rich-toolbar-configs",null))}renderPreview(){if(this.showPreview)return i("div",{class:"taskbar-group"},i("span",{id:"rich-text-preview-btn",class:"preview-btn",title:this.getPreviewTitle(),onClick:this.handleClickPreview.bind(this)},this.isPreviewMode?"Editar":"Pré-visualizar"))}getPreviewTitle(){return this.isPreviewMode?r.EDIT:r.PREVIEW}render(){return i(a,null,i("div",{class:"taskbar"},this.renderPreview(),this.renderArrows(),this.renderLetters(),this.renderConfigs()))}};h.style=".sc-ez-rich-toolbar-h{display:block;width:100%}.taskbar.sc-ez-rich-toolbar{display:flex;padding:8px;border-radius:4px 4px 0 0}.taskbar-group.sc-ez-rich-toolbar{display:flex;margin-right:15px;padding-right:15px;border-right:1px solid #ddd}.taskbar-group.sc-ez-rich-toolbar:last-child{border-right:none}.preview-btn.sc-ez-rich-toolbar{font-family:Roboto;font-size:14px;background:none;display:flex;align-items:center;padding:0 8px;border-radius:4px;cursor:pointer;color:var(--color--secondary, #383c45);transition:0.3s all ease-in-out;width:110px;justify-content:center}.preview-btn.sc-ez-rich-toolbar:hover{background-color:#f5f5f5}";const d=class{constructor(t){e(this,t)}render(){return i(a,null,i("ez-rich-toolbar-item",{icon:n.UNDO,command:s.UNDO,title:r.UNDO}),i("ez-rich-toolbar-item",{icon:n.REDO,command:s.REDO,title:r.REDO}))}};d.style=".sc-ez-rich-toolbar-arrows-h{display:flex;gap:5px}";const p=class{constructor(t){e(this,t)}render(){return i(a,null,i("ez-rich-toolbar-item",{icon:n.LIST,command:s.FORMAT,value:l.LIST,title:r.LIST}),i("ez-rich-toolbar-item",{icon:n.IMAGE,command:s.IMAGE,title:r.IMAGE}),i("ez-rich-toolbar-item",{icon:n.LINK,command:s.LINK,title:r.LINK}))}};p.style=".sc-ez-rich-toolbar-configs-h{display:flex;gap:5px}";const u=class{constructor(t){e(this,t)}render(){return i(a,null,i("ez-rich-toolbar-item",{icon:n.BOLD,command:s.FORMAT,value:l.BOLD,title:r.BOLD}),i("ez-rich-toolbar-item",{icon:n.ITALIC,command:s.FORMAT,value:l.ITALIC,title:r.ITALIC}),i("ez-rich-toolbar-item",{icon:n.UNDERLINE,command:s.FORMAT,value:l.UNDERLINE,title:r.UNDERLINE}))}};function m(e,t=1){if(0===e)return"0 Bytes";const i=t<0?0:t,a=Math.floor(Math.log(e)/Math.log(1024));return parseFloat((e/Math.pow(1024,a)).toFixed(i))+" "+["Bytes","Kilobytes","Megabytes","Gigabytes","Terabytes","Petabytes","Exabytes","Zettabytes","Yottabytes"][a]}u.style=".sc-ez-rich-toolbar-letters-h{display:flex;gap:5px}";const b=class{constructor(i){e(this,i),this.executeToolbarCommand=t(this,"executeToolbarCommand",7),this.link=void 0,this.base64=void 0,this.messageError=void 0,this.selectedFile=void 0,this.maxSize=500}async show(){this._popupElement.opened=!0}async hide(){this._popupElement.opened=!1}async handleCancel(){this.removeSelectedFile(),this.executeToolbarCommand.emit({command:s.FOCUS}),await this.hide()}removeSelectedFile(e){null==e||e.stopPropagation(),this.link=void 0,this.base64=void 0,this.selectedFile=void 0,this.messageError=void 0}triggerFileSelect(){this.selectedFile||this._fileInput.click()}async handleImage(e){const t=e&&e[0];t&&(t.size<1e3*this.maxSize?(this.selectedFile=t,this.base64=await function(e){return new Promise(((t,i)=>{try{const i=new FileReader;i.onload=()=>{t(i.result)},i.readAsDataURL(e)}catch(e){i(e)}}))}(t)):this.messageError=`A imagem deve ter menos de ${m(this.maxSize)}.`)}getFileList(e){return e instanceof DragEvent?Array.from(e.dataTransfer.files):e.target.files}handleFileChange(e){e.preventDefault(),this.messageError=void 0,this._dropZone.classList.remove("dragging");const t=this.getFileList(e);this.handleImage(t),e.target.value=""}handleDragOver(e){e.stopPropagation(),e.preventDefault()}handleDragEnter(e){e.preventDefault(),this._dropZone.classList.add("dragging")}handleDragLeave(e){e.preventDefault(),this._dropZone.contains(e.relatedTarget)||this._dropZone.classList.remove("dragging")}async handleActionPopup(e){"OK"===e.detail?await this.handleCreateImgTag():"CANCEL"!==e.detail&&"CLOSE"!==e.detail||await this.handleCancel()}async handleCreateImgTag(){var e;const t=`<img src="${null!==(e=this.base64)&&void 0!==e?e:this.link}" alt="Image" />`;this.executeToolbarCommand.emit({command:s.FORMAT,value:t}),this.removeSelectedFile(),await this.hide()}getOkButtonStatus(){var e;return this.base64||(null===(e=this.link)||void 0===e?void 0:e.trim())?"ENABLED":"DISABLED"}render(){return i("ez-popup",{ref:e=>this._popupElement=e,heightMode:"auto",size:"small",useHeader:!1,onEzClosePopup:()=>this.handleCancel()},i("div",null,i("ez-modal-container",{modalTitle:"Upload de imagens",modalSubTitle:"Envie seus arquivos preenchendo apenas 1 campo por vez.",okButtonLabel:"Enviar",cancelButtonLabel:"Cancelar",onEzModalAction:this.handleActionPopup.bind(this),okButtonStatus:this.getOkButtonStatus()},i("div",{class:"image-uploader-container"},i("ez-tooltip",{message:"O arquivo selecionado abaixo será priorizado!",active:!!this.selectedFile},i("ez-text-input",{label:"Insira a URL da imagem",value:this.link,onEzChange:e=>this.link=e.detail,enabled:!this.selectedFile})),i("span",null,"OU"),i("section",{class:"drop-zone-section"},i("div",{ref:e=>this._dropZone=e,class:"drop-zone",onDrop:e=>this.handleFileChange(e),onDragOver:e=>this.handleDragOver(e),onDragEnter:e=>this.handleDragEnter(e),onDragLeave:e=>this.handleDragLeave(e)},i("div",{class:{"drop-zone-container":!0,clickable:!this.selectedFile},onClick:()=>this.triggerFileSelect()},this.selectedFile?i(o,null,i("span",{class:"ez-text ez-text--primary ez-text--medium"},this.selectedFile.name," (",m(this.selectedFile.size),")"),i("button",{class:"button-close",onClick:e=>this.removeSelectedFile(e),title:"Remover arquivo"},i("ez-icon",{iconName:"close"}))):i(o,null,i("ez-icon",{iconName:"anexo"}),i("span",{class:"ez-text ez-text--primary ez-text--medium"},"Arraste e solte ou clique para adicionar arquivos"))),i("input",{ref:e=>this._fileInput=e,type:"file",accept:"image/*",style:{display:"none"},onChange:e=>this.handleFileChange(e)})),!!this.messageError&&i("span",{class:"text-error"},this.messageError))))))}};b.style='.image-uploader-container.sc-ez-simple-image-uploader{font-family:"Roboto";color:#2b3a54;display:flex;flex-direction:column;gap:var(--space--10, 10px);justify-content:space-between;align-items:center;padding-bottom:var(--space--8, 8px)}.header.sc-ez-simple-image-uploader{display:flex;font-weight:500;font-size:var(--font-size--medium, 16px)}.actions.sc-ez-simple-image-uploader{display:flex;justify-content:flex-end;gap:var(--space--12, 12px);margin-top:var(--space--12, 12px);width:100%}.drop-zone-section.sc-ez-simple-image-uploader{width:100%}.drop-zone.sc-ez-simple-image-uploader{display:flex;flex-wrap:wrap;background-color:var(--color--petroleum-70, #F4F6F9);padding:var(--space--6, 6px);width:100%;border-radius:var(--space--12, 12px);box-sizing:border-box;min-height:100px}.clickable.sc-ez-simple-image-uploader{cursor:pointer}.dragging.sc-ez-simple-image-uploader{background-color:var(--color--petroleum-100, #C8CCD3)}.drop-zone-container.sc-ez-simple-image-uploader{width:100%;display:flex;flex-wrap:wrap;justify-content:center;align-items:center;border:2px dashed var(--color-strokes, #DCE0E8);border-radius:6px;box-sizing:border-box}.text-error.sc-ez-simple-image-uploader{font-family:var(--font--pattern, "Roboto");color:var(--color--red-600, #BD0025);font-size:var(--font-size--small, 12px)}.button-close.sc-ez-simple-image-uploader{border:none;background:none;cursor:pointer}';export{c as ez_link_builder,h as ez_rich_toolbar,d as ez_rich_toolbar_arrows,p as ez_rich_toolbar_configs,u as ez_rich_toolbar_letters,b as ez_simple_image_uploader}
|
|
@@ -113,6 +113,7 @@ export default class AgGridController implements EzGridController, SortingProvid
|
|
|
113
113
|
setSelectedIndex(index: number): void;
|
|
114
114
|
hasFilterColumn(columnName: string): boolean;
|
|
115
115
|
private buildColDef;
|
|
116
|
+
private setHTMLRender;
|
|
116
117
|
setCustomFormatters(customFormatters: Map<string, ICustomFormatter>): void;
|
|
117
118
|
refreshSelectedRows(): void;
|
|
118
119
|
private getInitCellStyle;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import { RichToolbarCommand } from '../ez-rich-toolbar/RichToolbarHelper';
|
|
3
|
+
export declare class EzLinkBuilder {
|
|
4
|
+
private _popupElement;
|
|
5
|
+
executeToolbarCommand: EventEmitter<RichToolbarCommand>;
|
|
6
|
+
textToShow: string;
|
|
7
|
+
link: string;
|
|
8
|
+
openInNewGuide: boolean;
|
|
9
|
+
show(text?: string): Promise<void>;
|
|
10
|
+
hide(): Promise<void>;
|
|
11
|
+
private handleCancel;
|
|
12
|
+
private clearValues;
|
|
13
|
+
private handleCreateLink;
|
|
14
|
+
private handleActionPopup;
|
|
15
|
+
private getOkButtonStatus;
|
|
16
|
+
render(): any;
|
|
17
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import { EventEmitter } from '../../stencil-public-runtime';
|
|
2
|
+
import { RichToolbarCommand } from './ez-rich-toolbar/RichToolbarHelper';
|
|
3
|
+
export declare class EzRichText {
|
|
4
|
+
private _keyboardManager;
|
|
5
|
+
private textAreaRef;
|
|
6
|
+
private linkBuilderRef;
|
|
7
|
+
private imageUploaderRef;
|
|
8
|
+
private historyStack;
|
|
9
|
+
private historyIndex;
|
|
10
|
+
element: HTMLElement;
|
|
11
|
+
previewMode: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Informa se as opções a opção de pré-visualização deve ser apresentada.
|
|
14
|
+
*/
|
|
15
|
+
showPreview: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Define se deve exibir a borda externa do componente
|
|
18
|
+
*/
|
|
19
|
+
showBorder: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Define o valor HTML do campo.
|
|
22
|
+
*/
|
|
23
|
+
value: string;
|
|
24
|
+
/**
|
|
25
|
+
* Texto a ser apresentado como título do campo.
|
|
26
|
+
*/
|
|
27
|
+
label: string;
|
|
28
|
+
/**
|
|
29
|
+
* Se false o usuário não pode interagir com o campo.
|
|
30
|
+
*/
|
|
31
|
+
enabled: boolean;
|
|
32
|
+
/**
|
|
33
|
+
* Define o número de linhas.
|
|
34
|
+
*/
|
|
35
|
+
rows: number;
|
|
36
|
+
/**
|
|
37
|
+
* Define uma mensagem de orientação ao usuário, colocando o campo em modo inválido.
|
|
38
|
+
*/
|
|
39
|
+
errorMessage: string;
|
|
40
|
+
/**
|
|
41
|
+
* Informa se as opções de configurações (lista, imagem e link) devem ser apresentadas
|
|
42
|
+
*/
|
|
43
|
+
showConfigs: boolean;
|
|
44
|
+
/**
|
|
45
|
+
* Informa se as opções de formatação de texto (itálico, sublinhado e negrito) devem ser apresentadas
|
|
46
|
+
*/
|
|
47
|
+
showTextFormat: boolean;
|
|
48
|
+
/**
|
|
49
|
+
* Informa se as opções de desfazer e refazer devem ser habilitadas.
|
|
50
|
+
*/
|
|
51
|
+
showUndoRedo: boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Emitido quando acontece a alteração de valor do campo.
|
|
54
|
+
*/
|
|
55
|
+
ezChange: EventEmitter<string>;
|
|
56
|
+
observeValue(newValue: string, oldValue: string): void;
|
|
57
|
+
handleExecuteToolbarCommand(event: CustomEvent<RichToolbarCommand>): Promise<void>;
|
|
58
|
+
/**
|
|
59
|
+
* Aplica o foco no campo.
|
|
60
|
+
*/
|
|
61
|
+
setFocus(): Promise<void>;
|
|
62
|
+
/**
|
|
63
|
+
* Remove o foco do campo.
|
|
64
|
+
*/
|
|
65
|
+
setBlur(): Promise<void>;
|
|
66
|
+
/**
|
|
67
|
+
* Retorna se o conteúdo é inválido.
|
|
68
|
+
*/
|
|
69
|
+
isInvalid(): Promise<boolean>;
|
|
70
|
+
private bindPreview;
|
|
71
|
+
private bindConfigs;
|
|
72
|
+
private bindTextFormat;
|
|
73
|
+
private initKeyboardManager;
|
|
74
|
+
private executeCommand;
|
|
75
|
+
private handleFocus;
|
|
76
|
+
private handleLink;
|
|
77
|
+
private handleImage;
|
|
78
|
+
private handleRedo;
|
|
79
|
+
private handleUndo;
|
|
80
|
+
private handleFormatSelection;
|
|
81
|
+
private togglePreview;
|
|
82
|
+
private getSelectedText;
|
|
83
|
+
private getTextAreaElement;
|
|
84
|
+
private formatSelection;
|
|
85
|
+
private addToHistory;
|
|
86
|
+
private undo;
|
|
87
|
+
private canExecuteUndo;
|
|
88
|
+
private redo;
|
|
89
|
+
private canExecuteRedo;
|
|
90
|
+
private getValueFromHistory;
|
|
91
|
+
handleTextAreaChanged(event: CustomEvent<string>): void;
|
|
92
|
+
private removeShortcuts;
|
|
93
|
+
componentDidLoad(): void;
|
|
94
|
+
disconnectedCallback(): Promise<void>;
|
|
95
|
+
private getSanitizedValue;
|
|
96
|
+
private renderContent;
|
|
97
|
+
render(): any;
|
|
98
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
export interface RichToolbarCommand {
|
|
2
|
+
command: string;
|
|
3
|
+
value?: string;
|
|
4
|
+
}
|
|
5
|
+
export declare const RICH_TOOLBAR_COMMANDS: {
|
|
6
|
+
PREVIEW: string;
|
|
7
|
+
UNDO: string;
|
|
8
|
+
REDO: string;
|
|
9
|
+
FORMAT: string;
|
|
10
|
+
LINK: string;
|
|
11
|
+
IMAGE: string;
|
|
12
|
+
FOCUS: string;
|
|
13
|
+
};
|
|
14
|
+
export declare const RICH_TOOLBAR_FORMAT_TAGS: {
|
|
15
|
+
BOLD: string;
|
|
16
|
+
ITALIC: string;
|
|
17
|
+
UNDERLINE: string;
|
|
18
|
+
LIST: string;
|
|
19
|
+
BREAK_LINE: string;
|
|
20
|
+
};
|
|
21
|
+
export declare const RICH_TOOLBAR_COMMAND_TITLE: {
|
|
22
|
+
PREVIEW: string;
|
|
23
|
+
EDIT: string;
|
|
24
|
+
UNDO: string;
|
|
25
|
+
REDO: string;
|
|
26
|
+
LINK: string;
|
|
27
|
+
IMAGE: string;
|
|
28
|
+
LIST: string;
|
|
29
|
+
UNDERLINE: string;
|
|
30
|
+
ITALIC: string;
|
|
31
|
+
BOLD: string;
|
|
32
|
+
};
|
|
33
|
+
export declare const RICH_TOOLBAR_COMMAND_ICON: {
|
|
34
|
+
PREVIEW: string;
|
|
35
|
+
UNDO: string;
|
|
36
|
+
REDO: string;
|
|
37
|
+
LINK: string;
|
|
38
|
+
IMAGE: string;
|
|
39
|
+
LIST: string;
|
|
40
|
+
UNDERLINE: string;
|
|
41
|
+
ITALIC: string;
|
|
42
|
+
BOLD: string;
|
|
43
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../../stencil-public-runtime';
|
|
2
|
+
import { RichToolbarCommand } from '../RichToolbarHelper';
|
|
3
|
+
export declare class EzRichToolbarItem {
|
|
4
|
+
actionTriggered: EventEmitter<RichToolbarCommand>;
|
|
5
|
+
icon: string;
|
|
6
|
+
command: string;
|
|
7
|
+
title: string;
|
|
8
|
+
value?: string;
|
|
9
|
+
private triggerAction;
|
|
10
|
+
render(): any;
|
|
11
|
+
}
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { EventEmitter } from '../../../stencil-public-runtime';
|
|
2
|
+
import { RichToolbarCommand } from './RichToolbarHelper';
|
|
3
|
+
export declare class EzRichToolbar {
|
|
4
|
+
/**
|
|
5
|
+
* Informa se as opções a opção de pré-visualização deve ser apresentada.
|
|
6
|
+
*/
|
|
7
|
+
showPreview: boolean;
|
|
8
|
+
/**
|
|
9
|
+
* Informa se o editor está em modo preview.
|
|
10
|
+
*/
|
|
11
|
+
isPreviewMode: boolean;
|
|
12
|
+
/**
|
|
13
|
+
* Informa se as opções de configurações (lista, imagem e link) devem ser apresentadas.
|
|
14
|
+
*/
|
|
15
|
+
showConfigs: boolean;
|
|
16
|
+
/**
|
|
17
|
+
* Informa se as opções de formatação de texto (itálico, sublinhado e negrito) devem ser apresentadas.
|
|
18
|
+
*/
|
|
19
|
+
showTextFormat: boolean;
|
|
20
|
+
/**
|
|
21
|
+
* Informa se as opções de desfazer e refazer devem ser apresentadas.
|
|
22
|
+
*/
|
|
23
|
+
showUndoRedo: boolean;
|
|
24
|
+
executeToolbarCommand: EventEmitter<RichToolbarCommand>;
|
|
25
|
+
handleActionTriggered(event: CustomEvent<RichToolbarCommand>): void;
|
|
26
|
+
private handleClickPreview;
|
|
27
|
+
private renderArrows;
|
|
28
|
+
private renderLetters;
|
|
29
|
+
private renderConfigs;
|
|
30
|
+
private renderPreview;
|
|
31
|
+
private getPreviewTitle;
|
|
32
|
+
render(): any;
|
|
33
|
+
}
|
package/dist/types/components/ez-rich-text/ez-simple-image-uploader/ez-simple-image-uploader.d.ts
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EventEmitter } from "../../../stencil-public-runtime";
|
|
2
|
+
import { RichToolbarCommand } from "../ez-rich-toolbar/RichToolbarHelper";
|
|
3
|
+
export declare class EzSimpleImageUploader {
|
|
4
|
+
private _popupElement;
|
|
5
|
+
private _dropZone;
|
|
6
|
+
private _fileInput;
|
|
7
|
+
executeToolbarCommand: EventEmitter<RichToolbarCommand>;
|
|
8
|
+
private link;
|
|
9
|
+
private base64;
|
|
10
|
+
private messageError;
|
|
11
|
+
private selectedFile;
|
|
12
|
+
/**
|
|
13
|
+
* Tamanho máximo que a imagem poderá ter em kilobytes.
|
|
14
|
+
*/
|
|
15
|
+
maxSize: number;
|
|
16
|
+
/**
|
|
17
|
+
* Método responsável pela abertura do popup.
|
|
18
|
+
*/
|
|
19
|
+
show(): Promise<void>;
|
|
20
|
+
/**
|
|
21
|
+
* Método responsável pelo fechamento do popup.
|
|
22
|
+
*/
|
|
23
|
+
hide(): Promise<void>;
|
|
24
|
+
private handleCancel;
|
|
25
|
+
private removeSelectedFile;
|
|
26
|
+
private triggerFileSelect;
|
|
27
|
+
private handleImage;
|
|
28
|
+
private getFileList;
|
|
29
|
+
private handleFileChange;
|
|
30
|
+
private handleDragOver;
|
|
31
|
+
private handleDragEnter;
|
|
32
|
+
private handleDragLeave;
|
|
33
|
+
private handleActionPopup;
|
|
34
|
+
private handleCreateImgTag;
|
|
35
|
+
private getOkButtonStatus;
|
|
36
|
+
render(): any;
|
|
37
|
+
}
|
package/dist/types/components/ez-rich-text/ez-simple-image-uploader/test/resource/imageBase64.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const imageTestBase64 = "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAAMCAgICAgMCAgIDAwMDBAYEBAQEBAgGBgUGCQgKCgkICQkKDA8MCgsOCwkJDRENDg8QEBEQCgwSExIQEw8QEBD/2wBDAQMDAwQDBAgEBAgQCwkLEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBAQEBD/wAARCABEAD0DAREAAhEBAxEB/8QAHAAAAgIDAQEAAAAAAAAAAAAABwgABgIFCQQD/8QAPRAAAQIEBAQEAwUECwAAAAAAAQIDBAUGEQAHEiEIEzFhFCJBcTJRYgkVQoGCFlJytCMzNzhzdHaSoaLB/8QAHQEAAQQDAQEAAAAAAAAAAAAABgAEBQcCAwgBCf/EAEIRAAECBAMGAgQKCAcAAAAAAAECAwAEBREGITEHEhMiQVFhcTKBkcEIFCNCUmKhsdHwCRUWMzWCouE0cnOSssLx/9oADAMBAAIRAxEAPwDqnhQomFCjxzacSqQwDs0nUwh4KEZF1vPuBCR2ufX5DqcYOOIaTvLNhDiVlH550MSyCtZ0AFzC/wCYnFQhBdlmXMIFndJmUU3t7ttnr7r/ANpxATdbtyy49Z9w/H2RbeH9l5Nn6yq31En/AJK9yf8AdFOoniarinn+TUhTP4JaypQds2+i530rAsRv0UD8gQMM5asvtGznMPtgjrWzal1BO9JfIrHbNJ8wfvBHcgwxVDZuUPmChKJJNUtxpF1QMTZt8fOyb2X7pJGCK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o3KgDKoyy5xxCEDS+fa8cy0eo/q1h0qWQF2Fh1tfUds+uUPhQ2R9KUjy42ObE3mSbK50Qgcts/Q3uB7m522tjfLU1pjmVzH89IZzlXfmuVPKnsPeYI2JGImJhQomFCiYUKMXG23m1NPNpWhYKVJULhQPUEeuPCAcjHoJBuIo7+SeXMROhOlyFINjqhEqtDKV+8W+n5Cye2GRp0uV7+76ukSIq02G+Hvevr7fyYukJBwkvhmoKAhWYaHYSENMsoCEISOgSkbAdhh8BbIRHEkm5j7YUeRMKFEwoUf/Z";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function fileToBase64(file: File): Promise<string>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function formatBytes(bytes: number, decimals?: number): string;
|