@stratusjs/angular 0.10.1 → 0.11.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/angular.bundle.js +89647 -89617
- package/dist/angular.bundle.min.js +1 -1
- package/package.json +3 -4
- package/src/angular.module.js +155 -0
- package/src/angular.module.js.map +1 -0
- package/src/angular.module.min.js +1 -0
- package/src/angular.module.ts +114 -0
- package/src/app.module.js +7 -116
- package/src/app.module.js.map +1 -1
- package/src/app.module.min.js +1 -1
- package/src/app.module.ts +8 -113
- package/src/base/base.component.js +1 -1
- package/src/base/base.component.js.map +1 -1
- package/src/base/base.component.min.js +1 -1
- package/src/base/base.component.ts +1 -1
- package/src/confirm-dialog/confirm-dialog.component.js +1 -1
- package/src/confirm-dialog/confirm-dialog.component.js.map +1 -1
- package/src/confirm-dialog/confirm-dialog.component.min.js +1 -1
- package/src/confirm-dialog/confirm-dialog.component.ts +1 -1
- package/src/editor/citation-dialog.component.css +2 -1
- package/src/editor/citation-dialog.component.css.map +1 -1
- package/src/editor/citation-dialog.component.js +1 -1
- package/src/editor/citation-dialog.component.js.map +1 -1
- package/src/editor/citation-dialog.component.min.css +1 -1
- package/src/editor/citation-dialog.component.min.js +1 -1
- package/src/editor/citation-dialog.component.scss +2 -1
- package/src/editor/citation-dialog.component.ts +1 -1
- package/src/editor/code-view-dialog.component.js +1 -1
- package/src/editor/code-view-dialog.component.js.map +1 -1
- package/src/editor/code-view-dialog.component.min.js +1 -1
- package/src/editor/code-view-dialog.component.ts +1 -1
- package/src/editor/editor.component.js +7 -3
- package/src/editor/editor.component.js.map +1 -1
- package/src/editor/editor.component.min.js +1 -1
- package/src/editor/editor.component.ts +12 -6
- package/src/editor/link-dialog.component.js +1 -1
- package/src/editor/link-dialog.component.js.map +1 -1
- package/src/editor/link-dialog.component.min.js +1 -1
- package/src/editor/link-dialog.component.ts +1 -1
- package/src/editor/media-dialog.component.js +1 -1
- package/src/editor/media-dialog.component.js.map +1 -1
- package/src/editor/media-dialog.component.min.js +1 -1
- package/src/editor/media-dialog.component.ts +1 -1
- package/src/{material.js → material.module.js} +1 -1
- package/src/material.module.js.map +1 -0
- package/src/media-selector/media-selector.component.css +12 -0
- package/src/media-selector/media-selector.component.css.map +1 -1
- package/src/media-selector/media-selector.component.js +1 -1
- package/src/media-selector/media-selector.component.js.map +1 -1
- package/src/media-selector/media-selector.component.min.css +1 -1
- package/src/media-selector/media-selector.component.min.js +1 -1
- package/src/media-selector/media-selector.component.scss +2 -0
- package/src/media-selector/media-selector.component.ts +1 -1
- package/src/selector/selector.component.css +60 -19
- package/src/selector/selector.component.css.map +1 -1
- package/src/selector/selector.component.js +1 -1
- package/src/selector/selector.component.js.map +1 -1
- package/src/selector/selector.component.min.css +1 -1
- package/src/selector/selector.component.min.js +1 -1
- package/src/selector/selector.component.scss +6 -2
- package/src/selector/selector.component.ts +1 -1
- package/src/test/test.directive.js +1 -1
- package/src/test/test.directive.js.map +1 -1
- package/src/test/test.directive.min.js +1 -1
- package/src/test/test.directive.ts +1 -1
- package/src/timezone-selector/timezone-selector.component.js +1 -1
- package/src/timezone-selector/timezone-selector.component.js.map +1 -1
- package/src/timezone-selector/timezone-selector.component.min.js +1 -1
- package/src/timezone-selector/timezone-selector.component.ts +1 -1
- package/src/tree/tree-dialog.component.html +293 -210
- package/src/tree/tree-dialog.component.js +5 -1
- package/src/tree/tree-dialog.component.js.map +1 -1
- package/src/tree/tree-dialog.component.min.html +3 -1
- package/src/tree/tree-dialog.component.min.js +1 -1
- package/src/tree/tree-dialog.component.ts +6 -1
- package/src/tree/tree-node.component.html +2 -2
- package/src/tree/tree-node.component.js +1 -1
- package/src/tree/tree-node.component.js.map +1 -1
- package/src/tree/tree-node.component.min.html +1 -1
- package/src/tree/tree-node.component.min.js +1 -1
- package/src/tree/tree-node.component.ts +1 -1
- package/src/tree/tree.component.css +16 -4
- package/src/tree/tree.component.css.map +1 -1
- package/src/tree/tree.component.html +2 -2
- package/src/tree/tree.component.js +3 -3
- package/src/tree/tree.component.js.map +1 -1
- package/src/tree/tree.component.min.css +1 -1
- package/src/tree/tree.component.min.html +1 -1
- package/src/tree/tree.component.min.js +1 -1
- package/src/tree/tree.component.scss +26 -17
- package/src/tree/tree.component.ts +3 -3
- package/src/angular.modules.js +0 -35
- package/src/angular.modules.js.map +0 -1
- package/src/angular.modules.min.js +0 -1
- package/src/angular.modules.ts +0 -24
- package/src/material.js.map +0 -1
- /package/src/{material.min.js → material.module.min.js} +0 -0
- /package/src/{material.ts → material.module.ts} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["@angular/core","@angular/forms","@angular/material/dialog","rxjs","rxjs/operators","@angular/platform-browser","@stratusjs/runtime/stratus","lodash","../core/root.component","./citation-dialog.component","./link-dialog.component","./media-dialog.component","./code-view-dialog.component","./code-mirror-bridge","@stratusjs/angularjs/services/registry","@stratusjs/core/environment","@stratusjs/core/events/eventManager","html2pdf","font-awesome","froala-plugins","froala-embedly","froala-font-awesome","froala-image-tui","../froala/plugins/citationManager","../froala/plugins/linkManager","../froala/plugins/mediaManager","codemirror","@codemirror/lang-html","@codemirror/theme-one-dark"],function(e,t){"use strict";var i,a,s,n,o,r,l,d,c,u,g,m,h,p,f,b,v,y,k,w,x,S,C,D,M,E,T=this&&this.__decorate||function(e,t,i,a){var s,n=arguments.length,o=n<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(n<3?s(o):n>3?s(t,i,o):s(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},B=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};t&&t.id;return{setters:[function(e){i=e},function(e){a=e},function(e){s=e},function(e){n=e},function(e){o=e},function(e){r=e},function(e){l=e},function(e){d=e},function(e){c=e},function(e){u=e},function(e){g=e},function(e){m=e},function(e){h=e},function(e){p=e},function(e){f=e},function(e){b=e},function(e){v=e},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){y=e},function(e){k=e},function(e){w=e}],execute:function(){"@stratusjs/angular","froala-editor",x="editor",S=b.cookie("env")?"":".min",C=`${l.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^\/]*$/,"").replace(/\/dist\/$/,"/src/")}`,D=`${l.Stratus.BaseUrl}${boot.configuration.paths["froala-editor"].replace(/js\/[^\/]*$/,"")}`,M=(e,t)=>d.default.has(e,t)&&!d.default.isEmpty(d.default.get(e,t)),E=class extends c.RootComponent{constructor(e,t,i,s,r){super(),this.sanitizer=e,this.ref=t,this.elementRef=i,this.fb=s,this.dialog=r,this.title=`${x}_component`,this.dev=!!b.cookie("env"),this.debug=!!b.cookie(`debug_${x}`),this.editor="froala",this._=d.default,this.has=M,this.log=console.log,this.Stratus=l.Stratus,this.registry=new f.Registry,this.onChange=new n.Subject,this.svgIcons={},this.initialized=!1,this.styled=!1,this.blurred=!1,this.focused=!1,this.form=this.fb.group({dataString:new a.FormControl}),this.dataChangeLog=[],this.incomingData="",this.outgoingData="",this.debounceSave=!0,this.debounceTime=5e3,this.forceSave=!1,this.froalaStandardButtons={moreText:["bold","italic","underline","strikeThrough","subscript","superscript","fontFamily","fontSize","textColor","backgroundColor","inlineClass","inlineStyle","clearFormatting"],moreParagraph:["linkManager","formatOL","formatUL","indent","outdent","quote","paragraphFormat","paragraphStyle","alignLeft","alignCenter","alignRight","alignJustify"],moreRich:["mediaManager","insertTable","insertImage","insertVideo","insertFile","citationInsert","insertHR","specialCharacters"],moreMisc:["html","undo","redo","fullscreen","print","selectAll","help"]},this.froalaConfig={attribution:!1,key:l.Stratus.Environment.get("froalaKey"),zIndex:9999,events:{initialized:e=>{this.froalaEditorDirective=e},blur:e=>this.onBlur(e),focus:e=>this.onFocus(e)},codeBeautifierOptions:{end_with_newline:!0,indent_inner_html:!0,extra_liners:'["p", "h1", "h2", "h3", "h4", "h5", "h6", "blockquote", "pre", "ul", "ol", "table", "dl"]',brace_style:"expand",indent_char:" ",indent_size:4,wrap_line_length:0},codeMirror:{fromTextArea:(e,t)=>{const i=[y.basicSetup,y.EditorView.lineWrapping,k.html({})];return b.cookie("dark")&&i.push(w.oneDarkTheme),new p.CodeMirrorBridge({extensions:i}).fromTextArea(e,t)}},codeMirrorOptions:{indentWithTabs:!1,lineNumbers:!0,lineWrapping:!0,mode:"text/html",tabMode:"space",tabSize:4},fileInsertButtons:["fileBack"],fileUploadURL:"https://app.sitetheory.io/?session="+b.cookie("SITETHEORY"),fontFamily:{"Arial,Helvetica,sans-serif":"Arial","Georgia,serif":"Georgia","Impact,Charcoal,sans-serif":"Impact","Tahoma,Geneva,sans-serif":"Tahoma",'"Times New Roman",Times,serif':"Times New Roman","Verdana,Geneva,sans-serif":"Verdana"},heightMax:window.innerHeight||document.documentElement.clientHeight||500,htmlAllowedAttrs:["aria-.+","data-.+","ng-.+","stratus-.+","sa-.+","accept","accept-charset","accesskey","action","align","allow","allowfullscreen","allowtransparency","alt","async","autocomplete","autofocus","autoplay","autosave","background","bgcolor","border","charset","cellpadding","cellspacing","checked","cite","class","color","cols","colspan","content","contenteditable","contextmenu","controls","coords","data","datetime","default","defer","dir","dirname","disabled","download","draggable","dropzone","enctype","for","form","formaction","frameborder","headers","height","hidden","high","href","hreflang","http-equiv","icon","id","ismap","itemprop","keytype","kind","label","lang","language","list","loop","low","max","maxlength","media","method","min","mozallowfullscreen","multiple","muted","name","novalidate","open","optimum","pattern","ping","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","reversed","rows","rowspan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","src","srcdoc","srclang","srcset","start","step","summary","spellcheck","style","tabindex","target","title","type","translate","usemap","value","valign","webkitallowfullscreen","width","wrap","xmlns","xmlns:xlink","accent-height","accumulate","additive","alignment-baseline","alphabetic","amplitude","arabic-form","ascent","attributeName","attributeType","azimuth","baseFrequency","baseline-shift","baseProfile","bbox","begin","bias","by","calcMode","cap-height","clip","clipPathUnits","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","contentScriptType","contentStyleType","crossorigin","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominant-baseline","dur","dx","dy","edgeMode","elevation","enable-background","end","exponent","externalResourcesRequired","fill","fill-opacity","fill-rule","filter","filterRes","filterUnits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","format","from","fr","fx","fy","g1","g2","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","glyphRef","gradientTransform","gradientUnits","hanging","horiz-adv-x","horiz-origin-x","ideographic","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letter-spacing","lighting-color","limitingConeAngle","local","marker-end","marker-mid","marker-start","markerHeight","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overline-position","overline-thickness","panose-1","paint-order","path","pathLength","patternContentUnits","patternTransform","patternUnits","pointer-events","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","referrerPolicy","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shape-rendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","string","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","surfaceScale","systemLanguage","tableValues","targetX","targetY","text-anchor","text-decoration","text-rendering","textLength","to","transform","transform-origin","u1","u2","underline-position","underline-thickness","unicode","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","values","vector-effect","version","vert-adv-y","vert-origin-x","vert-origin-y","viewBox","viewTarget","visibility","widths","word-spacing","writing-mode","x","x-height","x1","x2","xChannelSelector","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y","y1","y2","yChannelSelector","z","zoomAndPan"],htmlAllowedEmptyTags:["textarea","a","iframe","object","video","style","script","form","hr","div","animate","animateMotion","animateTransform","circle","clipPath","defs","desc","discard","ellipse","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","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tspan","unknown","use","view","ng-app","ng-bind","ng-bind-html","ng-bind-template","ng-blur","ng-change","ng-checked","ng-class","ng-class-even","ng-class-odd","ng-click","ng-cloak","ng-controller","ng-copy","ng-csp","ng-cut","ng-dblclick","ng-disabled","ng-focus","ng-form","ng-hide","ng-href","ng-if","ng-include","ng-init","ng-jq","ng-keydown","ng-keypress","ng-keyup","ng-list","ng-maxlength","ng-minlength","ng-model","ng-model-options","ng-mousedown","ng-mouseenter","ng-mouseleave","ng-mousemove","ng-mouseover","ng-mouseup","ng-non-bindable","ng-on","ng-open","ng-options","ng-paste","ng-pattern","ng-pluralize","ng-prop","ng-readonly","ng-ref","ng-repeat","ng-required","ng-selected","ng-show","ng-src","ng-srcset","ng-style","ng-submit","ng-switch","ng-transclude","ng-value","ng-animate-children","ng-animate-swap","ng-outlet","ng-message","ng-message-default","ng-message-exp","ng-messages","ng-messages-include","ng-view","ng-swipe-left","ng-swipe-right","md-autocomplete","md-autofocus","md-button","md-calendar","md-card","md-checkbox","md-chip","md-chip-remove","md-chips","md-colors","md-contact-chips","md-content","md-datepicker","md-dialog","md-divider","md-fab-actions","md-fab-speed-dial","md-fab-toolbar","md-force-height","md-grid-list","md-grid-tile","md-highlight-text","md-icon","md-ink-ripple","md-input","md-input-container","md-list","md-list-item","md-menu","md-menu-bar","md-nav-bar","md-nav-item","md-optgroup","md-option","md-progress-circular","md-progress-linear","md-radio-button","md-radio-group","md-select","md-select-on-focus","md-sidenav","md-slider","md-slider-container","md-subheader","md-swipe-down","md-swipe-left","md-swipe-right","md-swipe-up","md-switch","md-tab","md-tabs","md-toolbar","md-tooltip","md-truncate","md-virtual-repeat","md-virtual-repeat-container","md-whiteframe","md-svg-src","stratus-base","stratus-calculator-mortgage","stratus-calendar","stratus-citation","stratus-citation-notitle","stratus-contact-form","stratus-content-selector","stratus-date-time","stratus-delete","stratus-error-message","stratus-facebook","stratus-filter","stratus-help","stratus-idx-disclaimer","stratus-idx-map","stratus-idx-member-details","stratus-idx-member-list","stratus-idx-member-search","stratus-idx-office-list","stratus-idx-office-search","stratus-idx-property-details","stratus-idx-property-details-sub-section","stratus-idx-property-list","stratus-idx-property-search","stratus-image-carousel","stratus-json-editor","stratus-media-details","stratus-media-drag-drop","stratus-media-library","stratus-media-selector","stratus-media-short-details","stratus-media-uploader","stratus-open-houses","stratus-option-value","stratus-pagination","stratus-password-reset","stratus-permissions","stratus-proposal-alert","stratus-publish","stratus-role","stratus-search","stratus-single-sign-on","stratus-social-media","stratus-sort","stratus-swiper-carousel","stratus-tag","stratus-theme-selector","stratus-twitter-feed","stratus-user-authentication","stratus-user-selector","stratus-visual-selector","sa-boot","sa-editor","sa-map","sa-media-selector","sa-selector","sa-stripe-payment-method-list","sa-stripe-payment-method-selector","sa-tree"],htmlAllowedStyleProps:[".*"],htmlAllowedTags:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","br","button","canvas","caption","cite","code","col","colgroup","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meter","nav","noscript","object","ol","optgroup","option","output","p","param","pre","progress","queue","rp","rt","ruby","s","samp","script","style","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","animate","animateMotion","animateTransform","circle","clipPath","defs","desc","discard","ellipse","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","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tspan","unknown","use","view","ng-app","ng-bind","ng-bind-html","ng-bind-template","ng-blur","ng-change","ng-checked","ng-class","ng-class-even","ng-class-odd","ng-click","ng-cloak","ng-controller","ng-copy","ng-csp","ng-cut","ng-dblclick","ng-disabled","ng-focus","ng-form","ng-hide","ng-href","ng-if","ng-include","ng-init","ng-jq","ng-keydown","ng-keypress","ng-keyup","ng-list","ng-maxlength","ng-minlength","ng-model","ng-model-options","ng-mousedown","ng-mouseenter","ng-mouseleave","ng-mousemove","ng-mouseover","ng-mouseup","ng-non-bindable","ng-on","ng-open","ng-options","ng-paste","ng-pattern","ng-pluralize","ng-prop","ng-readonly","ng-ref","ng-repeat","ng-required","ng-selected","ng-show","ng-src","ng-srcset","ng-style","ng-submit","ng-switch","ng-transclude","ng-value","ng-animate-children","ng-animate-swap","ng-outlet","ng-message","ng-message-default","ng-message-exp","ng-messages","ng-messages-include","ng-view","ng-swipe-left","ng-swipe-right","md-autocomplete","md-autofocus","md-button","md-calendar","md-card","md-checkbox","md-chip","md-chip-remove","md-chips","md-colors","md-contact-chips","md-content","md-datepicker","md-dialog","md-divider","md-fab-actions","md-fab-speed-dial","md-fab-toolbar","md-force-height","md-grid-list","md-grid-tile","md-highlight-text","md-icon","md-ink-ripple","md-input","md-input-container","md-list","md-list-item","md-menu","md-menu-bar","md-nav-bar","md-nav-item","md-optgroup","md-option","md-progress-circular","md-progress-linear","md-radio-button","md-radio-group","md-select","md-select-on-focus","md-sidenav","md-slider","md-slider-container","md-subheader","md-swipe-down","md-swipe-left","md-swipe-right","md-swipe-up","md-switch","md-tab","md-tabs","md-toolbar","md-tooltip","md-truncate","md-virtual-repeat","md-virtual-repeat-container","md-whiteframe","md-svg-src","sa-boot","sa-editor","sa-map","sa-media-selector","sa-selector","sa-stripe-payment-method-list","sa-stripe-payment-method-selector","sa-tree","stratus-.+"],htmlRemoveTags:[],htmlSimpleAmpersand:!1,imageInsertButtons:["imageBack","|","imageUpload","imageByURL"],imageUpload:!0,imageUploadRemoteUrls:!0,imageUploadURL:"https://app.sitetheory.io/?session="+b.cookie("SITETHEORY"),imageManagerPageSize:20,imageManagerScrollOffset:10,imageManagerLoadMethod:"GET",imageManagerLoadURL:"/Api/Media?payload-only=true",linkEditButtons:["linkOpen","linkRemove"],linkInsertButtons:["linkBack"],multiLine:!0,paragraphStyles:{btn:"Button",header:"Header",title:"Title","alt-title":"Alt Title (over)",subtitle:"Subtitle",pullout:"Pullout Quote"},pasteDeniedAttrs:["id","class","style","dir","data-.+","aria-.+","ng-.+","stratus-.+","sa-.+"],pasteDeniedTags:["form","input","label","style"],pastePlain:!1,pluginsEnabled:["align","charCounter","codeBeautifier","codeView","colors","draggable","embedly","entities","file","fontAwesome","fontFamily","fontSize","fullscreen","help","image","imageTUI","inlineStyle","inlineClass","lineBreaker","link","linkManager","citationManager","lists","mediaManager","paragraphFormat","paragraphStyle","print","quickInsert","quote","save","specialCharacters","table","url","video","wordPaste"],quickInsertButtons:["media","link","video","embedly","table","ul","ol","hr"],scrollableContainer:l.Stratus.Environment.get("viewPort")||"body",spellcheck:!0,theme:b.cookie("dark")?"dark":null,toolbarSticky:!0,toolbarButtons:{moreText:{buttons:this.froalaStandardButtons.moreText,buttonsVisible:3},moreParagraph:{buttons:this.froalaStandardButtons.moreParagraph,buttonsVisible:8},moreRich:{buttons:this.froalaStandardButtons.moreRich,buttonsVisible:1},moreMisc:{buttons:this.froalaStandardButtons.moreMisc,align:"right",buttonsVisible:1}},toolbarButtonsSM:{moreText:{buttons:this.froalaStandardButtons.moreText,buttonsVisible:3},moreParagraph:{buttons:this.froalaStandardButtons.moreParagraph,buttonsVisible:0},moreRich:{buttons:this.froalaStandardButtons.moreRich,buttonsVisible:3},moreMisc:{buttons:this.froalaStandardButtons.moreMisc,align:"right",buttonsVisible:0}},toolbarButtonsXS:{moreText:{buttons:this.froalaStandardButtons.moreText,buttonsVisible:0},moreParagraph:{buttons:this.froalaStandardButtons.moreParagraph,buttonsVisible:0},moreRich:{buttons:this.froalaStandardButtons.moreRich,buttonsVisible:0},moreMisc:{buttons:this.froalaStandardButtons.moreMisc,align:"right",buttonsVisible:0}},useClasses:!0,videoInsertButtons:["videoBack","|","videoByURL","videoEmbed","videoUpload"],videoUpload:!0,videoUploadURL:"https://app.sitetheory.io/?session="+b.cookie("SITETHEORY")},this.uid=d.default.uniqueId(`sa_${d.default.snakeCase(x)}_component_`),l.Stratus.Instances[this.uid]=this,l.Stratus.Internals.LoadCss([`${C}${x}/${x}.component${S}.css`,`${D}css/froala_editor.pkgd${S}.css`,`${D}css/themes/dark${S}.css`,`${D}css/third_party/embedly${S}.css`,`${D}css/third_party/font_awesome${S}.css`,`${D}css/third_party/image_tui${S}.css`]).then(()=>{this.styled=!0,this.refresh()}).catch(e=>{console.error(e),console.warn("Issue detected in CSS Loader for Component:",this.uid),this.styled=!0,this.refresh()}),this.hydrate(i,e,["title","uid","dev","debug","editor","target","targetSuffix","id","manifest","decouple","direct","api","urlRoot","property","classes","_","has","log","Stratus","registry","fetched","data","collection","model","dataSub","onChange","subscriber","svgIcons","initialized","styled","blurred","focused","codeViewIsOpen","form","dataChangeLog","incomingData","outgoingData","debounceSave","debounceTime","forceSave","froalaEditorDirective","froalaStandardButtons","froalaConfig","sanitizer","ref","elementRef","fb","dialog","ngOnInit","modelSave","listDuplicates","normalizeIn","normalizeOut","changeImgSize","handleError","fetchData","dataDefer","dataRef","onDataChange","created","changedEditor","onChangeEvent","onFocus","onBlur","bypassHTML","trigger","openCitationDialog","openLinkDialog","openMediaDialog","openCodeViewDialog","hydrate","disableRefresh","stagger","reloading","refresh","ngOnDestroy"]),this.fetchData().then(e=>{if(!(e&&e instanceof v.EventManager))return void console.warn("Unable to bind data from Registry!");const t=()=>{e.completed&&(this.dataDefer(this.subscriber),this.codeViewIsOpen)};e.on("change",t),t()}),this.dataSub=new n.Observable(e=>(this.dev&&console.warn(`[observable] creating subscriber on ${this.uid}`,e),this.dataDefer(e))),this.dataSub.pipe(o.debounce(()=>n.timer(250)),o.catchError(this.handleError)).subscribe(e=>{if(this.focused)return void(this.dev&&console.warn(`[subscriber] waiting on updates due to focus on ${this.uid}`));const t=this.form.get("dataString");t.value!==e?(t.patchValue(e),this.refresh()):this.initialized&&this.refresh()})}ngOnInit(){this.initialized=!0,d.default.isUndefined(this.classes)||(this.froalaConfig.inlineClasses=this.classes);const e=this.form.get("dataString");this.debounceSave?(e.valueChanges.pipe(o.debounce(()=>n.timer(this.debounceTime)),o.catchError(this.handleError)).subscribe(e=>this.modelSave(e)),e.valueChanges.pipe(o.debounce(()=>n.timer(250)),o.catchError(this.handleError)).subscribe(e=>{this.model.changedExternal||(this.model.changedExternal=!0,this.model.trigger("change"))}),e.valueChanges.forEach(e=>this.outgoingData=e)):e.valueChanges.forEach(e=>this.modelSave(e)),this.dev&&this.listDuplicates(this.froalaConfig)}modelSave(e){if(!this.model.completed)return;let t=null;!this.froalaConfig.useClasses&&this.froalaEditorDirective&&this.froalaEditorDirective.getEditor()&&this.froalaEditorDirective.getEditor().el&&this.froalaEditorDirective.getEditor().el.innerHTML&&(t=this.froalaEditorDirective.getEditor().el.innerHTML),this.model.set(this.property,this.normalizeOut(t||e)),this.debounceSave&&(this.model.changedExternal=!1),this.forceSave&&!d.default.isEmpty(this.model.getIdentifier())&&this.model.save()}listDuplicates(e){return d.default.forEach(e,(e,t)=>{if(!d.default.isArray(e))return;const i={};e.forEach(e=>i[e]=(i[e]||0)+1);const a=d.default.filter(d.default.map(i,(e,t)=>e>1?t:null));a.length&&console.warn("Froala Config:",t,"has duplicates:",a)}),e}normalizeIn(e){return e&&d.default.isString(e)?this.changeImgSize(e,"hq"):""}normalizeOut(e){return null===e?"":d.default.isString(e)?this.changeImgSize(e,"xs"):e}changeImgSize(e,t){if(!e||!d.default.isString(e))return e;if(!t||!d.default.isString(t))return e;const i=/<img([\w\W]+?)>/gi;let a;for(;a=i.exec(e);){const i=a[0];if(i.includes("data:image"))continue;const s=/^<img\s(.+?)(-[A-Z]{2})?\.(?=[^.]*$)(.+)>/gi.exec(i);if(null!==s)if(i.includes("data-stratus-src"))e=e.replace(i,`<img ${s[1]}-${t}.${s[3]}>`);else{if(!i.includes("cdn.sitetheory.io"))continue;if(d.default.isEmpty(s[2]))continue;e=e.replace(i,`<img data-stratus-src ${s[1]}-${t}.${s[3]}>`)}else console.warn("Unable to find file name for image src:",i)}return e}handleError(e){return console.error(e),e}fetchData(){return this.fetched?this.fetched:this.fetched=this.registry.fetch(l.Stratus.Select(this.elementRef.nativeElement),this)}dataDefer(e){if(this.subscriber=this.subscriber||e,!this.subscriber)return this.dev&&console.warn(`[defer] debouncing due to empty subscriber on ${this.uid}`),void setTimeout(()=>{this.dev&&console.warn(`[defer] debounced subscriber returned on ${this.uid}`),this.dataDefer(e)},250);const t=d.default.clone(this.incomingData),i=this.dataRef();return t!==i?i||this.data&&this.data.completed?void((this.froalaConfig.useClasses||t!==i)&&(this.dev&&console.warn(`[subscriber] new value submitted on ${this.uid}:`,i),this.subscriber.next(i))):(this.dev&&console.warn(`[defer] debouncing subscriber due to unavailable data on ${this.uid}`,this.data),void setTimeout(()=>{this.dev&&console.warn(`[defer] debounced subscriber returned on ${this.uid}`),this.dataDefer(e)},250)):void 0}dataRef(){return this.model?this.incomingData=this.normalizeIn(this.model.get(this.property)):""}onDataChange(){this.dataDefer(this.subscriber),this.refresh()}created(){}changedEditor(e){console.log("editor-change:",e)}onChangeEvent(e){console.log("change:",e)}onFocus(e){this.dev&&this.debug&&console.warn(`[onFocus] triggered on ${this.uid}`),this.focused=!0,this.blurred=!1}onBlur(e){this.dev&&this.debug&&console.warn(`[onBlur] triggered on ${this.uid}`),this.focused=!1,this.blurred=!0,this.debounceSave&&this.modelSave(this.outgoingData)}bypassHTML(e){return this.sanitizer.bypassSecurityTrustHtml(e)}trigger(e,t,i){this.dev&&this.debug&&console.log("editor.trigger:",e,i),"media-library"===e?this.openMediaDialog(i):"citation-input"===e?this.openCitationDialog(i):"link-library"===e?this.openLinkDialog(i,t):"code-view"===e&&this.openCodeViewDialog()}openCitationDialog(e){const t=this.dialog.open(u.CitationDialogComponent,{width:"1000px",data:{editor:this,eventManager:e,form:this.form,model:this.model,property:this.property}}),i=this;t.afterClosed().subscribe(e=>{e&&!d.default.isEmpty(e)&&(i.refresh(),this.dev&&e&&console.log("citation dialog result:",e))})}openLinkDialog(e,t){const i=this.dialog.open(g.LinkDialogComponent,{width:"500px",data:{editor:this,eventManager:e,element:t,form:this.form,model:this.model,property:this.property}});this.refresh();const a=this;i.afterClosed().subscribe(e=>{e&&!d.default.isEmpty(e)&&(a.refresh(),this.dev&&e&&console.log("link dialog result:",e))})}openMediaDialog(e){const t=this.dialog.open(m.MediaDialogComponent,{width:"1000px",data:{editor:this,eventManager:e,form:this.form,model:this.model,property:this.property}});this.refresh();const i=this;t.afterClosed().subscribe(e=>{e&&!d.default.isEmpty(e)&&(i.refresh(),this.dev&&e&&console.log("media dialog result:",e))})}openCodeViewDialog(){this.codeViewIsOpen=!0;const e=this.dialog.open(h.CodeViewDialogComponent,{width:"1000px",data:{form:this.form,model:this.model,property:this.property}});this.refresh(),e.afterClosed().subscribe(e=>{this.codeViewIsOpen=!1,e&&!d.default.isEmpty(e)&&(this.refresh(),this.dev&&e&&console.log("code view dialog result:",e))})}},T([i.Input(),B("design:type",String)],E.prototype,"target",void 0),T([i.Input(),B("design:type",String)],E.prototype,"targetSuffix",void 0),T([i.Input(),B("design:type",Number)],E.prototype,"id",void 0),T([i.Input(),B("design:type",Boolean)],E.prototype,"manifest",void 0),T([i.Input(),B("design:type",Boolean)],E.prototype,"decouple",void 0),T([i.Input(),B("design:type",Boolean)],E.prototype,"direct",void 0),T([i.Input(),B("design:type",Object)],E.prototype,"api",void 0),T([i.Input(),B("design:type",String)],E.prototype,"urlRoot",void 0),T([i.Input(),B("design:type",String)],E.prototype,"property",void 0),T([i.Input(),B("design:type",Object)],E.prototype,"classes",void 0),E=T([i.Component({selector:`sa-${x}`,templateUrl:`${C}/${x}/${x}.component${S}.html`}),B("design:paramtypes",[r.DomSanitizer,i.ChangeDetectorRef,i.ElementRef,a.FormBuilder,s.MatDialog])],E),e("EditorComponent",E)}}});
|
|
1
|
+
System.register(["@angular/core","@angular/forms","@angular/material/dialog","rxjs","rxjs/operators","@angular/platform-browser","@stratusjs/runtime/stratus","lodash","../core/root.component","./citation-dialog.component","./link-dialog.component","./media-dialog.component","./code-view-dialog.component","./code-mirror-bridge","@stratusjs/angularjs/services/registry","@stratusjs/core/environment","@stratusjs/core/events/eventManager","html2pdf","font-awesome","froala-plugins","froala-embedly","froala-font-awesome","froala-image-tui","../froala/plugins/citationManager","../froala/plugins/linkManager","../froala/plugins/mediaManager","codemirror","@codemirror/lang-html","@codemirror/theme-one-dark"],function(e,t){"use strict";var i,a,s,n,o,r,l,d,c,u,g,m,h,p,f,b,v,y,k,w,x,S,C,D,M,T,E=this&&this.__decorate||function(e,t,i,a){var s,n=arguments.length,o=n<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(e,t,i,a);else for(var r=e.length-1;r>=0;r--)(s=e[r])&&(o=(n<3?s(o):n>3?s(t,i,o):s(t,i))||o);return n>3&&o&&Object.defineProperty(t,i,o),o},B=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)};t&&t.id;return{setters:[function(e){i=e},function(e){a=e},function(e){s=e},function(e){n=e},function(e){o=e},function(e){r=e},function(e){l=e},function(e){d=e},function(e){c=e},function(e){u=e},function(e){g=e},function(e){m=e},function(e){h=e},function(e){p=e},function(e){f=e},function(e){b=e},function(e){v=e},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){},function(e){y=e},function(e){k=e},function(e){w=e}],execute:function(){"@stratusjs/angular","froala-editor",x="editor",S=b.cookie("env")?"":".min",C=`${l.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^\/]*$/,"").replace(/\/dist\/$/,"/src/")}`,D=`${l.Stratus.BaseUrl}${boot.configuration.paths["froala-editor"].replace(/js\/[^\/]*$/,"")}`,M=(e,t)=>d.default.has(e,t)&&!d.default.isEmpty(d.default.get(e,t)),T=class extends c.RootComponent{constructor(e,t,i,s,r){super(),this.sanitizer=e,this.ref=t,this.elementRef=i,this.fb=s,this.dialog=r,this.title=`${x}_component`,this.dev=!!b.cookie("env"),this.debug=!!b.cookie(`debug_${x}`),this.editor="froala",this._=d.default,this.has=M,this.log=console.log,this.Stratus=l.Stratus,this.registry=new f.Registry,this.onChange=new n.Subject,this.svgIcons={},this.initialized=!1,this.styled=!1,this.blurred=!1,this.focused=!1,this.form=this.fb.group({dataString:new a.FormControl}),this.dataChangeLog=[],this.incomingData="",this.outgoingData="",this.debounceSave=!0,this.debounceTime=5e3,this.forceSave=!1,this.froalaStandardButtons={moreText:["bold","italic","underline","strikeThrough","subscript","superscript","fontFamily","fontSize","textColor","backgroundColor","inlineClass","inlineStyle","clearFormatting"],moreParagraph:["linkManager","formatOL","formatUL","indent","outdent","quote","paragraphFormat","paragraphStyle","alignLeft","alignCenter","alignRight","alignJustify"],moreRich:["mediaManager","insertTable","insertImage","insertVideo","insertFile","citationInsert","insertHR","specialCharacters"],moreMisc:["html","undo","redo","fullscreen","print","selectAll","help"]},this.froalaConfig={attribution:!1,key:l.Stratus.Environment.get("froalaKey"),zIndex:9999,events:{initialized:e=>{this.froalaEditorDirective=e},blur:e=>this.onBlur(e),focus:e=>this.onFocus(e)},codeBeautifierOptions:{end_with_newline:!0,indent_inner_html:!0,extra_liners:'["p", "h1", "h2", "h3", "h4", "h5", "h6", "blockquote", "pre", "ul", "ol", "table", "dl"]',brace_style:"expand",indent_char:" ",indent_size:4,wrap_line_length:0},codeMirror:{fromTextArea:(e,t)=>{const i=[y.basicSetup,y.EditorView.lineWrapping,k.html({})];return b.cookie("dark")&&i.push(w.oneDarkTheme),new p.CodeMirrorBridge({extensions:i}).fromTextArea(e,t)}},codeMirrorOptions:{indentWithTabs:!1,lineNumbers:!0,lineWrapping:!0,mode:"text/html",tabMode:"space",tabSize:4},fileInsertButtons:["fileBack"],fileUploadURL:"https://app.sitetheory.io/?session="+b.cookie("SITETHEORY"),fontFamily:{"Arial,Helvetica,sans-serif":"Arial","Georgia,serif":"Georgia","Impact,Charcoal,sans-serif":"Impact","Tahoma,Geneva,sans-serif":"Tahoma",'"Times New Roman",Times,serif':"Times New Roman","Verdana,Geneva,sans-serif":"Verdana"},heightMax:window.innerHeight||document.documentElement.clientHeight||500,htmlAllowedAttrs:["aria-.+","data-.+","ng-.+","stratus-.+","sa-.+","accept","accept-charset","accesskey","action","align","allow","allowfullscreen","allowtransparency","alt","async","autocomplete","autofocus","autoplay","autosave","background","bgcolor","border","charset","cellpadding","cellspacing","checked","cite","class","color","cols","colspan","content","contenteditable","contextmenu","controls","coords","data","datetime","default","defer","dir","dirname","disabled","download","draggable","dropzone","enctype","for","form","formaction","frameborder","headers","height","hidden","high","href","hreflang","http-equiv","icon","id","ismap","itemprop","keytype","kind","label","lang","language","list","loop","low","max","maxlength","media","method","min","mozallowfullscreen","multiple","muted","name","novalidate","open","optimum","pattern","ping","placeholder","playsinline","poster","preload","pubdate","radiogroup","readonly","rel","required","reversed","rows","rowspan","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","src","srcdoc","srclang","srcset","start","step","summary","spellcheck","style","tabindex","target","title","type","translate","usemap","value","valign","webkitallowfullscreen","width","wrap","xmlns","xmlns:xlink","accent-height","accumulate","additive","alignment-baseline","alphabetic","amplitude","arabic-form","ascent","attributeName","attributeType","azimuth","baseFrequency","baseline-shift","baseProfile","bbox","begin","bias","by","calcMode","cap-height","clip","clipPathUnits","clip-path","clip-rule","color-interpolation","color-interpolation-filters","color-profile","color-rendering","contentScriptType","contentStyleType","crossorigin","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominant-baseline","dur","dx","dy","edgeMode","elevation","enable-background","end","exponent","externalResourcesRequired","fill","fill-opacity","fill-rule","filter","filterRes","filterUnits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","format","from","fr","fx","fy","g1","g2","glyph-name","glyph-orientation-horizontal","glyph-orientation-vertical","glyphRef","gradientTransform","gradientUnits","hanging","horiz-adv-x","horiz-origin-x","ideographic","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letter-spacing","lighting-color","limitingConeAngle","local","marker-end","marker-mid","marker-start","markerHeight","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overline-position","overline-thickness","panose-1","paint-order","path","pathLength","patternContentUnits","patternTransform","patternUnits","pointer-events","points","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","referrerPolicy","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","scale","seed","shape-rendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stop-color","stop-opacity","strikethrough-position","strikethrough-thickness","string","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","surfaceScale","systemLanguage","tableValues","targetX","targetY","text-anchor","text-decoration","text-rendering","textLength","to","transform","transform-origin","u1","u2","underline-position","underline-thickness","unicode","unicode-bidi","unicode-range","units-per-em","v-alphabetic","v-hanging","v-ideographic","v-mathematical","values","vector-effect","version","vert-adv-y","vert-origin-x","vert-origin-y","viewBox","viewTarget","visibility","widths","word-spacing","writing-mode","x","x-height","x1","x2","xChannelSelector","xlink:actuate","xlink:arcrole","xlink:href","xlink:role","xlink:show","xlink:title","xlink:type","xml:base","xml:lang","xml:space","y","y1","y2","yChannelSelector","z","zoomAndPan"],htmlAllowedEmptyTags:["textarea","a","iframe","object","video","style","script","form","hr","div","animate","animateMotion","animateTransform","circle","clipPath","defs","desc","discard","ellipse","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","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tspan","unknown","use","view","ng-app","ng-bind","ng-bind-html","ng-bind-template","ng-blur","ng-change","ng-checked","ng-class","ng-class-even","ng-class-odd","ng-click","ng-cloak","ng-controller","ng-copy","ng-csp","ng-cut","ng-dblclick","ng-disabled","ng-focus","ng-form","ng-hide","ng-href","ng-if","ng-include","ng-init","ng-jq","ng-keydown","ng-keypress","ng-keyup","ng-list","ng-maxlength","ng-minlength","ng-model","ng-model-options","ng-mousedown","ng-mouseenter","ng-mouseleave","ng-mousemove","ng-mouseover","ng-mouseup","ng-non-bindable","ng-on","ng-open","ng-options","ng-paste","ng-pattern","ng-pluralize","ng-prop","ng-readonly","ng-ref","ng-repeat","ng-required","ng-selected","ng-show","ng-src","ng-srcset","ng-style","ng-submit","ng-switch","ng-transclude","ng-value","ng-animate-children","ng-animate-swap","ng-outlet","ng-message","ng-message-default","ng-message-exp","ng-messages","ng-messages-include","ng-view","ng-swipe-left","ng-swipe-right","md-autocomplete","md-autofocus","md-button","md-calendar","md-card","md-checkbox","md-chip","md-chip-remove","md-chips","md-colors","md-contact-chips","md-content","md-datepicker","md-dialog","md-divider","md-fab-actions","md-fab-speed-dial","md-fab-toolbar","md-force-height","md-grid-list","md-grid-tile","md-highlight-text","md-icon","md-ink-ripple","md-input","md-input-container","md-list","md-list-item","md-menu","md-menu-bar","md-nav-bar","md-nav-item","md-optgroup","md-option","md-progress-circular","md-progress-linear","md-radio-button","md-radio-group","md-select","md-select-on-focus","md-sidenav","md-slider","md-slider-container","md-subheader","md-swipe-down","md-swipe-left","md-swipe-right","md-swipe-up","md-switch","md-tab","md-tabs","md-toolbar","md-tooltip","md-truncate","md-virtual-repeat","md-virtual-repeat-container","md-whiteframe","md-svg-src","stratus-base","stratus-calculator-mortgage","stratus-calendar","stratus-citation","stratus-citation-notitle","stratus-contact-form","stratus-content-selector","stratus-date-time","stratus-delete","stratus-error-message","stratus-facebook","stratus-filter","stratus-help","stratus-idx-disclaimer","stratus-idx-map","stratus-idx-member-details","stratus-idx-member-list","stratus-idx-member-search","stratus-idx-office-list","stratus-idx-office-search","stratus-idx-property-details","stratus-idx-property-details-sub-section","stratus-idx-property-list","stratus-idx-property-search","stratus-image-carousel","stratus-json-editor","stratus-media-details","stratus-media-drag-drop","stratus-media-library","stratus-media-selector","stratus-media-short-details","stratus-media-uploader","stratus-open-houses","stratus-option-value","stratus-pagination","stratus-password-reset","stratus-permissions","stratus-proposal-alert","stratus-publish","stratus-role","stratus-search","stratus-single-sign-on","stratus-social-media","stratus-sort","stratus-swiper-carousel","stratus-tag","stratus-theme-selector","stratus-twitter-feed","stratus-user-authentication","stratus-user-selector","stratus-visual-selector","sa-boot","sa-editor","sa-map","sa-media-selector","sa-selector","sa-stripe-payment-method-list","sa-stripe-payment-method-selector","sa-tree"],htmlAllowedStyleProps:[".*"],htmlAllowedTags:["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","br","button","canvas","caption","cite","code","col","colgroup","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meter","nav","noscript","object","ol","optgroup","option","output","p","param","pre","progress","queue","rp","rt","ruby","s","samp","script","style","section","select","small","source","span","strike","strong","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","animate","animateMotion","animateTransform","circle","clipPath","defs","desc","discard","ellipse","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","filter","foreignObject","g","image","line","linearGradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","stop","svg","switch","symbol","text","textPath","tspan","unknown","use","view","ng-app","ng-bind","ng-bind-html","ng-bind-template","ng-blur","ng-change","ng-checked","ng-class","ng-class-even","ng-class-odd","ng-click","ng-cloak","ng-controller","ng-copy","ng-csp","ng-cut","ng-dblclick","ng-disabled","ng-focus","ng-form","ng-hide","ng-href","ng-if","ng-include","ng-init","ng-jq","ng-keydown","ng-keypress","ng-keyup","ng-list","ng-maxlength","ng-minlength","ng-model","ng-model-options","ng-mousedown","ng-mouseenter","ng-mouseleave","ng-mousemove","ng-mouseover","ng-mouseup","ng-non-bindable","ng-on","ng-open","ng-options","ng-paste","ng-pattern","ng-pluralize","ng-prop","ng-readonly","ng-ref","ng-repeat","ng-required","ng-selected","ng-show","ng-src","ng-srcset","ng-style","ng-submit","ng-switch","ng-transclude","ng-value","ng-animate-children","ng-animate-swap","ng-outlet","ng-message","ng-message-default","ng-message-exp","ng-messages","ng-messages-include","ng-view","ng-swipe-left","ng-swipe-right","md-autocomplete","md-autofocus","md-button","md-calendar","md-card","md-checkbox","md-chip","md-chip-remove","md-chips","md-colors","md-contact-chips","md-content","md-datepicker","md-dialog","md-divider","md-fab-actions","md-fab-speed-dial","md-fab-toolbar","md-force-height","md-grid-list","md-grid-tile","md-highlight-text","md-icon","md-ink-ripple","md-input","md-input-container","md-list","md-list-item","md-menu","md-menu-bar","md-nav-bar","md-nav-item","md-optgroup","md-option","md-progress-circular","md-progress-linear","md-radio-button","md-radio-group","md-select","md-select-on-focus","md-sidenav","md-slider","md-slider-container","md-subheader","md-swipe-down","md-swipe-left","md-swipe-right","md-swipe-up","md-switch","md-tab","md-tabs","md-toolbar","md-tooltip","md-truncate","md-virtual-repeat","md-virtual-repeat-container","md-whiteframe","md-svg-src","sa-boot","sa-editor","sa-map","sa-media-selector","sa-selector","sa-stripe-payment-method-list","sa-stripe-payment-method-selector","sa-tree","stratus-.+"],htmlRemoveTags:[],htmlSimpleAmpersand:!1,imageInsertButtons:["imageBack","|","imageUpload","imageByURL"],imageUpload:!0,imageUploadRemoteUrls:!0,imageUploadURL:"https://app.sitetheory.io/?session="+b.cookie("SITETHEORY"),imageManagerPageSize:20,imageManagerScrollOffset:10,imageManagerLoadMethod:"GET",imageManagerLoadURL:"/Api/Media?payload-only=true",linkEditButtons:["linkOpen","linkRemove"],linkInsertButtons:["linkBack"],multiLine:!0,paragraphStyles:{btn:"Button",header:"Header",title:"Title","alt-title":"Alt Title (over)",subtitle:"Subtitle",pullout:"Pullout Quote"},pasteDeniedAttrs:["id","class","style","dir","data-.+","aria-.+","ng-.+","stratus-.+","sa-.+"],pasteDeniedTags:["form","input","label","style"],pastePlain:!1,pluginsEnabled:["align","charCounter","codeBeautifier","codeView","colors","draggable","embedly","entities","file","fontAwesome","fontFamily","fontSize","fullscreen","help","image","imageTUI","inlineStyle","inlineClass","lineBreaker","link","linkManager","citationManager","lists","mediaManager","paragraphFormat","paragraphStyle","print","quickInsert","quote","save","specialCharacters","table","url","video","wordPaste"],quickInsertButtons:["media","link","video","embedly","table","ul","ol","hr"],scrollableContainer:l.Stratus.Environment.get("viewPort")||"body",spellcheck:!0,theme:b.cookie("dark")?"dark":null,toolbarSticky:!0,toolbarButtons:{moreText:{buttons:this.froalaStandardButtons.moreText,buttonsVisible:3},moreParagraph:{buttons:this.froalaStandardButtons.moreParagraph,buttonsVisible:8},moreRich:{buttons:this.froalaStandardButtons.moreRich,buttonsVisible:1},moreMisc:{buttons:this.froalaStandardButtons.moreMisc,align:"right",buttonsVisible:1}},toolbarButtonsSM:{moreText:{buttons:this.froalaStandardButtons.moreText,buttonsVisible:3},moreParagraph:{buttons:this.froalaStandardButtons.moreParagraph,buttonsVisible:0},moreRich:{buttons:this.froalaStandardButtons.moreRich,buttonsVisible:3},moreMisc:{buttons:this.froalaStandardButtons.moreMisc,align:"right",buttonsVisible:0}},toolbarButtonsXS:{moreText:{buttons:this.froalaStandardButtons.moreText,buttonsVisible:0},moreParagraph:{buttons:this.froalaStandardButtons.moreParagraph,buttonsVisible:0},moreRich:{buttons:this.froalaStandardButtons.moreRich,buttonsVisible:0},moreMisc:{buttons:this.froalaStandardButtons.moreMisc,align:"right",buttonsVisible:0}},useClasses:!0,videoInsertButtons:["videoBack","|","videoByURL","videoEmbed","videoUpload"],videoUpload:!0,videoUploadURL:"https://app.sitetheory.io/?session="+b.cookie("SITETHEORY")},this.uid=d.default.uniqueId(`sa_${d.default.snakeCase(x)}_component_`),l.Stratus.Instances[this.uid]=this,l.Stratus.Internals.LoadCss([`${C}${x}/${x}.component${S}.css`,`${D}css/froala_editor.pkgd${S}.css`,`${D}css/themes/dark${S}.css`,`${D}css/third_party/embedly${S}.css`,`${D}css/third_party/font_awesome${S}.css`,`${D}css/third_party/image_tui${S}.css`]).then(()=>{this.styled=!0,this.refresh()}).catch(e=>{console.error(e),console.warn("Issue detected in CSS Loader for Component:",this.uid),this.styled=!0,this.refresh()}),this.hydrate(i,e,["title","uid","dev","debug","editor","target","targetSuffix","id","manifest","decouple","direct","api","urlRoot","property","classes","_","has","log","Stratus","registry","fetched","data","collection","model","dataSub","onChange","subscriber","svgIcons","initialized","styled","blurred","focused","codeViewIsOpen","form","dataChangeLog","incomingData","outgoingData","debounceSave","debounceTime","forceSave","froalaEditorDirective","froalaStandardButtons","froalaConfig","sanitizer","ref","elementRef","fb","dialog","ngOnInit","modelSave","listDuplicates","normalizeIn","normalizeOut","changeImgSize","handleError","fetchData","dataDefer","dataRef","onDataChange","created","changedEditor","onChangeEvent","onFocus","onBlur","bypassHTML","trigger","openCitationDialog","openLinkDialog","openMediaDialog","openCodeViewDialog","hydrate","disableRefresh","stagger","reloading","refresh","ngOnDestroy"]),this.fetchData().then(e=>{if(!(e&&e instanceof v.EventManager))return void console.warn("Unable to bind data from Registry!");const t=()=>{e.completed&&(this.dataDefer(this.subscriber),this.codeViewIsOpen)};e.on("change",t),t()}),this.dataSub=new n.Observable(e=>(this.dev&&console.warn(`[observable] creating subscriber on ${this.uid}`,e),this.dataDefer(e))),this.dataSub.pipe(o.debounce(()=>n.timer(250)),o.catchError(this.handleError)).subscribe(e=>{if(this.focused)return void(this.dev&&console.warn(`[subscriber] waiting on updates due to focus on ${this.uid}`));const t=this.form.get("dataString");t.value!==e?(t.patchValue(e),this.refresh()):this.initialized&&this.refresh()})}ngOnInit(){this.initialized=!0,d.default.isUndefined(this.classes)||(this.froalaConfig.inlineClasses=this.classes);const e=this.form.get("dataString");this.debounceSave?(e.valueChanges.pipe(o.debounce(()=>n.timer(this.debounceTime)),o.catchError(this.handleError)).subscribe(e=>this.modelSave(e)),e.valueChanges.pipe(o.debounce(()=>n.timer(250)),o.catchError(this.handleError)).subscribe(e=>{this.model.changedExternal||(this.model.changedExternal=!0,this.model.trigger("change"))}),e.valueChanges.forEach(e=>this.outgoingData=e)):e.valueChanges.forEach(e=>this.modelSave(e)),this.dev&&this.listDuplicates(this.froalaConfig)}modelSave(e){if(!this.model)return void console.warn("There is no model for sa-editor to save to",this);if(!this.model.completed)return;let t=null;!this.froalaConfig.useClasses&&this.froalaEditorDirective&&this.froalaEditorDirective.getEditor()&&this.froalaEditorDirective.getEditor().el&&this.froalaEditorDirective.getEditor().el.innerHTML&&(t=this.froalaEditorDirective.getEditor().el.innerHTML),this.model.set(this.property,this.normalizeOut(t||e)),this.debounceSave&&(this.model.changedExternal=!1),this.forceSave&&!d.default.isEmpty(this.model.getIdentifier())&&this.model.save()}listDuplicates(e){return d.default.forEach(e,(e,t)=>{if(!d.default.isArray(e))return;const i={};e.forEach(e=>i[e]=(i[e]||0)+1);const a=d.default.filter(d.default.map(i,(e,t)=>e>1?t:null));a.length&&console.warn("Froala Config:",t,"has duplicates:",a)}),e}normalizeIn(e){return e&&d.default.isString(e)?this.changeImgSize(e,"hq"):""}normalizeOut(e){return null===e?"":d.default.isString(e)?this.changeImgSize(e,"xs"):e}changeImgSize(e,t){if(!e||!d.default.isString(e))return e;if(!t||!d.default.isString(t))return e;const i=/<img([\w\W]+?)>/gi;let a;for(;a=i.exec(e);){const i=a[0];if(i.includes("data:image"))continue;const s=/^<img\s(.+?)(-[A-Z]{2})?\.(?=[^.]*$)(.+)>/gi.exec(i);if(null!==s)if(i.includes("data-stratus-src"))e=e.replace(i,`<img ${s[1]}-${t}.${s[3]}>`);else{if(!i.includes("cdn.sitetheory.io"))continue;if(d.default.isEmpty(s[2]))continue;e=e.replace(i,`<img data-stratus-src ${s[1]}-${t}.${s[3]}>`)}else console.warn("Unable to find file name for image src:",i)}return e}handleError(e){return console.error(e),e}async fetchData(){return this.fetched?this.fetched:this.fetched=await this.registry.fetch(l.Stratus.Select(this.elementRef.nativeElement),this)}dataDefer(e){if(this.subscriber=this.subscriber||e,!this.subscriber)return this.dev&&console.warn(`[defer] debouncing due to empty subscriber on ${this.uid}`),void setTimeout(()=>{this.dev&&console.warn(`[defer] debounced subscriber returned on ${this.uid}`),this.dataDefer(e)},250);const t=d.default.clone(this.incomingData),i=this.dataRef();return t!==i?i||this.data&&this.data.completed?void((this.froalaConfig.useClasses||t!==i)&&(this.dev&&console.warn(`[subscriber] new value submitted on ${this.uid}:`,i),this.subscriber.next(i))):(this.dev&&console.warn(`[defer] debouncing subscriber due to unavailable data on ${this.uid}`,this.data),void setTimeout(()=>{this.dev&&console.warn(`[defer] debounced subscriber returned on ${this.uid}`),this.dataDefer(e)},250)):void 0}dataRef(){return this.model?this.incomingData=this.normalizeIn(this.model.get(this.property)):""}onDataChange(){this.dataDefer(this.subscriber),this.refresh()}created(){}changedEditor(e){console.log("editor-change:",e)}onChangeEvent(e){console.log("change:",e)}onFocus(e){this.dev&&this.debug&&console.warn(`[onFocus] triggered on ${this.uid}`),this.focused=!0,this.blurred=!1}onBlur(e){this.dev&&this.debug&&console.warn(`[onBlur] triggered on ${this.uid}`),this.focused=!1,this.blurred=!0,this.debounceSave&&this.modelSave(this.outgoingData)}bypassHTML(e){return this.sanitizer.bypassSecurityTrustHtml(e)}trigger(e,t,i){this.dev&&this.debug&&console.log("editor.trigger:",e,i),"media-library"===e?this.openMediaDialog(i):"citation-input"===e?this.openCitationDialog(i):"link-library"===e?this.openLinkDialog(i,t):"code-view"===e&&this.openCodeViewDialog()}openCitationDialog(e){const t=this.dialog.open(u.CitationDialogComponent,{width:"1000px",data:{editor:this,eventManager:e,form:this.form,model:this.model,property:this.property}}),i=this;t.afterClosed().subscribe(e=>{e&&!d.default.isEmpty(e)&&(i.refresh(),this.dev&&e&&console.log("citation dialog result:",e))})}openLinkDialog(e,t){const i=this.dialog.open(g.LinkDialogComponent,{width:"500px",data:{editor:this,eventManager:e,element:t,form:this.form,model:this.model,property:this.property}});this.refresh();const a=this;i.afterClosed().subscribe(e=>{e&&!d.default.isEmpty(e)&&(a.refresh(),this.dev&&e&&console.log("link dialog result:",e))})}openMediaDialog(e){const t=this.dialog.open(m.MediaDialogComponent,{width:"1000px",data:{editor:this,eventManager:e,form:this.form,model:this.model,property:this.property}});this.refresh();const i=this;t.afterClosed().subscribe(e=>{e&&!d.default.isEmpty(e)&&(i.refresh(),this.dev&&e&&console.log("media dialog result:",e))})}openCodeViewDialog(){this.codeViewIsOpen=!0;const e=this.dialog.open(h.CodeViewDialogComponent,{width:"1000px",data:{form:this.form,model:this.model,property:this.property}});this.refresh(),e.afterClosed().subscribe(e=>{this.codeViewIsOpen=!1,e&&!d.default.isEmpty(e)&&(this.refresh(),this.dev&&e&&console.log("code view dialog result:",e))})}},E([i.Input(),B("design:type",String)],T.prototype,"target",void 0),E([i.Input(),B("design:type",String)],T.prototype,"targetSuffix",void 0),E([i.Input(),B("design:type",Number)],T.prototype,"id",void 0),E([i.Input(),B("design:type",Boolean)],T.prototype,"manifest",void 0),E([i.Input(),B("design:type",Boolean)],T.prototype,"decouple",void 0),E([i.Input(),B("design:type",Boolean)],T.prototype,"direct",void 0),E([i.Input(),B("design:type",Object)],T.prototype,"api",void 0),E([i.Input(),B("design:type",String)],T.prototype,"urlRoot",void 0),E([i.Input(),B("design:type",String)],T.prototype,"property",void 0),E([i.Input(),B("design:type",Object)],T.prototype,"classes",void 0),T=E([i.Component({selector:`sa-internal-${x}`,templateUrl:`${C}/${x}/${x}.component${S}.html`}),B("design:paramtypes",[r.DomSanitizer,i.ChangeDetectorRef,i.ElementRef,a.FormBuilder,s.MatDialog])],T),e("EditorComponent",T)}}});
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
import {
|
|
44
44
|
Stratus
|
|
45
45
|
} from '@stratusjs/runtime/stratus'
|
|
46
|
-
import _ from 'lodash'
|
|
46
|
+
import _,{clone} from 'lodash'
|
|
47
47
|
|
|
48
48
|
// Angular Editor Dependencies
|
|
49
49
|
/* *
|
|
@@ -213,7 +213,7 @@ const has = (object: object, path: string) => _.has(object, path) && !_.isEmpty(
|
|
|
213
213
|
*/
|
|
214
214
|
@Component({
|
|
215
215
|
// selector: 'sa-selector-component',
|
|
216
|
-
selector: `sa-${moduleName}`,
|
|
216
|
+
selector: `sa-internal-${moduleName}`,
|
|
217
217
|
templateUrl: `${localDir}/${moduleName}/${moduleName}.component${min}.html`,
|
|
218
218
|
// FIXME: This doesn't work, as it seems Angular attempts to use a System.js import instead of their own, so it will
|
|
219
219
|
// require the steal-css module
|
|
@@ -254,11 +254,11 @@ export class EditorComponent extends RootComponent implements OnInit, TriggerInt
|
|
|
254
254
|
|
|
255
255
|
// Stratus Data Connectivity
|
|
256
256
|
registry = new Registry()
|
|
257
|
-
fetched:
|
|
257
|
+
fetched: boolean|Collection|Model
|
|
258
258
|
data: any
|
|
259
259
|
collection?: EventBase
|
|
260
260
|
// @Output() model: any;
|
|
261
|
-
model?: Model
|
|
261
|
+
model?: Model // @Input()
|
|
262
262
|
|
|
263
263
|
// Observable Connection
|
|
264
264
|
dataSub: Observable<[]>
|
|
@@ -1136,6 +1136,7 @@ export class EditorComponent extends RootComponent implements OnInit, TriggerInt
|
|
|
1136
1136
|
.then(data => {
|
|
1137
1137
|
if (!data || !(data instanceof EventManager)) {
|
|
1138
1138
|
console.warn('Unable to bind data from Registry!')
|
|
1139
|
+
// console.warn(this.title, 'Unable to bind data from Registry!', clone(this), data, typeof data)
|
|
1139
1140
|
return
|
|
1140
1141
|
}
|
|
1141
1142
|
// Manually render upon model change
|
|
@@ -1244,6 +1245,10 @@ export class EditorComponent extends RootComponent implements OnInit, TriggerInt
|
|
|
1244
1245
|
}
|
|
1245
1246
|
|
|
1246
1247
|
modelSave(value: string) {
|
|
1248
|
+
if (!this.model) {
|
|
1249
|
+
console.warn('There is no model for sa-editor to save to', this)
|
|
1250
|
+
return
|
|
1251
|
+
}
|
|
1247
1252
|
// Avoid saving until the Model is truly available
|
|
1248
1253
|
if (!this.model.completed) {
|
|
1249
1254
|
return
|
|
@@ -1418,11 +1423,11 @@ export class EditorComponent extends RootComponent implements OnInit, TriggerInt
|
|
|
1418
1423
|
}
|
|
1419
1424
|
|
|
1420
1425
|
// Data Connections
|
|
1421
|
-
fetchData() {
|
|
1426
|
+
async fetchData() {
|
|
1422
1427
|
if (this.fetched) {
|
|
1423
1428
|
return this.fetched
|
|
1424
1429
|
}
|
|
1425
|
-
return this.fetched = this.registry.fetch(
|
|
1430
|
+
return this.fetched = await this.registry.fetch(
|
|
1426
1431
|
Stratus.Select(this.elementRef.nativeElement),
|
|
1427
1432
|
this
|
|
1428
1433
|
)
|
|
@@ -1552,6 +1557,7 @@ export class EditorComponent extends RootComponent implements OnInit, TriggerInt
|
|
|
1552
1557
|
this.modelSave(this.outgoingData)
|
|
1553
1558
|
}
|
|
1554
1559
|
|
|
1560
|
+
// tslint:disable-next-line:no-shadowed-variable
|
|
1555
1561
|
bypassHTML(html: string) {
|
|
1556
1562
|
return this.sanitizer.bypassSecurityTrustHtml(html)
|
|
1557
1563
|
}
|
|
@@ -389,7 +389,7 @@ System.register(["@angular/core", "@angular/forms", "@angular/material/dialog",
|
|
|
389
389
|
};
|
|
390
390
|
LinkDialogComponent = __decorate([
|
|
391
391
|
core_1.Component({
|
|
392
|
-
selector: `sa-${moduleName}`,
|
|
392
|
+
selector: `sa-internal-${moduleName}`,
|
|
393
393
|
templateUrl: `${localDir}/${parentModuleName}/${moduleName}.component${min}.html`,
|
|
394
394
|
}),
|
|
395
395
|
__param(1, core_1.Inject(dialog_1.MAT_DIALOG_DATA)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["link-dialog.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,EAAE,EAAE,QAAQ,CAAC,CAAA;gBAC5E,CAAC;aACJ,CAAA;YA9cY,mBAAmB;gBAL/B,gBAAS,CAAC;oBACP,QAAQ,EAAE,eAAe,UAAU,EAAE;oBACrC,WAAW,EAAE,GAAG,QAAQ,IAAI,gBAAgB,IAAI,UAAU,aAAa,GAAG,OAAO;iBAEpF,CAAC;gBA4DO,WAAA,aAAM,CAAC,wBAAe,CAAC,CAAA;iDADN,qBAAY,UAElB,mBAAW;oBACN,gCAAc;oBACb,uBAAW;oBACP,sBAAe;oBAClB,+BAAY;oBAChB,wBAAiB;eAjE3B,mBAAmB,CA8c/B;;QAmBD,CAAC","file":"link-dialog.component.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["@angular/core","@angular/forms","@angular/material/dialog","@angular/material/snack-bar","rxjs","rxjs/operators","lodash","@stratusjs/runtime/stratus","@stratusjs/core/environment","../backend.service","@stratusjs/angularjs/services/model","../core/responsive.component","@angular/material/icon","@angular/platform-browser"],function(t,e){"use strict";var n,i,s,o,r,a,l,h,c,u,d,g,p,f,m,y,b,k,v,C=this&&this.__decorate||function(t,e,n,i){var s,o=arguments.length,r=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o<3?s(r):o>3?s(e,n,r):s(e,n))||r);return o>3&&r&&Object.defineProperty(e,n,r),r},$=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},T=this&&this.__param||function(t,e){return function(n,i){e(n,i,t)}};e&&e.id;return{setters:[function(t){n=t},function(t){i=t},function(t){s=t},function(t){o=t},function(t){r=t},function(t){a=t},function(t){l=t},function(t){h=t},function(t){c=t},function(t){u=t},function(t){d=t},function(t){g=t},function(t){p=t},function(t){f=t}],execute:function(){"@stratusjs/angular",m="link-dialog",y="editor",b=c.cookie("env")?"":".min",k=`${h.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,v=class extends g.ResponsiveComponent{constructor(t,e,n,i,s,o,r,a){super(),this.dialogRef=t,this.data=e,this.fb=n,this.backend=i,this.snackBar=s,this.iconRegistry=o,this.sanitizer=r,this.ref=a,this.title=m+"_component",this._=l.default,this.Stratus=h.Stratus,this.apiBase="/Api/Content",this.contentEntities=[],this.isContentLoading=!0,this.isSingleContentLoading=!1,this.limit=20,this.eventInsert=!0,this.isListView=!1,this.selected=[],this.linkType="",this.linkText="",this.linkInitText="",this.linkURL="",this.linkTarget=!1,this.svgIcons={},this.isInitialized=!1,this.isDestroyed=!1,this.isStyled=!1}ngOnInit(){this.uid=l.default.uniqueId(`sa_${l.default.snakeCase(m)}_component_`),h.Stratus.Instances[this.uid]=this,h.Stratus.Internals.CssLoader(`${k}${y}/${m}.component${b}.css`).then(()=>{this.isStyled=!0,this.refresh()}).catch(t=>{console.warn("Issue detected in CSS Loader for Component:",this),console.error(t),this.isStyled=!0,this.refresh()}),l.default.forEach({selector_delete:`${h.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/delete.svg`,selector_edit:`${h.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/edit.svg`},(t,e)=>this.iconRegistry.addSvgIcon(e,this.sanitizer.bypassSecurityTrustResourceUrl(t)).getNamedSvgIcon(e)),this.model=this.data.model,this.property=this.data.property,this.editor=this.data.editor,this.eventManager=this.data.eventManager,this.element=this.data.element,l.default.isBoolean(this.data.eventInsert)&&(this.eventInsert=this.data.eventInsert),this.dialogContentForm=this.fb.group({contentSelectorInput:"",linkTypeRadio:"",linkTextInput:"",linkURLInput:"",linkTargetCheckbox:""}),this.dialogContentForm.get("contentSelectorInput").valueChanges.pipe(a.debounceTime(300),a.tap(()=>this.isContentLoading=!0),a.switchMap(t=>l.default.isUndefined(t)?this.getQuery():l.default.isString(t)?this.getQuery(t):(this.content=t,this.getQuery()))).subscribe(t=>this.processContent(t)),this.backend.get(this.getQueryUrl()).pipe(a.finalize(()=>this.isContentLoading=!1)).subscribe(t=>this.processContent(t)),this.dialogContentForm.get("linkTypeRadio").valueChanges.pipe(a.debounceTime(300)).subscribe(t=>this.linkType=t),this.linkType=this.element&&this.element.hasAttribute("data-content-id")?"content":"url",this.dialogContentForm.get("linkTypeRadio").patchValue(this.linkType),this.dialogContentForm.get("linkTextInput").valueChanges.pipe(a.debounceTime(300)).subscribe(t=>this.linkText=t),this.linkInitText=this.linkText=this.element?this.element.textContent:"",this.dialogContentForm.get("linkTextInput").patchValue(this.linkText),this.dialogContentForm.get("linkURLInput").valueChanges.pipe(a.debounceTime(300)).subscribe(t=>this.linkURL=t),this.linkURL=this.element&&this.element.hasAttribute("href")?this.element.getAttribute("href"):"",this.dialogContentForm.get("linkURLInput").patchValue(this.linkURL),this.dialogContentForm.get("linkTargetCheckbox").valueChanges.pipe(a.debounceTime(300)).subscribe(t=>this.linkTarget=t),this.linkTarget=!!this.element&&this.element.hasAttribute("target"),this.dialogContentForm.get("linkTargetCheckbox").patchValue(this.linkTarget),this.element&&this.element.hasAttribute("data-content-id")&&(this.isSingleContentLoading=!0,this.backend.get(this.getQueryUrl(null,this.element.getAttribute("data-content-id"))).pipe(a.finalize(()=>this.isSingleContentLoading=!1)).subscribe(t=>{if(!t.ok||200!==t.status||l.default.isEmpty(t.body))return null;const e=l.default.get(t.body,"payload")||t.body;return l.default.isEmpty(e)||Array.isArray(e)||!l.default.isObject(e)?null:(this.contentEntity=e,this.isSingleContentLoading=!1,this.dialogContentForm.get("contentSelectorInput").patchValue(this.contentEntity),this.refresh(),this.contentEntity)})),this.isInitialized=!0}ngOnDestroy(){this.isDestroyed=!0}refresh(){return this.isDestroyed?new Promise(t=>t()):super.refresh()}onCancelClick(){this.eventManager?(this.eventManager.trigger("restore",null,this.editor),this.dialogRef.close(),this.refresh()):console.warn(`${m}: event manager is not set.`)}onPage(t){this.pageEvent=t,this.getQuery(this.lastContentQuery).subscribe(t=>this.processContent(t))}getQueryUrl(t,e){return t=!l.default.isString(t)||l.default.isEmpty(t)?"":`"${t}"`,e=l.default.isEmpty(e)?"":`/${e}`,`${this.apiBase}${e}?limit=${this.limit}&options[isContent]=null&options[isCollection]=null&options[showRoutable]=true&options[showRouting]=true&q=${t}`}getQuery(t){return this.lastContentQuery=t,this.isContentLoading=!0,this.backend.get(this.getQueryUrl(t)).pipe(a.finalize(()=>this.isContentLoading=!1))}processContent(t){if(!t.ok||200!==t.status||l.default.isEmpty(t.body))return this.meta={},this.contentEntities=[],this.refresh(),this.contentEntities;this.meta=l.default.get(t.body,"meta")||{};const e=l.default.get(t.body,"payload")||t.body;return l.default.isEmpty(e)||!Array.isArray(e)?(this.contentEntities=[],this.isContentLoading=!1,this.refresh(),this.contentEntities):(this.contentEntities=e,this.isContentLoading=!1,this.refresh(),this.contentEntities)}onAcceptClick(){const t="content"===this.linkType?this.createLink(this.content):{url:this.linkURL,text:this.linkText,target:this.linkTarget};if(!t){const t=this.content&&this.content.id?`for Content ID: ${this.content.id}.`:"without Content Selected or URL Input.";return console.warn(`${m}: unable to build link ${t}`),void this.snackBar.open(`Unable to build link ${t}`,"dismiss",{duration:5e3,horizontalPosition:"right",verticalPosition:"bottom"})}if(this.content&&this.content.id&&this.selected.push(this.content.id),!this.eventInsert)return this.model instanceof d.Model&&l.default.isString(this.property)?(console.warn(`${m}: disabling eventInsert is not recommended.`),void this.model.set(this.property,this.model.get(this.property)+t)):void console.warn(`${m}: event manager not available.`);this.eventManager?(this.eventManager.trigger("insert",t,this.editor),this.onCancelClick()):console.warn(`${m}: event manager is not set.`)}isSelected(t){if(!l.default.isUndefined(t))return l.default.includes(this.selected,t.id)}createLink(t){return t?t.id?t.contentType&&t.contentType.name?t.routing&&t.routing.length&&t.routing[0]?t.routing[0].url?t.version?t.version.title&&t.version.title.length?{url:`/${t.routing[0].url}`,title:t.version.title,text:this.linkText,target:this.linkTarget,id:t.id}:(console.warn(`${m}: unable to find title for ${t.contentType.name} id: ${t.id}`),null):(console.warn(`${m}: unable to find content version for ${t.contentType.name} id: ${t.id}`),null):(console.warn(`${m}: unable to find url for ${t.contentType.name} id: ${t.id}`),null):(console.warn(`${m}: unable to find routing for ${t.contentType.name} id: ${t.id}`),null):(console.warn(`${m}: unable to find content type for content id: ${t.id}`),null):(console.warn(`${m}: unable to find content id for content:`,t),null):(console.warn(`${m}: unable to create link for empty content`),null)}getSvg(t,e){const n=this.addSvgIcon(t,e);return new r.Observable(e=>{this.iconRegistry.getNamedSvgIcon(n).subscribe({error(e){console.error(`getSvg(${t}): ${e}`)},complete(){e.next(n)}})})}addSvgIcon(t,e){if(t in this.svgIcons)return this.svgIcons[t];e||(e={});const n=this.svgIcons[t]=l.default.uniqueId("selector_svg");return this.iconRegistry.addSvgIcon(n,this.sanitizer.bypassSecurityTrustResourceUrl(t),e),n}displayContentText(t){if(!t)return;const e=l.default.get(t,"routing[0].url"),n=l.default.isUndefined(e)?" (No route!)":` (/${e})`,i=l.default.get(t,"id"),s=l.default.isUndefined(i)?null:`Content: ${i}`;return(l.default.get(t,"version.title")||s)+n}goToUrl(t){t&&t.contentType?window.open(t.contentType.editUrl+"?id="+t.id,"_blank"):console.error("unable to execute goToUrl() because a valid model content was not provided.")}},v=C([n.Component({selector:`sa-${m}`,templateUrl:`${k}/${y}/${m}.component${b}.html`}),T(1,n.Inject(s.MAT_DIALOG_DATA)),$("design:paramtypes",[s.MatDialogRef,Object,i.FormBuilder,u.BackendService,o.MatSnackBar,p.MatIconRegistry,f.DomSanitizer,n.ChangeDetectorRef])],v),t("LinkDialogComponent",v)}}});
|
|
1
|
+
System.register(["@angular/core","@angular/forms","@angular/material/dialog","@angular/material/snack-bar","rxjs","rxjs/operators","lodash","@stratusjs/runtime/stratus","@stratusjs/core/environment","../backend.service","@stratusjs/angularjs/services/model","../core/responsive.component","@angular/material/icon","@angular/platform-browser"],function(t,e){"use strict";var n,i,s,o,r,a,l,h,c,u,d,g,p,f,m,y,b,k,v,C=this&&this.__decorate||function(t,e,n,i){var s,o=arguments.length,r=o<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,e,n,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(r=(o<3?s(r):o>3?s(e,n,r):s(e,n))||r);return o>3&&r&&Object.defineProperty(e,n,r),r},$=this&&this.__metadata||function(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)},T=this&&this.__param||function(t,e){return function(n,i){e(n,i,t)}};e&&e.id;return{setters:[function(t){n=t},function(t){i=t},function(t){s=t},function(t){o=t},function(t){r=t},function(t){a=t},function(t){l=t},function(t){h=t},function(t){c=t},function(t){u=t},function(t){d=t},function(t){g=t},function(t){p=t},function(t){f=t}],execute:function(){"@stratusjs/angular",m="link-dialog",y="editor",b=c.cookie("env")?"":".min",k=`${h.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,v=class extends g.ResponsiveComponent{constructor(t,e,n,i,s,o,r,a){super(),this.dialogRef=t,this.data=e,this.fb=n,this.backend=i,this.snackBar=s,this.iconRegistry=o,this.sanitizer=r,this.ref=a,this.title=m+"_component",this._=l.default,this.Stratus=h.Stratus,this.apiBase="/Api/Content",this.contentEntities=[],this.isContentLoading=!0,this.isSingleContentLoading=!1,this.limit=20,this.eventInsert=!0,this.isListView=!1,this.selected=[],this.linkType="",this.linkText="",this.linkInitText="",this.linkURL="",this.linkTarget=!1,this.svgIcons={},this.isInitialized=!1,this.isDestroyed=!1,this.isStyled=!1}ngOnInit(){this.uid=l.default.uniqueId(`sa_${l.default.snakeCase(m)}_component_`),h.Stratus.Instances[this.uid]=this,h.Stratus.Internals.CssLoader(`${k}${y}/${m}.component${b}.css`).then(()=>{this.isStyled=!0,this.refresh()}).catch(t=>{console.warn("Issue detected in CSS Loader for Component:",this),console.error(t),this.isStyled=!0,this.refresh()}),l.default.forEach({selector_delete:`${h.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/delete.svg`,selector_edit:`${h.Stratus.BaseUrl}sitetheorycore/images/icons/actionButtons/edit.svg`},(t,e)=>this.iconRegistry.addSvgIcon(e,this.sanitizer.bypassSecurityTrustResourceUrl(t)).getNamedSvgIcon(e)),this.model=this.data.model,this.property=this.data.property,this.editor=this.data.editor,this.eventManager=this.data.eventManager,this.element=this.data.element,l.default.isBoolean(this.data.eventInsert)&&(this.eventInsert=this.data.eventInsert),this.dialogContentForm=this.fb.group({contentSelectorInput:"",linkTypeRadio:"",linkTextInput:"",linkURLInput:"",linkTargetCheckbox:""}),this.dialogContentForm.get("contentSelectorInput").valueChanges.pipe(a.debounceTime(300),a.tap(()=>this.isContentLoading=!0),a.switchMap(t=>l.default.isUndefined(t)?this.getQuery():l.default.isString(t)?this.getQuery(t):(this.content=t,this.getQuery()))).subscribe(t=>this.processContent(t)),this.backend.get(this.getQueryUrl()).pipe(a.finalize(()=>this.isContentLoading=!1)).subscribe(t=>this.processContent(t)),this.dialogContentForm.get("linkTypeRadio").valueChanges.pipe(a.debounceTime(300)).subscribe(t=>this.linkType=t),this.linkType=this.element&&this.element.hasAttribute("data-content-id")?"content":"url",this.dialogContentForm.get("linkTypeRadio").patchValue(this.linkType),this.dialogContentForm.get("linkTextInput").valueChanges.pipe(a.debounceTime(300)).subscribe(t=>this.linkText=t),this.linkInitText=this.linkText=this.element?this.element.textContent:"",this.dialogContentForm.get("linkTextInput").patchValue(this.linkText),this.dialogContentForm.get("linkURLInput").valueChanges.pipe(a.debounceTime(300)).subscribe(t=>this.linkURL=t),this.linkURL=this.element&&this.element.hasAttribute("href")?this.element.getAttribute("href"):"",this.dialogContentForm.get("linkURLInput").patchValue(this.linkURL),this.dialogContentForm.get("linkTargetCheckbox").valueChanges.pipe(a.debounceTime(300)).subscribe(t=>this.linkTarget=t),this.linkTarget=!!this.element&&this.element.hasAttribute("target"),this.dialogContentForm.get("linkTargetCheckbox").patchValue(this.linkTarget),this.element&&this.element.hasAttribute("data-content-id")&&(this.isSingleContentLoading=!0,this.backend.get(this.getQueryUrl(null,this.element.getAttribute("data-content-id"))).pipe(a.finalize(()=>this.isSingleContentLoading=!1)).subscribe(t=>{if(!t.ok||200!==t.status||l.default.isEmpty(t.body))return null;const e=l.default.get(t.body,"payload")||t.body;return l.default.isEmpty(e)||Array.isArray(e)||!l.default.isObject(e)?null:(this.contentEntity=e,this.isSingleContentLoading=!1,this.dialogContentForm.get("contentSelectorInput").patchValue(this.contentEntity),this.refresh(),this.contentEntity)})),this.isInitialized=!0}ngOnDestroy(){this.isDestroyed=!0}refresh(){return this.isDestroyed?new Promise(t=>t()):super.refresh()}onCancelClick(){this.eventManager?(this.eventManager.trigger("restore",null,this.editor),this.dialogRef.close(),this.refresh()):console.warn(`${m}: event manager is not set.`)}onPage(t){this.pageEvent=t,this.getQuery(this.lastContentQuery).subscribe(t=>this.processContent(t))}getQueryUrl(t,e){return t=!l.default.isString(t)||l.default.isEmpty(t)?"":`"${t}"`,e=l.default.isEmpty(e)?"":`/${e}`,`${this.apiBase}${e}?limit=${this.limit}&options[isContent]=null&options[isCollection]=null&options[showRoutable]=true&options[showRouting]=true&q=${t}`}getQuery(t){return this.lastContentQuery=t,this.isContentLoading=!0,this.backend.get(this.getQueryUrl(t)).pipe(a.finalize(()=>this.isContentLoading=!1))}processContent(t){if(!t.ok||200!==t.status||l.default.isEmpty(t.body))return this.meta={},this.contentEntities=[],this.refresh(),this.contentEntities;this.meta=l.default.get(t.body,"meta")||{};const e=l.default.get(t.body,"payload")||t.body;return l.default.isEmpty(e)||!Array.isArray(e)?(this.contentEntities=[],this.isContentLoading=!1,this.refresh(),this.contentEntities):(this.contentEntities=e,this.isContentLoading=!1,this.refresh(),this.contentEntities)}onAcceptClick(){const t="content"===this.linkType?this.createLink(this.content):{url:this.linkURL,text:this.linkText,target:this.linkTarget};if(!t){const t=this.content&&this.content.id?`for Content ID: ${this.content.id}.`:"without Content Selected or URL Input.";return console.warn(`${m}: unable to build link ${t}`),void this.snackBar.open(`Unable to build link ${t}`,"dismiss",{duration:5e3,horizontalPosition:"right",verticalPosition:"bottom"})}if(this.content&&this.content.id&&this.selected.push(this.content.id),!this.eventInsert)return this.model instanceof d.Model&&l.default.isString(this.property)?(console.warn(`${m}: disabling eventInsert is not recommended.`),void this.model.set(this.property,this.model.get(this.property)+t)):void console.warn(`${m}: event manager not available.`);this.eventManager?(this.eventManager.trigger("insert",t,this.editor),this.onCancelClick()):console.warn(`${m}: event manager is not set.`)}isSelected(t){if(!l.default.isUndefined(t))return l.default.includes(this.selected,t.id)}createLink(t){return t?t.id?t.contentType&&t.contentType.name?t.routing&&t.routing.length&&t.routing[0]?t.routing[0].url?t.version?t.version.title&&t.version.title.length?{url:`/${t.routing[0].url}`,title:t.version.title,text:this.linkText,target:this.linkTarget,id:t.id}:(console.warn(`${m}: unable to find title for ${t.contentType.name} id: ${t.id}`),null):(console.warn(`${m}: unable to find content version for ${t.contentType.name} id: ${t.id}`),null):(console.warn(`${m}: unable to find url for ${t.contentType.name} id: ${t.id}`),null):(console.warn(`${m}: unable to find routing for ${t.contentType.name} id: ${t.id}`),null):(console.warn(`${m}: unable to find content type for content id: ${t.id}`),null):(console.warn(`${m}: unable to find content id for content:`,t),null):(console.warn(`${m}: unable to create link for empty content`),null)}getSvg(t,e){const n=this.addSvgIcon(t,e);return new r.Observable(e=>{this.iconRegistry.getNamedSvgIcon(n).subscribe({error(e){console.error(`getSvg(${t}): ${e}`)},complete(){e.next(n)}})})}addSvgIcon(t,e){if(t in this.svgIcons)return this.svgIcons[t];e||(e={});const n=this.svgIcons[t]=l.default.uniqueId("selector_svg");return this.iconRegistry.addSvgIcon(n,this.sanitizer.bypassSecurityTrustResourceUrl(t),e),n}displayContentText(t){if(!t)return;const e=l.default.get(t,"routing[0].url"),n=l.default.isUndefined(e)?" (No route!)":` (/${e})`,i=l.default.get(t,"id"),s=l.default.isUndefined(i)?null:`Content: ${i}`;return(l.default.get(t,"version.title")||s)+n}goToUrl(t){t&&t.contentType?window.open(t.contentType.editUrl+"?id="+t.id,"_blank"):console.error("unable to execute goToUrl() because a valid model content was not provided.")}},v=C([n.Component({selector:`sa-internal-${m}`,templateUrl:`${k}/${y}/${m}.component${b}.html`}),T(1,n.Inject(s.MAT_DIALOG_DATA)),$("design:paramtypes",[s.MatDialogRef,Object,i.FormBuilder,u.BackendService,o.MatSnackBar,p.MatIconRegistry,f.DomSanitizer,n.ChangeDetectorRef])],v),t("LinkDialogComponent",v)}}});
|
|
@@ -77,7 +77,7 @@ const localDir = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`]
|
|
|
77
77
|
* @title Dialog for Nested Tree
|
|
78
78
|
*/
|
|
79
79
|
@Component({
|
|
80
|
-
selector: `sa-${moduleName}`,
|
|
80
|
+
selector: `sa-internal-${moduleName}`,
|
|
81
81
|
templateUrl: `${localDir}/${parentModuleName}/${moduleName}.component${min}.html`,
|
|
82
82
|
// changeDetection: ChangeDetectionStrategy.OnPush
|
|
83
83
|
})
|
|
@@ -317,7 +317,7 @@ System.register(["@angular/core", "@angular/forms", "@angular/material/dialog",
|
|
|
317
317
|
};
|
|
318
318
|
MediaDialogComponent = __decorate([
|
|
319
319
|
core_1.Component({
|
|
320
|
-
selector: `sa-${moduleName}`,
|
|
320
|
+
selector: `sa-internal-${moduleName}`,
|
|
321
321
|
templateUrl: `${localDir}/${parentModuleName}/${moduleName}.component${min}.html`,
|
|
322
322
|
}),
|
|
323
323
|
__param(1, core_1.Inject(dialog_1.MAT_DIALOG_DATA)),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["media-dialog.component.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;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,CAAC,CAAA;4BAChG,OAAO,IAAI,CAAA;yBACd;wBACD,IAAI,IAAI,CAAC,OAAO,EAAE;4BACd,OAAO;gCACH,IAAI,EAAE;qEAC2C,KAAK,CAAC,GAAG;;gDAE9B,KAAK,CAAC,GAAG;gCACzB;6BACf,CAAA;yBACJ;wBAED,OAAO;4BACH,IAAI,EAAE,mDAAmD,KAAK,CAAC,GAAG,mEAAmE;yBACxI,CAAA;qBACJ;oBACD,OAAO,CAAC,IAAI,CAAC,wCAAwC,KAAK,CAAC,IAAI,kBAAkB,KAAK,CAAC,EAAE,EAAE,CAAC,CAAA;oBAC5F,OAAO,IAAI,CAAA;gBACf,CAAC;aACJ,CAAA;YAtVY,oBAAoB;gBALhC,gBAAS,CAAC;oBACP,QAAQ,EAAE,eAAe,UAAU,EAAE;oBACrC,WAAW,EAAE,GAAG,QAAQ,IAAI,gBAAgB,IAAI,UAAU,aAAa,GAAG,OAAO;iBAEpF,CAAC;gBAyCO,WAAA,aAAM,CAAC,wBAAe,CAAC,CAAA;iDADN,qBAAY,UAElB,mBAAW;oBACN,gCAAc;oBACb,uBAAW;oBACd,wBAAiB;eA5C3B,oBAAoB,CAsVhC;;QAmED,CAAC","file":"media-dialog.component.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
System.register(["@angular/core","@angular/forms","@angular/material/dialog","@angular/material/snack-bar","rxjs/operators","lodash","@stratusjs/runtime/stratus","@stratusjs/core/environment","../backend.service","@stratusjs/angularjs/services/model","../core/responsive.component"],function(e,t){"use strict";var i,a,s,r,d,n,o,l,c,m,h,u,f,p,g,b,v=this&&this.__decorate||function(e,t,i,a){var s,r=arguments.length,d=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(e,t,i,a);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(d=(r<3?s(d):r>3?s(t,i,d):s(t,i))||d);return r>3&&d&&Object.defineProperty(t,i,d),d},y=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},$=this&&this.__param||function(e,t){return function(i,a){t(i,a,e)}};t&&t.id;return{setters:[function(e){i=e},function(e){a=e},function(e){s=e},function(e){r=e},function(e){d=e},function(e){n=e},function(e){o=e},function(e){l=e},function(e){c=e},function(e){m=e},function(e){h=e}],execute:function(){"@stratusjs/angular",u="media-dialog",f="editor",p=l.cookie("env")?"":".min",g=`${o.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,b=class extends h.ResponsiveComponent{constructor(e,t,i,a,s,r){super(),this.dialogRef=e,this.data=t,this.fb=i,this.backend=a,this.snackBar=s,this.ref=r,this.title=u+"_component",this._=n.default,this.Stratus=o.Stratus,this.apiBase="/Api/Media",this.mediaEntities=[],this.isMediaLoading=!0,this.limit=20,this.eventInsert=!0,this.selected=[],this.embedly=!0}ngOnInit(){this.uid=n.default.uniqueId(`sa_${n.default.snakeCase(u)}_component_`),o.Stratus.Instances[this.uid]=this,o.Stratus.Internals.CssLoader(`${g}/${f}/${u}.component${p}.css`),this.model=this.data.model,this.property=this.data.property,this.editor=this.data.editor,this.eventManager=this.data.eventManager,n.default.isBoolean(this.data.eventInsert)&&(this.eventInsert=this.data.eventInsert),this.dialogMediaForm=this.fb.group({mediaQueryInput:""}),this.dialogMediaForm.get("mediaQueryInput").valueChanges.pipe(d.debounceTime(300),d.tap(()=>{}),d.switchMap(e=>this.getQuery(e))).subscribe(e=>this.processMedia(e)),this.getQuery().subscribe(e=>this.processMedia(e)),this.refresh()}onCancelClick(){this.dialogRef.close(),this.refresh()}onPage(e){this.pageEvent=e,this.getQuery(this.lastMediaQuery).subscribe(e=>this.processMedia(e))}getQueryUrl(e){let t=this.limit,i=1;return this.pageEvent&&(t=this.pageEvent.pageSize,i=this.pageEvent.pageIndex+1),e=n.default.isString(e)&&!n.default.isEmpty(e)?`"${e}"`:"",`${this.apiBase}?limit=${t}&p=${i}&q=${e}`}getQuery(e){return this.lastMediaQuery=e,this.isMediaLoading=!0,this.backend.get(this.getQueryUrl(e)).pipe(d.finalize(()=>this.isMediaLoading=!1))}processMedia(e){if(!e.ok||200!==e.status||n.default.isEmpty(e.body))return this.meta={},this.mediaEntities=[],this.refresh(),this.mediaEntities;this.meta=n.default.get(e.body,"meta")||{};const t=n.default.get(e.body,"payload")||e.body;return n.default.isEmpty(t)||!Array.isArray(t)?(this.mediaEntities=[],this.isMediaLoading=!1,this.refresh(),this.mediaEntities):(this.mediaEntities=t,this.isMediaLoading=!1,this.refresh(),this.mediaEntities)}select(e){if(n.default.isUndefined(e))return;const t=this.createEmbed(e);return t?(this.selected.push(e.id),this.eventInsert?void(this.eventManager?this.eventManager.trigger("insert",t,this.editor):console.warn("media-dialog: event manager is not set.")):this.model instanceof m.Model&&n.default.isString(this.property)?(console.warn("media-dialog: disabling eventInsert is not recommended."),void this.model.set(this.property,this.model.get(this.property)+t)):void console.warn("media-dialog: event manager not available.")):(console.warn(`media-dialog: unable to build embed for Media ID: ${e.id}`),void this.snackBar.open(`Unable to build embed for Media ID: ${e.id}.`,"dismiss",{duration:5e3,horizontalPosition:"right",verticalPosition:"bottom"}))}isSelected(e){if(!n.default.isUndefined(e))return n.default.includes(this.selected,e.id)}createEmbed(e){if(e._embedCode)return{html:e._embedCode};if(n.default.startsWith(e.mime,"image"))return!e._thumbnailUrl||"directLink"===e.service&&!e.file?(console.warn(`media-dialog: unable to determine image source for media id: ${e.id}`),null):{html:`<img src="${e._thumbnailUrl||e.file}" alt="${e.name||e.filename}" ${"image/gif"!==e.mime?"data-stratus-src":""}>`};if("video"===e.mime){if(e.embed)return{html:e.embed};const t='width="100%" scrolling="no" frameborder="0" allowTransparency="true" allowFullScreen="true" webkitAllowFullScreen="" mozAllowFullScreen=""';if("facebook"===e.service){const i=e.url||e.file;return i?this.embedly?{html:`<div class="fr-embedly"\n data-original-embed="<a href='${i}' data-card-branding='0' class='embedly-card'></a>"\n style="height: 998px;">\n <a href="${i}" data-card-branding="0" class="embedly-card"></a>\n </div>`}:{html:`<iframe src="https://www.facebook.com/plugins/video.php?href=${i}" ${t}></iframe>`}:(console.warn(`media-dialog: unable to find url for video with media id: ${e.id}`),null)}return e.serviceMediaId?"vimeo"===e.service?this.embedly?{html:`<div class="fr-embedly"\n data-original-embed="<a href='https://vimeo.com/${e.serviceMediaId}' data-card-branding='0' class='embedly-card'></a>"\n style="height: 370px;">\n <a href="https://vimeo.com/${e.serviceMediaId}" data-card-branding="0" class="embedly-card"></a>\n </div>`}:{html:`<iframe src="https://player.vimeo.com/video/${e.serviceMediaId}" ${t}></iframe>`}:"youtube"===e.service?this.embedly?{html:`<div class="fr-embedly"\n data-original-embed="<a href='https://www.youtube.com/watch?v=${e.serviceMediaId}' data-card-branding='0' class='embedly-card'></a>"\n style="height: 370px;">\n <a href="https://www.youtube.com/watch?v=${e.serviceMediaId}" data-card-branding="0" class="embedly-card"></a>\n </div>`}:{html:`<iframe src="https://www.youtube.com/embed/${e.serviceMediaId}" ${t}></iframe>`}:(console.warn(`media-dialog: unsupported service: ${e.service} for media id: ${e.id}`),null):(console.warn(`media-dialog: unable to find serviceMediaId for video with media id: ${e.id}`),null)}return n.default.startsWith(e.mime,"audio")?e.url?{html:`<audio controls>\n <source src="https://${e.url}" type="${e.mime}">\n <p>\n Your browser doesn't support HTML5 audio, but you can <a href="https://${e.url}">download the audio here</a>.\n </p>\n </audio>`}:(console.warn(`media-dialog: unable to determine audio source for media id: ${e.id}`),null):"application/pdf"===e.mime?e.url?this.embedly?{html:`<div class="fr-embedly"\n data-original-embed="<a href='https://${e.url}' data-card-branding='0' class='embedly-card'></a>"\n style="height: 71px;">\n <a href="https://${e.url}" data-card-branding="0" class="embedly-card"></a>\n </div>`}:{html:`<iframe src="https://docs.google.com/viewer?url=${e.url}&embedded=true" style="min-height: 500px;" width="100%"></iframe>`}:(console.warn(`media-dialog: unable to determine PDF source for media id: ${e.id}`),null):"application/msword"===e.mime?e.url?this.embedly?{html:`<div class="fr-embedly"\n data-original-embed="<a href='https://${e.url}' data-card-branding='0' class='embedly-card'></a>"\n style="height: 71px;">\n <a href="https://${e.url}" data-card-branding="0" class="embedly-card"></a>\n </div>`}:{html:`<iframe src="https://docs.google.com/viewer?url=${e.url}&embedded=true" style="min-height: 500px;" width="100%"></iframe>`}:(console.warn(`media-dialog: unable to determine Word Document source for media id: ${e.id}`),null):(console.warn(`media-dialog: unsupported mime type: ${e.mime} for media id: ${e.id}`),null)}},b=v([i.Component({selector:`sa-${u}`,templateUrl:`${g}/${f}/${u}.component${p}.html`}),$(1,i.Inject(s.MAT_DIALOG_DATA)),y("design:paramtypes",[s.MatDialogRef,Object,a.FormBuilder,c.BackendService,r.MatSnackBar,i.ChangeDetectorRef])],b),e("MediaDialogComponent",b)}}});
|
|
1
|
+
System.register(["@angular/core","@angular/forms","@angular/material/dialog","@angular/material/snack-bar","rxjs/operators","lodash","@stratusjs/runtime/stratus","@stratusjs/core/environment","../backend.service","@stratusjs/angularjs/services/model","../core/responsive.component"],function(e,t){"use strict";var i,a,s,r,d,n,o,l,c,m,h,u,f,p,g,b,v=this&&this.__decorate||function(e,t,i,a){var s,r=arguments.length,d=r<3?t:null===a?a=Object.getOwnPropertyDescriptor(t,i):a;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)d=Reflect.decorate(e,t,i,a);else for(var n=e.length-1;n>=0;n--)(s=e[n])&&(d=(r<3?s(d):r>3?s(t,i,d):s(t,i))||d);return r>3&&d&&Object.defineProperty(t,i,d),d},y=this&&this.__metadata||function(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)},$=this&&this.__param||function(e,t){return function(i,a){t(i,a,e)}};t&&t.id;return{setters:[function(e){i=e},function(e){a=e},function(e){s=e},function(e){r=e},function(e){d=e},function(e){n=e},function(e){o=e},function(e){l=e},function(e){c=e},function(e){m=e},function(e){h=e}],execute:function(){"@stratusjs/angular",u="media-dialog",f="editor",p=l.cookie("env")?"":".min",g=`${o.Stratus.BaseUrl}${boot.configuration.paths["@stratusjs/angular/*"].replace(/[^/]*$/,"").replace(/\/dist\/$/,"/src/")}`,b=class extends h.ResponsiveComponent{constructor(e,t,i,a,s,r){super(),this.dialogRef=e,this.data=t,this.fb=i,this.backend=a,this.snackBar=s,this.ref=r,this.title=u+"_component",this._=n.default,this.Stratus=o.Stratus,this.apiBase="/Api/Media",this.mediaEntities=[],this.isMediaLoading=!0,this.limit=20,this.eventInsert=!0,this.selected=[],this.embedly=!0}ngOnInit(){this.uid=n.default.uniqueId(`sa_${n.default.snakeCase(u)}_component_`),o.Stratus.Instances[this.uid]=this,o.Stratus.Internals.CssLoader(`${g}/${f}/${u}.component${p}.css`),this.model=this.data.model,this.property=this.data.property,this.editor=this.data.editor,this.eventManager=this.data.eventManager,n.default.isBoolean(this.data.eventInsert)&&(this.eventInsert=this.data.eventInsert),this.dialogMediaForm=this.fb.group({mediaQueryInput:""}),this.dialogMediaForm.get("mediaQueryInput").valueChanges.pipe(d.debounceTime(300),d.tap(()=>{}),d.switchMap(e=>this.getQuery(e))).subscribe(e=>this.processMedia(e)),this.getQuery().subscribe(e=>this.processMedia(e)),this.refresh()}onCancelClick(){this.dialogRef.close(),this.refresh()}onPage(e){this.pageEvent=e,this.getQuery(this.lastMediaQuery).subscribe(e=>this.processMedia(e))}getQueryUrl(e){let t=this.limit,i=1;return this.pageEvent&&(t=this.pageEvent.pageSize,i=this.pageEvent.pageIndex+1),e=n.default.isString(e)&&!n.default.isEmpty(e)?`"${e}"`:"",`${this.apiBase}?limit=${t}&p=${i}&q=${e}`}getQuery(e){return this.lastMediaQuery=e,this.isMediaLoading=!0,this.backend.get(this.getQueryUrl(e)).pipe(d.finalize(()=>this.isMediaLoading=!1))}processMedia(e){if(!e.ok||200!==e.status||n.default.isEmpty(e.body))return this.meta={},this.mediaEntities=[],this.refresh(),this.mediaEntities;this.meta=n.default.get(e.body,"meta")||{};const t=n.default.get(e.body,"payload")||e.body;return n.default.isEmpty(t)||!Array.isArray(t)?(this.mediaEntities=[],this.isMediaLoading=!1,this.refresh(),this.mediaEntities):(this.mediaEntities=t,this.isMediaLoading=!1,this.refresh(),this.mediaEntities)}select(e){if(n.default.isUndefined(e))return;const t=this.createEmbed(e);return t?(this.selected.push(e.id),this.eventInsert?void(this.eventManager?this.eventManager.trigger("insert",t,this.editor):console.warn("media-dialog: event manager is not set.")):this.model instanceof m.Model&&n.default.isString(this.property)?(console.warn("media-dialog: disabling eventInsert is not recommended."),void this.model.set(this.property,this.model.get(this.property)+t)):void console.warn("media-dialog: event manager not available.")):(console.warn(`media-dialog: unable to build embed for Media ID: ${e.id}`),void this.snackBar.open(`Unable to build embed for Media ID: ${e.id}.`,"dismiss",{duration:5e3,horizontalPosition:"right",verticalPosition:"bottom"}))}isSelected(e){if(!n.default.isUndefined(e))return n.default.includes(this.selected,e.id)}createEmbed(e){if(e._embedCode)return{html:e._embedCode};if(n.default.startsWith(e.mime,"image"))return!e._thumbnailUrl||"directLink"===e.service&&!e.file?(console.warn(`media-dialog: unable to determine image source for media id: ${e.id}`),null):{html:`<img src="${e._thumbnailUrl||e.file}" alt="${e.name||e.filename}" ${"image/gif"!==e.mime?"data-stratus-src":""}>`};if("video"===e.mime){if(e.embed)return{html:e.embed};const t='width="100%" scrolling="no" frameborder="0" allowTransparency="true" allowFullScreen="true" webkitAllowFullScreen="" mozAllowFullScreen=""';if("facebook"===e.service){const i=e.url||e.file;return i?this.embedly?{html:`<div class="fr-embedly"\n data-original-embed="<a href='${i}' data-card-branding='0' class='embedly-card'></a>"\n style="height: 998px;">\n <a href="${i}" data-card-branding="0" class="embedly-card"></a>\n </div>`}:{html:`<iframe src="https://www.facebook.com/plugins/video.php?href=${i}" ${t}></iframe>`}:(console.warn(`media-dialog: unable to find url for video with media id: ${e.id}`),null)}return e.serviceMediaId?"vimeo"===e.service?this.embedly?{html:`<div class="fr-embedly"\n data-original-embed="<a href='https://vimeo.com/${e.serviceMediaId}' data-card-branding='0' class='embedly-card'></a>"\n style="height: 370px;">\n <a href="https://vimeo.com/${e.serviceMediaId}" data-card-branding="0" class="embedly-card"></a>\n </div>`}:{html:`<iframe src="https://player.vimeo.com/video/${e.serviceMediaId}" ${t}></iframe>`}:"youtube"===e.service?this.embedly?{html:`<div class="fr-embedly"\n data-original-embed="<a href='https://www.youtube.com/watch?v=${e.serviceMediaId}' data-card-branding='0' class='embedly-card'></a>"\n style="height: 370px;">\n <a href="https://www.youtube.com/watch?v=${e.serviceMediaId}" data-card-branding="0" class="embedly-card"></a>\n </div>`}:{html:`<iframe src="https://www.youtube.com/embed/${e.serviceMediaId}" ${t}></iframe>`}:(console.warn(`media-dialog: unsupported service: ${e.service} for media id: ${e.id}`),null):(console.warn(`media-dialog: unable to find serviceMediaId for video with media id: ${e.id}`),null)}return n.default.startsWith(e.mime,"audio")?e.url?{html:`<audio controls>\n <source src="https://${e.url}" type="${e.mime}">\n <p>\n Your browser doesn't support HTML5 audio, but you can <a href="https://${e.url}">download the audio here</a>.\n </p>\n </audio>`}:(console.warn(`media-dialog: unable to determine audio source for media id: ${e.id}`),null):"application/pdf"===e.mime?e.url?this.embedly?{html:`<div class="fr-embedly"\n data-original-embed="<a href='https://${e.url}' data-card-branding='0' class='embedly-card'></a>"\n style="height: 71px;">\n <a href="https://${e.url}" data-card-branding="0" class="embedly-card"></a>\n </div>`}:{html:`<iframe src="https://docs.google.com/viewer?url=${e.url}&embedded=true" style="min-height: 500px;" width="100%"></iframe>`}:(console.warn(`media-dialog: unable to determine PDF source for media id: ${e.id}`),null):"application/msword"===e.mime?e.url?this.embedly?{html:`<div class="fr-embedly"\n data-original-embed="<a href='https://${e.url}' data-card-branding='0' class='embedly-card'></a>"\n style="height: 71px;">\n <a href="https://${e.url}" data-card-branding="0" class="embedly-card"></a>\n </div>`}:{html:`<iframe src="https://docs.google.com/viewer?url=${e.url}&embedded=true" style="min-height: 500px;" width="100%"></iframe>`}:(console.warn(`media-dialog: unable to determine Word Document source for media id: ${e.id}`),null):(console.warn(`media-dialog: unsupported mime type: ${e.mime} for media id: ${e.id}`),null)}},b=v([i.Component({selector:`sa-internal-${u}`,templateUrl:`${g}/${f}/${u}.component${p}.html`}),$(1,i.Inject(s.MAT_DIALOG_DATA)),y("design:paramtypes",[s.MatDialogRef,Object,a.FormBuilder,c.BackendService,r.MatSnackBar,i.ChangeDetectorRef])],b),e("MediaDialogComponent",b)}}});
|
|
@@ -72,7 +72,7 @@ const localDir = `${Stratus.BaseUrl}${boot.configuration.paths[`${systemDir}/*`]
|
|
|
72
72
|
* @title Dialog for Nested Tree
|
|
73
73
|
*/
|
|
74
74
|
@Component({
|
|
75
|
-
selector: `sa-${moduleName}`,
|
|
75
|
+
selector: `sa-internal-${moduleName}`,
|
|
76
76
|
templateUrl: `${localDir}/${parentModuleName}/${moduleName}.component${min}.html`,
|
|
77
77
|
// changeDetection: ChangeDetectionStrategy.OnPush
|
|
78
78
|
})
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["material.module.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YA0Fa,eAAe,GAArB,MAAM,eAAe;aAC3B,CAAA;YADY,eAAe;gBA9C3B,eAAQ,CAAC;oBACN,OAAO,EAAE;wBACL,iBAAU;wBACV,0BAAgB;wBAChB,sBAAc;wBACd,oBAAa;wBACb,0BAAc;wBACd,oCAAqB;wBACrB,sBAAc;wBACd,mCAAoB;wBACpB,wBAAe;wBACf,qCAAqB;wBACrB,oBAAa;wBACb,4BAAiB;wBACjB,sBAAc;wBACd,0BAAgB;wBAChB,gCAAmB;wBACnB,wBAAe;wBACf,0BAAgB;wBAChB,8BAAkB;wBAClB,6BAAiB;wBACjB,oBAAa;wBACb,sBAAc;wBACd,oBAAa;wBACb,oBAAa;wBACb,0BAAmB;wBACnB,8BAAkB;wBAClB,mCAAoB;wBACpB,2CAAwB;wBACxB,sBAAc;wBACd,sBAAe;wBACf,wBAAe;wBACf,0BAAgB;wBAChB,wBAAe;wBACf,mCAAoB;wBACpB,6BAAiB;wBACjB,oBAAa;wBACb,sBAAc;wBACd,oBAAa;wBACb,0BAAgB;wBAChB,0BAAgB;wBAChB,oBAAa;wBACb,qBAAY;wBACZ,2BAAe;qBAClB;iBACJ,CAAC;eACW,eAAe,CAC3B;;QACD,CAAC","file":"material.module.js"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
/* Styles for Both Media Selector and Media Selected Areas */
|
|
2
2
|
sa-media-selector .content-type,
|
|
3
|
+
sa-internal-media-selector .content-type,
|
|
3
4
|
.media-selected-box.cdk-drag-preview .content-type {
|
|
4
5
|
margin-bottom: 2px;
|
|
5
6
|
}
|
|
6
7
|
sa-media-selector .content-type md-icon,
|
|
7
8
|
sa-media-selector .content-type mat-icon,
|
|
9
|
+
sa-internal-media-selector .content-type md-icon,
|
|
10
|
+
sa-internal-media-selector .content-type mat-icon,
|
|
8
11
|
.media-selected-box.cdk-drag-preview .content-type md-icon,
|
|
9
12
|
.media-selected-box.cdk-drag-preview .content-type mat-icon {
|
|
10
13
|
margin-right: 4px;
|
|
@@ -14,6 +17,7 @@ sa-media-selector .content-type mat-icon,
|
|
|
14
17
|
min-width: 14px;
|
|
15
18
|
}
|
|
16
19
|
sa-media-selector .content-type .content-type-name,
|
|
20
|
+
sa-internal-media-selector .content-type .content-type-name,
|
|
17
21
|
.media-selected-box.cdk-drag-preview .content-type .content-type-name {
|
|
18
22
|
font-weight: bold;
|
|
19
23
|
font-size: 11px;
|
|
@@ -22,6 +26,8 @@ sa-media-selector .content-type .content-type-name,
|
|
|
22
26
|
}
|
|
23
27
|
sa-media-selector .no-image-icon md-icon,
|
|
24
28
|
sa-media-selector .no-image-icon mat-icon,
|
|
29
|
+
sa-internal-media-selector .no-image-icon md-icon,
|
|
30
|
+
sa-internal-media-selector .no-image-icon mat-icon,
|
|
25
31
|
.media-selected-box.cdk-drag-preview .no-image-icon md-icon,
|
|
26
32
|
.media-selected-box.cdk-drag-preview .no-image-icon mat-icon {
|
|
27
33
|
height: 28px;
|
|
@@ -31,11 +37,14 @@ sa-media-selector .no-image-icon mat-icon,
|
|
|
31
37
|
}
|
|
32
38
|
sa-media-selector .no-image-icon md-icon svg g,
|
|
33
39
|
sa-media-selector .no-image-icon mat-icon svg g,
|
|
40
|
+
sa-internal-media-selector .no-image-icon md-icon svg g,
|
|
41
|
+
sa-internal-media-selector .no-image-icon mat-icon svg g,
|
|
34
42
|
.media-selected-box.cdk-drag-preview .no-image-icon md-icon svg g,
|
|
35
43
|
.media-selected-box.cdk-drag-preview .no-image-icon mat-icon svg g {
|
|
36
44
|
fill: #FFF;
|
|
37
45
|
}
|
|
38
46
|
sa-media-selector .shapeholder,
|
|
47
|
+
sa-internal-media-selector .shapeholder,
|
|
39
48
|
.media-selected-box.cdk-drag-preview .shapeholder {
|
|
40
49
|
width: 100%;
|
|
41
50
|
display: block;
|
|
@@ -143,6 +152,9 @@ sa-media-selector .shapeholder,
|
|
|
143
152
|
sa-media-selector .column-image,
|
|
144
153
|
sa-media-selector .column-title,
|
|
145
154
|
sa-media-selector .column-action,
|
|
155
|
+
sa-internal-media-selector .column-image,
|
|
156
|
+
sa-internal-media-selector .column-title,
|
|
157
|
+
sa-internal-media-selector .column-action,
|
|
146
158
|
.media-selected-box.cdk-drag-preview .column-image,
|
|
147
159
|
.media-selected-box.cdk-drag-preview .column-title,
|
|
148
160
|
.media-selected-box.cdk-drag-preview .column-action {
|